reactjs-tiptap-editor-pro 0.2.25 → 0.2.26
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-DlFgd8H2.cjs +141 -0
- package/lib/{RichTextEditor-Bxdp3pW3.js → RichTextEditor-iBDjgtlT.js} +3328 -2840
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +61 -61
- package/lib/extension-bundle.d.ts +61 -61
- package/lib/extension-bundle.js +713 -889
- package/lib/{index-D-rys8BA.cjs → index-DV-nXpU1.cjs} +1 -1
- package/lib/{index-PJxla8pp.js → index-M6H3FoBi.js} +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +61 -61
- package/lib/index.d.ts +61 -61
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +61 -61
- package/lib/locale-bundle.d.ts +61 -61
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -1
- package/lib/{tiptap-Kst3Ray3.js → tiptap-DkWHMWDt.js} +57 -93
- package/lib/{tiptap-Bzsbnr3f.cjs → tiptap-gBG-1T-V.cjs} +11 -11
- package/lib/{vendor-LvbrNFNL.cjs → vendor-BJ0Yf78E.cjs} +4 -4
- package/lib/{vendor-tDefVoN_.js → vendor-Cpa6z-M0.js} +8 -7
- package/package.json +1 -1
- package/lib/RichTextEditor-zOI60NFQ.cjs +0 -141
package/lib/index.d.ts
CHANGED
|
@@ -291,9 +291,9 @@ declare module '@tiptap/core' {
|
|
|
291
291
|
|
|
292
292
|
declare module '@tiptap/core' {
|
|
293
293
|
interface Commands<ReturnType> {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
tableCellBackground: {
|
|
295
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
296
|
+
unsetTableCellBackground: () => ReturnType;
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
}
|
|
@@ -337,9 +337,9 @@ declare module '@tiptap/core' {
|
|
|
337
337
|
|
|
338
338
|
declare module '@tiptap/core' {
|
|
339
339
|
interface Commands<ReturnType> {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
lineHeight: {
|
|
341
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
342
|
+
unsetLineHeight: () => ReturnType;
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
345
|
}
|
|
@@ -362,13 +362,9 @@ declare module '@tiptap/core' {
|
|
|
362
362
|
|
|
363
363
|
declare module '@tiptap/core' {
|
|
364
364
|
interface Commands<ReturnType> {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}) => ReturnType;
|
|
369
|
-
addColBefore: () => ReturnType;
|
|
370
|
-
addColAfter: () => ReturnType;
|
|
371
|
-
deleteCol: () => ReturnType;
|
|
365
|
+
tableOfContents: {
|
|
366
|
+
setTableOfContents: () => ReturnType;
|
|
367
|
+
removeTableOfContents: () => ReturnType;
|
|
372
368
|
};
|
|
373
369
|
}
|
|
374
370
|
}
|
|
@@ -376,8 +372,14 @@ declare module '@tiptap/core' {
|
|
|
376
372
|
|
|
377
373
|
declare module '@tiptap/core' {
|
|
378
374
|
interface Commands<ReturnType> {
|
|
379
|
-
|
|
380
|
-
|
|
375
|
+
iframe: {
|
|
376
|
+
/**
|
|
377
|
+
* Add an iframe
|
|
378
|
+
*/
|
|
379
|
+
setIframe: (options: {
|
|
380
|
+
src: string;
|
|
381
|
+
service: string;
|
|
382
|
+
}) => ReturnType;
|
|
381
383
|
};
|
|
382
384
|
}
|
|
383
385
|
}
|
|
@@ -385,8 +387,13 @@ declare module '@tiptap/core' {
|
|
|
385
387
|
|
|
386
388
|
declare module '@tiptap/core' {
|
|
387
389
|
interface Commands<ReturnType> {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
+
columns: {
|
|
391
|
+
insertColumns: (attrs?: {
|
|
392
|
+
cols: number;
|
|
393
|
+
}) => ReturnType;
|
|
394
|
+
addColBefore: () => ReturnType;
|
|
395
|
+
addColAfter: () => ReturnType;
|
|
396
|
+
deleteCol: () => ReturnType;
|
|
390
397
|
};
|
|
391
398
|
}
|
|
392
399
|
}
|
|
@@ -394,11 +401,8 @@ declare module '@tiptap/core' {
|
|
|
394
401
|
|
|
395
402
|
declare module '@tiptap/core' {
|
|
396
403
|
interface Commands<ReturnType> {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
name: string;
|
|
400
|
-
emoji: string;
|
|
401
|
-
}) => ReturnType;
|
|
404
|
+
exportWord: {
|
|
405
|
+
exportToWord: () => ReturnType;
|
|
402
406
|
};
|
|
403
407
|
}
|
|
404
408
|
}
|
|
@@ -406,14 +410,8 @@ declare module '@tiptap/core' {
|
|
|
406
410
|
|
|
407
411
|
declare module '@tiptap/core' {
|
|
408
412
|
interface Commands<ReturnType> {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
* Add an iframe
|
|
412
|
-
*/
|
|
413
|
-
setIframe: (options: {
|
|
414
|
-
src: string;
|
|
415
|
-
service: string;
|
|
416
|
-
}) => ReturnType;
|
|
413
|
+
painter: {
|
|
414
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
417
415
|
};
|
|
418
416
|
}
|
|
419
417
|
}
|
|
@@ -421,8 +419,11 @@ declare module '@tiptap/core' {
|
|
|
421
419
|
|
|
422
420
|
declare module '@tiptap/core' {
|
|
423
421
|
interface Commands<ReturnType> {
|
|
424
|
-
|
|
425
|
-
|
|
422
|
+
emoji: {
|
|
423
|
+
setEmoji: (emoji: {
|
|
424
|
+
name: string;
|
|
425
|
+
emoji: string;
|
|
426
|
+
}) => ReturnType;
|
|
426
427
|
};
|
|
427
428
|
}
|
|
428
429
|
}
|
|
@@ -430,9 +431,8 @@ declare module '@tiptap/core' {
|
|
|
430
431
|
|
|
431
432
|
declare module '@tiptap/core' {
|
|
432
433
|
interface Commands<ReturnType> {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
removeTableOfContents: () => ReturnType;
|
|
434
|
+
excalidraw: {
|
|
435
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
438
|
}
|
|
@@ -440,8 +440,8 @@ declare module '@tiptap/core' {
|
|
|
440
440
|
|
|
441
441
|
declare module '@tiptap/core' {
|
|
442
442
|
interface Commands<ReturnType> {
|
|
443
|
-
|
|
444
|
-
|
|
443
|
+
katex: {
|
|
444
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
447
|
}
|
|
@@ -449,19 +449,8 @@ declare module '@tiptap/core' {
|
|
|
449
449
|
|
|
450
450
|
declare module '@tiptap/core' {
|
|
451
451
|
interface Commands<ReturnType> {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
* Add an image gif
|
|
455
|
-
*/
|
|
456
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
457
|
-
/**
|
|
458
|
-
* Update an image gif
|
|
459
|
-
*/
|
|
460
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
461
|
-
/**
|
|
462
|
-
* Set image alignment
|
|
463
|
-
*/
|
|
464
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
452
|
+
attachment: {
|
|
453
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
465
454
|
};
|
|
466
455
|
}
|
|
467
456
|
}
|
|
@@ -469,9 +458,14 @@ declare module '@tiptap/core' {
|
|
|
469
458
|
|
|
470
459
|
declare module '@tiptap/core' {
|
|
471
460
|
interface Commands<ReturnType> {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
461
|
+
twitter: {
|
|
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;
|
|
475
469
|
};
|
|
476
470
|
}
|
|
477
471
|
}
|
|
@@ -489,8 +483,9 @@ declare module '@tiptap/core' {
|
|
|
489
483
|
|
|
490
484
|
declare module '@tiptap/core' {
|
|
491
485
|
interface Commands<ReturnType> {
|
|
492
|
-
|
|
493
|
-
|
|
486
|
+
mermaid: {
|
|
487
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
488
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
494
489
|
};
|
|
495
490
|
}
|
|
496
491
|
}
|
|
@@ -498,14 +493,19 @@ declare module '@tiptap/core' {
|
|
|
498
493
|
|
|
499
494
|
declare module '@tiptap/core' {
|
|
500
495
|
interface Commands<ReturnType> {
|
|
501
|
-
|
|
496
|
+
imageGifUpload: {
|
|
502
497
|
/**
|
|
503
|
-
*
|
|
504
|
-
* @param options The tweet attributes
|
|
505
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
498
|
+
* Add an image gif
|
|
506
499
|
*/
|
|
507
|
-
|
|
508
|
-
|
|
500
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
501
|
+
/**
|
|
502
|
+
* Update an image gif
|
|
503
|
+
*/
|
|
504
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
505
|
+
/**
|
|
506
|
+
* Set image alignment
|
|
507
|
+
*/
|
|
508
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
}
|
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-iBDjgtlT.js";
|
|
3
|
+
import { B as x } from "./tiptap-DkWHMWDt.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-DV-nXpU1.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
|
@@ -920,9 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
923
|
+
tableCellBackground: {
|
|
924
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
925
|
+
unsetTableCellBackground: () => ReturnType;
|
|
926
926
|
};
|
|
927
927
|
}
|
|
928
928
|
}
|
|
@@ -966,9 +966,9 @@ declare module '@tiptap/core' {
|
|
|
966
966
|
|
|
967
967
|
declare module '@tiptap/core' {
|
|
968
968
|
interface Commands<ReturnType> {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
969
|
+
lineHeight: {
|
|
970
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
971
|
+
unsetLineHeight: () => ReturnType;
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
974
|
}
|
|
@@ -991,13 +991,9 @@ declare module '@tiptap/core' {
|
|
|
991
991
|
|
|
992
992
|
declare module '@tiptap/core' {
|
|
993
993
|
interface Commands<ReturnType> {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
}) => ReturnType;
|
|
998
|
-
addColBefore: () => ReturnType;
|
|
999
|
-
addColAfter: () => ReturnType;
|
|
1000
|
-
deleteCol: () => ReturnType;
|
|
994
|
+
tableOfContents: {
|
|
995
|
+
setTableOfContents: () => ReturnType;
|
|
996
|
+
removeTableOfContents: () => ReturnType;
|
|
1001
997
|
};
|
|
1002
998
|
}
|
|
1003
999
|
}
|
|
@@ -1005,8 +1001,14 @@ declare module '@tiptap/core' {
|
|
|
1005
1001
|
|
|
1006
1002
|
declare module '@tiptap/core' {
|
|
1007
1003
|
interface Commands<ReturnType> {
|
|
1008
|
-
|
|
1009
|
-
|
|
1004
|
+
iframe: {
|
|
1005
|
+
/**
|
|
1006
|
+
* Add an iframe
|
|
1007
|
+
*/
|
|
1008
|
+
setIframe: (options: {
|
|
1009
|
+
src: string;
|
|
1010
|
+
service: string;
|
|
1011
|
+
}) => ReturnType;
|
|
1010
1012
|
};
|
|
1011
1013
|
}
|
|
1012
1014
|
}
|
|
@@ -1014,8 +1016,13 @@ declare module '@tiptap/core' {
|
|
|
1014
1016
|
|
|
1015
1017
|
declare module '@tiptap/core' {
|
|
1016
1018
|
interface Commands<ReturnType> {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
+
columns: {
|
|
1020
|
+
insertColumns: (attrs?: {
|
|
1021
|
+
cols: number;
|
|
1022
|
+
}) => ReturnType;
|
|
1023
|
+
addColBefore: () => ReturnType;
|
|
1024
|
+
addColAfter: () => ReturnType;
|
|
1025
|
+
deleteCol: () => ReturnType;
|
|
1019
1026
|
};
|
|
1020
1027
|
}
|
|
1021
1028
|
}
|
|
@@ -1023,11 +1030,8 @@ declare module '@tiptap/core' {
|
|
|
1023
1030
|
|
|
1024
1031
|
declare module '@tiptap/core' {
|
|
1025
1032
|
interface Commands<ReturnType> {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
name: string;
|
|
1029
|
-
emoji: string;
|
|
1030
|
-
}) => ReturnType;
|
|
1033
|
+
exportWord: {
|
|
1034
|
+
exportToWord: () => ReturnType;
|
|
1031
1035
|
};
|
|
1032
1036
|
}
|
|
1033
1037
|
}
|
|
@@ -1035,14 +1039,8 @@ declare module '@tiptap/core' {
|
|
|
1035
1039
|
|
|
1036
1040
|
declare module '@tiptap/core' {
|
|
1037
1041
|
interface Commands<ReturnType> {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
* Add an iframe
|
|
1041
|
-
*/
|
|
1042
|
-
setIframe: (options: {
|
|
1043
|
-
src: string;
|
|
1044
|
-
service: string;
|
|
1045
|
-
}) => ReturnType;
|
|
1042
|
+
painter: {
|
|
1043
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1046
1044
|
};
|
|
1047
1045
|
}
|
|
1048
1046
|
}
|
|
@@ -1050,8 +1048,11 @@ declare module '@tiptap/core' {
|
|
|
1050
1048
|
|
|
1051
1049
|
declare module '@tiptap/core' {
|
|
1052
1050
|
interface Commands<ReturnType> {
|
|
1053
|
-
|
|
1054
|
-
|
|
1051
|
+
emoji: {
|
|
1052
|
+
setEmoji: (emoji: {
|
|
1053
|
+
name: string;
|
|
1054
|
+
emoji: string;
|
|
1055
|
+
}) => ReturnType;
|
|
1055
1056
|
};
|
|
1056
1057
|
}
|
|
1057
1058
|
}
|
|
@@ -1059,9 +1060,8 @@ declare module '@tiptap/core' {
|
|
|
1059
1060
|
|
|
1060
1061
|
declare module '@tiptap/core' {
|
|
1061
1062
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
removeTableOfContents: () => ReturnType;
|
|
1063
|
+
excalidraw: {
|
|
1064
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
@@ -1069,8 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1069
1069
|
|
|
1070
1070
|
declare module '@tiptap/core' {
|
|
1071
1071
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1072
|
+
katex: {
|
|
1073
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
@@ -1078,19 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1078
1078
|
|
|
1079
1079
|
declare module '@tiptap/core' {
|
|
1080
1080
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
* Add an image gif
|
|
1084
|
-
*/
|
|
1085
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1086
|
-
/**
|
|
1087
|
-
* Update an image gif
|
|
1088
|
-
*/
|
|
1089
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1090
|
-
/**
|
|
1091
|
-
* Set image alignment
|
|
1092
|
-
*/
|
|
1093
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1094
1083
|
};
|
|
1095
1084
|
}
|
|
1096
1085
|
}
|
|
@@ -1098,9 +1087,14 @@ declare module '@tiptap/core' {
|
|
|
1098
1087
|
|
|
1099
1088
|
declare module '@tiptap/core' {
|
|
1100
1089
|
interface Commands<ReturnType> {
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1090
|
+
twitter: {
|
|
1091
|
+
/**
|
|
1092
|
+
* Insert a tweet
|
|
1093
|
+
* @param options The tweet attributes
|
|
1094
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1095
|
+
*/
|
|
1096
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1097
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1104
1098
|
};
|
|
1105
1099
|
}
|
|
1106
1100
|
}
|
|
@@ -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/lib/locale-bundle.d.ts
CHANGED
|
@@ -920,9 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
923
|
+
tableCellBackground: {
|
|
924
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
925
|
+
unsetTableCellBackground: () => ReturnType;
|
|
926
926
|
};
|
|
927
927
|
}
|
|
928
928
|
}
|
|
@@ -966,9 +966,9 @@ declare module '@tiptap/core' {
|
|
|
966
966
|
|
|
967
967
|
declare module '@tiptap/core' {
|
|
968
968
|
interface Commands<ReturnType> {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
969
|
+
lineHeight: {
|
|
970
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
971
|
+
unsetLineHeight: () => ReturnType;
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
974
|
}
|
|
@@ -991,13 +991,9 @@ declare module '@tiptap/core' {
|
|
|
991
991
|
|
|
992
992
|
declare module '@tiptap/core' {
|
|
993
993
|
interface Commands<ReturnType> {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
}) => ReturnType;
|
|
998
|
-
addColBefore: () => ReturnType;
|
|
999
|
-
addColAfter: () => ReturnType;
|
|
1000
|
-
deleteCol: () => ReturnType;
|
|
994
|
+
tableOfContents: {
|
|
995
|
+
setTableOfContents: () => ReturnType;
|
|
996
|
+
removeTableOfContents: () => ReturnType;
|
|
1001
997
|
};
|
|
1002
998
|
}
|
|
1003
999
|
}
|
|
@@ -1005,8 +1001,14 @@ declare module '@tiptap/core' {
|
|
|
1005
1001
|
|
|
1006
1002
|
declare module '@tiptap/core' {
|
|
1007
1003
|
interface Commands<ReturnType> {
|
|
1008
|
-
|
|
1009
|
-
|
|
1004
|
+
iframe: {
|
|
1005
|
+
/**
|
|
1006
|
+
* Add an iframe
|
|
1007
|
+
*/
|
|
1008
|
+
setIframe: (options: {
|
|
1009
|
+
src: string;
|
|
1010
|
+
service: string;
|
|
1011
|
+
}) => ReturnType;
|
|
1010
1012
|
};
|
|
1011
1013
|
}
|
|
1012
1014
|
}
|
|
@@ -1014,8 +1016,13 @@ declare module '@tiptap/core' {
|
|
|
1014
1016
|
|
|
1015
1017
|
declare module '@tiptap/core' {
|
|
1016
1018
|
interface Commands<ReturnType> {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
+
columns: {
|
|
1020
|
+
insertColumns: (attrs?: {
|
|
1021
|
+
cols: number;
|
|
1022
|
+
}) => ReturnType;
|
|
1023
|
+
addColBefore: () => ReturnType;
|
|
1024
|
+
addColAfter: () => ReturnType;
|
|
1025
|
+
deleteCol: () => ReturnType;
|
|
1019
1026
|
};
|
|
1020
1027
|
}
|
|
1021
1028
|
}
|
|
@@ -1023,11 +1030,8 @@ declare module '@tiptap/core' {
|
|
|
1023
1030
|
|
|
1024
1031
|
declare module '@tiptap/core' {
|
|
1025
1032
|
interface Commands<ReturnType> {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
name: string;
|
|
1029
|
-
emoji: string;
|
|
1030
|
-
}) => ReturnType;
|
|
1033
|
+
exportWord: {
|
|
1034
|
+
exportToWord: () => ReturnType;
|
|
1031
1035
|
};
|
|
1032
1036
|
}
|
|
1033
1037
|
}
|
|
@@ -1035,14 +1039,8 @@ declare module '@tiptap/core' {
|
|
|
1035
1039
|
|
|
1036
1040
|
declare module '@tiptap/core' {
|
|
1037
1041
|
interface Commands<ReturnType> {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
* Add an iframe
|
|
1041
|
-
*/
|
|
1042
|
-
setIframe: (options: {
|
|
1043
|
-
src: string;
|
|
1044
|
-
service: string;
|
|
1045
|
-
}) => ReturnType;
|
|
1042
|
+
painter: {
|
|
1043
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1046
1044
|
};
|
|
1047
1045
|
}
|
|
1048
1046
|
}
|
|
@@ -1050,8 +1048,11 @@ declare module '@tiptap/core' {
|
|
|
1050
1048
|
|
|
1051
1049
|
declare module '@tiptap/core' {
|
|
1052
1050
|
interface Commands<ReturnType> {
|
|
1053
|
-
|
|
1054
|
-
|
|
1051
|
+
emoji: {
|
|
1052
|
+
setEmoji: (emoji: {
|
|
1053
|
+
name: string;
|
|
1054
|
+
emoji: string;
|
|
1055
|
+
}) => ReturnType;
|
|
1055
1056
|
};
|
|
1056
1057
|
}
|
|
1057
1058
|
}
|
|
@@ -1059,9 +1060,8 @@ declare module '@tiptap/core' {
|
|
|
1059
1060
|
|
|
1060
1061
|
declare module '@tiptap/core' {
|
|
1061
1062
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
removeTableOfContents: () => ReturnType;
|
|
1063
|
+
excalidraw: {
|
|
1064
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
@@ -1069,8 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1069
1069
|
|
|
1070
1070
|
declare module '@tiptap/core' {
|
|
1071
1071
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1072
|
+
katex: {
|
|
1073
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
@@ -1078,19 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1078
1078
|
|
|
1079
1079
|
declare module '@tiptap/core' {
|
|
1080
1080
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
* Add an image gif
|
|
1084
|
-
*/
|
|
1085
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1086
|
-
/**
|
|
1087
|
-
* Update an image gif
|
|
1088
|
-
*/
|
|
1089
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1090
|
-
/**
|
|
1091
|
-
* Set image alignment
|
|
1092
|
-
*/
|
|
1093
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1094
1083
|
};
|
|
1095
1084
|
}
|
|
1096
1085
|
}
|
|
@@ -1098,9 +1087,14 @@ declare module '@tiptap/core' {
|
|
|
1098
1087
|
|
|
1099
1088
|
declare module '@tiptap/core' {
|
|
1100
1089
|
interface Commands<ReturnType> {
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1090
|
+
twitter: {
|
|
1091
|
+
/**
|
|
1092
|
+
* Insert a tweet
|
|
1093
|
+
* @param options The tweet attributes
|
|
1094
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1095
|
+
*/
|
|
1096
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1097
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1104
1098
|
};
|
|
1105
1099
|
}
|
|
1106
1100
|
}
|
|
@@ -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/lib/locale-bundle.js
CHANGED