reactjs-tiptap-editor 0.2.25 → 0.2.27
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/{RichTextEditor-C_dIT2FZ.js → RichTextEditor-DH6J2is9.js} +3 -3
- package/lib/extension-bundle.d.cts +57 -57
- package/lib/extension-bundle.d.ts +57 -57
- package/lib/extension-bundle.js +5 -5
- package/lib/{index-BlV5SJJW.js → index-CO-iymkb.js} +1 -1
- package/lib/index.d.cts +57 -57
- package/lib/index.d.ts +57 -57
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +57 -57
- package/lib/locale-bundle.d.ts +57 -57
- package/lib/locale-bundle.js +1 -1
- package/lib/{tiptap-CXio79KB.js → tiptap-DOP8lVCQ.js} +1 -1
- package/lib/{vendor-VlEklMUJ.js → vendor-BbgkyoD-.js} +45 -72
- package/package.json +2 -2
|
@@ -4,10 +4,10 @@ var Xt = (t, e, r) => mi(t, typeof e != "symbol" ? e + "" : e, r);
|
|
|
4
4
|
import { jsxs as g, jsx as i, Fragment as V } from "react/jsx-runtime";
|
|
5
5
|
import * as W from "react";
|
|
6
6
|
import Ht, { createContext as xi, useContext as fi, useSyncExternalStore as gi, useRef as J, useCallback as H, useState as S, useEffect as B, useMemo as U, Fragment as Pe, memo as pi, forwardRef as wi, useId as vi, useImperativeHandle as bi, useLayoutEffect as yi } from "react";
|
|
7
|
-
import { Q as re, b as yt, m as st, V as Ci, N as gt, W as de, R as pt, X as Re, Y as ie, Z as Ti, B as tt, _ as Ni, $ as ki, a0 as Si } from "./tiptap-
|
|
8
|
-
import { u as q, I as xt, n as ft, o as he, V as Ce, p as Mi, C as Ai, h as Z, B as Li, q as ne, E as Ii } from "./index-
|
|
7
|
+
import { Q as re, b as yt, m as st, V as Ci, N as gt, W as de, R as pt, X as Re, Y as ie, Z as Ti, B as tt, _ as Ni, $ as ki, a0 as Si } from "./tiptap-DOP8lVCQ.js";
|
|
8
|
+
import { u as q, I as xt, n as ft, o as he, V as Ce, p as Mi, C as Ai, h as Z, B as Li, q as ne, E as Ii } from "./index-CO-iymkb.js";
|
|
9
9
|
import * as br from "@radix-ui/react-separator";
|
|
10
|
-
import { ax as Ei, at as oe, ak as zi, ay as ue, au as Oe, T as Wt, N as Pi, A as Ri, az as ae, aA as ht, aB as yr, b as He, P as De, a0 as Oi, $ as Hi, av as Cr, aC as Di, aD as me, aE as _i, H as Ft, aF as Bi, aG as $i, S as Vi, aH as Wi, aI as Fi } from "./vendor-
|
|
10
|
+
import { ax as Ei, at as oe, ak as zi, ay as ue, au as Oe, T as Wt, N as Pi, A as Ri, az as ae, aA as ht, aB as yr, b as He, P as De, a0 as Oi, $ as Hi, av as Cr, aC as Di, aD as me, aE as _i, H as Ft, aF as Bi, aG as $i, S as Vi, aH as Wi, aI as Fi } from "./vendor-BbgkyoD-.js";
|
|
11
11
|
import * as et from "@radix-ui/react-toast";
|
|
12
12
|
import { ChevronRight as Ui, Check as Tr, Circle as Gi, X as Nr, WrapText as qi, PencilRuler as ji, FlipHorizontal as Xi, FlipVertical as Yi, CropIcon as Ki, ChevronUp as Zi, Paperclip as Ji, Eye as Qi, Settings as tn, ZoomOut as en, ZoomIn as rn, BookMarked as nn, Sigma as on, SmilePlusIcon as an, Replace as Ze, SmilePlus as cn, Frame as sn, Columns2 as Je, PanelRight as ln, PanelLeft as dn, Clipboard as hn, Copy as un, GripVertical as mn, Plus as kr, Columns4 as xn, Columns3 as fn, Heading6 as gn, Heading5 as pn, Heading4 as wn, Heading3 as vn, Heading2 as bn, Heading1 as yn, ChevronsUpDown as Cn, Trash as Tn, Trash2 as Sr, TableCellsSplit as Nn, TableCellsMerge as kn, BetweenVerticalEnd as Sn, BetweenVerticalStart as Mn, BetweenHorizonalStart as An, BetweenHorizonalEnd as Ln, Unlink as In, Pencil as Mr, Sparkles as En, Table as zn, Minimize as Pn, Maximize as Rn, Video as On, ImageUp as Hn, Link as Dn, ListTodo as _n, ListOrdered as Bn, List as $n, IndentDecrease as Vn, IndentIncrease as Wn, Type as Fn, CodeXml as Un, Code as Gn, Superscript as qn, Subscript as jn, ChevronDown as Xn, Undo2 as Yn, Redo2 as Kn, PaintRoller as Zn, Eraser as Jn, Minus as Qn, Strikethrough as to, Quote as eo, Underline as ro, Italic as io, LoaderCircle as no, Bold as oo, HelpCircle as Ar } from "lucide-react";
|
|
13
13
|
import * as Ut from "@radix-ui/react-tooltip";
|
|
@@ -755,6 +755,16 @@ declare module '@tiptap/core' {
|
|
|
755
755
|
}
|
|
756
756
|
|
|
757
757
|
|
|
758
|
+
declare module '@tiptap/core' {
|
|
759
|
+
interface Commands<ReturnType> {
|
|
760
|
+
tableCellBackground: {
|
|
761
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
762
|
+
unsetTableCellBackground: () => ReturnType;
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
|
|
758
768
|
declare module '@tiptap/core' {
|
|
759
769
|
interface Commands<ReturnType> {
|
|
760
770
|
imageUpload: {
|
|
@@ -777,9 +787,13 @@ declare module '@tiptap/core' {
|
|
|
777
787
|
|
|
778
788
|
declare module '@tiptap/core' {
|
|
779
789
|
interface Commands<ReturnType> {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
790
|
+
columns: {
|
|
791
|
+
insertColumns: (attrs?: {
|
|
792
|
+
cols: number;
|
|
793
|
+
}) => ReturnType;
|
|
794
|
+
addColBefore: () => ReturnType;
|
|
795
|
+
addColAfter: () => ReturnType;
|
|
796
|
+
deleteCol: () => ReturnType;
|
|
783
797
|
};
|
|
784
798
|
}
|
|
785
799
|
}
|
|
@@ -796,13 +810,8 @@ declare module '@tiptap/core' {
|
|
|
796
810
|
|
|
797
811
|
declare module '@tiptap/core' {
|
|
798
812
|
interface Commands<ReturnType> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
cols: number;
|
|
802
|
-
}) => ReturnType;
|
|
803
|
-
addColBefore: () => ReturnType;
|
|
804
|
-
addColAfter: () => ReturnType;
|
|
805
|
-
deleteCol: () => ReturnType;
|
|
813
|
+
katex: {
|
|
814
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
806
815
|
};
|
|
807
816
|
}
|
|
808
817
|
}
|
|
@@ -810,13 +819,10 @@ declare module '@tiptap/core' {
|
|
|
810
819
|
|
|
811
820
|
declare module '@tiptap/core' {
|
|
812
821
|
interface Commands<ReturnType> {
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
setIframe: (options: {
|
|
818
|
-
src: string;
|
|
819
|
-
service: string;
|
|
822
|
+
emoji: {
|
|
823
|
+
setEmoji: (emoji: {
|
|
824
|
+
name: string;
|
|
825
|
+
emoji: string;
|
|
820
826
|
}) => ReturnType;
|
|
821
827
|
};
|
|
822
828
|
}
|
|
@@ -840,25 +846,19 @@ declare module '@tiptap/core' {
|
|
|
840
846
|
|
|
841
847
|
declare module '@tiptap/core' {
|
|
842
848
|
interface Commands<ReturnType> {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
849
|
+
iframe: {
|
|
850
|
+
/**
|
|
851
|
+
* Add an iframe
|
|
852
|
+
*/
|
|
853
|
+
setIframe: (options: {
|
|
854
|
+
src: string;
|
|
855
|
+
service: string;
|
|
847
856
|
}) => ReturnType;
|
|
848
857
|
};
|
|
849
858
|
}
|
|
850
859
|
}
|
|
851
860
|
|
|
852
861
|
|
|
853
|
-
declare module '@tiptap/core' {
|
|
854
|
-
interface Commands<ReturnType> {
|
|
855
|
-
katex: {
|
|
856
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
|
|
862
862
|
declare module '@tiptap/core' {
|
|
863
863
|
interface Commands<ReturnType> {
|
|
864
864
|
tableOfContents: {
|
|
@@ -887,6 +887,30 @@ declare module '@tiptap/core' {
|
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
|
|
890
|
+
declare module '@tiptap/core' {
|
|
891
|
+
interface Commands<ReturnType> {
|
|
892
|
+
attachment: {
|
|
893
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
declare module '@tiptap/core' {
|
|
900
|
+
interface Commands<ReturnType> {
|
|
901
|
+
twitter: {
|
|
902
|
+
/**
|
|
903
|
+
* Insert a tweet
|
|
904
|
+
* @param options The tweet attributes
|
|
905
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
906
|
+
*/
|
|
907
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
908
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
|
|
890
914
|
declare module '@tiptap/core' {
|
|
891
915
|
interface Commands<ReturnType> {
|
|
892
916
|
imageGifUpload: {
|
|
@@ -909,8 +933,9 @@ declare module '@tiptap/core' {
|
|
|
909
933
|
|
|
910
934
|
declare module '@tiptap/core' {
|
|
911
935
|
interface Commands<ReturnType> {
|
|
912
|
-
|
|
913
|
-
|
|
936
|
+
drawer: {
|
|
937
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
938
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
914
939
|
};
|
|
915
940
|
}
|
|
916
941
|
}
|
|
@@ -924,28 +949,3 @@ declare module '@tiptap/core' {
|
|
|
924
949
|
};
|
|
925
950
|
}
|
|
926
951
|
}
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
declare module '@tiptap/core' {
|
|
930
|
-
interface Commands<ReturnType> {
|
|
931
|
-
twitter: {
|
|
932
|
-
/**
|
|
933
|
-
* Insert a tweet
|
|
934
|
-
* @param options The tweet attributes
|
|
935
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
936
|
-
*/
|
|
937
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
938
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
declare module '@tiptap/core' {
|
|
945
|
-
interface Commands<ReturnType> {
|
|
946
|
-
drawer: {
|
|
947
|
-
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
948
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
}
|
|
@@ -755,6 +755,16 @@ declare module '@tiptap/core' {
|
|
|
755
755
|
}
|
|
756
756
|
|
|
757
757
|
|
|
758
|
+
declare module '@tiptap/core' {
|
|
759
|
+
interface Commands<ReturnType> {
|
|
760
|
+
tableCellBackground: {
|
|
761
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
762
|
+
unsetTableCellBackground: () => ReturnType;
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
|
|
758
768
|
declare module '@tiptap/core' {
|
|
759
769
|
interface Commands<ReturnType> {
|
|
760
770
|
imageUpload: {
|
|
@@ -777,9 +787,13 @@ declare module '@tiptap/core' {
|
|
|
777
787
|
|
|
778
788
|
declare module '@tiptap/core' {
|
|
779
789
|
interface Commands<ReturnType> {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
790
|
+
columns: {
|
|
791
|
+
insertColumns: (attrs?: {
|
|
792
|
+
cols: number;
|
|
793
|
+
}) => ReturnType;
|
|
794
|
+
addColBefore: () => ReturnType;
|
|
795
|
+
addColAfter: () => ReturnType;
|
|
796
|
+
deleteCol: () => ReturnType;
|
|
783
797
|
};
|
|
784
798
|
}
|
|
785
799
|
}
|
|
@@ -796,13 +810,8 @@ declare module '@tiptap/core' {
|
|
|
796
810
|
|
|
797
811
|
declare module '@tiptap/core' {
|
|
798
812
|
interface Commands<ReturnType> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
cols: number;
|
|
802
|
-
}) => ReturnType;
|
|
803
|
-
addColBefore: () => ReturnType;
|
|
804
|
-
addColAfter: () => ReturnType;
|
|
805
|
-
deleteCol: () => ReturnType;
|
|
813
|
+
katex: {
|
|
814
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
806
815
|
};
|
|
807
816
|
}
|
|
808
817
|
}
|
|
@@ -810,13 +819,10 @@ declare module '@tiptap/core' {
|
|
|
810
819
|
|
|
811
820
|
declare module '@tiptap/core' {
|
|
812
821
|
interface Commands<ReturnType> {
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
setIframe: (options: {
|
|
818
|
-
src: string;
|
|
819
|
-
service: string;
|
|
822
|
+
emoji: {
|
|
823
|
+
setEmoji: (emoji: {
|
|
824
|
+
name: string;
|
|
825
|
+
emoji: string;
|
|
820
826
|
}) => ReturnType;
|
|
821
827
|
};
|
|
822
828
|
}
|
|
@@ -840,25 +846,19 @@ declare module '@tiptap/core' {
|
|
|
840
846
|
|
|
841
847
|
declare module '@tiptap/core' {
|
|
842
848
|
interface Commands<ReturnType> {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
849
|
+
iframe: {
|
|
850
|
+
/**
|
|
851
|
+
* Add an iframe
|
|
852
|
+
*/
|
|
853
|
+
setIframe: (options: {
|
|
854
|
+
src: string;
|
|
855
|
+
service: string;
|
|
847
856
|
}) => ReturnType;
|
|
848
857
|
};
|
|
849
858
|
}
|
|
850
859
|
}
|
|
851
860
|
|
|
852
861
|
|
|
853
|
-
declare module '@tiptap/core' {
|
|
854
|
-
interface Commands<ReturnType> {
|
|
855
|
-
katex: {
|
|
856
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
|
|
862
862
|
declare module '@tiptap/core' {
|
|
863
863
|
interface Commands<ReturnType> {
|
|
864
864
|
tableOfContents: {
|
|
@@ -887,6 +887,30 @@ declare module '@tiptap/core' {
|
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
|
|
890
|
+
declare module '@tiptap/core' {
|
|
891
|
+
interface Commands<ReturnType> {
|
|
892
|
+
attachment: {
|
|
893
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
declare module '@tiptap/core' {
|
|
900
|
+
interface Commands<ReturnType> {
|
|
901
|
+
twitter: {
|
|
902
|
+
/**
|
|
903
|
+
* Insert a tweet
|
|
904
|
+
* @param options The tweet attributes
|
|
905
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
906
|
+
*/
|
|
907
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
908
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
|
|
890
914
|
declare module '@tiptap/core' {
|
|
891
915
|
interface Commands<ReturnType> {
|
|
892
916
|
imageGifUpload: {
|
|
@@ -909,8 +933,9 @@ declare module '@tiptap/core' {
|
|
|
909
933
|
|
|
910
934
|
declare module '@tiptap/core' {
|
|
911
935
|
interface Commands<ReturnType> {
|
|
912
|
-
|
|
913
|
-
|
|
936
|
+
drawer: {
|
|
937
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
938
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
914
939
|
};
|
|
915
940
|
}
|
|
916
941
|
}
|
|
@@ -924,28 +949,3 @@ declare module '@tiptap/core' {
|
|
|
924
949
|
};
|
|
925
950
|
}
|
|
926
951
|
}
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
declare module '@tiptap/core' {
|
|
930
|
-
interface Commands<ReturnType> {
|
|
931
|
-
twitter: {
|
|
932
|
-
/**
|
|
933
|
-
* Insert a tweet
|
|
934
|
-
* @param options The tweet attributes
|
|
935
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
936
|
-
*/
|
|
937
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
938
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
declare module '@tiptap/core' {
|
|
945
|
-
interface Commands<ReturnType> {
|
|
946
|
-
drawer: {
|
|
947
|
-
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
948
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
}
|
package/lib/extension-bundle.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as ft, I as _t, U as gt, S as bt, C as xt, N as ae, b as oe, t as qe, R as Le, m as re, F as wt, H as pt, T as yt, E as C, c as vt, d as kt, e as Ct, O as Nt, f as At, g as Tt, h as St, L as Lt, i as Et, j as Ht, k as zt, D as Mt, P as Rt, l as It, n as Pt, G as jt, o as Bt, p as Ot, q as Dt, r as $t, s as Ft, u as qt, v as nt, w as it, x as at, y as Ee, z as Ut, A as Kt, J as Vt, K as Wt, M as Gt } from "./tiptap-
|
|
2
|
-
import { u as I, D as Zt, f as Jt, g as Ue, h as N, i as ot, j as Yt, T as le, k as de, m as ue } from "./index-
|
|
3
|
-
import { i as He, T as xe, a as we, B as K, b as pe, g as ze, A as x, c as E, u as Me, j as Qt, k as A, l as Z, m as J, n as Y, o as Q, p as rt, q as Ne, r as Xt, s as Re, P as X, t as ee, v as te, w as Ie, x as en, H as tn, L as nn, C as an, M as on, y as rn, z as Ke, F as he, G as U, J as j, I as sn, N as cn, V as ln, O as Ve, Q as ve, S as We, U as dn, W as un, X as hn, Y as P, Z as mn, _ as fn, $ as _n, a0 as gn, a1 as bn, a2 as st } from "./RichTextEditor-
|
|
4
|
-
import { D as Lo, E as Eo, d as Ho, e as zo, K as Mo, f as Ro, h as Io } from "./RichTextEditor-
|
|
5
|
-
import { al as xn, am as wn, an as pn, ao as yn, ap as vn, aq as kn, ar as Cn, as as Nn, at as R, au as An, P as se, T as ct, b as ne, $ as ge, a0 as be, A as Tn, a4 as Sn, av as Ln, aw as En } from "./vendor-
|
|
1
|
+
import { a as ft, I as _t, U as gt, S as bt, C as xt, N as ae, b as oe, t as qe, R as Le, m as re, F as wt, H as pt, T as yt, E as C, c as vt, d as kt, e as Ct, O as Nt, f as At, g as Tt, h as St, L as Lt, i as Et, j as Ht, k as zt, D as Mt, P as Rt, l as It, n as Pt, G as jt, o as Bt, p as Ot, q as Dt, r as $t, s as Ft, u as qt, v as nt, w as it, x as at, y as Ee, z as Ut, A as Kt, J as Vt, K as Wt, M as Gt } from "./tiptap-DOP8lVCQ.js";
|
|
2
|
+
import { u as I, D as Zt, f as Jt, g as Ue, h as N, i as ot, j as Yt, T as le, k as de, m as ue } from "./index-CO-iymkb.js";
|
|
3
|
+
import { i as He, T as xe, a as we, B as K, b as pe, g as ze, A as x, c as E, u as Me, j as Qt, k as A, l as Z, m as J, n as Y, o as Q, p as rt, q as Ne, r as Xt, s as Re, P as X, t as ee, v as te, w as Ie, x as en, H as tn, L as nn, C as an, M as on, y as rn, z as Ke, F as he, G as U, J as j, I as sn, N as cn, V as ln, O as Ve, Q as ve, S as We, U as dn, W as un, X as hn, Y as P, Z as mn, _ as fn, $ as _n, a0 as gn, a1 as bn, a2 as st } from "./RichTextEditor-DH6J2is9.js";
|
|
4
|
+
import { D as Lo, E as Eo, d as Ho, e as zo, K as Mo, f as Ro, h as Io } from "./RichTextEditor-DH6J2is9.js";
|
|
5
|
+
import { al as xn, am as wn, an as pn, ao as yn, ap as vn, aq as kn, ar as Cn, as as Nn, at as R, au as An, P as se, T as ct, b as ne, $ as ge, a0 as be, A as Tn, a4 as Sn, av as Ln, aw as En } from "./vendor-BbgkyoD-.js";
|
|
6
6
|
import Pe from "tippy.js";
|
|
7
7
|
import { Packer as Hn, WidthType as zn } from "docx";
|
|
8
8
|
import { DocxSerializer as Mn, defaultNodes as F, defaultMarks as Rn } from "prosemirror-docx";
|
|
@@ -2,7 +2,7 @@ var p = Object.defineProperty;
|
|
|
2
2
|
var s = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var a = (e, t, o) => s(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import { useMemo as m, useEffect as g } from "react";
|
|
5
|
-
import { aj as u, ak as c } from "./vendor-
|
|
5
|
+
import { aj as u, ak as c } from "./vendor-BbgkyoD-.js";
|
|
6
6
|
const h = "en", b = 200, E = b - 80, L = 20, S = 1e5, w = 16, B = 10, R = 10, I = 2, W = [
|
|
7
7
|
"#000000",
|
|
8
8
|
"#262626",
|
package/lib/index.d.cts
CHANGED
|
@@ -324,6 +324,16 @@ declare module '@tiptap/core' {
|
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
|
|
327
|
+
declare module '@tiptap/core' {
|
|
328
|
+
interface Commands<ReturnType> {
|
|
329
|
+
tableCellBackground: {
|
|
330
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
331
|
+
unsetTableCellBackground: () => ReturnType;
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
|
|
327
337
|
declare module '@tiptap/core' {
|
|
328
338
|
interface Commands<ReturnType> {
|
|
329
339
|
imageUpload: {
|
|
@@ -346,9 +356,13 @@ declare module '@tiptap/core' {
|
|
|
346
356
|
|
|
347
357
|
declare module '@tiptap/core' {
|
|
348
358
|
interface Commands<ReturnType> {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
359
|
+
columns: {
|
|
360
|
+
insertColumns: (attrs?: {
|
|
361
|
+
cols: number;
|
|
362
|
+
}) => ReturnType;
|
|
363
|
+
addColBefore: () => ReturnType;
|
|
364
|
+
addColAfter: () => ReturnType;
|
|
365
|
+
deleteCol: () => ReturnType;
|
|
352
366
|
};
|
|
353
367
|
}
|
|
354
368
|
}
|
|
@@ -365,13 +379,8 @@ declare module '@tiptap/core' {
|
|
|
365
379
|
|
|
366
380
|
declare module '@tiptap/core' {
|
|
367
381
|
interface Commands<ReturnType> {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
cols: number;
|
|
371
|
-
}) => ReturnType;
|
|
372
|
-
addColBefore: () => ReturnType;
|
|
373
|
-
addColAfter: () => ReturnType;
|
|
374
|
-
deleteCol: () => ReturnType;
|
|
382
|
+
katex: {
|
|
383
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
375
384
|
};
|
|
376
385
|
}
|
|
377
386
|
}
|
|
@@ -379,13 +388,10 @@ declare module '@tiptap/core' {
|
|
|
379
388
|
|
|
380
389
|
declare module '@tiptap/core' {
|
|
381
390
|
interface Commands<ReturnType> {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
setIframe: (options: {
|
|
387
|
-
src: string;
|
|
388
|
-
service: string;
|
|
391
|
+
emoji: {
|
|
392
|
+
setEmoji: (emoji: {
|
|
393
|
+
name: string;
|
|
394
|
+
emoji: string;
|
|
389
395
|
}) => ReturnType;
|
|
390
396
|
};
|
|
391
397
|
}
|
|
@@ -409,25 +415,19 @@ declare module '@tiptap/core' {
|
|
|
409
415
|
|
|
410
416
|
declare module '@tiptap/core' {
|
|
411
417
|
interface Commands<ReturnType> {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
418
|
+
iframe: {
|
|
419
|
+
/**
|
|
420
|
+
* Add an iframe
|
|
421
|
+
*/
|
|
422
|
+
setIframe: (options: {
|
|
423
|
+
src: string;
|
|
424
|
+
service: string;
|
|
416
425
|
}) => ReturnType;
|
|
417
426
|
};
|
|
418
427
|
}
|
|
419
428
|
}
|
|
420
429
|
|
|
421
430
|
|
|
422
|
-
declare module '@tiptap/core' {
|
|
423
|
-
interface Commands<ReturnType> {
|
|
424
|
-
katex: {
|
|
425
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
|
|
431
431
|
declare module '@tiptap/core' {
|
|
432
432
|
interface Commands<ReturnType> {
|
|
433
433
|
tableOfContents: {
|
|
@@ -456,6 +456,30 @@ declare module '@tiptap/core' {
|
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
|
|
459
|
+
declare module '@tiptap/core' {
|
|
460
|
+
interface Commands<ReturnType> {
|
|
461
|
+
attachment: {
|
|
462
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
declare module '@tiptap/core' {
|
|
469
|
+
interface Commands<ReturnType> {
|
|
470
|
+
twitter: {
|
|
471
|
+
/**
|
|
472
|
+
* Insert a tweet
|
|
473
|
+
* @param options The tweet attributes
|
|
474
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
475
|
+
*/
|
|
476
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
477
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
|
|
459
483
|
declare module '@tiptap/core' {
|
|
460
484
|
interface Commands<ReturnType> {
|
|
461
485
|
imageGifUpload: {
|
|
@@ -478,8 +502,9 @@ declare module '@tiptap/core' {
|
|
|
478
502
|
|
|
479
503
|
declare module '@tiptap/core' {
|
|
480
504
|
interface Commands<ReturnType> {
|
|
481
|
-
|
|
482
|
-
|
|
505
|
+
drawer: {
|
|
506
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
507
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
483
508
|
};
|
|
484
509
|
}
|
|
485
510
|
}
|
|
@@ -493,28 +518,3 @@ declare module '@tiptap/core' {
|
|
|
493
518
|
};
|
|
494
519
|
}
|
|
495
520
|
}
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
declare module '@tiptap/core' {
|
|
499
|
-
interface Commands<ReturnType> {
|
|
500
|
-
twitter: {
|
|
501
|
-
/**
|
|
502
|
-
* Insert a tweet
|
|
503
|
-
* @param options The tweet attributes
|
|
504
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
505
|
-
*/
|
|
506
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
507
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
declare module '@tiptap/core' {
|
|
514
|
-
interface Commands<ReturnType> {
|
|
515
|
-
drawer: {
|
|
516
|
-
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
517
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
}
|