reactjs-tiptap-editor-pro 0.2.36 → 0.2.38
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 +66 -66
- package/lib/extension-bundle.d.ts +66 -66
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +69 -67
- package/lib/index.d.ts +69 -67
- package/lib/index.js +66 -64
- package/lib/locale-bundle.d.cts +66 -66
- package/lib/locale-bundle.d.ts +66 -66
- package/package.json +1 -1
|
@@ -725,24 +725,15 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
|
|
726
726
|
declare module '@tiptap/core' {
|
|
727
727
|
interface Commands<ReturnType> {
|
|
728
|
-
|
|
729
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
730
|
-
unsetLineHeight: () => ReturnType;
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
declare module '@tiptap/core' {
|
|
737
|
-
interface Commands<ReturnType> {
|
|
738
|
-
iframe: {
|
|
728
|
+
indent: {
|
|
739
729
|
/**
|
|
740
|
-
*
|
|
730
|
+
* Set the indent attribute
|
|
741
731
|
*/
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
732
|
+
indent: () => ReturnType;
|
|
733
|
+
/**
|
|
734
|
+
* Set the outdent attribute
|
|
735
|
+
*/
|
|
736
|
+
outdent: () => ReturnType;
|
|
746
737
|
};
|
|
747
738
|
}
|
|
748
739
|
}
|
|
@@ -750,9 +741,13 @@ declare module '@tiptap/core' {
|
|
|
750
741
|
|
|
751
742
|
declare module '@tiptap/core' {
|
|
752
743
|
interface Commands<ReturnType> {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
744
|
+
columns: {
|
|
745
|
+
insertColumns: (attrs?: {
|
|
746
|
+
cols: number;
|
|
747
|
+
}) => ReturnType;
|
|
748
|
+
addColBefore: () => ReturnType;
|
|
749
|
+
addColAfter: () => ReturnType;
|
|
750
|
+
deleteCol: () => ReturnType;
|
|
756
751
|
};
|
|
757
752
|
}
|
|
758
753
|
}
|
|
@@ -760,19 +755,9 @@ declare module '@tiptap/core' {
|
|
|
760
755
|
|
|
761
756
|
declare module '@tiptap/core' {
|
|
762
757
|
interface Commands<ReturnType> {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
*/
|
|
767
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
768
|
-
/**
|
|
769
|
-
* Update an image
|
|
770
|
-
*/
|
|
771
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
772
|
-
/**
|
|
773
|
-
* Set image alignment
|
|
774
|
-
*/
|
|
775
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
758
|
+
lineHeight: {
|
|
759
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
760
|
+
unsetLineHeight: () => ReturnType;
|
|
776
761
|
};
|
|
777
762
|
}
|
|
778
763
|
}
|
|
@@ -780,8 +765,8 @@ declare module '@tiptap/core' {
|
|
|
780
765
|
|
|
781
766
|
declare module '@tiptap/core' {
|
|
782
767
|
interface Commands<ReturnType> {
|
|
783
|
-
|
|
784
|
-
|
|
768
|
+
painter: {
|
|
769
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
785
770
|
};
|
|
786
771
|
}
|
|
787
772
|
}
|
|
@@ -789,13 +774,14 @@ declare module '@tiptap/core' {
|
|
|
789
774
|
|
|
790
775
|
declare module '@tiptap/core' {
|
|
791
776
|
interface Commands<ReturnType> {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
777
|
+
search: {
|
|
778
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
779
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
780
|
+
replace: () => ReturnType;
|
|
781
|
+
replaceAll: () => ReturnType;
|
|
782
|
+
goToPrevSearchResult: () => void;
|
|
783
|
+
goToNextSearchResult: () => void;
|
|
784
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
799
785
|
};
|
|
800
786
|
}
|
|
801
787
|
}
|
|
@@ -803,15 +789,19 @@ declare module '@tiptap/core' {
|
|
|
803
789
|
|
|
804
790
|
declare module '@tiptap/core' {
|
|
805
791
|
interface Commands<ReturnType> {
|
|
806
|
-
|
|
792
|
+
imageUpload: {
|
|
807
793
|
/**
|
|
808
|
-
*
|
|
794
|
+
* Add an image
|
|
809
795
|
*/
|
|
810
|
-
|
|
796
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
811
797
|
/**
|
|
812
|
-
*
|
|
798
|
+
* Update an image
|
|
813
799
|
*/
|
|
814
|
-
|
|
800
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
801
|
+
/**
|
|
802
|
+
* Set image alignment
|
|
803
|
+
*/
|
|
804
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
815
805
|
};
|
|
816
806
|
}
|
|
817
807
|
}
|
|
@@ -819,8 +809,14 @@ declare module '@tiptap/core' {
|
|
|
819
809
|
|
|
820
810
|
declare module '@tiptap/core' {
|
|
821
811
|
interface Commands<ReturnType> {
|
|
822
|
-
|
|
823
|
-
|
|
812
|
+
iframe: {
|
|
813
|
+
/**
|
|
814
|
+
* Add an iframe
|
|
815
|
+
*/
|
|
816
|
+
setIframe: (options: {
|
|
817
|
+
src: string;
|
|
818
|
+
service: string;
|
|
819
|
+
}) => ReturnType;
|
|
824
820
|
};
|
|
825
821
|
}
|
|
826
822
|
}
|
|
@@ -840,8 +836,9 @@ declare module '@tiptap/core' {
|
|
|
840
836
|
|
|
841
837
|
declare module '@tiptap/core' {
|
|
842
838
|
interface Commands<ReturnType> {
|
|
843
|
-
|
|
844
|
-
|
|
839
|
+
tableCellBackground: {
|
|
840
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
841
|
+
unsetTableCellBackground: () => ReturnType;
|
|
845
842
|
};
|
|
846
843
|
}
|
|
847
844
|
}
|
|
@@ -849,14 +846,8 @@ declare module '@tiptap/core' {
|
|
|
849
846
|
|
|
850
847
|
declare module '@tiptap/core' {
|
|
851
848
|
interface Commands<ReturnType> {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
855
|
-
replace: () => ReturnType;
|
|
856
|
-
replaceAll: () => ReturnType;
|
|
857
|
-
goToPrevSearchResult: () => void;
|
|
858
|
-
goToNextSearchResult: () => void;
|
|
859
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
849
|
+
katex: {
|
|
850
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
860
851
|
};
|
|
861
852
|
}
|
|
862
853
|
}
|
|
@@ -874,9 +865,8 @@ declare module '@tiptap/core' {
|
|
|
874
865
|
|
|
875
866
|
declare module '@tiptap/core' {
|
|
876
867
|
interface Commands<ReturnType> {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
868
|
+
exportWord: {
|
|
869
|
+
exportToWord: () => ReturnType;
|
|
880
870
|
};
|
|
881
871
|
}
|
|
882
872
|
}
|
|
@@ -884,9 +874,8 @@ declare module '@tiptap/core' {
|
|
|
884
874
|
|
|
885
875
|
declare module '@tiptap/core' {
|
|
886
876
|
interface Commands<ReturnType> {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
877
|
+
attachment: {
|
|
878
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
890
879
|
};
|
|
891
880
|
}
|
|
892
881
|
}
|
|
@@ -909,8 +898,19 @@ declare module '@tiptap/core' {
|
|
|
909
898
|
|
|
910
899
|
declare module '@tiptap/core' {
|
|
911
900
|
interface Commands<ReturnType> {
|
|
912
|
-
|
|
913
|
-
|
|
901
|
+
mermaid: {
|
|
902
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
903
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
declare module '@tiptap/core' {
|
|
910
|
+
interface Commands<ReturnType> {
|
|
911
|
+
drawer: {
|
|
912
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
913
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
916
|
}
|
|
@@ -725,24 +725,15 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
|
|
726
726
|
declare module '@tiptap/core' {
|
|
727
727
|
interface Commands<ReturnType> {
|
|
728
|
-
|
|
729
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
730
|
-
unsetLineHeight: () => ReturnType;
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
declare module '@tiptap/core' {
|
|
737
|
-
interface Commands<ReturnType> {
|
|
738
|
-
iframe: {
|
|
728
|
+
indent: {
|
|
739
729
|
/**
|
|
740
|
-
*
|
|
730
|
+
* Set the indent attribute
|
|
741
731
|
*/
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
732
|
+
indent: () => ReturnType;
|
|
733
|
+
/**
|
|
734
|
+
* Set the outdent attribute
|
|
735
|
+
*/
|
|
736
|
+
outdent: () => ReturnType;
|
|
746
737
|
};
|
|
747
738
|
}
|
|
748
739
|
}
|
|
@@ -750,9 +741,13 @@ declare module '@tiptap/core' {
|
|
|
750
741
|
|
|
751
742
|
declare module '@tiptap/core' {
|
|
752
743
|
interface Commands<ReturnType> {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
744
|
+
columns: {
|
|
745
|
+
insertColumns: (attrs?: {
|
|
746
|
+
cols: number;
|
|
747
|
+
}) => ReturnType;
|
|
748
|
+
addColBefore: () => ReturnType;
|
|
749
|
+
addColAfter: () => ReturnType;
|
|
750
|
+
deleteCol: () => ReturnType;
|
|
756
751
|
};
|
|
757
752
|
}
|
|
758
753
|
}
|
|
@@ -760,19 +755,9 @@ declare module '@tiptap/core' {
|
|
|
760
755
|
|
|
761
756
|
declare module '@tiptap/core' {
|
|
762
757
|
interface Commands<ReturnType> {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
*/
|
|
767
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
768
|
-
/**
|
|
769
|
-
* Update an image
|
|
770
|
-
*/
|
|
771
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
772
|
-
/**
|
|
773
|
-
* Set image alignment
|
|
774
|
-
*/
|
|
775
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
758
|
+
lineHeight: {
|
|
759
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
760
|
+
unsetLineHeight: () => ReturnType;
|
|
776
761
|
};
|
|
777
762
|
}
|
|
778
763
|
}
|
|
@@ -780,8 +765,8 @@ declare module '@tiptap/core' {
|
|
|
780
765
|
|
|
781
766
|
declare module '@tiptap/core' {
|
|
782
767
|
interface Commands<ReturnType> {
|
|
783
|
-
|
|
784
|
-
|
|
768
|
+
painter: {
|
|
769
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
785
770
|
};
|
|
786
771
|
}
|
|
787
772
|
}
|
|
@@ -789,13 +774,14 @@ declare module '@tiptap/core' {
|
|
|
789
774
|
|
|
790
775
|
declare module '@tiptap/core' {
|
|
791
776
|
interface Commands<ReturnType> {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
777
|
+
search: {
|
|
778
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
779
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
780
|
+
replace: () => ReturnType;
|
|
781
|
+
replaceAll: () => ReturnType;
|
|
782
|
+
goToPrevSearchResult: () => void;
|
|
783
|
+
goToNextSearchResult: () => void;
|
|
784
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
799
785
|
};
|
|
800
786
|
}
|
|
801
787
|
}
|
|
@@ -803,15 +789,19 @@ declare module '@tiptap/core' {
|
|
|
803
789
|
|
|
804
790
|
declare module '@tiptap/core' {
|
|
805
791
|
interface Commands<ReturnType> {
|
|
806
|
-
|
|
792
|
+
imageUpload: {
|
|
807
793
|
/**
|
|
808
|
-
*
|
|
794
|
+
* Add an image
|
|
809
795
|
*/
|
|
810
|
-
|
|
796
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
811
797
|
/**
|
|
812
|
-
*
|
|
798
|
+
* Update an image
|
|
813
799
|
*/
|
|
814
|
-
|
|
800
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
801
|
+
/**
|
|
802
|
+
* Set image alignment
|
|
803
|
+
*/
|
|
804
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
815
805
|
};
|
|
816
806
|
}
|
|
817
807
|
}
|
|
@@ -819,8 +809,14 @@ declare module '@tiptap/core' {
|
|
|
819
809
|
|
|
820
810
|
declare module '@tiptap/core' {
|
|
821
811
|
interface Commands<ReturnType> {
|
|
822
|
-
|
|
823
|
-
|
|
812
|
+
iframe: {
|
|
813
|
+
/**
|
|
814
|
+
* Add an iframe
|
|
815
|
+
*/
|
|
816
|
+
setIframe: (options: {
|
|
817
|
+
src: string;
|
|
818
|
+
service: string;
|
|
819
|
+
}) => ReturnType;
|
|
824
820
|
};
|
|
825
821
|
}
|
|
826
822
|
}
|
|
@@ -840,8 +836,9 @@ declare module '@tiptap/core' {
|
|
|
840
836
|
|
|
841
837
|
declare module '@tiptap/core' {
|
|
842
838
|
interface Commands<ReturnType> {
|
|
843
|
-
|
|
844
|
-
|
|
839
|
+
tableCellBackground: {
|
|
840
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
841
|
+
unsetTableCellBackground: () => ReturnType;
|
|
845
842
|
};
|
|
846
843
|
}
|
|
847
844
|
}
|
|
@@ -849,14 +846,8 @@ declare module '@tiptap/core' {
|
|
|
849
846
|
|
|
850
847
|
declare module '@tiptap/core' {
|
|
851
848
|
interface Commands<ReturnType> {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
855
|
-
replace: () => ReturnType;
|
|
856
|
-
replaceAll: () => ReturnType;
|
|
857
|
-
goToPrevSearchResult: () => void;
|
|
858
|
-
goToNextSearchResult: () => void;
|
|
859
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
849
|
+
katex: {
|
|
850
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
860
851
|
};
|
|
861
852
|
}
|
|
862
853
|
}
|
|
@@ -874,9 +865,8 @@ declare module '@tiptap/core' {
|
|
|
874
865
|
|
|
875
866
|
declare module '@tiptap/core' {
|
|
876
867
|
interface Commands<ReturnType> {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
868
|
+
exportWord: {
|
|
869
|
+
exportToWord: () => ReturnType;
|
|
880
870
|
};
|
|
881
871
|
}
|
|
882
872
|
}
|
|
@@ -884,9 +874,8 @@ declare module '@tiptap/core' {
|
|
|
884
874
|
|
|
885
875
|
declare module '@tiptap/core' {
|
|
886
876
|
interface Commands<ReturnType> {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
877
|
+
attachment: {
|
|
878
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
890
879
|
};
|
|
891
880
|
}
|
|
892
881
|
}
|
|
@@ -909,8 +898,19 @@ declare module '@tiptap/core' {
|
|
|
909
898
|
|
|
910
899
|
declare module '@tiptap/core' {
|
|
911
900
|
interface Commands<ReturnType> {
|
|
912
|
-
|
|
913
|
-
|
|
901
|
+
mermaid: {
|
|
902
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
903
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
declare module '@tiptap/core' {
|
|
910
|
+
interface Commands<ReturnType> {
|
|
911
|
+
drawer: {
|
|
912
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
913
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
916
|
}
|