reactjs-tiptap-editor 0.2.3 → 0.2.5
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.
- package/lib/RichTextEditor-B4ASZID5.cjs +138 -0
- package/lib/{RichTextEditor-S3oDQ7DG.js → RichTextEditor-yL5SRS_H.js} +675 -684
- package/lib/extension-bundle.cjs +20 -2
- package/lib/extension-bundle.d.cts +76 -76
- package/lib/extension-bundle.d.ts +76 -76
- package/lib/extension-bundle.js +517 -495
- package/lib/{index-BEUeIQfa.js → index-BUxFK1y_.js} +1 -1
- package/lib/{index-CvbViqY1.cjs → index-DGpT32KX.cjs} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +76 -76
- package/lib/index.d.ts +76 -76
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +76 -76
- package/lib/locale-bundle.d.ts +76 -76
- package/lib/locale-bundle.js +1 -1
- package/lib/{tiptap-CYz8BQhm.cjs → tiptap-BhYF9Ndj.cjs} +1 -1
- package/lib/{tiptap-B9VypLMv.js → tiptap-DXj1s_xP.js} +1 -1
- package/lib/vendor-DIvoV5tx.js +41663 -0
- package/lib/vendor-Dp07eU0H.cjs +266 -0
- package/package.json +5 -1
- package/lib/RichTextEditor-BNLeCZNj.cjs +0 -138
- package/lib/vendor-BeclCw8p.js +0 -60431
- package/lib/vendor-CwNzD6m_.cjs +0 -457
|
@@ -692,19 +692,15 @@ declare module '@tiptap/core' {
|
|
|
692
692
|
|
|
693
693
|
declare module '@tiptap/core' {
|
|
694
694
|
interface Commands<ReturnType> {
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* Add an image
|
|
698
|
-
*/
|
|
699
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
695
|
+
indent: {
|
|
700
696
|
/**
|
|
701
|
-
*
|
|
697
|
+
* Set the indent attribute
|
|
702
698
|
*/
|
|
703
|
-
|
|
699
|
+
indent: () => ReturnType;
|
|
704
700
|
/**
|
|
705
|
-
* Set
|
|
701
|
+
* Set the outdent attribute
|
|
706
702
|
*/
|
|
707
|
-
|
|
703
|
+
outdent: () => ReturnType;
|
|
708
704
|
};
|
|
709
705
|
}
|
|
710
706
|
}
|
|
@@ -722,15 +718,19 @@ declare module '@tiptap/core' {
|
|
|
722
718
|
|
|
723
719
|
declare module '@tiptap/core' {
|
|
724
720
|
interface Commands<ReturnType> {
|
|
725
|
-
|
|
721
|
+
imageUpload: {
|
|
726
722
|
/**
|
|
727
|
-
*
|
|
723
|
+
* Add an image
|
|
728
724
|
*/
|
|
729
|
-
|
|
725
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
730
726
|
/**
|
|
731
|
-
*
|
|
727
|
+
* Update an image
|
|
732
728
|
*/
|
|
733
|
-
|
|
729
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
730
|
+
/**
|
|
731
|
+
* Set image alignment
|
|
732
|
+
*/
|
|
733
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
736
|
}
|
|
@@ -738,9 +738,8 @@ declare module '@tiptap/core' {
|
|
|
738
738
|
|
|
739
739
|
declare module '@tiptap/core' {
|
|
740
740
|
interface Commands<ReturnType> {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
unsetTableCellBackground: () => ReturnType;
|
|
741
|
+
painter: {
|
|
742
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
744
743
|
};
|
|
745
744
|
}
|
|
746
745
|
}
|
|
@@ -748,14 +747,28 @@ declare module '@tiptap/core' {
|
|
|
748
747
|
|
|
749
748
|
declare module '@tiptap/core' {
|
|
750
749
|
interface Commands<ReturnType> {
|
|
751
|
-
|
|
750
|
+
columns: {
|
|
751
|
+
insertColumns: (attrs?: {
|
|
752
|
+
cols: number;
|
|
753
|
+
}) => ReturnType;
|
|
754
|
+
addColBefore: () => ReturnType;
|
|
755
|
+
addColAfter: () => ReturnType;
|
|
756
|
+
deleteCol: () => ReturnType;
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
declare module '@tiptap/core' {
|
|
763
|
+
interface Commands<ReturnType> {
|
|
764
|
+
iframe: {
|
|
752
765
|
/**
|
|
753
|
-
*
|
|
754
|
-
* @param options The tweet attributes
|
|
755
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
766
|
+
* Add an iframe
|
|
756
767
|
*/
|
|
757
|
-
|
|
758
|
-
|
|
768
|
+
setIframe: (options: {
|
|
769
|
+
src: string;
|
|
770
|
+
service: string;
|
|
771
|
+
}) => ReturnType;
|
|
759
772
|
};
|
|
760
773
|
}
|
|
761
774
|
}
|
|
@@ -763,8 +776,9 @@ declare module '@tiptap/core' {
|
|
|
763
776
|
|
|
764
777
|
declare module '@tiptap/core' {
|
|
765
778
|
interface Commands<ReturnType> {
|
|
766
|
-
|
|
767
|
-
|
|
779
|
+
tableCellBackground: {
|
|
780
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
781
|
+
unsetTableCellBackground: () => ReturnType;
|
|
768
782
|
};
|
|
769
783
|
}
|
|
770
784
|
}
|
|
@@ -772,13 +786,11 @@ declare module '@tiptap/core' {
|
|
|
772
786
|
|
|
773
787
|
declare module '@tiptap/core' {
|
|
774
788
|
interface Commands<ReturnType> {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
789
|
+
emoji: {
|
|
790
|
+
setEmoji: (emoji: {
|
|
791
|
+
name: string;
|
|
792
|
+
emoji: string;
|
|
778
793
|
}) => ReturnType;
|
|
779
|
-
addColBefore: () => ReturnType;
|
|
780
|
-
addColAfter: () => ReturnType;
|
|
781
|
-
deleteCol: () => ReturnType;
|
|
782
794
|
};
|
|
783
795
|
}
|
|
784
796
|
}
|
|
@@ -786,8 +798,8 @@ declare module '@tiptap/core' {
|
|
|
786
798
|
|
|
787
799
|
declare module '@tiptap/core' {
|
|
788
800
|
interface Commands<ReturnType> {
|
|
789
|
-
|
|
790
|
-
|
|
801
|
+
katex: {
|
|
802
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
791
803
|
};
|
|
792
804
|
}
|
|
793
805
|
}
|
|
@@ -810,18 +822,8 @@ declare module '@tiptap/core' {
|
|
|
810
822
|
|
|
811
823
|
declare module '@tiptap/core' {
|
|
812
824
|
interface Commands<ReturnType> {
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
};
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
declare module '@tiptap/core' {
|
|
821
|
-
interface Commands<ReturnType> {
|
|
822
|
-
mermaid: {
|
|
823
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
824
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
825
|
+
exportWord: {
|
|
826
|
+
exportToWord: () => ReturnType;
|
|
825
827
|
};
|
|
826
828
|
}
|
|
827
829
|
}
|
|
@@ -829,19 +831,9 @@ declare module '@tiptap/core' {
|
|
|
829
831
|
|
|
830
832
|
declare module '@tiptap/core' {
|
|
831
833
|
interface Commands<ReturnType> {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
*/
|
|
836
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
837
|
-
/**
|
|
838
|
-
* Update an image gif
|
|
839
|
-
*/
|
|
840
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
841
|
-
/**
|
|
842
|
-
* Set image alignment
|
|
843
|
-
*/
|
|
844
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
834
|
+
tableOfContents: {
|
|
835
|
+
setTableOfContents: () => ReturnType;
|
|
836
|
+
removeTableOfContents: () => ReturnType;
|
|
845
837
|
};
|
|
846
838
|
}
|
|
847
839
|
}
|
|
@@ -849,8 +841,8 @@ declare module '@tiptap/core' {
|
|
|
849
841
|
|
|
850
842
|
declare module '@tiptap/core' {
|
|
851
843
|
interface Commands<ReturnType> {
|
|
852
|
-
|
|
853
|
-
|
|
844
|
+
excalidraw: {
|
|
845
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
854
846
|
};
|
|
855
847
|
}
|
|
856
848
|
}
|
|
@@ -858,11 +850,8 @@ declare module '@tiptap/core' {
|
|
|
858
850
|
|
|
859
851
|
declare module '@tiptap/core' {
|
|
860
852
|
interface Commands<ReturnType> {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
name: string;
|
|
864
|
-
emoji: string;
|
|
865
|
-
}) => ReturnType;
|
|
853
|
+
attachment: {
|
|
854
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
866
855
|
};
|
|
867
856
|
}
|
|
868
857
|
}
|
|
@@ -870,8 +859,19 @@ declare module '@tiptap/core' {
|
|
|
870
859
|
|
|
871
860
|
declare module '@tiptap/core' {
|
|
872
861
|
interface Commands<ReturnType> {
|
|
873
|
-
|
|
874
|
-
|
|
862
|
+
imageGifUpload: {
|
|
863
|
+
/**
|
|
864
|
+
* Add an image gif
|
|
865
|
+
*/
|
|
866
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
867
|
+
/**
|
|
868
|
+
* Update an image gif
|
|
869
|
+
*/
|
|
870
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
871
|
+
/**
|
|
872
|
+
* Set image alignment
|
|
873
|
+
*/
|
|
874
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
877
|
}
|
|
@@ -879,14 +879,14 @@ declare module '@tiptap/core' {
|
|
|
879
879
|
|
|
880
880
|
declare module '@tiptap/core' {
|
|
881
881
|
interface Commands<ReturnType> {
|
|
882
|
-
|
|
882
|
+
twitter: {
|
|
883
883
|
/**
|
|
884
|
-
*
|
|
884
|
+
* Insert a tweet
|
|
885
|
+
* @param options The tweet attributes
|
|
886
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
885
887
|
*/
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
service: string;
|
|
889
|
-
}) => ReturnType;
|
|
888
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
889
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
892
|
}
|
|
@@ -894,9 +894,9 @@ declare module '@tiptap/core' {
|
|
|
894
894
|
|
|
895
895
|
declare module '@tiptap/core' {
|
|
896
896
|
interface Commands<ReturnType> {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
897
|
+
mermaid: {
|
|
898
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
899
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
902
|
}
|
|
@@ -692,19 +692,15 @@ declare module '@tiptap/core' {
|
|
|
692
692
|
|
|
693
693
|
declare module '@tiptap/core' {
|
|
694
694
|
interface Commands<ReturnType> {
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* Add an image
|
|
698
|
-
*/
|
|
699
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
695
|
+
indent: {
|
|
700
696
|
/**
|
|
701
|
-
*
|
|
697
|
+
* Set the indent attribute
|
|
702
698
|
*/
|
|
703
|
-
|
|
699
|
+
indent: () => ReturnType;
|
|
704
700
|
/**
|
|
705
|
-
* Set
|
|
701
|
+
* Set the outdent attribute
|
|
706
702
|
*/
|
|
707
|
-
|
|
703
|
+
outdent: () => ReturnType;
|
|
708
704
|
};
|
|
709
705
|
}
|
|
710
706
|
}
|
|
@@ -722,15 +718,19 @@ declare module '@tiptap/core' {
|
|
|
722
718
|
|
|
723
719
|
declare module '@tiptap/core' {
|
|
724
720
|
interface Commands<ReturnType> {
|
|
725
|
-
|
|
721
|
+
imageUpload: {
|
|
726
722
|
/**
|
|
727
|
-
*
|
|
723
|
+
* Add an image
|
|
728
724
|
*/
|
|
729
|
-
|
|
725
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
730
726
|
/**
|
|
731
|
-
*
|
|
727
|
+
* Update an image
|
|
732
728
|
*/
|
|
733
|
-
|
|
729
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
730
|
+
/**
|
|
731
|
+
* Set image alignment
|
|
732
|
+
*/
|
|
733
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
736
|
}
|
|
@@ -738,9 +738,8 @@ declare module '@tiptap/core' {
|
|
|
738
738
|
|
|
739
739
|
declare module '@tiptap/core' {
|
|
740
740
|
interface Commands<ReturnType> {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
unsetTableCellBackground: () => ReturnType;
|
|
741
|
+
painter: {
|
|
742
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
744
743
|
};
|
|
745
744
|
}
|
|
746
745
|
}
|
|
@@ -748,14 +747,28 @@ declare module '@tiptap/core' {
|
|
|
748
747
|
|
|
749
748
|
declare module '@tiptap/core' {
|
|
750
749
|
interface Commands<ReturnType> {
|
|
751
|
-
|
|
750
|
+
columns: {
|
|
751
|
+
insertColumns: (attrs?: {
|
|
752
|
+
cols: number;
|
|
753
|
+
}) => ReturnType;
|
|
754
|
+
addColBefore: () => ReturnType;
|
|
755
|
+
addColAfter: () => ReturnType;
|
|
756
|
+
deleteCol: () => ReturnType;
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
declare module '@tiptap/core' {
|
|
763
|
+
interface Commands<ReturnType> {
|
|
764
|
+
iframe: {
|
|
752
765
|
/**
|
|
753
|
-
*
|
|
754
|
-
* @param options The tweet attributes
|
|
755
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
766
|
+
* Add an iframe
|
|
756
767
|
*/
|
|
757
|
-
|
|
758
|
-
|
|
768
|
+
setIframe: (options: {
|
|
769
|
+
src: string;
|
|
770
|
+
service: string;
|
|
771
|
+
}) => ReturnType;
|
|
759
772
|
};
|
|
760
773
|
}
|
|
761
774
|
}
|
|
@@ -763,8 +776,9 @@ declare module '@tiptap/core' {
|
|
|
763
776
|
|
|
764
777
|
declare module '@tiptap/core' {
|
|
765
778
|
interface Commands<ReturnType> {
|
|
766
|
-
|
|
767
|
-
|
|
779
|
+
tableCellBackground: {
|
|
780
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
781
|
+
unsetTableCellBackground: () => ReturnType;
|
|
768
782
|
};
|
|
769
783
|
}
|
|
770
784
|
}
|
|
@@ -772,13 +786,11 @@ declare module '@tiptap/core' {
|
|
|
772
786
|
|
|
773
787
|
declare module '@tiptap/core' {
|
|
774
788
|
interface Commands<ReturnType> {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
789
|
+
emoji: {
|
|
790
|
+
setEmoji: (emoji: {
|
|
791
|
+
name: string;
|
|
792
|
+
emoji: string;
|
|
778
793
|
}) => ReturnType;
|
|
779
|
-
addColBefore: () => ReturnType;
|
|
780
|
-
addColAfter: () => ReturnType;
|
|
781
|
-
deleteCol: () => ReturnType;
|
|
782
794
|
};
|
|
783
795
|
}
|
|
784
796
|
}
|
|
@@ -786,8 +798,8 @@ declare module '@tiptap/core' {
|
|
|
786
798
|
|
|
787
799
|
declare module '@tiptap/core' {
|
|
788
800
|
interface Commands<ReturnType> {
|
|
789
|
-
|
|
790
|
-
|
|
801
|
+
katex: {
|
|
802
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
791
803
|
};
|
|
792
804
|
}
|
|
793
805
|
}
|
|
@@ -810,18 +822,8 @@ declare module '@tiptap/core' {
|
|
|
810
822
|
|
|
811
823
|
declare module '@tiptap/core' {
|
|
812
824
|
interface Commands<ReturnType> {
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
};
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
declare module '@tiptap/core' {
|
|
821
|
-
interface Commands<ReturnType> {
|
|
822
|
-
mermaid: {
|
|
823
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
824
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
825
|
+
exportWord: {
|
|
826
|
+
exportToWord: () => ReturnType;
|
|
825
827
|
};
|
|
826
828
|
}
|
|
827
829
|
}
|
|
@@ -829,19 +831,9 @@ declare module '@tiptap/core' {
|
|
|
829
831
|
|
|
830
832
|
declare module '@tiptap/core' {
|
|
831
833
|
interface Commands<ReturnType> {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
*/
|
|
836
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
837
|
-
/**
|
|
838
|
-
* Update an image gif
|
|
839
|
-
*/
|
|
840
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
841
|
-
/**
|
|
842
|
-
* Set image alignment
|
|
843
|
-
*/
|
|
844
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
834
|
+
tableOfContents: {
|
|
835
|
+
setTableOfContents: () => ReturnType;
|
|
836
|
+
removeTableOfContents: () => ReturnType;
|
|
845
837
|
};
|
|
846
838
|
}
|
|
847
839
|
}
|
|
@@ -849,8 +841,8 @@ declare module '@tiptap/core' {
|
|
|
849
841
|
|
|
850
842
|
declare module '@tiptap/core' {
|
|
851
843
|
interface Commands<ReturnType> {
|
|
852
|
-
|
|
853
|
-
|
|
844
|
+
excalidraw: {
|
|
845
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
854
846
|
};
|
|
855
847
|
}
|
|
856
848
|
}
|
|
@@ -858,11 +850,8 @@ declare module '@tiptap/core' {
|
|
|
858
850
|
|
|
859
851
|
declare module '@tiptap/core' {
|
|
860
852
|
interface Commands<ReturnType> {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
name: string;
|
|
864
|
-
emoji: string;
|
|
865
|
-
}) => ReturnType;
|
|
853
|
+
attachment: {
|
|
854
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
866
855
|
};
|
|
867
856
|
}
|
|
868
857
|
}
|
|
@@ -870,8 +859,19 @@ declare module '@tiptap/core' {
|
|
|
870
859
|
|
|
871
860
|
declare module '@tiptap/core' {
|
|
872
861
|
interface Commands<ReturnType> {
|
|
873
|
-
|
|
874
|
-
|
|
862
|
+
imageGifUpload: {
|
|
863
|
+
/**
|
|
864
|
+
* Add an image gif
|
|
865
|
+
*/
|
|
866
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
867
|
+
/**
|
|
868
|
+
* Update an image gif
|
|
869
|
+
*/
|
|
870
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
871
|
+
/**
|
|
872
|
+
* Set image alignment
|
|
873
|
+
*/
|
|
874
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
877
|
}
|
|
@@ -879,14 +879,14 @@ declare module '@tiptap/core' {
|
|
|
879
879
|
|
|
880
880
|
declare module '@tiptap/core' {
|
|
881
881
|
interface Commands<ReturnType> {
|
|
882
|
-
|
|
882
|
+
twitter: {
|
|
883
883
|
/**
|
|
884
|
-
*
|
|
884
|
+
* Insert a tweet
|
|
885
|
+
* @param options The tweet attributes
|
|
886
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
885
887
|
*/
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
service: string;
|
|
889
|
-
}) => ReturnType;
|
|
888
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
889
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
892
|
}
|
|
@@ -894,9 +894,9 @@ declare module '@tiptap/core' {
|
|
|
894
894
|
|
|
895
895
|
declare module '@tiptap/core' {
|
|
896
896
|
interface Commands<ReturnType> {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
897
|
+
mermaid: {
|
|
898
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
899
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
902
|
}
|