reactjs-tiptap-editor 0.3.29 → 0.3.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/lib/{ActionMenuButton-5Y8QcYxD.cjs → ActionMenuButton-BCgqJsST.cjs} +1 -1
  2. package/lib/{ActionMenuButton-Cs9DM_16.js → ActionMenuButton-D97K0UWT.js} +5 -5
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +4 -4
  5. package/lib/Attachment.d.ts +4 -4
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +4 -4
  9. package/lib/Blockquote.d.ts +4 -4
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +4 -4
  13. package/lib/Bold.d.ts +4 -4
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +4 -4
  17. package/lib/BulletList.d.ts +4 -4
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +4 -4
  21. package/lib/Clear.d.ts +4 -4
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +4 -4
  25. package/lib/Code.d.ts +4 -4
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +4 -4
  29. package/lib/CodeBlock.d.ts +4 -4
  30. package/lib/CodeBlock.js +3 -2
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +4 -4
  33. package/lib/CodeView.d.ts +4 -4
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +4 -4
  37. package/lib/Color.d.ts +4 -4
  38. package/lib/Color.js +2 -2
  39. package/lib/Document.d.cts +4 -4
  40. package/lib/Document.d.ts +4 -4
  41. package/lib/Drawer-5Q_-WRhc.cjs +1 -0
  42. package/lib/{Drawer-BCmNLh31.js → Drawer-BHkje8ys.js} +250 -249
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +4 -4
  45. package/lib/Drawer.d.ts +4 -4
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +4 -4
  49. package/lib/Emoji.d.ts +4 -4
  50. package/lib/Emoji.js +22 -21
  51. package/lib/Excalidraw-CG498239.js +290 -0
  52. package/lib/Excalidraw-GUVW-IqC.cjs +1 -0
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +4 -4
  55. package/lib/Excalidraw.d.ts +4 -4
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +4 -4
  59. package/lib/ExportPdf.d.ts +4 -4
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +4 -4
  63. package/lib/ExportWord.d.ts +4 -4
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +4 -4
  67. package/lib/FontFamily.d.ts +4 -4
  68. package/lib/FontFamily.js +11 -10
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +4 -4
  71. package/lib/FontSize.d.ts +4 -4
  72. package/lib/FontSize.js +6 -5
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +4 -4
  75. package/lib/FormatPainter.d.ts +4 -4
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +4 -4
  79. package/lib/Heading.d.ts +4 -4
  80. package/lib/Heading.js +32 -31
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +4 -4
  83. package/lib/Highlight.d.ts +4 -4
  84. package/lib/Highlight.js +1 -1
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +4 -4
  87. package/lib/History.d.ts +4 -4
  88. package/lib/History.js +1 -1
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +4 -4
  91. package/lib/HorizontalRule.d.ts +4 -4
  92. package/lib/HorizontalRule.js +1 -1
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +4 -4
  95. package/lib/Iframe.d.ts +4 -4
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +4 -4
  99. package/lib/Image.d.ts +4 -4
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +4 -4
  103. package/lib/ImageGif.d.ts +4 -4
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +2 -2
  106. package/lib/ImportWord.d.cts +4 -4
  107. package/lib/ImportWord.d.ts +4 -4
  108. package/lib/ImportWord.js +3 -2
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +4 -4
  111. package/lib/Indent.d.ts +4 -4
  112. package/lib/Indent.js +1 -1
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +4 -4
  115. package/lib/Italic.d.ts +4 -4
  116. package/lib/Italic.js +1 -1
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +4 -4
  119. package/lib/Katex.d.ts +4 -4
  120. package/lib/Katex.js +41 -40
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +4 -4
  123. package/lib/LineHeight.d.ts +4 -4
  124. package/lib/LineHeight.js +17 -16
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +4 -4
  127. package/lib/Link.d.ts +4 -4
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +4 -4
  130. package/lib/ListItem.d.ts +4 -4
  131. package/lib/Mention.d.cts +4 -4
  132. package/lib/Mention.d.ts +4 -4
  133. package/lib/Mermaid.cjs +2 -2
  134. package/lib/Mermaid.d.cts +4 -4
  135. package/lib/Mermaid.d.ts +4 -4
  136. package/lib/Mermaid.js +138 -137
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +4 -4
  139. package/lib/MoreMark.d.ts +4 -4
  140. package/lib/MoreMark.js +1 -1
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +4 -4
  143. package/lib/MultiColumn.d.ts +4 -4
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +4 -4
  147. package/lib/OrderedList.d.ts +4 -4
  148. package/lib/OrderedList.js +1 -1
  149. package/lib/{RichTextEditor-DsUcQSbm.cjs → RichTextEditor-DWlLqTl9.cjs} +4 -4
  150. package/lib/{RichTextEditor-e6q30rbV.js → RichTextEditor-KP2Rgcqe.js} +18 -44
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +4 -4
  153. package/lib/SearchAndReplace.d.ts +4 -4
  154. package/lib/SearchAndReplace.js +68 -67
  155. package/lib/Selection.d.cts +4 -4
  156. package/lib/Selection.d.ts +4 -4
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +4 -4
  159. package/lib/SlashCommand.d.ts +4 -4
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +4 -4
  163. package/lib/Strike.d.ts +4 -4
  164. package/lib/Strike.js +1 -1
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +4 -4
  167. package/lib/SubAndSuperScript.d.ts +4 -4
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +4 -4
  171. package/lib/Table.d.ts +4 -4
  172. package/lib/Table.js +2 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +4 -4
  175. package/lib/TableOfContent.d.ts +4 -4
  176. package/lib/TableOfContent.js +50 -49
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +4 -4
  179. package/lib/TaskList.d.ts +4 -4
  180. package/lib/TaskList.js +1 -1
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +4 -4
  183. package/lib/TextAlign.d.ts +4 -4
  184. package/lib/TextAlign.js +8 -7
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +4 -4
  187. package/lib/TextBubble.d.ts +4 -4
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +4 -4
  191. package/lib/TextDirection.d.ts +4 -4
  192. package/lib/TextDirection.js +14 -13
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +4 -4
  195. package/lib/TextUnderline.d.ts +4 -4
  196. package/lib/TextUnderline.js +1 -1
  197. package/lib/TrailingNode.d.cts +4 -4
  198. package/lib/TrailingNode.d.ts +4 -4
  199. package/lib/{Twitter-Wb7cD3M-.js → Twitter-99ivY5qv.js} +62 -61
  200. package/lib/{Twitter-D2Osj8qP.cjs → Twitter-BvfvUtNT.cjs} +2 -2
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +4 -4
  203. package/lib/Twitter.d.ts +4 -4
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +4 -4
  207. package/lib/Video.d.ts +4 -4
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +4 -4
  211. package/lib/bubble-extra.d.ts +4 -4
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +5 -4
  215. package/lib/index.d.ts +5 -4
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +4 -4
  218. package/lib/locale-bundle.d.ts +4 -4
  219. package/lib/style.css +1 -1
  220. package/lib/{textarea-Csmx5x-_.js → textarea-CktfkXNe.js} +1 -1
  221. package/lib/{textarea-BVbzd9-k.cjs → textarea-DdH64g04.cjs} +1 -1
  222. package/package.json +1 -1
  223. package/lib/Drawer-DCAp7eZF.cjs +0 -1
  224. package/lib/Excalidraw-BI50RQL-.cjs +0 -1
  225. package/lib/Excalidraw-CYPcjYZB.js +0 -289
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),r=require("react"),a=require("@radix-ui/react-slot"),i=require("./RichTextEditor-DsUcQSbm.cjs"),d=r.forwardRef(({asChild:n,...t},h)=>{var x;const c=i.icons[t.icon],l=n?a.Slot:i.Button;return e.jsxs(i.Tooltip,{children:[e.jsx(i.TooltipTrigger,{asChild:!0,children:e.jsx(l,{className:"richtext-h-[32px] richtext-min-w-24 richtext-overflow-hidden richtext-px-[5px] richtext-py-0",disabled:t==null?void 0:t.disabled,ref:h,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}),c&&e.jsx(c,{className:"richtext-ml-1 richtext-size-3 richtext-shrink-0 richtext-text-zinc-500"})]})})}),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:[(t==null?void 0:t.tooltip)&&e.jsx("div",{children:t==null?void 0:t.tooltip}),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=d;
1
+ "use strict";const e=require("react/jsx-runtime"),r=require("react"),a=require("@radix-ui/react-slot"),i=require("./RichTextEditor-DWlLqTl9.cjs"),d=r.forwardRef(({asChild:n,...t},h)=>{var x;const c=i.icons[t.icon],l=n?a.Slot:i.Button;return e.jsxs(i.Tooltip,{children:[e.jsx(i.TooltipTrigger,{asChild:!0,children:e.jsx(l,{className:"richtext-h-[32px] richtext-min-w-24 richtext-overflow-hidden richtext-px-[5px] richtext-py-0",disabled:t==null?void 0:t.disabled,ref:h,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}),c&&e.jsx(c,{className:"richtext-ml-1 richtext-size-3 richtext-shrink-0 richtext-text-zinc-500"})]})})}),e.jsx(i.TooltipContent,{...t.tooltipOptions,children:e.jsxs("div",{className:"richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center",children:[(t==null?void 0:t.tooltip)&&e.jsx("div",{children:t==null?void 0:t.tooltip}),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=d;
@@ -1,12 +1,12 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import n from "react";
3
3
  import { Slot as a } from "@radix-ui/react-slot";
4
- import { i as r, T as d, a as m, B as f, b as u, g } from "./RichTextEditor-e6q30rbV.js";
4
+ import { i as d, T as r, a as m, B as f, b as u, g as o } from "./RichTextEditor-KP2Rgcqe.js";
5
5
  const T = n.forwardRef(
6
6
  ({ asChild: l, ...t }, x) => {
7
7
  var h;
8
- const c = r[t.icon];
9
- return /* @__PURE__ */ i(d, { children: [
8
+ const c = d[t.icon];
9
+ return /* @__PURE__ */ i(r, { children: [
10
10
  /* @__PURE__ */ e(m, { asChild: !0, children: /* @__PURE__ */ e(
11
11
  l ? a : f,
12
12
  {
@@ -21,9 +21,9 @@ const T = n.forwardRef(
21
21
  ] })
22
22
  }
23
23
  ) }),
24
- /* @__PURE__ */ e(u, { children: /* @__PURE__ */ i("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
24
+ /* @__PURE__ */ e(u, { ...t.tooltipOptions, children: /* @__PURE__ */ i("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
25
25
  (t == null ? void 0 : t.tooltip) && /* @__PURE__ */ e("div", { children: t == null ? void 0 : t.tooltip }),
26
- /* @__PURE__ */ e("div", { className: "richtext-flex", children: !!((h = t == null ? void 0 : t.shortcutKeys) != null && h.length) && /* @__PURE__ */ e("span", { children: g(t == null ? void 0 : t.shortcutKeys) }) })
26
+ /* @__PURE__ */ e("div", { className: "richtext-flex", children: !!((h = t == null ? void 0 : t.shortcutKeys) != null && h.length) && /* @__PURE__ */ e("span", { children: o(t == null ? void 0 : t.shortcutKeys) }) })
27
27
  ] }) })
28
28
  ] });
29
29
  }
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index-ByRfqzMr.cjs"),i=require("./dom-dataset-Byuf1YmW.cjs"),a=require("./RichTextEditor-DsUcQSbm.cjs"),e=require("react/jsx-runtime"),p=require("lucide-react"),g=require("react"),V=require("./index-D_A0TBRA.cjs"),S={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 b=require("./index-ByRfqzMr.cjs"),i=require("./dom-dataset-Byuf1YmW.cjs"),a=require("./RichTextEditor-DWlLqTl9.cjs"),e=require("react/jsx-runtime"),p=require("lucide-react"),g=require("react"),V=require("./index-D_A0TBRA.cjs"),S={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
@@ -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
  }
@@ -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
  }
package/lib/Attachment.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { N as j, m as $ } from "./index-DI9T3iLd.js";
2
2
  import { N as x, c as y, R as D, g as s } from "./dom-dataset-Di3tIRrR.js";
3
- import { W as P, X as R, Y as I, Z, _ as W, $ as O, a0 as C, A as N } from "./RichTextEditor-e6q30rbV.js";
3
+ import { W as P, X as R, Y as I, Z, _ as W, $ as O, a0 as C, A as N } from "./RichTextEditor-KP2Rgcqe.js";
4
4
  import { jsx as e, Fragment as A, jsxs as p } from "react/jsx-runtime";
5
5
  import { LucideTableProperties as U, LucideSheet as X, LucideImage as Y, LucideFile as q, LucideVideo as G, LucideAudioLines as J } from "lucide-react";
6
6
  import { useRef as K, useState as Q, useCallback as k, useEffect as ee } from "react";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-ByRfqzMr.cjs"),u=require("./RichTextEditor-DsUcQSbm.cjs"),s=/^\s*>\s$/,c=o.Node.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",o.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[o.wrappingInputRule({find:s,type:this.type})]}}),i=c.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),HTMLAttributes:{class:"blockquote"},button:({editor:e,t:n,extension:r})=>({component:u.ActionButton,componentProps:{action:()=>e.commands.toggleBlockquote(),isActive:()=>e.isActive("blockquote")||!1,disabled:!e.can().toggleBlockquote(),icon:"TextQuote",shortcutKeys:r.options.shortcutKeys??["shift","mod","B"],tooltip:n("editor.blockquote.tooltip")}})}}});exports.Blockquote=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-ByRfqzMr.cjs"),u=require("./RichTextEditor-DWlLqTl9.cjs"),s=/^\s*>\s$/,c=o.Node.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",o.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[o.wrappingInputRule({find:s,type:this.type})]}}),i=c.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),HTMLAttributes:{class:"blockquote"},button:({editor:e,t:n,extension:r})=>({component:u.ActionButton,componentProps:{action:()=>e.commands.toggleBlockquote(),isActive:()=>e.isActive("blockquote")||!1,disabled:!e.can().toggleBlockquote(),icon:"TextQuote",shortcutKeys:r.options.shortcutKeys??["shift","mod","B"],tooltip:n("editor.blockquote.tooltip")}})}}});exports.Blockquote=i;
