@plone/volto 18.1.2 → 18.2.1
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 +43 -0
- package/CHANGELOG.md +17 -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 → ObjectListWidget.stories.jsx} +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 +3 -3
- 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 → withContentNavigation.jsx} +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 +12 -7
- package/src/config/index.js +4 -3
- package/src/config/slots.js +1 -1
- package/src/express-middleware/files.js +5 -2
- 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 → AsyncConnect.test.jsx} +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 +1 -14
- /package/src/components/manage/Pluggable/{Pluggable.stories.js → Pluggable.stories.jsx} +0 -0
- /package/src/components/manage/Pluggable/{Pluggable.test.js → Pluggable.test.jsx} +0 -0
- /package/src/components/manage/UniversalLink/{UniversalLink.stories.js → UniversalLink.stories.jsx} +0 -0
- /package/src/components/manage/Widgets/{ObjectBrowserWidget.stories.js → ObjectBrowserWidget.stories.jsx} +0 -0
- /package/src/components/manage/Widgets/{ObjectListWidget.test.js → ObjectListWidget.test.jsx} +0 -0
- /package/src/components/manage/Widgets/{VocabularyTermsWidget.stories.js → VocabularyTermsWidget.stories.jsx} +0 -0
- /package/src/components/theme/Avatar/{Avatar.stories.js → Avatar.stories.jsx} +0 -0
- /package/src/components/theme/Navigation/{ContextNavigation.stories.js → ContextNavigation.stories.jsx} +0 -0
- /package/src/components/theme/PreviewImage/{PreviewImage.test.js → PreviewImage.test.jsx} +0 -0
- /package/src/components/theme/Title/{Title.stories.js → Title.stories.jsx} +0 -0
- /package/src/components/theme/Widgets/{ArrayWidget.test.js → ArrayWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{BooleanWidget.test.js → BooleanWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{DateWidget.test.js → DateWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{DatetimeWidget.test.js → DatetimeWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{DescriptionWidget.test.js → DescriptionWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{EmailWidget.test.js → EmailWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{FileWidget.test.js → FileWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{ImageWidget.test.js → ImageWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{PasswordWidget.test.js → PasswordWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{RelationWidget.test.js → RelationWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{RelationsWidget.test.js → RelationsWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{RichTextWidget.test.js → RichTextWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{SelectWidget.test.js → SelectWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{TextWidget.test.js → TextWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{TitleWidget.test.js → TitleWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{TokenWidget.test.js → TokenWidget.test.jsx} +0 -0
- /package/src/components/theme/Widgets/{UrlWidget.test.js → UrlWidget.test.jsx} +0 -0
- /package/src/helpers/Extensions/{withBlockExtensions.test.js → withBlockExtensions.test.jsx} +0 -0
- /package/src/helpers/Utils/{Utils.test.js → Utils.test.jsx} +0 -0
|
@@ -22,44 +22,42 @@ import {
|
|
|
22
22
|
Loader,
|
|
23
23
|
Dimmer,
|
|
24
24
|
} from 'semantic-ui-react';
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
pull,
|
|
34
|
-
} from 'lodash';
|
|
25
|
+
import concat from 'lodash/concat';
|
|
26
|
+
import filter from 'lodash/filter';
|
|
27
|
+
import find from 'lodash/find';
|
|
28
|
+
import indexOf from 'lodash/indexOf';
|
|
29
|
+
import keys from 'lodash/keys';
|
|
30
|
+
import map from 'lodash/map';
|
|
31
|
+
import mapValues from 'lodash/mapValues';
|
|
32
|
+
import pull from 'lodash/pull';
|
|
35
33
|
import move from 'lodash-move';
|
|
36
34
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
37
|
-
import { asyncConnect } from '@plone/volto/helpers';
|
|
38
|
-
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
35
|
+
import { asyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
36
|
+
import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
39
37
|
|
|
38
|
+
import { searchContent } from '@plone/volto/actions/search/search';
|
|
40
39
|
import {
|
|
41
|
-
searchContent,
|
|
42
|
-
cut,
|
|
43
|
-
copy,
|
|
44
|
-
copyContent,
|
|
45
40
|
deleteContent,
|
|
46
|
-
listActions,
|
|
47
|
-
moveContent,
|
|
48
41
|
orderContent,
|
|
49
42
|
sortContent,
|
|
50
43
|
updateColumnsContent,
|
|
51
44
|
linkIntegrityCheck,
|
|
52
45
|
getContent,
|
|
53
|
-
} from '@plone/volto/actions';
|
|
54
|
-
import Indexes, { defaultIndexes } from '@plone/volto/constants/Indexes';
|
|
46
|
+
} from '@plone/volto/actions/content/content';
|
|
55
47
|
import {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} from '@plone/volto/
|
|
48
|
+
copyContent,
|
|
49
|
+
moveContent,
|
|
50
|
+
cut,
|
|
51
|
+
copy,
|
|
52
|
+
} from '@plone/volto/actions/clipboard/clipboard';
|
|
53
|
+
import { listActions } from '@plone/volto/actions/actions/actions';
|
|
54
|
+
import Indexes, { defaultIndexes } from '@plone/volto/constants/Indexes';
|
|
55
|
+
import Pagination from '@plone/volto/components/theme/Pagination/Pagination';
|
|
56
|
+
import Popup from '@plone/volto/components/theme/Popup/Popup';
|
|
57
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
58
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
59
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
60
|
+
import Unauthorized from '@plone/volto/components/theme/Unauthorized/Unauthorized';
|
|
63
61
|
import ContentsBreadcrumbs from '@plone/volto/components/manage/Contents/ContentsBreadcrumbs';
|
|
64
62
|
import ContentsIndexHeader from '@plone/volto/components/manage/Contents/ContentsIndexHeader';
|
|
65
63
|
import ContentsItem from '@plone/volto/components/manage/Contents/ContentsItem';
|
|
@@ -69,7 +67,7 @@ import ContentsWorkflowModal from '@plone/volto/components/manage/Contents/Conte
|
|
|
69
67
|
import ContentsTagsModal from '@plone/volto/components/manage/Contents/ContentsTagsModal';
|
|
70
68
|
import ContentsPropertiesModal from '@plone/volto/components/manage/Contents/ContentsPropertiesModal';
|
|
71
69
|
|
|
72
|
-
import
|
|
70
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
73
71
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
74
72
|
import config from '@plone/volto/registry';
|
|
75
73
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Breadcrumb } from 'semantic-ui-react';
|
|
3
3
|
import { Link, useLocation } from 'react-router-dom';
|
|
4
4
|
import { defineMessages, useIntl } from 'react-intl';
|
|
5
|
-
import
|
|
5
|
+
import langmap from '@plone/volto/helpers/LanguageMap/LanguageMap';
|
|
6
6
|
import ContentsBreadcrumbsRootItem from '@plone/volto/components/manage/Contents/ContentsBreadcrumbsRootItem';
|
|
7
7
|
import ContentsBreadcrumbsHomeItem from '@plone/volto/components/manage/Contents/ContentsBreadcrumbsHomeItem';
|
|
8
8
|
|
|
@@ -7,10 +7,13 @@ import React from 'react';
|
|
|
7
7
|
import { Button, Table, Menu, Divider } from 'semantic-ui-react';
|
|
8
8
|
import { Link } from 'react-router-dom';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import
|
|
10
|
+
import map from 'lodash/map';
|
|
11
11
|
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import Circle from '@plone/volto/components/manage/Contents/circle';
|
|
13
|
+
import FormattedDate from '@plone/volto/components/theme/FormattedDate/FormattedDate';
|
|
14
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
15
|
+
import Popup from '@plone/volto/components/theme/Popup/Popup';
|
|
16
|
+
import { getContentIcon } from '@plone/volto/helpers/Content/Content';
|
|
14
17
|
import moreSVG from '@plone/volto/icons/more.svg';
|
|
15
18
|
import checkboxUncheckedSVG from '@plone/volto/icons/checkbox-unchecked.svg';
|
|
16
19
|
import checkboxCheckedSVG from '@plone/volto/icons/checkbox-checked.svg';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
import
|
|
4
|
+
import isEmpty from 'lodash/isEmpty';
|
|
5
|
+
import map from 'lodash/map';
|
|
5
6
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
7
|
|
|
7
|
-
import { usePrevious } from '@plone/volto/helpers';
|
|
8
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
8
9
|
import { cloneDeepSchema } from '@plone/volto/helpers/Utils/Utils';
|
|
9
|
-
import { updateContent } from '@plone/volto/actions';
|
|
10
|
+
import { updateContent } from '@plone/volto/actions/content/content';
|
|
10
11
|
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
11
12
|
import config from '@plone/volto/registry';
|
|
12
13
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React, { useCallback, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
import
|
|
4
|
+
import concat from 'lodash/concat';
|
|
5
|
+
import merge from 'lodash/merge';
|
|
6
|
+
import map from 'lodash/map';
|
|
5
7
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
8
|
|
|
7
|
-
import { usePrevious } from '@plone/volto/helpers';
|
|
8
|
-
import { updateContent } from '@plone/volto/actions';
|
|
9
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
10
|
+
import { updateContent } from '@plone/volto/actions/content/content';
|
|
9
11
|
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
10
12
|
|
|
11
13
|
const messages = defineMessages({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
import
|
|
4
|
+
import map from 'lodash/map';
|
|
5
5
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
6
|
|
|
7
|
-
import { usePrevious } from '@plone/volto/helpers';
|
|
8
|
-
import { updateContent } from '@plone/volto/actions';
|
|
7
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
8
|
+
import { updateContent } from '@plone/volto/actions/content/content';
|
|
9
9
|
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
10
10
|
|
|
11
11
|
const messages = defineMessages({
|
|
@@ -14,13 +14,16 @@ import {
|
|
|
14
14
|
Progress,
|
|
15
15
|
} from 'semantic-ui-react';
|
|
16
16
|
import loadable from '@loadable/component';
|
|
17
|
-
import
|
|
17
|
+
import concat from 'lodash/concat';
|
|
18
|
+
import filter from 'lodash/filter';
|
|
19
|
+
import map from 'lodash/map';
|
|
18
20
|
import filesize from 'filesize';
|
|
19
21
|
import { readAsDataURL } from 'promise-file-reader';
|
|
20
22
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
21
|
-
import
|
|
22
|
-
import { createContent } from '@plone/volto/actions';
|
|
23
|
-
import { validateFileUploadSize
|
|
23
|
+
import FormattedRelativeDate from '@plone/volto/components/theme/FormattedDate/FormattedRelativeDate';
|
|
24
|
+
import { createContent } from '@plone/volto/actions/content/content';
|
|
25
|
+
import { validateFileUploadSize } from '@plone/volto/helpers/FormValidation/FormValidation';
|
|
26
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
24
27
|
|
|
25
28
|
const Dropzone = loadable(() => import('react-dropzone'));
|
|
26
29
|
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import React, { useCallback, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { shallowEqual, useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
import
|
|
4
|
+
import concat from 'lodash/concat';
|
|
5
|
+
import filter from 'lodash/filter';
|
|
6
|
+
import last from 'lodash/last';
|
|
7
|
+
import map from 'lodash/map';
|
|
8
|
+
import uniqBy from 'lodash/uniqBy';
|
|
5
9
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
10
|
|
|
7
|
-
import { usePrevious } from '@plone/volto/helpers';
|
|
8
|
-
import {
|
|
11
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
12
|
+
import {
|
|
13
|
+
getWorkflow,
|
|
14
|
+
transitionWorkflow,
|
|
15
|
+
} from '@plone/volto/actions/workflow/workflow';
|
|
9
16
|
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
10
17
|
|
|
11
18
|
const messages = defineMessages({
|
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useCallback } from 'react';
|
|
|
2
2
|
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
|
-
import { useClient } from '@plone/volto/hooks';
|
|
5
|
+
import { useClient } from '@plone/volto/hooks/client/useClient';
|
|
6
6
|
import {
|
|
7
7
|
Accordion,
|
|
8
8
|
Button,
|
|
@@ -22,9 +22,11 @@ import {
|
|
|
22
22
|
listAddons,
|
|
23
23
|
uninstallAddon,
|
|
24
24
|
upgradeAddon,
|
|
25
|
-
} from '@plone/volto/actions';
|
|
26
|
-
import
|
|
27
|
-
import
|
|
25
|
+
} from '@plone/volto/actions/addons/addons';
|
|
26
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
27
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
28
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
29
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
28
30
|
import circleBottomSVG from '@plone/volto/icons/circle-bottom.svg';
|
|
29
31
|
import circleTopSVG from '@plone/volto/icons/circle-top.svg';
|
|
30
32
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback, useMemo } from 'react';
|
|
2
2
|
import { useDispatch, useSelector } from 'react-redux';
|
|
3
3
|
import { Link, useHistory, useLocation } from 'react-router-dom';
|
|
4
|
-
import { getBaseUrl, getParentUrl
|
|
4
|
+
import { getBaseUrl, getParentUrl } from '@plone/volto/helpers/Url/Url';
|
|
5
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
5
6
|
import {
|
|
6
7
|
removeAliases,
|
|
7
8
|
addAliases,
|
|
@@ -27,15 +28,16 @@ import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
|
27
28
|
import DatetimeWidget from '@plone/volto/components/manage/Widgets/DatetimeWidget';
|
|
28
29
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
29
30
|
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
30
|
-
import
|
|
31
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
32
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
33
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
31
34
|
import FormattedDate from '@plone/volto/components/theme/FormattedDate/FormattedDate';
|
|
32
|
-
import { useClient } from '@plone/volto/hooks';
|
|
35
|
+
import { useClient } from '@plone/volto/hooks/client/useClient';
|
|
33
36
|
|
|
34
37
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
35
38
|
import editingSVG from '@plone/volto/icons/editing.svg';
|
|
36
|
-
import
|
|
39
|
+
import map from 'lodash/map';
|
|
37
40
|
import { toast } from 'react-toastify';
|
|
38
|
-
import { Toast } from '@plone/volto/components';
|
|
39
41
|
|
|
40
42
|
const messages = defineMessages({
|
|
41
43
|
back: {
|
|
@@ -7,15 +7,23 @@ 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 { getParentUrl } from '@plone/volto/helpers';
|
|
10
|
+
import { getParentUrl } from '@plone/volto/helpers/Url/Url';
|
|
11
11
|
import { createPortal } from 'react-dom';
|
|
12
12
|
import { Button, Header } from 'semantic-ui-react';
|
|
13
13
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
14
14
|
import { toast } from 'react-toastify';
|
|
15
|
-
import
|
|
16
|
-
import
|
|
15
|
+
import last from 'lodash/last';
|
|
16
|
+
import nth from 'lodash/nth';
|
|
17
|
+
import join from 'lodash/join';
|
|
18
|
+
import Error from '@plone/volto/components/theme/Error/Error';
|
|
19
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
20
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
21
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
17
22
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
18
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
getControlpanel,
|
|
25
|
+
updateControlpanel,
|
|
26
|
+
} from '@plone/volto/actions/controlpanels/controlpanels';
|
|
19
27
|
|
|
20
28
|
import saveSVG from '@plone/volto/icons/save.svg';
|
|
21
29
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
@@ -8,25 +8,29 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { connect } from 'react-redux';
|
|
9
9
|
import { compose } from 'redux';
|
|
10
10
|
import { Link } from 'react-router-dom';
|
|
11
|
+
import { getParentUrl } from '@plone/volto/helpers/Url/Url';
|
|
11
12
|
import {
|
|
12
|
-
getParentUrl,
|
|
13
13
|
hasBlocksData,
|
|
14
14
|
getBlocksFieldname,
|
|
15
15
|
getBlocksLayoutFieldname,
|
|
16
|
-
} from '@plone/volto/helpers';
|
|
16
|
+
} from '@plone/volto/helpers/Blocks/Blocks';
|
|
17
17
|
import { createPortal } from 'react-dom';
|
|
18
18
|
import { Button, Segment } from 'semantic-ui-react';
|
|
19
19
|
import { toast } from 'react-toastify';
|
|
20
20
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
|
21
|
-
import
|
|
22
|
-
import
|
|
21
|
+
import nth from 'lodash/nth';
|
|
22
|
+
import join from 'lodash/join';
|
|
23
|
+
import Error from '@plone/volto/components/theme/Error/Error';
|
|
24
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
25
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
26
|
+
import Sidebar from '@plone/volto/components/manage/Sidebar/Sidebar';
|
|
27
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
23
28
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
29
|
+
import { getSchema, updateSchema } from '@plone/volto/actions/schema/schema';
|
|
24
30
|
import {
|
|
25
|
-
getSchema,
|
|
26
|
-
updateSchema,
|
|
27
31
|
getControlpanel,
|
|
28
32
|
updateControlpanel,
|
|
29
|
-
} from '@plone/volto/actions';
|
|
33
|
+
} from '@plone/volto/actions/controlpanels/controlpanels';
|
|
30
34
|
|
|
31
35
|
import saveSVG from '@plone/volto/icons/save.svg';
|
|
32
36
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
* @module components/manage/Controlpanels/ContentTypeSchema
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { getSchema, putSchema } from '@plone/volto/actions';
|
|
7
|
-
import { getParentUrl } from '@plone/volto/helpers';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import { getSchema, putSchema } from '@plone/volto/actions/schema/schema';
|
|
7
|
+
import { getParentUrl } from '@plone/volto/helpers/Url/Url';
|
|
8
|
+
import nth from 'lodash/nth';
|
|
9
|
+
import Error from '@plone/volto/components/theme/Error/Error';
|
|
10
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
11
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
12
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
10
13
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
11
14
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
12
15
|
import saveSVG from '@plone/volto/icons/save.svg';
|
|
@@ -8,20 +8,22 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { connect } from 'react-redux';
|
|
9
9
|
import { compose } from 'redux';
|
|
10
10
|
import { Link } from 'react-router-dom';
|
|
11
|
-
import { getParentUrl } from '@plone/volto/helpers';
|
|
11
|
+
import { getParentUrl, getId } from '@plone/volto/helpers/Url/Url';
|
|
12
12
|
import { createPortal } from 'react-dom';
|
|
13
|
-
import
|
|
13
|
+
import last from 'lodash/last';
|
|
14
14
|
import { Confirm, Container, Table, Button, Header } from 'semantic-ui-react';
|
|
15
15
|
import { toast } from 'react-toastify';
|
|
16
16
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
17
|
-
import
|
|
17
|
+
import Error from '@plone/volto/components/theme/Error/Error';
|
|
18
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
19
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
20
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
18
21
|
import ContentTypesActions from '@plone/volto/components/manage/Controlpanels/ContentTypesActions';
|
|
19
22
|
import {
|
|
20
23
|
getControlpanel,
|
|
21
24
|
postControlpanel,
|
|
22
25
|
deleteControlpanel,
|
|
23
|
-
} from '@plone/volto/actions';
|
|
24
|
-
import { getId } from '@plone/volto/helpers';
|
|
26
|
+
} from '@plone/volto/actions/controlpanels/controlpanels';
|
|
25
27
|
|
|
26
28
|
import addSVG from '@plone/volto/icons/add-document.svg';
|
|
27
29
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { Dropdown } from 'semantic-ui-react';
|
|
8
8
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
9
|
-
import
|
|
9
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
10
10
|
import trashSVG from '@plone/volto/icons/delete.svg';
|
|
11
11
|
import layoutSVG from '@plone/volto/icons/file.svg';
|
|
12
12
|
import folderSVG from '@plone/volto/icons/folder.svg';
|
|
@@ -8,19 +8,24 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { connect } from 'react-redux';
|
|
9
9
|
import { compose } from 'redux';
|
|
10
10
|
import { withRouter } from 'react-router-dom';
|
|
11
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
11
12
|
import {
|
|
12
|
-
Helmet,
|
|
13
13
|
tryParseJSON,
|
|
14
14
|
extractInvariantErrors,
|
|
15
|
-
} from '@plone/volto/helpers';
|
|
15
|
+
} from '@plone/volto/helpers/FormValidation/FormValidation';
|
|
16
16
|
import { createPortal } from 'react-dom';
|
|
17
17
|
import { Button, Container } from 'semantic-ui-react';
|
|
18
18
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
19
19
|
import { toast } from 'react-toastify';
|
|
20
20
|
|
|
21
|
-
import
|
|
21
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
22
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
23
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
22
24
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
23
|
-
import {
|
|
25
|
+
import {
|
|
26
|
+
updateControlpanel,
|
|
27
|
+
getControlpanel,
|
|
28
|
+
} from '@plone/volto/actions/controlpanels/controlpanels';
|
|
24
29
|
|
|
25
30
|
import config from '@plone/volto/registry';
|
|
26
31
|
|
|
@@ -3,8 +3,13 @@
|
|
|
3
3
|
* @module components/manage/Controlpanels/Controlpanels
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
7
|
+
import concat from 'lodash/concat';
|
|
8
|
+
import filter from 'lodash/filter';
|
|
9
|
+
import last from 'lodash/last';
|
|
10
|
+
import map from 'lodash/map';
|
|
11
|
+
import sortBy from 'lodash/sortBy';
|
|
12
|
+
import uniqBy from 'lodash/uniqBy';
|
|
8
13
|
import { useEffect, useState } from 'react';
|
|
9
14
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
10
15
|
import { createPortal } from 'react-dom';
|
|
@@ -12,7 +17,10 @@ import { useSelector } from 'react-redux';
|
|
|
12
17
|
import { Link } from 'react-router-dom';
|
|
13
18
|
import { Container, Grid, Header, Message, Segment } from 'semantic-ui-react';
|
|
14
19
|
|
|
15
|
-
import
|
|
20
|
+
import Error from '@plone/volto/components/theme/Error/Error';
|
|
21
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
22
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
23
|
+
import VersionOverview from '@plone/volto/components/manage/Controlpanels/VersionOverview';
|
|
16
24
|
|
|
17
25
|
import config from '@plone/volto/registry';
|
|
18
26
|
|
|
@@ -5,10 +5,11 @@ import { createPortal } from 'react-dom';
|
|
|
5
5
|
import { Container, Divider, Message, Segment, Table } from 'semantic-ui-react';
|
|
6
6
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
7
7
|
|
|
8
|
-
import { getDatabaseInformation } from '@plone/volto/actions';
|
|
9
|
-
import
|
|
10
|
-
import { useClient } from '@plone/volto/hooks';
|
|
11
|
-
import
|
|
8
|
+
import { getDatabaseInformation } from '@plone/volto/actions/controlpanels/controlpanels';
|
|
9
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
10
|
+
import { useClient } from '@plone/volto/hooks/client/useClient';
|
|
11
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
12
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
12
13
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
13
14
|
|
|
14
15
|
const messages = defineMessages({
|
|
@@ -6,34 +6,31 @@ import {
|
|
|
6
6
|
createGroup,
|
|
7
7
|
deleteGroup,
|
|
8
8
|
listGroups,
|
|
9
|
-
getControlpanel,
|
|
10
|
-
listRoles,
|
|
11
9
|
updateGroup,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from '@plone/volto/actions';
|
|
10
|
+
} from '@plone/volto/actions/groups/groups';
|
|
11
|
+
import { listRoles } from '@plone/volto/actions/roles/roles';
|
|
12
|
+
import { getControlpanel } from '@plone/volto/actions/controlpanels/controlpanels';
|
|
13
|
+
import { authenticatedRole } from '@plone/volto/actions/authRole/authRole';
|
|
14
|
+
import { getUser } from '@plone/volto/actions/users/users';
|
|
15
15
|
import jwtDecode from 'jwt-decode';
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Error,
|
|
22
|
-
} from '@plone/volto/components';
|
|
16
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
17
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
18
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
19
|
+
import Pagination from '@plone/volto/components/theme/Pagination/Pagination';
|
|
20
|
+
import Error from '@plone/volto/components/theme/Error/Error';
|
|
23
21
|
import RenderGroups from '@plone/volto/components/manage/Controlpanels/Groups/RenderGroups';
|
|
24
22
|
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
25
23
|
import { Link } from 'react-router-dom';
|
|
26
|
-
import
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
isManager,
|
|
30
|
-
canAssignRole,
|
|
31
|
-
} from '@plone/volto/helpers';
|
|
24
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
25
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
26
|
+
import { isManager, canAssignRole } from '@plone/volto/helpers/User/User';
|
|
32
27
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
33
28
|
import addUserSvg from '@plone/volto/icons/add-user.svg';
|
|
34
29
|
import saveSVG from '@plone/volto/icons/save.svg';
|
|
35
30
|
import ploneSVG from '@plone/volto/icons/plone.svg';
|
|
36
|
-
import
|
|
31
|
+
import find from 'lodash/find';
|
|
32
|
+
import map from 'lodash/map';
|
|
33
|
+
import pull from 'lodash/pull';
|
|
37
34
|
import PropTypes from 'prop-types';
|
|
38
35
|
import React, { Component } from 'react';
|
|
39
36
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
@@ -3,8 +3,8 @@ import { FormattedMessage } from 'react-intl';
|
|
|
3
3
|
import { Dropdown, Table, Checkbox } from 'semantic-ui-react';
|
|
4
4
|
import trashSVG from '@plone/volto/icons/delete.svg';
|
|
5
5
|
import ploneSVG from '@plone/volto/icons/plone.svg';
|
|
6
|
-
import
|
|
7
|
-
import { canAssignRole } from '@plone/volto/helpers';
|
|
6
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
7
|
+
import { canAssignRole } from '@plone/volto/helpers/User/User';
|
|
8
8
|
|
|
9
9
|
const RenderGroups = (props) => {
|
|
10
10
|
const onChange = (event, { value }) => {
|
|
@@ -8,13 +8,17 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { connect } from 'react-redux';
|
|
9
9
|
import { compose } from 'redux';
|
|
10
10
|
import { Link } from 'react-router-dom';
|
|
11
|
-
import { getParentUrl
|
|
11
|
+
import { getParentUrl } from '@plone/volto/helpers/Url/Url';
|
|
12
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
12
13
|
import { createPortal } from 'react-dom';
|
|
13
14
|
import { Container, Button, Table } from 'semantic-ui-react';
|
|
14
15
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
15
16
|
|
|
16
|
-
import { deleteComment
|
|
17
|
-
import {
|
|
17
|
+
import { deleteComment } from '@plone/volto/actions/comments/comments';
|
|
18
|
+
import { searchContent } from '@plone/volto/actions/search/search';
|
|
19
|
+
import FormattedRelativeDate from '@plone/volto/components/theme/FormattedDate/FormattedRelativeDate';
|
|
20
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
21
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
18
22
|
import { CommentEditModal } from '@plone/volto/components/theme/Comments';
|
|
19
23
|
|
|
20
24
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import uniqBy from 'lodash/uniqBy';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import { useSelector, useDispatch } from 'react-redux';
|
|
5
5
|
import { Divider, Segment, Table } from 'semantic-ui-react';
|
|
6
|
-
import { queryRelations } from '@plone/volto/actions';
|
|
7
|
-
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
8
|
-
import
|
|
6
|
+
import { queryRelations } from '@plone/volto/actions/relations/relations';
|
|
7
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
8
|
+
import ConditionalLink from '@plone/volto/components/manage/ConditionalLink/ConditionalLink';
|
|
9
9
|
|
|
10
10
|
const BrokenRelations = () => {
|
|
11
11
|
const dispatch = useDispatch();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Relations Control Panel
|
|
3
3
|
*/
|
|
4
4
|
import React, { useEffect, useState } from 'react';
|
|
5
|
-
import
|
|
5
|
+
import find from 'lodash/find';
|
|
6
6
|
import { useSelector } from 'react-redux';
|
|
7
7
|
import { createPortal } from 'react-dom';
|
|
8
8
|
import { useHistory } from 'react-router';
|
|
@@ -10,10 +10,12 @@ import { Link, useLocation } from 'react-router-dom';
|
|
|
10
10
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
11
11
|
import { useDispatch } from 'react-redux';
|
|
12
12
|
import { Divider, Message, Segment } from 'semantic-ui-react';
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
13
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
14
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
15
|
+
import { listActions } from '@plone/volto/actions/actions/actions';
|
|
16
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
17
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
18
|
+
import { getParentUrl } from '@plone/volto/helpers/Url/Url';
|
|
17
19
|
import RelationsMatrix from '@plone/volto/components/manage/Controlpanels/Relations/RelationsMatrix';
|
|
18
20
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
19
21
|
|
|
@@ -3,17 +3,20 @@ import useDeepCompareEffect from 'use-deep-compare-effect';
|
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import { useSelector, useDispatch } from 'react-redux';
|
|
5
5
|
import { toast } from 'react-toastify';
|
|
6
|
-
import
|
|
6
|
+
import uniqBy from 'lodash/uniqBy';
|
|
7
7
|
import { Checkbox, Message } from 'semantic-ui-react';
|
|
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
|
+
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
10
11
|
import {
|
|
11
12
|
createRelations,
|
|
12
13
|
deleteRelations,
|
|
13
14
|
queryRelations,
|
|
15
|
+
} from '@plone/volto/actions/relations/relations';
|
|
16
|
+
import {
|
|
14
17
|
resetSearchContent,
|
|
15
18
|
searchContent,
|
|
16
|
-
} from '@plone/volto/actions';
|
|
19
|
+
} from '@plone/volto/actions/search/search';
|
|
17
20
|
|
|
18
21
|
const RelationsListing = ({
|
|
19
22
|
relationtype,
|