reactjs-tiptap-editor 0.0.22 → 0.0.23
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
CHANGED
|
@@ -1717,6 +1717,16 @@ declare module '@tiptap/core' {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
|
|
1719
1719
|
|
|
1720
|
+
declare module '@tiptap/core' {
|
|
1721
|
+
interface Commands<ReturnType> {
|
|
1722
|
+
lineHeight: {
|
|
1723
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1724
|
+
unsetLineHeight: () => ReturnType;
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
|
|
1720
1730
|
declare module '@tiptap/core' {
|
|
1721
1731
|
interface Commands<ReturnType> {
|
|
1722
1732
|
imageResize: {
|
|
@@ -1733,16 +1743,6 @@ declare module '@tiptap/core' {
|
|
|
1733
1743
|
}
|
|
1734
1744
|
|
|
1735
1745
|
|
|
1736
|
-
declare module '@tiptap/core' {
|
|
1737
|
-
interface Commands<ReturnType> {
|
|
1738
|
-
lineHeight: {
|
|
1739
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1740
|
-
unsetLineHeight: () => ReturnType;
|
|
1741
|
-
};
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
1746
|
declare module '@tiptap/core' {
|
|
1747
1747
|
interface Commands<ReturnType> {
|
|
1748
1748
|
imageUpload: {
|
|
@@ -1764,8 +1764,14 @@ declare module '@tiptap/core' {
|
|
|
1764
1764
|
|
|
1765
1765
|
declare module '@tiptap/core' {
|
|
1766
1766
|
interface Commands<ReturnType> {
|
|
1767
|
-
|
|
1768
|
-
|
|
1767
|
+
iframe: {
|
|
1768
|
+
/**
|
|
1769
|
+
* Add an iframe
|
|
1770
|
+
*/
|
|
1771
|
+
setIframe: (options: {
|
|
1772
|
+
src: string;
|
|
1773
|
+
service: string;
|
|
1774
|
+
}) => ReturnType;
|
|
1769
1775
|
};
|
|
1770
1776
|
}
|
|
1771
1777
|
}
|
|
@@ -1773,9 +1779,8 @@ declare module '@tiptap/core' {
|
|
|
1773
1779
|
|
|
1774
1780
|
declare module '@tiptap/core' {
|
|
1775
1781
|
interface Commands<ReturnType> {
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
unsetTableCellBackground: () => ReturnType;
|
|
1782
|
+
painter: {
|
|
1783
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1779
1784
|
};
|
|
1780
1785
|
}
|
|
1781
1786
|
}
|
|
@@ -1783,8 +1788,9 @@ declare module '@tiptap/core' {
|
|
|
1783
1788
|
|
|
1784
1789
|
declare module '@tiptap/core' {
|
|
1785
1790
|
interface Commands<ReturnType> {
|
|
1786
|
-
|
|
1787
|
-
|
|
1791
|
+
tableCellBackground: {
|
|
1792
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1793
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1788
1794
|
};
|
|
1789
1795
|
}
|
|
1790
1796
|
}
|
|
@@ -1792,14 +1798,13 @@ declare module '@tiptap/core' {
|
|
|
1792
1798
|
|
|
1793
1799
|
declare module '@tiptap/core' {
|
|
1794
1800
|
interface Commands<ReturnType> {
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
}) => ReturnType;
|
|
1801
|
+
search: {
|
|
1802
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1803
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1804
|
+
replace: () => ReturnType;
|
|
1805
|
+
replaceAll: () => ReturnType;
|
|
1806
|
+
goToPrevSearchResult: () => void;
|
|
1807
|
+
goToNextSearchResult: () => void;
|
|
1803
1808
|
};
|
|
1804
1809
|
}
|
|
1805
1810
|
}
|
|
@@ -1807,11 +1812,8 @@ declare module '@tiptap/core' {
|
|
|
1807
1812
|
|
|
1808
1813
|
declare module '@tiptap/core' {
|
|
1809
1814
|
interface Commands<ReturnType> {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
name: string;
|
|
1813
|
-
emoji: string;
|
|
1814
|
-
}) => ReturnType;
|
|
1815
|
+
katex: {
|
|
1816
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1815
1817
|
};
|
|
1816
1818
|
}
|
|
1817
1819
|
}
|
|
@@ -1819,13 +1821,8 @@ declare module '@tiptap/core' {
|
|
|
1819
1821
|
|
|
1820
1822
|
declare module '@tiptap/core' {
|
|
1821
1823
|
interface Commands<ReturnType> {
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1825
|
-
replace: () => ReturnType;
|
|
1826
|
-
replaceAll: () => ReturnType;
|
|
1827
|
-
goToPrevSearchResult: () => void;
|
|
1828
|
-
goToNextSearchResult: () => void;
|
|
1824
|
+
videoUpload: {
|
|
1825
|
+
setVideoUpload: () => ReturnType;
|
|
1829
1826
|
};
|
|
1830
1827
|
}
|
|
1831
1828
|
}
|
|
@@ -1833,8 +1830,11 @@ declare module '@tiptap/core' {
|
|
|
1833
1830
|
|
|
1834
1831
|
declare module '@tiptap/core' {
|
|
1835
1832
|
interface Commands<ReturnType> {
|
|
1836
|
-
|
|
1837
|
-
|
|
1833
|
+
emoji: {
|
|
1834
|
+
setEmoji: (emoji: {
|
|
1835
|
+
name: string;
|
|
1836
|
+
emoji: string;
|
|
1837
|
+
}) => ReturnType;
|
|
1838
1838
|
};
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1717,6 +1717,16 @@ declare module '@tiptap/core' {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
|
|
1719
1719
|
|
|
1720
|
+
declare module '@tiptap/core' {
|
|
1721
|
+
interface Commands<ReturnType> {
|
|
1722
|
+
lineHeight: {
|
|
1723
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1724
|
+
unsetLineHeight: () => ReturnType;
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
|
|
1720
1730
|
declare module '@tiptap/core' {
|
|
1721
1731
|
interface Commands<ReturnType> {
|
|
1722
1732
|
imageResize: {
|
|
@@ -1733,16 +1743,6 @@ declare module '@tiptap/core' {
|
|
|
1733
1743
|
}
|
|
1734
1744
|
|
|
1735
1745
|
|
|
1736
|
-
declare module '@tiptap/core' {
|
|
1737
|
-
interface Commands<ReturnType> {
|
|
1738
|
-
lineHeight: {
|
|
1739
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1740
|
-
unsetLineHeight: () => ReturnType;
|
|
1741
|
-
};
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
1746
|
declare module '@tiptap/core' {
|
|
1747
1747
|
interface Commands<ReturnType> {
|
|
1748
1748
|
imageUpload: {
|
|
@@ -1764,8 +1764,14 @@ declare module '@tiptap/core' {
|
|
|
1764
1764
|
|
|
1765
1765
|
declare module '@tiptap/core' {
|
|
1766
1766
|
interface Commands<ReturnType> {
|
|
1767
|
-
|
|
1768
|
-
|
|
1767
|
+
iframe: {
|
|
1768
|
+
/**
|
|
1769
|
+
* Add an iframe
|
|
1770
|
+
*/
|
|
1771
|
+
setIframe: (options: {
|
|
1772
|
+
src: string;
|
|
1773
|
+
service: string;
|
|
1774
|
+
}) => ReturnType;
|
|
1769
1775
|
};
|
|
1770
1776
|
}
|
|
1771
1777
|
}
|
|
@@ -1773,9 +1779,8 @@ declare module '@tiptap/core' {
|
|
|
1773
1779
|
|
|
1774
1780
|
declare module '@tiptap/core' {
|
|
1775
1781
|
interface Commands<ReturnType> {
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
unsetTableCellBackground: () => ReturnType;
|
|
1782
|
+
painter: {
|
|
1783
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1779
1784
|
};
|
|
1780
1785
|
}
|
|
1781
1786
|
}
|
|
@@ -1783,8 +1788,9 @@ declare module '@tiptap/core' {
|
|
|
1783
1788
|
|
|
1784
1789
|
declare module '@tiptap/core' {
|
|
1785
1790
|
interface Commands<ReturnType> {
|
|
1786
|
-
|
|
1787
|
-
|
|
1791
|
+
tableCellBackground: {
|
|
1792
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1793
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1788
1794
|
};
|
|
1789
1795
|
}
|
|
1790
1796
|
}
|
|
@@ -1792,14 +1798,13 @@ declare module '@tiptap/core' {
|
|
|
1792
1798
|
|
|
1793
1799
|
declare module '@tiptap/core' {
|
|
1794
1800
|
interface Commands<ReturnType> {
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
}) => ReturnType;
|
|
1801
|
+
search: {
|
|
1802
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1803
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1804
|
+
replace: () => ReturnType;
|
|
1805
|
+
replaceAll: () => ReturnType;
|
|
1806
|
+
goToPrevSearchResult: () => void;
|
|
1807
|
+
goToNextSearchResult: () => void;
|
|
1803
1808
|
};
|
|
1804
1809
|
}
|
|
1805
1810
|
}
|
|
@@ -1807,11 +1812,8 @@ declare module '@tiptap/core' {
|
|
|
1807
1812
|
|
|
1808
1813
|
declare module '@tiptap/core' {
|
|
1809
1814
|
interface Commands<ReturnType> {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
name: string;
|
|
1813
|
-
emoji: string;
|
|
1814
|
-
}) => ReturnType;
|
|
1815
|
+
katex: {
|
|
1816
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1815
1817
|
};
|
|
1816
1818
|
}
|
|
1817
1819
|
}
|
|
@@ -1819,13 +1821,8 @@ declare module '@tiptap/core' {
|
|
|
1819
1821
|
|
|
1820
1822
|
declare module '@tiptap/core' {
|
|
1821
1823
|
interface Commands<ReturnType> {
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1825
|
-
replace: () => ReturnType;
|
|
1826
|
-
replaceAll: () => ReturnType;
|
|
1827
|
-
goToPrevSearchResult: () => void;
|
|
1828
|
-
goToNextSearchResult: () => void;
|
|
1824
|
+
videoUpload: {
|
|
1825
|
+
setVideoUpload: () => ReturnType;
|
|
1829
1826
|
};
|
|
1830
1827
|
}
|
|
1831
1828
|
}
|
|
@@ -1833,8 +1830,11 @@ declare module '@tiptap/core' {
|
|
|
1833
1830
|
|
|
1834
1831
|
declare module '@tiptap/core' {
|
|
1835
1832
|
interface Commands<ReturnType> {
|
|
1836
|
-
|
|
1837
|
-
|
|
1833
|
+
emoji: {
|
|
1834
|
+
setEmoji: (emoji: {
|
|
1835
|
+
name: string;
|
|
1836
|
+
emoji: string;
|
|
1837
|
+
}) => ReturnType;
|
|
1838
1838
|
};
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|