@plitzi/sdk-elements 0.32.15 → 0.32.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 +28 -0
- package/dist/Component/ComponentProvider.mjs +16 -16
- package/dist/Element/helpers/loadComponent.mjs +2 -2
- package/dist/Element/hocs/withElement.mjs +52 -52
- package/dist/Element/hooks/useElementDataSource.mjs +3 -3
- package/dist/Element/hooks/useRootElementInteractions.mjs +23 -21
- package/dist/dataSource/GlobalSources.mjs +51 -51
- package/dist/elements/advanced/BlockHtml/Settings.mjs +12 -9
- package/dist/elements/advanced/NodeHtml/Settings.mjs +193 -190
- package/dist/elements/advanced/Reference/Settings.mjs +2 -2
- package/dist/elements/basic/Link/Link.mjs +23 -23
- package/dist/elements/basic/Markdown/Settings.mjs +12 -9
- package/dist/elements/basic/Paragraph/Settings.mjs +14 -11
- package/dist/elements/basic/Text/Settings.mjs +13 -10
- package/dist/elements/media/FontAwesome/Settings.mjs +3 -6
- package/dist/elements/structure/Container/Settings.mjs +66 -63
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.mjs +10 -7
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @plitzi/sdk-elements
|
|
2
2
|
|
|
3
|
+
## 0.32.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- v0.32.17
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @plitzi/sdk-auth@0.32.17
|
|
10
|
+
- @plitzi/sdk-dev-tools@0.32.17
|
|
11
|
+
- @plitzi/sdk-event-bridge@0.32.17
|
|
12
|
+
- @plitzi/sdk-interactions@0.32.17
|
|
13
|
+
- @plitzi/sdk-navigation@0.32.17
|
|
14
|
+
- @plitzi/sdk-schema@0.32.17
|
|
15
|
+
- @plitzi/sdk-shared@0.32.17
|
|
16
|
+
|
|
17
|
+
## 0.32.16
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- v0.32.16
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @plitzi/sdk-auth@0.32.16
|
|
24
|
+
- @plitzi/sdk-dev-tools@0.32.16
|
|
25
|
+
- @plitzi/sdk-event-bridge@0.32.16
|
|
26
|
+
- @plitzi/sdk-interactions@0.32.16
|
|
27
|
+
- @plitzi/sdk-navigation@0.32.16
|
|
28
|
+
- @plitzi/sdk-schema@0.32.16
|
|
29
|
+
- @plitzi/sdk-shared@0.32.16
|
|
30
|
+
|
|
3
31
|
## 0.32.15
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -74,23 +74,23 @@ var d = ({ localComponents: d, localCustomComponents: f, children: p }) => {
|
|
|
74
74
|
}, []), S = i((e) => {
|
|
75
75
|
let t = s(b.current, `${e}.builder.pluginChildren`, []);
|
|
76
76
|
b.current = c(b.current, [e, ...t]);
|
|
77
|
-
}, [])
|
|
77
|
+
}, []), C = a(() => ({
|
|
78
|
+
components: g,
|
|
79
|
+
componentDefinitions: b,
|
|
80
|
+
getComponent: _,
|
|
81
|
+
register: v,
|
|
82
|
+
unregister: y,
|
|
83
|
+
unregisterDefinition: S,
|
|
84
|
+
registerDefinition: x
|
|
85
|
+
}), [
|
|
86
|
+
v,
|
|
87
|
+
y,
|
|
88
|
+
x,
|
|
89
|
+
S,
|
|
90
|
+
_
|
|
91
|
+
]);
|
|
78
92
|
return /* @__PURE__ */ u(l, {
|
|
79
|
-
value:
|
|
80
|
-
components: g,
|
|
81
|
-
componentDefinitions: b,
|
|
82
|
-
getComponent: _,
|
|
83
|
-
register: v,
|
|
84
|
-
unregister: y,
|
|
85
|
-
unregisterDefinition: S,
|
|
86
|
-
registerDefinition: x
|
|
87
|
-
}), [
|
|
88
|
-
v,
|
|
89
|
-
y,
|
|
90
|
-
x,
|
|
91
|
-
S,
|
|
92
|
-
_
|
|
93
|
-
]),
|
|
93
|
+
value: C,
|
|
94
94
|
children: p
|
|
95
95
|
});
|
|
96
96
|
};
|
|
@@ -7,11 +7,11 @@ import { get as i } from "@plitzi/plitzi-ui/helpers";
|
|
|
7
7
|
var a = /* @__PURE__ */ new Map(), o = (o, s, c, l = !0, u = !1) => async () => {
|
|
8
8
|
let d = `${o}::${s}`;
|
|
9
9
|
if (!a.get(d)) {
|
|
10
|
-
let e =
|
|
10
|
+
let e = o.endsWith(".mjs") || o.includes(".esm.") || o.includes(".module."), n = t(o, e, s).finally(() => {
|
|
11
11
|
a.delete(d);
|
|
12
12
|
});
|
|
13
13
|
a.set(d, {
|
|
14
|
-
promise:
|
|
14
|
+
promise: n,
|
|
15
15
|
timestamp: Date.now()
|
|
16
16
|
});
|
|
17
17
|
}
|
|
@@ -27,56 +27,56 @@ var m = (m) => {
|
|
|
27
27
|
internalProps: h.internalProps,
|
|
28
28
|
children: h.children,
|
|
29
29
|
previewMode: S
|
|
30
|
-
}), { attributes: k, definition: A, style: j, plitziElementLayout: M, elementState: N, setElementState: P } = E;
|
|
31
|
-
c("element",
|
|
32
|
-
let
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
30
|
+
}), { attributes: k, definition: A, style: j, plitziElementLayout: M, elementState: N, setElementState: P } = E, F = o(() => ({ [`${v}_setState`]: P }), [v, P]);
|
|
31
|
+
c("element", F);
|
|
32
|
+
let I = T.idRef, L = o(() => ({
|
|
33
|
+
id: v,
|
|
34
|
+
idRef: I,
|
|
35
|
+
rootId: y,
|
|
36
|
+
attributes: k,
|
|
37
|
+
definition: A,
|
|
38
|
+
plitziElementLayout: M,
|
|
39
|
+
style: j,
|
|
40
|
+
elementState: N,
|
|
41
|
+
setElementState: P
|
|
42
|
+
}), [
|
|
43
|
+
k,
|
|
44
|
+
A,
|
|
45
|
+
N,
|
|
46
|
+
v,
|
|
47
|
+
I,
|
|
48
|
+
M,
|
|
49
|
+
y,
|
|
50
|
+
j,
|
|
51
|
+
P
|
|
52
|
+
]), R = o(() => {
|
|
53
|
+
let e = {
|
|
54
|
+
...E.attributes,
|
|
55
|
+
...h.extraProps,
|
|
56
|
+
...D,
|
|
57
|
+
...t(h, [
|
|
58
|
+
"plitziJsxSkipHOC",
|
|
59
|
+
"internalProps",
|
|
60
|
+
"className",
|
|
61
|
+
"children",
|
|
62
|
+
"extraProps"
|
|
63
|
+
])
|
|
64
|
+
};
|
|
65
|
+
return O && (e = {
|
|
66
|
+
...e,
|
|
67
|
+
children: O
|
|
68
|
+
}), /* @__PURE__ */ p(r, { children: /* @__PURE__ */ p(m, {
|
|
69
|
+
...e,
|
|
70
|
+
ref: g
|
|
71
|
+
}) });
|
|
72
|
+
}, [
|
|
73
|
+
E.attributes,
|
|
74
|
+
h,
|
|
75
|
+
D,
|
|
76
|
+
O
|
|
77
|
+
]), z = /* @__PURE__ */ p(e, {
|
|
78
|
+
value: L,
|
|
79
|
+
children: R
|
|
80
80
|
});
|
|
81
81
|
if (C) {
|
|
82
82
|
f.linkParent(v, x?.id);
|
|
@@ -100,10 +100,10 @@ var m = (m) => {
|
|
|
100
100
|
return f.recordProps(v, d(_.current, e)), _.current = e, /* @__PURE__ */ p(i, {
|
|
101
101
|
id: v,
|
|
102
102
|
onRender: f.onRender,
|
|
103
|
-
children:
|
|
103
|
+
children: z
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
return
|
|
106
|
+
return z;
|
|
107
107
|
};
|
|
108
108
|
return g.displayName = `withElement(${h})`, g;
|
|
109
109
|
};
|
|
@@ -11,13 +11,13 @@ var n = ({ bindings: n, sources: r }) => {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
return e.size > 0 && !e.has("variables") && e.add("variables"), [...e];
|
|
14
|
-
}, [n, r]),
|
|
14
|
+
}, [n, r]), a = e(() => i.map((e) => `runtime.sources.${e}`), [i]), [o] = t(a);
|
|
15
15
|
return e(() => {
|
|
16
16
|
let e = {};
|
|
17
17
|
return i.forEach((t, n) => {
|
|
18
|
-
e[t] =
|
|
18
|
+
e[t] = o[n];
|
|
19
19
|
}), e;
|
|
20
|
-
}, [i,
|
|
20
|
+
}, [i, o]);
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
23
23
|
export { n as default };
|
|
@@ -23,45 +23,47 @@ var m = ({ elementContext: m, InteractionsContext: h, previewMode: g, debugMode:
|
|
|
23
23
|
S,
|
|
24
24
|
g,
|
|
25
25
|
P
|
|
26
|
-
]),
|
|
27
|
-
|
|
28
|
-
let
|
|
26
|
+
]), I = _ || !!(O && Object.keys(O).length), [L = d] = l("runtime.sources", { enabled: I }), R = c({});
|
|
27
|
+
R.current = L;
|
|
28
|
+
let z = a(() => ({ dataSource: R.current }), [R]), B = s(() => ({
|
|
29
29
|
...n,
|
|
30
30
|
...b
|
|
31
|
-
}), [b]),
|
|
31
|
+
}), [b]), V = e({
|
|
32
32
|
attributes: E,
|
|
33
33
|
definition: D,
|
|
34
34
|
setElementState: j
|
|
35
35
|
});
|
|
36
|
-
|
|
36
|
+
N({
|
|
37
37
|
id: w,
|
|
38
38
|
interactions: O,
|
|
39
|
-
triggers:
|
|
39
|
+
triggers: B,
|
|
40
40
|
callbacks: s(() => ({
|
|
41
41
|
...x,
|
|
42
|
-
...
|
|
43
|
-
}), [x,
|
|
44
|
-
getAdditionalParams:
|
|
42
|
+
...V
|
|
43
|
+
}), [x, V]),
|
|
44
|
+
getAdditionalParams: z
|
|
45
45
|
}), o(() => {
|
|
46
46
|
!g || !w || !O || !Object.keys(O).length || M.interactionTrigger(w, "onLoad", {});
|
|
47
47
|
}, []), o(() => {
|
|
48
|
-
if (_) return p.addProviderMethod(`getElementDataSource-${C}`, () =>
|
|
48
|
+
if (_) return p.addProviderMethod(`getElementDataSource-${C}`, () => R.current), () => {
|
|
49
49
|
p.removeProviderMethod(`getElementDataSource-${C}`);
|
|
50
50
|
};
|
|
51
51
|
}, [
|
|
52
52
|
_,
|
|
53
|
-
|
|
53
|
+
R,
|
|
54
54
|
C
|
|
55
|
-
])
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
]);
|
|
56
|
+
let H = t({
|
|
57
|
+
id: C,
|
|
58
|
+
className: y,
|
|
59
|
+
previewMode: g,
|
|
60
|
+
baseElementId: v,
|
|
61
|
+
definition: D,
|
|
62
|
+
elementState: A,
|
|
63
|
+
plitziElementLayout: k
|
|
64
|
+
});
|
|
65
|
+
return {
|
|
66
|
+
className: f(T, H),
|
|
65
67
|
events: F
|
|
66
68
|
};
|
|
67
69
|
};
|
|
@@ -30,20 +30,20 @@ var d = ({ children: d, environment: f = "main" }) => {
|
|
|
30
30
|
m,
|
|
31
31
|
p,
|
|
32
32
|
_
|
|
33
|
-
])
|
|
33
|
+
]), y = t(() => o(v).map((e) => ({
|
|
34
|
+
path: e,
|
|
35
|
+
name: `variables.${e}`
|
|
36
|
+
})), [v]);
|
|
34
37
|
s({
|
|
35
38
|
id: "global",
|
|
36
39
|
source: "variables",
|
|
37
40
|
name: "Variables",
|
|
38
|
-
fields:
|
|
39
|
-
path: e,
|
|
40
|
-
name: `variables.${e}`
|
|
41
|
-
})), [v])
|
|
41
|
+
fields: y
|
|
42
42
|
}), i("runtime.sources.variables", v);
|
|
43
|
-
let [
|
|
43
|
+
let [b = {}] = r("pageDefinitions"), x = n(() => Object.values(b).map((e) => ({
|
|
44
44
|
value: e.id,
|
|
45
45
|
label: a(e, "attributes.name", e.id)
|
|
46
|
-
})), [
|
|
46
|
+
})), [b]), S = n(() => ({
|
|
47
47
|
routeParams: p,
|
|
48
48
|
queryParams: m,
|
|
49
49
|
currentPageId: g
|
|
@@ -51,38 +51,38 @@ var d = ({ children: d, environment: f = "main" }) => {
|
|
|
51
51
|
p,
|
|
52
52
|
m,
|
|
53
53
|
g
|
|
54
|
+
]), C = t(() => {
|
|
55
|
+
let e = o({
|
|
56
|
+
routeParams: p,
|
|
57
|
+
queryParams: m
|
|
58
|
+
}).map((e) => ({
|
|
59
|
+
path: e,
|
|
60
|
+
name: `navigation.${e}`
|
|
61
|
+
})), t = x.length > 0 ? {
|
|
62
|
+
path: "currentPageId",
|
|
63
|
+
name: "Current Page",
|
|
64
|
+
inputType: "select",
|
|
65
|
+
values: x
|
|
66
|
+
} : {
|
|
67
|
+
path: "currentPageId",
|
|
68
|
+
name: "Current Page"
|
|
69
|
+
};
|
|
70
|
+
return [...e, t];
|
|
71
|
+
}, [
|
|
72
|
+
p,
|
|
73
|
+
m,
|
|
74
|
+
x
|
|
54
75
|
]);
|
|
55
76
|
s({
|
|
56
77
|
id: "global",
|
|
57
78
|
source: "navigation",
|
|
58
79
|
name: "Navigation",
|
|
59
|
-
fields:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}).map((e) => ({
|
|
64
|
-
path: e,
|
|
65
|
-
name: `navigation.${e}`
|
|
66
|
-
})), t = b.length > 0 ? {
|
|
67
|
-
path: "currentPageId",
|
|
68
|
-
name: "Current Page",
|
|
69
|
-
inputType: "select",
|
|
70
|
-
values: b
|
|
71
|
-
} : {
|
|
72
|
-
path: "currentPageId",
|
|
73
|
-
name: "Current Page"
|
|
74
|
-
};
|
|
75
|
-
return [...e, t];
|
|
76
|
-
}, [
|
|
77
|
-
p,
|
|
78
|
-
m,
|
|
79
|
-
b
|
|
80
|
-
])
|
|
81
|
-
}), i("runtime.sources.navigation", x);
|
|
82
|
-
let { user: S, authenticated: C } = e(u), [w = "basic"] = r("schema.settings.userProvider"), T = n(() => {
|
|
83
|
-
switch (w) {
|
|
80
|
+
fields: C
|
|
81
|
+
}), i("runtime.sources.navigation", S);
|
|
82
|
+
let { user: w, authenticated: T } = e(u), [E = "basic"] = r("schema.settings.userProvider"), D = n(() => {
|
|
83
|
+
switch (E) {
|
|
84
84
|
case "auth0": return {
|
|
85
|
-
isAuthenticated:
|
|
85
|
+
isAuthenticated: T,
|
|
86
86
|
user: {
|
|
87
87
|
given_name: "",
|
|
88
88
|
family_name: "",
|
|
@@ -94,47 +94,47 @@ var d = ({ children: d, environment: f = "main" }) => {
|
|
|
94
94
|
email: "",
|
|
95
95
|
email_verified: !1,
|
|
96
96
|
sub: "",
|
|
97
|
-
...
|
|
97
|
+
...w
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
case "basic": return {
|
|
101
|
-
isAuthenticated:
|
|
102
|
-
accessToken:
|
|
101
|
+
isAuthenticated: T,
|
|
102
|
+
accessToken: w?.accessToken ?? "",
|
|
103
103
|
details: {
|
|
104
104
|
username: "",
|
|
105
105
|
email: "",
|
|
106
106
|
roles: "",
|
|
107
107
|
permissions: "",
|
|
108
108
|
verified: "",
|
|
109
|
-
...
|
|
109
|
+
...w?.details ?? {}
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
default: return {};
|
|
113
113
|
}
|
|
114
114
|
}, [
|
|
115
|
+
E,
|
|
115
116
|
w,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
T
|
|
118
|
+
]), O = t(() => o(D).map((e) => ({
|
|
119
|
+
path: e,
|
|
120
|
+
name: `user.${e}`
|
|
121
|
+
})), [D]);
|
|
119
122
|
s({
|
|
120
123
|
id: "global",
|
|
121
124
|
source: "auth",
|
|
122
125
|
name: "Auth State",
|
|
123
|
-
fields:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
fields: O
|
|
127
|
+
}), i("runtime.sources.auth", D);
|
|
128
|
+
let [k] = r("runtime.state"), A = t(() => o(k).map((e) => ({
|
|
129
|
+
path: e,
|
|
130
|
+
name: `state.${e}`
|
|
131
|
+
})), [k]);
|
|
129
132
|
return s({
|
|
130
133
|
id: "global",
|
|
131
134
|
source: "state",
|
|
132
135
|
name: "State",
|
|
133
|
-
fields:
|
|
134
|
-
|
|
135
|
-
name: `state.${e}`
|
|
136
|
-
})), [E])
|
|
137
|
-
}), i("runtime.sources.state", E), d;
|
|
136
|
+
fields: A
|
|
137
|
+
}), i("runtime.sources.state", k), d;
|
|
138
138
|
};
|
|
139
139
|
//#endregion
|
|
140
140
|
export { d as default };
|
|
@@ -2,14 +2,17 @@ import e from "../../../components/ElementAdvancedEditor.mjs";
|
|
|
2
2
|
import { useCallback as t } from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/elements/advanced/BlockHtml/Settings.tsx
|
|
5
|
-
var r = ({ content: r = "", onUpdate: i }) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
className: "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
var r = ({ content: r = "", onUpdate: i }) => {
|
|
6
|
+
let a = t((e) => i?.("content", e), [i]);
|
|
7
|
+
return /* @__PURE__ */ n("div", {
|
|
8
|
+
className: "flex h-full flex-col",
|
|
9
|
+
children: /* @__PURE__ */ n(e, {
|
|
10
|
+
className: "grow",
|
|
11
|
+
value: r,
|
|
12
|
+
mode: "html",
|
|
13
|
+
onChange: a
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
};
|
|
14
17
|
//#endregion
|
|
15
18
|
export { r as default };
|
|
@@ -2,195 +2,198 @@ import { useCallback as e } from "react";
|
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import r from "@plitzi/plitzi-ui/Select";
|
|
4
4
|
//#region src/elements/advanced/NodeHtml/Settings.tsx
|
|
5
|
-
var i = ({ subType: i = "span", onUpdate: a }) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
5
|
+
var i = ({ subType: i = "span", onUpdate: a }) => {
|
|
6
|
+
let o = e((e) => (t) => a?.(e, t), [a]);
|
|
7
|
+
return /* @__PURE__ */ t("div", {
|
|
8
|
+
className: "flex flex-col gap-4 py-2",
|
|
9
|
+
children: /* @__PURE__ */ n(r, {
|
|
10
|
+
label: "Node Tag",
|
|
11
|
+
value: i,
|
|
12
|
+
onChange: o("subType"),
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ t("option", {
|
|
15
|
+
value: "div",
|
|
16
|
+
children: "Div (Container)"
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ t("option", {
|
|
19
|
+
value: "section",
|
|
20
|
+
children: "Section"
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ t("option", {
|
|
23
|
+
value: "article",
|
|
24
|
+
children: "Article"
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ t("option", {
|
|
27
|
+
value: "main",
|
|
28
|
+
children: "Main (Page Content)"
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ t("option", {
|
|
31
|
+
value: "aside",
|
|
32
|
+
children: "Aside (Sidebar)"
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ t("option", {
|
|
35
|
+
value: "header",
|
|
36
|
+
children: "Header"
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ t("option", {
|
|
39
|
+
value: "footer",
|
|
40
|
+
children: "Footer"
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ t("option", {
|
|
43
|
+
value: "nav",
|
|
44
|
+
children: "Navigation"
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ t("option", {
|
|
47
|
+
value: "p",
|
|
48
|
+
children: "Paragraph"
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ t("option", {
|
|
51
|
+
value: "span",
|
|
52
|
+
children: "Span (Inline)"
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ t("option", {
|
|
55
|
+
value: "strong",
|
|
56
|
+
children: "Strong (Bold)"
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ t("option", {
|
|
59
|
+
value: "em",
|
|
60
|
+
children: "Emphasis (Italic)"
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ t("option", {
|
|
63
|
+
value: "small",
|
|
64
|
+
children: "Small Text"
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ t("option", {
|
|
67
|
+
value: "blockquote",
|
|
68
|
+
children: "Block Quote"
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ t("option", {
|
|
71
|
+
value: "pre",
|
|
72
|
+
children: "Preformatted Text"
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ t("option", {
|
|
75
|
+
value: "code",
|
|
76
|
+
children: "Code Block"
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ t("option", {
|
|
79
|
+
value: "ul",
|
|
80
|
+
children: "Unordered List"
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ t("option", {
|
|
83
|
+
value: "ol",
|
|
84
|
+
children: "Ordered List"
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ t("option", {
|
|
87
|
+
value: "li",
|
|
88
|
+
children: "List Item"
|
|
89
|
+
}),
|
|
90
|
+
/* @__PURE__ */ t("option", {
|
|
91
|
+
value: "dl",
|
|
92
|
+
children: "Description List"
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ t("option", {
|
|
95
|
+
value: "dt",
|
|
96
|
+
children: "Term"
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ t("option", {
|
|
99
|
+
value: "dd",
|
|
100
|
+
children: "Description"
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ t("option", {
|
|
103
|
+
value: "img",
|
|
104
|
+
children: "Image"
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ t("option", {
|
|
107
|
+
value: "figure",
|
|
108
|
+
children: "Figure"
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ t("option", {
|
|
111
|
+
value: "figcaption",
|
|
112
|
+
children: "Figure Caption"
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ t("option", {
|
|
115
|
+
value: "video",
|
|
116
|
+
children: "Video"
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ t("option", {
|
|
119
|
+
value: "audio",
|
|
120
|
+
children: "Audio"
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ t("option", {
|
|
123
|
+
value: "form",
|
|
124
|
+
children: "Form"
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ t("option", {
|
|
127
|
+
value: "label",
|
|
128
|
+
children: "Label"
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ t("option", {
|
|
131
|
+
value: "input",
|
|
132
|
+
children: "Input Field"
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ t("option", {
|
|
135
|
+
value: "textarea",
|
|
136
|
+
children: "Textarea"
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ t("option", {
|
|
139
|
+
value: "select",
|
|
140
|
+
children: "Select (Dropdown)"
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ t("option", {
|
|
143
|
+
value: "option",
|
|
144
|
+
children: "Option"
|
|
145
|
+
}),
|
|
146
|
+
/* @__PURE__ */ t("option", {
|
|
147
|
+
value: "button",
|
|
148
|
+
children: "Button"
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ t("option", {
|
|
151
|
+
value: "a",
|
|
152
|
+
children: "Link"
|
|
153
|
+
}),
|
|
154
|
+
/* @__PURE__ */ t("option", {
|
|
155
|
+
value: "details",
|
|
156
|
+
children: "Details"
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ t("option", {
|
|
159
|
+
value: "summary",
|
|
160
|
+
children: "Summary"
|
|
161
|
+
}),
|
|
162
|
+
/* @__PURE__ */ t("option", {
|
|
163
|
+
value: "table",
|
|
164
|
+
children: "Table"
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ t("option", {
|
|
167
|
+
value: "thead",
|
|
168
|
+
children: "Table Head"
|
|
169
|
+
}),
|
|
170
|
+
/* @__PURE__ */ t("option", {
|
|
171
|
+
value: "tbody",
|
|
172
|
+
children: "Table Body"
|
|
173
|
+
}),
|
|
174
|
+
/* @__PURE__ */ t("option", {
|
|
175
|
+
value: "tr",
|
|
176
|
+
children: "Table Row"
|
|
177
|
+
}),
|
|
178
|
+
/* @__PURE__ */ t("option", {
|
|
179
|
+
value: "th",
|
|
180
|
+
children: "Table Header Cell"
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ t("option", {
|
|
183
|
+
value: "td",
|
|
184
|
+
children: "Table Data Cell"
|
|
185
|
+
}),
|
|
186
|
+
/* @__PURE__ */ t("option", {
|
|
187
|
+
value: "hr",
|
|
188
|
+
children: "Horizontal Rule"
|
|
189
|
+
}),
|
|
190
|
+
/* @__PURE__ */ t("option", {
|
|
191
|
+
value: "br",
|
|
192
|
+
children: "Line Break"
|
|
193
|
+
})
|
|
194
|
+
]
|
|
195
|
+
})
|
|
196
|
+
});
|
|
197
|
+
};
|
|
195
198
|
//#endregion
|
|
196
199
|
export { i as default };
|
|
@@ -54,8 +54,8 @@ var l = ({ referenceType: l = "element", referenceId: u = "", referenceContainer
|
|
|
54
54
|
if (!u) return [];
|
|
55
55
|
switch (l) {
|
|
56
56
|
case "segment": {
|
|
57
|
-
let e = a(
|
|
58
|
-
return S?.flat ? Object.values(S.flat).filter((
|
|
57
|
+
let e = a(h, u), t = a(e, "definition.baseElementId");
|
|
58
|
+
return S?.flat ? Object.values(S.flat).filter((e) => a(e, "definition.type", "") === "container" && a(e, "definition.rootId", "") === t && Array.isArray(a(e, "definition.items")) && a(e, "definition.items", []).length === 0).map((e) => ({
|
|
59
59
|
value: e.id,
|
|
60
60
|
label: a(e, "definition.label")
|
|
61
61
|
})) : [];
|
|
@@ -33,31 +33,31 @@ var d = ({ ref: n, children: d, className: f = "", href: p = "#", target: m = "s
|
|
|
33
33
|
b
|
|
34
34
|
]), T = (e) => {
|
|
35
35
|
_ && (e.stopPropagation(), (h === "page" || h === "internal") && (e.preventDefault(), y(w)));
|
|
36
|
-
}
|
|
36
|
+
}, E = i(() => {
|
|
37
|
+
let e = {
|
|
38
|
+
ref: n,
|
|
39
|
+
style: g,
|
|
40
|
+
target: `_${m}`,
|
|
41
|
+
className: l("plitzi-component__link", f)
|
|
42
|
+
};
|
|
43
|
+
return _ ? {
|
|
44
|
+
...e,
|
|
45
|
+
href: w
|
|
46
|
+
} : {
|
|
47
|
+
...e,
|
|
48
|
+
"href-disabled": w
|
|
49
|
+
};
|
|
50
|
+
}, [
|
|
51
|
+
n,
|
|
52
|
+
g,
|
|
53
|
+
m,
|
|
54
|
+
f,
|
|
55
|
+
_,
|
|
56
|
+
w
|
|
57
|
+
]);
|
|
37
58
|
return /* @__PURE__ */ c(t, {
|
|
38
59
|
tag: "a",
|
|
39
|
-
...
|
|
40
|
-
let e = {
|
|
41
|
-
ref: n,
|
|
42
|
-
style: g,
|
|
43
|
-
target: `_${m}`,
|
|
44
|
-
className: l("plitzi-component__link", f)
|
|
45
|
-
};
|
|
46
|
-
return _ ? {
|
|
47
|
-
...e,
|
|
48
|
-
href: w
|
|
49
|
-
} : {
|
|
50
|
-
...e,
|
|
51
|
-
"href-disabled": w
|
|
52
|
-
};
|
|
53
|
-
}, [
|
|
54
|
-
n,
|
|
55
|
-
g,
|
|
56
|
-
m,
|
|
57
|
-
f,
|
|
58
|
-
_,
|
|
59
|
-
w
|
|
60
|
-
]),
|
|
60
|
+
...E,
|
|
61
61
|
onClick: T,
|
|
62
62
|
children: d
|
|
63
63
|
});
|
|
@@ -2,14 +2,17 @@ import { useCallback as e } from "react";
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import n from "@plitzi/plitzi-ui/TextArea";
|
|
4
4
|
//#region src/elements/basic/Markdown/Settings.tsx
|
|
5
|
-
var r = ({ content: r = "Markdown", onUpdate: i }) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
var r = ({ content: r = "Markdown", onUpdate: i }) => {
|
|
6
|
+
let a = e((e) => i?.("content", e), [i]);
|
|
7
|
+
return /* @__PURE__ */ t("div", {
|
|
8
|
+
className: "flex h-full flex-col gap-4 py-2",
|
|
9
|
+
children: /* @__PURE__ */ t(n, {
|
|
10
|
+
value: r,
|
|
11
|
+
label: "Content",
|
|
12
|
+
className: "h-full",
|
|
13
|
+
onChange: a
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
};
|
|
14
17
|
//#endregion
|
|
15
18
|
export { r as default };
|
|
@@ -2,16 +2,19 @@ import { useCallback as e } from "react";
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import n from "@plitzi/plitzi-ui/TextArea";
|
|
4
4
|
//#region src/elements/basic/Paragraph/Settings.tsx
|
|
5
|
-
var r = ({ content: r = "Paragraph", onUpdate: i }) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
var r = ({ content: r = "Paragraph", onUpdate: i }) => {
|
|
6
|
+
let a = e((e) => i?.("content", e), [i]);
|
|
7
|
+
return /* @__PURE__ */ t("div", {
|
|
8
|
+
className: "flex h-full flex-col gap-4 py-2",
|
|
9
|
+
children: /* @__PURE__ */ t(n, {
|
|
10
|
+
value: r,
|
|
11
|
+
label: "Content",
|
|
12
|
+
className: "h-full",
|
|
13
|
+
rows: 4,
|
|
14
|
+
onChange: a,
|
|
15
|
+
size: "xs"
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
};
|
|
16
19
|
//#endregion
|
|
17
20
|
export { r as default };
|
|
@@ -2,15 +2,18 @@ import { useCallback as e } from "react";
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import n from "@plitzi/plitzi-ui/TextArea";
|
|
4
4
|
//#region src/elements/basic/Text/Settings.tsx
|
|
5
|
-
var r = ({ content: r = "Text", onUpdate: i }) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
var r = ({ content: r = "Text", onUpdate: i }) => {
|
|
6
|
+
let a = e((e) => i?.("content", e), [i]);
|
|
7
|
+
return /* @__PURE__ */ t("div", {
|
|
8
|
+
className: "flex h-full flex-col gap-4 py-2",
|
|
9
|
+
children: /* @__PURE__ */ t(n, {
|
|
10
|
+
value: r,
|
|
11
|
+
label: "Content",
|
|
12
|
+
className: "h-full",
|
|
13
|
+
size: "xs",
|
|
14
|
+
onChange: a
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
};
|
|
15
18
|
//#endregion
|
|
16
19
|
export { r as default };
|
|
@@ -19,10 +19,7 @@ var l = ({ icon: l = "", size: u = "fa-1x", iconAnimation: d = "", onUpdate: f }
|
|
|
19
19
|
case "regular":
|
|
20
20
|
a = "far";
|
|
21
21
|
break;
|
|
22
|
-
case "solid":
|
|
23
|
-
a = "fas";
|
|
24
|
-
break;
|
|
25
|
-
default:
|
|
22
|
+
case "solid": a = "fas";
|
|
26
23
|
}
|
|
27
24
|
let s = `${a} fa-${e}`;
|
|
28
25
|
r.push(/* @__PURE__ */ i("div", {
|
|
@@ -46,7 +43,7 @@ var l = ({ icon: l = "", size: u = "fa-1x", iconAnimation: d = "", onUpdate: f }
|
|
|
46
43
|
t(() => {
|
|
47
44
|
C();
|
|
48
45
|
}, []);
|
|
49
|
-
let w = e((e) => b(e), []), T = e((e) => (t) => f?.(e, t), [f]);
|
|
46
|
+
let w = e((e) => b(e), []), T = e((e) => (t) => f?.(e, t), [f]), E = e((e) => g(e), []);
|
|
50
47
|
return /* @__PURE__ */ a("div", {
|
|
51
48
|
className: "flex grow basis-0 flex-col gap-4 py-2",
|
|
52
49
|
children: [
|
|
@@ -54,7 +51,7 @@ var l = ({ icon: l = "", size: u = "fa-1x", iconAnimation: d = "", onUpdate: f }
|
|
|
54
51
|
value: h,
|
|
55
52
|
placeholder: "All",
|
|
56
53
|
label: "Icon Type",
|
|
57
|
-
onChange:
|
|
54
|
+
onChange: E,
|
|
58
55
|
size: "xs",
|
|
59
56
|
children: [
|
|
60
57
|
/* @__PURE__ */ i("option", {
|
|
@@ -2,68 +2,71 @@ import { useCallback as e } from "react";
|
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import r from "@plitzi/plitzi-ui/Select";
|
|
4
4
|
//#region src/elements/structure/Container/Settings.tsx
|
|
5
|
-
var i = ({ subType: i = "div", onUpdate: a }) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
5
|
+
var i = ({ subType: i = "div", onUpdate: a }) => {
|
|
6
|
+
let o = e((e) => (t) => a?.(e, t), [a]);
|
|
7
|
+
return /* @__PURE__ */ t("div", {
|
|
8
|
+
className: "flex flex-col gap-4 py-2",
|
|
9
|
+
children: /* @__PURE__ */ n(r, {
|
|
10
|
+
label: "ContainerTag",
|
|
11
|
+
value: i,
|
|
12
|
+
onChange: o("subType"),
|
|
13
|
+
size: "xs",
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ t("option", {
|
|
16
|
+
value: "div",
|
|
17
|
+
children: "Div"
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ t("option", {
|
|
20
|
+
value: "header",
|
|
21
|
+
children: "Header"
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ t("option", {
|
|
24
|
+
value: "footer",
|
|
25
|
+
children: "Footer"
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ t("option", {
|
|
28
|
+
value: "nav",
|
|
29
|
+
children: "Nav"
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ t("option", {
|
|
32
|
+
value: "main",
|
|
33
|
+
children: "Main"
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ t("option", {
|
|
36
|
+
value: "section",
|
|
37
|
+
children: "Section"
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ t("option", {
|
|
40
|
+
value: "article",
|
|
41
|
+
children: "Article"
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ t("option", {
|
|
44
|
+
value: "aside",
|
|
45
|
+
children: "Aside"
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ t("option", {
|
|
48
|
+
value: "address",
|
|
49
|
+
children: "Address"
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ t("option", {
|
|
52
|
+
value: "figure",
|
|
53
|
+
children: "Figure"
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ t("option", {
|
|
56
|
+
value: "dl",
|
|
57
|
+
children: "DL"
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ t("option", {
|
|
60
|
+
value: "dt",
|
|
61
|
+
children: "DT"
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ t("option", {
|
|
64
|
+
value: "dd",
|
|
65
|
+
children: "DD"
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
})
|
|
69
|
+
});
|
|
70
|
+
};
|
|
68
71
|
//#endregion
|
|
69
72
|
export { i as default };
|
|
@@ -4,18 +4,21 @@ import { useCallback as n } from "react";
|
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import i from "clsx";
|
|
6
6
|
//#region src/elements/structure/TabContainer/TabContainerItem/TabContainerItem.tsx
|
|
7
|
-
var a = ({ className: t = "", children: a, ref: o, tabSelected: s, tabIndex: c = 0, isHeader: l, onSelect: u }) =>
|
|
8
|
-
|
|
9
|
-
onClick: n(() => {
|
|
7
|
+
var a = ({ className: t = "", children: a, ref: o, tabSelected: s, tabIndex: c = 0, isHeader: l, onSelect: u }) => {
|
|
8
|
+
let d = n(() => {
|
|
10
9
|
!l || s === c || u?.(c);
|
|
11
10
|
}, [
|
|
12
11
|
l,
|
|
13
12
|
s,
|
|
14
13
|
c,
|
|
15
14
|
u
|
|
16
|
-
])
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
]);
|
|
16
|
+
return /* @__PURE__ */ r(e, {
|
|
17
|
+
ref: o,
|
|
18
|
+
onClick: d,
|
|
19
|
+
className: i("plitzi-component__tab-container-item", t, { active: s === c }),
|
|
20
|
+
children: a
|
|
21
|
+
});
|
|
22
|
+
}, o = t(a);
|
|
20
23
|
//#endregion
|
|
21
24
|
export { a as TabContainerItem, o as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-elements",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.17",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -772,15 +772,15 @@
|
|
|
772
772
|
"type": "module",
|
|
773
773
|
"sideEffects": false,
|
|
774
774
|
"dependencies": {
|
|
775
|
-
"@plitzi/nexus": "0.
|
|
775
|
+
"@plitzi/nexus": "^1.0.0",
|
|
776
776
|
"@plitzi/plitzi-ui": "^1.6.18",
|
|
777
|
-
"@plitzi/sdk-auth": "0.32.
|
|
778
|
-
"@plitzi/sdk-dev-tools": "0.32.
|
|
779
|
-
"@plitzi/sdk-event-bridge": "0.32.
|
|
780
|
-
"@plitzi/sdk-interactions": "0.32.
|
|
781
|
-
"@plitzi/sdk-navigation": "0.32.
|
|
782
|
-
"@plitzi/sdk-schema": "0.32.
|
|
783
|
-
"@plitzi/sdk-shared": "0.32.
|
|
777
|
+
"@plitzi/sdk-auth": "0.32.17",
|
|
778
|
+
"@plitzi/sdk-dev-tools": "0.32.17",
|
|
779
|
+
"@plitzi/sdk-event-bridge": "0.32.17",
|
|
780
|
+
"@plitzi/sdk-interactions": "0.32.17",
|
|
781
|
+
"@plitzi/sdk-navigation": "0.32.17",
|
|
782
|
+
"@plitzi/sdk-schema": "0.32.17",
|
|
783
|
+
"@plitzi/sdk-shared": "0.32.17",
|
|
784
784
|
"clsx": "^2.1.1",
|
|
785
785
|
"immer": "^11.1.15"
|
|
786
786
|
},
|
|
@@ -792,7 +792,7 @@
|
|
|
792
792
|
"eslint": "^9.39.5",
|
|
793
793
|
"react": "^19.2.8",
|
|
794
794
|
"typescript": "^6.0.3",
|
|
795
|
-
"vite": "^8.
|
|
795
|
+
"vite": "^8.2.0",
|
|
796
796
|
"vitest": "^4.1.10"
|
|
797
797
|
}
|
|
798
798
|
}
|