reactjs-tiptap-editor-pro 0.2.36 → 0.2.37
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 +80 -80
- package/lib/extension-bundle.d.ts +80 -80
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +83 -81
- package/lib/index.d.ts +83 -81
- package/lib/index.js +1 -0
- package/lib/locale-bundle.d.cts +80 -80
- package/lib/locale-bundle.d.ts +80 -80
- package/package.json +1 -1
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -902,27 +902,19 @@ declare module '@tiptap/core' {
|
|
|
902
902
|
|
|
903
903
|
declare module '@tiptap/core' {
|
|
904
904
|
interface Commands<ReturnType> {
|
|
905
|
-
|
|
905
|
+
imageUpload: {
|
|
906
906
|
/**
|
|
907
|
-
*
|
|
908
|
-
* CSS font-size
|
|
909
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
907
|
+
* Add an image
|
|
910
908
|
*/
|
|
911
|
-
|
|
909
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
912
910
|
/**
|
|
913
|
-
*
|
|
911
|
+
* Update an image
|
|
914
912
|
*/
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
declare module '@tiptap/core' {
|
|
922
|
-
interface Commands<ReturnType> {
|
|
923
|
-
lineHeight: {
|
|
924
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
-
unsetLineHeight: () => ReturnType;
|
|
913
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
914
|
+
/**
|
|
915
|
+
* Set image alignment
|
|
916
|
+
*/
|
|
917
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
926
918
|
};
|
|
927
919
|
}
|
|
928
920
|
}
|
|
@@ -945,29 +937,15 @@ declare module '@tiptap/core' {
|
|
|
945
937
|
|
|
946
938
|
declare module '@tiptap/core' {
|
|
947
939
|
interface Commands<ReturnType> {
|
|
948
|
-
|
|
949
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
950
|
-
unsetTableCellBackground: () => ReturnType;
|
|
951
|
-
};
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
declare module '@tiptap/core' {
|
|
957
|
-
interface Commands<ReturnType> {
|
|
958
|
-
imageUpload: {
|
|
959
|
-
/**
|
|
960
|
-
* Add an image
|
|
961
|
-
*/
|
|
962
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
940
|
+
indent: {
|
|
963
941
|
/**
|
|
964
|
-
*
|
|
942
|
+
* Set the indent attribute
|
|
965
943
|
*/
|
|
966
|
-
|
|
944
|
+
indent: () => ReturnType;
|
|
967
945
|
/**
|
|
968
|
-
* Set
|
|
946
|
+
* Set the outdent attribute
|
|
969
947
|
*/
|
|
970
|
-
|
|
948
|
+
outdent: () => ReturnType;
|
|
971
949
|
};
|
|
972
950
|
}
|
|
973
951
|
}
|
|
@@ -975,8 +953,9 @@ declare module '@tiptap/core' {
|
|
|
975
953
|
|
|
976
954
|
declare module '@tiptap/core' {
|
|
977
955
|
interface Commands<ReturnType> {
|
|
978
|
-
|
|
979
|
-
|
|
956
|
+
lineHeight: {
|
|
957
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
958
|
+
unsetLineHeight: () => ReturnType;
|
|
980
959
|
};
|
|
981
960
|
}
|
|
982
961
|
}
|
|
@@ -984,13 +963,11 @@ declare module '@tiptap/core' {
|
|
|
984
963
|
|
|
985
964
|
declare module '@tiptap/core' {
|
|
986
965
|
interface Commands<ReturnType> {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
966
|
+
emoji: {
|
|
967
|
+
setEmoji: (emoji: {
|
|
968
|
+
name: string;
|
|
969
|
+
emoji: string;
|
|
990
970
|
}) => ReturnType;
|
|
991
|
-
addColBefore: () => ReturnType;
|
|
992
|
-
addColAfter: () => ReturnType;
|
|
993
|
-
deleteCol: () => ReturnType;
|
|
994
971
|
};
|
|
995
972
|
}
|
|
996
973
|
}
|
|
@@ -998,15 +975,17 @@ declare module '@tiptap/core' {
|
|
|
998
975
|
|
|
999
976
|
declare module '@tiptap/core' {
|
|
1000
977
|
interface Commands<ReturnType> {
|
|
1001
|
-
|
|
978
|
+
fontSize: {
|
|
1002
979
|
/**
|
|
1003
|
-
* Set the
|
|
980
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
981
|
+
* CSS font-size
|
|
982
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
1004
983
|
*/
|
|
1005
|
-
|
|
984
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
1006
985
|
/**
|
|
1007
|
-
*
|
|
986
|
+
* Unset the font size
|
|
1008
987
|
*/
|
|
1009
|
-
|
|
988
|
+
unsetFontSize: () => ReturnType;
|
|
1010
989
|
};
|
|
1011
990
|
}
|
|
1012
991
|
}
|
|
@@ -1014,8 +993,9 @@ declare module '@tiptap/core' {
|
|
|
1014
993
|
|
|
1015
994
|
declare module '@tiptap/core' {
|
|
1016
995
|
interface Commands<ReturnType> {
|
|
1017
|
-
|
|
1018
|
-
|
|
996
|
+
tableCellBackground: {
|
|
997
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
998
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1019
999
|
};
|
|
1020
1000
|
}
|
|
1021
1001
|
}
|
|
@@ -1023,11 +1003,18 @@ declare module '@tiptap/core' {
|
|
|
1023
1003
|
|
|
1024
1004
|
declare module '@tiptap/core' {
|
|
1025
1005
|
interface Commands<ReturnType> {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1006
|
+
tableOfContents: {
|
|
1007
|
+
setTableOfContents: () => ReturnType;
|
|
1008
|
+
removeTableOfContents: () => ReturnType;
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
declare module '@tiptap/core' {
|
|
1015
|
+
interface Commands<ReturnType> {
|
|
1016
|
+
exportWord: {
|
|
1017
|
+
exportToWord: () => ReturnType;
|
|
1031
1018
|
};
|
|
1032
1019
|
}
|
|
1033
1020
|
}
|
|
@@ -1059,19 +1046,13 @@ declare module '@tiptap/core' {
|
|
|
1059
1046
|
|
|
1060
1047
|
declare module '@tiptap/core' {
|
|
1061
1048
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
declare module '@tiptap/core' {
|
|
1071
|
-
interface Commands<ReturnType> {
|
|
1072
|
-
mermaid: {
|
|
1073
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1074
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1049
|
+
columns: {
|
|
1050
|
+
insertColumns: (attrs?: {
|
|
1051
|
+
cols: number;
|
|
1052
|
+
}) => ReturnType;
|
|
1053
|
+
addColBefore: () => ReturnType;
|
|
1054
|
+
addColAfter: () => ReturnType;
|
|
1055
|
+
deleteCol: () => ReturnType;
|
|
1075
1056
|
};
|
|
1076
1057
|
}
|
|
1077
1058
|
}
|
|
@@ -1079,9 +1060,8 @@ declare module '@tiptap/core' {
|
|
|
1079
1060
|
|
|
1080
1061
|
declare module '@tiptap/core' {
|
|
1081
1062
|
interface Commands<ReturnType> {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1063
|
+
katex: {
|
|
1064
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1085
1065
|
};
|
|
1086
1066
|
}
|
|
1087
1067
|
}
|
|
@@ -1089,14 +1069,9 @@ declare module '@tiptap/core' {
|
|
|
1089
1069
|
|
|
1090
1070
|
declare module '@tiptap/core' {
|
|
1091
1071
|
interface Commands<ReturnType> {
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
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;
|
|
1072
|
+
mermaid: {
|
|
1073
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1074
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1100
1075
|
};
|
|
1101
1076
|
}
|
|
1102
1077
|
}
|
|
@@ -1129,3 +1104,28 @@ declare module '@tiptap/core' {
|
|
|
1129
1104
|
};
|
|
1130
1105
|
}
|
|
1131
1106
|
}
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
declare module '@tiptap/core' {
|
|
1110
|
+
interface Commands<ReturnType> {
|
|
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
|
+
};
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
declare module '@tiptap/core' {
|
|
1125
|
+
interface Commands<ReturnType> {
|
|
1126
|
+
drawer: {
|
|
1127
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1128
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -902,27 +902,19 @@ declare module '@tiptap/core' {
|
|
|
902
902
|
|
|
903
903
|
declare module '@tiptap/core' {
|
|
904
904
|
interface Commands<ReturnType> {
|
|
905
|
-
|
|
905
|
+
imageUpload: {
|
|
906
906
|
/**
|
|
907
|
-
*
|
|
908
|
-
* CSS font-size
|
|
909
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
907
|
+
* Add an image
|
|
910
908
|
*/
|
|
911
|
-
|
|
909
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
912
910
|
/**
|
|
913
|
-
*
|
|
911
|
+
* Update an image
|
|
914
912
|
*/
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
declare module '@tiptap/core' {
|
|
922
|
-
interface Commands<ReturnType> {
|
|
923
|
-
lineHeight: {
|
|
924
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
-
unsetLineHeight: () => ReturnType;
|
|
913
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
914
|
+
/**
|
|
915
|
+
* Set image alignment
|
|
916
|
+
*/
|
|
917
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
926
918
|
};
|
|
927
919
|
}
|
|
928
920
|
}
|
|
@@ -945,29 +937,15 @@ declare module '@tiptap/core' {
|
|
|
945
937
|
|
|
946
938
|
declare module '@tiptap/core' {
|
|
947
939
|
interface Commands<ReturnType> {
|
|
948
|
-
|
|
949
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
950
|
-
unsetTableCellBackground: () => ReturnType;
|
|
951
|
-
};
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
declare module '@tiptap/core' {
|
|
957
|
-
interface Commands<ReturnType> {
|
|
958
|
-
imageUpload: {
|
|
959
|
-
/**
|
|
960
|
-
* Add an image
|
|
961
|
-
*/
|
|
962
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
940
|
+
indent: {
|
|
963
941
|
/**
|
|
964
|
-
*
|
|
942
|
+
* Set the indent attribute
|
|
965
943
|
*/
|
|
966
|
-
|
|
944
|
+
indent: () => ReturnType;
|
|
967
945
|
/**
|
|
968
|
-
* Set
|
|
946
|
+
* Set the outdent attribute
|
|
969
947
|
*/
|
|
970
|
-
|
|
948
|
+
outdent: () => ReturnType;
|
|
971
949
|
};
|
|
972
950
|
}
|
|
973
951
|
}
|
|
@@ -975,8 +953,9 @@ declare module '@tiptap/core' {
|
|
|
975
953
|
|
|
976
954
|
declare module '@tiptap/core' {
|
|
977
955
|
interface Commands<ReturnType> {
|
|
978
|
-
|
|
979
|
-
|
|
956
|
+
lineHeight: {
|
|
957
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
958
|
+
unsetLineHeight: () => ReturnType;
|
|
980
959
|
};
|
|
981
960
|
}
|
|
982
961
|
}
|
|
@@ -984,13 +963,11 @@ declare module '@tiptap/core' {
|
|
|
984
963
|
|
|
985
964
|
declare module '@tiptap/core' {
|
|
986
965
|
interface Commands<ReturnType> {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
966
|
+
emoji: {
|
|
967
|
+
setEmoji: (emoji: {
|
|
968
|
+
name: string;
|
|
969
|
+
emoji: string;
|
|
990
970
|
}) => ReturnType;
|
|
991
|
-
addColBefore: () => ReturnType;
|
|
992
|
-
addColAfter: () => ReturnType;
|
|
993
|
-
deleteCol: () => ReturnType;
|
|
994
971
|
};
|
|
995
972
|
}
|
|
996
973
|
}
|
|
@@ -998,15 +975,17 @@ declare module '@tiptap/core' {
|
|
|
998
975
|
|
|
999
976
|
declare module '@tiptap/core' {
|
|
1000
977
|
interface Commands<ReturnType> {
|
|
1001
|
-
|
|
978
|
+
fontSize: {
|
|
1002
979
|
/**
|
|
1003
|
-
* Set the
|
|
980
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
981
|
+
* CSS font-size
|
|
982
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
1004
983
|
*/
|
|
1005
|
-
|
|
984
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
1006
985
|
/**
|
|
1007
|
-
*
|
|
986
|
+
* Unset the font size
|
|
1008
987
|
*/
|
|
1009
|
-
|
|
988
|
+
unsetFontSize: () => ReturnType;
|
|
1010
989
|
};
|
|
1011
990
|
}
|
|
1012
991
|
}
|
|
@@ -1014,8 +993,9 @@ declare module '@tiptap/core' {
|
|
|
1014
993
|
|
|
1015
994
|
declare module '@tiptap/core' {
|
|
1016
995
|
interface Commands<ReturnType> {
|
|
1017
|
-
|
|
1018
|
-
|
|
996
|
+
tableCellBackground: {
|
|
997
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
998
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1019
999
|
};
|
|
1020
1000
|
}
|
|
1021
1001
|
}
|
|
@@ -1023,11 +1003,18 @@ declare module '@tiptap/core' {
|
|
|
1023
1003
|
|
|
1024
1004
|
declare module '@tiptap/core' {
|
|
1025
1005
|
interface Commands<ReturnType> {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1006
|
+
tableOfContents: {
|
|
1007
|
+
setTableOfContents: () => ReturnType;
|
|
1008
|
+
removeTableOfContents: () => ReturnType;
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
declare module '@tiptap/core' {
|
|
1015
|
+
interface Commands<ReturnType> {
|
|
1016
|
+
exportWord: {
|
|
1017
|
+
exportToWord: () => ReturnType;
|
|
1031
1018
|
};
|
|
1032
1019
|
}
|
|
1033
1020
|
}
|
|
@@ -1059,19 +1046,13 @@ declare module '@tiptap/core' {
|
|
|
1059
1046
|
|
|
1060
1047
|
declare module '@tiptap/core' {
|
|
1061
1048
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
declare module '@tiptap/core' {
|
|
1071
|
-
interface Commands<ReturnType> {
|
|
1072
|
-
mermaid: {
|
|
1073
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1074
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1049
|
+
columns: {
|
|
1050
|
+
insertColumns: (attrs?: {
|
|
1051
|
+
cols: number;
|
|
1052
|
+
}) => ReturnType;
|
|
1053
|
+
addColBefore: () => ReturnType;
|
|
1054
|
+
addColAfter: () => ReturnType;
|
|
1055
|
+
deleteCol: () => ReturnType;
|
|
1075
1056
|
};
|
|
1076
1057
|
}
|
|
1077
1058
|
}
|
|
@@ -1079,9 +1060,8 @@ declare module '@tiptap/core' {
|
|
|
1079
1060
|
|
|
1080
1061
|
declare module '@tiptap/core' {
|
|
1081
1062
|
interface Commands<ReturnType> {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1063
|
+
katex: {
|
|
1064
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1085
1065
|
};
|
|
1086
1066
|
}
|
|
1087
1067
|
}
|
|
@@ -1089,14 +1069,9 @@ declare module '@tiptap/core' {
|
|
|
1089
1069
|
|
|
1090
1070
|
declare module '@tiptap/core' {
|
|
1091
1071
|
interface Commands<ReturnType> {
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
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;
|
|
1072
|
+
mermaid: {
|
|
1073
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1074
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1100
1075
|
};
|
|
1101
1076
|
}
|
|
1102
1077
|
}
|
|
@@ -1129,3 +1104,28 @@ declare module '@tiptap/core' {
|
|
|
1129
1104
|
};
|
|
1130
1105
|
}
|
|
1131
1106
|
}
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
declare module '@tiptap/core' {
|
|
1110
|
+
interface Commands<ReturnType> {
|
|
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
|
+
};
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
declare module '@tiptap/core' {
|
|
1125
|
+
interface Commands<ReturnType> {
|
|
1126
|
+
drawer: {
|
|
1127
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1128
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1129
|
+
};
|
|
1130
|
+
}
|
|
1131
|
+
}
|
package/package.json
CHANGED