eddyter 1.4.15 → 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.
Files changed (40) hide show
  1. package/dist/AIChatPlugin-2pIKhzIw.js +871 -0
  2. package/dist/{CommentBubblePlugin-VCZgBJUi.js → CommentBubblePlugin-J3r4kNGK.js} +1 -1
  3. package/dist/CommentPlugin-BbuE8_Aj.js +154 -0
  4. package/dist/LazyCodeMirror-DdCIk-83.js +21374 -0
  5. package/dist/{LazySignatureCanvas-RMigH9yY.js → LazySignatureCanvas-D1t8oQDK.js} +1 -1
  6. package/dist/NotePanelPlugin-C16G36Jd.js +31 -0
  7. package/dist/TextEnhancePlugin-BShY1r5J.js +198 -0
  8. package/dist/assets/style.css +1 -1
  9. package/dist/components/AiPlugin/commands.d.ts +4 -0
  10. package/dist/components/AiPlugin/index.d.ts +0 -4
  11. package/dist/components/NotePanelView/NotePanelView.d.ts +2 -1
  12. package/dist/{generateDocxThumbnail-fv5LNJIq.js → generateDocxThumbnail-Ve0zlObJ.js} +1 -1
  13. package/dist/{generatePdfThumbnail-C0rDYo5e.js → generatePdfThumbnail-EuSjdwzm.js} +1 -1
  14. package/dist/{generateXlsxThumbnail-C_vobxPD.js → generateXlsxThumbnail-C10kl6qh.js} +1 -1
  15. package/dist/{html2pdf.bundle.min-CFWvTTWI.js → html2pdf.bundle.min-BQaO0VTp.js} +1 -1
  16. package/dist/{index-MXcGtHZr.js → index-B8zPtmsK.js} +20 -20
  17. package/dist/{index-DKRhyxUF.js → index-BSgLtgyt.js} +26 -26
  18. package/dist/{index-o_C9Vw0n.js → index-ClsuXAKJ.js} +1 -1
  19. package/dist/index-CoLO4gm_.js +719 -0
  20. package/dist/{index-D5W6pnOr.js → index-CxOOJD40.js} +16224 -19078
  21. package/dist/index-D25uusM-.js +1430 -0
  22. package/dist/{index-Dhc1wcFH.js → index-gPq4n7_a.js} +34 -33
  23. package/dist/index.js +3 -3
  24. package/dist/marked.esm-Tjr8Gfse.js +1114 -0
  25. package/dist/nodes/NotePanelNode.d.ts +7 -2
  26. package/dist/plugins/AIChatPlugin.commands.d.ts +7 -0
  27. package/dist/plugins/AIChatPlugin.d.ts +0 -7
  28. package/dist/plugins/CommentPlugin.commands.d.ts +5 -0
  29. package/dist/plugins/CommentPlugin.d.ts +0 -5
  30. package/dist/plugins/NotePanelPlugin.commands.d.ts +6 -0
  31. package/dist/plugins/NotePanelPlugin.d.ts +0 -6
  32. package/dist/plugins/TextEnhancePlugin.commands.d.ts +1 -0
  33. package/dist/plugins/TextEnhancePlugin.d.ts +0 -1
  34. package/dist/square-DrMKkLmP.js +7 -0
  35. package/dist/useVoiceToText-DCddJzYF.js +153 -0
  36. package/dist/utils/notePanelExport.d.ts +11 -0
  37. package/dist/utils/notePanelPaste.d.ts +7 -0
  38. package/package.json +5 -2
  39. package/dist/LazyCodeMirror-C1bW4mVF.js +0 -44822
  40. package/dist/index-Ct2Ouofi.js +0 -1613
