reactjs-tiptap-editor 0.3.29 → 0.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/lib/{ActionMenuButton-Cs9DM_16.js → ActionMenuButton-B6fitGKu.js} +1 -1
  2. package/lib/{ActionMenuButton-5Y8QcYxD.cjs → ActionMenuButton-wiDnIxE2.cjs} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +19 -19
  5. package/lib/Attachment.d.ts +19 -19
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +19 -19
  9. package/lib/Blockquote.d.ts +19 -19
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +19 -19
  13. package/lib/Bold.d.ts +19 -19
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +19 -19
  17. package/lib/BulletList.d.ts +19 -19
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +19 -19
  21. package/lib/Clear.d.ts +19 -19
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +19 -19
  25. package/lib/Code.d.ts +19 -19
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +19 -19
  29. package/lib/CodeBlock.d.ts +19 -19
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +19 -19
  33. package/lib/CodeView.d.ts +19 -19
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +19 -19
  37. package/lib/Color.d.ts +19 -19
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +19 -19
  40. package/lib/Document.d.ts +19 -19
  41. package/lib/{Drawer-BCmNLh31.js → Drawer-BKTU9CpU.js} +1 -1
  42. package/lib/{Drawer-DCAp7eZF.cjs → Drawer-CmoEF-Zg.cjs} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +19 -19
  45. package/lib/Drawer.d.ts +19 -19
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +19 -19
  49. package/lib/Emoji.d.ts +19 -19
  50. package/lib/Emoji.js +1 -1
  51. package/lib/{Excalidraw-CYPcjYZB.js → Excalidraw-CM74U5tG.js} +1 -1
  52. package/lib/{Excalidraw-BI50RQL-.cjs → Excalidraw-DAPP9qgY.cjs} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +19 -19
  55. package/lib/Excalidraw.d.ts +19 -19
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +19 -19
  59. package/lib/ExportPdf.d.ts +19 -19
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +19 -19
  63. package/lib/ExportWord.d.ts +19 -19
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +19 -19
  67. package/lib/FontFamily.d.ts +19 -19
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +19 -19
  71. package/lib/FontSize.d.ts +19 -19
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +19 -19
  75. package/lib/FormatPainter.d.ts +19 -19
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +19 -19
  79. package/lib/Heading.d.ts +19 -19
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +19 -19
  83. package/lib/Highlight.d.ts +19 -19
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +19 -19
  87. package/lib/History.d.ts +19 -19
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +19 -19
  91. package/lib/HorizontalRule.d.ts +19 -19
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +19 -19
  95. package/lib/Iframe.d.ts +19 -19
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +19 -19
  99. package/lib/Image.d.ts +19 -19
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +19 -19
  103. package/lib/ImageGif.d.ts +19 -19
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +19 -19
  107. package/lib/ImportWord.d.ts +19 -19
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +19 -19
  111. package/lib/Indent.d.ts +19 -19
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +19 -19
  115. package/lib/Italic.d.ts +19 -19
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +19 -19
  119. package/lib/Katex.d.ts +19 -19
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +19 -19
  123. package/lib/LineHeight.d.ts +19 -19
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +19 -19
  127. package/lib/Link.d.ts +19 -19
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +19 -19
  130. package/lib/ListItem.d.ts +19 -19
  131. package/lib/Mention.d.cts +19 -19
  132. package/lib/Mention.d.ts +19 -19
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +19 -19
  135. package/lib/Mermaid.d.ts +19 -19
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +19 -19
  139. package/lib/MoreMark.d.ts +19 -19
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +19 -19
  143. package/lib/MultiColumn.d.ts +19 -19
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +19 -19
  147. package/lib/OrderedList.d.ts +19 -19
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-e6q30rbV.js → RichTextEditor-BQN2eLD_.js} +3 -5
  150. package/lib/{RichTextEditor-DsUcQSbm.cjs → RichTextEditor-C8Sm1E6J.cjs} +1 -1
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +19 -19
  153. package/lib/SearchAndReplace.d.ts +19 -19
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +19 -19
  156. package/lib/Selection.d.ts +19 -19
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +19 -19
  159. package/lib/SlashCommand.d.ts +19 -19
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +19 -19
  163. package/lib/Strike.d.ts +19 -19
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +19 -19
  167. package/lib/SubAndSuperScript.d.ts +19 -19
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +19 -19
  171. package/lib/Table.d.ts +19 -19
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +19 -19
  175. package/lib/TableOfContent.d.ts +19 -19
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +19 -19
  179. package/lib/TaskList.d.ts +19 -19
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +19 -19
  183. package/lib/TextAlign.d.ts +19 -19
  184. package/lib/TextAlign.js +1 -1
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +19 -19
  187. package/lib/TextBubble.d.ts +19 -19
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +19 -19
  191. package/lib/TextDirection.d.ts +19 -19
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +19 -19
  195. package/lib/TextUnderline.d.ts +19 -19
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +19 -19
  198. package/lib/TrailingNode.d.ts +19 -19
  199. package/lib/{Twitter-D2Osj8qP.cjs → Twitter-CL2pu4QM.cjs} +1 -1
  200. package/lib/{Twitter-Wb7cD3M-.js → Twitter-Dg6WWauX.js} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +19 -19
  203. package/lib/Twitter.d.ts +19 -19
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +19 -19
  207. package/lib/Video.d.ts +19 -19
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +19 -19
  211. package/lib/bubble-extra.d.ts +19 -19
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +19 -19
  215. package/lib/index.d.ts +19 -19
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +19 -19
  218. package/lib/locale-bundle.d.ts +19 -19
  219. package/lib/style.css +1 -1
  220. package/lib/{textarea-Csmx5x-_.js → textarea-BglwYF6b.js} +1 -1
  221. package/lib/{textarea-BVbzd9-k.cjs → textarea-D5WVZMgt.cjs} +1 -1
  222. package/package.json +1 -1
