reactjs-tiptap-editor 0.3.28 → 0.3.30

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-D0hFczCn.js → ActionMenuButton-B6fitGKu.js} +1 -1
  2. package/lib/{ActionMenuButton-C20molC9.cjs → ActionMenuButton-wiDnIxE2.cjs} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +41 -41
  5. package/lib/Attachment.d.ts +41 -41
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +41 -41
  9. package/lib/Blockquote.d.ts +41 -41
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +41 -41
  13. package/lib/Bold.d.ts +41 -41
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +41 -41
  17. package/lib/BulletList.d.ts +41 -41
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +41 -41
  21. package/lib/Clear.d.ts +41 -41
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +41 -41
  25. package/lib/Code.d.ts +41 -41
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +41 -41
  29. package/lib/CodeBlock.d.ts +41 -41
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +41 -41
  33. package/lib/CodeView.d.ts +41 -41
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +41 -41
  37. package/lib/Color.d.ts +41 -41
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +41 -41
  40. package/lib/Document.d.ts +41 -41
  41. package/lib/{Drawer-B96jQIQU.js → Drawer-BKTU9CpU.js} +1 -1
  42. package/lib/{Drawer-0kBt3GVL.cjs → Drawer-CmoEF-Zg.cjs} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +41 -41
  45. package/lib/Drawer.d.ts +41 -41
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +41 -41
  49. package/lib/Emoji.d.ts +41 -41
  50. package/lib/Emoji.js +1 -1
  51. package/lib/{Excalidraw-z3VZyGJ4.js → Excalidraw-CM74U5tG.js} +1 -1
  52. package/lib/{Excalidraw-HK9kjpX5.cjs → Excalidraw-DAPP9qgY.cjs} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +41 -41
  55. package/lib/Excalidraw.d.ts +41 -41
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +41 -41
  59. package/lib/ExportPdf.d.ts +41 -41
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +41 -41
  63. package/lib/ExportWord.d.ts +41 -41
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +41 -41
  67. package/lib/FontFamily.d.ts +41 -41
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +41 -41
  71. package/lib/FontSize.d.ts +41 -41
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +41 -41
  75. package/lib/FormatPainter.d.ts +41 -41
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +41 -41
  79. package/lib/Heading.d.ts +41 -41
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +41 -41
  83. package/lib/Highlight.d.ts +41 -41
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +41 -41
  87. package/lib/History.d.ts +41 -41
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +41 -41
  91. package/lib/HorizontalRule.d.ts +41 -41
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +41 -41
  95. package/lib/Iframe.d.ts +41 -41
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +41 -41
  99. package/lib/Image.d.ts +41 -41
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +44 -43
  103. package/lib/ImageGif.d.ts +44 -43
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +41 -41
  107. package/lib/ImportWord.d.ts +41 -41
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +41 -41
  111. package/lib/Indent.d.ts +41 -41
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +41 -41
  115. package/lib/Italic.d.ts +41 -41
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +41 -41
  119. package/lib/Katex.d.ts +41 -41
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +41 -41
  123. package/lib/LineHeight.d.ts +41 -41
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +41 -41
  127. package/lib/Link.d.ts +41 -41
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +41 -41
  130. package/lib/ListItem.d.ts +41 -41
  131. package/lib/Mention.d.cts +41 -41
  132. package/lib/Mention.d.ts +41 -41
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +41 -41
  135. package/lib/Mermaid.d.ts +41 -41
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +41 -41
  139. package/lib/MoreMark.d.ts +41 -41
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +41 -41
  143. package/lib/MultiColumn.d.ts +41 -41
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +41 -41
  147. package/lib/OrderedList.d.ts +41 -41
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-CnWZ69eX.js → RichTextEditor-BQN2eLD_.js} +997 -943
  150. package/lib/{RichTextEditor-BKywwUM4.cjs → RichTextEditor-C8Sm1E6J.cjs} +5 -5
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +41 -41
  153. package/lib/SearchAndReplace.d.ts +41 -41
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +41 -41
  156. package/lib/Selection.d.ts +41 -41
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +41 -41
  159. package/lib/SlashCommand.d.ts +41 -41
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +41 -41
  163. package/lib/Strike.d.ts +41 -41
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +41 -41
  167. package/lib/SubAndSuperScript.d.ts +41 -41
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +41 -41
  171. package/lib/Table.d.ts +41 -41
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +41 -41
  175. package/lib/TableOfContent.d.ts +41 -41
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +41 -41
  179. package/lib/TaskList.d.ts +41 -41
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +41 -41
  183. package/lib/TextAlign.d.ts +41 -41
  184. package/lib/TextAlign.js +1 -1
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +41 -41
  187. package/lib/TextBubble.d.ts +41 -41
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +41 -41
  191. package/lib/TextDirection.d.ts +41 -41
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +41 -41
  195. package/lib/TextUnderline.d.ts +41 -41
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +41 -41
  198. package/lib/TrailingNode.d.ts +41 -41
  199. package/lib/{Twitter-Dj49i3B9.cjs → Twitter-CL2pu4QM.cjs} +1 -1
  200. package/lib/{Twitter-CCf1aM0f.js → Twitter-Dg6WWauX.js} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +41 -41
  203. package/lib/Twitter.d.ts +41 -41
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +41 -41
  207. package/lib/Video.d.ts +41 -41
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +41 -41
  211. package/lib/bubble-extra.d.ts +41 -41
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +41 -41
  215. package/lib/index.d.ts +41 -41
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +41 -41
  218. package/lib/locale-bundle.d.ts +41 -41
  219. package/lib/style.css +1 -1
  220. package/lib/{textarea-nr3UZ7Wg.js → textarea-BglwYF6b.js} +1 -1
  221. package/lib/{textarea-DhlS0JCr.cjs → textarea-D5WVZMgt.cjs} +1 -1
  222. package/package.json +1 -1
