reactjs-tiptap-editor-pro 0.2.41 → 0.2.43
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 +16 -16
- package/lib/extension-bundle.d.cts +71 -71
- package/lib/extension-bundle.d.ts +71 -71
- package/lib/extension-bundle.js +517 -531
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +72 -71
- package/lib/index.d.ts +72 -71
- package/lib/index.js +236 -249
- package/lib/locale-bundle.d.cts +71 -71
- package/lib/locale-bundle.d.ts +71 -71
- package/package.json +1 -1
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -920,39 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
*/
|
|
927
|
-
indent: () => ReturnType;
|
|
928
|
-
/**
|
|
929
|
-
* Set the outdent attribute
|
|
930
|
-
*/
|
|
931
|
-
outdent: () => ReturnType;
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
declare module '@tiptap/core' {
|
|
938
|
-
interface Commands<ReturnType> {
|
|
939
|
-
iframe: {
|
|
940
|
-
/**
|
|
941
|
-
* Add an iframe
|
|
942
|
-
*/
|
|
943
|
-
setIframe: (options: {
|
|
944
|
-
src: string;
|
|
945
|
-
service: string;
|
|
946
|
-
}) => ReturnType;
|
|
947
|
-
};
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
declare module '@tiptap/core' {
|
|
953
|
-
interface Commands<ReturnType> {
|
|
954
|
-
painter: {
|
|
955
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
956
926
|
};
|
|
957
927
|
}
|
|
958
928
|
}
|
|
@@ -980,9 +950,9 @@ declare module '@tiptap/core' {
|
|
|
980
950
|
|
|
981
951
|
declare module '@tiptap/core' {
|
|
982
952
|
interface Commands<ReturnType> {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
953
|
+
tableCellBackground: {
|
|
954
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
955
|
+
unsetTableCellBackground: () => ReturnType;
|
|
986
956
|
};
|
|
987
957
|
}
|
|
988
958
|
}
|
|
@@ -1002,13 +972,8 @@ declare module '@tiptap/core' {
|
|
|
1002
972
|
|
|
1003
973
|
declare module '@tiptap/core' {
|
|
1004
974
|
interface Commands<ReturnType> {
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
cols: number;
|
|
1008
|
-
}) => ReturnType;
|
|
1009
|
-
addColBefore: () => ReturnType;
|
|
1010
|
-
addColAfter: () => ReturnType;
|
|
1011
|
-
deleteCol: () => ReturnType;
|
|
975
|
+
katex: {
|
|
976
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1012
977
|
};
|
|
1013
978
|
}
|
|
1014
979
|
}
|
|
@@ -1016,9 +981,13 @@ declare module '@tiptap/core' {
|
|
|
1016
981
|
|
|
1017
982
|
declare module '@tiptap/core' {
|
|
1018
983
|
interface Commands<ReturnType> {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
984
|
+
columns: {
|
|
985
|
+
insertColumns: (attrs?: {
|
|
986
|
+
cols: number;
|
|
987
|
+
}) => ReturnType;
|
|
988
|
+
addColBefore: () => ReturnType;
|
|
989
|
+
addColAfter: () => ReturnType;
|
|
990
|
+
deleteCol: () => ReturnType;
|
|
1022
991
|
};
|
|
1023
992
|
}
|
|
1024
993
|
}
|
|
@@ -1041,8 +1010,15 @@ declare module '@tiptap/core' {
|
|
|
1041
1010
|
|
|
1042
1011
|
declare module '@tiptap/core' {
|
|
1043
1012
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1013
|
+
indent: {
|
|
1014
|
+
/**
|
|
1015
|
+
* Set the indent attribute
|
|
1016
|
+
*/
|
|
1017
|
+
indent: () => ReturnType;
|
|
1018
|
+
/**
|
|
1019
|
+
* Set the outdent attribute
|
|
1020
|
+
*/
|
|
1021
|
+
outdent: () => ReturnType;
|
|
1046
1022
|
};
|
|
1047
1023
|
}
|
|
1048
1024
|
}
|
|
@@ -1050,8 +1026,8 @@ declare module '@tiptap/core' {
|
|
|
1050
1026
|
|
|
1051
1027
|
declare module '@tiptap/core' {
|
|
1052
1028
|
interface Commands<ReturnType> {
|
|
1053
|
-
|
|
1054
|
-
|
|
1029
|
+
painter: {
|
|
1030
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1055
1031
|
};
|
|
1056
1032
|
}
|
|
1057
1033
|
}
|
|
@@ -1059,9 +1035,14 @@ declare module '@tiptap/core' {
|
|
|
1059
1035
|
|
|
1060
1036
|
declare module '@tiptap/core' {
|
|
1061
1037
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1038
|
+
iframe: {
|
|
1039
|
+
/**
|
|
1040
|
+
* Add an iframe
|
|
1041
|
+
*/
|
|
1042
|
+
setIframe: (options: {
|
|
1043
|
+
src: string;
|
|
1044
|
+
service: string;
|
|
1045
|
+
}) => ReturnType;
|
|
1065
1046
|
};
|
|
1066
1047
|
}
|
|
1067
1048
|
}
|
|
@@ -1069,8 +1050,29 @@ declare module '@tiptap/core' {
|
|
|
1069
1050
|
|
|
1070
1051
|
declare module '@tiptap/core' {
|
|
1071
1052
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1053
|
+
drawer: {
|
|
1054
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1055
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
declare module '@tiptap/core' {
|
|
1062
|
+
interface Commands<ReturnType> {
|
|
1063
|
+
imageGifUpload: {
|
|
1064
|
+
/**
|
|
1065
|
+
* Add an image gif
|
|
1066
|
+
*/
|
|
1067
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1068
|
+
/**
|
|
1069
|
+
* Update an image gif
|
|
1070
|
+
*/
|
|
1071
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1072
|
+
/**
|
|
1073
|
+
* Set image alignment
|
|
1074
|
+
*/
|
|
1075
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1074
1076
|
};
|
|
1075
1077
|
}
|
|
1076
1078
|
}
|
|
@@ -1093,19 +1095,8 @@ declare module '@tiptap/core' {
|
|
|
1093
1095
|
|
|
1094
1096
|
declare module '@tiptap/core' {
|
|
1095
1097
|
interface Commands<ReturnType> {
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
* Add an image gif
|
|
1099
|
-
*/
|
|
1100
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1101
|
-
/**
|
|
1102
|
-
* Update an image gif
|
|
1103
|
-
*/
|
|
1104
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1105
|
-
/**
|
|
1106
|
-
* Set image alignment
|
|
1107
|
-
*/
|
|
1108
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1098
|
+
exportWord: {
|
|
1099
|
+
exportToWord: () => ReturnType;
|
|
1109
1100
|
};
|
|
1110
1101
|
}
|
|
1111
1102
|
}
|
|
@@ -1113,9 +1104,18 @@ declare module '@tiptap/core' {
|
|
|
1113
1104
|
|
|
1114
1105
|
declare module '@tiptap/core' {
|
|
1115
1106
|
interface Commands<ReturnType> {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1107
|
+
attachment: {
|
|
1108
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
declare module '@tiptap/core' {
|
|
1115
|
+
interface Commands<ReturnType> {
|
|
1116
|
+
tableOfContents: {
|
|
1117
|
+
setTableOfContents: () => ReturnType;
|
|
1118
|
+
removeTableOfContents: () => ReturnType;
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -920,39 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
*/
|
|
927
|
-
indent: () => ReturnType;
|
|
928
|
-
/**
|
|
929
|
-
* Set the outdent attribute
|
|
930
|
-
*/
|
|
931
|
-
outdent: () => ReturnType;
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
declare module '@tiptap/core' {
|
|
938
|
-
interface Commands<ReturnType> {
|
|
939
|
-
iframe: {
|
|
940
|
-
/**
|
|
941
|
-
* Add an iframe
|
|
942
|
-
*/
|
|
943
|
-
setIframe: (options: {
|
|
944
|
-
src: string;
|
|
945
|
-
service: string;
|
|
946
|
-
}) => ReturnType;
|
|
947
|
-
};
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
declare module '@tiptap/core' {
|
|
953
|
-
interface Commands<ReturnType> {
|
|
954
|
-
painter: {
|
|
955
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
956
926
|
};
|
|
957
927
|
}
|
|
958
928
|
}
|
|
@@ -980,9 +950,9 @@ declare module '@tiptap/core' {
|
|
|
980
950
|
|
|
981
951
|
declare module '@tiptap/core' {
|
|
982
952
|
interface Commands<ReturnType> {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
953
|
+
tableCellBackground: {
|
|
954
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
955
|
+
unsetTableCellBackground: () => ReturnType;
|
|
986
956
|
};
|
|
987
957
|
}
|
|
988
958
|
}
|
|
@@ -1002,13 +972,8 @@ declare module '@tiptap/core' {
|
|
|
1002
972
|
|
|
1003
973
|
declare module '@tiptap/core' {
|
|
1004
974
|
interface Commands<ReturnType> {
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
cols: number;
|
|
1008
|
-
}) => ReturnType;
|
|
1009
|
-
addColBefore: () => ReturnType;
|
|
1010
|
-
addColAfter: () => ReturnType;
|
|
1011
|
-
deleteCol: () => ReturnType;
|
|
975
|
+
katex: {
|
|
976
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1012
977
|
};
|
|
1013
978
|
}
|
|
1014
979
|
}
|
|
@@ -1016,9 +981,13 @@ declare module '@tiptap/core' {
|
|
|
1016
981
|
|
|
1017
982
|
declare module '@tiptap/core' {
|
|
1018
983
|
interface Commands<ReturnType> {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
984
|
+
columns: {
|
|
985
|
+
insertColumns: (attrs?: {
|
|
986
|
+
cols: number;
|
|
987
|
+
}) => ReturnType;
|
|
988
|
+
addColBefore: () => ReturnType;
|
|
989
|
+
addColAfter: () => ReturnType;
|
|
990
|
+
deleteCol: () => ReturnType;
|
|
1022
991
|
};
|
|
1023
992
|
}
|
|
1024
993
|
}
|
|
@@ -1041,8 +1010,15 @@ declare module '@tiptap/core' {
|
|
|
1041
1010
|
|
|
1042
1011
|
declare module '@tiptap/core' {
|
|
1043
1012
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1013
|
+
indent: {
|
|
1014
|
+
/**
|
|
1015
|
+
* Set the indent attribute
|
|
1016
|
+
*/
|
|
1017
|
+
indent: () => ReturnType;
|
|
1018
|
+
/**
|
|
1019
|
+
* Set the outdent attribute
|
|
1020
|
+
*/
|
|
1021
|
+
outdent: () => ReturnType;
|
|
1046
1022
|
};
|
|
1047
1023
|
}
|
|
1048
1024
|
}
|
|
@@ -1050,8 +1026,8 @@ declare module '@tiptap/core' {
|
|
|
1050
1026
|
|
|
1051
1027
|
declare module '@tiptap/core' {
|
|
1052
1028
|
interface Commands<ReturnType> {
|
|
1053
|
-
|
|
1054
|
-
|
|
1029
|
+
painter: {
|
|
1030
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1055
1031
|
};
|
|
1056
1032
|
}
|
|
1057
1033
|
}
|
|
@@ -1059,9 +1035,14 @@ declare module '@tiptap/core' {
|
|
|
1059
1035
|
|
|
1060
1036
|
declare module '@tiptap/core' {
|
|
1061
1037
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1038
|
+
iframe: {
|
|
1039
|
+
/**
|
|
1040
|
+
* Add an iframe
|
|
1041
|
+
*/
|
|
1042
|
+
setIframe: (options: {
|
|
1043
|
+
src: string;
|
|
1044
|
+
service: string;
|
|
1045
|
+
}) => ReturnType;
|
|
1065
1046
|
};
|
|
1066
1047
|
}
|
|
1067
1048
|
}
|
|
@@ -1069,8 +1050,29 @@ declare module '@tiptap/core' {
|
|
|
1069
1050
|
|
|
1070
1051
|
declare module '@tiptap/core' {
|
|
1071
1052
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1053
|
+
drawer: {
|
|
1054
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1055
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
declare module '@tiptap/core' {
|
|
1062
|
+
interface Commands<ReturnType> {
|
|
1063
|
+
imageGifUpload: {
|
|
1064
|
+
/**
|
|
1065
|
+
* Add an image gif
|
|
1066
|
+
*/
|
|
1067
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1068
|
+
/**
|
|
1069
|
+
* Update an image gif
|
|
1070
|
+
*/
|
|
1071
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1072
|
+
/**
|
|
1073
|
+
* Set image alignment
|
|
1074
|
+
*/
|
|
1075
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1074
1076
|
};
|
|
1075
1077
|
}
|
|
1076
1078
|
}
|
|
@@ -1093,19 +1095,8 @@ declare module '@tiptap/core' {
|
|
|
1093
1095
|
|
|
1094
1096
|
declare module '@tiptap/core' {
|
|
1095
1097
|
interface Commands<ReturnType> {
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
* Add an image gif
|
|
1099
|
-
*/
|
|
1100
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1101
|
-
/**
|
|
1102
|
-
* Update an image gif
|
|
1103
|
-
*/
|
|
1104
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1105
|
-
/**
|
|
1106
|
-
* Set image alignment
|
|
1107
|
-
*/
|
|
1108
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1098
|
+
exportWord: {
|
|
1099
|
+
exportToWord: () => ReturnType;
|
|
1109
1100
|
};
|
|
1110
1101
|
}
|
|
1111
1102
|
}
|
|
@@ -1113,9 +1104,18 @@ declare module '@tiptap/core' {
|
|
|
1113
1104
|
|
|
1114
1105
|
declare module '@tiptap/core' {
|
|
1115
1106
|
interface Commands<ReturnType> {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1107
|
+
attachment: {
|
|
1108
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
declare module '@tiptap/core' {
|
|
1115
|
+
interface Commands<ReturnType> {
|
|
1116
|
+
tableOfContents: {
|
|
1117
|
+
setTableOfContents: () => ReturnType;
|
|
1118
|
+
removeTableOfContents: () => ReturnType;
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
package/package.json
CHANGED