@plone/volto 18.0.0-alpha.6 → 18.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.release-it.json +2 -3
- package/CHANGELOG.md +49 -0
- package/locales/ca/LC_MESSAGES/volto.po +930 -933
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +930 -931
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +930 -930
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +932 -936
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +930 -930
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +930 -936
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +933 -943
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +930 -930
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +930 -933
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +930 -945
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +930 -933
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +930 -934
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +930 -930
- package/locales/ro.json +1 -1
- package/locales/volto.pot +932 -936
- package/locales/zh_CN/LC_MESSAGES/volto.po +930 -930
- package/locales/zh_CN.json +1 -1
- package/package.json +10 -8
- package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +7 -2
- package/src/components/manage/Contents/Contents.jsx +4 -8
- package/src/components/manage/LinksToItem/LinksToItem.jsx +22 -2
- package/src/components/manage/LinksToItem/LinksToItem.test.jsx +13 -1
- package/src/components/manage/Sidebar/SidebarPortal.jsx +1 -1
- package/src/components/manage/Widgets/ColorPickerWidget.stories.tsx +48 -0
- package/src/components/manage/Widgets/{ColorPickerWidget.jsx → ColorPickerWidget.tsx} +40 -23
- package/src/components/manage/Widgets/ObjectBrowserWidget.jsx +13 -3
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +1 -1
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.test.jsx +1 -1
- package/src/config/Blocks.jsx +1 -1
- package/src/helpers/Blocks/Blocks.js +10 -2
- package/src/helpers/Blocks/Blocks.test.js +20 -0
- package/src/helpers/Extensions/withBlockSchemaEnhancer.js +3 -1
- package/src/server.jsx +1 -1
- package/theme/themes/pastanaga/extras/blocks.less +7 -0
- package/tsconfig.declarations.json +16 -0
- package/types/actions/authRole/authRole.d.ts +1 -1
- package/types/actions/comments/comments.d.ts +1 -1
- package/types/actions/content/content.d.ts +1 -1
- package/types/actions/controlpanels/controlpanels.d.ts +2 -2
- package/types/actions/index.d.ts +36 -0
- package/types/actions/upgrade/upgrade.d.ts +2 -2
- package/types/components/index.d.ts +180 -0
- package/types/components/manage/Add/Add.d.ts +3 -2
- package/types/components/manage/Aliases/Aliases.d.ts +4 -1
- package/types/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.d.ts +3 -2
- package/types/components/manage/BlockChooser/BlockChooser.d.ts +2 -1
- package/types/components/manage/Blocks/Block/Edit.d.ts +5 -5
- package/types/components/manage/Blocks/Block/EditBlockWrapper.d.ts +3 -2
- package/types/components/manage/Blocks/Block/Settings.d.ts +3 -2
- package/types/components/manage/Blocks/Grid/View.d.ts +1 -1
- package/types/components/manage/Blocks/Grid/templates.d.ts +1 -1
- package/types/components/manage/Blocks/HeroImageLeft/Edit.d.ts +4 -1
- package/types/components/manage/Blocks/Image/Edit.d.ts +3 -2
- package/types/components/manage/Blocks/Image/LayoutSchema.d.ts +36 -1
- package/types/components/manage/Blocks/Image/View.d.ts +3 -2
- package/types/components/manage/Blocks/LeadImage/Edit.d.ts +3 -2
- package/types/components/manage/Blocks/LeadImage/LeadImageSidebar.d.ts +5 -4
- package/types/components/manage/Blocks/Listing/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/Listing/ListingBody.d.ts +3 -2
- package/types/components/manage/Blocks/Listing/View.d.ts +1 -1
- package/types/components/manage/Blocks/Maps/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/Maps/View.d.ts +1 -3
- package/types/components/manage/Blocks/Search/SearchBlockView.d.ts +1 -1
- package/types/components/manage/Blocks/Search/components/SortOn.d.ts +1 -3
- package/types/components/manage/Blocks/Search/components/ViewSwitcher.d.ts +1 -3
- package/types/components/manage/Blocks/Search/schema.d.ts +1 -1
- package/types/components/manage/Blocks/Search/utils.d.ts +2 -2
- package/types/components/manage/Blocks/Teaser/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/Teaser/View.d.ts +1 -1
- package/types/components/manage/Blocks/Text/Edit.d.ts +3 -5
- package/types/components/manage/Blocks/Text/Schema.d.ts +36 -1
- package/types/components/manage/Blocks/ToC/Edit.d.ts +2 -2
- package/types/components/manage/Blocks/ToC/View.d.ts +3 -2
- package/types/components/manage/Blocks/ToC/variations/DefaultTocRenderer.d.ts +3 -2
- package/types/components/manage/Blocks/ToC/variations/HorizontalMenu.d.ts +3 -2
- package/types/components/manage/Blocks/Video/Body.test.d.ts +1 -0
- package/types/components/manage/Blocks/Video/Edit.d.ts +1 -3
- package/types/components/manage/Blocks/Video/View.d.ts +1 -1
- package/types/components/manage/Contents/Contents.d.ts +5 -4
- package/types/components/manage/Contents/ContentsTagsModal.stories.d.ts +0 -1
- package/types/components/manage/Contents/ContentsUploadModal.d.ts +4 -1
- package/types/components/manage/Controlpanels/AddonsControlpanel.d.ts +4 -1
- package/types/components/manage/Controlpanels/Aliases.d.ts +4 -1
- package/types/components/manage/Controlpanels/ContentType.d.ts +4 -1
- package/types/components/manage/Controlpanels/ContentTypeLayout.d.ts +4 -1
- package/types/components/manage/Controlpanels/ContentTypeSchema.d.ts +4 -1
- package/types/components/manage/Controlpanels/ContentTypes.d.ts +4 -1
- package/types/components/manage/Controlpanels/ContentTypesActions.d.ts +3 -2
- package/types/components/manage/Controlpanels/Controlpanel.d.ts +3 -2
- package/types/components/manage/Controlpanels/Controlpanels.d.ts +1 -16
- package/types/components/manage/Controlpanels/DatabaseInformation.d.ts +4 -1
- package/types/components/manage/Controlpanels/Groups/GroupsControlpanel.d.ts +4 -1
- package/types/components/manage/Controlpanels/Groups/RenderGroups.d.ts +3 -2
- package/types/components/manage/Controlpanels/ModerateComments.d.ts +4 -1
- package/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts +43 -1
- package/types/components/manage/Controlpanels/Rules/AddRule.d.ts +4 -1
- package/types/components/manage/Controlpanels/Rules/ConfigureRule.d.ts +4 -1
- package/types/components/manage/Controlpanels/Rules/EditRule.d.ts +4 -1
- package/types/components/manage/Controlpanels/Rules/Rules.d.ts +4 -1
- package/types/components/manage/Controlpanels/Rules/components/VariableModal.d.ts +4 -1
- package/types/components/manage/Controlpanels/UndoControlpanel.d.ts +4 -1
- package/types/components/manage/Controlpanels/UpgradeControlPanel.d.ts +4 -1
- package/types/components/manage/Controlpanels/Users/RenderUsers.d.ts +4 -1
- package/types/components/manage/Controlpanels/Users/UsersControlpanel.d.ts +4 -1
- package/types/components/manage/Display/Display.d.ts +3 -2
- package/types/components/manage/Edit/Edit.d.ts +6 -3
- package/types/components/manage/Form/BlocksToolbar.d.ts +5 -2
- package/types/components/manage/Form/Field.d.ts +3 -2
- package/types/components/manage/Form/Form.d.ts +1 -3
- package/types/components/manage/Form/InlineForm.d.ts +3 -2
- package/types/components/manage/Form/ModalForm.d.ts +3 -2
- package/types/components/manage/History/History.d.ts +3 -2
- package/types/components/manage/LinksToItem/LinksToItem.d.ts +3 -2
- package/types/components/manage/Multilingual/CompareLanguages.d.ts +2 -1
- package/types/components/manage/Multilingual/ManageTranslations.d.ts +43 -1
- package/types/components/manage/Pluggable/index.d.ts +8 -7
- package/types/components/manage/Preferences/PersonalPreferences.d.ts +4 -1
- package/types/components/manage/Rules/Rules.d.ts +4 -1
- package/types/components/manage/Sidebar/ObjectBrowser.d.ts +25 -2
- package/types/components/manage/Sidebar/ObjectBrowserBody.d.ts +4 -1
- package/types/components/manage/Sidebar/Sidebar.d.ts +2 -1
- package/types/components/manage/Sidebar/SidebarPortal.d.ts +2 -2
- package/types/components/manage/Toolbar/More.d.ts +3 -2
- package/types/components/manage/Toolbar/Toolbar.d.ts +4 -1
- package/types/components/manage/Toolbar/Types.d.ts +1 -20
- package/types/components/manage/Widgets/ArrayWidget.d.ts +5 -4
- package/types/components/manage/Widgets/CheckboxWidget.d.ts +3 -2
- package/types/components/manage/Widgets/ColorPickerWidget.d.ts +22 -21
- package/types/components/manage/Widgets/ColorPickerWidget.stories.d.ts +7 -8
- package/types/components/manage/Widgets/DatetimeWidget.d.ts +2 -2
- package/types/components/manage/Widgets/FileWidget.d.ts +3 -2
- package/types/components/manage/Widgets/FormFieldWrapper.d.ts +3 -2
- package/types/components/manage/Widgets/IdWidget.d.ts +4 -1
- package/types/components/manage/Widgets/ImageSizeWidget.d.ts +3 -2
- package/types/components/manage/Widgets/InternalUrlWidget.d.ts +43 -1
- package/types/components/manage/Widgets/NumberWidget.d.ts +3 -2
- package/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +9 -9
- package/types/components/manage/Widgets/PasswordWidget.d.ts +3 -2
- package/types/components/manage/Widgets/QueryWidget.d.ts +4 -4
- package/types/components/manage/Widgets/RecurrenceWidget/ByMonthDayField.d.ts +3 -2
- package/types/components/manage/Widgets/RecurrenceWidget/ByMonthField.d.ts +3 -2
- package/types/components/manage/Widgets/RecurrenceWidget/ByYearField.d.ts +3 -2
- package/types/components/manage/Widgets/RecurrenceWidget/EndField.d.ts +3 -2
- package/types/components/manage/Widgets/RecurrenceWidget/Occurences.d.ts +3 -2
- package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.d.ts +3 -2
- package/types/components/manage/Widgets/ReferenceWidget.d.ts +4 -1
- package/types/components/manage/Widgets/RegistryImageWidget.d.ts +3 -2
- package/types/components/manage/Widgets/SchemaWidget.d.ts +3 -2
- package/types/components/manage/Widgets/SelectAutoComplete.d.ts +5 -4
- package/types/components/manage/Widgets/SelectWidget.d.ts +3 -2
- package/types/components/manage/Widgets/TextWidget.d.ts +3 -2
- package/types/components/manage/Widgets/TextareaWidget.d.ts +3 -2
- package/types/components/manage/Widgets/TokenWidget.d.ts +3 -2
- package/types/components/manage/Widgets/UrlWidget.d.ts +43 -1
- package/types/components/manage/Widgets/WysiwygWidget.d.ts +3 -2
- package/types/components/theme/App/App.d.ts +4 -4
- package/types/components/theme/AppExtras/AppExtras.d.ts +1 -1
- package/types/components/theme/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -2
- package/types/components/theme/Error/ErrorBoundary.d.ts +2 -2
- package/types/components/theme/Error/ServerError.d.ts +1 -1
- package/types/components/theme/Footer/Footer.d.ts +3 -2
- package/types/components/theme/Forbidden/Forbidden.d.ts +1 -1
- package/types/components/theme/Navigation/ContextNavigation.d.ts +1 -1
- package/types/components/theme/NotFound/NotFound.d.ts +1 -1
- package/types/components/theme/Pagination/Pagination.d.ts +3 -2
- package/types/components/theme/Search/Search.d.ts +6 -3
- package/types/components/theme/Sitemap/Sitemap.d.ts +4 -2
- package/types/components/theme/TsTest/TsTest.d.ts +11 -0
- package/types/components/theme/TsTest/TsTest.test.d.ts +1 -0
- package/types/components/theme/Unauthorized/Unauthorized.d.ts +1 -1
- package/types/components/theme/View/AlbumView.d.ts +2 -1
- package/types/components/theme/View/DefaultView.d.ts +3 -2
- package/types/components/theme/View/RenderBlocks.d.ts +1 -1
- package/types/components/theme/View/View.d.ts +4 -1
- package/types/components/theme/Widgets/ArrayWidget.d.ts +1 -1
- package/types/components/theme/Widgets/BooleanWidget.d.ts +3 -2
- package/types/components/theme/Widgets/DateWidget.d.ts +1 -1
- package/types/components/theme/Widgets/DatetimeWidget.d.ts +1 -1
- package/types/components/theme/Widgets/DescriptionWidget.d.ts +1 -1
- package/types/components/theme/Widgets/EmailWidget.d.ts +1 -1
- package/types/components/theme/Widgets/FileWidget.d.ts +1 -1
- package/types/components/theme/Widgets/ImageWidget.d.ts +1 -1
- package/types/components/theme/Widgets/PasswordWidget.d.ts +1 -1
- package/types/components/theme/Widgets/RelationWidget.d.ts +1 -1
- package/types/components/theme/Widgets/RelationsWidget.d.ts +1 -1
- package/types/components/theme/Widgets/RichTextWidget.d.ts +1 -1
- package/types/components/theme/Widgets/SelectWidget.d.ts +1 -1
- package/types/components/theme/Widgets/TextWidget.d.ts +1 -1
- package/types/components/theme/Widgets/TitleWidget.d.ts +1 -1
- package/types/components/theme/Widgets/TokenWidget.d.ts +1 -1
- package/types/components/theme/Widgets/UrlWidget.d.ts +1 -1
- package/types/config/Blocks.d.ts +20 -1
- package/types/config/Components.d.ts +3 -0
- package/types/config/ContentIcons.d.ts +7 -7
- package/types/config/ControlPanels.d.ts +21 -21
- package/types/config/RichTextEditor/index.d.ts +8 -5
- package/types/config/Views.d.ts +40 -11
- package/types/config/Widgets.d.ts +58 -4
- package/types/error.d.ts +3 -2
- package/types/helpers/AsyncConnect/AsyncConnect.d.ts +2 -2
- package/types/helpers/Blocks/Blocks.d.ts +3 -1
- package/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts +2 -2
- package/types/helpers/Helmet/Helmet.d.ts +71 -1
- package/types/helpers/Html/Html.d.ts +2 -2
- package/types/helpers/LanguageMap/LanguageMap.d.ts +1 -878
- package/types/helpers/Loadable/__mocks__/Loadable.d.ts +2 -2
- package/types/helpers/MessageLabels/MessageLabels.d.ts +1 -540
- package/types/helpers/ScrollToTop/ScrollToTop.d.ts +1 -1
- package/types/helpers/UndoManager/useUndoManager.d.ts +4 -4
- package/types/helpers/Url/Url.d.ts +3 -3
- package/types/helpers/Utils/Date.d.ts +2 -2
- package/types/helpers/Utils/usePagination.d.ts +1 -1
- package/types/helpers/Utils/usePrevious.d.ts +1 -1
- package/types/helpers/index.d.ts +12 -0
- package/types/hooks/index.d.ts +2 -1
- package/types/middleware/index.d.ts +2 -0
- package/types/reducers/blocksClipboard/blocksClipboard.d.ts +1 -1
- package/types/reducers/index.d.ts +40 -0
- package/types/registry.d.ts +1 -0
- package/types/routes.d.ts +31 -3
- package/types/server.d.ts +1 -1
- package/types/storybook.d.ts +3 -3
- package/src/components/manage/Widgets/ColorPickerWidget.stories.jsx +0 -30
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<any>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<any>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & React.RefAttributes<React.ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export const SelectAutoCompleteComponent:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
export const SelectAutoCompleteComponent: React.FC<import("react-intl").WithIntlProps<any>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<any>;
|
|
3
3
|
};
|
|
4
|
-
declare const _default:
|
|
5
|
-
WrappedComponent:
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & React.RefAttributes<React.ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
|
|
5
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
|
+
import React from 'react';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export const SelectWidgetComponent:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
export const SelectWidgetComponent: React.FC<import("react-intl").WithIntlProps<any>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<any>;
|
|
3
3
|
};
|
|
4
4
|
declare const _default: any;
|
|
5
5
|
export default _default;
|
|
6
|
+
import React from 'react';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<any>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<any>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<any>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<any>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & React.RefAttributes<React.ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -36,5 +36,47 @@ export namespace UrlWidget {
|
|
|
36
36
|
export { maxLength_1 as maxLength };
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
declare const _default:
|
|
39
|
+
declare const _default: {
|
|
40
|
+
new (): {
|
|
41
|
+
state: {
|
|
42
|
+
isObjectBrowserOpen: boolean;
|
|
43
|
+
};
|
|
44
|
+
openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: {
|
|
45
|
+
mode: string;
|
|
46
|
+
dataName: string;
|
|
47
|
+
onSelectItem: string;
|
|
48
|
+
overlay: string;
|
|
49
|
+
}) => void;
|
|
50
|
+
closeObjectBrowser: () => void;
|
|
51
|
+
render(): JSX.Element;
|
|
52
|
+
context: any;
|
|
53
|
+
setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
|
|
54
|
+
forceUpdate(callback?: () => void): void;
|
|
55
|
+
readonly props: Readonly<any> & Readonly<{
|
|
56
|
+
children?: any;
|
|
57
|
+
}>;
|
|
58
|
+
refs: {
|
|
59
|
+
[key: string]: React.ReactInstance;
|
|
60
|
+
};
|
|
61
|
+
componentDidMount?(): void;
|
|
62
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
63
|
+
componentWillUnmount?(): void;
|
|
64
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
65
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
66
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
67
|
+
componentWillMount?(): void;
|
|
68
|
+
UNSAFE_componentWillMount?(): void;
|
|
69
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
70
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
71
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
72
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
73
|
+
};
|
|
74
|
+
defaultProps: {
|
|
75
|
+
onChangeBlock: () => void;
|
|
76
|
+
data: {};
|
|
77
|
+
block: string;
|
|
78
|
+
};
|
|
79
|
+
contextType?: React.Context<any>;
|
|
80
|
+
};
|
|
40
81
|
export default _default;
|
|
82
|
+
import React from 'react';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export const WysiwygWidget:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
export const WysiwygWidget: React.ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & React.RefAttributes<React.ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
3
3
|
};
|
|
4
4
|
export default Preloader;
|
|
5
|
+
import React from 'react';
|
|
5
6
|
declare function Preloader(props: any): JSX.Element;
|
|
@@ -4,7 +4,7 @@ export function connectAppComponent(AppComponent: any): any;
|
|
|
4
4
|
* @class App
|
|
5
5
|
* @extends {Component}
|
|
6
6
|
*/
|
|
7
|
-
export class App extends Component<any, any, any> {
|
|
7
|
+
export class App extends React.Component<any, any, any> {
|
|
8
8
|
/**
|
|
9
9
|
* Property types.
|
|
10
10
|
* @property {Object} propTypes Property types.
|
|
@@ -19,7 +19,7 @@ export class App extends Component<any, any, any> {
|
|
|
19
19
|
error: any;
|
|
20
20
|
errorInfo: any;
|
|
21
21
|
};
|
|
22
|
-
mainRef: any
|
|
22
|
+
mainRef: React.RefObject<any>;
|
|
23
23
|
/**
|
|
24
24
|
* @method componentWillReceiveProps
|
|
25
25
|
* @param {Object} nextProps Next properties
|
|
@@ -42,11 +42,11 @@ export class App extends Component<any, any, any> {
|
|
|
42
42
|
*/
|
|
43
43
|
render(): string;
|
|
44
44
|
}
|
|
45
|
-
export const __test__:
|
|
45
|
+
export const __test__: any;
|
|
46
46
|
export function fetchContent({ store, location }: {
|
|
47
47
|
store: any;
|
|
48
48
|
location: any;
|
|
49
49
|
}): Promise<any>;
|
|
50
50
|
declare const _default: any;
|
|
51
51
|
export default _default;
|
|
52
|
-
import
|
|
52
|
+
import React from 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default AppExtras;
|
|
2
|
-
declare function AppExtras(props: any):
|
|
2
|
+
declare function AppExtras(props: any): JSX.Element[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export const Breadcrumb:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
export const Breadcrumb: React.FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<any>>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<any>>;
|
|
3
3
|
};
|
|
4
4
|
declare namespace _default {
|
|
5
5
|
export let title: string;
|
|
@@ -7,4 +7,5 @@ declare namespace _default {
|
|
|
7
7
|
export let argTypes: {};
|
|
8
8
|
}
|
|
9
9
|
export default _default;
|
|
10
|
+
import React from 'react';
|
|
10
11
|
import BreadcrumbsComponent from './Breadcrumbs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ErrorBoundary;
|
|
2
|
-
declare class ErrorBoundary {
|
|
2
|
+
declare class ErrorBoundary extends React.Component<any, any, any> {
|
|
3
3
|
static getDerivedStateFromError(error: any): {
|
|
4
4
|
hasError: boolean;
|
|
5
5
|
};
|
|
@@ -8,5 +8,5 @@ declare class ErrorBoundary {
|
|
|
8
8
|
hasError: boolean;
|
|
9
9
|
};
|
|
10
10
|
componentDidCatch(error: any, errorInfo: any): void;
|
|
11
|
-
render(): any;
|
|
12
11
|
}
|
|
12
|
+
import React from 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<any>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<any>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* portlet. It uses the same API, so the options are similar to
|
|
4
4
|
* INavigationPortlet
|
|
5
5
|
*/
|
|
6
|
-
export function ContextNavigationComponent(props: any):
|
|
6
|
+
export function ContextNavigationComponent(props: any): JSX.Element | "";
|
|
7
7
|
export namespace ContextNavigationComponent {
|
|
8
8
|
namespace propTypes {
|
|
9
9
|
let navigation: any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
export const __test__:
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export const __test__: React.ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & React.RefAttributes<React.ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & React.RefAttributes<React.ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
|
|
5
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
4
6
|
};
|
|
5
7
|
export default _default;
|
|
8
|
+
import React from 'react';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export function getSitemapPath(pathname: string, lang: any): any;
|
|
2
|
-
export const __test__:
|
|
3
|
-
|
|
2
|
+
export const __test__: import("react").ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
|
|
3
|
+
WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
|
|
4
6
|
WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
5
7
|
};
|
|
6
8
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TEST COMPONENT: React TSX component
|
|
3
|
+
* Ensure successful implementation of TSX and validate the functionality with Jest tests
|
|
4
|
+
* Dependencies: jest (version 26.6.3), ts-jest (version ^26.4.2)
|
|
5
|
+
*/
|
|
6
|
+
/// <reference types="react" />
|
|
7
|
+
type TestProps = {
|
|
8
|
+
text: string;
|
|
9
|
+
};
|
|
10
|
+
declare const TsTest: ({ text }: TestProps) => JSX.Element;
|
|
11
|
+
export default TsTest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -5,7 +5,7 @@ export default AlbumView;
|
|
|
5
5
|
* @param {Object} content Content object.
|
|
6
6
|
* @returns {string} Markup of the component.
|
|
7
7
|
*/
|
|
8
|
-
declare class AlbumView {
|
|
8
|
+
declare class AlbumView extends React.Component<any, any, any> {
|
|
9
9
|
constructor(props: any);
|
|
10
10
|
state: {
|
|
11
11
|
openIndex: any;
|
|
@@ -20,3 +20,4 @@ declare namespace AlbumView {
|
|
|
20
20
|
let content: any;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
import React from 'react';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<any>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<any>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default RenderBlocks;
|
|
2
|
-
declare function RenderBlocks(props: any):
|
|
2
|
+
declare function RenderBlocks(props: any): JSX.Element | "";
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & React.RefAttributes<React.ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
3
|
+
};
|
|
2
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
package/types/config/Blocks.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@plone/registry/node_modules/@plone/types/src/modules" />
|
|
1
2
|
export const groupBlocksOrder: {
|
|
2
3
|
id: string;
|
|
3
4
|
title: string;
|
|
@@ -23,7 +24,13 @@ export namespace blocksConfig {
|
|
|
23
24
|
id: string;
|
|
24
25
|
isDefault: boolean;
|
|
25
26
|
title: string;
|
|
26
|
-
template:
|
|
27
|
+
template: {
|
|
28
|
+
(props: any): JSX.Element;
|
|
29
|
+
propTypes: {
|
|
30
|
+
data: any;
|
|
31
|
+
isEditMode: any;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
27
34
|
}[];
|
|
28
35
|
}
|
|
29
36
|
namespace image {
|
|
@@ -51,3 +58,15 @@ export namespace blocksConfig {
|
|
|
51
58
|
}
|
|
52
59
|
export const initialBlocks: {};
|
|
53
60
|
export const initialBlocksFocus: {};
|
|
61
|
+
import { gridTeaserDisableStylingSchema } from '@plone/volto/components/manage/Blocks/Teaser/schema';
|
|
62
|
+
import imagesSVG from '@plone/volto/icons/images.svg';
|
|
63
|
+
import TeaserViewBlock from '@plone/volto/components/manage/Blocks/Teaser/View';
|
|
64
|
+
import TeaserEditBlock from '@plone/volto/components/manage/Blocks/Teaser/Edit';
|
|
65
|
+
import { TeaserSchema } from '@plone/volto/components/manage/Blocks/Teaser/schema';
|
|
66
|
+
import { TeaserBlockDataAdapter } from '@plone/volto/components/manage/Blocks/Teaser/adapter';
|
|
67
|
+
import { gridImageDisableSizeAndPositionHandlersSchema } from '@plone/volto/components/manage/Blocks/Image/schema';
|
|
68
|
+
import cameraSVG from '@plone/volto/icons/camera.svg';
|
|
69
|
+
import ViewImageBlock from '@plone/volto/components/manage/Blocks/Image/View';
|
|
70
|
+
import EditImageBlock from '@plone/volto/components/manage/Blocks/Image/Edit';
|
|
71
|
+
import ImageSettingsSchema from '@plone/volto/components/manage/Blocks/Image/LayoutSchema';
|
|
72
|
+
import { getImageBlockSizes } from '@plone/volto/components/manage/Blocks/Image/utils';
|
|
@@ -9,3 +9,6 @@ export namespace components {
|
|
|
9
9
|
export { Image as component };
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
import { PreviewImage as PreviewImage_1 } from '@plone/volto/components';
|
|
13
|
+
import { App as App_1 } from '@plone/volto/components';
|
|
14
|
+
import { Image as Image_1 } from '@plone/volto/components';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const contentIcons: {
|
|
2
|
-
Document:
|
|
3
|
-
Folder:
|
|
4
|
-
'News Item':
|
|
5
|
-
Event:
|
|
6
|
-
Image:
|
|
7
|
-
File:
|
|
8
|
-
Link:
|
|
2
|
+
Document: string;
|
|
3
|
+
Folder: string;
|
|
4
|
+
'News Item': string;
|
|
5
|
+
Event: string;
|
|
6
|
+
Image: string;
|
|
7
|
+
File: string;
|
|
8
|
+
Link: string;
|
|
9
9
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export const controlPanelsIcons: {
|
|
2
|
-
default:
|
|
3
|
-
'dexterity-types':
|
|
4
|
-
'date-and-time':
|
|
5
|
-
language:
|
|
6
|
-
mail:
|
|
7
|
-
navigation:
|
|
8
|
-
site:
|
|
9
|
-
search:
|
|
10
|
-
socialmedia:
|
|
11
|
-
editing:
|
|
12
|
-
imaging:
|
|
13
|
-
markup:
|
|
14
|
-
'moderate-comments':
|
|
15
|
-
security:
|
|
16
|
-
users:
|
|
17
|
-
groups:
|
|
18
|
-
addons:
|
|
19
|
-
rules:
|
|
20
|
-
undo:
|
|
21
|
-
aliases:
|
|
22
|
-
relations:
|
|
2
|
+
default: string;
|
|
3
|
+
'dexterity-types': string;
|
|
4
|
+
'date-and-time': string;
|
|
5
|
+
language: string;
|
|
6
|
+
mail: string;
|
|
7
|
+
navigation: string;
|
|
8
|
+
site: string;
|
|
9
|
+
search: string;
|
|
10
|
+
socialmedia: string;
|
|
11
|
+
editing: string;
|
|
12
|
+
imaging: string;
|
|
13
|
+
markup: string;
|
|
14
|
+
'moderate-comments': string;
|
|
15
|
+
security: string;
|
|
16
|
+
users: string;
|
|
17
|
+
groups: string;
|
|
18
|
+
addons: string;
|
|
19
|
+
rules: string;
|
|
20
|
+
undo: string;
|
|
21
|
+
aliases: string;
|
|
22
|
+
relations: string;
|
|
23
23
|
};
|
|
24
24
|
export function filterControlPanels(controlpanels: any): any;
|
|
25
25
|
export function filterControlPanelsSchema(controlpanel: any): any;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
export function richtextEditorSettings(props: any): {
|
|
2
2
|
extendedBlockRenderMap: any;
|
|
3
|
-
blockStyleFn: any;
|
|
4
|
-
listBlockTypes:
|
|
5
|
-
richTextEditorPlugins: any;
|
|
6
|
-
richTextEditorInlineToolbarButtons: any;
|
|
7
|
-
FromHTMLCustomBlockFn:
|
|
3
|
+
blockStyleFn: (contentBlock: any) => string;
|
|
4
|
+
listBlockTypes: string[];
|
|
5
|
+
richTextEditorPlugins: any[];
|
|
6
|
+
richTextEditorInlineToolbarButtons: any[];
|
|
7
|
+
FromHTMLCustomBlockFn: typeof FromHTMLCustomBlockFn;
|
|
8
8
|
customStyleMap: any;
|
|
9
9
|
};
|
|
10
10
|
export namespace richtextViewSettings {
|
|
11
11
|
export { ToHTMLRenderers };
|
|
12
12
|
export { ToHTMLOptions };
|
|
13
13
|
}
|
|
14
|
+
import FromHTMLCustomBlockFn from './FromHTML';
|
|
15
|
+
import ToHTMLRenderers from './ToHTML';
|
|
16
|
+
import { options as ToHTMLOptions } from './ToHTML';
|