reactjs-tiptap-editor 0.0.24 → 0.0.25
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 +49 -49
- package/lib/index.d.ts +49 -49
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -1677,11 +1677,6 @@ declare module '@tiptap/core' {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
|
|
1679
1679
|
|
|
1680
|
-
declare namespace DropdownMenuShortcut {
|
|
1681
|
-
var displayName: string;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
1680
|
declare module '@tiptap/core' {
|
|
1686
1681
|
interface Commands<ReturnType> {
|
|
1687
1682
|
fontSize: {
|
|
@@ -1700,6 +1695,16 @@ declare module '@tiptap/core' {
|
|
|
1700
1695
|
}
|
|
1701
1696
|
|
|
1702
1697
|
|
|
1698
|
+
declare module '@tiptap/core' {
|
|
1699
|
+
interface Commands<ReturnType> {
|
|
1700
|
+
lineHeight: {
|
|
1701
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1702
|
+
unsetLineHeight: () => ReturnType;
|
|
1703
|
+
};
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
|
|
1703
1708
|
declare module '@tiptap/core' {
|
|
1704
1709
|
interface Commands<ReturnType> {
|
|
1705
1710
|
indent: {
|
|
@@ -1718,9 +1723,9 @@ declare module '@tiptap/core' {
|
|
|
1718
1723
|
|
|
1719
1724
|
declare module '@tiptap/core' {
|
|
1720
1725
|
interface Commands<ReturnType> {
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1726
|
+
tableCellBackground: {
|
|
1727
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1728
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1724
1729
|
};
|
|
1725
1730
|
}
|
|
1726
1731
|
}
|
|
@@ -1728,15 +1733,8 @@ declare module '@tiptap/core' {
|
|
|
1728
1733
|
|
|
1729
1734
|
declare module '@tiptap/core' {
|
|
1730
1735
|
interface Commands<ReturnType> {
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
* Add an image
|
|
1734
|
-
*/
|
|
1735
|
-
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1736
|
-
/**
|
|
1737
|
-
* Update an image
|
|
1738
|
-
*/
|
|
1739
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1736
|
+
videoUpload: {
|
|
1737
|
+
setVideoUpload: () => ReturnType;
|
|
1740
1738
|
};
|
|
1741
1739
|
}
|
|
1742
1740
|
}
|
|
@@ -1753,11 +1751,15 @@ declare module '@tiptap/core' {
|
|
|
1753
1751
|
|
|
1754
1752
|
declare module '@tiptap/core' {
|
|
1755
1753
|
interface Commands<ReturnType> {
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1754
|
+
imageResize: {
|
|
1755
|
+
/**
|
|
1756
|
+
* Add an image
|
|
1757
|
+
*/
|
|
1758
|
+
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1759
|
+
/**
|
|
1760
|
+
* Update an image
|
|
1761
|
+
*/
|
|
1762
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1761
1763
|
};
|
|
1762
1764
|
}
|
|
1763
1765
|
}
|
|
@@ -1765,8 +1767,8 @@ declare module '@tiptap/core' {
|
|
|
1765
1767
|
|
|
1766
1768
|
declare module '@tiptap/core' {
|
|
1767
1769
|
interface Commands<ReturnType> {
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
+
painter: {
|
|
1771
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1770
1772
|
};
|
|
1771
1773
|
}
|
|
1772
1774
|
}
|
|
@@ -1788,9 +1790,14 @@ declare module '@tiptap/core' {
|
|
|
1788
1790
|
|
|
1789
1791
|
declare module '@tiptap/core' {
|
|
1790
1792
|
interface Commands<ReturnType> {
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1793
|
+
iframe: {
|
|
1794
|
+
/**
|
|
1795
|
+
* Add an iframe
|
|
1796
|
+
*/
|
|
1797
|
+
setIframe: (options: {
|
|
1798
|
+
src: string;
|
|
1799
|
+
service: string;
|
|
1800
|
+
}) => ReturnType;
|
|
1794
1801
|
};
|
|
1795
1802
|
}
|
|
1796
1803
|
}
|
|
@@ -1798,8 +1805,13 @@ declare module '@tiptap/core' {
|
|
|
1798
1805
|
|
|
1799
1806
|
declare module '@tiptap/core' {
|
|
1800
1807
|
interface Commands<ReturnType> {
|
|
1801
|
-
|
|
1802
|
-
|
|
1808
|
+
search: {
|
|
1809
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1810
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1811
|
+
replace: () => ReturnType;
|
|
1812
|
+
replaceAll: () => ReturnType;
|
|
1813
|
+
goToPrevSearchResult: () => void;
|
|
1814
|
+
goToNextSearchResult: () => void;
|
|
1803
1815
|
};
|
|
1804
1816
|
}
|
|
1805
1817
|
}
|
|
@@ -1807,8 +1819,8 @@ declare module '@tiptap/core' {
|
|
|
1807
1819
|
|
|
1808
1820
|
declare module '@tiptap/core' {
|
|
1809
1821
|
interface Commands<ReturnType> {
|
|
1810
|
-
|
|
1811
|
-
|
|
1822
|
+
katex: {
|
|
1823
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1812
1824
|
};
|
|
1813
1825
|
}
|
|
1814
1826
|
}
|
|
@@ -1816,13 +1828,10 @@ declare module '@tiptap/core' {
|
|
|
1816
1828
|
|
|
1817
1829
|
declare module '@tiptap/core' {
|
|
1818
1830
|
interface Commands<ReturnType> {
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
setIframe: (options: {
|
|
1824
|
-
src: string;
|
|
1825
|
-
service: string;
|
|
1831
|
+
emoji: {
|
|
1832
|
+
setEmoji: (emoji: {
|
|
1833
|
+
name: string;
|
|
1834
|
+
emoji: string;
|
|
1826
1835
|
}) => ReturnType;
|
|
1827
1836
|
};
|
|
1828
1837
|
}
|
|
@@ -1838,15 +1847,6 @@ declare module '@tiptap/core' {
|
|
|
1838
1847
|
}
|
|
1839
1848
|
|
|
1840
1849
|
|
|
1841
|
-
declare
|
|
1842
|
-
|
|
1843
|
-
search: {
|
|
1844
|
-
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1845
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1846
|
-
replace: () => ReturnType;
|
|
1847
|
-
replaceAll: () => ReturnType;
|
|
1848
|
-
goToPrevSearchResult: () => void;
|
|
1849
|
-
goToNextSearchResult: () => void;
|
|
1850
|
-
};
|
|
1851
|
-
}
|
|
1850
|
+
declare namespace DropdownMenuShortcut {
|
|
1851
|
+
var displayName: string;
|
|
1852
1852
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1677,11 +1677,6 @@ declare module '@tiptap/core' {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
|
|
1679
1679
|
|
|
1680
|
-
declare namespace DropdownMenuShortcut {
|
|
1681
|
-
var displayName: string;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
1680
|
declare module '@tiptap/core' {
|
|
1686
1681
|
interface Commands<ReturnType> {
|
|
1687
1682
|
fontSize: {
|
|
@@ -1700,6 +1695,16 @@ declare module '@tiptap/core' {
|
|
|
1700
1695
|
}
|
|
1701
1696
|
|
|
1702
1697
|
|
|
1698
|
+
declare module '@tiptap/core' {
|
|
1699
|
+
interface Commands<ReturnType> {
|
|
1700
|
+
lineHeight: {
|
|
1701
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1702
|
+
unsetLineHeight: () => ReturnType;
|
|
1703
|
+
};
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
|
|
1703
1708
|
declare module '@tiptap/core' {
|
|
1704
1709
|
interface Commands<ReturnType> {
|
|
1705
1710
|
indent: {
|
|
@@ -1718,9 +1723,9 @@ declare module '@tiptap/core' {
|
|
|
1718
1723
|
|
|
1719
1724
|
declare module '@tiptap/core' {
|
|
1720
1725
|
interface Commands<ReturnType> {
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1726
|
+
tableCellBackground: {
|
|
1727
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1728
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1724
1729
|
};
|
|
1725
1730
|
}
|
|
1726
1731
|
}
|
|
@@ -1728,15 +1733,8 @@ declare module '@tiptap/core' {
|
|
|
1728
1733
|
|
|
1729
1734
|
declare module '@tiptap/core' {
|
|
1730
1735
|
interface Commands<ReturnType> {
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
* Add an image
|
|
1734
|
-
*/
|
|
1735
|
-
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1736
|
-
/**
|
|
1737
|
-
* Update an image
|
|
1738
|
-
*/
|
|
1739
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1736
|
+
videoUpload: {
|
|
1737
|
+
setVideoUpload: () => ReturnType;
|
|
1740
1738
|
};
|
|
1741
1739
|
}
|
|
1742
1740
|
}
|
|
@@ -1753,11 +1751,15 @@ declare module '@tiptap/core' {
|
|
|
1753
1751
|
|
|
1754
1752
|
declare module '@tiptap/core' {
|
|
1755
1753
|
interface Commands<ReturnType> {
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1754
|
+
imageResize: {
|
|
1755
|
+
/**
|
|
1756
|
+
* Add an image
|
|
1757
|
+
*/
|
|
1758
|
+
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1759
|
+
/**
|
|
1760
|
+
* Update an image
|
|
1761
|
+
*/
|
|
1762
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1761
1763
|
};
|
|
1762
1764
|
}
|
|
1763
1765
|
}
|
|
@@ -1765,8 +1767,8 @@ declare module '@tiptap/core' {
|
|
|
1765
1767
|
|
|
1766
1768
|
declare module '@tiptap/core' {
|
|
1767
1769
|
interface Commands<ReturnType> {
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
+
painter: {
|
|
1771
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1770
1772
|
};
|
|
1771
1773
|
}
|
|
1772
1774
|
}
|
|
@@ -1788,9 +1790,14 @@ declare module '@tiptap/core' {
|
|
|
1788
1790
|
|
|
1789
1791
|
declare module '@tiptap/core' {
|
|
1790
1792
|
interface Commands<ReturnType> {
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1793
|
+
iframe: {
|
|
1794
|
+
/**
|
|
1795
|
+
* Add an iframe
|
|
1796
|
+
*/
|
|
1797
|
+
setIframe: (options: {
|
|
1798
|
+
src: string;
|
|
1799
|
+
service: string;
|
|
1800
|
+
}) => ReturnType;
|
|
1794
1801
|
};
|
|
1795
1802
|
}
|
|
1796
1803
|
}
|
|
@@ -1798,8 +1805,13 @@ declare module '@tiptap/core' {
|
|
|
1798
1805
|
|
|
1799
1806
|
declare module '@tiptap/core' {
|
|
1800
1807
|
interface Commands<ReturnType> {
|
|
1801
|
-
|
|
1802
|
-
|
|
1808
|
+
search: {
|
|
1809
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1810
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1811
|
+
replace: () => ReturnType;
|
|
1812
|
+
replaceAll: () => ReturnType;
|
|
1813
|
+
goToPrevSearchResult: () => void;
|
|
1814
|
+
goToNextSearchResult: () => void;
|
|
1803
1815
|
};
|
|
1804
1816
|
}
|
|
1805
1817
|
}
|
|
@@ -1807,8 +1819,8 @@ declare module '@tiptap/core' {
|
|
|
1807
1819
|
|
|
1808
1820
|
declare module '@tiptap/core' {
|
|
1809
1821
|
interface Commands<ReturnType> {
|
|
1810
|
-
|
|
1811
|
-
|
|
1822
|
+
katex: {
|
|
1823
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1812
1824
|
};
|
|
1813
1825
|
}
|
|
1814
1826
|
}
|
|
@@ -1816,13 +1828,10 @@ declare module '@tiptap/core' {
|
|
|
1816
1828
|
|
|
1817
1829
|
declare module '@tiptap/core' {
|
|
1818
1830
|
interface Commands<ReturnType> {
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
setIframe: (options: {
|
|
1824
|
-
src: string;
|
|
1825
|
-
service: string;
|
|
1831
|
+
emoji: {
|
|
1832
|
+
setEmoji: (emoji: {
|
|
1833
|
+
name: string;
|
|
1834
|
+
emoji: string;
|
|
1826
1835
|
}) => ReturnType;
|
|
1827
1836
|
};
|
|
1828
1837
|
}
|
|
@@ -1838,15 +1847,6 @@ declare module '@tiptap/core' {
|
|
|
1838
1847
|
}
|
|
1839
1848
|
|
|
1840
1849
|
|
|
1841
|
-
declare
|
|
1842
|
-
|
|
1843
|
-
search: {
|
|
1844
|
-
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1845
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1846
|
-
replace: () => ReturnType;
|
|
1847
|
-
replaceAll: () => ReturnType;
|
|
1848
|
-
goToPrevSearchResult: () => void;
|
|
1849
|
-
goToNextSearchResult: () => void;
|
|
1850
|
-
};
|
|
1851
|
-
}
|
|
1850
|
+
declare namespace DropdownMenuShortcut {
|
|
1851
|
+
var displayName: string;
|
|
1852
1852
|
}
|