reactjs-tiptap-editor 1.0.10 → 1.0.11

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 (141) hide show
  1. package/lib/{ActionMenuButton-BPdRqzDX.cjs → ActionMenuButton-BLlse5KO.cjs} +1 -1
  2. package/lib/{ActionMenuButton-CKTxYtl7.js → ActionMenuButton-DTXFBdGX.js} +2 -2
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +2 -2
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +2 -2
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +2 -2
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +2 -2
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +2 -2
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +2 -2
  15. package/lib/CodeBlock.cjs +39 -39
  16. package/lib/CodeBlock.js +945 -837
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +2 -2
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +4 -4
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +2 -2
  23. package/lib/{Drawer-Cfx115up.js → Drawer-D0yQ0wR7.js} +12 -12
  24. package/lib/{Drawer-hHj4Opkg.cjs → Drawer-kv6BU_6O.cjs} +1 -1
  25. package/lib/Drawer.cjs +1 -1
  26. package/lib/Drawer.js +1 -1
  27. package/lib/Emoji.cjs +1 -1
  28. package/lib/Emoji.js +11 -11
  29. package/lib/{Excalidraw-8pWJ17Ye.cjs → Excalidraw-B82ThkJA.cjs} +1 -1
  30. package/lib/{Excalidraw-CO93Tsmb.js → Excalidraw-CO4IRHmG.js} +17 -17
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +1 -1
  33. package/lib/ExportPdf.cjs +1 -1
  34. package/lib/ExportPdf.js +2 -2
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +2 -2
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +4 -4
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +4 -4
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +12 -12
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +4 -4
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +2 -2
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +2 -2
  49. package/lib/{Icon-D7GJZzoa.js → Icon-DRuJhcHK.js} +1 -1
  50. package/lib/{Icon-gtc3g-VK.cjs → Icon-DXePECFW.cjs} +1 -1
  51. package/lib/{Iframe-BmXO2c65.cjs → Iframe-03dn9wcM.cjs} +1 -1
  52. package/lib/{Iframe-DwhclppJ.js → Iframe-BEO28NPs.js} +10 -10
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +1 -1
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +43 -43
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +6 -6
  59. package/lib/ImportWord.cjs +2 -2
  60. package/lib/ImportWord.js +7 -7
  61. package/lib/{Indent-BOsymiZ7.js → Indent-CXurBbOr.js} +2 -2
  62. package/lib/{Indent-DPkMWfcv.cjs → Indent-Cqjdn3Jt.cjs} +1 -1
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +1 -1
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +2 -2
  67. package/lib/{Katex-BYK-b9X2.js → Katex-Bvj469K1.js} +22 -22
  68. package/lib/{Katex-B1XbT8-X.cjs → Katex-DdWTV5NJ.cjs} +2 -2
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +1 -1
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +11 -11
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +1 -1
  75. package/lib/{LinkEditBlock-4-iRXH7m.cjs → LinkEditBlock-8ePAZ-G1.cjs} +2 -2
  76. package/lib/{LinkEditBlock-DgrLUMsJ.js → LinkEditBlock-DjXUEubR.js} +29 -29
  77. package/lib/Mermaid.cjs +2 -2
  78. package/lib/Mermaid.js +18 -18
  79. package/lib/MoreMark.cjs +1 -1
  80. package/lib/MoreMark.js +10 -10
  81. package/lib/OrderedList.cjs +1 -1
  82. package/lib/OrderedList.js +2 -2
  83. package/lib/SearchAndReplace.cjs +1 -1
  84. package/lib/SearchAndReplace.js +15 -15
  85. package/lib/SlashCommand.cjs +1 -1
  86. package/lib/SlashCommand.js +2 -2
  87. package/lib/{SlashCommandNodeView-CQvMTXys.cjs → SlashCommandNodeView-Bl_gwZJB.cjs} +1 -1
  88. package/lib/{SlashCommandNodeView-BpNNU7Sm.js → SlashCommandNodeView-CcqL8ymb.js} +12 -12
  89. package/lib/Strike.cjs +1 -1
  90. package/lib/Strike.js +2 -2
  91. package/lib/{Table-CT9R9Sdq.js → Table-9Y0Cg8Ab.js} +3 -3
  92. package/lib/{Table-LnWGm2m8.cjs → Table-DBGjezZK.cjs} +1 -1
  93. package/lib/Table.cjs +1 -1
  94. package/lib/Table.js +1 -1
  95. package/lib/TaskList.cjs +1 -1
  96. package/lib/TaskList.js +2 -2
  97. package/lib/TextAlign.cjs +1 -1
  98. package/lib/TextAlign.js +9 -9
  99. package/lib/TextDirection.cjs +1 -1
  100. package/lib/TextDirection.js +9 -9
  101. package/lib/TextUnderline.cjs +1 -1
  102. package/lib/TextUnderline.js +2 -2
  103. package/lib/{Twitter-Bo4JkBTL.cjs → Twitter-Cnvt7GBg.cjs} +1 -1
  104. package/lib/{Twitter-mowilxRd.js → Twitter-DWwd0vHR.js} +16 -16
  105. package/lib/Twitter.cjs +1 -1
  106. package/lib/Twitter.js +1 -1
  107. package/lib/Video.cjs +1 -1
  108. package/lib/Video.js +21 -21
  109. package/lib/bubble.cjs +4 -4
  110. package/lib/bubble.js +383 -389
  111. package/lib/{button-wt49IYwP.cjs → button-BW5bDPz_.cjs} +1 -1
  112. package/lib/{button-CBO-WDXK.js → button-RnHbJfd-.js} +1 -1
  113. package/lib/{checkbox-D1h32VWM.js → checkbox-CLSoR1Qj.js} +1 -1
  114. package/lib/{checkbox-DUcLSGZD.cjs → checkbox-CTEN0q4y.cjs} +1 -1
  115. package/lib/{dialog-DY868Uji.cjs → dialog-CMC9hsCo.cjs} +1 -1
  116. package/lib/{dialog-DSvgtlDI.js → dialog-D_HCtKvc.js} +1 -1
  117. package/lib/{dropdown-menu-B88Qn2KR.js → dropdown-menu-66q7Ofc5.js} +1 -1
  118. package/lib/{dropdown-menu-BripAeGB.cjs → dropdown-menu-DKSAS-w_.cjs} +1 -1
  119. package/lib/{index-BIqaogQg.js → index-C3zg3DPB.js} +669 -743
  120. package/lib/index-C838s-or.cjs +8 -0
  121. package/lib/index.cjs +1 -1
  122. package/lib/index.js +1 -1
  123. package/lib/{input-Bx4uo4gO.js → input-CvyMYMZG.js} +1 -1
  124. package/lib/{input-BeD5GdMv.cjs → input-D555880-.cjs} +1 -1
  125. package/lib/{label-uKG7RzFU.js → label-DsOYPjAo.js} +1 -1
  126. package/lib/{label--161UPH6.cjs → label-E6jF3Xud.cjs} +1 -1
  127. package/lib/{popover-BVX8otO9.js → popover-B7ec5-u2.js} +1 -1
  128. package/lib/{popover-Csk538NC.cjs → popover-BSzR_R01.cjs} +1 -1
  129. package/lib/{separator-DtrEdjAF.js → separator-JaTTqb3J.js} +18 -18
  130. package/lib/{separator-DLRVddHS.cjs → separator-PGnA-6Hr.cjs} +1 -1
  131. package/lib/{store-CsIFDUKR.js → store-Cf7tFiiI.js} +1 -1
  132. package/lib/{store-B8IkVz1J.cjs → store-oDk-lTPM.cjs} +1 -1
  133. package/lib/style.css +1 -1
  134. package/lib/{tabs-DOasUMDU.cjs → tabs-BTwiZkWd.cjs} +1 -1
  135. package/lib/{tabs-BKpr0QQB.js → tabs-CWr9HYaM.js} +1 -1
  136. package/lib/{textarea-Ba9OOzba.js → textarea-BdeLXbp8.js} +1 -1
  137. package/lib/{textarea-D9egO4qC.cjs → textarea-Yetl_PZi.cjs} +1 -1
  138. package/lib/{useButtonProps-DEtmDVPr.cjs → useButtonProps-DfnJiJLV.cjs} +1 -1
  139. package/lib/{useButtonProps-C_bqxmHi.js → useButtonProps-cMoicZgd.js} +1 -1
  140. package/package.json +1 -1
  141. package/lib/index-BvIJKpX1.cjs +0 -8
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),a=require("react"),d=require("@radix-ui/react-slot"),i=require("./index-BvIJKpX1.cjs"),s=require("./button-wt49IYwP.cjs"),u=a.forwardRef(({asChild:h=!1,tooltip:c,...t},l)=>{var x;const n=i.icons[t.icon],r=h?d.Slot:s.Button;return e.jsxs(i.Tooltip,{children:[e.jsx(i.TooltipTrigger,{asChild:!0,children:e.jsx(r,{className:"richtext-h-[32px] richtext-min-w-24 richtext-overflow-hidden richtext-px-[5px] richtext-py-0","data-state":t!=null&&t.dataState?"on":"off",disabled:t==null?void 0:t.disabled,ref:l,variant:"ghost",...t,children:e.jsxs("div",{className:"richtext-flex richtext-h-full richtext-items-center richtext-font-normal",children:[(t==null?void 0:t.title)&&e.jsx("div",{className:"richtext-grow richtext-truncate richtext-text-left richtext-text-sm",children:t==null?void 0:t.title}),n&&e.jsx(n,{className:"richtext-ml-1 richtext-size-3 richtext-shrink-0 richtext-text-zinc-500"})]})})}),c&&e.jsx(i.TooltipContent,{children:e.jsxs("div",{className:"richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center",children:[c&&e.jsx("div",{children:c}),e.jsx("div",{className:"richtext-flex",children:!!((x=t==null?void 0:t.shortcutKeys)!=null&&x.length)&&e.jsx("span",{children:i.getShortcutKeys(t==null?void 0:t.shortcutKeys)})})]})})]})});exports.ActionMenuButton=u;
1
+ "use strict";const e=require("react/jsx-runtime"),a=require("react"),d=require("@radix-ui/react-slot"),i=require("./index-C838s-or.cjs"),s=require("./button-BW5bDPz_.cjs"),u=a.forwardRef(({asChild:h=!1,tooltip:c,...t},l)=>{var x;const n=i.icons[t.icon],r=h?d.Slot:s.Button;return e.jsxs(i.Tooltip,{children:[e.jsx(i.TooltipTrigger,{asChild:!0,children:e.jsx(r,{className:"richtext-h-[32px] richtext-min-w-24 richtext-overflow-hidden richtext-px-[5px] richtext-py-0","data-state":t!=null&&t.dataState?"on":"off",disabled:t==null?void 0:t.disabled,ref:l,variant:"ghost",...t,children:e.jsxs("div",{className:"richtext-flex richtext-h-full richtext-items-center richtext-font-normal",children:[(t==null?void 0:t.title)&&e.jsx("div",{className:"richtext-grow richtext-truncate richtext-text-left richtext-text-sm",children:t==null?void 0:t.title}),n&&e.jsx(n,{className:"richtext-ml-1 richtext-size-3 richtext-shrink-0 richtext-text-zinc-500"})]})})}),c&&e.jsx(i.TooltipContent,{children:e.jsxs("div",{className:"richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center",children:[c&&e.jsx("div",{children:c}),e.jsx("div",{className:"richtext-flex",children:!!((x=t==null?void 0:t.shortcutKeys)!=null&&x.length)&&e.jsx("span",{children:i.getShortcutKeys(t==null?void 0:t.shortcutKeys)})})]})})]})});exports.ActionMenuButton=u;
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
2
  import n from "react";
