@remarkablejames/editor 0.0.5 → 0.0.7

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 (194) hide show
  1. package/README.md +1 -1
  2. package/lib/ActionMenuButton-D9o3Kwmv.cjs +1 -0
  3. package/lib/{ActionMenuButton-DBZjUu-F.js → ActionMenuButton-nxV91Fqo.js} +10 -9
  4. package/lib/Attachment.cjs +19 -1
  5. package/lib/Attachment.js +270 -7
  6. package/lib/Blockquote.cjs +2 -2
  7. package/lib/Blockquote.js +12 -13
  8. package/lib/Bold.cjs +1 -1
  9. package/lib/Bold.js +10 -11
  10. package/lib/BulletList.cjs +1 -1
  11. package/lib/BulletList.js +8 -9
  12. package/lib/Callout.cjs +1 -1
  13. package/lib/Callout.js +45 -41
  14. package/lib/Clear.cjs +1 -1
  15. package/lib/Clear.js +14 -13
  16. package/lib/Code.cjs +1 -1
  17. package/lib/Code.js +5 -6
  18. package/lib/CodeBlock.cjs +1 -1
  19. package/lib/CodeBlock.js +31 -30
  20. package/lib/CodeView.cjs +1 -1
  21. package/lib/CodeView.js +8 -9
  22. package/lib/Color.cjs +1 -1
  23. package/lib/Color.js +19 -18
  24. package/lib/Column.cjs +1 -1
  25. package/lib/Column.js +8 -9
  26. package/lib/Drawer-Bh-y5bs8.cjs +2 -0
  27. package/lib/{Drawer-DTCwtJEs.js → Drawer-CF6Z_IA2.js} +24 -18
  28. package/lib/Drawer.cjs +1 -1
  29. package/lib/Drawer.js +3 -3
  30. package/lib/Emoji.cjs +1 -1
  31. package/lib/Emoji.js +15 -14
  32. package/lib/Excalidraw.cjs +1 -1
  33. package/lib/Excalidraw.js +33 -28
  34. package/lib/ExportPdf.cjs +3 -3
  35. package/lib/ExportPdf.js +13 -14
  36. package/lib/ExportWord.cjs +1 -1
  37. package/lib/ExportWord.js +6 -6
  38. package/lib/FontFamily.cjs +1 -1
  39. package/lib/FontFamily.js +6 -7
  40. package/lib/FontSize.cjs +1 -1
  41. package/lib/FontSize.js +14 -15
  42. package/lib/Heading.cjs +1 -1
  43. package/lib/Heading.js +26 -26
  44. package/lib/Highlight.cjs +1 -1
  45. package/lib/Highlight.js +23 -22
  46. package/lib/History.cjs +1 -1
  47. package/lib/History.js +11 -11
  48. package/lib/HorizontalRule.cjs +1 -1
  49. package/lib/HorizontalRule.js +9 -10
  50. package/lib/Icon-BvGyfX2j.js +15 -0
  51. package/lib/Icon-wjwoRc9F.cjs +1 -0
  52. package/lib/Iframe-BbfZKbPY.cjs +1 -0
  53. package/lib/{Iframe-D-UYBxiv.js → Iframe-Dfd3LI7b.js} +18 -15
  54. package/lib/Iframe.cjs +1 -1
  55. package/lib/Iframe.js +3 -3
  56. package/lib/Image.cjs +1 -1
  57. package/lib/Image.js +5 -4
  58. package/lib/ImageCropper-CY1ETEjC.cjs +10 -0
  59. package/lib/ImageCropper-DrSdjo9x.js +979 -0
  60. package/lib/ImageGif.cjs +1 -1
  61. package/lib/ImageGif.js +80 -77
  62. package/lib/ImportWord.cjs +1 -1
  63. package/lib/ImportWord.js +28 -26
  64. package/lib/{Indent-Bvt-Qwar.js → Indent-CDVF9DWN.js} +30 -31
  65. package/lib/Indent-Q1VuhSM2.cjs +1 -0
  66. package/lib/Indent.cjs +1 -1
  67. package/lib/Indent.js +2 -2
  68. package/lib/Italic.cjs +1 -1
  69. package/lib/Italic.js +11 -12
  70. package/lib/{Katex-CJDtvu-v.js → Katex-DqhWWAA-.js} +22 -19
  71. package/lib/Katex-K1QU2SB2.cjs +4 -0
  72. package/lib/Katex.cjs +1 -1
  73. package/lib/Katex.js +2 -2
  74. package/lib/LineHeight.cjs +1 -1
  75. package/lib/LineHeight.js +20 -19
  76. package/lib/Link.cjs +1 -1
  77. package/lib/Link.js +2 -2
  78. package/lib/LinkEditBlock-CBYGLs3J.cjs +5 -0
  79. package/lib/{LinkEditBlock-Cdqwj_NU.js → LinkEditBlock-xP0pGVhB.js} +24 -19
  80. package/lib/Mention.js +3 -3
  81. package/lib/{Mermaid-CnMYVX1P.js → Mermaid-BJ6ryVdY.js} +48 -45
  82. package/lib/Mermaid-D3_nLeOW.cjs +2 -0
  83. package/lib/Mermaid.cjs +1 -1
  84. package/lib/Mermaid.js +2 -2
  85. package/lib/MoreMark.cjs +1 -1
  86. package/lib/MoreMark.js +28 -26
  87. package/lib/OrderedList.cjs +1 -1
  88. package/lib/OrderedList.js +10 -11
  89. package/lib/PaywallSeparator.cjs +1 -0
  90. package/lib/PaywallSeparator.js +140 -0
  91. package/lib/SearchAndReplace.cjs +1 -1
  92. package/lib/SearchAndReplace.js +42 -37
  93. package/lib/SlashCommand.cjs +1 -1
  94. package/lib/SlashCommand.js +5 -5
  95. package/lib/SlashCommandNodeView-CUJrDQS7.cjs +1 -0
  96. package/lib/{SlashCommandNodeView-DcoLvt_6.js → SlashCommandNodeView-DS9FqMiY.js} +80 -62
  97. package/lib/Strike.cjs +1 -1
  98. package/lib/Strike.js +11 -12
  99. package/lib/Table-CV6pUoVf.cjs +5 -0
  100. package/lib/{Table-Cu12PvQ_.js → Table-CcG-JNtV.js} +46 -46
  101. package/lib/Table.cjs +1 -1
  102. package/lib/Table.js +1 -1
  103. package/lib/TaskList.cjs +1 -1
  104. package/lib/TaskList.js +11 -12
  105. package/lib/TextAlign.cjs +1 -1
  106. package/lib/TextAlign.js +27 -26
  107. package/lib/TextDirection.cjs +1 -1
  108. package/lib/TextDirection.js +19 -18
  109. package/lib/TextUnderline.cjs +1 -1
  110. package/lib/TextUnderline.js +8 -9
  111. package/lib/{Twitter-CrX4XY1j.js → Twitter-BIL3o833.js} +22 -18
  112. package/lib/Twitter-BfSTqPDh.cjs +1 -0
  113. package/lib/Twitter.cjs +1 -1
  114. package/lib/Twitter.js +2 -2
  115. package/lib/Video-DAKr90QL.js +231 -0
  116. package/lib/Video-HAinT0w6.cjs +1 -0
  117. package/lib/Video.cjs +1 -1
  118. package/lib/Video.js +5 -4
  119. package/lib/bubble.cjs +3 -3
  120. package/lib/bubble.js +86 -77
  121. package/lib/button-090-I3tp.js +35 -0
  122. package/lib/button-B4Sz2ZhW.cjs +1 -0
  123. package/lib/checkbox-BCPsu7yR.cjs +1 -0
  124. package/lib/checkbox-DiXWHAI0.js +29 -0
  125. package/lib/{clsx-BUPZHhq3.js → clsx-m_C5j3RU.js} +24 -24
  126. package/lib/components/RichTextProvider.d.ts +1 -1
  127. package/lib/dialog-C8J59d2J.cjs +1 -0
  128. package/lib/dialog-bDkDW-C_.js +95 -0
  129. package/lib/dom-dataset-BqoJhJXt.cjs +1 -0
  130. package/lib/dom-dataset-CIEeltF6.js +47 -0
  131. package/lib/{dropdown-menu-CVwXaR3Z.js → dropdown-menu-DWt_xj4h.js} +1 -1
  132. package/lib/{dropdown-menu-XIrQk3jr.cjs → dropdown-menu-tUP872Zv.cjs} +1 -1
  133. package/lib/events.constant-Bke62qxm.cjs +1 -0
  134. package/lib/events.constant-CSWD3-ho.js +72 -0
  135. package/lib/extensions/PaywallSeparator/PaywallSeparator.d.ts +35 -0
  136. package/lib/extensions/PaywallSeparator/components/PaywallIcon.d.ts +2 -0
  137. package/lib/extensions/PaywallSeparator/components/PaywallSeparatorView.d.ts +17 -0
  138. package/lib/extensions/PaywallSeparator/components/RichTextPaywallSeparator.d.ts +1 -0
  139. package/lib/extensions/PaywallSeparator/components/index.d.ts +2 -0
  140. package/lib/extensions/PaywallSeparator/index.d.ts +1 -0
  141. package/lib/file-i7e4nQY2.cjs +1 -0
  142. package/lib/file-jDdkhyj7.js +43 -0
  143. package/lib/{index-RkKGy5oa.js → index-B3Ijnbxs.js} +1 -1
  144. package/lib/index-BXh8X1ch.cjs +1 -0
  145. package/lib/{index-Dl3OjzmR.js → index-C1KQsOcg.js} +1 -1
  146. package/lib/{index-D4M4hrH4.js → index-C8FjP66D.js} +1 -1
  147. package/lib/index-jMN4V2hr.js +2763 -0
  148. package/lib/{index-DZj2z9_1.js → index-s3l5RdyW.js} +1 -1
  149. package/lib/index.cjs +4 -4
  150. package/lib/index.js +464 -149
  151. package/lib/input-C_J-pfTx.js +21 -0
  152. package/lib/input-DwLo4r7V.cjs +1 -0
  153. package/lib/isNumber-BTYSVlKo.cjs +1 -0
  154. package/lib/isNumber-WaBzl_0s.js +15 -0
  155. package/lib/label-BgIVynq3.cjs +1 -0
  156. package/lib/label-ClsOg9Hr.js +11 -0
  157. package/lib/{popover-DDT8YRht.js → popover-BC7FRr8B.js} +1 -1
  158. package/lib/{popover-0syCfWYi.cjs → popover-C3A6zzNV.cjs} +1 -1
  159. package/lib/{renderNodeView-dj6AaFSX.js → renderNodeView-C_hPIdEs.js} +2 -2
  160. package/lib/{select-DTNz0ZeE.cjs → select-B8HIWDXf.cjs} +1 -1
  161. package/lib/{select-D9wQw2qB.js → select-DSKqhVGR.js} +1 -1
  162. package/lib/{separator-DRGTEiX4.js → separator-BJWSNjvr.js} +13 -12
  163. package/lib/separator-D6ruF682.cjs +1 -0
  164. package/lib/style.css +1 -1
  165. package/lib/tabs-D1J1iB7B.js +46 -0
  166. package/lib/tabs-IEbMQmNX.cjs +1 -0
  167. package/lib/{textarea-DfVzbMr5.js → textarea-Ch5w3PiI.js} +1 -1
  168. package/lib/{textarea-DpkwluT0.cjs → textarea-CtVdqwSM.cjs} +1 -1
  169. package/lib/theme.cjs +1 -1
  170. package/lib/theme.js +18 -18
  171. package/lib/throttle-CRNq0z-O.js +249 -0
  172. package/lib/throttle-gTTvqDTW.cjs +1 -0
  173. package/lib/toggle-C9tcMm1r.cjs +1 -0
  174. package/lib/toggle-CaSwYCk4.js +89 -0
  175. package/lib/types.d.ts +5 -5
  176. package/lib/{updatePosition-C294Pixi.js → updatePosition-DvfTZHcH.js} +2 -2
  177. package/lib/use-toast-C6zPo25l.cjs +1 -0
  178. package/lib/use-toast-CEOqhXfx.js +97 -0
  179. package/lib/useButtonProps-D-ruygH7.js +165 -0
  180. package/lib/useButtonProps-D9ndBdmA.cjs +1 -0
  181. package/package.json +34 -32
  182. package/lib/ActionMenuButton-C6jGtl3k.cjs +0 -1
  183. package/lib/Drawer-B031ezmA.cjs +0 -2
  184. package/lib/Iframe-BUK2pkOL.cjs +0 -1
  185. package/lib/Indent-_y6N8MIQ.cjs +0 -1
  186. package/lib/Katex-bJXkt-VP.cjs +0 -4
  187. package/lib/LinkEditBlock-ewTApx0K.cjs +0 -5
  188. package/lib/Mermaid-Dwz9o-yM.cjs +0 -2
  189. package/lib/SlashCommandNodeView-BMgQJ4xT.cjs +0 -1
  190. package/lib/Table-B8CHl8jK.cjs +0 -5
  191. package/lib/Twitter-6HYP_upt.cjs +0 -1
  192. package/lib/index-B0d-u29p.js +0 -5425
  193. package/lib/index-De9MZVWQ.cjs +0 -28
  194. package/lib/separator-D8lOAf8f.cjs +0 -1
