reactjs-tiptap-editor-pro 0.2.25 → 0.2.27

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.
@@ -737,15 +737,8 @@ declare module '@tiptap/core' {
737
737
 
738
738
  declare module '@tiptap/core' {
739
739
  interface Commands<ReturnType> {
740
- indent: {
741
- /**
742
- * Set the indent attribute
743
- */
744
- indent: () => ReturnType;
745
- /**
746
- * Set the outdent attribute
747
- */
748
- outdent: () => ReturnType;
740
+ katex: {
741
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
749
742
  };
750
743
  }
751
744
  }
@@ -753,19 +746,14 @@ declare module '@tiptap/core' {
753
746
 
754
747
  declare module '@tiptap/core' {
755
748
  interface Commands<ReturnType> {
756
- imageUpload: {
757
- /**
758
- * Add an image
759
- */
760
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
761
- /**
762
- * Update an image
763
- */
764
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
749
+ iframe: {
765
750
  /**
766
- * Set image alignment
751
+ * Add an iframe
767
752
  */
768
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
753
+ setIframe: (options: {
754
+ src: string;
755
+ service: string;
756
+ }) => ReturnType;
769
757
  };
770
758
  }
771
759
  }
@@ -773,9 +761,11 @@ declare module '@tiptap/core' {
773
761
 
774
762
  declare module '@tiptap/core' {
775
763
  interface Commands<ReturnType> {
776
- tableCellBackground: {
777
- setTableCellBackground: (color: string) => ReturnType;
778
- unsetTableCellBackground: () => ReturnType;
764
+ emoji: {
765
+ setEmoji: (emoji: {
766
+ name: string;
767
+ emoji: string;
768
+ }) => ReturnType;
779
769
  };
780
770
  }
781
771
  }
@@ -783,14 +773,8 @@ declare module '@tiptap/core' {
783
773
 
784
774
  declare module '@tiptap/core' {
785
775
  interface Commands<ReturnType> {
786
- search: {
787
- setSearchTerm: (searchTerm: string) => ReturnType;
788
- setReplaceTerm: (replaceTerm: string) => ReturnType;
789
- replace: () => ReturnType;
790
- replaceAll: () => ReturnType;
791
- goToPrevSearchResult: () => void;
792
- goToNextSearchResult: () => void;
793
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
776
+ painter: {
777
+ setPainter: (marks: Mark[]) => ReturnType;
794
778
  };
795
779
  }
796
780
  }
@@ -798,13 +782,8 @@ declare module '@tiptap/core' {
798
782
 
799
783
  declare module '@tiptap/core' {
800
784
  interface Commands<ReturnType> {
801
- columns: {
802
- insertColumns: (attrs?: {
803
- cols: number;
804
- }) => ReturnType;
805
- addColBefore: () => ReturnType;
806
- addColAfter: () => ReturnType;
807
- deleteCol: () => ReturnType;
785
+ exportWord: {
786
+ exportToWord: () => ReturnType;
808
787
  };
809
788
  }
810
789
  }
@@ -812,8 +791,19 @@ declare module '@tiptap/core' {
812
791
 
813
792
  declare module '@tiptap/core' {
814
793
  interface Commands<ReturnType> {
815
- painter: {
816
- setPainter: (marks: Mark[]) => 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;
803
+ /**
804
+ * Set image alignment
805
+ */
806
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
817
807
  };
818
808
  }
819
809
  }
@@ -821,8 +811,14 @@ declare module '@tiptap/core' {
821
811
 
822
812
  declare module '@tiptap/core' {
823
813
  interface Commands<ReturnType> {
824
- katex: {
825
- setKatex: (arg?: IKatexAttrs) => ReturnType;
814
+ search: {
815
+ setSearchTerm: (searchTerm: string) => ReturnType;
816
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
817
+ replace: () => ReturnType;
818
+ replaceAll: () => ReturnType;
819
+ goToPrevSearchResult: () => void;
820
+ goToNextSearchResult: () => void;
821
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
826
822
  };
827
823
  }
828
824
  }
@@ -830,11 +826,9 @@ declare module '@tiptap/core' {
830
826
 
831
827
  declare module '@tiptap/core' {
832
828
  interface Commands<ReturnType> {
833
- emoji: {
834
- setEmoji: (emoji: {
835
- name: string;
836
- emoji: string;
837
- }) => ReturnType;
829
+ tableCellBackground: {
830
+ setTableCellBackground: (color: string) => ReturnType;
831
+ unsetTableCellBackground: () => ReturnType;
838
832
  };
839
833
  }
840
834
  }
@@ -842,14 +836,15 @@ declare module '@tiptap/core' {
842
836
 
843
837
  declare module '@tiptap/core' {
844
838
  interface Commands<ReturnType> {
845
- iframe: {
839
+ indent: {
846
840
  /**
847
- * Add an iframe
841
+ * Set the indent attribute
848
842
  */
849
- setIframe: (options: {
850
- src: string;
851
- service: string;
852
- }) => ReturnType;
843
+ indent: () => ReturnType;
844
+ /**
845
+ * Set the outdent attribute
846
+ */
847
+ outdent: () => ReturnType;
853
848
  };
854
849
  }
855
850
  }
@@ -857,8 +852,13 @@ declare module '@tiptap/core' {
857
852
 
858
853
  declare module '@tiptap/core' {
859
854
  interface Commands<ReturnType> {
860
- exportWord: {
861
- exportToWord: () => ReturnType;
855
+ columns: {
856
+ insertColumns: (attrs?: {
857
+ cols: number;
858
+ }) => ReturnType;
859
+ addColBefore: () => ReturnType;
860
+ addColAfter: () => ReturnType;
861
+ deleteCol: () => ReturnType;
862
862
  };
863
863
  }
864
864
  }
@@ -866,9 +866,8 @@ declare module '@tiptap/core' {
866
866
 
867
867
  declare module '@tiptap/core' {
868
868
  interface Commands<ReturnType> {
869
- tableOfContents: {
870
- setTableOfContents: () => ReturnType;
871
- removeTableOfContents: () => ReturnType;
869
+ excalidraw: {
870
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
872
871
  };
873
872
  }
874
873
  }
@@ -876,8 +875,9 @@ declare module '@tiptap/core' {
876
875
 
877
876
  declare module '@tiptap/core' {
878
877
  interface Commands<ReturnType> {
879
- excalidraw: {
880
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
878
+ tableOfContents: {
879
+ setTableOfContents: () => ReturnType;
880
+ removeTableOfContents: () => ReturnType;
881
881
  };
882
882
  }
883
883
  }
@@ -905,9 +905,14 @@ declare module '@tiptap/core' {
905
905
 
906
906
  declare module '@tiptap/core' {
907
907
  interface Commands<ReturnType> {
908
- mermaid: {
909
- setMermaid: (options: any, replace?: any) => ReturnType;
910
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => 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;
911
916
  };
912
917
  }
913
918
  }
@@ -925,8 +930,9 @@ declare module '@tiptap/core' {
925
930
 
926
931
  declare module '@tiptap/core' {
927
932
  interface Commands<ReturnType> {
928
- attachment: {
929
- setAttachment: (attrs?: unknown) => ReturnType;
933
+ mermaid: {
934
+ setMermaid: (options: any, replace?: any) => ReturnType;
935
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
930
936
  };
931
937
  }
932
938
  }
@@ -934,14 +940,8 @@ declare module '@tiptap/core' {
934
940
 
935
941
  declare module '@tiptap/core' {
936
942
  interface Commands<ReturnType> {
937
- twitter: {
938
- /**
939
- * Insert a tweet
940
- * @param options The tweet attributes
941
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
942
- */
943
- setTweet: (options: SetTweetOptions) => ReturnType;
944
- updateTweet: (options: SetTweetOptions) => ReturnType;
943
+ attachment: {
944
+ setAttachment: (attrs?: unknown) => ReturnType;
945
945
  };
946
946
  }
947
947
  }
@@ -737,15 +737,8 @@ declare module '@tiptap/core' {
737
737
 
738
738
  declare module '@tiptap/core' {
739
739
  interface Commands<ReturnType> {
740
- indent: {
741
- /**
742
- * Set the indent attribute
743
- */
744
- indent: () => ReturnType;
745
- /**
746
- * Set the outdent attribute
747
- */
748
- outdent: () => ReturnType;
740
+ katex: {
741
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
749
742
  };
750
743
  }
751
744
  }
@@ -753,19 +746,14 @@ declare module '@tiptap/core' {
753
746
 
754
747
  declare module '@tiptap/core' {
755
748
  interface Commands<ReturnType> {
756
- imageUpload: {
757
- /**
758
- * Add an image
759
- */
760
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
761
- /**
762
- * Update an image
763
- */
764
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
749
+ iframe: {
765
750
  /**
766
- * Set image alignment
751
+ * Add an iframe
767
752
  */
768
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
753
+ setIframe: (options: {
754
+ src: string;
755
+ service: string;
756
+ }) => ReturnType;
769
757
  };
770
758
  }
771
759
  }
@@ -773,9 +761,11 @@ declare module '@tiptap/core' {
773
761
 
774
762
  declare module '@tiptap/core' {
775
763
  interface Commands<ReturnType> {
776
- tableCellBackground: {
777
- setTableCellBackground: (color: string) => ReturnType;
778
- unsetTableCellBackground: () => ReturnType;
764
+ emoji: {
765
+ setEmoji: (emoji: {
766
+ name: string;
767
+ emoji: string;
768
+ }) => ReturnType;
779
769
  };
780
770
  }
781
771
  }
@@ -783,14 +773,8 @@ declare module '@tiptap/core' {
783
773
 
784
774
  declare module '@tiptap/core' {
785
775
  interface Commands<ReturnType> {
786
- search: {
787
- setSearchTerm: (searchTerm: string) => ReturnType;
788
- setReplaceTerm: (replaceTerm: string) => ReturnType;
789
- replace: () => ReturnType;
790
- replaceAll: () => ReturnType;
791
- goToPrevSearchResult: () => void;
792
- goToNextSearchResult: () => void;
793
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
776
+ painter: {
777
+ setPainter: (marks: Mark[]) => ReturnType;
794
778
  };
795
779
  }
796
780
  }
@@ -798,13 +782,8 @@ declare module '@tiptap/core' {
798
782
 
799
783
  declare module '@tiptap/core' {
800
784
  interface Commands<ReturnType> {
801
- columns: {
802
- insertColumns: (attrs?: {
803
- cols: number;
804
- }) => ReturnType;
805
- addColBefore: () => ReturnType;
806
- addColAfter: () => ReturnType;
807
- deleteCol: () => ReturnType;
785
+ exportWord: {
786
+ exportToWord: () => ReturnType;
808
787
  };
809
788
  }
810
789
  }
@@ -812,8 +791,19 @@ declare module '@tiptap/core' {
812
791
 
813
792
  declare module '@tiptap/core' {
814
793
  interface Commands<ReturnType> {
815
- painter: {
816
- setPainter: (marks: Mark[]) => 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;
803
+ /**
804
+ * Set image alignment
805
+ */
806
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
817
807
  };
818
808
  }
819
809
  }
@@ -821,8 +811,14 @@ declare module '@tiptap/core' {
821
811
 
822
812
  declare module '@tiptap/core' {
823
813
  interface Commands<ReturnType> {
824
- katex: {
825
- setKatex: (arg?: IKatexAttrs) => ReturnType;
814
+ search: {
815
+ setSearchTerm: (searchTerm: string) => ReturnType;
816
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
817
+ replace: () => ReturnType;
818
+ replaceAll: () => ReturnType;
819
+ goToPrevSearchResult: () => void;
820
+ goToNextSearchResult: () => void;
821
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
826
822
  };
827
823
  }
828
824
  }
@@ -830,11 +826,9 @@ declare module '@tiptap/core' {
830
826
 
831
827
  declare module '@tiptap/core' {
832
828
  interface Commands<ReturnType> {
833
- emoji: {
834
- setEmoji: (emoji: {
835
- name: string;
836
- emoji: string;
837
- }) => ReturnType;
829
+ tableCellBackground: {
830
+ setTableCellBackground: (color: string) => ReturnType;
831
+ unsetTableCellBackground: () => ReturnType;
838
832
  };
839
833
  }
840
834
  }
@@ -842,14 +836,15 @@ declare module '@tiptap/core' {
842
836
 
843
837
  declare module '@tiptap/core' {
844
838
  interface Commands<ReturnType> {
845
- iframe: {
839
+ indent: {
846
840
  /**
847
- * Add an iframe
841
+ * Set the indent attribute
848
842
  */
849
- setIframe: (options: {
850
- src: string;
851
- service: string;
852
- }) => ReturnType;
843
+ indent: () => ReturnType;
844
+ /**
845
+ * Set the outdent attribute
846
+ */
847
+ outdent: () => ReturnType;
853
848
  };
854
849
  }
855
850
  }
@@ -857,8 +852,13 @@ declare module '@tiptap/core' {
857
852
 
858
853
  declare module '@tiptap/core' {
859
854
  interface Commands<ReturnType> {
860
- exportWord: {
861
- exportToWord: () => ReturnType;
855
+ columns: {
856
+ insertColumns: (attrs?: {
857
+ cols: number;
858
+ }) => ReturnType;
859
+ addColBefore: () => ReturnType;
860
+ addColAfter: () => ReturnType;
861
+ deleteCol: () => ReturnType;
862
862
  };
863
863
  }
864
864
  }
@@ -866,9 +866,8 @@ declare module '@tiptap/core' {
866
866
 
867
867
  declare module '@tiptap/core' {
868
868
  interface Commands<ReturnType> {
869
- tableOfContents: {
870
- setTableOfContents: () => ReturnType;
871
- removeTableOfContents: () => ReturnType;
869
+ excalidraw: {
870
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
872
871
  };
873
872
  }
874
873
  }
@@ -876,8 +875,9 @@ declare module '@tiptap/core' {
876
875
 
877
876
  declare module '@tiptap/core' {
878
877
  interface Commands<ReturnType> {
879
- excalidraw: {
880
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
878
+ tableOfContents: {
879
+ setTableOfContents: () => ReturnType;
880
+ removeTableOfContents: () => ReturnType;
881
881
  };
882
882
  }
883
883
  }
@@ -905,9 +905,14 @@ declare module '@tiptap/core' {
905
905
 
906
906
  declare module '@tiptap/core' {
907
907
  interface Commands<ReturnType> {
908
- mermaid: {
909
- setMermaid: (options: any, replace?: any) => ReturnType;
910
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => 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;
911
916
  };
912
917
  }
913
918
  }
@@ -925,8 +930,9 @@ declare module '@tiptap/core' {
925
930
 
926
931
  declare module '@tiptap/core' {
927
932
  interface Commands<ReturnType> {
928
- attachment: {
929
- setAttachment: (attrs?: unknown) => ReturnType;
933
+ mermaid: {
934
+ setMermaid: (options: any, replace?: any) => ReturnType;
935
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
930
936
  };
931
937
  }
932
938
  }
@@ -934,14 +940,8 @@ declare module '@tiptap/core' {
934
940
 
935
941
  declare module '@tiptap/core' {
936
942
  interface Commands<ReturnType> {
937
- twitter: {
938
- /**
939
- * Insert a tweet
940
- * @param options The tweet attributes
941
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
942
- */
943
- setTweet: (options: SetTweetOptions) => ReturnType;
944
- updateTweet: (options: SetTweetOptions) => ReturnType;
943
+ attachment: {
944
+ setAttachment: (attrs?: unknown) => ReturnType;
945
945
  };
946
946
  }
947
947
  }