@tatamicks/core 1.0.2 → 1.0.3

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,6 +1,6 @@
1
1
  import { jsx as t, jsxs as p, Fragment as oe } from "react/jsx-runtime";
2
2
  import { useCallback as y, useState as O, useRef as ie, useEffect as pe, useContext as Pe, createContext as gt, useMemo as te, memo as fe, useId as an } from "react";
3
- import { Z as yt, a8 as _t, a5 as xt, a9 as wt, a6 as Nt, P as F, d as Ct, M as K, L as he, B as on, aa as sn, x as rn, T as cn, F as dn, q as ye, J as hn, v as Re, H as Ee, V as Ae, ab as un, s as dt, e as pn, g as ht, l as mn, u as bn, a as vn, C as fn, N as gn } from "./sidebarPortal-BN6FVwaF.js";
3
+ import { Z as yt, a8 as _t, a5 as xt, a9 as wt, a6 as Nt, P as F, d as Ct, M as K, L as he, B as on, aa as sn, x as rn, T as cn, F as dn, q as ye, J as hn, v as Re, H as Ee, V as Ae, ab as un, s as dt, e as pn, g as ht, l as mn, u as bn, a as vn, C as fn, N as gn } from "./sidebarPortal-B2Mk9Aba.js";
4
4
  import { createPortal as St } from "react-dom";
5
5
  import './PalettePanel.css';const yn = "_container_1xv5c_4", _n = "_section_1xv5c_16", xn = "_divider_1xv5c_23", wn = "_sectionLabel_1xv5c_31", Nn = "_select_1xv5c_38", Cn = "_numberInput_1xv5c_59", Sn = "_heightModeSwitch_1xv5c_87", In = "_switchLabel_1xv5c_93", $n = "_switchLabelActive_1xv5c_101", Ln = "_toggle_1xv5c_105", kn = "_thumb_1xv5c_122", P = {
6
6
  container: yn,
@@ -1496,22 +1496,6 @@ function zl(e, n, i) {
1496
1496
  }
1497
1497
  return l;
1498
1498
  }
