@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
|
@@ -2,12 +2,15 @@ export default CommentEditModal;
|
|
|
2
2
|
declare function CommentEditModal(props: any): JSX.Element;
|
|
3
3
|
declare namespace CommentEditModal {
|
|
4
4
|
namespace propTypes {
|
|
5
|
-
let id:
|
|
6
|
-
let text:
|
|
7
|
-
let request:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
let id: PropTypes.Validator<string>;
|
|
6
|
+
let text: PropTypes.Validator<string>;
|
|
7
|
+
let request: PropTypes.Requireable<PropTypes.InferProps<{
|
|
8
|
+
loading: PropTypes.Requireable<boolean>;
|
|
9
|
+
loaded: PropTypes.Requireable<boolean>;
|
|
10
|
+
}>>;
|
|
11
|
+
let open: PropTypes.Validator<boolean>;
|
|
12
|
+
let onOk: PropTypes.Validator<(...args: any[]) => any>;
|
|
13
|
+
let onCancel: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
14
|
}
|
|
12
15
|
namespace defaultProps {
|
|
13
16
|
let id_1: string;
|
|
@@ -16,3 +19,4 @@ declare namespace CommentEditModal {
|
|
|
16
19
|
export { text_1 as text };
|
|
17
20
|
}
|
|
18
21
|
}
|
|
22
|
+
import PropTypes from 'prop-types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any
|
|
1
|
+
declare const _default: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ErrorBoundary;
|
|
2
|
-
declare class ErrorBoundary {
|
|
2
|
+
declare class ErrorBoundary extends React.Component<any, any, any> {
|
|
3
3
|
static getDerivedStateFromError(error: any): {
|
|
4
4
|
hasError: boolean;
|
|
5
5
|
};
|
|
@@ -10,3 +10,4 @@ declare class ErrorBoundary {
|
|
|
10
10
|
componentDidCatch(error: any, errorInfo: any): void;
|
|
11
11
|
render(): any;
|
|
12
12
|
}
|
|
13
|
+
import React from 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<any>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<any>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -4,9 +4,11 @@ declare function Header({ pathname }: {
|
|
|
4
4
|
}): JSX.Element;
|
|
5
5
|
declare namespace Header {
|
|
6
6
|
namespace propTypes {
|
|
7
|
-
let token:
|
|
8
|
-
let pathname:
|
|
9
|
-
let content:
|
|
7
|
+
let token: PropTypes.Requireable<string>;
|
|
8
|
+
let pathname: PropTypes.Validator<string>;
|
|
9
|
+
let content: PropTypes.Requireable<{
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}>;
|
|
10
12
|
}
|
|
11
13
|
namespace defaultProps {
|
|
12
14
|
let token_1: any;
|
|
@@ -15,3 +17,4 @@ declare namespace Header {
|
|
|
15
17
|
export { content_1 as content };
|
|
16
18
|
}
|
|
17
19
|
}
|
|
20
|
+
import PropTypes from 'prop-types';
|
|
@@ -33,12 +33,16 @@ declare function Icon({ name, size, color, className, title, onClick, style, id,
|
|
|
33
33
|
}): string;
|
|
34
34
|
declare namespace Icon {
|
|
35
35
|
namespace propTypes {
|
|
36
|
-
let name:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
let
|
|
36
|
+
let name: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
37
|
+
xmlns: PropTypes.Requireable<string>;
|
|
38
|
+
viewBox: PropTypes.Requireable<string>;
|
|
39
|
+
content: PropTypes.Requireable<string>;
|
|
40
|
+
}>>>;
|
|
41
|
+
let size: PropTypes.Requireable<string>;
|
|
42
|
+
let color: PropTypes.Requireable<string>;
|
|
43
|
+
let className: PropTypes.Requireable<string>;
|
|
44
|
+
let title: PropTypes.Requireable<string>;
|
|
45
|
+
let onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
42
46
|
}
|
|
43
47
|
namespace defaultProps {
|
|
44
48
|
export { defaultSize as size };
|
|
@@ -52,4 +56,5 @@ declare namespace Icon {
|
|
|
52
56
|
export { onClick_1 as onClick };
|
|
53
57
|
}
|
|
54
58
|
}
|
|
59
|
+
import PropTypes from 'prop-types';
|
|
55
60
|
declare const defaultSize: "36px";
|
|
@@ -11,13 +11,19 @@
|
|
|
11
11
|
declare function Image({ item, imageField, src, alt, loading, responsive, className, ...imageProps }: object): JSX.Element;
|
|
12
12
|
declare namespace Image {
|
|
13
13
|
namespace propTypes {
|
|
14
|
-
let item:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
let
|
|
14
|
+
let item: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
+
'@id': PropTypes.Requireable<string>;
|
|
16
|
+
image_field: PropTypes.Requireable<string>;
|
|
17
|
+
image_scales: PropTypes.Requireable<object>;
|
|
18
|
+
image: PropTypes.Requireable<object>;
|
|
19
|
+
}>>;
|
|
20
|
+
let imageField: PropTypes.Requireable<string>;
|
|
21
|
+
let src: PropTypes.Requireable<string>;
|
|
22
|
+
let alt: PropTypes.Validator<string>;
|
|
23
|
+
let loading: PropTypes.Requireable<string>;
|
|
24
|
+
let responsive: PropTypes.Requireable<boolean>;
|
|
25
|
+
let className: PropTypes.Requireable<string>;
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
28
|
export default Image;
|
|
29
|
+
import PropTypes from 'prop-types';
|
|
@@ -2,10 +2,11 @@ export default LanguageSelector;
|
|
|
2
2
|
declare function LanguageSelector(props: any): JSX.Element;
|
|
3
3
|
declare namespace LanguageSelector {
|
|
4
4
|
namespace propTypes {
|
|
5
|
-
let onClickAction: any
|
|
5
|
+
let onClickAction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
6
|
}
|
|
7
7
|
namespace defaultProps {
|
|
8
8
|
export function onClickAction_1(): void;
|
|
9
9
|
export { onClickAction_1 as onClickAction };
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
@@ -6,8 +6,16 @@
|
|
|
6
6
|
export function ContextNavigationComponent(props: any): "" | JSX.Element;
|
|
7
7
|
export namespace ContextNavigationComponent {
|
|
8
8
|
namespace propTypes {
|
|
9
|
-
let navigation:
|
|
9
|
+
let navigation: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
+
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
11
|
+
title: PropTypes.Requireable<string>;
|
|
12
|
+
url: PropTypes.Requireable<string>;
|
|
13
|
+
}>[]>;
|
|
14
|
+
has_custom_name: PropTypes.Requireable<boolean>;
|
|
15
|
+
title: PropTypes.Requireable<string>;
|
|
16
|
+
}>>;
|
|
10
17
|
}
|
|
11
18
|
}
|
|
12
19
|
declare const _default: any;
|
|
13
20
|
export default _default;
|
|
21
|
+
import PropTypes from 'prop-types';
|
|
@@ -4,11 +4,24 @@ export function withContentNavigation(WrappedComponent: any): {
|
|
|
4
4
|
/**
|
|
5
5
|
* Location, from router
|
|
6
6
|
*/
|
|
7
|
-
location:
|
|
7
|
+
location: PropTypes.Requireable<PropTypes.InferProps<{
|
|
8
|
+
pathname: PropTypes.Requireable<string>;
|
|
9
|
+
}>>;
|
|
8
10
|
/**
|
|
9
11
|
* Parameters passed to the @contextnavigation endpoint
|
|
10
12
|
*/
|
|
11
|
-
params:
|
|
13
|
+
params: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
+
name: PropTypes.Requireable<string>;
|
|
15
|
+
root_path: PropTypes.Requireable<string>;
|
|
16
|
+
includeTop: PropTypes.Requireable<boolean>;
|
|
17
|
+
currentFolderOnly: PropTypes.Requireable<boolean>;
|
|
18
|
+
topLevel: PropTypes.Requireable<number>;
|
|
19
|
+
bottomLevel: PropTypes.Requireable<number>;
|
|
20
|
+
no_icons: PropTypes.Requireable<boolean>;
|
|
21
|
+
thumb_scale: PropTypes.Requireable<string>;
|
|
22
|
+
no_thumbs: PropTypes.Requireable<boolean>;
|
|
23
|
+
}>>;
|
|
12
24
|
};
|
|
13
25
|
displayName: string;
|
|
14
26
|
};
|
|
27
|
+
import PropTypes from 'prop-types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -11,7 +11,14 @@ declare function PreviewImage({ item, alt, image_field, showDefault, ...rest }:
|
|
|
11
11
|
}): JSX.Element;
|
|
12
12
|
declare namespace PreviewImage {
|
|
13
13
|
namespace propTypes {
|
|
14
|
-
let item:
|
|
15
|
-
|
|
14
|
+
let item: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
+
'@id': PropTypes.Validator<string>;
|
|
16
|
+
title: PropTypes.Validator<string>;
|
|
17
|
+
image_field: PropTypes.Requireable<string>;
|
|
18
|
+
image_scales: PropTypes.Requireable<object>;
|
|
19
|
+
showDefault: PropTypes.Requireable<boolean>;
|
|
20
|
+
}>>;
|
|
21
|
+
let alt: PropTypes.Validator<string>;
|
|
16
22
|
}
|
|
17
23
|
}
|
|
24
|
+
import PropTypes from 'prop-types';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
export const __test__: any;
|
|
2
|
-
declare const _default:
|
|
3
|
-
WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
4
|
-
};
|
|
2
|
+
declare const _default: any;
|
|
5
3
|
export default _default;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export function getSitemapPath(pathname: string, lang: any): any;
|
|
2
2
|
export const __test__: any;
|
|
3
|
-
declare const _default:
|
|
4
|
-
WrappedComponent: import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
5
|
-
};
|
|
3
|
+
declare const _default: any;
|
|
6
4
|
export default _default;
|
|
@@ -10,8 +10,9 @@ export default SocialSharing;
|
|
|
10
10
|
declare function SocialSharing({ url, title, description }: string): string;
|
|
11
11
|
declare namespace SocialSharing {
|
|
12
12
|
namespace propTypes {
|
|
13
|
-
let url:
|
|
14
|
-
let title:
|
|
15
|
-
let description:
|
|
13
|
+
let url: PropTypes.Validator<string>;
|
|
14
|
+
let title: PropTypes.Validator<string>;
|
|
15
|
+
let description: PropTypes.Validator<string>;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
import PropTypes from 'prop-types';
|
|
@@ -8,10 +8,11 @@ export default Tags;
|
|
|
8
8
|
declare function Tags({ tags }: any[]): string;
|
|
9
9
|
declare namespace Tags {
|
|
10
10
|
namespace propTypes {
|
|
11
|
-
let tags:
|
|
11
|
+
let tags: PropTypes.Requireable<string[]>;
|
|
12
12
|
}
|
|
13
13
|
namespace defaultProps {
|
|
14
14
|
let tags_1: any;
|
|
15
15
|
export { tags_1 as tags };
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TEST COMPONENT: React TSX component
|
|
3
|
+
* Ensure successful implementation of TSX and validate the functionality with Jest tests
|
|
4
|
+
* Dependencies: jest (version 26.6.3), ts-jest (version ^26.4.2)
|
|
5
|
+
*/
|
|
6
|
+
type TestProps = {
|
|
7
|
+
text: string;
|
|
8
|
+
};
|
|
9
|
+
declare const TsTest: ({ text }: TestProps) => JSX.Element;
|
|
10
|
+
export default TsTest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -5,7 +5,7 @@ export default AlbumView;
|
|
|
5
5
|
* @param {Object} content Content object.
|
|
6
6
|
* @returns {string} Markup of the component.
|
|
7
7
|
*/
|
|
8
|
-
declare class AlbumView {
|
|
8
|
+
declare class AlbumView extends React.Component<any, any, any> {
|
|
9
9
|
constructor(props: any);
|
|
10
10
|
state: {
|
|
11
11
|
openIndex: any;
|
|
@@ -17,6 +17,46 @@ declare class AlbumView {
|
|
|
17
17
|
}
|
|
18
18
|
declare namespace AlbumView {
|
|
19
19
|
namespace propTypes {
|
|
20
|
-
let content:
|
|
20
|
+
let content: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
21
|
+
/**
|
|
22
|
+
* Title of the object
|
|
23
|
+
*/
|
|
24
|
+
title: PropTypes.Requireable<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Description of the object
|
|
27
|
+
*/
|
|
28
|
+
description: PropTypes.Requireable<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Child items of the object
|
|
31
|
+
*/
|
|
32
|
+
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
33
|
+
/**
|
|
34
|
+
* Title of the item
|
|
35
|
+
*/
|
|
36
|
+
title: PropTypes.Requireable<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Description of the item
|
|
39
|
+
*/
|
|
40
|
+
description: PropTypes.Requireable<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Url of the item
|
|
43
|
+
*/
|
|
44
|
+
url: PropTypes.Requireable<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Image of the item
|
|
47
|
+
*/
|
|
48
|
+
image: PropTypes.Requireable<object>;
|
|
49
|
+
/**
|
|
50
|
+
* Image caption of the item
|
|
51
|
+
*/
|
|
52
|
+
image_caption: PropTypes.Requireable<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Type of the item
|
|
55
|
+
*/
|
|
56
|
+
'@type': PropTypes.Requireable<string>;
|
|
57
|
+
}>[]>;
|
|
58
|
+
}>>>;
|
|
21
59
|
}
|
|
22
60
|
}
|
|
61
|
+
import React from 'react';
|
|
62
|
+
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<any>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<any>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|
|
@@ -6,11 +6,11 @@ export function datesForDisplay(start: any, end: any, moment: any): {
|
|
|
6
6
|
endDate: any;
|
|
7
7
|
endTime: any;
|
|
8
8
|
};
|
|
9
|
-
export const When: any
|
|
9
|
+
export const When: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
|
|
10
10
|
export function Recurrence_({ recurrence, start, moment: momentlib, rrule, }: {
|
|
11
11
|
recurrence: any;
|
|
12
12
|
start: any;
|
|
13
13
|
moment: any;
|
|
14
14
|
rrule: any;
|
|
15
15
|
}): JSX.Element;
|
|
16
|
-
export const Recurrence: any
|
|
16
|
+
export const Recurrence: ((props: any) => JSX.Element) & import("hoist-non-react-statics").NonReactStatics<any, {}>;
|
|
@@ -8,6 +8,25 @@ export default EventView;
|
|
|
8
8
|
declare function EventView(props: any): string;
|
|
9
9
|
declare namespace EventView {
|
|
10
10
|
namespace propTypes {
|
|
11
|
-
let content:
|
|
11
|
+
let content: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
12
|
+
title: PropTypes.Requireable<string>;
|
|
13
|
+
description: PropTypes.Requireable<string>;
|
|
14
|
+
text: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
+
data: PropTypes.Requireable<string>;
|
|
16
|
+
}>>;
|
|
17
|
+
attendees: PropTypes.Validator<string[]>;
|
|
18
|
+
contact_email: PropTypes.Requireable<string>;
|
|
19
|
+
contact_name: PropTypes.Requireable<string>;
|
|
20
|
+
contact_phone: PropTypes.Requireable<string>;
|
|
21
|
+
end: PropTypes.Validator<string>;
|
|
22
|
+
event_url: PropTypes.Requireable<string>;
|
|
23
|
+
location: PropTypes.Requireable<string>;
|
|
24
|
+
open_end: PropTypes.Requireable<boolean>;
|
|
25
|
+
recurrence: PropTypes.Requireable<any>;
|
|
26
|
+
start: PropTypes.Validator<string>;
|
|
27
|
+
subjects: PropTypes.Validator<string[]>;
|
|
28
|
+
whole_day: PropTypes.Requireable<boolean>;
|
|
29
|
+
}>>>;
|
|
12
30
|
}
|
|
13
31
|
}
|
|
32
|
+
import PropTypes from 'prop-types';
|
|
@@ -10,6 +10,14 @@ declare function FileView({ content }: {
|
|
|
10
10
|
}): string;
|
|
11
11
|
declare namespace FileView {
|
|
12
12
|
namespace propTypes {
|
|
13
|
-
let content:
|
|
13
|
+
let content: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
14
|
+
title: PropTypes.Requireable<string>;
|
|
15
|
+
description: PropTypes.Requireable<string>;
|
|
16
|
+
file: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
+
download: PropTypes.Requireable<string>;
|
|
18
|
+
filename: PropTypes.Requireable<string>;
|
|
19
|
+
}>>;
|
|
20
|
+
}>>>;
|
|
14
21
|
}
|
|
15
22
|
}
|
|
23
|
+
import PropTypes from 'prop-types';
|
|
@@ -10,6 +10,17 @@ declare function ImageView({ content }: {
|
|
|
10
10
|
}): string;
|
|
11
11
|
declare namespace ImageView {
|
|
12
12
|
namespace propTypes {
|
|
13
|
-
let content:
|
|
13
|
+
let content: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
14
|
+
title: PropTypes.Requireable<string>;
|
|
15
|
+
description: PropTypes.Requireable<string>;
|
|
16
|
+
image: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
+
scales: PropTypes.Requireable<PropTypes.InferProps<{
|
|
18
|
+
preview: PropTypes.Requireable<PropTypes.InferProps<{
|
|
19
|
+
download: PropTypes.Requireable<string>;
|
|
20
|
+
}>>;
|
|
21
|
+
}>>;
|
|
22
|
+
}>>;
|
|
23
|
+
}>>>;
|
|
14
24
|
}
|
|
15
25
|
}
|
|
26
|
+
import PropTypes from 'prop-types';
|
|
@@ -5,8 +5,12 @@ declare function LinkView({ token, content }: {
|
|
|
5
5
|
}): JSX.Element;
|
|
6
6
|
declare namespace LinkView {
|
|
7
7
|
namespace propTypes {
|
|
8
|
-
let content:
|
|
9
|
-
|
|
8
|
+
let content: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
|
+
title: PropTypes.Requireable<string>;
|
|
10
|
+
description: PropTypes.Requireable<string>;
|
|
11
|
+
remoteUrl: PropTypes.Requireable<string>;
|
|
12
|
+
}>>;
|
|
13
|
+
let token: PropTypes.Requireable<string>;
|
|
10
14
|
}
|
|
11
15
|
namespace defaultProps {
|
|
12
16
|
let content_1: any;
|
|
@@ -15,3 +19,4 @@ declare namespace LinkView {
|
|
|
15
19
|
export { token_1 as token };
|
|
16
20
|
}
|
|
17
21
|
}
|
|
22
|
+
import PropTypes from 'prop-types';
|
|
@@ -10,6 +10,18 @@ declare function ListingView({ content }: {
|
|
|
10
10
|
}): string;
|
|
11
11
|
declare namespace ListingView {
|
|
12
12
|
namespace propTypes {
|
|
13
|
-
let content:
|
|
13
|
+
let content: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
14
|
+
title: PropTypes.Requireable<string>;
|
|
15
|
+
description: PropTypes.Requireable<string>;
|
|
16
|
+
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
+
'@id': PropTypes.Requireable<string>;
|
|
18
|
+
'@type': PropTypes.Requireable<string>;
|
|
19
|
+
description: PropTypes.Requireable<string>;
|
|
20
|
+
review_state: PropTypes.Requireable<string>;
|
|
21
|
+
title: PropTypes.Requireable<string>;
|
|
22
|
+
url: PropTypes.Requireable<string>;
|
|
23
|
+
}>[]>;
|
|
24
|
+
}>>>;
|
|
14
25
|
}
|
|
15
26
|
}
|
|
27
|
+
import PropTypes from 'prop-types';
|
|
@@ -10,6 +10,13 @@ declare function NewsItemView({ content }: {
|
|
|
10
10
|
}): string;
|
|
11
11
|
declare namespace NewsItemView {
|
|
12
12
|
namespace propTypes {
|
|
13
|
-
let content:
|
|
13
|
+
let content: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
14
|
+
title: PropTypes.Requireable<string>;
|
|
15
|
+
description: PropTypes.Requireable<string>;
|
|
16
|
+
text: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
+
data: PropTypes.Requireable<string>;
|
|
18
|
+
}>>;
|
|
19
|
+
}>>>;
|
|
14
20
|
}
|
|
15
21
|
}
|
|
22
|
+
import PropTypes from 'prop-types';
|
|
@@ -8,6 +8,45 @@ export default SummaryView;
|
|
|
8
8
|
declare function SummaryView({ content }: any): string;
|
|
9
9
|
declare namespace SummaryView {
|
|
10
10
|
namespace propTypes {
|
|
11
|
-
let content:
|
|
11
|
+
let content: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
12
|
+
/**
|
|
13
|
+
* Title of the object
|
|
14
|
+
*/
|
|
15
|
+
title: PropTypes.Requireable<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Description of the object
|
|
18
|
+
*/
|
|
19
|
+
description: PropTypes.Requireable<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Child items of the object
|
|
22
|
+
*/
|
|
23
|
+
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
|
+
/**
|
|
25
|
+
* Title of the item
|
|
26
|
+
*/
|
|
27
|
+
title: PropTypes.Requireable<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Description of the item
|
|
30
|
+
*/
|
|
31
|
+
description: PropTypes.Requireable<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Url of the item
|
|
34
|
+
*/
|
|
35
|
+
url: PropTypes.Requireable<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Image of the item
|
|
38
|
+
*/
|
|
39
|
+
image: PropTypes.Requireable<object>;
|
|
40
|
+
/**
|
|
41
|
+
* Image caption of the item
|
|
42
|
+
*/
|
|
43
|
+
image_caption: PropTypes.Requireable<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Type of the item
|
|
46
|
+
*/
|
|
47
|
+
'@type': PropTypes.Requireable<string>;
|
|
48
|
+
}>[]>;
|
|
49
|
+
}>>>;
|
|
12
50
|
}
|
|
13
51
|
}
|
|
52
|
+
import PropTypes from 'prop-types';
|
|
@@ -8,6 +8,41 @@ export default TabularView;
|
|
|
8
8
|
declare function TabularView({ content }: any): string;
|
|
9
9
|
declare namespace TabularView {
|
|
10
10
|
namespace propTypes {
|
|
11
|
-
let content:
|
|
11
|
+
let content: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
12
|
+
/**
|
|
13
|
+
* Title of the object
|
|
14
|
+
*/
|
|
15
|
+
title: PropTypes.Requireable<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Description of the object
|
|
18
|
+
*/
|
|
19
|
+
description: PropTypes.Requireable<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Child items of the object
|
|
22
|
+
*/
|
|
23
|
+
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
|
+
/**
|
|
25
|
+
* Title of the item
|
|
26
|
+
*/
|
|
27
|
+
title: PropTypes.Requireable<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Description of the item
|
|
30
|
+
*/
|
|
31
|
+
description: PropTypes.Requireable<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Url of the item
|
|
34
|
+
*/
|
|
35
|
+
url: PropTypes.Requireable<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Review state of the item
|
|
38
|
+
*/
|
|
39
|
+
review_state: PropTypes.Requireable<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Type of the item
|
|
42
|
+
*/
|
|
43
|
+
'@type': PropTypes.Requireable<string>;
|
|
44
|
+
}>[]>;
|
|
45
|
+
}>>>;
|
|
12
46
|
}
|
|
13
47
|
}
|
|
48
|
+
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
WrappedComponent:
|
|
1
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>> & {
|
|
2
|
+
WrappedComponent: React.ComponentType<import("react-intl").WrappedComponentProps<string>>;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
import React from 'react';
|