@plone/volto 17.2.0 → 17.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/addon-registry.js +6 -2
- package/cypress/support/commands.js +9 -0
- package/package.json +11 -5
- package/packages/volto-slate/package.json +1 -1
- package/src/components/manage/Blocks/Description/Edit.jsx +4 -14
- package/src/components/manage/Blocks/Description/View.jsx +3 -13
- package/src/components/manage/Blocks/HTML/View.jsx +0 -10
- package/src/components/manage/Blocks/HeroImageLeft/View.jsx +0 -10
- package/src/components/manage/Blocks/Image/View.jsx +0 -10
- package/src/components/manage/Blocks/LeadImage/View.jsx +0 -10
- package/src/components/manage/Blocks/Search/SearchBlockView.jsx +1 -1
- package/src/components/manage/Blocks/Search/components/SelectStyling.jsx +1 -2
- package/src/components/manage/Blocks/Search/hocs/withSearch.jsx +10 -2
- package/src/components/manage/Blocks/Table/View.jsx +0 -10
- package/src/components/manage/Blocks/Text/View.jsx +0 -10
- package/src/components/manage/Blocks/Title/Edit.jsx +0 -10
- package/src/components/manage/Blocks/Video/Body.jsx +0 -10
- package/src/components/manage/Edit/Edit.jsx +11 -2
- package/src/components/manage/LinkMore/LinkMore.jsx +0 -10
- package/src/components/manage/Multilingual/TranslationObject.jsx +0 -10
- package/src/components/manage/Widgets/DatetimeWidget.jsx +2 -0
- package/src/components/theme/Footer/Footer.jsx +1 -0
- package/src/components/theme/Navigation/Navigation.jsx +1 -1
- package/src/components/theme/SkipLinks/SkipLinks.jsx +3 -1
- package/src/components/theme/SkipLinks/SkipLinks.test.jsx +6 -3
- package/src/helpers/Blocks/Blocks.js +120 -48
- package/src/helpers/Blocks/Blocks.test.js +75 -0
- package/src/helpers/Html/Html.jsx +1 -1
- package/types/actions/actions/actions.d.ts +7 -0
- package/types/actions/actions/actions.test.d.ts +1 -0
- package/types/actions/addons/addons.d.ts +27 -0
- package/types/actions/addons/addons.test.d.ts +1 -0
- package/types/actions/aliases/aliases.d.ts +24 -0
- package/types/actions/aliases/aliases.test.d.ts +1 -0
- package/types/actions/asyncConnect/asyncConnect.d.ts +24 -0
- package/types/actions/authRole/authRole.d.ts +4 -0
- package/types/actions/authRole/authRole.test.d.ts +1 -0
- package/types/actions/blocksClipboard/blocksClipboard.d.ts +13 -0
- package/types/actions/breadcrumbs/breadcrumbs.d.ts +7 -0
- package/types/actions/breadcrumbs/breadcrumbs.test.d.ts +1 -0
- package/types/actions/clipboard/clipboard.d.ts +30 -0
- package/types/actions/clipboard/clipboard.test.d.ts +1 -0
- package/types/actions/comments/comments.d.ts +37 -0
- package/types/actions/comments/comments.test.d.ts +1 -0
- package/types/actions/content/content.d.ts +90 -0
- package/types/actions/content/content.multilingual.test.d.ts +1 -0
- package/types/actions/content/content.test.d.ts +1 -0
- package/types/actions/contextNavigation/contextNavigation.d.ts +8 -0
- package/types/actions/contextNavigation/contextNavigation.test.d.ts +1 -0
- package/types/actions/controlpanels/controlpanels.d.ts +51 -0
- package/types/actions/controlpanels/controlpanels.test.d.ts +1 -0
- package/types/actions/diff/diff.d.ts +9 -0
- package/types/actions/diff/diff.test.d.ts +1 -0
- package/types/actions/emailNotification/emailNotification.d.ts +10 -0
- package/types/actions/emailNotification/emailNotification.test.d.ts +1 -0
- package/types/actions/emailSend/emailSend.d.ts +11 -0
- package/types/actions/emailSend/emailSend.test.d.ts +1 -0
- package/types/actions/groups/groups.d.ts +36 -0
- package/types/actions/groups/groups.test.d.ts +1 -0
- package/types/actions/history/history.d.ts +15 -0
- package/types/actions/history/history.test.d.ts +1 -0
- package/types/actions/index.d.ts +8 -0
- package/types/actions/language/language.d.ts +9 -0
- package/types/actions/lazyLibraries/lazyLibraries.d.ts +1 -0
- package/types/actions/messages/messages.d.ts +22 -0
- package/types/actions/messages/messages.test.d.ts +1 -0
- package/types/actions/navigation/navigation.d.ts +8 -0
- package/types/actions/navigation/navigation.test.d.ts +1 -0
- package/types/actions/navroot/navroot.d.ts +6 -0
- package/types/actions/navroot/navroot.test.d.ts +1 -0
- package/types/actions/querystring/querystring.d.ts +6 -0
- package/types/actions/querystring/querystring.test.d.ts +1 -0
- package/types/actions/querystringsearch/querystringsearch.d.ts +7 -0
- package/types/actions/querystringsearch/querystringsearch.test.d.ts +1 -0
- package/types/actions/relations/rebuild.d.ts +7 -0
- package/types/actions/relations/relations.d.ts +27 -0
- package/types/actions/relations/relations.test.d.ts +1 -0
- package/types/actions/roles/roles.d.ts +6 -0
- package/types/actions/roles/roles.test.d.ts +1 -0
- package/types/actions/rules/rules.d.ts +168 -0
- package/types/actions/schema/schema.d.ts +32 -0
- package/types/actions/schema/schema.test.d.ts +1 -0
- package/types/actions/search/search.d.ts +16 -0
- package/types/actions/search/search.test.d.ts +1 -0
- package/types/actions/sharing/sharing.d.ts +16 -0
- package/types/actions/sharing/sharing.test.d.ts +1 -0
- package/types/actions/sidebar/sidebar.d.ts +7 -0
- package/types/actions/sidebar/sidebar.test.d.ts +1 -0
- package/types/actions/site/site.d.ts +6 -0
- package/types/actions/site/site.test.d.ts +1 -0
- package/types/actions/toolbar/toolbar.d.ts +7 -0
- package/types/actions/toolbar/toolbar.test.d.ts +1 -0
- package/types/actions/transactions/transactions.d.ts +13 -0
- package/types/actions/transactions/transactions.test.d.ts +1 -0
- package/types/actions/translations/translations.d.ts +23 -0
- package/types/actions/translations/translations.test.d.ts +1 -0
- package/types/actions/types/types.d.ts +7 -0
- package/types/actions/types/types.test.d.ts +1 -0
- package/types/actions/upgrade/upgrade.d.ts +17 -0
- package/types/actions/userSession/userSession.d.ts +26 -0
- package/types/actions/userSession/userSession.test.d.ts +1 -0
- package/types/actions/users/users.d.ts +66 -0
- package/types/actions/users/users.test.d.ts +1 -0
- package/types/actions/userschema/userschema.d.ts +6 -0
- package/types/actions/vocabularies/vocabularies.d.ts +20 -0
- package/types/actions/vocabularies/vocabularies.test.d.ts +1 -0
- package/types/actions/workflow/workflow.d.ts +15 -0
- package/types/actions/workflow/workflow.test.d.ts +1 -0
- package/types/actions/workingcopy/workingcopy.d.ts +21 -0
- package/types/actions/workingcopy/workingcopy.test.d.ts +1 -0
- package/types/client.d.ts +1 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/manage/Actions/Actions.d.ts +7 -0
- package/types/components/manage/Actions/Actions.test.d.ts +1 -0
- package/types/components/manage/Add/Add.d.ts +4 -0
- package/types/components/manage/Add/Add.test.d.ts +1 -0
- package/types/components/manage/Aliases/Aliases.d.ts +2 -0
- package/types/components/manage/Aliases/Aliases.test.d.ts +1 -0
- package/types/components/manage/AnchorPlugin/components/Link/index.d.ts +26 -0
- package/types/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.d.ts +4 -0
- package/types/components/manage/AnchorPlugin/components/LinkButton/index.d.ts +2 -0
- package/types/components/manage/AnchorPlugin/index.d.ts +9 -0
- package/types/components/manage/AnchorPlugin/linkStrategy.d.ts +11 -0
- package/types/components/manage/AnchorPlugin/utils/EditorUtils.d.ts +10 -0
- package/types/components/manage/BlockChooser/BlockChooser.d.ts +2 -0
- package/types/components/manage/BlockChooser/BlockChooser.test.d.ts +1 -0
- package/types/components/manage/BlockChooser/BlockChooserButton.d.ts +3 -0
- package/types/components/manage/BlockChooser/BlockChooserButton.test.d.ts +1 -0
- package/types/components/manage/BlockChooser/BlockChooserSearch.d.ts +5 -0
- package/types/components/manage/BlockChooser/BlockChooserSearch.test.d.ts +1 -0
- package/types/components/manage/Blocks/Block/BlocksForm.d.ts +2 -0
- package/types/components/manage/Blocks/Block/BlocksForm.test.d.ts +1 -0
- package/types/components/manage/Blocks/Block/DefaultEdit.d.ts +2 -0
- package/types/components/manage/Blocks/Block/DefaultView.d.ts +2 -0
- package/types/components/manage/Blocks/Block/Edit.d.ts +51 -0
- package/types/components/manage/Blocks/Block/EditBlockWrapper.d.ts +4 -0
- package/types/components/manage/Blocks/Block/Schema.d.ts +51 -0
- package/types/components/manage/Blocks/Block/Settings.d.ts +4 -0
- package/types/components/manage/Blocks/Block/Settings.test.d.ts +1 -0
- package/types/components/manage/Blocks/Block/Style.d.ts +5 -0
- package/types/components/manage/Blocks/Block/Style.test.d.ts +1 -0
- package/types/components/manage/Blocks/Block/StyleWrapper.d.ts +2 -0
- package/types/components/manage/Blocks/Container/Data.d.ts +2 -0
- package/types/components/manage/Blocks/Container/Edit.d.ts +12 -0
- package/types/components/manage/Blocks/Container/EditBlockWrapper.d.ts +2 -0
- package/types/components/manage/Blocks/Container/NewBlockAddButton.d.ts +2 -0
- package/types/components/manage/Blocks/Container/SimpleContainerToolbar.d.ts +2 -0
- package/types/components/manage/Blocks/Description/Edit.d.ts +26 -0
- package/types/components/manage/Blocks/Description/Edit.test.d.ts +1 -0
- package/types/components/manage/Blocks/Description/View.d.ts +11 -0
- package/types/components/manage/Blocks/Description/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/Grid/Edit.d.ts +11 -0
- package/types/components/manage/Blocks/Grid/View.d.ts +2 -0
- package/types/components/manage/Blocks/Grid/adapter.d.ts +7 -0
- package/types/components/manage/Blocks/Grid/schema.d.ts +15 -0
- package/types/components/manage/Blocks/Grid/templates.d.ts +7 -0
- package/types/components/manage/Blocks/HTML/Edit.d.ts +2 -0
- package/types/components/manage/Blocks/HTML/Edit.test.d.ts +1 -0
- package/types/components/manage/Blocks/HTML/View.d.ts +9 -0
- package/types/components/manage/Blocks/HTML/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/HeroImageLeft/Data.d.ts +2 -0
- package/types/components/manage/Blocks/HeroImageLeft/Edit.d.ts +2 -0
- package/types/components/manage/Blocks/HeroImageLeft/Edit.test.d.ts +1 -0
- package/types/components/manage/Blocks/HeroImageLeft/View.d.ts +9 -0
- package/types/components/manage/Blocks/HeroImageLeft/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/HeroImageLeft/schema.d.ts +24 -0
- package/types/components/manage/Blocks/Image/Edit.d.ts +4 -0
- package/types/components/manage/Blocks/Image/Edit.test.d.ts +1 -0
- package/types/components/manage/Blocks/Image/ImageSidebar.d.ts +9 -0
- package/types/components/manage/Blocks/Image/ImageSidebar.test.d.ts +1 -0
- package/types/components/manage/Blocks/Image/LayoutSchema.d.ts +2 -0
- package/types/components/manage/Blocks/Image/View.d.ts +13 -0
- package/types/components/manage/Blocks/Image/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/Image/schema.d.ts +41 -0
- package/types/components/manage/Blocks/Image/utils.d.ts +1 -0
- package/types/components/manage/Blocks/LeadImage/Edit.d.ts +4 -0
- package/types/components/manage/Blocks/LeadImage/Edit.test.d.ts +1 -0
- package/types/components/manage/Blocks/LeadImage/LeadImageSidebar.d.ts +24 -0
- package/types/components/manage/Blocks/LeadImage/LeadImageSidebar.test.d.ts +1 -0
- package/types/components/manage/Blocks/LeadImage/View.d.ts +11 -0
- package/types/components/manage/Blocks/LeadImage/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/LeadImage/utils.d.ts +1 -0
- package/types/components/manage/Blocks/Listing/DefaultNoResultsComponent.d.ts +2 -0
- package/types/components/manage/Blocks/Listing/DefaultTemplate.d.ts +15 -0
- package/types/components/manage/Blocks/Listing/Edit.d.ts +2 -0
- package/types/components/manage/Blocks/Listing/GalleryNoResultsComponent.d.ts +2 -0
- package/types/components/manage/Blocks/Listing/ImageGallery.d.ts +9 -0
- package/types/components/manage/Blocks/Listing/ListingBody.d.ts +4 -0
- package/types/components/manage/Blocks/Listing/ListingBody.test.d.ts +1 -0
- package/types/components/manage/Blocks/Listing/ListingData.d.ts +9 -0
- package/types/components/manage/Blocks/Listing/ListingData.test.d.ts +1 -0
- package/types/components/manage/Blocks/Listing/SummaryTemplate.d.ts +14 -0
- package/types/components/manage/Blocks/Listing/View.d.ts +2 -0
- package/types/components/manage/Blocks/Listing/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/Listing/getAsyncData.d.ts +7 -0
- package/types/components/manage/Blocks/Listing/schema.d.ts +35 -0
- package/types/components/manage/Blocks/Listing/withQuerystringResults.d.ts +1 -0
- package/types/components/manage/Blocks/Maps/Edit.d.ts +2 -0
- package/types/components/manage/Blocks/Maps/Edit.test.d.ts +1 -0
- package/types/components/manage/Blocks/Maps/MapsSidebar.d.ts +2 -0
- package/types/components/manage/Blocks/Maps/MapsSidebar.test.d.ts +1 -0
- package/types/components/manage/Blocks/Maps/View.d.ts +4 -0
- package/types/components/manage/Blocks/Maps/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/Maps/schema.d.ts +23 -0
- package/types/components/manage/Blocks/Search/SearchBlockEdit.d.ts +5 -0
- package/types/components/manage/Blocks/Search/SearchBlockView.d.ts +6 -0
- package/types/components/manage/Blocks/Search/SelectStyling.d.ts +11 -0
- package/types/components/manage/Blocks/Search/components/CheckboxFacet.d.ts +14 -0
- package/types/components/manage/Blocks/Search/components/CheckboxFacet.test.d.ts +1 -0
- package/types/components/manage/Blocks/Search/components/DateRangeFacet.d.ts +2 -0
- package/types/components/manage/Blocks/Search/components/DateRangeFacet.test.d.ts +1 -0
- package/types/components/manage/Blocks/Search/components/DateRangeFacetFilterListEntry.d.ts +2 -0
- package/types/components/manage/Blocks/Search/components/Facets.d.ts +2 -0
- package/types/components/manage/Blocks/Search/components/FilterList.d.ts +6 -0
- package/types/components/manage/Blocks/Search/components/FilterList.test.d.ts +1 -0
- package/types/components/manage/Blocks/Search/components/SearchDetails.d.ts +7 -0
- package/types/components/manage/Blocks/Search/components/SearchDetails.test.d.ts +1 -0
- package/types/components/manage/Blocks/Search/components/SearchInput.d.ts +2 -0
- package/types/components/manage/Blocks/Search/components/SearchInput.test.d.ts +1 -0
- package/types/components/manage/Blocks/Search/components/SelectFacet.d.ts +2 -0
- package/types/components/manage/Blocks/Search/components/SelectFacet.test.d.ts +1 -0
- package/types/components/manage/Blocks/Search/components/SelectFacetFilterListEntry.d.ts +2 -0
- package/types/components/manage/Blocks/Search/components/SelectStyling.d.ts +24 -0
- package/types/components/manage/Blocks/Search/components/SortOn.d.ts +4 -0
- package/types/components/manage/Blocks/Search/components/ToggleFacet.d.ts +17 -0
- package/types/components/manage/Blocks/Search/components/ToggleFacetFilterListEntry.d.ts +2 -0
- package/types/components/manage/Blocks/Search/components/ViewSwitcher.d.ts +4 -0
- package/types/components/manage/Blocks/Search/components/base.d.ts +23 -0
- package/types/components/manage/Blocks/Search/components/index.d.ts +13 -0
- package/types/components/manage/Blocks/Search/hocs/index.d.ts +2 -0
- package/types/components/manage/Blocks/Search/hocs/withQueryString.d.ts +8 -0
- package/types/components/manage/Blocks/Search/hocs/withSearch.d.ts +5 -0
- package/types/components/manage/Blocks/Search/layout/LeftColumnFacets.d.ts +2 -0
- package/types/components/manage/Blocks/Search/layout/RightColumnFacets.d.ts +2 -0
- package/types/components/manage/Blocks/Search/layout/TopSideFacets.d.ts +2 -0
- package/types/components/manage/Blocks/Search/schema.d.ts +108 -0
- package/types/components/manage/Blocks/Search/utils.d.ts +4 -0
- package/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts +5 -0
- package/types/components/manage/Blocks/Table/Cell.d.ts +3 -0
- package/types/components/manage/Blocks/Table/Cell.test.d.ts +1 -0
- package/types/components/manage/Blocks/Table/Edit.d.ts +2 -0
- package/types/components/manage/Blocks/Table/Edit.test.d.ts +1 -0
- package/types/components/manage/Blocks/Table/View.d.ts +9 -0
- package/types/components/manage/Blocks/Table/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/Teaser/Body.d.ts +8 -0
- package/types/components/manage/Blocks/Teaser/Data.d.ts +2 -0
- package/types/components/manage/Blocks/Teaser/DefaultBody.d.ts +8 -0
- package/types/components/manage/Blocks/Teaser/Edit.d.ts +2 -0
- package/types/components/manage/Blocks/Teaser/View.d.ts +2 -0
- package/types/components/manage/Blocks/Teaser/adapter.d.ts +7 -0
- package/types/components/manage/Blocks/Teaser/schema.d.ts +46 -0
- package/types/components/manage/Blocks/Text/Edit.d.ts +92 -0
- package/types/components/manage/Blocks/Text/Edit.test.d.ts +1 -0
- package/types/components/manage/Blocks/Text/Schema.d.ts +2 -0
- package/types/components/manage/Blocks/Text/View.d.ts +9 -0
- package/types/components/manage/Blocks/Text/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/Title/Edit.d.ts +26 -0
- package/types/components/manage/Blocks/Title/Edit.test.d.ts +1 -0
- package/types/components/manage/Blocks/Title/View.d.ts +5 -0
- package/types/components/manage/Blocks/Title/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/ToC/Edit.d.ts +7 -0
- package/types/components/manage/Blocks/ToC/Schema.d.ts +35 -0
- package/types/components/manage/Blocks/ToC/View.d.ts +10 -0
- package/types/components/manage/Blocks/ToC/variations/DefaultTocRenderer.d.ts +4 -0
- package/types/components/manage/Blocks/ToC/variations/DefaultTocRenderer.test.d.ts +1 -0
- package/types/components/manage/Blocks/ToC/variations/HorizontalMenu.d.ts +4 -0
- package/types/components/manage/Blocks/ToC/variations/index.d.ts +16 -0
- package/types/components/manage/Blocks/Video/Body.d.ts +10 -0
- package/types/components/manage/Blocks/Video/Edit.d.ts +4 -0
- package/types/components/manage/Blocks/Video/Edit.test.d.ts +1 -0
- package/types/components/manage/Blocks/Video/VideoSidebar.d.ts +2 -0
- package/types/components/manage/Blocks/Video/VideoSidebar.test.d.ts +1 -0
- package/types/components/manage/Blocks/Video/View.d.ts +2 -0
- package/types/components/manage/Blocks/Video/View.test.d.ts +1 -0
- package/types/components/manage/Blocks/Video/schema.d.ts +25 -0
- package/types/components/manage/ConditionalLink/ConditionalLink.d.ts +15 -0
- package/types/components/manage/ConditionalLink/ConditionalLink.test.d.ts +1 -0
- package/types/components/manage/Contents/Contents.d.ts +7 -0
- package/types/components/manage/Contents/Contents.test.d.ts +1 -0
- package/types/components/manage/Contents/ContentsBreadcrumbs.Multilingual.test.d.ts +1 -0
- package/types/components/manage/Contents/ContentsBreadcrumbs.d.ts +2 -0
- package/types/components/manage/Contents/ContentsBreadcrumbs.test.d.ts +1 -0
- package/types/components/manage/Contents/ContentsBreadcrumbsHomeItem.d.ts +2 -0
- package/types/components/manage/Contents/ContentsBreadcrumbsRootItem.d.ts +2 -0
- package/types/components/manage/Contents/ContentsIndexHeader.d.ts +21 -0
- package/types/components/manage/Contents/ContentsIndexHeader.test.d.ts +1 -0
- package/types/components/manage/Contents/ContentsItem.d.ts +37 -0
- package/types/components/manage/Contents/ContentsItem.test.d.ts +1 -0
- package/types/components/manage/Contents/ContentsPropertiesModal.d.ts +10 -0
- package/types/components/manage/Contents/ContentsPropertiesModal.test.d.ts +1 -0
- package/types/components/manage/Contents/ContentsRenameModal.d.ts +10 -0
- package/types/components/manage/Contents/ContentsRenameModal.stories.d.ts +8 -0
- package/types/components/manage/Contents/ContentsRenameModal.test.d.ts +1 -0
- package/types/components/manage/Contents/ContentsTagsModal.d.ts +10 -0
- package/types/components/manage/Contents/ContentsTagsModal.stories.d.ts +19 -0
- package/types/components/manage/Contents/ContentsTagsModal.test.d.ts +1 -0
- package/types/components/manage/Contents/ContentsUploadModal.d.ts +2 -0
- package/types/components/manage/Contents/ContentsUploadModal.test.d.ts +1 -0
- package/types/components/manage/Contents/ContentsWorkflowModal.d.ts +10 -0
- package/types/components/manage/Contents/ContentsWorkflowModal.test.d.ts +1 -0
- package/types/components/manage/Contents/circle.d.ts +4 -0
- package/types/components/manage/Controlpanels/AddonsControlpanel.d.ts +2 -0
- package/types/components/manage/Controlpanels/AddonsControlpanel.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/Aliases.d.ts +2 -0
- package/types/components/manage/Controlpanels/Aliases.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/ContentType.d.ts +2 -0
- package/types/components/manage/Controlpanels/ContentType.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/ContentTypeLayout.d.ts +2 -0
- package/types/components/manage/Controlpanels/ContentTypeLayout.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/ContentTypeSchema.d.ts +2 -0
- package/types/components/manage/Controlpanels/ContentTypes.d.ts +2 -0
- package/types/components/manage/Controlpanels/ContentTypes.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/ContentTypesActions.d.ts +4 -0
- package/types/components/manage/Controlpanels/Controlpanel.d.ts +4 -0
- package/types/components/manage/Controlpanels/Controlpanel.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/Controlpanels.d.ts +17 -0
- package/types/components/manage/Controlpanels/Controlpanels.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/DatabaseInformation.d.ts +2 -0
- package/types/components/manage/Controlpanels/Groups/GroupsControlpanel.d.ts +2 -0
- package/types/components/manage/Controlpanels/Groups/GroupsControlpanel.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/Groups/RenderGroups.d.ts +4 -0
- package/types/components/manage/Controlpanels/Groups/RenderGroups.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/ModerateComments.d.ts +2 -0
- package/types/components/manage/Controlpanels/ModerateComments.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/Relations/BrokenRelations.d.ts +2 -0
- package/types/components/manage/Controlpanels/Relations/Relations.d.ts +2 -0
- package/types/components/manage/Controlpanels/Relations/RelationsListing.d.ts +8 -0
- package/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts +2 -0
- package/types/components/manage/Controlpanels/Rules/AddRule.d.ts +2 -0
- package/types/components/manage/Controlpanels/Rules/AddRule.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/Rules/ConfigureRule.d.ts +2 -0
- package/types/components/manage/Controlpanels/Rules/ConfigureRule.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/Rules/EditRule.d.ts +2 -0
- package/types/components/manage/Controlpanels/Rules/EditRule.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/Rules/Rules.d.ts +2 -0
- package/types/components/manage/Controlpanels/Rules/Rules.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/Rules/components/VariableModal.d.ts +2 -0
- package/types/components/manage/Controlpanels/Rules/components/VariableModal.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/UndoControlpanel.d.ts +2 -0
- package/types/components/manage/Controlpanels/UndoControlpanel.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/UpgradeControlPanel.d.ts +2 -0
- package/types/components/manage/Controlpanels/Users/RenderUsers.d.ts +2 -0
- package/types/components/manage/Controlpanels/Users/RenderUsers.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.d.ts +2 -0
- package/types/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/Users/UserGroupMembershipListing.d.ts +9 -0
- package/types/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.d.ts +5 -0
- package/types/components/manage/Controlpanels/Users/UsersControlpanel.d.ts +2 -0
- package/types/components/manage/Controlpanels/Users/UsersControlpanel.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/VersionOverview.d.ts +10 -0
- package/types/components/manage/Delete/Delete.d.ts +2 -0
- package/types/components/manage/Delete/Delete.test.d.ts +1 -0
- package/types/components/manage/Diff/Diff.d.ts +2 -0
- package/types/components/manage/Diff/Diff.test.d.ts +1 -0
- package/types/components/manage/Diff/DiffField.d.ts +2 -0
- package/types/components/manage/Diff/DiffField.test.d.ts +1 -0
- package/types/components/manage/Display/Display.d.ts +4 -0
- package/types/components/manage/Display/Display.test.d.ts +1 -0
- package/types/components/manage/DragDropList/DragDropList.d.ts +2 -0
- package/types/components/manage/Edit/Edit.d.ts +5 -0
- package/types/components/manage/Edit/Edit.test.d.ts +1 -0
- package/types/components/manage/Form/BlockDataForm.d.ts +1 -0
- package/types/components/manage/Form/BlockDataForm.test.d.ts +1 -0
- package/types/components/manage/Form/BlocksToolbar.d.ts +14 -0
- package/types/components/manage/Form/Field.d.ts +4 -0
- package/types/components/manage/Form/Field.test.d.ts +1 -0
- package/types/components/manage/Form/Form.d.ts +4 -0
- package/types/components/manage/Form/Form.test.d.ts +1 -0
- package/types/components/manage/Form/InlineForm.d.ts +4 -0
- package/types/components/manage/Form/InlineForm.test.d.ts +1 -0
- package/types/components/manage/Form/InlineFormState.d.ts +3 -0
- package/types/components/manage/Form/ModalForm.d.ts +4 -0
- package/types/components/manage/Form/ModalForm.test.d.ts +1 -0
- package/types/components/manage/Form/UndoToolbar.d.ts +7 -0
- package/types/components/manage/History/History.d.ts +4 -0
- package/types/components/manage/History/History.test.d.ts +1 -0
- package/types/components/manage/LinkDetectionPlugin/link-detection-plugin.d.ts +11 -0
- package/types/components/manage/LinkDetectionPlugin/utils.d.ts +2 -0
- package/types/components/manage/LinkMore/LinkMore.d.ts +10 -0
- package/types/components/manage/LinksToItem/LinksToItem.d.ts +2 -0
- package/types/components/manage/LinksToItem/LinksToItem.test.d.ts +1 -0
- package/types/components/manage/LockingToastsFactory/LockingToastsFactory.d.ts +2 -0
- package/types/components/manage/MaybeWrap/MaybeWrap.d.ts +5 -0
- package/types/components/manage/MaybeWrap/MaybeWrap.test.d.ts +1 -0
- package/types/components/manage/Messages/Messages.d.ts +2 -0
- package/types/components/manage/Messages/Messages.test.d.ts +1 -0
- package/types/components/manage/Multilingual/CompareLanguages.d.ts +2 -0
- package/types/components/manage/Multilingual/CreateTranslation.d.ts +2 -0
- package/types/components/manage/Multilingual/CreateTranslation.test.d.ts +1 -0
- package/types/components/manage/Multilingual/ManageTranslations.d.ts +2 -0
- package/types/components/manage/Multilingual/ManageTranslations.test.d.ts +1 -0
- package/types/components/manage/Multilingual/TranslationObject.d.ts +9 -0
- package/types/components/manage/Pluggable/Pluggable.stories.d.ts +68 -0
- package/types/components/manage/Pluggable/Pluggable.test.d.ts +1 -0
- package/types/components/manage/Pluggable/index.d.ts +46 -0
- package/types/components/manage/Preferences/ChangePassword.d.ts +2 -0
- package/types/components/manage/Preferences/ChangePassword.test.d.ts +1 -0
- package/types/components/manage/Preferences/PersonalInformation.d.ts +2 -0
- package/types/components/manage/Preferences/PersonalInformation.test.d.ts +1 -0
- package/types/components/manage/Preferences/PersonalPreferences.d.ts +2 -0
- package/types/components/manage/Preferences/PersonalPreferences.test.d.ts +1 -0
- package/types/components/manage/ReactVirtualized/DynamicRowHeightList.d.ts +2 -0
- package/types/components/manage/Rules/Rules.d.ts +2 -0
- package/types/components/manage/Rules/Rules.test.d.ts +1 -0
- package/types/components/manage/Sharing/Sharing.d.ts +2 -0
- package/types/components/manage/Sharing/Sharing.test.d.ts +1 -0
- package/types/components/manage/Sidebar/AlignBlock.d.ts +8 -0
- package/types/components/manage/Sidebar/ObjectBrowser.d.ts +53 -0
- package/types/components/manage/Sidebar/ObjectBrowserBody.d.ts +2 -0
- package/types/components/manage/Sidebar/ObjectBrowserNav.d.ts +10 -0
- package/types/components/manage/Sidebar/ObjectBrowserNav.test.d.ts +1 -0
- package/types/components/manage/Sidebar/Sidebar.d.ts +6 -0
- package/types/components/manage/Sidebar/Sidebar.test.d.ts +1 -0
- package/types/components/manage/Sidebar/SidebarPopup.d.ts +17 -0
- package/types/components/manage/Sidebar/SidebarPopup.stories.d.ts +8 -0
- package/types/components/manage/Sidebar/SidebarPopup.test.d.ts +1 -0
- package/types/components/manage/Sidebar/SidebarPortal.d.ts +15 -0
- package/types/components/manage/Sidebar/SidebarPortal.test.d.ts +1 -0
- package/types/components/manage/TemplateChooser/TemplateChooser.d.ts +11 -0
- package/types/components/manage/TemplateChooser/TemplateChooser.test.d.ts +1 -0
- package/types/components/manage/TextLineEdit/TextLineEdit.d.ts +29 -0
- package/types/components/manage/TextLineEdit/TextLineEdit.stories.d.ts +17 -0
- package/types/components/manage/TextLineEdit/TextLineEdit.test.d.ts +1 -0
- package/types/components/manage/Toast/Toast.d.ts +12 -0
- package/types/components/manage/Toast/Toast.test.d.ts +1 -0
- package/types/components/manage/Toolbar/More.d.ts +4 -0
- package/types/components/manage/Toolbar/More.test.d.ts +1 -0
- package/types/components/manage/Toolbar/PersonalTools.d.ts +7 -0
- package/types/components/manage/Toolbar/PersonalTools.test.d.ts +1 -0
- package/types/components/manage/Toolbar/StandardWrapper.d.ts +12 -0
- package/types/components/manage/Toolbar/StandardWrapper.test.d.ts +1 -0
- package/types/components/manage/Toolbar/Stats.d.ts +2 -0
- package/types/components/manage/Toolbar/Toolbar.d.ts +2 -0
- package/types/components/manage/Toolbar/Toolbar.test.d.ts +1 -0
- package/types/components/manage/Toolbar/Types.d.ts +21 -0
- package/types/components/manage/Toolbar/Types.test.d.ts +1 -0
- package/types/components/manage/UniversalLink/UniversalLink.d.ts +22 -0
- package/types/components/manage/UniversalLink/UniversalLink.test.d.ts +1 -0
- package/types/components/manage/Widgets/AlignWidget.d.ts +12 -0
- package/types/components/manage/Widgets/AlignWidget.stories.d.ts +14 -0
- package/types/components/manage/Widgets/AlignWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/ArrayWidget.d.ts +7 -0
- package/types/components/manage/Widgets/ArrayWidget.stories.d.ts +25 -0
- package/types/components/manage/Widgets/ArrayWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/ButtonsWidget.d.ts +2 -0
- package/types/components/manage/Widgets/ButtonsWidget.stories.d.ts +14 -0
- package/types/components/manage/Widgets/ButtonsWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/CheckboxWidget.d.ts +4 -0
- package/types/components/manage/Widgets/CheckboxWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/CheckboxWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/ColorPickerWidget.d.ts +22 -0
- package/types/components/manage/Widgets/ColorPickerWidget.stories.d.ts +8 -0
- package/types/components/manage/Widgets/ColorPickerWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/DatetimeWidget.d.ts +87 -0
- package/types/components/manage/Widgets/DatetimeWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/DatetimeWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/EmailWidget.d.ts +49 -0
- package/types/components/manage/Widgets/EmailWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/EmailWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/FileWidget.d.ts +4 -0
- package/types/components/manage/Widgets/FileWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/FileWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/FormFieldWrapper.d.ts +4 -0
- package/types/components/manage/Widgets/FormFieldWrapper.stories.d.ts +13 -0
- package/types/components/manage/Widgets/IdWidget.d.ts +2 -0
- package/types/components/manage/Widgets/IdWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/IdWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/ImageSizeWidget.d.ts +4 -0
- package/types/components/manage/Widgets/ImageSizeWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/ImageSizeWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/InternalUrlWidget.d.ts +40 -0
- package/types/components/manage/Widgets/InternalUrlWidget.stories.d.ts +12 -0
- package/types/components/manage/Widgets/NumberWidget.d.ts +4 -0
- package/types/components/manage/Widgets/NumberWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/NumberWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +72 -0
- package/types/components/manage/Widgets/ObjectBrowserWidget.stories.d.ts +76 -0
- package/types/components/manage/Widgets/ObjectBrowserWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/ObjectListWidget.d.ts +30 -0
- package/types/components/manage/Widgets/ObjectListWidget.stories.d.ts +79 -0
- package/types/components/manage/Widgets/ObjectListWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/ObjectWidget.d.ts +31 -0
- package/types/components/manage/Widgets/ObjectWidget.stories.d.ts +13 -0
- package/types/components/manage/Widgets/ObjectWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/PasswordWidget.d.ts +4 -0
- package/types/components/manage/Widgets/PasswordWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/PasswordWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/QuerySortOnWidget.d.ts +2 -0
- package/types/components/manage/Widgets/QueryWidget.d.ts +81 -0
- package/types/components/manage/Widgets/QueryWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/QuerystringWidget.d.ts +44 -0
- package/types/components/manage/Widgets/QuerystringWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/RecurrenceWidget/ByDayField.d.ts +2 -0
- package/types/components/manage/Widgets/RecurrenceWidget/ByMonthDayField.d.ts +4 -0
- package/types/components/manage/Widgets/RecurrenceWidget/ByMonthField.d.ts +4 -0
- package/types/components/manage/Widgets/RecurrenceWidget/ByYearField.d.ts +4 -0
- package/types/components/manage/Widgets/RecurrenceWidget/EndField.d.ts +4 -0
- package/types/components/manage/Widgets/RecurrenceWidget/IntervalField.d.ts +28 -0
- package/types/components/manage/Widgets/RecurrenceWidget/MonthOfTheYearField.d.ts +2 -0
- package/types/components/manage/Widgets/RecurrenceWidget/Occurences.d.ts +5 -0
- package/types/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.d.ts +2 -0
- package/types/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/RecurrenceWidget/SelectInput.d.ts +34 -0
- package/types/components/manage/Widgets/RecurrenceWidget/Utils.d.ts +61 -0
- package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthField.d.ts +2 -0
- package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.d.ts +4 -0
- package/types/components/manage/Widgets/ReferenceWidget.d.ts +2 -0
- package/types/components/manage/Widgets/ReferenceWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/RegistryImageWidget.d.ts +4 -0
- package/types/components/manage/Widgets/RegistryImageWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/SchemaWidget.d.ts +4 -0
- package/types/components/manage/Widgets/SchemaWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/SchemaWidgetFieldset.d.ts +27 -0
- package/types/components/manage/Widgets/SchemaWidgetFieldset.test.d.ts +1 -0
- package/types/components/manage/Widgets/SelectAutoComplete.d.ts +7 -0
- package/types/components/manage/Widgets/SelectAutoComplete.test.d.ts +1 -0
- package/types/components/manage/Widgets/SelectAutocompleteWidget.stories.d.ts +29 -0
- package/types/components/manage/Widgets/SelectStyling.d.ts +24 -0
- package/types/components/manage/Widgets/SelectUtils.d.ts +33 -0
- package/types/components/manage/Widgets/SelectUtils.test.d.ts +1 -0
- package/types/components/manage/Widgets/SelectWidget.d.ts +5 -0
- package/types/components/manage/Widgets/SelectWidget.stories.d.ts +26 -0
- package/types/components/manage/Widgets/SelectWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/TextWidget.d.ts +4 -0
- package/types/components/manage/Widgets/TextWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/TextWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/TextareaWidget.d.ts +4 -0
- package/types/components/manage/Widgets/TextareaWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/TextareaWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/TokenWidget.d.ts +4 -0
- package/types/components/manage/Widgets/TokenWidget.stories.d.ts +21 -0
- package/types/components/manage/Widgets/TokenWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/UrlWidget.d.ts +40 -0
- package/types/components/manage/Widgets/UrlWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/UrlWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/VocabularyTermsWidget.d.ts +2 -0
- package/types/components/manage/Widgets/VocabularyTermsWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/VocabularyTermsWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/WysiwygWidget.d.ts +5 -0
- package/types/components/manage/Widgets/WysiwygWidget.stories.d.ts +9 -0
- package/types/components/manage/Widgets/WysiwygWidget.test.d.ts +1 -0
- package/types/components/manage/Widgets/__mocks__/react-sortable-hoc.d.ts +3 -0
- package/types/components/manage/Widgets/story.d.ts +4 -0
- package/types/components/manage/Workflow/Workflow.d.ts +2 -0
- package/types/components/manage/Workflow/Workflow.test.d.ts +1 -0
- package/types/components/manage/WorkingCopyToastsFactory/WorkingCopyToastsFactory.d.ts +2 -0
- package/types/components/theme/Anontools/Anontools.d.ts +16 -0
- package/types/components/theme/Anontools/Anontools.stories.d.ts +8 -0
- package/types/components/theme/Anontools/Anontools.test.d.ts +1 -0
- package/types/components/theme/App/App.d.ts +52 -0
- package/types/components/theme/App/App.test.d.ts +1 -0
- package/types/components/theme/AppExtras/AppExtras.d.ts +2 -0
- package/types/components/theme/AppExtras/AppExtras.test.d.ts +1 -0
- package/types/components/theme/Avatar/Avatar.d.ts +33 -0
- package/types/components/theme/Avatar/Avatar.test.d.ts +1 -0
- package/types/components/theme/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/types/components/theme/Breadcrumbs/Breadcrumbs.stories.d.ts +10 -0
- package/types/components/theme/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/types/components/theme/Comments/Comment.stories.d.ts +28 -0
- package/types/components/theme/Comments/CommentEditModal.d.ts +18 -0
- package/types/components/theme/Comments/CommentEditModal.stories.d.ts +29 -0
- package/types/components/theme/Comments/CommentEditModal.test.d.ts +1 -0
- package/types/components/theme/Comments/Comments.d.ts +2 -0
- package/types/components/theme/Comments/Comments.test.d.ts +1 -0
- package/types/components/theme/Component/Component.d.ts +10 -0
- package/types/components/theme/Component/Component.test.d.ts +1 -0
- package/types/components/theme/ConnectionRefused/ConnectionRefused.d.ts +2 -0
- package/types/components/theme/ConnectionRefused/ConnectionRefused.test.d.ts +1 -0
- package/types/components/theme/ContactForm/ContactForm.d.ts +2 -0
- package/types/components/theme/ContactForm/ContactForm.stories.d.ts +13 -0
- package/types/components/theme/ContactForm/ContactForm.test.d.ts +1 -0
- package/types/components/theme/ContentMetadataTags/ContentMetadataTags.d.ts +2 -0
- package/types/components/theme/CorsError/CorsError.d.ts +7 -0
- package/types/components/theme/CorsError/CorsError.test.d.ts +1 -0
- package/types/components/theme/Error/Error.d.ts +7 -0
- package/types/components/theme/Error/Error.test.d.ts +1 -0
- package/types/components/theme/Error/ErrorBoundary.d.ts +12 -0
- package/types/components/theme/Error/ErrorBoundary.test.d.ts +1 -0
- package/types/components/theme/Error/ServerError.d.ts +2 -0
- package/types/components/theme/EventDetails/EventDetails.d.ts +5 -0
- package/types/components/theme/EventDetails/EventDetails.stories.d.ts +49 -0
- package/types/components/theme/EventDetails/EventDetails.test.d.ts +1 -0
- package/types/components/theme/Footer/Footer.d.ts +4 -0
- package/types/components/theme/Footer/Footer.test.d.ts +1 -0
- package/types/components/theme/Forbidden/Forbidden.d.ts +2 -0
- package/types/components/theme/Forbidden/Forbidden.test.d.ts +1 -0
- package/types/components/theme/FormattedDate/FormattedDate.d.ts +14 -0
- package/types/components/theme/FormattedDate/FormattedDate.stories.d.ts +21 -0
- package/types/components/theme/FormattedDate/FormattedRelativeDate.d.ts +11 -0
- package/types/components/theme/FormattedDate/FormattedRelativeDate.stories.d.ts +58 -0
- package/types/components/theme/Header/Header.d.ts +17 -0
- package/types/components/theme/Header/Header.stories.d.ts +12 -0
- package/types/components/theme/Header/Header.test.d.ts +1 -0
- package/types/components/theme/Icon/Icon.d.ts +55 -0
- package/types/components/theme/Icon/Icon.stories.d.ts +13 -0
- package/types/components/theme/Icon/Icon.test.d.ts +1 -0
- package/types/components/theme/Image/Image.d.ts +23 -0
- package/types/components/theme/Image/Image.test.d.ts +1 -0
- package/types/components/theme/LanguageSelector/LanguageSelector.d.ts +11 -0
- package/types/components/theme/LanguageSelector/LanguageSelector.test.d.ts +1 -0
- package/types/components/theme/Login/Login.d.ts +2 -0
- package/types/components/theme/Login/Login.stories.d.ts +8 -0
- package/types/components/theme/Login/Login.test.d.ts +1 -0
- package/types/components/theme/Logo/Logo.Multilingual.test.d.ts +1 -0
- package/types/components/theme/Logo/Logo.d.ts +8 -0
- package/types/components/theme/Logo/Logo.stories.d.ts +8 -0
- package/types/components/theme/Logo/Logo.test.d.ts +1 -0
- package/types/components/theme/Logout/Logout.d.ts +4 -0
- package/types/components/theme/Logout/Logout.test.d.ts +1 -0
- package/types/components/theme/MultilingualRedirector/MultilingualRedirector.d.ts +2 -0
- package/types/components/theme/MultilingualRedirector/MultilingualRedirector.test.d.ts +1 -0
- package/types/components/theme/Navigation/ContextNavigation.d.ts +13 -0
- package/types/components/theme/Navigation/ContextNavigation.stories.d.ts +8 -0
- package/types/components/theme/Navigation/ContextNavigation.test.d.ts +1 -0
- package/types/components/theme/Navigation/NavItem.d.ts +5 -0
- package/types/components/theme/Navigation/NavItems.d.ts +5 -0
- package/types/components/theme/Navigation/Navigation.Multilingual.test.d.ts +1 -0
- package/types/components/theme/Navigation/Navigation.d.ts +7 -0
- package/types/components/theme/Navigation/Navigation.test.d.ts +1 -0
- package/types/components/theme/Navigation/withContentNavigation.d.ts +14 -0
- package/types/components/theme/NotFound/NotFound.d.ts +2 -0
- package/types/components/theme/NotFound/NotFound.test.d.ts +1 -0
- package/types/components/theme/OutdatedBrowser/OutdatedBrowser.d.ts +2 -0
- package/types/components/theme/Pagination/Pagination.d.ts +4 -0
- package/types/components/theme/Pagination/Pagination.test.d.ts +1 -0
- package/types/components/theme/PasswordReset/PasswordReset.d.ts +2 -0
- package/types/components/theme/PasswordReset/PasswordReset.test.d.ts +1 -0
- package/types/components/theme/PasswordReset/RequestPasswordReset.d.ts +2 -0
- package/types/components/theme/PasswordReset/RequestPasswordReset.test.d.ts +1 -0
- package/types/components/theme/Popup/Popup.d.ts +11 -0
- package/types/components/theme/PreviewImage/PreviewImage.d.ts +17 -0
- package/types/components/theme/PreviewImage/PreviewImage.test.d.ts +1 -0
- package/types/components/theme/Register/Register.d.ts +2 -0
- package/types/components/theme/Register/Register.test.d.ts +1 -0
- package/types/components/theme/RequestTimeout/RequestTimeout.d.ts +6 -0
- package/types/components/theme/RequestTimeout/RequestTimeout.test.d.ts +1 -0
- package/types/components/theme/Search/Search.d.ts +5 -0
- package/types/components/theme/Search/Search.test.d.ts +1 -0
- package/types/components/theme/Search/SearchTags.d.ts +2 -0
- package/types/components/theme/Search/SearchTags.test.d.ts +1 -0
- package/types/components/theme/SearchWidget/SearchWidget.d.ts +2 -0
- package/types/components/theme/SearchWidget/SearchWidget.stories.d.ts +7 -0
- package/types/components/theme/SearchWidget/SearchWidget.test.d.ts +1 -0
- package/types/components/theme/Sitemap/Sitemap.d.ts +6 -0
- package/types/components/theme/Sitemap/Sitemap.test.d.ts +1 -0
- package/types/components/theme/SkipLinks/SkipLinks.d.ts +2 -0
- package/types/components/theme/SkipLinks/SkipLinks.test.d.ts +1 -0
- package/types/components/theme/SocialSharing/SocialSharing.d.ts +17 -0
- package/types/components/theme/SocialSharing/SocialSharing.test.d.ts +1 -0
- package/types/components/theme/Tags/Tags.d.ts +17 -0
- package/types/components/theme/Tags/Tags.test.d.ts +1 -0
- package/types/components/theme/Title/Title.d.ts +16 -0
- package/types/components/theme/Title/Title.test.d.ts +1 -0
- package/types/components/theme/Unauthorized/Unauthorized.d.ts +2 -0
- package/types/components/theme/Unauthorized/Unauthorized.test.d.ts +1 -0
- package/types/components/theme/View/AlbumView.d.ts +22 -0
- package/types/components/theme/View/AlbumView.test.d.ts +1 -0
- package/types/components/theme/View/DefaultView.d.ts +4 -0
- package/types/components/theme/View/DefaultView.test.d.ts +1 -0
- package/types/components/theme/View/EventDatesInfo.d.ts +16 -0
- package/types/components/theme/View/EventDatesInfo.test.d.ts +1 -0
- package/types/components/theme/View/EventView.d.ts +13 -0
- package/types/components/theme/View/EventView.test.d.ts +1 -0
- package/types/components/theme/View/FileView.d.ts +15 -0
- package/types/components/theme/View/FileView.test.d.ts +1 -0
- package/types/components/theme/View/ImageView.d.ts +15 -0
- package/types/components/theme/View/ImageView.test.d.ts +1 -0
- package/types/components/theme/View/LinkView.d.ts +17 -0
- package/types/components/theme/View/LinkView.test.d.ts +1 -0
- package/types/components/theme/View/ListingView.d.ts +15 -0
- package/types/components/theme/View/ListingView.test.d.ts +1 -0
- package/types/components/theme/View/NewsItemView.d.ts +15 -0
- package/types/components/theme/View/NewsItemView.test.d.ts +1 -0
- package/types/components/theme/View/RenderBlocks.d.ts +2 -0
- package/types/components/theme/View/RenderBlocks.test.d.ts +1 -0
- package/types/components/theme/View/RenderEmptyBlock.d.ts +2 -0
- package/types/components/theme/View/SummaryView.d.ts +13 -0
- package/types/components/theme/View/SummaryView.test.d.ts +1 -0
- package/types/components/theme/View/TabularView.d.ts +13 -0
- package/types/components/theme/View/TabularView.test.d.ts +1 -0
- package/types/components/theme/View/View.d.ts +2 -0
- package/types/components/theme/View/View.test.d.ts +1 -0
- package/types/components/theme/Widgets/ArrayWidget.d.ts +6 -0
- package/types/components/theme/Widgets/ArrayWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/BooleanWidget.d.ts +4 -0
- package/types/components/theme/Widgets/BooleanWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/BooleanWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/DateWidget.d.ts +7 -0
- package/types/components/theme/Widgets/DateWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/DateWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/DatetimeWidget.d.ts +7 -0
- package/types/components/theme/Widgets/DatetimeWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/DatetimeWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/DescriptionWidget.d.ts +6 -0
- package/types/components/theme/Widgets/DescriptionWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/DescriptionWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/EmailWidget.d.ts +6 -0
- package/types/components/theme/Widgets/EmailWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/EmailWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/FileWidget.d.ts +6 -0
- package/types/components/theme/Widgets/FileWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/FileWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/ImageWidget.d.ts +5 -0
- package/types/components/theme/Widgets/ImageWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/ImageWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/PasswordWidget.d.ts +6 -0
- package/types/components/theme/Widgets/PasswordWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/PasswordWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/RelationWidget.d.ts +6 -0
- package/types/components/theme/Widgets/RelationWidget.stories.d.ts +51 -0
- package/types/components/theme/Widgets/RelationWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/RelationsWidget.d.ts +6 -0
- package/types/components/theme/Widgets/RelationsWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/RelationsWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/RichTextWidget.d.ts +5 -0
- package/types/components/theme/Widgets/RichTextWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/RichTextWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/SelectWidget.d.ts +6 -0
- package/types/components/theme/Widgets/SelectWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/SelectWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/TextWidget.d.ts +6 -0
- package/types/components/theme/Widgets/TextWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/TextWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/TitleWidget.d.ts +6 -0
- package/types/components/theme/Widgets/TitleWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/TitleWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/TokenWidget.d.ts +6 -0
- package/types/components/theme/Widgets/TokenWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/TokenWidget.test.d.ts +1 -0
- package/types/components/theme/Widgets/UrlWidget.d.ts +6 -0
- package/types/components/theme/Widgets/UrlWidget.stories.d.ts +8 -0
- package/types/components/theme/Widgets/UrlWidget.test.d.ts +1 -0
- package/types/config/Blocks.d.ts +53 -0
- package/types/config/Components.d.ts +11 -0
- package/types/config/ContentIcons.d.ts +9 -0
- package/types/config/ControlPanels.d.ts +25 -0
- package/types/config/Loadables.d.ts +30 -0
- package/types/config/NonContentRoutes.d.ts +1 -0
- package/types/config/RichTextEditor/Blocks.d.ts +5 -0
- package/types/config/RichTextEditor/FromHTML.d.ts +3 -0
- package/types/config/RichTextEditor/Plugins.d.ts +5 -0
- package/types/config/RichTextEditor/Styles.d.ts +10 -0
- package/types/config/RichTextEditor/ToHTML.d.ts +75 -0
- package/types/config/RichTextEditor/index.d.ts +16 -0
- package/types/config/Style.d.ts +7 -0
- package/types/config/Views.d.ts +43 -0
- package/types/config/Widgets.d.ts +102 -0
- package/types/config/Workflows.d.ts +49 -0
- package/types/config/index.d.ts +1 -0
- package/types/config/server.d.ts +16 -0
- package/types/constants/ActionTypes.d.ts +139 -0
- package/types/constants/Indexes.d.ts +139 -0
- package/types/constants/Languages.d.ts +14 -0
- package/types/error.d.ts +4 -0
- package/types/express-middleware/devproxy.d.ts +1 -0
- package/types/express-middleware/files.d.ts +1 -0
- package/types/express-middleware/images.d.ts +1 -0
- package/types/express-middleware/ok.d.ts +1 -0
- package/types/express-middleware/robotstxt.d.ts +1 -0
- package/types/express-middleware/sitemap.d.ts +3 -0
- package/types/express-middleware/static.d.ts +1 -0
- package/types/helpers/Api/APIResourceWithAuth.d.ts +1 -0
- package/types/helpers/Api/Api.d.ts +13 -0
- package/types/helpers/Api/Api.plone.rest.test.d.ts +1 -0
- package/types/helpers/Api/Api.test.d.ts +1 -0
- package/types/helpers/AsyncConnect/AsyncConnect.d.ts +49 -0
- package/types/helpers/AsyncConnect/AsyncConnect.test.d.ts +1 -0
- package/types/helpers/AsyncConnect/index.d.ts +19 -0
- package/types/helpers/AsyncConnect/ssr.d.ts +8 -0
- package/types/helpers/AsyncConnect/utils.d.ts +5 -0
- package/types/helpers/AuthToken/AuthToken.d.ts +13 -0
- package/types/helpers/AuthToken/AuthToken.test.d.ts +1 -0
- package/types/helpers/Blocks/Blocks.d.ts +149 -0
- package/types/helpers/Blocks/Blocks.test.d.ts +1 -0
- package/types/helpers/BodyClass/BodyClass.d.ts +2 -0
- package/types/helpers/Content/Content.d.ts +31 -0
- package/types/helpers/Content/Content.test.d.ts +1 -0
- package/types/helpers/Cookies/cookies.d.ts +5 -0
- package/types/helpers/Extensions/index.d.ts +2 -0
- package/types/helpers/Extensions/withBlockExtensions.d.ts +44 -0
- package/types/helpers/Extensions/withBlockExtensions.test.d.ts +1 -0
- package/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts +49 -0
- package/types/helpers/Extensions/withBlockSchemaEnhancer.test.d.ts +1 -0
- package/types/helpers/FormValidation/FormValidation.d.ts +26 -0
- package/types/helpers/FormValidation/FormValidation.test.d.ts +1 -0
- package/types/helpers/Helmet/Helmet.d.ts +72 -0
- package/types/helpers/Helmet/HelmetConstants.d.ts +54 -0
- package/types/helpers/Helmet/HelmetUtils.d.ts +69 -0
- package/types/helpers/Html/Html.d.ts +52 -0
- package/types/helpers/Html/Html.test.d.ts +1 -0
- package/types/helpers/LanguageMap/LanguageMap.d.ts +879 -0
- package/types/helpers/LanguageMap/LanguageMap.test.d.ts +1 -0
- package/types/helpers/Loadable/Loadable.d.ts +3 -0
- package/types/helpers/Loadable/__mocks__/Loadable.d.ts +3 -0
- package/types/helpers/Loadable/index.d.ts +1 -0
- package/types/helpers/MessageLabels/MessageLabels.d.ts +540 -0
- package/types/helpers/Proxy/Proxy.d.ts +1 -0
- package/types/helpers/Robots/Robots.d.ts +1 -0
- package/types/helpers/ScrollToTop/ScrollToTop.d.ts +2 -0
- package/types/helpers/Site/index.d.ts +4 -0
- package/types/helpers/Sitemap/Sitemap.d.ts +3 -0
- package/types/helpers/UndoManager/useUndoManager.d.ts +10 -0
- package/types/helpers/Url/Url.d.ts +145 -0
- package/types/helpers/Url/Url.test.d.ts +1 -0
- package/types/helpers/Url/urlRegex.d.ts +3 -0
- package/types/helpers/User/User.d.ts +6 -0
- package/types/helpers/Utils/Date.d.ts +34 -0
- package/types/helpers/Utils/Date.test.d.ts +1 -0
- package/types/helpers/Utils/UseDetectClickOutside.stories.d.ts +11 -0
- package/types/helpers/Utils/Utils.d.ts +53 -0
- package/types/helpers/Utils/Utils.test.d.ts +1 -0
- package/types/helpers/Utils/useDetectClickOutside.d.ts +11 -0
- package/types/helpers/Utils/useEvent.d.ts +4 -0
- package/types/helpers/Utils/usePagination.d.ts +4 -0
- package/types/helpers/Utils/usePagination.test.d.ts +1 -0
- package/types/helpers/Utils/usePrevious.d.ts +4 -0
- package/types/helpers/Utils/usePrevious.test.d.ts +1 -0
- package/types/helpers/Vocabularies/Vocabularies.d.ts +41 -0
- package/types/helpers/Widget/utils.d.ts +1 -0
- package/types/helpers/Widget/utils.test.d.ts +1 -0
- package/types/helpers/Widget/widget.d.ts +1 -0
- package/types/helpers/Workflows/Workflows.d.ts +21 -0
- package/types/helpers/Workflows/Workflows.test.d.ts +1 -0
- package/types/helpers/index.d.ts +16 -0
- package/types/hooks/client/useClient.d.ts +1 -0
- package/types/hooks/clipboard/useClipboard.d.ts +1 -0
- package/types/hooks/index.d.ts +1 -0
- package/types/icons/load-icons.d.ts +2 -0
- package/types/index.d.ts +1 -0
- package/types/middleware/Api.test.d.ts +1 -0
- package/types/middleware/api.d.ts +24 -0
- package/types/middleware/blacklistRoutes.d.ts +5 -0
- package/types/middleware/index.d.ts +1 -0
- package/types/middleware/storeProtectLoadUtils.d.ts +9 -0
- package/types/middleware/storeProtectLoadUtils.test.d.ts +1 -0
- package/types/reducers/actions/actions.d.ts +8 -0
- package/types/reducers/actions/actions.test.d.ts +1 -0
- package/types/reducers/addons/addons.d.ts +8 -0
- package/types/reducers/aliases/aliases.d.ts +8 -0
- package/types/reducers/aliases/aliases.test.d.ts +1 -0
- package/types/reducers/apierror/apierror.d.ts +8 -0
- package/types/reducers/apierror/apierror.test.d.ts +1 -0
- package/types/reducers/asyncConnect/asyncConnect.d.ts +7 -0
- package/types/reducers/authRole/authRole.d.ts +8 -0
- package/types/reducers/authRole/authRole.test.d.ts +1 -0
- package/types/reducers/blocksClipboard/blocksClipboard.d.ts +1 -0
- package/types/reducers/breadcrumbs/breadcrumbs.d.ts +8 -0
- package/types/reducers/breadcrumbs/breadcrumbs.test.d.ts +1 -0
- package/types/reducers/browserdetect/browserdetect.d.ts +8 -0
- package/types/reducers/clipboard/clipboard.d.ts +8 -0
- package/types/reducers/clipboard/clipboard.test.d.ts +1 -0
- package/types/reducers/comments/comments.d.ts +8 -0
- package/types/reducers/comments/comments.test.d.ts +1 -0
- package/types/reducers/content/content.d.ts +8 -0
- package/types/reducers/content/content.test.d.ts +1 -0
- package/types/reducers/contentRulesEvents/contentRulesEvents.d.ts +8 -0
- package/types/reducers/contextNavigation/contextNavigation.d.ts +8 -0
- package/types/reducers/contextNavigation/contextNavigation.test.d.ts +1 -0
- package/types/reducers/controlPanelRule/controlPanelRule.d.ts +8 -0
- package/types/reducers/controlPanelRules/controlPanelRules.d.ts +8 -0
- package/types/reducers/controlpanels/controlpanels.d.ts +8 -0
- package/types/reducers/controlpanels/controlpanels.test.d.ts +1 -0
- package/types/reducers/diff/diff.d.ts +8 -0
- package/types/reducers/diff/diff.test.d.ts +1 -0
- package/types/reducers/emailNotification/emailNotification.d.ts +8 -0
- package/types/reducers/emailNotification/emailNotification.test.d.ts +1 -0
- package/types/reducers/emailSend/emailSend.d.ts +8 -0
- package/types/reducers/emailSend/emailSend.test.d.ts +1 -0
- package/types/reducers/form/form.d.ts +7 -0
- package/types/reducers/form/form.test.d.ts +1 -0
- package/types/reducers/groups/groups.d.ts +8 -0
- package/types/reducers/groups/groups.test.d.ts +1 -0
- package/types/reducers/history/history.d.ts +8 -0
- package/types/reducers/history/history.test.d.ts +1 -0
- package/types/reducers/index.d.ts +58 -0
- package/types/reducers/lazyLibraries/lazyLibraries.d.ts +1 -0
- package/types/reducers/messages/messages.d.ts +8 -0
- package/types/reducers/messages/messages.test.d.ts +1 -0
- package/types/reducers/navigation/navigation.d.ts +8 -0
- package/types/reducers/navigation/navigation.test.d.ts +1 -0
- package/types/reducers/navroot/navroot.d.ts +8 -0
- package/types/reducers/navroot/navroot.test.d.ts +1 -0
- package/types/reducers/querystring/querystring.d.ts +8 -0
- package/types/reducers/querystring/querystring.test.d.ts +1 -0
- package/types/reducers/querystringsearch/querystringsearch.d.ts +8 -0
- package/types/reducers/querystringsearch/querystringsearch.test.d.ts +1 -0
- package/types/reducers/relations/relations.d.ts +8 -0
- package/types/reducers/roles/roles.d.ts +8 -0
- package/types/reducers/roles/roles.test.d.ts +1 -0
- package/types/reducers/rules/rules.d.ts +8 -0
- package/types/reducers/schema/schema.d.ts +8 -0
- package/types/reducers/schema/schema.test.d.ts +1 -0
- package/types/reducers/search/search.d.ts +8 -0
- package/types/reducers/search/search.test.d.ts +1 -0
- package/types/reducers/sharing/sharing.d.ts +8 -0
- package/types/reducers/sharing/sharing.test.d.ts +1 -0
- package/types/reducers/sidebar/sidebar.d.ts +8 -0
- package/types/reducers/sidebar/sidebar.test.d.ts +1 -0
- package/types/reducers/site/site.d.ts +8 -0
- package/types/reducers/site/site.test.d.ts +1 -0
- package/types/reducers/toolbar/toolbar.d.ts +8 -0
- package/types/reducers/toolbar/toolbar.test.d.ts +1 -0
- package/types/reducers/transactions/transactions.d.ts +8 -0
- package/types/reducers/transactions/transactions.test.d.ts +1 -0
- package/types/reducers/types/types.d.ts +8 -0
- package/types/reducers/types/types.test.d.ts +1 -0
- package/types/reducers/upgrade/upgrade.d.ts +8 -0
- package/types/reducers/userSession/userSession.d.ts +8 -0
- package/types/reducers/userSession/userSession.test.d.ts +1 -0
- package/types/reducers/users/users.d.ts +8 -0
- package/types/reducers/users/users.test.d.ts +1 -0
- package/types/reducers/userschema/userschema.d.ts +8 -0
- package/types/reducers/vocabularies/vocabularies.d.ts +8 -0
- package/types/reducers/vocabularies/vocabularies.test.d.ts +1 -0
- package/types/reducers/workflow/workflow.d.ts +8 -0
- package/types/reducers/workflow/workflow.test.d.ts +1 -0
- package/types/reducers/workingcopy/workingcopy.d.ts +8 -0
- package/types/reducers/workingcopy/workingcopy.test.d.ts +1 -0
- package/types/registry.d.ts +34 -0
- package/types/registry.test.d.ts +1 -0
- package/types/routes.d.ts +27 -0
- package/types/routes.test.d.ts +1 -0
- package/types/runtime_config.d.ts +1 -0
- package/types/server.d.ts +3 -0
- package/types/start-client.d.ts +2 -0
- package/types/start-server.d.ts +1 -0
- package/types/store.d.ts +4 -0
- package/types/storybook.d.ts +2107 -0
- package/types/theme.d.ts +1 -0
|
@@ -132,14 +132,14 @@ export function deleteBlock(formData, blockId) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
135
|
+
* Adds a block to the blocks form
|
|
136
136
|
* @function addBlock
|
|
137
137
|
* @param {Object} formData Form data
|
|
138
138
|
* @param {string} type Block type
|
|
139
139
|
* @param {number} index Destination index
|
|
140
140
|
* @return {Array} New block id, New form data
|
|
141
141
|
*/
|
|
142
|
-
export function addBlock(formData, type, index) {
|
|
142
|
+
export function addBlock(formData, type, index, blocksConfig) {
|
|
143
143
|
const { settings } = config;
|
|
144
144
|
const id = uuid();
|
|
145
145
|
const idTrailingBlock = uuid();
|
|
@@ -148,81 +148,133 @@ export function addBlock(formData, type, index) {
|
|
|
148
148
|
const totalItems = formData[blocksLayoutFieldname].items.length;
|
|
149
149
|
const insert = index === -1 ? totalItems : index;
|
|
150
150
|
|
|
151
|
+
let value = applyBlockDefaults({
|
|
152
|
+
data: {
|
|
153
|
+
'@type': type,
|
|
154
|
+
},
|
|
155
|
+
intl: _dummyIntl,
|
|
156
|
+
});
|
|
157
|
+
|
|
151
158
|
return [
|
|
152
159
|
id,
|
|
153
|
-
{
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
_applyBlockInitialValue({
|
|
161
|
+
id,
|
|
162
|
+
value,
|
|
163
|
+
blocksConfig,
|
|
164
|
+
formData: {
|
|
165
|
+
...formData,
|
|
166
|
+
[blocksLayoutFieldname]: {
|
|
167
|
+
items: [
|
|
168
|
+
...formData[blocksLayoutFieldname].items.slice(0, insert),
|
|
169
|
+
id,
|
|
170
|
+
...(type !== settings.defaultBlockType ? [idTrailingBlock] : []),
|
|
171
|
+
...formData[blocksLayoutFieldname].items.slice(insert),
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
[blocksFieldname]: {
|
|
175
|
+
...formData[blocksFieldname],
|
|
176
|
+
[id]: value,
|
|
177
|
+
...(type !== settings.defaultBlockType && {
|
|
178
|
+
[idTrailingBlock]: {
|
|
179
|
+
'@type': settings.defaultBlockType,
|
|
180
|
+
},
|
|
181
|
+
}),
|
|
167
182
|
},
|
|
168
|
-
|
|
169
|
-
[idTrailingBlock]: {
|
|
170
|
-
'@type': settings.defaultBlockType,
|
|
171
|
-
},
|
|
172
|
-
}),
|
|
183
|
+
selected: id,
|
|
173
184
|
},
|
|
174
|
-
|
|
175
|
-
},
|
|
185
|
+
}),
|
|
176
186
|
];
|
|
177
187
|
}
|
|
178
188
|
|
|
179
189
|
/**
|
|
180
|
-
*
|
|
190
|
+
* Gets an initial value for a block, based on configuration
|
|
191
|
+
*
|
|
192
|
+
* This allows blocks that need complex initial data structures to avoid having
|
|
193
|
+
* to call `onChangeBlock` at their creation time, as this is prone to racing
|
|
194
|
+
* issue on block data storage.
|
|
195
|
+
*/
|
|
196
|
+
const _applyBlockInitialValue = ({ id, value, blocksConfig, formData }) => {
|
|
197
|
+
const blocksFieldname = getBlocksFieldname(formData);
|
|
198
|
+
const type = value['@type'];
|
|
199
|
+
blocksConfig = blocksConfig || config.blocks.blocksConfig;
|
|
200
|
+
|
|
201
|
+
if (blocksConfig[type]?.initialValue) {
|
|
202
|
+
value = blocksConfig[type].initialValue({
|
|
203
|
+
id,
|
|
204
|
+
value,
|
|
205
|
+
formData,
|
|
206
|
+
});
|
|
207
|
+
formData[blocksFieldname][id] = value;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return formData;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Mutate block, changes the block @type
|
|
181
215
|
* @function mutateBlock
|
|
182
216
|
* @param {Object} formData Form data
|
|
183
217
|
* @param {string} id Block uid to mutate
|
|
184
218
|
* @param {number} value Block's new value
|
|
185
219
|
* @return {Object} New form data
|
|
186
220
|
*/
|
|
187
|
-
export function mutateBlock(formData, id, value) {
|
|
221
|
+
export function mutateBlock(formData, id, value, blocksConfig) {
|
|
188
222
|
const { settings } = config;
|
|
189
223
|
const blocksFieldname = getBlocksFieldname(formData);
|
|
190
224
|
const blocksLayoutFieldname = getBlocksLayoutFieldname(formData);
|
|
191
225
|
const index = formData[blocksLayoutFieldname].items.indexOf(id) + 1;
|
|
192
226
|
|
|
227
|
+
value = applyBlockDefaults({
|
|
228
|
+
data: value,
|
|
229
|
+
intl: _dummyIntl,
|
|
230
|
+
});
|
|
231
|
+
let newFormData;
|
|
232
|
+
|
|
193
233
|
// Test if block at index is already a placeholder (trailing) block
|
|
194
234
|
const trailId = formData[blocksLayoutFieldname].items[index];
|
|
195
235
|
if (trailId) {
|
|
196
236
|
const block = formData[blocksFieldname][trailId];
|
|
197
|
-
|
|
198
|
-
|
|
237
|
+
newFormData = _applyBlockInitialValue({
|
|
238
|
+
id,
|
|
239
|
+
value,
|
|
240
|
+
blocksConfig,
|
|
241
|
+
formData: {
|
|
199
242
|
...formData,
|
|
200
243
|
[blocksFieldname]: {
|
|
201
244
|
...formData[blocksFieldname],
|
|
202
245
|
[id]: value || null,
|
|
203
246
|
},
|
|
204
|
-
}
|
|
247
|
+
},
|
|
248
|
+
});
|
|
249
|
+
if (!blockHasValue(block)) {
|
|
250
|
+
return newFormData;
|
|
205
251
|
}
|
|
206
252
|
}
|
|
207
253
|
|
|
208
254
|
const idTrailingBlock = uuid();
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
255
|
+
newFormData = _applyBlockInitialValue({
|
|
256
|
+
id,
|
|
257
|
+
value,
|
|
258
|
+
blocksConfig,
|
|
259
|
+
formData: {
|
|
260
|
+
...formData,
|
|
261
|
+
[blocksFieldname]: {
|
|
262
|
+
...formData[blocksFieldname],
|
|
263
|
+
[id]: value || null,
|
|
264
|
+
[idTrailingBlock]: {
|
|
265
|
+
'@type': settings.defaultBlockType,
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
[blocksLayoutFieldname]: {
|
|
269
|
+
items: [
|
|
270
|
+
...formData[blocksLayoutFieldname].items.slice(0, index),
|
|
271
|
+
idTrailingBlock,
|
|
272
|
+
...formData[blocksLayoutFieldname].items.slice(index),
|
|
273
|
+
],
|
|
216
274
|
},
|
|
217
275
|
},
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
...formData[blocksLayoutFieldname].items.slice(0, index),
|
|
221
|
-
idTrailingBlock,
|
|
222
|
-
...formData[blocksLayoutFieldname].items.slice(index),
|
|
223
|
-
],
|
|
224
|
-
},
|
|
225
|
-
};
|
|
276
|
+
});
|
|
277
|
+
return newFormData;
|
|
226
278
|
}
|
|
227
279
|
|
|
228
280
|
/**
|
|
@@ -233,15 +285,29 @@ export function mutateBlock(formData, id, value) {
|
|
|
233
285
|
* @param {number} value New block's value
|
|
234
286
|
* @return {Array} New block id, New form data
|
|
235
287
|
*/
|
|
236
|
-
export function insertBlock(
|
|
288
|
+
export function insertBlock(
|
|
289
|
+
formData,
|
|
290
|
+
id,
|
|
291
|
+
value,
|
|
292
|
+
current = {},
|
|
293
|
+
offset = 0,
|
|
294
|
+
blocksConfig,
|
|
295
|
+
) {
|
|
237
296
|
const blocksFieldname = getBlocksFieldname(formData);
|
|
238
297
|
const blocksLayoutFieldname = getBlocksLayoutFieldname(formData);
|
|
239
298
|
const index = formData[blocksLayoutFieldname].items.indexOf(id);
|
|
240
299
|
|
|
300
|
+
value = applyBlockDefaults({
|
|
301
|
+
data: value,
|
|
302
|
+
intl: _dummyIntl,
|
|
303
|
+
});
|
|
304
|
+
|
|
241
305
|
const newBlockId = uuid();
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
306
|
+
const newFormData = _applyBlockInitialValue({
|
|
307
|
+
id,
|
|
308
|
+
value,
|
|
309
|
+
blocksConfig,
|
|
310
|
+
formData: {
|
|
245
311
|
...formData,
|
|
246
312
|
[blocksFieldname]: {
|
|
247
313
|
...formData[blocksFieldname],
|
|
@@ -259,7 +325,9 @@ export function insertBlock(formData, id, value, current = {}, offset = 0) {
|
|
|
259
325
|
],
|
|
260
326
|
},
|
|
261
327
|
},
|
|
262
|
-
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
return [newBlockId, newFormData];
|
|
263
331
|
}
|
|
264
332
|
|
|
265
333
|
/**
|
|
@@ -570,3 +638,7 @@ export function findBlocks(blocks, types, result = []) {
|
|
|
570
638
|
|
|
571
639
|
return result;
|
|
572
640
|
}
|
|
641
|
+
|
|
642
|
+
const _dummyIntl = {
|
|
643
|
+
formatMessage() {},
|
|
644
|
+
};
|
|
@@ -64,6 +64,24 @@ config.blocks.blocksConfig.text = {
|
|
|
64
64
|
}),
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
config.blocks.blocksConfig.dummyText = {
|
|
68
|
+
id: 'dummyText',
|
|
69
|
+
title: 'Text',
|
|
70
|
+
group: 'text',
|
|
71
|
+
restricted: false,
|
|
72
|
+
mostUsed: false,
|
|
73
|
+
blockHasOwnFocusManagement: true,
|
|
74
|
+
blockHasValue: (data) => {
|
|
75
|
+
const isEmpty =
|
|
76
|
+
!data.text ||
|
|
77
|
+
(data.text?.blocks?.length === 1 && data.text.blocks[0].text === '');
|
|
78
|
+
return !isEmpty;
|
|
79
|
+
},
|
|
80
|
+
initialValue: ({ value, id, formData }) => {
|
|
81
|
+
return { ...value, marker: true };
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
|
|
67
85
|
config.blocks.blocksConfig.enhancedBlock = {
|
|
68
86
|
id: 'enhancedBlock',
|
|
69
87
|
title: 'Text',
|
|
@@ -474,6 +492,63 @@ describe('Blocks', () => {
|
|
|
474
492
|
);
|
|
475
493
|
expect(form.blocks_layout.items).toStrictEqual(['a', newId, 'b']);
|
|
476
494
|
});
|
|
495
|
+
|
|
496
|
+
it('initializes data for new block with initialValue', () => {
|
|
497
|
+
const [newId, form] = addBlock(
|
|
498
|
+
{
|
|
499
|
+
blocks: { a: { value: 1 }, b: { value: 2 } },
|
|
500
|
+
blocks_layout: { items: ['a', 'b'] },
|
|
501
|
+
},
|
|
502
|
+
'dummyText',
|
|
503
|
+
1,
|
|
504
|
+
);
|
|
505
|
+
expect(form.blocks[newId]).toStrictEqual({
|
|
506
|
+
'@type': 'dummyText',
|
|
507
|
+
marker: true,
|
|
508
|
+
});
|
|
509
|
+
});
|
|
510
|
+
|
|
511
|
+
it('initializes data for new block based on schema defaults', () => {
|
|
512
|
+
const [newId, form] = addBlock(
|
|
513
|
+
{
|
|
514
|
+
blocks: { a: { value: 1 }, b: { value: 2 } },
|
|
515
|
+
blocks_layout: { items: ['a', 'b'] },
|
|
516
|
+
},
|
|
517
|
+
'text',
|
|
518
|
+
1,
|
|
519
|
+
);
|
|
520
|
+
expect(form.blocks[newId]).toStrictEqual({
|
|
521
|
+
'@type': 'text',
|
|
522
|
+
booleanField: false,
|
|
523
|
+
description: 'Default description',
|
|
524
|
+
title: 'Default title',
|
|
525
|
+
});
|
|
526
|
+
});
|
|
527
|
+
|
|
528
|
+
it('initializes data for new block based on schema defaults and initialValue', () => {
|
|
529
|
+
config.blocks.blocksConfig.text.initialValue = ({ value }) => ({
|
|
530
|
+
...value,
|
|
531
|
+
marker: true,
|
|
532
|
+
});
|
|
533
|
+
const [newId, form] = addBlock(
|
|
534
|
+
{
|
|
535
|
+
blocks: { a: { value: 1 }, b: { value: 2 } },
|
|
536
|
+
blocks_layout: { items: ['a', 'b'] },
|
|
537
|
+
},
|
|
538
|
+
'text',
|
|
539
|
+
1,
|
|
540
|
+
);
|
|
541
|
+
|
|
542
|
+
delete config.blocks.blocksConfig.text.initialValue;
|
|
543
|
+
|
|
544
|
+
expect(form.blocks[newId]).toStrictEqual({
|
|
545
|
+
'@type': 'text',
|
|
546
|
+
booleanField: false,
|
|
547
|
+
description: 'Default description',
|
|
548
|
+
title: 'Default title',
|
|
549
|
+
marker: true,
|
|
550
|
+
});
|
|
551
|
+
});
|
|
477
552
|
});
|
|
478
553
|
|
|
479
554
|
describe('moveBlock', () => {
|
|
@@ -177,7 +177,7 @@ class Html extends Component {
|
|
|
177
177
|
<body className={bodyClass}>
|
|
178
178
|
<div role="navigation" aria-label="Toolbar" id="toolbar" />
|
|
179
179
|
<div id="main" dangerouslySetInnerHTML={{ __html: markup }} />
|
|
180
|
-
<div id="sidebar" />
|
|
180
|
+
<div role="complementary" aria-label="Sidebar" id="sidebar" />
|
|
181
181
|
<script
|
|
182
182
|
dangerouslySetInnerHTML={{
|
|
183
183
|
__html: `window.__data=${serialize(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List addons function
|
|
3
|
+
* @function listAddons
|
|
4
|
+
* @returns {Object} List addons action
|
|
5
|
+
*/
|
|
6
|
+
export function listAddons(): any;
|
|
7
|
+
/**
|
|
8
|
+
* Install addon function.
|
|
9
|
+
* @function installAddon
|
|
10
|
+
* @param {string} id Addon id
|
|
11
|
+
* @returns {Object} install addon action.
|
|
12
|
+
*/
|
|
13
|
+
export function installAddon(id: string): any;
|
|
14
|
+
/**
|
|
15
|
+
* Uninstall addon function.
|
|
16
|
+
* @function uninstallAddon
|
|
17
|
+
* @param {string} id Addon id
|
|
18
|
+
* @returns {Object} uninstall addon action.
|
|
19
|
+
*/
|
|
20
|
+
export function uninstallAddon(id: string): any;
|
|
21
|
+
/**
|
|
22
|
+
* Uninstall addon function.
|
|
23
|
+
* @function upgradeAddon
|
|
24
|
+
* @param {string} id Addon id
|
|
25
|
+
* @returns {Object} id of addon to upgrade.
|
|
26
|
+
*/
|
|
27
|
+
export function upgradeAddon(id: string): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get aliases function.
|
|
3
|
+
* @function getAliases
|
|
4
|
+
* @param {string} url Content url.
|
|
5
|
+
* @param {Object} options Options data.
|
|
6
|
+
* @returns {Object} Get aliases action.
|
|
7
|
+
*/
|
|
8
|
+
export function getAliases(url: string, options: any): any;
|
|
9
|
+
/**
|
|
10
|
+
* Add alias function.
|
|
11
|
+
* @function addAliases
|
|
12
|
+
* @param {string} url Content url.
|
|
13
|
+
* @param {Object} data Aliases to add data object.
|
|
14
|
+
* @returns {Object} Add alias action.
|
|
15
|
+
*/
|
|
16
|
+
export function addAliases(url: string, data: any): any;
|
|
17
|
+
/**
|
|
18
|
+
* Remove aliases function.
|
|
19
|
+
* @function removeAliases
|
|
20
|
+
* @param {string} url Content url.
|
|
21
|
+
* @param {Object} data Aliases to remove data object.
|
|
22
|
+
* @returns {Object} Remove alias action.
|
|
23
|
+
*/
|
|
24
|
+
export function removeAliases(url: string, data: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export function clearKey(key: any): {
|
|
2
|
+
type: string;
|
|
3
|
+
key: any;
|
|
4
|
+
};
|
|
5
|
+
export function beginGlobalLoad(): {
|
|
6
|
+
type: string;
|
|
7
|
+
};
|
|
8
|
+
export function endGlobalLoad(): {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
export function load(key: any): {
|
|
12
|
+
type: string;
|
|
13
|
+
key: any;
|
|
14
|
+
};
|
|
15
|
+
export function loadSuccess(key: any, data: any): {
|
|
16
|
+
type: string;
|
|
17
|
+
key: any;
|
|
18
|
+
data: any;
|
|
19
|
+
};
|
|
20
|
+
export function loadFail(key: any, error: any): {
|
|
21
|
+
type: string;
|
|
22
|
+
key: any;
|
|
23
|
+
error: any;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy blocks to clipboard function.
|
|
3
|
+
* @function copyBlocks
|
|
4
|
+
* @param {array} blocksData Block data
|
|
5
|
+
* @returns {Object} Copy action.
|
|
6
|
+
*/
|
|
7
|
+
export function setBlocksClipboard(payload: any): any;
|
|
8
|
+
/**
|
|
9
|
+
* Reset blocks clipboard function.
|
|
10
|
+
* @function resetBlocksClipboard
|
|
11
|
+
* @returns {Object} Reset blocks clipboard
|
|
12
|
+
*/
|
|
13
|
+
export function resetBlocksClipboard(): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy content function.
|
|
3
|
+
* @function copyContent
|
|
4
|
+
* @param {array} source Source urls.
|
|
5
|
+
* @param {string} target Target url.
|
|
6
|
+
* @returns {Object} Copy content action.
|
|
7
|
+
*/
|
|
8
|
+
export function copyContent(source: any[], target: string): any;
|
|
9
|
+
/**
|
|
10
|
+
* Move content function.
|
|
11
|
+
* @function moveContent
|
|
12
|
+
* @param {array} source Source urls.
|
|
13
|
+
* @param {string} target Target url.
|
|
14
|
+
* @returns {Object} Move content action.
|
|
15
|
+
*/
|
|
16
|
+
export function moveContent(source: any[], target: string): any;
|
|
17
|
+
/**
|
|
18
|
+
* Copy function.
|
|
19
|
+
* @function copy
|
|
20
|
+
* @param {array} urls Source urls.
|
|
21
|
+
* @returns {Object} Copy action.
|
|
22
|
+
*/
|
|
23
|
+
export function copy(urls: any[]): any;
|
|
24
|
+
/**
|
|
25
|
+
* Cut function.
|
|
26
|
+
* @function cut
|
|
27
|
+
* @param {array} urls Source urls.
|
|
28
|
+
* @returns {Object} Cut action.
|
|
29
|
+
*/
|
|
30
|
+
export function cut(urls: any[]): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Add comment function.
|
|
3
|
+
* @function addComment
|
|
4
|
+
* @param {string} url Content url.
|
|
5
|
+
* @param {string} text Body of the comment.
|
|
6
|
+
* @returns {Object} Add comment action.
|
|
7
|
+
*/
|
|
8
|
+
export function addComment(url: string, text: string, commentId: any): any;
|
|
9
|
+
/**
|
|
10
|
+
* List comments function
|
|
11
|
+
* @function listComments
|
|
12
|
+
* @param {string} url Content url
|
|
13
|
+
* @returns {Object} List comment action
|
|
14
|
+
*/
|
|
15
|
+
export function listComments(url: string): any;
|
|
16
|
+
export function listMoreComments(url: any): {
|
|
17
|
+
type: any;
|
|
18
|
+
request: {
|
|
19
|
+
op: string;
|
|
20
|
+
path: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Delete comment function.
|
|
25
|
+
* @function deleteComment
|
|
26
|
+
* @param {string} url Content url.
|
|
27
|
+
* @returns {Object} Delete comment action.
|
|
28
|
+
*/
|
|
29
|
+
export function deleteComment(url: string): any;
|
|
30
|
+
/**
|
|
31
|
+
* Update comment function.
|
|
32
|
+
* @function updateComment
|
|
33
|
+
* @param {string} url Content url(s).
|
|
34
|
+
* @param {string} text Body of the comment.
|
|
35
|
+
* @returns {Object} Update content action.
|
|
36
|
+
*/
|
|
37
|
+
export function updateComment(url: string, text: string): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create content function.
|
|
3
|
+
* @function createContent
|
|
4
|
+
* @param {string} url Parent URL.
|
|
5
|
+
* @param {Object|Array} content Content data.
|
|
6
|
+
* @param {string} subrequest Optional. Key of the subrequest.
|
|
7
|
+
* @returns {Object} Create content action.
|
|
8
|
+
*/
|
|
9
|
+
export function createContent(url: string, content: any | any[], subrequest: string): any;
|
|
10
|
+
/**
|
|
11
|
+
* Delete content function.
|
|
12
|
+
* @function deleteContent
|
|
13
|
+
* @param {string|Array} urls Content url(s).
|
|
14
|
+
* @returns {Object} Delete content action.
|
|
15
|
+
*/
|
|
16
|
+
export function deleteContent(urls: string | any[]): any;
|
|
17
|
+
/**
|
|
18
|
+
* Update content function.
|
|
19
|
+
* @function updateContent
|
|
20
|
+
* @param {string|Array} urls Content url(s).
|
|
21
|
+
* @param {Object|Array} content Content data.
|
|
22
|
+
* @param {Object|Array} headers Custom headers.
|
|
23
|
+
* @returns {Object} Update content action.
|
|
24
|
+
*/
|
|
25
|
+
export function updateContent(urls: string | any[], content: any | any[], headers?: any | any[]): any;
|
|
26
|
+
/**
|
|
27
|
+
* Order content function
|
|
28
|
+
* @function orderContent
|
|
29
|
+
* @param {string} parent Parent url
|
|
30
|
+
* @param {string} url Content url
|
|
31
|
+
* @param {string|number} delta Order delta
|
|
32
|
+
* @param {Array} subset Subset ids
|
|
33
|
+
* @returns {Object} Order content action
|
|
34
|
+
*/
|
|
35
|
+
export function orderContent(parent: string, url: string, delta: string | number, subset: any[]): any;
|
|
36
|
+
/**
|
|
37
|
+
* Sort content function
|
|
38
|
+
* @function sortContent
|
|
39
|
+
* @param {string} url Content url
|
|
40
|
+
* @param {string} on Sort on index
|
|
41
|
+
* @param {string} order Sort order
|
|
42
|
+
* @returns {Object} Sort content action
|
|
43
|
+
*/
|
|
44
|
+
export function sortContent(url: string, on: string, order: string): any;
|
|
45
|
+
/**
|
|
46
|
+
* Get content function
|
|
47
|
+
* @function getContent
|
|
48
|
+
* @param {string} url Content url
|
|
49
|
+
* @param {string} version Version id
|
|
50
|
+
* @param {string} subrequest Key of the subrequest.
|
|
51
|
+
* @param {boolean} fullobjects If full object information should be retrieved
|
|
52
|
+
* @returns {Object} Get content action
|
|
53
|
+
*/
|
|
54
|
+
export function getContent(url: string, version?: string, subrequest?: string, page?: any, fullobjects?: boolean): any;
|
|
55
|
+
/**
|
|
56
|
+
* Reset content function
|
|
57
|
+
* @function resetContent
|
|
58
|
+
* @param {string} subrequest Key of the subrequest.
|
|
59
|
+
* @returns {Object} Get content action
|
|
60
|
+
*/
|
|
61
|
+
export function resetContent(subrequest?: string): any;
|
|
62
|
+
/**
|
|
63
|
+
* Add, remove or order indexes
|
|
64
|
+
* @param {string} url Content url
|
|
65
|
+
* @param {string} index indexes with order
|
|
66
|
+
* @returns {Object} Index content action
|
|
67
|
+
*/
|
|
68
|
+
export function updateColumnsContent(url: string, index: string): any;
|
|
69
|
+
/**
|
|
70
|
+
* Lock content function.
|
|
71
|
+
* @function lockContent
|
|
72
|
+
* @param {string} urls Content url(s)
|
|
73
|
+
* @returns {Object} Lock content action.
|
|
74
|
+
*/
|
|
75
|
+
export function lockContent(urls: string): any;
|
|
76
|
+
/**
|
|
77
|
+
* Unlock content function.
|
|
78
|
+
* @function unlockContent
|
|
79
|
+
* @param {string|Array} urls Content url(s).
|
|
80
|
+
* @returns {Object} Unlock content action.
|
|
81
|
+
*/
|
|
82
|
+
export function unlockContent(urls: string | any[], force?: boolean): any;
|
|
83
|
+
export function linkIntegrityCheck(selection: any): {
|
|
84
|
+
type: any;
|
|
85
|
+
mode: string;
|
|
86
|
+
request: {
|
|
87
|
+
op: string;
|
|
88
|
+
path: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the context navigation
|
|
3
|
+
* @function getContextNavigation
|
|
4
|
+
* @param {string} url Content url.
|
|
5
|
+
* @param {params} params Options for the navigation component
|
|
6
|
+
* @returns {Object} Get context navigation action
|
|
7
|
+
*/
|
|
8
|
+
export function getContextNavigation(url: string, params?: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|