reactjs-tiptap-editor 0.2.18 → 0.2.19
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/{RichTextEditor-CGcy7xvW.cjs → RichTextEditor-DAqU7JiB.cjs} +1 -1
- package/lib/{RichTextEditor-Bja02y2o.js → RichTextEditor-aaUynZc2.js} +1 -1
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +71 -71
- package/lib/extension-bundle.d.ts +71 -71
- package/lib/extension-bundle.js +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +71 -71
- package/lib/index.d.ts +71 -71
- package/lib/index.js +1 -1
- 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.ts
CHANGED
|
@@ -936,9 +936,9 @@ declare module '@tiptap/core' {
|
|
|
936
936
|
|
|
937
937
|
declare module '@tiptap/core' {
|
|
938
938
|
interface Commands<ReturnType> {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
939
|
+
lineHeight: {
|
|
940
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
941
|
+
unsetLineHeight: () => ReturnType;
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
944
|
}
|
|
@@ -946,8 +946,19 @@ declare module '@tiptap/core' {
|
|
|
946
946
|
|
|
947
947
|
declare module '@tiptap/core' {
|
|
948
948
|
interface Commands<ReturnType> {
|
|
949
|
-
|
|
950
|
-
|
|
949
|
+
imageUpload: {
|
|
950
|
+
/**
|
|
951
|
+
* Add an image
|
|
952
|
+
*/
|
|
953
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
954
|
+
/**
|
|
955
|
+
* Update an image
|
|
956
|
+
*/
|
|
957
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
958
|
+
/**
|
|
959
|
+
* Set image alignment
|
|
960
|
+
*/
|
|
961
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
951
962
|
};
|
|
952
963
|
}
|
|
953
964
|
}
|
|
@@ -955,14 +966,9 @@ declare module '@tiptap/core' {
|
|
|
955
966
|
|
|
956
967
|
declare module '@tiptap/core' {
|
|
957
968
|
interface Commands<ReturnType> {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
*/
|
|
962
|
-
setIframe: (options: {
|
|
963
|
-
src: string;
|
|
964
|
-
service: string;
|
|
965
|
-
}) => ReturnType;
|
|
969
|
+
tableCellBackground: {
|
|
970
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
971
|
+
unsetTableCellBackground: () => ReturnType;
|
|
966
972
|
};
|
|
967
973
|
}
|
|
968
974
|
}
|
|
@@ -970,8 +976,8 @@ declare module '@tiptap/core' {
|
|
|
970
976
|
|
|
971
977
|
declare module '@tiptap/core' {
|
|
972
978
|
interface Commands<ReturnType> {
|
|
973
|
-
|
|
974
|
-
|
|
979
|
+
painter: {
|
|
980
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
975
981
|
};
|
|
976
982
|
}
|
|
977
983
|
}
|
|
@@ -979,9 +985,28 @@ declare module '@tiptap/core' {
|
|
|
979
985
|
|
|
980
986
|
declare module '@tiptap/core' {
|
|
981
987
|
interface Commands<ReturnType> {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
988
|
+
columns: {
|
|
989
|
+
insertColumns: (attrs?: {
|
|
990
|
+
cols: number;
|
|
991
|
+
}) => ReturnType;
|
|
992
|
+
addColBefore: () => ReturnType;
|
|
993
|
+
addColAfter: () => ReturnType;
|
|
994
|
+
deleteCol: () => ReturnType;
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
declare module '@tiptap/core' {
|
|
1001
|
+
interface Commands<ReturnType> {
|
|
1002
|
+
iframe: {
|
|
1003
|
+
/**
|
|
1004
|
+
* Add an iframe
|
|
1005
|
+
*/
|
|
1006
|
+
setIframe: (options: {
|
|
1007
|
+
src: string;
|
|
1008
|
+
service: string;
|
|
1009
|
+
}) => ReturnType;
|
|
985
1010
|
};
|
|
986
1011
|
}
|
|
987
1012
|
}
|
|
@@ -1002,20 +1027,6 @@ declare module '@tiptap/core' {
|
|
|
1002
1027
|
}
|
|
1003
1028
|
|
|
1004
1029
|
|
|
1005
|
-
declare module '@tiptap/core' {
|
|
1006
|
-
interface Commands<ReturnType> {
|
|
1007
|
-
columns: {
|
|
1008
|
-
insertColumns: (attrs?: {
|
|
1009
|
-
cols: number;
|
|
1010
|
-
}) => ReturnType;
|
|
1011
|
-
addColBefore: () => ReturnType;
|
|
1012
|
-
addColAfter: () => ReturnType;
|
|
1013
|
-
deleteCol: () => ReturnType;
|
|
1014
|
-
};
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
1030
|
declare module '@tiptap/core' {
|
|
1020
1031
|
interface Commands<ReturnType> {
|
|
1021
1032
|
emoji: {
|
|
@@ -1030,19 +1041,8 @@ declare module '@tiptap/core' {
|
|
|
1030
1041
|
|
|
1031
1042
|
declare module '@tiptap/core' {
|
|
1032
1043
|
interface Commands<ReturnType> {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
* Add an image
|
|
1036
|
-
*/
|
|
1037
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1038
|
-
/**
|
|
1039
|
-
* Update an image
|
|
1040
|
-
*/
|
|
1041
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1042
|
-
/**
|
|
1043
|
-
* Set image alignment
|
|
1044
|
-
*/
|
|
1045
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1044
|
+
katex: {
|
|
1045
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1046
1046
|
};
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
@@ -1069,8 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1069
1069
|
|
|
1070
1070
|
declare module '@tiptap/core' {
|
|
1071
1071
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1072
|
+
attachment: {
|
|
1073
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
@@ -1088,19 +1088,8 @@ declare module '@tiptap/core' {
|
|
|
1088
1088
|
|
|
1089
1089
|
declare module '@tiptap/core' {
|
|
1090
1090
|
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;
|
|
1100
|
-
/**
|
|
1101
|
-
* Set image alignment
|
|
1102
|
-
*/
|
|
1103
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1091
|
+
excalidraw: {
|
|
1092
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1104
1093
|
};
|
|
1105
1094
|
}
|
|
1106
1095
|
}
|
|
@@ -1108,9 +1097,14 @@ declare module '@tiptap/core' {
|
|
|
1108
1097
|
|
|
1109
1098
|
declare module '@tiptap/core' {
|
|
1110
1099
|
interface Commands<ReturnType> {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1100
|
+
twitter: {
|
|
1101
|
+
/**
|
|
1102
|
+
* Insert a tweet
|
|
1103
|
+
* @param options The tweet attributes
|
|
1104
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1105
|
+
*/
|
|
1106
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1107
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1114
1108
|
};
|
|
1115
1109
|
}
|
|
1116
1110
|
}
|
|
@@ -1118,8 +1112,9 @@ declare module '@tiptap/core' {
|
|
|
1118
1112
|
|
|
1119
1113
|
declare module '@tiptap/core' {
|
|
1120
1114
|
interface Commands<ReturnType> {
|
|
1121
|
-
|
|
1122
|
-
|
|
1115
|
+
mermaid: {
|
|
1116
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1117
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1123
1118
|
};
|
|
1124
1119
|
}
|
|
1125
1120
|
}
|
|
@@ -1127,14 +1122,19 @@ declare module '@tiptap/core' {
|
|
|
1127
1122
|
|
|
1128
1123
|
declare module '@tiptap/core' {
|
|
1129
1124
|
interface Commands<ReturnType> {
|
|
1130
|
-
|
|
1125
|
+
imageGifUpload: {
|
|
1131
1126
|
/**
|
|
1132
|
-
*
|
|
1133
|
-
* @param options The tweet attributes
|
|
1134
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1127
|
+
* Add an image gif
|
|
1135
1128
|
*/
|
|
1136
|
-
|
|
1137
|
-
|
|
1129
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1130
|
+
/**
|
|
1131
|
+
* Update an image gif
|
|
1132
|
+
*/
|
|
1133
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1134
|
+
/**
|
|
1135
|
+
* Set image alignment
|
|
1136
|
+
*/
|
|
1137
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
package/package.json
CHANGED