reactjs-tiptap-editor-pro 0.2.36 → 0.2.38
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.d.cts +66 -66
- package/lib/extension-bundle.d.ts +66 -66
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +69 -67
- package/lib/index.d.ts +69 -67
- package/lib/index.js +66 -64
- package/lib/locale-bundle.d.cts +66 -66
- package/lib/locale-bundle.d.ts +66 -66
- package/package.json +1 -1
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -920,24 +920,15 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
-
unsetLineHeight: () => ReturnType;
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
declare module '@tiptap/core' {
|
|
932
|
-
interface Commands<ReturnType> {
|
|
933
|
-
iframe: {
|
|
923
|
+
indent: {
|
|
934
924
|
/**
|
|
935
|
-
*
|
|
925
|
+
* Set the indent attribute
|
|
936
926
|
*/
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
927
|
+
indent: () => ReturnType;
|
|
928
|
+
/**
|
|
929
|
+
* Set the outdent attribute
|
|
930
|
+
*/
|
|
931
|
+
outdent: () => ReturnType;
|
|
941
932
|
};
|
|
942
933
|
}
|
|
943
934
|
}
|
|
@@ -945,9 +936,13 @@ declare module '@tiptap/core' {
|
|
|
945
936
|
|
|
946
937
|
declare module '@tiptap/core' {
|
|
947
938
|
interface Commands<ReturnType> {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
939
|
+
columns: {
|
|
940
|
+
insertColumns: (attrs?: {
|
|
941
|
+
cols: number;
|
|
942
|
+
}) => ReturnType;
|
|
943
|
+
addColBefore: () => ReturnType;
|
|
944
|
+
addColAfter: () => ReturnType;
|
|
945
|
+
deleteCol: () => ReturnType;
|
|
951
946
|
};
|
|
952
947
|
}
|
|
953
948
|
}
|
|
@@ -955,19 +950,9 @@ declare module '@tiptap/core' {
|
|
|
955
950
|
|
|
956
951
|
declare module '@tiptap/core' {
|
|
957
952
|
interface Commands<ReturnType> {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
*/
|
|
962
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
963
|
-
/**
|
|
964
|
-
* Update an image
|
|
965
|
-
*/
|
|
966
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
967
|
-
/**
|
|
968
|
-
* Set image alignment
|
|
969
|
-
*/
|
|
970
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
953
|
+
lineHeight: {
|
|
954
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
955
|
+
unsetLineHeight: () => ReturnType;
|
|
971
956
|
};
|
|
972
957
|
}
|
|
973
958
|
}
|
|
@@ -975,8 +960,8 @@ declare module '@tiptap/core' {
|
|
|
975
960
|
|
|
976
961
|
declare module '@tiptap/core' {
|
|
977
962
|
interface Commands<ReturnType> {
|
|
978
|
-
|
|
979
|
-
|
|
963
|
+
painter: {
|
|
964
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
980
965
|
};
|
|
981
966
|
}
|
|
982
967
|
}
|
|
@@ -984,13 +969,14 @@ declare module '@tiptap/core' {
|
|
|
984
969
|
|
|
985
970
|
declare module '@tiptap/core' {
|
|
986
971
|
interface Commands<ReturnType> {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
972
|
+
search: {
|
|
973
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
974
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
975
|
+
replace: () => ReturnType;
|
|
976
|
+
replaceAll: () => ReturnType;
|
|
977
|
+
goToPrevSearchResult: () => void;
|
|
978
|
+
goToNextSearchResult: () => void;
|
|
979
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
994
980
|
};
|
|
995
981
|
}
|
|
996
982
|
}
|
|
@@ -998,15 +984,19 @@ declare module '@tiptap/core' {
|
|
|
998
984
|
|
|
999
985
|
declare module '@tiptap/core' {
|
|
1000
986
|
interface Commands<ReturnType> {
|
|
1001
|
-
|
|
987
|
+
imageUpload: {
|
|
1002
988
|
/**
|
|
1003
|
-
*
|
|
989
|
+
* Add an image
|
|
1004
990
|
*/
|
|
1005
|
-
|
|
991
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1006
992
|
/**
|
|
1007
|
-
*
|
|
993
|
+
* Update an image
|
|
1008
994
|
*/
|
|
1009
|
-
|
|
995
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
996
|
+
/**
|
|
997
|
+
* Set image alignment
|
|
998
|
+
*/
|
|
999
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1010
1000
|
};
|
|
1011
1001
|
}
|
|
1012
1002
|
}
|
|
@@ -1014,8 +1004,14 @@ declare module '@tiptap/core' {
|
|
|
1014
1004
|
|
|
1015
1005
|
declare module '@tiptap/core' {
|
|
1016
1006
|
interface Commands<ReturnType> {
|
|
1017
|
-
|
|
1018
|
-
|
|
1007
|
+
iframe: {
|
|
1008
|
+
/**
|
|
1009
|
+
* Add an iframe
|
|
1010
|
+
*/
|
|
1011
|
+
setIframe: (options: {
|
|
1012
|
+
src: string;
|
|
1013
|
+
service: string;
|
|
1014
|
+
}) => ReturnType;
|
|
1019
1015
|
};
|
|
1020
1016
|
}
|
|
1021
1017
|
}
|
|
@@ -1035,8 +1031,9 @@ declare module '@tiptap/core' {
|
|
|
1035
1031
|
|
|
1036
1032
|
declare module '@tiptap/core' {
|
|
1037
1033
|
interface Commands<ReturnType> {
|
|
1038
|
-
|
|
1039
|
-
|
|
1034
|
+
tableCellBackground: {
|
|
1035
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1036
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1040
1037
|
};
|
|
1041
1038
|
}
|
|
1042
1039
|
}
|
|
@@ -1044,14 +1041,8 @@ declare module '@tiptap/core' {
|
|
|
1044
1041
|
|
|
1045
1042
|
declare module '@tiptap/core' {
|
|
1046
1043
|
interface Commands<ReturnType> {
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1050
|
-
replace: () => ReturnType;
|
|
1051
|
-
replaceAll: () => ReturnType;
|
|
1052
|
-
goToPrevSearchResult: () => void;
|
|
1053
|
-
goToNextSearchResult: () => void;
|
|
1054
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1044
|
+
katex: {
|
|
1045
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1055
1046
|
};
|
|
1056
1047
|
}
|
|
1057
1048
|
}
|
|
@@ -1069,9 +1060,8 @@ declare module '@tiptap/core' {
|
|
|
1069
1060
|
|
|
1070
1061
|
declare module '@tiptap/core' {
|
|
1071
1062
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1063
|
+
exportWord: {
|
|
1064
|
+
exportToWord: () => ReturnType;
|
|
1075
1065
|
};
|
|
1076
1066
|
}
|
|
1077
1067
|
}
|
|
@@ -1079,9 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1079
1069
|
|
|
1080
1070
|
declare module '@tiptap/core' {
|
|
1081
1071
|
interface Commands<ReturnType> {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1072
|
+
attachment: {
|
|
1073
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1085
1074
|
};
|
|
1086
1075
|
}
|
|
1087
1076
|
}
|
|
@@ -1104,8 +1093,19 @@ declare module '@tiptap/core' {
|
|
|
1104
1093
|
|
|
1105
1094
|
declare module '@tiptap/core' {
|
|
1106
1095
|
interface Commands<ReturnType> {
|
|
1107
|
-
|
|
1108
|
-
|
|
1096
|
+
mermaid: {
|
|
1097
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1098
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
declare module '@tiptap/core' {
|
|
1105
|
+
interface Commands<ReturnType> {
|
|
1106
|
+
drawer: {
|
|
1107
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1108
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
package/package.json
CHANGED