reactjs-tiptap-editor 0.0.50 → 0.0.51
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 +85 -56
- package/lib/index.d.ts +85 -56
- package/lib/{locales-eSiq0uo6.js → locales-CV1FzvUW.js} +10 -5
- package/lib/locales-CuAW1LOw.cjs +1 -0
- package/lib/reactjs-tiptap-editor.cjs +1 -1
- package/lib/reactjs-tiptap-editor.js +31 -30
- package/lib/style.css +1 -1
- package/lib/{tiptap-ocrlqn2l.js → tiptap-BjeL17_y.js} +2 -1
- package/lib/{tiptap-D3x-5t_9.cjs → tiptap-C4ncZOhh.cjs} +8 -8
- package/lib/{utils-Cp07Qhbo.js → utils-CtONRhPR.js} +2833 -2236
- package/lib/utils-F9_asFLh.cjs +151 -0
- package/lib/{vendor-DqXtrdHd.js → vendor-CXgFM3bq.js} +2412 -2389
- package/lib/{vendor-BO9DCkYQ.cjs → vendor-LpRkiQE5.cjs} +14 -13
- package/package.json +3 -1
- package/lib/locales-CsDmzRu8.cjs +0 -1
- package/lib/utils-BY9Ldex5.cjs +0 -149
package/lib/index.d.cts
CHANGED
|
@@ -253,6 +253,13 @@ declare interface BubbleMenuProps {
|
|
|
253
253
|
*/
|
|
254
254
|
hidden?: boolean;
|
|
255
255
|
};
|
|
256
|
+
mermaidConfig?: {
|
|
257
|
+
/**
|
|
258
|
+
* @description mermaid menu hidden
|
|
259
|
+
* @default false
|
|
260
|
+
*/
|
|
261
|
+
hidden?: boolean;
|
|
262
|
+
};
|
|
256
263
|
render?: (props: BubbleMenuRenderProps, dom: React.ReactNode) => React.ReactNode;
|
|
257
264
|
}
|
|
258
265
|
|
|
@@ -528,6 +535,7 @@ export declare const en: {
|
|
|
528
535
|
'editor.attachment.please_upload': string;
|
|
529
536
|
'editor.imageGif.tooltip': string;
|
|
530
537
|
'editor.replace.caseSensitive': string;
|
|
538
|
+
'editor.mermaid.tooltip': string;
|
|
531
539
|
};
|
|
532
540
|
|
|
533
541
|
export declare const Excalidraw: Node_2<any, any>;
|
|
@@ -699,6 +707,13 @@ export declare const locale: Locale;
|
|
|
699
707
|
|
|
700
708
|
export declare const Mention: Node_2<MentionOptions<any, MentionNodeAttrs>, any>;
|
|
701
709
|
|
|
710
|
+
export declare const Mermaid: Node_2<MermaidOptions, any>;
|
|
711
|
+
|
|
712
|
+
declare interface MermaidOptions extends GeneralOptions<MermaidOptions> {
|
|
713
|
+
/** Function for uploading files */
|
|
714
|
+
upload?: (file: File) => Promise<string>;
|
|
715
|
+
}
|
|
716
|
+
|
|
702
717
|
declare type MessageKeysType = keyof typeof en;
|
|
703
718
|
|
|
704
719
|
export declare const MoreMark: Extension<MoreMarkOptions, any>;
|
|
@@ -896,6 +911,7 @@ export declare const pt_BR: {
|
|
|
896
911
|
'editor.attachment.please_upload': string;
|
|
897
912
|
'editor.imageGif.tooltip': string;
|
|
898
913
|
'editor.replace.caseSensitive': string;
|
|
914
|
+
'editor.mermaid.tooltip': string;
|
|
899
915
|
};
|
|
900
916
|
|
|
901
917
|
declare interface Result {
|
|
@@ -1159,6 +1175,7 @@ export declare const vi: {
|
|
|
1159
1175
|
'editor.image.dialog.tab.url': string;
|
|
1160
1176
|
'editor.image.dialog.tab.upload': string;
|
|
1161
1177
|
'editor.image.dialog.tab.uploadCrop': string;
|
|
1178
|
+
'editor.image.dialog.uploading': string;
|
|
1162
1179
|
'editor.image.dialog.form.link': string;
|
|
1163
1180
|
'editor.image.dialog.placeholder': string;
|
|
1164
1181
|
'editor.image.dialog.form.alt': string;
|
|
@@ -1238,6 +1255,7 @@ export declare const vi: {
|
|
|
1238
1255
|
'editor.attachment.please_upload': string;
|
|
1239
1256
|
'editor.imageGif.tooltip': string;
|
|
1240
1257
|
'editor.replace.caseSensitive': string;
|
|
1258
|
+
'editor.mermaid.tooltip': string;
|
|
1241
1259
|
};
|
|
1242
1260
|
|
|
1243
1261
|
export declare const Video: Node_2<VideoOptions, any>;
|
|
@@ -1439,6 +1457,7 @@ export declare const zh_CN: {
|
|
|
1439
1457
|
'editor.attachment.please_upload': string;
|
|
1440
1458
|
'editor.imageGif.tooltip': string;
|
|
1441
1459
|
'editor.replace.caseSensitive': string;
|
|
1460
|
+
'editor.mermaid.tooltip': string;
|
|
1442
1461
|
};
|
|
1443
1462
|
|
|
1444
1463
|
export { }
|
|
@@ -1478,6 +1497,16 @@ declare module '@tiptap/core' {
|
|
|
1478
1497
|
}
|
|
1479
1498
|
|
|
1480
1499
|
|
|
1500
|
+
declare module '@tiptap/core' {
|
|
1501
|
+
interface Commands<ReturnType> {
|
|
1502
|
+
lineHeight: {
|
|
1503
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1504
|
+
unsetLineHeight: () => ReturnType;
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
|
|
1481
1510
|
declare module '@tiptap/core' {
|
|
1482
1511
|
interface Commands<ReturnType> {
|
|
1483
1512
|
indent: {
|
|
@@ -1494,16 +1523,6 @@ declare module '@tiptap/core' {
|
|
|
1494
1523
|
}
|
|
1495
1524
|
|
|
1496
1525
|
|
|
1497
|
-
declare module '@tiptap/core' {
|
|
1498
|
-
interface Commands<ReturnType> {
|
|
1499
|
-
lineHeight: {
|
|
1500
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1501
|
-
unsetLineHeight: () => ReturnType;
|
|
1502
|
-
};
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
1526
|
declare module '@tiptap/core' {
|
|
1508
1527
|
interface Commands<ReturnType> {
|
|
1509
1528
|
imageResize: {
|
|
@@ -1526,8 +1545,8 @@ declare module '@tiptap/core' {
|
|
|
1526
1545
|
|
|
1527
1546
|
declare module '@tiptap/core' {
|
|
1528
1547
|
interface Commands<ReturnType> {
|
|
1529
|
-
|
|
1530
|
-
|
|
1548
|
+
imageUpload: {
|
|
1549
|
+
setImageUpload: () => ReturnType;
|
|
1531
1550
|
};
|
|
1532
1551
|
}
|
|
1533
1552
|
}
|
|
@@ -1535,8 +1554,22 @@ declare module '@tiptap/core' {
|
|
|
1535
1554
|
|
|
1536
1555
|
declare module '@tiptap/core' {
|
|
1537
1556
|
interface Commands<ReturnType> {
|
|
1538
|
-
|
|
1539
|
-
|
|
1557
|
+
columns: {
|
|
1558
|
+
insertColumns: (attrs?: {
|
|
1559
|
+
cols: number;
|
|
1560
|
+
}) => ReturnType;
|
|
1561
|
+
addColBefore: () => ReturnType;
|
|
1562
|
+
addColAfter: () => ReturnType;
|
|
1563
|
+
deleteCol: () => ReturnType;
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
declare module '@tiptap/core' {
|
|
1570
|
+
interface Commands<ReturnType> {
|
|
1571
|
+
painter: {
|
|
1572
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1540
1573
|
};
|
|
1541
1574
|
}
|
|
1542
1575
|
}
|
|
@@ -1557,6 +1590,21 @@ declare module '@tiptap/core' {
|
|
|
1557
1590
|
}
|
|
1558
1591
|
|
|
1559
1592
|
|
|
1593
|
+
declare module '@tiptap/core' {
|
|
1594
|
+
interface Commands<ReturnType> {
|
|
1595
|
+
search: {
|
|
1596
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1597
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1598
|
+
replace: () => ReturnType;
|
|
1599
|
+
replaceAll: () => ReturnType;
|
|
1600
|
+
goToPrevSearchResult: () => void;
|
|
1601
|
+
goToNextSearchResult: () => void;
|
|
1602
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1603
|
+
};
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
|
|
1560
1608
|
declare module '@tiptap/core' {
|
|
1561
1609
|
interface Commands<ReturnType> {
|
|
1562
1610
|
tableCellBackground: {
|
|
@@ -1569,8 +1617,8 @@ declare module '@tiptap/core' {
|
|
|
1569
1617
|
|
|
1570
1618
|
declare module '@tiptap/core' {
|
|
1571
1619
|
interface Commands<ReturnType> {
|
|
1572
|
-
|
|
1573
|
-
|
|
1620
|
+
videoUpload: {
|
|
1621
|
+
setVideoUpload: () => ReturnType;
|
|
1574
1622
|
};
|
|
1575
1623
|
}
|
|
1576
1624
|
}
|
|
@@ -1590,13 +1638,8 @@ declare module '@tiptap/core' {
|
|
|
1590
1638
|
|
|
1591
1639
|
declare module '@tiptap/core' {
|
|
1592
1640
|
interface Commands<ReturnType> {
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
cols: number;
|
|
1596
|
-
}) => ReturnType;
|
|
1597
|
-
addColBefore: () => ReturnType;
|
|
1598
|
-
addColAfter: () => ReturnType;
|
|
1599
|
-
deleteCol: () => ReturnType;
|
|
1641
|
+
katex: {
|
|
1642
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1600
1643
|
};
|
|
1601
1644
|
}
|
|
1602
1645
|
}
|
|
@@ -1604,14 +1647,8 @@ declare module '@tiptap/core' {
|
|
|
1604
1647
|
|
|
1605
1648
|
declare module '@tiptap/core' {
|
|
1606
1649
|
interface Commands<ReturnType> {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1610
|
-
replace: () => ReturnType;
|
|
1611
|
-
replaceAll: () => ReturnType;
|
|
1612
|
-
goToPrevSearchResult: () => void;
|
|
1613
|
-
goToNextSearchResult: () => void;
|
|
1614
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1650
|
+
exportWord: {
|
|
1651
|
+
exportToWord: () => ReturnType;
|
|
1615
1652
|
};
|
|
1616
1653
|
}
|
|
1617
1654
|
}
|
|
@@ -1619,8 +1656,8 @@ declare module '@tiptap/core' {
|
|
|
1619
1656
|
|
|
1620
1657
|
declare module '@tiptap/core' {
|
|
1621
1658
|
interface Commands<ReturnType> {
|
|
1622
|
-
|
|
1623
|
-
|
|
1659
|
+
excalidraw: {
|
|
1660
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1624
1661
|
};
|
|
1625
1662
|
}
|
|
1626
1663
|
}
|
|
@@ -1628,8 +1665,9 @@ declare module '@tiptap/core' {
|
|
|
1628
1665
|
|
|
1629
1666
|
declare module '@tiptap/core' {
|
|
1630
1667
|
interface Commands<ReturnType> {
|
|
1631
|
-
|
|
1632
|
-
|
|
1668
|
+
tableOfContents: {
|
|
1669
|
+
setTableOfContents: () => ReturnType;
|
|
1670
|
+
removeTableOfContents: () => ReturnType;
|
|
1633
1671
|
};
|
|
1634
1672
|
}
|
|
1635
1673
|
}
|
|
@@ -1637,8 +1675,18 @@ declare module '@tiptap/core' {
|
|
|
1637
1675
|
|
|
1638
1676
|
declare module '@tiptap/core' {
|
|
1639
1677
|
interface Commands<ReturnType> {
|
|
1640
|
-
|
|
1641
|
-
|
|
1678
|
+
attachment: {
|
|
1679
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1680
|
+
};
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
declare module '@tiptap/core' {
|
|
1686
|
+
interface Commands<ReturnType> {
|
|
1687
|
+
mermaid: {
|
|
1688
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1689
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1642
1690
|
};
|
|
1643
1691
|
}
|
|
1644
1692
|
}
|
|
@@ -1664,25 +1712,6 @@ declare module '@tiptap/core' {
|
|
|
1664
1712
|
}
|
|
1665
1713
|
|
|
1666
1714
|
|
|
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
|
-
|
|
1686
1715
|
declare namespace DropdownMenuShortcut {
|
|
1687
1716
|
var displayName: string;
|
|
1688
1717
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -253,6 +253,13 @@ declare interface BubbleMenuProps {
|
|
|
253
253
|
*/
|
|
254
254
|
hidden?: boolean;
|
|
255
255
|
};
|
|
256
|
+
mermaidConfig?: {
|
|
257
|
+
/**
|
|
258
|
+
* @description mermaid menu hidden
|
|
259
|
+
* @default false
|
|
260
|
+
*/
|
|
261
|
+
hidden?: boolean;
|
|
262
|
+
};
|
|
256
263
|
render?: (props: BubbleMenuRenderProps, dom: React.ReactNode) => React.ReactNode;
|
|
257
264
|
}
|
|
258
265
|
|
|
@@ -528,6 +535,7 @@ export declare const en: {
|
|
|
528
535
|
'editor.attachment.please_upload': string;
|
|
529
536
|
'editor.imageGif.tooltip': string;
|
|
530
537
|
'editor.replace.caseSensitive': string;
|
|
538
|
+
'editor.mermaid.tooltip': string;
|
|
531
539
|
};
|
|
532
540
|
|
|
533
541
|
export declare const Excalidraw: Node_2<any, any>;
|
|
@@ -699,6 +707,13 @@ export declare const locale: Locale;
|
|
|
699
707
|
|
|
700
708
|
export declare const Mention: Node_2<MentionOptions<any, MentionNodeAttrs>, any>;
|
|
701
709
|
|
|
710
|
+
export declare const Mermaid: Node_2<MermaidOptions, any>;
|
|
711
|
+
|
|
712
|
+
declare interface MermaidOptions extends GeneralOptions<MermaidOptions> {
|
|
713
|
+
/** Function for uploading files */
|
|
714
|
+
upload?: (file: File) => Promise<string>;
|
|
715
|
+
}
|
|
716
|
+
|
|
702
717
|
declare type MessageKeysType = keyof typeof en;
|
|
703
718
|
|
|
704
719
|
export declare const MoreMark: Extension<MoreMarkOptions, any>;
|
|
@@ -896,6 +911,7 @@ export declare const pt_BR: {
|
|
|
896
911
|
'editor.attachment.please_upload': string;
|
|
897
912
|
'editor.imageGif.tooltip': string;
|
|
898
913
|
'editor.replace.caseSensitive': string;
|
|
914
|
+
'editor.mermaid.tooltip': string;
|
|
899
915
|
};
|
|
900
916
|
|
|
901
917
|
declare interface Result {
|
|
@@ -1159,6 +1175,7 @@ export declare const vi: {
|
|
|
1159
1175
|
'editor.image.dialog.tab.url': string;
|
|
1160
1176
|
'editor.image.dialog.tab.upload': string;
|
|
1161
1177
|
'editor.image.dialog.tab.uploadCrop': string;
|
|
1178
|
+
'editor.image.dialog.uploading': string;
|
|
1162
1179
|
'editor.image.dialog.form.link': string;
|
|
1163
1180
|
'editor.image.dialog.placeholder': string;
|
|
1164
1181
|
'editor.image.dialog.form.alt': string;
|
|
@@ -1238,6 +1255,7 @@ export declare const vi: {
|
|
|
1238
1255
|
'editor.attachment.please_upload': string;
|
|
1239
1256
|
'editor.imageGif.tooltip': string;
|
|
1240
1257
|
'editor.replace.caseSensitive': string;
|
|
1258
|
+
'editor.mermaid.tooltip': string;
|
|
1241
1259
|
};
|
|
1242
1260
|
|
|
1243
1261
|
export declare const Video: Node_2<VideoOptions, any>;
|
|
@@ -1439,6 +1457,7 @@ export declare const zh_CN: {
|
|
|
1439
1457
|
'editor.attachment.please_upload': string;
|
|
1440
1458
|
'editor.imageGif.tooltip': string;
|
|
1441
1459
|
'editor.replace.caseSensitive': string;
|
|
1460
|
+
'editor.mermaid.tooltip': string;
|
|
1442
1461
|
};
|
|
1443
1462
|
|
|
1444
1463
|
export { }
|
|
@@ -1478,6 +1497,16 @@ declare module '@tiptap/core' {
|
|
|
1478
1497
|
}
|
|
1479
1498
|
|
|
1480
1499
|
|
|
1500
|
+
declare module '@tiptap/core' {
|
|
1501
|
+
interface Commands<ReturnType> {
|
|
1502
|
+
lineHeight: {
|
|
1503
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1504
|
+
unsetLineHeight: () => ReturnType;
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
|
|
1481
1510
|
declare module '@tiptap/core' {
|
|
1482
1511
|
interface Commands<ReturnType> {
|
|
1483
1512
|
indent: {
|
|
@@ -1494,16 +1523,6 @@ declare module '@tiptap/core' {
|
|
|
1494
1523
|
}
|
|
1495
1524
|
|
|
1496
1525
|
|
|
1497
|
-
declare module '@tiptap/core' {
|
|
1498
|
-
interface Commands<ReturnType> {
|
|
1499
|
-
lineHeight: {
|
|
1500
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1501
|
-
unsetLineHeight: () => ReturnType;
|
|
1502
|
-
};
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
1526
|
declare module '@tiptap/core' {
|
|
1508
1527
|
interface Commands<ReturnType> {
|
|
1509
1528
|
imageResize: {
|
|
@@ -1526,8 +1545,8 @@ declare module '@tiptap/core' {
|
|
|
1526
1545
|
|
|
1527
1546
|
declare module '@tiptap/core' {
|
|
1528
1547
|
interface Commands<ReturnType> {
|
|
1529
|
-
|
|
1530
|
-
|
|
1548
|
+
imageUpload: {
|
|
1549
|
+
setImageUpload: () => ReturnType;
|
|
1531
1550
|
};
|
|
1532
1551
|
}
|
|
1533
1552
|
}
|
|
@@ -1535,8 +1554,22 @@ declare module '@tiptap/core' {
|
|
|
1535
1554
|
|
|
1536
1555
|
declare module '@tiptap/core' {
|
|
1537
1556
|
interface Commands<ReturnType> {
|
|
1538
|
-
|
|
1539
|
-
|
|
1557
|
+
columns: {
|
|
1558
|
+
insertColumns: (attrs?: {
|
|
1559
|
+
cols: number;
|
|
1560
|
+
}) => ReturnType;
|
|
1561
|
+
addColBefore: () => ReturnType;
|
|
1562
|
+
addColAfter: () => ReturnType;
|
|
1563
|
+
deleteCol: () => ReturnType;
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
declare module '@tiptap/core' {
|
|
1570
|
+
interface Commands<ReturnType> {
|
|
1571
|
+
painter: {
|
|
1572
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1540
1573
|
};
|
|
1541
1574
|
}
|
|
1542
1575
|
}
|
|
@@ -1557,6 +1590,21 @@ declare module '@tiptap/core' {
|
|
|
1557
1590
|
}
|
|
1558
1591
|
|
|
1559
1592
|
|
|
1593
|
+
declare module '@tiptap/core' {
|
|
1594
|
+
interface Commands<ReturnType> {
|
|
1595
|
+
search: {
|
|
1596
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1597
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1598
|
+
replace: () => ReturnType;
|
|
1599
|
+
replaceAll: () => ReturnType;
|
|
1600
|
+
goToPrevSearchResult: () => void;
|
|
1601
|
+
goToNextSearchResult: () => void;
|
|
1602
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1603
|
+
};
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
|
|
1560
1608
|
declare module '@tiptap/core' {
|
|
1561
1609
|
interface Commands<ReturnType> {
|
|
1562
1610
|
tableCellBackground: {
|
|
@@ -1569,8 +1617,8 @@ declare module '@tiptap/core' {
|
|
|
1569
1617
|
|
|
1570
1618
|
declare module '@tiptap/core' {
|
|
1571
1619
|
interface Commands<ReturnType> {
|
|
1572
|
-
|
|
1573
|
-
|
|
1620
|
+
videoUpload: {
|
|
1621
|
+
setVideoUpload: () => ReturnType;
|
|
1574
1622
|
};
|
|
1575
1623
|
}
|
|
1576
1624
|
}
|
|
@@ -1590,13 +1638,8 @@ declare module '@tiptap/core' {
|
|
|
1590
1638
|
|
|
1591
1639
|
declare module '@tiptap/core' {
|
|
1592
1640
|
interface Commands<ReturnType> {
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
cols: number;
|
|
1596
|
-
}) => ReturnType;
|
|
1597
|
-
addColBefore: () => ReturnType;
|
|
1598
|
-
addColAfter: () => ReturnType;
|
|
1599
|
-
deleteCol: () => ReturnType;
|
|
1641
|
+
katex: {
|
|
1642
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1600
1643
|
};
|
|
1601
1644
|
}
|
|
1602
1645
|
}
|
|
@@ -1604,14 +1647,8 @@ declare module '@tiptap/core' {
|
|
|
1604
1647
|
|
|
1605
1648
|
declare module '@tiptap/core' {
|
|
1606
1649
|
interface Commands<ReturnType> {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1610
|
-
replace: () => ReturnType;
|
|
1611
|
-
replaceAll: () => ReturnType;
|
|
1612
|
-
goToPrevSearchResult: () => void;
|
|
1613
|
-
goToNextSearchResult: () => void;
|
|
1614
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1650
|
+
exportWord: {
|
|
1651
|
+
exportToWord: () => ReturnType;
|
|
1615
1652
|
};
|
|
1616
1653
|
}
|
|
1617
1654
|
}
|
|
@@ -1619,8 +1656,8 @@ declare module '@tiptap/core' {
|
|
|
1619
1656
|
|
|
1620
1657
|
declare module '@tiptap/core' {
|
|
1621
1658
|
interface Commands<ReturnType> {
|
|
1622
|
-
|
|
1623
|
-
|
|
1659
|
+
excalidraw: {
|
|
1660
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1624
1661
|
};
|
|
1625
1662
|
}
|
|
1626
1663
|
}
|
|
@@ -1628,8 +1665,9 @@ declare module '@tiptap/core' {
|
|
|
1628
1665
|
|
|
1629
1666
|
declare module '@tiptap/core' {
|
|
1630
1667
|
interface Commands<ReturnType> {
|
|
1631
|
-
|
|
1632
|
-
|
|
1668
|
+
tableOfContents: {
|
|
1669
|
+
setTableOfContents: () => ReturnType;
|
|
1670
|
+
removeTableOfContents: () => ReturnType;
|
|
1633
1671
|
};
|
|
1634
1672
|
}
|
|
1635
1673
|
}
|
|
@@ -1637,8 +1675,18 @@ declare module '@tiptap/core' {
|
|
|
1637
1675
|
|
|
1638
1676
|
declare module '@tiptap/core' {
|
|
1639
1677
|
interface Commands<ReturnType> {
|
|
1640
|
-
|
|
1641
|
-
|
|
1678
|
+
attachment: {
|
|
1679
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1680
|
+
};
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
declare module '@tiptap/core' {
|
|
1686
|
+
interface Commands<ReturnType> {
|
|
1687
|
+
mermaid: {
|
|
1688
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1689
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1642
1690
|
};
|
|
1643
1691
|
}
|
|
1644
1692
|
}
|
|
@@ -1664,25 +1712,6 @@ declare module '@tiptap/core' {
|
|
|
1664
1712
|
}
|
|
1665
1713
|
|
|
1666
1714
|
|
|
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
|
-
|
|
1686
1715
|
declare namespace DropdownMenuShortcut {
|
|
1687
1716
|
var displayName: string;
|
|
1688
1717
|
}
|
|
@@ -3,7 +3,7 @@ var s = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var n = (e, t, o) => s(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import { useMemo as g, useEffect as m } from "react";
|
|
5
5
|
import { proxy as u, useSnapshot as c } from "valtio";
|
|
6
|
-
import { m as h } from "./utils-
|
|
6
|
+
import { m as h } from "./utils-CtONRhPR.js";
|
|
7
7
|
const b = {
|
|
8
8
|
"editor.remove": "Remove",
|
|
9
9
|
"editor.copy": "Copy",
|
|
@@ -165,7 +165,8 @@ const b = {
|
|
|
165
165
|
"editor.attachment.uploading": "Uploading",
|
|
166
166
|
"editor.attachment.please_upload": "Please upload the file",
|
|
167
167
|
"editor.imageGif.tooltip": "Gif",
|
|
168
|
-
"editor.replace.caseSensitive": "Case Sensitive"
|
|
168
|
+
"editor.replace.caseSensitive": "Case Sensitive",
|
|
169
|
+
"editor.mermaid.tooltip": "Mermaid"
|
|
169
170
|
}, f = b, C = {
|
|
170
171
|
"editor.remove": "Remover",
|
|
171
172
|
"editor.copy": "Copiar",
|
|
@@ -327,7 +328,8 @@ const b = {
|
|
|
327
328
|
"editor.attachment.uploading": "Enviando",
|
|
328
329
|
"editor.attachment.please_upload": "Por favor, envie o arquivo",
|
|
329
330
|
"editor.imageGif.tooltip": "Gif",
|
|
330
|
-
"editor.replace.caseSensitive": "Sensível a maiúsculas e minúsculas"
|
|
331
|
+
"editor.replace.caseSensitive": "Sensível a maiúsculas e minúsculas",
|
|
332
|
+
"editor.mermaid.tooltip": "Mermaid"
|
|
331
333
|
}, k = C, T = {
|
|
332
334
|
"editor.remove": "Xóa",
|
|
333
335
|
"editor.copy": "Sao chép",
|
|
@@ -410,6 +412,7 @@ const b = {
|
|
|
410
412
|
"editor.image.dialog.tab.url": "Url",
|
|
411
413
|
"editor.image.dialog.tab.upload": "Tải lên",
|
|
412
414
|
"editor.image.dialog.tab.uploadCrop": "Tải lên & Cắt",
|
|
415
|
+
"editor.image.dialog.uploading": "Đang tải lên",
|
|
413
416
|
"editor.image.dialog.form.link": "Liên kết",
|
|
414
417
|
"editor.image.dialog.placeholder": "Liên kết",
|
|
415
418
|
"editor.image.dialog.form.alt": "Alt",
|
|
@@ -488,7 +491,8 @@ const b = {
|
|
|
488
491
|
"editor.attachment.uploading": "Đang tải lên",
|
|
489
492
|
"editor.attachment.please_upload": "Vui lòng tải lên tệp",
|
|
490
493
|
"editor.imageGif.tooltip": "Gif",
|
|
491
|
-
"editor.replace.caseSensitive": "Phân biệt chữ hoa chữ thường"
|
|
494
|
+
"editor.replace.caseSensitive": "Phân biệt chữ hoa chữ thường",
|
|
495
|
+
"editor.mermaid.tooltip": "Mermaid"
|
|
492
496
|
}, F = T, _ = {
|
|
493
497
|
"editor.remove": "移除",
|
|
494
498
|
"editor.copy": "复制",
|
|
@@ -650,7 +654,8 @@ const b = {
|
|
|
650
654
|
"editor.attachment.uploading": "上传中",
|
|
651
655
|
"editor.attachment.please_upload": "请上传文件",
|
|
652
656
|
"editor.imageGif.tooltip": "Gif",
|
|
653
|
-
"editor.replace.caseSensitive": "区分大小写"
|
|
657
|
+
"editor.replace.caseSensitive": "区分大小写",
|
|
658
|
+
"editor.mermaid.tooltip": "Mermaid"
|
|
654
659
|
}, x = _, A = "en", D = 200, I = D - 80, w = 20, z = 1e5, P = 16, U = 10, N = 10, M = 2, H = [
|
|
655
660
|
"#000000",
|
|
656
661
|
"#262626",
|