@plone/volto 18.0.0-alpha.5 → 18.0.0-alpha.7
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 +59 -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 +930 -940
- 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 +11 -9
- package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +11 -3
- package/src/components/manage/Blocks/Block/StyleWrapper.jsx +7 -1
- package/src/components/manage/Blocks/Grid/View.jsx +2 -1
- package/src/components/manage/Blocks/Image/View.jsx +2 -1
- package/src/components/manage/Blocks/Listing/View.jsx +2 -1
- package/src/components/manage/Blocks/Search/hocs/withSearch.jsx +46 -4
- package/src/components/manage/Blocks/Teaser/DefaultBody.jsx +2 -2
- package/src/components/manage/Contents/Contents.jsx +4 -8
- package/src/components/manage/Sidebar/SidebarPopup.jsx +1 -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/RecurrenceWidget/RecurrenceWidget.jsx +1 -1
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.test.jsx +1 -1
- package/src/components/theme/Comments/CommentEditModal.jsx +1 -0
- package/src/components/theme/Login/Login.jsx +12 -2
- package/src/components/theme/Navigation/Navigation.jsx +34 -32
- package/src/components/theme/PreviewImage/PreviewImage.jsx +7 -2
- package/src/components/theme/Sitemap/Sitemap.jsx +4 -4
- package/src/components/theme/Sitemap/Sitemap.test.jsx +52 -0
- package/src/components/theme/Unauthorized/Unauthorized.jsx +12 -11
- package/src/config/Blocks.jsx +1 -1
- package/src/helpers/Blocks/Blocks.js +64 -1
- package/src/helpers/Blocks/Blocks.test.js +77 -0
- package/src/helpers/Extensions/withBlockSchemaEnhancer.js +3 -1
- package/src/helpers/index.js +1 -0
- package/theme/themes/pastanaga/extras/blocks.less +2 -0
- package/theme/themes/pastanaga/extras/sidebar.less +2 -1
- 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/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
|
@@ -133,7 +133,7 @@ export function applySchemaDefaults({ data, schema, intl }: {
|
|
|
133
133
|
* @param {Object} params An object with data, intl and anything else
|
|
134
134
|
* @return {Object} Derived data, with the defaults extracted from the schema
|
|
135
135
|
*/
|
|
136
|
-
export function applyBlockDefaults({ data, intl, ...rest }: any, blocksConfig: any): any;
|
|
136
|
+
export function applyBlockDefaults({ data, intl, navRoot, contentType, ...rest }: any, blocksConfig: any): any;
|
|
137
137
|
/**
|
|
138
138
|
* Given a `block` object and a list of block types, return a list of block ids matching the types
|
|
139
139
|
*
|
|
@@ -146,4 +146,6 @@ export function getBlocks(properties: any): any[];
|
|
|
146
146
|
export function styleToClassName(key: any, value: any, prefix?: string): any;
|
|
147
147
|
export function buildStyleClassNamesFromData(obj?: {}, prefix?: string): any;
|
|
148
148
|
export function buildStyleClassNamesExtenders({ block, content, data, classNames, }: any): any[];
|
|
149
|
+
export function styleDataToStyleObject(key: any, value: any, prefix?: string): any[];
|
|
150
|
+
export function buildStyleObjectFromData(obj?: any, prefix?: string): any;
|
|
149
151
|
export function getPreviousNextBlock({ content, block }: any): any[];
|
|
@@ -15,7 +15,7 @@ export function addExtensionFieldToSchema({ schema, name, items, intl, title, de
|
|
|
15
15
|
items: any;
|
|
16
16
|
intl: any;
|
|
17
17
|
title: any;
|
|
18
|
-
description
|
|
18
|
+
description?: string;
|
|
19
19
|
insertFieldToOrder?: typeof _addField;
|
|
20
20
|
}): any;
|
|
21
21
|
export function withBlockSchemaEnhancer(FormComponent: any, extensionName?: string, insertFieldToOrder?: typeof _addField): ({ ...props }: {
|
|
@@ -25,7 +25,7 @@ export function applySchemaEnhancer({ schema: originalSchema, formData, intl, bl
|
|
|
25
25
|
schema: any;
|
|
26
26
|
formData: any;
|
|
27
27
|
intl: any;
|
|
28
|
-
blocksConfig?:
|
|
28
|
+
blocksConfig?: import("@plone/registry/node_modules/@plone/types").BlocksConfigData;
|
|
29
29
|
navRoot: any;
|
|
30
30
|
contentType: any;
|
|
31
31
|
}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { HelmetExport as Helmet };
|
|
2
2
|
export default HelmetExport;
|
|
3
3
|
declare const HelmetExport: {
|
|
4
|
-
new (): {
|
|
4
|
+
new (props: any): {
|
|
5
5
|
shouldComponentUpdate(nextProps: any): boolean;
|
|
6
6
|
mapNestedChildrenToProps(child: any, nestedChildren: any): {
|
|
7
7
|
innerHTML: any;
|
|
@@ -26,6 +26,74 @@ declare const HelmetExport: {
|
|
|
26
26
|
warnOnInvalidChildren(child: any, nestedChildren: any): true | void;
|
|
27
27
|
mapChildrenToProps(children: any, newProps: any): any;
|
|
28
28
|
render(): JSX.Element;
|
|
29
|
+
context: any;
|
|
30
|
+
setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
|
|
31
|
+
forceUpdate(callback?: () => void): void;
|
|
32
|
+
readonly props: Readonly<any> & Readonly<{
|
|
33
|
+
children?: any;
|
|
34
|
+
}>;
|
|
35
|
+
state: Readonly<any>;
|
|
36
|
+
refs: {
|
|
37
|
+
[key: string]: React.ReactInstance;
|
|
38
|
+
};
|
|
39
|
+
componentDidMount?(): void;
|
|
40
|
+
componentWillUnmount?(): void;
|
|
41
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
42
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
43
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
44
|
+
componentWillMount?(): void;
|
|
45
|
+
UNSAFE_componentWillMount?(): void;
|
|
46
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
47
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
48
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
49
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
50
|
+
};
|
|
51
|
+
new (props: any, context: any): {
|
|
52
|
+
shouldComponentUpdate(nextProps: any): boolean;
|
|
53
|
+
mapNestedChildrenToProps(child: any, nestedChildren: any): {
|
|
54
|
+
innerHTML: any;
|
|
55
|
+
cssText?: undefined;
|
|
56
|
+
} | {
|
|
57
|
+
cssText: any;
|
|
58
|
+
innerHTML?: undefined;
|
|
59
|
+
};
|
|
60
|
+
flattenArrayTypeChildren({ child, arrayTypeChildren, newChildProps, nestedChildren, }: {
|
|
61
|
+
child: any;
|
|
62
|
+
arrayTypeChildren: any;
|
|
63
|
+
newChildProps: any;
|
|
64
|
+
nestedChildren: any;
|
|
65
|
+
}): any;
|
|
66
|
+
mapObjectTypeChildren({ child, newProps, newChildProps, nestedChildren }: {
|
|
67
|
+
child: any;
|
|
68
|
+
newProps: any;
|
|
69
|
+
newChildProps: any;
|
|
70
|
+
nestedChildren: any;
|
|
71
|
+
}): any;
|
|
72
|
+
mapArrayTypeChildrenToProps(arrayTypeChildren: any, newProps: any): any;
|
|
73
|
+
warnOnInvalidChildren(child: any, nestedChildren: any): true | void;
|
|
74
|
+
mapChildrenToProps(children: any, newProps: any): any;
|
|
75
|
+
render(): JSX.Element;
|
|
76
|
+
context: any;
|
|
77
|
+
setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
|
|
78
|
+
forceUpdate(callback?: () => void): void;
|
|
79
|
+
readonly props: Readonly<any> & Readonly<{
|
|
80
|
+
children?: any;
|
|
81
|
+
}>;
|
|
82
|
+
state: Readonly<any>;
|
|
83
|
+
refs: {
|
|
84
|
+
[key: string]: React.ReactInstance;
|
|
85
|
+
};
|
|
86
|
+
componentDidMount?(): void;
|
|
87
|
+
componentWillUnmount?(): void;
|
|
88
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
89
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
90
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
91
|
+
componentWillMount?(): void;
|
|
92
|
+
UNSAFE_componentWillMount?(): void;
|
|
93
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
94
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
95
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
96
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
29
97
|
};
|
|
30
98
|
/**
|
|
31
99
|
* @param {Object} base: {"target": "_blank", "href": "http://mysite.com/"}
|
|
@@ -69,4 +137,6 @@ declare const HelmetExport: {
|
|
|
69
137
|
peek: any;
|
|
70
138
|
rewind: () => any;
|
|
71
139
|
canUseDOM: any;
|
|
140
|
+
contextType?: React.Context<any>;
|
|
72
141
|
};
|
|
142
|
+
import React from 'react';
|
|
@@ -29,7 +29,7 @@ export default Html;
|
|
|
29
29
|
* @class Html
|
|
30
30
|
* @extends Component
|
|
31
31
|
*/
|
|
32
|
-
declare class Html extends Component<any, any, any> {
|
|
32
|
+
declare class Html extends React.Component<any, any, any> {
|
|
33
33
|
/**
|
|
34
34
|
* Property types.
|
|
35
35
|
* @property {Object} propTypes Property types.
|
|
@@ -49,4 +49,4 @@ declare class Html extends Component<any, any, any> {
|
|
|
49
49
|
*/
|
|
50
50
|
render(): string;
|
|
51
51
|
}
|
|
52
|
-
import
|
|
52
|
+
import React from 'react';
|