From e15b222cad237a89bd317398f4a2a228fc5257af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Fern=C3=A1ndez=20de=20Alba?= Date: Fri, 1 Mar 2024 09:06:58 +0100 Subject: [PATCH] Fix types for latest build, check if CI is happy (#5814) --- packages/volto/news/5814.internal | 1 + .../theme/SlotRenderer/SlotRenderer.tsx | 2 +- packages/volto/tsconfig.declarations.json | 1 + .../components/manage/Actions/Actions.d.ts | 2 +- .../AnchorPlugin/components/Link/index.d.ts | 2 +- .../BlockChooser/BlockChooserButton.d.ts | 4 +- .../BlockChooser/BlockChooserSearch.d.ts | 2 +- .../manage/Blocks/Block/BlocksForm.d.ts | 2 +- .../manage/Blocks/Block/DefaultEdit.d.ts | 2 +- .../manage/Blocks/Block/DefaultView.d.ts | 2 +- .../components/manage/Blocks/Block/Style.d.ts | 2 +- .../manage/Blocks/Container/Data.d.ts | 2 +- .../manage/Blocks/Container/Edit.d.ts | 2 +- .../Blocks/Container/EditBlockWrapper.d.ts | 2 +- .../Blocks/Container/NewBlockAddButton.d.ts | 2 +- .../Container/SimpleContainerToolbar.d.ts | 2 +- .../manage/Blocks/Description/Edit.d.ts | 2 +- .../manage/Blocks/Description/View.d.ts | 2 +- .../components/manage/Blocks/Grid/Edit.d.ts | 2 +- .../components/manage/Blocks/Grid/View.d.ts | 2 +- .../components/manage/Blocks/HTML/View.d.ts | 2 +- .../manage/Blocks/HeroImageLeft/Data.d.ts | 2 +- .../manage/Blocks/HeroImageLeft/View.d.ts | 2 +- .../manage/Blocks/Image/ImageSidebar.d.ts | 2 +- .../components/manage/Blocks/Image/View.d.ts | 4 +- .../manage/Blocks/Image/schema.d.ts | 2 +- .../manage/Blocks/LeadImage/View.d.ts | 2 +- .../Listing/DefaultNoResultsComponent.d.ts | 2 +- .../Blocks/Listing/DefaultTemplate.d.ts | 2 +- .../manage/Blocks/Listing/Edit.d.ts | 2 +- .../Listing/GalleryNoResultsComponent.d.ts | 2 +- .../manage/Blocks/Listing/ImageGallery.d.ts | 2 +- .../manage/Blocks/Listing/ListingData.d.ts | 2 +- .../Blocks/Listing/SummaryTemplate.d.ts | 2 +- .../manage/Blocks/Listing/View.d.ts | 2 +- .../components/manage/Blocks/Maps/Edit.d.ts | 2 +- .../manage/Blocks/Maps/MapsSidebar.d.ts | 2 +- .../manage/Blocks/Search/SearchBlockEdit.d.ts | 2 +- .../manage/Blocks/Search/SearchBlockView.d.ts | 4 +- .../Search/components/CheckboxFacet.d.ts | 2 +- .../DateRangeFacetFilterListEntry.d.ts | 2 +- .../Blocks/Search/components/Facets.d.ts | 2 +- .../Blocks/Search/components/FilterList.d.ts | 2 +- .../Search/components/SearchDetails.d.ts | 2 +- .../Blocks/Search/components/SearchInput.d.ts | 2 +- .../SelectFacetFilterListEntry.d.ts | 2 +- .../Blocks/Search/components/ToggleFacet.d.ts | 2 +- .../ToggleFacetFilterListEntry.d.ts | 2 +- .../Blocks/Search/hocs/withQueryString.d.ts | 2 +- .../manage/Blocks/Search/hocs/withSearch.d.ts | 2 +- .../Search/layout/LeftColumnFacets.d.ts | 2 +- .../Search/layout/RightColumnFacets.d.ts | 2 +- .../Blocks/Search/layout/TopSideFacets.d.ts | 2 +- .../manage/Blocks/Search/utils.d.ts | 4 +- .../Search/widgets/SelectMetadataField.d.ts | 2 +- .../components/manage/Blocks/Table/Cell.d.ts | 2 +- .../components/manage/Blocks/Table/View.d.ts | 2 +- .../components/manage/Blocks/Teaser/Body.d.ts | 2 +- .../components/manage/Blocks/Teaser/Data.d.ts | 2 +- .../manage/Blocks/Teaser/DefaultBody.d.ts | 2 +- .../components/manage/Blocks/Teaser/Edit.d.ts | 2 +- .../components/manage/Blocks/Teaser/View.d.ts | 2 +- .../components/manage/Blocks/Text/Edit.d.ts | 2 +- .../components/manage/Blocks/Title/Edit.d.ts | 2 +- .../components/manage/Blocks/Title/View.d.ts | 2 +- .../components/manage/Blocks/ToC/Edit.d.ts | 2 +- .../components/manage/Blocks/Video/Body.d.ts | 2 +- .../manage/Blocks/Video/VideoSidebar.d.ts | 2 +- .../components/manage/Blocks/Video/View.d.ts | 2 +- .../manage/Contents/ContentsBreadcrumbs.d.ts | 2 +- .../Contents/ContentsBreadcrumbsHomeItem.d.ts | 2 +- .../Contents/ContentsBreadcrumbsRootItem.d.ts | 2 +- .../Contents/ContentsPropertiesModal.d.ts | 2 +- .../manage/Contents/ContentsRenameModal.d.ts | 2 +- .../Contents/ContentsRenameModal.stories.d.ts | 2 +- .../manage/Contents/ContentsTagsModal.d.ts | 2 +- .../Contents/ContentsTagsModal.stories.d.ts | 2 +- .../Contents/ContentsWorkflowModal.d.ts | 2 +- .../components/manage/Contents/circle.d.ts | 2 +- .../Relations/BrokenRelations.d.ts | 2 +- .../Controlpanels/Relations/Relations.d.ts | 2 +- .../Relations/RelationsListing.d.ts | 2 +- .../Relations/RelationsMatrix.d.ts | 8 +- .../UserGroupMembershipControlPanel.d.ts | 2 +- .../Users/UserGroupMembershipListing.d.ts | 2 +- .../Users/UserGroupMembershipMatrix.d.ts | 2 +- .../manage/Controlpanels/VersionOverview.d.ts | 2 +- .../components/manage/Delete/Delete.d.ts | 2 +- .../components/manage/Form/BlockDataForm.d.ts | 2 +- .../components/manage/Form/BlocksToolbar.d.ts | 2 +- .../components/manage/Form/UndoToolbar.d.ts | 2 +- .../link-detection-plugin.d.ts | 2 +- .../components/manage/LinkMore/LinkMore.d.ts | 2 +- .../manage/LinksToItem/LinksToItem.d.ts | 2 +- .../components/manage/Messages/Messages.d.ts | 2 +- .../Multilingual/CreateTranslation.d.ts | 2 +- .../Multilingual/ManageTranslations.d.ts | 8 +- .../Multilingual/TranslationObject.d.ts | 2 +- .../manage/Pluggable/Pluggable.stories.d.ts | 8 +- .../components/manage/Pluggable/index.d.ts | 24 +- .../components/manage/Sidebar/AlignBlock.d.ts | 2 +- .../manage/Sidebar/ObjectBrowser.d.ts | 8 +- .../manage/Sidebar/ObjectBrowserNav.d.ts | 2 +- .../manage/Sidebar/SidebarPopup.d.ts | 2 +- .../manage/Sidebar/SidebarPortal.d.ts | 3 +- .../TemplateChooser/TemplateChooser.d.ts | 2 +- .../manage/TextLineEdit/TextLineEdit.d.ts | 2 +- .../TextLineEdit/TextLineEdit.stories.d.ts | 2 +- .../types/components/manage/Toast/Toast.d.ts | 2 +- .../manage/Toolbar/PersonalTools.d.ts | 2 +- .../manage/Toolbar/StandardWrapper.d.ts | 2 +- .../components/manage/Toolbar/Stats.d.ts | 2 +- .../manage/UniversalLink/UniversalLink.d.ts | 2 +- .../manage/Widgets/AlignWidget.d.ts | 2 +- .../manage/Widgets/AlignWidget.stories.d.ts | 2 +- .../manage/Widgets/ArrayWidget.stories.d.ts | 2 +- .../manage/Widgets/ButtonsWidget.d.ts | 2 +- .../manage/Widgets/ButtonsWidget.stories.d.ts | 2 +- .../Widgets/CheckboxWidget.stories.d.ts | 2 +- .../manage/Widgets/ColorPickerWidget.d.ts | 3 +- .../manage/Widgets/DatetimeWidget.d.ts | 2 +- .../Widgets/DatetimeWidget.stories.d.ts | 2 +- .../manage/Widgets/EmailWidget.d.ts | 2 +- .../manage/Widgets/EmailWidget.stories.d.ts | 2 +- .../manage/Widgets/FileWidget.stories.d.ts | 2 +- .../Widgets/FormFieldWrapper.stories.d.ts | 2 +- .../manage/Widgets/IdWidget.stories.d.ts | 2 +- .../Widgets/ImageSizeWidget.stories.d.ts | 2 +- .../manage/Widgets/InternalUrlWidget.d.ts | 10 +- .../Widgets/InternalUrlWidget.stories.d.ts | 2 +- .../manage/Widgets/NumberWidget.stories.d.ts | 2 +- .../manage/Widgets/ObjectBrowserWidget.d.ts | 2 +- .../Widgets/ObjectBrowserWidget.stories.d.ts | 14 +- .../manage/Widgets/ObjectListWidget.d.ts | 2 +- .../Widgets/ObjectListWidget.stories.d.ts | 4 +- .../manage/Widgets/ObjectWidget.d.ts | 2 +- .../manage/Widgets/ObjectWidget.stories.d.ts | 2 +- .../Widgets/PasswordWidget.stories.d.ts | 2 +- .../manage/Widgets/QueryWidget.stories.d.ts | 2 +- .../manage/Widgets/QuerystringWidget.d.ts | 2 +- .../RecurrenceWidget/ByMonthDayField.d.ts | 18 +- .../RecurrenceWidget/ByMonthField.d.ts | 22 +- .../Widgets/RecurrenceWidget/ByYearField.d.ts | 24 +- .../Widgets/RecurrenceWidget/EndField.d.ts | 18 +- .../SelectAutocompleteWidget.stories.d.ts | 2 +- .../manage/Widgets/SelectStyling.d.ts | 2 +- .../manage/Widgets/SelectWidget.stories.d.ts | 2 +- .../manage/Widgets/TextWidget.stories.d.ts | 2 +- .../Widgets/TextareaWidget.stories.d.ts | 2 +- .../manage/Widgets/TokenWidget.stories.d.ts | 2 +- .../components/manage/Widgets/UrlWidget.d.ts | 10 +- .../manage/Widgets/UrlWidget.stories.d.ts | 2 +- .../manage/Widgets/VocabularyTermsWidget.d.ts | 2 +- .../VocabularyTermsWidget.stories.d.ts | 2 +- .../manage/Widgets/WysiwygWidget.d.ts | 2 +- .../manage/Widgets/WysiwygWidget.stories.d.ts | 2 +- .../components/manage/Widgets/story.d.ts | 2 +- .../components/theme/Anontools/Anontools.d.ts | 2 +- .../components/theme/AppExtras/AppExtras.d.ts | 2 +- .../types/components/theme/Avatar/Avatar.d.ts | 2 +- .../theme/Breadcrumbs/Breadcrumbs.d.ts | 2 +- .../theme/Comments/Comment.stories.d.ts | 2 +- .../theme/Comments/CommentEditModal.d.ts | 2 +- .../Comments/CommentEditModal.stories.d.ts | 2 +- .../components/theme/Component/Component.d.ts | 2 +- .../ConnectionRefused/ConnectionRefused.d.ts | 2 +- .../theme/ContactForm/ContactForm.d.ts | 2 +- .../ContactForm/ContactForm.stories.d.ts | 2 +- .../ContentMetadataTags.d.ts | 2 +- .../components/theme/Error/ErrorBoundary.d.ts | 1 + .../components/theme/Error/ServerError.d.ts | 2 +- .../theme/EventDetails/EventDetails.d.ts | 2 +- .../EventDetails/EventDetails.stories.d.ts | 2 +- .../components/theme/Forbidden/Forbidden.d.ts | 2 +- .../theme/FormattedDate/FormattedDate.d.ts | 2 +- .../FormattedDate/FormattedDate.stories.d.ts | 2 +- .../FormattedDate/FormattedRelativeDate.d.ts | 2 +- .../FormattedRelativeDate.stories.d.ts | 2 +- .../types/components/theme/Header/Header.d.ts | 2 +- .../theme/Header/Header.stories.d.ts | 2 +- .../types/components/theme/Image/Image.d.ts | 2 +- .../LanguageSelector/LanguageSelector.d.ts | 2 +- .../types/components/theme/Login/Login.d.ts | 2 +- .../components/theme/Login/Login.stories.d.ts | 2 +- .../components/theme/Logo/Logo.stories.d.ts | 2 +- .../types/components/theme/Logout/Logout.d.ts | 2 +- .../MultilingualRedirector.d.ts | 2 +- .../theme/Navigation/ContextNavigation.d.ts | 2 +- .../Navigation/ContextNavigation.stories.d.ts | 4 +- .../components/theme/Navigation/NavItem.d.ts | 2 +- .../components/theme/Navigation/NavItems.d.ts | 2 +- .../theme/Navigation/Navigation.d.ts | 2 +- .../Navigation/withContentNavigation.d.ts | 2 +- .../components/theme/NotFound/NotFound.d.ts | 2 +- .../OutdatedBrowser/OutdatedBrowser.d.ts | 2 +- .../PasswordReset/RequestPasswordReset.d.ts | 2 +- .../types/components/theme/Popup/Popup.d.ts | 2 +- .../theme/PreviewImage/PreviewImage.d.ts | 2 +- .../components/theme/Search/SearchTags.d.ts | 2 +- .../theme/SearchWidget/SearchWidget.d.ts | 2 +- .../SearchWidget/SearchWidget.stories.d.ts | 2 +- .../components/theme/SkipLinks/SkipLinks.d.ts | 2 +- .../theme/SlotRenderer/SlotRenderer.d.ts | 7 + .../theme/SlotRenderer/SlotRenderer.test.d.ts | 1 + .../types/components/theme/TsTest/TsTest.d.ts | 3 +- .../theme/Unauthorized/Unauthorized.d.ts | 2 +- .../components/theme/View/AlbumView.d.ts | 2 +- .../components/theme/View/EventDatesInfo.d.ts | 2 +- .../types/components/theme/View/LinkView.d.ts | 2 +- .../components/theme/View/RenderBlocks.d.ts | 2 +- .../components/theme/Widgets/ArrayWidget.d.ts | 2 +- .../theme/Widgets/BooleanWidget.d.ts | 16 +- .../components/theme/Widgets/DateWidget.d.ts | 2 +- .../theme/Widgets/DatetimeWidget.d.ts | 2 +- .../theme/Widgets/DescriptionWidget.d.ts | 2 +- .../components/theme/Widgets/EmailWidget.d.ts | 2 +- .../components/theme/Widgets/FileWidget.d.ts | 2 +- .../components/theme/Widgets/ImageWidget.d.ts | 2 +- .../theme/Widgets/PasswordWidget.d.ts | 2 +- .../theme/Widgets/RelationWidget.d.ts | 2 +- .../theme/Widgets/RelationsWidget.d.ts | 2 +- .../theme/Widgets/RichTextWidget.d.ts | 2 +- .../theme/Widgets/SelectWidget.d.ts | 2 +- .../components/theme/Widgets/TextWidget.d.ts | 2 +- .../components/theme/Widgets/TitleWidget.d.ts | 2 +- .../components/theme/Widgets/TokenWidget.d.ts | 2 +- .../components/theme/Widgets/UrlWidget.d.ts | 2 +- packages/volto/types/config/Blocks.d.ts | 2 +- .../types/config/RichTextEditor/ToHTML.d.ts | 20 +- packages/volto/types/config/Views.d.ts | 10 +- .../helpers/AsyncConnect/AsyncConnect.d.ts | 4 +- .../Extensions/withBlockExtensions.d.ts | 2 +- .../Extensions/withBlockSchemaEnhancer.d.ts | 6 +- .../volto/types/helpers/Helmet/Helmet.d.ts | 16 +- .../helpers/LanguageMap/LanguageMap.d.ts | 879 +++++++++++++++++- packages/volto/types/helpers/Slots/index.d.ts | 7 + packages/volto/types/helpers/Utils/Date.d.ts | 4 +- .../Utils/UseDetectClickOutside.stories.d.ts | 4 +- packages/volto/types/helpers/Utils/Utils.d.ts | 2 +- packages/volto/types/helpers/index.d.ts | 1 + .../blocksClipboard/blocksClipboard.d.ts | 2 +- packages/volto/types/routes.d.ts | 6 +- packages/volto/types/storybook.d.ts | 6 +- 243 files changed, 1290 insertions(+), 313 deletions(-) create mode 100644 packages/volto/news/5814.internal create mode 100644 packages/volto/types/components/theme/SlotRenderer/SlotRenderer.d.ts create mode 100644 packages/volto/types/components/theme/SlotRenderer/SlotRenderer.test.d.ts create mode 100644 packages/volto/types/helpers/Slots/index.d.ts diff --git a/packages/volto/news/5814.internal b/packages/volto/news/5814.internal new file mode 100644 index 0000000000..438355d48a --- /dev/null +++ b/packages/volto/news/5814.internal @@ -0,0 +1 @@ +New types declarations with @types/react@18 - make tsc happy @sneridagh diff --git a/packages/volto/src/components/theme/SlotRenderer/SlotRenderer.tsx b/packages/volto/src/components/theme/SlotRenderer/SlotRenderer.tsx index 01c38318ba..40a4f9b298 100644 --- a/packages/volto/src/components/theme/SlotRenderer/SlotRenderer.tsx +++ b/packages/volto/src/components/theme/SlotRenderer/SlotRenderer.tsx @@ -25,7 +25,7 @@ const SlotRenderer = ({ // This is to cover the use case while adding a new content and we don't have // have the navRoot information in the initial content. This will be // useful for SlotRenderers rendered in the `Add` route. - navRoot: content?.['@components']?.navroot?.navroot || navRoot || {}, + navRoot: content?.['@components']?.navroot?.navroot || navRoot, }); if (!slots) { diff --git a/packages/volto/tsconfig.declarations.json b/packages/volto/tsconfig.declarations.json index 1e37bf5420..b91debf6c8 100644 --- a/packages/volto/tsconfig.declarations.json +++ b/packages/volto/tsconfig.declarations.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "lib": ["DOM", "DOM.Iterable", "ESNext"], "allowJs": true, "declaration": true, "emitDeclarationOnly": true, diff --git a/packages/volto/types/components/manage/Actions/Actions.d.ts b/packages/volto/types/components/manage/Actions/Actions.d.ts index 77c1e27919..8e311aefc1 100644 --- a/packages/volto/types/components/manage/Actions/Actions.d.ts +++ b/packages/volto/types/components/manage/Actions/Actions.d.ts @@ -1,5 +1,5 @@ export default Actions; -declare function Actions(props: any): JSX.Element; +declare function Actions(props: any): import("react/jsx-runtime").JSX.Element; declare namespace Actions { namespace propTypes { let pathname: any; diff --git a/packages/volto/types/components/manage/AnchorPlugin/components/Link/index.d.ts b/packages/volto/types/components/manage/AnchorPlugin/components/Link/index.d.ts index 810eaa8456..d84cec4e8d 100644 --- a/packages/volto/types/components/manage/AnchorPlugin/components/Link/index.d.ts +++ b/packages/volto/types/components/manage/AnchorPlugin/components/Link/index.d.ts @@ -5,7 +5,7 @@ declare function Link({ children, className, entityKey, getEditorState, target } entityKey: any; getEditorState: any; target: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace Link { export { propTypes }; export namespace defaultProps { diff --git a/packages/volto/types/components/manage/BlockChooser/BlockChooserButton.d.ts b/packages/volto/types/components/manage/BlockChooser/BlockChooserButton.d.ts index b708420d3a..9d3b75020a 100644 --- a/packages/volto/types/components/manage/BlockChooser/BlockChooserButton.d.ts +++ b/packages/volto/types/components/manage/BlockChooser/BlockChooserButton.d.ts @@ -1,3 +1,3 @@ -export function ButtonComponent(props: any): JSX.Element; +export function ButtonComponent(props: any): import("react/jsx-runtime").JSX.Element; export default BlockChooserButton; -declare function BlockChooserButton(props: any): JSX.Element; +declare function BlockChooserButton(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/BlockChooser/BlockChooserSearch.d.ts b/packages/volto/types/components/manage/BlockChooser/BlockChooserSearch.d.ts index bd4b04d431..e0ac44453b 100644 --- a/packages/volto/types/components/manage/BlockChooser/BlockChooserSearch.d.ts +++ b/packages/volto/types/components/manage/BlockChooser/BlockChooserSearch.d.ts @@ -2,4 +2,4 @@ export default BlockChooserSearch; declare function BlockChooserSearch({ onChange, searchValue }: { onChange: any; searchValue: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Block/BlocksForm.d.ts b/packages/volto/types/components/manage/Blocks/Block/BlocksForm.d.ts index fddf4c752d..25dc7990ab 100644 --- a/packages/volto/types/components/manage/Blocks/Block/BlocksForm.d.ts +++ b/packages/volto/types/components/manage/Blocks/Block/BlocksForm.d.ts @@ -1,2 +1,2 @@ export default BlocksForm; -declare function BlocksForm(props: any): JSX.Element; +declare function BlocksForm(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Block/DefaultEdit.d.ts b/packages/volto/types/components/manage/Blocks/Block/DefaultEdit.d.ts index 18e31c3e50..cfde4ffa16 100644 --- a/packages/volto/types/components/manage/Blocks/Block/DefaultEdit.d.ts +++ b/packages/volto/types/components/manage/Blocks/Block/DefaultEdit.d.ts @@ -1,2 +1,2 @@ export default DefaultBlockEdit; -declare function DefaultBlockEdit(props: any): JSX.Element; +declare function DefaultBlockEdit(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Block/DefaultView.d.ts b/packages/volto/types/components/manage/Blocks/Block/DefaultView.d.ts index 379dcc5c82..2612c5a099 100644 --- a/packages/volto/types/components/manage/Blocks/Block/DefaultView.d.ts +++ b/packages/volto/types/components/manage/Blocks/Block/DefaultView.d.ts @@ -1,2 +1,2 @@ export default DefaultBlockView; -declare function DefaultBlockView(props: any): JSX.Element; +declare function DefaultBlockView(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Block/Style.d.ts b/packages/volto/types/components/manage/Blocks/Block/Style.d.ts index 886af5a9dc..2aff129b19 100644 --- a/packages/volto/types/components/manage/Blocks/Block/Style.d.ts +++ b/packages/volto/types/components/manage/Blocks/Block/Style.d.ts @@ -2,4 +2,4 @@ export default function Style({ data, detached, children }: { data: any; detached: any; children: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Container/Data.d.ts b/packages/volto/types/components/manage/Blocks/Container/Data.d.ts index fd5a5bf559..eb1a2fb606 100644 --- a/packages/volto/types/components/manage/Blocks/Container/Data.d.ts +++ b/packages/volto/types/components/manage/Blocks/Container/Data.d.ts @@ -1,2 +1,2 @@ export default ContainerData; -declare function ContainerData(props: any): JSX.Element; +declare function ContainerData(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Container/Edit.d.ts b/packages/volto/types/components/manage/Blocks/Container/Edit.d.ts index 606f1688e6..7fc3d30b07 100644 --- a/packages/volto/types/components/manage/Blocks/Container/Edit.d.ts +++ b/packages/volto/types/components/manage/Blocks/Container/Edit.d.ts @@ -1,5 +1,5 @@ export default ContainerBlockEdit; -declare function ContainerBlockEdit(props: any): JSX.Element; +declare function ContainerBlockEdit(props: any): import("react/jsx-runtime").JSX.Element; declare namespace ContainerBlockEdit { namespace propTypes { let block: any; diff --git a/packages/volto/types/components/manage/Blocks/Container/EditBlockWrapper.d.ts b/packages/volto/types/components/manage/Blocks/Container/EditBlockWrapper.d.ts index 69041aebe3..9cb9178b07 100644 --- a/packages/volto/types/components/manage/Blocks/Container/EditBlockWrapper.d.ts +++ b/packages/volto/types/components/manage/Blocks/Container/EditBlockWrapper.d.ts @@ -1,2 +1,2 @@ export default EditBlockWrapper; -declare function EditBlockWrapper(props: any): JSX.Element; +declare function EditBlockWrapper(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Container/NewBlockAddButton.d.ts b/packages/volto/types/components/manage/Blocks/Container/NewBlockAddButton.d.ts index b18d1ee036..0fdbc4c288 100644 --- a/packages/volto/types/components/manage/Blocks/Container/NewBlockAddButton.d.ts +++ b/packages/volto/types/components/manage/Blocks/Container/NewBlockAddButton.d.ts @@ -1,2 +1,2 @@ export default NewBlockAddButton; -declare function NewBlockAddButton(props: any): JSX.Element; +declare function NewBlockAddButton(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Container/SimpleContainerToolbar.d.ts b/packages/volto/types/components/manage/Blocks/Container/SimpleContainerToolbar.d.ts index 9c25198862..b1f3ae0d33 100644 --- a/packages/volto/types/components/manage/Blocks/Container/SimpleContainerToolbar.d.ts +++ b/packages/volto/types/components/manage/Blocks/Container/SimpleContainerToolbar.d.ts @@ -1,2 +1,2 @@ export default SimpleContainerToolbar; -declare function SimpleContainerToolbar(props: any): JSX.Element; +declare function SimpleContainerToolbar(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Description/Edit.d.ts b/packages/volto/types/components/manage/Blocks/Description/Edit.d.ts index 5567b9e4e4..6b5e43f5ea 100644 --- a/packages/volto/types/components/manage/Blocks/Description/Edit.d.ts +++ b/packages/volto/types/components/manage/Blocks/Description/Edit.d.ts @@ -1,4 +1,4 @@ -export function DescriptionBlockEdit(props: any): JSX.Element; +export function DescriptionBlockEdit(props: any): import("react/jsx-runtime").JSX.Element; export namespace DescriptionBlockEdit { namespace propTypes { let properties: any; diff --git a/packages/volto/types/components/manage/Blocks/Description/View.d.ts b/packages/volto/types/components/manage/Blocks/Description/View.d.ts index a36f9dc643..809324a5dc 100644 --- a/packages/volto/types/components/manage/Blocks/Description/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/Description/View.d.ts @@ -2,7 +2,7 @@ export default DescriptionBlockView; declare function DescriptionBlockView({ properties, metadata }: { properties: any; metadata: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace DescriptionBlockView { namespace propTypes { let properties: any; diff --git a/packages/volto/types/components/manage/Blocks/Grid/Edit.d.ts b/packages/volto/types/components/manage/Blocks/Grid/Edit.d.ts index b29ba9b523..1657cb1037 100644 --- a/packages/volto/types/components/manage/Blocks/Grid/Edit.d.ts +++ b/packages/volto/types/components/manage/Blocks/Grid/Edit.d.ts @@ -1,5 +1,5 @@ export default GridBlockEdit; -declare function GridBlockEdit(props: any): JSX.Element; +declare function GridBlockEdit(props: any): import("react/jsx-runtime").JSX.Element; declare namespace GridBlockEdit { namespace propTypes { let block: any; diff --git a/packages/volto/types/components/manage/Blocks/Grid/View.d.ts b/packages/volto/types/components/manage/Blocks/Grid/View.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/manage/Blocks/Grid/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/Grid/View.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/manage/Blocks/HTML/View.d.ts b/packages/volto/types/components/manage/Blocks/HTML/View.d.ts index 811cc4e4ab..e3715690a5 100644 --- a/packages/volto/types/components/manage/Blocks/HTML/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/HTML/View.d.ts @@ -1,7 +1,7 @@ export default View; declare function View({ data }: { data: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace View { namespace propTypes { let data: any; diff --git a/packages/volto/types/components/manage/Blocks/HeroImageLeft/Data.d.ts b/packages/volto/types/components/manage/Blocks/HeroImageLeft/Data.d.ts index 1c765efcac..6478eae9f8 100644 --- a/packages/volto/types/components/manage/Blocks/HeroImageLeft/Data.d.ts +++ b/packages/volto/types/components/manage/Blocks/HeroImageLeft/Data.d.ts @@ -1,2 +1,2 @@ export default HeroImageLeftBlockData; -declare function HeroImageLeftBlockData(props: any): JSX.Element; +declare function HeroImageLeftBlockData(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/HeroImageLeft/View.d.ts b/packages/volto/types/components/manage/Blocks/HeroImageLeft/View.d.ts index 811cc4e4ab..e3715690a5 100644 --- a/packages/volto/types/components/manage/Blocks/HeroImageLeft/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/HeroImageLeft/View.d.ts @@ -1,7 +1,7 @@ export default View; declare function View({ data }: { data: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace View { namespace propTypes { let data: any; diff --git a/packages/volto/types/components/manage/Blocks/Image/ImageSidebar.d.ts b/packages/volto/types/components/manage/Blocks/Image/ImageSidebar.d.ts index 62859f904d..84c2689d2c 100644 --- a/packages/volto/types/components/manage/Blocks/Image/ImageSidebar.d.ts +++ b/packages/volto/types/components/manage/Blocks/Image/ImageSidebar.d.ts @@ -1,5 +1,5 @@ export default ImageSidebar; -declare function ImageSidebar(props: any): JSX.Element; +declare function ImageSidebar(props: any): import("react/jsx-runtime").JSX.Element; declare namespace ImageSidebar { namespace propTypes { let data: any; diff --git a/packages/volto/types/components/manage/Blocks/Image/View.d.ts b/packages/volto/types/components/manage/Blocks/Image/View.d.ts index 0deda5ac95..d028161a0f 100644 --- a/packages/volto/types/components/manage/Blocks/Image/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/Image/View.d.ts @@ -4,11 +4,11 @@ export function View({ className, data, detached, properties, style }: { detached: any; properties: any; style: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; export namespace View { namespace propTypes { let data: any; } } -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/manage/Blocks/Image/schema.d.ts b/packages/volto/types/components/manage/Blocks/Image/schema.d.ts index 0708b0bd6c..2e8e8a6cc3 100644 --- a/packages/volto/types/components/manage/Blocks/Image/schema.d.ts +++ b/packages/volto/types/components/manage/Blocks/Image/schema.d.ts @@ -10,7 +10,7 @@ export function ImageSchema({ formData, intl }: { properties: { alt: { title: any; - description: JSX.Element; + description: import("react/jsx-runtime").JSX.Element; }; align: { title: any; diff --git a/packages/volto/types/components/manage/Blocks/LeadImage/View.d.ts b/packages/volto/types/components/manage/Blocks/LeadImage/View.d.ts index 8e6e64ad89..72db2e37dc 100644 --- a/packages/volto/types/components/manage/Blocks/LeadImage/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/LeadImage/View.d.ts @@ -2,7 +2,7 @@ export default View; declare function View({ data, properties }: { data: any; properties: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace View { namespace propTypes { let data: any; diff --git a/packages/volto/types/components/manage/Blocks/Listing/DefaultNoResultsComponent.d.ts b/packages/volto/types/components/manage/Blocks/Listing/DefaultNoResultsComponent.d.ts index cb0fd8a86f..5a889cae37 100644 --- a/packages/volto/types/components/manage/Blocks/Listing/DefaultNoResultsComponent.d.ts +++ b/packages/volto/types/components/manage/Blocks/Listing/DefaultNoResultsComponent.d.ts @@ -1,2 +1,2 @@ export default DefaultNoResultsComponent; -declare function DefaultNoResultsComponent(props: any): JSX.Element; +declare function DefaultNoResultsComponent(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Listing/DefaultTemplate.d.ts b/packages/volto/types/components/manage/Blocks/Listing/DefaultTemplate.d.ts index 6384f0fe87..53faf69e3f 100644 --- a/packages/volto/types/components/manage/Blocks/Listing/DefaultTemplate.d.ts +++ b/packages/volto/types/components/manage/Blocks/Listing/DefaultTemplate.d.ts @@ -5,7 +5,7 @@ declare function DefaultTemplate({ headlineTag, items, linkTitle, linkHref, isEd linkTitle: any; linkHref: any; isEditMode: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace DefaultTemplate { namespace propTypes { let items: any; diff --git a/packages/volto/types/components/manage/Blocks/Listing/Edit.d.ts b/packages/volto/types/components/manage/Blocks/Listing/Edit.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/manage/Blocks/Listing/Edit.d.ts +++ b/packages/volto/types/components/manage/Blocks/Listing/Edit.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/manage/Blocks/Listing/GalleryNoResultsComponent.d.ts b/packages/volto/types/components/manage/Blocks/Listing/GalleryNoResultsComponent.d.ts index 2470f5e59e..750b1c3e02 100644 --- a/packages/volto/types/components/manage/Blocks/Listing/GalleryNoResultsComponent.d.ts +++ b/packages/volto/types/components/manage/Blocks/Listing/GalleryNoResultsComponent.d.ts @@ -1,2 +1,2 @@ export default GalleryNoResultsComponent; -declare function GalleryNoResultsComponent(props: any): JSX.Element; +declare function GalleryNoResultsComponent(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Listing/ImageGallery.d.ts b/packages/volto/types/components/manage/Blocks/Listing/ImageGallery.d.ts index c91d4ec76e..728b3ee2e3 100644 --- a/packages/volto/types/components/manage/Blocks/Listing/ImageGallery.d.ts +++ b/packages/volto/types/components/manage/Blocks/Listing/ImageGallery.d.ts @@ -1,7 +1,7 @@ export default ImageGalleryTemplate; declare function ImageGalleryTemplate({ items }: { items: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace ImageGalleryTemplate { namespace propTypes { let items: any; diff --git a/packages/volto/types/components/manage/Blocks/Listing/ListingData.d.ts b/packages/volto/types/components/manage/Blocks/Listing/ListingData.d.ts index a7ab09b034..6be849e5ca 100644 --- a/packages/volto/types/components/manage/Blocks/Listing/ListingData.d.ts +++ b/packages/volto/types/components/manage/Blocks/Listing/ListingData.d.ts @@ -1,5 +1,5 @@ export default ListingData; -declare function ListingData(props: any): JSX.Element; +declare function ListingData(props: any): import("react/jsx-runtime").JSX.Element; declare namespace ListingData { namespace propTypes { let data: any; diff --git a/packages/volto/types/components/manage/Blocks/Listing/SummaryTemplate.d.ts b/packages/volto/types/components/manage/Blocks/Listing/SummaryTemplate.d.ts index fbfe2c33ce..9db88cd48f 100644 --- a/packages/volto/types/components/manage/Blocks/Listing/SummaryTemplate.d.ts +++ b/packages/volto/types/components/manage/Blocks/Listing/SummaryTemplate.d.ts @@ -4,7 +4,7 @@ declare function SummaryTemplate({ items, linkTitle, linkHref, isEditMode }: { linkTitle: any; linkHref: any; isEditMode: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace SummaryTemplate { namespace propTypes { let items: any; diff --git a/packages/volto/types/components/manage/Blocks/Listing/View.d.ts b/packages/volto/types/components/manage/Blocks/Listing/View.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/manage/Blocks/Listing/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/Listing/View.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/manage/Blocks/Maps/Edit.d.ts b/packages/volto/types/components/manage/Blocks/Maps/Edit.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/manage/Blocks/Maps/Edit.d.ts +++ b/packages/volto/types/components/manage/Blocks/Maps/Edit.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/manage/Blocks/Maps/MapsSidebar.d.ts b/packages/volto/types/components/manage/Blocks/Maps/MapsSidebar.d.ts index ccfe2b82be..4954cb9a16 100644 --- a/packages/volto/types/components/manage/Blocks/Maps/MapsSidebar.d.ts +++ b/packages/volto/types/components/manage/Blocks/Maps/MapsSidebar.d.ts @@ -1,2 +1,2 @@ export default MapsSidebar; -declare function MapsSidebar(props: any): JSX.Element; +declare function MapsSidebar(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/SearchBlockEdit.d.ts b/packages/volto/types/components/manage/Blocks/Search/SearchBlockEdit.d.ts index 75a2378213..007d6061c3 100644 --- a/packages/volto/types/components/manage/Blocks/Search/SearchBlockEdit.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/SearchBlockEdit.d.ts @@ -1,5 +1,5 @@ declare const _default: { - (props: any): JSX.Element; + (props: any): import("react/jsx-runtime").JSX.Element; displayName: string; }; export default _default; diff --git a/packages/volto/types/components/manage/Blocks/Search/SearchBlockView.d.ts b/packages/volto/types/components/manage/Blocks/Search/SearchBlockView.d.ts index fc40c8cfb1..1ee3ce582a 100644 --- a/packages/volto/types/components/manage/Blocks/Search/SearchBlockView.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/SearchBlockView.d.ts @@ -1,6 +1,6 @@ -export const SearchBlockViewComponent: (props: any) => JSX.Element; +export const SearchBlockViewComponent: (props: any) => import("react/jsx-runtime").JSX.Element; declare const _default: { - (props: any): JSX.Element; + (props: any): import("react/jsx-runtime").JSX.Element; displayName: string; }; export default _default; diff --git a/packages/volto/types/components/manage/Blocks/Search/components/CheckboxFacet.d.ts b/packages/volto/types/components/manage/Blocks/Search/components/CheckboxFacet.d.ts index 661a093d38..90892b4b2a 100644 --- a/packages/volto/types/components/manage/Blocks/Search/components/CheckboxFacet.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/components/CheckboxFacet.d.ts @@ -3,7 +3,7 @@ export default CheckboxFacet; * A facet that uses radio/checkboxes to provide an explicit list of values for * filtering */ -declare function CheckboxFacet(props: any): JSX.Element; +declare function CheckboxFacet(props: any): import("react/jsx-runtime").JSX.Element; declare namespace CheckboxFacet { export { selectFacetSchemaEnhancer as schemaEnhancer }; export { selectFacetStateToValue as stateToValue }; diff --git a/packages/volto/types/components/manage/Blocks/Search/components/DateRangeFacetFilterListEntry.d.ts b/packages/volto/types/components/manage/Blocks/Search/components/DateRangeFacetFilterListEntry.d.ts index 8b22042e00..e0447144d8 100644 --- a/packages/volto/types/components/manage/Blocks/Search/components/DateRangeFacetFilterListEntry.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/components/DateRangeFacetFilterListEntry.d.ts @@ -1,2 +1,2 @@ export default DateRangeFacetFilterListEntry; -declare function DateRangeFacetFilterListEntry(props: any): JSX.Element; +declare function DateRangeFacetFilterListEntry(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/components/Facets.d.ts b/packages/volto/types/components/manage/Blocks/Search/components/Facets.d.ts index 103b3f2e9c..66d3330745 100644 --- a/packages/volto/types/components/manage/Blocks/Search/components/Facets.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/components/Facets.d.ts @@ -1,2 +1,2 @@ export default Facets; -declare function Facets(props: any): JSX.Element; +declare function Facets(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/components/FilterList.d.ts b/packages/volto/types/components/manage/Blocks/Search/components/FilterList.d.ts index c50517df4b..75e1a184b9 100644 --- a/packages/volto/types/components/manage/Blocks/Search/components/FilterList.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/components/FilterList.d.ts @@ -3,4 +3,4 @@ export default FilterList; * A list of active filtered values and controls to clear those filters. * */ -declare function FilterList(props: any): JSX.Element; +declare function FilterList(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/components/SearchDetails.d.ts b/packages/volto/types/components/manage/Blocks/Search/components/SearchDetails.d.ts index 9a8bcdafcc..af132ffb17 100644 --- a/packages/volto/types/components/manage/Blocks/Search/components/SearchDetails.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/components/SearchDetails.d.ts @@ -4,4 +4,4 @@ declare function SearchDetails({ total, text, as, data }: { text: any; as?: string; data: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/components/SearchInput.d.ts b/packages/volto/types/components/manage/Blocks/Search/components/SearchInput.d.ts index fa4f382fca..a99af447d8 100644 --- a/packages/volto/types/components/manage/Blocks/Search/components/SearchInput.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/components/SearchInput.d.ts @@ -1,2 +1,2 @@ export default SearchInput; -declare function SearchInput(props: any): JSX.Element; +declare function SearchInput(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/components/SelectFacetFilterListEntry.d.ts b/packages/volto/types/components/manage/Blocks/Search/components/SelectFacetFilterListEntry.d.ts index 9190848c64..92796718c2 100644 --- a/packages/volto/types/components/manage/Blocks/Search/components/SelectFacetFilterListEntry.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/components/SelectFacetFilterListEntry.d.ts @@ -1,2 +1,2 @@ export default SelectFacetFilterListEntry; -declare function SelectFacetFilterListEntry(props: any): JSX.Element; +declare function SelectFacetFilterListEntry(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/components/ToggleFacet.d.ts b/packages/volto/types/components/manage/Blocks/Search/components/ToggleFacet.d.ts index ba1d6296cb..1b3b67a3a4 100644 --- a/packages/volto/types/components/manage/Blocks/Search/components/ToggleFacet.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/components/ToggleFacet.d.ts @@ -1,5 +1,5 @@ export default ToggleFacet; -declare function ToggleFacet(props: any): JSX.Element; +declare function ToggleFacet(props: any): import("react/jsx-runtime").JSX.Element; declare namespace ToggleFacet { function stateToValue({ facetSettings, index, selectedValue }: { facetSettings: any; diff --git a/packages/volto/types/components/manage/Blocks/Search/components/ToggleFacetFilterListEntry.d.ts b/packages/volto/types/components/manage/Blocks/Search/components/ToggleFacetFilterListEntry.d.ts index 3317a1a676..dc844ea6eb 100644 --- a/packages/volto/types/components/manage/Blocks/Search/components/ToggleFacetFilterListEntry.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/components/ToggleFacetFilterListEntry.d.ts @@ -1,2 +1,2 @@ export default ToggleFacetFilterListEntry; -declare function ToggleFacetFilterListEntry(props: any): JSX.Element; +declare function ToggleFacetFilterListEntry(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/hocs/withQueryString.d.ts b/packages/volto/types/components/manage/Blocks/Search/hocs/withQueryString.d.ts index 91e8f3335e..5ee2325744 100644 --- a/packages/volto/types/components/manage/Blocks/Search/hocs/withQueryString.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/hocs/withQueryString.d.ts @@ -3,6 +3,6 @@ * */ export default function withQueryString(WrappedComponent: any): { - (props: any): JSX.Element; + (props: any): import("react/jsx-runtime").JSX.Element; displayName: string; }; diff --git a/packages/volto/types/components/manage/Blocks/Search/hocs/withSearch.d.ts b/packages/volto/types/components/manage/Blocks/Search/hocs/withSearch.d.ts index 7c114cb69b..1db7504417 100644 --- a/packages/volto/types/components/manage/Blocks/Search/hocs/withSearch.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/hocs/withSearch.d.ts @@ -1,5 +1,5 @@ export default withSearch; declare function withSearch(options: any): (WrappedComponent: any) => { - (props: any): JSX.Element; + (props: any): import("react/jsx-runtime").JSX.Element; displayName: string; }; diff --git a/packages/volto/types/components/manage/Blocks/Search/layout/LeftColumnFacets.d.ts b/packages/volto/types/components/manage/Blocks/Search/layout/LeftColumnFacets.d.ts index 80c9671bcd..dd046bbff8 100644 --- a/packages/volto/types/components/manage/Blocks/Search/layout/LeftColumnFacets.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/layout/LeftColumnFacets.d.ts @@ -1,2 +1,2 @@ export default LeftColumnFacets; -declare function LeftColumnFacets(props: any): JSX.Element; +declare function LeftColumnFacets(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/layout/RightColumnFacets.d.ts b/packages/volto/types/components/manage/Blocks/Search/layout/RightColumnFacets.d.ts index 235e14d335..eaa9b54140 100644 --- a/packages/volto/types/components/manage/Blocks/Search/layout/RightColumnFacets.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/layout/RightColumnFacets.d.ts @@ -1,2 +1,2 @@ export default RightColumnFacets; -declare function RightColumnFacets(props: any): JSX.Element; +declare function RightColumnFacets(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/layout/TopSideFacets.d.ts b/packages/volto/types/components/manage/Blocks/Search/layout/TopSideFacets.d.ts index 37cc7d2d23..9956120ba3 100644 --- a/packages/volto/types/components/manage/Blocks/Search/layout/TopSideFacets.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/layout/TopSideFacets.d.ts @@ -1,2 +1,2 @@ export default TopSideFacets; -declare function TopSideFacets(props: any): JSX.Element; +declare function TopSideFacets(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Search/utils.d.ts b/packages/volto/types/components/manage/Blocks/Search/utils.d.ts index dd00d96edc..d00a15a041 100644 --- a/packages/volto/types/components/manage/Blocks/Search/utils.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/utils.d.ts @@ -1,4 +1,4 @@ -export const NONVALUE_OPERATIONS: any; -export const DATE_OPERATIONS: any; +export const NONVALUE_OPERATIONS: Set; +export const DATE_OPERATIONS: Set; export function hasNonValueOperation(ops: any): boolean; export function hasDateOperation(ops: any): boolean; diff --git a/packages/volto/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts b/packages/volto/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts index 75a2378213..007d6061c3 100644 --- a/packages/volto/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts @@ -1,5 +1,5 @@ declare const _default: { - (props: any): JSX.Element; + (props: any): import("react/jsx-runtime").JSX.Element; displayName: string; }; export default _default; diff --git a/packages/volto/types/components/manage/Blocks/Table/Cell.d.ts b/packages/volto/types/components/manage/Blocks/Table/Cell.d.ts index c7d10c248a..71b4925159 100644 --- a/packages/volto/types/components/manage/Blocks/Table/Cell.d.ts +++ b/packages/volto/types/components/manage/Blocks/Table/Cell.d.ts @@ -1,3 +1,3 @@ export const Cell: any; export default Preloader; -declare function Preloader(props: any): JSX.Element; +declare function Preloader(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Table/View.d.ts b/packages/volto/types/components/manage/Blocks/Table/View.d.ts index 811cc4e4ab..e3715690a5 100644 --- a/packages/volto/types/components/manage/Blocks/Table/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/Table/View.d.ts @@ -1,7 +1,7 @@ export default View; declare function View({ data }: { data: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace View { namespace propTypes { let data: any; diff --git a/packages/volto/types/components/manage/Blocks/Teaser/Body.d.ts b/packages/volto/types/components/manage/Blocks/Teaser/Body.d.ts index fa865d2d16..12c4e597af 100644 --- a/packages/volto/types/components/manage/Blocks/Teaser/Body.d.ts +++ b/packages/volto/types/components/manage/Blocks/Teaser/Body.d.ts @@ -1,5 +1,5 @@ export default TeaserBody; -declare function TeaserBody(props: any): JSX.Element; +declare function TeaserBody(props: any): import("react/jsx-runtime").JSX.Element; declare namespace TeaserBody { namespace propTypes { let data: any; diff --git a/packages/volto/types/components/manage/Blocks/Teaser/Data.d.ts b/packages/volto/types/components/manage/Blocks/Teaser/Data.d.ts index cab26f7f03..e9309cdff3 100644 --- a/packages/volto/types/components/manage/Blocks/Teaser/Data.d.ts +++ b/packages/volto/types/components/manage/Blocks/Teaser/Data.d.ts @@ -1,2 +1,2 @@ export default TeaserData; -declare function TeaserData(props: any): JSX.Element; +declare function TeaserData(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Teaser/DefaultBody.d.ts b/packages/volto/types/components/manage/Blocks/Teaser/DefaultBody.d.ts index 94d12a45cd..53cf34d09f 100644 --- a/packages/volto/types/components/manage/Blocks/Teaser/DefaultBody.d.ts +++ b/packages/volto/types/components/manage/Blocks/Teaser/DefaultBody.d.ts @@ -1,5 +1,5 @@ export default TeaserDefaultTemplate; -declare function TeaserDefaultTemplate(props: any): JSX.Element; +declare function TeaserDefaultTemplate(props: any): import("react/jsx-runtime").JSX.Element; declare namespace TeaserDefaultTemplate { namespace propTypes { let data: any; diff --git a/packages/volto/types/components/manage/Blocks/Teaser/Edit.d.ts b/packages/volto/types/components/manage/Blocks/Teaser/Edit.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/manage/Blocks/Teaser/Edit.d.ts +++ b/packages/volto/types/components/manage/Blocks/Teaser/Edit.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/manage/Blocks/Teaser/View.d.ts b/packages/volto/types/components/manage/Blocks/Teaser/View.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/manage/Blocks/Teaser/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/Teaser/View.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/manage/Blocks/Text/Edit.d.ts b/packages/volto/types/components/manage/Blocks/Text/Edit.d.ts index 3bc249cd79..9e775cab1e 100644 --- a/packages/volto/types/components/manage/Blocks/Text/Edit.d.ts +++ b/packages/volto/types/components/manage/Blocks/Text/Edit.d.ts @@ -87,4 +87,4 @@ export class EditComponent extends React.Component { export const Edit: any; export default Preloader; import React from 'react'; -declare function Preloader(props: any): JSX.Element; +declare function Preloader(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Title/Edit.d.ts b/packages/volto/types/components/manage/Blocks/Title/Edit.d.ts index b4e4f3ae9e..2635413c69 100644 --- a/packages/volto/types/components/manage/Blocks/Title/Edit.d.ts +++ b/packages/volto/types/components/manage/Blocks/Title/Edit.d.ts @@ -1,4 +1,4 @@ -export function TitleBlockEdit(props: any): JSX.Element; +export function TitleBlockEdit(props: any): import("react/jsx-runtime").JSX.Element; export namespace TitleBlockEdit { namespace propTypes { let properties: any; diff --git a/packages/volto/types/components/manage/Blocks/Title/View.d.ts b/packages/volto/types/components/manage/Blocks/Title/View.d.ts index 5ba8f9436d..5bc9683dc3 100644 --- a/packages/volto/types/components/manage/Blocks/Title/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/Title/View.d.ts @@ -2,4 +2,4 @@ export default TitleBlockView; declare function TitleBlockView({ properties, metadata }: { properties: any; metadata: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/ToC/Edit.d.ts b/packages/volto/types/components/manage/Blocks/ToC/Edit.d.ts index 6153596aee..a8c57888ad 100644 --- a/packages/volto/types/components/manage/Blocks/ToC/Edit.d.ts +++ b/packages/volto/types/components/manage/Blocks/ToC/Edit.d.ts @@ -2,6 +2,6 @@ export default Edit; declare class Edit extends React.Component { constructor(props: any); constructor(props: any, context: any); - render(): JSX.Element; + render(): import("react/jsx-runtime").JSX.Element; } import React from 'react'; diff --git a/packages/volto/types/components/manage/Blocks/Video/Body.d.ts b/packages/volto/types/components/manage/Blocks/Video/Body.d.ts index 2f0bfb4cca..0c41d28cc4 100644 --- a/packages/volto/types/components/manage/Blocks/Video/Body.d.ts +++ b/packages/volto/types/components/manage/Blocks/Video/Body.d.ts @@ -2,7 +2,7 @@ export default Body; declare function Body({ data, isEditMode }: { data: any; isEditMode: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace Body { namespace propTypes { let data: any; diff --git a/packages/volto/types/components/manage/Blocks/Video/VideoSidebar.d.ts b/packages/volto/types/components/manage/Blocks/Video/VideoSidebar.d.ts index f7b30a67b7..944dc13ea0 100644 --- a/packages/volto/types/components/manage/Blocks/Video/VideoSidebar.d.ts +++ b/packages/volto/types/components/manage/Blocks/Video/VideoSidebar.d.ts @@ -1,2 +1,2 @@ export default VideoSidebar; -declare function VideoSidebar(props: any): JSX.Element; +declare function VideoSidebar(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Blocks/Video/View.d.ts b/packages/volto/types/components/manage/Blocks/Video/View.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/manage/Blocks/Video/View.d.ts +++ b/packages/volto/types/components/manage/Blocks/Video/View.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/manage/Contents/ContentsBreadcrumbs.d.ts b/packages/volto/types/components/manage/Contents/ContentsBreadcrumbs.d.ts index bd586a4c71..b19cb647d8 100644 --- a/packages/volto/types/components/manage/Contents/ContentsBreadcrumbs.d.ts +++ b/packages/volto/types/components/manage/Contents/ContentsBreadcrumbs.d.ts @@ -1,2 +1,2 @@ export default ContentsBreadcrumbs; -declare function ContentsBreadcrumbs(props: any): JSX.Element; +declare function ContentsBreadcrumbs(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Contents/ContentsBreadcrumbsHomeItem.d.ts b/packages/volto/types/components/manage/Contents/ContentsBreadcrumbsHomeItem.d.ts index 393066cad8..d0e6759ab6 100644 --- a/packages/volto/types/components/manage/Contents/ContentsBreadcrumbsHomeItem.d.ts +++ b/packages/volto/types/components/manage/Contents/ContentsBreadcrumbsHomeItem.d.ts @@ -1,2 +1,2 @@ export default ContentsBreadcrumbsHomeItem; -declare function ContentsBreadcrumbsHomeItem(): JSX.Element; +declare function ContentsBreadcrumbsHomeItem(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Contents/ContentsBreadcrumbsRootItem.d.ts b/packages/volto/types/components/manage/Contents/ContentsBreadcrumbsRootItem.d.ts index 6df2e5d52a..05053a5dc1 100644 --- a/packages/volto/types/components/manage/Contents/ContentsBreadcrumbsRootItem.d.ts +++ b/packages/volto/types/components/manage/Contents/ContentsBreadcrumbsRootItem.d.ts @@ -1,2 +1,2 @@ export default ContentsBreadcrumbsRootItem; -declare function ContentsBreadcrumbsRootItem(): JSX.Element; +declare function ContentsBreadcrumbsRootItem(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Contents/ContentsPropertiesModal.d.ts b/packages/volto/types/components/manage/Contents/ContentsPropertiesModal.d.ts index a6080a9bdb..95d25beaa6 100644 --- a/packages/volto/types/components/manage/Contents/ContentsPropertiesModal.d.ts +++ b/packages/volto/types/components/manage/Contents/ContentsPropertiesModal.d.ts @@ -1,5 +1,5 @@ export default ContentsPropertiesModal; -declare function ContentsPropertiesModal(props: any): JSX.Element; +declare function ContentsPropertiesModal(props: any): import("react/jsx-runtime").JSX.Element; declare namespace ContentsPropertiesModal { namespace propTypes { let items: any; diff --git a/packages/volto/types/components/manage/Contents/ContentsRenameModal.d.ts b/packages/volto/types/components/manage/Contents/ContentsRenameModal.d.ts index 9232b6860f..a97772cef6 100644 --- a/packages/volto/types/components/manage/Contents/ContentsRenameModal.d.ts +++ b/packages/volto/types/components/manage/Contents/ContentsRenameModal.d.ts @@ -1,5 +1,5 @@ export default ContentsRenameModal; -declare function ContentsRenameModal(props: any): JSX.Element; +declare function ContentsRenameModal(props: any): import("react/jsx-runtime").JSX.Element; declare namespace ContentsRenameModal { namespace propTypes { let items: any; diff --git a/packages/volto/types/components/manage/Contents/ContentsRenameModal.stories.d.ts b/packages/volto/types/components/manage/Contents/ContentsRenameModal.stories.d.ts index 8cc2689f6c..07df6b4394 100644 --- a/packages/volto/types/components/manage/Contents/ContentsRenameModal.stories.d.ts +++ b/packages/volto/types/components/manage/Contents/ContentsRenameModal.stories.d.ts @@ -2,7 +2,7 @@ export const ContentRenameModal: any; declare namespace _default { export let title: string; export { ContentRenameModal as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Contents/ContentsTagsModal.d.ts b/packages/volto/types/components/manage/Contents/ContentsTagsModal.d.ts index 2632d5601c..953ed2191b 100644 --- a/packages/volto/types/components/manage/Contents/ContentsTagsModal.d.ts +++ b/packages/volto/types/components/manage/Contents/ContentsTagsModal.d.ts @@ -1,5 +1,5 @@ export default ContentsTagsModal; -declare function ContentsTagsModal(props: any): JSX.Element; +declare function ContentsTagsModal(props: any): import("react/jsx-runtime").JSX.Element; declare namespace ContentsTagsModal { namespace propTypes { let items: any; diff --git a/packages/volto/types/components/manage/Contents/ContentsTagsModal.stories.d.ts b/packages/volto/types/components/manage/Contents/ContentsTagsModal.stories.d.ts index bfff4b4487..91d348395e 100644 --- a/packages/volto/types/components/manage/Contents/ContentsTagsModal.stories.d.ts +++ b/packages/volto/types/components/manage/Contents/ContentsTagsModal.stories.d.ts @@ -2,7 +2,7 @@ export const ContentTagsModal: any; declare namespace _default { export let title: string; export { ContentTagsModal as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace subjects { let context: string; diff --git a/packages/volto/types/components/manage/Contents/ContentsWorkflowModal.d.ts b/packages/volto/types/components/manage/Contents/ContentsWorkflowModal.d.ts index 40e759e6a8..8866079ace 100644 --- a/packages/volto/types/components/manage/Contents/ContentsWorkflowModal.d.ts +++ b/packages/volto/types/components/manage/Contents/ContentsWorkflowModal.d.ts @@ -1,5 +1,5 @@ export default ContentsWorkflowModal; -declare function ContentsWorkflowModal(props: any): JSX.Element; +declare function ContentsWorkflowModal(props: any): import("react/jsx-runtime").JSX.Element; declare namespace ContentsWorkflowModal { namespace propTypes { let items: any; diff --git a/packages/volto/types/components/manage/Contents/circle.d.ts b/packages/volto/types/components/manage/Contents/circle.d.ts index 0621a44855..95b7617047 100644 --- a/packages/volto/types/components/manage/Contents/circle.d.ts +++ b/packages/volto/types/components/manage/Contents/circle.d.ts @@ -1,4 +1,4 @@ export default Circle; declare function Circle({ color }: { color: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Controlpanels/Relations/BrokenRelations.d.ts b/packages/volto/types/components/manage/Controlpanels/Relations/BrokenRelations.d.ts index 6ca3d2467f..f629cfd05b 100644 --- a/packages/volto/types/components/manage/Controlpanels/Relations/BrokenRelations.d.ts +++ b/packages/volto/types/components/manage/Controlpanels/Relations/BrokenRelations.d.ts @@ -1,2 +1,2 @@ export default BrokenRelations; -declare function BrokenRelations(): JSX.Element; +declare function BrokenRelations(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Controlpanels/Relations/Relations.d.ts b/packages/volto/types/components/manage/Controlpanels/Relations/Relations.d.ts index b5a6ede4a0..0a857f79a2 100644 --- a/packages/volto/types/components/manage/Controlpanels/Relations/Relations.d.ts +++ b/packages/volto/types/components/manage/Controlpanels/Relations/Relations.d.ts @@ -1,2 +1,2 @@ export default RelationsControlPanel; -declare function RelationsControlPanel(): JSX.Element; +declare function RelationsControlPanel(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Controlpanels/Relations/RelationsListing.d.ts b/packages/volto/types/components/manage/Controlpanels/Relations/RelationsListing.d.ts index 4b1820b6eb..c2c6615fa8 100644 --- a/packages/volto/types/components/manage/Controlpanels/Relations/RelationsListing.d.ts +++ b/packages/volto/types/components/manage/Controlpanels/Relations/RelationsListing.d.ts @@ -5,4 +5,4 @@ declare function ListingTemplate({ relationtype, query_source, query_target, pot query_target: any; potential_sources_path: any; potential_targets_path: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts b/packages/volto/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts index aba4426b77..b44094f82f 100644 --- a/packages/volto/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts +++ b/packages/volto/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts @@ -10,13 +10,11 @@ declare const _default: { overlay: string; }) => void; closeObjectBrowser: () => void; - render(): JSX.Element; - context: any; + render(): import("react/jsx-runtime").JSX.Element; + context: unknown; setState(state: any, callback?: () => void): void; forceUpdate(callback?: () => void): void; - readonly props: Readonly & Readonly<{ - children?: any; - }>; + readonly props: Readonly; refs: { [key: string]: React.ReactInstance; }; diff --git a/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.d.ts b/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.d.ts index 6d1cd96ef0..05b323adca 100644 --- a/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.d.ts +++ b/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.d.ts @@ -1,2 +1,2 @@ export default UserGroupMembershipPanel; -declare function UserGroupMembershipPanel(): JSX.Element; +declare function UserGroupMembershipPanel(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipListing.d.ts b/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipListing.d.ts index cce3b7c1f4..368b7ccb47 100644 --- a/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipListing.d.ts +++ b/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipListing.d.ts @@ -6,4 +6,4 @@ declare function ListingTemplate({ query_user, query_group, groups_filter, add_j add_joined_groups: any; many_users: any; many_groups: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.d.ts b/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.d.ts index 669df49fdc..be29de3095 100644 --- a/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.d.ts +++ b/packages/volto/types/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.d.ts @@ -2,4 +2,4 @@ export default UserGroupMembershipMatrix; declare function UserGroupMembershipMatrix({ many_users, many_groups }: { many_users: any; many_groups: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Controlpanels/VersionOverview.d.ts b/packages/volto/types/components/manage/Controlpanels/VersionOverview.d.ts index ecfac85604..3cb086cbc1 100644 --- a/packages/volto/types/components/manage/Controlpanels/VersionOverview.d.ts +++ b/packages/volto/types/components/manage/Controlpanels/VersionOverview.d.ts @@ -7,4 +7,4 @@ declare function VersionOverview({ cmf_version, debug_mode, pil_version, plone_v plone_restapi_version: any; python_version: any; zope_version: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Delete/Delete.d.ts b/packages/volto/types/components/manage/Delete/Delete.d.ts index 841779b34e..90c7a3f6de 100644 --- a/packages/volto/types/components/manage/Delete/Delete.d.ts +++ b/packages/volto/types/components/manage/Delete/Delete.d.ts @@ -1,2 +1,2 @@ export default Delete; -declare function Delete(): JSX.Element; +declare function Delete(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Form/BlockDataForm.d.ts b/packages/volto/types/components/manage/Form/BlockDataForm.d.ts index 9a53a710b6..9f559016b2 100644 --- a/packages/volto/types/components/manage/Form/BlockDataForm.d.ts +++ b/packages/volto/types/components/manage/Form/BlockDataForm.d.ts @@ -1 +1 @@ -export default function BlockDataForm(props: any): JSX.Element; +export default function BlockDataForm(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Form/BlocksToolbar.d.ts b/packages/volto/types/components/manage/Form/BlocksToolbar.d.ts index 440c3b8d44..69b46de1e1 100644 --- a/packages/volto/types/components/manage/Form/BlocksToolbar.d.ts +++ b/packages/volto/types/components/manage/Form/BlocksToolbar.d.ts @@ -8,7 +8,7 @@ export class BlocksToolbarComponent extends React.Component { setBlocksClipboard(actionType: any): void; componentDidMount(): void; componentWillUnmount(): void; - render(): JSX.Element; + render(): import("react/jsx-runtime").JSX.Element; } declare const _default: React.ForwardRefExoticComponent>, "ref"> & React.RefAttributes>>> & { WrappedComponent: React.ComponentType>; diff --git a/packages/volto/types/components/manage/Form/UndoToolbar.d.ts b/packages/volto/types/components/manage/Form/UndoToolbar.d.ts index e1d4bba82d..ebfd28eb54 100644 --- a/packages/volto/types/components/manage/Form/UndoToolbar.d.ts +++ b/packages/volto/types/components/manage/Form/UndoToolbar.d.ts @@ -4,4 +4,4 @@ declare function UndoToolbar({ state, onUndoRedo, maxUndoLevels, enableHotKeys } onUndoRedo: any; maxUndoLevels: any; enableHotKeys: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/LinkDetectionPlugin/link-detection-plugin.d.ts b/packages/volto/types/components/manage/LinkDetectionPlugin/link-detection-plugin.d.ts index 4d4174cc2c..ab90e36240 100644 --- a/packages/volto/types/components/manage/LinkDetectionPlugin/link-detection-plugin.d.ts +++ b/packages/volto/types/components/manage/LinkDetectionPlugin/link-detection-plugin.d.ts @@ -5,7 +5,7 @@ export default createLinkDetectionPlugin; declare function createLinkDetectionPlugin(): { decorators: { strategy: (contentBlock: any, callback: any, contentState: any) => void; - component: (props: any) => JSX.Element; + component: (props: any) => import("react/jsx-runtime").JSX.Element; }[]; onChange: (editorState: any) => any; }; diff --git a/packages/volto/types/components/manage/LinkMore/LinkMore.d.ts b/packages/volto/types/components/manage/LinkMore/LinkMore.d.ts index 07c9912634..341a5cdd9b 100644 --- a/packages/volto/types/components/manage/LinkMore/LinkMore.d.ts +++ b/packages/volto/types/components/manage/LinkMore/LinkMore.d.ts @@ -2,7 +2,7 @@ export default LinkMore; declare function LinkMore({ data, isEditMode }: { data: any; isEditMode: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace LinkMore { namespace propTypes { let data: any; diff --git a/packages/volto/types/components/manage/LinksToItem/LinksToItem.d.ts b/packages/volto/types/components/manage/LinksToItem/LinksToItem.d.ts index 5de18c2f62..d4d2fa8cec 100644 --- a/packages/volto/types/components/manage/LinksToItem/LinksToItem.d.ts +++ b/packages/volto/types/components/manage/LinksToItem/LinksToItem.d.ts @@ -1,3 +1,3 @@ -export function __test__(props: any): JSX.Element; +export function __test__(props: any): import("react/jsx-runtime").JSX.Element; declare const _default: any; export default _default; diff --git a/packages/volto/types/components/manage/Messages/Messages.d.ts b/packages/volto/types/components/manage/Messages/Messages.d.ts index cbf65e0258..69e00e4cd5 100644 --- a/packages/volto/types/components/manage/Messages/Messages.d.ts +++ b/packages/volto/types/components/manage/Messages/Messages.d.ts @@ -1,2 +1,2 @@ export default Messages; -declare function Messages(): JSX.Element; +declare function Messages(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Multilingual/CreateTranslation.d.ts b/packages/volto/types/components/manage/Multilingual/CreateTranslation.d.ts index 45a528c3c6..06ce9eb72c 100644 --- a/packages/volto/types/components/manage/Multilingual/CreateTranslation.d.ts +++ b/packages/volto/types/components/manage/Multilingual/CreateTranslation.d.ts @@ -1,2 +1,2 @@ export default CreateTranslation; -declare function CreateTranslation(props: any): JSX.Element; +declare function CreateTranslation(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Multilingual/ManageTranslations.d.ts b/packages/volto/types/components/manage/Multilingual/ManageTranslations.d.ts index aba4426b77..b44094f82f 100644 --- a/packages/volto/types/components/manage/Multilingual/ManageTranslations.d.ts +++ b/packages/volto/types/components/manage/Multilingual/ManageTranslations.d.ts @@ -10,13 +10,11 @@ declare const _default: { overlay: string; }) => void; closeObjectBrowser: () => void; - render(): JSX.Element; - context: any; + render(): import("react/jsx-runtime").JSX.Element; + context: unknown; setState(state: any, callback?: () => void): void; forceUpdate(callback?: () => void): void; - readonly props: Readonly & Readonly<{ - children?: any; - }>; + readonly props: Readonly; refs: { [key: string]: React.ReactInstance; }; diff --git a/packages/volto/types/components/manage/Multilingual/TranslationObject.d.ts b/packages/volto/types/components/manage/Multilingual/TranslationObject.d.ts index 1092a73e7b..1d4a873341 100644 --- a/packages/volto/types/components/manage/Multilingual/TranslationObject.d.ts +++ b/packages/volto/types/components/manage/Multilingual/TranslationObject.d.ts @@ -6,4 +6,4 @@ declare function TranslationObject({ translationObject, schema, pathname, visual visual: any; isFormSelected: any; onSelectForm: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Pluggable/Pluggable.stories.d.ts b/packages/volto/types/components/manage/Pluggable/Pluggable.stories.d.ts index f75f97e158..48f25ed176 100644 --- a/packages/volto/types/components/manage/Pluggable/Pluggable.stories.d.ts +++ b/packages/volto/types/components/manage/Pluggable/Pluggable.stories.d.ts @@ -4,12 +4,12 @@ declare namespace _default { export namespace parameters { let componentSubtitle: string; namespace docs { - function page(): JSX.Element; + function page(): import("react/jsx-runtime").JSX.Element; } } } export default _default; -export function Simple(args: any): JSX.Element; +export function Simple(args: any): import("react/jsx-runtime").JSX.Element; export namespace Simple { export namespace parameters_1 { export namespace docs_1 { @@ -24,7 +24,7 @@ export namespace Simple { } export { parameters_1 as parameters }; } -export function Override(args: any): JSX.Element; +export function Override(args: any): import("react/jsx-runtime").JSX.Element; export namespace Override { export namespace parameters_2 { export namespace docs_2 { @@ -43,7 +43,7 @@ export namespace Override { } export { parameters_2 as parameters }; } -export function UsingCreatePluggableAndPlug(args: any): JSX.Element; +export function UsingCreatePluggableAndPlug(args: any): import("react/jsx-runtime").JSX.Element; export namespace UsingCreatePluggableAndPlug { export let storyName: string; export namespace parameters_3 { diff --git a/packages/volto/types/components/manage/Pluggable/index.d.ts b/packages/volto/types/components/manage/Pluggable/index.d.ts index 0af947673f..6fe9e30e58 100644 --- a/packages/volto/types/components/manage/Pluggable/index.d.ts +++ b/packages/volto/types/components/manage/Pluggable/index.d.ts @@ -14,7 +14,13 @@ export function createPluggable(name: any): { (props: any): React.FunctionComponentElement; pluggableName: any; Plug: { - (props: any): React.FunctionComponentElement; + (props: any): React.FunctionComponentElement<{ + [x: string]: any; + pluggable: any; + id: any; + dependencies?: any[]; + children: any; + }>; displayName: string; }; }; @@ -25,11 +31,23 @@ export function createPluggableAndPlug(name: any): ({ (props: any): React.FunctionComponentElement; pluggableName: any; Plug: { - (props: any): React.FunctionComponentElement; + (props: any): React.FunctionComponentElement<{ + [x: string]: any; + pluggable: any; + id: any; + dependencies?: any[]; + children: any; + }>; displayName: string; }; } | { - (props: any): React.FunctionComponentElement; + (props: any): React.FunctionComponentElement<{ + [x: string]: any; + pluggable: any; + id: any; + dependencies?: any[]; + children: any; + }>; displayName: string; })[]; export const context: React.Context; diff --git a/packages/volto/types/components/manage/Sidebar/AlignBlock.d.ts b/packages/volto/types/components/manage/Sidebar/AlignBlock.d.ts index b1cba1ee04..bec54b68c7 100644 --- a/packages/volto/types/components/manage/Sidebar/AlignBlock.d.ts +++ b/packages/volto/types/components/manage/Sidebar/AlignBlock.d.ts @@ -5,4 +5,4 @@ declare function AlignBlock({ align, onChangeBlock, data, block, actions, }: { data: any; block: any; actions?: string[]; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Sidebar/ObjectBrowser.d.ts b/packages/volto/types/components/manage/Sidebar/ObjectBrowser.d.ts index 9e7ff17f67..6ed8b67c57 100644 --- a/packages/volto/types/components/manage/Sidebar/ObjectBrowser.d.ts +++ b/packages/volto/types/components/manage/Sidebar/ObjectBrowser.d.ts @@ -38,13 +38,11 @@ declare function withObjectBrowser(WrappedComponent: any): { overlay: string; }) => void; closeObjectBrowser: () => void; - render(): JSX.Element; - context: any; + render(): import("react/jsx-runtime").JSX.Element; + context: unknown; setState(state: any, callback?: () => void): void; forceUpdate(callback?: () => void): void; - readonly props: Readonly & Readonly<{ - children?: any; - }>; + readonly props: Readonly; refs: { [key: string]: React.ReactInstance; }; diff --git a/packages/volto/types/components/manage/Sidebar/ObjectBrowserNav.d.ts b/packages/volto/types/components/manage/Sidebar/ObjectBrowserNav.d.ts index e3853462ba..bfe26a183e 100644 --- a/packages/volto/types/components/manage/Sidebar/ObjectBrowserNav.d.ts +++ b/packages/volto/types/components/manage/Sidebar/ObjectBrowserNav.d.ts @@ -7,4 +7,4 @@ declare function ObjectBrowserNav({ currentSearchResults, selected, handleClickO mode: any; navigateTo: any; isSelectable: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Sidebar/SidebarPopup.d.ts b/packages/volto/types/components/manage/Sidebar/SidebarPopup.d.ts index d39acdd6ed..ef777e0a10 100644 --- a/packages/volto/types/components/manage/Sidebar/SidebarPopup.d.ts +++ b/packages/volto/types/components/manage/Sidebar/SidebarPopup.d.ts @@ -1,5 +1,5 @@ export default SidebarPopup; -declare function SidebarPopup(props: any): JSX.Element; +declare function SidebarPopup(props: any): import("react/jsx-runtime").JSX.Element; declare namespace SidebarPopup { namespace propTypes { let open: any; diff --git a/packages/volto/types/components/manage/Sidebar/SidebarPortal.d.ts b/packages/volto/types/components/manage/Sidebar/SidebarPortal.d.ts index 3ea415b1b3..f1bb5efeec 100644 --- a/packages/volto/types/components/manage/Sidebar/SidebarPortal.d.ts +++ b/packages/volto/types/components/manage/Sidebar/SidebarPortal.d.ts @@ -6,10 +6,11 @@ export default SidebarPortal; * @param {string} tab Element id where to insert sidebar content, default: sidebar-properties * @returns {string} Rendered sidebar */ -declare function SidebarPortal({ children, selected, tab }: any): string; +declare function SidebarPortal({ children, selected, tab }: React.ReactNode): string; declare namespace SidebarPortal { namespace propTypes { let children: any; let selected: any; } } +import React from 'react'; diff --git a/packages/volto/types/components/manage/TemplateChooser/TemplateChooser.d.ts b/packages/volto/types/components/manage/TemplateChooser/TemplateChooser.d.ts index 90c3bd2e5f..f1eea6f424 100644 --- a/packages/volto/types/components/manage/TemplateChooser/TemplateChooser.d.ts +++ b/packages/volto/types/components/manage/TemplateChooser/TemplateChooser.d.ts @@ -2,7 +2,7 @@ export default TemplateChooser; declare function TemplateChooser({ templates, onSelectTemplate }: { templates: any; onSelectTemplate: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace TemplateChooser { namespace propTypes { let templates: any; diff --git a/packages/volto/types/components/manage/TextLineEdit/TextLineEdit.d.ts b/packages/volto/types/components/manage/TextLineEdit/TextLineEdit.d.ts index 18311ab618..eb484c9a02 100644 --- a/packages/volto/types/components/manage/TextLineEdit/TextLineEdit.d.ts +++ b/packages/volto/types/components/manage/TextLineEdit/TextLineEdit.d.ts @@ -1,4 +1,4 @@ -export function TextLineEdit(props: any): JSX.Element; +export function TextLineEdit(props: any): import("react/jsx-runtime").JSX.Element; export namespace TextLineEdit { namespace propTypes { let properties: any; diff --git a/packages/volto/types/components/manage/TextLineEdit/TextLineEdit.stories.d.ts b/packages/volto/types/components/manage/TextLineEdit/TextLineEdit.stories.d.ts index 9ad6a0f86c..8127de1251 100644 --- a/packages/volto/types/components/manage/TextLineEdit/TextLineEdit.stories.d.ts +++ b/packages/volto/types/components/manage/TextLineEdit/TextLineEdit.stories.d.ts @@ -10,7 +10,7 @@ export const H3: any; declare namespace _default { export let title: string; export { TextLineEdit as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Toast/Toast.d.ts b/packages/volto/types/components/manage/Toast/Toast.d.ts index acb5f06d85..4b4bbc6dd4 100644 --- a/packages/volto/types/components/manage/Toast/Toast.d.ts +++ b/packages/volto/types/components/manage/Toast/Toast.d.ts @@ -1,5 +1,5 @@ export default Toast; -declare function Toast(props: any): JSX.Element; +declare function Toast(props: any): import("react/jsx-runtime").JSX.Element; declare namespace Toast { namespace propTypes { let title: any; diff --git a/packages/volto/types/components/manage/Toolbar/PersonalTools.d.ts b/packages/volto/types/components/manage/Toolbar/PersonalTools.d.ts index 84e822fd5b..c1ec453a22 100644 --- a/packages/volto/types/components/manage/Toolbar/PersonalTools.d.ts +++ b/packages/volto/types/components/manage/Toolbar/PersonalTools.d.ts @@ -1,5 +1,5 @@ export default PersonalTools; -declare function PersonalTools(props: any): JSX.Element; +declare function PersonalTools(props: any): import("react/jsx-runtime").JSX.Element; declare namespace PersonalTools { namespace propTypes { let loadComponent: any; diff --git a/packages/volto/types/components/manage/Toolbar/StandardWrapper.d.ts b/packages/volto/types/components/manage/Toolbar/StandardWrapper.d.ts index e5b990efea..a36566e188 100644 --- a/packages/volto/types/components/manage/Toolbar/StandardWrapper.d.ts +++ b/packages/volto/types/components/manage/Toolbar/StandardWrapper.d.ts @@ -1,5 +1,5 @@ export default StandardWrapper; -declare function StandardWrapper(props: any): JSX.Element; +declare function StandardWrapper(props: any): import("react/jsx-runtime").JSX.Element; declare namespace StandardWrapper { namespace propTypes { let componentName: any; diff --git a/packages/volto/types/components/manage/Toolbar/Stats.d.ts b/packages/volto/types/components/manage/Toolbar/Stats.d.ts index a2fb9af00d..c1094cc0c0 100644 --- a/packages/volto/types/components/manage/Toolbar/Stats.d.ts +++ b/packages/volto/types/components/manage/Toolbar/Stats.d.ts @@ -1,2 +1,2 @@ export default Stats; -declare function Stats(): JSX.Element; +declare function Stats(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/UniversalLink/UniversalLink.d.ts b/packages/volto/types/components/manage/UniversalLink/UniversalLink.d.ts index 8577034cca..2120b4f9f4 100644 --- a/packages/volto/types/components/manage/UniversalLink/UniversalLink.d.ts +++ b/packages/volto/types/components/manage/UniversalLink/UniversalLink.d.ts @@ -8,7 +8,7 @@ declare function UniversalLink({ href, item, openLinkInNewTab, download, childre children: any; className?: any; title?: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace UniversalLink { namespace propTypes { let href: any; diff --git a/packages/volto/types/components/manage/Widgets/AlignWidget.d.ts b/packages/volto/types/components/manage/Widgets/AlignWidget.d.ts index dde4b406cd..84953a3b87 100644 --- a/packages/volto/types/components/manage/Widgets/AlignWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/AlignWidget.d.ts @@ -9,4 +9,4 @@ export function defaultActionsInfo({ intl }: { full: any[]; }; export default AlignWidget; -declare function AlignWidget(props: any): JSX.Element; +declare function AlignWidget(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Widgets/AlignWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/AlignWidget.stories.d.ts index a7451d904f..a42e08ed87 100644 --- a/packages/volto/types/components/manage/Widgets/AlignWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/AlignWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Align: any; declare namespace _default { export let title: string; export { AlignWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace actions { let control: string; diff --git a/packages/volto/types/components/manage/Widgets/ArrayWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/ArrayWidget.stories.d.ts index 9ebb58baa5..6d14e8ea5c 100644 --- a/packages/volto/types/components/manage/Widgets/ArrayWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/ArrayWidget.stories.d.ts @@ -12,7 +12,7 @@ export const ManyOptions500: any; declare namespace _default { export let title: string; export { ArrayWidgetComponent as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace value { namespace control { diff --git a/packages/volto/types/components/manage/Widgets/ButtonsWidget.d.ts b/packages/volto/types/components/manage/Widgets/ButtonsWidget.d.ts index 628a3744ca..d1e7e44986 100644 --- a/packages/volto/types/components/manage/Widgets/ButtonsWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/ButtonsWidget.d.ts @@ -1,2 +1,2 @@ export default ButtonsWidget; -declare function ButtonsWidget(props: any): JSX.Element; +declare function ButtonsWidget(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Widgets/ButtonsWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/ButtonsWidget.stories.d.ts index bd928ec306..86cc013055 100644 --- a/packages/volto/types/components/manage/Widgets/ButtonsWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/ButtonsWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Buttons: any; declare namespace _default { export let title: string; export { ButtonsWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace actions { let control: string; diff --git a/packages/volto/types/components/manage/Widgets/CheckboxWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/CheckboxWidget.stories.d.ts index 3f4f120eb6..4dff287afb 100644 --- a/packages/volto/types/components/manage/Widgets/CheckboxWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/CheckboxWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Checkbox: any; declare namespace _default { export let title: string; export { CheckboxWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/ColorPickerWidget.d.ts b/packages/volto/types/components/manage/Widgets/ColorPickerWidget.d.ts index 32bb3e2b0e..7b7486894b 100644 --- a/packages/volto/types/components/manage/Widgets/ColorPickerWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/ColorPickerWidget.d.ts @@ -1,4 +1,3 @@ -/// type Color = { name: string; label: string; @@ -19,5 +18,5 @@ export type ColorPickerWidgetProps = { onChange: (id: string, value: any) => void; colors: Color[]; }; -declare const ColorPickerWidget: (props: ColorPickerWidgetProps) => JSX.Element; +declare const ColorPickerWidget: (props: ColorPickerWidgetProps) => import("react/jsx-runtime").JSX.Element; export default ColorPickerWidget; diff --git a/packages/volto/types/components/manage/Widgets/DatetimeWidget.d.ts b/packages/volto/types/components/manage/Widgets/DatetimeWidget.d.ts index daf6034167..2d758f99e5 100644 --- a/packages/volto/types/components/manage/Widgets/DatetimeWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/DatetimeWidget.d.ts @@ -49,7 +49,7 @@ export class DatetimeWidgetComponent extends React.Component { * @returns {undefined} */ onFocusChange: ({ focused }: boolean) => undefined; - render(): JSX.Element; + render(): import("react/jsx-runtime").JSX.Element; } export namespace DatetimeWidgetComponent { namespace propTypes { diff --git a/packages/volto/types/components/manage/Widgets/DatetimeWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/DatetimeWidget.stories.d.ts index 1595d2b81d..4b1343e87e 100644 --- a/packages/volto/types/components/manage/Widgets/DatetimeWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/DatetimeWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Datetime: any; declare namespace _default { export let title: string; export { DatetimeWidgetComponent as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/EmailWidget.d.ts b/packages/volto/types/components/manage/Widgets/EmailWidget.d.ts index b6cb96ce3a..46bd853629 100644 --- a/packages/volto/types/components/manage/Widgets/EmailWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/EmailWidget.d.ts @@ -10,7 +10,7 @@ export default EmailWidget; * } * ``` */ -declare function EmailWidget(props: any): JSX.Element; +declare function EmailWidget(props: any): import("react/jsx-runtime").JSX.Element; declare namespace EmailWidget { namespace propTypes { let id: any; diff --git a/packages/volto/types/components/manage/Widgets/EmailWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/EmailWidget.stories.d.ts index 807265ceba..be277628eb 100644 --- a/packages/volto/types/components/manage/Widgets/EmailWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/EmailWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Email: any; declare namespace _default { export let title: string; export { EmailWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/FileWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/FileWidget.stories.d.ts index a2f5fc9a3c..f7f107aad8 100644 --- a/packages/volto/types/components/manage/Widgets/FileWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/FileWidget.stories.d.ts @@ -2,7 +2,7 @@ export const File: any; declare namespace _default { export let title: string; export { FileWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/FormFieldWrapper.stories.d.ts b/packages/volto/types/components/manage/Widgets/FormFieldWrapper.stories.d.ts index 3c001ea65b..be1adf045c 100644 --- a/packages/volto/types/components/manage/Widgets/FormFieldWrapper.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/FormFieldWrapper.stories.d.ts @@ -7,7 +7,7 @@ export const OnEdit: any; declare namespace _default { export let title: string; export { Default as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/IdWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/IdWidget.stories.d.ts index 6e34382e46..81d0f7531e 100644 --- a/packages/volto/types/components/manage/Widgets/IdWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/IdWidget.stories.d.ts @@ -3,7 +3,7 @@ export const Errored: any; declare namespace _default { export let title: string; export { IdWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/ImageSizeWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/ImageSizeWidget.stories.d.ts index 21b74b6545..87fac05eb4 100644 --- a/packages/volto/types/components/manage/Widgets/ImageSizeWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/ImageSizeWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Text: any; declare namespace _default { export let title: string; export { ImageSizeWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/InternalUrlWidget.d.ts b/packages/volto/types/components/manage/Widgets/InternalUrlWidget.d.ts index ef45424ffc..0531e1ed0f 100644 --- a/packages/volto/types/components/manage/Widgets/InternalUrlWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/InternalUrlWidget.d.ts @@ -1,4 +1,4 @@ -export function InternalUrlWidget(props: any): JSX.Element; +export function InternalUrlWidget(props: any): import("react/jsx-runtime").JSX.Element; export namespace InternalUrlWidget { namespace propTypes { let id: any; @@ -48,13 +48,11 @@ declare const _default: { overlay: string; }) => void; closeObjectBrowser: () => void; - render(): JSX.Element; - context: any; + render(): import("react/jsx-runtime").JSX.Element; + context: unknown; setState(state: any, callback?: () => void): void; forceUpdate(callback?: () => void): void; - readonly props: Readonly & Readonly<{ - children?: any; - }>; + readonly props: Readonly; refs: { [key: string]: React.ReactInstance; }; diff --git a/packages/volto/types/components/manage/Widgets/InternalUrlWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/InternalUrlWidget.stories.d.ts index 8c22faf76c..0835b6560b 100644 --- a/packages/volto/types/components/manage/Widgets/InternalUrlWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/InternalUrlWidget.stories.d.ts @@ -6,7 +6,7 @@ export const CustomLength: any; declare namespace _default { export let title: string; export { Default as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/NumberWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/NumberWidget.stories.d.ts index 598bf7c8f4..18642bc581 100644 --- a/packages/volto/types/components/manage/Widgets/NumberWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/NumberWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Number: any; declare namespace _default { export let title: string; export { NumberWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/ObjectBrowserWidget.d.ts b/packages/volto/types/components/manage/Widgets/ObjectBrowserWidget.d.ts index 3d325301d1..da0a901937 100644 --- a/packages/volto/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/ObjectBrowserWidget.d.ts @@ -46,7 +46,7 @@ export class ObjectBrowserWidgetComponent extends React.Component }; selectedItemsRef: React.RefObject; placeholderRef: React.RefObject; - renderLabel(item: any): JSX.Element; + renderLabel(item: any): import("react/jsx-runtime").JSX.Element; removeItem: (item: any) => void; onChange: (item: any) => void; onManualLinkInput: (e: any) => void; diff --git a/packages/volto/types/components/manage/Widgets/ObjectBrowserWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/ObjectBrowserWidget.stories.d.ts index 261cd5f594..2558b941ba 100644 --- a/packages/volto/types/components/manage/Widgets/ObjectBrowserWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/ObjectBrowserWidget.stories.d.ts @@ -63,14 +63,14 @@ declare namespace _default { } } export { OBC as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let excludeStories: string[]; } export default _default; -export function Connected(): JSX.Element; -export function SingleElement(): JSX.Element; -export function Placeholder(): JSX.Element; -export function Image(): JSX.Element; -export function InitalPath(): JSX.Element; -export function SelectableType(): JSX.Element; +export function Connected(): import("react/jsx-runtime").JSX.Element; +export function SingleElement(): import("react/jsx-runtime").JSX.Element; +export function Placeholder(): import("react/jsx-runtime").JSX.Element; +export function Image(): import("react/jsx-runtime").JSX.Element; +export function InitalPath(): import("react/jsx-runtime").JSX.Element; +export function SelectableType(): import("react/jsx-runtime").JSX.Element; import { ObjectBrowserWidgetComponent as OBC } from './ObjectBrowserWidget'; diff --git a/packages/volto/types/components/manage/Widgets/ObjectListWidget.d.ts b/packages/volto/types/components/manage/Widgets/ObjectListWidget.d.ts index c09f1282a1..e351e0a90b 100644 --- a/packages/volto/types/components/manage/Widgets/ObjectListWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/ObjectListWidget.d.ts @@ -27,4 +27,4 @@ export default ObjectListWidget; * }, * ``` */ -declare function ObjectListWidget(props: any): JSX.Element; +declare function ObjectListWidget(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Widgets/ObjectListWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/ObjectListWidget.stories.d.ts index f89c879bce..6a420f2843 100644 --- a/packages/volto/types/components/manage/Widgets/ObjectListWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/ObjectListWidget.stories.d.ts @@ -1,7 +1,7 @@ export const Default: any; export const MultipleFieldsets: any; export const DefaultValues: any; -export function SchemaExtender(args: any): JSX.Element; +export function SchemaExtender(args: any): import("react/jsx-runtime").JSX.Element; export namespace SchemaExtender { namespace args { export { defaultSchema as schema }; @@ -11,7 +11,7 @@ export namespace SchemaExtender { declare namespace _default { export let title: string; export { ObjectListWidgetDefault as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { let schema: {}; } diff --git a/packages/volto/types/components/manage/Widgets/ObjectWidget.d.ts b/packages/volto/types/components/manage/Widgets/ObjectWidget.d.ts index ec36e70f6a..8010937994 100644 --- a/packages/volto/types/components/manage/Widgets/ObjectWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/ObjectWidget.d.ts @@ -15,7 +15,7 @@ declare function ObjectWidget({ block, schema, value, onChange, errors, id, ...p onChange: any; errors?: {}; id: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace ObjectWidget { namespace propTypes { let id: any; diff --git a/packages/volto/types/components/manage/Widgets/ObjectWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/ObjectWidget.stories.d.ts index ce4ee53c7c..17fcbf9ab7 100644 --- a/packages/volto/types/components/manage/Widgets/ObjectWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/ObjectWidget.stories.d.ts @@ -4,7 +4,7 @@ export const DefaultValue: any; declare namespace _default { export let title: string; export { ObjectWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { let schema: {}; } diff --git a/packages/volto/types/components/manage/Widgets/PasswordWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/PasswordWidget.stories.d.ts index 583a2b12f5..1c453fe3aa 100644 --- a/packages/volto/types/components/manage/Widgets/PasswordWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/PasswordWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Password: any; declare namespace _default { export let title: string; export { PasswordWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/QueryWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/QueryWidget.stories.d.ts index 30a578fd40..c19502d6e9 100644 --- a/packages/volto/types/components/manage/Widgets/QueryWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/QueryWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Query: any; declare namespace _default { export let title: string; export { QuerystringWidgetComponent as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/QuerystringWidget.d.ts b/packages/volto/types/components/manage/Widgets/QuerystringWidget.d.ts index f15478ae7a..2018fb9d51 100644 --- a/packages/volto/types/components/manage/Widgets/QuerystringWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/QuerystringWidget.d.ts @@ -41,4 +41,4 @@ export function objectSchema({ intl, isDisabled, value }: { required: any[]; }; export default QuerystringWidget; -declare function QuerystringWidget(props: any): JSX.Element; +declare function QuerystringWidget(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByMonthDayField.d.ts b/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByMonthDayField.d.ts index 9267942812..5629c1b919 100644 --- a/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByMonthDayField.d.ts +++ b/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByMonthDayField.d.ts @@ -1,5 +1,19 @@ -declare const _default: React.FC>> & { - WrappedComponent: React.ComponentType>; +declare const _default: React.ForwardRefExoticComponent & { + forwardedRef?: React.Ref; +} & React.RefAttributes> & { + WrappedComponent: React.ComponentType<{ + value: any; + disabled: any; + onChange: any; + hideAfterLabel: any; + intl: any; + }>; }; export default _default; import React from 'react'; diff --git a/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByMonthField.d.ts b/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByMonthField.d.ts index 9267942812..405283b4b2 100644 --- a/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByMonthField.d.ts +++ b/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByMonthField.d.ts @@ -1,5 +1,23 @@ -declare const _default: React.FC>> & { - WrappedComponent: React.ComponentType>; +declare const _default: React.ForwardRefExoticComponent & { + forwardedRef?: React.Ref; +} & React.RefAttributes> & { + WrappedComponent: React.ComponentType<{ + label: any; + value: any; + bymonthday: any; + weekdayOfTheMonthIndex: any; + weekdayOfTheMonth: any; + onChange: any; + intl: any; + }>; }; export default _default; import React from 'react'; diff --git a/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByYearField.d.ts b/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByYearField.d.ts index 9267942812..d4ede7a121 100644 --- a/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByYearField.d.ts +++ b/packages/volto/types/components/manage/Widgets/RecurrenceWidget/ByYearField.d.ts @@ -1,5 +1,25 @@ -declare const _default: React.FC>> & { - WrappedComponent: React.ComponentType>; +declare const _default: React.ForwardRefExoticComponent & { + forwardedRef?: React.Ref; +} & React.RefAttributes> & { + WrappedComponent: React.ComponentType<{ + label: any; + value: any; + bymonthday: any; + monthOfTheYear: any; + weekdayOfTheMonthIndex: any; + weekdayOfTheMonth: any; + onChange: any; + intl: any; + }>; }; export default _default; import React from 'react'; diff --git a/packages/volto/types/components/manage/Widgets/RecurrenceWidget/EndField.d.ts b/packages/volto/types/components/manage/Widgets/RecurrenceWidget/EndField.d.ts index 9267942812..ef3f19082d 100644 --- a/packages/volto/types/components/manage/Widgets/RecurrenceWidget/EndField.d.ts +++ b/packages/volto/types/components/manage/Widgets/RecurrenceWidget/EndField.d.ts @@ -1,5 +1,19 @@ -declare const _default: React.FC>> & { - WrappedComponent: React.ComponentType>; +declare const _default: React.ForwardRefExoticComponent & { + forwardedRef?: React.Ref; +} & React.RefAttributes> & { + WrappedComponent: React.ComponentType<{ + value: any; + count: any; + until: any; + onChange: any; + intl: any; + }>; }; export default _default; import React from 'react'; diff --git a/packages/volto/types/components/manage/Widgets/SelectAutocompleteWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/SelectAutocompleteWidget.stories.d.ts index f439707fb2..24eff0cc2c 100644 --- a/packages/volto/types/components/manage/Widgets/SelectAutocompleteWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/SelectAutocompleteWidget.stories.d.ts @@ -9,7 +9,7 @@ export const ManyOptions1000: any; declare namespace _default { export let title: string; export { SelectAutoCompleteComponent as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace value { namespace control { diff --git a/packages/volto/types/components/manage/Widgets/SelectStyling.d.ts b/packages/volto/types/components/manage/Widgets/SelectStyling.d.ts index 4ba84b6fb8..db88228a62 100644 --- a/packages/volto/types/components/manage/Widgets/SelectStyling.d.ts +++ b/packages/volto/types/components/manage/Widgets/SelectStyling.d.ts @@ -1,6 +1,6 @@ export function MenuList({ children }: { children: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; export const SortableMultiValue: any; export const SortableMultiValueLabel: any; export const MultiValueContainer: any; diff --git a/packages/volto/types/components/manage/Widgets/SelectWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/SelectWidget.stories.d.ts index 70d9840388..1b15fb821f 100644 --- a/packages/volto/types/components/manage/Widgets/SelectWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/SelectWidget.stories.d.ts @@ -13,7 +13,7 @@ export const CustomOptions: any; declare namespace _default { export let title: string; export { SelectWidgetComponent as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace value { namespace control { diff --git a/packages/volto/types/components/manage/Widgets/TextWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/TextWidget.stories.d.ts index 689d78b635..a41f37408a 100644 --- a/packages/volto/types/components/manage/Widgets/TextWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/TextWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Text: any; declare namespace _default { export let title: string; export { TextWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/TextareaWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/TextareaWidget.stories.d.ts index 27162ed9d2..cd55b41781 100644 --- a/packages/volto/types/components/manage/Widgets/TextareaWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/TextareaWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Textarea: any; declare namespace _default { export let title: string; export { TextareaWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/TokenWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/TokenWidget.stories.d.ts index 1943d92187..19e90ffc15 100644 --- a/packages/volto/types/components/manage/Widgets/TokenWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/TokenWidget.stories.d.ts @@ -8,7 +8,7 @@ export const Disabled: any; declare namespace _default { export let title: string; export { TokenWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace value { namespace control { diff --git a/packages/volto/types/components/manage/Widgets/UrlWidget.d.ts b/packages/volto/types/components/manage/Widgets/UrlWidget.d.ts index 628c635e97..51ff47f9b5 100644 --- a/packages/volto/types/components/manage/Widgets/UrlWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/UrlWidget.d.ts @@ -1,4 +1,4 @@ -export function UrlWidget(props: any): JSX.Element; +export function UrlWidget(props: any): import("react/jsx-runtime").JSX.Element; export namespace UrlWidget { namespace propTypes { let id: any; @@ -48,13 +48,11 @@ declare const _default: { overlay: string; }) => void; closeObjectBrowser: () => void; - render(): JSX.Element; - context: any; + render(): import("react/jsx-runtime").JSX.Element; + context: unknown; setState(state: any, callback?: () => void): void; forceUpdate(callback?: () => void): void; - readonly props: Readonly & Readonly<{ - children?: any; - }>; + readonly props: Readonly; refs: { [key: string]: React.ReactInstance; }; diff --git a/packages/volto/types/components/manage/Widgets/UrlWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/UrlWidget.stories.d.ts index e0d86b2bef..0733140fd9 100644 --- a/packages/volto/types/components/manage/Widgets/UrlWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/UrlWidget.stories.d.ts @@ -2,7 +2,7 @@ export const Url: any; declare namespace _default { export let title: string; export { UrlWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/VocabularyTermsWidget.d.ts b/packages/volto/types/components/manage/Widgets/VocabularyTermsWidget.d.ts index 7464724d2b..08ff8ca4c6 100644 --- a/packages/volto/types/components/manage/Widgets/VocabularyTermsWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/VocabularyTermsWidget.d.ts @@ -1,2 +1,2 @@ export default VocabularyTermsWidget; -declare function VocabularyTermsWidget(props: any): JSX.Element; +declare function VocabularyTermsWidget(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Widgets/VocabularyTermsWidget.stories.d.ts b/packages/volto/types/components/manage/Widgets/VocabularyTermsWidget.stories.d.ts index a71e0f0cd2..253e4a1d7d 100644 --- a/packages/volto/types/components/manage/Widgets/VocabularyTermsWidget.stories.d.ts +++ b/packages/volto/types/components/manage/Widgets/VocabularyTermsWidget.stories.d.ts @@ -3,7 +3,7 @@ declare namespace _default { export let title: string; export { VocabularyTermsWidget as component }; export let argTypes: {}; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; } export default _default; import VocabularyTermsWidget from './VocabularyTermsWidget'; diff --git a/packages/volto/types/components/manage/Widgets/WysiwygWidget.d.ts b/packages/volto/types/components/manage/Widgets/WysiwygWidget.d.ts index a6fd09729e..241890cae1 100644 --- a/packages/volto/types/components/manage/Widgets/WysiwygWidget.d.ts +++ b/packages/volto/types/components/manage/Widgets/WysiwygWidget.d.ts @@ -3,4 +3,4 @@ export const WysiwygWidget: React.ForwardRefExoticComponent JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/manage/Widgets/story.d.ts b/packages/volto/types/components/manage/Widgets/story.d.ts index 815343c512..86b736e264 100644 --- a/packages/volto/types/components/manage/Widgets/story.d.ts +++ b/packages/volto/types/components/manage/Widgets/story.d.ts @@ -1,4 +1,4 @@ export default function StoryComponent({ children, ...args }: { [x: string]: any; children: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/Anontools/Anontools.d.ts b/packages/volto/types/components/theme/Anontools/Anontools.d.ts index e981c86b63..43fe609817 100644 --- a/packages/volto/types/components/theme/Anontools/Anontools.d.ts +++ b/packages/volto/types/components/theme/Anontools/Anontools.d.ts @@ -1,5 +1,5 @@ export default Anontools; -declare function Anontools(): JSX.Element; +declare function Anontools(): import("react/jsx-runtime").JSX.Element; declare namespace Anontools { namespace propTypes { let token: any; diff --git a/packages/volto/types/components/theme/AppExtras/AppExtras.d.ts b/packages/volto/types/components/theme/AppExtras/AppExtras.d.ts index 1324da035f..d76acb971e 100644 --- a/packages/volto/types/components/theme/AppExtras/AppExtras.d.ts +++ b/packages/volto/types/components/theme/AppExtras/AppExtras.d.ts @@ -1,2 +1,2 @@ export default AppExtras; -declare function AppExtras(props: any): JSX.Element[]; +declare function AppExtras(props: any): import("react/jsx-runtime").JSX.Element[]; diff --git a/packages/volto/types/components/theme/Avatar/Avatar.d.ts b/packages/volto/types/components/theme/Avatar/Avatar.d.ts index fa74a6f68e..061ace8539 100644 --- a/packages/volto/types/components/theme/Avatar/Avatar.d.ts +++ b/packages/volto/types/components/theme/Avatar/Avatar.d.ts @@ -6,7 +6,7 @@ declare function Avatar({ src, title, text, size, color, className }: { size: any; color: any; className: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace Avatar { namespace propTypes { let src: any; diff --git a/packages/volto/types/components/theme/Breadcrumbs/Breadcrumbs.d.ts b/packages/volto/types/components/theme/Breadcrumbs/Breadcrumbs.d.ts index 7a868567b3..1791854961 100644 --- a/packages/volto/types/components/theme/Breadcrumbs/Breadcrumbs.d.ts +++ b/packages/volto/types/components/theme/Breadcrumbs/Breadcrumbs.d.ts @@ -1,7 +1,7 @@ export default BreadcrumbsComponent; declare function BreadcrumbsComponent({ pathname }: { pathname: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace BreadcrumbsComponent { namespace propTypes { let pathname: any; diff --git a/packages/volto/types/components/theme/Comments/Comment.stories.d.ts b/packages/volto/types/components/theme/Comments/Comment.stories.d.ts index f1a51f857a..0ab97ff163 100644 --- a/packages/volto/types/components/theme/Comments/Comment.stories.d.ts +++ b/packages/volto/types/components/theme/Comments/Comment.stories.d.ts @@ -2,7 +2,7 @@ export const CommentsModal: any; declare namespace _default { export let title: string; export { CommentsComponent as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace creation_date { let control: string; diff --git a/packages/volto/types/components/theme/Comments/CommentEditModal.d.ts b/packages/volto/types/components/theme/Comments/CommentEditModal.d.ts index 2baeec58cd..41f6fbbfb6 100644 --- a/packages/volto/types/components/theme/Comments/CommentEditModal.d.ts +++ b/packages/volto/types/components/theme/Comments/CommentEditModal.d.ts @@ -1,5 +1,5 @@ export default CommentEditModal; -declare function CommentEditModal(props: any): JSX.Element; +declare function CommentEditModal(props: any): import("react/jsx-runtime").JSX.Element; declare namespace CommentEditModal { namespace propTypes { let id: any; diff --git a/packages/volto/types/components/theme/Comments/CommentEditModal.stories.d.ts b/packages/volto/types/components/theme/Comments/CommentEditModal.stories.d.ts index 3238a256b3..a0b4d28c73 100644 --- a/packages/volto/types/components/theme/Comments/CommentEditModal.stories.d.ts +++ b/packages/volto/types/components/theme/Comments/CommentEditModal.stories.d.ts @@ -2,7 +2,7 @@ export const CommentEditModal: any; declare namespace _default { export let title: string; export { CommentEditModalComponent as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace open { let description: string; diff --git a/packages/volto/types/components/theme/Component/Component.d.ts b/packages/volto/types/components/theme/Component/Component.d.ts index cc49151523..fd740c21b2 100644 --- a/packages/volto/types/components/theme/Component/Component.d.ts +++ b/packages/volto/types/components/theme/Component/Component.d.ts @@ -7,4 +7,4 @@ declare function Component({ componentName, dependencies, ...rest }: { [x: string]: any; componentName: any; dependencies: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/ConnectionRefused/ConnectionRefused.d.ts b/packages/volto/types/components/theme/ConnectionRefused/ConnectionRefused.d.ts index 4e2795a80d..d2e88d4101 100644 --- a/packages/volto/types/components/theme/ConnectionRefused/ConnectionRefused.d.ts +++ b/packages/volto/types/components/theme/ConnectionRefused/ConnectionRefused.d.ts @@ -1,2 +1,2 @@ export default ConnectionRefused; -declare function ConnectionRefused(): JSX.Element; +declare function ConnectionRefused(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/ContactForm/ContactForm.d.ts b/packages/volto/types/components/theme/ContactForm/ContactForm.d.ts index 2d86207182..6c08f500b6 100644 --- a/packages/volto/types/components/theme/ContactForm/ContactForm.d.ts +++ b/packages/volto/types/components/theme/ContactForm/ContactForm.d.ts @@ -1,2 +1,2 @@ export default ContactFormComponent; -declare function ContactFormComponent(): JSX.Element; +declare function ContactFormComponent(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/ContactForm/ContactForm.stories.d.ts b/packages/volto/types/components/theme/ContactForm/ContactForm.stories.d.ts index f5d565824c..051dce3bf3 100644 --- a/packages/volto/types/components/theme/ContactForm/ContactForm.stories.d.ts +++ b/packages/volto/types/components/theme/ContactForm/ContactForm.stories.d.ts @@ -2,7 +2,7 @@ export const ContactForm: any; declare namespace _default { export let title: string; export { ContactFormComponent as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace error { let control: string; diff --git a/packages/volto/types/components/theme/ContentMetadataTags/ContentMetadataTags.d.ts b/packages/volto/types/components/theme/ContentMetadataTags/ContentMetadataTags.d.ts index fb9f3ad2a9..1c9edaaf90 100644 --- a/packages/volto/types/components/theme/ContentMetadataTags/ContentMetadataTags.d.ts +++ b/packages/volto/types/components/theme/ContentMetadataTags/ContentMetadataTags.d.ts @@ -1,2 +1,2 @@ export default ContentMetadataTags; -declare function ContentMetadataTags(props: any): JSX.Element; +declare function ContentMetadataTags(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/Error/ErrorBoundary.d.ts b/packages/volto/types/components/theme/Error/ErrorBoundary.d.ts index 13639b7ecc..583c8f3c58 100644 --- a/packages/volto/types/components/theme/Error/ErrorBoundary.d.ts +++ b/packages/volto/types/components/theme/Error/ErrorBoundary.d.ts @@ -8,5 +8,6 @@ declare class ErrorBoundary extends React.Component { hasError: boolean; }; componentDidCatch(error: any, errorInfo: any): void; + render(): any; } import React from 'react'; diff --git a/packages/volto/types/components/theme/Error/ServerError.d.ts b/packages/volto/types/components/theme/Error/ServerError.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/theme/Error/ServerError.d.ts +++ b/packages/volto/types/components/theme/Error/ServerError.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/theme/EventDetails/EventDetails.d.ts b/packages/volto/types/components/theme/EventDetails/EventDetails.d.ts index 9eab457983..ad497dfc4b 100644 --- a/packages/volto/types/components/theme/EventDetails/EventDetails.d.ts +++ b/packages/volto/types/components/theme/EventDetails/EventDetails.d.ts @@ -2,4 +2,4 @@ export default EventDetails; declare function EventDetails({ content, display_as }: { content: any; display_as?: string; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/EventDetails/EventDetails.stories.d.ts b/packages/volto/types/components/theme/EventDetails/EventDetails.stories.d.ts index d424670633..ef15aeb743 100644 --- a/packages/volto/types/components/theme/EventDetails/EventDetails.stories.d.ts +++ b/packages/volto/types/components/theme/EventDetails/EventDetails.stories.d.ts @@ -2,7 +2,7 @@ export const EventDetails: any; declare namespace _default { export let title: string; export { EventDetails as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace contact_email { let description: string; diff --git a/packages/volto/types/components/theme/Forbidden/Forbidden.d.ts b/packages/volto/types/components/theme/Forbidden/Forbidden.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/theme/Forbidden/Forbidden.d.ts +++ b/packages/volto/types/components/theme/Forbidden/Forbidden.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/theme/FormattedDate/FormattedDate.d.ts b/packages/volto/types/components/theme/FormattedDate/FormattedDate.d.ts index 8848d3ed47..3540c6e002 100644 --- a/packages/volto/types/components/theme/FormattedDate/FormattedDate.d.ts +++ b/packages/volto/types/components/theme/FormattedDate/FormattedDate.d.ts @@ -11,4 +11,4 @@ declare function FormattedDate({ date, format, long, includeTime, relative, clas className: any; locale: any; children: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/FormattedDate/FormattedDate.stories.d.ts b/packages/volto/types/components/theme/FormattedDate/FormattedDate.stories.d.ts index 407ba9d68b..5821f616e3 100644 --- a/packages/volto/types/components/theme/FormattedDate/FormattedDate.stories.d.ts +++ b/packages/volto/types/components/theme/FormattedDate/FormattedDate.stories.d.ts @@ -7,7 +7,7 @@ export const SplitParts: any; declare namespace _default { export let title: string; export { FormattedDate as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace locale { namespace control { diff --git a/packages/volto/types/components/theme/FormattedDate/FormattedRelativeDate.d.ts b/packages/volto/types/components/theme/FormattedDate/FormattedRelativeDate.d.ts index 10a57513d9..b6c147321c 100644 --- a/packages/volto/types/components/theme/FormattedDate/FormattedRelativeDate.d.ts +++ b/packages/volto/types/components/theme/FormattedDate/FormattedRelativeDate.d.ts @@ -8,4 +8,4 @@ declare function FormattedRelativeDate({ date, style, relativeTo, className, loc children: any; live?: boolean; refresh?: number; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/FormattedDate/FormattedRelativeDate.stories.d.ts b/packages/volto/types/components/theme/FormattedDate/FormattedRelativeDate.stories.d.ts index 87fb74e997..ee051f1fec 100644 --- a/packages/volto/types/components/theme/FormattedDate/FormattedRelativeDate.stories.d.ts +++ b/packages/volto/types/components/theme/FormattedDate/FormattedRelativeDate.stories.d.ts @@ -7,7 +7,7 @@ export const SplitParts: any; declare namespace _default { export let title: string; export { FormattedRelativeDate as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { namespace live { namespace control { diff --git a/packages/volto/types/components/theme/Header/Header.d.ts b/packages/volto/types/components/theme/Header/Header.d.ts index 25266c2c5d..e5fbd00e76 100644 --- a/packages/volto/types/components/theme/Header/Header.d.ts +++ b/packages/volto/types/components/theme/Header/Header.d.ts @@ -1,7 +1,7 @@ export default Header; declare function Header({ pathname }: { pathname: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace Header { namespace propTypes { let token: any; diff --git a/packages/volto/types/components/theme/Header/Header.stories.d.ts b/packages/volto/types/components/theme/Header/Header.stories.d.ts index cfc770fe49..49df681e9f 100644 --- a/packages/volto/types/components/theme/Header/Header.stories.d.ts +++ b/packages/volto/types/components/theme/Header/Header.stories.d.ts @@ -3,7 +3,7 @@ export const Auth: any; declare namespace _default { export let title: string; export { HeaderComponent as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export namespace argTypes { let token: string; } diff --git a/packages/volto/types/components/theme/Image/Image.d.ts b/packages/volto/types/components/theme/Image/Image.d.ts index 9941aba447..078800a169 100644 --- a/packages/volto/types/components/theme/Image/Image.d.ts +++ b/packages/volto/types/components/theme/Image/Image.d.ts @@ -8,7 +8,7 @@ * @param {boolean} responsive - (default: false) set to `true` to add the `responsive` class to the image * @param {string} className - Additional classes to add to the image */ -declare function Image({ item, imageField, src, alt, loading, responsive, className, ...imageProps }: object): JSX.Element; +declare function Image({ item, imageField, src, alt, loading, responsive, className, ...imageProps }: object): import("react/jsx-runtime").JSX.Element; declare namespace Image { namespace propTypes { let item: any; diff --git a/packages/volto/types/components/theme/LanguageSelector/LanguageSelector.d.ts b/packages/volto/types/components/theme/LanguageSelector/LanguageSelector.d.ts index d8f9adba31..7e0db72373 100644 --- a/packages/volto/types/components/theme/LanguageSelector/LanguageSelector.d.ts +++ b/packages/volto/types/components/theme/LanguageSelector/LanguageSelector.d.ts @@ -1,5 +1,5 @@ export default LanguageSelector; -declare function LanguageSelector(props: any): JSX.Element; +declare function LanguageSelector(props: any): import("react/jsx-runtime").JSX.Element; declare namespace LanguageSelector { namespace propTypes { let onClickAction: any; diff --git a/packages/volto/types/components/theme/Login/Login.d.ts b/packages/volto/types/components/theme/Login/Login.d.ts index a0ebbea706..5f9b9de759 100644 --- a/packages/volto/types/components/theme/Login/Login.d.ts +++ b/packages/volto/types/components/theme/Login/Login.d.ts @@ -1,2 +1,2 @@ export default Login; -declare function Login(props: any): JSX.Element; +declare function Login(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/Login/Login.stories.d.ts b/packages/volto/types/components/theme/Login/Login.stories.d.ts index a83312fb61..6b3f6d48ea 100644 --- a/packages/volto/types/components/theme/Login/Login.stories.d.ts +++ b/packages/volto/types/components/theme/Login/Login.stories.d.ts @@ -2,7 +2,7 @@ export const Default: any; declare namespace _default { export let title: string; export { Default as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/theme/Logo/Logo.stories.d.ts b/packages/volto/types/components/theme/Logo/Logo.stories.d.ts index a83312fb61..6b3f6d48ea 100644 --- a/packages/volto/types/components/theme/Logo/Logo.stories.d.ts +++ b/packages/volto/types/components/theme/Logo/Logo.stories.d.ts @@ -2,7 +2,7 @@ export const Default: any; declare namespace _default { export let title: string; export { Default as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; export let argTypes: {}; } export default _default; diff --git a/packages/volto/types/components/theme/Logout/Logout.d.ts b/packages/volto/types/components/theme/Logout/Logout.d.ts index 3d5e2e260f..480a4ae25b 100644 --- a/packages/volto/types/components/theme/Logout/Logout.d.ts +++ b/packages/volto/types/components/theme/Logout/Logout.d.ts @@ -1,4 +1,4 @@ export default Logout; declare function Logout({ location }: { location: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/MultilingualRedirector/MultilingualRedirector.d.ts b/packages/volto/types/components/theme/MultilingualRedirector/MultilingualRedirector.d.ts index 32f473f5ac..768581284e 100644 --- a/packages/volto/types/components/theme/MultilingualRedirector/MultilingualRedirector.d.ts +++ b/packages/volto/types/components/theme/MultilingualRedirector/MultilingualRedirector.d.ts @@ -1,2 +1,2 @@ export default MultilingualRedirector; -declare function MultilingualRedirector(props: any): JSX.Element; +declare function MultilingualRedirector(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/Navigation/ContextNavigation.d.ts b/packages/volto/types/components/theme/Navigation/ContextNavigation.d.ts index 121917be78..5f068bb743 100644 --- a/packages/volto/types/components/theme/Navigation/ContextNavigation.d.ts +++ b/packages/volto/types/components/theme/Navigation/ContextNavigation.d.ts @@ -3,7 +3,7 @@ * portlet. It uses the same API, so the options are similar to * INavigationPortlet */ -export function ContextNavigationComponent(props: any): JSX.Element | ""; +export function ContextNavigationComponent(props: any): import("react/jsx-runtime").JSX.Element | ""; export namespace ContextNavigationComponent { namespace propTypes { let navigation: any; diff --git a/packages/volto/types/components/theme/Navigation/ContextNavigation.stories.d.ts b/packages/volto/types/components/theme/Navigation/ContextNavigation.stories.d.ts index 8283cf15ef..d2cf05796b 100644 --- a/packages/volto/types/components/theme/Navigation/ContextNavigation.stories.d.ts +++ b/packages/volto/types/components/theme/Navigation/ContextNavigation.stories.d.ts @@ -1,8 +1,8 @@ declare namespace _default { export let title: string; export { CNC as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; } export default _default; -export function ContextNavigation(): JSX.Element; +export function ContextNavigation(): import("react/jsx-runtime").JSX.Element; import { ContextNavigationComponent as CNC } from './ContextNavigation'; diff --git a/packages/volto/types/components/theme/Navigation/NavItem.d.ts b/packages/volto/types/components/theme/Navigation/NavItem.d.ts index 8b1e0e819c..225ce89d0e 100644 --- a/packages/volto/types/components/theme/Navigation/NavItem.d.ts +++ b/packages/volto/types/components/theme/Navigation/NavItem.d.ts @@ -2,4 +2,4 @@ export default NavItem; declare function NavItem({ item, lang }: { item: any; lang: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/Navigation/NavItems.d.ts b/packages/volto/types/components/theme/Navigation/NavItems.d.ts index 412ddef2f6..78dbe3c2ba 100644 --- a/packages/volto/types/components/theme/Navigation/NavItems.d.ts +++ b/packages/volto/types/components/theme/Navigation/NavItems.d.ts @@ -2,4 +2,4 @@ export default NavItems; declare function NavItems({ items, lang }: { items: any; lang: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/Navigation/Navigation.d.ts b/packages/volto/types/components/theme/Navigation/Navigation.d.ts index 3ede9575fc..46311bf9cd 100644 --- a/packages/volto/types/components/theme/Navigation/Navigation.d.ts +++ b/packages/volto/types/components/theme/Navigation/Navigation.d.ts @@ -1,5 +1,5 @@ export default Navigation; -declare function Navigation(props: any): JSX.Element; +declare function Navigation(props: any): import("react/jsx-runtime").JSX.Element; declare namespace Navigation { namespace propTypes { let pathname: any; diff --git a/packages/volto/types/components/theme/Navigation/withContentNavigation.d.ts b/packages/volto/types/components/theme/Navigation/withContentNavigation.d.ts index 4dfdc41219..b4cc83c8af 100644 --- a/packages/volto/types/components/theme/Navigation/withContentNavigation.d.ts +++ b/packages/volto/types/components/theme/Navigation/withContentNavigation.d.ts @@ -1,5 +1,5 @@ export function withContentNavigation(WrappedComponent: any): { - (props: any): JSX.Element; + (props: any): import("react/jsx-runtime").JSX.Element; propTypes: { /** * Location, from router diff --git a/packages/volto/types/components/theme/NotFound/NotFound.d.ts b/packages/volto/types/components/theme/NotFound/NotFound.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/theme/NotFound/NotFound.d.ts +++ b/packages/volto/types/components/theme/NotFound/NotFound.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/theme/OutdatedBrowser/OutdatedBrowser.d.ts b/packages/volto/types/components/theme/OutdatedBrowser/OutdatedBrowser.d.ts index e614d479a6..af2d3cb6bb 100644 --- a/packages/volto/types/components/theme/OutdatedBrowser/OutdatedBrowser.d.ts +++ b/packages/volto/types/components/theme/OutdatedBrowser/OutdatedBrowser.d.ts @@ -1,2 +1,2 @@ export default OutdatedBrowser; -declare function OutdatedBrowser(): JSX.Element; +declare function OutdatedBrowser(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/PasswordReset/RequestPasswordReset.d.ts b/packages/volto/types/components/theme/PasswordReset/RequestPasswordReset.d.ts index 7e602a603f..1057012f04 100644 --- a/packages/volto/types/components/theme/PasswordReset/RequestPasswordReset.d.ts +++ b/packages/volto/types/components/theme/PasswordReset/RequestPasswordReset.d.ts @@ -1,2 +1,2 @@ export default RequestPasswordReset; -declare function RequestPasswordReset(): JSX.Element; +declare function RequestPasswordReset(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/Popup/Popup.d.ts b/packages/volto/types/components/theme/Popup/Popup.d.ts index 2987b728dc..8832578b5a 100644 --- a/packages/volto/types/components/theme/Popup/Popup.d.ts +++ b/packages/volto/types/components/theme/Popup/Popup.d.ts @@ -3,7 +3,7 @@ export default Popup; * Renders a preview image for a catalog brain result item. * */ -declare function Popup(props: any): JSX.Element; +declare function Popup(props: any): import("react/jsx-runtime").JSX.Element; declare namespace Popup { namespace propTypes { let menu: any; diff --git a/packages/volto/types/components/theme/PreviewImage/PreviewImage.d.ts b/packages/volto/types/components/theme/PreviewImage/PreviewImage.d.ts index 3ac0944ab7..4041154780 100644 --- a/packages/volto/types/components/theme/PreviewImage/PreviewImage.d.ts +++ b/packages/volto/types/components/theme/PreviewImage/PreviewImage.d.ts @@ -8,7 +8,7 @@ declare function PreviewImage({ item, alt, image_field, showDefault, ...rest }: alt: any; image_field: any; showDefault?: boolean; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace PreviewImage { namespace propTypes { let item: any; diff --git a/packages/volto/types/components/theme/Search/SearchTags.d.ts b/packages/volto/types/components/theme/Search/SearchTags.d.ts index e178f03d5b..9eafe33903 100644 --- a/packages/volto/types/components/theme/Search/SearchTags.d.ts +++ b/packages/volto/types/components/theme/Search/SearchTags.d.ts @@ -1,2 +1,2 @@ export default SearchTags; -declare function SearchTags(): JSX.Element; +declare function SearchTags(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/SearchWidget/SearchWidget.d.ts b/packages/volto/types/components/theme/SearchWidget/SearchWidget.d.ts index 2048b49735..0a11fa41f8 100644 --- a/packages/volto/types/components/theme/SearchWidget/SearchWidget.d.ts +++ b/packages/volto/types/components/theme/SearchWidget/SearchWidget.d.ts @@ -1,2 +1,2 @@ export default SearchWidget; -declare function SearchWidget(props: any): JSX.Element; +declare function SearchWidget(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/SearchWidget/SearchWidget.stories.d.ts b/packages/volto/types/components/theme/SearchWidget/SearchWidget.stories.d.ts index d72b9762ff..3df70e3d9f 100644 --- a/packages/volto/types/components/theme/SearchWidget/SearchWidget.stories.d.ts +++ b/packages/volto/types/components/theme/SearchWidget/SearchWidget.stories.d.ts @@ -2,6 +2,6 @@ export const SearchWidget: any; declare namespace _default { export let title: string; export { SearchWidget as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; } export default _default; diff --git a/packages/volto/types/components/theme/SkipLinks/SkipLinks.d.ts b/packages/volto/types/components/theme/SkipLinks/SkipLinks.d.ts index 696926af71..5b8523d9c1 100644 --- a/packages/volto/types/components/theme/SkipLinks/SkipLinks.d.ts +++ b/packages/volto/types/components/theme/SkipLinks/SkipLinks.d.ts @@ -1,2 +1,2 @@ export default SkipLinks; -declare function SkipLinks(): JSX.Element; +declare function SkipLinks(): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/SlotRenderer/SlotRenderer.d.ts b/packages/volto/types/components/theme/SlotRenderer/SlotRenderer.d.ts new file mode 100644 index 0000000000..98b887a3fa --- /dev/null +++ b/packages/volto/types/components/theme/SlotRenderer/SlotRenderer.d.ts @@ -0,0 +1,7 @@ +import type { Content } from '@plone/types'; +declare const SlotRenderer: ({ name, content, navRoot, }: { + name: string; + content: Content; + navRoot?: Content; +}) => import("react/jsx-runtime").JSX.Element; +export default SlotRenderer; diff --git a/packages/volto/types/components/theme/SlotRenderer/SlotRenderer.test.d.ts b/packages/volto/types/components/theme/SlotRenderer/SlotRenderer.test.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/packages/volto/types/components/theme/SlotRenderer/SlotRenderer.test.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/packages/volto/types/components/theme/TsTest/TsTest.d.ts b/packages/volto/types/components/theme/TsTest/TsTest.d.ts index addefcee34..1327f6e7d1 100644 --- a/packages/volto/types/components/theme/TsTest/TsTest.d.ts +++ b/packages/volto/types/components/theme/TsTest/TsTest.d.ts @@ -3,9 +3,8 @@ * Ensure successful implementation of TSX and validate the functionality with Jest tests * Dependencies: jest (version 26.6.3), ts-jest (version ^26.4.2) */ -/// type TestProps = { text: string; }; -declare const TsTest: ({ text }: TestProps) => JSX.Element; +declare const TsTest: ({ text }: TestProps) => import("react/jsx-runtime").JSX.Element; export default TsTest; diff --git a/packages/volto/types/components/theme/Unauthorized/Unauthorized.d.ts b/packages/volto/types/components/theme/Unauthorized/Unauthorized.d.ts index d0180a28ef..c17a3f4a2e 100644 --- a/packages/volto/types/components/theme/Unauthorized/Unauthorized.d.ts +++ b/packages/volto/types/components/theme/Unauthorized/Unauthorized.d.ts @@ -1,2 +1,2 @@ -declare const _default: (props: any) => JSX.Element; +declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element; export default _default; diff --git a/packages/volto/types/components/theme/View/AlbumView.d.ts b/packages/volto/types/components/theme/View/AlbumView.d.ts index 900a30b3a7..03b217830c 100644 --- a/packages/volto/types/components/theme/View/AlbumView.d.ts +++ b/packages/volto/types/components/theme/View/AlbumView.d.ts @@ -13,7 +13,7 @@ declare class AlbumView extends React.Component { closeModal(): void; nextImage(): void; prevImage(): void; - render(): JSX.Element; + render(): import("react/jsx-runtime").JSX.Element; } declare namespace AlbumView { namespace propTypes { diff --git a/packages/volto/types/components/theme/View/EventDatesInfo.d.ts b/packages/volto/types/components/theme/View/EventDatesInfo.d.ts index 9e524c4ff2..0bfeadcd54 100644 --- a/packages/volto/types/components/theme/View/EventDatesInfo.d.ts +++ b/packages/volto/types/components/theme/View/EventDatesInfo.d.ts @@ -12,5 +12,5 @@ export function Recurrence_({ recurrence, start, moment: momentlib, rrule, }: { start: any; moment: any; rrule: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; export const Recurrence: any; diff --git a/packages/volto/types/components/theme/View/LinkView.d.ts b/packages/volto/types/components/theme/View/LinkView.d.ts index ba74032deb..66abd78766 100644 --- a/packages/volto/types/components/theme/View/LinkView.d.ts +++ b/packages/volto/types/components/theme/View/LinkView.d.ts @@ -2,7 +2,7 @@ export default LinkView; declare function LinkView({ token, content }: { token: any; content: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; declare namespace LinkView { namespace propTypes { let content: any; diff --git a/packages/volto/types/components/theme/View/RenderBlocks.d.ts b/packages/volto/types/components/theme/View/RenderBlocks.d.ts index 8bb52acecd..10d6c8b74c 100644 --- a/packages/volto/types/components/theme/View/RenderBlocks.d.ts +++ b/packages/volto/types/components/theme/View/RenderBlocks.d.ts @@ -1,2 +1,2 @@ export default RenderBlocks; -declare function RenderBlocks(props: any): JSX.Element | ""; +declare function RenderBlocks(props: any): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/ArrayWidget.d.ts b/packages/volto/types/components/theme/Widgets/ArrayWidget.d.ts index 8e960121a5..3adb210ebb 100644 --- a/packages/volto/types/components/theme/Widgets/ArrayWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/ArrayWidget.d.ts @@ -3,4 +3,4 @@ declare function ArrayWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/BooleanWidget.d.ts b/packages/volto/types/components/theme/Widgets/BooleanWidget.d.ts index 9267942812..4055c3903a 100644 --- a/packages/volto/types/components/theme/Widgets/BooleanWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/BooleanWidget.d.ts @@ -1,5 +1,17 @@ -declare const _default: React.FC>> & { - WrappedComponent: React.ComponentType>; +declare const _default: React.ForwardRefExoticComponent & { + forwardedRef?: React.Ref; +} & React.RefAttributes> & { + WrappedComponent: React.ComponentType<{ + value: any; + children: any; + className: any; + intl: any; + }>; }; export default _default; import React from 'react'; diff --git a/packages/volto/types/components/theme/Widgets/DateWidget.d.ts b/packages/volto/types/components/theme/Widgets/DateWidget.d.ts index 0b988cbe9d..f66879848c 100644 --- a/packages/volto/types/components/theme/Widgets/DateWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/DateWidget.d.ts @@ -4,4 +4,4 @@ declare function DateWidget({ value, children, className, format }: { children: any; className: any; format?: string; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/DatetimeWidget.d.ts b/packages/volto/types/components/theme/Widgets/DatetimeWidget.d.ts index 22cc74fa76..856dd5c8ca 100644 --- a/packages/volto/types/components/theme/Widgets/DatetimeWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/DatetimeWidget.d.ts @@ -4,4 +4,4 @@ declare function DatetimeWidget({ value, children, className, format }: { children: any; className: any; format?: string; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/DescriptionWidget.d.ts b/packages/volto/types/components/theme/Widgets/DescriptionWidget.d.ts index 7525787f54..b17b8020ef 100644 --- a/packages/volto/types/components/theme/Widgets/DescriptionWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/DescriptionWidget.d.ts @@ -3,4 +3,4 @@ declare function DescriptionWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/EmailWidget.d.ts b/packages/volto/types/components/theme/Widgets/EmailWidget.d.ts index 4abbce55e8..7c5a023f2e 100644 --- a/packages/volto/types/components/theme/Widgets/EmailWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/EmailWidget.d.ts @@ -3,4 +3,4 @@ declare function EmailWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/FileWidget.d.ts b/packages/volto/types/components/theme/Widgets/FileWidget.d.ts index 5094797602..8d9cf3efdf 100644 --- a/packages/volto/types/components/theme/Widgets/FileWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/FileWidget.d.ts @@ -3,4 +3,4 @@ declare function FileWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/ImageWidget.d.ts b/packages/volto/types/components/theme/Widgets/ImageWidget.d.ts index 80debbac7b..45309644f6 100644 --- a/packages/volto/types/components/theme/Widgets/ImageWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/ImageWidget.d.ts @@ -2,4 +2,4 @@ export default ImageWidget; declare function ImageWidget({ value, className }: { value: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/PasswordWidget.d.ts b/packages/volto/types/components/theme/Widgets/PasswordWidget.d.ts index bc00c977c1..f7cefa4b60 100644 --- a/packages/volto/types/components/theme/Widgets/PasswordWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/PasswordWidget.d.ts @@ -3,4 +3,4 @@ declare function PasswordWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/RelationWidget.d.ts b/packages/volto/types/components/theme/Widgets/RelationWidget.d.ts index 30f9a36228..7d4f72d7ae 100644 --- a/packages/volto/types/components/theme/Widgets/RelationWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/RelationWidget.d.ts @@ -3,4 +3,4 @@ declare function RelationWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/RelationsWidget.d.ts b/packages/volto/types/components/theme/Widgets/RelationsWidget.d.ts index 0ab2701b90..b09ab42d5d 100644 --- a/packages/volto/types/components/theme/Widgets/RelationsWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/RelationsWidget.d.ts @@ -3,4 +3,4 @@ declare function RelationsWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/RichTextWidget.d.ts b/packages/volto/types/components/theme/Widgets/RichTextWidget.d.ts index 390a94c2ea..1379593cce 100644 --- a/packages/volto/types/components/theme/Widgets/RichTextWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/RichTextWidget.d.ts @@ -2,4 +2,4 @@ export default RichTextWidget; declare function RichTextWidget({ value, className }: { value: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/SelectWidget.d.ts b/packages/volto/types/components/theme/Widgets/SelectWidget.d.ts index 562e1beb43..a90efea800 100644 --- a/packages/volto/types/components/theme/Widgets/SelectWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/SelectWidget.d.ts @@ -3,4 +3,4 @@ declare function SelectWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/TextWidget.d.ts b/packages/volto/types/components/theme/Widgets/TextWidget.d.ts index 37c0d4d56a..c1b5a0f2ac 100644 --- a/packages/volto/types/components/theme/Widgets/TextWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/TextWidget.d.ts @@ -3,4 +3,4 @@ declare function TextWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/TitleWidget.d.ts b/packages/volto/types/components/theme/Widgets/TitleWidget.d.ts index daa5b02289..ad46514c57 100644 --- a/packages/volto/types/components/theme/Widgets/TitleWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/TitleWidget.d.ts @@ -3,4 +3,4 @@ declare function TitleWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/TokenWidget.d.ts b/packages/volto/types/components/theme/Widgets/TokenWidget.d.ts index 376859d06f..5d435c18d0 100644 --- a/packages/volto/types/components/theme/Widgets/TokenWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/TokenWidget.d.ts @@ -3,4 +3,4 @@ declare function TokenWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/components/theme/Widgets/UrlWidget.d.ts b/packages/volto/types/components/theme/Widgets/UrlWidget.d.ts index 4ea5e8e944..d282eec9e9 100644 --- a/packages/volto/types/components/theme/Widgets/UrlWidget.d.ts +++ b/packages/volto/types/components/theme/Widgets/UrlWidget.d.ts @@ -3,4 +3,4 @@ declare function UrlWidget({ value, children, className }: { value: any; children: any; className: any; -}): JSX.Element | ""; +}): import("react/jsx-runtime").JSX.Element | ""; diff --git a/packages/volto/types/config/Blocks.d.ts b/packages/volto/types/config/Blocks.d.ts index 4c5d9f4d62..4993b0b9c5 100644 --- a/packages/volto/types/config/Blocks.d.ts +++ b/packages/volto/types/config/Blocks.d.ts @@ -25,7 +25,7 @@ export namespace blocksConfig { isDefault: boolean; title: string; template: { - (props: any): JSX.Element; + (props: any): import("react/jsx-runtime").JSX.Element; propTypes: { data: any; isEditMode: any; diff --git a/packages/volto/types/config/RichTextEditor/ToHTML.d.ts b/packages/volto/types/config/RichTextEditor/ToHTML.d.ts index 447e878d5c..af7dc2b227 100644 --- a/packages/volto/types/config/RichTextEditor/ToHTML.d.ts +++ b/packages/volto/types/config/RichTextEditor/ToHTML.d.ts @@ -10,16 +10,16 @@ declare namespace renderers { declare namespace inline { function BOLD(children: any, { key }: { key: any; - }): JSX.Element; + }): import("react/jsx-runtime").JSX.Element; function ITALIC(children: any, { key }: { key: any; - }): JSX.Element; + }): import("react/jsx-runtime").JSX.Element; function UNDERLINE(children: any, { key }: { key: any; - }): JSX.Element; + }): import("react/jsx-runtime").JSX.Element; function CODE(children: any, { key }: { key: any; - }): JSX.Element; + }): import("react/jsx-runtime").JSX.Element; } /** * Note that children can be maped to render a list or do other cool stuff @@ -31,7 +31,7 @@ declare const blocks: { atomic: (children: any) => any; blockquote: (children: any, { keys }: { keys: any; - }) => JSX.Element; + }) => import("react/jsx-runtime").JSX.Element; 'header-one': (children: any, { keys }: { keys: any; }) => any; @@ -52,15 +52,15 @@ declare const blocks: { }) => any; 'code-block': (children: any, { keys }: { keys: any; - }) => JSX.Element; + }) => import("react/jsx-runtime").JSX.Element; 'unordered-list-item': (children: any, { depth, keys }: { depth: any; keys: any; - }) => JSX.Element; + }) => import("react/jsx-runtime").JSX.Element; 'ordered-list-item': (children: any, { depth, keys }: { depth: any; keys: any; - }) => JSX.Element; + }) => import("react/jsx-runtime").JSX.Element; callout: (children: any, { keys }: { keys: any; }) => any; @@ -68,8 +68,8 @@ declare const blocks: { declare namespace entities { function LINK(children: any, props: any, { key }: { key: any; - }): JSX.Element; + }): import("react/jsx-runtime").JSX.Element; function IMAGE(children: any, entity: any, { key }: { key: any; - }): JSX.Element; + }): import("react/jsx-runtime").JSX.Element; } diff --git a/packages/volto/types/config/Views.d.ts b/packages/volto/types/config/Views.d.ts index 881d5e501c..dba867048e 100644 --- a/packages/volto/types/config/Views.d.ts +++ b/packages/volto/types/config/Views.d.ts @@ -37,12 +37,12 @@ export const defaultView: import("react").FC; }; export const errorViews: { - 404: (props: any) => JSX.Element; - 401: (props: any) => JSX.Element; - 403: (props: any) => JSX.Element; + 404: (props: any) => import("react/jsx-runtime").JSX.Element; + 401: (props: any) => import("react/jsx-runtime").JSX.Element; + 403: (props: any) => import("react/jsx-runtime").JSX.Element; 408: () => string; - 500: (props: any) => JSX.Element; - ECONNREFUSED: () => JSX.Element; + 500: (props: any) => import("react/jsx-runtime").JSX.Element; + ECONNREFUSED: () => import("react/jsx-runtime").JSX.Element; corsError: () => string; }; export namespace layoutViewsNamesMapping { diff --git a/packages/volto/types/helpers/AsyncConnect/AsyncConnect.d.ts b/packages/volto/types/helpers/AsyncConnect/AsyncConnect.d.ts index 9655e467c5..0cae3853f5 100644 --- a/packages/volto/types/helpers/AsyncConnect/AsyncConnect.d.ts +++ b/packages/volto/types/helpers/AsyncConnect/AsyncConnect.d.ts @@ -13,7 +13,7 @@ export class AsyncConnect extends React.Component { [x: string]: any; reduxConnectStore: any; }): any; - render(): JSX.Element; + render(): import("react/jsx-runtime").JSX.Element; } export namespace AsyncConnect { namespace propTypes { @@ -39,7 +39,7 @@ export namespace AsyncConnect { export function AsyncConnectWithContext({ context, ...otherProps }: { [x: string]: any; context: any; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; export namespace AsyncConnectWithContext { export namespace propTypes_1 { let context: any; diff --git a/packages/volto/types/helpers/Extensions/withBlockExtensions.d.ts b/packages/volto/types/helpers/Extensions/withBlockExtensions.d.ts index f5a0786a4b..256f8c4b7f 100644 --- a/packages/volto/types/helpers/Extensions/withBlockExtensions.d.ts +++ b/packages/volto/types/helpers/Extensions/withBlockExtensions.d.ts @@ -41,4 +41,4 @@ export function resolveBlockExtensions(data: any, blocksConfig: any): { resolvedExtensions: any; }; export default withBlockExtensions; -declare function withBlockExtensions(WrappedComponent: any): (props: any) => JSX.Element; +declare function withBlockExtensions(WrappedComponent: any): (props: any) => import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts b/packages/volto/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts index 5d1fbaf55a..8802939cbf 100644 --- a/packages/volto/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts +++ b/packages/volto/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts @@ -20,16 +20,16 @@ export function addExtensionFieldToSchema({ schema, name, items, intl, title, de }): any; export function withBlockSchemaEnhancer(FormComponent: any, extensionName?: string, insertFieldToOrder?: typeof _addField): ({ ...props }: { [x: string]: any; -}) => JSX.Element; +}) => import("react/jsx-runtime").JSX.Element; export function applySchemaEnhancer({ schema: originalSchema, formData, intl, blocksConfig, navRoot, contentType, }: { schema: any; formData: any; intl: any; - blocksConfig?: import("@plone/registry/node_modules/@plone/types").BlocksConfigData; + blocksConfig?: import("@plone/types").BlocksConfigData; navRoot: any; contentType: any; }): any; -export function withVariationSchemaEnhancer(FormComponent: any): (props: any) => JSX.Element; +export function withVariationSchemaEnhancer(FormComponent: any): (props: any) => import("react/jsx-runtime").JSX.Element; export namespace EMPTY_STYLES_SCHEMA { let fieldsets: { id: string; diff --git a/packages/volto/types/helpers/Helmet/Helmet.d.ts b/packages/volto/types/helpers/Helmet/Helmet.d.ts index 08e6a63876..85bd8d4d2f 100644 --- a/packages/volto/types/helpers/Helmet/Helmet.d.ts +++ b/packages/volto/types/helpers/Helmet/Helmet.d.ts @@ -25,13 +25,11 @@ declare const HelmetExport: { mapArrayTypeChildrenToProps(arrayTypeChildren: any, newProps: any): any; warnOnInvalidChildren(child: any, nestedChildren: any): true | void; mapChildrenToProps(children: any, newProps: any): any; - render(): JSX.Element; - context: any; + render(): import("react/jsx-runtime").JSX.Element; + context: unknown; setState(state: any, callback?: () => void): void; forceUpdate(callback?: () => void): void; - readonly props: Readonly & Readonly<{ - children?: any; - }>; + readonly props: Readonly; state: Readonly; refs: { [key: string]: React.ReactInstance; @@ -72,13 +70,11 @@ declare const HelmetExport: { mapArrayTypeChildrenToProps(arrayTypeChildren: any, newProps: any): any; warnOnInvalidChildren(child: any, nestedChildren: any): true | void; mapChildrenToProps(children: any, newProps: any): any; - render(): JSX.Element; - context: any; + render(): import("react/jsx-runtime").JSX.Element; + context: unknown; setState(state: any, callback?: () => void): void; forceUpdate(callback?: () => void): void; - readonly props: Readonly & Readonly<{ - children?: any; - }>; + readonly props: Readonly; state: Readonly; refs: { [key: string]: React.ReactInstance; diff --git a/packages/volto/types/helpers/LanguageMap/LanguageMap.d.ts b/packages/volto/types/helpers/LanguageMap/LanguageMap.d.ts index 792b6f5756..583e50668d 100644 --- a/packages/volto/types/helpers/LanguageMap/LanguageMap.d.ts +++ b/packages/volto/types/helpers/LanguageMap/LanguageMap.d.ts @@ -1,2 +1,879 @@ export default langmap; -declare const langmap: any; +declare const langmap: { + ach: { + nativeName: string; + englishName: string; + }; + ady: { + nativeName: string; + englishName: string; + }; + af: { + nativeName: string; + englishName: string; + }; + 'af-NA': { + nativeName: string; + englishName: string; + }; + 'af-ZA': { + nativeName: string; + englishName: string; + }; + ak: { + nativeName: string; + englishName: string; + }; + ar: { + nativeName: string; + englishName: string; + }; + 'ar-AR': { + nativeName: string; + englishName: string; + }; + 'ar-MA': { + nativeName: string; + englishName: string; + }; + 'ar-SA': { + nativeName: string; + englishName: string; + }; + 'ay-BO': { + nativeName: string; + englishName: string; + }; + az: { + nativeName: string; + englishName: string; + }; + 'az-AZ': { + nativeName: string; + englishName: string; + }; + 'be-BY': { + nativeName: string; + englishName: string; + }; + bg: { + nativeName: string; + englishName: string; + }; + 'bg-BG': { + nativeName: string; + englishName: string; + }; + bn: { + nativeName: string; + englishName: string; + }; + 'bn-IN': { + nativeName: string; + englishName: string; + }; + 'bn-BD': { + nativeName: string; + englishName: string; + }; + br: { + nativeName: string; + englishName: string; + }; + bs: { + nativeName: string; + englishName: string; + }; + 'bs-BA': { + nativeName: string; + englishName: string; + }; + ca: { + nativeName: string; + englishName: string; + }; + 'ca-ES': { + nativeName: string; + englishName: string; + }; + cak: { + nativeName: string; + englishName: string; + }; + 'ck-US': { + nativeName: string; + englishName: string; + }; + cs: { + nativeName: string; + englishName: string; + }; + 'cs-CZ': { + nativeName: string; + englishName: string; + }; + cy: { + nativeName: string; + englishName: string; + }; + 'cy-GB': { + nativeName: string; + englishName: string; + }; + da: { + nativeName: string; + englishName: string; + }; + 'da-DK': { + nativeName: string; + englishName: string; + }; + de: { + nativeName: string; + englishName: string; + }; + 'de-AT': { + nativeName: string; + englishName: string; + }; + 'de-DE': { + nativeName: string; + englishName: string; + }; + 'de-CH': { + nativeName: string; + englishName: string; + }; + dsb: { + nativeName: string; + englishName: string; + }; + el: { + nativeName: string; + englishName: string; + }; + 'el-GR': { + nativeName: string; + englishName: string; + }; + en: { + nativeName: string; + englishName: string; + }; + 'en-GB': { + nativeName: string; + englishName: string; + }; + 'en-AU': { + nativeName: string; + englishName: string; + }; + 'en-CA': { + nativeName: string; + englishName: string; + }; + 'en-IE': { + nativeName: string; + englishName: string; + }; + 'en-IN': { + nativeName: string; + englishName: string; + }; + 'en-PI': { + nativeName: string; + englishName: string; + }; + 'en-UD': { + nativeName: string; + englishName: string; + }; + 'en-US': { + nativeName: string; + englishName: string; + }; + 'en-ZA': { + nativeName: string; + englishName: string; + }; + 'en@pirate': { + nativeName: string; + englishName: string; + }; + eo: { + nativeName: string; + englishName: string; + }; + 'eo-EO': { + nativeName: string; + englishName: string; + }; + es: { + nativeName: string; + englishName: string; + }; + 'es-AR': { + nativeName: string; + englishName: string; + }; + 'es-419': { + nativeName: string; + englishName: string; + }; + 'es-CL': { + nativeName: string; + englishName: string; + }; + 'es-CO': { + nativeName: string; + englishName: string; + }; + 'es-EC': { + nativeName: string; + englishName: string; + }; + 'es-ES': { + nativeName: string; + englishName: string; + }; + 'es-LA': { + nativeName: string; + englishName: string; + }; + 'es-NI': { + nativeName: string; + englishName: string; + }; + 'es-MX': { + nativeName: string; + englishName: string; + }; + 'es-US': { + nativeName: string; + englishName: string; + }; + 'es-VE': { + nativeName: string; + englishName: string; + }; + et: { + nativeName: string; + englishName: string; + }; + 'et-EE': { + nativeName: string; + englishName: string; + }; + eu: { + nativeName: string; + englishName: string; + }; + 'eu-ES': { + nativeName: string; + englishName: string; + }; + fa: { + nativeName: string; + englishName: string; + }; + 'fa-IR': { + nativeName: string; + englishName: string; + }; + 'fb-LT': { + nativeName: string; + englishName: string; + }; + ff: { + nativeName: string; + englishName: string; + }; + fi: { + nativeName: string; + englishName: string; + }; + 'fi-FI': { + nativeName: string; + englishName: string; + }; + 'fo-FO': { + nativeName: string; + englishName: string; + }; + fr: { + nativeName: string; + englishName: string; + }; + 'fr-CA': { + nativeName: string; + englishName: string; + }; + 'fr-FR': { + nativeName: string; + englishName: string; + }; + 'fr-BE': { + nativeName: string; + englishName: string; + }; + 'fr-CH': { + nativeName: string; + englishName: string; + }; + 'fy-NL': { + nativeName: string; + englishName: string; + }; + ga: { + nativeName: string; + englishName: string; + }; + 'ga-IE': { + nativeName: string; + englishName: string; + }; + gd: { + nativeName: string; + englishName: string; + }; + gl: { + nativeName: string; + englishName: string; + }; + 'gl-ES': { + nativeName: string; + englishName: string; + }; + 'gn-PY': { + nativeName: string; + englishName: string; + }; + 'gu-IN': { + nativeName: string; + englishName: string; + }; + gv: { + nativeName: string; + englishName: string; + }; + 'gx-GR': { + nativeName: string; + englishName: string; + }; + he: { + nativeName: string; + englishName: string; + }; + 'he-IL': { + nativeName: string; + englishName: string; + }; + hi: { + nativeName: string; + englishName: string; + }; + 'hi-IN': { + nativeName: string; + englishName: string; + }; + hr: { + nativeName: string; + englishName: string; + }; + 'hr-HR': { + nativeName: string; + englishName: string; + }; + hsb: { + nativeName: string; + englishName: string; + }; + ht: { + nativeName: string; + englishName: string; + }; + hu: { + nativeName: string; + englishName: string; + }; + 'hu-HU': { + nativeName: string; + englishName: string; + }; + 'hy-AM': { + nativeName: string; + englishName: string; + }; + id: { + nativeName: string; + englishName: string; + }; + 'id-ID': { + nativeName: string; + englishName: string; + }; + is: { + nativeName: string; + englishName: string; + }; + 'is-IS': { + nativeName: string; + englishName: string; + }; + it: { + nativeName: string; + englishName: string; + }; + 'it-IT': { + nativeName: string; + englishName: string; + }; + ja: { + nativeName: string; + englishName: string; + }; + 'ja-JP': { + nativeName: string; + englishName: string; + }; + 'jv-ID': { + nativeName: string; + englishName: string; + }; + 'ka-GE': { + nativeName: string; + englishName: string; + }; + 'kk-KZ': { + nativeName: string; + englishName: string; + }; + km: { + nativeName: string; + englishName: string; + }; + 'km-KH': { + nativeName: string; + englishName: string; + }; + kab: { + nativeName: string; + englishName: string; + }; + kn: { + nativeName: string; + englishName: string; + }; + 'kn-IN': { + nativeName: string; + englishName: string; + }; + ko: { + nativeName: string; + englishName: string; + }; + 'ko-KR': { + nativeName: string; + englishName: string; + }; + 'ku-TR': { + nativeName: string; + englishName: string; + }; + kw: { + nativeName: string; + englishName: string; + }; + la: { + nativeName: string; + englishName: string; + }; + 'la-VA': { + nativeName: string; + englishName: string; + }; + lb: { + nativeName: string; + englishName: string; + }; + 'li-NL': { + nativeName: string; + englishName: string; + }; + lt: { + nativeName: string; + englishName: string; + }; + 'lt-LT': { + nativeName: string; + englishName: string; + }; + lv: { + nativeName: string; + englishName: string; + }; + 'lv-LV': { + nativeName: string; + englishName: string; + }; + mai: { + nativeName: string; + englishName: string; + }; + 'mg-MG': { + nativeName: string; + englishName: string; + }; + mk: { + nativeName: string; + englishName: string; + }; + 'mk-MK': { + nativeName: string; + englishName: string; + }; + ml: { + nativeName: string; + englishName: string; + }; + 'ml-IN': { + nativeName: string; + englishName: string; + }; + 'mn-MN': { + nativeName: string; + englishName: string; + }; + mr: { + nativeName: string; + englishName: string; + }; + 'mr-IN': { + nativeName: string; + englishName: string; + }; + ms: { + nativeName: string; + englishName: string; + }; + 'ms-MY': { + nativeName: string; + englishName: string; + }; + mt: { + nativeName: string; + englishName: string; + }; + 'mt-MT': { + nativeName: string; + englishName: string; + }; + my: { + nativeName: string; + englishName: string; + }; + no: { + nativeName: string; + englishName: string; + }; + nb: { + nativeName: string; + englishName: string; + }; + 'nb-NO': { + nativeName: string; + englishName: string; + }; + ne: { + nativeName: string; + englishName: string; + }; + 'ne-NP': { + nativeName: string; + englishName: string; + }; + nl: { + nativeName: string; + englishName: string; + }; + 'nl-BE': { + nativeName: string; + englishName: string; + }; + 'nl-NL': { + nativeName: string; + englishName: string; + }; + 'nn-NO': { + nativeName: string; + englishName: string; + }; + oc: { + nativeName: string; + englishName: string; + }; + 'or-IN': { + nativeName: string; + englishName: string; + }; + pa: { + nativeName: string; + englishName: string; + }; + 'pa-IN': { + nativeName: string; + englishName: string; + }; + pl: { + nativeName: string; + englishName: string; + }; + 'pl-PL': { + nativeName: string; + englishName: string; + }; + 'ps-AF': { + nativeName: string; + englishName: string; + }; + pt: { + nativeName: string; + englishName: string; + }; + 'pt-BR': { + nativeName: string; + englishName: string; + }; + 'pt-PT': { + nativeName: string; + englishName: string; + }; + 'qu-PE': { + nativeName: string; + englishName: string; + }; + 'rm-CH': { + nativeName: string; + englishName: string; + }; + ro: { + nativeName: string; + englishName: string; + }; + 'ro-RO': { + nativeName: string; + englishName: string; + }; + ru: { + nativeName: string; + englishName: string; + }; + 'ru-RU': { + nativeName: string; + englishName: string; + }; + 'sa-IN': { + nativeName: string; + englishName: string; + }; + 'se-NO': { + nativeName: string; + englishName: string; + }; + sh: { + nativeName: string; + englishName: string; + }; + 'si-LK': { + nativeName: string; + englishName: string; + }; + sk: { + nativeName: string; + englishName: string; + }; + 'sk-SK': { + nativeName: string; + englishName: string; + }; + sl: { + nativeName: string; + englishName: string; + }; + 'sl-SI': { + nativeName: string; + englishName: string; + }; + 'so-SO': { + nativeName: string; + englishName: string; + }; + sq: { + nativeName: string; + englishName: string; + }; + 'sq-AL': { + nativeName: string; + englishName: string; + }; + sr: { + nativeName: string; + englishName: string; + }; + 'sr-RS': { + nativeName: string; + englishName: string; + }; + su: { + nativeName: string; + englishName: string; + }; + sv: { + nativeName: string; + englishName: string; + }; + 'sv-SE': { + nativeName: string; + englishName: string; + }; + sw: { + nativeName: string; + englishName: string; + }; + 'sw-KE': { + nativeName: string; + englishName: string; + }; + ta: { + nativeName: string; + englishName: string; + }; + 'ta-IN': { + nativeName: string; + englishName: string; + }; + te: { + nativeName: string; + englishName: string; + }; + 'te-IN': { + nativeName: string; + englishName: string; + }; + tg: { + nativeName: string; + englishName: string; + }; + 'tg-TJ': { + nativeName: string; + englishName: string; + }; + th: { + nativeName: string; + englishName: string; + }; + 'th-TH': { + nativeName: string; + englishName: string; + }; + tl: { + nativeName: string; + englishName: string; + }; + 'tl-PH': { + nativeName: string; + englishName: string; + }; + tlh: { + nativeName: string; + englishName: string; + }; + tr: { + nativeName: string; + englishName: string; + }; + 'tr-TR': { + nativeName: string; + englishName: string; + }; + 'tt-RU': { + nativeName: string; + englishName: string; + }; + uk: { + nativeName: string; + englishName: string; + }; + 'uk-UA': { + nativeName: string; + englishName: string; + }; + ur: { + nativeName: string; + englishName: string; + }; + 'ur-PK': { + nativeName: string; + englishName: string; + }; + uz: { + nativeName: string; + englishName: string; + }; + 'uz-UZ': { + nativeName: string; + englishName: string; + }; + vi: { + nativeName: string; + englishName: string; + }; + 'vi-VN': { + nativeName: string; + englishName: string; + }; + 'xh-ZA': { + nativeName: string; + englishName: string; + }; + yi: { + nativeName: string; + englishName: string; + }; + 'yi-DE': { + nativeName: string; + englishName: string; + }; + zh: { + nativeName: string; + englishName: string; + }; + 'zh-Hans': { + nativeName: string; + englishName: string; + }; + 'zh-Hant': { + nativeName: string; + englishName: string; + }; + 'zh-CN': { + nativeName: string; + englishName: string; + }; + 'zh-HK': { + nativeName: string; + englishName: string; + }; + 'zh-SG': { + nativeName: string; + englishName: string; + }; + 'zh-TW': { + nativeName: string; + englishName: string; + }; + 'zu-ZA': { + nativeName: string; + englishName: string; + }; +}; diff --git a/packages/volto/types/helpers/Slots/index.d.ts b/packages/volto/types/helpers/Slots/index.d.ts new file mode 100644 index 0000000000..7d94a56717 --- /dev/null +++ b/packages/volto/types/helpers/Slots/index.d.ts @@ -0,0 +1,7 @@ +import type { Content } from '@plone/types'; +export declare function RouteCondition(path: string, exact?: boolean): ({ pathname }: { + pathname: string; +}) => boolean; +export declare function ContentTypeCondition(contentType: string[]): ({ content }: { + content: Content; +}) => boolean; diff --git a/packages/volto/types/helpers/Utils/Date.d.ts b/packages/volto/types/helpers/Utils/Date.d.ts index acc817eca3..529d16901c 100644 --- a/packages/volto/types/helpers/Utils/Date.d.ts +++ b/packages/volto/types/helpers/Utils/Date.d.ts @@ -8,14 +8,14 @@ export function formatDate({ date, format, locale, long, includeTime, formatToPa long: any; includeTime: any; formatToParts?: boolean; -}): any; +}): string | Intl.DateTimeFormatPart[]; export function formatRelativeDate({ date, locale, relativeTo, style, formatToParts, }: { date: any; locale?: string; relativeTo: any; style?: string; formatToParts?: boolean; -}): any; +}): string | Intl.RelativeTimeFormatPart[]; export namespace short_date_format { let year: string; let month: string; diff --git a/packages/volto/types/helpers/Utils/UseDetectClickOutside.stories.d.ts b/packages/volto/types/helpers/Utils/UseDetectClickOutside.stories.d.ts index e3a5cd36cc..64a6a24ac2 100644 --- a/packages/volto/types/helpers/Utils/UseDetectClickOutside.stories.d.ts +++ b/packages/volto/types/helpers/Utils/UseDetectClickOutside.stories.d.ts @@ -5,7 +5,7 @@ export const WithPortalAndPopperUsingBlockChooser: any; declare namespace _default { export let title: string; export { TestComponent as component }; - export let decorators: ((Story: any) => JSX.Element)[]; + export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[]; } export default _default; -declare function TestComponent(props: any): JSX.Element; +declare function TestComponent(props: any): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/helpers/Utils/Utils.d.ts b/packages/volto/types/helpers/Utils/Utils.d.ts index a486fa8285..991de81458 100644 --- a/packages/volto/types/helpers/Utils/Utils.d.ts +++ b/packages/volto/types/helpers/Utils/Utils.d.ts @@ -19,7 +19,7 @@ export function applyConfig(configMethods: any[], config: any): any; * * @param {} code HTTP return code */ -export function withServerErrorCode(code: any): (WrappedComponent: any) => (props: any) => JSX.Element; +export function withServerErrorCode(code: any): (WrappedComponent: any) => (props: any) => import("react/jsx-runtime").JSX.Element; /** * Normalize (unicode) string to a normalized plain ascii string * @method normalizeString diff --git a/packages/volto/types/helpers/index.d.ts b/packages/volto/types/helpers/index.d.ts index 4484c99b46..cfa38f3c3a 100644 --- a/packages/volto/types/helpers/index.d.ts +++ b/packages/volto/types/helpers/index.d.ts @@ -17,6 +17,7 @@ export { default as useUndoManager } from "./UndoManager/useUndoManager"; export { getCookieOptions } from "./Cookies/cookies"; export { getWidgetView } from "./Widget/widget"; export { getSiteAsyncPropExtender } from "./Site"; +export { ContentTypeCondition } from "./Slots"; export { getAuthToken, persistAuthToken } from "@plone/volto/helpers/AuthToken/AuthToken"; export { addAppURL, expandToBackendURL, flattenHTMLToAppURL, flattenToAppURL, stripQuerystring, toPublicURL, isInternalURL, getParentUrl, getBaseUrl, getView, isCmsUi, getId, isUrl, normalizeUrl, removeProtocol, URLUtils, flattenScales } from "@plone/volto/helpers/Url/Url"; export { nestContent, getLayoutFieldname, getContentIcon, getLanguageIndependentFields } from "@plone/volto/helpers/Content/Content"; diff --git a/packages/volto/types/reducers/blocksClipboard/blocksClipboard.d.ts b/packages/volto/types/reducers/blocksClipboard/blocksClipboard.d.ts index 748881d834..c58f548f45 100644 --- a/packages/volto/types/reducers/blocksClipboard/blocksClipboard.d.ts +++ b/packages/volto/types/reducers/blocksClipboard/blocksClipboard.d.ts @@ -1 +1 @@ -export default function blocks(state?: {}, action?: {}): any; +export default function blocks(state?: {}, action?: {}): {}; diff --git a/packages/volto/types/routes.d.ts b/packages/volto/types/routes.d.ts index bbfab68149..58108a6598 100644 --- a/packages/volto/types/routes.d.ts +++ b/packages/volto/types/routes.d.ts @@ -1,5 +1,5 @@ export function getExternalRoutes(): { - component: (props: any) => JSX.Element; + component: (props: any) => import("react/jsx-runtime").JSX.Element; }[]; /** * Default routes array. @@ -24,7 +24,7 @@ export const defaultRoutes: ({ component: any; exact: boolean; } | { - component: (props: any) => JSX.Element; + component: (props: any) => import("react/jsx-runtime").JSX.Element; } | { path: string[]; component: any; @@ -47,7 +47,7 @@ declare const routes: { component: any; exact: boolean; } | { - component: (props: any) => JSX.Element; + component: (props: any) => import("react/jsx-runtime").JSX.Element; } | { path: string[]; component: any; diff --git a/packages/volto/types/storybook.d.ts b/packages/volto/types/storybook.d.ts index 46be7b1c76..4acebcb73e 100644 --- a/packages/volto/types/storybook.d.ts +++ b/packages/volto/types/storybook.d.ts @@ -1049,7 +1049,7 @@ export default class Wrapper extends React.Component { }; lazyLibraries: {}; }; - render(): JSX.Element; + render(): import("react/jsx-runtime").JSX.Element; } export class RealStoreWrapper extends React.Component { /** @@ -2097,11 +2097,11 @@ export class RealStoreWrapper extends React.Component { }; lazyLibraries: {}; }; - render(): JSX.Element; + render(): import("react/jsx-runtime").JSX.Element; } export function FormUndoWrapper({ initialState, children, showControls, }: { initialState?: {}; children: any; showControls?: boolean; -}): JSX.Element; +}): import("react/jsx-runtime").JSX.Element; import React from 'react';