reactjs-tiptap-editor 0.1.7 → 0.1.9

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 CHANGED
@@ -13,6 +13,8 @@
13
13
  <a href="https://bundlephobia.com/result?p=reactjs-tiptap-editor" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/bundlephobia/minzip/reactjs-tiptap-editor" alt="Minizip" /></a>
14
14
  <a href="https://github.com/hunghg255/reactjs-tiptap-editor/graphs/contributors" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/all_contributors-1-orange.svg" alt="Contributors" /></a>
15
15
  <a href="https://github.com/hunghg255/reactjs-tiptap-editor/blob/main/LICENSE" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/github/license/hunghg255/reactjs-tiptap-editor" alt="License" /></a>
16
+ <a href="https://webuild.community" target="_blank" rel="noopener noreferrer"><img src="https://raw.githubusercontent.com/webuild-community/badge/master/svg/love.svg" alt="webuild" /></a>
17
+ <a href="https://webuild.community" target="_blank" rel="noopener noreferrer"><img src="https://raw.githubusercontent.com/webuild-community/badge/master/svg/WeBuild.svg" alt="member" /></a>
16
18
  </p>
17
19
 
18
20
  ![App Screenshot](./screenshot/screenshot.png)
@@ -56,9 +58,7 @@ npm run playground
56
58
 
57
59
  Thanks to the following friends for their contributions to project:
58
60
 
59
- <a href="https://github.com/hunghg255/reactjs-tiptap-editor/graphs/contributors">
60
- <img src="https://contrib.rocks/image?repo=hunghg255/reactjs-tiptap-editor" alt="contributors">
61
- </a>
61
+ ![App Screenshot](./screenshot/contributor-wide.svg)
62
62
 
63
63
  ## Related
64
64
 
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
 
@@ -1577,6 +1746,16 @@ declare module '@tiptap/core' {
1577
1746
  }
1578
1747
 
1579
1748
 
