@kolkrabbi/design-editor 0.46.0 → 0.47.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.
Files changed (50) hide show
  1. package/dist/{BindDot-B0VcuOag.js → BindDot-B85UV79g.js} +9 -8
  2. package/dist/{BufferResource-BfLgK37S.js → BufferResource-Di5teicy.js} +2 -2
  3. package/dist/{CanvasPool-YNSF8hsR.js → CanvasPool-JdLj49b-.js} +1 -1
  4. package/dist/CanvasRenderer-fXDObOOi.js +2 -0
  5. package/dist/{FederatedEventTarget-BJgROaRQ.js → FederatedEventTarget-CH0bzxx1.js} +1 -1
  6. package/dist/{FilterSystem-BUrPNXx-.js → FilterSystem-C-ZoyuTO.js} +3 -3
  7. package/dist/{Geometry-C5s5KpWq.js → Geometry-D4tiuMOr.js} +1 -1
  8. package/dist/KolboxView-n6kEPJtV.js +21615 -0
  9. package/dist/{RenderTargetSystem-oFwWv5IW.js → RenderTargetSystem-Bom_vhlS.js} +1 -1
  10. package/dist/{Timeline-Ck1rBV8S.js → Timeline-EbecYeGh.js} +49 -47
  11. package/dist/TreePicker-2RUSyGl4.js +209 -0
  12. package/dist/WebGLRenderer-4hvrGmfW.js +2 -0
  13. package/dist/WebGPURenderer-BjzMV7Pg.js +2 -0
  14. package/dist/__vite-browser-external-y2xWjzgx.js +780 -0
  15. package/dist/browserAll-BFE0MRLW.js +6 -0
  16. package/dist/{canvasUtils-BoNfkAod.js → canvasUtils-DUNsu3ct.js} +1 -1
  17. package/dist/{core-BBb9Tk4Q.js → core-9UlJPBwX.js} +6272 -6239
  18. package/dist/core.js +6 -5
  19. package/dist/design-editor.css +2 -1
  20. package/dist/design-editor.js +7 -3644
  21. package/dist/{effectCategories-Ccye-8LP.js → effectCategories-CCpYmxS0.js} +8965 -4984
  22. package/dist/effects-DspYFJAM.js +447 -0
  23. package/dist/effects.js +1 -1
  24. package/dist/{generators-BdVXv0jY.js → generators-DY4_ymWh.js} +2386 -2416
  25. package/dist/generators.js +1 -1
  26. package/dist/{getTextureBatchBindGroup-CNWhZRbV.js → getTextureBatchBindGroup-ZMqkwiZS.js} +1 -1
  27. package/dist/{host-meUhieO9.js → host-0qv2SCjk.js} +1 -1
  28. package/dist/{host-9pJ7NvnR.js → host-Bo6itV50.js} +50 -50
  29. package/dist/init-DkGhdexn.js +4 -0
  30. package/dist/{morphStore-D6mkLJ-8.js → morphStore-Bm30Ekce.js} +1 -1
  31. package/dist/{motion-wsc6Qd7S.js → motion-BOWE4m3Q.js} +762 -759
  32. package/dist/motion.js +1 -1
  33. package/dist/{pipeline-CMpuPUaX.js → pipeline-hZsOKbHd.js} +12 -12
  34. package/dist/{previewScale-SYKvfhUm.js → previewScale-C6EBx--U.js} +8 -8
  35. package/dist/{rolls-KpWCAeDv.js → rolls-DugKaHUw.js} +10549 -4517
  36. package/dist/src-BlvCHYVY.js +3672 -0
  37. package/dist/{src-B5o6fGRJ.js → src-D-TQbBo2.js} +1 -2
  38. package/dist/{store-iBb0I6hk.js → store-BMGP1qou.js} +295 -275
  39. package/dist/{useLayerEdit-Ba7RA6qX.js → useLayerEdit-B5nF5I9b.js} +103 -102
  40. package/dist/webworkerAll-0WBQ2FBr.js +2 -0
  41. package/package.json +12 -9
  42. package/dist/CanvasRenderer-Bl0rlqNq.js +0 -2
  43. package/dist/TreePicker-Dv0zpJwe.js +0 -166
  44. package/dist/WebGLRenderer-CXxpVIx3.js +0 -2
  45. package/dist/WebGPURenderer-BwLEUYBa.js +0 -2
  46. package/dist/browserAll-CAzdTUbR.js +0 -6
  47. package/dist/chunk-3b4jIN3o.js +0 -13
  48. package/dist/effects-B47bpwGh.js +0 -447
  49. package/dist/init-jApIMi04.js +0 -4
  50. package/dist/webworkerAll-DEZhpG90.js +0 -2
