reactjs-tiptap-editor 0.2.2 → 0.2.4

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.
@@ -690,6 +690,16 @@ declare module '@tiptap/core' {
690
690
  }
691
691
 
692
692
 
693
+ declare module '@tiptap/core' {
694
+ interface Commands<ReturnType> {
695
+ lineHeight: {
696
+ setLineHeight: (lineHeight: string) => ReturnType;
697
+ unsetLineHeight: () => ReturnType;
698
+ };
699
+ }
700
+ }
701
+
702
+
693
703
  declare module '@tiptap/core' {
694
704
  interface Commands<ReturnType> {
695
705
  indent: {
@@ -745,21 +755,6 @@ declare module '@tiptap/core' {
745
755
  }
746
756
 
747
757
 
748
- declare module '@tiptap/core' {
749
- interface Commands<ReturnType> {
750
- iframe: {
751
- /**
752
- * Add an iframe
753
- */
754
- setIframe: (options: {
755
- src: string;
756
- service: string;
757
- }) => ReturnType;
758
- };
759
- }
760
- }
761
-
762
-
763
758
  declare module '@tiptap/core' {
764
759
  interface Commands<ReturnType> {
765
760
  columns: {
@@ -776,10 +771,13 @@ declare module '@tiptap/core' {
776
771
 
777
772
  declare module '@tiptap/core' {
778
773
  interface Commands<ReturnType> {
779
- emoji: {
780
- setEmoji: (emoji: {
781
- name: string;
782
- emoji: string;
774
+ iframe: {
775
+ /**
776
+ * Add an iframe
777
+ */
778
+ setIframe: (options: {
779
+ src: string;
780
+ service: string;
783
781
  }) => ReturnType;
784
782
  };
785
783
  }
@@ -788,9 +786,11 @@ declare module '@tiptap/core' {
788
786
 
789
787
  declare module '@tiptap/core' {
790
788
  interface Commands<ReturnType> {
791
- lineHeight: {
792
- setLineHeight: (lineHeight: string) => ReturnType;
793
- unsetLineHeight: () => ReturnType;
789
+ emoji: {
790
+ setEmoji: (emoji: {
791
+ name: string;
792
+ emoji: string;
793
+ }) => ReturnType;
794
794
  };
795
795
  }
796
796
  }
@@ -848,6 +848,26 @@ declare module '@tiptap/core' {
848
848
  }
849
849
 
850
850
 
851
+ declare module '@tiptap/core' {
852
+ interface Commands<ReturnType> {
853
+ imageGifUpload: {
854
+ /**
855
+ * Add an image gif
856
+ */
857
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
858
+ /**
859
+ * Update an image gif
860
+ */
861
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
862
+ /**
863
+ * Set image alignment
864
+ */
865
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
866
+ };
867
+ }
868
+ }
869
+
870
+
851
871
  declare module '@tiptap/core' {
852
872
  interface Commands<ReturnType> {
853
873
  attachment: {
@@ -880,23 +900,3 @@ declare module '@tiptap/core' {
880
900
  };
881
901
  }
882
902
  }
883
-
884
-
885
- declare module '@tiptap/core' {
886
- interface Commands<ReturnType> {
887
- imageGifUpload: {
888
- /**
889
- * Add an image gif
890
- */
891
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
892
- /**
893
- * Update an image gif
894
- */
895
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
896
- /**
897
- * Set image alignment
898
- */
899
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
900
- };
901
- }
902
- }
@@ -690,6 +690,16 @@ declare module '@tiptap/core' {
690
690
  }
691
691
 
692
692
 
693
+ declare module '@tiptap/core' {
694
+ interface Commands<ReturnType> {
695
+ lineHeight: {
696
+ setLineHeight: (lineHeight: string) => ReturnType;
697
+ unsetLineHeight: () => ReturnType;
698
+ };
699
+ }
700
+ }
701
+
702
+
693
703
  declare module '@tiptap/core' {
694
704
  interface Commands<ReturnType> {
695
705
  indent: {
@@ -745,21 +755,6 @@ declare module '@tiptap/core' {
745
755
  }
746
756
 
747
757
 
748
- declare module '@tiptap/core' {
749
- interface Commands<ReturnType> {
750
- iframe: {
751
- /**
752
- * Add an iframe
753
- */
754
- setIframe: (options: {
755
- src: string;
756
- service: string;
757
- }) => ReturnType;
758
- };
759
- }
760
- }
761
-
762
-
763
758
  declare module '@tiptap/core' {
764
759
  interface Commands<ReturnType> {
765
760
  columns: {
@@ -776,10 +771,13 @@ declare module '@tiptap/core' {
776
771
 
777
772
  declare module '@tiptap/core' {
778
773
  interface Commands<ReturnType> {
779
- emoji: {
780
- setEmoji: (emoji: {
781
- name: string;
782
- emoji: string;
774
+ iframe: {
775
+ /**
776
+ * Add an iframe
777
+ */
778
+ setIframe: (options: {
779
+ src: string;
780
+ service: string;
783
781
  }) => ReturnType;
784
782
  };
785
783
  }
@@ -788,9 +786,11 @@ declare module '@tiptap/core' {
788
786
 
789
787
  declare module '@tiptap/core' {
790
788
  interface Commands<ReturnType> {
791
- lineHeight: {
792
- setLineHeight: (lineHeight: string) => ReturnType;
793
- unsetLineHeight: () => ReturnType;
789
+ emoji: {
790
+ setEmoji: (emoji: {
791
+ name: string;
792
+ emoji: string;
793
+ }) => ReturnType;
794
794
  };
795
795
  }
796
796
  }
@@ -848,6 +848,26 @@ declare module '@tiptap/core' {
848
848
  }
849
849
 
850
850
 
851
+ declare module '@tiptap/core' {
852
+ interface Commands<ReturnType> {
853
+ imageGifUpload: {
854
+ /**
855
+ * Add an image gif
856
+ */
857
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
858
+ /**
859
+ * Update an image gif
860
+ */
861
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
862
+ /**
863
+ * Set image alignment
864
+ */
865
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
866
+ };
867
+ }
868
+ }
869
+
870
+
851
871
  declare module '@tiptap/core' {
852
872
  interface Commands<ReturnType> {
853
873
  attachment: {
@@ -880,23 +900,3 @@ declare module '@tiptap/core' {
880
900
  };
881
901
  }
882
902
  }
883
-
884
-
885
- declare module '@tiptap/core' {
886
- interface Commands<ReturnType> {
887
- imageGifUpload: {
888
- /**
889
- * Add an image gif
890
- */
891
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
892
- /**
893
- * Update an image gif
894
- */
895
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
896
- /**
897
- * Set image alignment
898
- */
899
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
900
- };
901
- }
902
- }