@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
|
@@ -3,34 +3,33 @@
|
|
|
3
3
|
* @module components/manage/Form/Form
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
7
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
7
8
|
import { Field, BlocksForm } from '@plone/volto/components/manage/Form';
|
|
8
9
|
import BlocksToolbar from '@plone/volto/components/manage/Form/BlocksToolbar';
|
|
9
10
|
import UndoToolbar from '@plone/volto/components/manage/Form/UndoToolbar';
|
|
11
|
+
import { difference } from '@plone/volto/helpers/Utils/Utils';
|
|
12
|
+
import FormValidation from '@plone/volto/helpers/FormValidation/FormValidation';
|
|
10
13
|
import {
|
|
11
|
-
difference,
|
|
12
|
-
FormValidation,
|
|
13
14
|
getBlocksFieldname,
|
|
14
15
|
getBlocksLayoutFieldname,
|
|
15
16
|
hasBlocksData,
|
|
16
|
-
|
|
17
|
-
} from '@plone/volto/helpers';
|
|
17
|
+
} from '@plone/volto/helpers/Blocks/Blocks';
|
|
18
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
18
19
|
import aheadSVG from '@plone/volto/icons/ahead.svg';
|
|
19
20
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
20
21
|
import upSVG from '@plone/volto/icons/up-key.svg';
|
|
21
22
|
import downSVG from '@plone/volto/icons/down-key.svg';
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
xor,
|
|
33
|
-
} from 'lodash';
|
|
23
|
+
import findIndex from 'lodash/findIndex';
|
|
24
|
+
import isEmpty from 'lodash/isEmpty';
|
|
25
|
+
import isEqual from 'lodash/isEqual';
|
|
26
|
+
import keys from 'lodash/keys';
|
|
27
|
+
import map from 'lodash/map';
|
|
28
|
+
import mapValues from 'lodash/mapValues';
|
|
29
|
+
import pickBy from 'lodash/pickBy';
|
|
30
|
+
import without from 'lodash/without';
|
|
31
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
32
|
+
import xor from 'lodash/xor';
|
|
34
33
|
import isBoolean from 'lodash/isBoolean';
|
|
35
34
|
import PropTypes from 'prop-types';
|
|
36
35
|
import React, { Component } from 'react';
|
|
@@ -52,9 +51,8 @@ import {
|
|
|
52
51
|
setMetadataFieldsets,
|
|
53
52
|
resetMetadataFocus,
|
|
54
53
|
setSidebarTab,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
} from '@plone/volto/actions';
|
|
54
|
+
} from '@plone/volto/actions/sidebar/sidebar';
|
|
55
|
+
import { setFormData, setUIState } from '@plone/volto/actions/form/form';
|
|
58
56
|
import { compose } from 'redux';
|
|
59
57
|
import config from '@plone/volto/registry';
|
|
60
58
|
import SlotRenderer from '@plone/volto/components/theme/SlotRenderer/SlotRenderer';
|
|
@@ -3,7 +3,9 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { Accordion, Segment, Message } from 'semantic-ui-react';
|
|
4
4
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
5
5
|
import AnimateHeight from 'react-animate-height';
|
|
6
|
-
import
|
|
6
|
+
import keys from 'lodash/keys';
|
|
7
|
+
import map from 'lodash/map';
|
|
8
|
+
import isEqual from 'lodash/isEqual';
|
|
7
9
|
import { useAtom } from 'jotai';
|
|
8
10
|
import { inlineFormFieldsetsState } from './InlineFormState';
|
|
9
11
|
import {
|
|
@@ -11,9 +13,9 @@ import {
|
|
|
11
13
|
removeFromArray,
|
|
12
14
|
arrayRange,
|
|
13
15
|
} from '@plone/volto/helpers/Utils/Utils';
|
|
14
|
-
import
|
|
16
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
15
17
|
import { Field } from '@plone/volto/components/manage/Form';
|
|
16
|
-
import { applySchemaDefaults } from '@plone/volto/helpers';
|
|
18
|
+
import { applySchemaDefaults } from '@plone/volto/helpers/Blocks/Blocks';
|
|
17
19
|
|
|
18
20
|
import upSVG from '@plone/volto/icons/up-key.svg';
|
|
19
21
|
import downSVG from '@plone/volto/icons/down-key.svg';
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import
|
|
8
|
+
import keys from 'lodash/keys';
|
|
9
|
+
import map from 'lodash/map';
|
|
9
10
|
import {
|
|
10
11
|
Button,
|
|
11
12
|
Form as UiForm,
|
|
@@ -17,8 +18,8 @@ import {
|
|
|
17
18
|
Loader,
|
|
18
19
|
} from 'semantic-ui-react';
|
|
19
20
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
20
|
-
import
|
|
21
|
-
import
|
|
21
|
+
import FormValidation from '@plone/volto/helpers/FormValidation/FormValidation';
|
|
22
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
22
23
|
import { Field } from '@plone/volto/components/manage/Form';
|
|
23
24
|
import aheadSVG from '@plone/volto/icons/ahead.svg';
|
|
24
25
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import { Plug } from '@plone/volto/components/manage/Pluggable';
|
|
4
|
-
import
|
|
4
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
5
5
|
import { Button } from 'semantic-ui-react';
|
|
6
|
-
import
|
|
6
|
+
import useUndoManager from '@plone/volto/helpers/UndoManager/useUndoManager';
|
|
7
7
|
import config from '@plone/volto/registry';
|
|
8
8
|
|
|
9
9
|
import undoSVG from '@plone/volto/icons/undo.svg';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import
|
|
8
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
9
9
|
import { Link } from 'react-router-dom';
|
|
10
10
|
import { connect } from 'react-redux';
|
|
11
11
|
import { compose } from 'redux';
|
|
@@ -16,20 +16,25 @@ import {
|
|
|
16
16
|
Segment,
|
|
17
17
|
Table,
|
|
18
18
|
} from 'semantic-ui-react';
|
|
19
|
-
import
|
|
19
|
+
import concat from 'lodash/concat';
|
|
20
|
+
import map from 'lodash/map';
|
|
21
|
+
import reverse from 'lodash/reverse';
|
|
22
|
+
import find from 'lodash/find';
|
|
20
23
|
import { createPortal } from 'react-dom';
|
|
21
24
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
22
|
-
import { asyncConnect } from '@plone/volto/helpers';
|
|
25
|
+
import { asyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
23
26
|
|
|
27
|
+
import FormattedDate from '@plone/volto/components/theme/FormattedDate/FormattedDate';
|
|
28
|
+
import IconNext from '@plone/volto/components/theme/Icon/Icon';
|
|
29
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
30
|
+
import Forbidden from '@plone/volto/components/theme/Forbidden/Forbidden';
|
|
31
|
+
import Unauthorized from '@plone/volto/components/theme/Unauthorized/Unauthorized';
|
|
24
32
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from '@plone/volto/components';
|
|
31
|
-
import { getHistory, revertHistory, listActions } from '@plone/volto/actions';
|
|
32
|
-
import { getBaseUrl } from '@plone/volto/helpers';
|
|
33
|
+
getHistory,
|
|
34
|
+
revertHistory,
|
|
35
|
+
} from '@plone/volto/actions/history/history';
|
|
36
|
+
import { listActions } from '@plone/volto/actions/actions/actions';
|
|
37
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
33
38
|
import config from '@plone/volto/registry';
|
|
34
39
|
|
|
35
40
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { flattenToAppURL, isInternalURL } from '@plone/volto/helpers/Url/Url';
|
|
4
|
+
import ConditionalLink from '@plone/volto/components/manage/ConditionalLink/ConditionalLink';
|
|
5
|
+
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
6
6
|
|
|
7
7
|
const LinkMore = ({ data, isEditMode }) => {
|
|
8
8
|
let href = data.linkHref?.[0]?.['@id'] || '';
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
* @module components/manage/LinksToItem/LinksToItem
|
|
4
4
|
*/
|
|
5
5
|
import React, { useEffect, useState } from 'react';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import find from 'lodash/find';
|
|
7
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
8
8
|
import { Link } from 'react-router-dom';
|
|
9
9
|
import { createPortal } from 'react-dom';
|
|
10
10
|
import { Container, Segment, Table } from 'semantic-ui-react';
|
|
11
11
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
12
12
|
import { useDispatch, useSelector } from 'react-redux';
|
|
13
|
-
import { getContent
|
|
14
|
-
import {
|
|
13
|
+
import { getContent } from '@plone/volto/actions/content/content';
|
|
14
|
+
import { queryRelations } from '@plone/volto/actions/relations/relations';
|
|
15
|
+
import { listActions } from '@plone/volto/actions/actions/actions';
|
|
16
|
+
import { asyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
15
17
|
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Unauthorized,
|
|
21
|
-
} from '@plone/volto/components';
|
|
18
|
+
import IconNext from '@plone/volto/components/theme/Icon/Icon';
|
|
19
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
20
|
+
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
21
|
+
import Unauthorized from '@plone/volto/components/theme/Unauthorized/Unauthorized';
|
|
22
22
|
|
|
23
|
-
import { getBaseUrl } from '@plone/volto/helpers';
|
|
23
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
24
24
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
25
25
|
import settingsSVG from '@plone/volto/icons/settings.svg';
|
|
26
26
|
|
|
@@ -3,7 +3,8 @@ import { toast } from 'react-toastify';
|
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
import { useLocation } from 'react-router-dom';
|
|
5
5
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
|
-
import
|
|
6
|
+
import FormattedDate from '@plone/volto/components/theme/FormattedDate/FormattedDate';
|
|
7
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
7
8
|
import useDeepCompareEffect from 'use-deep-compare-effect';
|
|
8
9
|
|
|
9
10
|
const messages = defineMessages({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
2
2
|
import { Message, Container } from 'semantic-ui-react';
|
|
3
|
-
import
|
|
3
|
+
import map from 'lodash/map';
|
|
4
4
|
|
|
5
|
-
import { removeMessage } from '@plone/volto/actions';
|
|
5
|
+
import { removeMessage } from '@plone/volto/actions/messages/messages';
|
|
6
6
|
|
|
7
7
|
const Messages = () => {
|
|
8
8
|
const dispatch = useDispatch();
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import config from '@plone/volto/registry';
|
|
4
|
-
import
|
|
4
|
+
import langmap from '@plone/volto/helpers/LanguageMap/LanguageMap';
|
|
5
|
+
import { useDetectClickOutside } from '@plone/volto/helpers/Utils/useDetectClickOutside';
|
|
5
6
|
|
|
6
|
-
import
|
|
7
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
7
8
|
import { Button } from 'semantic-ui-react';
|
|
8
9
|
import translateSVG from '@plone/volto/icons/translate.svg';
|
|
9
10
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Redirect } from 'react-router-dom';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from '@plone/volto/
|
|
9
|
-
import { flattenToAppURL, toGettextLang } from '@plone/volto/helpers';
|
|
4
|
+
import { changeLanguage } from '@plone/volto/actions/language/language';
|
|
5
|
+
import { getTranslationLocator } from '@plone/volto/actions/translations/translations';
|
|
6
|
+
import { getContent } from '@plone/volto/actions/content/content';
|
|
7
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
8
|
+
import { toGettextLang } from '@plone/volto/helpers/Utils/Utils';
|
|
10
9
|
import config from '@plone/volto/registry';
|
|
11
10
|
|
|
12
11
|
const CreateTranslation = (props) => {
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { Button, Container, Segment, Table } from 'semantic-ui-react';
|
|
3
|
-
import
|
|
4
|
-
import { flattenToAppURL, getBaseUrl
|
|
5
|
-
import
|
|
3
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
4
|
+
import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
5
|
+
import langmap from '@plone/volto/helpers/LanguageMap/LanguageMap';
|
|
6
|
+
import reduce from 'lodash/reduce';
|
|
6
7
|
import { Link, useLocation } from 'react-router-dom';
|
|
7
|
-
import
|
|
8
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
9
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
10
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
8
11
|
import config from '@plone/volto/registry';
|
|
9
12
|
|
|
10
13
|
import withObjectBrowser from '@plone/volto/components/manage/Sidebar/ObjectBrowser';
|
|
11
14
|
import {
|
|
12
15
|
deleteLinkTranslation,
|
|
13
|
-
getContent,
|
|
14
16
|
linkTranslation,
|
|
15
|
-
} from '@plone/volto/actions';
|
|
17
|
+
} from '@plone/volto/actions/translations/translations';
|
|
18
|
+
import { getContent } from '@plone/volto/actions/content/content';
|
|
16
19
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
17
20
|
import { useSelector, useDispatch } from 'react-redux';
|
|
18
21
|
import { createPortal } from 'react-dom';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import map from 'lodash/map';
|
|
3
3
|
import { defineMessages, useIntl } from 'react-intl';
|
|
4
4
|
import { Form as UiForm, Menu, Segment } from 'semantic-ui-react';
|
|
5
5
|
import { Provider } from 'react-intl-redux';
|
|
6
6
|
import { Form, Field } from '@plone/volto/components/manage/Form';
|
|
7
7
|
import config from '@plone/volto/registry';
|
|
8
8
|
import configureStore from '@plone/volto/store';
|
|
9
|
+
import Api from '@plone/volto/helpers/Api/Api';
|
|
10
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
11
|
+
import langmap from '@plone/volto/helpers/LanguageMap/LanguageMap';
|
|
9
12
|
import {
|
|
10
|
-
Api,
|
|
11
|
-
flattenToAppURL,
|
|
12
|
-
langmap,
|
|
13
13
|
toGettextLang,
|
|
14
14
|
toReactIntlLang,
|
|
15
|
-
} from '@plone/volto/helpers';
|
|
15
|
+
} from '@plone/volto/helpers/Utils/Utils';
|
|
16
16
|
import { createBrowserHistory } from 'history';
|
|
17
17
|
|
|
18
18
|
const messages = defineMessages({
|
|
@@ -6,11 +6,14 @@ import { Container } from 'semantic-ui-react';
|
|
|
6
6
|
import jwtDecode from 'jwt-decode';
|
|
7
7
|
import { toast } from 'react-toastify';
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import { useClient } from '@plone/volto/hooks';
|
|
11
|
-
import { Form
|
|
12
|
-
import
|
|
13
|
-
import
|
|
9
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
10
|
+
import { useClient } from '@plone/volto/hooks/client/useClient';
|
|
11
|
+
import { Form } from '@plone/volto/components/manage/Form';
|
|
12
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
13
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
14
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
15
|
+
import { updatePassword } from '@plone/volto/actions/users/users';
|
|
16
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
14
17
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
15
18
|
|
|
16
19
|
const messages = defineMessages({
|
|
@@ -5,10 +5,11 @@ import { useIntl } from 'react-intl';
|
|
|
5
5
|
import { useHistory } from 'react-router-dom';
|
|
6
6
|
import jwtDecode from 'jwt-decode';
|
|
7
7
|
import { toast } from 'react-toastify';
|
|
8
|
-
import { messages } from '@plone/volto/helpers';
|
|
9
|
-
import
|
|
8
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
9
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
10
10
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
11
|
-
import { getUser, updateUser
|
|
11
|
+
import { getUser, updateUser } from '@plone/volto/actions/users/users';
|
|
12
|
+
import { getUserSchema } from '@plone/volto/actions/userschema/userschema';
|
|
12
13
|
|
|
13
14
|
const PersonalInformation = (props) => {
|
|
14
15
|
const intl = useIntl();
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { useDispatch } from 'react-redux';
|
|
3
|
-
import
|
|
3
|
+
import map from 'lodash/map';
|
|
4
|
+
import keys from 'lodash/keys';
|
|
4
5
|
import { defineMessages, useIntl } from 'react-intl';
|
|
5
6
|
import { toast } from 'react-toastify';
|
|
6
7
|
import { compose } from 'redux';
|
|
7
8
|
import { withCookies } from 'react-cookie';
|
|
8
9
|
|
|
9
|
-
import
|
|
10
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
10
11
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
11
12
|
import languages from '@plone/volto/constants/Languages.cjs';
|
|
12
|
-
import { changeLanguage } from '@plone/volto/actions';
|
|
13
|
-
import { toGettextLang } from '@plone/volto/helpers';
|
|
13
|
+
import { changeLanguage } from '@plone/volto/actions/language/language';
|
|
14
|
+
import { toGettextLang } from '@plone/volto/helpers/Utils/Utils';
|
|
14
15
|
import config from '@plone/volto/registry';
|
|
15
16
|
|
|
16
17
|
const messages = defineMessages({
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import
|
|
7
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
8
8
|
import { connect } from 'react-redux';
|
|
9
9
|
import { compose } from 'redux';
|
|
10
10
|
import { Link } from 'react-router-dom';
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from 'semantic-ui-react';
|
|
20
20
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
21
21
|
|
|
22
|
-
import { getBaseUrl } from '@plone/volto/helpers';
|
|
22
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
23
23
|
import {
|
|
24
24
|
addRule,
|
|
25
25
|
getRules,
|
|
@@ -28,15 +28,16 @@ import {
|
|
|
28
28
|
applyRulesToSubfolders,
|
|
29
29
|
unapplyRulesToSubfolders,
|
|
30
30
|
removeRules,
|
|
31
|
-
} from '@plone/volto/actions';
|
|
31
|
+
} from '@plone/volto/actions/rules/rules';
|
|
32
32
|
|
|
33
|
-
import
|
|
33
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
34
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
34
35
|
|
|
35
36
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
36
37
|
import checkSVG from '@plone/volto/icons/check.svg';
|
|
37
38
|
|
|
38
39
|
import { toast } from 'react-toastify';
|
|
39
|
-
import
|
|
40
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
40
41
|
|
|
41
42
|
const messages = defineMessages({
|
|
42
43
|
back: {
|
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import { Plug, Pluggable } from '@plone/volto/components/manage/Pluggable';
|
|
8
|
-
import
|
|
8
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
9
9
|
import { connect } from 'react-redux';
|
|
10
10
|
import { compose } from 'redux';
|
|
11
11
|
import { Link, withRouter } from 'react-router-dom';
|
|
12
|
-
import
|
|
12
|
+
import find from 'lodash/find';
|
|
13
|
+
import isEqual from 'lodash/isEqual';
|
|
14
|
+
import map from 'lodash/map';
|
|
13
15
|
import { createPortal } from 'react-dom';
|
|
14
16
|
import {
|
|
15
17
|
Button,
|
|
@@ -24,9 +26,14 @@ import {
|
|
|
24
26
|
import jwtDecode from 'jwt-decode';
|
|
25
27
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
26
28
|
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
import {
|
|
30
|
+
updateSharing,
|
|
31
|
+
getSharing,
|
|
32
|
+
} from '@plone/volto/actions/sharing/sharing';
|
|
33
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
34
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
35
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
36
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
30
37
|
import { toast } from 'react-toastify';
|
|
31
38
|
import config from '@plone/volto/registry';
|
|
32
39
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineMessages, useIntl } from 'react-intl';
|
|
2
|
-
import
|
|
2
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
3
3
|
import { Button } from 'semantic-ui-react';
|
|
4
4
|
import imageLeftSVG from '@plone/volto/icons/image-left.svg';
|
|
5
5
|
import imageRightSVG from '@plone/volto/icons/image-right.svg';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ObjectBrowserBody from '@plone/volto/components/manage/Sidebar/ObjectBrowserBody';
|
|
3
3
|
import SidebarPopup from '@plone/volto/components/manage/Sidebar/SidebarPopup';
|
|
4
|
-
import { getBaseUrl } from '@plone/volto/helpers';
|
|
4
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
5
5
|
|
|
6
6
|
const withObjectBrowser = (WrappedComponent) =>
|
|
7
7
|
class extends React.Component {
|
|
@@ -5,7 +5,7 @@ import { connect } from 'react-redux';
|
|
|
5
5
|
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
|
|
6
6
|
import { Input, Segment, Breadcrumb } from 'semantic-ui-react';
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import join from 'lodash/join';
|
|
9
9
|
|
|
10
10
|
// These absolute imports (without using the corresponding centralized index.js) are required
|
|
11
11
|
// to cut circular import problems, this file should never use them. This is because of
|
|
@@ -3,7 +3,8 @@ import { Button, Segment, Popup } from 'semantic-ui-react';
|
|
|
3
3
|
import { useIntl, defineMessages } from 'react-intl';
|
|
4
4
|
import cx from 'classnames';
|
|
5
5
|
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
6
|
-
import { flattenToAppURL
|
|
6
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
7
|
+
import { getContentIcon } from '@plone/volto/helpers/Content/Content';
|
|
7
8
|
import config from '@plone/volto/registry';
|
|
8
9
|
|
|
9
10
|
import rightArrowSVG from '@plone/volto/icons/right-key.svg';
|
|
@@ -6,10 +6,11 @@ import { compose } from 'redux';
|
|
|
6
6
|
import { withCookies } from 'react-cookie';
|
|
7
7
|
import { defineMessages, useIntl } from 'react-intl';
|
|
8
8
|
import cx from 'classnames';
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
9
|
+
import BodyClass from '@plone/volto/helpers/BodyClass/BodyClass';
|
|
10
|
+
import { getCookieOptions } from '@plone/volto/helpers/Cookies/cookies';
|
|
11
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
11
12
|
import forbiddenSVG from '@plone/volto/icons/forbidden.svg';
|
|
12
|
-
import { setSidebarTab } from '@plone/volto/actions';
|
|
13
|
+
import { setSidebarTab } from '@plone/volto/actions/sidebar/sidebar';
|
|
13
14
|
import expandSVG from '@plone/volto/icons/left-key.svg';
|
|
14
15
|
import collapseSVG from '@plone/volto/icons/right-key.svg';
|
|
15
16
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
3
|
import { CSSTransition } from 'react-transition-group';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import
|
|
5
|
+
import doesNodeContainClick from 'semantic-ui-react/dist/commonjs/lib/doesNodeContainClick';
|
|
6
6
|
|
|
7
7
|
const DEFAULT_TIMEOUT = 500;
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import { Editor, Node, Transforms, Range, createEditor } from 'slate';
|
|
|
3
3
|
import { ReactEditor, Editable, Slate, withReact } from 'slate-react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
|
-
import { usePrevious } from '@plone/volto/helpers';
|
|
6
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
7
7
|
import config from '@plone/volto/registry';
|
|
8
8
|
import { P } from '@plone/volto-slate/constants';
|
|
9
9
|
import cx from 'classnames';
|
|
@@ -3,23 +3,22 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
5
5
|
import { Link, useHistory } from 'react-router-dom';
|
|
6
|
-
import
|
|
6
|
+
import find from 'lodash/find';
|
|
7
7
|
import { toast } from 'react-toastify';
|
|
8
8
|
|
|
9
|
-
import
|
|
9
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
10
10
|
import { Pluggable, Plug } from '@plone/volto/components/manage/Pluggable';
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
Workflow,
|
|
16
|
-
} from '@plone/volto/components';
|
|
11
|
+
import FormattedDate from '@plone/volto/components/theme/FormattedDate/FormattedDate';
|
|
12
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
13
|
+
import Display from '@plone/volto/components/manage/Display/Display';
|
|
14
|
+
import Workflow from '@plone/volto/components/manage/Workflow/Workflow';
|
|
17
15
|
import {
|
|
18
16
|
applyWorkingCopy,
|
|
19
17
|
createWorkingCopy,
|
|
20
18
|
removeWorkingCopy,
|
|
21
|
-
} from '@plone/volto/actions';
|
|
22
|
-
import { flattenToAppURL, getBaseUrl
|
|
19
|
+
} from '@plone/volto/actions/workingcopy/workingcopy';
|
|
20
|
+
import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
21
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
23
22
|
import config from '@plone/volto/registry';
|
|
24
23
|
import rightArrowSVG from '@plone/volto/icons/right-key.svg';
|
|
25
24
|
import userSVG from '@plone/volto/icons/user.svg';
|
|
@@ -6,10 +6,10 @@ import jwtDecode from 'jwt-decode';
|
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import { FormattedMessage, useIntl, defineMessages } from 'react-intl';
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import { getUser } from '@plone/volto/actions';
|
|
9
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
10
|
+
import { getUser } from '@plone/volto/actions/users/users';
|
|
11
11
|
import { Pluggable } from '@plone/volto/components/manage/Pluggable';
|
|
12
|
-
import { expandToBackendURL, getBaseUrl } from '@plone/volto/helpers';
|
|
12
|
+
import { expandToBackendURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
13
13
|
import logoutSVG from '@plone/volto/icons/log-out.svg';
|
|
14
14
|
import rightArrowSVG from '@plone/volto/icons/right-key.svg';
|
|
15
15
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import cx from 'classnames';
|
|
4
|
-
import
|
|
4
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
5
5
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
6
6
|
|
|
7
7
|
const StandardWrapper = (props) => {
|