@kolkrabbi/design-editor 0.28.0 → 0.30.0

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.
@@ -1,4 +1,4 @@
1
- import { D as e, F as t, I as n, J as r, L as i, T as a, cn as o, it as s, j as c, nt as l, rn as u, rt as d, tt as f } from "./rolls-CGma4Bua.js";
1
+ import { D as e, F as t, I as n, J as r, L as i, T as a, bn as o, gt as s, hn as c, ht as l, j as u, mt as d, pt as f } from "./rolls-CEQmdcp3.js";
2
2
  import { AccordionPanel as p, Dropdown as m, Input as h, LabeledControl as g, LabeledControlSection as _, SegmentedToggle as v, SettingsRow as y, Slider as b, Textarea as x, ToggleSwitch as S, ViewToggle as C } from "@kolkrabbi/kol-component";
3
3
  import { useCallback as w, useEffect as T, useMemo as E, useRef as D, useState as O } from "react";
4
4
  import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
@@ -184,10 +184,10 @@ function V({ children: e, className: t = "kol-mono-12 text-meta", always: n = !1
184
184
  //#region src/editor/params/AutoControls.jsx
185
185
  function H({ schema: t, layer: n, setProp: r, palette: i, renderAnimate: a, tab: o, emptyHint: c, inline: u = !0 }) {
186
186
  let m = s(t, n);
187
- if (o && (m = m.filter((e) => d(e) === o)), m.length === 0) return c ? /* @__PURE__ */ A(V, { children: c }) : null;
187
+ if (o && (m = m.filter((e) => l(e) === o)), m.length === 0) return c ? /* @__PURE__ */ A(V, { children: c }) : null;
188
188
  let h = [];
189
189
  for (let e of m) {
190
- let t = l(e), n = h[h.length - 1];
190
+ let t = d(e), n = h[h.length - 1];
191
191
  n && n.section === t ? n.params.push(e) : h.push({
192
192
  section: t,
193
193
  params: [e]
@@ -235,7 +235,7 @@ function U(e) {
235
235
  return Math.max(2, String(Math.round(e.max ?? 0)).length, String(Math.round(e.min ?? 0)).length) + (t ? t + 1 : 0);
236
236
  }
237
237
  function W({ param: t, layer: n, setProp: r, chars: a }) {
238
- let s = i(), l = n[t.key], d = e(l), f = d && l.bind === "mod" && l.source === "expr", p = u(d), m = d ? c(l, p, n) : l, g = typeof m == "number" ? m : t.default ?? 0, _ = t.step && t.step < 1 ? String(t.step).split(".")[1]?.length ?? 2 : 0, v = f ? l.transform?.expr ?? "wave(t)" : t.format ? String(t.format(g)) : _ ? g.toFixed(_) : String(Math.round(g)), y = a ?? U(t), [x, S] = O(v), [C, w] = O(!1);
238
+ let s = i(), l = n[t.key], d = e(l), f = d && l.bind === "mod" && l.source === "expr", p = c(d), m = d ? u(l, p, n) : l, g = typeof m == "number" ? m : t.default ?? 0, _ = t.step && t.step < 1 ? String(t.step).split(".")[1]?.length ?? 2 : 0, v = f ? l.transform?.expr ?? "wave(t)" : t.format ? String(t.format(g)) : _ ? g.toFixed(_) : String(Math.round(g)), y = a ?? U(t), [x, S] = O(v), [C, w] = O(!1);
239
239
  return T(() => {
240
240
  C || S(v);
241
241
  }, [v, C]), /* @__PURE__ */ j("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/design-editor",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "private": false,
5
5
  "description": "The design editor as one component",
6
6
  "license": "MIT",
@@ -30,15 +30,15 @@
30
30
  "README.md"
31
31
  ],
32
32
  "peerDependencies": {
33
- "@kolkrabbi/kol-component": ">=0.342.0 <1",
33
+ "@kolkrabbi/kol-component": ">=0.343.0 <1",
34
34
  "@kolkrabbi/kol-framework": ">=0.44.0 <1",
35
35
  "@kolkrabbi/kol-hardware": ">=0.10.0 <1",
36
36
  "@kolkrabbi/kol-icons": ">=0.29.0 <1",
37
37
  "@kolkrabbi/kol-media-client": ">=0.4.0 <1",
38
- "@kolkrabbi/kol-shell": ">=0.110.0 <1",
38
+ "@kolkrabbi/kol-shell": ">=0.112.0 <1",
39
39
  "react": "^19.0.0",
40
40
  "react-dom": "^19.0.0",
41
- "@kolkrabbi/kol-theme": ">=0.211.0 <1",
41
+ "@kolkrabbi/kol-theme": ">=0.213.0 <1",
42
42
  "@kolkrabbi/kol-dashboards": ">=0.13.0 <1"
43
43
  },
44
44
  "dependencies": {
@@ -61,11 +61,11 @@
61
61
  "tailwindcss": "^4.2.4",
62
62
  "vite": "^8.0.10",
63
63
  "vite-plugin-svgr": "^5.2.0",
64
- "@kolkrabbi/kol-component": "0.342.0",
65
64
  "@kolkrabbi/kol-framework": "0.70.0",
66
- "@kolkrabbi/kol-icons": "0.65.0",
67
- "@kolkrabbi/kol-shell": "0.110.0",
68
- "@kolkrabbi/kol-theme": "0.212.0",
65
+ "@kolkrabbi/kol-icons": "0.66.0",
66
+ "@kolkrabbi/kol-shell": "0.112.0",
67
+ "@kolkrabbi/kol-theme": "0.213.0",
68
+ "@kolkrabbi/kol-component": "0.343.0",
69
69
  "@kolkrabbi/kol-dashboards": "0.13.0",
70
70
  "@kolkrabbi/kol-media-client": "0.7.0",
71
71
  "@kolkrabbi/kol-hardware": "0.10.0"