@remarkablejames/editor 0.0.3 → 0.0.4
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/{ActionMenuButton-D5HLfRzv.js → ActionMenuButton-BUtJUsfO.js} +1 -1
- package/lib/{ActionMenuButton-DN6VHLkp.cjs → ActionMenuButton-M55VtCZ5.cjs} +1 -1
- package/lib/Attachment.cjs +2 -2
- package/lib/Attachment.js +165 -130
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +1 -1
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +3 -3
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +2 -2
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +2 -2
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +1 -1
- package/lib/{Drawer-BN0lYcnJ.cjs → Drawer-CdQBnwUs.cjs} +1 -1
- package/lib/{Drawer-B9l1SoRJ.js → Drawer-mlmJ2nCT.js} +2 -2
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +3 -3
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +4 -4
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +4 -4
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +4 -4
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +2 -2
- package/lib/History.cjs +1 -1
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +1 -1
- package/lib/{Iframe-CXFk3GEq.cjs → Iframe-B_a_AoZc.cjs} +1 -1
- package/lib/{Iframe-MjeJ2OOI.js → Iframe-CYgR99Ny.js} +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +3 -3
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +2 -2
- package/lib/{Indent-BPX9XRos.cjs → Indent-BAcoFdaq.cjs} +1 -1
- package/lib/{Indent-CgwDItIf.js → Indent-BMz2ILRl.js} +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +1 -1
- package/lib/{Katex-CZ4g3vA9.js → Katex-DOlb4iTP.js} +3 -3
- package/lib/{Katex-DIgsR_dS.cjs → Katex-bIhj82VV.cjs} +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +1 -1
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +3 -3
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +1 -1
- package/lib/{LinkEditBlock-B2bU0Mcr.cjs → LinkEditBlock-Cqs5RxjV.cjs} +1 -1
- package/lib/{LinkEditBlock-CaDV3Vq5.js → LinkEditBlock-xnokk4G7.js} +3 -3
- package/lib/{Mermaid-EhYj_ICn.js → Mermaid-Bs3pIGc6.js} +2 -2
- package/lib/{Mermaid-B9h7XKFo.cjs → Mermaid-DiOdgQv1.cjs} +1 -1
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +1 -1
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +2 -2
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +1 -1
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +3 -3
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +3 -3
- package/lib/SlashCommandNodeView-CLimjqhb.cjs +1 -0
- package/lib/{SlashCommandNodeView-CY3peX5x.js → SlashCommandNodeView-CYcf7mVz.js} +78 -88
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +1 -1
- package/lib/{Table-Bw7rLue7.js → Table-bz1Wcojf.js} +3 -3
- package/lib/{Table-DLrtX6T7.cjs → Table-dlXTKKwJ.cjs} +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +2 -2
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +2 -2
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +1 -1
- package/lib/{Twitter-pM0y5Z-L.js → Twitter-CNTXzgt0.js} +3 -3
- package/lib/{Twitter-Ck6vGefg.cjs → Twitter-DhEnGg6P.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +2 -2
- package/lib/bubble.cjs +1 -1
- package/lib/bubble.js +16 -16
- package/lib/{dropdown-menu-nX-u8e2w.js → dropdown-menu-BuSlU2uN.js} +1 -1
- package/lib/{dropdown-menu-DwR8tTs9.cjs → dropdown-menu-CfWNst4v.cjs} +1 -1
- package/lib/extensions/Attachment/Attachment.d.ts +22 -2
- package/lib/{index-_WrFM-Fk.js → index-8B00E8e4.js} +303 -302
- package/lib/index-BrxL7y9p.cjs +1 -0
- package/lib/{index-Dib4cXXf.cjs → index-Bt9LiArC.cjs} +2 -2
- package/lib/{index-4Q5IhypJ.js → index-DZfkCNKr.js} +15 -9
- package/lib/index.cjs +1 -1
- package/lib/index.js +1 -1
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.js +1 -1
- package/lib/locales/en.d.ts +189 -188
- package/lib/locales/fi.d.ts +189 -188
- package/lib/locales/hu.d.ts +189 -188
- package/lib/locales/index.d.ts +1134 -1128
- package/lib/locales/pt-br.d.ts +189 -188
- package/lib/locales/vi.d.ts +189 -188
- package/lib/locales/zh-cn.d.ts +189 -188
- package/lib/{popover-BY7j9SiD.cjs → popover-51mwx3UY.cjs} +1 -1
- package/lib/{popover-CSvY4C-l.js → popover-DMPRgXD3.js} +1 -1
- package/lib/{select-Bu-5iIA9.cjs → select-B7v1Scb-.cjs} +1 -1
- package/lib/{select-BelNLNvT.js → select-BxFDMaZi.js} +1 -1
- package/lib/{separator-Br5kcIJa.js → separator-CpqX9KQC.js} +3 -3
- package/lib/{separator-Cp9Lg3HU.cjs → separator-kB9YUfeO.cjs} +1 -1
- package/lib/style.css +1 -1
- package/lib/{textarea-Ceev4t42.js → textarea-C5DsgzSy.js} +1 -1
- package/lib/{textarea-DfqvYaA6.cjs → textarea-bQSzjqg3.cjs} +1 -1
- package/package.json +1 -1
- package/lib/SlashCommandNodeView-COlWSlnE.cjs +0 -1
- package/lib/index-bVGIXhRg.cjs +0 -1
|
@@ -4,26 +4,26 @@ import Q, { useState as E, useMemo as $, useCallback as de, useEffect as Me, use
|
|
|
4
4
|
import { y as _t, b as Ut, S as Bt } from "./index-BG0kQamI.js";
|
|
5
5
|
import "./theme.js";
|
|
6
6
|
import * as X from "@radix-ui/react-dialog";
|
|
7
|
-
import { NotebookPen as $t, ExternalLink as Ft, X as lt, Loader2 as Wt, WrapText as Gt, PencilRuler as Xt, FlipHorizontal as Yt, FlipVertical as qt, CropIcon as Zt, ChevronUp as Kt,
|
|
8
|
-
import { j as ct, N as dt, n as
|
|
9
|
-
import { I as Ke, i as Je, j as
|
|
7
|
+
import { NotebookPen as $t, ExternalLink as Ft, X as lt, Loader2 as Wt, WrapText as Gt, PencilRuler as Xt, FlipHorizontal as Yt, FlipVertical as qt, CropIcon as Zt, ChevronUp as Kt, Download as Jt, Paperclip as Qt, Eye as er, Settings as tr, ZoomOut as rr, ZoomIn as ir, BookMarked as nr, Sigma as or, SmilePlusIcon as ar, Replace as Ye, SmilePlus as sr, Frame as lr, Columns2 as qe, PanelRight as cr, PanelLeft as dr, Clipboard as ur, Copy as hr, GripVertical as fr, Plus as mr, Columns4 as gr, Columns3 as pr, Heading6 as xr, Heading5 as br, Heading4 as vr, Heading3 as wr, Heading2 as yr, Heading1 as Cr, Pilcrow as kr, ChevronsUpDown as Mr, Trash as Ir, Trash2 as Tr, TableCellsSplit as zr, TableCellsMerge as Sr, BetweenVerticalEnd as Ar, BetweenVerticalStart as Lr, BetweenHorizonalStart as Nr, BetweenHorizonalEnd as Er, Unlink as Rr, Pencil as Vr, Sparkles as Hr, Table as Dr, Minimize as jr, Maximize as Pr, Video as Or, ImageUp as _r, Link as Ur, ListTodo as Br, ListOrdered as $r, List as Fr, IndentDecrease as Wr, IndentIncrease as Gr, Type as Xr, CodeXml as Yr, Code as qr, Superscript as Zr, Subscript as Kr, ChevronDown as Jr, Undo2 as Qr, Redo2 as ei, PaintRoller as ti, Eraser as ri, Minus as ii, Strikethrough as ni, Quote as oi, Underline as ai, Italic as si, LoaderCircle as li, Bold as ci, Check as di } from "lucide-react";
|
|
8
|
+
import { j as ct, N as dt, n as ui, aa as hi, m as ut, h as Ze, a3 as fi, ab as mi, k as gi } from "./clsx-CDyrfCnw.js";
|
|
9
|
+
import { I as Ke, i as Je, j as pi, u as oe, V as xi } from "./index-DZfkCNKr.js";
|
|
10
10
|
import { Slot as ht } from "@radix-ui/react-slot";
|
|
11
11
|
import * as be from "@radix-ui/react-tooltip";
|
|
12
12
|
import * as ft from "@radix-ui/react-toggle";
|
|
13
|
-
import { TextAlignRightIcon as
|
|
13
|
+
import { TextAlignRightIcon as bi, TextAlignLeftIcon as vi, TextAlignJustifyIcon as wi, TextAlignCenterIcon as yi } from "@radix-ui/react-icons";
|
|
14
14
|
import * as ie from "@radix-ui/react-tabs";
|
|
15
|
-
import
|
|
15
|
+
import Ci from "react-image-crop";
|
|
16
16
|
import * as je from "@radix-ui/react-checkbox";
|
|
17
17
|
import * as mt from "@radix-ui/react-label";
|
|
18
|
-
const _e = "-",
|
|
19
|
-
const t =
|
|
18
|
+
const _e = "-", ki = (e) => {
|
|
19
|
+
const t = Ii(e), {
|
|
20
20
|
conflictingClassGroups: r,
|
|
21
21
|
conflictingClassGroupModifiers: i
|
|
22
22
|
} = e;
|
|
23
23
|
return {
|
|
24
24
|
getClassGroupId: (l) => {
|
|
25
25
|
const s = l.split(_e);
|
|
26
|
-
return s[0] === "" && s.length !== 1 && s.shift(), gt(s, t) ||
|
|
26
|
+
return s[0] === "" && s.length !== 1 && s.shift(), gt(s, t) || Mi(l);
|
|
27
27
|
},
|
|
28
28
|
getConflictingClassGroupIds: (l, s) => {
|
|
29
29
|
const c = r[l] || [];
|
|
@@ -43,13 +43,13 @@ const _e = "-", Ci = (e) => {
|
|
|
43
43
|
return (l = t.validators.find(({
|
|
44
44
|
validator: s
|
|
45
45
|
}) => s(a))) == null ? void 0 : l.classGroupId;
|
|
46
|
-
}, Qe = /^\[(.+)\]$/,
|
|
46
|
+
}, Qe = /^\[(.+)\]$/, Mi = (e) => {
|
|
47
47
|
if (Qe.test(e)) {
|
|
48
48
|
const t = Qe.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
49
49
|
if (r)
|
|
50
50
|
return "arbitrary.." + r;
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, Ii = (e) => {
|
|
53
53
|
const {
|
|
54
54
|
theme: t,
|
|
55
55
|
prefix: r
|
|
@@ -57,7 +57,7 @@ const _e = "-", Ci = (e) => {
|
|
|
57
57
|
nextPart: /* @__PURE__ */ new Map(),
|
|
58
58
|
validators: []
|
|
59
59
|
};
|
|
60
|
-
return
|
|
60
|
+
return zi(Object.entries(e.classGroups), r).forEach(([a, l]) => {
|
|
61
61
|
Pe(l, i, a, t);
|
|
62
62
|
}), i;
|
|
63
63
|
}, Pe = (e, t, r, i) => {
|
|
@@ -68,7 +68,7 @@ const _e = "-", Ci = (e) => {
|
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
if (typeof o == "function") {
|
|
71
|
-
if (
|
|
71
|
+
if (Ti(o)) {
|
|
72
72
|
Pe(o(i), t, r, i);
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
@@ -90,10 +90,10 @@ const _e = "-", Ci = (e) => {
|
|
|
90
90
|
validators: []
|
|
91
91
|
}), r = r.nextPart.get(i);
|
|
92
92
|
}), r;
|
|
93
|
-
},
|
|
93
|
+
}, Ti = (e) => e.isThemeGetter, zi = (e, t) => t ? e.map(([r, i]) => {
|
|
94
94
|
const o = i.map((a) => typeof a == "string" ? t + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([l, s]) => [t + l, s])) : a);
|
|
95
95
|
return [r, o];
|
|
96
|
-
}) : e,
|
|
96
|
+
}) : e, Si = (e) => {
|
|
97
97
|
if (e < 1)
|
|
98
98
|
return {
|
|
99
99
|
get: () => {
|
|
@@ -117,7 +117,7 @@ const _e = "-", Ci = (e) => {
|
|
|
117
117
|
r.has(a) ? r.set(a, l) : o(a, l);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
}, pt = "!",
|
|
120
|
+
}, pt = "!", Ai = (e) => {
|
|
121
121
|
const {
|
|
122
122
|
separator: t,
|
|
123
123
|
experimentalParseClassName: r
|
|
@@ -150,7 +150,7 @@ const _e = "-", Ci = (e) => {
|
|
|
150
150
|
className: s,
|
|
151
151
|
parseClassName: l
|
|
152
152
|
}) : l;
|
|
153
|
-
},
|
|
153
|
+
}, Li = (e) => {
|
|
154
154
|
if (e.length <= 1)
|
|
155
155
|
return e;
|
|
156
156
|
const t = [];
|
|
@@ -158,16 +158,16 @@ const _e = "-", Ci = (e) => {
|
|
|
158
158
|
return e.forEach((i) => {
|
|
159
159
|
i[0] === "[" ? (t.push(...r.sort(), i), r = []) : r.push(i);
|
|
160
160
|
}), t.push(...r.sort()), t;
|
|
161
|
-
},
|
|
162
|
-
cache:
|
|
163
|
-
parseClassName:
|
|
164
|
-
...
|
|
165
|
-
}),
|
|
161
|
+
}, Ni = (e) => ({
|
|
162
|
+
cache: Si(e.cacheSize),
|
|
163
|
+
parseClassName: Ai(e),
|
|
164
|
+
...ki(e)
|
|
165
|
+
}), Ei = /\s+/, Ri = (e, t) => {
|
|
166
166
|
const {
|
|
167
167
|
parseClassName: r,
|
|
168
168
|
getClassGroupId: i,
|
|
169
169
|
getConflictingClassGroupIds: o
|
|
170
|
-
} = t, a = [], l = e.trim().split(
|
|
170
|
+
} = t, a = [], l = e.trim().split(Ei);
|
|
171
171
|
let s = "";
|
|
172
172
|
for (let c = l.length - 1; c >= 0; c -= 1) {
|
|
173
173
|
const d = l[c], {
|
|
@@ -188,7 +188,7 @@ const _e = "-", Ci = (e) => {
|
|
|
188
188
|
}
|
|
189
189
|
f = !1;
|
|
190
190
|
}
|
|
191
|
-
const u =
|
|
191
|
+
const u = Li(g).join(":"), y = p ? u + pt : u, m = y + k;
|
|
192
192
|
if (a.includes(m))
|
|
193
193
|
continue;
|
|
194
194
|
a.push(m);
|
|
@@ -201,7 +201,7 @@ const _e = "-", Ci = (e) => {
|
|
|
201
201
|
}
|
|
202
202
|
return s;
|
|
203
203
|
};
|
|
204
|
-
function
|
|
204
|
+
function Vi() {
|
|
205
205
|
let e = 0, t, r, i = "";
|
|
206
206
|
for (; e < arguments.length; )
|
|
207
207
|
(t = arguments[e++]) && (r = xt(t)) && (i && (i += " "), i += r);
|
|
@@ -215,35 +215,35 @@ const xt = (e) => {
|
|
|
215
215
|
e[i] && (t = xt(e[i])) && (r && (r += " "), r += t);
|
|
216
216
|
return r;
|
|
217
217
|
};
|
|
218
|
-
function
|
|
218
|
+
function Hi(e, ...t) {
|
|
219
219
|
let r, i, o, a = l;
|
|
220
220
|
function l(c) {
|
|
221
221
|
const d = t.reduce((g, p) => p(g), e());
|
|
222
|
-
return r =
|
|
222
|
+
return r = Ni(d), i = r.cache.get, o = r.cache.set, a = s, s(c);
|
|
223
223
|
}
|
|
224
224
|
function s(c) {
|
|
225
225
|
const d = i(c);
|
|
226
226
|
if (d)
|
|
227
227
|
return d;
|
|
228
|
-
const g =
|
|
228
|
+
const g = Ri(c, r);
|
|
229
229
|
return o(c, g), g;
|
|
230
230
|
}
|
|
231
231
|
return function() {
|
|
232
|
-
return a(
|
|
232
|
+
return a(Vi.apply(null, arguments));
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
const N = (e) => {
|
|
236
236
|
const t = (r) => r[e] || [];
|
|
237
237
|
return t.isThemeGetter = !0, t;
|
|
238
|
-
}, bt = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
238
|
+
}, bt = /^\[(?:([a-z-]+):)?(.+)\]$/i, Di = /^\d+\/\d+$/, ji = /* @__PURE__ */ new Set(["px", "full", "screen"]), Pi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Oi = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, _i = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ui = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Bi = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Y = (e) => ne(e) || ji.has(e) || Di.test(e), K = (e) => ae(e, "length", Zi), ne = (e) => !!e && !Number.isNaN(Number(e)), Le = (e) => ae(e, "number", ne), ue = (e) => !!e && Number.isInteger(Number(e)), $i = (e) => e.endsWith("%") && ne(e.slice(0, -1)), M = (e) => bt.test(e), J = (e) => Pi.test(e), Fi = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Wi = (e) => ae(e, Fi, vt), Gi = (e) => ae(e, "position", vt), Xi = /* @__PURE__ */ new Set(["image", "url"]), Yi = (e) => ae(e, Xi, Ji), qi = (e) => ae(e, "", Ki), he = () => !0, ae = (e, t, r) => {
|
|
239
239
|
const i = bt.exec(e);
|
|
240
240
|
return i ? i[1] ? typeof t == "string" ? i[1] === t : t.has(i[1]) : r(i[2]) : !1;
|
|
241
|
-
},
|
|
241
|
+
}, Zi = (e) => (
|
|
242
242
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
243
243
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
244
244
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
245
|
-
|
|
246
|
-
), vt = () => !1,
|
|
245
|
+
Oi.test(e) && !_i.test(e)
|
|
246
|
+
), vt = () => !1, Ki = (e) => Ui.test(e), Ji = (e) => Bi.test(e), Qi = () => {
|
|
247
247
|
const e = N("colors"), t = N("spacing"), r = N("blur"), i = N("brightness"), o = N("borderColor"), a = N("borderRadius"), l = N("borderSpacing"), s = N("borderWidth"), c = N("contrast"), d = N("grayscale"), g = N("hueRotate"), p = N("invert"), h = N("gap"), b = N("gradientColorStops"), f = N("gradientColorStopPositions"), k = N("inset"), u = N("margin"), y = N("opacity"), m = N("padding"), z = N("saturate"), v = N("scale"), A = N("sepia"), w = N("skew"), L = N("space"), V = N("translate"), D = () => ["auto", "contain", "none"], j = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", M, t], T = () => [M, t], x = () => ["", Y, K], I = () => ["auto", ne, M], R = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], H = () => ["solid", "dashed", "dotted", "double", "none"], P = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], S = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], U = () => ["", "0", M], F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [ne, M];
|
|
248
248
|
return {
|
|
249
249
|
cacheSize: 500,
|
|
@@ -263,7 +263,7 @@ const N = (e) => {
|
|
|
263
263
|
invert: U(),
|
|
264
264
|
gap: T(),
|
|
265
265
|
gradientColorStops: [e],
|
|
266
|
-
gradientColorStopPositions: [
|
|
266
|
+
gradientColorStopPositions: [$i, K],
|
|
267
267
|
inset: _(),
|
|
268
268
|
margin: _(),
|
|
269
269
|
opacity: W(),
|
|
@@ -1176,7 +1176,7 @@ const N = (e) => {
|
|
|
1176
1176
|
* @see https://tailwindcss.com/docs/background-position
|
|
1177
1177
|
*/
|
|
1178
1178
|
"bg-position": [{
|
|
1179
|
-
bg: [...R(),
|
|
1179
|
+
bg: [...R(), Gi]
|
|
1180
1180
|
}],
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Background Repeat
|
|
@@ -1192,7 +1192,7 @@ const N = (e) => {
|
|
|
1192
1192
|
* @see https://tailwindcss.com/docs/background-size
|
|
1193
1193
|
*/
|
|
1194
1194
|
"bg-size": [{
|
|
1195
|
-
bg: ["auto", "cover", "contain",
|
|
1195
|
+
bg: ["auto", "cover", "contain", Wi]
|
|
1196
1196
|
}],
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Background Image
|
|
@@ -1201,7 +1201,7 @@ const N = (e) => {
|
|
|
1201
1201
|
"bg-image": [{
|
|
1202
1202
|
bg: ["none", {
|
|
1203
1203
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1204
|
-
},
|
|
1204
|
+
}, Yi]
|
|
1205
1205
|
}],
|
|
1206
1206
|
/**
|
|
1207
1207
|
* Background Color
|
|
@@ -1617,7 +1617,7 @@ const N = (e) => {
|
|
|
1617
1617
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1618
1618
|
*/
|
|
1619
1619
|
shadow: [{
|
|
1620
|
-
shadow: ["", "inner", "none", J,
|
|
1620
|
+
shadow: ["", "inner", "none", J, qi]
|
|
1621
1621
|
}],
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Box Shadow Color
|
|
@@ -2272,19 +2272,19 @@ const N = (e) => {
|
|
|
2272
2272
|
"font-size": ["leading"]
|
|
2273
2273
|
}
|
|
2274
2274
|
};
|
|
2275
|
-
},
|
|
2275
|
+
}, en = /* @__PURE__ */ Hi(Qi);
|
|
2276
2276
|
function O(...e) {
|
|
2277
|
-
return
|
|
2277
|
+
return en(ct(e));
|
|
2278
2278
|
}
|
|
2279
2279
|
let Ne;
|
|
2280
2280
|
function Ee() {
|
|
2281
2281
|
return Ne === void 0 && (Ne = navigator.platform.includes("Mac")), Ne;
|
|
2282
2282
|
}
|
|
2283
|
-
function
|
|
2283
|
+
function tn(e) {
|
|
2284
2284
|
return `${e}`.toLowerCase() === "mod" ? Ee() ? "⌘" : "Ctrl" : `${e}`.toLowerCase() === "alt" ? Ee() ? "⌥" : "Alt" : `${e}`.toLowerCase() === "shift" ? Ee() ? "⇧" : "Shift" : e;
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2287
|
-
return e.map(
|
|
2286
|
+
function rn(e) {
|
|
2287
|
+
return e.map(tn).join(" ");
|
|
2288
2288
|
}
|
|
2289
2289
|
const wt = Q.forwardRef(
|
|
2290
2290
|
(e, t) => {
|
|
@@ -2313,8 +2313,8 @@ const wt = Q.forwardRef(
|
|
|
2313
2313
|
}
|
|
2314
2314
|
d == null || d(v);
|
|
2315
2315
|
};
|
|
2316
|
-
return /* @__PURE__ */ C(
|
|
2317
|
-
/* @__PURE__ */ n(
|
|
2316
|
+
return /* @__PURE__ */ C(Nn, { children: [
|
|
2317
|
+
/* @__PURE__ */ n(En, { asChild: !0, children: /* @__PURE__ */ C(
|
|
2318
2318
|
m,
|
|
2319
2319
|
{
|
|
2320
2320
|
className: O("richtext-h-[32px] richtext-w-[32px]", a),
|
|
@@ -2332,12 +2332,12 @@ const wt = Q.forwardRef(
|
|
|
2332
2332
|
) }),
|
|
2333
2333
|
i && /* @__PURE__ */ n(kt, { ...c, className: "richtext-tooltip", children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
|
|
2334
2334
|
/* @__PURE__ */ n("div", { children: i }),
|
|
2335
|
-
!!(s != null && s.length) && /* @__PURE__ */ n("span", { children:
|
|
2335
|
+
!!(s != null && s.length) && /* @__PURE__ */ n("span", { children: rn(s) })
|
|
2336
2336
|
] }) })
|
|
2337
2337
|
] });
|
|
2338
2338
|
}
|
|
2339
2339
|
);
|
|
2340
|
-
function
|
|
2340
|
+
function nn(e) {
|
|
2341
2341
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2342
2342
|
"path",
|
|
2343
2343
|
{
|
|
@@ -2346,7 +2346,7 @@ function rn(e) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
) });
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function on(e) {
|
|
2350
2350
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2351
2351
|
"path",
|
|
2352
2352
|
{
|
|
@@ -2359,7 +2359,7 @@ function nn(e) {
|
|
|
2359
2359
|
}
|
|
2360
2360
|
) });
|
|
2361
2361
|
}
|
|
2362
|
-
function
|
|
2362
|
+
function an() {
|
|
2363
2363
|
return /* @__PURE__ */ n(
|
|
2364
2364
|
"svg",
|
|
2365
2365
|
{
|
|
@@ -2386,7 +2386,7 @@ function on() {
|
|
|
2386
2386
|
}
|
|
2387
2387
|
);
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function sn() {
|
|
2390
2390
|
return /* @__PURE__ */ n(
|
|
2391
2391
|
"svg",
|
|
2392
2392
|
{
|
|
@@ -2413,7 +2413,7 @@ function an() {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
);
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function ln(e) {
|
|
2417
2417
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2418
2418
|
"path",
|
|
2419
2419
|
{
|
|
@@ -2432,7 +2432,7 @@ function Re(e) {
|
|
|
2432
2432
|
}
|
|
2433
2433
|
) : null;
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2435
|
+
function cn(e) {
|
|
2436
2436
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2437
2437
|
"path",
|
|
2438
2438
|
{
|
|
@@ -2441,7 +2441,7 @@ function ln(e) {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
) });
|
|
2443
2443
|
}
|
|
2444
|
-
function
|
|
2444
|
+
function dn(e) {
|
|
2445
2445
|
return /* @__PURE__ */ n(
|
|
2446
2446
|
"svg",
|
|
2447
2447
|
{
|
|
@@ -2466,10 +2466,10 @@ function cn(e) {
|
|
|
2466
2466
|
}
|
|
2467
2467
|
);
|
|
2468
2468
|
}
|
|
2469
|
-
function
|
|
2469
|
+
function un(e) {
|
|
2470
2470
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n("path", { fill: "currentColor", d: "M9 7v10h6v-2h-4V7z" }) });
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function hn(e) {
|
|
2473
2473
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2474
2474
|
"path",
|
|
2475
2475
|
{
|
|
@@ -2478,7 +2478,7 @@ function un(e) {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
) });
|
|
2480
2480
|
}
|
|
2481
|
-
function
|
|
2481
|
+
function fn(e) {
|
|
2482
2482
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2483
2483
|
"path",
|
|
2484
2484
|
{
|
|
@@ -2487,7 +2487,7 @@ function hn(e) {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
) });
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2490
|
+
function mn() {
|
|
2491
2491
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2492
2492
|
"path",
|
|
2493
2493
|
{
|
|
@@ -2496,7 +2496,7 @@ function fn() {
|
|
|
2496
2496
|
}
|
|
2497
2497
|
) });
|
|
2498
2498
|
}
|
|
2499
|
-
function
|
|
2499
|
+
function gn() {
|
|
2500
2500
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2501
2501
|
"path",
|
|
2502
2502
|
{
|
|
@@ -2509,7 +2509,7 @@ function mn() {
|
|
|
2509
2509
|
}
|
|
2510
2510
|
) });
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function pn() {
|
|
2513
2513
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2514
2514
|
"path",
|
|
2515
2515
|
{
|
|
@@ -2522,7 +2522,7 @@ function gn() {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
) });
|
|
2524
2524
|
}
|
|
2525
|
-
function
|
|
2525
|
+
function xn() {
|
|
2526
2526
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2527
2527
|
"path",
|
|
2528
2528
|
{
|
|
@@ -2535,7 +2535,7 @@ function pn() {
|
|
|
2535
2535
|
}
|
|
2536
2536
|
) });
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2538
|
+
function bn() {
|
|
2539
2539
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2540
2540
|
"path",
|
|
2541
2541
|
{
|
|
@@ -2544,7 +2544,7 @@ function xn() {
|
|
|
2544
2544
|
}
|
|
2545
2545
|
) });
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2547
|
+
function vn() {
|
|
2548
2548
|
return /* @__PURE__ */ C("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
|
|
2549
2549
|
/* @__PURE__ */ n(
|
|
2550
2550
|
"path",
|
|
@@ -2562,7 +2562,7 @@ function bn() {
|
|
|
2562
2562
|
)
|
|
2563
2563
|
] });
|
|
2564
2564
|
}
|
|
2565
|
-
function
|
|
2565
|
+
function wn() {
|
|
2566
2566
|
return /* @__PURE__ */ C(
|
|
2567
2567
|
"svg",
|
|
2568
2568
|
{
|
|
@@ -2590,7 +2590,7 @@ function vn() {
|
|
|
2590
2590
|
}
|
|
2591
2591
|
);
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function yn() {
|
|
2594
2594
|
return /* @__PURE__ */ n("svg", { height: "1em", viewBox: "0 0 15 15", width: "1em", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n(
|
|
2595
2595
|
"path",
|
|
2596
2596
|
{
|
|
@@ -2599,7 +2599,7 @@ function wn() {
|
|
|
2599
2599
|
}
|
|
2600
2600
|
) });
|
|
2601
2601
|
}
|
|
2602
|
-
function
|
|
2602
|
+
function Cn() {
|
|
2603
2603
|
return /* @__PURE__ */ n("svg", { height: "1em", viewBox: "0 0 24 24", width: "1em", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(
|
|
2604
2604
|
"g",
|
|
2605
2605
|
{
|
|
@@ -2615,7 +2615,7 @@ function yn() {
|
|
|
2615
2615
|
}
|
|
2616
2616
|
) });
|
|
2617
2617
|
}
|
|
2618
|
-
function
|
|
2618
|
+
function kn() {
|
|
2619
2619
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
|
|
2620
2620
|
"path",
|
|
2621
2621
|
{
|
|
@@ -2624,7 +2624,7 @@ function Cn() {
|
|
|
2624
2624
|
}
|
|
2625
2625
|
) });
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2627
|
+
function Mn() {
|
|
2628
2628
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ C("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
|
|
2629
2629
|
/* @__PURE__ */ n("circle", { cx: "10", cy: "24", r: "4" }),
|
|
2630
2630
|
/* @__PURE__ */ n("circle", { cx: "38", cy: "10", r: "4" }),
|
|
@@ -2633,7 +2633,7 @@ function kn() {
|
|
|
2633
2633
|
/* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M34 38H22V10h12M14 24h20" })
|
|
2634
2634
|
] }) });
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2636
|
+
function In() {
|
|
2637
2637
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
|
|
2638
2638
|
"path",
|
|
2639
2639
|
{
|
|
@@ -2642,7 +2642,7 @@ function Mn() {
|
|
|
2642
2642
|
}
|
|
2643
2643
|
) });
|
|
2644
2644
|
}
|
|
2645
|
-
function
|
|
2645
|
+
function Tn() {
|
|
2646
2646
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2647
2647
|
"path",
|
|
2648
2648
|
{
|
|
@@ -2656,7 +2656,7 @@ function In() {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
) });
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2659
|
+
function zn() {
|
|
2660
2660
|
return /* @__PURE__ */ n(
|
|
2661
2661
|
"svg",
|
|
2662
2662
|
{
|
|
@@ -2678,111 +2678,112 @@ function Tn() {
|
|
|
2678
2678
|
);
|
|
2679
2679
|
}
|
|
2680
2680
|
const yt = {
|
|
2681
|
-
Bold:
|
|
2682
|
-
LoaderCircle:
|
|
2683
|
-
Italic:
|
|
2684
|
-
Underline:
|
|
2685
|
-
Quote:
|
|
2686
|
-
TextQuote:
|
|
2687
|
-
Strikethrough:
|
|
2688
|
-
Minus:
|
|
2689
|
-
Eraser:
|
|
2690
|
-
PaintRoller:
|
|
2691
|
-
Redo2:
|
|
2692
|
-
Undo2:
|
|
2693
|
-
AlignCenter:
|
|
2694
|
-
AlignJustify:
|
|
2695
|
-
AlignLeft:
|
|
2696
|
-
AlignRight:
|
|
2697
|
-
ChevronDown:
|
|
2698
|
-
Subscript:
|
|
2699
|
-
Superscript:
|
|
2700
|
-
Code:
|
|
2701
|
-
Code2:
|
|
2702
|
-
Type:
|
|
2703
|
-
IndentIncrease:
|
|
2704
|
-
IndentDecrease:
|
|
2705
|
-
List:
|
|
2706
|
-
ListOrdered:
|
|
2707
|
-
ListTodo:
|
|
2708
|
-
Link:
|
|
2709
|
-
ImageUp:
|
|
2710
|
-
Video:
|
|
2711
|
-
Maximize:
|
|
2712
|
-
Minimize:
|
|
2713
|
-
Table:
|
|
2714
|
-
Sparkles:
|
|
2715
|
-
Pencil:
|
|
2716
|
-
Unlink:
|
|
2717
|
-
BetweenHorizonalEnd:
|
|
2718
|
-
BetweenHorizonalStart:
|
|
2719
|
-
BetweenVerticalStart:
|
|
2720
|
-
BetweenVerticalEnd:
|
|
2721
|
-
TableCellsMerge:
|
|
2722
|
-
TableCellsSplit:
|
|
2723
|
-
Trash2:
|
|
2724
|
-
Trash:
|
|
2681
|
+
Bold: ci,
|
|
2682
|
+
LoaderCircle: li,
|
|
2683
|
+
Italic: si,
|
|
2684
|
+
Underline: ai,
|
|
2685
|
+
Quote: oi,
|
|
2686
|
+
TextQuote: on,
|
|
2687
|
+
Strikethrough: ni,
|
|
2688
|
+
Minus: ii,
|
|
2689
|
+
Eraser: ri,
|
|
2690
|
+
PaintRoller: ti,
|
|
2691
|
+
Redo2: ei,
|
|
2692
|
+
Undo2: Qr,
|
|
2693
|
+
AlignCenter: yi,
|
|
2694
|
+
AlignJustify: wi,
|
|
2695
|
+
AlignLeft: vi,
|
|
2696
|
+
AlignRight: bi,
|
|
2697
|
+
ChevronDown: Jr,
|
|
2698
|
+
Subscript: Kr,
|
|
2699
|
+
Superscript: Zr,
|
|
2700
|
+
Code: qr,
|
|
2701
|
+
Code2: Yr,
|
|
2702
|
+
Type: Xr,
|
|
2703
|
+
IndentIncrease: Gr,
|
|
2704
|
+
IndentDecrease: Wr,
|
|
2705
|
+
List: Fr,
|
|
2706
|
+
ListOrdered: $r,
|
|
2707
|
+
ListTodo: Br,
|
|
2708
|
+
Link: Ur,
|
|
2709
|
+
ImageUp: _r,
|
|
2710
|
+
Video: Or,
|
|
2711
|
+
Maximize: Pr,
|
|
2712
|
+
Minimize: jr,
|
|
2713
|
+
Table: Dr,
|
|
2714
|
+
Sparkles: Hr,
|
|
2715
|
+
Pencil: Vr,
|
|
2716
|
+
Unlink: Rr,
|
|
2717
|
+
BetweenHorizonalEnd: Er,
|
|
2718
|
+
BetweenHorizonalStart: Nr,
|
|
2719
|
+
BetweenVerticalStart: Lr,
|
|
2720
|
+
BetweenVerticalEnd: Ar,
|
|
2721
|
+
TableCellsMerge: Sr,
|
|
2722
|
+
TableCellsSplit: zr,
|
|
2723
|
+
Trash2: Tr,
|
|
2724
|
+
Trash: Ir,
|
|
2725
2725
|
Replace: Ye,
|
|
2726
|
-
ChevronsUpDown:
|
|
2727
|
-
LineHeight:
|
|
2728
|
-
Word:
|
|
2729
|
-
HeadingParagraph:
|
|
2730
|
-
Heading1:
|
|
2731
|
-
Heading2:
|
|
2732
|
-
Heading3:
|
|
2733
|
-
Heading4:
|
|
2734
|
-
Heading5:
|
|
2735
|
-
Heading6:
|
|
2726
|
+
ChevronsUpDown: Mr,
|
|
2727
|
+
LineHeight: cn,
|
|
2728
|
+
Word: ln,
|
|
2729
|
+
HeadingParagraph: kr,
|
|
2730
|
+
Heading1: Cr,
|
|
2731
|
+
Heading2: yr,
|
|
2732
|
+
Heading3: wr,
|
|
2733
|
+
Heading4: vr,
|
|
2734
|
+
Heading5: br,
|
|
2735
|
+
Heading6: xr,
|
|
2736
2736
|
Columns2: qe,
|
|
2737
|
-
Columns3:
|
|
2738
|
-
Columns4:
|
|
2739
|
-
Plus:
|
|
2740
|
-
Grip:
|
|
2741
|
-
Copy:
|
|
2742
|
-
Clipboard:
|
|
2743
|
-
PanelLeft:
|
|
2744
|
-
PanelRight:
|
|
2737
|
+
Columns3: pr,
|
|
2738
|
+
Columns4: gr,
|
|
2739
|
+
Plus: mr,
|
|
2740
|
+
Grip: fr,
|
|
2741
|
+
Copy: hr,
|
|
2742
|
+
Clipboard: ur,
|
|
2743
|
+
PanelLeft: dr,
|
|
2744
|
+
PanelRight: cr,
|
|
2745
2745
|
Columns: qe,
|
|
2746
|
-
Iframe:
|
|
2747
|
-
MenuDown:
|
|
2748
|
-
SizeS:
|
|
2749
|
-
SizeM:
|
|
2750
|
-
SizeL:
|
|
2751
|
-
AspectRatio:
|
|
2752
|
-
Emoji:
|
|
2753
|
-
DeleteColumn:
|
|
2754
|
-
DeleteRow:
|
|
2746
|
+
Iframe: lr,
|
|
2747
|
+
MenuDown: dn,
|
|
2748
|
+
SizeS: fn,
|
|
2749
|
+
SizeM: hn,
|
|
2750
|
+
SizeL: un,
|
|
2751
|
+
AspectRatio: nn,
|
|
2752
|
+
Emoji: sr,
|
|
2753
|
+
DeleteColumn: an,
|
|
2754
|
+
DeleteRow: sn,
|
|
2755
2755
|
SearchAndReplace: Ye,
|
|
2756
|
-
EmojiIcon:
|
|
2757
|
-
KatexIcon:
|
|
2758
|
-
ExportPdf:
|
|
2759
|
-
ExportWord:
|
|
2760
|
-
ImportWord:
|
|
2761
|
-
ColumnAddLeft:
|
|
2762
|
-
ColumnAddRight:
|
|
2763
|
-
BookMarked:
|
|
2764
|
-
Excalidraw:
|
|
2765
|
-
ZoomIn:
|
|
2766
|
-
ZoomOut:
|
|
2767
|
-
Settings:
|
|
2768
|
-
Eye:
|
|
2769
|
-
TextDirection:
|
|
2770
|
-
LeftToRight:
|
|
2771
|
-
RightToLeft:
|
|
2772
|
-
Attachment:
|
|
2773
|
-
|
|
2756
|
+
EmojiIcon: ar,
|
|
2757
|
+
KatexIcon: or,
|
|
2758
|
+
ExportPdf: vn,
|
|
2759
|
+
ExportWord: wn,
|
|
2760
|
+
ImportWord: zn,
|
|
2761
|
+
ColumnAddLeft: gn,
|
|
2762
|
+
ColumnAddRight: pn,
|
|
2763
|
+
BookMarked: nr,
|
|
2764
|
+
Excalidraw: bn,
|
|
2765
|
+
ZoomIn: ir,
|
|
2766
|
+
ZoomOut: rr,
|
|
2767
|
+
Settings: tr,
|
|
2768
|
+
Eye: er,
|
|
2769
|
+
TextDirection: xn,
|
|
2770
|
+
LeftToRight: kn,
|
|
2771
|
+
RightToLeft: In,
|
|
2772
|
+
Attachment: Qt,
|
|
2773
|
+
AttachmentDownload: Jt,
|
|
2774
|
+
GifIcon: yn,
|
|
2774
2775
|
ChevronUp: Kt,
|
|
2775
2776
|
Crop: Zt,
|
|
2776
|
-
Mermaid:
|
|
2777
|
-
Twitter:
|
|
2778
|
-
CodeView:
|
|
2777
|
+
Mermaid: Mn,
|
|
2778
|
+
Twitter: Tn,
|
|
2779
|
+
CodeView: mn,
|
|
2779
2780
|
FlipX: qt,
|
|
2780
2781
|
FlipY: Yt,
|
|
2781
2782
|
PencilRuler: Xt,
|
|
2782
2783
|
WrapText: Gt,
|
|
2783
2784
|
Loader: Wt,
|
|
2784
2785
|
X: lt,
|
|
2785
|
-
Html:
|
|
2786
|
+
Html: Cn,
|
|
2786
2787
|
ExternalLink: Ft,
|
|
2787
2788
|
Callout: $t
|
|
2788
2789
|
}, tt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, rt = ct, Ue = (e, t) => (r) => {
|
|
@@ -2814,7 +2815,7 @@ const yt = {
|
|
|
2814
2815
|
] : d;
|
|
2815
2816
|
}, []);
|
|
2816
2817
|
return rt(e, l, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
2817
|
-
},
|
|
2818
|
+
}, Sn = Ue(
|
|
2818
2819
|
"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-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",
|
|
2819
2820
|
{
|
|
2820
2821
|
variants: {
|
|
@@ -2839,7 +2840,7 @@ const yt = {
|
|
|
2839
2840
|
}
|
|
2840
2841
|
}
|
|
2841
2842
|
), G = B.forwardRef(
|
|
2842
|
-
({ className: e, variant: t, size: r, asChild: i = !1, ...o }, a) => /* @__PURE__ */ n(i ? ht : "button", { className: O(
|
|
2843
|
+
({ className: e, variant: t, size: r, asChild: i = !1, ...o }, a) => /* @__PURE__ */ n(i ? ht : "button", { className: O(Sn({ variant: t, size: r, className: e })), ref: a, ...o })
|
|
2843
2844
|
);
|
|
2844
2845
|
G.displayName = "Button";
|
|
2845
2846
|
const re = B.forwardRef(
|
|
@@ -2857,9 +2858,9 @@ const re = B.forwardRef(
|
|
|
2857
2858
|
)
|
|
2858
2859
|
);
|
|
2859
2860
|
re.displayName = "Input";
|
|
2860
|
-
const
|
|
2861
|
+
const An = Ue(
|
|
2861
2862
|
"richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
|
|
2862
|
-
), pe = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(mt.Root, { className: O(
|
|
2863
|
+
), pe = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(mt.Root, { className: O(An(), e), ref: r, ...t }));
|
|
2863
2864
|
pe.displayName = mt.Root.displayName;
|
|
2864
2865
|
const Se = ie.Root, ve = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
2865
2866
|
ie.List,
|
|
@@ -2897,7 +2898,7 @@ const Z = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
|
2897
2898
|
}
|
|
2898
2899
|
));
|
|
2899
2900
|
Z.displayName = ie.Content.displayName;
|
|
2900
|
-
const
|
|
2901
|
+
const Ln = Ue(
|
|
2901
2902
|
"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-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
|
|
2902
2903
|
{
|
|
2903
2904
|
variants: {
|
|
@@ -2920,12 +2921,12 @@ const An = Ue(
|
|
|
2920
2921
|
ft.Root,
|
|
2921
2922
|
{
|
|
2922
2923
|
ref: o,
|
|
2923
|
-
className: O(
|
|
2924
|
+
className: O(Ln({ variant: t, size: r, className: e })),
|
|
2924
2925
|
...i
|
|
2925
2926
|
}
|
|
2926
2927
|
));
|
|
2927
2928
|
Ct.displayName = ft.Root.displayName;
|
|
2928
|
-
const
|
|
2929
|
+
const Xo = be.Provider, Nn = be.Root, En = be.Trigger, kt = B.forwardRef(({ className: e, sideOffset: t = 4, ...r }, i) => /* @__PURE__ */ n(
|
|
2929
2930
|
be.Content,
|
|
2930
2931
|
{
|
|
2931
2932
|
"data-richtext-portal": !0,
|
|
@@ -2939,9 +2940,9 @@ const Go = be.Provider, Ln = be.Root, Nn = be.Trigger, kt = B.forwardRef(({ clas
|
|
|
2939
2940
|
}
|
|
2940
2941
|
));
|
|
2941
2942
|
kt.displayName = be.Content.displayName;
|
|
2942
|
-
const
|
|
2943
|
+
const Rn = 1, Vn = 1e6;
|
|
2943
2944
|
let Ve = 0;
|
|
2944
|
-
function
|
|
2945
|
+
function Hn() {
|
|
2945
2946
|
return Ve = (Ve + 1) % Number.MAX_SAFE_INTEGER, Ve.toString();
|
|
2946
2947
|
}
|
|
2947
2948
|
const He = /* @__PURE__ */ new Map();
|
|
@@ -2953,15 +2954,15 @@ function it(e) {
|
|
|
2953
2954
|
type: "REMOVE_TOAST",
|
|
2954
2955
|
toastId: e
|
|
2955
2956
|
});
|
|
2956
|
-
},
|
|
2957
|
+
}, Vn);
|
|
2957
2958
|
He.set(e, t);
|
|
2958
2959
|
}
|
|
2959
|
-
function
|
|
2960
|
+
function Dn(e, t) {
|
|
2960
2961
|
switch (t.type) {
|
|
2961
2962
|
case "ADD_TOAST":
|
|
2962
2963
|
return {
|
|
2963
2964
|
...e,
|
|
2964
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
2965
|
+
toasts: [t.toast, ...e.toasts].slice(0, Rn)
|
|
2965
2966
|
};
|
|
2966
2967
|
case "UPDATE_TOAST":
|
|
2967
2968
|
return {
|
|
@@ -2995,12 +2996,12 @@ function Hn(e, t) {
|
|
|
2995
2996
|
const Ce = [];
|
|
2996
2997
|
let ke = { toasts: [] };
|
|
2997
2998
|
function me(e) {
|
|
2998
|
-
ke =
|
|
2999
|
+
ke = Dn(ke, e), Ce.forEach((t) => {
|
|
2999
3000
|
t(ke);
|
|
3000
3001
|
});
|
|
3001
3002
|
}
|
|
3002
|
-
function
|
|
3003
|
-
const t =
|
|
3003
|
+
function jn({ ...e }) {
|
|
3004
|
+
const t = Hn(), r = (o) => me({
|
|
3004
3005
|
type: "UPDATE_TOAST",
|
|
3005
3006
|
toast: { ...o, id: t }
|
|
3006
3007
|
}), i = () => me({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -3027,7 +3028,7 @@ function Be() {
|
|
|
3027
3028
|
r > -1 && Ce.splice(r, 1);
|
|
3028
3029
|
}), [e]), {
|
|
3029
3030
|
...e,
|
|
3030
|
-
toast:
|
|
3031
|
+
toast: jn,
|
|
3031
3032
|
dismiss: (r) => me({ type: "DISMISS_TOAST", toastId: r })
|
|
3032
3033
|
};
|
|
3033
3034
|
}
|
|
@@ -3046,13 +3047,13 @@ const $e = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
|
3046
3047
|
className: O(
|
|
3047
3048
|
"!richtext-flex !richtext-items-center !richtext-justify-center !richtext-p-0 !richtext-text-current"
|
|
3048
3049
|
),
|
|
3049
|
-
children: /* @__PURE__ */ n(
|
|
3050
|
+
children: /* @__PURE__ */ n(di, { className: "!richtext-h-4 !richtext-w-4" })
|
|
3050
3051
|
}
|
|
3051
3052
|
)
|
|
3052
3053
|
}
|
|
3053
3054
|
));
|
|
3054
3055
|
$e.displayName = je.Root.displayName;
|
|
3055
|
-
function
|
|
3056
|
+
function Pn(e) {
|
|
3056
3057
|
return e = e || /* @__PURE__ */ new Map(), {
|
|
3057
3058
|
/**
|
|
3058
3059
|
* A Map of event names to registered handler functions.
|
|
@@ -3099,18 +3100,18 @@ function jn(e) {
|
|
|
3099
3100
|
}
|
|
3100
3101
|
};
|
|
3101
3102
|
}
|
|
3102
|
-
const Fe =
|
|
3103
|
+
const Fe = Pn(), Mt = Q.createContext(Fe), On = () => Q.useContext(Mt);
|
|
3103
3104
|
function It(e, t) {
|
|
3104
|
-
const r =
|
|
3105
|
+
const r = On();
|
|
3105
3106
|
Q.useEffect(() => (t.map((i) => r.on(i, e)), () => {
|
|
3106
3107
|
t.map((i) => r.off(i, e));
|
|
3107
3108
|
}), [r, t, e]);
|
|
3108
3109
|
}
|
|
3109
|
-
const
|
|
3110
|
-
function
|
|
3110
|
+
const Yo = Fe.emit;
|
|
3111
|
+
function qo({ children: e }) {
|
|
3111
3112
|
return /* @__PURE__ */ n(Mt.Provider, { value: Fe, children: e });
|
|
3112
3113
|
}
|
|
3113
|
-
const we = X.Root, We = X.Trigger,
|
|
3114
|
+
const we = X.Root, We = X.Trigger, _n = X.Portal, Tt = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
3114
3115
|
X.Overlay,
|
|
3115
3116
|
{
|
|
3116
3117
|
ref: r,
|
|
@@ -3122,7 +3123,7 @@ const we = X.Root, We = X.Trigger, On = X.Portal, Tt = B.forwardRef(({ className
|
|
|
3122
3123
|
}
|
|
3123
3124
|
));
|
|
3124
3125
|
Tt.displayName = X.Overlay.displayName;
|
|
3125
|
-
const se = B.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__ */ C(
|
|
3126
|
+
const se = B.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__ */ C(_n, { "data-richtext-portal": !0, children: [
|
|
3126
3127
|
/* @__PURE__ */ n(Tt, {}),
|
|
3127
3128
|
/* @__PURE__ */ C(
|
|
3128
3129
|
X.Content,
|
|
@@ -3145,7 +3146,7 @@ const se = B.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__
|
|
|
3145
3146
|
)
|
|
3146
3147
|
] }));
|
|
3147
3148
|
se.displayName = X.Content.displayName;
|
|
3148
|
-
function
|
|
3149
|
+
function Un({ className: e, ...t }) {
|
|
3149
3150
|
return /* @__PURE__ */ n(
|
|
3150
3151
|
"div",
|
|
3151
3152
|
{
|
|
@@ -3157,7 +3158,7 @@ function _n({ className: e, ...t }) {
|
|
|
3157
3158
|
}
|
|
3158
3159
|
);
|
|
3159
3160
|
}
|
|
3160
|
-
|
|
3161
|
+
Un.displayName = "DialogHeader";
|
|
3161
3162
|
function zt({ className: e, ...t }) {
|
|
3162
3163
|
return /* @__PURE__ */ n(
|
|
3163
3164
|
"div",
|
|
@@ -3183,7 +3184,7 @@ const le = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
|
3183
3184
|
}
|
|
3184
3185
|
));
|
|
3185
3186
|
le.displayName = X.Title.displayName;
|
|
3186
|
-
const
|
|
3187
|
+
const Bn = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
3187
3188
|
X.Description,
|
|
3188
3189
|
{
|
|
3189
3190
|
className: O("richtext-text-sm richtext-text-muted-foreground", e),
|
|
@@ -3191,8 +3192,8 @@ const Un = B.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
|
3191
3192
|
...t
|
|
3192
3193
|
}
|
|
3193
3194
|
));
|
|
3194
|
-
|
|
3195
|
-
var
|
|
3195
|
+
Bn.displayName = X.Description.displayName;
|
|
3196
|
+
var $n = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Fn = dt.create({
|
|
3196
3197
|
name: "image",
|
|
3197
3198
|
addOptions() {
|
|
3198
3199
|
return {
|
|
@@ -3265,7 +3266,7 @@ var Bn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, $n = dt.cre
|
|
|
3265
3266
|
break;
|
|
3266
3267
|
}
|
|
3267
3268
|
}), c.src = l.src;
|
|
3268
|
-
const d = new
|
|
3269
|
+
const d = new hi({
|
|
3269
3270
|
element: c,
|
|
3270
3271
|
editor: s,
|
|
3271
3272
|
node: o,
|
|
@@ -3305,8 +3306,8 @@ var Bn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, $n = dt.cre
|
|
|
3305
3306
|
},
|
|
3306
3307
|
addInputRules() {
|
|
3307
3308
|
return [
|
|
3308
|
-
|
|
3309
|
-
find:
|
|
3309
|
+
ui({
|
|
3310
|
+
find: $n,
|
|
3310
3311
|
type: this.type,
|
|
3311
3312
|
getAttributes: (e) => {
|
|
3312
3313
|
const [, , t, r, i] = e;
|
|
@@ -3315,51 +3316,51 @@ var Bn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, $n = dt.cre
|
|
|
3315
3316
|
})
|
|
3316
3317
|
];
|
|
3317
3318
|
}
|
|
3318
|
-
}),
|
|
3319
|
-
function
|
|
3320
|
-
var t =
|
|
3319
|
+
}), Wn = Fn, Gn = typeof global == "object" && global && global.Object === Object && global, Xn = typeof self == "object" && self && self.Object === Object && self, St = Gn || Xn || Function("return this")(), Ie = St.Symbol, At = Object.prototype, Yn = At.hasOwnProperty, qn = At.toString, fe = Ie ? Ie.toStringTag : void 0;
|
|
3320
|
+
function Zn(e) {
|
|
3321
|
+
var t = Yn.call(e, fe), r = e[fe];
|
|
3321
3322
|
try {
|
|
3322
3323
|
e[fe] = void 0;
|
|
3323
3324
|
var i = !0;
|
|
3324
3325
|
} catch {
|
|
3325
3326
|
}
|
|
3326
|
-
var o =
|
|
3327
|
+
var o = qn.call(e);
|
|
3327
3328
|
return i && (t ? e[fe] = r : delete e[fe]), o;
|
|
3328
3329
|
}
|
|
3329
|
-
var
|
|
3330
|
-
function
|
|
3331
|
-
return
|
|
3330
|
+
var Kn = Object.prototype, Jn = Kn.toString;
|
|
3331
|
+
function Qn(e) {
|
|
3332
|
+
return Jn.call(e);
|
|
3332
3333
|
}
|
|
3333
|
-
var
|
|
3334
|
+
var eo = "[object Null]", to = "[object Undefined]", nt = Ie ? Ie.toStringTag : void 0;
|
|
3334
3335
|
function Lt(e) {
|
|
3335
|
-
return e == null ? e === void 0 ?
|
|
3336
|
+
return e == null ? e === void 0 ? to : eo : nt && nt in Object(e) ? Zn(e) : Qn(e);
|
|
3336
3337
|
}
|
|
3337
3338
|
function Nt(e) {
|
|
3338
3339
|
return e != null && typeof e == "object";
|
|
3339
3340
|
}
|
|
3340
|
-
var
|
|
3341
|
-
function
|
|
3342
|
-
return typeof e == "symbol" || Nt(e) && Lt(e) ==
|
|
3341
|
+
var ro = "[object Symbol]";
|
|
3342
|
+
function io(e) {
|
|
3343
|
+
return typeof e == "symbol" || Nt(e) && Lt(e) == ro;
|
|
3343
3344
|
}
|
|
3344
|
-
var
|
|
3345
|
-
function
|
|
3346
|
-
for (var t = e.length; t-- &&
|
|
3345
|
+
var no = /\s/;
|
|
3346
|
+
function oo(e) {
|
|
3347
|
+
for (var t = e.length; t-- && no.test(e.charAt(t)); )
|
|
3347
3348
|
;
|
|
3348
3349
|
return t;
|
|
3349
3350
|
}
|
|
3350
|
-
var
|
|
3351
|
-
function
|
|
3352
|
-
return e && e.slice(0,
|
|
3351
|
+
var ao = /^\s+/;
|
|
3352
|
+
function so(e) {
|
|
3353
|
+
return e && e.slice(0, oo(e) + 1).replace(ao, "");
|
|
3353
3354
|
}
|
|
3354
3355
|
function Te(e) {
|
|
3355
3356
|
var t = typeof e;
|
|
3356
3357
|
return e != null && (t == "object" || t == "function");
|
|
3357
3358
|
}
|
|
3358
|
-
var ot = NaN,
|
|
3359
|
+
var ot = NaN, lo = /^[-+]0x[0-9a-f]+$/i, co = /^0b[01]+$/i, uo = /^0o[0-7]+$/i, ho = parseInt;
|
|
3359
3360
|
function ge(e) {
|
|
3360
3361
|
if (typeof e == "number")
|
|
3361
3362
|
return e;
|
|
3362
|
-
if (
|
|
3363
|
+
if (io(e))
|
|
3363
3364
|
return ot;
|
|
3364
3365
|
if (Te(e)) {
|
|
3365
3366
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -3367,24 +3368,24 @@ function ge(e) {
|
|
|
3367
3368
|
}
|
|
3368
3369
|
if (typeof e != "string")
|
|
3369
3370
|
return e === 0 ? e : +e;
|
|
3370
|
-
e =
|
|
3371
|
-
var r =
|
|
3372
|
-
return r ||
|
|
3371
|
+
e = so(e);
|
|
3372
|
+
var r = co.test(e);
|
|
3373
|
+
return r || uo.test(e) ? ho(e.slice(2), r ? 2 : 8) : lo.test(e) ? ot : +e;
|
|
3373
3374
|
}
|
|
3374
|
-
function
|
|
3375
|
+
function fo(e, t, r) {
|
|
3375
3376
|
return e === e && (r !== void 0 && (e = e <= r ? e : r), t !== void 0 && (e = e >= t ? e : t)), e;
|
|
3376
3377
|
}
|
|
3377
|
-
function
|
|
3378
|
-
return r === void 0 && (r = t, t = void 0), r !== void 0 && (r = ge(r), r = r === r ? r : 0), t !== void 0 && (t = ge(t), t = t === t ? t : 0),
|
|
3378
|
+
function mo(e, t, r) {
|
|
3379
|
+
return r === void 0 && (r = t, t = void 0), r !== void 0 && (r = ge(r), r = r === r ? r : 0), t !== void 0 && (t = ge(t), t = t === t ? t : 0), fo(ge(e), t, r);
|
|
3379
3380
|
}
|
|
3380
3381
|
var De = function() {
|
|
3381
3382
|
return St.Date.now();
|
|
3382
|
-
},
|
|
3383
|
-
function
|
|
3383
|
+
}, go = "Expected a function", po = Math.max, xo = Math.min;
|
|
3384
|
+
function bo(e, t, r) {
|
|
3384
3385
|
var i, o, a, l, s, c, d = 0, g = !1, p = !1, h = !0;
|
|
3385
3386
|
if (typeof e != "function")
|
|
3386
|
-
throw new TypeError(
|
|
3387
|
-
t = ge(t) || 0, Te(r) && (g = !!r.leading, p = "maxWait" in r, a = p ?
|
|
3387
|
+
throw new TypeError(go);
|
|
3388
|
+
t = ge(t) || 0, Te(r) && (g = !!r.leading, p = "maxWait" in r, a = p ? po(ge(r.maxWait) || 0, t) : a, h = "trailing" in r ? !!r.trailing : h);
|
|
3388
3389
|
function b(w) {
|
|
3389
3390
|
var L = i, V = o;
|
|
3390
3391
|
return i = o = void 0, d = w, l = e.apply(V, L), l;
|
|
@@ -3394,7 +3395,7 @@ function xo(e, t, r) {
|
|
|
3394
3395
|
}
|
|
3395
3396
|
function k(w) {
|
|
3396
3397
|
var L = w - c, V = w - d, D = t - L;
|
|
3397
|
-
return p ?
|
|
3398
|
+
return p ? xo(D, a - V) : D;
|
|
3398
3399
|
}
|
|
3399
3400
|
function u(w) {
|
|
3400
3401
|
var L = w - c, V = w - d;
|
|
@@ -3427,16 +3428,16 @@ function xo(e, t, r) {
|
|
|
3427
3428
|
}
|
|
3428
3429
|
return A.cancel = z, A.flush = v, A;
|
|
3429
3430
|
}
|
|
3430
|
-
var
|
|
3431
|
+
var vo = "[object Number]";
|
|
3431
3432
|
function at(e) {
|
|
3432
|
-
return typeof e == "number" || Nt(e) && Lt(e) ==
|
|
3433
|
+
return typeof e == "number" || Nt(e) && Lt(e) == vo;
|
|
3433
3434
|
}
|
|
3434
|
-
var
|
|
3435
|
+
var wo = "Expected a function";
|
|
3435
3436
|
function st(e, t, r) {
|
|
3436
3437
|
var i = !0, o = !0;
|
|
3437
3438
|
if (typeof e != "function")
|
|
3438
|
-
throw new TypeError(
|
|
3439
|
-
return Te(r) && (i = "leading" in r ? !!r.leading : i, o = "trailing" in r ? !!r.trailing : o),
|
|
3439
|
+
throw new TypeError(wo);
|
|
3440
|
+
return Te(r) && (i = "leading" in r ? !!r.leading : i, o = "trailing" in r ? !!r.trailing : o), bo(e, t, {
|
|
3440
3441
|
leading: i,
|
|
3441
3442
|
maxWait: t,
|
|
3442
3443
|
trailing: o
|
|
@@ -3448,7 +3449,7 @@ const ye = {
|
|
|
3448
3449
|
BOTTOM_LEFT: "bl",
|
|
3449
3450
|
BOTTOM_RIGHT: "br"
|
|
3450
3451
|
};
|
|
3451
|
-
function
|
|
3452
|
+
function yo({
|
|
3452
3453
|
src: e,
|
|
3453
3454
|
style: t
|
|
3454
3455
|
}) {
|
|
@@ -3555,7 +3556,7 @@ function wo({
|
|
|
3555
3556
|
}
|
|
3556
3557
|
);
|
|
3557
3558
|
}
|
|
3558
|
-
function
|
|
3559
|
+
function Co(e) {
|
|
3559
3560
|
var D, j, _, T;
|
|
3560
3561
|
const [t, r] = E({
|
|
3561
3562
|
width: Ke,
|
|
@@ -3632,7 +3633,7 @@ function yo(e) {
|
|
|
3632
3633
|
st((x) => {
|
|
3633
3634
|
if (x.preventDefault(), x.stopPropagation(), !l)
|
|
3634
3635
|
return;
|
|
3635
|
-
const { x: I, w: R, dir: H } = c, P = (x.clientX - I) * (/l/.test(H) ? -1 : 1), S =
|
|
3636
|
+
const { x: I, w: R, dir: H } = c, P = (x.clientX - I) * (/l/.test(H) ? -1 : 1), S = mo(R + P, pi, t.width);
|
|
3636
3637
|
e.updateAttributes({
|
|
3637
3638
|
width: S,
|
|
3638
3639
|
height: null
|
|
@@ -3674,7 +3675,7 @@ function yo(e) {
|
|
|
3674
3675
|
width: ((_ = f.style) == null ? void 0 : _.width) ?? "auto",
|
|
3675
3676
|
...b ? {} : k
|
|
3676
3677
|
},
|
|
3677
|
-
children: /* @__PURE__ */ n("div", { style: k, className: "image-view__body", children: /* @__PURE__ */ n(
|
|
3678
|
+
children: /* @__PURE__ */ n("div", { style: k, className: "image-view__body", children: /* @__PURE__ */ n(yo, { src: f.src, style: f.style }) })
|
|
3678
3679
|
}
|
|
3679
3680
|
) : /* @__PURE__ */ n(
|
|
3680
3681
|
Ze,
|
|
@@ -3723,12 +3724,12 @@ function yo(e) {
|
|
|
3723
3724
|
}
|
|
3724
3725
|
);
|
|
3725
3726
|
}
|
|
3726
|
-
function
|
|
3727
|
-
const { editor: t } =
|
|
3727
|
+
function ko(e) {
|
|
3728
|
+
const { editor: t } = fi(), r = B.useMemo(
|
|
3728
3729
|
() => t,
|
|
3729
3730
|
[e, t]
|
|
3730
3731
|
);
|
|
3731
|
-
return
|
|
3732
|
+
return mi({
|
|
3732
3733
|
editor: r,
|
|
3733
3734
|
selector(o) {
|
|
3734
3735
|
return o.editor ? {
|
|
@@ -3744,17 +3745,17 @@ function Co(e) {
|
|
|
3744
3745
|
}) || { editor: null };
|
|
3745
3746
|
}
|
|
3746
3747
|
function ee() {
|
|
3747
|
-
return
|
|
3748
|
+
return ko().editor;
|
|
3748
3749
|
}
|
|
3749
3750
|
const Et = _t(!1);
|
|
3750
3751
|
function Rt() {
|
|
3751
3752
|
return Ut(Et);
|
|
3752
3753
|
}
|
|
3753
|
-
function
|
|
3754
|
+
function Zo() {
|
|
3754
3755
|
return Bt(Et);
|
|
3755
3756
|
}
|
|
3756
3757
|
const Vt = () => !1;
|
|
3757
|
-
function
|
|
3758
|
+
function Ko(e = Vt) {
|
|
3758
3759
|
const t = Rt(), [r, i] = E(() => {
|
|
3759
3760
|
const s = e();
|
|
3760
3761
|
return typeof s == "boolean" ? !s : s;
|
|
@@ -3806,23 +3807,23 @@ function ce(e) {
|
|
|
3806
3807
|
(i) => i.name === e
|
|
3807
3808
|
) : null, [t, e]);
|
|
3808
3809
|
}
|
|
3809
|
-
function
|
|
3810
|
+
function Jo(e, t, r) {
|
|
3810
3811
|
return e < t ? t : e > r ? r : e;
|
|
3811
3812
|
}
|
|
3812
|
-
const
|
|
3813
|
-
function
|
|
3813
|
+
const Mo = (e) => typeof e == "number", Io = (e) => typeof e == "string", To = (e) => typeof e == "function";
|
|
3814
|
+
function zo(e, t = "px") {
|
|
3814
3815
|
if (!e) return e;
|
|
3815
|
-
const r =
|
|
3816
|
+
const r = Mo(e) ? String(e) : e, i = Number.parseFloat(r), o = r.match(/[%a-z]+$/i), a = o ? o[0] : t;
|
|
3816
3817
|
return Number.isNaN(i) ? e : i + a;
|
|
3817
3818
|
}
|
|
3818
|
-
function
|
|
3819
|
+
function Qo(e, t) {
|
|
3819
3820
|
if (!e)
|
|
3820
3821
|
return !1;
|
|
3821
3822
|
const { extensions: r = [] } = (e == null ? void 0 : e.extensionManager) ?? {};
|
|
3822
3823
|
return !!r.find((o) => o.name === t);
|
|
3823
3824
|
}
|
|
3824
|
-
function
|
|
3825
|
-
return e.map((t) =>
|
|
3825
|
+
function ea(e) {
|
|
3826
|
+
return e.map((t) => Io(t) ? { value: t, name: t } : t);
|
|
3826
3827
|
}
|
|
3827
3828
|
function Ht(e) {
|
|
3828
3829
|
const t = ee(), r = ce(e), { t: i } = oe();
|
|
@@ -3830,14 +3831,14 @@ function Ht(e) {
|
|
|
3830
3831
|
if (!t || !r || !i)
|
|
3831
3832
|
return null;
|
|
3832
3833
|
const { button: o } = r.options;
|
|
3833
|
-
return !o || !
|
|
3834
|
+
return !o || !To(o) ? null : o({
|
|
3834
3835
|
editor: t,
|
|
3835
3836
|
extension: r,
|
|
3836
3837
|
t: i
|
|
3837
3838
|
});
|
|
3838
3839
|
}, [t, r, i]);
|
|
3839
3840
|
}
|
|
3840
|
-
function
|
|
3841
|
+
function So(e, t) {
|
|
3841
3842
|
const r = e.type, i = e.name.toLowerCase(), o = i.split(".").pop();
|
|
3842
3843
|
if (!o) return !1;
|
|
3843
3844
|
const l = r || {
|
|
@@ -3863,7 +3864,7 @@ function zo(e, t) {
|
|
|
3863
3864
|
function Ge(e, t) {
|
|
3864
3865
|
const { acceptMimes: r, maxSize: i, t: o, toast: a } = t, l = [];
|
|
3865
3866
|
return (Array.isArray(e) ? e : Object.values(e)).forEach((c) => {
|
|
3866
|
-
if (!
|
|
3867
|
+
if (!So(c, r)) {
|
|
3867
3868
|
t.onError ? t.onError({
|
|
3868
3869
|
type: "type",
|
|
3869
3870
|
message: o("editor.upload.fileTypeNotSupported", {
|
|
@@ -3899,7 +3900,7 @@ function Ge(e, t) {
|
|
|
3899
3900
|
l.push(c);
|
|
3900
3901
|
}), l;
|
|
3901
3902
|
}
|
|
3902
|
-
function
|
|
3903
|
+
function ta() {
|
|
3903
3904
|
const { t: e } = oe(), { toast: t } = Be(), r = ee(), i = Ht(ze.name), { icon: o, tooltip: a } = (i == null ? void 0 : i.componentProps) ?? {}, { editorDisabled: l } = Ae(), [s, c] = E(!1), d = ce(ze.name), [g, p] = E(""), [h, b] = E(""), f = xe(null), k = (d == null ? void 0 : d.options.defaultInline) || !1, [u, y] = E(k), m = $(() => d == null ? void 0 : d.options, [d]);
|
|
3904
3905
|
function z(w) {
|
|
3905
3906
|
var _;
|
|
@@ -4049,7 +4050,7 @@ function ea() {
|
|
|
4049
4050
|
] })
|
|
4050
4051
|
] }) : /* @__PURE__ */ n(te, {});
|
|
4051
4052
|
}
|
|
4052
|
-
const
|
|
4053
|
+
const Ao = {
|
|
4053
4054
|
acceptMimes: ["image/jpeg", "image/gif", "image/png", "image/jpg"],
|
|
4054
4055
|
maxSize: 1024 * 1024 * 5,
|
|
4055
4056
|
// 5MB
|
|
@@ -4057,7 +4058,7 @@ const So = {
|
|
|
4057
4058
|
resourceImage: "both",
|
|
4058
4059
|
defaultInline: !1,
|
|
4059
4060
|
enableAlt: !0
|
|
4060
|
-
}, ze = /* @__PURE__ */
|
|
4061
|
+
}, ze = /* @__PURE__ */ Wn.extend({
|
|
4061
4062
|
group: "inline",
|
|
4062
4063
|
inline: !0,
|
|
4063
4064
|
defining: !0,
|
|
@@ -4066,7 +4067,7 @@ const So = {
|
|
|
4066
4067
|
addOptions() {
|
|
4067
4068
|
var e;
|
|
4068
4069
|
return {
|
|
4069
|
-
...
|
|
4070
|
+
...Ao,
|
|
4070
4071
|
...(e = this.parent) == null ? void 0 : e.call(this),
|
|
4071
4072
|
upload: () => Promise.reject("Image Upload Function"),
|
|
4072
4073
|
button: ({
|
|
@@ -4143,7 +4144,7 @@ const So = {
|
|
|
4143
4144
|
};
|
|
4144
4145
|
},
|
|
4145
4146
|
addNodeView() {
|
|
4146
|
-
return
|
|
4147
|
+
return gi(Co);
|
|
4147
4148
|
},
|
|
4148
4149
|
addCommands() {
|
|
4149
4150
|
var r;
|
|
@@ -4329,19 +4330,19 @@ const So = {
|
|
|
4329
4330
|
// ];
|
|
4330
4331
|
// },
|
|
4331
4332
|
});
|
|
4332
|
-
function
|
|
4333
|
+
function ra(e) {
|
|
4333
4334
|
return e.replace(/^.*\/|\..+$/g, "");
|
|
4334
4335
|
}
|
|
4335
|
-
function
|
|
4336
|
+
function ia(e) {
|
|
4336
4337
|
return e.split(".").pop();
|
|
4337
4338
|
}
|
|
4338
|
-
function
|
|
4339
|
+
function na(e) {
|
|
4339
4340
|
return e < 1024 ? `${e} Byte` : e < 1024 * 1024 ? `${(e / 1024).toFixed(2)} KB` : `${(e / 1024 / 1024).toFixed(2)} MB`;
|
|
4340
4341
|
}
|
|
4341
|
-
function
|
|
4342
|
+
function oa(e) {
|
|
4342
4343
|
return e ? e === "application/pdf" ? "pdf" : e.startsWith("application/") && [".document", "word"].some((t) => e.includes(t)) ? "word" : e.startsWith("application/") && ["presentation"].some((t) => e.includes(t)) ? "excel" : e.startsWith("application/") && ["sheet"].some((t) => e.includes(t)) ? "ppt" : e.startsWith("image") ? "image" : e.startsWith("audio") ? "audio" : e.startsWith("video") ? "video" : "file" : "file";
|
|
4343
4344
|
}
|
|
4344
|
-
function
|
|
4345
|
+
function Lo(e) {
|
|
4345
4346
|
return new Promise((t) => {
|
|
4346
4347
|
const r = new FileReader();
|
|
4347
4348
|
r.addEventListener(
|
|
@@ -4356,7 +4357,7 @@ function Ao(e) {
|
|
|
4356
4357
|
), r.readAsDataURL(e);
|
|
4357
4358
|
});
|
|
4358
4359
|
}
|
|
4359
|
-
function
|
|
4360
|
+
function No(e, t) {
|
|
4360
4361
|
const r = e.split(","), i = r[0].match(/:(.*?);/)[1], o = atob(r[r.length - 1]);
|
|
4361
4362
|
let a = o.length;
|
|
4362
4363
|
const l = new Uint8Array(a);
|
|
@@ -4401,7 +4402,7 @@ function Dt({
|
|
|
4401
4402
|
const L = Q.useCallback(() => {
|
|
4402
4403
|
var I;
|
|
4403
4404
|
if (d) return;
|
|
4404
|
-
const x =
|
|
4405
|
+
const x = No(
|
|
4405
4406
|
f,
|
|
4406
4407
|
((I = y == null ? void 0 : y.file) == null ? void 0 : I.name) || "image.png"
|
|
4407
4408
|
);
|
|
@@ -4450,7 +4451,7 @@ function Dt({
|
|
|
4450
4451
|
x.target.value = "";
|
|
4451
4452
|
return;
|
|
4452
4453
|
}
|
|
4453
|
-
const H = R[0], P = await
|
|
4454
|
+
const H = R[0], P = await Lo(H);
|
|
4454
4455
|
c(!0), m({
|
|
4455
4456
|
src: P.src,
|
|
4456
4457
|
file: H
|
|
@@ -4481,7 +4482,7 @@ function Dt({
|
|
|
4481
4482
|
/* @__PURE__ */ C(se, { children: [
|
|
4482
4483
|
/* @__PURE__ */ n(le, { children: a("editor.image.dialog.tab.uploadCrop") }),
|
|
4483
4484
|
/* @__PURE__ */ n("div", { children: y.src && /* @__PURE__ */ n(
|
|
4484
|
-
|
|
4485
|
+
Ci,
|
|
4485
4486
|
{
|
|
4486
4487
|
className: "richtext-w-full",
|
|
4487
4488
|
crop: h,
|
|
@@ -4551,7 +4552,7 @@ const jt = {
|
|
|
4551
4552
|
UPLOAD_VIDEO: (e) => `UPLOAD_VIDEO-${e}`,
|
|
4552
4553
|
EXCALIDRAW: (e) => `EXCALIDRAW-${e}`
|
|
4553
4554
|
};
|
|
4554
|
-
function
|
|
4555
|
+
function Eo() {
|
|
4555
4556
|
const { t: e } = oe(), { toast: t } = Be(), r = ee(), { editorDisabled: i } = Ae(), [o, a] = E(!1), l = jt.UPLOAD_IMAGE(r.id);
|
|
4556
4557
|
It(a, [l]);
|
|
4557
4558
|
const s = ce(ze.name), [c, d] = E(""), [g, p] = E(""), h = xe(null), b = (s == null ? void 0 : s.options.defaultInline) || !1, [f, k] = E(b), u = $(() => s == null ? void 0 : s.options, [s]);
|
|
@@ -4705,7 +4706,7 @@ function Pt(e, t) {
|
|
|
4705
4706
|
return r.hostname.includes(i);
|
|
4706
4707
|
});
|
|
4707
4708
|
}
|
|
4708
|
-
function
|
|
4709
|
+
function aa() {
|
|
4709
4710
|
const { t: e } = oe(), t = ee(), r = Ht(Oe.name), { icon: i, tooltip: o } = (r == null ? void 0 : r.componentProps) ?? {}, { editorDisabled: a } = Ae(), [l, s] = E(""), c = xe(null), [d, g] = E(""), [p, h] = E(!1), b = ce(Oe.name), f = $(() => (b == null ? void 0 : b.options) ?? {}, [b]);
|
|
4710
4711
|
async function k(m) {
|
|
4711
4712
|
var w;
|
|
@@ -4798,7 +4799,7 @@ function oa() {
|
|
|
4798
4799
|
] })
|
|
4799
4800
|
] });
|
|
4800
4801
|
}
|
|
4801
|
-
function
|
|
4802
|
+
function Ro(e) {
|
|
4802
4803
|
e = e.replace("https://youtu.be/", "https://www.youtube.com/watch?v=").replace("watch?v=", "embed/");
|
|
4803
4804
|
const t = e.match(/^https:\/\/www\.youtube\.com\/shorts\/([a-zA-Z0-9_-]+)/);
|
|
4804
4805
|
t && (e = `https://www.youtube.com/embed/${t[1]}`);
|
|
@@ -4823,7 +4824,7 @@ const Oe = /* @__PURE__ */ dt.create({
|
|
|
4823
4824
|
upload: void 0,
|
|
4824
4825
|
frameborder: !1,
|
|
4825
4826
|
resourceVideo: "both",
|
|
4826
|
-
width:
|
|
4827
|
+
width: xi["size-medium"],
|
|
4827
4828
|
HTMLAttributes: {
|
|
4828
4829
|
class: "iframe-wrapper"
|
|
4829
4830
|
// style: 'display: flex;justify-content: center;',
|
|
@@ -4851,13 +4852,13 @@ const Oe = /* @__PURE__ */ dt.create({
|
|
|
4851
4852
|
src: {
|
|
4852
4853
|
default: null,
|
|
4853
4854
|
renderHTML: ({ src: e }) => ({
|
|
4854
|
-
src: e ?
|
|
4855
|
+
src: e ? Ro(e) : null
|
|
4855
4856
|
})
|
|
4856
4857
|
},
|
|
4857
4858
|
width: {
|
|
4858
4859
|
default: this.options.width,
|
|
4859
4860
|
renderHTML: ({ width: e }) => ({
|
|
4860
|
-
width:
|
|
4861
|
+
width: zo(e)
|
|
4861
4862
|
})
|
|
4862
4863
|
},
|
|
4863
4864
|
frameborder: {
|
|
@@ -4906,7 +4907,7 @@ const Oe = /* @__PURE__ */ dt.create({
|
|
|
4906
4907
|
};
|
|
4907
4908
|
}
|
|
4908
4909
|
});
|
|
4909
|
-
function
|
|
4910
|
+
function Vo() {
|
|
4910
4911
|
const { t: e } = oe(), t = ee(), { editorDisabled: r } = Ae(), [i, o] = E(""), a = xe(null), [l, s] = E(""), [c, d] = E(!1), g = ce(Oe.name), p = jt.UPLOAD_VIDEO(t.id);
|
|
4911
4912
|
It(d, [p]);
|
|
4912
4913
|
const h = $(() => (g == null ? void 0 : g.options) ?? {}, [g]);
|
|
@@ -4988,67 +4989,67 @@ function Ro() {
|
|
|
4988
4989
|
)
|
|
4989
4990
|
] }) });
|
|
4990
4991
|
}
|
|
4991
|
-
function
|
|
4992
|
+
function Ho() {
|
|
4992
4993
|
return /* @__PURE__ */ C(te, { children: [
|
|
4993
|
-
/* @__PURE__ */ n(
|
|
4994
|
-
/* @__PURE__ */ n(
|
|
4994
|
+
/* @__PURE__ */ n(Eo, {}),
|
|
4995
|
+
/* @__PURE__ */ n(Vo, {})
|
|
4995
4996
|
] });
|
|
4996
4997
|
}
|
|
4997
|
-
process.env.NODE_ENV !== "production" && (
|
|
4998
|
+
process.env.NODE_ENV !== "production" && (Ho.displayName = "SlashDialogTrigger");
|
|
4998
4999
|
export {
|
|
4999
|
-
|
|
5000
|
+
ta as $,
|
|
5000
5001
|
wt as A,
|
|
5001
5002
|
G as B,
|
|
5002
5003
|
$e as C,
|
|
5003
5004
|
we as D,
|
|
5004
5005
|
jt as E,
|
|
5005
5006
|
st as F,
|
|
5006
|
-
|
|
5007
|
-
|
|
5007
|
+
mo as G,
|
|
5008
|
+
bo as H,
|
|
5008
5009
|
Re as I,
|
|
5009
|
-
|
|
5010
|
-
|
|
5010
|
+
Wn as J,
|
|
5011
|
+
oa as K,
|
|
5011
5012
|
pe as L,
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5013
|
+
dn as M,
|
|
5014
|
+
wn as N,
|
|
5015
|
+
vn as O,
|
|
5016
|
+
ia as P,
|
|
5017
|
+
ra as Q,
|
|
5018
|
+
na as R,
|
|
5018
5019
|
Ue as S,
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5020
|
+
Nn as T,
|
|
5021
|
+
Zo as U,
|
|
5022
|
+
qo as V,
|
|
5023
|
+
Xo as W,
|
|
5024
|
+
Ho as X,
|
|
5025
|
+
No as Y,
|
|
5026
|
+
Un as Z,
|
|
5026
5027
|
Oe as _,
|
|
5027
|
-
|
|
5028
|
-
|
|
5028
|
+
En as a,
|
|
5029
|
+
aa as a0,
|
|
5029
5030
|
kt as b,
|
|
5030
5031
|
O as c,
|
|
5031
5032
|
Ae as d,
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5033
|
+
Ko as e,
|
|
5034
|
+
ea as f,
|
|
5035
|
+
rn as g,
|
|
5035
5036
|
ee as h,
|
|
5036
5037
|
yt as i,
|
|
5037
5038
|
re as j,
|
|
5038
5039
|
Ct as k,
|
|
5039
|
-
|
|
5040
|
+
tn as l,
|
|
5040
5041
|
We as m,
|
|
5041
5042
|
se as n,
|
|
5042
5043
|
le as o,
|
|
5043
5044
|
zt as p,
|
|
5044
5045
|
ce as q,
|
|
5045
5046
|
Be as r,
|
|
5046
|
-
|
|
5047
|
+
Qo as s,
|
|
5047
5048
|
ze as t,
|
|
5048
5049
|
Ht as u,
|
|
5049
|
-
|
|
5050
|
+
Yo as v,
|
|
5050
5051
|
Rt as w,
|
|
5051
|
-
|
|
5052
|
+
Jo as x,
|
|
5052
5053
|
It as y,
|
|
5053
5054
|
at as z
|
|
5054
5055
|
};
|