reactjs-tiptap-editor-pro 0.2.27 → 0.2.29

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.
@@ -727,9 +727,8 @@ declare module '@tiptap/core' {
727
727
 
728
728
  declare module '@tiptap/core' {
729
729
  interface Commands<ReturnType> {
730
- lineHeight: {
731
- setLineHeight: (lineHeight: string) => ReturnType;
732
- unsetLineHeight: () => ReturnType;
730
+ painter: {
731
+ setPainter: (marks: Mark[]) => ReturnType;
733
732
  };
734
733
  }
735
734
  }
@@ -737,8 +736,15 @@ declare module '@tiptap/core' {
737
736
 
738
737
  declare module '@tiptap/core' {
739
738
  interface Commands<ReturnType> {
740
- katex: {
741
- setKatex: (arg?: IKatexAttrs) => ReturnType;
739
+ indent: {
740
+ /**
741
+ * Set the indent attribute
742
+ */
743
+ indent: () => ReturnType;
744
+ /**
745
+ * Set the outdent attribute
746
+ */
747
+ outdent: () => ReturnType;
742
748
  };
743
749
  }
744
750
  }
@@ -746,14 +752,19 @@ declare module '@tiptap/core' {
746
752
 
747
753
  declare module '@tiptap/core' {
748
754
  interface Commands<ReturnType> {
749
- iframe: {
755
+ imageUpload: {
750
756
  /**
751
- * Add an iframe
757
+ * Add an image
752
758
  */
753
- setIframe: (options: {
754
- src: string;
755
- service: string;
756
- }) => ReturnType;
759
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
760
+ /**
761
+ * Update an image
762
+ */
763
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
764
+ /**
765
+ * Set image alignment
766
+ */
767
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
757
768
  };
758
769
  }
759
770
  }
@@ -761,11 +772,13 @@ declare module '@tiptap/core' {
761
772
 
762
773
  declare module '@tiptap/core' {
763
774
  interface Commands<ReturnType> {
764
- emoji: {
765
- setEmoji: (emoji: {
766
- name: string;
767
- emoji: string;
775
+ columns: {
776
+ insertColumns: (attrs?: {
777
+ cols: number;
768
778
  }) => ReturnType;
779
+ addColBefore: () => ReturnType;
780
+ addColAfter: () => ReturnType;
781
+ deleteCol: () => ReturnType;
769
782
  };
770
783
  }
771
784
  }
@@ -773,8 +786,9 @@ declare module '@tiptap/core' {
773
786
 
774
787
  declare module '@tiptap/core' {
775
788
  interface Commands<ReturnType> {
776
- painter: {
777
- setPainter: (marks: Mark[]) => ReturnType;
789
+ lineHeight: {
790
+ setLineHeight: (lineHeight: string) => ReturnType;
791
+ unsetLineHeight: () => ReturnType;
778
792
  };
779
793
  }
780
794
  }
@@ -782,8 +796,9 @@ declare module '@tiptap/core' {
782
796
 
783
797
  declare module '@tiptap/core' {
784
798
  interface Commands<ReturnType> {
785
- exportWord: {
786
- exportToWord: () => ReturnType;
799
+ tableCellBackground: {
800
+ setTableCellBackground: (color: string) => ReturnType;
801
+ unsetTableCellBackground: () => ReturnType;
787
802
  };
788
803
  }
789
804
  }
@@ -791,19 +806,14 @@ declare module '@tiptap/core' {
791
806
 
792
807
  declare module '@tiptap/core' {
793
808
  interface Commands<ReturnType> {
794
- imageUpload: {
795
- /**
796
- * Add an image
797
- */
798
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
799
- /**
800
- * Update an image
801
- */
802
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
809
+ iframe: {
803
810
  /**
804
- * Set image alignment
811
+ * Add an iframe
805
812
  */
806
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
813
+ setIframe: (options: {
814
+ src: string;
815
+ service: string;
816
+ }) => ReturnType;
807
817
  };
808
818
  }
809
819
  }
@@ -826,9 +836,9 @@ declare module '@tiptap/core' {
826
836
 
827
837
  declare module '@tiptap/core' {
828
838
  interface Commands<ReturnType> {
829
- tableCellBackground: {
830
- setTableCellBackground: (color: string) => ReturnType;
831
- unsetTableCellBackground: () => ReturnType;
839
+ tableOfContents: {
840
+ setTableOfContents: () => ReturnType;
841
+ removeTableOfContents: () => ReturnType;
832
842
  };
833
843
  }
834
844
  }
@@ -836,15 +846,11 @@ declare module '@tiptap/core' {
836
846
 
837
847
  declare module '@tiptap/core' {
838
848
  interface Commands<ReturnType> {
839
- indent: {
840
- /**
841
- * Set the indent attribute
842
- */
843
- indent: () => ReturnType;
844
- /**
845
- * Set the outdent attribute
846
- */
847
- outdent: () => ReturnType;
849
+ emoji: {
850
+ setEmoji: (emoji: {
851
+ name: string;
852
+ emoji: string;
853
+ }) => ReturnType;
848
854
  };
849
855
  }
850
856
  }
@@ -852,13 +858,8 @@ declare module '@tiptap/core' {
852
858
 
853
859
  declare module '@tiptap/core' {
854
860
  interface Commands<ReturnType> {
855
- columns: {
856
- insertColumns: (attrs?: {
857
- cols: number;
858
- }) => ReturnType;
859
- addColBefore: () => ReturnType;
860
- addColAfter: () => ReturnType;
861
- deleteCol: () => ReturnType;
861
+ exportWord: {
862
+ exportToWord: () => ReturnType;
862
863
  };
863
864
  }
864
865
  }
@@ -875,9 +876,8 @@ declare module '@tiptap/core' {
875
876
 
876
877
  declare module '@tiptap/core' {
877
878
  interface Commands<ReturnType> {
878
- tableOfContents: {
879
- setTableOfContents: () => ReturnType;
880
- removeTableOfContents: () => ReturnType;
879
+ katex: {
880
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
881
881
  };
882
882
  }
883
883
  }
@@ -885,19 +885,9 @@ declare module '@tiptap/core' {
885
885
 
886
886
  declare module '@tiptap/core' {
887
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;
888
+ mermaid: {
889
+ setMermaid: (options: any, replace?: any) => ReturnType;
890
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
901
891
  };
902
892
  }
903
893
  }
@@ -905,14 +895,8 @@ declare module '@tiptap/core' {
905
895
 
906
896
  declare module '@tiptap/core' {
907
897
  interface Commands<ReturnType> {
908
- twitter: {
909
- /**
910
- * Insert a tweet
911
- * @param options The tweet attributes
912
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
913
- */
914
- setTweet: (options: SetTweetOptions) => ReturnType;
915
- updateTweet: (options: SetTweetOptions) => ReturnType;
898
+ attachment: {
899
+ setAttachment: (attrs?: unknown) => ReturnType;
916
900
  };
917
901
  }
918
902
  }
@@ -930,9 +914,14 @@ declare module '@tiptap/core' {
930
914
 
931
915
  declare module '@tiptap/core' {
932
916
  interface Commands<ReturnType> {
933
- mermaid: {
934
- setMermaid: (options: any, replace?: any) => ReturnType;
935
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
917
+ twitter: {
918
+ /**
919
+ * Insert a tweet
920
+ * @param options The tweet attributes
921
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
922
+ */
923
+ setTweet: (options: SetTweetOptions) => ReturnType;
924
+ updateTweet: (options: SetTweetOptions) => ReturnType;
936
925
  };
937
926
  }
938
927
  }
@@ -940,8 +929,19 @@ declare module '@tiptap/core' {
940
929
 
941
930
  declare module '@tiptap/core' {
942
931
  interface Commands<ReturnType> {
943
- attachment: {
944
- setAttachment: (attrs?: unknown) => ReturnType;
932
+ imageGifUpload: {
933
+ /**
934
+ * Add an image gif
935
+ */
936
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
937
+ /**
938
+ * Update an image gif
939
+ */
940
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
941
+ /**
942
+ * Set image alignment
943
+ */
944
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
945
945
  };
946
946
  }
947
947
  }
@@ -727,9 +727,8 @@ declare module '@tiptap/core' {
727
727
 
728
728
  declare module '@tiptap/core' {
729
729
  interface Commands<ReturnType> {
730
- lineHeight: {
731
- setLineHeight: (lineHeight: string) => ReturnType;
732
- unsetLineHeight: () => ReturnType;
730
+ painter: {
731
+ setPainter: (marks: Mark[]) => ReturnType;
733
732
  };
734
733
  }
735
734
  }
@@ -737,8 +736,15 @@ declare module '@tiptap/core' {
737
736
 
738
737
  declare module '@tiptap/core' {
739
738
  interface Commands<ReturnType> {
740
- katex: {
741
- setKatex: (arg?: IKatexAttrs) => ReturnType;
739
+ indent: {
740
+ /**
741
+ * Set the indent attribute
742
+ */
743
+ indent: () => ReturnType;
744
+ /**
745
+ * Set the outdent attribute
746
+ */
747
+ outdent: () => ReturnType;
742
748
  };
743
749
  }
744
750
  }
@@ -746,14 +752,19 @@ declare module '@tiptap/core' {
746
752
 
747
753
  declare module '@tiptap/core' {
748
754
  interface Commands<ReturnType> {
749
- iframe: {
755
+ imageUpload: {
750
756
  /**
751
- * Add an iframe
757
+ * Add an image
752
758
  */
753
- setIframe: (options: {
754
- src: string;
755
- service: string;
756
- }) => ReturnType;
759
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
760
+ /**
761
+ * Update an image
762
+ */
763
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
764
+ /**
765
+ * Set image alignment
766
+ */
767
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
757
768
  };
758
769
  }
759
770
  }
@@ -761,11 +772,13 @@ declare module '@tiptap/core' {
761
772
 
762
773
  declare module '@tiptap/core' {
763
774
  interface Commands<ReturnType> {
764
- emoji: {
765
- setEmoji: (emoji: {
766
- name: string;
767
- emoji: string;
775
+ columns: {
776
+ insertColumns: (attrs?: {
777
+ cols: number;
768
778
  }) => ReturnType;
779
+ addColBefore: () => ReturnType;
780
+ addColAfter: () => ReturnType;
781
+ deleteCol: () => ReturnType;
769
782
  };
770
783
  }
771
784
  }
@@ -773,8 +786,9 @@ declare module '@tiptap/core' {
773
786
 
774
787
  declare module '@tiptap/core' {
775
788
  interface Commands<ReturnType> {
776
- painter: {
777
- setPainter: (marks: Mark[]) => ReturnType;
789
+ lineHeight: {
790
+ setLineHeight: (lineHeight: string) => ReturnType;
791
+ unsetLineHeight: () => ReturnType;
778
792
  };
779
793
  }
780
794
  }
@@ -782,8 +796,9 @@ declare module '@tiptap/core' {
782
796
 
783
797
  declare module '@tiptap/core' {
784
798
  interface Commands<ReturnType> {
785
- exportWord: {
786
- exportToWord: () => ReturnType;
799
+ tableCellBackground: {
800
+ setTableCellBackground: (color: string) => ReturnType;
801
+ unsetTableCellBackground: () => ReturnType;
787
802
  };
788
803
  }
789
804
  }
@@ -791,19 +806,14 @@ declare module '@tiptap/core' {
791
806
 
792
807
  declare module '@tiptap/core' {
793
808
  interface Commands<ReturnType> {
794
- imageUpload: {
795
- /**
796
- * Add an image
797
- */
798
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
799
- /**
800
- * Update an image
801
- */
802
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
809
+ iframe: {
803
810
  /**
804
- * Set image alignment
811
+ * Add an iframe
805
812
  */
806
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
813
+ setIframe: (options: {
814
+ src: string;
815
+ service: string;
816
+ }) => ReturnType;
807
817
  };
808
818
  }
809
819
  }
@@ -826,9 +836,9 @@ declare module '@tiptap/core' {
826
836
 
827
837
  declare module '@tiptap/core' {
828
838
  interface Commands<ReturnType> {
829
- tableCellBackground: {
830
- setTableCellBackground: (color: string) => ReturnType;
831
- unsetTableCellBackground: () => ReturnType;
839
+ tableOfContents: {
840
+ setTableOfContents: () => ReturnType;
841
+ removeTableOfContents: () => ReturnType;
832
842
  };
833
843
  }
834
844
  }
@@ -836,15 +846,11 @@ declare module '@tiptap/core' {
836
846
 
837
847
  declare module '@tiptap/core' {
838
848
  interface Commands<ReturnType> {
839
- indent: {
840
- /**
841
- * Set the indent attribute
842
- */
843
- indent: () => ReturnType;
844
- /**
845
- * Set the outdent attribute
846
- */
847
- outdent: () => ReturnType;
849
+ emoji: {
850
+ setEmoji: (emoji: {
851
+ name: string;
852
+ emoji: string;
853
+ }) => ReturnType;
848
854
  };
849
855
  }
850
856
  }
@@ -852,13 +858,8 @@ declare module '@tiptap/core' {
852
858
 
853
859
  declare module '@tiptap/core' {
854
860
  interface Commands<ReturnType> {
855
- columns: {
856
- insertColumns: (attrs?: {
857
- cols: number;
858
- }) => ReturnType;
859
- addColBefore: () => ReturnType;
860
- addColAfter: () => ReturnType;
861
- deleteCol: () => ReturnType;
861
+ exportWord: {
862
+ exportToWord: () => ReturnType;
862
863
  };
863
864
  }
864
865
  }
@@ -875,9 +876,8 @@ declare module '@tiptap/core' {
875
876
 
876
877
  declare module '@tiptap/core' {
877
878
  interface Commands<ReturnType> {
878
- tableOfContents: {
879
- setTableOfContents: () => ReturnType;
880
- removeTableOfContents: () => ReturnType;
879
+ katex: {
880
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
881
881
  };
882
882
  }
883
883
  }
@@ -885,19 +885,9 @@ declare module '@tiptap/core' {
885
885
 
886
886
  declare module '@tiptap/core' {
887
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;
888
+ mermaid: {
889
+ setMermaid: (options: any, replace?: any) => ReturnType;
890
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
901
891
  };
902
892
  }
903
893
  }
@@ -905,14 +895,8 @@ declare module '@tiptap/core' {
905
895
 
906
896
  declare module '@tiptap/core' {
907
897
  interface Commands<ReturnType> {
908
- twitter: {
909
- /**
910
- * Insert a tweet
911
- * @param options The tweet attributes
912
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
913
- */
914
- setTweet: (options: SetTweetOptions) => ReturnType;
915
- updateTweet: (options: SetTweetOptions) => ReturnType;
898
+ attachment: {
899
+ setAttachment: (attrs?: unknown) => ReturnType;
916
900
  };
917
901
  }
918
902
  }
@@ -930,9 +914,14 @@ declare module '@tiptap/core' {
930
914
 
931
915
  declare module '@tiptap/core' {
932
916
  interface Commands<ReturnType> {
933
- mermaid: {
934
- setMermaid: (options: any, replace?: any) => ReturnType;
935
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
917
+ twitter: {
918
+ /**
919
+ * Insert a tweet
920
+ * @param options The tweet attributes
921
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
922
+ */
923
+ setTweet: (options: SetTweetOptions) => ReturnType;
924
+ updateTweet: (options: SetTweetOptions) => ReturnType;
936
925
  };
937
926
  }
938
927
  }
@@ -940,8 +929,19 @@ declare module '@tiptap/core' {
940
929
 
941
930
  declare module '@tiptap/core' {
942
931
  interface Commands<ReturnType> {
943
- attachment: {
944
- setAttachment: (attrs?: unknown) => ReturnType;
932
+ imageGifUpload: {
933
+ /**
934
+ * Add an image gif
935
+ */
936
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
937
+ /**
938
+ * Update an image gif
939
+ */
940
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
941
+ /**
942
+ * Set image alignment
943
+ */
944
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
945
945
  };
946
946
  }
947
947
  }