@remarkablejames/editor 0.0.6 → 0.0.8

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 (134) hide show
  1. package/README.md +1 -1
  2. package/lib/{ActionMenuButton-NfiUDE60.cjs → ActionMenuButton-DI9_8wC0.cjs} +1 -1
  3. package/lib/{ActionMenuButton-CpmEfz31.js → ActionMenuButton-DL05l66z.js} +1 -1
  4. package/lib/Attachment.cjs +1 -1
  5. package/lib/Attachment.js +2 -2
  6. package/lib/Blockquote.cjs +1 -1
  7. package/lib/Blockquote.js +1 -1
  8. package/lib/Bold.cjs +1 -1
  9. package/lib/Bold.js +1 -1
  10. package/lib/BulletList.cjs +1 -1
  11. package/lib/BulletList.js +1 -1
  12. package/lib/Callout.cjs +1 -1
  13. package/lib/Callout.js +16 -15
  14. package/lib/Clear.cjs +1 -1
  15. package/lib/Clear.js +1 -1
  16. package/lib/Code.cjs +1 -1
  17. package/lib/Code.js +1 -1
  18. package/lib/CodeBlock.cjs +1 -1
  19. package/lib/CodeBlock.js +32 -31
  20. package/lib/CodeView.cjs +1 -1
  21. package/lib/CodeView.js +1 -1
  22. package/lib/Color.cjs +1 -1
  23. package/lib/Color.js +2 -2
  24. package/lib/Column.cjs +1 -1
  25. package/lib/Column.js +1 -1
  26. package/lib/{Drawer-DlgdaO_B.cjs → Drawer-DEzhWKwY.cjs} +1 -1
  27. package/lib/{Drawer-CayP4Ww4.js → Drawer-DhM1qM6R.js} +15 -15
  28. package/lib/Drawer.cjs +1 -1
  29. package/lib/Drawer.js +2 -2
  30. package/lib/Emoji.cjs +1 -1
  31. package/lib/Emoji.js +8 -8
  32. package/lib/Excalidraw.cjs +1 -1
  33. package/lib/Excalidraw.js +36 -36
  34. package/lib/ExportPdf.cjs +1 -1
  35. package/lib/ExportPdf.js +1 -1
  36. package/lib/ExportWord.cjs +1 -1
  37. package/lib/ExportWord.js +1 -1
  38. package/lib/FontFamily.cjs +1 -1
  39. package/lib/FontFamily.js +3 -3
  40. package/lib/FontSize.cjs +1 -1
  41. package/lib/FontSize.js +3 -3
  42. package/lib/Heading.cjs +1 -1
  43. package/lib/Heading.js +8 -8
  44. package/lib/Highlight.cjs +1 -1
  45. package/lib/Highlight.js +2 -2
  46. package/lib/History.cjs +1 -1
  47. package/lib/History.js +1 -1
  48. package/lib/HorizontalRule.cjs +1 -1
  49. package/lib/HorizontalRule.js +1 -1
  50. package/lib/{Iframe-CANdxSpV.cjs → Iframe-DbYJ82AI.cjs} +1 -1
  51. package/lib/{Iframe-C6Sb97KS.js → Iframe-yDX_zHls.js} +1 -1
  52. package/lib/Iframe.cjs +1 -1
  53. package/lib/Iframe.js +2 -2
  54. package/lib/Image.cjs +1 -1
  55. package/lib/Image.js +3 -3
  56. package/lib/ImageGif.cjs +1 -1
  57. package/lib/ImageGif.js +28 -28
  58. package/lib/ImportWord.cjs +1 -1
  59. package/lib/ImportWord.js +12 -12
  60. package/lib/{Indent-CcFe8py3.js → Indent-CA46zsbb.js} +1 -1
  61. package/lib/{Indent-DuB2U6Cs.cjs → Indent-CYaCq_Mv.cjs} +1 -1
  62. package/lib/Indent.cjs +1 -1
  63. package/lib/Indent.js +1 -1
  64. package/lib/Italic.cjs +1 -1
  65. package/lib/Italic.js +1 -1
  66. package/lib/Katex-Dh-kTBjf.cjs +4 -0
  67. package/lib/{Katex-Bp6AnIUF.js → Katex-g3ZS3zUf.js} +4 -3
  68. package/lib/Katex.cjs +1 -1
  69. package/lib/Katex.js +1 -1
  70. package/lib/LineHeight.cjs +1 -1
  71. package/lib/LineHeight.js +2 -2
  72. package/lib/Link.cjs +1 -1
  73. package/lib/Link.js +1 -1
  74. package/lib/{LinkEditBlock-C2zX0WVK.cjs → LinkEditBlock-ClqpI1FH.cjs} +1 -1
  75. package/lib/{LinkEditBlock-BiHumIJR.js → LinkEditBlock-qE5KHPQs.js} +7 -7
  76. package/lib/Mermaid-BmUChJSB.cjs +2 -0
  77. package/lib/{Mermaid-Dlx0XTJj.js → Mermaid-CefRECZY.js} +24 -23
  78. package/lib/Mermaid.cjs +1 -1
  79. package/lib/Mermaid.js +1 -1
  80. package/lib/MoreMark.cjs +1 -1
  81. package/lib/MoreMark.js +2 -2
  82. package/lib/OrderedList.cjs +1 -1
  83. package/lib/OrderedList.js +1 -1
  84. package/lib/PaywallSeparator.cjs +1 -1
  85. package/lib/PaywallSeparator.js +1 -1
  86. package/lib/SearchAndReplace.cjs +1 -1
  87. package/lib/SearchAndReplace.js +7 -7
  88. package/lib/SlashCommand.cjs +1 -1
  89. package/lib/SlashCommand.js +2 -2
  90. package/lib/{SlashCommandNodeView-DzmsYaNc.js → SlashCommandNodeView-BsIrWlhS.js} +5 -5
  91. package/lib/{SlashCommandNodeView-BfWNWGRr.cjs → SlashCommandNodeView-DpXsfGmo.cjs} +1 -1
  92. package/lib/Strike.cjs +1 -1
  93. package/lib/Strike.js +1 -1
  94. package/lib/{Table-BfM6ywrZ.cjs → Table-B-0TePQ3.cjs} +1 -1
  95. package/lib/{Table-IH34r4jd.js → Table-CG0nisk4.js} +2 -2
  96. package/lib/Table.cjs +1 -1
  97. package/lib/Table.js +1 -1
  98. package/lib/TaskList.cjs +1 -1
  99. package/lib/TaskList.js +1 -1
  100. package/lib/TextAlign.cjs +1 -1
  101. package/lib/TextAlign.js +2 -2
  102. package/lib/TextDirection.cjs +1 -1
  103. package/lib/TextDirection.js +2 -2
  104. package/lib/TextUnderline.cjs +1 -1
  105. package/lib/TextUnderline.js +1 -1
  106. package/lib/{Twitter-FVQKPaq6.js → Twitter-DlGSWdh7.js} +7 -7
  107. package/lib/{Twitter-axcoCgD7.cjs → Twitter-DvMmVNMF.cjs} +1 -1
  108. package/lib/Twitter.cjs +1 -1
  109. package/lib/Twitter.js +1 -1
  110. package/lib/Video.cjs +1 -1
  111. package/lib/Video.js +3 -3
  112. package/lib/bubble.cjs +3 -3
  113. package/lib/bubble.js +83 -81
  114. package/lib/components/RichTextProvider.d.ts +1 -1
  115. package/lib/{dropdown-menu-Ce2TorkG.js → dropdown-menu-D-mNjyKn.js} +1 -1
  116. package/lib/{dropdown-menu-DirUyRAI.cjs → dropdown-menu-gOopBX-L.cjs} +1 -1
  117. package/lib/index-CUnpdrCy.cjs +28 -0
  118. package/lib/{index-CnKgiZFQ.js → index-CelRl0mr.js} +1062 -1191
  119. package/lib/index.cjs +3 -3
  120. package/lib/index.js +61 -59
  121. package/lib/{popover-BdLwAlrM.cjs → popover-DEMkixfo.cjs} +1 -1
  122. package/lib/{popover-BzJyaFvy.js → popover-SMtif0E1.js} +1 -1
  123. package/lib/select-BqlizSg4.cjs +1 -0
  124. package/lib/select-Dc3RkAhQ.js +120 -0
  125. package/lib/{separator-D-fyzbfx.js → separator-DWLSmuSh.js} +14 -14
  126. package/lib/{separator-CoQaQmFK.cjs → separator-DuP4NoiV.cjs} +1 -1
  127. package/lib/textarea-C89l2GRG.cjs +1 -0
  128. package/lib/textarea-DvciwVxS.js +20 -0
  129. package/lib/theme.cjs +1 -1
  130. package/lib/theme.js +18 -18
  131. package/package.json +21 -32
  132. package/lib/Katex-DFU1unCm.cjs +0 -4
  133. package/lib/Mermaid-B8lQSOGn.cjs +0 -2
  134. package/lib/index-BynXHtjJ.cjs +0 -28
