reactjs-tiptap-editor-pro 0.2.35 → 0.2.37

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,17 +707,19 @@ declare module '@tiptap/core' {
707
707
 
708
708
  declare module '@tiptap/core' {
709
709
  interface Commands<ReturnType> {
710
- fontSize: {
710
+ imageUpload: {
711
711
  /**
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).
712
+ * Add an image
715
713
  */
716
- setFontSize: (fontSize: string) => ReturnType;
714
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
717
715
  /**
718
- * Unset the font size
716
+ * Update an image
719
717
  */
720
- unsetFontSize: () => ReturnType;
718
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
719
+ /**
720
+ * Set image alignment
721
+ */
722
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
721
723
  };
722
724
  }
723
725
  }
@@ -725,9 +727,14 @@ declare module '@tiptap/core' {
725
727
 
726
728
  declare module '@tiptap/core' {
727
729
  interface Commands<ReturnType> {
728
- lineHeight: {
729
- setLineHeight: (lineHeight: string) => ReturnType;
730
- unsetLineHeight: () => ReturnType;
730
+ iframe: {
731
+ /**
732
+ * Add an iframe
733
+ */
734
+ setIframe: (options: {
735
+ src: string;
736
+ service: string;
737
+ }) => ReturnType;
731
738
  };
732
739
  }
733
740
  }
@@ -735,19 +742,15 @@ declare module '@tiptap/core' {
735
742
 
736
743
  declare module '@tiptap/core' {
737
744
  interface Commands<ReturnType> {
738
- imageUpload: {
739
- /**
740
- * Add an image
741
- */
742
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
745
+ indent: {
743
746
  /**
744
- * Update an image
747
+ * Set the indent attribute
745
748
  */
746
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
749
+ indent: () => ReturnType;
747
750
  /**
748
- * Set image alignment
751
+ * Set the outdent attribute
749
752
  */
750
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
753
+ outdent: () => ReturnType;
751
754
  };
752
755
  }
753
756
  }
@@ -755,13 +758,9 @@ declare module '@tiptap/core' {
755
758
 
756
759
  declare module '@tiptap/core' {
757
760
  interface Commands<ReturnType> {
758
- columns: {
759
- insertColumns: (attrs?: {
760
- cols: number;
761
- }) => ReturnType;
762
- addColBefore: () => ReturnType;
763
- addColAfter: () => ReturnType;
764
- deleteCol: () => ReturnType;
761
+ lineHeight: {
762
+ setLineHeight: (lineHeight: string) => ReturnType;
763
+ unsetLineHeight: () => ReturnType;
765
764
  };
766
765
  }
767
766
  }
@@ -769,8 +768,11 @@ declare module '@tiptap/core' {
769
768
 
770
769
  declare module '@tiptap/core' {
771
770
  interface Commands<ReturnType> {
772
- painter: {
773
- setPainter: (marks: Mark[]) => ReturnType;
771
+ emoji: {
772
+ setEmoji: (emoji: {
773
+ name: string;
774
+ emoji: string;
775
+ }) => ReturnType;
774
776
  };
775
777
  }
776
778
  }
@@ -778,15 +780,17 @@ declare module '@tiptap/core' {
778
780
 
779
781
  declare module '@tiptap/core' {
780
782
  interface Commands<ReturnType> {
781
- indent: {
783
+ fontSize: {
782
784
  /**
783
- * Set the indent attribute
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).
784
788
  */
785
- indent: () => ReturnType;
789
+ setFontSize: (fontSize: string) => ReturnType;
786
790
  /**
787
- * Set the outdent attribute
791
+ * Unset the font size
788
792
  */
789
- outdent: () => ReturnType;
793
+ unsetFontSize: () => ReturnType;
790
794
  };
791
795
  }
792
796
  }
@@ -804,14 +808,9 @@ declare module '@tiptap/core' {
804
808
 
805
809
  declare module '@tiptap/core' {
806
810
  interface Commands<ReturnType> {
807
- search: {
808
- setSearchTerm: (searchTerm: string) => ReturnType;
809
- setReplaceTerm: (replaceTerm: string) => ReturnType;
810
- replace: () => ReturnType;
811
- replaceAll: () => ReturnType;
812
- goToPrevSearchResult: () => void;
813
- goToNextSearchResult: () => void;
814
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
811
+ tableOfContents: {
812
+ setTableOfContents: () => ReturnType;
813
+ removeTableOfContents: () => ReturnType;
815
814
  };
816
815
  }
817
816
  }
@@ -819,9 +818,8 @@ declare module '@tiptap/core' {
819
818
 
820
819
  declare module '@tiptap/core' {
821
820
  interface Commands<ReturnType> {
822
- tableOfContents: {
823
- setTableOfContents: () => ReturnType;
824
- removeTableOfContents: () => ReturnType;
821
+ exportWord: {
822
+ exportToWord: () => ReturnType;
825
823
  };
826
824
  }
827
825
  }
@@ -829,8 +827,8 @@ declare module '@tiptap/core' {
829
827
 
830
828
  declare module '@tiptap/core' {
831
829
  interface Commands<ReturnType> {
832
- exportWord: {
833
- exportToWord: () => ReturnType;
830
+ painter: {
831
+ setPainter: (marks: Mark[]) => ReturnType;
834
832
  };
835
833
  }
836
834
  }
@@ -838,14 +836,14 @@ declare module '@tiptap/core' {
838
836
 
839
837
  declare module '@tiptap/core' {
840
838
  interface Commands<ReturnType> {
841
- iframe: {
842
- /**
843
- * Add an iframe
844
- */
845
- setIframe: (options: {
846
- src: string;
847
- service: string;
848
- }) => 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;
849
847
  };
850
848
  }
851
849
  }
@@ -853,19 +851,13 @@ declare module '@tiptap/core' {
853
851
 
854
852
  declare module '@tiptap/core' {
855
853
  interface Commands<ReturnType> {
856
- imageGifUpload: {
857
- /**
858
- * Add an image gif
859
- */
860
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
861
- /**
862
- * Update an image gif
863
- */
864
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
865
- /**
866
- * Set image alignment
867
- */
868
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
854
+ columns: {
855
+ insertColumns: (attrs?: {
856
+ cols: number;
857
+ }) => ReturnType;
858
+ addColBefore: () => ReturnType;
859
+ addColAfter: () => ReturnType;
860
+ deleteCol: () => ReturnType;
869
861
  };
870
862
  }
871
863
  }
@@ -892,9 +884,8 @@ declare module '@tiptap/core' {
892
884
 
893
885
  declare module '@tiptap/core' {
894
886
  interface Commands<ReturnType> {
895
- drawer: {
896
- setDrawer: (options: any, replace?: any) => ReturnType;
897
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
887
+ attachment: {
888
+ setAttachment: (attrs?: unknown) => ReturnType;
898
889
  };
899
890
  }
900
891
  }
@@ -902,11 +893,19 @@ declare module '@tiptap/core' {
902
893
 
903
894
  declare module '@tiptap/core' {
904
895
  interface Commands<ReturnType> {
905
- emoji: {
906
- setEmoji: (emoji: {
907
- name: string;
908
- emoji: string;
909
- }) => 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;
905
+ /**
906
+ * Set image alignment
907
+ */
908
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
910
909
  };
911
910
  }
912
911
  }
@@ -929,8 +928,9 @@ declare module '@tiptap/core' {
929
928
 
930
929
  declare module '@tiptap/core' {
931
930
  interface Commands<ReturnType> {
932
- attachment: {
933
- setAttachment: (attrs?: unknown) => ReturnType;
931
+ drawer: {
932
+ setDrawer: (options: any, replace?: any) => ReturnType;
933
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
934
934
  };
935
935
  }
936
936
  }
@@ -707,17 +707,19 @@ declare module '@tiptap/core' {
707
707
 
708
708
  declare module '@tiptap/core' {
709
709
  interface Commands<ReturnType> {
710
- fontSize: {
710
+ imageUpload: {
711
711
  /**
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).
712
+ * Add an image
715
713
  */
716
- setFontSize: (fontSize: string) => ReturnType;
714
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
717
715
  /**
718
- * Unset the font size
716
+ * Update an image
719
717
  */
720
- unsetFontSize: () => ReturnType;
718
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
719
+ /**
720
+ * Set image alignment
721
+ */
722
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
721
723
  };
722
724
  }
723
725
  }
@@ -725,9 +727,14 @@ declare module '@tiptap/core' {
725
727
 
726
728
  declare module '@tiptap/core' {
727
729
  interface Commands<ReturnType> {
728
- lineHeight: {
729
- setLineHeight: (lineHeight: string) => ReturnType;
730
- unsetLineHeight: () => ReturnType;
730
+ iframe: {
731
+ /**
732
+ * Add an iframe
733
+ */
734
+ setIframe: (options: {
735
+ src: string;
736
+ service: string;
737
+ }) => ReturnType;
731
738
  };
732
739
  }
733
740
  }
@@ -735,19 +742,15 @@ declare module '@tiptap/core' {
735
742
 
736
743
  declare module '@tiptap/core' {
737
744
  interface Commands<ReturnType> {
738
- imageUpload: {
739
- /**
740
- * Add an image
741
- */
742
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
745
+ indent: {
743
746
  /**
744
- * Update an image
747
+ * Set the indent attribute
745
748
  */
746
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
749
+ indent: () => ReturnType;
747
750
  /**
748
- * Set image alignment
751
+ * Set the outdent attribute
749
752
  */
750
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
753
+ outdent: () => ReturnType;
751
754
  };
752
755
  }
753
756
  }
@@ -755,13 +758,9 @@ declare module '@tiptap/core' {
755
758
 
756
759
  declare module '@tiptap/core' {
757
760
  interface Commands<ReturnType> {
758
- columns: {
759
- insertColumns: (attrs?: {
760
- cols: number;
761
- }) => ReturnType;
762
- addColBefore: () => ReturnType;
763
- addColAfter: () => ReturnType;
764
- deleteCol: () => ReturnType;
761
+ lineHeight: {
762
+ setLineHeight: (lineHeight: string) => ReturnType;
763
+ unsetLineHeight: () => ReturnType;
765
764
  };
766
765
  }
767
766
  }
@@ -769,8 +768,11 @@ declare module '@tiptap/core' {
769
768
 
770
769
  declare module '@tiptap/core' {
771
770
  interface Commands<ReturnType> {
772
- painter: {
773
- setPainter: (marks: Mark[]) => ReturnType;
771
+ emoji: {
772
+ setEmoji: (emoji: {
773
+ name: string;
774
+ emoji: string;
775
+ }) => ReturnType;
774
776
  };
775
777
  }
776
778
  }
@@ -778,15 +780,17 @@ declare module '@tiptap/core' {
778
780
 
779
781
  declare module '@tiptap/core' {
780
782
  interface Commands<ReturnType> {
781
- indent: {
783
+ fontSize: {
782
784
  /**
783
- * Set the indent attribute
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).
784
788
  */
785
- indent: () => ReturnType;
789
+ setFontSize: (fontSize: string) => ReturnType;
786
790
  /**
787
- * Set the outdent attribute
791
+ * Unset the font size
788
792
  */
789
- outdent: () => ReturnType;
793
+ unsetFontSize: () => ReturnType;
790
794
  };
791
795
  }
792
796
  }
@@ -804,14 +808,9 @@ declare module '@tiptap/core' {
804
808
 
805
809
  declare module '@tiptap/core' {
806
810
  interface Commands<ReturnType> {
807
- search: {
808
- setSearchTerm: (searchTerm: string) => ReturnType;
809
- setReplaceTerm: (replaceTerm: string) => ReturnType;
810
- replace: () => ReturnType;
811
- replaceAll: () => ReturnType;
812
- goToPrevSearchResult: () => void;
813
- goToNextSearchResult: () => void;
814
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
811
+ tableOfContents: {
812
+ setTableOfContents: () => ReturnType;
813
+ removeTableOfContents: () => ReturnType;
815
814
  };
816
815
  }
817
816
  }
@@ -819,9 +818,8 @@ declare module '@tiptap/core' {
819
818
 
820
819
  declare module '@tiptap/core' {
821
820
  interface Commands<ReturnType> {
822
- tableOfContents: {
823
- setTableOfContents: () => ReturnType;
824
- removeTableOfContents: () => ReturnType;
821
+ exportWord: {
822
+ exportToWord: () => ReturnType;
825
823
  };
826
824
  }
827
825
  }
@@ -829,8 +827,8 @@ declare module '@tiptap/core' {
829
827
 
830
828
  declare module '@tiptap/core' {
831
829
  interface Commands<ReturnType> {
832
- exportWord: {
833
- exportToWord: () => ReturnType;
830
+ painter: {
831
+ setPainter: (marks: Mark[]) => ReturnType;
834
832
  };
835
833
  }
836
834
  }
@@ -838,14 +836,14 @@ declare module '@tiptap/core' {
838
836
 
839
837
  declare module '@tiptap/core' {
840
838
  interface Commands<ReturnType> {
841
- iframe: {
842
- /**
843
- * Add an iframe
844
- */
845
- setIframe: (options: {
846
- src: string;
847
- service: string;
848
- }) => 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;
849
847
  };
850
848
  }
851
849
  }
@@ -853,19 +851,13 @@ declare module '@tiptap/core' {
853
851
 
854
852
  declare module '@tiptap/core' {
855
853
  interface Commands<ReturnType> {
856
- imageGifUpload: {
857
- /**
858
- * Add an image gif
859
- */
860
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
861
- /**
862
- * Update an image gif
863
- */
864
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
865
- /**
866
- * Set image alignment
867
- */
868
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
854
+ columns: {
855
+ insertColumns: (attrs?: {
856
+ cols: number;
857
+ }) => ReturnType;
858
+ addColBefore: () => ReturnType;
859
+ addColAfter: () => ReturnType;
860
+ deleteCol: () => ReturnType;
869
861
  };
870
862
  }
871
863
  }
@@ -892,9 +884,8 @@ declare module '@tiptap/core' {
892
884
 
893
885
  declare module '@tiptap/core' {
894
886
  interface Commands<ReturnType> {
895
- drawer: {
896
- setDrawer: (options: any, replace?: any) => ReturnType;
897
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
887
+ attachment: {
888
+ setAttachment: (attrs?: unknown) => ReturnType;
898
889
  };
899
890
  }
900
891
  }
@@ -902,11 +893,19 @@ declare module '@tiptap/core' {
902
893
 
903
894
  declare module '@tiptap/core' {
904
895
  interface Commands<ReturnType> {
905
- emoji: {
906
- setEmoji: (emoji: {
907
- name: string;
908
- emoji: string;
909
- }) => 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;
905
+ /**
906
+ * Set image alignment
907
+ */
908
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
910
909
  };
911
910
  }
912
911
  }
@@ -929,8 +928,9 @@ declare module '@tiptap/core' {
929
928
 
930
929
  declare module '@tiptap/core' {
931
930
  interface Commands<ReturnType> {
932
- attachment: {
933
- setAttachment: (attrs?: unknown) => ReturnType;
931
+ drawer: {
932
+ setDrawer: (options: any, replace?: any) => ReturnType;
933
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
934
934
  };
935
935
  }
936
936
  }