@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
package/.eslintignore
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
types/
|
|
1
|
+
/types/
|
package/.eslintrc
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": [
|
|
2
|
+
"extends": [
|
|
3
|
+
"react-app",
|
|
4
|
+
"prettier",
|
|
5
|
+
"plugin:jsx-a11y/recommended",
|
|
6
|
+
"./.eslintrc.core.js",
|
|
7
|
+
],
|
|
3
8
|
"plugins": ["prettier", "react-hooks", "jsx-a11y"],
|
|
9
|
+
"root": true,
|
|
4
10
|
"env": {
|
|
5
11
|
"es6": true,
|
|
6
12
|
"browser": true,
|
|
@@ -18,6 +24,7 @@
|
|
|
18
24
|
},
|
|
19
25
|
"rules": {
|
|
20
26
|
"import/no-unresolved": 1,
|
|
27
|
+
"import/named": "error",
|
|
21
28
|
"react/jsx-key": [2, { "checkFragmentShorthand": true }],
|
|
22
29
|
"no-alert": 1,
|
|
23
30
|
"no-console": 1,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** This file is intended to have ESlint configuration only meant to be applied in
|
|
2
|
+
* Volto core. Since it relies on the `VOLTOCONFIG` environment variable, it will
|
|
3
|
+
* not be applied in CI and command line `make lint` in Volto projects.
|
|
4
|
+
* However, it will be applied in IDEs, adding a layer of convenience for developers,
|
|
5
|
+
* so they can adapt to use best practices and future deprecations and changes in
|
|
6
|
+
* Volto core codebase.
|
|
7
|
+
*/
|
|
8
|
+
let rules;
|
|
9
|
+
|
|
10
|
+
if (process.env.VOLTOCONFIG) {
|
|
11
|
+
rules = null;
|
|
12
|
+
} else {
|
|
13
|
+
rules = {
|
|
14
|
+
'react/jsx-filename-extension': ['warn', { extensions: ['.tsx', '.jsx'] }],
|
|
15
|
+
'no-restricted-imports': [
|
|
16
|
+
'warn',
|
|
17
|
+
{
|
|
18
|
+
name: '@plone/volto/components',
|
|
19
|
+
message:
|
|
20
|
+
'Importing from barrel files is not allowed. The usage of barrel files is discouraged and they will be removed in Plone 7. Please use direct imports of the modules instead.',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: '@plone/volto/helpers',
|
|
24
|
+
message:
|
|
25
|
+
'Importing from barrel files is not allowed. The usage of barrel files is discouraged and they will be removed in Plone 7. Please use direct imports of the modules instead.',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: '@plone/volto/actions',
|
|
29
|
+
message:
|
|
30
|
+
'Importing from barrel files is not allowed. The usage of barrel files is discouraged and they will be removed in Plone 7. Please use direct imports of the modules instead.',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'lodash',
|
|
34
|
+
message:
|
|
35
|
+
"Importing directly from `lodash` is not allowed. Please use `import <helper> from 'lodash/<helper>'` instead.",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
module.exports = {
|
|
42
|
+
...(rules && { rules }),
|
|
43
|
+
};
|
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,23 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 18.2.1 (2024-12-09)
|
|
21
|
+
|
|
22
|
+
### Bugfix
|
|
23
|
+
|
|
24
|
+
- Fixes ICS download in non-public event content. @sneridagh [#6515](https://github.com/plone/volto/issues/6515)
|
|
25
|
+
- Fixed circular import error in dev with HMR in `App` component when imported in the main default config. @sneridagh [#6524](https://github.com/plone/volto/issues/6524)
|
|
26
|
+
|
|
27
|
+
### Internal
|
|
28
|
+
|
|
29
|
+
- Fix extension in files containing JSX. @sneridagh [#6520](https://github.com/plone/volto/issues/6520)
|
|
30
|
+
|
|
31
|
+
## 18.2.0 (2024-12-08)
|
|
32
|
+
|
|
33
|
+
### Internal
|
|
34
|
+
|
|
35
|
+
- Removed all imports from barrel files for components, actions, helpers, hooks and lodash. @pnicolli [#6509](https://github.com/plone/volto/issues/6509)
|
|
36
|
+
|
|
20
37
|
## 18.1.2 (2024-12-05)
|
|
21
38
|
|
|
22
39
|
### Bugfix
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "18.1
|
|
12
|
+
"version": "18.2.1",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -236,9 +236,9 @@
|
|
|
236
236
|
"url": "^0.11.3",
|
|
237
237
|
"use-deep-compare-effect": "1.8.1",
|
|
238
238
|
"uuid": "^8.3.2",
|
|
239
|
-
"@plone/registry": "2.1.2",
|
|
240
239
|
"@plone/scripts": "3.8.1",
|
|
241
|
-
"@plone/volto-slate": "18.0.
|
|
240
|
+
"@plone/volto-slate": "18.0.3",
|
|
241
|
+
"@plone/registry": "2.1.2"
|
|
242
242
|
},
|
|
243
243
|
"devDependencies": {
|
|
244
244
|
"@babel/core": "^7.0.0",
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
LINK_INTEGRITY_CHECK,
|
|
17
17
|
UPDATE_UPLOADED_FILES,
|
|
18
18
|
} from '@plone/volto/constants/ActionTypes';
|
|
19
|
-
import { nestContent } from '@plone/volto/helpers';
|
|
19
|
+
import { nestContent } from '@plone/volto/helpers/Content/Content';
|
|
20
20
|
import config from '@plone/volto/registry';
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -2,8 +2,8 @@ import { updateIntl } from 'react-intl-redux';
|
|
|
2
2
|
import {
|
|
3
3
|
toGettextLang,
|
|
4
4
|
toReactIntlLang,
|
|
5
|
-
|
|
6
|
-
} from '@plone/volto/helpers';
|
|
5
|
+
} from '@plone/volto/helpers/Utils/Utils';
|
|
6
|
+
import { getCookieOptions } from '@plone/volto/helpers/Cookies/cookies';
|
|
7
7
|
import Cookies from 'universal-cookie';
|
|
8
8
|
|
|
9
9
|
export function changeLanguageCookies(language, req) {
|
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
* @module actions/search/search
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import compact from 'lodash/compact';
|
|
7
|
+
import concat from 'lodash/concat';
|
|
8
|
+
import isArray from 'lodash/isArray';
|
|
9
|
+
import join from 'lodash/join';
|
|
10
|
+
import map from 'lodash/map';
|
|
11
|
+
import pickBy from 'lodash/pickBy';
|
|
12
|
+
import toPairs from 'lodash/toPairs';
|
|
7
13
|
|
|
8
14
|
import {
|
|
9
15
|
RESET_SEARCH_CONTENT,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
GET_WORKFLOW_MULTIPLE,
|
|
9
9
|
TRANSITION_WORKFLOW,
|
|
10
10
|
} from '@plone/volto/constants/ActionTypes';
|
|
11
|
-
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
11
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Get workflow function.
|
|
@@ -6,9 +6,14 @@ import { Dropdown, Icon } from 'semantic-ui-react';
|
|
|
6
6
|
import { toast } from 'react-toastify';
|
|
7
7
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import {
|
|
10
|
+
cut,
|
|
11
|
+
copy,
|
|
12
|
+
copyContent,
|
|
13
|
+
moveContent,
|
|
14
|
+
} from '@plone/volto/actions/clipboard/clipboard';
|
|
15
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
16
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
12
17
|
import { ContentsRenameModal } from '@plone/volto/components/manage/Contents';
|
|
13
18
|
|
|
14
19
|
const messages = defineMessages({
|
|
@@ -5,14 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import {
|
|
9
|
-
BodyClass,
|
|
10
|
-
Helmet,
|
|
11
|
-
extractInvariantErrors,
|
|
12
|
-
} from '@plone/volto/helpers';
|
|
13
8
|
import { connect } from 'react-redux';
|
|
14
9
|
import { compose } from 'redux';
|
|
15
|
-
import
|
|
10
|
+
import keys from 'lodash/keys';
|
|
11
|
+
import isEmpty from 'lodash/isEmpty';
|
|
16
12
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
17
13
|
import { Button, Grid, Menu } from 'semantic-ui-react';
|
|
18
14
|
import { createPortal } from 'react-dom';
|
|
@@ -20,35 +16,39 @@ import { v4 as uuid } from 'uuid';
|
|
|
20
16
|
import qs from 'query-string';
|
|
21
17
|
import { toast } from 'react-toastify';
|
|
22
18
|
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Toast,
|
|
34
|
-
TranslationObject,
|
|
35
|
-
} from '@plone/volto/components';
|
|
19
|
+
import { createContent } from '@plone/volto/actions/content/content';
|
|
20
|
+
import { getSchema } from '@plone/volto/actions/schema/schema';
|
|
21
|
+
import { changeLanguage } from '@plone/volto/actions/language/language';
|
|
22
|
+
import { setFormData } from '@plone/volto/actions/form/form';
|
|
23
|
+
|
|
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';
|
|
28
|
+
import TranslationObject from '@plone/volto/components/manage/Multilingual/TranslationObject';
|
|
36
29
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
30
|
+
|
|
31
|
+
import { getBaseUrl, flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
37
32
|
import {
|
|
38
|
-
getBaseUrl,
|
|
39
33
|
hasBlocksData,
|
|
40
|
-
flattenToAppURL,
|
|
41
34
|
getBlocksFieldname,
|
|
42
35
|
getBlocksLayoutFieldname,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
} from '@plone/volto/helpers/Blocks/Blocks';
|
|
37
|
+
import { getLanguageIndependentFields } from '@plone/volto/helpers/Content/Content';
|
|
38
|
+
import langmap from '@plone/volto/helpers/LanguageMap/LanguageMap';
|
|
39
|
+
import { toGettextLang } from '@plone/volto/helpers/Utils/Utils';
|
|
40
|
+
import {
|
|
46
41
|
getSimpleDefaultBlocks,
|
|
47
42
|
getDefaultBlocks,
|
|
48
|
-
} from '@plone/volto/helpers';
|
|
43
|
+
} from '@plone/volto/helpers/Blocks/defaultBlocks';
|
|
44
|
+
import {
|
|
45
|
+
tryParseJSON,
|
|
46
|
+
extractInvariantErrors,
|
|
47
|
+
} from '@plone/volto/helpers/FormValidation/FormValidation';
|
|
48
|
+
import BodyClass from '@plone/volto/helpers/BodyClass/BodyClass';
|
|
49
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
49
50
|
|
|
50
51
|
import { preloadLazyLibs } from '@plone/volto/helpers/Loadable';
|
|
51
|
-
import { tryParseJSON } from '@plone/volto/helpers';
|
|
52
52
|
|
|
53
53
|
import config from '@plone/volto/registry';
|
|
54
54
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import { Helmet } from '@plone/volto/helpers';
|
|
8
7
|
import { connect } from 'react-redux';
|
|
9
8
|
import { compose } from 'redux';
|
|
10
9
|
import { Link } from 'react-router-dom';
|
|
11
10
|
import { createPortal } from 'react-dom';
|
|
11
|
+
import { toast } from 'react-toastify';
|
|
12
12
|
import {
|
|
13
13
|
Button,
|
|
14
14
|
Checkbox,
|
|
@@ -24,15 +24,17 @@ import {
|
|
|
24
24
|
removeAliases,
|
|
25
25
|
addAliases,
|
|
26
26
|
getAliases,
|
|
27
|
-
|
|
28
|
-
} from '@plone/volto/actions';
|
|
27
|
+
} from '@plone/volto/actions/aliases/aliases';
|
|
28
|
+
import { getContent } from '@plone/volto/actions/content/content';
|
|
29
|
+
|
|
30
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
31
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
29
32
|
|
|
30
|
-
import
|
|
33
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
34
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
35
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
31
36
|
|
|
32
37
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
33
|
-
import { getBaseUrl } from '@plone/volto/helpers';
|
|
34
|
-
import { toast } from 'react-toastify';
|
|
35
|
-
import { Toast } from '@plone/volto/components';
|
|
36
38
|
|
|
37
39
|
const messages = defineMessages({
|
|
38
40
|
back: {
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { compose } from 'redux';
|
|
9
|
-
|
|
10
|
-
// import unionClassNames from 'union-class-names';
|
|
9
|
+
import { withRouter } from 'react-router';
|
|
11
10
|
import cx from 'classnames';
|
|
11
|
+
|
|
12
12
|
import {
|
|
13
13
|
addAppURL,
|
|
14
14
|
isInternalURL,
|
|
15
15
|
flattenToAppURL,
|
|
16
16
|
URLUtils,
|
|
17
|
-
} from '@plone/volto/helpers';
|
|
17
|
+
} from '@plone/volto/helpers/Url/Url';
|
|
18
18
|
|
|
19
|
-
import
|
|
19
|
+
import doesNodeContainClick from 'semantic-ui-react/dist/commonjs/lib/doesNodeContainClick';
|
|
20
20
|
import { Input, Form, Button } from 'semantic-ui-react';
|
|
21
21
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
22
22
|
|
|
@@ -25,10 +25,8 @@ import navTreeSVG from '@plone/volto/icons/nav.svg';
|
|
|
25
25
|
import aheadSVG from '@plone/volto/icons/ahead.svg';
|
|
26
26
|
import linkSVG from '@plone/volto/icons/link.svg';
|
|
27
27
|
|
|
28
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
28
29
|
import withObjectBrowser from '@plone/volto/components/manage/Sidebar/ObjectBrowser';
|
|
29
|
-
import { withRouter } from 'react-router';
|
|
30
|
-
|
|
31
|
-
import { Icon } from '@plone/volto/components';
|
|
32
30
|
|
|
33
31
|
const messages = defineMessages({
|
|
34
32
|
placeholder: {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import React from 'react';
|
|
16
|
-
import
|
|
16
|
+
import PositionedToolbar from '@plone/volto-slate/editor/ui/PositionedToolbar';
|
|
17
17
|
import AddLinkForm from '@plone/volto/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm';
|
|
18
18
|
|
|
19
19
|
function getPositionStyle(position) {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import useUser from '@plone/volto/hooks/user/useUser';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import
|
|
4
|
+
import filter from 'lodash/filter';
|
|
5
|
+
import map from 'lodash/map';
|
|
6
|
+
import groupBy from 'lodash/groupBy';
|
|
7
|
+
import isEmpty from 'lodash/isEmpty';
|
|
5
8
|
import { Accordion, Button } from 'semantic-ui-react';
|
|
6
9
|
import { useIntl, defineMessages } from 'react-intl';
|
|
7
|
-
import
|
|
10
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
8
11
|
import AnimateHeight from 'react-animate-height';
|
|
9
12
|
import config from '@plone/volto/registry';
|
|
10
13
|
import upSVG from '@plone/volto/icons/up-key.svg';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import doesNodeContainClick from 'semantic-ui-react/dist/commonjs/lib/doesNodeContainClick';
|
|
3
3
|
import addSVG from '@plone/volto/icons/circle-plus.svg';
|
|
4
|
-
import { blockHasValue } from '@plone/volto/helpers';
|
|
5
|
-
import
|
|
4
|
+
import { blockHasValue } from '@plone/volto/helpers/Blocks/Blocks';
|
|
5
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
6
|
+
import BlockChooser from '@plone/volto/components/manage/BlockChooser/BlockChooser';
|
|
6
7
|
import config from '@plone/volto/registry';
|
|
7
8
|
import { Button, Ref } from 'semantic-ui-react';
|
|
8
9
|
import { defineMessages, useIntl } from 'react-intl';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { Button, Form, Input } from 'semantic-ui-react';
|
|
3
|
-
import
|
|
3
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
4
4
|
import { defineMessages, useIntl } from 'react-intl';
|
|
5
5
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
6
6
|
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import
|
|
3
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
4
|
+
import map from 'lodash/map';
|
|
4
5
|
import EditBlock from './Edit';
|
|
5
|
-
import
|
|
6
|
+
import DragDropList from '@plone/volto/components/manage/DragDropList/DragDropList';
|
|
6
7
|
import {
|
|
7
8
|
getBlocks,
|
|
8
9
|
getBlocksFieldname,
|
|
9
10
|
getBlocksLayoutFieldname,
|
|
10
11
|
applyBlockDefaults,
|
|
11
12
|
getBlocksHierarchy,
|
|
12
|
-
} from '@plone/volto/helpers';
|
|
13
|
-
import {
|
|
14
13
|
addBlock,
|
|
15
14
|
insertBlock,
|
|
16
15
|
changeBlock,
|
|
@@ -20,11 +19,13 @@ import {
|
|
|
20
19
|
mutateBlock,
|
|
21
20
|
nextBlockId,
|
|
22
21
|
previousBlockId,
|
|
23
|
-
} from '@plone/volto/helpers';
|
|
22
|
+
} from '@plone/volto/helpers/Blocks/Blocks';
|
|
23
|
+
import { useDetectClickOutside } from '@plone/volto/helpers/Utils/useDetectClickOutside';
|
|
24
|
+
import { useEvent } from '@plone/volto/helpers/Utils/useEvent';
|
|
24
25
|
import EditBlockWrapper from './EditBlockWrapper';
|
|
25
|
-
import { setSidebarTab
|
|
26
|
+
import { setSidebarTab } from '@plone/volto/actions/sidebar/sidebar';
|
|
27
|
+
import { setUIState } from '@plone/volto/actions/form/form';
|
|
26
28
|
import { useDispatch } from 'react-redux';
|
|
27
|
-
import { useDetectClickOutside, useEvent } from '@plone/volto/helpers';
|
|
28
29
|
import config from '@plone/volto/registry';
|
|
29
30
|
import { createPortal } from 'react-dom';
|
|
30
31
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import config from '@plone/volto/registry';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import
|
|
4
|
+
import SidebarPortal from '@plone/volto/components/manage/Sidebar/SidebarPortal';
|
|
5
5
|
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
6
6
|
import DefaultBlockView from './DefaultView';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import { Container, Segment, Grid, Label } from 'semantic-ui-react';
|
|
4
|
-
import
|
|
4
|
+
import ErrorBoundary from '@plone/volto/components/theme/Error/ErrorBoundary';
|
|
5
5
|
import { getWidget } from '@plone/volto/helpers/Widget/utils';
|
|
6
6
|
import config from '@plone/volto/registry';
|
|
7
7
|
|
|
@@ -9,16 +9,15 @@ import { compose } from 'redux';
|
|
|
9
9
|
import { connect } from 'react-redux';
|
|
10
10
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
11
11
|
import cx from 'classnames';
|
|
12
|
-
import { setSidebarTab
|
|
12
|
+
import { setSidebarTab } from '@plone/volto/actions/sidebar/sidebar';
|
|
13
|
+
import { setUIState } from '@plone/volto/actions/form/form';
|
|
13
14
|
import config from '@plone/volto/registry';
|
|
14
15
|
import withObjectBrowser from '@plone/volto/components/manage/Sidebar/ObjectBrowser';
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
BlockSettingsSchema,
|
|
21
|
-
} from '@plone/volto/components';
|
|
16
|
+
import ViewDefaultBlock from '@plone/volto/components/manage/Blocks/Block/DefaultView';
|
|
17
|
+
import EditDefaultBlock from '@plone/volto/components/manage/Blocks/Block/DefaultEdit';
|
|
18
|
+
import SidebarPortal from '@plone/volto/components/manage/Sidebar/SidebarPortal';
|
|
19
|
+
import BlockSettingsSidebar from '@plone/volto/components/manage/Blocks/Block/Settings';
|
|
20
|
+
import BlockSettingsSchema from '@plone/volto/components/manage/Blocks/Block/Schema';
|
|
22
21
|
|
|
23
22
|
const messages = defineMessages({
|
|
24
23
|
unknownBlock: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
3
3
|
import {
|
|
4
4
|
applyBlockDefaults,
|
|
5
5
|
applyBlockInitialValue,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
buildStyleClassNamesFromData,
|
|
9
9
|
buildStyleObjectFromData,
|
|
10
10
|
buildStyleClassNamesExtenders,
|
|
11
|
-
} from '@plone/volto/helpers';
|
|
11
|
+
} from '@plone/volto/helpers/Blocks/Blocks';
|
|
12
12
|
import dragSVG from '@plone/volto/icons/drag.svg';
|
|
13
13
|
import { Button } from 'semantic-ui-react';
|
|
14
14
|
import includes from 'lodash/includes';
|
|
@@ -16,7 +16,7 @@ import isBoolean from 'lodash/isBoolean';
|
|
|
16
16
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
17
17
|
import cx from 'classnames';
|
|
18
18
|
import config from '@plone/volto/registry';
|
|
19
|
-
import
|
|
19
|
+
import BlockChooserButton from '@plone/volto/components/manage/BlockChooser/BlockChooserButton';
|
|
20
20
|
|
|
21
21
|
import trashSVG from '@plone/volto/icons/delete.svg';
|
|
22
22
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
import
|
|
4
|
+
import includes from 'lodash/includes';
|
|
5
5
|
import cx from 'classnames';
|
|
6
|
-
import
|
|
7
|
-
import { setUIState } from '@plone/volto/actions';
|
|
6
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
7
|
+
import { setUIState } from '@plone/volto/actions/form/form';
|
|
8
8
|
import config from '@plone/volto/registry';
|
|
9
9
|
|
|
10
10
|
import deleteSVG from '@plone/volto/icons/delete.svg';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
|
-
import
|
|
3
|
+
import find from 'lodash/find';
|
|
4
|
+
import min from 'lodash/min';
|
|
4
5
|
|
|
5
6
|
import { flattenTree, getProjection, removeChildrenOf } from './utilities';
|
|
6
7
|
import SortableItem from './SortableItem';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import isArray from 'lodash/isArray';
|
|
2
2
|
|
|
3
|
-
import { getBlocksLayoutFieldname } from '@plone/volto/helpers';
|
|
3
|
+
import { getBlocksLayoutFieldname } from '@plone/volto/helpers/Blocks/Blocks';
|
|
4
4
|
|
|
5
5
|
function getDragDepth(offset, indentationWidth) {
|
|
6
6
|
return Math.round(offset / indentationWidth);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import pickBy from 'lodash/pickBy';
|
|
4
|
+
import SidebarPortal from '@plone/volto/components/manage/Sidebar/SidebarPortal';
|
|
5
5
|
import { BlocksForm } from '@plone/volto/components/manage/Form';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import ContainerData from './Data';
|
|
8
8
|
import DefaultEditBlockWrapper from './EditBlockWrapper';
|
|
9
9
|
import SimpleContainerToolbar from './SimpleContainerToolbar';
|
|
10
10
|
import { v4 as uuid } from 'uuid';
|
|
11
|
-
import { blocksFormGenerator } from '@plone/volto/helpers';
|
|
11
|
+
import { blocksFormGenerator } from '@plone/volto/helpers/Blocks/Blocks';
|
|
12
12
|
|
|
13
13
|
import DefaultTemplateChooser from '@plone/volto/components/manage/TemplateChooser/TemplateChooser';
|
|
14
14
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
2
2
|
import { Button } from 'semantic-ui-react';
|
|
3
3
|
import { defineMessages, useIntl } from 'react-intl';
|
|
4
4
|
import NewBlockAddButton from './NewBlockAddButton';
|
|
5
5
|
import cx from 'classnames';
|
|
6
|
-
import { isInteractiveElement } from '@plone/volto/helpers';
|
|
6
|
+
import { isInteractiveElement } from '@plone/volto/helpers/Utils/Utils';
|
|
7
7
|
|
|
8
8
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
9
9
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button, Ref } from 'semantic-ui-react';
|
|
3
3
|
import { defineMessages, useIntl } from 'react-intl';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import BlockChooser from '@plone/volto/components/manage/BlockChooser/BlockChooser';
|
|
5
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
6
|
+
import { useDetectClickOutside } from '@plone/volto/helpers/Utils/useDetectClickOutside';
|
|
6
7
|
import addSVG from '@plone/volto/icons/add.svg';
|
|
7
8
|
import { usePopper } from 'react-popper';
|
|
8
9
|
import { createPortal } from 'react-dom';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineMessages, useIntl } from 'react-intl';
|
|
2
2
|
import { Button } from 'semantic-ui-react';
|
|
3
|
-
import
|
|
3
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
4
4
|
|
|
5
5
|
import addSVG from '@plone/volto/icons/add.svg';
|
|
6
6
|
import configSVG from '@plone/volto/icons/configuration.svg';
|
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import cx from 'classnames';
|
|
3
3
|
import ContainerEdit from '../Container/Edit';
|
|
4
4
|
import { useDispatch, useSelector } from 'react-redux';
|
|
5
|
-
import { setUIState } from '@plone/volto/actions';
|
|
5
|
+
import { setUIState } from '@plone/volto/actions/form/form';
|
|
6
6
|
|
|
7
7
|
const GridBlockEdit = (props) => {
|
|
8
8
|
const { data } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Grid } from 'semantic-ui-react';
|
|
2
2
|
import cx from 'classnames';
|
|
3
|
-
import
|
|
4
|
-
import { withBlockExtensions } from '@plone/volto/helpers';
|
|
3
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
4
|
+
import { withBlockExtensions } from '@plone/volto/helpers/Extensions';
|
|
5
5
|
import config from '@plone/volto/registry';
|
|
6
6
|
|
|
7
7
|
const GridBlockView = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineMessages } from 'react-intl';
|
|
2
|
-
import { blocksFormGenerator } from '@plone/volto/helpers';
|
|
2
|
+
import { blocksFormGenerator } from '@plone/volto/helpers/Blocks/Blocks';
|
|
3
3
|
|
|
4
4
|
import gridTemplate1 from './grid-1.svg';
|
|
5
5
|
import gridTemplate2 from './grid-2.svg';
|
|
@@ -9,9 +9,9 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { Button, Popup } from 'semantic-ui-react';
|
|
10
10
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
11
11
|
import loadable from '@loadable/component';
|
|
12
|
-
import
|
|
12
|
+
import isEqual from 'lodash/isEqual';
|
|
13
13
|
|
|
14
|
-
import
|
|
14
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
15
15
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
16
16
|
import showSVG from '@plone/volto/icons/show.svg';
|
|
17
17
|
import clearSVG from '@plone/volto/icons/clear.svg';
|