@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
@@ -50,6 +50,46 @@ declare namespace reducers {
50
50
  export { navroot };
51
51
  }
52
52
  import reduxAsyncConnect from './asyncConnect/asyncConnect';
53
+ import actions from '@plone/volto/reducers/actions/actions';
54
+ import addons from '@plone/volto/reducers/addons/addons';
55
+ import apierror from '@plone/volto/reducers/apierror/apierror';
56
+ import aliases from '@plone/volto/reducers/aliases/aliases';
57
+ import breadcrumbs from '@plone/volto/reducers/breadcrumbs/breadcrumbs';
58
+ import browserdetect from '@plone/volto/reducers/browserdetect/browserdetect';
59
+ import comments from '@plone/volto/reducers/comments/comments';
60
+ import content from '@plone/volto/reducers/content/content';
61
+ import controlpanels from '@plone/volto/reducers/controlpanels/controlpanels';
62
+ import clipboard from '@plone/volto/reducers/clipboard/clipboard';
63
+ import diff from '@plone/volto/reducers/diff/diff';
64
+ import emailNotification from '@plone/volto/reducers/emailNotification/emailNotification';
65
+ import emailSend from '@plone/volto/reducers/emailSend/emailSend';
66
+ import form from '@plone/volto/reducers/form/form';
67
+ import groups from '@plone/volto/reducers/groups/groups';
68
+ import history from '@plone/volto/reducers/history/history';
69
+ import messages from '@plone/volto/reducers/messages/messages';
70
+ import navigation from '@plone/volto/reducers/navigation/navigation';
71
+ import querystring from '@plone/volto/reducers/querystring/querystring';
72
+ import querystringsearch from '@plone/volto/reducers/querystringsearch/querystringsearch';
73
+ import relations from '@plone/volto/reducers/relations/relations';
74
+ import roles from '@plone/volto/reducers/roles/roles';
75
+ import rules from '@plone/volto/reducers/rules/rules';
76
+ import controlpanelrule from '@plone/volto/reducers/controlPanelRule/controlPanelRule';
77
+ import controlpanelrules from '@plone/volto/reducers/controlPanelRules/controlPanelRules';
78
+ import contentrulesevents from '@plone/volto/reducers/contentRulesEvents/contentRulesEvents';
79
+ import schema from '@plone/volto/reducers/schema/schema';
80
+ import search from '@plone/volto/reducers/search/search';
81
+ import sharing from '@plone/volto/reducers/sharing/sharing';
82
+ import sidebar from '@plone/volto/reducers/sidebar/sidebar';
83
+ import types from '@plone/volto/reducers/types/types';
84
+ import users from '@plone/volto/reducers/users/users';
85
+ import authRole from '@plone/volto/reducers/authRole/authRole';
86
+ import userSession from '@plone/volto/reducers/userSession/userSession';
87
+ import vocabularies from '@plone/volto/reducers/vocabularies/vocabularies';
88
+ import workflow from '@plone/volto/reducers/workflow/workflow';
89
+ import toolbar from '@plone/volto/reducers/toolbar/toolbar';
90
+ import blocksClipboard from '@plone/volto/reducers/blocksClipboard/blocksClipboard';
91
+ import lazyLibraries from '@plone/volto/reducers/lazyLibraries/lazyLibraries';
92
+ import contextNavigation from '@plone/volto/reducers/contextNavigation/contextNavigation';
53
93
  import upgrade from './upgrade/upgrade';
54
94
  import workingCopy from './workingcopy/workingcopy';
55
95
  import transactions from './transactions/transactions';
@@ -1 +1,2 @@
1
1
  export default config;
2
+ import config from '@plone/registry';
package/types/routes.d.ts CHANGED
@@ -1,4 +1,6 @@
1
- export function getExternalRoutes(): any[];
1
+ export function getExternalRoutes(): {
2
+ component: (props: any) => JSX.Element;
3
+ }[];
2
4
  /**
3
5
  * Default routes array.
4
6
  * @array
@@ -13,7 +15,20 @@ export const multilingualRoutes: ({
13
15
  component: any;
14
16
  exact: boolean;
15
17
  })[];
16
- export const defaultRoutes: any[];
18
+ export const defaultRoutes: ({
19
+ path: string;
20
+ component: any;
21
+ exact?: undefined;
22
+ } | {
23
+ path: string;
24
+ component: any;
25
+ exact: boolean;
26
+ } | {
27
+ component: (props: any) => JSX.Element;
28
+ } | {
29
+ path: string[];
30
+ component: any;
31
+ })[];
17
32
  export default routes;
18
33
  /**
19
34
  * Routes array.
@@ -23,5 +38,18 @@ export default routes;
23
38
  declare const routes: {
24
39
  path: string;
25
40
  component: any;
26
- routes: any[];
41
+ routes: ({
42
+ path: string;
43
+ component: any;
44
+ exact?: undefined;
45
+ } | {
46
+ path: string;
47
+ component: any;
48
+ exact: boolean;
49
+ } | {
50
+ component: (props: any) => JSX.Element;
51
+ } | {
52
+ path: string[];
53
+ component: any;
54
+ })[];
27
55
  }[];
package/types/server.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export function defaultReadCriticalCss(): string;
1
+ export function defaultReadCriticalCss(): any;
2
2
  export default server;
3
3
  declare const server: any;
@@ -3,7 +3,7 @@
3
3
  * @class Wrapper
4
4
  * @extends Component
5
5
  */
6
- export default class Wrapper extends Component<any, any, any> {
6
+ export default class Wrapper extends React.Component<any, any, any> {
7
7
  /**
8
8
  * Property types.
9
9
  * @property {Object} propTypes Property types.
@@ -1051,7 +1051,7 @@ export default class Wrapper extends Component<any, any, any> {
1051
1051
  };
1052
1052
  render(): JSX.Element;
1053
1053
  }
1054
- export class RealStoreWrapper extends Component<any, any, any> {
1054
+ export class RealStoreWrapper extends React.Component<any, any, any> {
1055
1055
  /**
1056
1056
  * Property types.
1057
1057
  * @property {Object} propTypes Property types.
@@ -2104,4 +2104,4 @@ export function FormUndoWrapper({ initialState, children, showControls, }: {
2104
2104
  children: any;
2105
2105
  showControls?: boolean;
2106
2106
  }): JSX.Element;
2107
- import { Component } from 'react';
2107
+ import React from 'react';
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import ColorPickerWidget from './ColorPickerWidget';
3
- import WidgetStory from './story';
4
-
5
- export const Default = WidgetStory.bind({
6
- widget: ColorPickerWidget,
7
- });
8
-
9
- Default.args = {
10
- id: 'favoriteColor',
11
- title: 'Favorite Color',
12
- colors: [
13
- { name: 'red', label: 'red' },
14
- { name: 'yellow', label: 'yellow' },
15
- { name: 'green', label: 'green' },
16
- ],
17
- };
18
-
19
- export default {
20
- title: 'Edit Widgets/ColorPicker',
21
- component: Default,
22
- decorators: [
23
- (Story) => (
24
- <div className="ui segment form attached" style={{ width: '400px' }}>
25
- <Story />
26
- </div>
27
- ),
28
- ],
29
- argTypes: {},
30
- };