reactjs-tiptap-editor 0.3.26 → 0.3.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/lib/{ActionMenuButton-C9tPWcDX.cjs → ActionMenuButton-C20molC9.cjs} +1 -1
  2. package/lib/{ActionMenuButton-DpFt8DwI.js → ActionMenuButton-D0hFczCn.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +41 -39
  5. package/lib/Attachment.d.ts +41 -39
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +41 -39
  9. package/lib/Blockquote.d.ts +41 -39
  10. package/lib/Blockquote.js +10 -10
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +41 -39
  13. package/lib/Bold.d.ts +41 -39
  14. package/lib/Bold.js +10 -10
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +41 -39
  17. package/lib/BulletList.d.ts +41 -39
  18. package/lib/BulletList.js +10 -10
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +41 -39
  21. package/lib/Clear.d.ts +41 -39
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +41 -39
  25. package/lib/Code.d.ts +41 -39
  26. package/lib/Code.js +21 -21
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +41 -39
  29. package/lib/CodeBlock.d.ts +41 -39
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +41 -39
  33. package/lib/CodeView.d.ts +41 -39
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +41 -39
  37. package/lib/Color.d.ts +41 -39
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +39 -39
  40. package/lib/Document.d.ts +39 -39
  41. package/lib/{Drawer-BQLKKEOB.cjs → Drawer-0kBt3GVL.cjs} +1 -1
  42. package/lib/{Drawer-BouNhUKq.js → Drawer-B96jQIQU.js} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +41 -39
  45. package/lib/Drawer.d.ts +41 -39
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +39 -39
  49. package/lib/Emoji.d.ts +39 -39
  50. package/lib/Emoji.js +1 -1
  51. package/lib/{Excalidraw-DYbRbH0x.cjs → Excalidraw-HK9kjpX5.cjs} +1 -1
  52. package/lib/{Excalidraw-u2P8Olgi.js → Excalidraw-z3VZyGJ4.js} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +39 -39
  55. package/lib/Excalidraw.d.ts +39 -39
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +41 -39
  59. package/lib/ExportPdf.d.ts +41 -39
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +41 -39
  63. package/lib/ExportWord.d.ts +41 -39
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +41 -39
  67. package/lib/FontFamily.d.ts +41 -39
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +41 -39
  71. package/lib/FontSize.d.ts +41 -39
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +41 -39
  75. package/lib/FormatPainter.d.ts +41 -39
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +41 -39
  79. package/lib/Heading.d.ts +41 -39
  80. package/lib/Heading.js +71 -68
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +45 -39
  83. package/lib/Highlight.d.ts +45 -39
  84. package/lib/Highlight.js +14 -13
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +41 -39
  87. package/lib/History.d.ts +41 -39
  88. package/lib/History.js +163 -160
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +41 -39
  91. package/lib/HorizontalRule.d.ts +41 -39
  92. package/lib/HorizontalRule.js +14 -14
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +39 -39
  95. package/lib/Iframe.d.ts +39 -39
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +41 -39
  99. package/lib/Image.d.ts +41 -39
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +39 -39
  103. package/lib/ImageGif.d.ts +39 -39
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +2 -2
  106. package/lib/ImportWord.d.cts +41 -39
  107. package/lib/ImportWord.d.ts +41 -39
  108. package/lib/ImportWord.js +2 -2
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +41 -39
  111. package/lib/Indent.d.ts +41 -39
  112. package/lib/Indent.js +12 -11
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +41 -39
  115. package/lib/Italic.d.ts +41 -39
  116. package/lib/Italic.js +13 -13
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +39 -39
  119. package/lib/Katex.d.ts +39 -39
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +41 -39
  123. package/lib/LineHeight.d.ts +41 -39
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +41 -39
  127. package/lib/Link.d.ts +41 -39
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +39 -39
  130. package/lib/ListItem.d.ts +39 -39
  131. package/lib/Mention.d.cts +39 -39
  132. package/lib/Mention.d.ts +39 -39
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +41 -39
  135. package/lib/Mermaid.d.ts +41 -39
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +41 -39
  139. package/lib/MoreMark.d.ts +41 -39
  140. package/lib/MoreMark.js +46 -45
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +39 -39
  143. package/lib/MultiColumn.d.ts +39 -39
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +41 -39
  147. package/lib/OrderedList.d.ts +41 -39
  148. package/lib/OrderedList.js +9 -9
  149. package/lib/RichTextEditor-BKywwUM4.cjs +140 -0
  150. package/lib/{RichTextEditor-VkzSL04E.js → RichTextEditor-CnWZ69eX.js} +1685 -1708
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +41 -39
  153. package/lib/SearchAndReplace.d.ts +41 -39
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +39 -39
  156. package/lib/Selection.d.ts +39 -39
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +39 -39
  159. package/lib/SlashCommand.d.ts +39 -39
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +41 -39
  163. package/lib/Strike.d.ts +41 -39
  164. package/lib/Strike.js +13 -13
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +41 -39
  167. package/lib/SubAndSuperScript.d.ts +41 -39
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +41 -39
  171. package/lib/Table.d.ts +41 -39
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +39 -39
  175. package/lib/TableOfContent.d.ts +39 -39
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +41 -39
  179. package/lib/TaskList.d.ts +41 -39
  180. package/lib/TaskList.js +15 -15
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +41 -39
  183. package/lib/TextAlign.d.ts +41 -39
  184. package/lib/TextAlign.js +41 -41
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +41 -39
  187. package/lib/TextBubble.d.ts +41 -39
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +39 -39
  191. package/lib/TextDirection.d.ts +39 -39
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +41 -39
  195. package/lib/TextUnderline.d.ts +41 -39
  196. package/lib/TextUnderline.js +8 -8
  197. package/lib/TrailingNode.d.cts +39 -39
  198. package/lib/TrailingNode.d.ts +39 -39
  199. package/lib/{Twitter-DlKz1fXJ.js → Twitter-CCf1aM0f.js} +1 -1
  200. package/lib/{Twitter-u_6ZejIn.cjs → Twitter-Dj49i3B9.cjs} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +39 -39
  203. package/lib/Twitter.d.ts +39 -39
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +41 -39
  207. package/lib/Video.d.ts +41 -39
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +39 -39
  211. package/lib/bubble-extra.d.ts +39 -39
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +58 -52
  215. package/lib/index.d.ts +58 -52
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +39 -39
  218. package/lib/locale-bundle.d.ts +39 -39
  219. package/lib/{textarea-ESw2TM_u.cjs → textarea-DhlS0JCr.cjs} +1 -1
  220. package/lib/{textarea-BA9ETXT8.js → textarea-nr3UZ7Wg.js} +1 -1
  221. package/package.json +1 -1
  222. package/lib/RichTextEditor-8GrfwaB4.cjs +0 -140
@@ -45,11 +45,9 @@ declare module '@tiptap/core' {
45
45
 
46
46
  declare module '@tiptap/core' {
47
47
  interface Commands<ReturnType> {
48
- emoji: {
49
- setEmoji: (emoji: {
50
- name: string;
51
- emoji: string;
52
- }) => ReturnType;
48
+ drawer: {
49
+ setDrawer: (options: any, replace?: any) => ReturnType;
50
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
53
51
  };
54
52
  }
55
53
  }
@@ -66,9 +64,11 @@ declare module '@tiptap/core' {
66
64
 
67
65
  declare module '@tiptap/core' {
68
66
  interface Commands<ReturnType> {
69
- drawer: {
70
- setDrawer: (options: any, replace?: any) => ReturnType;
71
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
67
+ emoji: {
68
+ setEmoji: (emoji: {
69
+ name: string;
70
+ emoji: string;
71
+ }) => ReturnType;
72
72
  };
73
73
  }
74
74
  }
@@ -190,15 +190,6 @@ declare module '@tiptap/core' {
190
190
  }
191
191
 
192
192
 
193
- declare module '@tiptap/core' {
194
- interface Commands<ReturnType> {
195
- katex: {
196
- setKatex: (arg?: IKatexAttrs) => ReturnType;
197
- };
198
- }
199
- }
200
-
201
-
202
193
  declare module '@tiptap/core' {
203
194
  interface Commands<ReturnType> {
204
195
  lineHeight: {
@@ -211,9 +202,8 @@ declare module '@tiptap/core' {
211
202
 
212
203
  declare module '@tiptap/core' {
213
204
  interface Commands<ReturnType> {
214
- mermaid: {
215
- setMermaid: (options: any, replace?: any) => ReturnType;
216
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
205
+ katex: {
206
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
217
207
  };
218
208
  }
219
209
  }
@@ -221,13 +211,9 @@ declare module '@tiptap/core' {
221
211
 
222
212
  declare module '@tiptap/core' {
223
213
  interface Commands<ReturnType> {
224
- columns: {
225
- insertColumns: (attrs?: {
226
- cols: number;
227
- }) => ReturnType;
228
- addColBefore: () => ReturnType;
229
- addColAfter: () => ReturnType;
230
- deleteCol: () => ReturnType;
214
+ mermaid: {
215
+ setMermaid: (options: any, replace?: any) => ReturnType;
216
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
231
217
  };
232
218
  }
233
219
  }
@@ -250,9 +236,13 @@ declare module '@tiptap/core' {
250
236
 
251
237
  declare module '@tiptap/core' {
252
238
  interface Commands<ReturnType> {
253
- tableOfContents: {
254
- setTableOfContents: () => ReturnType;
255
- removeTableOfContents: () => ReturnType;
239
+ columns: {
240
+ insertColumns: (attrs?: {
241
+ cols: number;
242
+ }) => ReturnType;
243
+ addColBefore: () => ReturnType;
244
+ addColAfter: () => ReturnType;
245
+ deleteCol: () => ReturnType;
256
246
  };
257
247
  }
258
248
  }
@@ -260,15 +250,9 @@ declare module '@tiptap/core' {
260
250
 
261
251
  declare module '@tiptap/core' {
262
252
  interface Commands<ReturnType> {
263
- video: {
264
- /**
265
- * Add an video
266
- */
267
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
268
- /**
269
- * Update an video
270
- */
271
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
253
+ tableOfContents: {
254
+ setTableOfContents: () => ReturnType;
255
+ removeTableOfContents: () => ReturnType;
272
256
  };
273
257
  }
274
258
  }
@@ -289,6 +273,22 @@ declare module '@tiptap/core' {
289
273
  }
290
274
 
291
275
 
276
+ declare module '@tiptap/core' {
277
+ interface Commands<ReturnType> {
278
+ video: {
279
+ /**
280
+ * Add an video
281
+ */
282
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
283
+ /**
284
+ * Update an video
285
+ */
286
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
287
+ };
288
+ }
289
+ }
290
+
291
+
292
292
  declare module '@tiptap/core' {
293
293
  interface Commands<ReturnType> {
294
294
  tableCellBackground: {
@@ -45,11 +45,9 @@ declare module '@tiptap/core' {
45
45
 
46
46
  declare module '@tiptap/core' {
47
47
  interface Commands<ReturnType> {
48
- emoji: {
49
- setEmoji: (emoji: {
50
- name: string;
51
- emoji: string;
52
- }) => ReturnType;
48
+ drawer: {
49
+ setDrawer: (options: any, replace?: any) => ReturnType;
50
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
53
51
  };
54
52
  }
55
53
  }
@@ -66,9 +64,11 @@ declare module '@tiptap/core' {
66
64
 
67
65
  declare module '@tiptap/core' {
68
66
  interface Commands<ReturnType> {
69
- drawer: {
70
- setDrawer: (options: any, replace?: any) => ReturnType;
71
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
67
+ emoji: {
68
+ setEmoji: (emoji: {
69
+ name: string;
70
+ emoji: string;
71
+ }) => ReturnType;
72
72
  };
73
73
  }
74
74
  }
@@ -190,15 +190,6 @@ declare module '@tiptap/core' {
190
190
  }
191
191
 
192
192
 
193
- declare module '@tiptap/core' {
194
- interface Commands<ReturnType> {
195
- katex: {
196
- setKatex: (arg?: IKatexAttrs) => ReturnType;
197
- };
198
- }
199
- }
200
-
201
-
202
193
  declare module '@tiptap/core' {
203
194
  interface Commands<ReturnType> {
204
195
  lineHeight: {
@@ -211,9 +202,8 @@ declare module '@tiptap/core' {
211
202
 
212
203
  declare module '@tiptap/core' {
213
204
  interface Commands<ReturnType> {
214
- mermaid: {
215
- setMermaid: (options: any, replace?: any) => ReturnType;
216
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
205
+ katex: {
206
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
217
207
  };
218
208
  }
219
209
  }
@@ -221,13 +211,9 @@ declare module '@tiptap/core' {
221
211
 
222
212
  declare module '@tiptap/core' {
223
213
  interface Commands<ReturnType> {
224
- columns: {
225
- insertColumns: (attrs?: {
226
- cols: number;
227
- }) => ReturnType;
228
- addColBefore: () => ReturnType;
229
- addColAfter: () => ReturnType;
230
- deleteCol: () => ReturnType;
214
+ mermaid: {
215
+ setMermaid: (options: any, replace?: any) => ReturnType;
216
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
231
217
  };
232
218
  }
233
219
  }
@@ -250,9 +236,13 @@ declare module '@tiptap/core' {
250
236
 
251
237
  declare module '@tiptap/core' {
252
238
  interface Commands<ReturnType> {
253
- tableOfContents: {
254
- setTableOfContents: () => ReturnType;
255
- removeTableOfContents: () => ReturnType;
239
+ columns: {
240
+ insertColumns: (attrs?: {
241
+ cols: number;
242
+ }) => ReturnType;
243
+ addColBefore: () => ReturnType;
244
+ addColAfter: () => ReturnType;
245
+ deleteCol: () => ReturnType;
256
246
  };
257
247
  }
258
248
  }
@@ -260,15 +250,9 @@ declare module '@tiptap/core' {
260
250
 
261
251
  declare module '@tiptap/core' {
262
252
  interface Commands<ReturnType> {
263
- video: {
264
- /**
265
- * Add an video
266
- */
267
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
268
- /**
269
- * Update an video
270
- */
271
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
253
+ tableOfContents: {
254
+ setTableOfContents: () => ReturnType;
255
+ removeTableOfContents: () => ReturnType;
272
256
  };
273
257
  }
274
258
  }
@@ -289,6 +273,22 @@ declare module '@tiptap/core' {
289
273
  }
290
274
 
291
275
 
276
+ declare module '@tiptap/core' {
277
+ interface Commands<ReturnType> {
278
+ video: {
279
+ /**
280
+ * Add an video
281
+ */
282
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
283
+ /**
284
+ * Update an video
285
+ */
286
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
287
+ };
288
+ }
289
+ }
290
+
291
+
292
292
  declare module '@tiptap/core' {
293
293
  interface Commands<ReturnType> {
294
294
  tableCellBackground: {
package/lib/Excalidraw.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./index-DI9T3iLd.js";
2
2
  import "./dom-dataset-Di3tIRrR.js";
3
- import { E as m } from "./Excalidraw-u2P8Olgi.js";
3
+ import { E as m } from "./Excalidraw-z3VZyGJ4.js";
4
4
  export {
5
5
  m as Excalidraw
6
6
  };
package/lib/ExportPdf.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-ByRfqzMr.cjs"),b=require("./RichTextEditor-8GrfwaB4.cjs");function y(e,o){var i;const t=document.createElement("iframe");t.setAttribute("style","position: absolute; width: 0; height: 0; top: 0; left: 0;"),document.body.appendChild(t);const n=t.contentDocument||((i=t.contentWindow)==null?void 0:i.document);if(!n)return;const{paperSize:a,title:c="Echo Editor",margins:{top:l,right:p,bottom:m,left:h}}=o,u=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-ByRfqzMr.cjs"),b=require("./RichTextEditor-BKywwUM4.cjs");function y(e,o){var i;const t=document.createElement("iframe");t.setAttribute("style","position: absolute; width: 0; height: 0; top: 0; left: 0;"),document.body.appendChild(t);const n=t.contentDocument||((i=t.contentWindow)==null?void 0:i.document);if(!n)return;const{paperSize:a,title:c="Echo Editor",margins:{top:l,right:p,bottom:m,left:h}}=o,u=`
2
2
  <!DOCTYPE html>
3
3
  <html lang="en">
4
4
  <head>
@@ -79,6 +79,8 @@ declare interface GeneralOptions<T> {
79
79
  button: ButtonView<T>;
80
80
  /** Show on Toolbar */
81
81
  toolbar?: boolean;
82
+ /** Shortcut keys override */
83
+ shortcutKeys?: string[] | string[][];
82
84
  }
83
85
 
84
86
  declare type PageMargin = '0in' | '0.25in' | '0.4in' | '0.5in' | '0.75in' | '1in' | '1.25in' | '1.5in' | '1.75in' | '2in' | '0cm' | '0.5cm' | '1cm' | '1.5cm' | '2cm' | '2.5cm' | '3cm' | '4cm' | '5cm' | '0mm' | '5mm' | '10mm' | '15mm' | '20mm' | '25mm' | '30mm' | '40mm' | '50mm' | '0pt' | '18pt' | '36pt' | '54pt' | '72pt' | '90pt' | '108pt' | '144pt';
@@ -120,11 +122,9 @@ declare module '@tiptap/core' {
120
122
 
121
123
  declare module '@tiptap/core' {
122
124
  interface Commands<ReturnType> {
123
- emoji: {
124
- setEmoji: (emoji: {
125
- name: string;
126
- emoji: string;
127
- }) => ReturnType;
125
+ drawer: {
126
+ setDrawer: (options: any, replace?: any) => ReturnType;
127
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
128
128
  };
129
129
  }
130
130
  }
@@ -141,9 +141,11 @@ declare module '@tiptap/core' {
141
141
 
142
142
  declare module '@tiptap/core' {
143
143
  interface Commands<ReturnType> {
144
- drawer: {
145
- setDrawer: (options: any, replace?: any) => ReturnType;
146
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
144
+ emoji: {
145
+ setEmoji: (emoji: {
146
+ name: string;
147
+ emoji: string;
148
+ }) => ReturnType;
147
149
  };
148
150
  }
149
151
  }
@@ -265,15 +267,6 @@ declare module '@tiptap/core' {
265
267
  }
266
268
 
267
269
 
268
- declare module '@tiptap/core' {
269
- interface Commands<ReturnType> {
270
- katex: {
271
- setKatex: (arg?: IKatexAttrs) => ReturnType;
272
- };
273
- }
274
- }
275
-
276
-
277
270
  declare module '@tiptap/core' {
278
271
  interface Commands<ReturnType> {
279
272
  lineHeight: {
@@ -286,9 +279,8 @@ declare module '@tiptap/core' {
286
279
 
287
280
  declare module '@tiptap/core' {
288
281
  interface Commands<ReturnType> {
289
- mermaid: {
290
- setMermaid: (options: any, replace?: any) => ReturnType;
291
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
282
+ katex: {
283
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
292
284
  };
293
285
  }
294
286
  }
@@ -296,13 +288,9 @@ declare module '@tiptap/core' {
296
288
 
297
289
  declare module '@tiptap/core' {
298
290
  interface Commands<ReturnType> {
299
- columns: {
300
- insertColumns: (attrs?: {
301
- cols: number;
302
- }) => ReturnType;
303
- addColBefore: () => ReturnType;
304
- addColAfter: () => ReturnType;
305
- deleteCol: () => ReturnType;
291
+ mermaid: {
292
+ setMermaid: (options: any, replace?: any) => ReturnType;
293
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
306
294
  };
307
295
  }
308
296
  }
@@ -325,9 +313,13 @@ declare module '@tiptap/core' {
325
313
 
326
314
  declare module '@tiptap/core' {
327
315
  interface Commands<ReturnType> {
328
- tableOfContents: {
329
- setTableOfContents: () => ReturnType;
330
- removeTableOfContents: () => ReturnType;
316
+ columns: {
317
+ insertColumns: (attrs?: {
318
+ cols: number;
319
+ }) => ReturnType;
320
+ addColBefore: () => ReturnType;
321
+ addColAfter: () => ReturnType;
322
+ deleteCol: () => ReturnType;
331
323
  };
332
324
  }
333
325
  }
@@ -335,15 +327,9 @@ declare module '@tiptap/core' {
335
327
 
336
328
  declare module '@tiptap/core' {
337
329
  interface Commands<ReturnType> {
338
- video: {
339
- /**
340
- * Add an video
341
- */
342
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
343
- /**
344
- * Update an video
345
- */
346
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
330
+ tableOfContents: {
331
+ setTableOfContents: () => ReturnType;
332
+ removeTableOfContents: () => ReturnType;
347
333
  };
348
334
  }
349
335
  }
@@ -364,6 +350,22 @@ declare module '@tiptap/core' {
364
350
  }
365
351
 
366
352
 
353
+ declare module '@tiptap/core' {
354
+ interface Commands<ReturnType> {
355
+ video: {
356
+ /**
357
+ * Add an video
358
+ */
359
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
360
+ /**
361
+ * Update an video
362
+ */
363
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
364
+ };
365
+ }
366
+ }
367
+
368
+
367
369
  declare module '@tiptap/core' {
368
370
  interface Commands<ReturnType> {
369
371
  tableCellBackground: {
@@ -79,6 +79,8 @@ declare interface GeneralOptions<T> {
79
79
  button: ButtonView<T>;
80
80
  /** Show on Toolbar */
81
81
  toolbar?: boolean;
82
+ /** Shortcut keys override */
83
+ shortcutKeys?: string[] | string[][];
82
84
  }
83
85
 
84
86
  declare type PageMargin = '0in' | '0.25in' | '0.4in' | '0.5in' | '0.75in' | '1in' | '1.25in' | '1.5in' | '1.75in' | '2in' | '0cm' | '0.5cm' | '1cm' | '1.5cm' | '2cm' | '2.5cm' | '3cm' | '4cm' | '5cm' | '0mm' | '5mm' | '10mm' | '15mm' | '20mm' | '25mm' | '30mm' | '40mm' | '50mm' | '0pt' | '18pt' | '36pt' | '54pt' | '72pt' | '90pt' | '108pt' | '144pt';
@@ -120,11 +122,9 @@ declare module '@tiptap/core' {
120
122
 
121
123
  declare module '@tiptap/core' {
122
124
  interface Commands<ReturnType> {
123
- emoji: {
124
- setEmoji: (emoji: {
125
- name: string;
126
- emoji: string;
127
- }) => ReturnType;
125
+ drawer: {
126
+ setDrawer: (options: any, replace?: any) => ReturnType;
127
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
128
128
  };
129
129
  }
130
130
  }
@@ -141,9 +141,11 @@ declare module '@tiptap/core' {
141
141
 
142
142
  declare module '@tiptap/core' {
143
143
  interface Commands<ReturnType> {
144
- drawer: {
145
- setDrawer: (options: any, replace?: any) => ReturnType;
146
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
144
+ emoji: {
145
+ setEmoji: (emoji: {
146
+ name: string;
147
+ emoji: string;
148
+ }) => ReturnType;
147
149
  };
148
150
  }
149
151
  }
@@ -265,15 +267,6 @@ declare module '@tiptap/core' {
265
267
  }
266
268
 
267
269
 
268
- declare module '@tiptap/core' {
269
- interface Commands<ReturnType> {
270
- katex: {
271
- setKatex: (arg?: IKatexAttrs) => ReturnType;
272
- };
273
- }
274
- }
275
-
276
-
277
270
  declare module '@tiptap/core' {
278
271
  interface Commands<ReturnType> {
279
272
  lineHeight: {
@@ -286,9 +279,8 @@ declare module '@tiptap/core' {
286
279
 
287
280
  declare module '@tiptap/core' {
288
281
  interface Commands<ReturnType> {
289
- mermaid: {
290
- setMermaid: (options: any, replace?: any) => ReturnType;
291
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
282
+ katex: {
283
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
292
284
  };
293
285
  }
294
286
  }
@@ -296,13 +288,9 @@ declare module '@tiptap/core' {
296
288
 
297
289
  declare module '@tiptap/core' {
298
290
  interface Commands<ReturnType> {
299
- columns: {
300
- insertColumns: (attrs?: {
301
- cols: number;
302
- }) => ReturnType;
303
- addColBefore: () => ReturnType;
304
- addColAfter: () => ReturnType;
305
- deleteCol: () => ReturnType;
291
+ mermaid: {
292
+ setMermaid: (options: any, replace?: any) => ReturnType;
293
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
306
294
  };
307
295
  }
308
296
  }
@@ -325,9 +313,13 @@ declare module '@tiptap/core' {
325
313
 
326
314
  declare module '@tiptap/core' {
327
315
  interface Commands<ReturnType> {
328
- tableOfContents: {
329
- setTableOfContents: () => ReturnType;
330
- removeTableOfContents: () => ReturnType;
316
+ columns: {
317
+ insertColumns: (attrs?: {
318
+ cols: number;
319
+ }) => ReturnType;
320
+ addColBefore: () => ReturnType;
321
+ addColAfter: () => ReturnType;
322
+ deleteCol: () => ReturnType;
331
323
  };
332
324
  }
333
325
  }
@@ -335,15 +327,9 @@ declare module '@tiptap/core' {
335
327
 
336
328
  declare module '@tiptap/core' {
337
329
  interface Commands<ReturnType> {
338
- video: {
339
- /**
340
- * Add an video
341
- */
342
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
343
- /**
344
- * Update an video
345
- */
346
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
330
+ tableOfContents: {
331
+ setTableOfContents: () => ReturnType;
332
+ removeTableOfContents: () => ReturnType;
347
333
  };
348
334
  }
349
335
  }
@@ -364,6 +350,22 @@ declare module '@tiptap/core' {
364
350
  }
365
351
 
366
352
 
353
+ declare module '@tiptap/core' {
354
+ interface Commands<ReturnType> {
355
+ video: {
356
+ /**
357
+ * Add an video
358
+ */
359
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
360
+ /**
361
+ * Update an video
362
+ */
363
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
364
+ };
365
+ }
366
+ }
367
+
368
+
367
369
  declare module '@tiptap/core' {
368
370
  interface Commands<ReturnType> {
369
371
  tableCellBackground: {
package/lib/ExportPdf.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { E as g } from "./index-DI9T3iLd.js";
2
- import { A as b } from "./RichTextEditor-VkzSL04E.js";
2
+ import { A as b } from "./RichTextEditor-CnWZ69eX.js";
3
3
  function y(e, n) {
4
4
  var i;
5
5
  const t = document.createElement("iframe");
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-ByRfqzMr.cjs"),s=require("docx"),t=require("prosemirror-docx"),i=require("./RichTextEditor-8GrfwaB4.cjs"),l=typeof window<"u";function c(o,e){if(l){const n=window.URL.createObjectURL(o),r=document.createElement("a");return r.href=n,r.download=e,r.click(),window.URL.revokeObjectURL(n),Promise.resolve()}return console.error("Download is not supported in Node.js"),Promise.resolve()}const u={...t.defaultNodes,hardBreak:t.defaultNodes.hard_break,codeBlock:t.defaultNodes.code_block,orderedList:t.defaultNodes.ordered_list,listItem:t.defaultNodes.list_item,bulletList:t.defaultNodes.bullet_list,horizontalRule:t.defaultNodes.horizontal_rule,image(o,e){o.renderInline(e),o.closeBlock(e)},table(o,e){o.table(e,{tableOptions:{width:{size:100,type:s.WidthType.PERCENTAGE}}})}},p=new t.DocxSerializer(u,t.defaultMarks),f=a.Extension.create({name:"exportWord",addOptions(){var o;return{...(o=this.parent)==null?void 0:o.call(this),button:({editor:e,t:n})=>({component:i.ActionButton,componentProps:{icon:"ExportWord",action:()=>{e==null||e.commands.exportToWord()},tooltip:n("editor.exportWord.tooltip"),isActive:()=>!1,disabled:!1}})}},addCommands(){return{exportToWord:()=>async({editor:o})=>{const e={getImageBuffer:async r=>{const d=await(await fetch(r)).arrayBuffer();return new Uint8Array(d)}},n=p.serialize(o.state.doc,e);return s.Packer.toBlob(n).then(r=>c(new Blob([r]),"export-document.docx")),!0}}}});exports.ExportWord=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-ByRfqzMr.cjs"),s=require("docx"),t=require("prosemirror-docx"),i=require("./RichTextEditor-BKywwUM4.cjs"),l=typeof window<"u";function c(o,e){if(l){const n=window.URL.createObjectURL(o),r=document.createElement("a");return r.href=n,r.download=e,r.click(),window.URL.revokeObjectURL(n),Promise.resolve()}return console.error("Download is not supported in Node.js"),Promise.resolve()}const u={...t.defaultNodes,hardBreak:t.defaultNodes.hard_break,codeBlock:t.defaultNodes.code_block,orderedList:t.defaultNodes.ordered_list,listItem:t.defaultNodes.list_item,bulletList:t.defaultNodes.bullet_list,horizontalRule:t.defaultNodes.horizontal_rule,image(o,e){o.renderInline(e),o.closeBlock(e)},table(o,e){o.table(e,{tableOptions:{width:{size:100,type:s.WidthType.PERCENTAGE}}})}},p=new t.DocxSerializer(u,t.defaultMarks),f=a.Extension.create({name:"exportWord",addOptions(){var o;return{...(o=this.parent)==null?void 0:o.call(this),button:({editor:e,t:n})=>({component:i.ActionButton,componentProps:{icon:"ExportWord",action:()=>{e==null||e.commands.exportToWord()},tooltip:n("editor.exportWord.tooltip"),isActive:()=>!1,disabled:!1}})}},addCommands(){return{exportToWord:()=>async({editor:o})=>{const e={getImageBuffer:async r=>{const d=await(await fetch(r)).arrayBuffer();return new Uint8Array(d)}},n=p.serialize(o.state.doc,e);return s.Packer.toBlob(n).then(r=>c(new Blob([r]),"export-document.docx")),!0}}}});exports.ExportWord=f;