@kolkrabbi/design-editor 0.17.0 → 0.19.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,11 +1,11 @@
1
1
  import { B as e, Ft as t, It as n, L as r, S as i, Xt as a, Zt as o, a as s, at as c, b as l, c as u, i as d, it as f, j as p, l as m, n as h, o as g, ot as _, r as v, rt as y, tt as b, u as x, w as S, wt as ee, x as C } from "./rolls-CkmuE-Ya.js";
2
2
  import { c as w, d as T, f as E, l as D, n as O, o as k, p as te, r as A, t as j } from "./registry-CSOtIU7o.js";
3
- import { c as M, n as N, s as P } from "./generators-B0uhjxUs.js";
4
- import { n as F, r as I, t as ne } from "./useLayerEdit-BDXtPeAP.js";
5
- import { a as L, c as R, d as re, f as z, i as ie, l as B, n as ae, o as oe, r as se, s as ce, u as le } from "./effects-B743CHEU.js";
3
+ import { c as M, n as N, s as P } from "./generators-Bk3mvrsm.js";
4
+ import { n as F, r as I, t as ne } from "./useLayerEdit-DRZ09kNJ.js";
5
+ import { a as L, c as R, d as re, f as z, i as ie, l as B, n as ae, o as oe, r as se, s as ce, u as le } from "./effects-DehkU1My.js";
6
6
  import { t as ue } from "./BindDot-CuCS4LS-.js";
7
7
  import { a as V, i as de, n as fe, o as pe, r as me, s as he } from "./motion-9j3WO6a2.js";
8
- import { A as ge, B as _e, C as ve, D as ye, E as be, F as xe, G as Se, H as Ce, I as we, K as Te, L as Ee, M as De, N as Oe, O as ke, P as Ae, R as je, S as Me, T as Ne, U as Pe, V as Fe, W as Ie, _ as Le, a as Re, b as ze, c as Be, d as Ve, f as He, g as Ue, h as We, i as Ge, j as Ke, k as qe, l as Je, m as Ye, n as Xe, o as Ze, p as Qe, q as $e, r as et, s as tt, t as nt, u as rt, v as it, w as at, x as ot, y as st, z as ct } from "./core-Cq8xJc_c.js";
8
+ import { A as ge, B as _e, C as ve, D as ye, E as be, F as xe, G as Se, H as Ce, I as we, K as Te, L as Ee, M as De, N as Oe, O as ke, P as Ae, R as je, S as Me, T as Ne, U as Pe, V as Fe, W as Ie, _ as Le, a as Re, b as ze, c as Be, d as Ve, f as He, g as Ue, h as We, i as Ge, j as Ke, k as qe, l as Je, m as Ye, n as Xe, o as Ze, p as Qe, q as $e, r as et, s as tt, t as nt, u as rt, v as it, w as at, x as ot, y as st, z as ct } from "./core-BeIRJu1Z.js";
9
9
  import { Button as H, Divider as lt, Dropdown as ut, FullscreenOverlay as dt, LabeledControlSection as U, SegmentedToggle as W, ToggleSwitch as ft, Tooltip as G } from "@kolkrabbi/kol-component";
10
10
  import { createContext as pt, useCallback as mt, useContext as ht, useEffect as K, useRef as q, useState as J } from "react";
11
11
  import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import { B as e, L as t, S as n, Zt as r, a as i, c as a, j as o, n as s, nt as c, o as l, t as u } from "./rolls-CkmuE-Ya.js";
2
2
  import { B as d, G as f, H as p, K as m, U as h, V as g, W as _, o as v, q as y, z as b } from "./registry-CSOtIU7o.js";
3
3
  import { _ as x, g as S, n as C, t as w } from "./TreePicker-D5XZT0Zi.js";
4
- import { n as T, r as E, t as D } from "./useLayerEdit-BDXtPeAP.js";
4
+ import { n as T, r as E, t as D } from "./useLayerEdit-DRZ09kNJ.js";
5
5
  import { t as ee } from "./BindDot-CuCS4LS-.js";
6
6
  import { Button as O, LabeledControl as te, SegmentedToggle as k, Slider as A, ToggleSwitch as ne, Tooltip as j, ViewToggle as M } from "@kolkrabbi/kol-component";
