@fileverse-dev/ddoc 2.1.4-patch-13 → 2.1.4-patch-14
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/index.es.js
CHANGED
@@ -15640,7 +15640,7 @@ var Qq = { exports: {} };
|
|
15640
15640
|
})();
|
15641
15641
|
})(Qq);
|
15642
15642
|
var kfe = Qq.exports;
|
15643
|
-
const
|
15643
|
+
const Ot = /* @__PURE__ */ S2(kfe);
|
15644
15644
|
var Ag = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
15645
15645
|
function xfe(t) {
|
15646
15646
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
@@ -80214,7 +80214,7 @@ const Z5t = ({
|
|
80214
80214
|
onClick: () => {
|
80215
80215
|
i.command();
|
80216
80216
|
},
|
80217
|
-
className:
|
80217
|
+
className: Ot(
|
80218
80218
|
"flex items-center justify-between rounded-sm px-2 py-1 text-body-sm hover:color-bg-default-hover transition-all",
|
80219
80219
|
{
|
80220
80220
|
"color-bg-brand hover:color-bg-brand-hover dark:text-[#363B3F]": i.isActive()
|
@@ -80520,7 +80520,7 @@ const l8t = async (t) => {
|
|
80520
80520
|
/* @__PURE__ */ A.jsx(
|
80521
80521
|
"div",
|
80522
80522
|
{
|
80523
|
-
className:
|
80523
|
+
className: Ot(
|
80524
80524
|
"flex flex-col gap-4 w-full h-full pb-4 text-base color-text-default",
|
80525
80525
|
i
|
80526
80526
|
),
|
@@ -81838,7 +81838,7 @@ const $Q = sn(
|
|
81838
81838
|
{
|
81839
81839
|
ref: o,
|
81840
81840
|
onKeyDownCapture: v,
|
81841
|
-
className:
|
81841
|
+
className: Ot("relative", i),
|
81842
81842
|
role: "region",
|
81843
81843
|
"aria-roledescription": "carousel",
|
81844
81844
|
...s,
|
@@ -81856,7 +81856,7 @@ const eX = sn(({ className: t, ...e }, n) => {
|
|
81856
81856
|
"div",
|
81857
81857
|
{
|
81858
81858
|
ref: n,
|
81859
|
-
className:
|
81859
|
+
className: Ot(
|
81860
81860
|
"flex",
|
81861
81861
|
i === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
81862
81862
|
t
|
@@ -81875,7 +81875,7 @@ const yM = sn(
|
|
81875
81875
|
ref: n,
|
81876
81876
|
role: "group",
|
81877
81877
|
"aria-roledescription": "slide",
|
81878
|
-
className:
|
81878
|
+
className: Ot(
|
81879
81879
|
"min-w-0 shrink-0 grow-0 basis-full",
|
81880
81880
|
r === "horizontal" ? "pl-4" : "pt-4",
|
81881
81881
|
t
|
@@ -81905,7 +81905,7 @@ const tX = sn(({ index: t, className: e, ...n }, r) => {
|
|
81905
81905
|
"button",
|
81906
81906
|
{
|
81907
81907
|
ref: r,
|
81908
|
-
className:
|
81908
|
+
className: Ot(
|
81909
81909
|
"w-2 h-2 transition-colors duration-200 rounded-full",
|
81910
81910
|
f ? "bg-black" : "bg-[#E8EBEC] hover:bg-black/50",
|
81911
81911
|
e
|
@@ -81922,7 +81922,7 @@ const W8t = Me.forwardRef(({ className: t, ...e }, n) => {
|
|
81922
81922
|
"button",
|
81923
81923
|
{
|
81924
81924
|
ref: n,
|
81925
|
-
className:
|
81925
|
+
className: Ot(
|
81926
81926
|
"btn color-bg-default hover:color-bg-default-hover transition color-text-default flex items-center border-2 rounded h-9 px-4 py-2 text-sm font-medium disabled:bg-[#E8EBEC] disabled:text-[#A1AAB1]",
|
81927
81927
|
t
|
81928
81928
|
),
|
@@ -81940,7 +81940,7 @@ const Z8t = Me.forwardRef(({ className: t, ...e }, n) => {
|
|
81940
81940
|
"button",
|
81941
81941
|
{
|
81942
81942
|
ref: n,
|
81943
|
-
className:
|
81943
|
+
className: Ot(
|
81944
81944
|
"btn bg-black hover:bg-black color-text-default flex items-center border-2 rounded h-9 px-4 py-2 text-sm font-medium disabled:bg-[#E8EBEC] disabled:text-[#A1AAB1]",
|
81945
81945
|
t
|
81946
81946
|
),
|
@@ -97765,7 +97765,7 @@ const tee = async (t, e) => {
|
|
97765
97765
|
onClick: () => {
|
97766
97766
|
t.chain().focus().toggleHighlight({ color: r.color }).run(), e(Ct.NONE);
|
97767
97767
|
},
|
97768
|
-
className:
|
97768
|
+
className: Ot(
|
97769
97769
|
"w-5 rounded-full flex items-center justify-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5",
|
97770
97770
|
r.code
|
97771
97771
|
),
|
@@ -97773,7 +97773,7 @@ const tee = async (t, e) => {
|
|
97773
97773
|
Xe,
|
97774
97774
|
{
|
97775
97775
|
name: "Check",
|
97776
|
-
className:
|
97776
|
+
className: Ot(
|
97777
97777
|
"w-[14px] aspect-square",
|
97778
97778
|
t.isActive("textStyle", {
|
97779
97779
|
color: r.color
|
@@ -97808,7 +97808,7 @@ const tee = async (t, e) => {
|
|
97808
97808
|
"div",
|
97809
97809
|
{
|
97810
97810
|
ref: t,
|
97811
|
-
className:
|
97811
|
+
className: Ot(
|
97812
97812
|
"z-50 h-auto max-h-[330px] w-48 overflow-y-auto scroll-smooth color-bg-default px-1 py-2 shadow-elevation-1 transition-all rounded"
|
97813
97813
|
),
|
97814
97814
|
children: eC.map((r) => /* @__PURE__ */ A.jsx(
|
@@ -97820,7 +97820,7 @@ const tee = async (t, e) => {
|
|
97820
97820
|
style: {
|
97821
97821
|
fontFamily: r.title
|
97822
97822
|
},
|
97823
|
-
className:
|
97823
|
+
className: Ot(
|
97824
97824
|
"flex w-full items-center space-x-2 rounded px-2 py-1 text-left text-sm color-text-default transition",
|
97825
97825
|
e.isActive("textStyle", { fontFamily: r.value }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
97826
97826
|
),
|
@@ -97845,7 +97845,7 @@ const tee = async (t, e) => {
|
|
97845
97845
|
onClick: () => {
|
97846
97846
|
e == null || e.chain().focus().setTextAlign("left").run(), n(Ct.NONE);
|
97847
97847
|
},
|
97848
|
-
className:
|
97848
|
+
className: Ot(
|
97849
97849
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
97850
97850
|
e.isActive({ textAlign: "left" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
97851
97851
|
),
|
@@ -97858,7 +97858,7 @@ const tee = async (t, e) => {
|
|
97858
97858
|
onClick: () => {
|
97859
97859
|
e == null || e.chain().focus().setTextAlign("center").run(), n(Ct.NONE);
|
97860
97860
|
},
|
97861
|
-
className:
|
97861
|
+
className: Ot(
|
97862
97862
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
97863
97863
|
e.isActive({ textAlign: "center" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
97864
97864
|
),
|
@@ -97871,7 +97871,7 @@ const tee = async (t, e) => {
|
|
97871
97871
|
onClick: () => {
|
97872
97872
|
e == null || e.chain().focus().setTextAlign("right").run(), n(Ct.NONE);
|
97873
97873
|
},
|
97874
|
-
className:
|
97874
|
+
className: Ot(
|
97875
97875
|
"rounded w-8 h-8 p-1 flex justify-center items-center cursor-pointer transition",
|
97876
97876
|
e.isActive({ textAlign: "right" }) ? "color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]" : "hover:color-bg-default-hover"
|
97877
97877
|
),
|
@@ -97961,7 +97961,7 @@ const tee = async (t, e) => {
|
|
97961
97961
|
onClick: () => {
|
97962
97962
|
r.command();
|
97963
97963
|
},
|
97964
|
-
className:
|
97964
|
+
className: Ot(
|
97965
97965
|
"flex items-center justify-between w-full px-2 py-1 text-body-sm",
|
97966
97966
|
r.isActive() && "color-bg-brand hover:!bg-[#B6A02E] dark:text-[#363B3F]"
|
97967
97967
|
),
|
@@ -97991,7 +97991,7 @@ const tee = async (t, e) => {
|
|
97991
97991
|
onClick: () => {
|
97992
97992
|
t.chain().focus().setColor(r.color).run(), e(Ct.NONE);
|
97993
97993
|
},
|
97994
|
-
className:
|
97994
|
+
className: Ot(
|
97995
97995
|
"w-5 rounded-full flex justify-center items-center cursor-pointer ease-in duration-200 hover:scale-[1.05] h-5",
|
97996
97996
|
r.code
|
97997
97997
|
),
|
@@ -97999,7 +97999,7 @@ const tee = async (t, e) => {
|
|
97999
97999
|
Xe,
|
98000
98000
|
{
|
98001
98001
|
name: "Check",
|
98002
|
-
className:
|
98002
|
+
className: Ot(
|
98003
98003
|
"w-[14px] aspect-square",
|
98004
98004
|
t.isActive("textStyle", {
|
98005
98005
|
color: r.color
|
@@ -98071,7 +98071,7 @@ const tee = async (t, e) => {
|
|
98071
98071
|
"div",
|
98072
98072
|
{
|
98073
98073
|
ref: n,
|
98074
|
-
className:
|
98074
|
+
className: Ot(
|
98075
98075
|
"z-50 flex w-48 flex-col overflow-hidden rounded color-bg-default p-1 shadow-elevation-1"
|
98076
98076
|
),
|
98077
98077
|
children: r.map((i) => /* @__PURE__ */ A.jsxs(
|
@@ -98080,7 +98080,7 @@ const tee = async (t, e) => {
|
|
98080
98080
|
onClick: () => {
|
98081
98081
|
i.command(t), e(Ct.NONE);
|
98082
98082
|
},
|
98083
|
-
className:
|
98083
|
+
className: Ot(
|
98084
98084
|
"flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm color-text-default transition",
|
98085
98085
|
{
|
98086
98086
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": i.isActive(),
|
@@ -98268,7 +98268,7 @@ const tee = async (t, e) => {
|
|
98268
98268
|
"button",
|
98269
98269
|
{
|
98270
98270
|
onClick: () => c.command(t),
|
98271
|
-
className:
|
98271
|
+
className: Ot(
|
98272
98272
|
"flex w-fit items-center font-medium space-x-2 rounded p-2 text-center text-sm color-text-default transition",
|
98273
98273
|
{
|
98274
98274
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": c.isActive(),
|
@@ -98284,7 +98284,7 @@ const tee = async (t, e) => {
|
|
98284
98284
|
"button",
|
98285
98285
|
{
|
98286
98286
|
onClick: () => c.command(t),
|
98287
|
-
className:
|
98287
|
+
className: Ot(
|
98288
98288
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
98289
98289
|
{
|
98290
98290
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": c.isActive(),
|
@@ -98299,7 +98299,7 @@ const tee = async (t, e) => {
|
|
98299
98299
|
"button",
|
98300
98300
|
{
|
98301
98301
|
onClick: () => c.command(t),
|
98302
|
-
className:
|
98302
|
+
className: Ot(
|
98303
98303
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
98304
98304
|
{
|
98305
98305
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": c.isActive(),
|
@@ -98316,7 +98316,7 @@ const tee = async (t, e) => {
|
|
98316
98316
|
"button",
|
98317
98317
|
{
|
98318
98318
|
onClick: () => c.command(t),
|
98319
|
-
className:
|
98319
|
+
className: Ot(
|
98320
98320
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
98321
98321
|
{
|
98322
98322
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": c.isActive(),
|
@@ -98331,7 +98331,7 @@ const tee = async (t, e) => {
|
|
98331
98331
|
"button",
|
98332
98332
|
{
|
98333
98333
|
onClick: () => c.command(t),
|
98334
|
-
className:
|
98334
|
+
className: Ot(
|
98335
98335
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
98336
98336
|
{
|
98337
98337
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": c.isActive(),
|
@@ -98347,7 +98347,7 @@ const tee = async (t, e) => {
|
|
98347
98347
|
"button",
|
98348
98348
|
{
|
98349
98349
|
onClick: () => c.command(t),
|
98350
|
-
className:
|
98350
|
+
className: Ot(
|
98351
98351
|
"flex items-center space-x-2 rounded px-4 py-1 color-text-default transition h-9",
|
98352
98352
|
{
|
98353
98353
|
"color-bg-brand xl:hover:brightness-90 dark:text-[#363B3F]": c.isActive(),
|
@@ -98401,7 +98401,7 @@ const tee = async (t, e) => {
|
|
98401
98401
|
onClick: () => {
|
98402
98402
|
t.chain().setColor(c.color).run();
|
98403
98403
|
},
|
98404
|
-
className:
|
98404
|
+
className: Ot(
|
98405
98405
|
"w-6 h-6 mb-1 drop-shadow rounded-full flex justify-center items-center cursor-pointer transition",
|
98406
98406
|
c.code
|
98407
98407
|
),
|
@@ -98409,7 +98409,7 @@ const tee = async (t, e) => {
|
|
98409
98409
|
Xe,
|
98410
98410
|
{
|
98411
98411
|
name: "Check",
|
98412
|
-
className:
|
98412
|
+
className: Ot(
|
98413
98413
|
"w-[14px] aspect-square",
|
98414
98414
|
t.isActive("textStyle", {
|
98415
98415
|
color: c.color
|
@@ -100623,7 +100623,7 @@ const mee = sn(
|
|
100623
100623
|
className: r,
|
100624
100624
|
...i
|
100625
100625
|
}, a) => {
|
100626
|
-
const s =
|
100626
|
+
const s = Ot(
|
100627
100627
|
"color-text-default inline-flex h-full leading-none gap-0.5",
|
100628
100628
|
n ? "flex-col p-2" : "flex-row p-1 items-center",
|
100629
100629
|
r
|
@@ -100634,7 +100634,7 @@ const mee = sn(
|
|
100634
100634
|
mee.displayName = "Toolbar";
|
100635
100635
|
const pxt = sn(
|
100636
100636
|
({ horizontal: t, className: e, ...n }, r) => {
|
100637
|
-
const i =
|
100637
|
+
const i = Ot(
|
100638
100638
|
"bg-neutral-200",
|
100639
100639
|
t ? "w-full min-w-[1.5rem] h-[1px] my-1 first:mt-0 last:mt-0" : "h-full min-h-[1.5rem] w-[1px] mx-1 first:ml-0 last:mr-0",
|
100640
100640
|
e
|
@@ -114223,6 +114223,12 @@ const bLt = Cr.create({
|
|
114223
114223
|
icon: "AlignRight",
|
114224
114224
|
isActive: (t) => t.dataAlign === "end"
|
114225
114225
|
},
|
114226
|
+
{
|
114227
|
+
tooltip: "Add Caption",
|
114228
|
+
icon: "Captions",
|
114229
|
+
action: (t) => t({ showCaptionInput: !0 }),
|
114230
|
+
isActive: (t) => t.showCaptionInput === !0
|
114231
|
+
},
|
114226
114232
|
{
|
114227
114233
|
tooltip: "Delete",
|
114228
114234
|
icon: "Trash2",
|
@@ -114379,7 +114385,7 @@ const lne = ({
|
|
114379
114385
|
E2,
|
114380
114386
|
{
|
114381
114387
|
as: "article",
|
114382
|
-
className:
|
114388
|
+
className: Ot(
|
114383
114389
|
"media-node-view not-prose transition-all ease-in-out w-full",
|
114384
114390
|
V && `f-${t.attrs.dataFloat}`,
|
114385
114391
|
G && `justify-${t.attrs.dataAlign}`
|
@@ -114389,8 +114395,8 @@ const lne = ({
|
|
114389
114395
|
{
|
114390
114396
|
draggable: m,
|
114391
114397
|
"data-drag-handle": m,
|
114392
|
-
className:
|
114393
|
-
"w-fit flex flex-col
|
114398
|
+
className: Ot(
|
114399
|
+
"w-fit flex flex-col relative group transition-all ease-in-out",
|
114394
114400
|
m && "opacity-50"
|
114395
114401
|
),
|
114396
114402
|
onTouchStart: K,
|
@@ -114398,84 +114404,120 @@ const lne = ({
|
|
114398
114404
|
onTouchEnd: $,
|
114399
114405
|
onTouchCancel: $,
|
114400
114406
|
children: [
|
114401
|
-
|
114402
|
-
"
|
114403
|
-
{
|
114404
|
-
src: t.attrs.src,
|
114405
|
-
ref: d,
|
114406
|
-
className: "rounded-lg",
|
114407
|
-
alt: t.attrs.src,
|
114408
|
-
width: t.attrs.width,
|
114409
|
-
height: t.attrs.height
|
114410
|
-
}
|
114411
|
-
),
|
114412
|
-
i === "secure-img" && /* @__PURE__ */ A.jsx(
|
114413
|
-
DLt,
|
114407
|
+
/* @__PURE__ */ A.jsxs(
|
114408
|
+
"div",
|
114414
114409
|
{
|
114415
|
-
|
114416
|
-
|
114417
|
-
|
114418
|
-
|
114419
|
-
|
114420
|
-
|
114421
|
-
|
114422
|
-
|
114423
|
-
|
114410
|
+
className: Ot(
|
114411
|
+
"relative",
|
114412
|
+
t.attrs.dataAlign === "start" && "self-start",
|
114413
|
+
t.attrs.dataAlign === "center" && "self-center",
|
114414
|
+
t.attrs.dataAlign === "end" && "self-end"
|
114415
|
+
),
|
114416
|
+
children: [
|
114417
|
+
i === "img" && /* @__PURE__ */ A.jsx(
|
114418
|
+
"img",
|
114419
|
+
{
|
114420
|
+
src: t.attrs.src,
|
114421
|
+
ref: d,
|
114422
|
+
className: "rounded-lg",
|
114423
|
+
alt: t.attrs.src,
|
114424
|
+
width: t.attrs.width,
|
114425
|
+
height: t.attrs.height
|
114426
|
+
}
|
114427
|
+
),
|
114428
|
+
i === "secure-img" && /* @__PURE__ */ A.jsx(
|
114429
|
+
DLt,
|
114430
|
+
{
|
114431
|
+
encryptedKey: t.attrs.encryptedKey,
|
114432
|
+
url: t.attrs.url,
|
114433
|
+
iv: t.attrs.iv,
|
114434
|
+
privateKey: t.attrs.privateKey,
|
114435
|
+
alt: t.attrs.alt,
|
114436
|
+
className: "rounded-lg",
|
114437
|
+
width: t.attrs.width,
|
114438
|
+
height: t.attrs.height,
|
114439
|
+
ref: d
|
114440
|
+
}
|
114441
|
+
),
|
114442
|
+
i === "video" && /* @__PURE__ */ A.jsx(
|
114443
|
+
"video",
|
114444
|
+
{
|
114445
|
+
ref: d,
|
114446
|
+
className: "rounded-lg",
|
114447
|
+
controls: !0,
|
114448
|
+
width: t.attrs.width,
|
114449
|
+
height: t.attrs.height,
|
114450
|
+
children: /* @__PURE__ */ A.jsx("source", { src: t.attrs.src })
|
114451
|
+
}
|
114452
|
+
),
|
114453
|
+
i === "iframe" && /* @__PURE__ */ A.jsx(
|
114454
|
+
"iframe",
|
114455
|
+
{
|
114456
|
+
ref: d,
|
114457
|
+
className: Ot(
|
114458
|
+
"rounded-lg max-w-full",
|
114459
|
+
h && "pointer-events-none"
|
114460
|
+
),
|
114461
|
+
src: t.attrs.src,
|
114462
|
+
width: t.attrs.width,
|
114463
|
+
height: t.attrs.height
|
114464
|
+
}
|
114465
|
+
),
|
114466
|
+
!r && /* @__PURE__ */ A.jsx(
|
114467
|
+
"div",
|
114468
|
+
{
|
114469
|
+
className: "horizontal-resize-handle group-hover:bg-[#2E2E2E] group-hover:border-2 group-hover:border-[#E8EBEC]",
|
114470
|
+
title: "Resize",
|
114471
|
+
onClick: ({ clientX: oe }) => C(oe),
|
114472
|
+
onMouseDown: (oe) => R(oe),
|
114473
|
+
onMouseUp: I,
|
114474
|
+
onTouchStart: (oe) => R(oe),
|
114475
|
+
onTouchEnd: I
|
114476
|
+
}
|
114477
|
+
)
|
114478
|
+
]
|
114424
114479
|
}
|
114425
114480
|
),
|
114426
|
-
|
114427
|
-
"
|
114481
|
+
t.attrs.showCaptionInput && /* @__PURE__ */ A.jsx("div", { className: "caption-input-container", children: /* @__PURE__ */ A.jsx(
|
114482
|
+
"textarea",
|
114428
114483
|
{
|
114429
|
-
|
114430
|
-
|
114431
|
-
|
114432
|
-
|
114433
|
-
|
114434
|
-
|
114484
|
+
placeholder: "Type image caption or click at any space to close caption adding",
|
114485
|
+
value: t.attrs.caption || "",
|
114486
|
+
onChange: (oe) => {
|
114487
|
+
const ue = oe.target.value;
|
114488
|
+
ue.length <= 300 && e({ caption: ue });
|
114489
|
+
},
|
114490
|
+
onBlur: () => {
|
114491
|
+
t.attrs.caption || e({ showCaptionInput: !1 });
|
114492
|
+
},
|
114493
|
+
onInput: (oe) => {
|
114494
|
+
const ue = oe.target;
|
114495
|
+
ue.style.height = "auto", ue.style.height = `${ue.scrollHeight}px`;
|
114496
|
+
},
|
114497
|
+
autoFocus: !0,
|
114498
|
+
className: Ot("color-text-secondary resize-none", "placeholder-disabled", {
|
114499
|
+
"text-left": t.attrs.dataAlign === "start",
|
114500
|
+
"text-center": t.attrs.dataAlign === "center",
|
114501
|
+
"text-right": t.attrs.dataAlign === "end"
|
114502
|
+
})
|
114435
114503
|
}
|
114436
|
-
),
|
114437
|
-
|
114438
|
-
|
114504
|
+
) }),
|
114505
|
+
t.attrs.caption && !t.attrs.showCaptionInput && /* @__PURE__ */ A.jsx("div", { className: "caption", children: t.attrs.caption }),
|
114506
|
+
!r && /* @__PURE__ */ A.jsx("span", { className: "absolute top-2 right-2 transition-all rounded-md overflow-hidden box-border border color-border-default color-bg-default shadow-elevation-3 opacity-0 group-hover:opacity-100 flex gap-1 p-1", children: Jz.map((oe, ue) => /* @__PURE__ */ A.jsx(
|
114507
|
+
Fr,
|
114439
114508
|
{
|
114440
|
-
|
114441
|
-
|
114442
|
-
|
114443
|
-
|
114444
|
-
|
114445
|
-
src: t.attrs.src,
|
114446
|
-
width: t.attrs.width,
|
114447
|
-
height: t.attrs.height
|
114448
|
-
}
|
114449
|
-
),
|
114450
|
-
!r && /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
|
114451
|
-
/* @__PURE__ */ A.jsx(
|
114452
|
-
"div",
|
114453
|
-
{
|
114454
|
-
className: "horizontal-resize-handle group-hover:bg-[#2E2E2E] group-hover:border-2 group-hover:border-[#E8EBEC]",
|
114455
|
-
title: "Resize",
|
114456
|
-
onClick: ({ clientX: oe }) => C(oe),
|
114457
|
-
onMouseDown: (oe) => R(oe),
|
114458
|
-
onMouseUp: I,
|
114459
|
-
onTouchStart: (oe) => R(oe),
|
114460
|
-
onTouchEnd: I
|
114461
|
-
}
|
114462
|
-
),
|
114463
|
-
/* @__PURE__ */ A.jsx("span", { className: "absolute top-2 right-2 transition-all rounded-md overflow-hidden box-border border color-border-default color-bg-default shadow-elevation-3 opacity-0 group-hover:opacity-100 flex gap-1 p-1", children: Jz.map((oe, ue) => /* @__PURE__ */ A.jsx(
|
114464
|
-
Fr,
|
114465
|
-
{
|
114466
|
-
tooltip: oe.tooltip,
|
114467
|
-
isActive: u[oe.tooltip],
|
114468
|
-
onClick: () => {
|
114469
|
-
var ie;
|
114470
|
-
return oe.tooltip === "Delete" ? n() : (ie = oe.action) == null ? void 0 : ie.call(oe, e);
|
114471
|
-
},
|
114472
|
-
icon: oe.icon,
|
114473
|
-
classNames: "min-w-6 aspect-square",
|
114474
|
-
size: "sm"
|
114509
|
+
tooltip: oe.tooltip,
|
114510
|
+
isActive: u[oe.tooltip],
|
114511
|
+
onClick: () => {
|
114512
|
+
var ie;
|
114513
|
+
return oe.tooltip === "Delete" ? n() : (ie = oe.action) == null ? void 0 : ie.call(oe, e);
|
114475
114514
|
},
|
114476
|
-
|
114477
|
-
|
114478
|
-
|
114515
|
+
icon: oe.icon,
|
114516
|
+
classNames: "min-w-6 aspect-square",
|
114517
|
+
size: "sm"
|
114518
|
+
},
|
114519
|
+
ue
|
114520
|
+
)) })
|
114479
114521
|
]
|
114480
114522
|
}
|
114481
114523
|
)
|
@@ -120172,7 +120214,7 @@ const $Nt = [
|
|
120172
120214
|
"label",
|
120173
120215
|
{
|
120174
120216
|
tabIndex: 0,
|
120175
|
-
className:
|
120217
|
+
className: Ot("trigger-button", { hidden: s }),
|
120176
120218
|
contentEditable: !1,
|
120177
120219
|
children: /* @__PURE__ */ A.jsx(
|
120178
120220
|
Xe,
|
@@ -131309,17 +131351,17 @@ T(D, ee, fe, "Z", "ℤ");
|
|
131309
131351
|
T(Fe, ee, fe, "Z", "ℤ");
|
131310
131352
|
T(D, H, jt, "h", "ℎ");
|
131311
131353
|
T(Fe, H, jt, "h", "ℎ");
|
131312
|
-
var
|
131354
|
+
var zt = "";
|
131313
131355
|
for (var Di = 0; Di < N8.length; Di++) {
|
131314
131356
|
var cr = N8.charAt(Di);
|
131315
|
-
|
131357
|
+
zt = String.fromCharCode(55349, 56320 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt), zt = String.fromCharCode(55349, 56372 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt), zt = String.fromCharCode(55349, 56424 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt), zt = String.fromCharCode(55349, 56580 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt), zt = String.fromCharCode(55349, 56684 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt), zt = String.fromCharCode(55349, 56736 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt), zt = String.fromCharCode(55349, 56788 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt), zt = String.fromCharCode(55349, 56840 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt), zt = String.fromCharCode(55349, 56944 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt), Di < 26 && (zt = String.fromCharCode(55349, 56632 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt), zt = String.fromCharCode(55349, 56476 + Di), T(D, H, jt, cr, zt), T(Fe, H, fe, cr, zt));
|
131316
131358
|
}
|
131317
|
-
|
131318
|
-
T(D, H, jt, "k",
|
131319
|
-
T(Fe, H, fe, "k",
|
131359
|
+
zt = "𝕜";
|
131360
|
+
T(D, H, jt, "k", zt);
|
131361
|
+
T(Fe, H, fe, "k", zt);
|
131320
131362
|
for (var O0 = 0; O0 < 10; O0++) {
|
131321
131363
|
var Zc = O0.toString();
|
131322
|
-
|
131364
|
+
zt = String.fromCharCode(55349, 57294 + O0), T(D, H, jt, Zc, zt), T(Fe, H, fe, Zc, zt), zt = String.fromCharCode(55349, 57314 + O0), T(D, H, jt, Zc, zt), T(Fe, H, fe, Zc, zt), zt = String.fromCharCode(55349, 57324 + O0), T(D, H, jt, Zc, zt), T(Fe, H, fe, Zc, zt), zt = String.fromCharCode(55349, 57334 + O0), T(D, H, jt, Zc, zt), T(Fe, H, fe, Zc, zt);
|
131323
131365
|
}
|
131324
131366
|
var tA = "ÐÞþ";
|
131325
131367
|
for (var sk = 0; sk < tA.length; sk++) {
|
@@ -139965,18 +140007,12 @@ const GFt = Cr.create({
|
|
139965
140007
|
default: null
|
139966
140008
|
// 'left' | 'right'
|
139967
140009
|
},
|
139968
|
-
encryptedKey: {
|
139969
|
-
|
139970
|
-
},
|
139971
|
-
|
139972
|
-
|
139973
|
-
}
|
139974
|
-
iv: {
|
139975
|
-
default: null
|
139976
|
-
},
|
139977
|
-
privateKey: {
|
139978
|
-
default: null
|
139979
|
-
}
|
140010
|
+
encryptedKey: { default: null },
|
140011
|
+
url: { default: null },
|
140012
|
+
iv: { default: null },
|
140013
|
+
privateKey: { default: null },
|
140014
|
+
caption: { default: null },
|
140015
|
+
showCaptionInput: { default: !1 }
|
139980
140016
|
// TODO: For figure caption later
|
139981
140017
|
// caption: {
|
139982
140018
|
// default: null,
|
@@ -141120,7 +141156,7 @@ const l_t = cn.create({
|
|
141120
141156
|
return /* @__PURE__ */ A.jsxs(
|
141121
141157
|
E2,
|
141122
141158
|
{
|
141123
|
-
className:
|
141159
|
+
className: Ot(
|
141124
141160
|
"flex relative opacity-0 hover:opacity-100 transition-opacity duration-200 w-full h-full justify-center items-center"
|
141125
141161
|
),
|
141126
141162
|
children: [
|
@@ -147683,7 +147719,7 @@ const LWt = ({
|
|
147683
147719
|
{
|
147684
147720
|
className: ke(
|
147685
147721
|
"w-full color-bg-default rounded-lg overflow-hidden relative",
|
147686
|
-
n ? "h-full max-w-none flex items-start justify-
|
147722
|
+
n ? "h-full max-w-none flex items-start justify-start" : "px-8 md:px-0 scale-[0.35] md:scale-[0.75] xl:scale-100 min-w-[1080px] max-w-[1080px] aspect-video py-[48px]"
|
147687
147723
|
),
|
147688
147724
|
style: {
|
147689
147725
|
transformOrigin: "center"
|
@@ -148144,7 +148180,7 @@ const LWt = ({
|
|
148144
148180
|
onOpenChange: e,
|
148145
148181
|
noOverlay: !0,
|
148146
148182
|
side: "right",
|
148147
|
-
className:
|
148183
|
+
className: Ot(
|
148148
148184
|
"p-0 !w-screen md:!w-[384px] !z-50 !color-bg-default",
|
148149
148185
|
!l && "!h-screen"
|
148150
148186
|
),
|
@@ -148181,7 +148217,7 @@ const LWt = ({
|
|
148181
148217
|
side: "right",
|
148182
148218
|
rounded: !0,
|
148183
148219
|
dismissible: !0,
|
148184
|
-
className:
|
148220
|
+
className: Ot(
|
148185
148221
|
"w-[calc(100vw-24px)] !z-40 md:w-[384px] right-0 shadow-elevation-4 rounded-lg border color-border-default",
|
148186
148222
|
t && "right-2 md:!right-4",
|
148187
148223
|
n ? `h-[calc(98vh-140px)] ${a ? "top-[4rem]" : "top-[7.25rem] "}` : "top-[4rem] h-[calc(100vh-90px)] xl:h-[calc(99vh-90px)]",
|
@@ -148394,14 +148430,14 @@ const LWt = ({
|
|
148394
148430
|
hasCloseIcon: !0,
|
148395
148431
|
content: /* @__PURE__ */ A.jsxs(Me.Fragment, { children: [
|
148396
148432
|
/* @__PURE__ */ A.jsx("div", { className: "flex justify-between items-center p-4", children: /* @__PURE__ */ A.jsx("h2", { className: "text-heading-sm-bold", children: "Document outline" }) }),
|
148397
|
-
/* @__PURE__ */ A.jsx("div", { className:
|
148433
|
+
/* @__PURE__ */ A.jsx("div", { className: Ot("table-of-contents px-4"), children: /* @__PURE__ */ A.jsx(E_, { editor: t, items: n, setItems: r }) })
|
148398
148434
|
] })
|
148399
148435
|
},
|
148400
148436
|
"mobile-toc"
|
148401
148437
|
) : /* @__PURE__ */ A.jsxs(
|
148402
148438
|
"div",
|
148403
148439
|
{
|
148404
|
-
className:
|
148440
|
+
className: Ot(
|
148405
148441
|
"flex flex-col gap-4 items-start justify-start absolute left-4",
|
148406
148442
|
(!e || l) && "hidden",
|
148407
148443
|
s ? "top-[4rem]" : "top-[7.3rem]"
|
@@ -148427,7 +148463,7 @@ const LWt = ({
|
|
148427
148463
|
/* @__PURE__ */ A.jsx(
|
148428
148464
|
"div",
|
148429
148465
|
{
|
148430
|
-
className:
|
148466
|
+
className: Ot(
|
148431
148467
|
"table-of-contents animate-in fade-in slide-in-from-left-5",
|
148432
148468
|
i ? "block" : "hidden"
|
148433
148469
|
),
|
@@ -148632,7 +148668,7 @@ const LWt = ({
|
|
148632
148668
|
"div",
|
148633
148669
|
{
|
148634
148670
|
id: "editor-canvas",
|
148635
|
-
className:
|
148671
|
+
className: Ot(
|
148636
148672
|
"h-[100vh] w-full custom-scrollbar",
|
148637
148673
|
{
|
148638
148674
|
"overflow-x-hidden": V !== "2",
|
@@ -148646,7 +148682,7 @@ const LWt = ({
|
|
148646
148682
|
"nav",
|
148647
148683
|
{
|
148648
148684
|
id: "Navbar",
|
148649
|
-
className:
|
148685
|
+
className: Ot(
|
148650
148686
|
"h-14 color-bg-default py-2 px-4 flex gap-2 items-center justify-between w-screen fixed left-0 top-0 border-b color-border-default z-50 transition-transform duration-300",
|
148651
148687
|
{
|
148652
148688
|
"translate-y-0": K,
|
@@ -148686,7 +148722,7 @@ const LWt = ({
|
|
148686
148722
|
"div",
|
148687
148723
|
{
|
148688
148724
|
id: "toolbar",
|
148689
|
-
className:
|
148725
|
+
className: Ot(
|
148690
148726
|
"z-50 hidden xl:flex items-center justify-center w-full h-[52px] fixed left-0 color-bg-default border-b color-border-default transition-transform duration-300 top-[3.5rem]",
|
148691
148727
|
{
|
148692
148728
|
"translate-y-0": K,
|
@@ -148742,7 +148778,7 @@ const LWt = ({
|
|
148742
148778
|
/* @__PURE__ */ A.jsxs(
|
148743
148779
|
"div",
|
148744
148780
|
{
|
148745
|
-
className:
|
148781
|
+
className: Ot(
|
148746
148782
|
"color-bg-default w-full mx-auto rounded",
|
148747
148783
|
{ "mt-4 md:!mt-16 !py-20": t && !vt },
|
148748
148784
|
{ "md:!mt-16": !t },
|
@@ -148778,7 +148814,7 @@ const LWt = ({
|
|
148778
148814
|
"div",
|
148779
148815
|
{
|
148780
148816
|
ref: un,
|
148781
|
-
className:
|
148817
|
+
className: Ot(
|
148782
148818
|
"w-full h-full pt-8 md:pt-0",
|
148783
148819
|
{ "custom-ios-padding": it },
|
148784
148820
|
{ "color-bg-default": V === "1.4" || "1.5" }
|
@@ -148814,7 +148850,7 @@ const LWt = ({
|
|
148814
148850
|
"div",
|
148815
148851
|
{
|
148816
148852
|
ref: Mt,
|
148817
|
-
className:
|
148853
|
+
className: Ot(
|
148818
148854
|
"flex flex-wrap px-4 md:px-[80px] lg:!px-[124px] items-center gap-1 mb-4 mt-4 lg:!mt-0",
|
148819
148855
|
{ "pt-12": t }
|
148820
148856
|
),
|
@@ -148895,7 +148931,7 @@ const LWt = ({
|
|
148895
148931
|
d == null || d(st);
|
148896
148932
|
},
|
148897
148933
|
variant: "ghost",
|
148898
|
-
className:
|
148934
|
+
className: Ot(
|
148899
148935
|
"absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
|
148900
148936
|
),
|
148901
148937
|
children: /* @__PURE__ */ A.jsx(Xe, { name: "MessageSquareText", size: "sm" })
|
@@ -148907,7 +148943,7 @@ const LWt = ({
|
|
148907
148943
|
!t && !g && /* @__PURE__ */ A.jsx(
|
148908
148944
|
"div",
|
148909
148945
|
{
|
148910
|
-
className:
|
148946
|
+
className: Ot(
|
148911
148947
|
"flex xl:hidden items-center w-full h-[52px] absolute left-0 z-10 px-4 color-bg-default transition-all duration-300 ease-in-out border-b border-color-default",
|
148912
148948
|
yt && "hidden",
|
148913
148949
|
{ "top-14": K, "top-0": !K }
|