reactjs-tiptap-editor 0.3.28 → 0.3.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/lib/{ActionMenuButton-C20molC9.cjs → ActionMenuButton-5Y8QcYxD.cjs} +1 -1
  2. package/lib/{ActionMenuButton-D0hFczCn.js → ActionMenuButton-Cs9DM_16.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +28 -28
  5. package/lib/Attachment.d.ts +28 -28
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +28 -28
  9. package/lib/Blockquote.d.ts +28 -28
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +28 -28
  13. package/lib/Bold.d.ts +28 -28
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +28 -28
  17. package/lib/BulletList.d.ts +28 -28
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +28 -28
  21. package/lib/Clear.d.ts +28 -28
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +28 -28
  25. package/lib/Code.d.ts +28 -28
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +28 -28
  29. package/lib/CodeBlock.d.ts +28 -28
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +28 -28
  33. package/lib/CodeView.d.ts +28 -28
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +28 -28
  37. package/lib/Color.d.ts +28 -28
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +28 -28
  40. package/lib/Document.d.ts +28 -28
  41. package/lib/{Drawer-B96jQIQU.js → Drawer-BCmNLh31.js} +1 -1
  42. package/lib/{Drawer-0kBt3GVL.cjs → Drawer-DCAp7eZF.cjs} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +28 -28
  45. package/lib/Drawer.d.ts +28 -28
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +28 -28
  49. package/lib/Emoji.d.ts +28 -28
  50. package/lib/Emoji.js +1 -1
  51. package/lib/{Excalidraw-HK9kjpX5.cjs → Excalidraw-BI50RQL-.cjs} +1 -1
  52. package/lib/{Excalidraw-z3VZyGJ4.js → Excalidraw-CYPcjYZB.js} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +28 -28
  55. package/lib/Excalidraw.d.ts +28 -28
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +28 -28
  59. package/lib/ExportPdf.d.ts +28 -28
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +28 -28
  63. package/lib/ExportWord.d.ts +28 -28
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +28 -28
  67. package/lib/FontFamily.d.ts +28 -28
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +28 -28
  71. package/lib/FontSize.d.ts +28 -28
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +28 -28
  75. package/lib/FormatPainter.d.ts +28 -28
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +28 -28
  79. package/lib/Heading.d.ts +28 -28
  80. package/lib/Heading.js +2 -2
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +28 -28
  83. package/lib/Highlight.d.ts +28 -28
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +28 -28
  87. package/lib/History.d.ts +28 -28
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +28 -28
  91. package/lib/HorizontalRule.d.ts +28 -28
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +28 -28
  95. package/lib/Iframe.d.ts +28 -28
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +28 -28
  99. package/lib/Image.d.ts +28 -28
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +31 -30
  103. package/lib/ImageGif.d.ts +31 -30
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +1 -1
  106. package/lib/ImportWord.d.cts +28 -28
  107. package/lib/ImportWord.d.ts +28 -28
  108. package/lib/ImportWord.js +1 -1
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +28 -28
  111. package/lib/Indent.d.ts +28 -28
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +28 -28
  115. package/lib/Italic.d.ts +28 -28
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +28 -28
  119. package/lib/Katex.d.ts +28 -28
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +28 -28
  123. package/lib/LineHeight.d.ts +28 -28
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +28 -28
  127. package/lib/Link.d.ts +28 -28
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +28 -28
  130. package/lib/ListItem.d.ts +28 -28
  131. package/lib/Mention.d.cts +28 -28
  132. package/lib/Mention.d.ts +28 -28
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +28 -28
  135. package/lib/Mermaid.d.ts +28 -28
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +28 -28
  139. package/lib/MoreMark.d.ts +28 -28
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +28 -28
  143. package/lib/MultiColumn.d.ts +28 -28
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +28 -28
  147. package/lib/OrderedList.d.ts +28 -28
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-BKywwUM4.cjs → RichTextEditor-DsUcQSbm.cjs} +5 -5
  150. package/lib/{RichTextEditor-CnWZ69eX.js → RichTextEditor-e6q30rbV.js} +998 -942
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +28 -28
  153. package/lib/SearchAndReplace.d.ts +28 -28
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +28 -28
  156. package/lib/Selection.d.ts +28 -28
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +28 -28
  159. package/lib/SlashCommand.d.ts +28 -28
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +28 -28
  163. package/lib/Strike.d.ts +28 -28
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +28 -28
  167. package/lib/SubAndSuperScript.d.ts +28 -28
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +28 -28
  171. package/lib/Table.d.ts +28 -28
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +28 -28
  175. package/lib/TableOfContent.d.ts +28 -28
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +28 -28
  179. package/lib/TaskList.d.ts +28 -28
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +28 -28
  183. package/lib/TextAlign.d.ts +28 -28
  184. package/lib/TextAlign.js +1 -1
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +28 -28
  187. package/lib/TextBubble.d.ts +28 -28
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +28 -28
  191. package/lib/TextDirection.d.ts +28 -28
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +28 -28
  195. package/lib/TextUnderline.d.ts +28 -28
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +28 -28
  198. package/lib/TrailingNode.d.ts +28 -28
  199. package/lib/{Twitter-Dj49i3B9.cjs → Twitter-D2Osj8qP.cjs} +1 -1
  200. package/lib/{Twitter-CCf1aM0f.js → Twitter-Wb7cD3M-.js} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +28 -28
  203. package/lib/Twitter.d.ts +28 -28
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +28 -28
  207. package/lib/Video.d.ts +28 -28
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +28 -28
  211. package/lib/bubble-extra.d.ts +28 -28
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +28 -28
  215. package/lib/index.d.ts +28 -28
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +28 -28
  218. package/lib/locale-bundle.d.ts +28 -28
  219. package/lib/{textarea-DhlS0JCr.cjs → textarea-BVbzd9-k.cjs} +1 -1
  220. package/lib/{textarea-nr3UZ7Wg.js → textarea-Csmx5x-_.js} +1 -1
  221. package/package.json +1 -1
