reactjs-tiptap-editor-pro 0.2.37 → 0.2.39
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/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +95 -95
- package/lib/extension-bundle.d.ts +95 -95
- package/lib/extension-bundle.js +7 -6
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +95 -95
- package/lib/index.d.ts +95 -95
- package/lib/index.js +65 -64
- package/lib/locale-bundle.d.cts +95 -95
- package/lib/locale-bundle.d.ts +95 -95
- package/package.json +1 -1
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -902,19 +902,17 @@ declare module '@tiptap/core' {
|
|
|
902
902
|
|
|
903
903
|
declare module '@tiptap/core' {
|
|
904
904
|
interface Commands<ReturnType> {
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* Add an image
|
|
908
|
-
*/
|
|
909
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
905
|
+
fontSize: {
|
|
910
906
|
/**
|
|
911
|
-
*
|
|
907
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
908
|
+
* CSS font-size
|
|
909
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
912
910
|
*/
|
|
913
|
-
|
|
911
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
914
912
|
/**
|
|
915
|
-
*
|
|
913
|
+
* Unset the font size
|
|
916
914
|
*/
|
|
917
|
-
|
|
915
|
+
unsetFontSize: () => ReturnType;
|
|
918
916
|
};
|
|
919
917
|
}
|
|
920
918
|
}
|
|
@@ -922,14 +920,9 @@ declare module '@tiptap/core' {
|
|
|
922
920
|
|
|
923
921
|
declare module '@tiptap/core' {
|
|
924
922
|
interface Commands<ReturnType> {
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
*/
|
|
929
|
-
setIframe: (options: {
|
|
930
|
-
src: string;
|
|
931
|
-
service: string;
|
|
932
|
-
}) => ReturnType;
|
|
923
|
+
tableCellBackground: {
|
|
924
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
925
|
+
unsetTableCellBackground: () => ReturnType;
|
|
933
926
|
};
|
|
934
927
|
}
|
|
935
928
|
}
|
|
@@ -937,15 +930,14 @@ declare module '@tiptap/core' {
|
|
|
937
930
|
|
|
938
931
|
declare module '@tiptap/core' {
|
|
939
932
|
interface Commands<ReturnType> {
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* Set the indent attribute
|
|
943
|
-
*/
|
|
944
|
-
indent: () => ReturnType;
|
|
933
|
+
iframe: {
|
|
945
934
|
/**
|
|
946
|
-
*
|
|
935
|
+
* Add an iframe
|
|
947
936
|
*/
|
|
948
|
-
|
|
937
|
+
setIframe: (options: {
|
|
938
|
+
src: string;
|
|
939
|
+
service: string;
|
|
940
|
+
}) => ReturnType;
|
|
949
941
|
};
|
|
950
942
|
}
|
|
951
943
|
}
|
|
@@ -953,9 +945,8 @@ declare module '@tiptap/core' {
|
|
|
953
945
|
|
|
954
946
|
declare module '@tiptap/core' {
|
|
955
947
|
interface Commands<ReturnType> {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
unsetLineHeight: () => ReturnType;
|
|
948
|
+
painter: {
|
|
949
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
959
950
|
};
|
|
960
951
|
}
|
|
961
952
|
}
|
|
@@ -963,11 +954,14 @@ declare module '@tiptap/core' {
|
|
|
963
954
|
|
|
964
955
|
declare module '@tiptap/core' {
|
|
965
956
|
interface Commands<ReturnType> {
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
957
|
+
search: {
|
|
958
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
959
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
960
|
+
replace: () => ReturnType;
|
|
961
|
+
replaceAll: () => ReturnType;
|
|
962
|
+
goToPrevSearchResult: () => void;
|
|
963
|
+
goToNextSearchResult: () => void;
|
|
964
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
971
965
|
};
|
|
972
966
|
}
|
|
973
967
|
}
|
|
@@ -975,17 +969,9 @@ declare module '@tiptap/core' {
|
|
|
975
969
|
|
|
976
970
|
declare module '@tiptap/core' {
|
|
977
971
|
interface Commands<ReturnType> {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
* CSS font-size
|
|
982
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
983
|
-
*/
|
|
984
|
-
setFontSize: (fontSize: string) => ReturnType;
|
|
985
|
-
/**
|
|
986
|
-
* Unset the font size
|
|
987
|
-
*/
|
|
988
|
-
unsetFontSize: () => ReturnType;
|
|
972
|
+
lineHeight: {
|
|
973
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
974
|
+
unsetLineHeight: () => ReturnType;
|
|
989
975
|
};
|
|
990
976
|
}
|
|
991
977
|
}
|
|
@@ -993,9 +979,11 @@ declare module '@tiptap/core' {
|
|
|
993
979
|
|
|
994
980
|
declare module '@tiptap/core' {
|
|
995
981
|
interface Commands<ReturnType> {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
982
|
+
emoji: {
|
|
983
|
+
setEmoji: (emoji: {
|
|
984
|
+
name: string;
|
|
985
|
+
emoji: string;
|
|
986
|
+
}) => ReturnType;
|
|
999
987
|
};
|
|
1000
988
|
}
|
|
1001
989
|
}
|
|
@@ -1003,9 +991,8 @@ declare module '@tiptap/core' {
|
|
|
1003
991
|
|
|
1004
992
|
declare module '@tiptap/core' {
|
|
1005
993
|
interface Commands<ReturnType> {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
removeTableOfContents: () => ReturnType;
|
|
994
|
+
katex: {
|
|
995
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1009
996
|
};
|
|
1010
997
|
}
|
|
1011
998
|
}
|
|
@@ -1013,8 +1000,19 @@ declare module '@tiptap/core' {
|
|
|
1013
1000
|
|
|
1014
1001
|
declare module '@tiptap/core' {
|
|
1015
1002
|
interface Commands<ReturnType> {
|
|
1016
|
-
|
|
1017
|
-
|
|
1003
|
+
imageUpload: {
|
|
1004
|
+
/**
|
|
1005
|
+
* Add an image
|
|
1006
|
+
*/
|
|
1007
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1008
|
+
/**
|
|
1009
|
+
* Update an image
|
|
1010
|
+
*/
|
|
1011
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1012
|
+
/**
|
|
1013
|
+
* Set image alignment
|
|
1014
|
+
*/
|
|
1015
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1018
1016
|
};
|
|
1019
1017
|
}
|
|
1020
1018
|
}
|
|
@@ -1022,8 +1020,13 @@ declare module '@tiptap/core' {
|
|
|
1022
1020
|
|
|
1023
1021
|
declare module '@tiptap/core' {
|
|
1024
1022
|
interface Commands<ReturnType> {
|
|
1025
|
-
|
|
1026
|
-
|
|
1023
|
+
columns: {
|
|
1024
|
+
insertColumns: (attrs?: {
|
|
1025
|
+
cols: number;
|
|
1026
|
+
}) => ReturnType;
|
|
1027
|
+
addColBefore: () => ReturnType;
|
|
1028
|
+
addColAfter: () => ReturnType;
|
|
1029
|
+
deleteCol: () => ReturnType;
|
|
1027
1030
|
};
|
|
1028
1031
|
}
|
|
1029
1032
|
}
|
|
@@ -1031,14 +1034,15 @@ declare module '@tiptap/core' {
|
|
|
1031
1034
|
|
|
1032
1035
|
declare module '@tiptap/core' {
|
|
1033
1036
|
interface Commands<ReturnType> {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1037
|
+
indent: {
|
|
1038
|
+
/**
|
|
1039
|
+
* Set the indent attribute
|
|
1040
|
+
*/
|
|
1041
|
+
indent: () => ReturnType;
|
|
1042
|
+
/**
|
|
1043
|
+
* Set the outdent attribute
|
|
1044
|
+
*/
|
|
1045
|
+
outdent: () => ReturnType;
|
|
1042
1046
|
};
|
|
1043
1047
|
}
|
|
1044
1048
|
}
|
|
@@ -1046,13 +1050,19 @@ declare module '@tiptap/core' {
|
|
|
1046
1050
|
|
|
1047
1051
|
declare module '@tiptap/core' {
|
|
1048
1052
|
interface Commands<ReturnType> {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1053
|
+
imageGifUpload: {
|
|
1054
|
+
/**
|
|
1055
|
+
* Add an image gif
|
|
1056
|
+
*/
|
|
1057
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1058
|
+
/**
|
|
1059
|
+
* Update an image gif
|
|
1060
|
+
*/
|
|
1061
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1062
|
+
/**
|
|
1063
|
+
* Set image alignment
|
|
1064
|
+
*/
|
|
1065
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1056
1066
|
};
|
|
1057
1067
|
}
|
|
1058
1068
|
}
|
|
@@ -1060,8 +1070,9 @@ declare module '@tiptap/core' {
|
|
|
1060
1070
|
|
|
1061
1071
|
declare module '@tiptap/core' {
|
|
1062
1072
|
interface Commands<ReturnType> {
|
|
1063
|
-
|
|
1064
|
-
|
|
1073
|
+
drawer: {
|
|
1074
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1075
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1065
1076
|
};
|
|
1066
1077
|
}
|
|
1067
1078
|
}
|
|
@@ -1069,9 +1080,9 @@ declare module '@tiptap/core' {
|
|
|
1069
1080
|
|
|
1070
1081
|
declare module '@tiptap/core' {
|
|
1071
1082
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1083
|
+
tableOfContents: {
|
|
1084
|
+
setTableOfContents: () => ReturnType;
|
|
1085
|
+
removeTableOfContents: () => ReturnType;
|
|
1075
1086
|
};
|
|
1076
1087
|
}
|
|
1077
1088
|
}
|
|
@@ -1088,19 +1099,14 @@ declare module '@tiptap/core' {
|
|
|
1088
1099
|
|
|
1089
1100
|
declare module '@tiptap/core' {
|
|
1090
1101
|
interface Commands<ReturnType> {
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* Add an image gif
|
|
1094
|
-
*/
|
|
1095
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1096
|
-
/**
|
|
1097
|
-
* Update an image gif
|
|
1098
|
-
*/
|
|
1099
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1102
|
+
twitter: {
|
|
1100
1103
|
/**
|
|
1101
|
-
*
|
|
1104
|
+
* Insert a tweet
|
|
1105
|
+
* @param options The tweet attributes
|
|
1106
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1102
1107
|
*/
|
|
1103
|
-
|
|
1108
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1109
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1104
1110
|
};
|
|
1105
1111
|
}
|
|
1106
1112
|
}
|
|
@@ -1108,14 +1114,9 @@ declare module '@tiptap/core' {
|
|
|
1108
1114
|
|
|
1109
1115
|
declare module '@tiptap/core' {
|
|
1110
1116
|
interface Commands<ReturnType> {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
* @param options The tweet attributes
|
|
1115
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1116
|
-
*/
|
|
1117
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1118
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1117
|
+
mermaid: {
|
|
1118
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1119
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1119
1120
|
};
|
|
1120
1121
|
}
|
|
1121
1122
|
}
|
|
@@ -1123,9 +1124,8 @@ declare module '@tiptap/core' {
|
|
|
1123
1124
|
|
|
1124
1125
|
declare module '@tiptap/core' {
|
|
1125
1126
|
interface Commands<ReturnType> {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1127
|
+
exportWord: {
|
|
1128
|
+
exportToWord: () => ReturnType;
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -902,19 +902,17 @@ declare module '@tiptap/core' {
|
|
|
902
902
|
|
|
903
903
|
declare module '@tiptap/core' {
|
|
904
904
|
interface Commands<ReturnType> {
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* Add an image
|
|
908
|
-
*/
|
|
909
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
905
|
+
fontSize: {
|
|
910
906
|
/**
|
|
911
|
-
*
|
|
907
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
908
|
+
* CSS font-size
|
|
909
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
912
910
|
*/
|
|
913
|
-
|
|
911
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
914
912
|
/**
|
|
915
|
-
*
|
|
913
|
+
* Unset the font size
|
|
916
914
|
*/
|
|
917
|
-
|
|
915
|
+
unsetFontSize: () => ReturnType;
|
|
918
916
|
};
|
|
919
917
|
}
|
|
920
918
|
}
|
|
@@ -922,14 +920,9 @@ declare module '@tiptap/core' {
|
|
|
922
920
|
|
|
923
921
|
declare module '@tiptap/core' {
|
|
924
922
|
interface Commands<ReturnType> {
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
*/
|
|
929
|
-
setIframe: (options: {
|
|
930
|
-
src: string;
|
|
931
|
-
service: string;
|
|
932
|
-
}) => ReturnType;
|
|
923
|
+
tableCellBackground: {
|
|
924
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
925
|
+
unsetTableCellBackground: () => ReturnType;
|
|
933
926
|
};
|
|
934
927
|
}
|
|
935
928
|
}
|
|
@@ -937,15 +930,14 @@ declare module '@tiptap/core' {
|
|
|
937
930
|
|
|
938
931
|
declare module '@tiptap/core' {
|
|
939
932
|
interface Commands<ReturnType> {
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* Set the indent attribute
|
|
943
|
-
*/
|
|
944
|
-
indent: () => ReturnType;
|
|
933
|
+
iframe: {
|
|
945
934
|
/**
|
|
946
|
-
*
|
|
935
|
+
* Add an iframe
|
|
947
936
|
*/
|
|
948
|
-
|
|
937
|
+
setIframe: (options: {
|
|
938
|
+
src: string;
|
|
939
|
+
service: string;
|
|
940
|
+
}) => ReturnType;
|
|
949
941
|
};
|
|
950
942
|
}
|
|
951
943
|
}
|
|
@@ -953,9 +945,8 @@ declare module '@tiptap/core' {
|
|
|
953
945
|
|
|
954
946
|
declare module '@tiptap/core' {
|
|
955
947
|
interface Commands<ReturnType> {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
unsetLineHeight: () => ReturnType;
|
|
948
|
+
painter: {
|
|
949
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
959
950
|
};
|
|
960
951
|
}
|
|
961
952
|
}
|
|
@@ -963,11 +954,14 @@ declare module '@tiptap/core' {
|
|
|
963
954
|
|
|
964
955
|
declare module '@tiptap/core' {
|
|
965
956
|
interface Commands<ReturnType> {
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
957
|
+
search: {
|
|
958
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
959
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
960
|
+
replace: () => ReturnType;
|
|
961
|
+
replaceAll: () => ReturnType;
|
|
962
|
+
goToPrevSearchResult: () => void;
|
|
963
|
+
goToNextSearchResult: () => void;
|
|
964
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
971
965
|
};
|
|
972
966
|
}
|
|
973
967
|
}
|
|
@@ -975,17 +969,9 @@ declare module '@tiptap/core' {
|
|
|
975
969
|
|
|
976
970
|
declare module '@tiptap/core' {
|
|
977
971
|
interface Commands<ReturnType> {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
* CSS font-size
|
|
982
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
983
|
-
*/
|
|
984
|
-
setFontSize: (fontSize: string) => ReturnType;
|
|
985
|
-
/**
|
|
986
|
-
* Unset the font size
|
|
987
|
-
*/
|
|
988
|
-
unsetFontSize: () => ReturnType;
|
|
972
|
+
lineHeight: {
|
|
973
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
974
|
+
unsetLineHeight: () => ReturnType;
|
|
989
975
|
};
|
|
990
976
|
}
|
|
991
977
|
}
|
|
@@ -993,9 +979,11 @@ declare module '@tiptap/core' {
|
|
|
993
979
|
|
|
994
980
|
declare module '@tiptap/core' {
|
|
995
981
|
interface Commands<ReturnType> {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
982
|
+
emoji: {
|
|
983
|
+
setEmoji: (emoji: {
|
|
984
|
+
name: string;
|
|
985
|
+
emoji: string;
|
|
986
|
+
}) => ReturnType;
|
|
999
987
|
};
|
|
1000
988
|
}
|
|
1001
989
|
}
|
|
@@ -1003,9 +991,8 @@ declare module '@tiptap/core' {
|
|
|
1003
991
|
|
|
1004
992
|
declare module '@tiptap/core' {
|
|
1005
993
|
interface Commands<ReturnType> {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
removeTableOfContents: () => ReturnType;
|
|
994
|
+
katex: {
|
|
995
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1009
996
|
};
|
|
1010
997
|
}
|
|
1011
998
|
}
|
|
@@ -1013,8 +1000,19 @@ declare module '@tiptap/core' {
|
|
|
1013
1000
|
|
|
1014
1001
|
declare module '@tiptap/core' {
|
|
1015
1002
|
interface Commands<ReturnType> {
|
|
1016
|
-
|
|
1017
|
-
|
|
1003
|
+
imageUpload: {
|
|
1004
|
+
/**
|
|
1005
|
+
* Add an image
|
|
1006
|
+
*/
|
|
1007
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1008
|
+
/**
|
|
1009
|
+
* Update an image
|
|
1010
|
+
*/
|
|
1011
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1012
|
+
/**
|
|
1013
|
+
* Set image alignment
|
|
1014
|
+
*/
|
|
1015
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1018
1016
|
};
|
|
1019
1017
|
}
|
|
1020
1018
|
}
|
|
@@ -1022,8 +1020,13 @@ declare module '@tiptap/core' {
|
|
|
1022
1020
|
|
|
1023
1021
|
declare module '@tiptap/core' {
|
|
1024
1022
|
interface Commands<ReturnType> {
|
|
1025
|
-
|
|
1026
|
-
|
|
1023
|
+
columns: {
|
|
1024
|
+
insertColumns: (attrs?: {
|
|
1025
|
+
cols: number;
|
|
1026
|
+
}) => ReturnType;
|
|
1027
|
+
addColBefore: () => ReturnType;
|
|
1028
|
+
addColAfter: () => ReturnType;
|
|
1029
|
+
deleteCol: () => ReturnType;
|
|
1027
1030
|
};
|
|
1028
1031
|
}
|
|
1029
1032
|
}
|
|
@@ -1031,14 +1034,15 @@ declare module '@tiptap/core' {
|
|
|
1031
1034
|
|
|
1032
1035
|
declare module '@tiptap/core' {
|
|
1033
1036
|
interface Commands<ReturnType> {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1037
|
+
indent: {
|
|
1038
|
+
/**
|
|
1039
|
+
* Set the indent attribute
|
|
1040
|
+
*/
|
|
1041
|
+
indent: () => ReturnType;
|
|
1042
|
+
/**
|
|
1043
|
+
* Set the outdent attribute
|
|
1044
|
+
*/
|
|
1045
|
+
outdent: () => ReturnType;
|
|
1042
1046
|
};
|
|
1043
1047
|
}
|
|
1044
1048
|
}
|
|
@@ -1046,13 +1050,19 @@ declare module '@tiptap/core' {
|
|
|
1046
1050
|
|
|
1047
1051
|
declare module '@tiptap/core' {
|
|
1048
1052
|
interface Commands<ReturnType> {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1053
|
+
imageGifUpload: {
|
|
1054
|
+
/**
|
|
1055
|
+
* Add an image gif
|
|
1056
|
+
*/
|
|
1057
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1058
|
+
/**
|
|
1059
|
+
* Update an image gif
|
|
1060
|
+
*/
|
|
1061
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1062
|
+
/**
|
|
1063
|
+
* Set image alignment
|
|
1064
|
+
*/
|
|
1065
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1056
1066
|
};
|
|
1057
1067
|
}
|
|
1058
1068
|
}
|
|
@@ -1060,8 +1070,9 @@ declare module '@tiptap/core' {
|
|
|
1060
1070
|
|
|
1061
1071
|
declare module '@tiptap/core' {
|
|
1062
1072
|
interface Commands<ReturnType> {
|
|
1063
|
-
|
|
1064
|
-
|
|
1073
|
+
drawer: {
|
|
1074
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1075
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1065
1076
|
};
|
|
1066
1077
|
}
|
|
1067
1078
|
}
|
|
@@ -1069,9 +1080,9 @@ declare module '@tiptap/core' {
|
|
|
1069
1080
|
|
|
1070
1081
|
declare module '@tiptap/core' {
|
|
1071
1082
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1083
|
+
tableOfContents: {
|
|
1084
|
+
setTableOfContents: () => ReturnType;
|
|
1085
|
+
removeTableOfContents: () => ReturnType;
|
|
1075
1086
|
};
|
|
1076
1087
|
}
|
|
1077
1088
|
}
|
|
@@ -1088,19 +1099,14 @@ declare module '@tiptap/core' {
|
|
|
1088
1099
|
|
|
1089
1100
|
declare module '@tiptap/core' {
|
|
1090
1101
|
interface Commands<ReturnType> {
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* Add an image gif
|
|
1094
|
-
*/
|
|
1095
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1096
|
-
/**
|
|
1097
|
-
* Update an image gif
|
|
1098
|
-
*/
|
|
1099
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1102
|
+
twitter: {
|
|
1100
1103
|
/**
|
|
1101
|
-
*
|
|
1104
|
+
* Insert a tweet
|
|
1105
|
+
* @param options The tweet attributes
|
|
1106
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1102
1107
|
*/
|
|
1103
|
-
|
|
1108
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1109
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1104
1110
|
};
|
|
1105
1111
|
}
|
|
1106
1112
|
}
|
|
@@ -1108,14 +1114,9 @@ declare module '@tiptap/core' {
|
|
|
1108
1114
|
|
|
1109
1115
|
declare module '@tiptap/core' {
|
|
1110
1116
|
interface Commands<ReturnType> {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
* @param options The tweet attributes
|
|
1115
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1116
|
-
*/
|
|
1117
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1118
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1117
|
+
mermaid: {
|
|
1118
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1119
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1119
1120
|
};
|
|
1120
1121
|
}
|
|
1121
1122
|
}
|
|
@@ -1123,9 +1124,8 @@ declare module '@tiptap/core' {
|
|
|
1123
1124
|
|
|
1124
1125
|
declare module '@tiptap/core' {
|
|
1125
1126
|
interface Commands<ReturnType> {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1127
|
+
exportWord: {
|
|
1128
|
+
exportToWord: () => ReturnType;
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
package/package.json
CHANGED