package/lib/bubble.js CHANGED
@@ -1,46 +1,55 @@
1
1
  import { jsx as f, Fragment as I, jsxs as x } from "react/jsx-runtime";
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-BUPZHhq3.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-D4M4hrH4.js";
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";
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-Cu12PvQ_.js";
5
+ import { C as oo, T as lo } from "./Table-CcG-JNtV.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 { 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, U as co, q as ao, E as ho, v as uo, V as fo, t as po, W as go, I as tt } from "./index-B0d-u29p.js";
9
- import { S as mo, a as wo, b as bo, c as xo, d as yo } from "./select-D9wQw2qB.js";
8
+ import { A as y } from "./toggle-CaSwYCk4.js";
9
+ import { D as ln, a as cn, b as an, c as hn, d as dn, e as co } from "./dialog-bDkDW-C_.js";
10
+ import { S as ao, a as ho, b as uo, c as fo, d as po } from "./select-DSKqhVGR.js";
10
11
  import { Callout as Ne } from "./Callout.js";
11
- import { u as ie, K as Un, s as So } from "./Katex-CJDtvu-v.js";
12
+ import { u as ie, K as Un, s as go } from "./Katex-DqhWWAA-.js";
12
13
  import { u as Y, n as Ye, V as Ei } from "./index-BGd2HiwP.js";
