reactjs-tiptap-editor 0.2.19 → 0.2.21
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 +3 -3
- package/lib/extension-bundle.d.cts +83 -56
- package/lib/extension-bundle.d.ts +83 -56
- package/lib/extension-bundle.js +667 -666
- package/lib/index.d.cts +55 -55
- package/lib/index.d.ts +55 -55
- package/lib/locale-bundle.d.cts +55 -55
- package/lib/locale-bundle.d.ts +55 -55
- package/lib/style.css +1 -1
- package/package.json +1 -2
package/lib/index.d.cts
CHANGED
|
@@ -265,6 +265,21 @@ declare module '@tiptap/core' {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
|
|
268
|
+
declare module '@tiptap/core' {
|
|
269
|
+
interface Commands<ReturnType> {
|
|
270
|
+
iframe: {
|
|
271
|
+
/**
|
|
272
|
+
* Add an iframe
|
|
273
|
+
*/
|
|
274
|
+
setIframe: (options: {
|
|
275
|
+
src: string;
|
|
276
|
+
service: string;
|
|
277
|
+
}) => ReturnType;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
|
|
268
283
|
declare module '@tiptap/core' {
|
|
269
284
|
interface Commands<ReturnType> {
|
|
270
285
|
lineHeight: {
|
|
@@ -314,35 +329,6 @@ declare module '@tiptap/core' {
|
|
|
314
329
|
}
|
|
315
330
|
|
|
316
331
|
|
|
317
|
-
declare module '@tiptap/core' {
|
|
318
|
-
interface Commands<ReturnType> {
|
|
319
|
-
columns: {
|
|
320
|
-
insertColumns: (attrs?: {
|
|
321
|
-
cols: number;
|
|
322
|
-
}) => ReturnType;
|
|
323
|
-
addColBefore: () => ReturnType;
|
|
324
|
-
addColAfter: () => ReturnType;
|
|
325
|
-
deleteCol: () => ReturnType;
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
declare module '@tiptap/core' {
|
|
332
|
-
interface Commands<ReturnType> {
|
|
333
|
-
iframe: {
|
|
334
|
-
/**
|
|
335
|
-
* Add an iframe
|
|
336
|
-
*/
|
|
337
|
-
setIframe: (options: {
|
|
338
|
-
src: string;
|
|
339
|
-
service: string;
|
|
340
|
-
}) => ReturnType;
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
346
332
|
declare module '@tiptap/core' {
|
|
347
333
|
interface Commands<ReturnType> {
|
|
348
334
|
search: {
|
|
@@ -370,6 +356,20 @@ declare module '@tiptap/core' {
|
|
|
370
356
|
}
|
|
371
357
|
|
|
372
358
|
|
|
359
|
+
declare module '@tiptap/core' {
|
|
360
|
+
interface Commands<ReturnType> {
|
|
361
|
+
columns: {
|
|
362
|
+
insertColumns: (attrs?: {
|
|
363
|
+
cols: number;
|
|
364
|
+
}) => ReturnType;
|
|
365
|
+
addColBefore: () => ReturnType;
|
|
366
|
+
addColAfter: () => ReturnType;
|
|
367
|
+
deleteCol: () => ReturnType;
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
|
|
373
373
|
declare module '@tiptap/core' {
|
|
374
374
|
interface Commands<ReturnType> {
|
|
375
375
|
katex: {
|
|
@@ -390,9 +390,8 @@ declare module '@tiptap/core' {
|
|
|
390
390
|
|
|
391
391
|
declare module '@tiptap/core' {
|
|
392
392
|
interface Commands<ReturnType> {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
removeTableOfContents: () => ReturnType;
|
|
393
|
+
excalidraw: {
|
|
394
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
396
395
|
};
|
|
397
396
|
}
|
|
398
397
|
}
|
|
@@ -400,8 +399,9 @@ declare module '@tiptap/core' {
|
|
|
400
399
|
|
|
401
400
|
declare module '@tiptap/core' {
|
|
402
401
|
interface Commands<ReturnType> {
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
tableOfContents: {
|
|
403
|
+
setTableOfContents: () => ReturnType;
|
|
404
|
+
removeTableOfContents: () => ReturnType;
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
407
|
}
|
|
@@ -409,9 +409,8 @@ declare module '@tiptap/core' {
|
|
|
409
409
|
|
|
410
410
|
declare module '@tiptap/core' {
|
|
411
411
|
interface Commands<ReturnType> {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
412
|
+
attachment: {
|
|
413
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
415
414
|
};
|
|
416
415
|
}
|
|
417
416
|
}
|
|
@@ -419,8 +418,19 @@ declare module '@tiptap/core' {
|
|
|
419
418
|
|
|
420
419
|
declare module '@tiptap/core' {
|
|
421
420
|
interface Commands<ReturnType> {
|
|
422
|
-
|
|
423
|
-
|
|
421
|
+
imageGifUpload: {
|
|
422
|
+
/**
|
|
423
|
+
* Add an image gif
|
|
424
|
+
*/
|
|
425
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
426
|
+
/**
|
|
427
|
+
* Update an image gif
|
|
428
|
+
*/
|
|
429
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
430
|
+
/**
|
|
431
|
+
* Set image alignment
|
|
432
|
+
*/
|
|
433
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
424
434
|
};
|
|
425
435
|
}
|
|
426
436
|
}
|
|
@@ -443,9 +453,9 @@ declare module '@tiptap/core' {
|
|
|
443
453
|
|
|
444
454
|
declare module '@tiptap/core' {
|
|
445
455
|
interface Commands<ReturnType> {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
456
|
+
drawer: {
|
|
457
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
458
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
449
459
|
};
|
|
450
460
|
}
|
|
451
461
|
}
|
|
@@ -453,19 +463,9 @@ declare module '@tiptap/core' {
|
|
|
453
463
|
|
|
454
464
|
declare module '@tiptap/core' {
|
|
455
465
|
interface Commands<ReturnType> {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
*/
|
|
460
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
461
|
-
/**
|
|
462
|
-
* Update an image gif
|
|
463
|
-
*/
|
|
464
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
465
|
-
/**
|
|
466
|
-
* Set image alignment
|
|
467
|
-
*/
|
|
468
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
466
|
+
mermaid: {
|
|
467
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
468
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -265,6 +265,21 @@ declare module '@tiptap/core' {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
|
|
268
|
+
declare module '@tiptap/core' {
|
|
269
|
+
interface Commands<ReturnType> {
|
|
270
|
+
iframe: {
|
|
271
|
+
/**
|
|
272
|
+
* Add an iframe
|
|
273
|
+
*/
|
|
274
|
+
setIframe: (options: {
|
|
275
|
+
src: string;
|
|
276
|
+
service: string;
|
|
277
|
+
}) => ReturnType;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
|
|
268
283
|
declare module '@tiptap/core' {
|
|
269
284
|
interface Commands<ReturnType> {
|
|
270
285
|
lineHeight: {
|
|
@@ -314,35 +329,6 @@ declare module '@tiptap/core' {
|
|
|
314
329
|
}
|
|
315
330
|
|
|
316
331
|
|
|
317
|
-
declare module '@tiptap/core' {
|
|
318
|
-
interface Commands<ReturnType> {
|
|
319
|
-
columns: {
|
|
320
|
-
insertColumns: (attrs?: {
|
|
321
|
-
cols: number;
|
|
322
|
-
}) => ReturnType;
|
|
323
|
-
addColBefore: () => ReturnType;
|
|
324
|
-
addColAfter: () => ReturnType;
|
|
325
|
-
deleteCol: () => ReturnType;
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
declare module '@tiptap/core' {
|
|
332
|
-
interface Commands<ReturnType> {
|
|
333
|
-
iframe: {
|
|
334
|
-
/**
|
|
335
|
-
* Add an iframe
|
|
336
|
-
*/
|
|
337
|
-
setIframe: (options: {
|
|
338
|
-
src: string;
|
|
339
|
-
service: string;
|
|
340
|
-
}) => ReturnType;
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
346
332
|
declare module '@tiptap/core' {
|
|
347
333
|
interface Commands<ReturnType> {
|
|
348
334
|
search: {
|
|
@@ -370,6 +356,20 @@ declare module '@tiptap/core' {
|
|
|
370
356
|
}
|
|
371
357
|
|
|
372
358
|
|
|
359
|
+
declare module '@tiptap/core' {
|
|
360
|
+
interface Commands<ReturnType> {
|
|
361
|
+
columns: {
|
|
362
|
+
insertColumns: (attrs?: {
|
|
363
|
+
cols: number;
|
|
364
|
+
}) => ReturnType;
|
|
365
|
+
addColBefore: () => ReturnType;
|
|
366
|
+
addColAfter: () => ReturnType;
|
|
367
|
+
deleteCol: () => ReturnType;
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
|
|
373
373
|
declare module '@tiptap/core' {
|
|
374
374
|
interface Commands<ReturnType> {
|
|
375
375
|
katex: {
|
|
@@ -390,9 +390,8 @@ declare module '@tiptap/core' {
|
|
|
390
390
|
|
|
391
391
|
declare module '@tiptap/core' {
|
|
392
392
|
interface Commands<ReturnType> {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
removeTableOfContents: () => ReturnType;
|
|
393
|
+
excalidraw: {
|
|
394
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
396
395
|
};
|
|
397
396
|
}
|
|
398
397
|
}
|
|
@@ -400,8 +399,9 @@ declare module '@tiptap/core' {
|
|
|
400
399
|
|
|
401
400
|
declare module '@tiptap/core' {
|
|
402
401
|
interface Commands<ReturnType> {
|
|
403
|
-
|
|
404
|
-
|
|
402
|
+
tableOfContents: {
|
|
403
|
+
setTableOfContents: () => ReturnType;
|
|
404
|
+
removeTableOfContents: () => ReturnType;
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
407
|
}
|
|
@@ -409,9 +409,8 @@ declare module '@tiptap/core' {
|
|
|
409
409
|
|
|
410
410
|
declare module '@tiptap/core' {
|
|
411
411
|
interface Commands<ReturnType> {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
412
|
+
attachment: {
|
|
413
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
415
414
|
};
|
|
416
415
|
}
|
|
417
416
|
}
|
|
@@ -419,8 +418,19 @@ declare module '@tiptap/core' {
|
|
|
419
418
|
|
|
420
419
|
declare module '@tiptap/core' {
|
|
421
420
|
interface Commands<ReturnType> {
|
|
422
|
-
|
|
423
|
-
|
|
421
|
+
imageGifUpload: {
|
|
422
|
+
/**
|
|
423
|
+
* Add an image gif
|
|
424
|
+
*/
|
|
425
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
426
|
+
/**
|
|
427
|
+
* Update an image gif
|
|
428
|
+
*/
|
|
429
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
430
|
+
/**
|
|
431
|
+
* Set image alignment
|
|
432
|
+
*/
|
|
433
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
424
434
|
};
|
|
425
435
|
}
|
|
426
436
|
}
|
|
@@ -443,9 +453,9 @@ declare module '@tiptap/core' {
|
|
|
443
453
|
|
|
444
454
|
declare module '@tiptap/core' {
|
|
445
455
|
interface Commands<ReturnType> {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
456
|
+
drawer: {
|
|
457
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
458
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
449
459
|
};
|
|
450
460
|
}
|
|
451
461
|
}
|
|
@@ -453,19 +463,9 @@ declare module '@tiptap/core' {
|
|
|
453
463
|
|
|
454
464
|
declare module '@tiptap/core' {
|
|
455
465
|
interface Commands<ReturnType> {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
*/
|
|
460
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
461
|
-
/**
|
|
462
|
-
* Update an image gif
|
|
463
|
-
*/
|
|
464
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
465
|
-
/**
|
|
466
|
-
* Set image alignment
|
|
467
|
-
*/
|
|
468
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
466
|
+
mermaid: {
|
|
467
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
468
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
}
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -934,6 +934,21 @@ declare module '@tiptap/core' {
|
|
|
934
934
|
}
|
|
935
935
|
|
|
936
936
|
|
|
937
|
+
declare module '@tiptap/core' {
|
|
938
|
+
interface Commands<ReturnType> {
|
|
939
|
+
iframe: {
|
|
940
|
+
/**
|
|
941
|
+
* Add an iframe
|
|
942
|
+
*/
|
|
943
|
+
setIframe: (options: {
|
|
944
|
+
src: string;
|
|
945
|
+
service: string;
|
|
946
|
+
}) => ReturnType;
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
|
|
937
952
|
declare module '@tiptap/core' {
|
|
938
953
|
interface Commands<ReturnType> {
|
|
939
954
|
lineHeight: {
|
|
@@ -983,35 +998,6 @@ declare module '@tiptap/core' {
|
|
|
983
998
|
}
|
|
984
999
|
|
|
985
1000
|
|
|
986
|
-
declare module '@tiptap/core' {
|
|
987
|
-
interface Commands<ReturnType> {
|
|
988
|
-
columns: {
|
|
989
|
-
insertColumns: (attrs?: {
|
|
990
|
-
cols: number;
|
|
991
|
-
}) => ReturnType;
|
|
992
|
-
addColBefore: () => ReturnType;
|
|
993
|
-
addColAfter: () => ReturnType;
|
|
994
|
-
deleteCol: () => ReturnType;
|
|
995
|
-
};
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
declare module '@tiptap/core' {
|
|
1001
|
-
interface Commands<ReturnType> {
|
|
1002
|
-
iframe: {
|
|
1003
|
-
/**
|
|
1004
|
-
* Add an iframe
|
|
1005
|
-
*/
|
|
1006
|
-
setIframe: (options: {
|
|
1007
|
-
src: string;
|
|
1008
|
-
service: string;
|
|
1009
|
-
}) => ReturnType;
|
|
1010
|
-
};
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
1001
|
declare module '@tiptap/core' {
|
|
1016
1002
|
interface Commands<ReturnType> {
|
|
1017
1003
|
search: {
|
|
@@ -1039,6 +1025,20 @@ declare module '@tiptap/core' {
|
|
|
1039
1025
|
}
|
|
1040
1026
|
|
|
1041
1027
|
|
|
1028
|
+
declare module '@tiptap/core' {
|
|
1029
|
+
interface Commands<ReturnType> {
|
|
1030
|
+
columns: {
|
|
1031
|
+
insertColumns: (attrs?: {
|
|
1032
|
+
cols: number;
|
|
1033
|
+
}) => ReturnType;
|
|
1034
|
+
addColBefore: () => ReturnType;
|
|
1035
|
+
addColAfter: () => ReturnType;
|
|
1036
|
+
deleteCol: () => ReturnType;
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
1042
|
declare module '@tiptap/core' {
|
|
1043
1043
|
interface Commands<ReturnType> {
|
|
1044
1044
|
katex: {
|
|
@@ -1059,9 +1059,8 @@ declare module '@tiptap/core' {
|
|
|
1059
1059
|
|
|
1060
1060
|
declare module '@tiptap/core' {
|
|
1061
1061
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
removeTableOfContents: () => ReturnType;
|
|
1062
|
+
excalidraw: {
|
|
1063
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1065
1064
|
};
|
|
1066
1065
|
}
|
|
1067
1066
|
}
|
|
@@ -1069,8 +1068,9 @@ declare module '@tiptap/core' {
|
|
|
1069
1068
|
|
|
1070
1069
|
declare module '@tiptap/core' {
|
|
1071
1070
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1071
|
+
tableOfContents: {
|
|
1072
|
+
setTableOfContents: () => ReturnType;
|
|
1073
|
+
removeTableOfContents: () => ReturnType;
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
@@ -1078,9 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1078
1078
|
|
|
1079
1079
|
declare module '@tiptap/core' {
|
|
1080
1080
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1084
1083
|
};
|
|
1085
1084
|
}
|
|
1086
1085
|
}
|
|
@@ -1088,8 +1087,19 @@ declare module '@tiptap/core' {
|
|
|
1088
1087
|
|
|
1089
1088
|
declare module '@tiptap/core' {
|
|
1090
1089
|
interface Commands<ReturnType> {
|
|
1091
|
-
|
|
1092
|
-
|
|
1090
|
+
imageGifUpload: {
|
|
1091
|
+
/**
|
|
1092
|
+
* Add an image gif
|
|
1093
|
+
*/
|
|
1094
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1095
|
+
/**
|
|
1096
|
+
* Update an image gif
|
|
1097
|
+
*/
|
|
1098
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1099
|
+
/**
|
|
1100
|
+
* Set image alignment
|
|
1101
|
+
*/
|
|
1102
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1093
1103
|
};
|
|
1094
1104
|
}
|
|
1095
1105
|
}
|
|
@@ -1112,9 +1122,9 @@ declare module '@tiptap/core' {
|
|
|
1112
1122
|
|
|
1113
1123
|
declare module '@tiptap/core' {
|
|
1114
1124
|
interface Commands<ReturnType> {
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1125
|
+
drawer: {
|
|
1126
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1127
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1118
1128
|
};
|
|
1119
1129
|
}
|
|
1120
1130
|
}
|
|
@@ -1122,19 +1132,9 @@ declare module '@tiptap/core' {
|
|
|
1122
1132
|
|
|
1123
1133
|
declare module '@tiptap/core' {
|
|
1124
1134
|
interface Commands<ReturnType> {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
*/
|
|
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;
|
|
1135
|
+
mermaid: {
|
|
1136
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1137
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -934,6 +934,21 @@ declare module '@tiptap/core' {
|
|
|
934
934
|
}
|
|
935
935
|
|
|
936
936
|
|
|
937
|
+
declare module '@tiptap/core' {
|
|
938
|
+
interface Commands<ReturnType> {
|
|
939
|
+
iframe: {
|
|
940
|
+
/**
|
|
941
|
+
* Add an iframe
|
|
942
|
+
*/
|
|
943
|
+
setIframe: (options: {
|
|
944
|
+
src: string;
|
|
945
|
+
service: string;
|
|
946
|
+
}) => ReturnType;
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
|
|
937
952
|
declare module '@tiptap/core' {
|
|
938
953
|
interface Commands<ReturnType> {
|
|
939
954
|
lineHeight: {
|
|
@@ -983,35 +998,6 @@ declare module '@tiptap/core' {
|
|
|
983
998
|
}
|
|
984
999
|
|
|
985
1000
|
|
|
986
|
-
declare module '@tiptap/core' {
|
|
987
|
-
interface Commands<ReturnType> {
|
|
988
|
-
columns: {
|
|
989
|
-
insertColumns: (attrs?: {
|
|
990
|
-
cols: number;
|
|
991
|
-
}) => ReturnType;
|
|
992
|
-
addColBefore: () => ReturnType;
|
|
993
|
-
addColAfter: () => ReturnType;
|
|
994
|
-
deleteCol: () => ReturnType;
|
|
995
|
-
};
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
declare module '@tiptap/core' {
|
|
1001
|
-
interface Commands<ReturnType> {
|
|
1002
|
-
iframe: {
|
|
1003
|
-
/**
|
|
1004
|
-
* Add an iframe
|
|
1005
|
-
*/
|
|
1006
|
-
setIframe: (options: {
|
|
1007
|
-
src: string;
|
|
1008
|
-
service: string;
|
|
1009
|
-
}) => ReturnType;
|
|
1010
|
-
};
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
1001
|
declare module '@tiptap/core' {
|
|
1016
1002
|
interface Commands<ReturnType> {
|
|
1017
1003
|
search: {
|
|
@@ -1039,6 +1025,20 @@ declare module '@tiptap/core' {
|
|
|
1039
1025
|
}
|
|
1040
1026
|
|
|
1041
1027
|
|
|
1028
|
+
declare module '@tiptap/core' {
|
|
1029
|
+
interface Commands<ReturnType> {
|
|
1030
|
+
columns: {
|
|
1031
|
+
insertColumns: (attrs?: {
|
|
1032
|
+
cols: number;
|
|
1033
|
+
}) => ReturnType;
|
|
1034
|
+
addColBefore: () => ReturnType;
|
|
1035
|
+
addColAfter: () => ReturnType;
|
|
1036
|
+
deleteCol: () => ReturnType;
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
1042
|
declare module '@tiptap/core' {
|
|
1043
1043
|
interface Commands<ReturnType> {
|
|
1044
1044
|
katex: {
|
|
@@ -1059,9 +1059,8 @@ declare module '@tiptap/core' {
|
|
|
1059
1059
|
|
|
1060
1060
|
declare module '@tiptap/core' {
|
|
1061
1061
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
removeTableOfContents: () => ReturnType;
|
|
1062
|
+
excalidraw: {
|
|
1063
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1065
1064
|
};
|
|
1066
1065
|
}
|
|
1067
1066
|
}
|
|
@@ -1069,8 +1068,9 @@ declare module '@tiptap/core' {
|
|
|
1069
1068
|
|
|
1070
1069
|
declare module '@tiptap/core' {
|
|
1071
1070
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1071
|
+
tableOfContents: {
|
|
1072
|
+
setTableOfContents: () => ReturnType;
|
|
1073
|
+
removeTableOfContents: () => ReturnType;
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
@@ -1078,9 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1078
1078
|
|
|
1079
1079
|
declare module '@tiptap/core' {
|
|
1080
1080
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1084
1083
|
};
|
|
1085
1084
|
}
|
|
1086
1085
|
}
|
|
@@ -1088,8 +1087,19 @@ declare module '@tiptap/core' {
|
|
|
1088
1087
|
|
|
1089
1088
|
declare module '@tiptap/core' {
|
|
1090
1089
|
interface Commands<ReturnType> {
|
|
1091
|
-
|
|
1092
|
-
|
|
1090
|
+
imageGifUpload: {
|
|
1091
|
+
/**
|
|
1092
|
+
* Add an image gif
|
|
1093
|
+
*/
|
|
1094
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1095
|
+
/**
|
|
1096
|
+
* Update an image gif
|
|
1097
|
+
*/
|
|
1098
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1099
|
+
/**
|
|
1100
|
+
* Set image alignment
|
|
1101
|
+
*/
|
|
1102
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1093
1103
|
};
|
|
1094
1104
|
}
|
|
1095
1105
|
}
|
|
@@ -1112,9 +1122,9 @@ declare module '@tiptap/core' {
|
|
|
1112
1122
|
|
|
1113
1123
|
declare module '@tiptap/core' {
|
|
1114
1124
|
interface Commands<ReturnType> {
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1125
|
+
drawer: {
|
|
1126
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1127
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1118
1128
|
};
|
|
1119
1129
|
}
|
|
1120
1130
|
}
|
|
@@ -1122,19 +1132,9 @@ declare module '@tiptap/core' {
|
|
|
1122
1132
|
|
|
1123
1133
|
declare module '@tiptap/core' {
|
|
1124
1134
|
interface Commands<ReturnType> {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
*/
|
|
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;
|
|
1135
|
+
mermaid: {
|
|
1136
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1137
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|