reactjs-tiptap-editor-pro 0.2.42 → 0.2.43
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/extension-bundle.d.cts +63 -63
- package/lib/extension-bundle.d.ts +63 -63
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +64 -63
- package/lib/index.d.ts +64 -63
- package/lib/index.js +236 -249
- package/lib/locale-bundle.d.cts +63 -63
- package/lib/locale-bundle.d.ts +63 -63
- package/package.json +21 -20
|
@@ -755,9 +755,9 @@ declare module '@tiptap/core' {
|
|
|
755
755
|
|
|
756
756
|
declare module '@tiptap/core' {
|
|
757
757
|
interface Commands<ReturnType> {
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
758
|
+
tableCellBackground: {
|
|
759
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
760
|
+
unsetTableCellBackground: () => ReturnType;
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
763
|
}
|
|
@@ -765,15 +765,11 @@ declare module '@tiptap/core' {
|
|
|
765
765
|
|
|
766
766
|
declare module '@tiptap/core' {
|
|
767
767
|
interface Commands<ReturnType> {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* Set the outdent attribute
|
|
775
|
-
*/
|
|
776
|
-
outdent: () => ReturnType;
|
|
768
|
+
emoji: {
|
|
769
|
+
setEmoji: (emoji: {
|
|
770
|
+
name: string;
|
|
771
|
+
emoji: string;
|
|
772
|
+
}) => ReturnType;
|
|
777
773
|
};
|
|
778
774
|
}
|
|
779
775
|
}
|
|
@@ -781,8 +777,8 @@ declare module '@tiptap/core' {
|
|
|
781
777
|
|
|
782
778
|
declare module '@tiptap/core' {
|
|
783
779
|
interface Commands<ReturnType> {
|
|
784
|
-
|
|
785
|
-
|
|
780
|
+
katex: {
|
|
781
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
786
782
|
};
|
|
787
783
|
}
|
|
788
784
|
}
|
|
@@ -804,17 +800,14 @@ declare module '@tiptap/core' {
|
|
|
804
800
|
|
|
805
801
|
declare module '@tiptap/core' {
|
|
806
802
|
interface Commands<ReturnType> {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
interface Commands<ReturnType> {
|
|
816
|
-
painter: {
|
|
817
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
803
|
+
search: {
|
|
804
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
805
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
806
|
+
replace: () => ReturnType;
|
|
807
|
+
replaceAll: () => ReturnType;
|
|
808
|
+
goToPrevSearchResult: () => void;
|
|
809
|
+
goToNextSearchResult: () => void;
|
|
810
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
818
811
|
};
|
|
819
812
|
}
|
|
820
813
|
}
|
|
@@ -822,11 +815,15 @@ declare module '@tiptap/core' {
|
|
|
822
815
|
|
|
823
816
|
declare module '@tiptap/core' {
|
|
824
817
|
interface Commands<ReturnType> {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
818
|
+
indent: {
|
|
819
|
+
/**
|
|
820
|
+
* Set the indent attribute
|
|
821
|
+
*/
|
|
822
|
+
indent: () => ReturnType;
|
|
823
|
+
/**
|
|
824
|
+
* Set the outdent attribute
|
|
825
|
+
*/
|
|
826
|
+
outdent: () => ReturnType;
|
|
830
827
|
};
|
|
831
828
|
}
|
|
832
829
|
}
|
|
@@ -834,14 +831,8 @@ declare module '@tiptap/core' {
|
|
|
834
831
|
|
|
835
832
|
declare module '@tiptap/core' {
|
|
836
833
|
interface Commands<ReturnType> {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
840
|
-
replace: () => ReturnType;
|
|
841
|
-
replaceAll: () => ReturnType;
|
|
842
|
-
goToPrevSearchResult: () => void;
|
|
843
|
-
goToNextSearchResult: () => void;
|
|
844
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
834
|
+
painter: {
|
|
835
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
845
836
|
};
|
|
846
837
|
}
|
|
847
838
|
}
|
|
@@ -864,18 +855,9 @@ declare module '@tiptap/core' {
|
|
|
864
855
|
|
|
865
856
|
declare module '@tiptap/core' {
|
|
866
857
|
interface Commands<ReturnType> {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
};
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
declare module '@tiptap/core' {
|
|
876
|
-
interface Commands<ReturnType> {
|
|
877
|
-
attachment: {
|
|
878
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
858
|
+
drawer: {
|
|
859
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
860
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
879
861
|
};
|
|
880
862
|
}
|
|
881
863
|
}
|
|
@@ -901,16 +883,6 @@ declare module '@tiptap/core' {
|
|
|
901
883
|
}
|
|
902
884
|
|
|
903
885
|
|
|
904
|
-
declare module '@tiptap/core' {
|
|
905
|
-
interface Commands<ReturnType> {
|
|
906
|
-
mermaid: {
|
|
907
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
908
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
|
|
914
886
|
declare module '@tiptap/core' {
|
|
915
887
|
interface Commands<ReturnType> {
|
|
916
888
|
twitter: {
|
|
@@ -928,9 +900,37 @@ declare module '@tiptap/core' {
|
|
|
928
900
|
|
|
929
901
|
declare module '@tiptap/core' {
|
|
930
902
|
interface Commands<ReturnType> {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
903
|
+
exportWord: {
|
|
904
|
+
exportToWord: () => ReturnType;
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
declare module '@tiptap/core' {
|
|
911
|
+
interface Commands<ReturnType> {
|
|
912
|
+
attachment: {
|
|
913
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
914
|
+
};
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
declare module '@tiptap/core' {
|
|
920
|
+
interface Commands<ReturnType> {
|
|
921
|
+
tableOfContents: {
|
|
922
|
+
setTableOfContents: () => ReturnType;
|
|
923
|
+
removeTableOfContents: () => ReturnType;
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
declare module '@tiptap/core' {
|
|
930
|
+
interface Commands<ReturnType> {
|
|
931
|
+
mermaid: {
|
|
932
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
933
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
}
|
|
@@ -755,9 +755,9 @@ declare module '@tiptap/core' {
|
|
|
755
755
|
|
|
756
756
|
declare module '@tiptap/core' {
|
|
757
757
|
interface Commands<ReturnType> {
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
758
|
+
tableCellBackground: {
|
|
759
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
760
|
+
unsetTableCellBackground: () => ReturnType;
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
763
|
}
|
|
@@ -765,15 +765,11 @@ declare module '@tiptap/core' {
|
|
|
765
765
|
|
|
766
766
|
declare module '@tiptap/core' {
|
|
767
767
|
interface Commands<ReturnType> {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* Set the outdent attribute
|
|
775
|
-
*/
|
|
776
|
-
outdent: () => ReturnType;
|
|
768
|
+
emoji: {
|
|
769
|
+
setEmoji: (emoji: {
|
|
770
|
+
name: string;
|
|
771
|
+
emoji: string;
|
|
772
|
+
}) => ReturnType;
|
|
777
773
|
};
|
|
778
774
|
}
|
|
779
775
|
}
|
|
@@ -781,8 +777,8 @@ declare module '@tiptap/core' {
|
|
|
781
777
|
|
|
782
778
|
declare module '@tiptap/core' {
|
|
783
779
|
interface Commands<ReturnType> {
|
|
784
|
-
|
|
785
|
-
|
|
780
|
+
katex: {
|
|
781
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
786
782
|
};
|
|
787
783
|
}
|
|
788
784
|
}
|
|
@@ -804,17 +800,14 @@ declare module '@tiptap/core' {
|
|
|
804
800
|
|
|
805
801
|
declare module '@tiptap/core' {
|
|
806
802
|
interface Commands<ReturnType> {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
interface Commands<ReturnType> {
|
|
816
|
-
painter: {
|
|
817
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
803
|
+
search: {
|
|
804
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
805
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
806
|
+
replace: () => ReturnType;
|
|
807
|
+
replaceAll: () => ReturnType;
|
|
808
|
+
goToPrevSearchResult: () => void;
|
|
809
|
+
goToNextSearchResult: () => void;
|
|
810
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
818
811
|
};
|
|
819
812
|
}
|
|
820
813
|
}
|
|
@@ -822,11 +815,15 @@ declare module '@tiptap/core' {
|
|
|
822
815
|
|
|
823
816
|
declare module '@tiptap/core' {
|
|
824
817
|
interface Commands<ReturnType> {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
818
|
+
indent: {
|
|
819
|
+
/**
|
|
820
|
+
* Set the indent attribute
|
|
821
|
+
*/
|
|
822
|
+
indent: () => ReturnType;
|
|
823
|
+
/**
|
|
824
|
+
* Set the outdent attribute
|
|
825
|
+
*/
|
|
826
|
+
outdent: () => ReturnType;
|
|
830
827
|
};
|
|
831
828
|
}
|
|
832
829
|
}
|
|
@@ -834,14 +831,8 @@ declare module '@tiptap/core' {
|
|
|
834
831
|
|
|
835
832
|
declare module '@tiptap/core' {
|
|
836
833
|
interface Commands<ReturnType> {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
840
|
-
replace: () => ReturnType;
|
|
841
|
-
replaceAll: () => ReturnType;
|
|
842
|
-
goToPrevSearchResult: () => void;
|
|
843
|
-
goToNextSearchResult: () => void;
|
|
844
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
834
|
+
painter: {
|
|
835
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
845
836
|
};
|
|
846
837
|
}
|
|
847
838
|
}
|
|
@@ -864,18 +855,9 @@ declare module '@tiptap/core' {
|
|
|
864
855
|
|
|
865
856
|
declare module '@tiptap/core' {
|
|
866
857
|
interface Commands<ReturnType> {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
};
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
declare module '@tiptap/core' {
|
|
876
|
-
interface Commands<ReturnType> {
|
|
877
|
-
attachment: {
|
|
878
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
858
|
+
drawer: {
|
|
859
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
860
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
879
861
|
};
|
|
880
862
|
}
|
|
881
863
|
}
|
|
@@ -901,16 +883,6 @@ declare module '@tiptap/core' {
|
|
|
901
883
|
}
|
|
902
884
|
|
|
903
885
|
|
|
904
|
-
declare module '@tiptap/core' {
|
|
905
|
-
interface Commands<ReturnType> {
|
|
906
|
-
mermaid: {
|
|
907
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
908
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
|
|
914
886
|
declare module '@tiptap/core' {
|
|
915
887
|
interface Commands<ReturnType> {
|
|
916
888
|
twitter: {
|
|
@@ -928,9 +900,37 @@ declare module '@tiptap/core' {
|
|
|
928
900
|
|
|
929
901
|
declare module '@tiptap/core' {
|
|
930
902
|
interface Commands<ReturnType> {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
903
|
+
exportWord: {
|
|
904
|
+
exportToWord: () => ReturnType;
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
declare module '@tiptap/core' {
|
|
911
|
+
interface Commands<ReturnType> {
|
|
912
|
+
attachment: {
|
|
913
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
914
|
+
};
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
declare module '@tiptap/core' {
|
|
920
|
+
interface Commands<ReturnType> {
|
|
921
|
+
tableOfContents: {
|
|
922
|
+
setTableOfContents: () => ReturnType;
|
|
923
|
+
removeTableOfContents: () => ReturnType;
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
declare module '@tiptap/core' {
|
|
930
|
+
interface Commands<ReturnType> {
|
|
931
|
+
mermaid: {
|
|
932
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
933
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
}
|