From 52adc1c652801ffd8abf44b05137cf05420e3326 Mon Sep 17 00:00:00 2001 From: Rob Gietema Date: Mon, 23 Dec 2024 10:40:26 -0700 Subject: [PATCH] Fix imports. --- packages/volto/news/6370.feature | 6 +++--- .../manage/Widgets/CheckboxGroupWidget.jsx | 12 +++++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/volto/news/6370.feature b/packages/volto/news/6370.feature index ba095841e9..0152cb6adf 100644 --- a/packages/volto/news/6370.feature +++ b/packages/volto/news/6370.feature @@ -6,9 +6,9 @@ Add checkbox group widget. @robgietema Add taken slugs to slugify helper. @robgietema Add filter choices, additional choices and sort to select widget. @robgietema Add max size and accept type checks to file widget. @robgietema -Fix bug with pressing enter in blocks form. @robgietema -Add option to pass custom widget config to field component. @robgietema -Add optional widgets config to form component. @robgietema +Fix bug with pressing enter in blocks form that events gets bubbled from modal to blocks area. @robgietema +Add option to pass custom widget `config` to field component. @robgietema +Add optional widgets `config` to form component. @robgietema Add option to override the form component and the buttons in the form component. @robgietema Add option to override cancel label in form. @robgietema Add option to choose bewteen icon and text buttons in the form component. @robgietema diff --git a/packages/volto/src/components/manage/Widgets/CheckboxGroupWidget.jsx b/packages/volto/src/components/manage/Widgets/CheckboxGroupWidget.jsx index c589afb075..2361cd76c7 100644 --- a/packages/volto/src/components/manage/Widgets/CheckboxGroupWidget.jsx +++ b/packages/volto/src/components/manage/Widgets/CheckboxGroupWidget.jsx @@ -7,16 +7,22 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { compose } from 'redux'; -import { filter, includes, map, without } from 'lodash'; +import filter from 'lodash/filter'; +import includes from 'lodash/includes'; +import map from 'lodash/map'; +import without from 'lodash/without'; import { injectIntl } from 'react-intl'; import { getVocabFromHint, getVocabFromField, getVocabFromItems, -} from '@plone/volto/helpers'; +} from '@plone/volto/helpers/Vocabularies/Vocabularies'; import { Checkbox } from 'semantic-ui-react'; import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper'; -import { getVocabulary, getVocabularyTokenTitle } from '@plone/volto/actions'; +import { + getVocabulary, + getVocabularyTokenTitle, +} from '@plone/volto/actions/vocabularies/vocabularies'; /** * CheckboxGroupWidget component class.