reactjs-tiptap-editor 0.3.8 → 0.3.10

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 (225) hide show
  1. package/lib/{ActionMenuButton-CqlhqVIW.cjs → ActionMenuButton-D96eTByd.cjs} +1 -1
  2. package/lib/{ActionMenuButton-DXwpQHj4.js → ActionMenuButton-ZOYNohaO.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +12 -12
  5. package/lib/Attachment.d.ts +12 -12
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +12 -12
  9. package/lib/Blockquote.d.ts +12 -12
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +12 -12
  13. package/lib/Bold.d.ts +12 -12
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +12 -12
  17. package/lib/BulletList.d.ts +12 -12
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +12 -12
  21. package/lib/Clear.d.ts +12 -12
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +12 -12
  25. package/lib/Code.d.ts +12 -12
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +12 -12
  29. package/lib/CodeBlock.d.ts +12 -12
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +12 -12
  33. package/lib/CodeView.d.ts +12 -12
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +12 -12
  37. package/lib/Color.d.ts +12 -12
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +12 -12
  40. package/lib/Document.d.ts +12 -12
  41. package/lib/{Drawer-B6uGc4Ab.js → Drawer-D7VC0bqz.js} +1 -1
  42. package/lib/{Drawer-DBt_aN5x.cjs → Drawer-hzhjTRvj.cjs} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +12 -12
  45. package/lib/Drawer.d.ts +12 -12
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +12 -12
  49. package/lib/Emoji.d.ts +12 -12
  50. package/lib/Emoji.js +1 -1
  51. package/lib/Excalidraw-Bj3dtbC4.cjs +1 -0
  52. package/lib/Excalidraw-DuV1h_du.js +282 -0
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +12 -12
  55. package/lib/Excalidraw.d.ts +12 -12
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +12 -12
  59. package/lib/ExportPdf.d.ts +12 -12
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +12 -12
  63. package/lib/ExportWord.d.ts +12 -12
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +12 -12
  67. package/lib/FontFamily.d.ts +12 -12
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +12 -12
  71. package/lib/FontSize.d.ts +12 -12
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +12 -12
  75. package/lib/FormatPainter.d.ts +12 -12
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +12 -12
  79. package/lib/Heading.d.ts +12 -12
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +12 -12
  83. package/lib/Highlight.d.ts +12 -12
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +12 -12
  87. package/lib/History.d.ts +12 -12
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +12 -12
  91. package/lib/HorizontalRule.d.ts +12 -12
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +12 -12
  95. package/lib/Iframe.d.ts +12 -12
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +12 -12
  99. package/lib/Image.d.ts +12 -12
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +12 -12
  103. package/lib/ImageGif.d.ts +12 -12
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +12 -12
  107. package/lib/ImportWord.d.ts +12 -12
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +12 -12
  111. package/lib/Indent.d.ts +12 -12
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +12 -12
  115. package/lib/Italic.d.ts +12 -12
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +12 -12
  119. package/lib/Katex.d.ts +12 -12
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +12 -12
  123. package/lib/LineHeight.d.ts +12 -12
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +12 -12
  127. package/lib/Link.d.ts +12 -12
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +12 -12
  130. package/lib/ListItem.d.ts +12 -12
  131. package/lib/Mention.cjs +1 -1
  132. package/lib/Mention.d.cts +12 -12
  133. package/lib/Mention.d.ts +12 -12
  134. package/lib/Mermaid.cjs +1 -1
  135. package/lib/Mermaid.d.cts +12 -12
  136. package/lib/Mermaid.d.ts +12 -12
  137. package/lib/Mermaid.js +2 -2
  138. package/lib/MoreMark.cjs +1 -1
  139. package/lib/MoreMark.d.cts +12 -12
  140. package/lib/MoreMark.d.ts +12 -12
  141. package/lib/MoreMark.js +1 -1
  142. package/lib/MultiColumn.cjs +1 -1
  143. package/lib/MultiColumn.d.cts +12 -12
  144. package/lib/MultiColumn.d.ts +12 -12
  145. package/lib/MultiColumn.js +1 -1
  146. package/lib/OrderedList.cjs +1 -1
  147. package/lib/OrderedList.d.cts +12 -12
  148. package/lib/OrderedList.d.ts +12 -12
  149. package/lib/OrderedList.js +1 -1
  150. package/lib/{RichTextEditor-BfYZYQb9.js → RichTextEditor-CRDKX-F8.js} +11 -11
  151. package/lib/{RichTextEditor-Db6oQoYY.cjs → RichTextEditor-ymQlnG9m.cjs} +1 -1
  152. package/lib/SearchAndReplace.cjs +1 -1
  153. package/lib/SearchAndReplace.d.cts +12 -12
  154. package/lib/SearchAndReplace.d.ts +12 -12
  155. package/lib/SearchAndReplace.js +1 -1
  156. package/lib/Selection.d.cts +12 -12
  157. package/lib/Selection.d.ts +12 -12
  158. package/lib/SlashCommand.cjs +1 -1
  159. package/lib/SlashCommand.d.cts +12 -12
  160. package/lib/SlashCommand.d.ts +12 -12
  161. package/lib/SlashCommand.js +1 -1
  162. package/lib/Strike.cjs +1 -1
  163. package/lib/Strike.d.cts +12 -12
  164. package/lib/Strike.d.ts +12 -12
  165. package/lib/Strike.js +1 -1
  166. package/lib/SubAndSuperScript.cjs +1 -1
  167. package/lib/SubAndSuperScript.d.cts +12 -12
  168. package/lib/SubAndSuperScript.d.ts +12 -12
  169. package/lib/SubAndSuperScript.js +1 -1
  170. package/lib/Table.cjs +1 -1
  171. package/lib/Table.d.cts +12 -12
  172. package/lib/Table.d.ts +12 -12
  173. package/lib/Table.js +1 -1
  174. package/lib/TableOfContent.cjs +1 -1
  175. package/lib/TableOfContent.d.cts +12 -12
  176. package/lib/TableOfContent.d.ts +12 -12
  177. package/lib/TableOfContent.js +1 -1
  178. package/lib/TaskList.cjs +1 -1
  179. package/lib/TaskList.d.cts +12 -12
  180. package/lib/TaskList.d.ts +12 -12
  181. package/lib/TaskList.js +1 -1
  182. package/lib/TextAlign.cjs +1 -1
  183. package/lib/TextAlign.d.cts +12 -12
  184. package/lib/TextAlign.d.ts +12 -12
  185. package/lib/TextAlign.js +1 -1
  186. package/lib/TextBubble.cjs +1 -1
  187. package/lib/TextBubble.d.cts +12 -12
  188. package/lib/TextBubble.d.ts +12 -12
  189. package/lib/TextBubble.js +1 -1
  190. package/lib/TextDirection.cjs +1 -1
  191. package/lib/TextDirection.d.cts +12 -12
  192. package/lib/TextDirection.d.ts +12 -12
  193. package/lib/TextDirection.js +1 -1
  194. package/lib/TextUnderline.cjs +1 -1
  195. package/lib/TextUnderline.d.cts +12 -12
  196. package/lib/TextUnderline.d.ts +12 -12
  197. package/lib/TextUnderline.js +1 -1
  198. package/lib/TrailingNode.d.cts +12 -12
  199. package/lib/TrailingNode.d.ts +12 -12
  200. package/lib/{Twitter-DLO12QnF.cjs → Twitter-CMr6GpHp.cjs} +1 -1
  201. package/lib/{Twitter-CZA9dXpC.js → Twitter-CjAodXzu.js} +1 -1
  202. package/lib/Twitter.cjs +1 -1
  203. package/lib/Twitter.d.cts +12 -12
  204. package/lib/Twitter.d.ts +12 -12
  205. package/lib/Twitter.js +1 -1
  206. package/lib/Video.cjs +1 -1
  207. package/lib/Video.d.cts +12 -12
  208. package/lib/Video.d.ts +12 -12
  209. package/lib/Video.js +1 -1
  210. package/lib/bubble-extra.cjs +1 -1
  211. package/lib/bubble-extra.d.cts +12 -12
  212. package/lib/bubble-extra.d.ts +12 -12
  213. package/lib/bubble-extra.js +5 -5
  214. package/lib/{dom-dataset-DmsCLv1q.cjs → dom-dataset-Cuy-pIfj.cjs} +3 -3
  215. package/lib/index.cjs +1 -1
  216. package/lib/index.d.cts +12 -12
  217. package/lib/index.d.ts +12 -12
  218. package/lib/index.js +2 -2
  219. package/lib/locale-bundle.d.cts +12 -12
  220. package/lib/locale-bundle.d.ts +12 -12
  221. package/lib/{textarea-ILk3QoYy.cjs → textarea-Ci1tHD6V.cjs} +1 -1
  222. package/lib/{textarea-BUlQB7hI.js → textarea-CtL8w6IS.js} +1 -1
  223. package/package.json +1 -2
  224. package/lib/Excalidraw-BmNljVH8.cjs +0 -1
  225. package/lib/Excalidraw-DwD8Qm59.js +0 -651
package/lib/ImageGif.d.ts CHANGED
@@ -141,19 +141,19 @@ declare module '@tiptap/core' {
141
141
 
142
142
  declare module '@tiptap/core' {
143
143
  interface Commands<ReturnType> {
144
- imageUpload: {
144
+ imageGifUpload: {
145
145
  /**
146
- * Add an image
146
+ * Add an image gif
147
147
  */
148
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
148
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
149
149
  /**
150
- * Update an image
150
+ * Update an image gif
151
151
  */
152
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
152
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
153
153
  /**
154
154
  * Set image alignment
155
155
  */
156
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
156
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
157
157
  };
158
158
  }
159
159
  }
@@ -161,19 +161,19 @@ declare module '@tiptap/core' {
161
161
 
162
162
  declare module '@tiptap/core' {
163
163
  interface Commands<ReturnType> {
164
- imageGifUpload: {
164
+ imageUpload: {
165
165
  /**
166
- * Add an image gif
166
+ * Add an image
167
167
  */
168
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
168
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
169
169
  /**
170
- * Update an image gif
170
+ * Update an image
171
171
  */
172
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
172
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
173
173
  /**
174
174
  * Set image alignment
175
175
  */
176
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
176
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
177
177
  };
178
178
  }
179
179
  }
package/lib/ImageGif.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./index-CXIIg9Sq.js";
2
- import { af as r, af as t } from "./RichTextEditor-BfYZYQb9.js";
2
+ import { af as r, af as t } from "./RichTextEditor-CRDKX-F8.js";
3
3
  import "./dom-dataset-2RXYq9wp.js";
4
4
  export {
5
5
  r as ImageGif,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ws=require("./index-CSvnpArE.cjs"),br=require("react/jsx-runtime"),ya=require("react"),Pe=require("./RichTextEditor-Db6oQoYY.cjs"),Es=require("./index-Dz3YxLE7.cjs");var je={},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,Ci=Object.prototype,va=typeof Symbol<"u"?Symbol.prototype:null,As=Ht.push,rt=Ht.slice,Kn=Ci.toString,Cs=Ci.hasOwnProperty,qc=typeof ArrayBuffer<"u",Fs=typeof DataView<"u",Ss=Array.isArray,xa=Object.keys,_a=Object.create,Ua=qc&&ArrayBuffer.isView,Bs=isNaN,ks=isFinite,Pc=!{toString:null}.propertyIsEnumerable("toString"),Ta=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ws=Math.pow(2,53)-1;function Oe(e,n){return n=n==null?e.length-1:+n,function(){for(var t=Math.max(arguments.length-n,0),i=Array(t),c=0;c<t;c++)i[c]=arguments[c+n];switch(n){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var r=Array(n+1);for(c=0;c<n;c++)r[c]=arguments[c];return r[n]=i,e.apply(this,r)}}function ln(e){var n=typeof e;return n==="function"||n==="object"&&!!e}function zc(e){return e===null}function Fi(e){return e===void 0}function Si(e){return e===!0||e===!1||Kn.call(e)==="[object Boolean]"}function jc(e){return!!(e&&e.nodeType===1)}function Ne(e){var n="[object "+e+"]";return function(t){return Kn.call(t)===n}}const Gt=Ne("String"),Bi=Ne("Number"),Xc=Ne("Date"),Vc=Ne("RegExp"),Hc=Ne("Error"),ki=Ne("Symbol"),Wi=Ne("ArrayBuffer");var Gc=Ne("Function"),Rs=Da.document&&Da.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Rs!="function"&&(Gc=function(e){return typeof e=="function"||!1});const Re=Gc,Zc=Ne("Object");var $c=Fs&&(!/\[native code\]/.test(String(DataView))||Zc(new DataView(new ArrayBuffer(8)))),Ri=typeof Map<"u"&&Zc(new Map),Ns=Ne("DataView");function Os(e){return e!=null&&Re(e.getInt8)&&Wi(e.buffer)}const Qn=$c?Os:Ns,fn=Ss||Ne("Array");function hn(e,n){return e!=null&&Cs.call(e,n)}var Ti=Ne("Arguments");(function(){Ti(arguments)||(Ti=function(e){return hn(e,"callee")})})();const Zt=Ti;function Yc(e){return!ki(e)&&ks(e)&&!isNaN(parseFloat(e))}function Ni(e){return Bi(e)&&Bs(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<=Ws}}function Qc(e){return function(n){return n==null?void 0:n[e]}}const Pt=Qc("byteLength"),Is=Kc(Pt);var Ls=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Ms(e){return Ua?Ua(e)&&!Qn(e):Is(e)&&Ls.test(Kn.call(e))}const Ii=qc?Ms:Oi(!1),Le=Qc("length");function qs(e){for(var n={},t=e.length,i=0;i<t;++i)n[e[i]]=!0;return{contains:function(c){return n[c]===!0},push:function(c){return n[c]=!0,e.push(c)}}}function Jc(e,n){n=qs(n);var t=Ta.length,i=e.constructor,c=Re(i)&&i.prototype||Ci,r="constructor";for(hn(e,r)&&!n.contains(r)&&n.push(r);t--;)r=Ta[t],r in e&&e[r]!==c[r]&&!n.contains(r)&&n.push(r)}function Be(e){if(!ln(e))return[];if(xa)return xa(e);var n=[];for(var t in e)hn(e,t)&&n.push(t);return Pc&&Jc(e,n),n}function eu(e){if(e==null)return!0;var n=Le(e);return typeof n=="number"&&(fn(e)||Gt(e)||Zt(e))?n===0:Le(Be(e))===0}function Li(e,n){var t=Be(n),i=t.length;if(e==null)return!i;for(var c=Object(e),r=0;r<i;r++){var a=t[r];if(n[a]!==c[a]||!(a in c))return!1}return!0}function we(e){if(e instanceof we)return e;if(!(this instanceof we))return new we(e);this._wrapped=e}we.VERSION=Ai;we.prototype.value=function(){return this._wrapped};we.prototype.valueOf=we.prototype.toJSON=we.prototype.value;we.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,i){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,i)}function nu(e,n,t,i){e instanceof we&&(e=e._wrapped),n instanceof we&&(n=n._wrapped);var c=Kn.call(e);if(c!==Kn.call(n))return!1;if($c&&c=="[object Object]"&&Qn(e)){if(!Qn(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,i)}var r=c==="[object Array]";if(!r&&Ii(e)){var a=Pt(e);if(a!==Pt(n))return!1;if(e.buffer===n.buffer&&e.byteOffset===n.byteOffset)return!0;r=!0}if(!r){if(typeof e!="object"||typeof n!="object")return!1;var o=e.constructor,u=n.constructor;if(o!==u&&!(Re(o)&&o instanceof o&&Re(u)&&u instanceof u)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],i=i||[];for(var l=t.length;l--;)if(t[l]===e)return i[l]===n;if(t.push(e),i.push(n),r){if(l=e.length,l!==n.length)return!1;for(;l--;)if(!wi(e[l],n[l],t,i))return!1}else{var b=Be(e),m;if(l=b.length,Be(n).length!==l)return!1;for(;l--;)if(m=b[l],!(hn(n,m)&&wi(e[m],n[m],t,i)))return!1}return t.pop(),i.pop(),!0}function tu(e,n){return wi(e,n)}function Ln(e){if(!ln(e))return[];var n=[];for(var t in e)n.push(t);return Pc&&Jc(e,n),n}function Mi(e){var n=Le(e);return function(t){if(t==null)return!1;var i=Ln(t);if(Le(i))return!1;for(var c=0;c<n;c++)if(!Re(t[e[c]]))return!1;return e!==au||!Re(t[qi])}}var qi="forEach",ru="has",Pi=["clear","delete"],iu=["get",ru,"set"],Ps=Pi.concat(qi,iu),au=Pi.concat(iu),zs=["add"].concat(Pi,qi,ru);const ou=Ri?Mi(Ps):Ne("Map"),cu=Ri?Mi(au):Ne("WeakMap"),uu=Ri?Mi(zs):Ne("Set"),su=Ne("WeakSet");function En(e){for(var n=Be(e),t=n.length,i=Array(t),c=0;c<t;c++)i[c]=e[n[c]];return i}function du(e){for(var n=Be(e),t=n.length,i=Array(t),c=0;c<t;c++)i[c]=[n[c],e[n[c]]];return i}function zi(e){for(var n={},t=Be(e),i=0,c=t.length;i<c;i++)n[e[t[i]]]=t[i];return n}function Jn(e){var n=[];for(var t in e)Re(e[t])&&n.push(t);return n.sort()}function ji(e,n){return function(t){var i=arguments.length;if(n&&(t=Object(t)),i<2||t==null)return t;for(var c=1;c<i;c++)for(var r=arguments[c],a=e(r),o=a.length,u=0;u<o;u++){var l=a[u];(!n||t[l]===void 0)&&(t[l]=r[l])}return t}}const Xi=ji(Ln),On=ji(Be),Vi=ji(Ln,!0);function js(){return function(){}}function lu(e){if(!ln(e))return{};if(_a)return _a(e);var n=js();n.prototype=e;var t=new n;return n.prototype=null,t}function fu(e,n){var t=lu(e);return n&&On(t,n),t}function hu(e){return ln(e)?fn(e)?e.slice():Xi({},e):e}function pu(e,n){return n(e),e}function Hi(e){return fn(e)?e:[e]}we.toPath=Hi;function it(e){return we.toPath(e)}function Gi(e,n){for(var t=n.length,i=0;i<t;i++){if(e==null)return;e=e[n[i]]}return t?e:void 0}function Zi(e,n,t){var i=Gi(e,it(n));return Fi(i)?t:i}function gu(e,n){n=it(n);for(var t=n.length,i=0;i<t;i++){var c=n[i];if(!hn(e,c))return!1;e=e[c]}return!!t}function $t(e){return e}function wn(e){return e=On({},e),function(n){return Li(n,e)}}function Yt(e){return e=it(e),function(n){return Gi(n,e)}}function at(e,n,t){if(n===void 0)return e;switch(t??3){case 1:return function(i){return e.call(n,i)};case 3:return function(i,c,r){return e.call(n,i,c,r)};case 4:return function(i,c,r,a){return e.call(n,i,c,r,a)}}return function(){return e.apply(n,arguments)}}function mu(e,n,t){return e==null?$t:Re(e)?at(e,n,t):ln(e)&&!fn(e)?wn(e):Yt(e)}function Kt(e,n){return mu(e,n,1/0)}we.iteratee=Kt;function Me(e,n,t){return we.iteratee!==Kt?we.iteratee(e,n):mu(e,n,t)}function bu(e,n,t){n=Me(n,t);for(var i=Be(e),c=i.length,r={},a=0;a<c;a++){var o=i[a];r[o]=n(e[o],o,e)}return r}function $i(){}function yu(e){return e==null?$i:function(n){return Zi(e,n)}}function Du(e,n,t){var i=Array(Math.max(0,e));n=at(n,t,1);for(var c=0;c<e;c++)i[c]=n(c);return i}function zt(e,n){return n==null&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))}const In=Date.now||function(){return new Date().getTime()};function vu(e){var n=function(r){return e[r]},t="(?:"+Be(e).join("|")+")",i=RegExp(t),c=RegExp(t,"g");return function(r){return r=r==null?"":""+r,i.test(r)?r.replace(c,n):r}}const xu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},_u=vu(xu),Xs=zi(xu),Uu=vu(Xs),Tu=we.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var yr=/(.)^/,Vs={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Hs=/\\|'|\r|\n|\u2028|\u2029/g;function Gs(e){return"\\"+Vs[e]}var Zs=/^\s*(\w|\$)+\s*$/;function wu(e,n,t){!n&&t&&(n=t),n=Vi({},n,we.templateSettings);var i=RegExp([(n.escape||yr).source,(n.interpolate||yr).source,(n.evaluate||yr).source].join("|")+"|$","g"),c=0,r="__p+='";e.replace(i,function(l,b,m,g,f){return r+=e.slice(c,f).replace(Hs,Gs),c=f+l.length,b?r+=`'+
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ws=require("./index-CSvnpArE.cjs"),br=require("react/jsx-runtime"),ya=require("react"),Pe=require("./RichTextEditor-ymQlnG9m.cjs"),Es=require("./index-Dz3YxLE7.cjs");var je={},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,Ci=Object.prototype,va=typeof Symbol<"u"?Symbol.prototype:null,As=Ht.push,rt=Ht.slice,Kn=Ci.toString,Cs=Ci.hasOwnProperty,qc=typeof ArrayBuffer<"u",Fs=typeof DataView<"u",Ss=Array.isArray,xa=Object.keys,_a=Object.create,Ua=qc&&ArrayBuffer.isView,Bs=isNaN,ks=isFinite,Pc=!{toString:null}.propertyIsEnumerable("toString"),Ta=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ws=Math.pow(2,53)-1;function Oe(e,n){return n=n==null?e.length-1:+n,function(){for(var t=Math.max(arguments.length-n,0),i=Array(t),c=0;c<t;c++)i[c]=arguments[c+n];switch(n){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var r=Array(n+1);for(c=0;c<n;c++)r[c]=arguments[c];return r[n]=i,e.apply(this,r)}}function ln(e){var n=typeof e;return n==="function"||n==="object"&&!!e}function zc(e){return e===null}function Fi(e){return e===void 0}function Si(e){return e===!0||e===!1||Kn.call(e)==="[object Boolean]"}function jc(e){return!!(e&&e.nodeType===1)}function Ne(e){var n="[object "+e+"]";return function(t){return Kn.call(t)===n}}const Gt=Ne("String"),Bi=Ne("Number"),Xc=Ne("Date"),Vc=Ne("RegExp"),Hc=Ne("Error"),ki=Ne("Symbol"),Wi=Ne("ArrayBuffer");var Gc=Ne("Function"),Rs=Da.document&&Da.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Rs!="function"&&(Gc=function(e){return typeof e=="function"||!1});const Re=Gc,Zc=Ne("Object");var $c=Fs&&(!/\[native code\]/.test(String(DataView))||Zc(new DataView(new ArrayBuffer(8)))),Ri=typeof Map<"u"&&Zc(new Map),Ns=Ne("DataView");function Os(e){return e!=null&&Re(e.getInt8)&&Wi(e.buffer)}const Qn=$c?Os:Ns,fn=Ss||Ne("Array");function hn(e,n){return e!=null&&Cs.call(e,n)}var Ti=Ne("Arguments");(function(){Ti(arguments)||(Ti=function(e){return hn(e,"callee")})})();const Zt=Ti;function Yc(e){return!ki(e)&&ks(e)&&!isNaN(parseFloat(e))}function Ni(e){return Bi(e)&&Bs(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<=Ws}}function Qc(e){return function(n){return n==null?void 0:n[e]}}const Pt=Qc("byteLength"),Is=Kc(Pt);var Ls=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Ms(e){return Ua?Ua(e)&&!Qn(e):Is(e)&&Ls.test(Kn.call(e))}const Ii=qc?Ms:Oi(!1),Le=Qc("length");function qs(e){for(var n={},t=e.length,i=0;i<t;++i)n[e[i]]=!0;return{contains:function(c){return n[c]===!0},push:function(c){return n[c]=!0,e.push(c)}}}function Jc(e,n){n=qs(n);var t=Ta.length,i=e.constructor,c=Re(i)&&i.prototype||Ci,r="constructor";for(hn(e,r)&&!n.contains(r)&&n.push(r);t--;)r=Ta[t],r in e&&e[r]!==c[r]&&!n.contains(r)&&n.push(r)}function Be(e){if(!ln(e))return[];if(xa)return xa(e);var n=[];for(var t in e)hn(e,t)&&n.push(t);return Pc&&Jc(e,n),n}function eu(e){if(e==null)return!0;var n=Le(e);return typeof n=="number"&&(fn(e)||Gt(e)||Zt(e))?n===0:Le(Be(e))===0}function Li(e,n){var t=Be(n),i=t.length;if(e==null)return!i;for(var c=Object(e),r=0;r<i;r++){var a=t[r];if(n[a]!==c[a]||!(a in c))return!1}return!0}function we(e){if(e instanceof we)return e;if(!(this instanceof we))return new we(e);this._wrapped=e}we.VERSION=Ai;we.prototype.value=function(){return this._wrapped};we.prototype.valueOf=we.prototype.toJSON=we.prototype.value;we.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,i){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,i)}function nu(e,n,t,i){e instanceof we&&(e=e._wrapped),n instanceof we&&(n=n._wrapped);var c=Kn.call(e);if(c!==Kn.call(n))return!1;if($c&&c=="[object Object]"&&Qn(e)){if(!Qn(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,i)}var r=c==="[object Array]";if(!r&&Ii(e)){var a=Pt(e);if(a!==Pt(n))return!1;if(e.buffer===n.buffer&&e.byteOffset===n.byteOffset)return!0;r=!0}if(!r){if(typeof e!="object"||typeof n!="object")return!1;var o=e.constructor,u=n.constructor;if(o!==u&&!(Re(o)&&o instanceof o&&Re(u)&&u instanceof u)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],i=i||[];for(var l=t.length;l--;)if(t[l]===e)return i[l]===n;if(t.push(e),i.push(n),r){if(l=e.length,l!==n.length)return!1;for(;l--;)if(!wi(e[l],n[l],t,i))return!1}else{var b=Be(e),m;if(l=b.length,Be(n).length!==l)return!1;for(;l--;)if(m=b[l],!(hn(n,m)&&wi(e[m],n[m],t,i)))return!1}return t.pop(),i.pop(),!0}function tu(e,n){return wi(e,n)}function Ln(e){if(!ln(e))return[];var n=[];for(var t in e)n.push(t);return Pc&&Jc(e,n),n}function Mi(e){var n=Le(e);return function(t){if(t==null)return!1;var i=Ln(t);if(Le(i))return!1;for(var c=0;c<n;c++)if(!Re(t[e[c]]))return!1;return e!==au||!Re(t[qi])}}var qi="forEach",ru="has",Pi=["clear","delete"],iu=["get",ru,"set"],Ps=Pi.concat(qi,iu),au=Pi.concat(iu),zs=["add"].concat(Pi,qi,ru);const ou=Ri?Mi(Ps):Ne("Map"),cu=Ri?Mi(au):Ne("WeakMap"),uu=Ri?Mi(zs):Ne("Set"),su=Ne("WeakSet");function En(e){for(var n=Be(e),t=n.length,i=Array(t),c=0;c<t;c++)i[c]=e[n[c]];return i}function du(e){for(var n=Be(e),t=n.length,i=Array(t),c=0;c<t;c++)i[c]=[n[c],e[n[c]]];return i}function zi(e){for(var n={},t=Be(e),i=0,c=t.length;i<c;i++)n[e[t[i]]]=t[i];return n}function Jn(e){var n=[];for(var t in e)Re(e[t])&&n.push(t);return n.sort()}function ji(e,n){return function(t){var i=arguments.length;if(n&&(t=Object(t)),i<2||t==null)return t;for(var c=1;c<i;c++)for(var r=arguments[c],a=e(r),o=a.length,u=0;u<o;u++){var l=a[u];(!n||t[l]===void 0)&&(t[l]=r[l])}return t}}const Xi=ji(Ln),On=ji(Be),Vi=ji(Ln,!0);function js(){return function(){}}function lu(e){if(!ln(e))return{};if(_a)return _a(e);var n=js();n.prototype=e;var t=new n;return n.prototype=null,t}function fu(e,n){var t=lu(e);return n&&On(t,n),t}function hu(e){return ln(e)?fn(e)?e.slice():Xi({},e):e}function pu(e,n){return n(e),e}function Hi(e){return fn(e)?e:[e]}we.toPath=Hi;function it(e){return we.toPath(e)}function Gi(e,n){for(var t=n.length,i=0;i<t;i++){if(e==null)return;e=e[n[i]]}return t?e:void 0}function Zi(e,n,t){var i=Gi(e,it(n));return Fi(i)?t:i}function gu(e,n){n=it(n);for(var t=n.length,i=0;i<t;i++){var c=n[i];if(!hn(e,c))return!1;e=e[c]}return!!t}function $t(e){return e}function wn(e){return e=On({},e),function(n){return Li(n,e)}}function Yt(e){return e=it(e),function(n){return Gi(n,e)}}function at(e,n,t){if(n===void 0)return e;switch(t??3){case 1:return function(i){return e.call(n,i)};case 3:return function(i,c,r){return e.call(n,i,c,r)};case 4:return function(i,c,r,a){return e.call(n,i,c,r,a)}}return function(){return e.apply(n,arguments)}}function mu(e,n,t){return e==null?$t:Re(e)?at(e,n,t):ln(e)&&!fn(e)?wn(e):Yt(e)}function Kt(e,n){return mu(e,n,1/0)}we.iteratee=Kt;function Me(e,n,t){return we.iteratee!==Kt?we.iteratee(e,n):mu(e,n,t)}function bu(e,n,t){n=Me(n,t);for(var i=Be(e),c=i.length,r={},a=0;a<c;a++){var o=i[a];r[o]=n(e[o],o,e)}return r}function $i(){}function yu(e){return e==null?$i:function(n){return Zi(e,n)}}function Du(e,n,t){var i=Array(Math.max(0,e));n=at(n,t,1);for(var c=0;c<e;c++)i[c]=n(c);return i}function zt(e,n){return n==null&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))}const In=Date.now||function(){return new Date().getTime()};function vu(e){var n=function(r){return e[r]},t="(?:"+Be(e).join("|")+")",i=RegExp(t),c=RegExp(t,"g");return function(r){return r=r==null?"":""+r,i.test(r)?r.replace(c,n):r}}const xu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},_u=vu(xu),Xs=zi(xu),Uu=vu(Xs),Tu=we.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var yr=/(.)^/,Vs={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Hs=/\\|'|\r|\n|\u2028|\u2029/g;function Gs(e){return"\\"+Vs[e]}var Zs=/^\s*(\w|\$)+\s*$/;function wu(e,n,t){!n&&t&&(n=t),n=Vi({},n,we.templateSettings);var i=RegExp([(n.escape||yr).source,(n.interpolate||yr).source,(n.evaluate||yr).source].join("|")+"|$","g"),c=0,r="__p+='";e.replace(i,function(l,b,m,g,f){return r+=e.slice(c,f).replace(Hs,Gs),c=f+l.length,b?r+=`'+
2
2
  ((__t=(`+b+`))==null?'':_.escape(__t))+
3
3
  '`:m?r+=`'+
4
4
  ((__t=(`+m+`))==null?'':__t)+
@@ -202,19 +202,19 @@ declare module '@tiptap/core' {
202
202
 
203
203
  declare module '@tiptap/core' {
204
204
  interface Commands<ReturnType> {
205
- imageUpload: {
205
+ imageGifUpload: {
206
206
  /**
207
- * Add an image
207
+ * Add an image gif
208
208
  */
209
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
209
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
210
210
  /**
211
- * Update an image
211
+ * Update an image gif
212
212
  */
213
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
213
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
214
214
  /**
215
215
  * Set image alignment
216
216
  */
217
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
217
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
218
218
  };
219
219
  }
220
220
  }
@@ -222,19 +222,19 @@ declare module '@tiptap/core' {
222
222
 
223
223
  declare module '@tiptap/core' {
224
224
  interface Commands<ReturnType> {
225
- imageGifUpload: {
225
+ imageUpload: {
226
226
  /**
227
- * Add an image gif
227
+ * Add an image
228
228
  */
229
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
229
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
230
230
  /**
231
- * Update an image gif
231
+ * Update an image
232
232
  */
233
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
233
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
234
234
  /**
235
235
  * Set image alignment
236
236
  */
237
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
237
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
238
238
  };
239
239
  }
240
240
  }
@@ -202,19 +202,19 @@ declare module '@tiptap/core' {
202
202
 
203
203
  declare module '@tiptap/core' {
204
204
  interface Commands<ReturnType> {
205
- imageUpload: {
205
+ imageGifUpload: {
206
206
  /**
207
- * Add an image
207
+ * Add an image gif
208
208
  */
209
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
209
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
210
210
  /**
211
- * Update an image
211
+ * Update an image gif
212
212
  */
213
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
213
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
214
214
  /**
215
215
  * Set image alignment
216
216
  */
217
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
217
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
218
218
  };
219
219
  }
220
220
  }
@@ -222,19 +222,19 @@ declare module '@tiptap/core' {
222
222
 
223
223
  declare module '@tiptap/core' {
224
224
  interface Commands<ReturnType> {
225
- imageGifUpload: {
225
+ imageUpload: {
226
226
  /**
227
- * Add an image gif
227
+ * Add an image
228
228
  */
229
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
229
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
230
230
  /**
231
- * Update an image gif
231
+ * Update an image
232
232
  */
233
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
233
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
234
234
  /**
235
235
  * Set image alignment
236
236
  */
237
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
237
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
238
238
  };
239
239
  }
240
240
  }
package/lib/ImportWord.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { E as Ts } from "./index-CXIIg9Sq.js";
2
2
  import { jsxs as ws, jsx as ba } from "react/jsx-runtime";
3
3
  import { useState as Es, useRef as As } from "react";
4
- import { ab as Cs, ac as un, a2 as Fs, ad as Ss, A as Bs, ae as ks } from "./RichTextEditor-BfYZYQb9.js";
4
+ import { aa as Cs, ab as un, ac as Fs, ad as Ss, A as Bs, ae as ks } from "./RichTextEditor-CRDKX-F8.js";
5
5
  import { u as Ws } from "./index-D-DR0FPY.js";
6
6
  var ze = {}, 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, Rs = Ht.push, rt = Ht.slice, Kn = Ai.toString, Ns = Ai.hasOwnProperty, Mc = typeof ArrayBuffer < "u", Os = typeof DataView < "u", Is = Array.isArray, va = Object.keys, xa = Object.create, _a = Mc && ArrayBuffer.isView, Ls = isNaN, Ms = isFinite, qc = !{ toString: null }.propertyIsEnumerable("toString"), Ua = [
7
7
  "valueOf",
package/lib/Indent.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-CSvnpArE.cjs"),t=require("./RichTextEditor-Db6oQoYY.cjs"),r=d.Extension.create({name:"indent",addOptions(){var n;return{...(n=this.parent)==null?void 0:n.call(this),types:["paragraph","heading","blockquote"],minIndent:t.IndentProps.min,maxIndent:t.IndentProps.max,button({editor:e,t:o}){return[{component:t.ActionButton,componentProps:{action:()=>{e.commands.indent()},shortcutKeys:["Tab"],icon:"IndentIncrease",tooltip:o("editor.indent.tooltip")}},{component:t.ActionButton,componentProps:{action:()=>{e.commands.outdent()},shortcutKeys:["Shift","Tab"],icon:"IndentDecrease",tooltip:o("editor.outdent.tooltip")}}]}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:n=>{const e=n.dataset.indent;return(e?Number.parseInt(e,10):0)||0},renderHTML:n=>n.indent?{"data-indent":n.indent}:{}}}}]},addCommands(){return{indent:()=>t.createIndentCommand({delta:t.IndentProps.more,types:this.options.types}),outdent:()=>t.createIndentCommand({delta:t.IndentProps.less,types:this.options.types})}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}});exports.Indent=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-CSvnpArE.cjs"),t=require("./RichTextEditor-ymQlnG9m.cjs"),r=d.Extension.create({name:"indent",addOptions(){var n;return{...(n=this.parent)==null?void 0:n.call(this),types:["paragraph","heading","blockquote"],minIndent:t.IndentProps.min,maxIndent:t.IndentProps.max,button({editor:e,t:o}){return[{component:t.ActionButton,componentProps:{action:()=>{e.commands.indent()},shortcutKeys:["Tab"],icon:"IndentIncrease",tooltip:o("editor.indent.tooltip")}},{component:t.ActionButton,componentProps:{action:()=>{e.commands.outdent()},shortcutKeys:["Shift","Tab"],icon:"IndentDecrease",tooltip:o("editor.outdent.tooltip")}}]}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:n=>{const e=n.dataset.indent;return(e?Number.parseInt(e,10):0)||0},renderHTML:n=>n.indent?{"data-indent":n.indent}:{}}}}]},addCommands(){return{indent:()=>t.createIndentCommand({delta:t.IndentProps.more,types:this.options.types}),outdent:()=>t.createIndentCommand({delta:t.IndentProps.less,types:this.options.types})}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.indent(),"Shift-Tab":()=>this.editor.commands.outdent()}}});exports.Indent=r;
package/lib/Indent.d.cts CHANGED
@@ -193,19 +193,19 @@ declare module '@tiptap/core' {
193
193
 
194
194
  declare module '@tiptap/core' {
195
195
  interface Commands<ReturnType> {
196
- imageUpload: {
196
+ imageGifUpload: {
197
197
  /**
198
- * Add an image
198
+ * Add an image gif
199
199
  */
200
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
200
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
201
201
  /**
202
- * Update an image
202
+ * Update an image gif
203
203
  */
204
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
204
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
205
205
  /**
206
206
  * Set image alignment
207
207
  */
208
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
208
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
209
209
  };
210
210
  }
211
211
  }
@@ -213,19 +213,19 @@ declare module '@tiptap/core' {
213
213
 
214
214
  declare module '@tiptap/core' {
215
215
  interface Commands<ReturnType> {
216
- imageGifUpload: {
216
+ imageUpload: {
217
217
  /**
218
- * Add an image gif
218
+ * Add an image
219
219
  */
220
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
220
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
221
221
  /**
222
- * Update an image gif
222
+ * Update an image
223
223
  */
224
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
224
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
225
225
  /**
226
226
  * Set image alignment
227
227
  */
228
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
228
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
229
229
  };
230
230
  }
231
231
  }
package/lib/Indent.d.ts CHANGED
@@ -193,19 +193,19 @@ declare module '@tiptap/core' {
193
193
 
194
194
  declare module '@tiptap/core' {
195
195
  interface Commands<ReturnType> {
196
- imageUpload: {
196
+ imageGifUpload: {
197
197
  /**
198
- * Add an image
198
+ * Add an image gif
199
199
  */
200
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
200
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
201
201
  /**
202
- * Update an image
202
+ * Update an image gif
203
203
  */
204
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
204
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
205
205
  /**
206
206
  * Set image alignment
207
207
  */
208
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
208
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
209
209
  };
210
210
  }
211
211
  }
@@ -213,19 +213,19 @@ declare module '@tiptap/core' {
213
213
 
214
214
  declare module '@tiptap/core' {
215
215
  interface Commands<ReturnType> {
216
- imageGifUpload: {
216
+ imageUpload: {
217
217
  /**
218
- * Add an image gif
218
+ * Add an image
219
219
  */
220
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
220
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
221
221
  /**
222
- * Update an image gif
222
+ * Update an image
223
223
  */
224
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
224
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
225
225
  /**
226
226
  * Set image alignment
227
227
  */
228
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
228
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
229
229
  };
230
230
  }
231
231
  }
package/lib/Indent.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { E as s } from "./index-CXIIg9Sq.js";
2
- import { c as d, I as e, A as r } from "./RichTextEditor-BfYZYQb9.js";
2
+ import { c as d, I as e, A as r } from "./RichTextEditor-CRDKX-F8.js";
3
3
  const p = /* @__PURE__ */ s.create({
4
4
  name: "indent",
5
5
  addOptions() {
package/lib/Italic.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CSvnpArE.cjs"),r=require("./RichTextEditor-Db6oQoYY.cjs"),a=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,i=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,o=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,l=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,c=e.Mark.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",e.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[e.markInputRule({find:a,type:this.type}),e.markInputRule({find:o,type:this.type})]},addPasteRules(){return[e.markPasteRule({find:i,type:this.type}),e.markPasteRule({find:l,type:this.type})]}}),u=c.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button({editor:s,t:n}){return{component:r.ActionButton,componentProps:{action:()=>s.commands.toggleItalic(),isActive:()=>s.isActive("italic")||!1,disabled:!1,shortcutKeys:["mod","I"],icon:"Italic",tooltip:n("editor.italic.tooltip")}}}}}});exports.Italic=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CSvnpArE.cjs"),r=require("./RichTextEditor-ymQlnG9m.cjs"),a=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,i=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,o=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,l=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,c=e.Mark.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",e.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[e.markInputRule({find:a,type:this.type}),e.markInputRule({find:o,type:this.type})]},addPasteRules(){return[e.markPasteRule({find:i,type:this.type}),e.markPasteRule({find:l,type:this.type})]}}),u=c.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button({editor:s,t:n}){return{component:r.ActionButton,componentProps:{action:()=>s.commands.toggleItalic(),isActive:()=>s.isActive("italic")||!1,disabled:!1,shortcutKeys:["mod","I"],icon:"Italic",tooltip:n("editor.italic.tooltip")}}}}}});exports.Italic=u;
package/lib/Italic.d.cts CHANGED
@@ -192,19 +192,19 @@ declare module '@tiptap/core' {
192
192
 
193
193
  declare module '@tiptap/core' {
194
194
  interface Commands<ReturnType> {
195
- imageUpload: {
195
+ imageGifUpload: {
196
196
  /**
197
- * Add an image
197
+ * Add an image gif
198
198
  */
199
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
199
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
200
200
  /**
201
- * Update an image
201
+ * Update an image gif
202
202
  */
203
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
203
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
204
204
  /**
205
205
  * Set image alignment
206
206
  */
207
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
207
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
208
208
  };
209
209
  }
210
210
  }
@@ -212,19 +212,19 @@ declare module '@tiptap/core' {
212
212
 
213
213
  declare module '@tiptap/core' {
214
214
  interface Commands<ReturnType> {
215
- imageGifUpload: {
215
+ imageUpload: {
216
216
  /**
217
- * Add an image gif
217
+ * Add an image
218
218
  */
219
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
219
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
220
220
  /**
221
- * Update an image gif
221
+ * Update an image
222
222
  */
223
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
223
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
224
224
  /**
225
225
  * Set image alignment
226
226
  */
227
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
227
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
228
228
  };
229
229
  }
230
230
  }
package/lib/Italic.d.ts CHANGED
@@ -192,19 +192,19 @@ declare module '@tiptap/core' {
192
192
 
193
193
  declare module '@tiptap/core' {
194
194
  interface Commands<ReturnType> {
195
- imageUpload: {
195
+ imageGifUpload: {
196
196
  /**
197
- * Add an image
197
+ * Add an image gif
198
198
  */
199
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
199
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
200
200
  /**
201
- * Update an image
201
+ * Update an image gif
202
202
  */
203
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
203
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
204
204
  /**
205
205
  * Set image alignment
206
206
  */
207
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
207
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
208
208
  };
209
209
  }
210
210
  }
@@ -212,19 +212,19 @@ declare module '@tiptap/core' {
212
212
 
213
213
  declare module '@tiptap/core' {
214
214
  interface Commands<ReturnType> {
215
- imageGifUpload: {
215
+ imageUpload: {
216
216
  /**
217
- * Add an image gif
217
+ * Add an image
218
218
  */
219
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
219
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
220
220
  /**
221
- * Update an image gif
221
+ * Update an image
222
222
  */
223
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
223
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
224
224
  /**
225
225
  * Set image alignment
226
226
  */
227
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
227
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
228
228
  };
229
229
  }
230
230
  }
package/lib/Italic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { M as a, c as s, d as n, m as i } from "./index-CXIIg9Sq.js";
2
- import { A as o } from "./RichTextEditor-BfYZYQb9.js";
2
+ import { A as o } from "./RichTextEditor-CRDKX-F8.js";
3
3
  const l = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, c = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, d = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, u = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, m = a.create({
4
4
  name: "italic",
5
5
  addOptions() {
package/lib/Katex.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CSvnpArE.cjs"),f=require("./dom-dataset-DmsCLv1q.cjs"),n=require("react/jsx-runtime"),c=require("react"),b=require("katex"),j=require("lucide-react"),u=require("./RichTextEditor-Db6oQoYY.cjs"),w=require("./textarea-ILk3QoYy.cjs"),k=require("./index-Dz3YxLE7.cjs");function $({editor:e,...t}){const{t:s}=k.useLocale(),o=u.useAttributes(e,x.name,{text:"",defaultShowPicker:!1}),{text:i,defaultShowPicker:r}=o,[a,d]=c.useState(""),g=c.useCallback(()=>{e.chain().focus().setKatex({text:a}).run(),d("")},[e,a]);c.useEffect(()=>{r&&e.chain().updateAttributes(x.name,{defaultShowPicker:!1}).focus().run()},[e,r]);const h=c.useMemo(()=>{try{return b.renderToString(`${a}`)}catch{return a}},[a]),m=c.useMemo(()=>`${a}`.trim()?n.jsx("span",{contentEditable:!1,dangerouslySetInnerHTML:{__html:h||""}}):null,[a,h]);return n.jsxs(u.Popover,{modal:!0,children:[n.jsx(u.PopoverTrigger,{asChild:!0,children:n.jsx(u.ActionButton,{icon:t==null?void 0:t.icon,tooltip:t==null?void 0:t.tooltip})}),n.jsxs(u.PopoverContent,{align:"start",className:"richtext-size-full richtext-p-2",hideWhenDetached:!0,side:"bottom",children:[n.jsx(u.Label,{className:"richtext-mb-[6px]",children:s("editor.formula.dialog.text")}),n.jsx("div",{className:"richtext-mb-[16px] richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5",children:n.jsx("div",{className:"richtext-relative richtext-w-full richtext-max-w-sm",children:n.jsx(w.Textarea,{autoFocus:!0,className:"richtext-w-full",defaultValue:i,onChange:p=>d(p.target.value),placeholder:"Text",required:!0,rows:3,value:a})})}),m&&n.jsx("div",{className:"richtext-my-[10px] richtext-max-w-[286px] richtext-overflow-auto richtext-whitespace-nowrap richtext-rounded-[6px] !richtext-border richtext-p-[10px]",children:m}),n.jsxs("div",{className:"richtext-flex richtext-items-center richtext-justify-between richtext-gap-[6px]",children:[n.jsx(u.Button,{className:"richtext-flex-1",onClick:g,children:"Submit"}),n.jsx("a",{href:"https://katex.org/docs/supported",rel:"noreferrer noopener",target:"_blank",children:n.jsx(j.HelpCircle,{size:16})})]})]})]})}function T(e,t=1){let s=0,o=0,i=0;if(e.startsWith("rgb")){const r=e.replace(/\s/g,"").match(/rgb\((.*)\)$/)[1].split(",");s=+r[0],o=+r[1],i=+r[2]}else if(e.startsWith("#")){let r=e.replace("#","");r.length===3&&(r=`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`),s=Number.parseInt(r.substring(0,2),16),o=Number.parseInt(r.substring(2,4),16),i=Number.parseInt(r.substring(4,6),16)}else return e;return t>1&&t<=100&&(t=t/100),`rgba(${s},${o},${i},${t})`}function v({node:e}){const t=u.useTheme(),{text:s}=e.attrs,o=c.useMemo(()=>{const a="rgb(254, 242, 237)";return t==="dark"?T(a,.75):a},[t]),i=c.useMemo(()=>{try{return b.renderToString(`${s}`)}catch{return s}},[s]),r=c.useMemo(()=>s.trim()?n.jsx("span",{contentEditable:!1,dangerouslySetInnerHTML:{__html:i}}):n.jsx("span",{contentEditable:!1,children:"Not enter a formula"}),[s,i]);return n.jsx(f.NodeViewWrapper,{style:{display:"inline-block",backgroundColor:o},as:"span",children:r})}function N(e){return t=>t.getAttribute(e)}const x=l.Node.create({name:"katex",group:"inline",inline:!0,defining:!0,draggable:!0,selectable:!0,addOptions(){return{HTMLAttributes:{class:"katex"},button:({editor:e,t})=>({component:$,componentProps:{editor:e,action:()=>!0,isActive:()=>!1,disabled:!1,icon:"KatexIcon",tooltip:t("editor.katex.tooltip")}})}},addAttributes(){return{text:{default:"",parseHTML:N("text")},defaultShowPicker:{default:!1}}},parseHTML(){return[{tag:"span.katex"}]},renderHTML({HTMLAttributes:e}){return["span",l.mergeAttributes(this.options&&this.options.HTMLAttributes||{},e)]},addCommands(){return{setKatex:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[l.nodeInputRule({find:/^\$katex\$$/,type:this.type,getAttributes:()=>({defaultShowPicker:!0})})]},addNodeView(){return f.ReactNodeViewRenderer(v)}});exports.Katex=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CSvnpArE.cjs"),f=require("./dom-dataset-Cuy-pIfj.cjs"),n=require("react/jsx-runtime"),c=require("react"),b=require("katex"),j=require("lucide-react"),u=require("./RichTextEditor-ymQlnG9m.cjs"),w=require("./textarea-Ci1tHD6V.cjs"),k=require("./index-Dz3YxLE7.cjs");function $({editor:e,...t}){const{t:s}=k.useLocale(),o=u.useAttributes(e,x.name,{text:"",defaultShowPicker:!1}),{text:i,defaultShowPicker:r}=o,[a,d]=c.useState(""),g=c.useCallback(()=>{e.chain().focus().setKatex({text:a}).run(),d("")},[e,a]);c.useEffect(()=>{r&&e.chain().updateAttributes(x.name,{defaultShowPicker:!1}).focus().run()},[e,r]);const h=c.useMemo(()=>{try{return b.renderToString(`${a}`)}catch{return a}},[a]),m=c.useMemo(()=>`${a}`.trim()?n.jsx("span",{contentEditable:!1,dangerouslySetInnerHTML:{__html:h||""}}):null,[a,h]);return n.jsxs(u.Popover,{modal:!0,children:[n.jsx(u.PopoverTrigger,{asChild:!0,children:n.jsx(u.ActionButton,{icon:t==null?void 0:t.icon,tooltip:t==null?void 0:t.tooltip})}),n.jsxs(u.PopoverContent,{align:"start",className:"richtext-size-full richtext-p-2",hideWhenDetached:!0,side:"bottom",children:[n.jsx(u.Label,{className:"richtext-mb-[6px]",children:s("editor.formula.dialog.text")}),n.jsx("div",{className:"richtext-mb-[16px] richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5",children:n.jsx("div",{className:"richtext-relative richtext-w-full richtext-max-w-sm",children:n.jsx(w.Textarea,{autoFocus:!0,className:"richtext-w-full",defaultValue:i,onChange:p=>d(p.target.value),placeholder:"Text",required:!0,rows:3,value:a})})}),m&&n.jsx("div",{className:"richtext-my-[10px] richtext-max-w-[286px] richtext-overflow-auto richtext-whitespace-nowrap richtext-rounded-[6px] !richtext-border richtext-p-[10px]",children:m}),n.jsxs("div",{className:"richtext-flex richtext-items-center richtext-justify-between richtext-gap-[6px]",children:[n.jsx(u.Button,{className:"richtext-flex-1",onClick:g,children:"Submit"}),n.jsx("a",{href:"https://katex.org/docs/supported",rel:"noreferrer noopener",target:"_blank",children:n.jsx(j.HelpCircle,{size:16})})]})]})]})}function T(e,t=1){let s=0,o=0,i=0;if(e.startsWith("rgb")){const r=e.replace(/\s/g,"").match(/rgb\((.*)\)$/)[1].split(",");s=+r[0],o=+r[1],i=+r[2]}else if(e.startsWith("#")){let r=e.replace("#","");r.length===3&&(r=`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`),s=Number.parseInt(r.substring(0,2),16),o=Number.parseInt(r.substring(2,4),16),i=Number.parseInt(r.substring(4,6),16)}else return e;return t>1&&t<=100&&(t=t/100),`rgba(${s},${o},${i},${t})`}function v({node:e}){const t=u.useTheme(),{text:s}=e.attrs,o=c.useMemo(()=>{const a="rgb(254, 242, 237)";return t==="dark"?T(a,.75):a},[t]),i=c.useMemo(()=>{try{return b.renderToString(`${s}`)}catch{return s}},[s]),r=c.useMemo(()=>s.trim()?n.jsx("span",{contentEditable:!1,dangerouslySetInnerHTML:{__html:i}}):n.jsx("span",{contentEditable:!1,children:"Not enter a formula"}),[s,i]);return n.jsx(f.NodeViewWrapper,{style:{display:"inline-block",backgroundColor:o},as:"span",children:r})}function N(e){return t=>t.getAttribute(e)}const x=l.Node.create({name:"katex",group:"inline",inline:!0,defining:!0,draggable:!0,selectable:!0,addOptions(){return{HTMLAttributes:{class:"katex"},button:({editor:e,t})=>({component:$,componentProps:{editor:e,action:()=>!0,isActive:()=>!1,disabled:!1,icon:"KatexIcon",tooltip:t("editor.katex.tooltip")}})}},addAttributes(){return{text:{default:"",parseHTML:N("text")},defaultShowPicker:{default:!1}}},parseHTML(){return[{tag:"span.katex"}]},renderHTML({HTMLAttributes:e}){return["span",l.mergeAttributes(this.options&&this.options.HTMLAttributes||{},e)]},addCommands(){return{setKatex:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[l.nodeInputRule({find:/^\$katex\$$/,type:this.type,getAttributes:()=>({defaultShowPicker:!0})})]},addNodeView(){return f.ReactNodeViewRenderer(v)}});exports.Katex=x;
package/lib/Katex.d.cts CHANGED
@@ -128,19 +128,19 @@ declare module '@tiptap/core' {
128
128
 
129
129
  declare module '@tiptap/core' {
130
130
  interface Commands<ReturnType> {
131
- imageUpload: {
131
+ imageGifUpload: {
132
132
  /**
133
- * Add an image
133
+ * Add an image gif
134
134
  */
135
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
135
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
136
136
  /**
137
- * Update an image
137
+ * Update an image gif
138
138
  */
139
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
139
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
140
140
  /**
141
141
  * Set image alignment
142
142
  */
143
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
143
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
144
144
  };
145
145
  }
146
146
  }
@@ -148,19 +148,19 @@ declare module '@tiptap/core' {
148
148
 
149
149
  declare module '@tiptap/core' {
150
150
  interface Commands<ReturnType> {
151
- imageGifUpload: {
151
+ imageUpload: {
152
152
  /**
153
- * Add an image gif
153
+ * Add an image
154
154
  */
155
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
155
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
156
156
  /**
157
- * Update an image gif
157
+ * Update an image
158
158
  */
159
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
159
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
160
160
  /**
161
161
  * Set image alignment
162
162
  */
163
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
163
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
164
164
  };
165
165
  }
166
166
  }
package/lib/Katex.d.ts CHANGED
@@ -128,19 +128,19 @@ declare module '@tiptap/core' {
128
128
 
129
129
  declare module '@tiptap/core' {
130
130
  interface Commands<ReturnType> {
131
- imageUpload: {
131
+ imageGifUpload: {
132
132
  /**
133
- * Add an image
133
+ * Add an image gif
134
134
  */
135
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
135
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
136
136
  /**
137
- * Update an image
137
+ * Update an image gif
138
138
  */
139
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
139
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
140
140
  /**
141
141
  * Set image alignment
142
142
  */
143
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
143
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
144
144
  };
145
145
  }
146
146
  }
@@ -148,19 +148,19 @@ declare module '@tiptap/core' {
148
148
 
149
149
  declare module '@tiptap/core' {
150
150
  interface Commands<ReturnType> {
151
- imageGifUpload: {
151
+ imageUpload: {
152
152
  /**
153
- * Add an image gif
153
+ * Add an image
154
154
  */
155
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
155
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
156
156
  /**
157
- * Update an image gif
157
+ * Update an image
158
158
  */
159
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
159
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
160
160
  /**
161
161
  * Set image alignment
162
162
  */
163
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
163
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
164
164
  };
165
165
  }
166
166
  }
package/lib/Katex.js CHANGED
@@ -4,8 +4,8 @@ import { jsx as n, jsxs as u } from "react/jsx-runtime";
4
4
  import { useState as T, useCallback as $, useEffect as v, useMemo as c } from "react";
5
5
  import x from "katex";
6
6
  import { HelpCircle as A } from "lucide-react";
7
- import { O as S, P as L, m as P, A as C, n as H, L as I, B as M, Q as y } from "./RichTextEditor-BfYZYQb9.js";
8
- import { T as K } from "./textarea-BUlQB7hI.js";
7
+ import { O as S, P as L, m as P, A as C, n as H, L as I, B as M, Q as y } from "./RichTextEditor-CRDKX-F8.js";
8
+ import { T as K } from "./textarea-CtL8w6IS.js";
9
9
  import { u as R } from "./index-D-DR0FPY.js";
10
10
  function V({ editor: t, ...e }) {
11
11
  const { t: a } = R(), o = S(t, h.name, {