@kolkrabbi/design-editor 0.23.0 → 0.24.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/{RuleRow-BXkjpTyN.js → RuleRow-DIbuUt37.js} +1 -1
- package/dist/{core-CTI1YRJD.js → core-CNI8b_83.js} +22 -43
- package/dist/core.js +1 -1
- package/dist/design-editor.css +1 -1
- package/dist/design-editor.js +6 -6
- package/dist/{effectCategories-BcaQSD_V.js → effectCategories-0PnGZvjd.js} +358 -364
- package/dist/{effects-pCd8YTdQ.js → effects-BujxwoNY.js} +3 -3
- package/dist/effects.js +1 -1
- package/dist/{generators-B8_StNAy.js → generators-SpRHQDMq.js} +3 -3
- package/dist/generators.js +1 -1
- package/dist/{host-B4SRaN9h.js → host-qtFVROOD.js} +1 -1
- package/dist/{motion-DFnAar_2.js → motion-Bn3FVkCS.js} +128 -131
- package/dist/motion.js +1 -1
- package/package.json +8 -8
|
@@ -581,7 +581,7 @@ function U({ rule: e, onChange: t, onRemove: n, onReroll: r }) {
|
|
|
581
581
|
onChange: (e) => i({ expression: e.target.value }),
|
|
582
582
|
placeholder: "sin(col * 0.6) + cos(row * 0.6)"
|
|
583
583
|
}), /* @__PURE__ */ b("span", {
|
|
584
|
-
className: "kol-
|
|
584
|
+
className: "kol-mono-10 text-subtle mt-1",
|
|
585
585
|
children: "vars: i, col, row, cols, rows · Math.* in scope"
|
|
586
586
|
})]
|
|
587
587
|
}),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $ as e, A as t, At as n, Bt as r, C as i, Ct as a, D as o, Dt as s, E as c, Et as l, F as u, H as d, Ht as f, I as p, J as m, K as h, M as g, Mt as _, N as v, Nt as y, O as b, Ot as x, P as S, Pt as C, Q as w, Rt as T, S as E, St as D, T as ee, Tt as te, U as O, Vt as ne, W as re, X as k, Xt as ie, Y as ae, Yt as oe, Z as se, Zt as A, _ as ce, _t as le, a as ue, at as de, bt as fe, c as pe, d as me, et as he, f as ge, g as _e, gt as ve, h as ye, ht as j, it as M, j as N, jt as be, k as xe, kt as Se, m as P, mt as Ce, n as we, nt as Te, ot as Ee, p as De, pn as F, pt as Oe, q as ke, rt as Ae, sn as je, st as Me, t as Ne, tt as Pe, vt as I, w as Fe, wt as Ie, x as Le, xt as Re, yt as ze, zt as Be } from "./rolls-Bg1XHuvJ.js";
|
|
2
2
|
import { a as Ve, f as He, h as Ue, m as L, n as We, r as Ge, t as Ke } from "./useLayerEdit-ieOjHx6x.js";
|
|
3
|
-
import { a as qe, i as Je, n as Ye, r as Xe, s as Ze, t as Qe } from "./RuleRow-
|
|
4
|
-
import { d as $e, f as et, r as tt, t as nt, u as rt } from "./effectCategories-
|
|
3
|
+
import { a as qe, i as Je, n as Ye, r as Xe, s as Ze, t as Qe } from "./RuleRow-DIbuUt37.js";
|
|
4
|
+
import { d as $e, f as et, r as tt, t as nt, u as rt } from "./effectCategories-0PnGZvjd.js";
|
|
5
5
|
import { c as it, i as at, n as ot, r as st } from "./labels-B5qkocWy.js";
|
|
6
|
-
import { AddLayerButton as ct, AssetGrid as R, BLEND_MODES as lt, Button as z, CANVAS_DEFAULTS as ut, CANVAS_VIRTUAL_W as dt, Canvas as ft, CanvasZoomContext as pt, CloseButton as mt, ColorInputRow as ht, ColorSwatch as gt, ContentCard as _t, ContentFilters as vt, ContentRow as yt, CropOverlay as bt, Dropdown as xt, EmptyState as St, EyedropPick as Ct, FullscreenOverlay as wt, HARMONIES as Tt, HueStrip as Et, IconFrame as Dt, Input as Ot, InspectorRail as kt, InspectorSection as At, LabeledControl as B, LabeledControlSection as jt, LayerStack as Mt, MediaLibrary as Nt, MediaTile as Pt,
|
|
6
|
+
import { AddLayerButton as ct, AssetGrid as R, BLEND_MODES as lt, Button as z, CANVAS_DEFAULTS as ut, CANVAS_VIRTUAL_W as dt, Canvas as ft, CanvasZoomContext as pt, CloseButton as mt, ColorInputRow as ht, ColorSwatch as gt, ContentCard as _t, ContentFilters as vt, ContentRow as yt, CropOverlay as bt, Dropdown as xt, EmptyState as St, EyedropPick as Ct, FullscreenOverlay as wt, HARMONIES as Tt, HueStrip as Et, IconFrame as Dt, Input as Ot, InspectorRail as kt, InspectorSection as At, LabeledControl as B, LabeledControlSection as jt, LayerStack as Mt, MediaLibrary as Nt, MediaTile as Pt, MenuDivider as Ft, MenuFlyout as It, MenuItem as Lt, MenuRow as V, ModalProvider as Rt, PaletteHarmonyWheel as zt, PathNodeOverlay as Bt, PopoverPanel as Vt, SBSquare as Ht, SegmentedToggle as Ut, SelectionOverlay as Wt, SettingsChoice as Gt, SettingsFooter as Kt, SettingsPanel as qt, SettingsRow as Jt, SettingsSwitch as Yt, Slider as Xt, SwatchStack as Zt, TabsRow as Qt, ToggleSwitch as $t, ToolPalette as en, Tooltip as H, ViewToggle as tn, WheelTriangle as nn, glyphSize as U, harmonyById as rn, svgToPngBlob as an, useFps as on, useModal as sn, usePlaceholders as cn, usePopover as ln } from "@kolkrabbi/kol-component";
|
|
7
7
|
import { Component as un, createContext as dn, useCallback as W, useContext as fn, useEffect as G, useMemo as pn, useRef as K, useState as q, useSyncExternalStore as mn } from "react";
|
|
8
8
|
import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
9
9
|
import { Icon as Z } from "@kolkrabbi/kol-icons";
|
|
@@ -367,7 +367,7 @@ var or = class extends un {
|
|
|
367
367
|
},
|
|
368
368
|
children: [
|
|
369
369
|
/* @__PURE__ */ Y("span", {
|
|
370
|
-
className: "kol-
|
|
370
|
+
className: "kol-mono-12 text-emphasis",
|
|
371
371
|
children: "The editor hit an error."
|
|
372
372
|
}),
|
|
373
373
|
/* @__PURE__ */ Y("span", {
|
|
@@ -3836,10 +3836,7 @@ function Lo() {
|
|
|
3836
3836
|
className: "py-1 w-[200px]",
|
|
3837
3837
|
children: Sn.map((e) => /* @__PURE__ */ Y(V, {
|
|
3838
3838
|
onClick: () => jn(e.id),
|
|
3839
|
-
|
|
3840
|
-
name: "check",
|
|
3841
|
-
size: 11
|
|
3842
|
-
}) : void 0,
|
|
3839
|
+
indicator: e.id === "editor" ? "dot" : void 0,
|
|
3843
3840
|
children: e.label
|
|
3844
3841
|
}, e.id))
|
|
3845
3842
|
})
|
|
@@ -3886,15 +3883,12 @@ function Lo() {
|
|
|
3886
3883
|
label: e.label,
|
|
3887
3884
|
children: e.filters.map((e) => /* @__PURE__ */ Y(V, {
|
|
3888
3885
|
onClick: () => pe(e),
|
|
3889
|
-
|
|
3890
|
-
name: "check",
|
|
3891
|
-
size: 11
|
|
3892
|
-
}) : void 0,
|
|
3886
|
+
indicator: fe(e.id) ? "check" : void 0,
|
|
3893
3887
|
children: e.label
|
|
3894
3888
|
}, e.id))
|
|
3895
3889
|
}, e.id))
|
|
3896
3890
|
] }) : /* @__PURE__ */ Y("div", {
|
|
3897
|
-
className: "kol-
|
|
3891
|
+
className: "kol-mono-10 text-subtle px-3 py-1",
|
|
3898
3892
|
children: "Select a layer to apply an effect"
|
|
3899
3893
|
}),
|
|
3900
3894
|
/* @__PURE__ */ Y(Ft, {}),
|
|
@@ -3902,10 +3896,7 @@ function Lo() {
|
|
|
3902
3896
|
label: "Pattern",
|
|
3903
3897
|
children: [A && No(de).find((e) => e.id === "pattern")?.filters.map((e) => /* @__PURE__ */ Y(V, {
|
|
3904
3898
|
onClick: () => pe(e),
|
|
3905
|
-
|
|
3906
|
-
name: "check",
|
|
3907
|
-
size: 11
|
|
3908
|
-
}) : void 0,
|
|
3899
|
+
indicator: fe(e.id) ? "check" : void 0,
|
|
3909
3900
|
children: e.label
|
|
3910
3901
|
}, e.id)), To() && j.map((e) => /* @__PURE__ */ Y(It, {
|
|
3911
3902
|
label: e.label,
|
|
@@ -3973,10 +3964,7 @@ function Lo() {
|
|
|
3973
3964
|
/* @__PURE__ */ Y(Ft, {}),
|
|
3974
3965
|
/* @__PURE__ */ Y(V, {
|
|
3975
3966
|
onClick: T,
|
|
3976
|
-
|
|
3977
|
-
name: "check",
|
|
3978
|
-
size: 11
|
|
3979
|
-
}) : void 0,
|
|
3967
|
+
indicator: w ? "check" : void 0,
|
|
3980
3968
|
children: "Snap to guides"
|
|
3981
3969
|
}),
|
|
3982
3970
|
/* @__PURE__ */ Y(Ft, {}),
|
|
@@ -3992,13 +3980,13 @@ function Lo() {
|
|
|
3992
3980
|
/* @__PURE__ */ Y(V, {
|
|
3993
3981
|
onClick: m,
|
|
3994
3982
|
disabled: !f,
|
|
3995
|
-
|
|
3983
|
+
kbd: "⌘Z",
|
|
3996
3984
|
children: "Undo"
|
|
3997
3985
|
}),
|
|
3998
3986
|
/* @__PURE__ */ Y(V, {
|
|
3999
3987
|
onClick: h,
|
|
4000
3988
|
disabled: !p,
|
|
4001
|
-
|
|
3989
|
+
kbd: "⇧⌘Z",
|
|
4002
3990
|
children: "Redo"
|
|
4003
3991
|
})
|
|
4004
3992
|
]
|
|
@@ -4013,27 +4001,18 @@ function Lo() {
|
|
|
4013
4001
|
label: "Aspect",
|
|
4014
4002
|
children: Po.map((n) => /* @__PURE__ */ Y(V, {
|
|
4015
4003
|
onClick: () => t(n.value),
|
|
4016
|
-
|
|
4017
|
-
name: "check",
|
|
4018
|
-
size: 11
|
|
4019
|
-
}) : void 0,
|
|
4004
|
+
indicator: e === n.value ? "dot" : void 0,
|
|
4020
4005
|
children: n.label
|
|
4021
4006
|
}, n.value))
|
|
4022
4007
|
}), /* @__PURE__ */ X(It, {
|
|
4023
4008
|
label: "View",
|
|
4024
4009
|
children: [/* @__PURE__ */ Y(V, {
|
|
4025
4010
|
onClick: () => r("single"),
|
|
4026
|
-
|
|
4027
|
-
name: "check",
|
|
4028
|
-
size: 11
|
|
4029
|
-
}) : void 0,
|
|
4011
|
+
indicator: n === "single" ? "dot" : void 0,
|
|
4030
4012
|
children: "Single"
|
|
4031
4013
|
}), /* @__PURE__ */ Y(V, {
|
|
4032
4014
|
onClick: () => r("social"),
|
|
4033
|
-
|
|
4034
|
-
name: "check",
|
|
4035
|
-
size: 11
|
|
4036
|
-
}) : void 0,
|
|
4015
|
+
indicator: n === "social" ? "dot" : void 0,
|
|
4037
4016
|
children: "Social"
|
|
4038
4017
|
})]
|
|
4039
4018
|
})]
|
|
@@ -10297,7 +10276,7 @@ function Au() {
|
|
|
10297
10276
|
pane: !0,
|
|
10298
10277
|
children: [
|
|
10299
10278
|
/* @__PURE__ */ X("p", {
|
|
10300
|
-
className: "kol-
|
|
10279
|
+
className: "kol-mono-12 text-meta",
|
|
10301
10280
|
children: [e.length, " layers selected."]
|
|
10302
10281
|
}),
|
|
10303
10282
|
/* @__PURE__ */ Y(Zl, {}),
|
|
@@ -10657,7 +10636,7 @@ function Wu() {
|
|
|
10657
10636
|
children: /* @__PURE__ */ Y("div", {
|
|
10658
10637
|
className: "kol-compose-inspector-body",
|
|
10659
10638
|
children: n ? /* @__PURE__ */ Y(Gu, { layer: n }, n.id) : /* @__PURE__ */ Y(Ge, {
|
|
10660
|
-
className: "kol-
|
|
10639
|
+
className: "kol-mono-12 text-meta",
|
|
10661
10640
|
children: "Select a layer to edit its parameters."
|
|
10662
10641
|
})
|
|
10663
10642
|
})
|
|
@@ -10753,7 +10732,7 @@ function Gu({ layer: e }) {
|
|
|
10753
10732
|
else if (e.type === "loop") {
|
|
10754
10733
|
let e = F("generators")?.LoopFields;
|
|
10755
10734
|
if (!e) return /* @__PURE__ */ Y(Ge, {
|
|
10756
|
-
className: "kol-
|
|
10735
|
+
className: "kol-mono-12 text-meta",
|
|
10757
10736
|
children: "This layer has no parameters."
|
|
10758
10737
|
});
|
|
10759
10738
|
d = /* @__PURE__ */ Y(e, {
|
|
@@ -10763,7 +10742,7 @@ function Gu({ layer: e }) {
|
|
|
10763
10742
|
} else if (e.type === "misc") {
|
|
10764
10743
|
let e = F("generators");
|
|
10765
10744
|
if (!e) return /* @__PURE__ */ Y(Ge, {
|
|
10766
|
-
className: "kol-
|
|
10745
|
+
className: "kol-mono-12 text-meta",
|
|
10767
10746
|
children: "This layer has no parameters."
|
|
10768
10747
|
});
|
|
10769
10748
|
d = /* @__PURE__ */ Y(e.LoopFields, {
|
|
@@ -10774,7 +10753,7 @@ function Gu({ layer: e }) {
|
|
|
10774
10753
|
} else if (e.type === "kinetic") {
|
|
10775
10754
|
let e = F("motion")?.KineticPanel;
|
|
10776
10755
|
if (!e) return /* @__PURE__ */ Y(Ge, {
|
|
10777
|
-
className: "kol-
|
|
10756
|
+
className: "kol-mono-12 text-meta",
|
|
10778
10757
|
children: "This layer has no parameters."
|
|
10779
10758
|
});
|
|
10780
10759
|
d = /* @__PURE__ */ Y(e, {
|
|
@@ -10783,7 +10762,7 @@ function Gu({ layer: e }) {
|
|
|
10783
10762
|
}), f = !0;
|
|
10784
10763
|
} else if (e.type === "path") d = null;
|
|
10785
10764
|
else return /* @__PURE__ */ Y(Ge, {
|
|
10786
|
-
className: "kol-
|
|
10765
|
+
className: "kol-mono-12 text-meta",
|
|
10787
10766
|
children: "This layer has no parameters."
|
|
10788
10767
|
});
|
|
10789
10768
|
return /* @__PURE__ */ X("div", {
|
|
@@ -10840,7 +10819,7 @@ function Ku({ layer: e, setProp: t, updateLayer: n, palette: r, renderAnimate: i
|
|
|
10840
10819
|
})
|
|
10841
10820
|
})] }),
|
|
10842
10821
|
a === "style" && /* @__PURE__ */ Y(Ge, {
|
|
10843
|
-
className: "kol-
|
|
10822
|
+
className: "kol-mono-12 text-meta",
|
|
10844
10823
|
children: "Pattern styling lives in the Pattern tab."
|
|
10845
10824
|
}),
|
|
10846
10825
|
a === "anim" && /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(Je, {
|
|
@@ -11036,7 +11015,7 @@ function ed() {
|
|
|
11036
11015
|
children: /* @__PURE__ */ Y("div", {
|
|
11037
11016
|
className: "kol-compose-inspector-body",
|
|
11038
11017
|
children: r ? /* @__PURE__ */ Y(td, { layer: r }, r.id) : /* @__PURE__ */ Y("p", {
|
|
11039
|
-
className: "kol-
|
|
11018
|
+
className: "kol-mono-12 text-meta",
|
|
11040
11019
|
children: "Select a pattern layer to edit it."
|
|
11041
11020
|
})
|
|
11042
11021
|
})
|
package/dist/core.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { at as e, mn as t } from "./rolls-Bg1XHuvJ.js";
|
|
2
|
-
import { A as n, C as r, D as i, K as a, M as o, N as s, P as c, Q as l, S as u, T as d, W as f, X as p, Y as m, Z as h, a as g, b as _, c as v, h as y, i as b, it as x, j as S, k as C, m as w, n as T, o as E, r as D, rt as O, s as k, t as A, tt as j, v as M, w as N, y as P } from "./core-
|
|
2
|
+
import { A as n, C as r, D as i, K as a, M as o, N as s, P as c, Q as l, S as u, T as d, W as f, X as p, Y as m, Z as h, a as g, b as _, c as v, h as y, i as b, it as x, j as S, k as C, m as w, n as T, o as E, r as D, rt as O, s as k, t as A, tt as j, v as M, w as N, y as P } from "./core-CNI8b_83.js";
|
|
3
3
|
export { M as AppSettingsSections, i as BRAND, A as DesignEditor, A as default, P as DisplaySettingsDrawer, v as EditorProviders, d as FilesDialog, S as GeneratorLibraryProvider, o as LIBRARY_SLOT_KEYS, p as MODES, g as OutputCanvas, E as OutputStage, k as OutputView, T as RAIL_EXTRA_PREFIX, h as VIEW_PATHS, u as closeFiles, C as comboLabel, l as currentView, f as isMobileDevice, s as loadLibrary, r as openFiles, t as registerPack, w as setMediaClient, y as setMediaProxyBase, j as setMode, O as setNavigator, D as setRailExtras, e as setSettingsStore, a as setWantsDesktop, n as shortcutsBySection, N as useFilesDialog, c as useGeneratorLibrary, b as useRailExtras, _ as useSettingsSections, m as wantsDesktop, x as withView };
|