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.
@@ -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
- indent: {
728
+ imageUpload: {
731
729
  /**
732
- * Set the indent attribute
730
+ * Add an image
733
731
  */
734
- indent: () => ReturnType;
732
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
735
733
  /**
736
- * Set the outdent attribute
734
+ * Update an image
737
735
  */
738
- outdent: () => ReturnType;
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
- emoji: {
757
- setEmoji: (emoji: {
758
- name: string;
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
- painter: {
769
- setPainter: (marks: Mark[]) => ReturnType;
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
- imageUpload: {
778
- /**
779
- * Add an image
780
- */
781
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
772
+ indent: {
782
773
  /**
783
- * Update an image
774
+ * Set the indent attribute
784
775
  */
785
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
776
+ indent: () => ReturnType;
786
777
  /**
787
- * Set image alignment
778
+ * Set the outdent attribute
788
779
  */
789
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
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
- katex: {
798
- setKatex: (arg?: IKatexAttrs) => ReturnType;
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
- search: {
807
- setSearchTerm: (searchTerm: string) => ReturnType;
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
- columns: {
837
- insertColumns: (attrs?: {
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
- lineHeight: {
851
- setLineHeight: (lineHeight: string) => ReturnType;
852
- unsetLineHeight: () => ReturnType;
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
- exportWord: {
861
- exportToWord: () => ReturnType;
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
- excalidraw: {
870
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
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
- mermaid: {
918
- setMermaid: (options: any, replace?: any) => ReturnType;
919
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
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
- drawer: {
928
- setDrawer: (options: any, replace?: any) => ReturnType;
929
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
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
- indent: {
728
+ imageUpload: {
731
729
  /**
732
- * Set the indent attribute
730
+ * Add an image
733
731
  */
734
- indent: () => ReturnType;
732
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
735
733
  /**
736
- * Set the outdent attribute
734
+ * Update an image
737
735
  */
738
- outdent: () => ReturnType;
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
- emoji: {
757
- setEmoji: (emoji: {
758
- name: string;
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
- painter: {
769
- setPainter: (marks: Mark[]) => ReturnType;
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
- imageUpload: {
778
- /**
779
- * Add an image
780
- */
781
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
772
+ indent: {
782
773
  /**
783
- * Update an image
774
+ * Set the indent attribute
784
775
  */
785
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
776
+ indent: () => ReturnType;
786
777
  /**
787
- * Set image alignment
778
+ * Set the outdent attribute
788
779
  */
789
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
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
- katex: {
798
- setKatex: (arg?: IKatexAttrs) => ReturnType;
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
- search: {
807
- setSearchTerm: (searchTerm: string) => ReturnType;
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
- columns: {
837
- insertColumns: (attrs?: {
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
- lineHeight: {
851
- setLineHeight: (lineHeight: string) => ReturnType;
852
- unsetLineHeight: () => ReturnType;
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
- exportWord: {
861
- exportToWord: () => ReturnType;
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
- excalidraw: {
870
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
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
- mermaid: {
918
- setMermaid: (options: any, replace?: any) => ReturnType;
919
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
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
- drawer: {
928
- setDrawer: (options: any, replace?: any) => ReturnType;
929
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
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
+ }