reactjs-tiptap-editor 0.2.29 → 0.3.0
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/ActionMenuButton-Bycn676n.js +33 -0
- package/lib/ActionMenuButton-CpFNwSUZ.cjs +1 -0
- package/lib/Attachment.cjs +19 -0
- package/lib/Attachment.d.cts +344 -0
- package/lib/Attachment.d.ts +344 -0
- package/lib/Attachment.js +259 -0
- package/lib/Blockquote.cjs +1 -0
- package/lib/Blockquote.d.cts +343 -0
- package/lib/Blockquote.d.ts +343 -0
- package/lib/Blockquote.js +65 -0
- package/lib/Bold.cjs +1 -0
- package/lib/Bold.d.cts +343 -0
- package/lib/Bold.d.ts +343 -0
- package/lib/Bold.js +90 -0
- package/lib/BulletList.cjs +1 -0
- package/lib/BulletList.d.cts +343 -0
- package/lib/BulletList.d.ts +343 -0
- package/lib/BulletList.js +72 -0
- package/lib/Clear.cjs +1 -0
- package/lib/Clear.d.cts +342 -0
- package/lib/Clear.d.ts +342 -0
- package/lib/Clear.js +23 -0
- package/lib/Code.cjs +1 -0
- package/lib/Code.d.cts +343 -0
- package/lib/Code.d.ts +343 -0
- package/lib/Code.js +70 -0
- package/lib/CodeBlock.cjs +39 -0
- package/lib/CodeBlock.d.cts +352 -0
- package/lib/CodeBlock.d.ts +352 -0
- package/lib/CodeBlock.js +3639 -0
- package/lib/Color.cjs +1 -0
- package/lib/Color.d.cts +350 -0
- package/lib/Color.d.ts +350 -0
- package/lib/Color.js +141 -0
- package/lib/Document.cjs +1 -0
- package/lib/Document.d.cts +272 -0
- package/lib/Document.d.ts +272 -0
- package/lib/Document.js +13 -0
- package/lib/Drawer-BZadE1gM.js +1367 -0
- package/lib/Drawer-rwnFvgZR.cjs +1 -0
- package/lib/Drawer.cjs +1 -0
- package/lib/Drawer.d.cts +344 -0
- package/lib/Drawer.d.ts +344 -0
- package/lib/Drawer.js +7 -0
- package/lib/Emoji.cjs +1 -0
- package/lib/Emoji.d.cts +277 -0
- package/lib/Emoji.d.ts +277 -0
- package/lib/Emoji.js +2168 -0
- package/lib/Excalidraw-B2414Smc.js +651 -0
- package/lib/Excalidraw-D21vMFe0.cjs +1 -0
- package/lib/Excalidraw.cjs +1 -0
- package/lib/Excalidraw.d.cts +278 -0
- package/lib/Excalidraw.d.ts +278 -0
- package/lib/Excalidraw.js +6 -0
- package/lib/ExportPdf.cjs +15 -0
- package/lib/ExportPdf.d.cts +270 -0
- package/lib/ExportPdf.d.ts +270 -0
- package/lib/ExportPdf.js +67 -0
- package/lib/ExportWord.cjs +1 -0
- package/lib/ExportWord.d.cts +341 -0
- package/lib/ExportWord.d.ts +341 -0
- package/lib/ExportWord.js +72 -0
- package/lib/FontFamily.cjs +1 -0
- package/lib/FontFamily.d.cts +354 -0
- package/lib/FontFamily.d.ts +354 -0
- package/lib/FontFamily.js +136 -0
- package/lib/FontSize.cjs +1 -0
- package/lib/FontSize.d.cts +359 -0
- package/lib/FontSize.d.ts +359 -0
- package/lib/FontSize.js +110 -0
- package/lib/FormatPainter.cjs +1 -0
- package/lib/FormatPainter.d.cts +353 -0
- package/lib/FormatPainter.d.ts +353 -0
- package/lib/FormatPainter.js +74 -0
- package/lib/Heading.cjs +1 -0
- package/lib/Heading.d.cts +343 -0
- package/lib/Heading.d.ts +343 -0
- package/lib/Heading.js +147 -0
- package/lib/Highlight.cjs +1 -0
- package/lib/Highlight.d.cts +344 -0
- package/lib/Highlight.d.ts +344 -0
- package/lib/Highlight.js +85 -0
- package/lib/History.cjs +1 -0
- package/lib/History.d.cts +343 -0
- package/lib/History.d.ts +343 -0
- package/lib/History.js +431 -0
- package/lib/HorizontalRule.cjs +1 -0
- package/lib/HorizontalRule.d.cts +343 -0
- package/lib/HorizontalRule.d.ts +343 -0
- package/lib/HorizontalRule.js +87 -0
- package/lib/Iframe.cjs +1 -0
- package/lib/Iframe.d.cts +277 -0
- package/lib/Iframe.d.ts +277 -0
- package/lib/Iframe.js +6 -0
- package/lib/Image.cjs +1 -0
- package/lib/Image.d.cts +370 -0
- package/lib/Image.d.ts +370 -0
- package/lib/Image.js +7 -0
- package/lib/ImageGif.cjs +1 -0
- package/lib/ImageGif.d.cts +292 -0
- package/lib/ImageGif.d.ts +292 -0
- package/lib/ImageGif.js +7 -0
- package/lib/ImportWord.cjs +231 -0
- package/lib/ImportWord.d.cts +353 -0
- package/lib/ImportWord.d.ts +353 -0
- package/lib/ImportWord.js +16620 -0
- package/lib/Indent.cjs +1 -0
- package/lib/Indent.d.cts +344 -0
- package/lib/Indent.d.ts +344 -0
- package/lib/Indent.js +78 -0
- package/lib/Italic.cjs +1 -0
- package/lib/Italic.d.cts +343 -0
- package/lib/Italic.d.ts +343 -0
- package/lib/Italic.js +91 -0
- package/lib/Katex.cjs +1 -0
- package/lib/Katex.d.cts +279 -0
- package/lib/Katex.d.ts +279 -0
- package/lib/Katex.js +197 -0
- package/lib/LineHeight.cjs +1 -0
- package/lib/LineHeight.d.cts +347 -0
- package/lib/LineHeight.d.ts +347 -0
- package/lib/LineHeight.js +137 -0
- package/lib/Link.cjs +5 -0
- package/lib/Link.d.cts +343 -0
- package/lib/Link.d.ts +343 -0
- package/lib/Link.js +1048 -0
- package/lib/ListItem.cjs +1 -0
- package/lib/ListItem.d.cts +269 -0
- package/lib/ListItem.d.ts +269 -0
- package/lib/ListItem.js +33 -0
- package/lib/Mention.cjs +1 -0
- package/lib/Mention.d.cts +272 -0
- package/lib/Mention.d.ts +272 -0
- package/lib/Mention.js +233 -0
- package/lib/Mermaid.cjs +2 -0
- package/lib/Mermaid.d.cts +344 -0
- package/lib/Mermaid.d.ts +344 -0
- package/lib/Mermaid.js +390 -0
- package/lib/MoreMark.cjs +1 -0
- package/lib/MoreMark.d.cts +355 -0
- package/lib/MoreMark.d.ts +355 -0
- package/lib/MoreMark.js +95 -0
- package/lib/MultiColumn.cjs +1 -0
- package/lib/MultiColumn.d.cts +277 -0
- package/lib/MultiColumn.d.ts +277 -0
- package/lib/MultiColumn.js +8 -0
- package/lib/OrderedList.cjs +1 -0
- package/lib/OrderedList.d.cts +343 -0
- package/lib/OrderedList.d.ts +343 -0
- package/lib/OrderedList.js +90 -0
- package/lib/RichTextEditor-Cy9XKEI5.js +11178 -0
- package/lib/RichTextEditor-DkpDEr5U.cjs +137 -0
- package/lib/SearchAndReplace.cjs +1 -0
- package/lib/SearchAndReplace.d.cts +358 -0
- package/lib/SearchAndReplace.d.ts +358 -0
- package/lib/SearchAndReplace.js +339 -0
- package/lib/Selection.cjs +1 -0
- package/lib/Selection.d.cts +272 -0
- package/lib/Selection.d.ts +272 -0
- package/lib/Selection.js +25 -0
- package/lib/SlashCommand.cjs +1 -0
- package/lib/SlashCommand.d.cts +299 -0
- package/lib/SlashCommand.d.ts +299 -0
- package/lib/SlashCommand.js +369 -0
- package/lib/Strike.cjs +1 -0
- package/lib/Strike.d.cts +343 -0
- package/lib/Strike.d.ts +343 -0
- package/lib/Strike.js +80 -0
- package/lib/SubAndSuperScript.cjs +1 -0
- package/lib/SubAndSuperScript.d.cts +358 -0
- package/lib/SubAndSuperScript.d.ts +358 -0
- package/lib/SubAndSuperScript.js +41 -0
- package/lib/Table.cjs +1 -0
- package/lib/Table.d.cts +366 -0
- package/lib/Table.d.ts +366 -0
- package/lib/Table.js +2165 -0
- package/lib/TableOfContent.cjs +1 -0
- package/lib/TableOfContent.d.cts +274 -0
- package/lib/TableOfContent.d.ts +274 -0
- package/lib/TableOfContent.js +184 -0
- package/lib/TaskList.cjs +1 -0
- package/lib/TaskList.d.cts +349 -0
- package/lib/TaskList.d.ts +349 -0
- package/lib/TaskList.js +175 -0
- package/lib/TextAlign.cjs +1 -0
- package/lib/TextAlign.d.cts +353 -0
- package/lib/TextAlign.d.ts +353 -0
- package/lib/TextAlign.js +165 -0
- package/lib/TextBubble.cjs +1 -0
- package/lib/TextBubble.d.cts +343 -0
- package/lib/TextBubble.d.ts +343 -0
- package/lib/TextBubble.js +131 -0
- package/lib/TextDirection.cjs +1 -0
- package/lib/TextDirection.d.cts +270 -0
- package/lib/TextDirection.d.ts +270 -0
- package/lib/TextDirection.js +142 -0
- package/lib/TextUnderline.cjs +1 -0
- package/lib/TextUnderline.d.cts +343 -0
- package/lib/TextUnderline.d.ts +343 -0
- package/lib/TextUnderline.js +61 -0
- package/lib/TrailingNode.cjs +1 -0
- package/lib/TrailingNode.d.cts +280 -0
- package/lib/TrailingNode.d.ts +280 -0
- package/lib/TrailingNode.js +41 -0
- package/lib/Twitter-B_tSItrW.js +1743 -0
- package/lib/Twitter-CfDC4bFV.cjs +17 -0
- package/lib/Twitter.cjs +1 -0
- package/lib/Twitter.d.cts +295 -0
- package/lib/Twitter.d.ts +295 -0
- package/lib/Twitter.js +6 -0
- package/lib/Video.cjs +1 -0
- package/lib/Video.d.cts +371 -0
- package/lib/Video.d.ts +371 -0
- package/lib/Video.js +6 -0
- package/lib/bubble-extra.cjs +2 -0
- package/lib/bubble-extra.d.cts +294 -0
- package/lib/bubble-extra.d.ts +294 -0
- package/lib/bubble-extra.js +623 -0
- package/lib/dom-dataset-CAXnsjYE.cjs +33 -0
- package/lib/dom-dataset-CJ7GyQ2E.js +999 -0
- package/lib/index-COecBbaE.cjs +89 -0
- package/lib/index-ClFtfQ0J.cjs +1 -0
- package/lib/index-CvYIX2-x.js +129 -0
- package/lib/index-CySbCeQd.cjs +1 -0
- package/lib/{index-CO-iymkb.js → index-D9llIWB5.js} +442 -101
- package/lib/index-DXBa3JBo.js +46 -0
- package/lib/index-DjP7Onch.cjs +1 -0
- package/lib/index-Drmyqk9P.js +12322 -0
- package/lib/index-DuhDIOel.js +76 -0
- package/lib/index-LbrE7K9i.cjs +1 -0
- package/lib/index.cjs +2 -1
- package/lib/index.d.cts +290 -108
- package/lib/index.d.ts +290 -108
- package/lib/index.js +587 -13
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +108 -108
- package/lib/locale-bundle.d.ts +108 -108
- package/lib/locale-bundle.js +1 -1
- package/lib/shortId-Bfj8TyNr.cjs +2 -0
- package/lib/shortId-WJVkrvml.js +30 -0
- package/lib/style.css +1 -1
- package/lib/textarea-B45fP3gP.cjs +1 -0
- package/lib/textarea-DXTdXr2y.js +20 -0
- package/package.json +678 -15
- package/lib/RichTextEditor-Ce2IeNE6.js +0 -8265
- package/lib/RichTextEditor-hDDApaDD.cjs +0 -136
- package/lib/extension-bundle.cjs +0 -33
- package/lib/extension-bundle.d.cts +0 -951
- package/lib/extension-bundle.d.ts +0 -951
- package/lib/extension-bundle.js +0 -5982
- package/lib/index-CJ6Hb9MN.cjs +0 -1
- package/lib/tiptap-DOP8lVCQ.js +0 -5950
- package/lib/tiptap-Dq62HiQ9.cjs +0 -113
- package/lib/vendor-BbgkyoD-.js +0 -40297
- package/lib/vendor-DdwtMmSr.cjs +0 -302
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -886,15 +886,8 @@ export { }
|
|
|
886
886
|
|
|
887
887
|
declare module '@tiptap/core' {
|
|
888
888
|
interface Commands<ReturnType> {
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
* Add an video
|
|
892
|
-
*/
|
|
893
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
894
|
-
/**
|
|
895
|
-
* Update an video
|
|
896
|
-
*/
|
|
897
|
-
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
889
|
+
attachment: {
|
|
890
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
898
891
|
};
|
|
899
892
|
}
|
|
900
893
|
}
|
|
@@ -911,17 +904,8 @@ declare module '@tiptap/core' {
|
|
|
911
904
|
|
|
912
905
|
declare module '@tiptap/core' {
|
|
913
906
|
interface Commands<ReturnType> {
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
917
|
-
* CSS font-size
|
|
918
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
919
|
-
*/
|
|
920
|
-
setFontSize: (fontSize: string) => ReturnType;
|
|
921
|
-
/**
|
|
922
|
-
* Unset the font size
|
|
923
|
-
*/
|
|
924
|
-
unsetFontSize: () => ReturnType;
|
|
907
|
+
excalidraw: {
|
|
908
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
925
909
|
};
|
|
926
910
|
}
|
|
927
911
|
}
|
|
@@ -929,9 +913,11 @@ declare module '@tiptap/core' {
|
|
|
929
913
|
|
|
930
914
|
declare module '@tiptap/core' {
|
|
931
915
|
interface Commands<ReturnType> {
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
916
|
+
emoji: {
|
|
917
|
+
setEmoji: (emoji: {
|
|
918
|
+
name: string;
|
|
919
|
+
emoji: string;
|
|
920
|
+
}) => ReturnType;
|
|
935
921
|
};
|
|
936
922
|
}
|
|
937
923
|
}
|
|
@@ -939,15 +925,9 @@ declare module '@tiptap/core' {
|
|
|
939
925
|
|
|
940
926
|
declare module '@tiptap/core' {
|
|
941
927
|
interface Commands<ReturnType> {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
*/
|
|
946
|
-
indent: () => ReturnType;
|
|
947
|
-
/**
|
|
948
|
-
* Set the outdent attribute
|
|
949
|
-
*/
|
|
950
|
-
outdent: () => ReturnType;
|
|
928
|
+
drawer: {
|
|
929
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
930
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
951
931
|
};
|
|
952
932
|
}
|
|
953
933
|
}
|
|
@@ -955,19 +935,8 @@ declare module '@tiptap/core' {
|
|
|
955
935
|
|
|
956
936
|
declare module '@tiptap/core' {
|
|
957
937
|
interface Commands<ReturnType> {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
* Add an image
|
|
961
|
-
*/
|
|
962
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
963
|
-
/**
|
|
964
|
-
* Update an image
|
|
965
|
-
*/
|
|
966
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
967
|
-
/**
|
|
968
|
-
* Set image alignment
|
|
969
|
-
*/
|
|
970
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
938
|
+
exportWord: {
|
|
939
|
+
exportToWord: () => ReturnType;
|
|
971
940
|
};
|
|
972
941
|
}
|
|
973
942
|
}
|
|
@@ -975,13 +944,17 @@ declare module '@tiptap/core' {
|
|
|
975
944
|
|
|
976
945
|
declare module '@tiptap/core' {
|
|
977
946
|
interface Commands<ReturnType> {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
947
|
+
fontSize: {
|
|
948
|
+
/**
|
|
949
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
950
|
+
* CSS font-size
|
|
951
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
952
|
+
*/
|
|
953
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
954
|
+
/**
|
|
955
|
+
* Unset the font size
|
|
956
|
+
*/
|
|
957
|
+
unsetFontSize: () => ReturnType;
|
|
985
958
|
};
|
|
986
959
|
}
|
|
987
960
|
}
|
|
@@ -989,9 +962,8 @@ declare module '@tiptap/core' {
|
|
|
989
962
|
|
|
990
963
|
declare module '@tiptap/core' {
|
|
991
964
|
interface Commands<ReturnType> {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
unsetTableCellBackground: () => ReturnType;
|
|
965
|
+
painter: {
|
|
966
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
995
967
|
};
|
|
996
968
|
}
|
|
997
969
|
}
|
|
@@ -1014,14 +986,19 @@ declare module '@tiptap/core' {
|
|
|
1014
986
|
|
|
1015
987
|
declare module '@tiptap/core' {
|
|
1016
988
|
interface Commands<ReturnType> {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
989
|
+
imageUpload: {
|
|
990
|
+
/**
|
|
991
|
+
* Add an image
|
|
992
|
+
*/
|
|
993
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
994
|
+
/**
|
|
995
|
+
* Update an image
|
|
996
|
+
*/
|
|
997
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
998
|
+
/**
|
|
999
|
+
* Set image alignment
|
|
1000
|
+
*/
|
|
1001
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1025
1002
|
};
|
|
1026
1003
|
}
|
|
1027
1004
|
}
|
|
@@ -1029,8 +1006,19 @@ declare module '@tiptap/core' {
|
|
|
1029
1006
|
|
|
1030
1007
|
declare module '@tiptap/core' {
|
|
1031
1008
|
interface Commands<ReturnType> {
|
|
1032
|
-
|
|
1033
|
-
|
|
1009
|
+
imageGifUpload: {
|
|
1010
|
+
/**
|
|
1011
|
+
* Add an image gif
|
|
1012
|
+
*/
|
|
1013
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1014
|
+
/**
|
|
1015
|
+
* Update an image gif
|
|
1016
|
+
*/
|
|
1017
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1018
|
+
/**
|
|
1019
|
+
* Set image alignment
|
|
1020
|
+
*/
|
|
1021
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1034
1022
|
};
|
|
1035
1023
|
}
|
|
1036
1024
|
}
|
|
@@ -1038,8 +1026,15 @@ declare module '@tiptap/core' {
|
|
|
1038
1026
|
|
|
1039
1027
|
declare module '@tiptap/core' {
|
|
1040
1028
|
interface Commands<ReturnType> {
|
|
1041
|
-
|
|
1042
|
-
|
|
1029
|
+
indent: {
|
|
1030
|
+
/**
|
|
1031
|
+
* Set the indent attribute
|
|
1032
|
+
*/
|
|
1033
|
+
indent: () => ReturnType;
|
|
1034
|
+
/**
|
|
1035
|
+
* Set the outdent attribute
|
|
1036
|
+
*/
|
|
1037
|
+
outdent: () => ReturnType;
|
|
1043
1038
|
};
|
|
1044
1039
|
}
|
|
1045
1040
|
}
|
|
@@ -1047,8 +1042,8 @@ declare module '@tiptap/core' {
|
|
|
1047
1042
|
|
|
1048
1043
|
declare module '@tiptap/core' {
|
|
1049
1044
|
interface Commands<ReturnType> {
|
|
1050
|
-
|
|
1051
|
-
|
|
1045
|
+
katex: {
|
|
1046
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1052
1047
|
};
|
|
1053
1048
|
}
|
|
1054
1049
|
}
|
|
@@ -1056,9 +1051,9 @@ declare module '@tiptap/core' {
|
|
|
1056
1051
|
|
|
1057
1052
|
declare module '@tiptap/core' {
|
|
1058
1053
|
interface Commands<ReturnType> {
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1054
|
+
lineHeight: {
|
|
1055
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1056
|
+
unsetLineHeight: () => ReturnType;
|
|
1062
1057
|
};
|
|
1063
1058
|
}
|
|
1064
1059
|
}
|
|
@@ -1066,11 +1061,9 @@ declare module '@tiptap/core' {
|
|
|
1066
1061
|
|
|
1067
1062
|
declare module '@tiptap/core' {
|
|
1068
1063
|
interface Commands<ReturnType> {
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
emoji: string;
|
|
1073
|
-
}) => ReturnType;
|
|
1064
|
+
mermaid: {
|
|
1065
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1066
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1074
1067
|
};
|
|
1075
1068
|
}
|
|
1076
1069
|
}
|
|
@@ -1078,8 +1071,13 @@ declare module '@tiptap/core' {
|
|
|
1078
1071
|
|
|
1079
1072
|
declare module '@tiptap/core' {
|
|
1080
1073
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1074
|
+
columns: {
|
|
1075
|
+
insertColumns: (attrs?: {
|
|
1076
|
+
cols: number;
|
|
1077
|
+
}) => ReturnType;
|
|
1078
|
+
addColBefore: () => ReturnType;
|
|
1079
|
+
addColAfter: () => ReturnType;
|
|
1080
|
+
deleteCol: () => ReturnType;
|
|
1083
1081
|
};
|
|
1084
1082
|
}
|
|
1085
1083
|
}
|
|
@@ -1087,19 +1085,14 @@ declare module '@tiptap/core' {
|
|
|
1087
1085
|
|
|
1088
1086
|
declare module '@tiptap/core' {
|
|
1089
1087
|
interface Commands<ReturnType> {
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1099
|
-
/**
|
|
1100
|
-
* Set image alignment
|
|
1101
|
-
*/
|
|
1102
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1088
|
+
search: {
|
|
1089
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1090
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1091
|
+
replace: () => ReturnType;
|
|
1092
|
+
replaceAll: () => ReturnType;
|
|
1093
|
+
goToPrevSearchResult: () => void;
|
|
1094
|
+
goToNextSearchResult: () => void;
|
|
1095
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1103
1096
|
};
|
|
1104
1097
|
}
|
|
1105
1098
|
}
|
|
@@ -1107,8 +1100,9 @@ declare module '@tiptap/core' {
|
|
|
1107
1100
|
|
|
1108
1101
|
declare module '@tiptap/core' {
|
|
1109
1102
|
interface Commands<ReturnType> {
|
|
1110
|
-
|
|
1111
|
-
|
|
1103
|
+
tableOfContents: {
|
|
1104
|
+
setTableOfContents: () => ReturnType;
|
|
1105
|
+
removeTableOfContents: () => ReturnType;
|
|
1112
1106
|
};
|
|
1113
1107
|
}
|
|
1114
1108
|
}
|
|
@@ -1116,9 +1110,14 @@ declare module '@tiptap/core' {
|
|
|
1116
1110
|
|
|
1117
1111
|
declare module '@tiptap/core' {
|
|
1118
1112
|
interface Commands<ReturnType> {
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1113
|
+
twitter: {
|
|
1114
|
+
/**
|
|
1115
|
+
* Insert a tweet
|
|
1116
|
+
* @param options The tweet attributes
|
|
1117
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1118
|
+
*/
|
|
1119
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1120
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1122
1121
|
};
|
|
1123
1122
|
}
|
|
1124
1123
|
}
|
|
@@ -1126,9 +1125,15 @@ declare module '@tiptap/core' {
|
|
|
1126
1125
|
|
|
1127
1126
|
declare module '@tiptap/core' {
|
|
1128
1127
|
interface Commands<ReturnType> {
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1128
|
+
video: {
|
|
1129
|
+
/**
|
|
1130
|
+
* Add an video
|
|
1131
|
+
*/
|
|
1132
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
1133
|
+
/**
|
|
1134
|
+
* Update an video
|
|
1135
|
+
*/
|
|
1136
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
1132
1137
|
};
|
|
1133
1138
|
}
|
|
1134
1139
|
}
|
|
@@ -1136,14 +1141,9 @@ declare module '@tiptap/core' {
|
|
|
1136
1141
|
|
|
1137
1142
|
declare module '@tiptap/core' {
|
|
1138
1143
|
interface Commands<ReturnType> {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
* @param options The tweet attributes
|
|
1143
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1144
|
-
*/
|
|
1145
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1146
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1144
|
+
tableCellBackground: {
|
|
1145
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1146
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1147
1147
|
};
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -886,15 +886,8 @@ export { }
|
|
|
886
886
|
|
|
887
887
|
declare module '@tiptap/core' {
|
|
888
888
|
interface Commands<ReturnType> {
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
* Add an video
|
|
892
|
-
*/
|
|
893
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
894
|
-
/**
|
|
895
|
-
* Update an video
|
|
896
|
-
*/
|
|
897
|
-
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
889
|
+
attachment: {
|
|
890
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
898
891
|
};
|
|
899
892
|
}
|
|
900
893
|
}
|
|
@@ -911,17 +904,8 @@ declare module '@tiptap/core' {
|
|
|
911
904
|
|
|
912
905
|
declare module '@tiptap/core' {
|
|
913
906
|
interface Commands<ReturnType> {
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
917
|
-
* CSS font-size
|
|
918
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
919
|
-
*/
|
|
920
|
-
setFontSize: (fontSize: string) => ReturnType;
|
|
921
|
-
/**
|
|
922
|
-
* Unset the font size
|
|
923
|
-
*/
|
|
924
|
-
unsetFontSize: () => ReturnType;
|
|
907
|
+
excalidraw: {
|
|
908
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
925
909
|
};
|
|
926
910
|
}
|
|
927
911
|
}
|
|
@@ -929,9 +913,11 @@ declare module '@tiptap/core' {
|
|
|
929
913
|
|
|
930
914
|
declare module '@tiptap/core' {
|
|
931
915
|
interface Commands<ReturnType> {
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
916
|
+
emoji: {
|
|
917
|
+
setEmoji: (emoji: {
|
|
918
|
+
name: string;
|
|
919
|
+
emoji: string;
|
|
920
|
+
}) => ReturnType;
|
|
935
921
|
};
|
|
936
922
|
}
|
|
937
923
|
}
|
|
@@ -939,15 +925,9 @@ declare module '@tiptap/core' {
|
|
|
939
925
|
|
|
940
926
|
declare module '@tiptap/core' {
|
|
941
927
|
interface Commands<ReturnType> {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
*/
|
|
946
|
-
indent: () => ReturnType;
|
|
947
|
-
/**
|
|
948
|
-
* Set the outdent attribute
|
|
949
|
-
*/
|
|
950
|
-
outdent: () => ReturnType;
|
|
928
|
+
drawer: {
|
|
929
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
930
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
951
931
|
};
|
|
952
932
|
}
|
|
953
933
|
}
|
|
@@ -955,19 +935,8 @@ declare module '@tiptap/core' {
|
|
|
955
935
|
|
|
956
936
|
declare module '@tiptap/core' {
|
|
957
937
|
interface Commands<ReturnType> {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
* Add an image
|
|
961
|
-
*/
|
|
962
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
963
|
-
/**
|
|
964
|
-
* Update an image
|
|
965
|
-
*/
|
|
966
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
967
|
-
/**
|
|
968
|
-
* Set image alignment
|
|
969
|
-
*/
|
|
970
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
938
|
+
exportWord: {
|
|
939
|
+
exportToWord: () => ReturnType;
|
|
971
940
|
};
|
|
972
941
|
}
|
|
973
942
|
}
|
|
@@ -975,13 +944,17 @@ declare module '@tiptap/core' {
|
|
|
975
944
|
|
|
976
945
|
declare module '@tiptap/core' {
|
|
977
946
|
interface Commands<ReturnType> {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
947
|
+
fontSize: {
|
|
948
|
+
/**
|
|
949
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
950
|
+
* CSS font-size
|
|
951
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
952
|
+
*/
|
|
953
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
954
|
+
/**
|
|
955
|
+
* Unset the font size
|
|
956
|
+
*/
|
|
957
|
+
unsetFontSize: () => ReturnType;
|
|
985
958
|
};
|
|
986
959
|
}
|
|
987
960
|
}
|
|
@@ -989,9 +962,8 @@ declare module '@tiptap/core' {
|
|
|
989
962
|
|
|
990
963
|
declare module '@tiptap/core' {
|
|
991
964
|
interface Commands<ReturnType> {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
unsetTableCellBackground: () => ReturnType;
|
|
965
|
+
painter: {
|
|
966
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
995
967
|
};
|
|
996
968
|
}
|
|
997
969
|
}
|
|
@@ -1014,14 +986,19 @@ declare module '@tiptap/core' {
|
|
|
1014
986
|
|
|
1015
987
|
declare module '@tiptap/core' {
|
|
1016
988
|
interface Commands<ReturnType> {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
989
|
+
imageUpload: {
|
|
990
|
+
/**
|
|
991
|
+
* Add an image
|
|
992
|
+
*/
|
|
993
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
994
|
+
/**
|
|
995
|
+
* Update an image
|
|
996
|
+
*/
|
|
997
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
998
|
+
/**
|
|
999
|
+
* Set image alignment
|
|
1000
|
+
*/
|
|
1001
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1025
1002
|
};
|
|
1026
1003
|
}
|
|
1027
1004
|
}
|
|
@@ -1029,8 +1006,19 @@ declare module '@tiptap/core' {
|
|
|
1029
1006
|
|
|
1030
1007
|
declare module '@tiptap/core' {
|
|
1031
1008
|
interface Commands<ReturnType> {
|
|
1032
|
-
|
|
1033
|
-
|
|
1009
|
+
imageGifUpload: {
|
|
1010
|
+
/**
|
|
1011
|
+
* Add an image gif
|
|
1012
|
+
*/
|
|
1013
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1014
|
+
/**
|
|
1015
|
+
* Update an image gif
|
|
1016
|
+
*/
|
|
1017
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1018
|
+
/**
|
|
1019
|
+
* Set image alignment
|
|
1020
|
+
*/
|
|
1021
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1034
1022
|
};
|
|
1035
1023
|
}
|
|
1036
1024
|
}
|
|
@@ -1038,8 +1026,15 @@ declare module '@tiptap/core' {
|
|
|
1038
1026
|
|
|
1039
1027
|
declare module '@tiptap/core' {
|
|
1040
1028
|
interface Commands<ReturnType> {
|
|
1041
|
-
|
|
1042
|
-
|
|
1029
|
+
indent: {
|
|
1030
|
+
/**
|
|
1031
|
+
* Set the indent attribute
|
|
1032
|
+
*/
|
|
1033
|
+
indent: () => ReturnType;
|
|
1034
|
+
/**
|
|
1035
|
+
* Set the outdent attribute
|
|
1036
|
+
*/
|
|
1037
|
+
outdent: () => ReturnType;
|
|
1043
1038
|
};
|
|
1044
1039
|
}
|
|
1045
1040
|
}
|
|
@@ -1047,8 +1042,8 @@ declare module '@tiptap/core' {
|
|
|
1047
1042
|
|
|
1048
1043
|
declare module '@tiptap/core' {
|
|
1049
1044
|
interface Commands<ReturnType> {
|
|
1050
|
-
|
|
1051
|
-
|
|
1045
|
+
katex: {
|
|
1046
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1052
1047
|
};
|
|
1053
1048
|
}
|
|
1054
1049
|
}
|
|
@@ -1056,9 +1051,9 @@ declare module '@tiptap/core' {
|
|
|
1056
1051
|
|
|
1057
1052
|
declare module '@tiptap/core' {
|
|
1058
1053
|
interface Commands<ReturnType> {
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1054
|
+
lineHeight: {
|
|
1055
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1056
|
+
unsetLineHeight: () => ReturnType;
|
|
1062
1057
|
};
|
|
1063
1058
|
}
|
|
1064
1059
|
}
|
|
@@ -1066,11 +1061,9 @@ declare module '@tiptap/core' {
|
|
|
1066
1061
|
|
|
1067
1062
|
declare module '@tiptap/core' {
|
|
1068
1063
|
interface Commands<ReturnType> {
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
emoji: string;
|
|
1073
|
-
}) => ReturnType;
|
|
1064
|
+
mermaid: {
|
|
1065
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1066
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1074
1067
|
};
|
|
1075
1068
|
}
|
|
1076
1069
|
}
|
|
@@ -1078,8 +1071,13 @@ declare module '@tiptap/core' {
|
|
|
1078
1071
|
|
|
1079
1072
|
declare module '@tiptap/core' {
|
|
1080
1073
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1074
|
+
columns: {
|
|
1075
|
+
insertColumns: (attrs?: {
|
|
1076
|
+
cols: number;
|
|
1077
|
+
}) => ReturnType;
|
|
1078
|
+
addColBefore: () => ReturnType;
|
|
1079
|
+
addColAfter: () => ReturnType;
|
|
1080
|
+
deleteCol: () => ReturnType;
|
|
1083
1081
|
};
|
|
1084
1082
|
}
|
|
1085
1083
|
}
|
|
@@ -1087,19 +1085,14 @@ declare module '@tiptap/core' {
|
|
|
1087
1085
|
|
|
1088
1086
|
declare module '@tiptap/core' {
|
|
1089
1087
|
interface Commands<ReturnType> {
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1099
|
-
/**
|
|
1100
|
-
* Set image alignment
|
|
1101
|
-
*/
|
|
1102
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1088
|
+
search: {
|
|
1089
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1090
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1091
|
+
replace: () => ReturnType;
|
|
1092
|
+
replaceAll: () => ReturnType;
|
|
1093
|
+
goToPrevSearchResult: () => void;
|
|
1094
|
+
goToNextSearchResult: () => void;
|
|
1095
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1103
1096
|
};
|
|
1104
1097
|
}
|
|
1105
1098
|
}
|
|
@@ -1107,8 +1100,9 @@ declare module '@tiptap/core' {
|
|
|
1107
1100
|
|
|
1108
1101
|
declare module '@tiptap/core' {
|
|
1109
1102
|
interface Commands<ReturnType> {
|
|
1110
|
-
|
|
1111
|
-
|
|
1103
|
+
tableOfContents: {
|
|
1104
|
+
setTableOfContents: () => ReturnType;
|
|
1105
|
+
removeTableOfContents: () => ReturnType;
|
|
1112
1106
|
};
|
|
1113
1107
|
}
|
|
1114
1108
|
}
|
|
@@ -1116,9 +1110,14 @@ declare module '@tiptap/core' {
|
|
|
1116
1110
|
|
|
1117
1111
|
declare module '@tiptap/core' {
|
|
1118
1112
|
interface Commands<ReturnType> {
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1113
|
+
twitter: {
|
|
1114
|
+
/**
|
|
1115
|
+
* Insert a tweet
|
|
1116
|
+
* @param options The tweet attributes
|
|
1117
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1118
|
+
*/
|
|
1119
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1120
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1122
1121
|
};
|
|
1123
1122
|
}
|
|
1124
1123
|
}
|
|
@@ -1126,9 +1125,15 @@ declare module '@tiptap/core' {
|
|
|
1126
1125
|
|
|
1127
1126
|
declare module '@tiptap/core' {
|
|
1128
1127
|
interface Commands<ReturnType> {
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1128
|
+
video: {
|
|
1129
|
+
/**
|
|
1130
|
+
* Add an video
|
|
1131
|
+
*/
|
|
1132
|
+
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
1133
|
+
/**
|
|
1134
|
+
* Update an video
|
|
1135
|
+
*/
|
|
1136
|
+
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
1132
1137
|
};
|
|
1133
1138
|
}
|
|
1134
1139
|
}
|
|
@@ -1136,14 +1141,9 @@ declare module '@tiptap/core' {
|
|
|
1136
1141
|
|
|
1137
1142
|
declare module '@tiptap/core' {
|
|
1138
1143
|
interface Commands<ReturnType> {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
* @param options The tweet attributes
|
|
1143
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1144
|
-
*/
|
|
1145
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1146
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1144
|
+
tableCellBackground: {
|
|
1145
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1146
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1147
1147
|
};
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|