@remarkablejames/editor 0.0.2 → 0.0.3

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 (180) hide show
  1. package/lib/{ActionMenuButton-Bmn3RME4.js → ActionMenuButton-D5HLfRzv.js} +9 -10
  2. package/lib/ActionMenuButton-DN6VHLkp.cjs +1 -0
  3. package/lib/Attachment.cjs +2 -2
  4. package/lib/Attachment.js +31 -33
  5. package/lib/Blockquote.cjs +2 -2
  6. package/lib/Blockquote.js +13 -12
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +11 -10
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +9 -8
  11. package/lib/Callout.cjs +1 -1
  12. package/lib/Callout.js +41 -45
  13. package/lib/Clear.cjs +1 -1
  14. package/lib/Clear.js +13 -14
  15. package/lib/Code.cjs +1 -1
  16. package/lib/Code.js +6 -5
  17. package/lib/CodeBlock.cjs +1 -1
  18. package/lib/CodeBlock.js +30 -31
  19. package/lib/CodeView.cjs +1 -1
  20. package/lib/CodeView.js +9 -8
  21. package/lib/Color.cjs +1 -1
  22. package/lib/Color.js +18 -19
  23. package/lib/Column.cjs +1 -1
  24. package/lib/Column.js +9 -8
  25. package/lib/{Drawer-DvGh9aXG.js → Drawer-B9l1SoRJ.js} +41 -47
  26. package/lib/Drawer-BN0lYcnJ.cjs +2 -0
  27. package/lib/Drawer.cjs +1 -1
  28. package/lib/Drawer.js +3 -3
  29. package/lib/Emoji.cjs +1 -1
  30. package/lib/Emoji.js +14 -15
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +24 -28
  33. package/lib/ExportPdf.cjs +3 -3
  34. package/lib/ExportPdf.js +14 -13
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +6 -6
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +7 -6
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +15 -14
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +26 -26
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +22 -23
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +11 -11
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +10 -9
  49. package/lib/Iframe-CXFk3GEq.cjs +1 -0
  50. package/lib/{Iframe-CnnvV6cK.js → Iframe-MjeJ2OOI.js} +11 -13
  51. package/lib/Iframe.cjs +1 -1
  52. package/lib/Iframe.js +2 -2
  53. package/lib/Image.cjs +1 -1
  54. package/lib/Image.js +4 -5
  55. package/lib/ImageGif.cjs +1 -1
  56. package/lib/ImageGif.js +79 -82
  57. package/lib/ImportWord.cjs +1 -1
  58. package/lib/ImportWord.js +25 -26
  59. package/lib/Indent-BPX9XRos.cjs +1 -0
  60. package/lib/{Indent-Bsj8gKvT.js → Indent-CgwDItIf.js} +31 -30
  61. package/lib/Indent.cjs +1 -1
  62. package/lib/Indent.js +2 -2
  63. package/lib/Italic.cjs +1 -1
  64. package/lib/Italic.js +12 -11
  65. package/lib/{Katex-CilGTz7u.js → Katex-CZ4g3vA9.js} +19 -22
  66. package/lib/Katex-DIgsR_dS.cjs +4 -0
  67. package/lib/Katex.cjs +1 -1
  68. package/lib/Katex.js +2 -2
  69. package/lib/LineHeight.cjs +1 -1
  70. package/lib/LineHeight.js +19 -20
  71. package/lib/Link.cjs +1 -1
  72. package/lib/Link.js +2 -2
  73. package/lib/LinkEditBlock-B2bU0Mcr.cjs +5 -0
  74. package/lib/{LinkEditBlock-BD_WvA3r.js → LinkEditBlock-CaDV3Vq5.js} +19 -24
  75. package/lib/Mention.js +3 -3
  76. package/lib/Mermaid-B9h7XKFo.cjs +2 -0
  77. package/lib/{Mermaid-BrjU75Bs.js → Mermaid-EhYj_ICn.js} +45 -48
  78. package/lib/Mermaid.cjs +1 -1
  79. package/lib/Mermaid.js +2 -2
  80. package/lib/MoreMark.cjs +1 -1
  81. package/lib/MoreMark.js +26 -28
  82. package/lib/OrderedList.cjs +1 -1
  83. package/lib/OrderedList.js +11 -10
  84. package/lib/SearchAndReplace.cjs +1 -1
  85. package/lib/SearchAndReplace.js +37 -42
  86. package/lib/SlashCommand.cjs +1 -1
  87. package/lib/SlashCommand.js +5 -5
  88. package/lib/SlashCommandNodeView-COlWSlnE.cjs +1 -0
  89. package/lib/{SlashCommandNodeView-COx5qZ2y.js → SlashCommandNodeView-CY3peX5x.js} +39 -41
  90. package/lib/Strike.cjs +1 -1
  91. package/lib/Strike.js +12 -11
  92. package/lib/{Table-BlM8yMhr.js → Table-Bw7rLue7.js} +46 -46
  93. package/lib/Table-DLrtX6T7.cjs +5 -0
  94. package/lib/Table.cjs +1 -1
  95. package/lib/Table.js +1 -1
  96. package/lib/TaskList.cjs +1 -1
  97. package/lib/TaskList.js +12 -11
  98. package/lib/TextAlign.cjs +1 -1
  99. package/lib/TextAlign.js +26 -27
  100. package/lib/TextDirection.cjs +1 -1
  101. package/lib/TextDirection.js +18 -19
  102. package/lib/TextUnderline.cjs +1 -1
  103. package/lib/TextUnderline.js +9 -8
  104. package/lib/Twitter-Ck6vGefg.cjs +1 -0
  105. package/lib/{Twitter-BP8sYXX7.js → Twitter-pM0y5Z-L.js} +18 -22
  106. package/lib/Twitter.cjs +1 -1
  107. package/lib/Twitter.js +2 -2
  108. package/lib/Video.cjs +1 -1
  109. package/lib/Video.js +4 -5
  110. package/lib/bubble.cjs +3 -3
  111. package/lib/bubble.js +77 -86
  112. package/lib/{clsx-m_C5j3RU.js → clsx-CDyrfCnw.js} +24 -24
  113. package/lib/{dropdown-menu-CkHN04Mx.cjs → dropdown-menu-DwR8tTs9.cjs} +1 -1
  114. package/lib/{dropdown-menu-C1hdPLCZ.js → dropdown-menu-nX-u8e2w.js} +1 -1
  115. package/lib/extensions/Image/Image.d.ts +11 -0
  116. package/lib/extensions/Image/components/ImageCropper.d.ts +1 -1
  117. package/lib/{index-B3Ijnbxs.js → index-C-tDsIKJ.js} +1 -1
  118. package/lib/{index-C1KQsOcg.js → index-C1WCZhyA.js} +1 -1
  119. package/lib/{index-C8FjP66D.js → index-CsSfYR30.js} +1 -1
  120. package/lib/index-Dib4cXXf.cjs +10 -0
  121. package/lib/{index-s3l5RdyW.js → index-DjDf4BK8.js} +1 -1
  122. package/lib/index-_WrFM-Fk.js +5054 -0
  123. package/lib/index.cjs +4 -4
  124. package/lib/index.js +147 -392
  125. package/lib/{popover-B05Fd8lC.cjs → popover-BY7j9SiD.cjs} +1 -1
  126. package/lib/{popover-CsSXh7w6.js → popover-CSvY4C-l.js} +1 -1
  127. package/lib/{renderNodeView-C_hPIdEs.js → renderNodeView-BJSrgyGj.js} +2 -2
  128. package/lib/{select-B3-5wTqn.js → select-BelNLNvT.js} +1 -1
  129. package/lib/{select-7ubC1NF0.cjs → select-Bu-5iIA9.cjs} +1 -1
  130. package/lib/{separator-CYCA8tSn.js → separator-Br5kcIJa.js} +12 -13
  131. package/lib/separator-Cp9Lg3HU.cjs +1 -0
  132. package/lib/style.css +1 -1
  133. package/lib/{textarea-1FhpmBkP.js → textarea-Ceev4t42.js} +1 -1
  134. package/lib/{textarea-Bjhcpp76.cjs → textarea-DfqvYaA6.cjs} +1 -1
  135. package/lib/theme/theme.d.ts +1 -1
  136. package/lib/{updatePosition-DvfTZHcH.js → updatePosition-e90ZrFWW.js} +2 -2
  137. package/package.json +1 -1
  138. package/lib/ActionMenuButton-C5P0Kzrb.cjs +0 -1
  139. package/lib/Drawer-gz9U5ArC.cjs +0 -2
  140. package/lib/Icon-CKM0tYbW.js +0 -15
  141. package/lib/Icon-CQyFgXeo.cjs +0 -1
  142. package/lib/Iframe-Ds6gG2YO.cjs +0 -1
  143. package/lib/ImageCropper-BKhXlnXN.cjs +0 -1
  144. package/lib/ImageCropper-DUzu_9-6.js +0 -896
  145. package/lib/Indent-D_7HOYYd.cjs +0 -1
  146. package/lib/Katex-lL3bHXJd.cjs +0 -4
  147. package/lib/LinkEditBlock-D3HSHmsU.cjs +0 -5
  148. package/lib/Mermaid-BfeLPzoS.cjs +0 -2
  149. package/lib/SlashCommandNodeView-DD-nlhM-.cjs +0 -1
  150. package/lib/Table-C21AlUrh.cjs +0 -5
  151. package/lib/Twitter-D46MnvPr.cjs +0 -1
  152. package/lib/Video-Bpd8W8l6.js +0 -231
  153. package/lib/Video-BwrHx6B1.cjs +0 -1
  154. package/lib/button-BmTP96NR.cjs +0 -1
  155. package/lib/button-CDIxPURh.js +0 -35
  156. package/lib/checkbox-7sfSdzy9.js +0 -29
  157. package/lib/checkbox-DyVlLWHv.cjs +0 -1
  158. package/lib/dialog-B-jOQ5i3.cjs +0 -1
  159. package/lib/dialog-QWWUWOGP.js +0 -95
  160. package/lib/events.constant-Bh2uzJud.js +0 -71
  161. package/lib/events.constant-ELn21EzG.cjs +0 -1
  162. package/lib/file-BLas99n7.js +0 -43
  163. package/lib/file-i7e4nQY2.cjs +0 -1
  164. package/lib/index-CAiZY1nx.js +0 -2741
  165. package/lib/index-DWSAk_9a.cjs +0 -1
  166. package/lib/input-qvpuOf-3.js +0 -21
  167. package/lib/input-s0JD5kf2.cjs +0 -1
  168. package/lib/isNumber-BTYSVlKo.cjs +0 -1
  169. package/lib/isNumber-WaBzl_0s.js +0 -15
  170. package/lib/label-CFax-gzo.cjs +0 -1
  171. package/lib/label-DC37f2RQ.js +0 -11
  172. package/lib/separator-ncbdw4oq.cjs +0 -1
  173. package/lib/tabs-BeHxylKH.js +0 -46
  174. package/lib/tabs-DBqNpGAq.cjs +0 -1
  175. package/lib/throttle-CRNq0z-O.js +0 -249
  176. package/lib/throttle-gTTvqDTW.cjs +0 -1
  177. package/lib/toggle-DoJTBdvy.js +0 -89
  178. package/lib/toggle-oFwBZC4x.cjs +0 -1
  179. package/lib/useButtonProps-BE10eHkG.js +0 -165
  180. package/lib/useButtonProps-CFu0GHzW.cjs +0 -1
