@plitzi/sdk-elements 0.38.24 → 0.39.1
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 +170 -1
- package/dist/Element/RootElement.d.ts +1 -1
- package/dist/Element/RootElement.mjs +62 -61
- package/dist/Element/RowAnchor.d.ts +15 -0
- package/dist/Element/RowAnchor.mjs +8 -0
- package/dist/Element/helpers/elementConstants.mjs +12 -0
- package/dist/Element/hocs/withElement.d.ts +1 -1
- package/dist/Element/hocs/withElement.mjs +96 -88
- package/dist/Element/hooks/useEditableContent.d.ts +11 -0
- package/dist/Element/hooks/useEditableContent.mjs +11 -10
- package/dist/Element/hooks/useElement.mjs +1 -1
- package/dist/Element/hooks/useElementDataSource.mjs +11 -10
- package/dist/Element/hooks/useFocusInteractions.d.ts +12 -0
- package/dist/Element/hooks/useFocusInteractions.mjs +9 -0
- package/dist/Element/hooks/useInternalClassName.mjs +22 -21
- package/dist/Element/hooks/useRootElementInteractions.mjs +48 -42
- package/dist/Element/hooks/useScrollInteractions.d.ts +1 -1
- package/dist/Element/hooks/useScrollInteractions.mjs +61 -30
- package/dist/dataSource/PluginSource.d.ts +22 -0
- package/dist/dataSource/PluginSource.mjs +27 -0
- package/dist/dataSource/index.d.ts +2 -0
- package/dist/dataSource/index.mjs +5 -4
- package/dist/elements/advanced/BlockHtml/BlockHtml.d.ts +1 -1
- package/dist/elements/advanced/BlockHtml/index.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/BlockJsx.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/index.d.ts +1 -1
- package/dist/elements/advanced/Custom/Custom.d.ts +1 -1
- package/dist/elements/advanced/Custom/index.d.ts +1 -1
- package/dist/elements/advanced/NodeHtml/NodeHtml.d.ts +1 -1
- package/dist/elements/advanced/NodeHtml/declaration.d.ts +3 -3
- package/dist/elements/advanced/NodeHtml/index.d.ts +4 -4
- package/dist/elements/advanced/Reference/Reference.d.ts +2 -2
- package/dist/elements/advanced/Reference/Reference.mjs +1 -1
- package/dist/elements/advanced/Reference/index.d.ts +1 -1
- package/dist/elements/basic/Button/Button.d.ts +7 -2
- package/dist/elements/basic/Button/Button.mjs +27 -25
- package/dist/elements/basic/Button/Settings.mjs +1 -1
- package/dist/elements/basic/Button/declaration.d.ts +8 -1
- package/dist/elements/basic/Button/declaration.mjs +3 -0
- package/dist/elements/basic/Button/index.d.ts +9 -2
- package/dist/elements/basic/Dropdown/Dropdown.d.ts +9 -2
- package/dist/elements/basic/Dropdown/Dropdown.mjs +93 -74
- package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.d.ts +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +1 -1
- package/dist/elements/basic/Dropdown/declaration.d.ts +31 -0
- package/dist/elements/basic/Dropdown/declaration.mjs +38 -6
- package/dist/elements/basic/Dropdown/index.d.ts +33 -2
- package/dist/elements/basic/Dropdown/useDropdown.d.ts +2 -0
- package/dist/elements/basic/Heading/Heading.d.ts +1 -1
- package/dist/elements/basic/Heading/Heading.mjs +3 -2
- package/dist/elements/basic/Heading/declaration.d.ts +2 -0
- package/dist/elements/basic/Heading/declaration.mjs +2 -0
- package/dist/elements/basic/Heading/index.d.ts +3 -1
- package/dist/elements/basic/Link/Link.d.ts +1 -1
- package/dist/elements/basic/Link/Link.mjs +46 -45
- package/dist/elements/basic/Link/declaration.d.ts +1 -0
- package/dist/elements/basic/Link/declaration.mjs +5 -0
- package/dist/elements/basic/Link/index.d.ts +2 -1
- package/dist/elements/basic/Markdown/Markdown.d.ts +1 -1
- package/dist/elements/basic/Markdown/declaration.d.ts +2 -0
- package/dist/elements/basic/Markdown/declaration.mjs +2 -0
- package/dist/elements/basic/Markdown/index.d.ts +3 -1
- package/dist/elements/basic/Paragraph/Paragraph.d.ts +1 -1
- package/dist/elements/basic/Paragraph/Paragraph.mjs +3 -2
- package/dist/elements/basic/Paragraph/Settings.mjs +1 -1
- package/dist/elements/basic/Paragraph/declaration.d.ts +2 -0
- package/dist/elements/basic/Paragraph/declaration.mjs +2 -0
- package/dist/elements/basic/Paragraph/index.d.ts +3 -1
- package/dist/elements/basic/RichText/RichText.d.ts +1 -1
- package/dist/elements/basic/RichText/declaration.d.ts +1 -0
- package/dist/elements/basic/RichText/declaration.mjs +1 -0
- package/dist/elements/basic/RichText/index.d.ts +2 -1
- package/dist/elements/basic/Text/Settings.mjs +1 -1
- package/dist/elements/basic/Text/Text.d.ts +1 -1
- package/dist/elements/basic/Text/Text.mjs +3 -2
- package/dist/elements/basic/Text/declaration.d.ts +2 -0
- package/dist/elements/basic/Text/declaration.mjs +2 -0
- package/dist/elements/basic/Text/index.d.ts +3 -1
- package/dist/elements/basic/ThemeToggle/ThemeToggle.d.ts +2 -2
- package/dist/elements/basic/ThemeToggle/declaration.d.ts +1 -0
- package/dist/elements/basic/ThemeToggle/declaration.mjs +5 -0
- package/dist/elements/basic/ThemeToggle/index.d.ts +2 -1
- package/dist/elements/declarations/index.d.ts +399 -13
- package/dist/elements/declarations/index.mjs +48 -44
- package/dist/elements/form/Form/Form.d.ts +10 -3
- package/dist/elements/form/Form/Form.mjs +102 -79
- package/dist/elements/form/Form/declaration.d.ts +21 -3
- package/dist/elements/form/Form/declaration.mjs +28 -11
- package/dist/elements/form/Form/index.d.ts +17 -2
- package/dist/elements/form/FormControl/FormControl.d.ts +14 -10
- package/dist/elements/form/FormControl/FormControl.mjs +114 -104
- package/dist/elements/form/FormControl/Settings.d.ts +9 -2
- package/dist/elements/form/FormControl/Settings.mjs +132 -159
- package/dist/elements/form/FormControl/declaration.d.ts +52 -1
- package/dist/elements/form/FormControl/declaration.mjs +27 -20
- package/dist/elements/form/FormControl/helpers/useBlurValidation.d.ts +12 -0
- package/dist/elements/form/FormControl/helpers/useBlurValidation.mjs +20 -0
- package/dist/elements/form/FormControl/helpers/validateField.d.ts +8 -0
- package/dist/elements/form/FormControl/helpers/validateField.mjs +8 -2
- package/dist/elements/form/FormControl/hocs/withFieldValue.d.ts +6 -1
- package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +52 -41
- package/dist/elements/form/FormControl/index.d.ts +53 -2
- package/dist/elements/form/FormControl/inputs/Checkbox.mjs +2 -2
- package/dist/elements/form/FormControl/inputs/FileInput.d.ts +21 -0
- package/dist/elements/form/FormControl/inputs/FileInput.mjs +29 -0
- package/dist/elements/form/FormControl/inputs/Input.d.ts +5 -1
- package/dist/elements/form/FormControl/inputs/Input.mjs +42 -38
- package/dist/elements/form/FormControl/inputs/Select.d.ts +5 -1
- package/dist/elements/form/FormControl/inputs/Select.mjs +33 -28
- package/dist/elements/form/FormControl/inputs/Textarea.mjs +27 -26
- package/dist/elements/form/FormControl/inputs/useFocusWhenShown.d.ts +1 -1
- package/dist/elements/form/FormControl/subTypes.d.ts +17 -0
- package/dist/elements/form/FormControl/subTypes.mjs +58 -0
- package/dist/elements/index.d.ts +5 -1
- package/dist/elements/index.mjs +34 -30
- package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +30 -30
- package/dist/elements/internal/LayoutContainer/index.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/mask.d.ts +13 -0
- package/dist/elements/internal/LayoutContainer/mask.mjs +16 -1
- package/dist/elements/internal/Loading/Loading.d.ts +1 -1
- package/dist/elements/internal/Loading/index.d.ts +1 -1
- package/dist/elements/internal/NotFound/NotFound.d.ts +1 -1
- package/dist/elements/internal/NotFound/index.d.ts +1 -1
- package/dist/elements/internal/Page/Page.d.ts +17 -3
- package/dist/elements/internal/Page/Page.mjs +32 -25
- package/dist/elements/internal/Page/PageHead.d.ts +11 -4
- package/dist/elements/internal/Page/PageHead.mjs +41 -19
- package/dist/elements/internal/Page/PageWithheld.d.ts +3 -2
- package/dist/elements/internal/Page/PageWithheld.mjs +41 -18
- package/dist/elements/internal/Page/Settings.d.ts +5 -1
- package/dist/elements/internal/Page/Settings.mjs +160 -121
- package/dist/elements/internal/Page/SharePreview.d.ts +13 -0
- package/dist/elements/internal/Page/SharePreview.mjs +53 -0
- package/dist/elements/internal/Page/declaration.d.ts +9 -1
- package/dist/elements/internal/Page/declaration.mjs +11 -4
- package/dist/elements/internal/Page/index.d.ts +9 -2
- package/dist/elements/media/Chart/Chart.d.ts +33 -0
- package/dist/elements/media/Chart/Chart.mjs +195 -0
- package/dist/elements/media/Chart/Settings.d.ts +6 -0
- package/dist/elements/media/Chart/Settings.mjs +92 -0
- package/dist/elements/media/Chart/chartGeometry.d.ts +37 -0
- package/dist/elements/media/Chart/chartGeometry.mjs +47 -0
- package/dist/elements/media/Chart/declaration.d.ts +144 -0
- package/dist/elements/media/Chart/declaration.mjs +107 -0
- package/dist/elements/media/Chart/index.d.ts +145 -0
- package/dist/elements/media/Chart/index.mjs +6 -0
- package/dist/elements/media/Embed/Embed.d.ts +1 -1
- package/dist/elements/media/Embed/Embed.mjs +25 -21
- package/dist/elements/media/Embed/declaration.d.ts +1 -0
- package/dist/elements/media/Embed/declaration.mjs +1 -0
- package/dist/elements/media/Embed/index.d.ts +2 -1
- package/dist/elements/media/FontAwesome/FontAwesome.d.ts +1 -1
- package/dist/elements/media/FontAwesome/index.d.ts +1 -1
- package/dist/elements/media/Image/Image.d.ts +1 -1
- package/dist/elements/media/Image/Image.mjs +35 -34
- package/dist/elements/media/Image/declaration.d.ts +2 -1
- package/dist/elements/media/Image/declaration.mjs +1 -0
- package/dist/elements/media/Image/index.d.ts +3 -2
- package/dist/elements/media/Svg/Svg.d.ts +1 -1
- package/dist/elements/media/Svg/declaration.d.ts +1 -0
- package/dist/elements/media/Svg/declaration.mjs +1 -0
- package/dist/elements/media/Svg/index.d.ts +2 -1
- package/dist/elements/media/Video/Video.d.ts +1 -1
- package/dist/elements/media/Video/declaration.d.ts +1 -0
- package/dist/elements/media/Video/declaration.mjs +1 -0
- package/dist/elements/media/Video/index.d.ts +2 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +1 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +215 -185
- package/dist/elements/provider/ApiContainer/declaration.d.ts +9 -0
- package/dist/elements/provider/ApiContainer/declaration.mjs +10 -1
- package/dist/elements/provider/ApiContainer/hooks/useInputRefresh.d.ts +4 -4
- package/dist/elements/provider/ApiContainer/hooks/useProviderPagination.d.ts +2 -1
- package/dist/elements/provider/ApiContainer/index.d.ts +10 -1
- package/dist/elements/provider/Channel/Channel.d.ts +1 -1
- package/dist/elements/provider/Channel/declaration.d.ts +9 -0
- package/dist/elements/provider/Channel/declaration.mjs +11 -2
- package/dist/elements/provider/Channel/index.d.ts +10 -1
- package/dist/elements/settings.mjs +44 -40
- package/dist/elements/structure/Carousel/Carousel.d.ts +1 -1
- package/dist/elements/structure/Carousel/Carousel.mjs +147 -130
- package/dist/elements/structure/Carousel/CarouselContext.d.ts +3 -3
- package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.d.ts +1 -1
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.d.ts +6 -2
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.mjs +32 -20
- package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +1 -1
- package/dist/elements/structure/Carousel/carouselIndex.d.ts +17 -0
- package/dist/elements/structure/Carousel/carouselIndex.mjs +17 -5
- package/dist/elements/structure/Carousel/declaration.d.ts +49 -2
- package/dist/elements/structure/Carousel/declaration.mjs +26 -4
- package/dist/elements/structure/Carousel/index.d.ts +51 -4
- package/dist/elements/structure/Container/Container.d.ts +5 -3
- package/dist/elements/structure/Container/Container.mjs +6 -5
- package/dist/elements/structure/Container/Settings.d.ts +4 -2
- package/dist/elements/structure/Container/Settings.mjs +19 -5
- package/dist/elements/structure/Container/declaration.d.ts +3 -2
- package/dist/elements/structure/Container/declaration.mjs +3 -1
- package/dist/elements/structure/Container/index.d.ts +4 -3
- package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +1 -1
- package/dist/elements/structure/DialogContainer/declaration.d.ts +1 -0
- package/dist/elements/structure/DialogContainer/declaration.mjs +5 -0
- package/dist/elements/structure/DialogContainer/index.d.ts +2 -1
- package/dist/elements/structure/FocusGroup/FocusGroup.d.ts +24 -0
- package/dist/elements/structure/FocusGroup/FocusGroup.mjs +27 -0
- package/dist/elements/structure/FocusGroup/Settings.d.ts +8 -0
- package/dist/elements/structure/FocusGroup/Settings.mjs +39 -0
- package/dist/elements/structure/FocusGroup/arrowFocus.d.ts +12 -0
- package/dist/elements/structure/FocusGroup/arrowFocus.mjs +30 -0
- package/dist/elements/structure/FocusGroup/declaration.d.ts +36 -0
- package/dist/elements/structure/FocusGroup/declaration.mjs +28 -0
- package/dist/elements/structure/FocusGroup/index.d.ts +37 -0
- package/dist/elements/structure/FocusGroup/index.mjs +6 -0
- package/dist/elements/structure/List/List.d.ts +1 -1
- package/dist/elements/structure/List/ListItem/ListItem.d.ts +1 -1
- package/dist/elements/structure/List/ListItem/index.d.ts +1 -1
- package/dist/elements/structure/List/declaration.d.ts +5 -0
- package/dist/elements/structure/List/declaration.mjs +5 -0
- package/dist/elements/structure/List/index.d.ts +7 -2
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +1 -0
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.d.ts +3 -1
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +33 -25
- package/dist/elements/structure/ModalContainer/ModalContainer.d.ts +1 -1
- package/dist/elements/structure/ModalContainer/declaration.d.ts +2 -0
- package/dist/elements/structure/ModalContainer/declaration.mjs +2 -0
- package/dist/elements/structure/ModalContainer/index.d.ts +3 -1
- package/dist/elements/structure/Pagination/Pagination.d.ts +1 -1
- package/dist/elements/structure/Pagination/declaration.d.ts +1 -0
- package/dist/elements/structure/Pagination/declaration.mjs +5 -0
- package/dist/elements/structure/Pagination/index.d.ts +2 -1
- package/dist/elements/structure/TabContainer/TabContainer.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +6 -0
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +6 -0
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +7 -1
- package/dist/elements/structure/TabContainer/index.d.ts +10 -4
- package/dist/index.d.ts +297 -52
- package/dist/index.mjs +41 -37
- package/package.json +8 -8
- package/dist/elements/provider/ApiContainer/helpers/isEmptyAnswer.d.ts +0 -16
- package/dist/elements/provider/ApiContainer/helpers/isEmptyAnswer.mjs +0 -4
package/dist/index.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ import * as elements from './elements';
|
|
|
4
4
|
export * from './elements';
|
|
5
5
|
export declare const defaultElements: {
|
|
6
6
|
dropdown: {
|
|
7
|
-
(props: import('.').WithElementProps<import('./elements/basic/Dropdown/Dropdown').DropdownProps>): import('react').JSX.Element;
|
|
7
|
+
(props: import('.').WithElementProps<import('./elements/basic/Dropdown/Dropdown').DropdownProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
8
8
|
displayName: string;
|
|
9
9
|
} & {
|
|
10
10
|
plugins: {
|
|
11
11
|
dropdownPopup: {
|
|
12
|
-
(props: import('.').WithElementProps<import('./elements/basic/Dropdown/DropdownPopup/DropdownPopup').DropdownPopupProps>): import('react').JSX.Element;
|
|
12
|
+
(props: import('.').WithElementProps<import('./elements/basic/Dropdown/DropdownPopup/DropdownPopup').DropdownPopupProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
13
13
|
displayName: string;
|
|
14
14
|
} & {
|
|
15
15
|
readonly type: "dropdownPopup";
|
|
@@ -66,6 +66,35 @@ export declare const defaultElements: {
|
|
|
66
66
|
type: "dropdown";
|
|
67
67
|
attributeValues: {
|
|
68
68
|
readonly popupPlacement: readonly string[];
|
|
69
|
+
readonly popupWidth: readonly string[];
|
|
70
|
+
};
|
|
71
|
+
callbacks: {
|
|
72
|
+
readonly openDropdown: {
|
|
73
|
+
readonly action: "openDropdown";
|
|
74
|
+
readonly title: "Open Dropdown";
|
|
75
|
+
readonly type: "callback";
|
|
76
|
+
readonly params: {};
|
|
77
|
+
readonly preview: {};
|
|
78
|
+
};
|
|
79
|
+
readonly closeDropdown: {
|
|
80
|
+
readonly action: "closeDropdown";
|
|
81
|
+
readonly title: "Close Dropdown";
|
|
82
|
+
readonly type: "callback";
|
|
83
|
+
readonly params: {};
|
|
84
|
+
readonly preview: {};
|
|
85
|
+
};
|
|
86
|
+
readonly toggleDropdown: {
|
|
87
|
+
readonly action: "toggleDropdown";
|
|
88
|
+
readonly title: "Toggle Dropdown";
|
|
89
|
+
readonly type: "callback";
|
|
90
|
+
readonly params: {};
|
|
91
|
+
readonly preview: {};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
marks: {
|
|
95
|
+
readonly 'aria-expanded': "on its trigger while the popup is open — what a class’s `expanded` state lights";
|
|
96
|
+
readonly '.popup-container--no-visible': "on its dropdownPopup while closed";
|
|
97
|
+
readonly 'the popup': "drawn at the space’s root, `position: fixed` where the dropdown places it — a class on the popup sets its look, never its position (top, left, position, inset, transform); `popupWidth: \"trigger\"` makes it as wide as the trigger";
|
|
69
98
|
};
|
|
70
99
|
content: {
|
|
71
100
|
readonly attributes: {
|
|
@@ -76,6 +105,7 @@ export declare const defaultElements: {
|
|
|
76
105
|
readonly closeOnClickPopup: true;
|
|
77
106
|
readonly containerTopOffset: 5;
|
|
78
107
|
readonly containerLeftOffset: 5;
|
|
108
|
+
readonly popupWidth: "content";
|
|
79
109
|
readonly disabled: false;
|
|
80
110
|
};
|
|
81
111
|
readonly definition: {
|
|
@@ -122,10 +152,11 @@ export declare const defaultElements: {
|
|
|
122
152
|
closeOnClickBackground?: boolean | undefined;
|
|
123
153
|
containerTopOffset?: number | undefined;
|
|
124
154
|
containerLeftOffset?: number | undefined;
|
|
155
|
+
popupWidth?: "content" | "trigger" | undefined;
|
|
125
156
|
}>;
|
|
126
157
|
};
|
|
127
158
|
notFound: {
|
|
128
|
-
(props: import('.').WithElementProps<import('./elements/internal/NotFound/NotFound').NotFoundProps>): import('react').JSX.Element;
|
|
159
|
+
(props: import('.').WithElementProps<import('./elements/internal/NotFound/NotFound').NotFoundProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
129
160
|
displayName: string;
|
|
130
161
|
} & {
|
|
131
162
|
readonly type: "notFound";
|
|
@@ -158,7 +189,7 @@ export declare const defaultElements: {
|
|
|
158
189
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
159
190
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
160
191
|
loading: {
|
|
161
|
-
(props: import('.').WithElementProps<import('./elements/internal/Loading/Loading').LoadingProps>): import('react').JSX.Element;
|
|
192
|
+
(props: import('.').WithElementProps<import('./elements/internal/Loading/Loading').LoadingProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
162
193
|
displayName: string;
|
|
163
194
|
} & {
|
|
164
195
|
readonly type: "loading";
|
|
@@ -187,7 +218,7 @@ export declare const defaultElements: {
|
|
|
187
218
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
188
219
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
189
220
|
custom: {
|
|
190
|
-
(props: import('.').WithElementProps<import('./elements/advanced/Custom/Custom').CustomProps>): import('react').JSX.Element;
|
|
221
|
+
(props: import('.').WithElementProps<import('./elements/advanced/Custom/Custom').CustomProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
191
222
|
displayName: string;
|
|
192
223
|
} & {
|
|
193
224
|
readonly type: "custom";
|
|
@@ -224,7 +255,7 @@ export declare const defaultElements: {
|
|
|
224
255
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
225
256
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<import('./elements/declarations').CustomAttributes>;
|
|
226
257
|
reference: {
|
|
227
|
-
(props: import('.').WithElementProps<import('./elements/advanced/Reference/Reference').ReferenceProps>): import('react').JSX.Element;
|
|
258
|
+
(props: import('.').WithElementProps<import('./elements/advanced/Reference/Reference').ReferenceProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
228
259
|
displayName: string;
|
|
229
260
|
} & {
|
|
230
261
|
readonly type: "reference";
|
|
@@ -258,7 +289,7 @@ export declare const defaultElements: {
|
|
|
258
289
|
referenceType: "element" | "component";
|
|
259
290
|
}>>;
|
|
260
291
|
blockHtml: {
|
|
261
|
-
(props: import('.').WithElementProps<import('./elements/advanced/BlockHtml/BlockHtml').BlockHtmlProps>): import('react').JSX.Element;
|
|
292
|
+
(props: import('.').WithElementProps<import('./elements/advanced/BlockHtml/BlockHtml').BlockHtmlProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
262
293
|
displayName: string;
|
|
263
294
|
} & {
|
|
264
295
|
readonly type: "blockHtml";
|
|
@@ -288,7 +319,7 @@ export declare const defaultElements: {
|
|
|
288
319
|
content?: string | undefined;
|
|
289
320
|
}>>;
|
|
290
321
|
nodeHtml: {
|
|
291
|
-
(props: import('.').WithElementProps<import('./elements/advanced/NodeHtml/NodeHtml').NodeHtmlProps<"span">>): import('react').JSX.Element;
|
|
322
|
+
(props: import('.').WithElementProps<import('./elements/advanced/NodeHtml/NodeHtml').NodeHtmlProps<"span">>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
292
323
|
displayName: string;
|
|
293
324
|
} & {
|
|
294
325
|
readonly type: "nodeHtml";
|
|
@@ -332,9 +363,11 @@ export declare const defaultElements: {
|
|
|
332
363
|
content?: string | undefined | undefined;
|
|
333
364
|
style?: import('react').CSSProperties | undefined;
|
|
334
365
|
color?: string | undefined | undefined;
|
|
335
|
-
slot?: string | undefined | undefined;
|
|
336
366
|
title?: string | undefined | undefined;
|
|
367
|
+
property?: string | undefined | undefined;
|
|
368
|
+
slot?: string | undefined | undefined;
|
|
337
369
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
370
|
+
dir?: string | undefined | undefined;
|
|
338
371
|
hidden?: boolean | undefined | undefined;
|
|
339
372
|
onScroll?: import('react').UIEventHandler<"span"> | undefined;
|
|
340
373
|
onLoad?: import('react').ReactEventHandler<"span"> | undefined;
|
|
@@ -573,7 +606,6 @@ export declare const defaultElements: {
|
|
|
573
606
|
autoFocus?: boolean | undefined | undefined;
|
|
574
607
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
575
608
|
contextMenu?: string | undefined | undefined;
|
|
576
|
-
dir?: string | undefined | undefined;
|
|
577
609
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
578
610
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
579
611
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -583,7 +615,6 @@ export declare const defaultElements: {
|
|
|
583
615
|
datatype?: string | undefined | undefined;
|
|
584
616
|
inlist?: any;
|
|
585
617
|
prefix?: string | undefined | undefined;
|
|
586
|
-
property?: string | undefined | undefined;
|
|
587
618
|
rel?: string | undefined | undefined;
|
|
588
619
|
resource?: string | undefined | undefined;
|
|
589
620
|
rev?: string | undefined | undefined;
|
|
@@ -609,7 +640,7 @@ export declare const defaultElements: {
|
|
|
609
640
|
subType?: "span" | undefined;
|
|
610
641
|
}>>;
|
|
611
642
|
blockJsx: {
|
|
612
|
-
(props: import('.').WithElementProps<import('./elements/advanced/BlockJsx/BlockJsx').BlockJsxProps>): import('react').JSX.Element;
|
|
643
|
+
(props: import('.').WithElementProps<import('./elements/advanced/BlockJsx/BlockJsx').BlockJsxProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
613
644
|
displayName: string;
|
|
614
645
|
} & {
|
|
615
646
|
readonly type: "blockJsx";
|
|
@@ -640,13 +671,15 @@ export declare const defaultElements: {
|
|
|
640
671
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
641
672
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<import('./elements/declarations').BlockJsxAttributes>;
|
|
642
673
|
page: {
|
|
643
|
-
(props: import('.').WithElementProps<import('./elements/internal/Page/Page').PageProps>): import('react').JSX.Element;
|
|
674
|
+
(props: import('.').WithElementProps<import('./elements/internal/Page/Page').PageProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
644
675
|
displayName: string;
|
|
645
676
|
} & {
|
|
646
677
|
readonly type: "page";
|
|
647
|
-
readonly
|
|
678
|
+
readonly contentAttributes: readonly ["seoPageTitle", "seoPageDescription"];
|
|
679
|
+
readonly serverTemplates: readonly ["seoPageTitle", "seoPageDescription", "seoImage", "seoImageAlt", "notFound"];
|
|
648
680
|
readonly attributeValues: {
|
|
649
681
|
readonly documentScroll: readonly ["locked", "noBounce"];
|
|
682
|
+
readonly seoType: readonly ["website", "article", "profile", "book", "music.song", "music.album", "music.playlist", "music.radio_station", "video.movie", "video.episode", "video.tv_show", "video.other"];
|
|
650
683
|
};
|
|
651
684
|
readonly triggers: {
|
|
652
685
|
readonly onPageLoad: {
|
|
@@ -715,12 +748,17 @@ export declare const defaultElements: {
|
|
|
715
748
|
seoEnabled?: boolean | undefined;
|
|
716
749
|
seoPageTitle?: string | undefined;
|
|
717
750
|
seoPageDescription?: string | undefined;
|
|
751
|
+
seoRobots?: string | undefined;
|
|
752
|
+
seoStructuredData?: Record<string, unknown>[] | undefined;
|
|
753
|
+
seoImage?: string | undefined;
|
|
754
|
+
seoImageAlt?: string | undefined;
|
|
755
|
+
seoType?: import('@plitzi/sdk-shared/schema').OgType | undefined;
|
|
718
756
|
documentScroll?: (import('./elements/declarations').DocumentScroll | "") | undefined;
|
|
719
757
|
withheld?: import('@plitzi/sdk-shared/schema').PageWithheld | undefined;
|
|
720
758
|
access?: import('@plitzi/sdk-shared/schema').PageAccess | undefined;
|
|
721
759
|
}>>;
|
|
722
760
|
container: {
|
|
723
|
-
(props: import('.').WithElementProps<import('./elements/structure/Container/Container').ContainerProps>): import('react').JSX.Element;
|
|
761
|
+
(props: import('.').WithElementProps<import('./elements/structure/Container/Container').ContainerProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
724
762
|
displayName: string;
|
|
725
763
|
} & {
|
|
726
764
|
readonly type: "container";
|
|
@@ -753,14 +791,51 @@ export declare const defaultElements: {
|
|
|
753
791
|
} & {
|
|
754
792
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
755
793
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
756
|
-
label?: string | undefined;
|
|
757
794
|
title?: string | undefined;
|
|
758
|
-
|
|
795
|
+
label?: string | undefined;
|
|
796
|
+
open?: boolean | undefined;
|
|
797
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "details" | "summary" | undefined;
|
|
759
798
|
live?: "polite" | "assertive" | "" | undefined;
|
|
760
799
|
decorative?: boolean | undefined;
|
|
761
800
|
}>>;
|
|
801
|
+
focusGroup: {
|
|
802
|
+
(props: import('.').WithElementProps<import('./elements/structure/FocusGroup/FocusGroup').FocusGroupProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
803
|
+
displayName: string;
|
|
804
|
+
} & {
|
|
805
|
+
readonly type: "focusGroup";
|
|
806
|
+
readonly attributeValues: {
|
|
807
|
+
readonly subType: readonly string[];
|
|
808
|
+
};
|
|
809
|
+
readonly content: {
|
|
810
|
+
readonly attributes: {
|
|
811
|
+
readonly subType: "div";
|
|
812
|
+
};
|
|
813
|
+
readonly definition: {
|
|
814
|
+
readonly label: "Focus Group";
|
|
815
|
+
readonly description: string;
|
|
816
|
+
readonly items: [];
|
|
817
|
+
};
|
|
818
|
+
readonly market: {
|
|
819
|
+
readonly category: "structure";
|
|
820
|
+
readonly icon: "fa-solid fa-arrows-up-down";
|
|
821
|
+
};
|
|
822
|
+
readonly defaultStyle: {
|
|
823
|
+
readonly style: {
|
|
824
|
+
readonly base: {
|
|
825
|
+
readonly default: {};
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
readonly subTypes: {};
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
} & {
|
|
832
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
833
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
834
|
+
label?: string | undefined;
|
|
835
|
+
subType?: "div" | "nav" | "section" | undefined;
|
|
836
|
+
}>>;
|
|
762
837
|
layoutContainer: {
|
|
763
|
-
(props: import('.').WithElementProps<import('./elements/internal/LayoutContainer/LayoutContainer').LayoutContainerProps>): import('react').JSX.Element;
|
|
838
|
+
(props: import('.').WithElementProps<import('./elements/internal/LayoutContainer/LayoutContainer').LayoutContainerProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
764
839
|
displayName: string;
|
|
765
840
|
} & {
|
|
766
841
|
readonly type: "layoutContainer";
|
|
@@ -800,10 +875,11 @@ export declare const defaultElements: {
|
|
|
800
875
|
layoutContainer?: string | undefined;
|
|
801
876
|
}>>;
|
|
802
877
|
dialogContainer: {
|
|
803
|
-
(props: import('.').WithElementProps<import('./elements/structure/DialogContainer/DialogContainer').DialogContainerProps>): import('react').JSX.Element;
|
|
878
|
+
(props: import('.').WithElementProps<import('./elements/structure/DialogContainer/DialogContainer').DialogContainerProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
804
879
|
displayName: string;
|
|
805
880
|
} & {
|
|
806
881
|
readonly type: "dialogContainer";
|
|
882
|
+
readonly contentAttributes: readonly ["headerLabel", "acceptButtonLabel", "rejectButtonLabel"];
|
|
807
883
|
readonly sourceType: "dialogContainer";
|
|
808
884
|
readonly triggers: {
|
|
809
885
|
readonly onDialogAccept: {
|
|
@@ -1072,10 +1148,11 @@ export declare const defaultElements: {
|
|
|
1072
1148
|
rejectButtonLabel?: string | undefined;
|
|
1073
1149
|
}>>;
|
|
1074
1150
|
modalContainer: {
|
|
1075
|
-
(props: import('.').WithElementProps<import('./elements/structure/ModalContainer/ModalContainer').ModalContainerProps>): import('react').JSX.Element;
|
|
1151
|
+
(props: import('.').WithElementProps<import('./elements/structure/ModalContainer/ModalContainer').ModalContainerProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1076
1152
|
displayName: string;
|
|
1077
1153
|
} & {
|
|
1078
1154
|
readonly type: "modalContainer";
|
|
1155
|
+
readonly contentAttributes: readonly ["title"];
|
|
1079
1156
|
readonly sourceType: "modalContainer";
|
|
1080
1157
|
readonly triggers: {
|
|
1081
1158
|
readonly onModalOpen: {
|
|
@@ -1124,6 +1201,7 @@ export declare const defaultElements: {
|
|
|
1124
1201
|
};
|
|
1125
1202
|
};
|
|
1126
1203
|
readonly content: {
|
|
1204
|
+
readonly placeholders: readonly ["title"];
|
|
1127
1205
|
readonly attributes: {
|
|
1128
1206
|
readonly title: "Modal Header";
|
|
1129
1207
|
readonly autoHideAfterClick: true;
|
|
@@ -1260,12 +1338,12 @@ export declare const defaultElements: {
|
|
|
1260
1338
|
autoHideAfterClick?: boolean | undefined;
|
|
1261
1339
|
}>>;
|
|
1262
1340
|
tabContainer: {
|
|
1263
|
-
(props: import('.').WithElementProps<import('./elements/structure/TabContainer/TabContainer').TabContainerProps>): import('react').JSX.Element;
|
|
1341
|
+
(props: import('.').WithElementProps<import('./elements/structure/TabContainer/TabContainer').TabContainerProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1264
1342
|
displayName: string;
|
|
1265
1343
|
} & {
|
|
1266
1344
|
plugins: {
|
|
1267
1345
|
tabContainerHeader: {
|
|
1268
|
-
(props: import('.').WithElementProps<import('./elements/structure/TabContainer/TabContainerHeader/TabContainerHeader').TabContainerHeaderProps>): import('react').JSX.Element;
|
|
1346
|
+
(props: import('.').WithElementProps<import('./elements/structure/TabContainer/TabContainerHeader/TabContainerHeader').TabContainerHeaderProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1269
1347
|
displayName: string;
|
|
1270
1348
|
} & {
|
|
1271
1349
|
readonly type: "tabContainerHeader";
|
|
@@ -1302,7 +1380,7 @@ export declare const defaultElements: {
|
|
|
1302
1380
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
1303
1381
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
1304
1382
|
tabContainerBody: {
|
|
1305
|
-
(props: import('.').WithElementProps<import('./elements/structure/TabContainer/TabContainerBody/TabContainerBody').TabContainerBodyProps>): import('react').JSX.Element;
|
|
1383
|
+
(props: import('.').WithElementProps<import('./elements/structure/TabContainer/TabContainerBody/TabContainerBody').TabContainerBodyProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1306
1384
|
displayName: string;
|
|
1307
1385
|
} & {
|
|
1308
1386
|
readonly type: "tabContainerBody";
|
|
@@ -1339,10 +1417,16 @@ export declare const defaultElements: {
|
|
|
1339
1417
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
1340
1418
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
1341
1419
|
tabContainerItem: {
|
|
1342
|
-
(props: import('.').WithElementProps<import('./elements/structure/TabContainer/TabContainerItem/TabContainerItem').TabContainerItemProps>): import('react').JSX.Element;
|
|
1420
|
+
(props: import('.').WithElementProps<import('./elements/structure/TabContainer/TabContainerItem/TabContainerItem').TabContainerItemProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1343
1421
|
displayName: string;
|
|
1344
1422
|
} & {
|
|
1345
1423
|
readonly type: "tabContainerItem";
|
|
1424
|
+
readonly marks: {
|
|
1425
|
+
readonly 'role="tab"': "in the header, with `aria-controls` its panel; in the body it is `role=\"tabpanel\"`, `hidden` while not on show";
|
|
1426
|
+
readonly 'aria-selected': "on the open tab — what a class’s `current` state lights (`states: { current: { … } }`); `active` is the press, never the open tab";
|
|
1427
|
+
readonly '.active': "on the open tab too, the class the component adds";
|
|
1428
|
+
readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
|
|
1429
|
+
};
|
|
1346
1430
|
readonly content: {
|
|
1347
1431
|
readonly attributes: {};
|
|
1348
1432
|
readonly definition: {
|
|
@@ -1398,12 +1482,12 @@ export declare const defaultElements: {
|
|
|
1398
1482
|
__attributes: unknown;
|
|
1399
1483
|
};
|
|
1400
1484
|
carousel: {
|
|
1401
|
-
(props: import('.').WithElementProps<import('./elements/structure/Carousel/Carousel').CarouselProps>): import('react').JSX.Element;
|
|
1485
|
+
(props: import('.').WithElementProps<import('./elements/structure/Carousel/Carousel').CarouselProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1402
1486
|
displayName: string;
|
|
1403
1487
|
} & {
|
|
1404
1488
|
plugins: {
|
|
1405
1489
|
carouselTrack: {
|
|
1406
|
-
(props: import('.').WithElementProps<import('./elements/structure/Carousel/CarouselTrack/CarouselTrack').CarouselTrackProps>): import('react').JSX.Element;
|
|
1490
|
+
(props: import('.').WithElementProps<import('./elements/structure/Carousel/CarouselTrack/CarouselTrack').CarouselTrackProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1407
1491
|
displayName: string;
|
|
1408
1492
|
} & {
|
|
1409
1493
|
readonly type: "carouselTrack";
|
|
@@ -1438,7 +1522,18 @@ export declare const defaultElements: {
|
|
|
1438
1522
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
1439
1523
|
};
|
|
1440
1524
|
type: "carousel";
|
|
1525
|
+
contentAttributes: readonly ["label"];
|
|
1441
1526
|
sourceType: "carousel";
|
|
1527
|
+
publishes: {
|
|
1528
|
+
readonly items: "Every item it shows, one slide each";
|
|
1529
|
+
readonly count: "How many items it has";
|
|
1530
|
+
readonly index: "The slide it stands at, from 0 (a `scroll` row: the first in view)";
|
|
1531
|
+
readonly item: "The item of that slide";
|
|
1532
|
+
readonly playing: "Whether it moves on by itself now (autoplay, not paused)";
|
|
1533
|
+
readonly atStart: "At its first slide — a `scroll` row at the start of its box; one that loops never is";
|
|
1534
|
+
readonly atEnd: "At its last — a `scroll` row at the end of its box, however many it shows; one that loops never is";
|
|
1535
|
+
readonly shown: "How many slides it shows whole (1 but for a `scroll` row)";
|
|
1536
|
+
};
|
|
1442
1537
|
triggers: {
|
|
1443
1538
|
readonly onChange: {
|
|
1444
1539
|
readonly action: "onChange";
|
|
@@ -1456,14 +1551,50 @@ export declare const defaultElements: {
|
|
|
1456
1551
|
readonly action: "next";
|
|
1457
1552
|
readonly title: "Next Slide";
|
|
1458
1553
|
readonly type: "callback";
|
|
1459
|
-
readonly params: {
|
|
1554
|
+
readonly params: {
|
|
1555
|
+
readonly by: {
|
|
1556
|
+
canBind?: boolean;
|
|
1557
|
+
label?: string;
|
|
1558
|
+
when?: boolean | ((params: Record<string, unknown>) => boolean) | undefined;
|
|
1559
|
+
credentialProvider?: import('@plitzi/sdk-shared').SpaceCredentialProvider;
|
|
1560
|
+
required?: boolean;
|
|
1561
|
+
} & {
|
|
1562
|
+
type: "select";
|
|
1563
|
+
defaultValue?: string;
|
|
1564
|
+
options: {
|
|
1565
|
+
label: string;
|
|
1566
|
+
value: string;
|
|
1567
|
+
}[] | ((params: Record<string, unknown>) => {
|
|
1568
|
+
label: string;
|
|
1569
|
+
value: string;
|
|
1570
|
+
}[]);
|
|
1571
|
+
};
|
|
1572
|
+
};
|
|
1460
1573
|
readonly preview: {};
|
|
1461
1574
|
};
|
|
1462
1575
|
readonly previous: {
|
|
1463
1576
|
readonly action: "previous";
|
|
1464
1577
|
readonly title: "Previous Slide";
|
|
1465
1578
|
readonly type: "callback";
|
|
1466
|
-
readonly params: {
|
|
1579
|
+
readonly params: {
|
|
1580
|
+
readonly by: {
|
|
1581
|
+
canBind?: boolean;
|
|
1582
|
+
label?: string;
|
|
1583
|
+
when?: boolean | ((params: Record<string, unknown>) => boolean) | undefined;
|
|
1584
|
+
credentialProvider?: import('@plitzi/sdk-shared').SpaceCredentialProvider;
|
|
1585
|
+
required?: boolean;
|
|
1586
|
+
} & {
|
|
1587
|
+
type: "select";
|
|
1588
|
+
defaultValue?: string;
|
|
1589
|
+
options: {
|
|
1590
|
+
label: string;
|
|
1591
|
+
value: string;
|
|
1592
|
+
}[] | ((params: Record<string, unknown>) => {
|
|
1593
|
+
label: string;
|
|
1594
|
+
value: string;
|
|
1595
|
+
}[]);
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1467
1598
|
readonly preview: {};
|
|
1468
1599
|
};
|
|
1469
1600
|
readonly goTo: {
|
|
@@ -1539,14 +1670,16 @@ export declare const defaultElements: {
|
|
|
1539
1670
|
}>;
|
|
1540
1671
|
};
|
|
1541
1672
|
heading: {
|
|
1542
|
-
(props: import('.').WithElementProps<import('./elements/basic/Heading/Heading').HeadingProps>): import('react').JSX.Element;
|
|
1673
|
+
(props: import('.').WithElementProps<import('./elements/basic/Heading/Heading').HeadingProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1543
1674
|
displayName: string;
|
|
1544
1675
|
} & {
|
|
1545
1676
|
readonly type: "heading";
|
|
1677
|
+
readonly contentAttributes: readonly ["content"];
|
|
1546
1678
|
readonly attributeValues: {
|
|
1547
1679
|
readonly subType: readonly string[];
|
|
1548
1680
|
};
|
|
1549
1681
|
readonly content: {
|
|
1682
|
+
readonly placeholders: readonly ["content"];
|
|
1550
1683
|
readonly attributes: {
|
|
1551
1684
|
readonly content: "Heading";
|
|
1552
1685
|
readonly subType: "h1";
|
|
@@ -1670,10 +1803,11 @@ export declare const defaultElements: {
|
|
|
1670
1803
|
subType?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
1671
1804
|
}>>;
|
|
1672
1805
|
image: {
|
|
1673
|
-
(props: import('.').WithElementProps<import('./elements/media/Image/Image').ImageProps>): import('react').JSX.Element;
|
|
1806
|
+
(props: import('.').WithElementProps<import('./elements/media/Image/Image').ImageProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1674
1807
|
displayName: string;
|
|
1675
1808
|
} & {
|
|
1676
1809
|
readonly type: "image";
|
|
1810
|
+
readonly contentAttributes: readonly ["src", "alt"];
|
|
1677
1811
|
readonly attributeValues: {
|
|
1678
1812
|
readonly fetchPriority: readonly string[];
|
|
1679
1813
|
readonly loadMode: readonly string[];
|
|
@@ -1710,9 +1844,9 @@ export declare const defaultElements: {
|
|
|
1710
1844
|
} & {
|
|
1711
1845
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
1712
1846
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
1847
|
+
width?: number | undefined;
|
|
1713
1848
|
resize?: boolean | undefined;
|
|
1714
1849
|
height?: number | undefined;
|
|
1715
|
-
width?: number | undefined;
|
|
1716
1850
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
1717
1851
|
sizes?: string | undefined;
|
|
1718
1852
|
src?: string | undefined;
|
|
@@ -1721,10 +1855,11 @@ export declare const defaultElements: {
|
|
|
1721
1855
|
loadMode?: "auto" | "eager" | "lazy" | undefined;
|
|
1722
1856
|
}>>;
|
|
1723
1857
|
video: {
|
|
1724
|
-
(props: import('.').WithElementProps<import('./elements/media/Video/Video').VideoProps>): import('react').JSX.Element;
|
|
1858
|
+
(props: import('.').WithElementProps<import('./elements/media/Video/Video').VideoProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1725
1859
|
displayName: string;
|
|
1726
1860
|
} & {
|
|
1727
1861
|
readonly type: "video";
|
|
1862
|
+
readonly contentAttributes: readonly ["src"];
|
|
1728
1863
|
readonly content: {
|
|
1729
1864
|
readonly attributes: {
|
|
1730
1865
|
readonly src: "";
|
|
@@ -1763,10 +1898,11 @@ export declare const defaultElements: {
|
|
|
1763
1898
|
playsInline?: boolean | undefined;
|
|
1764
1899
|
}>>;
|
|
1765
1900
|
embed: {
|
|
1766
|
-
(props: import('.').WithElementProps<import('./elements/media/Embed/Embed').EmbedProps>): import('react').JSX.Element;
|
|
1901
|
+
(props: import('.').WithElementProps<import('./elements/media/Embed/Embed').EmbedProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1767
1902
|
displayName: string;
|
|
1768
1903
|
} & {
|
|
1769
1904
|
readonly type: "embed";
|
|
1905
|
+
readonly contentAttributes: readonly ["src", "title"];
|
|
1770
1906
|
readonly content: {
|
|
1771
1907
|
readonly attributes: {
|
|
1772
1908
|
readonly src: "";
|
|
@@ -1808,10 +1944,11 @@ export declare const defaultElements: {
|
|
|
1808
1944
|
sandbox?: string | undefined;
|
|
1809
1945
|
}>>;
|
|
1810
1946
|
svg: {
|
|
1811
|
-
(props: import('.').WithElementProps<import('./elements/media/Svg/Svg').SvgProps>): import('react').JSX.Element;
|
|
1947
|
+
(props: import('.').WithElementProps<import('./elements/media/Svg/Svg').SvgProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1812
1948
|
displayName: string;
|
|
1813
1949
|
} & {
|
|
1814
1950
|
readonly type: "svg";
|
|
1951
|
+
readonly contentAttributes: readonly ["label"];
|
|
1815
1952
|
readonly content: {
|
|
1816
1953
|
readonly attributes: {
|
|
1817
1954
|
readonly content: "";
|
|
@@ -1845,7 +1982,7 @@ export declare const defaultElements: {
|
|
|
1845
1982
|
label?: string | undefined;
|
|
1846
1983
|
}>>;
|
|
1847
1984
|
fontAwesome: {
|
|
1848
|
-
(props: import('.').WithElementProps<import('./elements/media/FontAwesome/FontAwesome').FontAwesomeProps>): import('react').JSX.Element;
|
|
1985
|
+
(props: import('.').WithElementProps<import('./elements/media/FontAwesome/FontAwesome').FontAwesomeProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1849
1986
|
displayName: string;
|
|
1850
1987
|
} & {
|
|
1851
1988
|
readonly type: "fontAwesome";
|
|
@@ -1883,16 +2020,18 @@ export declare const defaultElements: {
|
|
|
1883
2020
|
iconAnimation?: string | undefined;
|
|
1884
2021
|
}>>;
|
|
1885
2022
|
button: {
|
|
1886
|
-
(props: import('.').WithElementProps<import('./elements/basic/Button/Button').ButtonProps>): import('react').JSX.Element;
|
|
2023
|
+
(props: import('.').WithElementProps<import('./elements/basic/Button/Button').ButtonProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
1887
2024
|
displayName: string;
|
|
1888
2025
|
} & {
|
|
1889
2026
|
readonly type: "button";
|
|
2027
|
+
readonly contentAttributes: readonly ["content"];
|
|
1890
2028
|
readonly attributeValues: {
|
|
1891
2029
|
readonly subType: readonly string[];
|
|
1892
2030
|
readonly contentPlacement: readonly string[];
|
|
1893
2031
|
readonly iconPlacement: readonly string[];
|
|
1894
2032
|
};
|
|
1895
2033
|
readonly content: {
|
|
2034
|
+
readonly placeholders: readonly ["content"];
|
|
1896
2035
|
readonly attributes: {
|
|
1897
2036
|
readonly contentPlacement: "after";
|
|
1898
2037
|
readonly content: "Button";
|
|
@@ -1922,6 +2061,7 @@ export declare const defaultElements: {
|
|
|
1922
2061
|
'padding-right': string;
|
|
1923
2062
|
'padding-bottom': string;
|
|
1924
2063
|
cursor: string;
|
|
2064
|
+
'font-family': string;
|
|
1925
2065
|
'font-size': string;
|
|
1926
2066
|
'line-height': string;
|
|
1927
2067
|
'border-top-left-radius': string;
|
|
@@ -1943,6 +2083,7 @@ export declare const defaultElements: {
|
|
|
1943
2083
|
'padding-right': string;
|
|
1944
2084
|
'padding-bottom': string;
|
|
1945
2085
|
cursor: string;
|
|
2086
|
+
'font-family': string;
|
|
1946
2087
|
'font-size': string;
|
|
1947
2088
|
'line-height': string;
|
|
1948
2089
|
'border-top-left-radius': string;
|
|
@@ -1964,6 +2105,7 @@ export declare const defaultElements: {
|
|
|
1964
2105
|
'padding-right': string;
|
|
1965
2106
|
'padding-bottom': string;
|
|
1966
2107
|
cursor: string;
|
|
2108
|
+
'font-family': string;
|
|
1967
2109
|
'font-size': string;
|
|
1968
2110
|
'line-height': string;
|
|
1969
2111
|
'border-top-left-radius': string;
|
|
@@ -1985,6 +2127,7 @@ export declare const defaultElements: {
|
|
|
1985
2127
|
'padding-right': string;
|
|
1986
2128
|
'padding-bottom': string;
|
|
1987
2129
|
cursor: string;
|
|
2130
|
+
'font-family': string;
|
|
1988
2131
|
'font-size': string;
|
|
1989
2132
|
'line-height': string;
|
|
1990
2133
|
'border-top-left-radius': string;
|
|
@@ -2002,8 +2145,8 @@ export declare const defaultElements: {
|
|
|
2002
2145
|
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
2003
2146
|
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
2004
2147
|
content?: string | undefined;
|
|
2005
|
-
label?: string | undefined;
|
|
2006
2148
|
title?: string | undefined;
|
|
2149
|
+
label?: string | undefined;
|
|
2007
2150
|
disabled?: boolean | undefined;
|
|
2008
2151
|
controls?: string | undefined;
|
|
2009
2152
|
icon?: string | undefined;
|
|
@@ -2012,13 +2155,16 @@ export declare const defaultElements: {
|
|
|
2012
2155
|
contentPlacement?: "before" | "after" | undefined;
|
|
2013
2156
|
ariaExpanded?: boolean | undefined;
|
|
2014
2157
|
ariaPressed?: boolean | undefined;
|
|
2158
|
+
controlsInRow?: boolean | undefined;
|
|
2015
2159
|
}>>;
|
|
2016
2160
|
paragraph: {
|
|
2017
|
-
(props: import('.').WithElementProps<import('./elements/basic/Paragraph/Paragraph').ParagraphProps>): import('react').JSX.Element;
|
|
2161
|
+
(props: import('.').WithElementProps<import('./elements/basic/Paragraph/Paragraph').ParagraphProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2018
2162
|
displayName: string;
|
|
2019
2163
|
} & {
|
|
2020
2164
|
readonly type: "paragraph";
|
|
2165
|
+
readonly contentAttributes: readonly ["content"];
|
|
2021
2166
|
readonly content: {
|
|
2167
|
+
readonly placeholders: readonly ["content"];
|
|
2022
2168
|
readonly attributes: {
|
|
2023
2169
|
readonly content: "Paragraph";
|
|
2024
2170
|
};
|
|
@@ -2047,11 +2193,13 @@ export declare const defaultElements: {
|
|
|
2047
2193
|
content?: string | number | undefined;
|
|
2048
2194
|
}>>;
|
|
2049
2195
|
text: {
|
|
2050
|
-
(props: import('.').WithElementProps<import('./elements/basic/Text/Text').TextProps>): import('react').JSX.Element;
|
|
2196
|
+
(props: import('.').WithElementProps<import('./elements/basic/Text/Text').TextProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2051
2197
|
displayName: string;
|
|
2052
2198
|
} & {
|
|
2053
2199
|
readonly type: "text";
|
|
2200
|
+
readonly contentAttributes: readonly ["content"];
|
|
2054
2201
|
readonly content: {
|
|
2202
|
+
readonly placeholders: readonly ["content"];
|
|
2055
2203
|
readonly attributes: {
|
|
2056
2204
|
readonly content: "Text";
|
|
2057
2205
|
};
|
|
@@ -2081,10 +2229,11 @@ export declare const defaultElements: {
|
|
|
2081
2229
|
decorative?: boolean | undefined;
|
|
2082
2230
|
}>>;
|
|
2083
2231
|
themeToggle: {
|
|
2084
|
-
(props: import('.').WithElementProps<import('./elements/basic/ThemeToggle/ThemeToggle').ThemeToggleProps>): import('react').JSX.Element;
|
|
2232
|
+
(props: import('.').WithElementProps<import('./elements/basic/ThemeToggle/ThemeToggle').ThemeToggleProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2085
2233
|
displayName: string;
|
|
2086
2234
|
} & {
|
|
2087
2235
|
readonly type: "themeToggle";
|
|
2236
|
+
readonly contentAttributes: readonly ["lightLabel", "darkLabel", "systemLabel"];
|
|
2088
2237
|
readonly attributeValues: {
|
|
2089
2238
|
readonly subType: readonly string[];
|
|
2090
2239
|
};
|
|
@@ -2187,12 +2336,12 @@ export declare const defaultElements: {
|
|
|
2187
2336
|
showSystem?: boolean | undefined;
|
|
2188
2337
|
}>>;
|
|
2189
2338
|
list: {
|
|
2190
|
-
(props: import('.').WithElementProps<import('./elements/structure/List/List').ListProps<unknown>>): import('react').JSX.Element;
|
|
2339
|
+
(props: import('.').WithElementProps<import('./elements/structure/List/List').ListProps<unknown>>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2191
2340
|
displayName: string;
|
|
2192
2341
|
} & {
|
|
2193
2342
|
plugins: {
|
|
2194
2343
|
listItem: {
|
|
2195
|
-
(props: import('.').WithElementProps<import('./elements/structure/List/ListItem/ListItem').ListItemProps>): import('react').JSX.Element;
|
|
2344
|
+
(props: import('.').WithElementProps<import('./elements/structure/List/ListItem/ListItem').ListItemProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2196
2345
|
displayName: string;
|
|
2197
2346
|
} & {
|
|
2198
2347
|
readonly type: "listItem";
|
|
@@ -2228,6 +2377,11 @@ export declare const defaultElements: {
|
|
|
2228
2377
|
readonly source: readonly string[];
|
|
2229
2378
|
};
|
|
2230
2379
|
sourceType: "list";
|
|
2380
|
+
publishes: {
|
|
2381
|
+
readonly items: "Every row it draws, as its items give them";
|
|
2382
|
+
readonly item: "Inside a row: that row's item";
|
|
2383
|
+
readonly index: "Inside a row: its place, from 0";
|
|
2384
|
+
};
|
|
2231
2385
|
content: {
|
|
2232
2386
|
readonly attributes: {
|
|
2233
2387
|
readonly items: readonly [];
|
|
@@ -2293,10 +2447,11 @@ export declare const defaultElements: {
|
|
|
2293
2447
|
}>;
|
|
2294
2448
|
};
|
|
2295
2449
|
link: {
|
|
2296
|
-
(props: import('.').WithElementProps<import('./elements/basic/Link/Link').LinkProps>): import('react').JSX.Element;
|
|
2450
|
+
(props: import('.').WithElementProps<import('./elements/basic/Link/Link').LinkProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2297
2451
|
displayName: string;
|
|
2298
2452
|
} & {
|
|
2299
2453
|
readonly type: "link";
|
|
2454
|
+
readonly contentAttributes: readonly ["content", "href", "label"];
|
|
2300
2455
|
readonly attributeValues: {
|
|
2301
2456
|
readonly mode: readonly string[];
|
|
2302
2457
|
readonly target: readonly string[];
|
|
@@ -2360,11 +2515,13 @@ export declare const defaultElements: {
|
|
|
2360
2515
|
hash?: string | undefined;
|
|
2361
2516
|
}>>;
|
|
2362
2517
|
markdown: {
|
|
2363
|
-
(props: import('.').WithElementProps<import('./elements/basic/Markdown/Markdown').MarkdownProps>): import('react').JSX.Element;
|
|
2518
|
+
(props: import('.').WithElementProps<import('./elements/basic/Markdown/Markdown').MarkdownProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2364
2519
|
displayName: string;
|
|
2365
2520
|
} & {
|
|
2366
2521
|
readonly type: "markdown";
|
|
2522
|
+
readonly contentAttributes: readonly ["content"];
|
|
2367
2523
|
readonly content: {
|
|
2524
|
+
readonly placeholders: readonly ["content"];
|
|
2368
2525
|
readonly attributes: {
|
|
2369
2526
|
readonly content: "Markdown";
|
|
2370
2527
|
readonly headingLinks: true;
|
|
@@ -2422,10 +2579,11 @@ export declare const defaultElements: {
|
|
|
2422
2579
|
headingLinks?: boolean | undefined;
|
|
2423
2580
|
}>>;
|
|
2424
2581
|
richText: {
|
|
2425
|
-
(props: import('.').WithElementProps<import('./elements/basic/RichText/RichText').RichTextProps>): import('react').JSX.Element;
|
|
2582
|
+
(props: import('.').WithElementProps<import('./elements/basic/RichText/RichText').RichTextProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2426
2583
|
displayName: string;
|
|
2427
2584
|
} & {
|
|
2428
2585
|
readonly type: "richText";
|
|
2586
|
+
readonly contentAttributes: readonly ["content"];
|
|
2429
2587
|
readonly attributeValues: {
|
|
2430
2588
|
readonly format: readonly string[];
|
|
2431
2589
|
};
|
|
@@ -2490,10 +2648,11 @@ export declare const defaultElements: {
|
|
|
2490
2648
|
mediaBaseUrl?: string | undefined;
|
|
2491
2649
|
}>>;
|
|
2492
2650
|
pagination: {
|
|
2493
|
-
(props: import('.').WithElementProps<import('./elements/structure/Pagination/Pagination').PaginationProps>): import('react').JSX.Element;
|
|
2651
|
+
(props: import('.').WithElementProps<import('./elements/structure/Pagination/Pagination').PaginationProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2494
2652
|
displayName: string;
|
|
2495
2653
|
} & {
|
|
2496
2654
|
readonly type: "pagination";
|
|
2655
|
+
readonly contentAttributes: readonly ["previousLabel", "nextLabel", "loadMoreLabel"];
|
|
2497
2656
|
readonly attributeValues: {
|
|
2498
2657
|
readonly mode: readonly string[];
|
|
2499
2658
|
readonly target: readonly string[];
|
|
@@ -2563,7 +2722,7 @@ export declare const defaultElements: {
|
|
|
2563
2722
|
loadMoreLabel?: string | undefined;
|
|
2564
2723
|
}>>;
|
|
2565
2724
|
form: {
|
|
2566
|
-
(props: import('.').WithElementProps<elements.FormProps>): import('react').JSX.Element;
|
|
2725
|
+
(props: import('.').WithElementProps<elements.FormProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2567
2726
|
displayName: string;
|
|
2568
2727
|
} & {
|
|
2569
2728
|
content: {
|
|
@@ -2586,7 +2745,7 @@ export declare const defaultElements: {
|
|
|
2586
2745
|
};
|
|
2587
2746
|
definition: {
|
|
2588
2747
|
readonly label: "Form";
|
|
2589
|
-
readonly description: "A <form> that groups form controls and handles submission; wire its submit through an interaction flow.";
|
|
2748
|
+
readonly description: "A <form> that groups form controls and handles submission; wire its submit through an interaction flow. Left as it is, the browser answers first for a blank required field and a malformed address, in a bubble no style reaches and in the browser's language; `noValidate: true` turns its checks off, and every rule answers under its control in the words of its `…Message` (`requiredMessage`).";
|
|
2590
2749
|
readonly items: [];
|
|
2591
2750
|
} & {
|
|
2592
2751
|
type: string;
|
|
@@ -2614,6 +2773,11 @@ export declare const defaultElements: {
|
|
|
2614
2773
|
readonly method: readonly string[];
|
|
2615
2774
|
};
|
|
2616
2775
|
sourceType: "apiContainer";
|
|
2776
|
+
publishes: {
|
|
2777
|
+
readonly values: "Each field's value, by its name";
|
|
2778
|
+
readonly errors: "Each field's error, by its name — none while it is valid";
|
|
2779
|
+
readonly submitted: "Whether a submit was tried — valid or not — since the form was shown or reset: what shows an error only after a submit, or hides a field's hint once one was tried (no `touched`: a field's own error shows once the field is left)";
|
|
2780
|
+
};
|
|
2617
2781
|
triggers: {
|
|
2618
2782
|
readonly onSubmit: {
|
|
2619
2783
|
readonly action: "onSubmit";
|
|
@@ -2626,6 +2790,16 @@ export declare const defaultElements: {
|
|
|
2626
2790
|
readonly method: "";
|
|
2627
2791
|
};
|
|
2628
2792
|
};
|
|
2793
|
+
readonly onInvalid: {
|
|
2794
|
+
readonly action: "onInvalid";
|
|
2795
|
+
readonly title: "On Form Refused";
|
|
2796
|
+
readonly type: "trigger";
|
|
2797
|
+
readonly params: {};
|
|
2798
|
+
readonly preview: {
|
|
2799
|
+
readonly errors: {};
|
|
2800
|
+
readonly values: {};
|
|
2801
|
+
};
|
|
2802
|
+
};
|
|
2629
2803
|
};
|
|
2630
2804
|
callbacks: {
|
|
2631
2805
|
readonly performReset: {
|
|
@@ -2681,7 +2855,7 @@ export declare const defaultElements: {
|
|
|
2681
2855
|
}>;
|
|
2682
2856
|
};
|
|
2683
2857
|
formControl: {
|
|
2684
|
-
(props: import('.').WithElementProps<import('./elements/form/FormControl/hocs/withFieldValue').WithFieldValueProps<import('./elements/form/FormControl/FormControl').FormControlProps>>): import('react').JSX.Element;
|
|
2858
|
+
(props: import('.').WithElementProps<import('./elements/form/FormControl/hocs/withFieldValue').WithFieldValueProps<import('./elements/form/FormControl/FormControl').FormControlProps>>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
2685
2859
|
displayName: string;
|
|
2686
2860
|
} & {
|
|
2687
2861
|
content: {
|
|
@@ -2694,12 +2868,14 @@ export declare const defaultElements: {
|
|
|
2694
2868
|
website: string;
|
|
2695
2869
|
backgroundColor: string;
|
|
2696
2870
|
};
|
|
2871
|
+
placeholders: readonly ["label"];
|
|
2697
2872
|
attributes: {
|
|
2698
2873
|
readonly subType: "text";
|
|
2699
2874
|
readonly name: "";
|
|
2700
2875
|
readonly label: "Label";
|
|
2701
2876
|
readonly hideLabel: false;
|
|
2702
2877
|
readonly placeholder: "";
|
|
2878
|
+
readonly accept: "";
|
|
2703
2879
|
readonly defaultValue: "";
|
|
2704
2880
|
readonly autoComplete: true;
|
|
2705
2881
|
readonly autoFocus: false;
|
|
@@ -2711,6 +2887,11 @@ export declare const defaultElements: {
|
|
|
2711
2887
|
readonly minLengthMessage: "";
|
|
2712
2888
|
readonly maxLength: 0;
|
|
2713
2889
|
readonly maxLengthMessage: "";
|
|
2890
|
+
readonly min: "";
|
|
2891
|
+
readonly minMessage: "";
|
|
2892
|
+
readonly max: "";
|
|
2893
|
+
readonly maxMessage: "";
|
|
2894
|
+
readonly step: "";
|
|
2714
2895
|
readonly formatMessage: "";
|
|
2715
2896
|
readonly pattern: "";
|
|
2716
2897
|
readonly patternMessage: "";
|
|
@@ -3220,6 +3401,49 @@ export declare const defaultElements: {
|
|
|
3220
3401
|
};
|
|
3221
3402
|
};
|
|
3222
3403
|
};
|
|
3404
|
+
readonly file: {
|
|
3405
|
+
name: string;
|
|
3406
|
+
displayMode: "desktop";
|
|
3407
|
+
style: {
|
|
3408
|
+
label: {
|
|
3409
|
+
default: {
|
|
3410
|
+
'margin-bottom': string;
|
|
3411
|
+
display: string;
|
|
3412
|
+
cursor: string;
|
|
3413
|
+
'font-weight': string;
|
|
3414
|
+
'font-size': string;
|
|
3415
|
+
'line-height': string;
|
|
3416
|
+
color: string;
|
|
3417
|
+
'user-select': string;
|
|
3418
|
+
};
|
|
3419
|
+
};
|
|
3420
|
+
requiredMark: {
|
|
3421
|
+
default: {
|
|
3422
|
+
color: string;
|
|
3423
|
+
'margin-left': string;
|
|
3424
|
+
};
|
|
3425
|
+
};
|
|
3426
|
+
error: {
|
|
3427
|
+
default: {
|
|
3428
|
+
display: string;
|
|
3429
|
+
color: string;
|
|
3430
|
+
'margin-top': string;
|
|
3431
|
+
};
|
|
3432
|
+
};
|
|
3433
|
+
icon?: {
|
|
3434
|
+
default: Record<string, string>;
|
|
3435
|
+
} | undefined;
|
|
3436
|
+
field?: {
|
|
3437
|
+
default: Record<string, string>;
|
|
3438
|
+
} | undefined;
|
|
3439
|
+
base: {
|
|
3440
|
+
default: {};
|
|
3441
|
+
};
|
|
3442
|
+
input: {
|
|
3443
|
+
default: Record<string, string>;
|
|
3444
|
+
};
|
|
3445
|
+
};
|
|
3446
|
+
};
|
|
3223
3447
|
readonly textarea: {
|
|
3224
3448
|
name: string;
|
|
3225
3449
|
displayMode: "desktop";
|
|
@@ -3421,8 +3645,9 @@ export declare const defaultElements: {
|
|
|
3421
3645
|
settings: Record<string, string | number | boolean>;
|
|
3422
3646
|
};
|
|
3423
3647
|
type: "formControl";
|
|
3648
|
+
contentAttributes: readonly ["label", "placeholder", "options", "requiredMessage", "minLengthMessage", "maxLengthMessage", "minMessage", "maxMessage", "formatMessage", "patternMessage", "matchesMessage"];
|
|
3424
3649
|
attributeValues: {
|
|
3425
|
-
readonly subType: readonly
|
|
3650
|
+
readonly subType: readonly ["text", "number", "email", "password", "search", "url", "tel", "date", "time", "checkbox", "switch", "select", "textarea", "hidden", "color", "file"];
|
|
3426
3651
|
};
|
|
3427
3652
|
triggers: {
|
|
3428
3653
|
readonly onChange: {
|
|
@@ -3439,7 +3664,7 @@ export declare const defaultElements: {
|
|
|
3439
3664
|
__attributes: import('./elements/declarations').FormControlAttributes;
|
|
3440
3665
|
};
|
|
3441
3666
|
apiContainer: {
|
|
3442
|
-
(props: import('.').WithElementProps<import('./elements/provider/ApiContainer/ApiContainer').ApiContainerProps>): import('react').JSX.Element;
|
|
3667
|
+
(props: import('.').WithElementProps<import('./elements/provider/ApiContainer/ApiContainer').ApiContainerProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
3443
3668
|
displayName: string;
|
|
3444
3669
|
} & {
|
|
3445
3670
|
readonly type: "apiContainer";
|
|
@@ -3450,6 +3675,15 @@ export declare const defaultElements: {
|
|
|
3450
3675
|
readonly pagination: readonly string[];
|
|
3451
3676
|
};
|
|
3452
3677
|
readonly sourceType: "apiContainer";
|
|
3678
|
+
readonly publishes: {
|
|
3679
|
+
readonly '\u2026': "The answer's own fields, as the service sends them";
|
|
3680
|
+
readonly records: "The rows of a paged answer, every page loaded so far";
|
|
3681
|
+
readonly isLoading: "Whether an answer (or a next page) is on its way";
|
|
3682
|
+
readonly isEmpty: "Whether the answer holds nothing";
|
|
3683
|
+
readonly hasError: "Whether the service could not be reached";
|
|
3684
|
+
readonly errorMessage: "What to tell the visitor when it could not";
|
|
3685
|
+
readonly isStale: "A refresh from the server failed: what shows is from before";
|
|
3686
|
+
};
|
|
3453
3687
|
readonly serverTemplates: readonly ["notFound"];
|
|
3454
3688
|
readonly triggers: {
|
|
3455
3689
|
readonly onApiError: {
|
|
@@ -3612,7 +3846,7 @@ export declare const defaultElements: {
|
|
|
3612
3846
|
}[] | undefined;
|
|
3613
3847
|
}>>;
|
|
3614
3848
|
channel: {
|
|
3615
|
-
(props: import('.').WithElementProps<import('./elements/provider/Channel/Channel').ChannelProps>): import('react').JSX.Element;
|
|
3849
|
+
(props: import('.').WithElementProps<import('./elements/provider/Channel/Channel').ChannelProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
|
|
3616
3850
|
displayName: string;
|
|
3617
3851
|
} & {
|
|
3618
3852
|
readonly type: "channel";
|
|
@@ -3620,6 +3854,14 @@ export declare const defaultElements: {
|
|
|
3620
3854
|
readonly subType: readonly string[];
|
|
3621
3855
|
};
|
|
3622
3856
|
readonly sourceType: "channel";
|
|
3857
|
+
readonly publishes: {
|
|
3858
|
+
readonly connected: "Whether the channel is connected now";
|
|
3859
|
+
readonly me: "This visitor's own member id";
|
|
3860
|
+
readonly members: "Who is on the channel now";
|
|
3861
|
+
readonly messages: "What was said on it since the page opened";
|
|
3862
|
+
readonly last: "The last of them, or null";
|
|
3863
|
+
readonly retained: "What the channel keeps for whoever joins";
|
|
3864
|
+
};
|
|
3623
3865
|
readonly triggers: {
|
|
3624
3866
|
readonly onMessage: {
|
|
3625
3867
|
readonly action: "onMessage";
|
|
@@ -3633,6 +3875,7 @@ export declare const defaultElements: {
|
|
|
3633
3875
|
readonly user: "";
|
|
3634
3876
|
readonly at: "";
|
|
3635
3877
|
readonly echo: false;
|
|
3878
|
+
readonly replayed: false;
|
|
3636
3879
|
};
|
|
3637
3880
|
};
|
|
3638
3881
|
readonly onJoin: {
|
|
@@ -3735,6 +3978,8 @@ export { useRscData, elements, JsxManager };
|
|
|
3735
3978
|
export { default as useChannel } from './realtime/useChannel';
|
|
3736
3979
|
export { default as useJob } from './realtime/useJob';
|
|
3737
3980
|
export { default as useFlag } from './dataSource/useFlag';
|
|
3981
|
+
export { default as PluginSource } from './dataSource/PluginSource';
|
|
3982
|
+
export type { PluginSourceProps, PluginSourceDeclaration } from './dataSource/PluginSource';
|
|
3738
3983
|
export type { ChannelHandle, UseChannelOptions } from './realtime/useChannel';
|
|
3739
3984
|
export { default as withElement } from './Element/hocs/withElement';
|
|
3740
3985
|
export type { WithElementProps } from './Element/hocs/withElement';
|