reactjs-tiptap-editor 0.0.36 → 0.0.38
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 +69 -51
- package/lib/index.d.ts +69 -51
- package/lib/locales-BpA8B_Ji.cjs +1 -0
- package/lib/{locales-CN6TrTEF.js → locales-DKvkKnkS.js} +31 -15
- package/lib/reactjs-tiptap-editor.cjs +1 -1
- package/lib/reactjs-tiptap-editor.js +27 -26
- package/lib/style.css +1 -1
- package/lib/{tiptap-CBhddmxi.js → tiptap-ByUvt1m7.js} +958 -776
- package/lib/tiptap-K9kfB9hp.cjs +116 -0
- package/lib/utils-BFKRDRzc.cjs +135 -0
- package/lib/{utils-Dv814K3m.js → utils-DM3kZOzr.js} +988 -855
- package/lib/{vendor-xLJPanGi.cjs → vendor-B2T_cfgG.cjs} +13 -13
- package/lib/{vendor-CnblLvXI.js → vendor-C6gAEa0t.js} +2204 -2243
- package/package.json +58 -58
- package/lib/locales-Bg72ty9_.cjs +0 -1
- package/lib/tiptap-Bskeq9lj.cjs +0 -116
- package/lib/utils-xIVE6Wfs.cjs +0 -135
package/lib/index.d.cts
CHANGED
|
@@ -25,8 +25,8 @@ 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 { Node as Node_2 } from '@tiptap/
|
|
29
|
-
import { Node as Node_3 } from '@tiptap/
|
|
28
|
+
import { Node as Node_2 } from '@tiptap/core';
|
|
29
|
+
import { Node as Node_3 } from '@tiptap/react';
|
|
30
30
|
import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
|
|
31
31
|
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
32
32
|
import { PlaceholderOptions } from '@tiptap/extension-placeholder';
|
|
@@ -153,7 +153,7 @@ export declare interface BaseKitOptions {
|
|
|
153
153
|
selection: any | false;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
export declare const Blockquote:
|
|
156
|
+
export declare const Blockquote: Node_2<BlockquoteOptions, any>;
|
|
157
157
|
|
|
158
158
|
export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
|
|
159
159
|
}
|
|
@@ -249,7 +249,7 @@ declare interface BubbleMenuRenderProps {
|
|
|
249
249
|
bubbleMenu: BubbleMenuProps;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
export declare const BulletList:
|
|
252
|
+
export declare const BulletList: Node_2<BulletListOptions, any>;
|
|
253
253
|
|
|
254
254
|
export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
|
|
255
255
|
}
|
|
@@ -309,7 +309,7 @@ declare interface ButtonViewReturnComponentSlots {
|
|
|
309
309
|
[x: string]: () => any;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
export declare const Clear:
|
|
312
|
+
export declare const Clear: Node_2<ClearOptions, any>;
|
|
313
313
|
|
|
314
314
|
export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
|
|
315
315
|
}
|
|
@@ -339,7 +339,7 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
|
|
|
339
339
|
defaultColor?: string;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
export declare const Column:
|
|
342
|
+
export declare const Column: Node_2<any, any>;
|
|
343
343
|
|
|
344
344
|
export declare const ColumnActionButton: Extension<any, any>;
|
|
345
345
|
|
|
@@ -348,7 +348,7 @@ editor: Editor_2 | null;
|
|
|
348
348
|
}>>;
|
|
349
349
|
export default _default;
|
|
350
350
|
|
|
351
|
-
export declare const Emoji:
|
|
351
|
+
export declare const Emoji: Node_2<any, any>;
|
|
352
352
|
|
|
353
353
|
export declare const en: {
|
|
354
354
|
'editor.remove': string;
|
|
@@ -500,9 +500,13 @@ export declare const en: {
|
|
|
500
500
|
'editor.exportPdf.tooltip': string;
|
|
501
501
|
'editor.exportWord.tooltip': string;
|
|
502
502
|
'editor.importWrod.tooltip': string;
|
|
503
|
+
'editor.textDirection.tooltip': string;
|
|
504
|
+
'editor.textDirection.auto.tooltip': string;
|
|
505
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
506
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
503
507
|
};
|
|
504
508
|
|
|
505
|
-
export declare const Excalidraw:
|
|
509
|
+
export declare const Excalidraw: Node_2<any, any>;
|
|
506
510
|
|
|
507
511
|
export declare const ExportPdf: Extension<any, any>;
|
|
508
512
|
|
|
@@ -560,7 +564,7 @@ declare interface GeneralOptions<T> {
|
|
|
560
564
|
toolbar?: boolean;
|
|
561
565
|
}
|
|
562
566
|
|
|
563
|
-
export declare const Heading:
|
|
567
|
+
export declare const Heading: Node_2<HeadingOptions, any>;
|
|
564
568
|
|
|
565
569
|
export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
|
|
566
570
|
}
|
|
@@ -577,21 +581,21 @@ export { History_2 as History }
|
|
|
577
581
|
export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
|
|
578
582
|
}
|
|
579
583
|
|
|
580
|
-
export declare const HorizontalRule:
|
|
584
|
+
export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
|
|
581
585
|
|
|
582
586
|
export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
|
|
583
587
|
}
|
|
584
588
|
|
|
585
|
-
export declare const Iframe:
|
|
589
|
+
export declare const Iframe: Node_2<any, any>;
|
|
586
590
|
|
|
587
591
|
declare interface IKatexOptions {
|
|
588
592
|
HTMLAttributes: Record<string, any>;
|
|
589
593
|
}
|
|
590
594
|
|
|
591
|
-
declare const Image_2:
|
|
595
|
+
declare const Image_2: Node_2<ImageOptions, any>;
|
|
592
596
|
export { Image_2 as Image }
|
|
593
597
|
|
|
594
|
-
export declare const ImageUpload:
|
|
598
|
+
export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
|
|
595
599
|
|
|
596
600
|
export declare interface ImageUploadOptions {
|
|
597
601
|
upload: (file: File) => Promise<string>;
|
|
@@ -623,7 +627,7 @@ export declare const Italic: Mark<ItalicOptions, any>;
|
|
|
623
627
|
export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
|
|
624
628
|
}
|
|
625
629
|
|
|
626
|
-
export declare const Katex:
|
|
630
|
+
export declare const Katex: Node_2<IKatexOptions, any>;
|
|
627
631
|
|
|
628
632
|
declare type LanguageType = 'en' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
|
|
629
633
|
|
|
@@ -678,7 +682,7 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
|
|
|
678
682
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
679
683
|
}
|
|
680
684
|
|
|
681
|
-
export declare const MultiColumn:
|
|
685
|
+
export declare const MultiColumn: Node_2<any, any>;
|
|
682
686
|
|
|
683
687
|
declare interface NameValueOption<T = string> {
|
|
684
688
|
name: string;
|
|
@@ -689,7 +693,7 @@ declare interface Options {
|
|
|
689
693
|
onHasOneBeforeInsert?: () => void;
|
|
690
694
|
}
|
|
691
695
|
|
|
692
|
-
export declare const OrderedList:
|
|
696
|
+
export declare const OrderedList: Node_2<OrderedListOptions, any>;
|
|
693
697
|
|
|
694
698
|
export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
|
|
695
699
|
}
|
|
@@ -844,6 +848,10 @@ export declare const pt_BR: {
|
|
|
844
848
|
'editor.exportPdf.tooltip': string;
|
|
845
849
|
'editor.exportWord.tooltip': string;
|
|
846
850
|
'editor.importWrod.tooltip': string;
|
|
851
|
+
'editor.textDirection.tooltip': string;
|
|
852
|
+
'editor.textDirection.auto.tooltip': string;
|
|
853
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
854
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
847
855
|
};
|
|
848
856
|
|
|
849
857
|
declare interface Result {
|
|
@@ -955,14 +963,14 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
|
|
|
955
963
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
956
964
|
}
|
|
957
965
|
|
|
958
|
-
export declare const Table:
|
|
966
|
+
export declare const Table: Node_2<TableOptions, any>;
|
|
959
967
|
|
|
960
968
|
declare interface TableCellBackgroundOptions {
|
|
961
969
|
HTMLAttributes: Record<string, any>;
|
|
962
970
|
types?: any;
|
|
963
971
|
}
|
|
964
972
|
|
|
965
|
-
export declare const TableOfContents:
|
|
973
|
+
export declare const TableOfContents: Node_2<Options, any>;
|
|
966
974
|
|
|
967
975
|
export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
968
976
|
HTMLAttributes: Record<string, any>;
|
|
@@ -981,7 +989,7 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
|
981
989
|
tableCellBackground: Partial<TableCellBackgroundOptions>;
|
|
982
990
|
}
|
|
983
991
|
|
|
984
|
-
export declare const TaskList:
|
|
992
|
+
export declare const TaskList: Node_2<TaskListOptions, any>;
|
|
985
993
|
|
|
986
994
|
/**
|
|
987
995
|
* Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
|
|
@@ -1008,6 +1016,8 @@ export declare interface TextAlignOptions extends TextAlignOptions_2, GeneralOpt
|
|
|
1008
1016
|
declare interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
|
|
1009
1017
|
}
|
|
1010
1018
|
|
|
1019
|
+
export declare const TextDirection: Extension<any, any>;
|
|
1020
|
+
|
|
1011
1021
|
/**
|
|
1012
1022
|
* Extension based on:
|
|
1013
1023
|
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
@@ -1173,9 +1183,13 @@ export declare const vi: {
|
|
|
1173
1183
|
'editor.exportPdf.tooltip': string;
|
|
1174
1184
|
'editor.exportWord.tooltip': string;
|
|
1175
1185
|
'editor.importWrod.tooltip': string;
|
|
1186
|
+
'editor.textDirection.tooltip': string;
|
|
1187
|
+
'editor.textDirection.auto.tooltip': string;
|
|
1188
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
1189
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
1176
1190
|
};
|
|
1177
1191
|
|
|
1178
|
-
export declare const Video:
|
|
1192
|
+
export declare const Video: Node_2<VideoOptions, any>;
|
|
1179
1193
|
|
|
1180
1194
|
/**
|
|
1181
1195
|
* Represents the interface for video options, extending GeneralOptions.
|
|
@@ -1210,7 +1224,7 @@ declare interface VideoOptions_2 {
|
|
|
1210
1224
|
upload?: (files: File[]) => void;
|
|
1211
1225
|
}
|
|
1212
1226
|
|
|
1213
|
-
export declare const VideoUpload:
|
|
1227
|
+
export declare const VideoUpload: Node_2<VideoOptions_2, any>;
|
|
1214
1228
|
|
|
1215
1229
|
export declare const zh_CN: {
|
|
1216
1230
|
'editor.remove': string;
|
|
@@ -1362,6 +1376,10 @@ export declare const zh_CN: {
|
|
|
1362
1376
|
'editor.exportPdf.tooltip': string;
|
|
1363
1377
|
'editor.exportWord.tooltip': string;
|
|
1364
1378
|
'editor.importWrod.tooltip': string;
|
|
1379
|
+
'editor.textDirection.tooltip': string;
|
|
1380
|
+
'editor.textDirection.auto.tooltip': string;
|
|
1381
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
1382
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
1365
1383
|
};
|
|
1366
1384
|
|
|
1367
1385
|
export { }
|
|
@@ -1419,9 +1437,8 @@ declare module '@tiptap/core' {
|
|
|
1419
1437
|
|
|
1420
1438
|
declare module '@tiptap/core' {
|
|
1421
1439
|
interface Commands<ReturnType> {
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
unsetLineHeight: () => ReturnType;
|
|
1440
|
+
imageUpload: {
|
|
1441
|
+
setImageUpload: () => ReturnType;
|
|
1425
1442
|
};
|
|
1426
1443
|
}
|
|
1427
1444
|
}
|
|
@@ -1429,8 +1446,9 @@ declare module '@tiptap/core' {
|
|
|
1429
1446
|
|
|
1430
1447
|
declare module '@tiptap/core' {
|
|
1431
1448
|
interface Commands<ReturnType> {
|
|
1432
|
-
|
|
1433
|
-
|
|
1449
|
+
lineHeight: {
|
|
1450
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1451
|
+
unsetLineHeight: () => ReturnType;
|
|
1434
1452
|
};
|
|
1435
1453
|
}
|
|
1436
1454
|
}
|
|
@@ -1471,6 +1489,20 @@ declare module '@tiptap/core' {
|
|
|
1471
1489
|
}
|
|
1472
1490
|
|
|
1473
1491
|
|
|
1492
|
+
declare module '@tiptap/core' {
|
|
1493
|
+
interface Commands<ReturnType> {
|
|
1494
|
+
search: {
|
|
1495
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1496
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1497
|
+
replace: () => ReturnType;
|
|
1498
|
+
replaceAll: () => ReturnType;
|
|
1499
|
+
goToPrevSearchResult: () => void;
|
|
1500
|
+
goToNextSearchResult: () => void;
|
|
1501
|
+
};
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
|
|
1474
1506
|
declare module '@tiptap/core' {
|
|
1475
1507
|
interface Commands<ReturnType> {
|
|
1476
1508
|
columns: {
|
|
@@ -1497,8 +1529,8 @@ declare module '@tiptap/core' {
|
|
|
1497
1529
|
|
|
1498
1530
|
declare module '@tiptap/core' {
|
|
1499
1531
|
interface Commands<ReturnType> {
|
|
1500
|
-
|
|
1501
|
-
|
|
1532
|
+
videoUpload: {
|
|
1533
|
+
setVideoUpload: () => ReturnType;
|
|
1502
1534
|
};
|
|
1503
1535
|
}
|
|
1504
1536
|
}
|
|
@@ -1506,8 +1538,8 @@ declare module '@tiptap/core' {
|
|
|
1506
1538
|
|
|
1507
1539
|
declare module '@tiptap/core' {
|
|
1508
1540
|
interface Commands<ReturnType> {
|
|
1509
|
-
|
|
1510
|
-
|
|
1541
|
+
painter: {
|
|
1542
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1511
1543
|
};
|
|
1512
1544
|
}
|
|
1513
1545
|
}
|
|
@@ -1515,13 +1547,11 @@ declare module '@tiptap/core' {
|
|
|
1515
1547
|
|
|
1516
1548
|
declare module '@tiptap/core' {
|
|
1517
1549
|
interface Commands<ReturnType> {
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
goToPrevSearchResult: () => void;
|
|
1524
|
-
goToNextSearchResult: () => void;
|
|
1550
|
+
emoji: {
|
|
1551
|
+
setEmoji: (emoji: {
|
|
1552
|
+
name: string;
|
|
1553
|
+
emoji: string;
|
|
1554
|
+
}) => ReturnType;
|
|
1525
1555
|
};
|
|
1526
1556
|
}
|
|
1527
1557
|
}
|
|
@@ -1538,11 +1568,8 @@ declare module '@tiptap/core' {
|
|
|
1538
1568
|
|
|
1539
1569
|
declare module '@tiptap/core' {
|
|
1540
1570
|
interface Commands<ReturnType> {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
name: string;
|
|
1544
|
-
emoji: string;
|
|
1545
|
-
}) => ReturnType;
|
|
1571
|
+
exportWord: {
|
|
1572
|
+
exportToWord: () => ReturnType;
|
|
1546
1573
|
};
|
|
1547
1574
|
}
|
|
1548
1575
|
}
|
|
@@ -1558,15 +1585,6 @@ declare module '@tiptap/core' {
|
|
|
1558
1585
|
}
|
|
1559
1586
|
|
|
1560
1587
|
|
|
1561
|
-
declare module '@tiptap/core' {
|
|
1562
|
-
interface Commands<ReturnType> {
|
|
1563
|
-
exportWord: {
|
|
1564
|
-
exportToWord: () => ReturnType;
|
|
1565
|
-
};
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
1588
|
declare module '@tiptap/core' {
|
|
1571
1589
|
interface Commands<ReturnType> {
|
|
1572
1590
|
excalidraw: {
|
package/lib/index.d.ts
CHANGED
|
@@ -25,8 +25,8 @@ 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 { Node as Node_2 } from '@tiptap/
|
|
29
|
-
import { Node as Node_3 } from '@tiptap/
|
|
28
|
+
import { Node as Node_2 } from '@tiptap/core';
|
|
29
|
+
import { Node as Node_3 } from '@tiptap/react';
|
|
30
30
|
import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
|
|
31
31
|
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
32
32
|
import { PlaceholderOptions } from '@tiptap/extension-placeholder';
|
|
@@ -153,7 +153,7 @@ export declare interface BaseKitOptions {
|
|
|
153
153
|
selection: any | false;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
export declare const Blockquote:
|
|
156
|
+
export declare const Blockquote: Node_2<BlockquoteOptions, any>;
|
|
157
157
|
|
|
158
158
|
export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
|
|
159
159
|
}
|
|
@@ -249,7 +249,7 @@ declare interface BubbleMenuRenderProps {
|
|
|
249
249
|
bubbleMenu: BubbleMenuProps;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
export declare const BulletList:
|
|
252
|
+
export declare const BulletList: Node_2<BulletListOptions, any>;
|
|
253
253
|
|
|
254
254
|
export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
|
|
255
255
|
}
|
|
@@ -309,7 +309,7 @@ declare interface ButtonViewReturnComponentSlots {
|
|
|
309
309
|
[x: string]: () => any;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
export declare const Clear:
|
|
312
|
+
export declare const Clear: Node_2<ClearOptions, any>;
|
|
313
313
|
|
|
314
314
|
export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
|
|
315
315
|
}
|
|
@@ -339,7 +339,7 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
|
|
|
339
339
|
defaultColor?: string;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
export declare const Column:
|
|
342
|
+
export declare const Column: Node_2<any, any>;
|
|
343
343
|
|
|
344
344
|
export declare const ColumnActionButton: Extension<any, any>;
|
|
345
345
|
|
|
@@ -348,7 +348,7 @@ editor: Editor_2 | null;
|
|
|
348
348
|
}>>;
|
|
349
349
|
export default _default;
|
|
350
350
|
|
|
351
|
-
export declare const Emoji:
|
|
351
|
+
export declare const Emoji: Node_2<any, any>;
|
|
352
352
|
|
|
353
353
|
export declare const en: {
|
|
354
354
|
'editor.remove': string;
|
|
@@ -500,9 +500,13 @@ export declare const en: {
|
|
|
500
500
|
'editor.exportPdf.tooltip': string;
|
|
501
501
|
'editor.exportWord.tooltip': string;
|
|
502
502
|
'editor.importWrod.tooltip': string;
|
|
503
|
+
'editor.textDirection.tooltip': string;
|
|
504
|
+
'editor.textDirection.auto.tooltip': string;
|
|
505
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
506
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
503
507
|
};
|
|
504
508
|
|
|
505
|
-
export declare const Excalidraw:
|
|
509
|
+
export declare const Excalidraw: Node_2<any, any>;
|
|
506
510
|
|
|
507
511
|
export declare const ExportPdf: Extension<any, any>;
|
|
508
512
|
|
|
@@ -560,7 +564,7 @@ declare interface GeneralOptions<T> {
|
|
|
560
564
|
toolbar?: boolean;
|
|
561
565
|
}
|
|
562
566
|
|
|
563
|
-
export declare const Heading:
|
|
567
|
+
export declare const Heading: Node_2<HeadingOptions, any>;
|
|
564
568
|
|
|
565
569
|
export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
|
|
566
570
|
}
|
|
@@ -577,21 +581,21 @@ export { History_2 as History }
|
|
|
577
581
|
export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
|
|
578
582
|
}
|
|
579
583
|
|
|
580
|
-
export declare const HorizontalRule:
|
|
584
|
+
export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
|
|
581
585
|
|
|
582
586
|
export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
|
|
583
587
|
}
|
|
584
588
|
|
|
585
|
-
export declare const Iframe:
|
|
589
|
+
export declare const Iframe: Node_2<any, any>;
|
|
586
590
|
|
|
587
591
|
declare interface IKatexOptions {
|
|
588
592
|
HTMLAttributes: Record<string, any>;
|
|
589
593
|
}
|
|
590
594
|
|
|
591
|
-
declare const Image_2:
|
|
595
|
+
declare const Image_2: Node_2<ImageOptions, any>;
|
|
592
596
|
export { Image_2 as Image }
|
|
593
597
|
|
|
594
|
-
export declare const ImageUpload:
|
|
598
|
+
export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
|
|
595
599
|
|
|
596
600
|
export declare interface ImageUploadOptions {
|
|
597
601
|
upload: (file: File) => Promise<string>;
|
|
@@ -623,7 +627,7 @@ export declare const Italic: Mark<ItalicOptions, any>;
|
|
|
623
627
|
export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
|
|
624
628
|
}
|
|
625
629
|
|
|
626
|
-
export declare const Katex:
|
|
630
|
+
export declare const Katex: Node_2<IKatexOptions, any>;
|
|
627
631
|
|
|
628
632
|
declare type LanguageType = 'en' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
|
|
629
633
|
|
|
@@ -678,7 +682,7 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
|
|
|
678
682
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
679
683
|
}
|
|
680
684
|
|
|
681
|
-
export declare const MultiColumn:
|
|
685
|
+
export declare const MultiColumn: Node_2<any, any>;
|
|
682
686
|
|
|
683
687
|
declare interface NameValueOption<T = string> {
|
|
684
688
|
name: string;
|
|
@@ -689,7 +693,7 @@ declare interface Options {
|
|
|
689
693
|
onHasOneBeforeInsert?: () => void;
|
|
690
694
|
}
|
|
691
695
|
|
|
692
|
-
export declare const OrderedList:
|
|
696
|
+
export declare const OrderedList: Node_2<OrderedListOptions, any>;
|
|
693
697
|
|
|
694
698
|
export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
|
|
695
699
|
}
|
|
@@ -844,6 +848,10 @@ export declare const pt_BR: {
|
|
|
844
848
|
'editor.exportPdf.tooltip': string;
|
|
845
849
|
'editor.exportWord.tooltip': string;
|
|
846
850
|
'editor.importWrod.tooltip': string;
|
|
851
|
+
'editor.textDirection.tooltip': string;
|
|
852
|
+
'editor.textDirection.auto.tooltip': string;
|
|
853
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
854
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
847
855
|
};
|
|
848
856
|
|
|
849
857
|
declare interface Result {
|
|
@@ -955,14 +963,14 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
|
|
|
955
963
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
956
964
|
}
|
|
957
965
|
|
|
958
|
-
export declare const Table:
|
|
966
|
+
export declare const Table: Node_2<TableOptions, any>;
|
|
959
967
|
|
|
960
968
|
declare interface TableCellBackgroundOptions {
|
|
961
969
|
HTMLAttributes: Record<string, any>;
|
|
962
970
|
types?: any;
|
|
963
971
|
}
|
|
964
972
|
|
|
965
|
-
export declare const TableOfContents:
|
|
973
|
+
export declare const TableOfContents: Node_2<Options, any>;
|
|
966
974
|
|
|
967
975
|
export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
968
976
|
HTMLAttributes: Record<string, any>;
|
|
@@ -981,7 +989,7 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
|
981
989
|
tableCellBackground: Partial<TableCellBackgroundOptions>;
|
|
982
990
|
}
|
|
983
991
|
|
|
984
|
-
export declare const TaskList:
|
|
992
|
+
export declare const TaskList: Node_2<TaskListOptions, any>;
|
|
985
993
|
|
|
986
994
|
/**
|
|
987
995
|
* Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
|
|
@@ -1008,6 +1016,8 @@ export declare interface TextAlignOptions extends TextAlignOptions_2, GeneralOpt
|
|
|
1008
1016
|
declare interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
|
|
1009
1017
|
}
|
|
1010
1018
|
|
|
1019
|
+
export declare const TextDirection: Extension<any, any>;
|
|
1020
|
+
|
|
1011
1021
|
/**
|
|
1012
1022
|
* Extension based on:
|
|
1013
1023
|
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
@@ -1173,9 +1183,13 @@ export declare const vi: {
|
|
|
1173
1183
|
'editor.exportPdf.tooltip': string;
|
|
1174
1184
|
'editor.exportWord.tooltip': string;
|
|
1175
1185
|
'editor.importWrod.tooltip': string;
|
|
1186
|
+
'editor.textDirection.tooltip': string;
|
|
1187
|
+
'editor.textDirection.auto.tooltip': string;
|
|
1188
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
1189
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
1176
1190
|
};
|
|
1177
1191
|
|
|
1178
|
-
export declare const Video:
|
|
1192
|
+
export declare const Video: Node_2<VideoOptions, any>;
|
|
1179
1193
|
|
|
1180
1194
|
/**
|
|
1181
1195
|
* Represents the interface for video options, extending GeneralOptions.
|
|
@@ -1210,7 +1224,7 @@ declare interface VideoOptions_2 {
|
|
|
1210
1224
|
upload?: (files: File[]) => void;
|
|
1211
1225
|
}
|
|
1212
1226
|
|
|
1213
|
-
export declare const VideoUpload:
|
|
1227
|
+
export declare const VideoUpload: Node_2<VideoOptions_2, any>;
|
|
1214
1228
|
|
|
1215
1229
|
export declare const zh_CN: {
|
|
1216
1230
|
'editor.remove': string;
|
|
@@ -1362,6 +1376,10 @@ export declare const zh_CN: {
|
|
|
1362
1376
|
'editor.exportPdf.tooltip': string;
|
|
1363
1377
|
'editor.exportWord.tooltip': string;
|
|
1364
1378
|
'editor.importWrod.tooltip': string;
|
|
1379
|
+
'editor.textDirection.tooltip': string;
|
|
1380
|
+
'editor.textDirection.auto.tooltip': string;
|
|
1381
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
1382
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
1365
1383
|
};
|
|
1366
1384
|
|
|
1367
1385
|
export { }
|
|
@@ -1419,9 +1437,8 @@ declare module '@tiptap/core' {
|
|
|
1419
1437
|
|
|
1420
1438
|
declare module '@tiptap/core' {
|
|
1421
1439
|
interface Commands<ReturnType> {
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
unsetLineHeight: () => ReturnType;
|
|
1440
|
+
imageUpload: {
|
|
1441
|
+
setImageUpload: () => ReturnType;
|
|
1425
1442
|
};
|
|
1426
1443
|
}
|
|
1427
1444
|
}
|
|
@@ -1429,8 +1446,9 @@ declare module '@tiptap/core' {
|
|
|
1429
1446
|
|
|
1430
1447
|
declare module '@tiptap/core' {
|
|
1431
1448
|
interface Commands<ReturnType> {
|
|
1432
|
-
|
|
1433
|
-
|
|
1449
|
+
lineHeight: {
|
|
1450
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1451
|
+
unsetLineHeight: () => ReturnType;
|
|
1434
1452
|
};
|
|
1435
1453
|
}
|
|
1436
1454
|
}
|
|
@@ -1471,6 +1489,20 @@ declare module '@tiptap/core' {
|
|
|
1471
1489
|
}
|
|
1472
1490
|
|
|
1473
1491
|
|
|
1492
|
+
declare module '@tiptap/core' {
|
|
1493
|
+
interface Commands<ReturnType> {
|
|
1494
|
+
search: {
|
|
1495
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1496
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1497
|
+
replace: () => ReturnType;
|
|
1498
|
+
replaceAll: () => ReturnType;
|
|
1499
|
+
goToPrevSearchResult: () => void;
|
|
1500
|
+
goToNextSearchResult: () => void;
|
|
1501
|
+
};
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
|
|
1474
1506
|
declare module '@tiptap/core' {
|
|
1475
1507
|
interface Commands<ReturnType> {
|
|
1476
1508
|
columns: {
|
|
@@ -1497,8 +1529,8 @@ declare module '@tiptap/core' {
|
|
|
1497
1529
|
|
|
1498
1530
|
declare module '@tiptap/core' {
|
|
1499
1531
|
interface Commands<ReturnType> {
|
|
1500
|
-
|
|
1501
|
-
|
|
1532
|
+
videoUpload: {
|
|
1533
|
+
setVideoUpload: () => ReturnType;
|
|
1502
1534
|
};
|
|
1503
1535
|
}
|
|
1504
1536
|
}
|
|
@@ -1506,8 +1538,8 @@ declare module '@tiptap/core' {
|
|
|
1506
1538
|
|
|
1507
1539
|
declare module '@tiptap/core' {
|
|
1508
1540
|
interface Commands<ReturnType> {
|
|
1509
|
-
|
|
1510
|
-
|
|
1541
|
+
painter: {
|
|
1542
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1511
1543
|
};
|
|
1512
1544
|
}
|
|
1513
1545
|
}
|
|
@@ -1515,13 +1547,11 @@ declare module '@tiptap/core' {
|
|
|
1515
1547
|
|
|
1516
1548
|
declare module '@tiptap/core' {
|
|
1517
1549
|
interface Commands<ReturnType> {
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
goToPrevSearchResult: () => void;
|
|
1524
|
-
goToNextSearchResult: () => void;
|
|
1550
|
+
emoji: {
|
|
1551
|
+
setEmoji: (emoji: {
|
|
1552
|
+
name: string;
|
|
1553
|
+
emoji: string;
|
|
1554
|
+
}) => ReturnType;
|
|
1525
1555
|
};
|
|
1526
1556
|
}
|
|
1527
1557
|
}
|
|
@@ -1538,11 +1568,8 @@ declare module '@tiptap/core' {
|
|
|
1538
1568
|
|
|
1539
1569
|
declare module '@tiptap/core' {
|
|
1540
1570
|
interface Commands<ReturnType> {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
name: string;
|
|
1544
|
-
emoji: string;
|
|
1545
|
-
}) => ReturnType;
|
|
1571
|
+
exportWord: {
|
|
1572
|
+
exportToWord: () => ReturnType;
|
|
1546
1573
|
};
|
|
1547
1574
|
}
|
|
1548
1575
|
}
|
|
@@ -1558,15 +1585,6 @@ declare module '@tiptap/core' {
|
|
|
1558
1585
|
}
|
|
1559
1586
|
|
|
1560
1587
|
|
|
1561
|
-
declare module '@tiptap/core' {
|
|
1562
|
-
interface Commands<ReturnType> {
|
|
1563
|
-
exportWord: {
|
|
1564
|
-
exportToWord: () => ReturnType;
|
|
1565
|
-
};
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
1588
|
declare module '@tiptap/core' {
|
|
1571
1589
|
interface Commands<ReturnType> {
|
|
1572
1590
|
excalidraw: {
|