14
+ import { l as Z, f as W, i as mo } from "./useButtonProps-D-ruygH7.js";
13
15
  import { d as se } from "./delete-node-eQHsyyhR.js";
16
+ import { L as Tt } from "./label-ClsOg9Hr.js";
17
+ import { I as jt } from "./input-C_J-pfTx.js";
18
+ import { B as Bt } from "./button-090-I3tp.js";
14
19
  import { MultipleColumnNode as Ti } from "./Column.js";
15
- import "./theme.js";
16
- import { C as ko, s as vo, i as Co, D as vn } from "./Drawer-DTCwtJEs.js";
17
- import { Editor as _o, makeDropdownToolbar as Eo } from "easydrawer";
18
- import { S as Dt } from "./separator-DRGTEiX4.js";
19
- import { P as Is, a as Os, b as Ms } from "./popover-DDT8YRht.js";
20
+ import { C as wo, s as bo, i as xo, D as vn } from "./Drawer-CF6Z_IA2.js";
21
+ import { Editor as yo, makeDropdownToolbar as So } from "easydrawer";
22
+ import { d as ko } from "./file-jDdkhyj7.js";
23
+ import { S as Dt } from "./separator-BJWSNjvr.js";
24
+ import { E as vo, e as Co } from "./events.constant-CSWD3-ho.js";
25
+ import { P as Is, a as Os, b as Ms } from "./popover-BC7FRr8B.js";
20
26
  import { Excalidraw as ce } from "./Excalidraw.js";
21
- import { I as ae, g as To } from "./Iframe-D-UYBxiv.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-DfVzbMr5.js";
25
- import { L as Ii, a as Oo, R as Mo } from "./LinkEditBlock-Cdqwj_NU.js";
26
- import { ImageGif as Ro } from "./ImageGif.js";
27
- import { M as Rs, E as No } from "./Mermaid-CnMYVX1P.js";
27
+ import { I as ae, g as _o } from "./Iframe-Dfd3LI7b.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-Ch5w3PiI.js";
31
+ import { L as Ii, a as Ao, R as Io } from "./LinkEditBlock-xP0pGVhB.js";
32
+ import { I as Oo } from "./ImageCropper-DrSdjo9x.js";
33
+ import { ImageGif as Mo } from "./ImageGif.js";
34
+ import { V as Ro } from "./Video-DAKr90QL.js";
35
+ import { M as Rs, E as No } from "./Mermaid-BJ6ryVdY.js";
28
36
  import { RichTextBold as Uo } from "./Bold.js";
29
37
  import { RichTextCode as Lo } from "./Code.js";
30
- import "./index-Dl3OjzmR.js";
38
+ import "./index-C1KQsOcg.js";
31
39
  import { RichTextColor as Po } from "./Color.js";
32
40
  import { RichTextHighlight as Bo } from "./Highlight.js";
33
41
  import { RichTextItalic as Vo } from "./Italic.js";
34
- import { r as Ho } from "./SlashCommandNodeView-DcoLvt_6.js";
42
+ import { r as Ho } from "./SlashCommandNodeView-DS9FqMiY.js";
35
43
  import { RichTextStrike as $o } from "./Strike.js";
36
44
  import { RichTextAlign as Fo, TextAlign as zo } from "./TextAlign.js";
37
45
  import { RichTextUnderline as Wo } from "./TextUnderline.js";
38
- import { T as Oi, F as Ko } from "./Twitter-CrX4XY1j.js";
46
+ import { I as tt } from "./Icon-BvGyfX2j.js";
47
+ import { T as Oi, F as Ko } from "./Twitter-BIL3o833.js";
39
48
  import { DecorationSet as Mi, Decoration as jo } from "@tiptap/pm/view";
