reactjs-tiptap-editor 0.2.8 → 0.2.9
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-YN9WGs-6.cjs → RichTextEditor-BbpdLvup.cjs} +1 -1
- package/lib/{RichTextEditor-C8DLflat.js → RichTextEditor-DwHrESsL.js} +3 -3
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +59 -59
- package/lib/extension-bundle.d.ts +59 -59
- package/lib/extension-bundle.js +5 -5
- package/lib/{index-C7UbZ2CS.cjs → index-Bekz0zC7.cjs} +1 -1
- package/lib/{index-BngAFVnd.js → index-CGVy85-a.js} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +59 -59
- package/lib/index.d.ts +59 -59
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +59 -59
- package/lib/locale-bundle.d.ts +59 -59
- package/lib/locale-bundle.js +1 -1
- package/lib/{tiptap-tmVDGH_r.cjs → tiptap-BjxGiEhB.cjs} +1 -1
- package/lib/{tiptap-ahYjwjH-.js → tiptap-DKUVyykT.js} +1 -1
- package/lib/{vendor-DTqf5JcV.cjs → vendor-C9wSqocV.cjs} +1 -1
- package/lib/{vendor-8yMXCLYm.js → vendor-K5cb6hwc.js} +1 -1
- package/package.json +13 -14
package/lib/index.d.ts
CHANGED
|
@@ -249,26 +249,6 @@ declare module '@tiptap/core' {
|
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
|
|
252
|
-
declare module '@tiptap/core' {
|
|
253
|
-
interface Commands<ReturnType> {
|
|
254
|
-
imageUpload: {
|
|
255
|
-
/**
|
|
256
|
-
* Add an image
|
|
257
|
-
*/
|
|
258
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
259
|
-
/**
|
|
260
|
-
* Update an image
|
|
261
|
-
*/
|
|
262
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
263
|
-
/**
|
|
264
|
-
* Set image alignment
|
|
265
|
-
*/
|
|
266
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
|
|
272
252
|
declare module '@tiptap/core' {
|
|
273
253
|
interface Commands<ReturnType> {
|
|
274
254
|
indent: {
|
|
@@ -287,9 +267,9 @@ declare module '@tiptap/core' {
|
|
|
287
267
|
|
|
288
268
|
declare module '@tiptap/core' {
|
|
289
269
|
interface Commands<ReturnType> {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
270
|
+
lineHeight: {
|
|
271
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
272
|
+
unsetLineHeight: () => ReturnType;
|
|
293
273
|
};
|
|
294
274
|
}
|
|
295
275
|
}
|
|
@@ -297,9 +277,9 @@ declare module '@tiptap/core' {
|
|
|
297
277
|
|
|
298
278
|
declare module '@tiptap/core' {
|
|
299
279
|
interface Commands<ReturnType> {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
280
|
+
tableCellBackground: {
|
|
281
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
282
|
+
unsetTableCellBackground: () => ReturnType;
|
|
303
283
|
};
|
|
304
284
|
}
|
|
305
285
|
}
|
|
@@ -307,8 +287,19 @@ declare module '@tiptap/core' {
|
|
|
307
287
|
|
|
308
288
|
declare module '@tiptap/core' {
|
|
309
289
|
interface Commands<ReturnType> {
|
|
310
|
-
|
|
311
|
-
|
|
290
|
+
imageUpload: {
|
|
291
|
+
/**
|
|
292
|
+
* Add an image
|
|
293
|
+
*/
|
|
294
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
295
|
+
/**
|
|
296
|
+
* Update an image
|
|
297
|
+
*/
|
|
298
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
299
|
+
/**
|
|
300
|
+
* Set image alignment
|
|
301
|
+
*/
|
|
302
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
312
303
|
};
|
|
313
304
|
}
|
|
314
305
|
}
|
|
@@ -316,13 +307,8 @@ declare module '@tiptap/core' {
|
|
|
316
307
|
|
|
317
308
|
declare module '@tiptap/core' {
|
|
318
309
|
interface Commands<ReturnType> {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
cols: number;
|
|
322
|
-
}) => ReturnType;
|
|
323
|
-
addColBefore: () => ReturnType;
|
|
324
|
-
addColAfter: () => ReturnType;
|
|
325
|
-
deleteCol: () => ReturnType;
|
|
310
|
+
katex: {
|
|
311
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
326
312
|
};
|
|
327
313
|
}
|
|
328
314
|
}
|
|
@@ -343,6 +329,15 @@ declare module '@tiptap/core' {
|
|
|
343
329
|
}
|
|
344
330
|
|
|
345
331
|
|
|
332
|
+
declare module '@tiptap/core' {
|
|
333
|
+
interface Commands<ReturnType> {
|
|
334
|
+
painter: {
|
|
335
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
|
|
346
341
|
declare module '@tiptap/core' {
|
|
347
342
|
interface Commands<ReturnType> {
|
|
348
343
|
search: {
|
|
@@ -358,6 +353,20 @@ declare module '@tiptap/core' {
|
|
|
358
353
|
}
|
|
359
354
|
|
|
360
355
|
|
|
356
|
+
declare module '@tiptap/core' {
|
|
357
|
+
interface Commands<ReturnType> {
|
|
358
|
+
columns: {
|
|
359
|
+
insertColumns: (attrs?: {
|
|
360
|
+
cols: number;
|
|
361
|
+
}) => ReturnType;
|
|
362
|
+
addColBefore: () => ReturnType;
|
|
363
|
+
addColAfter: () => ReturnType;
|
|
364
|
+
deleteCol: () => ReturnType;
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
|
|
361
370
|
declare module '@tiptap/core' {
|
|
362
371
|
interface Commands<ReturnType> {
|
|
363
372
|
emoji: {
|
|
@@ -372,8 +381,8 @@ declare module '@tiptap/core' {
|
|
|
372
381
|
|
|
373
382
|
declare module '@tiptap/core' {
|
|
374
383
|
interface Commands<ReturnType> {
|
|
375
|
-
|
|
376
|
-
|
|
384
|
+
exportWord: {
|
|
385
|
+
exportToWord: () => ReturnType;
|
|
377
386
|
};
|
|
378
387
|
}
|
|
379
388
|
}
|
|
@@ -400,17 +409,9 @@ declare module '@tiptap/core' {
|
|
|
400
409
|
|
|
401
410
|
declare module '@tiptap/core' {
|
|
402
411
|
interface Commands<ReturnType> {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
declare module '@tiptap/core' {
|
|
411
|
-
interface Commands<ReturnType> {
|
|
412
|
-
attachment: {
|
|
413
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
412
|
+
mermaid: {
|
|
413
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
414
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
414
415
|
};
|
|
415
416
|
}
|
|
416
417
|
}
|
|
@@ -438,9 +439,14 @@ declare module '@tiptap/core' {
|
|
|
438
439
|
|
|
439
440
|
declare module '@tiptap/core' {
|
|
440
441
|
interface Commands<ReturnType> {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
twitter: {
|
|
443
|
+
/**
|
|
444
|
+
* Insert a tweet
|
|
445
|
+
* @param options The tweet attributes
|
|
446
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
447
|
+
*/
|
|
448
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
449
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
444
450
|
};
|
|
445
451
|
}
|
|
446
452
|
}
|
|
@@ -458,14 +464,8 @@ declare module '@tiptap/core' {
|
|
|
458
464
|
|
|
459
465
|
declare module '@tiptap/core' {
|
|
460
466
|
interface Commands<ReturnType> {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
* Insert a tweet
|
|
464
|
-
* @param options The tweet attributes
|
|
465
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
466
|
-
*/
|
|
467
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
468
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
467
|
+
attachment: {
|
|
468
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef as d, useState as o, useEffect as f } from "react";
|
|
2
|
-
import { R as m } from "./RichTextEditor-
|
|
3
|
-
import { B as x } from "./tiptap-
|
|
2
|
+
import { R as m } from "./RichTextEditor-DwHrESsL.js";
|
|
3
|
+
import { B as x } from "./tiptap-DKUVyykT.js";
|
|
4
4
|
function c() {
|
|
5
5
|
var t;
|
|
6
6
|
const e = d({ editor: null }), [u, s] = o(!1), [i, n] = o(null);
|
package/lib/locale-bundle.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Bekz0zC7.cjs");exports.en=e.locale$1;exports.hu_HU=e.locale$2;exports.locale=e.locale;exports.pt_BR=e.locale$5;exports.vi=e.locale$3;exports.zh_CN=e.locale$4;
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -918,26 +918,6 @@ declare module '@tiptap/core' {
|
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
|
|
921
|
-
declare module '@tiptap/core' {
|
|
922
|
-
interface Commands<ReturnType> {
|
|
923
|
-
imageUpload: {
|
|
924
|
-
/**
|
|
925
|
-
* Add an image
|
|
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;
|
|
936
|
-
};
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
|
|
941
921
|
declare module '@tiptap/core' {
|
|
942
922
|
interface Commands<ReturnType> {
|
|
943
923
|
indent: {
|
|
@@ -956,9 +936,9 @@ declare module '@tiptap/core' {
|
|
|
956
936
|
|
|
957
937
|
declare module '@tiptap/core' {
|
|
958
938
|
interface Commands<ReturnType> {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
939
|
+
lineHeight: {
|
|
940
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
941
|
+
unsetLineHeight: () => ReturnType;
|
|
962
942
|
};
|
|
963
943
|
}
|
|
964
944
|
}
|
|
@@ -966,9 +946,9 @@ declare module '@tiptap/core' {
|
|
|
966
946
|
|
|
967
947
|
declare module '@tiptap/core' {
|
|
968
948
|
interface Commands<ReturnType> {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
949
|
+
tableCellBackground: {
|
|
950
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
951
|
+
unsetTableCellBackground: () => ReturnType;
|
|
972
952
|
};
|
|
973
953
|
}
|
|
974
954
|
}
|
|
@@ -976,8 +956,19 @@ declare module '@tiptap/core' {
|
|
|
976
956
|
|
|
977
957
|
declare module '@tiptap/core' {
|
|
978
958
|
interface Commands<ReturnType> {
|
|
979
|
-
|
|
980
|
-
|
|
959
|
+
imageUpload: {
|
|
960
|
+
/**
|
|
961
|
+
* Add an image
|
|
962
|
+
*/
|
|
963
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
964
|
+
/**
|
|
965
|
+
* Update an image
|
|
966
|
+
*/
|
|
967
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
968
|
+
/**
|
|
969
|
+
* Set image alignment
|
|
970
|
+
*/
|
|
971
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
981
972
|
};
|
|
982
973
|
}
|
|
983
974
|
}
|
|
@@ -985,13 +976,8 @@ declare module '@tiptap/core' {
|
|
|
985
976
|
|
|
986
977
|
declare module '@tiptap/core' {
|
|
987
978
|
interface Commands<ReturnType> {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
cols: number;
|
|
991
|
-
}) => ReturnType;
|
|
992
|
-
addColBefore: () => ReturnType;
|
|
993
|
-
addColAfter: () => ReturnType;
|
|
994
|
-
deleteCol: () => ReturnType;
|
|
979
|
+
katex: {
|
|
980
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
995
981
|
};
|
|
996
982
|
}
|
|
997
983
|
}
|
|
@@ -1012,6 +998,15 @@ declare module '@tiptap/core' {
|
|
|
1012
998
|
}
|
|
1013
999
|
|
|
1014
1000
|
|
|
1001
|
+
declare module '@tiptap/core' {
|
|
1002
|
+
interface Commands<ReturnType> {
|
|
1003
|
+
painter: {
|
|
1004
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
|
|
1015
1010
|
declare module '@tiptap/core' {
|
|
1016
1011
|
interface Commands<ReturnType> {
|
|
1017
1012
|
search: {
|
|
@@ -1027,6 +1022,20 @@ declare module '@tiptap/core' {
|
|
|
1027
1022
|
}
|
|
1028
1023
|
|
|
1029
1024
|
|
|
1025
|
+
declare module '@tiptap/core' {
|
|
1026
|
+
interface Commands<ReturnType> {
|
|
1027
|
+
columns: {
|
|
1028
|
+
insertColumns: (attrs?: {
|
|
1029
|
+
cols: number;
|
|
1030
|
+
}) => ReturnType;
|
|
1031
|
+
addColBefore: () => ReturnType;
|
|
1032
|
+
addColAfter: () => ReturnType;
|
|
1033
|
+
deleteCol: () => ReturnType;
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
|
|
1030
1039
|
declare module '@tiptap/core' {
|
|
1031
1040
|
interface Commands<ReturnType> {
|
|
1032
1041
|
emoji: {
|
|
@@ -1041,8 +1050,8 @@ declare module '@tiptap/core' {
|
|
|
1041
1050
|
|
|
1042
1051
|
declare module '@tiptap/core' {
|
|
1043
1052
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1053
|
+
exportWord: {
|
|
1054
|
+
exportToWord: () => ReturnType;
|
|
1046
1055
|
};
|
|
1047
1056
|
}
|
|
1048
1057
|
}
|
|
@@ -1069,17 +1078,9 @@ declare module '@tiptap/core' {
|
|
|
1069
1078
|
|
|
1070
1079
|
declare module '@tiptap/core' {
|
|
1071
1080
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
declare module '@tiptap/core' {
|
|
1080
|
-
interface Commands<ReturnType> {
|
|
1081
|
-
attachment: {
|
|
1082
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1081
|
+
mermaid: {
|
|
1082
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1083
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1083
1084
|
};
|
|
1084
1085
|
}
|
|
1085
1086
|
}
|
|
@@ -1107,9 +1108,14 @@ declare module '@tiptap/core' {
|
|
|
1107
1108
|
|
|
1108
1109
|
declare module '@tiptap/core' {
|
|
1109
1110
|
interface Commands<ReturnType> {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
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;
|
|
1113
1119
|
};
|
|
1114
1120
|
}
|
|
1115
1121
|
}
|
|
@@ -1127,14 +1133,8 @@ declare module '@tiptap/core' {
|
|
|
1127
1133
|
|
|
1128
1134
|
declare module '@tiptap/core' {
|
|
1129
1135
|
interface Commands<ReturnType> {
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
* Insert a tweet
|
|
1133
|
-
* @param options The tweet attributes
|
|
1134
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1135
|
-
*/
|
|
1136
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1137
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1136
|
+
attachment: {
|
|
1137
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -918,26 +918,6 @@ declare module '@tiptap/core' {
|
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
|
|
921
|
-
declare module '@tiptap/core' {
|
|
922
|
-
interface Commands<ReturnType> {
|
|
923
|
-
imageUpload: {
|
|
924
|
-
/**
|
|
925
|
-
* Add an image
|
|
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;
|
|
936
|
-
};
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
|
|
941
921
|
declare module '@tiptap/core' {
|
|
942
922
|
interface Commands<ReturnType> {
|
|
943
923
|
indent: {
|
|
@@ -956,9 +936,9 @@ declare module '@tiptap/core' {
|
|
|
956
936
|
|
|
957
937
|
declare module '@tiptap/core' {
|
|
958
938
|
interface Commands<ReturnType> {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
939
|
+
lineHeight: {
|
|
940
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
941
|
+
unsetLineHeight: () => ReturnType;
|
|
962
942
|
};
|
|
963
943
|
}
|
|
964
944
|
}
|
|
@@ -966,9 +946,9 @@ declare module '@tiptap/core' {
|
|
|
966
946
|
|
|
967
947
|
declare module '@tiptap/core' {
|
|
968
948
|
interface Commands<ReturnType> {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
949
|
+
tableCellBackground: {
|
|
950
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
951
|
+
unsetTableCellBackground: () => ReturnType;
|
|
972
952
|
};
|
|
973
953
|
}
|
|
974
954
|
}
|
|
@@ -976,8 +956,19 @@ declare module '@tiptap/core' {
|
|
|
976
956
|
|
|
977
957
|
declare module '@tiptap/core' {
|
|
978
958
|
interface Commands<ReturnType> {
|
|
979
|
-
|
|
980
|
-
|
|
959
|
+
imageUpload: {
|
|
960
|
+
/**
|
|
961
|
+
* Add an image
|
|
962
|
+
*/
|
|
963
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
964
|
+
/**
|
|
965
|
+
* Update an image
|
|
966
|
+
*/
|
|
967
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
968
|
+
/**
|
|
969
|
+
* Set image alignment
|
|
970
|
+
*/
|
|
971
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
981
972
|
};
|
|
982
973
|
}
|
|
983
974
|
}
|
|
@@ -985,13 +976,8 @@ declare module '@tiptap/core' {
|
|
|
985
976
|
|
|
986
977
|
declare module '@tiptap/core' {
|
|
987
978
|
interface Commands<ReturnType> {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
cols: number;
|
|
991
|
-
}) => ReturnType;
|
|
992
|
-
addColBefore: () => ReturnType;
|
|
993
|
-
addColAfter: () => ReturnType;
|
|
994
|
-
deleteCol: () => ReturnType;
|
|
979
|
+
katex: {
|
|
980
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
995
981
|
};
|
|
996
982
|
}
|
|
997
983
|
}
|
|
@@ -1012,6 +998,15 @@ declare module '@tiptap/core' {
|
|
|
1012
998
|
}
|
|
1013
999
|
|
|
1014
1000
|
|
|
1001
|
+
declare module '@tiptap/core' {
|
|
1002
|
+
interface Commands<ReturnType> {
|
|
1003
|
+
painter: {
|
|
1004
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
|
|
1015
1010
|
declare module '@tiptap/core' {
|
|
1016
1011
|
interface Commands<ReturnType> {
|
|
1017
1012
|
search: {
|
|
@@ -1027,6 +1022,20 @@ declare module '@tiptap/core' {
|
|
|
1027
1022
|
}
|
|
1028
1023
|
|
|
1029
1024
|
|
|
1025
|
+
declare module '@tiptap/core' {
|
|
1026
|
+
interface Commands<ReturnType> {
|
|
1027
|
+
columns: {
|
|
1028
|
+
insertColumns: (attrs?: {
|
|
1029
|
+
cols: number;
|
|
1030
|
+
}) => ReturnType;
|
|
1031
|
+
addColBefore: () => ReturnType;
|
|
1032
|
+
addColAfter: () => ReturnType;
|
|
1033
|
+
deleteCol: () => ReturnType;
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
|
|
1030
1039
|
declare module '@tiptap/core' {
|
|
1031
1040
|
interface Commands<ReturnType> {
|
|
1032
1041
|
emoji: {
|
|
@@ -1041,8 +1050,8 @@ declare module '@tiptap/core' {
|
|
|
1041
1050
|
|
|
1042
1051
|
declare module '@tiptap/core' {
|
|
1043
1052
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1053
|
+
exportWord: {
|
|
1054
|
+
exportToWord: () => ReturnType;
|
|
1046
1055
|
};
|
|
1047
1056
|
}
|
|
1048
1057
|
}
|
|
@@ -1069,17 +1078,9 @@ declare module '@tiptap/core' {
|
|
|
1069
1078
|
|
|
1070
1079
|
declare module '@tiptap/core' {
|
|
1071
1080
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
declare module '@tiptap/core' {
|
|
1080
|
-
interface Commands<ReturnType> {
|
|
1081
|
-
attachment: {
|
|
1082
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1081
|
+
mermaid: {
|
|
1082
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1083
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1083
1084
|
};
|
|
1084
1085
|
}
|
|
1085
1086
|
}
|
|
@@ -1107,9 +1108,14 @@ declare module '@tiptap/core' {
|
|
|
1107
1108
|
|
|
1108
1109
|
declare module '@tiptap/core' {
|
|
1109
1110
|
interface Commands<ReturnType> {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
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;
|
|
1113
1119
|
};
|
|
1114
1120
|
}
|
|
1115
1121
|
}
|
|
@@ -1127,14 +1133,8 @@ declare module '@tiptap/core' {
|
|
|
1127
1133
|
|
|
1128
1134
|
declare module '@tiptap/core' {
|
|
1129
1135
|
interface Commands<ReturnType> {
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
* Insert a tweet
|
|
1133
|
-
* @param options The tweet attributes
|
|
1134
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1135
|
-
*/
|
|
1136
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1137
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1136
|
+
attachment: {
|
|
1137
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
package/lib/locale-bundle.js
CHANGED