3
3
  import { Slot as r } from "@radix-ui/react-slot";
4
- import { i as d, T as m, a as f, b as s, g as u } from "./index-BIqaogQg.js";
5
- import { B as o } from "./button-CBO-WDXK.js";
4
+ import { i as d, T as m, a as f, b as s, g as u } from "./index-C3zg3DPB.js";
5
+ import { B as o } from "./button-RnHbJfd-.js";
6
6
  const C = n.forwardRef(
7
7
  ({ asChild: x = !1, tooltip: i, ...t }, l) => {
8
8
  var a;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-BBNITgNi.cjs"),x=require("./index-BvIJKpX1.cjs"),e=require("react/jsx-runtime"),m=require("react"),v=require("lucide-react"),w=require("./file-i7e4nQY2.cjs"),S=require("./index-FSRjMsxW.cjs"),d=require("./dom-dataset-BqoJhJXt.cjs"),L=require("./useButtonProps-DEtmDVPr.cjs"),_={audio:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-audio-lines"><path d="M2 10v3"/><path d="M6 6v11"/><path d="M10 3v18"/><path d="M14 8v7"/><path d="M18 5v13"/><path d="M22 10v3"/></svg>',video:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-video"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>',file:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/></svg>',image:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>',pdf:`<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-BBNITgNi.cjs"),x=require("./index-C838s-or.cjs"),e=require("react/jsx-runtime"),m=require("react"),v=require("lucide-react"),w=require("./file-i7e4nQY2.cjs"),S=require("./index-FSRjMsxW.cjs"),d=require("./dom-dataset-BqoJhJXt.cjs"),L=require("./useButtonProps-DfnJiJLV.cjs"),_={audio:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-audio-lines"><path d="M2 10v3"/><path d="M6 6v11"/><path d="M10 3v18"/><path d="M14 8v7"/><path d="M18 5v13"/><path d="M22 10v3"/></svg>',video:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-video"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>',file:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/></svg>',image:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>',pdf:`<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32">
2
2
  <path fill="currentColor" d="M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3z"></path>
3
3
  <path fill="currentColor" d="M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z"></path>
4
4
  </svg>`,word:`<svg
package/lib/Attachment.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { q as x, C as y, N as j, u as D, m as P } from "./index-sVScpCFG.js";
2
- import { E as R, l as $, k as I, A as T } from "./index-BIqaogQg.js";
2
+ import { E as R, l as $, k as I, A as T } from "./index-C3zg3DPB.js";
3
3
  import { jsx as e, Fragment as L, jsxs as f } from "react/jsx-runtime";
4
4
  import { useRef as O, useState as Z, useCallback as k, useEffect as W } from "react";
5
5
  import { LucideTableProperties as q, LucideSheet as K, LucideImage as U, LucideFile as G, LucideVideo as J, LucideAudioLines as Q } from "lucide-react";
6
6
  import { n as X, e as Y, a as ee, b as N } from "./file-BLas99n7.js";
7
7
  import { u as te } from "./index-0OnGZkVF.js";
8
8
  import { g as c } from "./dom-dataset-CIEeltF6.js";
9
- import { u as re, a as ie } from "./useButtonProps-C_bqxmHi.js";
9
+ import { u as re, a as ie } from "./useButtonProps-cMoicZgd.js";
10
10
  const oe = {
11
11
  audio: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-audio-lines"><path d="M2 10v3"/><path d="M6 6v11"/><path d="M10 3v18"/><path d="M14 8v7"/><path d="M18 5v13"/><path d="M22 10v3"/></svg>',
12
12
  video: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-video"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>',
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-BBNITgNi.cjs"),a=require("./jsx-runtime-C_NLcKys.cjs"),l=require("react/jsx-runtime"),g=require("./index-BvIJKpX1.cjs");require("react");const p=require("./useButtonProps-DEtmDVPr.cjs");var m=/^\s*>\s$/,b=c.Node3.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return a.h("blockquote",{...c.mergeAttributes(this.options.HTMLAttributes,t),children:a.h("slot",{})})},parseMarkdown:(t,e)=>e.createNode("blockquote",void 0,e.parseChildren(t.tokens||[])),renderMarkdown:(t,e)=>{if(!t.content)return"";const o=">",n=[];return t.content.forEach(i=>{const u=e.renderChildren([i]).split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-BBNITgNi.cjs"),a=require("./jsx-runtime-C_NLcKys.cjs"),l=require("react/jsx-runtime"),g=require("./index-C838s-or.cjs");require("react");const p=require("./useButtonProps-DfnJiJLV.cjs");var m=/^\s*>\s$/,b=c.Node3.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return a.h("blockquote",{...c.mergeAttributes(this.options.HTMLAttributes,t),children:a.h("slot",{})})},parseMarkdown:(t,e)=>e.createNode("blockquote",void 0,e.parseChildren(t.tokens||[])),renderMarkdown:(t,e)=>{if(!t.content)return"";const o=">",n=[];return t.content.forEach(i=>{const u=e.renderChildren([i]).split(`
2
2
  `).map(r=>r.trim()===""?o:`${o} ${r}`);n.push(u.join(`
3
3
  `))}),n.join(`
4
4
  ${o}
package/lib/Blockquote.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { N as m, w as h, m as k } from "./index-sVScpCFG.js";
2
2
  import { h as a } from "./jsx-runtime-CT7Pcg-t.js";
3
3
  import { jsx as l, Fragment as f } from "react/jsx-runtime";
4
- import { A as g } from "./index-BIqaogQg.js";
4
+ import { A as g } from "./index-C3zg3DPB.js";
5
5
  import "react";
6
- import { u as b, a as q } from "./useButtonProps-C_bqxmHi.js";
6
+ import { u as b, a as q } from "./useButtonProps-cMoicZgd.js";
7
7
  var v = /^\s*>\s$/, B = m.create({
8
8
  name: "blockquote",
9
9
  addOptions() {
package/lib/Bold.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-BBNITgNi.cjs"),a=require("./jsx-runtime-C_NLcKys.cjs"),l=require("./index-BvIJKpX1.cjs"),s=require("react/jsx-runtime");require("react");const u=require("./useButtonProps-DEtmDVPr.cjs");var B=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,_=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,k=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,v=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,M=o.Mark.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return a.h("strong",{...o.mergeAttributes(this.options.HTMLAttributes,t),children:a.h("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[o.markInputRule({find:B,type:this.type}),o.markInputRule({find:k,type:this.type})]},addPasteRules(){return[o.markPasteRule({find:_,type:this.type}),o.markPasteRule({find:v,type:this.type})]}});function b(){const t=u.useButtonProps(c.name),{icon:e=void 0,tooltip:r=void 0,shortcutKeys:n=void 0,tooltipOptions:p={},action:i=void 0,isActive:g=void 0}=(t==null?void 0:t.componentProps)??{},{dataState:m,disabled:d,update:h}=u.useToggleActive(g),y=()=>{d||i&&(i(),h())};return t?s.jsx(l.ActionButton,{action:y,dataState:m,disabled:d,icon:e,shortcutKeys:n,tooltip:r,tooltipOptions:p}):s.jsx(s.Fragment,{})}const c=M.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:r,extension:n})=>({component:l.ActionButton,componentProps:{action:()=>e.commands.toggleBold(),isActive:()=>e.isActive("bold"),icon:"Bold",shortcutKeys:n.options.shortcutKeys??["mod","B"],tooltip:r("editor.bold.tooltip")}})}}});exports.Bold=c;exports.RichTextBold=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-BBNITgNi.cjs"),a=require("./jsx-runtime-C_NLcKys.cjs"),l=require("./index-C838s-or.cjs"),s=require("react/jsx-runtime");require("react");const u=require("./useButtonProps-DfnJiJLV.cjs");var B=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,_=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,k=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,v=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,M=o.Mark.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return a.h("strong",{...o.mergeAttributes(this.options.HTMLAttributes,t),children:a.h("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[o.markInputRule({find:B,type:this.type}),o.markInputRule({find:k,type:this.type})]},addPasteRules(){return[o.markPasteRule({find:_,type:this.type}),o.markPasteRule({find:v,type:this.type})]}});function b(){const t=u.useButtonProps(c.name),{icon:e=void 0,tooltip:r=void 0,shortcutKeys:n=void 0,tooltipOptions:p={},action:i=void 0,isActive:g=void 0}=(t==null?void 0:t.componentProps)??{},{dataState:m,disabled:d,update:h}=u.useToggleActive(g),y=()=>{d||i&&(i(),h())};return t?s.jsx(l.ActionButton,{action:y,dataState:m,disabled:d,icon:e,shortcutKeys:n,tooltip:r,tooltipOptions:p}):s.jsx(s.Fragment,{})}const c=M.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:r,extension:n})=>({component:l.ActionButton,componentProps:{action:()=>e.commands.toggleBold(),isActive:()=>e.isActive("bold"),icon:"Bold",shortcutKeys:n.options.shortcutKeys??["mod","B"],tooltip:r("editor.bold.tooltip")}})}}});exports.Bold=c;exports.RichTextBold=b;
package/lib/Bold.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { M as _, f as a, h as i, m as f } from "./index-sVScpCFG.js";
2
2
  import { h as d } from "./jsx-runtime-CT7Pcg-t.js";
3
- import { A as l } from "./index-BIqaogQg.js";
3
+ import { A as l } from "./index-C3zg3DPB.js";
4
4
  import { jsx as u, Fragment as y } from "react/jsx-runtime";
5
5
  import "react";
6
- import { u as M, a as v } from "./useButtonProps-C_bqxmHi.js";
6
+ import { u as M, a as v } from "./useButtonProps-cMoicZgd.js";
7
7
  var B = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, k = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, b = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, A = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, R = _.create({
8
8
  name: "bold",
9
9
  addOptions() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-CApXPpjF.cjs"),s=require("react/jsx-runtime"),B=require("./index-BvIJKpX1.cjs");require("react");const c=require("./useButtonProps-DEtmDVPr.cjs");function x(){const t=c.useButtonProps(r.name),{icon:e=void 0,tooltip:i=void 0,shortcutKeys:o=void 0,tooltipOptions:l={},action:n=void 0,isActive:d=void 0}=(t==null?void 0:t.componentProps)??{},{dataState:a,disabled:u,update:p}=c.useToggleActive(d),v=()=>{u||n&&(n(),p())};return t?s.jsx(B.ActionButton,{action:v,dataState:a,disabled:u,icon:e,shortcutKeys:o,tooltip:i,tooltipOptions:l}):s.jsx(s.Fragment,{})}const r=m.BulletList.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:i,extension:o})=>({componentProps:{action:()=>e.commands.toggleBulletList(),isActive:()=>e.isActive("bulletList"),disabled:!1,shortcutKeys:o.options.shortcutKeys??["shift","mod","8"],icon:"List",tooltip:i("editor.bulletlist.tooltip")}})}}});exports.BulletList=r;exports.RichTextBulletList=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-CApXPpjF.cjs"),s=require("react/jsx-runtime"),B=require("./index-C838s-or.cjs");require("react");const c=require("./useButtonProps-DfnJiJLV.cjs");function x(){const t=c.useButtonProps(r.name),{icon:e=void 0,tooltip:i=void 0,shortcutKeys:o=void 0,tooltipOptions:l={},action:n=void 0,isActive:d=void 0}=(t==null?void 0:t.componentProps)??{},{dataState:a,disabled:u,update:p}=c.useToggleActive(d),v=()=>{u||n&&(n(),p())};return t?s.jsx(B.ActionButton,{action:v,dataState:a,disabled:u,icon:e,shortcutKeys:o,tooltip:i,tooltipOptions:l}):s.jsx(s.Fragment,{})}const r=m.BulletList.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:i,extension:o})=>({componentProps:{action:()=>e.commands.toggleBulletList(),isActive:()=>e.isActive("bulletList"),disabled:!1,shortcutKeys:o.options.shortcutKeys??["shift","mod","8"],icon:"List",tooltip:i("editor.bulletlist.tooltip")}})}}});exports.BulletList=r;exports.RichTextBulletList=x;
package/lib/BulletList.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { B as d } from "./index-DRHrDScg.js";
2
2
  import { jsx as r, Fragment as m } from "react/jsx-runtime";
3
- import { A as f } from "./index-BIqaogQg.js";
3
+ import { A as f } from "./index-C3zg3DPB.js";
4
4
  import "react";
5
- import { u as v, a as A } from "./useButtonProps-C_bqxmHi.js";
5
+ import { u as v, a as A } from "./useButtonProps-cMoicZgd.js";
6
6
  function y() {
7
7
  const t = v(B.name), {
8
8
  icon: o = void 0,
package/lib/Clear.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index-BBNITgNi.cjs"),n=require("react/jsx-runtime"),v=require("./index-BvIJKpX1.cjs"),c=require("./useButtonProps-DEtmDVPr.cjs");function f(){const t=c.useButtonProps(s.name),{icon:e=void 0,tooltip:o=void 0,shortcutKeys:a=void 0,tooltipOptions:u={},action:i=void 0,isActive:l=void 0}=(t==null?void 0:t.componentProps)??{},{disabled:r}=c.useActive(l),d=()=>{r||i&&i()};return t?n.jsx(v.ActionButton,{action:d,disabled:r,icon:e,shortcutKeys:a,tooltip:o,tooltipOptions:u}):n.jsx(n.Fragment,{})}const s=p.Node3.create({name:"clear",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:o})=>({componentProps:{action:()=>e.chain().focus().clearNodes().unsetAllMarks().run(),isActive:()=>e.can().chain().focus().clearNodes().unsetAllMarks().run(),icon:"Eraser",tooltip:o("editor.clear.tooltip")}})}}});exports.Clear=s;exports.RichTextClear=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index-BBNITgNi.cjs"),n=require("react/jsx-runtime"),v=require("./index-C838s-or.cjs"),c=require("./useButtonProps-DfnJiJLV.cjs");function f(){const t=c.useButtonProps(s.name),{icon:e=void 0,tooltip:o=void 0,shortcutKeys:a=void 0,tooltipOptions:u={},action:i=void 0,isActive:l=void 0}=(t==null?void 0:t.componentProps)??{},{disabled:r}=c.useActive(l),d=()=>{r||i&&i()};return t?n.jsx(v.ActionButton,{action:d,disabled:r,icon:e,shortcutKeys:a,tooltip:o,tooltipOptions:u}):n.jsx(n.Fragment,{})}const s=p.Node3.create({name:"clear",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:o})=>({componentProps:{action:()=>e.chain().focus().clearNodes().unsetAllMarks().run(),isActive:()=>e.can().chain().focus().clearNodes().unsetAllMarks().run(),icon:"Eraser",tooltip:o("editor.clear.tooltip")}})}}});exports.Clear=s;exports.RichTextClear=f;
package/lib/Clear.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { N as p } from "./index-sVScpCFG.js";
2
2
  import { jsx as e, Fragment as l } from "react/jsx-runtime";
3
- import { A as m } from "./index-BIqaogQg.js";
4
- import { u as d, b as f } from "./useButtonProps-C_bqxmHi.js";
3
+ import { A as m } from "./index-C3zg3DPB.js";
4
+ import { u as d, b as f } from "./useButtonProps-cMoicZgd.js";
5
5
  function b() {
6
6
  const o = d(v.name), {
7
7
  icon: t = void 0,
package/lib/Code.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-BBNITgNi.cjs"),i=require("react/jsx-runtime"),h=require("./index-BvIJKpX1.cjs");require("react");const a=require("./useButtonProps-DEtmDVPr.cjs");var x=/(^|[^`])`([^`]+)`(?!`)$/,C=/(^|[^`])`([^`]+)`(?!`)/g,v=o.Mark.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",o.mergeAttributes(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[o.markInputRule({find:x,type:this.type})]},addPasteRules(){return[o.markPasteRule({find:C,type:this.type})]}});function M(){const e=a.useButtonProps(u.name),{icon:t=void 0,tooltip:r=void 0,shortcutKeys:n=void 0,tooltipOptions:c={},action:s=void 0,isActive:p=void 0}=(e==null?void 0:e.componentProps)??{},{dataState:l,disabled:d,update:m}=a.useToggleActive(p),g=()=>{d||s&&(s(),m())};return e?i.jsx(h.ActionButton,{action:g,dataState:l,disabled:d,icon:t,shortcutKeys:n,tooltip:r,tooltipOptions:c}):i.jsx(i.Fragment,{})}const u=v.extend({addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button:({editor:t,t:r,extension:n})=>({componentProps:{action:()=>t.commands.toggleCode(),isActive:()=>t.isActive("code"),disabled:!t.can().toggleCode(),icon:"Code",shortcutKeys:n.options.shortcutKeys??["mod","E"],tooltip:r("editor.code.tooltip")}})}}});exports.Code=u;exports.RichTextCode=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-BBNITgNi.cjs"),i=require("react/jsx-runtime"),h=require("./index-C838s-or.cjs");require("react");const a=require("./useButtonProps-DfnJiJLV.cjs");var x=/(^|[^`])`([^`]+)`(?!`)$/,C=/(^|[^`])`([^`]+)`(?!`)/g,v=o.Mark.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",o.mergeAttributes(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[o.markInputRule({find:x,type:this.type})]},addPasteRules(){return[o.markPasteRule({find:C,type:this.type})]}});function M(){const e=a.useButtonProps(u.name),{icon:t=void 0,tooltip:r=void 0,shortcutKeys:n=void 0,tooltipOptions:c={},action:s=void 0,isActive:p=void 0}=(e==null?void 0:e.componentProps)??{},{dataState:l,disabled:d,update:m}=a.useToggleActive(p),g=()=>{d||s&&(s(),m())};return e?i.jsx(h.ActionButton,{action:g,dataState:l,disabled:d,icon:t,shortcutKeys:n,tooltip:r,tooltipOptions:c}):i.jsx(i.Fragment,{})}const u=v.extend({addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button:({editor:t,t:r,extension:n})=>({componentProps:{action:()=>t.commands.toggleCode(),isActive:()=>t.isActive("code"),disabled:!t.can().toggleCode(),icon:"Code",shortcutKeys:n.options.shortcutKeys??["mod","E"],tooltip:r("editor.code.tooltip")}})}}});exports.Code=u;exports.RichTextCode=M;
package/lib/Code.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { M as m, f as l, h as g, m as h } from "./index-sVScpCFG.js";
2
2
  import { jsx as a, Fragment as M } from "react/jsx-runtime";
3
- import { A as f } from "./index-BIqaogQg.js";
3
+ import { A as f } from "./index-C3zg3DPB.js";
4
4
  import "react";
5
- import { u as v, a as C } from "./useButtonProps-C_bqxmHi.js";
5
+ import { u as v, a as C } from "./useButtonProps-cMoicZgd.js";
6
6
  var k = /(^|[^`])`([^`]+)`(?!`)$/, x = /(^|[^`])`([^`]+)`(?!`)/g, y = m.create({
7
7
  name: "code",
8
8
  addOptions() {