reactjs-tiptap-editor 0.0.37 → 0.0.39
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/index.d.cts +78 -56
- package/lib/index.d.ts +78 -56
- package/lib/locales-Dok1bzRS.cjs +1 -0
- package/lib/{locales-K8yBY1zT.js → locales-Dr0t5sUH.js} +31 -15
- package/lib/reactjs-tiptap-editor.cjs +1 -1
- package/lib/reactjs-tiptap-editor.js +34 -32
- package/lib/style.css +1 -1
- package/lib/{tiptap-CBhddmxi.js → tiptap-Br7U4oWD.js} +1043 -738
- package/lib/tiptap-BvQjPLjY.cjs +116 -0
- package/lib/{utils-CcIumqRW.js → utils-0ljdi6I_.js} +1654 -1414
- package/lib/utils-BlL52jCF.cjs +135 -0
- package/lib/{vendor-xLJPanGi.cjs → vendor-B2T_cfgG.cjs} +13 -13
- package/lib/{vendor-CnblLvXI.js → vendor-C6gAEa0t.js} +2204 -2243
- package/package.json +59 -58
- package/lib/locales-lDvwTWqM.cjs +0 -1
- package/lib/tiptap-Bskeq9lj.cjs +0 -116
- package/lib/utils-C8oZQoTx.cjs +0 -135
package/lib/index.d.cts
CHANGED
|
@@ -25,8 +25,10 @@ import { ItalicOptions as ItalicOptions_2 } from '@tiptap/extension-italic';
|
|
|
25
25
|
import { LinkOptions as LinkOptions_2 } from '@tiptap/extension-link';
|
|
26
26
|
import { ListItemOptions } from '@tiptap/extension-list-item';
|
|
27
27
|
import { Mark } from '@tiptap/core';
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
28
|
+
import { MentionNodeAttrs } from '@tiptap/extension-mention';
|
|
29
|
+
import { MentionOptions } from '@tiptap/extension-mention';
|
|
30
|
+
import { Node as Node_2 } from '@tiptap/core';
|
|
31
|
+
import { Node as Node_3 } from '@tiptap/react';
|
|
30
32
|
import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
|
|
31
33
|
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
32
34
|
import { PlaceholderOptions } from '@tiptap/extension-placeholder';
|
|
@@ -153,7 +155,7 @@ export declare interface BaseKitOptions {
|
|
|
153
155
|
selection: any | false;
|
|
154
156
|
}
|
|
155
157
|
|
|
156
|
-
export declare const Blockquote:
|
|
158
|
+
export declare const Blockquote: Node_2<BlockquoteOptions, any>;
|
|
157
159
|
|
|
158
160
|
export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
|
|
159
161
|
}
|
|
@@ -249,7 +251,7 @@ declare interface BubbleMenuRenderProps {
|
|
|
249
251
|
bubbleMenu: BubbleMenuProps;
|
|
250
252
|
}
|
|
251
253
|
|
|
252
|
-
export declare const BulletList:
|
|
254
|
+
export declare const BulletList: Node_2<BulletListOptions, any>;
|
|
253
255
|
|
|
254
256
|
export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
|
|
255
257
|
}
|
|
@@ -309,7 +311,7 @@ declare interface ButtonViewReturnComponentSlots {
|
|
|
309
311
|
[x: string]: () => any;
|
|
310
312
|
}
|
|
311
313
|
|
|
312
|
-
export declare const Clear:
|
|
314
|
+
export declare const Clear: Node_2<ClearOptions, any>;
|
|
313
315
|
|
|
314
316
|
export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
|
|
315
317
|
}
|
|
@@ -339,7 +341,7 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
|
|
|
339
341
|
defaultColor?: string;
|
|
340
342
|
}
|
|
341
343
|
|
|
342
|
-
export declare const Column:
|
|
344
|
+
export declare const Column: Node_2<any, any>;
|
|
343
345
|
|
|
344
346
|
export declare const ColumnActionButton: Extension<any, any>;
|
|
345
347
|
|
|
@@ -348,7 +350,7 @@ editor: Editor_2 | null;
|
|
|
348
350
|
}>>;
|
|
349
351
|
export default _default;
|
|
350
352
|
|
|
351
|
-
export declare const Emoji:
|
|
353
|
+
export declare const Emoji: Node_2<any, any>;
|
|
352
354
|
|
|
353
355
|
export declare const en: {
|
|
354
356
|
'editor.remove': string;
|
|
@@ -500,9 +502,13 @@ export declare const en: {
|
|
|
500
502
|
'editor.exportPdf.tooltip': string;
|
|
501
503
|
'editor.exportWord.tooltip': string;
|
|
502
504
|
'editor.importWrod.tooltip': string;
|
|
505
|
+
'editor.textDirection.tooltip': string;
|
|
506
|
+
'editor.textDirection.auto.tooltip': string;
|
|
507
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
508
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
503
509
|
};
|
|
504
510
|
|
|
505
|
-
export declare const Excalidraw:
|
|
511
|
+
export declare const Excalidraw: Node_2<any, any>;
|
|
506
512
|
|
|
507
513
|
export declare const ExportPdf: Extension<any, any>;
|
|
508
514
|
|
|
@@ -560,7 +566,7 @@ declare interface GeneralOptions<T> {
|
|
|
560
566
|
toolbar?: boolean;
|
|
561
567
|
}
|
|
562
568
|
|
|
563
|
-
export declare const Heading:
|
|
569
|
+
export declare const Heading: Node_2<HeadingOptions, any>;
|
|
564
570
|
|
|
565
571
|
export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
|
|
566
572
|
}
|
|
@@ -577,21 +583,21 @@ export { History_2 as History }
|
|
|
577
583
|
export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
|
|
578
584
|
}
|
|
579
585
|
|
|
580
|
-
export declare const HorizontalRule:
|
|
586
|
+
export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
|
|
581
587
|
|
|
582
588
|
export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
|
|
583
589
|
}
|
|
584
590
|
|
|
585
|
-
export declare const Iframe:
|
|
591
|
+
export declare const Iframe: Node_2<any, any>;
|
|
586
592
|
|
|
587
593
|
declare interface IKatexOptions {
|
|
588
594
|
HTMLAttributes: Record<string, any>;
|
|
589
595
|
}
|
|
590
596
|
|
|
591
|
-
declare const Image_2:
|
|
597
|
+
declare const Image_2: Node_2<ImageOptions, any>;
|
|
592
598
|
export { Image_2 as Image }
|
|
593
599
|
|
|
594
|
-
export declare const ImageUpload:
|
|
600
|
+
export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
|
|
595
601
|
|
|
596
602
|
export declare interface ImageUploadOptions {
|
|
597
603
|
upload: (file: File) => Promise<string>;
|
|
@@ -623,7 +629,7 @@ export declare const Italic: Mark<ItalicOptions, any>;
|
|
|
623
629
|
export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
|
|
624
630
|
}
|
|
625
631
|
|
|
626
|
-
export declare const Katex:
|
|
632
|
+
export declare const Katex: Node_2<IKatexOptions, any>;
|
|
627
633
|
|
|
628
634
|
declare type LanguageType = 'en' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
|
|
629
635
|
|
|
@@ -659,6 +665,8 @@ declare class Locale {
|
|
|
659
665
|
|
|
660
666
|
export declare const locale: Locale;
|
|
661
667
|
|
|
668
|
+
export declare const Mention: Node_2<MentionOptions<any, MentionNodeAttrs>, any>;
|
|
669
|
+
|
|
662
670
|
declare type MessageKeysType = keyof typeof en;
|
|
663
671
|
|
|
664
672
|
export declare const MoreMark: Extension<MoreMarkOptions, any>;
|
|
@@ -678,7 +686,7 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
|
|
|
678
686
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
679
687
|
}
|
|
680
688
|
|
|
681
|
-
export declare const MultiColumn:
|
|
689
|
+
export declare const MultiColumn: Node_2<any, any>;
|
|
682
690
|
|
|
683
691
|
declare interface NameValueOption<T = string> {
|
|
684
692
|
name: string;
|
|
@@ -689,7 +697,7 @@ declare interface Options {
|
|
|
689
697
|
onHasOneBeforeInsert?: () => void;
|
|
690
698
|
}
|
|
691
699
|
|
|
692
|
-
export declare const OrderedList:
|
|
700
|
+
export declare const OrderedList: Node_2<OrderedListOptions, any>;
|
|
693
701
|
|
|
694
702
|
export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
|
|
695
703
|
}
|
|
@@ -844,6 +852,10 @@ export declare const pt_BR: {
|
|
|
844
852
|
'editor.exportPdf.tooltip': string;
|
|
845
853
|
'editor.exportWord.tooltip': string;
|
|
846
854
|
'editor.importWrod.tooltip': string;
|
|
855
|
+
'editor.textDirection.tooltip': string;
|
|
856
|
+
'editor.textDirection.auto.tooltip': string;
|
|
857
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
858
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
847
859
|
};
|
|
848
860
|
|
|
849
861
|
declare interface Result {
|
|
@@ -955,14 +967,14 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
|
|
|
955
967
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
956
968
|
}
|
|
957
969
|
|
|
958
|
-
export declare const Table:
|
|
970
|
+
export declare const Table: Node_2<TableOptions, any>;
|
|
959
971
|
|
|
960
972
|
declare interface TableCellBackgroundOptions {
|
|
961
973
|
HTMLAttributes: Record<string, any>;
|
|
962
974
|
types?: any;
|
|
963
975
|
}
|
|
964
976
|
|
|
965
|
-
export declare const TableOfContents:
|
|
977
|
+
export declare const TableOfContents: Node_2<Options, any>;
|
|
966
978
|
|
|
967
979
|
export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
968
980
|
HTMLAttributes: Record<string, any>;
|
|
@@ -981,7 +993,7 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
|
981
993
|
tableCellBackground: Partial<TableCellBackgroundOptions>;
|
|
982
994
|
}
|
|
983
995
|
|
|
984
|
-
export declare const TaskList:
|
|
996
|
+
export declare const TaskList: Node_2<TaskListOptions, any>;
|
|
985
997
|
|
|
986
998
|
/**
|
|
987
999
|
* Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
|
|
@@ -1008,6 +1020,8 @@ export declare interface TextAlignOptions extends TextAlignOptions_2, GeneralOpt
|
|
|
1008
1020
|
declare interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
|
|
1009
1021
|
}
|
|
1010
1022
|
|
|
1023
|
+
export declare const TextDirection: Extension<any, any>;
|
|
1024
|
+
|
|
1011
1025
|
/**
|
|
1012
1026
|
* Extension based on:
|
|
1013
1027
|
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
@@ -1173,9 +1187,13 @@ export declare const vi: {
|
|
|
1173
1187
|
'editor.exportPdf.tooltip': string;
|
|
1174
1188
|
'editor.exportWord.tooltip': string;
|
|
1175
1189
|
'editor.importWrod.tooltip': string;
|
|
1190
|
+
'editor.textDirection.tooltip': string;
|
|
1191
|
+
'editor.textDirection.auto.tooltip': string;
|
|
1192
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
1193
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
1176
1194
|
};
|
|
1177
1195
|
|
|
1178
|
-
export declare const Video:
|
|
1196
|
+
export declare const Video: Node_2<VideoOptions, any>;
|
|
1179
1197
|
|
|
1180
1198
|
/**
|
|
1181
1199
|
* Represents the interface for video options, extending GeneralOptions.
|
|
@@ -1210,7 +1228,7 @@ declare interface VideoOptions_2 {
|
|
|
1210
1228
|
upload?: (files: File[]) => void;
|
|
1211
1229
|
}
|
|
1212
1230
|
|
|
1213
|
-
export declare const VideoUpload:
|
|
1231
|
+
export declare const VideoUpload: Node_2<VideoOptions_2, any>;
|
|
1214
1232
|
|
|
1215
1233
|
export declare const zh_CN: {
|
|
1216
1234
|
'editor.remove': string;
|
|
@@ -1362,6 +1380,10 @@ export declare const zh_CN: {
|
|
|
1362
1380
|
'editor.exportPdf.tooltip': string;
|
|
1363
1381
|
'editor.exportWord.tooltip': string;
|
|
1364
1382
|
'editor.importWrod.tooltip': string;
|
|
1383
|
+
'editor.textDirection.tooltip': string;
|
|
1384
|
+
'editor.textDirection.auto.tooltip': string;
|
|
1385
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
1386
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
1365
1387
|
};
|
|
1366
1388
|
|
|
1367
1389
|
export { }
|
|
@@ -1417,6 +1439,18 @@ declare module '@tiptap/core' {
|
|
|
1417
1439
|
}
|
|
1418
1440
|
|
|
1419
1441
|
|
|
1442
|
+
declare module '@tiptap/core' {
|
|
1443
|
+
interface Commands<ReturnType> {
|
|
1444
|
+
emoji: {
|
|
1445
|
+
setEmoji: (emoji: {
|
|
1446
|
+
name: string;
|
|
1447
|
+
emoji: string;
|
|
1448
|
+
}) => ReturnType;
|
|
1449
|
+
};
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
|
|
1420
1454
|
declare module '@tiptap/core' {
|
|
1421
1455
|
interface Commands<ReturnType> {
|
|
1422
1456
|
imageResize: {
|
|
@@ -1446,6 +1480,16 @@ declare module '@tiptap/core' {
|
|
|
1446
1480
|
}
|
|
1447
1481
|
|
|
1448
1482
|
|
|
1483
|
+
declare module '@tiptap/core' {
|
|
1484
|
+
interface Commands<ReturnType> {
|
|
1485
|
+
tableCellBackground: {
|
|
1486
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1487
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
|
|
1449
1493
|
declare module '@tiptap/core' {
|
|
1450
1494
|
interface Commands<ReturnType> {
|
|
1451
1495
|
lineHeight: {
|
|
@@ -1458,8 +1502,8 @@ declare module '@tiptap/core' {
|
|
|
1458
1502
|
|
|
1459
1503
|
declare module '@tiptap/core' {
|
|
1460
1504
|
interface Commands<ReturnType> {
|
|
1461
|
-
|
|
1462
|
-
|
|
1505
|
+
katex: {
|
|
1506
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1463
1507
|
};
|
|
1464
1508
|
}
|
|
1465
1509
|
}
|
|
@@ -1467,8 +1511,8 @@ declare module '@tiptap/core' {
|
|
|
1467
1511
|
|
|
1468
1512
|
declare module '@tiptap/core' {
|
|
1469
1513
|
interface Commands<ReturnType> {
|
|
1470
|
-
|
|
1471
|
-
|
|
1514
|
+
videoUpload: {
|
|
1515
|
+
setVideoUpload: () => ReturnType;
|
|
1472
1516
|
};
|
|
1473
1517
|
}
|
|
1474
1518
|
}
|
|
@@ -1476,9 +1520,13 @@ declare module '@tiptap/core' {
|
|
|
1476
1520
|
|
|
1477
1521
|
declare module '@tiptap/core' {
|
|
1478
1522
|
interface Commands<ReturnType> {
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1523
|
+
columns: {
|
|
1524
|
+
insertColumns: (attrs?: {
|
|
1525
|
+
cols: number;
|
|
1526
|
+
}) => ReturnType;
|
|
1527
|
+
addColBefore: () => ReturnType;
|
|
1528
|
+
addColAfter: () => ReturnType;
|
|
1529
|
+
deleteCol: () => ReturnType;
|
|
1482
1530
|
};
|
|
1483
1531
|
}
|
|
1484
1532
|
}
|
|
@@ -1499,20 +1547,6 @@ declare module '@tiptap/core' {
|
|
|
1499
1547
|
}
|
|
1500
1548
|
|
|
1501
1549
|
|
|
1502
|
-
declare module '@tiptap/core' {
|
|
1503
|
-
interface Commands<ReturnType> {
|
|
1504
|
-
columns: {
|
|
1505
|
-
insertColumns: (attrs?: {
|
|
1506
|
-
cols: number;
|
|
1507
|
-
}) => ReturnType;
|
|
1508
|
-
addColBefore: () => ReturnType;
|
|
1509
|
-
addColAfter: () => ReturnType;
|
|
1510
|
-
deleteCol: () => ReturnType;
|
|
1511
|
-
};
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
1550
|
declare module '@tiptap/core' {
|
|
1517
1551
|
interface Commands<ReturnType> {
|
|
1518
1552
|
search: {
|
|
@@ -1529,20 +1563,8 @@ declare module '@tiptap/core' {
|
|
|
1529
1563
|
|
|
1530
1564
|
declare module '@tiptap/core' {
|
|
1531
1565
|
interface Commands<ReturnType> {
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
};
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
declare module '@tiptap/core' {
|
|
1540
|
-
interface Commands<ReturnType> {
|
|
1541
|
-
emoji: {
|
|
1542
|
-
setEmoji: (emoji: {
|
|
1543
|
-
name: string;
|
|
1544
|
-
emoji: string;
|
|
1545
|
-
}) => ReturnType;
|
|
1566
|
+
painter: {
|
|
1567
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1546
1568
|
};
|
|
1547
1569
|
}
|
|
1548
1570
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -25,8 +25,10 @@ import { ItalicOptions as ItalicOptions_2 } from '@tiptap/extension-italic';
|
|
|
25
25
|
import { LinkOptions as LinkOptions_2 } from '@tiptap/extension-link';
|
|
26
26
|
import { ListItemOptions } from '@tiptap/extension-list-item';
|
|
27
27
|
import { Mark } from '@tiptap/core';
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
28
|
+
import { MentionNodeAttrs } from '@tiptap/extension-mention';
|
|
29
|
+
import { MentionOptions } from '@tiptap/extension-mention';
|
|
30
|
+
import { Node as Node_2 } from '@tiptap/core';
|
|
31
|
+
import { Node as Node_3 } from '@tiptap/react';
|
|
30
32
|
import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
|
|
31
33
|
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
32
34
|
import { PlaceholderOptions } from '@tiptap/extension-placeholder';
|
|
@@ -153,7 +155,7 @@ export declare interface BaseKitOptions {
|
|
|
153
155
|
selection: any | false;
|
|
154
156
|
}
|
|
155
157
|
|
|
156
|
-
export declare const Blockquote:
|
|
158
|
+
export declare const Blockquote: Node_2<BlockquoteOptions, any>;
|
|
157
159
|
|
|
158
160
|
export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
|
|
159
161
|
}
|
|
@@ -249,7 +251,7 @@ declare interface BubbleMenuRenderProps {
|
|
|
249
251
|
bubbleMenu: BubbleMenuProps;
|
|
250
252
|
}
|
|
251
253
|
|
|
252
|
-
export declare const BulletList:
|
|
254
|
+
export declare const BulletList: Node_2<BulletListOptions, any>;
|
|
253
255
|
|
|
254
256
|
export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
|
|
255
257
|
}
|
|
@@ -309,7 +311,7 @@ declare interface ButtonViewReturnComponentSlots {
|
|
|
309
311
|
[x: string]: () => any;
|
|
310
312
|
}
|
|
311
313
|
|
|
312
|
-
export declare const Clear:
|
|
314
|
+
export declare const Clear: Node_2<ClearOptions, any>;
|
|
313
315
|
|
|
314
316
|
export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
|
|
315
317
|
}
|
|
@@ -339,7 +341,7 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
|
|
|
339
341
|
defaultColor?: string;
|
|
340
342
|
}
|
|
341
343
|
|
|
342
|
-
export declare const Column:
|
|
344
|
+
export declare const Column: Node_2<any, any>;
|
|
343
345
|
|
|
344
346
|
export declare const ColumnActionButton: Extension<any, any>;
|
|
345
347
|
|
|
@@ -348,7 +350,7 @@ editor: Editor_2 | null;
|
|
|
348
350
|
}>>;
|
|
349
351
|
export default _default;
|
|
350
352
|
|
|
351
|
-
export declare const Emoji:
|
|
353
|
+
export declare const Emoji: Node_2<any, any>;
|
|
352
354
|
|
|
353
355
|
export declare const en: {
|
|
354
356
|
'editor.remove': string;
|
|
@@ -500,9 +502,13 @@ export declare const en: {
|
|
|
500
502
|
'editor.exportPdf.tooltip': string;
|
|
501
503
|
'editor.exportWord.tooltip': string;
|
|
502
504
|
'editor.importWrod.tooltip': string;
|
|
505
|
+
'editor.textDirection.tooltip': string;
|
|
506
|
+
'editor.textDirection.auto.tooltip': string;
|
|
507
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
508
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
503
509
|
};
|
|
504
510
|
|
|
505
|
-
export declare const Excalidraw:
|
|
511
|
+
export declare const Excalidraw: Node_2<any, any>;
|
|
506
512
|
|
|
507
513
|
export declare const ExportPdf: Extension<any, any>;
|
|
508
514
|
|
|
@@ -560,7 +566,7 @@ declare interface GeneralOptions<T> {
|
|
|
560
566
|
toolbar?: boolean;
|
|
561
567
|
}
|
|
562
568
|
|
|
563
|
-
export declare const Heading:
|
|
569
|
+
export declare const Heading: Node_2<HeadingOptions, any>;
|
|
564
570
|
|
|
565
571
|
export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
|
|
566
572
|
}
|
|
@@ -577,21 +583,21 @@ export { History_2 as History }
|
|
|
577
583
|
export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
|
|
578
584
|
}
|
|
579
585
|
|
|
580
|
-
export declare const HorizontalRule:
|
|
586
|
+
export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
|
|
581
587
|
|
|
582
588
|
export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
|
|
583
589
|
}
|
|
584
590
|
|
|
585
|
-
export declare const Iframe:
|
|
591
|
+
export declare const Iframe: Node_2<any, any>;
|
|
586
592
|
|
|
587
593
|
declare interface IKatexOptions {
|
|
588
594
|
HTMLAttributes: Record<string, any>;
|
|
589
595
|
}
|
|
590
596
|
|
|
591
|
-
declare const Image_2:
|
|
597
|
+
declare const Image_2: Node_2<ImageOptions, any>;
|
|
592
598
|
export { Image_2 as Image }
|
|
593
599
|
|
|
594
|
-
export declare const ImageUpload:
|
|
600
|
+
export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
|
|
595
601
|
|
|
596
602
|
export declare interface ImageUploadOptions {
|
|
597
603
|
upload: (file: File) => Promise<string>;
|
|
@@ -623,7 +629,7 @@ export declare const Italic: Mark<ItalicOptions, any>;
|
|
|
623
629
|
export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
|
|
624
630
|
}
|
|
625
631
|
|
|
626
|
-
export declare const Katex:
|
|
632
|
+
export declare const Katex: Node_2<IKatexOptions, any>;
|
|
627
633
|
|
|
628
634
|
declare type LanguageType = 'en' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
|
|
629
635
|
|
|
@@ -659,6 +665,8 @@ declare class Locale {
|
|
|
659
665
|
|
|
660
666
|
export declare const locale: Locale;
|
|
661
667
|
|
|
668
|
+
export declare const Mention: Node_2<MentionOptions<any, MentionNodeAttrs>, any>;
|
|
669
|
+
|
|
662
670
|
declare type MessageKeysType = keyof typeof en;
|
|
663
671
|
|
|
664
672
|
export declare const MoreMark: Extension<MoreMarkOptions, any>;
|
|
@@ -678,7 +686,7 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
|
|
|
678
686
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
679
687
|
}
|
|
680
688
|
|
|
681
|
-
export declare const MultiColumn:
|
|
689
|
+
export declare const MultiColumn: Node_2<any, any>;
|
|
682
690
|
|
|
683
691
|
declare interface NameValueOption<T = string> {
|
|
684
692
|
name: string;
|
|
@@ -689,7 +697,7 @@ declare interface Options {
|
|
|
689
697
|
onHasOneBeforeInsert?: () => void;
|
|
690
698
|
}
|
|
691
699
|
|
|
692
|
-
export declare const OrderedList:
|
|
700
|
+
export declare const OrderedList: Node_2<OrderedListOptions, any>;
|
|
693
701
|
|
|
694
702
|
export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
|
|
695
703
|
}
|
|
@@ -844,6 +852,10 @@ export declare const pt_BR: {
|
|
|
844
852
|
'editor.exportPdf.tooltip': string;
|
|
845
853
|
'editor.exportWord.tooltip': string;
|
|
846
854
|
'editor.importWrod.tooltip': string;
|
|
855
|
+
'editor.textDirection.tooltip': string;
|
|
856
|
+
'editor.textDirection.auto.tooltip': string;
|
|
857
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
858
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
847
859
|
};
|
|
848
860
|
|
|
849
861
|
declare interface Result {
|
|
@@ -955,14 +967,14 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
|
|
|
955
967
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
956
968
|
}
|
|
957
969
|
|
|
958
|
-
export declare const Table:
|
|
970
|
+
export declare const Table: Node_2<TableOptions, any>;
|
|
959
971
|
|
|
960
972
|
declare interface TableCellBackgroundOptions {
|
|
961
973
|
HTMLAttributes: Record<string, any>;
|
|
962
974
|
types?: any;
|
|
963
975
|
}
|
|
964
976
|
|
|
965
|
-
export declare const TableOfContents:
|
|
977
|
+
export declare const TableOfContents: Node_2<Options, any>;
|
|
966
978
|
|
|
967
979
|
export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
968
980
|
HTMLAttributes: Record<string, any>;
|
|
@@ -981,7 +993,7 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
|
981
993
|
tableCellBackground: Partial<TableCellBackgroundOptions>;
|
|
982
994
|
}
|
|
983
995
|
|
|
984
|
-
export declare const TaskList:
|
|
996
|
+
export declare const TaskList: Node_2<TaskListOptions, any>;
|
|
985
997
|
|
|
986
998
|
/**
|
|
987
999
|
* Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
|
|
@@ -1008,6 +1020,8 @@ export declare interface TextAlignOptions extends TextAlignOptions_2, GeneralOpt
|
|
|
1008
1020
|
declare interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
|
|
1009
1021
|
}
|
|
1010
1022
|
|
|
1023
|
+
export declare const TextDirection: Extension<any, any>;
|
|
1024
|
+
|
|
1011
1025
|
/**
|
|
1012
1026
|
* Extension based on:
|
|
1013
1027
|
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
@@ -1173,9 +1187,13 @@ export declare const vi: {
|
|
|
1173
1187
|
'editor.exportPdf.tooltip': string;
|
|
1174
1188
|
'editor.exportWord.tooltip': string;
|
|
1175
1189
|
'editor.importWrod.tooltip': string;
|
|
1190
|
+
'editor.textDirection.tooltip': string;
|
|
1191
|
+
'editor.textDirection.auto.tooltip': string;
|
|
1192
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
1193
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
1176
1194
|
};
|
|
1177
1195
|
|
|
1178
|
-
export declare const Video:
|
|
1196
|
+
export declare const Video: Node_2<VideoOptions, any>;
|
|
1179
1197
|
|
|
1180
1198
|
/**
|
|
1181
1199
|
* Represents the interface for video options, extending GeneralOptions.
|
|
@@ -1210,7 +1228,7 @@ declare interface VideoOptions_2 {
|
|
|
1210
1228
|
upload?: (files: File[]) => void;
|
|
1211
1229
|
}
|
|
1212
1230
|
|
|
1213
|
-
export declare const VideoUpload:
|
|
1231
|
+
export declare const VideoUpload: Node_2<VideoOptions_2, any>;
|
|
1214
1232
|
|
|
1215
1233
|
export declare const zh_CN: {
|
|
1216
1234
|
'editor.remove': string;
|
|
@@ -1362,6 +1380,10 @@ export declare const zh_CN: {
|
|
|
1362
1380
|
'editor.exportPdf.tooltip': string;
|
|
1363
1381
|
'editor.exportWord.tooltip': string;
|
|
1364
1382
|
'editor.importWrod.tooltip': string;
|
|
1383
|
+
'editor.textDirection.tooltip': string;
|
|
1384
|
+
'editor.textDirection.auto.tooltip': string;
|
|
1385
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
1386
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
1365
1387
|
};
|
|
1366
1388
|
|
|
1367
1389
|
export { }
|
|
@@ -1417,6 +1439,18 @@ declare module '@tiptap/core' {
|
|
|
1417
1439
|
}
|
|
1418
1440
|
|
|
1419
1441
|
|
|
1442
|
+
declare module '@tiptap/core' {
|
|
1443
|
+
interface Commands<ReturnType> {
|
|
1444
|
+
emoji: {
|
|
1445
|
+
setEmoji: (emoji: {
|
|
1446
|
+
name: string;
|
|
1447
|
+
emoji: string;
|
|
1448
|
+
}) => ReturnType;
|
|
1449
|
+
};
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
|
|
1420
1454
|
declare module '@tiptap/core' {
|
|
1421
1455
|
interface Commands<ReturnType> {
|
|
1422
1456
|
imageResize: {
|
|
@@ -1446,6 +1480,16 @@ declare module '@tiptap/core' {
|
|
|
1446
1480
|
}
|
|
1447
1481
|
|
|
1448
1482
|
|
|
1483
|
+
declare module '@tiptap/core' {
|
|
1484
|
+
interface Commands<ReturnType> {
|
|
1485
|
+
tableCellBackground: {
|
|
1486
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1487
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
|
|
1449
1493
|
declare module '@tiptap/core' {
|
|
1450
1494
|
interface Commands<ReturnType> {
|
|
1451
1495
|
lineHeight: {
|
|
@@ -1458,8 +1502,8 @@ declare module '@tiptap/core' {
|
|
|
1458
1502
|
|
|
1459
1503
|
declare module '@tiptap/core' {
|
|
1460
1504
|
interface Commands<ReturnType> {
|
|
1461
|
-
|
|
1462
|
-
|
|
1505
|
+
katex: {
|
|
1506
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1463
1507
|
};
|
|
1464
1508
|
}
|
|
1465
1509
|
}
|
|
@@ -1467,8 +1511,8 @@ declare module '@tiptap/core' {
|
|
|
1467
1511
|
|
|
1468
1512
|
declare module '@tiptap/core' {
|
|
1469
1513
|
interface Commands<ReturnType> {
|
|
1470
|
-
|
|
1471
|
-
|
|
1514
|
+
videoUpload: {
|
|
1515
|
+
setVideoUpload: () => ReturnType;
|
|
1472
1516
|
};
|
|
1473
1517
|
}
|
|
1474
1518
|
}
|
|
@@ -1476,9 +1520,13 @@ declare module '@tiptap/core' {
|
|
|
1476
1520
|
|
|
1477
1521
|
declare module '@tiptap/core' {
|
|
1478
1522
|
interface Commands<ReturnType> {
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1523
|
+
columns: {
|
|
1524
|
+
insertColumns: (attrs?: {
|
|
1525
|
+
cols: number;
|
|
1526
|
+
}) => ReturnType;
|
|
1527
|
+
addColBefore: () => ReturnType;
|
|
1528
|
+
addColAfter: () => ReturnType;
|
|
1529
|
+
deleteCol: () => ReturnType;
|
|
1482
1530
|
};
|
|
1483
1531
|
}
|
|
1484
1532
|
}
|
|
@@ -1499,20 +1547,6 @@ declare module '@tiptap/core' {
|
|
|
1499
1547
|
}
|
|
1500
1548
|
|
|
1501
1549
|
|
|
1502
|
-
declare module '@tiptap/core' {
|
|
1503
|
-
interface Commands<ReturnType> {
|
|
1504
|
-
columns: {
|
|
1505
|
-
insertColumns: (attrs?: {
|
|
1506
|
-
cols: number;
|
|
1507
|
-
}) => ReturnType;
|
|
1508
|
-
addColBefore: () => ReturnType;
|
|
1509
|
-
addColAfter: () => ReturnType;
|
|
1510
|
-
deleteCol: () => ReturnType;
|
|
1511
|
-
};
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
1550
|
declare module '@tiptap/core' {
|
|
1517
1551
|
interface Commands<ReturnType> {
|
|
1518
1552
|
search: {
|
|
@@ -1529,20 +1563,8 @@ declare module '@tiptap/core' {
|
|
|
1529
1563
|
|
|
1530
1564
|
declare module '@tiptap/core' {
|
|
1531
1565
|
interface Commands<ReturnType> {
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
};
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
declare module '@tiptap/core' {
|
|
1540
|
-
interface Commands<ReturnType> {
|
|
1541
|
-
emoji: {
|
|
1542
|
-
setEmoji: (emoji: {
|
|
1543
|
-
name: string;
|
|
1544
|
-
emoji: string;
|
|
1545
|
-
}) => ReturnType;
|
|
1566
|
+
painter: {
|
|
1567
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1546
1568
|
};
|
|
1547
1569
|
}
|
|
1548
1570
|
}
|