reactjs-tiptap-editor 1.0.6 → 1.0.7

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 (165) hide show
  1. package/lib/{ActionMenuButton-htJNI0Fa.js → ActionMenuButton-fTe9ka2F.js} +10 -13
  2. package/lib/ActionMenuButton-wU6jxKJv.cjs +1 -0
  3. package/lib/Attachment.cjs +2 -2
  4. package/lib/Attachment.js +23 -25
  5. package/lib/Blockquote.cjs +2 -2
  6. package/lib/Blockquote.js +5 -6
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +5 -6
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +11 -12
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +3 -3
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +9 -10
  15. package/lib/CodeBlock.cjs +39 -39
  16. package/lib/CodeBlock.js +837 -946
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +8 -9
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +20 -21
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +5 -6
  23. package/lib/Drawer-BGSwHoka.cjs +1 -0
  24. package/lib/{Drawer-1211urKj.js → Drawer-DmtILKW4.js} +16 -17
  25. package/lib/Drawer.cjs +1 -1
  26. package/lib/Drawer.js +3 -3
  27. package/lib/Emoji.cjs +1 -1
  28. package/lib/Emoji.js +15 -16
  29. package/lib/Excalidraw-BG2U9i30.cjs +1 -0
  30. package/lib/{Excalidraw-Du3hBR8t.js → Excalidraw-CrG8fW-7.js} +31 -32
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +2 -2
  33. package/lib/ExportPdf.cjs +1 -1
  34. package/lib/ExportPdf.js +17 -18
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +5 -6
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +5 -5
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +5 -5
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +15 -15
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +10 -11
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +8 -10
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +5 -6
  49. package/lib/Icon-C3j4ls73.cjs +1 -0
  50. package/lib/{Icon-C-qYUAS1.js → Icon-CysGlJkv.js} +3 -4
  51. package/lib/{Iframe-DTYTLQE6.js → Iframe-BmqguWbj.js} +13 -14
  52. package/lib/Iframe-CXDghI6m.cjs +1 -0
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +2 -2
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +48 -49
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +22 -23
  59. package/lib/ImportWord.cjs +2 -2
  60. package/lib/ImportWord.js +10 -11
  61. package/lib/Indent-B1glTHHl.cjs +1 -0
  62. package/lib/{Indent-jOPn3eUM.js → Indent-BhnGkEaY.js} +24 -25
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +2 -2
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +10 -11
  67. package/lib/Katex-BKL_6NWF.cjs +4 -0
  68. package/lib/{Katex-CERSrcTP.js → Katex-D4eBjS34.js} +21 -22
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +2 -2
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +15 -16
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +2 -2
  75. package/lib/{LinkEditBlock-B5SdhOfa.js → LinkEditBlock-D1eSM0kn.js} +55 -56
  76. package/lib/{LinkEditBlock-DaxljgJC.cjs → LinkEditBlock-DW17TyCA.cjs} +2 -2
  77. package/lib/Mention.js +2 -2
  78. package/lib/Mermaid.cjs +2 -2
  79. package/lib/Mermaid.js +20 -20
  80. package/lib/MoreMark.cjs +1 -1
  81. package/lib/MoreMark.js +19 -21
  82. package/lib/OrderedList.cjs +1 -1
  83. package/lib/OrderedList.js +5 -6
  84. package/lib/SearchAndReplace.cjs +1 -1
  85. package/lib/SearchAndReplace.js +22 -23
  86. package/lib/SlashCommand.cjs +1 -1
  87. package/lib/SlashCommand.js +14 -14
  88. package/lib/Strike.cjs +1 -1
  89. package/lib/Strike.js +5 -6
  90. package/lib/{Table-39OkCQbu.js → Table-BIZppoiY.js} +7 -8
  91. package/lib/Table-CIzgfvr9.cjs +9 -0
  92. package/lib/Table.cjs +1 -1
  93. package/lib/Table.js +1 -1
  94. package/lib/TaskList.cjs +1 -1
  95. package/lib/TaskList.js +13 -14
  96. package/lib/TextAlign.cjs +1 -1
  97. package/lib/TextAlign.js +17 -19
  98. package/lib/TextDirection.cjs +1 -1
  99. package/lib/TextDirection.js +17 -19
  100. package/lib/TextUnderline.cjs +1 -1
  101. package/lib/TextUnderline.js +5 -6
  102. package/lib/{Twitter-D7PhLycr.js → Twitter-DhczYjbR.js} +21 -22
  103. package/lib/Twitter-DwWVNAV5.cjs +1 -0
  104. package/lib/Twitter.cjs +1 -1
  105. package/lib/Twitter.js +2 -2
  106. package/lib/Video.cjs +1 -1
  107. package/lib/Video.js +24 -25
  108. package/lib/bubble.cjs +4 -4
  109. package/lib/bubble.js +419 -421
  110. package/lib/button-B6ukqDUf.cjs +1 -0
  111. package/lib/{button-Crm67hfl.js → button-C81t4pb1.js} +3 -4
  112. package/lib/{checkbox-DViVmgJ6.js → checkbox-CUE9ex4D.js} +1 -1
  113. package/lib/{checkbox-NQC2MdGT.cjs → checkbox-ZdxysUFa.cjs} +1 -1
  114. package/lib/{dialog-DaHBd2zw.cjs → dialog-Cfx8yjkr.cjs} +1 -1
  115. package/lib/{dialog-Ce9Cjfft.js → dialog-DMJStzBb.js} +1 -1
  116. package/lib/{dropdown-menu-CQykJhBs.js → dropdown-menu-B8iyTZcP.js} +1 -1
  117. package/lib/{dropdown-menu-CSCDQtq0.cjs → dropdown-menu-Busg3FNn.cjs} +1 -1
  118. package/lib/{index-DuZCJJSp.js → index--knBGB61.js} +1118 -504
  119. package/lib/{index-nFjllrEl.js → index-BvYjBPF9.js} +7 -7
  120. package/lib/index-D42xFOzI.cjs +7 -0
  121. package/lib/{index-D-FhWysc.js → index-Dwt9--mS.js} +1 -1
  122. package/lib/{index-BeUrdBxf.js → index-RKufd2EL.js} +1 -1
  123. package/lib/{index-prphFVsp.js → index-ccgHvIfu.js} +1 -1
  124. package/lib/index.cjs +2 -2
  125. package/lib/index.js +8 -9
  126. package/lib/{input-tU3H__39.cjs → input-BxzQAIRv.cjs} +1 -1
  127. package/lib/{input-DfqFAyKo.js → input-DR_5pbuA.js} +1 -1
  128. package/lib/{isNumber-CTm1pIvN.js → isNumber-1y3eeW-y.js} +1 -1
  129. package/lib/label-BfWfLggp.cjs +1 -0
  130. package/lib/label-D-0oXKCn.js +18 -0
  131. package/lib/{popover-CoepUobG.js → popover-D3spkemr.js} +1 -1
  132. package/lib/{popover-CZWSQZ0q.cjs → popover-sP8CwbV-.cjs} +1 -1
  133. package/lib/{separator-6SnwzytZ.js → separator-rM48NeAo.js} +18 -18
  134. package/lib/{separator-DCQD8P6s.cjs → separator-yycaNdlI.cjs} +1 -1
  135. package/lib/{store-726Zjszt.cjs → store-BajRl43v.cjs} +1 -1
  136. package/lib/{store-ibARMQ3h.js → store-NKeQOve_.js} +1 -1
  137. package/lib/{tabs-DrkJL_C2.js → tabs-Cb6Bmpbb.js} +1 -1
  138. package/lib/{tabs-B_ArrG09.cjs → tabs-D2nCIOVL.cjs} +1 -1
  139. package/lib/{textarea-CIs52G8B.js → textarea-BYZu1lUC.js} +1 -1
  140. package/lib/{textarea-CmZVZKOo.cjs → textarea-Cbwi_h4h.cjs} +1 -1
  141. package/lib/{throttle-CGM5M2yG.js → throttle-CjwXmkIY.js} +1 -1
  142. package/lib/{updatePosition-DpMKxYdN.js → updatePosition-BAGpT34H.js} +1 -1
  143. package/lib/{useButtonProps-D0SrPzuG.js → useButtonProps-BIH_9bXT.js} +35 -47
  144. package/lib/useButtonProps-TfmRCM9r.cjs +1 -0
  145. package/package.json +5 -1
  146. package/lib/ActionMenuButton-DYT5chmX.cjs +0 -1
  147. package/lib/Drawer-DUFUd5BW.cjs +0 -1
  148. package/lib/Excalidraw-CajgZDjU.cjs +0 -1
  149. package/lib/Icon-BjR_or8V.cjs +0 -1
  150. package/lib/Iframe-CM6mRQmv.cjs +0 -1
  151. package/lib/Indent-BmhiEb0S.cjs +0 -1
  152. package/lib/Katex-CUd3LxLh.cjs +0 -4
  153. package/lib/Table-3VstSlg4.cjs +0 -9
  154. package/lib/Twitter-DuHPeVW1.cjs +0 -1
  155. package/lib/button-xNppt_aK.cjs +0 -1
  156. package/lib/index-BQ17A_37.js +0 -393
  157. package/lib/index-CNzHZDls.cjs +0 -7
  158. package/lib/index-DmOTQudI.cjs +0 -1
  159. package/lib/label-DC33TZy_.js +0 -19
  160. package/lib/label-DkDE77kc.cjs +0 -1
  161. package/lib/toggle-DVCNvcqp.cjs +0 -1
  162. package/lib/toggle-xchtz-Kf.js +0 -92
  163. package/lib/tooltip-BTFcHrd9.js +0 -24
  164. package/lib/tooltip-DFjcKu9a.cjs +0 -1
  165. package/lib/useButtonProps-bei1vI37.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";const a=require("@radix-ui/react-icons"),e=require("lucide-react"),t=require("react/jsx-runtime"),H=require("./index-DLqogznp.cjs");function z(n){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...n,children:t.jsx("path",{fill:"currentColor",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"})})}function V(n){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...n,children:t.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",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"})})}function B(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",className:"richtext-w-4 richtext-h-4",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",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",color:"currentColor"})})}function S(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",className:"richtext-w-4 richtext-h-4",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",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",color:"currentColor"})})}function T(n){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...n,children:t.jsx("path",{fill:"currentColor",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"})})}function I(n){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...n,children:t.jsx("path",{fill:"currentColor",d:"M21 22H3v-2h18zm0-18H3V2h18zm-11 9.7h4l-2-5.4zM11.2 6h1.7l4.7 12h-2l-.9-2.6H9.4L8.5 18h-2z"})})}function p(n){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 48 48",...n,children:t.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M36 19L24 31L12 19z"})})}function y(n){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...n,children:t.jsx("path",{fill:"currentColor",d:"M9 7v10h6v-2h-4V7z"})})}function R(n){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...n,children:t.jsx("path",{fill:"currentColor",d:"M9 7c-1.1 0-2 .9-2 2v8h2V9h2v7h2V9h2v8h2V9a2 2 0 0 0-2-2z"})})}function P(n){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...n,children:t.jsx("path",{fill:"currentColor",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"})})}function W(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"currentColor",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"})})}function A(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("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"})})}function E(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("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"})})}function b(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("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"})})}function U(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("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"})})}function C(){return t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:[t.jsx("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"}),t.jsx("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"})]})}function j(){return t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",className:"icon",viewBox:"0 0 1024 1024",children:[t.jsx("path",{fill:"currentColor",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"}),t.jsx("path",{fill:"currentColor",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"})]})}function D(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",color:"currentColor",children:[t.jsx("path",{d:"M14.86 22h-4.312c-3.291 0-4.937 0-6.08-.798a4.2 4.2 0 0 1-.863-.805c-.855-1.066-.855-2.6-.855-5.67v-2.545c0-2.963 0-4.445.473-5.628c.761-1.903 2.37-3.403 4.41-4.113C8.9 2 10.49 2 13.667 2c1.816 0 2.723 0 3.448.252c1.166.406 2.085 1.263 2.52 2.35c.27.676.27 1.523.27 3.216V10"}),t.jsx("path",{d:"M2.75 12c0-1.84 1.506-3.333 3.364-3.333c.672 0 1.464.116 2.117-.057a1.67 1.67 0 0 0 1.19-1.179c.174-.647.057-1.432.057-2.098C9.478 3.493 10.984 2 12.84 2m.002 16h2.523m-4.949-4.15c-.126-.8-.281-.801-1.61-.85h-1.01c-.557 0-1.009.448-1.009 1v3c0 .552.452 1 1.01 1h1.816c.39 0 .803-.313.803-.7v-1.1c0-.11-.113-.304-.224-.304H9.068M12.842 13h1.261m0 0h1.262m-1.262 0v4.875M21.251 13h-2.523c-.557 0-1.009.448-1.009 1v1.5m0 0V18m0-2.5h2.523"})]})})}function N(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",children:t.jsx("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"})})}function O(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 48 48",children:t.jsxs("g",{fill:"none",stroke:"currentColor",strokeWidth:"4",children:[t.jsx("circle",{cx:"10",cy:"24",r:"4"}),t.jsx("circle",{cx:"38",cy:"10",r:"4"}),t.jsx("circle",{cx:"38",cy:"24",r:"4"}),t.jsx("circle",{cx:"38",cy:"38",r:"4"}),t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M34 38H22V10h12M14 24h20"})]})})}function X(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",children:t.jsx("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"})})}function F(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("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"})})}function q(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"currentColor",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"})})}function Z(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[t.jsx("path",{d:"M18 11c0-.818 0-1.57-.152-1.937s-.441-.657-1.02-1.235l-4.736-4.736c-.499-.499-.748-.748-1.058-.896a2 2 0 0 0-.197-.082C10.514 2 10.161 2 9.456 2c-3.245 0-4.868 0-5.967.886a4 4 0 0 0-.603.603C2 4.59 2 6.211 2 9.456V14c0 3.771 0 5.657 1.172 6.828S6.229 22 10 22h8M11 2.5V3c0 2.828 0 4.243.879 5.121C12.757 9 14.172 9 17 9h.5"}),t.jsx("path",{d:"M5 14v2.5M5 19v-2.5M8 14v2.5M8 19v-2.5m-3 0h3m2-2.5h1.25m1.25 0h-1.25m0 0v5m3.25 0v-5l1.75 2.5L18 14v5m2-5v5h2"})]})})}const G={Bold:e.Bold,LoaderCircle:e.LoaderCircle,Italic:e.Italic,Underline:e.Underline,Quote:e.Quote,TextQuote:V,Strikethrough:e.Strikethrough,Minus:e.Minus,Eraser:e.Eraser,PaintRoller:e.PaintRoller,Redo2:e.Redo2,Undo2:e.Undo2,AlignCenter:a.TextAlignCenterIcon,AlignJustify:a.TextAlignJustifyIcon,AlignLeft:a.TextAlignLeftIcon,AlignRight:a.TextAlignRightIcon,ChevronDown:e.ChevronDown,Subscript:e.Subscript,Superscript:e.Superscript,Code:e.Code,Code2:e.CodeXml,Type:e.Type,IndentIncrease:e.IndentIncrease,IndentDecrease:e.IndentDecrease,List:e.List,ListOrdered:e.ListOrdered,ListTodo:e.ListTodo,Link:e.Link,ImageUp:e.ImageUp,Video:e.Video,Maximize:e.Maximize,Minimize:e.Minimize,Table:e.Table,Sparkles:e.Sparkles,Pencil:e.Pencil,Unlink:e.Unlink,BetweenHorizonalEnd:e.BetweenHorizonalEnd,BetweenHorizonalStart:e.BetweenHorizonalStart,BetweenVerticalStart:e.BetweenVerticalStart,BetweenVerticalEnd:e.BetweenVerticalEnd,TableCellsMerge:e.TableCellsMerge,TableCellsSplit:e.TableCellsSplit,Trash2:e.Trash2,Trash:e.Trash,Replace:e.Replace,ChevronsUpDown:e.ChevronsUpDown,LineHeight:I,Word:T,Heading1:e.Heading1,Heading2:e.Heading2,Heading3:e.Heading3,Heading4:e.Heading4,Heading5:e.Heading5,Heading6:e.Heading6,Columns2:e.Columns2,Columns3:e.Columns3,Columns4:e.Columns4,Plus:e.Plus,Grip:e.GripVertical,Copy:e.Copy,Clipboard:e.Clipboard,PanelLeft:e.PanelLeft,PanelRight:e.PanelRight,Columns:e.Columns2,Iframe:e.Frame,MenuDown:p,SizeS:P,SizeM:R,SizeL:y,AspectRatio:z,Emoji:e.SmilePlus,DeleteColumn:B,DeleteRow:S,SearchAndReplace:e.Replace,EmojiIcon:e.SmilePlusIcon,KatexIcon:e.Sigma,ExportPdf:C,ExportWord:j,ImportWord:q,ColumnAddLeft:A,ColumnAddRight:E,BookMarked:e.BookMarked,Excalidraw:U,ZoomIn:e.ZoomIn,ZoomOut:e.ZoomOut,Settings:e.Settings,Eye:e.Eye,TextDirection:b,LeftToRight:N,RightToLeft:X,Attachment:e.Paperclip,GifIcon:D,ChevronUp:e.ChevronUp,Crop:e.CropIcon,Mermaid:O,Twitter:F,CodeView:W,FlipX:e.FlipVertical,FlipY:e.FlipHorizontal,PencilRuler:e.PencilRuler,WrapText:e.WrapText,Loader:e.Loader2,X:e.X,Html:Z,ExternalLink:e.ExternalLink},x=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,g=H.clsx,Q=(n,i)=>r=>{var d;if((i==null?void 0:i.variants)==null)return g(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:w,defaultVariants:h}=i,k=Object.keys(w).map(l=>{const o=r==null?void 0:r[l],s=h==null?void 0:h[l];if(o===null)return null;const c=x(o)||x(s);return w[l][c]}),u=r&&Object.entries(r).reduce((l,o)=>{let[s,c]=o;return c===void 0||(l[s]=c),l},{}),f=i==null||(d=i.compoundVariants)===null||d===void 0?void 0:d.reduce((l,o)=>{let{class:s,className:c,...M}=o;return Object.entries(M).every(L=>{let[v,m]=L;return Array.isArray(m)?m.includes({...h,...u}[v]):{...h,...u}[v]===m})?[...l,s,c]:l},[]);return g(n,k,f,r==null?void 0:r.class,r==null?void 0:r.className)};exports.ExportPdf=C;exports.ExportWord=j;exports.MenuDown=p;exports.cva=Q;exports.icons=G;
