@plone/volto 18.0.0-alpha.6 → 18.0.0-alpha.8

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 (237) hide show
  1. package/.release-it.json +2 -3
  2. package/CHANGELOG.md +49 -0
  3. package/locales/ca/LC_MESSAGES/volto.po +930 -933
  4. package/locales/ca.json +1 -1
  5. package/locales/de/LC_MESSAGES/volto.po +930 -931
  6. package/locales/de.json +1 -1
  7. package/locales/en/LC_MESSAGES/volto.po +930 -930
  8. package/locales/en.json +1 -1
  9. package/locales/es/LC_MESSAGES/volto.po +932 -936
  10. package/locales/es.json +1 -1
  11. package/locales/eu/LC_MESSAGES/volto.po +930 -930
  12. package/locales/eu.json +1 -1
  13. package/locales/fi/LC_MESSAGES/volto.po +930 -936
  14. package/locales/fi.json +1 -1
  15. package/locales/fr/LC_MESSAGES/volto.po +933 -943
  16. package/locales/fr.json +1 -1
  17. package/locales/it/LC_MESSAGES/volto.po +930 -930
  18. package/locales/it.json +1 -1
  19. package/locales/ja/LC_MESSAGES/volto.po +930 -933
  20. package/locales/ja.json +1 -1
  21. package/locales/nl/LC_MESSAGES/volto.po +930 -945
  22. package/locales/nl.json +1 -1
  23. package/locales/pt/LC_MESSAGES/volto.po +930 -933
  24. package/locales/pt.json +1 -1
  25. package/locales/pt_BR/LC_MESSAGES/volto.po +930 -934
  26. package/locales/pt_BR.json +1 -1
  27. package/locales/ro/LC_MESSAGES/volto.po +930 -930
  28. package/locales/ro.json +1 -1
  29. package/locales/volto.pot +932 -936
  30. package/locales/zh_CN/LC_MESSAGES/volto.po +930 -930
  31. package/locales/zh_CN.json +1 -1
  32. package/package.json +10 -8
  33. package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +7 -2
  34. package/src/components/manage/Contents/Contents.jsx +4 -8
  35. package/src/components/manage/LinksToItem/LinksToItem.jsx +22 -2
  36. package/src/components/manage/LinksToItem/LinksToItem.test.jsx +13 -1
  37. package/src/components/manage/Sidebar/SidebarPortal.jsx +1 -1
  38. package/src/components/manage/Widgets/ColorPickerWidget.stories.tsx +48 -0
  39. package/src/components/manage/Widgets/{ColorPickerWidget.jsx → ColorPickerWidget.tsx} +40 -23
  40. package/src/components/manage/Widgets/ObjectBrowserWidget.jsx +13 -3
  41. package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +1 -1
  42. package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.test.jsx +1 -1
  43. package/src/config/Blocks.jsx +1 -1
  44. package/src/helpers/Blocks/Blocks.js +10 -2
  45. package/src/helpers/Blocks/Blocks.test.js +20 -0
  46. package/src/helpers/Extensions/withBlockSchemaEnhancer.js +3 -1
  47. package/src/server.jsx +1 -1
  48. package/theme/themes/pastanaga/extras/blocks.less +7 -0
  49. package/tsconfig.declarations.json +16 -0
  50. package/types/actions/authRole/authRole.d.ts +1 -1
  51. package/types/actions/comments/comments.d.ts +1 -1
  52. package/types/actions/content/content.d.ts +1 -1
  53. package/types/actions/controlpanels/controlpanels.d.ts +2 -2
  54. package/types/actions/index.d.ts +36 -0
  55. package/types/actions/upgrade/upgrade.d.ts +2 -2
  56. package/types/components/index.d.ts +180 -0
  57. package/types/components/manage/Add/Add.d.ts +3 -2
  58. package/types/components/manage/Aliases/Aliases.d.ts +4 -1
  59. package/types/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.d.ts +3 -2
  60. package/types/components/manage/BlockChooser/BlockChooser.d.ts +2 -1
  61. package/types/components/manage/Blocks/Block/Edit.d.ts +5 -5
  62. package/types/components/manage/Blocks/Block/EditBlockWrapper.d.ts +3 -2
  63. package/types/components/manage/Blocks/Block/Settings.d.ts +3 -2
  64. package/types/components/manage/Blocks/Grid/View.d.ts +1 -1
  65. package/types/components/manage/Blocks/Grid/templates.d.ts +1 -1
  66. package/types/components/manage/Blocks/HeroImageLeft/Edit.d.ts +4 -1
  67. package/types/components/manage/Blocks/Image/Edit.d.ts +3 -2
  68. package/types/components/manage/Blocks/Image/LayoutSchema.d.ts +36 -1
  69. package/types/components/manage/Blocks/Image/View.d.ts +3 -2
  70. package/types/components/manage/Blocks/LeadImage/Edit.d.ts +3 -2
  71. package/types/components/manage/Blocks/LeadImage/LeadImageSidebar.d.ts +5 -4
  72. package/types/components/manage/Blocks/Listing/Edit.d.ts +1 -1
  73. package/types/components/manage/Blocks/Listing/ListingBody.d.ts +3 -2
  74. package/types/components/manage/Blocks/Listing/View.d.ts +1 -1
  75. package/types/components/manage/Blocks/Maps/Edit.d.ts +1 -1
  76. package/types/components/manage/Blocks/Maps/View.d.ts +1 -3
  77. package/types/components/manage/Blocks/Search/SearchBlockView.d.ts +1 -1
  78. package/types/components/manage/Blocks/Search/components/SortOn.d.ts +1 -3
  79. package/types/components/manage/Blocks/Search/components/ViewSwitcher.d.ts +1 -3
  80. package/types/components/manage/Blocks/Search/schema.d.ts +1 -1
  81. package/types/components/manage/Blocks/Search/utils.d.ts +2 -2
  82. package/types/components/manage/Blocks/Teaser/Edit.d.ts +1 -1
  83. package/types/components/manage/Blocks/Teaser/View.d.ts +1 -1
  84. package/types/components/manage/Blocks/Text/Edit.d.ts +3 -5
  85. package/types/components/manage/Blocks/Text/Schema.d.ts +36 -1
  86. package/types/components/manage/Blocks/ToC/Edit.d.ts +2 -2
  87. package/types/components/manage/Blocks/ToC/View.d.ts +3 -2
  88. package/types/components/manage/Blocks/ToC/variations/DefaultTocRenderer.d.ts +3 -2
  89. package/types/components/manage/Blocks/ToC/variations/HorizontalMenu.d.ts +3 -2
  90. package/types/components/manage/Blocks/Video/Body.test.d.ts +1 -0
  91. package/types/components/manage/Blocks/Video/Edit.d.ts +1 -3
  92. package/types/components/manage/Blocks/Video/View.d.ts +1 -1
  93. package/types/components/manage/Contents/Contents.d.ts +5 -4
  94. package/types/components/manage/Contents/ContentsTagsModal.stories.d.ts +0 -1
  95. package/types/components/manage/Contents/ContentsUploadModal.d.ts +4 -1
  96. package/types/components/manage/Controlpanels/AddonsControlpanel.d.ts +4 -1
  97. package/types/components/manage/Controlpanels/Aliases.d.ts +4 -1
  98. package/types/components/manage/Controlpanels/ContentType.d.ts +4 -1
  99. package/types/components/manage/Controlpanels/ContentTypeLayout.d.ts +4 -1
  100. package/types/components/manage/Controlpanels/ContentTypeSchema.d.ts +4 -1
  101. package/types/components/manage/Controlpanels/ContentTypes.d.ts +4 -1
  102. package/types/components/manage/Controlpanels/ContentTypesActions.d.ts +3 -2
  103. package/types/components/manage/Controlpanels/Controlpanel.d.ts +3 -2
  104. package/types/components/manage/Controlpanels/Controlpanels.d.ts +1 -16
  105. package/types/components/manage/Controlpanels/DatabaseInformation.d.ts +4 -1
  106. package/types/components/manage/Controlpanels/Groups/GroupsControlpanel.d.ts +4 -1
  107. package/types/components/manage/Controlpanels/Groups/RenderGroups.d.ts +3 -2
  108. package/types/components/manage/Controlpanels/ModerateComments.d.ts +4 -1
  109. package/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts +43 -1
  110. package/types/components/manage/Controlpanels/Rules/AddRule.d.ts +4 -1
  111. package/types/components/manage/Controlpanels/Rules/ConfigureRule.d.ts +4 -1
  112. package/types/components/manage/Controlpanels/Rules/EditRule.d.ts +4 -1
  113. package/types/components/manage/Controlpanels/Rules/Rules.d.ts +4 -1
  114. package/types/components/manage/Controlpanels/Rules/components/VariableModal.d.ts +4 -1
  115. package/types/components/manage/Controlpanels/UndoControlpanel.d.ts +4 -1
  116. package/types/components/manage/Controlpanels/UpgradeControlPanel.d.ts +4 -1
  117. package/types/components/manage/Controlpanels/Users/RenderUsers.d.ts +4 -1
  118. package/types/components/manage/Controlpanels/Users/UsersControlpanel.d.ts +4 -1
  119. package/types/components/manage/Display/Display.d.ts +3 -2
  120. package/types/components/manage/Edit/Edit.d.ts +6 -3
  121. package/types/components/manage/Form/BlocksToolbar.d.ts +5 -2
  122. package/types/components/manage/Form/Field.d.ts +3 -2
  123. package/types/components/manage/Form/Form.d.ts +1 -3
  124. package/types/components/manage/Form/InlineForm.d.ts +3 -2
  125. package/types/components/manage/Form/ModalForm.d.ts +3 -2
  126. package/types/components/manage/History/History.d.ts +3 -2
  127. package/types/components/manage/LinksToItem/LinksToItem.d.ts +3 -2
  128. package/types/components/manage/Multilingual/CompareLanguages.d.ts +2 -1
  129. package/types/components/manage/Multilingual/ManageTranslations.d.ts +43 -1
  130. package/types/components/manage/Pluggable/index.d.ts +8 -7
  131. package/types/components/manage/Preferences/PersonalPreferences.d.ts +4 -1
  132. package/types/components/manage/Rules/Rules.d.ts +4 -1
  133. package/types/components/manage/Sidebar/ObjectBrowser.d.ts +25 -2
  134. package/types/components/manage/Sidebar/ObjectBrowserBody.d.ts +4 -1
  135. package/types/components/manage/Sidebar/Sidebar.d.ts +2 -1
  136. package/types/components/manage/Sidebar/SidebarPortal.d.ts +2 -2
  137. package/types/components/manage/Toolbar/More.d.ts +3 -2
  138. package/types/components/manage/Toolbar/Toolbar.d.ts +4 -1
  139. package/types/components/manage/Toolbar/Types.d.ts +1 -20
  140. package/types/components/manage/Widgets/ArrayWidget.d.ts +5 -4
  141. package/types/components/manage/Widgets/CheckboxWidget.d.ts +3 -2
  142. package/types/components/manage/Widgets/ColorPickerWidget.d.ts +22 -21
  143. package/types/components/manage/Widgets/ColorPickerWidget.stories.d.ts +7 -8
  144. package/types/components/manage/Widgets/DatetimeWidget.d.ts +2 -2
  145. package/types/components/manage/Widgets/FileWidget.d.ts +3 -2
  146. package/types/components/manage/Widgets/FormFieldWrapper.d.ts +3 -2
  147. package/types/components/manage/Widgets/IdWidget.d.ts +4 -1
  148. package/types/components/manage/Widgets/ImageSizeWidget.d.ts +3 -2
  149. package/types/components/manage/Widgets/InternalUrlWidget.d.ts +43 -1
  150. package/types/components/manage/Widgets/NumberWidget.d.ts +3 -2
  151. package/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +9 -9
  152. package/types/components/manage/Widgets/PasswordWidget.d.ts +3 -2
  153. package/types/components/manage/Widgets/QueryWidget.d.ts +4 -4
  154. package/types/components/manage/Widgets/RecurrenceWidget/ByMonthDayField.d.ts +3 -2
  155. package/types/components/manage/Widgets/RecurrenceWidget/ByMonthField.d.ts +3 -2
  156. package/types/components/manage/Widgets/RecurrenceWidget/ByYearField.d.ts +3 -2
  157. package/types/components/manage/Widgets/RecurrenceWidget/EndField.d.ts +3 -2
  158. package/types/components/manage/Widgets/RecurrenceWidget/Occurences.d.ts +3 -2
  159. package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.d.ts +3 -2
  160. package/types/components/manage/Widgets/ReferenceWidget.d.ts +4 -1
  161. package/types/components/manage/Widgets/RegistryImageWidget.d.ts +3 -2
  162. package/types/components/manage/Widgets/SchemaWidget.d.ts +3 -2
  163. package/types/components/manage/Widgets/SelectAutoComplete.d.ts +5 -4
  164. package/types/components/manage/Widgets/SelectWidget.d.ts +3 -2
  165. package/types/components/manage/Widgets/TextWidget.d.ts +3 -2
  166. package/types/components/manage/Widgets/TextareaWidget.d.ts +3 -2
  167. package/types/components/manage/Widgets/TokenWidget.d.ts +3 -2
  168. package/types/components/manage/Widgets/UrlWidget.d.ts +43 -1
  169. package/types/components/manage/Widgets/WysiwygWidget.d.ts +3 -2
  170. package/types/components/theme/App/App.d.ts +4 -4
  171. package/types/components/theme/AppExtras/AppExtras.d.ts +1 -1
  172. package/types/components/theme/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -2
  173. package/types/components/theme/Error/ErrorBoundary.d.ts +2 -2
  174. package/types/components/theme/Error/ServerError.d.ts +1 -1
  175. package/types/components/theme/Footer/Footer.d.ts +3 -2
  176. package/types/components/theme/Forbidden/Forbidden.d.ts +1 -1
  177. package/types/components/theme/Navigation/ContextNavigation.d.ts +1 -1
  178. package/types/components/theme/NotFound/NotFound.d.ts +1 -1
  179. package/types/components/theme/Pagination/Pagination.d.ts +3 -2
  180. package/types/components/theme/Search/Search.d.ts +6 -3
  181. package/types/components/theme/Sitemap/Sitemap.d.ts +4 -2
  182. package/types/components/theme/TsTest/TsTest.d.ts +11 -0
  183. package/types/components/theme/TsTest/TsTest.test.d.ts +1 -0
  184. package/types/components/theme/Unauthorized/Unauthorized.d.ts +1 -1
  185. package/types/components/theme/View/AlbumView.d.ts +2 -1
  186. package/types/components/theme/View/DefaultView.d.ts +3 -2
  187. package/types/components/theme/View/RenderBlocks.d.ts +1 -1
  188. package/types/components/theme/View/View.d.ts +4 -1
  189. package/types/components/theme/Widgets/ArrayWidget.d.ts +1 -1
  190. package/types/components/theme/Widgets/BooleanWidget.d.ts +3 -2
  191. package/types/components/theme/Widgets/DateWidget.d.ts +1 -1
  192. package/types/components/theme/Widgets/DatetimeWidget.d.ts +1 -1
  193. package/types/components/theme/Widgets/DescriptionWidget.d.ts +1 -1
  194. package/types/components/theme/Widgets/EmailWidget.d.ts +1 -1
  195. package/types/components/theme/Widgets/FileWidget.d.ts +1 -1
  196. package/types/components/theme/Widgets/ImageWidget.d.ts +1 -1
  197. package/types/components/theme/Widgets/PasswordWidget.d.ts +1 -1
  198. package/types/components/theme/Widgets/RelationWidget.d.ts +1 -1
  199. package/types/components/theme/Widgets/RelationsWidget.d.ts +1 -1
  200. package/types/components/theme/Widgets/RichTextWidget.d.ts +1 -1
  201. package/types/components/theme/Widgets/SelectWidget.d.ts +1 -1
  202. package/types/components/theme/Widgets/TextWidget.d.ts +1 -1
  203. package/types/components/theme/Widgets/TitleWidget.d.ts +1 -1
  204. package/types/components/theme/Widgets/TokenWidget.d.ts +1 -1
  205. package/types/components/theme/Widgets/UrlWidget.d.ts +1 -1
  206. package/types/config/Blocks.d.ts +20 -1
  207. package/types/config/Components.d.ts +3 -0
  208. package/types/config/ContentIcons.d.ts +7 -7
  209. package/types/config/ControlPanels.d.ts +21 -21
  210. package/types/config/RichTextEditor/index.d.ts +8 -5
  211. package/types/config/Views.d.ts +40 -11
  212. package/types/config/Widgets.d.ts +58 -4
  213. package/types/error.d.ts +3 -2
  214. package/types/helpers/AsyncConnect/AsyncConnect.d.ts +2 -2
  215. package/types/helpers/Blocks/Blocks.d.ts +3 -1
  216. package/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts +2 -2
  217. package/types/helpers/Helmet/Helmet.d.ts +71 -1
  218. package/types/helpers/Html/Html.d.ts +2 -2
  219. package/types/helpers/LanguageMap/LanguageMap.d.ts +1 -878
  220. package/types/helpers/Loadable/__mocks__/Loadable.d.ts +2 -2
  221. package/types/helpers/MessageLabels/MessageLabels.d.ts +1 -540
  222. package/types/helpers/ScrollToTop/ScrollToTop.d.ts +1 -1
  223. package/types/helpers/UndoManager/useUndoManager.d.ts +4 -4
  224. package/types/helpers/Url/Url.d.ts +3 -3
  225. package/types/helpers/Utils/Date.d.ts +2 -2
  226. package/types/helpers/Utils/usePagination.d.ts +1 -1
  227. package/types/helpers/Utils/usePrevious.d.ts +1 -1
  228. package/types/helpers/index.d.ts +12 -0
  229. package/types/hooks/index.d.ts +2 -1
  230. package/types/middleware/index.d.ts +2 -0
  231. package/types/reducers/blocksClipboard/blocksClipboard.d.ts +1 -1
  232. package/types/reducers/index.d.ts +40 -0
  233. package/types/registry.d.ts +1 -0
  234. package/types/routes.d.ts +31 -3
  235. package/types/server.d.ts +1 -1
  236. package/types/storybook.d.ts +3 -3
  237. package/src/components/manage/Widgets/ColorPickerWidget.stories.jsx +0 -30
