@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 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: a(() => ({
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 = t(o, o.endsWith(".mjs") || o.includes(".esm.") || o.includes(".module."), s).finally(() => {
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: e,
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", o(() => ({ [`${v}_setState`]: P }), [v, P]));
32
- let F = T.idRef, I = /* @__PURE__ */ p(e, {
33
- value: o(() => ({
34
- id: v,
35
- idRef: F,
36
- rootId: y,
37
- attributes: k,
38
- definition: A,
39
- plitziElementLayout: M,
40
- style: j,
41
- elementState: N,
42
- setElementState: P
43
- }), [
44
- k,
45
- A,
46
- N,
47
- v,
48
- F,
49
- M,
50
- y,
51
- j,
52
- P
53
- ]),
54
- children: o(() => {
55
- let e = {
56
- ...E.attributes,
57
- ...h.extraProps,
58
- ...D,
59
- ...t(h, [
60
- "plitziJsxSkipHOC",
61
- "internalProps",
62
- "className",
63
- "children",
64
- "extraProps"
65
- ])
66
- };
67
- return O && (e = {
68
- ...e,
69
- children: O
70
- }), /* @__PURE__ */ p(r, { children: /* @__PURE__ */ p(m, {
71
- ...e,
72
- ref: g
73
- }) });
74
- }, [
75
- E.attributes,
76
- h,
77
- D,
78
- O
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: I
103
+ children: z
104
104
  });
105
105
  }
106
- return I;
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]), [a] = t(e(() => i.map((e) => `runtime.sources.${e}`), [i]));
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] = a[n];
18
+ e[t] = o[n];
19
19
  }), e;
20
- }, [i, a]);
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
- ]), [I = d] = l("runtime.sources", { enabled: _ || !!(O && Object.keys(O).length) }), L = c({});
27
- L.current = I;
28
- let R = a(() => ({ dataSource: L.current }), [L]), z = s(() => ({
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]), B = e({
31
+ }), [b]), V = e({
32
32
  attributes: E,
33
33
  definition: D,
34
34
  setElementState: j
35
35
  });
