@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
@@ -2,11 +2,12 @@ export default Toast;
2
2
  declare function Toast(props: any): JSX.Element;
3
3
  declare namespace Toast {
4
4
  namespace propTypes {
5
- let title: any;
6
- let content: any;
7
- let info: any;
8
- let success: any;
9
- let error: any;
10
- let warning: any;
5
+ let title: PropTypes.Requireable<NonNullable<string | any[]>>;
6
+ let content: PropTypes.Validator<string>;
7
+ let info: PropTypes.Requireable<boolean>;
8
+ let success: PropTypes.Requireable<boolean>;
9
+ let error: PropTypes.Requireable<boolean>;
10
+ let warning: PropTypes.Requireable<boolean>;
11
11
  }
12
12
  }
13
+ import PropTypes from 'prop-types';
@@ -1,4 +1,5 @@
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>>;
1
+ 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>>>> & {
2
+ WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
3
3
  };
4
4
  export default _default;
5
+ import React from 'react';
@@ -2,6 +2,7 @@ export default PersonalTools;
2
2
  declare function PersonalTools(props: any): JSX.Element;
3
3
  declare namespace PersonalTools {
4
4
  namespace propTypes {
5
- let loadComponent: any;
5
+ let loadComponent: PropTypes.Validator<(...args: any[]) => any>;
6
6
  }
7
7
  }
8
+ import PropTypes from 'prop-types';
@@ -2,11 +2,12 @@ export default StandardWrapper;
2
2
  declare function StandardWrapper(props: any): JSX.Element;
3
3
  declare namespace StandardWrapper {
4
4
  namespace propTypes {
5
- let componentName: any;
6
- let componentTitle: any;
7
- let unloadComponent: any;
8
- let loadComponent: any;
9
- let closeMenu: any;
10
- let hasActions: any;
5
+ let componentName: PropTypes.Validator<string>;
6
+ let componentTitle: PropTypes.Requireable<string>;
7
+ let unloadComponent: PropTypes.Validator<(...args: any[]) => any>;
8
+ let loadComponent: PropTypes.Validator<(...args: any[]) => any>;
9
+ let closeMenu: PropTypes.Validator<(...args: any[]) => any>;
10
+ let hasActions: PropTypes.Requireable<boolean>;
11
11
  }
12
12
  }
13
+ import PropTypes from 'prop-types';
@@ -6,16 +6,30 @@ declare const _default: import("react-redux").ConnectedComponent<{
6
6
  currentLanguage: any;
7
7
  }): JSX.Element;
8
8
  propTypes: {
9
- pathname: any;
10
- types: any;
9
+ pathname: PropTypes.Validator<string>;
10
+ types: PropTypes.Validator<PropTypes.InferProps<{
11
+ '@id': PropTypes.Requireable<string>;
12
+ addable: PropTypes.Requireable<boolean>;
13
+ title: PropTypes.Requireable<string>;
14
+ }>[]>;
11
15
  };
12
16
  }, import("react-redux").Omit<Pick<{
13
17
  types: any;
14
18
  pathname: any;
15
19
  content: any;
16
20
  currentLanguage: any;
17
- }, never> & Pick<import("prop-types").InferProps<{
18
- pathname: any;
21
+ }, never> & Pick<PropTypes.InferProps<{
22
+ pathname: PropTypes.Validator<string>;
23
+ types: PropTypes.Validator<PropTypes.InferProps<{
24
+ '@id': PropTypes.Requireable<string>;
25
+ addable: PropTypes.Requireable<boolean>;
26
+ title: PropTypes.Requireable<string>;
27
+ }>[]>;
28
+ }>, "pathname" | "types"> & Pick<{
19
29
  types: any;
20
- }>, any>, "types" | "currentLanguage">>;
30
+ pathname: any;
31
+ content: any;
32
+ currentLanguage: any;
33
+ }, "content" | "currentLanguage">, "types" | "currentLanguage">>;
21
34
  export default _default;
35
+ import PropTypes from 'prop-types';
@@ -11,12 +11,16 @@ declare function UniversalLink({ href, item, openLinkInNewTab, download, childre
11
11
  }): JSX.Element;
12
12
  declare namespace UniversalLink {
13
13
  namespace propTypes {
14
- let href: any;
15
- let openLinkInNewTab: any;
16
- let download: any;
17
- let className: any;
18
- let title: any;
19
- let item: any;
20
- let children: any;
14
+ let href: PropTypes.Requireable<string>;
15
+ let openLinkInNewTab: PropTypes.Requireable<boolean>;
16
+ let download: PropTypes.Requireable<boolean>;
17
+ let className: PropTypes.Requireable<string>;
18
+ let title: PropTypes.Requireable<string>;
19
+ let item: PropTypes.Requireable<PropTypes.InferProps<{
20
+ '@id': PropTypes.Validator<string>;
21
+ remoteUrl: PropTypes.Requireable<string>;
22
+ }>>;
23
+ let children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
21
24
  }
22
25
  }
