reactjs-tiptap-editor-pro 0.2.25 → 0.2.26

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,9 @@ 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
+ tableCellBackground: {
731
+ setTableCellBackground: (color: string) => ReturnType;
732
+ unsetTableCellBackground: () => ReturnType;
733
733
  };
734
734
  }
735
735
  }
@@ -773,9 +773,9 @@ declare module '@tiptap/core' {
773
773
 
774
774
  declare module '@tiptap/core' {
775
775
  interface Commands<ReturnType> {
776
- tableCellBackground: {
777
- setTableCellBackground: (color: string) => ReturnType;
778
- unsetTableCellBackground: () => ReturnType;
776
+ lineHeight: {
777
+ setLineHeight: (lineHeight: string) => ReturnType;
778
+ unsetLineHeight: () => ReturnType;
779
779
  };
780
780
  }
781
781
  }
@@ -798,13 +798,9 @@ declare module '@tiptap/core' {
798
798
 
799
799
  declare module '@tiptap/core' {
800
800
  interface Commands<ReturnType> {
801
- columns: {
802
- insertColumns: (attrs?: {
803
- cols: number;
804
- }) => ReturnType;
805
- addColBefore: () => ReturnType;
806
- addColAfter: () => ReturnType;
807
- deleteCol: () => ReturnType;
801
+ tableOfContents: {
802
+ setTableOfContents: () => ReturnType;
803
+ removeTableOfContents: () => ReturnType;
808
804
  };
809
805
  }
810
806
  }
@@ -812,8 +808,14 @@ declare module '@tiptap/core' {
812
808
 
813
809
  declare module '@tiptap/core' {
814
810
  interface Commands<ReturnType> {
815
- painter: {
816
- setPainter: (marks: Mark[]) => ReturnType;
811
+ iframe: {
812
+ /**
813
+ * Add an iframe
814
+ */
815
+ setIframe: (options: {
816
+ src: string;
817
+ service: string;
818
+ }) => ReturnType;
817
819
  };
818
820
  }
819
821
  }
@@ -821,8 +823,13 @@ declare module '@tiptap/core' {
821
823
 
822
824
  declare module '@tiptap/core' {
823
825
  interface Commands<ReturnType> {
824
- katex: {
825
- setKatex: (arg?: IKatexAttrs) => ReturnType;
826
+ columns: {
827
+ insertColumns: (attrs?: {
828
+ cols: number;
829
+ }) => ReturnType;
830
+ addColBefore: () => ReturnType;
831
+ addColAfter: () => ReturnType;
832
+ deleteCol: () => ReturnType;
826
833
  };
827
834
  }
828
835
  }
@@ -830,11 +837,8 @@ declare module '@tiptap/core' {
830
837
 
831
838
  declare module '@tiptap/core' {
832
839
  interface Commands<ReturnType> {
833
- emoji: {
834
- setEmoji: (emoji: {
835
- name: string;
836
- emoji: string;
837
- }) => ReturnType;
840
+ exportWord: {
841
+ exportToWord: () => ReturnType;
838
842
  };
839
843
  }
840
844
  }
@@ -842,14 +846,8 @@ declare module '@tiptap/core' {
842
846
 
843
847
  declare module '@tiptap/core' {
844
848
  interface Commands<ReturnType> {
845
- iframe: {
846
- /**
847
- * Add an iframe
848
- */
849
- setIframe: (options: {
850
- src: string;
851
- service: string;
852
- }) => ReturnType;
849
+ painter: {
850
+ setPainter: (marks: Mark[]) => ReturnType;
853
851
  };
854
852
  }
855
853
  }
@@ -857,8 +855,11 @@ declare module '@tiptap/core' {
857
855
 
858
856
  declare module '@tiptap/core' {
859
857
  interface Commands<ReturnType> {
860
- exportWord: {
861
- exportToWord: () => ReturnType;
858
+ emoji: {
859
+ setEmoji: (emoji: {
860
+ name: string;
861
+ emoji: string;
862
+ }) => ReturnType;
862
863
  };
863
864
  }
864
865
  }
@@ -866,9 +867,8 @@ declare module '@tiptap/core' {
866
867
 
867
868
  declare module '@tiptap/core' {
868
869
  interface Commands<ReturnType> {
869
- tableOfContents: {
870
- setTableOfContents: () => ReturnType;
871
- removeTableOfContents: () => ReturnType;
870
+ excalidraw: {
871
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
872
872
  };
873
873
  }
874
874
  }
@@ -876,8 +876,8 @@ declare module '@tiptap/core' {
876
876
 
877
877
  declare module '@tiptap/core' {
878
878
  interface Commands<ReturnType> {
879
- excalidraw: {
880
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
879
+ katex: {
880
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
881
881
  };
882
882
  }
883
883
  }
@@ -885,19 +885,8 @@ 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
+ attachment: {
889
+ setAttachment: (attrs?: unknown) => ReturnType;
901
890
  };
902
891
  }
903
892
  }
@@ -905,9 +894,14 @@ declare module '@tiptap/core' {
905
894
 
906
895
  declare module '@tiptap/core' {
907
896
  interface Commands<ReturnType> {
908
- mermaid: {
909
- setMermaid: (options: any, replace?: any) => ReturnType;
910
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
897
+ twitter: {
898
+ /**
899
+ * Insert a tweet
900
+ * @param options The tweet attributes
901
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
902
+ */
903
+ setTweet: (options: SetTweetOptions) => ReturnType;
904
+ updateTweet: (options: SetTweetOptions) => ReturnType;
911
905
  };
912
906
  }
913
907
  }
@@ -925,8 +919,9 @@ declare module '@tiptap/core' {
925
919
 
926
920
  declare module '@tiptap/core' {
927
921
  interface Commands<ReturnType> {
928
- attachment: {
929
- setAttachment: (attrs?: unknown) => ReturnType;
922
+ mermaid: {
923
+ setMermaid: (options: any, replace?: any) => ReturnType;
924
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
930
925
  };
931
926
  }
932
927
  }
@@ -934,14 +929,19 @@ declare module '@tiptap/core' {
934
929
 
935
930
  declare module '@tiptap/core' {
936
931
  interface Commands<ReturnType> {
937
- twitter: {
932
+ imageGifUpload: {
938
933
  /**
939
- * Insert a tweet
940
- * @param options The tweet attributes
941
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
934
+ * Add an image gif
942
935
  */
943
- setTweet: (options: SetTweetOptions) => ReturnType;
944
- updateTweet: (options: SetTweetOptions) => ReturnType;
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,9 @@ 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
+ tableCellBackground: {
731
+ setTableCellBackground: (color: string) => ReturnType;
732
+ unsetTableCellBackground: () => ReturnType;
733
733
  };
734
734
  }
735
735
  }
@@ -773,9 +773,9 @@ declare module '@tiptap/core' {
773
773
 
774
774
  declare module '@tiptap/core' {
775
775
  interface Commands<ReturnType> {
776
- tableCellBackground: {
777
- setTableCellBackground: (color: string) => ReturnType;
778
- unsetTableCellBackground: () => ReturnType;
776
+ lineHeight: {
777
+ setLineHeight: (lineHeight: string) => ReturnType;
778
+ unsetLineHeight: () => ReturnType;
779
779
  };
780
780
  }
781
781
  }
@@ -798,13 +798,9 @@ declare module '@tiptap/core' {
798
798
 
799
799
  declare module '@tiptap/core' {
800
800
  interface Commands<ReturnType> {
801
- columns: {
802
- insertColumns: (attrs?: {
803
- cols: number;
804
- }) => ReturnType;
805
- addColBefore: () => ReturnType;
806
- addColAfter: () => ReturnType;
807
- deleteCol: () => ReturnType;
801
+ tableOfContents: {
802
+ setTableOfContents: () => ReturnType;
803
+ removeTableOfContents: () => ReturnType;
808
804
  };
809
805
  }
810
806
  }
@@ -812,8 +808,14 @@ declare module '@tiptap/core' {
812
808
 
813
809
  declare module '@tiptap/core' {
814
810
  interface Commands<ReturnType> {
815
- painter: {
816
- setPainter: (marks: Mark[]) => ReturnType;
811
+ iframe: {
812
+ /**
813
+ * Add an iframe
814
+ */
815
+ setIframe: (options: {
816
+ src: string;
817
+ service: string;
818
+ }) => ReturnType;
817
819
  };
818
820
  }
819
821
  }
@@ -821,8 +823,13 @@ declare module '@tiptap/core' {
821
823
 
822
824
  declare module '@tiptap/core' {
823
825
  interface Commands<ReturnType> {
824
- katex: {
825
- setKatex: (arg?: IKatexAttrs) => ReturnType;
826
+ columns: {
827
+ insertColumns: (attrs?: {
828
+ cols: number;
829
+ }) => ReturnType;
830
+ addColBefore: () => ReturnType;
831
+ addColAfter: () => ReturnType;
832
+ deleteCol: () => ReturnType;
826
833
  };
827
834
  }
828
835
  }
@@ -830,11 +837,8 @@ declare module '@tiptap/core' {
830
837
 
831
838
  declare module '@tiptap/core' {
832
839
  interface Commands<ReturnType> {
833
- emoji: {
834
- setEmoji: (emoji: {
835
- name: string;
836
- emoji: string;
837
- }) => ReturnType;
840
+ exportWord: {
841
+ exportToWord: () => ReturnType;
838
842
  };
839
843
  }
840
844
  }
@@ -842,14 +846,8 @@ declare module '@tiptap/core' {
842
846
 
843
847
  declare module '@tiptap/core' {
844
848
  interface Commands<ReturnType> {
845
- iframe: {
846
- /**
847
- * Add an iframe
848
- */
849
- setIframe: (options: {
850
- src: string;
851
- service: string;
852
- }) => ReturnType;
849
+ painter: {
850
+ setPainter: (marks: Mark[]) => ReturnType;
853
851
  };
854
852
  }
855
853
  }
@@ -857,8 +855,11 @@ declare module '@tiptap/core' {
857
855
 
858
856
  declare module '@tiptap/core' {
859
857
  interface Commands<ReturnType> {
860
- exportWord: {
861
- exportToWord: () => ReturnType;
858
+ emoji: {
859
+ setEmoji: (emoji: {
860
+ name: string;
861
+ emoji: string;
862
+ }) => ReturnType;
862
863
  };
863
864
  }
864
865
  }
@@ -866,9 +867,8 @@ declare module '@tiptap/core' {
866
867
 
867
868
  declare module '@tiptap/core' {
868
869
  interface Commands<ReturnType> {
869
- tableOfContents: {
870
- setTableOfContents: () => ReturnType;
871
- removeTableOfContents: () => ReturnType;
870
+ excalidraw: {
871
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
872
872
  };
873
873
  }
874
874
  }
@@ -876,8 +876,8 @@ declare module '@tiptap/core' {
876
876
 
877
877
  declare module '@tiptap/core' {
878
878
  interface Commands<ReturnType> {
879
- excalidraw: {
880
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
879
+ katex: {
880
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
881
881
  };
882
882
  }
883
883
  }
@@ -885,19 +885,8 @@ 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
+ attachment: {
889
+ setAttachment: (attrs?: unknown) => ReturnType;
901
890
  };
902
891
  }
903
892
  }
@@ -905,9 +894,14 @@ declare module '@tiptap/core' {
905
894
 
906
895
  declare module '@tiptap/core' {
907
896
  interface Commands<ReturnType> {
908
- mermaid: {
909
- setMermaid: (options: any, replace?: any) => ReturnType;
910
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
897
+ twitter: {
898
+ /**
899
+ * Insert a tweet
900
+ * @param options The tweet attributes
901
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
902
+ */
903
+ setTweet: (options: SetTweetOptions) => ReturnType;
904
+ updateTweet: (options: SetTweetOptions) => ReturnType;
911
905
  };
912
906
  }
913
907
  }
@@ -925,8 +919,9 @@ declare module '@tiptap/core' {
925
919
 
926
920
  declare module '@tiptap/core' {
927
921
  interface Commands<ReturnType> {
928
- attachment: {
929
- setAttachment: (attrs?: unknown) => ReturnType;
922
+ mermaid: {
923
+ setMermaid: (options: any, replace?: any) => ReturnType;
924
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
930
925
  };
931
926
  }
932
927
  }
@@ -934,14 +929,19 @@ declare module '@tiptap/core' {
934
929
 
935
930
  declare module '@tiptap/core' {
936
931
  interface Commands<ReturnType> {
937
- twitter: {
932
+ imageGifUpload: {
938
933
  /**
939
- * Insert a tweet
940
- * @param options The tweet attributes
941
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
934
+ * Add an image gif
942
935
  */
943
- setTweet: (options: SetTweetOptions) => ReturnType;
944
- updateTweet: (options: SetTweetOptions) => ReturnType;
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
  }