@plone/volto 17.9.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 (224) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +6 -6
  3. package/packages/volto-slate/package.json +1 -1
  4. package/src/components/manage/Sidebar/SidebarPortal.jsx +1 -1
  5. package/src/components/manage/Widgets/ColorPickerWidget.stories.tsx +48 -0
  6. package/src/components/manage/Widgets/{ColorPickerWidget.jsx → ColorPickerWidget.tsx} +40 -23
  7. package/src/helpers/Extensions/withBlockSchemaEnhancer.js +1 -1
  8. package/tsconfig.declarations.json +16 -0
  9. package/types/actions/authRole/authRole.d.ts +1 -1
  10. package/types/actions/comments/comments.d.ts +1 -1
  11. package/types/actions/content/content.d.ts +1 -1
  12. package/types/actions/controlpanels/controlpanels.d.ts +2 -2
  13. package/types/actions/index.d.ts +36 -0
  14. package/types/actions/upgrade/upgrade.d.ts +2 -2
  15. package/types/components/index.d.ts +180 -0
  16. package/types/components/manage/Actions/Actions.d.ts +2 -1
  17. package/types/components/manage/Add/Add.d.ts +1 -3
  18. package/types/components/manage/AnchorPlugin/components/Link/index.d.ts +6 -5
  19. package/types/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.d.ts +3 -2
  20. package/types/components/manage/AnchorPlugin/components/LinkButton/index.d.ts +1 -1
  21. package/types/components/manage/BlockChooser/BlockChooser.d.ts +2 -1
  22. package/types/components/manage/Blocks/Block/Edit.d.ts +21 -18
  23. package/types/components/manage/Blocks/Block/EditBlockWrapper.d.ts +3 -2
  24. package/types/components/manage/Blocks/Block/Settings.d.ts +3 -2
  25. package/types/components/manage/Blocks/Container/Edit.d.ts +7 -6
  26. package/types/components/manage/Blocks/Description/Edit.d.ts +19 -14
  27. package/types/components/manage/Blocks/Description/View.d.ts +7 -2
  28. package/types/components/manage/Blocks/Grid/Edit.d.ts +6 -5
  29. package/types/components/manage/Blocks/Grid/View.d.ts +1 -1
  30. package/types/components/manage/Blocks/HTML/Edit.d.ts +1 -1
  31. package/types/components/manage/Blocks/HTML/View.d.ts +4 -1
  32. package/types/components/manage/Blocks/HeroImageLeft/View.d.ts +4 -1
  33. package/types/components/manage/Blocks/Image/Edit.d.ts +1 -3
  34. package/types/components/manage/Blocks/Image/ImageSidebar.d.ts +6 -3
  35. package/types/components/manage/Blocks/Image/LayoutSchema.d.ts +36 -1
  36. package/types/components/manage/Blocks/Image/View.d.ts +5 -2
  37. package/types/components/manage/Blocks/LeadImage/Edit.d.ts +3 -2
  38. package/types/components/manage/Blocks/LeadImage/LeadImageSidebar.d.ts +5 -4
  39. package/types/components/manage/Blocks/LeadImage/View.d.ts +7 -2
  40. package/types/components/manage/Blocks/Listing/DefaultTemplate.d.ts +4 -3
  41. package/types/components/manage/Blocks/Listing/Edit.d.ts +1 -1
  42. package/types/components/manage/Blocks/Listing/ImageGallery.d.ts +2 -1
  43. package/types/components/manage/Blocks/Listing/ListingBody.d.ts +3 -2
  44. package/types/components/manage/Blocks/Listing/ListingData.d.ts +6 -3
  45. package/types/components/manage/Blocks/Listing/SummaryTemplate.d.ts +4 -3
  46. package/types/components/manage/Blocks/Listing/View.d.ts +1 -1
  47. package/types/components/manage/Blocks/Listing/withQuerystringResults.d.ts +5 -1
  48. package/types/components/manage/Blocks/Maps/Edit.d.ts +1 -1
  49. package/types/components/manage/Blocks/Maps/View.d.ts +1 -3
  50. package/types/components/manage/Blocks/Search/SearchBlockView.d.ts +1 -1
  51. package/types/components/manage/Blocks/Search/components/DateRangeFacet.d.ts +1 -1
  52. package/types/components/manage/Blocks/Search/components/SelectFacet.d.ts +1 -1
  53. package/types/components/manage/Blocks/Search/components/SortOn.d.ts +1 -3
  54. package/types/components/manage/Blocks/Search/components/ViewSwitcher.d.ts +1 -3
  55. package/types/components/manage/Blocks/Table/Cell.d.ts +1 -1
  56. package/types/components/manage/Blocks/Table/Edit.d.ts +1 -1
  57. package/types/components/manage/Blocks/Table/View.d.ts +4 -1
  58. package/types/components/manage/Blocks/Teaser/Body.d.ts +5 -2
  59. package/types/components/manage/Blocks/Teaser/DefaultBody.d.ts +5 -2
  60. package/types/components/manage/Blocks/Teaser/Edit.d.ts +1 -1
  61. package/types/components/manage/Blocks/Teaser/View.d.ts +1 -1
  62. package/types/components/manage/Blocks/Text/Edit.d.ts +30 -25
  63. package/types/components/manage/Blocks/Text/Schema.d.ts +36 -1
  64. package/types/components/manage/Blocks/Text/View.d.ts +4 -1
  65. package/types/components/manage/Blocks/Title/Edit.d.ts +19 -14
  66. package/types/components/manage/Blocks/ToC/Edit.d.ts +2 -2
  67. package/types/components/manage/Blocks/ToC/View.d.ts +3 -2
  68. package/types/components/manage/Blocks/ToC/variations/DefaultTocRenderer.d.ts +3 -2
  69. package/types/components/manage/Blocks/ToC/variations/HorizontalMenu.d.ts +3 -2
  70. package/types/components/manage/Blocks/Video/Body.d.ts +4 -1
  71. package/types/components/manage/Blocks/Video/Edit.d.ts +1 -3
  72. package/types/components/manage/Blocks/Video/View.d.ts +1 -1
  73. package/types/components/manage/ConditionalLink/ConditionalLink.d.ts +8 -4
  74. package/types/components/manage/Contents/Contents.d.ts +2 -6
  75. package/types/components/manage/Contents/ContentsIndexHeader.d.ts +9 -8
  76. package/types/components/manage/Contents/ContentsItem.d.ts +25 -16
  77. package/types/components/manage/Contents/ContentsPropertiesModal.d.ts +5 -4
  78. package/types/components/manage/Contents/ContentsRenameModal.d.ts +9 -4
  79. package/types/components/manage/Contents/ContentsTagsModal.d.ts +8 -4
  80. package/types/components/manage/Contents/ContentsWorkflowModal.d.ts +5 -4
  81. package/types/components/manage/Controlpanels/ContentTypesActions.d.ts +3 -2
  82. package/types/components/manage/Controlpanels/Controlpanel.d.ts +3 -2
  83. package/types/components/manage/Controlpanels/Controlpanels.d.ts +1 -16
  84. package/types/components/manage/Controlpanels/Groups/RenderGroups.d.ts +3 -2
  85. package/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts +41 -1
  86. package/types/components/manage/Diff/DiffField.d.ts +1 -1
  87. package/types/components/manage/Display/Display.d.ts +1 -3
  88. package/types/components/manage/DragDropList/DragDropList.d.ts +1 -1
  89. package/types/components/manage/Edit/Edit.d.ts +1 -3
  90. package/types/components/manage/Form/BlocksToolbar.d.ts +2 -1
  91. package/types/components/manage/Form/Field.d.ts +3 -2
  92. package/types/components/manage/Form/Form.d.ts +4 -3
  93. package/types/components/manage/Form/InlineForm.d.ts +3 -2
  94. package/types/components/manage/Form/ModalForm.d.ts +3 -2
  95. package/types/components/manage/History/History.d.ts +1 -3
  96. package/types/components/manage/LinkMore/LinkMore.d.ts +4 -1
  97. package/types/components/manage/Multilingual/CompareLanguages.d.ts +2 -1
  98. package/types/components/manage/Multilingual/ManageTranslations.d.ts +41 -1
  99. package/types/components/manage/Pluggable/index.d.ts +26 -7
  100. package/types/components/manage/ReactVirtualized/DynamicRowHeightList.d.ts +1 -1
  101. package/types/components/manage/Sidebar/ObjectBrowser.d.ts +23 -2
  102. package/types/components/manage/Sidebar/Sidebar.d.ts +2 -1
  103. package/types/components/manage/Sidebar/SidebarPopup.d.ts +4 -3
  104. package/types/components/manage/Sidebar/SidebarPortal.d.ts +6 -4
  105. package/types/components/manage/TemplateChooser/TemplateChooser.d.ts +3 -2
  106. package/types/components/manage/TextLineEdit/TextLineEdit.d.ts +22 -17
  107. package/types/components/manage/Toast/Toast.d.ts +7 -6
  108. package/types/components/manage/Toolbar/More.d.ts +3 -2
  109. package/types/components/manage/Toolbar/PersonalTools.d.ts +2 -1
  110. package/types/components/manage/Toolbar/StandardWrapper.d.ts +7 -6
  111. package/types/components/manage/Toolbar/Types.d.ts +19 -5
  112. package/types/components/manage/UniversalLink/UniversalLink.d.ts +11 -7
  113. package/types/components/manage/Widgets/ArrayWidget.d.ts +4 -5
  114. package/types/components/manage/Widgets/CheckboxWidget.d.ts +3 -2
  115. package/types/components/manage/Widgets/ColorPickerWidget.d.ts +21 -21
  116. package/types/components/manage/Widgets/ColorPickerWidget.stories.d.ts +7 -8
  117. package/types/components/manage/Widgets/DatetimeWidget.d.ts +15 -14
  118. package/types/components/manage/Widgets/EmailWidget.d.ts +13 -12
  119. package/types/components/manage/Widgets/FileWidget.d.ts +3 -2
  120. package/types/components/manage/Widgets/FormFieldWrapper.d.ts +3 -2
  121. package/types/components/manage/Widgets/ImageSizeWidget.d.ts +3 -2
  122. package/types/components/manage/Widgets/InternalUrlWidget.d.ts +55 -14
  123. package/types/components/manage/Widgets/NumberWidget.d.ts +3 -2
  124. package/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +23 -22
  125. package/types/components/manage/Widgets/ObjectWidget.d.ts +6 -5
  126. package/types/components/manage/Widgets/PasswordWidget.d.ts +3 -2
  127. package/types/components/manage/Widgets/QuerySortOnWidget.d.ts +1 -1
  128. package/types/components/manage/Widgets/QueryWidget.d.ts +15 -16
  129. package/types/components/manage/Widgets/RecurrenceWidget/ByDayField.d.ts +1 -1
  130. package/types/components/manage/Widgets/RecurrenceWidget/ByMonthDayField.d.ts +3 -2
  131. package/types/components/manage/Widgets/RecurrenceWidget/ByMonthField.d.ts +3 -2
  132. package/types/components/manage/Widgets/RecurrenceWidget/ByYearField.d.ts +3 -2
  133. package/types/components/manage/Widgets/RecurrenceWidget/EndField.d.ts +3 -2
  134. package/types/components/manage/Widgets/RecurrenceWidget/IntervalField.d.ts +5 -4
  135. package/types/components/manage/Widgets/RecurrenceWidget/MonthOfTheYearField.d.ts +1 -1
  136. package/types/components/manage/Widgets/RecurrenceWidget/Occurences.d.ts +4 -3
  137. package/types/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.d.ts +1 -1
  138. package/types/components/manage/Widgets/RecurrenceWidget/SelectInput.d.ts +6 -5
  139. package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthField.d.ts +1 -1
  140. package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.d.ts +3 -2
  141. package/types/components/manage/Widgets/RegistryImageWidget.d.ts +3 -2
  142. package/types/components/manage/Widgets/SchemaWidget.d.ts +1 -3
  143. package/types/components/manage/Widgets/SchemaWidgetFieldset.d.ts +11 -10
  144. package/types/components/manage/Widgets/SelectAutoComplete.d.ts +4 -5
  145. package/types/components/manage/Widgets/SelectStyling.d.ts +7 -7
  146. package/types/components/manage/Widgets/SelectWidget.d.ts +4 -3
  147. package/types/components/manage/Widgets/TextWidget.d.ts +3 -2
  148. package/types/components/manage/Widgets/TextareaWidget.d.ts +3 -2
  149. package/types/components/manage/Widgets/TokenWidget.d.ts +1 -3
  150. package/types/components/manage/Widgets/UrlWidget.d.ts +55 -14
  151. package/types/components/manage/Widgets/WysiwygWidget.d.ts +1 -3
  152. package/types/components/manage/Workflow/Workflow.d.ts +1 -1
  153. package/types/components/theme/Anontools/Anontools.d.ts +5 -2
  154. package/types/components/theme/App/App.d.ts +8 -7
  155. package/types/components/theme/Avatar/Avatar.d.ts +7 -6
  156. package/types/components/theme/Breadcrumbs/Breadcrumbs.d.ts +2 -1
  157. package/types/components/theme/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -2
  158. package/types/components/theme/Comments/CommentEditModal.d.ts +10 -6
  159. package/types/components/theme/Comments/Comments.d.ts +1 -1
  160. package/types/components/theme/Error/ErrorBoundary.d.ts +2 -1
  161. package/types/components/theme/Error/ServerError.d.ts +1 -1
  162. package/types/components/theme/Footer/Footer.d.ts +3 -2
  163. package/types/components/theme/Forbidden/Forbidden.d.ts +1 -1
  164. package/types/components/theme/Header/Header.d.ts +6 -3
  165. package/types/components/theme/Icon/Icon.d.ts +11 -6
  166. package/types/components/theme/Image/Image.d.ts +13 -7
  167. package/types/components/theme/LanguageSelector/LanguageSelector.d.ts +2 -1
  168. package/types/components/theme/Navigation/ContextNavigation.d.ts +9 -1
  169. package/types/components/theme/Navigation/Navigation.d.ts +2 -1
  170. package/types/components/theme/Navigation/withContentNavigation.d.ts +15 -2
  171. package/types/components/theme/NotFound/NotFound.d.ts +1 -1
  172. package/types/components/theme/Pagination/Pagination.d.ts +3 -2
  173. package/types/components/theme/Popup/Popup.d.ts +2 -1
  174. package/types/components/theme/PreviewImage/PreviewImage.d.ts +9 -2
  175. package/types/components/theme/Search/Search.d.ts +1 -3
  176. package/types/components/theme/Sitemap/Sitemap.d.ts +1 -3
  177. package/types/components/theme/SocialSharing/SocialSharing.d.ts +4 -3
  178. package/types/components/theme/Tags/Tags.d.ts +2 -1
  179. package/types/components/theme/Title/Title.d.ts +2 -1
  180. package/types/components/theme/TsTest/TsTest.d.ts +10 -0
  181. package/types/components/theme/TsTest/TsTest.test.d.ts +1 -0
  182. package/types/components/theme/Unauthorized/Unauthorized.d.ts +1 -1
  183. package/types/components/theme/View/AlbumView.d.ts +42 -2
  184. package/types/components/theme/View/DefaultView.d.ts +3 -2
  185. package/types/components/theme/View/EventDatesInfo.d.ts +2 -2
  186. package/types/components/theme/View/EventView.d.ts +20 -1
  187. package/types/components/theme/View/FileView.d.ts +9 -1
  188. package/types/components/theme/View/ImageView.d.ts +12 -1
  189. package/types/components/theme/View/LinkView.d.ts +7 -2
  190. package/types/components/theme/View/ListingView.d.ts +13 -1
  191. package/types/components/theme/View/NewsItemView.d.ts +8 -1
  192. package/types/components/theme/View/SummaryView.d.ts +40 -1
  193. package/types/components/theme/View/TabularView.d.ts +36 -1
  194. package/types/components/theme/Widgets/BooleanWidget.d.ts +3 -2
  195. package/types/config/Blocks.d.ts +19 -1
  196. package/types/config/Components.d.ts +3 -0
  197. package/types/config/Views.d.ts +63 -11
  198. package/types/config/Widgets.d.ts +55 -3
  199. package/types/config/server.d.ts +1 -1
  200. package/types/error.d.ts +3 -2
  201. package/types/express-middleware/devproxy.d.ts +1 -1
  202. package/types/express-middleware/files.d.ts +1 -1
  203. package/types/express-middleware/images.d.ts +1 -1
  204. package/types/express-middleware/ok.d.ts +1 -1
  205. package/types/express-middleware/robotstxt.d.ts +1 -1
  206. package/types/express-middleware/sitemap.d.ts +1 -1
  207. package/types/express-middleware/static.d.ts +1 -1
  208. package/types/helpers/AsyncConnect/AsyncConnect.d.ts +13 -12
  209. package/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts +1 -1
  210. package/types/helpers/Helmet/Helmet.d.ts +84 -17
  211. package/types/helpers/Html/Html.d.ts +12 -5
  212. package/types/helpers/Loadable/Loadable.d.ts +3 -2
  213. package/types/helpers/ScrollToTop/ScrollToTop.d.ts +2 -1
  214. package/types/helpers/UndoManager/useUndoManager.d.ts +4 -4
  215. package/types/helpers/Utils/usePagination.d.ts +1 -1
  216. package/types/helpers/Utils/usePrevious.d.ts +1 -1
  217. package/types/helpers/index.d.ts +12 -0
  218. package/types/hooks/index.d.ts +2 -1
  219. package/types/middleware/index.d.ts +2 -0
  220. package/types/reducers/index.d.ts +40 -0
  221. package/types/routes.d.ts +1 -1
  222. package/types/server.d.ts +1 -1
  223. package/types/storybook.d.ts +10 -9
  224. package/src/components/manage/Widgets/ColorPickerWidget.stories.jsx +0 -30