1499
- function Wl(e) {
1500
- const n = e == null ? void 0 : e.border;
1501
- if (!n) return;
1502
- const i = (a) => {
1503
- const o = n[a] ?? n.all;
1504
- if (o != null && o.type)
1505
- return o;
1506
- }, l = {
1507
- top: i("top"),
1508
- right: i("right"),
1509
- bottom: i("bottom"),
1510
- left: i("left")
1511
- };
1512
- if (!(!l.top && !l.right && !l.bottom && !l.left))
1513
- return l;
1514
- }
1515
1499
  const it = ({
1516
1500
  selectedBlocks: e,
1517
1501
  onUpdateBlocks: n
@@ -1561,9 +1545,10 @@ const it = ({
1561
1545
  e,
1562
1546
  "style.backgroundColor"
1563
1547
  ), o = te(() => {
1548
+ var h;
1564
1549
  if (e.length !== 1) return;
1565
1550
  const u = e[0];
1566
- return Wl(u == null ? void 0 : u.style);
1551
+ return (h = u == null ? void 0 : u.style) == null ? void 0 : h.border;
1567
1552
  }, [e]), c = te(
1568
1553
  () => zl(o, 80, 80),
1569
1554
  [o]
@@ -1782,12 +1767,12 @@ const it = ({
1782
1767
  );
1783
1768
  };
1784
1769
  it.displayName = "BackgroundBorderPanel";
1785
- const Rl = "_container_1gf2q_1", Ol = "_grid_1gf2q_9", Fl = "_field_1gf2q_15", jl = "_label_1gf2q_22", Ul = "_inputWrapper_1gf2q_32", q = {
1786
- container: Rl,
1787
- grid: Ol,
1788
- field: Fl,
1789
- label: jl,
1790
- inputWrapper: Ul
1770
+ const Wl = "_container_1gf2q_1", Rl = "_grid_1gf2q_9", Ol = "_field_1gf2q_15", Fl = "_label_1gf2q_22", jl = "_inputWrapper_1gf2q_32", q = {
1771
+ container: Wl,
1772
+ grid: Rl,
1773
+ field: Ol,
1774
+ label: Fl,
1775
+ inputWrapper: jl
1791
1776
  }, at = ({
1792
1777
  selectedBlocks: e,
1793
1778
  onUpdateBlocks: n,
@@ -1899,10 +1884,10 @@ const Rl = "_container_1gf2q_1", Ol = "_grid_1gf2q_9", Fl = "_field_1gf2q_15", j
1899
1884
  ] }) });
1900
1885
  };
1901
1886
  at.displayName = "LayoutPanel";
1902
- const Vl = "_group_xhfvf_1", ql = "_btn_xhfvf_13", Gl = "_active_xhfvf_46", Ve = {
1903
- group: Vl,
1904
- btn: ql,
1905
- active: Gl
1887
+ const Ul = "_group_xhfvf_1", Vl = "_btn_xhfvf_13", ql = "_active_xhfvf_46", Ve = {
1888
+ group: Ul,
1889
+ btn: Vl,
1890
+ active: ql
1906
1891
  }, Ze = fe(
1907
1892
  ({ options: e, current: n, onChange: i }) => /* @__PURE__ */ t("fieldset", { className: Ve.group, children: e.map((l) => {
1908
1893
  const a = n === l.value;
@@ -2064,15 +2049,15 @@ const se = rn.defaultProps.styleConfig, re = {
2064
2049
  ] });
2065
2050
  };
2066
2051
  Dt.displayName = "CheckboxStyleEditor";
2067
- const Hl = "_group_1uyid_1", Kl = "_btn_1uyid_13", Zl = "_active_1uyid_46", Yl = "_iconBold_1uyid_52", Jl = "_iconItalic_1uyid_59", Xl = "_iconUnderline_1uyid_66", Ql = "_iconLineThrough_1uyid_73", ue = {
2068
- group: Hl,
2069
- btn: Kl,
2070
- active: Zl,
2071
- iconBold: Yl,
2072
- iconItalic: Jl,
2073
- iconUnderline: Xl,
2074
- iconLineThrough: Ql
2075
- }, ei = [
2052
+ const Gl = "_group_1uyid_1", Hl = "_btn_1uyid_13", Kl = "_active_1uyid_46", Zl = "_iconBold_1uyid_52", Yl = "_iconItalic_1uyid_59", Jl = "_iconUnderline_1uyid_66", Xl = "_iconLineThrough_1uyid_73", ue = {
2053
+ group: Gl,
2054
+ btn: Hl,
2055
+ active: Kl,
2056
+ iconBold: Zl,
2057
+ iconItalic: Yl,
2058
+ iconUnderline: Jl,
2059
+ iconLineThrough: Xl
2060
+ }, Ql = [
2076
2061
  {
2077
2062
  key: "fontWeight",
2078
2063
  label: "太字",
@@ -2101,7 +2086,7 @@ const Hl = "_group_1uyid_1", Kl = "_btn_1uyid_13", Zl = "_active_1uyid_46", Yl =
2101
2086
  const l = e ?? {}, a = (o) => {
2102
2087
  i || n({ ...l, [o]: !l[o] });
2103
2088
  };
2104
- return /* @__PURE__ */ t("fieldset", { className: ue.group, children: ei.map(({ key: o, label: c, icon: r }) => {
2089
+ return /* @__PURE__ */ t("fieldset", { className: ue.group, children: Ql.map(({ key: o, label: c, icon: r }) => {
2105
2090
  const s = !!l[o];
2106
2091
  return /* @__PURE__ */ t(
2107
2092
  "button",
@@ -2120,12 +2105,12 @@ const Hl = "_group_1uyid_1", Kl = "_btn_1uyid_13", Zl = "_active_1uyid_46", Yl =
2120
2105
  }) });
2121
2106
  };
2122
2107
  Pt.displayName = "FontDecorationToggle";
2123
- const ti = "_root_12n4v_6", ni = "_fontFamilyCell_12n4v_13", li = "_fontSizeCell_12n4v_14", ii = "_colorCell_12n4v_15", we = {
2124
- root: ti,
2125
- fontFamilyCell: ni,
2126
- fontSizeCell: li,
2127
- colorCell: ii
2128
- }, ai = [
2108
+ const ei = "_root_12n4v_6", ti = "_fontFamilyCell_12n4v_13", ni = "_fontSizeCell_12n4v_14", li = "_colorCell_12n4v_15", we = {
2109
+ root: ei,
2110
+ fontFamilyCell: ti,
2111
+ fontSizeCell: ni,
2112
+ colorCell: li
2113
+ }, ii = [
2129
2114
  { label: "ゴシック体", value: "sans-serif" },
2130
2115
  { label: "明朝体", value: "serif" },
2131
2116
  { label: "等幅", value: "monospace" },
@@ -2167,7 +2152,7 @@ const ti = "_root_12n4v_6", ni = "_fontFamilyCell_12n4v_13", li = "_fontSizeCell
2167
2152
  value: l.fontFamily,
2168
2153
  onChange: a,
2169
2154
  readOnly: i,
2170
- options: ai,
2155
+ options: ii,
2171
2156
  placeholder: "フォント"
2172
2157
  }
2173
2158
  ) }),
@@ -2450,14 +2435,14 @@ const zt = ({
2450
2435
  ] });
2451
2436
  };
2452
2437
  zt.displayName = "OptionsEditor";
2453
- const oi = "_root_111zo_7", si = "_linkLabel_111zo_14", ri = "_allRow_111zo_31", ci = "_grid_111zo_38", di = "_sideRow_111zo_45", hi = "_cell_111zo_53", ui = "_spacer_111zo_59", Q = {
2454
- root: oi,
2455
- linkLabel: si,
2456
- allRow: ri,
2457
- grid: ci,
2458
- sideRow: di,
2459
- cell: hi,
2460
- spacer: ui
2438
+ const ai = "_root_111zo_7", oi = "_linkLabel_111zo_14", si = "_allRow_111zo_31", ri = "_grid_111zo_38", ci = "_sideRow_111zo_45", di = "_cell_111zo_53", hi = "_spacer_111zo_59", Q = {
2439
+ root: ai,
2440
+ linkLabel: oi,
2441
+ allRow: si,
2442
+ grid: ri,
2443
+ sideRow: ci,
2444
+ cell: di,
2445
+ spacer: hi
2461
2446
  }, Wt = ({
2462
2447
  bulk: e,
2463
2448
  onChange: n,
@@ -2584,7 +2569,7 @@ const ee = { value: 0, unit: "px" }, Rt = ({
2584
2569
  ] });
2585
2570
  };
2586
2571
  Rt.displayName = "PaddingEditor";
2587
- const Ne = hn.defaultProps, pi = [
2572
+ const Ne = hn.defaultProps, ui = [
2588
2573
  { label: "標準", value: Re.normal },
2589
2574
  { label: "単語で折り返し", value: Re.breakWord },
2590
2575
  { label: "文字で折り返し", value: Re.breakAll }
@@ -2639,7 +2624,7 @@ const Ne = hn.defaultProps, pi = [
2639
2624
  {
2640
2625
  value: i ?? Ne.wordWrap,
2641
2626
  onChange: (o) => l("wordWrap", o ?? Ne.wordWrap),
2642
- options: pi,
2627
+ options: ui,
2643
2628
  readOnly: a,
2644
2629
  height: 24
2645
2630
  }
@@ -2685,10 +2670,10 @@ const Me = [
2685
2670
  hideLength: !0
2686
2671
  },
2687
2672
  { label: "その他", inputType: "text", isCustom: !0 }
2688
- ], mi = Me.map((e) => ({
2673
+ ], pi = Me.map((e) => ({
2689
2674
  label: e.label,
2690
2675
  value: e.label
2691
- })), bi = `[0-9] 数字のみ
2676
+ })), mi = `[0-9] 数字のみ
2692
2677
  [a-z] 英小文字
2693
2678
  [A-Z] 英大文字
2694
2679
  [ぁ-ん] ひらがな
@@ -2750,7 +2735,7 @@ const Me = [
2750
2735
  {
2751
2736
  value: _,
2752
2737
  onChange: k,
2753
- options: mi,
2738
+ options: pi,
2754
2739
  readOnly: c,
2755
2740
  height: 24
2756
2741
  }
@@ -2867,7 +2852,7 @@ const Me = [
2867
2852
  whiteSpace: "pre",
2868
2853
  pointerEvents: "none"
2869
2854
  },
2870
- children: bi
2855
+ children: mi
2871
2856
  }
2872
2857
  ),
2873
2858
  document.body
@@ -2885,7 +2870,7 @@ const jt = {
2885
2870
  textBehavior: "テキスト動作",
2886
2871
  selectConfig: "選択肢設定",
2887
2872
  checkboxStyle: "チェックボックスデザイン"
2888
- }, vi = [
2873
+ }, bi = [
2889
2874
  {
2890
2875
  value: Ee.left,
2891
2876
  label: "左揃え",
@@ -2916,7 +2901,7 @@ const jt = {
2916
2901
  /* @__PURE__ */ t("rect", { x: "5", y: "11", width: "7", height: "2.5", rx: "0.5" })
2917
2902
  ] })
2918
2903
  }
2919
- ], fi = [
2904
+ ], vi = [
2920
2905
  {
2921
2906
  value: Ae.top,
2922
2907
  label: "上揃え",
@@ -2948,7 +2933,7 @@ const jt = {
2948
2933
  function me(e) {
2949
2934
  return typeof e == "object" && e !== null && typeof e.value == "number" && typeof e.unit == "string";
2950
2935
  }
2951
- function gi(e) {
2936
+ function fi(e) {
2952
2937
  return typeof e == "object" && e !== null && Array.isArray(e.options);
2953
2938
  }
2954
2939
  const ot = fe(
@@ -2977,7 +2962,7 @@ const ot = fe(
2977
2962
  /* @__PURE__ */ t(
2978
2963
  Ze,
2979
2964
  {
2980
- options: vi,
2965
+ options: bi,
2981
2966
  current: r,
2982
2967
  onChange: (d) => l("horizontal", d)
2983
2968
  }
@@ -2985,7 +2970,7 @@ const ot = fe(
2985
2970
  /* @__PURE__ */ t(
2986
2971
  Ze,
2987
2972
  {
2988
- options: fi,
2973
+ options: vi,
2989
2974
  current: s,
2990
2975
  onChange: (d) => l("vertical", d)
2991
2976
  }
@@ -3095,7 +3080,7 @@ const ot = fe(
3095
3080
  );
3096
3081
  }
3097
3082
  case "selectConfig": {
3098
- const r = i("selectConfig"), s = gi(r) ? r : { options: [] };
3083
+ const r = i("selectConfig"), s = fi(r) ? r : { options: [] };
3099
3084
  return /* @__PURE__ */ t(
3100
3085
  zt,
3101
3086
  {
@@ -3239,11 +3224,11 @@ const st = ({
3239
3224
  return c.properties.length === 0 ? null : a ? /* @__PURE__ */ t(V, { title: c.meta.displayName, children: u }) : /* @__PURE__ */ t("div", { children: u });
3240
3225
  };
3241
3226
  st.displayName = "PluginPanels";
3242
- const yi = "_bar_13lr1_4", _i = "_divider_13lr1_18", xi = "_barWrapper_13lr1_26", wi = "_popover_13lr1_31", Ie = {
3243
- bar: yi,
3244
- divider: _i,
3245
- barWrapper: xi,
3246
- popover: wi
3227
+ const gi = "_bar_13lr1_4", yi = "_divider_13lr1_18", _i = "_barWrapper_13lr1_26", xi = "_popover_13lr1_31", Ie = {
3228
+ bar: gi,
3229
+ divider: yi,
3230
+ barWrapper: _i,
3231
+ popover: xi
3247
3232
  }, ve = ({
3248
3233
  icon: e,
3249
3234
  label: n,
@@ -3265,7 +3250,7 @@ const yi = "_bar_13lr1_4", _i = "_divider_13lr1_18", xi = "_barWrapper_13lr1_26"
3265
3250
  );
3266
3251
  ve.displayName = "SelectionActionBarButton";
3267
3252
  const Vt = gt(null);
3268
- function Ni() {
3253
+ function wi() {
3269
3254
  const e = Pe(Vt);
3270
3255
  if (e === null)
3271
3256
  throw new Error(
@@ -3273,7 +3258,7 @@ function Ni() {
3273
3258
  );
3274
3259
  return e;
3275
3260
  }
3276
- const Ci = ({
3261
+ const Ni = ({
3277
3262
  items: e = [],
3278
3263
  className: n,
3279
3264
  style: i,
@@ -3343,7 +3328,7 @@ const Ci = ({
3343
3328
  }
3344
3329
  );
3345
3330
  };
3346
- Ci.displayName = "SelectionActionBar";
3331
+ Ni.displayName = "SelectionActionBar";
3347
3332
  const De = ({
3348
3333
  id: e,
3349
3334
  icon: n,
@@ -3356,7 +3341,7 @@ const De = ({
3356
3341
  openPanelByClick: c,
3357
3342
  onPointerDown: r,
3358
3343
  wrapperEl: s
3359
- } = Ni();
3344
+ } = wi();
3360
3345
  return /* @__PURE__ */ p(oe, { children: [
3361
3346
  /* @__PURE__ */ t(
3362
3347
  ve,
@@ -3382,7 +3367,7 @@ const De = ({
3382
3367
  ] });
3383
3368
  };
3384
3369
  De.displayName = "SelectionActionBarPanel";
3385
- function Fa({
3370
+ function Oa({
3386
3371
  context: e,
3387
3372
  gridSize: n,
3388
3373
  onActionFeedback: i
@@ -3505,7 +3490,7 @@ function Fa({
3505
3490
  )
3506
3491
  ), g;
3507
3492
  }
3508
- const pt = 8, Si = 36, ja = ({
3493
+ const pt = 8, Ci = 36, Fa = ({
3509
3494
  selectionBoundingBox: e,
3510
3495
  isDragging: n,
3511
3496
  zIndex: i = yt.SELECTION_ACTION_BAR,
@@ -3513,7 +3498,7 @@ const pt = 8, Si = 36, ja = ({
3513
3498
  }) => {
3514
3499
  if (e == null || n)
3515
3500
  return null;
3516
- const a = e, o = a.top - pt - Si, c = o >= 0 ? o : a.bottom + pt, r = {
3501
+ const a = e, o = a.top - pt - Ci, c = o >= 0 ? o : a.bottom + pt, r = {
3517
3502
  position: "absolute",
3518
3503
  inset: 0,
3519
3504
  pointerEvents: "none",
@@ -3544,7 +3529,7 @@ const pt = 8, Si = 36, ja = ({
3544
3529
  }
3545
3530
  );
3546
3531
  };
3547
- function Ua(e, n) {
3532
+ function ja(e, n) {
3548
3533
  const [i, l] = O(null);
3549
3534
  return pe(() => {
3550
3535
  if (n.length === 0) {
@@ -3581,12 +3566,12 @@ function Ua(e, n) {
3581
3566
  return () => cancelAnimationFrame(a);
3582
3567
  }, [e, n]), i;
3583
3568
  }
3584
- const Ii = "_container_3lvww_1", $i = "_row_3lvww_9", Li = "_label_3lvww_15", ki = "_inputWrapper_3lvww_24", Ti = "_error_3lvww_31", X = {
3585
- container: Ii,
3586
- row: $i,
3587
- label: Li,
3588
- inputWrapper: ki,
3589
- error: Ti
3569
+ const Si = "_container_3lvww_1", Ii = "_row_3lvww_9", $i = "_label_3lvww_15", Li = "_inputWrapper_3lvww_24", ki = "_error_3lvww_31", X = {
3570
+ container: Si,
3571
+ row: Ii,
3572
+ label: $i,
3573
+ inputWrapper: Li,
3574
+ error: ki
3590
3575
  };
3591
3576
  function mt(e, n, i) {
3592
3577
  const l = e.trim();
@@ -3681,16 +3666,16 @@ const qt = ({
3681
3666
  ] });
3682
3667
  };
3683
3668
  qt.displayName = "MetaPanel";
3684
- const Ei = "_container_2zb6l_1", Ai = "_scrollArea_2zb6l_18", Mi = "_emptyState_2zb6l_33", Ye = {
3685
- container: Ei,
3686
- scrollArea: Ai,
3687
- emptyState: Mi
3669
+ const Ti = "_container_2zb6l_1", Ei = "_scrollArea_2zb6l_18", Ai = "_emptyState_2zb6l_33", Ye = {
3670
+ container: Ti,
3671
+ scrollArea: Ei,
3672
+ emptyState: Ai
3688
3673
  }, Je = ({
3689
3674
  children: e,
3690
3675
  className: n = ""
3691
3676
  }) => /* @__PURE__ */ t("div", { className: `${Ye.container}${n ? ` ${n}` : ""}`, children: e });
3692
3677
  Je.displayName = "BlockPropertyPanel";
3693
- const Di = fe(
3678
+ const Mi = fe(
3694
3679
  ({ context: e, gridSize: n, className: i = "" }) => {
3695
3680
  const { pluginRegistry: l, actionContext: a } = e, o = e.editorState.pageIdx, c = e.book.pages[o], r = e.editorState.selectedBlockIds ?? [], s = (c == null ? void 0 : c.blocks.filter((g) => r.includes(g.id))) ?? [], d = c == null ? void 0 : c.blockDefaults, u = (g, _) => a.execute("updateBlocks", { updates: g, options: _ }), h = new Set((c == null ? void 0 : c.blocks.map((g) => g.id)) ?? []), f = s[0], v = f ? l[f.kind] : void 0, m = te(() => {
3696
3681
  var _;
@@ -3759,13 +3744,13 @@ const Di = fe(
3759
3744
  ] }) });
3760
3745
  }
3761
3746
  );
3762
- Di.displayName = "DefaultBlockPropertyPanel";
3763
- const Pi = "_kindSelector_qrad9_1", Bi = "_kindTab_qrad9_9", zi = "_kindTabActive_qrad9_30", Wi = "_propertyList_qrad9_46", Ri = "_emptyState_qrad9_131", be = {
3764
- kindSelector: Pi,
3765
- kindTab: Bi,
3766
- kindTabActive: zi,
3767
- propertyList: Wi,
3768
- emptyState: Ri
3747
+ Mi.displayName = "DefaultBlockPropertyPanel";
3748
+ const Di = "_kindSelector_qrad9_1", Pi = "_kindTab_qrad9_9", Bi = "_kindTabActive_qrad9_30", zi = "_propertyList_qrad9_46", Wi = "_emptyState_qrad9_131", be = {
3749
+ kindSelector: Di,
3750
+ kindTab: Pi,
3751
+ kindTabActive: Bi,
3752
+ propertyList: zi,
3753
+ emptyState: Wi
3769
3754
  }, Gt = fe(
3770
3755
  ({
3771
3756
  propDef: e,
@@ -3855,19 +3840,19 @@ const Ht = fe(
3855
3840
  }
3856
3841
  );
3857
3842
  Ht.displayName = "BlockDefaultsPanel";
3858
- const Oi = "_list_12dfx_10", Fi = "_item_12dfx_19", ji = "_selected_12dfx_41", Ui = "_dragHandle_12dfx_46", Vi = "_ghost_12dfx_57", qi = "_itemInfo_12dfx_68", Gi = "_itemId_12dfx_75", Hi = "_itemMeta_12dfx_80", Ki = "_itemKind_12dfx_87", Zi = "_itemActions_12dfx_95", Yi = "_actionButton_12dfx_100", Ji = "_empty_12dfx_136", U = {
3859
- list: Oi,
3860
- item: Fi,
3861
- selected: ji,
3862
- dragHandle: Ui,
3863
- ghost: Vi,
3864
- itemInfo: qi,
3865
- itemId: Gi,
3866
- itemMeta: Hi,
3867
- itemKind: Ki,
3868
- itemActions: Zi,
3869
- actionButton: Yi,
3870
- empty: Ji
3843
+ const Ri = "_list_12dfx_10", Oi = "_item_12dfx_19", Fi = "_selected_12dfx_41", ji = "_dragHandle_12dfx_46", Ui = "_ghost_12dfx_57", Vi = "_itemInfo_12dfx_68", qi = "_itemId_12dfx_75", Gi = "_itemMeta_12dfx_80", Hi = "_itemKind_12dfx_87", Ki = "_itemActions_12dfx_95", Zi = "_actionButton_12dfx_100", Yi = "_empty_12dfx_136", U = {
3844
+ list: Ri,
3845
+ item: Oi,
3846
+ selected: Fi,
3847
+ dragHandle: ji,
3848
+ ghost: Ui,
3849
+ itemInfo: Vi,
3850
+ itemId: qi,
3851
+ itemMeta: Gi,
3852
+ itemKind: Hi,
3853
+ itemActions: Ki,
3854
+ actionButton: Zi,
3855
+ empty: Yi
3871
3856
  }, Kt = ({
3872
3857
  blocks: e,
3873
3858
  onBlocksChange: n,
@@ -4104,10 +4089,10 @@ const Oi = "_list_12dfx_10", Fi = "_item_12dfx_19", ji = "_selected_12dfx_41", U
4104
4089
  );
4105
4090
  };
4106
4091
  Kt.displayName = "BlockOrderPanel";
4107
- const Xi = "_container_1x0zd_4", Qi = "_group_1x0zd_16", ea = "_divider_1x0zd_22", Te = {
4108
- container: Xi,
4109
- group: Qi,
4110
- divider: ea
4092
+ const Ji = "_container_1x0zd_4", Xi = "_group_1x0zd_16", Qi = "_divider_1x0zd_22", Te = {
4093
+ container: Ji,
4094
+ group: Xi,
4095
+ divider: Qi
4111
4096
  }, Zt = ({
4112
4097
  context: e,
4113
4098
  onActionFeedback: n
@@ -4188,11 +4173,11 @@ const Xi = "_container_1x0zd_4", Qi = "_group_1x0zd_16", ea = "_divider_1x0zd_22
4188
4173
  Zt.displayName = "CanvasActionPanel";
4189
4174
  const Yt = ({ children: e, className: n }) => /* @__PURE__ */ t(Mt, { className: n, children: e });
4190
4175
  Yt.displayName = "CanvasPanel";
4191
- const ta = "_field_69k7e_6", na = "_horizontal_69k7e_12", la = "_label_69k7e_18", ia = "_gridSizeRow_69k7e_29", de = {
4192
- field: ta,
4193
- horizontal: na,
4194
- label: la,
4195
- gridSizeRow: ia
4176
+ const ea = "_field_69k7e_6", ta = "_horizontal_69k7e_12", na = "_label_69k7e_18", la = "_gridSizeRow_69k7e_29", de = {
4177
+ field: ea,
4178
+ horizontal: ta,
4179
+ label: na,
4180
+ gridSizeRow: la
4196
4181
  }, bt = { value: 1, unit: "fr" }, Jt = ({ grid: e, onGridChange: n }) => {
4197
4182
  const i = y(
4198
4183
  (a) => {
@@ -4258,17 +4243,17 @@ const ta = "_field_69k7e_6", na = "_horizontal_69k7e_12", la = "_label_69k7e_18"
4258
4243
  );
4259
4244
  };
4260
4245
  Jt.displayName = "GridSizePanel";
4261
- const aa = "_topRow_2ni80_6", oa = "_linkSwitch_2ni80_15", sa = "_switchLabel_2ni80_23", ra = "_switchLabelActive_2ni80_31", ca = "_toggle_2ni80_35", da = "_thumb_2ni80_52", ha = "_topCell_2ni80_70", ua = "_sideCell_2ni80_75", pa = "_bottomCell_2ni80_81", ma = "_sideMargins_2ni80_88", H = {
4262
- topRow: aa,
4263
- linkSwitch: oa,
4264
- switchLabel: sa,
4265
- switchLabelActive: ra,
4266
- toggle: ca,
4267
- thumb: da,
4268
- topCell: ha,
4269
- sideCell: ua,
4270
- bottomCell: pa,
4271
- sideMargins: ma
4246
+ const ia = "_topRow_2ni80_6", aa = "_linkSwitch_2ni80_15", oa = "_switchLabel_2ni80_23", sa = "_switchLabelActive_2ni80_31", ra = "_toggle_2ni80_35", ca = "_thumb_2ni80_52", da = "_topCell_2ni80_70", ha = "_sideCell_2ni80_75", ua = "_bottomCell_2ni80_81", pa = "_sideMargins_2ni80_88", H = {
4247
+ topRow: ia,
4248
+ linkSwitch: aa,
4249
+ switchLabel: oa,
4250
+ switchLabelActive: sa,
4251
+ toggle: ra,
4252
+ thumb: ca,
4253
+ topCell: da,
4254
+ sideCell: ha,
4255
+ bottomCell: ua,
4256
+ sideMargins: pa
4272
4257
  }, Xt = ({ paper: e, onPaperChange: n }) => {
4273
4258
  const [i, l] = O(!1), a = y(
4274
4259
  (s) => {
@@ -4408,18 +4393,18 @@ const aa = "_topRow_2ni80_6", oa = "_linkSwitch_2ni80_15", sa = "_switchLabel_2n
4408
4393
  );
4409
4394
  };
4410
4395
  Xt.displayName = "MarginPanel";
4411
- const ba = "_grid_ddemj_5", va = "_colSpan2_ddemj_13", fa = "_colSpan3_ddemj_18", ga = "_label_ddemj_23", ya = "_modeLabel_ddemj_32", _a = "_modeToggle_ddemj_40", xa = "_switchLabel_ddemj_47", wa = "_switchLabelActive_ddemj_55", Na = "_toggle_ddemj_59", Ca = "_thumb_ddemj_76", Sa = "_checkboxCell_ddemj_92", M = {
4412
- grid: ba,
4413
- colSpan2: va,
4414
- colSpan3: fa,
4415
- label: ga,
4416
- modeLabel: ya,
4417
- modeToggle: _a,
4418
- switchLabel: xa,
4419
- switchLabelActive: wa,
4420
- toggle: Na,
4421
- thumb: Ca,
4422
- checkboxCell: Sa
4396
+ const ma = "_grid_ddemj_5", ba = "_colSpan2_ddemj_13", va = "_colSpan3_ddemj_18", fa = "_label_ddemj_23", ga = "_modeLabel_ddemj_32", ya = "_modeToggle_ddemj_40", _a = "_switchLabel_ddemj_47", xa = "_switchLabelActive_ddemj_55", wa = "_toggle_ddemj_59", Na = "_thumb_ddemj_76", Ca = "_checkboxCell_ddemj_92", M = {
4397
+ grid: ma,
4398
+ colSpan2: ba,
4399
+ colSpan3: va,
4400
+ label: fa,
4401
+ modeLabel: ga,
4402
+ modeToggle: ya,
4403
+ switchLabel: _a,
4404
+ switchLabelActive: xa,
4405
+ toggle: wa,
4406
+ thumb: Na,
4407
+ checkboxCell: Ca
4423
4408
  };
4424
4409
  function vt(e, n) {
4425
4410
  switch (n) {
@@ -4600,7 +4585,7 @@ const Qt = ({
4600
4585
  );
4601
4586
  };
4602
4587
  Qt.displayName = "PaperSizePanel";
4603
- const Ia = ({
4588
+ const Sa = ({
4604
4589
  context: e,
4605
4590
  onBlockHover: n,
4606
4591
  onBlockDragChange: i,
@@ -4670,11 +4655,11 @@ const Ia = ({
4670
4655
  )
4671
4656
  ] });
4672
4657
  };
4673
- Ia.displayName = "DefaultCanvasPanel";
4674
- const $a = "_buttonGroup_5h1ft_1", La = "_button_5h1ft_1", ka = "_error_5h1ft_33", R = {
4675
- buttonGroup: $a,
4676
- button: La,
4677
- error: ka
4658
+ Sa.displayName = "DefaultCanvasPanel";
4659
+ const Ia = "_buttonGroup_5h1ft_1", $a = "_button_5h1ft_1", La = "_error_5h1ft_33", R = {
4660
+ buttonGroup: Ia,
4661
+ button: $a,
4662
+ error: La
4678
4663
  }, ft = (e, n) => {
4679
4664
  const i = [];
4680
4665
  for (const l of Object.keys(e))
@@ -4981,7 +4966,7 @@ const $a = "_buttonGroup_5h1ft_1", La = "_button_5h1ft_1", ka = "_error_5h1ft_33
4981
4966
  ] });
4982
4967
  };
4983
4968
  en.displayName = "ImportExportPanel";
4984
- const Ta = ({
4969
+ const ka = ({
4985
4970
  context: e,
4986
4971
  sections: n
4987
4972
  }) => {
@@ -5000,14 +4985,14 @@ const Ta = ({
5000
4985
  ];
5001
4986
  return /* @__PURE__ */ t(Mt, { children: n ?? i });
5002
4987
  };
5003
- Ta.displayName = "OtherPanel";
5004
- const Ea = "_container_16a0l_1", Aa = "_paletteItems_16a0l_11", Ma = "_item_16a0l_23", Da = "_itemName_16a0l_49", Pa = "_itemPreview_16a0l_77", Ce = {
5005
- container: Ea,
5006
- paletteItems: Aa,
5007
- item: Ma,
5008
- itemName: Da,
5009
- itemPreview: Pa
5010
- }, Ba = ({ context: e, className: n }) => {
4988
+ ka.displayName = "OtherPanel";
4989
+ const Ta = "_container_16a0l_1", Ea = "_paletteItems_16a0l_11", Aa = "_item_16a0l_23", Ma = "_itemName_16a0l_49", Da = "_itemPreview_16a0l_77", Ce = {
4990
+ container: Ta,
4991
+ paletteItems: Ea,
4992
+ item: Aa,
4993
+ itemName: Ma,
4994
+ itemPreview: Da
4995
+ }, Pa = ({ context: e, className: n }) => {
5011
4996
  const i = Object.values(e.pluginRegistry).filter(
5012
4997
  (o) => o !== void 0
5013
4998
  ), l = e.book.pages[e.editorState.pageIdx], { getBlockRectPx: a } = bn(
@@ -5032,7 +5017,7 @@ const Ea = "_container_16a0l_1", Aa = "_paletteItems_16a0l_11", Ma = "_item_16a0
5032
5017
  );
5033
5018
  }) }) });
5034
5019
  };
5035
- Ba.displayName = "PalettePanel";
5020
+ Pa.displayName = "PalettePanel";
5036
5021
  const tn = ({ plugin: e, ghostWidth: n, ghostHeight: i }) => {
5037
5022
  const l = te(() => {
5038
5023
  var c, r;
@@ -5106,21 +5091,21 @@ export {
5106
5091
  at as L,
5107
5092
  Xt as M,
5108
5093
  G as N,
5109
- Ta as O,
5094
+ ka as O,
5110
5095
  Bl as P,
5111
5096
  Mt as Q,
5112
5097
  Se as R,
5113
- ja as S,
5098
+ Fa as S,
5114
5099
  kl as T,
5115
- Ni as U,
5100
+ wi as U,
5116
5101
  An as a,
5117
5102
  Mn as b,
5118
5103
  Ml as c,
5119
- Ci as d,
5120
- Di as e,
5121
- Ba as f,
5122
- Fa as g,
5123
- Ia as h,
5104
+ Ni as d,
5105
+ Mi as e,
5106
+ Pa as f,
5107
+ Oa as g,
5108
+ Sa as h,
5124
5109
  Tl as i,
5125
5110
  _e as j,
5126
5111
  xe as k,
@@ -5133,7 +5118,7 @@ export {
5133
5118
  V as r,
5134
5119
  P as s,
5135
5120
  le as t,
5136
- Ua as u,
5121
+ ja as u,
5137
5122
  j as v,
5138
5123
  ge as w,
5139
5124
  Jt as x,