@@ -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
  }
@@ -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
  }
package/lib/Blockquote.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { N as r, w as s, m as u } from "./index-DI9T3iLd.js";
2
- import { A as c } from "./RichTextEditor-e6q30rbV.js";
2
+ import { A as c } from "./RichTextEditor-KP2Rgcqe.js";
3
3
  const i = /^\s*>\s$/, a = r.create({
4
4
  name: "blockquote",
5
5
  addOptions() {
package/lib/Bold.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-ByRfqzMr.cjs"),r=require("./RichTextEditor-DsUcQSbm.cjs"),d=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,a=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,i=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,l=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,u=e.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["strong",e.mergeAttributes(this.options.HTMLAttributes,t),0]},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[e.markInputRule({find:d,type:this.type}),e.markInputRule({find:i,type:this.type})]},addPasteRules(){return[e.markPasteRule({find:a,type:this.type}),e.markPasteRule({find:l,type:this.type})]}}),g=u.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:s,t:o,extension:n})=>({component:r.ActionButton,componentProps:{action:()=>s.commands.toggleBold(),isActive:()=>s.isActive("bold")||!1,disabled:!1,icon:"Bold",shortcutKeys:n.options.shortcutKeys??["mod","B"],tooltip:o("editor.bold.tooltip")}})}}});exports.Bold=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-ByRfqzMr.cjs"),r=require("./RichTextEditor-DWlLqTl9.cjs"),d=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,a=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,i=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,l=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,u=e.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["strong",e.mergeAttributes(this.options.HTMLAttributes,t),0]},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[e.markInputRule({find:d,type:this.type}),e.markInputRule({find:i,type:this.type})]},addPasteRules(){return[e.markPasteRule({find:a,type:this.type}),e.markPasteRule({find:l,type:this.type})]}}),g=u.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:s,t:o,extension:n})=>({component:r.ActionButton,componentProps:{action:()=>s.commands.toggleBold(),isActive:()=>s.isActive("bold")||!1,disabled:!1,icon:"Bold",shortcutKeys:n.options.shortcutKeys??["mod","B"],tooltip:o("editor.bold.tooltip")}})}}});exports.Bold=g;
package/lib/Bold.d.cts CHANGED
@@ -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
  }
