reactjs-tiptap-editor 0.3.25 → 0.3.27

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-Bh2ft7th.js → ActionMenuButton-D3nLtawn.js} +1 -1
  2. package/lib/{ActionMenuButton-B3XOtCey.cjs → ActionMenuButton-fkh63F_R.cjs} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +26 -17
  5. package/lib/Attachment.d.ts +26 -17
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +26 -17
  9. package/lib/Blockquote.d.ts +26 -17
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +26 -17
  13. package/lib/Bold.d.ts +26 -17
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +26 -17
  17. package/lib/BulletList.d.ts +26 -17
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +26 -17
  21. package/lib/Clear.d.ts +26 -17
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +26 -17
  25. package/lib/Code.d.ts +26 -17
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +26 -17
  29. package/lib/CodeBlock.d.ts +26 -17
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +26 -17
  33. package/lib/CodeView.d.ts +26 -17
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +26 -17
  37. package/lib/Color.d.ts +26 -17
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +26 -17
  40. package/lib/Document.d.ts +26 -17
  41. package/lib/{Drawer-Orz21MYs.js → Drawer-BBVUujX4.js} +1 -1
  42. package/lib/{Drawer-CUntRzbs.cjs → Drawer-DetzmUvQ.cjs} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +26 -17
  45. package/lib/Drawer.d.ts +26 -17
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +26 -17
  49. package/lib/Emoji.d.ts +26 -17
  50. package/lib/Emoji.js +1 -1
  51. package/lib/{Excalidraw-Cj-sXq5F.js → Excalidraw-BVdio4hk.js} +1 -1
  52. package/lib/{Excalidraw-Bu8XuykT.cjs → Excalidraw-DVnwdz-w.cjs} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +26 -17
  55. package/lib/Excalidraw.d.ts +26 -17
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +4 -4
  58. package/lib/ExportPdf.d.cts +27 -17
  59. package/lib/ExportPdf.d.ts +27 -17
  60. package/lib/ExportPdf.js +34 -27
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +26 -17
  63. package/lib/ExportWord.d.ts +26 -17
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +26 -17
  67. package/lib/FontFamily.d.ts +26 -17
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +26 -17
  71. package/lib/FontSize.d.ts +26 -17
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +26 -17
  75. package/lib/FormatPainter.d.ts +26 -17
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +26 -17
  79. package/lib/Heading.d.ts +26 -17
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +26 -17
  83. package/lib/Highlight.d.ts +26 -17
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +26 -17
  87. package/lib/History.d.ts +26 -17
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +26 -17
  91. package/lib/HorizontalRule.d.ts +26 -17
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +26 -17
  95. package/lib/Iframe.d.ts +26 -17
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +26 -17
  99. package/lib/Image.d.ts +26 -17
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +26 -17
  103. package/lib/ImageGif.d.ts +26 -17
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +26 -17
  107. package/lib/ImportWord.d.ts +26 -17
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +26 -17
  111. package/lib/Indent.d.ts +26 -17
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +26 -17
  115. package/lib/Italic.d.ts +26 -17
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +26 -17
  119. package/lib/Katex.d.ts +26 -17
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +26 -17
  123. package/lib/LineHeight.d.ts +26 -17
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +26 -17
  127. package/lib/Link.d.ts +26 -17
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +26 -17
  130. package/lib/ListItem.d.ts +26 -17
  131. package/lib/Mention.d.cts +26 -17
  132. package/lib/Mention.d.ts +26 -17
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +26 -17
  135. package/lib/Mermaid.d.ts +26 -17
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +26 -17
  139. package/lib/MoreMark.d.ts +26 -17
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +26 -17
  143. package/lib/MultiColumn.d.ts +26 -17
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +26 -17
  147. package/lib/OrderedList.d.ts +26 -17
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-CfAFp9V2.js → RichTextEditor-BJWhWz4z.js} +1460 -1446
  150. package/lib/{RichTextEditor-B5WYnm7K.cjs → RichTextEditor-DoMu_nCj.cjs} +7 -7
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +26 -17
  153. package/lib/SearchAndReplace.d.ts +26 -17
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +26 -17
  156. package/lib/Selection.d.ts +26 -17
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +26 -17
  159. package/lib/SlashCommand.d.ts +26 -17
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +26 -17
  163. package/lib/Strike.d.ts +26 -17
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +26 -17
  167. package/lib/SubAndSuperScript.d.ts +26 -17
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +26 -17
  171. package/lib/Table.d.ts +26 -17
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +26 -17
  175. package/lib/TableOfContent.d.ts +26 -17
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +26 -17
  179. package/lib/TaskList.d.ts +26 -17
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +26 -17
  183. package/lib/TextAlign.d.ts +26 -17
  184. package/lib/TextAlign.js +1 -1
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +26 -17
  187. package/lib/TextBubble.d.ts +26 -17
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +26 -17
  191. package/lib/TextDirection.d.ts +26 -17
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +26 -17
  195. package/lib/TextUnderline.d.ts +26 -17
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +26 -17
  198. package/lib/TrailingNode.d.ts +26 -17
  199. package/lib/{Twitter-BFwUowi8.cjs → Twitter--OkCPska.cjs} +1 -1
  200. package/lib/{Twitter-9AKqIK4p.js → Twitter-CXwmqolk.js} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +26 -17
  203. package/lib/Twitter.d.ts +26 -17
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +26 -17
  207. package/lib/Video.d.ts +26 -17
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +26 -17
  211. package/lib/bubble-extra.d.ts +26 -17
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +26 -17
  215. package/lib/index.d.ts +26 -17
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +26 -17
  218. package/lib/locale-bundle.d.ts +26 -17
  219. package/lib/{textarea-bND4WL8o.cjs → textarea-DkVc2MIQ.cjs} +1 -1
  220. package/lib/{textarea-CWt0EMiJ.js → textarea-HW9QlrCS.js} +1 -1
  221. package/package.json +1 -1
