@plone/volto 17.9.0 → 17.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/package.json +6 -6
- package/packages/volto-slate/package.json +1 -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/helpers/Extensions/withBlockSchemaEnhancer.js +1 -1
- 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/Actions/Actions.d.ts +2 -1
- package/types/components/manage/Add/Add.d.ts +1 -3
- package/types/components/manage/AnchorPlugin/components/Link/index.d.ts +6 -5
- package/types/components/manage/AnchorPlugin/components/LinkButton/AddLinkForm.d.ts +3 -2
- package/types/components/manage/AnchorPlugin/components/LinkButton/index.d.ts +1 -1
- package/types/components/manage/BlockChooser/BlockChooser.d.ts +2 -1
- package/types/components/manage/Blocks/Block/Edit.d.ts +21 -18
- 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/Container/Edit.d.ts +7 -6
- package/types/components/manage/Blocks/Description/Edit.d.ts +19 -14
- package/types/components/manage/Blocks/Description/View.d.ts +7 -2
- package/types/components/manage/Blocks/Grid/Edit.d.ts +6 -5
- package/types/components/manage/Blocks/Grid/View.d.ts +1 -1
- package/types/components/manage/Blocks/HTML/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/HTML/View.d.ts +4 -1
- package/types/components/manage/Blocks/HeroImageLeft/View.d.ts +4 -1
- package/types/components/manage/Blocks/Image/Edit.d.ts +1 -3
- package/types/components/manage/Blocks/Image/ImageSidebar.d.ts +6 -3
- package/types/components/manage/Blocks/Image/LayoutSchema.d.ts +36 -1
- package/types/components/manage/Blocks/Image/View.d.ts +5 -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/LeadImage/View.d.ts +7 -2
- package/types/components/manage/Blocks/Listing/DefaultTemplate.d.ts +4 -3
- package/types/components/manage/Blocks/Listing/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/Listing/ImageGallery.d.ts +2 -1
- package/types/components/manage/Blocks/Listing/ListingBody.d.ts +3 -2
- package/types/components/manage/Blocks/Listing/ListingData.d.ts +6 -3
- package/types/components/manage/Blocks/Listing/SummaryTemplate.d.ts +4 -3
- package/types/components/manage/Blocks/Listing/View.d.ts +1 -1
- package/types/components/manage/Blocks/Listing/withQuerystringResults.d.ts +5 -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/DateRangeFacet.d.ts +1 -1
- package/types/components/manage/Blocks/Search/components/SelectFacet.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/Table/Cell.d.ts +1 -1
- package/types/components/manage/Blocks/Table/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/Table/View.d.ts +4 -1
- package/types/components/manage/Blocks/Teaser/Body.d.ts +5 -2
- package/types/components/manage/Blocks/Teaser/DefaultBody.d.ts +5 -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 +30 -25
- package/types/components/manage/Blocks/Text/Schema.d.ts +36 -1
- package/types/components/manage/Blocks/Text/View.d.ts +4 -1
- package/types/components/manage/Blocks/Title/Edit.d.ts +19 -14
- 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.d.ts +4 -1
- 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/ConditionalLink/ConditionalLink.d.ts +8 -4
- package/types/components/manage/Contents/Contents.d.ts +2 -6
- package/types/components/manage/Contents/ContentsIndexHeader.d.ts +9 -8
- package/types/components/manage/Contents/ContentsItem.d.ts +25 -16
- package/types/components/manage/Contents/ContentsPropertiesModal.d.ts +5 -4
- package/types/components/manage/Contents/ContentsRenameModal.d.ts +9 -4
- package/types/components/manage/Contents/ContentsTagsModal.d.ts +8 -4
- package/types/components/manage/Contents/ContentsWorkflowModal.d.ts +5 -4
- 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/Groups/RenderGroups.d.ts +3 -2
- package/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts +41 -1
- package/types/components/manage/Diff/DiffField.d.ts +1 -1
- package/types/components/manage/Display/Display.d.ts +1 -3
- package/types/components/manage/DragDropList/DragDropList.d.ts +1 -1
- package/types/components/manage/Edit/Edit.d.ts +1 -3
- package/types/components/manage/Form/BlocksToolbar.d.ts +2 -1
- package/types/components/manage/Form/Field.d.ts +3 -2
- package/types/components/manage/Form/Form.d.ts +4 -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 +1 -3
- package/types/components/manage/LinkMore/LinkMore.d.ts +4 -1
- package/types/components/manage/Multilingual/CompareLanguages.d.ts +2 -1
- package/types/components/manage/Multilingual/ManageTranslations.d.ts +41 -1
- package/types/components/manage/Pluggable/index.d.ts +26 -7
- package/types/components/manage/ReactVirtualized/DynamicRowHeightList.d.ts +1 -1
- package/types/components/manage/Sidebar/ObjectBrowser.d.ts +23 -2
- package/types/components/manage/Sidebar/Sidebar.d.ts +2 -1
- package/types/components/manage/Sidebar/SidebarPopup.d.ts +4 -3
- package/types/components/manage/Sidebar/SidebarPortal.d.ts +6 -4
- package/types/components/manage/TemplateChooser/TemplateChooser.d.ts +3 -2
- package/types/components/manage/TextLineEdit/TextLineEdit.d.ts +22 -17
- package/types/components/manage/Toast/Toast.d.ts +7 -6
- package/types/components/manage/Toolbar/More.d.ts +3 -2
- package/types/components/manage/Toolbar/PersonalTools.d.ts +2 -1
- package/types/components/manage/Toolbar/StandardWrapper.d.ts +7 -6
- package/types/components/manage/Toolbar/Types.d.ts +19 -5
- package/types/components/manage/UniversalLink/UniversalLink.d.ts +11 -7
- package/types/components/manage/Widgets/ArrayWidget.d.ts +4 -5
- package/types/components/manage/Widgets/CheckboxWidget.d.ts +3 -2
- package/types/components/manage/Widgets/ColorPickerWidget.d.ts +21 -21
- package/types/components/manage/Widgets/ColorPickerWidget.stories.d.ts +7 -8
- package/types/components/manage/Widgets/DatetimeWidget.d.ts +15 -14
- package/types/components/manage/Widgets/EmailWidget.d.ts +13 -12
- 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/ImageSizeWidget.d.ts +3 -2
- package/types/components/manage/Widgets/InternalUrlWidget.d.ts +55 -14
- package/types/components/manage/Widgets/NumberWidget.d.ts +3 -2
- package/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +23 -22
- package/types/components/manage/Widgets/ObjectWidget.d.ts +6 -5
- package/types/components/manage/Widgets/PasswordWidget.d.ts +3 -2
- package/types/components/manage/Widgets/QuerySortOnWidget.d.ts +1 -1
- package/types/components/manage/Widgets/QueryWidget.d.ts +15 -16
- package/types/components/manage/Widgets/RecurrenceWidget/ByDayField.d.ts +1 -1
- 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/IntervalField.d.ts +5 -4
- package/types/components/manage/Widgets/RecurrenceWidget/MonthOfTheYearField.d.ts +1 -1
- package/types/components/manage/Widgets/RecurrenceWidget/Occurences.d.ts +4 -3
- package/types/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.d.ts +1 -1
- package/types/components/manage/Widgets/RecurrenceWidget/SelectInput.d.ts +6 -5
- package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthField.d.ts +1 -1
- package/types/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField.d.ts +3 -2
- package/types/components/manage/Widgets/RegistryImageWidget.d.ts +3 -2
- package/types/components/manage/Widgets/SchemaWidget.d.ts +1 -3
- package/types/components/manage/Widgets/SchemaWidgetFieldset.d.ts +11 -10
- package/types/components/manage/Widgets/SelectAutoComplete.d.ts +4 -5
- package/types/components/manage/Widgets/SelectStyling.d.ts +7 -7
- package/types/components/manage/Widgets/SelectWidget.d.ts +4 -3
- 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 +1 -3
- package/types/components/manage/Widgets/UrlWidget.d.ts +55 -14
- package/types/components/manage/Widgets/WysiwygWidget.d.ts +1 -3
- package/types/components/manage/Workflow/Workflow.d.ts +1 -1
- package/types/components/theme/Anontools/Anontools.d.ts +5 -2
- package/types/components/theme/App/App.d.ts +8 -7
- package/types/components/theme/Avatar/Avatar.d.ts +7 -6
- package/types/components/theme/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/types/components/theme/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -2
- package/types/components/theme/Comments/CommentEditModal.d.ts +10 -6
- package/types/components/theme/Comments/Comments.d.ts +1 -1
- package/types/components/theme/Error/ErrorBoundary.d.ts +2 -1
- 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/Header/Header.d.ts +6 -3
- package/types/components/theme/Icon/Icon.d.ts +11 -6
- package/types/components/theme/Image/Image.d.ts +13 -7
- package/types/components/theme/LanguageSelector/LanguageSelector.d.ts +2 -1
- package/types/components/theme/Navigation/ContextNavigation.d.ts +9 -1
- package/types/components/theme/Navigation/Navigation.d.ts +2 -1
- package/types/components/theme/Navigation/withContentNavigation.d.ts +15 -2
- package/types/components/theme/NotFound/NotFound.d.ts +1 -1
- package/types/components/theme/Pagination/Pagination.d.ts +3 -2
- package/types/components/theme/Popup/Popup.d.ts +2 -1
- package/types/components/theme/PreviewImage/PreviewImage.d.ts +9 -2
- package/types/components/theme/Search/Search.d.ts +1 -3
- package/types/components/theme/Sitemap/Sitemap.d.ts +1 -3
- package/types/components/theme/SocialSharing/SocialSharing.d.ts +4 -3
- package/types/components/theme/Tags/Tags.d.ts +2 -1
- package/types/components/theme/Title/Title.d.ts +2 -1
- package/types/components/theme/TsTest/TsTest.d.ts +10 -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 +42 -2
- package/types/components/theme/View/DefaultView.d.ts +3 -2
- package/types/components/theme/View/EventDatesInfo.d.ts +2 -2
- package/types/components/theme/View/EventView.d.ts +20 -1
- package/types/components/theme/View/FileView.d.ts +9 -1
- package/types/components/theme/View/ImageView.d.ts +12 -1
- package/types/components/theme/View/LinkView.d.ts +7 -2
- package/types/components/theme/View/ListingView.d.ts +13 -1
- package/types/components/theme/View/NewsItemView.d.ts +8 -1
- package/types/components/theme/View/SummaryView.d.ts +40 -1
- package/types/components/theme/View/TabularView.d.ts +36 -1
- package/types/components/theme/Widgets/BooleanWidget.d.ts +3 -2
- package/types/config/Blocks.d.ts +19 -1
- package/types/config/Components.d.ts +3 -0
- package/types/config/Views.d.ts +63 -11
- package/types/config/Widgets.d.ts +55 -3
- package/types/config/server.d.ts +1 -1
- package/types/error.d.ts +3 -2
- package/types/express-middleware/devproxy.d.ts +1 -1
- package/types/express-middleware/files.d.ts +1 -1
- package/types/express-middleware/images.d.ts +1 -1
- package/types/express-middleware/ok.d.ts +1 -1
- package/types/express-middleware/robotstxt.d.ts +1 -1
- package/types/express-middleware/sitemap.d.ts +1 -1
- package/types/express-middleware/static.d.ts +1 -1
- package/types/helpers/AsyncConnect/AsyncConnect.d.ts +13 -12
- package/types/helpers/Extensions/withBlockSchemaEnhancer.d.ts +1 -1
- package/types/helpers/Helmet/Helmet.d.ts +84 -17
- package/types/helpers/Html/Html.d.ts +12 -5
- package/types/helpers/Loadable/Loadable.d.ts +3 -2
- package/types/helpers/ScrollToTop/ScrollToTop.d.ts +2 -1
- package/types/helpers/UndoManager/useUndoManager.d.ts +4 -4
- 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/index.d.ts +40 -0
- package/types/routes.d.ts +1 -1
- package/types/server.d.ts +1 -1
- package/types/storybook.d.ts +10 -9
- package/src/components/manage/Widgets/ColorPickerWidget.stories.jsx +0 -30
package/types/storybook.d.ts
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
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.
|
|
10
10
|
* @static
|
|
11
11
|
*/
|
|
12
12
|
static propTypes: {
|
|
13
|
-
pathname:
|
|
14
|
-
anonymous:
|
|
15
|
-
customStore:
|
|
13
|
+
pathname: PropTypes.Requireable<string>;
|
|
14
|
+
anonymous: PropTypes.Requireable<boolean>;
|
|
15
|
+
customStore: PropTypes.Requireable<object>;
|
|
16
16
|
};
|
|
17
17
|
constructor(props: any);
|
|
18
18
|
constructor(props: any, context: any);
|
|
@@ -1051,16 +1051,16 @@ 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.
|
|
1058
1058
|
* @static
|
|
1059
1059
|
*/
|
|
1060
1060
|
static propTypes: {
|
|
1061
|
-
pathname:
|
|
1062
|
-
anonymous:
|
|
1063
|
-
customStore:
|
|
1061
|
+
pathname: PropTypes.Requireable<string>;
|
|
1062
|
+
anonymous: PropTypes.Requireable<boolean>;
|
|
1063
|
+
customStore: PropTypes.Requireable<object>;
|
|
1064
1064
|
};
|
|
1065
1065
|
constructor(props: any);
|
|
1066
1066
|
constructor(props: any, context: any);
|
|
@@ -2104,4 +2104,5 @@ 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';
|
|
2108
|
+
import PropTypes from 'prop-types';
|
|
@@ -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
|
-
};
|