@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,26 +3,26 @@
3
3
  * @class ObjectBrowserWidget
4
4
  * @extends Component
5
5
  */
6
- export class ObjectBrowserWidgetComponent extends Component<any, any, any> {
6
+ export class ObjectBrowserWidgetComponent 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
- id: any;
14
- title: any;
15
- description: any;
16
- mode: any;
17
- return: any;
18
- initialPath: any;
19
- required: any;
20
- error: any;
21
- value: any;
22
- onChange: any;
23
- openObjectBrowser: any;
24
- allowExternals: any;
25
- placeholder: any;
13
+ id: PropTypes.Validator<string>;
14
+ title: PropTypes.Validator<string>;
15
+ description: PropTypes.Requireable<string>;
16
+ mode: PropTypes.Requireable<string>;
17
+ return: PropTypes.Requireable<string>;
18
+ initialPath: PropTypes.Requireable<string>;
19
+ required: PropTypes.Requireable<boolean>;
20
+ error: PropTypes.Requireable<string[]>;
21
+ value: PropTypes.Requireable<object>;
22
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
23
+ openObjectBrowser: PropTypes.Validator<(...args: any[]) => any>;
24
+ allowExternals: PropTypes.Requireable<boolean>;
25
+ placeholder: PropTypes.Requireable<string>;
26
26
  };
27
27
  /**
28
28
  * Default properties
@@ -44,13 +44,13 @@ export class ObjectBrowserWidgetComponent extends Component<any, any, any> {
44
44
  manualLinkInput: string;
45
45
  validURL: boolean;
46
46
  };
47
- selectedItemsRef: any;
48
- placeholderRef: any;
47
+ selectedItemsRef: React.RefObject<any>;
48
+ placeholderRef: React.RefObject<any>;
49
49
  renderLabel(item: any): JSX.Element;
50
50
  removeItem: (item: any) => void;
51
51
  onChange: (item: any) => void;
52
52
  onManualLinkInput: (e: any) => void;
53
- validateManualLink: (url: any) => any;
53
+ validateManualLink: (url: any) => boolean;
54
54
  onSubmitManualLink: () => void;
55
55
  onKeyDownManualLink: (e: any) => void;
56
56
  showObjectBrowser: (ev: any) => void;
@@ -62,11 +62,12 @@ export class ObjectBrowserWidgetComponent extends Component<any, any, any> {
62
62
  */
63
63
  render(): string;
64
64
  }
65
- 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>>>> & {
66
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
65
+ declare const _default: React.ForwardRefExoticComponent<Pick<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, string> & React.RefAttributes<React.ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
66
+ WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
67
67
  };
68
68
  export default _default;
69
- import { Component } from 'react';
70
- export function ObjectBrowserWidgetMode(mode: any): 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>>>> & {
71
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
69
+ import React from 'react';
70
+ import PropTypes from 'prop-types';
71
+ export function ObjectBrowserWidgetMode(mode: any): React.ForwardRefExoticComponent<Pick<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, string> & React.RefAttributes<React.ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
72
+ WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
72
73
  };
@@ -18,14 +18,15 @@ declare function ObjectWidget({ block, schema, value, onChange, errors, id, ...p
18
18
  }): JSX.Element;
19
19
  declare namespace ObjectWidget {
20
20
  namespace propTypes {
21
- let id: any;
22
- let schema: any;
23
- let errors: any;
24
- let value: any;
25
- let onChange: any;
21
+ let id: PropTypes.Validator<string>;
22
+ let schema: PropTypes.Validator<object>;
23
+ let errors: PropTypes.Requireable<object>;
24
+ let value: PropTypes.Requireable<object>;
25
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
26
26
  }
27
27
  namespace defaultProps {
28
28
  let value_1: any;
29
29
  export { value_1 as value };
30
30
  }
31
31
  }
32
+ 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,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,24 +1,24 @@
1
1
  /**
2
2
  * Widget for a querystring value, to define a catalog search criteria.
3
3
  */
