@remarkablejames/editor 0.0.7 → 0.0.9
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.
- package/lib/ActionMenuButton-DI9_8wC0.cjs +1 -0
- package/lib/{ActionMenuButton-nxV91Fqo.js → ActionMenuButton-DL05l66z.js} +9 -10
- package/lib/Attachment.cjs +1 -19
- package/lib/Attachment.js +7 -270
- package/lib/Blockquote.cjs +2 -2
- package/lib/Blockquote.js +13 -12
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +11 -10
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +9 -8
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +41 -45
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +13 -14
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +6 -5
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +30 -31
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +9 -8
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +18 -19
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +9 -8
- package/lib/Drawer-DEzhWKwY.cjs +2 -0
- package/lib/{Drawer-CF6Z_IA2.js → Drawer-DhM1qM6R.js} +41 -47
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +3 -3
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +14 -15
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +28 -33
- package/lib/ExportPdf.cjs +3 -3
- package/lib/ExportPdf.js +14 -13
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +6 -6
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +7 -6
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +15 -14
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +26 -26
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +22 -23
- package/lib/History.cjs +1 -1
- package/lib/History.js +11 -11
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +10 -9
- package/lib/Iframe-DbYJ82AI.cjs +1 -0
- package/lib/{Iframe-Dfd3LI7b.js → Iframe-yDX_zHls.js} +11 -14
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +3 -3
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +4 -5
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +83 -86
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +26 -28
- package/lib/{Indent-CDVF9DWN.js → Indent-CA46zsbb.js} +31 -30
- package/lib/Indent-CYaCq_Mv.cjs +1 -0
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +12 -11
- package/lib/Katex-Dh-kTBjf.cjs +4 -0
- package/lib/{Katex-DqhWWAA-.js → Katex-g3ZS3zUf.js} +19 -22
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +19 -20
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/LinkEditBlock-ClqpI1FH.cjs +5 -0
- package/lib/{LinkEditBlock-xP0pGVhB.js → LinkEditBlock-qE5KHPQs.js} +19 -24
- package/lib/Mention.js +3 -3
- package/lib/Mermaid-BmUChJSB.cjs +2 -0
- package/lib/{Mermaid-BJ6ryVdY.js → Mermaid-CefRECZY.js} +45 -48
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +26 -28
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +11 -10
- package/lib/PaywallSeparator.cjs +1 -1
- package/lib/PaywallSeparator.js +9 -9
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +37 -42
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +5 -5
- package/lib/{SlashCommandNodeView-DS9FqMiY.js → SlashCommandNodeView-BsIrWlhS.js} +19 -21
- package/lib/SlashCommandNodeView-DpXsfGmo.cjs +1 -0
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +12 -11
- package/lib/Table-B-0TePQ3.cjs +5 -0
- package/lib/{Table-CcG-JNtV.js → Table-CG0nisk4.js} +46 -46
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +12 -11
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +26 -27
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +18 -19
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +9 -8
- package/lib/{Twitter-BIL3o833.js → Twitter-DlGSWdh7.js} +18 -22
- package/lib/Twitter-DvMmVNMF.cjs +1 -0
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +2 -2
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +4 -5
- package/lib/bubble.cjs +3 -3
- package/lib/bubble.js +77 -86
- package/lib/{clsx-m_C5j3RU.js → clsx-BUPZHhq3.js} +24 -24
- package/lib/{dropdown-menu-DWt_xj4h.js → dropdown-menu-D-mNjyKn.js} +1 -1
- package/lib/{dropdown-menu-tUP872Zv.cjs → dropdown-menu-gOopBX-L.cjs} +1 -1
- package/lib/index-CUnpdrCy.cjs +28 -0
- package/lib/index-CelRl0mr.js +5447 -0
- package/lib/{index-C8FjP66D.js → index-D4M4hrH4.js} +1 -1
- package/lib/{index-s3l5RdyW.js → index-DZj2z9_1.js} +1 -1
- package/lib/{index-C1KQsOcg.js → index-Dl3OjzmR.js} +1 -1
- package/lib/{index-B3Ijnbxs.js → index-RkKGy5oa.js} +1 -1
- package/lib/index.cjs +4 -4
- package/lib/index.js +161 -464
- package/lib/{popover-C3A6zzNV.cjs → popover-DEMkixfo.cjs} +1 -1
- package/lib/{popover-BC7FRr8B.js → popover-SMtif0E1.js} +1 -1
- package/lib/{renderNodeView-C_hPIdEs.js → renderNodeView-dj6AaFSX.js} +2 -2
- package/lib/{select-B8HIWDXf.cjs → select-BqlizSg4.cjs} +1 -1
- package/lib/{select-DSKqhVGR.js → select-Dc3RkAhQ.js} +1 -1
- package/lib/{separator-BJWSNjvr.js → separator-DWLSmuSh.js} +12 -13
- package/lib/separator-DuP4NoiV.cjs +1 -0
- package/lib/style.css +1 -1
- package/lib/{textarea-CtVdqwSM.cjs → textarea-C89l2GRG.cjs} +1 -1
- package/lib/{textarea-Ch5w3PiI.js → textarea-DvciwVxS.js} +1 -1
- package/lib/theme.cjs +1 -1
- package/lib/theme.js +18 -18
- package/lib/{updatePosition-DvfTZHcH.js → updatePosition-C294Pixi.js} +2 -2
- package/package.json +1 -1
- package/lib/ActionMenuButton-D9o3Kwmv.cjs +0 -1
- package/lib/Drawer-Bh-y5bs8.cjs +0 -2
- package/lib/Icon-BvGyfX2j.js +0 -15
- package/lib/Icon-wjwoRc9F.cjs +0 -1
- package/lib/Iframe-BbfZKbPY.cjs +0 -1
- package/lib/ImageCropper-CY1ETEjC.cjs +0 -10
- package/lib/ImageCropper-DrSdjo9x.js +0 -979
- package/lib/Indent-Q1VuhSM2.cjs +0 -1
- package/lib/Katex-K1QU2SB2.cjs +0 -4
- package/lib/LinkEditBlock-CBYGLs3J.cjs +0 -5
- package/lib/Mermaid-D3_nLeOW.cjs +0 -2
- package/lib/SlashCommandNodeView-CUJrDQS7.cjs +0 -1
- package/lib/Table-CV6pUoVf.cjs +0 -5
- package/lib/Twitter-BfSTqPDh.cjs +0 -1
- package/lib/Video-DAKr90QL.js +0 -231
- package/lib/Video-HAinT0w6.cjs +0 -1
- package/lib/button-090-I3tp.js +0 -35
- package/lib/button-B4Sz2ZhW.cjs +0 -1
- package/lib/checkbox-BCPsu7yR.cjs +0 -1
- package/lib/checkbox-DiXWHAI0.js +0 -29
- package/lib/dialog-C8J59d2J.cjs +0 -1
- package/lib/dialog-bDkDW-C_.js +0 -95
- package/lib/dom-dataset-BqoJhJXt.cjs +0 -1
- package/lib/dom-dataset-CIEeltF6.js +0 -47
- package/lib/events.constant-Bke62qxm.cjs +0 -1
- package/lib/events.constant-CSWD3-ho.js +0 -72
- package/lib/file-i7e4nQY2.cjs +0 -1
- package/lib/file-jDdkhyj7.js +0 -43
- package/lib/index-BXh8X1ch.cjs +0 -1
- package/lib/index-jMN4V2hr.js +0 -2763
- package/lib/input-C_J-pfTx.js +0 -21
- package/lib/input-DwLo4r7V.cjs +0 -1
- package/lib/isNumber-BTYSVlKo.cjs +0 -1
- package/lib/isNumber-WaBzl_0s.js +0 -15
- package/lib/label-BgIVynq3.cjs +0 -1
- package/lib/label-ClsOg9Hr.js +0 -11
- package/lib/separator-D6ruF682.cjs +0 -1
- package/lib/tabs-D1J1iB7B.js +0 -46
- package/lib/tabs-IEbMQmNX.cjs +0 -1
- package/lib/throttle-CRNq0z-O.js +0 -249
- package/lib/throttle-gTTvqDTW.cjs +0 -1
- package/lib/toggle-C9tcMm1r.cjs +0 -1
- package/lib/toggle-CaSwYCk4.js +0 -89
- package/lib/use-toast-C6zPo25l.cjs +0 -1
- package/lib/use-toast-CEOqhXfx.js +0 -97
- package/lib/useButtonProps-D-ruygH7.js +0 -165
- package/lib/useButtonProps-D9ndBdmA.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 {
|
|
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-
|
|
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";
|
|
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-
|
|
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 { A as y } from "./
|
|
9
|
-
import {
|
|
10
|
-
import { S as ao, a as ho, b as uo, c as fo, d as po } from "./select-DSKqhVGR.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";
|
|
11
10
|
import { Callout as Ne } from "./Callout.js";
|
|
12
|
-
import { u as ie, K as Un, s as
|
|
11
|
+
import { u as ie, K as Un, s as So } from "./Katex-g3ZS3zUf.js";
|
|
13
12
|
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";
|
|
15
13
|
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";
|
|
19
14
|
import { MultipleColumnNode as Ti } from "./Column.js";
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { S as Dt } from "./separator-
|
|
24
|
-
import {
|
|
25
|
-
import { P as Is, a as Os, b as Ms } from "./popover-BC7FRr8B.js";
|
|
15
|
+
import "./theme.js";
|
|
16
|
+
import { C as ko, s as vo, i as Co, D as vn } from "./Drawer-DhM1qM6R.js";
|
|
17
|
+
import { Editor as _o, makeDropdownToolbar as Eo } from "easydrawer";
|
|
18
|
+
import { S as Dt } from "./separator-DWLSmuSh.js";
|
|
19
|
+
import { P as Is, a as Os, b as Ms } from "./popover-SMtif0E1.js";
|
|
26
20
|
import { Excalidraw as ce } from "./Excalidraw.js";
|
|
27
|
-
import { I as ae, g as
|
|
28
|
-
import
|
|
29
|
-
import { Pencil as
|
|
30
|
-
import { T as Ai } from "./textarea-
|
|
31
|
-
import { L as Ii, a as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { V as Ro } from "./Video-DAKr90QL.js";
|
|
35
|
-
import { M as Rs, E as No } from "./Mermaid-BJ6ryVdY.js";
|
|
21
|
+
import { I as ae, g as To } from "./Iframe-yDX_zHls.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-DvciwVxS.js";
|
|
25
|
+
import { L as Ii, a as Oo, R as Mo } from "./LinkEditBlock-qE5KHPQs.js";
|
|
26
|
+
import { ImageGif as Ro } from "./ImageGif.js";
|
|
27
|
+
import { M as Rs, E as No } from "./Mermaid-CefRECZY.js";
|
|
36
28
|
import { RichTextBold as Uo } from "./Bold.js";
|
|
37
29
|
import { RichTextCode as Lo } from "./Code.js";
|
|
38
|
-
import "./index-
|
|
30
|
+
import "./index-Dl3OjzmR.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-
|
|
34
|
+
import { r as Ho } from "./SlashCommandNodeView-BsIrWlhS.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 {
|
|
47
|
-
import { T as Oi, F as Ko } from "./Twitter-BIL3o833.js";
|
|
38
|
+
import { T as Oi, F as Ko } from "./Twitter-DlGSWdh7.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-
|
|
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-
|
|
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";
|
|
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
|
|
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(
|
|
506
|
-
/* @__PURE__ */ f(
|
|
507
|
-
|
|
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(
|
|
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
|
|
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
|
|
890
|
+
S && (r.current = new _o(S, {
|
|
900
891
|
wheelEventsEnabled: !1,
|
|
901
892
|
disableZoom: !0
|
|
902
|
-
}), o.current =
|
|
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-${
|
|
913
|
-
let N =
|
|
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 =
|
|
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
|
-
|
|
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
|
|
1025
|
-
const { lang: e, t } = Y(), n = Z(), i = W(), s = ie(i, vn.name), r =
|
|
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
|
|
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 =
|
|
1128
|
-
|
|
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
|
|
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 =
|
|
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(
|
|
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
|
|
1232
|
-
macros:
|
|
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
|
|
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(
|
|
1303
|
-
/* @__PURE__ */ f(y, { action: r, tooltip: "Delete", children: /* @__PURE__ */ f(
|
|
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
|
|
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(
|
|
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 ===
|
|
1398
|
+
return e.type.name === po.name;
|
|
1408
1399
|
}
|
|
1409
1400
|
function vl(e) {
|
|
1410
|
-
return e.type.name ===
|
|
1401
|
+
return e.type.name === Ro.name;
|
|
1411
1402
|
}
|
|
1412
1403
|
function Cl(e) {
|
|
1413
|
-
return e.type.name ===
|
|
1404
|
+
return e.type.name === go.name;
|
|
1414
1405
|
}
|
|
1415
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
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
|
-
|
|
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
|
-
|
|
7337
|
-
|
|
7336
|
+
ur as K,
|
|
7337
|
+
qe as L,
|
|
7338
7338
|
Qa as M,
|
|
7339
7339
|
ll as N,
|
|
7340
|
-
|
|
7340
|
+
qa as O,
|
|
7341
7341
|
sr as P,
|
|
7342
|
-
|
|
7342
|
+
ja as Q,
|
|
7343
7343
|
Ia as R,
|
|
7344
7344
|
A as S,
|
|
7345
7345
|
$ as T,
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
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
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
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,
|
|
7366
7366
|
Ka as b,
|
|
7367
7367
|
Ha as c,
|
|
7368
7368
|
Za as d,
|
|
@@ -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-
|
|
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-
|
|
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;
|