reactjs-tiptap-editor 0.3.21 → 0.3.22

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 (222) hide show
  1. package/lib/{ActionMenuButton-BTFBZyG2.cjs → ActionMenuButton-B81uYOvt.cjs} +1 -1
  2. package/lib/{ActionMenuButton-DXwnYZhJ.js → ActionMenuButton-CtcDNq-L.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +41 -41
  5. package/lib/Attachment.d.ts +41 -41
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +41 -41
  9. package/lib/Blockquote.d.ts +41 -41
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +41 -41
  13. package/lib/Bold.d.ts +41 -41
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +41 -41
  17. package/lib/BulletList.d.ts +41 -41
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +41 -41
  21. package/lib/Clear.d.ts +41 -41
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +41 -41
  25. package/lib/Code.d.ts +41 -41
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +41 -41
  29. package/lib/CodeBlock.d.ts +41 -41
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +41 -41
  33. package/lib/CodeView.d.ts +41 -41
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +41 -41
  37. package/lib/Color.d.ts +41 -41
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +41 -41
  40. package/lib/Document.d.ts +41 -41
  41. package/lib/{Drawer-CVuwyG50.js → Drawer-BI_9XSqI.js} +1 -1
  42. package/lib/{Drawer-BrHHs2E9.cjs → Drawer-CHGZ5D6j.cjs} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +41 -41
  45. package/lib/Drawer.d.ts +41 -41
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +41 -41
  49. package/lib/Emoji.d.ts +41 -41
  50. package/lib/Emoji.js +116 -109
  51. package/lib/{Excalidraw-frMX4K62.js → Excalidraw-AIzEaOzF.js} +1 -1
  52. package/lib/{Excalidraw-Be_GDV4Q.cjs → Excalidraw-DOJiMnFl.cjs} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +41 -41
  55. package/lib/Excalidraw.d.ts +41 -41
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +41 -41
  59. package/lib/ExportPdf.d.ts +41 -41
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +41 -41
  63. package/lib/ExportWord.d.ts +41 -41
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +41 -41
  67. package/lib/FontFamily.d.ts +41 -41
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +41 -41
  71. package/lib/FontSize.d.ts +41 -41
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +41 -41
  75. package/lib/FormatPainter.d.ts +41 -41
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +41 -41
  79. package/lib/Heading.d.ts +41 -41
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +41 -41
  83. package/lib/Highlight.d.ts +41 -41
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +41 -41
  87. package/lib/History.d.ts +41 -41
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +41 -41
  91. package/lib/HorizontalRule.d.ts +41 -41
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +41 -41
  95. package/lib/Iframe.d.ts +41 -41
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +41 -41
  99. package/lib/Image.d.ts +41 -41
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +41 -41
  103. package/lib/ImageGif.d.ts +41 -41
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +41 -41
  107. package/lib/ImportWord.d.ts +41 -41
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +41 -41
  111. package/lib/Indent.d.ts +41 -41
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +41 -41
  115. package/lib/Italic.d.ts +41 -41
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +41 -41
  119. package/lib/Katex.d.ts +41 -41
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +41 -41
  123. package/lib/LineHeight.d.ts +41 -41
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +41 -41
  127. package/lib/Link.d.ts +41 -41
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +41 -41
  130. package/lib/ListItem.d.ts +41 -41
  131. package/lib/Mention.d.cts +41 -41
  132. package/lib/Mention.d.ts +41 -41
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +41 -41
  135. package/lib/Mermaid.d.ts +41 -41
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +41 -41
  139. package/lib/MoreMark.d.ts +41 -41
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +41 -41
  143. package/lib/MultiColumn.d.ts +41 -41
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +41 -41
  147. package/lib/OrderedList.d.ts +41 -41
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-DjTnd5Uu.js → RichTextEditor-CtxIf8pq.js} +5 -2
  150. package/lib/{RichTextEditor-CAxwVWUE.cjs → RichTextEditor-DtxJlApT.cjs} +5 -2
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +41 -41
  153. package/lib/SearchAndReplace.d.ts +41 -41
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +41 -41
  156. package/lib/Selection.d.ts +41 -41
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +41 -41
  159. package/lib/SlashCommand.d.ts +41 -41
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +41 -41
  163. package/lib/Strike.d.ts +41 -41
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +41 -41
  167. package/lib/SubAndSuperScript.d.ts +41 -41
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +41 -41
  171. package/lib/Table.d.ts +41 -41
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +41 -41
  175. package/lib/TableOfContent.d.ts +41 -41
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +41 -41
  179. package/lib/TaskList.d.ts +41 -41
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +41 -41
  183. package/lib/TextAlign.d.ts +41 -41
  184. package/lib/TextAlign.js +1 -1
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +41 -41
  187. package/lib/TextBubble.d.ts +41 -41
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +41 -41
  191. package/lib/TextDirection.d.ts +41 -41
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +41 -41
  195. package/lib/TextUnderline.d.ts +41 -41
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +41 -41
  198. package/lib/TrailingNode.d.ts +41 -41
  199. package/lib/{Twitter-dRxbZOad.js → Twitter-CJIud-WM.js} +1 -1
  200. package/lib/{Twitter-V0OzBT_E.cjs → Twitter-DBA28WG3.cjs} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +41 -41
  203. package/lib/Twitter.d.ts +41 -41
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +41 -41
  207. package/lib/Video.d.ts +41 -41
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +41 -41
  211. package/lib/bubble-extra.d.ts +41 -41
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +41 -41
  215. package/lib/index.d.ts +41 -41
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +41 -41
  218. package/lib/locale-bundle.d.ts +41 -41
  219. package/lib/style.css +1 -1
  220. package/lib/{textarea-BsJTSgT-.cjs → textarea-9iN67tad.cjs} +1 -1
  221. package/lib/{textarea-6c8drwXJ.js → textarea-BhTw-eGz.js} +1 -1
  222. package/package.json +2 -2
