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