package/lib/Mermaid.d.cts CHANGED
@@ -121,15 +121,6 @@ declare module '@tiptap/core' {
121
121
  }
122
122
 
123
123
 
124
- declare module '@tiptap/core' {
125
- interface Commands<ReturnType> {
126
- excalidraw: {
127
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
128
- };
129
- }
130
- }
131
-
132
-
133
124
  declare module '@tiptap/core' {
134
125
  interface Commands<ReturnType> {
135
126
  emoji: {
@@ -151,6 +142,15 @@ declare module '@tiptap/core' {
151
142
  }
152
143
 
153
144
 
145
+ declare module '@tiptap/core' {
146
+ interface Commands<ReturnType> {
147
+ excalidraw: {
148
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
149
+ };
150
+ }
151
+ }
152
+
153
+
154
154
  declare module '@tiptap/core' {
155
155
  interface Commands<ReturnType> {
156
156
  exportWord: {
@@ -260,9 +260,8 @@ declare module '@tiptap/core' {
260
260
 
261
261
  declare module '@tiptap/core' {
262
262
  interface Commands<ReturnType> {
263
- lineHeight: {
264
- setLineHeight: (lineHeight: string) => ReturnType;
265
- unsetLineHeight: () => ReturnType;
263
+ katex: {
264
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
266
265
  };
267
266
  }
268
267
  }
@@ -270,8 +269,9 @@ declare module '@tiptap/core' {
270
269
 
271
270
  declare module '@tiptap/core' {
272
271
  interface Commands<ReturnType> {
273
- katex: {
274
- setKatex: (arg?: IKatexAttrs) => ReturnType;
272
+ lineHeight: {
273
+ setLineHeight: (lineHeight: string) => ReturnType;
274
+ unsetLineHeight: () => ReturnType;
275
275
  };
276
276
  }
277
277
  }
@@ -287,6 +287,20 @@ declare module '@tiptap/core' {
287
287
  }
288
288
 
289
289
 
290
+ declare module '@tiptap/core' {
291
+ interface Commands<ReturnType> {
292
+ columns: {
293
+ insertColumns: (attrs?: {
294
+ cols: number;
295
+ }) => ReturnType;
296
+ addColBefore: () => ReturnType;
297
+ addColAfter: () => ReturnType;
298
+ deleteCol: () => ReturnType;
299
+ };
300
+ }
301
+ }
302
+
303
+
290
304
  declare module '@tiptap/core' {
291
305
  interface Commands<ReturnType> {
292
306
  search: {
@@ -302,20 +316,6 @@ declare module '@tiptap/core' {
302
316
  }
303
317
 
304
318
 
305
- declare module '@tiptap/core' {
306
- interface Commands<ReturnType> {
307
- columns: {
308
- insertColumns: (attrs?: {
309
- cols: number;
310
- }) => ReturnType;
311
- addColBefore: () => ReturnType;
312
- addColAfter: () => ReturnType;
313
- deleteCol: () => ReturnType;
314
- };
315
- }
316
- }
317
-
318
-
319
319
  declare module '@tiptap/core' {
320
320
  interface Commands<ReturnType> {
321
321
  tableOfContents: {
package/lib/Mermaid.d.ts CHANGED
@@ -121,15 +121,6 @@ declare module '@tiptap/core' {
121
121
  }
122
122
 
123
123
 
124
- declare module '@tiptap/core' {
125
- interface Commands<ReturnType> {
126
- excalidraw: {
127
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
128
- };
129
- }
130
- }
131
-
132
-
133
124
  declare module '@tiptap/core' {
134
125
  interface Commands<ReturnType> {
135
126
  emoji: {
@@ -151,6 +142,15 @@ declare module '@tiptap/core' {
151
142
  }
152
143
 
153
144
 
145
+ declare module '@tiptap/core' {
146
+ interface Commands<ReturnType> {
147
+ excalidraw: {
148
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
149
+ };
150
+ }
151
+ }
152
+
153
+
154
154
  declare module '@tiptap/core' {
155
155
  interface Commands<ReturnType> {
156
156
  exportWord: {
@@ -260,9 +260,8 @@ declare module '@tiptap/core' {
260
260
 
261
261
  declare module '@tiptap/core' {
262
262
  interface Commands<ReturnType> {
263
- lineHeight: {
264
- setLineHeight: (lineHeight: string) => ReturnType;
265
- unsetLineHeight: () => ReturnType;
263
+ katex: {
264
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
266
265
  };
267
266
  }
268
267
  }
@@ -270,8 +269,9 @@ declare module '@tiptap/core' {
270
269
 
271
270
  declare module '@tiptap/core' {
272
271
  interface Commands<ReturnType> {
273
- katex: {
274
- setKatex: (arg?: IKatexAttrs) => ReturnType;
272
+ lineHeight: {
273
+ setLineHeight: (lineHeight: string) => ReturnType;
274
+ unsetLineHeight: () => ReturnType;
275
275
  };
276
276
  }
277
277
  }
@@ -287,6 +287,20 @@ declare module '@tiptap/core' {
287
287
  }
288
288
 
289
289
 
290
+ declare module '@tiptap/core' {
291
+ interface Commands<ReturnType> {
292
+ columns: {
293
+ insertColumns: (attrs?: {
294
+ cols: number;
295
+ }) => ReturnType;
296
+ addColBefore: () => ReturnType;
297
+ addColAfter: () => ReturnType;
298
+ deleteCol: () => ReturnType;
299
+ };
300
+ }
301
+ }
302
+
303
+
290
304
  declare module '@tiptap/core' {
291
305
  interface Commands<ReturnType> {
292
306
  search: {
@@ -302,20 +316,6 @@ declare module '@tiptap/core' {
302
316
  }
303
317
 
304
318
 
305
- declare module '@tiptap/core' {
306
- interface Commands<ReturnType> {
307
- columns: {
308
- insertColumns: (attrs?: {
309
- cols: number;
310
- }) => ReturnType;
311
- addColBefore: () => ReturnType;
312
- addColAfter: () => ReturnType;
313
- deleteCol: () => ReturnType;
314
- };
315
- }
316
- }
317
-
318
-
319
319
  declare module '@tiptap/core' {
320
320
  interface Commands<ReturnType> {
321
321
  tableOfContents: {
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-CnWZ69eX.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";
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-nr3UZ7Wg.js";
7
+ import { T as dt } from "./textarea-Csmx5x-_.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-BKywwUM4.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-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;
@@ -132,15 +132,6 @@ declare module '@tiptap/core' {
132
132
  }
133
133
 
134
134
 
135
- declare module '@tiptap/core' {
136
- interface Commands<ReturnType> {
137
- excalidraw: {
138
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
139
- };
140
- }
141
- }
142
-
143
-
144
135
  declare module '@tiptap/core' {
145
136
  interface Commands<ReturnType> {
146
137
  emoji: {
@@ -162,6 +153,15 @@ declare module '@tiptap/core' {
162
153
  }
163
154
 
164
155
 
156
+ declare module '@tiptap/core' {
157
+ interface Commands<ReturnType> {
158
+ excalidraw: {
159
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
160
+ };
161
+ }
162
+ }
163
+
164
+
165
165
  declare module '@tiptap/core' {
166
166
  interface Commands<ReturnType> {
167
167
  exportWord: {
@@ -271,9 +271,8 @@ declare module '@tiptap/core' {
271
271
 
272
272
  declare module '@tiptap/core' {
273
273
  interface Commands<ReturnType> {
274
- lineHeight: {
275
- setLineHeight: (lineHeight: string) => ReturnType;
276
- unsetLineHeight: () => ReturnType;
274
+ katex: {
275
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
277
276
  };
278
277
  }
279
278
  }
@@ -281,8 +280,9 @@ declare module '@tiptap/core' {
281
280
 
282
281
  declare module '@tiptap/core' {
283
282
  interface Commands<ReturnType> {
284
- katex: {
285
- setKatex: (arg?: IKatexAttrs) => ReturnType;
283
+ lineHeight: {
284
+ setLineHeight: (lineHeight: string) => ReturnType;
285
+ unsetLineHeight: () => ReturnType;
286
286
  };
287
287
  }
288
288
  }
@@ -298,6 +298,20 @@ declare module '@tiptap/core' {
298
298
  }
299
299
 
300
300
 
301
+ declare module '@tiptap/core' {
302
+ interface Commands<ReturnType> {
303
+ columns: {
304
+ insertColumns: (attrs?: {
305
+ cols: number;
306
+ }) => ReturnType;
307
+ addColBefore: () => ReturnType;
308
+ addColAfter: () => ReturnType;
309
+ deleteCol: () => ReturnType;
310
+ };
311
+ }
312
+ }
313
+
314
+
301
315
  declare module '@tiptap/core' {
302
316
  interface Commands<ReturnType> {
303
317
  search: {
@@ -313,20 +327,6 @@ declare module '@tiptap/core' {
313
327
  }
314
328
 
315
329
 
316
- declare module '@tiptap/core' {
317
- interface Commands<ReturnType> {
318
- columns: {
319
- insertColumns: (attrs?: {
320
- cols: number;
321
- }) => ReturnType;
322
- addColBefore: () => ReturnType;
323
- addColAfter: () => ReturnType;
324
- deleteCol: () => ReturnType;
325
- };
326
- }
327
- }
328
-
329
-
330
330
  declare module '@tiptap/core' {
331
331
  interface Commands<ReturnType> {
332
332
  tableOfContents: {
package/lib/MoreMark.d.ts CHANGED
@@ -132,15 +132,6 @@ declare module '@tiptap/core' {
132
132
  }
133
133
 
134
134
 
135
- declare module '@tiptap/core' {
136
- interface Commands<ReturnType> {
137
- excalidraw: {
138
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
139
- };
140
- }
141
- }
142
-
143
-
144
135
  declare module '@tiptap/core' {
145
136
  interface Commands<ReturnType> {
146
137
  emoji: {
@@ -162,6 +153,15 @@ declare module '@tiptap/core' {
162
153
  }
163
154
 
164
155
 
156
+ declare module '@tiptap/core' {
157
+ interface Commands<ReturnType> {
158
+ excalidraw: {
159
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
160
+ };
161
+ }
162
+ }
163
+
164
+
165
165
  declare module '@tiptap/core' {
166
166
  interface Commands<ReturnType> {
167
167
  exportWord: {
@@ -271,9 +271,8 @@ declare module '@tiptap/core' {
271
271
 
272
272
  declare module '@tiptap/core' {
273
273
  interface Commands<ReturnType> {
274
- lineHeight: {
275
- setLineHeight: (lineHeight: string) => ReturnType;
276
- unsetLineHeight: () => ReturnType;
274
+ katex: {
275
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
277
276
  };
278
277
  }
279
278
  }
@@ -281,8 +280,9 @@ declare module '@tiptap/core' {
281
280
 
282
281
  declare module '@tiptap/core' {
283
282
  interface Commands<ReturnType> {
284
- katex: {
285
- setKatex: (arg?: IKatexAttrs) => ReturnType;
283
+ lineHeight: {
284
+ setLineHeight: (lineHeight: string) => ReturnType;
285
+ unsetLineHeight: () => ReturnType;
286
286
  };
287
287
  }
288
288
  }
@@ -298,6 +298,20 @@ declare module '@tiptap/core' {
298
298
  }
299
299
 
300
300
 
301
+ declare module '@tiptap/core' {
302
+ interface Commands<ReturnType> {
303
+ columns: {
304
+ insertColumns: (attrs?: {
305
+ cols: number;
306
+ }) => ReturnType;
307
+ addColBefore: () => ReturnType;
308
+ addColAfter: () => ReturnType;
309
+ deleteCol: () => ReturnType;
310
+ };
311
+ }
312
+ }
313
+
314
+
301
315
  declare module '@tiptap/core' {
302
316
  interface Commands<ReturnType> {
303
317
  search: {
@@ -313,20 +327,6 @@ declare module '@tiptap/core' {
313
327
  }
314
328
 
315
329
 
316
- declare module '@tiptap/core' {
317
- interface Commands<ReturnType> {
318
- columns: {
319
- insertColumns: (attrs?: {
320
- cols: number;
321
- }) => ReturnType;
322
- addColBefore: () => ReturnType;
323
- addColAfter: () => ReturnType;
324
- deleteCol: () => ReturnType;
325
- };
326
- }
327
- }
328
-
329
-
330
330
  declare module '@tiptap/core' {
331
331
  interface Commands<ReturnType> {
332
332
  tableOfContents: {
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-CnWZ69eX.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-e6q30rbV.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-BKywwUM4.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-DsUcQSbm.cjs");exports.Column=o.Column;exports.ColumnActionButton=o.ColumnActionButton;exports.EXTENSION_PRIORITY_HIGHEST=o.EXTENSION_PRIORITY_HIGHEST;exports.MultiColumn=o.MultiColumn;
@@ -52,15 +52,6 @@ declare module '@tiptap/core' {
52
52
  }
53
53
 
54
54
 
55
- declare module '@tiptap/core' {
56
- interface Commands<ReturnType> {
57
- excalidraw: {
58
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
59
- };
60
- }
61
- }
62
-
63
-
64
55
  declare module '@tiptap/core' {
65
56
  interface Commands<ReturnType> {
66
57
  emoji: {
@@ -82,6 +73,15 @@ declare module '@tiptap/core' {
82
73
  }
83
74
 
84
75
 
76
+ declare module '@tiptap/core' {
77
+ interface Commands<ReturnType> {
78
+ excalidraw: {
79
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
80
+ };
81
+ }
82
+ }
83
+
84
+
85
85
  declare module '@tiptap/core' {
86
86
  interface Commands<ReturnType> {
87
87
  exportWord: {
@@ -191,9 +191,8 @@ declare module '@tiptap/core' {
191
191
 
192
192
  declare module '@tiptap/core' {
193
193
  interface Commands<ReturnType> {
194
- lineHeight: {
195
- setLineHeight: (lineHeight: string) => ReturnType;
196
- unsetLineHeight: () => ReturnType;
194
+ katex: {
195
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
197
196
  };
198
197
  }
199
198
  }
@@ -201,8 +200,9 @@ declare module '@tiptap/core' {
201
200
 
202
201
  declare module '@tiptap/core' {
203
202
  interface Commands<ReturnType> {
204
- katex: {
205
- setKatex: (arg?: IKatexAttrs) => ReturnType;
203
+ lineHeight: {
204
+ setLineHeight: (lineHeight: string) => ReturnType;
205
+ unsetLineHeight: () => ReturnType;
206
206
  };
207
207
  }
208
208
  }
@@ -218,6 +218,20 @@ declare module '@tiptap/core' {
218
218
  }
219
219
 
220
220
 
221
+ declare module '@tiptap/core' {
222
+ interface Commands<ReturnType> {
223
+ columns: {
224
+ insertColumns: (attrs?: {
225
+ cols: number;
226
+ }) => ReturnType;
227
+ addColBefore: () => ReturnType;
228
+ addColAfter: () => ReturnType;
229
+ deleteCol: () => ReturnType;
230
+ };
231
+ }
232
+ }
233
+
234
+
221
235
  declare module '@tiptap/core' {
222
236
  interface Commands<ReturnType> {
223
237
  search: {
@@ -233,20 +247,6 @@ declare module '@tiptap/core' {
233
247
  }
234
248
 
235
249
 
236
- declare module '@tiptap/core' {
237
- interface Commands<ReturnType> {
238
- columns: {
239
- insertColumns: (attrs?: {
240
- cols: number;
241
- }) => ReturnType;
242
- addColBefore: () => ReturnType;
243
- addColAfter: () => ReturnType;
244
- deleteCol: () => ReturnType;
245
- };
246
- }
247
- }
248
-
249
-
250
250
  declare module '@tiptap/core' {
251
251
  interface Commands<ReturnType> {
252
252
  tableOfContents: {
@@ -52,15 +52,6 @@ declare module '@tiptap/core' {
52
52
  }
53
53
 
54
54
 
55
- declare module '@tiptap/core' {
56
- interface Commands<ReturnType> {
57
- excalidraw: {
58
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
59
- };
60
- }
61
- }
62
-
63
-
64
55
  declare module '@tiptap/core' {
65
56
  interface Commands<ReturnType> {
66
57
  emoji: {
@@ -82,6 +73,15 @@ declare module '@tiptap/core' {
82
73
  }
83
74
 
84
75
 
76
+ declare module '@tiptap/core' {
77
+ interface Commands<ReturnType> {
78
+ excalidraw: {
79
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
80
+ };
81
+ }
82
+ }
83
+
84
+
85
85
  declare module '@tiptap/core' {
86
86
  interface Commands<ReturnType> {
87
87
  exportWord: {
@@ -191,9 +191,8 @@ declare module '@tiptap/core' {
191
191
 
192
192
  declare module '@tiptap/core' {
193
193
  interface Commands<ReturnType> {
194
- lineHeight: {
195
- setLineHeight: (lineHeight: string) => ReturnType;
196
- unsetLineHeight: () => ReturnType;
194
+ katex: {
195
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
197
196
  };
198
197
  }
199
198
  }
@@ -201,8 +200,9 @@ declare module '@tiptap/core' {
201
200
 
202
201
  declare module '@tiptap/core' {
203
202
  interface Commands<ReturnType> {
204
- katex: {
205
- setKatex: (arg?: IKatexAttrs) => ReturnType;
203
+ lineHeight: {
204
+ setLineHeight: (lineHeight: string) => ReturnType;
205
+ unsetLineHeight: () => ReturnType;
206
206
  };
207
207
  }
208
208
  }
@@ -218,6 +218,20 @@ declare module '@tiptap/core' {
218
218
  }
219
219
 
220
220
 
221
+ declare module '@tiptap/core' {
222
+ interface Commands<ReturnType> {
223
+ columns: {
224
+ insertColumns: (attrs?: {
225
+ cols: number;
226
+ }) => ReturnType;
227
+ addColBefore: () => ReturnType;
228
+ addColAfter: () => ReturnType;
229
+ deleteCol: () => ReturnType;
230
+ };
231
+ }
232
+ }
233
+
234
+
221
235
  declare module '@tiptap/core' {
222
236
  interface Commands<ReturnType> {
223
237
  search: {
@@ -233,20 +247,6 @@ declare module '@tiptap/core' {
233
247
  }
234
248
 
235
249
 
236
- declare module '@tiptap/core' {
237
- interface Commands<ReturnType> {
238
- columns: {
239
- insertColumns: (attrs?: {
240
- cols: number;
241
- }) => ReturnType;
242
- addColBefore: () => ReturnType;
243
- addColAfter: () => ReturnType;
244
- deleteCol: () => ReturnType;
245
- };
246
- }
247
- }
248
-
249
-
250
250
  declare module '@tiptap/core' {
251
251
  interface Commands<ReturnType> {
252
252
  tableOfContents: {
@@ -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-CnWZ69eX.js";
2
+ import { a6 as m, ah as n, ag as u, a7 as l } from "./RichTextEditor-e6q30rbV.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-BKywwUM4.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-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;