@kolkrabbi/design-editor 0.29.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.
- package/dist/{BindDot-CaZu6Uuz.js → BindDot-Don6fG00.js} +5 -5
- package/dist/{Timeline-BxVRu-R0.js → Timeline-BKYyRqYg.js} +2 -2
- package/dist/{TreePicker-BQYPaQv3.js → TreePicker-1_NZG8GB.js} +1 -1
- package/dist/{core-CLlanqLg.js → core-CQuP1lUU.js} +4976 -6327
- package/dist/core.js +5 -5
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +435 -435
- package/dist/{effectCategories-DJrQJ7vg.js → effectCategories-BGIW_dEc.js} +438 -438
- package/dist/{effects-dbxBWOCp.js → effects-RqPdJrRb.js} +115 -115
- package/dist/effects.js +1 -1
- package/dist/generators-BnuRmK-x.js +11148 -0
- package/dist/generators.js +1 -1
- package/dist/{host-DBTmkJuu.js → host-BUVR9I4S.js} +1 -1
- package/dist/{host-DXizGh-A.js → host-DJ8bDKO7.js} +4 -4
- package/dist/{morphStore-DaOLa9oj.js → morphStore-B5081ohW.js} +1 -1
- package/dist/{motion-CeoqVj9I.js → motion-DKZGyk14.js} +285 -285
- package/dist/motion.js +1 -1
- package/dist/{previewScale-DsG-A1ZC.js → previewScale-CA0ComGv.js} +8 -8
- package/dist/{rolls-CGma4Bua.js → rolls-CEQmdcp3.js} +865 -300
- package/dist/{src-CMdJeS6j.js → src-CzKMsyZO.js} +1 -1
- package/dist/{ColorModesWindow-D65R5YR5.js → store-D6Si8cRD.js} +407 -369
- package/dist/{useLayerEdit-CnPxtfWc.js → useLayerEdit-BF9wI5pX.js} +4 -4
- package/package.json +8 -8
- package/dist/generators-CQQxNX9W.js +0 -3200
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as e, F as t, I as n, J as r, L as i, T as a,
|
|
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) =>
|
|
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 =
|
|
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 =
|
|
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.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The design editor as one component",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,10 +35,10 @@
|
|
|
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.
|
|
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.
|
|
41
|
+
"@kolkrabbi/kol-theme": ">=0.213.0 <1",
|
|
42
42
|
"@kolkrabbi/kol-dashboards": ">=0.13.0 <1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
@@ -61,14 +61,14 @@
|
|
|
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.343.0",
|
|
65
64
|
"@kolkrabbi/kol-framework": "0.70.0",
|
|
66
65
|
"@kolkrabbi/kol-icons": "0.66.0",
|
|
67
|
-
"@kolkrabbi/kol-shell": "0.
|
|
68
|
-
"@kolkrabbi/kol-theme": "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
|
-
"@kolkrabbi/kol-
|
|
71
|
-
"@kolkrabbi/kol-
|
|
70
|
+
"@kolkrabbi/kol-media-client": "0.7.0",
|
|
71
|
+
"@kolkrabbi/kol-hardware": "0.10.0"
|
|
72
72
|
},
|
|
73
73
|
"keywords": [
|
|
74
74
|
"kol",
|