@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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import capitalize from 'lodash/capitalize';
|
|
3
|
+
import find from 'lodash/find';
|
|
3
4
|
import { compose } from 'redux';
|
|
4
5
|
import { useSelector, useDispatch } from 'react-redux';
|
|
5
6
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
@@ -15,13 +16,14 @@ import {
|
|
|
15
16
|
Tab,
|
|
16
17
|
} from 'semantic-ui-react';
|
|
17
18
|
import withObjectBrowser from '@plone/volto/components/manage/Sidebar/ObjectBrowser';
|
|
18
|
-
import { messages } from '@plone/volto/helpers';
|
|
19
|
-
import
|
|
19
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
20
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
21
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
20
22
|
import {
|
|
21
23
|
getRelationStats,
|
|
22
24
|
queryRelations,
|
|
23
|
-
|
|
24
|
-
} from '@plone/volto/actions';
|
|
25
|
+
} from '@plone/volto/actions/relations/relations';
|
|
26
|
+
import { rebuildRelations } from '@plone/volto/actions/relations/rebuild';
|
|
25
27
|
import RelationsListing from '@plone/volto/components/manage/Controlpanels/Relations/RelationsListing';
|
|
26
28
|
import BrokenRelations from '@plone/volto/components/manage/Controlpanels/Relations/BrokenRelations';
|
|
27
29
|
import helpSVG from '@plone/volto/icons/help.svg';
|
|
@@ -8,7 +8,8 @@ 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 { getBaseUrl, getParentUrl
|
|
11
|
+
import { getBaseUrl, 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 {
|
|
14
15
|
Button,
|
|
@@ -19,11 +20,16 @@ import {
|
|
|
19
20
|
Segment,
|
|
20
21
|
} from 'semantic-ui-react';
|
|
21
22
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
22
|
-
import
|
|
23
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
24
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
25
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
23
26
|
import { Field } from '@plone/volto/components/manage/Form';
|
|
24
27
|
import { toast } from 'react-toastify';
|
|
25
28
|
|
|
26
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
getContentRulesEvents,
|
|
31
|
+
addNewRule,
|
|
32
|
+
} from '@plone/volto/actions/rules/rules';
|
|
27
33
|
|
|
28
34
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
29
35
|
|
|
@@ -8,7 +8,8 @@ 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 { getBaseUrl, getParentUrl
|
|
11
|
+
import { getBaseUrl, 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 {
|
|
14
15
|
Button,
|
|
@@ -19,7 +20,9 @@ import {
|
|
|
19
20
|
Segment,
|
|
20
21
|
} from 'semantic-ui-react';
|
|
21
22
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
22
|
-
import
|
|
23
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
24
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
25
|
+
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
|
|
23
26
|
import {
|
|
24
27
|
getControlPanelRule,
|
|
25
28
|
removeCondition,
|
|
@@ -32,9 +35,9 @@ import {
|
|
|
32
35
|
getAction,
|
|
33
36
|
moveRuleCondition,
|
|
34
37
|
moveRuleAction,
|
|
35
|
-
} from '@plone/volto/actions';
|
|
38
|
+
} from '@plone/volto/actions/rules/rules';
|
|
36
39
|
import { toast } from 'react-toastify';
|
|
37
|
-
import
|
|
40
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
38
41
|
|
|
39
42
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
40
43
|
import upSVG from '@plone/volto/icons/up.svg';
|
|
@@ -8,7 +8,8 @@ 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, getBaseUrl } 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 {
|
|
14
15
|
Button,
|
|
@@ -20,13 +21,15 @@ import {
|
|
|
20
21
|
} from 'semantic-ui-react';
|
|
21
22
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
22
23
|
|
|
23
|
-
import
|
|
24
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
25
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
26
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
24
27
|
import { Field } from '@plone/volto/components/manage/Form';
|
|
25
28
|
import {
|
|
26
29
|
getControlPanelRule,
|
|
27
30
|
editRule,
|
|
28
31
|
getContentRulesEvents,
|
|
29
|
-
} from '@plone/volto/actions';
|
|
32
|
+
} from '@plone/volto/actions/rules/rules';
|
|
30
33
|
import { toast } from 'react-toastify';
|
|
31
34
|
|
|
32
35
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
@@ -8,7 +8,8 @@ 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
|
|
11
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
12
|
+
import { getBaseUrl, getParentUrl } from '@plone/volto/helpers/Url/Url';
|
|
12
13
|
import { createPortal } from 'react-dom';
|
|
13
14
|
import {
|
|
14
15
|
Button,
|
|
@@ -20,16 +21,17 @@ import {
|
|
|
20
21
|
Table,
|
|
21
22
|
} from 'semantic-ui-react';
|
|
22
23
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
23
|
-
import
|
|
24
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
25
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
24
26
|
import { toast } from 'react-toastify';
|
|
25
|
-
import
|
|
27
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
26
28
|
|
|
27
29
|
import {
|
|
28
30
|
getControlPanelRules,
|
|
29
31
|
deleteControlPanelRule,
|
|
30
32
|
getContentRulesEvents,
|
|
31
33
|
editRule,
|
|
32
|
-
} from '@plone/volto/actions';
|
|
34
|
+
} from '@plone/volto/actions/rules/rules';
|
|
33
35
|
|
|
34
36
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
35
37
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Modal } from 'semantic-ui-react';
|
|
3
3
|
import { connect } from 'react-redux';
|
|
4
4
|
|
|
5
|
-
import { getVocabulary } from '@plone/volto/actions';
|
|
5
|
+
import { getVocabulary } from '@plone/volto/actions/vocabularies/vocabularies';
|
|
6
6
|
import { injectIntl } from 'react-intl';
|
|
7
7
|
import { compose } from 'redux';
|
|
8
8
|
|
|
@@ -10,15 +10,20 @@ import { Link } from 'react-router-dom';
|
|
|
10
10
|
import { createPortal } from 'react-dom';
|
|
11
11
|
import { Container, Segment, Table, Menu, Input } from 'semantic-ui-react';
|
|
12
12
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
13
|
-
import
|
|
13
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
14
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
15
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
14
16
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
15
17
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
+
import map from 'lodash/map';
|
|
19
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
18
20
|
import nextIcon from '@plone/volto/icons/right-key.svg';
|
|
19
21
|
import prevIcon from '@plone/volto/icons/left-key.svg';
|
|
20
22
|
import undoSVG from '@plone/volto/icons/undo.svg';
|
|
21
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
getTransactions,
|
|
25
|
+
revertTransactions,
|
|
26
|
+
} from '@plone/volto/actions/transactions/transactions';
|
|
22
27
|
import { toast } from 'react-toastify';
|
|
23
28
|
|
|
24
29
|
const messages = defineMessages({
|
|
@@ -17,15 +17,17 @@ import {
|
|
|
17
17
|
Table,
|
|
18
18
|
} from 'semantic-ui-react';
|
|
19
19
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
20
|
-
import
|
|
20
|
+
import map from 'lodash/map';
|
|
21
21
|
|
|
22
|
+
import { getSystemInformation } from '@plone/volto/actions/controlpanels/controlpanels';
|
|
22
23
|
import {
|
|
23
|
-
getSystemInformation,
|
|
24
24
|
getUpgradeInformation,
|
|
25
25
|
runUpgrade,
|
|
26
|
-
} from '@plone/volto/actions';
|
|
27
|
-
import
|
|
28
|
-
import
|
|
26
|
+
} from '@plone/volto/actions/upgrade/upgrade';
|
|
27
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
28
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
29
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
30
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
29
31
|
import { VersionOverview } from '@plone/volto/components/manage/Controlpanels';
|
|
30
32
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
31
33
|
import { toast } from 'react-toastify';
|
|
@@ -8,13 +8,15 @@ import { FormattedMessage, injectIntl } from 'react-intl';
|
|
|
8
8
|
import { Dropdown, Table, Checkbox } from 'semantic-ui-react';
|
|
9
9
|
import trashSVG from '@plone/volto/icons/delete.svg';
|
|
10
10
|
import editSVG from '@plone/volto/icons/editing.svg';
|
|
11
|
-
import
|
|
11
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
12
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
12
13
|
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
13
|
-
import { updateUser } from '@plone/volto/actions';
|
|
14
|
+
import { updateUser } from '@plone/volto/actions/users/users';
|
|
14
15
|
import ploneSVG from '@plone/volto/icons/plone.svg';
|
|
15
16
|
import { compose } from 'redux';
|
|
16
17
|
import { connect } from 'react-redux';
|
|
17
|
-
import { messages
|
|
18
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
19
|
+
import { canAssignRole } from '@plone/volto/helpers/User/User';
|
|
18
20
|
import { toast } from 'react-toastify';
|
|
19
21
|
|
|
20
22
|
/**
|
|
@@ -3,21 +3,24 @@
|
|
|
3
3
|
* TODO Enrich with features of user control panel. Then replace user control panel.
|
|
4
4
|
*/
|
|
5
5
|
import React, { useEffect, useState } from 'react';
|
|
6
|
-
import
|
|
6
|
+
import find from 'lodash/find';
|
|
7
7
|
import { createPortal } from 'react-dom';
|
|
8
8
|
import { useHistory } from 'react-router';
|
|
9
9
|
import { Link, useLocation } from 'react-router-dom';
|
|
10
10
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
11
11
|
import { useDispatch, useSelector } from 'react-redux';
|
|
12
12
|
import { Segment } from 'semantic-ui-react';
|
|
13
|
-
import
|
|
13
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
14
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
14
15
|
import {
|
|
15
16
|
getControlpanel,
|
|
16
17
|
getSystemInformation,
|
|
17
|
-
|
|
18
|
-
} from '@plone/volto/actions';
|
|
19
|
-
import
|
|
20
|
-
import
|
|
18
|
+
} from '@plone/volto/actions/controlpanels/controlpanels';
|
|
19
|
+
import { listActions } from '@plone/volto/actions/actions/actions';
|
|
20
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
21
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
22
|
+
import Unauthorized from '@plone/volto/components/theme/Unauthorized/Unauthorized';
|
|
23
|
+
import { getParentUrl } from '@plone/volto/helpers/Url/Url';
|
|
21
24
|
import UserGroupMembershipMatrix from '@plone/volto/components/manage/Controlpanels/Users/UserGroupMembershipMatrix';
|
|
22
25
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
23
26
|
import settingsSVG from '@plone/volto/icons/settings.svg';
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import React, { useEffect, useState, useMemo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
3
|
+
import uniqBy from 'lodash/uniqBy';
|
|
4
|
+
import debounce from 'lodash/debounce';
|
|
3
5
|
import { useIntl } from 'react-intl';
|
|
4
6
|
import { useSelector, useDispatch, shallowEqual } from 'react-redux';
|
|
5
7
|
import jwtDecode from 'jwt-decode';
|
|
6
8
|
import { toast } from 'react-toastify';
|
|
7
9
|
import { Button, Checkbox } from 'semantic-ui-react';
|
|
8
|
-
import { messages
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
11
|
+
import { isManager, canAssignGroup } from '@plone/volto/helpers/User/User';
|
|
12
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
13
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
14
|
+
import { listGroups, updateGroup } from '@plone/volto/actions/groups/groups';
|
|
15
|
+
import { getUser, listUsers } from '@plone/volto/actions/users/users';
|
|
12
16
|
|
|
13
17
|
import down_key from '@plone/volto/icons/down-key.svg';
|
|
14
18
|
|
|
@@ -3,10 +3,11 @@ import { useSelector, useDispatch } from 'react-redux';
|
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { Checkbox, Form, Input } from 'semantic-ui-react';
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import isEqual from 'lodash/isEqual';
|
|
7
|
+
import debounce from 'lodash/debounce';
|
|
7
8
|
|
|
8
|
-
import { messages } from '@plone/volto/helpers';
|
|
9
|
-
import { listGroups } from '@plone/volto/actions'; // getRegistry
|
|
9
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
10
|
+
import { listGroups } from '@plone/volto/actions/groups/groups'; // getRegistry
|
|
10
11
|
import UserGroupMembershipListing from '@plone/volto/components/manage/Controlpanels/Users/UserGroupMembershipListing';
|
|
11
12
|
|
|
12
13
|
const UserGroupMembershipMatrix = ({ many_users, many_groups }) => {
|
|
@@ -5,37 +5,34 @@
|
|
|
5
5
|
import {
|
|
6
6
|
createUser,
|
|
7
7
|
deleteUser,
|
|
8
|
-
listRoles,
|
|
9
|
-
listGroups,
|
|
10
8
|
listUsers,
|
|
11
|
-
getControlpanel,
|
|
12
9
|
updateUser,
|
|
13
|
-
updateGroup,
|
|
14
|
-
getUserSchema,
|
|
15
10
|
getUser,
|
|
16
|
-
} from '@plone/volto/actions';
|
|
11
|
+
} from '@plone/volto/actions/users/users';
|
|
12
|
+
import { listRoles } from '@plone/volto/actions/roles/roles';
|
|
13
|
+
import { listGroups, updateGroup } from '@plone/volto/actions/groups/groups';
|
|
14
|
+
import { getControlpanel } from '@plone/volto/actions/controlpanels/controlpanels';
|
|
15
|
+
import { getUserSchema } from '@plone/volto/actions/userschema/userschema';
|
|
17
16
|
import jwtDecode from 'jwt-decode';
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Error,
|
|
24
|
-
} from '@plone/volto/components';
|
|
17
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
18
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
19
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
20
|
+
import Pagination from '@plone/volto/components/theme/Pagination/Pagination';
|
|
21
|
+
import Error from '@plone/volto/components/theme/Error/Error';
|
|
25
22
|
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
26
23
|
import RenderUsers from '@plone/volto/components/manage/Controlpanels/Users/RenderUsers';
|
|
27
24
|
import { Link } from 'react-router-dom';
|
|
28
|
-
import
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
isManager,
|
|
32
|
-
canAssignGroup,
|
|
33
|
-
} from '@plone/volto/helpers';
|
|
25
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
26
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
27
|
+
import { isManager, canAssignGroup } from '@plone/volto/helpers/User/User';
|
|
34
28
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
35
29
|
import addUserSvg from '@plone/volto/icons/add-user.svg';
|
|
36
30
|
import saveSVG from '@plone/volto/icons/save.svg';
|
|
37
31
|
import ploneSVG from '@plone/volto/icons/plone.svg';
|
|
38
|
-
import
|
|
32
|
+
import find from 'lodash/find';
|
|
33
|
+
import map from 'lodash/map';
|
|
34
|
+
import pull from 'lodash/pull';
|
|
35
|
+
import difference from 'lodash/difference';
|
|
39
36
|
import PropTypes from 'prop-types';
|
|
40
37
|
import React, { Component } from 'react';
|
|
41
38
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl';
|
|
8
|
-
import
|
|
8
|
+
import isEmpty from 'lodash/isEmpty';
|
|
9
9
|
|
|
10
10
|
import voltoPackageJson from '../../../../package.json';
|
|
11
11
|
import projectPackageJson from '@root/../package.json';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import loadable from '@loadable/component';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
getSystemInformation,
|
|
4
|
+
listControlpanels,
|
|
5
|
+
} from '@plone/volto/actions/controlpanels/controlpanels';
|
|
6
|
+
import { asyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
4
7
|
|
|
5
8
|
// CONTROLPANELS
|
|
6
9
|
|
|
@@ -6,9 +6,13 @@ import { Button, Container, List, Segment } from 'semantic-ui-react';
|
|
|
6
6
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
7
7
|
import qs from 'query-string';
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
9
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
10
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
11
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
12
|
+
import {
|
|
13
|
+
deleteContent,
|
|
14
|
+
getContent,
|
|
15
|
+
} from '@plone/volto/actions/content/content';
|
|
12
16
|
|
|
13
17
|
const messages = defineMessages({
|
|
14
18
|
delete: {
|
|
@@ -5,29 +5,31 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import
|
|
8
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
9
9
|
import { connect } from 'react-redux';
|
|
10
10
|
import { compose } from 'redux';
|
|
11
|
-
import
|
|
11
|
+
import filter from 'lodash/filter';
|
|
12
|
+
import isEqual from 'lodash/isEqual';
|
|
13
|
+
import map from 'lodash/map';
|
|
12
14
|
import { Container, Button, Dropdown, Grid, Table } from 'semantic-ui-react';
|
|
13
15
|
import { Link, withRouter } from 'react-router-dom';
|
|
14
16
|
import { createPortal } from 'react-dom';
|
|
15
17
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
16
18
|
import qs from 'query-string';
|
|
17
19
|
|
|
18
|
-
import { getDiff
|
|
20
|
+
import { getDiff } from '@plone/volto/actions/diff/diff';
|
|
21
|
+
import { getSchema } from '@plone/volto/actions/schema/schema';
|
|
22
|
+
import { getHistory } from '@plone/volto/actions/history/history';
|
|
23
|
+
import { getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
19
24
|
import {
|
|
20
|
-
getBaseUrl,
|
|
21
25
|
getBlocksFieldname,
|
|
22
26
|
getBlocksLayoutFieldname,
|
|
23
27
|
hasBlocksData,
|
|
24
|
-
} from '@plone/volto/helpers';
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Unauthorized,
|
|
30
|
-
} from '@plone/volto/components';
|
|
28
|
+
} from '@plone/volto/helpers/Blocks/Blocks';
|
|
29
|
+
import FormattedDate from '@plone/volto/components/theme/FormattedDate/FormattedDate';
|
|
30
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
31
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
32
|
+
import Unauthorized from '@plone/volto/components/theme/Unauthorized/Unauthorized';
|
|
31
33
|
import DiffField from '@plone/volto/components/manage/Diff/DiffField';
|
|
32
34
|
|
|
33
35
|
import backSVG from '@plone/volto/icons/back.svg';
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import
|
|
7
|
+
import join from 'lodash/join';
|
|
8
|
+
import map from 'lodash/map';
|
|
8
9
|
import PropTypes from 'prop-types';
|
|
9
10
|
import { Grid } from 'semantic-ui-react';
|
|
10
11
|
import ReactDOMServer from 'react-dom/server';
|
|
@@ -13,9 +14,9 @@ import { createBrowserHistory } from 'history';
|
|
|
13
14
|
import { ConnectedRouter } from 'connected-react-router';
|
|
14
15
|
import { useSelector } from 'react-redux';
|
|
15
16
|
import config from '@plone/volto/registry';
|
|
16
|
-
import
|
|
17
|
+
import Api from '@plone/volto/helpers/Api/Api';
|
|
17
18
|
import configureStore from '@plone/volto/store';
|
|
18
|
-
import
|
|
19
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
19
20
|
import { serializeNodes } from '@plone/volto-slate/editor/render';
|
|
20
21
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
21
22
|
|
|
@@ -4,10 +4,15 @@ import { useDispatch, useSelector } from 'react-redux';
|
|
|
4
4
|
import { compose } from 'redux';
|
|
5
5
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
6
6
|
|
|
7
|
-
import { getSchema
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { getSchema } from '@plone/volto/actions/schema/schema';
|
|
8
|
+
import {
|
|
9
|
+
updateContent,
|
|
10
|
+
getContent,
|
|
11
|
+
} from '@plone/volto/actions/content/content';
|
|
12
|
+
import { getLayoutFieldname } from '@plone/volto/helpers/Content/Content';
|
|
13
|
+
import { usePrevious } from '@plone/volto/helpers/Utils/usePrevious';
|
|
14
|
+
import { FormFieldWrapper } from '@plone/volto/components/manage/Widgets';
|
|
15
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
11
16
|
import { defineMessages, useIntl } from 'react-intl';
|
|
12
17
|
import config from '@plone/volto/registry';
|
|
13
18
|
|
|
@@ -5,44 +5,41 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import
|
|
8
|
+
import Helmet from '@plone/volto/helpers/Helmet/Helmet';
|
|
9
|
+
import { extractInvariantErrors } from '@plone/volto/helpers/FormValidation/FormValidation';
|
|
9
10
|
import { connect } from 'react-redux';
|
|
10
11
|
import { compose } from 'redux';
|
|
11
|
-
import { asyncConnect
|
|
12
|
+
import { asyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
13
|
+
import { hasApiExpander } from '@plone/volto/helpers/Utils/Utils';
|
|
12
14
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
13
15
|
import { Button, Grid, Menu } from 'semantic-ui-react';
|
|
14
16
|
import { createPortal } from 'react-dom';
|
|
15
17
|
import qs from 'query-string';
|
|
16
|
-
import
|
|
18
|
+
import find from 'lodash/find';
|
|
17
19
|
import { toast } from 'react-toastify';
|
|
18
20
|
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
TranslationObject,
|
|
28
|
-
} from '@plone/volto/components';
|
|
21
|
+
import Forbidden from '@plone/volto/components/theme/Forbidden/Forbidden';
|
|
22
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
23
|
+
import Sidebar from '@plone/volto/components/manage/Sidebar/Sidebar';
|
|
24
|
+
import Toast from '@plone/volto/components/manage/Toast/Toast';
|
|
25
|
+
import Toolbar from '@plone/volto/components/manage/Toolbar/Toolbar';
|
|
26
|
+
import Unauthorized from '@plone/volto/components/theme/Unauthorized/Unauthorized';
|
|
27
|
+
import CompareLanguages from '@plone/volto/components/manage/Multilingual/CompareLanguages';
|
|
28
|
+
import TranslationObject from '@plone/volto/components/manage/Multilingual/TranslationObject';
|
|
29
29
|
import { Form } from '@plone/volto/components/manage/Form';
|
|
30
30
|
import {
|
|
31
31
|
updateContent,
|
|
32
32
|
getContent,
|
|
33
33
|
lockContent,
|
|
34
34
|
unlockContent,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from '@plone/volto/actions';
|
|
39
|
-
import {
|
|
40
|
-
|
|
41
|
-
getBaseUrl,
|
|
42
|
-
hasBlocksData,
|
|
43
|
-
} from '@plone/volto/helpers';
|
|
35
|
+
} from '@plone/volto/actions/content/content';
|
|
36
|
+
import { getSchema } from '@plone/volto/actions/schema/schema';
|
|
37
|
+
import { listActions } from '@plone/volto/actions/actions/actions';
|
|
38
|
+
import { setFormData } from '@plone/volto/actions/form/form';
|
|
39
|
+
import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
40
|
+
import { hasBlocksData } from '@plone/volto/helpers/Blocks/Blocks';
|
|
44
41
|
import { preloadLazyLibs } from '@plone/volto/helpers/Loadable';
|
|
45
|
-
import { tryParseJSON } from '@plone/volto/helpers';
|
|
42
|
+
import { tryParseJSON } from '@plone/volto/helpers/FormValidation/FormValidation';
|
|
46
43
|
|
|
47
44
|
import saveSVG from '@plone/volto/icons/save.svg';
|
|
48
45
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InlineForm } from '@plone/volto/components/manage/Form';
|
|
3
|
-
import { withVariationSchemaEnhancer } from '@plone/volto/helpers';
|
|
3
|
+
import { withVariationSchemaEnhancer } from '@plone/volto/helpers/Extensions';
|
|
4
4
|
|
|
5
5
|
const EnhancedBlockDataForm = withVariationSchemaEnhancer(InlineForm);
|
|
6
6
|
|
|
@@ -2,18 +2,23 @@ import React from 'react';
|
|
|
2
2
|
import { compose } from 'redux';
|
|
3
3
|
import { connect } from 'react-redux';
|
|
4
4
|
import { injectIntl } from 'react-intl';
|
|
5
|
+
import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
|
|
5
6
|
import {
|
|
6
|
-
messages,
|
|
7
7
|
getBlocksFieldname,
|
|
8
8
|
getBlocksLayoutFieldname,
|
|
9
|
-
} from '@plone/volto/helpers';
|
|
10
|
-
import
|
|
9
|
+
} from '@plone/volto/helpers/Blocks/Blocks';
|
|
10
|
+
import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
11
11
|
import { Plug } from '@plone/volto/components/manage/Pluggable';
|
|
12
12
|
import { v4 as uuid } from 'uuid';
|
|
13
13
|
import { load } from 'redux-localstorage-simple';
|
|
14
|
-
import
|
|
14
|
+
import isEqual from 'lodash/isEqual';
|
|
15
|
+
import omit from 'lodash/omit';
|
|
16
|
+
import without from 'lodash/without';
|
|
15
17
|
|
|
16
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
setBlocksClipboard,
|
|
20
|
+
resetBlocksClipboard,
|
|
21
|
+
} from '@plone/volto/actions/blocksClipboard/blocksClipboard';
|
|
17
22
|
import config from '@plone/volto/registry';
|
|
18
23
|
|
|
19
24
|
import copySVG from '@plone/volto/icons/copy.svg';
|