@@ -7,20 +7,43 @@ export namespace layoutViews {
7
7
  export { AlbumView as album_view };
8
8
  }
9
9
  export const contentTypesViews: {
10
- 'News Item': any;
11
- File: any;
12
- Image: any;
10
+ 'News Item': {
11
+ ({ content }: {
12
+ content: any;
13
+ }): string;
14
+ propTypes: {
15
+ content: any;
16
+ };
17
+ };
18
+ File: {
19
+ ({ content }: {
20
+ content: any;
21
+ }): string;
22
+ propTypes: {
23
+ content: any;
24
+ };
25
+ };
26
+ Image: {
27
+ ({ content }: {
28
+ content: any;
29
+ }): string;
30
+ propTypes: {
31
+ content: any;
32
+ };
33
+ };
13
34
  Event: any;
14
35
  };
15
- export const defaultView: any;
36
+ export const defaultView: import("react").FC<import("react-intl").WithIntlProps<any>> & {
37
+ WrappedComponent: import("react").ComponentType<any>;
38
+ };
16
39
  export const errorViews: {
17
- 404: any;
18
- 401: any;
19
- 403: any;
20
- 408: any;
21
- 500: any;
22
- ECONNREFUSED: any;
23
- corsError: any;
40
+ 404: (props: any) => JSX.Element;
41
+ 401: (props: any) => JSX.Element;
42
+ 403: (props: any) => JSX.Element;
43
+ 408: () => string;
44
+ 500: (props: any) => JSX.Element;
45
+ ECONNREFUSED: () => JSX.Element;
46
+ corsError: () => string;
24
47
  };
