@plitzi/sdk-elements 0.39.4 → 0.39.7
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 +39 -0
- package/dist/components/ElementAdvancedEditor.mjs +4 -4
- package/dist/components/SettingsSection/SettingsSection.d.ts +19 -0
- package/dist/components/SettingsSection/SettingsSection.mjs +37 -0
- package/dist/components/SettingsSection/index.d.ts +2 -0
- package/dist/components/SettingsSection/index.mjs +1 -0
- package/dist/elements/advanced/BlockJsx/declaration.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/declaration.mjs +1 -1
- package/dist/elements/advanced/BlockJsx/index.d.ts +1 -1
- package/dist/elements/basic/Link/Settings.mjs +1 -1
- package/dist/elements/basic/RichText/Settings.mjs +1 -1
- package/dist/elements/declarations/index.d.ts +7 -3
- package/dist/elements/internal/LayoutContainer/Settings.mjs +1 -1
- package/dist/elements/internal/Page/Settings.mjs +323 -285
- package/dist/elements/internal/Page/settingsSummary.d.ts +26 -0
- package/dist/elements/internal/Page/settingsSummary.mjs +22 -0
- package/dist/elements/media/Image/Settings.mjs +2 -2
- package/dist/elements/media/Video/Settings.mjs +2 -2
- package/dist/elements/provider/ApiContainer/Settings.mjs +6 -6
- package/dist/elements/provider/ApiContainer/components/FiltersInput/FiltersInput.mjs +1 -1
- package/dist/elements/structure/Pagination/Settings.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainer.mjs +15 -11
- package/dist/elements/structure/TabContainer/TabContainerItem/Settings.d.ts +6 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/Settings.mjs +24 -3
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +7 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.mjs +66 -38
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +6 -2
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +6 -2
- package/dist/elements/structure/TabContainer/TabContainerItem/openTabFromHash.d.ts +10 -0
- package/dist/elements/structure/TabContainer/TabContainerItem/openTabFromHash.mjs +18 -0
- package/dist/elements/structure/TabContainer/index.d.ts +6 -2
- package/dist/index.d.ts +7 -3
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @plitzi/sdk-elements
|
|
2
2
|
|
|
3
|
+
## 0.39.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 081d94e: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
|
|
8
|
+
`@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
|
|
9
|
+
- Updated dependencies [081d94e]
|
|
10
|
+
- @plitzi/sdk-auth@0.39.7
|
|
11
|
+
- @plitzi/sdk-event-bridge@0.39.7
|
|
12
|
+
- @plitzi/sdk-interactions@0.39.7
|
|
13
|
+
- @plitzi/sdk-navigation@0.39.7
|
|
14
|
+
- @plitzi/sdk-schema@0.39.7
|
|
15
|
+
- @plitzi/sdk-shared@0.39.7
|
|
16
|
+
|
|
17
|
+
## 0.39.6
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- @plitzi/sdk-auth@0.39.6
|
|
22
|
+
- @plitzi/sdk-event-bridge@0.39.6
|
|
23
|
+
- @plitzi/sdk-interactions@0.39.6
|
|
24
|
+
- @plitzi/sdk-navigation@0.39.6
|
|
25
|
+
- @plitzi/sdk-schema@0.39.6
|
|
26
|
+
- @plitzi/sdk-shared@0.39.6
|
|
27
|
+
|
|
28
|
+
## 0.39.5
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- 4427674: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
|
|
33
|
+
`@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
|
|
34
|
+
- Updated dependencies [4427674]
|
|
35
|
+
- @plitzi/sdk-auth@0.39.5
|
|
36
|
+
- @plitzi/sdk-event-bridge@0.39.5
|
|
37
|
+
- @plitzi/sdk-interactions@0.39.5
|
|
38
|
+
- @plitzi/sdk-navigation@0.39.5
|
|
39
|
+
- @plitzi/sdk-schema@0.39.5
|
|
40
|
+
- @plitzi/sdk-shared@0.39.5
|
|
41
|
+
|
|
3
42
|
## 0.39.4
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
|
@@ -52,7 +52,7 @@ var m = ({ className: m = "", value: h = "", mode: g = "js", onChange: _ }) => {
|
|
|
52
52
|
/* @__PURE__ */ o(u, {
|
|
53
53
|
intent: "custom",
|
|
54
54
|
size: "sm",
|
|
55
|
-
className: "mr-2 rounded-sm
|
|
55
|
+
className: "bg-ui-panel mr-2 rounded-sm p-2",
|
|
56
56
|
onClick: E,
|
|
57
57
|
title: "Auto format",
|
|
58
58
|
disabled: C,
|
|
@@ -63,13 +63,13 @@ var m = ({ className: m = "", value: h = "", mode: g = "js", onChange: _ }) => {
|
|
|
63
63
|
children: [/* @__PURE__ */ o(f.Trigger, { children: /* @__PURE__ */ o(u, {
|
|
64
64
|
intent: "custom",
|
|
65
65
|
size: "sm",
|
|
66
|
-
className: "mr-2 rounded-sm
|
|
66
|
+
className: "bg-ui-panel mr-2 rounded-sm p-2",
|
|
67
67
|
title: "Plugins",
|
|
68
68
|
children: /* @__PURE__ */ o(u.Icon, { icon: "fa-solid fa-puzzle-piece" })
|
|
69
69
|
}) }), /* @__PURE__ */ o(f.Content, { children: /* @__PURE__ */ o("ul", {
|
|
70
70
|
className: "max-h-75 overflow-y-auto",
|
|
71
71
|
children: w.map((e) => /* @__PURE__ */ o("li", {
|
|
72
|
-
className: "border-
|
|
72
|
+
className: "border-ui-line-strong px-4 py-1 text-sm capitalize not-first:border-t",
|
|
73
73
|
onClick: D(e),
|
|
74
74
|
children: e
|
|
75
75
|
}, e))
|
|
@@ -80,7 +80,7 @@ var m = ({ className: m = "", value: h = "", mode: g = "js", onChange: _ }) => {
|
|
|
80
80
|
children: [/* @__PURE__ */ o(f.Trigger, { children: /* @__PURE__ */ o(u, {
|
|
81
81
|
intent: "custom",
|
|
82
82
|
size: "sm",
|
|
83
|
-
className: "rounded-sm
|
|
83
|
+
className: "bg-ui-panel rounded-sm p-2",
|
|
84
84
|
children: /* @__PURE__ */ o(u.Icon, { icon: "fa-solid fa-circle-info" })
|
|
85
85
|
}) }), /* @__PURE__ */ o(f.Content, { children: /* @__PURE__ */ s("div", {
|
|
86
86
|
className: "flex w-60 flex-col items-center justify-center gap-2 p-2 text-center text-sm",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type SettingsSectionProps = {
|
|
3
|
+
/** Where its open or closed state is kept, one segment: `page-access`. */
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
/** What it holds, said on its header whether it is open or not: closing it hides no setting. */
|
|
7
|
+
summary: string;
|
|
8
|
+
/** A summary worth seeing — a setting that changes who gets the page — drawn in the accent. */
|
|
9
|
+
highlight?: boolean;
|
|
10
|
+
defaultOpen?: boolean;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* One block of an element's settings, the builder's own collapsible section (its connectors' form): a header that
|
|
15
|
+
* says what the block holds in a few words, and the fields under it. A long form opens with what an author touches and
|
|
16
|
+
* keeps the rest one click away — each closed header carrying its value, so nothing is set where nobody sees it.
|
|
17
|
+
*/
|
|
18
|
+
declare const SettingsSection: ({ id, title, summary, highlight, defaultOpen, children }: SettingsSectionProps) => import('react').JSX.Element;
|
|
19
|
+
export default SettingsSection;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import n from "clsx";
|
|
3
|
+
import r from "@plitzi/plitzi-ui/ContainerCollapsable";
|
|
4
|
+
import i from "@plitzi/plitzi-ui/hooks/useStorage";
|
|
5
|
+
import a from "@plitzi/plitzi-ui/Icon";
|
|
6
|
+
// src/components/SettingsSection/SettingsSection.tsx
|
|
7
|
+
var o = ({ id: o, title: s, summary: c, highlight: l = !1, defaultOpen: u = !1, children: d }) => {
|
|
8
|
+
let [f, p] = i(`builder-state.elementSettings.${o.replace(/[^a-zA-Z0-9_-]/g, "-")}`, !u, "localStorage", !1);
|
|
9
|
+
return /* @__PURE__ */ t(r, {
|
|
10
|
+
collapsed: f,
|
|
11
|
+
onChange: p,
|
|
12
|
+
children: [/* @__PURE__ */ e(r.Header, {
|
|
13
|
+
className: n("dark:bg-ui-active/50 dark:hover:bg-ui-hover/60 h-8 bg-slate-100 px-1 hover:bg-slate-200/70", { "border-ui-line border-b": f }),
|
|
14
|
+
title: /* @__PURE__ */ t("div", {
|
|
15
|
+
className: "flex min-w-0 items-baseline gap-2",
|
|
16
|
+
children: [/* @__PURE__ */ e("span", {
|
|
17
|
+
className: "text-xs font-medium whitespace-nowrap",
|
|
18
|
+
children: s
|
|
19
|
+
}), /* @__PURE__ */ e("span", {
|
|
20
|
+
className: n("truncate text-xs", {
|
|
21
|
+
"text-primary-500": l,
|
|
22
|
+
"text-ui-fg-subtle": !l
|
|
23
|
+
}),
|
|
24
|
+
title: c,
|
|
25
|
+
children: c
|
|
26
|
+
})]
|
|
27
|
+
}),
|
|
28
|
+
placement: "right",
|
|
29
|
+
iconCollapsed: /* @__PURE__ */ e(a, { icon: "fa-solid fa-angle-down" }),
|
|
30
|
+
iconExpanded: /* @__PURE__ */ e(a, { icon: "fa-solid fa-angle-up" })
|
|
31
|
+
}), /* @__PURE__ */ e(r.Content, {
|
|
32
|
+
className: n("flex flex-col gap-3 px-1 py-2", { "border-ui-line border-b": !f }),
|
|
33
|
+
children: d
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
export { o as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SettingsSection.mjs";
|
|
@@ -9,7 +9,7 @@ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElemen
|
|
|
9
9
|
readonly type: "blockJsx";
|
|
10
10
|
readonly content: {
|
|
11
11
|
readonly attributes: {
|
|
12
|
-
readonly content: "import { useCallback } from \"react\";\nimport { JsxManager } from \"@plitzi/plitzi-sdk\";\n\nconst BlockJsx = ({ internalProps, content, content2 }) => {\n
|
|
12
|
+
readonly content: "import { useCallback } from \"react\";\nimport { JsxManager } from \"@plitzi/plitzi-sdk\";\n\nconst BlockJsx = ({ internalProps, content, content2 }) => {\n const handleClick = useCallback(() => {\n alert(\"Hello World\");\n }, []);\n\n return (\n <div style={{ display: \"flex\", gap: \"4px\" }}>\n <JsxManager\n as=\"Heading\"\n internalProps={internalProps}\n content={`${content} ${content2}`}\n />\n <button onClick={handleClick} style={{ border: \"1px gray solid\", cursor: \"pointer\" }}>\n Click Me\n </button>\n </div>\n );\n};\n\nexport default BlockJsx;";
|
|
13
13
|
readonly props: "{\"content\": \"Hello\", \"content2\": \"World\"}";
|
|
14
14
|
readonly contentCache: "aW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gInJlYWN0IjsKaW1wb3J0IHsgSnN4TWFuYWdlciB9IGZyb20gIkBwbGl0emkvcGxpdHppLXNkayI7CnZhciBCbG9ja0pzeCA9IGZ1bmN0aW9uIEJsb2NrSnN4KF9yZWYpIHsKICB2YXIgaW50ZXJuYWxQcm9wcyA9IF9yZWYuaW50ZXJuYWxQcm9wcywKICAgIGNvbnRlbnQgPSBfcmVmLmNvbnRlbnQsCiAgICBjb250ZW50MiA9IF9yZWYuY29udGVudDI7CiAgdmFyIGhhbmRsZUNsaWNrID0gdXNlQ2FsbGJhY2soZnVuY3Rpb24gKCkgewogICAgYWxlcnQoIkhlbGxvIFdvcmxkIik7CiAgfSwgW10pOwogIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudCgiZGl2IiwgewogICAgc3R5bGU6IHsKICAgICAgZGlzcGxheTogImZsZXgiLAogICAgICBnYXA6ICI0cHgiCiAgICB9CiAgfSwgLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoSnN4TWFuYWdlciwgewogICAgYXM6ICJIZWFkaW5nIiwKICAgIGludGVybmFsUHJvcHM6IGludGVybmFsUHJvcHMsCiAgICBjb250ZW50OiAiIi5jb25jYXQoY29udGVudCwgIiAiKS5jb25jYXQoY29udGVudDIpCiAgfSksIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KCJidXR0b24iLCB7CiAgICBvbkNsaWNrOiBoYW5kbGVDbGljaywKICAgIHN0eWxlOiB7CiAgICAgIGJvcmRlcjogIjFweCBncmF5IHNvbGlkIiwKICAgICAgY3Vyc29yOiAncG9pbnRlcicKICAgIH0KICB9LCAiQ2xpY2sgTWUiKSk7Cn07CmV4cG9ydCBkZWZhdWx0IEJsb2NrSnN4Ow==";
|
|
15
15
|
readonly allowEmptyRender: false;
|
|
@@ -4,7 +4,7 @@ var t = e()({
|
|
|
4
4
|
type: "blockJsx",
|
|
5
5
|
content: {
|
|
6
6
|
attributes: {
|
|
7
|
-
content: "import { useCallback } from \"react\";\nimport { JsxManager } from \"@plitzi/plitzi-sdk\";\n\nconst BlockJsx = ({ internalProps, content, content2 }) => {\n
|
|
7
|
+
content: "import { useCallback } from \"react\";\nimport { JsxManager } from \"@plitzi/plitzi-sdk\";\n\nconst BlockJsx = ({ internalProps, content, content2 }) => {\n const handleClick = useCallback(() => {\n alert(\"Hello World\");\n }, []);\n\n return (\n <div style={{ display: \"flex\", gap: \"4px\" }}>\n <JsxManager\n as=\"Heading\"\n internalProps={internalProps}\n content={`${content} ${content2}`}\n />\n <button onClick={handleClick} style={{ border: \"1px gray solid\", cursor: \"pointer\" }}>\n Click Me\n </button>\n </div>\n );\n};\n\nexport default BlockJsx;",
|
|
8
8
|
props: "{\"content\": \"Hello\", \"content2\": \"World\"}",
|
|
9
9
|
contentCache: "aW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gInJlYWN0IjsKaW1wb3J0IHsgSnN4TWFuYWdlciB9IGZyb20gIkBwbGl0emkvcGxpdHppLXNkayI7CnZhciBCbG9ja0pzeCA9IGZ1bmN0aW9uIEJsb2NrSnN4KF9yZWYpIHsKICB2YXIgaW50ZXJuYWxQcm9wcyA9IF9yZWYuaW50ZXJuYWxQcm9wcywKICAgIGNvbnRlbnQgPSBfcmVmLmNvbnRlbnQsCiAgICBjb250ZW50MiA9IF9yZWYuY29udGVudDI7CiAgdmFyIGhhbmRsZUNsaWNrID0gdXNlQ2FsbGJhY2soZnVuY3Rpb24gKCkgewogICAgYWxlcnQoIkhlbGxvIFdvcmxkIik7CiAgfSwgW10pOwogIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudCgiZGl2IiwgewogICAgc3R5bGU6IHsKICAgICAgZGlzcGxheTogImZsZXgiLAogICAgICBnYXA6ICI0cHgiCiAgICB9CiAgfSwgLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoSnN4TWFuYWdlciwgewogICAgYXM6ICJIZWFkaW5nIiwKICAgIGludGVybmFsUHJvcHM6IGludGVybmFsUHJvcHMsCiAgICBjb250ZW50OiAiIi5jb25jYXQoY29udGVudCwgIiAiKS5jb25jYXQoY29udGVudDIpCiAgfSksIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KCJidXR0b24iLCB7CiAgICBvbkNsaWNrOiBoYW5kbGVDbGljaywKICAgIHN0eWxlOiB7CiAgICAgIGJvcmRlcjogIjFweCBncmF5IHNvbGlkIiwKICAgICAgY3Vyc29yOiAncG9pbnRlcicKICAgIH0KICB9LCAiQ2xpY2sgTWUiKSk7Cn07CmV4cG9ydCBkZWZhdWx0IEJsb2NrSnN4Ow==",
|
|
10
10
|
allowEmptyRender: !1
|
|
@@ -2,7 +2,7 @@ declare const BlockJsx: import('react').FC<import('../../..').WithElementProps<i
|
|
|
2
2
|
readonly type: "blockJsx";
|
|
3
3
|
readonly content: {
|
|
4
4
|
readonly attributes: {
|
|
5
|
-
readonly content: "import { useCallback } from \"react\";\nimport { JsxManager } from \"@plitzi/plitzi-sdk\";\n\nconst BlockJsx = ({ internalProps, content, content2 }) => {\n
|
|
5
|
+
readonly content: "import { useCallback } from \"react\";\nimport { JsxManager } from \"@plitzi/plitzi-sdk\";\n\nconst BlockJsx = ({ internalProps, content, content2 }) => {\n const handleClick = useCallback(() => {\n alert(\"Hello World\");\n }, []);\n\n return (\n <div style={{ display: \"flex\", gap: \"4px\" }}>\n <JsxManager\n as=\"Heading\"\n internalProps={internalProps}\n content={`${content} ${content2}`}\n />\n <button onClick={handleClick} style={{ border: \"1px gray solid\", cursor: \"pointer\" }}>\n Click Me\n </button>\n </div>\n );\n};\n\nexport default BlockJsx;";
|
|
6
6
|
readonly props: "{\"content\": \"Hello\", \"content2\": \"World\"}";
|
|
7
7
|
readonly contentCache: "aW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gInJlYWN0IjsKaW1wb3J0IHsgSnN4TWFuYWdlciB9IGZyb20gIkBwbGl0emkvcGxpdHppLXNkayI7CnZhciBCbG9ja0pzeCA9IGZ1bmN0aW9uIEJsb2NrSnN4KF9yZWYpIHsKICB2YXIgaW50ZXJuYWxQcm9wcyA9IF9yZWYuaW50ZXJuYWxQcm9wcywKICAgIGNvbnRlbnQgPSBfcmVmLmNvbnRlbnQsCiAgICBjb250ZW50MiA9IF9yZWYuY29udGVudDI7CiAgdmFyIGhhbmRsZUNsaWNrID0gdXNlQ2FsbGJhY2soZnVuY3Rpb24gKCkgewogICAgYWxlcnQoIkhlbGxvIFdvcmxkIik7CiAgfSwgW10pOwogIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudCgiZGl2IiwgewogICAgc3R5bGU6IHsKICAgICAgZGlzcGxheTogImZsZXgiLAogICAgICBnYXA6ICI0cHgiCiAgICB9CiAgfSwgLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoSnN4TWFuYWdlciwgewogICAgYXM6ICJIZWFkaW5nIiwKICAgIGludGVybmFsUHJvcHM6IGludGVybmFsUHJvcHMsCiAgICBjb250ZW50OiAiIi5jb25jYXQoY29udGVudCwgIiAiKS5jb25jYXQoY29udGVudDIpCiAgfSksIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KCJidXR0b24iLCB7CiAgICBvbkNsaWNrOiBoYW5kbGVDbGljaywKICAgIHN0eWxlOiB7CiAgICAgIGJvcmRlcjogIjFweCBncmF5IHNvbGlkIiwKICAgICAgY3Vyc29yOiAncG9pbnRlcicKICAgIH0KICB9LCAiQ2xpY2sgTWUiKSk7Cn07CmV4cG9ydCBkZWZhdWx0IEJsb2NrSnN4Ow==";
|
|
8
8
|
readonly allowEmptyRender: false;
|
|
@@ -140,7 +140,7 @@ var h = ({ mode: h = "page", href: g = "#", hash: _ = "", target: v = "self", la
|
|
|
140
140
|
children: e.label
|
|
141
141
|
}, e.key))]
|
|
142
142
|
}), /* @__PURE__ */ l("div", {
|
|
143
|
-
className: "truncate rounded-b border-r border-b border-l
|
|
143
|
+
className: "border-ui-line truncate rounded-b border-r border-b border-l p-1 text-xs",
|
|
144
144
|
children: F
|
|
145
145
|
})]
|
|
146
146
|
}),
|
|
@@ -37,7 +37,7 @@ var a = ({ format: a = "html", mediaBaseUrl: o = "", onUpdate: s }) => {
|
|
|
37
37
|
size: "xs"
|
|
38
38
|
}),
|
|
39
39
|
/* @__PURE__ */ n("span", {
|
|
40
|
-
className: "text-
|
|
40
|
+
className: "text-ui-fg-subtle text-xs",
|
|
41
41
|
children: [
|
|
42
42
|
"Bind ",
|
|
43
43
|
/* @__PURE__ */ t("strong", { children: "content" }),
|
|
@@ -248,7 +248,7 @@ export declare const elementDeclarations: {
|
|
|
248
248
|
readonly type: "blockJsx";
|
|
249
249
|
readonly content: {
|
|
250
250
|
readonly attributes: {
|
|
251
|
-
readonly content: "import { useCallback } from \"react\";\nimport { JsxManager } from \"@plitzi/plitzi-sdk\";\n\nconst BlockJsx = ({ internalProps, content, content2 }) => {\n
|
|
251
|
+
readonly content: "import { useCallback } from \"react\";\nimport { JsxManager } from \"@plitzi/plitzi-sdk\";\n\nconst BlockJsx = ({ internalProps, content, content2 }) => {\n const handleClick = useCallback(() => {\n alert(\"Hello World\");\n }, []);\n\n return (\n <div style={{ display: \"flex\", gap: \"4px\" }}>\n <JsxManager\n as=\"Heading\"\n internalProps={internalProps}\n content={`${content} ${content2}`}\n />\n <button onClick={handleClick} style={{ border: \"1px gray solid\", cursor: \"pointer\" }}>\n Click Me\n </button>\n </div>\n );\n};\n\nexport default BlockJsx;";
|
|
252
252
|
readonly props: "{\"content\": \"Hello\", \"content2\": \"World\"}";
|
|
253
253
|
readonly contentCache: "aW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnOwppbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gInJlYWN0IjsKaW1wb3J0IHsgSnN4TWFuYWdlciB9IGZyb20gIkBwbGl0emkvcGxpdHppLXNkayI7CnZhciBCbG9ja0pzeCA9IGZ1bmN0aW9uIEJsb2NrSnN4KF9yZWYpIHsKICB2YXIgaW50ZXJuYWxQcm9wcyA9IF9yZWYuaW50ZXJuYWxQcm9wcywKICAgIGNvbnRlbnQgPSBfcmVmLmNvbnRlbnQsCiAgICBjb250ZW50MiA9IF9yZWYuY29udGVudDI7CiAgdmFyIGhhbmRsZUNsaWNrID0gdXNlQ2FsbGJhY2soZnVuY3Rpb24gKCkgewogICAgYWxlcnQoIkhlbGxvIFdvcmxkIik7CiAgfSwgW10pOwogIHJldHVybiAvKiNfX1BVUkVfXyovUmVhY3QuY3JlYXRlRWxlbWVudCgiZGl2IiwgewogICAgc3R5bGU6IHsKICAgICAgZGlzcGxheTogImZsZXgiLAogICAgICBnYXA6ICI0cHgiCiAgICB9CiAgfSwgLyojX19QVVJFX18qL1JlYWN0LmNyZWF0ZUVsZW1lbnQoSnN4TWFuYWdlciwgewogICAgYXM6ICJIZWFkaW5nIiwKICAgIGludGVybmFsUHJvcHM6IGludGVybmFsUHJvcHMsCiAgICBjb250ZW50OiAiIi5jb25jYXQoY29udGVudCwgIiAiKS5jb25jYXQoY29udGVudDIpCiAgfSksIC8qI19fUFVSRV9fKi9SZWFjdC5jcmVhdGVFbGVtZW50KCJidXR0b24iLCB7CiAgICBvbkNsaWNrOiBoYW5kbGVDbGljaywKICAgIHN0eWxlOiB7CiAgICAgIGJvcmRlcjogIjFweCBncmF5IHNvbGlkIiwKICAgICAgY3Vyc29yOiAncG9pbnRlcicKICAgIH0KICB9LCAiQ2xpY2sgTWUiKSk7Cn07CmV4cG9ydCBkZWZhdWx0IEJsb2NrSnN4Ow==";
|
|
254
254
|
readonly allowEmptyRender: false;
|
|
@@ -3749,7 +3749,9 @@ export declare const elementDeclarations: {
|
|
|
3749
3749
|
readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
|
|
3750
3750
|
};
|
|
3751
3751
|
readonly content: {
|
|
3752
|
-
readonly attributes: {
|
|
3752
|
+
readonly attributes: {
|
|
3753
|
+
readonly hash: "";
|
|
3754
|
+
};
|
|
3753
3755
|
readonly definition: {
|
|
3754
3756
|
readonly label: "Tab Container Item";
|
|
3755
3757
|
readonly description: "One selectable tab (trigger + panel) inside a tabContainer.";
|
|
@@ -3771,7 +3773,9 @@ export declare const elementDeclarations: {
|
|
|
3771
3773
|
readonly subTypes: {};
|
|
3772
3774
|
};
|
|
3773
3775
|
};
|
|
3774
|
-
},
|
|
3776
|
+
}, Partial<{
|
|
3777
|
+
hash?: string | undefined;
|
|
3778
|
+
}>>;
|
|
3775
3779
|
readonly Text: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
3776
3780
|
readonly type: "text";
|
|
3777
3781
|
readonly contentAttributes: readonly ["content"];
|
|
@@ -77,7 +77,7 @@ var c = ({ id: c, layout: l = "", layoutContainer: u = "", subType: d = "div", f
|
|
|
77
77
|
onUpdate: p
|
|
78
78
|
}),
|
|
79
79
|
/* @__PURE__ */ i("span", {
|
|
80
|
-
className: "text-
|
|
80
|
+
className: "text-ui-fg-subtle text-xs",
|
|
81
81
|
children: "A layout can sit inside another one: pages using this layout are shown inside it, and it inside the one picked here — the outer shell stays mounted while moving between pages that share it."
|
|
82
82
|
})
|
|
83
83
|
]
|