reactjs-tiptap-editor-pro 0.2.39 → 0.2.40
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/{ColorPicker-DGbrNkQ-.cjs → ColorPicker-CvEUnlMl.cjs} +1 -1
- package/lib/{ColorPicker-BGCCdXrc.js → ColorPicker-DXWTenTy.js} +1 -1
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +71 -71
- package/lib/extension-bundle.d.ts +71 -71
- package/lib/extension-bundle.js +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +71 -71
- package/lib/index.d.ts +71 -71
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +71 -71
- package/lib/locale-bundle.d.ts +71 -71
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -308,9 +308,15 @@ declare module '@tiptap/core' {
|
|
|
308
308
|
|
|
309
309
|
declare module '@tiptap/core' {
|
|
310
310
|
interface Commands<ReturnType> {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
311
|
+
indent: {
|
|
312
|
+
/**
|
|
313
|
+
* Set the indent attribute
|
|
314
|
+
*/
|
|
315
|
+
indent: () => ReturnType;
|
|
316
|
+
/**
|
|
317
|
+
* Set the outdent attribute
|
|
318
|
+
*/
|
|
319
|
+
outdent: () => ReturnType;
|
|
314
320
|
};
|
|
315
321
|
}
|
|
316
322
|
}
|
|
@@ -318,14 +324,9 @@ declare module '@tiptap/core' {
|
|
|
318
324
|
|
|
319
325
|
declare module '@tiptap/core' {
|
|
320
326
|
interface Commands<ReturnType> {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
*/
|
|
325
|
-
setIframe: (options: {
|
|
326
|
-
src: string;
|
|
327
|
-
service: string;
|
|
328
|
-
}) => ReturnType;
|
|
327
|
+
lineHeight: {
|
|
328
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
329
|
+
unsetLineHeight: () => ReturnType;
|
|
329
330
|
};
|
|
330
331
|
}
|
|
331
332
|
}
|
|
@@ -333,8 +334,9 @@ declare module '@tiptap/core' {
|
|
|
333
334
|
|
|
334
335
|
declare module '@tiptap/core' {
|
|
335
336
|
interface Commands<ReturnType> {
|
|
336
|
-
|
|
337
|
-
|
|
337
|
+
tableCellBackground: {
|
|
338
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
339
|
+
unsetTableCellBackground: () => ReturnType;
|
|
338
340
|
};
|
|
339
341
|
}
|
|
340
342
|
}
|
|
@@ -357,9 +359,28 @@ declare module '@tiptap/core' {
|
|
|
357
359
|
|
|
358
360
|
declare module '@tiptap/core' {
|
|
359
361
|
interface Commands<ReturnType> {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
362
|
+
painter: {
|
|
363
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
declare module '@tiptap/core' {
|
|
370
|
+
interface Commands<ReturnType> {
|
|
371
|
+
imageUpload: {
|
|
372
|
+
/**
|
|
373
|
+
* Add an image
|
|
374
|
+
*/
|
|
375
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
376
|
+
/**
|
|
377
|
+
* Update an image
|
|
378
|
+
*/
|
|
379
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
380
|
+
/**
|
|
381
|
+
* Set image alignment
|
|
382
|
+
*/
|
|
383
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
363
384
|
};
|
|
364
385
|
}
|
|
365
386
|
}
|
|
@@ -379,8 +400,14 @@ declare module '@tiptap/core' {
|
|
|
379
400
|
|
|
380
401
|
declare module '@tiptap/core' {
|
|
381
402
|
interface Commands<ReturnType> {
|
|
382
|
-
|
|
383
|
-
|
|
403
|
+
iframe: {
|
|
404
|
+
/**
|
|
405
|
+
* Add an iframe
|
|
406
|
+
*/
|
|
407
|
+
setIframe: (options: {
|
|
408
|
+
src: string;
|
|
409
|
+
service: string;
|
|
410
|
+
}) => ReturnType;
|
|
384
411
|
};
|
|
385
412
|
}
|
|
386
413
|
}
|
|
@@ -388,19 +415,9 @@ declare module '@tiptap/core' {
|
|
|
388
415
|
|
|
389
416
|
declare module '@tiptap/core' {
|
|
390
417
|
interface Commands<ReturnType> {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
*/
|
|
395
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
396
|
-
/**
|
|
397
|
-
* Update an image
|
|
398
|
-
*/
|
|
399
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
400
|
-
/**
|
|
401
|
-
* Set image alignment
|
|
402
|
-
*/
|
|
403
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
418
|
+
tableOfContents: {
|
|
419
|
+
setTableOfContents: () => ReturnType;
|
|
420
|
+
removeTableOfContents: () => ReturnType;
|
|
404
421
|
};
|
|
405
422
|
}
|
|
406
423
|
}
|
|
@@ -422,15 +439,17 @@ declare module '@tiptap/core' {
|
|
|
422
439
|
|
|
423
440
|
declare module '@tiptap/core' {
|
|
424
441
|
interface Commands<ReturnType> {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
442
|
+
katex: {
|
|
443
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
declare module '@tiptap/core' {
|
|
450
|
+
interface Commands<ReturnType> {
|
|
451
|
+
exportWord: {
|
|
452
|
+
exportToWord: () => ReturnType;
|
|
434
453
|
};
|
|
435
454
|
}
|
|
436
455
|
}
|
|
@@ -456,35 +475,6 @@ declare module '@tiptap/core' {
|
|
|
456
475
|
}
|
|
457
476
|
|
|
458
477
|
|
|
459
|
-
declare module '@tiptap/core' {
|
|
460
|
-
interface Commands<ReturnType> {
|
|
461
|
-
drawer: {
|
|
462
|
-
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
463
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
declare module '@tiptap/core' {
|
|
470
|
-
interface Commands<ReturnType> {
|
|
471
|
-
tableOfContents: {
|
|
472
|
-
setTableOfContents: () => ReturnType;
|
|
473
|
-
removeTableOfContents: () => ReturnType;
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
declare module '@tiptap/core' {
|
|
480
|
-
interface Commands<ReturnType> {
|
|
481
|
-
attachment: {
|
|
482
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
483
|
-
};
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
|
|
488
478
|
declare module '@tiptap/core' {
|
|
489
479
|
interface Commands<ReturnType> {
|
|
490
480
|
twitter: {
|
|
@@ -512,8 +502,18 @@ declare module '@tiptap/core' {
|
|
|
512
502
|
|
|
513
503
|
declare module '@tiptap/core' {
|
|
514
504
|
interface Commands<ReturnType> {
|
|
515
|
-
|
|
516
|
-
|
|
505
|
+
attachment: {
|
|
506
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
declare module '@tiptap/core' {
|
|
513
|
+
interface Commands<ReturnType> {
|
|
514
|
+
drawer: {
|
|
515
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
516
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
}
|
package/lib/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var me = (e, t, n) => ur(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import * as ie from "react";
|
|
5
5
|
import { useRef as ne, useState as I, useEffect as R, useMemo as F, Fragment as Ve, useCallback as O, memo as fr, forwardRef as hr, useId as mr, useImperativeHandle as gr, useLayoutEffect as pr } from "react";
|
|
6
6
|
import { jsx as a, jsxs as p, Fragment as N } from "react/jsx-runtime";
|
|
7
|
-
import { i as Ke, S as re, t as vr, a as Ce, b as oe, r as J, c as Z, f as yr, d as ae, e as wr, D as Xe, g as qe, A as C, h as Ye, j as Je, C as xr, k as Ze, B as Y, s as cn, l as dn, m as un, u as Te, n as vt, o as L, p as U, P as br, q as Cr, v as Tr, L as $e, I as ye, w as se, x as Ae, y as Ar, K as ge, T as fn, M as yt, z as wt, F as Sr, E as hn, G as mn, H as Pr, J as he, N as _r, O as Nr, Q as Er, R as gn, U as $r, V as Or, W as z, X as Rr, Y as Ir, Z as Dr, _ as Br, $ as Mr, a0 as kr, a1 as W, a2 as Lr, a3 as xt, a4 as bt, a5 as Ct, a6 as Tt, a7 as At, a8 as St, a9 as pn, aa as zr, ab as vn, ac as yn, ad as Fr, ae as jr, af as Hr, ag as Pt, ah as Ur, ai as Gr, aj as Wr, ak as Vr, al as Kr, am as _t, an as Nt, ao as Xr, ap as qr, aq as Yr, ar as Jr, as as Zr, at as Qr, au as ei } from "./ColorPicker-
|
|
7
|
+
import { i as Ke, S as re, t as vr, a as Ce, b as oe, r as J, c as Z, f as yr, d as ae, e as wr, D as Xe, g as qe, A as C, h as Ye, j as Je, C as xr, k as Ze, B as Y, s as cn, l as dn, m as un, u as Te, n as vt, o as L, p as U, P as br, q as Cr, v as Tr, L as $e, I as ye, w as se, x as Ae, y as Ar, K as ge, T as fn, M as yt, z as wt, F as Sr, E as hn, G as mn, H as Pr, J as he, N as _r, O as Nr, Q as Er, R as gn, U as $r, V as Or, W as z, X as Rr, Y as Ir, Z as Dr, _ as Br, $ as Mr, a0 as kr, a1 as W, a2 as Lr, a3 as xt, a4 as bt, a5 as Ct, a6 as Tt, a7 as At, a8 as St, a9 as pn, aa as zr, ab as vn, ac as yn, ad as Fr, ae as jr, af as Hr, ag as Pt, ah as Ur, ai as Gr, aj as Wr, ak as Vr, al as Kr, am as _t, an as Nt, ao as Xr, ap as qr, aq as Yr, ar as Jr, as as Zr, at as Qr, au as ei } from "./ColorPicker-DXWTenTy.js";
|
|
8
8
|
import { u as D, B as ti, l as B, I as we, V as Et, E as ni } from "./locale-bundle-CT7qZRHF.js";
|
|
9
9
|
import * as j from "@radix-ui/react-toast";
|
|
10
10
|
import { X as ri, HelpCircle as ii, Pencil as oi, Trash2 as ai } from "lucide-react";
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -920,9 +920,15 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
923
|
+
indent: {
|
|
924
|
+
/**
|
|
925
|
+
* Set the indent attribute
|
|
926
|
+
*/
|
|
927
|
+
indent: () => ReturnType;
|
|
928
|
+
/**
|
|
929
|
+
* Set the outdent attribute
|
|
930
|
+
*/
|
|
931
|
+
outdent: () => ReturnType;
|
|
926
932
|
};
|
|
927
933
|
}
|
|
928
934
|
}
|
|
@@ -930,14 +936,9 @@ declare module '@tiptap/core' {
|
|
|
930
936
|
|
|
931
937
|
declare module '@tiptap/core' {
|
|
932
938
|
interface Commands<ReturnType> {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
*/
|
|
937
|
-
setIframe: (options: {
|
|
938
|
-
src: string;
|
|
939
|
-
service: string;
|
|
940
|
-
}) => ReturnType;
|
|
939
|
+
lineHeight: {
|
|
940
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
941
|
+
unsetLineHeight: () => ReturnType;
|
|
941
942
|
};
|
|
942
943
|
}
|
|
943
944
|
}
|
|
@@ -945,8 +946,9 @@ declare module '@tiptap/core' {
|
|
|
945
946
|
|
|
946
947
|
declare module '@tiptap/core' {
|
|
947
948
|
interface Commands<ReturnType> {
|
|
948
|
-
|
|
949
|
-
|
|
949
|
+
tableCellBackground: {
|
|
950
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
951
|
+
unsetTableCellBackground: () => ReturnType;
|
|
950
952
|
};
|
|
951
953
|
}
|
|
952
954
|
}
|
|
@@ -969,9 +971,28 @@ declare module '@tiptap/core' {
|
|
|
969
971
|
|
|
970
972
|
declare module '@tiptap/core' {
|
|
971
973
|
interface Commands<ReturnType> {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
974
|
+
painter: {
|
|
975
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
declare module '@tiptap/core' {
|
|
982
|
+
interface Commands<ReturnType> {
|
|
983
|
+
imageUpload: {
|
|
984
|
+
/**
|
|
985
|
+
* Add an image
|
|
986
|
+
*/
|
|
987
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
988
|
+
/**
|
|
989
|
+
* Update an image
|
|
990
|
+
*/
|
|
991
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
992
|
+
/**
|
|
993
|
+
* Set image alignment
|
|
994
|
+
*/
|
|
995
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
975
996
|
};
|
|
976
997
|
}
|
|
977
998
|
}
|
|
@@ -991,8 +1012,14 @@ declare module '@tiptap/core' {
|
|
|
991
1012
|
|
|
992
1013
|
declare module '@tiptap/core' {
|
|
993
1014
|
interface Commands<ReturnType> {
|
|
994
|
-
|
|
995
|
-
|
|
1015
|
+
iframe: {
|
|
1016
|
+
/**
|
|
1017
|
+
* Add an iframe
|
|
1018
|
+
*/
|
|
1019
|
+
setIframe: (options: {
|
|
1020
|
+
src: string;
|
|
1021
|
+
service: string;
|
|
1022
|
+
}) => ReturnType;
|
|
996
1023
|
};
|
|
997
1024
|
}
|
|
998
1025
|
}
|
|
@@ -1000,19 +1027,9 @@ declare module '@tiptap/core' {
|
|
|
1000
1027
|
|
|
1001
1028
|
declare module '@tiptap/core' {
|
|
1002
1029
|
interface Commands<ReturnType> {
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
*/
|
|
1007
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1008
|
-
/**
|
|
1009
|
-
* Update an image
|
|
1010
|
-
*/
|
|
1011
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1012
|
-
/**
|
|
1013
|
-
* Set image alignment
|
|
1014
|
-
*/
|
|
1015
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1030
|
+
tableOfContents: {
|
|
1031
|
+
setTableOfContents: () => ReturnType;
|
|
1032
|
+
removeTableOfContents: () => ReturnType;
|
|
1016
1033
|
};
|
|
1017
1034
|
}
|
|
1018
1035
|
}
|
|
@@ -1034,15 +1051,17 @@ declare module '@tiptap/core' {
|
|
|
1034
1051
|
|
|
1035
1052
|
declare module '@tiptap/core' {
|
|
1036
1053
|
interface Commands<ReturnType> {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1054
|
+
katex: {
|
|
1055
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
declare module '@tiptap/core' {
|
|
1062
|
+
interface Commands<ReturnType> {
|
|
1063
|
+
exportWord: {
|
|
1064
|
+
exportToWord: () => ReturnType;
|
|
1046
1065
|
};
|
|
1047
1066
|
}
|
|
1048
1067
|
}
|
|
@@ -1068,35 +1087,6 @@ declare module '@tiptap/core' {
|
|
|
1068
1087
|
}
|
|
1069
1088
|
|
|
1070
1089
|
|
|
1071
|
-
declare module '@tiptap/core' {
|
|
1072
|
-
interface Commands<ReturnType> {
|
|
1073
|
-
drawer: {
|
|
1074
|
-
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1075
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1076
|
-
};
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
declare module '@tiptap/core' {
|
|
1082
|
-
interface Commands<ReturnType> {
|
|
1083
|
-
tableOfContents: {
|
|
1084
|
-
setTableOfContents: () => ReturnType;
|
|
1085
|
-
removeTableOfContents: () => ReturnType;
|
|
1086
|
-
};
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
declare module '@tiptap/core' {
|
|
1092
|
-
interface Commands<ReturnType> {
|
|
1093
|
-
attachment: {
|
|
1094
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1095
|
-
};
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
1090
|
declare module '@tiptap/core' {
|
|
1101
1091
|
interface Commands<ReturnType> {
|
|
1102
1092
|
twitter: {
|
|
@@ -1124,8 +1114,18 @@ declare module '@tiptap/core' {
|
|
|
1124
1114
|
|
|
1125
1115
|
declare module '@tiptap/core' {
|
|
1126
1116
|
interface Commands<ReturnType> {
|
|
1127
|
-
|
|
1128
|
-
|
|
1117
|
+
attachment: {
|
|
1118
|
+
setAttachment: (attrs?: unknown) => 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
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -920,9 +920,15 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
923
|
+
indent: {
|
|
924
|
+
/**
|
|
925
|
+
* Set the indent attribute
|
|
926
|
+
*/
|
|
927
|
+
indent: () => ReturnType;
|
|
928
|
+
/**
|
|
929
|
+
* Set the outdent attribute
|
|
930
|
+
*/
|
|
931
|
+
outdent: () => ReturnType;
|
|
926
932
|
};
|
|
927
933
|
}
|
|
928
934
|
}
|
|
@@ -930,14 +936,9 @@ declare module '@tiptap/core' {
|
|
|
930
936
|
|
|
931
937
|
declare module '@tiptap/core' {
|
|
932
938
|
interface Commands<ReturnType> {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
*/
|
|
937
|
-
setIframe: (options: {
|
|
938
|
-
src: string;
|
|
939
|
-
service: string;
|
|
940
|
-
}) => ReturnType;
|
|
939
|
+
lineHeight: {
|
|
940
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
941
|
+
unsetLineHeight: () => ReturnType;
|
|
941
942
|
};
|
|
942
943
|
}
|
|
943
944
|
}
|
|
@@ -945,8 +946,9 @@ declare module '@tiptap/core' {
|
|
|
945
946
|
|
|
946
947
|
declare module '@tiptap/core' {
|
|
947
948
|
interface Commands<ReturnType> {
|
|
948
|
-
|
|
949
|
-
|
|
949
|
+
tableCellBackground: {
|
|
950
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
951
|
+
unsetTableCellBackground: () => ReturnType;
|
|
950
952
|
};
|
|
951
953
|
}
|
|
952
954
|
}
|
|
@@ -969,9 +971,28 @@ declare module '@tiptap/core' {
|
|
|
969
971
|
|
|
970
972
|
declare module '@tiptap/core' {
|
|
971
973
|
interface Commands<ReturnType> {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
974
|
+
painter: {
|
|
975
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
declare module '@tiptap/core' {
|
|
982
|
+
interface Commands<ReturnType> {
|
|
983
|
+
imageUpload: {
|
|
984
|
+
/**
|
|
985
|
+
* Add an image
|
|
986
|
+
*/
|
|
987
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
988
|
+
/**
|
|
989
|
+
* Update an image
|
|
990
|
+
*/
|
|
991
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
992
|
+
/**
|
|
993
|
+
* Set image alignment
|
|
994
|
+
*/
|
|
995
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
975
996
|
};
|
|
976
997
|
}
|
|
977
998
|
}
|
|
@@ -991,8 +1012,14 @@ declare module '@tiptap/core' {
|
|
|
991
1012
|
|
|
992
1013
|
declare module '@tiptap/core' {
|
|
993
1014
|
interface Commands<ReturnType> {
|
|
994
|
-
|
|
995
|
-
|
|
1015
|
+
iframe: {
|
|
1016
|
+
/**
|
|
1017
|
+
* Add an iframe
|
|
1018
|
+
*/
|
|
1019
|
+
setIframe: (options: {
|
|
1020
|
+
src: string;
|
|
1021
|
+
service: string;
|
|
1022
|
+
}) => ReturnType;
|
|
996
1023
|
};
|
|
997
1024
|
}
|
|
998
1025
|
}
|
|
@@ -1000,19 +1027,9 @@ declare module '@tiptap/core' {
|
|
|
1000
1027
|
|
|
1001
1028
|
declare module '@tiptap/core' {
|
|
1002
1029
|
interface Commands<ReturnType> {
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
*/
|
|
1007
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1008
|
-
/**
|
|
1009
|
-
* Update an image
|
|
1010
|
-
*/
|
|
1011
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1012
|
-
/**
|
|
1013
|
-
* Set image alignment
|
|
1014
|
-
*/
|
|
1015
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1030
|
+
tableOfContents: {
|
|
1031
|
+
setTableOfContents: () => ReturnType;
|
|
1032
|
+
removeTableOfContents: () => ReturnType;
|
|
1016
1033
|
};
|
|
1017
1034
|
}
|
|
1018
1035
|
}
|
|
@@ -1034,15 +1051,17 @@ declare module '@tiptap/core' {
|
|
|
1034
1051
|
|
|
1035
1052
|
declare module '@tiptap/core' {
|
|
1036
1053
|
interface Commands<ReturnType> {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1054
|
+
katex: {
|
|
1055
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
declare module '@tiptap/core' {
|
|
1062
|
+
interface Commands<ReturnType> {
|
|
1063
|
+
exportWord: {
|
|
1064
|
+
exportToWord: () => ReturnType;
|
|
1046
1065
|
};
|
|
1047
1066
|
}
|
|
1048
1067
|
}
|
|
@@ -1068,35 +1087,6 @@ declare module '@tiptap/core' {
|
|
|
1068
1087
|
}
|
|
1069
1088
|
|
|
1070
1089
|
|
|
1071
|
-
declare module '@tiptap/core' {
|
|
1072
|
-
interface Commands<ReturnType> {
|
|
1073
|
-
drawer: {
|
|
1074
|
-
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1075
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1076
|
-
};
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
declare module '@tiptap/core' {
|
|
1082
|
-
interface Commands<ReturnType> {
|
|
1083
|
-
tableOfContents: {
|
|
1084
|
-
setTableOfContents: () => ReturnType;
|
|
1085
|
-
removeTableOfContents: () => ReturnType;
|
|
1086
|
-
};
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
declare module '@tiptap/core' {
|
|
1092
|
-
interface Commands<ReturnType> {
|
|
1093
|
-
attachment: {
|
|
1094
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1095
|
-
};
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
1090
|
declare module '@tiptap/core' {
|
|
1101
1091
|
interface Commands<ReturnType> {
|
|
1102
1092
|
twitter: {
|
|
@@ -1124,8 +1114,18 @@ declare module '@tiptap/core' {
|
|
|
1124
1114
|
|
|
1125
1115
|
declare module '@tiptap/core' {
|
|
1126
1116
|
interface Commands<ReturnType> {
|
|
1127
|
-
|
|
1128
|
-
|
|
1117
|
+
attachment: {
|
|
1118
|
+
setAttachment: (attrs?: unknown) => 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
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
package/package.json
CHANGED