@plitzi/sdk-style 0.39.2 → 0.39.4

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,24 @@
1
1
  # @plitzi/sdk-style
2
2
 
3
+ ## 0.39.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 35415a1: 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 [35415a1]
10
+ - @plitzi/sdk-event-bridge@0.39.4
11
+ - @plitzi/sdk-shared@0.39.4
12
+ - @plitzi/sdk-variables@0.39.4
13
+
14
+ ## 0.39.3
15
+
16
+ ### Patch Changes
17
+
18
+ - @plitzi/sdk-event-bridge@0.39.3
19
+ - @plitzi/sdk-shared@0.39.3
20
+ - @plitzi/sdk-variables@0.39.3
21
+
3
22
  ## 0.39.2
4
23
 
5
24
  ### Patch Changes
@@ -4,20 +4,25 @@ export type StyleMapProps = {
4
4
  variables?: Style['variables'];
5
5
  fonts?: Style['fonts'];
6
6
  };
7
+ /**
8
+ * What a selector is written with: its attributes whole, or — at a `styleSelector` and a `path` — the block, the object
9
+ * or the value that goes there. The reducer's actions and the builder's style context take the same.
10
+ */
11
+ export type SelectorValue = StyleItem['attributes'] | Partial<StyleObject> | StyleValue;
7
12
  declare class StyleMap {
8
13
  platform: Style['platform'];
9
14
  variables: Style['variables'];
10
15
  fonts: SpaceFont[];
11
16
  constructor(props: StyleMapProps);
12
17
  static getInstance: (props: StyleMapProps) => StyleMap;
13
- addSelector(displayMode: DisplayMode, selector: string, type: TagType, path: StyleCategory | undefined, value: StyleItem['attributes'] | Partial<StyleObject> | StyleValue | undefined, params: StyleTarget): boolean;
14
- static addSelector(style: Pick<Style, 'platform' | 'variables'>, displayMode: DisplayMode, selector: string, type: TagType, path: StyleCategory | undefined, value: StyleItem['attributes'] | Partial<StyleObject> | StyleValue | undefined, params: StyleTarget): boolean;
18
+ addSelector(displayMode: DisplayMode, selector: string, type: TagType, path: StyleCategory | undefined, value: SelectorValue | undefined, params: StyleTarget): boolean;
19
+ static addSelector(style: Pick<Style, 'platform' | 'variables'>, displayMode: DisplayMode, selector: string, type: TagType, path: StyleCategory | undefined, value: SelectorValue | undefined, params: StyleTarget): boolean;
15
20
  getSelector: (displayMode: DisplayMode, selector: string) => StyleItem | undefined;
16
21
  static getSelector: (style: Pick<Style, "platform" | "variables">, displayMode: DisplayMode, selector: string) => StyleItem | undefined;
17
- updateSelector(displayMode: DisplayMode, selector: string, path: StyleCategory | undefined, value: StyleItem['attributes'] | Partial<StyleObject> | StyleValue | undefined, params: StyleTarget & {
22
+ updateSelector(displayMode: DisplayMode, selector: string, path: StyleCategory | undefined, value: SelectorValue | undefined, params: StyleTarget & {
18
23
  styleSelector: string;
19
24
  }): boolean;
20
- static updateSelector(style: Pick<Style, 'platform' | 'variables'>, displayMode: DisplayMode, selector: string, path: StyleCategory | undefined, value: StyleItem['attributes'] | Partial<StyleObject> | StyleValue | undefined, params: StyleTarget & {
25
+ static updateSelector(style: Pick<Style, 'platform' | 'variables'>, displayMode: DisplayMode, selector: string, path: StyleCategory | undefined, value: SelectorValue | undefined, params: StyleTarget & {
21
26
  styleSelector: string;
22
27
  }): boolean;
23
28
  removeSelector: (displayMode: DisplayMode | undefined, selector: string) => boolean;
@@ -29,10 +29,10 @@ var o = class {
29
29
  return this.getInstance(e).updateSelector(t, n, r, i, a);
30
30
  }
31
31
  removeSelector = (e, t) => {
32
- if (e) return this.platform[e][t] ? (delete this.platform[e][t], !0) : !1;
32
+ if (e) return this.platform[e][t] ? (Reflect.deleteProperty(this.platform[e], t), !0) : !1;
33
33
  let n = !1;
34
34
  return Object.keys(this.platform).forEach((e) => {
35
- this.platform[e][t] && (n = !0, delete this.platform[e][t]);
35
+ this.platform[e][t] && (n = !0, Reflect.deleteProperty(this.platform[e], t));
36
36
  }), n;
37
37
  };
38
38
  static removeSelector = (e, t, n) => this.getInstance(e).removeSelector(t, n);
@@ -48,14 +48,14 @@ var o = class {
48
48
  static updateSelectorVariable = (e, t, n, r, i, a) => this.getInstance(e).updateSelectorVariable(t, n, r, i, a);
49
49
  removeSelectorVariable = (n, r, i, o) => {
50
50
  let s = t(this.platform, n, r);
51
- return !s || !s.variables || !s.variables[i] || !s.variables[i][o] ? !1 : (delete s.variables[i][o], Object.keys(s.variables[i]).length === 0 && delete s.variables[i], Object.keys(s.variables).length === 0 && delete s.variables, a(this.platform, `${n}.${r}.cache`, e(s)), !0);
51
+ return !s || !s.variables || !s.variables[i] || !s.variables[i][o] ? !1 : (Reflect.deleteProperty(s.variables[i], o), Object.keys(s.variables[i]).length === 0 && Reflect.deleteProperty(s.variables, i), Object.keys(s.variables).length === 0 && delete s.variables, a(this.platform, `${n}.${r}.cache`, e(s)), !0);
52
52
  };
53
53
  static removeSelectorVariable = (e, t, n, r, i) => this.getInstance(e).removeSelectorVariable(t, n, r, i);
54
54
  addVariable = (e, t, n) => (this.variables[e] || (this.variables[e] = {}), !this.variables[e][t] && (this.variables[e][t] = n, !0));
55
55
  static addVariable = (e, t, n, r) => this.getInstance(e).addVariable(t, n, r);
56
56
  updateVariable = (e, t, n) => !this.variables[e] || !this.variables[e][t] ? !1 : (this.variables[e][t] = n, !0);
57
57
  static updateVariable = (e, t, n, r) => this.getInstance(e).updateVariable(t, n, r);
58
- removeVariable = (e, t) => !this.variables[e] || !this.variables[e][t] ? !1 : (delete this.variables[e][t], Object.keys(this.variables[e]).length === 0 && delete this.variables[e], !0);
58
+ removeVariable = (e, t) => !this.variables[e] || !this.variables[e][t] ? !1 : (Reflect.deleteProperty(this.variables[e], t), Object.keys(this.variables[e]).length === 0 && Reflect.deleteProperty(this.variables, e), !0);
59
59
  static removeVariable = (e, t, n) => this.getInstance(e).removeVariable(t, n);
60
60
  addFont = (e) => !this.fonts.some((t) => t.family === e.family) && (this.fonts.push(e), !0);
61
61
  static addFont = (e, t) => {
@@ -10,7 +10,7 @@ var s = (t, n, r) => {
10
10
  };
11
11
  if (n && e(n)) {
12
12
  let e = { ...n };
13
- for (let t in n) e[t] === void 0 && delete e[t];
13
+ for (let t in n) e[t] === void 0 && Reflect.deleteProperty(e, t);
14
14
  return e;
15
15
  }
16
16
  return r;
@@ -1,4 +1,5 @@
1
- import { DisplayMode, SnippetStyle, SpaceFont, Style, StyleCategory, StyleItem, StyleTarget, StyleVariableCategory, StyleVariableValue, TagType } from '@plitzi/sdk-shared';
1
+ import { SelectorValue } from './StyleMap/StyleMap';
2
+ import { DisplayMode, SnippetStyle, SpaceFont, Style, StyleCategory, StyleTarget, StyleVariableCategory, StyleVariableValue, TagType } from '@plitzi/sdk-shared';
2
3
  import { ReducerActionOrigin } from '@plitzi/sdk-shared/helpers';
3
4
  export declare const StyleActions: {
4
5
  readonly STYLE_UPDATE: "STYLE_UPDATE";
@@ -28,14 +29,14 @@ export type StyleReducerActions = StyleReducerActionsBase & ({
28
29
  selector: string;
29
30
  path?: StyleCategory;
30
31
  selectorType: TagType;
31
- value?: StyleItem['attributes'];
32
+ value?: SelectorValue;
32
33
  params: StyleTarget;
33
34
  } | {
34
35
  type: 'STYLE_UPDATE_SELECTOR';
35
36
  displayMode: DisplayMode;
36
37
  selector: string;
37
38
  path?: StyleCategory;
38
- value?: StyleItem['attributes'];
39
+ value?: SelectorValue;
39
40
  params: StyleTarget & {
40
41
  styleSelector: string;
41
42
  };
@@ -6,11 +6,13 @@ export type SelectorProps = {
6
6
  selectors?: Record<string, StyleItem>;
7
7
  selector?: Pick<StyleItem, 'name' | 'type'>;
8
8
  componentType?: string;
9
+ /** What a class's chip reads as instead of its name, by name (see `SelectorItem`'s `label`). */
10
+ labels?: Record<string, string>;
9
11
  disabled?: boolean;
10
12
  onSelectorSelected?: (selector?: SelectorValue) => void;
11
13
  onAdd?: (selector: SelectorValue, isDuplicated: boolean, originalSelector?: SelectorValue) => void;
12
14
  onChange?: (value: string) => void;
13
15
  onRemove?: (selector: SelectorValue) => void;
14
16
  };
15
- declare const _default: import('react').MemoExoticComponent<({ className, value, selectors, selector: selectorProp, componentType, disabled, onChange, onSelectorSelected, onAdd, onRemove }: SelectorProps) => import('react').JSX.Element>;
17
+ declare const _default: import('react').MemoExoticComponent<({ className, value, selectors, selector: selectorProp, componentType, labels, disabled, onChange, onSelectorSelected, onAdd, onRemove }: SelectorProps) => import('react').JSX.Element>;
16
18
  export default _default;
@@ -10,100 +10,100 @@ import v from "clsx";
10
10
  import y, { useFloating as b } from "@plitzi/plitzi-ui/ContainerFloating";
11
11
  import { usePopup as x } from "@plitzi/plitzi-ui/Popup";
12
12
  // src/builder/components/Selector/Selector.tsx
13
- var S = "Classes apply left to right, in the order the stylesheet lists them: where two set the same property, the one further right wins.", C = s(({ className: s = "", value: C = "", selectors: w, selector: T, componentType: E, disabled: D = !1, onChange: O, onSelectorSelected: k, onAdd: A, onRemove: j }) => {
14
- let M = u(null), [N, P] = d(""), [F, I, , L, R] = b({ disabled: D }), { existsPopup: z, addPopup: B } = x("floating"), V = l(() => Object.values(w ?? {}).find((e) => e.type === "element" && e.componentType === E), [E, w]), H = l(() => Object.values(g(w ?? {}, C.split(" "))).map((e) => g(e, ["name", "type"])), [w, C]), U = l(() => e(H.map((e, t) => ({
13
+ var S = "Classes apply left to right, in the order the stylesheet lists them: where two set the same property, the one further right wins.", C = s(({ className: s = "", value: C = "", selectors: w, selector: T, componentType: E, labels: D, disabled: O = !1, onChange: k, onSelectorSelected: A, onAdd: j, onRemove: M }) => {
14
+ let N = u(null), [P, F] = d(""), [I, L, , R, z] = b({ disabled: O }), { existsPopup: B, addPopup: V } = x("floating"), H = l(() => Object.values(w ?? {}).find((e) => e.type === "element" && e.componentType === E), [E, w]), U = l(() => Object.values(g(w ?? {}, C.split(" "))).map((e) => g(e, ["name", "type"])), [w, C]), W = l(() => e(U.map((e, t) => ({
15
15
  ...e,
16
16
  position: t
17
- })), Object.keys(w ?? {})), [H, w]), W = l(() => t(U.map(({ name: e }) => e), w ?? {}), [U, w]), G = l(() => n(T?.name.replace(/:.*/, ""), W), [T, W]), K = l(() => Object.values(h(w ?? {}, C.split(" "))), [w, C]), q = c((e) => {
18
- I(e.target.value.length > 0), P(e.target.value);
19
- }, [I]), J = c(() => {
20
- M.current?.focus(), I(N.length > 0);
17
+ })), Object.keys(w ?? {})), [U, w]), G = l(() => t(W.map(({ name: e }) => e), w ?? {}), [W, w]), K = l(() => n(T?.name.replace(/:.*/, ""), G), [T, G]), q = l(() => Object.values(h(w ?? {}, C.split(" "))), [w, C]), J = c((e) => {
18
+ L(e.target.value.length > 0), F(e.target.value);
19
+ }, [L]), Y = c(() => {
20
+ N.current?.focus(), L(P.length > 0);
21
21
  }, [
22
- M,
23
22
  N,
24
- I
25
- ]), Y = c((e) => k?.(e), [k]), X = c((e) => (t, n = !0) => {
26
- let r = [...H.filter((t, n) => n !== e), t].filter((e) => !!e.name).reduce((e, t) => `${e} ${t.name}`, "").trim();
27
- A?.(t, !1), O?.(r), n && k?.(t);
23
+ P,
24
+ L
25
+ ]), X = c((e) => A?.(e), [A]), Z = c((e) => (t, n = !0) => {
26
+ let r = [...U.filter((t, n) => n !== e), t].filter((e) => !!e.name).reduce((e, t) => `${e} ${t.name}`, "").trim();
27
+ j?.(t, !1), k?.(r), n && A?.(t);
28
28
  }, [
29
- H,
30
- A,
31
- O,
32
- k
33
- ]), Z = c((e) => (t, n) => {
29
+ U,
30
+ j,
31
+ k,
32
+ A
33
+ ]), Q = c((e) => (t, n) => {
34
34
  switch (t) {
35
35
  case "remove":
36
36
  case "delete": {
37
- let n = H.filter((t, n) => n !== e), r = n.reduce((e, t) => `${e} ${t.name}`, "").trim();
38
- T && H[e].name === T.name && k?.(m(n, "0")), O?.(r), t === "delete" && j?.(H[e]);
37
+ let n = U.filter((t, n) => n !== e), r = n.reduce((e, t) => `${e} ${t.name}`, "").trim();
38
+ T && U[e].name === T.name && A?.(m(n, "0")), k?.(r), t === "delete" && M?.(U[e]);
39
39
  break;
40
40
  }
41
41
  case "duplicate": {
42
42
  if (!n) break;
43
- let t = [...H, n].filter((e) => !!e.name).reduce((e, t) => `${e} ${t.name}`, "").trim();
44
- A?.(n, !0, m(H, `${e}`)), O?.(t);
43
+ let t = [...U, n].filter((e) => !!e.name).reduce((e, t) => `${e} ${t.name}`, "").trim();
44
+ j?.(n, !0, m(U, `${e}`)), k?.(t);
45
45
  break;
46
46
  }
47
47
  }
48
48
  }, [
49
- H,
49
+ U,
50
50
  T,
51
- O,
52
51
  k,
53
52
  A,
54
- j
55
- ]), Q = c((e) => {
53
+ j,
54
+ M
55
+ ]), $ = c((e) => {
56
56
  switch (e.key) {
57
57
  case "Enter": {
58
58
  let { value: t } = e.currentTarget;
59
- if (t !== "" && !H.find((e) => e.name === t)) {
60
- P("");
59
+ if (t !== "" && !U.find((e) => e.name === t)) {
60
+ F("");
61
61
  let n = {
62
62
  name: r(t),
63
63
  type: "class"
64
- }, i = [...H, n].filter((e) => !!e.name).reduce((e, t) => `${e} ${t.name}`, "").trim();
65
- A?.(n, !1), O?.(i), I(!1), e.currentTarget.blur(), k?.(n);
64
+ }, i = [...U, n].filter((e) => !!e.name).reduce((e, t) => `${e} ${t.name}`, "").trim();
65
+ j?.(n, !1), k?.(i), L(!1), e.currentTarget.blur(), A?.(n);
66
66
  }
67
67
  setTimeout(() => {
68
- M.current?.focus();
68
+ N.current?.focus();
69
69
  }, 0);
70
70
  break;
71
71
  }
72
72
  case "ArrowUp":
73
- I(!1);
73
+ L(!1);
74
74
  break;
75
75
  case "ArrowDown":
76
- I(!0);
76
+ L(!0);
77
77
  break;
78
- case "Escape": e.stopPropagation(), P(""), e.currentTarget.blur();
78
+ case "Escape": e.stopPropagation(), F(""), e.currentTarget.blur();
79
79
  }
80
80
  }, [
81
- H,
82
- A,
83
- O,
84
- k,
85
- I
86
- ]), $ = c((e) => {
87
- setTimeout(() => P(""), 0), I(!1);
88
- let t = [...H, e].reduce((e, t) => `${e} ${t.name}`, "").trim();
89
- O?.(t), k?.(e);
90
- }, [
91
- H,
92
- O,
81
+ U,
82
+ j,
93
83
  k,
94
- I
84
+ A,
85
+ L
95
86
  ]), ee = c((e) => {
96
- setTimeout(() => P(""), 0), I(!1);
97
- let t = [...H, e].reduce((e, t) => `${e} ${t.name}`, "").trim();
98
- O?.(t), A?.(e, !1), k?.(e);
87
+ setTimeout(() => F(""), 0), L(!1);
88
+ let t = [...U, e].reduce((e, t) => `${e} ${t.name}`, "").trim();
89
+ k?.(t), A?.(e);
99
90
  }, [
100
- H,
101
- O,
102
- A,
91
+ U,
103
92
  k,
104
- I
93
+ A,
94
+ L
105
95
  ]), te = c((e) => {
106
- e.preventDefault(), e.stopPropagation(), z("styleManager") || B("styleManager", /* @__PURE__ */ f(o, {}), {
96
+ setTimeout(() => F(""), 0), L(!1);
97
+ let t = [...U, e].reduce((e, t) => `${e} ${t.name}`, "").trim();
98
+ k?.(t), j?.(e, !1), A?.(e);
99
+ }, [
100
+ U,
101
+ k,
102
+ j,
103
+ A,
104
+ L
105
+ ]), ne = c((e) => {
106
+ e.preventDefault(), e.stopPropagation(), B("styleManager") || V("styleManager", /* @__PURE__ */ f(o, {}), {
107
107
  icon: /* @__PURE__ */ f("i", { className: "fas fa-swatchbook text-base" }),
108
108
  title: "Style Manager",
109
109
  resizeHandles: ["se"],
@@ -113,77 +113,78 @@ var S = "Classes apply left to right, in the order the stylesheet lists them: wh
113
113
  width: 720,
114
114
  height: 640
115
115
  });
116
- }, [B, z]), ne = l(() => ({ width: R?.width }), [R]);
116
+ }, [V, B]), re = l(() => ({ width: z?.width }), [z]);
117
117
  return /* @__PURE__ */ p("div", {
118
118
  className: "flex w-full min-w-0 flex-col gap-1",
119
119
  children: [/* @__PURE__ */ p(y, {
120
- ref: L,
120
+ ref: R,
121
121
  className: "w-full",
122
- open: F,
122
+ open: I,
123
123
  children: [/* @__PURE__ */ f(y.Trigger, {
124
124
  className: "w-full",
125
125
  children: /* @__PURE__ */ p("div", {
126
126
  className: v("bg-grayviolet-200 relative flex flex-wrap gap-1 rounded-sm p-1 dark:bg-zinc-800", s, {
127
- "pointer-events-none cursor-not-allowed bg-gray-100 dark:bg-zinc-900": D,
128
- "cursor-pointer": !D
127
+ "pointer-events-none cursor-not-allowed bg-gray-100 dark:bg-zinc-900": O,
128
+ "cursor-pointer": !O
129
129
  }),
130
- onClick: J,
131
- onKeyDown: Q,
130
+ onClick: Y,
131
+ onKeyDown: $,
132
132
  children: [
133
133
  /* @__PURE__ */ f(_, {
134
134
  intent: "secondary",
135
135
  size: "custom",
136
- onClick: te,
136
+ onClick: ne,
137
137
  className: "h-7 w-7 rounded-sm bg-white dark:bg-zinc-700 dark:text-zinc-200",
138
138
  title: "Style Manager",
139
139
  children: /* @__PURE__ */ f(_.Icon, { icon: "fas fa-swatchbook" })
140
140
  }),
141
- V && /* @__PURE__ */ f(i, {
142
- selector: V.name,
143
- type: V.type,
141
+ H && /* @__PURE__ */ f(i, {
142
+ selector: H.name,
143
+ type: H.type,
144
144
  editable: !1,
145
- active: V.name === T?.name.replace(/:.*/, ""),
146
- onClick: Y
145
+ active: H.name === T?.name.replace(/:.*/, ""),
146
+ onClick: X
147
147
  }),
148
- U.map(({ position: e, ...t }) => /* @__PURE__ */ f(i, {
148
+ W.map(({ position: e, ...t }) => /* @__PURE__ */ f(i, {
149
149
  selector: t.name,
150
+ label: D?.[t.name],
150
151
  type: t.type,
151
152
  editable: t.type !== "element",
152
153
  active: t.name === T?.name.replace(/:.*/, ""),
153
- onAction: Z(e),
154
- onClick: Y,
155
- onChange: X(e)
154
+ onAction: Q(e),
155
+ onClick: X,
156
+ onChange: Z(e)
156
157
  }, `${e}_${t.name}`)),
157
158
  /* @__PURE__ */ f("input", {
158
- ref: M,
159
+ ref: N,
159
160
  className: "flex min-h-0 w-0 border-none bg-transparent px-1 py-0 text-xs text-inherit outline-hidden focus:min-w-[50px] focus:grow focus:ring-transparent",
160
161
  autoComplete: "off",
161
162
  autoCorrect: "off",
162
163
  autoCapitalize: "off",
163
164
  spellCheck: "false",
164
- value: N,
165
- onChange: q
165
+ value: P,
166
+ onChange: J
166
167
  })
167
168
  ]
168
169
  })
169
170
  }), /* @__PURE__ */ f(y.Content, {
170
- style: ne,
171
+ style: re,
171
172
  children: /* @__PURE__ */ f(a, {
172
- selector: N,
173
- selectors: K,
174
- onSelect: $,
175
- onCreate: ee
173
+ selector: P,
174
+ selectors: q,
175
+ onSelect: ee,
176
+ onCreate: te
176
177
  })
177
178
  })]
178
- }), U.length > 1 && /* @__PURE__ */ p("div", {
179
+ }), W.length > 1 && /* @__PURE__ */ p("div", {
179
180
  className: "flex min-w-0 items-center gap-1.5 px-1 text-[11px] text-gray-500 dark:text-zinc-400",
180
- title: G ?? S,
181
+ title: K ?? S,
181
182
  children: [/* @__PURE__ */ f("i", {
182
183
  className: "fas fa-circle-info shrink-0",
183
184
  title: S
184
185
  }), /* @__PURE__ */ f("span", {
185
186
  className: "truncate",
186
- children: G ?? "Left to right: the class further right wins where they overlap"
187
+ children: K ?? "Left to right: the class further right wins where they overlap"
187
188
  })]
188
189
  })]
189
190
  });
@@ -3,6 +3,11 @@ import { TagType } from '@plitzi/sdk-shared';
3
3
  export type SelectorItemProps = {
4
4
  className?: string;
5
5
  selector?: string;
6
+ /**
7
+ * What the chip reads as instead of the class's name, when the name says nothing to a person — a class the builder
8
+ * named after its element (`container-2f16`) reads as the element's label. Double-clicking still edits the name.
9
+ */
10
+ label?: string;
6
11
  type?: TagType;
7
12
  editable?: boolean;
8
13
  active?: boolean;
@@ -11,5 +16,5 @@ export type SelectorItemProps = {
11
16
  onChange?: (selector: SelectorValue) => void;
12
17
  onAction?: (action: 'duplicate' | 'remove' | 'delete', data?: SelectorValue) => void;
13
18
  };
14
- declare const SelectorItem: ({ className, selector, type, editable, active, readOnly, onClick, onChange, onAction }: SelectorItemProps) => import('react').JSX.Element;
19
+ declare const SelectorItem: ({ className, selector, label, type, editable, active, readOnly, onClick, onChange, onAction }: SelectorItemProps) => import('react').JSX.Element;
15
20
  export default SelectorItem;
@@ -1,49 +1,51 @@
1
1
  import { selectorFormatter as e } from "../SelectorHelper.mjs";
2
2
  import t from "./ItemOptions.mjs";
3
- import { useCallback as n } from "react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import a from "clsx";
6
- import o from "@plitzi/plitzi-ui/ContentEditable";
3
+ import { useCallback as n, useState as r } from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import o from "clsx";
6
+ import s from "@plitzi/plitzi-ui/ContentEditable";
7
7
  // src/builder/components/Selector/SelectorItem/SelectorItem.tsx
8
- var s = ({ className: s = "", selector: c = "", type: l = "class", editable: u = !0, active: d = !1, readOnly: f = !1, onClick: p, onChange: m, onAction: h }) => {
9
- let g = n((e) => {
10
- e.preventDefault(), f || e.stopPropagation(), p?.({
11
- name: c,
12
- type: l
8
+ var c = ({ className: c = "", selector: l = "", label: u, type: d = "class", editable: f = !0, active: p = !1, readOnly: m = !1, onClick: h, onChange: g, onAction: _ }) => {
9
+ let v = n((e) => {
10
+ e.preventDefault(), m || e.stopPropagation(), h?.({
11
+ name: l,
12
+ type: d
13
13
  });
14
14
  }, [
15
- p,
16
- f,
17
- c,
18
- l
19
- ]), _ = n((t) => {
20
- m?.({
15
+ h,
16
+ m,
17
+ l,
18
+ d
19
+ ]), [y, b] = r(!1), x = y || !u ? l : u, S = n(() => b(!0), []), C = n(() => b(!1), []), w = n((t) => {
20
+ g?.({
21
21
  name: e(t),
22
- type: l
22
+ type: d
23
23
  });
24
- }, [l, m]);
25
- return /* @__PURE__ */ i("div", {
26
- className: a("relative flex cursor-pointer items-center gap-1 rounded-sm px-2 py-1 select-none", s, {
27
- "bg-primary-600 text-white": l !== "element" && d,
28
- "bg-primary-500/20 text-primary-800 dark:text-primary-200": l === "element" && d,
29
- "bg-gray-200 text-zinc-700 hover:bg-gray-300 dark:bg-zinc-700 dark:text-zinc-200 dark:hover:bg-zinc-600": !d,
30
- "max-w-full min-w-0": !u
24
+ }, [d, g]);
25
+ return /* @__PURE__ */ a("div", {
26
+ className: o("relative flex cursor-pointer items-center gap-1 rounded-sm px-2 py-1 select-none", c, {
27
+ "bg-primary-600 text-white": d !== "element" && p,
28
+ "bg-primary-500/20 text-primary-800 dark:text-primary-200": d === "element" && p,
29
+ "bg-gray-200 text-zinc-700 hover:bg-gray-300 dark:bg-zinc-700 dark:text-zinc-200 dark:hover:bg-zinc-600": !p,
30
+ "max-w-full min-w-0": !f
31
31
  }),
32
- onClick: g,
33
- title: `${l}: ${c}`,
34
- children: [/* @__PURE__ */ i("div", {
32
+ onClick: v,
33
+ title: `${d}: ${l}`,
34
+ children: [/* @__PURE__ */ a("div", {
35
35
  className: "flex min-w-0 grow basis-0 text-xs",
36
- children: [u && /* @__PURE__ */ r(o, {
36
+ children: [f && /* @__PURE__ */ i(s, {
37
37
  className: "inline text-nowrap focus-visible:m-[1px] focus-visible:px-1 focus-visible:outline-1 focus-visible:outline-dashed",
38
- value: c,
38
+ value: x,
39
39
  openMode: "doubleClick",
40
- onChange: _
41
- }), !u && c]
42
- }), u && l !== "element" && /* @__PURE__ */ r(t, {
43
- selector: c,
44
- type: l,
45
- onAction: h
40
+ onChange: w,
41
+ onEditOpen: S,
42
+ onEditClose: C
43
+ }), !f && x]
44
+ }), f && d !== "element" && /* @__PURE__ */ i(t, {
45
+ selector: l,
46
+ type: d,
47
+ onAction: _
46
48
  })]
47
49
  });
48
50
  };
49
- export { s as default };
51
+ export { c as default };
@@ -184,7 +184,7 @@ var h = ({ displayMode: h, selectors: g, value: _, element: v, mode: y = "elemen
184
184
  N,
185
185
  j,
186
186
  F
187
- ]), $ = T || w || !!S?.length || !!C?.length;
187
+ ]), $e = o(() => v?.definition.label ? { [v.id]: v.definition.label } : void 0, [v?.id, v?.definition.label]), $ = T || w || !!S?.length || !!C?.length;
188
188
  return /* @__PURE__ */ u("div", {
189
189
  className: "flex w-full grow flex-col gap-2",
190
190
  children: [/* @__PURE__ */ u("div", {
@@ -196,6 +196,7 @@ var h = ({ displayMode: h, selectors: g, value: _, element: v, mode: y = "elemen
196
196
  selectors: g,
197
197
  selector: K,
198
198
  componentType: b,
199
+ labels: $e,
199
200
  onAdd: Pe,
200
201
  onChange: Ie,
201
202
  onRemove: Le,
@@ -30,7 +30,7 @@ var d = ({ children: d, componentType: f, selector: p, styleSelector: m = "base"
30
30
  ...t
31
31
  };
32
32
  Object.keys(e).forEach((t) => {
33
- e[t] === void 0 && delete e[t];
33
+ e[t] === void 0 && Reflect.deleteProperty(e, t);
34
34
  }), t = e;
35
35
  }
36
36
  C?.(e, t);
@@ -2,184 +2,182 @@ import e from "./StyleSelectorTag.mjs";
2
2
  import t from "../../models/SelectorForm/index.mjs";
3
3
  import { ancestorRemovals as n, unusedAncestors as r } from "../StyleInspector/helpers.mjs";
4
4
  import { memo as i, use as a, useCallback as o, useMemo as s, useState as c } from "react";
5
- import { useBuilderStore as l } from "@plitzi/sdk-shared/store";
6
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
7
- import { produce as f } from "immer";
8
- import p from "@plitzi/plitzi-ui/Button";
9
- import m from "@plitzi/plitzi-ui/Modal";
10
- import { ComponentContext as h } from "@plitzi/sdk-shared/elements";
11
- import { get as g, isEmpty as _, set as ee } from "@plitzi/plitzi-ui/helpers/lodash";
12
- import v from "@plitzi/plitzi-ui/hooks/useDisclosure";
13
- import y from "@plitzi/plitzi-ui/Input";
14
- import { BuilderContext as b } from "@plitzi/sdk-shared/builder/contexts";
15
- var x = i(({ displayMode: i, flat: x, flatList: S, selectors: C, selected: w, onSelect: T }) => {
16
- let E = s(() => Object.values(C ?? {}), [C]), [D, O] = c(""), [k, A] = c([]), { builderHandler: j } = a(b), [M] = l("style.platform"), { components: te } = a(h), ne = s(() => E.filter((e) => !!e.componentType).map((e) => e.componentType), [E]), N = s(() => {
17
- let e = E;
18
- return _(D) || (e = E.filter((e) => e.name.toLowerCase().includes(D.toLowerCase()))), e.sort((e, t) => {
5
+ import { useBuilderStore as ee } from "@plitzi/sdk-shared/store";
6
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
+ import { produce as d } from "immer";
8
+ import f from "@plitzi/plitzi-ui/Button";
9
+ import p from "@plitzi/plitzi-ui/Modal";
10
+ import { ComponentContext as m } from "@plitzi/sdk-shared/elements";
11
+ import { isEmpty as te } from "@plitzi/plitzi-ui/helpers/lodash";
12
+ import h from "@plitzi/plitzi-ui/hooks/useDisclosure";
13
+ import g from "@plitzi/plitzi-ui/Input";
14
+ import { BuilderContext as _ } from "@plitzi/sdk-shared/builder/contexts";
15
+ // src/builder/components/StyleManager/ManagerSelector.tsx
16
+ var v = (e) => e.split(":")[0], y = (e, t) => {
17
+ let n = v(t);
18
+ return !!n && Object.values(e.definition.styleSelectors).some((e) => e.split(" ").includes(n));
19
+ }, b = i(({ displayMode: i, flat: b, flatList: x, selectors: S, selected: C, onSelect: w }) => {
20
+ let T = s(() => Object.values(S ?? {}), [S]), [E, D] = c(""), [O, k] = c([]), { builderHandler: A } = a(_), [j] = ee("style.platform"), { components: M } = a(m), ne = s(() => T.filter((e) => !!e.componentType).map((e) => e.componentType), [T]), N = s(() => {
21
+ let e = T;
22
+ return te(E) || (e = T.filter((e) => e.name.toLowerCase().includes(E.toLowerCase()))), e.sort((e, t) => {
19
23
  let n = Number(e.type === "element"), r = Number(t.type === "element");
20
24
  return n === r ? e.name.localeCompare(t.name) : r - n;
21
25
  });
22
- }, [E, D]), P = o((e) => O(e), [O]), F = o((e, t) => {
26
+ }, [T, E]), P = o((e) => D(e), [D]), F = o((e, t) => {
23
27
  if (t) {
24
28
  if (t.mode === "default") {
25
29
  let { name: e } = t;
26
- j("styleAddSelector", i, e, "class", void 0, void 0, {
30
+ A("styleAddSelector", i, e, "class", void 0, void 0, {
27
31
  styleSelector: void 0,
28
32
  componentType: void 0
29
33
  });
30
34
  } else {
31
35
  let { componentType: e } = t;
32
- j("styleAddSelector", i, e, "element", void 0, void 0, {
36
+ A("styleAddSelector", i, e, "element", void 0, void 0, {
33
37
  styleSelector: void 0,
34
38
  componentType: e
35
39
  });
36
40
  }
37
41
  }
38
- }, [j, i]), [I, L, R, z] = v({
42
+ }, [A, i]), [I, L, R, z] = h({
39
43
  id: "add-selector",
40
44
  onClose: F
41
45
  }), B = o((e) => {
42
- T?.((t) => t?.name === e ? void 0 : E.find((t) => t.name === e));
43
- }, [T, E]), V = o((e, t) => t ? Object.values(g(e, "definition.styleSelectors", {})).find((e) => (t.includes(":") && (t = g(t.split(":"), "0", t)), e && t && e.split(" ").includes(t))) : [], []), H = o((e, t, n) => {
46
+ w?.((t) => t?.name === e ? void 0 : T.find((t) => t.name === e));
47
+ }, [w, T]), V = o((e, t, n) => {
44
48
  if (!t || !n || n.length === 0) return;
45
- let r = new Set(n), a = S.filter((e) => n.some((t) => V(e, t))).map((e) => f(e, (t) => {
46
- Object.keys(e.definition.styleSelectors).forEach((e) => {
47
- r.has(g(t, `definition.styleSelectors.${e}`, "")) && ee(t, `definition.styleSelectors.${e}`, "");
48
- });
49
+ let r = new Set(n), a = new Set(n.map(v)), o = x.filter((e) => n.some((t) => y(e, t))).map((e) => d(e, (e) => {
50
+ let { styleSelectors: t } = e.definition;
51
+ for (let [e, n] of Object.entries(t)) t[e] = n.split(" ").filter((e) => e && !a.has(e)).join(" ");
49
52
  }));
50
- a.length > 0 && j("schemaUpdateElements", a), j("styleRemoveSelectors", i, n), A((e) => e.filter((e) => !r.has(e))), T?.((e) => e && r.has(e.name) ? void 0 : e);
53
+ o.length > 0 && A("schemaUpdateElements", o), A("styleRemoveSelectors", i, n), k((e) => e.filter((e) => !r.has(e))), w?.((e) => e && r.has(e.name) ? void 0 : e);
51
54
  }, [
52
- j,
55
+ A,
53
56
  i,
54
- V,
55
- S,
56
- T
57
- ]), [U, W, G, K, , q] = v({
57
+ x,
58
+ w
59
+ ]), [H, U, W, G, , K] = h({
58
60
  id: "delete-selector",
59
- onClose: H
60
- }), J = o((e) => G(void 0, [e]), [G]), Y = o((e) => A((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), []), X = o(() => A([]), []), re = o(() => G(void 0, k), [G, k]), Z = Array.isArray(q) ? q.length : 0, ie = s(() => N.reduce((e, t) => ({
61
+ onClose: V
62
+ }), q = o((e) => W(void 0, [e]), [W]), J = o((e) => k((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), []), Y = o(() => k([]), []), X = o(() => W(void 0, O), [W, O]), Z = Array.isArray(K) ? K.length : 0, re = s(() => N.reduce((e, t) => ({
61
63
  ...e,
62
- [t.name]: S.filter((e) => V(e, t.name)).length
63
- }), {}), [
64
- N,
65
- S,
66
- V
67
- ]), Q = s(() => Object.fromEntries(E.map((e) => [e.name, {
64
+ [t.name]: x.filter((e) => y(e, t.name)).length
65
+ }), {}), [N, x]), Q = s(() => Object.fromEntries(T.map((e) => [e.name, {
68
66
  count: new Set(Object.values(e.attributes).flatMap((e) => Object.keys(e.ancestors ?? {}))).size,
69
- unused: r(x, e)
70
- }])), [x, E]), $ = s(() => Object.values(Q).reduce((e, { unused: t }) => e + t.size, 0), [Q]), ae = `${$} unused ancestor ${$ === 1 ? "rule" : "rules"}`, oe = o(() => {
71
- for (let [e, { unused: t }] of Object.entries(Q)) for (let r of n(M, e, t)) j("styleUpdateSelector", r.displayMode, e, void 0, void 0, {
67
+ unused: r(b, e)
68
+ }])), [b, T]), $ = s(() => Object.values(Q).reduce((e, { unused: t }) => e + t.size, 0), [Q]), ie = `${$} unused ancestor ${$ === 1 ? "rule" : "rules"}`, ae = o(() => {
69
+ for (let [e, { unused: t }] of Object.entries(Q)) for (let r of n(j, e, t)) A("styleUpdateSelector", r.displayMode, e, void 0, void 0, {
72
70
  styleSelector: r.styleSelector,
73
71
  styleAncestor: r.styleAncestor,
74
- componentType: M[r.displayMode][e].componentType
72
+ componentType: j[r.displayMode][e].componentType
75
73
  });
76
74
  }, [
77
75
  Q,
78
- j,
79
- M
80
- ]), se = o(() => void K(void 0, !1), [K]), ce = o(() => void K(void 0, !0), [K]);
81
- return /* @__PURE__ */ d("div", {
76
+ A,
77
+ j
78
+ ]), oe = o(() => void G(void 0, !1), [G]), se = o(() => void G(void 0, !0), [G]);
79
+ return /* @__PURE__ */ u("div", {
82
80
  className: "flex max-w-[350px] grow basis-0 flex-col gap-2 overflow-auto border-r border-gray-300 pt-2 pr-2 dark:border-zinc-700",
83
81
  children: [
84
- /* @__PURE__ */ d(p, {
82
+ /* @__PURE__ */ u(f, {
85
83
  intent: "primary",
86
84
  size: "sm",
87
85
  className: "w-full",
88
86
  iconPlacement: "before",
89
87
  onClick: R,
90
- children: [/* @__PURE__ */ u(p.Icon, {
88
+ children: [/* @__PURE__ */ l(f.Icon, {
91
89
  icon: "fas fa-tint",
92
90
  size: "md",
93
91
  className: "text-base"
94
92
  }), "New Selector"]
95
93
  }),
96
- /* @__PURE__ */ u(y, {
94
+ /* @__PURE__ */ l(g, {
97
95
  placeholder: "Search Selector",
98
- value: D,
96
+ value: E,
99
97
  onChange: P,
100
98
  size: "xs"
101
99
  }),
102
- $ > 0 && /* @__PURE__ */ d("div", {
100
+ $ > 0 && /* @__PURE__ */ u("div", {
103
101
  className: "flex items-center justify-between gap-2 rounded-sm bg-amber-500/10 px-2 py-1",
104
- children: [/* @__PURE__ */ d("span", {
102
+ children: [/* @__PURE__ */ u("span", {
105
103
  className: "text-xs text-amber-700 dark:text-amber-300",
106
- children: [/* @__PURE__ */ u("i", { className: "fas fa-triangle-exclamation mr-1" }), ae]
107
- }), /* @__PURE__ */ u(p, {
104
+ children: [/* @__PURE__ */ l("i", { className: "fas fa-triangle-exclamation mr-1" }), ie]
105
+ }), /* @__PURE__ */ l(f, {
108
106
  size: "xs",
109
- onClick: oe,
107
+ onClick: ae,
110
108
  children: "Clean up"
111
109
  })]
112
110
  }),
113
- k.length > 0 && /* @__PURE__ */ d("div", {
111
+ O.length > 0 && /* @__PURE__ */ u("div", {
114
112
  className: "bg-secondary-50 dark:bg-secondary-900/30 flex items-center justify-between gap-2 rounded-sm px-2 py-1",
115
- children: [/* @__PURE__ */ d("span", {
113
+ children: [/* @__PURE__ */ u("span", {
116
114
  className: "text-xs text-zinc-600 dark:text-zinc-300",
117
- children: [k.length, " selected"]
118
- }), /* @__PURE__ */ d("div", {
115
+ children: [O.length, " selected"]
116
+ }), /* @__PURE__ */ u("div", {
119
117
  className: "flex gap-1",
120
- children: [/* @__PURE__ */ u(p, {
118
+ children: [/* @__PURE__ */ l(f, {
121
119
  size: "xs",
122
- onClick: X,
120
+ onClick: Y,
123
121
  children: "Clear"
124
- }), /* @__PURE__ */ d(p, {
122
+ }), /* @__PURE__ */ u(f, {
125
123
  intent: "danger",
126
124
  size: "xs",
127
125
  iconPlacement: "before",
128
- onClick: re,
129
- children: [/* @__PURE__ */ u(p.Icon, { icon: "fas fa-trash" }), "Delete"]
126
+ onClick: X,
127
+ children: [/* @__PURE__ */ l(f.Icon, { icon: "fas fa-trash" }), "Delete"]
130
128
  })]
131
129
  })]
132
130
  }),
133
- /* @__PURE__ */ u("div", {
131
+ /* @__PURE__ */ l("div", {
134
132
  className: "flex grow basis-0 flex-col overflow-y-auto",
135
133
  children: N.map((t) => {
136
134
  let { name: n, type: r } = t;
137
- return /* @__PURE__ */ u(e, {
135
+ return /* @__PURE__ */ l(e, {
138
136
  id: n,
139
- active: n === w,
140
- checked: k.includes(n),
137
+ active: n === C,
138
+ checked: O.includes(n),
141
139
  label: n,
142
140
  type: r,
143
- elementsCount: ie[n],
141
+ elementsCount: re[n],
144
142
  ancestorsCount: Q[n].count,
145
143
  unusedAncestorsCount: Q[n].unused.size,
146
144
  onSelect: B,
147
- onDelete: J,
148
- onToggleCheck: Y
145
+ onDelete: q,
146
+ onToggleCheck: J
149
147
  }, n);
150
148
  })
151
149
  }),
152
- /* @__PURE__ */ d(m, {
150
+ /* @__PURE__ */ u(p, {
153
151
  id: I,
154
152
  open: L,
155
153
  onClose: z,
156
154
  size: "sm",
157
- children: [/* @__PURE__ */ u(m.Header, { children: /* @__PURE__ */ u("h4", { children: "Add Selector" }) }), /* @__PURE__ */ u(m.Body, { children: /* @__PURE__ */ u(t, {
155
+ children: [/* @__PURE__ */ l(p.Header, { children: /* @__PURE__ */ l("h4", { children: "Add Selector" }) }), /* @__PURE__ */ l(p.Body, { children: /* @__PURE__ */ l(t, {
158
156
  componentsNotAvailables: ne,
159
- components: te.current,
157
+ components: M.current,
160
158
  onSubmit: z,
161
159
  onClose: z
162
160
  }) })]
163
161
  }),
164
- /* @__PURE__ */ d(m, {
165
- id: U,
166
- open: W,
167
- onClose: K,
162
+ /* @__PURE__ */ u(p, {
163
+ id: H,
164
+ open: U,
165
+ onClose: G,
168
166
  children: [
169
- /* @__PURE__ */ u(m.Header, { children: /* @__PURE__ */ u("h4", { children: "Remove Selector" }) }),
170
- /* @__PURE__ */ d(m.Body, { children: [Z > 1 && /* @__PURE__ */ d("h4", { children: [
167
+ /* @__PURE__ */ l(p.Header, { children: /* @__PURE__ */ l("h4", { children: "Remove Selector" }) }),
168
+ /* @__PURE__ */ u(p.Body, { children: [Z > 1 && /* @__PURE__ */ u("h4", { children: [
171
169
  "Do you want to remove these ",
172
170
  Z,
173
171
  " items ?"
174
- ] }), Z <= 1 && /* @__PURE__ */ u("h4", { children: "Do you want to remove this item ?" })] }),
175
- /* @__PURE__ */ d(m.Footer, {
172
+ ] }), Z <= 1 && /* @__PURE__ */ l("h4", { children: "Do you want to remove this item ?" })] }),
173
+ /* @__PURE__ */ u(p.Footer, {
176
174
  justify: "end",
177
- children: [/* @__PURE__ */ u(p, {
178
- onClick: se,
175
+ children: [/* @__PURE__ */ l(f, {
176
+ onClick: oe,
179
177
  size: "sm",
180
178
  children: "Cancel"
181
- }), /* @__PURE__ */ u(p, {
182
- onClick: ce,
179
+ }), /* @__PURE__ */ l(f, {
180
+ onClick: se,
183
181
  size: "sm",
184
182
  children: "Submit"
185
183
  })]
@@ -189,4 +187,4 @@ var x = i(({ displayMode: i, flat: x, flatList: S, selectors: C, selected: w, on
189
187
  ]
190
188
  });
191
189
  });
192
- export { x as default };
190
+ export { b as default };
@@ -1,28 +1,27 @@
1
1
  import { StyleVariableCategory as e, isStyleVariableCategory as t } from "@plitzi/sdk-shared/types";
2
2
  // src/helpers/processSelectorVariables.ts
3
- var n = (n) => {
4
- let { variables: r } = n;
5
- if (!r || !Object.keys(r).length) return;
6
- let i = {
3
+ var n = (e) => typeof e == "object", r = (r) => {
4
+ let { variables: i } = r;
5
+ if (!i || !Object.keys(i).length) return;
6
+ let a = {
7
7
  default: [],
8
8
  light: [],
9
9
  dark: []
10
10
  };
11
- return Object.entries(r).forEach(([n, r]) => {
12
- switch (t(n) ? n : e.CUSTOM) {
11
+ return Object.entries(i).forEach(([r, i]) => {
12
+ switch (t(r) ? r : e.CUSTOM) {
13
13
  case e.COLOR:
14
- Object.keys(r).forEach((e) => {
15
- let t = r[e];
16
- i.default.push(`--${e}:${t.default};`), t.light && i.light.push(`--${e}:${t.light};`), t.dark && i.dark.push(`--${e}:${t.dark};`);
14
+ Object.entries(i).forEach(([e, t]) => {
15
+ n(t) ? (t.default !== void 0 && a.default.push(`--${e}:${t.default};`), t.light && a.light.push(`--${e}:${t.light};`), t.dark && a.dark.push(`--${e}:${t.dark};`)) : a.default.push(`--${e}:${String(t)};`);
17
16
  });
18
17
  break;
19
18
  case e.SPACING:
20
19
  case e.SHADOW:
21
20
  case e.CUSTOM:
22
- default: Object.keys(r).forEach((e) => {
23
- i.default.push(`--${e}:${r[e]};`);
21
+ default: Object.keys(i).forEach((e) => {
22
+ a.default.push(`--${e}:${i[e]};`);
24
23
  });
25
24
  }
26
- }), i;
25
+ }), a;
27
26
  };
28
- export { n as default };
27
+ export { r as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-style",
3
- "version": "0.39.2",
3
+ "version": "0.39.4",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -33,10 +33,10 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@plitzi/nexus": "^1.4.0",
36
- "@plitzi/plitzi-ui": "^1.6.38",
37
- "@plitzi/sdk-event-bridge": "0.39.2",
38
- "@plitzi/sdk-shared": "0.39.2",
39
- "@plitzi/sdk-variables": "0.39.2",
36
+ "@plitzi/plitzi-ui": "^1.6.39",
37
+ "@plitzi/sdk-event-bridge": "0.39.4",
38
+ "@plitzi/sdk-shared": "0.39.4",
39
+ "@plitzi/sdk-variables": "0.39.4",
40
40
  "clsx": "^2.1.1",
41
41
  "immer": "^11.2.9",
42
42
  "zod": "^4.6.7"