@plone/volto 17.10.0 → 17.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +2 -2
  3. package/packages/volto-slate/package.json +1 -1
  4. package/src/components/manage/Sidebar/SidebarPortal.jsx +1 -1
  5. package/src/helpers/Extensions/withBlockSchemaEnhancer.js +1 -1
  6. package/tsconfig.declarations.json +16 -0
  7. package/types/actions/authRole/authRole.d.ts +1 -1
  8. package/types/actions/comments/comments.d.ts +1 -1
  9. package/types/actions/content/content.d.ts +1 -1
  10. package/types/actions/controlpanels/controlpanels.d.ts +2 -2
  11. package/types/actions/index.d.ts +36 -0
  12. package/types/actions/upgrade/upgrade.d.ts +2 -2
  13. package/types/components/index.d.ts +180 -0
  14. package/types/components/manage/Actions/Actions.d.ts +2 -1
  15. package/types/components/manage/Add/Add.d.ts +1 -3
  16. package/types/components/manage/AnchorPlugin/components/Link/index.d.ts +6 -5
  17. package/types/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.d.ts +3 -2
  18. package/types/components/manage/AnchorPlugin/components/LinkButton/index.d.ts +1 -1
  19. package/types/components/manage/BlockChooser/BlockChooser.d.ts +2 -1
  20. package/types/components/manage/Blocks/Block/Edit.d.ts +21 -18
  21. package/types/components/manage/Blocks/Block/EditBlockWrapper.d.ts +3 -2
  22. package/types/components/manage/Blocks/Block/Settings.d.ts +3 -2
  23. package/types/components/manage/Blocks/Container/Edit.d.ts +7 -6
  24. package/types/components/manage/Blocks/Description/Edit.d.ts +19 -14
  25. package/types/components/manage/Blocks/Description/View.d.ts +7 -2
  26. package/types/components/manage/Blocks/Grid/Edit.d.ts +6 -5
  27. package/types/components/manage/Blocks/Grid/View.d.ts +1 -1
  28. package/types/components/manage/Blocks/HTML/Edit.d.ts +1 -1
  29. package/types/components/manage/Blocks/HTML/View.d.ts +4 -1
  30. package/types/components/manage/Blocks/HeroImageLeft/View.d.ts +4 -1
  31. package/types/components/manage/Blocks/Image/Edit.d.ts +1 -3
  32. package/types/components/manage/Blocks/Image/ImageSidebar.d.ts +6 -3
  33. package/types/components/manage/Blocks/Image/LayoutSchema.d.ts +36 -1
  34. package/types/components/manage/Blocks/Image/View.d.ts +5 -2
  35. package/types/components/manage/Blocks/LeadImage/Edit.d.ts +3 -2
  36. package/types/components/manage/Blocks/LeadImage/LeadImageSidebar.d.ts +5 -4
  37. package/types/components/manage/Blocks/LeadImage/View.d.ts +7 -2
  38. package/types/components/manage/Blocks/Listing/DefaultTemplate.d.ts +4 -3
  39. package/types/components/manage/Blocks/Listing/Edit.d.ts +1 -1
  40. package/types/components/manage/Blocks/Listing/ImageGallery.d.ts +2 -1
  41. package/types/components/manage/Blocks/Listing/ListingBody.d.ts +3 -2
  42. package/types/components/manage/Blocks/Listing/ListingData.d.ts +6 -3
  43. package/types/components/manage/Blocks/Listing/SummaryTemplate.d.ts +4 -3
  44. package/types/components/manage/Blocks/Listing/View.d.ts +1 -1
  45. package/types/components/manage/Blocks/Listing/withQuerystringResults.d.ts +5 -1
  46. package/types/components/manage/Blocks/Maps/Edit.d.ts +1 -1
  47. package/types/components/manage/Blocks/Maps/View.d.ts +1 -3
  48. package/types/components/manage/Blocks/Search/SearchBlockView.d.ts +1 -1
  49. package/types/components/manage/Blocks/Search/components/DateRangeFacet.d.ts +1 -1
  50. package/types/components/manage/Blocks/Search/components/SelectFacet.d.ts +1 -1
  51. package/types/components/manage/Blocks/Search/components/SortOn.d.ts +1 -3
  52. package/types/components/manage/Blocks/Search/components/ViewSwitcher.d.ts +1 -3
  53. package/types/components/manage/Blocks/Table/Cell.d.ts +1 -1
  54. package/types/components/manage/Blocks/Table/Edit.d.ts +1 -1
  55. package/types/components/manage/Blocks/Table/View.d.ts +4 -1
  56. package/types/components/manage/Blocks/Teaser/Body.d.ts +5 -2
  57. package/types/components/manage/Blocks/Teaser/DefaultBody.d.ts +5 -2
  58. package/types/components/manage/Blocks/Teaser/Edit.d.ts +1 -1
  59. package/types/components/manage/Blocks/Teaser/View.d.ts +1 -1
  60. package/types/components/manage/Blocks/Text/Edit.d.ts +30 -25
  61. package/types/components/manage/Blocks/Text/Schema.d.ts +36 -1
  62. package/types/components/manage/Blocks/Text/View.d.ts +4 -1
  63. package/types/components/manage/Blocks/Title/Edit.d.ts +19 -14
  64. package/types/components/manage/Blocks/ToC/Edit.d.ts +2 -2
  65. package/types/components/manage/Blocks/ToC/View.d.ts +3 -2
  66. package/types/components/manage/Blocks/ToC/variations/DefaultTocRenderer.d.ts +3 -2
  67. package/types/components/manage/Blocks/ToC/variations/HorizontalMenu.d.ts +3 -2
  68. package/types/components/manage/Blocks/Video/Body.d.ts +4 -1
  69. package/types/components/manage/Blocks/Video/Edit.d.ts +1 -3
  70. package/types/components/manage/Blocks/Video/View.d.ts +1 -1
  71. package/types/components/manage/ConditionalLink/ConditionalLink.d.ts +8 -4
  72. package/types/components/manage/Contents/Contents.d.ts +2 -6
  73. package/types/components/manage/Contents/ContentsIndexHeader.d.ts +9 -8
  74. package/types/components/manage/Contents/ContentsItem.d.ts +25 -16
  75. package/types/components/manage/Contents/ContentsPropertiesModal.d.ts +5 -4
  76. package/types/components/manage/Contents/ContentsRenameModal.d.ts +9 -4
  77. package/types/components/manage/Contents/ContentsTagsModal.d.ts +8 -4
  78. package/types/components/manage/Contents/ContentsWorkflowModal.d.ts +5 -4
  79. package/types/components/manage/Controlpanels/ContentTypesActions.d.ts +3 -2
  80. package/types/components/manage/Controlpanels/Controlpanel.d.ts +3 -2
  81. package/types/components/manage/Controlpanels/Controlpanels.d.ts +1 -16
  82. package/types/components/manage/Controlpanels/Groups/RenderGroups.d.ts +3 -2
  83. package/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts +41 -1
  84. package/types/components/manage/Diff/DiffField.d.ts +1 -1
  85. package/types/components/manage/Display/Display.d.ts +1 -3
  86. package/types/components/manage/DragDropList/DragDropList.d.ts +1 -1
  87. package/types/components/manage/Edit/Edit.d.ts +1 -3
  88. package/types/components/manage/Form/BlocksToolbar.d.ts +2 -1
  89. package/types/components/manage/Form/Field.d.ts +3 -2
  90. package/types/components/manage/Form/Form.d.ts +4 -3
  91. package/types/components/manage/Form/InlineForm.d.ts +3 -2
  92. package/types/components/manage/Form/ModalForm.d.ts +3 -2
  93. package/types/components/manage/History/History.d.ts +1 -3
  94. package/types/components/manage/LinkMore/LinkMore.d.ts +4 -1
  95. package/types/components/manage/Multilingual/CompareLanguages.d.ts +2 -1
  96. package/types/components/manage/Multilingual/ManageTranslations.d.ts +41 -1
  97. package/types/components/manage/Pluggable/index.d.ts +26 -7
  98. package/types/components/manage/ReactVirtualized/DynamicRowHeightList.d.ts +1 -1
  99. package/types/components/manage/Sidebar/ObjectBrowser.d.ts +23 -2
  100. package/types/components/manage/Sidebar/Sidebar.d.ts +2 -1
  101. package/types/components/manage/Sidebar/SidebarPopup.d.ts +4 -3
  102. package/types/components/manage/Sidebar/SidebarPortal.d.ts +6 -4
  103. package/types/components/manage/TemplateChooser/TemplateChooser.d.ts +3 -2
  104. package/types/components/manage/TextLineEdit/TextLineEdit.d.ts +22 -17
  105. package/types/components/manage/Toast/Toast.d.ts +7 -6
  106. package/types/components/manage/Toolbar/More.d.ts +3 -2
  107. package/types/components/manage/Toolbar/PersonalTools.d.ts +2 -1
  108. package/types/components/manage/Toolbar/StandardWrapper.d.ts +7 -6
  109. package/types/components/manage/Toolbar/Types.d.ts +19 -5
  110. package/types/components/manage/UniversalLink/UniversalLink.d.ts +11 -7
  111. package/types/components/manage/Widgets/ArrayWidget.d.ts +4 -5
  112. package/types/components/manage/Widgets/CheckboxWidget.d.ts +3 -2
  113. package/types/components/manage/Widgets/ColorPickerWidget.d.ts +21 -21
  114. package/types/components/manage/Widgets/ColorPickerWidget.stories.d.ts +7 -8
  115. package/types/components/manage/Widgets/DatetimeWidget.d.ts +15 -14
  116. package/types/components/manage/Widgets/EmailWidget.d.ts +13 -12
  117. package/types/components/manage/Widgets/FileWidget.d.ts +3 -2
  118. package/types/components/manage/Widgets/FormFieldWrapper.d.ts +3 -2
  119. package/types/components/manage/Widgets/ImageSizeWidget.d.ts +3 -2
  120. package/types/components/manage/Widgets/InternalUrlWidget.d.ts +55 -14
  121. package/types/components/manage/Widgets/NumberWidget.d.ts +3 -2
  122. package/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +23 -22
  123. package/types/components/manage/Widgets/ObjectWidget.d.ts +6 -5
  124. package/types/components/manage/Widgets/PasswordWidget.d.ts +3 -2
  125. package/types/components/manage/Widgets/QuerySortOnWidget.d.ts +1 -1
  126. package/types/components/manage/Widgets/QueryWidget.d.ts +15 -16
  127. package/types/components/manage/Widgets/RecurrenceWidget/ByDayField.d.ts +1 -1
  128. package/types/components/manage/Widgets/RecurrenceWidget/ByMonthDayField.d.ts +3 -2
  129. package/types/components/manage/Widgets/RecurrenceWidget/ByMonthField.d.ts +3 -2
  130. package/types/components/manage/Widgets/RecurrenceWidget/ByYearField.d.ts +3 -2
  131. package/types/components/manage/Widgets/RecurrenceWidget/EndField.d.ts +3 -2
  132. package/types/components/manage/Widgets/RecurrenceWidget/IntervalField.d.ts +5 -4
  133. package/types/components/manage/Widgets/RecurrenceWidget/MonthOfTheYearField.d.ts +1 -1
  134. package/types/components/manage/Widgets/RecurrenceWidget/Occurences.d.ts +4 -3
  135. package/types/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.d.ts +1 -1
  136. package/types/components/manage/Widgets/RecurrenceWidget/SelectInput.d.ts +6 -5
  137. package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthField.d.ts +1 -1
  138. package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.d.ts +3 -2
  139. package/types/components/manage/Widgets/RegistryImageWidget.d.ts +3 -2
  140. package/types/components/manage/Widgets/SchemaWidget.d.ts +1 -3
  141. package/types/components/manage/Widgets/SchemaWidgetFieldset.d.ts +11 -10
  142. package/types/components/manage/Widgets/SelectAutoComplete.d.ts +4 -5
  143. package/types/components/manage/Widgets/SelectStyling.d.ts +7 -7
  144. package/types/components/manage/Widgets/SelectWidget.d.ts +4 -3
  145. package/types/components/manage/Widgets/TextWidget.d.ts +3 -2
  146. package/types/components/manage/Widgets/TextareaWidget.d.ts +3 -2
  147. package/types/components/manage/Widgets/TokenWidget.d.ts +1 -3
  148. package/types/components/manage/Widgets/UrlWidget.d.ts +55 -14
  149. package/types/components/manage/Widgets/WysiwygWidget.d.ts +1 -3
  150. package/types/components/manage/Workflow/Workflow.d.ts +1 -1
  151. package/types/components/theme/Anontools/Anontools.d.ts +5 -2
  152. package/types/components/theme/App/App.d.ts +8 -7
  153. package/types/components/theme/Avatar/Avatar.d.ts +7 -6
  154. package/types/components/theme/Breadcrumbs/Breadcrumbs.d.ts +2 -1
  155. package/types/components/theme/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -2
  156. package/types/components/theme/Comments/CommentEditModal.d.ts +10 -6
  157. package/types/components/theme/Comments/Comments.d.ts +1 -1
  158. package/types/components/theme/Error/ErrorBoundary.d.ts +2 -1
  159. package/types/components/theme/Error/ServerError.d.ts +1 -1
  160. package/types/components/theme/Footer/Footer.d.ts +3 -2
  161. package/types/components/theme/Forbidden/Forbidden.d.ts +1 -1
  162. package/types/components/theme/Header/Header.d.ts +6 -3
  163. package/types/components/theme/Icon/Icon.d.ts +11 -6
  164. package/types/components/theme/Image/Image.d.ts +13 -7
  165. package/types/components/theme/LanguageSelector/LanguageSelector.d.ts +2 -1
  166. package/types/components/theme/Navigation/ContextNavigation.d.ts +9 -1
  167. package/types/components/theme/Navigation/Navigation.d.ts +2 -1
  168. package/types/components/theme/Navigation/withContentNavigation.d.ts +15 -2
  169. package/types/components/theme/NotFound/NotFound.d.ts +1 -1
  170. package/types/components/theme/Pagination/Pagination.d.ts +3 -2
  171. package/types/components/theme/Popup/Popup.d.ts +2 -1
  172. package/types/components/theme/PreviewImage/PreviewImage.d.ts +9 -2
  173. package/types/components/theme/Search/Search.d.ts +1 -3
  174. package/types/components/theme/Sitemap/Sitemap.d.ts +1 -3
  175. package/types/components/theme/SocialSharing/SocialSharing.d.ts +4 -3
  176. package/types/components/theme/Tags/Tags.d.ts +2 -1
  177. package/types/components/theme/Title/Title.d.ts +2 -1
  178. package/types/components/theme/TsTest/TsTest.d.ts +10 -0
  179. package/types/components/theme/TsTest/TsTest.test.d.ts +1 -0
  180. package/types/components/theme/Unauthorized/Unauthorized.d.ts +1 -1
  181. package/types/components/theme/View/AlbumView.d.ts +42 -2
  182. package/types/components/theme/View/DefaultView.d.ts +3 -2
  183. package/types/components/theme/View/EventDatesInfo.d.ts +2 -2
  184. package/types/components/theme/View/EventView.d.ts +20 -1
  185. package/types/components/theme/View/FileView.d.ts +9 -1
  186. package/types/components/theme/View/ImageView.d.ts +12 -1
  187. package/types/components/theme/View/LinkView.d.ts +7 -2
  188. package/types/components/theme/View/ListingView.d.ts +13 -1
  189. package/types/components/theme/View/NewsItemView.d.ts +8 -1
  190. package/types/components/theme/View/SummaryView.d.ts +40 -1
  191. package/types/components/theme/View/TabularView.d.ts +36 -1
  192. package/types/components/theme/Widgets/BooleanWidget.d.ts +3 -2
  193. package/types/config/Blocks.d.ts +19 -1
  194. package/types/config/Components.d.ts +3 -0
  195. package/types/config/Views.d.ts +63 -11
  196. package/types/config/Widgets.d.ts +55 -3
  197. package/types/config/server.d.ts +1 -1
  198. package/types/error.d.ts +3 -2
  199. package/types/express-middleware/devproxy.d.ts +1 -1
  200. package/types/express-middleware/files.d.ts +1 -1
  201. package/types/express-middleware/images.d.ts +1 -1
  202. package/types/express-middleware/ok.d.ts +1 -1
  203. package/types/express-middleware/robotstxt.d.ts +1 -1
  204. package/types/express-middleware/sitemap.d.ts +1 -1
  205. package/types/express-middleware/static.d.ts +1 -1
  206. package/types/helpers/AsyncConnect/AsyncConnect.d.ts +13 -12
  207. package/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts +1 -1
  208. package/types/helpers/Helmet/Helmet.d.ts +84 -17
  209. package/types/helpers/Html/Html.d.ts +12 -5
  210. package/types/helpers/Loadable/Loadable.d.ts +3 -2
  211. package/types/helpers/ScrollToTop/ScrollToTop.d.ts +2 -1
  212. package/types/helpers/UndoManager/useUndoManager.d.ts +4 -4
  213. package/types/helpers/Utils/usePagination.d.ts +1 -1
  214. package/types/helpers/Utils/usePrevious.d.ts +1 -1
  215. package/types/helpers/index.d.ts +12 -0
  216. package/types/hooks/index.d.ts +2 -1
  217. package/types/middleware/index.d.ts +2 -0
  218. package/types/reducers/index.d.ts +40 -0
  219. package/types/routes.d.ts +1 -1
  220. package/types/server.d.ts +1 -1
  221. package/types/storybook.d.ts +10 -9
