reactjs-tiptap-editor-pro 0.2.26 → 0.2.28

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.
@@ -727,25 +727,9 @@ declare module '@tiptap/core' {
727
727
 
728
728
  declare module '@tiptap/core' {
729
729
  interface Commands<ReturnType> {
730
- tableCellBackground: {
731
- setTableCellBackground: (color: string) => ReturnType;
732
- unsetTableCellBackground: () => ReturnType;
733
- };
734
- }
735
- }
736
-
737
-
738
- declare module '@tiptap/core' {
739
- interface Commands<ReturnType> {
740
- indent: {
741
- /**
742
- * Set the indent attribute
743
- */
744
- indent: () => ReturnType;
745
- /**
746
- * Set the outdent attribute
747
- */
748
- outdent: () => ReturnType;
730
+ lineHeight: {
731
+ setLineHeight: (lineHeight: string) => ReturnType;
732
+ unsetLineHeight: () => ReturnType;
749
733
  };
750
734
  }
751
735
  }
@@ -773,9 +757,13 @@ declare module '@tiptap/core' {
773
757
 
774
758
  declare module '@tiptap/core' {
775
759
  interface Commands<ReturnType> {
776
- lineHeight: {
777
- setLineHeight: (lineHeight: string) => ReturnType;
778
- unsetLineHeight: () => ReturnType;
760
+ columns: {
761
+ insertColumns: (attrs?: {
762
+ cols: number;
763
+ }) => ReturnType;
764
+ addColBefore: () => ReturnType;
765
+ addColAfter: () => ReturnType;
766
+ deleteCol: () => ReturnType;
779
767
  };
780
768
  }
781
769
  }
@@ -783,14 +771,8 @@ declare module '@tiptap/core' {
783
771
 
784
772
  declare module '@tiptap/core' {
785
773
  interface Commands<ReturnType> {
786
- search: {
787
- setSearchTerm: (searchTerm: string) => ReturnType;
788
- setReplaceTerm: (replaceTerm: string) => ReturnType;
789
- replace: () => ReturnType;
790
- replaceAll: () => ReturnType;
791
- goToPrevSearchResult: () => void;
792
- goToNextSearchResult: () => void;
793
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
774
+ painter: {
775
+ setPainter: (marks: Mark[]) => ReturnType;
794
776
  };
795
777
  }
796
778
  }
@@ -798,9 +780,37 @@ declare module '@tiptap/core' {
798
780
 
799
781
  declare module '@tiptap/core' {
800
782
  interface Commands<ReturnType> {
801
- tableOfContents: {
802
- setTableOfContents: () => ReturnType;
803
- removeTableOfContents: () => ReturnType;
783
+ emoji: {
784
+ setEmoji: (emoji: {
785
+ name: string;
786
+ emoji: string;
787
+ }) => ReturnType;
788
+ };
789
+ }
790
+ }
791
+
792
+
793
+ declare module '@tiptap/core' {
794
+ interface Commands<ReturnType> {
795
+ tableCellBackground: {
796
+ setTableCellBackground: (color: string) => ReturnType;
797
+ unsetTableCellBackground: () => ReturnType;
798
+ };
799
+ }
800
+ }
801
+
802
+
803
+ declare module '@tiptap/core' {
804
+ interface Commands<ReturnType> {
805
+ indent: {
806
+ /**
807
+ * Set the indent attribute
808
+ */
809
+ indent: () => ReturnType;
810
+ /**
811
+ * Set the outdent attribute
812
+ */
813
+ outdent: () => ReturnType;
804
814
  };
805
815
  }
806
816
  }
@@ -823,13 +833,14 @@ declare module '@tiptap/core' {
823
833
 
824
834
  declare module '@tiptap/core' {
825
835
  interface Commands<ReturnType> {
826
- columns: {
827
- insertColumns: (attrs?: {
828
- cols: number;
829
- }) => ReturnType;
830
- addColBefore: () => ReturnType;
831
- addColAfter: () => ReturnType;
832
- deleteCol: () => ReturnType;
836
+ search: {
837
+ setSearchTerm: (searchTerm: string) => ReturnType;
838
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
839
+ replace: () => ReturnType;
840
+ replaceAll: () => ReturnType;
841
+ goToPrevSearchResult: () => void;
842
+ goToNextSearchResult: () => void;
843
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
833
844
  };
834
845
  }
835
846
  }
@@ -846,8 +857,8 @@ declare module '@tiptap/core' {
846
857
 
847
858
  declare module '@tiptap/core' {
848
859
  interface Commands<ReturnType> {
849
- painter: {
850
- setPainter: (marks: Mark[]) => ReturnType;
860
+ excalidraw: {
861
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
851
862
  };
852
863
  }
853
864
  }
@@ -855,11 +866,9 @@ declare module '@tiptap/core' {
855
866
 
856
867
  declare module '@tiptap/core' {
857
868
  interface Commands<ReturnType> {
858
- emoji: {
859
- setEmoji: (emoji: {
860
- name: string;
861
- emoji: string;
862
- }) => ReturnType;
869
+ tableOfContents: {
870
+ setTableOfContents: () => ReturnType;
871
+ removeTableOfContents: () => ReturnType;
863
872
  };
864
873
  }
865
874
  }
@@ -867,8 +876,8 @@ declare module '@tiptap/core' {
867
876
 
868
877
  declare module '@tiptap/core' {
869
878
  interface Commands<ReturnType> {
870
- excalidraw: {
871
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
879
+ katex: {
880
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
872
881
  };
873
882
  }
874
883
  }
@@ -876,8 +885,29 @@ declare module '@tiptap/core' {
876
885
 
877
886
  declare module '@tiptap/core' {
878
887
  interface Commands<ReturnType> {
879
- katex: {
880
- setKatex: (arg?: IKatexAttrs) => ReturnType;
888
+ imageGifUpload: {
889
+ /**
890
+ * Add an image gif
891
+ */
892
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
893
+ /**
894
+ * Update an image gif
895
+ */
896
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
897
+ /**
898
+ * Set image alignment
899
+ */
900
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
901
+ };
902
+ }
903
+ }
904
+
905
+
906
+ declare module '@tiptap/core' {
907
+ interface Commands<ReturnType> {
908
+ mermaid: {
909
+ setMermaid: (options: any, replace?: any) => ReturnType;
910
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
881
911
  };
882
912
  }
883
913
  }
@@ -915,33 +945,3 @@ declare module '@tiptap/core' {
915
945
  };
916
946
  }
917
947
  }
918
-
919
-
920
- declare module '@tiptap/core' {
921
- interface Commands<ReturnType> {
922
- mermaid: {
923
- setMermaid: (options: any, replace?: any) => ReturnType;
924
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
925
- };
926
- }
927
- }
928
-
929
-
930
- declare module '@tiptap/core' {
931
- interface Commands<ReturnType> {
932
- imageGifUpload: {
933
- /**
934
- * Add an image gif
935
- */
936
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
937
- /**
938
- * Update an image gif
939
- */
940
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
941
- /**
942
- * Set image alignment
943
- */
944
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
945
- };
946
- }
947
- }
@@ -727,25 +727,9 @@ declare module '@tiptap/core' {
727
727
 
728
728
  declare module '@tiptap/core' {
729
729
  interface Commands<ReturnType> {
730
- tableCellBackground: {
731
- setTableCellBackground: (color: string) => ReturnType;
732
- unsetTableCellBackground: () => ReturnType;
733
- };
734
- }
735
- }
736
-
737
-
738
- declare module '@tiptap/core' {
739
- interface Commands<ReturnType> {
740
- indent: {
741
- /**
742
- * Set the indent attribute
743
- */
744
- indent: () => ReturnType;
745
- /**
746
- * Set the outdent attribute
747
- */
748
- outdent: () => ReturnType;
730
+ lineHeight: {
731
+ setLineHeight: (lineHeight: string) => ReturnType;
732
+ unsetLineHeight: () => ReturnType;
749
733
  };
750
734
  }
751
735
  }
@@ -773,9 +757,13 @@ declare module '@tiptap/core' {
773
757
 
774
758
  declare module '@tiptap/core' {
775
759
  interface Commands<ReturnType> {
776
- lineHeight: {
777
- setLineHeight: (lineHeight: string) => ReturnType;
778
- unsetLineHeight: () => ReturnType;
760
+ columns: {
761
+ insertColumns: (attrs?: {
762
+ cols: number;
763
+ }) => ReturnType;
764
+ addColBefore: () => ReturnType;
765
+ addColAfter: () => ReturnType;
766
+ deleteCol: () => ReturnType;
779
767
  };
780
768
  }
781
769
  }
@@ -783,14 +771,8 @@ declare module '@tiptap/core' {
783
771
 
784
772
  declare module '@tiptap/core' {
785
773
  interface Commands<ReturnType> {
786
- search: {
787
- setSearchTerm: (searchTerm: string) => ReturnType;
788
- setReplaceTerm: (replaceTerm: string) => ReturnType;
789
- replace: () => ReturnType;
790
- replaceAll: () => ReturnType;
791
- goToPrevSearchResult: () => void;
792
- goToNextSearchResult: () => void;
793
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
774
+ painter: {
775
+ setPainter: (marks: Mark[]) => ReturnType;
794
776
  };
795
777
  }
796
778
  }
@@ -798,9 +780,37 @@ declare module '@tiptap/core' {
798
780
 
799
781
  declare module '@tiptap/core' {
800
782
  interface Commands<ReturnType> {
801
- tableOfContents: {
802
- setTableOfContents: () => ReturnType;
803
- removeTableOfContents: () => ReturnType;
783
+ emoji: {
784
+ setEmoji: (emoji: {
785
+ name: string;
786
+ emoji: string;
787
+ }) => ReturnType;
788
+ };
789
+ }
790
+ }
791
+
792
+
793
+ declare module '@tiptap/core' {
794
+ interface Commands<ReturnType> {
795
+ tableCellBackground: {
796
+ setTableCellBackground: (color: string) => ReturnType;
797
+ unsetTableCellBackground: () => ReturnType;
798
+ };
799
+ }
800
+ }
801
+
802
+
803
+ declare module '@tiptap/core' {
804
+ interface Commands<ReturnType> {
805
+ indent: {
806
+ /**
807
+ * Set the indent attribute
808
+ */
809
+ indent: () => ReturnType;
810
+ /**
811
+ * Set the outdent attribute
812
+ */
813
+ outdent: () => ReturnType;
804
814
  };
805
815
  }
806
816
  }
@@ -823,13 +833,14 @@ declare module '@tiptap/core' {
823
833
 
824
834
  declare module '@tiptap/core' {
825
835
  interface Commands<ReturnType> {
826
- columns: {
827
- insertColumns: (attrs?: {
828
- cols: number;
829
- }) => ReturnType;
830
- addColBefore: () => ReturnType;
831
- addColAfter: () => ReturnType;
832
- deleteCol: () => ReturnType;
836
+ search: {
837
+ setSearchTerm: (searchTerm: string) => ReturnType;
838
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
839
+ replace: () => ReturnType;
840
+ replaceAll: () => ReturnType;
841
+ goToPrevSearchResult: () => void;
842
+ goToNextSearchResult: () => void;
843
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
833
844
  };
834
845
  }
835
846
  }
@@ -846,8 +857,8 @@ declare module '@tiptap/core' {
846
857
 
847
858
  declare module '@tiptap/core' {
848
859
  interface Commands<ReturnType> {
849
- painter: {
850
- setPainter: (marks: Mark[]) => ReturnType;
860
+ excalidraw: {
861
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
851
862
  };
852
863
  }
853
864
  }
@@ -855,11 +866,9 @@ declare module '@tiptap/core' {
855
866
 
856
867
  declare module '@tiptap/core' {
857
868
  interface Commands<ReturnType> {
858
- emoji: {
859
- setEmoji: (emoji: {
860
- name: string;
861
- emoji: string;
862
- }) => ReturnType;
869
+ tableOfContents: {
870
+ setTableOfContents: () => ReturnType;
871
+ removeTableOfContents: () => ReturnType;
863
872
  };
864
873
  }
865
874
  }
@@ -867,8 +876,8 @@ declare module '@tiptap/core' {
867
876
 
868
877
  declare module '@tiptap/core' {
869
878
  interface Commands<ReturnType> {
870
- excalidraw: {
871
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
879
+ katex: {
880
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
872
881
  };
873
882
  }
874
883
  }
@@ -876,8 +885,29 @@ declare module '@tiptap/core' {
876
885
 
877
886
  declare module '@tiptap/core' {
878
887
  interface Commands<ReturnType> {
879
- katex: {
880
- setKatex: (arg?: IKatexAttrs) => ReturnType;
888
+ imageGifUpload: {
889
+ /**
890
+ * Add an image gif
891
+ */
892
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
893
+ /**
894
+ * Update an image gif
895
+ */
896
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
897
+ /**
898
+ * Set image alignment
899
+ */
900
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
901
+ };
902
+ }
903
+ }
904
+
905
+
906
+ declare module '@tiptap/core' {
907
+ interface Commands<ReturnType> {
908
+ mermaid: {
909
+ setMermaid: (options: any, replace?: any) => ReturnType;
910
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
881
911
  };
882
912
  }
883
913
  }
@@ -915,33 +945,3 @@ declare module '@tiptap/core' {
915
945
  };
916
946
  }
917
947
  }
918
-
919
-
920
- declare module '@tiptap/core' {
921
- interface Commands<ReturnType> {
922
- mermaid: {
923
- setMermaid: (options: any, replace?: any) => ReturnType;
924
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
925
- };
926
- }
927
- }
928
-
929
-
930
- declare module '@tiptap/core' {
931
- interface Commands<ReturnType> {
932
- imageGifUpload: {
933
- /**
934
- * Add an image gif
935
- */
936
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
937
- /**
938
- * Update an image gif
939
- */
940
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
941
- /**
942
- * Set image alignment
943
- */
944
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
945
- };
946
- }
947
- }