reactjs-tiptap-editor-pro 0.2.38 → 0.2.39
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.cjs +1 -1
- package/lib/extension-bundle.d.cts +73 -73
- package/lib/extension-bundle.d.ts +73 -73
- package/lib/extension-bundle.js +7 -6
- package/lib/index.d.cts +73 -73
- package/lib/index.d.ts +73 -73
- package/lib/locale-bundle.d.cts +73 -73
- package/lib/locale-bundle.d.ts +73 -73
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -308,15 +308,24 @@ declare module '@tiptap/core' {
|
|
|
308
308
|
|
|
309
309
|
declare module '@tiptap/core' {
|
|
310
310
|
interface Commands<ReturnType> {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
311
|
+
tableCellBackground: {
|
|
312
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
313
|
+
unsetTableCellBackground: () => ReturnType;
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
declare module '@tiptap/core' {
|
|
320
|
+
interface Commands<ReturnType> {
|
|
321
|
+
iframe: {
|
|
316
322
|
/**
|
|
317
|
-
*
|
|
323
|
+
* Add an iframe
|
|
318
324
|
*/
|
|
319
|
-
|
|
325
|
+
setIframe: (options: {
|
|
326
|
+
src: string;
|
|
327
|
+
service: string;
|
|
328
|
+
}) => ReturnType;
|
|
320
329
|
};
|
|
321
330
|
}
|
|
322
331
|
}
|
|
@@ -324,13 +333,23 @@ declare module '@tiptap/core' {
|
|
|
324
333
|
|
|
325
334
|
declare module '@tiptap/core' {
|
|
326
335
|
interface Commands<ReturnType> {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
336
|
+
painter: {
|
|
337
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
declare module '@tiptap/core' {
|
|
344
|
+
interface Commands<ReturnType> {
|
|
345
|
+
search: {
|
|
346
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
347
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
348
|
+
replace: () => ReturnType;
|
|
349
|
+
replaceAll: () => ReturnType;
|
|
350
|
+
goToPrevSearchResult: () => void;
|
|
351
|
+
goToNextSearchResult: () => void;
|
|
352
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
334
353
|
};
|
|
335
354
|
}
|
|
336
355
|
}
|
|
@@ -348,8 +367,11 @@ declare module '@tiptap/core' {
|
|
|
348
367
|
|
|
349
368
|
declare module '@tiptap/core' {
|
|
350
369
|
interface Commands<ReturnType> {
|
|
351
|
-
|
|
352
|
-
|
|
370
|
+
emoji: {
|
|
371
|
+
setEmoji: (emoji: {
|
|
372
|
+
name: string;
|
|
373
|
+
emoji: string;
|
|
374
|
+
}) => ReturnType;
|
|
353
375
|
};
|
|
354
376
|
}
|
|
355
377
|
}
|
|
@@ -357,14 +379,8 @@ declare module '@tiptap/core' {
|
|
|
357
379
|
|
|
358
380
|
declare module '@tiptap/core' {
|
|
359
381
|
interface Commands<ReturnType> {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
363
|
-
replace: () => ReturnType;
|
|
364
|
-
replaceAll: () => ReturnType;
|
|
365
|
-
goToPrevSearchResult: () => void;
|
|
366
|
-
goToNextSearchResult: () => void;
|
|
367
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
382
|
+
katex: {
|
|
383
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
368
384
|
};
|
|
369
385
|
}
|
|
370
386
|
}
|
|
@@ -392,14 +408,13 @@ declare module '@tiptap/core' {
|
|
|
392
408
|
|
|
393
409
|
declare module '@tiptap/core' {
|
|
394
410
|
interface Commands<ReturnType> {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
*/
|
|
399
|
-
setIframe: (options: {
|
|
400
|
-
src: string;
|
|
401
|
-
service: string;
|
|
411
|
+
columns: {
|
|
412
|
+
insertColumns: (attrs?: {
|
|
413
|
+
cols: number;
|
|
402
414
|
}) => ReturnType;
|
|
415
|
+
addColBefore: () => ReturnType;
|
|
416
|
+
addColAfter: () => ReturnType;
|
|
417
|
+
deleteCol: () => ReturnType;
|
|
403
418
|
};
|
|
404
419
|
}
|
|
405
420
|
}
|
|
@@ -407,11 +422,15 @@ declare module '@tiptap/core' {
|
|
|
407
422
|
|
|
408
423
|
declare module '@tiptap/core' {
|
|
409
424
|
interface Commands<ReturnType> {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
425
|
+
indent: {
|
|
426
|
+
/**
|
|
427
|
+
* Set the indent attribute
|
|
428
|
+
*/
|
|
429
|
+
indent: () => ReturnType;
|
|
430
|
+
/**
|
|
431
|
+
* Set the outdent attribute
|
|
432
|
+
*/
|
|
433
|
+
outdent: () => ReturnType;
|
|
415
434
|
};
|
|
416
435
|
}
|
|
417
436
|
}
|
|
@@ -419,9 +438,19 @@ declare module '@tiptap/core' {
|
|
|
419
438
|
|
|
420
439
|
declare module '@tiptap/core' {
|
|
421
440
|
interface Commands<ReturnType> {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
441
|
+
imageGifUpload: {
|
|
442
|
+
/**
|
|
443
|
+
* Add an image gif
|
|
444
|
+
*/
|
|
445
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
446
|
+
/**
|
|
447
|
+
* Update an image gif
|
|
448
|
+
*/
|
|
449
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
450
|
+
/**
|
|
451
|
+
* Set image alignment
|
|
452
|
+
*/
|
|
453
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
425
454
|
};
|
|
426
455
|
}
|
|
427
456
|
}
|
|
@@ -429,8 +458,9 @@ declare module '@tiptap/core' {
|
|
|
429
458
|
|
|
430
459
|
declare module '@tiptap/core' {
|
|
431
460
|
interface Commands<ReturnType> {
|
|
432
|
-
|
|
433
|
-
|
|
461
|
+
drawer: {
|
|
462
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
463
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
434
464
|
};
|
|
435
465
|
}
|
|
436
466
|
}
|
|
@@ -446,15 +476,6 @@ declare module '@tiptap/core' {
|
|
|
446
476
|
}
|
|
447
477
|
|
|
448
478
|
|
|
449
|
-
declare module '@tiptap/core' {
|
|
450
|
-
interface Commands<ReturnType> {
|
|
451
|
-
exportWord: {
|
|
452
|
-
exportToWord: () => ReturnType;
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
|
|
458
479
|
declare module '@tiptap/core' {
|
|
459
480
|
interface Commands<ReturnType> {
|
|
460
481
|
attachment: {
|
|
@@ -491,29 +512,8 @@ declare module '@tiptap/core' {
|
|
|
491
512
|
|
|
492
513
|
declare module '@tiptap/core' {
|
|
493
514
|
interface Commands<ReturnType> {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
497
|
-
};
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
declare module '@tiptap/core' {
|
|
503
|
-
interface Commands<ReturnType> {
|
|
504
|
-
imageGifUpload: {
|
|
505
|
-
/**
|
|
506
|
-
* Add an image gif
|
|
507
|
-
*/
|
|
508
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
509
|
-
/**
|
|
510
|
-
* Update an image gif
|
|
511
|
-
*/
|
|
512
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
513
|
-
/**
|
|
514
|
-
* Set image alignment
|
|
515
|
-
*/
|
|
516
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
515
|
+
exportWord: {
|
|
516
|
+
exportToWord: () => ReturnType;
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
}
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -920,15 +920,24 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
923
|
+
tableCellBackground: {
|
|
924
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
925
|
+
unsetTableCellBackground: () => ReturnType;
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
declare module '@tiptap/core' {
|
|
932
|
+
interface Commands<ReturnType> {
|
|
933
|
+
iframe: {
|
|
928
934
|
/**
|
|
929
|
-
*
|
|
935
|
+
* Add an iframe
|
|
930
936
|
*/
|
|
931
|
-
|
|
937
|
+
setIframe: (options: {
|
|
938
|
+
src: string;
|
|
939
|
+
service: string;
|
|
940
|
+
}) => ReturnType;
|
|
932
941
|
};
|
|
933
942
|
}
|
|
934
943
|
}
|
|
@@ -936,13 +945,23 @@ declare module '@tiptap/core' {
|
|
|
936
945
|
|
|
937
946
|
declare module '@tiptap/core' {
|
|
938
947
|
interface Commands<ReturnType> {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
948
|
+
painter: {
|
|
949
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
declare module '@tiptap/core' {
|
|
956
|
+
interface Commands<ReturnType> {
|
|
957
|
+
search: {
|
|
958
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
959
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
960
|
+
replace: () => ReturnType;
|
|
961
|
+
replaceAll: () => ReturnType;
|
|
962
|
+
goToPrevSearchResult: () => void;
|
|
963
|
+
goToNextSearchResult: () => void;
|
|
964
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
946
965
|
};
|
|
947
966
|
}
|
|
948
967
|
}
|
|
@@ -960,8 +979,11 @@ declare module '@tiptap/core' {
|
|
|
960
979
|
|
|
961
980
|
declare module '@tiptap/core' {
|
|
962
981
|
interface Commands<ReturnType> {
|
|
963
|
-
|
|
964
|
-
|
|
982
|
+
emoji: {
|
|
983
|
+
setEmoji: (emoji: {
|
|
984
|
+
name: string;
|
|
985
|
+
emoji: string;
|
|
986
|
+
}) => ReturnType;
|
|
965
987
|
};
|
|
966
988
|
}
|
|
967
989
|
}
|
|
@@ -969,14 +991,8 @@ declare module '@tiptap/core' {
|
|
|
969
991
|
|
|
970
992
|
declare module '@tiptap/core' {
|
|
971
993
|
interface Commands<ReturnType> {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
975
|
-
replace: () => ReturnType;
|
|
976
|
-
replaceAll: () => ReturnType;
|
|
977
|
-
goToPrevSearchResult: () => void;
|
|
978
|
-
goToNextSearchResult: () => void;
|
|
979
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
994
|
+
katex: {
|
|
995
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
980
996
|
};
|
|
981
997
|
}
|
|
982
998
|
}
|
|
@@ -1004,14 +1020,13 @@ declare module '@tiptap/core' {
|
|
|
1004
1020
|
|
|
1005
1021
|
declare module '@tiptap/core' {
|
|
1006
1022
|
interface Commands<ReturnType> {
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
*/
|
|
1011
|
-
setIframe: (options: {
|
|
1012
|
-
src: string;
|
|
1013
|
-
service: string;
|
|
1023
|
+
columns: {
|
|
1024
|
+
insertColumns: (attrs?: {
|
|
1025
|
+
cols: number;
|
|
1014
1026
|
}) => ReturnType;
|
|
1027
|
+
addColBefore: () => ReturnType;
|
|
1028
|
+
addColAfter: () => ReturnType;
|
|
1029
|
+
deleteCol: () => ReturnType;
|
|
1015
1030
|
};
|
|
1016
1031
|
}
|
|
1017
1032
|
}
|
|
@@ -1019,11 +1034,15 @@ declare module '@tiptap/core' {
|
|
|
1019
1034
|
|
|
1020
1035
|
declare module '@tiptap/core' {
|
|
1021
1036
|
interface Commands<ReturnType> {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1037
|
+
indent: {
|
|
1038
|
+
/**
|
|
1039
|
+
* Set the indent attribute
|
|
1040
|
+
*/
|
|
1041
|
+
indent: () => ReturnType;
|
|
1042
|
+
/**
|
|
1043
|
+
* Set the outdent attribute
|
|
1044
|
+
*/
|
|
1045
|
+
outdent: () => ReturnType;
|
|
1027
1046
|
};
|
|
1028
1047
|
}
|
|
1029
1048
|
}
|
|
@@ -1031,9 +1050,19 @@ declare module '@tiptap/core' {
|
|
|
1031
1050
|
|
|
1032
1051
|
declare module '@tiptap/core' {
|
|
1033
1052
|
interface Commands<ReturnType> {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1053
|
+
imageGifUpload: {
|
|
1054
|
+
/**
|
|
1055
|
+
* Add an image gif
|
|
1056
|
+
*/
|
|
1057
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1058
|
+
/**
|
|
1059
|
+
* Update an image gif
|
|
1060
|
+
*/
|
|
1061
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1062
|
+
/**
|
|
1063
|
+
* Set image alignment
|
|
1064
|
+
*/
|
|
1065
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1037
1066
|
};
|
|
1038
1067
|
}
|
|
1039
1068
|
}
|
|
@@ -1041,8 +1070,9 @@ declare module '@tiptap/core' {
|
|
|
1041
1070
|
|
|
1042
1071
|
declare module '@tiptap/core' {
|
|
1043
1072
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1073
|
+
drawer: {
|
|
1074
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1075
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1046
1076
|
};
|
|
1047
1077
|
}
|
|
1048
1078
|
}
|
|
@@ -1058,15 +1088,6 @@ declare module '@tiptap/core' {
|
|
|
1058
1088
|
}
|
|
1059
1089
|
|
|
1060
1090
|
|
|
1061
|
-
declare module '@tiptap/core' {
|
|
1062
|
-
interface Commands<ReturnType> {
|
|
1063
|
-
exportWord: {
|
|
1064
|
-
exportToWord: () => ReturnType;
|
|
1065
|
-
};
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
1091
|
declare module '@tiptap/core' {
|
|
1071
1092
|
interface Commands<ReturnType> {
|
|
1072
1093
|
attachment: {
|
|
@@ -1103,29 +1124,8 @@ declare module '@tiptap/core' {
|
|
|
1103
1124
|
|
|
1104
1125
|
declare module '@tiptap/core' {
|
|
1105
1126
|
interface Commands<ReturnType> {
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1109
|
-
};
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
declare module '@tiptap/core' {
|
|
1115
|
-
interface Commands<ReturnType> {
|
|
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;
|
|
1127
|
+
exportWord: {
|
|
1128
|
+
exportToWord: () => ReturnType;
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -920,15 +920,24 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
923
|
+
tableCellBackground: {
|
|
924
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
925
|
+
unsetTableCellBackground: () => ReturnType;
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
declare module '@tiptap/core' {
|
|
932
|
+
interface Commands<ReturnType> {
|
|
933
|
+
iframe: {
|
|
928
934
|
/**
|
|
929
|
-
*
|
|
935
|
+
* Add an iframe
|
|
930
936
|
*/
|
|
931
|
-
|
|
937
|
+
setIframe: (options: {
|
|
938
|
+
src: string;
|
|
939
|
+
service: string;
|
|
940
|
+
}) => ReturnType;
|
|
932
941
|
};
|
|
933
942
|
}
|
|
934
943
|
}
|
|
@@ -936,13 +945,23 @@ declare module '@tiptap/core' {
|
|
|
936
945
|
|
|
937
946
|
declare module '@tiptap/core' {
|
|
938
947
|
interface Commands<ReturnType> {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
948
|
+
painter: {
|
|
949
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
declare module '@tiptap/core' {
|
|
956
|
+
interface Commands<ReturnType> {
|
|
957
|
+
search: {
|
|
958
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
959
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
960
|
+
replace: () => ReturnType;
|
|
961
|
+
replaceAll: () => ReturnType;
|
|
962
|
+
goToPrevSearchResult: () => void;
|
|
963
|
+
goToNextSearchResult: () => void;
|
|
964
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
946
965
|
};
|
|
947
966
|
}
|
|
948
967
|
}
|
|
@@ -960,8 +979,11 @@ declare module '@tiptap/core' {
|
|
|
960
979
|
|
|
961
980
|
declare module '@tiptap/core' {
|
|
962
981
|
interface Commands<ReturnType> {
|
|
963
|
-
|
|
964
|
-
|
|
982
|
+
emoji: {
|
|
983
|
+
setEmoji: (emoji: {
|
|
984
|
+
name: string;
|
|
985
|
+
emoji: string;
|
|
986
|
+
}) => ReturnType;
|
|
965
987
|
};
|
|
966
988
|
}
|
|
967
989
|
}
|
|
@@ -969,14 +991,8 @@ declare module '@tiptap/core' {
|
|
|
969
991
|
|
|
970
992
|
declare module '@tiptap/core' {
|
|
971
993
|
interface Commands<ReturnType> {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
975
|
-
replace: () => ReturnType;
|
|
976
|
-
replaceAll: () => ReturnType;
|
|
977
|
-
goToPrevSearchResult: () => void;
|
|
978
|
-
goToNextSearchResult: () => void;
|
|
979
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
994
|
+
katex: {
|
|
995
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
980
996
|
};
|
|
981
997
|
}
|
|
982
998
|
}
|
|
@@ -1004,14 +1020,13 @@ declare module '@tiptap/core' {
|
|
|
1004
1020
|
|
|
1005
1021
|
declare module '@tiptap/core' {
|
|
1006
1022
|
interface Commands<ReturnType> {
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
*/
|
|
1011
|
-
setIframe: (options: {
|
|
1012
|
-
src: string;
|
|
1013
|
-
service: string;
|
|
1023
|
+
columns: {
|
|
1024
|
+
insertColumns: (attrs?: {
|
|
1025
|
+
cols: number;
|
|
1014
1026
|
}) => ReturnType;
|
|
1027
|
+
addColBefore: () => ReturnType;
|
|
1028
|
+
addColAfter: () => ReturnType;
|
|
1029
|
+
deleteCol: () => ReturnType;
|
|
1015
1030
|
};
|
|
1016
1031
|
}
|
|
1017
1032
|
}
|
|
@@ -1019,11 +1034,15 @@ declare module '@tiptap/core' {
|
|
|
1019
1034
|
|
|
1020
1035
|
declare module '@tiptap/core' {
|
|
1021
1036
|
interface Commands<ReturnType> {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1037
|
+
indent: {
|
|
1038
|
+
/**
|
|
1039
|
+
* Set the indent attribute
|
|
1040
|
+
*/
|
|
1041
|
+
indent: () => ReturnType;
|
|
1042
|
+
/**
|
|
1043
|
+
* Set the outdent attribute
|
|
1044
|
+
*/
|
|
1045
|
+
outdent: () => ReturnType;
|
|
1027
1046
|
};
|
|
1028
1047
|
}
|
|
1029
1048
|
}
|
|
@@ -1031,9 +1050,19 @@ declare module '@tiptap/core' {
|
|
|
1031
1050
|
|
|
1032
1051
|
declare module '@tiptap/core' {
|
|
1033
1052
|
interface Commands<ReturnType> {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1053
|
+
imageGifUpload: {
|
|
1054
|
+
/**
|
|
1055
|
+
* Add an image gif
|
|
1056
|
+
*/
|
|
1057
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1058
|
+
/**
|
|
1059
|
+
* Update an image gif
|
|
1060
|
+
*/
|
|
1061
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1062
|
+
/**
|
|
1063
|
+
* Set image alignment
|
|
1064
|
+
*/
|
|
1065
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1037
1066
|
};
|
|
1038
1067
|
}
|
|
1039
1068
|
}
|
|
@@ -1041,8 +1070,9 @@ declare module '@tiptap/core' {
|
|
|
1041
1070
|
|
|
1042
1071
|
declare module '@tiptap/core' {
|
|
1043
1072
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1073
|
+
drawer: {
|
|
1074
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1075
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1046
1076
|
};
|
|
1047
1077
|
}
|
|
1048
1078
|
}
|
|
@@ -1058,15 +1088,6 @@ declare module '@tiptap/core' {
|
|
|
1058
1088
|
}
|
|
1059
1089
|
|
|
1060
1090
|
|
|
1061
|
-
declare module '@tiptap/core' {
|
|
1062
|
-
interface Commands<ReturnType> {
|
|
1063
|
-
exportWord: {
|
|
1064
|
-
exportToWord: () => ReturnType;
|
|
1065
|
-
};
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
1091
|
declare module '@tiptap/core' {
|
|
1071
1092
|
interface Commands<ReturnType> {
|
|
1072
1093
|
attachment: {
|
|
@@ -1103,29 +1124,8 @@ declare module '@tiptap/core' {
|
|
|
1103
1124
|
|
|
1104
1125
|
declare module '@tiptap/core' {
|
|
1105
1126
|
interface Commands<ReturnType> {
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1109
|
-
};
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
declare module '@tiptap/core' {
|
|
1115
|
-
interface Commands<ReturnType> {
|
|
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;
|
|
1127
|
+
exportWord: {
|
|
1128
|
+
exportToWord: () => ReturnType;
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
package/package.json
CHANGED