@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.
- package/.release-it.json +2 -3
- package/CHANGELOG.md +49 -0
- package/locales/ca/LC_MESSAGES/volto.po +930 -933
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +930 -931
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +930 -930
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +932 -936
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +930 -930
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +930 -936
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +933 -943
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +930 -930
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +930 -933
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +930 -945
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +930 -933
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +930 -934
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +930 -930
- package/locales/ro.json +1 -1
- package/locales/volto.pot +932 -936
- package/locales/zh_CN/LC_MESSAGES/volto.po +930 -930
- package/locales/zh_CN.json +1 -1
- package/package.json +10 -8
- package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +7 -2
- package/src/components/manage/Contents/Contents.jsx +4 -8
- package/src/components/manage/LinksToItem/LinksToItem.jsx +22 -2
- package/src/components/manage/LinksToItem/LinksToItem.test.jsx +13 -1
- package/src/components/manage/Sidebar/SidebarPortal.jsx +1 -1
- package/src/components/manage/Widgets/ColorPickerWidget.stories.tsx +48 -0
- package/src/components/manage/Widgets/{ColorPickerWidget.jsx → ColorPickerWidget.tsx} +40 -23
- package/src/components/manage/Widgets/ObjectBrowserWidget.jsx +13 -3
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +1 -1
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.test.jsx +1 -1
- package/src/config/Blocks.jsx +1 -1
- package/src/helpers/Blocks/Blocks.js +10 -2
- package/src/helpers/Blocks/Blocks.test.js +20 -0
- package/src/helpers/Extensions/withBlockSchemaEnhancer.js +3 -1
- package/src/server.jsx +1 -1
- package/theme/themes/pastanaga/extras/blocks.less +7 -0
- package/tsconfig.declarations.json +16 -0
- package/types/actions/authRole/authRole.d.ts +1 -1
- package/types/actions/comments/comments.d.ts +1 -1
- package/types/actions/content/content.d.ts +1 -1
- package/types/actions/controlpanels/controlpanels.d.ts +2 -2
- package/types/actions/index.d.ts +36 -0
- package/types/actions/upgrade/upgrade.d.ts +2 -2
- package/types/components/index.d.ts +180 -0
- package/types/components/manage/Add/Add.d.ts +3 -2
- package/types/components/manage/Aliases/Aliases.d.ts +4 -1
- package/types/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.d.ts +3 -2
- package/types/components/manage/BlockChooser/BlockChooser.d.ts +2 -1
- package/types/components/manage/Blocks/Block/Edit.d.ts +5 -5
- package/types/components/manage/Blocks/Block/EditBlockWrapper.d.ts +3 -2
- package/types/components/manage/Blocks/Block/Settings.d.ts +3 -2
- package/types/components/manage/Blocks/Grid/View.d.ts +1 -1
- package/types/components/manage/Blocks/Grid/templates.d.ts +1 -1
- package/types/components/manage/Blocks/HeroImageLeft/Edit.d.ts +4 -1
- package/types/components/manage/Blocks/Image/Edit.d.ts +3 -2
- package/types/components/manage/Blocks/Image/LayoutSchema.d.ts +36 -1
- package/types/components/manage/Blocks/Image/View.d.ts +3 -2
- package/types/components/manage/Blocks/LeadImage/Edit.d.ts +3 -2
- package/types/components/manage/Blocks/LeadImage/LeadImageSidebar.d.ts +5 -4
- package/types/components/manage/Blocks/Listing/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/Listing/ListingBody.d.ts +3 -2
- package/types/components/manage/Blocks/Listing/View.d.ts +1 -1
- package/types/components/manage/Blocks/Maps/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/Maps/View.d.ts +1 -3
- package/types/components/manage/Blocks/Search/SearchBlockView.d.ts +1 -1
- package/types/components/manage/Blocks/Search/components/SortOn.d.ts +1 -3
- package/types/components/manage/Blocks/Search/components/ViewSwitcher.d.ts +1 -3
- package/types/components/manage/Blocks/Search/schema.d.ts +1 -1
- package/types/components/manage/Blocks/Search/utils.d.ts +2 -2
- package/types/components/manage/Blocks/Teaser/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/Teaser/View.d.ts +1 -1
- package/types/components/manage/Blocks/Text/Edit.d.ts +3 -5
- package/types/components/manage/Blocks/Text/Schema.d.ts +36 -1
- package/types/components/manage/Blocks/ToC/Edit.d.ts +2 -2
- package/types/components/manage/Blocks/ToC/View.d.ts +3 -2
- package/types/components/manage/Blocks/ToC/variations/DefaultTocRenderer.d.ts +3 -2
- package/types/components/manage/Blocks/ToC/variations/HorizontalMenu.d.ts +3 -2
- package/types/components/manage/Blocks/Video/Body.test.d.ts +1 -0
- package/types/components/manage/Blocks/Video/Edit.d.ts +1 -3
- package/types/components/manage/Blocks/Video/View.d.ts +1 -1
- package/types/components/manage/Contents/Contents.d.ts +5 -4
- package/types/components/manage/Contents/ContentsTagsModal.stories.d.ts +0 -1
- package/types/components/manage/Contents/ContentsUploadModal.d.ts +4 -1
- package/types/components/manage/Controlpanels/AddonsControlpanel.d.ts +4 -1
- package/types/components/manage/Controlpanels/Aliases.d.ts +4 -1
- package/types/components/manage/Controlpanels/ContentType.d.ts +4 -1
- package/types/components/manage/Controlpanels/ContentTypeLayout.d.ts +4 -1
- package/types/components/manage/Controlpanels/ContentTypeSchema.d.ts +4 -1
- package/types/components/manage/Controlpanels/ContentTypes.d.ts +4 -1
- package/types/components/manage/Controlpanels/ContentTypesActions.d.ts +3 -2
- package/types/components/manage/Controlpanels/Controlpanel.d.ts +3 -2
- package/types/components/manage/Controlpanels/Controlpanels.d.ts +1 -16
- package/types/components/manage/Controlpanels/DatabaseInformation.d.ts +4 -1
- package/types/components/manage/Controlpanels/Groups/GroupsControlpanel.d.ts +4 -1
- package/types/components/manage/Controlpanels/Groups/RenderGroups.d.ts +3 -2
- package/types/components/manage/Controlpanels/ModerateComments.d.ts +4 -1
- package/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts +43 -1
- package/types/components/manage/Controlpanels/Rules/AddRule.d.ts +4 -1
- package/types/components/manage/Controlpanels/Rules/ConfigureRule.d.ts +4 -1
- package/types/components/manage/Controlpanels/Rules/EditRule.d.ts +4 -1
- package/types/components/manage/Controlpanels/Rules/Rules.d.ts +4 -1
- package/types/components/manage/Controlpanels/Rules/components/VariableModal.d.ts +4 -1
- package/types/components/manage/Controlpanels/UndoControlpanel.d.ts +4 -1
- package/types/components/manage/Controlpanels/UpgradeControlPanel.d.ts +4 -1
- package/types/components/manage/Controlpanels/Users/RenderUsers.d.ts +4 -1
- package/types/components/manage/Controlpanels/Users/UsersControlpanel.d.ts +4 -1
- package/types/components/manage/Display/Display.d.ts +3 -2
- package/types/components/manage/Edit/Edit.d.ts +6 -3
- package/types/components/manage/Form/BlocksToolbar.d.ts +5 -2
- package/types/components/manage/Form/Field.d.ts +3 -2
- package/types/components/manage/Form/Form.d.ts +1 -3
- package/types/components/manage/Form/InlineForm.d.ts +3 -2
- package/types/components/manage/Form/ModalForm.d.ts +3 -2
- package/types/components/manage/History/History.d.ts +3 -2
- package/types/components/manage/LinksToItem/LinksToItem.d.ts +3 -2
- package/types/components/manage/Multilingual/CompareLanguages.d.ts +2 -1
- package/types/components/manage/Multilingual/ManageTranslations.d.ts +43 -1
- package/types/components/manage/Pluggable/index.d.ts +8 -7
- package/types/components/manage/Preferences/PersonalPreferences.d.ts +4 -1
- package/types/components/manage/Rules/Rules.d.ts +4 -1
- package/types/components/manage/Sidebar/ObjectBrowser.d.ts +25 -2
- package/types/components/manage/Sidebar/ObjectBrowserBody.d.ts +4 -1
- package/types/components/manage/Sidebar/Sidebar.d.ts +2 -1
- package/types/components/manage/Sidebar/SidebarPortal.d.ts +2 -2
- package/types/components/manage/Toolbar/More.d.ts +3 -2
- package/types/components/manage/Toolbar/Toolbar.d.ts +4 -1
- package/types/components/manage/Toolbar/Types.d.ts +1 -20
- package/types/components/manage/Widgets/ArrayWidget.d.ts +5 -4
- package/types/components/manage/Widgets/CheckboxWidget.d.ts +3 -2
- package/types/components/manage/Widgets/ColorPickerWidget.d.ts +22 -21
- package/types/components/manage/Widgets/ColorPickerWidget.stories.d.ts +7 -8
- package/types/components/manage/Widgets/DatetimeWidget.d.ts +2 -2
- package/types/components/manage/Widgets/FileWidget.d.ts +3 -2
- package/types/components/manage/Widgets/FormFieldWrapper.d.ts +3 -2
- package/types/components/manage/Widgets/IdWidget.d.ts +4 -1
- package/types/components/manage/Widgets/ImageSizeWidget.d.ts +3 -2
- package/types/components/manage/Widgets/InternalUrlWidget.d.ts +43 -1
- package/types/components/manage/Widgets/NumberWidget.d.ts +3 -2
- package/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +9 -9
- package/types/components/manage/Widgets/PasswordWidget.d.ts +3 -2
- package/types/components/manage/Widgets/QueryWidget.d.ts +4 -4
- package/types/components/manage/Widgets/RecurrenceWidget/ByMonthDayField.d.ts +3 -2
- package/types/components/manage/Widgets/RecurrenceWidget/ByMonthField.d.ts +3 -2
- package/types/components/manage/Widgets/RecurrenceWidget/ByYearField.d.ts +3 -2
- package/types/components/manage/Widgets/RecurrenceWidget/EndField.d.ts +3 -2
- package/types/components/manage/Widgets/RecurrenceWidget/Occurences.d.ts +3 -2
- package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.d.ts +3 -2
- package/types/components/manage/Widgets/ReferenceWidget.d.ts +4 -1
- package/types/components/manage/Widgets/RegistryImageWidget.d.ts +3 -2
- package/types/components/manage/Widgets/SchemaWidget.d.ts +3 -2
- package/types/components/manage/Widgets/SelectAutoComplete.d.ts +5 -4
- package/types/components/manage/Widgets/SelectWidget.d.ts +3 -2
- package/types/components/manage/Widgets/TextWidget.d.ts +3 -2
- package/types/components/manage/Widgets/TextareaWidget.d.ts +3 -2
- package/types/components/manage/Widgets/TokenWidget.d.ts +3 -2
- package/types/components/manage/Widgets/UrlWidget.d.ts +43 -1
- package/types/components/manage/Widgets/WysiwygWidget.d.ts +3 -2
- package/types/components/theme/App/App.d.ts +4 -4
- package/types/components/theme/AppExtras/AppExtras.d.ts +1 -1
- package/types/components/theme/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -2
- package/types/components/theme/Error/ErrorBoundary.d.ts +2 -2
- package/types/components/theme/Error/ServerError.d.ts +1 -1
- package/types/components/theme/Footer/Footer.d.ts +3 -2
- package/types/components/theme/Forbidden/Forbidden.d.ts +1 -1
- package/types/components/theme/Navigation/ContextNavigation.d.ts +1 -1
- package/types/components/theme/NotFound/NotFound.d.ts +1 -1
- package/types/components/theme/Pagination/Pagination.d.ts +3 -2
- package/types/components/theme/Search/Search.d.ts +6 -3
- package/types/components/theme/Sitemap/Sitemap.d.ts +4 -2
- package/types/components/theme/TsTest/TsTest.d.ts +11 -0
- package/types/components/theme/TsTest/TsTest.test.d.ts +1 -0
- package/types/components/theme/Unauthorized/Unauthorized.d.ts +1 -1
- package/types/components/theme/View/AlbumView.d.ts +2 -1
- package/types/components/theme/View/DefaultView.d.ts +3 -2
- package/types/components/theme/View/RenderBlocks.d.ts +1 -1
- package/types/components/theme/View/View.d.ts +4 -1
- package/types/components/theme/Widgets/ArrayWidget.d.ts +1 -1
- package/types/components/theme/Widgets/BooleanWidget.d.ts +3 -2
- package/types/components/theme/Widgets/DateWidget.d.ts +1 -1
- package/types/components/theme/Widgets/DatetimeWidget.d.ts +1 -1
- package/types/components/theme/Widgets/DescriptionWidget.d.ts +1 -1
- package/types/components/theme/Widgets/EmailWidget.d.ts +1 -1
- package/types/components/theme/Widgets/FileWidget.d.ts +1 -1
- package/types/components/theme/Widgets/ImageWidget.d.ts +1 -1
- package/types/components/theme/Widgets/PasswordWidget.d.ts +1 -1
- package/types/components/theme/Widgets/RelationWidget.d.ts +1 -1
- package/types/components/theme/Widgets/RelationsWidget.d.ts +1 -1
- package/types/components/theme/Widgets/RichTextWidget.d.ts +1 -1
- package/types/components/theme/Widgets/SelectWidget.d.ts +1 -1
- package/types/components/theme/Widgets/TextWidget.d.ts +1 -1
- package/types/components/theme/Widgets/TitleWidget.d.ts +1 -1
- package/types/components/theme/Widgets/TokenWidget.d.ts +1 -1
- package/types/components/theme/Widgets/UrlWidget.d.ts +1 -1
- package/types/config/Blocks.d.ts +20 -1
- package/types/config/Components.d.ts +3 -0
- package/types/config/ContentIcons.d.ts +7 -7
- package/types/config/ControlPanels.d.ts +21 -21
- package/types/config/RichTextEditor/index.d.ts +8 -5
- package/types/config/Views.d.ts +40 -11
- package/types/config/Widgets.d.ts +58 -4
- package/types/error.d.ts +3 -2
- package/types/helpers/AsyncConnect/AsyncConnect.d.ts +2 -2
- package/types/helpers/Blocks/Blocks.d.ts +3 -1
- package/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts +2 -2
- package/types/helpers/Helmet/Helmet.d.ts +71 -1
- package/types/helpers/Html/Html.d.ts +2 -2
- package/types/helpers/LanguageMap/LanguageMap.d.ts +1 -878
- package/types/helpers/Loadable/__mocks__/Loadable.d.ts +2 -2
- package/types/helpers/MessageLabels/MessageLabels.d.ts +1 -540
- package/types/helpers/ScrollToTop/ScrollToTop.d.ts +1 -1
- package/types/helpers/UndoManager/useUndoManager.d.ts +4 -4
- package/types/helpers/Url/Url.d.ts +3 -3
- package/types/helpers/Utils/Date.d.ts +2 -2
- package/types/helpers/Utils/usePagination.d.ts +1 -1
- package/types/helpers/Utils/usePrevious.d.ts +1 -1
- package/types/helpers/index.d.ts +12 -0
- package/types/hooks/index.d.ts +2 -1
- package/types/middleware/index.d.ts +2 -0
- package/types/reducers/blocksClipboard/blocksClipboard.d.ts +1 -1
- package/types/reducers/index.d.ts +40 -0
- package/types/registry.d.ts +1 -0
- package/types/routes.d.ts +31 -3
- package/types/server.d.ts +1 -1
- package/types/storybook.d.ts +3 -3
- 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';
|
package/types/registry.d.ts
CHANGED
package/types/routes.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export function getExternalRoutes():
|
|
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:
|
|
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:
|
|
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
package/types/storybook.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
};
|