reactjs-tiptap-editor-pro 0.2.37 → 0.2.38

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.
@@ -707,34 +707,17 @@ declare module '@tiptap/core' {
707
707
 
708
708
  declare module '@tiptap/core' {
709
709
  interface Commands<ReturnType> {
710
- imageUpload: {
711
- /**
712
- * Add an image
713
- */
714
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
715
- /**
716
- * Update an image
717
- */
718
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
710
+ fontSize: {
719
711
  /**
720
- * Set image alignment
712
+ * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
713
+ * CSS font-size
714
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
721
715
  */
722
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
723
- };
724
- }
725
- }
726
-
727
-
728
- declare module '@tiptap/core' {
729
- interface Commands<ReturnType> {
730
- iframe: {
716
+ setFontSize: (fontSize: string) => ReturnType;
731
717
  /**
732
- * Add an iframe
718
+ * Unset the font size
733
719
  */
734
- setIframe: (options: {
735
- src: string;
736
- service: string;
737
- }) => ReturnType;
720
+ unsetFontSize: () => ReturnType;
738
721
  };
739
722
  }
740
723
  }
@@ -756,6 +739,20 @@ declare module '@tiptap/core' {
756
739
  }
757
740
 
758
741
 
742
+ declare module '@tiptap/core' {
743
+ interface Commands<ReturnType> {
744
+ columns: {
745
+ insertColumns: (attrs?: {
746
+ cols: number;
747
+ }) => ReturnType;
748
+ addColBefore: () => ReturnType;
749
+ addColAfter: () => ReturnType;
750
+ deleteCol: () => ReturnType;
751
+ };
752
+ }
753
+ }
754
+
755
+
759
756
  declare module '@tiptap/core' {
760
757
  interface Commands<ReturnType> {
761
758
  lineHeight: {
@@ -768,11 +765,8 @@ declare module '@tiptap/core' {
768
765
 
769
766
  declare module '@tiptap/core' {
770
767
  interface Commands<ReturnType> {
771
- emoji: {
772
- setEmoji: (emoji: {
773
- name: string;
774
- emoji: string;
775
- }) => ReturnType;
768
+ painter: {
769
+ setPainter: (marks: Mark[]) => ReturnType;
776
770
  };
777
771
  }
778
772
  }
@@ -780,17 +774,34 @@ declare module '@tiptap/core' {
780
774
 
781
775
  declare module '@tiptap/core' {
782
776
  interface Commands<ReturnType> {
783
- fontSize: {
777
+ search: {
778
+ setSearchTerm: (searchTerm: string) => ReturnType;
779
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
780
+ replace: () => ReturnType;
781
+ replaceAll: () => ReturnType;
782
+ goToPrevSearchResult: () => void;
783
+ goToNextSearchResult: () => void;
784
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
785
+ };
786
+ }
787
+ }
788
+
789
+
790
+ declare module '@tiptap/core' {
791
+ interface Commands<ReturnType> {
792
+ imageUpload: {
784
793
  /**
785
- * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
786
- * CSS font-size
787
- * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
794
+ * Add an image
788
795
  */
789
- setFontSize: (fontSize: string) => ReturnType;
796
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
790
797
  /**
791
- * Unset the font size
798
+ * Update an image
792
799
  */
793
- unsetFontSize: () => ReturnType;
800
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
801
+ /**
802
+ * Set image alignment
803
+ */
804
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
794
805
  };
795
806
  }
796
807
  }
@@ -798,9 +809,14 @@ declare module '@tiptap/core' {
798
809
 
799
810
  declare module '@tiptap/core' {
800
811
  interface Commands<ReturnType> {
801
- tableCellBackground: {
802
- setTableCellBackground: (color: string) => ReturnType;
803
- unsetTableCellBackground: () => ReturnType;
812
+ iframe: {
813
+ /**
814
+ * Add an iframe
815
+ */
816
+ setIframe: (options: {
817
+ src: string;
818
+ service: string;
819
+ }) => ReturnType;
804
820
  };
805
821
  }
806
822
  }
@@ -808,9 +824,11 @@ declare module '@tiptap/core' {
808
824
 
809
825
  declare module '@tiptap/core' {
810
826
  interface Commands<ReturnType> {
811
- tableOfContents: {
812
- setTableOfContents: () => ReturnType;
813
- removeTableOfContents: () => ReturnType;
827
+ emoji: {
828
+ setEmoji: (emoji: {
829
+ name: string;
830
+ emoji: string;
831
+ }) => ReturnType;
814
832
  };
815
833
  }
816
834
  }
@@ -818,8 +836,9 @@ declare module '@tiptap/core' {
818
836
 
819
837
  declare module '@tiptap/core' {
820
838
  interface Commands<ReturnType> {
821
- exportWord: {
822
- exportToWord: () => ReturnType;
839
+ tableCellBackground: {
840
+ setTableCellBackground: (color: string) => ReturnType;
841
+ unsetTableCellBackground: () => ReturnType;
823
842
  };
824
843
  }
825
844
  }
@@ -827,8 +846,8 @@ declare module '@tiptap/core' {
827
846
 
828
847
  declare module '@tiptap/core' {
829
848
  interface Commands<ReturnType> {
830
- painter: {
831
- setPainter: (marks: Mark[]) => ReturnType;
849
+ katex: {
850
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
832
851
  };
833
852
  }
834
853
  }
@@ -836,14 +855,9 @@ declare module '@tiptap/core' {
836
855
 
837
856
  declare module '@tiptap/core' {
838
857
  interface Commands<ReturnType> {
839
- search: {
840
- setSearchTerm: (searchTerm: string) => ReturnType;
841
- setReplaceTerm: (replaceTerm: string) => ReturnType;
842
- replace: () => ReturnType;
843
- replaceAll: () => ReturnType;
844
- goToPrevSearchResult: () => void;
845
- goToNextSearchResult: () => void;
846
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
858
+ tableOfContents: {
859
+ setTableOfContents: () => ReturnType;
860
+ removeTableOfContents: () => ReturnType;
847
861
  };
848
862
  }
849
863
  }
@@ -851,13 +865,8 @@ declare module '@tiptap/core' {
851
865
 
852
866
  declare module '@tiptap/core' {
853
867
  interface Commands<ReturnType> {
854
- columns: {
855
- insertColumns: (attrs?: {
856
- cols: number;
857
- }) => ReturnType;
858
- addColBefore: () => ReturnType;
859
- addColAfter: () => ReturnType;
860
- deleteCol: () => ReturnType;
868
+ exportWord: {
869
+ exportToWord: () => ReturnType;
861
870
  };
862
871
  }
863
872
  }
@@ -865,8 +874,23 @@ declare module '@tiptap/core' {
865
874
 
866
875
  declare module '@tiptap/core' {
867
876
  interface Commands<ReturnType> {
868
- katex: {
869
- setKatex: (arg?: IKatexAttrs) => ReturnType;
877
+ attachment: {
878
+ setAttachment: (attrs?: unknown) => ReturnType;
879
+ };
880
+ }
881
+ }
882
+
883
+
884
+ declare module '@tiptap/core' {
885
+ interface Commands<ReturnType> {
886
+ twitter: {
887
+ /**
888
+ * Insert a tweet
889
+ * @param options The tweet attributes
890
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
891
+ */
892
+ setTweet: (options: SetTweetOptions) => ReturnType;
893
+ updateTweet: (options: SetTweetOptions) => ReturnType;
870
894
  };
871
895
  }
872
896
  }
@@ -884,8 +908,9 @@ declare module '@tiptap/core' {
884
908
 
885
909
  declare module '@tiptap/core' {
886
910
  interface Commands<ReturnType> {
887
- attachment: {
888
- setAttachment: (attrs?: unknown) => ReturnType;
911
+ drawer: {
912
+ setDrawer: (options: any, replace?: any) => ReturnType;
913
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
889
914
  };
890
915
  }
891
916
  }
@@ -909,28 +934,3 @@ declare module '@tiptap/core' {
909
934
  };
910
935
  }
911
936
  }
912
-
913
-
914
- declare module '@tiptap/core' {
915
- 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;
924
- };
925
- }
926
- }
927
-
928
-
929
- declare module '@tiptap/core' {
930
- interface Commands<ReturnType> {
931
- drawer: {
932
- setDrawer: (options: any, replace?: any) => ReturnType;
933
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
934
- };
935
- }
936
- }
@@ -707,34 +707,17 @@ declare module '@tiptap/core' {
707
707
 
708
708
  declare module '@tiptap/core' {
709
709
  interface Commands<ReturnType> {
710
- imageUpload: {
711
- /**
712
- * Add an image
713
- */
714
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
715
- /**
716
- * Update an image
717
- */
718
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
710
+ fontSize: {
719
711
  /**
720
- * Set image alignment
712
+ * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
713
+ * CSS font-size
714
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
721
715
  */
722
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
723
- };
724
- }
725
- }
726
-
727
-
728
- declare module '@tiptap/core' {
729
- interface Commands<ReturnType> {
730
- iframe: {
716
+ setFontSize: (fontSize: string) => ReturnType;
731
717
  /**
732
- * Add an iframe
718
+ * Unset the font size
733
719
  */
734
- setIframe: (options: {
735
- src: string;
736
- service: string;
737
- }) => ReturnType;
720
+ unsetFontSize: () => ReturnType;
738
721
  };
739
722
  }
740
723
  }
@@ -756,6 +739,20 @@ declare module '@tiptap/core' {
756
739
  }
757
740
 
758
741
 
742
+ declare module '@tiptap/core' {
743
+ interface Commands<ReturnType> {
744
+ columns: {
745
+ insertColumns: (attrs?: {
746
+ cols: number;
747
+ }) => ReturnType;
748
+ addColBefore: () => ReturnType;
749
+ addColAfter: () => ReturnType;
750
+ deleteCol: () => ReturnType;
751
+ };
752
+ }
753
+ }
754
+
755
+
759
756
  declare module '@tiptap/core' {
760
757
  interface Commands<ReturnType> {
761
758
  lineHeight: {
@@ -768,11 +765,8 @@ declare module '@tiptap/core' {
768
765
 
769
766
  declare module '@tiptap/core' {
770
767
  interface Commands<ReturnType> {
771
- emoji: {
772
- setEmoji: (emoji: {
773
- name: string;
774
- emoji: string;
775
- }) => ReturnType;
768
+ painter: {
769
+ setPainter: (marks: Mark[]) => ReturnType;
776
770
  };
777
771
  }
778
772
  }
@@ -780,17 +774,34 @@ declare module '@tiptap/core' {
780
774
 
781
775
  declare module '@tiptap/core' {
782
776
  interface Commands<ReturnType> {
783
- fontSize: {
777
+ search: {
778
+ setSearchTerm: (searchTerm: string) => ReturnType;
779
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
780
+ replace: () => ReturnType;
781
+ replaceAll: () => ReturnType;
782
+ goToPrevSearchResult: () => void;
783
+ goToNextSearchResult: () => void;
784
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
785
+ };
786
+ }
787
+ }
788
+
789
+
790
+ declare module '@tiptap/core' {
791
+ interface Commands<ReturnType> {
792
+ imageUpload: {
784
793
  /**
785
- * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
786
- * CSS font-size
787
- * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
794
+ * Add an image
788
795
  */
789
- setFontSize: (fontSize: string) => ReturnType;
796
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
790
797
  /**
791
- * Unset the font size
798
+ * Update an image
792
799
  */
793
- unsetFontSize: () => ReturnType;
800
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
801
+ /**
802
+ * Set image alignment
803
+ */
804
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
794
805
  };
795
806
  }
796
807
  }
@@ -798,9 +809,14 @@ declare module '@tiptap/core' {
798
809
 
799
810
  declare module '@tiptap/core' {
800
811
  interface Commands<ReturnType> {
801
- tableCellBackground: {
802
- setTableCellBackground: (color: string) => ReturnType;
803
- unsetTableCellBackground: () => ReturnType;
812
+ iframe: {
813
+ /**
814
+ * Add an iframe
815
+ */
816
+ setIframe: (options: {
817
+ src: string;
818
+ service: string;
819
+ }) => ReturnType;
804
820
  };
805
821
  }
806
822
  }
@@ -808,9 +824,11 @@ declare module '@tiptap/core' {
808
824
 
809
825
  declare module '@tiptap/core' {
810
826
  interface Commands<ReturnType> {
811
- tableOfContents: {
812
- setTableOfContents: () => ReturnType;
813
- removeTableOfContents: () => ReturnType;
827
+ emoji: {
828
+ setEmoji: (emoji: {
829
+ name: string;
830
+ emoji: string;
831
+ }) => ReturnType;
814
832
  };
815
833
  }
816
834
  }
@@ -818,8 +836,9 @@ declare module '@tiptap/core' {
818
836
 
819
837
  declare module '@tiptap/core' {
820
838
  interface Commands<ReturnType> {
821
- exportWord: {
822
- exportToWord: () => ReturnType;
839
+ tableCellBackground: {
840
+ setTableCellBackground: (color: string) => ReturnType;
841
+ unsetTableCellBackground: () => ReturnType;
823
842
  };
824
843
  }
825
844
  }
@@ -827,8 +846,8 @@ declare module '@tiptap/core' {
827
846
 
828
847
  declare module '@tiptap/core' {
829
848
  interface Commands<ReturnType> {
830
- painter: {
831
- setPainter: (marks: Mark[]) => ReturnType;
849
+ katex: {
850
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
832
851
  };
833
852
  }
834
853
  }
@@ -836,14 +855,9 @@ declare module '@tiptap/core' {
836
855
 
837
856
  declare module '@tiptap/core' {
838
857
  interface Commands<ReturnType> {
839
- search: {
840
- setSearchTerm: (searchTerm: string) => ReturnType;
841
- setReplaceTerm: (replaceTerm: string) => ReturnType;
842
- replace: () => ReturnType;
843
- replaceAll: () => ReturnType;
844
- goToPrevSearchResult: () => void;
845
- goToNextSearchResult: () => void;
846
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
858
+ tableOfContents: {
859
+ setTableOfContents: () => ReturnType;
860
+ removeTableOfContents: () => ReturnType;
847
861
  };
848
862
  }
849
863
  }
@@ -851,13 +865,8 @@ declare module '@tiptap/core' {
851
865
 
852
866
  declare module '@tiptap/core' {
853
867
  interface Commands<ReturnType> {
854
- columns: {
855
- insertColumns: (attrs?: {
856
- cols: number;
857
- }) => ReturnType;
858
- addColBefore: () => ReturnType;
859
- addColAfter: () => ReturnType;
860
- deleteCol: () => ReturnType;
868
+ exportWord: {
869
+ exportToWord: () => ReturnType;
861
870
  };
862
871
  }
863
872
  }
@@ -865,8 +874,23 @@ declare module '@tiptap/core' {
865
874
 
866
875
  declare module '@tiptap/core' {
867
876
  interface Commands<ReturnType> {
868
- katex: {
869
- setKatex: (arg?: IKatexAttrs) => ReturnType;
877
+ attachment: {
878
+ setAttachment: (attrs?: unknown) => ReturnType;
879
+ };
880
+ }
881
+ }
882
+
883
+
884
+ declare module '@tiptap/core' {
885
+ interface Commands<ReturnType> {
886
+ twitter: {
887
+ /**
888
+ * Insert a tweet
889
+ * @param options The tweet attributes
890
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
891
+ */
892
+ setTweet: (options: SetTweetOptions) => ReturnType;
893
+ updateTweet: (options: SetTweetOptions) => ReturnType;
870
894
  };
871
895
  }
872
896
  }
@@ -884,8 +908,9 @@ declare module '@tiptap/core' {
884
908
 
885
909
  declare module '@tiptap/core' {
886
910
  interface Commands<ReturnType> {
887
- attachment: {
888
- setAttachment: (attrs?: unknown) => ReturnType;
911
+ drawer: {
912
+ setDrawer: (options: any, replace?: any) => ReturnType;
913
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
889
914
  };
890
915
  }
891
916
  }
@@ -909,28 +934,3 @@ declare module '@tiptap/core' {
909
934
  };
910
935
  }
911
936
  }
912
-
913
-
914
- declare module '@tiptap/core' {
915
- 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;
924
- };
925
- }
926
- }
927
-
928
-
929
- declare module '@tiptap/core' {
930
- interface Commands<ReturnType> {
931
- drawer: {
932
- setDrawer: (options: any, replace?: any) => ReturnType;
933
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
934
- };
935
- }
936
- }