reactjs-tiptap-editor-pro 0.2.34 → 0.2.36
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 +71 -71
- package/lib/extension-bundle.d.ts +71 -71
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +84 -71
- package/lib/index.d.ts +84 -71
- package/lib/index.js +126 -124
- 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,19 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
*/
|
|
927
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
928
|
-
/**
|
|
929
|
-
* Update an image
|
|
930
|
-
*/
|
|
931
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
932
|
-
/**
|
|
933
|
-
* Set image alignment
|
|
934
|
-
*/
|
|
935
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
936
926
|
};
|
|
937
927
|
}
|
|
938
928
|
}
|
|
@@ -940,13 +930,14 @@ declare module '@tiptap/core' {
|
|
|
940
930
|
|
|
941
931
|
declare module '@tiptap/core' {
|
|
942
932
|
interface Commands<ReturnType> {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
933
|
+
iframe: {
|
|
934
|
+
/**
|
|
935
|
+
* Add an iframe
|
|
936
|
+
*/
|
|
937
|
+
setIframe: (options: {
|
|
938
|
+
src: string;
|
|
939
|
+
service: string;
|
|
946
940
|
}) => ReturnType;
|
|
947
|
-
addColBefore: () => ReturnType;
|
|
948
|
-
addColAfter: () => ReturnType;
|
|
949
|
-
deleteCol: () => ReturnType;
|
|
950
941
|
};
|
|
951
942
|
}
|
|
952
943
|
}
|
|
@@ -954,9 +945,9 @@ declare module '@tiptap/core' {
|
|
|
954
945
|
|
|
955
946
|
declare module '@tiptap/core' {
|
|
956
947
|
interface Commands<ReturnType> {
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
948
|
+
tableCellBackground: {
|
|
949
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
950
|
+
unsetTableCellBackground: () => ReturnType;
|
|
960
951
|
};
|
|
961
952
|
}
|
|
962
953
|
}
|
|
@@ -964,15 +955,19 @@ declare module '@tiptap/core' {
|
|
|
964
955
|
|
|
965
956
|
declare module '@tiptap/core' {
|
|
966
957
|
interface Commands<ReturnType> {
|
|
967
|
-
|
|
958
|
+
imageUpload: {
|
|
968
959
|
/**
|
|
969
|
-
*
|
|
960
|
+
* Add an image
|
|
970
961
|
*/
|
|
971
|
-
|
|
962
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
972
963
|
/**
|
|
973
|
-
*
|
|
964
|
+
* Update an image
|
|
974
965
|
*/
|
|
975
|
-
|
|
966
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
967
|
+
/**
|
|
968
|
+
* Set image alignment
|
|
969
|
+
*/
|
|
970
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
976
971
|
};
|
|
977
972
|
}
|
|
978
973
|
}
|
|
@@ -980,9 +975,8 @@ declare module '@tiptap/core' {
|
|
|
980
975
|
|
|
981
976
|
declare module '@tiptap/core' {
|
|
982
977
|
interface Commands<ReturnType> {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
unsetTableCellBackground: () => ReturnType;
|
|
978
|
+
katex: {
|
|
979
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
986
980
|
};
|
|
987
981
|
}
|
|
988
982
|
}
|
|
@@ -990,8 +984,13 @@ declare module '@tiptap/core' {
|
|
|
990
984
|
|
|
991
985
|
declare module '@tiptap/core' {
|
|
992
986
|
interface Commands<ReturnType> {
|
|
993
|
-
|
|
994
|
-
|
|
987
|
+
columns: {
|
|
988
|
+
insertColumns: (attrs?: {
|
|
989
|
+
cols: number;
|
|
990
|
+
}) => ReturnType;
|
|
991
|
+
addColBefore: () => ReturnType;
|
|
992
|
+
addColAfter: () => ReturnType;
|
|
993
|
+
deleteCol: () => ReturnType;
|
|
995
994
|
};
|
|
996
995
|
}
|
|
997
996
|
}
|
|
@@ -999,14 +998,15 @@ declare module '@tiptap/core' {
|
|
|
999
998
|
|
|
1000
999
|
declare module '@tiptap/core' {
|
|
1001
1000
|
interface Commands<ReturnType> {
|
|
1002
|
-
|
|
1001
|
+
indent: {
|
|
1003
1002
|
/**
|
|
1004
|
-
*
|
|
1003
|
+
* Set the indent attribute
|
|
1005
1004
|
*/
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1005
|
+
indent: () => ReturnType;
|
|
1006
|
+
/**
|
|
1007
|
+
* Set the outdent attribute
|
|
1008
|
+
*/
|
|
1009
|
+
outdent: () => ReturnType;
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
@@ -1033,6 +1033,15 @@ declare module '@tiptap/core' {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
|
|
1035
1035
|
|
|
1036
|
+
declare module '@tiptap/core' {
|
|
1037
|
+
interface Commands<ReturnType> {
|
|
1038
|
+
painter: {
|
|
1039
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
|
|
1036
1045
|
declare module '@tiptap/core' {
|
|
1037
1046
|
interface Commands<ReturnType> {
|
|
1038
1047
|
search: {
|
|
@@ -1048,15 +1057,6 @@ declare module '@tiptap/core' {
|
|
|
1048
1057
|
}
|
|
1049
1058
|
|
|
1050
1059
|
|
|
1051
|
-
declare module '@tiptap/core' {
|
|
1052
|
-
interface Commands<ReturnType> {
|
|
1053
|
-
katex: {
|
|
1054
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1055
|
-
};
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
1060
|
declare module '@tiptap/core' {
|
|
1061
1061
|
interface Commands<ReturnType> {
|
|
1062
1062
|
tableOfContents: {
|
|
@@ -1069,8 +1069,9 @@ declare module '@tiptap/core' {
|
|
|
1069
1069
|
|
|
1070
1070
|
declare module '@tiptap/core' {
|
|
1071
1071
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1072
|
+
mermaid: {
|
|
1073
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1074
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1074
1075
|
};
|
|
1075
1076
|
}
|
|
1076
1077
|
}
|
|
@@ -1088,19 +1089,14 @@ declare module '@tiptap/core' {
|
|
|
1088
1089
|
|
|
1089
1090
|
declare module '@tiptap/core' {
|
|
1090
1091
|
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;
|
|
1092
|
+
twitter: {
|
|
1100
1093
|
/**
|
|
1101
|
-
*
|
|
1094
|
+
* Insert a tweet
|
|
1095
|
+
* @param options The tweet attributes
|
|
1096
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1102
1097
|
*/
|
|
1103
|
-
|
|
1098
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1099
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1104
1100
|
};
|
|
1105
1101
|
}
|
|
1106
1102
|
}
|
|
@@ -1108,14 +1104,8 @@ declare module '@tiptap/core' {
|
|
|
1108
1104
|
|
|
1109
1105
|
declare module '@tiptap/core' {
|
|
1110
1106
|
interface Commands<ReturnType> {
|
|
1111
|
-
|
|
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;
|
|
1107
|
+
attachment: {
|
|
1108
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1119
1109
|
};
|
|
1120
1110
|
}
|
|
1121
1111
|
}
|
|
@@ -1123,9 +1113,19 @@ declare module '@tiptap/core' {
|
|
|
1123
1113
|
|
|
1124
1114
|
declare module '@tiptap/core' {
|
|
1125
1115
|
interface Commands<ReturnType> {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1116
|
+
imageGifUpload: {
|
|
1117
|
+
/**
|
|
1118
|
+
* Add an image gif
|
|
1119
|
+
*/
|
|
1120
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1121
|
+
/**
|
|
1122
|
+
* Update an image gif
|
|
1123
|
+
*/
|
|
1124
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1125
|
+
/**
|
|
1126
|
+
* Set image alignment
|
|
1127
|
+
*/
|
|
1128
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -920,19 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
*/
|
|
927
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
928
|
-
/**
|
|
929
|
-
* Update an image
|
|
930
|
-
*/
|
|
931
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
932
|
-
/**
|
|
933
|
-
* Set image alignment
|
|
934
|
-
*/
|
|
935
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
936
926
|
};
|
|
937
927
|
}
|
|
938
928
|
}
|
|
@@ -940,13 +930,14 @@ declare module '@tiptap/core' {
|
|
|
940
930
|
|
|
941
931
|
declare module '@tiptap/core' {
|
|
942
932
|
interface Commands<ReturnType> {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
933
|
+
iframe: {
|
|
934
|
+
/**
|
|
935
|
+
* Add an iframe
|
|
936
|
+
*/
|
|
937
|
+
setIframe: (options: {
|
|
938
|
+
src: string;
|
|
939
|
+
service: string;
|
|
946
940
|
}) => ReturnType;
|
|
947
|
-
addColBefore: () => ReturnType;
|
|
948
|
-
addColAfter: () => ReturnType;
|
|
949
|
-
deleteCol: () => ReturnType;
|
|
950
941
|
};
|
|
951
942
|
}
|
|
952
943
|
}
|
|
@@ -954,9 +945,9 @@ declare module '@tiptap/core' {
|
|
|
954
945
|
|
|
955
946
|
declare module '@tiptap/core' {
|
|
956
947
|
interface Commands<ReturnType> {
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
948
|
+
tableCellBackground: {
|
|
949
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
950
|
+
unsetTableCellBackground: () => ReturnType;
|
|
960
951
|
};
|
|
961
952
|
}
|
|
962
953
|
}
|
|
@@ -964,15 +955,19 @@ declare module '@tiptap/core' {
|
|
|
964
955
|
|
|
965
956
|
declare module '@tiptap/core' {
|
|
966
957
|
interface Commands<ReturnType> {
|
|
967
|
-
|
|
958
|
+
imageUpload: {
|
|
968
959
|
/**
|
|
969
|
-
*
|
|
960
|
+
* Add an image
|
|
970
961
|
*/
|
|
971
|
-
|
|
962
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
972
963
|
/**
|
|
973
|
-
*
|
|
964
|
+
* Update an image
|
|
974
965
|
*/
|
|
975
|
-
|
|
966
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
967
|
+
/**
|
|
968
|
+
* Set image alignment
|
|
969
|
+
*/
|
|
970
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
976
971
|
};
|
|
977
972
|
}
|
|
978
973
|
}
|
|
@@ -980,9 +975,8 @@ declare module '@tiptap/core' {
|
|
|
980
975
|
|
|
981
976
|
declare module '@tiptap/core' {
|
|
982
977
|
interface Commands<ReturnType> {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
unsetTableCellBackground: () => ReturnType;
|
|
978
|
+
katex: {
|
|
979
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
986
980
|
};
|
|
987
981
|
}
|
|
988
982
|
}
|
|
@@ -990,8 +984,13 @@ declare module '@tiptap/core' {
|
|
|
990
984
|
|
|
991
985
|
declare module '@tiptap/core' {
|
|
992
986
|
interface Commands<ReturnType> {
|
|
993
|
-
|
|
994
|
-
|
|
987
|
+
columns: {
|
|
988
|
+
insertColumns: (attrs?: {
|
|
989
|
+
cols: number;
|
|
990
|
+
}) => ReturnType;
|
|
991
|
+
addColBefore: () => ReturnType;
|
|
992
|
+
addColAfter: () => ReturnType;
|
|
993
|
+
deleteCol: () => ReturnType;
|
|
995
994
|
};
|
|
996
995
|
}
|
|
997
996
|
}
|
|
@@ -999,14 +998,15 @@ declare module '@tiptap/core' {
|
|
|
999
998
|
|
|
1000
999
|
declare module '@tiptap/core' {
|
|
1001
1000
|
interface Commands<ReturnType> {
|
|
1002
|
-
|
|
1001
|
+
indent: {
|
|
1003
1002
|
/**
|
|
1004
|
-
*
|
|
1003
|
+
* Set the indent attribute
|
|
1005
1004
|
*/
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1005
|
+
indent: () => ReturnType;
|
|
1006
|
+
/**
|
|
1007
|
+
* Set the outdent attribute
|
|
1008
|
+
*/
|
|
1009
|
+
outdent: () => ReturnType;
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
@@ -1033,6 +1033,15 @@ declare module '@tiptap/core' {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
|
|
1035
1035
|
|
|
1036
|
+
declare module '@tiptap/core' {
|
|
1037
|
+
interface Commands<ReturnType> {
|
|
1038
|
+
painter: {
|
|
1039
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
|
|
1036
1045
|
declare module '@tiptap/core' {
|
|
1037
1046
|
interface Commands<ReturnType> {
|
|
1038
1047
|
search: {
|
|
@@ -1048,15 +1057,6 @@ declare module '@tiptap/core' {
|
|
|
1048
1057
|
}
|
|
1049
1058
|
|
|
1050
1059
|
|
|
1051
|
-
declare module '@tiptap/core' {
|
|
1052
|
-
interface Commands<ReturnType> {
|
|
1053
|
-
katex: {
|
|
1054
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1055
|
-
};
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
1060
|
declare module '@tiptap/core' {
|
|
1061
1061
|
interface Commands<ReturnType> {
|
|
1062
1062
|
tableOfContents: {
|
|
@@ -1069,8 +1069,9 @@ declare module '@tiptap/core' {
|
|
|
1069
1069
|
|
|
1070
1070
|
declare module '@tiptap/core' {
|
|
1071
1071
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1072
|
+
mermaid: {
|
|
1073
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1074
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1074
1075
|
};
|
|
1075
1076
|
}
|
|
1076
1077
|
}
|
|
@@ -1088,19 +1089,14 @@ declare module '@tiptap/core' {
|
|
|
1088
1089
|
|
|
1089
1090
|
declare module '@tiptap/core' {
|
|
1090
1091
|
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;
|
|
1092
|
+
twitter: {
|
|
1100
1093
|
/**
|
|
1101
|
-
*
|
|
1094
|
+
* Insert a tweet
|
|
1095
|
+
* @param options The tweet attributes
|
|
1096
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1102
1097
|
*/
|
|
1103
|
-
|
|
1098
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1099
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1104
1100
|
};
|
|
1105
1101
|
}
|
|
1106
1102
|
}
|
|
@@ -1108,14 +1104,8 @@ declare module '@tiptap/core' {
|
|
|
1108
1104
|
|
|
1109
1105
|
declare module '@tiptap/core' {
|
|
1110
1106
|
interface Commands<ReturnType> {
|
|
1111
|
-
|
|
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;
|
|
1107
|
+
attachment: {
|
|
1108
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1119
1109
|
};
|
|
1120
1110
|
}
|
|
1121
1111
|
}
|
|
@@ -1123,9 +1113,19 @@ declare module '@tiptap/core' {
|
|
|
1123
1113
|
|
|
1124
1114
|
declare module '@tiptap/core' {
|
|
1125
1115
|
interface Commands<ReturnType> {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1116
|
+
imageGifUpload: {
|
|
1117
|
+
/**
|
|
1118
|
+
* Add an image gif
|
|
1119
|
+
*/
|
|
1120
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1121
|
+
/**
|
|
1122
|
+
* Update an image gif
|
|
1123
|
+
*/
|
|
1124
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1125
|
+
/**
|
|
1126
|
+
* Set image alignment
|
|
1127
|
+
*/
|
|
1128
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
package/package.json
CHANGED