reactjs-tiptap-editor 0.1.7 → 0.1.8
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/README.md +1 -3
- package/lib/index.d.cts +228 -59
- package/lib/index.d.ts +228 -59
- package/lib/{locales-DHp0nH_t.cjs → locales-BYUc-X3A.cjs} +1 -1
- package/lib/{locales-D9CAqRey.js → locales-D2yZHlj9.js} +209 -40
- package/lib/reactjs-tiptap-editor.cjs +1 -1
- package/lib/reactjs-tiptap-editor.js +25 -24
- package/lib/{utils-DulpU8nD.js → utils-CC0wZtK5.js} +2 -2
- package/lib/{utils-_n7iIARK.cjs → utils-DjVD_MCw.cjs} +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -56,9 +56,7 @@ npm run playground
|
|
|
56
56
|
|
|
57
57
|
Thanks to the following friends for their contributions to project:
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
<img src="https://contrib.rocks/image?repo=hunghg255/reactjs-tiptap-editor" alt="contributors">
|
|
61
|
-
</a>
|
|
59
|
+

|
|
62
60
|
|
|
63
61
|
## Related
|
|
64
62
|
|
package/lib/index.d.cts
CHANGED
|
@@ -633,6 +633,175 @@ export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
|
|
|
633
633
|
export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
|
|
634
634
|
}
|
|
635
635
|
|
|
636
|
+
export declare const hu_HU: {
|
|
637
|
+
'editor.remove': string;
|
|
638
|
+
'editor.copy': string;
|
|
639
|
+
'editor.words': string;
|
|
640
|
+
'editor.characters': string;
|
|
641
|
+
'editor.default': string;
|
|
642
|
+
'editor.recent': string;
|
|
643
|
+
'editor.nofill': string;
|
|
644
|
+
'editor.format': string;
|
|
645
|
+
'editor.delete': string;
|
|
646
|
+
'editor.edit': string;
|
|
647
|
+
'editor.settings': string;
|
|
648
|
+
'editor.table_of_content': string;
|
|
649
|
+
'editor.draghandle.tooltip': string;
|
|
650
|
+
'editor.copyToClipboard': string;
|
|
651
|
+
'editor.importWord.tooltip': string;
|
|
652
|
+
'editor.slash': string;
|
|
653
|
+
'editor.slash.empty': string;
|
|
654
|
+
'editor.slash.format': string;
|
|
655
|
+
'editor.slash.insert': string;
|
|
656
|
+
'editor.slash.embed': string;
|
|
657
|
+
'editor.content': string;
|
|
658
|
+
'editor.fontFamily.tooltip': string;
|
|
659
|
+
'editor.fontFamily.default.tooltip': string;
|
|
660
|
+
'editor.moremark': string;
|
|
661
|
+
'editor.size.small.tooltip': string;
|
|
662
|
+
'editor.size.medium.tooltip': string;
|
|
663
|
+
'editor.size.large.tooltip': string;
|
|
664
|
+
'editor.bold.tooltip': string;
|
|
665
|
+
'editor.italic.tooltip': string;
|
|
666
|
+
'editor.underline.tooltip': string;
|
|
667
|
+
'editor.strike.tooltip': string;
|
|
668
|
+
'editor.color.tooltip': string;
|
|
669
|
+
'editor.color.more': string;
|
|
670
|
+
'editor.highlight.tooltip': string;
|
|
671
|
+
'editor.lineheight.tooltip': string;
|
|
672
|
+
'editor.heading.tooltip': string;
|
|
673
|
+
'editor.heading.h1.tooltip': string;
|
|
674
|
+
'editor.heading.h2.tooltip': string;
|
|
675
|
+
'editor.heading.h3.tooltip': string;
|
|
676
|
+
'editor.heading.h4.tooltip': string;
|
|
677
|
+
'editor.heading.h5.tooltip': string;
|
|
678
|
+
'editor.heading.h6.tooltip': string;
|
|
679
|
+
'editor.paragraph.tooltip': string;
|
|
680
|
+
'editor.textalign.tooltip': string;
|
|
681
|
+
'editor.textalign.left.tooltip': string;
|
|
682
|
+
'editor.textalign.center.tooltip': string;
|
|
683
|
+
'editor.textalign.right.tooltip': string;
|
|
684
|
+
'editor.textalign.justify.tooltip': string;
|
|
685
|
+
'editor.indent': string;
|
|
686
|
+
'editor.indent.indent': string;
|
|
687
|
+
'editor.indent.outdent': string;
|
|
688
|
+
'editor.fontSize.tooltip': string;
|
|
689
|
+
'editor.fontSize.default.tooltip': string;
|
|
690
|
+
'editor.superscript.tooltip': string;
|
|
691
|
+
'editor.subscript.tooltip': string;
|
|
692
|
+
'editor.bulletlist.tooltip': string;
|
|
693
|
+
'editor.orderedlist.tooltip': string;
|
|
694
|
+
'editor.tasklist.tooltip': string;
|
|
695
|
+
'editor.indent.tooltip': string;
|
|
696
|
+
'editor.outdent.tooltip': string;
|
|
697
|
+
'editor.columns.tooltip': string;
|
|
698
|
+
'editor.link.tooltip': string;
|
|
699
|
+
'editor.link.unlink.tooltip': string;
|
|
700
|
+
'editor.link.open.tooltip': string;
|
|
701
|
+
'editor.link.edit.tooltip': string;
|
|
702
|
+
'editor.link.dialog.title': string;
|
|
703
|
+
'editor.link.dialog.link': string;
|
|
704
|
+
'editor.link.dialog.text': string;
|
|
705
|
+
'editor.link.dialog.openInNewTab': string;
|
|
706
|
+
'editor.link.dialog.link.placeholder': string;
|
|
707
|
+
'editor.link.dialog.text.placeholder': string;
|
|
708
|
+
'editor.link.dialog.button.apply': string;
|
|
709
|
+
'editor.image.tooltip': string;
|
|
710
|
+
'editor.image.dragger.tooltip': string;
|
|
711
|
+
'editor.image.float.left.tooltip': string;
|
|
712
|
+
'editor.image.float.none.tooltip': string;
|
|
713
|
+
'editor.image.float.right.tooltip': string;
|
|
714
|
+
'editor.image.dialog.title': string;
|
|
715
|
+
'editor.image.dialog.tab.url': string;
|
|
716
|
+
'editor.image.dialog.tab.upload': string;
|
|
717
|
+
'editor.image.dialog.tab.uploadCrop': string;
|
|
718
|
+
'editor.image.dialog.uploading': string;
|
|
719
|
+
'editor.link.dialog.inline': string;
|
|
720
|
+
'editor.image.dialog.form.link': string;
|
|
721
|
+
'editor.image.dialog.placeholder': string;
|
|
722
|
+
'editor.image.dialog.form.alt': string;
|
|
723
|
+
'editor.image.dialog.form.aspectRatio': string;
|
|
724
|
+
'editor.image.dialog.form.file': string;
|
|
725
|
+
'editor.image.dialog.button.apply': string;
|
|
726
|
+
'editor.video.tooltip': string;
|
|
727
|
+
'editor.video.dialog.tab.upload': string;
|
|
728
|
+
'editor.video.dialog.uploading': string;
|
|
729
|
+
'editor.video.dialog.title': string;
|
|
730
|
+
'editor.video.dialog.link': string;
|
|
731
|
+
'editor.video.dialog.placeholder': string;
|
|
732
|
+
'editor.video.dialog.button.apply': string;
|
|
733
|
+
'editor.table.tooltip': string;
|
|
734
|
+
'editor.table.menu.insert_table': string;
|
|
735
|
+
'editor.table.menu.insert_table.with_header_row': string;
|
|
736
|
+
'editor.table.menu.add_column_before': string;
|
|
737
|
+
'editor.table.menu.add_column_after': string;
|
|
738
|
+
'editor.table.menu.delete_column': string;
|
|
739
|
+
'editor.table.menu.add_row_before': string;
|
|
740
|
+
'editor.table.menu.add_row_after': string;
|
|
741
|
+
'editor.table.menu.delete_row': string;
|
|
742
|
+
'editor.table.menu.merge_or_split_cells': string;
|
|
743
|
+
'editor.table.menu.delete_table': string;
|
|
744
|
+
'editor.blockquote.tooltip': string;
|
|
745
|
+
'editor.horizontalrule.tooltip': string;
|
|
746
|
+
'editor.code.tooltip': string;
|
|
747
|
+
'editor.codeblock.tooltip': string;
|
|
748
|
+
'editor.clear.tooltip': string;
|
|
749
|
+
'editor.undo.tooltip': string;
|
|
750
|
+
'editor.redo.tooltip': string;
|
|
751
|
+
'editor.fullscreen.tooltip.fullscreen': string;
|
|
752
|
+
'editor.fullscreen.tooltip.exit': string;
|
|
753
|
+
'editor.imageUpload.cancel': string;
|
|
754
|
+
'editor.imageUpload.crop': string;
|
|
755
|
+
'editor.imageUpload.fileTypeNotSupported': string;
|
|
756
|
+
'editor.imageUpload.fileSizeTooBig': string;
|
|
757
|
+
'editor.table.menu.insertColumnBefore': string;
|
|
758
|
+
'editor.table.menu.insertColumnAfter': string;
|
|
759
|
+
'editor.table.menu.deleteColumn': string;
|
|
760
|
+
'editor.table.menu.insertRowAbove': string;
|
|
761
|
+
'editor.table.menu.insertRowBelow': string;
|
|
762
|
+
'editor.table.menu.deleteRow': string;
|
|
763
|
+
'editor.table.menu.mergeCells': string;
|
|
764
|
+
'editor.table.menu.splitCells': string;
|
|
765
|
+
'editor.table.menu.deleteTable': string;
|
|
766
|
+
'editor.table.menu.setCellsBgColor': string;
|
|
767
|
+
'editor.emoji.tooltip': string;
|
|
768
|
+
'editor.iframe.tooltip': string;
|
|
769
|
+
'editor.searchAndReplace.tooltip': string;
|
|
770
|
+
'editor.search.dialog.text': string;
|
|
771
|
+
'editor.replace.dialog.text': string;
|
|
772
|
+
'editor.replaceAll.dialog.text': string;
|
|
773
|
+
'editor.previous.dialog.text': string;
|
|
774
|
+
'editor.next.dialog.text': string;
|
|
775
|
+
no_result_found: string;
|
|
776
|
+
'Smileys & People': string;
|
|
777
|
+
'Animals & Nature': string;
|
|
778
|
+
'Food & Drink': string;
|
|
779
|
+
Activity: string;
|
|
780
|
+
'Travel & Places': string;
|
|
781
|
+
Object: string;
|
|
782
|
+
Symbol: string;
|
|
783
|
+
Flags: string;
|
|
784
|
+
'Frequently used': string;
|
|
785
|
+
'editor.formula.dialog.text': string;
|
|
786
|
+
'editor.katex.tooltip': string;
|
|
787
|
+
'editor.exportPdf.tooltip': string;
|
|
788
|
+
'editor.exportWord.tooltip': string;
|
|
789
|
+
'editor.importWrod.tooltip': string;
|
|
790
|
+
'editor.textDirection.tooltip': string;
|
|
791
|
+
'editor.textDirection.auto.tooltip': string;
|
|
792
|
+
'editor.textDirection.ltr.tooltip': string;
|
|
793
|
+
'editor.textDirection.rtl.tooltip': string;
|
|
794
|
+
'editor.attachment.tooltip': string;
|
|
795
|
+
'editor.attachment.uploading': string;
|
|
796
|
+
'editor.attachment.please_upload': string;
|
|
797
|
+
'editor.imageGif.tooltip': string;
|
|
798
|
+
'editor.replace.caseSensitive': string;
|
|
799
|
+
'editor.mermaid.tooltip': string;
|
|
800
|
+
'editor.twitter.tooltip': string;
|
|
801
|
+
'editor.tooltip.flipX': string;
|
|
802
|
+
'editor.tooltip.flipY': string;
|
|
803
|
+
};
|
|
804
|
+
|
|
636
805
|
export declare const Iframe: Node_2<any, any>;
|
|
637
806
|
|
|
638
807
|
declare interface IImageOptions extends GeneralOptions<IImageOptions> {
|
|
@@ -685,7 +854,7 @@ export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<I
|
|
|
685
854
|
|
|
686
855
|
export declare const Katex: Node_2<IKatexOptions, any>;
|
|
687
856
|
|
|
688
|
-
declare type LanguageType = 'en' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
|
|
857
|
+
declare type LanguageType = 'en' | 'hu_HU' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
|
|
689
858
|
|
|
690
859
|
export declare const LineHeight: Extension<LineHeightOptions, any>;
|
|
691
860
|
|
|
@@ -1579,19 +1748,9 @@ declare module '@tiptap/core' {
|
|
|
1579
1748
|
|
|
1580
1749
|
declare module '@tiptap/core' {
|
|
1581
1750
|
interface Commands<ReturnType> {
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
*/
|
|
1586
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1587
|
-
/**
|
|
1588
|
-
* Update an image
|
|
1589
|
-
*/
|
|
1590
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1591
|
-
/**
|
|
1592
|
-
* Set image alignment
|
|
1593
|
-
*/
|
|
1594
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1751
|
+
lineHeight: {
|
|
1752
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1753
|
+
unsetLineHeight: () => ReturnType;
|
|
1595
1754
|
};
|
|
1596
1755
|
}
|
|
1597
1756
|
}
|
|
@@ -1599,9 +1758,9 @@ declare module '@tiptap/core' {
|
|
|
1599
1758
|
|
|
1600
1759
|
declare module '@tiptap/core' {
|
|
1601
1760
|
interface Commands<ReturnType> {
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1761
|
+
tableCellBackground: {
|
|
1762
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1763
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1605
1764
|
};
|
|
1606
1765
|
}
|
|
1607
1766
|
}
|
|
@@ -1609,13 +1768,14 @@ declare module '@tiptap/core' {
|
|
|
1609
1768
|
|
|
1610
1769
|
declare module '@tiptap/core' {
|
|
1611
1770
|
interface Commands<ReturnType> {
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1771
|
+
iframe: {
|
|
1772
|
+
/**
|
|
1773
|
+
* Add an iframe
|
|
1774
|
+
*/
|
|
1775
|
+
setIframe: (options: {
|
|
1776
|
+
src: string;
|
|
1777
|
+
service: string;
|
|
1615
1778
|
}) => ReturnType;
|
|
1616
|
-
addColBefore: () => ReturnType;
|
|
1617
|
-
addColAfter: () => ReturnType;
|
|
1618
|
-
deleteCol: () => ReturnType;
|
|
1619
1779
|
};
|
|
1620
1780
|
}
|
|
1621
1781
|
}
|
|
@@ -1623,8 +1783,13 @@ declare module '@tiptap/core' {
|
|
|
1623
1783
|
|
|
1624
1784
|
declare module '@tiptap/core' {
|
|
1625
1785
|
interface Commands<ReturnType> {
|
|
1626
|
-
|
|
1627
|
-
|
|
1786
|
+
columns: {
|
|
1787
|
+
insertColumns: (attrs?: {
|
|
1788
|
+
cols: number;
|
|
1789
|
+
}) => ReturnType;
|
|
1790
|
+
addColBefore: () => ReturnType;
|
|
1791
|
+
addColAfter: () => ReturnType;
|
|
1792
|
+
deleteCol: () => ReturnType;
|
|
1628
1793
|
};
|
|
1629
1794
|
}
|
|
1630
1795
|
}
|
|
@@ -1632,9 +1797,19 @@ declare module '@tiptap/core' {
|
|
|
1632
1797
|
|
|
1633
1798
|
declare module '@tiptap/core' {
|
|
1634
1799
|
interface Commands<ReturnType> {
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1800
|
+
imageUpload: {
|
|
1801
|
+
/**
|
|
1802
|
+
* Add an image
|
|
1803
|
+
*/
|
|
1804
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1805
|
+
/**
|
|
1806
|
+
* Update an image
|
|
1807
|
+
*/
|
|
1808
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1809
|
+
/**
|
|
1810
|
+
* Set image alignment
|
|
1811
|
+
*/
|
|
1812
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1638
1813
|
};
|
|
1639
1814
|
}
|
|
1640
1815
|
}
|
|
@@ -1642,11 +1817,14 @@ declare module '@tiptap/core' {
|
|
|
1642
1817
|
|
|
1643
1818
|
declare module '@tiptap/core' {
|
|
1644
1819
|
interface Commands<ReturnType> {
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1820
|
+
search: {
|
|
1821
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1822
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1823
|
+
replace: () => ReturnType;
|
|
1824
|
+
replaceAll: () => ReturnType;
|
|
1825
|
+
goToPrevSearchResult: () => void;
|
|
1826
|
+
goToNextSearchResult: () => void;
|
|
1827
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1650
1828
|
};
|
|
1651
1829
|
}
|
|
1652
1830
|
}
|
|
@@ -1654,14 +1832,8 @@ declare module '@tiptap/core' {
|
|
|
1654
1832
|
|
|
1655
1833
|
declare module '@tiptap/core' {
|
|
1656
1834
|
interface Commands<ReturnType> {
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
* Add an iframe
|
|
1660
|
-
*/
|
|
1661
|
-
setIframe: (options: {
|
|
1662
|
-
src: string;
|
|
1663
|
-
service: string;
|
|
1664
|
-
}) => ReturnType;
|
|
1835
|
+
painter: {
|
|
1836
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1665
1837
|
};
|
|
1666
1838
|
}
|
|
1667
1839
|
}
|
|
@@ -1669,14 +1841,11 @@ declare module '@tiptap/core' {
|
|
|
1669
1841
|
|
|
1670
1842
|
declare module '@tiptap/core' {
|
|
1671
1843
|
interface Commands<ReturnType> {
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
goToPrevSearchResult: () => void;
|
|
1678
|
-
goToNextSearchResult: () => void;
|
|
1679
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1844
|
+
emoji: {
|
|
1845
|
+
setEmoji: (emoji: {
|
|
1846
|
+
name: string;
|
|
1847
|
+
emoji: string;
|
|
1848
|
+
}) => ReturnType;
|
|
1680
1849
|
};
|
|
1681
1850
|
}
|
|
1682
1851
|
}
|
|
@@ -1719,6 +1888,16 @@ declare module '@tiptap/core' {
|
|
|
1719
1888
|
}
|
|
1720
1889
|
|
|
1721
1890
|
|
|
1891
|
+
declare module '@tiptap/core' {
|
|
1892
|
+
interface Commands<ReturnType> {
|
|
1893
|
+
mermaid: {
|
|
1894
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1895
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1896
|
+
};
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
|
|
1722
1901
|
declare module '@tiptap/core' {
|
|
1723
1902
|
interface Commands<ReturnType> {
|
|
1724
1903
|
attachment: {
|
|
@@ -1748,16 +1927,6 @@ declare module '@tiptap/core' {
|
|
|
1748
1927
|
}
|
|
1749
1928
|
|
|
1750
1929
|
|
|
1751
|
-
declare module '@tiptap/core' {
|
|
1752
|
-
interface Commands<ReturnType> {
|
|
1753
|
-
mermaid: {
|
|
1754
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1755
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1756
|
-
};
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
1930
|
declare module '@tiptap/core' {
|
|
1762
1931
|
interface Commands<ReturnType> {
|
|
1763
1932
|
twitter: {
|