eddyter 1.4.19-beta.0 → 1.4.19

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.
Files changed (23) hide show
  1. package/dist/{AIChatPlugin-r4Q1CC4S.js → AIChatPlugin-BUWq8ixX.js} +3 -3
  2. package/dist/{CombinedAutocompletGrammarPlugin-BuAfoCfe.js → CombinedAutocompletGrammarPlugin-Dq25w8tq.js} +2 -2
  3. package/dist/{CommentBubblePlugin-B8Q5ZxWY.js → CommentBubblePlugin-B77d3Qq6.js} +1 -1
  4. package/dist/{CommentPlugin-BICzJnwy.js → CommentPlugin-BJQyKmrN.js} +60 -45
  5. package/dist/{NotePanelPlugin-igN9zPi_.js → NotePanelPlugin-BqOdcg07.js} +1 -1
  6. package/dist/{TextEnhancePlugin-q9i0TKCN.js → TextEnhancePlugin-BnmdRgUu.js} +6 -6
  7. package/dist/assets/style.css +1 -1
  8. package/dist/{generateDocxThumbnail-wh4lnFAw.js → generateDocxThumbnail-DBMxjZ83.js} +1 -1
  9. package/dist/{generatePdfThumbnail-DQyYzjOS.js → generatePdfThumbnail-Cv2-ZCzh.js} +1 -1
  10. package/dist/{generateXlsxThumbnail-DqvyM6q9.js → generateXlsxThumbnail-UHmNc7Fa.js} +1 -1
  11. package/dist/{index-Bzry1HiS.js → index-BaWQzoL2.js} +11 -11
  12. package/dist/{index-jEC_qTLD.js → index-Bex3G_eE.js} +5100 -5017
  13. package/dist/{index-w_DzPr7S.js → index-C_mjLQUF.js} +2 -2
  14. package/dist/{index-m-NFtIUR.js → index-ChSepytp.js} +21 -21
  15. package/dist/{index-DEW_Wgag.js → index-Cl_A9eof.js} +59 -59
  16. package/dist/{index-DQah7JmS.js → index-DcHU8PlQ.js} +1 -1
  17. package/dist/{index-BWs0p6X8.js → index-q_TW8dU1.js} +15 -15
  18. package/dist/index.js +3 -3
  19. package/dist/nodes/ButtonNode.d.ts +1 -1
  20. package/dist/{sparkles-N8q1Rg6P.js → sparkles-C-XoMho5.js} +1 -1
  21. package/dist/ui/Icons.d.ts +14 -3
  22. package/dist/{useVoiceToText-BSB1QOIb.js → useVoiceToText-BzaLSbRi.js} +6 -6
  23. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { jsx as e, jsxs as n, Fragment as j } from "react/jsx-runtime";
2
2
  import { useLexicalComposerContext as se } from "@lexical/react/LexicalComposerContext";
3
3
  import { COMMAND_PRIORITY_LOW as S, $getSelection as _, $isRangeSelection as O, $insertNodes as de, $getRoot as L } from "lexical";
4
- import { c as F, D as U, a as K, b as H, d as J, e as W, L as le, I as ue, f as B, g as z, B as T, P as me, F as fe, C as ge, h as pe, i as he, E as xe, j as ye, N as be, k as Ne, R as we, S as ve, l as Ie, u as ke, A as Ce, m as Te, n as Ee, t as a, o as Se, p as R, q as Ae, $ as Pe, r as Me, s as G, v as De } from "./index-jEC_qTLD.js";
4
+ import { c as F, D as U, a as K, b as H, d as J, e as W, L as le, I as ue, f as B, g as z, B as T, P as me, F as fe, C as ge, h as pe, i as he, E as xe, j as ye, N as be, k as Ne, R as we, S as ve, l as Ie, u as ke, A as Ce, m as Te, n as Ee, t as a, o as Se, p as R, q as Ae, $ as Pe, r as Me, s as G, v as De } from "./index-Bex3G_eE.js";
5
5
  import Q, { useState as v, forwardRef as _e, useImperativeHandle as Oe, useRef as A, useEffect as P } from "react";
