@kolkrabbi/design-editor 0.45.0 → 0.46.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, Dn as t, In as n, L as r, Mn as i, Nn as a, j as o } from "./rolls-CSOfYXm5.js";
1
+ import { D as e, Dn as t, In as n, L as r, Mn as i, Nn as a, j as o } from "./rolls-KpWCAeDv.js";
2
2
  import { ParamBindDot as s } from "@kolkrabbi/kol-component";
3
3
  import { useEffect as c, useState as l } from "react";
4
4
  import { jsx as u } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { D as e, Dn as t, Hn as n, J as r, M as i, N as a, On as o } from "./rolls-CSOfYXm5.js";
2
- import { m as s, s as c, u as l } from "./morphStore-Ba--Lk9u.js";
1
+ import { D as e, Dn as t, Hn as n, J as r, M as i, N as a, On as o } from "./rolls-KpWCAeDv.js";
2
+ import { m as s, s as c, u as l } from "./morphStore-D6mkLJ-8.js";
3
3
  import { Button as u, Dropdown as d, Input as f, Tooltip as p, floatSurfaceClass as m, useGrabEdge as h } from "@kolkrabbi/kol-component";
4
4
  import { Fragment as g, useEffect as _, useMemo as v, useRef as y, useState as b } from "react";
5
5
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { F as e, L as t, dn as n, hn as r, pn as i } from "./rolls-CSOfYXm5.js";
1
+ import { F as e, L as t, dn as n, hn as r, pn as i } from "./rolls-KpWCAeDv.js";
2
2
  import { embedFontFace as a } from "@kolkrabbi/kol-component";
3
3
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
4
4
  //#region src/kinetic/fonts.js
