reactjs-tiptap-editor-pro 0.2.34 → 0.2.36

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