reactjs-tiptap-editor-pro 0.2.32 → 0.2.34
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/ColorPicker-BGCCdXrc.js +27523 -0
- package/lib/ColorPicker-DGbrNkQ-.cjs +142 -0
- package/lib/extension-bundle.cjs +103 -3
- package/lib/extension-bundle.d.cts +71 -82
- package/lib/extension-bundle.d.ts +71 -82
- package/lib/extension-bundle.js +20642 -2477
- package/lib/index.cjs +140 -1
- package/lib/index.d.cts +71 -80
- package/lib/index.d.ts +71 -80
- package/lib/index.js +3617 -13
- package/lib/{index-M6H3FoBi.js → locale-bundle-CT7qZRHF.js} +444 -105
- package/lib/locale-bundle-PAhriAQT.cjs +1 -0
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +71 -80
- package/lib/locale-bundle.d.ts +71 -80
- package/lib/locale-bundle.js +6 -6
- package/lib/lucide-react-BFZtMawV.js +30462 -0
- package/lib/lucide-react-CMPhLW1m.cjs +7851 -0
- package/lib/style.css +1 -1
- package/package.json +1 -2
- package/lib/RichTextEditor-BwbqJLnA.cjs +0 -141
- package/lib/RichTextEditor-iGJ6-rbq.js +0 -8833
- package/lib/index-DV-nXpU1.cjs +0 -1
- package/lib/tiptap-DkWHMWDt.js +0 -6061
- package/lib/tiptap-gBG-1T-V.cjs +0 -116
- package/lib/vendor-BJ0Yf78E.cjs +0 -8114
- package/lib/vendor-Cpa6z-M0.js +0 -67575
|
@@ -285,8 +285,6 @@ declare interface DrawerOptions extends GeneralOptions<DrawerOptions> {
|
|
|
285
285
|
|
|
286
286
|
export declare const Emoji: Node_2<any, any>;
|
|
287
287
|
|
|
288
|
-
export declare const Excalidraw: Node_2<any, any>;
|
|
289
|
-
|
|
290
288
|
export declare const ExportPdf: Extension<any, any>;
|
|
291
289
|
|
|
292
290
|
export declare const ExportWord: Extension<ExportWordOptions, any>;
|
|
@@ -727,25 +725,19 @@ declare module '@tiptap/core' {
|
|
|
727
725
|
|
|
728
726
|
declare module '@tiptap/core' {
|
|
729
727
|
interface Commands<ReturnType> {
|
|
730
|
-
|
|
728
|
+
imageUpload: {
|
|
731
729
|
/**
|
|
732
|
-
*
|
|
730
|
+
* Add an image
|
|
733
731
|
*/
|
|
734
|
-
|
|
732
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
735
733
|
/**
|
|
736
|
-
*
|
|
734
|
+
* Update an image
|
|
737
735
|
*/
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
declare module '@tiptap/core' {
|
|
745
|
-
interface Commands<ReturnType> {
|
|
746
|
-
tableCellBackground: {
|
|
747
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
748
|
-
unsetTableCellBackground: () => ReturnType;
|
|
736
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
737
|
+
/**
|
|
738
|
+
* Set image alignment
|
|
739
|
+
*/
|
|
740
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
749
741
|
};
|
|
750
742
|
}
|
|
751
743
|
}
|
|
@@ -753,11 +745,13 @@ declare module '@tiptap/core' {
|
|
|
753
745
|
|
|
754
746
|
declare module '@tiptap/core' {
|
|
755
747
|
interface Commands<ReturnType> {
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
emoji: string;
|
|
748
|
+
columns: {
|
|
749
|
+
insertColumns: (attrs?: {
|
|
750
|
+
cols: number;
|
|
760
751
|
}) => ReturnType;
|
|
752
|
+
addColBefore: () => ReturnType;
|
|
753
|
+
addColAfter: () => ReturnType;
|
|
754
|
+
deleteCol: () => ReturnType;
|
|
761
755
|
};
|
|
762
756
|
}
|
|
763
757
|
}
|
|
@@ -765,8 +759,9 @@ declare module '@tiptap/core' {
|
|
|
765
759
|
|
|
766
760
|
declare module '@tiptap/core' {
|
|
767
761
|
interface Commands<ReturnType> {
|
|
768
|
-
|
|
769
|
-
|
|
762
|
+
lineHeight: {
|
|
763
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
764
|
+
unsetLineHeight: () => ReturnType;
|
|
770
765
|
};
|
|
771
766
|
}
|
|
772
767
|
}
|
|
@@ -774,19 +769,15 @@ declare module '@tiptap/core' {
|
|
|
774
769
|
|
|
775
770
|
declare module '@tiptap/core' {
|
|
776
771
|
interface Commands<ReturnType> {
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* Add an image
|
|
780
|
-
*/
|
|
781
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
772
|
+
indent: {
|
|
782
773
|
/**
|
|
783
|
-
*
|
|
774
|
+
* Set the indent attribute
|
|
784
775
|
*/
|
|
785
|
-
|
|
776
|
+
indent: () => ReturnType;
|
|
786
777
|
/**
|
|
787
|
-
* Set
|
|
778
|
+
* Set the outdent attribute
|
|
788
779
|
*/
|
|
789
|
-
|
|
780
|
+
outdent: () => ReturnType;
|
|
790
781
|
};
|
|
791
782
|
}
|
|
792
783
|
}
|
|
@@ -794,8 +785,9 @@ declare module '@tiptap/core' {
|
|
|
794
785
|
|
|
795
786
|
declare module '@tiptap/core' {
|
|
796
787
|
interface Commands<ReturnType> {
|
|
797
|
-
|
|
798
|
-
|
|
788
|
+
tableCellBackground: {
|
|
789
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
790
|
+
unsetTableCellBackground: () => ReturnType;
|
|
799
791
|
};
|
|
800
792
|
}
|
|
801
793
|
}
|
|
@@ -803,14 +795,8 @@ declare module '@tiptap/core' {
|
|
|
803
795
|
|
|
804
796
|
declare module '@tiptap/core' {
|
|
805
797
|
interface Commands<ReturnType> {
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
809
|
-
replace: () => ReturnType;
|
|
810
|
-
replaceAll: () => ReturnType;
|
|
811
|
-
goToPrevSearchResult: () => void;
|
|
812
|
-
goToNextSearchResult: () => void;
|
|
813
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
798
|
+
painter: {
|
|
799
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
814
800
|
};
|
|
815
801
|
}
|
|
816
802
|
}
|
|
@@ -833,13 +819,8 @@ declare module '@tiptap/core' {
|
|
|
833
819
|
|
|
834
820
|
declare module '@tiptap/core' {
|
|
835
821
|
interface Commands<ReturnType> {
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
cols: number;
|
|
839
|
-
}) => ReturnType;
|
|
840
|
-
addColBefore: () => ReturnType;
|
|
841
|
-
addColAfter: () => ReturnType;
|
|
842
|
-
deleteCol: () => ReturnType;
|
|
822
|
+
exportWord: {
|
|
823
|
+
exportToWord: () => ReturnType;
|
|
843
824
|
};
|
|
844
825
|
}
|
|
845
826
|
}
|
|
@@ -847,9 +828,11 @@ declare module '@tiptap/core' {
|
|
|
847
828
|
|
|
848
829
|
declare module '@tiptap/core' {
|
|
849
830
|
interface Commands<ReturnType> {
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
831
|
+
emoji: {
|
|
832
|
+
setEmoji: (emoji: {
|
|
833
|
+
name: string;
|
|
834
|
+
emoji: string;
|
|
835
|
+
}) => ReturnType;
|
|
853
836
|
};
|
|
854
837
|
}
|
|
855
838
|
}
|
|
@@ -857,8 +840,14 @@ declare module '@tiptap/core' {
|
|
|
857
840
|
|
|
858
841
|
declare module '@tiptap/core' {
|
|
859
842
|
interface Commands<ReturnType> {
|
|
860
|
-
|
|
861
|
-
|
|
843
|
+
search: {
|
|
844
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
845
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
846
|
+
replace: () => ReturnType;
|
|
847
|
+
replaceAll: () => ReturnType;
|
|
848
|
+
goToPrevSearchResult: () => void;
|
|
849
|
+
goToNextSearchResult: () => void;
|
|
850
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
862
851
|
};
|
|
863
852
|
}
|
|
864
853
|
}
|
|
@@ -866,8 +855,8 @@ declare module '@tiptap/core' {
|
|
|
866
855
|
|
|
867
856
|
declare module '@tiptap/core' {
|
|
868
857
|
interface Commands<ReturnType> {
|
|
869
|
-
|
|
870
|
-
|
|
858
|
+
katex: {
|
|
859
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
871
860
|
};
|
|
872
861
|
}
|
|
873
862
|
}
|
|
@@ -883,26 +872,6 @@ declare module '@tiptap/core' {
|
|
|
883
872
|
}
|
|
884
873
|
|
|
885
874
|
|
|
886
|
-
declare module '@tiptap/core' {
|
|
887
|
-
interface Commands<ReturnType> {
|
|
888
|
-
imageGifUpload: {
|
|
889
|
-
/**
|
|
890
|
-
* Add an image gif
|
|
891
|
-
*/
|
|
892
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
893
|
-
/**
|
|
894
|
-
* Update an image gif
|
|
895
|
-
*/
|
|
896
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
897
|
-
/**
|
|
898
|
-
* Set image alignment
|
|
899
|
-
*/
|
|
900
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
901
|
-
};
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
|
|
906
875
|
declare module '@tiptap/core' {
|
|
907
876
|
interface Commands<ReturnType> {
|
|
908
877
|
attachment: {
|
|
@@ -914,9 +883,9 @@ declare module '@tiptap/core' {
|
|
|
914
883
|
|
|
915
884
|
declare module '@tiptap/core' {
|
|
916
885
|
interface Commands<ReturnType> {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
886
|
+
drawer: {
|
|
887
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
888
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
920
889
|
};
|
|
921
890
|
}
|
|
922
891
|
}
|
|
@@ -924,9 +893,19 @@ declare module '@tiptap/core' {
|
|
|
924
893
|
|
|
925
894
|
declare module '@tiptap/core' {
|
|
926
895
|
interface Commands<ReturnType> {
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
896
|
+
imageGifUpload: {
|
|
897
|
+
/**
|
|
898
|
+
* Add an image gif
|
|
899
|
+
*/
|
|
900
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
901
|
+
/**
|
|
902
|
+
* Update an image gif
|
|
903
|
+
*/
|
|
904
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
905
|
+
/**
|
|
906
|
+
* Set image alignment
|
|
907
|
+
*/
|
|
908
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
930
909
|
};
|
|
931
910
|
}
|
|
932
911
|
}
|
|
@@ -945,3 +924,13 @@ declare module '@tiptap/core' {
|
|
|
945
924
|
};
|
|
946
925
|
}
|
|
947
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
|
+
};
|
|
935
|
+
}
|
|
936
|
+
}
|
|
@@ -285,8 +285,6 @@ declare interface DrawerOptions extends GeneralOptions<DrawerOptions> {
|
|
|
285
285
|
|
|
286
286
|
export declare const Emoji: Node_2<any, any>;
|
|
287
287
|
|
|
288
|
-
export declare const Excalidraw: Node_2<any, any>;
|
|
289
|
-
|
|
290
288
|
export declare const ExportPdf: Extension<any, any>;
|
|
291
289
|
|
|
292
290
|
export declare const ExportWord: Extension<ExportWordOptions, any>;
|
|
@@ -727,25 +725,19 @@ declare module '@tiptap/core' {
|
|
|
727
725
|
|
|
728
726
|
declare module '@tiptap/core' {
|
|
729
727
|
interface Commands<ReturnType> {
|
|
730
|
-
|
|
728
|
+
imageUpload: {
|
|
731
729
|
/**
|
|
732
|
-
*
|
|
730
|
+
* Add an image
|
|
733
731
|
*/
|
|
734
|
-
|
|
732
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
735
733
|
/**
|
|
736
|
-
*
|
|
734
|
+
* Update an image
|
|
737
735
|
*/
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
declare module '@tiptap/core' {
|
|
745
|
-
interface Commands<ReturnType> {
|
|
746
|
-
tableCellBackground: {
|
|
747
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
748
|
-
unsetTableCellBackground: () => ReturnType;
|
|
736
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
737
|
+
/**
|
|
738
|
+
* Set image alignment
|
|
739
|
+
*/
|
|
740
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
749
741
|
};
|
|
750
742
|
}
|
|
751
743
|
}
|
|
@@ -753,11 +745,13 @@ declare module '@tiptap/core' {
|
|
|
753
745
|
|
|
754
746
|
declare module '@tiptap/core' {
|
|
755
747
|
interface Commands<ReturnType> {
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
emoji: string;
|
|
748
|
+
columns: {
|
|
749
|
+
insertColumns: (attrs?: {
|
|
750
|
+
cols: number;
|
|
760
751
|
}) => ReturnType;
|
|
752
|
+
addColBefore: () => ReturnType;
|
|
753
|
+
addColAfter: () => ReturnType;
|
|
754
|
+
deleteCol: () => ReturnType;
|
|
761
755
|
};
|
|
762
756
|
}
|
|
763
757
|
}
|
|
@@ -765,8 +759,9 @@ declare module '@tiptap/core' {
|
|
|
765
759
|
|
|
766
760
|
declare module '@tiptap/core' {
|
|
767
761
|
interface Commands<ReturnType> {
|
|
768
|
-
|
|
769
|
-
|
|
762
|
+
lineHeight: {
|
|
763
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
764
|
+
unsetLineHeight: () => ReturnType;
|
|
770
765
|
};
|
|
771
766
|
}
|
|
772
767
|
}
|
|
@@ -774,19 +769,15 @@ declare module '@tiptap/core' {
|
|
|
774
769
|
|
|
775
770
|
declare module '@tiptap/core' {
|
|
776
771
|
interface Commands<ReturnType> {
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* Add an image
|
|
780
|
-
*/
|
|
781
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
772
|
+
indent: {
|
|
782
773
|
/**
|
|
783
|
-
*
|
|
774
|
+
* Set the indent attribute
|
|
784
775
|
*/
|
|
785
|
-
|
|
776
|
+
indent: () => ReturnType;
|
|
786
777
|
/**
|
|
787
|
-
* Set
|
|
778
|
+
* Set the outdent attribute
|
|
788
779
|
*/
|
|
789
|
-
|
|
780
|
+
outdent: () => ReturnType;
|
|
790
781
|
};
|
|
791
782
|
}
|
|
792
783
|
}
|
|
@@ -794,8 +785,9 @@ declare module '@tiptap/core' {
|
|
|
794
785
|
|
|
795
786
|
declare module '@tiptap/core' {
|
|
796
787
|
interface Commands<ReturnType> {
|
|
797
|
-
|
|
798
|
-
|
|
788
|
+
tableCellBackground: {
|
|
789
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
790
|
+
unsetTableCellBackground: () => ReturnType;
|
|
799
791
|
};
|
|
800
792
|
}
|
|
801
793
|
}
|
|
@@ -803,14 +795,8 @@ declare module '@tiptap/core' {
|
|
|
803
795
|
|
|
804
796
|
declare module '@tiptap/core' {
|
|
805
797
|
interface Commands<ReturnType> {
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
809
|
-
replace: () => ReturnType;
|
|
810
|
-
replaceAll: () => ReturnType;
|
|
811
|
-
goToPrevSearchResult: () => void;
|
|
812
|
-
goToNextSearchResult: () => void;
|
|
813
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
798
|
+
painter: {
|
|
799
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
814
800
|
};
|
|
815
801
|
}
|
|
816
802
|
}
|
|
@@ -833,13 +819,8 @@ declare module '@tiptap/core' {
|
|
|
833
819
|
|
|
834
820
|
declare module '@tiptap/core' {
|
|
835
821
|
interface Commands<ReturnType> {
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
cols: number;
|
|
839
|
-
}) => ReturnType;
|
|
840
|
-
addColBefore: () => ReturnType;
|
|
841
|
-
addColAfter: () => ReturnType;
|
|
842
|
-
deleteCol: () => ReturnType;
|
|
822
|
+
exportWord: {
|
|
823
|
+
exportToWord: () => ReturnType;
|
|
843
824
|
};
|
|
844
825
|
}
|
|
845
826
|
}
|
|
@@ -847,9 +828,11 @@ declare module '@tiptap/core' {
|
|
|
847
828
|
|
|
848
829
|
declare module '@tiptap/core' {
|
|
849
830
|
interface Commands<ReturnType> {
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
831
|
+
emoji: {
|
|
832
|
+
setEmoji: (emoji: {
|
|
833
|
+
name: string;
|
|
834
|
+
emoji: string;
|
|
835
|
+
}) => ReturnType;
|
|
853
836
|
};
|
|
854
837
|
}
|
|
855
838
|
}
|
|
@@ -857,8 +840,14 @@ declare module '@tiptap/core' {
|
|
|
857
840
|
|
|
858
841
|
declare module '@tiptap/core' {
|
|
859
842
|
interface Commands<ReturnType> {
|
|
860
|
-
|
|
861
|
-
|
|
843
|
+
search: {
|
|
844
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
845
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
846
|
+
replace: () => ReturnType;
|
|
847
|
+
replaceAll: () => ReturnType;
|
|
848
|
+
goToPrevSearchResult: () => void;
|
|
849
|
+
goToNextSearchResult: () => void;
|
|
850
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
862
851
|
};
|
|
863
852
|
}
|
|
864
853
|
}
|
|
@@ -866,8 +855,8 @@ declare module '@tiptap/core' {
|
|
|
866
855
|
|
|
867
856
|
declare module '@tiptap/core' {
|
|
868
857
|
interface Commands<ReturnType> {
|
|
869
|
-
|
|
870
|
-
|
|
858
|
+
katex: {
|
|
859
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
871
860
|
};
|
|
872
861
|
}
|
|
873
862
|
}
|
|
@@ -883,26 +872,6 @@ declare module '@tiptap/core' {
|
|
|
883
872
|
}
|
|
884
873
|
|
|
885
874
|
|
|
886
|
-
declare module '@tiptap/core' {
|
|
887
|
-
interface Commands<ReturnType> {
|
|
888
|
-
imageGifUpload: {
|
|
889
|
-
/**
|
|
890
|
-
* Add an image gif
|
|
891
|
-
*/
|
|
892
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
893
|
-
/**
|
|
894
|
-
* Update an image gif
|
|
895
|
-
*/
|
|
896
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
897
|
-
/**
|
|
898
|
-
* Set image alignment
|
|
899
|
-
*/
|
|
900
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
901
|
-
};
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
|
|
906
875
|
declare module '@tiptap/core' {
|
|
907
876
|
interface Commands<ReturnType> {
|
|
908
877
|
attachment: {
|
|
@@ -914,9 +883,9 @@ declare module '@tiptap/core' {
|
|
|
914
883
|
|
|
915
884
|
declare module '@tiptap/core' {
|
|
916
885
|
interface Commands<ReturnType> {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
886
|
+
drawer: {
|
|
887
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
888
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
920
889
|
};
|
|
921
890
|
}
|
|
922
891
|
}
|
|
@@ -924,9 +893,19 @@ declare module '@tiptap/core' {
|
|
|
924
893
|
|
|
925
894
|
declare module '@tiptap/core' {
|
|
926
895
|
interface Commands<ReturnType> {
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
896
|
+
imageGifUpload: {
|
|
897
|
+
/**
|
|
898
|
+
* Add an image gif
|
|
899
|
+
*/
|
|
900
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
901
|
+
/**
|
|
902
|
+
* Update an image gif
|
|
903
|
+
*/
|
|
904
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
905
|
+
/**
|
|
906
|
+
* Set image alignment
|
|
907
|
+
*/
|
|
908
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
930
909
|
};
|
|
931
910
|
}
|
|
932
911
|
}
|
|
@@ -945,3 +924,13 @@ declare module '@tiptap/core' {
|
|
|
945
924
|
};
|
|
946
925
|
}
|
|
947
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
|
+
};
|
|
935
|
+
}
|
|
936
|
+
}
|