40
49
  import { NodeRange as Yo } from "@tiptap/pm/model";
41
50
  import { Clear as Go } from "./Clear.js";
42
- import { I as Jo, a as Ri, s as Ni } from "./Indent-Bvt-Qwar.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-CVwXaR3Z.js";
51
+ import { I as Jo, a as Ri, s as Ni } from "./Indent-CDVF9DWN.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-DWt_xj4h.js";
44
53
  function tl(e, t) {
45
54
  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;
46
55
  return new DOMRect(c, a, o, l);
@@ -458,7 +467,7 @@ const il = [
458
467
  { value: "warning", label: "Warning", icon: "TriangleAlert" },
459
468
  { value: "caution", label: "Caution", icon: "OctagonAlert" }
460
469
  ];
461
- function Jd() {
470
+ function su() {
462
471
  const e = Z(), t = W(), { t: n } = Y(), { type: i, title: s, body: r } = ie(t, Ne.name, {
463
472
  type: "note",
464
473
  title: "",
@@ -493,15 +502,15 @@ function Jd() {
493
502
  /* @__PURE__ */ x("div", { className: "richtext-space-y-4 richtext-py-4", children: [
494
503
  /* @__PURE__ */ x("div", { className: "richtext-space-y-2", children: [
495
504
  /* @__PURE__ */ f(Tt, { children: n("editor.callout.dialog.type") }),
496
- /* @__PURE__ */ x(mo, { onValueChange: a, value: c, children: [
497
- /* @__PURE__ */ f(wo, { children: /* @__PURE__ */ f(
498
- bo,
505
+ /* @__PURE__ */ x(ao, { onValueChange: a, value: c, children: [
506
+ /* @__PURE__ */ f(ho, { children: /* @__PURE__ */ f(
507
+ uo,
499
508
  {
500
509
  className: "richtext-text-accent",
501
510
  placeholder: n("editor.callout.dialog.type.placeholder")
502
511
  }
503
512
  ) }),
504
- /* @__PURE__ */ f(xo, { children: il.map((_) => /* @__PURE__ */ f(yo, { value: _.value, children: n(`editor.callout.type.${_.value}`) }, _.value)) })
513
+ /* @__PURE__ */ f(fo, { children: il.map((_) => /* @__PURE__ */ f(po, { value: _.value, children: n(`editor.callout.type.${_.value}`) }, _.value)) })
505
514
  ] })
506
515
  ] }),
507
516
  /* @__PURE__ */ x("div", { className: "richtext-space-y-2", children: [
@@ -540,7 +549,7 @@ function Jd() {
540
549
  }
541
550
  ) : /* @__PURE__ */ f(I, {});
542
551
  }
543
- function qd() {
552
+ function ru() {
544
553
  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]);
545
554
  return e ? /* @__PURE__ */ f(
546
555
  Q,
@@ -887,10 +896,10 @@ function wl({ editor: e, attrs: t, extension: n }) {
887
896
  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 = () => {
888
897
  (async () => {
889
898
  const S = document.querySelector("#easydrawer");
890
- S && (r.current = new _o(S, {
899
+ S && (r.current = new yo(S, {
891
900
  wheelEventsEnabled: !1,
892
901
  disableZoom: !0
893
- }), o.current = Eo(r.current), o.current.addDefaultToolWidgets(), r.current.loadFromSVG(decodeURIComponent(l)));
902
+ }), o.current = So(r.current), o.current.addDefaultToolWidgets(), r.current.loadFromSVG(decodeURIComponent(l)));
894
903
  })();
895
904
  };
896
905
  pt(() => {
@@ -900,10 +909,10 @@ function wl({ editor: e, attrs: t, extension: n }) {
900
909
  }, [i]);
901
910
  const d = async () => {
902
911
  if (r.current) {
903
- const D = r.current.toSVG(), S = D.outerHTML, k = `drawer-${vo()}.svg`;
904
- let N = Co(D.outerHTML);
912
+ const D = r.current.toSVG(), S = D.outerHTML, k = `drawer-${bo()}.svg`;
913
+ let N = xo(D.outerHTML);
905
914
  if (a) {
906
- const H = co(N, k);
915
+ const H = ko(N, k);
907
916
  N = await a(H);
908
917
  }
909
918
  e == null || e.chain().focus().setDrawer(
@@ -964,7 +973,7 @@ function wl({ editor: e, attrs: t, extension: n }) {
964
973
  children: [
965
974
  /* @__PURE__ */ f("div", { className: "richtext-size-full", id: "easydrawer" }),
966
975
  /* @__PURE__ */ f(
967
- ko,
976
+ wo,
968
977
  {
969
978
  changeBorderColorShape: _,
970
979
  changeColorShape: w,
@@ -1012,8 +1021,8 @@ function bl({ item: e, disabled: t, editor: n }) {
1012
1021
  }
1013
1022
  ) }) : /* @__PURE__ */ f(I, {});
1014
1023
  }
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 }) => {
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 }) => {
1017
1026
  const { selection: a } = c.view.state, { $from: h, to: d } = a;
1018
1027
  let u = !1;
1019
1028
  return c.view.state.doc.nodesBetween(h.pos, d, (p) => {
@@ -1103,7 +1112,7 @@ function xl(e) {
1103
1112
  s.disconnect();
1104
1113
  }), { width: Ut.get("width") };
1105
1114
  }
1106
- function Zd() {
1115
+ function lu() {
1107
1116
  const e = Z(), t = W(), { t: n } = Y(), { width: i } = xl(t), s = ie(t, ce.name, {
1108
1117
  defaultShowPicker: !1,
1109
1118
  createUser: "",
@@ -1115,8 +1124,8 @@ function Zd() {
1115
1124
  },
1116
1125
  [t]
1117
1126
  ), h = M(() => {
1118
- const p = ho.EXCALIDRAW(t.id);
1119
- uo(p, s);
1127
+ const p = vo.EXCALIDRAW(t.id);
1128
+ Co(p, s);
1120
1129
  }, [t, s]), d = M(() => t.isActive(ce.name), [t]), u = M(() => se(ce.name, t), [t]);
1121
1130
  return pt(() => {
1122
1131
  r && (h(), t.chain().updateAttributes(ce.name, { defaultShowPicker: !1 }).focus().run());
@@ -1135,7 +1144,7 @@ function Zd() {
1135
1144
  }
1136
1145
  ) : /* @__PURE__ */ f(I, {});
1137
1146
  }
1138
- function Qd() {
1147
+ function cu() {
1139
1148
  const e = Z(), t = W(), { t: n } = Y(), { width: i, height: s, src: r } = ie(t, ae.name, {
1140
1149
  width: 0,
1141
1150
  height: 0,
@@ -1155,7 +1164,7 @@ function Qd() {
1155
1164
  (w) => {
1156
1165
  var _;
1157
1166
  (_ = w == null ? void 0 : w.preventDefault) == null || _.call(w);
1158
- const b = To(c);
1167
+ const b = _o(c);
1159
1168
  t.chain().updateAttributes(ae.name, {
1160
1169
  src: (b == null ? void 0 : b.src) || c
1161
1170
  }).setNodeSelection(t.state.selection.from).focus().run(), l(!1);
@@ -1181,7 +1190,7 @@ function Qd() {
1181
1190
  /* @__PURE__ */ x(ln, { onOpenChange: l, open: o, children: [
1182
1191
  /* @__PURE__ */ f(cn, { asChild: !0, children: /* @__PURE__ */ f(y, { icon: "Pencil", tooltip: "Open Edit Link" }) }),
1183
1192
  /* @__PURE__ */ x(an, { children: [
1184
- /* @__PURE__ */ f(fo, { children: /* @__PURE__ */ f(hn, { children: "Edit Link Iframe" }) }),
1193
+ /* @__PURE__ */ f(co, { children: /* @__PURE__ */ f(hn, { children: "Edit Link Iframe" }) }),
1185
1194
  /* @__PURE__ */ f(
1186
1195
  jt,
1187
1196
  {
@@ -1219,8 +1228,8 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
1219
1228
  }).run(), a(""), d(""), n(!1);
1220
1229
  }, [s, c, h, n]), p = yt(() => {
1221
1230
  try {
1222
- return Do.renderToString(c, {
1223
- macros: So(h || "")
1231
+ return Eo.renderToString(c, {
1232
+ macros: go(h || "")
1224
1233
  });
1225
1234
  } catch {
1226
1235
  return c;
@@ -1280,7 +1289,7 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
1280
1289
  ] })
1281
1290
  ] });
1282
1291
  }
1283
- function tu() {
1292
+ function au() {
1284
1293
  const e = Z(), t = W(), [n, i] = F(!1), s = M(() => t.isActive(Un.name), [t]), r = M(() => se(Un.name, t), [t]);
1285
1294
  return e ? /* @__PURE__ */ f(
1286
1295
  Q,
@@ -1290,8 +1299,8 @@ function tu() {
1290
1299
  pluginKey: "RichTextBubbleKatex",
1291
1300
  shouldShow: s,
1292
1301
  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: [
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 }) })
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 }) })
1295
1304
  ] })
1296
1305
  }
1297
1306
  ) : /* @__PURE__ */ f(I, {});
@@ -1335,7 +1344,7 @@ function Sl(e) {
1335
1344
  )
1336
1345
  ] });
1337
1346
  }
1338
- function eu() {
1347
+ function hu() {
1339
1348
  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) => {
1340
1349
  const p = t.state.selection, { from: g } = p, m = (d == null ? void 0 : d.length) ?? 0, w = g + m;
1341
1350
  t.chain().extendMarkRange("link").insertContent({
@@ -1363,7 +1372,7 @@ function eu() {
1363
1372
  options: { placement: "bottom", offset: 8, flip: !0 },
1364
1373
  pluginKey: "RichTextBubbleLink",
1365
1374
  shouldShow: o,
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(
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(
1367
1376
  Sl,
1368
1377
  {
1369
1378
  editor: t,
@@ -1395,15 +1404,15 @@ function si({ item: e, disabled: t, editor: n }) {
1395
1404
  ) }) : /* @__PURE__ */ f(I, {});
1396
1405
  }
1397
1406
  function kl(e) {
1398
- return e.type.name === po.name;
1407
+ return e.type.name === Oo.name;
1399
1408
  }
1400
1409
  function vl(e) {
1401
- return e.type.name === Ro.name;
1410
+ return e.type.name === Mo.name;
1402
1411
  }
1403
1412
  function Cl(e) {
1404
- return e.type.name === go.name;
1413
+ return e.type.name === Ro.name;
1405
1414
  }
1406
- function nu() {
1415
+ function du() {
1407
1416
  const { lang: e, t } = Y(), n = Z(), i = W(), s = ({ editor: o }) => {
1408
1417
  const { selection: l } = o.view.state, { $from: c, to: a } = l;
1409
1418
  let h = !1;
@@ -1423,7 +1432,7 @@ function nu() {
1423
1432
  }
1424
1433
  ) : /* @__PURE__ */ f(I, {});
1425
1434
  }
1426
- function iu() {
1435
+ function uu() {
1427
1436
  const { lang: e, t } = Y(), n = Z(), i = W(), s = ({ editor: o }) => {
1428
1437
  const { selection: l } = o.view.state, { $from: c, to: a } = l;
1429
1438
  let h = !1;
@@ -1443,7 +1452,7 @@ function iu() {
1443
1452
  }
1444
1453
  ) : /* @__PURE__ */ f(I, {});
1445
1454
  }
1446
- function su() {
1455
+ function fu() {
1447
1456
  const { t: e } = Y(), t = Z(), n = W(), i = ({ editor: r }) => {
1448
1457
  const { selection: o } = r.view.state, { $from: l, to: c } = o;
1449
1458
  let a = !1;
@@ -1492,7 +1501,7 @@ function El(e) {
1492
1501
  return r = { node: o, pos: l }, !1;
1493
1502
  }), r;
1494
1503
  }
1495
- function ru() {
1504
+ function pu() {
1496
1505
  const { lang: e, t } = Y(), n = W(), i = ({ editor: r }) => {
1497
1506
  if (!r.isEditable)
1498
1507
  return !1;
@@ -1536,7 +1545,7 @@ function ru() {
1536
1545
  }
1537
1546
  ) : /* @__PURE__ */ f(I, {});
1538
1547
  }
1539
- function ou({ hiddenActions: e = [] }) {
1548
+ function gu({ hiddenActions: e = [] }) {
1540
1549
  var m, w, b, _, V, E, P, D, S, k, N, H, nt, Rt, Nt, v, gt, Oe;
1541
1550
  const { t } = Y(), n = Z(), i = W(), s = ({ editor: Kt }) => Xr(Kt.view.state, lo.name), r = (Kt) => e.includes(Kt);
1542
1551
  function o() {
@@ -1777,7 +1786,7 @@ function Dl() {
1777
1786
  /* @__PURE__ */ f(Wo, {}),
1778
1787
  /* @__PURE__ */ f($o, {}),
1779
1788
  /* @__PURE__ */ f(Lo, {}),
1780
- /* @__PURE__ */ f(Mo, {}),
1789
+ /* @__PURE__ */ f(Io, {}),
1781
1790
  /* @__PURE__ */ f(
1782
1791
  Dt,
1783
1792
  {
@@ -1790,7 +1799,7 @@ function Dl() {
1790
1799
  /* @__PURE__ */ f(Fo, {})
1791
1800
  ] });
1792
1801
  }
1793
- function lu({ buttonBubble: e }) {
1802
+ function mu({ buttonBubble: e }) {
1794
1803
  const t = W(), n = Z(), i = ({ editor: s }) => {
1795
1804
  const { selection: r } = s.view.state, { $from: o, to: l } = r;
1796
1805
  return o.pos === l ? !1 : r instanceof io;
@@ -1806,7 +1815,7 @@ function lu({ buttonBubble: e }) {
1806
1815
  }
1807
1816
  ) : /* @__PURE__ */ f(I, {});
1808
1817
  }
1809
- function cu() {
1818
+ function wu() {
1810
1819
  const { t: e } = Y(), t = Z(), n = W(), [i, s] = F(!1), r = M(({ editor: c }) => c.isActive(Oi.name), []), o = (c) => {
1811
1820
  n.commands.updateTweet({ src: c }), s(!1);
1812
1821
  }, l = M(() => se(Oi.name, n), [n]);
@@ -9306,7 +9315,7 @@ var sd = (e) => {
9306
9315
  }
9307
9316
  );
9308
9317
  }, rd = sd;
9309
- function hu() {
9318
+ function xu() {
9310
9319
  var D, S, k, N, H, nt, Rt, Nt;
9311
9320
  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(
9312
9321
  (v) => (v == null ? void 0 : v.name) === zo.name
@@ -9515,19 +9524,19 @@ function hu() {
9515
9524
  );
9516
9525
  }
9517
9526
  export {
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
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
9533
9542
  };
@@ -0,0 +1,35 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { Slot as x } from "@radix-ui/react-slot";
3
+ import { c as h, a } from "./index-jMN4V2hr.js";
4
+ import * as s from "react";
5
+ const d = a(
6
+ "richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "!richtext-bg-primary !richtext-text-primary-foreground hover:!richtext-bg-primary/90",
11
+ destructive: "richtext-bg-destructive richtext-text-destructive-foreground hover:richtext-bg-destructive/90",
12
+ outline: "richtext-border richtext-border-input richtext-bg-background richtext-text-foreground hover:richtext-bg-accent hover:richtext-text-accent-foreground",
13
+ secondary: "richtext-bg-secondary richtext-text-secondary-foreground hover:richtext-bg-secondary/80",
14
+ ghost: "hover:richtext-bg-accent hover:richtext-text-accent-foreground",
15
+ link: "richtext-text-primary richtext-underline-offset-4 hover:richtext-underline"
16
+ },
17
+ size: {
18
+ default: "richtext-h-10 richtext-px-4 richtext-py-2",
19
+ sm: "richtext-h-9 richtext-rounded-md richtext-px-3",
20
+ lg: "richtext-h-11 richtext-rounded-md richtext-px-8",
21
+ icon: "richtext-size-10"
22
+ }
23
+ },
24
+ defaultVariants: {
25
+ variant: "default",
26
+ size: "default"
27
+ }
28
+ }
29
+ ), u = s.forwardRef(
30
+ ({ className: t, variant: e, size: r, asChild: i = !1, ...c }, o) => /* @__PURE__ */ n(i ? x : "button", { className: h(d({ variant: e, size: r, className: t })), ref: o, ...c })
31
+ );
32
+ u.displayName = "Button";
33
+ export {
34
+ u as B
35
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("react/jsx-runtime"),a=require("@radix-ui/react-slot"),c=require("./index-BXh8X1ch.cjs"),u=require("react");function d(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const f=d(u),l=c.cva("richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",{variants:{variant:{default:"!richtext-bg-primary !richtext-text-primary-foreground hover:!richtext-bg-primary/90",destructive:"richtext-bg-destructive richtext-text-destructive-foreground hover:richtext-bg-destructive/90",outline:"richtext-border richtext-border-input richtext-bg-background richtext-text-foreground hover:richtext-bg-accent hover:richtext-text-accent-foreground",secondary:"richtext-bg-secondary richtext-text-secondary-foreground hover:richtext-bg-secondary/80",ghost:"hover:richtext-bg-accent hover:richtext-text-accent-foreground",link:"richtext-text-primary richtext-underline-offset-4 hover:richtext-underline"},size:{default:"richtext-h-10 richtext-px-4 richtext-py-2",sm:"richtext-h-9 richtext-rounded-md richtext-px-3",lg:"richtext-h-11 richtext-rounded-md richtext-px-8",icon:"richtext-size-10"}},defaultVariants:{variant:"default",size:"default"}}),n=f.forwardRef(({className:t,variant:r,size:e,asChild:i=!1,...o},x)=>{const h=i?a.Slot:"button";return s.jsx(h,{className:c.cn(l({variant:r,size:e,className:t})),ref:x,...o})});n.displayName="Button";exports.Button=n;
@@ -0,0 +1 @@
1
+ "use strict";const c=require("react/jsx-runtime"),h=require("@radix-ui/react-checkbox"),x=require("lucide-react"),u=require("react"),s=require("./index-BXh8X1ch.cjs");function n(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=n(h),d=n(u),a=d.forwardRef(({className:e,...r},t)=>c.jsx(i.Root,{ref:t,className:s.cn("!richtext-peer !richtext-h-4 !richtext-w-4 !richtext-shrink-0 !richtext-rounded-sm !richtext-border !richtext-border-primary !richtext-p-0 !richtext-ring-offset-background focus-visible:!richtext-outline-none focus-visible:!richtext-ring-2 focus-visible:!richtext-ring-ring focus-visible:!richtext-ring-offset-1 disabled:!richtext-cursor-not-allowed disabled:!richtext-opacity-50 data-[state=checked]:!richtext-bg-primary data-[state=checked]:!richtext-text-primary-foreground",e),...r,children:c.jsx(i.Indicator,{className:s.cn("!richtext-flex !richtext-items-center !richtext-justify-center !richtext-p-0 !richtext-text-current"),children:c.jsx(x.Check,{className:"!richtext-h-4 !richtext-w-4"})})}));a.displayName=i.Root.displayName;exports.Checkbox=a;
@@ -0,0 +1,29 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import * as e from "@radix-ui/react-checkbox";
3
+ import { Check as h } from "lucide-react";
4
+ import * as s from "react";
5
+ import { c as r } from "./index-jMN4V2hr.js";
6
+ const a = s.forwardRef(({ className: i, ...c }, o) => /* @__PURE__ */ t(
7
+ e.Root,
8
+ {
9
+ ref: o,
10
+ className: r(
11
+ "!richtext-peer !richtext-h-4 !richtext-w-4 !richtext-shrink-0 !richtext-rounded-sm !richtext-border !richtext-border-primary !richtext-p-0 !richtext-ring-offset-background focus-visible:!richtext-outline-none focus-visible:!richtext-ring-2 focus-visible:!richtext-ring-ring focus-visible:!richtext-ring-offset-1 disabled:!richtext-cursor-not-allowed disabled:!richtext-opacity-50 data-[state=checked]:!richtext-bg-primary data-[state=checked]:!richtext-text-primary-foreground",
12
+ i
13
+ ),
14
+ ...c,
15
+ children: /* @__PURE__ */ t(
16
+ e.Indicator,
17
+ {
18
+ className: r(
19
+ "!richtext-flex !richtext-items-center !richtext-justify-center !richtext-p-0 !richtext-text-current"
20
+ ),
21
+ children: /* @__PURE__ */ t(h, { className: "!richtext-h-4 !richtext-w-4" })
22
+ }
23
+ )
24
+ }
25
+ ));
26
+ a.displayName = e.Root.displayName;
27
+ export {
28
+ a as C
29
+ };
@@ -7322,7 +7322,7 @@ function ml() {
7322
7322
  return r;
7323
7323
  }
7324
7324
  export {
7325
- el as $,
7325
+ dl 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
- ur as K,
7337
- qe as L,
7336
+ qe as K,
7337
+ qa as L,
7338
7338
  Qa as M,
7339
7339
  ll as N,
7340
- qa as O,
7340
+ ja as O,
7341
7341
  sr as P,
7342
- ja as Q,
7342
+ ze as Q,
7343
7343
  Ia as R,
7344
7344
  A as S,
7345
7345
  $ as T,
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 _,
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 _,
7353
7353
  Ga as a,
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
- fl as aa,
7365
- sl as ab,
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,
7366
7366
  Ka as b,
7367
7367
  Ha as c,
7368
7368
  Za as d,
@@ -4,5 +4,5 @@ interface IProviderRichTextProps {
4
4
  children: React.ReactNode;
5
5
  dark?: boolean;
6
6
  }
7
- export declare function RichTextProvider({ editor, children }: IProviderRichTextProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function RichTextProvider({ editor, children, dark }: IProviderRichTextProps): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -0,0 +1 @@
1
+ "use strict";const a=require("react/jsx-runtime"),f=require("@radix-ui/react-dialog"),u=require("lucide-react"),m=require("react"),c=require("./index-BXh8X1ch.cjs");function n(t){const e=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(e,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const r=n(f),s=n(m),p=r.Root,D=r.Trigger,y=r.Portal,x=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Overlay,{ref:i,className:c.cn("richtext-fixed richtext-inset-0 richtext-z-50 richtext-bg-black/80 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",t),...e}));x.displayName=r.Overlay.displayName;const l=s.forwardRef(({className:t,children:e,...i},o)=>a.jsxs(y,{"data-richtext-portal":!0,children:[a.jsx(x,{}),a.jsxs(r.Content,{"data-richtext-portal":!0,ref:o,className:c.cn("richtext-fixed richtext-left-[50%] richtext-top-[50%] richtext-z-50 richtext-grid richtext-w-full richtext-max-w-lg richtext-translate-x-[-50%] richtext-translate-y-[-50%] richtext-gap-4 richtext-border !richtext-border-border richtext-bg-background richtext-p-6 richtext-shadow-lg richtext-duration-200 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-[state=closed]:richtext-slide-out-to-left-1/2 data-[state=closed]:richtext-slide-out-to-top-[48%] data-[state=open]:richtext-slide-in-from-left-1/2 data-[state=open]:richtext-slide-in-from-top-[48%] sm:richtext-rounded-lg",t),...i,children:[e,a.jsxs(r.Close,{className:"richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground",children:[a.jsx(u.X,{className:"richtext-size-4 richtext-text-accent-foreground"}),a.jsx("span",{className:"richtext-sr-only richtext-text-accent-foreground",children:"Close"})]})]})]}));l.displayName=r.Content.displayName;function d({className:t,...e}){return a.jsx("div",{className:c.cn("richtext-flex richtext-flex-col richtext-space-y-1.5 richtext-text-center sm:richtext-text-left",t),...e})}d.displayName="DialogHeader";function h({className:t,...e}){return a.jsx("div",{className:c.cn("richtext-flex richtext-flex-col-reverse sm:richtext-flex-row sm:richtext-justify-end sm:richtext-space-x-2",t),...e})}h.displayName="DialogFooter";const g=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Title,{ref:i,className:c.cn("richtext-text-lg richtext-font-semibold richtext-leading-none richtext-tracking-tight richtext-text-foreground",t),...e}));g.displayName=r.Title.displayName;const N=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Description,{className:c.cn("richtext-text-sm richtext-text-muted-foreground",t),ref:i,...e}));N.displayName=r.Description.displayName;exports.Dialog=p;exports.DialogContent=l;exports.DialogFooter=h;exports.DialogHeader=d;exports.DialogTitle=g;exports.DialogTrigger=D;
@@ -0,0 +1,95 @@
1
+ import { jsx as i, jsxs as s } from "react/jsx-runtime";
2
+ import * as t from "@radix-ui/react-dialog";
3
+ import { X as l } from "lucide-react";
4
+ import * as o from "react";
5
+ import { c } from "./index-jMN4V2hr.js";
6
+ const D = t.Root, b = t.Trigger, d = t.Portal, x = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ i(
7
+ t.Overlay,
8
+ {
9
+ ref: r,
10
+ className: c(
11
+ "richtext-fixed richtext-inset-0 richtext-z-50 richtext-bg-black/80 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",
12
+ e
13
+ ),
14
+ ...a
15
+ }
16
+ ));
17
+ x.displayName = t.Overlay.displayName;
18
+ const h = o.forwardRef(({ className: e, children: a, ...r }, n) => /* @__PURE__ */ s(d, { "data-richtext-portal": !0, children: [
19
+ /* @__PURE__ */ i(x, {}),
20
+ /* @__PURE__ */ s(
21
+ t.Content,
22
+ {
23
+ "data-richtext-portal": !0,
24
+ ref: n,
25
+ className: c(
26
+ "richtext-fixed richtext-left-[50%] richtext-top-[50%] richtext-z-50 richtext-grid richtext-w-full richtext-max-w-lg richtext-translate-x-[-50%] richtext-translate-y-[-50%] richtext-gap-4 richtext-border !richtext-border-border richtext-bg-background richtext-p-6 richtext-shadow-lg richtext-duration-200 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-[state=closed]:richtext-slide-out-to-left-1/2 data-[state=closed]:richtext-slide-out-to-top-[48%] data-[state=open]:richtext-slide-in-from-left-1/2 data-[state=open]:richtext-slide-in-from-top-[48%] sm:richtext-rounded-lg",
27
+ e
28
+ ),
29
+ ...r,
30
+ children: [
31
+ a,
32
+ /* @__PURE__ */ s(t.Close, { className: "richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground", children: [
33
+ /* @__PURE__ */ i(l, { className: "richtext-size-4 richtext-text-accent-foreground" }),
34
+ /* @__PURE__ */ i("span", { className: "richtext-sr-only richtext-text-accent-foreground", children: "Close" })
35
+ ] })
36
+ ]
37
+ }
38
+ )
39
+ ] }));
40
+ h.displayName = t.Content.displayName;
41
+ function m({ className: e, ...a }) {
42
+ return /* @__PURE__ */ i(
43
+ "div",
44
+ {
45
+ className: c(
46
+ "richtext-flex richtext-flex-col richtext-space-y-1.5 richtext-text-center sm:richtext-text-left",
47
+ e
48
+ ),
49
+ ...a
50
+ }
51
+ );
52
+ }
53
+ m.displayName = "DialogHeader";
54
+ function f({ className: e, ...a }) {
55
+ return /* @__PURE__ */ i(
56
+ "div",
57
+ {
58
+ className: c(
59
+ "richtext-flex richtext-flex-col-reverse sm:richtext-flex-row sm:richtext-justify-end sm:richtext-space-x-2",
60
+ e
61
+ ),
62
+ ...a
63
+ }
64
+ );
65
+ }
66
+ f.displayName = "DialogFooter";
67
+ const p = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ i(
68
+ t.Title,
69
+ {
70
+ ref: r,
71
+ className: c(
72
+ "richtext-text-lg richtext-font-semibold richtext-leading-none richtext-tracking-tight richtext-text-foreground",
73
+ e
74
+ ),
75
+ ...a
76
+ }
77
+ ));
78
+ p.displayName = t.Title.displayName;
79
+ const g = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ i(
80
+ t.Description,
81
+ {
82
+ className: c("richtext-text-sm richtext-text-muted-foreground", e),
83
+ ref: r,
84
+ ...a
85
+ }
86
+ ));
87
+ g.displayName = t.Description.displayName;
88
+ export {
89
+ D,
90
+ b as a,
91
+ h as b,
92
+ p as c,
93
+ f as d,
94
+ m as e
95
+ };
@@ -0,0 +1 @@
1
+ "use strict";function d(e){try{return JSON.stringify(e)}catch{return JSON.stringify({})}}function g(e,n=!1){return r=>{const o=e.startsWith("data-")?e:`data-${e}`;let t=decodeURIComponent(r.getAttribute(o));if(t==null||typeof t=="string"&&t==="null")try{const c=r.outerHTML.match(/([\S\s])+?="([\S\s])+?"/g);c&&c.length>0&&(t=(c.map(a=>a.trim()).reduce((a,u)=>{const i=u.indexOf("="),f=[u.slice(0,i),u.slice(i+1).slice(1,-1)];return a[f[0]]=f[1],a},{})[e.toLowerCase()]||"").replaceAll(""",'"'))}catch(l){console.error("Error getDatasetAttribute ",l.message,r)}if(n)try{return JSON.parse(t)}catch{return{}}if(t.includes("%")||t.includes("auto"))return t;const s=Number.parseInt(t);return s!==s?t:s}}function p(e){const{attrs:n}=e;return Object.keys(n).reduce((r,o)=>{const t=n[o];if(t==null)return r;let s="";return typeof t=="object"?s=d(t):s=t,r[o]=s,r},Object.create(null))}exports.getDatasetAttribute=g;exports.nodeAttrsToDataset=p;