@plone/volto 18.0.0-alpha.41 → 18.0.0-alpha.43
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 +114 -0
- package/finalreleasechangelog.py +48 -0
- package/locales/ca/LC_MESSAGES/volto.po +39 -13
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +40 -14
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +39 -13
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +40 -14
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +40 -14
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +40 -14
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +40 -14
- package/locales/fr.json +1 -1
- package/locales/hi/LC_MESSAGES/volto.po +40 -14
- package/locales/hi.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +40 -14
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +39 -13
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +39 -13
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +39 -13
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +40 -14
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +39 -13
- package/locales/ro.json +1 -1
- package/locales/volto.pot +40 -14
- package/locales/zh_CN/LC_MESSAGES/volto.po +40 -14
- package/locales/zh_CN.json +1 -1
- package/package.json +5 -6
- package/razzle.config.js +3 -3
- package/src/components/index.js +0 -1
- package/src/components/manage/Actions/Actions.stories.jsx +138 -0
- package/src/components/manage/Add/Add.jsx +7 -4
- package/src/components/manage/BlockChooser/BlockChooser.jsx +9 -1
- package/src/components/manage/Blocks/Block/BlocksForm.jsx +5 -0
- package/src/components/manage/Blocks/Block/Edit.jsx +24 -8
- package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +17 -1
- package/src/components/manage/Blocks/Block/Order/Item.jsx +8 -2
- package/src/components/manage/Blocks/Block/Order/Order.jsx +2 -0
- package/src/components/manage/Blocks/Container/Data.jsx +10 -2
- package/src/components/manage/Blocks/Grid/View.jsx +3 -0
- package/src/components/manage/Blocks/Image/ImageSidebar.jsx +10 -2
- package/src/components/manage/Blocks/LeadImage/Edit.jsx +74 -126
- package/src/components/manage/Blocks/Listing/ListingData.jsx +10 -2
- package/src/components/manage/Blocks/Maps/MapsSidebar.jsx +3 -1
- package/src/components/manage/Blocks/Search/SearchBlockEdit.jsx +2 -0
- package/src/components/manage/Blocks/Search/SearchBlockView.jsx +18 -2
- package/src/components/manage/Blocks/Search/components/SortOn.jsx +82 -55
- package/src/components/manage/Blocks/Search/hocs/withSearch.jsx +1 -1
- package/src/components/manage/Blocks/Search/widgets/SelectMetadataField.jsx +107 -176
- package/src/components/manage/Blocks/Teaser/Data.jsx +10 -2
- package/src/components/manage/Blocks/Teaser/DefaultBody.jsx +15 -8
- package/src/components/manage/Blocks/ToC/Edit.jsx +36 -28
- package/src/components/manage/Blocks/Video/Edit.jsx +105 -172
- package/src/components/manage/Blocks/Video/Edit.stories.jsx +57 -0
- package/src/components/manage/Blocks/Video/VideoSidebar.jsx +3 -1
- package/src/components/manage/Contents/Contents.jsx +4 -1
- package/src/components/manage/Contents/ContentsBreadcrumbs.stories.jsx +46 -0
- package/src/components/manage/Contents/ContentsPropertiesModal.jsx +85 -52
- package/src/components/manage/Contents/ContentsUploadModal.jsx +230 -323
- package/src/components/manage/Contents/ContentsUploadModal.stories.jsx +56 -0
- package/src/components/manage/Controlpanels/AddonsControlpanel.jsx +323 -441
- package/src/components/manage/Controlpanels/Aliases.jsx +452 -580
- package/src/components/manage/Controlpanels/Aliases.stories.jsx +74 -0
- package/src/components/manage/Controlpanels/ContentTypeSchema.jsx +1 -0
- package/src/components/manage/Controlpanels/Controlpanel.jsx +41 -2
- package/src/components/manage/Controlpanels/Controlpanel.test.jsx +55 -24
- package/src/components/manage/Controlpanels/DatabaseInformation.jsx +162 -229
- package/src/components/manage/Controlpanels/Groups/RenderGroups.jsx +74 -122
- package/src/components/manage/Controlpanels/UndoControlpanel.jsx +3 -3
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipListing.jsx +28 -12
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.jsx +12 -4
- package/src/components/manage/Display/Display.jsx +92 -148
- package/src/components/manage/Display/Display.stories.jsx +46 -0
- package/src/components/manage/Edit/Edit.jsx +2 -4
- package/src/components/manage/Form/Form.jsx +85 -20
- package/src/components/manage/Form/InlineForm.jsx +2 -4
- package/src/components/manage/Form/ModalForm.jsx +1 -1
- package/src/components/manage/History/History.jsx +1 -1
- package/src/components/manage/Pluggable/Pluggable.test.js +1 -1
- package/src/components/manage/Preferences/ChangePassword.jsx +94 -172
- package/src/components/manage/Preferences/ChangePassword.stories.jsx +41 -0
- package/src/components/manage/Preferences/PersonalInformation.jsx +50 -115
- package/src/components/manage/Preferences/PersonalPreferences.jsx +46 -100
- package/src/components/manage/Preferences/PersonalPreferences.stories.jsx +48 -0
- package/src/components/manage/Toolbar/More.jsx +308 -399
- package/src/components/manage/Toolbar/Toolbar.jsx +1 -1
- package/src/components/manage/Widgets/ArrayWidget.jsx +2 -2
- package/src/components/manage/Widgets/DatetimeWidget.jsx +121 -175
- package/src/components/manage/Widgets/ImageWidget.jsx +6 -5
- package/src/components/manage/Widgets/RecurrenceWidget/EndField.jsx +7 -1
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +80 -31
- package/src/components/manage/Widgets/ReferenceWidget.jsx +134 -210
- package/src/components/theme/Register/Register.jsx +70 -142
- package/src/components/theme/Register/Register.stories.jsx +49 -0
- package/src/components/theme/Search/Search.jsx +13 -5
- package/src/components/theme/Tags/Tags.jsx +19 -10
- package/src/components/theme/Tags/Tags.test.jsx +9 -11
- package/src/components/theme/View/AlbumView.jsx +122 -167
- package/src/components/theme/View/LinkView.jsx +4 -0
- package/src/components/theme/View/LinkView.test.jsx +2 -0
- package/src/components/theme/View/View.jsx +0 -13
- package/src/components/theme/View/View.test.jsx +0 -3
- package/src/config/ControlPanels.js +49 -43
- package/src/config/Widgets.jsx +1 -1
- package/src/config/config.test.js +1 -0
- package/src/config/index.js +23 -2
- package/src/config/slots.js +12 -0
- package/src/config/validation.ts +155 -0
- package/src/helpers/Blocks/Blocks.js +12 -7
- package/src/helpers/Blocks/Blocks.test.js +15 -0
- package/src/helpers/Blocks/cloneBlocks.ts +1 -1
- package/src/helpers/Extensions/withBlockExtensions.jsx +1 -1
- package/src/helpers/FormValidation/FormValidation.jsx +128 -172
- package/src/helpers/FormValidation/FormValidation.test.js +836 -8
- package/src/helpers/FormValidation/validators.ts +203 -0
- package/src/helpers/MessageLabels/MessageLabels.js +28 -0
- package/src/helpers/Url/Url.test.js +19 -6
- package/src/helpers/Url/urlRegex.js +1 -1
- package/src/helpers/User/User.js +1 -1
- package/src/helpers/index.js +2 -0
- package/src/hooks/client/useClient.js +1 -1
- package/src/middleware/api.js +4 -2
- package/src/middleware/index.js +1 -0
- package/src/middleware/userSessionReset.js +46 -0
- package/src/store.js +2 -0
- package/test-setup-config.jsx +10 -0
- package/theme/themes/default/modules/embed.variables +1 -1
- package/theme/themes/pastanaga/collections/form.overrides +34 -0
- package/theme/themes/pastanaga/extras/blocks.less +6 -0
- package/theme/themes/pastanaga/extras/sidebar.less +4 -0
- package/theme/themes/pastanaga/extras/toolbar.less +10 -3
- package/tsconfig.declarations.json +3 -2
- package/types/components/index.d.ts +0 -1
- package/types/components/manage/Actions/Actions.stories.d.ts +8 -0
- package/types/components/manage/Blocks/Block/Order/Order.d.ts +2 -1
- package/types/components/manage/Blocks/LeadImage/Edit.d.ts +14 -5
- package/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts +0 -5
- package/types/components/manage/Blocks/ToC/Edit.d.ts +1 -6
- package/types/components/manage/Blocks/Video/Edit.d.ts +1 -1
- package/types/components/manage/Blocks/Video/Edit.stories.d.ts +8 -0
- package/types/components/manage/Contents/ContentsBreadcrumbs.stories.d.ts +8 -0
- package/types/components/manage/Contents/ContentsUploadModal.d.ts +14 -2
- package/types/components/manage/Contents/ContentsUploadModal.stories.d.ts +8 -0
- package/types/components/manage/Contents/index.d.ts +1 -1
- package/types/components/manage/Controlpanels/AddonsControlpanel.d.ts +2 -2
- package/types/components/manage/Controlpanels/Aliases.d.ts +2 -2
- package/types/components/manage/Controlpanels/Aliases.stories.d.ts +8 -0
- package/types/components/manage/Controlpanels/DatabaseInformation.d.ts +2 -2
- package/types/components/manage/Controlpanels/Groups/RenderGroups.d.ts +10 -5
- package/types/components/manage/Controlpanels/index.d.ts +4 -4
- package/types/components/manage/Display/Display.stories.d.ts +8 -0
- package/types/components/manage/Preferences/ChangePassword.d.ts +2 -2
- package/types/components/manage/Preferences/ChangePassword.stories.d.ts +8 -0
- package/types/components/manage/Preferences/PersonalInformation.d.ts +7 -2
- package/types/components/manage/Preferences/PersonalPreferences.d.ts +5 -1
- package/types/components/manage/Preferences/PersonalPreferences.stories.d.ts +8 -0
- package/types/components/manage/Toolbar/More.d.ts +8 -5
- package/types/components/manage/Widgets/DatetimeWidget.d.ts +0 -85
- package/types/components/manage/Widgets/DatetimeWidget.stories.d.ts +0 -1
- package/types/components/manage/Widgets/ReferenceWidget.d.ts +27 -2
- package/types/components/manage/Widgets/index.d.ts +1 -1
- package/types/components/theme/Register/Register.d.ts +2 -2
- package/types/components/theme/Register/Register.stories.d.ts +9 -0
- package/types/components/theme/Tags/Tags.d.ts +15 -7
- package/types/components/theme/View/AlbumView.d.ts +3 -17
- package/types/config/ControlPanels.d.ts +8 -0
- package/types/config/RichTextEditor/ToHTML.d.ts +1 -1
- package/types/config/Widgets.d.ts +3 -3
- package/types/config/slots.d.ts +21 -0
- package/types/config/validation.d.ts +3 -0
- package/types/helpers/Blocks/Blocks.d.ts +6 -0
- package/types/helpers/Extensions/withBlockExtensions.d.ts +1 -1
- package/types/helpers/FormValidation/FormValidation.d.ts +2 -0
- package/types/helpers/FormValidation/validators.d.ts +29 -0
- package/types/helpers/MessageLabels/MessageLabels.d.ts +36 -0
- package/types/helpers/User/User.d.ts +1 -1
- package/types/helpers/index.d.ts +2 -2
- package/types/middleware/index.d.ts +1 -0
- package/types/middleware/userSessionReset.d.ts +5 -0
- package/src/components/theme/SocialSharing/SocialSharing.jsx +0 -48
- package/src/components/theme/SocialSharing/SocialSharing.test.jsx +0 -14
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
export default Edit;
|
|
2
|
-
declare
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
constructor(props: any, context: any);
|
|
5
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
}
|
|
7
|
-
import React from 'react';
|
|
2
|
+
declare function Edit(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
1
|
+
declare const _default: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const ContentBreadcrumbs: any;
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { ContentBreadcrumbs as component };
|
|
5
|
+
export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
6
|
+
export let argTypes: {};
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default ContentsUploadModal;
|
|
2
|
+
declare function ContentsUploadModal(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace ContentsUploadModal {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let pathname: any;
|
|
6
|
+
let open: any;
|
|
7
|
+
let onOk: any;
|
|
8
|
+
let onCancel: any;
|
|
9
|
+
let multiple: any;
|
|
10
|
+
let minSize: any;
|
|
11
|
+
let maxSize: any;
|
|
12
|
+
let accept: any;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const ContentUploadModal: any;
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { ContentUploadModal as component };
|
|
5
|
+
export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
6
|
+
export let argTypes: {};
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
@@ -3,7 +3,7 @@ export declare const ContentsRenameModal: import("@loadable/component").Loadable
|
|
|
3
3
|
export declare const ContentsBreadcrumbs: import("@loadable/component").LoadableComponent<any>;
|
|
4
4
|
export declare const ContentsIndexHeader: import("@loadable/component").LoadableClassComponent<any>;
|
|
5
5
|
export declare const ContentsItem: import("@loadable/component").LoadableClassComponent<any>;
|
|
6
|
-
export declare const ContentsUploadModal: import("@loadable/component").
|
|
6
|
+
export declare const ContentsUploadModal: import("@loadable/component").LoadableComponent<any>;
|
|
7
7
|
export declare const ContentsPropertiesModal: import("@loadable/component").LoadableComponent<any>;
|
|
8
8
|
export declare const ContentsWorkflowModal: import("@loadable/component").LoadableComponent<any>;
|
|
9
9
|
export declare const ContentsTagsModal: import("@loadable/component").LoadableComponent<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default AddonsControlpanel;
|
|
2
|
+
declare function AddonsControlpanel(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default Aliases;
|
|
2
|
+
declare function Aliases(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default DatabaseInformation;
|
|
2
|
+
declare function DatabaseInformation(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export default RenderGroups;
|
|
2
|
+
declare function RenderGroups(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace RenderGroups {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let group: any;
|
|
6
|
+
let roles: any;
|
|
7
|
+
let inheritedRole: any;
|
|
8
|
+
let onDelete: any;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -9,11 +9,11 @@ export declare const UsersControlpanel: import("@loadable/component").LoadableCl
|
|
|
9
9
|
export declare const RenderUsers: import("@loadable/component").LoadableClassComponent<any>;
|
|
10
10
|
export declare const UserGroupMembershipControlPanel: import("@loadable/component").LoadableComponent<unknown>;
|
|
11
11
|
export declare const GroupsControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
12
|
-
export declare const RenderGroups: import("@loadable/component").LoadableComponent<
|
|
12
|
+
export declare const RenderGroups: import("@loadable/component").LoadableComponent<any>;
|
|
13
13
|
export declare const RelationsControlpanel: import("@loadable/component").LoadableComponent<unknown>;
|
|
14
|
-
export declare const AliasesControlpanel: import("@loadable/component").
|
|
14
|
+
export declare const AliasesControlpanel: import("@loadable/component").LoadableComponent<any>;
|
|
15
15
|
export declare const UndoControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
16
|
-
export declare const AddonsControlpanel: import("@loadable/component").
|
|
16
|
+
export declare const AddonsControlpanel: import("@loadable/component").LoadableComponent<any>;
|
|
17
17
|
export declare const ContentType: import("@loadable/component").LoadableClassComponent<any>;
|
|
18
18
|
export declare const ContentTypeLayout: import("@loadable/component").LoadableClassComponent<any>;
|
|
19
19
|
export declare const ContentTypeSchema: import("@loadable/component").LoadableClassComponent<any>;
|
|
@@ -29,4 +29,4 @@ export declare const VersionOverview: import("@loadable/component").LoadableComp
|
|
|
29
29
|
}>;
|
|
30
30
|
export declare const UpgradeControlPanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
31
31
|
export declare const ModerateComments: import("@loadable/component").LoadableClassComponent<any>;
|
|
32
|
-
export declare const DatabaseInformation: import("@loadable/component").
|
|
32
|
+
export declare const DatabaseInformation: import("@loadable/component").LoadableComponent<unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default ChangePassword;
|
|
2
|
+
declare function ChangePassword(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const ChangePassword: any;
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { ChangePassword as component };
|
|
5
|
+
export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
6
|
+
export let argTypes: {};
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default PersonalInformation;
|
|
2
|
+
declare function PersonalInformation(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace PersonalInformation {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let closeMenu: any;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const PersonalPreferences: any;
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { PersonalPreferences as component };
|
|
5
|
+
export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
6
|
+
export let argTypes: {};
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export default More;
|
|
2
|
+
declare function More(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace More {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let loadComponent: any;
|
|
6
|
+
let closeMenu: any;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,87 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DatetimeWidget component class
|
|
3
|
-
* @class DatetimeWidget
|
|
4
|
-
* @extends Component
|
|
5
|
-
*
|
|
6
|
-
* To use it, in schema properties, declare a field like:
|
|
7
|
-
*
|
|
8
|
-
* ```jsx
|
|
9
|
-
* {
|
|
10
|
-
* title: "Publish date",
|
|
11
|
-
* type: 'datetime',
|
|
12
|
-
* }
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export class DatetimeWidgetComponent extends React.Component<any, any, any> {
|
|
16
|
-
/**
|
|
17
|
-
* Constructor
|
|
18
|
-
* @method constructor
|
|
19
|
-
* @param {Object} props Component properties
|
|
20
|
-
* @constructs DatetimeWidget
|
|
21
|
-
*/
|
|
22
|
-
constructor(props: any);
|
|
23
|
-
moment: any;
|
|
24
|
-
state: {
|
|
25
|
-
focused: boolean;
|
|
26
|
-
isDefault: boolean;
|
|
27
|
-
};
|
|
28
|
-
getInternalValue(): any;
|
|
29
|
-
getDateOnly(): any;
|
|
30
|
-
/**
|
|
31
|
-
* Update date storage
|
|
32
|
-
* @method onDateChange
|
|
33
|
-
* @param {Object} date updated momentjs Object for date
|
|
34
|
-
* @returns {undefined}
|
|
35
|
-
*/
|
|
36
|
-
onDateChange: (date: any) => undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Update date storage
|
|
39
|
-
* @method onTimeChange
|
|
40
|
-
* @param {Object} time updated momentjs Object for time
|
|
41
|
-
* @returns {undefined}
|
|
42
|
-
*/
|
|
43
|
-
onTimeChange: (time: any) => undefined;
|
|
44
|
-
onResetDates: () => void;
|
|
45
|
-
/**
|
|
46
|
-
* Handle SingleDatePicker focus
|
|
47
|
-
* @method onFocusChange
|
|
48
|
-
* @param {boolean} focused component focus state.
|
|
49
|
-
* @returns {undefined}
|
|
50
|
-
*/
|
|
51
|
-
onFocusChange: ({ focused }: boolean) => undefined;
|
|
52
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
}
|
|
54
|
-
export namespace DatetimeWidgetComponent {
|
|
55
|
-
namespace propTypes {
|
|
56
|
-
let id: any;
|
|
57
|
-
let title: any;
|
|
58
|
-
let description: any;
|
|
59
|
-
let required: any;
|
|
60
|
-
let error: any;
|
|
61
|
-
let dateOnly: any;
|
|
62
|
-
let noPastDates: any;
|
|
63
|
-
let value: any;
|
|
64
|
-
let onChange: any;
|
|
65
|
-
let wrapped: any;
|
|
66
|
-
let resettable: any;
|
|
67
|
-
}
|
|
68
|
-
namespace defaultProps {
|
|
69
|
-
let description_1: any;
|
|
70
|
-
export { description_1 as description };
|
|
71
|
-
let required_1: boolean;
|
|
72
|
-
export { required_1 as required };
|
|
73
|
-
let error_1: any[];
|
|
74
|
-
export { error_1 as error };
|
|
75
|
-
let dateOnly_1: boolean;
|
|
76
|
-
export { dateOnly_1 as dateOnly };
|
|
77
|
-
let noPastDates_1: boolean;
|
|
78
|
-
export { noPastDates_1 as noPastDates };
|
|
79
|
-
let value_1: any;
|
|
80
|
-
export { value_1 as value };
|
|
81
|
-
let resettable_1: boolean;
|
|
82
|
-
export { resettable_1 as resettable };
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
1
|
declare const _default: any;
|
|
86
2
|
export default _default;
|
|
87
|
-
import React from 'react';
|
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default ReferenceWidget;
|
|
2
|
+
declare function ReferenceWidget(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace ReferenceWidget {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
let id: any;
|
|
6
|
+
let title: any;
|
|
7
|
+
let description: any;
|
|
8
|
+
let required: any;
|
|
9
|
+
let multiple: any;
|
|
10
|
+
let error: any;
|
|
11
|
+
let value: any;
|
|
12
|
+
let onChange: any;
|
|
13
|
+
let wrapped: any;
|
|
14
|
+
}
|
|
15
|
+
namespace defaultProps {
|
|
16
|
+
let description_1: any;
|
|
17
|
+
export { description_1 as description };
|
|
18
|
+
let required_1: boolean;
|
|
19
|
+
export { required_1 as required };
|
|
20
|
+
let error_1: any[];
|
|
21
|
+
export { error_1 as error };
|
|
22
|
+
let value_1: any;
|
|
23
|
+
export { value_1 as value };
|
|
24
|
+
let multiple_1: boolean;
|
|
25
|
+
export { multiple_1 as multiple };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -99,7 +99,7 @@ export declare const EmailWidget: import("@loadable/component").LoadableComponen
|
|
|
99
99
|
export declare const NumberWidget: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
|
|
100
100
|
export declare const ImageSizeWidget: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
|
|
101
101
|
export declare const RegistryImageWidget: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
|
|
102
|
-
export declare const ReferenceWidget: import("@loadable/component").
|
|
102
|
+
export declare const ReferenceWidget: import("@loadable/component").LoadableComponent<any>;
|
|
103
103
|
export declare const ObjectBrowserWidget: import("@loadable/component").LoadableComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>>;
|
|
104
104
|
export declare const ObjectWidget: import("@loadable/component").LoadableComponent<{
|
|
105
105
|
[x: string]: any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default Register;
|
|
2
|
+
declare function Register(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const Default: any;
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export let title: string;
|
|
4
|
+
export { RegisterComponent as component };
|
|
5
|
+
export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
6
|
+
export let argTypes: {};
|
|
7
|
+
}
|
|
8
|
+
export default _default;
|
|
9
|
+
import RegisterComponent from './Register';
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
export default Tags;
|
|
2
2
|
/**
|
|
3
|
-
* Tags component
|
|
3
|
+
* Tags component.
|
|
4
4
|
* @function Tags
|
|
5
|
-
* @param {
|
|
6
|
-
* @
|
|
5
|
+
* @param {Object} props Component properties.
|
|
6
|
+
* @param {Object} props.content Content object that may contain subjects.
|
|
7
|
+
* @param {Array} [props.content.subjects] Optional array of tags (subjects).
|
|
8
|
+
* @returns {JSX.Element|null} Markup of the component or null if no tags are available.
|
|
7
9
|
*/
|
|
8
|
-
declare function Tags({
|
|
10
|
+
declare function Tags({ content }: {
|
|
11
|
+
content: {
|
|
12
|
+
subjects?: any[];
|
|
13
|
+
};
|
|
14
|
+
}): JSX.Element | null;
|
|
9
15
|
declare namespace Tags {
|
|
10
16
|
namespace propTypes {
|
|
11
|
-
let
|
|
17
|
+
let content: any;
|
|
12
18
|
}
|
|
13
19
|
namespace defaultProps {
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
export namespace content_1 {
|
|
21
|
+
let subjects: any[];
|
|
22
|
+
}
|
|
23
|
+
export { content_1 as content };
|
|
16
24
|
}
|
|
17
25
|
}
|
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
export default AlbumView;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @param {Object} content Content object.
|
|
6
|
-
* @returns {string} Markup of the component.
|
|
7
|
-
*/
|
|
8
|
-
declare class AlbumView extends React.Component<any, any, any> {
|
|
9
|
-
constructor(props: any);
|
|
10
|
-
state: {
|
|
11
|
-
openIndex: any;
|
|
12
|
-
};
|
|
13
|
-
closeModal(): void;
|
|
14
|
-
nextImage(): void;
|
|
15
|
-
prevImage(): void;
|
|
16
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
}
|
|
2
|
+
declare function AlbumView({ content }: {
|
|
3
|
+
content: any;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
5
|
declare namespace AlbumView {
|
|
19
6
|
namespace propTypes {
|
|
20
7
|
let content: any;
|
|
21
8
|
}
|
|
22
9
|
}
|
|
23
|
-
import React from 'react';
|
|
@@ -22,4 +22,12 @@ export const controlPanelsIcons: {
|
|
|
22
22
|
relations: string;
|
|
23
23
|
};
|
|
24
24
|
export function filterControlPanels(controlpanels?: any[]): any[];
|
|
25
|
+
export namespace unwantedControlPanelsFields {
|
|
26
|
+
let language: string[];
|
|
27
|
+
let search: string[];
|
|
28
|
+
let site: string[];
|
|
29
|
+
let editing: string[];
|
|
30
|
+
let imaging: string[];
|
|
31
|
+
let navigation: string[];
|
|
32
|
+
}
|
|
25
33
|
export function filterControlPanelsSchema(controlpanel: any): any;
|
|
@@ -22,7 +22,7 @@ declare namespace inline {
|
|
|
22
22
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* Note that children can be
|
|
25
|
+
* Note that children can be mapped to render a list or do other cool stuff
|
|
26
26
|
*/
|
|
27
27
|
declare const blocks: {
|
|
28
28
|
unstyled: (children: any, { keys }: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export namespace widgetMapping {
|
|
2
2
|
export namespace id {
|
|
3
|
-
export { SchemaWidget as schema };
|
|
4
3
|
export { TokenWidget as subjects };
|
|
5
4
|
export { QuerystringWidget as query };
|
|
6
5
|
export { RecurrenceWidget as recurrence };
|
|
@@ -34,13 +33,14 @@ export namespace widgetMapping {
|
|
|
34
33
|
export { SelectAutoComplete as autocomplete };
|
|
35
34
|
export { ColorPickerWidget as color_picker };
|
|
36
35
|
export { SelectWidget as select };
|
|
36
|
+
export { SchemaWidget as schema };
|
|
37
37
|
}
|
|
38
38
|
export let vocabulary: {
|
|
39
39
|
'plone.app.vocabularies.Catalog': import("@loadable/component").LoadableComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>>;
|
|
40
40
|
};
|
|
41
41
|
export let factory: {
|
|
42
42
|
'Relation List': import("@loadable/component").LoadableComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>>;
|
|
43
|
-
'Relation Choice': import("@loadable/component").
|
|
43
|
+
'Relation Choice': import("@loadable/component").LoadableComponent<any>;
|
|
44
44
|
};
|
|
45
45
|
export { SelectWidget as choices };
|
|
46
46
|
export namespace type {
|
|
@@ -98,7 +98,6 @@ export namespace widgetMapping {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
export const defaultWidget: import("@loadable/component").LoadableComponent<any>;
|
|
101
|
-
import { SchemaWidget } from '@plone/volto/components/manage/Widgets';
|
|
102
101
|
import { TokenWidget } from '@plone/volto/components/manage/Widgets';
|
|
103
102
|
import { QuerystringWidget } from '@plone/volto/components/manage/Widgets';
|
|
104
103
|
import { RecurrenceWidget } from '@plone/volto/components/manage/Widgets';
|
|
@@ -126,6 +125,7 @@ import { SelectMetadataWidget } from '@plone/volto/components/manage/Widgets';
|
|
|
126
125
|
import { SelectAutoComplete } from '@plone/volto/components/manage/Widgets';
|
|
127
126
|
import { ColorPickerWidget } from '@plone/volto/components/manage/Widgets';
|
|
128
127
|
import { SelectWidget } from '@plone/volto/components/manage/Widgets';
|
|
128
|
+
import { SchemaWidget } from '@plone/volto/components/manage/Widgets';
|
|
129
129
|
import { CheckboxWidget } from '@plone/volto/components/manage/Widgets';
|
|
130
130
|
import { NumberWidget } from '@plone/volto/components/manage/Widgets';
|
|
131
131
|
import { getWidgetView } from '@plone/volto/helpers/Widget/widget';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default slots;
|
|
2
|
+
declare namespace slots {
|
|
3
|
+
let belowContent: {
|
|
4
|
+
name: string;
|
|
5
|
+
component: {
|
|
6
|
+
({ content }: {
|
|
7
|
+
content: {
|
|
8
|
+
subjects?: any[];
|
|
9
|
+
};
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
|
+
content: any;
|
|
13
|
+
};
|
|
14
|
+
defaultProps: {
|
|
15
|
+
content: {
|
|
16
|
+
subjects: any[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
}
|
|
@@ -158,6 +158,12 @@ export function findBlocks(blocks: any, types: any, result?: any[]): any[];
|
|
|
158
158
|
*/
|
|
159
159
|
export function moveBlockEnhanced(formData: any, { source, destination }: number): any;
|
|
160
160
|
export function getBlocks(properties: any): any[];
|
|
161
|
+
export function applyBlockInitialValue({ id, value, blocksConfig, formData, }: {
|
|
162
|
+
id: any;
|
|
163
|
+
value: any;
|
|
164
|
+
blocksConfig: any;
|
|
165
|
+
formData: any;
|
|
166
|
+
}): any;
|
|
161
167
|
export function styleToClassName(key: any, value: any, prefix?: string): any;
|
|
162
168
|
export function buildStyleClassNamesFromData(obj?: {}, prefix?: string): any;
|
|
163
169
|
export function buildStyleClassNamesExtenders({ block, content, data, classNames, }: any): any[];
|
|
@@ -33,7 +33,7 @@ export function resolveExtension(name: any, extensions: any, data: any): any;
|
|
|
33
33
|
* - extensions is the blocksConfig extensions object for that block
|
|
34
34
|
* - resolvedExtensions is an object with
|
|
35
35
|
* `{ variation, <someExtensionA>, <someExtensionB> }` and each of these
|
|
36
|
-
* fields hold the
|
|
36
|
+
* fields hold the corresponding definition object from the block's
|
|
37
37
|
* configuration.
|
|
38
38
|
*/
|
|
39
39
|
export function resolveBlockExtensions(data: any, blocksConfig: any): {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export function validationMessage(isValid: boolean, criterion: string, valueToCompare: string | number, intlFunc: Function): any;
|
|
1
2
|
export function tryParseJSON(requestItem: string): any;
|
|
2
3
|
export default FormValidation;
|
|
3
4
|
export function validateFileUploadSize(file: File, intlFunc: Function): boolean;
|
|
5
|
+
export function extractInvariantErrors(erros: any[]): any[];
|
|
4
6
|
declare class FormValidation {
|
|
5
7
|
/**
|
|
6
8
|
* The first Fieldset (Tab) that has any errors
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type MinMaxValidator = {
|
|
2
|
+
value: string | number;
|
|
3
|
+
fieldSpec: string | number;
|
|
4
|
+
criterion: string;
|
|
5
|
+
formatMessage: Function;
|
|
6
|
+
};
|
|
7
|
+
type Validator = {
|
|
8
|
+
value: string;
|
|
9
|
+
field: Record<string, any>;
|
|
10
|
+
formData: any;
|
|
11
|
+
formatMessage: Function;
|
|
12
|
+
};
|
|
13
|
+
export declare const isMaxPropertyValid: ({ value, fieldSpec, criterion, formatMessage, }: MinMaxValidator) => any;
|
|
14
|
+
export declare const isMinPropertyValid: ({ value, fieldSpec, criterion, formatMessage, }: MinMaxValidator) => any;
|
|
15
|
+
export declare const minLengthValidator: ({ value, field, formatMessage, }: Validator) => any;
|
|
16
|
+
export declare const maxLengthValidator: ({ value, field, formatMessage, }: Validator) => any;
|
|
17
|
+
export declare const urlValidator: ({ value, formatMessage }: Validator) => any;
|
|
18
|
+
export declare const emailValidator: ({ value, formatMessage }: Validator) => string;
|
|
19
|
+
export declare const isNumberValidator: ({ value, formatMessage }: Validator) => any;
|
|
20
|
+
export declare const minimumValidator: ({ value, field, formatMessage }: Validator) => any;
|
|
21
|
+
export declare const maximumValidator: ({ value, field, formatMessage }: Validator) => any;
|
|
22
|
+
export declare const isIntegerValidator: ({ value, formatMessage }: Validator) => any;
|
|
23
|
+
export declare const hasUniqueItemsValidator: ({ value, field, formatMessage, }: Validator) => any;
|
|
24
|
+
export declare const startEventDateRangeValidator: ({ value, field, formData, formatMessage, }: Validator) => any;
|
|
25
|
+
export declare const endEventDateRangeValidator: ({ value, field, formData, formatMessage, }: Validator) => any;
|
|
26
|
+
export declare const patternValidator: ({ value, field, formatMessage, }: Validator) => any;
|
|
27
|
+
export declare const maxItemsValidator: ({ value, field, formatMessage, }: Validator) => any;
|
|
28
|
+
export declare const minItemsValidator: ({ value, field, formatMessage, }: Validator) => any;
|
|
29
|
+
export {};
|
|
@@ -549,4 +549,40 @@ export namespace messages {
|
|
|
549
549
|
let defaultMessage_91: string;
|
|
550
550
|
export { defaultMessage_91 as defaultMessage };
|
|
551
551
|
}
|
|
552
|
+
namespace blocksFieldsErrorTitle {
|
|
553
|
+
let id_92: string;
|
|
554
|
+
export { id_92 as id };
|
|
555
|
+
let defaultMessage_92: string;
|
|
556
|
+
export { defaultMessage_92 as defaultMessage };
|
|
557
|
+
}
|
|
558
|
+
namespace startEventRange {
|
|
559
|
+
let id_93: string;
|
|
560
|
+
export { id_93 as id };
|
|
561
|
+
let defaultMessage_93: string;
|
|
562
|
+
export { defaultMessage_93 as defaultMessage };
|
|
563
|
+
}
|
|
564
|
+
namespace endEventRange {
|
|
565
|
+
let id_94: string;
|
|
566
|
+
export { id_94 as id };
|
|
567
|
+
let defaultMessage_94: string;
|
|
568
|
+
export { defaultMessage_94 as defaultMessage };
|
|
569
|
+
}
|
|
570
|
+
namespace pattern {
|
|
571
|
+
let id_95: string;
|
|
572
|
+
export { id_95 as id };
|
|
573
|
+
let defaultMessage_95: string;
|
|
574
|
+
export { defaultMessage_95 as defaultMessage };
|
|
575
|
+
}
|
|
576
|
+
namespace maxItems {
|
|
577
|
+
let id_96: string;
|
|
578
|
+
export { id_96 as id };
|
|
579
|
+
let defaultMessage_96: string;
|
|
580
|
+
export { defaultMessage_96 as defaultMessage };
|
|
581
|
+
}
|
|
582
|
+
namespace minItems {
|
|
583
|
+
let id_97: string;
|
|
584
|
+
export { id_97 as id };
|
|
585
|
+
let defaultMessage_97: string;
|
|
586
|
+
export { defaultMessage_97 as defaultMessage };
|
|
587
|
+
}
|
|
552
588
|
}
|