package/lib/Mermaid.d.ts CHANGED
@@ -135,8 +135,8 @@ declare module '@tiptap/core' {
135
135
 
136
136
  declare module '@tiptap/core' {
137
137
  interface Commands<ReturnType> {
138
- exportPdf: {
139
- exportToPdf: () => ReturnType;
138
+ excalidraw: {
139
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
140
140
  };
141
141
  }
142
142
  }
@@ -144,8 +144,8 @@ declare module '@tiptap/core' {
144
144
 
145
145
  declare module '@tiptap/core' {
146
146
  interface Commands<ReturnType> {
147
- excalidraw: {
148
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
147
+ exportPdf: {
148
+ exportToPdf: () => ReturnType;
149
149
  };
150
150
  }
151
151
  }
@@ -187,21 +187,6 @@ declare module '@tiptap/core' {
187
187
  }
188
188
 
189
189
 
190
- declare module '@tiptap/core' {
191
- interface Commands<ReturnType> {
192
- iframe: {
193
- /**
194
- * Add an iframe
195
- */
196
- setIframe: (options: {
197
- src: string;
198
- service: string;
199
- }) => ReturnType;
200
- };
201
- }
202
- }
203
-
204
-
205
190
  declare module '@tiptap/core' {
206
191
  interface Commands<ReturnType> {
207
192
  imageUpload: {
@@ -222,6 +207,21 @@ declare module '@tiptap/core' {
222
207
  }
223
208
 
224
209
 
210
+ declare module '@tiptap/core' {
211
+ interface Commands<ReturnType> {
212
+ iframe: {
213
+ /**
214
+ * Add an iframe
215
+ */
216
+ setIframe: (options: {
217
+ src: string;
218
+ service: string;
219
+ }) => ReturnType;
220
+ };
221
+ }
222
+ }
223
+
224
+
225
225
  declare module '@tiptap/core' {
226
226
  interface Commands<ReturnType> {
227
227
  imageGifUpload: {
package/lib/Mermaid.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { h as $, m as X } from "./index-DI9T3iLd.js";
2
- import { w as Z, x as J, A as K, y as Y, z as Q, F as tt, B as et, G as rt, J as V, K as it, N as at } from "./RichTextEditor-e6q30rbV.js";
2
+ import { w as Z, x as J, A as K, y as Y, z as Q, F as tt, B as et, G as rt, J as V, K as it, N as at } from "./RichTextEditor-BQN2eLD_.js";
3
3
  import { N as st, R as nt } from "./dom-dataset-Di3tIRrR.js";
4
4
  import { jsxs as C, jsx as o } from "react/jsx-runtime";
5
5
  import { useState as g, useRef as ot, useCallback as y, useEffect as E, useMemo as k } from "react";
6
6
  import { s as lt, i as ct } from "./shortId-WJVkrvml.js";
7
- import { T as dt } from "./textarea-Csmx5x-_.js";
7
+ import { T as dt } from "./textarea-BglwYF6b.js";
8
8
  import { I as q, i as ht, j as W } from "./index-CsK90iVd.js";
9
9
  const j = `graph TB
10
10
  a-->b`, ut = ({ editor: r, upload: t }) => {
package/lib/MoreMark.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index-ByRfqzMr.cjs"),d=require("./index-Z4b9rzn-.cjs"),c=require("react/jsx-runtime"),m=require("react"),s=require("./RichTextEditor-DsUcQSbm.cjs");function g(t){var n;const i=m.useMemo(()=>{var r;const e=(r=t==null?void 0:t.items)==null?void 0:r.find(u=>u.isActive());return e&&!e.default?{...e,icon:e!=null&&e.icon?e==null?void 0:e.icon:t==null?void 0:t.icon}:{title:t.tooltip,icon:t.icon,isActive:()=>!1}},[t]);return c.jsxs(s.DropdownMenu,{children:[c.jsx(s.DropdownMenuTrigger,{asChild:!0,disabled:t==null?void 0:t.disabled,children:c.jsx(s.ActionButton,{customClass:"!richtext-w-12 richtext-h-12",disabled:t==null?void 0:t.disabled,icon:t==null?void 0:t.icon,tooltip:t==null?void 0:t.tooltip,children:c.jsx(s.MenuDown,{className:"richtext-size-3 richtext-text-gray-500"})})}),c.jsx(s.DropdownMenuContent,{className:"w-full",children:(n=t==null?void 0:t.items)==null?void 0:n.map((e,o)=>c.jsxs(s.DropdownMenuCheckboxItem,{checked:i.title===e.title,className:"richtext-flex richtext-items-center richtext-gap-3",onClick:e.action,children:[c.jsx(s.IconComponent,{name:e==null?void 0:e.icon}),c.jsx("span",{className:"richtext-ml-1",children:e.title}),!!(e!=null&&e.shortcutKeys)&&c.jsx("span",{className:"richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",children:s.getShortcutKeys(e.shortcutKeys)})]},`more-mark-${o}`))})]})}const f=b.Extension.create({name:"moreMark",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button({editor:i,extension:n,t:e}){var l,h;const o=n.options.subscript,r=n.options.superscript,u={action:()=>i.commands.toggleSubscript(),isActive:()=>i.isActive("subscript")||!1,disabled:!i.can().toggleSubscript(),icon:"Subscript",title:e("editor.subscript.tooltip"),shortcutKeys:((l=n.options.shortcutKeys)==null?void 0:l[0])??["mod","."]},x={action:()=>i.commands.toggleSuperscript(),isActive:()=>i.isActive("superscript")||!1,disabled:!i.can().toggleSuperscript(),icon:"Superscript",title:e("editor.superscript.tooltip"),shortcutKeys:((h=n.options.shortcutKeys)==null?void 0:h[1])??["mod",","]},a=[];return o!==!1&&a.push(u),r!==!1&&a.push(x),{component:g,componentProps:{icon:"Type",tooltip:e("editor.moremark"),disabled:!i.isEditable,items:a}}}}},addExtensions(){const t=[];return this.options.subscript!==!1&&t.push(d.Subscript.configure(this.options.subscript)),this.options.superscript!==!1&&t.push(d.Superscript.configure(this.options.superscript)),t}});exports.MoreMark=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index-ByRfqzMr.cjs"),d=require("./index-Z4b9rzn-.cjs"),c=require("react/jsx-runtime"),m=require("react"),s=require("./RichTextEditor-C8Sm1E6J.cjs");function g(t){var n;const i=m.useMemo(()=>{var r;const e=(r=t==null?void 0:t.items)==null?void 0:r.find(u=>u.isActive());return e&&!e.default?{...e,icon:e!=null&&e.icon?e==null?void 0:e.icon:t==null?void 0:t.icon}:{title:t.tooltip,icon:t.icon,isActive:()=>!1}},[t]);return c.jsxs(s.DropdownMenu,{children:[c.jsx(s.DropdownMenuTrigger,{asChild:!0,disabled:t==null?void 0:t.disabled,children:c.jsx(s.ActionButton,{customClass:"!richtext-w-12 richtext-h-12",disabled:t==null?void 0:t.disabled,icon:t==null?void 0:t.icon,tooltip:t==null?void 0:t.tooltip,children:c.jsx(s.MenuDown,{className:"richtext-size-3 richtext-text-gray-500"})})}),c.jsx(s.DropdownMenuContent,{className:"w-full",children:(n=t==null?void 0:t.items)==null?void 0:n.map((e,o)=>c.jsxs(s.DropdownMenuCheckboxItem,{checked:i.title===e.title,className:"richtext-flex richtext-items-center richtext-gap-3",onClick:e.action,children:[c.jsx(s.IconComponent,{name:e==null?void 0:e.icon}),c.jsx("span",{className:"richtext-ml-1",children:e.title}),!!(e!=null&&e.shortcutKeys)&&c.jsx("span",{className:"richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",children:s.getShortcutKeys(e.shortcutKeys)})]},`more-mark-${o}`))})]})}const f=b.Extension.create({name:"moreMark",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button({editor:i,extension:n,t:e}){var l,h;const o=n.options.subscript,r=n.options.superscript,u={action:()=>i.commands.toggleSubscript(),isActive:()=>i.isActive("subscript")||!1,disabled:!i.can().toggleSubscript(),icon:"Subscript",title:e("editor.subscript.tooltip"),shortcutKeys:((l=n.options.shortcutKeys)==null?void 0:l[0])??["mod","."]},x={action:()=>i.commands.toggleSuperscript(),isActive:()=>i.isActive("superscript")||!1,disabled:!i.can().toggleSuperscript(),icon:"Superscript",title:e("editor.superscript.tooltip"),shortcutKeys:((h=n.options.shortcutKeys)==null?void 0:h[1])??["mod",","]},a=[];return o!==!1&&a.push(u),r!==!1&&a.push(x),{component:g,componentProps:{icon:"Type",tooltip:e("editor.moremark"),disabled:!i.isEditable,items:a}}}}},addExtensions(){const t=[];return this.options.subscript!==!1&&t.push(d.Subscript.configure(this.options.subscript)),this.options.superscript!==!1&&t.push(d.Superscript.configure(this.options.superscript)),t}});exports.MoreMark=f;
@@ -146,8 +146,8 @@ declare module '@tiptap/core' {
146
146
 
147
147
  declare module '@tiptap/core' {
148
148
  interface Commands<ReturnType> {
149
- exportPdf: {
150
- exportToPdf: () => ReturnType;
149
+ excalidraw: {
150
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
151
151
  };
152
152
  }
153
153
  }
@@ -155,8 +155,8 @@ declare module '@tiptap/core' {
155
155
 
156
156
  declare module '@tiptap/core' {
157
157
  interface Commands<ReturnType> {
158
- excalidraw: {
159
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
158
+ exportPdf: {
159
+ exportToPdf: () => ReturnType;
160
160
  };
161
161
  }
162
162
  }
@@ -198,21 +198,6 @@ declare module '@tiptap/core' {
198
198
  }
199
199
 
200
200
 
201
- declare module '@tiptap/core' {
202
- interface Commands<ReturnType> {
203
- iframe: {
204
- /**
205
- * Add an iframe
206
- */
207
- setIframe: (options: {
208
- src: string;
209
- service: string;
210
- }) => ReturnType;
211
- };
212
- }
213
- }
214
-
215
-
216
201
  declare module '@tiptap/core' {
217
202
  interface Commands<ReturnType> {
218
203
  imageUpload: {
@@ -233,6 +218,21 @@ declare module '@tiptap/core' {
233
218
  }
234
219
 
235
220
 
221
+ declare module '@tiptap/core' {
222
+ interface Commands<ReturnType> {
223
+ iframe: {
224
+ /**
225
+ * Add an iframe
226
+ */
227
+ setIframe: (options: {
228
+ src: string;
229
+ service: string;
230
+ }) => ReturnType;
231
+ };
232
+ }
233
+ }
234
+
235
+
236
236
  declare module '@tiptap/core' {
237
237
  interface Commands<ReturnType> {
238
238
  imageGifUpload: {
package/lib/MoreMark.d.ts CHANGED
@@ -146,8 +146,8 @@ declare module '@tiptap/core' {
146
146
 
147
147
  declare module '@tiptap/core' {
148
148
  interface Commands<ReturnType> {
149
- exportPdf: {
150
- exportToPdf: () => ReturnType;
149
+ excalidraw: {
150
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
151
151
  };
152
152
  }
153
153
  }
@@ -155,8 +155,8 @@ declare module '@tiptap/core' {
155
155
 
156
156
  declare module '@tiptap/core' {
157
157
  interface Commands<ReturnType> {
158
- excalidraw: {
159
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
158
+ exportPdf: {
159
+ exportToPdf: () => ReturnType;
160
160
  };
161
161
  }
162
162
  }
@@ -198,21 +198,6 @@ declare module '@tiptap/core' {
198
198
  }
199
199
 
200
200
 
201
- declare module '@tiptap/core' {
202
- interface Commands<ReturnType> {
203
- iframe: {
204
- /**
205
- * Add an iframe
206
- */
207
- setIframe: (options: {
208
- src: string;
209
- service: string;
210
- }) => ReturnType;
211
- };
212
- }
213
- }
214
-
215
-
216
201
  declare module '@tiptap/core' {
217
202
  interface Commands<ReturnType> {
218
203
  imageUpload: {
@@ -233,6 +218,21 @@ declare module '@tiptap/core' {
233
218
  }
234
219
 
235
220
 
221
+ declare module '@tiptap/core' {
222
+ interface Commands<ReturnType> {
223
+ iframe: {
224
+ /**
225
+ * Add an iframe
226
+ */
227
+ setIframe: (options: {
228
+ src: string;
229
+ service: string;
230
+ }) => ReturnType;
231
+ };
232
+ }
233
+ }
234
+
235
+
236
236
  declare module '@tiptap/core' {
237
237
  interface Commands<ReturnType> {
238
238
  imageGifUpload: {
package/lib/MoreMark.js CHANGED
@@ -2,7 +2,7 @@ import { E as m } from "./index-DI9T3iLd.js";
2
2
  import { S as f, a as b } from "./index-LUL9mqY4.js";
3
3
  import { jsxs as h, jsx as s } from "react/jsx-runtime";
4
4
  import { useMemo as x } from "react";
5
- import { D as g, e as M, A as y, M as S, f as k, h as A, k as w, g as v } from "./RichTextEditor-e6q30rbV.js";
5
+ import { D as g, e as M, A as y, M as S, f as k, h as A, k as w, g as v } from "./RichTextEditor-BQN2eLD_.js";
6
6
  function K(t) {
7
7
  var c;
8
8
  const e = x(() => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-ByRfqzMr.cjs");const o=require("./RichTextEditor-DsUcQSbm.cjs");exports.Column=o.Column;exports.ColumnActionButton=o.ColumnActionButton;exports.EXTENSION_PRIORITY_HIGHEST=o.EXTENSION_PRIORITY_HIGHEST;exports.MultiColumn=o.MultiColumn;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-ByRfqzMr.cjs");const o=require("./RichTextEditor-C8Sm1E6J.cjs");exports.Column=o.Column;exports.ColumnActionButton=o.ColumnActionButton;exports.EXTENSION_PRIORITY_HIGHEST=o.EXTENSION_PRIORITY_HIGHEST;exports.MultiColumn=o.MultiColumn;
@@ -66,8 +66,8 @@ declare module '@tiptap/core' {
66
66
 
67
67
  declare module '@tiptap/core' {
68
68
  interface Commands<ReturnType> {
69
- exportPdf: {
70
- exportToPdf: () => ReturnType;
69
+ excalidraw: {
70
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
71
71
  };
72
72
  }
73
73
  }
@@ -75,8 +75,8 @@ declare module '@tiptap/core' {
75
75
 
76
76
  declare module '@tiptap/core' {
77
77
  interface Commands<ReturnType> {
78
- excalidraw: {
79
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
78
+ exportPdf: {
79
+ exportToPdf: () => ReturnType;
80
80
  };
81
81
  }
82
82
  }
@@ -118,21 +118,6 @@ declare module '@tiptap/core' {
118
118
  }
119
119
 
120
120
 
121
- declare module '@tiptap/core' {
122
- interface Commands<ReturnType> {
123
- iframe: {
124
- /**
125
- * Add an iframe
126
- */
127
- setIframe: (options: {
128
- src: string;
129
- service: string;
130
- }) => ReturnType;
131
- };
132
- }
133
- }
134
-
135
-
136
121
  declare module '@tiptap/core' {
137
122
  interface Commands<ReturnType> {
138
123
  imageUpload: {
@@ -153,6 +138,21 @@ declare module '@tiptap/core' {
153
138
  }
154
139
 
155
140
 
141
+ declare module '@tiptap/core' {
142
+ interface Commands<ReturnType> {
143
+ iframe: {
144
+ /**
145
+ * Add an iframe
146
+ */
147
+ setIframe: (options: {
148
+ src: string;
149
+ service: string;
150
+ }) => ReturnType;
151
+ };
152
+ }
153
+ }
154
+
155
+
156
156
  declare module '@tiptap/core' {
157
157
  interface Commands<ReturnType> {
158
158
  imageGifUpload: {
@@ -66,8 +66,8 @@ declare module '@tiptap/core' {
66
66
 
67
67
  declare module '@tiptap/core' {
68
68
  interface Commands<ReturnType> {
69
- exportPdf: {
70
- exportToPdf: () => ReturnType;
69
+ excalidraw: {
70
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
71
71
  };
72
72
  }
73
73
  }
@@ -75,8 +75,8 @@ declare module '@tiptap/core' {
75
75
 
76
76
  declare module '@tiptap/core' {
77
77
  interface Commands<ReturnType> {
78
- excalidraw: {
79
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
78
+ exportPdf: {
79
+ exportToPdf: () => ReturnType;
80
80
  };
81
81
  }
82
82
  }
@@ -118,21 +118,6 @@ declare module '@tiptap/core' {
118
118
  }
119
119
 
120
120
 
121
- declare module '@tiptap/core' {
122
- interface Commands<ReturnType> {
123
- iframe: {
124
- /**
125
- * Add an iframe
126
- */
127
- setIframe: (options: {
128
- src: string;
129
- service: string;
130
- }) => ReturnType;
131
- };
132
- }
133
- }
134
-
135
-
136
121
  declare module '@tiptap/core' {
137
122
  interface Commands<ReturnType> {
138
123
  imageUpload: {
@@ -153,6 +138,21 @@ declare module '@tiptap/core' {
153
138
  }
154
139
 
155
140
 
141
+ declare module '@tiptap/core' {
142
+ interface Commands<ReturnType> {
143
+ iframe: {
144
+ /**
145
+ * Add an iframe
146
+ */
147
+ setIframe: (options: {
148
+ src: string;
149
+ service: string;
150
+ }) => ReturnType;
151
+ };
152
+ }
153
+ }
154
+
155
+
156
156
  declare module '@tiptap/core' {
157
157
  interface Commands<ReturnType> {
158
158
  imageGifUpload: {
@@ -1,5 +1,5 @@
1
1
  import "./index-DI9T3iLd.js";
2
- import { a6 as m, ah as n, ag as u, a7 as l } from "./RichTextEditor-e6q30rbV.js";
2
+ import { a6 as m, ah as n, ag as u, a7 as l } from "./RichTextEditor-BQN2eLD_.js";
3
3
  export {
4
4
  m as Column,
5
5
  n as ColumnActionButton,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),a=require("./RichTextEditor-DsUcQSbm.cjs"),d="listItem",r="textStyle",o=/^(\d+)\.\s$/,u=i.Node.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...s}=t;return e===1?["ol",i.mergeAttributes(this.options.HTMLAttributes,s),0]:["ol",i.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(d,this.editor.getAttributes(r)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=i.wrappingInputRule({find:o,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,s)=>s.childCount+s.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=i.wrappingInputRule({find:o,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(r)}),joinPredicate:(e,s)=>s.childCount+s.attrs.start===+e[1],editor:this.editor})),[t]}}),p=u.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:s,extension:n})=>({component:a.ActionButton,componentProps:{action:()=>e.commands.toggleOrderedList(),isActive:()=>e.isActive("orderedList")||!1,disabled:!1,icon:"ListOrdered",shortcutKeys:n.options.shortcutKeys??["mod","shift","7"],tooltip:s("editor.orderedlist.tooltip")}})}}});exports.OrderedList=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),a=require("./RichTextEditor-C8Sm1E6J.cjs"),d="listItem",r="textStyle",o=/^(\d+)\.\s$/,u=i.Node.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...s}=t;return e===1?["ol",i.mergeAttributes(this.options.HTMLAttributes,s),0]:["ol",i.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(d,this.editor.getAttributes(r)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=i.wrappingInputRule({find:o,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,s)=>s.childCount+s.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=i.wrappingInputRule({find:o,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(r)}),joinPredicate:(e,s)=>s.childCount+s.attrs.start===+e[1],editor:this.editor})),[t]}}),p=u.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:s,extension:n})=>({component:a.ActionButton,componentProps:{action:()=>e.commands.toggleOrderedList(),isActive:()=>e.isActive("orderedList")||!1,disabled:!1,icon:"ListOrdered",shortcutKeys:n.options.shortcutKeys??["mod","shift","7"],tooltip:s("editor.orderedlist.tooltip")}})}}});exports.OrderedList=p;
@@ -134,8 +134,8 @@ declare module '@tiptap/core' {
134
134
 
135
135
  declare module '@tiptap/core' {
136
136
  interface Commands<ReturnType> {
137
- exportPdf: {
138
- exportToPdf: () => ReturnType;
137
+ excalidraw: {
138
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
139
139
  };
140
140
  }
141
141
  }
@@ -143,8 +143,8 @@ declare module '@tiptap/core' {
143
143
 
144
144
  declare module '@tiptap/core' {
145
145
  interface Commands<ReturnType> {
146
- excalidraw: {
147
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
146
+ exportPdf: {
147
+ exportToPdf: () => ReturnType;
148
148
  };
149
149
  }
150
150
  }
@@ -186,21 +186,6 @@ declare module '@tiptap/core' {
186
186
  }
187
187
 
188
188
 
189
- declare module '@tiptap/core' {
190
- interface Commands<ReturnType> {
191
- iframe: {
192
- /**
193
- * Add an iframe
194
- */
195
- setIframe: (options: {
196
- src: string;
197
- service: string;
198
- }) => ReturnType;
199
- };
200
- }
201
- }
202
-
203
-
204
189
  declare module '@tiptap/core' {
205
190
  interface Commands<ReturnType> {
206
191
  imageUpload: {
@@ -221,6 +206,21 @@ declare module '@tiptap/core' {
221
206
  }
222
207
 
223
208
 
209
+ declare module '@tiptap/core' {
210
+ interface Commands<ReturnType> {
211
+ iframe: {
212
+ /**
213
+ * Add an iframe
214
+ */
215
+ setIframe: (options: {
216
+ src: string;
217
+ service: string;
218
+ }) => ReturnType;
219
+ };
220
+ }
221
+ }
222
+
223
+
224
224
  declare module '@tiptap/core' {
225
225
  interface Commands<ReturnType> {
226
226
  imageGifUpload: {
@@ -134,8 +134,8 @@ declare module '@tiptap/core' {
134
134
 
135
135
  declare module '@tiptap/core' {
136
136
  interface Commands<ReturnType> {
137
- exportPdf: {
138
- exportToPdf: () => ReturnType;
137
+ excalidraw: {
138
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
139
139
  };
140
140
  }
141
141
  }
@@ -143,8 +143,8 @@ declare module '@tiptap/core' {
143
143
 
144
144
  declare module '@tiptap/core' {
145
145
  interface Commands<ReturnType> {
146
- excalidraw: {
147
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
146
+ exportPdf: {
147
+ exportToPdf: () => ReturnType;
148
148
  };
149
149
  }
150
150
  }
@@ -186,21 +186,6 @@ declare module '@tiptap/core' {
186
186
  }
187
187
 
188
188
 
189
- declare module '@tiptap/core' {
190
- interface Commands<ReturnType> {
191
- iframe: {
192
- /**
193
- * Add an iframe
194
- */
195
- setIframe: (options: {
196
- src: string;
197
- service: string;
198
- }) => ReturnType;
199
- };
200
- }
201
- }
202
-
203
-
204
189
  declare module '@tiptap/core' {
205
190
  interface Commands<ReturnType> {
206
191
  imageUpload: {
@@ -221,6 +206,21 @@ declare module '@tiptap/core' {
221
206
  }
222
207
 
223
208
 
209
+ declare module '@tiptap/core' {
210
+ interface Commands<ReturnType> {
211
+ iframe: {
212
+ /**
213
+ * Add an iframe
214
+ */
215
+ setIframe: (options: {
216
+ src: string;
217
+ service: string;
218
+ }) => ReturnType;
219
+ };
220
+ }
221
+ }
222
+
223
+
224
224
  declare module '@tiptap/core' {
225
225
  interface Commands<ReturnType> {
226
226
  imageGifUpload: {
@@ -1,5 +1,5 @@
1
1
  import { N as p, w as i, m as r } from "./index-DI9T3iLd.js";
2
- import { A as d } from "./RichTextEditor-e6q30rbV.js";
2
+ import { A as d } from "./RichTextEditor-BQN2eLD_.js";
3
3
  const u = "listItem", o = "textStyle", n = /^(\d+)\.\s$/, l = p.create({
4
4
  name: "orderedList",
5
5
  addOptions() {
@@ -7482,15 +7482,13 @@ function Mx({ selectImage: e, apiKey: t, provider: r, children: n }) {
7482
7482
  type: "text"
7483
7483
  }
7484
7484
  ) }),
7485
- /* @__PURE__ */ l("div", { className: "richtext-max-h-[280px] richtext-overflow-y-auto", children: /* @__PURE__ */ l("div", { className: "richtext-grid richtext-grid-cols-2 richtext-gap-1 ", children: i != null && i.length ? i == null ? void 0 : i.map((f) => /* @__PURE__ */ l(
7485
+ /* @__PURE__ */ l("div", { className: "richtext-max-h-[280px] !richtext-max-w-[400px] richtext-overflow-y-auto", children: /* @__PURE__ */ l("div", { className: "richtext-grid richtext-grid-cols-2 richtext-gap-1 ", children: i != null && i.length ? i == null ? void 0 : i.map((f) => /* @__PURE__ */ l(
7486
7486
  "img",
7487
7487
  {
7488
7488
  alt: "",
7489
- className: "richtext-cursor-pointer richtext-text-center",
7490
- height: f.height,
7489
+ className: "richtext-cursor-pointer richtext-object-contain richtext-text-center",
7491
7490
  onClick: () => e(f.src),
7492
- src: f.src,
7493
- width: f.width
7491
+ src: f.src
7494
7492
  },
7495
7493
  f.id
7496
7494
  )) : /* @__PURE__ */ l("p", { children: "No GIFs found" }) }) })