reactjs-tiptap-editor-pro 0.2.40 → 0.2.42

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