package/lib/Image.d.cts CHANGED
@@ -143,6 +143,16 @@ declare module '@tiptap/core' {
143
143
  }
144
144
 
145
145
 
146
+ declare module '@tiptap/core' {
147
+ interface Commands<ReturnType> {
148
+ drawer: {
149
+ setDrawer: (options: any, replace?: any) => ReturnType;
150
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
151
+ };
152
+ }
153
+ }
154
+
155
+
146
156
  declare module '@tiptap/core' {
147
157
  interface Commands<ReturnType> {
148
158
  emoji: {
@@ -157,9 +167,8 @@ declare module '@tiptap/core' {
157
167
 
158
168
  declare module '@tiptap/core' {
159
169
  interface Commands<ReturnType> {
160
- drawer: {
161
- setDrawer: (options: any, replace?: any) => ReturnType;
162
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
170
+ excalidraw: {
171
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
163
172
  };
164
173
  }
165
174
  }
@@ -167,8 +176,8 @@ declare module '@tiptap/core' {
167
176
 
168
177
  declare module '@tiptap/core' {
169
178
  interface Commands<ReturnType> {
170
- excalidraw: {
171
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
179
+ exportPdf: {
180
+ exportToPdf: () => ReturnType;
172
181
  };
173
182
  }
174
183
  }
@@ -227,19 +236,19 @@ declare module '@tiptap/core' {
227
236
 
228
237
  declare module '@tiptap/core' {
229
238
  interface Commands<ReturnType> {
230
- imageGifUpload: {
239
+ imageUpload: {
231
240
  /**
232
- * Add an image gif
241
+ * Add an image
233
242
  */
234
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
243
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
235
244
  /**
236
- * Update an image gif
245
+ * Update an image
237
246
  */
238
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
247
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
239
248
  /**
240
249
  * Set image alignment
241
250
  */
242
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
251
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
243
252
  };
244
253
  }
245
254
  }
@@ -247,19 +256,19 @@ declare module '@tiptap/core' {
247
256
 
248
257
  declare module '@tiptap/core' {
249
258
  interface Commands<ReturnType> {
250
- imageUpload: {
259
+ imageGifUpload: {
251
260
  /**
252
- * Add an image
261
+ * Add an image gif
253
262
  */
254
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
263
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
255
264
  /**
256
- * Update an image
265
+ * Update an image gif
257
266
  */
258
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
267
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
259
268
  /**
260
269
  * Set image alignment
261
270
  */
262
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
271
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
263
272
  };
264
273
  }
265
274
  }
package/lib/Image.d.ts CHANGED
@@ -143,6 +143,16 @@ declare module '@tiptap/core' {
143
143
  }
144
144
 
145
145
 
146
+ declare module '@tiptap/core' {
147
+ interface Commands<ReturnType> {
148
+ drawer: {
149
+ setDrawer: (options: any, replace?: any) => ReturnType;
150
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
151
+ };
152
+ }
153
+ }
154
+
155
+
146
156
  declare module '@tiptap/core' {
147
157
  interface Commands<ReturnType> {
148
158
  emoji: {
@@ -157,9 +167,8 @@ declare module '@tiptap/core' {
157
167
 
158
168
  declare module '@tiptap/core' {
159
169
  interface Commands<ReturnType> {
160
- drawer: {
161
- setDrawer: (options: any, replace?: any) => ReturnType;
162
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
170
+ excalidraw: {
171
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
163
172
  };
164
173
  }
165
174
  }
@@ -167,8 +176,8 @@ declare module '@tiptap/core' {
167
176
 
168
177
  declare module '@tiptap/core' {
169
178
  interface Commands<ReturnType> {
170
- excalidraw: {
171
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
179
+ exportPdf: {
180
+ exportToPdf: () => ReturnType;
172
181
  };
173
182
  }
174
183
  }
@@ -227,19 +236,19 @@ declare module '@tiptap/core' {
227
236
 
228
237
  declare module '@tiptap/core' {
229
238
  interface Commands<ReturnType> {
230
- imageGifUpload: {
239
+ imageUpload: {
231
240
  /**
232
- * Add an image gif
241
+ * Add an image
233
242
  */
234
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
243
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
235
244
  /**
236
- * Update an image gif
245
+ * Update an image
237
246
  */
238
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
247
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
239
248
  /**
240
249
  * Set image alignment
241
250
  */
242
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
251
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
243
252
  };
244
253
  }
245
254
  }
@@ -247,19 +256,19 @@ declare module '@tiptap/core' {
247
256
 
248
257
  declare module '@tiptap/core' {
249
258
  interface Commands<ReturnType> {
250
- imageUpload: {
259
+ imageGifUpload: {
251
260
  /**
252
- * Add an image
261
+ * Add an image gif
253
262
  */
254
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
263
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
255
264
  /**
256
- * Update an image
265
+ * Update an image gif
257
266
  */
258
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
267
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
259
268
  /**
260
269
  * Set image alignment
261
270
  */
262
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
271
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
263
272
  };
264
273
  }
265
274
  }
package/lib/Image.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./index-DI9T3iLd.js";
2
- import { R as t, R as e } from "./RichTextEditor-CfAFp9V2.js";
2
+ import { R as t, R as e } from "./RichTextEditor-BJWhWz4z.js";
3
3
  import "./dom-dataset-Di3tIRrR.js";
4
4
  export {
5
5
  t as Image,
package/lib/ImageGif.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index-ByRfqzMr.cjs");const e=require("./RichTextEditor-B5WYnm7K.cjs");require("./dom-dataset-Byuf1YmW.cjs");exports.ImageGif=e.ImageGif;exports.default=e.ImageGif;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index-ByRfqzMr.cjs");const e=require("./RichTextEditor-DoMu_nCj.cjs");require("./dom-dataset-Byuf1YmW.cjs");exports.ImageGif=e.ImageGif;exports.default=e.ImageGif;
@@ -57,6 +57,16 @@ declare module '@tiptap/core' {
57
57
  }
58
58
 
59
59
 
60
+ declare module '@tiptap/core' {
61
+ interface Commands<ReturnType> {
62
+ drawer: {
63
+ setDrawer: (options: any, replace?: any) => ReturnType;
64
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
65
+ };
66
+ }
67
+ }
68
+
69
+
60
70
  declare module '@tiptap/core' {
61
71
  interface Commands<ReturnType> {
62
72
  emoji: {
@@ -71,9 +81,8 @@ declare module '@tiptap/core' {
71
81
 
72
82
  declare module '@tiptap/core' {
73
83
  interface Commands<ReturnType> {
74
- drawer: {
75
- setDrawer: (options: any, replace?: any) => ReturnType;
76
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
84
+ excalidraw: {
85
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
77
86
  };
78
87
  }
79
88
  }
@@ -81,8 +90,8 @@ declare module '@tiptap/core' {
81
90
 
82
91
  declare module '@tiptap/core' {
83
92
  interface Commands<ReturnType> {
84
- excalidraw: {
85
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
93
+ exportPdf: {
94
+ exportToPdf: () => ReturnType;
86
95
  };
87
96
  }
88
97
  }
@@ -141,19 +150,19 @@ declare module '@tiptap/core' {
141
150
 
142
151
  declare module '@tiptap/core' {
143
152
  interface Commands<ReturnType> {
144
- imageGifUpload: {
153
+ imageUpload: {
145
154
  /**
146
- * Add an image gif
155
+ * Add an image
147
156
  */
148
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
157
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
149
158
  /**
150
- * Update an image gif
159
+ * Update an image
151
160
  */
152
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
161
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
153
162
  /**
154
163
  * Set image alignment
155
164
  */
156
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
165
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
157
166
  };
158
167
  }
159
168
  }
@@ -161,19 +170,19 @@ declare module '@tiptap/core' {
161
170
 
162
171
  declare module '@tiptap/core' {
163
172
  interface Commands<ReturnType> {
164
- imageUpload: {
173
+ imageGifUpload: {
165
174
  /**
166
- * Add an image
175
+ * Add an image gif
167
176
  */
168
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
177
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
169
178
  /**
170
- * Update an image
179
+ * Update an image gif
171
180
  */
172
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
181
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
173
182
  /**
174
183
  * Set image alignment
175
184
  */
176
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
185
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
177
186
  };
178
187
  }
179
188
  }
package/lib/ImageGif.d.ts CHANGED
@@ -57,6 +57,16 @@ declare module '@tiptap/core' {
57
57
  }
58
58
 
59
59
 
60
+ declare module '@tiptap/core' {
61
+ interface Commands<ReturnType> {
62
+ drawer: {
63
+ setDrawer: (options: any, replace?: any) => ReturnType;
64
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
65
+ };
66
+ }
67
+ }
68
+
69
+
60
70
  declare module '@tiptap/core' {
61
71
  interface Commands<ReturnType> {
62
72
  emoji: {
@@ -71,9 +81,8 @@ declare module '@tiptap/core' {
71
81
 
72
82
  declare module '@tiptap/core' {
73
83
  interface Commands<ReturnType> {
74
- drawer: {
75
- setDrawer: (options: any, replace?: any) => ReturnType;
76
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
84
+ excalidraw: {
85
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
77
86
  };
78
87
  }
79
88
  }
@@ -81,8 +90,8 @@ declare module '@tiptap/core' {
81
90
 
82
91
  declare module '@tiptap/core' {
83
92
  interface Commands<ReturnType> {
84
- excalidraw: {
85
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
93
+ exportPdf: {
94
+ exportToPdf: () => ReturnType;
86
95
  };
87
96
  }
88
97
  }
@@ -141,19 +150,19 @@ declare module '@tiptap/core' {
141
150
 
142
151
  declare module '@tiptap/core' {
143
152
  interface Commands<ReturnType> {
144
- imageGifUpload: {
153
+ imageUpload: {
145
154
  /**
146
- * Add an image gif
155
+ * Add an image
147
156
  */
148
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
157
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
149
158
  /**
150
- * Update an image gif
159
+ * Update an image
151
160
  */
152
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
161
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
153
162
  /**
154
163
  * Set image alignment
155
164
  */
156
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
165
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
157
166
  };
158
167
  }
159
168
  }
@@ -161,19 +170,19 @@ declare module '@tiptap/core' {
161
170
 
162
171
  declare module '@tiptap/core' {
163
172
  interface Commands<ReturnType> {
164
- imageUpload: {
173
+ imageGifUpload: {
165
174
  /**
166
- * Add an image
175
+ * Add an image gif
167
176
  */
168
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
177
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
169
178
  /**
170
- * Update an image
179
+ * Update an image gif
171
180
  */
172
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
181
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
173
182
  /**
174
183
  * Set image alignment
175
184
  */
176
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
185
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
177
186
  };
178
187
  }
179
188
  }
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-CfAFp9V2.js";
2
+ import { af as r, af as t } from "./RichTextEditor-BJWhWz4z.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-B5WYnm7K.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-DoMu_nCj.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)+
@@ -118,6 +118,16 @@ declare module '@tiptap/core' {
118
118
  }
119
119
 
120
120
 
121
+ declare module '@tiptap/core' {
122
+ interface Commands<ReturnType> {
123
+ drawer: {
124
+ setDrawer: (options: any, replace?: any) => ReturnType;
125
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
126
+ };
127
+ }
128
+ }
129
+
130
+
121
131
  declare module '@tiptap/core' {
122
132
  interface Commands<ReturnType> {
123
133
  emoji: {
@@ -132,9 +142,8 @@ declare module '@tiptap/core' {
132
142
 
133
143
  declare module '@tiptap/core' {
134
144
  interface Commands<ReturnType> {
135
- drawer: {
136
- setDrawer: (options: any, replace?: any) => ReturnType;
137
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
145
+ excalidraw: {
146
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
138
147
  };
139
148
  }
140
149
  }
@@ -142,8 +151,8 @@ declare module '@tiptap/core' {
142
151
 
143
152
  declare module '@tiptap/core' {
144
153
  interface Commands<ReturnType> {
145
- excalidraw: {
146
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
154
+ exportPdf: {
155
+ exportToPdf: () => ReturnType;
147
156
  };
148
157
  }
149
158
  }
@@ -202,19 +211,19 @@ declare module '@tiptap/core' {
202
211
 
203
212
  declare module '@tiptap/core' {
204
213
  interface Commands<ReturnType> {
205
- imageGifUpload: {
214
+ imageUpload: {
206
215
  /**
207
- * Add an image gif
216
+ * Add an image
208
217
  */
209
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
218
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
210
219
  /**
211
- * Update an image gif
220
+ * Update an image
212
221
  */
213
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
222
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
214
223
  /**
215
224
  * Set image alignment
216
225
  */
217
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
226
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
218
227
  };
219
228
  }
220
229
  }
@@ -222,19 +231,19 @@ declare module '@tiptap/core' {
222
231
 
223
232
  declare module '@tiptap/core' {
224
233
  interface Commands<ReturnType> {
225
- imageUpload: {
234
+ imageGifUpload: {
226
235
  /**
227
- * Add an image
236
+ * Add an image gif
228
237
  */
229
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
238
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
230
239
  /**
231
- * Update an image
240
+ * Update an image gif
232
241
  */
233
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
242
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
234
243
  /**
235
244
  * Set image alignment
236
245
  */
237
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
246
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
238
247
  };
239
248
  }
240
249
  }
@@ -118,6 +118,16 @@ declare module '@tiptap/core' {
118
118
  }
119
119
 
120
120
 
121
+ declare module '@tiptap/core' {
122
+ interface Commands<ReturnType> {
123
+ drawer: {
124
+ setDrawer: (options: any, replace?: any) => ReturnType;
125
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
126
+ };
127
+ }
128
+ }
129
+
130
+
121
131
  declare module '@tiptap/core' {
122
132
  interface Commands<ReturnType> {
123
133
  emoji: {
@@ -132,9 +142,8 @@ declare module '@tiptap/core' {
132
142
 
133
143
  declare module '@tiptap/core' {
134
144
  interface Commands<ReturnType> {
135
- drawer: {
136
- setDrawer: (options: any, replace?: any) => ReturnType;
137
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
145
+ excalidraw: {
146
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
138
147
  };
139
148
  }
140
149
  }
@@ -142,8 +151,8 @@ declare module '@tiptap/core' {
142
151
 
143
152
  declare module '@tiptap/core' {
144
153
  interface Commands<ReturnType> {
145
- excalidraw: {
146
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
154
+ exportPdf: {
155
+ exportToPdf: () => ReturnType;
147
156
  };
148
157
  }
149
158
  }
@@ -202,19 +211,19 @@ declare module '@tiptap/core' {
202
211
 
203
212
  declare module '@tiptap/core' {
204
213
  interface Commands<ReturnType> {
205
- imageGifUpload: {
214
+ imageUpload: {
206
215
  /**
207
- * Add an image gif
216
+ * Add an image
208
217
  */
209
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
218
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
210
219
  /**
211
- * Update an image gif
220
+ * Update an image
212
221
  */
213
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
222
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
214
223
  /**
215
224
  * Set image alignment
216
225
  */
217
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
226
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
218
227
  };
219
228
  }
220
229
  }
@@ -222,19 +231,19 @@ declare module '@tiptap/core' {
222
231
 
223
232
  declare module '@tiptap/core' {
224
233
  interface Commands<ReturnType> {
225
- imageUpload: {
234
+ imageGifUpload: {
226
235
  /**
227
- * Add an image
236
+ * Add an image gif
228
237
  */
229
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
238
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
230
239
  /**
231
- * Update an image
240
+ * Update an image gif
232
241
  */
233
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
242
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
234
243
  /**
235
244
  * Set image alignment
236
245
  */
237
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
246
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
238
247
  };
239
248
  }
240
249
  }
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-CfAFp9V2.js";
4
+ import { a9 as Cs, aa as dn, ab as Ss, ac as Bs, A as ks, ad as Ws } from "./RichTextEditor-BJWhWz4z.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-B5WYnm7K.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-DoMu_nCj.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;