@plone/volto 18.1.2 → 18.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -1
- package/.eslintrc +8 -1
- package/.eslintrc.core.js +42 -0
- package/CHANGELOG.md +6 -0
- package/package.json +3 -3
- package/src/actions/content/content.js +1 -1
- package/src/actions/language/language.js +2 -2
- package/src/actions/search/search.js +7 -1
- package/src/actions/workflow/workflow.js +1 -1
- package/src/components/manage/Actions/Actions.jsx +8 -3
- package/src/components/manage/Add/Add.jsx +26 -26
- package/src/components/manage/Aliases/Aliases.jsx +9 -7
- package/src/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.jsx +5 -7
- package/src/components/manage/AnchorPlugin/useLinkEditor.jsx +1 -1
- package/src/components/manage/BlockChooser/BlockChooser.jsx +6 -3
- package/src/components/manage/BlockChooser/BlockChooserButton.jsx +4 -3
- package/src/components/manage/BlockChooser/BlockChooserSearch.jsx +1 -1
- package/src/components/manage/Blocks/Block/BlocksForm.jsx +8 -7
- package/src/components/manage/Blocks/Block/DefaultEdit.jsx +1 -1
- package/src/components/manage/Blocks/Block/DefaultView.jsx +1 -1
- package/src/components/manage/Blocks/Block/Edit.jsx +7 -8
- package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +3 -3
- package/src/components/manage/Blocks/Block/Order/Item.jsx +3 -3
- package/src/components/manage/Blocks/Block/Order/Order.jsx +2 -1
- package/src/components/manage/Blocks/Block/Order/utilities.js +2 -2
- package/src/components/manage/Blocks/Block/StyleWrapper.jsx +1 -1
- package/src/components/manage/Blocks/Container/Edit.jsx +3 -3
- package/src/components/manage/Blocks/Container/EditBlockWrapper.jsx +2 -2
- package/src/components/manage/Blocks/Container/NewBlockAddButton.jsx +3 -2
- package/src/components/manage/Blocks/Container/SimpleContainerToolbar.jsx +1 -1
- package/src/components/manage/Blocks/Grid/Edit.jsx +1 -1
- package/src/components/manage/Blocks/Grid/View.jsx +2 -2
- package/src/components/manage/Blocks/Grid/templates.js +1 -1
- package/src/components/manage/Blocks/HTML/Edit.jsx +2 -2
- package/src/components/manage/Blocks/Image/Edit.jsx +4 -6
- package/src/components/manage/Blocks/Image/ImageSidebar.jsx +3 -2
- package/src/components/manage/Blocks/Image/View.jsx +3 -6
- package/src/components/manage/Blocks/LeadImage/Edit.jsx +2 -1
- package/src/components/manage/Blocks/LeadImage/LeadImageSidebar.jsx +3 -2
- package/src/components/manage/Blocks/LeadImage/View.jsx +1 -1
- package/src/components/manage/Blocks/Listing/DefaultTemplate.jsx +3 -3
- package/src/components/manage/Blocks/Listing/Edit.jsx +5 -7
- package/src/components/manage/Blocks/Listing/ImageGallery.jsx +2 -2
- package/src/components/manage/Blocks/Listing/ListingBody.jsx +2 -2
- package/src/components/manage/Blocks/Listing/SummaryTemplate.jsx +3 -3
- package/src/components/manage/Blocks/Listing/View.jsx +2 -2
- package/src/components/manage/Blocks/Listing/getAsyncData.js +2 -2
- package/src/components/manage/Blocks/Listing/withQuerystringResults.jsx +4 -2
- package/src/components/manage/Blocks/Maps/Edit.jsx +4 -2
- package/src/components/manage/Blocks/Maps/MapsSidebar.jsx +1 -1
- package/src/components/manage/Blocks/Maps/View.jsx +1 -1
- package/src/components/manage/Blocks/Search/SearchBlockEdit.jsx +3 -3
- package/src/components/manage/Blocks/Search/SearchBlockView.jsx +3 -2
- package/src/components/manage/Blocks/Search/components/DateRangeFacet.jsx +1 -1
- package/src/components/manage/Blocks/Search/components/FilterList.jsx +3 -3
- package/src/components/manage/Blocks/Search/components/SearchInput.jsx +1 -1
- package/src/components/manage/Blocks/Search/components/SortOn.jsx +1 -1
- package/src/components/manage/Blocks/Search/components/base.js +1 -1
- package/src/components/manage/Blocks/Search/hocs/withQueryString.jsx +1 -1
- package/src/components/manage/Blocks/Search/hocs/withSearch.jsx +2 -2
- package/src/components/manage/Blocks/Search/schema.js +1 -1
- package/src/components/manage/Blocks/Search/widgets/SelectMetadataField.jsx +4 -1
- package/src/components/manage/Blocks/Teaser/Data.jsx +6 -7
- package/src/components/manage/Blocks/Teaser/DefaultBody.jsx +3 -3
- package/src/components/manage/Blocks/Teaser/Edit.jsx +2 -2
- package/src/components/manage/Blocks/Teaser/View.jsx +1 -1
- package/src/components/manage/Blocks/Teaser/adapter.js +1 -1
- package/src/components/manage/Blocks/ToC/Edit.jsx +1 -1
- package/src/components/manage/Blocks/ToC/View.jsx +2 -2
- package/src/components/manage/Blocks/ToC/variations/DefaultTocRenderer.jsx +3 -3
- package/src/components/manage/Blocks/ToC/variations/HorizontalMenu.jsx +2 -2
- package/src/components/manage/Blocks/Video/Body.jsx +1 -1
- package/src/components/manage/Blocks/Video/Edit.jsx +4 -2
- package/src/components/manage/Blocks/Video/VideoSidebar.jsx +1 -1
- package/src/components/manage/Blocks/Video/View.jsx +1 -1
- package/src/components/manage/ConditionalLink/ConditionalLink.jsx +1 -1
- package/src/components/manage/Contents/Contents.jsx +26 -28
- package/src/components/manage/Contents/ContentsBreadcrumbs.jsx +1 -1
- package/src/components/manage/Contents/ContentsItem.jsx +6 -3
- package/src/components/manage/Contents/ContentsPropertiesModal.jsx +4 -3
- package/src/components/manage/Contents/ContentsRenameModal.jsx +5 -3
- package/src/components/manage/Contents/ContentsTagsModal.jsx +3 -3
- package/src/components/manage/Contents/ContentsUploadModal.jsx +7 -4
- package/src/components/manage/Contents/ContentsWorkflowModal.jsx +10 -3
- package/src/components/manage/Controlpanels/AddonsControlpanel.jsx +6 -4
- package/src/components/manage/Controlpanels/Aliases.jsx +7 -5
- package/src/components/manage/Controlpanels/ContentType.jsx +12 -4
- package/src/components/manage/Controlpanels/ContentTypeLayout.jsx +11 -7
- package/src/components/manage/Controlpanels/ContentTypeSchema.jsx +7 -4
- package/src/components/manage/Controlpanels/ContentTypes.jsx +7 -5
- package/src/components/manage/Controlpanels/ContentTypesActions.jsx +1 -1
- package/src/components/manage/Controlpanels/Controlpanel.jsx +9 -4
- package/src/components/manage/Controlpanels/Controlpanels.jsx +11 -3
- package/src/components/manage/Controlpanels/DatabaseInformation.jsx +5 -4
- package/src/components/manage/Controlpanels/Groups/GroupsControlpanel.jsx +16 -19
- package/src/components/manage/Controlpanels/Groups/RenderGroups.jsx +2 -2
- package/src/components/manage/Controlpanels/ModerateComments.jsx +7 -3
- package/src/components/manage/Controlpanels/Relations/BrokenRelations.jsx +4 -4
- package/src/components/manage/Controlpanels/Relations/Relations.jsx +7 -5
- package/src/components/manage/Controlpanels/Relations/RelationsListing.jsx +7 -4
- package/src/components/manage/Controlpanels/Relations/RelationsMatrix.jsx +7 -5
- package/src/components/manage/Controlpanels/Rules/AddRule.jsx +9 -3
- package/src/components/manage/Controlpanels/Rules/ConfigureRule.jsx +7 -4
- package/src/components/manage/Controlpanels/Rules/EditRule.jsx +6 -3
- package/src/components/manage/Controlpanels/Rules/Rules.jsx +6 -4
- package/src/components/manage/Controlpanels/Rules/components/VariableModal.jsx +1 -1
- package/src/components/manage/Controlpanels/UndoControlpanel.jsx +9 -4
- package/src/components/manage/Controlpanels/UpgradeControlPanel.jsx +7 -5
- package/src/components/manage/Controlpanels/Users/RenderUsers.jsx +5 -3
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.jsx +9 -6
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipListing.jsx +9 -5
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.jsx +4 -3
- package/src/components/manage/Controlpanels/Users/UsersControlpanel.jsx +17 -20
- package/src/components/manage/Controlpanels/VersionOverview.jsx +1 -1
- package/src/components/manage/Controlpanels/index.tsx +5 -2
- package/src/components/manage/Delete/Delete.jsx +7 -3
- package/src/components/manage/Diff/Diff.jsx +13 -11
- package/src/components/manage/Diff/DiffField.jsx +4 -3
- package/src/components/manage/Display/Display.jsx +9 -4
- package/src/components/manage/DragDropList/DragDropList.jsx +1 -1
- package/src/components/manage/Edit/Edit.jsx +20 -23
- package/src/components/manage/Form/BlockDataForm.jsx +1 -1
- package/src/components/manage/Form/BlocksToolbar.jsx +10 -5
- package/src/components/manage/Form/Form.jsx +18 -20
- package/src/components/manage/Form/InlineForm.jsx +5 -3
- package/src/components/manage/Form/InlineFormState.js +1 -1
- package/src/components/manage/Form/ModalForm.jsx +4 -3
- package/src/components/manage/Form/UndoToolbar.jsx +2 -2
- package/src/components/manage/History/History.jsx +16 -11
- package/src/components/manage/LinkMore/LinkMore.jsx +3 -3
- package/src/components/manage/LinksToItem/LinksToItem.jsx +11 -11
- package/src/components/manage/LockingToastsFactory/LockingToastsFactory.jsx +2 -1
- package/src/components/manage/Messages/Messages.jsx +2 -2
- package/src/components/manage/Multilingual/CompareLanguages.jsx +3 -2
- package/src/components/manage/Multilingual/CreateTranslation.jsx +5 -6
- package/src/components/manage/Multilingual/ManageTranslations.jsx +9 -6
- package/src/components/manage/Multilingual/TranslationObject.jsx +5 -5
- package/src/components/manage/Pluggable/index.js +1 -1
- package/src/components/manage/Preferences/ChangePassword.jsx +8 -5
- package/src/components/manage/Preferences/PersonalInformation.jsx +4 -3
- package/src/components/manage/Preferences/PersonalPreferences.jsx +5 -4
- package/src/components/manage/Rules/Rules.jsx +6 -5
- package/src/components/manage/Sharing/Sharing.jsx +12 -5
- package/src/components/manage/Sidebar/AlignBlock.jsx +1 -1
- package/src/components/manage/Sidebar/ObjectBrowser.jsx +1 -1
- package/src/components/manage/Sidebar/ObjectBrowserBody.jsx +1 -1
- package/src/components/manage/Sidebar/ObjectBrowserNav.jsx +2 -1
- package/src/components/manage/Sidebar/Sidebar.jsx +4 -3
- package/src/components/manage/Sidebar/SidebarPopup.jsx +1 -1
- package/src/components/manage/TextLineEdit/TextLineEdit.jsx +1 -1
- package/src/components/manage/Toolbar/More.jsx +9 -10
- package/src/components/manage/Toolbar/PersonalTools.jsx +3 -3
- package/src/components/manage/Toolbar/StandardWrapper.jsx +1 -1
- package/src/components/manage/Toolbar/Toolbar.jsx +12 -15
- package/src/components/manage/Toolbar/Types.jsx +7 -2
- package/src/components/manage/Widgets/ArrayWidget.jsx +4 -3
- package/src/components/manage/Widgets/ButtonsWidget.jsx +1 -1
- package/src/components/manage/Widgets/ColorPickerWidget.tsx +2 -1
- package/src/components/manage/Widgets/DatetimeWidget.jsx +2 -2
- package/src/components/manage/Widgets/FileWidget.jsx +4 -2
- package/src/components/manage/Widgets/FormFieldWrapper.jsx +2 -2
- package/src/components/manage/Widgets/IdWidget.jsx +7 -3
- package/src/components/manage/Widgets/ImageWidget.jsx +6 -5
- package/src/components/manage/Widgets/InternalUrlWidget.jsx +6 -2
- package/src/components/manage/Widgets/ObjectBrowserWidget.jsx +5 -1
- package/src/components/manage/Widgets/ObjectListWidget.jsx +4 -2
- package/src/components/manage/Widgets/ObjectListWidget.stories.js +1 -1
- package/src/components/manage/Widgets/ObjectWidget.stories.jsx +1 -1
- package/src/components/manage/Widgets/QuerySortOnWidget.jsx +3 -1
- package/src/components/manage/Widgets/QueryWidget.jsx +8 -3
- package/src/components/manage/Widgets/RecurrenceWidget/ByDayField.jsx +1 -1
- package/src/components/manage/Widgets/RecurrenceWidget/MonthOfTheYearField.jsx +2 -2
- package/src/components/manage/Widgets/RecurrenceWidget/Occurences.jsx +2 -2
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +7 -3
- package/src/components/manage/Widgets/RecurrenceWidget/SelectInput.jsx +1 -1
- package/src/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthField.jsx +2 -2
- package/src/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.jsx +1 -1
- package/src/components/manage/Widgets/ReferenceWidget.jsx +11 -3
- package/src/components/manage/Widgets/RegistryImageWidget.jsx +3 -2
- package/src/components/manage/Widgets/SchemaWidget.jsx +7 -1
- package/src/components/manage/Widgets/SelectAutoComplete.jsx +5 -2
- package/src/components/manage/Widgets/SelectStyling.jsx +1 -1
- package/src/components/manage/Widgets/SelectUtils.js +4 -2
- package/src/components/manage/Widgets/SelectWidget.jsx +6 -3
- package/src/components/manage/Widgets/SelectWidget.stories.jsx +1 -1
- package/src/components/manage/Widgets/TextWidget.jsx +1 -1
- package/src/components/manage/Widgets/TokenWidget.jsx +2 -2
- package/src/components/manage/Widgets/UrlWidget.jsx +2 -2
- package/src/components/manage/Widgets/VocabularyTermsWidget.jsx +6 -3
- package/src/components/manage/Workflow/Workflow.jsx +7 -6
- package/src/components/manage/WorkingCopyToastsFactory/WorkingCopyToastsFactory.jsx +3 -3
- package/src/components/theme/Anontools/Anontools.jsx +1 -1
- package/src/components/theme/App/App.jsx +17 -24
- package/src/components/theme/Avatar/Avatar.jsx +1 -1
- package/src/components/theme/Breadcrumbs/Breadcrumbs.jsx +4 -3
- package/src/components/theme/Comments/CommentEditModal.jsx +2 -2
- package/src/components/theme/Comments/Comments.jsx +5 -8
- package/src/components/theme/ContactForm/ContactForm.jsx +7 -4
- package/src/components/theme/ContentMetadataTags/ContentMetadataTags.jsx +4 -7
- package/src/components/theme/EventDetails/EventDetails.jsx +2 -2
- package/src/components/theme/Footer/Footer.jsx +3 -3
- package/src/components/theme/Header/Header.jsx +5 -7
- package/src/components/theme/Icon/Icon.stories.jsx +1 -1
- package/src/components/theme/Image/Image.jsx +1 -1
- package/src/components/theme/LanguageSelector/LanguageSelector.jsx +6 -7
- package/src/components/theme/Login/Login.jsx +6 -5
- package/src/components/theme/Logo/Logo.jsx +3 -6
- package/src/components/theme/Logout/Logout.jsx +3 -2
- package/src/components/theme/MultilingualRedirector/MultilingualRedirector.jsx +2 -2
- package/src/components/theme/Navigation/ContextNavigation.jsx +3 -2
- package/src/components/theme/Navigation/NavItem.jsx +2 -1
- package/src/components/theme/Navigation/Navigation.jsx +4 -2
- package/src/components/theme/Navigation/withContentNavigation.js +2 -2
- package/src/components/theme/NotFound/NotFound.jsx +6 -3
- package/src/components/theme/Pagination/Pagination.jsx +2 -2
- package/src/components/theme/PasswordReset/PasswordReset.jsx +2 -2
- package/src/components/theme/PasswordReset/RequestPasswordReset.jsx +3 -2
- package/src/components/theme/Register/Register.jsx +4 -3
- package/src/components/theme/Search/Search.jsx +7 -5
- package/src/components/theme/Search/SearchTags.jsx +1 -1
- package/src/components/theme/SearchWidget/SearchWidget.jsx +4 -3
- package/src/components/theme/Sitemap/Sitemap.jsx +4 -3
- package/src/components/theme/Unauthorized/Unauthorized.jsx +1 -1
- package/src/components/theme/View/AlbumView.jsx +2 -1
- package/src/components/theme/View/DefaultView.jsx +4 -3
- package/src/components/theme/View/EventDatesInfo.jsx +1 -1
- package/src/components/theme/View/EventView.jsx +3 -2
- package/src/components/theme/View/FileView.jsx +1 -1
- package/src/components/theme/View/ImageView.jsx +1 -1
- package/src/components/theme/View/LinkView.jsx +2 -2
- package/src/components/theme/View/ListingView.jsx +1 -1
- package/src/components/theme/View/NewsItemView.jsx +2 -1
- package/src/components/theme/View/RenderBlocks.jsx +6 -5
- package/src/components/theme/View/SummaryView.jsx +1 -1
- package/src/components/theme/View/TabularView.jsx +1 -1
- package/src/components/theme/View/View.jsx +9 -13
- package/src/components/theme/Widgets/BooleanWidget.jsx +1 -1
- package/src/components/theme/Widgets/DateWidget.jsx +1 -1
- package/src/components/theme/Widgets/DatetimeWidget.jsx +1 -1
- package/src/components/theme/Widgets/EmailWidget.jsx +1 -1
- package/src/components/theme/Widgets/FileWidget.jsx +2 -2
- package/src/components/theme/Widgets/ImageWidget.jsx +1 -1
- package/src/components/theme/Widgets/RelationWidget.jsx +4 -4
- package/src/components/theme/Widgets/TokenWidget.jsx +1 -1
- package/src/components/theme/Widgets/UrlWidget.jsx +1 -1
- package/src/config/Blocks.jsx +1 -1
- package/src/config/Components.jsx +3 -1
- package/src/config/index.js +1 -1
- package/src/config/slots.js +1 -1
- package/src/express-middleware/files.js +1 -1
- package/src/express-middleware/images.js +1 -1
- package/src/express-middleware/robotstxt.js +1 -1
- package/src/helpers/Api/Api.js +1 -1
- package/src/helpers/AsyncConnect/AsyncConnect.test.js +4 -1
- package/src/helpers/AuthToken/AuthToken.js +2 -2
- package/src/helpers/Blocks/Blocks.js +9 -3
- package/src/helpers/Blocks/cloneBlocks.test.js +1 -1
- package/src/helpers/Content/Content.js +7 -1
- package/src/helpers/Extensions/withBlockSchemaEnhancer.jsx +2 -1
- package/src/helpers/FormValidation/FormValidation.jsx +4 -1
- package/src/helpers/Html/Html.jsx +1 -1
- package/src/helpers/Loadable/Loadable.jsx +2 -2
- package/src/helpers/Site/index.js +1 -1
- package/src/helpers/Sitemap/Sitemap.js +2 -2
- package/src/helpers/Url/Url.js +5 -1
- package/src/helpers/User/User.js +1 -1
- package/src/helpers/Utils/UseDetectClickOutside.stories.jsx +1 -1
- package/src/helpers/Utils/Utils.jsx +5 -1
- package/src/helpers/Utils/useDetectClickOutside.js +1 -1
- package/src/helpers/Utils/usePagination.js +2 -1
- package/src/helpers/Workflows/Workflows.js +2 -1
- package/src/hooks/user/useUser.js +1 -1
- package/src/middleware/api.js +7 -4
- package/src/middleware/storeProtectLoadUtils.js +1 -1
- package/src/reducers/actions/actions.js +2 -5
- package/src/reducers/breadcrumbs/breadcrumbs.js +3 -6
- package/src/reducers/content/content.js +4 -2
- package/src/reducers/controlpanels/controlpanels.js +1 -1
- package/src/reducers/messages/messages.js +3 -1
- package/src/reducers/navigation/navigation.js +3 -6
- package/src/reducers/navroot/navroot.js +2 -5
- package/src/reducers/querystringsearch/querystringsearch.js +3 -2
- package/src/reducers/schema/schema.js +7 -1
- package/src/reducers/search/search.js +3 -2
- package/src/reducers/sidebar/sidebar.js +1 -1
- package/src/reducers/types/types.js +2 -5
- package/src/reducers/users/users.js +1 -1
- package/src/reducers/workingcopy/workingcopy.js +1 -1
- package/src/routes.js +24 -26
- package/src/server.jsx +7 -7
- package/src/start-client.jsx +3 -1
- package/src/storybook.jsx +1 -1
- package/types/config/Components.d.ts +3 -3
|
@@ -10,9 +10,10 @@ import { Link } from 'react-router-dom';
|
|
|
10
10
|
import jwtDecode from 'jwt-decode';
|
|
11
11
|
import { connect } from 'react-redux';
|
|
12
12
|
import { compose } from 'redux';
|
|
13
|
-
import
|
|
13
|
+
import doesNodeContainClick from 'semantic-ui-react/dist/commonjs/lib/doesNodeContainClick';
|
|
14
14
|
import { withCookies } from 'react-cookie';
|
|
15
|
-
import
|
|
15
|
+
import filter from 'lodash/filter';
|
|
16
|
+
import find from 'lodash/find';
|
|
16
17
|
import cx from 'classnames';
|
|
17
18
|
import config from '@plone/volto/registry';
|
|
18
19
|
|
|
@@ -22,19 +23,15 @@ import Types from '@plone/volto/components/manage/Toolbar/Types';
|
|
|
22
23
|
import PersonalInformation from '@plone/volto/components/manage/Preferences/PersonalInformation';
|
|
23
24
|
import PersonalPreferences from '@plone/volto/components/manage/Preferences/PersonalPreferences';
|
|
24
25
|
import StandardWrapper from '@plone/volto/components/manage/Toolbar/StandardWrapper';
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
|
|
34
|
-
getBaseUrl,
|
|
35
|
-
getCookieOptions,
|
|
36
|
-
hasApiExpander,
|
|
37
|
-
} from '@plone/volto/helpers';
|
|
26
|
+
import { getTypes } from '@plone/volto/actions/types/types';
|
|
27
|
+
import { listActions } from '@plone/volto/actions/actions/actions';
|
|
28
|
+
import { setExpandedToolbar } from '@plone/volto/actions/toolbar/toolbar';
|
|
29
|
+
import { unlockContent } from '@plone/volto/actions/content/content';
|
|
30
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
31
|
+
import BodyClass from '@plone/volto/helpers/BodyClass/BodyClass';
|
|
32
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
33
|
+
import { getCookieOptions } from '@plone/volto/helpers/Cookies/cookies';
|
|
34
|
+
import { hasApiExpander } from '@plone/volto/helpers/Utils/Utils';
|
|
38
35
|
import { Pluggable } from '@plone/volto/components/manage/Pluggable';
|
|
39
36
|
|
|
40
37
|
import penSVG from '@plone/volto/icons/pen.svg';
|
|
@@ -2,9 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { connect } from 'react-redux';
|
|
4
4
|
import { Link } from 'react-router-dom';
|
|
5
|
-
import
|
|
5
|
+
import filter from 'lodash/filter';
|
|
6
|
+
import find from 'lodash/find';
|
|
7
|
+
import isEmpty from 'lodash/isEmpty';
|
|
8
|
+
import map from 'lodash/map';
|
|
6
9
|
import { FormattedMessage } from 'react-intl';
|
|
7
|
-
import { flattenToAppURL
|
|
10
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
11
|
+
import langmap from '@plone/volto/helpers/LanguageMap/LanguageMap';
|
|
12
|
+
import { toBackendLang } from '@plone/volto/helpers/Utils/Utils';
|
|
8
13
|
import config from '@plone/volto/registry';
|
|
9
14
|
|
|
10
15
|
const Types = ({ types, pathname, content, currentLanguage }) => {
|
|
@@ -9,14 +9,15 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { compose } from 'redux';
|
|
10
10
|
import { connect } from 'react-redux';
|
|
11
11
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
12
|
-
import
|
|
12
|
+
import find from 'lodash/find';
|
|
13
|
+
import isObject from 'lodash/isObject';
|
|
13
14
|
|
|
14
15
|
import {
|
|
15
16
|
getVocabFromHint,
|
|
16
17
|
getVocabFromField,
|
|
17
18
|
getVocabFromItems,
|
|
18
|
-
} from '@plone/volto/helpers';
|
|
19
|
-
import { getVocabulary } from '@plone/volto/actions';
|
|
19
|
+
} from '@plone/volto/helpers/Vocabularies/Vocabularies';
|
|
20
|
+
import { getVocabulary } from '@plone/volto/actions/vocabularies/vocabularies';
|
|
20
21
|
|
|
21
22
|
import {
|
|
22
23
|
Option,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
3
|
-
import
|
|
3
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
4
4
|
import { Button } from 'semantic-ui-react';
|
|
5
5
|
|
|
6
6
|
// The ButtonsWidget
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Form } from 'semantic-ui-react';
|
|
3
3
|
import { Grid, Button } from 'semantic-ui-react';
|
|
4
|
-
import
|
|
4
|
+
import isEmpty from 'lodash/isEmpty';
|
|
5
|
+
import isEqual from 'lodash/isEqual';
|
|
5
6
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
7
|
|
|
7
8
|
const messages = defineMessages({
|
|
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { defineMessages, useIntl } from 'react-intl';
|
|
4
4
|
import loadable from '@loadable/component';
|
|
5
5
|
import cx from 'classnames';
|
|
6
|
-
import
|
|
6
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
7
7
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
8
|
-
import { parseDateTime, toBackendLang } from '@plone/volto/helpers';
|
|
8
|
+
import { parseDateTime, toBackendLang } from '@plone/volto/helpers/Utils/Utils';
|
|
9
9
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
10
10
|
|
|
11
11
|
import leftKey from '@plone/volto/icons/left-key.svg';
|
|
@@ -9,10 +9,12 @@ import { Button, Image, Dimmer } from 'semantic-ui-react';
|
|
|
9
9
|
import { readAsDataURL } from 'promise-file-reader';
|
|
10
10
|
import { injectIntl } from 'react-intl';
|
|
11
11
|
import deleteSVG from '@plone/volto/icons/delete.svg';
|
|
12
|
-
import
|
|
12
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
13
|
+
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
13
14
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
14
15
|
import loadable from '@loadable/component';
|
|
15
|
-
import { flattenToAppURL
|
|
16
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
17
|
+
import { validateFileUploadSize } from '@plone/volto/helpers/FormValidation/FormValidation';
|
|
16
18
|
import { defineMessages, useIntl } from 'react-intl';
|
|
17
19
|
|
|
18
20
|
const imageMimetypes = [
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import { Form, Grid, Icon as IconOld, Label } from 'semantic-ui-react';
|
|
8
|
-
import
|
|
8
|
+
import map from 'lodash/map';
|
|
9
9
|
import cx from 'classnames';
|
|
10
10
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
11
11
|
import LanguageSVG from '@plone/volto/icons/language.svg';
|
|
12
|
-
import
|
|
12
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
13
13
|
|
|
14
14
|
const messages = defineMessages({
|
|
15
15
|
edit: {
|
|
@@ -7,13 +7,17 @@ import { useState, useEffect, useRef } from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { useSelector, useDispatch } from 'react-redux';
|
|
9
9
|
import { Input } from 'semantic-ui-react';
|
|
10
|
-
import
|
|
10
|
+
import compact from 'lodash/compact';
|
|
11
|
+
import concat from 'lodash/concat';
|
|
12
|
+
import map from 'lodash/map';
|
|
13
|
+
import union from 'lodash/union';
|
|
14
|
+
import uniq from 'lodash/uniq';
|
|
11
15
|
|
|
12
16
|
import { defineMessages, useIntl } from 'react-intl';
|
|
13
|
-
import
|
|
17
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
14
18
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
15
19
|
import config from '@plone/volto/registry';
|
|
16
|
-
import { getQuerystring } from '@plone/volto/actions';
|
|
20
|
+
import { getQuerystring } from '@plone/volto/actions/querystring/querystring';
|
|
17
21
|
|
|
18
22
|
const messages = defineMessages({
|
|
19
23
|
reservedId: {
|
|
@@ -13,12 +13,13 @@ import {
|
|
|
13
13
|
flattenToAppURL,
|
|
14
14
|
getBaseUrl,
|
|
15
15
|
isInternalURL,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from '@plone/volto/helpers';
|
|
19
|
-
import { createContent } from '@plone/volto/actions';
|
|
16
|
+
} from '@plone/volto/helpers/Url/Url';
|
|
17
|
+
import { validateFileUploadSize } from '@plone/volto/helpers/FormValidation/FormValidation';
|
|
18
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
19
|
+
import { createContent } from '@plone/volto/actions/content/content';
|
|
20
20
|
import { readAsDataURL } from 'promise-file-reader';
|
|
21
|
-
import
|
|
21
|
+
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
22
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
22
23
|
|
|
23
24
|
import imageBlockSVG from '@plone/volto/components/manage/Blocks/Image/block-image.svg';
|
|
24
25
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
@@ -6,9 +6,13 @@
|
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { Input, Button } from 'semantic-ui-react';
|
|
9
|
-
import
|
|
9
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
10
10
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
isInternalURL,
|
|
13
|
+
flattenToAppURL,
|
|
14
|
+
URLUtils,
|
|
15
|
+
} from '@plone/volto/helpers/Url/Url';
|
|
12
16
|
import withObjectBrowser from '@plone/volto/components/manage/Sidebar/ObjectBrowser';
|
|
13
17
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
14
18
|
import navTreeSVG from '@plone/volto/icons/nav.svg';
|
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { compose } from 'redux';
|
|
9
|
-
import
|
|
9
|
+
import compact from 'lodash/compact';
|
|
10
|
+
import includes from 'lodash/includes';
|
|
11
|
+
import isArray from 'lodash/isArray';
|
|
12
|
+
import isEmpty from 'lodash/isEmpty';
|
|
13
|
+
import remove from 'lodash/remove';
|
|
10
14
|
import { connect } from 'react-redux';
|
|
11
15
|
import { Image, Label, Popup, Button } from 'semantic-ui-react';
|
|
12
16
|
import {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import { Accordion, Button, Segment } from 'semantic-ui-react';
|
|
4
|
-
import
|
|
4
|
+
import DragDropList from '@plone/volto/components/manage/DragDropList/DragDropList';
|
|
5
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
5
6
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
6
|
-
import { applySchemaDefaults
|
|
7
|
+
import { applySchemaDefaults } from '@plone/volto/helpers/Blocks/Blocks';
|
|
8
|
+
import { reorderArray } from '@plone/volto/helpers/Utils/Utils';
|
|
7
9
|
import ObjectWidget from '@plone/volto/components/manage/Widgets/ObjectWidget';
|
|
8
10
|
|
|
9
11
|
import upSVG from '@plone/volto/icons/up-key.svg';
|
|
@@ -3,7 +3,7 @@ import { RealStoreWrapper, FormUndoWrapper } from '@plone/volto/storybook';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { searchResults } from './ObjectBrowserWidget.stories';
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
7
7
|
|
|
8
8
|
const defaultSchema = {
|
|
9
9
|
title: 'Item',
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
3
|
-
import
|
|
3
|
+
import toPairs from 'lodash/toPairs';
|
|
4
|
+
import groupBy from 'lodash/groupBy';
|
|
5
|
+
import map from 'lodash/map';
|
|
4
6
|
import { defineMessages, useIntl } from 'react-intl';
|
|
5
7
|
import { useSelector } from 'react-redux';
|
|
6
8
|
|
|
@@ -8,10 +8,15 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { compose } from 'redux';
|
|
9
9
|
import { connect } from 'react-redux';
|
|
10
10
|
import { Button, Form, Grid, Input, Label } from 'semantic-ui-react';
|
|
11
|
-
import
|
|
11
|
+
import filter from 'lodash/filter';
|
|
12
|
+
import remove from 'lodash/remove';
|
|
13
|
+
import toPairs from 'lodash/toPairs';
|
|
14
|
+
import groupBy from 'lodash/groupBy';
|
|
15
|
+
import isEmpty from 'lodash/isEmpty';
|
|
16
|
+
import map from 'lodash/map';
|
|
12
17
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
13
|
-
import { getQuerystring } from '@plone/volto/actions';
|
|
14
|
-
import
|
|
18
|
+
import { getQuerystring } from '@plone/volto/actions/querystring/querystring';
|
|
19
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
15
20
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
16
21
|
import cx from 'classnames';
|
|
17
22
|
import config from '@plone/volto/registry';
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { Form, Grid, Button } from 'semantic-ui-react';
|
|
9
9
|
import { Days } from './Utils';
|
|
10
|
-
import { toBackendLang } from '@plone/volto/helpers';
|
|
10
|
+
import { toBackendLang } from '@plone/volto/helpers/Utils/Utils';
|
|
11
11
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
12
12
|
import { useSelector } from 'react-redux';
|
|
13
13
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import
|
|
8
|
+
import map from 'lodash/map';
|
|
9
9
|
import { Form } from 'semantic-ui-react';
|
|
10
10
|
import SelectInput from './SelectInput';
|
|
11
|
-
import { toBackendLang } from '@plone/volto/helpers';
|
|
11
|
+
import { toBackendLang } from '@plone/volto/helpers/Utils/Utils';
|
|
12
12
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
13
13
|
import { useSelector } from 'react-redux';
|
|
14
14
|
|
|
@@ -8,10 +8,10 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
9
9
|
import cx from 'classnames';
|
|
10
10
|
import { List, Button, Header, Label } from 'semantic-ui-react';
|
|
11
|
-
import
|
|
11
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
12
12
|
import addSVG from '@plone/volto/icons/circle-plus.svg';
|
|
13
13
|
import trashSVG from '@plone/volto/icons/delete.svg';
|
|
14
|
-
import { toBackendLang } from '@plone/volto/helpers';
|
|
14
|
+
import { toBackendLang } from '@plone/volto/helpers/Utils/Utils';
|
|
15
15
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
16
16
|
|
|
17
17
|
import { useSelector } from 'react-redux';
|
|
@@ -9,7 +9,11 @@ import { compose } from 'redux';
|
|
|
9
9
|
import { connect } from 'react-redux';
|
|
10
10
|
|
|
11
11
|
import cx from 'classnames';
|
|
12
|
-
import
|
|
12
|
+
import isEqual from 'lodash/isEqual';
|
|
13
|
+
import map from 'lodash/map';
|
|
14
|
+
import find from 'lodash/find';
|
|
15
|
+
import concat from 'lodash/concat';
|
|
16
|
+
import remove from 'lodash/remove';
|
|
13
17
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
14
18
|
import {
|
|
15
19
|
Form,
|
|
@@ -21,10 +25,10 @@ import {
|
|
|
21
25
|
Header,
|
|
22
26
|
} from 'semantic-ui-react';
|
|
23
27
|
|
|
24
|
-
import
|
|
28
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
25
29
|
import DatetimeWidget from '@plone/volto/components/manage/Widgets/DatetimeWidget';
|
|
26
30
|
import SelectWidget from '@plone/volto/components/manage/Widgets/SelectWidget';
|
|
27
|
-
import { toBackendLang } from '@plone/volto/helpers';
|
|
31
|
+
import { toBackendLang } from '@plone/volto/helpers/Utils/Utils';
|
|
28
32
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
29
33
|
|
|
30
34
|
import saveSVG from '@plone/volto/icons/save.svg';
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import
|
|
7
|
+
import map from 'lodash/map';
|
|
8
8
|
import { Days } from './Utils';
|
|
9
9
|
import SelectInput from './SelectInput';
|
|
10
10
|
import { Form } from 'semantic-ui-react';
|
|
11
|
-
import { toBackendLang } from '@plone/volto/helpers';
|
|
11
|
+
import { toBackendLang } from '@plone/volto/helpers/Utils/Utils';
|
|
12
12
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
13
13
|
import { useSelector } from 'react-redux';
|
|
14
14
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
9
|
-
import
|
|
9
|
+
import map from 'lodash/map';
|
|
10
10
|
import { Form } from 'semantic-ui-react';
|
|
11
11
|
import SelectInput from './SelectInput';
|
|
12
12
|
|
|
@@ -2,12 +2,20 @@ import { useState, useEffect } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
4
|
import { Label, Dropdown, Popup, Icon } from 'semantic-ui-react';
|
|
5
|
-
import
|
|
5
|
+
import compact from 'lodash/compact';
|
|
6
|
+
import concat from 'lodash/concat';
|
|
7
|
+
import fromPairs from 'lodash/fromPairs';
|
|
8
|
+
import map from 'lodash/map';
|
|
9
|
+
import values from 'lodash/values';
|
|
10
|
+
import uniqBy from 'lodash/uniqBy';
|
|
6
11
|
import { defineMessages, useIntl } from 'react-intl';
|
|
7
12
|
|
|
8
13
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
9
|
-
import {
|
|
10
|
-
|
|
14
|
+
import {
|
|
15
|
+
resetSearchContent,
|
|
16
|
+
searchContent,
|
|
17
|
+
} from '@plone/volto/actions/search/search';
|
|
18
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
11
19
|
|
|
12
20
|
const messages = defineMessages({
|
|
13
21
|
no_results_found: {
|
|
@@ -9,11 +9,12 @@ import { Button, Image, Dimmer } from 'semantic-ui-react';
|
|
|
9
9
|
import { readAsDataURL } from 'promise-file-reader';
|
|
10
10
|
import { injectIntl } from 'react-intl';
|
|
11
11
|
import deleteSVG from '@plone/volto/icons/delete.svg';
|
|
12
|
-
import
|
|
12
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
13
13
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
14
14
|
import loadable from '@loadable/component';
|
|
15
15
|
import { defineMessages, useIntl } from 'react-intl';
|
|
16
|
-
import { toPublicURL
|
|
16
|
+
import { toPublicURL } from '@plone/volto/helpers/Url/Url';
|
|
17
|
+
import { validateFileUploadSize } from '@plone/volto/helpers/FormValidation/FormValidation';
|
|
17
18
|
|
|
18
19
|
const imageMimetypes = [
|
|
19
20
|
'image/png',
|
|
@@ -7,7 +7,13 @@ import React, { Component } from 'react';
|
|
|
7
7
|
import { connect } from 'react-redux';
|
|
8
8
|
import { compose } from 'redux';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import
|
|
10
|
+
import concat from 'lodash/concat';
|
|
11
|
+
import findIndex from 'lodash/findIndex';
|
|
12
|
+
import isString from 'lodash/isString';
|
|
13
|
+
import map from 'lodash/map';
|
|
14
|
+
import omit from 'lodash/omit';
|
|
15
|
+
import slice from 'lodash/slice';
|
|
16
|
+
import without from 'lodash/without';
|
|
11
17
|
import move from 'lodash-move';
|
|
12
18
|
import { Confirm, Form, Grid, Icon, Message, Segment } from 'semantic-ui-react';
|
|
13
19
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
@@ -19,8 +19,11 @@ import {
|
|
|
19
19
|
getVocabFromHint,
|
|
20
20
|
getVocabFromField,
|
|
21
21
|
getVocabFromItems,
|
|
22
|
-
} from '@plone/volto/helpers';
|
|
23
|
-
import {
|
|
22
|
+
} from '@plone/volto/helpers/Vocabularies/Vocabularies';
|
|
23
|
+
import {
|
|
24
|
+
getVocabulary,
|
|
25
|
+
getVocabularyTokenTitle,
|
|
26
|
+
} from '@plone/volto/actions/vocabularies/vocabularies';
|
|
24
27
|
|
|
25
28
|
import {
|
|
26
29
|
Option,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Popup } from 'semantic-ui-react';
|
|
3
3
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
4
|
-
import
|
|
4
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
5
5
|
import DynamicHeightList from '@plone/volto/components/manage/ReactVirtualized/DynamicRowHeightList';
|
|
6
6
|
|
|
7
7
|
import downSVG from '@plone/volto/icons/down-key.svg';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import isBoolean from 'lodash/isBoolean';
|
|
2
|
+
import isObject from 'lodash/isObject';
|
|
3
|
+
import isString from 'lodash/isString';
|
|
4
|
+
import { getBoolean } from '@plone/volto/helpers/Vocabularies/Vocabularies';
|
|
3
5
|
import { defineMessages } from 'react-intl';
|
|
4
6
|
|
|
5
7
|
const messages = defineMessages({
|
|
@@ -7,15 +7,18 @@ import React, { Component } from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { connect } from 'react-redux';
|
|
9
9
|
import { compose } from 'redux';
|
|
10
|
-
import
|
|
10
|
+
import map from 'lodash/map';
|
|
11
11
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
12
12
|
import {
|
|
13
13
|
getVocabFromHint,
|
|
14
14
|
getVocabFromField,
|
|
15
15
|
getVocabFromItems,
|
|
16
|
-
} from '@plone/volto/helpers';
|
|
16
|
+
} from '@plone/volto/helpers/Vocabularies/Vocabularies';
|
|
17
17
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
18
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
getVocabulary,
|
|
20
|
+
getVocabularyTokenTitle,
|
|
21
|
+
} from '@plone/volto/actions/vocabularies/vocabularies';
|
|
19
22
|
import { normalizeValue } from '@plone/volto/components/manage/Widgets/SelectUtils';
|
|
20
23
|
|
|
21
24
|
import {
|
|
@@ -4,7 +4,7 @@ import WidgetStory from './story';
|
|
|
4
4
|
|
|
5
5
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
6
6
|
import checkSVG from '@plone/volto/icons/check.svg';
|
|
7
|
-
import
|
|
7
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
8
8
|
|
|
9
9
|
import bellRingingSVG from '@plone/volto/icons/bell-ringing.svg';
|
|
10
10
|
import blogSVG from '@plone/volto/icons/blog.svg';
|
|
@@ -2,7 +2,7 @@ import { useEffect, useRef } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Input } from 'semantic-ui-react';
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
6
6
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
7
7
|
|
|
8
8
|
const TextWidget = (props) => {
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
getVocabFromHint,
|
|
13
13
|
getVocabFromField,
|
|
14
14
|
getVocabFromItems,
|
|
15
|
-
} from '@plone/volto/helpers';
|
|
16
|
-
import { getVocabulary } from '@plone/volto/actions';
|
|
15
|
+
} from '@plone/volto/helpers/Vocabularies/Vocabularies';
|
|
16
|
+
import { getVocabulary } from '@plone/volto/actions/vocabularies/vocabularies';
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
19
|
Option,
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { Input, Button } from 'semantic-ui-react';
|
|
9
|
-
import
|
|
9
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
10
10
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
11
11
|
import {
|
|
12
12
|
addAppURL,
|
|
13
13
|
isInternalURL,
|
|
14
14
|
flattenToAppURL,
|
|
15
15
|
URLUtils,
|
|
16
|
-
} from '@plone/volto/helpers';
|
|
16
|
+
} from '@plone/volto/helpers/Url/Url';
|
|
17
17
|
import withObjectBrowser from '@plone/volto/components/manage/Sidebar/ObjectBrowser';
|
|
18
18
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
19
19
|
import navTreeSVG from '@plone/volto/icons/nav.svg';
|
|
@@ -84,16 +84,19 @@ def TalkTypesVocabulary(context):
|
|
|
84
84
|
|
|
85
85
|
import React from 'react';
|
|
86
86
|
import { useDispatch } from 'react-redux';
|
|
87
|
-
import
|
|
87
|
+
import find from 'lodash/find';
|
|
88
|
+
import findIndex from 'lodash/findIndex';
|
|
89
|
+
import remove from 'lodash/remove';
|
|
88
90
|
import { defineMessages, useIntl } from 'react-intl';
|
|
89
91
|
import { v4 as uuid } from 'uuid';
|
|
90
92
|
|
|
91
93
|
import { Button } from 'semantic-ui-react';
|
|
92
94
|
|
|
93
|
-
import
|
|
95
|
+
import DragDropList from '@plone/volto/components/manage/DragDropList/DragDropList';
|
|
96
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
94
97
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
95
98
|
import ObjectWidget from '@plone/volto/components/manage/Widgets/ObjectWidget';
|
|
96
|
-
import
|
|
99
|
+
import langmap from '@plone/volto/helpers/LanguageMap/LanguageMap';
|
|
97
100
|
|
|
98
101
|
import deleteSVG from '@plone/volto/icons/delete.svg';
|
|
99
102
|
import addSVG from '@plone/volto/icons/add.svg';
|
|
@@ -2,24 +2,25 @@ import { useEffect } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { compose } from 'redux';
|
|
4
4
|
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
5
|
-
import
|
|
5
|
+
import uniqBy from 'lodash/uniqBy';
|
|
6
6
|
import { toast } from 'react-toastify';
|
|
7
7
|
import { defineMessages, useIntl } from 'react-intl';
|
|
8
8
|
|
|
9
|
-
import
|
|
9
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
10
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
10
11
|
import { FormFieldWrapper } from '@plone/volto/components/manage/Widgets';
|
|
12
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
11
13
|
import {
|
|
12
|
-
flattenToAppURL,
|
|
13
14
|
getWorkflowOptions,
|
|
14
15
|
getCurrentStateMapping,
|
|
15
|
-
} from '@plone/volto/helpers';
|
|
16
|
+
} from '@plone/volto/helpers/Workflows/Workflows';
|
|
16
17
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
17
18
|
|
|
19
|
+
import { getContent } from '@plone/volto/actions/content/content';
|
|
18
20
|
import {
|
|
19
|
-
getContent,
|
|
20
21
|
getWorkflow,
|
|
21
22
|
transitionWorkflow,
|
|
22
|
-
} from '@plone/volto/actions';
|
|
23
|
+
} from '@plone/volto/actions/workflow/workflow';
|
|
23
24
|
import downSVG from '@plone/volto/icons/down-key.svg';
|
|
24
25
|
import upSVG from '@plone/volto/icons/up-key.svg';
|
|
25
26
|
import checkSVG from '@plone/volto/icons/check.svg';
|