reactjs-tiptap-editor-pro 0.2.40 → 0.2.42
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/{ColorPicker-DXWTenTy.js → ColorPicker-B3iXkFey.js} +2 -1
- package/lib/{ColorPicker-CvEUnlMl.cjs → ColorPicker-B_4Rh4wg.cjs} +1 -1
- package/lib/extension-bundle.cjs +16 -16
- package/lib/extension-bundle.d.cts +76 -76
- package/lib/extension-bundle.d.ts +76 -76
- package/lib/extension-bundle.js +518 -532
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +76 -76
- package/lib/index.d.ts +76 -76
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +76 -76
- package/lib/locale-bundle.d.ts +76 -76
- package/package.json +1 -1
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -920,15 +920,29 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
declare module '@tiptap/core' {
|
|
932
|
+
interface Commands<ReturnType> {
|
|
933
|
+
imageUpload: {
|
|
924
934
|
/**
|
|
925
|
-
*
|
|
935
|
+
* Add an image
|
|
926
936
|
*/
|
|
927
|
-
|
|
937
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
928
938
|
/**
|
|
929
|
-
*
|
|
939
|
+
* Update an image
|
|
930
940
|
*/
|
|
931
|
-
|
|
941
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
942
|
+
/**
|
|
943
|
+
* Set image alignment
|
|
944
|
+
*/
|
|
945
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
932
946
|
};
|
|
933
947
|
}
|
|
934
948
|
}
|
|
@@ -936,9 +950,9 @@ declare module '@tiptap/core' {
|
|
|
936
950
|
|
|
937
951
|
declare module '@tiptap/core' {
|
|
938
952
|
interface Commands<ReturnType> {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
953
|
+
tableOfContents: {
|
|
954
|
+
setTableOfContents: () => ReturnType;
|
|
955
|
+
removeTableOfContents: () => ReturnType;
|
|
942
956
|
};
|
|
943
957
|
}
|
|
944
958
|
}
|
|
@@ -946,9 +960,15 @@ declare module '@tiptap/core' {
|
|
|
946
960
|
|
|
947
961
|
declare module '@tiptap/core' {
|
|
948
962
|
interface Commands<ReturnType> {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
963
|
+
indent: {
|
|
964
|
+
/**
|
|
965
|
+
* Set the indent attribute
|
|
966
|
+
*/
|
|
967
|
+
indent: () => ReturnType;
|
|
968
|
+
/**
|
|
969
|
+
* Set the outdent attribute
|
|
970
|
+
*/
|
|
971
|
+
outdent: () => ReturnType;
|
|
952
972
|
};
|
|
953
973
|
}
|
|
954
974
|
}
|
|
@@ -956,14 +976,8 @@ declare module '@tiptap/core' {
|
|
|
956
976
|
|
|
957
977
|
declare module '@tiptap/core' {
|
|
958
978
|
interface Commands<ReturnType> {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
962
|
-
replace: () => ReturnType;
|
|
963
|
-
replaceAll: () => ReturnType;
|
|
964
|
-
goToPrevSearchResult: () => void;
|
|
965
|
-
goToNextSearchResult: () => void;
|
|
966
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
979
|
+
exportWord: {
|
|
980
|
+
exportToWord: () => ReturnType;
|
|
967
981
|
};
|
|
968
982
|
}
|
|
969
983
|
}
|
|
@@ -971,8 +985,13 @@ declare module '@tiptap/core' {
|
|
|
971
985
|
|
|
972
986
|
declare module '@tiptap/core' {
|
|
973
987
|
interface Commands<ReturnType> {
|
|
974
|
-
|
|
975
|
-
|
|
988
|
+
columns: {
|
|
989
|
+
insertColumns: (attrs?: {
|
|
990
|
+
cols: number;
|
|
991
|
+
}) => ReturnType;
|
|
992
|
+
addColBefore: () => ReturnType;
|
|
993
|
+
addColAfter: () => ReturnType;
|
|
994
|
+
deleteCol: () => ReturnType;
|
|
976
995
|
};
|
|
977
996
|
}
|
|
978
997
|
}
|
|
@@ -980,19 +999,8 @@ declare module '@tiptap/core' {
|
|
|
980
999
|
|
|
981
1000
|
declare module '@tiptap/core' {
|
|
982
1001
|
interface Commands<ReturnType> {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
* Add an image
|
|
986
|
-
*/
|
|
987
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
988
|
-
/**
|
|
989
|
-
* Update an image
|
|
990
|
-
*/
|
|
991
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
992
|
-
/**
|
|
993
|
-
* Set image alignment
|
|
994
|
-
*/
|
|
995
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1002
|
+
katex: {
|
|
1003
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
996
1004
|
};
|
|
997
1005
|
}
|
|
998
1006
|
}
|
|
@@ -1000,11 +1008,8 @@ declare module '@tiptap/core' {
|
|
|
1000
1008
|
|
|
1001
1009
|
declare module '@tiptap/core' {
|
|
1002
1010
|
interface Commands<ReturnType> {
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
name: string;
|
|
1006
|
-
emoji: string;
|
|
1007
|
-
}) => ReturnType;
|
|
1011
|
+
painter: {
|
|
1012
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1008
1013
|
};
|
|
1009
1014
|
}
|
|
1010
1015
|
}
|
|
@@ -1012,13 +1017,10 @@ declare module '@tiptap/core' {
|
|
|
1012
1017
|
|
|
1013
1018
|
declare module '@tiptap/core' {
|
|
1014
1019
|
interface Commands<ReturnType> {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
setIframe: (options: {
|
|
1020
|
-
src: string;
|
|
1021
|
-
service: string;
|
|
1020
|
+
emoji: {
|
|
1021
|
+
setEmoji: (emoji: {
|
|
1022
|
+
name: string;
|
|
1023
|
+
emoji: string;
|
|
1022
1024
|
}) => ReturnType;
|
|
1023
1025
|
};
|
|
1024
1026
|
}
|
|
@@ -1027,9 +1029,14 @@ declare module '@tiptap/core' {
|
|
|
1027
1029
|
|
|
1028
1030
|
declare module '@tiptap/core' {
|
|
1029
1031
|
interface Commands<ReturnType> {
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1032
|
+
search: {
|
|
1033
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1034
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1035
|
+
replace: () => ReturnType;
|
|
1036
|
+
replaceAll: () => ReturnType;
|
|
1037
|
+
goToPrevSearchResult: () => void;
|
|
1038
|
+
goToNextSearchResult: () => void;
|
|
1039
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1033
1040
|
};
|
|
1034
1041
|
}
|
|
1035
1042
|
}
|
|
@@ -1037,13 +1044,14 @@ declare module '@tiptap/core' {
|
|
|
1037
1044
|
|
|
1038
1045
|
declare module '@tiptap/core' {
|
|
1039
1046
|
interface Commands<ReturnType> {
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1047
|
+
iframe: {
|
|
1048
|
+
/**
|
|
1049
|
+
* Add an iframe
|
|
1050
|
+
*/
|
|
1051
|
+
setIframe: (options: {
|
|
1052
|
+
src: string;
|
|
1053
|
+
service: string;
|
|
1043
1054
|
}) => ReturnType;
|
|
1044
|
-
addColBefore: () => ReturnType;
|
|
1045
|
-
addColAfter: () => ReturnType;
|
|
1046
|
-
deleteCol: () => ReturnType;
|
|
1047
1055
|
};
|
|
1048
1056
|
}
|
|
1049
1057
|
}
|
|
@@ -1051,8 +1059,9 @@ declare module '@tiptap/core' {
|
|
|
1051
1059
|
|
|
1052
1060
|
declare module '@tiptap/core' {
|
|
1053
1061
|
interface Commands<ReturnType> {
|
|
1054
|
-
|
|
1055
|
-
|
|
1062
|
+
tableCellBackground: {
|
|
1063
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1064
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1056
1065
|
};
|
|
1057
1066
|
}
|
|
1058
1067
|
}
|
|
@@ -1060,8 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1060
1069
|
|
|
1061
1070
|
declare module '@tiptap/core' {
|
|
1062
1071
|
interface Commands<ReturnType> {
|
|
1063
|
-
|
|
1064
|
-
|
|
1072
|
+
attachment: {
|
|
1073
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1065
1074
|
};
|
|
1066
1075
|
}
|
|
1067
1076
|
}
|
|
@@ -1087,21 +1096,6 @@ declare module '@tiptap/core' {
|
|
|
1087
1096
|
}
|
|
1088
1097
|
|
|
1089
1098
|
|
|
1090
|
-
declare module '@tiptap/core' {
|
|
1091
|
-
interface Commands<ReturnType> {
|
|
1092
|
-
twitter: {
|
|
1093
|
-
/**
|
|
1094
|
-
* Insert a tweet
|
|
1095
|
-
* @param options The tweet attributes
|
|
1096
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1097
|
-
*/
|
|
1098
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1099
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1100
|
-
};
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
1099
|
declare module '@tiptap/core' {
|
|
1106
1100
|
interface Commands<ReturnType> {
|
|
1107
1101
|
mermaid: {
|
|
@@ -1114,8 +1108,14 @@ declare module '@tiptap/core' {
|
|
|
1114
1108
|
|
|
1115
1109
|
declare module '@tiptap/core' {
|
|
1116
1110
|
interface Commands<ReturnType> {
|
|
1117
|
-
|
|
1118
|
-
|
|
1111
|
+
twitter: {
|
|
1112
|
+
/**
|
|
1113
|
+
* Insert a tweet
|
|
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;
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
package/package.json
CHANGED