reactjs-tiptap-editor 0.3.28 → 0.3.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/lib/{ActionMenuButton-C20molC9.cjs → ActionMenuButton-5Y8QcYxD.cjs} +1 -1
  2. package/lib/{ActionMenuButton-D0hFczCn.js → ActionMenuButton-Cs9DM_16.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +28 -28
  5. package/lib/Attachment.d.ts +28 -28
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +28 -28
  9. package/lib/Blockquote.d.ts +28 -28
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +28 -28
  13. package/lib/Bold.d.ts +28 -28
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +28 -28
  17. package/lib/BulletList.d.ts +28 -28
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +28 -28
  21. package/lib/Clear.d.ts +28 -28
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +28 -28
  25. package/lib/Code.d.ts +28 -28
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +28 -28
  29. package/lib/CodeBlock.d.ts +28 -28
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +28 -28
  33. package/lib/CodeView.d.ts +28 -28
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +28 -28
  37. package/lib/Color.d.ts +28 -28
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +28 -28
  40. package/lib/Document.d.ts +28 -28
  41. package/lib/{Drawer-B96jQIQU.js → Drawer-BCmNLh31.js} +1 -1
  42. package/lib/{Drawer-0kBt3GVL.cjs → Drawer-DCAp7eZF.cjs} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +28 -28
  45. package/lib/Drawer.d.ts +28 -28
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +28 -28
  49. package/lib/Emoji.d.ts +28 -28
  50. package/lib/Emoji.js +1 -1
  51. package/lib/{Excalidraw-HK9kjpX5.cjs → Excalidraw-BI50RQL-.cjs} +1 -1
  52. package/lib/{Excalidraw-z3VZyGJ4.js → Excalidraw-CYPcjYZB.js} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +28 -28
  55. package/lib/Excalidraw.d.ts +28 -28
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +28 -28
  59. package/lib/ExportPdf.d.ts +28 -28
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +28 -28
  63. package/lib/ExportWord.d.ts +28 -28
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +28 -28
  67. package/lib/FontFamily.d.ts +28 -28
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +28 -28
  71. package/lib/FontSize.d.ts +28 -28
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +28 -28
  75. package/lib/FormatPainter.d.ts +28 -28
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +28 -28
  79. package/lib/Heading.d.ts +28 -28
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +28 -28
  83. package/lib/Highlight.d.ts +28 -28
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +28 -28
  87. package/lib/History.d.ts +28 -28
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +28 -28
  91. package/lib/HorizontalRule.d.ts +28 -28
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +28 -28
  95. package/lib/Iframe.d.ts +28 -28
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +28 -28
  99. package/lib/Image.d.ts +28 -28
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +31 -30
  103. package/lib/ImageGif.d.ts +31 -30
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +28 -28
  107. package/lib/ImportWord.d.ts +28 -28
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +28 -28
  111. package/lib/Indent.d.ts +28 -28
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +28 -28
  115. package/lib/Italic.d.ts +28 -28
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +28 -28
  119. package/lib/Katex.d.ts +28 -28
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +28 -28
  123. package/lib/LineHeight.d.ts +28 -28
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +28 -28
  127. package/lib/Link.d.ts +28 -28
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +28 -28
  130. package/lib/ListItem.d.ts +28 -28
  131. package/lib/Mention.d.cts +28 -28
  132. package/lib/Mention.d.ts +28 -28
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +28 -28
  135. package/lib/Mermaid.d.ts +28 -28
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +28 -28
  139. package/lib/MoreMark.d.ts +28 -28
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +28 -28
  143. package/lib/MultiColumn.d.ts +28 -28
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +28 -28
  147. package/lib/OrderedList.d.ts +28 -28
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-BKywwUM4.cjs → RichTextEditor-DsUcQSbm.cjs} +5 -5
  150. package/lib/{RichTextEditor-CnWZ69eX.js → RichTextEditor-e6q30rbV.js} +998 -942
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +28 -28
  153. package/lib/SearchAndReplace.d.ts +28 -28
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +28 -28
  156. package/lib/Selection.d.ts +28 -28
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +28 -28
  159. package/lib/SlashCommand.d.ts +28 -28
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +28 -28
  163. package/lib/Strike.d.ts +28 -28
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +28 -28
  167. package/lib/SubAndSuperScript.d.ts +28 -28
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +28 -28
  171. package/lib/Table.d.ts +28 -28
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +28 -28
  175. package/lib/TableOfContent.d.ts +28 -28
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +28 -28
  179. package/lib/TaskList.d.ts +28 -28
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +28 -28
  183. package/lib/TextAlign.d.ts +28 -28
  184. package/lib/TextAlign.js +1 -1
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +28 -28
  187. package/lib/TextBubble.d.ts +28 -28
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +28 -28
  191. package/lib/TextDirection.d.ts +28 -28
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +28 -28
  195. package/lib/TextUnderline.d.ts +28 -28
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +28 -28
  198. package/lib/TrailingNode.d.ts +28 -28
  199. package/lib/{Twitter-Dj49i3B9.cjs → Twitter-D2Osj8qP.cjs} +1 -1
  200. package/lib/{Twitter-CCf1aM0f.js → Twitter-Wb7cD3M-.js} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +28 -28
  203. package/lib/Twitter.d.ts +28 -28
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +28 -28
  207. package/lib/Video.d.ts +28 -28
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +28 -28
  211. package/lib/bubble-extra.d.ts +28 -28
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +28 -28
  215. package/lib/index.d.ts +28 -28
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +28 -28
  218. package/lib/locale-bundle.d.ts +28 -28
  219. package/lib/{textarea-DhlS0JCr.cjs → textarea-BVbzd9-k.cjs} +1 -1
  220. package/lib/{textarea-nr3UZ7Wg.js → textarea-Csmx5x-_.js} +1 -1
  221. package/package.json +1 -1
@@ -6,10 +6,11 @@ export { ImageGif }
6
6
  export default ImageGif;
7
7
 
8
8
  declare interface ImageGifOptions extends ImageOptions {
9
+ provider: 'giphy' | 'tenor';
9
10
  /**
10
- * The key for the gif https://giphy.com/
11
+ * The key for the gif https://giphy.com/ or https://tenor.com/
11
12
  */
12
- GIPHY_API_KEY: string;
13
+ API_KEY: string;
13
14
  }
14
15
 
