@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,76 +1,72 @@
|
|
|
1
1
|
import e from "../../../components/ElementAdvancedEditor.mjs";
|
|
2
2
|
import { use as t, useCallback as n, useState as r } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import s from "
|
|
6
|
-
import c from "@plitzi/
|
|
7
|
-
import l from "@plitzi/plitzi-ui/
|
|
8
|
-
import u from "@plitzi/
|
|
9
|
-
import d from "@plitzi/sdk-shared/network
|
|
3
|
+
import { useNetwork as i } from "@plitzi/sdk-shared/hooks";
|
|
4
|
+
import { get as a } from "@plitzi/plitzi-ui/helpers";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { useTheme as c } from "@plitzi/sdk-shared/theme";
|
|
7
|
+
import l from "@plitzi/plitzi-ui/Button";
|
|
8
|
+
import u from "@plitzi/plitzi-ui/CodeMirror";
|
|
9
|
+
import { NetworkContext as d } from "@plitzi/sdk-shared/network";
|
|
10
10
|
import f from "@plitzi/plitzi-ui/Alert";
|
|
11
11
|
import p from "@plitzi/plitzi-ui/Heading";
|
|
12
12
|
//#region src/elements/advanced/BlockJsx/Settings.tsx
|
|
13
13
|
var m = ({ content: m = "", props: h = "{}", onUpdate: g }) => {
|
|
14
|
-
let { resolvedTheme: _ } =
|
|
14
|
+
let { resolvedTheme: _ } = c(), { server: v, webKey: y } = t(d), [b, x] = r(void 0), { networkQuery: S, networkLoading: C } = i({
|
|
15
15
|
initLoading: !1,
|
|
16
16
|
server: v,
|
|
17
17
|
webKey: y
|
|
18
18
|
}), w = n(async (e) => {
|
|
19
19
|
let t = await S("/utils/transform-jsx", { data: e }, "post");
|
|
20
20
|
if (!t) return;
|
|
21
|
-
let n =
|
|
22
|
-
|
|
23
|
-
x(i(t, "error")), g?.("contentCache", "");
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
x(void 0), g?.("contentCache", btoa(n));
|
|
21
|
+
let n = a(t, "data");
|
|
22
|
+
n ? (x(void 0), g?.("contentCache", btoa(n))) : (x(a(t, "error")), g?.("contentCache", ""));
|
|
27
23
|
}, [g, S]), T = n(() => void w(m), [w, m]), E = n((e) => g?.("content", e), [g]), D = n((e) => g?.("props", e), [g]);
|
|
28
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ s("div", {
|
|
29
25
|
className: "flex h-full flex-col",
|
|
30
|
-
children: [/* @__PURE__ */
|
|
26
|
+
children: [/* @__PURE__ */ o(e, {
|
|
31
27
|
className: "min-h-0 grow basis-0",
|
|
32
28
|
value: m,
|
|
33
29
|
mode: "js",
|
|
34
30
|
onChange: E
|
|
35
|
-
}), /* @__PURE__ */
|
|
31
|
+
}), /* @__PURE__ */ s("div", {
|
|
36
32
|
className: "flex flex-col py-2",
|
|
37
33
|
children: [
|
|
38
|
-
b && /* @__PURE__ */
|
|
34
|
+
b && /* @__PURE__ */ o(f, {
|
|
39
35
|
className: "mb-4",
|
|
40
36
|
intent: "error",
|
|
41
37
|
size: "sm",
|
|
42
|
-
children: /* @__PURE__ */
|
|
38
|
+
children: /* @__PURE__ */ s("div", {
|
|
43
39
|
className: "flex flex-col text-xs",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ o("div", {
|
|
45
41
|
className: "whitespace-pre",
|
|
46
42
|
children: b.message
|
|
47
|
-
}), /* @__PURE__ */
|
|
43
|
+
}), /* @__PURE__ */ s("div", {
|
|
48
44
|
className: "my-2",
|
|
49
|
-
children: ["Reason: ", /* @__PURE__ */
|
|
45
|
+
children: ["Reason: ", /* @__PURE__ */ o("div", {
|
|
50
46
|
className: "inline-block font-bold",
|
|
51
47
|
children: b.reasonCode
|
|
52
48
|
})]
|
|
53
49
|
})]
|
|
54
50
|
})
|
|
55
51
|
}),
|
|
56
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ o("div", {
|
|
57
53
|
className: "flex items-center justify-end",
|
|
58
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ s(l, {
|
|
59
55
|
size: "sm",
|
|
60
56
|
onClick: T,
|
|
61
57
|
disabled: C,
|
|
62
|
-
children: [!C && "Compile", C && /* @__PURE__ */
|
|
58
|
+
children: [!C && "Compile", C && /* @__PURE__ */ s("div", {
|
|
63
59
|
className: "flex items-center justify-center",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
60
|
+
children: [/* @__PURE__ */ o("i", { className: "fas fa-sync fa-spin mr-1" }), "Compiling..."]
|
|
65
61
|
})]
|
|
66
62
|
})
|
|
67
63
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ s("div", {
|
|
69
65
|
className: "flex flex-col",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
66
|
+
children: [/* @__PURE__ */ o(p, {
|
|
71
67
|
as: "h5",
|
|
72
68
|
children: "Properties"
|
|
73
|
-
}), /* @__PURE__ */
|
|
69
|
+
}), /* @__PURE__ */ o(u, {
|
|
74
70
|
size: "sm",
|
|
75
71
|
className: "min-h-40 p-0",
|
|
76
72
|
value: h,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BlockJsxProps } from './BlockJsx';
|
|
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 BlockJsxAttributes = AuthorableAttributes<BlockJsxProps> & {
|
|
5
5
|
content?: string;
|
|
6
6
|
allowEmptyRender?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
8
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
9
9
|
readonly type: "blockJsx";
|
|
10
10
|
readonly content: {
|
|
11
11
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const BlockJsx: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./BlockJsx').BlockJsxProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "blockJsx";
|
|
@@ -27,6 +27,6 @@ declare const BlockJsx: {
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
} & {
|
|
30
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
31
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
30
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
31
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<import('./declaration').BlockJsxAttributes>;
|
|
32
32
|
export default BlockJsx;
|
|
@@ -10,7 +10,7 @@ export type CustomProps = {
|
|
|
10
10
|
};
|
|
11
11
|
declare const Custom: ({ ref, className, renderType, settings, isPlugin, assets, scriptUrl }: CustomProps) => import('react').JSX.Element;
|
|
12
12
|
declare const _default: {
|
|
13
|
-
(props: import('
|
|
13
|
+
(props: import('../../..').WithElementProps<CustomProps>): import('react').JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
@@ -4,8 +4,8 @@ import n from "../../../Element/hocs/withElement.mjs";
|
|
|
4
4
|
import r from "../../../Element/hooks/useElement.mjs";
|
|
5
5
|
import { RootElement as i } from "../../../Element/RootElement.mjs";
|
|
6
6
|
import { use as a, useEffect as o, useMemo as s } from "react";
|
|
7
|
-
import c from "@plitzi/sdk-shared/elements
|
|
8
|
-
import l from "@plitzi/sdk-shared/plugins
|
|
7
|
+
import { ComponentContext as c } from "@plitzi/sdk-shared/elements";
|
|
8
|
+
import { PluginsContext as l } from "@plitzi/sdk-shared/plugins";
|
|
9
9
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
10
|
import f from "clsx";
|
|
11
11
|
//#region src/elements/advanced/Custom/Custom.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../useSettingsUpdate.mjs";
|
|
2
2
|
import { useCallback as t, useEffect as n, useEffectEvent as r, useState as i } from "react";
|
|
3
3
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
-
import c from "@plitzi/sdk-shared/theme
|
|
4
|
+
import { useTheme as c } from "@plitzi/sdk-shared/theme";
|
|
5
5
|
import l from "@plitzi/plitzi-ui/CodeMirror";
|
|
6
6
|
import u from "@plitzi/plitzi-ui/Alert";
|
|
7
7
|
import d from "@plitzi/plitzi-ui/Checkbox";
|
|
@@ -17,11 +17,8 @@ var m = ({ renderType: m = "", settings: h = "{}", isPlugin: g = !1, assets: _ =
|
|
|
17
17
|
S(!1);
|
|
18
18
|
}
|
|
19
19
|
}, [y]), T = t((e) => y?.("isPlugin", e.target.checked), [y]), E = r(() => {
|
|
20
|
-
if (!y || !h) {
|
|
21
|
-
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
try {
|
|
20
|
+
if (!y || !h) y?.("settings", "{}"), S(!0);
|
|
21
|
+
else try {
|
|
25
22
|
let e = JSON.stringify(JSON.parse(h), null, 2);
|
|
26
23
|
e !== h && y("settings", e), S(!0);
|
|
27
24
|
} catch {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CustomProps } from './Custom';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
3
|
/**
|
|
4
4
|
* What this element can be authored with — its component's own props, minus what the runtime supplies — and
|
|
5
5
|
* anything else: the component its `renderType` names reads its own attributes off this element (a chart's
|
|
6
6
|
* `series`, a map's `height`), so the element carries whatever that component declares.
|
|
7
7
|
*/
|
|
8
8
|
export type CustomAttributes = AuthorableAttributes<CustomProps> & Record<string, unknown>;
|
|
9
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
9
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
10
10
|
readonly type: "custom";
|
|
11
11
|
readonly content: {
|
|
12
12
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Custom: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Custom').CustomProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "custom";
|
|
@@ -33,6 +33,6 @@ declare const Custom: {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
} & {
|
|
36
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
37
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
36
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
37
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<import('./declaration').CustomAttributes>;
|
|
38
38
|
export default Custom;
|
|
@@ -7,7 +7,7 @@ export type NodeHtmlProps<T extends keyof JSX.IntrinsicElements = 'span'> = {
|
|
|
7
7
|
} & Omit<HTMLAttributes<T>, 'class'>;
|
|
8
8
|
declare const NodeHtml: ({ ref, className, subType, children, ...otherProps }: NodeHtmlProps) => JSX.Element;
|
|
9
9
|
declare const _default: {
|
|
10
|
-
(props: import('
|
|
10
|
+
(props: import('../../..').WithElementProps<NodeHtmlProps<"span">>): JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NodeHtmlProps } from './NodeHtml';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
2
|
+
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
|
|
3
3
|
/**
|
|
4
4
|
* What this element can be authored with — its component's own props, minus what the runtime supplies.
|
|
5
5
|
*
|
|
@@ -9,7 +9,7 @@ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
|
|
|
9
9
|
* settable through the element's `attributes` on a spec written out longhand.
|
|
10
10
|
*/
|
|
11
11
|
export type NodeHtmlAttributes = AuthorableAttributes<NodeHtmlProps, 'id'>;
|
|
12
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
12
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
13
13
|
readonly type: "nodeHtml";
|
|
14
14
|
readonly content: {
|
|
15
15
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const NodeHtml: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./NodeHtml').NodeHtmlProps<"span">>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "nodeHtml";
|
|
@@ -38,8 +38,8 @@ declare const NodeHtml: {
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
} & {
|
|
41
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
42
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
41
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
42
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
43
43
|
content?: string | undefined | undefined;
|
|
44
44
|
style?: import('react').CSSProperties | undefined;
|
|
45
45
|
color?: string | undefined | undefined;
|
|
@@ -12,7 +12,7 @@ export type PlitziSdkAttributes = {
|
|
|
12
12
|
*/
|
|
13
13
|
offlineData?: OfflineDataRaw;
|
|
14
14
|
};
|
|
15
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
15
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
16
16
|
readonly type: "plitziSdk";
|
|
17
17
|
readonly content: {
|
|
18
18
|
readonly attributes: {
|
|
@@ -9,7 +9,7 @@ export type ReferenceProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const Reference: ({ ref, className, referenceType, referenceId }: ReferenceProps) => import('react').JSX.Element;
|
|
11
11
|
declare const _default: {
|
|
12
|
-
(props: import('
|
|
12
|
+
(props: import('../../..').WithElementProps<ReferenceProps>): import('react').JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
@@ -7,13 +7,13 @@ import { RootElement as a } from "../../../Element/RootElement.mjs";
|
|
|
7
7
|
import o from "../../../Element/PluginManager.mjs";
|
|
8
8
|
import s from "../../../Element/ReplicaProvider.mjs";
|
|
9
9
|
import { useId as c, useMemo as l } from "react";
|
|
10
|
-
import u from "@plitzi/sdk-shared/hooks
|
|
10
|
+
import { usePlitzi as u } from "@plitzi/sdk-shared/hooks";
|
|
11
11
|
import { useCommonStore as d } from "@plitzi/sdk-shared/store";
|
|
12
|
-
import { COMPONENT_PROPS_SOURCE as f } from "@plitzi/sdk-shared/schema
|
|
12
|
+
import { COMPONENT_PROPS_SOURCE as f } from "@plitzi/sdk-shared/schema";
|
|
13
13
|
import { StoreProvider as p } from "@plitzi/nexus/react";
|
|
14
14
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
15
15
|
import g from "clsx";
|
|
16
|
-
import { HIDDEN_CLASS as _ } from "@plitzi/sdk-shared/style
|
|
16
|
+
import { HIDDEN_CLASS as _ } from "@plitzi/sdk-shared/style";
|
|
17
17
|
//#region src/elements/advanced/Reference/Reference.tsx
|
|
18
18
|
var v = (e, t) => Object.fromEntries(Object.entries(e.props ?? {}).map(([e, n]) => [e, t[e] ?? n.default ?? null])), y = (t, n) => g(t, { [_]: !e(n.visibility) }), b = ({ instance: e, instanceId: t, items: r, plitziElementLayout: i, previewMode: a }) => {
|
|
19
19
|
let o = l(() => ({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReferenceProps } from './Reference';
|
|
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 ReferenceAttributes = AuthorableAttributes<ReferenceProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "reference";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Reference: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Reference').ReferenceProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "reference";
|
|
@@ -27,8 +27,8 @@ declare const Reference: {
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
} & {
|
|
30
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
31
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
30
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
31
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
32
32
|
referenceId: string;
|
|
33
33
|
referenceType: "element" | "component";
|
|
34
34
|
}>>;
|
|
@@ -47,7 +47,7 @@ export type ButtonProps = {
|
|
|
47
47
|
};
|
|
48
48
|
declare const Button: ({ ref, className, children, contentPlacement, content, icon, iconPlacement, subType, disabled, ariaExpanded, ariaPressed, controls, title, label }: ButtonProps) => import('react').JSX.Element;
|
|
49
49
|
declare const _default: {
|
|
50
|
-
(props: import('
|
|
50
|
+
(props: import('../../..').WithElementProps<ButtonProps>): import('react').JSX.Element;
|
|
51
51
|
displayName: string;
|
|
52
52
|
};
|
|
53
53
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import e from "../../../Element/hocs/withElement.mjs";
|
|
|
2
2
|
import t from "../../../Element/hooks/useElement.mjs";
|
|
3
3
|
import { RootElement as n } from "../../../Element/RootElement.mjs";
|
|
4
4
|
import r from "../../../Element/ElementWords.mjs";
|
|
5
|
-
import i from "@plitzi/sdk-shared/hooks
|
|
5
|
+
import { usePlitzi as i } from "@plitzi/sdk-shared/hooks";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
7
|
import o from "clsx";
|
|
8
8
|
//#region src/elements/basic/Button/Button.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ButtonProps } from './Button';
|
|
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 ButtonAttributes = AuthorableAttributes<ButtonProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "button";
|
|
7
7
|
readonly attributeValues: {
|
|
8
8
|
readonly subType: readonly string[];
|
|
@@ -123,7 +123,7 @@ declare const declaration: import('@plitzi/sdk-shared/authoring/declare').Declar
|
|
|
123
123
|
controls?: string | undefined;
|
|
124
124
|
icon?: string | undefined;
|
|
125
125
|
subType?: "button" | "submit" | "reset" | undefined;
|
|
126
|
-
iconPlacement?: import('
|
|
126
|
+
iconPlacement?: import('../../declarations').IconPlacement | undefined;
|
|
127
127
|
contentPlacement?: "before" | "after" | undefined;
|
|
128
128
|
ariaExpanded?: boolean | undefined;
|
|
129
129
|
ariaPressed?: boolean | undefined;
|
|
@@ -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/basic/Button/declaration.ts
|
|
3
3
|
var n = {
|
|
4
4
|
"padding-top": "6px",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Button: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Button').ButtonProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "button";
|
|
@@ -115,8 +115,8 @@ declare const Button: {
|
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
117
|
} & {
|
|
118
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
119
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
118
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
119
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
120
120
|
content?: string | undefined;
|
|
121
121
|
label?: string | undefined;
|
|
122
122
|
title?: string | undefined;
|
|
@@ -124,7 +124,7 @@ declare const Button: {
|
|
|
124
124
|
controls?: string | undefined;
|
|
125
125
|
icon?: string | undefined;
|
|
126
126
|
subType?: "button" | "submit" | "reset" | undefined;
|
|
127
|
-
iconPlacement?: import('
|
|
127
|
+
iconPlacement?: import('../../declarations').IconPlacement | undefined;
|
|
128
128
|
contentPlacement?: "before" | "after" | undefined;
|
|
129
129
|
ariaExpanded?: boolean | undefined;
|
|
130
130
|
ariaPressed?: boolean | undefined;
|
|
@@ -14,7 +14,7 @@ export type DropdownProps = {
|
|
|
14
14
|
};
|
|
15
15
|
declare const Dropdown: ({ ref: refProp, children, className, popupPlacement, openPopup, backgroundDisabled, closeOnClickBackground, closeOnClickPopup, containerTopOffset, containerLeftOffset, disabled }: DropdownProps) => import('react').JSX.Element;
|
|
16
16
|
declare const _default: {
|
|
17
|
-
(props: import('
|
|
17
|
+
(props: import('../../..').WithElementProps<DropdownProps>): import('react').JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -5,11 +5,11 @@ import r from "./DropdownContext.mjs";
|
|
|
5
5
|
import i from "./useDropdown.mjs";
|
|
6
6
|
import a from "./useDropdownTrigger.mjs";
|
|
7
7
|
import { useCallback as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
8
|
-
import d from "@plitzi/sdk-shared/hooks
|
|
9
|
-
import {
|
|
10
|
-
import m from "
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
8
|
+
import { usePlitzi as d } from "@plitzi/sdk-shared/hooks";
|
|
9
|
+
import { spaceRootOf as f } from "@plitzi/sdk-shared/helpers";
|
|
10
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
|
+
import h from "clsx";
|
|
12
|
+
import { createPortal as g } from "react-dom";
|
|
13
13
|
//#region src/elements/basic/Dropdown/Dropdown.tsx
|
|
14
14
|
var _ = ({ ref: e, children: _, className: v = "", popupPlacement: y = "bottom", openPopup: b = !1, backgroundDisabled: x = !1, closeOnClickBackground: S = !0, closeOnClickPopup: C = !0, containerTopOffset: w = 5, containerLeftOffset: T = 5, disabled: E = !1 }) => {
|
|
15
15
|
let { setElementState: D, definition: { styleSelectors: O } } = t(), { settings: { previewMode: k }, utils: { getWindow: A } } = d(), j = l(null), M = e ?? j, N = l(null), P = l(null), F = c(() => A(), [A]), I = o((e) => {
|
|
@@ -36,7 +36,7 @@ var _ = ({ ref: e, children: _, className: v = "", popupPlacement: y = "bottom",
|
|
|
36
36
|
onChange: L
|
|
37
37
|
}), [V, H] = u(null);
|
|
38
38
|
s(() => {
|
|
39
|
-
b && k && !V && H(
|
|
39
|
+
b && k && !V && H(f(M.current));
|
|
40
40
|
}, [
|
|
41
41
|
b,
|
|
42
42
|
k,
|
|
@@ -62,19 +62,19 @@ var _ = ({ ref: e, children: _, className: v = "", popupPlacement: y = "bottom",
|
|
|
62
62
|
b,
|
|
63
63
|
B,
|
|
64
64
|
U
|
|
65
|
-
]), q = b && x && k && /* @__PURE__ */
|
|
65
|
+
]), q = b && x && k && /* @__PURE__ */ p("div", {
|
|
66
66
|
ref: P,
|
|
67
|
-
className:
|
|
67
|
+
className: h("plitzi-component__dropdown__background-container", O.backgroundContainer),
|
|
68
68
|
onClick: I
|
|
69
69
|
});
|
|
70
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ m(n, {
|
|
71
71
|
ref: M,
|
|
72
|
-
className:
|
|
72
|
+
className: h("plitzi-component__dropdown", v, { "container--empty--skip": !k && !_ }),
|
|
73
73
|
onClick: G,
|
|
74
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ p(r, {
|
|
75
75
|
value: K,
|
|
76
76
|
children: _
|
|
77
|
-
}), q && U ?
|
|
77
|
+
}), q && U ? g(q, U) : q]
|
|
78
78
|
});
|
|
79
79
|
}, v = e(_);
|
|
80
80
|
//#endregion
|
|
@@ -6,7 +6,7 @@ export type DropdownPopupProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const DropdownPopup: ({ ref, className, children }: DropdownPopupProps) => import('react').JSX.Element;
|
|
8
8
|
declare const _default: {
|
|
9
|
-
(props: import('
|
|
9
|
+
(props: import('../../../..').WithElementProps<DropdownPopupProps>): import('react').JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DropdownPopupProps } from './DropdownPopup';
|
|
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 DropdownPopupAttributes = AuthorableAttributes<DropdownPopupProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "dropdownPopup";
|
|
7
7
|
readonly ancestorType: "dropdown";
|
|
8
8
|
readonly content: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const DropdownPopup: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../../..').WithElementProps<import('./DropdownPopup').DropdownPopupProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "dropdownPopup";
|
|
@@ -50,6 +50,6 @@ declare const DropdownPopup: {
|
|
|
50
50
|
};
|
|
51
51
|
readonly initialItems: readonly [];
|
|
52
52
|
} & {
|
|
53
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
54
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
53
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
54
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
55
55
|
export default DropdownPopup;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DropdownProps } from './Dropdown';
|
|
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 DropdownAttributes = AuthorableAttributes<DropdownProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "dropdown";
|
|
7
7
|
readonly attributeValues: {
|
|
8
8
|
readonly popupPlacement: 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/basic/Dropdown/declaration.ts
|
|
3
3
|
var n = e()({
|
|
4
4
|
type: "dropdown",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare const Dropdown: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Dropdown').DropdownProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
plugins: {
|
|
6
6
|
dropdownPopup: {
|
|
7
|
-
(props: import('
|
|
7
|
+
(props: import('../../..').WithElementProps<import('./DropdownPopup/DropdownPopup').DropdownPopupProps>): import('react').JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
} & {
|
|
10
10
|
readonly type: "dropdownPopup";
|
|
@@ -55,8 +55,8 @@ declare const Dropdown: {
|
|
|
55
55
|
};
|
|
56
56
|
readonly initialItems: readonly [];
|
|
57
57
|
} & {
|
|
58
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
59
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
58
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
59
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
|
|
60
60
|
};
|
|
61
61
|
type: "dropdown";
|
|
62
62
|
attributeValues: {
|
|
@@ -106,7 +106,7 @@ declare const Dropdown: {
|
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
109
|
+
} & import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
110
110
|
initialItems: readonly ["dropdownPopup"];
|
|
111
111
|
__attributes: Partial<{
|
|
112
112
|
disabled?: boolean | undefined;
|