reactjs-tiptap-editor-pro 0.2.24 → 0.2.25
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 +70 -70
- package/lib/extension-bundle.d.ts +70 -70
- package/lib/index.d.cts +70 -70
- package/lib/index.d.ts +70 -70
- package/lib/locale-bundle.d.cts +70 -70
- package/lib/locale-bundle.d.ts +70 -70
- package/lib/style.css +1 -0
- package/package.json +1 -1
- package/lib/reactjs-tiptap-editor-pro.css +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -289,6 +289,32 @@ declare module '@tiptap/core' {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
|
|
292
|
+
declare module '@tiptap/core' {
|
|
293
|
+
interface Commands<ReturnType> {
|
|
294
|
+
lineHeight: {
|
|
295
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
296
|
+
unsetLineHeight: () => ReturnType;
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
declare module '@tiptap/core' {
|
|
303
|
+
interface Commands<ReturnType> {
|
|
304
|
+
indent: {
|
|
305
|
+
/**
|
|
306
|
+
* Set the indent attribute
|
|
307
|
+
*/
|
|
308
|
+
indent: () => ReturnType;
|
|
309
|
+
/**
|
|
310
|
+
* Set the outdent attribute
|
|
311
|
+
*/
|
|
312
|
+
outdent: () => ReturnType;
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
|
|
292
318
|
declare module '@tiptap/core' {
|
|
293
319
|
interface Commands<ReturnType> {
|
|
294
320
|
imageUpload: {
|
|
@@ -311,14 +337,9 @@ declare module '@tiptap/core' {
|
|
|
311
337
|
|
|
312
338
|
declare module '@tiptap/core' {
|
|
313
339
|
interface Commands<ReturnType> {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
*/
|
|
318
|
-
setIframe: (options: {
|
|
319
|
-
src: string;
|
|
320
|
-
service: string;
|
|
321
|
-
}) => ReturnType;
|
|
340
|
+
tableCellBackground: {
|
|
341
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
342
|
+
unsetTableCellBackground: () => ReturnType;
|
|
322
343
|
};
|
|
323
344
|
}
|
|
324
345
|
}
|
|
@@ -341,8 +362,13 @@ declare module '@tiptap/core' {
|
|
|
341
362
|
|
|
342
363
|
declare module '@tiptap/core' {
|
|
343
364
|
interface Commands<ReturnType> {
|
|
344
|
-
|
|
345
|
-
|
|
365
|
+
columns: {
|
|
366
|
+
insertColumns: (attrs?: {
|
|
367
|
+
cols: number;
|
|
368
|
+
}) => ReturnType;
|
|
369
|
+
addColBefore: () => ReturnType;
|
|
370
|
+
addColAfter: () => ReturnType;
|
|
371
|
+
deleteCol: () => ReturnType;
|
|
346
372
|
};
|
|
347
373
|
}
|
|
348
374
|
}
|
|
@@ -350,9 +376,8 @@ declare module '@tiptap/core' {
|
|
|
350
376
|
|
|
351
377
|
declare module '@tiptap/core' {
|
|
352
378
|
interface Commands<ReturnType> {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
unsetTableCellBackground: () => ReturnType;
|
|
379
|
+
painter: {
|
|
380
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
356
381
|
};
|
|
357
382
|
}
|
|
358
383
|
}
|
|
@@ -360,15 +385,8 @@ declare module '@tiptap/core' {
|
|
|
360
385
|
|
|
361
386
|
declare module '@tiptap/core' {
|
|
362
387
|
interface Commands<ReturnType> {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
* Set the indent attribute
|
|
366
|
-
*/
|
|
367
|
-
indent: () => ReturnType;
|
|
368
|
-
/**
|
|
369
|
-
* Set the outdent attribute
|
|
370
|
-
*/
|
|
371
|
-
outdent: () => ReturnType;
|
|
388
|
+
katex: {
|
|
389
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
372
390
|
};
|
|
373
391
|
}
|
|
374
392
|
}
|
|
@@ -388,23 +406,14 @@ declare module '@tiptap/core' {
|
|
|
388
406
|
|
|
389
407
|
declare module '@tiptap/core' {
|
|
390
408
|
interface Commands<ReturnType> {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
409
|
+
iframe: {
|
|
410
|
+
/**
|
|
411
|
+
* Add an iframe
|
|
412
|
+
*/
|
|
413
|
+
setIframe: (options: {
|
|
414
|
+
src: string;
|
|
415
|
+
service: string;
|
|
394
416
|
}) => ReturnType;
|
|
395
|
-
addColBefore: () => ReturnType;
|
|
396
|
-
addColAfter: () => ReturnType;
|
|
397
|
-
deleteCol: () => ReturnType;
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
declare module '@tiptap/core' {
|
|
404
|
-
interface Commands<ReturnType> {
|
|
405
|
-
lineHeight: {
|
|
406
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
407
|
-
unsetLineHeight: () => ReturnType;
|
|
408
417
|
};
|
|
409
418
|
}
|
|
410
419
|
}
|
|
@@ -412,23 +421,8 @@ declare module '@tiptap/core' {
|
|
|
412
421
|
|
|
413
422
|
declare module '@tiptap/core' {
|
|
414
423
|
interface Commands<ReturnType> {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
declare module '@tiptap/core' {
|
|
423
|
-
interface Commands<ReturnType> {
|
|
424
|
-
twitter: {
|
|
425
|
-
/**
|
|
426
|
-
* Insert a tweet
|
|
427
|
-
* @param options The tweet attributes
|
|
428
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
429
|
-
*/
|
|
430
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
431
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
424
|
+
exportWord: {
|
|
425
|
+
exportToWord: () => ReturnType;
|
|
432
426
|
};
|
|
433
427
|
}
|
|
434
428
|
}
|
|
@@ -436,8 +430,9 @@ declare module '@tiptap/core' {
|
|
|
436
430
|
|
|
437
431
|
declare module '@tiptap/core' {
|
|
438
432
|
interface Commands<ReturnType> {
|
|
439
|
-
|
|
440
|
-
|
|
433
|
+
tableOfContents: {
|
|
434
|
+
setTableOfContents: () => ReturnType;
|
|
435
|
+
removeTableOfContents: () => ReturnType;
|
|
441
436
|
};
|
|
442
437
|
}
|
|
443
438
|
}
|
|
@@ -445,9 +440,8 @@ declare module '@tiptap/core' {
|
|
|
445
440
|
|
|
446
441
|
declare module '@tiptap/core' {
|
|
447
442
|
interface Commands<ReturnType> {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
443
|
+
excalidraw: {
|
|
444
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
451
445
|
};
|
|
452
446
|
}
|
|
453
447
|
}
|
|
@@ -475,8 +469,9 @@ declare module '@tiptap/core' {
|
|
|
475
469
|
|
|
476
470
|
declare module '@tiptap/core' {
|
|
477
471
|
interface Commands<ReturnType> {
|
|
478
|
-
|
|
479
|
-
|
|
472
|
+
mermaid: {
|
|
473
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
474
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
480
475
|
};
|
|
481
476
|
}
|
|
482
477
|
}
|
|
@@ -484,9 +479,9 @@ declare module '@tiptap/core' {
|
|
|
484
479
|
|
|
485
480
|
declare module '@tiptap/core' {
|
|
486
481
|
interface Commands<ReturnType> {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
482
|
+
drawer: {
|
|
483
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
484
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
490
485
|
};
|
|
491
486
|
}
|
|
492
487
|
}
|
|
@@ -494,9 +489,8 @@ declare module '@tiptap/core' {
|
|
|
494
489
|
|
|
495
490
|
declare module '@tiptap/core' {
|
|
496
491
|
interface Commands<ReturnType> {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
492
|
+
attachment: {
|
|
493
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
500
494
|
};
|
|
501
495
|
}
|
|
502
496
|
}
|
|
@@ -504,8 +498,14 @@ declare module '@tiptap/core' {
|
|
|
504
498
|
|
|
505
499
|
declare module '@tiptap/core' {
|
|
506
500
|
interface Commands<ReturnType> {
|
|
507
|
-
|
|
508
|
-
|
|
501
|
+
twitter: {
|
|
502
|
+
/**
|
|
503
|
+
* Insert a tweet
|
|
504
|
+
* @param options The tweet attributes
|
|
505
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
506
|
+
*/
|
|
507
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
508
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
}
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -918,6 +918,32 @@ declare module '@tiptap/core' {
|
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
|
|
921
|
+
declare module '@tiptap/core' {
|
|
922
|
+
interface Commands<ReturnType> {
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
declare module '@tiptap/core' {
|
|
932
|
+
interface Commands<ReturnType> {
|
|
933
|
+
indent: {
|
|
934
|
+
/**
|
|
935
|
+
* Set the indent attribute
|
|
936
|
+
*/
|
|
937
|
+
indent: () => ReturnType;
|
|
938
|
+
/**
|
|
939
|
+
* Set the outdent attribute
|
|
940
|
+
*/
|
|
941
|
+
outdent: () => ReturnType;
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
|
|
921
947
|
declare module '@tiptap/core' {
|
|
922
948
|
interface Commands<ReturnType> {
|
|
923
949
|
imageUpload: {
|
|
@@ -940,14 +966,9 @@ declare module '@tiptap/core' {
|
|
|
940
966
|
|
|
941
967
|
declare module '@tiptap/core' {
|
|
942
968
|
interface Commands<ReturnType> {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
*/
|
|
947
|
-
setIframe: (options: {
|
|
948
|
-
src: string;
|
|
949
|
-
service: string;
|
|
950
|
-
}) => ReturnType;
|
|
969
|
+
tableCellBackground: {
|
|
970
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
971
|
+
unsetTableCellBackground: () => ReturnType;
|
|
951
972
|
};
|
|
952
973
|
}
|
|
953
974
|
}
|
|
@@ -970,8 +991,13 @@ declare module '@tiptap/core' {
|
|
|
970
991
|
|
|
971
992
|
declare module '@tiptap/core' {
|
|
972
993
|
interface Commands<ReturnType> {
|
|
973
|
-
|
|
974
|
-
|
|
994
|
+
columns: {
|
|
995
|
+
insertColumns: (attrs?: {
|
|
996
|
+
cols: number;
|
|
997
|
+
}) => ReturnType;
|
|
998
|
+
addColBefore: () => ReturnType;
|
|
999
|
+
addColAfter: () => ReturnType;
|
|
1000
|
+
deleteCol: () => ReturnType;
|
|
975
1001
|
};
|
|
976
1002
|
}
|
|
977
1003
|
}
|
|
@@ -979,9 +1005,8 @@ declare module '@tiptap/core' {
|
|
|
979
1005
|
|
|
980
1006
|
declare module '@tiptap/core' {
|
|
981
1007
|
interface Commands<ReturnType> {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
unsetTableCellBackground: () => ReturnType;
|
|
1008
|
+
painter: {
|
|
1009
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
985
1010
|
};
|
|
986
1011
|
}
|
|
987
1012
|
}
|
|
@@ -989,15 +1014,8 @@ declare module '@tiptap/core' {
|
|
|
989
1014
|
|
|
990
1015
|
declare module '@tiptap/core' {
|
|
991
1016
|
interface Commands<ReturnType> {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
* Set the indent attribute
|
|
995
|
-
*/
|
|
996
|
-
indent: () => ReturnType;
|
|
997
|
-
/**
|
|
998
|
-
* Set the outdent attribute
|
|
999
|
-
*/
|
|
1000
|
-
outdent: () => ReturnType;
|
|
1017
|
+
katex: {
|
|
1018
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1001
1019
|
};
|
|
1002
1020
|
}
|
|
1003
1021
|
}
|
|
@@ -1017,23 +1035,14 @@ declare module '@tiptap/core' {
|
|
|
1017
1035
|
|
|
1018
1036
|
declare module '@tiptap/core' {
|
|
1019
1037
|
interface Commands<ReturnType> {
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1038
|
+
iframe: {
|
|
1039
|
+
/**
|
|
1040
|
+
* Add an iframe
|
|
1041
|
+
*/
|
|
1042
|
+
setIframe: (options: {
|
|
1043
|
+
src: string;
|
|
1044
|
+
service: string;
|
|
1023
1045
|
}) => ReturnType;
|
|
1024
|
-
addColBefore: () => ReturnType;
|
|
1025
|
-
addColAfter: () => ReturnType;
|
|
1026
|
-
deleteCol: () => ReturnType;
|
|
1027
|
-
};
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
declare module '@tiptap/core' {
|
|
1033
|
-
interface Commands<ReturnType> {
|
|
1034
|
-
lineHeight: {
|
|
1035
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1036
|
-
unsetLineHeight: () => ReturnType;
|
|
1037
1046
|
};
|
|
1038
1047
|
}
|
|
1039
1048
|
}
|
|
@@ -1041,23 +1050,8 @@ declare module '@tiptap/core' {
|
|
|
1041
1050
|
|
|
1042
1051
|
declare module '@tiptap/core' {
|
|
1043
1052
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
};
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
declare module '@tiptap/core' {
|
|
1052
|
-
interface Commands<ReturnType> {
|
|
1053
|
-
twitter: {
|
|
1054
|
-
/**
|
|
1055
|
-
* Insert a tweet
|
|
1056
|
-
* @param options The tweet attributes
|
|
1057
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1058
|
-
*/
|
|
1059
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1060
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1053
|
+
exportWord: {
|
|
1054
|
+
exportToWord: () => ReturnType;
|
|
1061
1055
|
};
|
|
1062
1056
|
}
|
|
1063
1057
|
}
|
|
@@ -1065,8 +1059,9 @@ declare module '@tiptap/core' {
|
|
|
1065
1059
|
|
|
1066
1060
|
declare module '@tiptap/core' {
|
|
1067
1061
|
interface Commands<ReturnType> {
|
|
1068
|
-
|
|
1069
|
-
|
|
1062
|
+
tableOfContents: {
|
|
1063
|
+
setTableOfContents: () => ReturnType;
|
|
1064
|
+
removeTableOfContents: () => ReturnType;
|
|
1070
1065
|
};
|
|
1071
1066
|
}
|
|
1072
1067
|
}
|
|
@@ -1074,9 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1074
1069
|
|
|
1075
1070
|
declare module '@tiptap/core' {
|
|
1076
1071
|
interface Commands<ReturnType> {
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1072
|
+
excalidraw: {
|
|
1073
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1080
1074
|
};
|
|
1081
1075
|
}
|
|
1082
1076
|
}
|
|
@@ -1104,8 +1098,9 @@ declare module '@tiptap/core' {
|
|
|
1104
1098
|
|
|
1105
1099
|
declare module '@tiptap/core' {
|
|
1106
1100
|
interface Commands<ReturnType> {
|
|
1107
|
-
|
|
1108
|
-
|
|
1101
|
+
mermaid: {
|
|
1102
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1103
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1109
1104
|
};
|
|
1110
1105
|
}
|
|
1111
1106
|
}
|
|
@@ -1113,9 +1108,9 @@ declare module '@tiptap/core' {
|
|
|
1113
1108
|
|
|
1114
1109
|
declare module '@tiptap/core' {
|
|
1115
1110
|
interface Commands<ReturnType> {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1111
|
+
drawer: {
|
|
1112
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1113
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1119
1114
|
};
|
|
1120
1115
|
}
|
|
1121
1116
|
}
|
|
@@ -1123,9 +1118,8 @@ declare module '@tiptap/core' {
|
|
|
1123
1118
|
|
|
1124
1119
|
declare module '@tiptap/core' {
|
|
1125
1120
|
interface Commands<ReturnType> {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1121
|
+
attachment: {
|
|
1122
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1129
1123
|
};
|
|
1130
1124
|
}
|
|
1131
1125
|
}
|
|
@@ -1133,8 +1127,14 @@ declare module '@tiptap/core' {
|
|
|
1133
1127
|
|
|
1134
1128
|
declare module '@tiptap/core' {
|
|
1135
1129
|
interface Commands<ReturnType> {
|
|
1136
|
-
|
|
1137
|
-
|
|
1130
|
+
twitter: {
|
|
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;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -918,6 +918,32 @@ declare module '@tiptap/core' {
|
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
|
|
921
|
+
declare module '@tiptap/core' {
|
|
922
|
+
interface Commands<ReturnType> {
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
declare module '@tiptap/core' {
|
|
932
|
+
interface Commands<ReturnType> {
|
|
933
|
+
indent: {
|
|
934
|
+
/**
|
|
935
|
+
* Set the indent attribute
|
|
936
|
+
*/
|
|
937
|
+
indent: () => ReturnType;
|
|
938
|
+
/**
|
|
939
|
+
* Set the outdent attribute
|
|
940
|
+
*/
|
|
941
|
+
outdent: () => ReturnType;
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
|
|
921
947
|
declare module '@tiptap/core' {
|
|
922
948
|
interface Commands<ReturnType> {
|
|
923
949
|
imageUpload: {
|
|
@@ -940,14 +966,9 @@ declare module '@tiptap/core' {
|
|
|
940
966
|
|
|
941
967
|
declare module '@tiptap/core' {
|
|
942
968
|
interface Commands<ReturnType> {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
*/
|
|
947
|
-
setIframe: (options: {
|
|
948
|
-
src: string;
|
|
949
|
-
service: string;
|
|
950
|
-
}) => ReturnType;
|
|
969
|
+
tableCellBackground: {
|
|
970
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
971
|
+
unsetTableCellBackground: () => ReturnType;
|
|
951
972
|
};
|
|
952
973
|
}
|
|
953
974
|
}
|
|
@@ -970,8 +991,13 @@ declare module '@tiptap/core' {
|
|
|
970
991
|
|
|
971
992
|
declare module '@tiptap/core' {
|
|
972
993
|
interface Commands<ReturnType> {
|
|
973
|
-
|
|
974
|
-
|
|
994
|
+
columns: {
|
|
995
|
+
insertColumns: (attrs?: {
|
|
996
|
+
cols: number;
|
|
997
|
+
}) => ReturnType;
|
|
998
|
+
addColBefore: () => ReturnType;
|
|
999
|
+
addColAfter: () => ReturnType;
|
|
1000
|
+
deleteCol: () => ReturnType;
|
|
975
1001
|
};
|
|
976
1002
|
}
|
|
977
1003
|
}
|
|
@@ -979,9 +1005,8 @@ declare module '@tiptap/core' {
|
|
|
979
1005
|
|
|
980
1006
|
declare module '@tiptap/core' {
|
|
981
1007
|
interface Commands<ReturnType> {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
unsetTableCellBackground: () => ReturnType;
|
|
1008
|
+
painter: {
|
|
1009
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
985
1010
|
};
|
|
986
1011
|
}
|
|
987
1012
|
}
|
|
@@ -989,15 +1014,8 @@ declare module '@tiptap/core' {
|
|
|
989
1014
|
|
|
990
1015
|
declare module '@tiptap/core' {
|
|
991
1016
|
interface Commands<ReturnType> {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
* Set the indent attribute
|
|
995
|
-
*/
|
|
996
|
-
indent: () => ReturnType;
|
|
997
|
-
/**
|
|
998
|
-
* Set the outdent attribute
|
|
999
|
-
*/
|
|
1000
|
-
outdent: () => ReturnType;
|
|
1017
|
+
katex: {
|
|
1018
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1001
1019
|
};
|
|
1002
1020
|
}
|
|
1003
1021
|
}
|
|
@@ -1017,23 +1035,14 @@ declare module '@tiptap/core' {
|
|
|
1017
1035
|
|
|
1018
1036
|
declare module '@tiptap/core' {
|
|
1019
1037
|
interface Commands<ReturnType> {
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1038
|
+
iframe: {
|
|
1039
|
+
/**
|
|
1040
|
+
* Add an iframe
|
|
1041
|
+
*/
|
|
1042
|
+
setIframe: (options: {
|
|
1043
|
+
src: string;
|
|
1044
|
+
service: string;
|
|
1023
1045
|
}) => ReturnType;
|
|
1024
|
-
addColBefore: () => ReturnType;
|
|
1025
|
-
addColAfter: () => ReturnType;
|
|
1026
|
-
deleteCol: () => ReturnType;
|
|
1027
|
-
};
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
declare module '@tiptap/core' {
|
|
1033
|
-
interface Commands<ReturnType> {
|
|
1034
|
-
lineHeight: {
|
|
1035
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1036
|
-
unsetLineHeight: () => ReturnType;
|
|
1037
1046
|
};
|
|
1038
1047
|
}
|
|
1039
1048
|
}
|
|
@@ -1041,23 +1050,8 @@ declare module '@tiptap/core' {
|
|
|
1041
1050
|
|
|
1042
1051
|
declare module '@tiptap/core' {
|
|
1043
1052
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
};
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
declare module '@tiptap/core' {
|
|
1052
|
-
interface Commands<ReturnType> {
|
|
1053
|
-
twitter: {
|
|
1054
|
-
/**
|
|
1055
|
-
* Insert a tweet
|
|
1056
|
-
* @param options The tweet attributes
|
|
1057
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1058
|
-
*/
|
|
1059
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1060
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1053
|
+
exportWord: {
|
|
1054
|
+
exportToWord: () => ReturnType;
|
|
1061
1055
|
};
|
|
1062
1056
|
}
|
|
1063
1057
|
}
|
|
@@ -1065,8 +1059,9 @@ declare module '@tiptap/core' {
|
|
|
1065
1059
|
|
|
1066
1060
|
declare module '@tiptap/core' {
|
|
1067
1061
|
interface Commands<ReturnType> {
|
|
1068
|
-
|
|
1069
|
-
|
|
1062
|
+
tableOfContents: {
|
|
1063
|
+
setTableOfContents: () => ReturnType;
|
|
1064
|
+
removeTableOfContents: () => ReturnType;
|
|
1070
1065
|
};
|
|
1071
1066
|
}
|
|
1072
1067
|
}
|
|
@@ -1074,9 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1074
1069
|
|
|
1075
1070
|
declare module '@tiptap/core' {
|
|
1076
1071
|
interface Commands<ReturnType> {
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1072
|
+
excalidraw: {
|
|
1073
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1080
1074
|
};
|
|
1081
1075
|
}
|
|
1082
1076
|
}
|
|
@@ -1104,8 +1098,9 @@ declare module '@tiptap/core' {
|
|
|
1104
1098
|
|
|
1105
1099
|
declare module '@tiptap/core' {
|
|
1106
1100
|
interface Commands<ReturnType> {
|
|
1107
|
-
|
|
1108
|
-
|
|
1101
|
+
mermaid: {
|
|
1102
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1103
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1109
1104
|
};
|
|
1110
1105
|
}
|
|
1111
1106
|
}
|
|
@@ -1113,9 +1108,9 @@ declare module '@tiptap/core' {
|
|
|
1113
1108
|
|
|
1114
1109
|
declare module '@tiptap/core' {
|
|
1115
1110
|
interface Commands<ReturnType> {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1111
|
+
drawer: {
|
|
1112
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1113
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1119
1114
|
};
|
|
1120
1115
|
}
|
|
1121
1116
|
}
|
|
@@ -1123,9 +1118,8 @@ declare module '@tiptap/core' {
|
|
|
1123
1118
|
|
|
1124
1119
|
declare module '@tiptap/core' {
|
|
1125
1120
|
interface Commands<ReturnType> {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1121
|
+
attachment: {
|
|
1122
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1129
1123
|
};
|
|
1130
1124
|
}
|
|
1131
1125
|
}
|
|
@@ -1133,8 +1127,14 @@ declare module '@tiptap/core' {
|
|
|
1133
1127
|
|
|
1134
1128
|
declare module '@tiptap/core' {
|
|
1135
1129
|
interface Commands<ReturnType> {
|
|
1136
|
-
|
|
1137
|
-
|
|
1130
|
+
twitter: {
|
|
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;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|