36
- return N({
36
+ N({
37
37
  id: w,
38
38
  interactions: O,
39
- triggers: z,
39
+ triggers: B,
40
40
  callbacks: s(() => ({
41
41
  ...x,
42
- ...B
43
- }), [x, B]),
44
- getAdditionalParams: R
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}`, () => L.current), () => {
48
+ if (_) return p.addProviderMethod(`getElementDataSource-${C}`, () => R.current), () => {
49
49
  p.removeProviderMethod(`getElementDataSource-${C}`);
50
50
  };
51
51
  }, [
52
52
  _,
53
- L,
53
+ R,
54
54
  C
55
- ]), {
56
- className: f(T, t({
57
- id: C,
58
- className: y,
59
- previewMode: g,
60
- baseElementId: v,
61
- definition: D,
62
- elementState: A,
63
- plitziElementLayout: k
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: t(() => o(v).map((e) => ({
39
- path: e,
40
- name: `variables.${e}`
41
- })), [v])
41
+ fields: y
42
42
  }), i("runtime.sources.variables", v);
43
- let [y = {}] = r("pageDefinitions"), b = n(() => Object.values(y).map((e) => ({
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
- })), [y]), x = n(() => ({
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: t(() => {
60
- let e = o({
61
- routeParams: p,
62
- queryParams: m
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: C,
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
- ...S
97
+ ...w
98
98
  }
99
99
  };
100
100
  case "basic": return {
101
- isAuthenticated: C,
102
- accessToken: S?.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
- ...S?.details ?? {}
109
+ ...w?.details ?? {}
110
110
  }
111
111
  };
112
112
  default: return {};
113
113
  }
114
114
  }, [
115
+ E,
115
116
  w,
116
- S,
117
- C
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: t(() => o(T).map((e) => ({
124
- path: e,
125
- name: `user.${e}`
126
- })), [T])
127
- }), i("runtime.sources.auth", T);
128
- let [E] = r("runtime.state");
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: t(() => o(E).map((e) => ({
134
- path: e,
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 }) => /* @__PURE__ */ n("div", {
6
- className: "flex h-full flex-col",
7
- children: /* @__PURE__ */ n(e, {
8
- className: "grow",
9
- value: r,
10
- mode: "html",
11
- onChange: t((e) => i?.("content", e), [i])
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 }) => /* @__PURE__ */ t("div", {
6
- className: "flex flex-col gap-4 py-2",
7
- children: /* @__PURE__ */ n(r, {
8
- label: "Node Tag",
9
- value: i,
10
- onChange: e((e) => (t) => a?.(e, t), [a])("subType"),
11
- children: [
12
- /* @__PURE__ */ t("option", {
13
- value: "div",
14
- children: "Div (Container)"
15
- }),
16
- /* @__PURE__ */ t("option", {
17
- value: "section",
18
- children: "Section"
19
- }),
20
- /* @__PURE__ */ t("option", {
21
- value: "article",
22
- children: "Article"
23
- }),
24
- /* @__PURE__ */ t("option", {
25
- value: "main",
26
- children: "Main (Page Content)"
27
- }),
28
- /* @__PURE__ */ t("option", {
29
- value: "aside",
30
- children: "Aside (Sidebar)"
31
- }),
32
- /* @__PURE__ */ t("option", {
33
- value: "header",
34
- children: "Header"
35
- }),
36
- /* @__PURE__ */ t("option", {
37
- value: "footer",
38
- children: "Footer"
39
- }),
40
- /* @__PURE__ */ t("option", {
41
- value: "nav",
42
- children: "Navigation"
43
- }),
44
- /* @__PURE__ */ t("option", {
45
- value: "p",
46
- children: "Paragraph"
47
- }),
48
- /* @__PURE__ */ t("option", {
49
- value: "span",
50
- children: "Span (Inline)"
51
- }),
52
- /* @__PURE__ */ t("option", {
53
- value: "strong",
54
- children: "Strong (Bold)"
55
- }),
56
- /* @__PURE__ */ t("option", {
57
- value: "em",
58
- children: "Emphasis (Italic)"
59
- }),
60
- /* @__PURE__ */ t("option", {
61
- value: "small",
62
- children: "Small Text"
63
- }),
64
- /* @__PURE__ */ t("option", {
65
- value: "blockquote",
66
- children: "Block Quote"
67
- }),
68
- /* @__PURE__ */ t("option", {
69
- value: "pre",
70
- children: "Preformatted Text"
71
- }),
72
- /* @__PURE__ */ t("option", {
73
- value: "code",
74
- children: "Code Block"
75
- }),
76
- /* @__PURE__ */ t("option", {
77
- value: "ul",
78
- children: "Unordered List"
79
- }),
80
- /* @__PURE__ */ t("option", {
81
- value: "ol",
82
- children: "Ordered List"
83
- }),
84
- /* @__PURE__ */ t("option", {
85
- value: "li",
86
- children: "List Item"
87
- }),
88
- /* @__PURE__ */ t("option", {
89
- value: "dl",
90
- children: "Description List"
91
- }),
92
- /* @__PURE__ */ t("option", {
93
- value: "dt",
94
- children: "Term"
95
- }),
96
- /* @__PURE__ */ t("option", {
97
- value: "dd",
98
- children: "Description"
99
- }),
100
- /* @__PURE__ */ t("option", {
101
- value: "img",
102
- children: "Image"
103
- }),
104
- /* @__PURE__ */ t("option", {
105
- value: "figure",
106
- children: "Figure"
107
- }),
108
- /* @__PURE__ */ t("option", {
109
- value: "figcaption",
110
- children: "Figure Caption"
111
- }),
112
- /* @__PURE__ */ t("option", {
113
- value: "video",
114
- children: "Video"
115
- }),
116
- /* @__PURE__ */ t("option", {
117
- value: "audio",
118
- children: "Audio"
119
- }),
120
- /* @__PURE__ */ t("option", {
121
- value: "form",
122
- children: "Form"
123
- }),
124
- /* @__PURE__ */ t("option", {
125
- value: "label",
126
- children: "Label"
127
- }),
128
- /* @__PURE__ */ t("option", {
129
- value: "input",
130
- children: "Input Field"
131
- }),
132
- /* @__PURE__ */ t("option", {
133
- value: "textarea",
134
- children: "Textarea"
135
- }),
136
- /* @__PURE__ */ t("option", {
137
- value: "select",
138
- children: "Select (Dropdown)"
139
- }),
140
- /* @__PURE__ */ t("option", {
141
- value: "option",
142
- children: "Option"
143
- }),
144
- /* @__PURE__ */ t("option", {
145
- value: "button",
146
- children: "Button"
147
- }),
148
- /* @__PURE__ */ t("option", {
149
- value: "a",
150
- children: "Link"
151
- }),
152
- /* @__PURE__ */ t("option", {
153
- value: "details",
154
- children: "Details"
155
- }),
156
- /* @__PURE__ */ t("option", {
157
- value: "summary",
158
- children: "Summary"
159
- }),
160
- /* @__PURE__ */ t("option", {
161
- value: "table",
162
- children: "Table"
163
- }),
164
- /* @__PURE__ */ t("option", {
165
- value: "thead",
166
- children: "Table Head"
167
- }),
168
- /* @__PURE__ */ t("option", {
169
- value: "tbody",
170
- children: "Table Body"
171
- }),
172
- /* @__PURE__ */ t("option", {
173
- value: "tr",
174
- children: "Table Row"
175
- }),
176
- /* @__PURE__ */ t("option", {
177
- value: "th",
178
- children: "Table Header Cell"
179
- }),
180
- /* @__PURE__ */ t("option", {
181
- value: "td",
182
- children: "Table Data Cell"
183
- }),
184
- /* @__PURE__ */ t("option", {
185
- value: "hr",
186
- children: "Horizontal Rule"
187
- }),
188
- /* @__PURE__ */ t("option", {
189
- value: "br",
190
- children: "Line Break"
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(a(h, u), "definition.baseElementId");
58
- return S?.flat ? Object.values(S.flat).filter((t) => a(t, "definition.type", "") === "container" && a(t, "definition.rootId", "") === e && Array.isArray(a(t, "definition.items")) && a(t, "definition.items", []).length === 0).map((e) => ({
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
- ...i(() => {
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 }) => /* @__PURE__ */ t("div", {
6
- className: "flex h-full flex-col gap-4 py-2",
7
- children: /* @__PURE__ */ t(n, {
8
- value: r,
9
- label: "Content",
10
- className: "h-full",
11
- onChange: e((e) => i?.("content", e), [i])
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 }) => /* @__PURE__ */ t("div", {
6
- className: "flex h-full flex-col gap-4 py-2",
7
- children: /* @__PURE__ */ t(n, {
8
- value: r,
9
- label: "Content",
10
- className: "h-full",
11
- rows: 4,
12
- onChange: e((e) => i?.("content", e), [i]),
13
- size: "xs"
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 }) => /* @__PURE__ */ t("div", {
6
- className: "flex h-full flex-col gap-4 py-2",
7
- children: /* @__PURE__ */ t(n, {
8
- value: r,
9
- label: "Content",
10
- className: "h-full",
11
- size: "xs",
12
- onChange: e((e) => i?.("content", e), [i])
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: e((e) => g(e), []),
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 }) => /* @__PURE__ */ t("div", {
6
- className: "flex flex-col gap-4 py-2",
7
- children: /* @__PURE__ */ n(r, {
8
- label: "ContainerTag",
9
- value: i,
10
- onChange: e((e) => (t) => a?.(e, t), [a])("subType"),
11
- size: "xs",
12
- children: [
13
- /* @__PURE__ */ t("option", {
14
- value: "div",
15
- children: "Div"
16
- }),
17
- /* @__PURE__ */ t("option", {
18
- value: "header",
19
- children: "Header"
20
- }),
21
- /* @__PURE__ */ t("option", {
22
- value: "footer",
23
- children: "Footer"
24
- }),
25
- /* @__PURE__ */ t("option", {
26
- value: "nav",
27
- children: "Nav"
28
- }),
29
- /* @__PURE__ */ t("option", {
30
- value: "main",
31
- children: "Main"
32
- }),
33
- /* @__PURE__ */ t("option", {
34
- value: "section",
35
- children: "Section"
36
- }),
37
- /* @__PURE__ */ t("option", {
38
- value: "article",
39
- children: "Article"
40
- }),
41
- /* @__PURE__ */ t("option", {
42
- value: "aside",
43
- children: "Aside"
44
- }),
45
- /* @__PURE__ */ t("option", {
46
- value: "address",
47
- children: "Address"
48
- }),
49
- /* @__PURE__ */ t("option", {
50
- value: "figure",
51
- children: "Figure"
52
- }),
53
- /* @__PURE__ */ t("option", {
54
- value: "dl",
55
- children: "DL"
56
- }),
57
- /* @__PURE__ */ t("option", {
58
- value: "dt",
59
- children: "DT"
60
- }),
61
- /* @__PURE__ */ t("option", {
62
- value: "dd",
63
- children: "DD"
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 }) => /* @__PURE__ */ r(e, {
8
- ref: o,
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
- className: i("plitzi-component__tab-container-item", t, { active: s === c }),
18
- children: a
19
- }), o = t(a);
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.15",
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.32.15",
775
+ "@plitzi/nexus": "^1.0.0",
776
776
  "@plitzi/plitzi-ui": "^1.6.18",
777
- "@plitzi/sdk-auth": "0.32.15",
778
- "@plitzi/sdk-dev-tools": "0.32.15",
779
- "@plitzi/sdk-event-bridge": "0.32.15",
780
- "@plitzi/sdk-interactions": "0.32.15",
781
- "@plitzi/sdk-navigation": "0.32.15",
782
- "@plitzi/sdk-schema": "0.32.15",
783
- "@plitzi/sdk-shared": "0.32.15",
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.1.5",
795
+ "vite": "^8.2.0",
796
796
  "vitest": "^4.1.10"
797
797
  }
798
798
  }