reactjs-tiptap-editor 1.0.11 → 1.0.13

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 (226) hide show
  1. package/lib/ActionMenuButton-DNj0f_A4.cjs +1 -0
  2. package/lib/{ActionMenuButton-DTXFBdGX.js → ActionMenuButton-l5rSmAO_.js} +18 -14
  3. package/lib/Attachment.cjs +2 -2
  4. package/lib/Attachment.js +24 -21
  5. package/lib/Blockquote.cjs +2 -2
  6. package/lib/Blockquote.js +7 -5
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +11 -9
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +14 -12
  11. package/lib/Callout.cjs +1 -0
  12. package/lib/Callout.js +230 -0
  13. package/lib/Clear.cjs +1 -1
  14. package/lib/Clear.js +3 -3
  15. package/lib/Code.cjs +1 -1
  16. package/lib/Code.js +11 -9
  17. package/lib/CodeBlock.cjs +39 -39
  18. package/lib/CodeBlock.js +840 -945
  19. package/lib/CodeView.cjs +1 -1
  20. package/lib/CodeView.js +10 -8
  21. package/lib/Color.cjs +1 -1
  22. package/lib/Color.js +20 -18
  23. package/lib/Column.cjs +1 -1
  24. package/lib/Column.js +7 -5
  25. package/lib/{Drawer-D0yQ0wR7.js → Drawer-Cbi_MURj.js} +10 -9
  26. package/lib/Drawer-DKU32YW_.cjs +1 -0
  27. package/lib/Drawer.cjs +1 -1
  28. package/lib/Drawer.js +3 -3
  29. package/lib/Emoji.cjs +1 -1
  30. package/lib/Emoji.js +11 -9
  31. package/lib/{Excalidraw-CO4IRHmG.js → Excalidraw-CWrVL5hs.js} +28 -27
  32. package/lib/Excalidraw-Kb-TRcWY.cjs +1 -0
  33. package/lib/Excalidraw.cjs +1 -1
  34. package/lib/Excalidraw.js +2 -2
  35. package/lib/ExportPdf.cjs +2 -2
  36. package/lib/ExportPdf.js +7 -5
  37. package/lib/ExportWord.cjs +1 -1
  38. package/lib/ExportWord.js +7 -5
  39. package/lib/FontFamily.cjs +1 -1
  40. package/lib/FontFamily.js +9 -8
  41. package/lib/FontSize.cjs +1 -1
  42. package/lib/FontSize.js +13 -12
  43. package/lib/Heading.cjs +1 -1
  44. package/lib/Heading.js +20 -19
  45. package/lib/Highlight.cjs +1 -1
  46. package/lib/Highlight.js +9 -7
  47. package/lib/History.cjs +1 -1
  48. package/lib/History.js +11 -8
  49. package/lib/HorizontalRule.cjs +1 -1
  50. package/lib/HorizontalRule.js +7 -5
  51. package/lib/Icon-Ctva8VeB.js +12 -0
  52. package/lib/Icon-yqCglrdK.cjs +1 -0
  53. package/lib/Iframe-BczF8Hex.cjs +1 -0
  54. package/lib/{Iframe-BEO28NPs.js → Iframe-C942bNjs.js} +42 -40
  55. package/lib/Iframe.cjs +1 -1
  56. package/lib/Iframe.js +2 -2
  57. package/lib/Image.cjs +1 -1
  58. package/lib/Image.js +25 -23
  59. package/lib/ImageGif.cjs +1 -1
  60. package/lib/ImageGif.js +50 -48
  61. package/lib/ImportWord.cjs +31 -31
  62. package/lib/ImportWord.js +8 -6
  63. package/lib/{Indent-CXurBbOr.js → Indent-C_O5WdyR.js} +26 -24
  64. package/lib/Indent-CkEC7x36.cjs +1 -0
  65. package/lib/Indent.cjs +1 -1
  66. package/lib/Indent.js +2 -2
  67. package/lib/Italic.cjs +1 -1
  68. package/lib/Italic.js +12 -10
  69. package/lib/{Katex-Bvj469K1.js → Katex-D3PEWimM.js} +12 -10
  70. package/lib/Katex-DW_HjgNM.cjs +4 -0
  71. package/lib/Katex.cjs +1 -1
  72. package/lib/Katex.js +2 -2
  73. package/lib/LineHeight.cjs +1 -1
  74. package/lib/LineHeight.js +10 -8
  75. package/lib/Link.cjs +1 -1
  76. package/lib/Link.js +2 -2
  77. package/lib/{LinkEditBlock-8ePAZ-G1.cjs → LinkEditBlock-DL1e2ILk.cjs} +1 -1
  78. package/lib/{LinkEditBlock-DjXUEubR.js → LinkEditBlock-h5054QDo.js} +22 -20
  79. package/lib/Mention.cjs +1 -1
  80. package/lib/Mention.js +3 -3
  81. package/lib/Mermaid.cjs +2 -2
  82. package/lib/Mermaid.js +8 -8
  83. package/lib/MoreMark.cjs +1 -1
  84. package/lib/MoreMark.js +25 -22
  85. package/lib/OrderedList.cjs +1 -1
  86. package/lib/OrderedList.js +10 -8
  87. package/lib/SearchAndReplace.cjs +1 -1
  88. package/lib/SearchAndReplace.js +43 -41
  89. package/lib/SlashCommand.cjs +1 -1
  90. package/lib/SlashCommand.js +6 -6
  91. package/lib/SlashCommandNodeView-BqrmHCpu.cjs +1 -0
  92. package/lib/{SlashCommandNodeView-CcqL8ymb.js → SlashCommandNodeView-DXUqkx82.js} +75 -66
  93. package/lib/Strike.cjs +1 -1
  94. package/lib/Strike.js +7 -5
  95. package/lib/{Table-9Y0Cg8Ab.js → Table-DdrY4jcM.js} +10 -8
  96. package/lib/Table-kY0nbqJo.cjs +9 -0
  97. package/lib/Table.cjs +1 -1
  98. package/lib/Table.js +1 -1
  99. package/lib/TaskList.cjs +1 -1
  100. package/lib/TaskList.js +15 -13
  101. package/lib/TextAlign.cjs +1 -1
  102. package/lib/TextAlign.js +20 -17
  103. package/lib/TextDirection.cjs +1 -1
  104. package/lib/TextDirection.js +20 -17
  105. package/lib/TextUnderline.cjs +1 -1
  106. package/lib/TextUnderline.js +7 -5
  107. package/lib/{Twitter-DWwd0vHR.js → Twitter-B-JQ3ZJ1.js} +51 -49
  108. package/lib/Twitter-DjZcVa3l.cjs +1 -0
  109. package/lib/Twitter.cjs +1 -1
  110. package/lib/Twitter.js +2 -2
  111. package/lib/Video.cjs +1 -1
  112. package/lib/Video.js +13 -11
  113. package/lib/bubble.cjs +4 -4
  114. package/lib/bubble.js +2084 -1949
  115. package/lib/button-BS3n6_Aq.cjs +1 -0
  116. package/lib/{button-RnHbJfd-.js → button-Uv01FNnd.js} +9 -8
  117. package/lib/{checkbox-CTEN0q4y.cjs → checkbox-C8ByRi7-.cjs} +1 -1
  118. package/lib/{checkbox-CLSoR1Qj.js → checkbox-DEFNwGwb.js} +1 -1
  119. package/lib/{index-sVScpCFG.js → clsx-BWSGDJNJ.js} +224 -224
  120. package/lib/{index-BBNITgNi.cjs → clsx-CXbNJWDD.cjs} +13 -13
  121. package/lib/components/Bubble/RichTextBubbleCallout.d.ts +1 -0
  122. package/lib/components/Bubble/index.d.ts +1 -0
  123. package/lib/components/ui/index.d.ts +1 -0
  124. package/lib/{dialog-CMC9hsCo.cjs → dialog-Bt5zwGYB.cjs} +1 -1
  125. package/lib/{dialog-D_HCtKvc.js → dialog-DwTMZSt6.js} +1 -1
  126. package/lib/{dropdown-menu-66q7Ofc5.js → dropdown-menu-BetI14G6.js} +1 -1
  127. package/lib/{dropdown-menu-DKSAS-w_.cjs → dropdown-menu-Bo68IEOT.cjs} +1 -1
  128. package/lib/events.constant-Dq21NPdV.cjs +1 -0
  129. package/lib/events.constant-do95b767.js +21 -0
  130. package/lib/extensions/Callout/Callout.d.ts +18 -0
  131. package/lib/extensions/Callout/components/NodeViewCallout/NodeViewCallout.d.ts +1 -0
  132. package/lib/extensions/Callout/components/RichTextCallout.d.ts +1 -0
  133. package/lib/extensions/Callout/index.d.ts +1 -0
  134. package/lib/{index-CApXPpjF.cjs → index-BCzvbrf5.cjs} +1 -1
  135. package/lib/{index-9A6-kVBM.js → index-BDKHXe7R.js} +1 -1
  136. package/lib/{index-DmPwbBqm.js → index-CHKWG6E8.js} +1 -1
  137. package/lib/index-CcoWj0mF.js +426 -0
  138. package/lib/index-CjhjjJsN.cjs +1 -0
  139. package/lib/index-Cs6cp0Y6.cjs +1 -0
  140. package/lib/index-D3RLYf-J.cjs +1 -0
  141. package/lib/{index-C3zg3DPB.js → index-DF5ZPtWM.js} +371 -1177
  142. package/lib/{index-DRHrDScg.js → index-DJbmnBzK.js} +1 -1
  143. package/lib/index-Doks9cbR.cjs +1 -0
  144. package/lib/{index-0OnGZkVF.js → index-Dujzr6bY.js} +179 -317
  145. package/lib/index-VhKd73hZ.cjs +1 -0
  146. package/lib/{index-DKt5wfAc.js → index-mR8PNv5P.js} +1 -1
  147. package/lib/{index--nUS7Y66.cjs → index-neeeY2o7.cjs} +3 -3
  148. package/lib/index.cjs +9 -2
  149. package/lib/index.js +142 -26
  150. package/lib/{input-CvyMYMZG.js → input-DUBdJD3L.js} +5 -5
  151. package/lib/{input-D555880-.cjs → input-Dt_BA_9B.cjs} +1 -1
  152. package/lib/{isNumber-Bv1Qhmw8.cjs → isNumber-BTYSVlKo.cjs} +1 -1
  153. package/lib/{isNumber-DF0fU3ob.js → isNumber-CIgubz2e.js} +1 -1
  154. package/lib/label-JNOksCA-.cjs +1 -0
  155. package/lib/label-topD46-u.js +19 -0
  156. package/lib/locale-bundle.cjs +1 -1
  157. package/lib/locale-bundle.js +6 -7
  158. package/lib/locales/en.d.ts +16 -0
  159. package/lib/locales/fi.d.ts +16 -0
  160. package/lib/locales/hu.d.ts +16 -0
  161. package/lib/locales/index.d.ts +99 -4316
  162. package/lib/locales/pt-br.d.ts +16 -0
  163. package/lib/locales/vi.d.ts +16 -0
  164. package/lib/locales/zh-cn.d.ts +16 -0
  165. package/lib/{popover-B7ec5-u2.js → popover-LfNBhRyz.js} +1 -1
  166. package/lib/{popover-BSzR_R01.cjs → popover-mL-2sX5r.cjs} +1 -1
  167. package/lib/react-BEoMZB61.cjs +1 -0
  168. package/lib/react-c9FSfB30.js +27 -0
  169. package/lib/select-CwGYPsPq.cjs +1 -0
  170. package/lib/select-DctYuHLH.js +117 -0
  171. package/lib/separator-Ddfrhn4D.js +329 -0
  172. package/lib/separator-NoH_SLRW.cjs +1 -0
  173. package/lib/store/EditorEditableReactive.d.ts +1 -0
  174. package/lib/store/ThemeColorReactive.d.ts +1 -0
  175. package/lib/store/commandList.d.ts +1 -1
  176. package/lib/store/store.d.ts +6 -7
  177. package/lib/store-CkjKIgjQ.cjs +1 -0
  178. package/lib/store-DNpS8vXA.js +10 -0
  179. package/lib/style.css +1 -1
  180. package/lib/{tabs-CWr9HYaM.js → tabs-BT3AeqQQ.js} +1 -1
  181. package/lib/{tabs-BTwiZkWd.cjs → tabs-DRSwUeKP.cjs} +1 -1
  182. package/lib/{textarea-Yetl_PZi.cjs → textarea-BDO6XQoF.cjs} +1 -1
  183. package/lib/{textarea-BdeLXbp8.js → textarea-DZzMEDfZ.js} +1 -1
  184. package/lib/theme/theme.d.ts +5 -0
  185. package/lib/theme.cjs +1 -1
  186. package/lib/theme.js +37 -8
  187. package/lib/{throttle-DsowOft0.js → throttle-IERhwcLa.js} +1 -1
  188. package/lib/throttle-gTTvqDTW.cjs +1 -0
  189. package/lib/toggle-BQHMh_Q-.cjs +1 -0
  190. package/lib/toggle-DKHg5sLm.js +99 -0
  191. package/lib/tooltip-BYtGp6FM.cjs +1 -0
  192. package/lib/tooltip-DNKq7zgN.js +24 -0
  193. package/lib/{updatePosition-Bbd8ETMv.js → updatePosition-Bie75EFq.js} +2 -2
  194. package/lib/updatePosition-Cjuj2E26.cjs +1 -0
  195. package/lib/useButtonProps-DBJkNDS2.cjs +1 -0
  196. package/lib/{useButtonProps-cMoicZgd.js → useButtonProps-DVP4s_ER.js} +48 -36
  197. package/lib/utils/customEvents/events.constant.d.ts +0 -5
  198. package/package.json +3 -3
  199. package/lib/ActionMenuButton-BLlse5KO.cjs +0 -1
  200. package/lib/Drawer-kv6BU_6O.cjs +0 -1
  201. package/lib/Excalidraw-B82ThkJA.cjs +0 -1
  202. package/lib/Icon-DRuJhcHK.js +0 -10
  203. package/lib/Icon-DXePECFW.cjs +0 -1
  204. package/lib/Iframe-03dn9wcM.cjs +0 -1
  205. package/lib/Indent-Cqjdn3Jt.cjs +0 -1
  206. package/lib/Katex-DdWTV5NJ.cjs +0 -4
  207. package/lib/SlashCommandNodeView-Bl_gwZJB.cjs +0 -1
  208. package/lib/Table-DBGjezZK.cjs +0 -9
  209. package/lib/Twitter-Cnvt7GBg.cjs +0 -1
  210. package/lib/button-BW5bDPz_.cjs +0 -1
  211. package/lib/events.constant-DQYeJpu5.cjs +0 -1
  212. package/lib/events.constant-wrlJ_7JZ.js +0 -26
  213. package/lib/index-BZ6DfR2r.cjs +0 -1
  214. package/lib/index-C838s-or.cjs +0 -8
  215. package/lib/index-Cv9Z6dyV.cjs +0 -1
  216. package/lib/index-FSRjMsxW.cjs +0 -1
  217. package/lib/label-DsOYPjAo.js +0 -18
  218. package/lib/label-E6jF3Xud.cjs +0 -1
  219. package/lib/separator-JaTTqb3J.js +0 -241
  220. package/lib/separator-PGnA-6Hr.cjs +0 -1
  221. package/lib/store/ProviderUniqueId.d.ts +0 -6
  222. package/lib/store-Cf7tFiiI.js +0 -10
  223. package/lib/store-oDk-lTPM.cjs +0 -1
  224. package/lib/throttle-BM3Bmbf_.cjs +0 -1
  225. package/lib/updatePosition-M2IyqkI1.cjs +0 -1
  226. package/lib/useButtonProps-DfnJiJLV.cjs +0 -1
