reactjs-tiptap-editor 0.3.22 → 0.3.24

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 (226) hide show
  1. package/lib/{ActionMenuButton-CtcDNq-L.js → ActionMenuButton-BW1lNB_I.js} +1 -1
  2. package/lib/{ActionMenuButton-B81uYOvt.cjs → ActionMenuButton-BqO6QTnX.cjs} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +29 -29
  5. package/lib/Attachment.d.ts +29 -29
  6. package/lib/Attachment.js +2 -2
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +29 -29
  9. package/lib/Blockquote.d.ts +29 -29
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +29 -29
  13. package/lib/Bold.d.ts +29 -29
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +29 -29
  17. package/lib/BulletList.d.ts +29 -29
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +29 -29
  21. package/lib/Clear.d.ts +29 -29
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +29 -29
  25. package/lib/Code.d.ts +29 -29
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +29 -29
  29. package/lib/CodeBlock.d.ts +29 -29
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +29 -29
  33. package/lib/CodeView.d.ts +29 -29
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +29 -29
  37. package/lib/Color.d.ts +29 -29
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +29 -29
  40. package/lib/Document.d.ts +29 -29
  41. package/lib/{Drawer-CHGZ5D6j.cjs → Drawer-B1rmIQfS.cjs} +1 -1
  42. package/lib/{Drawer-BI_9XSqI.js → Drawer-DEqRsjHw.js} +10 -10
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +29 -29
  45. package/lib/Drawer.d.ts +29 -29
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +29 -29
  49. package/lib/Emoji.d.ts +29 -29
  50. package/lib/Emoji.js +2 -2
  51. package/lib/{Excalidraw-AIzEaOzF.js → Excalidraw-D2y-x-OZ.js} +2 -2
  52. package/lib/{Excalidraw-DOJiMnFl.cjs → Excalidraw-Qr5vHe9J.cjs} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +29 -29
  55. package/lib/Excalidraw.d.ts +29 -29
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +29 -29
  59. package/lib/ExportPdf.d.ts +29 -29
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +29 -29
  63. package/lib/ExportWord.d.ts +29 -29
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +29 -29
  67. package/lib/FontFamily.d.ts +29 -29
  68. package/lib/FontFamily.js +5 -5
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +29 -29
  71. package/lib/FontSize.d.ts +29 -29
  72. package/lib/FontSize.js +3 -3
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +29 -29
  75. package/lib/FormatPainter.d.ts +29 -29
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +29 -29
  79. package/lib/Heading.d.ts +29 -29
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +29 -29
  83. package/lib/Highlight.d.ts +29 -29
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +29 -29
  87. package/lib/History.d.ts +29 -29
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +29 -29
  91. package/lib/HorizontalRule.d.ts +29 -29
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +29 -29
  95. package/lib/Iframe.d.ts +29 -29
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +29 -29
  99. package/lib/Image.d.ts +29 -29
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +29 -29
  103. package/lib/ImageGif.d.ts +29 -29
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +29 -29
  107. package/lib/ImportWord.d.ts +29 -29
  108. package/lib/ImportWord.js +2 -2
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +29 -29
  111. package/lib/Indent.d.ts +29 -29
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +29 -29
  115. package/lib/Italic.d.ts +29 -29
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +29 -29
  119. package/lib/Katex.d.ts +29 -29
  120. package/lib/Katex.js +3 -3
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +29 -29
  123. package/lib/LineHeight.d.ts +29 -29
  124. package/lib/LineHeight.js +6 -6
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +29 -29
  127. package/lib/Link.d.ts +29 -29
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +29 -29
  130. package/lib/ListItem.d.ts +29 -29
  131. package/lib/Mention.d.cts +29 -29
  132. package/lib/Mention.d.ts +29 -29
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +29 -29
  135. package/lib/Mermaid.d.ts +29 -29
  136. package/lib/Mermaid.js +14 -14
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +29 -29
  139. package/lib/MoreMark.d.ts +29 -29
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +29 -29
  143. package/lib/MultiColumn.d.ts +29 -29
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +29 -29
  147. package/lib/OrderedList.d.ts +29 -29
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-DtxJlApT.cjs → RichTextEditor-CSA367l8.cjs} +2 -2
  150. package/lib/{RichTextEditor-CtxIf8pq.js → RichTextEditor-CrDGx-K7.js} +4 -4
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +29 -29
  153. package/lib/SearchAndReplace.d.ts +29 -29
  154. package/lib/SearchAndReplace.js +2 -2
  155. package/lib/Selection.d.cts +29 -29
  156. package/lib/Selection.d.ts +29 -29
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +29 -29
  159. package/lib/SlashCommand.d.ts +29 -29
  160. package/lib/SlashCommand.js +2 -2
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +29 -29
  163. package/lib/Strike.d.ts +29 -29
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +29 -29
  167. package/lib/SubAndSuperScript.d.ts +29 -29
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +29 -29
  171. package/lib/Table.d.ts +29 -29
  172. package/lib/Table.js +531 -531
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +29 -29
  175. package/lib/TableOfContent.d.ts +29 -29
  176. package/lib/TableOfContent.js +2 -2
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +29 -29
  179. package/lib/TaskList.d.ts +29 -29
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +29 -29
  183. package/lib/TextAlign.d.ts +29 -29
  184. package/lib/TextAlign.js +1 -1
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +29 -29
  187. package/lib/TextBubble.d.ts +29 -29
  188. package/lib/TextBubble.js +2 -2
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +29 -29
  191. package/lib/TextDirection.d.ts +29 -29
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +29 -29
  195. package/lib/TextUnderline.d.ts +29 -29
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +29 -29
  198. package/lib/TrailingNode.d.ts +29 -29
  199. package/lib/{Twitter-DBA28WG3.cjs → Twitter-BRF2Ehp3.cjs} +1 -1
  200. package/lib/{Twitter-CJIud-WM.js → Twitter-D-kqw1ZB.js} +2 -2
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +29 -29
  203. package/lib/Twitter.d.ts +29 -29
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +29 -29
  207. package/lib/Video.d.ts +29 -29
  208. package/lib/Video.js +2 -2
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +29 -29
  211. package/lib/bubble-extra.d.ts +29 -29
  212. package/lib/bubble-extra.js +6 -6
  213. package/lib/{index-Tj3Ci7xM.js → index-CsK90iVd.js} +306 -128
  214. package/lib/index-D_A0TBRA.cjs +1 -0
  215. package/lib/index.cjs +1 -1
  216. package/lib/index.d.cts +29 -29
  217. package/lib/index.d.ts +29 -29
  218. package/lib/index.js +3 -3
  219. package/lib/locale-bundle.cjs +1 -1
  220. package/lib/locale-bundle.d.cts +208 -30
  221. package/lib/locale-bundle.d.ts +208 -30
  222. package/lib/locale-bundle.js +2 -1
  223. package/lib/{textarea-BhTw-eGz.js → textarea-06Uv95yx.js} +1 -1
  224. package/lib/{textarea-9iN67tad.cjs → textarea-QE8jlGEs.cjs} +1 -1
  225. package/package.json +1 -1
  226. package/lib/index-C19MB4Al.cjs +0 -1