package/lib/bubble.js CHANGED
@@ -1,55 +1,46 @@
1
1
  import { jsx as f, Fragment as I, jsxs as x } from "react/jsx-runtime";
2
- import { a3 as Gr, d as ws, E as Ce, a4 as Jr, a5 as qr, $ as bs, a6 as _e, a7 as Xr, O as ti, L as xs, v as Me, F as Re, T as ei, A as Zr, u as Qr, a8 as to, a9 as eo } from "./clsx-m_C5j3RU.js";
3
- import { f as ys, s as Ss, o as ks, a as vs, b as Cs, d as _s, h as Es, e as Ts, c as ni } from "./index-C8FjP66D.js";
2
+ import { a0 as Gr, d as ws, E as Ce, a1 as Jr, a2 as qr, a3 as bs, a4 as _e, a5 as Xr, Q as ti, O as xs, v as Me, F as Re, T as ei, A as Zr, u as Qr, a6 as to, a7 as eo } from "./clsx-CDyrfCnw.js";
3
+ import { f as ys, s as Ss, o as ks, a as vs, b as Cs, d as _s, h as Es, e as Ts, c as ni } from "./index-CsSfYR30.js";
4
4
  import { Plugin as Ee, PluginKey as ne, NodeSelection as no, TextSelection as io, SelectionRange as so, Selection as ro } from "@tiptap/pm/state";
