reactjs-tiptap-editor-pro 0.2.42 → 0.2.43
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 +63 -63
- package/lib/extension-bundle.d.ts +63 -63
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +64 -63
- package/lib/index.d.ts +64 -63
- package/lib/index.js +236 -249
- package/lib/locale-bundle.d.cts +63 -63
- package/lib/locale-bundle.d.ts +63 -63
- package/package.json +21 -20
package/lib/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ declare interface BubbleMenuProps {
|
|
|
62
62
|
* @default false
|
|
63
63
|
*/
|
|
64
64
|
hidden?: boolean;
|
|
65
|
+
onCopy?: (nodeJson: any) => any;
|
|
65
66
|
};
|
|
66
67
|
linkConfig?: {
|
|
67
68
|
/**
|
|
@@ -338,9 +339,9 @@ declare module '@tiptap/core' {
|
|
|
338
339
|
|
|
339
340
|
declare module '@tiptap/core' {
|
|
340
341
|
interface Commands<ReturnType> {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
342
|
+
tableCellBackground: {
|
|
343
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
344
|
+
unsetTableCellBackground: () => ReturnType;
|
|
344
345
|
};
|
|
345
346
|
}
|
|
346
347
|
}
|
|
@@ -348,15 +349,11 @@ declare module '@tiptap/core' {
|
|
|
348
349
|
|
|
349
350
|
declare module '@tiptap/core' {
|
|
350
351
|
interface Commands<ReturnType> {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Set the outdent attribute
|
|
358
|
-
*/
|
|
359
|
-
outdent: () => ReturnType;
|
|
352
|
+
emoji: {
|
|
353
|
+
setEmoji: (emoji: {
|
|
354
|
+
name: string;
|
|
355
|
+
emoji: string;
|
|
356
|
+
}) => ReturnType;
|
|
360
357
|
};
|
|
361
358
|
}
|
|
362
359
|
}
|
|
@@ -364,8 +361,8 @@ declare module '@tiptap/core' {
|
|
|
364
361
|
|
|
365
362
|
declare module '@tiptap/core' {
|
|
366
363
|
interface Commands<ReturnType> {
|
|
367
|
-
|
|
368
|
-
|
|
364
|
+
katex: {
|
|
365
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
369
366
|
};
|
|
370
367
|
}
|
|
371
368
|
}
|
|
@@ -387,17 +384,14 @@ declare module '@tiptap/core' {
|
|
|
387
384
|
|
|
388
385
|
declare module '@tiptap/core' {
|
|
389
386
|
interface Commands<ReturnType> {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
interface Commands<ReturnType> {
|
|
399
|
-
painter: {
|
|
400
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
387
|
+
search: {
|
|
388
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
389
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
390
|
+
replace: () => ReturnType;
|
|
391
|
+
replaceAll: () => ReturnType;
|
|
392
|
+
goToPrevSearchResult: () => void;
|
|
393
|
+
goToNextSearchResult: () => void;
|
|
394
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
401
395
|
};
|
|
402
396
|
}
|
|
403
397
|
}
|
|
@@ -405,11 +399,15 @@ declare module '@tiptap/core' {
|
|
|
405
399
|
|
|
406
400
|
declare module '@tiptap/core' {
|
|
407
401
|
interface Commands<ReturnType> {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
402
|
+
indent: {
|
|
403
|
+
/**
|
|
404
|
+
* Set the indent attribute
|
|
405
|
+
*/
|
|
406
|
+
indent: () => ReturnType;
|
|
407
|
+
/**
|
|
408
|
+
* Set the outdent attribute
|
|
409
|
+
*/
|
|
410
|
+
outdent: () => ReturnType;
|
|
413
411
|
};
|
|
414
412
|
}
|
|
415
413
|
}
|
|
@@ -417,14 +415,8 @@ declare module '@tiptap/core' {
|
|
|
417
415
|
|
|
418
416
|
declare module '@tiptap/core' {
|
|
419
417
|
interface Commands<ReturnType> {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
423
|
-
replace: () => ReturnType;
|
|
424
|
-
replaceAll: () => ReturnType;
|
|
425
|
-
goToPrevSearchResult: () => void;
|
|
426
|
-
goToNextSearchResult: () => void;
|
|
427
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
418
|
+
painter: {
|
|
419
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
428
420
|
};
|
|
429
421
|
}
|
|
430
422
|
}
|
|
@@ -447,18 +439,9 @@ declare module '@tiptap/core' {
|
|
|
447
439
|
|
|
448
440
|
declare module '@tiptap/core' {
|
|
449
441
|
interface Commands<ReturnType> {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
declare module '@tiptap/core' {
|
|
459
|
-
interface Commands<ReturnType> {
|
|
460
|
-
attachment: {
|
|
461
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
442
|
+
drawer: {
|
|
443
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
444
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
462
445
|
};
|
|
463
446
|
}
|
|
464
447
|
}
|
|
@@ -484,16 +467,6 @@ declare module '@tiptap/core' {
|
|
|
484
467
|
}
|
|
485
468
|
|
|
486
469
|
|
|
487
|
-
declare module '@tiptap/core' {
|
|
488
|
-
interface Commands<ReturnType> {
|
|
489
|
-
mermaid: {
|
|
490
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
491
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
|
|
497
470
|
declare module '@tiptap/core' {
|
|
498
471
|
interface Commands<ReturnType> {
|
|
499
472
|
twitter: {
|
|
@@ -511,9 +484,37 @@ declare module '@tiptap/core' {
|
|
|
511
484
|
|
|
512
485
|
declare module '@tiptap/core' {
|
|
513
486
|
interface Commands<ReturnType> {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
487
|
+
exportWord: {
|
|
488
|
+
exportToWord: () => ReturnType;
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
declare module '@tiptap/core' {
|
|
495
|
+
interface Commands<ReturnType> {
|
|
496
|
+
attachment: {
|
|
497
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
declare module '@tiptap/core' {
|
|
504
|
+
interface Commands<ReturnType> {
|
|
505
|
+
tableOfContents: {
|
|
506
|
+
setTableOfContents: () => ReturnType;
|
|
507
|
+
removeTableOfContents: () => ReturnType;
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
declare module '@tiptap/core' {
|
|
514
|
+
interface Commands<ReturnType> {
|
|
515
|
+
mermaid: {
|
|
516
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
517
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
517
518
|
};
|
|
518
519
|
}
|
|
519
520
|
}
|