reactjs-tiptap-editor 0.3.7 → 0.3.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.
Files changed (225) hide show
  1. package/lib/{ActionMenuButton-CqlhqVIW.cjs → ActionMenuButton-D96eTByd.cjs} +1 -1
  2. package/lib/{ActionMenuButton-DXwpQHj4.js → ActionMenuButton-ZOYNohaO.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +27 -27
  5. package/lib/Attachment.d.ts +27 -27
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +27 -27
  9. package/lib/Blockquote.d.ts +27 -27
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +27 -27
  13. package/lib/Bold.d.ts +27 -27
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +27 -27
  17. package/lib/BulletList.d.ts +27 -27
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +27 -27
  21. package/lib/Clear.d.ts +27 -27
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +27 -27
  25. package/lib/Code.d.ts +27 -27
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +27 -27
  29. package/lib/CodeBlock.d.ts +27 -27
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +27 -27
  33. package/lib/CodeView.d.ts +27 -27
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +27 -27
  37. package/lib/Color.d.ts +27 -27
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +27 -27
  40. package/lib/Document.d.ts +27 -27
  41. package/lib/{Drawer-B6uGc4Ab.js → Drawer-D7VC0bqz.js} +1 -1
  42. package/lib/{Drawer-DBt_aN5x.cjs → Drawer-hzhjTRvj.cjs} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +27 -27
  45. package/lib/Drawer.d.ts +27 -27
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +27 -27
  49. package/lib/Emoji.d.ts +27 -27
  50. package/lib/Emoji.js +1 -1
  51. package/lib/Excalidraw-C3YArGc8.js +278 -0
  52. package/lib/Excalidraw-DkpPLrTk.cjs +1 -0
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +27 -27
  55. package/lib/Excalidraw.d.ts +27 -27
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +27 -27
  59. package/lib/ExportPdf.d.ts +27 -27
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +27 -27
  63. package/lib/ExportWord.d.ts +27 -27
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +27 -27
  67. package/lib/FontFamily.d.ts +27 -27
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +27 -27
  71. package/lib/FontSize.d.ts +27 -27
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +27 -27
  75. package/lib/FormatPainter.d.ts +27 -27
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +27 -27
  79. package/lib/Heading.d.ts +27 -27
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +27 -27
  83. package/lib/Highlight.d.ts +27 -27
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +27 -27
  87. package/lib/History.d.ts +27 -27
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +27 -27
  91. package/lib/HorizontalRule.d.ts +27 -27
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +27 -27
  95. package/lib/Iframe.d.ts +27 -27
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +27 -27
  99. package/lib/Image.d.ts +27 -27
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +27 -27
  103. package/lib/ImageGif.d.ts +27 -27
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +27 -27
  107. package/lib/ImportWord.d.ts +27 -27
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +27 -27
  111. package/lib/Indent.d.ts +27 -27
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +27 -27
  115. package/lib/Italic.d.ts +27 -27
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +27 -27
  119. package/lib/Katex.d.ts +27 -27
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +27 -27
  123. package/lib/LineHeight.d.ts +27 -27
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +27 -27
  127. package/lib/Link.d.ts +27 -27
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +27 -27
  130. package/lib/ListItem.d.ts +27 -27
  131. package/lib/Mention.cjs +1 -1
  132. package/lib/Mention.d.cts +27 -27
  133. package/lib/Mention.d.ts +27 -27
  134. package/lib/Mermaid.cjs +1 -1
  135. package/lib/Mermaid.d.cts +27 -27
  136. package/lib/Mermaid.d.ts +27 -27
  137. package/lib/Mermaid.js +2 -2
  138. package/lib/MoreMark.cjs +1 -1
  139. package/lib/MoreMark.d.cts +27 -27
  140. package/lib/MoreMark.d.ts +27 -27
  141. package/lib/MoreMark.js +1 -1
  142. package/lib/MultiColumn.cjs +1 -1
  143. package/lib/MultiColumn.d.cts +27 -27
  144. package/lib/MultiColumn.d.ts +27 -27
  145. package/lib/MultiColumn.js +1 -1
  146. package/lib/OrderedList.cjs +1 -1
  147. package/lib/OrderedList.d.cts +27 -27
  148. package/lib/OrderedList.d.ts +27 -27
  149. package/lib/OrderedList.js +1 -1
  150. package/lib/{RichTextEditor-BfYZYQb9.js → RichTextEditor-CRDKX-F8.js} +11 -11
  151. package/lib/{RichTextEditor-Db6oQoYY.cjs → RichTextEditor-ymQlnG9m.cjs} +1 -1
  152. package/lib/SearchAndReplace.cjs +1 -1
  153. package/lib/SearchAndReplace.d.cts +27 -27
  154. package/lib/SearchAndReplace.d.ts +27 -27
  155. package/lib/SearchAndReplace.js +1 -1
  156. package/lib/Selection.d.cts +27 -27
  157. package/lib/Selection.d.ts +27 -27
  158. package/lib/SlashCommand.cjs +1 -1
  159. package/lib/SlashCommand.d.cts +27 -27
  160. package/lib/SlashCommand.d.ts +27 -27
  161. package/lib/SlashCommand.js +1 -1
  162. package/lib/Strike.cjs +1 -1
  163. package/lib/Strike.d.cts +27 -27
  164. package/lib/Strike.d.ts +27 -27
  165. package/lib/Strike.js +1 -1
  166. package/lib/SubAndSuperScript.cjs +1 -1
  167. package/lib/SubAndSuperScript.d.cts +27 -27
  168. package/lib/SubAndSuperScript.d.ts +27 -27
  169. package/lib/SubAndSuperScript.js +1 -1
  170. package/lib/Table.cjs +1 -1
  171. package/lib/Table.d.cts +27 -27
  172. package/lib/Table.d.ts +27 -27
  173. package/lib/Table.js +1 -1
  174. package/lib/TableOfContent.cjs +1 -1
  175. package/lib/TableOfContent.d.cts +27 -27
  176. package/lib/TableOfContent.d.ts +27 -27
  177. package/lib/TableOfContent.js +1 -1
  178. package/lib/TaskList.cjs +1 -1
  179. package/lib/TaskList.d.cts +27 -27
  180. package/lib/TaskList.d.ts +27 -27
  181. package/lib/TaskList.js +1 -1
  182. package/lib/TextAlign.cjs +1 -1
  183. package/lib/TextAlign.d.cts +27 -27
  184. package/lib/TextAlign.d.ts +27 -27
  185. package/lib/TextAlign.js +1 -1
  186. package/lib/TextBubble.cjs +1 -1
  187. package/lib/TextBubble.d.cts +27 -27
  188. package/lib/TextBubble.d.ts +27 -27
  189. package/lib/TextBubble.js +1 -1
  190. package/lib/TextDirection.cjs +1 -1
  191. package/lib/TextDirection.d.cts +27 -27
  192. package/lib/TextDirection.d.ts +27 -27
  193. package/lib/TextDirection.js +1 -1
  194. package/lib/TextUnderline.cjs +1 -1
  195. package/lib/TextUnderline.d.cts +27 -27
  196. package/lib/TextUnderline.d.ts +27 -27
  197. package/lib/TextUnderline.js +1 -1
  198. package/lib/TrailingNode.d.cts +27 -27
  199. package/lib/TrailingNode.d.ts +27 -27
  200. package/lib/{Twitter-DLO12QnF.cjs → Twitter-CMr6GpHp.cjs} +1 -1
  201. package/lib/{Twitter-CZA9dXpC.js → Twitter-CjAodXzu.js} +1 -1
  202. package/lib/Twitter.cjs +1 -1
  203. package/lib/Twitter.d.cts +27 -27
  204. package/lib/Twitter.d.ts +27 -27
  205. package/lib/Twitter.js +1 -1
  206. package/lib/Video.cjs +1 -1
  207. package/lib/Video.d.cts +27 -27
  208. package/lib/Video.d.ts +27 -27
  209. package/lib/Video.js +1 -1
  210. package/lib/bubble-extra.cjs +2 -2
  211. package/lib/bubble-extra.d.cts +27 -27
  212. package/lib/bubble-extra.d.ts +27 -27
  213. package/lib/bubble-extra.js +6 -6
  214. package/lib/{dom-dataset-DmsCLv1q.cjs → dom-dataset-Cuy-pIfj.cjs} +3 -3
  215. package/lib/index.cjs +1 -1
  216. package/lib/index.d.cts +27 -27
  217. package/lib/index.d.ts +27 -27
  218. package/lib/index.js +2 -2
  219. package/lib/locale-bundle.d.cts +27 -27
  220. package/lib/locale-bundle.d.ts +27 -27
  221. package/lib/{textarea-ILk3QoYy.cjs → textarea-Ci1tHD6V.cjs} +1 -1
  222. package/lib/{textarea-BUlQB7hI.js → textarea-CtL8w6IS.js} +1 -1
  223. package/package.json +1 -2
  224. package/lib/Excalidraw-Bp252YTN.js +0 -651
  225. package/lib/Excalidraw-CYLyPnI4.cjs +0 -1
package/lib/index.d.ts CHANGED
@@ -572,19 +572,15 @@ declare module '@tiptap/core' {
572
572
 
573
573
  declare module '@tiptap/core' {
574
574
  interface Commands<ReturnType> {
575
- imageGifUpload: {
576
- /**
577
- * Add an image gif
578
- */
579
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
575
+ indent: {
580
576
  /**
581
- * Update an image gif
577
+ * Set the indent attribute
582
578
  */
583
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
579
+ indent: () => ReturnType;
584
580
  /**
585
- * Set image alignment
581
+ * Set the outdent attribute
586
582
  */
587
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
583
+ outdent: () => ReturnType;
588
584
  };
589
585
  }
590
586
  }
@@ -592,15 +588,19 @@ declare module '@tiptap/core' {
592
588
 
593
589
  declare module '@tiptap/core' {
594
590
  interface Commands<ReturnType> {
595
- indent: {
591
+ imageGifUpload: {
596
592
  /**
597
- * Set the indent attribute
593
+ * Add an image gif
598
594
  */
599
- indent: () => ReturnType;
595
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
600
596
  /**
601
- * Set the outdent attribute
597
+ * Update an image gif
602
598
  */
603
- outdent: () => ReturnType;
599
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
600
+ /**
601
+ * Set image alignment
602
+ */
603
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
604
604
  };
605
605
  }
606
606
  }
@@ -676,15 +676,14 @@ declare module '@tiptap/core' {
676
676
 
677
677
  declare module '@tiptap/core' {
678
678
  interface Commands<ReturnType> {
679
- video: {
680
- /**
681
- * Add an video
682
- */
683
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
679
+ twitter: {
684
680
  /**
685
- * Update an video
681
+ * Insert a tweet
682
+ * @param options The tweet attributes
683
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
686
684
  */
687
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
685
+ setTweet: (options: SetTweetOptions) => ReturnType;
686
+ updateTweet: (options: SetTweetOptions) => ReturnType;
688
687
  };
689
688
  }
690
689
  }
@@ -692,14 +691,15 @@ declare module '@tiptap/core' {
692
691
 
693
692
  declare module '@tiptap/core' {
694
693
  interface Commands<ReturnType> {
695
- twitter: {
694
+ video: {
696
695
  /**
697
- * Insert a tweet
698
- * @param options The tweet attributes
699
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
696
+ * Add an video
700
697
  */
701
- setTweet: (options: SetTweetOptions) => ReturnType;
702
- updateTweet: (options: SetTweetOptions) => ReturnType;
698
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
699
+ /**
700
+ * Update an video
701
+ */
702
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
703
703
  };
704
704
  }
705
705
  }
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useRef as O, useState as S, useEffect as B } from "react";
2
- import { a8 as z, a9 as N } from "./RichTextEditor-BfYZYQb9.js";
3
- import { aa as ve } from "./RichTextEditor-BfYZYQb9.js";
2
+ import { a7 as z, a8 as N } from "./RichTextEditor-CRDKX-F8.js";
3
+ import { a9 as ve } from "./RichTextEditor-CRDKX-F8.js";
4
4
  import { B as ke } from "./dom-dataset-2RXYq9wp.js";
5
5
  import { E as f, P as p, a as y, z as L, D as C, b, B as R, F as k, S as P, T as M, g as T, C as w, G as D, H as V, N as x, m as A, I as H } from "./index-CXIIg9Sq.js";
6
6
  import { ListItem as F } from "./ListItem.js";
@@ -1023,19 +1023,15 @@ declare module '@tiptap/core' {
1023
1023
 
1024
1024
  declare module '@tiptap/core' {
1025
1025
  interface Commands<ReturnType> {
1026
- imageGifUpload: {
1027
- /**
1028
- * Add an image gif
1029
- */
1030
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1026
+ indent: {
1031
1027
  /**
1032
- * Update an image gif
1028
+ * Set the indent attribute
1033
1029
  */
1034
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1030
+ indent: () => ReturnType;
1035
1031
  /**
1036
- * Set image alignment
1032
+ * Set the outdent attribute
1037
1033
  */
1038
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1034
+ outdent: () => ReturnType;
1039
1035
  };
1040
1036
  }
1041
1037
  }
@@ -1043,15 +1039,19 @@ declare module '@tiptap/core' {
1043
1039
 
1044
1040
  declare module '@tiptap/core' {
1045
1041
  interface Commands<ReturnType> {
1046
- indent: {
1042
+ imageGifUpload: {
1047
1043
  /**
1048
- * Set the indent attribute
1044
+ * Add an image gif
1049
1045
  */
1050
- indent: () => ReturnType;
1046
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1051
1047
  /**
1052
- * Set the outdent attribute
1048
+ * Update an image gif
1053
1049
  */
1054
- outdent: () => ReturnType;
1050
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1051
+ /**
1052
+ * Set image alignment
1053
+ */
1054
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1055
1055
  };
1056
1056
  }
1057
1057
  }
@@ -1127,15 +1127,14 @@ declare module '@tiptap/core' {
1127
1127
 
1128
1128
  declare module '@tiptap/core' {
1129
1129
  interface Commands<ReturnType> {
1130
- video: {
1131
- /**
1132
- * Add an video
1133
- */
1134
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
1130
+ twitter: {
1135
1131
  /**
1136
- * Update an video
1132
+ * Insert a tweet
1133
+ * @param options The tweet attributes
1134
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1137
1135
  */
1138
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
1136
+ setTweet: (options: SetTweetOptions) => ReturnType;
1137
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1139
1138
  };
1140
1139
  }
1141
1140
  }
@@ -1143,14 +1142,15 @@ declare module '@tiptap/core' {
1143
1142
 
1144
1143
  declare module '@tiptap/core' {
1145
1144
  interface Commands<ReturnType> {
1146
- twitter: {
1145
+ video: {
1147
1146
  /**
1148
- * Insert a tweet
1149
- * @param options The tweet attributes
1150
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1147
+ * Add an video
1151
1148
  */
1152
- setTweet: (options: SetTweetOptions) => ReturnType;
1153
- updateTweet: (options: SetTweetOptions) => ReturnType;
1149
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
1150
+ /**
1151
+ * Update an video
1152
+ */
1153
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
1154
1154
  };
1155
1155
  }
1156
1156
  }
@@ -1023,19 +1023,15 @@ declare module '@tiptap/core' {
1023
1023
 
1024
1024
  declare module '@tiptap/core' {
1025
1025
  interface Commands<ReturnType> {
1026
- imageGifUpload: {
1027
- /**
1028
- * Add an image gif
1029
- */
1030
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1026
+ indent: {
1031
1027
  /**
1032
- * Update an image gif
1028
+ * Set the indent attribute
1033
1029
  */
1034
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1030
+ indent: () => ReturnType;
1035
1031
  /**
1036
- * Set image alignment
1032
+ * Set the outdent attribute
1037
1033
  */
1038
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1034
+ outdent: () => ReturnType;
1039
1035
  };
1040
1036
  }
1041
1037
  }
@@ -1043,15 +1039,19 @@ declare module '@tiptap/core' {
1043
1039
 
1044
1040
  declare module '@tiptap/core' {
1045
1041
  interface Commands<ReturnType> {
1046
- indent: {
1042
+ imageGifUpload: {
1047
1043
  /**
1048
- * Set the indent attribute
1044
+ * Add an image gif
1049
1045
  */
1050
- indent: () => ReturnType;
1046
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1051
1047
  /**
1052
- * Set the outdent attribute
1048
+ * Update an image gif
1053
1049
  */
1054
- outdent: () => ReturnType;
1050
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1051
+ /**
1052
+ * Set image alignment
1053
+ */
1054
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1055
1055
  };
1056
1056
  }
1057
1057
  }
@@ -1127,15 +1127,14 @@ declare module '@tiptap/core' {
1127
1127
 
1128
1128
  declare module '@tiptap/core' {
1129
1129
  interface Commands<ReturnType> {
1130
- video: {
1131
- /**
1132
- * Add an video
1133
- */
1134
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
1130
+ twitter: {
1135
1131
  /**
1136
- * Update an video
1132
+ * Insert a tweet
1133
+ * @param options The tweet attributes
1134
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1137
1135
  */
1138
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
1136
+ setTweet: (options: SetTweetOptions) => ReturnType;
1137
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1139
1138
  };
1140
1139
  }
1141
1140
  }
@@ -1143,14 +1142,15 @@ declare module '@tiptap/core' {
1143
1142
 
1144
1143
  declare module '@tiptap/core' {
1145
1144
  interface Commands<ReturnType> {
1146
- twitter: {
1145
+ video: {
1147
1146
  /**
1148
- * Insert a tweet
1149
- * @param options The tweet attributes
1150
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1147
+ * Add an video
1151
1148
  */
1152
- setTweet: (options: SetTweetOptions) => ReturnType;
1153
- updateTweet: (options: SetTweetOptions) => ReturnType;
1149
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
1150
+ /**
1151
+ * Update an video
1152
+ */
1153
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
1154
1154
  };
1155
1155
  }
1156
1156
  }
@@ -1 +1 @@
1
- "use strict";const n=require("react/jsx-runtime"),o=require("react"),a=require("./RichTextEditor-Db6oQoYY.cjs");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=s(o),c=u.forwardRef(({className:e,...r},t)=>n.jsx("textarea",{className:a.cn("richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",e),ref:t,...r}));c.displayName="Textarea";exports.Textarea=c;
1
+ "use strict";const n=require("react/jsx-runtime"),o=require("react"),a=require("./RichTextEditor-ymQlnG9m.cjs");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=s(o),c=u.forwardRef(({className:e,...r},t)=>n.jsx("textarea",{className:a.cn("richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",e),ref:t,...r}));c.displayName="Textarea";exports.Textarea=c;
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import * as c from "react";
3
- import { d as o } from "./RichTextEditor-BfYZYQb9.js";
3
+ import { d as o } from "./RichTextEditor-CRDKX-F8.js";
4
4
  const x = c.forwardRef(
5
5
  ({ className: t, ...e }, r) => /* @__PURE__ */ i(
6
6
  "textarea",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor",
3
3
  "type": "module",
4
- "version": "0.3.7",
4
+ "version": "0.3.9",
5
5
  "packageManager": "pnpm@8.15.9",
6
6
  "description": "A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React",
7
7
  "license": "MIT",
@@ -863,7 +863,6 @@
863
863
  "react-colorful": "^5.6.1",
864
864
  "react-image-crop": "^11.0.10",
865
865
  "react-tweet": "^3.2.2",
866
- "react-visibility-sensor": "^5.1.1",
867
866
  "reactjs-signal": "^1.1.3",
868
867
  "scroll-into-view-if-needed": "^3.1.0",
869
868
  "svg64": "^2.0.0",