reactjs-tiptap-editor 0.3.24 → 0.3.26

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 (221) hide show
  1. package/lib/{ActionMenuButton-BqO6QTnX.cjs → ActionMenuButton-C9tPWcDX.cjs} +1 -1
  2. package/lib/{ActionMenuButton-BW1lNB_I.js → ActionMenuButton-DpFt8DwI.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +39 -30
  5. package/lib/Attachment.d.ts +39 -30
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +39 -30
  9. package/lib/Blockquote.d.ts +39 -30
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +39 -30
  13. package/lib/Bold.d.ts +39 -30
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +39 -30
  17. package/lib/BulletList.d.ts +39 -30
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +39 -30
  21. package/lib/Clear.d.ts +39 -30
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +39 -30
  25. package/lib/Code.d.ts +39 -30
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +39 -30
  29. package/lib/CodeBlock.d.ts +39 -30
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +39 -30
  33. package/lib/CodeView.d.ts +39 -30
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +39 -30
  37. package/lib/Color.d.ts +39 -30
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +39 -30
  40. package/lib/Document.d.ts +39 -30
  41. package/lib/{Drawer-B1rmIQfS.cjs → Drawer-BQLKKEOB.cjs} +1 -1
  42. package/lib/{Drawer-DEqRsjHw.js → Drawer-BouNhUKq.js} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +39 -30
  45. package/lib/Drawer.d.ts +39 -30
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +39 -30
  49. package/lib/Emoji.d.ts +39 -30
  50. package/lib/Emoji.js +1 -1
  51. package/lib/{Excalidraw-Qr5vHe9J.cjs → Excalidraw-DYbRbH0x.cjs} +1 -1
  52. package/lib/{Excalidraw-D2y-x-OZ.js → Excalidraw-u2P8Olgi.js} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +39 -30
  55. package/lib/Excalidraw.d.ts +39 -30
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +4 -4
  58. package/lib/ExportPdf.d.cts +40 -30
  59. package/lib/ExportPdf.d.ts +40 -30
  60. package/lib/ExportPdf.js +34 -27
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +39 -30
  63. package/lib/ExportWord.d.ts +39 -30
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +39 -30
  67. package/lib/FontFamily.d.ts +39 -30
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +39 -30
  71. package/lib/FontSize.d.ts +39 -30
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +39 -30
  75. package/lib/FormatPainter.d.ts +39 -30
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +39 -30
  79. package/lib/Heading.d.ts +39 -30
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +39 -30
  83. package/lib/Highlight.d.ts +39 -30
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +39 -30
  87. package/lib/History.d.ts +39 -30
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +39 -30
  91. package/lib/HorizontalRule.d.ts +39 -30
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +39 -30
  95. package/lib/Iframe.d.ts +39 -30
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +39 -30
  99. package/lib/Image.d.ts +39 -30
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +39 -30
  103. package/lib/ImageGif.d.ts +39 -30
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +39 -30
  107. package/lib/ImportWord.d.ts +39 -30
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +39 -30
  111. package/lib/Indent.d.ts +39 -30
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +39 -30
  115. package/lib/Italic.d.ts +39 -30
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +39 -30
  119. package/lib/Katex.d.ts +39 -30
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +39 -30
  123. package/lib/LineHeight.d.ts +39 -30
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +39 -30
  127. package/lib/Link.d.ts +39 -30
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +39 -30
  130. package/lib/ListItem.d.ts +39 -30
  131. package/lib/Mention.d.cts +39 -30
  132. package/lib/Mention.d.ts +39 -30
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +39 -30
  135. package/lib/Mermaid.d.ts +39 -30
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +39 -30
  139. package/lib/MoreMark.d.ts +39 -30
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +39 -30
  143. package/lib/MultiColumn.d.ts +39 -30
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +39 -30
  147. package/lib/OrderedList.d.ts +39 -30
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-CSA367l8.cjs → RichTextEditor-8GrfwaB4.cjs} +1 -1
  150. package/lib/{RichTextEditor-CrDGx-K7.js → RichTextEditor-VkzSL04E.js} +148 -109
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +39 -30
  153. package/lib/SearchAndReplace.d.ts +39 -30
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +39 -30
  156. package/lib/Selection.d.ts +39 -30
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +39 -30
  159. package/lib/SlashCommand.d.ts +39 -30
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +39 -30
  163. package/lib/Strike.d.ts +39 -30
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +39 -30
  167. package/lib/SubAndSuperScript.d.ts +39 -30
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +39 -30
  171. package/lib/Table.d.ts +39 -30
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +39 -30
  175. package/lib/TableOfContent.d.ts +39 -30
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +39 -30
  179. package/lib/TaskList.d.ts +39 -30
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +39 -30
  183. package/lib/TextAlign.d.ts +39 -30
  184. package/lib/TextAlign.js +1 -1
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +39 -30
  187. package/lib/TextBubble.d.ts +39 -30
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +39 -30
  191. package/lib/TextDirection.d.ts +39 -30
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +39 -30
  195. package/lib/TextUnderline.d.ts +39 -30
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +39 -30
  198. package/lib/TrailingNode.d.ts +39 -30
  199. package/lib/{Twitter-D-kqw1ZB.js → Twitter-DlKz1fXJ.js} +1 -1
  200. package/lib/{Twitter-BRF2Ehp3.cjs → Twitter-u_6ZejIn.cjs} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +39 -30
  203. package/lib/Twitter.d.ts +39 -30
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +39 -30
  207. package/lib/Video.d.ts +39 -30
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +39 -30
  211. package/lib/bubble-extra.d.ts +39 -30
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +39 -30
  215. package/lib/index.d.ts +39 -30
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +39 -30
  218. package/lib/locale-bundle.d.ts +39 -30
  219. package/lib/{textarea-06Uv95yx.js → textarea-BA9ETXT8.js} +1 -1
  220. package/lib/{textarea-QE8jlGEs.cjs → textarea-ESw2TM_u.cjs} +1 -1
  221. package/package.json +1 -1
