@remarkablejames/editor 0.0.6 → 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.
- package/README.md +1 -1
- package/lib/ActionMenuButton-D9o3Kwmv.cjs +1 -0
- package/lib/{ActionMenuButton-CpmEfz31.js → ActionMenuButton-nxV91Fqo.js} +10 -9
- package/lib/Attachment.cjs +19 -1
- package/lib/Attachment.js +270 -7
- package/lib/Blockquote.cjs +2 -2
- package/lib/Blockquote.js +12 -13
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +10 -11
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +8 -9
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +45 -40
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +14 -13
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +5 -6
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +33 -31
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +8 -9
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +19 -18
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +8 -9
- package/lib/Drawer-Bh-y5bs8.cjs +2 -0
- package/lib/{Drawer-CayP4Ww4.js → Drawer-CF6Z_IA2.js} +36 -30
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +3 -3
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +18 -17
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +37 -32
- package/lib/ExportPdf.cjs +3 -3
- package/lib/ExportPdf.js +13 -14
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +6 -6
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +6 -7
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +14 -15
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +28 -28
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +23 -22
- package/lib/History.cjs +1 -1
- package/lib/History.js +11 -11
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +9 -10
- package/lib/Icon-BvGyfX2j.js +15 -0
- package/lib/Icon-wjwoRc9F.cjs +1 -0
- package/lib/Iframe-BbfZKbPY.cjs +1 -0
- package/lib/{Iframe-C6Sb97KS.js → Iframe-Dfd3LI7b.js} +14 -11
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +3 -3
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +5 -4
- package/lib/ImageCropper-CY1ETEjC.cjs +10 -0
- package/lib/ImageCropper-DrSdjo9x.js +979 -0
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +83 -80
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +37 -35
- package/lib/{Indent-CcFe8py3.js → Indent-CDVF9DWN.js} +30 -31
- package/lib/Indent-Q1VuhSM2.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 +11 -12
- package/lib/{Katex-Bp6AnIUF.js → Katex-DqhWWAA-.js} +22 -18
- package/lib/Katex-K1QU2SB2.cjs +4 -0
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +20 -19
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/LinkEditBlock-CBYGLs3J.cjs +5 -0
- package/lib/{LinkEditBlock-BiHumIJR.js → LinkEditBlock-xP0pGVhB.js} +27 -22
- package/lib/Mention.js +3 -3
- package/lib/{Mermaid-Dlx0XTJj.js → Mermaid-BJ6ryVdY.js} +59 -55
- package/lib/Mermaid-D3_nLeOW.cjs +2 -0
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +28 -26
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +10 -11
- package/lib/PaywallSeparator.cjs +1 -1
- package/lib/PaywallSeparator.js +9 -9
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +39 -34
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +5 -5
- package/lib/SlashCommandNodeView-CUJrDQS7.cjs +1 -0
- package/lib/{SlashCommandNodeView-DzmsYaNc.js → SlashCommandNodeView-DS9FqMiY.js} +23 -21
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +11 -12
- package/lib/Table-CV6pUoVf.cjs +5 -0
- package/lib/{Table-IH34r4jd.js → Table-CcG-JNtV.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 +11 -12
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +27 -26
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +19 -18
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +8 -9
- package/lib/{Twitter-FVQKPaq6.js → Twitter-BIL3o833.js} +19 -15
- package/lib/Twitter-BfSTqPDh.cjs +1 -0
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +2 -2
- package/lib/Video-DAKr90QL.js +231 -0
- package/lib/Video-HAinT0w6.cjs +1 -0
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +5 -4
- package/lib/bubble.cjs +3 -3
- package/lib/bubble.js +112 -101
- package/lib/button-090-I3tp.js +35 -0
- package/lib/button-B4Sz2ZhW.cjs +1 -0
- package/lib/checkbox-BCPsu7yR.cjs +1 -0
- package/lib/checkbox-DiXWHAI0.js +29 -0
- package/lib/{clsx-BUPZHhq3.js → clsx-m_C5j3RU.js} +24 -24
- package/lib/components/RichTextProvider.d.ts +1 -1
- package/lib/dialog-C8J59d2J.cjs +1 -0
- package/lib/dialog-bDkDW-C_.js +95 -0
- package/lib/dom-dataset-BqoJhJXt.cjs +1 -0
- package/lib/dom-dataset-CIEeltF6.js +47 -0
- package/lib/{dropdown-menu-Ce2TorkG.js → dropdown-menu-DWt_xj4h.js} +1 -1
- package/lib/{dropdown-menu-DirUyRAI.cjs → dropdown-menu-tUP872Zv.cjs} +1 -1
- package/lib/events.constant-Bke62qxm.cjs +1 -0
- package/lib/events.constant-CSWD3-ho.js +72 -0
- package/lib/file-i7e4nQY2.cjs +1 -0
- package/lib/file-jDdkhyj7.js +43 -0
- package/lib/{index-RkKGy5oa.js → index-B3Ijnbxs.js} +1 -1
- package/lib/index-BXh8X1ch.cjs +1 -0
- package/lib/{index-Dl3OjzmR.js → index-C1KQsOcg.js} +1 -1
- package/lib/{index-D4M4hrH4.js → index-C8FjP66D.js} +1 -1
- package/lib/index-jMN4V2hr.js +2763 -0
- package/lib/{index-DZj2z9_1.js → index-s3l5RdyW.js} +1 -1
- package/lib/index.cjs +4 -4
- package/lib/index.js +464 -149
- package/lib/input-C_J-pfTx.js +21 -0
- package/lib/input-DwLo4r7V.cjs +1 -0
- package/lib/isNumber-BTYSVlKo.cjs +1 -0
- package/lib/isNumber-WaBzl_0s.js +15 -0
- package/lib/label-BgIVynq3.cjs +1 -0
- package/lib/label-ClsOg9Hr.js +11 -0
- package/lib/{popover-BzJyaFvy.js → popover-BC7FRr8B.js} +1 -1
- package/lib/{popover-BdLwAlrM.cjs → popover-C3A6zzNV.cjs} +1 -1
- package/lib/{renderNodeView-dj6AaFSX.js → renderNodeView-C_hPIdEs.js} +2 -2
- package/lib/select-B8HIWDXf.cjs +1 -0
- package/lib/select-DSKqhVGR.js +120 -0
- package/lib/{separator-D-fyzbfx.js → separator-BJWSNjvr.js} +23 -22
- package/lib/separator-D6ruF682.cjs +1 -0
- package/lib/style.css +1 -1
- package/lib/tabs-D1J1iB7B.js +46 -0
- package/lib/tabs-IEbMQmNX.cjs +1 -0
- package/lib/textarea-Ch5w3PiI.js +20 -0
- package/lib/textarea-CtVdqwSM.cjs +1 -0
- package/lib/theme.cjs +1 -1
- package/lib/theme.js +18 -18
- package/lib/throttle-CRNq0z-O.js +249 -0
- package/lib/throttle-gTTvqDTW.cjs +1 -0
- package/lib/toggle-C9tcMm1r.cjs +1 -0
- package/lib/toggle-CaSwYCk4.js +89 -0
- package/lib/{updatePosition-C294Pixi.js → updatePosition-DvfTZHcH.js} +2 -2
- package/lib/use-toast-C6zPo25l.cjs +1 -0
- package/lib/use-toast-CEOqhXfx.js +97 -0
- package/lib/useButtonProps-D-ruygH7.js +165 -0
- package/lib/useButtonProps-D9ndBdmA.cjs +1 -0
- package/package.json +21 -32
- package/lib/ActionMenuButton-NfiUDE60.cjs +0 -1
- package/lib/Drawer-DlgdaO_B.cjs +0 -2
- package/lib/Iframe-CANdxSpV.cjs +0 -1
- package/lib/Indent-DuB2U6Cs.cjs +0 -1
- package/lib/Katex-DFU1unCm.cjs +0 -4
- package/lib/LinkEditBlock-C2zX0WVK.cjs +0 -5
- package/lib/Mermaid-B8lQSOGn.cjs +0 -2
- package/lib/SlashCommandNodeView-BfWNWGRr.cjs +0 -1
- package/lib/Table-BfM6ywrZ.cjs +0 -5
- package/lib/Twitter-axcoCgD7.cjs +0 -1
- package/lib/index-BynXHtjJ.cjs +0 -28
- package/lib/index-CnKgiZFQ.js +0 -5576
- package/lib/separator-CoQaQmFK.cjs +0 -1
package/lib/bubble.js
CHANGED
|
@@ -1,44 +1,55 @@
|
|
|
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 { 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-
|
|
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 {
|
|
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";
|
|
9
11
|
import { Callout as Ne } from "./Callout.js";
|
|
10
|
-
import { u as ie, K as Un, s as
|
|
11
|
-
import { u as Y, n as Ye, V as
|
|
12
|
+
import { u as ie, K as Un, s as go } from "./Katex-DqhWWAA-.js";
|
|
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";
|
|
12
15
|
import { d as se } from "./delete-node-eQHsyyhR.js";
|
|
13
|
-
import {
|
|
14
|
-
import "./
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
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
|
+
import { MultipleColumnNode as Ti } from "./Column.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";
|
|
19
26
|
import { Excalidraw as ce } from "./Excalidraw.js";
|
|
20
|
-
import { I as ae, g as
|
|
21
|
-
import
|
|
22
|
-
import { Pencil as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
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";
|
|
26
36
|
import { RichTextBold as Uo } from "./Bold.js";
|
|
27
37
|
import { RichTextCode as Lo } from "./Code.js";
|
|
28
|
-
import "./index-
|
|
38
|
+
import "./index-C1KQsOcg.js";
|
|
29
39
|
import { RichTextColor as Po } from "./Color.js";
|
|
30
40
|
import { RichTextHighlight as Bo } from "./Highlight.js";
|
|
31
41
|
import { RichTextItalic as Vo } from "./Italic.js";
|
|
32
|
-
import { r as Ho } from "./SlashCommandNodeView-
|
|
42
|
+
import { r as Ho } from "./SlashCommandNodeView-DS9FqMiY.js";
|
|
33
43
|
import { RichTextStrike as $o } from "./Strike.js";
|
|
34
44
|
import { RichTextAlign as Fo, TextAlign as zo } from "./TextAlign.js";
|
|
35
45
|
import { RichTextUnderline as Wo } from "./TextUnderline.js";
|
|
36
|
-
import {
|
|
46
|
+
import { I as tt } from "./Icon-BvGyfX2j.js";
|
|
47
|
+
import { T as Oi, F as Ko } from "./Twitter-BIL3o833.js";
|
|
37
48
|
import { DecorationSet as Mi, Decoration as jo } from "@tiptap/pm/view";
|
|
38
49
|
import { NodeRange as Yo } from "@tiptap/pm/model";
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
50
|
+
import { Clear as Go } from "./Clear.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";
|
|
42
53
|
function tl(e, t) {
|
|
43
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;
|
|
44
55
|
return new DOMRect(c, a, o, l);
|
|
@@ -456,7 +467,7 @@ const il = [
|
|
|
456
467
|
{ value: "warning", label: "Warning", icon: "TriangleAlert" },
|
|
457
468
|
{ value: "caution", label: "Caution", icon: "OctagonAlert" }
|
|
458
469
|
];
|
|
459
|
-
function
|
|
470
|
+
function su() {
|
|
460
471
|
const e = Z(), t = W(), { t: n } = Y(), { type: i, title: s, body: r } = ie(t, Ne.name, {
|
|
461
472
|
type: "note",
|
|
462
473
|
title: "",
|
|
@@ -491,15 +502,15 @@ function Yd() {
|
|
|
491
502
|
/* @__PURE__ */ x("div", { className: "richtext-space-y-4 richtext-py-4", children: [
|
|
492
503
|
/* @__PURE__ */ x("div", { className: "richtext-space-y-2", children: [
|
|
493
504
|
/* @__PURE__ */ f(Tt, { children: n("editor.callout.dialog.type") }),
|
|
494
|
-
/* @__PURE__ */ x(
|
|
495
|
-
/* @__PURE__ */ f(
|
|
496
|
-
|
|
505
|
+
/* @__PURE__ */ x(ao, { onValueChange: a, value: c, children: [
|
|
506
|
+
/* @__PURE__ */ f(ho, { children: /* @__PURE__ */ f(
|
|
507
|
+
uo,
|
|
497
508
|
{
|
|
498
509
|
className: "richtext-text-accent",
|
|
499
510
|
placeholder: n("editor.callout.dialog.type.placeholder")
|
|
500
511
|
}
|
|
501
512
|
) }),
|
|
502
|
-
/* @__PURE__ */ f(
|
|
513
|
+
/* @__PURE__ */ f(fo, { children: il.map((_) => /* @__PURE__ */ f(po, { value: _.value, children: n(`editor.callout.type.${_.value}`) }, _.value)) })
|
|
503
514
|
] })
|
|
504
515
|
] }),
|
|
505
516
|
/* @__PURE__ */ x("div", { className: "richtext-space-y-2", children: [
|
|
@@ -538,8 +549,8 @@ function Yd() {
|
|
|
538
549
|
}
|
|
539
550
|
) : /* @__PURE__ */ f(I, {});
|
|
540
551
|
}
|
|
541
|
-
function
|
|
542
|
-
const e = Z(), t = W(), { t: n } = Y(), i = M(() => t.isActive(
|
|
552
|
+
function ru() {
|
|
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]);
|
|
543
554
|
return e ? /* @__PURE__ */ f(
|
|
544
555
|
Q,
|
|
545
556
|
{
|
|
@@ -742,8 +753,8 @@ function dl(e, t) {
|
|
|
742
753
|
componentProps: {
|
|
743
754
|
tooltip: t(`editor.${s.replace("-", ".")}.tooltip`),
|
|
744
755
|
icon: i[r],
|
|
745
|
-
action: () => e.commands.updateVideo({ width:
|
|
746
|
-
isActive: () => e.isActive("video", { width:
|
|
756
|
+
action: () => e.commands.updateVideo({ width: Ei[s] }),
|
|
757
|
+
isActive: () => e.isActive("video", { width: Ei[s] })
|
|
747
758
|
}
|
|
748
759
|
}));
|
|
749
760
|
}
|
|
@@ -885,10 +896,10 @@ function wl({ editor: e, attrs: t, extension: n }) {
|
|
|
885
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 = () => {
|
|
886
897
|
(async () => {
|
|
887
898
|
const S = document.querySelector("#easydrawer");
|
|
888
|
-
S && (r.current = new
|
|
899
|
+
S && (r.current = new yo(S, {
|
|
889
900
|
wheelEventsEnabled: !1,
|
|
890
901
|
disableZoom: !0
|
|
891
|
-
}), o.current =
|
|
902
|
+
}), o.current = So(r.current), o.current.addDefaultToolWidgets(), r.current.loadFromSVG(decodeURIComponent(l)));
|
|
892
903
|
})();
|
|
893
904
|
};
|
|
894
905
|
pt(() => {
|
|
@@ -898,10 +909,10 @@ function wl({ editor: e, attrs: t, extension: n }) {
|
|
|
898
909
|
}, [i]);
|
|
899
910
|
const d = async () => {
|
|
900
911
|
if (r.current) {
|
|
901
|
-
const D = r.current.toSVG(), S = D.outerHTML, k = `drawer-${
|
|
902
|
-
let N =
|
|
912
|
+
const D = r.current.toSVG(), S = D.outerHTML, k = `drawer-${bo()}.svg`;
|
|
913
|
+
let N = xo(D.outerHTML);
|
|
903
914
|
if (a) {
|
|
904
|
-
const H =
|
|
915
|
+
const H = ko(N, k);
|
|
905
916
|
N = await a(H);
|
|
906
917
|
}
|
|
907
918
|
e == null || e.chain().focus().setDrawer(
|
|
@@ -962,7 +973,7 @@ function wl({ editor: e, attrs: t, extension: n }) {
|
|
|
962
973
|
children: [
|
|
963
974
|
/* @__PURE__ */ f("div", { className: "richtext-size-full", id: "easydrawer" }),
|
|
964
975
|
/* @__PURE__ */ f(
|
|
965
|
-
|
|
976
|
+
wo,
|
|
966
977
|
{
|
|
967
978
|
changeBorderColorShape: _,
|
|
968
979
|
changeColorShape: w,
|
|
@@ -1010,8 +1021,8 @@ function bl({ item: e, disabled: t, editor: n }) {
|
|
|
1010
1021
|
}
|
|
1011
1022
|
) }) : /* @__PURE__ */ f(I, {});
|
|
1012
1023
|
}
|
|
1013
|
-
function
|
|
1014
|
-
const { lang: e, t } = Y(), n = Z(), i = W(), s = ie(i, vn.name), r =
|
|
1024
|
+
function ou() {
|
|
1025
|
+
const { lang: e, t } = Y(), n = Z(), i = W(), s = ie(i, vn.name), r = mo(vn.name), o = ({ editor: c }) => {
|
|
1015
1026
|
const { selection: a } = c.view.state, { $from: h, to: d } = a;
|
|
1016
1027
|
let u = !1;
|
|
1017
1028
|
return c.view.state.doc.nodesBetween(h.pos, d, (p) => {
|
|
@@ -1101,7 +1112,7 @@ function xl(e) {
|
|
|
1101
1112
|
s.disconnect();
|
|
1102
1113
|
}), { width: Ut.get("width") };
|
|
1103
1114
|
}
|
|
1104
|
-
function
|
|
1115
|
+
function lu() {
|
|
1105
1116
|
const e = Z(), t = W(), { t: n } = Y(), { width: i } = xl(t), s = ie(t, ce.name, {
|
|
1106
1117
|
defaultShowPicker: !1,
|
|
1107
1118
|
createUser: "",
|
|
@@ -1113,8 +1124,8 @@ function qd() {
|
|
|
1113
1124
|
},
|
|
1114
1125
|
[t]
|
|
1115
1126
|
), h = M(() => {
|
|
1116
|
-
const p =
|
|
1117
|
-
|
|
1127
|
+
const p = vo.EXCALIDRAW(t.id);
|
|
1128
|
+
Co(p, s);
|
|
1118
1129
|
}, [t, s]), d = M(() => t.isActive(ce.name), [t]), u = M(() => se(ce.name, t), [t]);
|
|
1119
1130
|
return pt(() => {
|
|
1120
1131
|
r && (h(), t.chain().updateAttributes(ce.name, { defaultShowPicker: !1 }).focus().run());
|
|
@@ -1133,7 +1144,7 @@ function qd() {
|
|
|
1133
1144
|
}
|
|
1134
1145
|
) : /* @__PURE__ */ f(I, {});
|
|
1135
1146
|
}
|
|
1136
|
-
function
|
|
1147
|
+
function cu() {
|
|
1137
1148
|
const e = Z(), t = W(), { t: n } = Y(), { width: i, height: s, src: r } = ie(t, ae.name, {
|
|
1138
1149
|
width: 0,
|
|
1139
1150
|
height: 0,
|
|
@@ -1153,7 +1164,7 @@ function Xd() {
|
|
|
1153
1164
|
(w) => {
|
|
1154
1165
|
var _;
|
|
1155
1166
|
(_ = w == null ? void 0 : w.preventDefault) == null || _.call(w);
|
|
1156
|
-
const b =
|
|
1167
|
+
const b = _o(c);
|
|
1157
1168
|
t.chain().updateAttributes(ae.name, {
|
|
1158
1169
|
src: (b == null ? void 0 : b.src) || c
|
|
1159
1170
|
}).setNodeSelection(t.state.selection.from).focus().run(), l(!1);
|
|
@@ -1179,7 +1190,7 @@ function Xd() {
|
|
|
1179
1190
|
/* @__PURE__ */ x(ln, { onOpenChange: l, open: o, children: [
|
|
1180
1191
|
/* @__PURE__ */ f(cn, { asChild: !0, children: /* @__PURE__ */ f(y, { icon: "Pencil", tooltip: "Open Edit Link" }) }),
|
|
1181
1192
|
/* @__PURE__ */ x(an, { children: [
|
|
1182
|
-
/* @__PURE__ */ f(
|
|
1193
|
+
/* @__PURE__ */ f(co, { children: /* @__PURE__ */ f(hn, { children: "Edit Link Iframe" }) }),
|
|
1183
1194
|
/* @__PURE__ */ f(
|
|
1184
1195
|
jt,
|
|
1185
1196
|
{
|
|
@@ -1217,8 +1228,8 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
|
|
|
1217
1228
|
}).run(), a(""), d(""), n(!1);
|
|
1218
1229
|
}, [s, c, h, n]), p = yt(() => {
|
|
1219
1230
|
try {
|
|
1220
|
-
return
|
|
1221
|
-
macros:
|
|
1231
|
+
return Eo.renderToString(c, {
|
|
1232
|
+
macros: go(h || "")
|
|
1222
1233
|
});
|
|
1223
1234
|
} catch {
|
|
1224
1235
|
return c;
|
|
@@ -1232,7 +1243,7 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
|
|
|
1232
1243
|
/* @__PURE__ */ x("div", { className: "richtext-flex-1", children: [
|
|
1233
1244
|
/* @__PURE__ */ f(Tt, { className: "mb-[6px]", children: "Expression" }),
|
|
1234
1245
|
/* @__PURE__ */ f(
|
|
1235
|
-
|
|
1246
|
+
Ai,
|
|
1236
1247
|
{
|
|
1237
1248
|
autoFocus: !0,
|
|
1238
1249
|
className: "richtext-mb-[10px]",
|
|
@@ -1248,7 +1259,7 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
|
|
|
1248
1259
|
),
|
|
1249
1260
|
/* @__PURE__ */ f(Tt, { className: "mb-[6px]", children: "Macros" }),
|
|
1250
1261
|
/* @__PURE__ */ f(
|
|
1251
|
-
|
|
1262
|
+
Ai,
|
|
1252
1263
|
{
|
|
1253
1264
|
onChange: (m) => d(m.target.value),
|
|
1254
1265
|
placeholder: "Macros",
|
|
@@ -1278,7 +1289,7 @@ function yl({ children: e, visible: t, toggleVisible: n }) {
|
|
|
1278
1289
|
] })
|
|
1279
1290
|
] });
|
|
1280
1291
|
}
|
|
1281
|
-
function
|
|
1292
|
+
function au() {
|
|
1282
1293
|
const e = Z(), t = W(), [n, i] = F(!1), s = M(() => t.isActive(Un.name), [t]), r = M(() => se(Un.name, t), [t]);
|
|
1283
1294
|
return e ? /* @__PURE__ */ f(
|
|
1284
1295
|
Q,
|
|
@@ -1288,8 +1299,8 @@ function Zd() {
|
|
|
1288
1299
|
pluginKey: "RichTextBubbleKatex",
|
|
1289
1300
|
shouldShow: s,
|
|
1290
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: [
|
|
1291
|
-
/* @__PURE__ */ f(yl, { toggleVisible: i, visible: n, children: /* @__PURE__ */ f(y, { action: () => i(!n), tooltip: "Edit", children: /* @__PURE__ */ f(
|
|
1292
|
-
/* @__PURE__ */ f(y, { action: r, tooltip: "Delete", children: /* @__PURE__ */ f(
|
|
1302
|
+
/* @__PURE__ */ f(yl, { toggleVisible: i, visible: n, children: /* @__PURE__ */ f(y, { action: () => i(!n), tooltip: "Edit", children: /* @__PURE__ */ f(To, { size: 16 }) }) }),
|
|
1303
|
+
/* @__PURE__ */ f(y, { action: r, tooltip: "Delete", children: /* @__PURE__ */ f(Do, { size: 16 }) })
|
|
1293
1304
|
] })
|
|
1294
1305
|
}
|
|
1295
1306
|
) : /* @__PURE__ */ f(I, {});
|
|
@@ -1333,7 +1344,7 @@ function Sl(e) {
|
|
|
1333
1344
|
)
|
|
1334
1345
|
] });
|
|
1335
1346
|
}
|
|
1336
|
-
function
|
|
1347
|
+
function hu() {
|
|
1337
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) => {
|
|
1338
1349
|
const p = t.state.selection, { from: g } = p, m = (d == null ? void 0 : d.length) ?? 0, w = g + m;
|
|
1339
1350
|
t.chain().extendMarkRange("link").insertContent({
|
|
@@ -1361,7 +1372,7 @@ function Qd() {
|
|
|
1361
1372
|
options: { placement: "bottom", offset: 8, flip: !0 },
|
|
1362
1373
|
pluginKey: "RichTextBubbleLink",
|
|
1363
1374
|
shouldShow: o,
|
|
1364
|
-
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(
|
|
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(
|
|
1365
1376
|
Sl,
|
|
1366
1377
|
{
|
|
1367
1378
|
editor: t,
|
|
@@ -1393,15 +1404,15 @@ function si({ item: e, disabled: t, editor: n }) {
|
|
|
1393
1404
|
) }) : /* @__PURE__ */ f(I, {});
|
|
1394
1405
|
}
|
|
1395
1406
|
function kl(e) {
|
|
1396
|
-
return e.type.name ===
|
|
1407
|
+
return e.type.name === Oo.name;
|
|
1397
1408
|
}
|
|
1398
1409
|
function vl(e) {
|
|
1399
|
-
return e.type.name ===
|
|
1410
|
+
return e.type.name === Mo.name;
|
|
1400
1411
|
}
|
|
1401
1412
|
function Cl(e) {
|
|
1402
|
-
return e.type.name ===
|
|
1413
|
+
return e.type.name === Ro.name;
|
|
1403
1414
|
}
|
|
1404
|
-
function
|
|
1415
|
+
function du() {
|
|
1405
1416
|
const { lang: e, t } = Y(), n = Z(), i = W(), s = ({ editor: o }) => {
|
|
1406
1417
|
const { selection: l } = o.view.state, { $from: c, to: a } = l;
|
|
1407
1418
|
let h = !1;
|
|
@@ -1421,7 +1432,7 @@ function tu() {
|
|
|
1421
1432
|
}
|
|
1422
1433
|
) : /* @__PURE__ */ f(I, {});
|
|
1423
1434
|
}
|
|
1424
|
-
function
|
|
1435
|
+
function uu() {
|
|
1425
1436
|
const { lang: e, t } = Y(), n = Z(), i = W(), s = ({ editor: o }) => {
|
|
1426
1437
|
const { selection: l } = o.view.state, { $from: c, to: a } = l;
|
|
1427
1438
|
let h = !1;
|
|
@@ -1441,7 +1452,7 @@ function eu() {
|
|
|
1441
1452
|
}
|
|
1442
1453
|
) : /* @__PURE__ */ f(I, {});
|
|
1443
1454
|
}
|
|
1444
|
-
function
|
|
1455
|
+
function fu() {
|
|
1445
1456
|
const { t: e } = Y(), t = Z(), n = W(), i = ({ editor: r }) => {
|
|
1446
1457
|
const { selection: o } = r.view.state, { $from: l, to: c } = o;
|
|
1447
1458
|
let a = !1;
|
|
@@ -1490,7 +1501,7 @@ function El(e) {
|
|
|
1490
1501
|
return r = { node: o, pos: l }, !1;
|
|
1491
1502
|
}), r;
|
|
1492
1503
|
}
|
|
1493
|
-
function
|
|
1504
|
+
function pu() {
|
|
1494
1505
|
const { lang: e, t } = Y(), n = W(), i = ({ editor: r }) => {
|
|
1495
1506
|
if (!r.isEditable)
|
|
1496
1507
|
return !1;
|
|
@@ -1534,7 +1545,7 @@ function iu() {
|
|
|
1534
1545
|
}
|
|
1535
1546
|
) : /* @__PURE__ */ f(I, {});
|
|
1536
1547
|
}
|
|
1537
|
-
function
|
|
1548
|
+
function gu({ hiddenActions: e = [] }) {
|
|
1538
1549
|
var m, w, b, _, V, E, P, D, S, k, N, H, nt, Rt, Nt, v, gt, Oe;
|
|
1539
1550
|
const { t } = Y(), n = Z(), i = W(), s = ({ editor: Kt }) => Xr(Kt.view.state, lo.name), r = (Kt) => e.includes(Kt);
|
|
1540
1551
|
function o() {
|
|
@@ -1738,8 +1749,8 @@ function Tl() {
|
|
|
1738
1749
|
},
|
|
1739
1750
|
children: [
|
|
1740
1751
|
/* @__PURE__ */ x("div", { className: "!richtext-min-w-[20px]", children: [
|
|
1741
|
-
l && /* @__PURE__ */ f(
|
|
1742
|
-
!r && o.label === e("editor.paragraph.tooltip") && !l && /* @__PURE__ */ f(
|
|
1752
|
+
l && /* @__PURE__ */ f(Di, { size: 16 }),
|
|
1753
|
+
!r && o.label === e("editor.paragraph.tooltip") && !l && /* @__PURE__ */ f(Di, { size: 16 })
|
|
1743
1754
|
] }),
|
|
1744
1755
|
/* @__PURE__ */ x("div", { className: "richtext-flex richtext-items-center richtext-gap-1", children: [
|
|
1745
1756
|
o.iconName && /* @__PURE__ */ f(
|
|
@@ -1775,7 +1786,7 @@ function Dl() {
|
|
|
1775
1786
|
/* @__PURE__ */ f(Wo, {}),
|
|
1776
1787
|
/* @__PURE__ */ f($o, {}),
|
|
1777
1788
|
/* @__PURE__ */ f(Lo, {}),
|
|
1778
|
-
/* @__PURE__ */ f(
|
|
1789
|
+
/* @__PURE__ */ f(Io, {}),
|
|
1779
1790
|
/* @__PURE__ */ f(
|
|
1780
1791
|
Dt,
|
|
1781
1792
|
{
|
|
@@ -1788,7 +1799,7 @@ function Dl() {
|
|
|
1788
1799
|
/* @__PURE__ */ f(Fo, {})
|
|
1789
1800
|
] });
|
|
1790
1801
|
}
|
|
1791
|
-
function
|
|
1802
|
+
function mu({ buttonBubble: e }) {
|
|
1792
1803
|
const t = W(), n = Z(), i = ({ editor: s }) => {
|
|
1793
1804
|
const { selection: r } = s.view.state, { $from: o, to: l } = r;
|
|
1794
1805
|
return o.pos === l ? !1 : r instanceof io;
|
|
@@ -1804,7 +1815,7 @@ function ru({ buttonBubble: e }) {
|
|
|
1804
1815
|
}
|
|
1805
1816
|
) : /* @__PURE__ */ f(I, {});
|
|
1806
1817
|
}
|
|
1807
|
-
function
|
|
1818
|
+
function wu() {
|
|
1808
1819
|
const { t: e } = Y(), t = Z(), n = W(), [i, s] = F(!1), r = M(({ editor: c }) => c.isActive(Oi.name), []), o = (c) => {
|
|
1809
1820
|
n.commands.updateTweet({ src: c }), s(!1);
|
|
1810
1821
|
}, l = M(() => se(Oi.name, n), [n]);
|
|
@@ -9304,14 +9315,14 @@ var sd = (e) => {
|
|
|
9304
9315
|
}
|
|
9305
9316
|
);
|
|
9306
9317
|
}, rd = sd;
|
|
9307
|
-
function
|
|
9318
|
+
function xu() {
|
|
9308
9319
|
var D, S, k, N, H, nt, Rt, Nt;
|
|
9309
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(
|
|
9310
9321
|
(v) => (v == null ? void 0 : v.name) === zo.name
|
|
9311
9322
|
), 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) ===
|
|
9323
|
+
(v) => (v == null ? void 0 : v.name) === Jo.name
|
|
9313
9324
|
), 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) ===
|
|
9325
|
+
(v) => (v == null ? void 0 : v.name) === Go.name
|
|
9315
9326
|
);
|
|
9316
9327
|
function u() {
|
|
9317
9328
|
const v = e.chain();
|
|
@@ -9329,11 +9340,11 @@ function cu() {
|
|
|
9329
9340
|
e.commands.setTextAlign(v);
|
|
9330
9341
|
}
|
|
9331
9342
|
function w() {
|
|
9332
|
-
const v =
|
|
9343
|
+
const v = Ni(e.state.tr, r, 1);
|
|
9333
9344
|
v.setMeta("hideDragHandle", !0), e.view.dispatch && e.view.dispatch(v);
|
|
9334
9345
|
}
|
|
9335
9346
|
function b() {
|
|
9336
|
-
const v =
|
|
9347
|
+
const v = Ni(e.state.tr, r, -1);
|
|
9337
9348
|
e.view.dispatch && e.view.dispatch(v);
|
|
9338
9349
|
}
|
|
9339
9350
|
function _() {
|
|
@@ -9382,10 +9393,10 @@ function cu() {
|
|
|
9382
9393
|
}
|
|
9383
9394
|
}
|
|
9384
9395
|
),
|
|
9385
|
-
/* @__PURE__ */ x(
|
|
9386
|
-
/* @__PURE__ */ f(
|
|
9396
|
+
/* @__PURE__ */ x(qo, { onOpenChange: P, open: l, children: [
|
|
9397
|
+
/* @__PURE__ */ f(Xo, { className: "richtext-pointer-events-none" }),
|
|
9387
9398
|
/* @__PURE__ */ x(
|
|
9388
|
-
|
|
9399
|
+
Zo,
|
|
9389
9400
|
{
|
|
9390
9401
|
align: "start",
|
|
9391
9402
|
className: "richtext-w-48",
|
|
@@ -9430,13 +9441,13 @@ function cu() {
|
|
|
9430
9441
|
/* @__PURE__ */ f(tt, { name: "Copy" }),
|
|
9431
9442
|
/* @__PURE__ */ f("span", { children: n("editor.copy") })
|
|
9432
9443
|
] }),
|
|
9433
|
-
a || h ? /* @__PURE__ */ f(
|
|
9434
|
-
a ? /* @__PURE__ */ x(
|
|
9435
|
-
/* @__PURE__ */ x(
|
|
9444
|
+
a || h ? /* @__PURE__ */ f(Qo, {}) : null,
|
|
9445
|
+
a ? /* @__PURE__ */ x(Ui, { children: [
|
|
9446
|
+
/* @__PURE__ */ x(Li, { className: "richtext-flex richtext-gap-3", children: [
|
|
9436
9447
|
/* @__PURE__ */ f(tt, { name: "AlignCenter" }),
|
|
9437
9448
|
/* @__PURE__ */ f("span", { children: n("editor.textalign.tooltip") })
|
|
9438
9449
|
] }),
|
|
9439
|
-
/* @__PURE__ */ f(
|
|
9450
|
+
/* @__PURE__ */ f(Pi, { children: /* @__PURE__ */ x(Bi, { children: [
|
|
9440
9451
|
/* @__PURE__ */ x(
|
|
9441
9452
|
mt,
|
|
9442
9453
|
{
|
|
@@ -9472,17 +9483,17 @@ function cu() {
|
|
|
9472
9483
|
)
|
|
9473
9484
|
] }) })
|
|
9474
9485
|
] }) : null,
|
|
9475
|
-
h ? /* @__PURE__ */ x(
|
|
9476
|
-
/* @__PURE__ */ x(
|
|
9486
|
+
h ? /* @__PURE__ */ x(Ui, { children: [
|
|
9487
|
+
/* @__PURE__ */ x(Li, { className: "richtext-flex richtext-gap-3", children: [
|
|
9477
9488
|
/* @__PURE__ */ f(tt, { name: "IndentIncrease" }),
|
|
9478
9489
|
/* @__PURE__ */ f("span", { children: n("editor.indent") })
|
|
9479
9490
|
] }),
|
|
9480
|
-
/* @__PURE__ */ f(
|
|
9491
|
+
/* @__PURE__ */ f(Pi, { children: /* @__PURE__ */ x(Bi, { children: [
|
|
9481
9492
|
/* @__PURE__ */ x(
|
|
9482
9493
|
mt,
|
|
9483
9494
|
{
|
|
9484
9495
|
className: "richtext-flex richtext-gap-3",
|
|
9485
|
-
disabled: ((Rt = i == null ? void 0 : i.attrs) == null ? void 0 : Rt.indent) >=
|
|
9496
|
+
disabled: ((Rt = i == null ? void 0 : i.attrs) == null ? void 0 : Rt.indent) >= Ri.max,
|
|
9486
9497
|
onClick: w,
|
|
9487
9498
|
children: [
|
|
9488
9499
|
/* @__PURE__ */ f(tt, { name: "IndentIncrease" }),
|
|
@@ -9494,7 +9505,7 @@ function cu() {
|
|
|
9494
9505
|
mt,
|
|
9495
9506
|
{
|
|
9496
9507
|
className: "richtext-flex richtext-gap-3",
|
|
9497
|
-
disabled: ((Nt = i == null ? void 0 : i.attrs) == null ? void 0 : Nt.indent) <=
|
|
9508
|
+
disabled: ((Nt = i == null ? void 0 : i.attrs) == null ? void 0 : Nt.indent) <= Ri.min,
|
|
9498
9509
|
onClick: b,
|
|
9499
9510
|
children: [
|
|
9500
9511
|
/* @__PURE__ */ f(tt, { name: "IndentDecrease" }),
|
|
@@ -9513,19 +9524,19 @@ function cu() {
|
|
|
9513
9524
|
);
|
|
9514
9525
|
}
|
|
9515
9526
|
export {
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
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
|
|
9531
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
|
-
|
|
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
|
-
|
|
7337
|
-
|
|
7336
|
+
qe as K,
|
|
7337
|
+
qa as L,
|
|
7338
7338
|
Qa as M,
|
|
7339
7339
|
ll as N,
|
|
7340
|
-
|
|
7340
|
+
ja as O,
|
|
7341
7341
|
sr as P,
|
|
7342
|
-
|
|
7342
|
+
ze as Q,
|
|
7343
7343
|
Ia as R,
|
|
7344
7344
|
A as S,
|
|
7345
7345
|
$ as T,
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
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
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
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,
|