@@ -1,4 +1,5 @@
1
- import { D as e, F as t, I as n, J as r, L as i, Pn as a, T as o, _n as s, cn as c, dn as l, fn as u, gn as d, gt as f, hn as p, ht as m, j as h, kn as g, mn as _, mt as v, pn as y, pt as b, un as x, vn as S, xn as C, yn as w } from "./rolls-KpWCAeDv.js";
1
+ import { c as e, m as t } from "./__vite-browser-external-y2xWjzgx.js";
2
+ import { $n as n, $t as r, D as i, F as a, I as o, J as s, Jn as c, Kn as l, L as u, Qn as d, Qt as f, T as p, Wn as m, Xn as h, Yn as g, Zn as _, Zt as v, en as y, er as b, ir as x, j as S, qn as C, tr as w } from "./rolls-DugKaHUw.js";
2
3
  import { useCallback as T, useEffect as E, useMemo as D, useRef as O, useState as k } from "react";
3
4
  import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
4
5
  //#region src/editor/lib/viewport.js
@@ -181,12 +182,12 @@ function H({ children: e, className: t = "kol-mono-12 text-meta", always: n = !1
181
182
  }
182
183
  //#endregion
183
184
  //#region src/editor/params/AutoControls.jsx
184
- function U({ schema: t, layer: n, setProp: r, palette: i, renderAnimate: a, tab: o, emptyHint: s, inline: l = !0 }) {
185
- let u = f(t, n);
186
- if (o && (u = u.filter((e) => m(e) === o)), u.length === 0) return s ? /* @__PURE__ */ j(H, { children: s }) : null;
185
+ function U({ schema: e, layer: t, setProp: n, palette: a, renderAnimate: o, tab: s, emptyHint: c, inline: l = !0 }) {
186
+ let u = y(e, t);
187
+ if (s && (u = u.filter((e) => r(e) === s)), u.length === 0) return c ? /* @__PURE__ */ j(H, { children: c }) : null;
187
188
  let d = [];
188
189
  for (let e of u) {
189
- let t = v(e), n = d[d.length - 1];
190
+ let t = f(e), n = d[d.length - 1];
190
191
  n && n.section === t ? n.params.push(e) : d.push({
191
192
  section: t,
192
193
  params: [e]
@@ -205,209 +206,209 @@ function U({ schema: t, layer: n, setProp: r, palette: i, renderAnimate: a, tab:
205
206
  params: t.params.slice(n)
206
207
  }), e++);
207
208
  }
208
- return /* @__PURE__ */ j(A, { children: d.map((t) => {
209
- let o = Math.max(0, ...t.params.filter((e) => e.type === "range").map(W)), s = t.section && t.params.some((e) => e.collapsed), u = /* @__PURE__ */ j(_, {
210
- label: !s && t.section && t.section !== t.params[0].label ? t.section : void 0,
209
+ return /* @__PURE__ */ j(A, { children: d.map((e) => {
210
+ let r = Math.max(0, ...e.params.filter((e) => e.type === "range").map(W)), s = e.section && e.params.some((e) => e.collapsed), c = /* @__PURE__ */ j(h, {
211
+ label: !s && e.section && e.section !== e.params[0].label ? e.section : void 0,
211
212
  divided: !s,
212
- children: t.params.map((t) => {
213
- let s = e(n[t.key]);
213
+ children: e.params.map((e) => {
214
+ let s = i(t[e.key]);
214
215
  return /* @__PURE__ */ j(J, {
215
- param: t,
216
- layer: n,
217
- setProp: r,
218
- palette: i,
216
+ param: e,
217
+ layer: t,
218
+ setProp: n,
219
+ palette: a,
219
220
  bound: s,
220
- animate: a && b(t) ? a(t, s) : null,
221
+ animate: o && v(e) ? o(e, s) : null,
221
222
  inline: l,
222
- chars: o || void 0
223
- }, t.key);
223
+ chars: r || void 0
224
+ }, e.key);
224
225
  })
225
- }, t.params[0].key);
226
- return s ? /* @__PURE__ */ j(c, {
227
- title: t.section,
228
- children: u
229
- }, t.params[0].key) : u;
226
+ }, e.params[0].key);
227
+ return s ? /* @__PURE__ */ j(m, {
228
+ title: e.section,
229
+ children: c
230
+ }, e.params[0].key) : c;
230
231
  }) });
231
232
  }
232
233
  function W(e) {
233
234
  let t = e.step && e.step < 1 ? String(e.step).split(".")[1]?.length ?? 2 : 0;
234
235
  return Math.max(2, String(Math.round(e.max ?? 0)).length, String(Math.round(e.min ?? 0)).length) + (t ? t + 1 : 0);
235
236
  }
236
- function G({ param: t, layer: n, setProp: r, chars: o }) {
237
- let s = i(), c = n[t.key], l = e(c), f = l && c.bind === "mod" && c.source === "expr", p = g(l), m = l ? h(c, p, n) : c, _ = typeof m == "number" ? m : t.default ?? 0, v = t.step && t.step < 1 ? String(t.step).split(".")[1]?.length ?? 2 : 0, y = f ? c.transform?.expr ?? "wave(t)" : t.format ? String(t.format(_)) : v ? _.toFixed(v) : String(Math.round(_)), b = o ?? W(t), [x, S] = k(y), [w, T] = k(!1);
237
+ function G({ param: n, layer: r, setProp: a, chars: o }) {
238
+ let s = u(), l = r[n.key], f = i(l), p = f && l.bind === "mod" && l.source === "expr", m = e(f), h = f ? S(l, m, r) : l, g = typeof h == "number" ? h : n.default ?? 0, _ = n.step && n.step < 1 ? String(n.step).split(".")[1]?.length ?? 2 : 0, v = p ? l.transform?.expr ?? "wave(t)" : n.format ? String(n.format(g)) : _ ? g.toFixed(_) : String(Math.round(g)), y = o ?? W(n), [b, C] = k(v), [w, T] = k(!1);
238
239
  return E(() => {
239
- w || S(y);
240
- }, [y, w]), /* @__PURE__ */ M("div", {
241
- className: `flex items-center gap-3${C() === "float" ? " w-full" : ""}`,
242
- children: [!l && /* @__PURE__ */ j(d, {
243
- min: t.min,
244
- max: t.max,
245
- step: t.step ?? 1,
246
- value: _,
247
- onChange: (e) => r(t.key, Number(e)),
240
+ w || C(v);
241
+ }, [v, w]), /* @__PURE__ */ M("div", {
242
+ className: `flex items-center gap-3${x() === "float" ? " w-full" : ""}`,
243
+ children: [!f && /* @__PURE__ */ j(d, {
244
+ min: n.min,
245
+ max: n.max,
246
+ step: n.step ?? 1,
247
+ value: g,
248
+ onChange: (e) => a(n.key, Number(e)),
248
249
  readout: "none",
249
250
  className: "flex-1"
250
- }), /* @__PURE__ */ j(u, {
251
+ }), /* @__PURE__ */ j(c, {
251
252
  type: "text",
252
253
  variant: "filled",
253
254
  size: s,
254
- width: `calc(${b}ch + 24px)`,
255
- value: x,
255
+ width: `calc(${y}ch + 24px)`,
256
+ value: b,
256
257
  title: "Number sets a constant · an expression like sin(t) binds it",
257
258
  onFocus: (e) => {
258
259
  T(!0), e.target.select();
259
260
  },
260
- onChange: (e) => S(e.target.value),
261
+ onChange: (e) => C(e.target.value),
261
262
  onBlur: () => {
262
263
  T(!1);
263
- let e = x.trim();
264
+ let e = b.trim();
264
265
  if (e === "") {
265
- S(y);
266
+ C(v);
266
267
  return;
267
268
  }
268
- let n = Number(e);
269
- if (Number.isFinite(n)) {
270
- r(t.key, n);
269
+ let r = Number(e);
270
+ if (Number.isFinite(r)) {
271
+ a(n.key, r);
271
272
  return;
272
273
  }
273
- if (!a(e).ok) {
274
- S(y);
274
+ if (!t(e).ok) {
275
+ C(v);
275
276
  return;
276
277
  }
277
- let i = l && c.transform?.range || (t.min != null && t.max != null ? [t.min, t.max] : [0, 1]);
278
- r(t.key, {
278
+ let i = f && l.transform?.range || (n.min != null && n.max != null ? [n.min, n.max] : [0, 1]);
279
+ a(n.key, {
279
280
  bind: "mod",
280
281
  source: "expr",
281
282
  transform: {
282
- ...l ? c.transform : {},
283
+ ...f ? l.transform : {},
283
284
  expr: e,
284
285
  range: i
285
286
  }
286
287
  });
287
288
  },
288
289
  onKeyDown: (e) => {
289
- e.key === "Enter" && e.currentTarget.blur(), e.key === "Escape" && (S(y), T(!1), e.currentTarget.blur());
290
+ e.key === "Enter" && e.currentTarget.blur(), e.key === "Escape" && (C(v), T(!1), e.currentTarget.blur());
290
291
  },
291
292
  inputClassName: "text-center"
292
293
  })]
293
294
  });
294
295
  }
295
- var K = t, q = {
296
+ var K = a, q = {
296
297
  xs: "h-[var(--kol-ctl-xs)]",
297
298
  sm: "h-[var(--kol-ctl-sm)]",
298
299
  md: "h-[var(--kol-ctl-md)]",
299
300
  lg: "h-[var(--kol-ctl-lg)]"
300
301
  };
301
- function J({ param: e, layer: t, setProp: r, palette: a, bound: c, animate: u, inline: d, chars: f }) {
302
- let m = i(), h = C() === "float", g = t[e.key], _ = g === void 0 ? e.default : g;
302
+ function J({ param: e, layer: t, setProp: r, palette: i, bound: a, animate: s, inline: c, chars: d }) {
303
+ let f = u(), m = x() === "float", h = t[e.key], v = h === void 0 ? e.default : h;
303
304
  if (e.type === "color") return /* @__PURE__ */ M("div", {
304
305
  className: "flex items-end gap-2",
305
306
  children: [/* @__PURE__ */ j("div", {
306
307
  className: "flex-1 min-w-0",
307
- children: /* @__PURE__ */ j(o, {
308
+ children: /* @__PURE__ */ j(p, {
308
309
  label: e.label,
309
- value: _,
310
+ value: v,
310
311
  onChange: (t) => r(e.key, t),
311
- palette: a,
312
- inline: d
312
+ palette: i,
313
+ inline: c
313
314
  })
314
- }), u]
315
+ }), s]
315
316
  });
316
- let v = d, b = null;
317
- if (e.type === "range") m !== "sm" && (v = !1), b = /* @__PURE__ */ j(G, {
317
+ let y = c, S = null;
318
+ if (e.type === "range") f !== "sm" && (y = !1), S = /* @__PURE__ */ j(G, {
318
319
  param: e,
319
320
  layer: t,
320
321
  setProp: r,
321
- chars: f
322
+ chars: d
322
323
  });
323
- else if (e.type === "select") b = /* @__PURE__ */ j(l, {
324
+ else if (e.type === "select") S = /* @__PURE__ */ j(C, {
324
325
  variant: "subtle",
325
- size: m,
326
+ size: f,
326
327
  className: "w-full",
327
328
  options: e.options ?? [],
328
- value: _,
329
+ value: v,
329
330
  onChange: (t) => r(e.key, e.numeric ? Number(t) : t)
330
331
  });
331
- else if (e.type === "segmented") b = d ? /* @__PURE__ */ j(x, {
332
+ else if (e.type === "segmented") S = c ? /* @__PURE__ */ j(l, {
332
333
  layout: "joined",
333
334
  tone: "sunken",
334
- size: m,
335
- className: `w-full ${n(m) ?? ""}`,
335
+ size: f,
336
+ className: `w-full ${o(f) ?? ""}`,
336
337
  options: e.options ?? [],
337
- value: _,
338
+ value: v,
338
339
  onChange: (t) => r(e.key, t)
339
340
  }) : /* @__PURE__ */ j(w, {
340
- size: m,
341
+ size: f,
341
342
  options: e.options ?? [],
342
- viewMode: _,
343
+ viewMode: v,
343
344
  onViewChange: (t) => r(e.key, t)
344
345
  });
345
346
  else if (e.type === "toggle") {
346
- let [t, i] = e.labels ?? ["Off", "On"];
347
- e.labels ? d ? b = /* @__PURE__ */ j(x, {
347
+ let [t, n] = e.labels ?? ["Off", "On"];
348
+ e.labels ? c ? S = /* @__PURE__ */ j(l, {
348
349
  layout: "joined",
349
350
  tone: "sunken",
350
- size: m,
351
- className: `w-full ${n(m) ?? ""}`,
351
+ size: f,
352
+ className: `w-full ${o(f) ?? ""}`,
352
353
  options: [{
353
354
  value: "off",
354
355
  label: t
355
356
  }, {
356
357
  value: "on",
357
- label: i
358
+ label: n
358
359
  }],
359
- value: _ ? "on" : "off",
360
+ value: v ? "on" : "off",
360
361
  onChange: (t) => r(e.key, t === "on")
361
- }) : (v = !1, b = /* @__PURE__ */ j(w, {
362
- size: m,
362
+ }) : (y = !1, S = /* @__PURE__ */ j(w, {
363
+ size: f,
363
364
  options: [{
364
365
  value: "off",
365
366
  label: t
366
367
  }, {
367
368
  value: "on",
368
- label: i
369
+ label: n
369
370
  }],
370
- viewMode: _ ? "on" : "off",
371
+ viewMode: v ? "on" : "off",
371
372
  onViewChange: (t) => r(e.key, t === "on")
372
- })) : (d || (v = !1), b = /* @__PURE__ */ j(S, {
373
- size: m,
374
- checked: !!_,
373
+ })) : (c || (y = !1), S = /* @__PURE__ */ j(b, {
374
+ size: f,
375
+ checked: !!v,
375
376
  onChange: (t) => r(e.key, t)
376
377
  }));
377
- } else if (e.type === "text") v = !1, b = /* @__PURE__ */ j(s, {
378
+ } else if (e.type === "text") y = !1, S = /* @__PURE__ */ j(n, {
378
379
  variant: "filled",
379
- size: m,
380
+ size: f,
380
381
  rows: e.rows ?? 2,
381
382
  axis: "y",
382
- value: _ ?? "",
383
+ value: v ?? "",
383
384
  onChange: (t) => r(e.key, t.target.value),
384
385
  placeholder: e.placeholder
385
386
  });
386
387
  else return null;
387
- let T = e.type === "range" && e.format && typeof _ == "number" && !c ? e.format(_) : void 0, E = u ? /* @__PURE__ */ M("div", {
388
+ let T = e.type === "range" && e.format && typeof v == "number" && !a ? e.format(v) : void 0, E = s ? /* @__PURE__ */ M("div", {
388
389
  className: "flex items-center gap-2",
389
390
  children: [/* @__PURE__ */ j("div", {
390
391
  className: "flex-1 min-w-0",
391
- children: b
392
- }), u]
393
- }) : b, D = e.type === "toggle" && !e.labels ? "end" : "fill", O = e.type === "toggle" && !e.labels && !d, k = (e) => h ? e : String(e).toUpperCase();
394
- return v && D === "end" && !T ? /* @__PURE__ */ j(y, {
392
+ children: S
393
+ }), s]
394
+ }) : S, D = e.type === "toggle" && !e.labels ? "end" : "fill", O = e.type === "toggle" && !e.labels && !c, k = (e) => m ? e : String(e).toUpperCase();
395
+ return y && D === "end" && !T ? /* @__PURE__ */ j(g, {
395
396
  horizontal: !0,
396
397
  label: k(e.label),
397
398
  labelWidth: K,
398
399
  children: /* @__PURE__ */ j("div", {
399
- className: `flex w-full items-center justify-end ${q[m] ?? ""}`,
400
+ className: `flex w-full items-center justify-end ${q[f] ?? ""}`,
400
401
  children: E
401
402
  })
402
- }) : v ? /* @__PURE__ */ j(p, {
403
+ }) : y ? /* @__PURE__ */ j(_, {
403
404
  label: e.label,
404
405
  hint: T,
405
406
  align: D,
406
407
  labelWidth: K,
407
408
  children: E
408
- }) : /* @__PURE__ */ j(y, {
409
+ }) : /* @__PURE__ */ j(g, {
409
410
  horizontal: O,
410
- label: d ? k(e.label) : e.label,
411
+ label: c ? k(e.label) : e.label,
411
412
  hint: T,
412
413
  labelWidth: O ? "auto" : K,
413
414
  children: E
@@ -416,29 +417,29 @@ function J({ param: e, layer: t, setProp: r, palette: a, bound: c, animate: u, i
416
417
  //#endregion
417
418
  //#region src/editor/compose/useLayerEdit.js
418
419
  function Y(e, { history: t = "discrete", coalesceMs: n = 250 } = {}) {
419
- let { updateLayer: i, beginTransaction: a, commitTransaction: o } = r(), s = O(null), c = T(() => {
420
- s.current !== null && (clearTimeout(s.current), s.current = null, o());
421
- }, [o]), l = T((r) => {
420
+ let { updateLayer: r, beginTransaction: i, commitTransaction: a } = s(), o = O(null), c = T(() => {
421
+ o.current !== null && (clearTimeout(o.current), o.current = null, a());
422
+ }, [a]), l = T((s) => {
422
423
  if (e) {
423
424
  if (t === "discrete") {
424
- i(e, r);
425
+ r(e, s);
425
426
  return;
426
427
  }
427
428
  if (t === "coalesce") {
428
- s.current === null && a(), i(e, r), s.current !== null && clearTimeout(s.current), s.current = setTimeout(() => {
429
- s.current = null, o();
429
+ o.current === null && i(), r(e, s), o.current !== null && clearTimeout(o.current), o.current = setTimeout(() => {
430
+ o.current = null, a();
430
431
  }, n);
431
432
  return;
432
433
  }
433
- i(e, r);
434
+ r(e, s);
434
435
  }
435
436
  }, [
436
437
  e,
437
438
  t,
438
439
  n,
440
+ r,
439
441
  i,
440
- a,
441
- o
442
+ a
442
443
  ]), u = T((e, t) => l({ [e]: t }), [l]);
443
444
  return E(() => () => c(), [c, e]), D(() => ({
444
445
  patch: l,
@@ -0,0 +1,2 @@
1
+ import "./FilterSystem-C-ZoyuTO.js";
2
+ import "./init-DkGhdexn.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/design-editor",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "private": false,
5
5
  "description": "The design editor as one component",
6
6
  "license": "MIT",
@@ -39,7 +39,8 @@
39
39
  "react": "^19.0.0",
40
40
  "react-dom": "^19.0.0",
41
41
  "@kolkrabbi/kol-theme": ">=0.225.0 <1",
42
- "@kolkrabbi/kol-dashboards": ">=0.13.0 <1"
42
+ "@kolkrabbi/kol-dashboards": ">=0.13.0 <1",
43
+ "@kolkrabbi/kol-tuner": ">=0.1.0 <1"
43
44
  },
44
45
  "dependencies": {
45
46
  "colord": "^2.9.3",
@@ -54,9 +55,6 @@
54
55
  "three": "^0.185.1"
55
56
  },
56
57
  "devDependencies": {
57
- "@kolkrabbi/kol-component": ">=0.378.0 <1",
58
- "@kolkrabbi/kol-shell": ">=0.131.0 <1",
59
- "@kolkrabbi/kol-theme": ">=0.225.0 <1",
60
58
  "@tailwindcss/vite": "^4.2.4",
61
59
  "@vitejs/plugin-react": "^6.0.1",
62
60
  "react": "^19.0.0",
@@ -65,10 +63,14 @@
65
63
  "vite": "^8.0.10",
66
64
  "vite-plugin-svgr": "^5.2.0",
67
65
  "@kolkrabbi/kol-framework": "0.74.1",
68
- "@kolkrabbi/kol-icons": "0.71.0",
69
- "@kolkrabbi/kol-dashboards": "0.17.0",
66
+ "@kolkrabbi/kol-icons": "0.72.0",
67
+ "@kolkrabbi/kol-theme": "0.226.0",
68
+ "@kolkrabbi/kol-shell": "0.131.0",
70
69
  "@kolkrabbi/kol-hardware": "0.11.1",
71
- "@kolkrabbi/kol-media-client": "0.7.0"
70
+ "@kolkrabbi/kol-media-client": "0.7.0",
71
+ "@kolkrabbi/kol-dashboards": "0.17.0",
72
+ "@kolkrabbi/kol-component": "0.379.0",
73
+ "@kolkrabbi/kol-tuner": "0.1.0"
72
74
  },
73
75
  "keywords": [
74
76
  "kol",
@@ -88,6 +90,7 @@
88
90
  "scripts": {
89
91
  "build": "vite build --config vite.lib.config.js",
90
92
  "check:core": "node scripts/check-core.mjs",
91
- "check:float": "node scripts/check-float-commands.mjs"
93
+ "check:float": "node scripts/check-float-commands.mjs",
94
+ "check:frames": "node scripts/check-frames.mjs"
92
95
  }
93
96
  }
@@ -1,2 +0,0 @@
1
- import { r as e } from "./pipeline-CMpuPUaX.js";
2
- export { e as CanvasRenderer };
@@ -1,166 +0,0 @@
1
- import { F as e, L as t, dn as n, hn as r, pn as i } from "./rolls-KpWCAeDv.js";
2
- import { embedFontFace as a } from "@kolkrabbi/kol-component";
3
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
4
- //#region src/kinetic/fonts.js
5
- var l = [
6
- {
7
- key: "rot",
8
- label: "Rot",
9
- family: "TG Rot",
10
- url: "/fonts/tg/TGRotVF.ttf",
11
- axes: [{
12
- tag: "wdth",
13
- min: 64,
14
- max: 172,
15
- def: 100
16
- }, {
17
- tag: "wght",
18
- min: 100,
19
- max: 900,
20
- def: 400
21
- }]
22
- },
23
- {
24
- key: "malromur",
25
- label: "Malromur",
26
- family: "TG Malromur",
27
- url: "/fonts/tg/TGMalromurRomanVF.ttf",
28
- axes: [{
29
- tag: "wght",
30
- min: 300,
31
- max: 900,
32
- def: 300
33
- }]
34
- },
35
- {
36
- key: "gullhamrar",
37
- label: "Gullhamrar",
38
- family: "TG Gullhamrar",
39
- url: "/fonts/tg/TGGullhamrarVF.ttf",
40
- axes: [{
41
- tag: "wght",
42
- min: 300,
43
- max: 900,
44
- def: 300
45
- }]
46
- }
47
- ], u = l.map((e) => ({
48
- value: e.key,
49
- label: e.label
50
- })), d = {
51
- wght: "Weight",
52
- wdth: "Width",
53
- ital: "Italic",
54
- slnt: "Slant",
55
- opsz: "Optical size"
56
- }, f = (e) => l.find((t) => t.key === e) || l[0];
57
- function p(e) {
58
- let t = {};
59
- for (let n of e.axes) t[n.tag] = n.def;
60
- return t;
61
- }
62
- function m(e) {
63
- let t = Object.entries(e || {}).map(([e, t]) => `'${e}' ${Math.round(t * 100) / 100}`);
64
- return t.length ? t.join(", ") : "normal";
65
- }
66
- var h = !1;
67
- async function g() {
68
- if (!(h || typeof FontFace > "u")) {
69
- h = !0;
70
- for (let e of l) {
71
- let t = {}, n = e.axes.find((e) => e.tag === "wght"), r = e.axes.find((e) => e.tag === "wdth");
72
- n && (t.weight = `${n.min} ${n.max}`), r && (t.stretch = `${r.min}% ${r.max}%`);
73
- try {
74
- let n = new FontFace(e.family, `url(${e.url})`, t);
75
- document.fonts.add(n), n.load().catch(() => {});
76
- } catch {}
77
- }
78
- try {
79
- await document.fonts.ready;
80
- } catch {}
81
- }
82
- }
83
- var _ = /* @__PURE__ */ new Map(), v = null;
84
- function y() {
85
- return v || (v = Promise.all(l.map(async (e) => {
86
- if (!_.has(e.url)) try {
87
- _.set(e.url, await a({
88
- family: e.family,
89
- url: e.url
90
- }));
91
- } catch (t) {
92
- console.warn(`[design-editor] font not embedded, export will fall back for ${e.family}:`, t);
93
- }
94
- })), v);
95
- }
96
- function b(e) {
97
- let t = /* @__PURE__ */ new Set();
98
- for (let n of e?.instances ?? []) t.add(f(n.font).url);
99
- return [...t].map((e) => _.get(e)).filter(Boolean).join("\n");
100
- }
101
- //#endregion
102
- //#region src/editor/compose/inspectors/TreePicker.jsx
103
- function x(e) {
104
- return /* @__PURE__ */ s(n, {
105
- variant: "subtle",
106
- size: t(),
107
- className: "w-full",
108
- ...e
109
- });
110
- }
111
- function S({ label: t, options: n, value: a, onChange: o, children: c, inline: l = !0 }) {
112
- let u = c ?? /* @__PURE__ */ s(x, {
113
- options: n,
114
- value: a,
115
- onChange: o
116
- });
117
- return l ? /* @__PURE__ */ s(r, {
118
- label: t,
119
- align: "fill",
120
- labelWidth: e,
121
- children: u
122
- }) : /* @__PURE__ */ s(i, {
123
- label: t,
124
- children: u
125
- });
126
- }
127
- function C({ tree: e, presets: t, current: n, onPick: r, inline: i = !0, subLabel: a = (e) => e }) {
128
- let l = e.find((e) => e.label === n.typeLabel) ?? e.find((e) => e.subs.includes(n.sub)) ?? e[0], u = t.filter((e) => e.sub === n.sub), d = (e) => t.find((t) => t.sub === e);
129
- return /* @__PURE__ */ c(o, { children: [
130
- /* @__PURE__ */ s(S, {
131
- inline: i,
132
- label: "Type",
133
- options: e.map((e) => ({
134
- value: e.label,
135
- label: e.label
136
- })),
137
- value: l.label,
138
- onChange: (t) => {
139
- let n = e.find((e) => e.label === t);
140
- n && r(d(n.subs[0]));
141
- }
142
- }),
143
- /* @__PURE__ */ s(S, {
144
- inline: i,
145
- label: "Category",
146
- options: l.subs.map((e) => ({
147
- value: e,
148
- label: a(e)
149
- })),
150
- value: n.sub,
151
- onChange: (e) => r(d(e))
152
- }),
153
- /* @__PURE__ */ s(S, {
154
- inline: i,
155
- label: "Preset",
156
- options: u.map((e) => ({
157
- value: e.id,
158
- label: e.label
159
- })),
160
- value: n.id,
161
- onChange: (e) => r(t.find((t) => t.id === e))
162
- })
163
- ] });
164
- }
165
- //#endregion
166
- export { l as a, f as c, m as d, y as f, d as i, b as l, S as n, u as o, C as r, p as s, x as t, g as u };
@@ -1,2 +0,0 @@
1
- import { n as e } from "./pipeline-CMpuPUaX.js";
2
- export { e as WebGLRenderer };
@@ -1,2 +0,0 @@
1
- import { t as e } from "./pipeline-CMpuPUaX.js";
2
- export { e as WebGPURenderer };
@@ -1,6 +0,0 @@
1
- import { C as e, ot as t } from "./Geometry-C5s5KpWq.js";
2
- import { a as n, i as r, n as i, r as a, t as o } from "./FederatedEventTarget-BJgROaRQ.js";
3
- import "./FilterSystem-BUrPNXx-.js";
4
- import "./init-jApIMi04.js";
5
- t.add(n), t.mixin(e, r), t.add(a), t.add(i), t.mixin(e, o);
6
- //#endregion
@@ -1,13 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
3
- if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
4
- get: ((e) => i[e]).bind(null, d),
5
- enumerable: !(s = n(i, d)) || s.enumerable
6
- });
7
- return e;
8
- }, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
9
- value: n,
10
- enumerable: !0
11
- }) : a, n));
12
- //#endregion
13
- export { c as n, o as t };