@@ -1,10 +1,10 @@
1
- import { $t as e, A as t, An as n, At as r, B as i, Bn as a, Ct as o, D as s, Dn as c, Dt as l, E as u, Et as d, F as f, Ft as p, G as m, Gn as h, Gt as g, H as _, I as v, It as y, J as b, Jt as x, K as S, Kn as C, Kt as w, L as T, Lt as ee, Mt as E, Nt as te, O as ne, On as re, Ot as ie, Pt as ae, Q as oe, Qn as D, Qt as se, R as ce, Rt as le, St as ue, T as de, Tt as fe, U as pe, Un as me, V as he, Vn as ge, W as _e, Wn as ve, Xt as ye, Yn as be, Yt as xe, Zt as Se, _t as Ce, a as we, an as O, bn as k, ct as Te, d as A, dn as j, dt as Ee, en as De, er as M, hn as Oe, in as N, jn as ke, jt as Ae, k as je, kn as Me, kt as Ne, ln as Pe, lt as Fe, mn as Ie, n as Le, nn as Re, on as ze, q as P, qn as Be, qt as F, rn as Ve, sn as He, st as Ue, t as We, tn as Ge, un as Ke, ut as qe, vt as Je, w as I, wt as Ye, xn as Xe, xt as Ze, yt as Qe, z as $e, zn as et, zt as tt } from "./rolls-CSOfYXm5.js";
2
- import { l as nt, n as rt, r as it, t as at } from "./useLayerEdit-BCGfD3Cv.js";
3
- import { F as ot, I as st, N as ct, P as lt, b as ut, c as dt, d as ft, f as pt, g as L, i as mt, l as ht, m as gt, o as _t, p as vt, s as yt, t as bt, v as xt, x as St } from "./store-BtEnp5i6.js";
4
- import { m as Ct, o as wt } from "./morphStore-Ba--Lk9u.js";
5
- import { n as Tt, r as Et, t as Dt } from "./BindDot-DqLgF_zQ.js";
6
- import { a as Ot, c as kt, l as At, o as jt, s as Mt } from "./Timeline-Boo1VuFe.js";
7
- import { i as Nt, t as Pt } from "./previewScale-xKmJh3wg.js";
1
+ import { $t as e, A as t, An as n, At as r, B as i, Bn as a, Ct as o, D as s, Dn as c, Dt as l, E as u, Et as d, F as f, Ft as p, G as m, Gn as h, Gt as g, H as _, I as v, It as y, J as b, Jt as x, K as S, Kn as C, Kt as w, L as T, Lt as ee, Mt as E, Nt as te, O as ne, On as re, Ot as ie, Pt as ae, Q as oe, Qn as D, Qt as se, R as ce, Rt as le, St as ue, T as de, Tt as fe, U as pe, Un as me, V as he, Vn as ge, W as _e, Wn as ve, Xt as ye, Yn as be, Yt as xe, Zt as Se, _t as Ce, a as we, an as O, bn as k, ct as Te, d as A, dn as j, dt as Ee, en as De, er as M, hn as Oe, in as N, jn as ke, jt as Ae, k as je, kn as Me, kt as Ne, ln as Pe, lt as Fe, mn as Ie, n as Le, nn as Re, on as ze, q as P, qn as Be, qt as F, rn as Ve, sn as He, st as Ue, t as We, tn as Ge, un as Ke, ut as qe, vt as Je, w as I, wt as Ye, xn as Xe, xt as Ze, yt as Qe, z as $e, zn as et, zt as tt } from "./rolls-KpWCAeDv.js";
2
+ import { l as nt, n as rt, r as it, t as at } from "./useLayerEdit-Ba7RA6qX.js";
3
+ import { F as ot, I as st, N as ct, P as lt, b as ut, c as dt, d as ft, f as pt, g as L, i as mt, l as ht, m as gt, o as _t, p as vt, s as yt, t as bt, v as xt, x as St } from "./store-iBb0I6hk.js";
4
+ import { m as Ct, o as wt } from "./morphStore-D6mkLJ-8.js";
5
+ import { n as Tt, r as Et, t as Dt } from "./BindDot-B0VcuOag.js";
6
+ import { a as Ot, c as kt, l as At, o as jt, s as Mt } from "./Timeline-Ck1rBV8S.js";
7
+ import { i as Nt, t as Pt } from "./previewScale-SYKvfhUm.js";
8
8
  import { AssetGrid as Ft, Button as R, ButtonGroup as It, ButtonSplit as Lt, CanvasZoomContext as Rt, CloseButton as zt, ColorSwatch as Bt, CommandOverlay as Vt, ContentRow as Ht, ContextMenu as Ut, CropOverlay as Wt, Divider as Gt, Dropdown as Kt, EyedropPick as qt, FullscreenOverlay as Jt, HueStrip as Yt, Input as Xt, InspectorRail as Zt, InspectorSection as Qt, LabeledControl as $t, LabeledControlSection as en, MediaLibrary as tn, MediaTile as nn, Menu as rn, MenuDropdownDivider as z, MenuDropdownItem as B, MenuDropdownNest as an, MenuItem as on, MenuTrigger as sn, ModalProvider as cn, ModalShell as ln, OriginPicker as un, PathNodeOverlay as dn, PopoverPanel as fn, SBSquare as pn, SearchInput as mn, SelectionOverlay as hn, SettingsChoice as gn, SettingsFooter as _n, SettingsPanel as vn, SettingsRow as yn, SettingsSwitch as bn, Slider as xn, Stepper as Sn, SwatchStack as Cn, TabChips as wn, ToggleCheckbox as Tn, ToggleSwitch as En, ToolPalette as Dn, Tooltip as V, ViewToggle as On, WheelTriangle as kn, findLayerDeep as An, glyphSize as jn, rowLabelForLayer as Mn, svgToPngBlob as Nn, useContextMenu as Pn, useDragResize as Fn, useGrabEdge as In, useMediaQuery as Ln, useModal as Rn, usePlaceholders as zn, usePopover as Bn } from "@kolkrabbi/kol-component";
9
9
  import { Component as Vn, createContext as Hn, useCallback as Un, useContext as Wn, useEffect as H, useLayoutEffect as Gn, useMemo as Kn, useRef as U, useState as W, useSyncExternalStore as qn } from "react";
10
10
  import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
@@ -2637,7 +2637,7 @@ function Es() {
2637
2637
  });
2638
2638
  let m = a * l, h = o * l, g = document.createElement("canvas");
2639
2639
  g.width = m, g.height = h;
