reactjs-tiptap-editor-pro 0.2.24 → 0.2.26

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,6 +725,32 @@ declare module '@tiptap/core' {
725
725
  }
726
726
 
727
727
 
728
+ declare module '@tiptap/core' {
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;
749
+ };
750
+ }
751
+ }
752
+
753
+
728
754
  declare module '@tiptap/core' {
729
755
  interface Commands<ReturnType> {
730
756
  imageUpload: {
@@ -747,14 +773,9 @@ declare module '@tiptap/core' {
747
773
 
748
774
  declare module '@tiptap/core' {
749
775
  interface Commands<ReturnType> {
750
- iframe: {
751
- /**
752
- * Add an iframe
753
- */
754
- setIframe: (options: {
755
- src: string;
756
- service: string;
757
- }) => ReturnType;
776
+ lineHeight: {
777
+ setLineHeight: (lineHeight: string) => ReturnType;
778
+ unsetLineHeight: () => ReturnType;
758
779
  };
759
780
  }
760
781
  }
@@ -777,8 +798,9 @@ declare module '@tiptap/core' {
777
798
 
778
799
  declare module '@tiptap/core' {
779
800
  interface Commands<ReturnType> {
780
- painter: {
781
- setPainter: (marks: Mark[]) => ReturnType;
801
+ tableOfContents: {
802
+ setTableOfContents: () => ReturnType;
803
+ removeTableOfContents: () => ReturnType;
782
804
  };
783
805
  }
784
806
  }
@@ -786,9 +808,14 @@ declare module '@tiptap/core' {
786
808
 
787
809
  declare module '@tiptap/core' {
788
810
  interface Commands<ReturnType> {
789
- tableCellBackground: {
790
- setTableCellBackground: (color: string) => ReturnType;
791
- unsetTableCellBackground: () => ReturnType;
811
+ iframe: {
812
+ /**
813
+ * Add an iframe
814
+ */
815
+ setIframe: (options: {
816
+ src: string;
817
+ service: string;
818
+ }) => ReturnType;
792
819
  };
793
820
  }
794
821
  }
@@ -796,15 +823,31 @@ declare module '@tiptap/core' {
796
823
 
797
824
  declare module '@tiptap/core' {
798
825
  interface Commands<ReturnType> {
799
- indent: {
800
- /**
801
- * Set the indent attribute
802
- */
803
- indent: () => ReturnType;
804
- /**
805
- * Set the outdent attribute
806
- */
807
- outdent: () => ReturnType;
826
+ columns: {
827
+ insertColumns: (attrs?: {
828
+ cols: number;
829
+ }) => ReturnType;
830
+ addColBefore: () => ReturnType;
831
+ addColAfter: () => ReturnType;
832
+ deleteCol: () => ReturnType;
833
+ };
834
+ }
835
+ }
836
+
837
+
838
+ declare module '@tiptap/core' {
839
+ interface Commands<ReturnType> {
840
+ exportWord: {
841
+ exportToWord: () => ReturnType;
842
+ };
843
+ }
844
+ }
845
+
846
+
847
+ declare module '@tiptap/core' {
848
+ interface Commands<ReturnType> {
849
+ painter: {
850
+ setPainter: (marks: Mark[]) => ReturnType;
808
851
  };
809
852
  }
810
853
  }
@@ -824,13 +867,8 @@ declare module '@tiptap/core' {
824
867
 
825
868
  declare module '@tiptap/core' {
826
869
  interface Commands<ReturnType> {
827
- columns: {
828
- insertColumns: (attrs?: {
829
- cols: number;
830
- }) => ReturnType;
831
- addColBefore: () => ReturnType;
832
- addColAfter: () => ReturnType;
833
- deleteCol: () => ReturnType;
870
+ excalidraw: {
871
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
834
872
  };
835
873
  }
836
874
  }
@@ -838,9 +876,8 @@ declare module '@tiptap/core' {
838
876
 
839
877
  declare module '@tiptap/core' {
840
878
  interface Commands<ReturnType> {
841
- lineHeight: {
842
- setLineHeight: (lineHeight: string) => ReturnType;
843
- unsetLineHeight: () => ReturnType;
879
+ katex: {
880
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
844
881
  };
845
882
  }
846
883
  }
@@ -848,8 +885,8 @@ declare module '@tiptap/core' {
848
885
 
849
886
  declare module '@tiptap/core' {
850
887
  interface Commands<ReturnType> {
851
- katex: {
852
- setKatex: (arg?: IKatexAttrs) => ReturnType;
888
+ attachment: {
889
+ setAttachment: (attrs?: unknown) => ReturnType;
853
890
  };
854
891
  }
855
892
  }
@@ -872,8 +909,9 @@ declare module '@tiptap/core' {
872
909
 
873
910
  declare module '@tiptap/core' {
874
911
  interface Commands<ReturnType> {
875
- exportWord: {
876
- exportToWord: () => ReturnType;
912
+ drawer: {
913
+ setDrawer: (options: any, replace?: any) => ReturnType;
914
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
877
915
  };
878
916
  }
879
917
  }
@@ -907,41 +945,3 @@ declare module '@tiptap/core' {
907
945
  };
908
946
  }
909
947
  }
910
-
911
-
912
- declare module '@tiptap/core' {
913
- interface Commands<ReturnType> {
914
- attachment: {
915
- setAttachment: (attrs?: unknown) => ReturnType;
916
- };
917
- }
918
- }
919
-
920
-
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- tableOfContents: {
924
- setTableOfContents: () => ReturnType;
925
- removeTableOfContents: () => ReturnType;
926
- };
927
- }
928
- }
929
-
930
-
931
- declare module '@tiptap/core' {
932
- interface Commands<ReturnType> {
933
- drawer: {
934
- setDrawer: (options: any, replace?: any) => ReturnType;
935
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
936
- };
937
- }
938
- }
939
-
940
-
941
- declare module '@tiptap/core' {
942
- interface Commands<ReturnType> {
943
- excalidraw: {
944
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
945
- };
946
- }
947
- }
@@ -725,6 +725,32 @@ declare module '@tiptap/core' {
725
725
  }
726
726
 
727
727
 
728
+ declare module '@tiptap/core' {
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;
749
+ };
750
+ }
751
+ }
752
+
753
+
728
754
  declare module '@tiptap/core' {
729
755
  interface Commands<ReturnType> {
730
756
  imageUpload: {
@@ -747,14 +773,9 @@ declare module '@tiptap/core' {
747
773
 
748
774
  declare module '@tiptap/core' {
749
775
  interface Commands<ReturnType> {
750
- iframe: {
751
- /**
752
- * Add an iframe
753
- */
754
- setIframe: (options: {
755
- src: string;
756
- service: string;
757
- }) => ReturnType;
776
+ lineHeight: {
777
+ setLineHeight: (lineHeight: string) => ReturnType;
778
+ unsetLineHeight: () => ReturnType;
758
779
  };
759
780
  }
760
781
  }
@@ -777,8 +798,9 @@ declare module '@tiptap/core' {
777
798
 
778
799
  declare module '@tiptap/core' {
779
800
  interface Commands<ReturnType> {
780
- painter: {
781
- setPainter: (marks: Mark[]) => ReturnType;
801
+ tableOfContents: {
802
+ setTableOfContents: () => ReturnType;
803
+ removeTableOfContents: () => ReturnType;
782
804
  };
783
805
  }
784
806
  }
@@ -786,9 +808,14 @@ declare module '@tiptap/core' {
786
808
 
787
809
  declare module '@tiptap/core' {
788
810
  interface Commands<ReturnType> {
789
- tableCellBackground: {
790
- setTableCellBackground: (color: string) => ReturnType;
791
- unsetTableCellBackground: () => ReturnType;
811
+ iframe: {
812
+ /**
813
+ * Add an iframe
814
+ */
815
+ setIframe: (options: {
816
+ src: string;
817
+ service: string;
818
+ }) => ReturnType;
792
819
  };
793
820
  }
794
821
  }
@@ -796,15 +823,31 @@ declare module '@tiptap/core' {
796
823
 
797
824
  declare module '@tiptap/core' {
798
825
  interface Commands<ReturnType> {
799
- indent: {
800
- /**
801
- * Set the indent attribute
802
- */
803
- indent: () => ReturnType;
804
- /**
805
- * Set the outdent attribute
806
- */
807
- outdent: () => ReturnType;
826
+ columns: {
827
+ insertColumns: (attrs?: {
828
+ cols: number;
829
+ }) => ReturnType;
830
+ addColBefore: () => ReturnType;
831
+ addColAfter: () => ReturnType;
832
+ deleteCol: () => ReturnType;
833
+ };
834
+ }
835
+ }
836
+
837
+
838
+ declare module '@tiptap/core' {
839
+ interface Commands<ReturnType> {
840
+ exportWord: {
841
+ exportToWord: () => ReturnType;
842
+ };
843
+ }
844
+ }
845
+
846
+
847
+ declare module '@tiptap/core' {
848
+ interface Commands<ReturnType> {
849
+ painter: {
850
+ setPainter: (marks: Mark[]) => ReturnType;
808
851
  };
809
852
  }
810
853
  }
@@ -824,13 +867,8 @@ declare module '@tiptap/core' {
824
867
 
825
868
  declare module '@tiptap/core' {
826
869
  interface Commands<ReturnType> {
827
- columns: {
828
- insertColumns: (attrs?: {
829
- cols: number;
830
- }) => ReturnType;
831
- addColBefore: () => ReturnType;
832
- addColAfter: () => ReturnType;
833
- deleteCol: () => ReturnType;
870
+ excalidraw: {
871
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
834
872
  };
835
873
  }
836
874
  }
@@ -838,9 +876,8 @@ declare module '@tiptap/core' {
838
876
 
839
877
  declare module '@tiptap/core' {
840
878
  interface Commands<ReturnType> {
841
- lineHeight: {
842
- setLineHeight: (lineHeight: string) => ReturnType;
843
- unsetLineHeight: () => ReturnType;
879
+ katex: {
880
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
844
881
  };
845
882
  }
846
883
  }
@@ -848,8 +885,8 @@ declare module '@tiptap/core' {
848
885
 
849
886
  declare module '@tiptap/core' {
850
887
  interface Commands<ReturnType> {
851
- katex: {
852
- setKatex: (arg?: IKatexAttrs) => ReturnType;
888
+ attachment: {
889
+ setAttachment: (attrs?: unknown) => ReturnType;
853
890
  };
854
891
  }
855
892
  }
@@ -872,8 +909,9 @@ declare module '@tiptap/core' {
872
909
 
873
910
  declare module '@tiptap/core' {
874
911
  interface Commands<ReturnType> {
875
- exportWord: {
876
- exportToWord: () => ReturnType;
912
+ drawer: {
913
+ setDrawer: (options: any, replace?: any) => ReturnType;
914
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
877
915
  };
878
916
  }
879
917
  }
@@ -907,41 +945,3 @@ declare module '@tiptap/core' {
907
945
  };
908
946
  }
909
947
  }
910
-
911
-
912
- declare module '@tiptap/core' {
913
- interface Commands<ReturnType> {
914
- attachment: {
915
- setAttachment: (attrs?: unknown) => ReturnType;
916
- };
917
- }
918
- }
919
-
920
-
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- tableOfContents: {
924
- setTableOfContents: () => ReturnType;
925
- removeTableOfContents: () => ReturnType;
926
- };
927
- }
928
- }
929
-
930
-
931
- declare module '@tiptap/core' {
932
- interface Commands<ReturnType> {
933
- drawer: {
934
- setDrawer: (options: any, replace?: any) => ReturnType;
935
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
936
- };
937
- }
938
- }
939
-
940
-
941
- declare module '@tiptap/core' {
942
- interface Commands<ReturnType> {
943
- excalidraw: {
944
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
945
- };
946
- }
947
- }