@@ -45,11 +45,9 @@ declare module '@tiptap/core' {
45
45
 
46
46
  declare module '@tiptap/core' {
47
47
  interface Commands<ReturnType> {
48
- emoji: {
49
- setEmoji: (emoji: {
50
- name: string;
51
- emoji: string;
52
- }) => ReturnType;
48
+ drawer: {
49
+ setDrawer: (options: any, replace?: any) => ReturnType;
50
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
53
51
  };
54
52
  }
55
53
  }
@@ -57,9 +55,11 @@ declare module '@tiptap/core' {
57
55
 
58
56
  declare module '@tiptap/core' {
59
57
  interface Commands<ReturnType> {
60
- drawer: {
61
- setDrawer: (options: any, replace?: any) => ReturnType;
62
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
58
+ emoji: {
59
+ setEmoji: (emoji: {
60
+ name: string;
61
+ emoji: string;
62
+ }) => ReturnType;
63
63
  };
64
64
  }
65
65
  }
@@ -110,6 +110,21 @@ declare module '@tiptap/core' {
110
110
  }
111
111
 
112
112
 
113
+ declare module '@tiptap/core' {
114
+ interface Commands<ReturnType> {
115
+ iframe: {
116
+ /**
117
+ * Add an iframe
118
+ */
119
+ setIframe: (options: {
120
+ src: string;
121
+ service: string;
122
+ }) => ReturnType;
123
+ };
124
+ }
125
+ }
126
+
127
+
113
128
  declare module '@tiptap/core' {
114
129
  interface Commands<ReturnType> {
115
130
  imageUpload: {
@@ -130,21 +145,6 @@ declare module '@tiptap/core' {
130
145
  }
131
146
 
132
147
 
133
- declare module '@tiptap/core' {
134
- interface Commands<ReturnType> {
135
- iframe: {
136
- /**
137
- * Add an iframe
138
- */
139
- setIframe: (options: {
140
- src: string;
141
- service: string;
142
- }) => ReturnType;
143
- };
144
- }
145
- }
146
-
147
-
148
148
  declare module '@tiptap/core' {
149
149
  interface Commands<ReturnType> {
150
150
  imageGifUpload: {
@@ -183,9 +183,8 @@ declare module '@tiptap/core' {
183
183
 
184
184
  declare module '@tiptap/core' {
185
185
  interface Commands<ReturnType> {
186
- lineHeight: {
187
- setLineHeight: (lineHeight: string) => ReturnType;
188
- unsetLineHeight: () => ReturnType;
186
+ katex: {
187
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
189
188
  };
190
189
  }
191
190
  }
@@ -193,8 +192,9 @@ declare module '@tiptap/core' {
193
192
 
194
193
  declare module '@tiptap/core' {
195
194
  interface Commands<ReturnType> {
196
- katex: {
197
- setKatex: (arg?: IKatexAttrs) => ReturnType;
195
+ lineHeight: {
196
+ setLineHeight: (lineHeight: string) => ReturnType;
197
+ unsetLineHeight: () => ReturnType;
198
198
  };
199
199
  }
200
200
  }
@@ -251,14 +251,15 @@ declare module '@tiptap/core' {
251
251
 
252
252
  declare module '@tiptap/core' {
253
253
  interface Commands<ReturnType> {
254
- twitter: {
254
+ video: {
255
255
  /**
256
- * Insert a tweet
257
- * @param options The tweet attributes
258
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
256
+ * Add an video
259
257
  */
260
- setTweet: (options: SetTweetOptions) => ReturnType;
261
- updateTweet: (options: SetTweetOptions) => ReturnType;
258
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
259
+ /**
260
+ * Update an video
261
+ */
262
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
262
263
  };
263
264
  }
264
265
  }
@@ -266,15 +267,14 @@ declare module '@tiptap/core' {
266
267
 
267
268
  declare module '@tiptap/core' {
268
269
  interface Commands<ReturnType> {
269
- video: {
270
- /**
271
- * Add an video
272
- */
273
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
270
+ twitter: {
274
271
  /**
275
- * Update an video
272
+ * Insert a tweet
273
+ * @param options The tweet attributes
274
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
276
275
  */
277
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
276
+ setTweet: (options: SetTweetOptions) => ReturnType;
277
+ updateTweet: (options: SetTweetOptions) => ReturnType;
278
278
  };
279
279
  }
280
280
  }
package/lib/Excalidraw.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./index-DI9T3iLd.js";
2
2
  import "./dom-dataset-Di3tIRrR.js";
3
- import { E as m } from "./Excalidraw-frMX4K62.js";
3
+ import { E as m } from "./Excalidraw-AIzEaOzF.js";
4
4
  export {
5
5
  m as Excalidraw
6
6
  };
package/lib/ExportPdf.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-ByRfqzMr.cjs"),f=require("./RichTextEditor-CAxwVWUE.cjs");function g(e,o){var i;const t=document.createElement("iframe");t.setAttribute("style","position: absolute; width: 0; height: 0; top: 0; left: 0;"),document.body.appendChild(t);const n=t.contentDocument||((i=t.contentWindow)==null?void 0:i.document);if(!n)return;const{paperSize:a,margins:{top:s,right:c,bottom:l,left:p}}=o,m=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-ByRfqzMr.cjs"),f=require("./RichTextEditor-DtxJlApT.cjs");function g(e,o){var i;const t=document.createElement("iframe");t.setAttribute("style","position: absolute; width: 0; height: 0; top: 0; left: 0;"),document.body.appendChild(t);const n=t.contentDocument||((i=t.contentWindow)==null?void 0:i.document);if(!n)return;const{paperSize:a,margins:{top:s,right:c,bottom:l,left:p}}=o,m=`
2
2
  <!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
@@ -119,11 +119,9 @@ declare module '@tiptap/core' {
119
119
 
120
120
  declare module '@tiptap/core' {
121
121
  interface Commands<ReturnType> {
122
- emoji: {
123
- setEmoji: (emoji: {
124
- name: string;
125
- emoji: string;
126
- }) => ReturnType;
122
+ drawer: {
123
+ setDrawer: (options: any, replace?: any) => ReturnType;
124
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
127
125
  };
128
126
  }
129
127
  }
@@ -131,9 +129,11 @@ declare module '@tiptap/core' {
131
129
 
132
130
  declare module '@tiptap/core' {
133
131
  interface Commands<ReturnType> {
134
- drawer: {
135
- setDrawer: (options: any, replace?: any) => ReturnType;
136
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
132
+ emoji: {
133
+ setEmoji: (emoji: {
134
+ name: string;
135
+ emoji: string;
136
+ }) => ReturnType;
137
137
  };
138
138
  }
139
139
  }
@@ -184,6 +184,21 @@ declare module '@tiptap/core' {
184
184
  }
185
185
 
186
186
 
187
+ declare module '@tiptap/core' {
188
+ interface Commands<ReturnType> {
189
+ iframe: {
190
+ /**
191
+ * Add an iframe
192
+ */
193
+ setIframe: (options: {
194
+ src: string;
195
+ service: string;
196
+ }) => ReturnType;
197
+ };
198
+ }
199
+ }
200
+
201
+
187
202
  declare module '@tiptap/core' {
188
203
  interface Commands<ReturnType> {
189
204
  imageUpload: {
@@ -204,21 +219,6 @@ declare module '@tiptap/core' {
204
219
  }
205
220
 
206
221
 
207
- declare module '@tiptap/core' {
208
- interface Commands<ReturnType> {
209
- iframe: {
210
- /**
211
- * Add an iframe
212
- */
213
- setIframe: (options: {
214
- src: string;
215
- service: string;
216
- }) => ReturnType;
217
- };
218
- }
219
- }
220
-
221
-
222
222
  declare module '@tiptap/core' {
223
223
  interface Commands<ReturnType> {
224
224
  imageGifUpload: {
@@ -257,9 +257,8 @@ declare module '@tiptap/core' {
257
257
 
258
258
  declare module '@tiptap/core' {
259
259
  interface Commands<ReturnType> {
260
- lineHeight: {
261
- setLineHeight: (lineHeight: string) => ReturnType;
262
- unsetLineHeight: () => ReturnType;
260
+ katex: {
261
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
263
262
  };
264
263
  }
265
264
  }
@@ -267,8 +266,9 @@ declare module '@tiptap/core' {
267
266
 
268
267
  declare module '@tiptap/core' {
269
268
  interface Commands<ReturnType> {
270
- katex: {
271
- setKatex: (arg?: IKatexAttrs) => ReturnType;
269
+ lineHeight: {
270
+ setLineHeight: (lineHeight: string) => ReturnType;
271
+ unsetLineHeight: () => ReturnType;
272
272
  };
273
273
  }
274
274
  }
@@ -325,14 +325,15 @@ declare module '@tiptap/core' {
325
325
 
326
326
  declare module '@tiptap/core' {
327
327
  interface Commands<ReturnType> {
328
- twitter: {
328
+ video: {
329
329
  /**
330
- * Insert a tweet
331
- * @param options The tweet attributes
332
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
330
+ * Add an video
333
331
  */
334
- setTweet: (options: SetTweetOptions) => ReturnType;
335
- updateTweet: (options: SetTweetOptions) => ReturnType;
332
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
333
+ /**
334
+ * Update an video
335
+ */
336
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
336
337
  };
337
338
  }
338
339
  }
@@ -340,15 +341,14 @@ declare module '@tiptap/core' {
340
341
 
341
342
  declare module '@tiptap/core' {
342
343
  interface Commands<ReturnType> {
343
- video: {
344
- /**
345
- * Add an video
346
- */
347
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
344
+ twitter: {
348
345
  /**
349
- * Update an video
346
+ * Insert a tweet
347
+ * @param options The tweet attributes
348
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
350
349
  */
351
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
350
+ setTweet: (options: SetTweetOptions) => ReturnType;
351
+ updateTweet: (options: SetTweetOptions) => ReturnType;
352
352
  };
353
353
  }
354
354
  }
@@ -119,11 +119,9 @@ declare module '@tiptap/core' {
119
119
 
120
120
  declare module '@tiptap/core' {
121
121
  interface Commands<ReturnType> {
122
- emoji: {
123
- setEmoji: (emoji: {
124
- name: string;
125
- emoji: string;
126
- }) => ReturnType;
122
+ drawer: {
123
+ setDrawer: (options: any, replace?: any) => ReturnType;
124
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
127
125
  };
128
126
  }
129
127
  }
@@ -131,9 +129,11 @@ declare module '@tiptap/core' {
131
129
 
132
130
  declare module '@tiptap/core' {
133
131
  interface Commands<ReturnType> {
134
- drawer: {
135
- setDrawer: (options: any, replace?: any) => ReturnType;
136
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
132
+ emoji: {
133
+ setEmoji: (emoji: {
134
+ name: string;
135
+ emoji: string;
136
+ }) => ReturnType;
137
137
  };
138
138
  }
139
139
  }
@@ -184,6 +184,21 @@ declare module '@tiptap/core' {
184
184
  }
185
185
 
186
186
 
187
+ declare module '@tiptap/core' {
188
+ interface Commands<ReturnType> {
189
+ iframe: {
190
+ /**
191
+ * Add an iframe
192
+ */
193
+ setIframe: (options: {
194
+ src: string;
195
+ service: string;
196
+ }) => ReturnType;
197
+ };
198
+ }
199
+ }
200
+
201
+
187
202
  declare module '@tiptap/core' {
188
203
  interface Commands<ReturnType> {
189
204
  imageUpload: {
@@ -204,21 +219,6 @@ declare module '@tiptap/core' {
204
219
  }
205
220
 
206
221
 
207
- declare module '@tiptap/core' {
208
- interface Commands<ReturnType> {
209
- iframe: {
210
- /**
211
- * Add an iframe
212
- */
213
- setIframe: (options: {
214
- src: string;
215
- service: string;
216
- }) => ReturnType;
217
- };
218
- }
219
- }
220
-
221
-
222
222
  declare module '@tiptap/core' {
223
223
  interface Commands<ReturnType> {
224
224
  imageGifUpload: {
@@ -257,9 +257,8 @@ declare module '@tiptap/core' {
257
257
 
258
258
  declare module '@tiptap/core' {
259
259
  interface Commands<ReturnType> {
260
- lineHeight: {
261
- setLineHeight: (lineHeight: string) => ReturnType;
262
- unsetLineHeight: () => ReturnType;
260
+ katex: {
261
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
263
262
  };
264
263
  }
265
264
  }
@@ -267,8 +266,9 @@ declare module '@tiptap/core' {
267
266
 
268
267
  declare module '@tiptap/core' {
269
268
  interface Commands<ReturnType> {
270
- katex: {
271
- setKatex: (arg?: IKatexAttrs) => ReturnType;
269
+ lineHeight: {
270
+ setLineHeight: (lineHeight: string) => ReturnType;
271
+ unsetLineHeight: () => ReturnType;
272
272
  };
273
273
  }
274
274
  }
@@ -325,14 +325,15 @@ declare module '@tiptap/core' {
325
325
 
326
326
  declare module '@tiptap/core' {
327
327
  interface Commands<ReturnType> {
328
- twitter: {
328
+ video: {
329
329
  /**
330
- * Insert a tweet
331
- * @param options The tweet attributes
332
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
330
+ * Add an video
333
331
  */
334
- setTweet: (options: SetTweetOptions) => ReturnType;
335
- updateTweet: (options: SetTweetOptions) => ReturnType;
332
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
333
+ /**
334
+ * Update an video
335
+ */
336
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
336
337
  };
337
338
  }
338
339
  }
@@ -340,15 +341,14 @@ declare module '@tiptap/core' {
340
341
 
341
342
  declare module '@tiptap/core' {
342
343
  interface Commands<ReturnType> {
343
- video: {
344
- /**
345
- * Add an video
346
- */
347
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
344
+ twitter: {
348
345
  /**
349
- * Update an video
346
+ * Insert a tweet
347
+ * @param options The tweet attributes
348
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
350
349
  */
351
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
350
+ setTweet: (options: SetTweetOptions) => ReturnType;
351
+ updateTweet: (options: SetTweetOptions) => ReturnType;
352
352
  };
353
353
  }
354
354
  }
package/lib/ExportPdf.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { E as f } from "./index-DI9T3iLd.js";
2
- import { A as u } from "./RichTextEditor-DjTnd5Uu.js";
2
+ import { A as u } from "./RichTextEditor-CtxIf8pq.js";
3
3
  function g(e, o) {
4
4
  var i;
5
5
  const t = document.createElement("iframe");
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-ByRfqzMr.cjs"),s=require("docx"),t=require("prosemirror-docx"),i=require("./RichTextEditor-CAxwVWUE.cjs"),l=typeof window<"u";function c(o,e){if(l){const n=window.URL.createObjectURL(o),r=document.createElement("a");return r.href=n,r.download=e,r.click(),window.URL.revokeObjectURL(n),Promise.resolve()}return console.error("Download is not supported in Node.js"),Promise.resolve()}const u={...t.defaultNodes,hardBreak:t.defaultNodes.hard_break,codeBlock:t.defaultNodes.code_block,orderedList:t.defaultNodes.ordered_list,listItem:t.defaultNodes.list_item,bulletList:t.defaultNodes.bullet_list,horizontalRule:t.defaultNodes.horizontal_rule,image(o,e){o.renderInline(e),o.closeBlock(e)},table(o,e){o.table(e,{tableOptions:{width:{size:100,type:s.WidthType.PERCENTAGE}}})}},p=new t.DocxSerializer(u,t.defaultMarks),f=a.Extension.create({name:"exportWord",addOptions(){var o;return{...(o=this.parent)==null?void 0:o.call(this),button:({editor:e,t:n})=>({component:i.ActionButton,componentProps:{icon:"ExportWord",action:()=>{e==null||e.commands.exportToWord()},tooltip:n("editor.exportWord.tooltip"),isActive:()=>!1,disabled:!1}})}},addCommands(){return{exportToWord:()=>async({editor:o})=>{const e={getImageBuffer:async r=>{const d=await(await fetch(r)).arrayBuffer();return new Uint8Array(d)}},n=p.serialize(o.state.doc,e);return s.Packer.toBlob(n).then(r=>c(new Blob([r]),"export-document.docx")),!0}}}});exports.ExportWord=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-ByRfqzMr.cjs"),s=require("docx"),t=require("prosemirror-docx"),i=require("./RichTextEditor-DtxJlApT.cjs"),l=typeof window<"u";function c(o,e){if(l){const n=window.URL.createObjectURL(o),r=document.createElement("a");return r.href=n,r.download=e,r.click(),window.URL.revokeObjectURL(n),Promise.resolve()}return console.error("Download is not supported in Node.js"),Promise.resolve()}const u={...t.defaultNodes,hardBreak:t.defaultNodes.hard_break,codeBlock:t.defaultNodes.code_block,orderedList:t.defaultNodes.ordered_list,listItem:t.defaultNodes.list_item,bulletList:t.defaultNodes.bullet_list,horizontalRule:t.defaultNodes.horizontal_rule,image(o,e){o.renderInline(e),o.closeBlock(e)},table(o,e){o.table(e,{tableOptions:{width:{size:100,type:s.WidthType.PERCENTAGE}}})}},p=new t.DocxSerializer(u,t.defaultMarks),f=a.Extension.create({name:"exportWord",addOptions(){var o;return{...(o=this.parent)==null?void 0:o.call(this),button:({editor:e,t:n})=>({component:i.ActionButton,componentProps:{icon:"ExportWord",action:()=>{e==null||e.commands.exportToWord()},tooltip:n("editor.exportWord.tooltip"),isActive:()=>!1,disabled:!1}})}},addCommands(){return{exportToWord:()=>async({editor:o})=>{const e={getImageBuffer:async r=>{const d=await(await fetch(r)).arrayBuffer();return new Uint8Array(d)}},n=p.serialize(o.state.doc,e);return s.Packer.toBlob(n).then(r=>c(new Blob([r]),"export-document.docx")),!0}}}});exports.ExportWord=f;
@@ -108,11 +108,9 @@ declare module '@tiptap/core' {
108
108
 
109
109
  declare module '@tiptap/core' {
110
110
  interface Commands<ReturnType> {
111
- emoji: {
112
- setEmoji: (emoji: {
113
- name: string;
114
- emoji: string;
115
- }) => ReturnType;
111
+ drawer: {
112
+ setDrawer: (options: any, replace?: any) => ReturnType;
113
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
116
114
  };
117
115
  }
118
116
  }
@@ -120,9 +118,11 @@ declare module '@tiptap/core' {
120
118
 
121
119
  declare module '@tiptap/core' {
122
120
  interface Commands<ReturnType> {
123
- drawer: {
124
- setDrawer: (options: any, replace?: any) => ReturnType;
125
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
121
+ emoji: {
122
+ setEmoji: (emoji: {
123
+ name: string;
124
+ emoji: string;
125
+ }) => ReturnType;
126
126
  };
127
127
  }
128
128
  }
@@ -173,6 +173,21 @@ declare module '@tiptap/core' {
173
173
  }
174
174
 
175
175
 
176
+ declare module '@tiptap/core' {
177
+ interface Commands<ReturnType> {
178
+ iframe: {
179
+ /**
180
+ * Add an iframe
181
+ */
182
+ setIframe: (options: {
183
+ src: string;
184
+ service: string;
185
+ }) => ReturnType;
186
+ };
187
+ }
188
+ }
189
+
190
+
176
191
  declare module '@tiptap/core' {
177
192
  interface Commands<ReturnType> {
178
193
  imageUpload: {
@@ -193,21 +208,6 @@ declare module '@tiptap/core' {
193
208
  }
194
209
 
195
210
 
196
- declare module '@tiptap/core' {
197
- interface Commands<ReturnType> {
198
- iframe: {
199
- /**
200
- * Add an iframe
201
- */
202
- setIframe: (options: {
203
- src: string;
204
- service: string;
205
- }) => ReturnType;
206
- };
207
- }
208
- }
209
-
210
-
211
211
  declare module '@tiptap/core' {
212
212
  interface Commands<ReturnType> {
213
213
  imageGifUpload: {
@@ -246,9 +246,8 @@ declare module '@tiptap/core' {
246
246
 
247
247
  declare module '@tiptap/core' {
248
248
  interface Commands<ReturnType> {
249
- lineHeight: {
250
- setLineHeight: (lineHeight: string) => ReturnType;
251
- unsetLineHeight: () => ReturnType;
249
+ katex: {
250
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
252
251
  };
253
252
  }
254
253
  }
@@ -256,8 +255,9 @@ declare module '@tiptap/core' {
256
255
 
257
256
  declare module '@tiptap/core' {
258
257
  interface Commands<ReturnType> {
259
- katex: {
260
- setKatex: (arg?: IKatexAttrs) => ReturnType;
258
+ lineHeight: {
259
+ setLineHeight: (lineHeight: string) => ReturnType;
260
+ unsetLineHeight: () => ReturnType;
261
261
  };
262
262
  }
263
263
  }
@@ -314,14 +314,15 @@ declare module '@tiptap/core' {
314
314
 
315
315
  declare module '@tiptap/core' {
316
316
  interface Commands<ReturnType> {
317
- twitter: {
317
+ video: {
318
318
  /**
319
- * Insert a tweet
320
- * @param options The tweet attributes
321
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
319
+ * Add an video
322
320
  */
323
- setTweet: (options: SetTweetOptions) => ReturnType;
324
- updateTweet: (options: SetTweetOptions) => ReturnType;
321
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
322
+ /**
323
+ * Update an video
324
+ */
325
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
325
326
  };
326
327
  }
327
328
  }
@@ -329,15 +330,14 @@ declare module '@tiptap/core' {
329
330
 
330
331
  declare module '@tiptap/core' {
331
332
  interface Commands<ReturnType> {
332
- video: {
333
- /**
334
- * Add an video
335
- */
336
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
333
+ twitter: {
337
334
  /**
338
- * Update an video
335
+ * Insert a tweet
336
+ * @param options The tweet attributes
337
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
339
338
  */
340
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
339
+ setTweet: (options: SetTweetOptions) => ReturnType;
340
+ updateTweet: (options: SetTweetOptions) => ReturnType;
341
341
  };
342
342
  }
343
343
  }