2640
- let _ = g.getContext("2d"), { Output: v, WebMOutputFormat: y, BufferTarget: b, CanvasSource: x } = await import("./src-BSoHkncc.js"), S = new v({
2640
+ let _ = g.getContext("2d"), { Output: v, WebMOutputFormat: y, BufferTarget: b, CanvasSource: x } = await import("./src-B5o6fGRJ.js"), S = new v({
2641
2641
  format: new y(),
2642
2642
  target: new b()
2643
2643
  }), C = new x(g, {
@@ -16692,55 +16692,57 @@ function t_({ onSaveSettings: e, onLoadSettings: t, onSave: n, currentPresetId:
16692
16692
  ]
16693
16693
  });
16694
16694
  }
16695
- function n_() {
16696
- let e = T(), t = e !== "sm", n = M("motion")?.TransportBar ?? null, r = (M("motion")?.useTimelineUp ?? Qg)(), i = Or() === "editor" && !!n && !r, a = Xe() === "float", o = !!n && !t && !a && (Or() !== "editor" || r), s = o ? Yg : Xg, [c, l] = W(t ? null : o || Or() === "editor" ? "transport" : "output");
16695
+ function n_({ part: e } = {}) {
16696
+ let t = T(), n = t !== "sm", r = M("motion")?.TransportBar ?? null, i = (M("motion")?.useTimelineUp ?? Qg)(), a = Or() === "editor" && !!r && !i, o = Xe() === "float", s = !!r && !n && !o && (Or() !== "editor" || i), c = s ? Yg : Xg, [l, u] = W(e ?? (n ? null : s || Or() === "editor" ? "transport" : "output"));
16697
16697
  H(() => {
16698
- c === "transport" && !o && !t && !i && l("output");
16698
+ !e && l === "transport" && !s && !n && !a && u("output");
16699
16699
  }, [
16700
- c,
16701
- o,
16702
- t,
16703
- i
16700
+ l,
16701
+ s,
16702
+ n,
16703
+ a
16704
16704
  ]);
16705
- let [u, d] = W(1), [f, p] = W(!1), [m, h] = W(!1), [g, _] = W(null), { onSave: y, onExportPng: x, onExportWebm: S, runBatchExport: C, onRecordStart: w, onRecordStop: ee, onSaveSettings: E, onLoadSettings: te, openOutputWindow: ne, currentPresetId: ie } = Es(), { aspect: ae, setAspect: oe, canvasW: D, canvasH: se, selectedId: ce, layers: ue } = b(), de = $g(), { playing: fe, play: pe, pause: me } = re();
16705
+ let [d, f] = W(1), [p, m] = W(!1), [h, g] = W(!1), [_, y] = W(null), { onSave: x, onExportPng: S, onExportWebm: C, runBatchExport: w, onRecordStart: ee, onRecordStop: E, onSaveSettings: te, onLoadSettings: ne, openOutputWindow: ie, currentPresetId: ae } = Es(), { aspect: oe, setAspect: D, canvasW: se, canvasH: ce, selectedId: ue, layers: de } = b(), fe = $g(), { playing: pe, play: me, pause: he } = re();
16706
16706
  H(() => () => {
16707
- ee();
16708
- }, []), rd(Zg, Un((e) => l((n) => t && n === e.toLowerCase() ? null : e.toLowerCase()), [t])), H(() => {
16709
- let e = () => p(!0);
16707
+ E();
16708
+ }, []), rd(Zg, Un((t) => {
16709
+ e || u((e) => n && e === t.toLowerCase() ? null : t.toLowerCase());
16710
+ }, [n, e])), H(() => {
16711
+ let e = () => m(!0);
16710
16712
  return window.addEventListener("kol:open-batch-export", e), () => window.removeEventListener("kol:open-batch-export", e);
16711
16713
  }, []);
16712
- let he = async () => {
16713
- if (m) {
16714
- await ee(), h(!1);
16714
+ let ge = async () => {
16715
+ if (h) {
16716
+ await E(), g(!1);
16715
16717
  return;
16716
16718
  }
16717
- await w(u) && h(!0);
16718
- }, ge = async () => {
16719
- if (!g) {
16720
- _({
16719
+ await ee(d) && g(!0);
16720
+ }, _e = async () => {
16721
+ if (!_) {
16722
+ y({
16721
16723
  done: 0,
16722
16724
  total: 1
16723
16725
  });
16724
16726
  try {
16725
- await S(u, (e, t) => _({
16727
+ await C(d, (e, t) => y({
16726
16728
  done: e,
16727
16729
  total: t
16728
16730
  }));
16729
16731
  } finally {
16730
- _(null);
16732
+ y(null);
16731
16733
  }
16732
16734
  }
16733
- }, _e = Ge.filter((e) => e.id !== "custom" || ae === "custom").map((e) => ({
16735
+ }, ve = Ge.filter((e) => e.id !== "custom" || oe === "custom").map((e) => ({
16734
16736
  value: e.id,
16735
16737
  label: e.label
16736
- })), ve = [
16738
+ })), ye = [
16737
16739
  1,
16738
16740
  2,
16739
16741
  3
16740
16742
  ].map((e) => ({
16741
16743
  value: e,
16742
- label: `@${e}x · ${D * e} × ${se * e}`
16743
- })), ye = ce && ce !== "canvas" ? le(ue, ce) : null, be = ye?.type === "photo" ? ye : null, xe = /* @__PURE__ */ q(G, { children: [g && /* @__PURE__ */ K(Jt, {
16744
+ label: `@${e}x · ${se * e} × ${ce * e}`
16745
+ })), be = ue && ue !== "canvas" ? le(de, ue) : null, xe = be?.type === "photo" ? be : null, Se = /* @__PURE__ */ q(G, { children: [_ && /* @__PURE__ */ K(Jt, {
16744
16746
  open: !0,
16745
16747
  closeButton: !1,
16746
16748
  children: /* @__PURE__ */ q(ln, {
@@ -16758,9 +16760,9 @@ function n_() {
16758
16760
  }), /* @__PURE__ */ q("span", {
16759
16761
  className: "kol-helper-10 text-meta",
16760
16762
  children: [
16761
- g.done,
16763
+ _.done,
16762
16764
  " / ",
16763
- g.total
16765
+ _.total
16764
16766
  ]
16765
16767
  })]
16766
16768
  }), /* @__PURE__ */ K("div", {
@@ -16771,127 +16773,130 @@ function n_() {
16771
16773
  },
16772
16774
  children: /* @__PURE__ */ K("div", { style: {
16773
16775
  height: "100%",
16774
- width: `${Math.round(g.done / Math.max(1, g.total) * 100)}%`,
16776
+ width: `${Math.round(_.done / Math.max(1, _.total) * 100)}%`,
16775
16777
  background: "var(--kol-accent-primary)",
16776
16778
  transition: "width 80ms linear"
16777
16779
  } })
16778
16780
  })]
16779
16781
  })
16780
16782
  }), /* @__PURE__ */ K(Jg, {
16781
- open: f,
16782
- onClose: () => p(!1),
16783
- runBatchExport: C,
16784
- baseAspect: ae,
16785
- defaultScale: u
16786
- })] });
16787
- return i ? xe : de ? /* @__PURE__ */ q("div", {
16783
+ open: p,
16784
+ onClose: () => m(!1),
16785
+ runBatchExport: w,
16786
+ baseAspect: oe,
16787
+ defaultScale: d
16788
+ })] }), Ce = /* @__PURE__ */ q("div", {
16789
+ className: "flex flex-col gap-3",
16790
+ children: [/* @__PURE__ */ K(Ie, {
16791
+ label: "Aspect",
16792
+ children: /* @__PURE__ */ K(j, {
16793
+ size: t,
16794
+ variant: "subtle",
16795
+ className: "w-full",
16796
+ options: ve,
16797
+ value: oe,
16798
+ onChange: D
16799
+ })
16800
+ }), /* @__PURE__ */ q(Ie, {
16801
+ label: "Export",
16802
+ children: [/* @__PURE__ */ K(j, {
16803
+ size: t,
16804
+ variant: "subtle",
16805
+ className: "w-full",
16806
+ options: ye,
16807
+ value: d,
16808
+ onChange: f
16809
+ }), /* @__PURE__ */ q("div", {
16810
+ className: "flex items-center gap-2",
16811
+ children: [/* @__PURE__ */ K(Lt, {
16812
+ variant: o ? "float" : "default",
16813
+ tone: o ? "grey" : "primary",
16814
+ size: t,
16815
+ icon: "download",
16816
+ className: "flex-1 min-w-0",
16817
+ onClick: () => S(d),
16818
+ items: [
16819
+ {
16820
+ label: "Export PNG",
16821
+ icon: "download",
16822
+ onPress: () => S(d)
16823
+ },
16824
+ {
16825
+ label: "Export loop (webm)",
16826
+ icon: "download",
16827
+ onPress: _e
16828
+ },
16829
+ {
16830
+ label: h ? "Stop recording" : "Record",
16831
+ icon: h ? "eye-on" : "download",
16832
+ onPress: ge
16833
+ },
16834
+ {
16835
+ label: "Batch export",
16836
+ icon: "layers",
16837
+ onPress: () => m(!0)
16838
+ }
16839
+ ],
16840
+ children: "Export PNG"
16841
+ }), /* @__PURE__ */ K(Pe, {
16842
+ tone: "primary",
16843
+ size: t,
16844
+ iconLeft: "maximize",
16845
+ iconSize: 12,
16846
+ onClick: ie,
16847
+ children: "Open output window"
16848
+ })]
16849
+ })]
16850
+ })]
16851
+ }), we = /* @__PURE__ */ q(G, { children: [xe ? /* @__PURE__ */ K(e_, { layer: xe }) : /* @__PURE__ */ K(t_, {
16852
+ onSaveSettings: te,
16853
+ onLoadSettings: ne,
16854
+ onSave: x,
16855
+ currentPresetId: ae
16856
+ }), /* @__PURE__ */ K(Gg, {})] });
16857
+ return a ? Se : e ? /* @__PURE__ */ q("div", {
16858
+ className: "flex flex-col gap-3",
16859
+ children: [e === "output" ? Ce : we, e === "output" && Se]
16860
+ }) : fe ? /* @__PURE__ */ q("div", {
16788
16861
  className: "flex flex-col px-2 pb-4",
16789
16862
  children: [
16790
16863
  /* @__PURE__ */ K("div", { className: "self-stretch -mx-2 border-t border-oq-08 mb-2" }),
16791
- n && /* @__PURE__ */ K(V, {
16792
- label: fe ? "Pause" : "Play",
16864
+ r && /* @__PURE__ */ K(V, {
16865
+ label: pe ? "Pause" : "Play",
16793
16866
  shortcut: "Space",
16794
16867
  children: /* @__PURE__ */ K(Pe, {
16795
16868
  tone: "ghost",
16796
16869
  size: "md",
16797
- iconOnly: fe ? "pause" : "play",
16798
- "aria-label": fe ? "Pause" : "Play",
16799
- onClick: fe ? me : pe,
16870
+ iconOnly: pe ? "pause" : "play",
16871
+ "aria-label": pe ? "Pause" : "Play",
16872
+ onClick: pe ? he : me,
16800
16873
  className: "self-center"
16801
16874
  })
16802
16875
  }),
16803
- xe
16876
+ Se
16804
16877
  ]
16805
- }) : t && !c ? /* @__PURE__ */ K(G, { children: xe }) : /* @__PURE__ */ q("div", {
16878
+ }) : n && !l ? /* @__PURE__ */ K(G, { children: Se }) : /* @__PURE__ */ q("div", {
16806
16879
  className: "relative border-t border-oq-08 flex flex-col gap-3",
16807
- style: { padding: a ? "16px 0 0" : "16px 16px 20px" },
16880
+ style: { padding: o ? "16px 0 0" : "16px 16px 20px" },
16808
16881
  children: [
16809
- !t && /* @__PURE__ */ K("div", {
16882
+ !n && /* @__PURE__ */ K("div", {
16810
16883
  className: "flex items-center gap-2",
16811
16884
  children: /* @__PURE__ */ K(Ke, {
16812
16885
  layout: "joined",
16813
- value: c,
16814
- onChange: (e) => l(t ? (t) => t === e ? null : e : e),
16815
- options: s,
16816
- size: e,
16817
- className: `flex-1 min-w-0 ${v(e) ?? ""}`.trim()
16886
+ value: l,
16887
+ onChange: (e) => u(n ? (t) => t === e ? null : e : e),
16888
+ options: c,
16889
+ size: t,
16890
+ className: `flex-1 min-w-0 ${v(t) ?? ""}`.trim()
16818
16891
  })
16819
16892
  }),
16820
- n && !t && /* @__PURE__ */ K("div", {
16821
- className: c === "transport" ? void 0 : "hidden",
16822
- children: /* @__PURE__ */ K(n, { size: e })
16823
- }),
16824
- c === "output" && /* @__PURE__ */ q("div", {
16825
- className: "flex flex-col gap-3",
16826
- children: [/* @__PURE__ */ K(Ie, {
16827
- label: "Aspect",
16828
- children: /* @__PURE__ */ K(j, {
16829
- size: e,
16830
- variant: "subtle",
16831
- className: "w-full",
16832
- options: _e,
16833
- value: ae,
16834
- onChange: oe
16835
- })
16836
- }), /* @__PURE__ */ q(Ie, {
16837
- label: "Export",
16838
- children: [/* @__PURE__ */ K(j, {
16839
- size: e,
16840
- variant: "subtle",
16841
- className: "w-full",
16842
- options: ve,
16843
- value: u,
16844
- onChange: d
16845
- }), /* @__PURE__ */ q("div", {
16846
- className: "flex items-center gap-2",
16847
- children: [/* @__PURE__ */ K(Lt, {
16848
- variant: a ? "float" : "default",
16849
- tone: "primary",
16850
- size: e,
16851
- icon: "download",
16852
- className: "flex-1 min-w-0",
16853
- onClick: () => x(u),
16854
- items: [
16855
- {
16856
- label: "Export PNG",
16857
- icon: "download",
16858
- onPress: () => x(u)
16859
- },
16860
- {
16861
- label: "Export loop (webm)",
16862
- icon: "download",
16863
- onPress: ge
16864
- },
16865
- {
16866
- label: m ? "Stop recording" : "Record",
16867
- icon: m ? "eye-on" : "download",
16868
- onPress: he
16869
- },
16870
- {
16871
- label: "Batch export",
16872
- icon: "layers",
16873
- onPress: () => p(!0)
16874
- }
16875
- ],
16876
- children: "Export PNG"
16877
- }), /* @__PURE__ */ K(Pe, {
16878
- tone: "primary",
16879
- size: e,
16880
- iconLeft: "maximize",
16881
- iconSize: 12,
16882
- onClick: ne,
16883
- children: "Open output window"
16884
- })]
16885
- })]
16886
- })]
16893
+ r && !n && /* @__PURE__ */ K("div", {
16894
+ className: l === "transport" ? void 0 : "hidden",
16895
+ children: /* @__PURE__ */ K(r, { size: t })
16887
16896
  }),
16888
- c === "file" && /* @__PURE__ */ q(G, { children: [be ? /* @__PURE__ */ K(e_, { layer: be }) : /* @__PURE__ */ K(t_, {
16889
- onSaveSettings: E,
16890
- onLoadSettings: te,
16891
- onSave: y,
16892
- currentPresetId: ie
16893
- }), /* @__PURE__ */ K(Gg, {})] }),
16894
- xe
16897
+ l === "output" && Ce,
16898
+ l === "file" && we,
16899
+ Se
16895
16900
  ]
16896
16901
  });
16897
16902
  }
@@ -18301,32 +18306,18 @@ var N_ = (e) => String(Math.floor(e)).padStart(2, "0"), P_ = (e) => `${N_(e / 60
18301
18306
  icon: "nav-settings",
18302
18307
  label: "Settings"
18303
18308
  }], L_ = (e) => e === "/labs" ? Sr("labs") : e === "/randomiser" ? Sr("randomiser") : e === "/editor" ? null : xr(e);
18304
- function R_({ className: e }) {
18305
- let { playing: t, t: n, loopSeconds: r } = re(), i = !!c.clock.state.looping;
18309
+ function R_({ className: e, collapsibleH: t }) {
18310
+ let { playing: n, t: r, loopSeconds: i } = re(), a = !!c.clock.state.looping;
18306
18311
  return /* @__PURE__ */ K(Jn, {
18307
18312
  variant: "transport",
18308
18313
  inline: !0,
18314
+ collapsibleH: t,
18309
18315
  items: [
18310
18316
  {
18311
- id: "play",
18312
- icon: "play",
18313
- label: "Play",
18314
- selected: t,
18315
- onPress: c.play
18316
- },
18317
- {
18318
- id: "pause",
18319
- icon: "pause",
18320
- label: "Pause",
18321
- selected: !t,
18322
- onPress: c.pause
18323
- },
18324
- {
18325
- id: "loop",
18326
- icon: "repeat",
18327
- label: i ? "Loop off" : "Loop on",
18328
- selected: i,
18329
- onPress: () => c.clock.set({ looping: !i })
18317
+ id: "back",
18318
+ icon: "skip-start",
18319
+ label: "Back to start",
18320
+ onPress: c.rewind
18330
18321
  },
18331
18322
  {
18332
18323
  id: "stop",
@@ -18335,15 +18326,23 @@ function R_({ className: e }) {
18335
18326
  onPress: c.stop
18336
18327
  },
18337
18328
  {
18338
- id: "back",
18339
- icon: "skip-start",
18340
- label: "Back to start",
18341
- onPress: c.rewind
18329
+ id: "loop",
18330
+ icon: "repeat",
18331
+ label: a ? "Loop off" : "Loop on",
18332
+ selected: a,
18333
+ onPress: () => c.clock.set({ looping: !a })
18334
+ },
18335
+ {
18336
+ id: "play",
18337
+ icon: n ? "pause" : "play",
18338
+ label: n ? "Pause" : "Play",
18339
+ selected: n,
18340
+ onPress: n ? c.pause : c.play
18342
18341
  }
18343
18342
  ],
18344
18343
  timecode: {
18345
- current: P_(n * r),
18346
- total: P_(r)
18344
+ current: P_(r * i),
18345
+ total: P_(i)
18347
18346
  },
18348
18347
  className: e
18349
18348
  });
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Gn as e, tr as t } from "./rolls-CSOfYXm5.js";
2
- import { A as n, C as r, D as i, E as a, M as o, O as s, S as c, T as l, _ as u, b as d, h as f, j as p, k as m, l as h, m as g, u as _, v, w as y, y as b } from "./store-BtEnp5i6.js";
3
- import { n as x, r as S } from "./Timeline-Boo1VuFe.js";
4
- import { A as C, F as w, L as T, M as E, N as D, O, P as k, Q as ee, S as A, V as j, a as M, c as N, d as P, dt as F, et as I, f as L, i as R, it as z, k as B, l as V, m as H, mt as U, n as W, o as G, ot as K, p as q, pt as J, r as Y, rt as X, s as Z, st as Q, t as $, u as te, x as ne, z as re } from "./core-DUm8hgL9.js";
1
+ import { Gn as e, tr as t } from "./rolls-KpWCAeDv.js";
2
+ import { A as n, C as r, D as i, E as a, M as o, O as s, S as c, T as l, _ as u, b as d, h as f, j as p, k as m, l as h, m as g, u as _, v, w as y, y as b } from "./store-iBb0I6hk.js";
3
+ import { n as x, r as S } from "./Timeline-Ck1rBV8S.js";
4
+ import { A as C, F as w, L as T, M as E, N as D, O, P as k, Q as ee, S as A, V as j, a as M, c as N, d as P, dt as F, et as I, f as L, i as R, it as z, k as B, l as V, m as H, mt as U, n as W, o as G, ot as K, p as q, pt as J, r as Y, rt as X, s as Z, st as Q, t as $, u as te, x as ne, z as re } from "./core-BBb9Tk4Q.js";
5
5
  export { O as AppSettingsSections, T as BRAND, $ as DesignEditor, $ as default, B as DisplaySettingsDrawer, H as EditorProviders, w as FilesDialog, W as FloatDesignEditor, h as GeneratorLibraryProvider, _ as LIBRARY_SLOT_KEYS, z as MODES, P as OutputCanvas, L as OutputStage, q as OutputView, N as RAIL_EXTRA_PREFIX, x as TimelineRail, b as UnauthorizedError, K as VIEW_PATHS, E as closeFiles, re as comboLabel, Y as copyStored, Q as currentView, R as duplicateStored, d as getLibraryApi, c as inviteFromRequest, ee as isMobileDevice, r as listInviteRequests, g as loadLibrary, y as mintInvite, D as openFiles, f as readLibraryRaw, t as registerPack, M as removeStored, G as renameStored, l as requestInvite, a as setLibraryApi, ne as setMediaClient, A as setMediaProxyBase, F as setMode, J as setNavigator, V as setRailExtras, e as setSettingsStore, Z as setThumbStored, I as setWantsDesktop, j as shortcutsBySection, i as signInLibrary, s as signOutLibrary, m as signUpLibrary, u as subscribeLibrary, S as timelineView, n as updateAccount, p as useAccount, k as useFilesDialog, v as useGeneratorLibrary, o as useLibrarySession, te as useRailExtras, C as useSettingsSections, X as wantsDesktop, U as withView };