@@ -0,0 +1 @@
1
+ export declare function RichTextBubbleCallout(): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ export * from './RichTextBubbleCallout';
1
2
  export * from './RichTextBubbleColumns';
2
3
  export * from './RichTextBubbleDrawer';
3
4
  export * from './RichTextBubbleExcalidraw';
@@ -6,6 +6,7 @@ export * from './popover';
6
6
  export * from './separator';
7
7
  export * from './switch';
8
8
  export * from './tabs';
9
+ export * from './textarea';
9
10
  export * from './toast';
10
11
  export * from './toggle';
11
12
  export * from './tooltip';
@@ -1 +1 @@
1
- "use strict";const a=require("react/jsx-runtime"),f=require("react"),u=require("@radix-ui/react-dialog"),m=require("lucide-react"),c=require("./index-C838s-or.cjs");function n(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const s=n(f),r=n(u),p=r.Root,D=r.Trigger,y=r.Portal,x=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Overlay,{ref:i,className:c.cn("richtext-fixed richtext-inset-0 richtext-z-50 richtext-bg-black/80 richtext- 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",t),...e}));x.displayName=r.Overlay.displayName;const l=s.forwardRef(({className:t,children:e,...i},o)=>a.jsxs(y,{"data-richtext-portal":!0,children:[a.jsx(x,{}),a.jsxs(r.Content,{"data-richtext-portal":!0,ref:o,className:c.cn("richtext-fixed richtext-left-[50%] richtext-top-[50%] richtext-z-50 richtext-grid richtext-w-full richtext-max-w-lg richtext-translate-x-[-50%] richtext-translate-y-[-50%] richtext-gap-4 richtext-border richtext-bg-background richtext-p-6 richtext-shadow-lg richtext-duration-200 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-[state=closed]:richtext-slide-out-to-left-1/2 data-[state=closed]:richtext-slide-out-to-top-[48%] data-[state=open]:richtext-slide-in-from-left-1/2 data-[state=open]:richtext-slide-in-from-top-[48%] sm:richtext-rounded-lg !richtext-border-border",t),...i,children:[e,a.jsxs(r.Close,{className:"richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground",children:[a.jsx(m.X,{className:"richtext-size-4 richtext-text-accent-foreground"}),a.jsx("span",{className:"richtext-sr-only richtext-text-accent-foreground",children:"Close"})]})]})]}));l.displayName=r.Content.displayName;function d({className:t,...e}){return a.jsx("div",{className:c.cn("richtext-flex richtext-flex-col richtext-space-y-1.5 richtext-text-center sm:richtext-text-left",t),...e})}d.displayName="DialogHeader";function h({className:t,...e}){return a.jsx("div",{className:c.cn("richtext-flex richtext-flex-col-reverse sm:richtext-flex-row sm:richtext-justify-end sm:richtext-space-x-2",t),...e})}h.displayName="DialogFooter";const g=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Title,{ref:i,className:c.cn("richtext-text-lg richtext-font-semibold richtext-leading-none richtext-tracking-tight richtext-text-foreground",t),...e}));g.displayName=r.Title.displayName;const N=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Description,{className:c.cn("richtext-text-sm richtext-text-muted-foreground",t),ref:i,...e}));N.displayName=r.Description.displayName;exports.Dialog=p;exports.DialogContent=l;exports.DialogFooter=h;exports.DialogHeader=d;exports.DialogTitle=g;exports.DialogTrigger=D;
1
+ "use strict";const a=require("react/jsx-runtime"),f=require("react"),u=require("@radix-ui/react-dialog"),m=require("lucide-react"),c=require("./index-D3RLYf-J.cjs");function n(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const s=n(f),r=n(u),p=r.Root,D=r.Trigger,y=r.Portal,x=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Overlay,{ref:i,className:c.cn("richtext-fixed richtext-inset-0 richtext-z-50 richtext-bg-black/80 richtext- 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",t),...e}));x.displayName=r.Overlay.displayName;const l=s.forwardRef(({className:t,children:e,...i},o)=>a.jsxs(y,{"data-richtext-portal":!0,children:[a.jsx(x,{}),a.jsxs(r.Content,{"data-richtext-portal":!0,ref:o,className:c.cn("richtext-fixed richtext-left-[50%] richtext-top-[50%] richtext-z-50 richtext-grid richtext-w-full richtext-max-w-lg richtext-translate-x-[-50%] richtext-translate-y-[-50%] richtext-gap-4 richtext-border richtext-bg-background richtext-p-6 richtext-shadow-lg richtext-duration-200 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-[state=closed]:richtext-slide-out-to-left-1/2 data-[state=closed]:richtext-slide-out-to-top-[48%] data-[state=open]:richtext-slide-in-from-left-1/2 data-[state=open]:richtext-slide-in-from-top-[48%] sm:richtext-rounded-lg !richtext-border-border",t),...i,children:[e,a.jsxs(r.Close,{className:"richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground",children:[a.jsx(m.X,{className:"richtext-size-4 richtext-text-accent-foreground"}),a.jsx("span",{className:"richtext-sr-only richtext-text-accent-foreground",children:"Close"})]})]})]}));l.displayName=r.Content.displayName;function d({className:t,...e}){return a.jsx("div",{className:c.cn("richtext-flex richtext-flex-col richtext-space-y-1.5 richtext-text-center sm:richtext-text-left",t),...e})}d.displayName="DialogHeader";function h({className:t,...e}){return a.jsx("div",{className:c.cn("richtext-flex richtext-flex-col-reverse sm:richtext-flex-row sm:richtext-justify-end sm:richtext-space-x-2",t),...e})}h.displayName="DialogFooter";const g=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Title,{ref:i,className:c.cn("richtext-text-lg richtext-font-semibold richtext-leading-none richtext-tracking-tight richtext-text-foreground",t),...e}));g.displayName=r.Title.displayName;const N=s.forwardRef(({className:t,...e},i)=>a.jsx(r.Description,{className:c.cn("richtext-text-sm richtext-text-muted-foreground",t),ref:i,...e}));N.displayName=r.Description.displayName;exports.Dialog=p;exports.DialogContent=l;exports.DialogFooter=h;exports.DialogHeader=d;exports.DialogTitle=g;exports.DialogTrigger=D;
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as s } from "react/jsx-runtime";
2
2
  import * as o from "react";
