reactjs-tiptap-editor-pro 0.2.35 → 0.2.36
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 +74 -74
- package/lib/extension-bundle.d.ts +74 -74
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +87 -74
- package/lib/index.d.ts +87 -74
- package/lib/index.js +126 -124
- package/lib/locale-bundle.d.cts +74 -74
- package/lib/locale-bundle.d.ts +74 -74
- package/package.json +1 -1
|
@@ -733,6 +733,31 @@ declare module '@tiptap/core' {
|
|
|
733
733
|
}
|
|
734
734
|
|
|
735
735
|
|
|
736
|
+
declare module '@tiptap/core' {
|
|
737
|
+
interface Commands<ReturnType> {
|
|
738
|
+
iframe: {
|
|
739
|
+
/**
|
|
740
|
+
* Add an iframe
|
|
741
|
+
*/
|
|
742
|
+
setIframe: (options: {
|
|
743
|
+
src: string;
|
|
744
|
+
service: string;
|
|
745
|
+
}) => ReturnType;
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
declare module '@tiptap/core' {
|
|
752
|
+
interface Commands<ReturnType> {
|
|
753
|
+
tableCellBackground: {
|
|
754
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
755
|
+
unsetTableCellBackground: () => ReturnType;
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
|
|
736
761
|
declare module '@tiptap/core' {
|
|
737
762
|
interface Commands<ReturnType> {
|
|
738
763
|
imageUpload: {
|
|
@@ -755,13 +780,8 @@ declare module '@tiptap/core' {
|
|
|
755
780
|
|
|
756
781
|
declare module '@tiptap/core' {
|
|
757
782
|
interface Commands<ReturnType> {
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
cols: number;
|
|
761
|
-
}) => ReturnType;
|
|
762
|
-
addColBefore: () => ReturnType;
|
|
763
|
-
addColAfter: () => ReturnType;
|
|
764
|
-
deleteCol: () => ReturnType;
|
|
783
|
+
katex: {
|
|
784
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
765
785
|
};
|
|
766
786
|
}
|
|
767
787
|
}
|
|
@@ -769,8 +789,13 @@ declare module '@tiptap/core' {
|
|
|
769
789
|
|
|
770
790
|
declare module '@tiptap/core' {
|
|
771
791
|
interface Commands<ReturnType> {
|
|
772
|
-
|
|
773
|
-
|
|
792
|
+
columns: {
|
|
793
|
+
insertColumns: (attrs?: {
|
|
794
|
+
cols: number;
|
|
795
|
+
}) => ReturnType;
|
|
796
|
+
addColBefore: () => ReturnType;
|
|
797
|
+
addColAfter: () => ReturnType;
|
|
798
|
+
deleteCol: () => ReturnType;
|
|
774
799
|
};
|
|
775
800
|
}
|
|
776
801
|
}
|
|
@@ -794,34 +819,8 @@ declare module '@tiptap/core' {
|
|
|
794
819
|
|
|
795
820
|
declare module '@tiptap/core' {
|
|
796
821
|
interface Commands<ReturnType> {
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
unsetTableCellBackground: () => ReturnType;
|
|
800
|
-
};
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
declare module '@tiptap/core' {
|
|
806
|
-
interface Commands<ReturnType> {
|
|
807
|
-
search: {
|
|
808
|
-
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
809
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
810
|
-
replace: () => ReturnType;
|
|
811
|
-
replaceAll: () => ReturnType;
|
|
812
|
-
goToPrevSearchResult: () => void;
|
|
813
|
-
goToNextSearchResult: () => void;
|
|
814
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
815
|
-
};
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
declare module '@tiptap/core' {
|
|
821
|
-
interface Commands<ReturnType> {
|
|
822
|
-
tableOfContents: {
|
|
823
|
-
setTableOfContents: () => ReturnType;
|
|
824
|
-
removeTableOfContents: () => ReturnType;
|
|
822
|
+
exportWord: {
|
|
823
|
+
exportToWord: () => ReturnType;
|
|
825
824
|
};
|
|
826
825
|
}
|
|
827
826
|
}
|
|
@@ -829,8 +828,11 @@ declare module '@tiptap/core' {
|
|
|
829
828
|
|
|
830
829
|
declare module '@tiptap/core' {
|
|
831
830
|
interface Commands<ReturnType> {
|
|
832
|
-
|
|
833
|
-
|
|
831
|
+
emoji: {
|
|
832
|
+
setEmoji: (emoji: {
|
|
833
|
+
name: string;
|
|
834
|
+
emoji: string;
|
|
835
|
+
}) => ReturnType;
|
|
834
836
|
};
|
|
835
837
|
}
|
|
836
838
|
}
|
|
@@ -838,14 +840,8 @@ declare module '@tiptap/core' {
|
|
|
838
840
|
|
|
839
841
|
declare module '@tiptap/core' {
|
|
840
842
|
interface Commands<ReturnType> {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
* Add an iframe
|
|
844
|
-
*/
|
|
845
|
-
setIframe: (options: {
|
|
846
|
-
src: string;
|
|
847
|
-
service: string;
|
|
848
|
-
}) => ReturnType;
|
|
843
|
+
painter: {
|
|
844
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
849
845
|
};
|
|
850
846
|
}
|
|
851
847
|
}
|
|
@@ -853,19 +849,14 @@ declare module '@tiptap/core' {
|
|
|
853
849
|
|
|
854
850
|
declare module '@tiptap/core' {
|
|
855
851
|
interface Commands<ReturnType> {
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
865
|
-
/**
|
|
866
|
-
* Set image alignment
|
|
867
|
-
*/
|
|
868
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
852
|
+
search: {
|
|
853
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
854
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
855
|
+
replace: () => ReturnType;
|
|
856
|
+
replaceAll: () => ReturnType;
|
|
857
|
+
goToPrevSearchResult: () => void;
|
|
858
|
+
goToNextSearchResult: () => void;
|
|
859
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
869
860
|
};
|
|
870
861
|
}
|
|
871
862
|
}
|
|
@@ -873,8 +864,9 @@ declare module '@tiptap/core' {
|
|
|
873
864
|
|
|
874
865
|
declare module '@tiptap/core' {
|
|
875
866
|
interface Commands<ReturnType> {
|
|
876
|
-
|
|
877
|
-
|
|
867
|
+
tableOfContents: {
|
|
868
|
+
setTableOfContents: () => ReturnType;
|
|
869
|
+
removeTableOfContents: () => ReturnType;
|
|
878
870
|
};
|
|
879
871
|
}
|
|
880
872
|
}
|
|
@@ -900,18 +892,6 @@ declare module '@tiptap/core' {
|
|
|
900
892
|
}
|
|
901
893
|
|
|
902
894
|
|
|
903
|
-
declare module '@tiptap/core' {
|
|
904
|
-
interface Commands<ReturnType> {
|
|
905
|
-
emoji: {
|
|
906
|
-
setEmoji: (emoji: {
|
|
907
|
-
name: string;
|
|
908
|
-
emoji: string;
|
|
909
|
-
}) => ReturnType;
|
|
910
|
-
};
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
|
|
915
895
|
declare module '@tiptap/core' {
|
|
916
896
|
interface Commands<ReturnType> {
|
|
917
897
|
twitter: {
|
|
@@ -934,3 +914,23 @@ declare module '@tiptap/core' {
|
|
|
934
914
|
};
|
|
935
915
|
}
|
|
936
916
|
}
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
declare module '@tiptap/core' {
|
|
920
|
+
interface Commands<ReturnType> {
|
|
921
|
+
imageGifUpload: {
|
|
922
|
+
/**
|
|
923
|
+
* Add an image gif
|
|
924
|
+
*/
|
|
925
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
926
|
+
/**
|
|
927
|
+
* Update an image gif
|
|
928
|
+
*/
|
|
929
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
930
|
+
/**
|
|
931
|
+
* Set image alignment
|
|
932
|
+
*/
|
|
933
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
}
|
|
@@ -733,6 +733,31 @@ declare module '@tiptap/core' {
|
|
|
733
733
|
}
|
|
734
734
|
|
|
735
735
|
|
|
736
|
+
declare module '@tiptap/core' {
|
|
737
|
+
interface Commands<ReturnType> {
|
|
738
|
+
iframe: {
|
|
739
|
+
/**
|
|
740
|
+
* Add an iframe
|
|
741
|
+
*/
|
|
742
|
+
setIframe: (options: {
|
|
743
|
+
src: string;
|
|
744
|
+
service: string;
|
|
745
|
+
}) => ReturnType;
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
declare module '@tiptap/core' {
|
|
752
|
+
interface Commands<ReturnType> {
|
|
753
|
+
tableCellBackground: {
|
|
754
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
755
|
+
unsetTableCellBackground: () => ReturnType;
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
|
|
736
761
|
declare module '@tiptap/core' {
|
|
737
762
|
interface Commands<ReturnType> {
|
|
738
763
|
imageUpload: {
|
|
@@ -755,13 +780,8 @@ declare module '@tiptap/core' {
|
|
|
755
780
|
|
|
756
781
|
declare module '@tiptap/core' {
|
|
757
782
|
interface Commands<ReturnType> {
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
cols: number;
|
|
761
|
-
}) => ReturnType;
|
|
762
|
-
addColBefore: () => ReturnType;
|
|
763
|
-
addColAfter: () => ReturnType;
|
|
764
|
-
deleteCol: () => ReturnType;
|
|
783
|
+
katex: {
|
|
784
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
765
785
|
};
|
|
766
786
|
}
|
|
767
787
|
}
|
|
@@ -769,8 +789,13 @@ declare module '@tiptap/core' {
|
|
|
769
789
|
|
|
770
790
|
declare module '@tiptap/core' {
|
|
771
791
|
interface Commands<ReturnType> {
|
|
772
|
-
|
|
773
|
-
|
|
792
|
+
columns: {
|
|
793
|
+
insertColumns: (attrs?: {
|
|
794
|
+
cols: number;
|
|
795
|
+
}) => ReturnType;
|
|
796
|
+
addColBefore: () => ReturnType;
|
|
797
|
+
addColAfter: () => ReturnType;
|
|
798
|
+
deleteCol: () => ReturnType;
|
|
774
799
|
};
|
|
775
800
|
}
|
|
776
801
|
}
|
|
@@ -794,34 +819,8 @@ declare module '@tiptap/core' {
|
|
|
794
819
|
|
|
795
820
|
declare module '@tiptap/core' {
|
|
796
821
|
interface Commands<ReturnType> {
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
unsetTableCellBackground: () => ReturnType;
|
|
800
|
-
};
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
declare module '@tiptap/core' {
|
|
806
|
-
interface Commands<ReturnType> {
|
|
807
|
-
search: {
|
|
808
|
-
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
809
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
810
|
-
replace: () => ReturnType;
|
|
811
|
-
replaceAll: () => ReturnType;
|
|
812
|
-
goToPrevSearchResult: () => void;
|
|
813
|
-
goToNextSearchResult: () => void;
|
|
814
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
815
|
-
};
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
declare module '@tiptap/core' {
|
|
821
|
-
interface Commands<ReturnType> {
|
|
822
|
-
tableOfContents: {
|
|
823
|
-
setTableOfContents: () => ReturnType;
|
|
824
|
-
removeTableOfContents: () => ReturnType;
|
|
822
|
+
exportWord: {
|
|
823
|
+
exportToWord: () => ReturnType;
|
|
825
824
|
};
|
|
826
825
|
}
|
|
827
826
|
}
|
|
@@ -829,8 +828,11 @@ declare module '@tiptap/core' {
|
|
|
829
828
|
|
|
830
829
|
declare module '@tiptap/core' {
|
|
831
830
|
interface Commands<ReturnType> {
|
|
832
|
-
|
|
833
|
-
|
|
831
|
+
emoji: {
|
|
832
|
+
setEmoji: (emoji: {
|
|
833
|
+
name: string;
|
|
834
|
+
emoji: string;
|
|
835
|
+
}) => ReturnType;
|
|
834
836
|
};
|
|
835
837
|
}
|
|
836
838
|
}
|
|
@@ -838,14 +840,8 @@ declare module '@tiptap/core' {
|
|
|
838
840
|
|
|
839
841
|
declare module '@tiptap/core' {
|
|
840
842
|
interface Commands<ReturnType> {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
* Add an iframe
|
|
844
|
-
*/
|
|
845
|
-
setIframe: (options: {
|
|
846
|
-
src: string;
|
|
847
|
-
service: string;
|
|
848
|
-
}) => ReturnType;
|
|
843
|
+
painter: {
|
|
844
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
849
845
|
};
|
|
850
846
|
}
|
|
851
847
|
}
|
|
@@ -853,19 +849,14 @@ declare module '@tiptap/core' {
|
|
|
853
849
|
|
|
854
850
|
declare module '@tiptap/core' {
|
|
855
851
|
interface Commands<ReturnType> {
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
865
|
-
/**
|
|
866
|
-
* Set image alignment
|
|
867
|
-
*/
|
|
868
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
852
|
+
search: {
|
|
853
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
854
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
855
|
+
replace: () => ReturnType;
|
|
856
|
+
replaceAll: () => ReturnType;
|
|
857
|
+
goToPrevSearchResult: () => void;
|
|
858
|
+
goToNextSearchResult: () => void;
|
|
859
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
869
860
|
};
|
|
870
861
|
}
|
|
871
862
|
}
|
|
@@ -873,8 +864,9 @@ declare module '@tiptap/core' {
|
|
|
873
864
|
|
|
874
865
|
declare module '@tiptap/core' {
|
|
875
866
|
interface Commands<ReturnType> {
|
|
876
|
-
|
|
877
|
-
|
|
867
|
+
tableOfContents: {
|
|
868
|
+
setTableOfContents: () => ReturnType;
|
|
869
|
+
removeTableOfContents: () => ReturnType;
|
|
878
870
|
};
|
|
879
871
|
}
|
|
880
872
|
}
|
|
@@ -900,18 +892,6 @@ declare module '@tiptap/core' {
|
|
|
900
892
|
}
|
|
901
893
|
|
|
902
894
|
|
|
903
|
-
declare module '@tiptap/core' {
|
|
904
|
-
interface Commands<ReturnType> {
|
|
905
|
-
emoji: {
|
|
906
|
-
setEmoji: (emoji: {
|
|
907
|
-
name: string;
|
|
908
|
-
emoji: string;
|
|
909
|
-
}) => ReturnType;
|
|
910
|
-
};
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
|
|
915
895
|
declare module '@tiptap/core' {
|
|
916
896
|
interface Commands<ReturnType> {
|
|
917
897
|
twitter: {
|
|
@@ -934,3 +914,23 @@ declare module '@tiptap/core' {
|
|
|
934
914
|
};
|
|
935
915
|
}
|
|
936
916
|
}
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
declare module '@tiptap/core' {
|
|
920
|
+
interface Commands<ReturnType> {
|
|
921
|
+
imageGifUpload: {
|
|
922
|
+
/**
|
|
923
|
+
* Add an image gif
|
|
924
|
+
*/
|
|
925
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
926
|
+
/**
|
|
927
|
+
* Update an image gif
|
|
928
|
+
*/
|
|
929
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
930
|
+
/**
|
|
931
|
+
* Set image alignment
|
|
932
|
+
*/
|
|
933
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
}
|