reactjs-tiptap-editor 0.0.44 → 0.0.45
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 +103 -63
- package/lib/index.d.ts +103 -63
- package/lib/{locales-OugoBR7C.js → locales-BWnJn4at.js} +15 -11
- package/lib/{locales-DW0kNOk_.cjs → locales-QV4-bvb6.cjs} +1 -1
- package/lib/reactjs-tiptap-editor.cjs +1 -1
- package/lib/reactjs-tiptap-editor.js +38 -37
- package/lib/{tiptap-BvQjPLjY.cjs → tiptap-C6GJy6Jo.cjs} +1 -1
- package/lib/{tiptap-Br7U4oWD.js → tiptap-DR0UF0u4.js} +1 -1
- package/lib/{utils-T9ISD9dj.js → utils-BGidOjdA.js} +2003 -1586
- package/lib/utils-CI1TaU6F.cjs +135 -0
- package/lib/{vendor-B2T_cfgG.cjs → vendor-BHlXBvPI.cjs} +13 -13
- package/lib/{vendor-C6gAEa0t.js → vendor-BU8RNhp0.js} +1342 -1336
- package/package.json +1 -1
- package/lib/utils-DsfrMoWH.cjs +0 -135
package/lib/index.d.cts
CHANGED
|
@@ -218,6 +218,13 @@ declare interface BubbleMenuProps {
|
|
|
218
218
|
*/
|
|
219
219
|
hidden?: boolean;
|
|
220
220
|
};
|
|
221
|
+
imageGifConfig?: {
|
|
222
|
+
/**
|
|
223
|
+
* @description Image menu hidden
|
|
224
|
+
* @default false
|
|
225
|
+
*/
|
|
226
|
+
hidden?: boolean;
|
|
227
|
+
};
|
|
221
228
|
videoConfig?: {
|
|
222
229
|
/**
|
|
223
230
|
* @description Video menu hidden
|
|
@@ -516,6 +523,7 @@ export declare const en: {
|
|
|
516
523
|
'editor.attachment.tooltip': string;
|
|
517
524
|
'editor.attachment.uploading': string;
|
|
518
525
|
'editor.attachment.please_upload': string;
|
|
526
|
+
'editor.imageGif.tooltip': string;
|
|
519
527
|
};
|
|
520
528
|
|
|
521
529
|
export declare const Excalidraw: Node_2<any, any>;
|
|
@@ -607,6 +615,15 @@ declare interface IKatexOptions {
|
|
|
607
615
|
declare const Image_2: Node_2<ImageOptions, any>;
|
|
608
616
|
export { Image_2 as Image }
|
|
609
617
|
|
|
618
|
+
export declare const ImageGif: Node_2<ImageGifOptions, any>;
|
|
619
|
+
|
|
620
|
+
declare interface ImageGifOptions extends ImageOptions {
|
|
621
|
+
/**
|
|
622
|
+
* The key for the gif https://giphy.com/
|
|
623
|
+
*/
|
|
624
|
+
GIPHY_API_KEY: string;
|
|
625
|
+
}
|
|
626
|
+
|
|
610
627
|
export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
|
|
611
628
|
|
|
612
629
|
export declare interface ImageUploadOptions {
|
|
@@ -870,6 +887,7 @@ export declare const pt_BR: {
|
|
|
870
887
|
'editor.attachment.tooltip': string;
|
|
871
888
|
'editor.attachment.uploading': string;
|
|
872
889
|
'editor.attachment.please_upload': string;
|
|
890
|
+
'editor.imageGif.tooltip': string;
|
|
873
891
|
};
|
|
874
892
|
|
|
875
893
|
declare interface Result {
|
|
@@ -1208,6 +1226,7 @@ export declare const vi: {
|
|
|
1208
1226
|
'editor.attachment.tooltip': string;
|
|
1209
1227
|
'editor.attachment.uploading': string;
|
|
1210
1228
|
'editor.attachment.please_upload': string;
|
|
1229
|
+
'editor.imageGif.tooltip': string;
|
|
1211
1230
|
};
|
|
1212
1231
|
|
|
1213
1232
|
export declare const Video: Node_2<VideoOptions, any>;
|
|
@@ -1404,6 +1423,7 @@ export declare const zh_CN: {
|
|
|
1404
1423
|
'editor.attachment.tooltip': string;
|
|
1405
1424
|
'editor.attachment.uploading': string;
|
|
1406
1425
|
'editor.attachment.please_upload': string;
|
|
1426
|
+
'editor.imageGif.tooltip': string;
|
|
1407
1427
|
};
|
|
1408
1428
|
|
|
1409
1429
|
export { }
|
|
@@ -1443,6 +1463,16 @@ declare module '@tiptap/core' {
|
|
|
1443
1463
|
}
|
|
1444
1464
|
|
|
1445
1465
|
|
|
1466
|
+
declare module '@tiptap/core' {
|
|
1467
|
+
interface Commands<ReturnType> {
|
|
1468
|
+
lineHeight: {
|
|
1469
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1470
|
+
unsetLineHeight: () => ReturnType;
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
|
|
1446
1476
|
declare module '@tiptap/core' {
|
|
1447
1477
|
interface Commands<ReturnType> {
|
|
1448
1478
|
indent: {
|
|
@@ -1461,13 +1491,19 @@ declare module '@tiptap/core' {
|
|
|
1461
1491
|
|
|
1462
1492
|
declare module '@tiptap/core' {
|
|
1463
1493
|
interface Commands<ReturnType> {
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1494
|
+
imageResize: {
|
|
1495
|
+
/**
|
|
1496
|
+
* Add an image
|
|
1497
|
+
*/
|
|
1498
|
+
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1499
|
+
/**
|
|
1500
|
+
* Update an image
|
|
1501
|
+
*/
|
|
1502
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1503
|
+
/**
|
|
1504
|
+
* Set image alignment
|
|
1505
|
+
*/
|
|
1506
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1471
1507
|
};
|
|
1472
1508
|
}
|
|
1473
1509
|
}
|
|
@@ -1475,14 +1511,9 @@ declare module '@tiptap/core' {
|
|
|
1475
1511
|
|
|
1476
1512
|
declare module '@tiptap/core' {
|
|
1477
1513
|
interface Commands<ReturnType> {
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
*/
|
|
1482
|
-
setIframe: (options: {
|
|
1483
|
-
src: string;
|
|
1484
|
-
service: string;
|
|
1485
|
-
}) => ReturnType;
|
|
1514
|
+
tableCellBackground: {
|
|
1515
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1516
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1486
1517
|
};
|
|
1487
1518
|
}
|
|
1488
1519
|
}
|
|
@@ -1490,11 +1521,8 @@ declare module '@tiptap/core' {
|
|
|
1490
1521
|
|
|
1491
1522
|
declare module '@tiptap/core' {
|
|
1492
1523
|
interface Commands<ReturnType> {
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
name: string;
|
|
1496
|
-
emoji: string;
|
|
1497
|
-
}) => ReturnType;
|
|
1524
|
+
imageUpload: {
|
|
1525
|
+
setImageUpload: () => ReturnType;
|
|
1498
1526
|
};
|
|
1499
1527
|
}
|
|
1500
1528
|
}
|
|
@@ -1502,9 +1530,8 @@ declare module '@tiptap/core' {
|
|
|
1502
1530
|
|
|
1503
1531
|
declare module '@tiptap/core' {
|
|
1504
1532
|
interface Commands<ReturnType> {
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
unsetLineHeight: () => ReturnType;
|
|
1533
|
+
videoUpload: {
|
|
1534
|
+
setVideoUpload: () => ReturnType;
|
|
1508
1535
|
};
|
|
1509
1536
|
}
|
|
1510
1537
|
}
|
|
@@ -1512,13 +1539,8 @@ declare module '@tiptap/core' {
|
|
|
1512
1539
|
|
|
1513
1540
|
declare module '@tiptap/core' {
|
|
1514
1541
|
interface Commands<ReturnType> {
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1518
|
-
replace: () => ReturnType;
|
|
1519
|
-
replaceAll: () => ReturnType;
|
|
1520
|
-
goToPrevSearchResult: () => void;
|
|
1521
|
-
goToNextSearchResult: () => void;
|
|
1542
|
+
painter: {
|
|
1543
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1522
1544
|
};
|
|
1523
1545
|
}
|
|
1524
1546
|
}
|
|
@@ -1526,8 +1548,13 @@ declare module '@tiptap/core' {
|
|
|
1526
1548
|
|
|
1527
1549
|
declare module '@tiptap/core' {
|
|
1528
1550
|
interface Commands<ReturnType> {
|
|
1529
|
-
|
|
1530
|
-
|
|
1551
|
+
columns: {
|
|
1552
|
+
insertColumns: (attrs?: {
|
|
1553
|
+
cols: number;
|
|
1554
|
+
}) => ReturnType;
|
|
1555
|
+
addColBefore: () => ReturnType;
|
|
1556
|
+
addColAfter: () => ReturnType;
|
|
1557
|
+
deleteCol: () => ReturnType;
|
|
1531
1558
|
};
|
|
1532
1559
|
}
|
|
1533
1560
|
}
|
|
@@ -1535,8 +1562,14 @@ declare module '@tiptap/core' {
|
|
|
1535
1562
|
|
|
1536
1563
|
declare module '@tiptap/core' {
|
|
1537
1564
|
interface Commands<ReturnType> {
|
|
1538
|
-
|
|
1539
|
-
|
|
1565
|
+
iframe: {
|
|
1566
|
+
/**
|
|
1567
|
+
* Add an iframe
|
|
1568
|
+
*/
|
|
1569
|
+
setIframe: (options: {
|
|
1570
|
+
src: string;
|
|
1571
|
+
service: string;
|
|
1572
|
+
}) => ReturnType;
|
|
1540
1573
|
};
|
|
1541
1574
|
}
|
|
1542
1575
|
}
|
|
@@ -1544,8 +1577,13 @@ declare module '@tiptap/core' {
|
|
|
1544
1577
|
|
|
1545
1578
|
declare module '@tiptap/core' {
|
|
1546
1579
|
interface Commands<ReturnType> {
|
|
1547
|
-
|
|
1548
|
-
|
|
1580
|
+
search: {
|
|
1581
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1582
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1583
|
+
replace: () => ReturnType;
|
|
1584
|
+
replaceAll: () => ReturnType;
|
|
1585
|
+
goToPrevSearchResult: () => void;
|
|
1586
|
+
goToNextSearchResult: () => void;
|
|
1549
1587
|
};
|
|
1550
1588
|
}
|
|
1551
1589
|
}
|
|
@@ -1553,9 +1591,11 @@ declare module '@tiptap/core' {
|
|
|
1553
1591
|
|
|
1554
1592
|
declare module '@tiptap/core' {
|
|
1555
1593
|
interface Commands<ReturnType> {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1594
|
+
emoji: {
|
|
1595
|
+
setEmoji: (emoji: {
|
|
1596
|
+
name: string;
|
|
1597
|
+
emoji: string;
|
|
1598
|
+
}) => ReturnType;
|
|
1559
1599
|
};
|
|
1560
1600
|
}
|
|
1561
1601
|
}
|
|
@@ -1563,19 +1603,8 @@ declare module '@tiptap/core' {
|
|
|
1563
1603
|
|
|
1564
1604
|
declare module '@tiptap/core' {
|
|
1565
1605
|
interface Commands<ReturnType> {
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
* Add an image
|
|
1569
|
-
*/
|
|
1570
|
-
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1571
|
-
/**
|
|
1572
|
-
* Update an image
|
|
1573
|
-
*/
|
|
1574
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1575
|
-
/**
|
|
1576
|
-
* Set image alignment
|
|
1577
|
-
*/
|
|
1578
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1606
|
+
katex: {
|
|
1607
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1579
1608
|
};
|
|
1580
1609
|
}
|
|
1581
1610
|
}
|
|
@@ -1583,8 +1612,8 @@ declare module '@tiptap/core' {
|
|
|
1583
1612
|
|
|
1584
1613
|
declare module '@tiptap/core' {
|
|
1585
1614
|
interface Commands<ReturnType> {
|
|
1586
|
-
|
|
1587
|
-
|
|
1615
|
+
exportWord: {
|
|
1616
|
+
exportToWord: () => ReturnType;
|
|
1588
1617
|
};
|
|
1589
1618
|
}
|
|
1590
1619
|
}
|
|
@@ -1592,8 +1621,8 @@ declare module '@tiptap/core' {
|
|
|
1592
1621
|
|
|
1593
1622
|
declare module '@tiptap/core' {
|
|
1594
1623
|
interface Commands<ReturnType> {
|
|
1595
|
-
|
|
1596
|
-
|
|
1624
|
+
excalidraw: {
|
|
1625
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1597
1626
|
};
|
|
1598
1627
|
}
|
|
1599
1628
|
}
|
|
@@ -1601,9 +1630,8 @@ declare module '@tiptap/core' {
|
|
|
1601
1630
|
|
|
1602
1631
|
declare module '@tiptap/core' {
|
|
1603
1632
|
interface Commands<ReturnType> {
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
removeTableOfContents: () => ReturnType;
|
|
1633
|
+
attachment: {
|
|
1634
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1607
1635
|
};
|
|
1608
1636
|
}
|
|
1609
1637
|
}
|
|
@@ -1611,8 +1639,9 @@ declare module '@tiptap/core' {
|
|
|
1611
1639
|
|
|
1612
1640
|
declare module '@tiptap/core' {
|
|
1613
1641
|
interface Commands<ReturnType> {
|
|
1614
|
-
|
|
1615
|
-
|
|
1642
|
+
tableOfContents: {
|
|
1643
|
+
setTableOfContents: () => ReturnType;
|
|
1644
|
+
removeTableOfContents: () => ReturnType;
|
|
1616
1645
|
};
|
|
1617
1646
|
}
|
|
1618
1647
|
}
|
|
@@ -1620,8 +1649,19 @@ declare module '@tiptap/core' {
|
|
|
1620
1649
|
|
|
1621
1650
|
declare module '@tiptap/core' {
|
|
1622
1651
|
interface Commands<ReturnType> {
|
|
1623
|
-
|
|
1624
|
-
|
|
1652
|
+
imageResize: {
|
|
1653
|
+
/**
|
|
1654
|
+
* Add an image gif
|
|
1655
|
+
*/
|
|
1656
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1657
|
+
/**
|
|
1658
|
+
* Update an image gif
|
|
1659
|
+
*/
|
|
1660
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1661
|
+
/**
|
|
1662
|
+
* Set image alignment
|
|
1663
|
+
*/
|
|
1664
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1625
1665
|
};
|
|
1626
1666
|
}
|
|
1627
1667
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -218,6 +218,13 @@ declare interface BubbleMenuProps {
|
|
|
218
218
|
*/
|
|
219
219
|
hidden?: boolean;
|
|
220
220
|
};
|
|
221
|
+
imageGifConfig?: {
|
|
222
|
+
/**
|
|
223
|
+
* @description Image menu hidden
|
|
224
|
+
* @default false
|
|
225
|
+
*/
|
|
226
|
+
hidden?: boolean;
|
|
227
|
+
};
|
|
221
228
|
videoConfig?: {
|
|
222
229
|
/**
|
|
223
230
|
* @description Video menu hidden
|
|
@@ -516,6 +523,7 @@ export declare const en: {
|
|
|
516
523
|
'editor.attachment.tooltip': string;
|
|
517
524
|
'editor.attachment.uploading': string;
|
|
518
525
|
'editor.attachment.please_upload': string;
|
|
526
|
+
'editor.imageGif.tooltip': string;
|
|
519
527
|
};
|
|
520
528
|
|
|
521
529
|
export declare const Excalidraw: Node_2<any, any>;
|
|
@@ -607,6 +615,15 @@ declare interface IKatexOptions {
|
|
|
607
615
|
declare const Image_2: Node_2<ImageOptions, any>;
|
|
608
616
|
export { Image_2 as Image }
|
|
609
617
|
|
|
618
|
+
export declare const ImageGif: Node_2<ImageGifOptions, any>;
|
|
619
|
+
|
|
620
|
+
declare interface ImageGifOptions extends ImageOptions {
|
|
621
|
+
/**
|
|
622
|
+
* The key for the gif https://giphy.com/
|
|
623
|
+
*/
|
|
624
|
+
GIPHY_API_KEY: string;
|
|
625
|
+
}
|
|
626
|
+
|
|
610
627
|
export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
|
|
611
628
|
|
|
612
629
|
export declare interface ImageUploadOptions {
|
|
@@ -870,6 +887,7 @@ export declare const pt_BR: {
|
|
|
870
887
|
'editor.attachment.tooltip': string;
|
|
871
888
|
'editor.attachment.uploading': string;
|
|
872
889
|
'editor.attachment.please_upload': string;
|
|
890
|
+
'editor.imageGif.tooltip': string;
|
|
873
891
|
};
|
|
874
892
|
|
|
875
893
|
declare interface Result {
|
|
@@ -1208,6 +1226,7 @@ export declare const vi: {
|
|
|
1208
1226
|
'editor.attachment.tooltip': string;
|
|
1209
1227
|
'editor.attachment.uploading': string;
|
|
1210
1228
|
'editor.attachment.please_upload': string;
|
|
1229
|
+
'editor.imageGif.tooltip': string;
|
|
1211
1230
|
};
|
|
1212
1231
|
|
|
1213
1232
|
export declare const Video: Node_2<VideoOptions, any>;
|
|
@@ -1404,6 +1423,7 @@ export declare const zh_CN: {
|
|
|
1404
1423
|
'editor.attachment.tooltip': string;
|
|
1405
1424
|
'editor.attachment.uploading': string;
|
|
1406
1425
|
'editor.attachment.please_upload': string;
|
|
1426
|
+
'editor.imageGif.tooltip': string;
|
|
1407
1427
|
};
|
|
1408
1428
|
|
|
1409
1429
|
export { }
|
|
@@ -1443,6 +1463,16 @@ declare module '@tiptap/core' {
|
|
|
1443
1463
|
}
|
|
1444
1464
|
|
|
1445
1465
|
|
|
1466
|
+
declare module '@tiptap/core' {
|
|
1467
|
+
interface Commands<ReturnType> {
|
|
1468
|
+
lineHeight: {
|
|
1469
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1470
|
+
unsetLineHeight: () => ReturnType;
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
|
|
1446
1476
|
declare module '@tiptap/core' {
|
|
1447
1477
|
interface Commands<ReturnType> {
|
|
1448
1478
|
indent: {
|
|
@@ -1461,13 +1491,19 @@ declare module '@tiptap/core' {
|
|
|
1461
1491
|
|
|
1462
1492
|
declare module '@tiptap/core' {
|
|
1463
1493
|
interface Commands<ReturnType> {
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1494
|
+
imageResize: {
|
|
1495
|
+
/**
|
|
1496
|
+
* Add an image
|
|
1497
|
+
*/
|
|
1498
|
+
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1499
|
+
/**
|
|
1500
|
+
* Update an image
|
|
1501
|
+
*/
|
|
1502
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1503
|
+
/**
|
|
1504
|
+
* Set image alignment
|
|
1505
|
+
*/
|
|
1506
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1471
1507
|
};
|
|
1472
1508
|
}
|
|
1473
1509
|
}
|
|
@@ -1475,14 +1511,9 @@ declare module '@tiptap/core' {
|
|
|
1475
1511
|
|
|
1476
1512
|
declare module '@tiptap/core' {
|
|
1477
1513
|
interface Commands<ReturnType> {
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
*/
|
|
1482
|
-
setIframe: (options: {
|
|
1483
|
-
src: string;
|
|
1484
|
-
service: string;
|
|
1485
|
-
}) => ReturnType;
|
|
1514
|
+
tableCellBackground: {
|
|
1515
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1516
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1486
1517
|
};
|
|
1487
1518
|
}
|
|
1488
1519
|
}
|
|
@@ -1490,11 +1521,8 @@ declare module '@tiptap/core' {
|
|
|
1490
1521
|
|
|
1491
1522
|
declare module '@tiptap/core' {
|
|
1492
1523
|
interface Commands<ReturnType> {
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
name: string;
|
|
1496
|
-
emoji: string;
|
|
1497
|
-
}) => ReturnType;
|
|
1524
|
+
imageUpload: {
|
|
1525
|
+
setImageUpload: () => ReturnType;
|
|
1498
1526
|
};
|
|
1499
1527
|
}
|
|
1500
1528
|
}
|
|
@@ -1502,9 +1530,8 @@ declare module '@tiptap/core' {
|
|
|
1502
1530
|
|
|
1503
1531
|
declare module '@tiptap/core' {
|
|
1504
1532
|
interface Commands<ReturnType> {
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
unsetLineHeight: () => ReturnType;
|
|
1533
|
+
videoUpload: {
|
|
1534
|
+
setVideoUpload: () => ReturnType;
|
|
1508
1535
|
};
|
|
1509
1536
|
}
|
|
1510
1537
|
}
|
|
@@ -1512,13 +1539,8 @@ declare module '@tiptap/core' {
|
|
|
1512
1539
|
|
|
1513
1540
|
declare module '@tiptap/core' {
|
|
1514
1541
|
interface Commands<ReturnType> {
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1518
|
-
replace: () => ReturnType;
|
|
1519
|
-
replaceAll: () => ReturnType;
|
|
1520
|
-
goToPrevSearchResult: () => void;
|
|
1521
|
-
goToNextSearchResult: () => void;
|
|
1542
|
+
painter: {
|
|
1543
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1522
1544
|
};
|
|
1523
1545
|
}
|
|
1524
1546
|
}
|
|
@@ -1526,8 +1548,13 @@ declare module '@tiptap/core' {
|
|
|
1526
1548
|
|
|
1527
1549
|
declare module '@tiptap/core' {
|
|
1528
1550
|
interface Commands<ReturnType> {
|
|
1529
|
-
|
|
1530
|
-
|
|
1551
|
+
columns: {
|
|
1552
|
+
insertColumns: (attrs?: {
|
|
1553
|
+
cols: number;
|
|
1554
|
+
}) => ReturnType;
|
|
1555
|
+
addColBefore: () => ReturnType;
|
|
1556
|
+
addColAfter: () => ReturnType;
|
|
1557
|
+
deleteCol: () => ReturnType;
|
|
1531
1558
|
};
|
|
1532
1559
|
}
|
|
1533
1560
|
}
|
|
@@ -1535,8 +1562,14 @@ declare module '@tiptap/core' {
|
|
|
1535
1562
|
|
|
1536
1563
|
declare module '@tiptap/core' {
|
|
1537
1564
|
interface Commands<ReturnType> {
|
|
1538
|
-
|
|
1539
|
-
|
|
1565
|
+
iframe: {
|
|
1566
|
+
/**
|
|
1567
|
+
* Add an iframe
|
|
1568
|
+
*/
|
|
1569
|
+
setIframe: (options: {
|
|
1570
|
+
src: string;
|
|
1571
|
+
service: string;
|
|
1572
|
+
}) => ReturnType;
|
|
1540
1573
|
};
|
|
1541
1574
|
}
|
|
1542
1575
|
}
|
|
@@ -1544,8 +1577,13 @@ declare module '@tiptap/core' {
|
|
|
1544
1577
|
|
|
1545
1578
|
declare module '@tiptap/core' {
|
|
1546
1579
|
interface Commands<ReturnType> {
|
|
1547
|
-
|
|
1548
|
-
|
|
1580
|
+
search: {
|
|
1581
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1582
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1583
|
+
replace: () => ReturnType;
|
|
1584
|
+
replaceAll: () => ReturnType;
|
|
1585
|
+
goToPrevSearchResult: () => void;
|
|
1586
|
+
goToNextSearchResult: () => void;
|
|
1549
1587
|
};
|
|
1550
1588
|
}
|
|
1551
1589
|
}
|
|
@@ -1553,9 +1591,11 @@ declare module '@tiptap/core' {
|
|
|
1553
1591
|
|
|
1554
1592
|
declare module '@tiptap/core' {
|
|
1555
1593
|
interface Commands<ReturnType> {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1594
|
+
emoji: {
|
|
1595
|
+
setEmoji: (emoji: {
|
|
1596
|
+
name: string;
|
|
1597
|
+
emoji: string;
|
|
1598
|
+
}) => ReturnType;
|
|
1559
1599
|
};
|
|
1560
1600
|
}
|
|
1561
1601
|
}
|
|
@@ -1563,19 +1603,8 @@ declare module '@tiptap/core' {
|
|
|
1563
1603
|
|
|
1564
1604
|
declare module '@tiptap/core' {
|
|
1565
1605
|
interface Commands<ReturnType> {
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
* Add an image
|
|
1569
|
-
*/
|
|
1570
|
-
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1571
|
-
/**
|
|
1572
|
-
* Update an image
|
|
1573
|
-
*/
|
|
1574
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1575
|
-
/**
|
|
1576
|
-
* Set image alignment
|
|
1577
|
-
*/
|
|
1578
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1606
|
+
katex: {
|
|
1607
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1579
1608
|
};
|
|
1580
1609
|
}
|
|
1581
1610
|
}
|
|
@@ -1583,8 +1612,8 @@ declare module '@tiptap/core' {
|
|
|
1583
1612
|
|
|
1584
1613
|
declare module '@tiptap/core' {
|
|
1585
1614
|
interface Commands<ReturnType> {
|
|
1586
|
-
|
|
1587
|
-
|
|
1615
|
+
exportWord: {
|
|
1616
|
+
exportToWord: () => ReturnType;
|
|
1588
1617
|
};
|
|
1589
1618
|
}
|
|
1590
1619
|
}
|
|
@@ -1592,8 +1621,8 @@ declare module '@tiptap/core' {
|
|
|
1592
1621
|
|
|
1593
1622
|
declare module '@tiptap/core' {
|
|
1594
1623
|
interface Commands<ReturnType> {
|
|
1595
|
-
|
|
1596
|
-
|
|
1624
|
+
excalidraw: {
|
|
1625
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1597
1626
|
};
|
|
1598
1627
|
}
|
|
1599
1628
|
}
|
|
@@ -1601,9 +1630,8 @@ declare module '@tiptap/core' {
|
|
|
1601
1630
|
|
|
1602
1631
|
declare module '@tiptap/core' {
|
|
1603
1632
|
interface Commands<ReturnType> {
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
removeTableOfContents: () => ReturnType;
|
|
1633
|
+
attachment: {
|
|
1634
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1607
1635
|
};
|
|
1608
1636
|
}
|
|
1609
1637
|
}
|
|
@@ -1611,8 +1639,9 @@ declare module '@tiptap/core' {
|
|
|
1611
1639
|
|
|
1612
1640
|
declare module '@tiptap/core' {
|
|
1613
1641
|
interface Commands<ReturnType> {
|
|
1614
|
-
|
|
1615
|
-
|
|
1642
|
+
tableOfContents: {
|
|
1643
|
+
setTableOfContents: () => ReturnType;
|
|
1644
|
+
removeTableOfContents: () => ReturnType;
|
|
1616
1645
|
};
|
|
1617
1646
|
}
|
|
1618
1647
|
}
|
|
@@ -1620,8 +1649,19 @@ declare module '@tiptap/core' {
|
|
|
1620
1649
|
|
|
1621
1650
|
declare module '@tiptap/core' {
|
|
1622
1651
|
interface Commands<ReturnType> {
|
|
1623
|
-
|
|
1624
|
-
|
|
1652
|
+
imageResize: {
|
|
1653
|
+
/**
|
|
1654
|
+
* Add an image gif
|
|
1655
|
+
*/
|
|
1656
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1657
|
+
/**
|
|
1658
|
+
* Update an image gif
|
|
1659
|
+
*/
|
|
1660
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1661
|
+
/**
|
|
1662
|
+
* Set image alignment
|
|
1663
|
+
*/
|
|
1664
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1625
1665
|
};
|
|
1626
1666
|
}
|
|
1627
1667
|
}
|