1749
+ declare module '@tiptap/core' {
1750
+ interface Commands<ReturnType> {
1751
+ lineHeight: {
1752
+ setLineHeight: (lineHeight: string) => ReturnType;
1753
+ unsetLineHeight: () => ReturnType;
1754
+ };
1755
+ }
1756
+ }
1757
+
1758
+
1580
1759
  declare module '@tiptap/core' {
1581
1760
  interface Commands<ReturnType> {
1582
1761
  imageUpload: {
@@ -1599,23 +1778,9 @@ declare module '@tiptap/core' {
1599
1778
 
1600
1779
  declare module '@tiptap/core' {
1601
1780
  interface Commands<ReturnType> {
1602
- lineHeight: {
1603
- setLineHeight: (lineHeight: string) => ReturnType;
1604
- unsetLineHeight: () => ReturnType;
1605
- };
1606
- }
1607
- }
1608
-
1609
-
1610
- declare module '@tiptap/core' {
1611
- interface Commands<ReturnType> {
1612
- columns: {
1613
- insertColumns: (attrs?: {
1614
- cols: number;
1615
- }) => ReturnType;
1616
- addColBefore: () => ReturnType;
1617
- addColAfter: () => ReturnType;
1618
- deleteCol: () => ReturnType;
1781
+ tableCellBackground: {
1782
+ setTableCellBackground: (color: string) => ReturnType;
1783
+ unsetTableCellBackground: () => ReturnType;
1619
1784
  };
1620
1785
  }
1621
1786
  }
@@ -1632,9 +1797,13 @@ declare module '@tiptap/core' {
1632
1797
 
1633
1798
  declare module '@tiptap/core' {
1634
1799
  interface Commands<ReturnType> {
1635
- tableCellBackground: {
1636
- setTableCellBackground: (color: string) => ReturnType;
1637
- unsetTableCellBackground: () => ReturnType;
1800
+ columns: {
1801
+ insertColumns: (attrs?: {
1802
+ cols: number;
1803
+ }) => ReturnType;
1804
+ addColBefore: () => ReturnType;
1805
+ addColAfter: () => ReturnType;
1806
+ deleteCol: () => ReturnType;
1638
1807
  };
1639
1808
  }
1640
1809
  }
@@ -1642,11 +1811,14 @@ declare module '@tiptap/core' {
1642
1811
 
1643
1812
  declare module '@tiptap/core' {
1644
1813
  interface Commands<ReturnType> {
1645
- emoji: {
1646
- setEmoji: (emoji: {
1647
- name: string;
1648
- emoji: string;
1649
- }) => ReturnType;
1814
+ search: {
1815
+ setSearchTerm: (searchTerm: string) => ReturnType;
1816
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1817
+ replace: () => ReturnType;
1818
+ replaceAll: () => ReturnType;
1819
+ goToPrevSearchResult: () => void;
1820
+ goToNextSearchResult: () => void;
1821
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1650
1822
  };
1651
1823
  }
1652
1824
  }
@@ -1667,21 +1839,6 @@ declare module '@tiptap/core' {
1667
1839
  }
1668
1840
 
1669
1841
 
1670
- declare module '@tiptap/core' {
1671
- interface Commands<ReturnType> {
1672
- search: {
1673
- setSearchTerm: (searchTerm: string) => ReturnType;
1674
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1675
- replace: () => ReturnType;
1676
- replaceAll: () => ReturnType;
1677
- goToPrevSearchResult: () => void;
1678
- goToNextSearchResult: () => void;
1679
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1680
- };
1681
- }
1682
- }
1683
-
1684
-
1685
1842
  declare module '@tiptap/core' {
1686
1843
  interface Commands<ReturnType> {
1687
1844
  katex: {
@@ -1702,9 +1859,11 @@ declare module '@tiptap/core' {
1702
1859
 
1703
1860
  declare module '@tiptap/core' {
1704
1861
  interface Commands<ReturnType> {
1705
- tableOfContents: {
1706
- setTableOfContents: () => ReturnType;
1707
- removeTableOfContents: () => ReturnType;
1862
+ emoji: {
1863
+ setEmoji: (emoji: {
1864
+ name: string;
1865
+ emoji: string;
1866
+ }) => ReturnType;
1708
1867
  };
1709
1868
  }
1710
1869
  }
@@ -1721,8 +1880,9 @@ declare module '@tiptap/core' {
1721
1880
 
1722
1881
  declare module '@tiptap/core' {
1723
1882
  interface Commands<ReturnType> {
1724
- attachment: {
1725
- setAttachment: (attrs?: unknown) => ReturnType;
1883
+ tableOfContents: {
1884
+ setTableOfContents: () => ReturnType;
1885
+ removeTableOfContents: () => ReturnType;
1726
1886
  };
1727
1887
  }
1728
1888
  }
@@ -1730,19 +1890,9 @@ declare module '@tiptap/core' {
1730
1890
 
1731
1891
  declare module '@tiptap/core' {
1732
1892
  interface Commands<ReturnType> {
1733
- imageGifUpload: {
1734
- /**
1735
- * Add an image gif
1736
- */
1737
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1738
- /**
1739
- * Update an image gif
1740
- */
1741
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1742
- /**
1743
- * Set image alignment
1744
- */
1745
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1893
+ mermaid: {
1894
+ setMermaid: (options: any, replace?: any) => ReturnType;
1895
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1746
1896
  };
1747
1897
  }
1748
1898
  }
@@ -1750,9 +1900,8 @@ declare module '@tiptap/core' {
1750
1900
 
1751
1901
  declare module '@tiptap/core' {
1752
1902
  interface Commands<ReturnType> {
1753
- mermaid: {
1754
- setMermaid: (options: any, replace?: any) => ReturnType;
1755
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1903
+ attachment: {
1904
+ setAttachment: (attrs?: unknown) => ReturnType;
1756
1905
  };
1757
1906
  }
1758
1907
  }
@@ -1773,6 +1922,26 @@ declare module '@tiptap/core' {
1773
1922
  }
1774
1923
 
1775
1924
 
1925
+ declare module '@tiptap/core' {
1926
+ interface Commands<ReturnType> {
1927
+ imageGifUpload: {
1928
+ /**
1929
+ * Add an image gif
1930
+ */
1931
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1932
+ /**
1933
+ * Update an image gif
1934
+ */
1935
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1936
+ /**
1937
+ * Set image alignment
1938
+ */
1939
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1940
+ };
1941
+ }
1942
+ }
1943
+
1944
+
1776
1945
  declare namespace DialogHeader {
1777
1946
  var displayName: string;
1778
1947
  }