6
- import { S as $ } from "./sparkles-N8q1Rg6P.js";
6
+ import { S as $ } from "./sparkles-C-XoMho5.js";
7
7
  const q = F("Globe", [
8
8
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
9
9
  ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
@@ -13,9 +13,9 @@ import { RichTextPlugin as gt } from "@lexical/react/LexicalRichTextPlugin";
13
13
  import { useLexicalEditable as mt } from "@lexical/react/useLexicalEditable";
14
14
  import { useLexicalNodeSelection as pt } from "@lexical/react/useLexicalNodeSelection";
15
15
  import { mergeRegister as ht } from "@lexical/utils";
16
- import { $getSelection as P, $isNodeSelection as p, $setSelection as T, SELECTION_CHANGE_COMMAND as bt, COMMAND_PRIORITY_LOW as f, CLICK_COMMAND as Ct, DRAGSTART_COMMAND as Nt, KEY_DELETE_COMMAND as xt, KEY_BACKSPACE_COMMAND as vt, KEY_ENTER_COMMAND as Et, KEY_ESCAPE_COMMAND as yt, RootNode as Rt, TextNode as kt, LineBreakNode as At, ParagraphNode as St, $getNodeByKey as k, $isParagraphNode as W } from "lexical";
16
+ import { $getSelection as P, $isNodeSelection as p, $setSelection as O, SELECTION_CHANGE_COMMAND as bt, COMMAND_PRIORITY_LOW as f, CLICK_COMMAND as Ct, DRAGSTART_COMMAND as Nt, KEY_DELETE_COMMAND as xt, KEY_BACKSPACE_COMMAND as vt, KEY_ENTER_COMMAND as Et, KEY_ESCAPE_COMMAND as yt, RootNode as Rt, TextNode as kt, LineBreakNode as At, ParagraphNode as St, $getNodeByKey as k, $isParagraphNode as T } from "lexical";
17
17
  import { useRef as L, useState as w, useCallback as x, useEffect as Dt } from "react";
18
- import { aX as v, aq as Pt, ar as Lt, as as Mt, at as _t, au as $t, aQ as zt, aw as It, aT as Ot, aU as Tt } from "./index-jEC_qTLD.js";
18
+ import { aW as v, ap as Pt, aq as Lt, ar as Mt, as as _t, at as $t, aP as zt, av as It, aS as Wt, aT as Ot } from "./index-Bex3G_eE.js";
19
19
  function ie({
20
20
  src: j,
21
21
  nodeKey: g,
@@ -29,7 +29,7 @@ function ie({
29
29
  controls: V = !0,
30
30
  position: n = "none"
31
31
  }) {
32
- const l = L(null), S = L(null), [a, d, C] = pt(g), [s, M] = w(!1), [o] = at(), [y, X] = w(null), _ = L(null), H = mt(), D = x(
32
+ const l = L(null), S = L(null), [a, d, C] = pt(g), [s, M] = w(!1), [o] = at(), [y, H] = w(null), _ = L(null), K = mt(), D = x(
33
33
  (t) => {
34
34
  const r = P();
35
35
  return a && p(r) && (t.preventDefault(), o.update(() => {
@@ -44,7 +44,7 @@ function ie({
44
44
  const r = P(), e = S.current;
45
45
  if (a && p(r) && r.getNodes().length === 1) {
46
46
  if (E)
47
- return T(null), t.preventDefault(), b.focus(), !0;
47
+ return O(null), t.preventDefault(), b.focus(), !0;
48
48
  if (e !== null && e !== document.activeElement)
49
49
  return t.preventDefault(), e.focus(), !0;
50
50
  }
@@ -52,7 +52,7 @@ function ie({
52
52
  },
53
53
  [b, a, E]
54
54
  ), z = x(
55
- (t) => _.current === b || S.current === t.target ? (T(null), o.update(() => {
55
+ (t) => _.current === b || S.current === t.target ? (O(null), o.update(() => {
56
56
  d(!0);
57
57
  const r = o.getRootElement();
58
58
  r !== null && r.focus();
@@ -80,7 +80,7 @@ function ie({
80
80
  let t = !0;
81
81
  const r = ht(
82
82
  o.registerUpdateListener(({ editorState: e }) => {
83
- t && X(e.read(() => P()));
83
+ t && H(e.read(() => P()));
84
84
  }),
85
85
  o.registerCommand(
86
86
  bt,
@@ -129,7 +129,7 @@ function ie({
129
129
  I,
130
130
  d
131
131
  ]);
132
- const K = () => {
132
+ const X = () => {
133
133
  o.update(() => {
134
134
  const t = k(g);
135
135
  v(t) && t.setShowCaption(!0);
@@ -141,14 +141,14 @@ function ie({
141
141
  const e = k(g);
142
142
  v(e) && e.setWidthAndHeight(t, r);
143
143
  });
144
- }, U = () => {
144
+ }, q = () => {
145
145
  M(!0);
146
- }, q = (t) => {
146
+ }, U = (t) => {
147
147
  t.preventDefault(), t.stopPropagation(), o.update(() => {
148
148
  const r = k(g);
149
149
  if (v(r)) {
150
150
  const e = r.getParent();
151
- r.remove(), e && W(e) && e.getChildrenSize() === 0 && e.setFormat("left");
151
+ r.remove(), e && T(e) && e.getChildrenSize() === 0 && e.setFormat("left");
152
152
  }
153
153
  });
154
154
  }, m = (t, r) => {
@@ -157,10 +157,10 @@ function ie({
157
157
  if (v(e)) {
158
158
  e.setPosition(r);
159
159
  const c = e.getParent();
160
- c && W(c) && (r === "left" ? c.setFormat("left") : r === "right" ? c.setFormat("right") : c.setFormat(""));
160
+ c && T(c) && (r === "left" ? c.setFormat("left") : r === "right" ? c.setFormat("right") : c.setFormat(""));
161
161
  }
162
162
  });
163
- }, Q = x(
163
+ }, J = x(
164
164
  (t) => {
165
165
  if (s || t.target.closest("button"))
166
166
  return;
@@ -173,12 +173,12 @@ function ie({
173
173
  !e && !c || (t.stopPropagation(), t.shiftKey ? d(!a) : (C(), d(!0)));
174
174
  },
175
175
  [s, a, d, C]
176
- ), J = a && p(y) && !s, O = (a || s) && H, Z = typeof h == "number" && typeof A == "number", tt = typeof h == "number" ? h : "auto", et = typeof A == "number" ? A : "auto";
176
+ ), Q = a && p(y) && !s, W = (a || s) && K, Z = typeof h == "number" && typeof A == "number", tt = typeof h == "number" ? h : "auto", et = typeof A == "number" ? A : "auto";
177
177
  return /* @__PURE__ */ N(rt, { children: [
178
178
  /* @__PURE__ */ N(
179
179
  "div",
180
180
  {
181
- draggable: J,
181
+ draggable: Q,
182
182
  style: n === "left" || n === "right" ? {
183
183
  position: "relative",
184
184
  display: "block",
@@ -207,7 +207,7 @@ function ie({
207
207
  position: "relative",
208
208
  display: "inline-block"
209
209
  },
210
- onClick: Q,
210
+ onClick: J,
211
211
  children: [
212
212
  /* @__PURE__ */ i(
213
213
  "video",
@@ -216,7 +216,7 @@ function ie({
216
216
  src: j,
217
217
  controls: V,
218
218
  preload: "metadata",
219
- className: O ? `focused ${p(y) ? "draggable" : ""}` : void 0,
219
+ className: W ? `focused ${p(y) ? "draggable" : ""}` : void 0,
220
220
  style: Z ? {
221
221
  width: tt,
222
222
  height: et,
@@ -304,7 +304,7 @@ function ie({
304
304
  {
305
305
  type: "button",
306
306
  onClick: (t) => {
307
- t.stopPropagation(), q(t);
307
+ t.stopPropagation(), U(t);
308
308
  },
309
309
  className: "cteditor-size-8 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-background/80 hover:cteditor-bg-destructive hover:cteditor-text-destructive-foreground cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-border",
310
310
  "aria-label": "Delete video",
@@ -313,16 +313,16 @@ function ie({
313
313
  }
314
314
  )
315
315
  ] }),
316
- Y && p(y) && O && /* @__PURE__ */ i(
316
+ Y && p(y) && W && /* @__PURE__ */ i(
317
317
  it,
318
318
  {
319
319
  showCaption: E,
320
- setShowCaption: K,
320
+ setShowCaption: X,
321
321
  editor: o,
322
322
  buttonRef: S,
323
323
  imageRef: l,
324
324
  maxWidth: B,
325
- onResizeStart: U,
325
+ onResizeStart: q,
326
326
  onResizeEnd: G,
327
327
  captionsEnabled: F
328
328
  }
@@ -375,7 +375,7 @@ function ie({
375
375
  }
376
376
  ),
377
377
  /* @__PURE__ */ i(st, {}),
378
- /* @__PURE__ */ i(Ot, { namespace: Tt.namespace })
378
+ /* @__PURE__ */ i(Wt, { namespace: Ot.namespace })
379
379
  ]
380
380
  }
381
381
  )
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as a, Fragment as Me } from "react/jsx-runtime";
2
- import { I as Wt } from "./ImageResizer-BVwxL4Eh.js";
3
- import { CodeNode as Tt } from "@lexical/code";
2
+ import { I as Tt } from "./ImageResizer-BVwxL4Eh.js";
3
+ import { CodeNode as Wt } from "@lexical/code";
4
4
  import { LinkNode as zt } from "@lexical/link";
5
5
  import { AutoFocusPlugin as Ot } from "@lexical/react/LexicalAutoFocusPlugin";
6
6
  import { useCollaborationContext as _t } from "@lexical/react/LexicalCollaborationContext";
@@ -10,27 +10,27 @@ import { LexicalErrorBoundary as Yt } from "@lexical/react/LexicalErrorBoundary"
10
10
  import { HistoryPlugin as jt } from "@lexical/react/LexicalHistoryPlugin";
11
11
  import { LexicalNestedComposer as Bt } from "@lexical/react/LexicalNestedComposer";
12
12
  import { OnChangePlugin as Xt } from "@lexical/react/LexicalOnChangePlugin";
13
- import { RichTextPlugin as Ut } from "@lexical/react/LexicalRichTextPlugin";
14
- import { useLexicalEditable as Kt } from "@lexical/react/useLexicalEditable";
13
+ import { RichTextPlugin as Kt } from "@lexical/react/LexicalRichTextPlugin";
14
+ import { useLexicalEditable as Ut } from "@lexical/react/useLexicalEditable";
15
15
  import { useLexicalNodeSelection as Gt } from "@lexical/react/useLexicalNodeSelection";
16
16
  import { mergeRegister as qt } from "@lexical/utils";
17
- import { $getRoot as Xe, $createParagraphNode as Vt, $createTextNode as Jt, $isNodeSelection as ge, $getSelection as ce, $isParagraphNode as Ue, $setSelection as we, $isRangeSelection as Qt, SELECTION_CHANGE_COMMAND as Zt, COMMAND_PRIORITY_LOW as de, CLICK_COMMAND as er, DRAGSTART_COMMAND as tr, KEY_DELETE_COMMAND as rr, KEY_BACKSPACE_COMMAND as ir, KEY_ENTER_COMMAND as or, KEY_ESCAPE_COMMAND as nr, $getNodeByKey as se, RootNode as ar, TextNode as cr, LineBreakNode as dr, ParagraphNode as sr, createCommand as lr } from "lexical";
17
+ import { $getRoot as Xe, $createParagraphNode as Vt, $createTextNode as Jt, $isNodeSelection as ge, $getSelection as ce, $isParagraphNode as Ke, $setSelection as we, $isRangeSelection as Qt, SELECTION_CHANGE_COMMAND as Zt, COMMAND_PRIORITY_LOW as de, CLICK_COMMAND as er, DRAGSTART_COMMAND as tr, KEY_DELETE_COMMAND as rr, KEY_BACKSPACE_COMMAND as ir, KEY_ENTER_COMMAND as or, KEY_ESCAPE_COMMAND as nr, $getNodeByKey as se, RootNode as ar, TextNode as cr, LineBreakNode as dr, ParagraphNode as sr, createCommand as lr } from "lexical";
18
18
  import { useState as v, useRef as X, useEffect as G, useMemo as it, useCallback as R, useLayoutEffect as ot, Suspense as ur } from "react";
19
- import { c as Ke, D as ct, a as dt, b as st, d as lt, e as ut, g as mr, B as Ie, aL as De, t as I, x as hr, aM as re, aN as gr, aO as fr, aP as pr, O as br, Q as Y, U as j, aq as xr, V as B, ar as wr, as as yr, at as Cr, au as Nr, aQ as vr, an as kr, aR as Rr, aS as Er, a0 as Ir, aT as Pr, aU as Sr, r as $r, aV as Mr, aW as Dr } from "./index-jEC_qTLD.js";
20
- import { S as Lr } from "./sparkles-N8q1Rg6P.js";
21
- const Ar = Ke("Crop", [
19
+ import { c as Ue, D as ct, a as dt, b as st, d as lt, e as ut, g as mr, B as Ie, aK as De, t as I, x as hr, aL as re, aM as gr, aN as fr, aO as pr, O as br, Q as Y, U as j, ap as xr, V as B, aq as wr, ar as yr, as as Cr, at as Nr, aP as vr, am as kr, aQ as Rr, aR as Er, a0 as Ir, aS as Pr, aT as Sr, r as $r, aU as Mr, aV as Dr } from "./index-Bex3G_eE.js";
20
+ import { S as Lr } from "./sparkles-C-XoMho5.js";
21
+ const Ar = Ue("Crop", [
22
22
  ["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
23
23
  ["path", { d: "M18 22V8a2 2 0 0 0-2-2H2", key: "7s9ehn" }]
24
24
  ]);
25
- const Wr = Ke("Link2", [
25
+ const Tr = Ue("Link2", [
26
26
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
27
27
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
28
28
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
29
29
  ]);
30
- const mt = Ke("RotateCcw", [
30
+ const mt = Ue("RotateCcw", [
31
31
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
32
32
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
33
- ]), Tr = ({
33
+ ]), Wr = ({
34
34
  open: r,
35
35
  onOpenChange: c,
36
36
  oldImageUrl: u,
@@ -102,7 +102,7 @@ function zr({
102
102
  }, [r]), G(() => {
103
103
  E.current && !P.current && (E.current.textContent = p);
104
104
  }, [p]);
105
- const U = r.isEditable();
105
+ const K = r.isEditable();
106
106
  return /* @__PURE__ */ e("div", { className: "signature-caption-container", children: /* @__PURE__ */ a("div", { className: "signature-caption-info", children: [
107
107
  /* @__PURE__ */ a("span", { className: "signature-user-name", children: [
108
108
  c && /* @__PURE__ */ e("span", { className: "signature-name-prefix", children: c }),
@@ -110,11 +110,11 @@ function zr({
110
110
  "span",
111
111
  {
112
112
  ref: E,
113
- className: `signature-name-value${U ? " is-editable" : ""}`,
114
- contentEditable: U,
113
+ className: `signature-name-value${K ? " is-editable" : ""}`,
114
+ contentEditable: K,
115
115
  suppressContentEditableWarning: !0,
116
116
  spellCheck: !1,
117
- title: U ? "Click to edit name" : void 0,
117
+ title: K ? "Click to edit name" : void 0,
118
118
  onFocus: () => {
119
119
  P.current = !0;
120
120
  },
@@ -188,7 +188,7 @@ function Fr({
188
188
  height: y,
189
189
  onCropApply: q
190
190
  }) {
191
- const [E, P] = v("freeform"), [U, T] = v(u), [x, w] = v(!1), f = X(null), D = X(null), [o, z] = v({ x: 0, y: 0, width: 0, height: 0 }), [k, A] = v({ x: 0, y: 0, width: 0, height: 0 }), le = X(null), pe = it(() => typeof N == "number" && typeof y == "number" && y > 0 ? N / y : o.width > 0 && o.height > 0 ? o.width / o.height : null, [o.height, o.width, y, N]), ye = it(() => {
191
+ const [E, P] = v("freeform"), [K, W] = v(u), [x, w] = v(!1), f = X(null), D = X(null), [o, z] = v({ x: 0, y: 0, width: 0, height: 0 }), [k, A] = v({ x: 0, y: 0, width: 0, height: 0 }), le = X(null), pe = it(() => typeof N == "number" && typeof y == "number" && y > 0 ? N / y : o.width > 0 && o.height > 0 ? o.width / o.height : null, [o.height, o.width, y, N]), ye = it(() => {
192
192
  switch (E) {
193
193
  case "original":
194
194
  return pe;
@@ -289,7 +289,7 @@ function Fr({
289
289
  s.width = Math.min(s.width, n.naturalWidth - s.x), s.height = Math.min(s.height, n.naturalHeight - s.y), c(!1), Promise.resolve(q(s));
290
290
  }, [o, k, q, c]);
291
291
  return G(() => {
292
- r && (z({ x: 0, y: 0, width: 0, height: 0 }), A({ x: 0, y: 0, width: 0, height: 0 }), w(!1), T(Ee(u)));
292
+ r && (z({ x: 0, y: 0, width: 0, height: 0 }), A({ x: 0, y: 0, width: 0, height: 0 }), w(!1), W(Ee(u)));
293
293
  }, [r, u]), G(() => {
294
294
  if (!r) return;
295
295
  const n = f.current;
@@ -357,7 +357,7 @@ function Fr({
357
357
  "img",
358
358
  {
359
359
  ref: D,
360
- src: U,
360
+ src: K,
361
361
  alt: p || "Crop preview",
362
362
  className: "cteditor-max-w-full cteditor-max-h-[460px] cteditor-w-auto cteditor-h-auto cteditor-select-none cteditor-block",
363
363
  draggable: !1,
@@ -551,7 +551,7 @@ function Yr({
551
551
  onLoad: P
552
552
  }) {
553
553
  Hr(p);
554
- const U = typeof N == "number", T = typeof y == "number", x = U && T, w = U ? N : "auto", f = T ? y : "auto";
554
+ const K = typeof N == "number", W = typeof y == "number", x = K && W, w = K ? N : "auto", f = W ? y : "auto";
555
555
  return /* @__PURE__ */ e(
556
556
  "img",
557
557
  {
@@ -564,13 +564,13 @@ function Yr({
564
564
  height: "auto",
565
565
  aspectRatio: `${w} / ${f}`,
566
566
  maxWidth: "100%"
567
- } : U ? {
567
+ } : K ? {
568
568
  // Only width known (e.g. bogus height stripped from source HTML):
569
569
  // fix the width and let the browser compute height naturally.
570
570
  width: w,
571
571
  height: "auto",
572
572
  maxWidth: "100%"
573
- } : T ? {
573
+ } : W ? {
574
574
  // Only height known: fix height, let browser compute width.
575
575
  width: "auto",
576
576
  height: f,
@@ -623,12 +623,12 @@ function mi({
623
623
  resizable: q,
624
624
  showCaption: E,
625
625
  caption: P,
626
- captionsEnabled: U,
627
- originalPrompt: T,
626
+ captionsEnabled: K,
627
+ originalPrompt: W,
628
628
  position: x = "none",
629
629
  linkUrl: w
630
630
  }) {
631
- const f = X(null), D = X(null), [o, z, k] = Gt(u), [A, le] = v(!1), pe = X(!1), { isCollabActive: ye } = _t(), [l] = Ft(), [O, Ce] = v(null), ue = X(null), [Z, Ne] = v(!1), Le = Kt(), [n, h] = v(!1), C = "cteditor-absolute cteditor-flex cteditor-items-center cteditor-gap-1 z-10 cteditor-text-foreground cteditor-bg-accent cteditor-border cteditor-border-foreground/10 cteditor-rounded-lg cteditor-shadow-md cteditor-p-1 cteditor-h-10 cteditor-w-max", s = "cteditor-h-7 cteditor-w-7 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md hover:cteditor-bg-foreground/10 cteditor-transition-all", b = "cteditor-w-px cteditor-h-5 cteditor-bg-foreground/10 cteditor-mx-0.5", L = "cteditor-bg-foreground/10 cteditor-text-foreground cteditor-font-medium", S = "cteditor-text-foreground/80 hover:cteditor-text-foreground", [ie, V] = v(""), [_, oe] = v(!1), [ee, F] = v(!1), [M, ne] = v(""), [be, H] = v(""), [J, ve] = v(!1), ae = X(null), [Ae, gt] = v(0), [ft, We] = v(!1), Ge = X(null), [pt, ke] = v(null), [Te, Re] = v(!1), [qe, Ve] = v(!1), me = X(null), Se = hr()?.apiKey, ze = Ae > 0 && Ae < 350;
631
+ const f = X(null), D = X(null), [o, z, k] = Gt(u), [A, le] = v(!1), pe = X(!1), { isCollabActive: ye } = _t(), [l] = Ft(), [O, Ce] = v(null), ue = X(null), [Z, Ne] = v(!1), Le = Ut(), [n, h] = v(!1), C = "cteditor-absolute cteditor-flex cteditor-items-center cteditor-gap-1 z-10 cteditor-text-foreground cteditor-bg-accent cteditor-border cteditor-border-foreground/10 cteditor-rounded-lg cteditor-shadow-md cteditor-p-1 cteditor-h-10 cteditor-w-max", s = "cteditor-h-7 cteditor-w-7 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md hover:cteditor-bg-foreground/10 cteditor-transition-all", b = "cteditor-w-px cteditor-h-5 cteditor-bg-foreground/10 cteditor-mx-0.5", L = "cteditor-bg-foreground/10 cteditor-text-foreground cteditor-font-medium", S = "cteditor-text-foreground/80 hover:cteditor-text-foreground", [ie, V] = v(""), [_, oe] = v(!1), [ee, F] = v(!1), [M, ne] = v(""), [be, H] = v(""), [J, ve] = v(!1), ae = X(null), [Ae, gt] = v(0), [ft, Te] = v(!1), Ge = X(null), [pt, ke] = v(null), [We, Re] = v(!1), [qe, Ve] = v(!1), me = X(null), Se = hr()?.apiKey, ze = Ae > 0 && Ae < 350;
632
632
  ot(() => {
633
633
  if (!o || !ge(O) || Z) {
634
634
  ke(null);
@@ -639,13 +639,13 @@ function mi({
639
639
  ke(null);
640
640
  return;
641
641
  }
642
- const m = i.getBoundingClientRect(), g = d.getBoundingClientRect(), $ = t.getBoundingClientRect(), W = 8, K = $.width;
643
- if (K <= 0) {
642
+ const m = i.getBoundingClientRect(), g = d.getBoundingClientRect(), $ = t.getBoundingClientRect(), T = 8, U = $.width;
643
+ if (U <= 0) {
644
644
  ke(null);
645
645
  return;
646
646
  }
647
647
  if (ze) {
648
- const he = g.left + g.width / 2 - K / 2, Q = Math.max(m.left + W, Math.min(he, m.right - W - K));
648
+ const he = g.left + g.width / 2 - U / 2, Q = Math.max(m.left + T, Math.min(he, m.right - T - U));
649
649
  ke({
650
650
  left: Q - g.left,
651
651
  bottom: 0,
@@ -653,10 +653,10 @@ function mi({
653
653
  transform: "translateY(100%) translateY(4px)"
654
654
  });
655
655
  } else {
656
- const he = g.right - W - K, Q = Math.max(m.left + W, Math.min(he, m.right - W - K));
656
+ const he = g.right - T - U, Q = Math.max(m.left + T, Math.min(he, m.right - T - U));
657
657
  ke({
658
658
  left: Q - g.left,
659
- top: W,
659
+ top: T,
660
660
  right: "auto"
661
661
  });
662
662
  }
@@ -684,7 +684,7 @@ function mi({
684
684
  i.getNodes().forEach((m) => {
685
685
  if (re(m)) {
686
686
  const g = m.getParent();
687
- m.remove(), g && Ue(g) && g.getChildrenSize() === 0 && g.setFormat("left");
687
+ m.remove(), g && Ke(g) && g.getChildrenSize() === 0 && g.setFormat("left");
688
688
  }
689
689
  });
690
690
  })), !1;
@@ -847,7 +847,7 @@ function mi({
847
847
  const i = se(u);
848
848
  if (re(i)) {
849
849
  const d = i.getParent();
850
- i.remove(), d && Ue(d) && d.getChildrenSize() === 0 && d.setFormat("left");
850
+ i.remove(), d && Ke(d) && d.getChildrenSize() === 0 && d.setFormat("left");
851
851
  }
852
852
  });
853
853
  }, xe = (t, i) => {
@@ -856,13 +856,13 @@ function mi({
856
856
  if (re(d)) {
857
857
  d.setPosition(i);
858
858
  const m = d.getParent();
859
- m && Ue(m) && (i === "left" ? m.setFormat("left") : i === "right" ? m.setFormat("right") : m.setFormat(""));
859
+ m && Ke(m) && (i === "left" ? m.setFormat("left") : i === "right" ? m.setFormat("right") : m.setFormat(""));
860
860
  }
861
861
  });
862
862
  }, Nt = (t) => {
863
863
  t.preventDefault(), t.stopPropagation(), h(!n);
864
864
  }, vt = R((t) => {
865
- t.preventDefault(), t.stopPropagation(), We(!0);
865
+ t.preventDefault(), t.stopPropagation(), Te(!0);
866
866
  }, []), kt = R(
867
867
  (t) => {
868
868
  t.preventDefault(), t.stopPropagation();
@@ -874,8 +874,8 @@ function mi({
874
874
  const $ = se(u);
875
875
  if (!re($)) return;
876
876
  $.setSrc(i), $.setWidthAndHeight("inherit", "inherit");
877
- const W = ce();
878
- W && we(W.clone());
877
+ const T = ce();
878
+ T && we(T.clone());
879
879
  },
880
880
  { tag: "image-reset" }
881
881
  );
@@ -938,7 +938,7 @@ function mi({
938
938
  G(() => () => {
939
939
  ae.current && clearTimeout(ae.current);
940
940
  }, []), G(() => {
941
- o || We(!1);
941
+ o || Te(!1);
942
942
  }, [o]), G(() => {
943
943
  Ne(!1), Ve(!1);
944
944
  }, [r]);
@@ -971,12 +971,12 @@ function mi({
971
971
  ].some(($e) => je.includes($e));
972
972
  };
973
973
  let $ = "";
974
- if (T && T.trim()) {
975
- const Q = T.trim();
974
+ if (W && W.trim()) {
975
+ const Q = W.trim();
976
976
  g(Q) && c && c !== "Generated image" && c.trim() ? $ = c.trim() : $ = Q;
977
977
  } else c && c !== "Generated image" && c.trim() && ($ = c.trim());
978
978
  $ ? i = `${$} with ${m}` : i = m;
979
- const W = await fetch(`${$r}/agent/stream`, {
979
+ const T = await fetch(`${$r}/agent/stream`, {
980
980
  method: "POST",
981
981
  headers: { "Content-Type": "application/json" },
982
982
  body: JSON.stringify({
@@ -986,13 +986,13 @@ function mi({
986
986
  api_key: Se || ""
987
987
  })
988
988
  });
989
- if (!W.ok)
990
- throw new Error(`Image service error: ${W.status}`);
991
- const K = W.body?.getReader(), Ye = new TextDecoder();
992
- if (!K) throw new Error("Stream reader not available");
989
+ if (!T.ok)
990
+ throw new Error(`Image service error: ${T.status}`);
991
+ const U = T.body?.getReader(), Ye = new TextDecoder();
992
+ if (!U) throw new Error("Stream reader not available");
993
993
  let he = null;
994
994
  e: for (; ; ) {
995
- const { done: Q, value: je } = await K.read();
995
+ const { done: Q, value: je } = await U.read();
996
996
  if (Q) break;
997
997
  const rt = Ye.decode(je, { stream: !0 }).split(`
998
998
  `);
@@ -1003,13 +1003,13 @@ function mi({
1003
1003
  try {
1004
1004
  const te = JSON.parse(Be);
1005
1005
  if (te.type === "image_ready") {
1006
- he = te.url, K.cancel();
1006
+ he = te.url, U.cancel();
1007
1007
  break e;
1008
1008
  } else {
1009
1009
  if (te.type === "image_failed")
1010
- throw K.cancel(), new Error(te.error || "Image generation failed");
1010
+ throw U.cancel(), new Error(te.error || "Image generation failed");
1011
1011
  if (te.type === "error")
1012
- throw K.cancel(), new Error(te.message || "Image generation failed");
1012
+ throw U.cancel(), new Error(te.message || "Image generation failed");
1013
1013
  }
1014
1014
  } catch (te) {
1015
1015
  if (te instanceof SyntaxError) continue;
@@ -1131,7 +1131,7 @@ function mi({
1131
1131
  onError: Dt
1132
1132
  }
1133
1133
  ),
1134
- Te && !Z && /* @__PURE__ */ a("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: [
1134
+ We && !Z && /* @__PURE__ */ a("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: [
1135
1135
  /* @__PURE__ */ e(pr, { className: "cteditor-w-10 cteditor-h-10 cteditor-text-foreground cteditor-animate-spin cteditor-mb-2", "aria-hidden": !0 }),
1136
1136
  /* @__PURE__ */ e("span", { className: "cteditor-text-sm cteditor-font-medium cteditor-text-foreground", children: "Applying crop..." })
1137
1137
  ] }),
@@ -1141,7 +1141,7 @@ function mi({
1141
1141
  className: "cteditor-absolute cteditor-bottom-2 cteditor-left-2 cteditor-right-2 cteditor-bg-background cteditor-rounded-lg cteditor-shadow-lg cteditor-border cteditor-border-border cteditor-p-2 cteditor-flex cteditor-items-center cteditor-gap-2",
1142
1142
  style: { zIndex: 10 },
1143
1143
  children: [
1144
- /* @__PURE__ */ e(Wr, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-muted-foreground cteditor-flex-shrink-0" }),
1144
+ /* @__PURE__ */ e(Tr, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-muted-foreground cteditor-flex-shrink-0" }),
1145
1145
  /* @__PURE__ */ e("span", { className: "cteditor-text-sm cteditor-text-foreground cteditor-truncate cteditor-flex-1", children: w }),
1146
1146
  /* @__PURE__ */ e(
1147
1147
  "button",
@@ -1155,7 +1155,7 @@ function mi({
1155
1155
  ]
1156
1156
  }
1157
1157
  ),
1158
- o && ge(O) && !Z && !Te && /* @__PURE__ */ e(br, { delayDuration: 300, children: /* @__PURE__ */ a(
1158
+ o && ge(O) && !Z && !We && /* @__PURE__ */ e(br, { delayDuration: 300, children: /* @__PURE__ */ a(
1159
1159
  "div",
1160
1160
  {
1161
1161
  ref: Ge,
@@ -1290,7 +1290,7 @@ function mi({
1290
1290
  ] })
1291
1291
  ] })
1292
1292
  ] }),
1293
- T && /* @__PURE__ */ a(Me, { children: [
1293
+ W && /* @__PURE__ */ a(Me, { children: [
1294
1294
  /* @__PURE__ */ e("div", { className: b }),
1295
1295
  /* @__PURE__ */ a(Y, { children: [
1296
1296
  /* @__PURE__ */ e(j, { asChild: !0, children: /* @__PURE__ */ a(
@@ -1345,7 +1345,7 @@ function mi({
1345
1345
  ]
1346
1346
  }
1347
1347
  ) }),
1348
- n && o && !Z && T && /* @__PURE__ */ e(
1348
+ n && o && !Z && W && /* @__PURE__ */ e(
1349
1349
  "div",
1350
1350
  {
1351
1351
  className: "cteditor-absolute cteditor-bottom-2 cteditor-left-2 cteditor-right-2 cteditor-bg-background/85 cteditor-rounded-lg cteditor-shadow-xl cteditor-border cteditor-border-foreground/20 cteditor-p-3 cteditor-backdrop-blur-lg md:cteditor-min-w-80",
@@ -1408,8 +1408,8 @@ function mi({
1408
1408
  ] })
1409
1409
  }
1410
1410
  ),
1411
- q && ge(O) && tt && !Te && /* @__PURE__ */ e(
1412
- Wt,
1411
+ q && ge(O) && tt && !We && /* @__PURE__ */ e(
1412
+ Tt,
1413
1413
  {
1414
1414
  showCaption: E,
1415
1415
  setShowCaption: bt,
@@ -1419,7 +1419,7 @@ function mi({
1419
1419
  maxWidth: y,
1420
1420
  onResizeStart: wt,
1421
1421
  onResizeEnd: xt,
1422
- captionsEnabled: !Z && U
1422
+ captionsEnabled: !Z && K
1423
1423
  }
1424
1424
  )
1425
1425
  ]
@@ -1445,12 +1445,12 @@ function mi({
1445
1445
  dr,
1446
1446
  sr,
1447
1447
  zt,
1448
- Tt
1448
+ Wt
1449
1449
  ],
1450
1450
  children: [
1451
1451
  /* @__PURE__ */ e(Ot, {}),
1452
1452
  /* @__PURE__ */ e(
1453
- Ut,
1453
+ Kt,
1454
1454
  {
1455
1455
  contentEditable: /* @__PURE__ */ e(
1456
1456
  Ht,
@@ -1481,7 +1481,7 @@ function mi({
1481
1481
  Fr,
1482
1482
  {
1483
1483
  open: ft,
1484
- onOpenChange: We,
1484
+ onOpenChange: Te,
1485
1485
  src: r,
1486
1486
  altText: c,
1487
1487
  width: p,
@@ -1490,7 +1490,7 @@ function mi({
1490
1490
  }
1491
1491
  ),
1492
1492
  /* @__PURE__ */ e(
1493
- Tr,
1493
+ Wr,
1494
1494
  {
1495
1495
  open: ee,
1496
1496
  onOpenChange: F,
@@ -5,7 +5,7 @@ import { mergeRegister as ae, $wrapNodeInElement as J } from "@lexical/utils";
5
5
  import { $isTableCellNode as ce } from "@lexical/table";
6
6
  import { $getNodeByKey as T, $createNodeSelection as G, $setSelection as H, $getSelection as S, $isNodeSelection as te, SELECTION_CHANGE_COMMAND as de, COMMAND_PRIORITY_LOW as ne, KEY_ENTER_COMMAND as le, $createParagraphNode as W, $isRootOrShadowRoot as V, PASTE_COMMAND as ue, $isRangeSelection as U, COMMAND_PRIORITY_CRITICAL as me } from "lexical";
7
7
  import { useState as M, useEffect as E, useCallback as _, useRef as Q } from "react";
8
- import { am as k, an as fe, a3 as N, ao as pe, ap as ge, aq as be, ar as he, as as ye, at as xe, au as Ee, av as ve, aw as Ce, ax as Ne, ay as ke, az as Z } from "./index-jEC_qTLD.js";
8
+ import { al as k, am as fe, a3 as N, an as pe, ao as ge, ap as be, aq as he, ar as ye, as as xe, at as Ee, au as ve, av as Ce, aw as Ne, ax as ke, ay as Z } from "./index-Bex3G_eE.js";
9
9
  import { createPortal as Ae } from "react-dom";
10
10
  const K = "cteditor-flex cteditor-items-center cteditor-gap-0.5 cteditor-bg-background/80 cteditor-rounded-md cteditor-shadow-md cteditor-border cteditor-border-border cteditor-p-0.5", P = "cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-accent cteditor-transition-colors cteditor-text-foreground", w = "cteditor-bg-accent", Y = "cteditor-size-8 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-background/80 cteditor-shadow-md cteditor-border cteditor-border-border hover:cteditor-bg-accent cteditor-transition-colors cteditor-text-foreground";
11
11
  function Pe({
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
2
  import { useLexicalComposerContext as j } from "@lexical/react/LexicalComposerContext";
3
3
  import { $getNodeByKey as g } from "lexical";
4
4
  import { useState as B, useEffect as N } from "react";
5
- import { aG as k, aH as y, aw as E, aI as h, aJ as T, aK as W } from "./index-jEC_qTLD.js";
5
+ import { aF as k, aG as y, av as E, aH as h, aI as T, aJ as W } from "./index-Bex3G_eE.js";
6
6
  function $(e, t) {
7
7
  const d = e.split(".").pop()?.toLowerCase();
8
8
  return d === "pdf" || t.startsWith("data:application/pdf") ? "pdf" : d === "docx" || t.startsWith("data:application/vnd.openxmlformats") && e.toLowerCase().endsWith(".docx") ? "docx" : d === "xlsx" || d === "xls" || t.startsWith("data:application/vnd.openxmlformats-officedocument.spreadsheetml") || t.startsWith("data:application/vnd.ms-excel") ? "xlsx" : null;
@@ -16,15 +16,15 @@ function z(e, t) {
16
16
  return;
17
17
  }
18
18
  let l = !1;
19
- return c === "pdf" ? import("./generatePdfThumbnail-DQyYzjOS.js").then(({ generatePdfThumbnail: o }) => o(e)).then((o) => {
19
+ return c === "pdf" ? import("./generatePdfThumbnail-Cv2-ZCzh.js").then(({ generatePdfThumbnail: o }) => o(e)).then((o) => {
20
20
  l || n(o);
21
21
  }).catch(() => {
22
22
  l || n(null);
23
- }) : c === "docx" ? import("./generateDocxThumbnail-wh4lnFAw.js").then(({ generateDocxThumbnail: o }) => o(e)).then((o) => {
23
+ }) : c === "docx" ? import("./generateDocxThumbnail-DBMxjZ83.js").then(({ generateDocxThumbnail: o }) => o(e)).then((o) => {
24
24
  l || n(o);
25
25
  }).catch(() => {
26
26
  l || n(null);
27
- }) : c === "xlsx" && import("./generateXlsxThumbnail-DqvyM6q9.js").then(({ generateXlsxThumbnail: o }) => o(e)).then((o) => {
27
+ }) : c === "xlsx" && import("./generateXlsxThumbnail-UHmNc7Fa.js").then(({ generateXlsxThumbnail: o }) => o(e)).then((o) => {
28
28
  l || n(o);
29
29
  }).catch(() => {
30
30
  l || n(null);
@@ -36,10 +36,10 @@ function z(e, t) {
36
36
  const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : e < 1024 * 1024 * 1024 ? `${(e / (1024 * 1024)).toFixed(1)} MB` : `${(e / (1024 * 1024 * 1024)).toFixed(1)} GB` : "", D = (e) => {
37
37
  const t = e.split(".");
38
38
  return t.length > 1 ? t[t.length - 1].toLowerCase() : "";
39
- }, C = (e) => {
39
+ }, F = (e) => {
40
40
  const t = D(e);
41
41
  return t === "pdf" || t === "docx" || t === "xlsx" || t === "xls";
42
- }, F = (e) => {
42
+ }, C = (e) => {
43
43
  const t = D(e);
44
44
  return ["pdf", "doc", "docx", "txt", "odt"].includes(t) ? /* @__PURE__ */ r(h, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-blue-600" }) : ["xls", "xlsx", "csv"].includes(t) ? /* @__PURE__ */ r(h, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-green-600" }) : ["ppt", "pptx"].includes(t) ? /* @__PURE__ */ r(h, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-red-600" }) : ["zip", "rar", "7z", "tar", "gz"].includes(t) ? /* @__PURE__ */ r(T, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-orange-500" }) : /* @__PURE__ */ r(W, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-gray-500" });
45
45
  }, H = ({
@@ -49,7 +49,7 @@ const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFix
49
49
  displayType: n = "card",
50
50
  nodeKey: c
51
51
  }) => {
52
- const l = n === "inline" ? "inline" : "card", [o] = j(), u = z(C(t) ? e : void 0, t);
52
+ const l = n === "inline" ? "inline" : "card", [o] = j(), u = z(F(t) ? e : void 0, t);
53
53
  if (N(() => {
54
54
  u && o.update(() => {
55
55
  const a = g(c);
@@ -61,12 +61,12 @@ const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFix
61
61
  a.preventDefault(), a.stopPropagation();
62
62
  try {
63
63
  if (e.startsWith("data:")) {
64
- const i = e.split(","), f = i[0].match(/:(.*?);/), L = f ? f[1] : "application/octet-stream", w = atob(i[1]);
65
- let x = w.length;
66
- const b = new Uint8Array(x);
64
+ const i = e.split(","), f = i[0].match(/:(.*?);/), L = f ? f[1] : "application/octet-stream", b = atob(i[1]);
65
+ let x = b.length;
66
+ const w = new Uint8Array(x);
67
67
  for (; x--; )
68
- b[x] = w.charCodeAt(x);
69
- const I = new Blob([b], { type: L }), v = URL.createObjectURL(I), s = document.createElement("a");
68
+ w[x] = b.charCodeAt(x);
69
+ const I = new Blob([w], { type: L }), v = URL.createObjectURL(I), s = document.createElement("a");
70
70
  s.href = v, s.download = t, s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s), setTimeout(() => URL.revokeObjectURL(v), 100);
71
71
  } else {
72
72
  const i = document.createElement("a");
@@ -80,7 +80,7 @@ const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFix
80
80
  const i = g(c);
81
81
  k(i) && i.remove();
82
82
  });
83
- }, U = C(t) && u;
83
+ }, U = F(t) && u;
84
84
  return l === "inline" ? /* @__PURE__ */ p(
85
85
  "div",
86
86
  {
@@ -89,7 +89,7 @@ const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFix
89
89
  tabIndex: 0,
90
90
  "data-lexical-node-key": c,
91
91
  children: [
92
- /* @__PURE__ */ r("span", { className: "cteditor-flex-shrink-0 *:cteditor-size-5", children: F(t) }),
92
+ /* @__PURE__ */ r("span", { className: "cteditor-flex-shrink-0 *:cteditor-size-5", children: C(t) }),
93
93
  /* @__PURE__ */ r("span", { className: "cteditor-flex-1 cteditor-min-w-0 cteditor-text-sm cteditor-font-medium cteditor-text-black cteditor-truncate", children: t }),
94
94
  /* @__PURE__ */ r(
95
95
  "button",
@@ -119,7 +119,7 @@ const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFix
119
119
  alt: "",
120
120
  className: "cteditor-w-full cteditor-h-full cteditor-object-cover"
121
121
  }
122
- ) : /* @__PURE__ */ r("div", { className: "*:cteditor-size-8", children: F(t) }) }),
122
+ ) : /* @__PURE__ */ r("div", { className: "*:cteditor-size-8", children: C(t) }) }),
123
123
  /* @__PURE__ */ p("div", { className: "cteditor-flex cteditor-items-center cteditor-gap-2 cteditor-w-full", children: [
124
124
  /* @__PURE__ */ p("div", { className: "cteditor-flex-1 cteditor-min-w-0", children: [
125
125
  /* @__PURE__ */ r("div", { className: "cteditor-font-medium cteditor-text-xs cteditor-text-black cteditor-truncate", children: t }),