package/lib/Bold.d.ts CHANGED
@@ -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
  }
package/lib/Bold.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { M as d, c as s, d as o, m as a } from "./index-DI9T3iLd.js";
2
- import { A as i } from "./RichTextEditor-e6q30rbV.js";
2
+ import { A as i } from "./RichTextEditor-KP2Rgcqe.js";
3
3
  const l = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, u = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, p = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, g = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, m = d.create({
4
4
  name: "bold",
5
5
  addOptions() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),u=require("./RichTextEditor-DsUcQSbm.cjs"),p="listItem",s="textStyle",o=/^\s*([-+*])\s$/,l=i.Node.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",i.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(p,this.editor.getAttributes(s)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=i.wrappingInputRule({find:o,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=i.wrappingInputRule({find:o,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(s),editor:this.editor})),[t]}}),a=l.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:r,extension:n})=>({component:u.ActionButton,componentProps:{action:()=>e.commands.toggleBulletList(),isActive:()=>e.isActive("bulletList")||!1,disabled:!1,shortcutKeys:n.options.shortcutKeys??["shift","mod","8"],icon:"List",tooltip:r("editor.bulletlist.tooltip")}})}}});exports.BulletList=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),u=require("./RichTextEditor-DWlLqTl9.cjs"),p="listItem",s="textStyle",o=/^\s*([-+*])\s$/,l=i.Node.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",i.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(p,this.editor.getAttributes(s)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=i.wrappingInputRule({find:o,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=i.wrappingInputRule({find:o,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(s),editor:this.editor})),[t]}}),a=l.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:r,extension:n})=>({component:u.ActionButton,componentProps:{action:()=>e.commands.toggleBulletList(),isActive:()=>e.isActive("bulletList")||!1,disabled:!1,shortcutKeys:n.options.shortcutKeys??["shift","mod","8"],icon:"List",tooltip:r("editor.bulletlist.tooltip")}})}}});exports.BulletList=a;
@@ -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
  }
@@ -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
  }
package/lib/BulletList.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { N as p, w as s, m as u } from "./index-DI9T3iLd.js";
2
- import { A as l } from "./RichTextEditor-e6q30rbV.js";
2
+ import { A as l } from "./RichTextEditor-KP2Rgcqe.js";
3
3
  const a = "listItem", i = "textStyle", o = /^\s*([-+*])\s$/, m = p.create({
4
4
  name: "bulletList",
5
5
  addOptions() {
package/lib/Clear.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-ByRfqzMr.cjs"),r=require("./RichTextEditor-DsUcQSbm.cjs"),a=o.Node.create({name:"clear",addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button:({editor:t,t:n})=>({component:r.ActionButton,componentProps:{action:()=>t.chain().focus().clearNodes().unsetAllMarks().run(),disabled:!t.can().chain().focus().clearNodes().unsetAllMarks().run(),icon:"Eraser",tooltip:n("editor.clear.tooltip")}})}}});exports.Clear=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-ByRfqzMr.cjs"),r=require("./RichTextEditor-DWlLqTl9.cjs"),a=o.Node.create({name:"clear",addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button:({editor:t,t:n})=>({component:r.ActionButton,componentProps:{action:()=>t.chain().focus().clearNodes().unsetAllMarks().run(),disabled:!t.can().chain().focus().clearNodes().unsetAllMarks().run(),icon:"Eraser",tooltip:n("editor.clear.tooltip")}})}}});exports.Clear=a;
package/lib/Clear.d.cts CHANGED
@@ -133,8 +133,8 @@ declare module '@tiptap/core' {
133
133
 
134
134
  declare module '@tiptap/core' {
135
135
  interface Commands<ReturnType> {
136
- exportPdf: {
137
- exportToPdf: () => ReturnType;
136
+ excalidraw: {
137
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
138
138
  };
139
139
  }
140
140
  }
@@ -142,8 +142,8 @@ declare module '@tiptap/core' {
142
142
 
143
143
  declare module '@tiptap/core' {
144
144
  interface Commands<ReturnType> {
145
- excalidraw: {
146
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
145
+ exportPdf: {
146
+ exportToPdf: () => ReturnType;
147
147
  };
148
148
  }
149
149
  }
package/lib/Clear.d.ts CHANGED
@@ -133,8 +133,8 @@ declare module '@tiptap/core' {
133
133
 
134
134
  declare module '@tiptap/core' {
135
135
  interface Commands<ReturnType> {
136
- exportPdf: {
137
- exportToPdf: () => ReturnType;
136
+ excalidraw: {
137
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
138
138
  };
139
139
  }
140
140
  }
@@ -142,8 +142,8 @@ declare module '@tiptap/core' {
142
142
 
143
143
  declare module '@tiptap/core' {
144
144
  interface Commands<ReturnType> {
145
- excalidraw: {
146
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
145
+ exportPdf: {
146
+ exportToPdf: () => ReturnType;
147
147
  };
148
148
  }
149
149
  }
package/lib/Clear.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { N as r } from "./index-DI9T3iLd.js";
2
- import { A as e } from "./RichTextEditor-e6q30rbV.js";
2
+ import { A as e } from "./RichTextEditor-KP2Rgcqe.js";
3
3
  const s = /* @__PURE__ */ r.create({
4
4
  name: "clear",
5
5
  addOptions() {
package/lib/Code.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-ByRfqzMr.cjs"),s=require("./RichTextEditor-DsUcQSbm.cjs"),d=/(^|[^`])`([^`]+)`(?!`)/,i=/(^|[^`])`([^`]+)`(?!`)/g,u=t.Mark.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",t.mergeAttributes(this.options.HTMLAttributes,e),0]},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[t.markInputRule({find:d,type:this.type})]},addPasteRules(){return[t.markPasteRule({find:i,type:this.type})]}}),a=u.extend({addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button:({editor:o,t:n,extension:r})=>({component:s.ActionButton,componentProps:{action:()=>o.commands.toggleCode(),isActive:()=>o.isActive("code")||!1,disabled:!o.can().toggleCode(),icon:"Code",shortcutKeys:r.options.shortcutKeys??["mod","E"],tooltip:n("editor.code.tooltip")}})}}});exports.Code=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-ByRfqzMr.cjs"),s=require("./RichTextEditor-DWlLqTl9.cjs"),d=/(^|[^`])`([^`]+)`(?!`)/,i=/(^|[^`])`([^`]+)`(?!`)/g,u=t.Mark.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",t.mergeAttributes(this.options.HTMLAttributes,e),0]},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[t.markInputRule({find:d,type:this.type})]},addPasteRules(){return[t.markPasteRule({find:i,type:this.type})]}}),a=u.extend({addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button:({editor:o,t:n,extension:r})=>({component:s.ActionButton,componentProps:{action:()=>o.commands.toggleCode(),isActive:()=>o.isActive("code")||!1,disabled:!o.can().toggleCode(),icon:"Code",shortcutKeys:r.options.shortcutKeys??["mod","E"],tooltip:n("editor.code.tooltip")}})}}});exports.Code=a;
package/lib/Code.d.cts CHANGED
@@ -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
  }
