reactjs-tiptap-editor 0.2.11 → 0.2.13

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.
@@ -700,9 +700,15 @@ declare module '@tiptap/core' {
700
700
 
701
701
  declare module '@tiptap/core' {
702
702
  interface Commands<ReturnType> {
703
- tableCellBackground: {
704
- setTableCellBackground: (color: string) => ReturnType;
705
- unsetTableCellBackground: () => ReturnType;
703
+ indent: {
704
+ /**
705
+ * Set the indent attribute
706
+ */
707
+ indent: () => ReturnType;
708
+ /**
709
+ * Set the outdent attribute
710
+ */
711
+ outdent: () => ReturnType;
706
712
  };
707
713
  }
708
714
  }
@@ -710,8 +716,9 @@ declare module '@tiptap/core' {
710
716
 
711
717
  declare module '@tiptap/core' {
712
718
  interface Commands<ReturnType> {
713
- painter: {
714
- setPainter: (marks: Mark[]) => ReturnType;
719
+ lineHeight: {
720
+ setLineHeight: (lineHeight: string) => ReturnType;
721
+ unsetLineHeight: () => ReturnType;
715
722
  };
716
723
  }
717
724
  }
@@ -733,37 +740,9 @@ declare module '@tiptap/core' {
733
740
 
734
741
  declare module '@tiptap/core' {
735
742
  interface Commands<ReturnType> {
736
- indent: {
737
- /**
738
- * Set the indent attribute
739
- */
740
- indent: () => ReturnType;
741
- /**
742
- * Set the outdent attribute
743
- */
744
- outdent: () => ReturnType;
745
- };
746
- }
747
- }
748
-
749
-
750
- declare module '@tiptap/core' {
751
- interface Commands<ReturnType> {
752
- lineHeight: {
753
- setLineHeight: (lineHeight: string) => ReturnType;
754
- unsetLineHeight: () => ReturnType;
755
- };
756
- }
757
- }
758
-
759
-
760
- declare module '@tiptap/core' {
761
- interface Commands<ReturnType> {
762
- emoji: {
763
- setEmoji: (emoji: {
764
- name: string;
765
- emoji: string;
766
- }) => ReturnType;
743
+ tableCellBackground: {
744
+ setTableCellBackground: (color: string) => ReturnType;
745
+ unsetTableCellBackground: () => ReturnType;
767
746
  };
768
747
  }
769
748
  }
@@ -804,6 +783,24 @@ declare module '@tiptap/core' {
804
783
  }
805
784
 
806
785
 
786
+ declare module '@tiptap/core' {
787
+ interface Commands<ReturnType> {
788
+ painter: {
789
+ setPainter: (marks: Mark[]) => ReturnType;
790
+ };
791
+ }
792
+ }
793
+
794
+
795
+ declare module '@tiptap/core' {
796
+ interface Commands<ReturnType> {
797
+ katex: {
798
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
799
+ };
800
+ }
801
+ }
802
+
803
+
807
804
  declare module '@tiptap/core' {
808
805
  interface Commands<ReturnType> {
809
806
  search: {
@@ -821,8 +818,8 @@ declare module '@tiptap/core' {
821
818
 
822
819
  declare module '@tiptap/core' {
823
820
  interface Commands<ReturnType> {
824
- katex: {
825
- setKatex: (arg?: IKatexAttrs) => ReturnType;
821
+ exportWord: {
822
+ exportToWord: () => ReturnType;
826
823
  };
827
824
  }
828
825
  }
@@ -830,8 +827,9 @@ declare module '@tiptap/core' {
830
827
 
831
828
  declare module '@tiptap/core' {
832
829
  interface Commands<ReturnType> {
833
- exportWord: {
834
- exportToWord: () => ReturnType;
830
+ tableOfContents: {
831
+ setTableOfContents: () => ReturnType;
832
+ removeTableOfContents: () => ReturnType;
835
833
  };
836
834
  }
837
835
  }
@@ -839,9 +837,11 @@ declare module '@tiptap/core' {
839
837
 
840
838
  declare module '@tiptap/core' {
841
839
  interface Commands<ReturnType> {
842
- tableOfContents: {
843
- setTableOfContents: () => ReturnType;
844
- removeTableOfContents: () => ReturnType;
840
+ emoji: {
841
+ setEmoji: (emoji: {
842
+ name: string;
843
+ emoji: string;
844
+ }) => ReturnType;
845
845
  };
846
846
  }
847
847
  }
@@ -849,8 +849,14 @@ declare module '@tiptap/core' {
849
849
 
850
850
  declare module '@tiptap/core' {
851
851
  interface Commands<ReturnType> {
852
- excalidraw: {
853
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
852
+ twitter: {
853
+ /**
854
+ * Insert a tweet
855
+ * @param options The tweet attributes
856
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
857
+ */
858
+ setTweet: (options: SetTweetOptions) => ReturnType;
859
+ updateTweet: (options: SetTweetOptions) => ReturnType;
854
860
  };
855
861
  }
856
862
  }
@@ -887,14 +893,9 @@ declare module '@tiptap/core' {
887
893
 
888
894
  declare module '@tiptap/core' {
889
895
  interface Commands<ReturnType> {
890
- twitter: {
891
- /**
892
- * Insert a tweet
893
- * @param options The tweet attributes
894
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
895
- */
896
- setTweet: (options: SetTweetOptions) => ReturnType;
897
- updateTweet: (options: SetTweetOptions) => ReturnType;
896
+ drawer: {
897
+ setDrawer: (options: any, replace?: any) => ReturnType;
898
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
898
899
  };
899
900
  }
900
901
  }
@@ -902,9 +903,8 @@ declare module '@tiptap/core' {
902
903
 
903
904
  declare module '@tiptap/core' {
904
905
  interface Commands<ReturnType> {
905
- drawer: {
906
- setDrawer: (options: any, replace?: any) => ReturnType;
907
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
906
+ excalidraw: {
907
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
908
908
  };
909
909
  }
910
910
  }
@@ -700,9 +700,15 @@ declare module '@tiptap/core' {
700
700
 
701
701
  declare module '@tiptap/core' {
702
702
  interface Commands<ReturnType> {
703
- tableCellBackground: {
704
- setTableCellBackground: (color: string) => ReturnType;
705
- unsetTableCellBackground: () => ReturnType;
703
+ indent: {
704
+ /**
705
+ * Set the indent attribute
706
+ */
707
+ indent: () => ReturnType;
708
+ /**
709
+ * Set the outdent attribute
710
+ */
711
+ outdent: () => ReturnType;
706
712
  };
707
713
  }
708
714
  }
@@ -710,8 +716,9 @@ declare module '@tiptap/core' {
710
716
 
711
717
  declare module '@tiptap/core' {
712
718
  interface Commands<ReturnType> {
713
- painter: {
714
- setPainter: (marks: Mark[]) => ReturnType;
719
+ lineHeight: {
720
+ setLineHeight: (lineHeight: string) => ReturnType;
721
+ unsetLineHeight: () => ReturnType;
715
722
  };
716
723
  }
717
724
  }
@@ -733,37 +740,9 @@ declare module '@tiptap/core' {
733
740
 
734
741
  declare module '@tiptap/core' {
735
742
  interface Commands<ReturnType> {
736
- indent: {
737
- /**
738
- * Set the indent attribute
739
- */
740
- indent: () => ReturnType;
741
- /**
742
- * Set the outdent attribute
743
- */
744
- outdent: () => ReturnType;
745
- };
746
- }
747
- }
748
-
749
-
750
- declare module '@tiptap/core' {
751
- interface Commands<ReturnType> {
752
- lineHeight: {
753
- setLineHeight: (lineHeight: string) => ReturnType;
754
- unsetLineHeight: () => ReturnType;
755
- };
756
- }
757
- }
758
-
759
-
760
- declare module '@tiptap/core' {
761
- interface Commands<ReturnType> {
762
- emoji: {
763
- setEmoji: (emoji: {
764
- name: string;
765
- emoji: string;
766
- }) => ReturnType;
743
+ tableCellBackground: {
744
+ setTableCellBackground: (color: string) => ReturnType;
745
+ unsetTableCellBackground: () => ReturnType;
767
746
  };
768
747
  }
769
748
  }
@@ -804,6 +783,24 @@ declare module '@tiptap/core' {
804
783
  }
805
784
 
806
785
 
786
+ declare module '@tiptap/core' {
787
+ interface Commands<ReturnType> {
788
+ painter: {
789
+ setPainter: (marks: Mark[]) => ReturnType;
790
+ };
791
+ }
792
+ }
793
+
794
+
795
+ declare module '@tiptap/core' {
796
+ interface Commands<ReturnType> {
797
+ katex: {
798
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
799
+ };
800
+ }
801
+ }
802
+
803
+
807
804
  declare module '@tiptap/core' {
808
805
  interface Commands<ReturnType> {
809
806
  search: {
@@ -821,8 +818,8 @@ declare module '@tiptap/core' {
821
818
 
822
819
  declare module '@tiptap/core' {
823
820
  interface Commands<ReturnType> {
824
- katex: {
825
- setKatex: (arg?: IKatexAttrs) => ReturnType;
821
+ exportWord: {
822
+ exportToWord: () => ReturnType;
826
823
  };
827
824
  }
828
825
  }
@@ -830,8 +827,9 @@ declare module '@tiptap/core' {
830
827
 
831
828
  declare module '@tiptap/core' {
832
829
  interface Commands<ReturnType> {
833
- exportWord: {
834
- exportToWord: () => ReturnType;
830
+ tableOfContents: {
831
+ setTableOfContents: () => ReturnType;
832
+ removeTableOfContents: () => ReturnType;
835
833
  };
836
834
  }
837
835
  }
@@ -839,9 +837,11 @@ declare module '@tiptap/core' {
839
837
 
840
838
  declare module '@tiptap/core' {
841
839
  interface Commands<ReturnType> {
842
- tableOfContents: {
843
- setTableOfContents: () => ReturnType;
844
- removeTableOfContents: () => ReturnType;
840
+ emoji: {
841
+ setEmoji: (emoji: {
842
+ name: string;
843
+ emoji: string;
844
+ }) => ReturnType;
845
845
  };
846
846
  }
847
847
  }
@@ -849,8 +849,14 @@ declare module '@tiptap/core' {
849
849
 
850
850
  declare module '@tiptap/core' {
851
851
  interface Commands<ReturnType> {
852
- excalidraw: {
853
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
852
+ twitter: {
853
+ /**
854
+ * Insert a tweet
855
+ * @param options The tweet attributes
856
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
857
+ */
858
+ setTweet: (options: SetTweetOptions) => ReturnType;
859
+ updateTweet: (options: SetTweetOptions) => ReturnType;
854
860
  };
855
861
  }
856
862
  }
@@ -887,14 +893,9 @@ declare module '@tiptap/core' {
887
893
 
888
894
  declare module '@tiptap/core' {
889
895
  interface Commands<ReturnType> {
890
- twitter: {
891
- /**
892
- * Insert a tweet
893
- * @param options The tweet attributes
894
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
895
- */
896
- setTweet: (options: SetTweetOptions) => ReturnType;
897
- updateTweet: (options: SetTweetOptions) => ReturnType;
896
+ drawer: {
897
+ setDrawer: (options: any, replace?: any) => ReturnType;
898
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
898
899
  };
899
900
  }
900
901
  }
@@ -902,9 +903,8 @@ declare module '@tiptap/core' {
902
903
 
903
904
  declare module '@tiptap/core' {
904
905
  interface Commands<ReturnType> {
905
- drawer: {
906
- setDrawer: (options: any, replace?: any) => ReturnType;
907
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
906
+ excalidraw: {
907
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
908
908
  };
909
909
  }
910
910
  }