@@ -1 +1 @@
1
- export default function staticsMiddleware(): any;
1
+ export default function staticsMiddleware(): import("express-serve-static-core").Router;
@@ -1,4 +1,4 @@
1
- export class AsyncConnect extends Component<any, any, any> {
1
+ export class AsyncConnect extends React.Component<any, any, any> {
2
2
  constructor(props: any);
3
3
  state: {
4
4
  previousLocation: any;
@@ -17,15 +17,15 @@ export class AsyncConnect extends Component<any, any, any> {
17
17
  }
18
18
  export namespace AsyncConnect {
19
19
  namespace propTypes {
20
- let render: any;
21
- let beginGlobalLoad: any;
22
- let endGlobalLoad: any;
23
- let reloadOnPropsChange: any;
24
- let routes: any;
25
- let location: any;
26
- let match: any;
27
- let helpers: any;
28
- let reduxConnectStore: any;
20
+ let render: PropTypes.Requireable<(...args: any[]) => any>;
21
+ let beginGlobalLoad: PropTypes.Validator<(...args: any[]) => any>;
22
+ let endGlobalLoad: PropTypes.Validator<(...args: any[]) => any>;
23
+ let reloadOnPropsChange: PropTypes.Requireable<(...args: any[]) => any>;
24
+ let routes: PropTypes.Validator<any[]>;
25
+ let location: PropTypes.Validator<object>;
26
+ let match: PropTypes.Validator<object>;
27
+ let helpers: PropTypes.Requireable<any>;
28
+ let reduxConnectStore: PropTypes.Validator<object>;
29
29
  }
30
30
  namespace defaultProps {
31
31
  let helpers_1: {};
@@ -42,8 +42,9 @@ export function AsyncConnectWithContext({ context, ...otherProps }: {
42
42
  }): JSX.Element;
43
43
  export namespace AsyncConnectWithContext {
44
44
  export namespace propTypes_1 {
45
- let context: any;
45
+ let context: PropTypes.Requireable<object>;
46
46
  }
47
47
  export { propTypes_1 as propTypes };
48
48
  }
49
- import { Component } from 'react';
49
+ import React from 'react';
50
+ import PropTypes from 'prop-types';
@@ -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: any;
18
+ description?: string;
19
19
  insertFieldToOrder?: typeof _addField;
20
20
  }): any;
21
21
  export function withBlockSchemaEnhancer(FormComponent: any, extensionName?: string, insertFieldToOrder?: typeof _addField): ({ ...props }: {
@@ -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,70 @@ 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: unknown;
30
+ setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
31
+ forceUpdate(callback?: () => void): void;
32
+ readonly props: Readonly<any>;
33
+ state: Readonly<any>;
34
+ refs: {
35
+ [key: string]: React.ReactInstance;
36
+ };
37
+ componentDidMount?(): void;
38
+ componentWillUnmount?(): void;
39
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
40
+ getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
41
+ componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
42
+ componentWillMount?(): void;
43
+ UNSAFE_componentWillMount?(): void;
44
+ componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
45
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
46
+ componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
47
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
48
+ };
49
+ new (props: any, context: any): {
50
+ shouldComponentUpdate(nextProps: any): boolean;
51
+ mapNestedChildrenToProps(child: any, nestedChildren: any): {
52
+ innerHTML: any;
53
+ cssText?: undefined;
54
+ } | {
55
+ cssText: any;
56
+ innerHTML?: undefined;
57
+ };
58
+ flattenArrayTypeChildren({ child, arrayTypeChildren, newChildProps, nestedChildren, }: {
59
+ child: any;
60
+ arrayTypeChildren: any;
61
+ newChildProps: any;
62
+ nestedChildren: any;
63
+ }): any;
64
+ mapObjectTypeChildren({ child, newProps, newChildProps, nestedChildren }: {
65
+ child: any;
66
+ newProps: any;
67
+ newChildProps: any;
68
+ nestedChildren: any;
69
+ }): any;
70
+ mapArrayTypeChildrenToProps(arrayTypeChildren: any, newProps: any): any;
71
+ warnOnInvalidChildren(child: any, nestedChildren: any): true | void;
72
+ mapChildrenToProps(children: any, newProps: any): any;
73
+ render(): JSX.Element;
74
+ context: unknown;
75
+ setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
76
+ forceUpdate(callback?: () => void): void;
77
+ readonly props: Readonly<any>;
78
+ state: Readonly<any>;
79
+ refs: {
80
+ [key: string]: React.ReactInstance;
81
+ };
82
+ componentDidMount?(): void;
83
+ componentWillUnmount?(): void;
84
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
85
+ getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
86
+ componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
87
+ componentWillMount?(): void;
88
+ UNSAFE_componentWillMount?(): void;
89
+ componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
90
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
91
+ componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
92
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
29
93
  };
30
94
  /**
31
95
  * @param {Object} base: {"target": "_blank", "href": "http://mysite.com/"}
@@ -45,22 +109,22 @@ declare const HelmetExport: {
45
109
  * @param {String} titleTemplate: "MySite.com - %s"
46
110
  */
47
111
  propTypes: {
48
- base: any;
49
- bodyAttributes: any;
50
- children: any;
51
- defaultTitle: any;
52
- defer: any;
53
- encodeSpecialCharacters: any;
54
- htmlAttributes: any;
55
- link: any;
56
- meta: any;
57
- noscript: any;
58
- onChangeClientState: any;
59
- script: any;
60
- style: any;
61
- title: any;
62
- titleAttributes: any;
63
- titleTemplate: any;
112
+ base: PropTypes.Requireable<object>;
113
+ bodyAttributes: PropTypes.Requireable<object>;
114
+ children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
115
+ defaultTitle: PropTypes.Requireable<string>;
116
+ defer: PropTypes.Requireable<boolean>;
117
+ encodeSpecialCharacters: PropTypes.Requireable<boolean>;
118
+ htmlAttributes: PropTypes.Requireable<object>;
119
+ link: PropTypes.Requireable<object[]>;
120
+ meta: PropTypes.Requireable<object[]>;
121
+ noscript: PropTypes.Requireable<object[]>;
122
+ onChangeClientState: PropTypes.Requireable<(...args: any[]) => any>;
123
+ script: PropTypes.Requireable<object[]>;
124
+ style: PropTypes.Requireable<object[]>;
125
+ title: PropTypes.Requireable<string>;
126
+ titleAttributes: PropTypes.Requireable<object>;
127
+ titleTemplate: PropTypes.Requireable<string>;
64
128
  };
65
129
  defaultProps: {
66
130
  defer: boolean;
@@ -69,4 +133,7 @@ declare const HelmetExport: {
69
133
  peek: any;
70
134
  rewind: () => any;
71
135
  canUseDOM: any;
136
+ contextType?: React.Context<any>;
72
137
  };
138
+ import React from 'react';
139
+ import PropTypes from 'prop-types';
@@ -29,16 +29,22 @@ 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.
36
36
  * @static
37
37
  */
38
38
  static propTypes: {
39
- extractor: any;
40
- markup: any;
41
- store: any;
39
+ extractor: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
40
+ getLinkElements: PropTypes.Validator<(...args: any[]) => any>;
41
+ getScriptElements: PropTypes.Validator<(...args: any[]) => any>;
42
+ getStyleElements: PropTypes.Validator<(...args: any[]) => any>;
43
+ }>>>;
44
+ markup: PropTypes.Validator<string>;
45
+ store: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
46
+ getState: PropTypes.Requireable<(...args: any[]) => any>;
47
+ }>>>;
42
48
  };
43
49
  constructor(props: any);
44
50
  constructor(props: any, context: any);
@@ -49,4 +55,5 @@ declare class Html extends Component<any, any, any> {
49
55
  */
50
56
  render(): string;
51
57
  }
52
- import { Component } from 'react';
58
+ import React from 'react';
59
+ import PropTypes from 'prop-types';
@@ -1,3 +1,4 @@
1
1
  export function useLazyLibs(maybeNames: any, options?: {}): any;
2
- export function preloadLazyLibs(maybeNames: any, forwardRef?: boolean): (WrappedComponent: any) => any;
3
- export function injectLazyLibs(maybeNames: any, forwardRef?: boolean): (WrappedComponent: any) => any;
2
+ export function preloadLazyLibs(maybeNames: any, forwardRef?: boolean): (WrappedComponent: any) => ((props: any) => JSX.Element) & hoistNonReactStatics.NonReactStatics<any, {}>;
3
+ export function injectLazyLibs(maybeNames: any, forwardRef?: boolean): (WrappedComponent: any) => ((props: any) => JSX.Element) & hoistNonReactStatics.NonReactStatics<any, {}>;
4
+ import hoistNonReactStatics from 'hoist-non-react-statics';
@@ -1,2 +1,3 @@
1
- declare const _default: import("react-redux").ConnectedComponent<import("react").JSXElementConstructor<never>, never>;
1
+ declare const _default: import("react-redux").ConnectedComponent<React.JSXElementConstructor<never>, never>;
2
2
  export default _default;
3
+ import React from 'react';
@@ -3,8 +3,8 @@ declare function useUndoManager(state: any, onUndoRedo: any, { maxUndoLevels, en
3
3
  maxUndoLevels: any;
4
4
  enableHotKeys?: boolean;
5
5
  }): {
6
- doUndo: any;
7
- doRedo: any;
8
- canUndo: any;
9
- canRedo: any;
6
+ doUndo: () => void;
7
+ doRedo: () => void;
8
+ canUndo: boolean;
9
+ canRedo: boolean;
10
10
  };
@@ -1,4 +1,4 @@
1
1
  export function usePagination(id?: any, defaultPage?: number): {
2
- currentPage: any;
2
+ currentPage: number;
3
3
  setCurrentPage: (page: any) => void;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Hook used to "cache" the "previous" value of a prop or a computed variable.
3
3
  */
4
- export function usePrevious(value: any): any;
4
+ export function usePrevious(value: any): undefined;
@@ -1,3 +1,9 @@
1
+ export { default as Api } from "@plone/volto/helpers/Api/Api";
2
+ export { getAPIResourceWithAuth } from "@plone/volto/helpers/Api/APIResourceWithAuth";
3
+ export { default as Html } from "@plone/volto/helpers/Html/Html";
4
+ export { generateRobots } from "@plone/volto/helpers/Robots/Robots";
5
+ export { default as BodyClass } from "@plone/volto/helpers/BodyClass/BodyClass";
6
+ export { default as ScrollToTop } from "@plone/volto/helpers/ScrollToTop/ScrollToTop";
1
7
  export { default as langmap } from "./LanguageMap/LanguageMap";
2
8
  export { default as Helmet } from "./Helmet/Helmet";
3
9
  export { messages } from "./MessageLabels/MessageLabels";
@@ -11,6 +17,12 @@ export { default as useUndoManager } from "./UndoManager/useUndoManager";
11
17
  export { getCookieOptions } from "./Cookies/cookies";
12
18
  export { getWidgetView } from "./Widget/widget";
13
19
  export { getSiteAsyncPropExtender } from "./Site";
20
+ export { getAuthToken, persistAuthToken } from "@plone/volto/helpers/AuthToken/AuthToken";
21
+ export { addAppURL, expandToBackendURL, flattenHTMLToAppURL, flattenToAppURL, stripQuerystring, toPublicURL, isInternalURL, getParentUrl, getBaseUrl, getView, isCmsUi, getId, isUrl, normalizeUrl, removeProtocol, URLUtils, flattenScales } from "@plone/volto/helpers/Url/Url";
22
+ export { nestContent, getLayoutFieldname, getContentIcon, getLanguageIndependentFields } from "@plone/volto/helpers/Content/Content";
23
+ export { addBlock, insertBlock, blockHasValue, changeBlock, deleteBlock, emptyBlocksForm, getBlocks, getBlocksFieldname, getBlocksLayoutFieldname, hasBlocksData, moveBlock, mutateBlock, nextBlockId, previousBlockId, applyBlockDefaults, applySchemaDefaults, blocksFormGenerator, buildStyleClassNamesFromData, buildStyleClassNamesExtenders, buildStyleObjectFromData, getPreviousNextBlock, findBlocks } from "@plone/volto/helpers/Blocks/Blocks";
24
+ export { getBoolean, getVocabName, getVocabFromHint, getVocabFromField, getVocabFromItems, getFieldsVocabulary } from "@plone/volto/helpers/Vocabularies/Vocabularies";
14
25
  export { default as FormValidation, validateFileUploadSize } from "./FormValidation/FormValidation";
26
+ export { difference, getColor, getInitials, safeWrapper, applyConfig, withServerErrorCode, parseDateTime, toGettextLang, normalizeLanguageName, toReactIntlLang, toLangUnderscoreRegion, toBackendLang, hasApiExpander, replaceItemOfArray, cloneDeepSchema, arrayRange, reorderArray, isInteractiveElement, slugify, normalizeString } from "@plone/volto/helpers/Utils/Utils";
15
27
  export { withBlockSchemaEnhancer, withVariationSchemaEnhancer, withBlockExtensions, applySchemaEnhancer, resolveExtension, resolveBlockExtensions, addStyling, composeSchema } from "./Extensions";
16
28
  export { getCurrentStateMapping, getWorkflowOptions } from "./Workflows/Workflows";
@@ -1 +1,2 @@
1
- export {};
1
+ export { default as useClipboard } from "@plone/volto/hooks/clipboard/useClipboard";
2
+ export { useClient } from "@plone/volto/hooks/client/useClient";
@@ -1 +1,3 @@
1
+ export { default as api } from "@plone/volto/middleware/api";
1
2
  export { default as blacklistRoutes } from "./blacklistRoutes";
3
+ export { protectLoadStart, protectLoadEnd, loadProtector } from "@plone/volto/middleware/storeProtectLoadUtils";
@@ -50,6 +50,46 @@ declare namespace reducers {
50
50
  export { navroot };
51
51
  }
52
52
  import reduxAsyncConnect from './asyncConnect/asyncConnect';
53
+ import actions from '@plone/volto/reducers/actions/actions';
54
+ import addons from '@plone/volto/reducers/addons/addons';
55
+ import apierror from '@plone/volto/reducers/apierror/apierror';
56
+ import aliases from '@plone/volto/reducers/aliases/aliases';
57
+ import breadcrumbs from '@plone/volto/reducers/breadcrumbs/breadcrumbs';
58
+ import browserdetect from '@plone/volto/reducers/browserdetect/browserdetect';
59
+ import comments from '@plone/volto/reducers/comments/comments';
60
+ import content from '@plone/volto/reducers/content/content';
61
+ import controlpanels from '@plone/volto/reducers/controlpanels/controlpanels';
62
+ import clipboard from '@plone/volto/reducers/clipboard/clipboard';
63
+ import diff from '@plone/volto/reducers/diff/diff';
64
+ import emailNotification from '@plone/volto/reducers/emailNotification/emailNotification';
65
+ import emailSend from '@plone/volto/reducers/emailSend/emailSend';
66
+ import form from '@plone/volto/reducers/form/form';
67
+ import groups from '@plone/volto/reducers/groups/groups';
68
+ import history from '@plone/volto/reducers/history/history';
69
+ import messages from '@plone/volto/reducers/messages/messages';
70
+ import navigation from '@plone/volto/reducers/navigation/navigation';
71
+ import querystring from '@plone/volto/reducers/querystring/querystring';
72
+ import querystringsearch from '@plone/volto/reducers/querystringsearch/querystringsearch';
73
+ import relations from '@plone/volto/reducers/relations/relations';
74
+ import roles from '@plone/volto/reducers/roles/roles';
75
+ import rules from '@plone/volto/reducers/rules/rules';
76
+ import controlpanelrule from '@plone/volto/reducers/controlPanelRule/controlPanelRule';
77
+ import controlpanelrules from '@plone/volto/reducers/controlPanelRules/controlPanelRules';
78
+ import contentrulesevents from '@plone/volto/reducers/contentRulesEvents/contentRulesEvents';
79
+ import schema from '@plone/volto/reducers/schema/schema';
80
+ import search from '@plone/volto/reducers/search/search';
81
+ import sharing from '@plone/volto/reducers/sharing/sharing';
82
+ import sidebar from '@plone/volto/reducers/sidebar/sidebar';
83
+ import types from '@plone/volto/reducers/types/types';
84
+ import users from '@plone/volto/reducers/users/users';
85
+ import authRole from '@plone/volto/reducers/authRole/authRole';
86
+ import userSession from '@plone/volto/reducers/userSession/userSession';
87
+ import vocabularies from '@plone/volto/reducers/vocabularies/vocabularies';
88
+ import workflow from '@plone/volto/reducers/workflow/workflow';
89
+ import toolbar from '@plone/volto/reducers/toolbar/toolbar';
90
+ import blocksClipboard from '@plone/volto/reducers/blocksClipboard/blocksClipboard';
91
+ import lazyLibraries from '@plone/volto/reducers/lazyLibraries/lazyLibraries';
92
+ import contextNavigation from '@plone/volto/reducers/contextNavigation/contextNavigation';
53
93
  import upgrade from './upgrade/upgrade';
54
94
  import workingCopy from './workingcopy/workingcopy';
55
95
  import transactions from './transactions/transactions';
package/types/routes.d.ts CHANGED
@@ -22,6 +22,6 @@ export default routes;
22
22
  */
23
23
  declare const routes: {
24
24
  path: string;
25
- component: any;
25
+ component: import("react-redux").ConnectedComponent<any, any>;
26
26
  routes: any[];
27
27
  }[];
package/types/server.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export function defaultReadCriticalCss(): string;
2
2
  export default server;
3
- declare const server: any;
3
+ declare const server: import("express-serve-static-core").Express;
@@ -3,16 +3,16 @@
3
3
  * @class Wrapper
4
4
  * @extends Component
5
5
  */
6
- export default class Wrapper extends Component<any, any, any> {
6
+ export default class Wrapper extends React.Component<any, any, any> {
7
7
  /**
8
8
  * Property types.
9
9
  * @property {Object} propTypes Property types.
10
10
  * @static
11
11
  */
12
12
  static propTypes: {
13
- pathname: any;
14
- anonymous: any;
15
- customStore: any;
13
+ pathname: PropTypes.Requireable<string>;
14
+ anonymous: PropTypes.Requireable<boolean>;
15
+ customStore: PropTypes.Requireable<object>;
16
16
  };
17
17
  constructor(props: any);
18
18
  constructor(props: any, context: any);
@@ -1051,16 +1051,16 @@ export default class Wrapper extends Component<any, any, any> {
1051
1051
  };
1052
1052
  render(): JSX.Element;
1053
1053
  }
1054
- export class RealStoreWrapper extends Component<any, any, any> {
1054
+ export class RealStoreWrapper extends React.Component<any, any, any> {
1055
1055
  /**
1056
1056
  * Property types.
1057
1057
  * @property {Object} propTypes Property types.
1058
1058
  * @static
1059
1059
  */
1060
1060
  static propTypes: {
1061
- pathname: any;
1062
- anonymous: any;
1063
- customStore: any;
1061
+ pathname: PropTypes.Requireable<string>;
1062
+ anonymous: PropTypes.Requireable<boolean>;
1063
+ customStore: PropTypes.Requireable<object>;
1064
1064
  };
1065
1065
  constructor(props: any);
1066
1066
  constructor(props: any, context: any);
@@ -2104,4 +2104,5 @@ export function FormUndoWrapper({ initialState, children, showControls, }: {
2104
2104
  children: any;
2105
2105
  showControls?: boolean;
2106
2106
  }): JSX.Element;
2107
- import { Component } from 'react';
2107
+ import React from 'react';
2108
+ import PropTypes from 'prop-types';