package/lib/bubble.js CHANGED
@@ -2,43 +2,45 @@ import { jsx as f, Fragment as I, jsxs as x } from "react/jsx-runtime";
2
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
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";
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-IH34r4jd.js";
5
+ import { C as oo, T as lo } from "./Table-CG0nisk4.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 { G as Z, h as W, D as ln, m as cn, A as y, n as an, o as hn, L as Tt, S as co, p as ao, q as ho, r as uo, s as fo, j as jt, t as dn, B as Bt, $ as po, v as go, E as mo, z as wo, a0 as bo, U as Ei, y as xo, a1 as yo, I as tt } from "./index-CnKgiZFQ.js";
8
+ import { x 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, V as co, q as ao, E as ho, v as uo, W as fo, t as po, X as go, I as tt } from "./index-CelRl0mr.js";
9
+ import { S as mo, a as wo, b as bo, c as xo, d as yo } from "./select-Dc3RkAhQ.js";
9
10
  import { Callout as Ne } from "./Callout.js";
10
- import { u as ie, K as Un, s as So } from "./Katex-Bp6AnIUF.js";
11
- import { u as Y, n as Ye, V as Ti } from "./index-BGd2HiwP.js";
11
+ import { u as ie, K as Un, s as So } from "./Katex-g3ZS3zUf.js";
12
+ import { u as Y, n as Ye, V as Ei } from "./index-BGd2HiwP.js";
12
13
  import { d as se } from "./delete-node-eQHsyyhR.js";