@@ -0,0 +1,4 @@
1
+ export declare const AI_REPHRASE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<unknown>;
2
+ export declare const AI_IMAGE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<string | undefined>;
3
+ export declare const AI_TRANSLATE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<string | undefined>;
4
+ export declare const AI_ADJUST_TONE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<string | undefined>;
@@ -1,6 +1,2 @@
1
- export declare const AI_REPHRASE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<unknown>;
2
- export declare const AI_IMAGE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<string | undefined>;
3
- export declare const AI_TRANSLATE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<string | undefined>;
4
- export declare const AI_ADJUST_TONE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<string | undefined>;
5
1
  declare const AIRephrasePlugin: () => import("react/jsx-runtime").JSX.Element;
6
2
  export default AIRephrasePlugin;
@@ -3,7 +3,8 @@ import { NotePanelType } from '../../nodes/NotePanelNode';
3
3
  interface NotePanelViewProps {
4
4
  type: NotePanelType;
5
5
  title: string;
6
- content: any;
6
+ bodyHtml: string;
7
+ content: unknown;
7
8
  nodeKey: string;
8
9
  }
9
10
  declare const NotePanelView: React.FC<NotePanelViewProps>;
@@ -1,4 +1,4 @@
1
- import { m as Tt, i as Se, V as Ce, z as xe } from "./index-D5W6pnOr.js";
1
+ import { au as Tt, ao as Se, aI as Ce, ay as xe } from "./index-CxOOJD40.js";
2
2
  import { h as Ee } from "./html2canvas.esm-BD_Vwvv8.js";
