@plitzi/sdk-elements 0.38.15 → 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 +118 -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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageProps } from './Page';
|
|
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 PageAttributes = AuthorableAttributes<PageProps>;
|
|
5
5
|
/**
|
|
@@ -9,7 +9,7 @@ export type PageAttributes = AuthorableAttributes<PageProps>;
|
|
|
9
9
|
export declare const DOCUMENT_SCROLLS: readonly ["locked", "noBounce"];
|
|
10
10
|
export type DocumentScroll = (typeof DOCUMENT_SCROLLS)[number];
|
|
11
11
|
export declare const isDocumentScroll: (value: unknown) => value is DocumentScroll;
|
|
12
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
12
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
13
13
|
readonly type: "page";
|
|
14
14
|
readonly serverTemplates: readonly ["seoPageTitle", "seoPageDescription", "notFound"];
|
|
15
15
|
readonly attributeValues: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring
|
|
1
|
+
import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring";
|
|
2
2
|
//#region src/elements/internal/Page/declaration.ts
|
|
3
3
|
var t = ["locked", "noBounce"], n = (e) => t.some((t) => t === e), r = e()({
|
|
4
4
|
type: "page",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Page: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Page').PageProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "page";
|
|
@@ -66,8 +66,8 @@ declare const Page: {
|
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
} & {
|
|
69
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
70
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
69
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
70
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
71
71
|
layout?: string | undefined;
|
|
72
72
|
notFound?: string | undefined;
|
|
73
73
|
layoutContainer?: string | undefined;
|
|
@@ -15,7 +15,7 @@ export type EmbedProps = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const Embed: ({ ref, src, title, loading, allow, sandbox, referrerPolicy, className }: EmbedProps) => import('react').JSX.Element;
|
|
17
17
|
declare const _default: {
|
|
18
|
-
(props: import('
|
|
18
|
+
(props: import('../../..').WithElementProps<EmbedProps>): import('react').JSX.Element;
|
|
19
19
|
displayName: string;
|
|
20
20
|
};
|
|
21
21
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../../Element/hocs/withElement.mjs";
|
|
2
2
|
import { RootElement as t } from "../../../Element/RootElement.mjs";
|
|
3
3
|
import { embeddableSrc as n } from "./embeddableSrc.mjs";
|
|
4
|
-
import r from "@plitzi/sdk-shared/hooks
|
|
4
|
+
import { usePlitzi as r } from "@plitzi/sdk-shared/hooks";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
import o from "clsx";
|
|
7
7
|
//#region src/elements/media/Embed/Embed.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EmbedProps } from './Embed';
|
|
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 EmbedAttributes = AuthorableAttributes<EmbedProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "embed";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Embed: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Embed').EmbedProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "embed";
|
|
@@ -34,8 +34,8 @@ declare const Embed: {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
} & {
|
|
37
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
38
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
37
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
38
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
39
39
|
title?: string | undefined;
|
|
40
40
|
referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
|
|
41
41
|
src?: string | undefined;
|
|
@@ -15,7 +15,7 @@ export type FontAwesomeProps = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const FontAwesome: ({ ref, className, icon, size, iconAnimation, label }: FontAwesomeProps) => import('react').JSX.Element;
|
|
17
17
|
declare const _default: {
|
|
18
|
-
(props: import('
|
|
18
|
+
(props: import('../../..').WithElementProps<FontAwesomeProps>): import('react').JSX.Element;
|
|
19
19
|
displayName: string;
|
|
20
20
|
};
|
|
21
21
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FontAwesomeProps } from './FontAwesome';
|
|
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 FontAwesomeAttributes = AuthorableAttributes<FontAwesomeProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "fontAwesome";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const FontAwesome: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./FontAwesome').FontAwesomeProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "fontAwesome";
|
|
@@ -29,8 +29,8 @@ declare const FontAwesome: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
} & {
|
|
32
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
33
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
32
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
33
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
34
34
|
size?: string | undefined;
|
|
35
35
|
label?: string | undefined;
|
|
36
36
|
icon?: string | undefined;
|
|
@@ -36,7 +36,7 @@ export type ImageProps = {
|
|
|
36
36
|
};
|
|
37
37
|
declare const Image: ({ ref, className, src: srcProp, alt: altProp, decorative, fetchPriority, loadMode, sizes, width, height, resize }: ImageProps) => import('react').JSX.Element;
|
|
38
38
|
declare const _default: {
|
|
39
|
-
(props: import('
|
|
39
|
+
(props: import('../../..').WithElementProps<ImageProps>): import('react').JSX.Element;
|
|
40
40
|
displayName: string;
|
|
41
41
|
};
|
|
42
42
|
export default _default;
|
|
@@ -2,26 +2,26 @@ import e from "../../../Element/hocs/withElement.mjs";
|
|
|
2
2
|
import { RootElement as t } from "../../../Element/RootElement.mjs";
|
|
3
3
|
import { getFallbackSVGBase64 as n } from "./ImageHelper.mjs";
|
|
4
4
|
import { useCallback as r, useState as i } from "react";
|
|
5
|
-
import a from "@plitzi/sdk-shared/hooks
|
|
5
|
+
import { usePlitzi as a } from "@plitzi/sdk-shared/hooks";
|
|
6
6
|
import { useCommonStore as o } from "@plitzi/sdk-shared/store";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import { imageSrcSet as s, imageUrl as c, isResizableImage as l } from "@plitzi/sdk-shared/helpers";
|
|
8
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
9
|
+
import d from "clsx";
|
|
10
10
|
//#region src/elements/media/Image/Image.tsx
|
|
11
11
|
var f = 1280, p = n(), m = ({ ref: e, className: n = "", src: m, alt: h = "", decorative: g = !1, fetchPriority: _ = "auto", loadMode: v, sizes: y = "100vw", width: b, height: x, resize: S = !0 }) => {
|
|
12
|
-
let { settings: { previewMode: C } } = a(), w = m || p, T = g ? "" : h, [E, D] = i(void 0), O = E === w, k = r(() => D(w), [w]), A = O ? p : w, j = O ? { "data-plitzi-failed": w } : {}, M = v === "auto" ? void 0 : v, [N] = o("images.endpoint"), P = C && N && S && !O &&
|
|
13
|
-
src:
|
|
14
|
-
srcSet:
|
|
12
|
+
let { settings: { previewMode: C } } = a(), w = m || p, T = g ? "" : h, [E, D] = i(void 0), O = E === w, k = r(() => D(w), [w]), A = O ? p : w, j = O ? { "data-plitzi-failed": w } : {}, M = v === "auto" ? void 0 : v, [N] = o("images.endpoint"), P = C && N && S && !O && l(w) ? {
|
|
13
|
+
src: c(N, w, f),
|
|
14
|
+
srcSet: s(N, w),
|
|
15
15
|
sizes: y
|
|
16
16
|
} : { src: A }, F = {
|
|
17
17
|
...b ? { width: b } : {},
|
|
18
18
|
...x ? { height: x } : {}
|
|
19
19
|
};
|
|
20
|
-
return C ? /* @__PURE__ */
|
|
20
|
+
return C ? /* @__PURE__ */ u(t, {
|
|
21
21
|
tag: "img",
|
|
22
22
|
draggable: !1,
|
|
23
23
|
ref: e,
|
|
24
|
-
className:
|
|
24
|
+
className: d("plitzi-component__image", n),
|
|
25
25
|
...P,
|
|
26
26
|
...F,
|
|
27
27
|
alt: T,
|
|
@@ -29,10 +29,10 @@ var f = 1280, p = n(), m = ({ ref: e, className: n = "", src: m, alt: h = "", de
|
|
|
29
29
|
fetchPriority: _,
|
|
30
30
|
onError: O ? void 0 : k,
|
|
31
31
|
...j
|
|
32
|
-
}) : /* @__PURE__ */
|
|
32
|
+
}) : /* @__PURE__ */ u(t, {
|
|
33
33
|
ref: e,
|
|
34
|
-
className:
|
|
35
|
-
children: /* @__PURE__ */
|
|
34
|
+
className: d("plitzi-component__image image--edit-mode", n),
|
|
35
|
+
children: /* @__PURE__ */ u("img", {
|
|
36
36
|
draggable: !1,
|
|
37
37
|
src: A,
|
|
38
38
|
alt: T,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ImageProps } from './Image';
|
|
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 ImageAttributes = AuthorableAttributes<ImageProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "image";
|
|
7
7
|
readonly attributeValues: {
|
|
8
8
|
readonly fetchPriority: readonly string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Image: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Image').ImageProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "image";
|
|
@@ -37,8 +37,8 @@ declare const Image: {
|
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
} & {
|
|
40
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
41
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
40
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
41
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
42
42
|
resize?: boolean | undefined;
|
|
43
43
|
height?: number | undefined;
|
|
44
44
|
width?: number | undefined;
|
|
@@ -9,7 +9,7 @@ export type SvgProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const Svg: ({ ref, content, label, className }: SvgProps) => import('react').JSX.Element;
|
|
11
11
|
declare const _default: {
|
|
12
|
-
(props: import('
|
|
12
|
+
(props: import('../../..').WithElementProps<SvgProps>): import('react').JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { fitSvg as e, isSvgMarkup as t, sanitizeSvg as n } from "./sanitizeSvg.mjs";
|
|
2
|
+
import r from "../../../Element/hocs/withElement.mjs";
|
|
3
|
+
import { RootElement as i } from "../../../Element/RootElement.mjs";
|
|
4
4
|
import { useMemo as a } from "react";
|
|
5
|
-
import o from "@plitzi/sdk-shared/hooks
|
|
5
|
+
import { usePlitzi as o } from "@plitzi/sdk-shared/hooks";
|
|
6
6
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
import l from "clsx";
|
|
8
8
|
//#region src/elements/media/Svg/Svg.tsx
|
|
9
|
-
var u = ({ ref:
|
|
10
|
-
let { settings: { previewMode: p } } = o(), m = a(() =>
|
|
9
|
+
var u = ({ ref: r, content: u = "", label: d = "", className: f = "" }) => {
|
|
10
|
+
let { settings: { previewMode: p } } = o(), m = a(() => t(u) ? e(n(u)) : "", [u]), h = d ? {
|
|
11
11
|
role: "img",
|
|
12
12
|
"aria-label": d
|
|
13
13
|
} : { "aria-hidden": !0 };
|
|
14
|
-
return !m && !p ? /* @__PURE__ */ c(
|
|
15
|
-
ref:
|
|
14
|
+
return !m && !p ? /* @__PURE__ */ c(i, {
|
|
15
|
+
ref: r,
|
|
16
16
|
className: l("plitzi-component__svg svg--empty", f),
|
|
17
17
|
children: [
|
|
18
18
|
"Paste one ",
|
|
19
19
|
"<svg>…</svg>",
|
|
20
20
|
" here"
|
|
21
21
|
]
|
|
22
|
-
}) : /* @__PURE__ */ s(
|
|
22
|
+
}) : /* @__PURE__ */ s(i, {
|
|
23
23
|
tag: "span",
|
|
24
|
-
ref:
|
|
24
|
+
ref: r,
|
|
25
25
|
className: l("plitzi-component__svg", f),
|
|
26
26
|
...h,
|
|
27
27
|
dangerouslySetInnerHTML: { __html: m }
|
|
28
28
|
});
|
|
29
|
-
}, d =
|
|
29
|
+
}, d = r(u);
|
|
30
30
|
//#endregion
|
|
31
31
|
export { u as Svg, d as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SvgProps } from './Svg';
|
|
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 SvgAttributes = AuthorableAttributes<SvgProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "svg";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Svg: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Svg').SvgProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "svg";
|
|
@@ -30,8 +30,8 @@ declare const Svg: {
|
|
|
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
|
content?: string | undefined;
|
|
36
36
|
label?: string | undefined;
|
|
37
37
|
}>>;
|
|
@@ -10,7 +10,7 @@ export type VideoProps = {
|
|
|
10
10
|
};
|
|
11
11
|
declare const Video: ({ ref, src, autoPlay, playsInline, loop, muted, className }: VideoProps) => import('react').JSX.Element;
|
|
12
12
|
declare const _default: {
|
|
13
|
-
(props: import('
|
|
13
|
+
(props: import('../../..').WithElementProps<VideoProps>): import('react').JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "../../../Element/hocs/withElement.mjs";
|
|
2
2
|
import { RootElement as t } from "../../../Element/RootElement.mjs";
|
|
3
|
-
import n from "@plitzi/sdk-shared/hooks
|
|
3
|
+
import { usePlitzi as n } from "@plitzi/sdk-shared/hooks";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import i from "clsx";
|
|
6
6
|
//#region src/elements/media/Video/Video.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VideoProps } from './Video';
|
|
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 VideoAttributes = AuthorableAttributes<VideoProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "video";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Video: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Video').VideoProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "video";
|
|
@@ -32,8 +32,8 @@ declare const Video: {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
} & {
|
|
35
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
36
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
35
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
36
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
37
37
|
src?: string | undefined;
|
|
38
38
|
autoPlay?: boolean | undefined;
|
|
39
39
|
loop?: boolean | undefined;
|
|
@@ -92,7 +92,7 @@ export type ApiContainerProps = {
|
|
|
92
92
|
};
|
|
93
93
|
declare const ApiContainer: ({ ref, className, children, query, method, accessToken, when, headers, mockData, subType, credentials, singleRecord, pagination, pageParam, renderWhileLoading, loadingSlot, cache, staleTime, gcTime, refreshSeconds, connector, action, input }: ApiContainerProps) => import('react').JSX.Element;
|
|
94
94
|
declare const _default: {
|
|
95
|
-
(props: import('
|
|
95
|
+
(props: import('../../..').WithElementProps<ApiContainerProps>): import('react').JSX.Element;
|
|
96
96
|
displayName: string;
|
|
97
97
|
};
|
|
98
98
|
export default _default;
|
|
@@ -3,34 +3,34 @@ import t from "../../../Element/hocs/withElement.mjs";
|
|
|
3
3
|
import ee from "../../../Element/hooks/useElement.mjs";
|
|
4
4
|
import te from "../../../Element/hooks/useRscData.mjs";
|
|
5
5
|
import { RootElement as ne } from "../../../Element/RootElement.mjs";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import ae from "./helpers/
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import ce from "./
|
|
12
|
-
import le from "./hooks/
|
|
13
|
-
import ue from "./hooks/
|
|
14
|
-
import de from "./hooks/
|
|
15
|
-
import fe from "./hooks/
|
|
16
|
-
import pe from "
|
|
17
|
-
import me from "../../../dataSource/
|
|
18
|
-
import
|
|
19
|
-
import _e from "
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { emptyObject as a } from "@plitzi/sdk-shared/helpers
|
|
6
|
+
import re from "../../../dataSource/useRegisterSource.mjs";
|
|
7
|
+
import { isEmptyAnswer as ie } from "./helpers/isEmptyAnswer.mjs";
|
|
8
|
+
import { childrenWhile as ae } from "./helpers/loadingSlot.mjs";
|
|
9
|
+
import oe from "./helpers/providerOutcome.mjs";
|
|
10
|
+
import { queryInputOf as se } from "./helpers/queryInput.mjs";
|
|
11
|
+
import { serverMock as ce } from "./helpers/serverMock.mjs";
|
|
12
|
+
import le from "./hooks/useApi.mjs";
|
|
13
|
+
import ue from "./hooks/useAutoRefresh.mjs";
|
|
14
|
+
import de from "./hooks/useInputRefresh.mjs";
|
|
15
|
+
import fe from "./hooks/useProviderPagination.mjs";
|
|
16
|
+
import pe from "./hooks/useProviderWrite.mjs";
|
|
17
|
+
import me from "../../../dataSource/pathFields.mjs";
|
|
18
|
+
import he from "../../../dataSource/sourceStore.mjs";
|
|
19
|
+
import { use as ge, useCallback as n, useEffect as _e, useMemo as r, useRef as i } from "react";
|
|
20
|
+
import { usePlitzi as ve } from "@plitzi/sdk-shared/hooks";
|
|
21
|
+
import { useCommonStore as ye, useSdkStore as be } from "@plitzi/sdk-shared/store";
|
|
22
|
+
import { emptyObject as a } from "@plitzi/sdk-shared/helpers";
|
|
23
|
+
import { StoreProvider as xe } from "@plitzi/nexus/react";
|
|
23
24
|
import { jsx as o } from "react/jsx-runtime";
|
|
24
|
-
import { currentRscLocation as xe } from "@plitzi/sdk-shared/server/rsc/refreshRsc";
|
|
25
25
|
import Se from "clsx";
|
|
26
|
-
import Ce from "@plitzi/sdk-
|
|
27
|
-
import we from "@plitzi/sdk-
|
|
28
|
-
import Te from "@plitzi/sdk-shared/dataSource/
|
|
26
|
+
import { currentRscLocation as Ce } from "@plitzi/sdk-shared/server";
|
|
27
|
+
import { InteractionsContext as we } from "@plitzi/sdk-interactions";
|
|
28
|
+
import { getSourceName as Te } from "@plitzi/sdk-shared/dataSource/helpers";
|
|
29
29
|
import { QueryBuilderEvaluator as Ee } from "@plitzi/plitzi-ui/QueryBuilder";
|
|
30
30
|
import { useServerQuery as De } from "@plitzi/sdk-shared/queries";
|
|
31
31
|
//#region src/elements/provider/ApiContainer/ApiContainer.tsx
|
|
32
32
|
var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "get", accessToken: d = "", when: f = a, headers: p = a, mockData: m = "{}", subType: Oe = "", credentials: ke = "same-origin", singleRecord: Ae = !1, pagination: je = "none", pageParam: Me = "page", renderWhileLoading: Ne = !1, loadingSlot: h = "", cache: Pe = !1, staleTime: Fe = 30, gcTime: Ie = 300, refreshSeconds: Le = 0, connector: Re = "", action: ze = "", input: Be }) => {
|
|
33
|
-
let { id: g, visible: _, definition: { label: v = "Api Container", runtime: Ve, items: He } } = ee(), y = Ve === "server", { loaded: b, stale: x, location: S, elementData: C, refreshing: Ue, refresh: w, cancel: T } = te(), E =
|
|
33
|
+
let { id: g, visible: _, definition: { label: v = "Api Container", runtime: Ve, items: He } } = ee(), y = Ve === "server", { loaded: b, stale: x, location: S, elementData: C, refreshing: Ue, refresh: w, cancel: T } = te(), E = Te(e.sourceType, g), { settings: { previewMode: D } } = ve(), { interactionsManager: O } = ge(we), [[k, A, We]] = be([
|
|
34
34
|
"navigation.routeParams",
|
|
35
35
|
"navigation.queryParams",
|
|
36
36
|
"navigation.navigate"
|
|
@@ -49,7 +49,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
|
|
|
49
49
|
k,
|
|
50
50
|
A,
|
|
51
51
|
m
|
|
52
|
-
]), Ke = r(() => [g], [g]), { isLoading: qe, isFetching: Je, data: M, refetch: N, cancel: P, isSuccess: Ye, isError: Xe } =
|
|
52
|
+
]), Ke = r(() => [g], [g]), { isLoading: qe, isFetching: Je, data: M, refetch: N, cancel: P, isSuccess: Ye, isError: Xe } = le({
|
|
53
53
|
url: l,
|
|
54
54
|
method: u,
|
|
55
55
|
credentials: ke,
|
|
@@ -60,7 +60,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
|
|
|
60
60
|
staleTime: Fe,
|
|
61
61
|
gcTime: Ie,
|
|
62
62
|
tags: Ke
|
|
63
|
-
}), F = y && !!S && S !==
|
|
63
|
+
}), F = y && !!S && S !== Ce(), I = y && b && !F && C === null, L = y && !Re && !ze, R = r(() => y ? C || (b ? a : ce(m, L)) : M ?? a, [
|
|
64
64
|
y,
|
|
65
65
|
M,
|
|
66
66
|
C,
|
|
@@ -71,11 +71,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
|
|
|
71
71
|
...V.current,
|
|
72
72
|
...t
|
|
73
73
|
}), [w]), H = n(async (e) => {
|
|
74
|
-
|
|
75
|
-
N();
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
await w([g], V.current, { fresh: e });
|
|
74
|
+
y ? await w([g], V.current, { fresh: e }) : N();
|
|
79
75
|
}, [
|
|
80
76
|
y,
|
|
81
77
|
N,
|
|
@@ -90,30 +86,26 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
|
|
|
90
86
|
refresh: U
|
|
91
87
|
});
|
|
92
88
|
let W = n(async ({ input: e } = {}) => {
|
|
93
|
-
let t =
|
|
89
|
+
let t = se(e);
|
|
94
90
|
t && (V.current = t), await U();
|
|
95
91
|
}, [U]), G = n(() => {
|
|
96
|
-
|
|
97
|
-
T();
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
P();
|
|
92
|
+
y ? T() : P();
|
|
101
93
|
}, [
|
|
102
94
|
y,
|
|
103
95
|
T,
|
|
104
96
|
P
|
|
105
|
-
]), [$e] =
|
|
106
|
-
|
|
97
|
+
]), [$e] = ye(`schema.flat.${g}.attributes.input`, { mode: "mount" });
|
|
98
|
+
de({
|
|
107
99
|
enabled: y && b,
|
|
108
100
|
input: Be,
|
|
109
101
|
savedInput: $e,
|
|
110
102
|
performQuery: W
|
|
111
|
-
}),
|
|
103
|
+
}), ue({
|
|
112
104
|
seconds: Le,
|
|
113
105
|
enabled: _ && (y ? b && !F : j),
|
|
114
106
|
refresh: Qe
|
|
115
107
|
});
|
|
116
|
-
let K = R, et = r(() => Array.isArray(K.records) ? K.records : [], [K.records]), { records: q, isLoadingMore: J, goToPage: Y, loadMore: X } =
|
|
108
|
+
let K = R, et = r(() => Array.isArray(K.records) ? K.records : [], [K.records]), { records: q, isLoadingMore: J, goToPage: Y, loadMore: X } = fe({
|
|
117
109
|
elementId: g,
|
|
118
110
|
mode: je,
|
|
119
111
|
pageParam: Me,
|
|
@@ -121,7 +113,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
|
|
|
121
113
|
page: K.pageInfo?.page ?? 1,
|
|
122
114
|
refresh: Ze,
|
|
123
115
|
navigate: We
|
|
124
|
-
}), Z =
|
|
116
|
+
}), Z = oe({
|
|
125
117
|
serverMode: y,
|
|
126
118
|
isSuccess: Ye,
|
|
127
119
|
isError: Xe,
|
|
@@ -129,7 +121,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
|
|
|
129
121
|
rscPending: F,
|
|
130
122
|
elementData: C
|
|
131
123
|
}), Q = i(void 0);
|
|
132
|
-
|
|
124
|
+
_e(() => {
|
|
133
125
|
!z && g && Z && (Q.current?.data !== R || Q.current.outcome !== Z) && (Q.current = {
|
|
134
126
|
data: R,
|
|
135
127
|
outcome: Z
|
|
@@ -151,7 +143,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
|
|
|
151
143
|
...R,
|
|
152
144
|
...Array.isArray(K.records) ? { records: q } : a,
|
|
153
145
|
isLoading: z || J,
|
|
154
|
-
isEmpty:
|
|
146
|
+
isEmpty: ie(K, q, Ae),
|
|
155
147
|
hasError: I,
|
|
156
148
|
errorMessage: I ? "The data provider could not be reached" : "",
|
|
157
149
|
isStale: y && x
|
|
@@ -165,14 +157,14 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
|
|
|
165
157
|
I,
|
|
166
158
|
y,
|
|
167
159
|
x
|
|
168
|
-
]), tt = n(() =>
|
|
169
|
-
|
|
160
|
+
]), tt = n(() => me($), [$]);
|
|
161
|
+
re({
|
|
170
162
|
id: g,
|
|
171
163
|
source: E,
|
|
172
164
|
name: v || `API - ${g}`,
|
|
173
165
|
fields: tt
|
|
174
166
|
});
|
|
175
|
-
let { writeRecord: nt } =
|
|
167
|
+
let { writeRecord: nt } = pe({
|
|
176
168
|
elementId: g,
|
|
177
169
|
enabled: y,
|
|
178
170
|
onDone: U
|
|
@@ -212,19 +204,19 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
|
|
|
212
204
|
Y,
|
|
213
205
|
y,
|
|
214
206
|
nt
|
|
215
|
-
]), it = r(() => h && D ?
|
|
207
|
+
]), it = r(() => h && D ? ae(c, h, B) : c, [
|
|
216
208
|
c,
|
|
217
209
|
B,
|
|
218
210
|
h,
|
|
219
211
|
D
|
|
220
|
-
]), at = r(() =>
|
|
212
|
+
]), at = r(() => he(E, $), [$, E]);
|
|
221
213
|
return /* @__PURE__ */ o(ne, {
|
|
222
214
|
ref: t,
|
|
223
215
|
tag: !D && !He?.length ? "div" : Oe,
|
|
224
216
|
className: Se("plitzi-component__api-container", s),
|
|
225
217
|
interactionTriggers: e.triggers,
|
|
226
218
|
interactionCallbacks: rt,
|
|
227
|
-
children: (!B || Ne || h) && /* @__PURE__ */ o(
|
|
219
|
+
children: (!B || Ne || h) && /* @__PURE__ */ o(xe, {
|
|
228
220
|
inherit: "live",
|
|
229
221
|
name: `Api:${g}`,
|
|
230
222
|
value: at,
|