reactjs-tiptap-editor 1.0.7 → 1.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.
- package/lib/{ActionMenuButton-fTe9ka2F.js → ActionMenuButton-Cc0vy5hy.js} +2 -2
- package/lib/{ActionMenuButton-wU6jxKJv.cjs → ActionMenuButton-t7e5GCJp.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.js +3 -3
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.js +3 -3
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +3 -3
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +3 -3
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +3 -3
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +3 -3
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +4 -4
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +3 -3
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +8 -8
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +3 -3
- package/lib/{Drawer-DmtILKW4.js → Drawer-C6WTtcd0.js} +6 -6
- package/lib/{Drawer-BGSwHoka.cjs → Drawer-DRdsK4f_.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +3 -3
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +5 -5
- package/lib/{Excalidraw-CrG8fW-7.js → Excalidraw-DjO5sCC_.js} +5 -5
- package/lib/{Excalidraw-BG2U9i30.cjs → Excalidraw-gJ99kWdS.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +2 -2
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +3 -3
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +3 -3
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +5 -5
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +5 -5
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +5 -5
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +8 -8
- package/lib/History.cjs +1 -1
- package/lib/History.js +4 -4
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +3 -3
- package/lib/{Icon-C3j4ls73.cjs → Icon-DHNSWrSX.cjs} +1 -1
- package/lib/{Icon-CysGlJkv.js → Icon-prdLEHMN.js} +1 -1
- package/lib/{Iframe-BmqguWbj.js → Iframe-CERKUXQh.js} +5 -5
- package/lib/{Iframe-CXDghI6m.cjs → Iframe-CvymVtpM.cjs} +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +2 -2
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +13 -13
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +7 -7
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +3 -3
- package/lib/{Indent-BhnGkEaY.js → Indent-BfEOOT5B.js} +3 -3
- package/lib/{Indent-B1glTHHl.cjs → Indent-CE6kk62r.cjs} +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +3 -3
- package/lib/{Katex-D4eBjS34.js → Katex-5KNTSK8T.js} +6 -6
- package/lib/{Katex-BKL_6NWF.cjs → Katex-CJ2Fmvut.cjs} +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +13 -13
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/{LinkEditBlock-D1eSM0kn.js → LinkEditBlock-CFkyS2Ze.js} +9 -9
- package/lib/{LinkEditBlock-DW17TyCA.cjs → LinkEditBlock-D6z0Yohc.cjs} +1 -1
- package/lib/Mention.cjs +1 -1
- package/lib/Mention.js +138 -132
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +7 -7
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +12 -12
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +3 -3
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +13 -13
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +14 -14
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +3 -3
- package/lib/{Table-BIZppoiY.js → Table-CWbY_hqo.js} +5 -5
- package/lib/{Table-CIzgfvr9.cjs → Table-D9pRzwFU.cjs} +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +3 -3
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +5 -5
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +5 -5
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +3 -3
- package/lib/{Twitter-DhczYjbR.js → Twitter-BV7HA-MO.js} +566 -524
- package/lib/Twitter-D7NK3MZe.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 +7 -7
- package/lib/bubble.cjs +2 -2
- package/lib/bubble.js +35 -23
- package/lib/{button-C81t4pb1.js → button-0963_Pa8.js} +1 -1
- package/lib/{button-B6ukqDUf.cjs → button-Bxfjx9_Y.cjs} +1 -1
- package/lib/{checkbox-CUE9ex4D.js → checkbox-D4p6-UMt.js} +1 -1
- package/lib/{checkbox-ZdxysUFa.cjs → checkbox-Q6FcMQW5.cjs} +1 -1
- package/lib/{dialog-DMJStzBb.js → dialog-B-9_Z5j2.js} +1 -1
- package/lib/{dialog-Cfx8yjkr.cjs → dialog-D-oYxagG.cjs} +1 -1
- package/lib/{dropdown-menu-B8iyTZcP.js → dropdown-menu-par18QL5.js} +1 -1
- package/lib/{dropdown-menu-Busg3FNn.cjs → dropdown-menu-r8XibZQU.cjs} +1 -1
- package/lib/extensions/Mention/Mention.d.ts +3 -1
- package/lib/extensions/Mention/components/NodeViewMentionList.d.ts +7 -1
- package/lib/{index-DCJheRBq.cjs → index--nUS7Y66.cjs} +1 -1
- package/lib/{index-DLqogznp.cjs → index-BBNITgNi.cjs} +7 -7
- package/lib/{index-D42xFOzI.cjs → index-BFXkgG1P.cjs} +1 -1
- package/lib/{index-ccgHvIfu.js → index-BQ6ZdLsu.js} +1 -1
- package/lib/{index-DylewabB.cjs → index-BZ6DfR2r.cjs} +1 -1
- package/lib/{index-Dwt9--mS.js → index-BimeTI7q.js} +1 -1
- package/lib/{index-TMqmkmT6.cjs → index-CApXPpjF.cjs} +1 -1
- package/lib/{index-BvYjBPF9.js → index-CbIQPoF6.js} +12 -11
- package/lib/{index-RKufd2EL.js → index-EKFybgpP.js} +1 -1
- package/lib/{index--knBGB61.js → index-pgx8gyoC.js} +84 -84
- package/lib/index.cjs +1 -1
- package/lib/index.js +2 -2
- package/lib/{input-BxzQAIRv.cjs → input-CZUkD6wF.cjs} +1 -1
- package/lib/{input-DR_5pbuA.js → input-cclJoUeC.js} +1 -1
- package/lib/{isNumber-1y3eeW-y.js → isNumber-8HKEgTkA.js} +1 -1
- package/lib/{isNumber-C2saEiG2.cjs → isNumber-Bv1Qhmw8.cjs} +1 -1
- package/lib/{label-BfWfLggp.cjs → label-CFaBdRGz.cjs} +1 -1
- package/lib/{label-D-0oXKCn.js → label-aveW7pdK.js} +1 -1
- package/lib/{popover-sP8CwbV-.cjs → popover-BWYZO_fD.cjs} +1 -1
- package/lib/{popover-D3spkemr.js → popover-D5YZPv2r.js} +1 -1
- package/lib/{separator-yycaNdlI.cjs → separator-B978cwAm.cjs} +1 -1
- package/lib/{separator-rM48NeAo.js → separator-BHjFVmZr.js} +4 -4
- package/lib/{store-BajRl43v.cjs → store-BsBiawfz.cjs} +1 -1
- package/lib/{store-NKeQOve_.js → store-BsMMRKFd.js} +1 -1
- package/lib/style.css +1 -1
- package/lib/{tabs-Cb6Bmpbb.js → tabs-Bj8EvAkY.js} +1 -1
- package/lib/{tabs-D2nCIOVL.cjs → tabs-CUMyiV80.cjs} +1 -1
- package/lib/{textarea-Cbwi_h4h.cjs → textarea-BKb7LDw1.cjs} +1 -1
- package/lib/{textarea-BYZu1lUC.js → textarea-CClyW-74.js} +1 -1
- package/lib/{throttle-CjwXmkIY.js → throttle-BIkZV3Y_.js} +1 -1
- package/lib/{throttle-DXN-aiH5.cjs → throttle-BM3Bmbf_.cjs} +1 -1
- package/lib/{updatePosition-BAGpT34H.js → updatePosition-GLTrgcib.js} +1 -1
- package/lib/{updatePosition-C17CDdjq.cjs → updatePosition-u2mTh3mG.cjs} +1 -1
- package/lib/{useButtonProps-TfmRCM9r.cjs → useButtonProps-B0riSJs9.cjs} +1 -1
- package/lib/{useButtonProps-BIH_9bXT.js → useButtonProps-StwAz7Ha.js} +2 -2
- package/package.json +55 -55
- package/lib/Twitter-DwWVNAV5.cjs +0 -1
|
@@ -5,12 +5,12 @@ import { Slot as Je } from "@radix-ui/react-slot";
|
|
|
5
5
|
import { x as Ke, a as Qe } from "./index-0OnGZkVF.js";
|
|
6
6
|
import { THEME as fe } from "./theme.js";
|
|
7
7
|
import { l as W, E as O } from "./events.constant-wrlJ_7JZ.js";
|
|
8
|
-
import
|
|
9
|
-
import { ExternalLink as rt, X as ot, Loader2 as nt, WrapText as it, PencilRuler as st, FlipHorizontal as ct, FlipVertical as at, CropIcon as lt, ChevronUp as Me, Paperclip as dt, Eye as ut, Settings as ht, ZoomOut as mt, ZoomIn as pt, BookMarked as gt, Sigma as ft, SmilePlusIcon as xt, Replace as xe, SmilePlus as bt, Frame as wt, Columns2 as be, PanelRight as vt, PanelLeft as yt, Clipboard as Ct, Copy as St, GripVertical as zt, Plus as kt, Columns4 as Mt, Columns3 as Lt, Heading6 as Et, Heading5 as Nt, Heading4 as At, Heading3 as Rt, Heading2 as Tt, Heading1 as Vt, ChevronsUpDown as It, Trash as Ht, Trash2 as Pt, TableCellsSplit as jt, TableCellsMerge as Bt, BetweenVerticalEnd as Gt, BetweenVerticalStart as Wt, BetweenHorizonalStart as Ot, BetweenHorizonalEnd as $t, Unlink as _t, Pencil as Ut, Sparkles as Ft, Table as Dt, Minimize as Xt, Maximize as qt, Video as Jt, ImageUp as Kt, Link as Qt, ListTodo as Yt, ListOrdered as Zt, List as er, IndentDecrease as tr, IndentIncrease as rr, Type as or, CodeXml as nr, Code as ir, Superscript as sr, Subscript as cr, ChevronDown as ie, Undo2 as ar, Redo2 as lr, PaintRoller as dr, Eraser as ur, Minus as hr, Strikethrough as mr, Quote as pr, Underline as gr, Italic as fr, LoaderCircle as xr, Bold as br, Check as wr } from "lucide-react";
|
|
10
|
-
import * as Le from "@radix-ui/react-toggle";
|
|
8
|
+
import * as Me from "@radix-ui/react-toggle";
|
|
11
9
|
import * as $ from "@radix-ui/react-tooltip";
|
|
12
10
|
import * as v from "@radix-ui/react-select";
|
|
13
|
-
import {
|
|
11
|
+
import { ExternalLink as Ye, X as Ze, Loader2 as et, WrapText as tt, PencilRuler as rt, FlipHorizontal as ot, FlipVertical as nt, CropIcon as it, ChevronUp as Le, Paperclip as st, Eye as ct, Settings as at, ZoomOut as lt, ZoomIn as dt, BookMarked as ut, Sigma as ht, SmilePlusIcon as mt, Replace as xe, SmilePlus as pt, Frame as gt, Columns2 as be, PanelRight as ft, PanelLeft as xt, Clipboard as bt, Copy as wt, GripVertical as vt, Plus as yt, Columns4 as Ct, Columns3 as St, Heading6 as zt, Heading5 as kt, Heading4 as Mt, Heading3 as Lt, Heading2 as Et, Heading1 as Nt, ChevronsUpDown as At, Trash as Rt, Trash2 as Tt, TableCellsSplit as Vt, TableCellsMerge as It, BetweenVerticalEnd as Ht, BetweenVerticalStart as Pt, BetweenHorizonalStart as jt, BetweenHorizonalEnd as Bt, Unlink as Gt, Pencil as Wt, Sparkles as Ot, Table as $t, Minimize as _t, Maximize as Ut, Video as Ft, ImageUp as Dt, Link as Xt, ListTodo as qt, ListOrdered as Jt, List as Kt, IndentDecrease as Qt, IndentIncrease as Yt, Type as Zt, CodeXml as er, Code as tr, Superscript as rr, Subscript as or, ChevronDown as ie, Undo2 as nr, Redo2 as ir, PaintRoller as sr, Eraser as cr, Minus as ar, Strikethrough as lr, Quote as dr, Underline as ur, Italic as hr, LoaderCircle as mr, Bold as pr, Check as gr } from "lucide-react";
|
|
12
|
+
import { TextAlignRightIcon as fr, TextAlignLeftIcon as xr, TextAlignJustifyIcon as br, TextAlignCenterIcon as wr } from "@radix-ui/react-icons";
|
|
13
|
+
import { C as Ee } from "./index-CbIQPoF6.js";
|
|
14
14
|
const se = "-", vr = (e) => {
|
|
15
15
|
const r = Cr(e), {
|
|
16
16
|
conflictingClassGroups: t,
|
|
@@ -2667,111 +2667,111 @@ function zo() {
|
|
|
2667
2667
|
] }) });
|
|
2668
2668
|
}
|
|
2669
2669
|
const ko = {
|
|
2670
|
-
Bold:
|
|
2671
|
-
LoaderCircle:
|
|
2672
|
-
Italic:
|
|
2673
|
-
Underline:
|
|
2674
|
-
Quote:
|
|
2670
|
+
Bold: pr,
|
|
2671
|
+
LoaderCircle: mr,
|
|
2672
|
+
Italic: hr,
|
|
2673
|
+
Underline: ur,
|
|
2674
|
+
Quote: dr,
|
|
2675
2675
|
TextQuote: to,
|
|
2676
|
-
Strikethrough:
|
|
2677
|
-
Minus:
|
|
2678
|
-
Eraser:
|
|
2679
|
-
PaintRoller:
|
|
2680
|
-
Redo2:
|
|
2681
|
-
Undo2:
|
|
2682
|
-
AlignCenter:
|
|
2683
|
-
AlignJustify:
|
|
2684
|
-
AlignLeft:
|
|
2685
|
-
AlignRight:
|
|
2676
|
+
Strikethrough: lr,
|
|
2677
|
+
Minus: ar,
|
|
2678
|
+
Eraser: cr,
|
|
2679
|
+
PaintRoller: sr,
|
|
2680
|
+
Redo2: ir,
|
|
2681
|
+
Undo2: nr,
|
|
2682
|
+
AlignCenter: wr,
|
|
2683
|
+
AlignJustify: br,
|
|
2684
|
+
AlignLeft: xr,
|
|
2685
|
+
AlignRight: fr,
|
|
2686
2686
|
ChevronDown: ie,
|
|
2687
|
-
Subscript:
|
|
2688
|
-
Superscript:
|
|
2689
|
-
Code:
|
|
2690
|
-
Code2:
|
|
2691
|
-
Type:
|
|
2692
|
-
IndentIncrease:
|
|
2693
|
-
IndentDecrease:
|
|
2694
|
-
List:
|
|
2695
|
-
ListOrdered:
|
|
2696
|
-
ListTodo:
|
|
2697
|
-
Link:
|
|
2698
|
-
ImageUp:
|
|
2699
|
-
Video:
|
|
2700
|
-
Maximize:
|
|
2701
|
-
Minimize:
|
|
2702
|
-
Table:
|
|
2703
|
-
Sparkles:
|
|
2704
|
-
Pencil:
|
|
2705
|
-
Unlink:
|
|
2706
|
-
BetweenHorizonalEnd:
|
|
2707
|
-
BetweenHorizonalStart:
|
|
2708
|
-
BetweenVerticalStart:
|
|
2709
|
-
BetweenVerticalEnd:
|
|
2710
|
-
TableCellsMerge:
|
|
2711
|
-
TableCellsSplit:
|
|
2712
|
-
Trash2:
|
|
2713
|
-
Trash:
|
|
2687
|
+
Subscript: or,
|
|
2688
|
+
Superscript: rr,
|
|
2689
|
+
Code: tr,
|
|
2690
|
+
Code2: er,
|
|
2691
|
+
Type: Zt,
|
|
2692
|
+
IndentIncrease: Yt,
|
|
2693
|
+
IndentDecrease: Qt,
|
|
2694
|
+
List: Kt,
|
|
2695
|
+
ListOrdered: Jt,
|
|
2696
|
+
ListTodo: qt,
|
|
2697
|
+
Link: Xt,
|
|
2698
|
+
ImageUp: Dt,
|
|
2699
|
+
Video: Ft,
|
|
2700
|
+
Maximize: Ut,
|
|
2701
|
+
Minimize: _t,
|
|
2702
|
+
Table: $t,
|
|
2703
|
+
Sparkles: Ot,
|
|
2704
|
+
Pencil: Wt,
|
|
2705
|
+
Unlink: Gt,
|
|
2706
|
+
BetweenHorizonalEnd: Bt,
|
|
2707
|
+
BetweenHorizonalStart: jt,
|
|
2708
|
+
BetweenVerticalStart: Pt,
|
|
2709
|
+
BetweenVerticalEnd: Ht,
|
|
2710
|
+
TableCellsMerge: It,
|
|
2711
|
+
TableCellsSplit: Vt,
|
|
2712
|
+
Trash2: Tt,
|
|
2713
|
+
Trash: Rt,
|
|
2714
2714
|
Replace: xe,
|
|
2715
|
-
ChevronsUpDown:
|
|
2715
|
+
ChevronsUpDown: At,
|
|
2716
2716
|
LineHeight: io,
|
|
2717
2717
|
Word: no,
|
|
2718
|
-
Heading1:
|
|
2719
|
-
Heading2:
|
|
2720
|
-
Heading3:
|
|
2721
|
-
Heading4:
|
|
2722
|
-
Heading5:
|
|
2723
|
-
Heading6:
|
|
2718
|
+
Heading1: Nt,
|
|
2719
|
+
Heading2: Et,
|
|
2720
|
+
Heading3: Lt,
|
|
2721
|
+
Heading4: Mt,
|
|
2722
|
+
Heading5: kt,
|
|
2723
|
+
Heading6: zt,
|
|
2724
2724
|
Columns2: be,
|
|
2725
|
-
Columns3:
|
|
2726
|
-
Columns4:
|
|
2727
|
-
Plus:
|
|
2728
|
-
Grip:
|
|
2729
|
-
Copy:
|
|
2730
|
-
Clipboard:
|
|
2731
|
-
PanelLeft:
|
|
2732
|
-
PanelRight:
|
|
2725
|
+
Columns3: St,
|
|
2726
|
+
Columns4: Ct,
|
|
2727
|
+
Plus: yt,
|
|
2728
|
+
Grip: vt,
|
|
2729
|
+
Copy: wt,
|
|
2730
|
+
Clipboard: bt,
|
|
2731
|
+
PanelLeft: xt,
|
|
2732
|
+
PanelRight: ft,
|
|
2733
2733
|
Columns: be,
|
|
2734
|
-
Iframe:
|
|
2734
|
+
Iframe: gt,
|
|
2735
2735
|
MenuDown: so,
|
|
2736
2736
|
SizeS: lo,
|
|
2737
2737
|
SizeM: ao,
|
|
2738
2738
|
SizeL: co,
|
|
2739
2739
|
AspectRatio: eo,
|
|
2740
|
-
Emoji:
|
|
2740
|
+
Emoji: pt,
|
|
2741
2741
|
DeleteColumn: ro,
|
|
2742
2742
|
DeleteRow: oo,
|
|
2743
2743
|
SearchAndReplace: xe,
|
|
2744
|
-
EmojiIcon:
|
|
2745
|
-
KatexIcon:
|
|
2744
|
+
EmojiIcon: mt,
|
|
2745
|
+
KatexIcon: ht,
|
|
2746
2746
|
ExportPdf: fo,
|
|
2747
2747
|
ExportWord: xo,
|
|
2748
2748
|
ImportWord: So,
|
|
2749
2749
|
ColumnAddLeft: ho,
|
|
2750
2750
|
ColumnAddRight: mo,
|
|
2751
|
-
BookMarked:
|
|
2751
|
+
BookMarked: ut,
|
|
2752
2752
|
Excalidraw: go,
|
|
2753
|
-
ZoomIn:
|
|
2754
|
-
ZoomOut:
|
|
2755
|
-
Settings:
|
|
2756
|
-
Eye:
|
|
2753
|
+
ZoomIn: dt,
|
|
2754
|
+
ZoomOut: lt,
|
|
2755
|
+
Settings: at,
|
|
2756
|
+
Eye: ct,
|
|
2757
2757
|
TextDirection: po,
|
|
2758
2758
|
LeftToRight: wo,
|
|
2759
2759
|
RightToLeft: yo,
|
|
2760
|
-
Attachment:
|
|
2760
|
+
Attachment: st,
|
|
2761
2761
|
GifIcon: bo,
|
|
2762
|
-
ChevronUp:
|
|
2763
|
-
Crop:
|
|
2762
|
+
ChevronUp: Le,
|
|
2763
|
+
Crop: it,
|
|
2764
2764
|
Mermaid: vo,
|
|
2765
2765
|
Twitter: Co,
|
|
2766
2766
|
CodeView: uo,
|
|
2767
|
-
FlipX:
|
|
2768
|
-
FlipY:
|
|
2769
|
-
PencilRuler:
|
|
2770
|
-
WrapText:
|
|
2771
|
-
Loader:
|
|
2772
|
-
X:
|
|
2767
|
+
FlipX: nt,
|
|
2768
|
+
FlipY: ot,
|
|
2769
|
+
PencilRuler: rt,
|
|
2770
|
+
WrapText: tt,
|
|
2771
|
+
Loader: et,
|
|
2772
|
+
X: Ze,
|
|
2773
2773
|
Html: zo,
|
|
2774
|
-
ExternalLink:
|
|
2774
|
+
ExternalLink: Ye
|
|
2775
2775
|
}, Ce = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Se = Ee, Mo = (e, r) => (t) => {
|
|
2776
2776
|
var o;
|
|
2777
2777
|
if ((r == null ? void 0 : r.variants) == null) return Se(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
@@ -2821,14 +2821,14 @@ const ko = {
|
|
|
2821
2821
|
}
|
|
2822
2822
|
}
|
|
2823
2823
|
), Ie = N.forwardRef(({ className: e, variant: r, size: t, ...o }, s) => /* @__PURE__ */ i(
|
|
2824
|
-
|
|
2824
|
+
Me.Root,
|
|
2825
2825
|
{
|
|
2826
2826
|
ref: s,
|
|
2827
2827
|
className: k(Lo({ variant: r, size: t, className: e })),
|
|
2828
2828
|
...o
|
|
2829
2829
|
}
|
|
2830
2830
|
));
|
|
2831
|
-
Ie.displayName =
|
|
2831
|
+
Ie.displayName = Me.Root.displayName;
|
|
2832
2832
|
const tn = $.Provider, Eo = $.Root, No = $.Trigger, He = N.forwardRef(({ className: e, sideOffset: r = 4, ...t }, o) => /* @__PURE__ */ i(
|
|
2833
2833
|
$.Content,
|
|
2834
2834
|
{
|
|
@@ -2868,7 +2868,7 @@ const Pe = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
|
|
|
2868
2868
|
e
|
|
2869
2869
|
),
|
|
2870
2870
|
...r,
|
|
2871
|
-
children: /* @__PURE__ */ i(
|
|
2871
|
+
children: /* @__PURE__ */ i(Le, { className: "richtext-size-4" })
|
|
2872
2872
|
}
|
|
2873
2873
|
));
|
|
2874
2874
|
Pe.displayName = v.ScrollUpButton.displayName;
|
|
@@ -2933,7 +2933,7 @@ const Vo = N.forwardRef(({ className: e, children: r, ...t }, o) => /* @__PURE__
|
|
|
2933
2933
|
),
|
|
2934
2934
|
...t,
|
|
2935
2935
|
children: [
|
|
2936
|
-
/* @__PURE__ */ i("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ i(v.ItemIndicator, { children: /* @__PURE__ */ i(
|
|
2936
|
+
/* @__PURE__ */ i("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ i(v.ItemIndicator, { children: /* @__PURE__ */ i(gr, { className: "richtext-size-4" }) }) }),
|
|
2937
2937
|
/* @__PURE__ */ i(v.ItemText, { children: r })
|
|
2938
2938
|
]
|
|
2939
2939
|
}
|
package/lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("react"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("react"),i=require("./index-BFXkgG1P.cjs"),a=require("./index-BBNITgNi.cjs"),s=`
|
|
2
2
|
.reactjs-tiptap-editor {
|
|
3
3
|
button,
|
|
4
4
|
input:where([type=button]),
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
2
2
|
import { useId as a, useEffect as r } from "react";
|
|
3
|
-
import { u as s, r as p, P as l, e as h } from "./index
|
|
4
|
-
import { d } from "./index-
|
|
3
|
+
import { u as s, r as p, P as l, e as h } from "./index-pgx8gyoC.js";
|
|
4
|
+
import { d } from "./index-CbIQPoF6.js";
|
|
5
5
|
const c = `
|
|
6
6
|
.reactjs-tiptap-editor {
|
|
7
7
|
button,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),o=require("react"),s=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),o=require("react"),s=require("./index-BFXkgG1P.cjs");function u(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 x=u(o),c=x.forwardRef(({className:t,type:r,...e},i)=>n.jsx("input",{ref:i,type:r,className:s.cn("richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-1 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 ",t),...e}));c.displayName="Input";exports.Input=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "react";
|
|
3
|
-
import { c as x } from "./index
|
|
3
|
+
import { c as x } from "./index-pgx8gyoC.js";
|
|
4
4
|
const s = o.forwardRef(
|
|
5
5
|
({ className: t, type: e, ...r }, i) => /* @__PURE__ */ c(
|
|
6
6
|
"input",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./throttle-
|
|
1
|
+
"use strict";const n=require("./throttle-BM3Bmbf_.cjs");function d(i,t,f){return i===i&&(f!==void 0&&(i=i<=f?i:f),t!==void 0&&(i=i>=t?i:t)),i}function c(i,t,f){return f===void 0&&(f=t,t=void 0),f!==void 0&&(f=n.toNumber(f),f=f===f?f:0),t!==void 0&&(t=n.toNumber(t),t=t===t?t:0),d(n.toNumber(i),t,f)}var s="[object Number]";function a(i){return typeof i=="number"||n.isObjectLike(i)&&n.baseGetTag(i)==s}exports.clamp=c;exports.isNumber=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),l=require("react"),u=require("@radix-ui/react-label"),c=require("./index-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),l=require("react"),u=require("@radix-ui/react-label"),c=require("./index-BFXkgG1P.cjs");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const d=i(l),n=i(u),m=c.cva("richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"),o=d.forwardRef(({className:e,...r},t)=>s.jsx(n.Root,{className:c.cn(m(),e),ref:t,...r}));o.displayName=n.Root.displayName;exports.Label=o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-label";
|
|
4
|
-
import { c as s, d as c } from "./index
|
|
4
|
+
import { c as s, d as c } from "./index-pgx8gyoC.js";
|
|
5
5
|
const m = c(
|
|
6
6
|
"richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
|
|
7
7
|
), d = i.forwardRef(({ className: e, ...r }, a) => /* @__PURE__ */ o(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime"),s=require("react"),p=require("@radix-ui/react-popover"),x=require("./index-
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),s=require("react"),p=require("@radix-ui/react-popover"),x=require("./index-BFXkgG1P.cjs");function n(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 h=n(s),o=n(p),l=o.Root,m=o.Trigger,c=h.forwardRef(({className:t,align:r="center",sideOffset:e=4,...i},d)=>a.jsx(o.Portal,{children:a.jsx(o.Content,{align:r,"data-richtext-portal":!0,ref:d,sideOffset:e,className:x.cn("richtext-z-50 richtext-w-72 richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none 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 !richtext-border-border",t),...i})}));c.displayName=o.Content.displayName;exports.Popover=l;exports.PopoverContent=c;exports.PopoverTrigger=m;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as c from "react";
|
|
3
3
|
import * as t from "@radix-ui/react-popover";
|
|
4
|
-
import { c as s } from "./index
|
|
4
|
+
import { c as s } from "./index-pgx8gyoC.js";
|
|
5
5
|
const x = t.Root, p = t.Trigger, n = c.forwardRef(({ className: o, align: r = "center", sideOffset: i = 4, ...a }, d) => /* @__PURE__ */ e(t.Portal, { children: /* @__PURE__ */ e(
|
|
6
6
|
t.Content,
|
|
7
7
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),a=require("react"),y=require("lucide-react"),P=require("react-colorful"),b=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("react"),y=require("lucide-react"),P=require("react-colorful"),b=require("./index-BFXkgG1P.cjs"),S=require("./button-Bxfjx9_Y.cjs"),O=require("./input-CZUkD6wF.cjs"),h=require("./popover-BWYZO_fD.cjs"),z=require("@radix-ui/react-separator"),v=require("./index-FSRjMsxW.cjs");function g(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const x=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(o,n,x.get?x:{enumerable:!0,get:()=>r[n]})}}return o.default=r,Object.freeze(o)}const R=g(a),C=g(z);function q(){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:e.jsx("path",{fill:"currentColor",d:"M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31m-.88 3.12L12.5 12.5L5.27 5.27L4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6c1.52 0 2.9-.57 3.96-1.5l2.63 2.63l1.27-1.27z"})})}function _(r){const{t:o}=v.useLocale(),{disabled:n=!1,value:x,onChange:i,colors:u=v.COLORS_LIST,highlight:d}=r,[s,m]=a.useState(!1),L=a.useMemo(()=>{const t=u,c=[];for(let l=0;l<t.length;l+=10)c.push(t.slice(l,l+10));return c},[u]),[p,N]=b.useLocalStorage(d?"richtext-recent-highlight":"richtext-recent-colors",[]),w=t=>{const c=[...p],l=c.indexOf(t);l!==-1&&c.splice(l,1),c.unshift(t),c.length>10&&c.pop(),N(c)};function f(t){if(t===void 0){i==null||i(t),m(!1);return}/^#([\da-f]{3}){1,2}$/i.test(t)&&(i==null||i(t),w(t),m(!1))}return e.jsxs(h.Popover,{modal:!0,onOpenChange:m,open:s,children:[e.jsx(h.PopoverTrigger,{asChild:!0,className:"!richtext-p-0",disabled:n,children:r==null?void 0:r.children}),e.jsx(h.PopoverContent,{align:"start",className:"richtext-size-full !richtext-p-2",hideWhenDetached:!0,side:"bottom",children:e.jsxs("div",{className:"richtext-flex richtext-flex-col",children:[e.jsxs("div",{className:"rd-1 richtext-flex richtext-cursor-pointer richtext-items-center richtext-gap-[4px] richtext-p-1 hover:richtext-bg-accent",onClick:()=>{f(void 0)},children:[e.jsx(q,{}),e.jsx("span",{className:"richtext-ml-1 richtext-text-sm",children:o(d?"editor.nofill":"editor.default")})]}),L.map((t,c)=>e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-p-0 last:richtext-pb-2",children:t.map((l,k)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-solid !richtext-border-transparent richtext-p-0.5 hover:!richtext-border-border",onClick:()=>f(l),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px]",style:{backgroundColor:l},children:l===x?e.jsx("svg",{className:"richtext-absolute -richtext-top-px richtext-left-px richtext-block richtext-size-3",viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})}):e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-${k}`))},`color-row-${c}`)),e.jsxs("div",{children:[e.jsx("div",{className:"richtext-my-1 richtext-text-sm",children:o("editor.recent")}),e.jsx("span",{className:"richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-flex-wrap richtext-p-0 last:richtext-pb-2",children:p==null?void 0:p.map((t,c)=>e.jsx("span",{className:"richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-transparent richtext-p-0.5 hover:richtext-border-border hover:richtext-shadow-sm",onClick:()=>f(t),children:e.jsx("span",{className:"richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px] richtext-border-transparent",style:{backgroundColor:t},children:e.jsx("svg",{viewBox:"0 0 18 18",style:{fill:"rgb(255, 255, 255)",display:"none"},children:e.jsx("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})})},`sub-color-recent-${c}`))})]}),e.jsx(M,{setColor:f})]})})]})}function M({setColor:r}){const{t:o}=v.useLocale(),[n,x]=a.useState(!1),[i,u]=a.useState("#000000"),d=a.useCallback(s=>{u(s)},[]);return e.jsxs(h.Popover,{onOpenChange:x,open:n,children:[e.jsx(h.PopoverTrigger,{asChild:!0,children:e.jsxs("div",{className:"richtext-p-1.5 richtext-text-sm hover:richtext-cursor-pointer hover:richtext-bg-accent",children:[o("editor.color.more"),"..."]})}),e.jsxs(h.PopoverContent,{children:[e.jsxs("div",{className:"richtext-flex richtext-flex-col richtext-items-center richtext-justify-center",children:[e.jsx(P.HexColorPicker,{color:i,onChange:s=>{d(s)}}),e.jsx(O.Input,{className:"richtext-mt-[8px] richtext-w-full",type:"text",value:i.replace("#",""),onChange:s=>{s.preventDefault(),s.stopPropagation(),d(`#${s.target.value}`)}})]}),e.jsx(j,{className:"richtext-my-[10px]"}),e.jsx(S.Button,{className:"richtext-w-full",onClick:s=>{s.preventDefault(),s.stopPropagation(),r(i),x(!1)},children:e.jsx(y.Plus,{size:16})})]})]})}const j=R.forwardRef(({className:r,orientation:o="horizontal",decorative:n=!0,...x},i)=>e.jsx(C.Root,{ref:i,decorative:n,orientation:o,className:b.cn("richtext-shrink-0 richtext-bg-border",o==="horizontal"?"richtext-h-[1px] richtext-w-full":"richtext-h-full richtext-w-[1px]",r),...x}));j.displayName=C.Root.displayName;exports.ColorPicker=_;exports.Separator=j;
|
|
@@ -3,10 +3,10 @@ import * as P from "react";
|
|
|
3
3
|
import { useState as f, useMemo as S, useCallback as M } from "react";
|
|
4
4
|
import { Plus as R } from "lucide-react";
|
|
5
5
|
import { HexColorPicker as O } from "react-colorful";
|
|
6
|
-
import { j as B, c as _ } from "./index
|
|
7
|
-
import { B as $ } from "./button-
|
|
8
|
-
import { I as j } from "./input-
|
|
9
|
-
import { P as v, a as b, b as g } from "./popover-
|
|
6
|
+
import { j as B, c as _ } from "./index-pgx8gyoC.js";
|
|
7
|
+
import { B as $ } from "./button-0963_Pa8.js";
|
|
8
|
+
import { I as j } from "./input-cclJoUeC.js";
|
|
9
|
+
import { P as v, a as b, b as g } from "./popover-D5YZPv2r.js";
|
|
10
10
|
import * as C from "@radix-ui/react-separator";
|
|
11
11
|
import { u as L, C as D } from "./index-0OnGZkVF.js";
|
|
12
12
|
function I() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./index-
|
|
1
|
+
"use strict";require("./index-BFXkgG1P.cjs");const e=require("./events.constant-DQYeJpu5.cjs"),a={setOpen:(t,n)=>{e.dispatchEvent(e.EVENTS.UPLOAD_IMAGE(t),n)}};exports.actionDialogImage=a;
|