reactjs-tiptap-editor 0.2.13 → 0.2.15

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.
@@ -698,6 +698,16 @@ declare module '@tiptap/core' {
698
698
  }
699
699
 
700
700
 
701
+ declare module '@tiptap/core' {
702
+ interface Commands<ReturnType> {
703
+ lineHeight: {
704
+ setLineHeight: (lineHeight: string) => ReturnType;
705
+ unsetLineHeight: () => ReturnType;
706
+ };
707
+ }
708
+ }
709
+
710
+
701
711
  declare module '@tiptap/core' {
702
712
  interface Commands<ReturnType> {
703
713
  indent: {
@@ -714,16 +724,6 @@ declare module '@tiptap/core' {
714
724
  }
715
725
 
716
726
 
717
- declare module '@tiptap/core' {
718
- interface Commands<ReturnType> {
719
- lineHeight: {
720
- setLineHeight: (lineHeight: string) => ReturnType;
721
- unsetLineHeight: () => ReturnType;
722
- };
723
- }
724
- }
725
-
726
-
727
727
  declare module '@tiptap/core' {
728
728
  interface Commands<ReturnType> {
729
729
  columns: {
@@ -748,21 +748,6 @@ declare module '@tiptap/core' {
748
748
  }
749
749
 
750
750
 
751
- declare module '@tiptap/core' {
752
- interface Commands<ReturnType> {
753
- iframe: {
754
- /**
755
- * Add an iframe
756
- */
757
- setIframe: (options: {
758
- src: string;
759
- service: string;
760
- }) => ReturnType;
761
- };
762
- }
763
- }
764
-
765
-
766
751
  declare module '@tiptap/core' {
767
752
  interface Commands<ReturnType> {
768
753
  imageUpload: {
@@ -818,8 +803,11 @@ declare module '@tiptap/core' {
818
803
 
819
804
  declare module '@tiptap/core' {
820
805
  interface Commands<ReturnType> {
821
- exportWord: {
822
- exportToWord: () => ReturnType;
806
+ emoji: {
807
+ setEmoji: (emoji: {
808
+ name: string;
809
+ emoji: string;
810
+ }) => ReturnType;
823
811
  };
824
812
  }
825
813
  }
@@ -827,9 +815,14 @@ declare module '@tiptap/core' {
827
815
 
828
816
  declare module '@tiptap/core' {
829
817
  interface Commands<ReturnType> {
830
- tableOfContents: {
831
- setTableOfContents: () => ReturnType;
832
- removeTableOfContents: () => ReturnType;
818
+ iframe: {
819
+ /**
820
+ * Add an iframe
821
+ */
822
+ setIframe: (options: {
823
+ src: string;
824
+ service: string;
825
+ }) => ReturnType;
833
826
  };
834
827
  }
835
828
  }
@@ -837,11 +830,8 @@ declare module '@tiptap/core' {
837
830
 
838
831
  declare module '@tiptap/core' {
839
832
  interface Commands<ReturnType> {
840
- emoji: {
841
- setEmoji: (emoji: {
842
- name: string;
843
- emoji: string;
844
- }) => ReturnType;
833
+ exportWord: {
834
+ exportToWord: () => ReturnType;
845
835
  };
846
836
  }
847
837
  }
@@ -849,14 +839,18 @@ declare module '@tiptap/core' {
849
839
 
850
840
  declare module '@tiptap/core' {
851
841
  interface Commands<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;
842
+ tableOfContents: {
843
+ setTableOfContents: () => ReturnType;
844
+ removeTableOfContents: () => ReturnType;
845
+ };
846
+ }
847
+ }
848
+
849
+
850
+ declare module '@tiptap/core' {
851
+ interface Commands<ReturnType> {
852
+ excalidraw: {
853
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
860
854
  };
861
855
  }
862
856
  }
@@ -903,8 +897,9 @@ declare module '@tiptap/core' {
903
897
 
904
898
  declare module '@tiptap/core' {
905
899
  interface Commands<ReturnType> {
906
- excalidraw: {
907
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
900
+ mermaid: {
901
+ setMermaid: (options: any, replace?: any) => ReturnType;
902
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
908
903
  };
909
904
  }
910
905
  }
@@ -912,9 +907,14 @@ declare module '@tiptap/core' {
912
907
 
913
908
  declare module '@tiptap/core' {
914
909
  interface Commands<ReturnType> {
915
- mermaid: {
916
- setMermaid: (options: any, replace?: any) => ReturnType;
917
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
910
+ twitter: {
911
+ /**
912
+ * Insert a tweet
913
+ * @param options The tweet attributes
914
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
915
+ */
916
+ setTweet: (options: SetTweetOptions) => ReturnType;
917
+ updateTweet: (options: SetTweetOptions) => ReturnType;
918
918
  };
919
919
  }
920
920
  }
@@ -698,6 +698,16 @@ declare module '@tiptap/core' {
698
698
  }
699
699
 
700
700
 
701
+ declare module '@tiptap/core' {
702
+ interface Commands<ReturnType> {
703
+ lineHeight: {
704
+ setLineHeight: (lineHeight: string) => ReturnType;
705
+ unsetLineHeight: () => ReturnType;
706
+ };
707
+ }
708
+ }
709
+
710
+
701
711
  declare module '@tiptap/core' {
702
712
  interface Commands<ReturnType> {
703
713
  indent: {
@@ -714,16 +724,6 @@ declare module '@tiptap/core' {
714
724
  }
715
725
 
716
726
 
717
- declare module '@tiptap/core' {
718
- interface Commands<ReturnType> {
719
- lineHeight: {
720
- setLineHeight: (lineHeight: string) => ReturnType;
721
- unsetLineHeight: () => ReturnType;
722
- };
723
- }
724
- }
725
-
726
-
727
727
  declare module '@tiptap/core' {
728
728
  interface Commands<ReturnType> {
729
729
  columns: {
@@ -748,21 +748,6 @@ declare module '@tiptap/core' {
748
748
  }
749
749
 
750
750
 
751
- declare module '@tiptap/core' {
752
- interface Commands<ReturnType> {
753
- iframe: {
754
- /**
755
- * Add an iframe
756
- */
757
- setIframe: (options: {
758
- src: string;
759
- service: string;
760
- }) => ReturnType;
761
- };
762
- }
763
- }
764
-
765
-
766
751
  declare module '@tiptap/core' {
767
752
  interface Commands<ReturnType> {
768
753
  imageUpload: {
@@ -818,8 +803,11 @@ declare module '@tiptap/core' {
818
803
 
819
804
  declare module '@tiptap/core' {
820
805
  interface Commands<ReturnType> {
821
- exportWord: {
822
- exportToWord: () => ReturnType;
806
+ emoji: {
807
+ setEmoji: (emoji: {
808
+ name: string;
809
+ emoji: string;
810
+ }) => ReturnType;
823
811
  };
824
812
  }
825
813
  }
@@ -827,9 +815,14 @@ declare module '@tiptap/core' {
827
815
 
828
816
  declare module '@tiptap/core' {
829
817
  interface Commands<ReturnType> {
830
- tableOfContents: {
831
- setTableOfContents: () => ReturnType;
832
- removeTableOfContents: () => ReturnType;
818
+ iframe: {
819
+ /**
820
+ * Add an iframe
821
+ */
822
+ setIframe: (options: {
823
+ src: string;
824
+ service: string;
825
+ }) => ReturnType;
833
826
  };
834
827
  }
835
828
  }
@@ -837,11 +830,8 @@ declare module '@tiptap/core' {
837
830
 
838
831
  declare module '@tiptap/core' {
839
832
  interface Commands<ReturnType> {
840
- emoji: {
841
- setEmoji: (emoji: {
842
- name: string;
843
- emoji: string;
844
- }) => ReturnType;
833
+ exportWord: {
834
+ exportToWord: () => ReturnType;
845
835
  };
846
836
  }
847
837
  }
@@ -849,14 +839,18 @@ declare module '@tiptap/core' {
849
839
 
850
840
  declare module '@tiptap/core' {
851
841
  interface Commands<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;
842
+ tableOfContents: {
843
+ setTableOfContents: () => ReturnType;
844
+ removeTableOfContents: () => ReturnType;
845
+ };
846
+ }
847
+ }
848
+
849
+
850
+ declare module '@tiptap/core' {
851
+ interface Commands<ReturnType> {
852
+ excalidraw: {
853
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
860
854
  };
861
855
  }
862
856
  }
@@ -903,8 +897,9 @@ declare module '@tiptap/core' {
903
897
 
904
898
  declare module '@tiptap/core' {
905
899
  interface Commands<ReturnType> {
906
- excalidraw: {
907
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
900
+ mermaid: {
901
+ setMermaid: (options: any, replace?: any) => ReturnType;
902
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
908
903
  };
909
904
  }
910
905
  }
@@ -912,9 +907,14 @@ declare module '@tiptap/core' {
912
907
 
913
908
  declare module '@tiptap/core' {
914
909
  interface Commands<ReturnType> {
915
- mermaid: {
916
- setMermaid: (options: any, replace?: any) => ReturnType;
917
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
910
+ twitter: {
911
+ /**
912
+ * Insert a tweet
913
+ * @param options The tweet attributes
914
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
915
+ */
916
+ setTweet: (options: SetTweetOptions) => ReturnType;
917
+ updateTweet: (options: SetTweetOptions) => ReturnType;
918
918
  };
919
919
  }
920
920
  }