@plone/volto 19.0.0-alpha.9 → 19.1.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 +543 -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 +551 -359
- 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 +222 -29
- 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 +211 -15
- 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 +336 -145
- 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 +413 -222
- 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 +212 -20
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +369 -178
- 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 +220 -23
- 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 +236 -39
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +254 -61
- 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 +264 -71
- 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 +862 -670
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +216 -25
- 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 +248 -57
- package/locales/ro.json +1 -1
- package/locales/ru/LC_MESSAGES/volto.po +211 -19
- 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 +205 -14
- package/locales/zh_CN/LC_MESSAGES/volto.po +211 -19
- 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 +71 -149
- 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/Body.jsx +37 -0
- package/src/components/manage/Blocks/Maps/Edit.jsx +6 -21
- package/src/components/manage/Blocks/Maps/MapsSidebar.test.jsx +1 -5
- package/src/components/manage/Blocks/Maps/View.jsx +16 -25
- 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/Controlpanels/VersionOverview.jsx +19 -6
- 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.jsx +209 -300
- package/src/components/manage/History/History.test.jsx +20 -9
- 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 +109 -12
- 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/Maps/Body.d.ts +9 -0
- package/types/components/manage/Blocks/Maps/View.d.ts +1 -1
- 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/VersionOverview.d.ts +2 -1
- package/types/components/manage/Controlpanels/index.d.ts +3 -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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import diff from './diff';
|
|
2
1
|
import { GET_DIFF } from '@plone/volto/constants/ActionTypes';
|
|
2
|
+
import diff from './diff';
|
|
3
3
|
|
|
4
4
|
describe('Diff reducer', () => {
|
|
5
5
|
it('should return the initial state', () => {
|
|
@@ -24,15 +24,71 @@ describe('Diff reducer', () => {
|
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
it('should handle GET_DIFF_SUCCESS', () => {
|
|
27
|
+
it('should handle GET_DIFF_SUCCESS with array result with static behaviors', () => {
|
|
28
|
+
expect(
|
|
29
|
+
diff(undefined, {
|
|
30
|
+
type: `${GET_DIFF}_SUCCESS`,
|
|
31
|
+
result: [
|
|
32
|
+
{
|
|
33
|
+
'@static_behaviors': [
|
|
34
|
+
'guillotina.behaviors.dublincore.IDublinCore',
|
|
35
|
+
],
|
|
36
|
+
'guillotina.behaviors.dublincore.IDublinCore': {
|
|
37
|
+
title: 'test page',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
'@static_behaviors': [
|
|
42
|
+
'guillotina.behaviors.dublincore.IDublinCore',
|
|
43
|
+
],
|
|
44
|
+
'guillotina.behaviors.dublincore.IDublinCore': {
|
|
45
|
+
title: 'test second page',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
}),
|
|
50
|
+
).toEqual({
|
|
51
|
+
error: null,
|
|
52
|
+
data: [
|
|
53
|
+
{
|
|
54
|
+
'@static_behaviors': ['guillotina.behaviors.dublincore.IDublinCore'],
|
|
55
|
+
|
|
56
|
+
'guillotina.behaviors.dublincore.IDublinCore.title': 'test page',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
'@static_behaviors': ['guillotina.behaviors.dublincore.IDublinCore'],
|
|
60
|
+
'guillotina.behaviors.dublincore.IDublinCore.title':
|
|
61
|
+
'test second page',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
loaded: true,
|
|
65
|
+
loading: false,
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it('should handle GET_DIFF_SUCCESS with array result without static behaviors', () => {
|
|
70
|
+
const data = [
|
|
71
|
+
{
|
|
72
|
+
title: 'test page',
|
|
73
|
+
'guillotina.behaviors.dublincore.IDublinCore': {
|
|
74
|
+
title: 'test page',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
title: 'test second page',
|
|
79
|
+
'guillotina.behaviors.dublincore.IDublinCore': {
|
|
80
|
+
title: 'test second page',
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
];
|
|
28
84
|
expect(
|
|
29
85
|
diff(undefined, {
|
|
30
86
|
type: `${GET_DIFF}_SUCCESS`,
|
|
31
|
-
result:
|
|
87
|
+
result: data,
|
|
32
88
|
}),
|
|
33
89
|
).toEqual({
|
|
34
90
|
error: null,
|
|
35
|
-
data:
|
|
91
|
+
data: data,
|
|
36
92
|
loaded: true,
|
|
37
93
|
loading: false,
|
|
38
94
|
});
|
package/src/reducers/index.js
CHANGED
|
@@ -53,6 +53,7 @@ import upgrade from './upgrade/upgrade';
|
|
|
53
53
|
import userschema from './userschema/userschema';
|
|
54
54
|
import site from './site/site';
|
|
55
55
|
import navroot from './navroot/navroot';
|
|
56
|
+
import blockTypes from './blockTypes/blockTypes';
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
59
|
* Root reducer.
|
|
@@ -111,6 +112,7 @@ const reducers = {
|
|
|
111
112
|
userschema,
|
|
112
113
|
site,
|
|
113
114
|
navroot,
|
|
115
|
+
blockTypes,
|
|
114
116
|
};
|
|
115
117
|
|
|
116
118
|
export default reducers;
|
|
@@ -30,10 +30,17 @@ export default function querystring(state = initialState, action = {}) {
|
|
|
30
30
|
loading: true,
|
|
31
31
|
};
|
|
32
32
|
case `${GET_QUERYSTRING}_SUCCESS`:
|
|
33
|
+
let indexes = action.result.indexes;
|
|
34
|
+
if (indexes?.path?.operations) {
|
|
35
|
+
//remove path operation, to remove unhandled 'Navigation path' option from QueryWidget
|
|
36
|
+
indexes.path.operations = indexes.path.operations.filter(
|
|
37
|
+
(o) => o !== 'plone.app.querystring.operation.string.path',
|
|
38
|
+
);
|
|
39
|
+
}
|
|
33
40
|
return {
|
|
34
41
|
...state,
|
|
35
42
|
error: null,
|
|
36
|
-
indexes:
|
|
43
|
+
indexes: indexes,
|
|
37
44
|
sortable_indexes: action.result.sortable_indexes,
|
|
38
45
|
loaded: true,
|
|
39
46
|
loading: false,
|
|
@@ -117,7 +117,7 @@ export default function users(state = initialState, action = {}) {
|
|
|
117
117
|
case `${LIST_USERS}_SUCCESS`:
|
|
118
118
|
return {
|
|
119
119
|
...state,
|
|
120
|
-
users: action.result,
|
|
120
|
+
users: action.result.items ? action.result.items : action.result,
|
|
121
121
|
[getRequestKey(action.type)]: {
|
|
122
122
|
loading: false,
|
|
123
123
|
loaded: true,
|
package/src/routes.js
CHANGED
|
@@ -51,6 +51,8 @@ import {
|
|
|
51
51
|
UndoControlpanel,
|
|
52
52
|
UpgradeControlPanel,
|
|
53
53
|
} from '@plone/volto/components/manage/Controlpanels';
|
|
54
|
+
import BlockTypesControlpanel from './components/manage/Controlpanels/BlockTypes';
|
|
55
|
+
import BlockTypeControlpanel from './components/manage/Controlpanels/BlockType';
|
|
54
56
|
|
|
55
57
|
import withClientSideContent from '@plone/volto/helpers/Content/withClientSideContent';
|
|
56
58
|
|
|
@@ -232,6 +234,14 @@ export const defaultRoutes = [
|
|
|
232
234
|
path: '/controlpanel/relations',
|
|
233
235
|
component: RelationsControlpanel,
|
|
234
236
|
},
|
|
237
|
+
{
|
|
238
|
+
path: '/controlpanel/block-types/:id',
|
|
239
|
+
component: BlockTypeControlpanel,
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
path: '/controlpanel/block-types',
|
|
243
|
+
component: BlockTypesControlpanel,
|
|
244
|
+
},
|
|
235
245
|
{
|
|
236
246
|
path: '/controlpanel/:id',
|
|
237
247
|
component: Controlpanel,
|
package/src/server.jsx
CHANGED
|
@@ -51,11 +51,13 @@ let locales = {};
|
|
|
51
51
|
if (config.settings) {
|
|
52
52
|
config.settings.supportedLanguages.forEach((lang) => {
|
|
53
53
|
const langFileName = toGettextLang(lang);
|
|
54
|
-
import(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
import(/* @vite-ignore */ '@root/../locales/' + langFileName + '.json')
|
|
55
|
+
.then((locale) => {
|
|
56
|
+
locales = { ...locales, [toReactIntlLang(lang)]: locale.default };
|
|
57
|
+
})
|
|
58
|
+
.catch((error) => {
|
|
59
|
+
// Error loading locale file
|
|
60
|
+
});
|
|
59
61
|
});
|
|
60
62
|
}
|
|
61
63
|
|
|
@@ -266,7 +268,13 @@ server.get('/*', (req, res) => {
|
|
|
266
268
|
? initialLang
|
|
267
269
|
: state.content.data?.language?.token || initialLang;
|
|
268
270
|
|
|
269
|
-
|
|
271
|
+
const isMultilingual = state.site.data.features?.multilingual;
|
|
272
|
+
|
|
273
|
+
if (
|
|
274
|
+
toBackendLang(initialLang) !== contentLang &&
|
|
275
|
+
!/\/\.well-known\/.*$/.test(location.pathname) &&
|
|
276
|
+
!(isMultilingual && location.pathname === '/')
|
|
277
|
+
) {
|
|
270
278
|
const newLang = toReactIntlLang(
|
|
271
279
|
new locale.Locales(contentLang).best(supported).toString(),
|
|
272
280
|
);
|
package/src/start-client.jsx
CHANGED
|
@@ -4,7 +4,9 @@ import React from 'react';
|
|
|
4
4
|
import { hydrateRoot } from 'react-dom/client';
|
|
5
5
|
import { Provider } from 'react-redux';
|
|
6
6
|
import { IntlProvider } from 'react-intl-redux';
|
|
7
|
+
import { RouterProvider } from 'react-aria-components';
|
|
7
8
|
import { ConnectedRouter } from 'connected-react-router';
|
|
9
|
+
import { useHistory } from 'react-router-dom';
|
|
8
10
|
import { createBrowserHistory } from 'history';
|
|
9
11
|
import { ReduxAsyncConnect } from '@plone/volto/helpers/AsyncConnect';
|
|
10
12
|
import { loadableReady } from '@loadable/component';
|
|
@@ -22,6 +24,20 @@ function reactIntlErrorHandler(error) {
|
|
|
22
24
|
debug('i18n')(error);
|
|
23
25
|
}
|
|
24
26
|
|
|
27
|
+
function ReactAriaRouterProvider({ children }) {
|
|
28
|
+
const history = useHistory();
|
|
29
|
+
|
|
30
|
+
const navigate = (to, options = {}) => {
|
|
31
|
+
if (options.replace) {
|
|
32
|
+
history.replace(to);
|
|
33
|
+
} else {
|
|
34
|
+
history.push(to);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
return <RouterProvider navigate={navigate}>{children}</RouterProvider>;
|
|
39
|
+
}
|
|
40
|
+
|
|
25
41
|
export default function client() {
|
|
26
42
|
const api = new Api();
|
|
27
43
|
|
|
@@ -73,9 +89,11 @@ export default function client() {
|
|
|
73
89
|
<Provider store={store}>
|
|
74
90
|
<IntlProvider onError={reactIntlErrorHandler}>
|
|
75
91
|
<ConnectedRouter history={history}>
|
|
76
|
-
<
|
|
77
|
-
<
|
|
78
|
-
|
|
92
|
+
<ReactAriaRouterProvider>
|
|
93
|
+
<ScrollToTop>
|
|
94
|
+
<ReduxAsyncConnect routes={routes} helpers={api} />
|
|
95
|
+
</ScrollToTop>
|
|
96
|
+
</ReactAriaRouterProvider>
|
|
79
97
|
</ConnectedRouter>
|
|
80
98
|
</IntlProvider>
|
|
81
99
|
</Provider>
|
package/test-setup-globals.js
CHANGED
|
@@ -1,12 +1,66 @@
|
|
|
1
|
+
import { vi } from 'vitest';
|
|
2
|
+
import '@testing-library/jest-dom';
|
|
3
|
+
|
|
1
4
|
global.__CLIENT__ = true;
|
|
2
5
|
global.__DEVELOPMENT__ = false;
|
|
6
|
+
global.__SERVER__ = false;
|
|
7
|
+
global.__TEST__ = true;
|
|
3
8
|
|
|
4
9
|
window.matchMedia =
|
|
5
10
|
window.matchMedia ||
|
|
6
|
-
function () {
|
|
11
|
+
function (query) {
|
|
7
12
|
return {
|
|
8
|
-
matches:
|
|
13
|
+
matches: query === '(min-width: 1024px)',
|
|
9
14
|
addListener: function () {},
|
|
10
15
|
removeListener: function () {},
|
|
11
16
|
};
|
|
12
17
|
};
|
|
18
|
+
|
|
19
|
+
vi.stubGlobal(
|
|
20
|
+
'fetch',
|
|
21
|
+
vi.fn(() =>
|
|
22
|
+
Promise.resolve({
|
|
23
|
+
json: () => Promise.resolve({}),
|
|
24
|
+
text: () => Promise.resolve(''),
|
|
25
|
+
}),
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
vi.stubGlobal('localStorage', {
|
|
30
|
+
getItem: vi.fn(),
|
|
31
|
+
setItem: vi.fn(),
|
|
32
|
+
removeItem: vi.fn(),
|
|
33
|
+
clear: vi.fn(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
vi.stubGlobal('sessionStorage', {
|
|
37
|
+
getItem: vi.fn(),
|
|
38
|
+
setItem: vi.fn(),
|
|
39
|
+
removeItem: vi.fn(),
|
|
40
|
+
clear: vi.fn(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
global.jest = {
|
|
44
|
+
fn: vi.fn.bind(vi),
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// Mock IntersectionObserver for Vitest
|
|
48
|
+
const IntersectionObserverMock = vi.fn((callback, options = {}) => {
|
|
49
|
+
const instance = {
|
|
50
|
+
thresholds: Array.isArray(options.threshold)
|
|
51
|
+
? options.threshold
|
|
52
|
+
: [options.threshold ?? 0],
|
|
53
|
+
root: options.root ?? null,
|
|
54
|
+
rootMargin: options.rootMargin ?? '',
|
|
55
|
+
observe: vi.fn(),
|
|
56
|
+
unobserve: vi.fn(),
|
|
57
|
+
disconnect: vi.fn(),
|
|
58
|
+
takeRecords: vi.fn(() => []),
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return instance;
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
vi.stubGlobal('IntersectionObserver', IntersectionObserverMock);
|
|
65
|
+
global.IntersectionObserver = IntersectionObserverMock;
|
|
66
|
+
window.IntersectionObserver = IntersectionObserverMock;
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
@placeholderContentMaxWidth: 15rem;
|
|
58
58
|
@placeholderContentInlineButtonMargin: 0px @5px 0px 0px;
|
|
59
59
|
|
|
60
|
-
|
|
61
60
|
/* Piled */
|
|
62
61
|
@piledZIndex: auto;
|
|
63
62
|
@piledMargin: 3em;
|
|
@@ -86,12 +85,10 @@
|
|
|
86
85
|
@loaderSize: 3em;
|
|
87
86
|
@loaderLineZIndex: 101;
|
|
88
87
|
|
|
89
|
-
|
|
90
88
|
/*******************************
|
|
91
89
|
Variations
|
|
92
90
|
*******************************/
|
|
93
91
|
|
|
94
|
-
|
|
95
92
|
/* Raised */
|
|
96
93
|
@raisedBoxShadow: @floatingShadow;
|
|
97
94
|
|
|
@@ -106,10 +103,7 @@
|
|
|
106
103
|
@attachedWidth: calc(100% - (@attachedHorizontalOffset * 2));
|
|
107
104
|
@attachedBoxShadow: none;
|
|
108
105
|
@attachedBorder: @borderWidth solid @solidBorderColor;
|
|
109
|
-
@attachedBottomBoxShadow:
|
|
110
|
-
@boxShadow,
|
|
111
|
-
@attachedBoxShadow
|
|
112
|
-
;
|
|
106
|
+
@attachedBottomBoxShadow: @boxShadow, @attachedBoxShadow;
|
|
113
107
|
|
|
114
108
|
/* Inverted */
|
|
115
109
|
@invertedBackground: @black;
|
|
@@ -130,25 +124,24 @@
|
|
|
130
124
|
@secondaryBackground: @darkWhite;
|
|
131
125
|
@secondaryColor: @mutedTextColor;
|
|
132
126
|
|
|
133
|
-
@tertiaryBackground:
|
|
127
|
+
@tertiaryBackground: @midWhite;
|
|
134
128
|
@tertiaryColor: @mutedTextColor;
|
|
135
129
|
|
|
136
130
|
@secondaryInvertedLightness: 0.2;
|
|
137
|
-
@secondaryInvertedBackground:
|
|
138
|
-
|
|
131
|
+
@secondaryInvertedBackground: lighten(
|
|
132
|
+
@black,
|
|
133
|
+
(@secondaryInvertedLightness * 100)
|
|
134
|
+
)
|
|
139
135
|
linear-gradient(
|
|
140
136
|
rgba(255, 255, 255, @secondaryInvertedLightness) 0%,
|
|
141
137
|
rgba(255, 255, 255, @secondaryInvertedLightness) 100%
|
|
142
|
-
)
|
|
143
|
-
;
|
|
138
|
+
);
|
|
144
139
|
@secondaryInvertedColor: @invertedMutedTextColor;
|
|
145
140
|
|
|
146
141
|
@tertiaryInvertedLightness: 0.35;
|
|
147
|
-
@tertiaryInvertedBackground:
|
|
148
|
-
lighten(@black, (@tertiaryInvertedLightness * 100))
|
|
142
|
+
@tertiaryInvertedBackground: lighten(@black, (@tertiaryInvertedLightness * 100))
|
|
149
143
|
linear-gradient(
|
|
150
144
|
rgba(255, 255, 255, @tertiaryInvertedLightness) 0%,
|
|
151
145
|
rgba(255, 255, 255, @tertiaryInvertedLightness) 100%
|
|
152
|
-
)
|
|
153
|
-
;
|
|
146
|
+
);
|
|
154
147
|
@tertiaryInvertedColor: @invertedMutedTextColor;
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
|
|
83
83
|
/* Input Text Color */
|
|
84
84
|
@inputColor: @textColor;
|
|
85
|
-
@inputPlaceholderColor: lighten(@inputColor,
|
|
86
|
-
@inputPlaceholderFocusColor: lighten(@inputColor,
|
|
85
|
+
@inputPlaceholderColor: lighten(@inputColor, 35);
|
|
86
|
+
@inputPlaceholderFocusColor: lighten(@inputColor, 65);
|
|
87
87
|
|
|
88
88
|
/* Line Height Default For Inputs in Browser (Descenders are 17px at 14px base em) */
|
|
89
89
|
@inputLineHeight: unit((17 / 14), em);
|
|
@@ -970,4 +970,4 @@
|
|
|
970
970
|
/*--- Light Tones ---*/
|
|
971
971
|
@whiteActive : darken(@white, 5);
|
|
972
972
|
@offWhiteActive : darken(@offWhite, 5);
|
|
973
|
-
@darkWhiteActive : darken(@darkWhite, 5);
|
|
973
|
+
@darkWhiteActive : darken(@darkWhite, 5);
|
|
@@ -25,12 +25,33 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.ui.form p.help {
|
|
28
|
-
color:
|
|
28
|
+
color: @inputColor;
|
|
29
29
|
font-size: @13px;
|
|
30
30
|
font-weight: 300;
|
|
31
31
|
line-height: initial;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
// Restore visible focus for keyboard navigation — overrides Semantic UI's `outline: none` on form inputs
|
|
35
|
+
.ui.form input:not([type]),
|
|
36
|
+
.ui.form input[type='date'],
|
|
37
|
+
.ui.form input[type='datetime-local'],
|
|
38
|
+
.ui.form input[type='email'],
|
|
39
|
+
.ui.form input[type='number'],
|
|
40
|
+
.ui.form input[type='password'],
|
|
41
|
+
.ui.form input[type='search'],
|
|
42
|
+
.ui.form input[type='tel'],
|
|
43
|
+
.ui.form input[type='time'],
|
|
44
|
+
.ui.form input[type='text'],
|
|
45
|
+
.ui.form input[type='file'],
|
|
46
|
+
.ui.form input[type='url'],
|
|
47
|
+
.ui.form textarea {
|
|
48
|
+
padding-left: 5px;
|
|
49
|
+
|
|
50
|
+
&:focus-visible {
|
|
51
|
+
outline: revert;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
34
55
|
.ui.form .ui.input input:not([type]),
|
|
35
56
|
.ui.form .ui.input input[type='date'],
|
|
36
57
|
.ui.form .ui.input input[type='datetime-local'],
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
#main,
|
|
30
|
-
.slate-inline-toolbar.slate-toolbar
|
|
30
|
+
.slate-inline-toolbar.slate-toolbar,
|
|
31
|
+
.contenttype-plone-site .ui.page.modals {
|
|
31
32
|
.ui.basic.buttons .button,
|
|
32
33
|
.ui.basic.button {
|
|
33
34
|
-webkit-box-shadow: 0px 0px 0px @basicBorderSize transparent inset !important;
|
|
@@ -42,11 +43,16 @@
|
|
|
42
43
|
cursor: pointer;
|
|
43
44
|
text-align: initial;
|
|
44
45
|
|
|
45
|
-
&:focus {
|
|
46
|
+
&:focus:not(:focus-visible) {
|
|
46
47
|
outline: none;
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
|
|
51
|
+
.ui.basic.buttons .button:focus-visible,
|
|
52
|
+
.ui.basic.button:focus-visible {
|
|
53
|
+
outline: revert;
|
|
54
|
+
}
|
|
55
|
+
|
|
50
56
|
.ui.basic.primary.button,
|
|
51
57
|
.ui.basic.secondary.button {
|
|
52
58
|
box-shadow: none !important;
|
|
@@ -69,7 +75,7 @@
|
|
|
69
75
|
cursor: pointer;
|
|
70
76
|
text-align: initial;
|
|
71
77
|
|
|
72
|
-
&:focus {
|
|
78
|
+
&:focus:not(:focus-visible) {
|
|
73
79
|
outline: none;
|
|
74
80
|
}
|
|
75
81
|
}
|
|
@@ -85,3 +91,24 @@
|
|
|
85
91
|
margin: 0;
|
|
86
92
|
}
|
|
87
93
|
}
|
|
94
|
+
|
|
95
|
+
.modals {
|
|
96
|
+
.modal {
|
|
97
|
+
.actions {
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: flex-end;
|
|
100
|
+
gap: 0.5em;
|
|
101
|
+
|
|
102
|
+
.ui.basic.button {
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
padding: 0.3em;
|
|
106
|
+
margin: 0;
|
|
107
|
+
|
|
108
|
+
svg {
|
|
109
|
+
margin: 0;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -14,14 +14,12 @@
|
|
|
14
14
|
|
|
15
15
|
@groupedSegmentDivider: none;
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
/*-------------------
|
|
19
18
|
Coupling
|
|
20
19
|
--------------------*/
|
|
21
20
|
|
|
22
21
|
/* Page Grid Segment */
|
|
23
22
|
|
|
24
|
-
|
|
25
23
|
/*******************************
|
|
26
24
|
States
|
|
27
25
|
*******************************/
|
|
@@ -30,7 +28,6 @@
|
|
|
30
28
|
|
|
31
29
|
/* Loading Spinner */
|
|
32
30
|
|
|
33
|
-
|
|
34
31
|
/*******************************
|
|
35
32
|
Variations
|
|
36
33
|
*******************************/
|
|
@@ -61,4 +58,4 @@
|
|
|
61
58
|
|
|
62
59
|
/* Ordinality */
|
|
63
60
|
@secondaryBackground: @tealBackground;
|
|
64
|
-
@secondaryColor: @
|
|
61
|
+
@secondaryColor: @textColor;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.react-aria-Table.cmsui-table {
|
|
2
|
+
--plone-table-cell-border-bottom: 1px solid var(--quanta-smoke);
|
|
3
|
+
--plone-table-header-border-bottom: 2px solid var(--quanta-silver);
|
|
4
|
+
width: 100%;
|
|
5
|
+
border-radius: 0;
|
|
6
|
+
|
|
7
|
+
.react-aria-Row {
|
|
8
|
+
--radius-top: 0px;
|
|
9
|
+
--radius-bottom: 0px;
|
|
10
|
+
border-bottom: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.react-aria-Column[data-key$='occurrences'],
|
|
14
|
+
.react-aria-Cell[data-key$=':occurrences'] {
|
|
15
|
+
text-align: right;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -187,10 +187,6 @@
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
#content-core {
|
|
190
|
-
.dragging-cell {
|
|
191
|
-
opacity: 0;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
190
|
.dragging-row {
|
|
195
191
|
background: rgba(0, 0, 0, 0.05);
|
|
196
192
|
}
|
|
@@ -267,3 +263,66 @@
|
|
|
267
263
|
overflow: auto;
|
|
268
264
|
max-height: 75vh;
|
|
269
265
|
}
|
|
266
|
+
|
|
267
|
+
.contents-dropzone {
|
|
268
|
+
position: relative;
|
|
269
|
+
|
|
270
|
+
&.drag-over {
|
|
271
|
+
overflow: hidden;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.dropzone-overlay {
|
|
276
|
+
position: absolute;
|
|
277
|
+
z-index: 10;
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
justify-content: center;
|
|
281
|
+
border: 3px dashed black;
|
|
282
|
+
animation: fadeIn 0.3s ease-in;
|
|
283
|
+
backdrop-filter: blur(2px);
|
|
284
|
+
inset: 0;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.dropzone-content {
|
|
288
|
+
animation: scaleIn 0.3s ease-out;
|
|
289
|
+
color: black;
|
|
290
|
+
text-align: center;
|
|
291
|
+
|
|
292
|
+
h3 {
|
|
293
|
+
margin-top: 16px;
|
|
294
|
+
font-size: 24px;
|
|
295
|
+
font-weight: 600;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
p {
|
|
299
|
+
font-size: 18px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
h3,
|
|
303
|
+
p {
|
|
304
|
+
color: black;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
@keyframes fadeIn {
|
|
309
|
+
from {
|
|
310
|
+
opacity: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
to {
|
|
314
|
+
opacity: 1;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@keyframes scaleIn {
|
|
319
|
+
from {
|
|
320
|
+
opacity: 0;
|
|
321
|
+
transform: scale(0.9);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
to {
|
|
325
|
+
opacity: 1;
|
|
326
|
+
transform: scale(1);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
@@ -363,6 +363,7 @@ button {
|
|
|
363
363
|
margin-left: 8px;
|
|
364
364
|
|
|
365
365
|
h4 {
|
|
366
|
+
display: inline;
|
|
366
367
|
margin-bottom: 0;
|
|
367
368
|
font-weight: @bold;
|
|
368
369
|
}
|
|
@@ -394,8 +395,6 @@ button {
|
|
|
394
395
|
}
|
|
395
396
|
|
|
396
397
|
.users-control-panel .table {
|
|
397
|
-
overflow-x: scroll;
|
|
398
|
-
|
|
399
398
|
&::-webkit-scrollbar {
|
|
400
399
|
width: 3px;
|
|
401
400
|
height: 3px; /* scrollbar height */
|
|
@@ -678,8 +677,19 @@ img.responsive {
|
|
|
678
677
|
}
|
|
679
678
|
}
|
|
680
679
|
|
|
681
|
-
|
|
682
|
-
|
|
680
|
+
.visually-hidden {
|
|
681
|
+
position: absolute;
|
|
682
|
+
overflow: hidden;
|
|
683
|
+
width: 1px;
|
|
684
|
+
height: 1px;
|
|
685
|
+
padding: 0;
|
|
686
|
+
border: 0;
|
|
687
|
+
margin: -1px;
|
|
688
|
+
clip: rect(1px, 1px, 1px, 1px); /* IE-style CSS for compatibility */
|
|
689
|
+
white-space: nowrap;
|
|
690
|
+
word-wrap: normal;
|
|
691
|
+
}
|
|
692
|
+
|
|
683
693
|
@import (multiple) '../extras/fonts';
|
|
684
694
|
@import 'toolbar';
|
|
685
695
|
@import 'draftjs';
|
|
@@ -702,4 +712,6 @@ img.responsive {
|
|
|
702
712
|
@import 'views';
|
|
703
713
|
@import 'toc';
|
|
704
714
|
@import 'grid.less';
|
|
715
|
+
@import 'block-types.less';
|
|
716
|
+
@import 'videoembed.less';
|
|
705
717
|
.loadUIOverrides();
|
|
@@ -129,10 +129,6 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.toolbar-handler {
|
|
132
|
-
.toolbar-handler-button {
|
|
133
|
-
opacity: 0.3;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
132
|
// State colors
|
|
137
133
|
.published:before {
|
|
138
134
|
background: @teal-blue;
|
|
@@ -259,6 +255,15 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
|
|
|
259
255
|
height: 4px;
|
|
260
256
|
background-color: red;
|
|
261
257
|
content: '';
|
|
258
|
+
opacity: 0.65;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&:hover,
|
|
262
|
+
&:focus {
|
|
263
|
+
&::before {
|
|
264
|
+
opacity: 1;
|
|
265
|
+
transition: opacity 0.3s;
|
|
266
|
+
}
|
|
262
267
|
}
|
|
263
268
|
}
|
|
264
269
|
}
|
|
@@ -714,7 +719,7 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
|
|
|
714
719
|
}
|
|
715
720
|
|
|
716
721
|
.compare-languages {
|
|
717
|
-
@media (max-width: @largestMobileScreen -
|
|
722
|
+
@media (max-width: calc(@largestMobileScreen - 1px)) {
|
|
718
723
|
position: fixed;
|
|
719
724
|
top: 101px;
|
|
720
725
|
left: 0;
|