reactjs-tiptap-editor 0.0.50 → 0.0.52
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 +79 -50
- package/lib/index.d.ts +79 -50
- package/lib/{locales-eSiq0uo6.js → locales-D5YOTc5t.js} +10 -5
- package/lib/locales-DYkhbpAI.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-Ck6lfMXZ.js} +2814 -2225
- package/lib/utils-D9Z10xn3.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 { }
|
|
@@ -1504,6 +1523,15 @@ declare module '@tiptap/core' {
|
|
|
1504
1523
|
}
|
|
1505
1524
|
|
|
1506
1525
|
|
|
1526
|
+
declare module '@tiptap/core' {
|
|
1527
|
+
interface Commands<ReturnType> {
|
|
1528
|
+
imageUpload: {
|
|
1529
|
+
setImageUpload: () => ReturnType;
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
|
|
1507
1535
|
declare module '@tiptap/core' {
|
|
1508
1536
|
interface Commands<ReturnType> {
|
|
1509
1537
|
imageResize: {
|
|
@@ -1535,8 +1563,32 @@ declare module '@tiptap/core' {
|
|
|
1535
1563
|
|
|
1536
1564
|
declare module '@tiptap/core' {
|
|
1537
1565
|
interface Commands<ReturnType> {
|
|
1538
|
-
|
|
1539
|
-
|
|
1566
|
+
tableCellBackground: {
|
|
1567
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1568
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
declare module '@tiptap/core' {
|
|
1575
|
+
interface Commands<ReturnType> {
|
|
1576
|
+
columns: {
|
|
1577
|
+
insertColumns: (attrs?: {
|
|
1578
|
+
cols: number;
|
|
1579
|
+
}) => ReturnType;
|
|
1580
|
+
addColBefore: () => ReturnType;
|
|
1581
|
+
addColAfter: () => ReturnType;
|
|
1582
|
+
deleteCol: () => ReturnType;
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
declare module '@tiptap/core' {
|
|
1589
|
+
interface Commands<ReturnType> {
|
|
1590
|
+
painter: {
|
|
1591
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1540
1592
|
};
|
|
1541
1593
|
}
|
|
1542
1594
|
}
|
|
@@ -1559,9 +1611,14 @@ declare module '@tiptap/core' {
|
|
|
1559
1611
|
|
|
1560
1612
|
declare module '@tiptap/core' {
|
|
1561
1613
|
interface Commands<ReturnType> {
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1614
|
+
search: {
|
|
1615
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1616
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1617
|
+
replace: () => ReturnType;
|
|
1618
|
+
replaceAll: () => ReturnType;
|
|
1619
|
+
goToPrevSearchResult: () => void;
|
|
1620
|
+
goToNextSearchResult: () => void;
|
|
1621
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1565
1622
|
};
|
|
1566
1623
|
}
|
|
1567
1624
|
}
|
|
@@ -1569,8 +1626,11 @@ declare module '@tiptap/core' {
|
|
|
1569
1626
|
|
|
1570
1627
|
declare module '@tiptap/core' {
|
|
1571
1628
|
interface Commands<ReturnType> {
|
|
1572
|
-
|
|
1573
|
-
|
|
1629
|
+
emoji: {
|
|
1630
|
+
setEmoji: (emoji: {
|
|
1631
|
+
name: string;
|
|
1632
|
+
emoji: string;
|
|
1633
|
+
}) => ReturnType;
|
|
1574
1634
|
};
|
|
1575
1635
|
}
|
|
1576
1636
|
}
|
|
@@ -1578,11 +1638,8 @@ declare module '@tiptap/core' {
|
|
|
1578
1638
|
|
|
1579
1639
|
declare module '@tiptap/core' {
|
|
1580
1640
|
interface Commands<ReturnType> {
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
name: string;
|
|
1584
|
-
emoji: string;
|
|
1585
|
-
}) => ReturnType;
|
|
1641
|
+
katex: {
|
|
1642
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1586
1643
|
};
|
|
1587
1644
|
}
|
|
1588
1645
|
}
|
|
@@ -1590,13 +1647,8 @@ declare module '@tiptap/core' {
|
|
|
1590
1647
|
|
|
1591
1648
|
declare module '@tiptap/core' {
|
|
1592
1649
|
interface Commands<ReturnType> {
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
cols: number;
|
|
1596
|
-
}) => ReturnType;
|
|
1597
|
-
addColBefore: () => ReturnType;
|
|
1598
|
-
addColAfter: () => ReturnType;
|
|
1599
|
-
deleteCol: () => ReturnType;
|
|
1650
|
+
exportWord: {
|
|
1651
|
+
exportToWord: () => ReturnType;
|
|
1600
1652
|
};
|
|
1601
1653
|
}
|
|
1602
1654
|
}
|
|
@@ -1604,14 +1656,9 @@ declare module '@tiptap/core' {
|
|
|
1604
1656
|
|
|
1605
1657
|
declare module '@tiptap/core' {
|
|
1606
1658
|
interface Commands<ReturnType> {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
replace: () => ReturnType;
|
|
1611
|
-
replaceAll: () => ReturnType;
|
|
1612
|
-
goToPrevSearchResult: () => void;
|
|
1613
|
-
goToNextSearchResult: () => void;
|
|
1614
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1659
|
+
tableOfContents: {
|
|
1660
|
+
setTableOfContents: () => ReturnType;
|
|
1661
|
+
removeTableOfContents: () => ReturnType;
|
|
1615
1662
|
};
|
|
1616
1663
|
}
|
|
1617
1664
|
}
|
|
@@ -1619,8 +1666,9 @@ declare module '@tiptap/core' {
|
|
|
1619
1666
|
|
|
1620
1667
|
declare module '@tiptap/core' {
|
|
1621
1668
|
interface Commands<ReturnType> {
|
|
1622
|
-
|
|
1623
|
-
|
|
1669
|
+
mermaid: {
|
|
1670
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1671
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1624
1672
|
};
|
|
1625
1673
|
}
|
|
1626
1674
|
}
|
|
@@ -1628,8 +1676,8 @@ declare module '@tiptap/core' {
|
|
|
1628
1676
|
|
|
1629
1677
|
declare module '@tiptap/core' {
|
|
1630
1678
|
interface Commands<ReturnType> {
|
|
1631
|
-
|
|
1632
|
-
|
|
1679
|
+
attachment: {
|
|
1680
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1633
1681
|
};
|
|
1634
1682
|
}
|
|
1635
1683
|
}
|
|
@@ -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 { }
|
|
@@ -1504,6 +1523,15 @@ declare module '@tiptap/core' {
|
|
|
1504
1523
|
}
|
|
1505
1524
|
|
|
1506
1525
|
|
|
1526
|
+
declare module '@tiptap/core' {
|
|
1527
|
+
interface Commands<ReturnType> {
|
|
1528
|
+
imageUpload: {
|
|
1529
|
+
setImageUpload: () => ReturnType;
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
|
|
1507
1535
|
declare module '@tiptap/core' {
|
|
1508
1536
|
interface Commands<ReturnType> {
|
|
1509
1537
|
imageResize: {
|
|
@@ -1535,8 +1563,32 @@ declare module '@tiptap/core' {
|
|
|
1535
1563
|
|
|
1536
1564
|
declare module '@tiptap/core' {
|
|
1537
1565
|
interface Commands<ReturnType> {
|
|
1538
|
-
|
|
1539
|
-
|
|
1566
|
+
tableCellBackground: {
|
|
1567
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1568
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
declare module '@tiptap/core' {
|
|
1575
|
+
interface Commands<ReturnType> {
|
|
1576
|
+
columns: {
|
|
1577
|
+
insertColumns: (attrs?: {
|
|
1578
|
+
cols: number;
|
|
1579
|
+
}) => ReturnType;
|
|
1580
|
+
addColBefore: () => ReturnType;
|
|
1581
|
+
addColAfter: () => ReturnType;
|
|
1582
|
+
deleteCol: () => ReturnType;
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
declare module '@tiptap/core' {
|
|
1589
|
+
interface Commands<ReturnType> {
|
|
1590
|
+
painter: {
|
|
1591
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1540
1592
|
};
|
|
1541
1593
|
}
|
|
1542
1594
|
}
|
|
@@ -1559,9 +1611,14 @@ declare module '@tiptap/core' {
|
|
|
1559
1611
|
|
|
1560
1612
|
declare module '@tiptap/core' {
|
|
1561
1613
|
interface Commands<ReturnType> {
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1614
|
+
search: {
|
|
1615
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1616
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1617
|
+
replace: () => ReturnType;
|
|
1618
|
+
replaceAll: () => ReturnType;
|
|
1619
|
+
goToPrevSearchResult: () => void;
|
|
1620
|
+
goToNextSearchResult: () => void;
|
|
1621
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1565
1622
|
};
|
|
1566
1623
|
}
|
|
1567
1624
|
}
|
|
@@ -1569,8 +1626,11 @@ declare module '@tiptap/core' {
|
|
|
1569
1626
|
|
|
1570
1627
|
declare module '@tiptap/core' {
|
|
1571
1628
|
interface Commands<ReturnType> {
|
|
1572
|
-
|
|
1573
|
-
|
|
1629
|
+
emoji: {
|
|
1630
|
+
setEmoji: (emoji: {
|
|
1631
|
+
name: string;
|
|
1632
|
+
emoji: string;
|
|
1633
|
+
}) => ReturnType;
|
|
1574
1634
|
};
|
|
1575
1635
|
}
|
|
1576
1636
|
}
|
|
@@ -1578,11 +1638,8 @@ declare module '@tiptap/core' {
|
|
|
1578
1638
|
|
|
1579
1639
|
declare module '@tiptap/core' {
|
|
1580
1640
|
interface Commands<ReturnType> {
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
name: string;
|
|
1584
|
-
emoji: string;
|
|
1585
|
-
}) => ReturnType;
|
|
1641
|
+
katex: {
|
|
1642
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1586
1643
|
};
|
|
1587
1644
|
}
|
|
1588
1645
|
}
|
|
@@ -1590,13 +1647,8 @@ declare module '@tiptap/core' {
|
|
|
1590
1647
|
|
|
1591
1648
|
declare module '@tiptap/core' {
|
|
1592
1649
|
interface Commands<ReturnType> {
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
cols: number;
|
|
1596
|
-
}) => ReturnType;
|
|
1597
|
-
addColBefore: () => ReturnType;
|
|
1598
|
-
addColAfter: () => ReturnType;
|
|
1599
|
-
deleteCol: () => ReturnType;
|
|
1650
|
+
exportWord: {
|
|
1651
|
+
exportToWord: () => ReturnType;
|
|
1600
1652
|
};
|
|
1601
1653
|
}
|
|
1602
1654
|
}
|
|
@@ -1604,14 +1656,9 @@ declare module '@tiptap/core' {
|
|
|
1604
1656
|
|
|
1605
1657
|
declare module '@tiptap/core' {
|
|
1606
1658
|
interface Commands<ReturnType> {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
replace: () => ReturnType;
|
|
1611
|
-
replaceAll: () => ReturnType;
|
|
1612
|
-
goToPrevSearchResult: () => void;
|
|
1613
|
-
goToNextSearchResult: () => void;
|
|
1614
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1659
|
+
tableOfContents: {
|
|
1660
|
+
setTableOfContents: () => ReturnType;
|
|
1661
|
+
removeTableOfContents: () => ReturnType;
|
|
1615
1662
|
};
|
|
1616
1663
|
}
|
|
1617
1664
|
}
|
|
@@ -1619,8 +1666,9 @@ declare module '@tiptap/core' {
|
|
|
1619
1666
|
|
|
1620
1667
|
declare module '@tiptap/core' {
|
|
1621
1668
|
interface Commands<ReturnType> {
|
|
1622
|
-
|
|
1623
|
-
|
|
1669
|
+
mermaid: {
|
|
1670
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1671
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1624
1672
|
};
|
|
1625
1673
|
}
|
|
1626
1674
|
}
|
|
@@ -1628,8 +1676,8 @@ declare module '@tiptap/core' {
|
|
|
1628
1676
|
|
|
1629
1677
|
declare module '@tiptap/core' {
|
|
1630
1678
|
interface Commands<ReturnType> {
|
|
1631
|
-
|
|
1632
|
-
|
|
1679
|
+
attachment: {
|
|
1680
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1633
1681
|
};
|
|
1634
1682
|
}
|
|
1635
1683
|
}
|
|
@@ -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-Ck6lfMXZ.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",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var f=Object.defineProperty;var _=(e,t,o)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var n=(e,t,o)=>_(e,typeof t!="symbol"?t+"":t,o);const p=require("react"),s=require("valtio"),T=require("./utils-D9Z10xn3.cjs"),C={"editor.remove":"Remove","editor.copy":"Copy","editor.words":"WORDS","editor.characters":"CHARACTERS","editor.default":"Default","editor.recent":"Recently Used","editor.nofill":"No Fill","editor.format":"Format Painter","editor.delete":"Delete","editor.edit":"Edit","editor.settings":"Settings","editor.table_of_content":"Table of Content","editor.draghandle.tooltip":"Modify","editor.copyToClipboard":"CopyToClipboard","editor.importWord.tooltip":"Import Word","editor.slash":"Press '/' for commands","editor.slash.empty":"No Result","editor.slash.format":"Format","editor.slash.insert":"Insert","editor.slash.embed":"Embed Services","editor.content":"Please input content","editor.fontFamily.tooltip":"Font Family","editor.fontFamily.default.tooltip":"Default","editor.moremark":"More Text Styles","editor.size.small.tooltip":"Small","editor.size.medium.tooltip":"Medium","editor.size.large.tooltip":"Cover","editor.bold.tooltip":"Bold","editor.italic.tooltip":"Italic","editor.underline.tooltip":"Underline","editor.strike.tooltip":"Strike","editor.color.tooltip":"Color","editor.color.more":"More Colors","editor.highlight.tooltip":"Highlight","editor.lineheight.tooltip":"Line Height","editor.heading.tooltip":"Headings","editor.heading.h1.tooltip":"Heading 1","editor.heading.h2.tooltip":"Heading 2","editor.heading.h3.tooltip":"Heading 3","editor.heading.h4.tooltip":"Heading 4","editor.heading.h5.tooltip":"Heading 5","editor.heading.h6.tooltip":"Heading 6","editor.paragraph.tooltip":"Paragraph","editor.textalign.tooltip":"Align","editor.textalign.left.tooltip":"Left","editor.textalign.center.tooltip":"Center","editor.textalign.right.tooltip":"Right","editor.textalign.justify.tooltip":"Justify","editor.indent":"Indent","editor.indent.indent":"Increase Indent","editor.indent.outdent":"Decrease Indent","editor.fontSize.tooltip":"Font size","editor.fontSize.default.tooltip":"Default","editor.superscript.tooltip":"Superscript","editor.subscript.tooltip":"Subscript","editor.bulletlist.tooltip":"Bullet List","editor.orderedlist.tooltip":"Ordered List","editor.tasklist.tooltip":"Task List","editor.indent.tooltip":"Indent","editor.outdent.tooltip":"Outdent","editor.columns.tooltip":"Columns","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"UnLink","editor.link.open.tooltip":"Open Link","editor.link.edit.tooltip":"Edit Link","editor.link.dialog.title":"Insert Link","editor.link.dialog.link":"Link","editor.link.dialog.text":"Text","editor.link.dialog.openInNewTab":"Open In New Tab","editor.link.dialog.link.placeholder":"Link Address","editor.link.dialog.text.placeholder":"Add Description","editor.link.dialog.button.apply":"Apply","editor.image.tooltip":"Image","editor.image.dragger.tooltip":"Click or drag the image to the area to upload","editor.image.float.left.tooltip":"Float left","editor.image.float.none.tooltip":"Float none","editor.image.float.right.tooltip":"Float right","editor.image.dialog.title":"Add an image","editor.image.dialog.tab.url":"Url","editor.image.dialog.tab.upload":"Upload","editor.image.dialog.tab.uploadCrop":"Upload & Crop","editor.image.dialog.uploading":"Uploading","editor.image.dialog.form.link":"Link","editor.image.dialog.placeholder":"Link","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Lock original aspect ratio","editor.image.dialog.form.file":"File","editor.image.dialog.button.apply":"apply","editor.video.tooltip":"Video","editor.video.dialog.tab.upload":"Upload","editor.video.dialog.uploading":"Uploading","editor.video.dialog.title":"Embed or upload a video","editor.video.dialog.link":"link","editor.video.dialog.placeholder":"Link","editor.video.dialog.button.apply":"apply","editor.table.tooltip":"Table","editor.table.menu.insert_table":"Insert Table","editor.table.menu.insert_table.with_header_row":"With header row","editor.table.menu.add_column_before":"Add Column Before","editor.table.menu.add_column_after":"Add Column After","editor.table.menu.delete_column":"Delete Column","editor.table.menu.add_row_before":"Add Row Before","editor.table.menu.add_row_after":"Add Row After","editor.table.menu.delete_row":"Delete Row","editor.table.menu.merge_or_split_cells":"Merge Or Split Cells","editor.table.menu.delete_table":"Delete Table","editor.blockquote.tooltip":"Blockquote","editor.horizontalrule.tooltip":"Horizontal Rule","editor.code.tooltip":"Code","editor.codeblock.tooltip":"Code Block","editor.clear.tooltip":"Clear Format","editor.undo.tooltip":"Undo","editor.redo.tooltip":"Redo","editor.fullscreen.tooltip.fullscreen":"Fullscreen","editor.fullscreen.tooltip.exit":"Fullscreen Exit","editor.imageUpload.cancel":"Cancel","editor.imageUpload.crop":"Crop","editor.imageUpload.fileTypeNotSupported":"File type not supported","editor.imageUpload.fileSizeTooBig":"File size too big, Maximum size is","editor.table.menu.insertColumnBefore":"Insert Column Before","editor.table.menu.insertColumnAfter":"Insert Column After","editor.table.menu.deleteColumn":"Delete Column","editor.table.menu.insertRowAbove":"Insert Row Above","editor.table.menu.insertRowBelow":"Insert Row Below","editor.table.menu.deleteRow":"Delete Row","editor.table.menu.mergeCells":"Merge Cells","editor.table.menu.splitCells":"Split Cells","editor.table.menu.deleteTable":"Delete Table","editor.table.menu.setCellsBgColor":"Cell Background Color","editor.emoji.tooltip":"Emoji","editor.iframe.tooltip":"Iframe","editor.searchAndReplace.tooltip":"Search and Replace","editor.search.dialog.text":"Search","editor.replace.dialog.text":"Replace","editor.replaceAll.dialog.text":"Replace All","editor.previous.dialog.text":"Previous","editor.next.dialog.text":"Next",no_result_found:"No results found","Smileys & People":"Smileys & People","Animals & Nature":"Animals & Nature","Food & Drink":"Food & Drink",Activity:"Activity","Travel & Places":"Travel & Places",Object:"Objects",Symbol:"Symbols",Flags:"Flags","Frequently used":"Frequently used","editor.formula.dialog.text":"Formula","editor.katex.tooltip":"Math Formula","editor.exportPdf.tooltip":"Export PDF","editor.exportWord.tooltip":"Export Word","editor.importWrod.tooltip":"Import Word","editor.textDirection.tooltip":"Text Direction","editor.textDirection.auto.tooltip":"Auto","editor.textDirection.ltr.tooltip":"Left to Right","editor.textDirection.rtl.tooltip":"Right to Left","editor.attachment.tooltip":"Attachment","editor.attachment.uploading":"Uploading","editor.attachment.please_upload":"Please upload the file","editor.imageGif.tooltip":"Gif","editor.replace.caseSensitive":"Case Sensitive","editor.mermaid.tooltip":"Mermaid"},g=C,A={"editor.remove":"Remover","editor.copy":"Copiar","editor.words":"PALAVRAS","editor.characters":"CARACTERES","editor.default":"Padrão","editor.recent":"Usado recentemente","editor.nofill":"Sem preenchimento","editor.format":"Format Painter","editor.delete":"Deletar","editor.edit":"Editar","editor.settings":"Configurações","editor.table_of_content":"Tabela de conteúdos","editor.draghandle.tooltip":"Modificar","editor.copyToClipboard":"Copiar para a área de transferência","editor.importWord.tooltip":"Importar Word","editor.slash":"Pressione '/' para comandos","editor.slash.empty":"Nenhum resultado","editor.slash.format":"Formato","editor.slash.insert":"Inserir","editor.slash.embed":"Incorporar serviços","editor.content":"Por favor, insira o conteúdo","editor.fontFamily.tooltip":"Fonte","editor.fontFamily.default.tooltip":"Padrão","editor.moremark":"Mais estilos de texto","editor.size.small.tooltip":"Pequeno","editor.size.medium.tooltip":"Médio","editor.size.large.tooltip":"Grande","editor.bold.tooltip":"Negrito","editor.italic.tooltip":"Itálico","editor.underline.tooltip":"Sublinhado","editor.strike.tooltip":"Riscado","editor.color.tooltip":"Cor","editor.color.more":"Mais cores","editor.highlight.tooltip":"Destaque","editor.lineheight.tooltip":"Altura da linha","editor.heading.tooltip":"Cabeçalhos","editor.heading.h1.tooltip":"Cabeçalho 1","editor.heading.h2.tooltip":"Cabeçalho 2","editor.heading.h3.tooltip":"Cabeçalho 3","editor.heading.h4.tooltip":"Cabeçalho 4","editor.heading.h5.tooltip":"Cabeçalho 5","editor.heading.h6.tooltip":"Cabeçalho 6","editor.paragraph.tooltip":"Parágrafo","editor.textalign.tooltip":"Alinhar","editor.textalign.left.tooltip":"Esquerda","editor.textalign.center.tooltip":"Centro","editor.textalign.right.tooltip":"Direita","editor.textalign.justify.tooltip":"Justificar","editor.indent":"Recuo","editor.indent.indent":"Aumentar recuo","editor.indent.outdent":"Diminuir recuo","editor.fontSize.tooltip":"Tamanho da fonte","editor.fontSize.default.tooltip":"Padrão","editor.superscript.tooltip":"Sobrescrito","editor.subscript.tooltip":"Subscrito","editor.bulletlist.tooltip":"Lista de marcadores","editor.orderedlist.tooltip":"Lista numerada","editor.tasklist.tooltip":"Lista de tarefas","editor.indent.tooltip":"Recuo","editor.outdent.tooltip":"Diminuir recuo","editor.columns.tooltip":"Colunas","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"Desvincular","editor.link.open.tooltip":"Abrir link","editor.link.edit.tooltip":"Editar link","editor.link.dialog.title":"Inserir link","editor.link.dialog.link":"Link","editor.link.dialog.text":"Texto","editor.link.dialog.openInNewTab":"Abrir em nova guia","editor.link.dialog.link.placeholder":"Endereço do link","editor.link.dialog.text.placeholder":"Texto do link","editor.link.dialog.button.apply":"Aplicar","editor.image.tooltip":"Imagem","editor.image.dragger.tooltip":"Clique ou arraste a imagem para a área de upload","editor.image.float.left.tooltip":"Flutuar à esquerda","editor.image.float.none.tooltip":"Nenhum flutuante","editor.image.float.right.tooltip":"Flutuar à direita","editor.image.dialog.title":"Adicionar uma imagem","editor.image.dialog.tab.url":"Url","editor.image.dialog.tab.upload":"Enviar","editor.image.dialog.tab.uploadCrop":"Enviar e cortar","editor.image.dialog.uploading":"Enviando","editor.image.dialog.form.link":"Link","editor.image.dialog.placeholder":"Link","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Bloquear proporção original","editor.image.dialog.form.file":"Arquivo","editor.image.dialog.button.apply":"aplicar","editor.video.tooltip":"Vídeo","editor.video.dialog.tab.upload":"Enviar","editor.video.dialog.uploading":"Enviando","editor.video.dialog.title":"Incorporar ou enviar um vídeo","editor.video.dialog.link":"link","editor.video.dialog.placeholder":"Link","editor.video.dialog.button.apply":"aplicar","editor.table.tooltip":"Tabela","editor.table.menu.insert_table":"Inserir tabela","editor.table.menu.insert_table.with_header_row":"Com linha de cabeçalho","editor.table.menu.add_column_before":"Adicionar coluna antes","editor.table.menu.add_column_after":"Adicionar coluna depois","editor.table.menu.delete_column":"Excluir coluna","editor.table.menu.add_row_before":"Adicionar linha antes","editor.table.menu.add_row_after":"Adicionar linha depois","editor.table.menu.delete_row":"Deletar linha","editor.table.menu.merge_or_split_cells":"Mesclar ou dividir células","editor.table.menu.delete_table":"Deletar tabela","editor.blockquote.tooltip":"Citação","editor.horizontalrule.tooltip":"Regra horizontal","editor.code.tooltip":"Código","editor.codeblock.tooltip":"Bloco de código","editor.clear.tooltip":"Limpar formato","editor.undo.tooltip":"Desfazer","editor.redo.tooltip":"Refazer","editor.fullscreen.tooltip.fullscreen":"Tela cheia","editor.fullscreen.tooltip.exit":"Sair da tela cheia","editor.imageUpload.cancel":"Cancelar","editor.imageUpload.crop":"Cortar","editor.imageUpload.fileTypeNotSupported":"Tipo de arquivo não suportado","editor.imageUpload.fileSizeTooBig":"Tamanho do arquivo muito grande, tamanho máximo é","editor.table.menu.insertColumnBefore":"Inserir coluna antes","editor.table.menu.insertColumnAfter":"Inserir coluna depois","editor.table.menu.deleteColumn":"Excluir coluna","editor.table.menu.insertRowAbove":"Inserir linha acima","editor.table.menu.insertRowBelow":"Inserir linha abaixo","editor.table.menu.deleteRow":"Deletar linha","editor.table.menu.mergeCells":"Mesclar células","editor.table.menu.splitCells":"Dividir células","editor.table.menu.deleteTable":"Deletar tabela","editor.table.menu.setCellsBgColor":"Cor de fundo da célula","editor.emoji.tooltip":"Emoji","editor.iframe.tooltip":"Iframe","editor.searchAndReplace.tooltip":"Pesquisar e substituir","editor.search.dialog.text":"Pesquisar","editor.replace.dialog.text":"Substituir","editor.replaceAll.dialog.text":"Substituir tudo","editor.previous.dialog.text":"Anterior","editor.next.dialog.text":"Próximo",no_result_found:"Nenhum resultado encontrado","Smileys & People":"Emoticons & Pessoas","Animals & Nature":"Animais & Natureza","Food & Drink":"Comida & Bebida",Activity:"Atividade","Travel & Places":"Viagem & Lugares",Object:"Objetos",Symbol:"Símbolos",Flags:"Bandeiras","Frequently used":"Frequentemente usado","editor.formula.dialog.text":"Fórmula","editor.katex.tooltip":"Fórmula matemática","editor.exportPdf.tooltip":"Exportar PDF","editor.exportWord.tooltip":"Exportar Word","editor.importWrod.tooltip":"Importar Word","editor.textDirection.tooltip":"Direção do texto","editor.textDirection.auto.tooltip":"Automático","editor.textDirection.ltr.tooltip":"Esquerda para Direita","editor.textDirection.rtl.tooltip":"Direita para Esquerda","editor.attachment.tooltip":"Anexo","editor.attachment.uploading":"Enviando","editor.attachment.please_upload":"Por favor, envie o arquivo","editor.imageGif.tooltip":"Gif","editor.replace.caseSensitive":"Sensível a maiúsculas e minúsculas","editor.mermaid.tooltip":"Mermaid"},m=A,F={"editor.remove":"Xóa","editor.copy":"Sao chép","editor.words":"TỪ","editor.characters":"KÝ TỰ","editor.default":"Mặc định","editor.recent":"Đã sử dụng gần đây","editor.nofill":"Không tô","editor.format":"Format Painter","editor.delete":"Xóa","editor.edit":"Chỉnh sửa","editor.settings":"Cài đặt","editor.table_of_content":"Mục lục","editor.draghandle.tooltip":"Sửa đổi","editor.copyToClipboard":"CopyToClipboard","editor.importWord.tooltip":"Nhập Word","editor.slash":"Nhấn '/' để biết lệnh","editor.slash.empty":"Không có kết quả","editor.slash.format":"Định dạng","editor.slash.insert":"Chèn","editor.slash.embed":"Dịch vụ nhúng","editor.content":"Vui lòng nhập nội dung","editor.moremark":"Nhiều kiểu văn bản hơn","editor.size.small.tooltip":"Nhỏ","editor.fontFamily.tooltip":"Phông chữ","editor.fontFamily.default.tooltip":"Mặc định","editor.size.medium.tooltip":"Trung bình","editor.size.large.tooltip":"Lớn","editor.bold.tooltip":"Đậm","editor.italic.tooltip":"In nghiêng","editor.underline.tooltip":"Gạch chân","editor.strike.tooltip":"Gạch","editor.color.tooltip":"Màu","editor.color.more":"Nhiều màu hơn","editor.highlight.tooltip":"Đánh dấu","editor.lineheight.tooltip":"Chiều cao dòng","editor.heading.tooltip":"Tiêu đề","editor.heading.h1.tooltip":"Tiêu đề 1","editor.heading.h2.tooltip":"Tiêu đề 2","editor.heading.h3.tooltip":"Tiêu đề 3","editor.heading.h4.tooltip":"Tiêu đề 4","editor.heading.h5.tooltip":"Tiêu đề 5","editor.heading.h6.tooltip":"Tiêu đề 6","editor.paragraph.tooltip":"Đoạn văn","editor.textalign.tooltip":"Căn chỉnh","editor.textalign.left.tooltip":"Trái","editor.textalign.center.tooltip":"Giữa","editor.textalign.right.tooltip":"Phải","editor.textalign.justify.tooltip":"Căn đều","editor.indent":"Thụt lề","editor.indent.indent":"Tăng thụt lề","editor.indent.outdent":"Giảm thụt lề","editor.fontSize.tooltip":"Kích thước phông chữ","editor.fontSize.default.tooltip":"Mặc định","editor.superscript.tooltip":"Chỉ số trên","editor.subscript.tooltip":"Chỉ số dưới","editor.bulletlist.tooltip":"Danh sách dấu đầu dòng","editor.orderedlist.tooltip":"Danh sách có thứ tự","editor.tasklist.tooltip":"Danh sách tác vụ","editor.indent.tooltip":"Tăng thụt lề","editor.outdent.tooltip":"Giảm thụt lề","editor.columns.tooltip":"Cột","editor.link.tooltip":"Liên kết","editor.link.unlink.tooltip":"Hủy liên kết","editor.link.open.tooltip":"Mở liên kết","editor.link.edit.tooltip":"Chỉnh sửa liên kết","editor.link.dialog.title":"Chèn liên kết","editor.link.dialog.link":"Liên kết","editor.link.dialog.text":"Văn bản","editor.link.dialog.openInNewTab":"Mở trong tab mới","editor.link.dialog.link.placeholder":"Địa chỉ liên kết","editor.link.dialog.text.placeholder":"Thêm mô tả","editor.link.dialog.button.apply":"Áp dụng","editor.image.tooltip":"Hình ảnh","editor.image.dragger.tooltip":"Nhấp hoặc kéo hình ảnh đến khu vực để tải lên","editor.image.float.left.tooltip":"Trôi sang trái","editor.image.float.none.tooltip":"Trôi không","editor.image.float.right.tooltip":"Trôi sang phải","editor.image.dialog.title":"Thêm hình ảnh","editor.image.dialog.tab.url":"Url","editor.image.dialog.tab.upload":"Tải lên","editor.image.dialog.tab.uploadCrop":"Tải lên & Cắt","editor.image.dialog.uploading":"Đang tải lên","editor.image.dialog.form.link":"Liên kết","editor.image.dialog.placeholder":"Liên kết","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Khóa tỷ lệ khung hình gốc","editor.image.dialog.form.file":"Tệp","editor.image.dialog.button.apply":"áp dụng","editor.video.tooltip":"Video","editor.video.dialog.tab.upload":"Tải lên","editor.video.dialog.uploading":"Đang tải lên","editor.video.dialog.title":"Nhúng hoặc tải lên video","editor.video.dialog.link":"liên kết","editor.video.dialog.placeholder":"Liên kết","editor.video.dialog.button.apply":"áp dụng","editor.table.tooltip":"Bảng","editor.table.menu.insert_table":"Chèn Bảng","editor.table.menu.insert_table.with_header_row":"Có hàng tiêu đề","editor.table.menu.add_column_before":"Thêm Cột Trước","editor.table.menu.add_column_after":"Thêm Cột Sau","editor.table.menu.delete_column":"Xóa Cột","editor.table.menu.add_row_before":"Thêm Hàng Trước","editor.table.menu.add_row_after":"Thêm Hàng Sau","editor.table.menu.delete_row":"Xóa Hàng","editor.table.menu.merge_or_split_cells":"Gộp Hoặc Tách Ô","editor.table.menu.delete_table":"Xóa Bảng","editor.blockquote.tooltip":"Blockquote","editor.horizontalrule.tooltip":"Quy tắc ngang","editor.code.tooltip":"Mã","editor.codeblock.tooltip":"Khối mã","editor.clear.tooltip":"Xóa định dạng","editor.undo.tooltip":"Hoàn tác","editor.redo.tooltip":"Làm lại","editor.fullscreen.tooltip.fullscreen":"Toàn màn hình","editor.fullscreen.tooltip.exit":"Thoát toàn màn hình","editor.imageUpload.cancel":"Hủy","editor.imageUpload.crop":"Cắt","editor.imageUpload.fileTypeNotSupported":"Loại tệp không được hỗ trợ","editor.imageUpload.fileSizeTooBig":"Kích thước tệp quá lớn, Kích thước tối đa là","editor.table.menu.insertColumnBefore":"Chèn cột trước","editor.table.menu.insertColumnAfter":"Chèn cột sau","editor.table.menu.deleteColumn":"Xóa cột","editor.table.menu.insertRowAbove":"Chèn hàng ở trên","editor.table.menu.insertRowBelow":"Chèn hàng ở dưới","editor.table.menu.deleteRow":"Xóa hàng","editor.table.menu.mergeCells":"Gộp các ô","editor.table.menu.splitCells":"Chia ô","editor.table.menu.deleteTable":"Xóa bảng","editor.table.menu.setCellsBgColor":"Màu nền ô","editor.emoji.tooltip":"Biểu tượng","editor.iframe.tooltip":"Iframe","editor.searchAndReplace.tooltip":"Tìm kiếm và thay thế","editor.search.dialog.text":"Tìm kiếm","editor.replace.dialog.text":"Thay thế","editor.replaceAll.dialog.text":"Thay thế tất cả","editor.previous.dialog.text":"Trước","editor.next.dialog.text":"Tiếp theo",no_result_found:"Không tìm thấy kết quả","Smileys & People":"Cười & Mọi người","Animals & Nature":"Động vật & Thiên nhiên","Food & Drink":"Thức ăn & Đồ uống",Activity:"Hoạt động","Travel & Places":"Du lịch & Địa điểm",Object:"Vật",Symbol:"Ký hiệu",Flags:"Cờ","Frequently used":"Thường xuyên sử dụng","editor.formula.dialog.text":"Công thức","editor.katex.tooltip":"Công thức toán học","editor.exportPdf.tooltip":"Xuất PDF","editor.exportWord.tooltip":"Xuất Word","editor.importWrod.tooltip":"Nhập Word","editor.textDirection.tooltip":"Hướng văn bản","editor.textDirection.auto.tooltip":"Tự động","editor.textDirection.ltr.tooltip":"Trái sang Phải","editor.textDirection.rtl.tooltip":"Phải sang Trái","editor.attachment.tooltip":"Đính kèm","editor.attachment.uploading":"Đang tải lên","editor.attachment.please_upload":"Vui lòng tải lên tệp","editor.imageGif.tooltip":"Gif","editor.replace.caseSensitive":"Phân biệt chữ hoa chữ thường","editor.mermaid.tooltip":"Mermaid"},u=F,k={"editor.remove":"移除","editor.copy":"复制","editor.words":"字数","editor.characters":"字符数","editor.default":"默认","editor.recent":"最近使用","editor.nofill":"无填充","editor.format":"格式刷","editor.delete":"删除","editor.edit":"编辑","editor.settings":"设置","editor.table_of_content":"目录","editor.draghandle.tooltip":"修改","editor.copyToClipboard":"复制到剪贴板","editor.importWord.tooltip":"导入 Word","editor.slash":"按 '/' 使用命令","editor.slash.empty":"无结果","editor.slash.format":"格式","editor.slash.insert":"插入","editor.slash.embed":"嵌入服务","editor.content":"请输入内容","editor.fontFamily.tooltip":"字体","editor.fontFamily.default.tooltip":"默认","editor.moremark":"更多文本样式","editor.size.small.tooltip":"小","editor.size.medium.tooltip":"中","editor.size.large.tooltip":"封面","editor.bold.tooltip":"粗体","editor.italic.tooltip":"斜体","editor.underline.tooltip":"下划线","editor.strike.tooltip":"删除线","editor.color.tooltip":"颜色","editor.color.more":"更多颜色","editor.highlight.tooltip":"高亮","editor.lineheight.tooltip":"行高","editor.heading.tooltip":"标题","editor.heading.h1.tooltip":"标题 1","editor.heading.h2.tooltip":"标题 2","editor.heading.h3.tooltip":"标题 3","editor.heading.h4.tooltip":"标题 4","editor.heading.h5.tooltip":"标题 5","editor.heading.h6.tooltip":"标题 6","editor.paragraph.tooltip":"段落","editor.textalign.tooltip":"对齐","editor.textalign.left.tooltip":"左对齐","editor.textalign.center.tooltip":"居中","editor.textalign.right.tooltip":"右对齐","editor.textalign.justify.tooltip":"两端对齐","editor.indent":"缩进","editor.indent.indent":"增加缩进","editor.indent.outdent":"减少缩进","editor.fontSize.tooltip":"字号","editor.fontSize.default.tooltip":"默认","editor.superscript.tooltip":"上标","editor.subscript.tooltip":"下标","editor.bulletlist.tooltip":"无序列表","editor.orderedlist.tooltip":"有序列表","editor.tasklist.tooltip":"任务列表","editor.indent.tooltip":"缩进","editor.outdent.tooltip":"减少缩进","editor.columns.tooltip":"列","editor.link.tooltip":"链接","editor.link.unlink.tooltip":"取消链接","editor.link.open.tooltip":"打开链接","editor.link.edit.tooltip":"编辑链接","editor.link.dialog.title":"插入链接","editor.link.dialog.link":"链接","editor.link.dialog.text":"文本","editor.link.dialog.openInNewTab":"在新标签页中打开","editor.link.dialog.link.placeholder":"链接地址","editor.link.dialog.text.placeholder":"添加描述","editor.link.dialog.button.apply":"应用","editor.image.tooltip":"图片","editor.image.dragger.tooltip":"点击或拖拽图片到此区域上传","editor.image.float.left.tooltip":"左浮动","editor.image.float.none.tooltip":"无浮动","editor.image.float.right.tooltip":"右浮动","editor.image.dialog.title":"添加图片","editor.image.dialog.tab.url":"链接","editor.image.dialog.tab.upload":"上传","editor.image.dialog.uploading":"上传中","editor.image.dialog.form.link":"链接","editor.image.dialog.placeholder":"链接","editor.image.dialog.form.alt":"替代文本","editor.image.dialog.form.aspectRatio":"锁定原始宽高比","editor.image.dialog.form.file":"文件","editor.image.dialog.button.apply":"应用","editor.video.tooltip":"视频","editor.video.dialog.tab.upload":"上传","editor.image.dialog.tab.uploadCrop":"上传并裁剪","editor.video.dialog.uploading":"上传中","editor.video.dialog.title":"嵌入或上传视频","editor.video.dialog.link":"链接","editor.video.dialog.placeholder":"链接","editor.video.dialog.button.apply":"应用","editor.table.tooltip":"表格","editor.table.menu.insert_table":"插入表格","editor.table.menu.insert_table.with_header_row":"带标题行","editor.table.menu.add_column_before":"在前面插入列","editor.table.menu.add_column_after":"在后面插入列","editor.table.menu.delete_column":"删除列","editor.table.menu.add_row_before":"在上方插入行","editor.table.menu.add_row_after":"在下方插入行","editor.table.menu.delete_row":"删除行","editor.table.menu.merge_or_split_cells":"合并或拆分单元格","editor.table.menu.delete_table":"删除表格","editor.blockquote.tooltip":"引用","editor.horizontalrule.tooltip":"水平线","editor.code.tooltip":"代码","editor.codeblock.tooltip":"代码块","editor.clear.tooltip":"清除格式","editor.undo.tooltip":"撤销","editor.redo.tooltip":"重做","editor.fullscreen.tooltip.fullscreen":"全屏","editor.fullscreen.tooltip.exit":"退出全屏","editor.imageUpload.cancel":"取消","editor.imageUpload.crop":"裁剪","editor.imageUpload.fileTypeNotSupported":"不支持的文件类型","editor.imageUpload.fileSizeTooBig":"文件大小超出限制,最大大小为","editor.table.menu.insertColumnBefore":"在前面插入列","editor.table.menu.insertColumnAfter":"在后面插入列","editor.table.menu.deleteColumn":"删除列","editor.table.menu.insertRowAbove":"在上方插入行","editor.table.menu.insertRowBelow":"在下方插入行","editor.table.menu.deleteRow":"删除行","editor.table.menu.mergeCells":"合并单元格","editor.table.menu.splitCells":"拆分单元格","editor.table.menu.deleteTable":"删除表格","editor.table.menu.setCellsBgColor":"设置单元格背景色","editor.emoji.tooltip":"表情","editor.iframe.tooltip":"内嵌框架","editor.searchAndReplace.tooltip":"搜索和替换","editor.search.dialog.text":"搜索","editor.replace.dialog.text":"替换","editor.replaceAll.dialog.text":"全部替换","editor.previous.dialog.text":"上一个","editor.next.dialog.text":"下一个",no_result_found:"未找到结果","Smileys & People":"笑脸和人","Animals & Nature":"动物和自然","Food & Drink":"食物和饮料",Activity:"活动","Travel & Places":"旅行和地点",Object:"物体",Symbol:"符号",Flags:"旗帜","Frequently used":"常用","editor.formula.dialog.text":"公式","editor.katex.tooltip":"数学公式","editor.exportPdf.tooltip":"导出 PDF","editor.exportWord.tooltip":"导出 Word","editor.importWrod.tooltip":"导入 Word","editor.textDirection.tooltip":"文本方向","editor.textDirection.auto.tooltip":"自动","editor.textDirection.ltr.tooltip":"从左到右","editor.textDirection.rtl.tooltip":"从右到左","editor.attachment.tooltip":"附件","editor.attachment.uploading":"上传中","editor.attachment.please_upload":"请上传文件","editor.imageGif.tooltip":"Gif","editor.replace.caseSensitive":"区分大小写","editor.mermaid.tooltip":"Mermaid"},c=k,E="en",x=200,D=x-80,L=20,v=1e5,S=16,I=10,y=10,B=2,R=["#000000","#262626","#595959","#8C8C8C","#BFBFBF","#D9D9D9","#E9E9E9","#F5F5F5","#FAFAFA","#FFFFFF","#F5222D","#FA541C","#FA8C16","#FADB14","#52C41A","#13C2C2","#1890FF","#2F54EB","#722ED1","#EB2F96","#FFE8E6","#FFECE0","#FFEFD1","#FCFCCA","#E4F7D2","#D3F5F0","#D4EEFC","#DEE8FC","#EFE1FA","#FAE1EB","#FFA39E","#FFBB96","#FFD591","#FFFB8F","#B7EB8F","#87E8DE","#91D5FF","#ADC6FF","#D3ADF7","#FFADD2","#FF4D4F","#FF7A45","#FFA940","#FFEC3D","#73D13D","#36CFC9","#40A9FF","#597EF7","#9254DE","#F759AB","#CF1322","#D4380D","#D46B08","#D4B106","#389E0D","#08979C","#096DD9","#1D39C4","#531DAB","#C41D7F","#820014","#871400","#873800","#614700","#135200","#00474F","#003A8C","#061178","#22075E","#780650"],U=["Inter","Comic Sans MS, Comic Sans","serif","cursive","Arial","Arial Black","Georgia","Impact","Tahoma","Times New Roman","Verdana","Courier New","Lucida Console","Monaco","monospace"],w=["html","css","js","ts","bash"],N={html:"HTML",css:"CSS",js:"JavaScript",ts:"TypeScript",bash:"Bash"},M=["10px","11px","12px","14px","16px","18px","20px","22px","24px","26px","28px","36px","48px","72px"],P="default";var h=(e=>(e[e["size-small"]=200]="size-small",e[e["size-medium"]=500]="size-medium",e["size-large"]="100%",e))(h||{}),b=(e=>(e[e["size-small"]=480]="size-small",e[e["size-medium"]=640]="size-medium",e["size-large"]="100%",e))(b||{});const z=["100%","115%","150%","200%","250%","300%"],H="1",G=["bold","italic","underline","strike","code","link","divider","color","highlight","textAlign"],i={lang:E,message:{en:g,vi:u,zh_CN:c,pt_BR:m}};class O{constructor(){n(this,"emitter");this.emitter=T.mitt()}get lang(){return i.lang}set lang(t){if(!this.isLangSupported(t)){console.warn(`Can't find the current language "${t}", Using language "${i.lang}" by default`);return}i.lang=t,this.emitter.emit("lang",t)}get message(){return i.message}set message(t){i.message=t}loadLangMessage(t){return this.message[t]}isLangSupported(t){return Object.keys(this.message).includes(t)}setLang(t){this.lang=t}registerWatchLang(t){return this.emitter.on("lang",t),{unsubscribe:()=>{this.emitter.off("lang",t)}}}setMessage(t,o){this.message[t]=o}buildLocalesHandler(t){t||(t=this.lang);const o=this.loadLangMessage(t);return function(a){return o[a]||a}}}const l=new O,r=s.proxy({lang:i.lang});function W(){const e=s.useSnapshot(r),t=p.useMemo(()=>l.buildLocalesHandler(e.lang),[e.lang]);return p.useEffect(()=>{const o=l.registerWatchLang(d=>{r.lang=d});return()=>{o.unsubscribe()}},[]),{lang:e.lang,t}}const q={t:e=>l.buildLocalesHandler(r.lang)(e)},j=l;exports.BUBBLE_TEXT_LIST=G;exports.COLORS_LIST=R;exports.DEFAULT_FONT_FAMILY_LIST=U;exports.DEFAULT_FONT_SIZE_LIST=M;exports.DEFAULT_FONT_SIZE_VALUE=P;exports.DEFAULT_LANGUAGE_CODE_BLOCK=w;exports.DEFAULT_LINE_HEIGHT=H;exports.DEFAULT_LINE_HEIGHT_LIST=z;exports.EDITOR_UPDATE_WATCH_THROTTLE_WAIT_TIME=D;exports.IMAGE_MAX_SIZE=v;exports.IMAGE_MIN_SIZE=L;exports.IMAGE_SIZE=h;exports.IMAGE_THROTTLE_WAIT_TIME=S;exports.MAP_LANGUAGE_CODE_LABELS=N;exports.TABLE_DEFAULT_SELECTED_GRID_SIZE=B;exports.TABLE_INIT_GRID_SIZE=I;exports.TABLE_MAX_GRID_SIZE=y;exports.VIDEO_SIZE=b;exports.en=g;exports.locale=j;exports.localeActions=q;exports.pt_BR=m;exports.useLocale=W;exports.vi=u;exports.zh_CN=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./utils-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./utils-D9Z10xn3.cjs"),t=require("./locales-DYkhbpAI.cjs");exports.Attachment=e.Attachment;exports.BaseKit=e.BaseKit;exports.Blockquote=e.Blockquote;exports.Bold=e.Bold;exports.BulletList=e.BulletList;exports.Clear=e.Clear;exports.Code=e.Code;exports.CodeBlock=e.CodeBlock;exports.Color=e.Color;exports.Column=e.Column;exports.ColumnActionButton=e.ColumnActionButton;exports.Emoji=e.Emoji;exports.Excalidraw=e.Excalidraw;exports.ExportPdf=e.ExportPdf;exports.ExportWord=e.ExportWord;exports.FontFamily=e.FontFamily;exports.FontSize=e.FontSize;exports.FormatPainter=e.FormatPainter;exports.Heading=e.Heading;exports.Highlight=e.Highlight;exports.History=e.History;exports.HorizontalRule=e.HorizontalRule;exports.Iframe=e.Iframe;exports.Image=e.Image;exports.ImageGif=e.ImageGif;exports.ImageUpload=e.ImageUpload;exports.ImportWord=e.ImportWord;exports.Indent=e.Indent;exports.Italic=e.Italic;exports.Katex=e.Katex;exports.LineHeight=e.LineHeight;exports.Link=e.Link;exports.Mention=e.Mention;exports.Mermaid=e.Mermaid;exports.MoreMark=e.MoreMark;exports.MultiColumn=e.MultiColumn;exports.OrderedList=e.OrderedList;exports.SearchAndReplace=e.SearchAndReplace;exports.SlashCommand=e.SlashCommand;exports.Strike=e.Strike;exports.SubAndSuperScript=e.SubAndSuperScript;exports.Table=e.Table;exports.TableOfContents=e.TableOfContents;exports.TaskList=e.TaskList;exports.TextAlign=e.TextAlign;exports.TextDirection=e.TextDirection;exports.Underline=e.Underline;exports.Video=e.Video;exports.VideoUpload=e.VideoUpload;exports.default=e.RichTextEditor;exports.en=t.en;exports.locale=t.locale;exports.pt_BR=t.pt_BR;exports.vi=t.vi;exports.zh_CN=t.zh_CN;
|