eddyter 1.4.16 → 1.4.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/dist/AIChatPlugin-DsUPycjT.js +872 -0
- package/dist/CombinedAutocompletGrammarPlugin-BXOz6IRb.js +1778 -0
- package/dist/{CommentBubblePlugin-DZQW1ibY.js → CommentBubblePlugin-kiMehQkL.js} +5 -5
- package/dist/CommentPlugin-DIuM-Jao.js +154 -0
- package/dist/LazyCodeMirror-DdCIk-83.js +21374 -0
- package/dist/{LazySignatureCanvas-FKl1mD-T.js → LazySignatureCanvas-BtcxlSTW.js} +1 -1
- package/dist/NotePanelPlugin-FirMseLu.js +31 -0
- package/dist/TextEnhancePlugin-oXbL_F1i.js +199 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/assets/style.css +1 -1
- package/dist/components/AiPlugin/commands.d.ts +4 -0
- package/dist/components/AiPlugin/index.d.ts +0 -4
- package/dist/components/CommentToggle/CommentToggle.d.ts +1 -0
- package/dist/components/ConfigurableEditorWithAuth.d.ts +2 -0
- package/dist/editor/components/FloatingToolbarManager.d.ts +2 -1
- package/dist/editor/components/ToolbarMount.d.ts +2 -1
- package/dist/{generateDocxThumbnail-DJlPLsdY.js → generateDocxThumbnail-RE7yNAXP.js} +7 -6
- package/dist/{generatePdfThumbnail-CfDAh39b.js → generatePdfThumbnail-CnldK2yE.js} +4 -4
- package/dist/{generateXlsxThumbnail-cRIT4Jyf.js → generateXlsxThumbnail-BpBB4ePK.js} +1 -1
- package/dist/{html2pdf.bundle.min-BW3dolOS.js → html2pdf.bundle.min-u-o_L5zA.js} +1 -1
- package/dist/{index-BEepnYCf.js → index-B4W_mfNI.js} +15 -15
- package/dist/{index-gjz4wieB.js → index-C8ZUqYRj.js} +56 -56
- package/dist/{index-W6_ogglw.js → index-CKRp6axU.js} +28 -28
- package/dist/{index-BydXFu_2.js → index-CL0adQ5R.js} +1 -1
- package/dist/{index-BDDjWwK4.js → index-CXyZgoBl.js} +16862 -21806
- package/dist/{index-BmfQcIrc.js → index-DZAvLKar.js} +118 -116
- package/dist/index-F2-F96Nx.js +720 -0
- package/dist/index.js +3 -3
- package/dist/marked.esm-Tjr8Gfse.js +1114 -0
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -0
- package/dist/plugins/AIChatPlugin.commands.d.ts +7 -0
- package/dist/plugins/AIChatPlugin.d.ts +0 -7
- package/dist/plugins/CommentPlugin.commands.d.ts +5 -0
- package/dist/plugins/CommentPlugin.d.ts +0 -5
- package/dist/plugins/NotePanelPlugin.commands.d.ts +6 -0
- package/dist/plugins/NotePanelPlugin.d.ts +0 -6
- package/dist/plugins/TextEnhancePlugin.commands.d.ts +1 -0
- package/dist/plugins/TextEnhancePlugin.d.ts +0 -1
- package/dist/plugins/WordCountPlugin.d.ts +1 -0
- package/dist/sparkles-CTAYmQOE.js +17 -0
- package/dist/square-CupR-YWR.js +7 -0
- package/dist/types.d.ts +1 -0
- package/dist/useVoiceToText-U0yKgS5Q.js +153 -0
- package/package.json +5 -2
- package/dist/LazyCodeMirror-C1bW4mVF.js +0 -44822
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { jsx as e, jsxs as h, Fragment as Kt } from "react/jsx-runtime";
|
|
2
2
|
import { I as Me } from "./ImageResizer-BVwxL4Eh.js";
|
|
3
|
-
import { CodeNode as
|
|
4
|
-
import { LinkNode as
|
|
5
|
-
import { AutoFocusPlugin as
|
|
3
|
+
import { CodeNode as De } from "@lexical/code";
|
|
4
|
+
import { LinkNode as Le } from "@lexical/link";
|
|
5
|
+
import { AutoFocusPlugin as Ae } from "@lexical/react/LexicalAutoFocusPlugin";
|
|
6
6
|
import { useCollaborationContext as ze } from "@lexical/react/LexicalCollaborationContext";
|
|
7
7
|
import { useLexicalComposerContext as $e } from "@lexical/react/LexicalComposerContext";
|
|
8
8
|
import { ContentEditable as We } from "@lexical/react/LexicalContentEditable";
|
|
9
|
-
import { LexicalErrorBoundary as
|
|
10
|
-
import { HistoryPlugin as
|
|
9
|
+
import { LexicalErrorBoundary as Te } from "@lexical/react/LexicalErrorBoundary";
|
|
10
|
+
import { HistoryPlugin as Oe } from "@lexical/react/LexicalHistoryPlugin";
|
|
11
11
|
import { LexicalNestedComposer as _e } from "@lexical/react/LexicalNestedComposer";
|
|
12
12
|
import { OnChangePlugin as je } from "@lexical/react/LexicalOnChangePlugin";
|
|
13
13
|
import { RichTextPlugin as He } from "@lexical/react/LexicalRichTextPlugin";
|
|
14
14
|
import { useLexicalEditable as Fe } from "@lexical/react/useLexicalEditable";
|
|
15
15
|
import { useLexicalNodeSelection as Ye } from "@lexical/react/useLexicalNodeSelection";
|
|
16
|
-
import { mergeRegister as
|
|
17
|
-
import { $getRoot as qt, $isNodeSelection as st, $getSelection as tt, $isParagraphNode as _t, $setSelection as pt, $isRangeSelection as
|
|
18
|
-
import { useState as C, useEffect as
|
|
19
|
-
import { c as Rt,
|
|
16
|
+
import { mergeRegister as Be } from "@lexical/utils";
|
|
17
|
+
import { $getRoot as qt, $isNodeSelection as st, $getSelection as tt, $isParagraphNode as _t, $setSelection as pt, $isRangeSelection as Xe, SELECTION_CHANGE_COMMAND as Ue, COMMAND_PRIORITY_LOW as et, CLICK_COMMAND as Ge, DRAGSTART_COMMAND as Ke, KEY_DELETE_COMMAND as qe, KEY_BACKSPACE_COMMAND as Ve, KEY_ENTER_COMMAND as Je, KEY_ESCAPE_COMMAND as Qe, $getNodeByKey as rt, RootNode as Ze, TextNode as tr, LineBreakNode as er, ParagraphNode as rr, createCommand as or } from "lexical";
|
|
18
|
+
import { useState as C, useEffect as X, useRef as B, useMemo as Vt, useCallback as R, useLayoutEffect as Jt, Suspense as ir } from "react";
|
|
19
|
+
import { c as Rt, D as oe, a as ie, b as ne, d as ce, e as ae, g as de, B as Qt, az as Pt, t as k, ac as nr, o as cr, aA as V, aB as ar, aC as dr, aD as sr, ae as lr, af as ur, ag as mr, ah as gr, ai as hr, aE as fr, ab as pr, aF as br, aG as wr, X as xr, aH as yr, aI as Cr, l as vr, aJ as Nr, aK as Rr } from "./index-CXyZgoBl.js";
|
|
20
|
+
import { S as kr } from "./square-CupR-YWR.js";
|
|
21
|
+
import { S as Ir } from "./sparkles-CTAYmQOE.js";
|
|
20
22
|
const se = Rt("Crop", [
|
|
21
23
|
["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
|
|
22
24
|
["path", { d: "M18 22V8a2 2 0 0 0-2-2H2", key: "7s9ehn" }]
|
|
@@ -96,7 +98,7 @@ function Mr({
|
|
|
96
98
|
caption: o
|
|
97
99
|
}) {
|
|
98
100
|
const [c, s] = C(""), [f, y] = C("");
|
|
99
|
-
return
|
|
101
|
+
return X(() => ((() => {
|
|
100
102
|
const E = o.getEditorState().read(() => qt().getTextContent()).split(" • ");
|
|
101
103
|
s(E[0] || ""), y(E[1] || "");
|
|
102
104
|
})(), o.registerUpdateListener(({ editorState: $ }) => {
|
|
@@ -109,7 +111,7 @@ function Mr({
|
|
|
109
111
|
!c && !f && /* @__PURE__ */ e("span", { children: "Signature" })
|
|
110
112
|
] }) });
|
|
111
113
|
}
|
|
112
|
-
const
|
|
114
|
+
const Dr = "/transform-image/";
|
|
113
115
|
function lt(o) {
|
|
114
116
|
if (!Pt || o.startsWith("data:") || o.toLowerCase().endsWith(".svg")) return !1;
|
|
115
117
|
try {
|
|
@@ -128,12 +130,12 @@ function le(o) {
|
|
|
128
130
|
return null;
|
|
129
131
|
}
|
|
130
132
|
}
|
|
131
|
-
function
|
|
133
|
+
function Lr(o, c) {
|
|
132
134
|
if (!lt(o)) return o;
|
|
133
135
|
const s = le(o);
|
|
134
136
|
if (!s) return o;
|
|
135
137
|
const f = `${c.x},${c.y},${c.width},${c.height}`;
|
|
136
|
-
return `${Pt.replace(/\/$/, "")}${
|
|
138
|
+
return `${Pt.replace(/\/$/, "")}${Dr}${s}?crop=${f}`;
|
|
137
139
|
}
|
|
138
140
|
function ee(o) {
|
|
139
141
|
if (!lt(o)) return o;
|
|
@@ -149,7 +151,7 @@ function vt(o) {
|
|
|
149
151
|
const c = le(o);
|
|
150
152
|
return c ? `${Pt.replace(/\/$/, "")}/${c}` : ee(o);
|
|
151
153
|
}
|
|
152
|
-
function
|
|
154
|
+
function Ar({
|
|
153
155
|
open: o,
|
|
154
156
|
onOpenChange: c,
|
|
155
157
|
src: s,
|
|
@@ -158,7 +160,7 @@ function Dr({
|
|
|
158
160
|
height: N,
|
|
159
161
|
onCropApply: $
|
|
160
162
|
}) {
|
|
161
|
-
const [E, M] = C("freeform"), [ot, W] = C(s), [w, I] = C(!1), x =
|
|
163
|
+
const [E, M] = C("freeform"), [ot, W] = C(s), [w, I] = C(!1), x = B(null), J = B(null), [i, A] = C({ x: 0, y: 0, width: 0, height: 0 }), [v, D] = C({ x: 0, y: 0, width: 0, height: 0 }), it = B(null), ut = Vt(() => typeof y == "number" && typeof N == "number" && N > 0 ? y / N : i.width > 0 && i.height > 0 ? i.width / i.height : null, [i.height, i.width, N, y]), bt = Vt(() => {
|
|
162
164
|
switch (E) {
|
|
163
165
|
case "original":
|
|
164
166
|
return ut;
|
|
@@ -186,7 +188,7 @@ function Dr({
|
|
|
186
188
|
(n) => {
|
|
187
189
|
if (i.width <= 0 || i.height <= 0) return;
|
|
188
190
|
if (n == null) {
|
|
189
|
-
|
|
191
|
+
D({
|
|
190
192
|
x: 0,
|
|
191
193
|
y: 0,
|
|
192
194
|
width: i.width,
|
|
@@ -196,7 +198,7 @@ function Dr({
|
|
|
196
198
|
}
|
|
197
199
|
const g = i.width * 0.9, p = i.height * 0.9;
|
|
198
200
|
let u = g, b = u / n;
|
|
199
|
-
b > p && (b = p, u = b * n),
|
|
201
|
+
b > p && (b = p, u = b * n), D(
|
|
200
202
|
z({
|
|
201
203
|
x: (i.width - u) / 2,
|
|
202
204
|
y: (i.height - b) / 2,
|
|
@@ -212,7 +214,7 @@ function Dr({
|
|
|
212
214
|
let p = 0, u = 0, b = g;
|
|
213
215
|
for (; b && b !== n; )
|
|
214
216
|
p += b.offsetLeft, u += b.offsetTop, b = b.offsetParent;
|
|
215
|
-
|
|
217
|
+
A({
|
|
216
218
|
x: p,
|
|
217
219
|
y: u,
|
|
218
220
|
width: g.offsetWidth,
|
|
@@ -258,9 +260,9 @@ function Dr({
|
|
|
258
260
|
};
|
|
259
261
|
u.width = Math.min(u.width, n.naturalWidth - u.x), u.height = Math.min(u.height, n.naturalHeight - u.y), c(!1), Promise.resolve($(u));
|
|
260
262
|
}, [i, v, $, c]);
|
|
261
|
-
return
|
|
262
|
-
o && (
|
|
263
|
-
}, [o, s]),
|
|
263
|
+
return X(() => {
|
|
264
|
+
o && (A({ x: 0, y: 0, width: 0, height: 0 }), D({ x: 0, y: 0, width: 0, height: 0 }), I(!1), W(vt(s)));
|
|
265
|
+
}, [o, s]), X(() => {
|
|
264
266
|
if (!o) return;
|
|
265
267
|
const n = x.current;
|
|
266
268
|
if (!n) return;
|
|
@@ -274,28 +276,28 @@ function Dr({
|
|
|
274
276
|
return window.addEventListener("resize", u), () => {
|
|
275
277
|
g.disconnect(), window.removeEventListener("resize", u);
|
|
276
278
|
};
|
|
277
|
-
}, [o, nt]),
|
|
279
|
+
}, [o, nt]), X(() => {
|
|
278
280
|
if (!o) return;
|
|
279
281
|
const n = (p) => {
|
|
280
282
|
const u = it.current;
|
|
281
283
|
if (!u) return;
|
|
282
284
|
p.preventDefault();
|
|
283
|
-
const b = p.clientX - u.startX, j = p.clientY - u.startY, mt = i.width, gt = i.height, Q = bt ?? null, { x: G, y: ct, width:
|
|
285
|
+
const b = p.clientX - u.startX, j = p.clientY - u.startY, mt = i.width, gt = i.height, Q = bt ?? null, { x: G, y: ct, width: T, height: K } = u.initialRect;
|
|
284
286
|
if (u.mode === "move") {
|
|
285
|
-
const ht = Math.max(0, mt -
|
|
286
|
-
|
|
287
|
+
const ht = Math.max(0, mt - T), kt = Math.max(0, gt - K);
|
|
288
|
+
D(
|
|
287
289
|
z({
|
|
288
290
|
x: Math.max(0, Math.min(ht, G + b)),
|
|
289
291
|
y: Math.max(0, Math.min(kt, ct + j)),
|
|
290
|
-
width:
|
|
292
|
+
width: T,
|
|
291
293
|
height: K
|
|
292
294
|
})
|
|
293
295
|
);
|
|
294
296
|
return;
|
|
295
297
|
}
|
|
296
298
|
const S = u.mode;
|
|
297
|
-
let
|
|
298
|
-
S.includes("e") && (H =
|
|
299
|
+
let O = G, Z = ct, H = T, F = K;
|
|
300
|
+
S.includes("e") && (H = T + b), S.includes("w") && (O = G + b, H = T - b), S.includes("s") && (F = K + j), S.includes("n") && (Z = ct + j, F = K - j), Q != null && Q > 0 && (S === "e" || S === "w" ? (F = H / Q, S.includes("n") && (Z = ct + K - F)) : S === "n" || S === "s" ? (H = F * Q, S.includes("w") && (O = G + T - H)) : (F = H / Q, S.includes("n") && (Z = ct + K - F), S.includes("w") && (O = G + T - H))), D(z({ x: O, y: Z, width: H, height: F }));
|
|
299
301
|
}, g = () => {
|
|
300
302
|
it.current = null;
|
|
301
303
|
};
|
|
@@ -308,7 +310,7 @@ function Dr({
|
|
|
308
310
|
i.height,
|
|
309
311
|
bt,
|
|
310
312
|
z
|
|
311
|
-
]),
|
|
313
|
+
]), X(() => {
|
|
312
314
|
o && wt(bt);
|
|
313
315
|
}, [o, bt, i, wt]), /* @__PURE__ */ e(oe, { open: o, onOpenChange: c, children: /* @__PURE__ */ e(
|
|
314
316
|
ie,
|
|
@@ -407,7 +409,7 @@ function Dr({
|
|
|
407
409
|
/* @__PURE__ */ e("div", { className: "cteditor-grid cteditor-grid-cols-3 cteditor-gap-2", children: [
|
|
408
410
|
{ id: "freeform", label: "Freeform", icon: se },
|
|
409
411
|
{ id: "original", label: "Original", icon: nr },
|
|
410
|
-
{ id: "1:1", label: "1:1", icon:
|
|
412
|
+
{ id: "1:1", label: "1:1", icon: kr },
|
|
411
413
|
{ id: "4:3", label: "4:3", icon: Zt },
|
|
412
414
|
{ id: "16:9", label: "16:9", icon: Zt },
|
|
413
415
|
{ id: "3:4", label: "3:4", icon: te },
|
|
@@ -555,7 +557,7 @@ function Wr() {
|
|
|
555
557
|
}
|
|
556
558
|
);
|
|
557
559
|
}
|
|
558
|
-
function
|
|
560
|
+
function Tr(o, c = 12e3) {
|
|
559
561
|
return new Promise((s, f) => {
|
|
560
562
|
const y = new Image();
|
|
561
563
|
let N = !1;
|
|
@@ -569,7 +571,7 @@ function Or(o, c = 12e3) {
|
|
|
569
571
|
}, y.src = o;
|
|
570
572
|
});
|
|
571
573
|
}
|
|
572
|
-
function
|
|
574
|
+
function co({
|
|
573
575
|
src: o,
|
|
574
576
|
altText: c,
|
|
575
577
|
nodeKey: s,
|
|
@@ -584,7 +586,7 @@ function io({
|
|
|
584
586
|
position: w = "none",
|
|
585
587
|
linkUrl: I
|
|
586
588
|
}) {
|
|
587
|
-
const x =
|
|
589
|
+
const x = B(null), J = B(null), [i, A, v] = Ye(s), [D, it] = C(!1), ut = B(!1), { isCollabActive: bt } = ze(), [d] = $e(), [z, wt] = C(null), nt = B(null), [U, xt] = C(!1), St = Fe(), [n, g] = C(!1), [p, u] = C(""), [b, j] = C(!1), [mt, gt] = C(!1), [Q, G] = C(""), [ct, T] = C(""), [K, S] = C(!1), O = B(null), [Z, H] = C(0), [F, ht] = C(!1), kt = B(null), [ue, yt] = C(null), [Mt, Ct] = C(!1), [jt, Ht] = C(!1), at = B(null), It = cr()?.apiKey, Dt = Z > 0 && Z < 350;
|
|
588
590
|
Jt(() => {
|
|
589
591
|
if (!i || !st(z) || U) {
|
|
590
592
|
yt(null);
|
|
@@ -595,13 +597,13 @@ function io({
|
|
|
595
597
|
yt(null);
|
|
596
598
|
return;
|
|
597
599
|
}
|
|
598
|
-
const l = r.getBoundingClientRect(), m = a.getBoundingClientRect(), P = t.getBoundingClientRect(),
|
|
600
|
+
const l = r.getBoundingClientRect(), m = a.getBoundingClientRect(), P = t.getBoundingClientRect(), L = 8, _ = P.width;
|
|
599
601
|
if (_ <= 0) {
|
|
600
602
|
yt(null);
|
|
601
603
|
return;
|
|
602
604
|
}
|
|
603
|
-
if (
|
|
604
|
-
const dt = m.left + m.width / 2 - _ / 2, Y = Math.max(l.left +
|
|
605
|
+
if (Dt) {
|
|
606
|
+
const dt = m.left + m.width / 2 - _ / 2, Y = Math.max(l.left + L, Math.min(dt, l.right - L - _));
|
|
605
607
|
yt({
|
|
606
608
|
left: Y - m.left,
|
|
607
609
|
bottom: 0,
|
|
@@ -609,14 +611,14 @@ function io({
|
|
|
609
611
|
transform: "translateY(100%) translateY(4px)"
|
|
610
612
|
});
|
|
611
613
|
} else {
|
|
612
|
-
const dt = m.right -
|
|
614
|
+
const dt = m.right - L - _, Y = Math.max(l.left + L, Math.min(dt, l.right - L - _));
|
|
613
615
|
yt({
|
|
614
616
|
left: Y - m.left,
|
|
615
|
-
top:
|
|
617
|
+
top: L,
|
|
616
618
|
right: "auto"
|
|
617
619
|
});
|
|
618
620
|
}
|
|
619
|
-
}, [i, z, U,
|
|
621
|
+
}, [i, z, U, Dt, d, Z]), X(() => {
|
|
620
622
|
if (x.current) {
|
|
621
623
|
const t = () => {
|
|
622
624
|
ut.current || x.current && H(x.current.offsetWidth);
|
|
@@ -633,7 +635,7 @@ function io({
|
|
|
633
635
|
};
|
|
634
636
|
}
|
|
635
637
|
}, [w, f, d]);
|
|
636
|
-
const
|
|
638
|
+
const Lt = R(
|
|
637
639
|
(t) => {
|
|
638
640
|
const r = tt();
|
|
639
641
|
return i && st(r) && (t.preventDefault(), d.update(() => {
|
|
@@ -660,15 +662,15 @@ function io({
|
|
|
660
662
|
[M, i, E]
|
|
661
663
|
), Yt = R(
|
|
662
664
|
(t) => nt.current === M || J.current === t.target ? (pt(null), d.update(() => {
|
|
663
|
-
|
|
665
|
+
A(!0);
|
|
664
666
|
const r = d.getRootElement();
|
|
665
667
|
r !== null && r.focus();
|
|
666
668
|
}), !0) : !1,
|
|
667
|
-
[M, d,
|
|
668
|
-
),
|
|
669
|
+
[M, d, A]
|
|
670
|
+
), At = R(
|
|
669
671
|
(t) => {
|
|
670
672
|
const r = t;
|
|
671
|
-
if (
|
|
673
|
+
if (D)
|
|
672
674
|
return !0;
|
|
673
675
|
const a = r.target;
|
|
674
676
|
if (a.closest("button") && x.current && a.closest(".editor-image") === x.current.closest(".editor-image"))
|
|
@@ -679,14 +681,14 @@ function io({
|
|
|
679
681
|
const P = x.current.getBoundingClientRect();
|
|
680
682
|
m = r.clientX >= P.left && r.clientX <= P.right && r.clientY >= P.top && r.clientY <= P.bottom;
|
|
681
683
|
}
|
|
682
|
-
return l || m ? (r.shiftKey ?
|
|
684
|
+
return l || m ? (r.shiftKey ? A(!i) : (v(), A(!0)), !0) : !1;
|
|
683
685
|
},
|
|
684
|
-
[
|
|
686
|
+
[D, i, A, v]
|
|
685
687
|
), zt = R(
|
|
686
688
|
(t) => {
|
|
687
689
|
d.getEditorState().read(() => {
|
|
688
690
|
const r = tt();
|
|
689
|
-
t.target.tagName === "IMG" &&
|
|
691
|
+
t.target.tagName === "IMG" && Xe(r) && r.getNodes().length === 1 && d.dispatchCommand(
|
|
690
692
|
re,
|
|
691
693
|
t
|
|
692
694
|
);
|
|
@@ -694,9 +696,9 @@ function io({
|
|
|
694
696
|
},
|
|
695
697
|
[d]
|
|
696
698
|
);
|
|
697
|
-
|
|
699
|
+
X(() => {
|
|
698
700
|
let t = !0;
|
|
699
|
-
const r = d.getRootElement(), a =
|
|
701
|
+
const r = d.getRootElement(), a = Be(
|
|
700
702
|
d.registerUpdateListener(({ editorState: l }) => {
|
|
701
703
|
t && wt(l.read(() => tt()));
|
|
702
704
|
}),
|
|
@@ -707,12 +709,12 @@ function io({
|
|
|
707
709
|
),
|
|
708
710
|
d.registerCommand(
|
|
709
711
|
Ge,
|
|
710
|
-
|
|
712
|
+
At,
|
|
711
713
|
et
|
|
712
714
|
),
|
|
713
715
|
d.registerCommand(
|
|
714
716
|
re,
|
|
715
|
-
|
|
717
|
+
At,
|
|
716
718
|
et
|
|
717
719
|
),
|
|
718
720
|
d.registerCommand(
|
|
@@ -722,12 +724,12 @@ function io({
|
|
|
722
724
|
),
|
|
723
725
|
d.registerCommand(
|
|
724
726
|
qe,
|
|
725
|
-
|
|
727
|
+
Lt,
|
|
726
728
|
et
|
|
727
729
|
),
|
|
728
730
|
d.registerCommand(
|
|
729
731
|
Ve,
|
|
730
|
-
|
|
732
|
+
Lt,
|
|
731
733
|
et
|
|
732
734
|
),
|
|
733
735
|
d.registerCommand(Je, Ft, et),
|
|
@@ -743,15 +745,15 @@ function io({
|
|
|
743
745
|
}, [
|
|
744
746
|
v,
|
|
745
747
|
d,
|
|
746
|
-
|
|
748
|
+
D,
|
|
747
749
|
i,
|
|
748
750
|
s,
|
|
749
|
-
|
|
751
|
+
Lt,
|
|
750
752
|
Ft,
|
|
751
753
|
Yt,
|
|
752
|
-
|
|
754
|
+
At,
|
|
753
755
|
zt,
|
|
754
|
-
|
|
756
|
+
A
|
|
755
757
|
]);
|
|
756
758
|
const me = () => {
|
|
757
759
|
d.update(() => {
|
|
@@ -830,8 +832,8 @@ function io({
|
|
|
830
832
|
const P = rt(s);
|
|
831
833
|
if (!V(P)) return;
|
|
832
834
|
P.setSrc(r), P.setWidthAndHeight("inherit", "inherit");
|
|
833
|
-
const
|
|
834
|
-
|
|
835
|
+
const L = tt();
|
|
836
|
+
L && pt(L.clone());
|
|
835
837
|
},
|
|
836
838
|
{ tag: "image-reset" }
|
|
837
839
|
);
|
|
@@ -853,8 +855,8 @@ function io({
|
|
|
853
855
|
}
|
|
854
856
|
const l = k.loading("Uploading image…");
|
|
855
857
|
try {
|
|
856
|
-
r = (await
|
|
857
|
-
|
|
858
|
+
r = (await ar.post(
|
|
859
|
+
dr.project.fileUploadFromUrl,
|
|
858
860
|
{ url: o, prefix: "uploads" },
|
|
859
861
|
{ headers: { "x-api-key": It } }
|
|
860
862
|
)).data.fileUrl, k.dismiss(l);
|
|
@@ -863,14 +865,14 @@ function io({
|
|
|
863
865
|
return;
|
|
864
866
|
}
|
|
865
867
|
}
|
|
866
|
-
const a =
|
|
868
|
+
const a = Lr(r, t);
|
|
867
869
|
if (a === r) {
|
|
868
870
|
k.error("Cropping is only supported for images hosted on the CDN.");
|
|
869
871
|
return;
|
|
870
872
|
}
|
|
871
873
|
Ct(!0), at.current = a;
|
|
872
874
|
try {
|
|
873
|
-
await
|
|
875
|
+
await Tr(a), Nt.add(a), d.update(() => {
|
|
874
876
|
const l = rt(s);
|
|
875
877
|
if (!V(l)) return;
|
|
876
878
|
l.setSrc(a), l.setWidthAndHeight(t.width, t.height);
|
|
@@ -883,22 +885,22 @@ function io({
|
|
|
883
885
|
},
|
|
884
886
|
[d, s, o, It]
|
|
885
887
|
), Ce = R(() => {
|
|
886
|
-
I && !i && (
|
|
888
|
+
I && !i && (O.current = setTimeout(() => {
|
|
887
889
|
S(!0);
|
|
888
890
|
}, 300));
|
|
889
891
|
}, [I, i]), ve = R(() => {
|
|
890
|
-
|
|
891
|
-
}, []),
|
|
892
|
+
O.current && (clearTimeout(O.current), O.current = null), S(!1);
|
|
893
|
+
}, []), Bt = R((t) => {
|
|
892
894
|
t.preventDefault(), t.stopPropagation(), I && window.open(I, "_blank", "noopener,noreferrer");
|
|
893
895
|
}, [I]);
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
}, []),
|
|
896
|
+
X(() => () => {
|
|
897
|
+
O.current && clearTimeout(O.current);
|
|
898
|
+
}, []), X(() => {
|
|
897
899
|
i || ht(!1);
|
|
898
|
-
}, [i]),
|
|
900
|
+
}, [i]), X(() => {
|
|
899
901
|
xt(!1), Ht(!1);
|
|
900
902
|
}, [o]);
|
|
901
|
-
const
|
|
903
|
+
const Xt = async () => {
|
|
902
904
|
if (!p.trim() || b) return;
|
|
903
905
|
j(!0);
|
|
904
906
|
const t = k.loading("Refining image...", {
|
|
@@ -907,7 +909,7 @@ function io({
|
|
|
907
909
|
try {
|
|
908
910
|
let r = p.trim();
|
|
909
911
|
const l = p.trim().replace(/^(add|also add|include|with|and)\s+(some|a|an)\s+/gi, "").replace(/^(add|also add|include|with|and)\s+/gi, "").trim(), m = (Y) => {
|
|
910
|
-
const
|
|
912
|
+
const Tt = Y.toLowerCase();
|
|
911
913
|
return [
|
|
912
914
|
"article",
|
|
913
915
|
"write",
|
|
@@ -924,7 +926,7 @@ function io({
|
|
|
924
926
|
"add some images",
|
|
925
927
|
"include images",
|
|
926
928
|
"include pictures"
|
|
927
|
-
].some((Et) =>
|
|
929
|
+
].some((Et) => Tt.includes(Et));
|
|
928
930
|
};
|
|
929
931
|
let P = "";
|
|
930
932
|
if (W && W.trim()) {
|
|
@@ -932,7 +934,7 @@ function io({
|
|
|
932
934
|
m(Y) && c && c !== "Generated image" && c.trim() ? P = c.trim() : P = Y;
|
|
933
935
|
} else c && c !== "Generated image" && c.trim() && (P = c.trim());
|
|
934
936
|
P ? r = `${P} with ${l}` : r = l;
|
|
935
|
-
const
|
|
937
|
+
const L = await fetch(`${vr}/agent/stream`, {
|
|
936
938
|
method: "POST",
|
|
937
939
|
headers: { "Content-Type": "application/json" },
|
|
938
940
|
body: JSON.stringify({
|
|
@@ -942,22 +944,22 @@ function io({
|
|
|
942
944
|
api_key: It || ""
|
|
943
945
|
})
|
|
944
946
|
});
|
|
945
|
-
if (!
|
|
946
|
-
throw new Error(`Image service error: ${
|
|
947
|
-
const _ =
|
|
947
|
+
if (!L.ok)
|
|
948
|
+
throw new Error(`Image service error: ${L.status}`);
|
|
949
|
+
const _ = L.body?.getReader(), Wt = new TextDecoder();
|
|
948
950
|
if (!_) throw new Error("Stream reader not available");
|
|
949
951
|
let dt = null;
|
|
950
952
|
t: for (; ; ) {
|
|
951
|
-
const { done: Y, value:
|
|
953
|
+
const { done: Y, value: Tt } = await _.read();
|
|
952
954
|
if (Y) break;
|
|
953
|
-
const Gt = Wt.decode(
|
|
955
|
+
const Gt = Wt.decode(Tt, { stream: !0 }).split(`
|
|
954
956
|
`);
|
|
955
957
|
for (const Et of Gt) {
|
|
956
958
|
if (!Et.startsWith("data: ")) continue;
|
|
957
|
-
const
|
|
958
|
-
if (!(!
|
|
959
|
+
const Ot = Et.slice(6).trim();
|
|
960
|
+
if (!(!Ot || Ot === "[DONE]"))
|
|
959
961
|
try {
|
|
960
|
-
const q = JSON.parse(
|
|
962
|
+
const q = JSON.parse(Ot);
|
|
961
963
|
if (q.type === "image_ready") {
|
|
962
964
|
dt = q.url, _.cancel();
|
|
963
965
|
break t;
|
|
@@ -977,15 +979,15 @@ function io({
|
|
|
977
979
|
throw new Error("Failed to generate image - no image received");
|
|
978
980
|
k.dismiss(t), k.success("Image refined successfully!", {
|
|
979
981
|
description: "Compare the images and choose which to keep."
|
|
980
|
-
}), G(dt),
|
|
982
|
+
}), G(dt), T(r), gt(!0), u(""), g(!1);
|
|
981
983
|
} catch (r) {
|
|
982
|
-
if (k.dismiss(t), r instanceof
|
|
984
|
+
if (k.dismiss(t), r instanceof Nr) {
|
|
983
985
|
const a = r.code === "API_KEYS_DISABLED" ? "API Keys Disabled" : "API Key Required";
|
|
984
986
|
k.error(a, {
|
|
985
987
|
description: r.message,
|
|
986
988
|
duration: 8e3
|
|
987
989
|
});
|
|
988
|
-
} else r instanceof
|
|
990
|
+
} else r instanceof Rr ? k.error("Credits Issue", {
|
|
989
991
|
description: r.message,
|
|
990
992
|
duration: 8e3
|
|
991
993
|
}) : k.error("Failed to refine image", {
|
|
@@ -1002,12 +1004,12 @@ function io({
|
|
|
1002
1004
|
const r = tt();
|
|
1003
1005
|
r && pt(r.clone());
|
|
1004
1006
|
}
|
|
1005
|
-
}), gt(!1), G(""),
|
|
1007
|
+
}), gt(!1), G(""), T(""), k.success("Image replaced successfully!", {
|
|
1006
1008
|
description: "The image has been updated with the refined version."
|
|
1007
1009
|
});
|
|
1008
1010
|
}, Re = () => {
|
|
1009
|
-
gt(!1), G(""),
|
|
1010
|
-
}, ke = i && st(z) && !
|
|
1011
|
+
gt(!1), G(""), T("");
|
|
1012
|
+
}, ke = i && st(z) && !D, Ut = (i || D) && St, $t = vt(o), Ie = R(() => {
|
|
1011
1013
|
at.current && o === at.current && (Nt.add(o), at.current = null, Ct(!1));
|
|
1012
1014
|
}, [o]), Ee = R(() => {
|
|
1013
1015
|
if (!jt && lt(o) && o !== $t) {
|
|
@@ -1051,7 +1053,7 @@ function io({
|
|
|
1051
1053
|
display: "inline-block"
|
|
1052
1054
|
}, Se = R(
|
|
1053
1055
|
(t) => {
|
|
1054
|
-
if (
|
|
1056
|
+
if (D || t.target.closest("button"))
|
|
1055
1057
|
return;
|
|
1056
1058
|
const a = t.target === x.current;
|
|
1057
1059
|
let l = !1;
|
|
@@ -1059,9 +1061,9 @@ function io({
|
|
|
1059
1061
|
const m = x.current.getBoundingClientRect();
|
|
1060
1062
|
l = t.clientX >= m.left && t.clientX <= m.right && t.clientY >= m.top && t.clientY <= m.bottom;
|
|
1061
1063
|
}
|
|
1062
|
-
!a && !l || (t.stopPropagation(), t.shiftKey ?
|
|
1064
|
+
!a && !l || (t.stopPropagation(), t.shiftKey ? A(!i) : (v(), A(!0)));
|
|
1063
1065
|
},
|
|
1064
|
-
[
|
|
1066
|
+
[D, i, A, v]
|
|
1065
1067
|
);
|
|
1066
1068
|
return /* @__PURE__ */ e(ir, { fallback: null, children: /* @__PURE__ */ h(Kt, { children: [
|
|
1067
1069
|
/* @__PURE__ */ h(
|
|
@@ -1088,7 +1090,7 @@ function io({
|
|
|
1088
1090
|
}
|
|
1089
1091
|
),
|
|
1090
1092
|
Mt && !U && /* @__PURE__ */ h("div", { className: "cteditor-absolute cteditor-inset-0 cteditor-flex cteditor-flex-col cteditor-items-center cteditor-justify-center cteditor-rounded-lg cteditor-bg-background/50 cteditor-backdrop-blur-[1px] cteditor-pointer-events-none", children: [
|
|
1091
|
-
/* @__PURE__ */ e(
|
|
1093
|
+
/* @__PURE__ */ e(sr, { className: "cteditor-w-10 cteditor-h-10 cteditor-text-foreground cteditor-animate-spin cteditor-mb-2", "aria-hidden": !0 }),
|
|
1092
1094
|
/* @__PURE__ */ e("span", { className: "cteditor-text-sm cteditor-font-medium cteditor-text-foreground", children: "Applying crop..." })
|
|
1093
1095
|
] }),
|
|
1094
1096
|
K && I && !i && /* @__PURE__ */ h(
|
|
@@ -1103,7 +1105,7 @@ function io({
|
|
|
1103
1105
|
"button",
|
|
1104
1106
|
{
|
|
1105
1107
|
type: "button",
|
|
1106
|
-
onClick:
|
|
1108
|
+
onClick: Bt,
|
|
1107
1109
|
className: "cteditor-px-2 cteditor-py-1.5 cteditor-text-xs cteditor-rounded cteditor-bg-primary cteditor-text-primary-foreground hover:cteditor-bg-primary/90 cteditor-transition-colors cteditor-flex-shrink-0",
|
|
1108
1110
|
children: "Open"
|
|
1109
1111
|
}
|
|
@@ -1116,7 +1118,7 @@ function io({
|
|
|
1116
1118
|
{
|
|
1117
1119
|
ref: kt,
|
|
1118
1120
|
className: "cteditor-absolute cteditor-flex cteditor-gap-1 z-10 cteditor-text-foreground",
|
|
1119
|
-
style: ue ?? (
|
|
1121
|
+
style: ue ?? (Dt ? { left: "50%", transform: "translateX(-50%) translateY(100%) translateY(4px)", bottom: 0 } : { top: 8, right: 8 }),
|
|
1120
1122
|
children: [
|
|
1121
1123
|
/* @__PURE__ */ h("div", { className: "cteditor-flex cteditor-items-center cteditor-gap-0.5 cteditor-bg-accent cteditor-border cteditor-border-foreground/10 cteditor-rounded-md cteditor-shadow-md cteditor-p-0.5", children: [
|
|
1122
1124
|
/* @__PURE__ */ e(
|
|
@@ -1127,7 +1129,7 @@ function io({
|
|
|
1127
1129
|
className: ` cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${w === "left" ? "cteditor-bg-foreground/10" : ""}`,
|
|
1128
1130
|
"aria-label": "Wrap text left",
|
|
1129
1131
|
title: "Wrap text left",
|
|
1130
|
-
children: /* @__PURE__ */ e(
|
|
1132
|
+
children: /* @__PURE__ */ e(lr, {})
|
|
1131
1133
|
}
|
|
1132
1134
|
),
|
|
1133
1135
|
/* @__PURE__ */ e(
|
|
@@ -1138,7 +1140,7 @@ function io({
|
|
|
1138
1140
|
className: ` cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${w === "right" ? "cteditor-bg-foreground/10" : ""}`,
|
|
1139
1141
|
"aria-label": "Wrap text right",
|
|
1140
1142
|
title: "Wrap text right",
|
|
1141
|
-
children: /* @__PURE__ */ e(
|
|
1143
|
+
children: /* @__PURE__ */ e(ur, {})
|
|
1142
1144
|
}
|
|
1143
1145
|
),
|
|
1144
1146
|
/* @__PURE__ */ e("div", { className: "cteditor-w-px cteditor-h-5 cteditor-bg-foreground/10 cteditor-mx-0.5" }),
|
|
@@ -1150,7 +1152,7 @@ function io({
|
|
|
1150
1152
|
className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${w === "inline-left" ? "cteditor-bg-foreground/10" : ""}`,
|
|
1151
1153
|
"aria-label": "Align left",
|
|
1152
1154
|
title: "Align left (no text wrap)",
|
|
1153
|
-
children: /* @__PURE__ */ e(
|
|
1155
|
+
children: /* @__PURE__ */ e(mr, {})
|
|
1154
1156
|
}
|
|
1155
1157
|
),
|
|
1156
1158
|
/* @__PURE__ */ e(
|
|
@@ -1161,7 +1163,7 @@ function io({
|
|
|
1161
1163
|
className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${w === "inline-center" || w === "full" ? "cteditor-bg-foreground/10" : ""}`,
|
|
1162
1164
|
"aria-label": "Align center",
|
|
1163
1165
|
title: "Align center (no text wrap)",
|
|
1164
|
-
children: /* @__PURE__ */ e(
|
|
1166
|
+
children: /* @__PURE__ */ e(gr, {})
|
|
1165
1167
|
}
|
|
1166
1168
|
),
|
|
1167
1169
|
/* @__PURE__ */ e(
|
|
@@ -1172,7 +1174,7 @@ function io({
|
|
|
1172
1174
|
className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${w === "inline-right" ? "cteditor-bg-foreground/10" : ""}`,
|
|
1173
1175
|
"aria-label": "Align right",
|
|
1174
1176
|
title: "Align right (no text wrap)",
|
|
1175
|
-
children: /* @__PURE__ */ e(
|
|
1177
|
+
children: /* @__PURE__ */ e(hr, {})
|
|
1176
1178
|
}
|
|
1177
1179
|
),
|
|
1178
1180
|
/* @__PURE__ */ e("div", { className: "cteditor-w-px cteditor-h-5 cteditor-bg-foreground/10 cteditor-mx-0.5" }),
|
|
@@ -1184,7 +1186,7 @@ function io({
|
|
|
1184
1186
|
className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-foreground/10 cteditor-transition-colors ${w === "none" ? "cteditor-bg-foreground/10" : ""}`,
|
|
1185
1187
|
"aria-label": "Inline",
|
|
1186
1188
|
title: "Inline with text",
|
|
1187
|
-
children: /* @__PURE__ */ e(
|
|
1189
|
+
children: /* @__PURE__ */ e(fr, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-foreground" })
|
|
1188
1190
|
}
|
|
1189
1191
|
),
|
|
1190
1192
|
/* @__PURE__ */ e("div", { className: "cteditor-w-px cteditor-h-5 cteditor-bg-foreground/10 cteditor-mx-0.5" }),
|
|
@@ -1217,11 +1219,11 @@ function io({
|
|
|
1217
1219
|
"button",
|
|
1218
1220
|
{
|
|
1219
1221
|
type: "button",
|
|
1220
|
-
onClick:
|
|
1222
|
+
onClick: Bt,
|
|
1221
1223
|
className: " cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-accent hover:cteditor-bg-accent/95 cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-foreground/20",
|
|
1222
1224
|
"aria-label": "Visit link",
|
|
1223
1225
|
title: `Visit: ${I}`,
|
|
1224
|
-
children: /* @__PURE__ */ e(
|
|
1226
|
+
children: /* @__PURE__ */ e(pr, {})
|
|
1225
1227
|
}
|
|
1226
1228
|
),
|
|
1227
1229
|
W && /* @__PURE__ */ e(
|
|
@@ -1234,7 +1236,7 @@ function io({
|
|
|
1234
1236
|
className: " cteditor-size-8 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-accent hover:cteditor-bg-accent/90 cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-foreground/20",
|
|
1235
1237
|
"aria-label": "Refine image",
|
|
1236
1238
|
title: "Refine image",
|
|
1237
|
-
children: /* @__PURE__ */ e(
|
|
1239
|
+
children: /* @__PURE__ */ e(Ir, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-foreground" })
|
|
1238
1240
|
}
|
|
1239
1241
|
),
|
|
1240
1242
|
/* @__PURE__ */ e(
|
|
@@ -1247,7 +1249,7 @@ function io({
|
|
|
1247
1249
|
className: " cteditor-size-8 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-accent hover:cteditor-bg-accent/90 cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-foreground/20",
|
|
1248
1250
|
"aria-label": "Open image in new tab",
|
|
1249
1251
|
title: "Open in new tab",
|
|
1250
|
-
children: /* @__PURE__ */ e(
|
|
1252
|
+
children: /* @__PURE__ */ e(br, {})
|
|
1251
1253
|
}
|
|
1252
1254
|
),
|
|
1253
1255
|
/* @__PURE__ */ e(
|
|
@@ -1260,7 +1262,7 @@ function io({
|
|
|
1260
1262
|
className: " cteditor-size-8 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-accent hover:cteditor-bg-destructive hover:cteditor-text-destructive-foreground cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-foreground/20",
|
|
1261
1263
|
"aria-label": "Delete image",
|
|
1262
1264
|
title: "Delete image",
|
|
1263
|
-
children: /* @__PURE__ */ e(
|
|
1265
|
+
children: /* @__PURE__ */ e(wr, {})
|
|
1264
1266
|
}
|
|
1265
1267
|
)
|
|
1266
1268
|
]
|
|
@@ -1283,7 +1285,7 @@ function io({
|
|
|
1283
1285
|
value: p,
|
|
1284
1286
|
onChange: (t) => u(t.target.value),
|
|
1285
1287
|
onKeyDown: (t) => {
|
|
1286
|
-
t.stopPropagation(), t.key === "Enter" && p.trim() && !b &&
|
|
1288
|
+
t.stopPropagation(), t.key === "Enter" && p.trim() && !b && Xt(), t.key === "Escape" && (g(!1), u(""));
|
|
1287
1289
|
},
|
|
1288
1290
|
onKeyUp: (t) => {
|
|
1289
1291
|
t.stopPropagation();
|
|
@@ -1303,7 +1305,7 @@ function io({
|
|
|
1303
1305
|
{
|
|
1304
1306
|
type: "button",
|
|
1305
1307
|
onClick: (t) => {
|
|
1306
|
-
t.stopPropagation(),
|
|
1308
|
+
t.stopPropagation(), Xt();
|
|
1307
1309
|
},
|
|
1308
1310
|
disabled: b || !p.trim(),
|
|
1309
1311
|
className: " cteditor-px-5 cteditor-py-2 cteditor-text-sm cteditor-rounded-md cteditor-bg-foreground cteditor-text-background hover:cteditor-bg-foreground/95 disabled:cteditor-opacity-50 disabled:cteditor-cursor-not-allowed cteditor-transition-colors focus:cteditor-outline-none focus:cteditor-ring-2 focus:cteditor-ring-background",
|
|
@@ -1322,7 +1324,7 @@ function io({
|
|
|
1322
1324
|
},
|
|
1323
1325
|
disabled: b,
|
|
1324
1326
|
className: "cteditor-size-9 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-text-sm cteditor-rounded-md cteditor-bg-background cteditor-border cteditor-border-border cteditor-text-foreground hover:cteditor-bg-accent disabled:cteditor-opacity-50 disabled:cteditor-cursor-not-allowed cteditor-transition-colors",
|
|
1325
|
-
children: /* @__PURE__ */ e(
|
|
1327
|
+
children: /* @__PURE__ */ e(xr, { size: 16 })
|
|
1326
1328
|
}
|
|
1327
1329
|
)
|
|
1328
1330
|
] })
|
|
@@ -1365,11 +1367,11 @@ function io({
|
|
|
1365
1367
|
tr,
|
|
1366
1368
|
er,
|
|
1367
1369
|
rr,
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
+
Le,
|
|
1371
|
+
De
|
|
1370
1372
|
],
|
|
1371
1373
|
children: [
|
|
1372
|
-
/* @__PURE__ */ e(
|
|
1374
|
+
/* @__PURE__ */ e(Ae, {}),
|
|
1373
1375
|
/* @__PURE__ */ e(
|
|
1374
1376
|
He,
|
|
1375
1377
|
{
|
|
@@ -1381,7 +1383,7 @@ function io({
|
|
|
1381
1383
|
className: " cteditor-outline-none !cteditor-shadow-none cteditor-bg-foreground/10 cteditor-border !cteditor-border-foreground/15 cteditor-py-1 cteditor-px-2 cteditor-rounded-sm cteditor-text-xs cteditor-relative"
|
|
1382
1384
|
}
|
|
1383
1385
|
),
|
|
1384
|
-
ErrorBoundary:
|
|
1386
|
+
ErrorBoundary: Te
|
|
1385
1387
|
}
|
|
1386
1388
|
),
|
|
1387
1389
|
/* @__PURE__ */ e(
|
|
@@ -1391,15 +1393,15 @@ function io({
|
|
|
1391
1393
|
}
|
|
1392
1394
|
}
|
|
1393
1395
|
),
|
|
1394
|
-
/* @__PURE__ */ e(
|
|
1395
|
-
/* @__PURE__ */ e(
|
|
1396
|
+
/* @__PURE__ */ e(Oe, {}),
|
|
1397
|
+
/* @__PURE__ */ e(yr, { namespace: Cr.namespace })
|
|
1396
1398
|
]
|
|
1397
1399
|
}
|
|
1398
1400
|
)
|
|
1399
1401
|
}
|
|
1400
1402
|
)),
|
|
1401
1403
|
/* @__PURE__ */ e(
|
|
1402
|
-
|
|
1404
|
+
Ar,
|
|
1403
1405
|
{
|
|
1404
1406
|
open: F,
|
|
1405
1407
|
onOpenChange: ht,
|
|
@@ -1425,5 +1427,5 @@ function io({
|
|
|
1425
1427
|
}
|
|
1426
1428
|
export {
|
|
1427
1429
|
re as RIGHT_CLICK_IMAGE_COMMAND,
|
|
1428
|
-
|
|
1430
|
+
co as default
|
|
1429
1431
|
};
|