@@ -59,9 +59,11 @@ declare module '@tiptap/core' {
59
59
 
60
60
  declare module '@tiptap/core' {
61
61
  interface Commands<ReturnType> {
62
- drawer: {
63
- setDrawer: (options: any, replace?: any) => ReturnType;
64
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
62
+ emoji: {
63
+ setEmoji: (emoji: {
64
+ name: string;
65
+ emoji: string;
66
+ }) => ReturnType;
65
67
  };
66
68
  }
67
69
  }
@@ -78,11 +80,18 @@ declare module '@tiptap/core' {
78
80
 
79
81
  declare module '@tiptap/core' {
80
82
  interface Commands<ReturnType> {
81
- emoji: {
82
- setEmoji: (emoji: {
83
- name: string;
84
- emoji: string;
85
- }) => ReturnType;
83
+ drawer: {
84
+ setDrawer: (options: any, replace?: any) => ReturnType;
85
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
86
+ };
87
+ }
88
+ }
89
+
90
+
91
+ declare module '@tiptap/core' {
92
+ interface Commands<ReturnType> {
93
+ exportPdf: {
94
+ exportToPdf: () => ReturnType;
86
95
  };
87
96
  }
88
97
  }
@@ -179,15 +188,6 @@ declare module '@tiptap/core' {
179
188
  }
180
189
 
181
190
 
182
- declare module '@tiptap/core' {
183
- interface Commands<ReturnType> {
184
- katex: {
185
- setKatex: (arg?: IKatexAttrs) => ReturnType;
186
- };
187
- }
188
- }
189
-
190
-
191
191
  declare module '@tiptap/core' {
192
192
  interface Commands<ReturnType> {
193
193
  indent: {
@@ -204,6 +204,15 @@ declare module '@tiptap/core' {
204
204
  }
205
205
 
206
206
 
207
+ declare module '@tiptap/core' {
208
+ interface Commands<ReturnType> {
209
+ katex: {
210
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
211
+ };
212
+ }
213
+ }
214
+
215
+
207
216
  declare module '@tiptap/core' {
208
217
  interface Commands<ReturnType> {
209
218
  lineHeight: {
@@ -265,14 +274,15 @@ declare module '@tiptap/core' {
265
274
 
266
275
  declare module '@tiptap/core' {
267
276
  interface Commands<ReturnType> {
268
- twitter: {
277
+ video: {
269
278
  /**
270
- * Insert a tweet
271
- * @param options The tweet attributes
272
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
279
+ * Add an video
273
280
  */
274
- setTweet: (options: SetTweetOptions) => ReturnType;
275
- updateTweet: (options: SetTweetOptions) => ReturnType;
281
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
282
+ /**
283
+ * Update an video
284
+ */
285
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
276
286
  };
277
287
  }
278
288
  }
@@ -280,15 +290,14 @@ declare module '@tiptap/core' {
280
290
 
281
291
  declare module '@tiptap/core' {
282
292
  interface Commands<ReturnType> {
283
- video: {
284
- /**
285
- * Add an video
286
- */
287
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
293
+ twitter: {
288
294
  /**
289
- * Update an video
295
+ * Insert a tweet
296
+ * @param options The tweet attributes
297
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
290
298
  */
291
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
299
+ setTweet: (options: SetTweetOptions) => ReturnType;
300
+ updateTweet: (options: SetTweetOptions) => ReturnType;
292
301
  };
293
302
  }
294
303
  }
package/lib/ImageGif.d.ts CHANGED
@@ -59,9 +59,11 @@ declare module '@tiptap/core' {
59
59
 
60
60
  declare module '@tiptap/core' {
61
61
  interface Commands<ReturnType> {
62
- drawer: {
63
- setDrawer: (options: any, replace?: any) => ReturnType;
64
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
62
+ emoji: {
63
+ setEmoji: (emoji: {
64
+ name: string;
65
+ emoji: string;
66
+ }) => ReturnType;
65
67
  };
66
68
  }
67
69
  }
@@ -78,11 +80,18 @@ declare module '@tiptap/core' {
78
80
 
79
81
  declare module '@tiptap/core' {
80
82
  interface Commands<ReturnType> {
81
- emoji: {
82
- setEmoji: (emoji: {
83
- name: string;
84
- emoji: string;
85
- }) => ReturnType;
83
+ drawer: {
84
+ setDrawer: (options: any, replace?: any) => ReturnType;
85
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
86
+ };
87
+ }
88
+ }
89
+
90
+
91
+ declare module '@tiptap/core' {
92
+ interface Commands<ReturnType> {
93
+ exportPdf: {
94
+ exportToPdf: () => ReturnType;
86
95
  };
87
96
  }
88
97
  }
@@ -179,15 +188,6 @@ declare module '@tiptap/core' {
179
188
  }
180
189
 
181
190
 
182
- declare module '@tiptap/core' {
183
- interface Commands<ReturnType> {
184
- katex: {
185
- setKatex: (arg?: IKatexAttrs) => ReturnType;
186
- };
187
- }
188
- }
189
-
190
-
191
191
  declare module '@tiptap/core' {
192
192
  interface Commands<ReturnType> {
193
193
  indent: {
@@ -204,6 +204,15 @@ declare module '@tiptap/core' {
204
204
  }
205
205
 
206
206
 
207
+ declare module '@tiptap/core' {
208
+ interface Commands<ReturnType> {
209
+ katex: {
210
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
211
+ };
212
+ }
213
+ }
214
+
215
+
207
216
  declare module '@tiptap/core' {
208
217
  interface Commands<ReturnType> {
209
218
  lineHeight: {
@@ -265,14 +274,15 @@ declare module '@tiptap/core' {
265
274
 
266
275
  declare module '@tiptap/core' {
267
276
  interface Commands<ReturnType> {
268
- twitter: {
277
+ video: {
269
278
  /**
270
- * Insert a tweet
271
- * @param options The tweet attributes
272
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
279
+ * Add an video
273
280
  */
274
- setTweet: (options: SetTweetOptions) => ReturnType;
275
- updateTweet: (options: SetTweetOptions) => ReturnType;
281
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
282
+ /**
283
+ * Update an video
284
+ */
285
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
276
286
  };
277
287
  }
278
288
  }
@@ -280,15 +290,14 @@ declare module '@tiptap/core' {
280
290
 
281
291
  declare module '@tiptap/core' {
282
292
  interface Commands<ReturnType> {
283
- video: {
284
- /**
285
- * Add an video
286
- */
287
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
293
+ twitter: {
288
294
  /**
289
- * Update an video
295
+ * Insert a tweet
296
+ * @param options The tweet attributes
297
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
290
298
  */
291
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
299
+ setTweet: (options: SetTweetOptions) => ReturnType;
300
+ updateTweet: (options: SetTweetOptions) => ReturnType;
292
301
  };
293
302
  }
294
303
  }
package/lib/ImageGif.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./index-DI9T3iLd.js";
2
- import { af as r, af as t } from "./RichTextEditor-CrDGx-K7.js";
2
+ import { af as r, af as t } from "./RichTextEditor-VkzSL04E.js";
3
3
  import "./dom-dataset-Di3tIRrR.js";
4
4
  export {
5
5
  r as ImageGif,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Es=require("./index-ByRfqzMr.cjs"),br=require("react/jsx-runtime"),ya=require("react"),je=require("./RichTextEditor-CSA367l8.cjs"),As=require("./index-D_A0TBRA.cjs");var Ve={},Ai="1.13.7",Da=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Ht=Array.prototype,Fi=Object.prototype,va=typeof Symbol<"u"?Symbol.prototype:null,Fs=Ht.push,it=Ht.slice,Qn=Fi.toString,Cs=Fi.hasOwnProperty,qc=typeof ArrayBuffer<"u",Ss=typeof DataView<"u",Bs=Array.isArray,xa=Object.keys,_a=Object.create,Ua=qc&&ArrayBuffer.isView,ks=isNaN,Ws=isFinite,Pc=!{toString:null}.propertyIsEnumerable("toString"),Ta=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Rs=Math.pow(2,53)-1;function Le(e,n){return n=n==null?e.length-1:+n,function(){for(var t=Math.max(arguments.length-n,0),r=Array(t),c=0;c<t;c++)r[c]=arguments[c+n];switch(n){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(n+1);for(c=0;c<n;c++)i[c]=arguments[c];return i[n]=r,e.apply(this,i)}}function hn(e){var n=typeof e;return n==="function"||n==="object"&&!!e}function zc(e){return e===null}function Ci(e){return e===void 0}function Si(e){return e===!0||e===!1||Qn.call(e)==="[object Boolean]"}function jc(e){return!!(e&&e.nodeType===1)}function Ie(e){var n="[object "+e+"]";return function(t){return Qn.call(t)===n}}const Gt=Ie("String"),Bi=Ie("Number"),Xc=Ie("Date"),Vc=Ie("RegExp"),Hc=Ie("Error"),ki=Ie("Symbol"),Wi=Ie("ArrayBuffer");var Gc=Ie("Function"),Ns=Da.document&&Da.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Ns!="function"&&(Gc=function(e){return typeof e=="function"||!1});const Oe=Gc,Zc=Ie("Object");var $c=Ss&&(!/\[native code\]/.test(String(DataView))||Zc(new DataView(new ArrayBuffer(8)))),Ri=typeof Map<"u"&&Zc(new Map),Os=Ie("DataView");function Is(e){return e!=null&&Oe(e.getInt8)&&Wi(e.buffer)}const Jn=$c?Is:Os,pn=Bs||Ie("Array");function gn(e,n){return e!=null&&Cs.call(e,n)}var Ti=Ie("Arguments");(function(){Ti(arguments)||(Ti=function(e){return gn(e,"callee")})})();const Zt=Ti;function Yc(e){return!ki(e)&&Ws(e)&&!isNaN(parseFloat(e))}function Ni(e){return Bi(e)&&ks(e)}function Oi(e){return function(){return e}}function Kc(e){return function(n){var t=e(n);return typeof t=="number"&&t>=0&&t<=Rs}}function Qc(e){return function(n){return n==null?void 0:n[e]}}const Pt=Qc("byteLength"),Ls=Kc(Pt);var Ms=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function qs(e){return Ua?Ua(e)&&!Jn(e):Ls(e)&&Ms.test(Qn.call(e))}const Ii=qc?qs:Oi(!1),qe=Qc("length");function Ps(e){for(var n={},t=e.length,r=0;r<t;++r)n[e[r]]=!0;return{contains:function(c){return n[c]===!0},push:function(c){return n[c]=!0,e.push(c)}}}function Jc(e,n){n=Ps(n);var t=Ta.length,r=e.constructor,c=Oe(r)&&r.prototype||Fi,i="constructor";for(gn(e,i)&&!n.contains(i)&&n.push(i);t--;)i=Ta[t],i in e&&e[i]!==c[i]&&!n.contains(i)&&n.push(i)}function ke(e){if(!hn(e))return[];if(xa)return xa(e);var n=[];for(var t in e)gn(e,t)&&n.push(t);return Pc&&Jc(e,n),n}function eu(e){if(e==null)return!0;var n=qe(e);return typeof n=="number"&&(pn(e)||Gt(e)||Zt(e))?n===0:qe(ke(e))===0}function Li(e,n){var t=ke(n),r=t.length;if(e==null)return!r;for(var c=Object(e),i=0;i<r;i++){var a=t[i];if(n[a]!==c[a]||!(a in c))return!1}return!0}function Ee(e){if(e instanceof Ee)return e;if(!(this instanceof Ee))return new Ee(e);this._wrapped=e}Ee.VERSION=Ai;Ee.prototype.value=function(){return this._wrapped};Ee.prototype.valueOf=Ee.prototype.toJSON=Ee.prototype.value;Ee.prototype.toString=function(){return String(this._wrapped)};function wa(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Pt(e))}var Ea="[object DataView]";function wi(e,n,t,r){if(e===n)return e!==0||1/e===1/n;if(e==null||n==null)return!1;if(e!==e)return n!==n;var c=typeof e;return c!=="function"&&c!=="object"&&typeof n!="object"?!1:nu(e,n,t,r)}function nu(e,n,t,r){e instanceof Ee&&(e=e._wrapped),n instanceof Ee&&(n=n._wrapped);var c=Qn.call(e);if(c!==Qn.call(n))return!1;if($c&&c=="[object Object]"&&Jn(e)){if(!Jn(n))return!1;c=Ea}switch(c){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:+e==0?1/+e===1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n;case"[object Symbol]":return va.valueOf.call(e)===va.valueOf.call(n);case"[object ArrayBuffer]":case Ea:return nu(wa(e),wa(n),t,r)}var i=c==="[object Array]";if(!i&&Ii(e)){var a=Pt(e);if(a!==Pt(n))return!1;if(e.buffer===n.buffer&&e.byteOffset===n.byteOffset)return!0;i=!0}if(!i){if(typeof e!="object"||typeof n!="object")return!1;var o=e.constructor,u=n.constructor;if(o!==u&&!(Oe(o)&&o instanceof o&&Oe(u)&&u instanceof u)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],r=r||[];for(var l=t.length;l--;)if(t[l]===e)return r[l]===n;if(t.push(e),r.push(n),i){if(l=e.length,l!==n.length)return!1;for(;l--;)if(!wi(e[l],n[l],t,r))return!1}else{var b=ke(e),m;if(l=b.length,ke(n).length!==l)return!1;for(;l--;)if(m=b[l],!(gn(n,m)&&wi(e[m],n[m],t,r)))return!1}return t.pop(),r.pop(),!0}function tu(e,n){return wi(e,n)}function Mn(e){if(!hn(e))return[];var n=[];for(var t in e)n.push(t);return Pc&&Jc(e,n),n}function Mi(e){var n=qe(e);return function(t){if(t==null)return!1;var r=Mn(t);if(qe(r))return!1;for(var c=0;c<n;c++)if(!Oe(t[e[c]]))return!1;return e!==au||!Oe(t[qi])}}var qi="forEach",ru="has",Pi=["clear","delete"],iu=["get",ru,"set"],zs=Pi.concat(qi,iu),au=Pi.concat(iu),js=["add"].concat(Pi,qi,ru);const ou=Ri?Mi(zs):Ie("Map"),cu=Ri?Mi(au):Ie("WeakMap"),uu=Ri?Mi(js):Ie("Set"),su=Ie("WeakSet");function An(e){for(var n=ke(e),t=n.length,r=Array(t),c=0;c<t;c++)r[c]=e[n[c]];return r}function du(e){for(var n=ke(e),t=n.length,r=Array(t),c=0;c<t;c++)r[c]=[n[c],e[n[c]]];return r}function zi(e){for(var n={},t=ke(e),r=0,c=t.length;r<c;r++)n[e[t[r]]]=t[r];return n}function et(e){var n=[];for(var t in e)Oe(e[t])&&n.push(t);return n.sort()}function ji(e,n){return function(t){var r=arguments.length;if(n&&(t=Object(t)),r<2||t==null)return t;for(var c=1;c<r;c++)for(var i=arguments[c],a=e(i),o=a.length,u=0;u<o;u++){var l=a[u];(!n||t[l]===void 0)&&(t[l]=i[l])}return t}}const Xi=ji(Mn),In=ji(ke),Vi=ji(Mn,!0);function Xs(){return function(){}}function lu(e){if(!hn(e))return{};if(_a)return _a(e);var n=Xs();n.prototype=e;var t=new n;return n.prototype=null,t}function fu(e,n){var t=lu(e);return n&&In(t,n),t}function hu(e){return hn(e)?pn(e)?e.slice():Xi({},e):e}function pu(e,n){return n(e),e}function Hi(e){return pn(e)?e:[e]}Ee.toPath=Hi;function at(e){return Ee.toPath(e)}function Gi(e,n){for(var t=n.length,r=0;r<t;r++){if(e==null)return;e=e[n[r]]}return t?e:void 0}function Zi(e,n,t){var r=Gi(e,at(n));return Ci(r)?t:r}function gu(e,n){n=at(n);for(var t=n.length,r=0;r<t;r++){var c=n[r];if(!gn(e,c))return!1;e=e[c]}return!!t}function $t(e){return e}function En(e){return e=In({},e),function(n){return Li(n,e)}}function Yt(e){return e=at(e),function(n){return Gi(n,e)}}function ot(e,n,t){if(n===void 0)return e;switch(t??3){case 1:return function(r){return e.call(n,r)};case 3:return function(r,c,i){return e.call(n,r,c,i)};case 4:return function(r,c,i,a){return e.call(n,r,c,i,a)}}return function(){return e.apply(n,arguments)}}function mu(e,n,t){return e==null?$t:Oe(e)?ot(e,n,t):hn(e)&&!pn(e)?En(e):Yt(e)}function Kt(e,n){return mu(e,n,1/0)}Ee.iteratee=Kt;function Pe(e,n,t){return Ee.iteratee!==Kt?Ee.iteratee(e,n):mu(e,n,t)}function bu(e,n,t){n=Pe(n,t);for(var r=ke(e),c=r.length,i={},a=0;a<c;a++){var o=r[a];i[o]=n(e[o],o,e)}return i}function $i(){}function yu(e){return e==null?$i:function(n){return Zi(e,n)}}function Du(e,n,t){var r=Array(Math.max(0,e));n=ot(n,t,1);for(var c=0;c<e;c++)r[c]=n(c);return r}function zt(e,n){return n==null&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))}const Ln=Date.now||function(){return new Date().getTime()};function vu(e){var n=function(i){return e[i]},t="(?:"+ke(e).join("|")+")",r=RegExp(t),c=RegExp(t,"g");return function(i){return i=i==null?"":""+i,r.test(i)?i.replace(c,n):i}}const xu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},_u=vu(xu),Vs=zi(xu),Uu=vu(Vs),Tu=Ee.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var yr=/(.)^/,Hs={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Gs=/\\|'|\r|\n|\u2028|\u2029/g;function Zs(e){return"\\"+Hs[e]}var $s=/^\s*(\w|\$)+\s*$/;function wu(e,n,t){!n&&t&&(n=t),n=Vi({},n,Ee.templateSettings);var r=RegExp([(n.escape||yr).source,(n.interpolate||yr).source,(n.evaluate||yr).source].join("|")+"|$","g"),c=0,i="__p+='";e.replace(r,function(l,b,m,g,h){return i+=e.slice(c,h).replace(Gs,Zs),c=h+l.length,b?i+=`'+
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Es=require("./index-ByRfqzMr.cjs"),br=require("react/jsx-runtime"),ya=require("react"),je=require("./RichTextEditor-8GrfwaB4.cjs"),As=require("./index-D_A0TBRA.cjs");var Ve={},Ai="1.13.7",Da=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Ht=Array.prototype,Fi=Object.prototype,va=typeof Symbol<"u"?Symbol.prototype:null,Fs=Ht.push,it=Ht.slice,Qn=Fi.toString,Cs=Fi.hasOwnProperty,qc=typeof ArrayBuffer<"u",Ss=typeof DataView<"u",Bs=Array.isArray,xa=Object.keys,_a=Object.create,Ua=qc&&ArrayBuffer.isView,ks=isNaN,Ws=isFinite,Pc=!{toString:null}.propertyIsEnumerable("toString"),Ta=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Rs=Math.pow(2,53)-1;function Le(e,n){return n=n==null?e.length-1:+n,function(){for(var t=Math.max(arguments.length-n,0),r=Array(t),c=0;c<t;c++)r[c]=arguments[c+n];switch(n){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(n+1);for(c=0;c<n;c++)i[c]=arguments[c];return i[n]=r,e.apply(this,i)}}function hn(e){var n=typeof e;return n==="function"||n==="object"&&!!e}function zc(e){return e===null}function Ci(e){return e===void 0}function Si(e){return e===!0||e===!1||Qn.call(e)==="[object Boolean]"}function jc(e){return!!(e&&e.nodeType===1)}function Ie(e){var n="[object "+e+"]";return function(t){return Qn.call(t)===n}}const Gt=Ie("String"),Bi=Ie("Number"),Xc=Ie("Date"),Vc=Ie("RegExp"),Hc=Ie("Error"),ki=Ie("Symbol"),Wi=Ie("ArrayBuffer");var Gc=Ie("Function"),Ns=Da.document&&Da.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Ns!="function"&&(Gc=function(e){return typeof e=="function"||!1});const Oe=Gc,Zc=Ie("Object");var $c=Ss&&(!/\[native code\]/.test(String(DataView))||Zc(new DataView(new ArrayBuffer(8)))),Ri=typeof Map<"u"&&Zc(new Map),Os=Ie("DataView");function Is(e){return e!=null&&Oe(e.getInt8)&&Wi(e.buffer)}const Jn=$c?Is:Os,pn=Bs||Ie("Array");function gn(e,n){return e!=null&&Cs.call(e,n)}var Ti=Ie("Arguments");(function(){Ti(arguments)||(Ti=function(e){return gn(e,"callee")})})();const Zt=Ti;function Yc(e){return!ki(e)&&Ws(e)&&!isNaN(parseFloat(e))}function Ni(e){return Bi(e)&&ks(e)}function Oi(e){return function(){return e}}function Kc(e){return function(n){var t=e(n);return typeof t=="number"&&t>=0&&t<=Rs}}function Qc(e){return function(n){return n==null?void 0:n[e]}}const Pt=Qc("byteLength"),Ls=Kc(Pt);var Ms=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function qs(e){return Ua?Ua(e)&&!Jn(e):Ls(e)&&Ms.test(Qn.call(e))}const Ii=qc?qs:Oi(!1),qe=Qc("length");function Ps(e){for(var n={},t=e.length,r=0;r<t;++r)n[e[r]]=!0;return{contains:function(c){return n[c]===!0},push:function(c){return n[c]=!0,e.push(c)}}}function Jc(e,n){n=Ps(n);var t=Ta.length,r=e.constructor,c=Oe(r)&&r.prototype||Fi,i="constructor";for(gn(e,i)&&!n.contains(i)&&n.push(i);t--;)i=Ta[t],i in e&&e[i]!==c[i]&&!n.contains(i)&&n.push(i)}function ke(e){if(!hn(e))return[];if(xa)return xa(e);var n=[];for(var t in e)gn(e,t)&&n.push(t);return Pc&&Jc(e,n),n}function eu(e){if(e==null)return!0;var n=qe(e);return typeof n=="number"&&(pn(e)||Gt(e)||Zt(e))?n===0:qe(ke(e))===0}function Li(e,n){var t=ke(n),r=t.length;if(e==null)return!r;for(var c=Object(e),i=0;i<r;i++){var a=t[i];if(n[a]!==c[a]||!(a in c))return!1}return!0}function Ee(e){if(e instanceof Ee)return e;if(!(this instanceof Ee))return new Ee(e);this._wrapped=e}Ee.VERSION=Ai;Ee.prototype.value=function(){return this._wrapped};Ee.prototype.valueOf=Ee.prototype.toJSON=Ee.prototype.value;Ee.prototype.toString=function(){return String(this._wrapped)};function wa(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Pt(e))}var Ea="[object DataView]";function wi(e,n,t,r){if(e===n)return e!==0||1/e===1/n;if(e==null||n==null)return!1;if(e!==e)return n!==n;var c=typeof e;return c!=="function"&&c!=="object"&&typeof n!="object"?!1:nu(e,n,t,r)}function nu(e,n,t,r){e instanceof Ee&&(e=e._wrapped),n instanceof Ee&&(n=n._wrapped);var c=Qn.call(e);if(c!==Qn.call(n))return!1;if($c&&c=="[object Object]"&&Jn(e)){if(!Jn(n))return!1;c=Ea}switch(c){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:+e==0?1/+e===1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n;case"[object Symbol]":return va.valueOf.call(e)===va.valueOf.call(n);case"[object ArrayBuffer]":case Ea:return nu(wa(e),wa(n),t,r)}var i=c==="[object Array]";if(!i&&Ii(e)){var a=Pt(e);if(a!==Pt(n))return!1;if(e.buffer===n.buffer&&e.byteOffset===n.byteOffset)return!0;i=!0}if(!i){if(typeof e!="object"||typeof n!="object")return!1;var o=e.constructor,u=n.constructor;if(o!==u&&!(Oe(o)&&o instanceof o&&Oe(u)&&u instanceof u)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],r=r||[];for(var l=t.length;l--;)if(t[l]===e)return r[l]===n;if(t.push(e),r.push(n),i){if(l=e.length,l!==n.length)return!1;for(;l--;)if(!wi(e[l],n[l],t,r))return!1}else{var b=ke(e),m;if(l=b.length,ke(n).length!==l)return!1;for(;l--;)if(m=b[l],!(gn(n,m)&&wi(e[m],n[m],t,r)))return!1}return t.pop(),r.pop(),!0}function tu(e,n){return wi(e,n)}function Mn(e){if(!hn(e))return[];var n=[];for(var t in e)n.push(t);return Pc&&Jc(e,n),n}function Mi(e){var n=qe(e);return function(t){if(t==null)return!1;var r=Mn(t);if(qe(r))return!1;for(var c=0;c<n;c++)if(!Oe(t[e[c]]))return!1;return e!==au||!Oe(t[qi])}}var qi="forEach",ru="has",Pi=["clear","delete"],iu=["get",ru,"set"],zs=Pi.concat(qi,iu),au=Pi.concat(iu),js=["add"].concat(Pi,qi,ru);const ou=Ri?Mi(zs):Ie("Map"),cu=Ri?Mi(au):Ie("WeakMap"),uu=Ri?Mi(js):Ie("Set"),su=Ie("WeakSet");function An(e){for(var n=ke(e),t=n.length,r=Array(t),c=0;c<t;c++)r[c]=e[n[c]];return r}function du(e){for(var n=ke(e),t=n.length,r=Array(t),c=0;c<t;c++)r[c]=[n[c],e[n[c]]];return r}function zi(e){for(var n={},t=ke(e),r=0,c=t.length;r<c;r++)n[e[t[r]]]=t[r];return n}function et(e){var n=[];for(var t in e)Oe(e[t])&&n.push(t);return n.sort()}function ji(e,n){return function(t){var r=arguments.length;if(n&&(t=Object(t)),r<2||t==null)return t;for(var c=1;c<r;c++)for(var i=arguments[c],a=e(i),o=a.length,u=0;u<o;u++){var l=a[u];(!n||t[l]===void 0)&&(t[l]=i[l])}return t}}const Xi=ji(Mn),In=ji(ke),Vi=ji(Mn,!0);function Xs(){return function(){}}function lu(e){if(!hn(e))return{};if(_a)return _a(e);var n=Xs();n.prototype=e;var t=new n;return n.prototype=null,t}function fu(e,n){var t=lu(e);return n&&In(t,n),t}function hu(e){return hn(e)?pn(e)?e.slice():Xi({},e):e}function pu(e,n){return n(e),e}function Hi(e){return pn(e)?e:[e]}Ee.toPath=Hi;function at(e){return Ee.toPath(e)}function Gi(e,n){for(var t=n.length,r=0;r<t;r++){if(e==null)return;e=e[n[r]]}return t?e:void 0}function Zi(e,n,t){var r=Gi(e,at(n));return Ci(r)?t:r}function gu(e,n){n=at(n);for(var t=n.length,r=0;r<t;r++){var c=n[r];if(!gn(e,c))return!1;e=e[c]}return!!t}function $t(e){return e}function En(e){return e=In({},e),function(n){return Li(n,e)}}function Yt(e){return e=at(e),function(n){return Gi(n,e)}}function ot(e,n,t){if(n===void 0)return e;switch(t??3){case 1:return function(r){return e.call(n,r)};case 3:return function(r,c,i){return e.call(n,r,c,i)};case 4:return function(r,c,i,a){return e.call(n,r,c,i,a)}}return function(){return e.apply(n,arguments)}}function mu(e,n,t){return e==null?$t:Oe(e)?ot(e,n,t):hn(e)&&!pn(e)?En(e):Yt(e)}function Kt(e,n){return mu(e,n,1/0)}Ee.iteratee=Kt;function Pe(e,n,t){return Ee.iteratee!==Kt?Ee.iteratee(e,n):mu(e,n,t)}function bu(e,n,t){n=Pe(n,t);for(var r=ke(e),c=r.length,i={},a=0;a<c;a++){var o=r[a];i[o]=n(e[o],o,e)}return i}function $i(){}function yu(e){return e==null?$i:function(n){return Zi(e,n)}}function Du(e,n,t){var r=Array(Math.max(0,e));n=ot(n,t,1);for(var c=0;c<e;c++)r[c]=n(c);return r}function zt(e,n){return n==null&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))}const Ln=Date.now||function(){return new Date().getTime()};function vu(e){var n=function(i){return e[i]},t="(?:"+ke(e).join("|")+")",r=RegExp(t),c=RegExp(t,"g");return function(i){return i=i==null?"":""+i,r.test(i)?i.replace(c,n):i}}const xu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},_u=vu(xu),Vs=zi(xu),Uu=vu(Vs),Tu=Ee.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var yr=/(.)^/,Hs={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Gs=/\\|'|\r|\n|\u2028|\u2029/g;function Zs(e){return"\\"+Hs[e]}var $s=/^\s*(\w|\$)+\s*$/;function wu(e,n,t){!n&&t&&(n=t),n=Vi({},n,Ee.templateSettings);var r=RegExp([(n.escape||yr).source,(n.interpolate||yr).source,(n.evaluate||yr).source].join("|")+"|$","g"),c=0,i="__p+='";e.replace(r,function(l,b,m,g,h){return i+=e.slice(c,h).replace(Gs,Zs),c=h+l.length,b?i+=`'+
2
2
  ((__t=(`+b+`))==null?'':_.escape(__t))+
3
3
  '`:m?i+=`'+
4
4
  ((__t=(`+m+`))==null?'':__t)+
@@ -120,9 +120,11 @@ declare module '@tiptap/core' {
120
120
 
121
121
  declare module '@tiptap/core' {
122
122
  interface Commands<ReturnType> {
123
- drawer: {
124
- setDrawer: (options: any, replace?: any) => ReturnType;
125
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
123
+ emoji: {
124
+ setEmoji: (emoji: {
125
+ name: string;
126
+ emoji: string;
127
+ }) => ReturnType;
126
128
  };
127
129
  }
128
130
  }
@@ -139,11 +141,18 @@ declare module '@tiptap/core' {
139
141
 
140
142
  declare module '@tiptap/core' {
141
143
  interface Commands<ReturnType> {
142
- emoji: {
143
- setEmoji: (emoji: {
144
- name: string;
145
- emoji: string;
146
- }) => ReturnType;
144
+ drawer: {
145
+ setDrawer: (options: any, replace?: any) => ReturnType;
146
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
147
+ };
148
+ }
149
+ }
150
+
151
+
152
+ declare module '@tiptap/core' {
153
+ interface Commands<ReturnType> {
154
+ exportPdf: {
155
+ exportToPdf: () => ReturnType;
147
156
  };
148
157
  }
149
158
  }
@@ -240,15 +249,6 @@ declare module '@tiptap/core' {
240
249
  }
241
250
 
242
251
 
243
- declare module '@tiptap/core' {
244
- interface Commands<ReturnType> {
245
- katex: {
246
- setKatex: (arg?: IKatexAttrs) => ReturnType;
247
- };
248
- }
249
- }
250
-
251
-
252
252
  declare module '@tiptap/core' {
253
253
  interface Commands<ReturnType> {
254
254
  indent: {
@@ -265,6 +265,15 @@ declare module '@tiptap/core' {
265
265
  }
266
266
 
267
267
 
268
+ declare module '@tiptap/core' {
269
+ interface Commands<ReturnType> {
270
+ katex: {
271
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
272
+ };
273
+ }
274
+ }
275
+
276
+
268
277
  declare module '@tiptap/core' {
269
278
  interface Commands<ReturnType> {
270
279
  lineHeight: {
@@ -326,14 +335,15 @@ declare module '@tiptap/core' {
326
335
 
327
336
  declare module '@tiptap/core' {
328
337
  interface Commands<ReturnType> {
329
- twitter: {
338
+ video: {
330
339
  /**
331
- * Insert a tweet
332
- * @param options The tweet attributes
333
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
340
+ * Add an video
334
341
  */
335
- setTweet: (options: SetTweetOptions) => ReturnType;
336
- updateTweet: (options: SetTweetOptions) => ReturnType;
342
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
343
+ /**
344
+ * Update an video
345
+ */
346
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
337
347
  };
338
348
  }
339
349
  }
@@ -341,15 +351,14 @@ declare module '@tiptap/core' {
341
351
 
342
352
  declare module '@tiptap/core' {
343
353
  interface Commands<ReturnType> {
344
- video: {
345
- /**
346
- * Add an video
347
- */
348
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
354
+ twitter: {
349
355
  /**
350
- * Update an video
356
+ * Insert a tweet
357
+ * @param options The tweet attributes
358
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
351
359
  */
352
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
360
+ setTweet: (options: SetTweetOptions) => ReturnType;
361
+ updateTweet: (options: SetTweetOptions) => ReturnType;
353
362
  };
354
363
  }
355
364
  }
@@ -120,9 +120,11 @@ declare module '@tiptap/core' {
120
120
 
121
121
  declare module '@tiptap/core' {
122
122
  interface Commands<ReturnType> {
123
- drawer: {
124
- setDrawer: (options: any, replace?: any) => ReturnType;
125
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
123
+ emoji: {
124
+ setEmoji: (emoji: {
125
+ name: string;
126
+ emoji: string;
127
+ }) => ReturnType;
126
128
  };
127
129
  }
128
130
  }
@@ -139,11 +141,18 @@ declare module '@tiptap/core' {
139
141
 
140
142
  declare module '@tiptap/core' {
141
143
  interface Commands<ReturnType> {
142
- emoji: {
143
- setEmoji: (emoji: {
144
- name: string;
145
- emoji: string;
146
- }) => ReturnType;
144
+ drawer: {
145
+ setDrawer: (options: any, replace?: any) => ReturnType;
146
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
147
+ };
148
+ }
149
+ }
150
+
151
+
152
+ declare module '@tiptap/core' {
153
+ interface Commands<ReturnType> {
154
+ exportPdf: {
155
+ exportToPdf: () => ReturnType;
147
156
  };
148
157
  }
149
158
  }
@@ -240,15 +249,6 @@ declare module '@tiptap/core' {
240
249
  }
241
250
 
242
251
 
243
- declare module '@tiptap/core' {
244
- interface Commands<ReturnType> {
245
- katex: {
246
- setKatex: (arg?: IKatexAttrs) => ReturnType;
247
- };
248
- }
249
- }
250
-
251
-
252
252
  declare module '@tiptap/core' {
253
253
  interface Commands<ReturnType> {
254
254
  indent: {
@@ -265,6 +265,15 @@ declare module '@tiptap/core' {
265
265
  }
266
266
 
267
267
 
268
+ declare module '@tiptap/core' {
269
+ interface Commands<ReturnType> {
270
+ katex: {
271
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
272
+ };
273
+ }
274
+ }
275
+
276
+
268
277
  declare module '@tiptap/core' {
269
278
  interface Commands<ReturnType> {
270
279
  lineHeight: {
@@ -326,14 +335,15 @@ declare module '@tiptap/core' {
326
335
 
327
336
  declare module '@tiptap/core' {
328
337
  interface Commands<ReturnType> {
329
- twitter: {
338
+ video: {
330
339
  /**
331
- * Insert a tweet
332
- * @param options The tweet attributes
333
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
340
+ * Add an video
334
341
  */
335
- setTweet: (options: SetTweetOptions) => ReturnType;
336
- updateTweet: (options: SetTweetOptions) => ReturnType;
342
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
343
+ /**
344
+ * Update an video
345
+ */
346
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
337
347
  };
338
348
  }
339
349
  }
@@ -341,15 +351,14 @@ declare module '@tiptap/core' {
341
351
 
342
352
  declare module '@tiptap/core' {
343
353
  interface Commands<ReturnType> {
344
- video: {
345
- /**
346
- * Add an video
347
- */
348
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
354
+ twitter: {
349
355
  /**
350
- * Update an video
356
+ * Insert a tweet
357
+ * @param options The tweet attributes
358
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
351
359
  */
352
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
360
+ setTweet: (options: SetTweetOptions) => ReturnType;
361
+ updateTweet: (options: SetTweetOptions) => ReturnType;
353
362
  };
354
363
  }
355
364
  }
package/lib/ImportWord.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { E as ws } from "./index-DI9T3iLd.js";
2
2
  import { jsxs as Es, jsx as ba } from "react/jsx-runtime";
3
3
  import { useState as As, useRef as Fs } from "react";
4
- import { a9 as Cs, aa as dn, ab as Ss, ac as Bs, A as ks, ad as Ws } from "./RichTextEditor-CrDGx-K7.js";
4
+ import { a9 as Cs, aa as dn, ab as Ss, ac as Bs, A as ks, ad as Ws } from "./RichTextEditor-VkzSL04E.js";
5
5
  import { u as Rs } from "./index-CsK90iVd.js";
6
6
  var Xe = {}, Ei = "1.13.7", ya = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || Function("return this")() || {}, Ht = Array.prototype, Ai = Object.prototype, Da = typeof Symbol < "u" ? Symbol.prototype : null, Ns = Ht.push, it = Ht.slice, Qn = Ai.toString, Os = Ai.hasOwnProperty, Mc = typeof ArrayBuffer < "u", Is = typeof DataView < "u", Ls = Array.isArray, va = Object.keys, xa = Object.create, _a = Mc && ArrayBuffer.isView, Ms = isNaN, qs = isFinite, qc = !{ toString: null }.propertyIsEnumerable("toString"), Ua = [
7
7
  "valueOf",
package/lib/Indent.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-ByRfqzMr.cjs"),t=require("./RichTextEditor-CSA367l8.cjs"),r=d.Extension.create({name:"indent",addOptions(){var n;return{...(n=this.parent)==null?void 0:n.call(this),types:["paragraph","heading","blockquote"],minIndent:t.IndentProps.min,maxIndent:t.IndentProps.max,button({editor:e,t:o}){return[{component:t.ActionButton,componentProps:{action:()=>{e.commands.indent()},shortcutKeys:["Tab"],icon:"IndentIncrease",tooltip:o("editor.indent.tooltip")}},{component:t.ActionButton,componentProps:{action:()=>{e.commands.outdent()},shortcutKeys:["Shift","Tab"],icon:"IndentDecrease",tooltip:o("editor.outdent.tooltip")}}]}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:n=>{const e=n.dataset.indent;return(e?Number.parseInt(e,10):0)||0},renderHTML:n=>n.indent?{"data-indent":n.indent}:{}}}}]},addCommands(){return{indent:()=>t.createIndentCommand({delta:t.IndentProps.more,types:this.options.types}),outdent:()=>t.createIndentCommand({delta:t.IndentProps.less,types:this.options.types})}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}});exports.Indent=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-ByRfqzMr.cjs"),t=require("./RichTextEditor-8GrfwaB4.cjs"),r=d.Extension.create({name:"indent",addOptions(){var n;return{...(n=this.parent)==null?void 0:n.call(this),types:["paragraph","heading","blockquote"],minIndent:t.IndentProps.min,maxIndent:t.IndentProps.max,button({editor:e,t:o}){return[{component:t.ActionButton,componentProps:{action:()=>{e.commands.indent()},shortcutKeys:["Tab"],icon:"IndentIncrease",tooltip:o("editor.indent.tooltip")}},{component:t.ActionButton,componentProps:{action:()=>{e.commands.outdent()},shortcutKeys:["Shift","Tab"],icon:"IndentDecrease",tooltip:o("editor.outdent.tooltip")}}]}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:n=>{const e=n.dataset.indent;return(e?Number.parseInt(e,10):0)||0},renderHTML:n=>n.indent?{"data-indent":n.indent}:{}}}}]},addCommands(){return{indent:()=>t.createIndentCommand({delta:t.IndentProps.more,types:this.options.types}),outdent:()=>t.createIndentCommand({delta:t.IndentProps.less,types:this.options.types})}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}});exports.Indent=r;
package/lib/Indent.d.cts CHANGED
@@ -111,9 +111,11 @@ declare module '@tiptap/core' {
111
111
 
112
112
  declare module '@tiptap/core' {
113
113
  interface Commands<ReturnType> {
114
- drawer: {
115
- setDrawer: (options: any, replace?: any) => ReturnType;
116
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
114
+ emoji: {
115
+ setEmoji: (emoji: {
116
+ name: string;
117
+ emoji: string;
118
+ }) => ReturnType;
117
119
  };
118
120
  }
119
121
  }
@@ -130,11 +132,18 @@ declare module '@tiptap/core' {
130
132
 
131
133
  declare module '@tiptap/core' {
132
134
  interface Commands<ReturnType> {
133
- emoji: {
134
- setEmoji: (emoji: {
135
- name: string;
136
- emoji: string;
137
- }) => ReturnType;
135
+ drawer: {
136
+ setDrawer: (options: any, replace?: any) => ReturnType;
137
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
138
+ };
139
+ }
140
+ }
141
+
142
+
143
+ declare module '@tiptap/core' {
144
+ interface Commands<ReturnType> {
145
+ exportPdf: {
146
+ exportToPdf: () => ReturnType;
138
147
  };
139
148
  }
140
149
  }
@@ -231,15 +240,6 @@ declare module '@tiptap/core' {
231
240
  }
232
241
 
233
242
 
234
- declare module '@tiptap/core' {
235
- interface Commands<ReturnType> {
236
- katex: {
237
- setKatex: (arg?: IKatexAttrs) => ReturnType;
238
- };
239
- }
240
- }
241
-
242
-
243
243
  declare module '@tiptap/core' {
244
244
  interface Commands<ReturnType> {
245
245
  indent: {
@@ -256,6 +256,15 @@ declare module '@tiptap/core' {
256
256
  }
257
257
 
258
258
 
259
+ declare module '@tiptap/core' {
260
+ interface Commands<ReturnType> {
261
+ katex: {
262
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
263
+ };
264
+ }
265
+ }
266
+
267
+
259
268
  declare module '@tiptap/core' {
260
269
  interface Commands<ReturnType> {
261
270
  lineHeight: {
@@ -317,14 +326,15 @@ declare module '@tiptap/core' {
317
326
 
318
327
  declare module '@tiptap/core' {
319
328
  interface Commands<ReturnType> {
320
- twitter: {
329
+ video: {
321
330
  /**
322
- * Insert a tweet
323
- * @param options The tweet attributes
324
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
331
+ * Add an video
325
332
  */
326
- setTweet: (options: SetTweetOptions) => ReturnType;
327
- updateTweet: (options: SetTweetOptions) => ReturnType;
333
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
334
+ /**
335
+ * Update an video
336
+ */
337
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
328
338
  };
329
339
  }
330
340
  }
@@ -332,15 +342,14 @@ declare module '@tiptap/core' {
332
342
 
333
343
  declare module '@tiptap/core' {
334
344
  interface Commands<ReturnType> {
335
- video: {
336
- /**
337
- * Add an video
338
- */
339
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
345
+ twitter: {
340
346
  /**
341
- * Update an video
347
+ * Insert a tweet
348
+ * @param options The tweet attributes
349
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
342
350
  */
343
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
351
+ setTweet: (options: SetTweetOptions) => ReturnType;
352
+ updateTweet: (options: SetTweetOptions) => ReturnType;
344
353
  };
345
354
  }
346
355
  }