13
- import { MultipleColumnNode as Di } from "./Column.js";
14
+ import { MultipleColumnNode as Ti } from "./Column.js";
14
15
  import "./theme.js";
15
- import { S as Dt } from "./separator-D-fyzbfx.js";
16
- import { C as ko, s as vo, i as Co, D as vn } from "./Drawer-CayP4Ww4.js";
16
+ import { C as ko, s as vo, i as Co, D as vn } from "./Drawer-DhM1qM6R.js";
17
17
  import { Editor as _o, makeDropdownToolbar as Eo } from "easydrawer";
18
- import { P as Is, a as Os, b as Ms } from "./popover-BzJyaFvy.js";
18
+ import { S as Dt } from "./separator-DWLSmuSh.js";
19
+ import { P as Is, a as Os, b as Ms } from "./popover-SMtif0E1.js";
19
20
  import { Excalidraw as ce } from "./Excalidraw.js";
20
- import { I as ae, g as To } from "./Iframe-C6Sb97KS.js";
21
+ import { I as ae, g as To } from "./Iframe-yDX_zHls.js";
21
22
  import Do from "katex";
22
- import { Pencil as Ao, Trash2 as Io, Check as Ai } from "lucide-react";
23
- import { L as Ii, a as Oo, R as Mo } from "./LinkEditBlock-BiHumIJR.js";
23
+ import { Pencil as Ao, Trash2 as Io, Check as Di } from "lucide-react";
24
+ import { T as Ai } from "./textarea-DvciwVxS.js";
25
+ import { L as Ii, a as Oo, R as Mo } from "./LinkEditBlock-qE5KHPQs.js";
24
26
  import { ImageGif as Ro } from "./ImageGif.js";
25
- import { M as Rs, E as No } from "./Mermaid-Dlx0XTJj.js";
27
+ import { M as Rs, E as No } from "./Mermaid-CefRECZY.js";
26
28
  import { RichTextBold as Uo } from "./Bold.js";
27
29
  import { RichTextCode as Lo } from "./Code.js";
28
30
  import "./index-Dl3OjzmR.js";
29
31
  import { RichTextColor as Po } from "./Color.js";
30
32
  import { RichTextHighlight as Bo } from "./Highlight.js";
31
33
  import { RichTextItalic as Vo } from "./Italic.js";