4
- export class QuerystringWidgetComponent extends Component<any, any, any> {
4
+ export class QuerystringWidgetComponent extends React.Component<any, any, any> {
5
5
  /**
6
6
  * Property types.
7
7
  * @property {Object} propTypes Property types.
8
8
  * @static
9
9
  */
10
10
  static propTypes: {
11
- id: any;
12
- title: any;
13
- description: any;
14
- required: any;
15
- error: any;
16
- value: any;
17
- focus: any;
18
- onChange: any;
19
- onEdit: any;
20
- onDelete: any;
21
- getQuerystring: any;
11
+ id: PropTypes.Validator<string>;
12
+ title: PropTypes.Validator<string>;
13
+ description: PropTypes.Requireable<string>;
14
+ required: PropTypes.Requireable<boolean>;
15
+ error: PropTypes.Requireable<string[]>;
16
+ value: PropTypes.Requireable<any[]>;
17
+ focus: PropTypes.Requireable<boolean>;
18
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
19
+ onEdit: PropTypes.Requireable<(...args: any[]) => any>;
20
+ onDelete: PropTypes.Requireable<(...args: any[]) => any>;
21
+ getQuerystring: PropTypes.Validator<(...args: any[]) => any>;
22
22
  };
23
23
  /**
24
24
  * Default properties.
@@ -74,8 +74,7 @@ export class QuerystringWidgetComponent extends Component<any, any, any> {
74
74
  */
75
75
  render(): string;
76
76
  }
77
- 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>>>> & {
78
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
79
- };
77
+ declare const _default: any;
80
78
  export default _default;
81
- import { Component } from 'react';
79
+ import React from 'react';
80
+ import PropTypes from 'prop-types';
@@ -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,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';
@@ -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';
@@ -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';
@@ -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';
@@ -12,10 +12,10 @@ declare function IntervalField({ label, labelAfter, value, onChange }: {
12
12
  }): string;
13
13
  declare namespace IntervalField {
14
14
  namespace propTypes {
15
- let label: any;
16
- let labelAfter: any;
17
- let value: any;
18
- let onChange: any;
15
+ let label: PropTypes.Validator<string>;
16
+ let labelAfter: PropTypes.Requireable<string>;
17
+ let value: PropTypes.Requireable<any>;
18
+ let onChange: PropTypes.Requireable<(...args: any[]) => any>;
19
19
  }
20
20
  namespace defaultProps {
21
21
  let label_1: any;
@@ -26,3 +26,4 @@ declare namespace IntervalField {
26
26
  export { onChange_1 as onChange };
27
27
  }
28
28
  }
29
+ import PropTypes from 'prop-types';
@@ -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,5 +1,6 @@
1
- export const Occurences: any;
2
- declare const _default: import("react").FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<any>>> & {
3
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<any>>;
1
+ export const Occurences: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
2
+ declare const _default: React.FC<import("react-intl").WithIntlProps<any>> & {
3
+ WrappedComponent: React.ComponentType<any>;
4
4
  };
5
5
  export default _default;
6
+ import React from 'react';
@@ -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;
@@ -13,11 +13,11 @@ declare function SelectInput({ name, disabled, options, value, onChange }: {
13
13
  }): string;
14
14
  declare namespace SelectInput {
15
15
  namespace propTypes {
16
- let name: any;
17
- let options: any;
18
- let disabled: any;
19
- let value: any;
20
- let onChange: any;
16
+ let name: PropTypes.Validator<string>;
17
+ let options: PropTypes.Validator<any[]>;
18
+ let disabled: PropTypes.Requireable<boolean>;
19
+ let value: PropTypes.Requireable<any>;
20
+ let onChange: PropTypes.Requireable<(...args: any[]) => any>;
21
21
  }
22
22
  namespace defaultProps {
23
23
  let name_1: string;
@@ -32,3 +32,4 @@ declare namespace SelectInput {
32
32
  export { onChange_1 as onChange };
33
33
  }
34
34
  }
35
+ import PropTypes from 'prop-types';
@@ -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,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<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,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;
@@ -12,16 +12,17 @@ export function SchemaWidgetFieldsetComponent({ title, order, active, onShowEdit
12
12
  }): string;
13
13
  export namespace SchemaWidgetFieldsetComponent {
14
14
  namespace propTypes {
15
- let order: any;
16
- let active: any;
17
- let onOrderFieldset: any;
18
- let onShowEditFieldset: any;
19
- let onShowDeleteFieldset: any;
20
- let onClick: any;
21
- let getItemStyle: any;
22
- let isDraggable: any;
23
- let isDisabled: any;
15
+ let order: PropTypes.Validator<number>;
16
+ let active: PropTypes.Validator<boolean>;
17
+ let onOrderFieldset: PropTypes.Validator<(...args: any[]) => any>;
18
+ let onShowEditFieldset: PropTypes.Validator<(...args: any[]) => any>;
19
+ let onShowDeleteFieldset: PropTypes.Validator<(...args: any[]) => any>;
20
+ let onClick: PropTypes.Validator<(...args: any[]) => any>;
21
+ let getItemStyle: PropTypes.Validator<(...args: any[]) => any>;
22
+ let isDraggable: PropTypes.Requireable<boolean>;
23
+ let isDisabled: PropTypes.Requireable<boolean>;
24
24
  }
25
25
  }
26
- declare const _default: any;
26
+ declare const _default: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
27
27
  export default _default;
28
+ import PropTypes from 'prop-types';
@@ -1,7 +1,6 @@
1
- export const SelectAutoCompleteComponent: import("react").FC<import("react-intl").WithIntlProps<any>> & {
2
- WrappedComponent: import("react").ComponentType<any>;
3
- };
4
- 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>>>> & {
5
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
1
+ export const SelectAutoCompleteComponent: React.FC<import("react-intl").WithIntlProps<any>> & {
2
+ WrappedComponent: React.ComponentType<any>;
6
3
  };
4
+ declare const _default: any;
7
5
  export default _default;
6
+ import React from 'react';
@@ -1,13 +1,13 @@
1
1
  export function MenuList({ children }: {
2
2
  children: any;
3
3
  }): JSX.Element;
4
- export const SortableMultiValue: any;
5
- export const SortableMultiValueLabel: any;
6
- export const MultiValueContainer: any;
7
- export const Option: any;
8
- export const DropdownIndicator: any;
9
- export const ClearIndicator: any;
10
- export const Group: any;
4
+ export const SortableMultiValue: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
5
+ export const SortableMultiValueLabel: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
6
+ export const MultiValueContainer: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
7
+ export const Option: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
8
+ export const DropdownIndicator: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
9
+ export const ClearIndicator: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
10
+ export const Group: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
11
11
  export function selectTheme(theme: any): any;
12
12
  export namespace customSelectStyles {
13
13
  function control(styles: any, state: any): any;
@@ -1,5 +1,6 @@
1
- export const SelectWidgetComponent: import("react").FC<import("react-intl").WithIntlProps<any>> & {
2
- WrappedComponent: import("react").ComponentType<any>;
1
+ export const SelectWidgetComponent: React.FC<import("react-intl").WithIntlProps<any>> & {
2
+ WrappedComponent: React.ComponentType<any>;
3
3
  };
4
- declare const _default: any;
4
+ declare const _default: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
5
5
  export default _default;
6
+ import React from 'react';
@@ -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<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,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,19 +1,19 @@
1
1
  export function UrlWidget(props: any): JSX.Element;
2
2
  export namespace UrlWidget {
3
3
  namespace propTypes {
4
- let id: any;
5
- let title: any;
6
- let description: any;
7
- let required: any;
8
- let error: any;
9
- let value: any;
10
- let onChange: any;
11
- let onBlur: any;
12
- let onClick: any;
13
- let minLength: any;
14
- let maxLength: any;
15
- let openObjectBrowser: any;
16
- let placeholder: any;
4
+ let id: PropTypes.Validator<string>;
5
+ let title: PropTypes.Validator<string>;
6
+ let description: PropTypes.Requireable<string>;
7
+ let required: PropTypes.Requireable<boolean>;
8
+ let error: PropTypes.Requireable<string[]>;
9
+ let value: PropTypes.Requireable<string>;
10
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
11
+ let onBlur: PropTypes.Requireable<(...args: any[]) => any>;
12
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
13
+ let minLength: PropTypes.Requireable<number>;
14
+ let maxLength: PropTypes.Requireable<number>;
15
+ let openObjectBrowser: PropTypes.Validator<(...args: any[]) => any>;
16
+ let placeholder: PropTypes.Requireable<string>;
17
17
  }
18
18
  namespace defaultProps {
19
19
  let description_1: any;
@@ -36,5 +36,46 @@ export namespace UrlWidget {
36
36
  export { maxLength_1 as maxLength };
37
37
  }
38
38
  }
39
- declare const _default: any;
39
+ declare const _default: {
40
+ new (): {
41
+ state: {
42
+ isObjectBrowserOpen: boolean;
43
+ };
44
+ openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: {
45
+ mode: string;
46
+ dataName: string;
47
+ onSelectItem: string;
48
+ overlay: string;
49
+ }) => void;
50
+ closeObjectBrowser: () => void;
51
+ render(): JSX.Element;
52
+ context: unknown;
53
+ setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
54
+ forceUpdate(callback?: () => void): void;
55
+ readonly props: Readonly<any>;
56
+ refs: {
57
+ [key: string]: React.ReactInstance;
58
+ };
59
+ componentDidMount?(): void;
60
+ shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
61
+ componentWillUnmount?(): void;
62
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
63
+ getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
64
+ componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
65
+ componentWillMount?(): void;
66
+ UNSAFE_componentWillMount?(): void;
67
+ componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
68
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
69
+ componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
70
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
71
+ };
72
+ defaultProps: {
73
+ onChangeBlock: () => void;
74
+ data: {};
75
+ block: string;
76
+ };
77
+ contextType?: React.Context<any>;
78
+ };
40
79
  export default _default;
80
+ import PropTypes from 'prop-types';
81
+ import React from 'react';
@@ -1,5 +1,3 @@
1
- export const WysiwygWidget: 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
+ export const WysiwygWidget: any;
4
2
  export default Preloader;
5
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;
@@ -2,8 +2,10 @@ export default Anontools;
2
2
  declare function Anontools(): JSX.Element;
3
3
  declare namespace Anontools {
4
4
  namespace propTypes {
5
- let token: any;
6
- let content: any;
5
+ let token: PropTypes.Requireable<string>;
6
+ let content: PropTypes.Requireable<PropTypes.InferProps<{
7
+ '@id': PropTypes.Requireable<string>;
8
+ }>>;
7
9
  }
8
10
  namespace defaultProps {
9
11
  let token_1: any;
@@ -14,3 +16,4 @@ declare namespace Anontools {
14
16
  export { content_1 as content };
15
17
  }
16
18
  }
19
+ import PropTypes from 'prop-types';
@@ -1,17 +1,17 @@
1
- export function connectAppComponent(AppComponent: any): any;
1
+ export function connectAppComponent(AppComponent: any): import("react-redux").ConnectedComponent<any, any>;
2
2
  /**
3
3
  * @export
4
4
  * @class App
5
5
  * @extends {Component}
6
6
  */
7
- export class App extends Component<any, any, any> {
7
+ export class App extends React.Component<any, any, any> {
8
8
  /**
9
9
  * Property types.
10
10
  * @property {Object} propTypes Property types.
11
11
  * @static
12
12
  */
13
13
  static propTypes: {
14
- pathname: any;
14
+ pathname: PropTypes.Validator<string>;
15
15
  };
16
16
  constructor(props: any);
17
17
  state: {
@@ -19,7 +19,7 @@ export class App extends Component<any, any, any> {
19
19
  error: any;
20
20
  errorInfo: any;
21
21
  };
22
- mainRef: any;
22
+ mainRef: React.RefObject<any>;
23
23
  /**
24
24
  * @method componentWillReceiveProps
25
25
  * @param {Object} nextProps Next properties
@@ -42,11 +42,12 @@ export class App extends Component<any, any, any> {
42
42
  */
43
43
  render(): string;
44
44
  }
45
- export const __test__: import("react-redux").ConnectedComponent<import("react").JSXElementConstructor<never>, never>;
45
+ export const __test__: import("react-redux").ConnectedComponent<React.JSXElementConstructor<never>, never>;
46
46
  export function fetchContent({ store, location }: {
47
47
  store: any;
48
48
  location: any;
49
49
  }): Promise<any>;
50
- declare const _default: any;
50
+ declare const _default: import("react-redux").ConnectedComponent<any, any>;
51
51
  export default _default;
52
- import { Component } from 'react';
52
+ import React from 'react';
53
+ import PropTypes from 'prop-types';
@@ -9,12 +9,12 @@ declare function Avatar({ src, title, text, size, color, className }: {
9
9
  }): JSX.Element;
10
10
  declare namespace Avatar {
11
11
  namespace propTypes {
12
- let src: any;
13
- let title: any;
14
- let text: any;
15
- let size: any;
16
- let color: any;
17
- let className: any;
12
+ let src: PropTypes.Requireable<string>;
13
+ let title: PropTypes.Requireable<string>;
14
+ let text: PropTypes.Requireable<string>;
15
+ let size: PropTypes.Requireable<number>;
16
+ let color: PropTypes.Requireable<string>;
17
+ let className: PropTypes.Requireable<string>;
18
18
  }
19
19
  namespace defaultProps {
20
20
  let src_1: any;
@@ -28,6 +28,7 @@ declare namespace Avatar {
28
28
  export { defaultClassName as className };
29
29
  }
30
30
  }
31
+ import PropTypes from 'prop-types';
31
32
  declare const defaultSize: 30;
32
33
  declare const defaultColor: "Teal";
33
34
  declare const defaultClassName: "avatar circular";
@@ -4,6 +4,7 @@ declare function BreadcrumbsComponent({ pathname }: {
4
4
  }): JSX.Element;
5
5
  declare namespace BreadcrumbsComponent {
6
6
  namespace propTypes {
7
- let pathname: any;
7
+ let pathname: PropTypes.Validator<string>;
8
8
  }
9
9
  }
10
+ import PropTypes from 'prop-types';
@@ -1,5 +1,5 @@
1
- export const Breadcrumb: import("react").FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<any>>> & {
2
- WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<any>>;
1
+ export const Breadcrumb: React.FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<any>>> & {
2
+ WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<any>>;
3
3
  };
4
4
  declare namespace _default {
5
5
  export let title: string;
@@ -7,4 +7,5 @@ declare namespace _default {
7
7
  export let argTypes: {};
8
8
  }
9
9
  export default _default;
10
+ import React from 'react';
10
11
  import BreadcrumbsComponent from './Breadcrumbs';