7
7
  import { useEffect as N, useRef as re, useState as P } from "react";
package/dist/effects.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./effects-B743CHEU.js";
1
+ import { t as e } from "./effects-DehkU1My.js";
2
2
  export { e as effects };
@@ -1,7 +1,7 @@
1
1
  import { Ft as e, S as t, V as n, Xt as r, Zt as i, a, c as o, i as s, j as c, l, n as u, o as d, s as f, t as p, u as m, x as h, z as g } from "./rolls-CkmuE-Ya.js";
2
2
  import { A as ee, F as _, I as te, L as ne, M as v, N as y, P as b, Q as x, R as re, X as S, Y as C, Z as w, a as ie, c as ae, d as T, f as E, i as oe, j as D, l as O, n as k, o as se, p as ce, s as A, u as j } from "./registry-CSOtIU7o.js";
3
3
  import { a as M, i as le, n as N, t as ue, y as P } from "./TreePicker-D5XZT0Zi.js";
4
- import { n as F, t as de } from "./useLayerEdit-BDXtPeAP.js";
4
+ import { n as F, t as de } from "./useLayerEdit-DRZ09kNJ.js";
5
5
  import { i as fe, t as pe } from "./RuleRow-DlouS36V.js";
6
6
  import { Button as I, CurveEditor as L, Dropdown as R, KeyframeEditor as me, LabeledControl as z, LabeledControlSection as he, SegmentedToggle as ge, SettingsRow as _e, Slider as ve, Tooltip as B, ViewToggle as ye, XYPad as be } from "@kolkrabbi/kol-component";
7
7
  import { useEffect as xe, useRef as Se, useState as Ce } from "react";
@@ -1347,7 +1347,7 @@ function st({ layer: e, patch: t, camParams: n, isEngine: r, showHeader: i = !1
1347
1347
  onClick: () => {
1348
1348
  let i = {};
1349
1349
  for (let e of n) i[e.key] = e.default;
1350
- t(i), r && import("./host-bXQMgZeW.js").then((t) => t.hostAction?.(e.id, "resetCamera")).catch(() => {});
1350
+ t(i), r && import("./host-B8_Ri9EV.js").then((t) => t.hostAction?.(e.id, "resetCamera")).catch(() => {});
1351
1351
  },
1352
1352
  children: "Reset"
1353
1353
  })]
@@ -2572,7 +2572,7 @@ var Nt = {
2572
2572
  buildParatypeFlattenGroup: je,
2573
2573
  LoopPicker: Me,
2574
2574
  LoopFields: Mt,
2575
- loadGlHost: () => import("./host-bXQMgZeW.js")
2575
+ loadGlHost: () => import("./host-B8_Ri9EV.js")
2576
2576
  };
2577
2577
  i("generators", Nt);
2578
2578
  //#endregion
@@ -1,2 +1,2 @@
1
- import { t as e } from "./generators-B0uhjxUs.js";
1
+ import { t as e } from "./generators-Bk3mvrsm.js";
2
2
  export { e as generators };
@@ -1,7 +1,7 @@
1
1
  import { Ft as e } from "./rolls-CkmuE-Ya.js";
2
2
  import { C as t, D as n, E as r, J as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as d, k as f, m as p, v as m, w as h, x as g, y as _ } from "./registry-CSOtIU7o.js";
3
3
  import { a as v } from "./TreePicker-D5XZT0Zi.js";
4
- import { a as y, i as ee, o as te, r as b } from "./generators-B0uhjxUs.js";
4
+ import { a as y, i as ee, o as te, r as b } from "./generators-Bk3mvrsm.js";
5
5
  import { $ as ne, A as x, B as re, C as ie, D as ae, E as oe, F as se, G as S, H as ce, I as le, J as ue, K as de, L as fe, N as C, O as pe, P as me, Q as he, R as ge, S as _e, T as ve, U as ye, V as be, W as w, X as T, Y as E, Z as xe, _ as Se, a as D, at as O, b as Ce, c as we, ct as k, d as A, et as Te, f as j, g as M, i as N, it as P, k as Ee, l as F, lt as De, m as Oe, n as ke, nt as Ae, o as je, ot as I, p as Me, q as Ne, r as L, rt as Pe, s as Fe, st as Ie, t as R, tt as Le, u as z, v as Re, w as B, x as V, y as H, z as ze } from "./OrbitControls-Cql8Rn2i.js";