32
- import { r as Ho } from "./SlashCommandNodeView-DzmsYaNc.js";
34
+ import { r as Ho } from "./SlashCommandNodeView-BsIrWlhS.js";
33
35
  import { RichTextStrike as $o } from "./Strike.js";
34
36
  import { RichTextAlign as Fo, TextAlign as zo } from "./TextAlign.js";
35
37
  import { RichTextUnderline as Wo } from "./TextUnderline.js";
36
- import { T as Oi, F as Ko } from "./Twitter-FVQKPaq6.js";
38
+ import { T as Oi, F as Ko } from "./Twitter-DlGSWdh7.js";
37
39
  import { DecorationSet as Mi, Decoration as jo } from "@tiptap/pm/view";
38
40
  import { NodeRange as Yo } from "@tiptap/pm/model";
39
- import { D as Go, a as Jo, b as qo, f as mt, d as Xo, g as Ri, h as Ni, i as Ui, j as Li } from "./dropdown-menu-Ce2TorkG.js";
40
- import { Clear as Zo } from "./Clear.js";
41
- import { I as Qo, a as Pi, s as Bi } from "./Indent-CcFe8py3.js";
41
+ import { Clear as Go } from "./Clear.js";
42
+ import { I as Jo, a as Ri, s as Ni } from "./Indent-CA46zsbb.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-D-mNjyKn.js";
42
44
  function tl(e, t) {
43
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;
44
46
  return new DOMRect(c, a, o, l);
@@ -456,7 +458,7 @@ const il = [
456
458
  { value: "warning", label: "Warning", icon: "TriangleAlert" },
457
459
  { value: "caution", label: "Caution", icon: "OctagonAlert" }
458
460
  ];
459
- function Yd() {
461
+ function Jd() {
460
462
  const e = Z(), t = W(), { t: n } = Y(), { type: i, title: s, body: r } = ie(t, Ne.name, {
461
463
  type: "note",
462
464
  title: "",
@@ -491,15 +493,15 @@ function Yd() {
491
493
  /* @__PURE__ */ x("div", { className: "richtext-space-y-4 richtext-py-4", children: [
492
494
  /* @__PURE__ */ x("div", { className: "richtext-space-y-2", children: [
493
495
  /* @__PURE__ */ f(Tt, { children: n("editor.callout.dialog.type") }),
494
- /* @__PURE__ */ x(co, { onValueChange: a, value: c, children: [
495
- /* @__PURE__ */ f(ao, { children: /* @__PURE__ */ f(
496
- ho,
496
+ /* @__PURE__ */ x(mo, { onValueChange: a, value: c, children: [
497
+ /* @__PURE__ */ f(wo, { children: /* @__PURE__ */ f(
498
+ bo,
497
499
  {
498
500
  className: "richtext-text-accent",
499
501
  placeholder: n("editor.callout.dialog.type.placeholder")
500
502
  }
501
503
  ) }),
502
- /* @__PURE__ */ f(uo, { children: il.map((_) => /* @__PURE__ */ f(fo, { 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)) })
503
505
  ] })
504
506
  ] }),
505
507
  /* @__PURE__ */ x("div", { className: "richtext-space-y-2", children: [
@@ -538,8 +540,8 @@ function Yd() {
538
540
  }
539
541
  ) : /* @__PURE__ */ f(I, {});
540
542
  }
541
- function Gd() {
542
- const e = Z(), t = W(), { t: n } = Y(), i = M(() => t.isActive(Di.name), [t]), s = M(() => se(Di.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]);
543
+ function qd() {
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]);
543
545
  return e ? /* @__PURE__ */ f(
544
546
  Q,
545
547
  {
@@ -742,8 +744,8 @@ function dl(e, t) {
742
744
  componentProps: {
743
745
  tooltip: t(`editor.${s.replace("-", ".")}.tooltip`),
744
746
  icon: i[r],
745
- action: () => e.commands.updateVideo({ width: Ti[s] }),
746
- isActive: () => e.isActive("video", { width: Ti[s] })
747
+ action: () => e.commands.updateVideo({ width: Ei[s] }),
748
+ isActive: () => e.isActive("video", { width: Ei[s] })
747
749
  }
748
750
  }));
749
751
  }
@@ -901,7 +903,7 @@ function wl({ editor: e, attrs: t, extension: n }) {
901
903
  const D = r.current.toSVG(), S = D.outerHTML, k = `drawer-${vo()}.svg`;
902
904
  let N = Co(D.outerHTML);
903
905
  if (a) {
904
- const H = po(N, k);
906
+ const H = co(N, k);
905
907
  N = await a(H);
906
908
  }
907
909
  e == null || e.chain().focus().setDrawer(
@@ -1010,8 +1012,8 @@ function bl({ item: e, disabled: t, editor: n }) {
1010
1012
  }
1011
1013
  ) }) : /* @__PURE__ */ f(I, {});
1012
1014
  }
1013
- function Jd() {
1014
- const { lang: e, t } = Y(), n = Z(), i = W(), s = ie(i, vn.name), r = go(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 }) => {
1015
1017
  const { selection: a } = c.view.state, { $from: h, to: d } = a;
1016
1018
  let u = !1;
1017
1019
  return c.view.state.doc.nodesBetween(h.pos, d, (p) => {
@@ -1101,7 +1103,7 @@ function xl(e) {
1101
1103
  s.disconnect();
1102
1104
  }), { width: Ut.get("width") };
1103
1105
  }
1104
- function qd() {
1106
+ function Zd() {
1105
1107
  const e = Z(), t = W(), { t: n } = Y(), { width: i } = xl(t), s = ie(t, ce.name, {
1106
1108
  defaultShowPicker: !1,
1107
1109
  createUser: "",
@@ -1113,8 +1115,8 @@ function qd() {
1113
1115
  },
1114
1116
  [t]
1115
1117
  ), h = M(() => {
1116
- const p = mo.EXCALIDRAW(t.id);
1117
- wo(p, s);
1118
+ const p = ho.EXCALIDRAW(t.id);
1119
+ uo(p, s);
1118
1120
  }, [t, s]), d = M(() => t.isActive(ce.name), [t]), u = M(() => se(ce.name, t), [t]);
1119
1121
  return pt(() => {
1120
1122
  r && (h(), t.chain().updateAttributes(ce.name, { defaultShowPicker: !1 }).focus().run());
@@ -1133,7 +1135,7 @@ function qd() {
1133
1135
  }
1134
1136
  ) : /* @__PURE__ */ f(I, {});
1135
1137
  }
1136
- function Xd() {
1138
+ function Qd() {
1137
1139
  const e = Z(), t = W(), { t: n } = Y(), { width: i, height: s, src: r } = ie(t, ae.name, {
1138
1140
  width: 0,
1139
1141
  height: 0,
@@ -1179,7 +1181,7 @@ function Xd() {
1179
1181
  /* @__PURE__ */ x(ln, { onOpenChange: l, open: o, children: [
1180
1182
  /* @__PURE__ */ f(cn, { asChild: !0, children: /* @__PURE__ */ f(y, { icon: "Pencil", tooltip: "Open Edit Link" }) }),
1181
1183
  /* @__PURE__ */ x(an, { children: [
1182
- /* @__PURE__ */ f(bo, { children: /* @__PURE__ */ f(hn, { children: "Edit Link Iframe" }) }),
1184
+ /* @__PURE__ */ f(fo, { children: /* @__PURE__ */ f(hn, { children: "Edit Link Iframe" }) }),
1183
1185
  /* @__PURE__ */ f(
1184
1186
  jt,
1185
1187
  {
@@ -1232,7 +1234,7 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
1232
1234
  /* @__PURE__ */ x("div", { className: "richtext-flex-1", children: [
1233
1235
  /* @__PURE__ */ f(Tt, { className: "mb-[6px]", children: "Expression" }),
1234
1236
  /* @__PURE__ */ f(
1235
- Ei,
1237
+ Ai,
1236
1238
  {
1237
1239
  autoFocus: !0,
1238
1240
  className: "richtext-mb-[10px]",
@@ -1248,7 +1250,7 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
1248
1250
  ),
1249
1251
  /* @__PURE__ */ f(Tt, { className: "mb-[6px]", children: "Macros" }),
1250
1252
  /* @__PURE__ */ f(
1251
- Ei,
1253
+ Ai,
1252
1254
  {
1253
1255
  onChange: (m) => d(m.target.value),
1254
1256
  placeholder: "Macros",
@@ -1278,7 +1280,7 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
1278
1280
  ] })
1279
1281
  ] });
1280
1282
  }
1281
- function Zd() {
1283
+ function tu() {
1282
1284
  const e = Z(), t = W(), [n, i] = F(!1), s = M(() => t.isActive(Un.name), [t]), r = M(() => se(Un.name, t), [t]);
1283
1285
  return e ? /* @__PURE__ */ f(
1284
1286
  Q,
@@ -1333,7 +1335,7 @@ function Sl(e) {
1333
1335
  )
1334
1336
  ] });
1335
1337
  }
1336
- function Qd() {
1338
+ function eu() {
1337
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) => {
1338
1340
  const p = t.state.selection, { from: g } = p, m = (d == null ? void 0 : d.length) ?? 0, w = g + m;
1339
1341
  t.chain().extendMarkRange("link").insertContent({
@@ -1393,15 +1395,15 @@ function si({ item: e, disabled: t, editor: n }) {
1393
1395
  ) }) : /* @__PURE__ */ f(I, {});
1394
1396
  }
1395
1397
  function kl(e) {
1396
- return e.type.name === xo.name;
1398
+ return e.type.name === po.name;
1397
1399
  }
1398
1400
  function vl(e) {
1399
1401
  return e.type.name === Ro.name;
1400
1402
  }
1401
1403
  function Cl(e) {
1402
- return e.type.name === yo.name;
1404
+ return e.type.name === go.name;
1403
1405
  }
1404
- function tu() {
1406
+ function nu() {
1405
1407
  const { lang: e, t } = Y(), n = Z(), i = W(), s = ({ editor: o }) => {
1406
1408
  const { selection: l } = o.view.state, { $from: c, to: a } = l;
1407
1409
  let h = !1;
@@ -1421,7 +1423,7 @@ function tu() {
1421
1423
  }
1422
1424
  ) : /* @__PURE__ */ f(I, {});
1423
1425
  }
1424
- function eu() {
1426
+ function iu() {
1425
1427
  const { lang: e, t } = Y(), n = Z(), i = W(), s = ({ editor: o }) => {
1426
1428
  const { selection: l } = o.view.state, { $from: c, to: a } = l;
1427
1429
  let h = !1;
@@ -1441,7 +1443,7 @@ function eu() {
1441
1443
  }
1442
1444
  ) : /* @__PURE__ */ f(I, {});
1443
1445
  }
1444
- function nu() {
1446
+ function su() {
1445
1447
  const { t: e } = Y(), t = Z(), n = W(), i = ({ editor: r }) => {
1446
1448
  const { selection: o } = r.view.state, { $from: l, to: c } = o;
1447
1449
  let a = !1;
@@ -1490,7 +1492,7 @@ function El(e) {
1490
1492
  return r = { node: o, pos: l }, !1;
1491
1493
  }), r;
1492
1494
  }
1493
- function iu() {
1495
+ function ru() {
1494
1496
  const { lang: e, t } = Y(), n = W(), i = ({ editor: r }) => {
1495
1497
  if (!r.isEditable)
1496
1498
  return !1;
@@ -1534,7 +1536,7 @@ function iu() {
1534
1536
  }
1535
1537
  ) : /* @__PURE__ */ f(I, {});
1536
1538
  }
1537
- function su({ hiddenActions: e = [] }) {
1539
+ function ou({ hiddenActions: e = [] }) {
1538
1540
  var m, w, b, _, V, E, P, D, S, k, N, H, nt, Rt, Nt, v, gt, Oe;
1539
1541
  const { t } = Y(), n = Z(), i = W(), s = ({ editor: Kt }) => Xr(Kt.view.state, lo.name), r = (Kt) => e.includes(Kt);
1540
1542
  function o() {
@@ -1738,8 +1740,8 @@ function Tl() {
1738
1740
  },
1739
1741
  children: [
1740
1742
  /* @__PURE__ */ x("div", { className: "!richtext-min-w-[20px]", children: [
1741
- l && /* @__PURE__ */ f(Ai, { size: 16 }),
1742
- !r && o.label === e("editor.paragraph.tooltip") && !l && /* @__PURE__ */ f(Ai, { size: 16 })
1743
+ l && /* @__PURE__ */ f(Di, { size: 16 }),
1744
+ !r && o.label === e("editor.paragraph.tooltip") && !l && /* @__PURE__ */ f(Di, { size: 16 })
1743
1745
  ] }),
1744
1746
  /* @__PURE__ */ x("div", { className: "richtext-flex richtext-items-center richtext-gap-1", children: [
1745
1747
  o.iconName && /* @__PURE__ */ f(
@@ -1788,7 +1790,7 @@ function Dl() {
1788
1790
  /* @__PURE__ */ f(Fo, {})
1789
1791
  ] });
1790
1792
  }
1791
- function ru({ buttonBubble: e }) {
1793
+ function lu({ buttonBubble: e }) {
1792
1794
  const t = W(), n = Z(), i = ({ editor: s }) => {
1793
1795
  const { selection: r } = s.view.state, { $from: o, to: l } = r;
1794
1796
  return o.pos === l ? !1 : r instanceof io;
@@ -1804,7 +1806,7 @@ function ru({ buttonBubble: e }) {
1804
1806
  }
1805
1807
  ) : /* @__PURE__ */ f(I, {});
1806
1808
  }
1807
- function ou() {
1809
+ function cu() {
1808
1810
  const { t: e } = Y(), t = Z(), n = W(), [i, s] = F(!1), r = M(({ editor: c }) => c.isActive(Oi.name), []), o = (c) => {
1809
1811
  n.commands.updateTweet({ src: c }), s(!1);
1810
1812
  }, l = M(() => se(Oi.name, n), [n]);
@@ -9304,14 +9306,14 @@ var sd = (e) => {
9304
9306
  }
9305
9307
  );
9306
9308
  }, rd = sd;
9307
- function cu() {
9309
+ function hu() {
9308
9310
  var D, S, k, N, H, nt, Rt, Nt;
9309
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(
9310
9312
  (v) => (v == null ? void 0 : v.name) === zo.name
9311
9313
  ), h = (N = (k = e == null ? void 0 : e.extensionManager) == null ? void 0 : k.extensions) == null ? void 0 : N.some(
9312
- (v) => (v == null ? void 0 : v.name) === Qo.name
9314
+ (v) => (v == null ? void 0 : v.name) === Jo.name
9313
9315
  ), d = (nt = (H = e == null ? void 0 : e.extensionManager) == null ? void 0 : H.extensions) == null ? void 0 : nt.some(
9314
- (v) => (v == null ? void 0 : v.name) === Zo.name
9316
+ (v) => (v == null ? void 0 : v.name) === Go.name
9315
9317
  );
9316
9318
  function u() {
9317
9319
  const v = e.chain();
@@ -9329,11 +9331,11 @@ function cu() {
9329
9331
  e.commands.setTextAlign(v);
9330
9332
  }
9331
9333
  function w() {
9332
- const v = Bi(e.state.tr, r, 1);
9334
+ const v = Ni(e.state.tr, r, 1);
9333
9335
  v.setMeta("hideDragHandle", !0), e.view.dispatch && e.view.dispatch(v);
9334
9336
  }
9335
9337
  function b() {
9336
- const v = Bi(e.state.tr, r, -1);
9338
+ const v = Ni(e.state.tr, r, -1);
9337
9339
  e.view.dispatch && e.view.dispatch(v);
9338
9340
  }
9339
9341
  function _() {
@@ -9382,10 +9384,10 @@ function cu() {
9382
9384
  }
9383
9385
  }
9384
9386
  ),
9385
- /* @__PURE__ */ x(Go, { onOpenChange: P, open: l, children: [
9386
- /* @__PURE__ */ f(Jo, { className: "richtext-pointer-events-none" }),
9387
+ /* @__PURE__ */ x(qo, { onOpenChange: P, open: l, children: [
9388
+ /* @__PURE__ */ f(Xo, { className: "richtext-pointer-events-none" }),
9387
9389
  /* @__PURE__ */ x(
9388
- qo,
9390
+ Zo,
9389
9391
  {
9390
9392
  align: "start",
9391
9393
  className: "richtext-w-48",
@@ -9430,13 +9432,13 @@ function cu() {
9430
9432
  /* @__PURE__ */ f(tt, { name: "Copy" }),
9431
9433
  /* @__PURE__ */ f("span", { children: n("editor.copy") })
9432
9434
  ] }),
9433
- a || h ? /* @__PURE__ */ f(Xo, {}) : null,
9434
- a ? /* @__PURE__ */ x(Ri, { children: [
9435
- /* @__PURE__ */ x(Ni, { className: "richtext-flex richtext-gap-3", children: [
9435
+ a || h ? /* @__PURE__ */ f(Qo, {}) : null,
9436
+ a ? /* @__PURE__ */ x(Ui, { children: [
9437
+ /* @__PURE__ */ x(Li, { className: "richtext-flex richtext-gap-3", children: [
9436
9438
  /* @__PURE__ */ f(tt, { name: "AlignCenter" }),
9437
9439
  /* @__PURE__ */ f("span", { children: n("editor.textalign.tooltip") })
9438
9440
  ] }),
9439
- /* @__PURE__ */ f(Ui, { children: /* @__PURE__ */ x(Li, { children: [
9441
+ /* @__PURE__ */ f(Pi, { children: /* @__PURE__ */ x(Bi, { children: [
9440
9442
  /* @__PURE__ */ x(
9441
9443
  mt,
9442
9444
  {
@@ -9472,17 +9474,17 @@ function cu() {
9472
9474
  )
9473
9475
  ] }) })
9474
9476
  ] }) : null,
9475
- h ? /* @__PURE__ */ x(Ri, { children: [
9476
- /* @__PURE__ */ x(Ni, { className: "richtext-flex richtext-gap-3", children: [
9477
+ h ? /* @__PURE__ */ x(Ui, { children: [
9478
+ /* @__PURE__ */ x(Li, { className: "richtext-flex richtext-gap-3", children: [
9477
9479
  /* @__PURE__ */ f(tt, { name: "IndentIncrease" }),
9478
9480
  /* @__PURE__ */ f("span", { children: n("editor.indent") })
9479
9481
  ] }),
9480
- /* @__PURE__ */ f(Ui, { children: /* @__PURE__ */ x(Li, { children: [
9482
+ /* @__PURE__ */ f(Pi, { children: /* @__PURE__ */ x(Bi, { children: [
9481
9483
  /* @__PURE__ */ x(
9482
9484
  mt,
9483
9485
  {
9484
9486
  className: "richtext-flex richtext-gap-3",
9485
- disabled: ((Rt = i == null ? void 0 : i.attrs) == null ? void 0 : Rt.indent) >= Pi.max,
9487
+ disabled: ((Rt = i == null ? void 0 : i.attrs) == null ? void 0 : Rt.indent) >= Ri.max,
9486
9488
  onClick: w,
9487
9489
  children: [
9488
9490
  /* @__PURE__ */ f(tt, { name: "IndentIncrease" }),
@@ -9494,7 +9496,7 @@ function cu() {
9494
9496
  mt,
9495
9497
  {
9496
9498
  className: "richtext-flex richtext-gap-3",
9497
- disabled: ((Nt = i == null ? void 0 : i.attrs) == null ? void 0 : Nt.indent) <= Pi.min,
9499
+ disabled: ((Nt = i == null ? void 0 : i.attrs) == null ? void 0 : Nt.indent) <= Ri.min,
9498
9500
  onClick: b,
9499
9501
  children: [
9500
9502
  /* @__PURE__ */ f(tt, { name: "IndentDecrease" }),
@@ -9513,19 +9515,19 @@ function cu() {
9513
9515
  );
9514
9516
  }
9515
9517
  export {
9516
- Yd as RichTextBubbleCallout,
9517
- Gd as RichTextBubbleColumns,
9518
- Jd as RichTextBubbleDrawer,
9519
- qd as RichTextBubbleExcalidraw,
9520
- Xd as RichTextBubbleIframe,
9521
- tu as RichTextBubbleImage,
9522
- eu as RichTextBubbleImageGif,
9523
- Zd as RichTextBubbleKatex,
9524
- Qd as RichTextBubbleLink,
9525
- cu as RichTextBubbleMenuDragHandle,
9526
- iu as RichTextBubbleMermaid,
9527
- su as RichTextBubbleTable,
9528
- ru as RichTextBubbleText,
9529
- ou as RichTextBubbleTwitter,
9530
- nu 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
9531
9533
  };
@@ -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 {};
@@ -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-CnKgiZFQ.js";
5
+ import { c as o } from "./index-CelRl0mr.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
  {
@@ -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-BynXHtjJ.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-CUnpdrCy.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;