25
48
  export namespace layoutViewsNamesMapping {
26
49
  export let album_view: string;
@@ -41,3 +64,9 @@ export namespace layoutViewsNamesMapping {
41
64
  let _default: string;
42
65
  export { _default as default };
43
66
  }
67
+ import DefaultView from '@plone/volto/components/theme/View/DefaultView';
68
+ import SummaryView from '@plone/volto/components/theme/View/SummaryView';
69
+ import TabularView from '@plone/volto/components/theme/View/TabularView';
70
+ import ListingView from '@plone/volto/components/theme/View/ListingView';
71
+ import LinkView from '@plone/volto/components/theme/View/LinkView';
72
+ import AlbumView from '@plone/volto/components/theme/View/AlbumView';
@@ -38,11 +38,17 @@ export namespace widgetMapping {
38
38
  export { SelectWidget as select };
39
39
  }
40
40
  export let vocabulary: {
41
- 'plone.app.vocabularies.Catalog': any;
41
+ 'plone.app.vocabularies.Catalog': import("react").ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
42
+ WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
43
+ };
42
44
  };
43
45
  export let factory: {
44
- 'Relation List': any;
45
- 'Relation Choice': any;
46
+ 'Relation List': import("react").ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
47
+ WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
48
+ };
49
+ 'Relation Choice': import("react").ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>> & {
50
+ WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
51
+ };
46
52
  };