6
6
  //#region src/loops/gl/DriftEngine.js
7
7
  var Be = {
@@ -158,11 +158,7 @@ function N({ param: e, layer: t, setProp: n, palette: r, bound: a, animate: s, i
158
158
  });
159
159
  else if (e.type === "toggle") {
160
160
  let [t, r] = e.labels ?? ["Off", "On"];
161
- c && !e.labels ? x = /* @__PURE__ */ D(y, {
162
- size: l,
163
- checked: !!p,
164
- onChange: (t) => n(e.key, t)
165
- }) : c ? x = /* @__PURE__ */ D(g, {
161
+ e.labels ? c ? x = /* @__PURE__ */ D(g, {
166
162
  variant: "filled",
167
163
  size: l,
168
164
  className: `w-full ${u(l) ?? ""}`,
@@ -186,6 +182,10 @@ function N({ param: e, layer: t, setProp: n, palette: r, bound: a, animate: s, i
186
182
  }],
187
183
  viewMode: p ? "on" : "off",
188
184
  onViewChange: (t) => n(e.key, t === "on")
185
+ })) : (c || (h = !1), x = /* @__PURE__ */ D(y, {
186
+ size: l,
187
+ checked: !!p,
188
+ onChange: (t) => n(e.key, t)
189
189
  }));
190
190
  } else if (e.type === "text") h = !1, x = /* @__PURE__ */ D(v, {
191
191
  variant: "filled",
@@ -203,7 +203,7 @@ function N({ param: e, layer: t, setProp: n, palette: r, bound: a, animate: s, i
203
203
  className: "flex-1 min-w-0",
204
204
  children: x
205
205
  }), s]
206
- }) : x, w = e.type === "toggle" && !e.labels ? "end" : "fill";
206
+ }) : x, w = e.type === "toggle" && !e.labels ? "end" : "fill", T = e.type === "toggle" && !e.labels && !c;
207
207
  return h ? /* @__PURE__ */ D(_, {
208
208
  label: e.label,
209
209
  hint: S,
@@ -211,9 +211,10 @@ function N({ param: e, layer: t, setProp: n, palette: r, bound: a, animate: s, i
211
211
  labelWidth: M,
212
212
  children: C
213
213
  }) : /* @__PURE__ */ D(m, {
214
+ inline: T,
214
215
  label: c ? String(e.label).toUpperCase() : e.label,
215
216
  hint: S,
216
- labelWidth: M,
217
+ labelWidth: T ? "auto" : M,
217
218
  children: C
218
219
  });
219
220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/design-editor",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "private": false,
5
5
  "description": "The Kolkrabbi design editor as one embeddable React component — a DOM/SVG vector + generative compositor (canvas, layers, palette/pattern/type generators, kinetic type, boolean geometry, image export). Consumes the @kolkrabbi/kol-* design system as peers. The one BUILT package in this repo (ARCHITECTURE §4 exception, 2026-09-03).",
6
6
  "license": "MIT",
@@ -59,12 +59,12 @@
59
59
  "tailwindcss": "^4.2.4",
60
60
  "vite": "^8.0.10",
61
61
  "vite-plugin-svgr": "^5.2.0",
62
- "@kolkrabbi/kol-component": "0.229.0",
63
- "@kolkrabbi/kol-framework": "0.45.0",
64
- "@kolkrabbi/kol-icons": "0.29.0",
65
- "@kolkrabbi/kol-theme": "0.156.0",
66
- "@kolkrabbi/kol-shell": "0.59.0",
67
- "@kolkrabbi/kol-media-client": "0.4.0"
62
+ "@kolkrabbi/kol-component": "0.230.0",
63
+ "@kolkrabbi/kol-framework": "0.48.0",
64
+ "@kolkrabbi/kol-icons": "0.30.0",
65
+ "@kolkrabbi/kol-theme": "0.159.0",
66
+ "@kolkrabbi/kol-media-client": "0.4.0",
67
+ "@kolkrabbi/kol-shell": "0.59.1"
68
68
  },
69
69
  "keywords": [
70
70
  "kol",