5
- import { C as oo, T as lo } from "./Table-BlM8yMhr.js";
5
+ import { C as oo, T as lo } from "./Table-Bw7rLue7.js";
6
6
  import Ds, { useRef as Xt, useEffect as pt, useState as F, useCallback as M, useMemo as yt, Fragment as ii } from "react";
7
7
  import { createPortal as As } from "react-dom";
8
- import { A as y } from "./toggle-DoJTBdvy.js";
9
- import { D as ln, a as cn, b as an, c as hn, d as dn, e as co } from "./dialog-QWWUWOGP.js";
10
- import { S as ao, a as ho, b as uo, c as fo, d as po } from "./select-B3-5wTqn.js";
8
+ import { w as Z, h as W, D as ln, m as cn, A as y, n as an, o as hn, L as Tt, j as jt, p as dn, B as Bt, Y as co, q as ao, E as ho, v as uo, Z as fo, t as po, _ as go, I as tt } from "./index-_WrFM-Fk.js";
9
+ import { S as mo, a as wo, b as bo, c as xo, d as yo } from "./select-BelNLNvT.js";
11
10
  import { Callout as Ne } from "./Callout.js";
12
- import { u as ie, K as Un, s as go } from "./Katex-CilGTz7u.js";
11
+ import { u as ie, K as Un, s as So } from "./Katex-CZ4g3vA9.js";
13
12
  import { u as Y, n as Ye, V as Ei } from "./index-4Q5IhypJ.js";
14
- import { l as Z, f as W, i as mo } from "./useButtonProps-BE10eHkG.js";
15
13
  import { d as se } from "./delete-node-eQHsyyhR.js";
16
- import { L as Tt } from "./label-DC37f2RQ.js";
17
- import { I as jt } from "./input-qvpuOf-3.js";
18
- import { B as Bt } from "./button-CDIxPURh.js";
19
14
  import { MultipleColumnNode as Ti } from "./Column.js";
20
- import { C as wo, s as bo, i as xo, D as vn } from "./Drawer-DvGh9aXG.js";
21
- import { Editor as yo, makeDropdownToolbar as So } from "easydrawer";
22
- import { d as ko } from "./file-BLas99n7.js";
23
- import { S as Dt } from "./separator-CYCA8tSn.js";
24
- import { E as vo, e as Co } from "./events.constant-Bh2uzJud.js";
25
- import { P as Is, a as Os, b as Ms } from "./popover-CsSXh7w6.js";
15
+ import "./theme.js";
16
+ import { C as ko, s as vo, i as Co, D as vn } from "./Drawer-B9l1SoRJ.js";
17
+ import { Editor as _o, makeDropdownToolbar as Eo } from "easydrawer";
18
+ import { S as Dt } from "./separator-Br5kcIJa.js";
19
+ import { P as Is, a as Os, b as Ms } from "./popover-CSvY4C-l.js";
26
20
  import { Excalidraw as ce } from "./Excalidraw.js";
27
- import { I as ae, g as _o } from "./Iframe-CnnvV6cK.js";
28
- import Eo from "katex";
29
- import { Pencil as To, Trash2 as Do, Check as Di } from "lucide-react";
30
- import { T as Ai } from "./textarea-1FhpmBkP.js";
31
- import { L as Ii, a as Ao, R as Io } from "./LinkEditBlock-BD_WvA3r.js";
32
- import { I as Oo } from "./ImageCropper-DUzu_9-6.js";
33
- import { ImageGif as Mo } from "./ImageGif.js";
34
- import { V as Ro } from "./Video-Bpd8W8l6.js";
35
- import { M as Rs, E as No } from "./Mermaid-BrjU75Bs.js";
21
+ import { I as ae, g as To } from "./Iframe-MjeJ2OOI.js";
22
+ import Do from "katex";
23
+ import { Pencil as Ao, Trash2 as Io, Check as Di } from "lucide-react";
24
+ import { T as Ai } from "./textarea-Ceev4t42.js";
25
+ import { L as Ii, a as Oo, R as Mo } from "./LinkEditBlock-CaDV3Vq5.js";
26
+ import { ImageGif as Ro } from "./ImageGif.js";
27
+ import { M as Rs, E as No } from "./Mermaid-EhYj_ICn.js";
36
28
  import { RichTextBold as Uo } from "./Bold.js";
37
29
  import { RichTextCode as Lo } from "./Code.js";
38
- import "./index-C1KQsOcg.js";
30
+ import "./index-C1WCZhyA.js";
39
31
  import { RichTextColor as Po } from "./Color.js";
40
32
  import { RichTextHighlight as Bo } from "./Highlight.js";
41
33
  import { RichTextItalic as Vo } from "./Italic.js";
42
- import { r as Ho } from "./SlashCommandNodeView-COx5qZ2y.js";
34
+ import { r as Ho } from "./SlashCommandNodeView-CY3peX5x.js";
43
35
  import { RichTextStrike as $o } from "./Strike.js";
44
36
  import { RichTextAlign as Fo, TextAlign as zo } from "./TextAlign.js";
45
37
  import { RichTextUnderline as Wo } from "./TextUnderline.js";
46
- import { I as tt } from "./Icon-CKM0tYbW.js";
47
- import { T as Oi, F as Ko } from "./Twitter-BP8sYXX7.js";
38
+ import { T as Oi, F as Ko } from "./Twitter-pM0y5Z-L.js";
48
39
  import { DecorationSet as Mi, Decoration as jo } from "@tiptap/pm/view";
49
40
  import { NodeRange as Yo } from "@tiptap/pm/model";