@@ -3,25 +3,29 @@
3
3
  * @class Edit
4
4
  * @extends Component
5
5
  */
6
- export class Edit extends Component<any, any, any> {
6
+ export class Edit 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
- type: any;
14
- data: any;
15
- properties: any;
16
- selected: any;
17
- multiSelected: any;
18
- index: any;
19
- id: any;
20
- manage: any;
21
- onMoveBlock: any;
22
- onDeleteBlock: any;
23
- editable: any;
24
- pathname: any;
13
+ type: PropTypes.Validator<string>;
14
+ data: PropTypes.Validator<{
15
+ [x: string]: any;
16
+ }>;
17
+ properties: PropTypes.Validator<{
18
+ [x: string]: any;
19
+ }>;
20
+ selected: PropTypes.Validator<boolean>;
21
+ multiSelected: PropTypes.Requireable<boolean>;
22
+ index: PropTypes.Validator<number>;
23
+ id: PropTypes.Validator<string>;
24
+ manage: PropTypes.Requireable<boolean>;
25
+ onMoveBlock: PropTypes.Validator<(...args: any[]) => any>;
26
+ onDeleteBlock: PropTypes.Validator<(...args: any[]) => any>;
27
+ editable: PropTypes.Requireable<boolean>;
28
+ pathname: PropTypes.Validator<string>;
25
29
  };
