@plitzi/sdk-elements 0.38.16 → 0.38.17
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 +49 -0
- package/dist/Component/ComponentProvider.mjs +3 -3
- package/dist/Element/ElementContext.mjs +1 -1
- package/dist/Element/ElementParentContext.mjs +1 -1
- package/dist/Element/JsxManager.mjs +2 -2
- package/dist/Element/LayoutBody.mjs +1 -1
- package/dist/Element/PluginManager.mjs +2 -2
- package/dist/Element/PluginRemote.mjs +4 -4
- package/dist/Element/ReplicaProvider.mjs +1 -1
- package/dist/Element/RootElement.mjs +4 -4
- package/dist/Element/helpers/declaredAttributes.mjs +1 -1
- package/dist/Element/helpers/getInteractions.mjs +4 -5
- package/dist/Element/hocs/withElement.mjs +2 -2
- package/dist/Element/hooks/useEditableContent.mjs +2 -2
- package/dist/Element/hooks/useElementDataSource.mjs +1 -1
- package/dist/Element/hooks/useElementInternal.mjs +2 -2
- package/dist/Element/hooks/useElementVisible.mjs +1 -1
- package/dist/Element/hooks/useInternalClassName.mjs +1 -1
- package/dist/Element/hooks/useInternalItems.mjs +2 -2
- package/dist/Element/hooks/useIntervalTriggers.mjs +1 -1
- package/dist/Element/hooks/useKeyTriggers.mjs +1 -1
- package/dist/Element/hooks/useLayoutChain.d.ts +1 -1
- package/dist/Element/hooks/useLayoutChain.mjs +4 -4
- package/dist/Element/hooks/usePluginTrigger.mjs +2 -2
- package/dist/Element/hooks/useRootElementInteractions.mjs +26 -27
- package/dist/Element/hooks/useRscData.d.ts +1 -1
- package/dist/Element/hooks/useRscData.mjs +1 -2
- package/dist/Element/hooks/useScrollInteractions.mjs +20 -21
- package/dist/builder/index.d.ts +5 -0
- package/dist/builder/index.mjs +1 -0
- package/dist/canvas/useAnimationFrame.mjs +1 -1
- package/dist/components/ElementAdvancedEditor.mjs +30 -30
- package/dist/components/IconField/index.mjs +1 -2
- package/dist/components/IconPicker/index.mjs +1 -2
- package/dist/components/MarkdownDocument/components/CodeBlock/CodeBlock.mjs +13 -13
- package/dist/dataSource/GlobalSources.mjs +44 -45
- package/dist/dataSource/getSourcesByElementId.mjs +1 -1
- package/dist/dataSource/index.d.ts +3 -0
- package/dist/dataSource/index.mjs +6 -3
- package/dist/dataSource/pathFields.mjs +1 -1
- package/dist/dataSource/sourceStore.mjs +1 -1
- package/dist/dataSource/useRegisterSource.d.ts +9 -0
- package/dist/dataSource/useRegisterSource.mjs +40 -0
- package/dist/dataSource/useResolvedVariables.d.ts +12 -0
- package/dist/dataSource/useResolvedVariables.mjs +27 -0
- package/dist/elements/advanced/BlockHtml/BlockHtml.d.ts +1 -1
- package/dist/elements/advanced/BlockHtml/BlockHtml.mjs +1 -1
- package/dist/elements/advanced/BlockHtml/declaration.d.ts +2 -2
- package/dist/elements/advanced/BlockHtml/declaration.mjs +1 -1
- package/dist/elements/advanced/BlockHtml/index.d.ts +3 -3
- package/dist/elements/advanced/BlockJsx/BlockJsx.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/Settings.mjs +25 -29
- package/dist/elements/advanced/BlockJsx/declaration.d.ts +2 -2
- package/dist/elements/advanced/BlockJsx/declaration.mjs +1 -1
- package/dist/elements/advanced/BlockJsx/index.d.ts +3 -3
- package/dist/elements/advanced/Custom/Custom.d.ts +1 -1
- package/dist/elements/advanced/Custom/Custom.mjs +2 -2
- package/dist/elements/advanced/Custom/Settings.mjs +3 -6
- package/dist/elements/advanced/Custom/declaration.d.ts +2 -2
- package/dist/elements/advanced/Custom/declaration.mjs +1 -1
- package/dist/elements/advanced/Custom/index.d.ts +3 -3
- package/dist/elements/advanced/NodeHtml/NodeHtml.d.ts +1 -1
- package/dist/elements/advanced/NodeHtml/declaration.d.ts +2 -2
- package/dist/elements/advanced/NodeHtml/declaration.mjs +1 -1
- package/dist/elements/advanced/NodeHtml/index.d.ts +3 -3
- package/dist/elements/advanced/PlitziSdk/declaration.d.ts +1 -1
- package/dist/elements/advanced/PlitziSdk/declaration.mjs +1 -1
- package/dist/elements/advanced/Reference/Reference.d.ts +1 -1
- package/dist/elements/advanced/Reference/Reference.mjs +3 -3
- package/dist/elements/advanced/Reference/declaration.d.ts +2 -2
- package/dist/elements/advanced/Reference/declaration.mjs +1 -1
- package/dist/elements/advanced/Reference/index.d.ts +3 -3
- package/dist/elements/basic/Button/Button.d.ts +1 -1
- package/dist/elements/basic/Button/Button.mjs +1 -1
- package/dist/elements/basic/Button/declaration.d.ts +3 -3
- package/dist/elements/basic/Button/declaration.mjs +1 -1
- package/dist/elements/basic/Button/index.d.ts +4 -4
- package/dist/elements/basic/Dropdown/Dropdown.d.ts +1 -1
- package/dist/elements/basic/Dropdown/Dropdown.mjs +12 -12
- package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.d.ts +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +2 -2
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +3 -3
- package/dist/elements/basic/Dropdown/declaration.d.ts +2 -2
- package/dist/elements/basic/Dropdown/declaration.mjs +1 -1
- package/dist/elements/basic/Dropdown/index.d.ts +5 -5
- package/dist/elements/basic/Dropdown/useDropdown.mjs +1 -5
- package/dist/elements/basic/Dropdown/useDropdownTrigger.mjs +1 -7
- package/dist/elements/basic/Heading/Heading.d.ts +1 -1
- package/dist/elements/basic/Heading/declaration.d.ts +2 -2
- package/dist/elements/basic/Heading/declaration.mjs +1 -1
- package/dist/elements/basic/Heading/index.d.ts +3 -3
- package/dist/elements/basic/Link/Link.d.ts +1 -1
- package/dist/elements/basic/Link/Link.mjs +2 -2
- package/dist/elements/basic/Link/Settings.mjs +2 -2
- package/dist/elements/basic/Link/declaration.d.ts +3 -3
- package/dist/elements/basic/Link/declaration.mjs +1 -1
- package/dist/elements/basic/Link/index.d.ts +4 -4
- package/dist/elements/basic/Markdown/Markdown.d.ts +1 -1
- package/dist/elements/basic/Markdown/Markdown.mjs +8 -8
- package/dist/elements/basic/Markdown/declaration.d.ts +2 -2
- package/dist/elements/basic/Markdown/declaration.mjs +1 -1
- package/dist/elements/basic/Markdown/hooks/useMarkdownClassNames.mjs +1 -1
- package/dist/elements/basic/Markdown/index.d.ts +3 -3
- package/dist/elements/basic/Paragraph/Paragraph.d.ts +1 -1
- package/dist/elements/basic/Paragraph/declaration.d.ts +2 -2
- package/dist/elements/basic/Paragraph/declaration.mjs +1 -1
- package/dist/elements/basic/Paragraph/index.d.ts +3 -3
- package/dist/elements/basic/RichText/RichText.d.ts +1 -1
- package/dist/elements/basic/RichText/RichText.mjs +14 -14
- package/dist/elements/basic/RichText/declaration.d.ts +2 -2
- package/dist/elements/basic/RichText/declaration.mjs +1 -1
- package/dist/elements/basic/RichText/index.d.ts +3 -3
- package/dist/elements/basic/Text/Text.d.ts +1 -1
- package/dist/elements/basic/Text/declaration.d.ts +2 -2
- package/dist/elements/basic/Text/declaration.mjs +1 -1
- package/dist/elements/basic/Text/index.d.ts +3 -3
- package/dist/elements/basic/ThemeToggle/ThemeToggle.d.ts +1 -1
- package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +3 -3
- package/dist/elements/basic/ThemeToggle/declaration.d.ts +2 -2
- package/dist/elements/basic/ThemeToggle/declaration.mjs +1 -1
- package/dist/elements/basic/ThemeToggle/index.d.ts +3 -3
- package/dist/elements/declarations/index.d.ts +66 -52
- package/dist/elements/declarations/index.mjs +45 -42
- package/dist/elements/form/Form/Form.d.ts +1 -1
- package/dist/elements/form/Form/Form.mjs +37 -37
- package/dist/elements/form/Form/declaration.d.ts +2 -2
- package/dist/elements/form/Form/declaration.mjs +1 -1
- package/dist/elements/form/Form/index.d.ts +1 -1
- package/dist/elements/form/FormControl/FormControl.d.ts +1 -1
- package/dist/elements/form/FormControl/FormControl.mjs +2 -2
- package/dist/elements/form/FormControl/Settings.mjs +1 -5
- package/dist/elements/form/FormControl/declaration.d.ts +2 -2
- package/dist/elements/form/FormControl/declaration.mjs +1 -1
- package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +12 -16
- package/dist/elements/form/FormControl/index.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +1 -1
- package/dist/elements/internal/LayoutContainer/declaration.d.ts +2 -2
- package/dist/elements/internal/LayoutContainer/declaration.mjs +1 -1
- package/dist/elements/internal/LayoutContainer/index.d.ts +3 -3
- package/dist/elements/internal/LayoutPicker/LayoutPicker.mjs +7 -7
- package/dist/elements/internal/Loading/Loading.d.ts +1 -1
- package/dist/elements/internal/Loading/declaration.d.ts +2 -2
- package/dist/elements/internal/Loading/declaration.mjs +1 -1
- package/dist/elements/internal/Loading/index.d.ts +3 -3
- package/dist/elements/internal/NotFound/NotFound.d.ts +1 -1
- package/dist/elements/internal/NotFound/NotFound.mjs +1 -1
- package/dist/elements/internal/NotFound/declaration.d.ts +2 -2
- package/dist/elements/internal/NotFound/declaration.mjs +1 -1
- package/dist/elements/internal/NotFound/index.d.ts +3 -3
- package/dist/elements/internal/Page/Page.d.ts +1 -1
- package/dist/elements/internal/Page/Page.mjs +2 -2
- package/dist/elements/internal/Page/PageHead.mjs +7 -7
- package/dist/elements/internal/Page/Settings.mjs +1 -1
- package/dist/elements/internal/Page/declaration.d.ts +2 -2
- package/dist/elements/internal/Page/declaration.mjs +1 -1
- package/dist/elements/internal/Page/index.d.ts +3 -3
- package/dist/elements/media/Embed/Embed.d.ts +1 -1
- package/dist/elements/media/Embed/Embed.mjs +1 -1
- package/dist/elements/media/Embed/declaration.d.ts +2 -2
- package/dist/elements/media/Embed/declaration.mjs +1 -1
- package/dist/elements/media/Embed/index.d.ts +3 -3
- package/dist/elements/media/FontAwesome/FontAwesome.d.ts +1 -1
- package/dist/elements/media/FontAwesome/declaration.d.ts +2 -2
- package/dist/elements/media/FontAwesome/declaration.mjs +1 -1
- package/dist/elements/media/FontAwesome/index.d.ts +3 -3
- package/dist/elements/media/Image/Image.d.ts +1 -1
- package/dist/elements/media/Image/Image.mjs +12 -12
- package/dist/elements/media/Image/declaration.d.ts +2 -2
- package/dist/elements/media/Image/declaration.mjs +1 -1
- package/dist/elements/media/Image/index.d.ts +3 -3
- package/dist/elements/media/Svg/Svg.d.ts +1 -1
- package/dist/elements/media/Svg/Svg.mjs +11 -11
- package/dist/elements/media/Svg/declaration.d.ts +2 -2
- package/dist/elements/media/Svg/declaration.mjs +1 -1
- package/dist/elements/media/Svg/index.d.ts +3 -3
- package/dist/elements/media/Video/Video.d.ts +1 -1
- package/dist/elements/media/Video/Video.mjs +1 -1
- package/dist/elements/media/Video/declaration.d.ts +2 -2
- package/dist/elements/media/Video/declaration.mjs +1 -1
- package/dist/elements/media/Video/index.d.ts +3 -3
- package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +1 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +40 -48
- package/dist/elements/provider/ApiContainer/Settings.mjs +6 -10
- package/dist/elements/provider/ApiContainer/declaration.d.ts +2 -2
- package/dist/elements/provider/ApiContainer/declaration.mjs +1 -1
- package/dist/elements/provider/ApiContainer/helpers/serverMock.mjs +1 -1
- package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +5 -5
- package/dist/elements/provider/ApiContainer/hooks/useProviderPagination.mjs +3 -12
- package/dist/elements/provider/ApiContainer/index.d.ts +3 -3
- package/dist/elements/provider/Channel/Channel.d.ts +1 -1
- package/dist/elements/provider/Channel/Channel.mjs +24 -24
- package/dist/elements/provider/Channel/declaration.d.ts +2 -2
- package/dist/elements/provider/Channel/declaration.mjs +1 -1
- package/dist/elements/provider/Channel/index.d.ts +3 -3
- package/dist/elements/settings.mjs +84 -85
- package/dist/elements/structure/Carousel/Carousel.d.ts +1 -1
- package/dist/elements/structure/Carousel/Carousel.mjs +27 -39
- package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.d.ts +1 -1
- package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/index.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/index.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/index.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.d.ts +2 -2
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs +1 -1
- package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +3 -3
- package/dist/elements/structure/Carousel/declaration.d.ts +2 -2
- package/dist/elements/structure/Carousel/declaration.mjs +1 -1
- package/dist/elements/structure/Carousel/index.d.ts +5 -5
- package/dist/elements/structure/Container/Container.d.ts +1 -1
- package/dist/elements/structure/Container/declaration.d.ts +2 -2
- package/dist/elements/structure/Container/declaration.mjs +1 -1
- package/dist/elements/structure/Container/index.d.ts +3 -3
- package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +1 -1
- package/dist/elements/structure/DialogContainer/declaration.d.ts +2 -2
- package/dist/elements/structure/DialogContainer/declaration.mjs +1 -1
- package/dist/elements/structure/DialogContainer/index.d.ts +3 -3
- 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/declaration.d.ts +2 -2
- package/dist/elements/structure/List/ListItem/declaration.mjs +1 -1
- package/dist/elements/structure/List/ListItem/index.d.ts +3 -3
- package/dist/elements/structure/List/declaration.d.ts +2 -2
- package/dist/elements/structure/List/declaration.mjs +1 -1
- package/dist/elements/structure/List/index.d.ts +5 -5
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +23 -23
- package/dist/elements/structure/ModalContainer/ModalContainer.d.ts +1 -1
- package/dist/elements/structure/ModalContainer/declaration.d.ts +2 -2
- package/dist/elements/structure/ModalContainer/declaration.mjs +1 -1
- package/dist/elements/structure/ModalContainer/index.d.ts +3 -3
- package/dist/elements/structure/Overlay/metadataOf.mjs +1 -1
- package/dist/elements/structure/Overlay/useOverlay.mjs +19 -19
- package/dist/elements/structure/Pagination/Pagination.d.ts +1 -1
- package/dist/elements/structure/Pagination/Pagination.mjs +3 -3
- package/dist/elements/structure/Pagination/declaration.d.ts +2 -2
- package/dist/elements/structure/Pagination/declaration.mjs +1 -1
- package/dist/elements/structure/Pagination/index.d.ts +3 -3
- 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/declaration.d.ts +2 -2
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +3 -3
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.d.ts +2 -2
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +3 -3
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +2 -2
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +3 -3
- package/dist/elements/structure/TabContainer/declaration.d.ts +2 -2
- package/dist/elements/structure/TabContainer/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/index.d.ts +11 -11
- package/dist/index.d.ts +133 -121
- package/dist/index.mjs +85 -76
- package/package.json +18 -1408
|
@@ -8,7 +8,7 @@ export type CarouselTrackProps = {
|
|
|
8
8
|
/** Where a carousel's slides are, inside it beside its controls: one at a time, a row, or a marquee. */
|
|
9
9
|
declare const CarouselTrack: ({ ref, className, children }: CarouselTrackProps) => import('react').JSX.Element;
|
|
10
10
|
declare const _default: {
|
|
11
|
-
(props: import('
|
|
11
|
+
(props: import('../../../..').WithElementProps<CarouselTrackProps>): import('react').JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./CarouselSlide.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./MarqueeTrack.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./ScrollTrack.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CarouselTrackProps } from './CarouselTrack';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type CarouselTrackAttributes = AuthorableAttributes<CarouselTrackProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "carouselTrack";
|
|
7
7
|
readonly ancestorType: "carousel";
|
|
8
8
|
readonly content: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const CarouselTrack: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../../..').WithElementProps<import('./CarouselTrack').CarouselTrackProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "carouselTrack";
|
|
@@ -30,6 +30,6 @@ declare const CarouselTrack: {
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
} & {
|
|
33
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
34
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
33
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
34
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
35
35
|
export default CarouselTrack;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CarouselProps } from './Carousel';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type CarouselAttributes = AuthorableAttributes<CarouselProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "carousel";
|
|
7
7
|
readonly sourceType: "carousel";
|
|
8
8
|
readonly triggers: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const Carousel: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Carousel').CarouselProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
plugins: {
|
|
6
6
|
carouselTrack: {
|
|
7
|
-
(props: import('
|
|
7
|
+
(props: import('../../..').WithElementProps<import('./CarouselTrack/CarouselTrack').CarouselTrackProps>): import('react').JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
} & {
|
|
10
10
|
readonly type: "carouselTrack";
|
|
@@ -35,8 +35,8 @@ declare const Carousel: {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
} & {
|
|
38
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
39
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
38
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
39
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
40
40
|
};
|
|
41
41
|
type: "carousel";
|
|
42
42
|
sourceType: "carousel";
|
|
@@ -125,7 +125,7 @@ declare const Carousel: {
|
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
128
|
+
} & import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
129
129
|
initialItems: readonly ["carouselTrack"];
|
|
130
130
|
__attributes: Partial<{
|
|
131
131
|
mode?: import('./CarouselContext').CarouselMode | undefined;
|
|
@@ -32,7 +32,7 @@ export type ContainerProps = {
|
|
|
32
32
|
};
|
|
33
33
|
declare const Container: ({ ref, className, subType, label, decorative, live, title, children }: ContainerProps) => import('react').JSX.Element;
|
|
34
34
|
declare const _default: {
|
|
35
|
-
(props: import('
|
|
35
|
+
(props: import('../../..').WithElementProps<ContainerProps>): import('react').JSX.Element;
|
|
36
36
|
displayName: string;
|
|
37
37
|
};
|
|
38
38
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContainerProps } from './Container';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type ContainerAttributes = AuthorableAttributes<ContainerProps>;
|
|
5
5
|
/**
|
|
@@ -8,7 +8,7 @@ export type ContainerAttributes = AuthorableAttributes<ContainerProps>;
|
|
|
8
8
|
* hold (a heading, a list item) or refuse one outright, so a label on them would be read by nobody.
|
|
9
9
|
*/
|
|
10
10
|
export declare const NAMEABLE_CONTAINER_TAGS: readonly NonNullable<ContainerProps['subType']>[];
|
|
11
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
11
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
12
12
|
readonly type: "container";
|
|
13
13
|
readonly attributeValues: {
|
|
14
14
|
readonly subType: readonly string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Container: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Container').ContainerProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "container";
|
|
@@ -30,8 +30,8 @@ declare const Container: {
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
} & {
|
|
33
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
34
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
33
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
34
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
35
35
|
label?: string | undefined;
|
|
36
36
|
title?: string | undefined;
|
|
37
37
|
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
@@ -11,7 +11,7 @@ export type DialogContainerProps = {
|
|
|
11
11
|
};
|
|
12
12
|
declare const DialogContainer: ({ ref, className, children, headerLabel, acceptButtonLabel, acceptButtonLabelLoading, rejectButtonLabel, autoHideAfterClick }: DialogContainerProps) => import('react').JSX.Element;
|
|
13
13
|
declare const _default: {
|
|
14
|
-
(props: import('
|
|
14
|
+
(props: import('../../..').WithElementProps<DialogContainerProps>): import('react').JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
17
17
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DialogContainerProps } from './DialogContainer';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type DialogContainerAttributes = AuthorableAttributes<DialogContainerProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "dialogContainer";
|
|
7
7
|
readonly sourceType: "dialogContainer";
|
|
8
8
|
readonly triggers: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const DialogContainer: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./DialogContainer').DialogContainerProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "dialogContainer";
|
|
@@ -262,8 +262,8 @@ declare const DialogContainer: {
|
|
|
262
262
|
};
|
|
263
263
|
readonly initialItems: readonly ["container"];
|
|
264
264
|
} & {
|
|
265
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
266
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
265
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
266
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
267
267
|
autoHideAfterClick?: boolean | undefined;
|
|
268
268
|
headerLabel?: string | undefined;
|
|
269
269
|
acceptButtonLabel?: string | undefined;
|
|
@@ -16,7 +16,7 @@ export type ListProps<T = unknown> = {
|
|
|
16
16
|
};
|
|
17
17
|
declare const List: ({ ref, className, subType, children, items, source, itemKey, label }: ListProps) => import('react').JSX.Element;
|
|
18
18
|
declare const _default: {
|
|
19
|
-
(props: import('
|
|
19
|
+
(props: import('../../..').WithElementProps<ListProps<unknown>>): import('react').JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
22
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export type ListItemProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const ListItem: ({ ref, className, children }: ListItemProps) => import('react').JSX.Element;
|
|
8
8
|
declare const _default: {
|
|
9
|
-
(props: import('
|
|
9
|
+
(props: import('../../../..').WithElementProps<ListItemProps>): import('react').JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ListItemProps } from './ListItem';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type ListItemAttributes = AuthorableAttributes<ListItemProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "listItem";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const ListItem: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../../..').WithElementProps<import('./ListItem').ListItemProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "listItem";
|
|
@@ -26,6 +26,6 @@ declare const ListItem: {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
} & {
|
|
29
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
30
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
29
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
30
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
31
31
|
export default ListItem;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ListProps } from './List';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type ListAttributes = AuthorableAttributes<ListProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "list";
|
|
7
7
|
readonly attributeValues: {
|
|
8
8
|
readonly subType: readonly string[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const List: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./List').ListProps<unknown>>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
plugins: {
|
|
6
6
|
listItem: {
|
|
7
|
-
(props: import('
|
|
7
|
+
(props: import('../../..').WithElementProps<import('./ListItem/ListItem').ListItemProps>): import('react').JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
} & {
|
|
10
10
|
readonly type: "listItem";
|
|
@@ -31,8 +31,8 @@ declare const List: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
} & {
|
|
34
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
35
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
34
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
35
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
36
36
|
};
|
|
37
37
|
type: "list";
|
|
38
38
|
attributeValues: {
|
|
@@ -94,7 +94,7 @@ declare const List: {
|
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
97
|
+
} & import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
98
98
|
initialItems: readonly ["listItem", "listItem", "listItem"];
|
|
99
99
|
__attributes: Partial<{
|
|
100
100
|
source?: "none" | "controlled" | undefined;
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import e from "../../declaration.mjs";
|
|
2
2
|
import t from "../../../../../Element/hooks/useElement.mjs";
|
|
3
3
|
import { RootElement as n } from "../../../../../Element/RootElement.mjs";
|
|
4
|
-
import r from "../../../../../dataSource/
|
|
5
|
-
import
|
|
6
|
-
import a from "./
|
|
7
|
-
import
|
|
8
|
-
import c from "
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import m from "
|
|
14
|
-
import h from "
|
|
15
|
-
import g from "@plitzi/sdk-shared/dataSource/
|
|
4
|
+
import r from "../../../../../dataSource/useRegisterSource.mjs";
|
|
5
|
+
import i from "../../../../../dataSource/sourceStore.mjs";
|
|
6
|
+
import { rowKeys as a } from "./rowKeys.mjs";
|
|
7
|
+
import o from "./ListControlledItem.mjs";
|
|
8
|
+
import { useCallback as s, useMemo as c } from "react";
|
|
9
|
+
import { usePlitzi as l } from "@plitzi/sdk-shared/hooks";
|
|
10
|
+
import { getPathsFromObject as u } from "@plitzi/sdk-shared/helpers";
|
|
11
|
+
import { get as d } from "@plitzi/plitzi-ui/helpers";
|
|
12
|
+
import { StoreProvider as f } from "@plitzi/nexus/react";
|
|
13
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
14
|
+
import h from "clsx";
|
|
15
|
+
import { getSourceName as g } from "@plitzi/sdk-shared/dataSource/helpers";
|
|
16
16
|
//#region src/elements/structure/List/modes/ListControlled/ListControlled.tsx
|
|
17
17
|
var _ = ({ ref: _, className: v = "", subType: y = "ul", children: b, items: x = [], itemKey: S, label: C = "" }) => {
|
|
18
|
-
let { id: w, definition: { label: T } } = t(), E =
|
|
19
|
-
item:
|
|
18
|
+
let { id: w, definition: { label: T } } = t(), E = g(e.sourceType, w), { settings: { previewMode: D } } = l(), O = c(() => Array.isArray(x) ? x : [], [x]), k = c(() => a(O, S), [O, S]), A = s(() => u({
|
|
19
|
+
item: d(O, "0", {}),
|
|
20
20
|
index: 0
|
|
21
21
|
}).reduce((e, t) => [...e, {
|
|
22
22
|
path: t,
|
|
23
23
|
name: t
|
|
24
|
-
}], []), [O]), j =
|
|
25
|
-
return
|
|
24
|
+
}], []), [O]), j = c(() => i(E, { items: O }), [E, O]);
|
|
25
|
+
return r({
|
|
26
26
|
id: w,
|
|
27
27
|
source: E,
|
|
28
28
|
name: T || `List - ${w}`,
|
|
29
29
|
fields: A
|
|
30
|
-
}), /* @__PURE__ */
|
|
30
|
+
}), /* @__PURE__ */ m(n, {
|
|
31
31
|
ref: _,
|
|
32
32
|
tag: y,
|
|
33
33
|
"aria-label": C || void 0,
|
|
34
|
-
className:
|
|
35
|
-
children: [/* @__PURE__ */ f
|
|
34
|
+
className: h("plitzi-component__controlled-list", v, { "controlled-list--build-mode": !D }),
|
|
35
|
+
children: [/* @__PURE__ */ p(f, {
|
|
36
36
|
inherit: "live",
|
|
37
37
|
name: `List:${w}`,
|
|
38
38
|
value: j,
|
|
39
|
-
children: O.map((e, t) => !b || Array.isArray(b) && b.length === 0 ? /* @__PURE__ */
|
|
39
|
+
children: O.map((e, t) => !b || Array.isArray(b) && b.length === 0 ? /* @__PURE__ */ p("div", {
|
|
40
40
|
className: "plitzi-component__controlled-list-item controlled-list--empty",
|
|
41
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ p("div", {
|
|
42
42
|
className: "controlled-list-item__counter",
|
|
43
43
|
children: `List Item - ${t + 1}`
|
|
44
44
|
})
|
|
45
|
-
}, t) : /* @__PURE__ */
|
|
45
|
+
}, t) : /* @__PURE__ */ p(o, {
|
|
46
46
|
index: t,
|
|
47
47
|
isTemplate: t !== 0 && !D,
|
|
48
48
|
record: e,
|
|
49
49
|
source: E,
|
|
50
50
|
children: b
|
|
51
51
|
}, k[t]))
|
|
52
|
-
}), !D && O.length === 0 && /* @__PURE__ */
|
|
52
|
+
}), !D && O.length === 0 && /* @__PURE__ */ p("div", {
|
|
53
53
|
className: "controlled-list controlled-list--empty",
|
|
54
54
|
children: "This list does not contain any items"
|
|
55
55
|
})]
|
|
@@ -8,7 +8,7 @@ export type ModalContainerProps = {
|
|
|
8
8
|
};
|
|
9
9
|
declare const ModalContainer: ({ ref, className, children, title, autoHideAfterClick }: ModalContainerProps) => import('react').JSX.Element;
|
|
10
10
|
declare const _default: {
|
|
11
|
-
(props: import('
|
|
11
|
+
(props: import('../../..').WithElementProps<ModalContainerProps>): import('react').JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ModalContainerProps } from './ModalContainer';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type ModalContainerAttributes = AuthorableAttributes<ModalContainerProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "modalContainer";
|
|
7
7
|
readonly sourceType: "modalContainer";
|
|
8
8
|
readonly triggers: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const ModalContainer: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./ModalContainer').ModalContainerProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "modalContainer";
|
|
@@ -181,8 +181,8 @@ declare const ModalContainer: {
|
|
|
181
181
|
};
|
|
182
182
|
readonly initialItems: readonly ["container"];
|
|
183
183
|
} & {
|
|
184
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
185
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
184
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
185
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
186
186
|
title?: string | undefined;
|
|
187
187
|
autoHideAfterClick?: boolean | undefined;
|
|
188
188
|
}>>;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import e from "../../../Element/hooks/useElement.mjs";
|
|
2
|
-
import t from "../../../dataSource/
|
|
3
|
-
import n from "../../../dataSource/
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import l from "
|
|
7
|
-
import u from "@plitzi/sdk-
|
|
8
|
-
import d from "@plitzi/sdk-
|
|
9
|
-
import f from "@plitzi/sdk-shared/dataSource/
|
|
2
|
+
import t from "../../../dataSource/useRegisterSource.mjs";
|
|
3
|
+
import n from "../../../dataSource/pathFields.mjs";
|
|
4
|
+
import r from "../../../dataSource/sourceStore.mjs";
|
|
5
|
+
import { metadataOf as i } from "./metadataOf.mjs";
|
|
6
|
+
import { use as a, useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
|
|
7
|
+
import { usePlitzi as u } from "@plitzi/sdk-shared/hooks";
|
|
8
|
+
import { InteractionsContext as d } from "@plitzi/sdk-interactions";
|
|
9
|
+
import { getSourceName as f } from "@plitzi/sdk-shared/dataSource/helpers";
|
|
10
10
|
//#region src/elements/structure/Overlay/useOverlay.ts
|
|
11
11
|
var p = ({ name: p, sourceType: m, callbacks: h, events: g, autoHideAfterClick: _ }) => {
|
|
12
|
-
let { id: v, rootId: y, visible: b, definition: { styleSelectors: x, label: S = p }, elementState: C, setElementState: w } = e(), T =
|
|
12
|
+
let { id: v, rootId: y, visible: b, definition: { styleSelectors: x, label: S = p }, elementState: C, setElementState: w } = e(), T = f(m, v), { settings: { previewMode: E } } = u(), { interactionsManager: D } = a(d), [O, k] = l({}), A = o((e) => D.interactionTrigger(v, e, { metadata: O }), [
|
|
13
13
|
v,
|
|
14
14
|
D,
|
|
15
15
|
O
|
|
16
|
-
]), j =
|
|
16
|
+
]), j = o(() => {
|
|
17
17
|
k({}), w((e) => ({
|
|
18
18
|
...e,
|
|
19
19
|
visibility: !1
|
|
20
20
|
}));
|
|
21
|
-
}, [w]), M =
|
|
22
|
-
k(
|
|
21
|
+
}, [w]), M = o((e) => {
|
|
22
|
+
k(i(e.metadata)), w((e) => ({
|
|
23
23
|
...e,
|
|
24
24
|
visibility: !0
|
|
25
25
|
}));
|
|
26
|
-
}, [w]), N =
|
|
26
|
+
}, [w]), N = o(() => {
|
|
27
27
|
A(g.close), j();
|
|
28
28
|
}, [
|
|
29
29
|
g.close,
|
|
30
30
|
j,
|
|
31
31
|
A
|
|
32
|
-
]), P =
|
|
32
|
+
]), P = o(() => {
|
|
33
33
|
_ && N();
|
|
34
|
-
}, [_, N]), F =
|
|
34
|
+
}, [_, N]), F = c(() => ({
|
|
35
35
|
[h.open.action]: {
|
|
36
36
|
...h.open,
|
|
37
37
|
title: `Open ${S}`,
|
|
@@ -49,7 +49,7 @@ var p = ({ name: p, sourceType: m, callbacks: h, events: g, autoHideAfterClick:
|
|
|
49
49
|
S,
|
|
50
50
|
M
|
|
51
51
|
]);
|
|
52
|
-
|
|
52
|
+
s(() => {
|
|
53
53
|
C.visibility !== !1 && D.interactionTrigger(v, g.open, { metadata: O });
|
|
54
54
|
}, [
|
|
55
55
|
v,
|
|
@@ -58,14 +58,14 @@ var p = ({ name: p, sourceType: m, callbacks: h, events: g, autoHideAfterClick:
|
|
|
58
58
|
C.visibility,
|
|
59
59
|
g.open
|
|
60
60
|
]);
|
|
61
|
-
let I =
|
|
62
|
-
|
|
61
|
+
let I = o(() => n(O), [O]);
|
|
62
|
+
t({
|
|
63
63
|
id: v,
|
|
64
64
|
source: T,
|
|
65
65
|
name: S || `${p} - ${v}`,
|
|
66
66
|
fields: I
|
|
67
67
|
});
|
|
68
|
-
let L =
|
|
68
|
+
let L = c(() => r(T, O), [T, O]);
|
|
69
69
|
return {
|
|
70
70
|
id: v,
|
|
71
71
|
titleId: `${y}_${v}_title`,
|
|
@@ -39,7 +39,7 @@ export type PaginationProps = {
|
|
|
39
39
|
*/
|
|
40
40
|
declare const Pagination: ({ ref, className, children, pageInfo, mode, pageParam, target, windowSize, previousLabel, nextLabel, loadMoreLabel, label }: PaginationProps) => import('react').JSX.Element;
|
|
41
41
|
declare const _default: {
|
|
42
|
-
(props: import('
|
|
42
|
+
(props: import('../../..').WithElementProps<PaginationProps>): import('react').JSX.Element;
|
|
43
43
|
displayName: string;
|
|
44
44
|
};
|
|
45
45
|
export default _default;
|
|
@@ -4,12 +4,12 @@ import n from "../../../Element/hooks/useElement.mjs";
|
|
|
4
4
|
import { RootElement as r } from "../../../Element/RootElement.mjs";
|
|
5
5
|
import i from "./buildPageWindow.mjs";
|
|
6
6
|
import { use as a, useCallback as o, useMemo as s } from "react";
|
|
7
|
-
import c from "@plitzi/sdk-shared/hooks
|
|
7
|
+
import { usePlitzi as c } from "@plitzi/sdk-shared/hooks";
|
|
8
8
|
import { useSdkStore as l } from "@plitzi/sdk-shared/store";
|
|
9
|
-
import { emptyObject as u } from "@plitzi/sdk-shared/helpers
|
|
9
|
+
import { emptyObject as u } from "@plitzi/sdk-shared/helpers";
|
|
10
10
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
11
|
import m from "clsx";
|
|
12
|
-
import h from "@plitzi/sdk-interactions
|
|
12
|
+
import { InteractionsContext as h } from "@plitzi/sdk-interactions";
|
|
13
13
|
//#region src/elements/structure/Pagination/Pagination.tsx
|
|
14
14
|
var g = (e, t) => {
|
|
15
15
|
if (typeof window > "u") return "";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PaginationProps } from './Pagination';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
3
|
/** What this element can be authored with — its component's own props, minus what the runtime supplies. */
|
|
4
4
|
export type PaginationAttributes = AuthorableAttributes<PaginationProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "pagination";
|
|
7
7
|
readonly attributeValues: {
|
|
8
8
|
readonly mode: readonly string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring
|
|
1
|
+
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring";
|
|
2
2
|
//#region src/elements/structure/Pagination/declaration.ts
|
|
3
3
|
var n = e()({
|
|
4
4
|
type: "pagination",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Pagination: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Pagination').PaginationProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "pagination";
|
|
@@ -59,8 +59,8 @@ declare const Pagination: {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
} & {
|
|
62
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
63
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
62
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
63
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
64
64
|
mode?: "pages" | "loadMore" | undefined;
|
|
65
65
|
label?: string | undefined;
|
|
66
66
|
target?: "url" | "interaction" | undefined;
|