@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.
- package/dist/{PalettePanel-BMZ6dfI3.cjs → PalettePanel-0cFP3tbA.cjs} +2 -2
- package/dist/PalettePanel-0cFP3tbA.cjs.map +1 -0
- package/dist/{PalettePanel-Cigl9i1N.js → PalettePanel-N5Y1TJAk.js} +151 -166
- package/dist/PalettePanel-N5Y1TJAk.js.map +1 -0
- package/dist/canvas.cjs +1 -1
- package/dist/canvas.mjs +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +5 -5
- package/dist/{paperSettingsWidget-7766a5Fe.cjs → paperSettingsWidget-CJ4QFjYK.cjs} +1 -1
- package/dist/{paperSettingsWidget-7766a5Fe.cjs.map → paperSettingsWidget-CJ4QFjYK.cjs.map} +1 -1
- package/dist/{paperSettingsWidget-DvtghSA5.js → paperSettingsWidget-d93s3Gsr.js} +1 -1
- package/dist/{paperSettingsWidget-DvtghSA5.js.map → paperSettingsWidget-d93s3Gsr.js.map} +1 -1
- package/dist/shell.cjs +1 -1
- package/dist/shell.mjs +2 -2
- package/dist/sidebarPortal-B2Mk9Aba.js +875 -0
- package/dist/sidebarPortal-B2Mk9Aba.js.map +1 -0
- package/dist/sidebarPortal-BCIVv4yO.cjs +3 -0
- package/dist/sidebarPortal-BCIVv4yO.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/PalettePanel-BMZ6dfI3.cjs.map +0 -1
- package/dist/PalettePanel-Cigl9i1N.js.map +0 -1
- package/dist/sidebarPortal-BN6FVwaF.js +0 -870
- package/dist/sidebarPortal-BN6FVwaF.js.map +0 -1
- package/dist/sidebarPortal-Cr-dLvA_.cjs +0 -3
- package/dist/sidebarPortal-Cr-dLvA_.cjs.map +0 -1
|
@@ -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-
|
|
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
|
|
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
|
|
1786
|
-
container:
|
|
1787
|
-
grid:
|
|
1788
|
-
field:
|
|
1789
|
-
label:
|
|
1790
|
-
inputWrapper:
|
|
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
|
|
1903
|
-
group:
|
|
1904
|
-
btn:
|
|
1905
|
-
active:
|
|
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
|
|
2068
|
-
group:
|
|
2069
|
-
btn:
|
|
2070
|
-
active:
|
|
2071
|
-
iconBold:
|
|
2072
|
-
iconItalic:
|
|
2073
|
-
iconUnderline:
|
|
2074
|
-
iconLineThrough:
|
|
2075
|
-
},
|
|
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:
|
|
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
|
|
2124
|
-
root:
|
|
2125
|
-
fontFamilyCell:
|
|
2126
|
-
fontSizeCell:
|
|
2127
|
-
colorCell:
|
|
2128
|
-
},
|
|
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:
|
|
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
|
|
2454
|
-
root:
|
|
2455
|
-
linkLabel:
|
|
2456
|
-
allRow:
|
|
2457
|
-
grid:
|
|
2458
|
-
sideRow:
|
|
2459
|
-
cell:
|
|
2460
|
-
spacer:
|
|
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,
|
|
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:
|
|
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
|
-
],
|
|
2673
|
+
], pi = Me.map((e) => ({
|
|
2689
2674
|
label: e.label,
|
|
2690
2675
|
value: e.label
|
|
2691
|
-
})),
|
|
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:
|
|
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:
|
|
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
|
-
},
|
|
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
|
-
],
|
|
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
|
|
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:
|
|
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:
|
|
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 =
|
|
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
|
|
3243
|
-
bar:
|
|
3244
|
-
divider:
|
|
3245
|
-
barWrapper:
|
|
3246
|
-
popover:
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
} =
|
|
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
|
|
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,
|
|
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 -
|
|
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
|
|
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
|
|
3585
|
-
container:
|
|
3586
|
-
row:
|
|
3587
|
-
label:
|
|
3588
|
-
inputWrapper:
|
|
3589
|
-
error:
|
|
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
|
|
3685
|
-
container:
|
|
3686
|
-
scrollArea:
|
|
3687
|
-
emptyState:
|
|
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
|
|
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
|
-
|
|
3763
|
-
const
|
|
3764
|
-
kindSelector:
|
|
3765
|
-
kindTab:
|
|
3766
|
-
kindTabActive:
|
|
3767
|
-
propertyList:
|
|
3768
|
-
emptyState:
|
|
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
|
|
3859
|
-
list:
|
|
3860
|
-
item:
|
|
3861
|
-
selected:
|
|
3862
|
-
dragHandle:
|
|
3863
|
-
ghost:
|
|
3864
|
-
itemInfo:
|
|
3865
|
-
itemId:
|
|
3866
|
-
itemMeta:
|
|
3867
|
-
itemKind:
|
|
3868
|
-
itemActions:
|
|
3869
|
-
actionButton:
|
|
3870
|
-
empty:
|
|
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
|
|
4108
|
-
container:
|
|
4109
|
-
group:
|
|
4110
|
-
divider:
|
|
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
|
|
4192
|
-
field:
|
|
4193
|
-
horizontal:
|
|
4194
|
-
label:
|
|
4195
|
-
gridSizeRow:
|
|
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
|
|
4262
|
-
topRow:
|
|
4263
|
-
linkSwitch:
|
|
4264
|
-
switchLabel:
|
|
4265
|
-
switchLabelActive:
|
|
4266
|
-
toggle:
|
|
4267
|
-
thumb:
|
|
4268
|
-
topCell:
|
|
4269
|
-
sideCell:
|
|
4270
|
-
bottomCell:
|
|
4271
|
-
sideMargins:
|
|
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
|
|
4412
|
-
grid:
|
|
4413
|
-
colSpan2:
|
|
4414
|
-
colSpan3:
|
|
4415
|
-
label:
|
|
4416
|
-
modeLabel:
|
|
4417
|
-
modeToggle:
|
|
4418
|
-
switchLabel:
|
|
4419
|
-
switchLabelActive:
|
|
4420
|
-
toggle:
|
|
4421
|
-
thumb:
|
|
4422
|
-
checkboxCell:
|
|
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
|
|
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
|
-
|
|
4674
|
-
const
|
|
4675
|
-
buttonGroup:
|
|
4676
|
-
button:
|
|
4677
|
-
error:
|
|
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
|
|
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
|
-
|
|
5004
|
-
const
|
|
5005
|
-
container:
|
|
5006
|
-
paletteItems:
|
|
5007
|
-
item:
|
|
5008
|
-
itemName:
|
|
5009
|
-
itemPreview:
|
|
5010
|
-
},
|
|
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
|
-
|
|
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
|
-
|
|
5094
|
+
ka as O,
|
|
5110
5095
|
Bl as P,
|
|
5111
5096
|
Mt as Q,
|
|
5112
5097
|
Se as R,
|
|
5113
|
-
|
|
5098
|
+
Fa as S,
|
|
5114
5099
|
kl as T,
|
|
5115
|
-
|
|
5100
|
+
wi as U,
|
|
5116
5101
|
An as a,
|
|
5117
5102
|
Mn as b,
|
|
5118
5103
|
Ml as c,
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
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
|
-
|
|
5121
|
+
ja as u,
|
|
5137
5122
|
j as v,
|
|
5138
5123
|
ge as w,
|
|
5139
5124
|
Jt as x,
|