reactjs-tiptap-editor-pro 0.2.22 → 0.2.23
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-BnruDETn.js → RichTextEditor-Bgw6seGi.js} +832 -810
- package/lib/{RichTextEditor-CRJ-dSCW.cjs → RichTextEditor-D9Oz6Ru3.cjs} +4 -4
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +58 -58
- package/lib/extension-bundle.d.ts +58 -58
- package/lib/extension-bundle.js +5 -5
- package/lib/{index-CYg22iLG.cjs → index-D-rys8BA.cjs} +1 -1
- package/lib/{index-8id9bPv5.js → index-PJxla8pp.js} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +58 -58
- package/lib/index.d.ts +58 -58
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +58 -58
- package/lib/locale-bundle.d.ts +58 -58
- package/lib/locale-bundle.js +1 -1
- package/lib/{tiptap-Ufn12SjW.cjs → tiptap-Bzsbnr3f.cjs} +1 -1
- package/lib/{tiptap-BV9BUpUC.js → tiptap-Kst3Ray3.js} +1 -1
- package/lib/vendor-LvbrNFNL.cjs +8114 -0
- package/lib/vendor-tDefVoN_.js +67574 -0
- package/package.json +2 -2
- package/lib/vendor-CRmKyn1B.cjs +0 -264
- package/lib/vendor-DyAqAGVt.js +0 -37115
|
@@ -725,29 +725,6 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
|
|
728
|
-
declare module '@tiptap/core' {
|
|
729
|
-
interface Commands<ReturnType> {
|
|
730
|
-
columns: {
|
|
731
|
-
insertColumns: (attrs?: {
|
|
732
|
-
cols: number;
|
|
733
|
-
}) => ReturnType;
|
|
734
|
-
addColBefore: () => ReturnType;
|
|
735
|
-
addColAfter: () => ReturnType;
|
|
736
|
-
deleteCol: () => ReturnType;
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
declare module '@tiptap/core' {
|
|
743
|
-
interface Commands<ReturnType> {
|
|
744
|
-
painter: {
|
|
745
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
|
|
751
728
|
declare module '@tiptap/core' {
|
|
752
729
|
interface Commands<ReturnType> {
|
|
753
730
|
lineHeight: {
|
|
@@ -774,6 +751,16 @@ declare module '@tiptap/core' {
|
|
|
774
751
|
}
|
|
775
752
|
|
|
776
753
|
|
|
754
|
+
declare module '@tiptap/core' {
|
|
755
|
+
interface Commands<ReturnType> {
|
|
756
|
+
tableCellBackground: {
|
|
757
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
758
|
+
unsetTableCellBackground: () => ReturnType;
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
|
|
777
764
|
declare module '@tiptap/core' {
|
|
778
765
|
interface Commands<ReturnType> {
|
|
779
766
|
imageUpload: {
|
|
@@ -796,9 +783,14 @@ declare module '@tiptap/core' {
|
|
|
796
783
|
|
|
797
784
|
declare module '@tiptap/core' {
|
|
798
785
|
interface Commands<ReturnType> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
786
|
+
search: {
|
|
787
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
788
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
789
|
+
replace: () => ReturnType;
|
|
790
|
+
replaceAll: () => ReturnType;
|
|
791
|
+
goToPrevSearchResult: () => void;
|
|
792
|
+
goToNextSearchResult: () => void;
|
|
793
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
802
794
|
};
|
|
803
795
|
}
|
|
804
796
|
}
|
|
@@ -806,8 +798,13 @@ declare module '@tiptap/core' {
|
|
|
806
798
|
|
|
807
799
|
declare module '@tiptap/core' {
|
|
808
800
|
interface Commands<ReturnType> {
|
|
809
|
-
|
|
810
|
-
|
|
801
|
+
columns: {
|
|
802
|
+
insertColumns: (attrs?: {
|
|
803
|
+
cols: number;
|
|
804
|
+
}) => ReturnType;
|
|
805
|
+
addColBefore: () => ReturnType;
|
|
806
|
+
addColAfter: () => ReturnType;
|
|
807
|
+
deleteCol: () => ReturnType;
|
|
811
808
|
};
|
|
812
809
|
}
|
|
813
810
|
}
|
|
@@ -825,8 +822,8 @@ declare module '@tiptap/core' {
|
|
|
825
822
|
|
|
826
823
|
declare module '@tiptap/core' {
|
|
827
824
|
interface Commands<ReturnType> {
|
|
828
|
-
|
|
829
|
-
|
|
825
|
+
painter: {
|
|
826
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
830
827
|
};
|
|
831
828
|
}
|
|
832
829
|
}
|
|
@@ -834,11 +831,8 @@ declare module '@tiptap/core' {
|
|
|
834
831
|
|
|
835
832
|
declare module '@tiptap/core' {
|
|
836
833
|
interface Commands<ReturnType> {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
name: string;
|
|
840
|
-
emoji: string;
|
|
841
|
-
}) => ReturnType;
|
|
834
|
+
katex: {
|
|
835
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
842
836
|
};
|
|
843
837
|
}
|
|
844
838
|
}
|
|
@@ -870,14 +864,30 @@ declare module '@tiptap/core' {
|
|
|
870
864
|
|
|
871
865
|
declare module '@tiptap/core' {
|
|
872
866
|
interface Commands<ReturnType> {
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
867
|
+
emoji: {
|
|
868
|
+
setEmoji: (emoji: {
|
|
869
|
+
name: string;
|
|
870
|
+
emoji: string;
|
|
871
|
+
}) => ReturnType;
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
declare module '@tiptap/core' {
|
|
878
|
+
interface Commands<ReturnType> {
|
|
879
|
+
excalidraw: {
|
|
880
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
declare module '@tiptap/core' {
|
|
887
|
+
interface Commands<ReturnType> {
|
|
888
|
+
mermaid: {
|
|
889
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
890
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
881
891
|
};
|
|
882
892
|
}
|
|
883
893
|
}
|
|
@@ -905,18 +915,9 @@ declare module '@tiptap/core' {
|
|
|
905
915
|
|
|
906
916
|
declare module '@tiptap/core' {
|
|
907
917
|
interface Commands<ReturnType> {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
declare module '@tiptap/core' {
|
|
917
|
-
interface Commands<ReturnType> {
|
|
918
|
-
attachment: {
|
|
919
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
918
|
+
drawer: {
|
|
919
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
920
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
920
921
|
};
|
|
921
922
|
}
|
|
922
923
|
}
|
|
@@ -939,9 +940,8 @@ declare module '@tiptap/core' {
|
|
|
939
940
|
|
|
940
941
|
declare module '@tiptap/core' {
|
|
941
942
|
interface Commands<ReturnType> {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
943
|
+
attachment: {
|
|
944
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
|
@@ -725,29 +725,6 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
|
|
728
|
-
declare module '@tiptap/core' {
|
|
729
|
-
interface Commands<ReturnType> {
|
|
730
|
-
columns: {
|
|
731
|
-
insertColumns: (attrs?: {
|
|
732
|
-
cols: number;
|
|
733
|
-
}) => ReturnType;
|
|
734
|
-
addColBefore: () => ReturnType;
|
|
735
|
-
addColAfter: () => ReturnType;
|
|
736
|
-
deleteCol: () => ReturnType;
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
declare module '@tiptap/core' {
|
|
743
|
-
interface Commands<ReturnType> {
|
|
744
|
-
painter: {
|
|
745
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
746
|
-
};
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
|
|
751
728
|
declare module '@tiptap/core' {
|
|
752
729
|
interface Commands<ReturnType> {
|
|
753
730
|
lineHeight: {
|
|
@@ -774,6 +751,16 @@ declare module '@tiptap/core' {
|
|
|
774
751
|
}
|
|
775
752
|
|
|
776
753
|
|
|
754
|
+
declare module '@tiptap/core' {
|
|
755
|
+
interface Commands<ReturnType> {
|
|
756
|
+
tableCellBackground: {
|
|
757
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
758
|
+
unsetTableCellBackground: () => ReturnType;
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
|
|
777
764
|
declare module '@tiptap/core' {
|
|
778
765
|
interface Commands<ReturnType> {
|
|
779
766
|
imageUpload: {
|
|
@@ -796,9 +783,14 @@ declare module '@tiptap/core' {
|
|
|
796
783
|
|
|
797
784
|
declare module '@tiptap/core' {
|
|
798
785
|
interface Commands<ReturnType> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
786
|
+
search: {
|
|
787
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
788
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
789
|
+
replace: () => ReturnType;
|
|
790
|
+
replaceAll: () => ReturnType;
|
|
791
|
+
goToPrevSearchResult: () => void;
|
|
792
|
+
goToNextSearchResult: () => void;
|
|
793
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
802
794
|
};
|
|
803
795
|
}
|
|
804
796
|
}
|
|
@@ -806,8 +798,13 @@ declare module '@tiptap/core' {
|
|
|
806
798
|
|
|
807
799
|
declare module '@tiptap/core' {
|
|
808
800
|
interface Commands<ReturnType> {
|
|
809
|
-
|
|
810
|
-
|
|
801
|
+
columns: {
|
|
802
|
+
insertColumns: (attrs?: {
|
|
803
|
+
cols: number;
|
|
804
|
+
}) => ReturnType;
|
|
805
|
+
addColBefore: () => ReturnType;
|
|
806
|
+
addColAfter: () => ReturnType;
|
|
807
|
+
deleteCol: () => ReturnType;
|
|
811
808
|
};
|
|
812
809
|
}
|
|
813
810
|
}
|
|
@@ -825,8 +822,8 @@ declare module '@tiptap/core' {
|
|
|
825
822
|
|
|
826
823
|
declare module '@tiptap/core' {
|
|
827
824
|
interface Commands<ReturnType> {
|
|
828
|
-
|
|
829
|
-
|
|
825
|
+
painter: {
|
|
826
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
830
827
|
};
|
|
831
828
|
}
|
|
832
829
|
}
|
|
@@ -834,11 +831,8 @@ declare module '@tiptap/core' {
|
|
|
834
831
|
|
|
835
832
|
declare module '@tiptap/core' {
|
|
836
833
|
interface Commands<ReturnType> {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
name: string;
|
|
840
|
-
emoji: string;
|
|
841
|
-
}) => ReturnType;
|
|
834
|
+
katex: {
|
|
835
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
842
836
|
};
|
|
843
837
|
}
|
|
844
838
|
}
|
|
@@ -870,14 +864,30 @@ declare module '@tiptap/core' {
|
|
|
870
864
|
|
|
871
865
|
declare module '@tiptap/core' {
|
|
872
866
|
interface Commands<ReturnType> {
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
867
|
+
emoji: {
|
|
868
|
+
setEmoji: (emoji: {
|
|
869
|
+
name: string;
|
|
870
|
+
emoji: string;
|
|
871
|
+
}) => ReturnType;
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
declare module '@tiptap/core' {
|
|
878
|
+
interface Commands<ReturnType> {
|
|
879
|
+
excalidraw: {
|
|
880
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
declare module '@tiptap/core' {
|
|
887
|
+
interface Commands<ReturnType> {
|
|
888
|
+
mermaid: {
|
|
889
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
890
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
881
891
|
};
|
|
882
892
|
}
|
|
883
893
|
}
|
|
@@ -905,18 +915,9 @@ declare module '@tiptap/core' {
|
|
|
905
915
|
|
|
906
916
|
declare module '@tiptap/core' {
|
|
907
917
|
interface Commands<ReturnType> {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
declare module '@tiptap/core' {
|
|
917
|
-
interface Commands<ReturnType> {
|
|
918
|
-
attachment: {
|
|
919
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
918
|
+
drawer: {
|
|
919
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
920
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
920
921
|
};
|
|
921
922
|
}
|
|
922
923
|
}
|
|
@@ -939,9 +940,8 @@ declare module '@tiptap/core' {
|
|
|
939
940
|
|
|
940
941
|
declare module '@tiptap/core' {
|
|
941
942
|
interface Commands<ReturnType> {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
943
|
+
attachment: {
|
|
944
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
package/lib/extension-bundle.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as yt, I as kt, U as vt, S as Ct, C as Nt, f as ce, N as le, b as At, c as Tt, R as He, F as Lt, H as St, T as Et, E as N, d as Ht, e as Mt, g as zt, h as we, O as Rt, i as Pt, j as It, k as Bt, L as jt, l as Dt, m as pe, n as Ot, o as $t, D as Ft, P as Ut, p as qt, q as Kt, G as Vt, r as Wt, s as Gt, t as Zt, u as Jt, v as Qt, w as Yt, x as nt, y as it, z as at, A as Me, J as Xt, K as en, M as tn, Q as nn, V as an } from "./tiptap-
|
|
2
|
-
import { P as te, b as Z, $ as de, a0 as he, al as R, am as on, T as ot, A as rn, a4 as sn, an as cn, ao as ln } from "./vendor-
|
|
1
|
+
import { a as yt, I as kt, U as vt, S as Ct, C as Nt, f as ce, N as le, b as At, c as Tt, R as He, F as Lt, H as St, T as Et, E as N, d as Ht, e as Mt, g as zt, h as we, O as Rt, i as Pt, j as It, k as Bt, L as jt, l as Dt, m as pe, n as Ot, o as $t, D as Ft, P as Ut, p as qt, q as Kt, G as Vt, r as Wt, s as Gt, t as Zt, u as Jt, v as Qt, w as Yt, x as nt, y as it, z as at, A as Me, J as Xt, K as en, M as tn, Q as nn, V as an } from "./tiptap-Kst3Ray3.js";
|
|
2
|
+
import { P as te, b as Z, $ as de, a0 as he, al as R, am as on, T as ot, A as rn, a4 as sn, an as cn, ao as ln } from "./vendor-tDefVoN_.js";
|
|
3
3
|
import { jsxs as m, jsx as r, Fragment as ye } from "react/jsx-runtime";
|
|
4
4
|
import * as J from "react";
|
|
5
5
|
import dn, { useMemo as P, useState as v, useRef as G, useCallback as F, Fragment as ze, forwardRef as Re, useImperativeHandle as Pe, useEffect as M } from "react";
|
|
6
6
|
import { ChevronDown as Ie, Check as hn, ChevronUp as un, Copy as mn, CopyCheck as fn, SearchIcon as _n, LoaderIcon as gn, LucideTableProperties as bn, LucideSheet as xn, LucideImage as wn, LucideFile as pn, LucideVideo as yn, LucideAudioLines as kn } from "lucide-react";
|
|
7
|
-
import { i as Be, T as ke, a as ve, B as V, b as Ce, g as je, A as x, D as Q, c as Y, d as X, e as vn, f as S, u as De, h as Cn, I as z, j as ne, k as rt, l as Se, m as Nn, n as Oe, P as ie, o as ae, p as oe, q as $e, C as An, H as Tn, L as Ln, r as Sn, M as En, s as Hn, t as Ke, v as me, w as K, E as D, x as Mn, y as zn, V as Rn, z as Ve, F as Ne, G as We, S as Pn, J as In, K as Bn, N as j, O as jn, Q as Dn, U as On, W as $n, X as Fn, Y as st } from "./RichTextEditor-
|
|
8
|
-
import { a3 as Vo, $ as Wo, Z as Go, a0 as Zo, _ as Jo, a1 as Qo, a2 as Yo } from "./RichTextEditor-
|
|
9
|
-
import { M as Un, D as ct, u as B, f as qn, g as Kn, h as Ge, i as A, j as lt, k as Vn, T as fe, m as _e, n as ge } from "./index-
|
|
7
|
+
import { i as Be, T as ke, a as ve, B as V, b as Ce, g as je, A as x, D as Q, c as Y, d as X, e as vn, f as S, u as De, h as Cn, I as z, j as ne, k as rt, l as Se, m as Nn, n as Oe, P as ie, o as ae, p as oe, q as $e, C as An, H as Tn, L as Ln, r as Sn, M as En, s as Hn, t as Ke, v as me, w as K, E as D, x as Mn, y as zn, V as Rn, z as Ve, F as Ne, G as We, S as Pn, J as In, K as Bn, N as j, O as jn, Q as Dn, U as On, W as $n, X as Fn, Y as st } from "./RichTextEditor-Bgw6seGi.js";
|
|
8
|
+
import { a3 as Vo, $ as Wo, Z as Go, a0 as Zo, _ as Jo, a1 as Qo, a2 as Yo } from "./RichTextEditor-Bgw6seGi.js";
|
|
9
|
+
import { M as Un, D as ct, u as B, f as qn, g as Kn, h as Ge, i as A, j as lt, k as Vn, T as fe, m as _e, n as ge } from "./index-PJxla8pp.js";
|
|
10
10
|
import { bundledThemes as dt, bundledLanguages as ht, createHighlighter as Wn } from "shiki";
|
|
11
11
|
import * as C from "@radix-ui/react-select";
|
|
12
12
|
import { Slot as Gn } from "@radix-ui/react-slot";
|