package/lib/Code.d.ts CHANGED
@@ -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
  }
package/lib/Code.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { M as s, c as n, d, m as a } from "./index-DI9T3iLd.js";
2
- import { A as i } from "./RichTextEditor-e6q30rbV.js";
2
+ import { A as i } from "./RichTextEditor-KP2Rgcqe.js";
3
3
  const u = /(^|[^`])`([^`]+)`(?!`)/, c = /(^|[^`])`([^`]+)`(?!`)/g, p = s.create({
4
4
  name: "code",
5
5
  addOptions() {
package/lib/CodeBlock.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Le=require("./index-ByRfqzMr.cjs"),ge=require("./dom-dataset-Byuf1YmW.cjs"),S=require("react/jsx-runtime"),G=require("./RichTextEditor-DsUcQSbm.cjs"),ae=require("react"),sa=require("@radix-ui/react-select"),et=require("lucide-react");function Sn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const pe=Sn(ae),F=Sn(sa),Gt=F.Root,oa=F.Value,gt=pe.forwardRef(({className:e,children:t,...n},i)=>S.jsxs(F.Trigger,{ref:i,className:G.cn("richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-2 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",e),...n,children:[t,S.jsx(F.Icon,{asChild:!0,children:S.jsx(et.ChevronDown,{className:"richtext-h-4 richtext-w-4 richtext-opacity-50"})})]}));gt.displayName=F.Trigger.displayName;const kn=pe.forwardRef(({className:e,...t},n)=>S.jsx(F.ScrollUpButton,{ref:n,className:G.cn("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",e),...t,children:S.jsx(et.ChevronUp,{className:"richtext-h-4 richtext-w-4"})}));kn.displayName=F.ScrollUpButton.displayName;const Tn=pe.forwardRef(({className:e,...t},n)=>S.jsx(F.ScrollDownButton,{ref:n,className:G.cn("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",e),...t,children:S.jsx(et.ChevronDown,{className:"richtext-h-4 richtext-w-4"})}));Tn.displayName=F.ScrollDownButton.displayName;const mt=pe.forwardRef(({className:e,children:t,position:n="popper",...i},l)=>S.jsx(F.Portal,{children:S.jsxs(F.Content,{ref:l,className:G.cn("richtext-relative richtext-z-50 richtext-max-h-60 richtext-overflow-y-auto richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md richtext-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",e),position:n,...i,children:[S.jsx(kn,{}),S.jsx(F.Viewport,{className:G.cn("richtext-p-1",n==="popper"&&"richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"),children:t}),S.jsx(Tn,{})]})}));mt.displayName=F.Content.displayName;const la=pe.forwardRef(({className:e,...t},n)=>S.jsx(F.Label,{ref:n,className:G.cn("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold",e),...t}));la.displayName=F.Label.displayName;const ht=pe.forwardRef(({className:e,children:t,...n},i)=>S.jsxs(F.Item,{ref:i,className:G.cn("richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",e),...n,children:[S.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center",children:S.jsx(F.ItemIndicator,{children:S.jsx(et.Check,{className:"richtext-h-4 richtext-w-4"})})}),S.jsx(F.ItemText,{children:t})]}));ht.displayName=F.Item.displayName;const ca=pe.forwardRef(({className:e,...t},n)=>S.jsx(F.Separator,{ref:n,className:G.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",e),...t}));ca.displayName=F.Separator.displayName;function da({action:e,...t}){return S.jsx(G.ActionButton,{action:e,disabled:t==null?void 0:t.disabled,icon:t==null?void 0:t.icon,tooltip:t==null?void 0:t.tooltip})}var Ce={},X=Symbol(),te=Symbol(),Ct=e=>typeof e=="string"?_[e]:e,_={plain:Ce,plaintext:Ce,text:Ce,txt:Ce},Ne=(e,t)=>(t[te]||Oe)(e,t),Oe=(e,t)=>{for(var n=[e],i,l=[],u=0;i=Ct(t[X]);)delete t[X],Object.assign(t,i);for(Ln(e,t,n,0);l[u++]=n[0],n=n[1];);return l},zt="</span>",Me="",Ae="",Nn=e=>{for(var t="",n=e.length,i=0;i<n;)t+=On(e[i++]);return t},On=e=>{if(e instanceof me){var{type:t,alias:n,content:i}=e,l=Me,u=Ae,f=`<span class="token ${t+(n?" "+n:"")+(t=="keyword"&&typeof i=="string"?" keyword-"+i:"")}">`;Ae+=zt,Me+=f;var E=On(i);return Me=l,Ae=u,f+E+zt}return typeof e!="string"?Nn(e):(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;"),Ae&&e.includes(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Le=require("./index-ByRfqzMr.cjs"),ge=require("./dom-dataset-Byuf1YmW.cjs"),S=require("react/jsx-runtime"),G=require("./RichTextEditor-DWlLqTl9.cjs"),ae=require("react"),sa=require("@radix-ui/react-select"),et=require("lucide-react");function Sn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const pe=Sn(ae),F=Sn(sa),Gt=F.Root,oa=F.Value,gt=pe.forwardRef(({className:e,children:t,...n},i)=>S.jsxs(F.Trigger,{ref:i,className:G.cn("richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-2 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",e),...n,children:[t,S.jsx(F.Icon,{asChild:!0,children:S.jsx(et.ChevronDown,{className:"richtext-h-4 richtext-w-4 richtext-opacity-50"})})]}));gt.displayName=F.Trigger.displayName;const kn=pe.forwardRef(({className:e,...t},n)=>S.jsx(F.ScrollUpButton,{ref:n,className:G.cn("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",e),...t,children:S.jsx(et.ChevronUp,{className:"richtext-h-4 richtext-w-4"})}));kn.displayName=F.ScrollUpButton.displayName;const Tn=pe.forwardRef(({className:e,...t},n)=>S.jsx(F.ScrollDownButton,{ref:n,className:G.cn("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",e),...t,children:S.jsx(et.ChevronDown,{className:"richtext-h-4 richtext-w-4"})}));Tn.displayName=F.ScrollDownButton.displayName;const mt=pe.forwardRef(({className:e,children:t,position:n="popper",...i},l)=>S.jsx(F.Portal,{children:S.jsxs(F.Content,{ref:l,className:G.cn("richtext-relative richtext-z-50 richtext-max-h-60 richtext-overflow-y-auto richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md richtext-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",e),position:n,...i,children:[S.jsx(kn,{}),S.jsx(F.Viewport,{className:G.cn("richtext-p-1",n==="popper"&&"richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"),children:t}),S.jsx(Tn,{})]})}));mt.displayName=F.Content.displayName;const la=pe.forwardRef(({className:e,...t},n)=>S.jsx(F.Label,{ref:n,className:G.cn("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold",e),...t}));la.displayName=F.Label.displayName;const ht=pe.forwardRef(({className:e,children:t,...n},i)=>S.jsxs(F.Item,{ref:i,className:G.cn("richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",e),...n,children:[S.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center",children:S.jsx(F.ItemIndicator,{children:S.jsx(et.Check,{className:"richtext-h-4 richtext-w-4"})})}),S.jsx(F.ItemText,{children:t})]}));ht.displayName=F.Item.displayName;const ca=pe.forwardRef(({className:e,...t},n)=>S.jsx(F.Separator,{ref:n,className:G.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",e),...t}));ca.displayName=F.Separator.displayName;function da({action:e,...t}){return S.jsx(G.ActionButton,{action:e,disabled:t==null?void 0:t.disabled,icon:t==null?void 0:t.icon,tooltip:t==null?void 0:t.tooltip,tooltipOptions:t==null?void 0:t.tooltipOptions})}var Ce={},X=Symbol(),te=Symbol(),Ct=e=>typeof e=="string"?_[e]:e,_={plain:Ce,plaintext:Ce,text:Ce,txt:Ce},Ne=(e,t)=>(t[te]||Oe)(e,t),Oe=(e,t)=>{for(var n=[e],i,l=[],u=0;i=Ct(t[X]);)delete t[X],Object.assign(t,i);for(Ln(e,t,n,0);l[u++]=n[0],n=n[1];);return l},zt="</span>",Me="",Ae="",Nn=e=>{for(var t="",n=e.length,i=0;i<n;)t+=On(e[i++]);return t},On=e=>{if(e instanceof me){var{type:t,alias:n,content:i}=e,l=Me,u=Ae,f=`<span class="token ${t+(n?" "+n:"")+(t=="keyword"&&typeof i=="string"?" keyword-"+i:"")}">`;Ae+=zt,Me+=f;var E=On(i);return Me=l,Ae=u,f+E+zt}return typeof e!="string"?Nn(e):(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;"),Ae&&e.includes(`
2
2
  `)?e.replace(/\n/g,Ae+`
3
3
  `+Me):e)},Ln=(e,t,n,i,l)=>{for(var u in t)if(t[u])for(var f=0,E=t[u],y=Array.isArray(E)?E:[E];f<y.length;++f){if(l&&l[0]==u&&l[1]==f)return;for(var w=y[f],m=w.pattern||w,p=Ct(w.inside),c=w.lookbehind,b=w.greedy&&m.global,g=w.alias,a=n,r=i;a&&(!l||r<l[2]);r+=a[0].length,a=a[1]){var d=a[0],o=0,s,h;if(!(d instanceof me)){if(m.lastIndex=b?r:0,s=m.exec(b?e:d),s&&c&&s[1]&&(h=s[1].length,s.index+=h,s[0]=s[0].slice(h)),b){if(!s)break;if(s[0]){for(var k=s.index,R=k+s[0].length,A;k>=r+(A=a[0].length);a=a[1],r+=A);if(a[0]instanceof me)continue;for(var v=a,E=r;(E+=v[0].length)<R;v=v[1],o++);d=e.slice(r,E),s.index-=r}}if(s&&s[0]){for(var k=s.index,N=s[0],T=d.slice(k+N.length),L=r+d.length,P=new me(u,p?Ne(N,p):N,N,g),M=a,Z=0,H;M=M[1],Z++<o;);T&&(!M||M[0]instanceof me?M=[T,M]:M[0]=T+M[0]),r+=k,a[0]=k?d.slice(0,k):P,k?a=a[1]=[P,M]:a[1]=M,o&&(Ln(e,t,a,r,H=[u,f,L]),L=H[2]),l&&L>l[2]&&(l[2]=L)}}}}};function me(e,t,n,i){this.type=e,this.content=t,this.alias=i,this.length=n.length}var Ve="\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINENO|_REMATCH|_SOURCE|_VERSINFO|_VERSION)?|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|E?UID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_(?:ADDRESS|ALL|IDENTIFICATION|MEASUREMENT|MONETARY|NAME|NUMERIC|PAPER|TELEPHONE|TIME)|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS[1-4]|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_(?:CONFIG_DIRS|CURRENT_DESKTOP|DATA_DIRS|GREETER_DATA_DIR|MENU_PREFIX|RUNTIME_DIR|SEAT|SEAT_PATH|SESSION_DESKTOP|SESSION_ID|SESSION_PATH|SESSION_TYPE|VTNR)|XMODIFIERS)\\b",_t={pattern:/(^(["']?)\w+\2)[ ]+\S.*/,lookbehind:!0,alias:"punctuation"},Cn={variable:/^\$\(|^`|\)$|`$/},Pe={bash:_t,environment:{pattern:RegExp("\\$"+Ve),alias:"constant"},variable:[{pattern:/\$?\(\([^]*?\)\)/g,greedy:!0,inside:{variable:[{pattern:/(^\$[^]+)../,lookbehind:!0},/^\$\(\(/],number:/\b0x[a-fA-F\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|&&|\|\||(?:\*\*|<<|>>|[%&|^!=<>/*+-])=?|[?:~]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:[^()]|\([^)]*\))*\)|`[^`]+`/g,greedy:!0,inside:Cn},{pattern:/\$\{[^}]*\}/g,greedy:!0,inside:{operator:/:[?=+-]?|[!/]|##?|%%?|\^\^?|,,?/,punctuation:/[[\]]/,environment:{pattern:RegExp("(\\{)"+Ve),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[a-fA-F\d]{8}|u[a-fA-F\d]{4}|x[a-fA-F\d]{1,2})/},ua=_t.inside=_.sh=_.shell=_.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,lookbehind:!0,alias:"variable"},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,lookbehind:!0,alias:"variable",inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Ve),lookbehind:!0,alias:"constant"}}},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?![^\s=])/,lookbehind:!0,alias:"variable"},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[^]*?\n\2/g,lookbehind:!0,greedy:!0,inside:Pe},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[^]*?\n\3/g,lookbehind:!0,greedy:!0,inside:{bash:_t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[^]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^\\"`$])*"/g,lookbehind:!0,greedy:!0,inside:Pe},{pattern:/(^|[^$\\])'[^']*'/g,lookbehind:!0,greedy:!0},{pattern:/\$'(?:\\[^]|[^\\'])*'/g,greedy:!0,inside:{entity:Pe.entity}}],environment:{pattern:RegExp("\\$?"+Ve),alias:"constant"},variable:Pe.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|c?fdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cron|crontab|c?split|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff3?|dig|dircolors|dirname|dirs?|dmesg|docker|docker-compose|du|[ef]?grep|eject|env|ethtool|expand|expect|expr|fdformat|fg|file|find|fmt|fold|format|free|fsck|fuser|g?awk|git|g?parted|groupadd|groupdel|groupmod|groups|grub-mkconfig|halt|head|hg|history|host|hostname|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|killall|less|link|ln|logname|logrotate|look|lpc|lprint[dq]?|lprm?|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mm?v|more|most|mtools|m?tr|mutt|nano|nc|netstat|nice|nl|node|nohup|notify-send|nslookup|op|open|passwd|paste|pathchk|ping|p?kill|p?npm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ra[mr]|reboot|remsync|rename|renice|rev|rmdir|rp?m|r?sync|[sr]?cp|screen|sdiff|se[dq]|sendmail|service|s?ftp|shellcheck|shuf|shutdown|sleep|s?locate|[sz]?sh|stat|strace|sudo|sum?|suspend|swapon|sysctl|tac|tail|tar|tee|time|timeout|h?top|touch|traceroute|t?sort|tty|u?mount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vim?|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|g?zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|[ls]et|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[[\]{};\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"].forEach(e=>Cn[e]=ua[e]);var Mn=/(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g,$e=Mn.source,jt={rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^)]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}};jt[X]=_.css={comment:/\/\*[^]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|${$e})*?(?:;|(?=\\s*\\{))`),inside:jt},url:{pattern:RegExp(`\\burl\\((?:${$e}|(?:[^\\\\
4
4
  "')=]|\\\\[^])*)\\)`,"gi"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+$e+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|${$e})*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:Mn,greedy:!0},property:{pattern:/(^|[^-\w\xa0-\uffff])(?!\d)(?:(?!\s)[-\w\xa0-\uffff])+(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z\d])[-a-z\d]+(?=\()/i,lookbehind:!0},punctuation:/[(){},:;]/};var Be=(e,t)=>{if(t.has(e))return t.get(e);var n=e,i=pa.call(e).slice(8,-1);if(i=="Object"){t.set(e,n={});for(var l in e)n[l]=Be(e[l],t);e[X]&&(n[X]=Be(e[X],t)),e[te]&&(n[te]=e[te])}else if(i=="Array"){t.set(e,n=[]);for(var u=0,f=e.length;u<f;u++)n[u]=Be(e[u],t)}return n},tt=e=>Be(e,new Map),se=(e,t)=>Object.assign(tt(_[e]),t),$=(e,t,n)=>{var i={};for(var l in e)i[l]=e[l],delete e[l];for(var l in i)l==t&&Object.assign(e,n),n.hasOwnProperty(l)||(e[l]=i[l])},pa={}.toString,Ze=_.css,Ht={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},Vt={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};Ze.selector.inside=Ze.atrule.inside["selector-function-argument"].inside={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:/\[(?:[^[\]"']|(["'])(?:\\[^]|(?!\1)[^\\\n])*\1)*\]/g,greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xa0-\uffff])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xa0-\uffff])+/,lookbehind:!0},"attr-value":{pattern:/(=\s*)(?:(?!\s)[-\w\xa0-\uffff])+(?=\s*$)|(["'])(?:\\[^]|(?!\2)[^\\\n])*\2/,lookbehind:!0},operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/};$(Ze,"property",{variable:{pattern:/(^|[^-\w\xa0-\uffff])--(?!\d)(?:(?!\s)[-\w\xa0-\uffff])*/i,lookbehind:!0}});$(Ze,"function",{operator:{pattern:/(\s)[/*+-](?!\S)/,lookbehind:!0},hexcode:{pattern:/\B#[a-f\d]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:(?:alice|cadet|cornflower|deepsky|dodger|midnight|powder|royal|sky|steel)blue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blueviolet|brown|burlywood|chartreuse|chocolate|coral|cornsilk|crimson|(?:dark)?(?:blue|cyan|goldenrod|gr[ae]y|green|khaki|magenta|olivegreen|orange|orchid|red|salmon|seagreen|slateblue|slategr[ae]y|turquoise|violet)|deeppink|dimgr[ae]y|firebrick|floralwhite|(?:forest|lawn|lime|pale|spring)green|fuchsia|gainsboro|ghostwhite|gold|greenyellow|honeydew|hotpink|indianred|indigo|ivory|lavender|lavenderblush|lemonchiffon|light(?:blue|coral|cyan|goldenrodyellow|gr[ae]y|green|pink|salmon|seagreen|skyblue|slategr[ae]y|steelblue|yellow)|lime|linen|maroon|medium(?:aquamarine|blue|orchid|purple|seagreen|slateblue|springgreen|turquoise|violetred)|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orangered|palegoldenrod|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|purple|rebeccapurple|rosybrown|saddlebrown|sandybrown|seashell|sienna|silver|snow|tan|teal|thistle|tomato|transparent|wheat|white|whitesmoke|yellow|yellowgreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{function:/^[^(]+/,unit:Ht,number:Vt,punctuation:/[(),]/}}],entity:/\\[a-f\d]{1,8}/i,unit:Ht,number:Vt});_.ini={comment:{pattern:/(^[ \f \v]*)[#;].*/m,lookbehind:!0},section:{pattern:/(^[ \f \v]*)\[[^\n\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f \v]*)[^ \f \v\]]+(?:[ \f \v]+[^ \f \v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/[[\]]/}},key:{pattern:/(^[ \f \v]*)[^ \f\n \v=]+(?:[ \f \v]+[^ \f\n \v=]+)*(?=[ \f \v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f \v]*)[^ \f\n \v]+(?:[ \f \v]+[^ \f\n \v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^(["']).+(?=\1$)/,lookbehind:!0}}},punctuation:/=/};var oe=()=>({pattern:/\/\/.*|\/\*[^]*?(?:\*\/|$)/g,greedy:!0}),Mt=()=>({pattern:/(["'])(?:\\[^]|(?!\1)[^\\\n])*\1/g,greedy:!0}),Pn=/\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,re=/[()[\]{}.,:;]/,K=/\b(?:false|true)\b/,st={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[^]+/}};st.expression.inside=_.kts=_.kt=_.kotlin={"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:st},string:/[^]+/}},{pattern:/"(?:\\.|[^\\\n"$]|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\\\)*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:st},string:/[^]+/}}],char:{pattern:/'(?:[^\\\n']|\\(?:.|u[a-fA-F\d]{0,4}))'/g,greedy:!0},comment:oe(),annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"},keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},boolean:K,label:{pattern:/\b\w+@|@\w+/,alias:"symbol"},function:{pattern:/(?:`[^\n`]+`|\b\w+)(?=\s*\()|(\.)(?:`[^\n`]+`|\w+)(?=\s*\{)/g,lookbehind:!0,greedy:!0},number:/\b(?:0[xX][a-fA-F\d]+(?:_[a-fA-F\d]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/--|\+\+|&&|\|\||->|[!=]==|!!|[%!=<>/*+-]=?|[?:]:?|\.\.|\b(?:and|inv|shl|u?shr|x?or)\b/,punctuation:re};var $n=[{pattern:/&[a-z\d]{1,8};/i,alias:"named-entity"},/&#x?[a-f\d]{1,8};/i],ba={pattern:/<\/?(?!\d)[^\s/=>$<%]+(?:\s(?:\s*[^\s/=>]+(?:\s*=\s*(?!\s)(?:"[^"]*"|'[^']*'|[^\s"'=>]+(?=[\s>]))?|(?=[\s/>])))+)?\s*\/?>/g,greedy:!0,inside:{punctuation:/^<\/?|\/?>$/,tag:{pattern:/^\S+/,inside:{namespace:/^[^:]+:/}},"attr-value":[{pattern:/(=\s*)(?:"[^"]*"|'[^']*'|[^\s"'=>]+)/g,lookbehind:!0,greedy:!0,inside:{punctuation:/^["']|["']$/,entity:$n}}],"attr-equals":/=/,"attr-name":{pattern:/\S+/,inside:{namespace:/^[^:]+:/}}}};_.rss=_.atom=_.ssml=_.xml={comment:{pattern:/<!--(?:(?!<!--)[^])*?-->/g,greedy:!0},prolog:{pattern:/<\?[^]+?\?>/g,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/gi,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[^]+(?=\]\s*>$)/,lookbehind:!0,inside:"xml"},string:/"[^"]*"|'[^']*'/,punctuation:/^<!|[>[\]]/,"doctype-tag":/^DOCTYPE/i,name:/\S+/}},cdata:{pattern:/<!\[CDATA\[[^]*?\]\]>/gi,greedy:!0},tag:ba,entity:$n,"markup-bracket":{pattern:/[()[\]{}]/,alias:"punctuation"}};var Et=(e,t)=>(e["language-"+t]={pattern:/[^]+/,inside:t},e),Zt=(e,t)=>({pattern:RegExp(`(<${e}[^>]*>)(?!</${e}>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])+?(?=</${e}>)`,"gi"),lookbehind:!0,greedy:!0,inside:Et({"included-cdata":{pattern:/<!\[CDATA\[[^]*?\]\]>/i,inside:Et({cdata:/^<!\[CDATA\[|\]\]>$/i},t)}},t)}),qt=(e,t)=>({pattern:RegExp(`((?:^|["'\\s])(?:${e})\\s*=\\s*)(?:"[^"]*"|'[^']*'|[^\\s"'=>]+)`,"gi"),lookbehind:!0,greedy:!0,inside:Et({punctuation:/^["']|["']$/},t)}),Dn=_.svg=_.mathml=_.html=_.markup=tt(_.xml);Dn.tag.inside["attr-value"].unshift(qt("style","css"),qt("on[a-z]+","javascript"));$(Dn,"cdata",{style:Zt("style","css"),script:Zt("script","javascript")});_.r={comment:/#.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\n])*\1/g,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[a-fA-F\d]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->>?|<=|<<?-|[!=<>]=?|::?|&&?|\|\|?|[~^$@/*+-]/,punctuation:/[()[\]{},;]/};_.basic={comment:{pattern:/(?:!|rem\b).+/i,inside:{keyword:/^rem/i}},string:{pattern:/"(?:""|[#$%&'().,:;\w ?^!=<>/*+-])*"/g,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,keyword:/\b(?:as|beep|bload|bsave|call absolute|call|case|chain|chdir|clear|close|cls|com|common|const|data|declare|def(?: fn| seg|dbl|int|[ls]ng|str)|dim|do|double|else|elseif|environ|erase|error|exit|field|files|for|function|get|gosub|goto|if|input|integer|ioctl|key|kill|line input|locate|lock|long|loop|[lr]set|mkdir|name|next|off|on(?: com| error| key| timer)?|open|option base|[op]ut|poke|read|redim|rem|restore|resume|return|rmdir|run|select case|shared|shell|single|sleep|static|step|stop|string|sub|swap|system|then|timer|to|troff|tron|type|unlock|until|using|view print|wait|w?end|while|write)(?:\$|\b)/i,function:/\b(?:abs|access|a?cos|angle|area|arithmetic|array|a?sin|ask|atn?|base|begin|break|cause|ceil|chr|clip|collate|color|co[nst]|cosh|csc|date|datum|debug|decimal|de[fgt]|degrees|delete|device|display|dot|elapsed|eps|erasable|exline|exp|external|extype|filetype|fixed|fp|go|graph|handler|idn|image|int?|internal|ip|is|keyed|[lu]bound|[lu]case|left|le[nt]|length|lines?|log2?|log10|[lr]trim|margin|ma[tx]|maxnum|mi[dn]|missing|mod|native|nul|numeric|of|option|ord|organization|outin|output|pi|pointer|points?|pos|print|program|prompt|rad|radians|randomize|record|recsize|rectype|relative|remainder|repeat|rest|retry|rewrite|right|rnd|round|same|se[ct]|select|sequential|setter|sgn|sinh|size|skip|s[qt]r|standard|status|stream|style|tab|tanh?|template|text|there|time|timeout|trace|transform|truncate|use|val|variable|viewport|when|window|with|zer|zonewidth)(?:\$|\b)/i,operator:/<=|<>|>=|[&^=<>/*+-]|\b(?:and|eqv|imp|not|x?or)\b/i,punctuation:/[(),:;]/};_.vbnet=se("basic",{comment:{pattern:/(?:!|'|rem\b).*/i,inside:{keyword:/^rem/i}},string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/g,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:addhandler|addressof|alias|and|andalso|as|beep|bload|boolean|bsave|byref|byval|call absolute|call|case|catch|cbool|c?byte|cc?har|c?date|cdbl|cdec|chain|chdir|cu?int|class|clear|close|cls|cobj|com|common|const|continue|c?sbyte|c?u?short|c?sng|cstr|c?type|cu?lng|data|decimal|declare|def(?: fn| seg|dbl|int|lng|sng|str)|default|delegate|dim|directcast|do|double|else|elseif|enum|environ|erase|error|event|exit|false|true|field|files|finally|for each|for|friend|function|[gls]et|gettype|getxmlnamespace|global|gosub|goto|handles|i[fns]|implements|imports|inherits|input|interface|ioctl|isnot|key|kill|lib|like|line input|locate|lock|loop|[lr]set|me|mkdir|mod|module|mustinherit|mustoverride|mybase|myclass|name|namespace|narrowing|new|next|not|nothing|notinheritable|notoverridable|object|off?|on (?:com|error|key|timer)|on|open|operator|option base|option|optional|orelse|out|overloads|overridable|overrides|paramarray|partial|poke|private|property|protected|public|put|raiseevent|read|readonly|redim|removehandler|restore|resume|return|rmdir|run|select case|select|shadows|shared|shell|single|sleep|static|step|stop|string|structure|sub|swap|synclock|system|[tw]hen|throw|timer|to|troff|tron|try|trycast|typeof|u?integer|u?long|unlock|until|using|view print|wait|w?end|while|widening|with|withevents|write|writeonly|x?or)|\B#(?:const|else|elseif|end|if))(?:\$|\b)/i,punctuation:/[(){},:;]/});var Kt={pattern:/'(?:\\[^]|[^\\\n']){0,32}'/g,greedy:!0},Wt={pattern:/\/\/(?:[^\\\n]|\\\n?)*|\/\*[^]*?(?:\*\/|$)/g,greedy:!0},Yt={pattern:/"(?:\\[^]|[^\\\n"])*"/g,greedy:!0},Xt={pattern:/\S[^]*/};Xt.inside=_.c={comment:Wt,char:Kt,macro:{pattern:/(^[ ]*)#\s*[a-z](?:[^\\\n/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\[^])*/img,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Yt],char:Kt,comment:Wt,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=\n)/,expression:Xt}},string:Yt,"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([^]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/->|([&|:+-])\1|[?:~]|>>=?|<<=?|[%&|^!=<>/*+-]=?/,punctuation:re};$(_.opencl=se("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:K,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN2|LN10|LOG2E?|LOG10E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),"class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|u?intptr_t)\b/,alias:"keyword"}});var yt={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:[2348]|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|RA?|READ_(?:ONLY|WRITE)_CACHE|RG|RGB[Ax]?|RG?x|RUNNING|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_5[56]5|VERSION_(?:1_[012]|2_[01])|s?BGRA|sRGB[Ax]?)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image[23]D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};$(_.c,"keyword",yt);_.cpp&&(yt["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image(?:[123]D|[12]DArray|1DBuffer|[23]DGL|Format|GL)?|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTrait(?:Atomic|Coarse|Fine|ReadOnly|ReadWrite|WriteOnly)|Sampler|UserEvent)\b/,alias:"keyword"},$(_.cpp,"keyword",yt));var fa=_.diff={coord:/^(?:\*{3}|-{3}|\+{3}|\d).*$|^@@.*@@$/m},ot={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};for(var be in ot){var lt=be.split("-")[0];fa[be]={pattern:RegExp("^(?:["+ot[be]+`].*$
@@ -143,8 +143,8 @@ declare module '@tiptap/core' {
143
143
 
144
144
  declare module '@tiptap/core' {
145
145
  interface Commands<ReturnType> {
146
- exportPdf: {
147
- exportToPdf: () => ReturnType;
146
+ excalidraw: {
147
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
148
148
  };
149
149
  }
150
150
  }
@@ -152,8 +152,8 @@ declare module '@tiptap/core' {
152
152
 
153
153
  declare module '@tiptap/core' {
154
154
  interface Commands<ReturnType> {
155
- excalidraw: {
156
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
155
+ exportPdf: {
156
+ exportToPdf: () => ReturnType;
157
157
  };
158
158
  }
159
159
  }
@@ -143,8 +143,8 @@ declare module '@tiptap/core' {
143
143
 
144
144
  declare module '@tiptap/core' {
145
145
  interface Commands<ReturnType> {
146
- exportPdf: {
147
- exportToPdf: () => ReturnType;
146
+ excalidraw: {
147
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
148
148
  };
149
149
  }
150
150
  }
@@ -152,8 +152,8 @@ declare module '@tiptap/core' {
152
152
 
153
153
  declare module '@tiptap/core' {
154
154
  interface Commands<ReturnType> {
155
- excalidraw: {
156
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
155
+ exportPdf: {
156
+ exportToPdf: () => ReturnType;
157
157
  };
158
158
  }
159
159
  }
package/lib/CodeBlock.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { N as sa, t as Gt, m as oa } from "./index-DI9T3iLd.js";
2
2
  import { N as la, c as Le, R as ca } from "./dom-dataset-Di3tIRrR.js";
3
3
  import { jsxs as _e, jsx as k } from "react/jsx-runtime";
4
- import { d as ne, A as da, Z as ua, a3 as pa, k as xe } from "./RichTextEditor-e6q30rbV.js";
4
+ import { d as ne, A as da, Z as ua, a3 as pa, k as xe } from "./RichTextEditor-KP2Rgcqe.js";
5
5
  import * as ue from "react";
6
6
  import { useRef as zt, useCallback as it, useEffect as Ht } from "react";
7
7
  import * as F from "@radix-ui/react-select";
@@ -117,7 +117,8 @@ function _a({ action: e, ...t }) {
117
117
  action: e,
118
118
  disabled: t == null ? void 0 : t.disabled,
119
119
  icon: t == null ? void 0 : t.icon,
120
- tooltip: t == null ? void 0 : t.tooltip
120
+ tooltip: t == null ? void 0 : t.tooltip,
121
+ tooltipOptions: t == null ? void 0 : t.tooltipOptions
121
122
  }
122
123
  );
123
124
  }
package/lib/CodeView.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),c=require("./RichTextEditor-DsUcQSbm.cjs"),s=i.Extension.create({name:"codeView",addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button({editor:t,t:o}){return{component:c.ActionButton,componentProps:{action:()=>{t.commands.toggleCodeView()},isActive:()=>t.storage.codeView.isActive||!1,disabled:!1,icon:"CodeView",tooltip:o("editor.codeView.tooltip")||"View HTML Code",customClass:"tiptap-code-view-button"}}}}},addStorage(){return{isActive:!1,originalContent:""}},addCommands(){return{toggleCodeView:()=>({editor:e})=>{const t=e.storage.codeView.isActive;if(t)e.commands.setContent(e.getText());else{const o=e.getHTML();e.storage.codeView.originalContent=o;const n=o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");e.commands.setContent(`<div class="tiptap-code-view-wrapper">${n}</div>`)}return e.storage.codeView.isActive=!t,!0}}}});exports.CodeView=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ByRfqzMr.cjs"),c=require("./RichTextEditor-DWlLqTl9.cjs"),s=i.Extension.create({name:"codeView",addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),button({editor:t,t:o}){return{component:c.ActionButton,componentProps:{action:()=>{t.commands.toggleCodeView()},isActive:()=>t.storage.codeView.isActive||!1,disabled:!1,icon:"CodeView",tooltip:o("editor.codeView.tooltip")||"View HTML Code",customClass:"tiptap-code-view-button"}}}}},addStorage(){return{isActive:!1,originalContent:""}},addCommands(){return{toggleCodeView:()=>({editor:e})=>{const t=e.storage.codeView.isActive;if(t)e.commands.setContent(e.getText());else{const o=e.getHTML();e.storage.codeView.originalContent=o;const n=o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");e.commands.setContent(`<div class="tiptap-code-view-wrapper">${n}</div>`)}return e.storage.codeView.isActive=!t,!0}}}});exports.CodeView=s;