package/lib/Twitter.d.ts CHANGED
@@ -72,8 +72,11 @@ declare module '@tiptap/core' {
72
72
 
73
73
  declare module '@tiptap/core' {
74
74
  interface Commands<ReturnType> {
75
- excalidraw: {
76
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
75
+ emoji: {
76
+ setEmoji: (emoji: {
77
+ name: string;
78
+ emoji: string;
79
+ }) => ReturnType;
77
80
  };
78
81
  }
79
82
  }
@@ -81,11 +84,8 @@ declare module '@tiptap/core' {
81
84
 
82
85
  declare module '@tiptap/core' {
83
86
  interface Commands<ReturnType> {
84
- emoji: {
85
- setEmoji: (emoji: {
86
- name: string;
87
- emoji: string;
88
- }) => ReturnType;
87
+ excalidraw: {
88
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
89
89
  };
90
90
  }
91
91
  }
@@ -136,21 +136,6 @@ declare module '@tiptap/core' {
136
136
  }
137
137
 
138
138
 
139
- declare module '@tiptap/core' {
140
- interface Commands<ReturnType> {
141
- iframe: {
142
- /**
143
- * Add an iframe
144
- */
145
- setIframe: (options: {
146
- src: string;
147
- service: string;
148
- }) => ReturnType;
149
- };
150
- }
151
- }
152
-
153
-
154
139
  declare module '@tiptap/core' {
155
140
  interface Commands<ReturnType> {
156
141
  imageUpload: {
@@ -171,6 +156,21 @@ declare module '@tiptap/core' {
171
156
  }
172
157
 
173
158
 
159
+ declare module '@tiptap/core' {
160
+ interface Commands<ReturnType> {
161
+ iframe: {
162
+ /**
163
+ * Add an iframe
164
+ */
165
+ setIframe: (options: {
166
+ src: string;
167
+ service: string;
168
+ }) => ReturnType;
169
+ };
170
+ }
171
+ }
172
+
173
+
174
174
  declare module '@tiptap/core' {
175
175
  interface Commands<ReturnType> {
176
176
  imageGifUpload: {
@@ -209,9 +209,8 @@ declare module '@tiptap/core' {
209
209
 
210
210
  declare module '@tiptap/core' {
211
211
  interface Commands<ReturnType> {
212
- lineHeight: {
213
- setLineHeight: (lineHeight: string) => ReturnType;
214
- unsetLineHeight: () => ReturnType;
212
+ katex: {
213
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
215
214
  };
216
215
  }
217
216
  }
@@ -219,8 +218,9 @@ declare module '@tiptap/core' {
219
218
 
220
219
  declare module '@tiptap/core' {
221
220
  interface Commands<ReturnType> {
222
- katex: {
223
- setKatex: (arg?: IKatexAttrs) => ReturnType;
221
+ lineHeight: {
222
+ setLineHeight: (lineHeight: string) => ReturnType;
223
+ unsetLineHeight: () => ReturnType;
224
224
  };
225
225
  }
226
226
  }
@@ -236,6 +236,20 @@ declare module '@tiptap/core' {
236
236
  }
237
237
 
238
238
 
239
+ declare module '@tiptap/core' {
240
+ interface Commands<ReturnType> {
241
+ columns: {
242
+ insertColumns: (attrs?: {
243
+ cols: number;
244
+ }) => ReturnType;
245
+ addColBefore: () => ReturnType;
246
+ addColAfter: () => ReturnType;
247
+ deleteCol: () => ReturnType;
248
+ };
249
+ }
250
+ }
251
+
252
+
239
253
  declare module '@tiptap/core' {
240
254
  interface Commands<ReturnType> {
241
255
  search: {
@@ -251,20 +265,6 @@ declare module '@tiptap/core' {
251
265
  }
252
266
 
253
267
 
254
- declare module '@tiptap/core' {
255
- interface Commands<ReturnType> {
256
- columns: {
257
- insertColumns: (attrs?: {
258
- cols: number;
259
- }) => ReturnType;
260
- addColBefore: () => ReturnType;
261
- addColAfter: () => ReturnType;
262
- deleteCol: () => ReturnType;
263
- };
264
- }
265
- }
266
-
267
-
268
268
  declare module '@tiptap/core' {
269
269
  interface Commands<ReturnType> {
270
270
  tableOfContents: {
package/lib/Twitter.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./index-DI9T3iLd.js";
2
2
  import "./dom-dataset-Di3tIRrR.js";
3
- import { T as m } from "./Twitter-CCf1aM0f.js";
3
+ import { T as m } from "./Twitter-Dg6WWauX.js";
4
4
  export {
5
5
  m as Twitter
6
6
  };
package/lib/Video.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-ByRfqzMr.cjs");require("./index-D_A0TBRA.cjs");const e=require("./RichTextEditor-BKywwUM4.cjs");exports.Video=e.Video;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-ByRfqzMr.cjs");require("./index-D_A0TBRA.cjs");const e=require("./RichTextEditor-C8Sm1E6J.cjs");exports.Video=e.Video;
package/lib/Video.d.cts CHANGED
@@ -157,8 +157,11 @@ declare module '@tiptap/core' {
157
157
 
158
158
  declare module '@tiptap/core' {
159
159
  interface Commands<ReturnType> {
160
- excalidraw: {
161
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
160
+ emoji: {
161
+ setEmoji: (emoji: {
162
+ name: string;
163
+ emoji: string;
164
+ }) => ReturnType;
162
165
  };
163
166
  }
164
167
  }
@@ -166,11 +169,8 @@ declare module '@tiptap/core' {
166
169
 
167
170
  declare module '@tiptap/core' {
168
171
  interface Commands<ReturnType> {
169
- emoji: {
170
- setEmoji: (emoji: {
171
- name: string;
172
- emoji: string;
173
- }) => ReturnType;
172
+ excalidraw: {
173
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
174
174
  };
175
175
  }
176
176
  }
@@ -221,21 +221,6 @@ declare module '@tiptap/core' {
221
221
  }
222
222
 
223
223
 
224
- declare module '@tiptap/core' {
225
- interface Commands<ReturnType> {
226
- iframe: {
227
- /**
228
- * Add an iframe
229
- */
230
- setIframe: (options: {
231
- src: string;
232
- service: string;
233
- }) => ReturnType;
234
- };
235
- }
236
- }
237
-
238
-
239
224
  declare module '@tiptap/core' {
240
225
  interface Commands<ReturnType> {
241
226
  imageUpload: {
@@ -256,6 +241,21 @@ declare module '@tiptap/core' {
256
241
  }
257
242
 
258
243
 
244
+ declare module '@tiptap/core' {
245
+ interface Commands<ReturnType> {
246
+ iframe: {
247
+ /**
248
+ * Add an iframe
249
+ */
250
+ setIframe: (options: {
251
+ src: string;
252
+ service: string;
253
+ }) => ReturnType;
254
+ };
255
+ }
256
+ }
257
+
258
+
259
259
  declare module '@tiptap/core' {
260
260
  interface Commands<ReturnType> {
261
261
  imageGifUpload: {
@@ -294,9 +294,8 @@ declare module '@tiptap/core' {
294
294
 
295
295
  declare module '@tiptap/core' {
296
296
  interface Commands<ReturnType> {
297
- lineHeight: {
298
- setLineHeight: (lineHeight: string) => ReturnType;
299
- unsetLineHeight: () => ReturnType;
297
+ katex: {
298
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
300
299
  };
301
300
  }
302
301
  }
@@ -304,8 +303,9 @@ declare module '@tiptap/core' {
304
303
 
305
304
  declare module '@tiptap/core' {
306
305
  interface Commands<ReturnType> {
307
- katex: {
308
- setKatex: (arg?: IKatexAttrs) => ReturnType;
306
+ lineHeight: {
307
+ setLineHeight: (lineHeight: string) => ReturnType;
308
+ unsetLineHeight: () => ReturnType;
309
309
  };
310
310
  }
311
311
  }
@@ -321,6 +321,20 @@ declare module '@tiptap/core' {
321
321
  }
322
322
 
323
323
 
324
+ declare module '@tiptap/core' {
325
+ interface Commands<ReturnType> {
326
+ columns: {
327
+ insertColumns: (attrs?: {
328
+ cols: number;
329
+ }) => ReturnType;
330
+ addColBefore: () => ReturnType;
331
+ addColAfter: () => ReturnType;
332
+ deleteCol: () => ReturnType;
333
+ };
334
+ }
335
+ }
336
+
337
+
324
338
  declare module '@tiptap/core' {
325
339
  interface Commands<ReturnType> {
326
340
  search: {
@@ -336,20 +350,6 @@ declare module '@tiptap/core' {
336
350
  }
337
351
 
338
352
 
339
- declare module '@tiptap/core' {
340
- interface Commands<ReturnType> {
341
- columns: {
342
- insertColumns: (attrs?: {
343
- cols: number;
344
- }) => ReturnType;
345
- addColBefore: () => ReturnType;
346
- addColAfter: () => ReturnType;
347
- deleteCol: () => ReturnType;
348
- };
349
- }
350
- }
351
-
352
-
353
353
  declare module '@tiptap/core' {
354
354
  interface Commands<ReturnType> {
355
355
  tableOfContents: {
package/lib/Video.d.ts CHANGED
@@ -157,8 +157,11 @@ declare module '@tiptap/core' {
157
157
 
158
158
  declare module '@tiptap/core' {
159
159
  interface Commands<ReturnType> {
160
- excalidraw: {
161
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
160
+ emoji: {
161
+ setEmoji: (emoji: {
162
+ name: string;
163
+ emoji: string;
164
+ }) => ReturnType;
162
165
  };
163
166
  }
164
167
  }
@@ -166,11 +169,8 @@ declare module '@tiptap/core' {
166
169
 
167
170
  declare module '@tiptap/core' {
168
171
  interface Commands<ReturnType> {
169
- emoji: {
170
- setEmoji: (emoji: {
171
- name: string;
172
- emoji: string;
173
- }) => ReturnType;
172
+ excalidraw: {
173
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
174
174
  };
175
175
  }
176
176
  }
@@ -221,21 +221,6 @@ declare module '@tiptap/core' {
221
221
  }
222
222
 
223
223
 
224
- declare module '@tiptap/core' {
225
- interface Commands<ReturnType> {
226
- iframe: {
227
- /**
228
- * Add an iframe
229
- */
230
- setIframe: (options: {
231
- src: string;
232
- service: string;
233
- }) => ReturnType;
234
- };
235
- }
236
- }
237
-
238
-
239
224
  declare module '@tiptap/core' {
240
225
  interface Commands<ReturnType> {
241
226
  imageUpload: {
@@ -256,6 +241,21 @@ declare module '@tiptap/core' {
256
241
  }
257
242
 
258
243
 
244
+ declare module '@tiptap/core' {
245
+ interface Commands<ReturnType> {
246
+ iframe: {
247
+ /**
248
+ * Add an iframe
249
+ */
250
+ setIframe: (options: {
251
+ src: string;
252
+ service: string;
253
+ }) => ReturnType;
254
+ };
255
+ }
256
+ }
257
+
258
+
259
259
  declare module '@tiptap/core' {
260
260
  interface Commands<ReturnType> {
261
261
  imageGifUpload: {
@@ -294,9 +294,8 @@ declare module '@tiptap/core' {
294
294
 
295
295
  declare module '@tiptap/core' {
296
296
  interface Commands<ReturnType> {
297
- lineHeight: {
298
- setLineHeight: (lineHeight: string) => ReturnType;
299
- unsetLineHeight: () => ReturnType;
297
+ katex: {
298
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
300
299
  };
301
300
  }
302
301
  }
@@ -304,8 +303,9 @@ declare module '@tiptap/core' {
304
303
 
305
304
  declare module '@tiptap/core' {
306
305
  interface Commands<ReturnType> {
307
- katex: {
308
- setKatex: (arg?: IKatexAttrs) => ReturnType;
306
+ lineHeight: {
307
+ setLineHeight: (lineHeight: string) => ReturnType;
308
+ unsetLineHeight: () => ReturnType;
309
309
  };
310
310
  }
311
311
  }
@@ -321,6 +321,20 @@ declare module '@tiptap/core' {
321
321
  }
322
322
 
323
323
 
324
+ declare module '@tiptap/core' {
325
+ interface Commands<ReturnType> {
326
+ columns: {
327
+ insertColumns: (attrs?: {
328
+ cols: number;
329
+ }) => ReturnType;
330
+ addColBefore: () => ReturnType;
331
+ addColAfter: () => ReturnType;
332
+ deleteCol: () => ReturnType;
333
+ };
334
+ }
335
+ }
336
+
337
+
324
338
  declare module '@tiptap/core' {
325
339
  interface Commands<ReturnType> {
326
340
  search: {
@@ -336,20 +350,6 @@ declare module '@tiptap/core' {
336
350
  }
337
351
 
338
352
 
339
- declare module '@tiptap/core' {
340
- interface Commands<ReturnType> {
341
- columns: {
342
- insertColumns: (attrs?: {
343
- cols: number;
344
- }) => ReturnType;
345
- addColBefore: () => ReturnType;
346
- addColAfter: () => ReturnType;
347
- deleteCol: () => ReturnType;
348
- };
349
- }
350
- }
351
-
352
-
353
353
  declare module '@tiptap/core' {
354
354
  interface Commands<ReturnType> {
355
355
  tableOfContents: {
package/lib/Video.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./index-DI9T3iLd.js";
2
2
  import "./index-CsK90iVd.js";
3
- import { V as p } from "./RichTextEditor-CnWZ69eX.js";
3
+ import { V as p } from "./RichTextEditor-BQN2eLD_.js";
4
4
  export {
5
5
  p as Video
6
6
  };
@@ -1,2 +1,2 @@
1
- "use strict";var V=Object.create;var q=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var Z=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var Q=(e,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of G(n))!J.call(e,i)&&i!==s&&q(e,i,{get:()=>n[i],enumerable:!(c=_(n,i))||c.enumerable});return e};var X=(e,n,s)=>(s=e!=null?V(Z(e)):{},Q(n||!e||!e.__esModule?q(s,"default",{value:e,enumerable:!0}):s,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),k=require("./dom-dataset-Byuf1YmW.cjs"),o=require("./RichTextEditor-BKywwUM4.cjs"),L=require("./Mermaid.cjs"),E=require("./shortId-Bfj8TyNr.cjs"),H=require("./textarea-DhlS0JCr.cjs"),D=require("./index-D_A0TBRA.cjs"),M=require("./Excalidraw-HK9kjpX5.cjs"),W=require("./Twitter-Dj49i3B9.cjs"),Y=require("katex"),F=require("lucide-react"),B=require("./Katex.cjs"),O=require("./Drawer-0kBt3GVL.cjs"),R=require("easydrawer"),$=`graph TB
1
+ "use strict";var V=Object.create;var q=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var Z=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var Q=(e,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of G(n))!J.call(e,i)&&i!==s&&q(e,i,{get:()=>n[i],enumerable:!(c=_(n,i))||c.enumerable});return e};var X=(e,n,s)=>(s=e!=null?V(Z(e)):{},Q(n||!e||!e.__esModule?q(s,"default",{value:e,enumerable:!0}):s,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("react"),k=require("./dom-dataset-Byuf1YmW.cjs"),o=require("./RichTextEditor-C8Sm1E6J.cjs"),L=require("./Mermaid.cjs"),E=require("./shortId-Bfj8TyNr.cjs"),H=require("./textarea-D5WVZMgt.cjs"),D=require("./index-D_A0TBRA.cjs"),M=require("./Excalidraw-DAPP9qgY.cjs"),W=require("./Twitter-CL2pu4QM.cjs"),Y=require("katex"),F=require("lucide-react"),B=require("./Katex.cjs"),O=require("./Drawer-CmoEF-Zg.cjs"),R=require("easydrawer"),$=`graph TB
2
2
  a-->b`,ee=({editor:e,attrs:n,extension:s})=>{const{alt:c,align:i}=n,[r,l]=a.useState(decodeURIComponent(c??$)),[u,x]=a.useState(""),[f,b]=a.useState(!1),p=a.useRef(null),[g,y]=a.useState(null),S=s==null?void 0:s.options.upload,I=a.useCallback(w=>{w&&import("mermaid").then(j=>{y(j.default)})},[]),T=async w=>{try{const{svg:j}=await g.render("mermaid-svg",w);x(j)}catch{x("")}},N=()=>{g.initialize({darkMode:!1,startOnLoad:!1,fontSize:12,theme:"base"}),T(r)};a.useEffect(()=>{g&&f&&N()},[g,f]),a.useEffect(()=>{g&&f&&T(r)},[g,r]);const A=async()=>{if(r!==""){if(r){const w=p.current.querySelector("svg"),{width:j,height:z}=w.getBoundingClientRect(),m=`mermaid-${E.shortId()}.svg`;let d=E.i(w.outerHTML);if(S){const h=o.dataURLtoFile(d,m);d=await S(h)}e==null||e.chain().focus().setMermaid({type:"mermaid",src:d,alt:encodeURIComponent(r),width:j,height:z},!!r).run(),e==null||e.commands.setAlignImageMermaid(i)}b(!1)}};return t.jsxs(o.Dialog,{onOpenChange:b,open:f,children:[t.jsx(o.DialogTrigger,{asChild:!0,children:t.jsx(o.ActionButton,{action:()=>b(!0),icon:"Pencil",tooltip:"Edit Mermaid"})}),t.jsxs(o.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[t.jsx(o.DialogTitle,{children:"Edit Mermaid"}),t.jsx("div",{ref:I,style:{height:"100%",border:"1px solid hsl(var(--border))"},children:t.jsxs("div",{className:"richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]",children:[t.jsx(H.Textarea,{autoFocus:!0,className:"richtext-flex-1",defaultValue:$,onChange:w=>l(w.target.value),placeholder:"Text",required:!0,rows:10,value:r,style:{color:"hsl(var(--richtext-foreground))"}}),t.jsx("div",{className:"richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-rounded-[10px] richtext-p-[10px]",dangerouslySetInnerHTML:{__html:u},ref:p,style:{height:"100%",border:"1px solid hsl(var(--border))",minHeight:500,background:"#fff"}})]})}),t.jsx(o.DialogFooter,{children:t.jsx(o.Button,{onClick:A,type:"button",children:"Save changes"})})]})]})};function K(e,n){const[s,c]=a.useState(void 0);return a.useEffect(()=>{const i=()=>{const r=e.extensionManager.extensions.find(l=>l.name===n);r&&c(r)};return e.on("selectionUpdate",i),e.on("transaction",i),()=>{e.off("selectionUpdate",i),e.off("transaction",i)}},[e,n]),s}const te={maxWidth:"auto",zIndex:20,appendTo:"parent",moveTransition:"transform 0.1s ease-out"};function re({item:e,disabled:n,editor:s}){var i;const c=e.component;return c?t.jsx(a.Fragment,{children:e.type==="divider"?t.jsx(o.Separator,{className:"!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]",orientation:"vertical"}):t.jsx(c,{...e.componentProps,disabled:n||((i=e==null?void 0:e.componentProps)==null?void 0:i.disabled),editor:s})}):t.jsx(t.Fragment,{})}function ne(e){return e.type.name==="mermaid"}function ie(e){const{lang:n}=D.useLocale(),s=o.useAttributes(e.editor,L.Mermaid.name),c=K(e.editor,L.Mermaid.name),i=({editor:l})=>{const{selection:u}=l.view.state,{$from:x,to:f}=u;let b=!1;return l.view.state.doc.nodesBetween(x.pos,f,p=>{if(ne(p))return b=!0,!1}),b},r=a.useMemo(()=>e.disabled?[]:o.getBubbleMermaid(e.editor),[e.disabled,e.editor,n]);return t.jsx(t.Fragment,{children:t.jsx(k.BubbleMenu,{editor:e==null?void 0:e.editor,shouldShow:i,tippyOptions:te,children:r!=null&&r.length?t.jsx("div",{className:"richtext-pointer-events-auto richtext-w-auto richtext-select-none richtext-rounded-sm !richtext-border richtext-border-neutral-200 richtext-bg-background richtext-px-3 richtext-py-2 richtext-shadow-sm richtext-transition-all dark:richtext-border-neutral-800",children:t.jsx("div",{className:"richtext-relative richtext-flex richtext-h-[26px] richtext-flex-nowrap richtext-items-center richtext-justify-start richtext-whitespace-nowrap",children:r==null?void 0:r.map((l,u)=>l.type==="edit"&&(s!=null&&s.src)?t.jsx(ee,{attrs:s,editor:e.editor,extension:c},`bubbleMenu-mermaid-${u}`):t.jsx(re,{disabled:e.disabled,editor:e.editor,item:l},`bubbleMenu-mermaid-${u}`))})}):t.jsx(t.Fragment,{})})})}const v=new Map;function se(e){const n=e.options.element;v.has("width")||v.set("width",n.clientWidth),v.has("width")&&v.get("width")<=0&&v.set("width",n.clientWidth);const s={attributes:!0,childList:!0,subtree:!0},c=function(){v.set("width",n.clientWidth)},i=new MutationObserver(c);return i.observe(n,s),e.on("destroy",()=>{i.disconnect()}),{width:v.get("width")}}function oe({editor:e}){const{t:n}=D.useLocale(),{width:s}=se(e),c=o.useAttributes(e,M.Excalidraw.name,{defaultShowPicker:!1,createUser:"",width:0,height:0}),{defaultShowPicker:i,createUser:r,width:l,height:u}=c,x=a.useCallback(g=>{e.chain().updateAttributes(M.Excalidraw.name,g).setNodeSelection(e.state.selection.from).focus().run()},[e]),f=a.useCallback(()=>{M.triggerOpenExcalidrawSettingModal({...c,editor:e})},[e,c]),b=a.useCallback(()=>e.isActive(M.Excalidraw.name),[e]),p=a.useCallback(()=>o.deleteNode(M.Excalidraw.name,e),[e]);return a.useEffect(()=>{i&&(f(),e.chain().updateAttributes(M.Excalidraw.name,{defaultShowPicker:!1}).focus().run())},[r,i,e,f]),t.jsx(k.BubbleMenu,{className:"bubble-menu",editor:e,pluginKey:"excalidraw-bubble-menu",shouldShow:b,tippyOptions:{popperOptions:{modifiers:[{name:"flip",enabled:!1}]},placement:"bottom-start",offset:[-2,16],zIndex:9999},children:t.jsxs("div",{className:"richtext-w-auto richtext-px-3 richtext-py-2 richtext-transition-all !richtext-border richtext-rounded-sm richtext-shadow-sm richtext-pointer-events-auto richtext-select-none richtext-border-neutral-200 dark:richtext-border-neutral-800 richtext-bg-background",children:[t.jsx(o.ActionButton,{icon:"Pencil",action:f,tooltip:n("editor.edit")}),t.jsx(o.SizeSetter,{width:l,maxWidth:s,height:u,onOk:x,children:t.jsx(o.ActionButton,{icon:"Settings",tooltip:n("editor.settings")})}),t.jsx(o.ActionButton,{icon:"Trash2",action:p,tooltip:n("editor.delete")})]})})}function ae({editor:e,disabled:n}){const[s,c]=a.useState(!1),{t:i}=D.useLocale(),r=a.useCallback(({editor:x})=>x.isActive(W.Twitter.name),[]),l=x=>{e.commands.updateTweet({src:x}),c(!1)},u=a.useCallback(()=>o.deleteNode(W.Twitter.name,e),[e]);return t.jsx(t.Fragment,{children:t.jsx(k.BubbleMenu,{editor:e,shouldShow:r,tippyOptions:{popperOptions:{modifiers:[{name:"flip",enabled:!1}]},placement:"bottom-start",offset:[-2,16],zIndex:9999,onHidden:()=>{c(!1)}},children:n?t.jsx(t.Fragment,{}):t.jsx(t.Fragment,{children:s?t.jsx(W.FormEditLinkTwitter,{editor:e,onSetLink:l}):t.jsx("div",{className:"richtext-flex richtext-items-center richtext-gap-2 richtext-rounded-lg !richtext-border richtext-border-neutral-200 richtext-bg-white richtext-p-2 richtext-shadow-sm dark:richtext-border-neutral-800 dark:richtext-bg-black",children:t.jsxs("div",{className:"richtext-flex richtext-flex-nowrap",children:[t.jsx(o.ActionButton,{icon:"Pencil",tooltip:i("editor.link.edit.tooltip"),tooltipOptions:{sideOffset:15},action:()=>{c(!0)}}),t.jsx(o.ActionButton,{action:u,icon:"Trash",tooltip:i("editor.delete"),tooltipOptions:{sideOffset:15}})]})})})})})}function ce({editor:e,...n}){const s=o.useAttributes(e,B.Katex.name,{text:"",defaultShowPicker:!1}),{text:c,defaultShowPicker:i}=s,[r,l]=a.useState(""),[u,x]=a.useState(!1),f=a.useCallback(()=>e.isActive(B.Katex.name),[e]),b=a.useCallback(()=>o.deleteNode(B.Katex.name,e),[e]),p=a.useCallback(()=>{e.chain().focus().setKatex({text:r}).run(),x(!1)},[e,r]);a.useEffect(()=>{i&&(x(!0),e.chain().updateAttributes(B.Katex.name,{defaultShowPicker:!1}).focus().run())},[e,i,x]),a.useEffect(()=>{u&&l(c||"")},[u]);const g=a.useMemo(()=>{try{return Y.renderToString(`${r}`)}catch{return r}},[r]),y=a.useMemo(()=>`${r}`.trim()?t.jsx("span",{contentEditable:!1,dangerouslySetInnerHTML:{__html:g||""}}):null,[r,g]);return t.jsx(k.BubbleMenu,{editor:e,pluginKey:"Katex-bubble-menu",shouldShow:f,tippyOptions:{popperOptions:{modifiers:[{name:"flip",enabled:!1}]},placement:"bottom-start",offset:[-2,16],zIndex:9999,onHidden:()=>{x(!1)}},children:n!=null&&n.disabled?t.jsx(t.Fragment,{}):t.jsx("div",{className:"richtext-rounded-lg !richtext-border richtext-border-neutral-200 richtext-bg-white richtext-p-2 richtext-shadow-sm dark:richtext-border-neutral-800 dark:richtext-bg-black",children:u?t.jsxs(t.Fragment,{children:[t.jsx(H.Textarea,{autoFocus:!0,defaultValue:c,onChange:S=>l(S.target.value),placeholder:"Formula text",rows:3,style:{marginBottom:8},value:r}),y&&t.jsx("div",{className:"richtext-my-[10px] richtext-overflow-auto richtext-whitespace-nowrap richtext-rounded-[6px] !richtext-border richtext-p-[10px]",children:y}),t.jsxs("div",{className:"richtext-flex richtext-items-center richtext-justify-between richtext-gap-[6px]",children:[t.jsx(o.Button,{className:"richtext-flex-1",onClick:p,children:"Submit"}),t.jsx("a",{href:"https://katex.org/docs/supported",rel:"noreferrer noopener",target:"_blank",children:t.jsx(F.HelpCircle,{size:16})})]})]}):t.jsxs("div",{className:"richtext-flex richtext-items-center richtext-justify-center richtext-gap-[6px]",children:[t.jsx(o.ActionButton,{action:()=>x(!u),tooltip:"Edit",children:t.jsx(F.Pencil,{size:16})}),t.jsx(o.ActionButton,{action:b,tooltip:"Delete",children:t.jsx(F.Trash2,{size:16})})]})})})}let C=!1;function le({editor:e,attrs:n,extension:s}){const[c,i]=a.useState(!1),r=a.useRef(null),l=a.useRef(null),{alt:u,align:x}=n,f=s==null?void 0:s.options.upload,b=()=>{(async()=>{const d=document.querySelector("#easydrawer");d&&(r.current=new R.Editor(d,{wheelEventsEnabled:!1,disableZoom:!0}),l.current=R.makeDropdownToolbar(r.current),l.current.addDefaultToolWidgets(),r.current.loadFromSVG(decodeURIComponent(u)))})()};a.useEffect(()=>{c&&setTimeout(()=>{b()},200)},[c]);const p=async()=>{if(r.current){const m=r.current.toSVG(),d=m.outerHTML,h=`drawer-${E.shortId()}.svg`;let P=E.i(m.outerHTML);if(f){const U=o.dataURLtoFile(P,h);P=await f(U)}e==null||e.chain().focus().setDrawer({type:"drawer",src:P,alt:encodeURIComponent(d),width:426,height:212},!!d).run(),e==null||e.commands.setAlignImageDrawer(x)}i(!1)},g=m=>{const d=r.current.toolController.getPrimaryTools()[2],h=l.current.getWidgetById("pen-1");d&&h&&(d.setColor(m),h.serializeState())},y=m=>{const d=r.current.toolController.getPrimaryTools()[2],h=l.current.getWidgetById("pen-1");d&&h&&(d.setThickness(m),h.serializeState())},S=m=>{const d=r.current.toolController.getPrimaryTools()[3],h=l.current.getWidgetById("pen-2");d&&h&&(d.setColor(m),h.serializeState())},I=m=>{const d=l.current.getWidgetById("shape");d&&d.setShapeType(m)},T=m=>{const d=r.current.toolController.getPrimaryTools()[5],h=l.current.getWidgetById("shape");d&&h&&(d.setColor(m),h.serializeState())},N=m=>{const d=r.current.toolController.getPrimaryTools()[5],h=l.current.getWidgetById("shape");d&&h&&(d.setThickness(m),h.serializeState())},A=m=>{const d=r.current.toolController.getPrimaryTools()[5],h=l.current.getWidgetById("shape");d&&h&&(d.setBorderColor(m),h.serializeState())},w=()=>{if(C){for(;r.current.history.redoStackSize>0;)r.current.history.redo();C=!1;return}r.current.history.undo()},j=()=>{C||r.current.history.redo()},z=()=>{if(!C){for(;r.current.history.undoStackSize>0;)w();C=!0}};return t.jsxs(o.Dialog,{onOpenChange:i,open:c,children:[t.jsx(o.DialogTrigger,{asChild:!0,children:t.jsx(o.ActionButton,{action:()=>i(!0),icon:"Pencil",tooltip:"Edit Drawer"})}),t.jsxs(o.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[t.jsx(o.DialogTitle,{children:"Edit Drawer"}),t.jsxs("div",{style:{height:"100%",borderWidth:1,background:"white",position:"relative"},children:[t.jsx("div",{className:"richtext-size-full",id:"easydrawer"}),t.jsx(O.ControlDrawer,{changeBorderColorShape:A,changeColorShape:T,changeShape:I,onClear:z,onRedo:j,onThicknessChange:N,onUndo:w,refEditor:r,setColorHighlight:S,setColorPen:g,setThicknessPen:y})]}),t.jsx(o.DialogFooter,{children:t.jsx(o.Button,{onClick:p,type:"button",children:"Save changes"})})]})]})}const de={maxWidth:"auto",zIndex:20,appendTo:"parent",moveTransition:"transform 0.1s ease-out"};function ue({item:e,disabled:n,editor:s}){var i;const c=e.component;return c?t.jsx(a.Fragment,{children:e.type==="divider"?t.jsx(o.Separator,{className:"!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]",orientation:"vertical"}):t.jsx(c,{...e.componentProps,disabled:n||((i=e==null?void 0:e.componentProps)==null?void 0:i.disabled),editor:s})}):t.jsx(t.Fragment,{})}function he(e){return e.type.name==="drawer"}function xe(e){const{lang:n}=D.useLocale(),s=o.useAttributes(e.editor,O.Drawer.name),c=K(e.editor,O.Drawer.name),i=({editor:l})=>{const{selection:u}=l.view.state,{$from:x,to:f}=u;let b=!1;return l.view.state.doc.nodesBetween(x.pos,f,p=>{if(he(p))return b=!0,!1}),b},r=a.useMemo(()=>e.disabled?[]:o.getBubbleDrawer(e.editor),[e.disabled,e.editor,n]);return t.jsx(k.BubbleMenu,{editor:e==null?void 0:e.editor,shouldShow:i,tippyOptions:de,children:r!=null&&r.length?t.jsx("div",{className:"richtext-pointer-events-auto richtext-w-auto richtext-select-none richtext-rounded-sm !richtext-border richtext-border-neutral-200 richtext-bg-background richtext-px-3 richtext-py-2 richtext-shadow-sm richtext-transition-all dark:richtext-border-neutral-800",children:t.jsx("div",{className:"richtext-relative richtext-flex richtext-h-[26px] richtext-flex-nowrap richtext-items-center richtext-justify-start richtext-whitespace-nowrap",children:r==null?void 0:r.map((l,u)=>l.type==="edit"&&(s!=null&&s.src)?t.jsx(le,{attrs:s,editor:e.editor,extension:c},`bubbleMenu-drawer-${u}`):t.jsx(ue,{disabled:e.disabled,editor:e.editor,item:l},`bubbleMenu-drawer-${u}`))})}):t.jsx(t.Fragment,{})})}exports.BubbleMenuDrawer=xe;exports.BubbleMenuExcalidraw=oe;exports.BubbleMenuKatex=ce;exports.BubbleMenuMermaid=ie;exports.BubbleMenuTwitter=ae;
@@ -71,8 +71,11 @@ declare module '@tiptap/core' {
71
71
 
72
72
  declare module '@tiptap/core' {
73
73
  interface Commands<ReturnType> {
74
- excalidraw: {
75
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
74
+ emoji: {
75
+ setEmoji: (emoji: {
76
+ name: string;
77
+ emoji: string;
78
+ }) => ReturnType;
76
79
  };
77
80
  }
78
81
  }
@@ -80,11 +83,8 @@ declare module '@tiptap/core' {
80
83
 
81
84
  declare module '@tiptap/core' {
82
85
  interface Commands<ReturnType> {
83
- emoji: {
84
- setEmoji: (emoji: {
85
- name: string;
86
- emoji: string;
87
- }) => ReturnType;
86
+ excalidraw: {
87
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
88
88
  };
89
89
  }
90
90
  }
@@ -135,21 +135,6 @@ declare module '@tiptap/core' {
135
135
  }
136
136
 
137
137
 
138
- declare module '@tiptap/core' {
139
- interface Commands<ReturnType> {
140
- iframe: {
141
- /**
142
- * Add an iframe
143
- */
144
- setIframe: (options: {
145
- src: string;
146
- service: string;
147
- }) => ReturnType;
148
- };
149
- }
150
- }
151
-
152
-
153
138
  declare module '@tiptap/core' {
154
139
  interface Commands<ReturnType> {
155
140
  imageUpload: {
@@ -170,6 +155,21 @@ declare module '@tiptap/core' {
170
155
  }
171
156
 
172
157
 
158
+ declare module '@tiptap/core' {
159
+ interface Commands<ReturnType> {
160
+ iframe: {
161
+ /**
162
+ * Add an iframe
163
+ */
164
+ setIframe: (options: {
165
+ src: string;
166
+ service: string;
167
+ }) => ReturnType;
168
+ };
169
+ }
170
+ }
171
+
172
+
173
173
  declare module '@tiptap/core' {
174
174
  interface Commands<ReturnType> {
175
175
  imageGifUpload: {
@@ -208,9 +208,8 @@ declare module '@tiptap/core' {
208
208
 
209
209
  declare module '@tiptap/core' {
210
210
  interface Commands<ReturnType> {
211
- lineHeight: {
212
- setLineHeight: (lineHeight: string) => ReturnType;
213
- unsetLineHeight: () => ReturnType;
211
+ katex: {
212
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
214
213
  };
215
214
  }
216
215
  }
@@ -218,8 +217,9 @@ declare module '@tiptap/core' {
218
217
 
219
218
  declare module '@tiptap/core' {
220
219
  interface Commands<ReturnType> {
221
- katex: {
222
- setKatex: (arg?: IKatexAttrs) => ReturnType;
220
+ lineHeight: {
221
+ setLineHeight: (lineHeight: string) => ReturnType;
222
+ unsetLineHeight: () => ReturnType;
223
223
  };
224
224
  }
225
225
  }
@@ -235,6 +235,20 @@ declare module '@tiptap/core' {
235
235
  }
236
236
 
237
237
 
238
+ declare module '@tiptap/core' {
239
+ interface Commands<ReturnType> {
240
+ columns: {
241
+ insertColumns: (attrs?: {
242
+ cols: number;
243
+ }) => ReturnType;
244
+ addColBefore: () => ReturnType;
245
+ addColAfter: () => ReturnType;
246
+ deleteCol: () => ReturnType;
247
+ };
248
+ }
249
+ }
250
+
251
+
238
252
  declare module '@tiptap/core' {
239
253
  interface Commands<ReturnType> {
240
254
  search: {
@@ -250,20 +264,6 @@ declare module '@tiptap/core' {
250
264
  }
251
265
 
252
266
 
253
- declare module '@tiptap/core' {
254
- interface Commands<ReturnType> {
255
- columns: {
256
- insertColumns: (attrs?: {
257
- cols: number;
258
- }) => ReturnType;
259
- addColBefore: () => ReturnType;
260
- addColAfter: () => ReturnType;
261
- deleteCol: () => ReturnType;
262
- };
263
- }
264
- }
265
-
266
-
267
267
  declare module '@tiptap/core' {
268
268
  interface Commands<ReturnType> {
269
269
  tableOfContents: {