15
16
  export declare interface SetImageAttrsOptions {
@@ -67,15 +68,6 @@ declare module '@tiptap/core' {
67
68
  }
68
69
 
69
70
 
70
- declare module '@tiptap/core' {
71
- interface Commands<ReturnType> {
72
- excalidraw: {
73
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
74
- };
75
- }
76
- }
77
-
78
-
79
71
  declare module '@tiptap/core' {
80
72
  interface Commands<ReturnType> {
81
73
  emoji: {
@@ -97,6 +89,15 @@ declare module '@tiptap/core' {
97
89
  }
98
90
 
99
91
 
92
+ declare module '@tiptap/core' {
93
+ interface Commands<ReturnType> {
94
+ excalidraw: {
95
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
96
+ };
97
+ }
98
+ }
99
+
100
+
100
101
  declare module '@tiptap/core' {
101
102
  interface Commands<ReturnType> {
102
103
  exportWord: {
@@ -206,9 +207,8 @@ declare module '@tiptap/core' {
206
207
 
207
208
  declare module '@tiptap/core' {
208
209
  interface Commands<ReturnType> {
209
- lineHeight: {
210
- setLineHeight: (lineHeight: string) => ReturnType;
211
- unsetLineHeight: () => ReturnType;
210
+ katex: {
211
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
212
212
  };
213
213
  }
214
214
  }
@@ -216,8 +216,9 @@ declare module '@tiptap/core' {
216
216
 
217
217
  declare module '@tiptap/core' {
218
218
  interface Commands<ReturnType> {
219
- katex: {
220
- setKatex: (arg?: IKatexAttrs) => ReturnType;
219
+ lineHeight: {
220
+ setLineHeight: (lineHeight: string) => ReturnType;
221
+ unsetLineHeight: () => ReturnType;
221
222
  };
222
223
  }
223
224
  }
@@ -233,6 +234,20 @@ declare module '@tiptap/core' {
233
234
  }
234
235
 
235
236
 
237
+ declare module '@tiptap/core' {
238
+ interface Commands<ReturnType> {
239
+ columns: {
240
+ insertColumns: (attrs?: {
241
+ cols: number;
242
+ }) => ReturnType;
243
+ addColBefore: () => ReturnType;
244
+ addColAfter: () => ReturnType;
245
+ deleteCol: () => ReturnType;
246
+ };
247
+ }
248
+ }
249
+
250
+
236
251
  declare module '@tiptap/core' {
237
252
  interface Commands<ReturnType> {
238
253
  search: {
@@ -248,20 +263,6 @@ declare module '@tiptap/core' {
248
263
  }
249
264
 
250
265
 
251
- declare module '@tiptap/core' {
252
- interface Commands<ReturnType> {
253
- columns: {
254
- insertColumns: (attrs?: {
255
- cols: number;
256
- }) => ReturnType;
257
- addColBefore: () => ReturnType;
258
- addColAfter: () => ReturnType;
259
- deleteCol: () => ReturnType;
260
- };
261
- }
262
- }
263
-
264
-
265
266
  declare module '@tiptap/core' {
266
267
  interface Commands<ReturnType> {
267
268
  tableOfContents: {
package/lib/ImageGif.d.ts CHANGED
@@ -6,10 +6,11 @@ export { ImageGif }
6
6
  export default ImageGif;
7
7
 
8
8
  declare interface ImageGifOptions extends ImageOptions {
9
+ provider: 'giphy' | 'tenor';
9
10
  /**
10
- * The key for the gif https://giphy.com/
11
+ * The key for the gif https://giphy.com/ or https://tenor.com/
11
12
  */
12
- GIPHY_API_KEY: string;
13
+ API_KEY: string;
13
14
  }
14
15
 
15
16
  export declare interface SetImageAttrsOptions {
@@ -67,15 +68,6 @@ declare module '@tiptap/core' {
67
68
  }
68
69
 
69
70
 
70
- declare module '@tiptap/core' {
71
- interface Commands<ReturnType> {
72
- excalidraw: {
73
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
74
- };
75
- }
76
- }
77
-
78
-
79
71
  declare module '@tiptap/core' {
80
72
  interface Commands<ReturnType> {
81
73
  emoji: {
@@ -97,6 +89,15 @@ declare module '@tiptap/core' {
97
89
  }
98
90
 
99
91
 
92
+ declare module '@tiptap/core' {
93
+ interface Commands<ReturnType> {
94
+ excalidraw: {
95
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
96
+ };
97
+ }
98
+ }
99
+
100
+
100
101
  declare module '@tiptap/core' {
101
102
  interface Commands<ReturnType> {
102
103
  exportWord: {
@@ -206,9 +207,8 @@ declare module '@tiptap/core' {
206
207
 
207
208
  declare module '@tiptap/core' {
208
209
  interface Commands<ReturnType> {
209
- lineHeight: {
210
- setLineHeight: (lineHeight: string) => ReturnType;
211
- unsetLineHeight: () => ReturnType;
210
+ katex: {
211
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
212
212
  };
213
213
  }
214
214
  }
@@ -216,8 +216,9 @@ declare module '@tiptap/core' {
216
216
 
217
217
  declare module '@tiptap/core' {
218
218
  interface Commands<ReturnType> {
219
- katex: {
220
- setKatex: (arg?: IKatexAttrs) => ReturnType;
219
+ lineHeight: {
220
+ setLineHeight: (lineHeight: string) => ReturnType;
221
+ unsetLineHeight: () => ReturnType;
221
222
  };
222
223
  }
223
224
  }
@@ -233,6 +234,20 @@ declare module '@tiptap/core' {
233
234
  }
234
235
 
235
236
 
237
+ declare module '@tiptap/core' {
238
+ interface Commands<ReturnType> {
239
+ columns: {
240
+ insertColumns: (attrs?: {
241
+ cols: number;
242
+ }) => ReturnType;
243
+ addColBefore: () => ReturnType;
244
+ addColAfter: () => ReturnType;
245
+ deleteCol: () => ReturnType;
246
+ };
247
+ }
248
+ }
249
+
250
+
236
251
  declare module '@tiptap/core' {
237
252
  interface Commands<ReturnType> {
238
253
  search: {
@@ -248,20 +263,6 @@ declare module '@tiptap/core' {
248
263
  }
249
264
 
250
265
 
251
- declare module '@tiptap/core' {
252
- interface Commands<ReturnType> {
253
- columns: {
254
- insertColumns: (attrs?: {
255
- cols: number;
256
- }) => ReturnType;
257
- addColBefore: () => ReturnType;
258
- addColAfter: () => ReturnType;
259
- deleteCol: () => ReturnType;
260
- };
261
- }
262
- }
263
-
264
-
265
266
  declare module '@tiptap/core' {
266
267
  interface Commands<ReturnType> {
267
268
  tableOfContents: {
package/lib/ImageGif.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./index-DI9T3iLd.js";
2
- import { af as r, af as t } from "./RichTextEditor-CnWZ69eX.js";
2
+ import { af as r, af as t } from "./RichTextEditor-e6q30rbV.js";
3
3
  import "./dom-dataset-Di3tIRrR.js";
4
4
  export {
5
5
  r as ImageGif,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Es=require("./index-ByRfqzMr.cjs"),br=require("react/jsx-runtime"),ya=require("react"),je=require("./RichTextEditor-BKywwUM4.cjs"),As=require("./index-D_A0TBRA.cjs");var Ve={},Ai="1.13.7",Da=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Ht=Array.prototype,Fi=Object.prototype,va=typeof Symbol<"u"?Symbol.prototype:null,Fs=Ht.push,it=Ht.slice,Qn=Fi.toString,Cs=Fi.hasOwnProperty,qc=typeof ArrayBuffer<"u",Ss=typeof DataView<"u",Bs=Array.isArray,xa=Object.keys,_a=Object.create,Ua=qc&&ArrayBuffer.isView,ks=isNaN,Ws=isFinite,Pc=!{toString:null}.propertyIsEnumerable("toString"),Ta=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Rs=Math.pow(2,53)-1;function Le(e,n){return n=n==null?e.length-1:+n,function(){for(var t=Math.max(arguments.length-n,0),r=Array(t),c=0;c<t;c++)r[c]=arguments[c+n];switch(n){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(n+1);for(c=0;c<n;c++)i[c]=arguments[c];return i[n]=r,e.apply(this,i)}}function hn(e){var n=typeof e;return n==="function"||n==="object"&&!!e}function zc(e){return e===null}function Ci(e){return e===void 0}function Si(e){return e===!0||e===!1||Qn.call(e)==="[object Boolean]"}function jc(e){return!!(e&&e.nodeType===1)}function Ie(e){var n="[object "+e+"]";return function(t){return Qn.call(t)===n}}const Gt=Ie("String"),Bi=Ie("Number"),Xc=Ie("Date"),Vc=Ie("RegExp"),Hc=Ie("Error"),ki=Ie("Symbol"),Wi=Ie("ArrayBuffer");var Gc=Ie("Function"),Ns=Da.document&&Da.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Ns!="function"&&(Gc=function(e){return typeof e=="function"||!1});const Oe=Gc,Zc=Ie("Object");var $c=Ss&&(!/\[native code\]/.test(String(DataView))||Zc(new DataView(new ArrayBuffer(8)))),Ri=typeof Map<"u"&&Zc(new Map),Os=Ie("DataView");function Is(e){return e!=null&&Oe(e.getInt8)&&Wi(e.buffer)}const Jn=$c?Is:Os,pn=Bs||Ie("Array");function gn(e,n){return e!=null&&Cs.call(e,n)}var Ti=Ie("Arguments");(function(){Ti(arguments)||(Ti=function(e){return gn(e,"callee")})})();const Zt=Ti;function Yc(e){return!ki(e)&&Ws(e)&&!isNaN(parseFloat(e))}function Ni(e){return Bi(e)&&ks(e)}function Oi(e){return function(){return e}}function Kc(e){return function(n){var t=e(n);return typeof t=="number"&&t>=0&&t<=Rs}}function Qc(e){return function(n){return n==null?void 0:n[e]}}const Pt=Qc("byteLength"),Ls=Kc(Pt);var Ms=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function qs(e){return Ua?Ua(e)&&!Jn(e):Ls(e)&&Ms.test(Qn.call(e))}const Ii=qc?qs:Oi(!1),qe=Qc("length");function Ps(e){for(var n={},t=e.length,r=0;r<t;++r)n[e[r]]=!0;return{contains:function(c){return n[c]===!0},push:function(c){return n[c]=!0,e.push(c)}}}function Jc(e,n){n=Ps(n);var t=Ta.length,r=e.constructor,c=Oe(r)&&r.prototype||Fi,i="constructor";for(gn(e,i)&&!n.contains(i)&&n.push(i);t--;)i=Ta[t],i in e&&e[i]!==c[i]&&!n.contains(i)&&n.push(i)}function ke(e){if(!hn(e))return[];if(xa)return xa(e);var n=[];for(var t in e)gn(e,t)&&n.push(t);return Pc&&Jc(e,n),n}function eu(e){if(e==null)return!0;var n=qe(e);return typeof n=="number"&&(pn(e)||Gt(e)||Zt(e))?n===0:qe(ke(e))===0}function Li(e,n){var t=ke(n),r=t.length;if(e==null)return!r;for(var c=Object(e),i=0;i<r;i++){var a=t[i];if(n[a]!==c[a]||!(a in c))return!1}return!0}function Ee(e){if(e instanceof Ee)return e;if(!(this instanceof Ee))return new Ee(e);this._wrapped=e}Ee.VERSION=Ai;Ee.prototype.value=function(){return this._wrapped};Ee.prototype.valueOf=Ee.prototype.toJSON=Ee.prototype.value;Ee.prototype.toString=function(){return String(this._wrapped)};function wa(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Pt(e))}var Ea="[object DataView]";function wi(e,n,t,r){if(e===n)return e!==0||1/e===1/n;if(e==null||n==null)return!1;if(e!==e)return n!==n;var c=typeof e;return c!=="function"&&c!=="object"&&typeof n!="object"?!1:nu(e,n,t,r)}function nu(e,n,t,r){e instanceof Ee&&(e=e._wrapped),n instanceof Ee&&(n=n._wrapped);var c=Qn.call(e);if(c!==Qn.call(n))return!1;if($c&&c=="[object Object]"&&Jn(e)){if(!Jn(n))return!1;c=Ea}switch(c){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:+e==0?1/+e===1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n;case"[object Symbol]":return va.valueOf.call(e)===va.valueOf.call(n);case"[object ArrayBuffer]":case Ea:return nu(wa(e),wa(n),t,r)}var i=c==="[object Array]";if(!i&&Ii(e)){var a=Pt(e);if(a!==Pt(n))return!1;if(e.buffer===n.buffer&&e.byteOffset===n.byteOffset)return!0;i=!0}if(!i){if(typeof e!="object"||typeof n!="object")return!1;var o=e.constructor,u=n.constructor;if(o!==u&&!(Oe(o)&&o instanceof o&&Oe(u)&&u instanceof u)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],r=r||[];for(var l=t.length;l--;)if(t[l]===e)return r[l]===n;if(t.push(e),r.push(n),i){if(l=e.length,l!==n.length)return!1;for(;l--;)if(!wi(e[l],n[l],t,r))return!1}else{var b=ke(e),m;if(l=b.length,ke(n).length!==l)return!1;for(;l--;)if(m=b[l],!(gn(n,m)&&wi(e[m],n[m],t,r)))return!1}return t.pop(),r.pop(),!0}function tu(e,n){return wi(e,n)}function Mn(e){if(!hn(e))return[];var n=[];for(var t in e)n.push(t);return Pc&&Jc(e,n),n}function Mi(e){var n=qe(e);return function(t){if(t==null)return!1;var r=Mn(t);if(qe(r))return!1;for(var c=0;c<n;c++)if(!Oe(t[e[c]]))return!1;return e!==au||!Oe(t[qi])}}var qi="forEach",ru="has",Pi=["clear","delete"],iu=["get",ru,"set"],zs=Pi.concat(qi,iu),au=Pi.concat(iu),js=["add"].concat(Pi,qi,ru);const ou=Ri?Mi(zs):Ie("Map"),cu=Ri?Mi(au):Ie("WeakMap"),uu=Ri?Mi(js):Ie("Set"),su=Ie("WeakSet");function An(e){for(var n=ke(e),t=n.length,r=Array(t),c=0;c<t;c++)r[c]=e[n[c]];return r}function du(e){for(var n=ke(e),t=n.length,r=Array(t),c=0;c<t;c++)r[c]=[n[c],e[n[c]]];return r}function zi(e){for(var n={},t=ke(e),r=0,c=t.length;r<c;r++)n[e[t[r]]]=t[r];return n}function et(e){var n=[];for(var t in e)Oe(e[t])&&n.push(t);return n.sort()}function ji(e,n){return function(t){var r=arguments.length;if(n&&(t=Object(t)),r<2||t==null)return t;for(var c=1;c<r;c++)for(var i=arguments[c],a=e(i),o=a.length,u=0;u<o;u++){var l=a[u];(!n||t[l]===void 0)&&(t[l]=i[l])}return t}}const Xi=ji(Mn),In=ji(ke),Vi=ji(Mn,!0);function Xs(){return function(){}}function lu(e){if(!hn(e))return{};if(_a)return _a(e);var n=Xs();n.prototype=e;var t=new n;return n.prototype=null,t}function fu(e,n){var t=lu(e);return n&&In(t,n),t}function hu(e){return hn(e)?pn(e)?e.slice():Xi({},e):e}function pu(e,n){return n(e),e}function Hi(e){return pn(e)?e:[e]}Ee.toPath=Hi;function at(e){return Ee.toPath(e)}function Gi(e,n){for(var t=n.length,r=0;r<t;r++){if(e==null)return;e=e[n[r]]}return t?e:void 0}function Zi(e,n,t){var r=Gi(e,at(n));return Ci(r)?t:r}function gu(e,n){n=at(n);for(var t=n.length,r=0;r<t;r++){var c=n[r];if(!gn(e,c))return!1;e=e[c]}return!!t}function $t(e){return e}function En(e){return e=In({},e),function(n){return Li(n,e)}}function Yt(e){return e=at(e),function(n){return Gi(n,e)}}function ot(e,n,t){if(n===void 0)return e;switch(t??3){case 1:return function(r){return e.call(n,r)};case 3:return function(r,c,i){return e.call(n,r,c,i)};case 4:return function(r,c,i,a){return e.call(n,r,c,i,a)}}return function(){return e.apply(n,arguments)}}function mu(e,n,t){return e==null?$t:Oe(e)?ot(e,n,t):hn(e)&&!pn(e)?En(e):Yt(e)}function Kt(e,n){return mu(e,n,1/0)}Ee.iteratee=Kt;function Pe(e,n,t){return Ee.iteratee!==Kt?Ee.iteratee(e,n):mu(e,n,t)}function bu(e,n,t){n=Pe(n,t);for(var r=ke(e),c=r.length,i={},a=0;a<c;a++){var o=r[a];i[o]=n(e[o],o,e)}return i}function $i(){}function yu(e){return e==null?$i:function(n){return Zi(e,n)}}function Du(e,n,t){var r=Array(Math.max(0,e));n=ot(n,t,1);for(var c=0;c<e;c++)r[c]=n(c);return r}function zt(e,n){return n==null&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))}const Ln=Date.now||function(){return new Date().getTime()};function vu(e){var n=function(i){return e[i]},t="(?:"+ke(e).join("|")+")",r=RegExp(t),c=RegExp(t,"g");return function(i){return i=i==null?"":""+i,r.test(i)?i.replace(c,n):i}}const xu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},_u=vu(xu),Vs=zi(xu),Uu=vu(Vs),Tu=Ee.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var yr=/(.)^/,Hs={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Gs=/\\|'|\r|\n|\u2028|\u2029/g;function Zs(e){return"\\"+Hs[e]}var $s=/^\s*(\w|\$)+\s*$/;function wu(e,n,t){!n&&t&&(n=t),n=Vi({},n,Ee.templateSettings);var r=RegExp([(n.escape||yr).source,(n.interpolate||yr).source,(n.evaluate||yr).source].join("|")+"|$","g"),c=0,i="__p+='";e.replace(r,function(l,b,m,g,h){return i+=e.slice(c,h).replace(Gs,Zs),c=h+l.length,b?i+=`'+
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Es=require("./index-ByRfqzMr.cjs"),br=require("react/jsx-runtime"),ya=require("react"),je=require("./RichTextEditor-DsUcQSbm.cjs"),As=require("./index-D_A0TBRA.cjs");var Ve={},Ai="1.13.7",Da=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Ht=Array.prototype,Fi=Object.prototype,va=typeof Symbol<"u"?Symbol.prototype:null,Fs=Ht.push,it=Ht.slice,Qn=Fi.toString,Cs=Fi.hasOwnProperty,qc=typeof ArrayBuffer<"u",Ss=typeof DataView<"u",Bs=Array.isArray,xa=Object.keys,_a=Object.create,Ua=qc&&ArrayBuffer.isView,ks=isNaN,Ws=isFinite,Pc=!{toString:null}.propertyIsEnumerable("toString"),Ta=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Rs=Math.pow(2,53)-1;function Le(e,n){return n=n==null?e.length-1:+n,function(){for(var t=Math.max(arguments.length-n,0),r=Array(t),c=0;c<t;c++)r[c]=arguments[c+n];switch(n){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(n+1);for(c=0;c<n;c++)i[c]=arguments[c];return i[n]=r,e.apply(this,i)}}function hn(e){var n=typeof e;return n==="function"||n==="object"&&!!e}function zc(e){return e===null}function Ci(e){return e===void 0}function Si(e){return e===!0||e===!1||Qn.call(e)==="[object Boolean]"}function jc(e){return!!(e&&e.nodeType===1)}function Ie(e){var n="[object "+e+"]";return function(t){return Qn.call(t)===n}}const Gt=Ie("String"),Bi=Ie("Number"),Xc=Ie("Date"),Vc=Ie("RegExp"),Hc=Ie("Error"),ki=Ie("Symbol"),Wi=Ie("ArrayBuffer");var Gc=Ie("Function"),Ns=Da.document&&Da.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Ns!="function"&&(Gc=function(e){return typeof e=="function"||!1});const Oe=Gc,Zc=Ie("Object");var $c=Ss&&(!/\[native code\]/.test(String(DataView))||Zc(new DataView(new ArrayBuffer(8)))),Ri=typeof Map<"u"&&Zc(new Map),Os=Ie("DataView");function Is(e){return e!=null&&Oe(e.getInt8)&&Wi(e.buffer)}const Jn=$c?Is:Os,pn=Bs||Ie("Array");function gn(e,n){return e!=null&&Cs.call(e,n)}var Ti=Ie("Arguments");(function(){Ti(arguments)||(Ti=function(e){return gn(e,"callee")})})();const Zt=Ti;function Yc(e){return!ki(e)&&Ws(e)&&!isNaN(parseFloat(e))}function Ni(e){return Bi(e)&&ks(e)}function Oi(e){return function(){return e}}function Kc(e){return function(n){var t=e(n);return typeof t=="number"&&t>=0&&t<=Rs}}function Qc(e){return function(n){return n==null?void 0:n[e]}}const Pt=Qc("byteLength"),Ls=Kc(Pt);var Ms=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function qs(e){return Ua?Ua(e)&&!Jn(e):Ls(e)&&Ms.test(Qn.call(e))}const Ii=qc?qs:Oi(!1),qe=Qc("length");function Ps(e){for(var n={},t=e.length,r=0;r<t;++r)n[e[r]]=!0;return{contains:function(c){return n[c]===!0},push:function(c){return n[c]=!0,e.push(c)}}}function Jc(e,n){n=Ps(n);var t=Ta.length,r=e.constructor,c=Oe(r)&&r.prototype||Fi,i="constructor";for(gn(e,i)&&!n.contains(i)&&n.push(i);t--;)i=Ta[t],i in e&&e[i]!==c[i]&&!n.contains(i)&&n.push(i)}function ke(e){if(!hn(e))return[];if(xa)return xa(e);var n=[];for(var t in e)gn(e,t)&&n.push(t);return Pc&&Jc(e,n),n}function eu(e){if(e==null)return!0;var n=qe(e);return typeof n=="number"&&(pn(e)||Gt(e)||Zt(e))?n===0:qe(ke(e))===0}function Li(e,n){var t=ke(n),r=t.length;if(e==null)return!r;for(var c=Object(e),i=0;i<r;i++){var a=t[i];if(n[a]!==c[a]||!(a in c))return!1}return!0}function Ee(e){if(e instanceof Ee)return e;if(!(this instanceof Ee))return new Ee(e);this._wrapped=e}Ee.VERSION=Ai;Ee.prototype.value=function(){return this._wrapped};Ee.prototype.valueOf=Ee.prototype.toJSON=Ee.prototype.value;Ee.prototype.toString=function(){return String(this._wrapped)};function wa(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Pt(e))}var Ea="[object DataView]";function wi(e,n,t,r){if(e===n)return e!==0||1/e===1/n;if(e==null||n==null)return!1;if(e!==e)return n!==n;var c=typeof e;return c!=="function"&&c!=="object"&&typeof n!="object"?!1:nu(e,n,t,r)}function nu(e,n,t,r){e instanceof Ee&&(e=e._wrapped),n instanceof Ee&&(n=n._wrapped);var c=Qn.call(e);if(c!==Qn.call(n))return!1;if($c&&c=="[object Object]"&&Jn(e)){if(!Jn(n))return!1;c=Ea}switch(c){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:+e==0?1/+e===1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n;case"[object Symbol]":return va.valueOf.call(e)===va.valueOf.call(n);case"[object ArrayBuffer]":case Ea:return nu(wa(e),wa(n),t,r)}var i=c==="[object Array]";if(!i&&Ii(e)){var a=Pt(e);if(a!==Pt(n))return!1;if(e.buffer===n.buffer&&e.byteOffset===n.byteOffset)return!0;i=!0}if(!i){if(typeof e!="object"||typeof n!="object")return!1;var o=e.constructor,u=n.constructor;if(o!==u&&!(Oe(o)&&o instanceof o&&Oe(u)&&u instanceof u)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],r=r||[];for(var l=t.length;l--;)if(t[l]===e)return r[l]===n;if(t.push(e),r.push(n),i){if(l=e.length,l!==n.length)return!1;for(;l--;)if(!wi(e[l],n[l],t,r))return!1}else{var b=ke(e),m;if(l=b.length,ke(n).length!==l)return!1;for(;l--;)if(m=b[l],!(gn(n,m)&&wi(e[m],n[m],t,r)))return!1}return t.pop(),r.pop(),!0}function tu(e,n){return wi(e,n)}function Mn(e){if(!hn(e))return[];var n=[];for(var t in e)n.push(t);return Pc&&Jc(e,n),n}function Mi(e){var n=qe(e);return function(t){if(t==null)return!1;var r=Mn(t);if(qe(r))return!1;for(var c=0;c<n;c++)if(!Oe(t[e[c]]))return!1;return e!==au||!Oe(t[qi])}}var qi="forEach",ru="has",Pi=["clear","delete"],iu=["get",ru,"set"],zs=Pi.concat(qi,iu),au=Pi.concat(iu),js=["add"].concat(Pi,qi,ru);const ou=Ri?Mi(zs):Ie("Map"),cu=Ri?Mi(au):Ie("WeakMap"),uu=Ri?Mi(js):Ie("Set"),su=Ie("WeakSet");function An(e){for(var n=ke(e),t=n.length,r=Array(t),c=0;c<t;c++)r[c]=e[n[c]];return r}function du(e){for(var n=ke(e),t=n.length,r=Array(t),c=0;c<t;c++)r[c]=[n[c],e[n[c]]];return r}function zi(e){for(var n={},t=ke(e),r=0,c=t.length;r<c;r++)n[e[t[r]]]=t[r];return n}function et(e){var n=[];for(var t in e)Oe(e[t])&&n.push(t);return n.sort()}function ji(e,n){return function(t){var r=arguments.length;if(n&&(t=Object(t)),r<2||t==null)return t;for(var c=1;c<r;c++)for(var i=arguments[c],a=e(i),o=a.length,u=0;u<o;u++){var l=a[u];(!n||t[l]===void 0)&&(t[l]=i[l])}return t}}const Xi=ji(Mn),In=ji(ke),Vi=ji(Mn,!0);function Xs(){return function(){}}function lu(e){if(!hn(e))return{};if(_a)return _a(e);var n=Xs();n.prototype=e;var t=new n;return n.prototype=null,t}function fu(e,n){var t=lu(e);return n&&In(t,n),t}function hu(e){return hn(e)?pn(e)?e.slice():Xi({},e):e}function pu(e,n){return n(e),e}function Hi(e){return pn(e)?e:[e]}Ee.toPath=Hi;function at(e){return Ee.toPath(e)}function Gi(e,n){for(var t=n.length,r=0;r<t;r++){if(e==null)return;e=e[n[r]]}return t?e:void 0}function Zi(e,n,t){var r=Gi(e,at(n));return Ci(r)?t:r}function gu(e,n){n=at(n);for(var t=n.length,r=0;r<t;r++){var c=n[r];if(!gn(e,c))return!1;e=e[c]}return!!t}function $t(e){return e}function En(e){return e=In({},e),function(n){return Li(n,e)}}function Yt(e){return e=at(e),function(n){return Gi(n,e)}}function ot(e,n,t){if(n===void 0)return e;switch(t??3){case 1:return function(r){return e.call(n,r)};case 3:return function(r,c,i){return e.call(n,r,c,i)};case 4:return function(r,c,i,a){return e.call(n,r,c,i,a)}}return function(){return e.apply(n,arguments)}}function mu(e,n,t){return e==null?$t:Oe(e)?ot(e,n,t):hn(e)&&!pn(e)?En(e):Yt(e)}function Kt(e,n){return mu(e,n,1/0)}Ee.iteratee=Kt;function Pe(e,n,t){return Ee.iteratee!==Kt?Ee.iteratee(e,n):mu(e,n,t)}function bu(e,n,t){n=Pe(n,t);for(var r=ke(e),c=r.length,i={},a=0;a<c;a++){var o=r[a];i[o]=n(e[o],o,e)}return i}function $i(){}function yu(e){return e==null?$i:function(n){return Zi(e,n)}}function Du(e,n,t){var r=Array(Math.max(0,e));n=ot(n,t,1);for(var c=0;c<e;c++)r[c]=n(c);return r}function zt(e,n){return n==null&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))}const Ln=Date.now||function(){return new Date().getTime()};function vu(e){var n=function(i){return e[i]},t="(?:"+ke(e).join("|")+")",r=RegExp(t),c=RegExp(t,"g");return function(i){return i=i==null?"":""+i,r.test(i)?i.replace(c,n):i}}const xu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},_u=vu(xu),Vs=zi(xu),Uu=vu(Vs),Tu=Ee.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var yr=/(.)^/,Hs={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Gs=/\\|'|\r|\n|\u2028|\u2029/g;function Zs(e){return"\\"+Hs[e]}var $s=/^\s*(\w|\$)+\s*$/;function wu(e,n,t){!n&&t&&(n=t),n=Vi({},n,Ee.templateSettings);var r=RegExp([(n.escape||yr).source,(n.interpolate||yr).source,(n.evaluate||yr).source].join("|")+"|$","g"),c=0,i="__p+='";e.replace(r,function(l,b,m,g,h){return i+=e.slice(c,h).replace(Gs,Zs),c=h+l.length,b?i+=`'+
2
2
  ((__t=(`+b+`))==null?'':_.escape(__t))+
3
3
  '`:m?i+=`'+
4
4
  ((__t=(`+m+`))==null?'':__t)+
@@ -130,15 +130,6 @@ declare module '@tiptap/core' {
130
130
  }
131
131
 
132
132
 
133
- declare module '@tiptap/core' {
134
- interface Commands<ReturnType> {
135
- excalidraw: {
136
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
137
- };
138
- }
139
- }
140
-
141
-
142
133
  declare module '@tiptap/core' {
143
134
  interface Commands<ReturnType> {
144
135
  emoji: {
@@ -160,6 +151,15 @@ declare module '@tiptap/core' {
160
151
  }
161
152
 
162
153
 
154
+ declare module '@tiptap/core' {
155
+ interface Commands<ReturnType> {
156
+ excalidraw: {
157
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
158
+ };
159
+ }
160
+ }
161
+
162
+
163
163
  declare module '@tiptap/core' {
164
164
  interface Commands<ReturnType> {
165
165
  exportWord: {
@@ -269,9 +269,8 @@ declare module '@tiptap/core' {
269
269
 
270
270
  declare module '@tiptap/core' {
271
271
  interface Commands<ReturnType> {
272
- lineHeight: {
273
- setLineHeight: (lineHeight: string) => ReturnType;
274
- unsetLineHeight: () => ReturnType;
272
+ katex: {
273
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
275
274
  };
276
275
  }
277
276
  }
@@ -279,8 +278,9 @@ declare module '@tiptap/core' {
279
278
 
280
279
  declare module '@tiptap/core' {
281
280
  interface Commands<ReturnType> {
282
- katex: {
283
- setKatex: (arg?: IKatexAttrs) => ReturnType;
281
+ lineHeight: {
282
+ setLineHeight: (lineHeight: string) => ReturnType;
283
+ unsetLineHeight: () => ReturnType;
284
284
  };
285
285
  }
286
286
  }
@@ -296,6 +296,20 @@ declare module '@tiptap/core' {
296
296
  }
297
297
 
298
298
 
299
+ declare module '@tiptap/core' {
300
+ interface Commands<ReturnType> {
301
+ columns: {
302
+ insertColumns: (attrs?: {
303
+ cols: number;
304
+ }) => ReturnType;
305
+ addColBefore: () => ReturnType;
306
+ addColAfter: () => ReturnType;
307
+ deleteCol: () => ReturnType;
308
+ };
309
+ }
310
+ }
311
+
312
+
299
313
  declare module '@tiptap/core' {
300
314
  interface Commands<ReturnType> {
301
315
  search: {
@@ -311,20 +325,6 @@ declare module '@tiptap/core' {
311
325
  }
312
326
 
313
327
 
314
- declare module '@tiptap/core' {
315
- interface Commands<ReturnType> {
316
- columns: {
317
- insertColumns: (attrs?: {
318
- cols: number;
319
- }) => ReturnType;
320
- addColBefore: () => ReturnType;
321
- addColAfter: () => ReturnType;
322
- deleteCol: () => ReturnType;
323
- };
324
- }
325
- }
326
-
327
-
328
328
  declare module '@tiptap/core' {
329
329
  interface Commands<ReturnType> {
330
330
  tableOfContents: {
@@ -130,15 +130,6 @@ declare module '@tiptap/core' {
130
130
  }
131
131
 
132
132
 
133
- declare module '@tiptap/core' {
134
- interface Commands<ReturnType> {
135
- excalidraw: {
136
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
137
- };
138
- }
139
- }
140
-
141
-
142
133
  declare module '@tiptap/core' {
143
134
  interface Commands<ReturnType> {
144
135
  emoji: {
@@ -160,6 +151,15 @@ declare module '@tiptap/core' {
160
151
  }
161
152
 
162
153
 
154
+ declare module '@tiptap/core' {
155
+ interface Commands<ReturnType> {
156
+ excalidraw: {
157
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
158
+ };
159
+ }
160
+ }
161
+
162
+
163
163
  declare module '@tiptap/core' {
164
164
  interface Commands<ReturnType> {
165
165
  exportWord: {
@@ -269,9 +269,8 @@ declare module '@tiptap/core' {
269
269
 
270
270
  declare module '@tiptap/core' {
271
271
  interface Commands<ReturnType> {
272
- lineHeight: {
273
- setLineHeight: (lineHeight: string) => ReturnType;
274
- unsetLineHeight: () => ReturnType;
272
+ katex: {
273
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
275
274
  };
276
275
  }
277
276
  }
@@ -279,8 +278,9 @@ declare module '@tiptap/core' {
279
278
 
280
279
  declare module '@tiptap/core' {
281
280
  interface Commands<ReturnType> {
282
- katex: {
283
- setKatex: (arg?: IKatexAttrs) => ReturnType;
281
+ lineHeight: {
282
+ setLineHeight: (lineHeight: string) => ReturnType;
283
+ unsetLineHeight: () => ReturnType;
284
284
  };
285
285
  }
286
286
  }
@@ -296,6 +296,20 @@ declare module '@tiptap/core' {
296
296
  }
297
297
 
298
298
 
299
+ declare module '@tiptap/core' {
300
+ interface Commands<ReturnType> {
301
+ columns: {
302
+ insertColumns: (attrs?: {
303
+ cols: number;
304
+ }) => ReturnType;
305
+ addColBefore: () => ReturnType;
306
+ addColAfter: () => ReturnType;
307
+ deleteCol: () => ReturnType;
308
+ };
309
+ }
310
+ }
311
+
312
+
299
313
  declare module '@tiptap/core' {
300
314
  interface Commands<ReturnType> {
301
315
  search: {
@@ -311,20 +325,6 @@ declare module '@tiptap/core' {
311
325
  }
312
326
 
313
327
 
314
- declare module '@tiptap/core' {
315
- interface Commands<ReturnType> {
316
- columns: {
317
- insertColumns: (attrs?: {
318
- cols: number;
319
- }) => ReturnType;
320
- addColBefore: () => ReturnType;
321
- addColAfter: () => ReturnType;
322
- deleteCol: () => ReturnType;
323
- };
324
- }
325
- }
326
-
327
-
328
328
  declare module '@tiptap/core' {
329
329
  interface Commands<ReturnType> {
330
330
  tableOfContents: {
package/lib/ImportWord.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { E as ws } from "./index-DI9T3iLd.js";
2
2
  import { jsxs as Es, jsx as ba } from "react/jsx-runtime";
3
3
  import { useState as As, useRef as Fs } from "react";
4
- import { a9 as Cs, aa as dn, ab as Ss, ac as Bs, A as ks, ad as Ws } from "./RichTextEditor-CnWZ69eX.js";
4
+ import { a9 as Cs, aa as dn, ab as Ss, ac as Bs, A as ks, ad as Ws } from "./RichTextEditor-e6q30rbV.js";
5
5
  import { u as Rs } from "./index-CsK90iVd.js";
6
6
  var Xe = {}, Ei = "1.13.7", ya = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || Function("return this")() || {}, Ht = Array.prototype, Ai = Object.prototype, Da = typeof Symbol < "u" ? Symbol.prototype : null, Ns = Ht.push, it = Ht.slice, Qn = Ai.toString, Os = Ai.hasOwnProperty, Mc = typeof ArrayBuffer < "u", Is = typeof DataView < "u", Ls = Array.isArray, va = Object.keys, xa = Object.create, _a = Mc && ArrayBuffer.isView, Ms = isNaN, qs = isFinite, qc = !{ toString: null }.propertyIsEnumerable("toString"), Ua = [
7
7
  "valueOf",
package/lib/Indent.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),t=require("./RichTextEditor-BKywwUM4.cjs"),a=i.Extension.create({name:"indent",addOptions(){var n;return{...(n=this.parent)==null?void 0:n.call(this),types:["paragraph","heading","blockquote"],minIndent:t.IndentProps.min,maxIndent:t.IndentProps.max,button({editor:e,t:o,extension:d}){var r,s;return[{component:t.ActionButton,componentProps:{action:()=>{e.commands.indent()},shortcutKeys:((r=d.options.shortcutKeys)==null?void 0:r[0])??["Tab"],icon:"IndentIncrease",tooltip:o("editor.indent.tooltip")}},{component:t.ActionButton,componentProps:{action:()=>{e.commands.outdent()},shortcutKeys:((s=d.options.shortcutKeys)==null?void 0:s[1])??["Shift","Tab"],icon:"IndentDecrease",tooltip:o("editor.outdent.tooltip")}}]}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:n=>{const e=n.dataset.indent;return(e?Number.parseInt(e,10):0)||0},renderHTML:n=>n.indent?{"data-indent":n.indent}:{}}}}]},addCommands(){return{indent:()=>t.createIndentCommand({delta:t.IndentProps.more,types:this.options.types}),outdent:()=>t.createIndentCommand({delta:t.IndentProps.less,types:this.options.types})}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}});exports.Indent=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),t=require("./RichTextEditor-DsUcQSbm.cjs"),a=i.Extension.create({name:"indent",addOptions(){var n;return{...(n=this.parent)==null?void 0:n.call(this),types:["paragraph","heading","blockquote"],minIndent:t.IndentProps.min,maxIndent:t.IndentProps.max,button({editor:e,t:o,extension:d}){var r,s;return[{component:t.ActionButton,componentProps:{action:()=>{e.commands.indent()},shortcutKeys:((r=d.options.shortcutKeys)==null?void 0:r[0])??["Tab"],icon:"IndentIncrease",tooltip:o("editor.indent.tooltip")}},{component:t.ActionButton,componentProps:{action:()=>{e.commands.outdent()},shortcutKeys:((s=d.options.shortcutKeys)==null?void 0:s[1])??["Shift","Tab"],icon:"IndentDecrease",tooltip:o("editor.outdent.tooltip")}}]}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:n=>{const e=n.dataset.indent;return(e?Number.parseInt(e,10):0)||0},renderHTML:n=>n.indent?{"data-indent":n.indent}:{}}}}]},addCommands(){return{indent:()=>t.createIndentCommand({delta:t.IndentProps.more,types:this.options.types}),outdent:()=>t.createIndentCommand({delta:t.IndentProps.less,types:this.options.types})}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}});exports.Indent=a;
package/lib/Indent.d.cts CHANGED
@@ -121,15 +121,6 @@ declare module '@tiptap/core' {
121
121
  }
122
122
 
123
123
 
124
- declare module '@tiptap/core' {
125
- interface Commands<ReturnType> {
126
- excalidraw: {
127
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
128
- };
129
- }
130
- }
131
-
132
-
133
124
  declare module '@tiptap/core' {
134
125
  interface Commands<ReturnType> {
135
126
  emoji: {
@@ -151,6 +142,15 @@ declare module '@tiptap/core' {
151
142
  }
152
143
 
153
144
 
145
+ declare module '@tiptap/core' {
146
+ interface Commands<ReturnType> {
147
+ excalidraw: {
148
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
149
+ };
150
+ }
151
+ }
152
+
153
+
154
154
  declare module '@tiptap/core' {
155
155
  interface Commands<ReturnType> {
156
156
  exportWord: {
@@ -260,9 +260,8 @@ declare module '@tiptap/core' {
260
260
 
261
261
  declare module '@tiptap/core' {
262
262
  interface Commands<ReturnType> {
263
- lineHeight: {
264
- setLineHeight: (lineHeight: string) => ReturnType;
265
- unsetLineHeight: () => ReturnType;
263
+ katex: {
264
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
266
265
  };
267
266
  }
268
267
  }
@@ -270,8 +269,9 @@ declare module '@tiptap/core' {
270
269
 
271
270
  declare module '@tiptap/core' {
272
271
  interface Commands<ReturnType> {
273
- katex: {
274
- setKatex: (arg?: IKatexAttrs) => ReturnType;
272
+ lineHeight: {
273
+ setLineHeight: (lineHeight: string) => ReturnType;
274
+ unsetLineHeight: () => ReturnType;
275
275
  };
276
276
  }
277
277
  }
@@ -287,6 +287,20 @@ declare module '@tiptap/core' {
287
287
  }
288
288
 
289
289
 
290
+ declare module '@tiptap/core' {
291
+ interface Commands<ReturnType> {
292
+ columns: {
293
+ insertColumns: (attrs?: {
294
+ cols: number;
295
+ }) => ReturnType;
296
+ addColBefore: () => ReturnType;
297
+ addColAfter: () => ReturnType;
298
+ deleteCol: () => ReturnType;
299
+ };
300
+ }
301
+ }
302
+
303
+
290
304
  declare module '@tiptap/core' {
291
305
  interface Commands<ReturnType> {
292
306
  search: {
@@ -302,20 +316,6 @@ declare module '@tiptap/core' {
302
316
  }
303
317
 
304
318
 
305
- declare module '@tiptap/core' {
306
- interface Commands<ReturnType> {
307
- columns: {
308
- insertColumns: (attrs?: {
309
- cols: number;
310
- }) => ReturnType;
311
- addColBefore: () => ReturnType;
312
- addColAfter: () => ReturnType;
313
- deleteCol: () => ReturnType;
314
- };
315
- }
316
- }
317
-
318
-
319
319
  declare module '@tiptap/core' {
320
320
  interface Commands<ReturnType> {
321
321
  tableOfContents: {
package/lib/Indent.d.ts CHANGED
@@ -121,15 +121,6 @@ declare module '@tiptap/core' {
121
121
  }
122
122
 
123
123
 
124
- declare module '@tiptap/core' {
125
- interface Commands<ReturnType> {
126
- excalidraw: {
127
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
128
- };
129
- }
130
- }
131
-
132
-
133
124
  declare module '@tiptap/core' {
134
125
  interface Commands<ReturnType> {
135
126
  emoji: {
@@ -151,6 +142,15 @@ declare module '@tiptap/core' {
151
142
  }
152
143
 
153
144
 
145
+ declare module '@tiptap/core' {
146
+ interface Commands<ReturnType> {
147
+ excalidraw: {
148
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
149
+ };
150
+ }
151
+ }
152
+
153
+
154
154
  declare module '@tiptap/core' {
155
155
  interface Commands<ReturnType> {
156
156
  exportWord: {
@@ -260,9 +260,8 @@ declare module '@tiptap/core' {
260
260
 
261
261
  declare module '@tiptap/core' {
262
262
  interface Commands<ReturnType> {
263
- lineHeight: {
264
- setLineHeight: (lineHeight: string) => ReturnType;
265
- unsetLineHeight: () => ReturnType;
263
+ katex: {
264
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
266
265
  };
267
266
  }
268
267
  }
@@ -270,8 +269,9 @@ declare module '@tiptap/core' {
270
269
 
271
270
  declare module '@tiptap/core' {
272
271
  interface Commands<ReturnType> {
273
- katex: {
274
- setKatex: (arg?: IKatexAttrs) => ReturnType;
272
+ lineHeight: {
273
+ setLineHeight: (lineHeight: string) => ReturnType;
274
+ unsetLineHeight: () => ReturnType;
275
275
  };
276
276
  }
277
277
  }
@@ -287,6 +287,20 @@ declare module '@tiptap/core' {
287
287
  }
288
288
 
289
289
 
290
+ declare module '@tiptap/core' {
291
+ interface Commands<ReturnType> {
292
+ columns: {
293
+ insertColumns: (attrs?: {
294
+ cols: number;
295
+ }) => ReturnType;
296
+ addColBefore: () => ReturnType;
297
+ addColAfter: () => ReturnType;
298
+ deleteCol: () => ReturnType;
299
+ };
300
+ }
301
+ }
302
+
303
+
290
304
  declare module '@tiptap/core' {
291
305
  interface Commands<ReturnType> {
292
306
  search: {
@@ -302,20 +316,6 @@ declare module '@tiptap/core' {
302
316
  }
303
317
 
304
318
 
305
- declare module '@tiptap/core' {
306
- interface Commands<ReturnType> {
307
- columns: {
308
- insertColumns: (attrs?: {
309
- cols: number;
310
- }) => ReturnType;
311
- addColBefore: () => ReturnType;
312
- addColAfter: () => ReturnType;
313
- deleteCol: () => ReturnType;
314
- };
315
- }
316
- }
317
-
318
-
319
319
  declare module '@tiptap/core' {
320
320
  interface Commands<ReturnType> {
321
321
  tableOfContents: {