26
30
  /**
27
31
  * Default properties.
@@ -36,7 +40,7 @@ export class Edit extends Component<any, any, any> {
36
40
  constructor(props: any, context: any);
37
41
  componentDidMount(): void;
38
42
  UNSAFE_componentWillReceiveProps(nextProps: any): void;
39
- blockNode: any;
43
+ blockNode: React.RefObject<any>;
40
44
  /**
41
45
  * Render method.
42
46
  * @method render
@@ -44,8 +48,7 @@ export class Edit extends Component<any, any, any> {
44
48
  */
45
49
  render(): string;
46
50
  }
47
- declare const _default: import("react").ForwardRefExoticComponent<Pick<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, string> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
48
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
49
- };
51
+ declare const _default: any;
50
52
  export default _default;
51
- import { Component } from 'react';
53
+ import React from 'react';
54
+ import PropTypes from 'prop-types';
@@ -1,4 +1,5 @@
1
- declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
2
- WrappedComponent: import("react").ComponentType<any>;
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: import("react").FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>> & {
2
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
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';
@@ -2,11 +2,12 @@ export default ContainerBlockEdit;
2
2
  declare function ContainerBlockEdit(props: any): JSX.Element;
3
3
  declare namespace ContainerBlockEdit {
4
4
  namespace propTypes {
5
- let block: any;
6
- let onChangeBlock: any;
7
- let pathname: any;
8
- let selected: any;
9
- let manage: any;
10
- let direction: any;
5
+ let block: PropTypes.Validator<string>;
6
+ let onChangeBlock: PropTypes.Validator<(...args: any[]) => any>;
7
+ let pathname: PropTypes.Validator<string>;
8
+ let selected: PropTypes.Validator<boolean>;
9
+ let manage: PropTypes.Validator<boolean>;
10
+ let direction: PropTypes.Requireable<string>;
11
11
  }
12
12
  }
13
+ import PropTypes from 'prop-types';
@@ -1,20 +1,24 @@
1
1
  export function DescriptionBlockEdit(props: any): JSX.Element;
2
2
  export namespace DescriptionBlockEdit {
3
3
  namespace propTypes {
4
- let properties: any;
5
- let selected: any;
6
- let block: any;
7
- let index: any;
8
- let onChangeField: any;
9
- let onSelectBlock: any;
10
- let onDeleteBlock: any;
11
- let onAddBlock: any;
12
- let onFocusPreviousBlock: any;
13
- let onFocusNextBlock: any;
14
- let data: any;
15
- let editable: any;
16
- let detached: any;
17
- let blockNode: any;
4
+ let properties: PropTypes.Validator<{
5
+ [x: string]: any;
6
+ }>;
7
+ let selected: PropTypes.Validator<boolean>;
8
+ let block: PropTypes.Validator<string>;
9
+ let index: PropTypes.Validator<number>;
10
+ let onChangeField: PropTypes.Validator<(...args: any[]) => any>;
11
+ let onSelectBlock: PropTypes.Validator<(...args: any[]) => any>;
12
+ let onDeleteBlock: PropTypes.Validator<(...args: any[]) => any>;
13
+ let onAddBlock: PropTypes.Validator<(...args: any[]) => any>;
14
+ let onFocusPreviousBlock: PropTypes.Validator<(...args: any[]) => any>;
15
+ let onFocusNextBlock: PropTypes.Validator<(...args: any[]) => any>;
16
+ let data: PropTypes.Validator<{
17
+ [x: string]: any;
18
+ }>;
19
+ let editable: PropTypes.Requireable<boolean>;
20
+ let detached: PropTypes.Requireable<boolean>;
21
+ let blockNode: PropTypes.Requireable<any>;
18
22
  }
19
23
  namespace defaultProps {
20
24
  let detached_1: boolean;
@@ -24,3 +28,4 @@ export namespace DescriptionBlockEdit {
24
28
  }
25
29
  }
26
30
  export default DescriptionBlockEdit;
31
+ import PropTypes from 'prop-types';
@@ -5,7 +5,12 @@ declare function DescriptionBlockView({ properties, metadata }: {
5
5
  }): JSX.Element;
6
6
  declare namespace DescriptionBlockView {
7
7
  namespace propTypes {
8
- let properties: any;
9
- let metadata: any;
8
+ let properties: PropTypes.Validator<{
9
+ [x: string]: any;
10
+ }>;
11
+ let metadata: PropTypes.Requireable<{
12
+ [x: string]: any;
13
+ }>;
10
14
  }
11
15
  }
16
+ import PropTypes from 'prop-types';
@@ -2,10 +2,11 @@ export default GridBlockEdit;
2
2
  declare function GridBlockEdit(props: any): JSX.Element;
3
3
  declare namespace GridBlockEdit {
4
4
  namespace propTypes {
5
- let block: any;
6
- let onChangeBlock: any;
7
- let pathname: any;
8
- let selected: any;
9
- let manage: any;
5
+ let block: PropTypes.Validator<string>;
6
+ let onChangeBlock: PropTypes.Validator<(...args: any[]) => any>;
7
+ let pathname: PropTypes.Validator<string>;
8
+ let selected: PropTypes.Validator<boolean>;
9
+ let manage: PropTypes.Validator<boolean>;
10
10
  }
11
11
  }
12
+ import PropTypes from 'prop-types';
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: (props: any) => JSX.Element;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
2
2
  export default _default;
@@ -4,6 +4,9 @@ declare function View({ data }: {
4
4
  }): JSX.Element;
5
5
  declare namespace View {
6
6
  namespace propTypes {
7
- let data: any;
7
+ let data: PropTypes.Validator<{
8
+ [x: string]: any;
9
+ }>;
8
10
  }
9
11
  }
12
+ import PropTypes from 'prop-types';
@@ -4,6 +4,9 @@ declare function View({ data }: {
4
4
  }): JSX.Element;
5
5
  declare namespace View {
6
6
  namespace propTypes {
7
- let data: any;
7
+ let data: PropTypes.Validator<{
8
+ [x: string]: any;
9
+ }>;
8
10
  }
9
11
  }
12
+ import PropTypes from 'prop-types';
@@ -1,4 +1,2 @@
1
- declare const _default: import("react").ForwardRefExoticComponent<Pick<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, string> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
2
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
3
- };
1
+ declare const _default: any;
4
2
  export default _default;
@@ -2,8 +2,11 @@ export default ImageSidebar;
2
2
  declare function ImageSidebar(props: any): JSX.Element;
3
3
  declare namespace ImageSidebar {
4
4
  namespace propTypes {
5
- let data: any;
6
- let block: any;
7
- let onChangeBlock: any;
5
+ let data: PropTypes.Validator<{
6
+ [x: string]: any;
7
+ }>;
8
+ let block: PropTypes.Validator<string>;
9
+ let onChangeBlock: PropTypes.Validator<(...args: any[]) => any>;
8
10
  }
9
11
  }
12
+ import PropTypes from 'prop-types';
@@ -1,2 +1,37 @@
1
1
  export default Schema;
2
- declare const Schema: any;
2
+ declare const Schema: {
3
+ fieldsets: {
4
+ id: string;
5
+ title: string;
6
+ fields: string[];
7
+ }[];
8
+ properties: {
9
+ placeholder: {
10
+ title: string;
11
+ description: string;
12
+ type: string;
13
+ };
14
+ required: {
15
+ title: string;
16
+ description: string;
17
+ type: string;
18
+ };
19
+ fixed: {
20
+ title: string;
21
+ description: string;
22
+ type: string;
23
+ };
24
+ disableNewBlocks: {
25
+ title: string;
26
+ description: string;
27
+ type: string;
28
+ };
29
+ readOnly: {
30
+ title: string;
31
+ description: string;
32
+ type: string;
33
+ };
34
+ };
35
+ title: string;
36
+ required: any[];
37
+ };
@@ -7,8 +7,11 @@ export function View({ className, data, detached, properties, style }: {
7
7
  }): JSX.Element;
8
8
  export namespace View {
9
9
  namespace propTypes {
10
- let data: any;
10
+ let data: PropTypes.Validator<{
11
+ [x: string]: any;
12
+ }>;
11
13
  }
12
14
  }
13
- declare const _default: any;
15
+ declare const _default: (props: any) => JSX.Element;
14
16
  export default _default;
17
+ import PropTypes from 'prop-types';
@@ -1,4 +1,5 @@
1
- declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
2
- WrappedComponent: import("react").ComponentType<any>;
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,4 @@
1
- declare const _default: import("react").ForwardRefExoticComponent<import("react-intl").Omit<{
1
+ declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<{
2
2
  properties: any;
3
3
  data: any;
4
4
  block: any;
@@ -8,9 +8,9 @@ declare const _default: import("react").ForwardRefExoticComponent<import("react-
8
8
  onChangeField: any;
9
9
  intl: any;
10
10
  }, "intl"> & {
11
- forwardedRef?: import("react").Ref<any>;
12
- } & import("react").RefAttributes<any>> & {
13
- WrappedComponent: import("react").ComponentType<{
11
+ forwardedRef?: React.Ref<any>;
12
+ } & React.RefAttributes<any>> & {
13
+ WrappedComponent: React.ComponentType<{
14
14
  properties: any;
15
15
  data: any;
16
16
  block: any;
@@ -22,3 +22,4 @@ declare const _default: import("react").ForwardRefExoticComponent<import("react-
22
22
  }>;
23
23
  };
24
24
  export default _default;
25
+ import React from 'react';
@@ -5,7 +5,12 @@ declare function View({ data, properties }: {
5
5
  }): JSX.Element;
6
6
  declare namespace View {
7
7
  namespace propTypes {
8
- let data: any;
9
- let properties: any;
8
+ let data: PropTypes.Validator<{
9
+ [x: string]: any;
10
+ }>;
11
+ let properties: PropTypes.Validator<{
12
+ [x: string]: any;
13
+ }>;
10
14
  }
11
15
  }
16
+ import PropTypes from 'prop-types';
@@ -8,8 +8,9 @@ declare function DefaultTemplate({ headlineTag, items, linkTitle, linkHref, isEd
8
8
  }): JSX.Element;
9
9
  declare namespace DefaultTemplate {
10
10
  namespace propTypes {
11
- let items: any;
12
- let linkMore: any;
13
- let isEditMode: any;
11
+ let items: PropTypes.Validator<any[]>;
12
+ let linkMore: PropTypes.Requireable<any>;
13
+ let isEditMode: PropTypes.Requireable<boolean>;
14
14
  }
15
15
  }
16
+ import PropTypes from 'prop-types';
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: (props: any) => JSX.Element;
2
2
  export default _default;
@@ -4,6 +4,7 @@ declare function ImageGalleryTemplate({ items }: {
4
4
  }): JSX.Element;
5
5
  declare namespace ImageGalleryTemplate {
6
6
  namespace propTypes {
7
- let items: any;
7
+ let items: PropTypes.Validator<any[]>;
8
8
  }
9
9
  }
10
+ import PropTypes from 'prop-types';
@@ -1,4 +1,5 @@
1
- declare const _default: import("react").FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<any>>> & {
2
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<any>>;
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';
@@ -2,8 +2,11 @@ export default ListingData;
2
2
  declare function ListingData(props: any): JSX.Element;
3
3
  declare namespace ListingData {
4
4
  namespace propTypes {
5
- let data: any;
6
- let block: any;
7
- let onChangeBlock: any;
5
+ let data: PropTypes.Validator<{
6
+ [x: string]: any;
7
+ }>;
8
+ let block: PropTypes.Validator<string>;
9
+ let onChangeBlock: PropTypes.Validator<(...args: any[]) => any>;
8
10
  }
9
11
  }
12
+ import PropTypes from 'prop-types';
@@ -7,8 +7,9 @@ declare function SummaryTemplate({ items, linkTitle, linkHref, isEditMode }: {
7
7
  }): JSX.Element;
8
8
  declare namespace SummaryTemplate {
9
9
  namespace propTypes {
10
- let items: any;
11
- let linkMore: any;
12
- let isEditMode: any;
10
+ let items: PropTypes.Validator<any[]>;
11
+ let linkMore: PropTypes.Requireable<any>;
12
+ let isEditMode: PropTypes.Requireable<boolean>;
13
13
  }
14
14
  }
15
+ import PropTypes from 'prop-types';
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: (props: any) => JSX.Element;
2
2
  export default _default;
@@ -1 +1,5 @@
1
- export default function withQuerystringResults(WrappedComponent: any): any;
1
+ export default function withQuerystringResults(WrappedComponent: any): {
2
+ (props: any): JSX.Element;
3
+ displayName: string;
4
+ } & hoistNonReactStatics.NonReactStatics<any, {}>;
5
+ import hoistNonReactStatics from 'hoist-non-react-statics';
@@ -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,2 @@
1
- declare const _default: import("react").ForwardRefExoticComponent<Pick<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, string> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
2
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
3
- };
1
+ declare const _default: any;
4
2
  export default _default;
@@ -1,4 +1,4 @@
1
- export const SearchBlockViewComponent: any;
1
+ export const SearchBlockViewComponent: (props: any) => JSX.Element;
2
2
  declare const _default: {
3
3
  (props: any): JSX.Element;
4
4
  displayName: string;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
2
2
  export default _default;
@@ -1,4 +1,2 @@
1
- declare const _default: import("react").ForwardRefExoticComponent<Pick<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, string> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
2
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
3
- };
1
+ declare const _default: any;
4
2
  export default _default;
@@ -1,4 +1,2 @@
1
- declare const _default: import("react").ForwardRefExoticComponent<Pick<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, string> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
2
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
3
- };
1
+ declare const _default: any;
4
2
  export default _default;
@@ -1,3 +1,3 @@
1
- export const Cell: any;
1
+ export const Cell: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
2
2
  export default Preloader;
3
3
  declare function Preloader(props: any): JSX.Element;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
2
2
  export default _default;
@@ -4,6 +4,9 @@ declare function View({ data }: {
4
4
  }): JSX.Element;
5
5
  declare namespace View {
6
6
  namespace propTypes {
7
- let data: any;
7
+ let data: PropTypes.Validator<{
8
+ [x: string]: any;
9
+ }>;
8
10
  }
9
11
  }
12
+ import PropTypes from 'prop-types';
@@ -2,7 +2,10 @@ export default TeaserBody;
2
2
  declare function TeaserBody(props: any): JSX.Element;
3
3
  declare namespace TeaserBody {
4
4
  namespace propTypes {
5
- let data: any;
6
- let isEditMode: any;
5
+ let data: PropTypes.Validator<{
6
+ [x: string]: any;
7
+ }>;
8
+ let isEditMode: PropTypes.Requireable<boolean>;
7
9
  }
8
10
  }
11
+ import PropTypes from 'prop-types';
@@ -2,7 +2,10 @@ export default TeaserDefaultTemplate;
2
2
  declare function TeaserDefaultTemplate(props: any): JSX.Element;
3
3
  declare namespace TeaserDefaultTemplate {
4
4
  namespace propTypes {
5
- let data: any;
6
- let isEditMode: any;
5
+ let data: PropTypes.Validator<{
6
+ [x: string]: any;
7
+ }>;
8
+ let isEditMode: PropTypes.Requireable<boolean>;
7
9
  }
8
10
  }
11
+ import PropTypes from 'prop-types';
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: (props: any) => JSX.Element;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: (props: any) => JSX.Element;
2
2
  export default _default;
@@ -3,33 +3,39 @@
3
3
  * @class Edit
4
4
  * @extends Component
5
5
  */
6
- export class EditComponent extends Component<any, any, any> {
6
+ export class EditComponent 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
- data: any;
14
- detached: any;
15
- index: any;
16
- selected: any;
17
- block: any;
18
- onAddBlock: any;
19
- onInsertBlock: any;
20
- onChangeBlock: any;
21
- onDeleteBlock: any;
22
- onMutateBlock: any;
23
- onFocusPreviousBlock: any;
24
- onFocusNextBlock: any;
25
- onSelectBlock: any;
26
- editable: any;
27
- allowedBlocks: any;
28
- showRestricted: any;
29
- formTitle: any;
30
- formDescription: any;
31
- blocksConfig: any;
32
- properties: any;
13
+ data: PropTypes.Validator<{
14
+ [x: string]: any;
15
+ }>;
16
+ detached: PropTypes.Requireable<boolean>;
17
+ index: PropTypes.Validator<number>;
18
+ selected: PropTypes.Validator<boolean>;
19
+ block: PropTypes.Validator<string>;
20
+ onAddBlock: PropTypes.Validator<(...args: any[]) => any>;
21
+ onInsertBlock: PropTypes.Validator<(...args: any[]) => any>;
22
+ onChangeBlock: PropTypes.Validator<(...args: any[]) => any>;
23
+ onDeleteBlock: PropTypes.Validator<(...args: any[]) => any>;
24
+ onMutateBlock: PropTypes.Validator<(...args: any[]) => any>;
25
+ onFocusPreviousBlock: PropTypes.Validator<(...args: any[]) => any>;
26
+ onFocusNextBlock: PropTypes.Validator<(...args: any[]) => any>;
27
+ onSelectBlock: PropTypes.Validator<(...args: any[]) => any>;
28
+ editable: PropTypes.Requireable<boolean>;
29
+ allowedBlocks: PropTypes.Requireable<string[]>;
30
+ showRestricted: PropTypes.Requireable<boolean>;
31
+ formTitle: PropTypes.Requireable<string>;
32
+ formDescription: PropTypes.Requireable<string>;
33
+ blocksConfig: PropTypes.Requireable<{
34
+ [x: string]: any;
35
+ }>;
36
+ properties: PropTypes.Requireable<{
37
+ [x: string]: any;
38
+ }>;
33
39
  };
34
40
  /**
35
41
  * Default properties
@@ -84,9 +90,8 @@ export class EditComponent extends Component<any, any, any> {
84
90
  render(): string;
85
91
  node: any;
86
92
  }
87
- export const Edit: import("react").ForwardRefExoticComponent<Pick<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, string> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
88
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
89
- };
93
+ export const Edit: any;
90
94
  export default Preloader;
91
- import { Component } from 'react';
95
+ import React from 'react';
96
+ import PropTypes from 'prop-types';
92
97
  declare function Preloader(props: any): JSX.Element;