reactjs-tiptap-editor 0.2.21 → 0.2.24
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-CIhslsGV.cjs +141 -0
- package/lib/{RichTextEditor-aaUynZc2.js → RichTextEditor-C_dIT2FZ.js} +1582 -1556
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +88 -84
- package/lib/extension-bundle.d.ts +88 -84
- package/lib/extension-bundle.js +1275 -1217
- package/lib/{index-8id9bPv5.js → index-BlV5SJJW.js} +28 -42
- package/lib/index-CJ6Hb9MN.cjs +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +133 -84
- package/lib/index.d.ts +133 -84
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +86 -77
- package/lib/locale-bundle.d.ts +86 -77
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -1
- package/lib/{tiptap-BV9BUpUC.js → tiptap-CXio79KB.js} +621 -768
- package/lib/tiptap-Dq62HiQ9.cjs +113 -0
- package/lib/vendor-DdwtMmSr.cjs +302 -0
- package/lib/{vendor-DyAqAGVt.js → vendor-VlEklMUJ.js} +15128 -11919
- package/package.json +23 -24
- package/lib/RichTextEditor-DAqU7JiB.cjs +0 -141
- package/lib/index-CYg22iLG.cjs +0 -1
- package/lib/tiptap-Ufn12SjW.cjs +0 -116
- package/lib/vendor-CRmKyn1B.cjs +0 -264
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { BlockquoteOptions as BlockquoteOptions_2 } from '@tiptap/extension-blockquote';
|
|
2
2
|
import { BoldOptions as BoldOptions_2 } from '@tiptap/extension-bold';
|
|
3
3
|
import { BulletListOptions as BulletListOptions_2 } from '@tiptap/extension-bullet-list';
|
|
4
|
-
import { BundledLanguage } from 'shiki';
|
|
5
|
-
import { BundledTheme } from 'shiki';
|
|
6
4
|
import { CharacterCountOptions } from '@tiptap/extension-character-count';
|
|
7
|
-
import { CodeBlockOptions as CodeBlockOptions_2 } from '@tiptap/extension-code-block';
|
|
8
5
|
import { CodeOptions as CodeOptions_2 } from '@tiptap/extension-code';
|
|
9
6
|
import { ColorOptions as ColorOptions_2 } from '@tiptap/extension-color';
|
|
10
7
|
import { default as default_2 } from 'mammoth';
|
|
@@ -235,11 +232,9 @@ export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
|
|
|
235
232
|
|
|
236
233
|
export declare const Code: Mark<CodeOptions, any>;
|
|
237
234
|
|
|
238
|
-
export declare const CodeBlock: Node_2<
|
|
235
|
+
export declare const CodeBlock: Node_2<any, any>;
|
|
239
236
|
|
|
240
|
-
export declare interface CodeBlockOptions extends GeneralOptions<
|
|
241
|
-
languages?: BundledLanguage[];
|
|
242
|
-
defaultTheme: BundledTheme;
|
|
237
|
+
export declare interface CodeBlockOptions extends GeneralOptions<CodeBlockOptions> {
|
|
243
238
|
}
|
|
244
239
|
|
|
245
240
|
export declare interface CodeOptions extends CodeOptions_2, GeneralOptions<CodeOptions> {
|
|
@@ -707,6 +702,15 @@ declare module '@tiptap/core' {
|
|
|
707
702
|
}
|
|
708
703
|
|
|
709
704
|
|
|
705
|
+
declare module '@tiptap/core' {
|
|
706
|
+
interface Commands<ReturnType> {
|
|
707
|
+
setCodeBlock: {
|
|
708
|
+
setCodeBlock: (options?: any) => ReturnType;
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
|
|
710
714
|
declare module '@tiptap/core' {
|
|
711
715
|
interface Commands<ReturnType> {
|
|
712
716
|
fontSize: {
|
|
@@ -727,15 +731,19 @@ declare module '@tiptap/core' {
|
|
|
727
731
|
|
|
728
732
|
declare module '@tiptap/core' {
|
|
729
733
|
interface Commands<ReturnType> {
|
|
730
|
-
|
|
734
|
+
imageUpload: {
|
|
731
735
|
/**
|
|
732
|
-
*
|
|
736
|
+
* Add an image
|
|
733
737
|
*/
|
|
734
|
-
|
|
738
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
735
739
|
/**
|
|
736
|
-
*
|
|
740
|
+
* Update an image
|
|
737
741
|
*/
|
|
738
|
-
|
|
742
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
743
|
+
/**
|
|
744
|
+
* Set image alignment
|
|
745
|
+
*/
|
|
746
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
739
747
|
};
|
|
740
748
|
}
|
|
741
749
|
}
|
|
@@ -743,14 +751,15 @@ declare module '@tiptap/core' {
|
|
|
743
751
|
|
|
744
752
|
declare module '@tiptap/core' {
|
|
745
753
|
interface Commands<ReturnType> {
|
|
746
|
-
|
|
754
|
+
indent: {
|
|
747
755
|
/**
|
|
748
|
-
*
|
|
756
|
+
* Set the indent attribute
|
|
749
757
|
*/
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
758
|
+
indent: () => ReturnType;
|
|
759
|
+
/**
|
|
760
|
+
* Set the outdent attribute
|
|
761
|
+
*/
|
|
762
|
+
outdent: () => ReturnType;
|
|
754
763
|
};
|
|
755
764
|
}
|
|
756
765
|
}
|
|
@@ -766,26 +775,6 @@ declare module '@tiptap/core' {
|
|
|
766
775
|
}
|
|
767
776
|
|
|
768
777
|
|
|
769
|
-
declare module '@tiptap/core' {
|
|
770
|
-
interface Commands<ReturnType> {
|
|
771
|
-
imageUpload: {
|
|
772
|
-
/**
|
|
773
|
-
* Add an image
|
|
774
|
-
*/
|
|
775
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
776
|
-
/**
|
|
777
|
-
* Update an image
|
|
778
|
-
*/
|
|
779
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
780
|
-
/**
|
|
781
|
-
* Set image alignment
|
|
782
|
-
*/
|
|
783
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
784
|
-
};
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
|
|
789
778
|
declare module '@tiptap/core' {
|
|
790
779
|
interface Commands<ReturnType> {
|
|
791
780
|
tableCellBackground: {
|
|
@@ -805,33 +794,6 @@ declare module '@tiptap/core' {
|
|
|
805
794
|
}
|
|
806
795
|
|
|
807
796
|
|
|
808
|
-
declare module '@tiptap/core' {
|
|
809
|
-
interface Commands<ReturnType> {
|
|
810
|
-
search: {
|
|
811
|
-
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
812
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
813
|
-
replace: () => ReturnType;
|
|
814
|
-
replaceAll: () => ReturnType;
|
|
815
|
-
goToPrevSearchResult: () => void;
|
|
816
|
-
goToNextSearchResult: () => void;
|
|
817
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
declare module '@tiptap/core' {
|
|
824
|
-
interface Commands<ReturnType> {
|
|
825
|
-
emoji: {
|
|
826
|
-
setEmoji: (emoji: {
|
|
827
|
-
name: string;
|
|
828
|
-
emoji: string;
|
|
829
|
-
}) => ReturnType;
|
|
830
|
-
};
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
|
|
835
797
|
declare module '@tiptap/core' {
|
|
836
798
|
interface Commands<ReturnType> {
|
|
837
799
|
columns: {
|
|
@@ -848,8 +810,14 @@ declare module '@tiptap/core' {
|
|
|
848
810
|
|
|
849
811
|
declare module '@tiptap/core' {
|
|
850
812
|
interface Commands<ReturnType> {
|
|
851
|
-
|
|
852
|
-
|
|
813
|
+
iframe: {
|
|
814
|
+
/**
|
|
815
|
+
* Add an iframe
|
|
816
|
+
*/
|
|
817
|
+
setIframe: (options: {
|
|
818
|
+
src: string;
|
|
819
|
+
service: string;
|
|
820
|
+
}) => ReturnType;
|
|
853
821
|
};
|
|
854
822
|
}
|
|
855
823
|
}
|
|
@@ -857,8 +825,11 @@ declare module '@tiptap/core' {
|
|
|
857
825
|
|
|
858
826
|
declare module '@tiptap/core' {
|
|
859
827
|
interface Commands<ReturnType> {
|
|
860
|
-
|
|
861
|
-
|
|
828
|
+
emoji: {
|
|
829
|
+
setEmoji: (emoji: {
|
|
830
|
+
name: string;
|
|
831
|
+
emoji: string;
|
|
832
|
+
}) => ReturnType;
|
|
862
833
|
};
|
|
863
834
|
}
|
|
864
835
|
}
|
|
@@ -866,8 +837,14 @@ declare module '@tiptap/core' {
|
|
|
866
837
|
|
|
867
838
|
declare module '@tiptap/core' {
|
|
868
839
|
interface Commands<ReturnType> {
|
|
869
|
-
|
|
870
|
-
|
|
840
|
+
search: {
|
|
841
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
842
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
843
|
+
replace: () => ReturnType;
|
|
844
|
+
replaceAll: () => ReturnType;
|
|
845
|
+
goToPrevSearchResult: () => void;
|
|
846
|
+
goToNextSearchResult: () => void;
|
|
847
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
871
848
|
};
|
|
872
849
|
}
|
|
873
850
|
}
|
|
@@ -885,8 +862,17 @@ declare module '@tiptap/core' {
|
|
|
885
862
|
|
|
886
863
|
declare module '@tiptap/core' {
|
|
887
864
|
interface Commands<ReturnType> {
|
|
888
|
-
|
|
889
|
-
|
|
865
|
+
katex: {
|
|
866
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
declare module '@tiptap/core' {
|
|
873
|
+
interface Commands<ReturnType> {
|
|
874
|
+
exportWord: {
|
|
875
|
+
exportToWord: () => ReturnType;
|
|
890
876
|
};
|
|
891
877
|
}
|
|
892
878
|
}
|
|
@@ -914,14 +900,27 @@ declare module '@tiptap/core' {
|
|
|
914
900
|
|
|
915
901
|
declare module '@tiptap/core' {
|
|
916
902
|
interface Commands<ReturnType> {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
903
|
+
mermaid: {
|
|
904
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
905
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
declare module '@tiptap/core' {
|
|
912
|
+
interface Commands<ReturnType> {
|
|
913
|
+
attachment: {
|
|
914
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
declare module '@tiptap/core' {
|
|
921
|
+
interface Commands<ReturnType> {
|
|
922
|
+
excalidraw: {
|
|
923
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
925
924
|
};
|
|
926
925
|
}
|
|
927
926
|
}
|
|
@@ -939,9 +938,14 @@ declare module '@tiptap/core' {
|
|
|
939
938
|
|
|
940
939
|
declare module '@tiptap/core' {
|
|
941
940
|
interface Commands<ReturnType> {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
941
|
+
twitter: {
|
|
942
|
+
/**
|
|
943
|
+
* Insert a tweet
|
|
944
|
+
* @param options The tweet attributes
|
|
945
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
946
|
+
*/
|
|
947
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
948
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
945
949
|
};
|
|
946
950
|
}
|
|
947
951
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { BlockquoteOptions as BlockquoteOptions_2 } from '@tiptap/extension-blockquote';
|
|
2
2
|
import { BoldOptions as BoldOptions_2 } from '@tiptap/extension-bold';
|
|
3
3
|
import { BulletListOptions as BulletListOptions_2 } from '@tiptap/extension-bullet-list';
|
|
4
|
-
import { BundledLanguage } from 'shiki';
|
|
5
|
-
import { BundledTheme } from 'shiki';
|
|
6
4
|
import { CharacterCountOptions } from '@tiptap/extension-character-count';
|
|
7
|
-
import { CodeBlockOptions as CodeBlockOptions_2 } from '@tiptap/extension-code-block';
|
|
8
5
|
import { CodeOptions as CodeOptions_2 } from '@tiptap/extension-code';
|
|
9
6
|
import { ColorOptions as ColorOptions_2 } from '@tiptap/extension-color';
|
|
10
7
|
import { default as default_2 } from 'mammoth';
|
|
@@ -235,11 +232,9 @@ export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
|
|
|
235
232
|
|
|
236
233
|
export declare const Code: Mark<CodeOptions, any>;
|
|
237
234
|
|
|
238
|
-
export declare const CodeBlock: Node_2<
|
|
235
|
+
export declare const CodeBlock: Node_2<any, any>;
|
|
239
236
|
|
|
240
|
-
export declare interface CodeBlockOptions extends GeneralOptions<
|
|
241
|
-
languages?: BundledLanguage[];
|
|
242
|
-
defaultTheme: BundledTheme;
|
|
237
|
+
export declare interface CodeBlockOptions extends GeneralOptions<CodeBlockOptions> {
|
|
243
238
|
}
|
|
244
239
|
|
|
245
240
|
export declare interface CodeOptions extends CodeOptions_2, GeneralOptions<CodeOptions> {
|
|
@@ -707,6 +702,15 @@ declare module '@tiptap/core' {
|
|
|
707
702
|
}
|
|
708
703
|
|
|
709
704
|
|
|
705
|
+
declare module '@tiptap/core' {
|
|
706
|
+
interface Commands<ReturnType> {
|
|
707
|
+
setCodeBlock: {
|
|
708
|
+
setCodeBlock: (options?: any) => ReturnType;
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
|
|
710
714
|
declare module '@tiptap/core' {
|
|
711
715
|
interface Commands<ReturnType> {
|
|
712
716
|
fontSize: {
|
|
@@ -727,15 +731,19 @@ declare module '@tiptap/core' {
|
|
|
727
731
|
|
|
728
732
|
declare module '@tiptap/core' {
|
|
729
733
|
interface Commands<ReturnType> {
|
|
730
|
-
|
|
734
|
+
imageUpload: {
|
|
731
735
|
/**
|
|
732
|
-
*
|
|
736
|
+
* Add an image
|
|
733
737
|
*/
|
|
734
|
-
|
|
738
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
735
739
|
/**
|
|
736
|
-
*
|
|
740
|
+
* Update an image
|
|
737
741
|
*/
|
|
738
|
-
|
|
742
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
743
|
+
/**
|
|
744
|
+
* Set image alignment
|
|
745
|
+
*/
|
|
746
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
739
747
|
};
|
|
740
748
|
}
|
|
741
749
|
}
|
|
@@ -743,14 +751,15 @@ declare module '@tiptap/core' {
|
|
|
743
751
|
|
|
744
752
|
declare module '@tiptap/core' {
|
|
745
753
|
interface Commands<ReturnType> {
|
|
746
|
-
|
|
754
|
+
indent: {
|
|
747
755
|
/**
|
|
748
|
-
*
|
|
756
|
+
* Set the indent attribute
|
|
749
757
|
*/
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
758
|
+
indent: () => ReturnType;
|
|
759
|
+
/**
|
|
760
|
+
* Set the outdent attribute
|
|
761
|
+
*/
|
|
762
|
+
outdent: () => ReturnType;
|
|
754
763
|
};
|
|
755
764
|
}
|
|
756
765
|
}
|
|
@@ -766,26 +775,6 @@ declare module '@tiptap/core' {
|
|
|
766
775
|
}
|
|
767
776
|
|
|
768
777
|
|
|
769
|
-
declare module '@tiptap/core' {
|
|
770
|
-
interface Commands<ReturnType> {
|
|
771
|
-
imageUpload: {
|
|
772
|
-
/**
|
|
773
|
-
* Add an image
|
|
774
|
-
*/
|
|
775
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
776
|
-
/**
|
|
777
|
-
* Update an image
|
|
778
|
-
*/
|
|
779
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
780
|
-
/**
|
|
781
|
-
* Set image alignment
|
|
782
|
-
*/
|
|
783
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
784
|
-
};
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
|
|
789
778
|
declare module '@tiptap/core' {
|
|
790
779
|
interface Commands<ReturnType> {
|
|
791
780
|
tableCellBackground: {
|
|
@@ -805,33 +794,6 @@ declare module '@tiptap/core' {
|
|
|
805
794
|
}
|
|
806
795
|
|
|
807
796
|
|
|
808
|
-
declare module '@tiptap/core' {
|
|
809
|
-
interface Commands<ReturnType> {
|
|
810
|
-
search: {
|
|
811
|
-
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
812
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
813
|
-
replace: () => ReturnType;
|
|
814
|
-
replaceAll: () => ReturnType;
|
|
815
|
-
goToPrevSearchResult: () => void;
|
|
816
|
-
goToNextSearchResult: () => void;
|
|
817
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
declare module '@tiptap/core' {
|
|
824
|
-
interface Commands<ReturnType> {
|
|
825
|
-
emoji: {
|
|
826
|
-
setEmoji: (emoji: {
|
|
827
|
-
name: string;
|
|
828
|
-
emoji: string;
|
|
829
|
-
}) => ReturnType;
|
|
830
|
-
};
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
|
|
835
797
|
declare module '@tiptap/core' {
|
|
836
798
|
interface Commands<ReturnType> {
|
|
837
799
|
columns: {
|
|
@@ -848,8 +810,14 @@ declare module '@tiptap/core' {
|
|
|
848
810
|
|
|
849
811
|
declare module '@tiptap/core' {
|
|
850
812
|
interface Commands<ReturnType> {
|
|
851
|
-
|
|
852
|
-
|
|
813
|
+
iframe: {
|
|
814
|
+
/**
|
|
815
|
+
* Add an iframe
|
|
816
|
+
*/
|
|
817
|
+
setIframe: (options: {
|
|
818
|
+
src: string;
|
|
819
|
+
service: string;
|
|
820
|
+
}) => ReturnType;
|
|
853
821
|
};
|
|
854
822
|
}
|
|
855
823
|
}
|
|
@@ -857,8 +825,11 @@ declare module '@tiptap/core' {
|
|
|
857
825
|
|
|
858
826
|
declare module '@tiptap/core' {
|
|
859
827
|
interface Commands<ReturnType> {
|
|
860
|
-
|
|
861
|
-
|
|
828
|
+
emoji: {
|
|
829
|
+
setEmoji: (emoji: {
|
|
830
|
+
name: string;
|
|
831
|
+
emoji: string;
|
|
832
|
+
}) => ReturnType;
|
|
862
833
|
};
|
|
863
834
|
}
|
|
864
835
|
}
|
|
@@ -866,8 +837,14 @@ declare module '@tiptap/core' {
|
|
|
866
837
|
|
|
867
838
|
declare module '@tiptap/core' {
|
|
868
839
|
interface Commands<ReturnType> {
|
|
869
|
-
|
|
870
|
-
|
|
840
|
+
search: {
|
|
841
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
842
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
843
|
+
replace: () => ReturnType;
|
|
844
|
+
replaceAll: () => ReturnType;
|
|
845
|
+
goToPrevSearchResult: () => void;
|
|
846
|
+
goToNextSearchResult: () => void;
|
|
847
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
871
848
|
};
|
|
872
849
|
}
|
|
873
850
|
}
|
|
@@ -885,8 +862,17 @@ declare module '@tiptap/core' {
|
|
|
885
862
|
|
|
886
863
|
declare module '@tiptap/core' {
|
|
887
864
|
interface Commands<ReturnType> {
|
|
888
|
-
|
|
889
|
-
|
|
865
|
+
katex: {
|
|
866
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
declare module '@tiptap/core' {
|
|
873
|
+
interface Commands<ReturnType> {
|
|
874
|
+
exportWord: {
|
|
875
|
+
exportToWord: () => ReturnType;
|
|
890
876
|
};
|
|
891
877
|
}
|
|
892
878
|
}
|
|
@@ -914,14 +900,27 @@ declare module '@tiptap/core' {
|
|
|
914
900
|
|
|
915
901
|
declare module '@tiptap/core' {
|
|
916
902
|
interface Commands<ReturnType> {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
903
|
+
mermaid: {
|
|
904
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
905
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
declare module '@tiptap/core' {
|
|
912
|
+
interface Commands<ReturnType> {
|
|
913
|
+
attachment: {
|
|
914
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
declare module '@tiptap/core' {
|
|
921
|
+
interface Commands<ReturnType> {
|
|
922
|
+
excalidraw: {
|
|
923
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
925
924
|
};
|
|
926
925
|
}
|
|
927
926
|
}
|
|
@@ -939,9 +938,14 @@ declare module '@tiptap/core' {
|
|
|
939
938
|
|
|
940
939
|
declare module '@tiptap/core' {
|
|
941
940
|
interface Commands<ReturnType> {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
941
|
+
twitter: {
|
|
942
|
+
/**
|
|
943
|
+
* Insert a tweet
|
|
944
|
+
* @param options The tweet attributes
|
|
945
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
946
|
+
*/
|
|
947
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
948
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
945
949
|
};
|
|
946
950
|
}
|
|
947
951
|
}
|