reactjs-tiptap-editor 0.0.47 → 0.0.49
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 +87 -71
- package/lib/index.d.ts +87 -71
- package/lib/locales-B9Twb8_i.cjs +1 -0
- package/lib/{locales-Cqe5eoG1.js → locales-CWlwSk1K.js} +48 -23
- package/lib/reactjs-tiptap-editor.cjs +1 -1
- package/lib/reactjs-tiptap-editor.js +2 -2
- package/lib/style.css +1 -1
- package/lib/utils-BWwZ1a9t.cjs +149 -0
- package/lib/{utils-CysWbjXs.js → utils-BnwdI_JH.js} +2074 -1896
- package/package.json +2 -1
- package/lib/locales-CPJzQTZK.cjs +0 -1
- package/lib/utils-hmhVfFW5.cjs +0 -135
package/lib/index.d.cts
CHANGED
|
@@ -447,6 +447,7 @@ export declare const en: {
|
|
|
447
447
|
'editor.image.dialog.title': string;
|
|
448
448
|
'editor.image.dialog.tab.url': string;
|
|
449
449
|
'editor.image.dialog.tab.upload': string;
|
|
450
|
+
'editor.image.dialog.tab.uploadCrop': string;
|
|
450
451
|
'editor.image.dialog.uploading': string;
|
|
451
452
|
'editor.image.dialog.form.link': string;
|
|
452
453
|
'editor.image.dialog.placeholder': string;
|
|
@@ -481,6 +482,8 @@ export declare const en: {
|
|
|
481
482
|
'editor.redo.tooltip': string;
|
|
482
483
|
'editor.fullscreen.tooltip.fullscreen': string;
|
|
483
484
|
'editor.fullscreen.tooltip.exit': string;
|
|
485
|
+
'editor.imageUpload.cancel': string;
|
|
486
|
+
'editor.imageUpload.crop': string;
|
|
484
487
|
'editor.imageUpload.fileTypeNotSupported': string;
|
|
485
488
|
'editor.imageUpload.fileSizeTooBig': string;
|
|
486
489
|
'editor.table.menu.insertColumnBefore': string;
|
|
@@ -524,6 +527,7 @@ export declare const en: {
|
|
|
524
527
|
'editor.attachment.uploading': string;
|
|
525
528
|
'editor.attachment.please_upload': string;
|
|
526
529
|
'editor.imageGif.tooltip': string;
|
|
530
|
+
'editor.replace.caseSensitive': string;
|
|
527
531
|
};
|
|
528
532
|
|
|
529
533
|
export declare const Excalidraw: Node_2<any, any>;
|
|
@@ -811,6 +815,7 @@ export declare const pt_BR: {
|
|
|
811
815
|
'editor.image.dialog.title': string;
|
|
812
816
|
'editor.image.dialog.tab.url': string;
|
|
813
817
|
'editor.image.dialog.tab.upload': string;
|
|
818
|
+
'editor.image.dialog.tab.uploadCrop': string;
|
|
814
819
|
'editor.image.dialog.uploading': string;
|
|
815
820
|
'editor.image.dialog.form.link': string;
|
|
816
821
|
'editor.image.dialog.placeholder': string;
|
|
@@ -845,6 +850,8 @@ export declare const pt_BR: {
|
|
|
845
850
|
'editor.redo.tooltip': string;
|
|
846
851
|
'editor.fullscreen.tooltip.fullscreen': string;
|
|
847
852
|
'editor.fullscreen.tooltip.exit': string;
|
|
853
|
+
'editor.imageUpload.cancel': string;
|
|
854
|
+
'editor.imageUpload.crop': string;
|
|
848
855
|
'editor.imageUpload.fileTypeNotSupported': string;
|
|
849
856
|
'editor.imageUpload.fileSizeTooBig': string;
|
|
850
857
|
'editor.table.menu.insertColumnBefore': string;
|
|
@@ -888,6 +895,7 @@ export declare const pt_BR: {
|
|
|
888
895
|
'editor.attachment.uploading': string;
|
|
889
896
|
'editor.attachment.please_upload': string;
|
|
890
897
|
'editor.imageGif.tooltip': string;
|
|
898
|
+
'editor.replace.caseSensitive': string;
|
|
891
899
|
};
|
|
892
900
|
|
|
893
901
|
declare interface Result {
|
|
@@ -1150,7 +1158,7 @@ export declare const vi: {
|
|
|
1150
1158
|
'editor.image.dialog.title': string;
|
|
1151
1159
|
'editor.image.dialog.tab.url': string;
|
|
1152
1160
|
'editor.image.dialog.tab.upload': string;
|
|
1153
|
-
'editor.image.dialog.
|
|
1161
|
+
'editor.image.dialog.tab.uploadCrop': string;
|
|
1154
1162
|
'editor.image.dialog.form.link': string;
|
|
1155
1163
|
'editor.image.dialog.placeholder': string;
|
|
1156
1164
|
'editor.image.dialog.form.alt': string;
|
|
@@ -1184,6 +1192,8 @@ export declare const vi: {
|
|
|
1184
1192
|
'editor.redo.tooltip': string;
|
|
1185
1193
|
'editor.fullscreen.tooltip.fullscreen': string;
|
|
1186
1194
|
'editor.fullscreen.tooltip.exit': string;
|
|
1195
|
+
'editor.imageUpload.cancel': string;
|
|
1196
|
+
'editor.imageUpload.crop': string;
|
|
1187
1197
|
'editor.imageUpload.fileTypeNotSupported': string;
|
|
1188
1198
|
'editor.imageUpload.fileSizeTooBig': string;
|
|
1189
1199
|
'editor.table.menu.insertColumnBefore': string;
|
|
@@ -1227,6 +1237,7 @@ export declare const vi: {
|
|
|
1227
1237
|
'editor.attachment.uploading': string;
|
|
1228
1238
|
'editor.attachment.please_upload': string;
|
|
1229
1239
|
'editor.imageGif.tooltip': string;
|
|
1240
|
+
'editor.replace.caseSensitive': string;
|
|
1230
1241
|
};
|
|
1231
1242
|
|
|
1232
1243
|
export declare const Video: Node_2<VideoOptions, any>;
|
|
@@ -1356,6 +1367,7 @@ export declare const zh_CN: {
|
|
|
1356
1367
|
'editor.image.dialog.button.apply': string;
|
|
1357
1368
|
'editor.video.tooltip': string;
|
|
1358
1369
|
'editor.video.dialog.tab.upload': string;
|
|
1370
|
+
'editor.image.dialog.tab.uploadCrop': string;
|
|
1359
1371
|
'editor.video.dialog.uploading': string;
|
|
1360
1372
|
'editor.video.dialog.title': string;
|
|
1361
1373
|
'editor.video.dialog.link': string;
|
|
@@ -1381,6 +1393,8 @@ export declare const zh_CN: {
|
|
|
1381
1393
|
'editor.redo.tooltip': string;
|
|
1382
1394
|
'editor.fullscreen.tooltip.fullscreen': string;
|
|
1383
1395
|
'editor.fullscreen.tooltip.exit': string;
|
|
1396
|
+
'editor.imageUpload.cancel': string;
|
|
1397
|
+
'editor.imageUpload.crop': string;
|
|
1384
1398
|
'editor.imageUpload.fileTypeNotSupported': string;
|
|
1385
1399
|
'editor.imageUpload.fileSizeTooBig': string;
|
|
1386
1400
|
'editor.table.menu.insertColumnBefore': string;
|
|
@@ -1424,6 +1438,7 @@ export declare const zh_CN: {
|
|
|
1424
1438
|
'editor.attachment.uploading': string;
|
|
1425
1439
|
'editor.attachment.please_upload': string;
|
|
1426
1440
|
'editor.imageGif.tooltip': string;
|
|
1441
|
+
'editor.replace.caseSensitive': string;
|
|
1427
1442
|
};
|
|
1428
1443
|
|
|
1429
1444
|
export { }
|
|
@@ -1465,15 +1480,8 @@ declare module '@tiptap/core' {
|
|
|
1465
1480
|
|
|
1466
1481
|
declare module '@tiptap/core' {
|
|
1467
1482
|
interface Commands<ReturnType> {
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
* Set the indent attribute
|
|
1471
|
-
*/
|
|
1472
|
-
indent: () => ReturnType;
|
|
1473
|
-
/**
|
|
1474
|
-
* Set the outdent attribute
|
|
1475
|
-
*/
|
|
1476
|
-
outdent: () => ReturnType;
|
|
1483
|
+
imageUpload: {
|
|
1484
|
+
setImageUpload: () => ReturnType;
|
|
1477
1485
|
};
|
|
1478
1486
|
}
|
|
1479
1487
|
}
|
|
@@ -1491,8 +1499,25 @@ declare module '@tiptap/core' {
|
|
|
1491
1499
|
|
|
1492
1500
|
declare module '@tiptap/core' {
|
|
1493
1501
|
interface Commands<ReturnType> {
|
|
1494
|
-
|
|
1495
|
-
|
|
1502
|
+
indent: {
|
|
1503
|
+
/**
|
|
1504
|
+
* Set the indent attribute
|
|
1505
|
+
*/
|
|
1506
|
+
indent: () => ReturnType;
|
|
1507
|
+
/**
|
|
1508
|
+
* Set the outdent attribute
|
|
1509
|
+
*/
|
|
1510
|
+
outdent: () => ReturnType;
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
declare module '@tiptap/core' {
|
|
1517
|
+
interface Commands<ReturnType> {
|
|
1518
|
+
tableCellBackground: {
|
|
1519
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1520
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1496
1521
|
};
|
|
1497
1522
|
}
|
|
1498
1523
|
}
|
|
@@ -1520,32 +1545,8 @@ declare module '@tiptap/core' {
|
|
|
1520
1545
|
|
|
1521
1546
|
declare module '@tiptap/core' {
|
|
1522
1547
|
interface Commands<ReturnType> {
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
};
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
declare module '@tiptap/core' {
|
|
1531
|
-
interface Commands<ReturnType> {
|
|
1532
|
-
imageUpload: {
|
|
1533
|
-
setImageUpload: () => ReturnType;
|
|
1534
|
-
};
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
declare module '@tiptap/core' {
|
|
1540
|
-
interface Commands<ReturnType> {
|
|
1541
|
-
iframe: {
|
|
1542
|
-
/**
|
|
1543
|
-
* Add an iframe
|
|
1544
|
-
*/
|
|
1545
|
-
setIframe: (options: {
|
|
1546
|
-
src: string;
|
|
1547
|
-
service: string;
|
|
1548
|
-
}) => ReturnType;
|
|
1548
|
+
videoUpload: {
|
|
1549
|
+
setVideoUpload: () => ReturnType;
|
|
1549
1550
|
};
|
|
1550
1551
|
}
|
|
1551
1552
|
}
|
|
@@ -1553,8 +1554,8 @@ declare module '@tiptap/core' {
|
|
|
1553
1554
|
|
|
1554
1555
|
declare module '@tiptap/core' {
|
|
1555
1556
|
interface Commands<ReturnType> {
|
|
1556
|
-
|
|
1557
|
-
|
|
1557
|
+
painter: {
|
|
1558
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1558
1559
|
};
|
|
1559
1560
|
}
|
|
1560
1561
|
}
|
|
@@ -1576,30 +1577,8 @@ declare module '@tiptap/core' {
|
|
|
1576
1577
|
|
|
1577
1578
|
declare module '@tiptap/core' {
|
|
1578
1579
|
interface Commands<ReturnType> {
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
unsetTableCellBackground: () => ReturnType;
|
|
1582
|
-
};
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
declare module '@tiptap/core' {
|
|
1588
|
-
interface Commands<ReturnType> {
|
|
1589
|
-
emoji: {
|
|
1590
|
-
setEmoji: (emoji: {
|
|
1591
|
-
name: string;
|
|
1592
|
-
emoji: string;
|
|
1593
|
-
}) => ReturnType;
|
|
1594
|
-
};
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
declare module '@tiptap/core' {
|
|
1600
|
-
interface Commands<ReturnType> {
|
|
1601
|
-
exportWord: {
|
|
1602
|
-
exportToWord: () => ReturnType;
|
|
1580
|
+
excalidraw: {
|
|
1581
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1603
1582
|
};
|
|
1604
1583
|
}
|
|
1605
1584
|
}
|
|
@@ -1607,8 +1586,8 @@ declare module '@tiptap/core' {
|
|
|
1607
1586
|
|
|
1608
1587
|
declare module '@tiptap/core' {
|
|
1609
1588
|
interface Commands<ReturnType> {
|
|
1610
|
-
|
|
1611
|
-
|
|
1589
|
+
katex: {
|
|
1590
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1612
1591
|
};
|
|
1613
1592
|
}
|
|
1614
1593
|
}
|
|
@@ -1616,8 +1595,11 @@ declare module '@tiptap/core' {
|
|
|
1616
1595
|
|
|
1617
1596
|
declare module '@tiptap/core' {
|
|
1618
1597
|
interface Commands<ReturnType> {
|
|
1619
|
-
|
|
1620
|
-
|
|
1598
|
+
emoji: {
|
|
1599
|
+
setEmoji: (emoji: {
|
|
1600
|
+
name: string;
|
|
1601
|
+
emoji: string;
|
|
1602
|
+
}) => ReturnType;
|
|
1621
1603
|
};
|
|
1622
1604
|
}
|
|
1623
1605
|
}
|
|
@@ -1632,6 +1614,7 @@ declare module '@tiptap/core' {
|
|
|
1632
1614
|
replaceAll: () => ReturnType;
|
|
1633
1615
|
goToPrevSearchResult: () => void;
|
|
1634
1616
|
goToNextSearchResult: () => void;
|
|
1617
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1635
1618
|
};
|
|
1636
1619
|
}
|
|
1637
1620
|
}
|
|
@@ -1639,9 +1622,23 @@ declare module '@tiptap/core' {
|
|
|
1639
1622
|
|
|
1640
1623
|
declare module '@tiptap/core' {
|
|
1641
1624
|
interface Commands<ReturnType> {
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1625
|
+
exportWord: {
|
|
1626
|
+
exportToWord: () => ReturnType;
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
declare module '@tiptap/core' {
|
|
1633
|
+
interface Commands<ReturnType> {
|
|
1634
|
+
iframe: {
|
|
1635
|
+
/**
|
|
1636
|
+
* Add an iframe
|
|
1637
|
+
*/
|
|
1638
|
+
setIframe: (options: {
|
|
1639
|
+
src: string;
|
|
1640
|
+
service: string;
|
|
1641
|
+
}) => ReturnType;
|
|
1645
1642
|
};
|
|
1646
1643
|
}
|
|
1647
1644
|
}
|
|
@@ -1667,6 +1664,25 @@ declare module '@tiptap/core' {
|
|
|
1667
1664
|
}
|
|
1668
1665
|
|
|
1669
1666
|
|
|
1667
|
+
declare module '@tiptap/core' {
|
|
1668
|
+
interface Commands<ReturnType> {
|
|
1669
|
+
attachment: {
|
|
1670
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1671
|
+
};
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
declare module '@tiptap/core' {
|
|
1677
|
+
interface Commands<ReturnType> {
|
|
1678
|
+
tableOfContents: {
|
|
1679
|
+
setTableOfContents: () => ReturnType;
|
|
1680
|
+
removeTableOfContents: () => ReturnType;
|
|
1681
|
+
};
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
|
|
1670
1686
|
declare namespace DropdownMenuShortcut {
|
|
1671
1687
|
var displayName: string;
|
|
1672
1688
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -447,6 +447,7 @@ export declare const en: {
|
|
|
447
447
|
'editor.image.dialog.title': string;
|
|
448
448
|
'editor.image.dialog.tab.url': string;
|
|
449
449
|
'editor.image.dialog.tab.upload': string;
|
|
450
|
+
'editor.image.dialog.tab.uploadCrop': string;
|
|
450
451
|
'editor.image.dialog.uploading': string;
|
|
451
452
|
'editor.image.dialog.form.link': string;
|
|
452
453
|
'editor.image.dialog.placeholder': string;
|
|
@@ -481,6 +482,8 @@ export declare const en: {
|
|
|
481
482
|
'editor.redo.tooltip': string;
|
|
482
483
|
'editor.fullscreen.tooltip.fullscreen': string;
|
|
483
484
|
'editor.fullscreen.tooltip.exit': string;
|
|
485
|
+
'editor.imageUpload.cancel': string;
|
|
486
|
+
'editor.imageUpload.crop': string;
|
|
484
487
|
'editor.imageUpload.fileTypeNotSupported': string;
|
|
485
488
|
'editor.imageUpload.fileSizeTooBig': string;
|
|
486
489
|
'editor.table.menu.insertColumnBefore': string;
|
|
@@ -524,6 +527,7 @@ export declare const en: {
|
|
|
524
527
|
'editor.attachment.uploading': string;
|
|
525
528
|
'editor.attachment.please_upload': string;
|
|
526
529
|
'editor.imageGif.tooltip': string;
|
|
530
|
+
'editor.replace.caseSensitive': string;
|
|
527
531
|
};
|
|
528
532
|
|
|
529
533
|
export declare const Excalidraw: Node_2<any, any>;
|
|
@@ -811,6 +815,7 @@ export declare const pt_BR: {
|
|
|
811
815
|
'editor.image.dialog.title': string;
|
|
812
816
|
'editor.image.dialog.tab.url': string;
|
|
813
817
|
'editor.image.dialog.tab.upload': string;
|
|
818
|
+
'editor.image.dialog.tab.uploadCrop': string;
|
|
814
819
|
'editor.image.dialog.uploading': string;
|
|
815
820
|
'editor.image.dialog.form.link': string;
|
|
816
821
|
'editor.image.dialog.placeholder': string;
|
|
@@ -845,6 +850,8 @@ export declare const pt_BR: {
|
|
|
845
850
|
'editor.redo.tooltip': string;
|
|
846
851
|
'editor.fullscreen.tooltip.fullscreen': string;
|
|
847
852
|
'editor.fullscreen.tooltip.exit': string;
|
|
853
|
+
'editor.imageUpload.cancel': string;
|
|
854
|
+
'editor.imageUpload.crop': string;
|
|
848
855
|
'editor.imageUpload.fileTypeNotSupported': string;
|
|
849
856
|
'editor.imageUpload.fileSizeTooBig': string;
|
|
850
857
|
'editor.table.menu.insertColumnBefore': string;
|
|
@@ -888,6 +895,7 @@ export declare const pt_BR: {
|
|
|
888
895
|
'editor.attachment.uploading': string;
|
|
889
896
|
'editor.attachment.please_upload': string;
|
|
890
897
|
'editor.imageGif.tooltip': string;
|
|
898
|
+
'editor.replace.caseSensitive': string;
|
|
891
899
|
};
|
|
892
900
|
|
|
893
901
|
declare interface Result {
|
|
@@ -1150,7 +1158,7 @@ export declare const vi: {
|
|
|
1150
1158
|
'editor.image.dialog.title': string;
|
|
1151
1159
|
'editor.image.dialog.tab.url': string;
|
|
1152
1160
|
'editor.image.dialog.tab.upload': string;
|
|
1153
|
-
'editor.image.dialog.
|
|
1161
|
+
'editor.image.dialog.tab.uploadCrop': string;
|
|
1154
1162
|
'editor.image.dialog.form.link': string;
|
|
1155
1163
|
'editor.image.dialog.placeholder': string;
|
|
1156
1164
|
'editor.image.dialog.form.alt': string;
|
|
@@ -1184,6 +1192,8 @@ export declare const vi: {
|
|
|
1184
1192
|
'editor.redo.tooltip': string;
|
|
1185
1193
|
'editor.fullscreen.tooltip.fullscreen': string;
|
|
1186
1194
|
'editor.fullscreen.tooltip.exit': string;
|
|
1195
|
+
'editor.imageUpload.cancel': string;
|
|
1196
|
+
'editor.imageUpload.crop': string;
|
|
1187
1197
|
'editor.imageUpload.fileTypeNotSupported': string;
|
|
1188
1198
|
'editor.imageUpload.fileSizeTooBig': string;
|
|
1189
1199
|
'editor.table.menu.insertColumnBefore': string;
|
|
@@ -1227,6 +1237,7 @@ export declare const vi: {
|
|
|
1227
1237
|
'editor.attachment.uploading': string;
|
|
1228
1238
|
'editor.attachment.please_upload': string;
|
|
1229
1239
|
'editor.imageGif.tooltip': string;
|
|
1240
|
+
'editor.replace.caseSensitive': string;
|
|
1230
1241
|
};
|
|
1231
1242
|
|
|
1232
1243
|
export declare const Video: Node_2<VideoOptions, any>;
|
|
@@ -1356,6 +1367,7 @@ export declare const zh_CN: {
|
|
|
1356
1367
|
'editor.image.dialog.button.apply': string;
|
|
1357
1368
|
'editor.video.tooltip': string;
|
|
1358
1369
|
'editor.video.dialog.tab.upload': string;
|
|
1370
|
+
'editor.image.dialog.tab.uploadCrop': string;
|
|
1359
1371
|
'editor.video.dialog.uploading': string;
|
|
1360
1372
|
'editor.video.dialog.title': string;
|
|
1361
1373
|
'editor.video.dialog.link': string;
|
|
@@ -1381,6 +1393,8 @@ export declare const zh_CN: {
|
|
|
1381
1393
|
'editor.redo.tooltip': string;
|
|
1382
1394
|
'editor.fullscreen.tooltip.fullscreen': string;
|
|
1383
1395
|
'editor.fullscreen.tooltip.exit': string;
|
|
1396
|
+
'editor.imageUpload.cancel': string;
|
|
1397
|
+
'editor.imageUpload.crop': string;
|
|
1384
1398
|
'editor.imageUpload.fileTypeNotSupported': string;
|
|
1385
1399
|
'editor.imageUpload.fileSizeTooBig': string;
|
|
1386
1400
|
'editor.table.menu.insertColumnBefore': string;
|
|
@@ -1424,6 +1438,7 @@ export declare const zh_CN: {
|
|
|
1424
1438
|
'editor.attachment.uploading': string;
|
|
1425
1439
|
'editor.attachment.please_upload': string;
|
|
1426
1440
|
'editor.imageGif.tooltip': string;
|
|
1441
|
+
'editor.replace.caseSensitive': string;
|
|
1427
1442
|
};
|
|
1428
1443
|
|
|
1429
1444
|
export { }
|
|
@@ -1465,15 +1480,8 @@ declare module '@tiptap/core' {
|
|
|
1465
1480
|
|
|
1466
1481
|
declare module '@tiptap/core' {
|
|
1467
1482
|
interface Commands<ReturnType> {
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
* Set the indent attribute
|
|
1471
|
-
*/
|
|
1472
|
-
indent: () => ReturnType;
|
|
1473
|
-
/**
|
|
1474
|
-
* Set the outdent attribute
|
|
1475
|
-
*/
|
|
1476
|
-
outdent: () => ReturnType;
|
|
1483
|
+
imageUpload: {
|
|
1484
|
+
setImageUpload: () => ReturnType;
|
|
1477
1485
|
};
|
|
1478
1486
|
}
|
|
1479
1487
|
}
|
|
@@ -1491,8 +1499,25 @@ declare module '@tiptap/core' {
|
|
|
1491
1499
|
|
|
1492
1500
|
declare module '@tiptap/core' {
|
|
1493
1501
|
interface Commands<ReturnType> {
|
|
1494
|
-
|
|
1495
|
-
|
|
1502
|
+
indent: {
|
|
1503
|
+
/**
|
|
1504
|
+
* Set the indent attribute
|
|
1505
|
+
*/
|
|
1506
|
+
indent: () => ReturnType;
|
|
1507
|
+
/**
|
|
1508
|
+
* Set the outdent attribute
|
|
1509
|
+
*/
|
|
1510
|
+
outdent: () => ReturnType;
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
declare module '@tiptap/core' {
|
|
1517
|
+
interface Commands<ReturnType> {
|
|
1518
|
+
tableCellBackground: {
|
|
1519
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1520
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1496
1521
|
};
|
|
1497
1522
|
}
|
|
1498
1523
|
}
|
|
@@ -1520,32 +1545,8 @@ declare module '@tiptap/core' {
|
|
|
1520
1545
|
|
|
1521
1546
|
declare module '@tiptap/core' {
|
|
1522
1547
|
interface Commands<ReturnType> {
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
};
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
declare module '@tiptap/core' {
|
|
1531
|
-
interface Commands<ReturnType> {
|
|
1532
|
-
imageUpload: {
|
|
1533
|
-
setImageUpload: () => ReturnType;
|
|
1534
|
-
};
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
declare module '@tiptap/core' {
|
|
1540
|
-
interface Commands<ReturnType> {
|
|
1541
|
-
iframe: {
|
|
1542
|
-
/**
|
|
1543
|
-
* Add an iframe
|
|
1544
|
-
*/
|
|
1545
|
-
setIframe: (options: {
|
|
1546
|
-
src: string;
|
|
1547
|
-
service: string;
|
|
1548
|
-
}) => ReturnType;
|
|
1548
|
+
videoUpload: {
|
|
1549
|
+
setVideoUpload: () => ReturnType;
|
|
1549
1550
|
};
|
|
1550
1551
|
}
|
|
1551
1552
|
}
|
|
@@ -1553,8 +1554,8 @@ declare module '@tiptap/core' {
|
|
|
1553
1554
|
|
|
1554
1555
|
declare module '@tiptap/core' {
|
|
1555
1556
|
interface Commands<ReturnType> {
|
|
1556
|
-
|
|
1557
|
-
|
|
1557
|
+
painter: {
|
|
1558
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1558
1559
|
};
|
|
1559
1560
|
}
|
|
1560
1561
|
}
|
|
@@ -1576,30 +1577,8 @@ declare module '@tiptap/core' {
|
|
|
1576
1577
|
|
|
1577
1578
|
declare module '@tiptap/core' {
|
|
1578
1579
|
interface Commands<ReturnType> {
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
unsetTableCellBackground: () => ReturnType;
|
|
1582
|
-
};
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
declare module '@tiptap/core' {
|
|
1588
|
-
interface Commands<ReturnType> {
|
|
1589
|
-
emoji: {
|
|
1590
|
-
setEmoji: (emoji: {
|
|
1591
|
-
name: string;
|
|
1592
|
-
emoji: string;
|
|
1593
|
-
}) => ReturnType;
|
|
1594
|
-
};
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
declare module '@tiptap/core' {
|
|
1600
|
-
interface Commands<ReturnType> {
|
|
1601
|
-
exportWord: {
|
|
1602
|
-
exportToWord: () => ReturnType;
|
|
1580
|
+
excalidraw: {
|
|
1581
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1603
1582
|
};
|
|
1604
1583
|
}
|
|
1605
1584
|
}
|
|
@@ -1607,8 +1586,8 @@ declare module '@tiptap/core' {
|
|
|
1607
1586
|
|
|
1608
1587
|
declare module '@tiptap/core' {
|
|
1609
1588
|
interface Commands<ReturnType> {
|
|
1610
|
-
|
|
1611
|
-
|
|
1589
|
+
katex: {
|
|
1590
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1612
1591
|
};
|
|
1613
1592
|
}
|
|
1614
1593
|
}
|
|
@@ -1616,8 +1595,11 @@ declare module '@tiptap/core' {
|
|
|
1616
1595
|
|
|
1617
1596
|
declare module '@tiptap/core' {
|
|
1618
1597
|
interface Commands<ReturnType> {
|
|
1619
|
-
|
|
1620
|
-
|
|
1598
|
+
emoji: {
|
|
1599
|
+
setEmoji: (emoji: {
|
|
1600
|
+
name: string;
|
|
1601
|
+
emoji: string;
|
|
1602
|
+
}) => ReturnType;
|
|
1621
1603
|
};
|
|
1622
1604
|
}
|
|
1623
1605
|
}
|
|
@@ -1632,6 +1614,7 @@ declare module '@tiptap/core' {
|
|
|
1632
1614
|
replaceAll: () => ReturnType;
|
|
1633
1615
|
goToPrevSearchResult: () => void;
|
|
1634
1616
|
goToNextSearchResult: () => void;
|
|
1617
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1635
1618
|
};
|
|
1636
1619
|
}
|
|
1637
1620
|
}
|
|
@@ -1639,9 +1622,23 @@ declare module '@tiptap/core' {
|
|
|
1639
1622
|
|
|
1640
1623
|
declare module '@tiptap/core' {
|
|
1641
1624
|
interface Commands<ReturnType> {
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1625
|
+
exportWord: {
|
|
1626
|
+
exportToWord: () => ReturnType;
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
declare module '@tiptap/core' {
|
|
1633
|
+
interface Commands<ReturnType> {
|
|
1634
|
+
iframe: {
|
|
1635
|
+
/**
|
|
1636
|
+
* Add an iframe
|
|
1637
|
+
*/
|
|
1638
|
+
setIframe: (options: {
|
|
1639
|
+
src: string;
|
|
1640
|
+
service: string;
|
|
1641
|
+
}) => ReturnType;
|
|
1645
1642
|
};
|
|
1646
1643
|
}
|
|
1647
1644
|
}
|
|
@@ -1667,6 +1664,25 @@ declare module '@tiptap/core' {
|
|
|
1667
1664
|
}
|
|
1668
1665
|
|
|
1669
1666
|
|
|
1667
|
+
declare module '@tiptap/core' {
|
|
1668
|
+
interface Commands<ReturnType> {
|
|
1669
|
+
attachment: {
|
|
1670
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1671
|
+
};
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
declare module '@tiptap/core' {
|
|
1677
|
+
interface Commands<ReturnType> {
|
|
1678
|
+
tableOfContents: {
|
|
1679
|
+
setTableOfContents: () => ReturnType;
|
|
1680
|
+
removeTableOfContents: () => ReturnType;
|
|
1681
|
+
};
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
|
|
1670
1686
|
declare namespace DropdownMenuShortcut {
|
|
1671
1687
|
var displayName: string;
|
|
1672
1688
|
}
|