50
41
  import { Clear as Go } from "./Clear.js";
51
- import { I as Jo, a as Ri, s as Ni } from "./Indent-Bsj8gKvT.js";
52
- import { D as qo, a as Xo, b as Zo, f as mt, d as Qo, g as Ui, h as Li, i as Pi, j as Bi } from "./dropdown-menu-C1hdPLCZ.js";
42
+ import { I as Jo, a as Ri, s as Ni } from "./Indent-CgwDItIf.js";
43
+ import { D as qo, a as Xo, b as Zo, f as mt, d as Qo, g as Ui, h as Li, i as Pi, j as Bi } from "./dropdown-menu-nX-u8e2w.js";
53
44
  function tl(e, t) {
54
45
  const n = Math.min(e.top, t.top), i = Math.max(e.bottom, t.bottom), s = Math.min(e.left, t.left), o = Math.max(e.right, t.right) - s, l = i - n, c = s, a = n;
55
46
  return new DOMRect(c, a, o, l);
@@ -467,7 +458,7 @@ const il = [
467
458
  { value: "warning", label: "Warning", icon: "TriangleAlert" },
468
459
  { value: "caution", label: "Caution", icon: "OctagonAlert" }
469
460
  ];
470
- function su() {
461
+ function Jd() {
471
462
  const e = Z(), t = W(), { t: n } = Y(), { type: i, title: s, body: r } = ie(t, Ne.name, {
472
463
  type: "note",
473
464
  title: "",
@@ -502,15 +493,15 @@ function su() {
502
493
  /* @__PURE__ */ x("div", { className: "richtext-space-y-4 richtext-py-4", children: [
503
494
  /* @__PURE__ */ x("div", { className: "richtext-space-y-2", children: [
504
495
  /* @__PURE__ */ f(Tt, { children: n("editor.callout.dialog.type") }),
505
- /* @__PURE__ */ x(ao, { onValueChange: a, value: c, children: [
506
- /* @__PURE__ */ f(ho, { children: /* @__PURE__ */ f(
507
- uo,
496
+ /* @__PURE__ */ x(mo, { onValueChange: a, value: c, children: [
497
+ /* @__PURE__ */ f(wo, { children: /* @__PURE__ */ f(
498
+ bo,
508
499
  {
509
500
  className: "richtext-text-accent",
510
501
  placeholder: n("editor.callout.dialog.type.placeholder")
511
502
  }
512
503
  ) }),
513
- /* @__PURE__ */ f(fo, { children: il.map((_) => /* @__PURE__ */ f(po, { value: _.value, children: n(`editor.callout.type.${_.value}`) }, _.value)) })
504
+ /* @__PURE__ */ f(xo, { children: il.map((_) => /* @__PURE__ */ f(yo, { value: _.value, children: n(`editor.callout.type.${_.value}`) }, _.value)) })
514
505
  ] })
515
506
  ] }),
516
507
  /* @__PURE__ */ x("div", { className: "richtext-space-y-2", children: [
@@ -549,7 +540,7 @@ function su() {
549
540
  }
550
541
  ) : /* @__PURE__ */ f(I, {});
551
542
  }
552
- function ru() {
543
+ function qd() {
553
544
  const e = Z(), t = W(), { t: n } = Y(), i = M(() => t.isActive(Ti.name), [t]), s = M(() => se(Ti.name, t), [t]), r = M(() => t.chain().focus().addColBefore().run(), [t]), o = M(() => t.chain().focus().addColAfter().run(), [t]), l = M(() => t.chain().focus().deleteCol().run(), [t]);
554
545
  return e ? /* @__PURE__ */ f(
555
546
  Q,
@@ -896,10 +887,10 @@ function wl({ editor: e, attrs: t, extension: n }) {
896
887
  const [i, s] = F(!1), r = Xt(null), o = Xt(null), { alt: l, align: c } = t, a = n == null ? void 0 : n.options.upload, h = () => {
897
888
  (async () => {
898
889
  const S = document.querySelector("#easydrawer");
899
- S && (r.current = new yo(S, {
890
+ S && (r.current = new _o(S, {
900
891
  wheelEventsEnabled: !1,
901
892
  disableZoom: !0
902
- }), o.current = So(r.current), o.current.addDefaultToolWidgets(), r.current.loadFromSVG(decodeURIComponent(l)));
893
+ }), o.current = Eo(r.current), o.current.addDefaultToolWidgets(), r.current.loadFromSVG(decodeURIComponent(l)));
903
894
  })();
904
895
  };
905
896
  pt(() => {
@@ -909,10 +900,10 @@ function wl({ editor: e, attrs: t, extension: n }) {
909
900
  }, [i]);
910
901
  const d = async () => {
911
902
  if (r.current) {
912
- const D = r.current.toSVG(), S = D.outerHTML, k = `drawer-${bo()}.svg`;
913
- let N = xo(D.outerHTML);
903
+ const D = r.current.toSVG(), S = D.outerHTML, k = `drawer-${vo()}.svg`;
904
+ let N = Co(D.outerHTML);
914
905
  if (a) {
915
- const H = ko(N, k);
906
+ const H = co(N, k);
916
907
  N = await a(H);
917
908
  }
918
909
  e == null || e.chain().focus().setDrawer(
@@ -973,7 +964,7 @@ function wl({ editor: e, attrs: t, extension: n }) {
973
964
  children: [
974
965
  /* @__PURE__ */ f("div", { className: "richtext-size-full", id: "easydrawer" }),
975
966
  /* @__PURE__ */ f(
976
- wo,
967
+ ko,
977
968
  {
978
969
  changeBorderColorShape: _,
979
970
  changeColorShape: w,
@@ -1021,8 +1012,8 @@ function bl({ item: e, disabled: t, editor: n }) {
1021
1012
  }
1022
1013
  ) }) : /* @__PURE__ */ f(I, {});
1023
1014
  }
1024
- function ou() {
1025
- const { lang: e, t } = Y(), n = Z(), i = W(), s = ie(i, vn.name), r = mo(vn.name), o = ({ editor: c }) => {
1015
+ function Xd() {
1016
+ const { lang: e, t } = Y(), n = Z(), i = W(), s = ie(i, vn.name), r = ao(vn.name), o = ({ editor: c }) => {
1026
1017
  const { selection: a } = c.view.state, { $from: h, to: d } = a;
1027
1018
  let u = !1;
1028
1019
  return c.view.state.doc.nodesBetween(h.pos, d, (p) => {
@@ -1112,7 +1103,7 @@ function xl(e) {
1112
1103
  s.disconnect();
1113
1104
  }), { width: Ut.get("width") };
1114
1105
  }
1115
- function lu() {
1106
+ function Zd() {
1116
1107
  const e = Z(), t = W(), { t: n } = Y(), { width: i } = xl(t), s = ie(t, ce.name, {
1117
1108
  defaultShowPicker: !1,
1118
1109
  createUser: "",
@@ -1124,8 +1115,8 @@ function lu() {
1124
1115
  },
1125
1116
  [t]
1126
1117
  ), h = M(() => {
1127
- const p = vo.EXCALIDRAW(t.id);
1128
- Co(p, s);
1118
+ const p = ho.EXCALIDRAW(t.id);
1119
+ uo(p, s);
1129
1120
  }, [t, s]), d = M(() => t.isActive(ce.name), [t]), u = M(() => se(ce.name, t), [t]);
1130
1121
  return pt(() => {
1131
1122
  r && (h(), t.chain().updateAttributes(ce.name, { defaultShowPicker: !1 }).focus().run());
@@ -1144,7 +1135,7 @@ function lu() {
1144
1135
  }
1145
1136
  ) : /* @__PURE__ */ f(I, {});
1146
1137
  }
1147
- function cu() {
1138
+ function Qd() {
1148
1139
  const e = Z(), t = W(), { t: n } = Y(), { width: i, height: s, src: r } = ie(t, ae.name, {
1149
1140
  width: 0,
1150
1141
  height: 0,
@@ -1164,7 +1155,7 @@ function cu() {
1164
1155
  (w) => {
1165
1156
  var _;
1166
1157
  (_ = w == null ? void 0 : w.preventDefault) == null || _.call(w);
1167
- const b = _o(c);
1158
+ const b = To(c);
1168
1159
  t.chain().updateAttributes(ae.name, {
1169
1160
  src: (b == null ? void 0 : b.src) || c
1170
1161
  }).setNodeSelection(t.state.selection.from).focus().run(), l(!1);
@@ -1190,7 +1181,7 @@ function cu() {
1190
1181
  /* @__PURE__ */ x(ln, { onOpenChange: l, open: o, children: [
1191
1182
  /* @__PURE__ */ f(cn, { asChild: !0, children: /* @__PURE__ */ f(y, { icon: "Pencil", tooltip: "Open Edit Link" }) }),
1192
1183
  /* @__PURE__ */ x(an, { children: [
1193
- /* @__PURE__ */ f(co, { children: /* @__PURE__ */ f(hn, { children: "Edit Link Iframe" }) }),
1184
+ /* @__PURE__ */ f(fo, { children: /* @__PURE__ */ f(hn, { children: "Edit Link Iframe" }) }),
1194
1185
  /* @__PURE__ */ f(
1195
1186
  jt,
1196
1187
  {
@@ -1228,8 +1219,8 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
1228
1219
  }).run(), a(""), d(""), n(!1);
1229
1220
  }, [s, c, h, n]), p = yt(() => {
1230
1221
  try {
1231
- return Eo.renderToString(c, {
1232
- macros: go(h || "")
1222
+ return Do.renderToString(c, {
1223
+ macros: So(h || "")
1233
1224
  });
1234
1225
  } catch {
1235
1226
  return c;
@@ -1289,7 +1280,7 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
1289
1280
  ] })
1290
1281
  ] });
1291
1282
  }
1292
- function au() {
1283
+ function tu() {
1293
1284
  const e = Z(), t = W(), [n, i] = F(!1), s = M(() => t.isActive(Un.name), [t]), r = M(() => se(Un.name, t), [t]);
1294
1285
  return e ? /* @__PURE__ */ f(
1295
1286
  Q,
@@ -1299,8 +1290,8 @@ function au() {
1299
1290
  pluginKey: "RichTextBubbleKatex",
1300
1291
  shouldShow: s,
1301
1292
  children: /* @__PURE__ */ x("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: [
1302
- /* @__PURE__ */ f(yl, { toggleVisible: i, visible: n, children: /* @__PURE__ */ f(y, { action: () => i(!n), tooltip: "Edit", children: /* @__PURE__ */ f(To, { size: 16 }) }) }),
1303
- /* @__PURE__ */ f(y, { action: r, tooltip: "Delete", children: /* @__PURE__ */ f(Do, { size: 16 }) })
1293
+ /* @__PURE__ */ f(yl, { toggleVisible: i, visible: n, children: /* @__PURE__ */ f(y, { action: () => i(!n), tooltip: "Edit", children: /* @__PURE__ */ f(Ao, { size: 16 }) }) }),
1294
+ /* @__PURE__ */ f(y, { action: r, tooltip: "Delete", children: /* @__PURE__ */ f(Io, { size: 16 }) })
1304
1295
  ] })
1305
1296
  }
1306
1297
  ) : /* @__PURE__ */ f(I, {});
@@ -1344,7 +1335,7 @@ function Sl(e) {
1344
1335
  )
1345
1336
  ] });
1346
1337
  }
1347
- function hu() {
1338
+ function eu() {
1348
1339
  const e = Z(), t = W(), [n, i] = F(!1), s = ie(t, Ii.name), r = s == null ? void 0 : s.href, o = M(({ editor: h }) => h.isActive(Ii.name), []), l = (h, d, u) => {
1349
1340
  const p = t.state.selection, { from: g } = p, m = (d == null ? void 0 : d.length) ?? 0, w = g + m;
1350
1341
  t.chain().extendMarkRange("link").insertContent({
@@ -1372,7 +1363,7 @@ function hu() {
1372
1363
  options: { placement: "bottom", offset: 8, flip: !0 },
1373
1364
  pluginKey: "RichTextBubbleLink",
1374
1365
  shouldShow: o,
1375
- children: /* @__PURE__ */ f(I, { children: n ? /* @__PURE__ */ f("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: /* @__PURE__ */ f(Ao, { editor: t, onClose: a, onSetLink: l }) }) : /* @__PURE__ */ f("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: /* @__PURE__ */ f(
1366
+ children: /* @__PURE__ */ f(I, { children: n ? /* @__PURE__ */ f("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: /* @__PURE__ */ f(Oo, { editor: t, onClose: a, onSetLink: l }) }) : /* @__PURE__ */ f("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-md !richtext-border !richtext-border-solid !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: /* @__PURE__ */ f(
1376
1367
  Sl,
1377
1368
  {
1378
1369
  editor: t,
@@ -1404,15 +1395,15 @@ function si({ item: e, disabled: t, editor: n }) {
1404
1395
  ) }) : /* @__PURE__ */ f(I, {});
1405
1396
  }
1406
1397
  function kl(e) {
1407
- return e.type.name === Oo.name;
1398
+ return e.type.name === po.name;
1408
1399
  }
1409
1400
  function vl(e) {
1410
- return e.type.name === Mo.name;
1401
+ return e.type.name === Ro.name;
1411
1402
  }
1412
1403
  function Cl(e) {
1413
- return e.type.name === Ro.name;
1404
+ return e.type.name === go.name;
1414
1405
  }
1415
- function du() {
1406
+ function nu() {
1416
1407
  const { lang: e, t } = Y(), n = Z(), i = W(), s = ({ editor: o }) => {
1417
1408
  const { selection: l } = o.view.state, { $from: c, to: a } = l;
1418
1409
  let h = !1;
@@ -1432,7 +1423,7 @@ function du() {
1432
1423
  }
1433
1424
  ) : /* @__PURE__ */ f(I, {});
1434
1425
  }
1435
- function uu() {
1426
+ function iu() {
1436
1427
  const { lang: e, t } = Y(), n = Z(), i = W(), s = ({ editor: o }) => {
1437
1428
  const { selection: l } = o.view.state, { $from: c, to: a } = l;
1438
1429
  let h = !1;
@@ -1452,7 +1443,7 @@ function uu() {
1452
1443
  }
1453
1444
  ) : /* @__PURE__ */ f(I, {});
1454
1445
  }
1455
- function fu() {
1446
+ function su() {
1456
1447
  const { t: e } = Y(), t = Z(), n = W(), i = ({ editor: r }) => {
1457
1448
  const { selection: o } = r.view.state, { $from: l, to: c } = o;
1458
1449
  let a = !1;
@@ -1501,7 +1492,7 @@ function El(e) {
1501
1492
  return r = { node: o, pos: l }, !1;
1502
1493
  }), r;
1503
1494
  }
1504
- function pu() {
1495
+ function ru() {
1505
1496
  const { lang: e, t } = Y(), n = W(), i = ({ editor: r }) => {
1506
1497
  if (!r.isEditable)
1507
1498
  return !1;
@@ -1545,7 +1536,7 @@ function pu() {
1545
1536
  }
1546
1537
  ) : /* @__PURE__ */ f(I, {});
1547
1538
  }
1548
- function gu({ hiddenActions: e = [] }) {
1539
+ function ou({ hiddenActions: e = [] }) {
1549
1540
  var m, w, b, _, V, E, P, D, S, k, N, H, nt, Rt, Nt, v, gt, Oe;
1550
1541
  const { t } = Y(), n = Z(), i = W(), s = ({ editor: Kt }) => Xr(Kt.view.state, lo.name), r = (Kt) => e.includes(Kt);
1551
1542
  function o() {
@@ -1786,7 +1777,7 @@ function Dl() {
1786
1777
  /* @__PURE__ */ f(Wo, {}),
1787
1778
  /* @__PURE__ */ f($o, {}),
1788
1779
  /* @__PURE__ */ f(Lo, {}),
1789
- /* @__PURE__ */ f(Io, {}),
1780
+ /* @__PURE__ */ f(Mo, {}),
1790
1781
  /* @__PURE__ */ f(
1791
1782
  Dt,
1792
1783
  {
@@ -1799,7 +1790,7 @@ function Dl() {
1799
1790
  /* @__PURE__ */ f(Fo, {})
1800
1791
  ] });
1801
1792
  }
1802
- function mu({ buttonBubble: e }) {
1793
+ function lu({ buttonBubble: e }) {
1803
1794
  const t = W(), n = Z(), i = ({ editor: s }) => {
1804
1795
  const { selection: r } = s.view.state, { $from: o, to: l } = r;
1805
1796
  return o.pos === l ? !1 : r instanceof io;
@@ -1815,7 +1806,7 @@ function mu({ buttonBubble: e }) {
1815
1806
  }
1816
1807
  ) : /* @__PURE__ */ f(I, {});
1817
1808
  }
1818
- function wu() {
1809
+ function cu() {
1819
1810
  const { t: e } = Y(), t = Z(), n = W(), [i, s] = F(!1), r = M(({ editor: c }) => c.isActive(Oi.name), []), o = (c) => {
1820
1811
  n.commands.updateTweet({ src: c }), s(!1);
1821
1812
  }, l = M(() => se(Oi.name, n), [n]);
@@ -9315,7 +9306,7 @@ var sd = (e) => {
9315
9306
  }
9316
9307
  );
9317
9308
  }, rd = sd;
9318
- function xu() {
9309
+ function hu() {
9319
9310
  var D, S, k, N, H, nt, Rt, Nt;
9320
9311
  const e = W(), t = Z(), { t: n } = Y(), [i, s] = F(null), [r, o] = F(-1), [l, c] = F(!1), a = (S = (D = e == null ? void 0 : e.extensionManager) == null ? void 0 : D.extensions) == null ? void 0 : S.some(
9321
9312
  (v) => (v == null ? void 0 : v.name) === zo.name
@@ -9524,19 +9515,19 @@ function xu() {
9524
9515
  );
9525
9516
  }
9526
9517
  export {
9527
- su as RichTextBubbleCallout,
9528
- ru as RichTextBubbleColumns,
9529
- ou as RichTextBubbleDrawer,
9530
- lu as RichTextBubbleExcalidraw,
9531
- cu as RichTextBubbleIframe,
9532
- du as RichTextBubbleImage,
9533
- uu as RichTextBubbleImageGif,
9534
- au as RichTextBubbleKatex,
9535
- hu as RichTextBubbleLink,
9536
- xu as RichTextBubbleMenuDragHandle,
9537
- pu as RichTextBubbleMermaid,
9538
- gu as RichTextBubbleTable,
9539
- mu as RichTextBubbleText,
9540
- wu as RichTextBubbleTwitter,
9541
- fu as RichTextBubbleVideo
9518
+ Jd as RichTextBubbleCallout,
9519
+ qd as RichTextBubbleColumns,
9520
+ Xd as RichTextBubbleDrawer,
9521
+ Zd as RichTextBubbleExcalidraw,
9522
+ Qd as RichTextBubbleIframe,
9523
+ nu as RichTextBubbleImage,
9524
+ iu as RichTextBubbleImageGif,
9525
+ tu as RichTextBubbleKatex,
9526
+ eu as RichTextBubbleLink,
9527
+ hu as RichTextBubbleMenuDragHandle,
9528
+ ru as RichTextBubbleMermaid,
9529
+ ou as RichTextBubbleTable,
9530
+ lu as RichTextBubbleText,
9531
+ cu as RichTextBubbleTwitter,
9532
+ su as RichTextBubbleVideo
9542
9533
  };
@@ -7322,7 +7322,7 @@ function ml() {
7322
7322
  return r;
7323
7323
  }
7324
7324
  export {
7325
- dl as $,
7325
+ el as $,
7326
7326
  _ as A,
7327
7327
  zs as B,
7328
7328
  Ws as C,
@@ -7333,36 +7333,36 @@ export {
7333
7333
  er as H,
7334
7334
  Ja as I,
7335
7335
  al as J,
7336
- qe as K,
7337
- qa as L,
7336
+ ur as K,
7337
+ qe as L,
7338
7338
  Qa as M,
7339
7339
  ll as N,
7340
- ja as O,
7340
+ qa as O,
7341
7341
  sr as P,
7342
- ze as Q,
7342
+ ja as Q,
7343
7343
  Ia as R,
7344
7344
  A as S,
7345
7345
  $ as T,
7346
- q as U,
7347
- Se as V,
7348
- tr as W,
7349
- yi as X,
7350
- mi as Y,
7351
- Ps as Z,
7352
- el as _,
7346
+ ze as U,
7347
+ q as V,
7348
+ Se as W,
7349
+ tr as X,
7350
+ yi as Y,
7351
+ mi as Z,
7352
+ Ps as _,
7353
7353
  Ga as a,
7354
- fl as a0,
7355
- ur as a1,
7356
- sl as a2,
7357
- Un as a3,
7358
- Va as a4,
7359
- Ls as a5,
7360
- yt as a6,
7361
- Ua as a7,
7362
- Ya as a8,
7363
- Vs as a9,
7364
- Ir as aa,
7365
- ul as ab,
7354
+ Un as a0,
7355
+ Va as a1,
7356
+ Ls as a2,
7357
+ dl as a3,
7358
+ yt as a4,
7359
+ Ua as a5,
7360
+ Ya as a6,
7361
+ Vs as a7,
7362
+ Ir as a8,
7363
+ ul as a9,
7364
+ sl as aa,
7365
+ fl as ab,
7366
7366
  Ka as b,
7367
7367
  Ha as c,
7368
7368
  Za as d,
@@ -1 +1 @@
1
- "use strict";const c=require("react/jsx-runtime"),w=require("@radix-ui/react-dropdown-menu"),d=require("lucide-react"),g=require("react"),a=require("./index-DWSAk_9a.cjs");function x(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return r.default=t,Object.freeze(r)}const e=x(w),n=x(g),y=e.Root,N=e.Trigger,D=e.Portal,M=e.Sub,h=n.forwardRef(({className:t,inset:r,children:i,...o},s)=>c.jsxs(e.SubTrigger,{ref:s,className:a.cn("richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent",r&&"richtext-pl-8",t),...o,children:[i,c.jsx(d.ChevronRight,{className:"richtext-ml-auto richtext-size-4"})]}));h.displayName=e.SubTrigger.displayName;const l=n.forwardRef(({className:t,...r},i)=>c.jsx(e.SubContent,{"data-richtext-portal":!0,ref:i,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...r}));l.displayName=e.SubContent.displayName;const u=n.forwardRef(({className:t,sideOffset:r=4,...i},o)=>c.jsx(e.Portal,{"data-richtext-portal":!0,children:c.jsx(e.Content,{"data-richtext-portal":!0,ref:o,sideOffset:r,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...i})}));u.displayName=e.Content.displayName;const p=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Item,{ref:o,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",r&&"richtext-pl-8",t),...i}));p.displayName=e.Item.displayName;const m=n.forwardRef(({className:t,children:r,checked:i,...o},s)=>c.jsxs(e.CheckboxItem,{checked:i,ref:s,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...o,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Check,{className:"richtext-size-4"})})}),r]}));m.displayName=e.CheckboxItem.displayName;const j=n.forwardRef(({className:t,children:r,...i},o)=>c.jsxs(e.RadioItem,{ref:o,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...i,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Circle,{className:"richtext-size-2 richtext-fill-current"})})}),r]}));j.displayName=e.RadioItem.displayName;const S=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Label,{ref:o,className:a.cn("richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",r&&"richtext-pl-8",t),...i}));S.displayName=e.Label.displayName;const f=n.forwardRef(({className:t,...r},i)=>c.jsx(e.Separator,{className:a.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",t),ref:i,...r}));f.displayName=e.Separator.displayName;function b({className:t,...r}){return c.jsx("span",{className:a.cn("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",t),...r})}b.displayName="DropdownMenuShortcut";exports.DropdownMenu=y;exports.DropdownMenuCheckboxItem=m;exports.DropdownMenuContent=u;exports.DropdownMenuItem=p;exports.DropdownMenuPortal=D;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=b;exports.DropdownMenuSub=M;exports.DropdownMenuSubContent=l;exports.DropdownMenuSubTrigger=h;exports.DropdownMenuTrigger=N;
1
+ "use strict";const c=require("react/jsx-runtime"),w=require("@radix-ui/react-dropdown-menu"),d=require("lucide-react"),g=require("react"),a=require("./index-Dib4cXXf.cjs");function x(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return r.default=t,Object.freeze(r)}const e=x(w),n=x(g),y=e.Root,N=e.Trigger,D=e.Portal,M=e.Sub,h=n.forwardRef(({className:t,inset:r,children:i,...o},s)=>c.jsxs(e.SubTrigger,{ref:s,className:a.cn("richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent",r&&"richtext-pl-8",t),...o,children:[i,c.jsx(d.ChevronRight,{className:"richtext-ml-auto richtext-size-4"})]}));h.displayName=e.SubTrigger.displayName;const l=n.forwardRef(({className:t,...r},i)=>c.jsx(e.SubContent,{"data-richtext-portal":!0,ref:i,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...r}));l.displayName=e.SubContent.displayName;const u=n.forwardRef(({className:t,sideOffset:r=4,...i},o)=>c.jsx(e.Portal,{"data-richtext-portal":!0,children:c.jsx(e.Content,{"data-richtext-portal":!0,ref:o,sideOffset:r,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...i})}));u.displayName=e.Content.displayName;const p=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Item,{ref:o,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",r&&"richtext-pl-8",t),...i}));p.displayName=e.Item.displayName;const m=n.forwardRef(({className:t,children:r,checked:i,...o},s)=>c.jsxs(e.CheckboxItem,{checked:i,ref:s,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...o,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Check,{className:"richtext-size-4"})})}),r]}));m.displayName=e.CheckboxItem.displayName;const j=n.forwardRef(({className:t,children:r,...i},o)=>c.jsxs(e.RadioItem,{ref:o,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...i,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Circle,{className:"richtext-size-2 richtext-fill-current"})})}),r]}));j.displayName=e.RadioItem.displayName;const S=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Label,{ref:o,className:a.cn("richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",r&&"richtext-pl-8",t),...i}));S.displayName=e.Label.displayName;const f=n.forwardRef(({className:t,...r},i)=>c.jsx(e.Separator,{className:a.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",t),ref:i,...r}));f.displayName=e.Separator.displayName;function b({className:t,...r}){return c.jsx("span",{className:a.cn("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",t),...r})}b.displayName="DropdownMenuShortcut";exports.DropdownMenu=y;exports.DropdownMenuCheckboxItem=m;exports.DropdownMenuContent=u;exports.DropdownMenuItem=p;exports.DropdownMenuPortal=D;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=b;exports.DropdownMenuSub=M;exports.DropdownMenuSubContent=l;exports.DropdownMenuSubTrigger=h;exports.DropdownMenuTrigger=N;
@@ -2,7 +2,7 @@ import { jsx as c, jsxs as x } from "react/jsx-runtime";
2
2
  import * as t from "@radix-ui/react-dropdown-menu";
3
3
  import { ChevronRight as d, Check as h, Circle as l } from "lucide-react";
4
4
  import * as s from "react";
5
- import { c as o } from "./index-CAiZY1nx.js";
5
+ import { c as o } from "./index-_WrFM-Fk.js";
6
6
  const R = t.Root, I = t.Trigger, S = t.Portal, C = t.Sub, m = s.forwardRef(({ className: e, inset: r, children: i, ...a }, n) => /* @__PURE__ */ x(
7
7
  t.SubTrigger,
8
8
  {
@@ -24,6 +24,8 @@ export interface SetImageAttrsOptions {
24
24
  flipX?: boolean;
25
25
  /** image FlipY */
26
26
  flipY?: boolean;
27
+ /** Whether the image is currently being uploaded (transient, not persisted). */
28
+ uploading?: boolean;
27
29
  }
28
30
  declare module "@tiptap/core" {
29
31
  interface Commands<ReturnType> {
@@ -32,6 +34,15 @@ declare module "@tiptap/core" {
32
34
  * Add an image
33
35
  */
34
36
  setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
37
+ /**
38
+ * Insert a placeholder image that shows a skeleton while uploading.
39
+ * Once the upload resolves, the placeholder is replaced with the real image.
40
+ */
41
+ insertImagePlaceholder: (options: {
42
+ file: File;
43
+ inline?: boolean;
44
+ alt?: string;
45
+ }) => ReturnType;
35
46
  /**
36
47
  * Update an image
37
48
  */
@@ -1 +1 @@
1
- export declare function ImageCropper({ editor, imageInline, onClose, disabled, alt }: any): import("react/jsx-runtime").JSX.Element;
1
+ export declare function ImageCropper({ editor, imageInline, onClose, disabled, alt, }: any): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { T as D, u as m, S as Z, v as z, x as ft, D as Be, F, y as ut, A as dt } from "./clsx-m_C5j3RU.js";
1
+ import { T as D, u as m, S as Z, v as z, x as ft, D as Be, F, y as ut, A as dt } from "./clsx-CDyrfCnw.js";
2
2
  var $ = {
3
3
  8: "Backspace",
4
4
  9: "Tab",
@@ -1,4 +1,4 @@
1
- import { M as y, m as p, E as l } from "./clsx-m_C5j3RU.js";
1
+ import { M as y, m as p, E as l } from "./clsx-CDyrfCnw.js";
2
2
  var d = 20, u = (t, e = 0) => {
3
3
  const r = [];
4
4
  return !t.children.length || e > d || Array.from(t.children).forEach((o) => {
@@ -1,6 +1,6 @@
1
1
  import { PluginKey as Kt, Plugin as Ut } from "@tiptap/pm/state";
2
2
  import { DecorationSet as Jt, Decoration as Gt } from "@tiptap/pm/view";
3
- import { J as Qt } from "./clsx-m_C5j3RU.js";
3
+ import { J as Qt } from "./clsx-CDyrfCnw.js";
4
4
  const Bt = ["top", "right", "bottom", "left"], Rt = ["start", "end"], At = /* @__PURE__ */ Bt.reduce((t, e) => t.concat(e, e + "-" + Rt[0], e + "-" + Rt[1]), []), j = Math.min, M = Math.max, rt = Math.round, H = (t) => ({
5
5
  x: t,
6
6
  y: t