@plone/volto 19.0.0-alpha.9 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +2 -0
- package/.eslintrc +26 -15
- package/AGENTS.md +47 -0
- package/CHANGELOG.md +525 -12
- package/README.md +22 -19
- package/babel.js +1 -9
- package/cypress/support/guillotina.js +1 -0
- package/cypress.config.js +1 -0
- package/global-test-setup.js +1 -2
- package/locales/af/LC_MESSAGES/volto.po +5516 -0
- package/locales/af.json +1 -1
- package/locales/ar/LC_MESSAGES/volto.po +5516 -0
- package/locales/ar.json +1 -1
- package/locales/bg/LC_MESSAGES/volto.po +5516 -0
- package/locales/bg.json +1 -1
- package/locales/bn/LC_MESSAGES/volto.po +5516 -0
- package/locales/bn.json +1 -1
- package/locales/ca/LC_MESSAGES/volto.po +546 -354
- package/locales/ca.json +1 -1
- package/locales/cs/LC_MESSAGES/volto.po +5516 -0
- package/locales/cs.json +1 -1
- package/locales/cy/LC_MESSAGES/volto.po +5516 -0
- package/locales/cy.json +1 -1
- package/locales/da/LC_MESSAGES/volto.po +5516 -0
- package/locales/da.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +217 -24
- package/locales/de.json +1 -1
- package/locales/el/LC_MESSAGES/volto.po +5516 -0
- package/locales/el.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +206 -10
- package/locales/en.json +1 -1
- package/locales/en_AU/LC_MESSAGES/volto.po +5516 -0
- package/locales/en_AU.json +1 -1
- package/locales/en_GB/LC_MESSAGES/volto.po +5516 -0
- package/locales/en_GB.json +1 -1
- package/locales/eo/LC_MESSAGES/volto.po +5516 -0
- package/locales/eo.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +331 -140
- package/locales/es.json +1 -1
- package/locales/et/LC_MESSAGES/volto.po +5516 -0
- package/locales/et.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +408 -217
- package/locales/eu.json +1 -1
- package/locales/fa/LC_MESSAGES/volto.po +5516 -0
- package/locales/fa.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +207 -15
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +364 -173
- package/locales/fr.json +1 -1
- package/locales/fu/LC_MESSAGES/volto.po +5516 -0
- package/locales/fu.json +1 -1
- package/locales/gl/LC_MESSAGES/volto.po +5516 -0
- package/locales/gl.json +1 -1
- package/locales/he/LC_MESSAGES/volto.po +5516 -0
- package/locales/he.json +1 -1
- package/locales/hi/LC_MESSAGES/volto.po +215 -18
- package/locales/hi.json +1 -1
- package/locales/hr/LC_MESSAGES/volto.po +5516 -0
- package/locales/hr.json +1 -1
- package/locales/hu/LC_MESSAGES/volto.po +5516 -0
- package/locales/hu.json +1 -1
- package/locales/hy/LC_MESSAGES/volto.po +5516 -0
- package/locales/hy.json +1 -1
- package/locales/id/LC_MESSAGES/volto.po +5516 -0
- package/locales/id.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +231 -34
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +249 -56
- package/locales/ja.json +1 -1
- package/locales/ka/LC_MESSAGES/volto.po +5516 -0
- package/locales/ka.json +1 -1
- package/locales/kn/LC_MESSAGES/volto.po +5516 -0
- package/locales/kn.json +1 -1
- package/locales/ko/LC_MESSAGES/volto.po +5516 -0
- package/locales/ko.json +1 -1
- package/locales/lt/LC_MESSAGES/volto.po +5516 -0
- package/locales/lt.json +1 -1
- package/locales/lv/LC_MESSAGES/volto.po +5516 -0
- package/locales/lv.json +1 -1
- package/locales/mi/LC_MESSAGES/volto.po +5516 -0
- package/locales/mi.json +1 -1
- package/locales/mk/LC_MESSAGES/volto.po +5516 -0
- package/locales/mk.json +1 -1
- package/locales/my/LC_MESSAGES/volto.po +5516 -0
- package/locales/my.json +1 -1
- package/locales/nb_NO/LC_MESSAGES/volto.po +5516 -0
- package/locales/nb_NO.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +259 -66
- package/locales/nl.json +1 -1
- package/locales/nn/LC_MESSAGES/volto.po +5516 -0
- package/locales/nn.json +1 -1
- package/locales/pl/LC_MESSAGES/volto.po +5516 -0
- package/locales/pl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +858 -666
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +211 -20
- package/locales/pt_BR.json +1 -1
- package/locales/rm/LC_MESSAGES/volto.po +5516 -0
- package/locales/rm.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +243 -52
- package/locales/ro.json +1 -1
- package/locales/ru/LC_MESSAGES/volto.po +206 -14
- package/locales/ru.json +1 -1
- package/locales/sk/LC_MESSAGES/volto.po +5516 -0
- package/locales/sk.json +1 -1
- package/locales/sl/LC_MESSAGES/volto.po +5516 -0
- package/locales/sl.json +1 -1
- package/locales/sm/LC_MESSAGES/volto.po +5516 -0
- package/locales/sm.json +1 -1
- package/locales/sq/LC_MESSAGES/volto.po +5516 -0
- package/locales/sq.json +1 -1
- package/locales/sr/LC_MESSAGES/volto.po +5516 -0
- package/locales/sr.json +1 -1
- package/locales/sr@cyrl/LC_MESSAGES/volto.po +5516 -0
- package/locales/sr@cyrl.json +1 -1
- package/locales/sr@latn/LC_MESSAGES/volto.po +5516 -0
- package/locales/sr@latn.json +1 -1
- package/locales/sv/LC_MESSAGES/volto.po +5516 -0
- package/locales/sv.json +1 -1
- package/locales/ta/LC_MESSAGES/volto.po +5516 -0
- package/locales/ta.json +1 -1
- package/locales/te/LC_MESSAGES/volto.po +5516 -0
- package/locales/te.json +1 -1
- package/locales/th/LC_MESSAGES/volto.po +5516 -0
- package/locales/th.json +1 -1
- package/locales/to/LC_MESSAGES/volto.po +5516 -0
- package/locales/to.json +1 -1
- package/locales/tr/LC_MESSAGES/volto.po +5516 -0
- package/locales/tr.json +1 -1
- package/locales/uk/LC_MESSAGES/volto.po +5516 -0
- package/locales/uk.json +1 -1
- package/locales/vi/LC_MESSAGES/volto.po +5516 -0
- package/locales/vi.json +1 -1
- package/locales/volto.pot +200 -9
- package/locales/zh_CN/LC_MESSAGES/volto.po +206 -14
- package/locales/zh_CN.json +1 -1
- package/locales/zh_Hant/LC_MESSAGES/volto.po +5516 -0
- package/locales/zh_Hant.json +1 -1
- package/locales/zh_Hant_HK/LC_MESSAGES/volto.po +5516 -0
- package/locales/zh_Hant_HK.json +1 -1
- package/package.json +69 -146
- package/razzle.config.js +16 -25
- package/src/actions/blockTypes/blockTypes.ts +24 -0
- package/src/actions/controlpanels/controlpanels.js +7 -12
- package/src/actions/controlpanels/controlpanels.test.js +2 -3
- package/src/components/manage/Actions/Actions.test.jsx +1 -5
- package/src/components/manage/Add/Add.jsx +15 -10
- package/src/components/manage/Add/Add.test.jsx +10 -3
- package/src/components/manage/Aliases/Aliases.test.jsx +5 -2
- package/src/components/manage/BlockChooser/BlockChooser.jsx +8 -10
- package/src/components/manage/Blocks/Block/BlocksForm.jsx +10 -7
- package/src/components/manage/Blocks/Block/BlocksForm.test.jsx +3 -14
- package/src/components/manage/Blocks/Block/Edit.jsx +19 -10
- package/src/components/manage/Blocks/Block/Order/Item.jsx +33 -14
- package/src/components/manage/Blocks/Block/Order/Item.test.jsx +90 -0
- package/src/components/manage/Blocks/Block/Order/Order.jsx +116 -67
- package/src/components/manage/Blocks/Block/Order/utilities.js +28 -11
- package/src/components/manage/Blocks/Block/Settings.test.jsx +1 -5
- package/src/components/manage/Blocks/Grid/View.jsx +14 -11
- package/src/components/manage/Blocks/Grid/context.js +3 -0
- package/src/components/manage/Blocks/HTML/Edit.test.jsx +1 -5
- package/src/components/manage/Blocks/Image/ImageSidebar.test.jsx +2 -5
- package/src/components/manage/Blocks/LeadImage/LeadImageSidebar.test.jsx +2 -5
- package/src/components/manage/Blocks/Listing/Edit.jsx +1 -0
- package/src/components/manage/Blocks/Listing/ListingBody.jsx +4 -0
- package/src/components/manage/Blocks/Maps/MapsSidebar.test.jsx +1 -5
- package/src/components/manage/Blocks/Search/components/DateRangeFacet.test.jsx +1 -6
- package/src/components/manage/Blocks/Search/components/SelectFacet.jsx +22 -1
- package/src/components/manage/Blocks/Search/components/SelectFacet.test.jsx +1 -6
- package/src/components/manage/Blocks/Search/components/SortOn.jsx +8 -2
- package/src/components/manage/Blocks/Search/components/ToggleFacet.jsx +14 -0
- package/src/components/manage/Blocks/Teaser/DefaultBody.jsx +10 -2
- package/src/components/manage/Blocks/Teaser/View.jsx +0 -1
- package/src/components/manage/Blocks/Teaser/utils.js +13 -0
- package/src/components/manage/Blocks/Teaser/utils.test.js +34 -0
- package/src/components/manage/Blocks/Title/Edit.jsx +5 -0
- package/src/components/manage/Blocks/Video/Body.jsx +69 -43
- package/src/components/manage/Blocks/Video/Body.test.jsx +122 -5
- package/src/components/manage/Blocks/Video/Edit.jsx +20 -2
- package/src/components/manage/Blocks/Video/Edit.test.jsx +6 -0
- package/src/components/manage/Blocks/Video/VideoSidebar.test.jsx +1 -5
- package/src/components/manage/Blocks/Video/View.jsx +1 -0
- package/src/components/manage/Blocks/Video/View.test.jsx +29 -15
- package/src/components/manage/Blocks/Video/schema.js +14 -1
- package/src/components/manage/Contents/Contents.jsx +854 -747
- package/src/components/manage/Contents/Contents.test.jsx +9 -10
- package/src/components/manage/Contents/ContentsBreadcrumbs.jsx +4 -3
- package/src/components/manage/Contents/ContentsIndexHeader.jsx +47 -81
- package/src/components/manage/Contents/ContentsIndexHeader.test.jsx +10 -3
- package/src/components/manage/Contents/ContentsItem.jsx +226 -278
- package/src/components/manage/Contents/ContentsItem.test.jsx +10 -6
- package/src/components/manage/Contents/ContentsPropertiesModal.test.jsx +1 -5
- package/src/components/manage/Contents/ContentsRenameModal.test.jsx +1 -5
- package/src/components/manage/Contents/ContentsTagsModal.test.jsx +1 -5
- package/src/components/manage/Contents/ContentsWorkflowModal.test.jsx +1 -5
- package/src/components/manage/Contents/DropZoneContent.jsx +339 -0
- package/src/components/manage/Contents/__mocks__/index.tsx +2 -18
- package/src/components/manage/Controlpanels/AddonsControlpanel.jsx +7 -0
- package/src/components/manage/Controlpanels/AddonsControlpanel.test.jsx +7 -4
- package/src/components/manage/Controlpanels/Aliases.test.jsx +8 -9
- package/src/components/manage/Controlpanels/BlockType.tsx +165 -0
- package/src/components/manage/Controlpanels/BlockTypes.tsx +145 -0
- package/src/components/manage/Controlpanels/ContentType.jsx +131 -222
- package/src/components/manage/Controlpanels/ContentType.test.jsx +13 -14
- package/src/components/manage/Controlpanels/ContentTypeLayout.test.jsx +12 -9
- package/src/components/manage/Controlpanels/ContentTypeSchema.jsx +1 -1
- package/src/components/manage/Controlpanels/ContentTypes.jsx +9 -2
- package/src/components/manage/Controlpanels/ContentTypes.test.jsx +7 -4
- package/src/components/manage/Controlpanels/Controlpanel.jsx +122 -218
- package/src/components/manage/Controlpanels/Controlpanel.test.jsx +8 -33
- package/src/components/manage/Controlpanels/Controlpanels.jsx +28 -5
- package/src/components/manage/Controlpanels/Controlpanels.test.jsx +23 -8
- package/src/components/manage/Controlpanels/DatabaseInformation.jsx +9 -0
- package/src/components/manage/Controlpanels/Groups/GroupsControlpanel.test.jsx +7 -4
- package/src/components/manage/Controlpanels/ModerateComments.jsx +8 -0
- package/src/components/manage/Controlpanels/ModerateComments.test.jsx +7 -4
- package/src/components/manage/Controlpanels/Relations/Relations.jsx +1 -1
- package/src/components/manage/Controlpanels/Rules/AddRule.test.jsx +8 -9
- package/src/components/manage/Controlpanels/Rules/ConfigureRule.test.jsx +9 -6
- package/src/components/manage/Controlpanels/Rules/EditRule.test.jsx +8 -9
- package/src/components/manage/Controlpanels/Rules/Rules.test.jsx +7 -4
- package/src/components/manage/Controlpanels/UndoControlpanel.test.jsx +8 -9
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.test.jsx +10 -4
- package/src/components/manage/Controlpanels/Users/UsersControlpanel.jsx +628 -631
- package/src/components/manage/Controlpanels/Users/UsersControlpanel.ssr.test.jsx +624 -0
- package/src/components/manage/Controlpanels/Users/UsersControlpanel.test.jsx +70 -10
- package/src/components/manage/Delete/Delete.test.jsx +13 -8
- package/src/components/manage/Diff/Diff.jsx +201 -298
- package/src/components/manage/Diff/Diff.test.jsx +8 -10
- package/src/components/manage/Diff/DiffField.test.jsx +1 -6
- package/src/components/manage/Display/Display.test.jsx +2 -11
- package/src/components/manage/Edit/Edit.test.jsx +12 -11
- package/src/components/manage/Form/BlockDataForm.test.jsx +1 -5
- package/src/components/manage/Form/Field.jsx +1 -69
- package/src/components/manage/Form/Form.jsx +17 -4
- package/src/components/manage/Form/Form.test.jsx +130 -5
- package/src/components/manage/Form/InlineForm.test.jsx +1 -5
- package/src/components/manage/Form/ModalForm.jsx +175 -97
- package/src/components/manage/Form/ModalForm.test.jsx +27 -5
- package/src/components/manage/Form/__mocks__/index.tsx +9 -27
- package/src/components/manage/History/History.test.jsx +15 -8
- package/src/components/manage/LinksToItem/LinksToItem.test.jsx +7 -4
- package/src/components/manage/Multilingual/CompareLanguages.jsx +6 -6
- package/src/components/manage/Multilingual/CreateTranslation.jsx +16 -13
- package/src/components/manage/Multilingual/ManageTranslations.jsx +5 -5
- package/src/components/manage/Multilingual/ManageTranslations.test.jsx +15 -12
- package/src/components/manage/Multilingual/TranslationObject.jsx +11 -8
- package/src/components/manage/Preferences/ChangePassword.test.jsx +8 -9
- package/src/components/manage/Preferences/PersonalPreferences.jsx +8 -5
- package/src/components/manage/Preferences/PersonalPreferences.test.jsx +10 -23
- package/src/components/manage/Rules/Rules.test.jsx +5 -2
- package/src/components/manage/Sharing/Sharing.jsx +21 -15
- package/src/components/manage/Sharing/Sharing.test.jsx +9 -6
- package/src/components/manage/Sidebar/ObjectBrowser.jsx +10 -0
- package/src/components/manage/Sidebar/ObjectBrowserBody.jsx +25 -5
- package/src/components/manage/Sidebar/ObjectBrowserBody.test.jsx +52 -0
- package/src/components/manage/Sidebar/Sidebar.jsx +2 -0
- package/src/components/manage/Sidebar/Sidebar.test.jsx +4 -1
- package/src/components/manage/Sidebar/SidebarPortal.test.tsx +42 -0
- package/src/components/manage/Sidebar/SidebarPortal.tsx +48 -0
- package/src/components/manage/TemplateChooser/TemplateChooser.test.jsx +1 -0
- package/src/components/manage/Toast/Toast.jsx +32 -0
- package/src/components/manage/Toast/Toast.test.jsx +9 -5
- package/src/components/manage/Toolbar/PersonalTools.test.jsx +15 -0
- package/src/components/manage/Toolbar/Toolbar.jsx +103 -11
- package/src/components/manage/Toolbar/Toolbar.test.jsx +15 -10
- package/src/components/manage/Toolbar/Types.crash.test.jsx +48 -0
- package/src/components/manage/Toolbar/Types.jsx +6 -4
- package/src/components/manage/UniversalLink/UniversalLink.test.jsx +16 -0
- package/src/components/manage/UniversalLink/UniversalLink.tsx +1 -0
- package/src/components/manage/Widgets/AlignWidget.stories.jsx +9 -0
- package/src/components/manage/Widgets/AlignWidget.test.tsx +95 -0
- package/src/components/manage/Widgets/{AlignWidget.jsx → AlignWidget.tsx} +23 -7
- package/src/components/manage/Widgets/ArrayWidget.jsx +111 -88
- package/src/components/manage/Widgets/ArrayWidget.test.jsx +1 -12
- package/src/components/manage/Widgets/BlockAlignment.stories.tsx +104 -0
- package/src/components/manage/Widgets/BlockAlignment.test.tsx +104 -0
- package/src/components/manage/Widgets/BlockAlignment.tsx +88 -0
- package/src/components/manage/Widgets/BlockWidth.stories.tsx +69 -0
- package/src/components/manage/Widgets/BlockWidth.test.tsx +62 -0
- package/src/components/manage/Widgets/BlockWidth.tsx +101 -0
- package/src/components/manage/Widgets/ButtonsWidget.stories.jsx +61 -0
- package/src/components/manage/Widgets/ButtonsWidget.test.tsx +138 -0
- package/src/components/manage/Widgets/ButtonsWidget.tsx +195 -0
- package/src/components/manage/Widgets/CheckboxGroupWidget.test.jsx +1 -6
- package/src/components/manage/Widgets/DatetimeWidget.jsx +98 -54
- package/src/components/manage/Widgets/DatetimeWidget.test.jsx +56 -6
- package/src/components/manage/Widgets/FileWidget.jsx +7 -0
- package/src/components/manage/Widgets/FormFieldWrapper.jsx +143 -163
- package/src/components/manage/Widgets/ImageWidget.jsx +18 -5
- package/src/components/manage/Widgets/ObjectBrowserWidget.jsx +6 -0
- package/src/components/manage/Widgets/ObjectListWidget.test.jsx +2 -11
- package/src/components/manage/Widgets/ObjectWidget.test.jsx +1 -5
- package/src/components/manage/Widgets/QueryWidget.jsx +137 -9
- package/src/components/manage/Widgets/QuerystringWidget.test.jsx +3 -1
- package/src/components/manage/Widgets/RadioGroupWidget.test.jsx +1 -6
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.test.jsx +1 -6
- package/src/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.jsx +56 -50
- package/src/components/manage/Widgets/RegistryImageWidget.jsx +1 -1
- package/src/components/manage/Widgets/RegistryImageWidget.test.jsx +1 -0
- package/src/components/manage/Widgets/SchemaWidget.test.jsx +1 -6
- package/src/components/manage/Widgets/SchemaWidgetFieldset.test.jsx +1 -6
- package/src/components/manage/Widgets/SelectAutoComplete.test.jsx +1 -6
- package/src/components/manage/Widgets/SelectStyling.jsx +52 -20
- package/src/components/manage/Widgets/SelectWidget.test.jsx +1 -6
- package/src/components/manage/Widgets/Size.stories.tsx +69 -0
- package/src/components/manage/Widgets/Size.test.tsx +59 -0
- package/src/components/manage/Widgets/Size.tsx +78 -0
- package/src/components/manage/Widgets/TextWidget.jsx +4 -0
- package/src/components/manage/Widgets/TimeWidget.test.jsx +1 -6
- package/src/components/manage/Widgets/TokenWidget.jsx +142 -186
- package/src/components/manage/Widgets/TokenWidget.test.jsx +1 -6
- package/src/components/manage/Widgets/UrlWidget.jsx +47 -18
- package/src/components/manage/Widgets/VocabularyTermsWidget.test.jsx +2 -11
- package/src/components/manage/Widgets/__mocks__/index.tsx +33 -51
- package/src/components/manage/Widgets/index.tsx +21 -0
- package/src/components/manage/Workflow/Workflow.test.jsx +2 -11
- package/src/components/theme/AlternateHrefLangs/AlternateHrefLangs.jsx +1 -0
- package/src/components/theme/AlternateHrefLangs/AlternateHrefLangs.test.jsx +30 -0
- package/src/components/theme/App/App.jsx +5 -1
- package/src/components/theme/App/App.test.jsx +13 -10
- package/src/components/theme/Comments/CommentEditModal.test.jsx +1 -5
- package/src/components/theme/Comments/Comments.test.jsx +2 -11
- package/src/components/theme/ConnectionRefused/ConnectionRefused.jsx +3 -2
- package/src/components/theme/ContactForm/ContactForm.test.jsx +14 -13
- package/src/components/theme/Image/Image.jsx +14 -5
- package/src/components/theme/Image/Image.test.jsx +247 -146
- package/src/components/theme/InjectPloneComponentsCSS/InjectPloneComponentsCSS.tsx +7 -0
- package/src/components/theme/LanguageSelector/LanguageSelector.tsx +3 -3
- package/src/components/theme/MultilingualRedirector/MultilingualRedirector.jsx +42 -12
- package/src/components/theme/MultilingualRedirector/MultilingualRedirector.test.jsx +6 -3
- package/src/components/theme/PasswordReset/PasswordReset.jsx +108 -191
- package/src/components/theme/PasswordReset/RequestPasswordReset.test.jsx +1 -5
- package/src/components/theme/Register/Register.test.jsx +1 -5
- package/src/components/theme/Search/Search.jsx +230 -327
- package/src/components/theme/Search/Search.test.jsx +14 -14
- package/src/components/theme/Sitemap/Sitemap.jsx +22 -30
- package/src/components/theme/Sitemap/Sitemap.stories.jsx +82 -0
- package/src/components/theme/Sitemap/Sitemap.test.jsx +18 -0
- package/src/components/theme/SlotRenderer/SlotRenderer.tsx +12 -6
- package/src/components/theme/Unauthorized/Unauthorized.jsx +27 -24
- package/src/components/theme/Unauthorized/Unauthorized.test.jsx +31 -2
- package/src/components/theme/VideoEmbed/VideoEmbed.jsx +100 -0
- package/src/components/theme/View/EventDatesInfo.test.jsx +1 -6
- package/src/components/theme/View/EventView.stories.jsx +89 -0
- package/src/components/theme/View/EventView.test.jsx +1 -6
- package/src/components/theme/View/FileView.stories.jsx +50 -0
- package/src/components/theme/View/ImageView.jsx +2 -1
- package/src/components/theme/View/ImageView.test.jsx +3 -0
- package/src/components/theme/View/LinkView.stories.jsx +57 -0
- package/src/components/theme/View/ListingView.stories.jsx +70 -0
- package/src/components/theme/View/NewsItemView.stories.jsx +58 -0
- package/src/components/theme/View/RenderBlocks.jsx +8 -10
- package/src/components/theme/View/RenderBlocks.stories.jsx +112 -0
- package/src/components/theme/View/RenderBlocks.test.jsx +14 -4
- package/src/components/theme/View/SummaryView.stories.jsx +71 -0
- package/src/components/theme/View/TabularView.stories.jsx +66 -0
- package/src/components/theme/View/View.jsx +8 -1
- package/src/components/theme/View/View.test.jsx +37 -24
- package/src/components/theme/Widgets/DateWidget.jsx +4 -5
- package/src/components/theme/Widgets/DatetimeWidget.jsx +4 -5
- package/src/components/theme/Widgets/ImageWidget.test.jsx +31 -11
- package/src/components/theme/Widgets/RichTextWidget.jsx +1 -1
- package/src/config/Blocks.jsx +3 -0
- package/src/config/ControlPanels.js +2 -0
- package/src/config/Loadables.jsx +1 -5
- package/src/config/Widgets.jsx +7 -0
- package/src/config/index.js +10 -1
- package/src/config/slots.js +19 -0
- package/src/config/validation.ts +8 -0
- package/src/constants/ActionTypes.js +1 -0
- package/src/express-middleware/devproxy.js +3 -1
- package/src/express-middleware/files.js +1 -0
- package/src/express-middleware/files.test.js +59 -0
- package/src/express-middleware/images.js +1 -0
- package/src/express-middleware/images.test.js +50 -0
- package/src/helpers/Api/Api.js +2 -2
- package/src/helpers/AuthToken/AuthToken.js +1 -6
- package/src/helpers/Blocks/Blocks.js +113 -28
- package/src/helpers/Blocks/Blocks.test.js +100 -0
- package/src/helpers/Content/Content.js +23 -0
- package/src/helpers/Content/Content.test.js +39 -0
- package/src/helpers/Extensions/withBlockSchemaEnhancer.jsx +4 -1
- package/src/helpers/FormValidation/FormValidation.test.js +31 -0
- package/src/helpers/FormValidation/validators.ts +52 -6
- package/src/helpers/I18n/I18n.test.ts +44 -0
- package/src/helpers/I18n/I18n.ts +31 -0
- package/src/helpers/Loadable/__mocks__/Loadable.jsx +7 -22
- package/src/helpers/MessageLabels/MessageLabels.js +5 -0
- package/src/helpers/Robots/Robots.js +1 -1
- package/src/helpers/Robots/Robots.test.js +34 -0
- package/src/helpers/Url/Url.js +1 -0
- package/src/helpers/Utils/Date.js +26 -1
- package/src/helpers/Utils/Date.test.js +237 -0
- package/src/helpers/Utils/Utils.jsx +17 -0
- package/src/helpers/Utils/Utils.test.jsx +39 -0
- package/src/helpers/Utils/withSaveAsDraft.jsx +33 -9
- package/src/helpers/index.js +1 -0
- package/src/hooks/user/useUser.js +1 -1
- package/src/internalChecks.test.ts +11 -0
- package/src/middleware/api.js +14 -5
- package/src/reducers/blockTypes/blockTypes.js +38 -0
- package/src/reducers/content/content.js +3 -18
- package/src/reducers/diff/diff.js +5 -1
- package/src/reducers/diff/diff.test.js +60 -4
- package/src/reducers/index.js +2 -0
- package/src/reducers/querystring/querystring.js +8 -1
- package/src/reducers/users/users.js +1 -1
- package/src/routes.js +10 -0
- package/src/server.jsx +14 -6
- package/src/start-client.jsx +21 -3
- package/test-addons-loader.js +3 -0
- package/test-setup-globals.js +56 -2
- package/theme/themes/default/elements/segment.variables +9 -16
- package/theme/themes/default/globals/site.variables +3 -3
- package/theme/themes/pastanaga/collections/form.overrides +22 -1
- package/theme/themes/pastanaga/elements/button.overrides +30 -3
- package/theme/themes/pastanaga/elements/segment.variables +1 -4
- package/theme/themes/pastanaga/extras/block-types.less +17 -0
- package/theme/themes/pastanaga/extras/contents.less +63 -4
- package/theme/themes/pastanaga/extras/main.less +16 -4
- package/theme/themes/pastanaga/extras/toolbar.less +10 -5
- package/theme/themes/pastanaga/extras/videoembed.less +22 -0
- package/theme/themes/pastanaga/extras/widgets.less +79 -0
- package/theme/themes/pastanaga/globals/site.variables +0 -3
- package/tsconfig.declarations.json +1 -1
- package/tsconfig.json +1 -1
- package/types/actions/blockTypes/blockTypes.d.ts +7 -0
- package/types/components/index.d.ts +1 -1
- package/types/components/manage/Blocks/Block/Order/Item.test.d.ts +1 -0
- package/types/components/manage/Blocks/Block/Order/utilities.d.ts +2 -1
- package/types/components/manage/Blocks/Grid/context.d.ts +1 -0
- package/types/components/manage/Blocks/Teaser/utils.d.ts +5 -0
- package/types/components/manage/Blocks/Video/Body.d.ts +4 -2
- package/types/components/manage/Blocks/Video/schema.d.ts +4 -0
- package/types/components/manage/Contents/Contents.d.ts +1 -1
- package/types/components/manage/Contents/ContentsIndexHeader.d.ts +6 -11
- package/types/components/manage/Contents/ContentsItem.d.ts +3 -10
- package/types/components/manage/Contents/DropZoneContent.d.ts +2 -0
- package/types/components/manage/Contents/__mocks__/index.d.ts +2 -2
- package/types/components/manage/Controlpanels/BlockType.d.ts +7 -0
- package/types/components/manage/Controlpanels/BlockTypes.d.ts +7 -0
- package/types/components/manage/Controlpanels/ContentType.d.ts +2 -2
- package/types/components/manage/Controlpanels/Controlpanel.d.ts +2 -5
- package/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts +1 -1
- package/types/components/manage/Controlpanels/Users/UsersControlpanel.ssr.test.d.ts +1 -0
- package/types/components/manage/Controlpanels/index.d.ts +2 -2
- package/types/components/manage/Diff/Diff.d.ts +7 -2
- package/types/components/manage/Form/__mocks__/index.d.ts +8 -8
- package/types/components/manage/Multilingual/ManageTranslations.d.ts +1 -1
- package/types/components/manage/Sidebar/ObjectBrowser.d.ts +1 -1
- package/types/components/manage/Sidebar/ObjectBrowserBody.test.d.ts +1 -0
- package/types/components/manage/Sidebar/SidebarPortal.d.ts +7 -15
- package/types/components/manage/Toolbar/Types.crash.test.d.ts +1 -0
- package/types/components/manage/Widgets/AlignWidget.d.ts +8 -10
- package/types/components/manage/Widgets/AlignWidget.stories.d.ts +1 -0
- package/types/components/manage/Widgets/BlockAlignment.d.ts +7 -0
- package/types/components/manage/Widgets/BlockAlignment.stories.d.ts +8 -0
- package/types/components/manage/Widgets/BlockWidth.d.ts +7 -0
- package/types/components/manage/Widgets/BlockWidth.stories.d.ts +6 -0
- package/types/components/manage/Widgets/ButtonsWidget.d.ts +48 -1
- package/types/components/manage/Widgets/ButtonsWidget.stories.d.ts +3 -0
- package/types/components/manage/Widgets/FormFieldWrapper.d.ts +28 -5
- package/types/components/manage/Widgets/ImageWidget.d.ts +1 -1
- package/types/components/manage/Widgets/InternalUrlWidget.d.ts +1 -1
- package/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +2 -0
- package/types/components/manage/Widgets/QueryWidget.d.ts +5 -2
- package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.d.ts +22 -5
- package/types/components/manage/Widgets/SelectStyling.d.ts +1 -0
- package/types/components/manage/Widgets/Size.d.ts +7 -0
- package/types/components/manage/Widgets/Size.stories.d.ts +6 -0
- package/types/components/manage/Widgets/UrlWidget.d.ts +1 -1
- package/types/components/manage/Widgets/__mocks__/index.d.ts +33 -33
- package/types/components/manage/Widgets/index.d.ts +11 -6
- package/types/components/theme/ConnectionRefused/ConnectionRefused.d.ts +2 -2
- package/types/components/theme/InjectPloneComponentsCSS/InjectPloneComponentsCSS.d.ts +3 -0
- package/types/components/theme/PasswordReset/PasswordReset.d.ts +6 -2
- package/types/components/theme/Search/Search.d.ts +1 -1
- package/types/components/theme/Sitemap/Sitemap.stories.d.ts +13 -0
- package/types/components/theme/SlotRenderer/SlotRenderer.d.ts +4 -5
- package/types/components/theme/Unauthorized/Unauthorized.d.ts +2 -2
- package/types/components/theme/VideoEmbed/VideoEmbed.d.ts +2 -0
- package/types/components/theme/View/EventView.stories.d.ts +19 -0
- package/types/components/theme/View/FileView.stories.d.ts +18 -0
- package/types/components/theme/View/LinkView.stories.d.ts +18 -0
- package/types/components/theme/View/ListingView.stories.d.ts +24 -0
- package/types/components/theme/View/NewsItemView.stories.d.ts +23 -0
- package/types/components/theme/View/RenderBlocks.stories.d.ts +23 -0
- package/types/components/theme/View/SummaryView.stories.d.ts +23 -0
- package/types/components/theme/View/TabularView.stories.d.ts +23 -0
- package/types/config/ControlPanels.d.ts +1 -0
- package/types/config/Views.d.ts +1 -1
- package/types/config/Widgets.d.ts +6 -0
- package/types/config/slots.d.ts +7 -0
- package/types/constants/ActionTypes.d.ts +1 -0
- package/types/helpers/Blocks/Blocks.d.ts +4 -0
- package/types/helpers/Content/Content.d.ts +7 -0
- package/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts +4 -5
- package/types/helpers/FormValidation/validators.d.ts +18 -1
- package/types/helpers/I18n/I18n.d.ts +20 -0
- package/types/helpers/Loadable/__mocks__/Loadable.d.ts +2 -2
- package/types/helpers/MessageLabels/MessageLabels.d.ts +100 -94
- package/types/helpers/Utils/Utils.d.ts +1 -0
- package/types/helpers/index.d.ts +1 -0
- package/types/reducers/blockTypes/blockTypes.d.ts +16 -0
- package/types/reducers/index.d.ts +2 -0
- package/types/routes.d.ts +7 -5
- package/vitest.config.mjs +84 -42
- package/webpack-plugins/webpack-less-plugin.js +1 -1
- package/webpack-plugins/webpack-scss-plugin.js +172 -0
- package/jest-addons-loader.js +0 -3
- package/jest-extender-plugin.js +0 -39
- package/jest-setup-afterenv.js +0 -2
- package/jest-svgsystem-transform.js +0 -10
- package/patches/patchit.sh +0 -2
- package/patches/razzle-jest.patch +0 -10
- package/src/components/manage/Contents/__mocks__/index.vitest.tsx +0 -5
- package/src/components/manage/Form/__mocks__/index.vitest.tsx +0 -73
- package/src/components/manage/Sidebar/SidebarPortal.jsx +0 -47
- package/src/components/manage/Sidebar/SidebarPortal.test.jsx +0 -26
- package/src/components/manage/Widgets/AlignWidget.test.jsx +0 -59
- package/src/components/manage/Widgets/ButtonsWidget.jsx +0 -41
- package/src/components/manage/Widgets/ButtonsWidget.test.jsx +0 -70
- package/src/components/manage/Widgets/__mocks__/index.vitest.tsx +0 -41
- package/src/helpers/Loadable/__mocks__/Loadable.vitest.jsx +0 -39
- package/test-setup-globals-vitest.js +0 -46
- package/theme/themes/pastanaga/extras/utils.less +0 -63
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@videoIconSize: 100px;
|
|
2
|
+
|
|
3
|
+
.video-embed {
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
img {
|
|
7
|
+
min-width: 100%;
|
|
8
|
+
min-height: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
button.video-play-button {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: calc(50% - @videoIconSize / 2);
|
|
14
|
+
left: calc(50% - @videoIconSize / 2);
|
|
15
|
+
width: @videoIconSize;
|
|
16
|
+
height: @videoIconSize;
|
|
17
|
+
border: 4px solid @white;
|
|
18
|
+
border-radius: 50px;
|
|
19
|
+
background: transparent;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -292,3 +292,82 @@ body.babel-view .field.language-independent-field {
|
|
|
292
292
|
margin-left: 8px;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
+
|
|
296
|
+
// ButtonsWidget and friends 2025
|
|
297
|
+
:root {
|
|
298
|
+
--border-color-hover: var(--quanta-sapphire);
|
|
299
|
+
--border-color-pressed: var(--quanta-sapphire);
|
|
300
|
+
--border-color-disabled: #d4d4d5;
|
|
301
|
+
--text-color-disabled: #a8a8a8;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.field.widget {
|
|
305
|
+
.buttons-widget {
|
|
306
|
+
display: flex;
|
|
307
|
+
align-items: center;
|
|
308
|
+
gap: 4px;
|
|
309
|
+
|
|
310
|
+
.buttons-widget-option {
|
|
311
|
+
padding: 5px;
|
|
312
|
+
border-radius: 3px;
|
|
313
|
+
aspect-ratio: 1/1;
|
|
314
|
+
font-size: 1em;
|
|
315
|
+
line-height: initial;
|
|
316
|
+
|
|
317
|
+
&[data-hovered='true'] {
|
|
318
|
+
box-shadow: inset 0 0 0 1px var(--border-color-hover, #2996da);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&[data-selected='true'] {
|
|
322
|
+
box-shadow: inset 0 0 0 1px var(--border-color-pressed, #2996da);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
svg.icon {
|
|
326
|
+
margin: 0 !important;
|
|
327
|
+
opacity: 0.9;
|
|
328
|
+
vertical-align: top;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.buttons-widget-option {
|
|
335
|
+
&[data-disabled='true'] {
|
|
336
|
+
border-color: var(--border-color-disabled);
|
|
337
|
+
color: var(--text-color-disabled);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.ui.form .query-widget {
|
|
342
|
+
.location-object-browser {
|
|
343
|
+
display: flex;
|
|
344
|
+
flex-flow: column;
|
|
345
|
+
flex-grow: 1;
|
|
346
|
+
|
|
347
|
+
.object-browser-field {
|
|
348
|
+
min-height: 60px;
|
|
349
|
+
flex: 1 0 auto;
|
|
350
|
+
padding-right: 1em;
|
|
351
|
+
padding-left: 1em;
|
|
352
|
+
margin-bottom: 0px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.object-browser-field + .field {
|
|
356
|
+
margin-bottom: 0px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.objectbrowser-field {
|
|
360
|
+
height: 100%;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.reference-widget-depth {
|
|
364
|
+
.field {
|
|
365
|
+
margin-bottom: 0px;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.location-object-browser + button.ui.button {
|
|
371
|
+
padding-top: 0;
|
|
372
|
+
}
|
|
373
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -54,7 +54,7 @@ export { default as Actions } from "@plone/volto/components/manage/Actions/Actio
|
|
|
54
54
|
export { default as Add } from "@plone/volto/components/manage/Add/Add";
|
|
55
55
|
export { default as Circle } from "@plone/volto/components/manage/Contents/circle";
|
|
56
56
|
export { default as Delete } from "@plone/volto/components/manage/Delete/Delete";
|
|
57
|
-
export const Diff: import("@loadable/component").
|
|
57
|
+
export const Diff: import("@loadable/component").LoadableComponent<any>;
|
|
58
58
|
export const DiffField: import("@loadable/component").LoadableClassComponent<any>;
|
|
59
59
|
export { default as Display } from "@plone/volto/components/manage/Display/Display";
|
|
60
60
|
export { default as Edit } from "@plone/volto/components/manage/Edit/Edit";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export function getProjection(items: any, activeId: any, overId: any, dragOffset: any, indentationWidth: any, arrayMove: any): {
|
|
2
|
+
parentId: any;
|
|
3
|
+
parentType: any;
|
|
2
4
|
depth: any;
|
|
3
5
|
maxDepth: any;
|
|
4
6
|
minDepth: any;
|
|
5
|
-
parentId: any;
|
|
6
7
|
};
|
|
7
8
|
export function flattenTree(items: any): any;
|
|
8
9
|
export function findItem(items: any, itemId: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const GridContext: import("react").Context<number>;
|
|
@@ -8,8 +8,10 @@ declare namespace Body {
|
|
|
8
8
|
let data: any;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
export function getVideoIDAndPlaceholder(url: any): {
|
|
11
|
+
export function getVideoIDAndPlaceholder(url: any, peertubeInstances: any): {
|
|
12
12
|
videoID: any;
|
|
13
|
-
|
|
13
|
+
videoUrl: string;
|
|
14
14
|
thumbnailURL: string;
|
|
15
|
+
videoSource: string;
|
|
16
|
+
hasMatch: boolean;
|
|
15
17
|
};
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
export function ContentsIndexHeaderComponent({
|
|
2
|
-
|
|
1
|
+
export function ContentsIndexHeaderComponent({ id, width, label, dndKitSortable, dndKitUtilities, }: {
|
|
2
|
+
id: any;
|
|
3
3
|
width: any;
|
|
4
4
|
label: any;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}): string;
|
|
5
|
+
dndKitSortable: any;
|
|
6
|
+
dndKitUtilities: any;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export namespace ContentsIndexHeaderComponent {
|
|
10
9
|
namespace propTypes {
|
|
10
|
+
let id: any;
|
|
11
11
|
let width: any;
|
|
12
12
|
let label: any;
|
|
13
|
-
let connectDragSource: any;
|
|
14
|
-
let connectDropTarget: any;
|
|
15
|
-
let isDragging: any;
|
|
16
|
-
let order: any;
|
|
17
|
-
let onOrderIndex: any;
|
|
18
13
|
}
|
|
19
14
|
}
|
|
20
15
|
declare const _default: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function ContentsItemComponent({ item, selected, onClick, indexes, onCut, onCopy, onDelete, onMoveToTop, onMoveToBottom,
|
|
1
|
+
export function ContentsItemComponent({ item, selected, onClick, indexes, onCut, onCopy, onDelete, onMoveToTop, onMoveToBottom, order, dndKitSortable, dndKitUtilities, }: {
|
|
2
2
|
item: any;
|
|
3
3
|
selected: any;
|
|
4
4
|
onClick: any;
|
|
@@ -8,11 +8,9 @@ export function ContentsItemComponent({ item, selected, onClick, indexes, onCut,
|
|
|
8
8
|
onDelete: any;
|
|
9
9
|
onMoveToTop: any;
|
|
10
10
|
onMoveToBottom: any;
|
|
11
|
-
connectDragPreview: any;
|
|
12
|
-
connectDragSource: any;
|
|
13
|
-
connectDropTarget: any;
|
|
14
|
-
isDragging: any;
|
|
15
11
|
order: any;
|
|
12
|
+
dndKitSortable: any;
|
|
13
|
+
dndKitUtilities: any;
|
|
16
14
|
}): string;
|
|
17
15
|
export namespace ContentsItemComponent {
|
|
18
16
|
namespace propTypes {
|
|
@@ -25,12 +23,7 @@ export namespace ContentsItemComponent {
|
|
|
25
23
|
let onDelete: any;
|
|
26
24
|
let onMoveToTop: any;
|
|
27
25
|
let onMoveToBottom: any;
|
|
28
|
-
let connectDragPreview: any;
|
|
29
|
-
let connectDragSource: any;
|
|
30
|
-
let connectDropTarget: any;
|
|
31
|
-
let isDragging: any;
|
|
32
26
|
let order: any;
|
|
33
|
-
let onOrderItem: any;
|
|
34
27
|
}
|
|
35
28
|
}
|
|
36
29
|
declare const _default: any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const Contents:
|
|
2
|
-
export declare const ContentsRenameModal:
|
|
1
|
+
export declare const Contents: any;
|
|
2
|
+
export declare const ContentsRenameModal: any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default ContentType;
|
|
2
|
+
declare function ContentType(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
5
|
-
import React from 'react';
|
|
1
|
+
export default Controlpanel;
|
|
2
|
+
declare function Controlpanel(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
state: {
|
|
4
4
|
isObjectBrowserOpen: boolean;
|
|
5
5
|
};
|
|
6
|
-
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: {
|
|
6
|
+
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, initialPath, onlyFolderishSelectable, }?: {
|
|
7
7
|
mode: string;
|
|
8
8
|
dataName: string;
|
|
9
9
|
onSelectItem: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const Controlpanels: any;
|
|
2
|
-
export declare const Controlpanel: import("@loadable/component").LoadableComponent<
|
|
2
|
+
export declare const Controlpanel: import("@loadable/component").LoadableComponent<unknown>;
|
|
3
3
|
export declare const RulesControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
4
4
|
export declare const AddRuleControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
5
5
|
export declare const EditRuleControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
@@ -13,7 +13,7 @@ export declare const RelationsControlpanel: import("@loadable/component").Loadab
|
|
|
13
13
|
export declare const AliasesControlpanel: import("@loadable/component").LoadableComponent<any>;
|
|
14
14
|
export declare const UndoControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
15
15
|
export declare const AddonsControlpanel: import("@loadable/component").LoadableComponent<any>;
|
|
16
|
-
export declare const ContentType: import("@loadable/component").
|
|
16
|
+
export declare const ContentType: import("@loadable/component").LoadableComponent<unknown>;
|
|
17
17
|
export declare const ContentTypeLayout: import("@loadable/component").LoadableClassComponent<any>;
|
|
18
18
|
export declare const ContentTypeSchema: import("@loadable/component").LoadableClassComponent<any>;
|
|
19
19
|
export declare const ContentTypes: import("@loadable/component").LoadableClassComponent<any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const Field:
|
|
2
|
-
export declare const InlineForm:
|
|
3
|
-
export declare const ModalForm:
|
|
4
|
-
export declare const UndoToolbar:
|
|
5
|
-
export declare const BlocksToolbar:
|
|
6
|
-
export declare const BlockDataForm:
|
|
7
|
-
export declare const BlocksForm:
|
|
8
|
-
export declare const Form:
|
|
1
|
+
export declare const Field: any;
|
|
2
|
+
export declare const InlineForm: any;
|
|
3
|
+
export declare const ModalForm: any;
|
|
4
|
+
export declare const UndoToolbar: any;
|
|
5
|
+
export declare const BlocksToolbar: any;
|
|
6
|
+
export declare const BlockDataForm: any;
|
|
7
|
+
export declare const BlocksForm: any;
|
|
8
|
+
export declare const Form: any;
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
state: {
|
|
4
4
|
isObjectBrowserOpen: boolean;
|
|
5
5
|
};
|
|
6
|
-
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: {
|
|
6
|
+
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, initialPath, onlyFolderishSelectable, }?: {
|
|
7
7
|
mode: string;
|
|
8
8
|
dataName: string;
|
|
9
9
|
onSelectItem: string;
|
|
@@ -31,7 +31,7 @@ declare function withObjectBrowser(WrappedComponent: any): {
|
|
|
31
31
|
* }),
|
|
32
32
|
* });
|
|
33
33
|
*/
|
|
34
|
-
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: {
|
|
34
|
+
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, initialPath, onlyFolderishSelectable, }?: {
|
|
35
35
|
mode: string;
|
|
36
36
|
dataName: string;
|
|
37
37
|
onSelectItem: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
export default SidebarPortal;
|
|
2
|
-
/**
|
|
3
|
-
* Portal that wraps Sidebar components
|
|
4
|
-
* @param {React.ReactNode} children Sidebar content
|
|
5
|
-
* @param {bool} selected Sidebar needs to know when the related block is selected
|
|
6
|
-
* @param {string} tab Element id where to insert sidebar content, default: sidebar-properties
|
|
7
|
-
* @returns {string} Rendered sidebar
|
|
8
|
-
*/
|
|
9
|
-
declare function SidebarPortal({ children, selected, tab }: React.ReactNode): string;
|
|
10
|
-
declare namespace SidebarPortal {
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
let children: any;
|
|
13
|
-
let selected: any;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
1
|
import React from 'react';
|
|
2
|
+
type SidebarPortalProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
tab?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const SidebarPortal: ({ children, selected, tab, }: SidebarPortalProps) => React.ReactPortal;
|
|
8
|
+
export default SidebarPortal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
wide: any[];
|
|
9
|
-
full: any[];
|
|
1
|
+
import { type ActionInfo, type ButtonsWidgetProps } from './ButtonsWidget';
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
|
+
export declare const defaultActionsInfo: ({ intl, }: {
|
|
4
|
+
intl: IntlShape;
|
|
5
|
+
}) => Record<string, ActionInfo>;
|
|
6
|
+
type AlignWidgetProps = ButtonsWidgetProps & {
|
|
7
|
+
defaultAction?: string;
|
|
10
8
|
};
|
|
9
|
+
declare const AlignWidget: (props: AlignWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export default AlignWidget;
|
|
12
|
-
declare function AlignWidget(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ActionInfo, type ButtonsWidgetProps } from './ButtonsWidget';
|
|
2
|
+
import type { IntlShape } from 'react-intl';
|
|
3
|
+
export declare const defaultActionsInfo: ({ intl, }: {
|
|
4
|
+
intl: IntlShape;
|
|
5
|
+
}) => Record<string, ActionInfo>;
|
|
6
|
+
declare const BlockAlignmentWidget: (props: ButtonsWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BlockAlignmentWidget;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import BlockAlignment from './BlockAlignment';
|
|
3
|
+
declare const meta: Meta<typeof BlockAlignment>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof BlockAlignment>;
|
|
6
|
+
export declare const DefaultAlignment: Story;
|
|
7
|
+
export declare const CustomActions: Story;
|
|
8
|
+
export declare const FilteredActions: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
|
+
import { type ActionInfo, type ButtonsWidgetProps } from './ButtonsWidget';
|
|
3
|
+
export declare const defaultActionsInfo: ({ intl, }: {
|
|
4
|
+
intl: IntlShape;
|
|
5
|
+
}) => Record<string, ActionInfo>;
|
|
6
|
+
declare const BlockWidthWidget: (props: ButtonsWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BlockWidthWidget;
|
|
@@ -1,2 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleDefinition } from '@plone/types';
|
|
3
|
+
/**
|
|
4
|
+
* A tuple that has an icon in the first element and a i18n string in the second.
|
|
5
|
+
*/
|
|
6
|
+
export type ActionInfo = [React.ReactElement<any>, string] | [string, string];
|
|
7
|
+
type ActionValue = string | Record<`--${string}`, string>;
|
|
8
|
+
export type ButtonsWidgetProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for the widget.
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Callback function to handle changes.
|
|
15
|
+
*/
|
|
16
|
+
onChange: (id: string, value: ActionValue) => void;
|
|
17
|
+
/**
|
|
18
|
+
* List of actions available for the widget.
|
|
19
|
+
*/
|
|
20
|
+
actions?: Array<StyleDefinition | string>;
|
|
21
|
+
/**
|
|
22
|
+
* Map containing additional the information (icon and i18n string) for each action.
|
|
23
|
+
*/
|
|
24
|
+
actionsInfoMap?: Record<string, ActionInfo>;
|
|
25
|
+
/**
|
|
26
|
+
* List of actions to be filtered out. In case that we don't want the default ones
|
|
27
|
+
* we can filter them out.
|
|
28
|
+
*/
|
|
29
|
+
filterActions?: string[];
|
|
30
|
+
/**
|
|
31
|
+
* Current value of the widget.
|
|
32
|
+
*/
|
|
33
|
+
value?: ActionValue;
|
|
34
|
+
/**
|
|
35
|
+
* Default value of the widget.
|
|
36
|
+
*/
|
|
37
|
+
default?: ActionValue;
|
|
38
|
+
/**
|
|
39
|
+
* Indicates if the widget is disabled.
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Indicates if the widget is disabled (alternative flag for compatibility reasons).
|
|
44
|
+
*/
|
|
45
|
+
isDisabled?: boolean;
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
declare const ButtonsWidget: (props: ButtonsWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
49
|
export default ButtonsWidget;
|
|
2
|
-
declare function ButtonsWidget(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export default FormFieldWrapper;
|
|
2
|
+
/**
|
|
3
|
+
* FormFieldWrapper component.
|
|
4
|
+
* @function FormFieldWrapper
|
|
5
|
+
* @param {Object} props - Component props
|
|
6
|
+
* @returns {JSX.Element} Markup for the component.
|
|
7
|
+
*/
|
|
8
|
+
declare function FormFieldWrapper({ id, title, description, fieldSet, required, error, wrapped, columns, draggable, onEdit, className, isDisabled, onDelete, noForInFieldLabel, multilingual_options, children, }: any): JSX.Element;
|
|
9
|
+
declare namespace FormFieldWrapper {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
let id: any;
|
|
12
|
+
let title: any;
|
|
13
|
+
let description: any;
|
|
14
|
+
let required: any;
|
|
15
|
+
let error: any;
|
|
16
|
+
let wrapped: any;
|
|
17
|
+
let columns: any;
|
|
18
|
+
let draggable: any;
|
|
19
|
+
let isDisabled: any;
|
|
20
|
+
let onEdit: any;
|
|
21
|
+
let className: any;
|
|
22
|
+
let onDelete: any;
|
|
23
|
+
let fieldSet: any;
|
|
24
|
+
let noForInFieldLabel: any;
|
|
25
|
+
let multilingual_options: any;
|
|
26
|
+
let children: any;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -10,7 +10,7 @@ export const ImageInput: {
|
|
|
10
10
|
state: {
|
|
11
11
|
isObjectBrowserOpen: boolean;
|
|
12
12
|
};
|
|
13
|
-
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: {
|
|
13
|
+
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, initialPath, onlyFolderishSelectable, }?: {
|
|
14
14
|
mode: string;
|
|
15
15
|
dataName: string;
|
|
16
16
|
onSelectItem: string;
|
|
@@ -41,7 +41,7 @@ declare const _default: {
|
|
|
41
41
|
state: {
|
|
42
42
|
isObjectBrowserOpen: boolean;
|
|
43
43
|
};
|
|
44
|
-
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: {
|
|
44
|
+
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, initialPath, onlyFolderishSelectable, }?: {
|
|
45
45
|
mode: string;
|
|
46
46
|
dataName: string;
|
|
47
47
|
onSelectItem: string;
|
|
@@ -23,6 +23,7 @@ export class ObjectBrowserWidgetComponent extends React.Component<any, any, any>
|
|
|
23
23
|
openObjectBrowser: any;
|
|
24
24
|
allowExternals: any;
|
|
25
25
|
placeholder: any;
|
|
26
|
+
onlyFolderishSelectable: any;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
29
|
* Default properties
|
|
@@ -38,6 +39,7 @@ export class ObjectBrowserWidgetComponent extends React.Component<any, any, any>
|
|
|
38
39
|
return: string;
|
|
39
40
|
initialPath: string;
|
|
40
41
|
allowExternals: boolean;
|
|
42
|
+
onlyFolderishSelectable: boolean;
|
|
41
43
|
};
|
|
42
44
|
constructor(props: any);
|
|
43
45
|
state: {
|