3
3
  import * as t from "@radix-ui/react-dialog";
4
4
  import { X as l } from "lucide-react";
5
- import { c } from "./index-C3zg3DPB.js";
5
+ import { c } from "./index-DF5ZPtWM.js";
6
6
  const D = t.Root, b = t.Trigger, d = t.Portal, x = o.forwardRef(({ className: e, ...a }, r) => /* @__PURE__ */ i(
7
7
  t.Overlay,
8
8
  {
@@ -2,7 +2,7 @@ import { jsx as c, jsxs as x } from "react/jsx-runtime";
2
2
  import * as s from "react";
3
3
  import * as t from "@radix-ui/react-dropdown-menu";
4
4
  import { ChevronRight as d, Check as h, Circle as l } from "lucide-react";
5
- import { c as o } from "./index-C3zg3DPB.js";
5
+ import { c as o } from "./index-DF5ZPtWM.js";
6
6
  const R = t.Root, I = t.Trigger, S = t.Portal, C = t.Sub, m = s.forwardRef(({ className: e, inset: r, children: i, ...a }, n) => /* @__PURE__ */ x(
7
7
  t.SubTrigger,
8
8
  {
@@ -1 +1 @@
1
- "use strict";const c=require("react/jsx-runtime"),w=require("react"),g=require("@radix-ui/react-dropdown-menu"),d=require("lucide-react"),a=require("./index-C838s-or.cjs");function x(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return r.default=t,Object.freeze(r)}const n=x(w),e=x(g),y=e.Root,N=e.Trigger,D=e.Portal,M=e.Sub,h=n.forwardRef(({className:t,inset:r,children:i,...o},s)=>c.jsxs(e.SubTrigger,{ref:s,className:a.cn("richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent",r&&"richtext-pl-8",t),...o,children:[i,c.jsx(d.ChevronRight,{className:"richtext-ml-auto richtext-size-4"})]}));h.displayName=e.SubTrigger.displayName;const l=n.forwardRef(({className:t,...r},i)=>c.jsx(e.SubContent,{"data-richtext-portal":!0,ref:i,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg 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",t),...r}));l.displayName=e.SubContent.displayName;const u=n.forwardRef(({className:t,sideOffset:r=4,...i},o)=>c.jsx(e.Portal,{"data-richtext-portal":!0,children:c.jsx(e.Content,{"data-richtext-portal":!0,ref:o,sideOffset:r,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-1 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 !richtext-border-border",t),...i})}));u.displayName=e.Content.displayName;const p=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Item,{ref:o,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",r&&"richtext-pl-8",t),...i}));p.displayName=e.Item.displayName;const m=n.forwardRef(({className:t,children:r,checked:i,...o},s)=>c.jsxs(e.CheckboxItem,{checked:i,ref:s,className:a.cn("richtext-relative richtext-flex 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 richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...o,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Check,{className:"richtext-size-4"})})}),r]}));m.displayName=e.CheckboxItem.displayName;const j=n.forwardRef(({className:t,children:r,...i},o)=>c.jsxs(e.RadioItem,{ref:o,className:a.cn("richtext-relative richtext-flex 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 richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...i,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Circle,{className:"richtext-size-2 richtext-fill-current"})})}),r]}));j.displayName=e.RadioItem.displayName;const S=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Label,{ref:o,className:a.cn("richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",r&&"richtext-pl-8",t),...i}));S.displayName=e.Label.displayName;const f=n.forwardRef(({className:t,...r},i)=>c.jsx(e.Separator,{className:a.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",t),ref:i,...r}));f.displayName=e.Separator.displayName;function b({className:t,...r}){return c.jsx("span",{className:a.cn("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",t),...r})}b.displayName="DropdownMenuShortcut";exports.DropdownMenu=y;exports.DropdownMenuCheckboxItem=m;exports.DropdownMenuContent=u;exports.DropdownMenuItem=p;exports.DropdownMenuPortal=D;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=b;exports.DropdownMenuSub=M;exports.DropdownMenuSubContent=l;exports.DropdownMenuSubTrigger=h;exports.DropdownMenuTrigger=N;
1
+ "use strict";const c=require("react/jsx-runtime"),w=require("react"),g=require("@radix-ui/react-dropdown-menu"),d=require("lucide-react"),a=require("./index-D3RLYf-J.cjs");function x(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return r.default=t,Object.freeze(r)}const n=x(w),e=x(g),y=e.Root,N=e.Trigger,D=e.Portal,M=e.Sub,h=n.forwardRef(({className:t,inset:r,children:i,...o},s)=>c.jsxs(e.SubTrigger,{ref:s,className:a.cn("richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent",r&&"richtext-pl-8",t),...o,children:[i,c.jsx(d.ChevronRight,{className:"richtext-ml-auto richtext-size-4"})]}));h.displayName=e.SubTrigger.displayName;const l=n.forwardRef(({className:t,...r},i)=>c.jsx(e.SubContent,{"data-richtext-portal":!0,ref:i,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg 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",t),...r}));l.displayName=e.SubContent.displayName;const u=n.forwardRef(({className:t,sideOffset:r=4,...i},o)=>c.jsx(e.Portal,{"data-richtext-portal":!0,children:c.jsx(e.Content,{"data-richtext-portal":!0,ref:o,sideOffset:r,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-1 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 !richtext-border-border",t),...i})}));u.displayName=e.Content.displayName;const p=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Item,{ref:o,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",r&&"richtext-pl-8",t),...i}));p.displayName=e.Item.displayName;const m=n.forwardRef(({className:t,children:r,checked:i,...o},s)=>c.jsxs(e.CheckboxItem,{checked:i,ref:s,className:a.cn("richtext-relative richtext-flex 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 richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...o,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Check,{className:"richtext-size-4"})})}),r]}));m.displayName=e.CheckboxItem.displayName;const j=n.forwardRef(({className:t,children:r,...i},o)=>c.jsxs(e.RadioItem,{ref:o,className:a.cn("richtext-relative richtext-flex 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 richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...i,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Circle,{className:"richtext-size-2 richtext-fill-current"})})}),r]}));j.displayName=e.RadioItem.displayName;const S=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Label,{ref:o,className:a.cn("richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",r&&"richtext-pl-8",t),...i}));S.displayName=e.Label.displayName;const f=n.forwardRef(({className:t,...r},i)=>c.jsx(e.Separator,{className:a.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",t),ref:i,...r}));f.displayName=e.Separator.displayName;function b({className:t,...r}){return c.jsx("span",{className:a.cn("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",t),...r})}b.displayName="DropdownMenuShortcut";exports.DropdownMenu=y;exports.DropdownMenuCheckboxItem=m;exports.DropdownMenuContent=u;exports.DropdownMenuItem=p;exports.DropdownMenuPortal=D;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=b;exports.DropdownMenuSub=M;exports.DropdownMenuSubContent=l;exports.DropdownMenuSubTrigger=h;exports.DropdownMenuTrigger=N;
@@ -0,0 +1 @@
1
+ "use strict";function e(n,t){return window.addEventListener(n,t),()=>{window.removeEventListener(n,t)}}function E(n,t){window.dispatchEvent(new CustomEvent(n,{detail:t}))}const i={UPLOAD_IMAGE:n=>`UPLOAD_IMAGE-${n}`,UPLOAD_VIDEO:n=>`UPLOAD_VIDEO-${n}`};exports.EVENTS=i;exports.dispatchEvent=E;exports.listenEvent=e;
@@ -0,0 +1,21 @@
1
+ function e(n, t) {
2
+ return window.addEventListener(n, t), () => {
3
+ window.removeEventListener(n, t);
4
+ };
5
+ }
6
+ function E(n, t) {
7
+ window.dispatchEvent(
8
+ new CustomEvent(n, {
9
+ detail: t
10
+ })
11
+ );
12
+ }
13
+ const i = {
14
+ UPLOAD_IMAGE: (n) => `UPLOAD_IMAGE-${n}`,
15
+ UPLOAD_VIDEO: (n) => `UPLOAD_VIDEO-${n}`
16
+ };
17
+ export {
18
+ i as E,
19
+ E as d,
20
+ e as l
21
+ };
@@ -0,0 +1,18 @@
1
+ import { Node } from '@tiptap/core';
2
+ import { GeneralOptions } from '../../types';
3
+ declare module '@tiptap/core' {
4
+ interface Commands<ReturnType> {
5
+ callout: {
6
+ setCallout: (attrs?: {
7
+ type?: string;
8
+ title?: string;
9
+ body?: string;
10
+ }) => ReturnType;
11
+ };
12
+ }
13
+ }
14
+ export interface CalloutOptions extends GeneralOptions<CalloutOptions> {
15
+ HTMLAttributes: Record<string, any>;
16
+ }
17
+ export * from './components/RichTextCallout';
18
+ export declare const Callout: Node<CalloutOptions, any>;
@@ -0,0 +1 @@
1
+ export declare function NodeViewCallout({ node }: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function RichTextCallout(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Callout';
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("./index-BBNITgNi.cjs");var _=Object.defineProperty,R=(t,e)=>{for(var s in e)_(t,s,{get:e[s],enumerable:!0})},D="listItem",v="textStyle",I=/^\s*([-+*])\s$/,A=o.Node3.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",o.mergeAttributes(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>t.type!=="list"||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
1
+ "use strict";const o=require("./clsx-CXbNJWDD.cjs");var _=Object.defineProperty,R=(t,e)=>{for(var s in e)_(t,s,{get:e[s],enumerable:!0})},D="listItem",v="textStyle",I=/^\s*([-+*])\s$/,A=o.Node3.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",o.mergeAttributes(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>t.type!=="list"||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
2
2
  `):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(D,this.editor.getAttributes(v)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=o.wrappingInputRule({find:I,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=o.wrappingInputRule({find:I,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(v),editor:this.editor})),[t]}}),B=o.Node3.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",o.mergeAttributes(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:(t,e)=>{if(t.type!=="list_item")return[];let s=[];if(t.tokens&&t.tokens.length>0)if(t.tokens.some(r=>r.type==="paragraph"))s=e.parseChildren(t.tokens);else{const r=t.tokens[0];if(r&&r.type==="text"&&r.tokens&&r.tokens.length>0){if(s=[{type:"paragraph",content:e.parseInline(r.tokens)}],t.tokens.length>1){const l=t.tokens.slice(1),a=e.parseChildren(l);s.push(...a)}}else s=e.parseChildren(t.tokens)}return s.length===0&&(s=[{type:"paragraph",content:[]}]),{type:"listItem",content:s}},renderMarkdown:(t,e,s)=>o.renderNestedMarkdownContent(t,e,n=>n.parentType==="bulletList"?"- ":n.parentType==="orderedList"?`${n.index+1}. `:"- ",s),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),j={};R(j,{findListItemPos:()=>k,getNextListDepth:()=>y,handleBackspace:()=>b,handleDelete:()=>g,hasListBefore:()=>w,hasListItemAfter:()=>K,hasListItemBefore:()=>C,listItemHasSubList:()=>N,nextListIsDeeper:()=>E,nextListIsHigher:()=>H});var k=(t,e)=>{const{$from:s}=e.selection,n=o.getNodeType(t,e.schema);let r=null,i=s.depth,l=s.pos,a=null;for(;i>0&&a===null;)r=s.node(i),r.type===n?a=i:(i-=1,l-=1);return a===null?null:{$pos:e.doc.resolve(l),depth:a}},y=(t,e)=>{const s=k(t,e);if(!s)return!1;const[,n]=o.getNodeAtPosition(e,t,s.$pos.pos+4);return n},w=(t,e,s)=>{const{$anchor:n}=t.selection,r=Math.max(0,n.pos-2),i=t.doc.resolve(r).node();return!(!i||!s.includes(i.type.name))},C=(t,e)=>{var s;const{$anchor:n}=e.selection,r=e.doc.resolve(n.pos-2);return!(r.index()===0||((s=r.nodeBefore)==null?void 0:s.type.name)!==t)},N=(t,e,s)=>{if(!s)return!1;const n=o.getNodeType(t,e.schema);let r=!1;return s.descendants(i=>{i.type===n&&(r=!0)}),r},b=(t,e,s)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!o.isNodeActive(t.state,e)&&w(t.state,e,s)){const{$anchor:a}=t.state.selection,h=t.state.doc.resolve(a.before()-1),m=[];h.node().descendants((c,p)=>{c.type.name===e&&m.push({node:c,pos:p})});const d=m.at(-1);if(!d)return!1;const u=t.state.doc.resolve(h.start()+d.pos+1);return t.chain().cut({from:a.start()-1,to:a.end()+1},u.end()).joinForward().run()}if(!o.isNodeActive(t.state,e)||!o.isAtStartOfNode(t.state))return!1;const n=k(e,t.state);if(!n)return!1;const i=t.state.doc.resolve(n.$pos.pos-2).node(n.depth),l=N(e,t.state,i);return C(e,t.state)&&!l?t.commands.joinItemBackward():t.chain().liftListItem(e).run()},E=(t,e)=>{const s=y(t,e),n=k(t,e);return!n||!s?!1:s>n.depth},H=(t,e)=>{const s=y(t,e),n=k(t,e);return!n||!s?!1:s<n.depth},g=(t,e)=>{if(!o.isNodeActive(t.state,e)||!o.isAtEndOfNode(t.state,e))return!1;const{selection:s}=t.state,{$from:n,$to:r}=s;return!s.empty&&n.sameParent(r)?!1:E(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():H(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},K=(t,e)=>{var s;const{$anchor:n}=e.selection,r=e.doc.resolve(n.pos-n.parentOffset-2);return!(r.index()===r.parent.childCount-1||((s=r.nodeAfter)==null?void 0:s.type.name)!==t)},V=o.Extension.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:s})=>{t.state.schema.nodes[s]!==void 0&&g(t,s)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:s})=>{t.state.schema.nodes[s]!==void 0&&g(t,s)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:s,wrapperNames:n})=>{t.state.schema.nodes[s]!==void 0&&b(t,s,n)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:s,wrapperNames:n})=>{t.state.schema.nodes[s]!==void 0&&b(t,s,n)&&(e=!0)}),e}}}}),T=/^(\s*)(\d+)\.\s+(.*)$/,X=/^\s/;function z(t){const e=[];let s=0,n=0;for(;s<t.length;){const r=t[s],i=r.match(T);if(!i)break;const[,l,a,h]=i,m=l.length;let d=h,u=s+1;const c=[r];for(;u<t.length;){const p=t[u];if(p.match(T))break;if(p.trim()==="")c.push(p),d+=`
3
3
  `,u+=1;else if(p.match(X))c.push(p),d+=`
4
4
  ${p.slice(m+2)}`,u+=1;else break}e.push({indent:m,number:parseInt(a,10),content:d.trim(),raw:c.join(`
@@ -1,6 +1,6 @@
1
1
  import { PluginKey as Kt, Plugin as Ut } from "@tiptap/pm/state";
2
2
  import { DecorationSet as Gt, Decoration as Jt } from "@tiptap/pm/view";
3
- import { P as Qt } from "./index-sVScpCFG.js";
3
+ import { L as Qt } from "./clsx-BWSGDJNJ.js";
4
4
  const Bt = ["top", "right", "bottom", "left"], Rt = ["start", "end"], At = /* @__PURE__ */ Bt.reduce((t, e) => t.concat(e, e + "-" + Rt[0], e + "-" + Rt[1]), []), j = Math.min, M = Math.max, rt = Math.round, H = (t) => ({
5
5
  x: t,
6
6
  y: t
@@ -1,4 +1,4 @@
1
- import { M as y, m as p, E as l } from "./index-sVScpCFG.js";
1
+ import { M as y, m as p, E as l } from "./clsx-BWSGDJNJ.js";
2
2
  var d = 20, u = (t, e = 0) => {
3
3
  const r = [];
4
4
  return !t.children.length || e > d || Array.from(t.children).forEach((o) => {
@@ -0,0 +1,426 @@
1
+ import { TextAlignRightIcon as k, TextAlignLeftIcon as V, TextAlignJustifyIcon as H, TextAlignCenterIcon as L } from "@radix-ui/react-icons";
2
+ import { NotebookPen as B, ExternalLink as A, X as j, Loader2 as y, WrapText as T, PencilRuler as I, FlipHorizontal as S, FlipVertical as W, CropIcon as P, ChevronUp as R, Paperclip as E, Eye as N, Settings as b, ZoomOut as D, ZoomIn as F, BookMarked as O, Sigma as U, SmilePlusIcon as X, Replace as u, SmilePlus as Z, Frame as G, Columns2 as g, PanelRight as q, PanelLeft as J, Clipboard as K, Copy as Q, GripVertical as _, Plus as Y, Columns4 as $, Columns3 as e0, Heading6 as t0, Heading5 as r0, Heading4 as n0, Heading3 as l0, Heading2 as i0, Heading1 as o0, Pilcrow as c0, ChevronsUpDown as h0, Trash as a0, Trash2 as m0, TableCellsSplit as s0, TableCellsMerge as d0, BetweenVerticalEnd as w0, BetweenVerticalStart as v0, BetweenHorizonalStart as u0, BetweenHorizonalEnd as g0, Unlink as x0, Pencil as p0, Sparkles as C0, Table as f0, Minimize as z0, Maximize as M0, Video as k0, ImageUp as V0, Link as H0, ListTodo as L0, ListOrdered as B0, List as A0, IndentDecrease as j0, IndentIncrease as y0, Type as T0, CodeXml as I0, Code as S0, Superscript as W0, Subscript as P0, ChevronDown as R0, Undo2 as E0, Redo2 as N0, PaintRoller as b0, Eraser as D0, Minus as F0, Strikethrough as O0, Quote as U0, Underline as X0, Italic as Z0, LoaderCircle as G0, Bold as q0 } from "lucide-react";
3
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
4
+ import { j as J0 } from "./clsx-BWSGDJNJ.js";
5
+ function K0(t) {
6
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
7
+ "path",
8
+ {
9
+ fill: "currentColor",
10
+ d: "M19 12h-2v3h-3v2h5zM7 9h3V7H5v5h2zm14-6H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 16H3V5h18z"
11
+ }
12
+ ) });
13
+ }
14
+ function Q0(t) {
15
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
16
+ "path",
17
+ {
18
+ fill: "none",
19
+ stroke: "currentColor",
20
+ strokeLinecap: "round",
21
+ strokeLinejoin: "round",
22
+ strokeWidth: "2",
23
+ d: "M6 15h15m0 4H6m9-8h6m0-4h-6M9 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2M3 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2"
24
+ }
25
+ ) });
26
+ }
27
+ function _0() {
28
+ return /* @__PURE__ */ e(
29
+ "svg",
30
+ {
31
+ xmlns: "http://www.w3.org/2000/svg",
32
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
33
+ "aria-hidden": "true",
34
+ role: "img",
35
+ className: "richtext-w-4 richtext-h-4",
36
+ width: "1em",
37
+ height: "1em",
38
+ viewBox: "0 0 24 24",
39
+ children: /* @__PURE__ */ e(
40
+ "path",
41
+ {
42
+ fill: "none",
43
+ stroke: "currentColor",
44
+ strokeLinecap: "round",
45
+ strokeLinejoin: "round",
46
+ strokeWidth: "1.5",
47
+ d: "M5.5 3c1.404 0 2.107 0 2.611.38c.219.164.406.375.552.62C9 4.568 9 5.358 9 6.938v10.125c0 1.58 0 2.37-.337 2.937a2.1 2.1 0 0 1-.552.621c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C2 19.432 2 18.642 2 17.062V6.938c0-1.58 0-2.37.337-2.938a2.1 2.1 0 0 1 .552-.62C3.393 3 4.096 3 5.5 3M20 11.938v5.124c0 1.58 0 2.37-.337 2.938a2.1 2.1 0 0 1-.552.62c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C13 19.433 13 18.642 13 17.063V6.938c0-1.58 0-2.37.337-2.938M22 9l-6-6m6 0l-6 6",
48
+ color: "currentColor"
49
+ }
50
+ )
51
+ }
52
+ );
53
+ }
54
+ function Y0() {
55
+ return /* @__PURE__ */ e(
56
+ "svg",
57
+ {
58
+ xmlns: "http://www.w3.org/2000/svg",
59
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
60
+ "aria-hidden": "true",
61
+ role: "img",
62
+ className: "richtext-w-4 richtext-h-4",
63
+ width: "1em",
64
+ height: "1em",
65
+ viewBox: "0 0 24 24",
66
+ children: /* @__PURE__ */ e(
67
+ "path",
68
+ {
69
+ fill: "none",
70
+ stroke: "currentColor",
71
+ strokeLinecap: "round",
72
+ strokeLinejoin: "round",
73
+ strokeWidth: "1.5",
74
+ d: "M21 18.5c0 1.404 0 2.107-.38 2.611a2.1 2.1 0 0 1-.62.552c-.567.337-1.358.337-2.937.337H6.938c-1.58 0-2.37 0-2.938-.337a2.1 2.1 0 0 1-.62-.552C3 20.607 3 19.904 3 18.5s0-2.107.38-2.611c.163-.218.374-.406.62-.552C4.567 15 5.357 15 6.938 15h10.125c1.58 0 2.37 0 2.937.337c.246.146.457.334.62.552c.38.504.38 1.207.38 2.611M12.063 4H6.937C5.358 4 4.568 4 4 4.337a2.1 2.1 0 0 0-.62.552C3 5.393 3 6.096 3 7.5s0 2.107.38 2.611c.163.218.374.406.62.552C4.567 11 5.357 11 6.938 11h10.125c1.58 0 2.37 0 2.937-.337M21 8l-6-6m6 0l-6 6",
75
+ color: "currentColor"
76
+ }
77
+ )
78
+ }
79
+ );
80
+ }
81
+ function $0(t) {
82
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
83
+ "path",
84
+ {
85
+ fill: "currentColor",
86
+ d: "M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"
87
+ }
88
+ ) });
89
+ }
90
+ function e1(t) {
91
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
92
+ "path",
93
+ {
94
+ fill: "currentColor",
95
+ d: "M21 22H3v-2h18zm0-18H3V2h18zm-11 9.7h4l-2-5.4zM11.2 6h1.7l4.7 12h-2l-.9-2.6H9.4L8.5 18h-2z"
96
+ }
97
+ ) });
98
+ }
99
+ function t1(t) {
100
+ return /* @__PURE__ */ e(
101
+ "svg",
102
+ {
103
+ xmlns: "http://www.w3.org/2000/svg",
104
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
105
+ "aria-hidden": "true",
106
+ role: "img",
107
+ width: "1em",
108
+ height: "1em",
109
+ viewBox: "0 0 48 48",
110
+ ...t,
111
+ children: /* @__PURE__ */ e(
112
+ "path",
113
+ {
114
+ fill: "currentColor",
115
+ stroke: "currentColor",
116
+ strokeLinejoin: "round",
117
+ strokeWidth: 4,
118
+ d: "M36 19L24 31L12 19z"
119
+ }
120
+ )
121
+ }
122
+ );
123
+ }
124
+ function r1(t) {
125
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M9 7v10h6v-2h-4V7z" }) });
126
+ }
127
+ function n1(t) {
128
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
129
+ "path",
130
+ {
131
+ fill: "currentColor",
132
+ d: "M9 7c-1.1 0-2 .9-2 2v8h2V9h2v7h2V9h2v8h2V9a2 2 0 0 0-2-2z"
133
+ }
134
+ ) });
135
+ }
136
+ function l1(t) {
137
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
138
+ "path",
139
+ {
140
+ fill: "currentColor",
141
+ d: "M11 7c-1.1 0-2 .9-2 2v2a2 2 0 0 0 2 2h2v2H9v2h4c1.11 0 2-.89 2-2v-2a2 2 0 0 0-2-2h-2V9h4V7z"
142
+ }
143
+ ) });
144
+ }
145
+ function i1() {
146
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e(
147
+ "path",
148
+ {
149
+ fill: "currentColor",
150
+ d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6l1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6l-1.4-1.4z"
151
+ }
152
+ ) });
153
+ }
154
+ function o1() {
155
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m-9 8h4m-2-2v4" }) });
156
+ }
157
+ function c1() {
158
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m9 8h4m-2-2v4" }) });
159
+ }
160
+ function h1() {
161
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 21v-4m0-4V9m0-4V3m-2 18h4M8 5v4h11l2-2l-2-2zm6 8v4H6l-2-2l2-2z" }) });
162
+ }
163
+ function a1() {
164
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M23.943 19.806a.2.2 0 0 0-.168-.034c-1.26-1.855-2.873-3.61-4.419-5.315l-.252-.284c-.001-.073-.067-.12-.134-.15l-.084-.084c-.05-.1-.169-.167-.286-.1c-.47.234-.907.585-1.327.919c-.554.434-1.109.87-1.63 1.354a5 5 0 0 0-.588.618c-.084.117-.017.217.084.267c-.37.368-.74.736-1.109 1.12a.2.2 0 0 0-.05.134c0 .05.033.1.067.117l.655.502v.016c.924.92 2.554 2.173 4.285 3.527c.251.201.52.402.773.602c.117.134.234.285.335.418c.05.066.169.084.236.033c.033.034.084.067.118.1a.24.24 0 0 0 .1.034a.15.15 0 0 0 .135-.066a.24.24 0 0 0 .033-.1c.017 0 .017.016.034.016a.2.2 0 0 0 .134-.05l3.058-3.327c.12-.116.014-.267 0-.267m-7.628-.134l-1.546-1.17l-.15-.1c-.035-.017-.068-.05-.102-.067l-.117-.1c.66-.66 1.33-1.308 2-1.956c-.488.484-1.463 1.906-1.261 2.373c.002 0 .018.042.067.084zm4.1 3.126l-1.277-.97a27 27 0 0 0-1.58-1.504c.69.518 1.277.97 1.361 1.053c.673.585.638.485 1.093.87l.554.4c-.074.103-.151.148-.151.151m.336.25l-.034-.016a1 1 0 0 0 .152-.117zM.588 3.476c.033.217.084.435.117.636c.201 1.103.403 2.106.772 2.858l.152.568c.05.217.134.485.219.552a67 67 0 0 0 3.578 2.942a.18.18 0 0 0 .219 0s0 .016.016.016a.15.15 0 0 0 .118.05a.2.2 0 0 0 .134-.05c1.798-1.989 3.142-3.627 4.1-4.998c.068-.066.084-.167.084-.25c.067-.067.118-.151.185-.201c.067-.067.067-.184 0-.235l-.017-.016c0-.033-.017-.084-.05-.1c-.42-.401-.722-.685-1.042-.986a94 94 0 0 1-2.352-2.273c-.017-.017-.034-.034-.067-.034c-.336-.117-1.025-.234-1.882-.385c-1.277-.216-3.008-.517-4.57-.986c0 0-.101 0-.118.017l-.05.05C.05.714.022.707 0 .718c.017.1.017.167.05.284c0 .033.068.301.068.334zm7.19 4.78l-.033.034a.036.036 0 0 1 .033-.034M6.553 2.238c.101.1.521.502.622.585c-.437-.2-1.529-.702-2.034-.869c.505.1 1.194.201 1.412.284M.79 1.403c.252.434.454 1.939.655 3.41c-.118-.469-.201-.936-.302-1.372C.992 2.673.84 1.988.638 1.386c.124 0 .152.021.152.017m-.286-.369c0-.016 0-.033-.017-.033c.085 0 .135.017.202.05c0 .006-.145-.017-.185-.017m23.17-.217c.017-.066-.336-.367-.219-.384c.253-.017.253-.401 0-.401c-.335.017-.688.1-1.008.15c-.587.117-1.192.234-1.78.367a80 80 0 0 0-3.949.937c-.403.117-.857.2-1.243.401c-.135.067-.118.2-.05.284c-.034.017-.051.017-.085.034c-.117.017-.218.034-.335.05c-.102.017-.152.1-.135.2c0 .017.017.05.017.067c-.706.936-1.496 1.923-2.353 2.976c-.84.969-1.73 1.989-2.62 3.042c-2.84 3.31-6.05 7.07-9.594 10.38a.16.16 0 0 0 0 .234c.016.016.033.033.05.033c-.05.05-.101.085-.152.134q-.05.05-.05.1a.4.4 0 0 0-.067.084c-.067.067-.067.184.017.234c.067.066.185.066.235-.017c.017-.017.017-.033.033-.033a.265.265 0 0 1 .37 0c.202.217.404.435.588.618l-.42-.35c-.067-.067-.184-.05-.234.016c-.068.066-.051.184.016.234l4.469 3.727c.034.034.067.034.118.034a.15.15 0 0 0 .117-.05l.101-.1c.017.016.05.016.067.016c.05 0 .084-.016.118-.05c6.049-6.05 10.922-10.614 16.5-14.693c.05-.033.067-.1.067-.15c.067 0 .118-.05.15-.117c1.026-3.125 1.228-5.9 1.295-7.27c0-.059.016-.038.016-.068c.017-.033.017-.05.017-.05a.98.98 0 0 0-.067-.619m-10.82 4.915c.268-.301.537-.619.806-.903c-1.73 2.273-4.603 5.767-8.67 9.929c2.773-3.059 5.562-6.218 7.864-9.026M5.14 23.466c-.016-.017-.016-.017 0-.017zm2.504-2.156c.135-.15.27-.284.42-.434c0 0 0 .016.017.016c-.224.198-.433.418-.437.418m.69-.668c.099-.1.14-.173.284-.318c.992-1.02 2.017-2.04 3.059-3.076l.016-.016c.252-.2.555-.418.824-.619a228 228 0 0 0-4.184 4.029M14.852 3.91c-.554.719-1.176 1.671-1.697 2.423c-1.646 2.374-6.94 8.174-7.057 8.274a1190 1190 0 0 1-4.839 4.597l-.1.1c-.085-.1-.085-.25.016-.334C8.652 11.966 13.19 6.133 15.021 3.576c-.05.116-.084.216-.168.334zm2.906 3.427c-.671-.386-.99-.987-.806-1.572l.05-.2a.8.8 0 0 1 .085-.167a1.9 1.9 0 0 1 .756-.703c.016 0 .033 0 .05-.016c-.017-.034-.017-.084-.017-.134c.017-.1.085-.167.202-.167c.202 0 .824.184 1.059.384c.067.05.134.117.202.184c.084.1.218.268.285.401c.034.017.067.184.118.268c.033.134.067.284.05.418c-.017.016 0 .116-.017.116a1.6 1.6 0 0 1-.218.619c-.03.03.006.012-.05.067a1.2 1.2 0 0 1-.32.334a1.49 1.49 0 0 1-1.26.234a2 2 0 0 0-.169-.066m4.37 1.403c0 .017-.017.05 0 .067c-.034 0-.05.017-.085.034a110 110 0 0 0-3.915 3.025c1.11-.986 2.218-1.989 3.378-2.975c.336-.301.571-.686.638-1.12l.168-1.003v-.033c.085-.201.404-.118.353.1c-.004-.001-.173.795-.537 1.905" }) });
165
+ }
166
+ function m1() {
167
+ return /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
168
+ /* @__PURE__ */ e("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" }),
169
+ /* @__PURE__ */ e("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" })
170
+ ] });
171
+ }
172
+ function s1() {
173
+ return /* @__PURE__ */ a(
174
+ "svg",
175
+ {
176
+ xmlns: "http://www.w3.org/2000/svg",
177
+ width: "1em",
178
+ height: "1em",
179
+ className: "icon",
180
+ viewBox: "0 0 1024 1024",
181
+ children: [
182
+ /* @__PURE__ */ e(
183
+ "path",
184
+ {
185
+ fill: "currentColor",
186
+ d: "M679.253 402.364 618.77 561.015l-60.348-158.651a30.04 30.04 0 0 0-30.447-18.637 29.76 29.76 0 0 0-30.447 18.637l-60.416 158.651-60.416-158.651a30.515 30.515 0 0 0-38.843-17.272 28.945 28.945 0 0 0-17.954 37.547l88.815 233.267c4.369 11.469 15.7 19.115 28.398 19.115a30.31 30.31 0 0 0 28.468-19.115l62.395-163.908 62.396 163.84c4.437 11.605 15.701 19.183 28.4 19.183a30.31 30.31 0 0 0 28.466-19.115l88.747-233.267a28.945 28.945 0 0 0-17.886-37.547 30.447 30.447 0 0 0-38.912 17.272zm219.478 395.605-51.883-29.218c-28.672-16.18-52.224-3.072-52.224 29.082v.273H643.209a29.833 29.833 0 0 0-30.31 29.354c0 16.18 13.584 29.218 30.31 29.218h151.825c1.092 30.516 24.03 43.077 52.224 27.648l51.063-27.989c29.013-15.906 29.15-42.189.41-58.368"
187
+ }
188
+ ),
189
+ /* @__PURE__ */ e(
190
+ "path",
191
+ {
192
+ fill: "currentColor",
193
+ d: "m810.667 913.135-.478.068H201.796c-19.865 0-36.727-11.673-36.727-25.6v-618.36h154.965c51.268 0 92.911-39.39 92.911-87.858v-87.86H810.19c19.797 0 36.522 11.742 36.522 25.669V739.26h61.987V119.262c0-46.421-44.169-84.241-98.51-84.241H328.364l-225.28 194.56v658.09c0 46.285 44.236 84.105 98.713 84.105H810.19c43.759 0 80.554-24.713 93.32-58.573h-92.842zM350.89 94.89v86.562c0 16.11-13.858 29.286-30.925 29.286H216.815L350.959 94.891z"
194
+ }
195
+ )
196
+ ]
197
+ }
198
+ );
199
+ }
200
+ function d1() {
201
+ return /* @__PURE__ */ e(
202
+ "svg",
203
+ {
204
+ height: "1em",
205
+ viewBox: "0 0 15 15",
206
+ width: "1em",
207
+ xmlns: "http://www.w3.org/2000/svg",
208
+ children: /* @__PURE__ */ e(
209
+ "path",
210
+ {
211
+ d: "M2.5 10.5H2v.5h.5zm2 0v.5H5v-.5zm9-7h.5v-.207l-.146-.147zm-3-3l.354-.354L10.707 0H10.5zM2 6v4.5h1V6zm.5 5h2v-1h-2zm2.5-.5v-2H4v2zM3 7h2V6H3zM2 5V1.5H1V5zm11-1.5V5h1V3.5zM2.5 1h8V0h-8zm7.646-.146l3 3l.708-.708l-3-3zM2 1.5a.5.5 0 0 1 .5-.5V0A1.5 1.5 0 0 0 1 1.5zM1 12v1.5h1V12zm1.5 3h10v-1h-10zM14 13.5V12h-1v1.5zM12.5 15a1.5 1.5 0 0 0 1.5-1.5h-1a.5.5 0 0 1-.5.5zM1 13.5A1.5 1.5 0 0 0 2.5 15v-1a.5.5 0 0 1-.5-.5zM6 7h3V6H6zm0 4h3v-1H6zm1-4.5v4h1v-4zm3.5.5H13V6h-2.5zM10 6v5h1V6zm.5 3H12V8h-1.5z",
212
+ fill: "currentColor"
213
+ }
214
+ )
215
+ }
216
+ );
217
+ }
218
+ function w1() {
219
+ return /* @__PURE__ */ e(
220
+ "svg",
221
+ {
222
+ height: "1em",
223
+ viewBox: "0 0 24 24",
224
+ width: "1em",
225
+ xmlns: "http://www.w3.org/2000/svg",
226
+ children: /* @__PURE__ */ a(
227
+ "g",
228
+ {
229
+ fill: "none",
230
+ stroke: "currentColor",
231
+ strokeLinecap: "round",
232
+ strokeLinejoin: "round",
233
+ strokeWidth: "2",
234
+ children: [
235
+ /* @__PURE__ */ e("path", { d: "M14 3v4a1 1 0 0 0 1 1h4" }),
236
+ /* @__PURE__ */ e("path", { d: "M5 12V5a2 2 0 0 1 2-2h7l5 5v4M2 21v-6m3 0v6m-3-3h3m15-3v6h2m-9 0v-6l2 3l2-3v6m-9.5-6h3M9 15v6" })
237
+ ]
238
+ }
239
+ )
240
+ }
241
+ );
242
+ }
243
+ function v1() {
244
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M6.5 3a.75.75 0 0 1 .697.471l3 7.5a.75.75 0 0 1-1.393.557L7.992 9.5H5.008l-.811 2.028a.75.75 0 0 1-1.393-.556l3-7.5A.75.75 0 0 1 6.5 3m0 2.77L5.608 8h1.784zm8.28-1.55a.75.75 0 1 0-1.06 1.06l.72.72h-3.69a.75.75 0 0 0 0 1.5h3.69l-.72.72a.75.75 0 0 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06zm0 7.5a.75.75 0 1 0-1.06 1.06l.72.72H3.75a.75.75 0 0 0 0 1.5h10.69l-.72.72a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06z" }) });
245
+ }
246
+ function u1() {
247
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ a("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
248
+ /* @__PURE__ */ e("circle", { cx: "10", cy: "24", r: "4" }),
249
+ /* @__PURE__ */ e("circle", { cx: "38", cy: "10", r: "4" }),
250
+ /* @__PURE__ */ e("circle", { cx: "38", cy: "24", r: "4" }),
251
+ /* @__PURE__ */ e("circle", { cx: "38", cy: "38", r: "4" }),
252
+ /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M34 38H22V10h12M14 24h20" })
253
+ ] }) });
254
+ }
255
+ function g1() {
256
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M13.5 3a.75.75 0 0 0-.697.471l-3 7.5a.75.75 0 0 0 1.393.557l.812-2.028h2.984l.811 2.028a.75.75 0 0 0 1.393-.556l-3-7.5A.75.75 0 0 0 13.5 3m0 2.77L14.392 8h-1.784zM5.22 4.22a.75.75 0 0 1 1.06 1.06L5.56 6h3.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 0 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06zm0 7.5a.75.75 0 0 1 1.06 1.06l-.72.72h10.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 1 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06z" }) });
257
+ }
258
+ function x1() {
259
+ return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "m3 21l7.548-7.548M21 3l-7.548 7.548m0 0L8 3H3l7.548 10.452m2.904-2.904L21 21h-5l-5.452-7.548", color: "currentColor" }) });
260
+ }
261
+ function p1() {
262
+ return /* @__PURE__ */ e(
263
+ "svg",
264
+ {
265
+ xmlns: "http://www.w3.org/2000/svg",
266
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
267
+ "aria-hidden": "true",
268
+ role: "img",
269
+ width: "1em",
270
+ height: "1em",
271
+ viewBox: "0 0 24 24",
272
+ children: /* @__PURE__ */ e(
273
+ "path",
274
+ {
275
+ fill: "currentColor",
276
+ d: "M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"
277
+ }
278
+ )
279
+ }
280
+ );
281
+ }
282
+ const k1 = {
283
+ Bold: q0,
284
+ LoaderCircle: G0,
285
+ Italic: Z0,
286
+ Underline: X0,
287
+ Quote: U0,
288
+ TextQuote: Q0,
289
+ Strikethrough: O0,
290
+ Minus: F0,
291
+ Eraser: D0,
292
+ PaintRoller: b0,
293
+ Redo2: N0,
294
+ Undo2: E0,
295
+ AlignCenter: L,
296
+ AlignJustify: H,
297
+ AlignLeft: V,
298
+ AlignRight: k,
299
+ ChevronDown: R0,
300
+ Subscript: P0,
301
+ Superscript: W0,
302
+ Code: S0,
303
+ Code2: I0,
304
+ Type: T0,
305
+ IndentIncrease: y0,
306
+ IndentDecrease: j0,
307
+ List: A0,
308
+ ListOrdered: B0,
309
+ ListTodo: L0,
310
+ Link: H0,
311
+ ImageUp: V0,
312
+ Video: k0,
313
+ Maximize: M0,
314
+ Minimize: z0,
315
+ Table: f0,
316
+ Sparkles: C0,
317
+ Pencil: p0,
318
+ Unlink: x0,
319
+ BetweenHorizonalEnd: g0,
320
+ BetweenHorizonalStart: u0,
321
+ BetweenVerticalStart: v0,
322
+ BetweenVerticalEnd: w0,
323
+ TableCellsMerge: d0,
324
+ TableCellsSplit: s0,
325
+ Trash2: m0,
326
+ Trash: a0,
327
+ Replace: u,
328
+ ChevronsUpDown: h0,
329
+ LineHeight: e1,
330
+ Word: $0,
331
+ HeadingParagraph: c0,
332
+ Heading1: o0,
333
+ Heading2: i0,
334
+ Heading3: l0,
335
+ Heading4: n0,
336
+ Heading5: r0,
337
+ Heading6: t0,
338
+ Columns2: g,
339
+ Columns3: e0,
340
+ Columns4: $,
341
+ Plus: Y,
342
+ Grip: _,
343
+ Copy: Q,
344
+ Clipboard: K,
345
+ PanelLeft: J,
346
+ PanelRight: q,
347
+ Columns: g,
348
+ Iframe: G,
349
+ MenuDown: t1,
350
+ SizeS: l1,
351
+ SizeM: n1,
352
+ SizeL: r1,
353
+ AspectRatio: K0,
354
+ Emoji: Z,
355
+ DeleteColumn: _0,
356
+ DeleteRow: Y0,
357
+ SearchAndReplace: u,
358
+ EmojiIcon: X,
359
+ KatexIcon: U,
360
+ ExportPdf: m1,
361
+ ExportWord: s1,
362
+ ImportWord: p1,
363
+ ColumnAddLeft: o1,
364
+ ColumnAddRight: c1,
365
+ BookMarked: O,
366
+ Excalidraw: a1,
367
+ ZoomIn: F,
368
+ ZoomOut: D,
369
+ Settings: b,
370
+ Eye: N,
371
+ TextDirection: h1,
372
+ LeftToRight: v1,
373
+ RightToLeft: g1,
374
+ Attachment: E,
375
+ GifIcon: d1,
376
+ ChevronUp: R,
377
+ Crop: P,
378
+ Mermaid: u1,
379
+ Twitter: x1,
380
+ CodeView: i1,
381
+ FlipX: W,
382
+ FlipY: S,
383
+ PencilRuler: I,
384
+ WrapText: T,
385
+ Loader: y,
386
+ X: j,
387
+ Html: w1,
388
+ ExternalLink: A,
389
+ Callout: B
390
+ }, x = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, p = J0, V1 = (t, l) => (r) => {
391
+ var m;
392
+ if ((l == null ? void 0 : l.variants) == null) return p(t, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
393
+ const { variants: d, defaultVariants: c } = l, C = Object.keys(d).map((n) => {
394
+ const i = r == null ? void 0 : r[n], h = c == null ? void 0 : c[n];
395
+ if (i === null) return null;
396
+ const o = x(i) || x(h);
397
+ return d[n][o];
398
+ }), w = r && Object.entries(r).reduce((n, i) => {
399
+ let [h, o] = i;
400
+ return o === void 0 || (n[h] = o), n;
401
+ }, {}), f = l == null || (m = l.compoundVariants) === null || m === void 0 ? void 0 : m.reduce((n, i) => {
402
+ let { class: h, className: o, ...z } = i;
403
+ return Object.entries(z).every((M) => {
404
+ let [v, s] = M;
405
+ return Array.isArray(s) ? s.includes({
406
+ ...c,
407
+ ...w
408
+ }[v]) : {
409
+ ...c,
410
+ ...w
411
+ }[v] === s;
412
+ }) ? [
413
+ ...n,
414
+ h,
415
+ o
416
+ ] : n;
417
+ }, []);
418
+ return p(t, C, f, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
419
+ };
420
+ export {
421
+ s1 as E,
422
+ t1 as M,
423
+ m1 as a,
424
+ V1 as c,
425
+ k1 as i
426
+ };
@@ -0,0 +1 @@
1
+ "use strict";const i=require("./clsx-CXbNJWDD.cjs");var c=20,u=(t,e=0)=>{const r=[];return!t.children.length||e>c||Array.from(t.children).forEach(o=>{o.tagName==="SPAN"?r.push(o):o.children.length&&r.push(...u(o,e+1))}),r},f=t=>{if(!t.children.length)return;const e=u(t);e&&e.forEach(r=>{var o,n;const s=r.getAttribute("style"),l=(n=(o=r.parentElement)==null?void 0:o.closest("span"))==null?void 0:n.getAttribute("style");r.setAttribute("style",`${l};${s}`)})},m=i.Mark.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!0}},parseHTML(){return[{tag:"span",consuming:!1,getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&f(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",i.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleTextStyle:t=>({commands:e})=>e.toggleMark(this.name,t),removeEmptyTextStyle:()=>({tr:t})=>{const{selection:e}=t;return t.doc.nodesBetween(e.from,e.to,(r,o)=>{if(r.isTextblock)return!0;r.marks.filter(n=>n.type===this.type).some(n=>Object.values(n.attrs).some(s=>!!s))||t.removeMark(o,o+r.nodeSize,this.type)}),!0}}}}),g=i.Extension.create({name:"backgroundColor",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{backgroundColor:{default:null,parseHTML:t=>{var e;const r=t.getAttribute("style");if(r){const o=r.split(";").map(n=>n.trim()).filter(Boolean);for(let n=o.length-1;n>=0;n-=1){const s=o[n].split(":");if(s.length>=2){const l=s[0].trim().toLowerCase(),a=s.slice(1).join(":").trim();if(l==="background-color")return a.replace(/['"]+/g,"")}}}return(e=t.style.backgroundColor)==null?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.backgroundColor?{style:`background-color: ${t.backgroundColor}`}:{}}}}]},addCommands(){return{setBackgroundColor:t=>({chain:e})=>e().setMark("textStyle",{backgroundColor:t}).run(),unsetBackgroundColor:()=>({chain:t})=>t().setMark("textStyle",{backgroundColor:null}).removeEmptyTextStyle().run()}}}),y=i.Extension.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;const r=t.getAttribute("style");if(r){const o=r.split(";").map(n=>n.trim()).filter(Boolean);for(let n=o.length-1;n>=0;n-=1){const s=o[n].split(":");if(s.length>=2){const l=s[0].trim().toLowerCase(),a=s.slice(1).join(":").trim();if(l==="color")return a.replace(/['"]+/g,"")}}}return(e=t.style.color)==null?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),p=i.Extension.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>t.style.fontFamily,renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),h=i.Extension.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize,renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),d=i.Extension.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight,renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t}).run(),unsetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).removeEmptyTextStyle().run()}}});i.Extension.create({name:"textStyleKit",addExtensions(){const t=[];return this.options.backgroundColor!==!1&&t.push(g.configure(this.options.backgroundColor)),this.options.color!==!1&&t.push(y.configure(this.options.color)),this.options.fontFamily!==!1&&t.push(p.configure(this.options.fontFamily)),this.options.fontSize!==!1&&t.push(h.configure(this.options.fontSize)),this.options.lineHeight!==!1&&t.push(d.configure(this.options.lineHeight)),this.options.textStyle!==!1&&t.push(m.configure(this.options.textStyle)),t}});exports.Color=y;exports.FontFamily=p;exports.LineHeight=d;