3
3
  function Ft(c) {
4
4
  throw new Error('Could not dynamically require "' + c + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
@@ -1,4 +1,4 @@
1
- import { V as u, z as b } from "./index-D5W6pnOr.js";
1
+ import { aI as u, ay as b } from "./index-CxOOJD40.js";
2
2
  const m = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174";
3
3
  let w = null;
4
4
  async function C() {
@@ -1,5 +1,5 @@
1
1
  import { h as Ci } from "./html2canvas.esm-BD_Vwvv8.js";
2
- import { V as yi, z as Di } from "./index-D5W6pnOr.js";
2
+ import { aI as yi, ay as Di } from "./index-CxOOJD40.js";
3
3
  var In = 1252, Oi = [874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1e4], Zt = {
4
4
  /*::[*/
5
5
  0: 1252,
@@ -1,4 +1,4 @@
1
- import { m as Ka, i as $u } from "./index-D5W6pnOr.js";
1
+ import { au as Ka, ao as $u } from "./index-CxOOJD40.js";
2
2
  function tl(Qa, iu) {
3
3
  for (var jo = 0; jo < iu.length; jo++) {
4
4
  const qs = iu[jo];
@@ -1,30 +1,30 @@
1
1
  import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
- import { useLexicalComposerContext as T } from "@lexical/react/LexicalComposerContext";
2
+ import { useLexicalComposerContext as B } from "@lexical/react/LexicalComposerContext";
3
3
  import { $getNodeByKey as g } from "lexical";
4
- import { useState as B, useEffect as D } from "react";
5
- import { j as k, D as y, T as E, F as h, k as I, l as W } from "./index-D5W6pnOr.js";
4
+ import { useState as E, useEffect as N } from "react";
5
+ import { ap as k, aq as y, ae as I, ar as h, as as T, at as W } from "./index-CxOOJD40.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;
9
9
  }
10
10
  function z(e, t) {
11
- const [d, n] = B(null);
12
- return D(() => {
11
+ const [d, n] = E(null);
12
+ return N(() => {
13
13
  const c = e && t ? $(t, e) : null;
14
14
  if (!e || !t || !c) {
15
15
  n(null);
16
16
  return;
17
17
  }
18
18
  let l = !1;
19
- return c === "pdf" ? import("./generatePdfThumbnail-C0rDYo5e.js").then(({ generatePdfThumbnail: o }) => o(e)).then((o) => {
19
+ return c === "pdf" ? import("./generatePdfThumbnail-EuSjdwzm.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-fv5LNJIq.js").then(({ generateDocxThumbnail: o }) => o(e)).then((o) => {
23
+ }) : c === "docx" ? import("./generateDocxThumbnail-Ve0zlObJ.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-C_vobxPD.js").then(({ generateXlsxThumbnail: o }) => o(e)).then((o) => {
27
+ }) : c === "xlsx" && import("./generateXlsxThumbnail-C10kl6qh.js").then(({ generateXlsxThumbnail: o }) => o(e)).then((o) => {
28
28
  l || n(o);
29
29
  }).catch(() => {
30
30
  l || n(null);
@@ -33,15 +33,15 @@ function z(e, t) {
33
33
  };
34
34
  }, [e, t]), d;
35
35
  }
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` : "", N = (e) => {
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
- }, F = (e) => {
40
- const t = N(e);
41
- return t === "pdf" || t === "docx" || t === "xlsx" || t === "xls";
42
39
  }, C = (e) => {
43
- const t = N(e);
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(I, { 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" });
40
+ const t = D(e);
41
+ return t === "pdf" || t === "docx" || t === "xlsx" || t === "xls";
42
+ }, F = (e) => {
43
+ const t = D(e);
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 = ({
46
46
  src: e,
47
47
  fileName: t,
@@ -49,8 +49,8 @@ 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] = T(), u = z(F(t) ? e : void 0, t);
53
- if (D(() => {
52
+ const l = n === "inline" ? "inline" : "card", [o] = B(), u = z(C(t) ? e : void 0, t);
53
+ if (N(() => {
54
54
  u && o.update(() => {
55
55
  const a = g(c);
56
56
  k(a) && a.setPreviewDataUrl(u);
@@ -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 = F(t) && u;
83
+ }, U = C(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: C(t) }),
92
+ /* @__PURE__ */ r("span", { className: "cteditor-flex-shrink-0 *:cteditor-size-5", children: F(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: C(t) }) }),
122
+ ) : /* @__PURE__ */ r("div", { className: "*:cteditor-size-8", children: F(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 }),
@@ -145,7 +145,7 @@ const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFix
145
145
  className: "cteditor-p-1 cteditor-rounded-md cteditor-text-black/80 hover:cteditor-bg-black/10 cteditor-transition-colors",
146
146
  "aria-label": "Delete file",
147
147
  title: "Delete file",
148
- children: /* @__PURE__ */ r(E, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-current" })
148
+ children: /* @__PURE__ */ r(I, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-current" })
149
149
  }
150
150
  )
151
151
  ] })
@@ -3,8 +3,8 @@ import { I as it } from "./ImageResizer-BVwxL4Eh.js";
3
3
  import { CodeNode as ot } from "@lexical/code";
4
4
  import { LinkNode as nt } from "@lexical/link";
5
5
  import { AutoFocusPlugin as ct } from "@lexical/react/LexicalAutoFocusPlugin";
6
- import { useLexicalComposerContext as lt } from "@lexical/react/LexicalComposerContext";
7
- import { ContentEditable as at } from "@lexical/react/LexicalContentEditable";
6
+ import { useLexicalComposerContext as at } from "@lexical/react/LexicalComposerContext";
7
+ import { ContentEditable as lt } from "@lexical/react/LexicalContentEditable";
8
8
  import { LexicalErrorBoundary as dt } from "@lexical/react/LexicalErrorBoundary";
9
9
  import { HistoryPlugin as st } from "@lexical/react/LexicalHistoryPlugin";
10
10
  import { LexicalNestedComposer as ut } from "@lexical/react/LexicalNestedComposer";
@@ -15,7 +15,7 @@ import { useLexicalNodeSelection as pt } from "@lexical/react/useLexicalNodeSele
15
15
  import { mergeRegister as ht } from "@lexical/utils";
16
16
  import { $getSelection as P, $isNodeSelection as p, $setSelection as W, 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 At, LineBreakNode as kt, ParagraphNode as St, $getNodeByKey as A, $isParagraphNode as T } from "lexical";
17
17
  import { useRef as L, useState as w, useCallback as x, useEffect as Dt } from "react";
18
- import { U as v, W as Pt, b as Lt, A as Mt, d as _t, e as $t, H as zt, T as It, N as Ot, O as Wt } from "./index-D5W6pnOr.js";
18
+ import { aH as v, a8 as Pt, a9 as Lt, aa as Mt, ab as _t, ac as $t, aA as zt, ae as It, aD as Ot, aE as Wt } from "./index-CxOOJD40.js";
19
19
  function ie({
20
20
  src: j,
21
21
  nodeKey: g,
@@ -29,20 +29,20 @@ function ie({
29
29
  controls: V = !0,
30
30
  position: n = "none"
31
31
  }) {
32
- const a = L(null), S = L(null), [l, d, C] = pt(g), [s, M] = w(!1), [o] = lt(), [y, H] = w(null), _ = L(null), K = 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
- return l && p(r) && (t.preventDefault(), o.update(() => {
35
+ return a && p(r) && (t.preventDefault(), o.update(() => {
36
36
  r.getNodes().forEach((c) => {
37
37
  v(c) && c.remove();
38
38
  });
39
39
  })), !1;
40
40
  },
41
- [o, l]
41
+ [o, a]
42
42
  ), $ = x(
43
43
  (t) => {
44
44
  const r = P(), e = S.current;
45
- if (l && p(r) && r.getNodes().length === 1) {
45
+ if (a && p(r) && r.getNodes().length === 1) {
46
46
  if (E)
47
47
  return W(null), t.preventDefault(), b.focus(), !0;
48
48
  if (e !== null && e !== document.activeElement)
@@ -50,7 +50,7 @@ function ie({
50
50
  }
51
51
  return !1;
52
52
  },
53
- [b, l, E]
53
+ [b, a, E]
54
54
  ), z = x(
55
55
  (t) => _.current === b || S.current === t.target ? (W(null), o.update(() => {
56
56
  d(!0);
@@ -64,17 +64,17 @@ function ie({
64
64
  if (s)
65
65
  return !0;
66
66
  const e = r.target;
67
- if (e.closest("button") && a.current && e.closest(".editor-image") === a.current.closest(".editor-image"))
67
+ if (e.closest("button") && l.current && e.closest(".editor-image") === l.current.closest(".editor-image"))
68
68
  return !0;
69
- const c = e === a.current;
69
+ const c = e === l.current;
70
70
  let u = !1;
71
- if (!c && a.current) {
72
- const R = a.current.getBoundingClientRect();
71
+ if (!c && l.current) {
72
+ const R = l.current.getBoundingClientRect();
73
73
  u = r.clientX >= R.left && r.clientX <= R.right && r.clientY >= R.top && r.clientY <= R.bottom;
74
74
  }
75
- return c || u ? (r.shiftKey ? d(!l) : (C(), d(!0)), !0) : !1;
75
+ return c || u ? (r.shiftKey ? d(!a) : (C(), d(!0)), !0) : !1;
76
76
  },
77
- [s, l, d, C]
77
+ [s, a, d, C]
78
78
  );
79
79
  Dt(() => {
80
80
  let t = !0;
@@ -94,7 +94,7 @@ function ie({
94
94
  ),
95
95
  o.registerCommand(
96
96
  Nt,
97
- (e) => e.target === a.current ? (e.preventDefault(), !0) : !1,
97
+ (e) => e.target === l.current ? (e.preventDefault(), !0) : !1,
98
98
  f
99
99
  ),
100
100
  o.registerCommand(
@@ -121,7 +121,7 @@ function ie({
121
121
  C,
122
122
  o,
123
123
  s,
124
- l,
124
+ a,
125
125
  g,
126
126
  D,
127
127
  $,
@@ -164,16 +164,16 @@ function ie({
164
164
  (t) => {
165
165
  if (s || t.target.closest("button"))
166
166
  return;
167
- const e = t.target === a.current;
167
+ const e = t.target === l.current;
168
168
  let c = !1;
169
- if (!e && a.current) {
170
- const u = a.current.getBoundingClientRect();
169
+ if (!e && l.current) {
170
+ const u = l.current.getBoundingClientRect();
171
171
  c = t.clientX >= u.left && t.clientX <= u.right && t.clientY >= u.top && t.clientY <= u.bottom;
172
172
  }
173
- !e && !c || (t.stopPropagation(), t.shiftKey ? d(!l) : (C(), d(!0)));
173
+ !e && !c || (t.stopPropagation(), t.shiftKey ? d(!a) : (C(), d(!0)));
174
174
  },
175
- [s, l, d, C]
176
- ), Q = l && p(y) && !s, O = (l || s) && K, Z = typeof h == "number" && typeof k == "number", tt = typeof h == "number" ? h : "auto", et = typeof k == "number" ? k : "auto";
175
+ [s, a, d, C]
176
+ ), Q = a && p(y) && !s, O = (a || s) && K, Z = typeof h == "number" && typeof k == "number", tt = typeof h == "number" ? h : "auto", et = typeof k == "number" ? k : "auto";
177
177
  return /* @__PURE__ */ N(rt, { children: [
178
178
  /* @__PURE__ */ N(
179
179
  "div",
@@ -212,7 +212,7 @@ function ie({
212
212
  /* @__PURE__ */ i(
213
213
  "video",
214
214
  {
215
- ref: a,
215
+ ref: l,
216
216
  src: j,
217
217
  controls: V,
218
218
  preload: "metadata",
@@ -228,7 +228,7 @@ function ie({
228
228
  draggable: "false"
229
229
  }
230
230
  ),
231
- l && p(y) && /* @__PURE__ */ N("div", { className: "cteditor-absolute cteditor-top-2 cteditor-right-2 cteditor-flex cteditor-gap-1 cteditor-z-10", children: [
231
+ a && p(y) && /* @__PURE__ */ N("div", { className: "cteditor-absolute cteditor-top-2 cteditor-right-2 cteditor-flex cteditor-gap-1 cteditor-z-10", children: [
232
232
  /* @__PURE__ */ N("div", { className: "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", children: [
233
233
  /* @__PURE__ */ i(
234
234
  "button",
@@ -320,7 +320,7 @@ function ie({
320
320
  setShowCaption: X,
321
321
  editor: o,
322
322
  buttonRef: S,
323
- imageRef: a,
323
+ imageRef: l,
324
324
  maxWidth: B,
325
325
  onResizeStart: U,
326
326
  onResizeEnd: G,
@@ -357,7 +357,7 @@ function ie({
357
357
  gt,
358
358
  {
359
359
  contentEditable: /* @__PURE__ */ i(
360
- at,
360
+ lt,
361
361
  {
362
362
  "aria-placeholder": "Enter a caption...",
363
363
  placeholder: () => /* @__PURE__ */ i("span", { className: "cteditor-text-xs", children: "Enter a caption..." }),
@@ -1,6 +1,6 @@
1
1
  import { jsx as i, jsxs as b } from "react/jsx-runtime";
2
2
  import { useLexicalComposerContext as k } from "@lexical/react/LexicalComposerContext";
3
- import { c as L, g as I, h as w } from "./index-D5W6pnOr.js";
3
+ import { c as L, ah as I, ai as w } from "./index-CxOOJD40.js";
4
4
  import { useBasicTypeaheadTriggerMatch as C, LexicalTypeaheadMenuPlugin as S, MenuOption as R } from "@lexical/react/LexicalTypeaheadMenuPlugin";
5
5
  import { useState as y, useMemo as v, useCallback as g, useEffect as O } from "react";
6
6
  import * as E from "react-dom";