reactjs-tiptap-editor-pro 0.2.24 → 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 +74 -74
- package/lib/extension-bundle.d.ts +74 -74
- 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 +74 -74
- package/lib/index.d.ts +74 -74
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +74 -74
- package/lib/locale-bundle.d.ts +74 -74
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -0
- 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/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
|
+
tableCellBackground: {
|
|
295
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
296
|
+
unsetTableCellBackground: () => 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
|
+
lineHeight: {
|
|
341
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
342
|
+
unsetLineHeight: () => ReturnType;
|
|
322
343
|
};
|
|
323
344
|
}
|
|
324
345
|
}
|
|
@@ -341,8 +362,9 @@ declare module '@tiptap/core' {
|
|
|
341
362
|
|
|
342
363
|
declare module '@tiptap/core' {
|
|
343
364
|
interface Commands<ReturnType> {
|
|
344
|
-
|
|
345
|
-
|
|
365
|
+
tableOfContents: {
|
|
366
|
+
setTableOfContents: () => ReturnType;
|
|
367
|
+
removeTableOfContents: () => ReturnType;
|
|
346
368
|
};
|
|
347
369
|
}
|
|
348
370
|
}
|
|
@@ -350,9 +372,14 @@ declare module '@tiptap/core' {
|
|
|
350
372
|
|
|
351
373
|
declare module '@tiptap/core' {
|
|
352
374
|
interface Commands<ReturnType> {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
375
|
+
iframe: {
|
|
376
|
+
/**
|
|
377
|
+
* Add an iframe
|
|
378
|
+
*/
|
|
379
|
+
setIframe: (options: {
|
|
380
|
+
src: string;
|
|
381
|
+
service: string;
|
|
382
|
+
}) => ReturnType;
|
|
356
383
|
};
|
|
357
384
|
}
|
|
358
385
|
}
|
|
@@ -360,15 +387,31 @@ declare module '@tiptap/core' {
|
|
|
360
387
|
|
|
361
388
|
declare module '@tiptap/core' {
|
|
362
389
|
interface Commands<ReturnType> {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
390
|
+
columns: {
|
|
391
|
+
insertColumns: (attrs?: {
|
|
392
|
+
cols: number;
|
|
393
|
+
}) => ReturnType;
|
|
394
|
+
addColBefore: () => ReturnType;
|
|
395
|
+
addColAfter: () => ReturnType;
|
|
396
|
+
deleteCol: () => ReturnType;
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
declare module '@tiptap/core' {
|
|
403
|
+
interface Commands<ReturnType> {
|
|
404
|
+
exportWord: {
|
|
405
|
+
exportToWord: () => ReturnType;
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
declare module '@tiptap/core' {
|
|
412
|
+
interface Commands<ReturnType> {
|
|
413
|
+
painter: {
|
|
414
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
372
415
|
};
|
|
373
416
|
}
|
|
374
417
|
}
|
|
@@ -388,13 +431,8 @@ declare module '@tiptap/core' {
|
|
|
388
431
|
|
|
389
432
|
declare module '@tiptap/core' {
|
|
390
433
|
interface Commands<ReturnType> {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
cols: number;
|
|
394
|
-
}) => ReturnType;
|
|
395
|
-
addColBefore: () => ReturnType;
|
|
396
|
-
addColAfter: () => ReturnType;
|
|
397
|
-
deleteCol: () => ReturnType;
|
|
434
|
+
excalidraw: {
|
|
435
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
398
436
|
};
|
|
399
437
|
}
|
|
400
438
|
}
|
|
@@ -402,9 +440,8 @@ declare module '@tiptap/core' {
|
|
|
402
440
|
|
|
403
441
|
declare module '@tiptap/core' {
|
|
404
442
|
interface Commands<ReturnType> {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
unsetLineHeight: () => ReturnType;
|
|
443
|
+
katex: {
|
|
444
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
408
445
|
};
|
|
409
446
|
}
|
|
410
447
|
}
|
|
@@ -412,8 +449,8 @@ declare module '@tiptap/core' {
|
|
|
412
449
|
|
|
413
450
|
declare module '@tiptap/core' {
|
|
414
451
|
interface Commands<ReturnType> {
|
|
415
|
-
|
|
416
|
-
|
|
452
|
+
attachment: {
|
|
453
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
417
454
|
};
|
|
418
455
|
}
|
|
419
456
|
}
|
|
@@ -436,8 +473,9 @@ declare module '@tiptap/core' {
|
|
|
436
473
|
|
|
437
474
|
declare module '@tiptap/core' {
|
|
438
475
|
interface Commands<ReturnType> {
|
|
439
|
-
|
|
440
|
-
|
|
476
|
+
drawer: {
|
|
477
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
478
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
441
479
|
};
|
|
442
480
|
}
|
|
443
481
|
}
|
|
@@ -471,41 +509,3 @@ declare module '@tiptap/core' {
|
|
|
471
509
|
};
|
|
472
510
|
}
|
|
473
511
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
declare module '@tiptap/core' {
|
|
477
|
-
interface Commands<ReturnType> {
|
|
478
|
-
attachment: {
|
|
479
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
480
|
-
};
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
declare module '@tiptap/core' {
|
|
486
|
-
interface Commands<ReturnType> {
|
|
487
|
-
tableOfContents: {
|
|
488
|
-
setTableOfContents: () => ReturnType;
|
|
489
|
-
removeTableOfContents: () => ReturnType;
|
|
490
|
-
};
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
declare module '@tiptap/core' {
|
|
496
|
-
interface Commands<ReturnType> {
|
|
497
|
-
drawer: {
|
|
498
|
-
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
499
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
500
|
-
};
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
declare module '@tiptap/core' {
|
|
506
|
-
interface Commands<ReturnType> {
|
|
507
|
-
excalidraw: {
|
|
508
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
509
|
-
};
|
|
510
|
-
}
|
|
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
|
@@ -918,6 +918,32 @@ declare module '@tiptap/core' {
|
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
|
|
921
|
+
declare module '@tiptap/core' {
|
|
922
|
+
interface Commands<ReturnType> {
|
|
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
|
+
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
|
+
lineHeight: {
|
|
970
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
971
|
+
unsetLineHeight: () => ReturnType;
|
|
951
972
|
};
|
|
952
973
|
}
|
|
953
974
|
}
|
|
@@ -970,8 +991,9 @@ declare module '@tiptap/core' {
|
|
|
970
991
|
|
|
971
992
|
declare module '@tiptap/core' {
|
|
972
993
|
interface Commands<ReturnType> {
|
|
973
|
-
|
|
974
|
-
|
|
994
|
+
tableOfContents: {
|
|
995
|
+
setTableOfContents: () => ReturnType;
|
|
996
|
+
removeTableOfContents: () => ReturnType;
|
|
975
997
|
};
|
|
976
998
|
}
|
|
977
999
|
}
|
|
@@ -979,9 +1001,14 @@ declare module '@tiptap/core' {
|
|
|
979
1001
|
|
|
980
1002
|
declare module '@tiptap/core' {
|
|
981
1003
|
interface Commands<ReturnType> {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1004
|
+
iframe: {
|
|
1005
|
+
/**
|
|
1006
|
+
* Add an iframe
|
|
1007
|
+
*/
|
|
1008
|
+
setIframe: (options: {
|
|
1009
|
+
src: string;
|
|
1010
|
+
service: string;
|
|
1011
|
+
}) => ReturnType;
|
|
985
1012
|
};
|
|
986
1013
|
}
|
|
987
1014
|
}
|
|
@@ -989,15 +1016,31 @@ declare module '@tiptap/core' {
|
|
|
989
1016
|
|
|
990
1017
|
declare module '@tiptap/core' {
|
|
991
1018
|
interface Commands<ReturnType> {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1019
|
+
columns: {
|
|
1020
|
+
insertColumns: (attrs?: {
|
|
1021
|
+
cols: number;
|
|
1022
|
+
}) => ReturnType;
|
|
1023
|
+
addColBefore: () => ReturnType;
|
|
1024
|
+
addColAfter: () => ReturnType;
|
|
1025
|
+
deleteCol: () => ReturnType;
|
|
1026
|
+
};
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
declare module '@tiptap/core' {
|
|
1032
|
+
interface Commands<ReturnType> {
|
|
1033
|
+
exportWord: {
|
|
1034
|
+
exportToWord: () => ReturnType;
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
declare module '@tiptap/core' {
|
|
1041
|
+
interface Commands<ReturnType> {
|
|
1042
|
+
painter: {
|
|
1043
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1001
1044
|
};
|
|
1002
1045
|
}
|
|
1003
1046
|
}
|
|
@@ -1017,13 +1060,8 @@ declare module '@tiptap/core' {
|
|
|
1017
1060
|
|
|
1018
1061
|
declare module '@tiptap/core' {
|
|
1019
1062
|
interface Commands<ReturnType> {
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
cols: number;
|
|
1023
|
-
}) => ReturnType;
|
|
1024
|
-
addColBefore: () => ReturnType;
|
|
1025
|
-
addColAfter: () => ReturnType;
|
|
1026
|
-
deleteCol: () => ReturnType;
|
|
1063
|
+
excalidraw: {
|
|
1064
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1027
1065
|
};
|
|
1028
1066
|
}
|
|
1029
1067
|
}
|
|
@@ -1031,9 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1031
1069
|
|
|
1032
1070
|
declare module '@tiptap/core' {
|
|
1033
1071
|
interface Commands<ReturnType> {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
unsetLineHeight: () => ReturnType;
|
|
1072
|
+
katex: {
|
|
1073
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1037
1074
|
};
|
|
1038
1075
|
}
|
|
1039
1076
|
}
|
|
@@ -1041,8 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1041
1078
|
|
|
1042
1079
|
declare module '@tiptap/core' {
|
|
1043
1080
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1046
1083
|
};
|
|
1047
1084
|
}
|
|
1048
1085
|
}
|
|
@@ -1065,8 +1102,9 @@ declare module '@tiptap/core' {
|
|
|
1065
1102
|
|
|
1066
1103
|
declare module '@tiptap/core' {
|
|
1067
1104
|
interface Commands<ReturnType> {
|
|
1068
|
-
|
|
1069
|
-
|
|
1105
|
+
drawer: {
|
|
1106
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1107
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1070
1108
|
};
|
|
1071
1109
|
}
|
|
1072
1110
|
}
|
|
@@ -1100,41 +1138,3 @@ declare module '@tiptap/core' {
|
|
|
1100
1138
|
};
|
|
1101
1139
|
}
|
|
1102
1140
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
declare module '@tiptap/core' {
|
|
1106
|
-
interface Commands<ReturnType> {
|
|
1107
|
-
attachment: {
|
|
1108
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1109
|
-
};
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
declare module '@tiptap/core' {
|
|
1115
|
-
interface Commands<ReturnType> {
|
|
1116
|
-
tableOfContents: {
|
|
1117
|
-
setTableOfContents: () => ReturnType;
|
|
1118
|
-
removeTableOfContents: () => ReturnType;
|
|
1119
|
-
};
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
declare module '@tiptap/core' {
|
|
1125
|
-
interface Commands<ReturnType> {
|
|
1126
|
-
drawer: {
|
|
1127
|
-
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1128
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1129
|
-
};
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
declare module '@tiptap/core' {
|
|
1135
|
-
interface Commands<ReturnType> {
|
|
1136
|
-
excalidraw: {
|
|
1137
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1138
|
-
};
|
|
1139
|
-
}
|
|
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
|
+
tableCellBackground: {
|
|
924
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
925
|
+
unsetTableCellBackground: () => 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
|
+
lineHeight: {
|
|
970
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
971
|
+
unsetLineHeight: () => ReturnType;
|
|
951
972
|
};
|
|
952
973
|
}
|
|
953
974
|
}
|
|
@@ -970,8 +991,9 @@ declare module '@tiptap/core' {
|
|
|
970
991
|
|
|
971
992
|
declare module '@tiptap/core' {
|
|
972
993
|
interface Commands<ReturnType> {
|
|
973
|
-
|
|
974
|
-
|
|
994
|
+
tableOfContents: {
|
|
995
|
+
setTableOfContents: () => ReturnType;
|
|
996
|
+
removeTableOfContents: () => ReturnType;
|
|
975
997
|
};
|
|
976
998
|
}
|
|
977
999
|
}
|
|
@@ -979,9 +1001,14 @@ declare module '@tiptap/core' {
|
|
|
979
1001
|
|
|
980
1002
|
declare module '@tiptap/core' {
|
|
981
1003
|
interface Commands<ReturnType> {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1004
|
+
iframe: {
|
|
1005
|
+
/**
|
|
1006
|
+
* Add an iframe
|
|
1007
|
+
*/
|
|
1008
|
+
setIframe: (options: {
|
|
1009
|
+
src: string;
|
|
1010
|
+
service: string;
|
|
1011
|
+
}) => ReturnType;
|
|
985
1012
|
};
|
|
986
1013
|
}
|
|
987
1014
|
}
|
|
@@ -989,15 +1016,31 @@ declare module '@tiptap/core' {
|
|
|
989
1016
|
|
|
990
1017
|
declare module '@tiptap/core' {
|
|
991
1018
|
interface Commands<ReturnType> {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1019
|
+
columns: {
|
|
1020
|
+
insertColumns: (attrs?: {
|
|
1021
|
+
cols: number;
|
|
1022
|
+
}) => ReturnType;
|
|
1023
|
+
addColBefore: () => ReturnType;
|
|
1024
|
+
addColAfter: () => ReturnType;
|
|
1025
|
+
deleteCol: () => ReturnType;
|
|
1026
|
+
};
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
declare module '@tiptap/core' {
|
|
1032
|
+
interface Commands<ReturnType> {
|
|
1033
|
+
exportWord: {
|
|
1034
|
+
exportToWord: () => ReturnType;
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
declare module '@tiptap/core' {
|
|
1041
|
+
interface Commands<ReturnType> {
|
|
1042
|
+
painter: {
|
|
1043
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1001
1044
|
};
|
|
1002
1045
|
}
|
|
1003
1046
|
}
|
|
@@ -1017,13 +1060,8 @@ declare module '@tiptap/core' {
|
|
|
1017
1060
|
|
|
1018
1061
|
declare module '@tiptap/core' {
|
|
1019
1062
|
interface Commands<ReturnType> {
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
cols: number;
|
|
1023
|
-
}) => ReturnType;
|
|
1024
|
-
addColBefore: () => ReturnType;
|
|
1025
|
-
addColAfter: () => ReturnType;
|
|
1026
|
-
deleteCol: () => ReturnType;
|
|
1063
|
+
excalidraw: {
|
|
1064
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1027
1065
|
};
|
|
1028
1066
|
}
|
|
1029
1067
|
}
|
|
@@ -1031,9 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1031
1069
|
|
|
1032
1070
|
declare module '@tiptap/core' {
|
|
1033
1071
|
interface Commands<ReturnType> {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
unsetLineHeight: () => ReturnType;
|
|
1072
|
+
katex: {
|
|
1073
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1037
1074
|
};
|
|
1038
1075
|
}
|
|
1039
1076
|
}
|
|
@@ -1041,8 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1041
1078
|
|
|
1042
1079
|
declare module '@tiptap/core' {
|
|
1043
1080
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1046
1083
|
};
|
|
1047
1084
|
}
|
|
1048
1085
|
}
|
|
@@ -1065,8 +1102,9 @@ declare module '@tiptap/core' {
|
|
|
1065
1102
|
|
|
1066
1103
|
declare module '@tiptap/core' {
|
|
1067
1104
|
interface Commands<ReturnType> {
|
|
1068
|
-
|
|
1069
|
-
|
|
1105
|
+
drawer: {
|
|
1106
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1107
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1070
1108
|
};
|
|
1071
1109
|
}
|
|
1072
1110
|
}
|
|
@@ -1100,41 +1138,3 @@ declare module '@tiptap/core' {
|
|
|
1100
1138
|
};
|
|
1101
1139
|
}
|
|
1102
1140
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
declare module '@tiptap/core' {
|
|
1106
|
-
interface Commands<ReturnType> {
|
|
1107
|
-
attachment: {
|
|
1108
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1109
|
-
};
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
declare module '@tiptap/core' {
|
|
1115
|
-
interface Commands<ReturnType> {
|
|
1116
|
-
tableOfContents: {
|
|
1117
|
-
setTableOfContents: () => ReturnType;
|
|
1118
|
-
removeTableOfContents: () => ReturnType;
|
|
1119
|
-
};
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
declare module '@tiptap/core' {
|
|
1125
|
-
interface Commands<ReturnType> {
|
|
1126
|
-
drawer: {
|
|
1127
|
-
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1128
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1129
|
-
};
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
declare module '@tiptap/core' {
|
|
1135
|
-
interface Commands<ReturnType> {
|
|
1136
|
-
excalidraw: {
|
|
1137
|
-
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1138
|
-
};
|
|
1139
|
-
}
|
|
1140
|
-
}
|
package/lib/locale-bundle.js
CHANGED