@@ -1,19 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import * as t from "@radix-ui/react-label";
4
- import { c as m } from "./index-BQ17A_37.js";
5
- import { c as s } from "./index-DuZCJJSp.js";
6
- const c = m(
7
- "richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
8
- ), l = i.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
9
- t.Root,
10
- {
11
- className: s(c(), e),
12
- ref: o,
13
- ...r
14
- }
15
- ));
16
- l.displayName = t.Root.displayName;
17
- export {
18
- l as L
19
- };
@@ -1 +0,0 @@
1
- "use strict";const o=require("react/jsx-runtime"),s=require("react"),l=require("@radix-ui/react-label"),u=require("./index-DmOTQudI.cjs"),d=require("./index-CNzHZDls.cjs");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const m=c(s),n=c(l),b=u.cva("richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"),a=m.forwardRef(({className:e,...r},t)=>o.jsx(n.Root,{className:d.cn(b(),e),ref:t,...r}));a.displayName=n.Root.displayName;exports.Label=a;
@@ -1 +0,0 @@
1
- "use strict";const e=require("react/jsx-runtime"),x=require("react"),y=require("@radix-ui/react-slot"),d=require("./index-CNzHZDls.cjs"),N=require("./useButtonProps-bei1vI37.cjs"),s=require("./tooltip-DFjcKu9a.cjs"),C=require("@radix-ui/react-toggle"),h=require("./index-DmOTQudI.cjs");function u(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 R=u(x),f=u(C),O=x.forwardRef((t,r)=>{const{icon:i=void 0,tooltip:o=void 0,disabled:n=!1,customClass:g="",loading:w=void 0,shortcutKeys:c=void 0,tooltipOptions:p={},action:m=void 0,isActive:z=void 0,children:v,asChild:b=!1,upload:P=!1,initialDisplayedColor:_=void 0,dataState:j=!1,...T}=t,l=h.icons[i],q=b?y.Slot:a;return e.jsxs(s.Tooltip,{children:[e.jsx(s.TooltipTrigger,{asChild:!0,children:e.jsxs(q,{className:d.cn("richtext-w-[32px] richtext-h-[32px]",g),"data-state":j?"on":"off",disabled:n,onClick:m,ref:r,size:"sm",...T,children:[l&&e.jsx(l,{className:"richtext-size-4"}),v]})}),o&&e.jsx(s.TooltipContent,{...p,className:"richtext-tooltip",children:e.jsxs("div",{className:"richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center",children:[e.jsx("div",{children:o}),!!(c!=null&&c.length)&&e.jsx("span",{children:N.getShortcutKeys(c)})]})})]})}),S=h.cva("richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",{variants:{variant:{default:"richtext-bg-transparent",outline:"richtext-border richtext-border-input richtext-bg-transparent hover:richtext-bg-accent hover:richtext-text-accent-foreground"},size:{default:"richtext-h-10 richtext-px-3",sm:"richtext-h-9 richtext-px-2",lg:"richtext-h-11 richtext-px-5"}},defaultVariants:{variant:"default",size:"default"}}),a=R.forwardRef(({className:t,variant:r,size:i,...o},n)=>e.jsx(f.Root,{ref:n,className:d.cn(S({variant:r,size:i,className:t})),...o}));a.displayName=f.Root.displayName;exports.ActionButton=O;exports.Toggle=a;
@@ -1,92 +0,0 @@
1
- import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import * as b from "react";
3
- import C from "react";
4
- import { Slot as T } from "@radix-ui/react-slot";
5
- import { c as l } from "./index-DuZCJJSp.js";
6
- import { g as N } from "./useButtonProps-D0SrPzuG.js";
7
- import { T as R, a as y, b as w } from "./tooltip-BTFcHrd9.js";
8
- import * as h from "@radix-ui/react-toggle";
9
- import { i as z, c as j } from "./index-BQ17A_37.js";
10
- const G = C.forwardRef(
11
- (r, o) => {
12
- const {
13
- icon: c = void 0,
14
- // title = undefined,
15
- tooltip: e = void 0,
16
- disabled: a = !1,
17
- customClass: d = "",
18
- // color = undefined,
19
- loading: S = void 0,
20
- shortcutKeys: i = void 0,
21
- tooltipOptions: f = {},
22
- action: m = void 0,
23
- isActive: k = void 0,
24
- children: p,
25
- asChild: g = !1,
26
- upload: V = !1,
27
- initialDisplayedColor: _ = void 0,
28
- dataState: u = !1,
29
- ...v
30
- } = r, n = z[c];
31
- return /* @__PURE__ */ s(R, { children: [
32
- /* @__PURE__ */ t(y, { asChild: !0, children: /* @__PURE__ */ s(
33
- g ? T : x,
34
- {
35
- className: l("richtext-w-[32px] richtext-h-[32px]", d),
36
- "data-state": u ? "on" : "off",
37
- disabled: a,
38
- onClick: m,
39
- ref: o,
40
- size: "sm",
41
- ...v,
42
- children: [
43
- n && /* @__PURE__ */ t(n, { className: "richtext-size-4" }),
44
- p
45
- ]
46
- }
47
- ) }),
48
- e && /* @__PURE__ */ t(
49
- w,
50
- {
51
- ...f,
52
- className: "richtext-tooltip",
53
- children: /* @__PURE__ */ s("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
54
- /* @__PURE__ */ t("div", { children: e }),
55
- !!(i != null && i.length) && /* @__PURE__ */ t("span", { children: N(i) })
56
- ] })
57
- }
58
- )
59
- ] });
60
- }
61
- ), A = j(
62
- "richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
63
- {
64
- variants: {
65
- variant: {
66
- default: "richtext-bg-transparent",
67
- outline: "richtext-border richtext-border-input richtext-bg-transparent hover:richtext-bg-accent hover:richtext-text-accent-foreground"
68
- },
69
- size: {
70
- default: "richtext-h-10 richtext-px-3",
71
- sm: "richtext-h-9 richtext-px-2",
72
- lg: "richtext-h-11 richtext-px-5"
73
- }
74
- },
75
- defaultVariants: {
76
- variant: "default",
77
- size: "default"
78
- }
79
- }
80
- ), x = b.forwardRef(({ className: r, variant: o, size: c, ...e }, a) => /* @__PURE__ */ t(
81
- h.Root,
82
- {
83
- ref: a,
84
- className: l(A({ variant: o, size: c, className: r })),
85
- ...e
86
- }
87
- ));
88
- x.displayName = h.Root.displayName;
89
- export {
90
- G as A,
91
- x as T
92
- };
@@ -1,24 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import * as d from "react";
3
- import * as t from "@radix-ui/react-tooltip";
4
- import { c } from "./index-DuZCJJSp.js";
5
- const x = t.Provider, h = t.Root, p = t.Trigger, s = d.forwardRef(({ className: i, sideOffset: r = 4, ...e }, o) => /* @__PURE__ */ a(
6
- t.Content,
7
- {
8
- "data-richtext-portal": !0,
9
- ref: o,
10
- sideOffset: r,
11
- className: c(
12
- "richtext-z-50 richtext-overflow-hidden richtext-rounded-md richtext-bg-primary richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-text-primary-foreground richtext-shadow-md richtext-animate-in richtext-fade-in-0 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-none",
13
- i
14
- ),
15
- ...e
16
- }
17
- ));
18
- s.displayName = t.Content.displayName;
19
- export {
20
- h as T,
21
- p as a,
22
- s as b,
23
- x as c
24
- };
@@ -1 +0,0 @@
1
- "use strict";const a=require("react/jsx-runtime"),d=require("react"),s=require("@radix-ui/react-tooltip"),l=require("./index-CNzHZDls.cjs");function n(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return i.default=t,Object.freeze(i)}const p=n(d),r=n(s),m=r.Provider,x=r.Root,h=r.Trigger,c=p.forwardRef(({className:t,sideOffset:i=4,...e},o)=>a.jsx(r.Content,{"data-richtext-portal":!0,ref:o,sideOffset:i,className:l.cn("richtext-z-50 richtext-overflow-hidden richtext-rounded-md richtext-bg-primary richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-text-primary-foreground richtext-shadow-md richtext-animate-in richtext-fade-in-0 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-none",t),...e}));c.displayName=r.Content.displayName;exports.Tooltip=x;exports.TooltipContent=c;exports.TooltipProvider=m;exports.TooltipTrigger=h;
@@ -1 +0,0 @@
1
- "use strict";const s=require("react"),b=require("./index-CNzHZDls.cjs"),m=require("./index-DLqogznp.cjs"),M=require("./index-FSRjMsxW.cjs");function h(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const x=h(s);let l;function p(){return l===void 0&&(l=navigator.platform.includes("Mac")),l}function g(t){return`${t}`.toLowerCase()==="mod"?p()?"⌘":"Ctrl":`${t}`.toLowerCase()==="alt"?p()?"⌥":"Alt":`${t}`.toLowerCase()==="shift"?p()?"⇧":"Shift":t}function y(t){return t.map(g).join(" ")}function C(t){const{editor:e}=m.useCurrentEditor(),n=x.useMemo(()=>e,[t,e]);return m.useEditorState({editor:n,selector(r){return r.editor?{editor:r.editor,editorState:r.editor.state,canCommand:r.editor.can}:{editor:null,editorState:void 0,canCommand:void 0}}})||{editor:null}}function f(){return C().editor}const S=()=>!1;function D(t=S){const e=b.useEditableEditor(),[n,o]=s.useState(()=>{const u=t();return typeof u=="boolean"?!u:u}),r=f();s.useEffect(()=>{if(!r||!t)return;const u=()=>{const c=t();o(typeof c=="boolean"?!c:c)};return u(),r.on("selectionUpdate",u),r.on("transaction",u),()=>{r.off("selectionUpdate",u),r.off("transaction",u)}},[r,t]);const a=s.useMemo(()=>!e||!r?!0:typeof n=="boolean"?n:!1,[e,r,n]),i=s.useMemo(()=>!e||!r,[e,r]);return{disabled:a,dataState:n,editorDisabled:i}}function N(t=S){const e=b.useEditableEditor(),[n,o]=s.useState({}),[r,a]=s.useState(t()),i=f();s.useEffect(()=>{if(!i||!t)return;const d=()=>{a(t())};return d(),i.on("selectionUpdate",d),()=>{i.off("selectionUpdate",d)}},[n,i,t]);const u=s.useMemo(()=>!e||!i,[e,i]),c=s.useMemo(()=>!e||!i,[e,i]);return{disabled:u,dataState:r,editorDisabled:c,update:()=>o({})}}function E(t){const e=f();return s.useMemo(()=>e?e.extensionManager.extensions.find(o=>o.name===t):null,[e,t])}function O(t,e,n){return t<e?e:t>n?n:t}const U=t=>typeof t=="number",P=t=>typeof t=="string",$=t=>typeof t=="function";function j(t,e="px"){if(!t)return t;const n=U(t)?String(t):t,o=Number.parseFloat(n),r=n.match(/[%a-z]+$/i),a=r?r[0]:e;return Number.isNaN(o)?t:o+a}function q(t,e){if(!t)return!1;const{extensions:n=[]}=(t==null?void 0:t.extensionManager)??{};return!!n.find(r=>r.name===e)}function w(t){return t.map(e=>P(e)?{value:e,name:e}:e)}function K(t){const e=f(),n=E(t),{t:o}=M.useLocale();return s.useMemo(()=>{if(!e||!n)return null;const{button:r}=n.options;return!r||!$(r)?null:r({editor:e,extension:n,t:o})},[e,n,o])}exports.clamp=O;exports.ensureNameValueOptions=w;exports.getCssUnitWithDefault=j;exports.getShortcutKey=g;exports.getShortcutKeys=y;exports.hasExtension=q;exports.useActive=D;exports.useButtonProps=K;exports.useEditorInstance=f;exports.useExtension=E;exports.useToggleActive=N;