package/lib/LineHeight.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { T as f, A as H, E as L } from "./index-DI9T3iLd.js";
2
- import { u as x, j as m, k as T } from "./index-Tj3Ci7xM.js";
2
+ import { u as x, k as g, m as T } from "./index-CsK90iVd.js";
3
3
  import { jsxs as b, jsx as h } from "react/jsx-runtime";
4
4
  import { useState as p, useMemo as _ } from "react";
5
- import { D, e as E, A as M, k as w, f as A, h as C } from "./RichTextEditor-CtxIf8pq.js";
5
+ import { D, e as E, A as M, k as w, f as A, h as C } from "./RichTextEditor-CrDGx-K7.js";
6
6
  function y(e) {
7
7
  return Number.parseFloat(e.replace("%", "")) / 100;
8
8
  }
@@ -63,7 +63,7 @@ function N(e, t) {
63
63
  const { selection: n, doc: s } = e;
64
64
  if (!n || !s || !(n instanceof f || n instanceof H))
65
65
  return e;
66
- const { from: o, to: c } = n, i = [], u = t && t !== m ? t : null;
66
+ const { from: o, to: c } = n, i = [], u = t && t !== g ? t : null;
67
67
  if (s.nodesBetween(o, c, (a, l) => {
68
68
  const r = a.type;
69
69
  return I.includes(r.name) ? ((a.attrs.lineHeight || null) !== u && i.push({
@@ -74,12 +74,12 @@ function N(e, t) {
74
74
  }), i.length === 0)
75
75
  return e;
76
76
  for (const a of i) {
77
- const { node: l, pos: r, nodeType: g } = a;
77
+ const { node: l, pos: r, nodeType: m } = a;
78
78
  let { attrs: d } = l;
79
79
  d = {
80
80
  ...d,
81
81
  lineHeight: u
82
- }, e = e.setNodeMarkup(r, g, d, l.marks);
82
+ }, e = e.setNodeMarkup(r, m, d, l.marks);
83
83
  }
84
84
  return e;
85
85
  }
@@ -98,7 +98,7 @@ const z = /* @__PURE__ */ L.create({
98
98
  ...(e = this.parent) == null ? void 0 : e.call(this),
99
99
  types: ["paragraph", "heading", "list_item", "todo_item"],
100
100
  lineHeights: T,
101
- defaultHeight: m,
101
+ defaultHeight: g,
102
102
  button({ editor: t, t: n }) {
103
103
  return {
104
104
  component: k,
package/lib/Link.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-DtxJlApT.cjs");exports.Link=e.Link;exports.default=e.Link;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./index-ByRfqzMr.cjs");const e=require("./RichTextEditor-CSA367l8.cjs");exports.Link=e.Link;exports.default=e.Link;
package/lib/Link.d.cts CHANGED
@@ -122,11 +122,8 @@ declare module '@tiptap/core' {
122
122
 
123
123
  declare module '@tiptap/core' {
124
124
  interface Commands<ReturnType> {
125
- emoji: {
126
- setEmoji: (emoji: {
127
- name: string;
128
- emoji: string;
129
- }) => ReturnType;
125
+ excalidraw: {
126
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
130
127
  };
131
128
  }
132
129
  }
@@ -134,8 +131,11 @@ declare module '@tiptap/core' {
134
131
 
135
132
  declare module '@tiptap/core' {
136
133
  interface Commands<ReturnType> {
137
- excalidraw: {
138
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
134
+ emoji: {
135
+ setEmoji: (emoji: {
136
+ name: string;
137
+ emoji: string;
138
+ }) => ReturnType;
139
139
  };
140
140
  }
141
141
  }
@@ -232,6 +232,15 @@ declare module '@tiptap/core' {
232
232
  }
233
233
 
234
234
 
235
+ declare module '@tiptap/core' {
236
+ interface Commands<ReturnType> {
237
+ katex: {
238
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
239
+ };
240
+ }
241
+ }
242
+
243
+
235
244
  declare module '@tiptap/core' {
236
245
  interface Commands<ReturnType> {
237
246
  indent: {
@@ -248,15 +257,6 @@ declare module '@tiptap/core' {
248
257
  }
249
258
 
250
259
 
251
- declare module '@tiptap/core' {
252
- interface Commands<ReturnType> {
253
- katex: {
254
- setKatex: (arg?: IKatexAttrs) => ReturnType;
255
- };
256
- }
257
- }
258
-
259
-
260
260
  declare module '@tiptap/core' {
261
261
  interface Commands<ReturnType> {
262
262
  lineHeight: {
@@ -318,15 +318,14 @@ declare module '@tiptap/core' {
318
318
 
319
319
  declare module '@tiptap/core' {
320
320
  interface Commands<ReturnType> {
321
- video: {
322
- /**
323
- * Add an video
324
- */
325
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
321
+ twitter: {
326
322
  /**
327
- * Update an video
323
+ * Insert a tweet
324
+ * @param options The tweet attributes
325
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
328
326
  */
329
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
327
+ setTweet: (options: SetTweetOptions) => ReturnType;
328
+ updateTweet: (options: SetTweetOptions) => ReturnType;
330
329
  };
331
330
  }
332
331
  }
@@ -334,14 +333,15 @@ declare module '@tiptap/core' {
334
333
 
335
334
  declare module '@tiptap/core' {
336
335
  interface Commands<ReturnType> {
337
- twitter: {
336
+ video: {
338
337
  /**
339
- * Insert a tweet
340
- * @param options The tweet attributes
341
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
338
+ * Add an video
342
339
  */
343
- setTweet: (options: SetTweetOptions) => ReturnType;
344
- updateTweet: (options: SetTweetOptions) => ReturnType;
340
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
341
+ /**
342
+ * Update an video
343
+ */
344
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
345
345
  };
346
346
  }
347
347
  }
package/lib/Link.d.ts CHANGED
@@ -122,11 +122,8 @@ declare module '@tiptap/core' {
122
122
 
123
123
  declare module '@tiptap/core' {
124
124
  interface Commands<ReturnType> {
125
- emoji: {
126
- setEmoji: (emoji: {
127
- name: string;
128
- emoji: string;
129
- }) => ReturnType;
125
+ excalidraw: {
126
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
130
127
  };
131
128
  }
132
129
  }
@@ -134,8 +131,11 @@ declare module '@tiptap/core' {
134
131
 
135
132
  declare module '@tiptap/core' {
136
133
  interface Commands<ReturnType> {
137
- excalidraw: {
138
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
134
+ emoji: {
135
+ setEmoji: (emoji: {
136
+ name: string;
137
+ emoji: string;
138
+ }) => ReturnType;
139
139
  };
140
140
  }
141
141
  }
@@ -232,6 +232,15 @@ declare module '@tiptap/core' {
232
232
  }
233
233
 
234
234
 
235
+ declare module '@tiptap/core' {
236
+ interface Commands<ReturnType> {
237
+ katex: {
238
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
239
+ };
240
+ }
241
+ }
242
+
243
+
235
244
  declare module '@tiptap/core' {
236
245
  interface Commands<ReturnType> {
237
246
  indent: {
@@ -248,15 +257,6 @@ declare module '@tiptap/core' {
248
257
  }
249
258
 
250
259
 
251
- declare module '@tiptap/core' {
252
- interface Commands<ReturnType> {
253
- katex: {
254
- setKatex: (arg?: IKatexAttrs) => ReturnType;
255
- };
256
- }
257
- }
258
-
259
-
260
260
  declare module '@tiptap/core' {
261
261
  interface Commands<ReturnType> {
262
262
  lineHeight: {
@@ -318,15 +318,14 @@ declare module '@tiptap/core' {
318
318
 
319
319
  declare module '@tiptap/core' {
320
320
  interface Commands<ReturnType> {
321
- video: {
322
- /**
323
- * Add an video
324
- */
325
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
321
+ twitter: {
326
322
  /**
327
- * Update an video
323
+ * Insert a tweet
324
+ * @param options The tweet attributes
325
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
328
326
  */
329
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
327
+ setTweet: (options: SetTweetOptions) => ReturnType;
328
+ updateTweet: (options: SetTweetOptions) => ReturnType;
330
329
  };
331
330
  }
332
331
  }
@@ -334,14 +333,15 @@ declare module '@tiptap/core' {
334
333
 
335
334
  declare module '@tiptap/core' {
336
335
  interface Commands<ReturnType> {
337
- twitter: {
336
+ video: {
338
337
  /**
339
- * Insert a tweet
340
- * @param options The tweet attributes
341
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
338
+ * Add an video
342
339
  */
343
- setTweet: (options: SetTweetOptions) => ReturnType;
344
- updateTweet: (options: SetTweetOptions) => ReturnType;
340
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
341
+ /**
342
+ * Update an video
343
+ */
344
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
345
345
  };
346
346
  }
347
347
  }
package/lib/Link.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./index-DI9T3iLd.js";
2
- import { ae as r, ae as t } from "./RichTextEditor-CtxIf8pq.js";
2
+ import { ae as r, ae as t } from "./RichTextEditor-CrDGx-K7.js";
3
3
  export {
4
4
  r as Link,
5
5
  t as default
@@ -46,11 +46,8 @@ declare module '@tiptap/core' {
46
46
 
47
47
  declare module '@tiptap/core' {
48
48
  interface Commands<ReturnType> {
49
- emoji: {
50
- setEmoji: (emoji: {
51
- name: string;
52
- emoji: string;
53
- }) => ReturnType;
49
+ excalidraw: {
50
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
54
51
  };
55
52
  }
56
53
  }
@@ -58,8 +55,11 @@ declare module '@tiptap/core' {
58
55
 
59
56
  declare module '@tiptap/core' {
60
57
  interface Commands<ReturnType> {
61
- excalidraw: {
62
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
58
+ emoji: {
59
+ setEmoji: (emoji: {
60
+ name: string;
61
+ emoji: string;
62
+ }) => ReturnType;
63
63
  };
64
64
  }
65
65
  }
@@ -156,6 +156,15 @@ declare module '@tiptap/core' {
156
156
  }
157
157
 
158
158
 
159
+ declare module '@tiptap/core' {
160
+ interface Commands<ReturnType> {
161
+ katex: {
162
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
163
+ };
164
+ }
165
+ }
166
+
167
+
159
168
  declare module '@tiptap/core' {
160
169
  interface Commands<ReturnType> {
161
170
  indent: {
@@ -172,15 +181,6 @@ declare module '@tiptap/core' {
172
181
  }
173
182
 
174
183
 
175
- declare module '@tiptap/core' {
176
- interface Commands<ReturnType> {
177
- katex: {
178
- setKatex: (arg?: IKatexAttrs) => ReturnType;
179
- };
180
- }
181
- }
182
-
183
-
184
184
  declare module '@tiptap/core' {
185
185
  interface Commands<ReturnType> {
186
186
  lineHeight: {
@@ -242,15 +242,14 @@ declare module '@tiptap/core' {
242
242
 
243
243
  declare module '@tiptap/core' {
244
244
  interface Commands<ReturnType> {
245
- video: {
246
- /**
247
- * Add an video
248
- */
249
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
245
+ twitter: {
250
246
  /**
251
- * Update an video
247
+ * Insert a tweet
248
+ * @param options The tweet attributes
249
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
252
250
  */
253
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
251
+ setTweet: (options: SetTweetOptions) => ReturnType;
252
+ updateTweet: (options: SetTweetOptions) => ReturnType;
254
253
  };
255
254
  }
256
255
  }
@@ -258,14 +257,15 @@ declare module '@tiptap/core' {
258
257
 
259
258
  declare module '@tiptap/core' {
260
259
  interface Commands<ReturnType> {
261
- twitter: {
260
+ video: {
262
261
  /**
263
- * Insert a tweet
264
- * @param options The tweet attributes
265
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
262
+ * Add an video
266
263
  */
267
- setTweet: (options: SetTweetOptions) => ReturnType;
268
- updateTweet: (options: SetTweetOptions) => ReturnType;
264
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
265
+ /**
266
+ * Update an video
267
+ */
268
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
269
269
  };
270
270
  }
271
271
  }
package/lib/ListItem.d.ts CHANGED
@@ -46,11 +46,8 @@ declare module '@tiptap/core' {
46
46
 
47
47
  declare module '@tiptap/core' {
48
48
  interface Commands<ReturnType> {
49
- emoji: {
50
- setEmoji: (emoji: {
51
- name: string;
52
- emoji: string;
53
- }) => ReturnType;
49
+ excalidraw: {
50
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
54
51
  };
55
52
  }
56
53
  }
@@ -58,8 +55,11 @@ declare module '@tiptap/core' {
58
55
 
59
56
  declare module '@tiptap/core' {
60
57
  interface Commands<ReturnType> {
61
- excalidraw: {
62
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
58
+ emoji: {
59
+ setEmoji: (emoji: {
60
+ name: string;
61
+ emoji: string;
62
+ }) => ReturnType;
63
63
  };
64
64
  }
65
65
  }
@@ -156,6 +156,15 @@ declare module '@tiptap/core' {
156
156
  }
157
157
 
158
158
 
159
+ declare module '@tiptap/core' {
160
+ interface Commands<ReturnType> {
161
+ katex: {
162
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
163
+ };
164
+ }
165
+ }
166
+
167
+
159
168
  declare module '@tiptap/core' {
160
169
  interface Commands<ReturnType> {
161
170
  indent: {
@@ -172,15 +181,6 @@ declare module '@tiptap/core' {
172
181
  }
173
182
 
174
183
 
175
- declare module '@tiptap/core' {
176
- interface Commands<ReturnType> {
177
- katex: {
178
- setKatex: (arg?: IKatexAttrs) => ReturnType;
179
- };
180
- }
181
- }
182
-
183
-
184
184
  declare module '@tiptap/core' {
185
185
  interface Commands<ReturnType> {
186
186
  lineHeight: {
@@ -242,15 +242,14 @@ declare module '@tiptap/core' {
242
242
 
243
243
  declare module '@tiptap/core' {
244
244
  interface Commands<ReturnType> {
245
- video: {
246
- /**
247
- * Add an video
248
- */
249
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
245
+ twitter: {
250
246
  /**
251
- * Update an video
247
+ * Insert a tweet
248
+ * @param options The tweet attributes
249
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
252
250
  */
253
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
251
+ setTweet: (options: SetTweetOptions) => ReturnType;
252
+ updateTweet: (options: SetTweetOptions) => ReturnType;
254
253
  };
255
254
  }
256
255
  }
@@ -258,14 +257,15 @@ declare module '@tiptap/core' {
258
257
 
259
258
  declare module '@tiptap/core' {
260
259
  interface Commands<ReturnType> {
261
- twitter: {
260
+ video: {
262
261
  /**
263
- * Insert a tweet
264
- * @param options The tweet attributes
265
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
262
+ * Add an video
266
263
  */
267
- setTweet: (options: SetTweetOptions) => ReturnType;
268
- updateTweet: (options: SetTweetOptions) => ReturnType;
264
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
265
+ /**
266
+ * Update an video
267
+ */
268
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
269
269
  };
270
270
  }
271
271
  }
package/lib/Mention.d.cts CHANGED
@@ -49,11 +49,8 @@ declare module '@tiptap/core' {
49
49
 
50
50
  declare module '@tiptap/core' {
51
51
  interface Commands<ReturnType> {
52
- emoji: {
53
- setEmoji: (emoji: {
54
- name: string;
55
- emoji: string;
56
- }) => ReturnType;
52
+ excalidraw: {
53
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
57
54
  };
58
55
  }
59
56
  }
@@ -61,8 +58,11 @@ declare module '@tiptap/core' {
61
58
 
62
59
  declare module '@tiptap/core' {
63
60
  interface Commands<ReturnType> {
64
- excalidraw: {
65
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
61
+ emoji: {
62
+ setEmoji: (emoji: {
63
+ name: string;
64
+ emoji: string;
65
+ }) => ReturnType;
66
66
  };
67
67
  }
68
68
  }
@@ -159,6 +159,15 @@ declare module '@tiptap/core' {
159
159
  }
160
160
 
161
161
 
162
+ declare module '@tiptap/core' {
163
+ interface Commands<ReturnType> {
164
+ katex: {
165
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
166
+ };
167
+ }
168
+ }
169
+
170
+
162
171
  declare module '@tiptap/core' {
163
172
  interface Commands<ReturnType> {
164
173
  indent: {
@@ -175,15 +184,6 @@ declare module '@tiptap/core' {
175
184
  }
176
185
 
177
186
 
178
- declare module '@tiptap/core' {
179
- interface Commands<ReturnType> {
180
- katex: {
181
- setKatex: (arg?: IKatexAttrs) => ReturnType;
182
- };
183
- }
184
- }
185
-
186
-
187
187
  declare module '@tiptap/core' {
188
188
  interface Commands<ReturnType> {
189
189
  lineHeight: {
@@ -245,15 +245,14 @@ declare module '@tiptap/core' {
245
245
 
246
246
  declare module '@tiptap/core' {
247
247
  interface Commands<ReturnType> {
248
- video: {
249
- /**
250
- * Add an video
251
- */
252
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
248
+ twitter: {
253
249
  /**
254
- * Update an video
250
+ * Insert a tweet
251
+ * @param options The tweet attributes
252
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
255
253
  */
256
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
254
+ setTweet: (options: SetTweetOptions) => ReturnType;
255
+ updateTweet: (options: SetTweetOptions) => ReturnType;
257
256
  };
258
257
  }
259
258
  }
@@ -261,14 +260,15 @@ declare module '@tiptap/core' {
261
260
 
262
261
  declare module '@tiptap/core' {
263
262
  interface Commands<ReturnType> {
264
- twitter: {
263
+ video: {
265
264
  /**
266
- * Insert a tweet
267
- * @param options The tweet attributes
268
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
265
+ * Add an video
269
266
  */
270
- setTweet: (options: SetTweetOptions) => ReturnType;
271
- updateTweet: (options: SetTweetOptions) => ReturnType;
267
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
268
+ /**
269
+ * Update an video
270
+ */
271
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
272
272
  };
273
273
  }
274
274
  }
package/lib/Mention.d.ts CHANGED
@@ -49,11 +49,8 @@ declare module '@tiptap/core' {
49
49
 
50
50
  declare module '@tiptap/core' {
51
51
  interface Commands<ReturnType> {
52
- emoji: {
53
- setEmoji: (emoji: {
54
- name: string;
55
- emoji: string;
56
- }) => ReturnType;
52
+ excalidraw: {
53
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
57
54
  };
58
55
  }
59
56
  }
@@ -61,8 +58,11 @@ declare module '@tiptap/core' {
61
58
 
62
59
  declare module '@tiptap/core' {
63
60
  interface Commands<ReturnType> {
64
- excalidraw: {
65
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
61
+ emoji: {
62
+ setEmoji: (emoji: {
63
+ name: string;
64
+ emoji: string;
65
+ }) => ReturnType;
66
66
  };
67
67
  }
68
68
  }
@@ -159,6 +159,15 @@ declare module '@tiptap/core' {
159
159
  }
160
160
 
161
161
 
162
+ declare module '@tiptap/core' {
163
+ interface Commands<ReturnType> {
164
+ katex: {
165
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
166
+ };
167
+ }
168
+ }
169
+
170
+
162
171
  declare module '@tiptap/core' {
163
172
  interface Commands<ReturnType> {
164
173
  indent: {
@@ -175,15 +184,6 @@ declare module '@tiptap/core' {
175
184
  }
176
185
 
177
186
 
178
- declare module '@tiptap/core' {
179
- interface Commands<ReturnType> {
180
- katex: {
181
- setKatex: (arg?: IKatexAttrs) => ReturnType;
182
- };
183
- }
184
- }
185
-
186
-
187
187
  declare module '@tiptap/core' {
188
188
  interface Commands<ReturnType> {
189
189
  lineHeight: {
@@ -245,15 +245,14 @@ declare module '@tiptap/core' {
245
245
 
246
246
  declare module '@tiptap/core' {
247
247
  interface Commands<ReturnType> {
248
- video: {
249
- /**
250
- * Add an video
251
- */
252
- setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
248
+ twitter: {
253
249
  /**
254
- * Update an video
250
+ * Insert a tweet
251
+ * @param options The tweet attributes
252
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
255
253
  */
256
- updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
254
+ setTweet: (options: SetTweetOptions) => ReturnType;
255
+ updateTweet: (options: SetTweetOptions) => ReturnType;
257
256
  };
258
257
  }
259
258
  }
@@ -261,14 +260,15 @@ declare module '@tiptap/core' {
261
260
 
262
261
  declare module '@tiptap/core' {
263
262
  interface Commands<ReturnType> {
264
- twitter: {
263
+ video: {
265
264
  /**
266
- * Insert a tweet
267
- * @param options The tweet attributes
268
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
265
+ * Add an video
269
266
  */
270
- setTweet: (options: SetTweetOptions) => ReturnType;
271
- updateTweet: (options: SetTweetOptions) => ReturnType;
267
+ setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
268
+ /**
269
+ * Update an video
270
+ */
271
+ updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
272
272
  };
273
273
  }
274
274
  }