reactjs-tiptap-editor-pro 0.2.41 → 0.2.43

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,39 +725,9 @@ declare module '@tiptap/core' {
725
725
 
726
726
  declare module '@tiptap/core' {
727
727
  interface Commands<ReturnType> {
728
- indent: {
729
- /**
730
- * Set the indent attribute
731
- */
732
- indent: () => ReturnType;
733
- /**
734
- * Set the outdent attribute
735
- */
736
- outdent: () => ReturnType;
737
- };
738
- }
739
- }
740
-
741
-
742
- declare module '@tiptap/core' {
743
- interface Commands<ReturnType> {
744
- iframe: {
745
- /**
746
- * Add an iframe
747
- */
748
- setIframe: (options: {
749
- src: string;
750
- service: string;
751
- }) => ReturnType;
752
- };
753
- }
754
- }
755
-
756
-
757
- declare module '@tiptap/core' {
758
- interface Commands<ReturnType> {
759
- painter: {
760
- setPainter: (marks: Mark[]) => ReturnType;
728
+ lineHeight: {
729
+ setLineHeight: (lineHeight: string) => ReturnType;
730
+ unsetLineHeight: () => ReturnType;
761
731
  };
762
732
  }
763
733
  }
@@ -785,9 +755,9 @@ declare module '@tiptap/core' {
785
755
 
786
756
  declare module '@tiptap/core' {
787
757
  interface Commands<ReturnType> {
788
- lineHeight: {
789
- setLineHeight: (lineHeight: string) => ReturnType;
790
- unsetLineHeight: () => ReturnType;
758
+ tableCellBackground: {
759
+ setTableCellBackground: (color: string) => ReturnType;
760
+ unsetTableCellBackground: () => ReturnType;
791
761
  };
792
762
  }
793
763
  }
@@ -807,13 +777,8 @@ declare module '@tiptap/core' {
807
777
 
808
778
  declare module '@tiptap/core' {
809
779
  interface Commands<ReturnType> {
810
- columns: {
811
- insertColumns: (attrs?: {
812
- cols: number;
813
- }) => ReturnType;
814
- addColBefore: () => ReturnType;
815
- addColAfter: () => ReturnType;
816
- deleteCol: () => ReturnType;
780
+ katex: {
781
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
817
782
  };
818
783
  }
819
784
  }
@@ -821,9 +786,13 @@ declare module '@tiptap/core' {
821
786
 
822
787
  declare module '@tiptap/core' {
823
788
  interface Commands<ReturnType> {
824
- tableCellBackground: {
825
- setTableCellBackground: (color: string) => ReturnType;
826
- unsetTableCellBackground: () => ReturnType;
789
+ columns: {
790
+ insertColumns: (attrs?: {
791
+ cols: number;
792
+ }) => ReturnType;
793
+ addColBefore: () => ReturnType;
794
+ addColAfter: () => ReturnType;
795
+ deleteCol: () => ReturnType;
827
796
  };
828
797
  }
829
798
  }
@@ -846,8 +815,15 @@ declare module '@tiptap/core' {
846
815
 
847
816
  declare module '@tiptap/core' {
848
817
  interface Commands<ReturnType> {
849
- katex: {
850
- setKatex: (arg?: IKatexAttrs) => ReturnType;
818
+ indent: {
819
+ /**
820
+ * Set the indent attribute
821
+ */
822
+ indent: () => ReturnType;
823
+ /**
824
+ * Set the outdent attribute
825
+ */
826
+ outdent: () => ReturnType;
851
827
  };
852
828
  }
853
829
  }
@@ -855,8 +831,8 @@ declare module '@tiptap/core' {
855
831
 
856
832
  declare module '@tiptap/core' {
857
833
  interface Commands<ReturnType> {
858
- exportWord: {
859
- exportToWord: () => ReturnType;
834
+ painter: {
835
+ setPainter: (marks: Mark[]) => ReturnType;
860
836
  };
861
837
  }
862
838
  }
@@ -864,9 +840,14 @@ declare module '@tiptap/core' {
864
840
 
865
841
  declare module '@tiptap/core' {
866
842
  interface Commands<ReturnType> {
867
- tableOfContents: {
868
- setTableOfContents: () => ReturnType;
869
- removeTableOfContents: () => ReturnType;
843
+ iframe: {
844
+ /**
845
+ * Add an iframe
846
+ */
847
+ setIframe: (options: {
848
+ src: string;
849
+ service: string;
850
+ }) => ReturnType;
870
851
  };
871
852
  }
872
853
  }
@@ -874,8 +855,29 @@ declare module '@tiptap/core' {
874
855
 
875
856
  declare module '@tiptap/core' {
876
857
  interface Commands<ReturnType> {
877
- attachment: {
878
- setAttachment: (attrs?: unknown) => ReturnType;
858
+ drawer: {
859
+ setDrawer: (options: any, replace?: any) => ReturnType;
860
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
861
+ };
862
+ }
863
+ }
864
+
865
+
866
+ declare module '@tiptap/core' {
867
+ interface Commands<ReturnType> {
868
+ imageGifUpload: {
869
+ /**
870
+ * Add an image gif
871
+ */
872
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
873
+ /**
874
+ * Update an image gif
875
+ */
876
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
877
+ /**
878
+ * Set image alignment
879
+ */
880
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
879
881
  };
880
882
  }
881
883
  }
@@ -898,19 +900,8 @@ declare module '@tiptap/core' {
898
900
 
899
901
  declare module '@tiptap/core' {
900
902
  interface Commands<ReturnType> {
901
- imageGifUpload: {
902
- /**
903
- * Add an image gif
904
- */
905
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
906
- /**
907
- * Update an image gif
908
- */
909
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
910
- /**
911
- * Set image alignment
912
- */
913
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
903
+ exportWord: {
904
+ exportToWord: () => ReturnType;
914
905
  };
915
906
  }
916
907
  }
@@ -918,9 +909,18 @@ declare module '@tiptap/core' {
918
909
 
919
910
  declare module '@tiptap/core' {
920
911
  interface Commands<ReturnType> {
921
- drawer: {
922
- setDrawer: (options: any, replace?: any) => ReturnType;
923
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
912
+ attachment: {
913
+ setAttachment: (attrs?: unknown) => ReturnType;
914
+ };
915
+ }
916
+ }
917
+
918
+
919
+ declare module '@tiptap/core' {
920
+ interface Commands<ReturnType> {
921
+ tableOfContents: {
922
+ setTableOfContents: () => ReturnType;
923
+ removeTableOfContents: () => ReturnType;
924
924
  };
925
925
  }
926
926
  }
@@ -725,39 +725,9 @@ declare module '@tiptap/core' {
725
725
 
726
726
  declare module '@tiptap/core' {
727
727
  interface Commands<ReturnType> {
728
- indent: {
729
- /**
730
- * Set the indent attribute
731
- */
732
- indent: () => ReturnType;
733
- /**
734
- * Set the outdent attribute
735
- */
736
- outdent: () => ReturnType;
737
- };
738
- }
739
- }
740
-
741
-
742
- declare module '@tiptap/core' {
743
- interface Commands<ReturnType> {
744
- iframe: {
745
- /**
746
- * Add an iframe
747
- */
748
- setIframe: (options: {
749
- src: string;
750
- service: string;
751
- }) => ReturnType;
752
- };
753
- }
754
- }
755
-
756
-
757
- declare module '@tiptap/core' {
758
- interface Commands<ReturnType> {
759
- painter: {
760
- setPainter: (marks: Mark[]) => ReturnType;
728
+ lineHeight: {
729
+ setLineHeight: (lineHeight: string) => ReturnType;
730
+ unsetLineHeight: () => ReturnType;
761
731
  };
762
732
  }
763
733
  }
@@ -785,9 +755,9 @@ declare module '@tiptap/core' {
785
755
 
786
756
  declare module '@tiptap/core' {
787
757
  interface Commands<ReturnType> {
788
- lineHeight: {
789
- setLineHeight: (lineHeight: string) => ReturnType;
790
- unsetLineHeight: () => ReturnType;
758
+ tableCellBackground: {
759
+ setTableCellBackground: (color: string) => ReturnType;
760
+ unsetTableCellBackground: () => ReturnType;
791
761
  };
792
762
  }
793
763
  }
@@ -807,13 +777,8 @@ declare module '@tiptap/core' {
807
777
 
808
778
  declare module '@tiptap/core' {
809
779
  interface Commands<ReturnType> {
810
- columns: {
811
- insertColumns: (attrs?: {
812
- cols: number;
813
- }) => ReturnType;
814
- addColBefore: () => ReturnType;
815
- addColAfter: () => ReturnType;
816
- deleteCol: () => ReturnType;
780
+ katex: {
781
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
817
782
  };
818
783
  }
819
784
  }
@@ -821,9 +786,13 @@ declare module '@tiptap/core' {
821
786
 
822
787
  declare module '@tiptap/core' {
823
788
  interface Commands<ReturnType> {
824
- tableCellBackground: {
825
- setTableCellBackground: (color: string) => ReturnType;
826
- unsetTableCellBackground: () => ReturnType;
789
+ columns: {
790
+ insertColumns: (attrs?: {
791
+ cols: number;
792
+ }) => ReturnType;
793
+ addColBefore: () => ReturnType;
794
+ addColAfter: () => ReturnType;
795
+ deleteCol: () => ReturnType;
827
796
  };
828
797
  }
829
798
  }
@@ -846,8 +815,15 @@ declare module '@tiptap/core' {
846
815
 
847
816
  declare module '@tiptap/core' {
848
817
  interface Commands<ReturnType> {
849
- katex: {
850
- setKatex: (arg?: IKatexAttrs) => ReturnType;
818
+ indent: {
819
+ /**
820
+ * Set the indent attribute
821
+ */
822
+ indent: () => ReturnType;
823
+ /**
824
+ * Set the outdent attribute
825
+ */
826
+ outdent: () => ReturnType;
851
827
  };
852
828
  }
853
829
  }
@@ -855,8 +831,8 @@ declare module '@tiptap/core' {
855
831
 
856
832
  declare module '@tiptap/core' {
857
833
  interface Commands<ReturnType> {
858
- exportWord: {
859
- exportToWord: () => ReturnType;
834
+ painter: {
835
+ setPainter: (marks: Mark[]) => ReturnType;
860
836
  };
861
837
  }
862
838
  }
@@ -864,9 +840,14 @@ declare module '@tiptap/core' {
864
840
 
865
841
  declare module '@tiptap/core' {
866
842
  interface Commands<ReturnType> {
867
- tableOfContents: {
868
- setTableOfContents: () => ReturnType;
869
- removeTableOfContents: () => ReturnType;
843
+ iframe: {
844
+ /**
845
+ * Add an iframe
846
+ */
847
+ setIframe: (options: {
848
+ src: string;
849
+ service: string;
850
+ }) => ReturnType;
870
851
  };
871
852
  }
872
853
  }
@@ -874,8 +855,29 @@ declare module '@tiptap/core' {
874
855
 
875
856
  declare module '@tiptap/core' {
876
857
  interface Commands<ReturnType> {
877
- attachment: {
878
- setAttachment: (attrs?: unknown) => ReturnType;
858
+ drawer: {
859
+ setDrawer: (options: any, replace?: any) => ReturnType;
860
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
861
+ };
862
+ }
863
+ }
864
+
865
+
866
+ declare module '@tiptap/core' {
867
+ interface Commands<ReturnType> {
868
+ imageGifUpload: {
869
+ /**
870
+ * Add an image gif
871
+ */
872
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
873
+ /**
874
+ * Update an image gif
875
+ */
876
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
877
+ /**
878
+ * Set image alignment
879
+ */
880
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
879
881
  };
880
882
  }
881
883
  }
@@ -898,19 +900,8 @@ declare module '@tiptap/core' {
898
900
 
899
901
  declare module '@tiptap/core' {
900
902
  interface Commands<ReturnType> {
901
- imageGifUpload: {
902
- /**
903
- * Add an image gif
904
- */
905
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
906
- /**
907
- * Update an image gif
908
- */
909
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
910
- /**
911
- * Set image alignment
912
- */
913
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
903
+ exportWord: {
904
+ exportToWord: () => ReturnType;
914
905
  };
915
906
  }
916
907
  }
@@ -918,9 +909,18 @@ declare module '@tiptap/core' {
918
909
 
919
910
  declare module '@tiptap/core' {
920
911
  interface Commands<ReturnType> {
921
- drawer: {
922
- setDrawer: (options: any, replace?: any) => ReturnType;
923
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
912
+ attachment: {
913
+ setAttachment: (attrs?: unknown) => ReturnType;
914
+ };
915
+ }
916
+ }
917
+
918
+
919
+ declare module '@tiptap/core' {
920
+ interface Commands<ReturnType> {
921
+ tableOfContents: {
922
+ setTableOfContents: () => ReturnType;
923
+ removeTableOfContents: () => ReturnType;
924
924
  };
925
925
  }
926
926
  }