26
+ import PropTypes from 'prop-types';
@@ -1,7 +1,6 @@
1
- export const ArrayWidgetComponent: 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 ArrayWidgetComponent: 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,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,22 +1,22 @@
1
+ type Color = {
2
+ name: string;
3
+ label: string;
4
+ style: Record<`--${string}`, string>;
5
+ } | {
6
+ name: string;
7
+ label: string;
8
+ style: undefined;
9
+ };
10
+ export type ColorPickerWidgetProps = {
11
+ id: string;
12
+ title: string;
13
+ value: string;
14
+ default: string;
15
+ required: boolean;
16
+ missing_value: unknown;
17
+ className: string;
18
+ onChange: (id: string, value: any) => void;
19
+ colors: Color[];
20
+ };
21
+ declare const ColorPickerWidget: (props: ColorPickerWidgetProps) => JSX.Element;
1
22
  export default ColorPickerWidget;
2
- declare function ColorPickerWidget(props: any): JSX.Element;
3
- declare namespace ColorPickerWidget {
4
- namespace propTypes {
5
- let id: any;
6
- let title: any;
7
- let required: any;
8
- let value: any;
9
- let onChange: any;
10
- let colors: any;
11
- }
12
- namespace defaultProps {
13
- let required_1: boolean;
14
- export { required_1 as required };
15
- let value_1: any;
16
- export { value_1 as value };
17
- let onChange_1: any;
18
- export { onChange_1 as onChange };
19
- let colors_1: any[];
20
- export { colors_1 as colors };
21
- }
22
- }
@@ -1,8 +1,7 @@
1
- export const Default: any;
2
- declare namespace _default {
3
- export let title: string;
4
- export { Default as component };
5
- export let decorators: ((Story: any) => JSX.Element)[];
6
- export let argTypes: {};
7
- }
8
- export default _default;
1
+ import ColorPickerWidget from './ColorPickerWidget';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ declare const meta: Meta<typeof ColorPickerWidget>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ColorPickerWidget>;
6
+ export declare const Default: Story;
7
+ export declare const WithEnhancedStyleConfig: Story;
@@ -12,7 +12,7 @@
12
12
  * }
13
13
  * ```
14
14
  */
15
- export class DatetimeWidgetComponent extends Component<any, any, any> {
15
+ export class DatetimeWidgetComponent extends React.Component<any, any, any> {
16
16
  /**
17
17
  * Constructor
18
18
  * @method constructor
@@ -53,17 +53,17 @@ export class DatetimeWidgetComponent extends Component<any, any, any> {
53
53
  }
54
54
  export namespace DatetimeWidgetComponent {
55
55
  namespace propTypes {
56
- let id: any;
57
- let title: any;
58
- let description: any;
59
- let required: any;
60
- let error: any;
61
- let dateOnly: any;
62
- let noPastDates: any;
63
- let value: any;
64
- let onChange: any;
65
- let wrapped: any;
66
- let resettable: any;
56
+ let id: PropTypes.Validator<string>;
57
+ let title: PropTypes.Validator<string>;
58
+ let description: PropTypes.Requireable<string>;
59
+ let required: PropTypes.Requireable<boolean>;
60
+ let error: PropTypes.Requireable<string[]>;
61
+ let dateOnly: PropTypes.Requireable<boolean>;
62
+ let noPastDates: PropTypes.Requireable<boolean>;
63
+ let value: PropTypes.Requireable<string>;
64
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
65
+ let wrapped: PropTypes.Requireable<boolean>;
66
+ let resettable: PropTypes.Requireable<boolean>;
67
67
  }
68
68
  namespace defaultProps {
69
69
  let description_1: any;
@@ -82,6 +82,7 @@ export namespace DatetimeWidgetComponent {
82
82
  export { resettable_1 as resettable };
83
83
  }
84
84
  }
85
- declare const _default: any;
85
+ declare const _default: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
86
86
  export default _default;
87
- import { Component } from 'react';
87
+ import React from 'react';
88
+ import PropTypes from 'prop-types';
@@ -13,18 +13,18 @@ export default EmailWidget;
13
13
  declare function EmailWidget(props: any): JSX.Element;
14
14
  declare namespace EmailWidget {
15
15
  namespace propTypes {
16
- let id: any;
17
- let title: any;
18
- let description: any;
19
- let required: any;
20
- let error: any;
21
- let value: any;
22
- let onChange: any;
23
- let onBlur: any;
24
- let onClick: any;
25
- let minLength: any;
26
- let maxLength: any;
27
- let placeholder: any;
16
+ let id: PropTypes.Validator<string>;
17
+ let title: PropTypes.Validator<string>;
18
+ let description: PropTypes.Requireable<string>;
19
+ let required: PropTypes.Requireable<boolean>;
20
+ let error: PropTypes.Requireable<string[]>;
21
+ let value: PropTypes.Requireable<string>;
22
+ let onChange: PropTypes.Validator<(...args: any[]) => any>;
23
+ let onBlur: PropTypes.Requireable<(...args: any[]) => any>;
24
+ let onClick: PropTypes.Requireable<(...args: any[]) => any>;
25
+ let minLength: PropTypes.Requireable<number>;
26
+ let maxLength: PropTypes.Requireable<number>;
27
+ let placeholder: PropTypes.Requireable<string>;
28
28
  }
29
29
  namespace defaultProps {
30
30
  let description_1: any;
@@ -47,3 +47,4 @@ declare namespace EmailWidget {
47
47
  export { maxLength_1 as maxLength };
48
48
  }
49
49
  }
50
+ 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<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,19 +1,19 @@
1
1
  export function InternalUrlWidget(props: any): JSX.Element;
2
2
  export namespace InternalUrlWidget {
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 InternalUrlWidget {
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,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';
@@ -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';