47
53
  export { SelectWidget as choices };
48
54
  export namespace type {
@@ -99,4 +105,52 @@ export namespace widgetMapping {
99
105
  export { type_1 as type };
100
106
  }
101
107
  }
102
- export const defaultWidget: any;
108
+ export const defaultWidget: import("react").FC<import("react-intl").WithIntlProps<any>> & {
109
+ WrappedComponent: import("react").ComponentType<any>;
110
+ };
111
+ import SchemaWidget from '@plone/volto/components/manage/Widgets/SchemaWidget';
112
+ import TokenWidget from '@plone/volto/components/manage/Widgets/TokenWidget';
113
+ import QuerystringWidget from '@plone/volto/components/manage/Widgets/QuerystringWidget';
114
+ import UrlWidget from '@plone/volto/components/manage/Widgets/UrlWidget';
115
+ import IdWidget from '@plone/volto/components/manage/Widgets/IdWidget';
116
+ import RegistryImageWidget from '@plone/volto/components/manage/Widgets/RegistryImageWidget';
117
+ import WysiwygWidget from '@plone/volto/components/manage/Widgets/WysiwygWidget';
118
+ import TextareaWidget from '@plone/volto/components/manage/Widgets/TextareaWidget';
119
+ import PasswordWidget from '@plone/volto/components/manage/Widgets/PasswordWidget';
120
+ import FileWidget from '@plone/volto/components/manage/Widgets/FileWidget';
121
+ import AlignWidget from '@plone/volto/components/manage/Widgets/AlignWidget';
122
+ import ButtonsWidget from '@plone/volto/components/manage/Widgets/ButtonsWidget';
123
+ import InternalUrlWidget from '@plone/volto/components/manage/Widgets/InternalUrlWidget';
124
+ import EmailWidget from '@plone/volto/components/manage/Widgets/EmailWidget';
125
+ import ArrayWidget from '@plone/volto/components/manage/Widgets/ArrayWidget';
126
+ import QueryWidget from '@plone/volto/components/manage/Widgets/QueryWidget';
127
+ import QuerySortOnWidget from '@plone/volto/components/manage/Widgets/QuerySortOnWidget';
128
+ import ObjectBrowserWidget from '@plone/volto/components/manage/Widgets/ObjectBrowserWidget';
129
+ import ObjectWidget from '@plone/volto/components/manage/Widgets/ObjectWidget';
130
+ import ObjectListWidget from '@plone/volto/components/manage/Widgets/ObjectListWidget';
131
+ import VocabularyTermsWidget from '@plone/volto/components/manage/Widgets/VocabularyTermsWidget';
132
+ import ImageSizeWidget from '@plone/volto/components/manage/Widgets/ImageSizeWidget';
133
+ import SelectMetadataWidget from '@plone/volto/components/manage/Blocks/Search/widgets/SelectMetadataField';
134
+ import SelectAutoComplete from '@plone/volto/components/manage/Widgets/SelectAutoComplete';
135
+ import ColorPickerWidget from '@plone/volto/components/manage/Widgets/ColorPickerWidget';
136
+ import SelectWidget from '@plone/volto/components/manage/Widgets/SelectWidget';
137
+ import CheckboxWidget from '@plone/volto/components/manage/Widgets/CheckboxWidget';
138
+ import NumberWidget from '@plone/volto/components/manage/Widgets/NumberWidget';
139
+ import { getWidgetView } from '@plone/volto/helpers/Widget/widget';
140
+ import TextViewWidget from '@plone/volto/components/theme/Widgets/TextWidget';
141
+ import FileViewWidget from '@plone/volto/components/theme/Widgets/FileWidget';
142
+ import ImageViewWidget from '@plone/volto/components/theme/Widgets/ImageWidget';
143
+ import RelationsViewWidget from '@plone/volto/components/theme/Widgets/RelationsWidget';
144
+ import TokenViewWidget from '@plone/volto/components/theme/Widgets/TokenWidget';
145
+ import ArrayViewWidget from '@plone/volto/components/theme/Widgets/ArrayWidget';
146
+ import BooleanViewWidget from '@plone/volto/components/theme/Widgets/BooleanWidget';
147
+ import SelectViewWidget from '@plone/volto/components/theme/Widgets/SelectWidget';
148
+ import DateViewWidget from '@plone/volto/components/theme/Widgets/DateWidget';
149
+ import DatetimeViewWidget from '@plone/volto/components/theme/Widgets/DatetimeWidget';
150
+ import DescriptionViewWidget from '@plone/volto/components/theme/Widgets/DescriptionWidget';
151
+ import EmailViewWidget from '@plone/volto/components/theme/Widgets/EmailWidget';
152
+ import PasswordViewWidget from '@plone/volto/components/theme/Widgets/PasswordWidget';
153
+ import RelationViewWidget from '@plone/volto/components/theme/Widgets/RelationWidget';
154
+ import RichTextViewWidget from '@plone/volto/components/theme/Widgets/RichTextWidget';
155
+ import TitleViewWidget from '@plone/volto/components/theme/Widgets/TitleWidget';
156
+ import UrlViewWidget from '@plone/volto/components/theme/Widgets/UrlWidget';
package/types/error.d.ts CHANGED
@@ -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,4 @@
1
- export class AsyncConnect extends Component<any, any, any> {
1
+ export class AsyncConnect extends React.Component<any, any, any> {
2
2
  constructor(props: any);
3
3
  state: {
4
4
  previousLocation: any;
@@ -46,4 +46,4 @@ export namespace AsyncConnectWithContext {
46
46
  }
47
47
  export { propTypes_1 as propTypes };
48
48
  }
49
- import { Component } from 'react';
49
+ import React from 'react';
@@ -133,7 +133,7 @@ export function applySchemaDefaults({ data, schema, intl }: {
133
133
  * @param {Object} params An object with data, intl and anything else
134
134
  * @return {Object} Derived data, with the defaults extracted from the schema
135
135
  */
136
- export function applyBlockDefaults({ data, intl, ...rest }: any, blocksConfig: any): any;
136
+ export function applyBlockDefaults({ data, intl, navRoot, contentType, ...rest }: any, blocksConfig: any): any;
137
137
  /**
138
138
  * Given a `block` object and a list of block types, return a list of block ids matching the types
139
139
  *
@@ -146,4 +146,6 @@ export function getBlocks(properties: any): any[];
146
146
  export function styleToClassName(key: any, value: any, prefix?: string): any;
147
147
  export function buildStyleClassNamesFromData(obj?: {}, prefix?: string): any;
148
148
  export function buildStyleClassNamesExtenders({ block, content, data, classNames, }: any): any[];
149
+ export function styleDataToStyleObject(key: any, value: any, prefix?: string): any[];
150
+ export function buildStyleObjectFromData(obj?: any, prefix?: string): any;
149
151
  export function getPreviousNextBlock({ content, block }: any): any[];
@@ -15,7 +15,7 @@ export function addExtensionFieldToSchema({ schema, name, items, intl, title, de
15
15
  items: any;
16
16
  intl: any;
17
17
  title: any;
18
- description: any;
18
+ description?: string;
19
19
  insertFieldToOrder?: typeof _addField;
20
20
  }): any;
21
21
  export function withBlockSchemaEnhancer(FormComponent: any, extensionName?: string, insertFieldToOrder?: typeof _addField): ({ ...props }: {
@@ -25,7 +25,7 @@ export function applySchemaEnhancer({ schema: originalSchema, formData, intl, bl
25
25
  schema: any;
26
26
  formData: any;
27
27
  intl: any;
28
- blocksConfig?: any;
28
+ blocksConfig?: import("@plone/registry/node_modules/@plone/types").BlocksConfigData;
29
29
  navRoot: any;
30
30
  contentType: any;
31
31
  }): any;
@@ -1,7 +1,7 @@
1
1
  export { HelmetExport as Helmet };
2
2
  export default HelmetExport;
3
3
  declare const HelmetExport: {
4
- new (): {
4
+ new (props: any): {
5
5
  shouldComponentUpdate(nextProps: any): boolean;
6
6
  mapNestedChildrenToProps(child: any, nestedChildren: any): {
7
7
  innerHTML: any;
@@ -26,6 +26,74 @@ declare const HelmetExport: {
26
26
  warnOnInvalidChildren(child: any, nestedChildren: any): true | void;
27
27
  mapChildrenToProps(children: any, newProps: any): any;
28
28
  render(): JSX.Element;
29
+ context: any;
30
+ setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
31
+ forceUpdate(callback?: () => void): void;
32
+ readonly props: Readonly<any> & Readonly<{
33
+ children?: any;
34
+ }>;
35
+ state: Readonly<any>;
36
+ refs: {
37
+ [key: string]: React.ReactInstance;
38
+ };
39
+ componentDidMount?(): void;
40
+ componentWillUnmount?(): void;
41
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
+ getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
43
+ componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
44
+ componentWillMount?(): void;
45
+ UNSAFE_componentWillMount?(): void;
46
+ componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
47
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
48
+ componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
49
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
50
+ };
51
+ new (props: any, context: any): {
52
+ shouldComponentUpdate(nextProps: any): boolean;
53
+ mapNestedChildrenToProps(child: any, nestedChildren: any): {
54
+ innerHTML: any;
55
+ cssText?: undefined;
56
+ } | {
57
+ cssText: any;
58
+ innerHTML?: undefined;
59
+ };
60
+ flattenArrayTypeChildren({ child, arrayTypeChildren, newChildProps, nestedChildren, }: {
61
+ child: any;
62
+ arrayTypeChildren: any;
63
+ newChildProps: any;
64
+ nestedChildren: any;
65
+ }): any;
66
+ mapObjectTypeChildren({ child, newProps, newChildProps, nestedChildren }: {
67
+ child: any;
68
+ newProps: any;
69
+ newChildProps: any;
70
+ nestedChildren: any;
71
+ }): any;
72
+ mapArrayTypeChildrenToProps(arrayTypeChildren: any, newProps: any): any;
73
+ warnOnInvalidChildren(child: any, nestedChildren: any): true | void;
74
+ mapChildrenToProps(children: any, newProps: any): any;
75
+ render(): JSX.Element;
76
+ context: any;
77
+ setState<K extends string | number | symbol>(state: any, callback?: () => void): void;
78
+ forceUpdate(callback?: () => void): void;
79
+ readonly props: Readonly<any> & Readonly<{
80
+ children?: any;
81
+ }>;
82
+ state: Readonly<any>;
83
+ refs: {
84
+ [key: string]: React.ReactInstance;
85
+ };
86
+ componentDidMount?(): void;
87
+ componentWillUnmount?(): void;
88
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
89
+ getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
90
+ componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
91
+ componentWillMount?(): void;
92
+ UNSAFE_componentWillMount?(): void;
93
+ componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
94
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
95
+ componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
96
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
29
97
  };
30
98
  /**
31
99
  * @param {Object} base: {"target": "_blank", "href": "http://mysite.com/"}
@@ -69,4 +137,6 @@ declare const HelmetExport: {
69
137
  peek: any;
70
138
  rewind: () => any;
71
139
  canUseDOM: any;
140
+ contextType?: React.Context<any>;
72
141
  };
142
+ import React from 'react';
@@ -29,7 +29,7 @@ export default Html;
29
29
  * @class Html
30
30
  * @extends Component
31
31
  */
32
- declare class Html extends Component<any, any, any> {
32
+ declare class Html extends React.Component<any, any, any> {
33
33
  /**
34
34
  * Property types.
35
35
  * @property {Object} propTypes Property types.
@@ -49,4 +49,4 @@ declare class Html extends Component<any, any, any> {
49
49
  */
50
50
  render(): string;
51
51
  }
52
- import { Component } from 'react';
52
+ import React from 'react';