reactjs-tiptap-editor 0.2.17 → 0.2.18
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/lib/{RichTextEditor-4UtJEEya.js → RichTextEditor-Bja02y2o.js} +535 -533
- package/lib/{RichTextEditor-BG2fnlv0.cjs → RichTextEditor-CGcy7xvW.cjs} +1 -1
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +79 -79
- package/lib/extension-bundle.d.ts +79 -79
- package/lib/extension-bundle.js +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +79 -79
- package/lib/index.d.ts +79 -79
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +79 -79
- package/lib/locale-bundle.d.ts +79 -79
- package/package.json +1 -1
|
@@ -3,43 +3,43 @@ var ui = (t, e, r) => e in t ? hi(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var jt = (t, e, r) => ui(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import { jsxs as f, jsx as i, Fragment as W } from "react/jsx-runtime";
|
|
5
5
|
import * as F from "react";
|
|
6
|
-
import Ot, { createContext as mi, useContext as xi, useSyncExternalStore as fi, useRef as Z, useCallback as O, useState as S, useEffect as B, useMemo as U, Fragment as ze, memo as gi, forwardRef as pi, useId as wi, useImperativeHandle as vi } from "react";
|
|
7
|
-
import { W as ee, h as yt, m as st, X as
|
|
8
|
-
import { u as q, I as xt, o as ft, p as de, V as ye, q as
|
|
6
|
+
import Ot, { createContext as mi, useContext as xi, useSyncExternalStore as fi, useRef as Z, useCallback as O, useState as S, useEffect as B, useMemo as U, Fragment as ze, memo as gi, forwardRef as pi, useId as wi, useImperativeHandle as vi, useLayoutEffect as bi } from "react";
|
|
7
|
+
import { W as ee, h as yt, m as st, X as yi, N as gt, Y as le, R as pt, Z as Pe, _ as re, $ as Ci, B as tt, a0 as Ti, a1 as Ni, a2 as ki } from "./tiptap-BV9BUpUC.js";
|
|
8
|
+
import { u as q, I as xt, o as ft, p as de, V as ye, q as Si, C as Mi, i as K, B as Ai, r as ie, E as Li } from "./index-8id9bPv5.js";
|
|
9
9
|
import * as vr from "@radix-ui/react-separator";
|
|
10
|
-
import { ap as
|
|
10
|
+
import { ap as Ii, al as ne, ak as Ei, aq as he, am as Re, T as Vt, N as zi, A as Pi, ar as oe, as as ht, at as br, b as Oe, P as He, a0 as Ri, $ as Oi, an as yr, au as Hi, av as ue, aw as Di, H as Wt, ax as _i, ay as Bi, S as $i, az as Vi, aA as Wi } from "./vendor-DyAqAGVt.js";
|
|
11
11
|
import * as et from "@radix-ui/react-toast";
|
|
12
|
-
import { ChevronRight as
|
|
12
|
+
import { ChevronRight as Fi, Check as Cr, Circle as Ui, X as Tr, PencilRuler as Gi, FlipHorizontal as qi, FlipVertical as ji, CropIcon as Xi, ChevronUp as Yi, Paperclip as Ki, Eye as Zi, Settings as Ji, ZoomOut as Qi, ZoomIn as tn, BookMarked as en, Sigma as rn, SmilePlusIcon as nn, Replace as Ke, SmilePlus as on, Frame as an, Columns2 as Ze, PanelRight as cn, PanelLeft as sn, Clipboard as ln, Copy as dn, GripVertical as hn, Plus as Nr, Columns4 as un, Columns3 as mn, Heading6 as xn, Heading5 as fn, Heading4 as gn, Heading3 as pn, Heading2 as wn, Heading1 as vn, ChevronsUpDown as bn, Trash as yn, Trash2 as kr, TableCellsSplit as Cn, TableCellsMerge as Tn, BetweenVerticalEnd as Nn, BetweenVerticalStart as kn, BetweenHorizonalStart as Sn, BetweenHorizonalEnd as Mn, Unlink as An, Pencil as Sr, Sparkles as Ln, Table as In, Minimize as En, Maximize as zn, Video as Pn, ImageUp as Rn, Link as On, ListTodo as Hn, ListOrdered as Dn, List as _n, IndentDecrease as Bn, IndentIncrease as $n, Type as Vn, CodeXml as Wn, Code as Fn, Superscript as Un, Subscript as Gn, ChevronDown as qn, Undo2 as jn, Redo2 as Xn, PaintRoller as Yn, Eraser as Kn, Minus as Zn, Strikethrough as Jn, Quote as Qn, Underline as to, Italic as eo, LoaderCircle as ro, Bold as io, HelpCircle as Mr } from "lucide-react";
|
|
13
13
|
import * as Ft from "@radix-ui/react-tooltip";
|
|
14
14
|
import { Color4 as j, Editor as Ar, makeDropdownToolbar as Lr } from "easydrawer";
|
|
15
15
|
import { Slot as Ir } from "@radix-ui/react-slot";
|
|
16
16
|
import * as Er from "@radix-ui/react-toggle";
|
|
17
|
-
import { TextAlignRightIcon as
|
|
17
|
+
import { TextAlignRightIcon as no, TextAlignLeftIcon as oo, TextAlignJustifyIcon as ao, TextAlignCenterIcon as co } from "@radix-ui/react-icons";
|
|
18
18
|
import * as nt from "@radix-ui/react-dialog";
|
|
19
19
|
import * as Dt from "@radix-ui/react-popover";
|
|
20
20
|
import * as zr from "@radix-ui/react-label";
|
|
21
21
|
import { Resizable as Pr } from "re-resizable";
|
|
22
22
|
import De from "katex";
|
|
23
23
|
import ae from "mermaid";
|
|
24
|
-
import
|
|
25
|
-
import { HexColorPicker as
|
|
24
|
+
import so, { sticky as lo } from "tippy.js";
|
|
25
|
+
import { HexColorPicker as ho } from "react-colorful";
|
|
26
26
|
import * as Ce from "@radix-ui/react-switch";
|
|
27
27
|
import * as Ct from "@radix-ui/react-tabs";
|
|
28
|
-
import
|
|
28
|
+
import uo from "react-image-crop";
|
|
29
29
|
import * as Te from "@radix-ui/react-checkbox";
|
|
30
30
|
import * as X from "@radix-ui/react-dropdown-menu";
|
|
31
31
|
function P(...t) {
|
|
32
|
-
return
|
|
32
|
+
return Ii(ne(t));
|
|
33
33
|
}
|
|
34
34
|
let fe;
|
|
35
35
|
function ge() {
|
|
36
36
|
return fe === void 0 && (fe = navigator.platform.includes("Mac")), fe;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function mo(t) {
|
|
39
39
|
return `${t}`.toLowerCase() === "mod" ? ge() ? "⌘" : "Ctrl" : `${t}`.toLowerCase() === "alt" ? ge() ? "⌥" : "Alt" : `${t}`.toLowerCase() === "shift" ? ge() ? "⇧" : "Shift" : t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return t.map(
|
|
41
|
+
function xo(t) {
|
|
42
|
+
return t.map(mo).join(" ");
|
|
43
43
|
}
|
|
44
44
|
const R = Ot.forwardRef(
|
|
45
45
|
(t, e) => {
|
|
@@ -79,7 +79,7 @@ const R = Ot.forwardRef(
|
|
|
79
79
|
) }),
|
|
80
80
|
n && /* @__PURE__ */ i(Ve, { ...s, children: /* @__PURE__ */ f("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
|
|
81
81
|
/* @__PURE__ */ i("div", { children: n }),
|
|
82
|
-
!!(l != null && l.length) && /* @__PURE__ */ i("span", { children:
|
|
82
|
+
!!(l != null && l.length) && /* @__PURE__ */ i("span", { children: xo(l) })
|
|
83
83
|
] }) })
|
|
84
84
|
] });
|
|
85
85
|
}
|
|
@@ -120,12 +120,12 @@ me({
|
|
|
120
120
|
me({
|
|
121
121
|
value: !1
|
|
122
122
|
});
|
|
123
|
-
const { Provider:
|
|
123
|
+
const { Provider: fo, useStore: Rr } = me({
|
|
124
124
|
value: !1
|
|
125
|
-
}), { Provider:
|
|
125
|
+
}), { Provider: go, useStore: Or } = me({
|
|
126
126
|
value: "light"
|
|
127
127
|
});
|
|
128
|
-
|
|
128
|
+
Ei("0");
|
|
129
129
|
function ce(t, e) {
|
|
130
130
|
return window.addEventListener(t, e), () => {
|
|
131
131
|
window.removeEventListener(t, e);
|
|
@@ -145,11 +145,11 @@ const bt = {
|
|
|
145
145
|
UPDATE_THEME: (t) => `UPDATE_THEME-${t}`,
|
|
146
146
|
SEARCH_REPLCE: "SEARCH_REPLACE"
|
|
147
147
|
};
|
|
148
|
-
function
|
|
148
|
+
function po() {
|
|
149
149
|
const [t] = Rr((e) => e.value);
|
|
150
150
|
return t;
|
|
151
151
|
}
|
|
152
|
-
const
|
|
152
|
+
const wo = {
|
|
153
153
|
setDisable: (t, e) => {
|
|
154
154
|
_e(bt.EDIT(t), e);
|
|
155
155
|
}
|
|
@@ -176,23 +176,23 @@ function Ut(t, e) {
|
|
|
176
176
|
function Be(t, e, r) {
|
|
177
177
|
return t < e ? e : t > r ? r : t;
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
179
|
+
const vo = (t) => typeof t == "number", bo = (t) => typeof t == "string", yo = (t) => typeof t == "function";
|
|
180
|
+
function Co(t, e = "px") {
|
|
181
181
|
if (!t)
|
|
182
182
|
return t;
|
|
183
|
-
const r =
|
|
183
|
+
const r = vo(t) ? String(t) : t, n = Number.parseFloat(r), a = r.match(/[%a-z]+$/i), o = a ? a[0] : e;
|
|
184
184
|
return Number.isNaN(n) ? t : n + o;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function To(t, e) {
|
|
187
187
|
if (!t)
|
|
188
188
|
return !1;
|
|
189
189
|
const { extensions: r = [] } = (t == null ? void 0 : t.extensionManager) ?? {};
|
|
190
190
|
return !!r.find((a) => a.name === e);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
return t.map((e) =>
|
|
192
|
+
function Nl(t) {
|
|
193
|
+
return t.map((e) => bo(e) ? { value: e, name: e } : e);
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const No = he(
|
|
196
196
|
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",
|
|
197
197
|
{
|
|
198
198
|
variants: {
|
|
@@ -220,14 +220,14 @@ const To = he(
|
|
|
220
220
|
({ className: t, variant: e, size: r, asChild: n = !1, ...a }, o) => /* @__PURE__ */ i(
|
|
221
221
|
n ? Ir : "button",
|
|
222
222
|
{
|
|
223
|
-
className: P(
|
|
223
|
+
className: P(No({ variant: e, size: r, className: t })),
|
|
224
224
|
ref: o,
|
|
225
225
|
...a
|
|
226
226
|
}
|
|
227
227
|
)
|
|
228
228
|
);
|
|
229
229
|
G.displayName = "Button";
|
|
230
|
-
const
|
|
230
|
+
const ko = X.Root, So = X.Trigger, Je = X.Portal, Qe = X.Sub, Ne = F.forwardRef(({ className: t, inset: e, children: r, ...n }, a) => /* @__PURE__ */ f(
|
|
231
231
|
X.SubTrigger,
|
|
232
232
|
{
|
|
233
233
|
ref: a,
|
|
@@ -239,7 +239,7 @@ const No = X.Root, ko = X.Trigger, Je = X.Portal, Qe = X.Sub, Ne = F.forwardRef(
|
|
|
239
239
|
...n,
|
|
240
240
|
children: [
|
|
241
241
|
r,
|
|
242
|
-
/* @__PURE__ */ i(
|
|
242
|
+
/* @__PURE__ */ i(Fi, { className: "richtext-ml-auto richtext-h-4 richtext-w-4" })
|
|
243
243
|
]
|
|
244
244
|
}
|
|
245
245
|
));
|
|
@@ -282,7 +282,7 @@ const ot = F.forwardRef(({ className: t, inset: e, ...r }, n) => /* @__PURE__ */
|
|
|
282
282
|
}
|
|
283
283
|
));
|
|
284
284
|
ot.displayName = X.Item.displayName;
|
|
285
|
-
const
|
|
285
|
+
const Mo = F.forwardRef(({ className: t, children: e, checked: r, ...n }, a) => /* @__PURE__ */ f(
|
|
286
286
|
X.CheckboxItem,
|
|
287
287
|
{
|
|
288
288
|
ref: a,
|
|
@@ -298,8 +298,8 @@ const So = F.forwardRef(({ className: t, children: e, checked: r, ...n }, a) =>
|
|
|
298
298
|
]
|
|
299
299
|
}
|
|
300
300
|
));
|
|
301
|
-
|
|
302
|
-
const
|
|
301
|
+
Mo.displayName = X.CheckboxItem.displayName;
|
|
302
|
+
const Ao = F.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__ */ f(
|
|
303
303
|
X.RadioItem,
|
|
304
304
|
{
|
|
305
305
|
ref: n,
|
|
@@ -309,13 +309,13 @@ const Mo = F.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__
|
|
|
309
309
|
),
|
|
310
310
|
...r,
|
|
311
311
|
children: [
|
|
312
|
-
/* @__PURE__ */ i("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ i(X.ItemIndicator, { children: /* @__PURE__ */ i(
|
|
312
|
+
/* @__PURE__ */ i("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ i(X.ItemIndicator, { children: /* @__PURE__ */ i(Ui, { className: "richtext-h-2 richtext-w-2 richtext-fill-current" }) }) }),
|
|
313
313
|
e
|
|
314
314
|
]
|
|
315
315
|
}
|
|
316
316
|
));
|
|
317
|
-
|
|
318
|
-
const
|
|
317
|
+
Ao.displayName = X.RadioItem.displayName;
|
|
318
|
+
const Lo = F.forwardRef(({ className: t, inset: e, ...r }, n) => /* @__PURE__ */ i(
|
|
319
319
|
X.Label,
|
|
320
320
|
{
|
|
321
321
|
ref: n,
|
|
@@ -327,7 +327,7 @@ const Ao = F.forwardRef(({ className: t, inset: e, ...r }, n) => /* @__PURE__ */
|
|
|
327
327
|
...r
|
|
328
328
|
}
|
|
329
329
|
));
|
|
330
|
-
|
|
330
|
+
Lo.displayName = X.Label.displayName;
|
|
331
331
|
const Dr = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
332
332
|
X.Separator,
|
|
333
333
|
{
|
|
@@ -337,7 +337,7 @@ const Dr = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
|
337
337
|
}
|
|
338
338
|
));
|
|
339
339
|
Dr.displayName = X.Separator.displayName;
|
|
340
|
-
function
|
|
340
|
+
function Io({
|
|
341
341
|
className: t,
|
|
342
342
|
...e
|
|
343
343
|
}) {
|
|
@@ -349,7 +349,7 @@ function Lo({
|
|
|
349
349
|
}
|
|
350
350
|
);
|
|
351
351
|
}
|
|
352
|
-
|
|
352
|
+
Io.displayName = "DropdownMenuShortcut";
|
|
353
353
|
const Q = F.forwardRef(
|
|
354
354
|
({ className: t, type: e, ...r }, n) => /* @__PURE__ */ i(
|
|
355
355
|
"input",
|
|
@@ -365,13 +365,13 @@ const Q = F.forwardRef(
|
|
|
365
365
|
)
|
|
366
366
|
);
|
|
367
367
|
Q.displayName = "Input";
|
|
368
|
-
const
|
|
368
|
+
const Eo = he(
|
|
369
369
|
"richtext-text-sm richtext-font-medium richtext-leading-none peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
|
|
370
370
|
), ct = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
371
371
|
zr.Root,
|
|
372
372
|
{
|
|
373
373
|
ref: r,
|
|
374
|
-
className: P(
|
|
374
|
+
className: P(Eo(), t),
|
|
375
375
|
...e
|
|
376
376
|
}
|
|
377
377
|
));
|
|
@@ -463,7 +463,7 @@ const Bt = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
|
463
463
|
}
|
|
464
464
|
));
|
|
465
465
|
Bt.displayName = Ct.Content.displayName;
|
|
466
|
-
const
|
|
466
|
+
const zo = et.Provider, $r = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
467
467
|
et.Viewport,
|
|
468
468
|
{
|
|
469
469
|
ref: r,
|
|
@@ -475,7 +475,7 @@ const Eo = et.Provider, $r = F.forwardRef(({ className: t, ...e }, r) => /* @__P
|
|
|
475
475
|
}
|
|
476
476
|
));
|
|
477
477
|
$r.displayName = et.Viewport.displayName;
|
|
478
|
-
const
|
|
478
|
+
const Po = he(
|
|
479
479
|
"richtext-group richtext-pointer-events-auto richtext-relative richtext-flex richtext-w-full richtext-items-center richtext-justify-between richtext-space-x-4 richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-p-6 richtext-pr-8 richtext-shadow-lg richtext-transition-all data-[swipe=cancel]:richtext-translate-x-0 data-[swipe=end]:richtext-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:richtext-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:richtext-transition-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[swipe=end]:richtext-animate-out data-[state=closed]:richtext-fade-out-80 data-[state=closed]:richtext-slide-out-to-right-full data-[state=open]:richtext-slide-in-from-top-full data-[state=open]:sm:richtext-slide-in-from-bottom-full",
|
|
480
480
|
{
|
|
481
481
|
variants: {
|
|
@@ -492,12 +492,12 @@ const zo = he(
|
|
|
492
492
|
et.Root,
|
|
493
493
|
{
|
|
494
494
|
ref: n,
|
|
495
|
-
className: P(
|
|
495
|
+
className: P(Po({ variant: e }), t),
|
|
496
496
|
...r
|
|
497
497
|
}
|
|
498
498
|
));
|
|
499
499
|
Vr.displayName = et.Root.displayName;
|
|
500
|
-
const
|
|
500
|
+
const Ro = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
501
501
|
et.Action,
|
|
502
502
|
{
|
|
503
503
|
ref: r,
|
|
@@ -508,7 +508,7 @@ const Po = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
|
508
508
|
...e
|
|
509
509
|
}
|
|
510
510
|
));
|
|
511
|
-
|
|
511
|
+
Ro.displayName = et.Action.displayName;
|
|
512
512
|
const Wr = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
513
513
|
et.Close,
|
|
514
514
|
{
|
|
@@ -541,7 +541,7 @@ const Ur = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
|
541
541
|
}
|
|
542
542
|
));
|
|
543
543
|
Ur.displayName = et.Description.displayName;
|
|
544
|
-
const
|
|
544
|
+
const Oo = he(
|
|
545
545
|
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
|
|
546
546
|
{
|
|
547
547
|
variants: {
|
|
@@ -564,12 +564,12 @@ const Ro = he(
|
|
|
564
564
|
Er.Root,
|
|
565
565
|
{
|
|
566
566
|
ref: a,
|
|
567
|
-
className: P(
|
|
567
|
+
className: P(Oo({ variant: e, size: r, className: t })),
|
|
568
568
|
...n
|
|
569
569
|
}
|
|
570
570
|
));
|
|
571
571
|
Gr.displayName = Er.Root.displayName;
|
|
572
|
-
const
|
|
572
|
+
const Ho = Ft.Provider, qr = Ft.Root, jr = Ft.Trigger, Ve = F.forwardRef(({ className: t, sideOffset: e = 4, ...r }, n) => /* @__PURE__ */ i(
|
|
573
573
|
Ft.Content,
|
|
574
574
|
{
|
|
575
575
|
ref: n,
|
|
@@ -582,9 +582,9 @@ const Oo = Ft.Provider, qr = Ft.Root, jr = Ft.Trigger, Ve = F.forwardRef(({ clas
|
|
|
582
582
|
}
|
|
583
583
|
));
|
|
584
584
|
Ve.displayName = Ft.Content.displayName;
|
|
585
|
-
const
|
|
585
|
+
const Do = 1, _o = 1e6;
|
|
586
586
|
let pe = 0;
|
|
587
|
-
function
|
|
587
|
+
function Bo() {
|
|
588
588
|
return pe = (pe + 1) % Number.MAX_SAFE_INTEGER, pe.toString();
|
|
589
589
|
}
|
|
590
590
|
const we = /* @__PURE__ */ new Map();
|
|
@@ -596,15 +596,15 @@ function tr(t) {
|
|
|
596
596
|
type: "REMOVE_TOAST",
|
|
597
597
|
toastId: t
|
|
598
598
|
});
|
|
599
|
-
},
|
|
599
|
+
}, _o);
|
|
600
600
|
we.set(t, e);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function $o(t, e) {
|
|
603
603
|
switch (e.type) {
|
|
604
604
|
case "ADD_TOAST":
|
|
605
605
|
return {
|
|
606
606
|
...t,
|
|
607
|
-
toasts: [e.toast, ...t.toasts].slice(0,
|
|
607
|
+
toasts: [e.toast, ...t.toasts].slice(0, Do)
|
|
608
608
|
};
|
|
609
609
|
case "UPDATE_TOAST":
|
|
610
610
|
return {
|
|
@@ -640,12 +640,12 @@ function Bo(t, e) {
|
|
|
640
640
|
const Qt = [];
|
|
641
641
|
let te = { toasts: [] };
|
|
642
642
|
function Ht(t) {
|
|
643
|
-
te =
|
|
643
|
+
te = $o(te, t), Qt.forEach((e) => {
|
|
644
644
|
e(te);
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
const e =
|
|
647
|
+
function Vo({ ...t }) {
|
|
648
|
+
const e = Bo(), r = (a) => Ht({
|
|
649
649
|
type: "UPDATE_TOAST",
|
|
650
650
|
toast: { ...a, id: e }
|
|
651
651
|
}), n = () => Ht({ type: "DISMISS_TOAST", toastId: e });
|
|
@@ -665,14 +665,14 @@ function $o({ ...t }) {
|
|
|
665
665
|
update: r
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Wo() {
|
|
669
669
|
const [t, e] = F.useState(te);
|
|
670
670
|
return F.useEffect(() => (Qt.push(e), () => {
|
|
671
671
|
const r = Qt.indexOf(e);
|
|
672
672
|
r > -1 && Qt.splice(r, 1);
|
|
673
673
|
}), [t]), {
|
|
674
674
|
...t,
|
|
675
|
-
toast:
|
|
675
|
+
toast: Vo,
|
|
676
676
|
dismiss: (r) => Ht({ type: "DISMISS_TOAST", toastId: r })
|
|
677
677
|
};
|
|
678
678
|
}
|
|
@@ -695,7 +695,7 @@ const Xr = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
|
695
695
|
}
|
|
696
696
|
));
|
|
697
697
|
Xr.displayName = Te.Root.displayName;
|
|
698
|
-
function
|
|
698
|
+
function Fo(t) {
|
|
699
699
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
|
|
700
700
|
"path",
|
|
701
701
|
{
|
|
@@ -704,7 +704,7 @@ function Wo(t) {
|
|
|
704
704
|
}
|
|
705
705
|
) });
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function Uo(t) {
|
|
708
708
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
|
|
709
709
|
"path",
|
|
710
710
|
{
|
|
@@ -717,7 +717,7 @@ function Fo(t) {
|
|
|
717
717
|
}
|
|
718
718
|
) });
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Go() {
|
|
721
721
|
return /* @__PURE__ */ i(
|
|
722
722
|
"svg",
|
|
723
723
|
{
|
|
@@ -744,7 +744,7 @@ function Uo() {
|
|
|
744
744
|
}
|
|
745
745
|
);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function qo() {
|
|
748
748
|
return /* @__PURE__ */ i(
|
|
749
749
|
"svg",
|
|
750
750
|
{
|
|
@@ -771,7 +771,7 @@ function Go() {
|
|
|
771
771
|
}
|
|
772
772
|
);
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function jo(t) {
|
|
775
775
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
|
|
776
776
|
"path",
|
|
777
777
|
{
|
|
@@ -784,7 +784,7 @@ function Y(t) {
|
|
|
784
784
|
const e = Yr[t.name];
|
|
785
785
|
return e ? /* @__PURE__ */ i(e, { onClick: t == null ? void 0 : t.onClick, className: `richtext-w-4 richtext-h-4 ${(t == null ? void 0 : t.className) || ""}` }) : null;
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Xo(t) {
|
|
788
788
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
|
|
789
789
|
"path",
|
|
790
790
|
{
|
|
@@ -793,7 +793,7 @@ function jo(t) {
|
|
|
793
793
|
}
|
|
794
794
|
) });
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Yo(t) {
|
|
797
797
|
return /* @__PURE__ */ i(
|
|
798
798
|
"svg",
|
|
799
799
|
{
|
|
@@ -818,10 +818,10 @@ function Xo(t) {
|
|
|
818
818
|
}
|
|
819
819
|
);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function Ko(t) {
|
|
822
822
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M9 7v10h6v-2h-4V7z" }) });
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function Zo(t) {
|
|
825
825
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
|
|
826
826
|
"path",
|
|
827
827
|
{
|
|
@@ -830,7 +830,7 @@ function Ko(t) {
|
|
|
830
830
|
}
|
|
831
831
|
) });
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function Jo(t) {
|
|
834
834
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ i(
|
|
835
835
|
"path",
|
|
836
836
|
{
|
|
@@ -839,25 +839,25 @@ function Zo(t) {
|
|
|
839
839
|
}
|
|
840
840
|
) });
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Qo() {
|
|
843
843
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m-9 8h4m-2-2v4" }) });
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function ta() {
|
|
846
846
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m9 8h4m-2-2v4" }) });
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function ea() {
|
|
849
849
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 21v-4m0-4V9m0-4V3m-2 18h4M8 5v4h11l2-2l-2-2zm6 8v4H6l-2-2l2-2z" }) });
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function ra() {
|
|
852
852
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M23.943 19.806a.2.2 0 0 0-.168-.034c-1.26-1.855-2.873-3.61-4.419-5.315l-.252-.284c-.001-.073-.067-.12-.134-.15l-.084-.084c-.05-.1-.169-.167-.286-.1c-.47.234-.907.585-1.327.919c-.554.434-1.109.87-1.63 1.354a5 5 0 0 0-.588.618c-.084.117-.017.217.084.267c-.37.368-.74.736-1.109 1.12a.2.2 0 0 0-.05.134c0 .05.033.1.067.117l.655.502v.016c.924.92 2.554 2.173 4.285 3.527c.251.201.52.402.773.602c.117.134.234.285.335.418c.05.066.169.084.236.033c.033.034.084.067.118.1a.24.24 0 0 0 .1.034a.15.15 0 0 0 .135-.066a.24.24 0 0 0 .033-.1c.017 0 .017.016.034.016a.2.2 0 0 0 .134-.05l3.058-3.327c.12-.116.014-.267 0-.267m-7.628-.134l-1.546-1.17l-.15-.1c-.035-.017-.068-.05-.102-.067l-.117-.1c.66-.66 1.33-1.308 2-1.956c-.488.484-1.463 1.906-1.261 2.373c.002 0 .018.042.067.084zm4.1 3.126l-1.277-.97a27 27 0 0 0-1.58-1.504c.69.518 1.277.97 1.361 1.053c.673.585.638.485 1.093.87l.554.4c-.074.103-.151.148-.151.151m.336.25l-.034-.016a1 1 0 0 0 .152-.117zM.588 3.476c.033.217.084.435.117.636c.201 1.103.403 2.106.772 2.858l.152.568c.05.217.134.485.219.552a67 67 0 0 0 3.578 2.942a.18.18 0 0 0 .219 0s0 .016.016.016a.15.15 0 0 0 .118.05a.2.2 0 0 0 .134-.05c1.798-1.989 3.142-3.627 4.1-4.998c.068-.066.084-.167.084-.25c.067-.067.118-.151.185-.201c.067-.067.067-.184 0-.235l-.017-.016c0-.033-.017-.084-.05-.1c-.42-.401-.722-.685-1.042-.986a94 94 0 0 1-2.352-2.273c-.017-.017-.034-.034-.067-.034c-.336-.117-1.025-.234-1.882-.385c-1.277-.216-3.008-.517-4.57-.986c0 0-.101 0-.118.017l-.05.05C.05.714.022.707 0 .718c.017.1.017.167.05.284c0 .033.068.301.068.334zm7.19 4.78l-.033.034a.036.036 0 0 1 .033-.034M6.553 2.238c.101.1.521.502.622.585c-.437-.2-1.529-.702-2.034-.869c.505.1 1.194.201 1.412.284M.79 1.403c.252.434.454 1.939.655 3.41c-.118-.469-.201-.936-.302-1.372C.992 2.673.84 1.988.638 1.386c.124 0 .152.021.152.017m-.286-.369c0-.016 0-.033-.017-.033c.085 0 .135.017.202.05c0 .006-.145-.017-.185-.017m23.17-.217c.017-.066-.336-.367-.219-.384c.253-.017.253-.401 0-.401c-.335.017-.688.1-1.008.15c-.587.117-1.192.234-1.78.367a80 80 0 0 0-3.949.937c-.403.117-.857.2-1.243.401c-.135.067-.118.2-.05.284c-.034.017-.051.017-.085.034c-.117.017-.218.034-.335.05c-.102.017-.152.1-.135.2c0 .017.017.05.017.067c-.706.936-1.496 1.923-2.353 2.976c-.84.969-1.73 1.989-2.62 3.042c-2.84 3.31-6.05 7.07-9.594 10.38a.16.16 0 0 0 0 .234c.016.016.033.033.05.033c-.05.05-.101.085-.152.134q-.05.05-.05.1a.4.4 0 0 0-.067.084c-.067.067-.067.184.017.234c.067.066.185.066.235-.017c.017-.017.017-.033.033-.033a.265.265 0 0 1 .37 0c.202.217.404.435.588.618l-.42-.35c-.067-.067-.184-.05-.234.016c-.068.066-.051.184.016.234l4.469 3.727c.034.034.067.034.118.034a.15.15 0 0 0 .117-.05l.101-.1c.017.016.05.016.067.016c.05 0 .084-.016.118-.05c6.049-6.05 10.922-10.614 16.5-14.693c.05-.033.067-.1.067-.15c.067 0 .118-.05.15-.117c1.026-3.125 1.228-5.9 1.295-7.27c0-.059.016-.038.016-.068c.017-.033.017-.05.017-.05a.98.98 0 0 0-.067-.619m-10.82 4.915c.268-.301.537-.619.806-.903c-1.73 2.273-4.603 5.767-8.67 9.929c2.773-3.059 5.562-6.218 7.864-9.026M5.14 23.466c-.016-.017-.016-.017 0-.017zm2.504-2.156c.135-.15.27-.284.42-.434c0 0 0 .016.017.016c-.224.198-.433.418-.437.418m.69-.668c.099-.1.14-.173.284-.318c.992-1.02 2.017-2.04 3.059-3.076l.016-.016c.252-.2.555-.418.824-.619a228 228 0 0 0-4.184 4.029M14.852 3.91c-.554.719-1.176 1.671-1.697 2.423c-1.646 2.374-6.94 8.174-7.057 8.274a1190 1190 0 0 1-4.839 4.597l-.1.1c-.085-.1-.085-.25.016-.334C8.652 11.966 13.19 6.133 15.021 3.576c-.05.116-.084.216-.168.334zm2.906 3.427c-.671-.386-.99-.987-.806-1.572l.05-.2a.8.8 0 0 1 .085-.167a1.9 1.9 0 0 1 .756-.703c.016 0 .033 0 .05-.016c-.017-.034-.017-.084-.017-.134c.017-.1.085-.167.202-.167c.202 0 .824.184 1.059.384c.067.05.134.117.202.184c.084.1.218.268.285.401c.034.017.067.184.118.268c.033.134.067.284.05.418c-.017.016 0 .116-.017.116a1.6 1.6 0 0 1-.218.619c-.03.03.006.012-.05.067a1.2 1.2 0 0 1-.32.334a1.49 1.49 0 0 1-1.26.234a2 2 0 0 0-.169-.066m4.37 1.403c0 .017-.017.05 0 .067c-.034 0-.05.017-.085.034a110 110 0 0 0-3.915 3.025c1.11-.986 2.218-1.989 3.378-2.975c.336-.301.571-.686.638-1.12l.168-1.003v-.033c.085-.201.404-.118.353.1c-.004-.001-.173.795-.537 1.905" }) });
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function ia() {
|
|
855
855
|
return /* @__PURE__ */ f("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
|
|
856
856
|
/* @__PURE__ */ i("path", { fill: "currentColor", d: "M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3z" }),
|
|
857
857
|
/* @__PURE__ */ i("path", { fill: "currentColor", d: "M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z" })
|
|
858
858
|
] });
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function na() {
|
|
861
861
|
return /* @__PURE__ */ f(
|
|
862
862
|
"svg",
|
|
863
863
|
{
|
|
@@ -885,16 +885,16 @@ function ia() {
|
|
|
885
885
|
}
|
|
886
886
|
);
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function oa() {
|
|
889
889
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ f("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", color: "currentColor", children: [
|
|
890
890
|
/* @__PURE__ */ i("path", { d: "M14.86 22h-4.312c-3.291 0-4.937 0-6.08-.798a4.2 4.2 0 0 1-.863-.805c-.855-1.066-.855-2.6-.855-5.67v-2.545c0-2.963 0-4.445.473-5.628c.761-1.903 2.37-3.403 4.41-4.113C8.9 2 10.49 2 13.667 2c1.816 0 2.723 0 3.448.252c1.166.406 2.085 1.263 2.52 2.35c.27.676.27 1.523.27 3.216V10" }),
|
|
891
891
|
/* @__PURE__ */ i("path", { d: "M2.75 12c0-1.84 1.506-3.333 3.364-3.333c.672 0 1.464.116 2.117-.057a1.67 1.67 0 0 0 1.19-1.179c.174-.647.057-1.432.057-2.098C9.478 3.493 10.984 2 12.84 2m.002 16h2.523m-4.949-4.15c-.126-.8-.281-.801-1.61-.85h-1.01c-.557 0-1.009.448-1.009 1v3c0 .552.452 1 1.01 1h1.816c.39 0 .803-.313.803-.7v-1.1c0-.11-.113-.304-.224-.304H9.068M12.842 13h1.261m0 0h1.262m-1.262 0v4.875M21.251 13h-2.523c-.557 0-1.009.448-1.009 1v1.5m0 0V18m0-2.5h2.523" })
|
|
892
892
|
] }) });
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function aa() {
|
|
895
895
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M6.5 3a.75.75 0 0 1 .697.471l3 7.5a.75.75 0 0 1-1.393.557L7.992 9.5H5.008l-.811 2.028a.75.75 0 0 1-1.393-.556l3-7.5A.75.75 0 0 1 6.5 3m0 2.77L5.608 8h1.784zm8.28-1.55a.75.75 0 1 0-1.06 1.06l.72.72h-3.69a.75.75 0 0 0 0 1.5h3.69l-.72.72a.75.75 0 0 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06zm0 7.5a.75.75 0 1 0-1.06 1.06l.72.72H3.75a.75.75 0 0 0 0 1.5h10.69l-.72.72a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06z" }) });
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function ca() {
|
|
898
898
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ f("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
|
|
899
899
|
/* @__PURE__ */ i("circle", { cx: "10", cy: "24", r: "4" }),
|
|
900
900
|
/* @__PURE__ */ i("circle", { cx: "38", cy: "10", r: "4" }),
|
|
@@ -903,13 +903,13 @@ function aa() {
|
|
|
903
903
|
/* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M34 38H22V10h12M14 24h20" })
|
|
904
904
|
] }) });
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function sa() {
|
|
907
907
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M13.5 3a.75.75 0 0 0-.697.471l-3 7.5a.75.75 0 0 0 1.393.557l.812-2.028h2.984l.811 2.028a.75.75 0 0 0 1.393-.556l-3-7.5A.75.75 0 0 0 13.5 3m0 2.77L14.392 8h-1.784zM5.22 4.22a.75.75 0 0 1 1.06 1.06L5.56 6h3.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 0 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06zm0 7.5a.75.75 0 0 1 1.06 1.06l-.72.72h10.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 1 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06z" }) });
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function la() {
|
|
910
910
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "m3 21l7.548-7.548M21 3l-7.548 7.548m0 0L8 3H3l7.548 10.452m2.904-2.904L21 21h-5l-5.452-7.548", color: "currentColor" }) });
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function da() {
|
|
913
913
|
return /* @__PURE__ */ i(
|
|
914
914
|
"svg",
|
|
915
915
|
{
|
|
@@ -931,107 +931,107 @@ function la() {
|
|
|
931
931
|
);
|
|
932
932
|
}
|
|
933
933
|
const Yr = {
|
|
934
|
-
Bold:
|
|
935
|
-
LoaderCircle:
|
|
936
|
-
Italic:
|
|
937
|
-
Underline:
|
|
938
|
-
Quote:
|
|
939
|
-
TextQuote:
|
|
940
|
-
Strikethrough:
|
|
941
|
-
Minus:
|
|
942
|
-
Eraser:
|
|
943
|
-
PaintRoller:
|
|
944
|
-
Redo2:
|
|
945
|
-
Undo2:
|
|
946
|
-
AlignCenter:
|
|
947
|
-
AlignJustify:
|
|
948
|
-
AlignLeft:
|
|
949
|
-
AlignRight:
|
|
950
|
-
ChevronDown:
|
|
951
|
-
Subscript:
|
|
952
|
-
Superscript:
|
|
953
|
-
Code:
|
|
954
|
-
Code2:
|
|
955
|
-
Type:
|
|
956
|
-
IndentIncrease:
|
|
957
|
-
IndentDecrease:
|
|
958
|
-
List:
|
|
959
|
-
ListOrdered:
|
|
960
|
-
ListTodo:
|
|
961
|
-
Link:
|
|
962
|
-
ImageUp:
|
|
963
|
-
Video:
|
|
964
|
-
Maximize:
|
|
965
|
-
Minimize:
|
|
966
|
-
Table:
|
|
967
|
-
Sparkles:
|
|
934
|
+
Bold: io,
|
|
935
|
+
LoaderCircle: ro,
|
|
936
|
+
Italic: eo,
|
|
937
|
+
Underline: to,
|
|
938
|
+
Quote: Qn,
|
|
939
|
+
TextQuote: Uo,
|
|
940
|
+
Strikethrough: Jn,
|
|
941
|
+
Minus: Zn,
|
|
942
|
+
Eraser: Kn,
|
|
943
|
+
PaintRoller: Yn,
|
|
944
|
+
Redo2: Xn,
|
|
945
|
+
Undo2: jn,
|
|
946
|
+
AlignCenter: co,
|
|
947
|
+
AlignJustify: ao,
|
|
948
|
+
AlignLeft: oo,
|
|
949
|
+
AlignRight: no,
|
|
950
|
+
ChevronDown: qn,
|
|
951
|
+
Subscript: Gn,
|
|
952
|
+
Superscript: Un,
|
|
953
|
+
Code: Fn,
|
|
954
|
+
Code2: Wn,
|
|
955
|
+
Type: Vn,
|
|
956
|
+
IndentIncrease: $n,
|
|
957
|
+
IndentDecrease: Bn,
|
|
958
|
+
List: _n,
|
|
959
|
+
ListOrdered: Dn,
|
|
960
|
+
ListTodo: Hn,
|
|
961
|
+
Link: On,
|
|
962
|
+
ImageUp: Rn,
|
|
963
|
+
Video: Pn,
|
|
964
|
+
Maximize: zn,
|
|
965
|
+
Minimize: En,
|
|
966
|
+
Table: In,
|
|
967
|
+
Sparkles: Ln,
|
|
968
968
|
Pencil: Sr,
|
|
969
|
-
Unlink:
|
|
970
|
-
BetweenHorizonalEnd:
|
|
971
|
-
BetweenHorizonalStart:
|
|
972
|
-
BetweenVerticalStart:
|
|
973
|
-
BetweenVerticalEnd:
|
|
974
|
-
TableCellsMerge:
|
|
975
|
-
TableCellsSplit:
|
|
969
|
+
Unlink: An,
|
|
970
|
+
BetweenHorizonalEnd: Mn,
|
|
971
|
+
BetweenHorizonalStart: Sn,
|
|
972
|
+
BetweenVerticalStart: kn,
|
|
973
|
+
BetweenVerticalEnd: Nn,
|
|
974
|
+
TableCellsMerge: Tn,
|
|
975
|
+
TableCellsSplit: Cn,
|
|
976
976
|
Trash2: kr,
|
|
977
|
-
Trash:
|
|
977
|
+
Trash: yn,
|
|
978
978
|
Replace: Ke,
|
|
979
|
-
ChevronsUpDown:
|
|
980
|
-
LineHeight:
|
|
981
|
-
Word:
|
|
982
|
-
Heading1:
|
|
983
|
-
Heading2:
|
|
984
|
-
Heading3:
|
|
985
|
-
Heading4:
|
|
986
|
-
Heading5:
|
|
987
|
-
Heading6:
|
|
979
|
+
ChevronsUpDown: bn,
|
|
980
|
+
LineHeight: Xo,
|
|
981
|
+
Word: jo,
|
|
982
|
+
Heading1: vn,
|
|
983
|
+
Heading2: wn,
|
|
984
|
+
Heading3: pn,
|
|
985
|
+
Heading4: gn,
|
|
986
|
+
Heading5: fn,
|
|
987
|
+
Heading6: xn,
|
|
988
988
|
Columns2: Ze,
|
|
989
|
-
Columns3:
|
|
990
|
-
Columns4:
|
|
989
|
+
Columns3: mn,
|
|
990
|
+
Columns4: un,
|
|
991
991
|
Plus: Nr,
|
|
992
|
-
Grip:
|
|
993
|
-
Copy:
|
|
994
|
-
Clipboard:
|
|
995
|
-
PanelLeft:
|
|
996
|
-
PanelRight:
|
|
992
|
+
Grip: hn,
|
|
993
|
+
Copy: dn,
|
|
994
|
+
Clipboard: ln,
|
|
995
|
+
PanelLeft: sn,
|
|
996
|
+
PanelRight: cn,
|
|
997
997
|
Columns: Ze,
|
|
998
|
-
Iframe:
|
|
999
|
-
MenuDown:
|
|
1000
|
-
SizeS:
|
|
1001
|
-
SizeM:
|
|
1002
|
-
SizeL:
|
|
1003
|
-
AspectRatio:
|
|
1004
|
-
Emoji:
|
|
1005
|
-
DeleteColumn:
|
|
1006
|
-
DeleteRow:
|
|
998
|
+
Iframe: an,
|
|
999
|
+
MenuDown: Yo,
|
|
1000
|
+
SizeS: Jo,
|
|
1001
|
+
SizeM: Zo,
|
|
1002
|
+
SizeL: Ko,
|
|
1003
|
+
AspectRatio: Fo,
|
|
1004
|
+
Emoji: on,
|
|
1005
|
+
DeleteColumn: Go,
|
|
1006
|
+
DeleteRow: qo,
|
|
1007
1007
|
SearchAndReplace: Ke,
|
|
1008
|
-
EmojiIcon:
|
|
1009
|
-
KatexIcon:
|
|
1010
|
-
ExportPdf:
|
|
1011
|
-
ExportWord:
|
|
1012
|
-
ImportWord:
|
|
1013
|
-
ColumnAddLeft:
|
|
1014
|
-
ColumnAddRight:
|
|
1015
|
-
BookMarked:
|
|
1016
|
-
Excalidraw:
|
|
1017
|
-
ZoomIn:
|
|
1018
|
-
ZoomOut:
|
|
1019
|
-
Settings:
|
|
1020
|
-
Eye:
|
|
1021
|
-
TextDirection:
|
|
1022
|
-
LeftToRight:
|
|
1023
|
-
RightToLeft:
|
|
1024
|
-
Attachment:
|
|
1025
|
-
GifIcon:
|
|
1026
|
-
ChevronUp:
|
|
1027
|
-
Crop:
|
|
1028
|
-
Mermaid:
|
|
1029
|
-
Twitter:
|
|
1030
|
-
FlipX:
|
|
1031
|
-
FlipY:
|
|
1032
|
-
PencilRuler:
|
|
1008
|
+
EmojiIcon: nn,
|
|
1009
|
+
KatexIcon: rn,
|
|
1010
|
+
ExportPdf: ia,
|
|
1011
|
+
ExportWord: na,
|
|
1012
|
+
ImportWord: da,
|
|
1013
|
+
ColumnAddLeft: Qo,
|
|
1014
|
+
ColumnAddRight: ta,
|
|
1015
|
+
BookMarked: en,
|
|
1016
|
+
Excalidraw: ra,
|
|
1017
|
+
ZoomIn: tn,
|
|
1018
|
+
ZoomOut: Qi,
|
|
1019
|
+
Settings: Ji,
|
|
1020
|
+
Eye: Zi,
|
|
1021
|
+
TextDirection: ea,
|
|
1022
|
+
LeftToRight: aa,
|
|
1023
|
+
RightToLeft: sa,
|
|
1024
|
+
Attachment: Ki,
|
|
1025
|
+
GifIcon: oa,
|
|
1026
|
+
ChevronUp: Yi,
|
|
1027
|
+
Crop: Xi,
|
|
1028
|
+
Mermaid: ca,
|
|
1029
|
+
Twitter: la,
|
|
1030
|
+
FlipX: ji,
|
|
1031
|
+
FlipY: qi,
|
|
1032
|
+
PencilRuler: Gi
|
|
1033
1033
|
};
|
|
1034
|
-
function
|
|
1034
|
+
function ha({ fill: t }) {
|
|
1035
1035
|
return /* @__PURE__ */ i(
|
|
1036
1036
|
"svg",
|
|
1037
1037
|
{
|
|
@@ -1083,7 +1083,7 @@ function da({ fill: t }) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
);
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function ua(t) {
|
|
1087
1087
|
const [e, r] = S(void 0);
|
|
1088
1088
|
function n(c) {
|
|
1089
1089
|
var l;
|
|
@@ -1108,11 +1108,11 @@ function ha(t) {
|
|
|
1108
1108
|
action: a,
|
|
1109
1109
|
tooltipOptions: t == null ? void 0 : t.tooltipOptions,
|
|
1110
1110
|
shortcutKeys: t == null ? void 0 : t.shortcutKeys,
|
|
1111
|
-
children: /* @__PURE__ */ i("span", { className: "richtext-flex richtext-items-center richtext-justify-center richtext-text-sm", children: /* @__PURE__ */ i(
|
|
1111
|
+
children: /* @__PURE__ */ i("span", { className: "richtext-flex richtext-items-center richtext-justify-center richtext-text-sm", children: /* @__PURE__ */ i(ha, { fill: e }) })
|
|
1112
1112
|
}
|
|
1113
1113
|
),
|
|
1114
1114
|
/* @__PURE__ */ i(
|
|
1115
|
-
|
|
1115
|
+
fs,
|
|
1116
1116
|
{
|
|
1117
1117
|
selectedColor: e,
|
|
1118
1118
|
setSelectedColor: o,
|
|
@@ -1124,7 +1124,7 @@ function ha(t) {
|
|
|
1124
1124
|
)
|
|
1125
1125
|
] });
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function ma(t) {
|
|
1128
1128
|
const { t: e } = q(), [r, n] = S({
|
|
1129
1129
|
text: "",
|
|
1130
1130
|
link: ""
|
|
@@ -1204,10 +1204,10 @@ function ua(t) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
) });
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function xa(t, e, r = null) {
|
|
1208
1208
|
return r ? t.createChecked({ index: e }, r) : t.createAndFill({ index: e });
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function fa(t) {
|
|
1211
1211
|
if (t.cached.columnsNodeTypes)
|
|
1212
1212
|
return t.cached.columnsNodeTypes;
|
|
1213
1213
|
const e = {
|
|
@@ -1216,10 +1216,10 @@ function xa(t) {
|
|
|
1216
1216
|
};
|
|
1217
1217
|
return t.cached.columnsNodeTypes = e, e;
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1220
|
-
const n =
|
|
1219
|
+
function ga(t, e, r = null) {
|
|
1220
|
+
const n = fa(t), a = [];
|
|
1221
1221
|
for (let o = 0; o < e; o += 1) {
|
|
1222
|
-
const c =
|
|
1222
|
+
const c = xa(n.column, o, r);
|
|
1223
1223
|
c && a.push(c);
|
|
1224
1224
|
}
|
|
1225
1225
|
return n.columns.createChecked({ cols: e }, a);
|
|
@@ -1246,7 +1246,7 @@ function ve({
|
|
|
1246
1246
|
})), l.attrs.cols = l.content.length, l.content.forEach((m, x) => {
|
|
1247
1247
|
m.attrs.index = x;
|
|
1248
1248
|
});
|
|
1249
|
-
const h =
|
|
1249
|
+
const h = zi.fromJSON(t.schema, l);
|
|
1250
1250
|
let d = n.pos;
|
|
1251
1251
|
h.content.forEach((m, x, w) => {
|
|
1252
1252
|
w < s && (d += m.nodeSize);
|
|
@@ -1273,14 +1273,14 @@ function er({ state: t, dispatch: e, type: r }) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
return !1;
|
|
1275
1275
|
}
|
|
1276
|
-
const
|
|
1276
|
+
const pa = 200, se = yt.create({
|
|
1277
1277
|
name: "columns",
|
|
1278
1278
|
group: "block",
|
|
1279
1279
|
defining: !0,
|
|
1280
1280
|
isolating: !0,
|
|
1281
1281
|
allowGapCursor: !1,
|
|
1282
1282
|
content: "column{1,}",
|
|
1283
|
-
priority:
|
|
1283
|
+
priority: pa,
|
|
1284
1284
|
addOptions() {
|
|
1285
1285
|
return {
|
|
1286
1286
|
HTMLAttributes: {
|
|
@@ -1309,7 +1309,7 @@ const ga = 200, se = yt.create({
|
|
|
1309
1309
|
addCommands() {
|
|
1310
1310
|
return {
|
|
1311
1311
|
insertColumns: (t) => ({ tr: e, dispatch: r, editor: n }) => {
|
|
1312
|
-
const a =
|
|
1312
|
+
const a = ga(n.schema, t && t.cols || 3);
|
|
1313
1313
|
if (r) {
|
|
1314
1314
|
const o = e.selection.anchor + 1;
|
|
1315
1315
|
e.replaceSelectionWith(a).scrollIntoView().setSelection(Vt.near(e.doc.resolve(o)));
|
|
@@ -1367,17 +1367,17 @@ const ga = 200, se = yt.create({
|
|
|
1367
1367
|
}
|
|
1368
1368
|
});
|
|
1369
1369
|
var Se = /* @__PURE__ */ ((t) => (t[t.max = 7] = "max", t[t.min = 0] = "min", t[t.more = 1] = "more", t[t.less = -1] = "less", t))(Se || {});
|
|
1370
|
-
function
|
|
1370
|
+
function wa(t, e, r) {
|
|
1371
1371
|
return t < e ? e : t > r ? r : t;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function va(t, e, r, n) {
|
|
1374
1374
|
const { doc: a, selection: o } = t;
|
|
1375
|
-
if (!a || !o || !(o instanceof Vt || o instanceof
|
|
1375
|
+
if (!a || !o || !(o instanceof Vt || o instanceof Pi))
|
|
1376
1376
|
return t;
|
|
1377
1377
|
const { from: c, to: l } = o;
|
|
1378
1378
|
return a.nodesBetween(c, l, (s, h) => {
|
|
1379
1379
|
const d = s.type;
|
|
1380
|
-
return r.includes(d.name) ? (t = Me(t, h, e), !1) : !
|
|
1380
|
+
return r.includes(d.name) ? (t = Me(t, h, e), !1) : !yi(s.type.name, n.extensionManager.extensions);
|
|
1381
1381
|
}), t;
|
|
1382
1382
|
}
|
|
1383
1383
|
function Me(t, e, r) {
|
|
@@ -1386,7 +1386,7 @@ function Me(t, e, r) {
|
|
|
1386
1386
|
const n = t.doc.nodeAt(e);
|
|
1387
1387
|
if (!n)
|
|
1388
1388
|
return t;
|
|
1389
|
-
const c =
|
|
1389
|
+
const c = wa((n.attrs.indent || 0) + r, 0, 7);
|
|
1390
1390
|
if (c === n.attrs.indent)
|
|
1391
1391
|
return t;
|
|
1392
1392
|
const l = {
|
|
@@ -1395,18 +1395,18 @@ function Me(t, e, r) {
|
|
|
1395
1395
|
};
|
|
1396
1396
|
return t.setNodeMarkup(e, n.type, l, n.marks);
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function kl({ delta: t, types: e }) {
|
|
1399
1399
|
return ({ state: r, dispatch: n, editor: a }) => {
|
|
1400
1400
|
const { selection: o } = r;
|
|
1401
1401
|
let { tr: c } = r;
|
|
1402
|
-
return c = c.setSelection(o), c =
|
|
1402
|
+
return c = c.setSelection(o), c = va(c, t, e, a), c.docChanged ? (n && n(c), !0) : !1;
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
|
-
const
|
|
1405
|
+
const ba = {
|
|
1406
1406
|
setOpen: (t, e) => {
|
|
1407
1407
|
_e(bt.UPLOAD_IMAGE(t), e);
|
|
1408
1408
|
}
|
|
1409
|
-
}, ut = nt.Root, mt = nt.Trigger,
|
|
1409
|
+
}, ut = nt.Root, mt = nt.Trigger, ya = nt.Portal, Zr = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
1410
1410
|
nt.Overlay,
|
|
1411
1411
|
{
|
|
1412
1412
|
ref: r,
|
|
@@ -1418,7 +1418,7 @@ const va = {
|
|
|
1418
1418
|
}
|
|
1419
1419
|
));
|
|
1420
1420
|
Zr.displayName = nt.Overlay.displayName;
|
|
1421
|
-
const lt = F.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__ */ f(
|
|
1421
|
+
const lt = F.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__ */ f(ya, { children: [
|
|
1422
1422
|
/* @__PURE__ */ i(Zr, {}),
|
|
1423
1423
|
/* @__PURE__ */ f(
|
|
1424
1424
|
nt.Content,
|
|
@@ -1484,7 +1484,7 @@ const dt = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
|
1484
1484
|
}
|
|
1485
1485
|
));
|
|
1486
1486
|
dt.displayName = nt.Title.displayName;
|
|
1487
|
-
const
|
|
1487
|
+
const Ca = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
1488
1488
|
nt.Description,
|
|
1489
1489
|
{
|
|
1490
1490
|
ref: r,
|
|
@@ -1492,20 +1492,20 @@ const ya = F.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
|
1492
1492
|
...e
|
|
1493
1493
|
}
|
|
1494
1494
|
));
|
|
1495
|
-
|
|
1496
|
-
function
|
|
1495
|
+
Ca.displayName = nt.Description.displayName;
|
|
1496
|
+
function Sl(t) {
|
|
1497
1497
|
return t.replace(/^.*\/|\..+$/g, "");
|
|
1498
1498
|
}
|
|
1499
|
-
function
|
|
1499
|
+
function Ml(t) {
|
|
1500
1500
|
return t.split(".").pop();
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function Al(t) {
|
|
1503
1503
|
return t < 1024 ? `${t} Byte` : t < 1024 * 1024 ? `${(t / 1024).toFixed(2)} KB` : `${(t / 1024 / 1024).toFixed(2)} MB`;
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1505
|
+
function Ll(t) {
|
|
1506
1506
|
return t ? t === "application/pdf" ? "pdf" : t.startsWith("application/") && [".document", "word"].some((e) => t.includes(e)) ? "word" : t.startsWith("application/") && ["presentation"].some((e) => t.includes(e)) ? "excel" : t.startsWith("application/") && ["sheet"].some((e) => t.includes(e)) ? "ppt" : t.startsWith("image") ? "image" : t.startsWith("audio") ? "audio" : t.startsWith("video") ? "video" : "file" : "file";
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function Ta(t) {
|
|
1509
1509
|
return new Promise((e) => {
|
|
1510
1510
|
const r = new FileReader();
|
|
1511
1511
|
r.addEventListener(
|
|
@@ -1528,7 +1528,7 @@ function Gt(t, e) {
|
|
|
1528
1528
|
c[o] = a.charCodeAt(o);
|
|
1529
1529
|
return new File([c], e, { type: n });
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function Na({ editor: t, imageInline: e, onClose: r }) {
|
|
1532
1532
|
const { t: n } = q(), [a, o] = S(!1), c = Ot.useRef(null), [l, s] = Ot.useState(), [h, d] = Ot.useState(""), u = Z(null), [m, x] = S({
|
|
1533
1533
|
src: "",
|
|
1534
1534
|
file: null
|
|
@@ -1579,7 +1579,7 @@ function Ta({ editor: t, imageInline: e, onClose: r }) {
|
|
|
1579
1579
|
const y = (A = v == null ? void 0 : v.target) == null ? void 0 : A.files;
|
|
1580
1580
|
if (!t || t.isDestroyed || y.length === 0)
|
|
1581
1581
|
return;
|
|
1582
|
-
const C = y[0], L = await
|
|
1582
|
+
const C = y[0], L = await Ta(C);
|
|
1583
1583
|
o(!0), x({
|
|
1584
1584
|
src: L.src,
|
|
1585
1585
|
file: C
|
|
@@ -1600,7 +1600,7 @@ function Ta({ editor: t, imageInline: e, onClose: r }) {
|
|
|
1600
1600
|
/* @__PURE__ */ f(lt, { children: [
|
|
1601
1601
|
/* @__PURE__ */ i(dt, { children: n("editor.image.dialog.tab.uploadCrop") }),
|
|
1602
1602
|
/* @__PURE__ */ i("div", { children: m.src && /* @__PURE__ */ i(
|
|
1603
|
-
|
|
1603
|
+
uo,
|
|
1604
1604
|
{
|
|
1605
1605
|
className: "richtext-w-full",
|
|
1606
1606
|
crop: l,
|
|
@@ -1673,7 +1673,7 @@ function Ta({ editor: t, imageInline: e, onClose: r }) {
|
|
|
1673
1673
|
)
|
|
1674
1674
|
] });
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function ka(t) {
|
|
1677
1677
|
var w;
|
|
1678
1678
|
const { t: e } = q(), [r, n] = S(!1), a = (p) => {
|
|
1679
1679
|
n(p.detail);
|
|
@@ -1757,11 +1757,11 @@ function Na(t) {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
),
|
|
1759
1759
|
/* @__PURE__ */ i(
|
|
1760
|
-
|
|
1760
|
+
Na,
|
|
1761
1761
|
{
|
|
1762
1762
|
editor: t.editor,
|
|
1763
1763
|
imageInline: s,
|
|
1764
|
-
onClose: () =>
|
|
1764
|
+
onClose: () => ba.setOpen(t.editor.id, !1)
|
|
1765
1765
|
}
|
|
1766
1766
|
)
|
|
1767
1767
|
] }),
|
|
@@ -1807,7 +1807,7 @@ const Xt = {
|
|
|
1807
1807
|
BOTTOM_LEFT: "bl",
|
|
1808
1808
|
BOTTOM_RIGHT: "br"
|
|
1809
1809
|
};
|
|
1810
|
-
function
|
|
1810
|
+
function Sa(t) {
|
|
1811
1811
|
var A, N;
|
|
1812
1812
|
const [e, r] = S({
|
|
1813
1813
|
width: xt,
|
|
@@ -1953,19 +1953,19 @@ function ka(t) {
|
|
|
1953
1953
|
);
|
|
1954
1954
|
}
|
|
1955
1955
|
const Mt = new Oe("upload-image");
|
|
1956
|
-
function
|
|
1956
|
+
function Ma() {
|
|
1957
1957
|
return new He({
|
|
1958
1958
|
key: Mt,
|
|
1959
1959
|
state: {
|
|
1960
1960
|
init() {
|
|
1961
|
-
return
|
|
1961
|
+
return Oi.empty;
|
|
1962
1962
|
},
|
|
1963
1963
|
apply(t, e) {
|
|
1964
1964
|
e = e.map(t.mapping, t.doc);
|
|
1965
1965
|
const r = t.getMeta(Mt);
|
|
1966
1966
|
if (r != null && r.add)
|
|
1967
1967
|
for (const { id: n, pos: a, src: o } of r.add) {
|
|
1968
|
-
const c =
|
|
1968
|
+
const c = Aa(o), l = Ri.widget(a, c, { id: n });
|
|
1969
1969
|
e = e.add(t.doc, [l]);
|
|
1970
1970
|
}
|
|
1971
1971
|
else if (r != null && r.remove)
|
|
@@ -1981,18 +1981,18 @@ function Sa() {
|
|
|
1981
1981
|
}
|
|
1982
1982
|
});
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1984
|
+
function Aa(t) {
|
|
1985
1985
|
const e = document.createElement("div"), r = document.createElement("img");
|
|
1986
1986
|
return r.setAttribute("class", "opacity-50"), r.src = t, r.addEventListener("load", () => {
|
|
1987
1987
|
e.setAttribute("class", "img-placeholder");
|
|
1988
1988
|
}), e.append(r), e;
|
|
1989
1989
|
}
|
|
1990
|
-
function
|
|
1990
|
+
function La(t, e) {
|
|
1991
1991
|
var a;
|
|
1992
1992
|
const n = Mt.getState(t).find(void 0, void 0, (o) => o.id === e);
|
|
1993
1993
|
return n.length > 0 ? (a = n[0]) == null ? void 0 : a.from : null;
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1995
|
+
function Ia({ validateFn: t, onUpload: e, postUpload: r, defaultInline: n = !1 }) {
|
|
1996
1996
|
return (a, o, c) => {
|
|
1997
1997
|
for (const l of a) {
|
|
1998
1998
|
if (t && !t(l))
|
|
@@ -2007,7 +2007,7 @@ function La({ validateFn: t, onUpload: e, postUpload: r, defaultInline: n = !1 }
|
|
|
2007
2007
|
var T;
|
|
2008
2008
|
r && typeof u == "string" && (u = await r(u));
|
|
2009
2009
|
const { schema: m } = o.state;
|
|
2010
|
-
let x =
|
|
2010
|
+
let x = La(o.state, s);
|
|
2011
2011
|
if (x === null)
|
|
2012
2012
|
return;
|
|
2013
2013
|
const w = typeof u == "object" ? d : u, p = (T = m.nodes.image) == null ? void 0 : T.create({
|
|
@@ -2029,7 +2029,7 @@ function La({ validateFn: t, onUpload: e, postUpload: r, defaultInline: n = !1 }
|
|
|
2029
2029
|
}
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function Ea(t, e, r) {
|
|
2033
2033
|
var a;
|
|
2034
2034
|
const n = [...((a = e.clipboardData) == null ? void 0 : a.files) || []];
|
|
2035
2035
|
if (n.length > 0) {
|
|
@@ -2039,7 +2039,7 @@ function Ia(t, e, r) {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
return !1;
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function za(t, e, r, n) {
|
|
2043
2043
|
var o;
|
|
2044
2044
|
const a = [...((o = e.dataTransfer) == null ? void 0 : o.files) || []];
|
|
2045
2045
|
if (!r && a.length > 0) {
|
|
@@ -2053,7 +2053,7 @@ function Ea(t, e, r, n) {
|
|
|
2053
2053
|
}
|
|
2054
2054
|
return !1;
|
|
2055
2055
|
}
|
|
2056
|
-
const
|
|
2056
|
+
const Pa = {
|
|
2057
2057
|
acceptMimes: ["image/jpeg", "image/gif", "image/png", "image/jpg"],
|
|
2058
2058
|
maxSize: 1024 * 1024 * 5,
|
|
2059
2059
|
// 5MB
|
|
@@ -2068,7 +2068,7 @@ const za = {
|
|
|
2068
2068
|
addOptions() {
|
|
2069
2069
|
var t;
|
|
2070
2070
|
return {
|
|
2071
|
-
...
|
|
2071
|
+
...Pa,
|
|
2072
2072
|
...(t = this.parent) == null ? void 0 : t.call(this),
|
|
2073
2073
|
upload: () => Promise.reject("Image Upload Function"),
|
|
2074
2074
|
button: ({
|
|
@@ -2078,7 +2078,7 @@ const za = {
|
|
|
2078
2078
|
}) => {
|
|
2079
2079
|
var a, o;
|
|
2080
2080
|
return {
|
|
2081
|
-
component:
|
|
2081
|
+
component: ka,
|
|
2082
2082
|
componentProps: {
|
|
2083
2083
|
action: () => !0,
|
|
2084
2084
|
upload: r.options.upload,
|
|
@@ -2129,7 +2129,7 @@ const za = {
|
|
|
2129
2129
|
};
|
|
2130
2130
|
},
|
|
2131
2131
|
addNodeView() {
|
|
2132
|
-
return pt(
|
|
2132
|
+
return pt(Sa);
|
|
2133
2133
|
},
|
|
2134
2134
|
addCommands() {
|
|
2135
2135
|
var t;
|
|
@@ -2205,7 +2205,7 @@ const za = {
|
|
|
2205
2205
|
];
|
|
2206
2206
|
},
|
|
2207
2207
|
addProseMirrorPlugins() {
|
|
2208
|
-
const e =
|
|
2208
|
+
const e = Ia({
|
|
2209
2209
|
validateFn: (r) => !(!this.options.acceptMimes.includes(r.type) || r.size > this.options.maxSize),
|
|
2210
2210
|
onUpload: this.options.upload,
|
|
2211
2211
|
// postUpload: this.options.postUpload,
|
|
@@ -2214,18 +2214,18 @@ const za = {
|
|
|
2214
2214
|
return [
|
|
2215
2215
|
new He({
|
|
2216
2216
|
props: {
|
|
2217
|
-
handlePaste: (r, n) => !n.clipboardData || [...n.clipboardData.files || []].some((o) => o.type === "text/html") ? !1 :
|
|
2218
|
-
handleDrop: (r, n, a, o) => (!(n instanceof DragEvent) || !n.dataTransfer ||
|
|
2217
|
+
handlePaste: (r, n) => !n.clipboardData || [...n.clipboardData.files || []].some((o) => o.type === "text/html") ? !1 : Ea(r, n, e),
|
|
2218
|
+
handleDrop: (r, n, a, o) => (!(n instanceof DragEvent) || !n.dataTransfer || za(r, n, o, e), !1)
|
|
2219
2219
|
}
|
|
2220
2220
|
}),
|
|
2221
|
-
|
|
2221
|
+
Ma()
|
|
2222
2222
|
];
|
|
2223
2223
|
}
|
|
2224
2224
|
});
|
|
2225
|
-
function
|
|
2225
|
+
function Ra(t) {
|
|
2226
2226
|
return /\.(?:mp4|webm|ogg|mov)$/i.test(t);
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2228
|
+
function Oa(t) {
|
|
2229
2229
|
const { t: e } = q(), [r, n] = S(""), a = Z(null), [o, c] = S(""), [l, s] = S(!1), h = (w) => {
|
|
2230
2230
|
s(w.detail);
|
|
2231
2231
|
};
|
|
@@ -2325,7 +2325,7 @@ function Ra(t) {
|
|
|
2325
2325
|
value: r,
|
|
2326
2326
|
onChange: (w) => {
|
|
2327
2327
|
const p = w.target.value;
|
|
2328
|
-
if (!
|
|
2328
|
+
if (!Ra(p)) {
|
|
2329
2329
|
c("Invalid video URL"), n("");
|
|
2330
2330
|
return;
|
|
2331
2331
|
}
|
|
@@ -2345,7 +2345,7 @@ function Ra(t) {
|
|
|
2345
2345
|
}
|
|
2346
2346
|
);
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function Ha(t) {
|
|
2349
2349
|
return t = t.replace("https://youtu.be/", "https://www.youtube.com/watch?v=").replace("watch?v=", "embed/"), t = t.replace("https://vimeo.com/", "https://player.vimeo.com/video/"), /^https?:\/\/www.bilibili.com\/video\/.*/i.test(t) && (t = t.replace(/\?.*$/, "").replace("https://www.bilibili.com/video/", "https://player.bilibili.com/player.html?bvid=")), t.includes("drive.google.com") && (t = t.replace("/view", "/preview")), t;
|
|
2350
2350
|
}
|
|
2351
2351
|
const Qr = yt.create({
|
|
@@ -2369,7 +2369,7 @@ const Qr = yt.create({
|
|
|
2369
2369
|
button: ({ editor: t, t: e }) => {
|
|
2370
2370
|
var r, n;
|
|
2371
2371
|
return {
|
|
2372
|
-
component:
|
|
2372
|
+
component: Oa,
|
|
2373
2373
|
componentProps: {
|
|
2374
2374
|
action: () => {
|
|
2375
2375
|
},
|
|
@@ -2389,13 +2389,13 @@ const Qr = yt.create({
|
|
|
2389
2389
|
src: {
|
|
2390
2390
|
default: null,
|
|
2391
2391
|
renderHTML: ({ src: t }) => ({
|
|
2392
|
-
src: t ?
|
|
2392
|
+
src: t ? Ha(t) : null
|
|
2393
2393
|
})
|
|
2394
2394
|
},
|
|
2395
2395
|
width: {
|
|
2396
2396
|
default: this.options.width,
|
|
2397
2397
|
renderHTML: ({ width: t }) => ({
|
|
2398
|
-
width:
|
|
2398
|
+
width: Co(t)
|
|
2399
2399
|
})
|
|
2400
2400
|
},
|
|
2401
2401
|
frameborder: {
|
|
@@ -2435,12 +2435,12 @@ const Qr = yt.create({
|
|
|
2435
2435
|
updateVideo: (t) => ({ commands: e }) => e.updateAttributes(this.name, t)
|
|
2436
2436
|
};
|
|
2437
2437
|
}
|
|
2438
|
-
}),
|
|
2439
|
-
wrap:
|
|
2440
|
-
innerWrap:
|
|
2438
|
+
}), Da = "_wrap_5y04w_1", _a = "_innerWrap_5y04w_15", rr = {
|
|
2439
|
+
wrap: Da,
|
|
2440
|
+
innerWrap: _a
|
|
2441
2441
|
};
|
|
2442
|
-
function
|
|
2443
|
-
const n =
|
|
2442
|
+
function Ba({ editor: t, node: e, updateAttributes: r }) {
|
|
2443
|
+
const n = po(), { url: a, width: o, height: c } = e.attrs, [l, s] = S("");
|
|
2444
2444
|
function h() {
|
|
2445
2445
|
l && t.chain().updateAttributes(Nt.name, {
|
|
2446
2446
|
url: l
|
|
@@ -2502,7 +2502,7 @@ function _a({ editor: t, node: e, updateAttributes: r }) {
|
|
|
2502
2502
|
)
|
|
2503
2503
|
] });
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function $a(t) {
|
|
2506
2506
|
try {
|
|
2507
2507
|
return JSON.stringify(t);
|
|
2508
2508
|
} catch {
|
|
@@ -2535,14 +2535,14 @@ function At(t, e = !1) {
|
|
|
2535
2535
|
return o !== o ? a : o;
|
|
2536
2536
|
};
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2538
|
+
function Va(t) {
|
|
2539
2539
|
const { attrs: e } = t;
|
|
2540
2540
|
return Object.keys(e).reduce((r, n) => {
|
|
2541
2541
|
const a = e[n];
|
|
2542
2542
|
if (a == null)
|
|
2543
2543
|
return r;
|
|
2544
2544
|
let o = "";
|
|
2545
|
-
return typeof a == "object" ? o =
|
|
2545
|
+
return typeof a == "object" ? o = $a(a) : o = a, r[n] = o, r;
|
|
2546
2546
|
}, /* @__PURE__ */ Object.create(null));
|
|
2547
2547
|
}
|
|
2548
2548
|
const Nt = yt.create({
|
|
@@ -2636,7 +2636,7 @@ const Nt = yt.create({
|
|
|
2636
2636
|
];
|
|
2637
2637
|
},
|
|
2638
2638
|
addNodeView() {
|
|
2639
|
-
return pt(
|
|
2639
|
+
return pt(Ba);
|
|
2640
2640
|
}
|
|
2641
2641
|
}), qt = F.forwardRef(
|
|
2642
2642
|
({ className: t, ...e }, r) => /* @__PURE__ */ i(
|
|
@@ -2652,11 +2652,11 @@ const Nt = yt.create({
|
|
|
2652
2652
|
)
|
|
2653
2653
|
);
|
|
2654
2654
|
qt.displayName = "Textarea";
|
|
2655
|
-
function
|
|
2655
|
+
function Wa(t) {
|
|
2656
2656
|
return t;
|
|
2657
2657
|
}
|
|
2658
2658
|
function Et(t, e, r, n) {
|
|
2659
|
-
const a =
|
|
2659
|
+
const a = Wa, [o, c] = S(a(r)), l = Z(o);
|
|
2660
2660
|
return B(() => {
|
|
2661
2661
|
const s = () => {
|
|
2662
2662
|
const h = { ...r, ...t.getAttributes(e) };
|
|
@@ -2671,7 +2671,7 @@ function Et(t, e, r, n) {
|
|
|
2671
2671
|
};
|
|
2672
2672
|
}, [t, r, e, a]), o;
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function Fa({ editor: t, ...e }) {
|
|
2675
2675
|
const { t: r } = q(), n = Et(t, St.name, {
|
|
2676
2676
|
text: "",
|
|
2677
2677
|
defaultShowPicker: !1
|
|
@@ -2752,16 +2752,16 @@ function Wa({ editor: t, ...e }) {
|
|
|
2752
2752
|
)
|
|
2753
2753
|
] });
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2755
|
+
function Ua() {
|
|
2756
2756
|
const [t] = Or((e) => e.value);
|
|
2757
2757
|
return t;
|
|
2758
2758
|
}
|
|
2759
|
-
const
|
|
2759
|
+
const Ga = {
|
|
2760
2760
|
setTheme: (t, e) => {
|
|
2761
2761
|
_e(bt.UPDATE_THEME(t), e);
|
|
2762
2762
|
}
|
|
2763
2763
|
};
|
|
2764
|
-
function
|
|
2764
|
+
function qa(t, e = 1) {
|
|
2765
2765
|
let r = 0, n = 0, a = 0;
|
|
2766
2766
|
if (t.startsWith("rgb")) {
|
|
2767
2767
|
const o = t.replace(/\s/g, "").match(/rgb\((.*)\)$/)[1].split(",");
|
|
@@ -2773,10 +2773,10 @@ function Ga(t, e = 1) {
|
|
|
2773
2773
|
return t;
|
|
2774
2774
|
return e > 1 && e <= 100 && (e = e / 100), `rgba(${r},${n},${a},${e})`;
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2777
|
-
const e =
|
|
2776
|
+
function ja({ node: t }) {
|
|
2777
|
+
const e = Ua(), { text: r } = t.attrs, n = U(() => {
|
|
2778
2778
|
const c = "rgb(254, 242, 237)";
|
|
2779
|
-
return e === "dark" ?
|
|
2779
|
+
return e === "dark" ? qa(c, 0.75) : c;
|
|
2780
2780
|
}, [e]), a = U(() => {
|
|
2781
2781
|
try {
|
|
2782
2782
|
return De.renderToString(`${r}`);
|
|
@@ -2799,7 +2799,7 @@ function qa({ node: t }) {
|
|
|
2799
2799
|
}
|
|
2800
2800
|
);
|
|
2801
2801
|
}
|
|
2802
|
-
function
|
|
2802
|
+
function Xa(t) {
|
|
2803
2803
|
return (e) => e.getAttribute(t);
|
|
2804
2804
|
}
|
|
2805
2805
|
const St = yt.create({
|
|
@@ -2815,7 +2815,7 @@ const St = yt.create({
|
|
|
2815
2815
|
class: "katex"
|
|
2816
2816
|
},
|
|
2817
2817
|
button: ({ editor: t, t: e }) => ({
|
|
2818
|
-
component:
|
|
2818
|
+
component: Fa,
|
|
2819
2819
|
componentProps: {
|
|
2820
2820
|
editor: t,
|
|
2821
2821
|
action: () => !0,
|
|
@@ -2831,7 +2831,7 @@ const St = yt.create({
|
|
|
2831
2831
|
return {
|
|
2832
2832
|
text: {
|
|
2833
2833
|
default: "",
|
|
2834
|
-
parseHTML:
|
|
2834
|
+
parseHTML: Xa("text")
|
|
2835
2835
|
},
|
|
2836
2836
|
defaultShowPicker: {
|
|
2837
2837
|
default: !1
|
|
@@ -2862,28 +2862,28 @@ const St = yt.create({
|
|
|
2862
2862
|
];
|
|
2863
2863
|
},
|
|
2864
2864
|
addNodeView() {
|
|
2865
|
-
return pt(
|
|
2865
|
+
return pt(ja);
|
|
2866
2866
|
}
|
|
2867
2867
|
});
|
|
2868
2868
|
let be;
|
|
2869
2869
|
function We() {
|
|
2870
2870
|
try {
|
|
2871
|
-
return be || (be =
|
|
2871
|
+
return be || (be = Si()), be;
|
|
2872
2872
|
} catch {
|
|
2873
2873
|
throw new Error("Error EventEmitter");
|
|
2874
2874
|
}
|
|
2875
2875
|
}
|
|
2876
2876
|
const Ae = "OPEN_EXCALIDRAW_SETTING_MODAL";
|
|
2877
|
-
function
|
|
2877
|
+
function Ya(t, e) {
|
|
2878
2878
|
We().on(t, e);
|
|
2879
2879
|
}
|
|
2880
|
-
function
|
|
2880
|
+
function Ka(t, e) {
|
|
2881
2881
|
We().off(t, e);
|
|
2882
2882
|
}
|
|
2883
|
-
function
|
|
2883
|
+
function Za(t) {
|
|
2884
2884
|
We().emit(Ae, t);
|
|
2885
2885
|
}
|
|
2886
|
-
const
|
|
2886
|
+
const Ja = ({ editor: t }) => {
|
|
2887
2887
|
const [e, r] = S(null), [n, a] = S({}), [o, c] = S({ elements: [], appState: { isLoading: !1 }, files: null }), [l, s] = S(!1), [h, d] = S(!0), [u, m] = S(null), x = O(
|
|
2888
2888
|
(I) => {
|
|
2889
2889
|
I && import("@excalidraw/excalidraw").then((T) => {
|
|
@@ -2912,8 +2912,8 @@ const Za = ({ editor: t }) => {
|
|
|
2912
2912
|
const I = (T) => {
|
|
2913
2913
|
s(!0), T && c(T.data);
|
|
2914
2914
|
};
|
|
2915
|
-
return
|
|
2916
|
-
|
|
2915
|
+
return Ya(Ae, I), () => {
|
|
2916
|
+
Ka(Ae, I);
|
|
2917
2917
|
};
|
|
2918
2918
|
}, [t, s]), /* @__PURE__ */ f(
|
|
2919
2919
|
ut,
|
|
@@ -2963,13 +2963,13 @@ const Za = ({ editor: t }) => {
|
|
|
2963
2963
|
]
|
|
2964
2964
|
}
|
|
2965
2965
|
);
|
|
2966
|
-
},
|
|
2967
|
-
wrap:
|
|
2968
|
-
renderWrap:
|
|
2969
|
-
title:
|
|
2970
|
-
handlerWrap:
|
|
2971
|
-
},
|
|
2972
|
-
function
|
|
2966
|
+
}, Qa = "_wrap_15k3c_1", tc = "_renderWrap_15k3c_7", ec = "_title_15k3c_14", rc = "_handlerWrap_15k3c_30", zt = {
|
|
2967
|
+
wrap: Qa,
|
|
2968
|
+
renderWrap: tc,
|
|
2969
|
+
title: ec,
|
|
2970
|
+
handlerWrap: rc
|
|
2971
|
+
}, ic = 10, nc = 200, ir = 15, nr = { width: "100%", height: "100%", maxWidth: "100%" };
|
|
2972
|
+
function oc({ editor: t, node: e, updateAttributes: r }) {
|
|
2973
2973
|
const n = Z(null), a = t.isActive(kt.name), { data: o, width: c, height: l } = e.attrs, [s, h] = S(null), [d, u] = S(!0), [m, x] = S(null), [w, p] = S(!1), [g, I] = S(100), T = O(
|
|
2974
2974
|
(C) => {
|
|
2975
2975
|
C && p(!0);
|
|
@@ -2977,7 +2977,7 @@ function nc({ editor: t, node: e, updateAttributes: r }) {
|
|
|
2977
2977
|
[p]
|
|
2978
2978
|
), v = O((C) => () => {
|
|
2979
2979
|
I(
|
|
2980
|
-
(L) => Be(C === "minus" ? L - ir : L + ir,
|
|
2980
|
+
(L) => Be(C === "minus" ? L - ir : L + ir, ic, nc)
|
|
2981
2981
|
);
|
|
2982
2982
|
}, []);
|
|
2983
2983
|
B(() => {
|
|
@@ -3001,7 +3001,7 @@ function nc({ editor: t, node: e, updateAttributes: r }) {
|
|
|
3001
3001
|
const y = (C) => {
|
|
3002
3002
|
r({ width: C.width, height: C.height });
|
|
3003
3003
|
};
|
|
3004
|
-
return /* @__PURE__ */ i(gt, { className: ne(zt.wrap, a && zt.isActive), children: /* @__PURE__ */ i(
|
|
3004
|
+
return /* @__PURE__ */ i(gt, { className: ne(zt.wrap, a && zt.isActive), children: /* @__PURE__ */ i(Hi, { onChange: T, children: /* @__PURE__ */ i(
|
|
3005
3005
|
Pr,
|
|
3006
3006
|
{
|
|
3007
3007
|
size: { width: Number.parseInt(c), height: Number.parseInt(l) },
|
|
@@ -3061,7 +3061,7 @@ function nc({ editor: t, node: e, updateAttributes: r }) {
|
|
|
3061
3061
|
}
|
|
3062
3062
|
) }) });
|
|
3063
3063
|
}
|
|
3064
|
-
const
|
|
3064
|
+
const ac = Ot.memo(oc, (t, e) => !!yr(t.node.attrs, e.node.attrs)), or = { elements: [] }, kt = yt.create({
|
|
3065
3065
|
name: "excalidraw",
|
|
3066
3066
|
group: "block",
|
|
3067
3067
|
selectable: !0,
|
|
@@ -3098,7 +3098,7 @@ const oc = Ot.memo(nc, (t, e) => !!yr(t.node.attrs, e.node.attrs)), or = { eleme
|
|
|
3098
3098
|
class: "excalidraw"
|
|
3099
3099
|
},
|
|
3100
3100
|
button: ({ editor: e }) => ({
|
|
3101
|
-
component:
|
|
3101
|
+
component: Ja,
|
|
3102
3102
|
componentProps: {
|
|
3103
3103
|
editor: e
|
|
3104
3104
|
}
|
|
@@ -3113,7 +3113,7 @@ const oc = Ot.memo(nc, (t, e) => !!yr(t.node.attrs, e.node.attrs)), or = { eleme
|
|
|
3113
3113
|
];
|
|
3114
3114
|
},
|
|
3115
3115
|
renderHTML({ HTMLAttributes: t, node: e }) {
|
|
3116
|
-
return ["div", st(this.options.HTMLAttributes, t,
|
|
3116
|
+
return ["div", st(this.options.HTMLAttributes, t, Va(e))];
|
|
3117
3117
|
},
|
|
3118
3118
|
addCommands() {
|
|
3119
3119
|
return {
|
|
@@ -3127,7 +3127,7 @@ const oc = Ot.memo(nc, (t, e) => !!yr(t.node.attrs, e.node.attrs)), or = { eleme
|
|
|
3127
3127
|
};
|
|
3128
3128
|
},
|
|
3129
3129
|
addNodeView() {
|
|
3130
|
-
return pt(
|
|
3130
|
+
return pt(ac);
|
|
3131
3131
|
},
|
|
3132
3132
|
addInputRules() {
|
|
3133
3133
|
return [
|
|
@@ -3139,7 +3139,7 @@ const oc = Ot.memo(nc, (t, e) => !!yr(t.node.attrs, e.node.attrs)), or = { eleme
|
|
|
3139
3139
|
];
|
|
3140
3140
|
}
|
|
3141
3141
|
});
|
|
3142
|
-
function
|
|
3142
|
+
function cc({ selectImage: t, giphyApiKey: e, children: r }) {
|
|
3143
3143
|
const [n, a] = S([]), [o] = S(15), c = Z(null), l = (h, d = "search") => {
|
|
3144
3144
|
if (!e)
|
|
3145
3145
|
return;
|
|
@@ -3200,9 +3200,9 @@ function ac({ selectImage: t, giphyApiKey: e, children: r }) {
|
|
|
3200
3200
|
)
|
|
3201
3201
|
] });
|
|
3202
3202
|
}
|
|
3203
|
-
function
|
|
3203
|
+
function sc({ editor: t, icon: e, giphyApiKey: r, ...n }) {
|
|
3204
3204
|
return /* @__PURE__ */ i(
|
|
3205
|
-
|
|
3205
|
+
cc,
|
|
3206
3206
|
{
|
|
3207
3207
|
giphyApiKey: r,
|
|
3208
3208
|
selectImage: (o) => {
|
|
@@ -3225,7 +3225,7 @@ const Yt = {
|
|
|
3225
3225
|
BOTTOM_LEFT: "bl",
|
|
3226
3226
|
BOTTOM_RIGHT: "br"
|
|
3227
3227
|
};
|
|
3228
|
-
function
|
|
3228
|
+
function lc(t) {
|
|
3229
3229
|
var L, A;
|
|
3230
3230
|
const [e, r] = S({
|
|
3231
3231
|
width: xt,
|
|
@@ -3384,7 +3384,7 @@ const ti = le.extend({
|
|
|
3384
3384
|
var o;
|
|
3385
3385
|
const a = ((o = r == null ? void 0 : r.options) == null ? void 0 : o.GIPHY_API_KEY) || "";
|
|
3386
3386
|
return {
|
|
3387
|
-
component:
|
|
3387
|
+
component: sc,
|
|
3388
3388
|
componentProps: {
|
|
3389
3389
|
editor: e,
|
|
3390
3390
|
action: () => {
|
|
@@ -3423,7 +3423,7 @@ const ti = le.extend({
|
|
|
3423
3423
|
};
|
|
3424
3424
|
},
|
|
3425
3425
|
addNodeView() {
|
|
3426
|
-
return pt(
|
|
3426
|
+
return pt(lc);
|
|
3427
3427
|
},
|
|
3428
3428
|
addCommands() {
|
|
3429
3429
|
var t;
|
|
@@ -3481,7 +3481,7 @@ function xe(t = 8) {
|
|
|
3481
3481
|
return Math.random().toString(36).substring(2, t + 2);
|
|
3482
3482
|
}
|
|
3483
3483
|
const ar = `graph TB
|
|
3484
|
-
a-->b`,
|
|
3484
|
+
a-->b`, dc = ({ editor: t, upload: e }) => {
|
|
3485
3485
|
const [r, n] = S(ar), [a, o] = S(""), [c, l] = S(!1), s = Z(null), h = async (m) => {
|
|
3486
3486
|
try {
|
|
3487
3487
|
const { svg: x } = await ae.render("mermaid-svg", m);
|
|
@@ -3585,7 +3585,7 @@ a-->b`, lc = ({ editor: t, upload: e }) => {
|
|
|
3585
3585
|
BOTTOM_LEFT: "bl",
|
|
3586
3586
|
BOTTOM_RIGHT: "br"
|
|
3587
3587
|
};
|
|
3588
|
-
function
|
|
3588
|
+
function hc({ editor: t, node: e, updateAttributes: r, getPos: n, selected: a }) {
|
|
3589
3589
|
const [o, c] = S({
|
|
3590
3590
|
width: xt,
|
|
3591
3591
|
height: xt
|
|
@@ -3742,7 +3742,7 @@ const cr = le.extend({
|
|
|
3742
3742
|
button: ({ editor: e, t: r, extension: n }) => {
|
|
3743
3743
|
var a;
|
|
3744
3744
|
return {
|
|
3745
|
-
component:
|
|
3745
|
+
component: dc,
|
|
3746
3746
|
componentProps: {
|
|
3747
3747
|
action: () => !0,
|
|
3748
3748
|
isActive: () => !1,
|
|
@@ -3790,7 +3790,7 @@ const cr = le.extend({
|
|
|
3790
3790
|
};
|
|
3791
3791
|
},
|
|
3792
3792
|
addNodeView() {
|
|
3793
|
-
return pt(
|
|
3793
|
+
return pt(hc);
|
|
3794
3794
|
},
|
|
3795
3795
|
// @ts-ignore
|
|
3796
3796
|
addCommands() {
|
|
@@ -3842,10 +3842,10 @@ const cr = le.extend({
|
|
|
3842
3842
|
];
|
|
3843
3843
|
}
|
|
3844
3844
|
});
|
|
3845
|
-
function
|
|
3845
|
+
function uc({ node: t }) {
|
|
3846
3846
|
var n;
|
|
3847
3847
|
const e = ((n = t == null ? void 0 : t.attrs) == null ? void 0 : n.src) || "", r = e == null ? void 0 : e.split("/").pop();
|
|
3848
|
-
return r ? /* @__PURE__ */ i(gt, { children: /* @__PURE__ */ i("div", { "data-twitter": "", children: /* @__PURE__ */ i(
|
|
3848
|
+
return r ? /* @__PURE__ */ i(gt, { children: /* @__PURE__ */ i("div", { "data-twitter": "", children: /* @__PURE__ */ i(Di, { id: r }) }) }) : null;
|
|
3849
3849
|
}
|
|
3850
3850
|
function ei(t) {
|
|
3851
3851
|
const { t: e } = q(), [r, n] = S("");
|
|
@@ -3889,7 +3889,7 @@ function ei(t) {
|
|
|
3889
3889
|
}
|
|
3890
3890
|
) });
|
|
3891
3891
|
}
|
|
3892
|
-
function
|
|
3892
|
+
function mc(t) {
|
|
3893
3893
|
function e(r) {
|
|
3894
3894
|
t.action && t.action(r);
|
|
3895
3895
|
}
|
|
@@ -3906,9 +3906,9 @@ function uc(t) {
|
|
|
3906
3906
|
/* @__PURE__ */ i(Tt, { hideWhenDetached: !0, className: "richtext-w-full", align: "start", side: "bottom", children: /* @__PURE__ */ i(ei, { editor: t.editor, onSetLink: e }) })
|
|
3907
3907
|
] });
|
|
3908
3908
|
}
|
|
3909
|
-
const
|
|
3909
|
+
const xc = /(https?:\/\/)?(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?/g, fc = /^https?:\/\/(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?$/;
|
|
3910
3910
|
function sr(t) {
|
|
3911
|
-
return t.match(
|
|
3911
|
+
return t.match(fc);
|
|
3912
3912
|
}
|
|
3913
3913
|
const Le = yt.create({
|
|
3914
3914
|
name: "twitter",
|
|
@@ -3921,7 +3921,7 @@ const Le = yt.create({
|
|
|
3921
3921
|
inline: !1,
|
|
3922
3922
|
origin: "",
|
|
3923
3923
|
button: ({ editor: t, t: e }) => ({
|
|
3924
|
-
component:
|
|
3924
|
+
component: mc,
|
|
3925
3925
|
componentProps: {
|
|
3926
3926
|
action: (r) => {
|
|
3927
3927
|
t.commands.setTweet({ src: r });
|
|
@@ -3936,7 +3936,7 @@ const Le = yt.create({
|
|
|
3936
3936
|
};
|
|
3937
3937
|
},
|
|
3938
3938
|
addNodeView() {
|
|
3939
|
-
return pt(
|
|
3939
|
+
return pt(uc, { attrs: this.options.HTMLAttributes });
|
|
3940
3940
|
},
|
|
3941
3941
|
inline() {
|
|
3942
3942
|
return this.options.inline;
|
|
@@ -3969,8 +3969,8 @@ const Le = yt.create({
|
|
|
3969
3969
|
},
|
|
3970
3970
|
addPasteRules() {
|
|
3971
3971
|
return this.options.addPasteHandler ? [
|
|
3972
|
-
|
|
3973
|
-
find:
|
|
3972
|
+
Ci({
|
|
3973
|
+
find: xc,
|
|
3974
3974
|
type: this.type,
|
|
3975
3975
|
getAttributes: (t) => ({ src: t.input })
|
|
3976
3976
|
})
|
|
@@ -3979,18 +3979,18 @@ const Le = yt.create({
|
|
|
3979
3979
|
renderHTML({ HTMLAttributes: t }) {
|
|
3980
3980
|
return ["div", st({ "data-twitter": "" }, t)];
|
|
3981
3981
|
}
|
|
3982
|
-
}),
|
|
3983
|
-
wrapper:
|
|
3984
|
-
tool:
|
|
3985
|
-
active:
|
|
3986
|
-
pen:
|
|
3987
|
-
line:
|
|
3988
|
-
options:
|
|
3989
|
-
colorWrap:
|
|
3990
|
-
color:
|
|
3991
|
-
colorActive:
|
|
3982
|
+
}), gc = "_wrapper_rraz2_1", pc = "_tool_rraz2_17", wc = "_active_rraz2_37", vc = "_pen_rraz2_41", bc = "_line_rraz2_48", yc = "_options_rraz2_56", Cc = "_colorWrap_rraz2_66", Tc = "_color_rraz2_66", Nc = "_colorActive_rraz2_83", z = {
|
|
3983
|
+
wrapper: gc,
|
|
3984
|
+
tool: pc,
|
|
3985
|
+
active: wc,
|
|
3986
|
+
pen: vc,
|
|
3987
|
+
line: bc,
|
|
3988
|
+
options: yc,
|
|
3989
|
+
colorWrap: Cc,
|
|
3990
|
+
color: Tc,
|
|
3991
|
+
colorActive: Nc
|
|
3992
3992
|
};
|
|
3993
|
-
function
|
|
3993
|
+
function kc(t) {
|
|
3994
3994
|
return /* @__PURE__ */ i(
|
|
3995
3995
|
"svg",
|
|
3996
3996
|
{
|
|
@@ -4014,7 +4014,7 @@ function Nc(t) {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
);
|
|
4016
4016
|
}
|
|
4017
|
-
function
|
|
4017
|
+
function Sc(t) {
|
|
4018
4018
|
return /* @__PURE__ */ i(
|
|
4019
4019
|
"svg",
|
|
4020
4020
|
{
|
|
@@ -4033,7 +4033,7 @@ function kc(t) {
|
|
|
4033
4033
|
}
|
|
4034
4034
|
);
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4036
|
+
function Mc(t) {
|
|
4037
4037
|
return /* @__PURE__ */ i(
|
|
4038
4038
|
"svg",
|
|
4039
4039
|
{
|
|
@@ -4052,7 +4052,7 @@ function Sc(t) {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
);
|
|
4054
4054
|
}
|
|
4055
|
-
function
|
|
4055
|
+
function Ac(t) {
|
|
4056
4056
|
return /* @__PURE__ */ i(
|
|
4057
4057
|
"svg",
|
|
4058
4058
|
{
|
|
@@ -4071,7 +4071,7 @@ function Mc(t) {
|
|
|
4071
4071
|
}
|
|
4072
4072
|
);
|
|
4073
4073
|
}
|
|
4074
|
-
function
|
|
4074
|
+
function Lc(t) {
|
|
4075
4075
|
return /* @__PURE__ */ f(
|
|
4076
4076
|
"svg",
|
|
4077
4077
|
{
|
|
@@ -4099,7 +4099,7 @@ function Ac(t) {
|
|
|
4099
4099
|
}
|
|
4100
4100
|
);
|
|
4101
4101
|
}
|
|
4102
|
-
function
|
|
4102
|
+
function Ic(t) {
|
|
4103
4103
|
return /* @__PURE__ */ i(
|
|
4104
4104
|
"svg",
|
|
4105
4105
|
{
|
|
@@ -4118,7 +4118,7 @@ function Lc(t) {
|
|
|
4118
4118
|
}
|
|
4119
4119
|
);
|
|
4120
4120
|
}
|
|
4121
|
-
function
|
|
4121
|
+
function Ec(t) {
|
|
4122
4122
|
return /* @__PURE__ */ i(
|
|
4123
4123
|
"svg",
|
|
4124
4124
|
{
|
|
@@ -4137,7 +4137,7 @@ function Ic(t) {
|
|
|
4137
4137
|
}
|
|
4138
4138
|
);
|
|
4139
4139
|
}
|
|
4140
|
-
function
|
|
4140
|
+
function zc(t) {
|
|
4141
4141
|
return /* @__PURE__ */ i(
|
|
4142
4142
|
"svg",
|
|
4143
4143
|
{
|
|
@@ -4156,7 +4156,7 @@ function Ec(t) {
|
|
|
4156
4156
|
}
|
|
4157
4157
|
);
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function Pc(t) {
|
|
4160
4160
|
return /* @__PURE__ */ i(
|
|
4161
4161
|
"svg",
|
|
4162
4162
|
{
|
|
@@ -4179,7 +4179,7 @@ function zc(t) {
|
|
|
4179
4179
|
}
|
|
4180
4180
|
);
|
|
4181
4181
|
}
|
|
4182
|
-
function
|
|
4182
|
+
function Rc(t) {
|
|
4183
4183
|
return /* @__PURE__ */ i(
|
|
4184
4184
|
"svg",
|
|
4185
4185
|
{
|
|
@@ -4198,7 +4198,7 @@ function Pc(t) {
|
|
|
4198
4198
|
}
|
|
4199
4199
|
);
|
|
4200
4200
|
}
|
|
4201
|
-
function
|
|
4201
|
+
function Oc(t) {
|
|
4202
4202
|
return /* @__PURE__ */ i(
|
|
4203
4203
|
"svg",
|
|
4204
4204
|
{
|
|
@@ -4227,7 +4227,7 @@ function Rc(t) {
|
|
|
4227
4227
|
}
|
|
4228
4228
|
);
|
|
4229
4229
|
}
|
|
4230
|
-
function
|
|
4230
|
+
function Hc(t) {
|
|
4231
4231
|
return /* @__PURE__ */ i(
|
|
4232
4232
|
"svg",
|
|
4233
4233
|
{
|
|
@@ -4246,7 +4246,7 @@ function Oc(t) {
|
|
|
4246
4246
|
}
|
|
4247
4247
|
);
|
|
4248
4248
|
}
|
|
4249
|
-
function
|
|
4249
|
+
function Dc(t) {
|
|
4250
4250
|
return /* @__PURE__ */ i(
|
|
4251
4251
|
"svg",
|
|
4252
4252
|
{
|
|
@@ -4267,7 +4267,7 @@ function Hc(t) {
|
|
|
4267
4267
|
}
|
|
4268
4268
|
);
|
|
4269
4269
|
}
|
|
4270
|
-
function
|
|
4270
|
+
function _c(t) {
|
|
4271
4271
|
return /* @__PURE__ */ i(
|
|
4272
4272
|
"svg",
|
|
4273
4273
|
{
|
|
@@ -4288,7 +4288,7 @@ function Dc(t) {
|
|
|
4288
4288
|
}
|
|
4289
4289
|
);
|
|
4290
4290
|
}
|
|
4291
|
-
function
|
|
4291
|
+
function Bc(t) {
|
|
4292
4292
|
return /* @__PURE__ */ i(
|
|
4293
4293
|
"svg",
|
|
4294
4294
|
{
|
|
@@ -4307,7 +4307,7 @@ function _c(t) {
|
|
|
4307
4307
|
}
|
|
4308
4308
|
);
|
|
4309
4309
|
}
|
|
4310
|
-
function
|
|
4310
|
+
function $c(t) {
|
|
4311
4311
|
return /* @__PURE__ */ i(
|
|
4312
4312
|
"svg",
|
|
4313
4313
|
{
|
|
@@ -4326,7 +4326,7 @@ function Bc(t) {
|
|
|
4326
4326
|
}
|
|
4327
4327
|
);
|
|
4328
4328
|
}
|
|
4329
|
-
function
|
|
4329
|
+
function Vc(t) {
|
|
4330
4330
|
return /* @__PURE__ */ i(
|
|
4331
4331
|
"svg",
|
|
4332
4332
|
{
|
|
@@ -4345,7 +4345,7 @@ function $c(t) {
|
|
|
4345
4345
|
}
|
|
4346
4346
|
);
|
|
4347
4347
|
}
|
|
4348
|
-
function
|
|
4348
|
+
function Wc(t) {
|
|
4349
4349
|
return /* @__PURE__ */ i(
|
|
4350
4350
|
"svg",
|
|
4351
4351
|
{
|
|
@@ -4364,7 +4364,7 @@ function Vc(t) {
|
|
|
4364
4364
|
}
|
|
4365
4365
|
);
|
|
4366
4366
|
}
|
|
4367
|
-
function
|
|
4367
|
+
function Fc(t) {
|
|
4368
4368
|
return /* @__PURE__ */ i(
|
|
4369
4369
|
"svg",
|
|
4370
4370
|
{
|
|
@@ -4383,7 +4383,7 @@ function Wc(t) {
|
|
|
4383
4383
|
}
|
|
4384
4384
|
);
|
|
4385
4385
|
}
|
|
4386
|
-
function
|
|
4386
|
+
function Uc(t) {
|
|
4387
4387
|
return /* @__PURE__ */ i(
|
|
4388
4388
|
"svg",
|
|
4389
4389
|
{
|
|
@@ -4404,7 +4404,7 @@ function Fc(t) {
|
|
|
4404
4404
|
}
|
|
4405
4405
|
);
|
|
4406
4406
|
}
|
|
4407
|
-
const
|
|
4407
|
+
const Gc = [
|
|
4408
4408
|
j.blackHighlight,
|
|
4409
4409
|
j.ofRGBA(166 / 255, 81 / 255, 167 / 255, 0.3),
|
|
4410
4410
|
j.ofRGBA(247 / 255, 78 / 255, 158 / 255, 0.3),
|
|
@@ -4428,9 +4428,9 @@ const Uc = [
|
|
|
4428
4428
|
j.fromHex("#FFFB85"),
|
|
4429
4429
|
j.fromHex("#AADC99")
|
|
4430
4430
|
];
|
|
4431
|
-
function
|
|
4431
|
+
function qc({ onChange: t }) {
|
|
4432
4432
|
const [e, r] = S(j.blackHighlight);
|
|
4433
|
-
return /* @__PURE__ */ i("div", { className: z.colorWrap, children:
|
|
4433
|
+
return /* @__PURE__ */ i("div", { className: z.colorWrap, children: Gc.map((n, a) => /* @__PURE__ */ i(
|
|
4434
4434
|
"button",
|
|
4435
4435
|
{
|
|
4436
4436
|
style: { backgroundColor: n.toHexString() },
|
|
@@ -4475,7 +4475,7 @@ function Ie({ onChange: t }) {
|
|
|
4475
4475
|
)) })
|
|
4476
4476
|
] });
|
|
4477
4477
|
}
|
|
4478
|
-
function
|
|
4478
|
+
function jc({ setColorPen: t, setThicknessPen: e }) {
|
|
4479
4479
|
const [r, n] = S(2);
|
|
4480
4480
|
return /* @__PURE__ */ f("div", { className: z.options, children: [
|
|
4481
4481
|
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(
|
|
@@ -4500,15 +4500,15 @@ function qc({ setColorPen: t, setThicknessPen: e }) {
|
|
|
4500
4500
|
) })
|
|
4501
4501
|
] });
|
|
4502
4502
|
}
|
|
4503
|
-
function
|
|
4503
|
+
function Xc({ setColorHighlight: t }) {
|
|
4504
4504
|
return /* @__PURE__ */ i("div", { className: z.options, children: /* @__PURE__ */ i(
|
|
4505
|
-
|
|
4505
|
+
qc,
|
|
4506
4506
|
{
|
|
4507
4507
|
onChange: (e) => t(e)
|
|
4508
4508
|
}
|
|
4509
4509
|
) });
|
|
4510
4510
|
}
|
|
4511
|
-
function
|
|
4511
|
+
function Yc({
|
|
4512
4512
|
changeColorShape: t,
|
|
4513
4513
|
changeBorderColorShape: e,
|
|
4514
4514
|
onThicknessChange: r
|
|
@@ -4580,7 +4580,7 @@ function ri(t) {
|
|
|
4580
4580
|
}
|
|
4581
4581
|
x("select"), g[0].setEnabled(!0);
|
|
4582
4582
|
},
|
|
4583
|
-
children: /* @__PURE__ */ i(
|
|
4583
|
+
children: /* @__PURE__ */ i(kc, {})
|
|
4584
4584
|
}
|
|
4585
4585
|
),
|
|
4586
4586
|
/* @__PURE__ */ i("div", { className: z.line }),
|
|
@@ -4598,7 +4598,7 @@ function ri(t) {
|
|
|
4598
4598
|
}
|
|
4599
4599
|
x("text"), g[1].setEnabled(!0);
|
|
4600
4600
|
},
|
|
4601
|
-
children: /* @__PURE__ */ i(
|
|
4601
|
+
children: /* @__PURE__ */ i(Sc, {})
|
|
4602
4602
|
}
|
|
4603
4603
|
),
|
|
4604
4604
|
/* @__PURE__ */ i("div", { className: z.line }),
|
|
@@ -4616,7 +4616,7 @@ function ri(t) {
|
|
|
4616
4616
|
}
|
|
4617
4617
|
x("pencil"), g[2].setEnabled(!0);
|
|
4618
4618
|
},
|
|
4619
|
-
children: /* @__PURE__ */ i(
|
|
4619
|
+
children: /* @__PURE__ */ i(Mc, {})
|
|
4620
4620
|
}
|
|
4621
4621
|
),
|
|
4622
4622
|
/* @__PURE__ */ i(
|
|
@@ -4633,7 +4633,7 @@ function ri(t) {
|
|
|
4633
4633
|
}
|
|
4634
4634
|
x("highlighter"), g[3].setEnabled(!0);
|
|
4635
4635
|
},
|
|
4636
|
-
children: /* @__PURE__ */ i(
|
|
4636
|
+
children: /* @__PURE__ */ i(Ac, {})
|
|
4637
4637
|
}
|
|
4638
4638
|
),
|
|
4639
4639
|
/* @__PURE__ */ i("div", { className: z.line }),
|
|
@@ -4651,7 +4651,7 @@ function ri(t) {
|
|
|
4651
4651
|
}
|
|
4652
4652
|
x("eraser"), g[4].setEnabled(!0);
|
|
4653
4653
|
},
|
|
4654
|
-
children: /* @__PURE__ */ i(
|
|
4654
|
+
children: /* @__PURE__ */ i(Lc, {})
|
|
4655
4655
|
}
|
|
4656
4656
|
),
|
|
4657
4657
|
/* @__PURE__ */ i("div", { className: z.line }),
|
|
@@ -4672,7 +4672,7 @@ function ri(t) {
|
|
|
4672
4672
|
/* square */
|
|
4673
4673
|
);
|
|
4674
4674
|
},
|
|
4675
|
-
children: /* @__PURE__ */ i(
|
|
4675
|
+
children: /* @__PURE__ */ i(Ic, {})
|
|
4676
4676
|
}
|
|
4677
4677
|
),
|
|
4678
4678
|
/* @__PURE__ */ i(
|
|
@@ -4692,7 +4692,7 @@ function ri(t) {
|
|
|
4692
4692
|
/* rectangle */
|
|
4693
4693
|
);
|
|
4694
4694
|
},
|
|
4695
|
-
children: /* @__PURE__ */ i(
|
|
4695
|
+
children: /* @__PURE__ */ i(Ec, {})
|
|
4696
4696
|
}
|
|
4697
4697
|
),
|
|
4698
4698
|
/* @__PURE__ */ i(
|
|
@@ -4712,7 +4712,7 @@ function ri(t) {
|
|
|
4712
4712
|
/* circle */
|
|
4713
4713
|
);
|
|
4714
4714
|
},
|
|
4715
|
-
children: /* @__PURE__ */ i(
|
|
4715
|
+
children: /* @__PURE__ */ i(zc, {})
|
|
4716
4716
|
}
|
|
4717
4717
|
),
|
|
4718
4718
|
/* @__PURE__ */ i(
|
|
@@ -4732,7 +4732,7 @@ function ri(t) {
|
|
|
4732
4732
|
/* triangle */
|
|
4733
4733
|
);
|
|
4734
4734
|
},
|
|
4735
|
-
children: /* @__PURE__ */ i(
|
|
4735
|
+
children: /* @__PURE__ */ i(Pc, {})
|
|
4736
4736
|
}
|
|
4737
4737
|
),
|
|
4738
4738
|
/* @__PURE__ */ i(
|
|
@@ -4752,7 +4752,7 @@ function ri(t) {
|
|
|
4752
4752
|
/* hexagonal */
|
|
4753
4753
|
);
|
|
4754
4754
|
},
|
|
4755
|
-
children: /* @__PURE__ */ i(
|
|
4755
|
+
children: /* @__PURE__ */ i(Rc, {})
|
|
4756
4756
|
}
|
|
4757
4757
|
),
|
|
4758
4758
|
/* @__PURE__ */ i(
|
|
@@ -4772,7 +4772,7 @@ function ri(t) {
|
|
|
4772
4772
|
/* diamond */
|
|
4773
4773
|
);
|
|
4774
4774
|
},
|
|
4775
|
-
children: /* @__PURE__ */ i(
|
|
4775
|
+
children: /* @__PURE__ */ i(Oc, {})
|
|
4776
4776
|
}
|
|
4777
4777
|
),
|
|
4778
4778
|
/* @__PURE__ */ i(
|
|
@@ -4792,7 +4792,7 @@ function ri(t) {
|
|
|
4792
4792
|
/* arrow */
|
|
4793
4793
|
);
|
|
4794
4794
|
},
|
|
4795
|
-
children: /* @__PURE__ */ i(
|
|
4795
|
+
children: /* @__PURE__ */ i(Hc, {})
|
|
4796
4796
|
}
|
|
4797
4797
|
),
|
|
4798
4798
|
/* @__PURE__ */ i(
|
|
@@ -4812,7 +4812,7 @@ function ri(t) {
|
|
|
4812
4812
|
/* line */
|
|
4813
4813
|
);
|
|
4814
4814
|
},
|
|
4815
|
-
children: /* @__PURE__ */ i(
|
|
4815
|
+
children: /* @__PURE__ */ i($c, {})
|
|
4816
4816
|
}
|
|
4817
4817
|
),
|
|
4818
4818
|
/* @__PURE__ */ i(
|
|
@@ -4832,7 +4832,7 @@ function ri(t) {
|
|
|
4832
4832
|
/* heart */
|
|
4833
4833
|
);
|
|
4834
4834
|
},
|
|
4835
|
-
children: /* @__PURE__ */ i(
|
|
4835
|
+
children: /* @__PURE__ */ i(Vc, {})
|
|
4836
4836
|
}
|
|
4837
4837
|
),
|
|
4838
4838
|
/* @__PURE__ */ i(
|
|
@@ -4852,7 +4852,7 @@ function ri(t) {
|
|
|
4852
4852
|
/* star */
|
|
4853
4853
|
);
|
|
4854
4854
|
},
|
|
4855
|
-
children: /* @__PURE__ */ i(
|
|
4855
|
+
children: /* @__PURE__ */ i(Wc, {})
|
|
4856
4856
|
}
|
|
4857
4857
|
),
|
|
4858
4858
|
/* @__PURE__ */ i(
|
|
@@ -4872,7 +4872,7 @@ function ri(t) {
|
|
|
4872
4872
|
/* cloud */
|
|
4873
4873
|
);
|
|
4874
4874
|
},
|
|
4875
|
-
children: /* @__PURE__ */ i(
|
|
4875
|
+
children: /* @__PURE__ */ i(Fc, {})
|
|
4876
4876
|
}
|
|
4877
4877
|
),
|
|
4878
4878
|
/* @__PURE__ */ i(
|
|
@@ -4892,7 +4892,7 @@ function ri(t) {
|
|
|
4892
4892
|
/* parallelogram */
|
|
4893
4893
|
);
|
|
4894
4894
|
},
|
|
4895
|
-
children: /* @__PURE__ */ i(
|
|
4895
|
+
children: /* @__PURE__ */ i(Uc, {})
|
|
4896
4896
|
}
|
|
4897
4897
|
),
|
|
4898
4898
|
/* @__PURE__ */ i("div", { className: z.line }),
|
|
@@ -4901,7 +4901,7 @@ function ri(t) {
|
|
|
4901
4901
|
{
|
|
4902
4902
|
className: P(z.tool),
|
|
4903
4903
|
onClick: c,
|
|
4904
|
-
children: /* @__PURE__ */ i(
|
|
4904
|
+
children: /* @__PURE__ */ i(Dc, {})
|
|
4905
4905
|
}
|
|
4906
4906
|
),
|
|
4907
4907
|
/* @__PURE__ */ i(
|
|
@@ -4909,7 +4909,7 @@ function ri(t) {
|
|
|
4909
4909
|
{
|
|
4910
4910
|
className: P(z.tool),
|
|
4911
4911
|
onClick: d,
|
|
4912
|
-
children: /* @__PURE__ */ i(
|
|
4912
|
+
children: /* @__PURE__ */ i(_c, {})
|
|
4913
4913
|
}
|
|
4914
4914
|
),
|
|
4915
4915
|
/* @__PURE__ */ i(
|
|
@@ -4917,21 +4917,21 @@ function ri(t) {
|
|
|
4917
4917
|
{
|
|
4918
4918
|
className: P(z.tool),
|
|
4919
4919
|
onClick: u,
|
|
4920
|
-
children: /* @__PURE__ */ i(
|
|
4920
|
+
children: /* @__PURE__ */ i(Bc, {})
|
|
4921
4921
|
}
|
|
4922
4922
|
)
|
|
4923
4923
|
] }),
|
|
4924
4924
|
/* @__PURE__ */ f("div", { className: z.optionsWrap, children: [
|
|
4925
4925
|
m === "pencil" && /* @__PURE__ */ i(
|
|
4926
|
-
|
|
4926
|
+
jc,
|
|
4927
4927
|
{
|
|
4928
4928
|
setColorPen: e,
|
|
4929
4929
|
setThicknessPen: n
|
|
4930
4930
|
}
|
|
4931
4931
|
),
|
|
4932
|
-
m === "highlighter" && /* @__PURE__ */ i(
|
|
4932
|
+
m === "highlighter" && /* @__PURE__ */ i(Xc, { setColorHighlight: a }),
|
|
4933
4933
|
m === "shapes" && /* @__PURE__ */ i(
|
|
4934
|
-
|
|
4934
|
+
Yc,
|
|
4935
4935
|
{
|
|
4936
4936
|
changeBorderColorShape: o,
|
|
4937
4937
|
changeColorShape: l,
|
|
@@ -4945,7 +4945,7 @@ function ri(t) {
|
|
|
4945
4945
|
) });
|
|
4946
4946
|
}
|
|
4947
4947
|
let Pt = !1;
|
|
4948
|
-
const
|
|
4948
|
+
const Kc = ({ editor: t, upload: e }) => {
|
|
4949
4949
|
const [r, n] = S(!1), a = Z(null), o = Z(null), c = () => {
|
|
4950
4950
|
(async () => {
|
|
4951
4951
|
const v = document.querySelector("#easydrawer");
|
|
@@ -5077,7 +5077,7 @@ const Yc = ({ editor: t, upload: e }) => {
|
|
|
5077
5077
|
BOTTOM_LEFT: "bl",
|
|
5078
5078
|
BOTTOM_RIGHT: "br"
|
|
5079
5079
|
};
|
|
5080
|
-
function
|
|
5080
|
+
function Zc({ editor: t, node: e, updateAttributes: r, getPos: n, selected: a }) {
|
|
5081
5081
|
const [o, c] = S({
|
|
5082
5082
|
width: xt,
|
|
5083
5083
|
height: xt
|
|
@@ -5234,7 +5234,7 @@ const dr = le.extend({
|
|
|
5234
5234
|
button: ({ editor: e, t: r, extension: n }) => {
|
|
5235
5235
|
var a;
|
|
5236
5236
|
return {
|
|
5237
|
-
component:
|
|
5237
|
+
component: Kc,
|
|
5238
5238
|
componentProps: {
|
|
5239
5239
|
action: () => !0,
|
|
5240
5240
|
isActive: () => !1,
|
|
@@ -5282,7 +5282,7 @@ const dr = le.extend({
|
|
|
5282
5282
|
};
|
|
5283
5283
|
},
|
|
5284
5284
|
addNodeView() {
|
|
5285
|
-
return pt(
|
|
5285
|
+
return pt(Zc);
|
|
5286
5286
|
},
|
|
5287
5287
|
// @ts-ignore
|
|
5288
5288
|
addCommands() {
|
|
@@ -5335,7 +5335,7 @@ const dr = le.extend({
|
|
|
5335
5335
|
}
|
|
5336
5336
|
});
|
|
5337
5337
|
let Rt = !1;
|
|
5338
|
-
function
|
|
5338
|
+
function Jc({ editor: t, attrs: e, extension: r }) {
|
|
5339
5339
|
const [n, a] = S(!1), o = Z(null), c = Z(null), { alt: l, align: s } = e, h = r == null ? void 0 : r.options.upload, d = () => {
|
|
5340
5340
|
(async () => {
|
|
5341
5341
|
const A = document.querySelector("#easydrawer");
|
|
@@ -5474,13 +5474,13 @@ function ii(t, e) {
|
|
|
5474
5474
|
};
|
|
5475
5475
|
}, [t, e]), r;
|
|
5476
5476
|
}
|
|
5477
|
-
const
|
|
5477
|
+
const Qc = {
|
|
5478
5478
|
maxWidth: "auto",
|
|
5479
5479
|
zIndex: 20,
|
|
5480
5480
|
appendTo: "parent",
|
|
5481
5481
|
moveTransition: "transform 0.1s ease-out"
|
|
5482
5482
|
};
|
|
5483
|
-
function
|
|
5483
|
+
function ts({ item: t, disabled: e, editor: r }) {
|
|
5484
5484
|
var a;
|
|
5485
5485
|
const n = t.component;
|
|
5486
5486
|
return n ? /* @__PURE__ */ i(ze, { children: t.type === "divider" ? /* @__PURE__ */ i(
|
|
@@ -5498,26 +5498,26 @@ function Qc({ item: t, disabled: e, editor: r }) {
|
|
|
5498
5498
|
}
|
|
5499
5499
|
) }) : /* @__PURE__ */ i(W, {});
|
|
5500
5500
|
}
|
|
5501
|
-
function
|
|
5501
|
+
function es(t) {
|
|
5502
5502
|
return t.type.name === "drawer";
|
|
5503
5503
|
}
|
|
5504
|
-
function
|
|
5504
|
+
function rs(t) {
|
|
5505
5505
|
const { lang: e } = q(), r = Et(t.editor, dr.name), n = ii(t.editor, dr.name), a = ({ editor: c }) => {
|
|
5506
5506
|
const { selection: l } = c.view.state, { $from: s, to: h } = l;
|
|
5507
5507
|
let d = !1;
|
|
5508
5508
|
return c.view.state.doc.nodesBetween(s.pos, h, (u) => {
|
|
5509
|
-
if (
|
|
5509
|
+
if (es(u))
|
|
5510
5510
|
return d = !0, !1;
|
|
5511
5511
|
}), d;
|
|
5512
|
-
}, o = U(() => t.disabled ? [] :
|
|
5512
|
+
}, o = U(() => t.disabled ? [] : As(t.editor), [t.disabled, t.editor, e]);
|
|
5513
5513
|
return /* @__PURE__ */ i(W, { children: /* @__PURE__ */ i(
|
|
5514
5514
|
tt,
|
|
5515
5515
|
{
|
|
5516
5516
|
editor: t == null ? void 0 : t.editor,
|
|
5517
5517
|
shouldShow: a,
|
|
5518
|
-
tippyOptions:
|
|
5518
|
+
tippyOptions: Qc,
|
|
5519
5519
|
children: o != null && o.length ? /* @__PURE__ */ i("div", { className: "richtext-pointer-events-auto richtext-w-auto richtext-select-none richtext-rounded-sm !richtext-border richtext-border-neutral-200 richtext-bg-background richtext-px-3 richtext-py-2 richtext-shadow-sm richtext-transition-all dark:richtext-border-neutral-800", children: /* @__PURE__ */ i("div", { className: "richtext-relative richtext-flex richtext-h-[26px] richtext-flex-nowrap richtext-items-center richtext-justify-start richtext-whitespace-nowrap", children: o == null ? void 0 : o.map((c, l) => c.type === "edit" && (r != null && r.src) ? /* @__PURE__ */ i(
|
|
5520
|
-
|
|
5520
|
+
Jc,
|
|
5521
5521
|
{
|
|
5522
5522
|
attrs: r,
|
|
5523
5523
|
editor: t.editor,
|
|
@@ -5525,7 +5525,7 @@ function es(t) {
|
|
|
5525
5525
|
},
|
|
5526
5526
|
`bubbleMenu-drawer-${l}`
|
|
5527
5527
|
) : /* @__PURE__ */ i(
|
|
5528
|
-
|
|
5528
|
+
ts,
|
|
5529
5529
|
{
|
|
5530
5530
|
disabled: t.disabled,
|
|
5531
5531
|
editor: t.editor,
|
|
@@ -5536,7 +5536,7 @@ function es(t) {
|
|
|
5536
5536
|
}
|
|
5537
5537
|
) });
|
|
5538
5538
|
}
|
|
5539
|
-
const
|
|
5539
|
+
const is = { padding: "0 12px 12px" }, ni = ({ width: t, maxWidth: e, height: r, onOk: n, children: a }) => {
|
|
5540
5540
|
const { t: o } = q(), [c, l] = S({
|
|
5541
5541
|
width: "",
|
|
5542
5542
|
height: "",
|
|
@@ -5554,7 +5554,7 @@ const rs = { padding: "0 12px 12px" }, ni = ({ width: t, maxWidth: e, height: r,
|
|
|
5554
5554
|
}
|
|
5555
5555
|
return /* @__PURE__ */ f(Lt, { modal: !0, children: [
|
|
5556
5556
|
/* @__PURE__ */ i(It, { asChild: !0, children: a }),
|
|
5557
|
-
/* @__PURE__ */ i(Tt, { children: /* @__PURE__ */ i("div", { style:
|
|
5557
|
+
/* @__PURE__ */ i(Tt, { children: /* @__PURE__ */ i("div", { style: is, children: /* @__PURE__ */ f("form", { className: "richtext-flex richtext-flex-col richtext-gap-2", onSubmit: s, children: [
|
|
5558
5558
|
/* @__PURE__ */ i(ct, { className: "mb-[6px]", children: "Width" }),
|
|
5559
5559
|
/* @__PURE__ */ i("div", { className: "richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5", children: /* @__PURE__ */ i("div", { className: "richtext-relative richtext-items-center richtext-w-full richtext-max-w-sm", children: /* @__PURE__ */ i(
|
|
5560
5560
|
Q,
|
|
@@ -5589,7 +5589,7 @@ const rs = { padding: "0 12px 12px" }, ni = ({ width: t, maxWidth: e, height: r,
|
|
|
5589
5589
|
] }) }) })
|
|
5590
5590
|
] });
|
|
5591
5591
|
}, vt = /* @__PURE__ */ new Map();
|
|
5592
|
-
function
|
|
5592
|
+
function ns(t) {
|
|
5593
5593
|
const e = t.options.element;
|
|
5594
5594
|
vt.has("width") || vt.set("width", e.clientWidth), vt.has("width") && vt.get("width") <= 0 && vt.set("width", e.clientWidth);
|
|
5595
5595
|
const r = { attributes: !0, childList: !0, subtree: !0 }, n = function() {
|
|
@@ -5599,8 +5599,8 @@ function is(t) {
|
|
|
5599
5599
|
a.disconnect();
|
|
5600
5600
|
}), { width: vt.get("width") };
|
|
5601
5601
|
}
|
|
5602
|
-
function
|
|
5603
|
-
const { t: e } = q(), { width: r } =
|
|
5602
|
+
function os({ editor: t }) {
|
|
5603
|
+
const { t: e } = q(), { width: r } = ns(t), n = Et(t, kt.name, {
|
|
5604
5604
|
defaultShowPicker: !1,
|
|
5605
5605
|
createUser: "",
|
|
5606
5606
|
width: 0,
|
|
@@ -5611,7 +5611,7 @@ function ns({ editor: t }) {
|
|
|
5611
5611
|
},
|
|
5612
5612
|
[t]
|
|
5613
5613
|
), h = O(() => {
|
|
5614
|
-
|
|
5614
|
+
Za(n);
|
|
5615
5615
|
}, [t, n]), d = O(() => t.isActive(kt.name), [t]), u = O(() => Ut(kt.name, t), [t]);
|
|
5616
5616
|
return B(() => {
|
|
5617
5617
|
a && (h(), t.chain().updateAttributes(kt.name, { defaultShowPicker: !1 }).focus().run());
|
|
@@ -5661,7 +5661,7 @@ function ns({ editor: t }) {
|
|
|
5661
5661
|
}
|
|
5662
5662
|
);
|
|
5663
5663
|
}
|
|
5664
|
-
function
|
|
5664
|
+
function as({ editor: t }) {
|
|
5665
5665
|
const { t: e } = q(), { width: r, height: n, url: a } = Et(t, Nt.name, {
|
|
5666
5666
|
width: 0,
|
|
5667
5667
|
height: 0,
|
|
@@ -5770,7 +5770,7 @@ function os({ editor: t }) {
|
|
|
5770
5770
|
)
|
|
5771
5771
|
] });
|
|
5772
5772
|
}
|
|
5773
|
-
function
|
|
5773
|
+
function cs({ editor: t, ...e }) {
|
|
5774
5774
|
const r = Et(t, St.name, {
|
|
5775
5775
|
text: "",
|
|
5776
5776
|
defaultShowPicker: !1
|
|
@@ -5835,7 +5835,7 @@ function as({ editor: t, ...e }) {
|
|
|
5835
5835
|
);
|
|
5836
5836
|
}
|
|
5837
5837
|
const hr = `graph TB
|
|
5838
|
-
a-->b`,
|
|
5838
|
+
a-->b`, ss = ({ editor: t, attrs: e, extension: r }) => {
|
|
5839
5839
|
const { alt: n, align: a } = e, [o, c] = S(decodeURIComponent(n ?? hr)), [l, s] = S(""), [h, d] = S(!1), u = Z(null), m = r == null ? void 0 : r.options.upload, x = async (g) => {
|
|
5840
5840
|
try {
|
|
5841
5841
|
const { svg: I } = await ae.render("mermaid-svg", g);
|
|
@@ -5933,13 +5933,13 @@ a-->b`, cs = ({ editor: t, attrs: e, extension: r }) => {
|
|
|
5933
5933
|
]
|
|
5934
5934
|
}
|
|
5935
5935
|
);
|
|
5936
|
-
},
|
|
5936
|
+
}, ls = {
|
|
5937
5937
|
maxWidth: "auto",
|
|
5938
5938
|
zIndex: 20,
|
|
5939
5939
|
appendTo: "parent",
|
|
5940
5940
|
moveTransition: "transform 0.1s ease-out"
|
|
5941
5941
|
};
|
|
5942
|
-
function
|
|
5942
|
+
function ds({ item: t, disabled: e, editor: r }) {
|
|
5943
5943
|
var a;
|
|
5944
5944
|
const n = t.component;
|
|
5945
5945
|
return n ? /* @__PURE__ */ i(ze, { children: t.type === "divider" ? /* @__PURE__ */ i(
|
|
@@ -5957,26 +5957,26 @@ function ls({ item: t, disabled: e, editor: r }) {
|
|
|
5957
5957
|
}
|
|
5958
5958
|
) }) : /* @__PURE__ */ i(W, {});
|
|
5959
5959
|
}
|
|
5960
|
-
function
|
|
5960
|
+
function hs(t) {
|
|
5961
5961
|
return t.type.name === "mermaid";
|
|
5962
5962
|
}
|
|
5963
|
-
function
|
|
5963
|
+
function us(t) {
|
|
5964
5964
|
const { lang: e } = q(), r = Et(t.editor, cr.name), n = ii(t.editor, cr.name), a = ({ editor: c }) => {
|
|
5965
5965
|
const { selection: l } = c.view.state, { $from: s, to: h } = l;
|
|
5966
5966
|
let d = !1;
|
|
5967
5967
|
return c.view.state.doc.nodesBetween(s.pos, h, (u) => {
|
|
5968
|
-
if (
|
|
5968
|
+
if (hs(u))
|
|
5969
5969
|
return d = !0, !1;
|
|
5970
5970
|
}), d;
|
|
5971
|
-
}, o = U(() => t.disabled ? [] :
|
|
5971
|
+
}, o = U(() => t.disabled ? [] : Ms(t.editor), [t.disabled, t.editor, e]);
|
|
5972
5972
|
return /* @__PURE__ */ i(W, { children: /* @__PURE__ */ i(
|
|
5973
5973
|
tt,
|
|
5974
5974
|
{
|
|
5975
5975
|
editor: t == null ? void 0 : t.editor,
|
|
5976
5976
|
shouldShow: a,
|
|
5977
|
-
tippyOptions:
|
|
5977
|
+
tippyOptions: ls,
|
|
5978
5978
|
children: o != null && o.length ? /* @__PURE__ */ i("div", { className: "richtext-pointer-events-auto richtext-w-auto richtext-select-none richtext-rounded-sm !richtext-border richtext-border-neutral-200 richtext-bg-background richtext-px-3 richtext-py-2 richtext-shadow-sm richtext-transition-all dark:richtext-border-neutral-800", children: /* @__PURE__ */ i("div", { className: "richtext-relative richtext-flex richtext-h-[26px] richtext-flex-nowrap richtext-items-center richtext-justify-start richtext-whitespace-nowrap", children: o == null ? void 0 : o.map((c, l) => c.type === "edit" && (r != null && r.src) ? /* @__PURE__ */ i(
|
|
5979
|
-
|
|
5979
|
+
ss,
|
|
5980
5980
|
{
|
|
5981
5981
|
attrs: r,
|
|
5982
5982
|
editor: t.editor,
|
|
@@ -5984,7 +5984,7 @@ function hs(t) {
|
|
|
5984
5984
|
},
|
|
5985
5985
|
`bubbleMenu-mermaid-${l}`
|
|
5986
5986
|
) : /* @__PURE__ */ i(
|
|
5987
|
-
|
|
5987
|
+
ds,
|
|
5988
5988
|
{
|
|
5989
5989
|
disabled: t.disabled,
|
|
5990
5990
|
editor: t.editor,
|
|
@@ -5995,7 +5995,7 @@ function hs(t) {
|
|
|
5995
5995
|
}
|
|
5996
5996
|
) });
|
|
5997
5997
|
}
|
|
5998
|
-
function
|
|
5998
|
+
function ms({ editor: t, disabled: e }) {
|
|
5999
5999
|
const [r, n] = S(!1), { t: a } = q(), o = O(({ editor: s }) => s.isActive(Le.name), []), c = (s) => {
|
|
6000
6000
|
t.commands.updateTweet({ src: s }), n(!1);
|
|
6001
6001
|
}, l = O(() => Ut(Le.name, t), [t]);
|
|
@@ -6046,26 +6046,26 @@ function us({ editor: t, disabled: e }) {
|
|
|
6046
6046
|
}
|
|
6047
6047
|
) });
|
|
6048
6048
|
}
|
|
6049
|
-
function
|
|
6049
|
+
function xs({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
6050
6050
|
const n = t.extensionManager.extensions.map((o) => o.name), a = () => {
|
|
6051
6051
|
var o, c, l, s, h, d, u, m, x, w, p, g, I, T;
|
|
6052
6052
|
return [
|
|
6053
6053
|
n.includes("columns") && !((o = r == null ? void 0 : r.columnConfig) != null && o.hidden) ? /* @__PURE__ */ i(
|
|
6054
|
-
|
|
6054
|
+
Xs,
|
|
6055
6055
|
{
|
|
6056
6056
|
editor: t
|
|
6057
6057
|
},
|
|
6058
6058
|
"columns"
|
|
6059
6059
|
) : null,
|
|
6060
6060
|
n.includes("table") && !((c = r == null ? void 0 : r.tableConfig) != null && c.hidden) ? /* @__PURE__ */ i(
|
|
6061
|
-
|
|
6061
|
+
Bs,
|
|
6062
6062
|
{
|
|
6063
6063
|
editor: t
|
|
6064
6064
|
},
|
|
6065
6065
|
"table"
|
|
6066
6066
|
) : null,
|
|
6067
6067
|
n.includes("link") && !((l = r == null ? void 0 : r.linkConfig) != null && l.hidden) ? /* @__PURE__ */ i(
|
|
6068
|
-
|
|
6068
|
+
Vs,
|
|
6069
6069
|
{
|
|
6070
6070
|
disabled: e,
|
|
6071
6071
|
editor: t
|
|
@@ -6073,7 +6073,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6073
6073
|
"link"
|
|
6074
6074
|
) : null,
|
|
6075
6075
|
n.includes($t.name) && !((s = r == null ? void 0 : r.imageConfig) != null && s.hidden) ? /* @__PURE__ */ i(
|
|
6076
|
-
|
|
6076
|
+
Gs,
|
|
6077
6077
|
{
|
|
6078
6078
|
disabled: e,
|
|
6079
6079
|
editor: t
|
|
@@ -6081,7 +6081,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6081
6081
|
"image"
|
|
6082
6082
|
) : null,
|
|
6083
6083
|
n.includes(ti.name) && !((h = r == null ? void 0 : r.imageGifConfig) != null && h.hidden) ? /* @__PURE__ */ i(
|
|
6084
|
-
|
|
6084
|
+
qs,
|
|
6085
6085
|
{
|
|
6086
6086
|
disabled: e,
|
|
6087
6087
|
editor: t
|
|
@@ -6089,7 +6089,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6089
6089
|
"imageGif"
|
|
6090
6090
|
) : null,
|
|
6091
6091
|
n.includes("video") && !((d = r == null ? void 0 : r.videoConfig) != null && d.hidden) ? /* @__PURE__ */ i(
|
|
6092
|
-
|
|
6092
|
+
js,
|
|
6093
6093
|
{
|
|
6094
6094
|
disabled: e,
|
|
6095
6095
|
editor: t
|
|
@@ -6097,7 +6097,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6097
6097
|
"video"
|
|
6098
6098
|
) : null,
|
|
6099
6099
|
n.includes("katex") && !((u = r == null ? void 0 : r.katexConfig) != null && u.hidden) ? /* @__PURE__ */ i(
|
|
6100
|
-
|
|
6100
|
+
cs,
|
|
6101
6101
|
{
|
|
6102
6102
|
disabled: e,
|
|
6103
6103
|
editor: t
|
|
@@ -6105,7 +6105,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6105
6105
|
"katex"
|
|
6106
6106
|
) : null,
|
|
6107
6107
|
n.includes("excalidraw") && !((m = r == null ? void 0 : r.excalidrawConfig) != null && m.hidden) ? /* @__PURE__ */ i(
|
|
6108
|
-
|
|
6108
|
+
os,
|
|
6109
6109
|
{
|
|
6110
6110
|
disabled: e,
|
|
6111
6111
|
editor: t
|
|
@@ -6113,7 +6113,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6113
6113
|
"excalidraw"
|
|
6114
6114
|
) : null,
|
|
6115
6115
|
n.includes("mermaid") && !((x = r == null ? void 0 : r.mermaidConfig) != null && x.hidden) ? /* @__PURE__ */ i(
|
|
6116
|
-
|
|
6116
|
+
us,
|
|
6117
6117
|
{
|
|
6118
6118
|
disabled: e,
|
|
6119
6119
|
editor: t
|
|
@@ -6121,7 +6121,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6121
6121
|
"mermaid"
|
|
6122
6122
|
) : null,
|
|
6123
6123
|
n.includes("iframe") && !((w = r == null ? void 0 : r.iframeConfig) != null && w.hidden) ? /* @__PURE__ */ i(
|
|
6124
|
-
|
|
6124
|
+
as,
|
|
6125
6125
|
{
|
|
6126
6126
|
disabled: e,
|
|
6127
6127
|
editor: t
|
|
@@ -6129,7 +6129,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6129
6129
|
"iframe"
|
|
6130
6130
|
) : null,
|
|
6131
6131
|
n.includes("twitter") && !((p = r == null ? void 0 : r.twitterConfig) != null && p.hidden) ? /* @__PURE__ */ i(
|
|
6132
|
-
|
|
6132
|
+
ms,
|
|
6133
6133
|
{
|
|
6134
6134
|
disabled: e,
|
|
6135
6135
|
editor: t
|
|
@@ -6137,7 +6137,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6137
6137
|
"twitter"
|
|
6138
6138
|
) : null,
|
|
6139
6139
|
(g = r == null ? void 0 : r.floatingMenuConfig) != null && g.hidden ? null : /* @__PURE__ */ i(
|
|
6140
|
-
|
|
6140
|
+
Os,
|
|
6141
6141
|
{
|
|
6142
6142
|
disabled: e,
|
|
6143
6143
|
editor: t
|
|
@@ -6145,7 +6145,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6145
6145
|
"content"
|
|
6146
6146
|
),
|
|
6147
6147
|
(I = r == null ? void 0 : r.textConfig) != null && I.hidden ? null : /* @__PURE__ */ i(
|
|
6148
|
-
|
|
6148
|
+
_s,
|
|
6149
6149
|
{
|
|
6150
6150
|
disabled: e,
|
|
6151
6151
|
editor: t
|
|
@@ -6153,7 +6153,7 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6153
6153
|
"text"
|
|
6154
6154
|
),
|
|
6155
6155
|
n.includes("drawer") && !((T = r == null ? void 0 : r.drawerConfig) != null && T.hidden) ? /* @__PURE__ */ i(
|
|
6156
|
-
|
|
6156
|
+
rs,
|
|
6157
6157
|
{
|
|
6158
6158
|
disabled: e,
|
|
6159
6159
|
editor: t
|
|
@@ -6167,14 +6167,14 @@ function ms({ editor: t, disabled: e, bubbleMenu: r }) {
|
|
|
6167
6167
|
function ur() {
|
|
6168
6168
|
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31m-.88 3.12L12.5 12.5L5.27 5.27L4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6c1.52 0 2.9-.57 3.96-1.5l2.63 2.63l1.27-1.27z" }) });
|
|
6169
6169
|
}
|
|
6170
|
-
function
|
|
6170
|
+
function fs(t) {
|
|
6171
6171
|
const { t: e } = q(), {
|
|
6172
6172
|
highlight: r = !1,
|
|
6173
6173
|
disabled: n = !1,
|
|
6174
6174
|
selectedColor: a,
|
|
6175
6175
|
setSelectedColor: o,
|
|
6176
6176
|
onChange: c,
|
|
6177
|
-
colors: l =
|
|
6177
|
+
colors: l = Mi
|
|
6178
6178
|
} = t, s = U(() => {
|
|
6179
6179
|
const x = l, w = [];
|
|
6180
6180
|
for (let p = 0; p < x.length; p += 10)
|
|
@@ -6308,13 +6308,13 @@ function xs(t) {
|
|
|
6308
6308
|
`sub-color-recent-${w}`
|
|
6309
6309
|
)) })
|
|
6310
6310
|
] }),
|
|
6311
|
-
/* @__PURE__ */ i(
|
|
6311
|
+
/* @__PURE__ */ i(gs, { setColor: m })
|
|
6312
6312
|
] })
|
|
6313
6313
|
}
|
|
6314
6314
|
)
|
|
6315
6315
|
] });
|
|
6316
6316
|
}
|
|
6317
|
-
function
|
|
6317
|
+
function gs({ setColor: t }) {
|
|
6318
6318
|
const [e, r] = S("#000000"), [n, a] = S(!1), { t: o } = q();
|
|
6319
6319
|
return B(() => () => {
|
|
6320
6320
|
a(!1);
|
|
@@ -6335,7 +6335,7 @@ function fs({ setColor: t }) {
|
|
|
6335
6335
|
/* @__PURE__ */ f(Tt, { children: [
|
|
6336
6336
|
/* @__PURE__ */ f("div", { className: "richtext-flex richtext-flex-col richtext-items-center richtext-justify-center", children: [
|
|
6337
6337
|
/* @__PURE__ */ i(
|
|
6338
|
-
|
|
6338
|
+
ho,
|
|
6339
6339
|
{
|
|
6340
6340
|
color: e,
|
|
6341
6341
|
onChange: r
|
|
@@ -6367,7 +6367,7 @@ function fs({ setColor: t }) {
|
|
|
6367
6367
|
] })
|
|
6368
6368
|
] });
|
|
6369
6369
|
}
|
|
6370
|
-
function
|
|
6370
|
+
function ps({ editor: t, disabled: e, toolbar: r }) {
|
|
6371
6371
|
const { t: n, lang: a } = q(), o = U(() => {
|
|
6372
6372
|
const h = [...t.extensionManager.extensions].sort((u, m) => {
|
|
6373
6373
|
const x = u.options.sort ?? -1, w = m.options.sort ?? -1;
|
|
@@ -6381,7 +6381,7 @@ function gs({ editor: t, disabled: e, toolbar: r }) {
|
|
|
6381
6381
|
spacer: w = !1,
|
|
6382
6382
|
toolbar: p = !0
|
|
6383
6383
|
} = u.options;
|
|
6384
|
-
if (!m || !
|
|
6384
|
+
if (!m || !yo(m) || !p)
|
|
6385
6385
|
continue;
|
|
6386
6386
|
const g = m({
|
|
6387
6387
|
editor: t,
|
|
@@ -6435,7 +6435,7 @@ function gs({ editor: t, disabled: e, toolbar: r }) {
|
|
|
6435
6435
|
});
|
|
6436
6436
|
return r && (r != null && r.render) ? r.render({ editor: t, disabled: e || !1 }, o, l, c) : c(l);
|
|
6437
6437
|
}
|
|
6438
|
-
function
|
|
6438
|
+
function ws(t) {
|
|
6439
6439
|
const e = ["size-small", "size-medium", "size-large"], r = [
|
|
6440
6440
|
"SizeS",
|
|
6441
6441
|
"SizeM",
|
|
@@ -6452,7 +6452,7 @@ function ps(t) {
|
|
|
6452
6452
|
}
|
|
6453
6453
|
}));
|
|
6454
6454
|
}
|
|
6455
|
-
function
|
|
6455
|
+
function vs(t) {
|
|
6456
6456
|
const e = ["size-small", "size-medium", "size-large"], r = [
|
|
6457
6457
|
"SizeS",
|
|
6458
6458
|
"SizeM",
|
|
@@ -6469,7 +6469,7 @@ function ws(t) {
|
|
|
6469
6469
|
}
|
|
6470
6470
|
}));
|
|
6471
6471
|
}
|
|
6472
|
-
function
|
|
6472
|
+
function bs(t) {
|
|
6473
6473
|
const e = ["left", "center", "right"], r = {
|
|
6474
6474
|
left: "AlignLeft",
|
|
6475
6475
|
center: "AlignCenter",
|
|
@@ -6490,7 +6490,7 @@ function vs(t) {
|
|
|
6490
6490
|
}
|
|
6491
6491
|
}));
|
|
6492
6492
|
}
|
|
6493
|
-
function
|
|
6493
|
+
function ys(t) {
|
|
6494
6494
|
const e = ["left", "center", "right"], r = {
|
|
6495
6495
|
left: "AlignLeft",
|
|
6496
6496
|
center: "AlignCenter",
|
|
@@ -6511,7 +6511,7 @@ function bs(t) {
|
|
|
6511
6511
|
}
|
|
6512
6512
|
}));
|
|
6513
6513
|
}
|
|
6514
|
-
function
|
|
6514
|
+
function Cs(t) {
|
|
6515
6515
|
const e = ["left", "center", "right"], r = {
|
|
6516
6516
|
left: "AlignLeft",
|
|
6517
6517
|
center: "AlignCenter",
|
|
@@ -6532,7 +6532,7 @@ function ys(t) {
|
|
|
6532
6532
|
}
|
|
6533
6533
|
}));
|
|
6534
6534
|
}
|
|
6535
|
-
function
|
|
6535
|
+
function Ts(t) {
|
|
6536
6536
|
const e = ["left", "center", "right"], r = {
|
|
6537
6537
|
left: "AlignLeft",
|
|
6538
6538
|
center: "AlignCenter",
|
|
@@ -6553,7 +6553,7 @@ function Cs(t) {
|
|
|
6553
6553
|
}
|
|
6554
6554
|
}));
|
|
6555
6555
|
}
|
|
6556
|
-
function
|
|
6556
|
+
function Ns(t) {
|
|
6557
6557
|
const e = ["size-small", "size-medium", "size-large"], r = [
|
|
6558
6558
|
"SizeS",
|
|
6559
6559
|
"SizeM",
|
|
@@ -6570,7 +6570,7 @@ function Ts(t) {
|
|
|
6570
6570
|
}
|
|
6571
6571
|
}));
|
|
6572
6572
|
}
|
|
6573
|
-
function
|
|
6573
|
+
function ks(t) {
|
|
6574
6574
|
return [
|
|
6575
6575
|
{
|
|
6576
6576
|
type: "flipX",
|
|
@@ -6602,8 +6602,8 @@ function Ns(t) {
|
|
|
6602
6602
|
}
|
|
6603
6603
|
}
|
|
6604
6604
|
},
|
|
6605
|
-
...
|
|
6606
|
-
...
|
|
6605
|
+
...ws(t),
|
|
6606
|
+
...bs(t),
|
|
6607
6607
|
{
|
|
6608
6608
|
type: "remove",
|
|
6609
6609
|
component: R,
|
|
@@ -6619,10 +6619,10 @@ function Ns(t) {
|
|
|
6619
6619
|
}
|
|
6620
6620
|
];
|
|
6621
6621
|
}
|
|
6622
|
-
function
|
|
6622
|
+
function Ss(t) {
|
|
6623
6623
|
return [
|
|
6624
|
-
...
|
|
6625
|
-
...
|
|
6624
|
+
...vs(t),
|
|
6625
|
+
...ys(t),
|
|
6626
6626
|
{
|
|
6627
6627
|
type: "remove",
|
|
6628
6628
|
component: R,
|
|
@@ -6638,9 +6638,9 @@ function ks(t) {
|
|
|
6638
6638
|
}
|
|
6639
6639
|
];
|
|
6640
6640
|
}
|
|
6641
|
-
function
|
|
6641
|
+
function Ms(t) {
|
|
6642
6642
|
return [
|
|
6643
|
-
...
|
|
6643
|
+
...Cs(t),
|
|
6644
6644
|
{
|
|
6645
6645
|
type: "edit",
|
|
6646
6646
|
component: R,
|
|
@@ -6666,9 +6666,9 @@ function Ss(t) {
|
|
|
6666
6666
|
}
|
|
6667
6667
|
];
|
|
6668
6668
|
}
|
|
6669
|
-
function
|
|
6669
|
+
function As(t) {
|
|
6670
6670
|
return [
|
|
6671
|
-
...
|
|
6671
|
+
...Ts(t),
|
|
6672
6672
|
{
|
|
6673
6673
|
type: "edit",
|
|
6674
6674
|
component: R,
|
|
@@ -6694,9 +6694,9 @@ function Ms(t) {
|
|
|
6694
6694
|
}
|
|
6695
6695
|
];
|
|
6696
6696
|
}
|
|
6697
|
-
function
|
|
6697
|
+
function Ls(t) {
|
|
6698
6698
|
return [
|
|
6699
|
-
...
|
|
6699
|
+
...Ns(t),
|
|
6700
6700
|
{
|
|
6701
6701
|
type: "remove",
|
|
6702
6702
|
component: R,
|
|
@@ -6712,8 +6712,8 @@ function As(t) {
|
|
|
6712
6712
|
}
|
|
6713
6713
|
];
|
|
6714
6714
|
}
|
|
6715
|
-
function
|
|
6716
|
-
return
|
|
6715
|
+
function Is(t, e) {
|
|
6716
|
+
return Ai.reduce((r, n) => {
|
|
6717
6717
|
if (n === "divider" && r.length > 0)
|
|
6718
6718
|
return [...r, {
|
|
6719
6719
|
type: "divider",
|
|
@@ -6727,11 +6727,11 @@ function Ls(t, e) {
|
|
|
6727
6727
|
function Fe(t, e, r) {
|
|
6728
6728
|
const n = [], a = t.node(0);
|
|
6729
6729
|
r = typeof r == "number" && r >= 0 ? r : t.sameParent(e) ? Math.max(0, t.sharedDepth(e.pos) - 1) : t.sharedDepth(e.pos);
|
|
6730
|
-
const o = new
|
|
6730
|
+
const o = new _i(t, e, r), c = o.depth === 0 ? 0 : a.resolve(o.start).posAtIndex(0);
|
|
6731
6731
|
return o.parent.forEach((l, s) => {
|
|
6732
6732
|
const h = c + s, d = h + l.nodeSize;
|
|
6733
6733
|
if (h < o.start || h >= o.end) return;
|
|
6734
|
-
const u = new
|
|
6734
|
+
const u = new Bi(a.resolve(h), a.resolve(d));
|
|
6735
6735
|
n.push(u);
|
|
6736
6736
|
}), n;
|
|
6737
6737
|
}
|
|
@@ -6749,7 +6749,7 @@ class Ue {
|
|
|
6749
6749
|
return new at(r, n);
|
|
6750
6750
|
}
|
|
6751
6751
|
}
|
|
6752
|
-
class at extends
|
|
6752
|
+
class at extends $i {
|
|
6753
6753
|
constructor(r, n, a, o = 1) {
|
|
6754
6754
|
const { doc: c } = r, l = r === n, s = r.pos === c.content.size && n.pos === c.content.size, h = l && !s ? c.resolve(n.pos + (o > 0 ? 1 : -1)) : n, d = l && s ? c.resolve(r.pos - (o > 0 ? 1 : -1)) : r, u = Fe(d.min(h), d.max(h), a);
|
|
6755
6755
|
super(
|
|
@@ -6807,7 +6807,7 @@ class at extends Bi {
|
|
|
6807
6807
|
return new Ue(this.anchor, this.head);
|
|
6808
6808
|
}
|
|
6809
6809
|
}
|
|
6810
|
-
function
|
|
6810
|
+
function Es(t) {
|
|
6811
6811
|
const e = t.cloneNode(!0), r = [t, ...Array.from(t.getElementsByTagName("*"))], n = [e, ...Array.from(e.getElementsByTagName("*"))];
|
|
6812
6812
|
return r.forEach((a, o) => {
|
|
6813
6813
|
n[o].style.cssText = function(c) {
|
|
@@ -6822,7 +6822,7 @@ function Is(t) {
|
|
|
6822
6822
|
function Jt(t, e) {
|
|
6823
6823
|
return window.getComputedStyle(t)[e];
|
|
6824
6824
|
}
|
|
6825
|
-
function
|
|
6825
|
+
function zs(t = 0, e = 0, r = 0) {
|
|
6826
6826
|
return Math.min(Math.max(t, e), r);
|
|
6827
6827
|
}
|
|
6828
6828
|
function mr(t) {
|
|
@@ -6848,13 +6848,13 @@ function oi(t) {
|
|
|
6848
6848
|
pos: l !== null ? l : null
|
|
6849
6849
|
};
|
|
6850
6850
|
}
|
|
6851
|
-
function
|
|
6851
|
+
function Ps(t, e) {
|
|
6852
6852
|
const { doc: r } = e.view.state, n = oi({ editor: e, x: t.clientX, y: t.clientY, direction: "right" });
|
|
6853
6853
|
if (!n.resultNode || n.pos === null) return [];
|
|
6854
6854
|
const a = t.clientX, o = function(d, u, m) {
|
|
6855
6855
|
const x = Number.parseInt(Jt(d.dom, "paddingLeft"), 10), w = Number.parseInt(Jt(d.dom, "paddingRight"), 10), p = Number.parseInt(Jt(d.dom, "borderLeftWidth"), 10), g = Number.parseInt(Jt(d.dom, "borderLeftWidth"), 10), I = d.dom.getBoundingClientRect();
|
|
6856
6856
|
return {
|
|
6857
|
-
left:
|
|
6857
|
+
left: zs(
|
|
6858
6858
|
u,
|
|
6859
6859
|
I.left + x + p,
|
|
6860
6860
|
I.right - w - g
|
|
@@ -6887,7 +6887,7 @@ function gr(t, e) {
|
|
|
6887
6887
|
return r;
|
|
6888
6888
|
}
|
|
6889
6889
|
const ai = new Oe("dragHandle");
|
|
6890
|
-
function
|
|
6890
|
+
function Rs({
|
|
6891
6891
|
pluginKey: t = ai,
|
|
6892
6892
|
element: e,
|
|
6893
6893
|
editor: r,
|
|
@@ -6899,11 +6899,11 @@ function Ps({
|
|
|
6899
6899
|
return e.addEventListener("dragstart", (d) => {
|
|
6900
6900
|
const { view: u } = r;
|
|
6901
6901
|
if (!d.dataTransfer) return;
|
|
6902
|
-
const { empty: m, $from: x, $to: w } = u.state.selection, p =
|
|
6902
|
+
const { empty: m, $from: x, $to: w } = u.state.selection, p = Ps(d, r), g = Fe(x, w, 0), I = g.some((E) => p.find((b) => b.$from === E.$from && b.$to === E.$to)), T = m || !I ? p : g;
|
|
6903
6903
|
if (T.length === 0) return;
|
|
6904
6904
|
const { tr: v } = u.state, y = document.createElement("div"), C = T[0].$from.pos, L = T[T.length - 1].$to.pos, A = at.create(u.state.doc, C, L), N = A.content();
|
|
6905
6905
|
T.forEach((E) => {
|
|
6906
|
-
const b =
|
|
6906
|
+
const b = Es(u.nodeDOM(E.$from.pos));
|
|
6907
6907
|
y.append(b);
|
|
6908
6908
|
}), y.style.position = "absolute", y.style.top = "-10000px", document.body.append(y), d.dataTransfer.clearData(), d.dataTransfer.setDragImage(y, 0, 0), u.dragging = { slice: N, move: !0 }, v.setSelection(A), u.dispatch(v), document.addEventListener("drop", () => mr(y), { once: !0 }), setTimeout(() => {
|
|
6909
6909
|
e && (e.style.pointerEvents = "none");
|
|
@@ -6926,7 +6926,7 @@ function Ps({
|
|
|
6926
6926
|
}
|
|
6927
6927
|
},
|
|
6928
6928
|
view: (d) => {
|
|
6929
|
-
return u(), m(r.view.dom), c =
|
|
6929
|
+
return u(), m(r.view.dom), c = so(d.dom, {
|
|
6930
6930
|
...x(),
|
|
6931
6931
|
...n
|
|
6932
6932
|
}), {
|
|
@@ -7056,11 +7056,11 @@ function Ps({
|
|
|
7056
7056
|
}
|
|
7057
7057
|
});
|
|
7058
7058
|
}
|
|
7059
|
-
function
|
|
7059
|
+
function Os(t) {
|
|
7060
7060
|
var N, E, b;
|
|
7061
7061
|
const { pluginKey: e = ai } = t, { t: r } = q(), [n, a] = S(null), [o, c] = S(-1), l = Z(null), s = Z(null), [h, d] = S(!1), u = t.editor.extensionManager.extensions.some((k) => k.name === "textAlign"), m = t.editor.extensionManager.extensions.some((k) => k.name === "indent"), x = t.editor.extensionManager.extensions.some((k) => k.name === "clear");
|
|
7062
7062
|
B(() => {
|
|
7063
|
-
l.current && !t.editor.isDestroyed && (s.current =
|
|
7063
|
+
l.current && !t.editor.isDestroyed && (s.current = Rs({
|
|
7064
7064
|
editor: t.editor,
|
|
7065
7065
|
element: l.current,
|
|
7066
7066
|
pluginKey: "ContentItemMenu",
|
|
@@ -7150,7 +7150,7 @@ function Rs(t) {
|
|
|
7150
7150
|
}
|
|
7151
7151
|
),
|
|
7152
7152
|
/* @__PURE__ */ f(
|
|
7153
|
-
|
|
7153
|
+
ko,
|
|
7154
7154
|
{
|
|
7155
7155
|
onOpenChange: A,
|
|
7156
7156
|
open: h,
|
|
@@ -7186,7 +7186,7 @@ function Rs(t) {
|
|
|
7186
7186
|
),
|
|
7187
7187
|
/* @__PURE__ */ i(Ve, { children: r("editor.draghandle.tooltip") })
|
|
7188
7188
|
] }),
|
|
7189
|
-
/* @__PURE__ */ i(
|
|
7189
|
+
/* @__PURE__ */ i(So, { className: "richtext-absolute richtext-left-0 richtext-top-0 richtext-z-0 richtext-size-[28px]" })
|
|
7190
7190
|
] }),
|
|
7191
7191
|
/* @__PURE__ */ f(
|
|
7192
7192
|
Hr,
|
|
@@ -7324,13 +7324,13 @@ function Rs(t) {
|
|
|
7324
7324
|
}
|
|
7325
7325
|
);
|
|
7326
7326
|
}
|
|
7327
|
-
const
|
|
7327
|
+
const Hs = {
|
|
7328
7328
|
maxWidth: "auto",
|
|
7329
7329
|
zIndex: 20,
|
|
7330
7330
|
appendTo: "parent",
|
|
7331
7331
|
moveTransition: "transform 0.1s ease-out"
|
|
7332
7332
|
};
|
|
7333
|
-
function
|
|
7333
|
+
function Ds({ item: t, disabled: e, editor: r }) {
|
|
7334
7334
|
var a;
|
|
7335
7335
|
const n = t.component;
|
|
7336
7336
|
return n ? /* @__PURE__ */ i(
|
|
@@ -7342,17 +7342,17 @@ function Hs({ item: t, disabled: e, editor: r }) {
|
|
|
7342
7342
|
}
|
|
7343
7343
|
) : /* @__PURE__ */ i(W, {});
|
|
7344
7344
|
}
|
|
7345
|
-
function
|
|
7345
|
+
function _s(t) {
|
|
7346
7346
|
const { t: e, lang: r } = q(), n = ({ editor: o }) => {
|
|
7347
7347
|
const { selection: c } = o.view.state, { $from: l, to: s } = c;
|
|
7348
7348
|
return l.pos === s ? !1 : c instanceof Vt;
|
|
7349
|
-
}, a = U(() => t.disabled || !(t != null && t.editor) ? [] :
|
|
7349
|
+
}, a = U(() => t.disabled || !(t != null && t.editor) ? [] : Is(t.editor, e), [t.disabled, t.editor, r, e]);
|
|
7350
7350
|
return /* @__PURE__ */ i(
|
|
7351
7351
|
tt,
|
|
7352
7352
|
{
|
|
7353
7353
|
editor: t == null ? void 0 : t.editor,
|
|
7354
7354
|
shouldShow: n,
|
|
7355
|
-
tippyOptions:
|
|
7355
|
+
tippyOptions: Hs,
|
|
7356
7356
|
children: a != null && a.length ? /* @__PURE__ */ i("div", { className: "richtext-pointer-events-auto richtext-w-auto richtext-select-none richtext-rounded-sm !richtext-border richtext-border-neutral-200 richtext-bg-background richtext-px-3 richtext-py-2 richtext-shadow-sm richtext-transition-all dark:richtext-border-neutral-800", children: /* @__PURE__ */ i("div", { className: "richtext-relative richtext-flex richtext-h-[26px] richtext-flex-nowrap richtext-items-center richtext-justify-start richtext-gap-[4px] richtext-whitespace-nowrap", children: a == null ? void 0 : a.map((o, c) => (o == null ? void 0 : o.type) === "divider" ? /* @__PURE__ */ i(
|
|
7357
7357
|
it,
|
|
7358
7358
|
{
|
|
@@ -7361,7 +7361,7 @@ function Ds(t) {
|
|
|
7361
7361
|
},
|
|
7362
7362
|
`bubbleMenu-divider-${c}`
|
|
7363
7363
|
) : /* @__PURE__ */ i(
|
|
7364
|
-
|
|
7364
|
+
Ds,
|
|
7365
7365
|
{
|
|
7366
7366
|
disabled: t.disabled,
|
|
7367
7367
|
editor: t.editor,
|
|
@@ -7372,9 +7372,9 @@ function Ds(t) {
|
|
|
7372
7372
|
}
|
|
7373
7373
|
);
|
|
7374
7374
|
}
|
|
7375
|
-
function
|
|
7375
|
+
function Bs({ editor: t, disabled: e }) {
|
|
7376
7376
|
var p, g, I, T, v, y, C, L, A, N, E, b, k, _, D, H, M, $;
|
|
7377
|
-
const r = ({ editor: V }) =>
|
|
7377
|
+
const r = ({ editor: V }) => Ti(V.view.state, "table"), { t: n } = q();
|
|
7378
7378
|
function a() {
|
|
7379
7379
|
t.chain().focus().addColumnBefore().run();
|
|
7380
7380
|
}
|
|
@@ -7431,7 +7431,7 @@ function _s({ editor: t, disabled: e }) {
|
|
|
7431
7431
|
const Xe = (Ye = J == null ? void 0 : J.closest) == null ? void 0 : Ye.call(J, ".tableWrapper");
|
|
7432
7432
|
return Xe ? Xe.getBoundingClientRect() : new DOMRect(-1e3, -1e3, 0, 0);
|
|
7433
7433
|
},
|
|
7434
|
-
plugins: [
|
|
7434
|
+
plugins: [lo],
|
|
7435
7435
|
sticky: "popper"
|
|
7436
7436
|
},
|
|
7437
7437
|
children: e ? /* @__PURE__ */ i(W, {}) : /* @__PURE__ */ f("div", { className: "richtext-min-w-32 richtext-flex richtext-flex-row richtext-h-full richtext-items-center richtext-leading-none richtext-gap-0.5 richtext-p-2 richtext-w-full richtext-bg-background richtext-rounded-lg richtext-shadow-sm !richtext-border richtext-border-border", children: [
|
|
@@ -7535,7 +7535,7 @@ function _s({ editor: t, disabled: e }) {
|
|
|
7535
7535
|
),
|
|
7536
7536
|
/* @__PURE__ */ i(it, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }),
|
|
7537
7537
|
/* @__PURE__ */ i(
|
|
7538
|
-
|
|
7538
|
+
ua,
|
|
7539
7539
|
{
|
|
7540
7540
|
editor: t,
|
|
7541
7541
|
tooltip: n("editor.table.menu.setCellsBgColor"),
|
|
@@ -7561,7 +7561,7 @@ function _s({ editor: t, disabled: e }) {
|
|
|
7561
7561
|
}
|
|
7562
7562
|
);
|
|
7563
7563
|
}
|
|
7564
|
-
function
|
|
7564
|
+
function $s(t) {
|
|
7565
7565
|
const { t: e } = q();
|
|
7566
7566
|
return /* @__PURE__ */ f("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-p-2 richtext-bg-white !richtext-border richtext-rounded-lg richtext-shadow-sm dark:richtext-bg-black richtext-border-neutral-200 dark:richtext-border-neutral-800", children: [
|
|
7567
7567
|
/* @__PURE__ */ i(
|
|
@@ -7571,7 +7571,7 @@ function Bs(t) {
|
|
|
7571
7571
|
target: "_blank",
|
|
7572
7572
|
rel: "noopener noreferrer",
|
|
7573
7573
|
className: "richtext-text-sm richtext-underline richtext-break-all",
|
|
7574
|
-
children:
|
|
7574
|
+
children: Vi(t == null ? void 0 : t.link, {
|
|
7575
7575
|
length: 50,
|
|
7576
7576
|
omission: "…"
|
|
7577
7577
|
})
|
|
@@ -7604,7 +7604,7 @@ function Bs(t) {
|
|
|
7604
7604
|
] })
|
|
7605
7605
|
] });
|
|
7606
7606
|
}
|
|
7607
|
-
function
|
|
7607
|
+
function Vs({ editor: t, disabled: e }) {
|
|
7608
7608
|
const [r, n] = S(!1), a = U(() => {
|
|
7609
7609
|
const { href: s } = t.getAttributes("link");
|
|
7610
7610
|
return s;
|
|
@@ -7641,8 +7641,8 @@ function $s({ editor: t, disabled: e }) {
|
|
|
7641
7641
|
n(!1);
|
|
7642
7642
|
}
|
|
7643
7643
|
},
|
|
7644
|
-
children: e ? /* @__PURE__ */ i(W, {}) : /* @__PURE__ */ i(W, { children: r ? /* @__PURE__ */ i(
|
|
7645
|
-
|
|
7644
|
+
children: e ? /* @__PURE__ */ i(W, {}) : /* @__PURE__ */ i(W, { children: r ? /* @__PURE__ */ i(ma, { onSetLink: c, editor: t }) : /* @__PURE__ */ i(
|
|
7645
|
+
$s,
|
|
7646
7646
|
{
|
|
7647
7647
|
editor: t,
|
|
7648
7648
|
onClear: l,
|
|
@@ -7679,24 +7679,24 @@ function qe({ item: t, disabled: e, editor: r }) {
|
|
|
7679
7679
|
}
|
|
7680
7680
|
) }) : /* @__PURE__ */ i(W, {});
|
|
7681
7681
|
}
|
|
7682
|
-
function
|
|
7682
|
+
function Ws(t) {
|
|
7683
7683
|
return t.type.name === $t.name;
|
|
7684
7684
|
}
|
|
7685
|
-
function
|
|
7685
|
+
function Fs(t) {
|
|
7686
7686
|
return t.type.name === ti.name;
|
|
7687
7687
|
}
|
|
7688
|
-
function
|
|
7688
|
+
function Us(t) {
|
|
7689
7689
|
return t.type.name === Qr.name;
|
|
7690
7690
|
}
|
|
7691
|
-
function
|
|
7691
|
+
function Gs(t) {
|
|
7692
7692
|
const { lang: e } = q(), r = ({ editor: a }) => {
|
|
7693
7693
|
const { selection: o } = a.view.state, { $from: c, to: l } = o;
|
|
7694
7694
|
let s = !1;
|
|
7695
7695
|
return a.view.state.doc.nodesBetween(c.pos, l, (h) => {
|
|
7696
|
-
if (
|
|
7696
|
+
if (Ws(h))
|
|
7697
7697
|
return s = !0, !1;
|
|
7698
7698
|
}), s;
|
|
7699
|
-
}, n = U(() => t.disabled ? [] :
|
|
7699
|
+
}, n = U(() => t.disabled ? [] : ks(t.editor), [t.disabled, t.editor, e]);
|
|
7700
7700
|
return /* @__PURE__ */ i(W, { children: /* @__PURE__ */ i(
|
|
7701
7701
|
tt,
|
|
7702
7702
|
{
|
|
@@ -7715,15 +7715,15 @@ function Us(t) {
|
|
|
7715
7715
|
}
|
|
7716
7716
|
) });
|
|
7717
7717
|
}
|
|
7718
|
-
function
|
|
7718
|
+
function qs(t) {
|
|
7719
7719
|
const { lang: e } = q(), r = ({ editor: a }) => {
|
|
7720
7720
|
const { selection: o } = a.view.state, { $from: c, to: l } = o;
|
|
7721
7721
|
let s = !1;
|
|
7722
7722
|
return a.view.state.doc.nodesBetween(c.pos, l, (h) => {
|
|
7723
|
-
if (
|
|
7723
|
+
if (Fs(h))
|
|
7724
7724
|
return s = !0, !1;
|
|
7725
7725
|
}), s;
|
|
7726
|
-
}, n = U(() => t.disabled ? [] :
|
|
7726
|
+
}, n = U(() => t.disabled ? [] : Ss(t.editor), [t.disabled, t.editor, e]);
|
|
7727
7727
|
return /* @__PURE__ */ i(W, { children: /* @__PURE__ */ i(
|
|
7728
7728
|
tt,
|
|
7729
7729
|
{
|
|
@@ -7742,15 +7742,15 @@ function Gs(t) {
|
|
|
7742
7742
|
}
|
|
7743
7743
|
) });
|
|
7744
7744
|
}
|
|
7745
|
-
function
|
|
7745
|
+
function js(t) {
|
|
7746
7746
|
const { lang: e } = q(), r = ({ editor: a }) => {
|
|
7747
7747
|
const { selection: o } = a.view.state, { $from: c, to: l } = o;
|
|
7748
7748
|
let s = !1;
|
|
7749
7749
|
return a.view.state.doc.nodesBetween(c.pos, l, (h) => {
|
|
7750
|
-
if (
|
|
7750
|
+
if (Us(h))
|
|
7751
7751
|
return s = !0, !1;
|
|
7752
7752
|
}), s;
|
|
7753
|
-
}, n = U(() => t.disabled ? [] :
|
|
7753
|
+
}, n = U(() => t.disabled ? [] : Ls(t.editor), [t.editor, t.disabled, e]);
|
|
7754
7754
|
return /* @__PURE__ */ i(W, { children: /* @__PURE__ */ i(
|
|
7755
7755
|
tt,
|
|
7756
7756
|
{
|
|
@@ -7769,7 +7769,7 @@ function qs(t) {
|
|
|
7769
7769
|
}
|
|
7770
7770
|
) });
|
|
7771
7771
|
}
|
|
7772
|
-
function
|
|
7772
|
+
function Xs({ editor: t }) {
|
|
7773
7773
|
const { t: e } = q(), r = O(() => t.isActive(se.name), [t]), n = O(() => Ut(se.name, t), [t]), a = O(() => t.chain().focus().addColBefore().run(), [t]), o = O(() => t.chain().focus().addColAfter().run(), [t]), c = O(() => t.chain().focus().deleteCol().run(), [t]);
|
|
7774
7774
|
return /* @__PURE__ */ i(
|
|
7775
7775
|
tt,
|
|
@@ -7825,7 +7825,7 @@ function js({ editor: t }) {
|
|
|
7825
7825
|
}
|
|
7826
7826
|
);
|
|
7827
7827
|
}
|
|
7828
|
-
function
|
|
7828
|
+
function Ys({ editor: t, extensions: e }) {
|
|
7829
7829
|
const { t: r } = q(), n = U(() => {
|
|
7830
7830
|
var a, o, c;
|
|
7831
7831
|
return (c = (o = (a = e == null ? void 0 : e.find((l) => l.name === "base-kit")) == null ? void 0 : a.options) == null ? void 0 : o.characterCount) == null ? void 0 : c.limit;
|
|
@@ -7842,9 +7842,9 @@ function Xs({ editor: t, extensions: e }) {
|
|
|
7842
7842
|
r("editor.characters")
|
|
7843
7843
|
] }) }) }) });
|
|
7844
7844
|
}
|
|
7845
|
-
function
|
|
7846
|
-
const { toasts: t } =
|
|
7847
|
-
return /* @__PURE__ */ f(
|
|
7845
|
+
function Ks() {
|
|
7846
|
+
const { toasts: t } = Wo();
|
|
7847
|
+
return /* @__PURE__ */ f(zo, { children: [
|
|
7848
7848
|
t.map(({ id: e, title: r, description: n, action: a, ...o }) => /* @__PURE__ */ f(
|
|
7849
7849
|
Vr,
|
|
7850
7850
|
{
|
|
@@ -7863,7 +7863,7 @@ function Ys() {
|
|
|
7863
7863
|
/* @__PURE__ */ i($r, {})
|
|
7864
7864
|
] });
|
|
7865
7865
|
}
|
|
7866
|
-
const
|
|
7866
|
+
const Zs = `
|
|
7867
7867
|
.reactjs-tiptap-editor,
|
|
7868
7868
|
.richtext-dialog-content {
|
|
7869
7869
|
button,
|
|
@@ -8001,7 +8001,7 @@ div[data-tippy-root] {
|
|
|
8001
8001
|
color: inherit;
|
|
8002
8002
|
}
|
|
8003
8003
|
}
|
|
8004
|
-
`,
|
|
8004
|
+
`, Js = gi(({ children: t, id: e }) => {
|
|
8005
8005
|
const [, r] = Rr((c) => c.value), [, n] = Or((c) => c.value), a = (c) => {
|
|
8006
8006
|
r({
|
|
8007
8007
|
value: c.detail
|
|
@@ -8018,11 +8018,11 @@ div[data-tippy-root] {
|
|
|
8018
8018
|
};
|
|
8019
8019
|
}, []), /* @__PURE__ */ i(W, { children: t });
|
|
8020
8020
|
});
|
|
8021
|
-
function
|
|
8022
|
-
return /* @__PURE__ */ i(
|
|
8021
|
+
function Qs({ children: t, id: e }) {
|
|
8022
|
+
return /* @__PURE__ */ i(fo, { children: /* @__PURE__ */ i(go, { children: /* @__PURE__ */ i(Js, { id: e, children: t }) }) });
|
|
8023
8023
|
}
|
|
8024
|
-
const pr = "data-rc-order", wr = "data-rc-priority",
|
|
8025
|
-
function
|
|
8024
|
+
const pr = "data-rc-order", wr = "data-rc-priority", tl = "rc-util-key", Ee = /* @__PURE__ */ new Map();
|
|
8025
|
+
function el(t, e) {
|
|
8026
8026
|
if (!t)
|
|
8027
8027
|
return !1;
|
|
8028
8028
|
if (t.contains)
|
|
@@ -8036,12 +8036,12 @@ function tl(t, e) {
|
|
|
8036
8036
|
return !1;
|
|
8037
8037
|
}
|
|
8038
8038
|
function ci({ mark: t } = {}) {
|
|
8039
|
-
return t ? t.startsWith("data-") ? t : `data-${t}` :
|
|
8039
|
+
return t ? t.startsWith("data-") ? t : `data-${t}` : tl;
|
|
8040
8040
|
}
|
|
8041
8041
|
function je(t) {
|
|
8042
8042
|
return t.attachTo ? t.attachTo : document.querySelector("head") || document.body;
|
|
8043
8043
|
}
|
|
8044
|
-
function
|
|
8044
|
+
function rl(t) {
|
|
8045
8045
|
return t === "queue" ? "prependQueue" : t ? "prepend" : "append";
|
|
8046
8046
|
}
|
|
8047
8047
|
function si(t) {
|
|
@@ -8050,7 +8050,7 @@ function si(t) {
|
|
|
8050
8050
|
);
|
|
8051
8051
|
}
|
|
8052
8052
|
function li(t, e = {}) {
|
|
8053
|
-
const { csp: r, prepend: n, priority: a = 0 } = e, o =
|
|
8053
|
+
const { csp: r, prepend: n, priority: a = 0 } = e, o = rl(n), c = o === "prependQueue", l = document.createElement("style");
|
|
8054
8054
|
l.setAttribute(pr, o), c && a && l.setAttribute(wr, `${a}`), r != null && r.nonce && (l.nonce = r == null ? void 0 : r.nonce), l.innerHTML = t;
|
|
8055
8055
|
const s = je(e), { firstChild: h } = s;
|
|
8056
8056
|
if (n) {
|
|
@@ -8073,30 +8073,30 @@ function di(t, e = {}) {
|
|
|
8073
8073
|
const r = je(e);
|
|
8074
8074
|
return si(r).find((n) => n.getAttribute(ci(e)) === t);
|
|
8075
8075
|
}
|
|
8076
|
-
function
|
|
8076
|
+
function il(t, e = {}) {
|
|
8077
8077
|
const r = di(t, e);
|
|
8078
8078
|
r && r.remove();
|
|
8079
8079
|
}
|
|
8080
|
-
function
|
|
8080
|
+
function nl(t, e) {
|
|
8081
8081
|
const r = Ee.get(t);
|
|
8082
|
-
if (!r || !
|
|
8082
|
+
if (!r || !el(document, r)) {
|
|
8083
8083
|
const n = li("", e), { parentNode: a } = n;
|
|
8084
8084
|
Ee.set(t, a), n.remove();
|
|
8085
8085
|
}
|
|
8086
8086
|
}
|
|
8087
|
-
function
|
|
8087
|
+
function ol(t, e, r = {}) {
|
|
8088
8088
|
var c, l, s;
|
|
8089
8089
|
const n = je(r);
|
|
8090
|
-
|
|
8090
|
+
nl(n, r);
|
|
8091
8091
|
const a = di(e, r);
|
|
8092
8092
|
if (a)
|
|
8093
8093
|
return (c = r.csp) != null && c.nonce && a.nonce !== ((l = r.csp) == null ? void 0 : l.nonce) && (a.nonce = (s = r.csp) == null ? void 0 : s.nonce), a.innerHTML !== t && (a.innerHTML = t), a;
|
|
8094
8094
|
const o = li(t, r);
|
|
8095
8095
|
return o.setAttribute(ci(r), e), o;
|
|
8096
8096
|
}
|
|
8097
|
-
function
|
|
8097
|
+
function al(t, e) {
|
|
8098
8098
|
const { content: r, extensions: n, useEditorOptions: a = {} } = t, o = wi(), c = U(() => {
|
|
8099
|
-
const u =
|
|
8099
|
+
const u = Wi(n, n, "name");
|
|
8100
8100
|
return [...n.map((x) => {
|
|
8101
8101
|
const w = n.find((p) => p.name === x.name);
|
|
8102
8102
|
return w ? x.configure(w.options) : x;
|
|
@@ -8105,7 +8105,7 @@ function ol(t, e) {
|
|
|
8105
8105
|
var x;
|
|
8106
8106
|
const m = h(u, t.output);
|
|
8107
8107
|
(x = t == null ? void 0 : t.onChangeContent) == null || x.call(t, m);
|
|
8108
|
-
},
|
|
8108
|
+
}, Li), s = Ni({
|
|
8109
8109
|
extensions: c,
|
|
8110
8110
|
content: r,
|
|
8111
8111
|
onUpdate: ({ editor: u }) => {
|
|
@@ -8113,36 +8113,38 @@ function ol(t, e) {
|
|
|
8113
8113
|
},
|
|
8114
8114
|
...a
|
|
8115
8115
|
});
|
|
8116
|
-
|
|
8116
|
+
vi(e, () => ({
|
|
8117
8117
|
editor: s
|
|
8118
8118
|
})), B(() => {
|
|
8119
|
-
document.documentElement.classList.toggle("dark", t.dark),
|
|
8119
|
+
document.documentElement.classList.toggle("dark", t.dark), Ga.setTheme(o, t.dark ? "dark" : "light");
|
|
8120
8120
|
}, [t.dark]), B(() => {
|
|
8121
|
-
s == null || s.setEditable(!(t != null && t.disabled)),
|
|
8122
|
-
}, [s, t == null ? void 0 : t.disabled]), B(() => ((t == null ? void 0 : t.resetCSS) !== !1 &&
|
|
8123
|
-
|
|
8121
|
+
s == null || s.setEditable(!(t != null && t.disabled)), wo.setDisable(o, !(t != null && t.disabled));
|
|
8122
|
+
}, [s, t == null ? void 0 : t.disabled]), B(() => ((t == null ? void 0 : t.resetCSS) !== !1 && ol(Zs, "react-tiptap-reset"), () => {
|
|
8123
|
+
il("react-tiptap-reset");
|
|
8124
8124
|
}), [t == null ? void 0 : t.resetCSS]);
|
|
8125
8125
|
function h(u, m) {
|
|
8126
8126
|
return t != null && t.removeDefaultWrapper ? m === "html" ? u.isEmpty ? "" : u.getHTML() : m === "json" ? u.isEmpty ? {} : u.getJSON() : m === "text" ? u.isEmpty ? "" : u.getText() : "" : m === "html" ? u.getHTML() : m === "json" ? u.getJSON() : m === "text" ? u.getText() : "";
|
|
8127
8127
|
}
|
|
8128
|
-
|
|
8128
|
+
bi(() => {
|
|
8129
|
+
s.id = o;
|
|
8130
|
+
}, [o, s]), B(() => () => {
|
|
8129
8131
|
var u;
|
|
8130
8132
|
(u = s == null ? void 0 : s.destroy) == null || u.call(s);
|
|
8131
8133
|
}, []);
|
|
8132
|
-
const d =
|
|
8134
|
+
const d = To(s, "characterCount");
|
|
8133
8135
|
return s ? /* @__PURE__ */ f("div", { className: "reactjs-tiptap-editor", children: [
|
|
8134
8136
|
/* @__PURE__ */ i(
|
|
8135
|
-
|
|
8137
|
+
Qs,
|
|
8136
8138
|
{
|
|
8137
8139
|
id: o,
|
|
8138
8140
|
children: /* @__PURE__ */ i(
|
|
8139
|
-
|
|
8141
|
+
Ho,
|
|
8140
8142
|
{
|
|
8141
8143
|
delayDuration: 0,
|
|
8142
8144
|
disableHoverableContent: !0,
|
|
8143
8145
|
children: /* @__PURE__ */ i("div", { className: "richtext-overflow-hidden richtext-rounded-[0.5rem] richtext-bg-background richtext-shadow richtext-outline richtext-outline-1", children: /* @__PURE__ */ f("div", { className: "richtext-flex richtext-max-h-full richtext-w-full richtext-flex-col", children: [
|
|
8144
8146
|
!(t != null && t.hideToolbar) && /* @__PURE__ */ i(
|
|
8145
|
-
|
|
8147
|
+
ps,
|
|
8146
8148
|
{
|
|
8147
8149
|
disabled: !!(t != null && t.disabled),
|
|
8148
8150
|
editor: s,
|
|
@@ -8150,21 +8152,21 @@ function ol(t, e) {
|
|
|
8150
8152
|
}
|
|
8151
8153
|
),
|
|
8152
8154
|
/* @__PURE__ */ i(
|
|
8153
|
-
|
|
8155
|
+
ki,
|
|
8154
8156
|
{
|
|
8155
8157
|
className: `richtext-relative ${(t == null ? void 0 : t.contentClass) || ""}`,
|
|
8156
8158
|
editor: s
|
|
8157
8159
|
}
|
|
8158
8160
|
),
|
|
8159
8161
|
d && /* @__PURE__ */ i(
|
|
8160
|
-
|
|
8162
|
+
Ys,
|
|
8161
8163
|
{
|
|
8162
8164
|
editor: s,
|
|
8163
8165
|
extensions: n
|
|
8164
8166
|
}
|
|
8165
8167
|
),
|
|
8166
8168
|
!(t != null && t.hideBubble) && /* @__PURE__ */ i(
|
|
8167
|
-
|
|
8169
|
+
xs,
|
|
8168
8170
|
{
|
|
8169
8171
|
bubbleMenu: t == null ? void 0 : t.bubbleMenu,
|
|
8170
8172
|
disabled: t == null ? void 0 : t.disabled,
|
|
@@ -8176,37 +8178,37 @@ function ol(t, e) {
|
|
|
8176
8178
|
)
|
|
8177
8179
|
}
|
|
8178
8180
|
),
|
|
8179
|
-
/* @__PURE__ */ i(
|
|
8181
|
+
/* @__PURE__ */ i(Ks, {})
|
|
8180
8182
|
] }) : /* @__PURE__ */ i(W, {});
|
|
8181
8183
|
}
|
|
8182
|
-
const
|
|
8184
|
+
const Il = pi(al);
|
|
8183
8185
|
export {
|
|
8184
8186
|
kt as $,
|
|
8185
8187
|
R as A,
|
|
8186
8188
|
G as B,
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
+
fs as C,
|
|
8190
|
+
ko as D,
|
|
8189
8191
|
bt as E,
|
|
8190
8192
|
ct as F,
|
|
8191
8193
|
Q as G,
|
|
8192
|
-
|
|
8194
|
+
ua as H,
|
|
8193
8195
|
Y as I,
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8196
|
+
Wo as J,
|
|
8197
|
+
To as K,
|
|
8198
|
+
ma as L,
|
|
8197
8199
|
se as M,
|
|
8198
8200
|
At as N,
|
|
8199
|
-
|
|
8201
|
+
Ll as O,
|
|
8200
8202
|
Lt as P,
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
+
na as Q,
|
|
8204
|
+
Il as R,
|
|
8203
8205
|
_r as S,
|
|
8204
8206
|
qr as T,
|
|
8205
|
-
|
|
8207
|
+
ia as U,
|
|
8206
8208
|
Qr as V,
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8209
|
+
Ml as W,
|
|
8210
|
+
Sl as X,
|
|
8211
|
+
Al as Y,
|
|
8210
8212
|
Nt as Z,
|
|
8211
8213
|
St as _,
|
|
8212
8214
|
jr as a,
|
|
@@ -8215,28 +8217,28 @@ export {
|
|
|
8215
8217
|
Le as a2,
|
|
8216
8218
|
dr as a3,
|
|
8217
8219
|
Ve as b,
|
|
8218
|
-
|
|
8220
|
+
So as c,
|
|
8219
8221
|
Hr as d,
|
|
8220
8222
|
ot as e,
|
|
8221
8223
|
P as f,
|
|
8222
|
-
|
|
8224
|
+
xo as g,
|
|
8223
8225
|
Ut as h,
|
|
8224
8226
|
Yr as i,
|
|
8225
|
-
|
|
8227
|
+
Mo as j,
|
|
8226
8228
|
Dr as k,
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8229
|
+
Nl as l,
|
|
8230
|
+
Io as m,
|
|
8231
|
+
mo as n,
|
|
8230
8232
|
It as o,
|
|
8231
8233
|
Tt as p,
|
|
8232
8234
|
Gr as q,
|
|
8233
8235
|
Kr as r,
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8236
|
+
Yo as s,
|
|
8237
|
+
kl as t,
|
|
8238
|
+
po as u,
|
|
8237
8239
|
Se as v,
|
|
8238
8240
|
_e as w,
|
|
8239
8241
|
$t as x,
|
|
8240
|
-
|
|
8242
|
+
ba as y,
|
|
8241
8243
|
ce as z
|
|
8242
8244
|
};
|