@baseline-ui/core 3.2.0 → 3.3.0

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 (264) hide show
  1. package/dist/Accordion.mjs +1 -1
  2. package/dist/ActionButton.css +1 -1
  3. package/dist/ActionButton.mjs +1 -1
  4. package/dist/ActionGroup.mjs +1 -1
  5. package/dist/ActionIconButton.mjs +1 -1
  6. package/dist/Actionable.mjs +1 -1
  7. package/dist/AlertDialog.css +1 -1
  8. package/dist/AlertDialog.mjs +1 -1
  9. package/dist/AudioPlayer.css +1 -1
  10. package/dist/AudioPlayer.mjs +1 -1
  11. package/dist/Avatar.mjs +1 -1
  12. package/dist/ButtonSelect.css +1 -1
  13. package/dist/ButtonSelect.mjs +1 -1
  14. package/dist/Calendar.css +1 -1
  15. package/dist/Calendar.mjs +1 -1
  16. package/dist/Checkbox.mjs +1 -1
  17. package/dist/Code.mjs +1 -1
  18. package/dist/ColorInput.css +1 -1
  19. package/dist/ColorInput.mjs +1 -1
  20. package/dist/ColorSwatch.mjs +1 -1
  21. package/dist/ColorSwatchPicker.mjs +1 -1
  22. package/dist/ComboBox.css +1 -1
  23. package/dist/ComboBox.mjs +1 -1
  24. package/dist/DateField.css +1 -1
  25. package/dist/DateField.mjs +1 -1
  26. package/dist/Dialog.mjs +1 -1
  27. package/dist/Disclosure.mjs +1 -1
  28. package/dist/DomNodeRenderer.mjs +1 -1
  29. package/dist/Drawer.mjs +1 -1
  30. package/dist/Editor.css +1 -1
  31. package/dist/Editor.mjs +1 -1
  32. package/dist/FileInput.css +1 -1
  33. package/dist/FileInput.mjs +1 -1
  34. package/dist/FileList.mjs +1 -1
  35. package/dist/FileUploader.css +1 -1
  36. package/dist/FileUploader.mjs +1 -1
  37. package/dist/FrameProvider.mjs +1 -1
  38. package/dist/FreehandCanvas.css +1 -1
  39. package/dist/FreehandCanvas.mjs +1 -1
  40. package/dist/GridList.mjs +1 -1
  41. package/dist/Icon.mjs +1 -1
  42. package/dist/ImageDropZone.css +1 -1
  43. package/dist/ImageDropZone.mjs +1 -1
  44. package/dist/ImageGallery.css +1 -1
  45. package/dist/ImageGallery.mjs +1 -1
  46. package/dist/InlineAlert.css +1 -1
  47. package/dist/InlineAlert.mjs +1 -1
  48. package/dist/InlineToolbar.mjs +2 -2
  49. package/dist/Kbd.mjs +1 -1
  50. package/dist/Link.mjs +1 -1
  51. package/dist/ListBox.mjs +1 -1
  52. package/dist/Markdown.mjs +1 -1
  53. package/dist/Menu.css +1 -1
  54. package/dist/Menu.mjs +1 -1
  55. package/dist/Modal.mjs +1 -1
  56. package/dist/NumberInput.mjs +1 -1
  57. package/dist/Pagination.mjs +1 -1
  58. package/dist/PointPicker.mjs +1 -1
  59. package/dist/Popover.mjs +1 -1
  60. package/dist/Portal.mjs +1 -1
  61. package/dist/Preview.mjs +1 -1
  62. package/dist/ProgressBar.mjs +1 -1
  63. package/dist/RadioGroup.mjs +1 -1
  64. package/dist/Reaction.mjs +1 -1
  65. package/dist/ScrollControlButton.mjs +1 -1
  66. package/dist/SearchInput.mjs +1 -1
  67. package/dist/Select.css +1 -1
  68. package/dist/Select.mjs +1 -1
  69. package/dist/Separator.mjs +1 -1
  70. package/dist/Slider.css +1 -1
  71. package/dist/Slider.mjs +1 -1
  72. package/dist/StatusCard.mjs +1 -1
  73. package/dist/Stepper.mjs +1 -1
  74. package/dist/Switch.mjs +1 -1
  75. package/dist/Table.mjs +1 -1
  76. package/dist/Tabs.mjs +1 -1
  77. package/dist/Tag.mjs +1 -1
  78. package/dist/TagGroup.mjs +1 -1
  79. package/dist/TaggedPagination.mjs +1 -1
  80. package/dist/Text.mjs +1 -1
  81. package/dist/TextInput.mjs +1 -1
  82. package/dist/ThemeProvider.mjs +1 -1
  83. package/dist/TimeField.mjs +1 -1
  84. package/dist/Toast.css +1 -1
  85. package/dist/Toast.mjs +1 -1
  86. package/dist/ToggleButton.css +1 -1
  87. package/dist/ToggleButton.mjs +1 -1
  88. package/dist/ToggleIconButton.mjs +1 -1
  89. package/dist/Toolbar.css +1 -1
  90. package/dist/Toolbar.mjs +1 -1
  91. package/dist/Tooltip.mjs +1 -1
  92. package/dist/TreeView.mjs +1 -1
  93. package/dist/UNSAFE_ListBox.mjs +1 -1
  94. package/dist/Virtualizer.mjs +1 -1
  95. package/dist/{chunk-XJGQXVMR.mjs → chunk-2BXXD6SW.mjs} +2 -2
  96. package/dist/{chunk-NCADIC3I.mjs → chunk-2EMOQIU7.mjs} +2 -2
  97. package/dist/{chunk-4FTKS25Q.mjs → chunk-2TH2QRSV.mjs} +2 -2
  98. package/dist/{chunk-JB3O4ABN.mjs → chunk-2V323KAD.mjs} +1 -1
  99. package/dist/{chunk-42B24XCP.mjs → chunk-2YTKLY4F.mjs} +1 -1
  100. package/dist/{chunk-PJM4COF5.mjs → chunk-4C6AJ3TZ.mjs} +2 -2
  101. package/dist/{chunk-NPJX2CEI.mjs → chunk-5HK56IXH.mjs} +1 -1
  102. package/dist/chunk-5IXSPQRW.mjs +10 -0
  103. package/dist/{chunk-IDEAEEBP.mjs → chunk-5K46OAX5.mjs} +2 -2
  104. package/dist/chunk-5MUEJ5WI.mjs +10 -0
  105. package/dist/chunk-6EFNC443.mjs +10 -0
  106. package/dist/{chunk-F6JQN7YM.mjs → chunk-6JWACCHG.mjs} +2 -2
  107. package/dist/{chunk-XVBOKL6D.mjs → chunk-6NQPENP4.mjs} +1 -1
  108. package/dist/{chunk-YT36W3OS.mjs → chunk-6PXOVWVM.mjs} +2 -2
  109. package/dist/chunk-6V7BIFQD.mjs +10 -0
  110. package/dist/chunk-6VXBFM6Q.mjs +10 -0
  111. package/dist/{chunk-4BYKAG4W.mjs → chunk-7L5UOGZA.mjs} +1 -1
  112. package/dist/{chunk-DF3BVX5Z.mjs → chunk-7MQBBSZ2.mjs} +2 -2
  113. package/dist/{chunk-O66FNQSB.mjs → chunk-7P322KP4.mjs} +1 -1
  114. package/dist/{chunk-UCZZLAPB.mjs → chunk-AW5WDI2U.mjs} +1 -1
  115. package/dist/chunk-AYBACQ6U.mjs +10 -0
  116. package/dist/chunk-B237CJT4.mjs +10 -0
  117. package/dist/{chunk-PBFIKNYZ.mjs → chunk-B6U6JHD4.mjs} +1 -1
  118. package/dist/{chunk-VHDXSFQC.mjs → chunk-BBZ2I3RF.mjs} +2 -2
  119. package/dist/chunk-BCENUHNO.mjs +10 -0
  120. package/dist/{chunk-DXP33KAB.mjs → chunk-BGHBSM3K.mjs} +2 -2
  121. package/dist/chunk-BIDNNBRG.mjs +10 -0
  122. package/dist/chunk-BROSGYL3.mjs +10 -0
  123. package/dist/{chunk-BW4VAHXR.mjs → chunk-C7AUJO36.mjs} +2 -2
  124. package/dist/{chunk-THRAJMLX.mjs → chunk-CCA2ABXO.mjs} +2 -2
  125. package/dist/{chunk-N7MTFSWR.mjs → chunk-CUOTJ7AP.mjs} +2 -2
  126. package/dist/chunk-CYTHB4M4.mjs +10 -0
  127. package/dist/chunk-DDLZ6CKC.mjs +10 -0
  128. package/dist/chunk-DMJHCNBU.mjs +10 -0
  129. package/dist/{chunk-HFVJXZBG.mjs → chunk-E3DMXJIC.mjs} +2 -2
  130. package/dist/{chunk-KG5PDPBK.mjs → chunk-E3QDPL77.mjs} +2 -2
  131. package/dist/chunk-E5GYCA3P.mjs +10 -0
  132. package/dist/{chunk-LQMY6TXS.mjs → chunk-EGXILQNX.mjs} +1 -1
  133. package/dist/{chunk-75722G3R.mjs → chunk-EYKIXVM3.mjs} +2 -2
  134. package/dist/{chunk-XB657BXX.mjs → chunk-GI2O6H4I.mjs} +1 -1
  135. package/dist/chunk-GVI6EBGJ.mjs +10 -0
  136. package/dist/chunk-HK3CZVHY.mjs +10 -0
  137. package/dist/{chunk-WSCZ34XO.mjs → chunk-HVKYWSRF.mjs} +2 -2
  138. package/dist/chunk-ILAQFMYD.mjs +10 -0
  139. package/dist/chunk-ITWJSFYK.mjs +10 -0
  140. package/dist/{chunk-MFH2E2GU.mjs → chunk-IVC2BJRU.mjs} +1 -1
  141. package/dist/{chunk-TEQE6WCH.mjs → chunk-IXK6S6IH.mjs} +1 -1
  142. package/dist/{chunk-HXTAOYOD.mjs → chunk-IXRSSEHQ.mjs} +1 -1
  143. package/dist/{chunk-5ODZPQL2.mjs → chunk-JDIGAVFU.mjs} +2 -2
  144. package/dist/{chunk-C5P23FUW.mjs → chunk-K6HE4Z2Y.mjs} +1 -1
  145. package/dist/chunk-K73R5G6G.mjs +10 -0
  146. package/dist/chunk-KEAM6GSA.mjs +10 -0
  147. package/dist/{chunk-JBMVWRHN.mjs → chunk-KHOXLBPR.mjs} +2 -2
  148. package/dist/{chunk-5DOFIGHJ.mjs → chunk-KWHTLY23.mjs} +2 -2
  149. package/dist/{chunk-4NYPVKDO.mjs → chunk-L6S5GBKS.mjs} +2 -2
  150. package/dist/chunk-M7OLZJYB.mjs +10 -0
  151. package/dist/{chunk-VXB5SVQC.mjs → chunk-MAJ74VNE.mjs} +1 -1
  152. package/dist/{chunk-TDOAVBKD.mjs → chunk-MONDDKB4.mjs} +2 -2
  153. package/dist/chunk-N26C7NYZ.mjs +10 -0
  154. package/dist/{chunk-P5GO3XIS.mjs → chunk-N6VKP3UH.mjs} +1 -1
  155. package/dist/chunk-NADBGP35.mjs +10 -0
  156. package/dist/chunk-NMSOOQB2.mjs +10 -0
  157. package/dist/{chunk-ENDOKA57.mjs → chunk-NQO6OQT6.mjs} +1 -1
  158. package/dist/{chunk-246VHB32.mjs → chunk-NUYBQ7KP.mjs} +1 -1
  159. package/dist/{chunk-77BAFSDX.mjs → chunk-NZQVKNP4.mjs} +2 -2
  160. package/dist/{chunk-K3S22PMF.mjs → chunk-P37WUXAI.mjs} +2 -2
  161. package/dist/{chunk-T3AMYEKR.mjs → chunk-P5LSMA24.mjs} +3 -3
  162. package/dist/{chunk-CSPZMYVG.mjs → chunk-PA3THES4.mjs} +1 -1
  163. package/dist/chunk-PG3WDHSK.mjs +10 -0
  164. package/dist/{chunk-GZ5ZWXIC.mjs → chunk-PNBYTIUO.mjs} +1 -1
  165. package/dist/{chunk-7HZ5JFYX.mjs → chunk-QDQPVCXN.mjs} +2 -2
  166. package/dist/{chunk-MXKP7NQ4.mjs → chunk-QSSCSN5S.mjs} +1 -1
  167. package/dist/chunk-QXOG2ISL.mjs +10 -0
  168. package/dist/{chunk-EV24JU64.mjs → chunk-QYTY3KJR.mjs} +2 -2
  169. package/dist/{chunk-3CWP2VCB.mjs → chunk-R2OV7FJO.mjs} +2 -2
  170. package/dist/{chunk-HLDCVJXD.mjs → chunk-RILRXWGE.mjs} +1 -1
  171. package/dist/{chunk-WOVAT6U4.mjs → chunk-RJZZIVSY.mjs} +2 -2
  172. package/dist/chunk-RO5ZRU3Y.mjs +10 -0
  173. package/dist/chunk-RSTHM3ZF.mjs +10 -0
  174. package/dist/{chunk-FTYXFTJV.mjs → chunk-SBR5UAUY.mjs} +2 -2
  175. package/dist/chunk-SHJ2TJYG.mjs +10 -0
  176. package/dist/{chunk-DRIHXAP3.mjs → chunk-SYFSGF73.mjs} +2 -2
  177. package/dist/{chunk-J7EAQSKX.mjs → chunk-SZTFMBPY.mjs} +1 -1
  178. package/dist/chunk-T4R3EXGI.mjs +10 -0
  179. package/dist/{chunk-WXWGGDTG.mjs → chunk-TBCZKWGQ.mjs} +2 -2
  180. package/dist/{chunk-JJPCZOOI.mjs → chunk-TCCQDGMI.mjs} +1 -1
  181. package/dist/{chunk-IHLJTHGQ.mjs → chunk-TDYBXLYP.mjs} +1 -1
  182. package/dist/{chunk-MI7DCFP2.mjs → chunk-TTYRHIRQ.mjs} +1 -1
  183. package/dist/{chunk-OC42IZG2.mjs → chunk-UBFMOTBM.mjs} +2 -2
  184. package/dist/chunk-UCPPKNGF.mjs +10 -0
  185. package/dist/{chunk-EK3RIYMV.mjs → chunk-UEDBY5JI.mjs} +1 -1
  186. package/dist/{chunk-ECPG4S5O.mjs → chunk-UN7XC7QV.mjs} +2 -2
  187. package/dist/{chunk-JUXBZ2ZN.mjs → chunk-UT2I4K7L.mjs} +1 -1
  188. package/dist/{chunk-J7K7I5U2.mjs → chunk-V37GPPZD.mjs} +1 -1
  189. package/dist/chunk-VAFIUM63.mjs +29 -0
  190. package/dist/{chunk-KKJ6XIU3.mjs → chunk-VIVNQZYK.mjs} +2 -2
  191. package/dist/{chunk-2JANDORZ.mjs → chunk-VOSSQAHC.mjs} +1 -1
  192. package/dist/chunk-VZFS4QRW.mjs +10 -0
  193. package/dist/chunk-X5Z54UUE.mjs +10 -0
  194. package/dist/{chunk-RJWPSJX2.mjs → chunk-X6IJEPSH.mjs} +1 -1
  195. package/dist/{chunk-7GJMJTRL.mjs → chunk-XEGXSFIP.mjs} +1 -1
  196. package/dist/{chunk-JQ4ZGZPV.mjs → chunk-XF5UMU6D.mjs} +3 -3
  197. package/dist/{chunk-5YYWD7PK.mjs → chunk-XJ2DFV56.mjs} +1 -1
  198. package/dist/{chunk-NSC53QWT.mjs → chunk-XUJJMAKM.mjs} +1 -1
  199. package/dist/{chunk-U2ODAIZG.mjs → chunk-XZSDCUID.mjs} +1 -1
  200. package/dist/{chunk-RF4E6MLM.mjs → chunk-Y3YZMICA.mjs} +1 -1
  201. package/dist/{chunk-TO6OQF2Y.mjs → chunk-YKMSINHH.mjs} +2 -2
  202. package/dist/{chunk-X3NOIEDZ.mjs → chunk-YWCU4PP7.mjs} +2 -2
  203. package/dist/chunk-YWQXHVMW.mjs +10 -0
  204. package/dist/{chunk-FOEGHU3P.mjs → chunk-YX2ASVM3.mjs} +1 -1
  205. package/dist/{chunk-N4UAXVES.mjs → chunk-Z4HTFTPM.mjs} +2 -2
  206. package/dist/chunk-ZLZAFTSD.mjs +10 -0
  207. package/dist/hooks/useContainerScopedRef.mjs +1 -1
  208. package/dist/hooks/useDevice.mjs +1 -1
  209. package/dist/hooks/useIntersectionObserver.mjs +1 -1
  210. package/dist/hooks/useLocalStorage.mjs +1 -1
  211. package/dist/hooks/useMutationObserver.mjs +1 -1
  212. package/dist/hooks/usePortalContainer.mjs +1 -1
  213. package/dist/hooks/usePreventFocus.mjs +1 -1
  214. package/dist/hooks/useResizeObserver.mjs +1 -1
  215. package/dist/hooks/useTextSelection.mjs +1 -1
  216. package/dist/hooks/useUndoRedo.mjs +1 -1
  217. package/dist/index.css +1 -1
  218. package/dist/index.d.ts +46 -31
  219. package/dist/index.js +19 -19
  220. package/dist/index.mjs +1 -1
  221. package/dist/utils/dom.mjs +1 -1
  222. package/dist/utils/isInShadowDOM.mjs +1 -1
  223. package/dist/utils/keyboards.mjs +1 -1
  224. package/package.json +6 -6
  225. package/sbom.json +27 -77
  226. package/dist/chunk-26T2EPFD.mjs +0 -29
  227. package/dist/chunk-2WAKHFPS.mjs +0 -10
  228. package/dist/chunk-3NQY5GPQ.mjs +0 -10
  229. package/dist/chunk-44OUOGJ4.mjs +0 -10
  230. package/dist/chunk-4N6CLPAY.mjs +0 -10
  231. package/dist/chunk-5PIO6M4F.mjs +0 -10
  232. package/dist/chunk-5ULL6IBX.mjs +0 -10
  233. package/dist/chunk-6IRWW75G.mjs +0 -10
  234. package/dist/chunk-6ZFBX7C7.mjs +0 -10
  235. package/dist/chunk-AMQX3KZR.mjs +0 -10
  236. package/dist/chunk-AZRPXTYJ.mjs +0 -10
  237. package/dist/chunk-BKDQLDOK.mjs +0 -10
  238. package/dist/chunk-BXSJTXXY.mjs +0 -10
  239. package/dist/chunk-CIIO5D3X.mjs +0 -10
  240. package/dist/chunk-E6VOSF6Z.mjs +0 -10
  241. package/dist/chunk-ELXWR5TS.mjs +0 -10
  242. package/dist/chunk-FJ2JRD3H.mjs +0 -10
  243. package/dist/chunk-HWUESZY2.mjs +0 -10
  244. package/dist/chunk-I4WMXV4T.mjs +0 -10
  245. package/dist/chunk-IW4GXU75.mjs +0 -10
  246. package/dist/chunk-J3MJZQUJ.mjs +0 -10
  247. package/dist/chunk-J6TYT6BF.mjs +0 -10
  248. package/dist/chunk-K4N7GVEI.mjs +0 -10
  249. package/dist/chunk-L452ID76.mjs +0 -10
  250. package/dist/chunk-LLAMYDGW.mjs +0 -10
  251. package/dist/chunk-LLVFPC5Q.mjs +0 -10
  252. package/dist/chunk-NHD7I3X2.mjs +0 -10
  253. package/dist/chunk-PF3OQKXP.mjs +0 -10
  254. package/dist/chunk-QY3O34WX.mjs +0 -10
  255. package/dist/chunk-ROHLZINC.mjs +0 -10
  256. package/dist/chunk-TIHKHXTS.mjs +0 -10
  257. package/dist/chunk-UVVONIZB.mjs +0 -10
  258. package/dist/chunk-WC2NUASA.mjs +0 -10
  259. package/dist/chunk-WDJ4GXWF.mjs +0 -10
  260. package/dist/chunk-Y45SV547.mjs +0 -10
  261. package/dist/chunk-YVYMYKYN.mjs +0 -10
  262. package/dist/chunk-ZREX7XOO.mjs +0 -10
  263. /package/dist/{chunk-EZXMEGV7.mjs → chunk-G6VX4SU6.mjs} +0 -0
  264. /package/dist/{chunk-FXCHST4Z.mjs → chunk-JQQGRJ5J.mjs} +0 -0
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export{a as isInsideOverlayContent}from'./chunk-A6ZQQSAX.mjs';export{a as isInIframe}from'./chunk-IB23KCIW.mjs';export{a as useMutationObserver}from'./chunk-ZLAY7NNY.mjs';export{a as TreeView}from'./chunk-BW4VAHXR.mjs';export{a as UNSAFE_aria}from'./chunk-AGYQLGBZ.mjs';export{c as UNSAFE_stately,a as useListData}from'./chunk-INDVRI57.mjs';export{a as TimeField}from'./chunk-CSPZMYVG.mjs';export{b as GlobalToastRegion,a as ToastQueue}from'./chunk-JBMVWRHN.mjs';export{a as Stepper}from'./chunk-QY3O34WX.mjs';export{a as Switch}from'./chunk-XB657BXX.mjs';export{f as Cell,c as Column,e as Row,a as Table,d as TableBody,b as TableHeader,g as useTableDragAndDrop}from'./chunk-NCADIC3I.mjs';export{b as TabItem,a as Tabs}from'./chunk-WC2NUASA.mjs';import'./chunk-TJEK54BW.mjs';export{a as TaggedPagination}from'./chunk-J6TYT6BF.mjs';export{a as RadioGroup}from'./chunk-XJGQXVMR.mjs';export{a as Reaction}from'./chunk-3CWP2VCB.mjs';import'./chunk-CHTLOFCT.mjs';export{a as ScrollControlButton}from'./chunk-YT36W3OS.mjs';export{a as Skeleton}from'./chunk-F2HESRBD.mjs';export{a as Panel,b as PanelGroup,c as PanelResizeHandle}from'./chunk-LQMEFFFM.mjs';export{a as PointPicker,b as PointPickerContent,c as PointPickerDisplay,d as usePointProximity}from'./chunk-T3AMYEKR.mjs';export{a as clamp}from'./chunk-JBXZ6ZHP.mjs';export{a as usePreventFocus}from'./chunk-63KRQW56.mjs';export{a as useLiveInteractionModality}from'./chunk-UCNHDT36.mjs';export{a as Preview}from'./chunk-I4WMXV4T.mjs';export{a as ProgressBar}from'./chunk-44OUOGJ4.mjs';export{a as Markdown}from'./chunk-VXB5SVQC.mjs';export{a as MessageFormat}from'./chunk-FWAK2OZM.mjs';export{a as Pagination}from'./chunk-NHD7I3X2.mjs';export{a as NumberFormat}from'./chunk-DRYSJSKA.mjs';export{a as Icon}from'./chunk-CAWUDHAE.mjs';export{a as ImageDropZone}from'./chunk-WDJ4GXWF.mjs';export{a as ImageGallery}from'./chunk-LLVFPC5Q.mjs';import'./chunk-CWPFUB7B.mjs';export{a as useImage}from'./chunk-NV7KQVPE.mjs';export{a as InlineAlert}from'./chunk-CIIO5D3X.mjs';export{a as useTextSelection}from'./chunk-TO2TQ2LE.mjs';export{a as Kbd}from'./chunk-P5GO3XIS.mjs';export{a as Link}from'./chunk-C5P23FUW.mjs';export{c as EMPTY_SELECTION_STATE,h as Editor,a as EditorCore,g as EditorProvider,e as handleEditorShortcut,f as useEditable,d as useEditor,b as useEditorContext}from'./chunk-26T2EPFD.mjs';export{a as isUrl}from'./chunk-JI4SJ53O.mjs';export{b as areColorsEqual,a as lightenColor}from'./chunk-GKODQS6E.mjs';export{a as Toolbar}from'./chunk-LLAMYDGW.mjs';export{a as capitalize,b as getPlainText}from'./chunk-HI44JQA7.mjs';export{a as Menu}from'./chunk-UVVONIZB.mjs';import'./chunk-A24DWFQ2.mjs';export{a as getOsSpecificKeyboardShortcutLabel}from'./chunk-3UH5CQQF.mjs';import'./chunk-IHLJTHGQ.mjs';export{a as FileInput}from'./chunk-E6VOSF6Z.mjs';export{a as FileList}from'./chunk-EV24JU64.mjs';export{a as ProgressSpinner}from'./chunk-YCI6BEXQ.mjs';import'./chunk-LZFTBNPW.mjs';export{a as FileUploader}from'./chunk-ZREX7XOO.mjs';import'./chunk-TKQOQVZD.mjs';export{a as onDropOrPaste}from'./chunk-TAYP2OGC.mjs';import'./chunk-IVVZSESM.mjs';import'./chunk-MZ4O6LWG.mjs';export{a as FreehandCanvas}from'./chunk-LQMY6TXS.mjs';export{a as getSvgPathFromStroke}from'./chunk-5HXTXIE5.mjs';export{a as useUndoRedo}from'./chunk-MI7DCFP2.mjs';export{a as useIsFirstRender}from'./chunk-DD5FWULD.mjs';import'./chunk-ELXWR5TS.mjs';import'./chunk-ROHLZINC.mjs';export{a as GridList}from'./chunk-IDEAEEBP.mjs';import'./chunk-TEQE6WCH.mjs';import'./chunk-AMQX3KZR.mjs';export{a as Group}from'./chunk-YIGT3OP2.mjs';export{a as ComboBox}from'./chunk-K4N7GVEI.mjs';import'./chunk-RF4E6MLM.mjs';export{a as devWarnOnce}from'./chunk-5IC46G5J.mjs';import'./chunk-VCIX4HG7.mjs';export{a as DateField}from'./chunk-42B24XCP.mjs';import'./chunk-KG5PDPBK.mjs';export{a as DateFormat}from'./chunk-HT55YHTN.mjs';import'./chunk-O57ZEY3V.mjs';export{a as Disclosure}from'./chunk-WSCZ34XO.mjs';export{b as StatusCard,a as iconMap}from'./chunk-5ODZPQL2.mjs';export{a as DomNodeRenderer}from'./chunk-D5EEZT5J.mjs';export{a as ButtonSelect}from'./chunk-N4UAXVES.mjs';export{b as ToggleButton}from'./chunk-77BAFSDX.mjs';export{a as Calendar,b as RangeCalendar}from'./chunk-PJM4COF5.mjs';export{e as GridLayout,b as ListLayout,g as LocaleAwareGridLayout,a as Size,f as TableLayout,h as VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS,d as Virtualizer,c as WaterfallLayout}from'./chunk-TO6OQF2Y.mjs';import'./chunk-N7MTFSWR.mjs';import'./chunk-GXOXYPQQ.mjs';import'./chunk-ENDOKA57.mjs';import'./chunk-UTQ7AIPM.mjs';export{a as Checkbox}from'./chunk-XVBOKL6D.mjs';import'./chunk-ZNN43VZV.mjs';import'./chunk-EA6GA4WC.mjs';import'./chunk-WAOWR7MR.mjs';export{a as Code}from'./chunk-HLDCVJXD.mjs';export{b as ColorInput,c as IconColorInput,a as IconColorInputButton}from'./chunk-Y45SV547.mjs';export{a as useLocalStorage}from'./chunk-FTYXFTJV.mjs';export{b as ModalClose,a as ModalTrigger}from'./chunk-GZ5ZWXIC.mjs';export{d as IconSelect,c as Select}from'./chunk-L452ID76.mjs';export{a as TagGroup}from'./chunk-WXWGGDTG.mjs';export{d as Tag}from'./chunk-VHDXSFQC.mjs';import'./chunk-5ULL6IBX.mjs';export{a as SearchInput}from'./chunk-HFVJXZBG.mjs';import'./chunk-6F66XVOA.mjs';import'./chunk-EK3RIYMV.mjs';import'./chunk-MXKP7NQ4.mjs';import'./chunk-3NQY5GPQ.mjs';import'./chunk-NO55UIGK.mjs';export{a as useFilter}from'./chunk-5BAHJXOI.mjs';export{a as useDragAndDrop}from'./chunk-7GJMJTRL.mjs';import'./chunk-UCZZLAPB.mjs';export{q as UNSAFE_ListBox}from'./chunk-75722G3R.mjs';import'./chunk-AMYRLAIC.mjs';import'./chunk-E3PFPOHX.mjs';import'./chunk-WSQGB4ZE.mjs';import'./chunk-SMAYNDQQ.mjs';import'./chunk-AMW7LGCF.mjs';export{d as Autocomplete}from'./chunk-KKJ6XIU3.mjs';import'./chunk-BLHN7I5Z.mjs';import'./chunk-BKDQLDOK.mjs';export{a as ColorSwatchPicker}from'./chunk-K3S22PMF.mjs';export{a as DefaultListOption,c as ListBox}from'./chunk-X3NOIEDZ.mjs';import'./chunk-WOVAT6U4.mjs';export{a as isInShadowDOM}from'./chunk-GEZGEZAP.mjs';import'./chunk-FJ2JRD3H.mjs';import'./chunk-O66FNQSB.mjs';import'./chunk-AZRPXTYJ.mjs';import'./chunk-YVYMYKYN.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-J7K7I5U2.mjs';import'./chunk-246VHB32.mjs';import'./chunk-OC42IZG2.mjs';import'./chunk-OMT6ZWSV.mjs';import'./chunk-ILBAZFBL.mjs';export{I as ColorSwatch}from'./chunk-7HZ5JFYX.mjs';export{a as parseColor}from'./chunk-EU75HMPG.mjs';export{a as Accordion,b as AccordionItem}from'./chunk-DXP33KAB.mjs';export{a as REACT_ARIA_INCOMPATIBLE_KEYS,b as safeSpreadProps}from'./chunk-Q5UMLFN3.mjs';export{a as ActionGroup,b as ActionGroupItem}from'./chunk-5DOFIGHJ.mjs';import'./chunk-L3SNGDBH.mjs';import'./chunk-NGZRN4SF.mjs';import'./chunk-J4NO4WYU.mjs';import'./chunk-PAQQ7MQG.mjs';import'./chunk-DECHIERQ.mjs';export{a as Actionable}from'./chunk-U2ODAIZG.mjs';export{a as AlertDialog}from'./chunk-4FTKS25Q.mjs';import'./chunk-4SW77SGW.mjs';export{a as TextInput}from'./chunk-RJWPSJX2.mjs';import'./chunk-2PH5GN2S.mjs';import'./chunk-2JANDORZ.mjs';import'./chunk-2MS356Q7.mjs';export{a as AudioPlayer}from'./chunk-BXSJTXXY.mjs';import'./chunk-MHUFXHRU.mjs';export{b as IconSlider,a as Slider}from'./chunk-TDOAVBKD.mjs';export{a as ToggleIconButton}from'./chunk-HWUESZY2.mjs';import'./chunk-CFLEBB5T.mjs';import'./chunk-MUNFBB7D.mjs';export{a as NumberInput}from'./chunk-NPJX2CEI.mjs';import'./chunk-KY3JKXSX.mjs';import'./chunk-WAFYFWH4.mjs';import'./chunk-5YYWD7PK.mjs';export{a as PopoverContent}from'./chunk-ECPG4S5O.mjs';import'./chunk-MFH2E2GU.mjs';import'./chunk-6XARU7F2.mjs';import'./chunk-KCHAWPUN.mjs';import'./chunk-BJVFZYUV.mjs';import'./chunk-5KD2MNNX.mjs';import'./chunk-UQJGSVXP.mjs';import'./chunk-RFTDIXEG.mjs';export{a as Dialog,b as DialogTitle}from'./chunk-5PIO6M4F.mjs';export{a as Drawer}from'./chunk-DRIHXAP3.mjs';import'./chunk-J7EAQSKX.mjs';import'./chunk-IW4GXU75.mjs';export{b as Modal,e as ModalContent}from'./chunk-DF3BVX5Z.mjs';import'./chunk-4BYKAG4W.mjs';import'./chunk-JQ4ZGZPV.mjs';export{c as calculateFontSizeToFitWidth,e as findFocusableElements,h as getAbsoluteBounds,i as getAbsolutePosition,f as getActiveElement,a as getHTMLElement,b as getTextDimensions,d as isFocusableElement,g as isInputThatOpensKeyboard}from'./chunk-AKES5B6C.mjs';import'./chunk-OAY74XPB.mjs';export{a as Text}from'./chunk-2WAKHFPS.mjs';import'./chunk-F2X474RV.mjs';import'./chunk-5ANNWMLJ.mjs';export{a as Separator}from'./chunk-NSC53QWT.mjs';import'./chunk-CPSUI4IW.mjs';import'./chunk-AC7OXVHA.mjs';import'./chunk-EX2LI2CV.mjs';import'./chunk-SAZLJ66W.mjs';import'./chunk-ZANUFNOL.mjs';import'./chunk-CGFLGZL4.mjs';export{a as createMessageFormatter,c as defineMessages,b as useI18n}from'./chunk-GX2IOGYR.mjs';export{a as cleanKeyFromGlobImport}from'./chunk-XXANV3FM.mjs';export{b as legacyMessageIdMap,a as messageIds}from'./chunk-F7PGMOQF.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-M5M3EPG5.mjs';import'./chunk-W6QO7FPZ.mjs';export{b as ActionButton}from'./chunk-J3MJZQUJ.mjs';import'./chunk-EZXMEGV7.mjs';export{a as Box}from'./chunk-O7XK2WIX.mjs';export{a as ActionIconButton}from'./chunk-JB3O4ABN.mjs';export{a as Tooltip}from'./chunk-F6JQN7YM.mjs';export{a as useIntersectionObserver}from'./chunk-TIHKHXTS.mjs';import'./chunk-FP5EWPOF.mjs';export{a as useResizeObserver}from'./chunk-TK4QXU3W.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-THRAJMLX.mjs';export{a as Portal}from'./chunk-FOEGHU3P.mjs';export{a as usePortalContainer}from'./chunk-F3HQNHR5.mjs';import'./chunk-V3L4SVVF.mjs';export{f as MotionGlobalConfig,c as ThemeProvider,d as disableAnimations,e as enableAnimations,a as useUserPreferences}from'./chunk-JUXBZ2ZN.mjs';import'./chunk-JJPCZOOI.mjs';export{a as directionVar}from'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';export{d as I18nProvider}from'./chunk-HZHAKW6I.mjs';export{a as useNumberFormatter}from'./chunk-AV4ZP5SY.mjs';import'./chunk-KPEONVLU.mjs';export{c as FrameProvider,a as useFrameDimensions}from'./chunk-QR2AF3KT.mjs';export{a as useDevice}from'./chunk-ZGRRD3TU.mjs';import'./chunk-6Z6HOW6T.mjs';import'./chunk-TDXALNX3.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-7PRJIPFA.mjs';export{b as PortalContainerProvider}from'./chunk-OO7BXL2N.mjs';export{a as Pressable}from'./chunk-WWSGOGLA.mjs';import'./chunk-34TYNTXM.mjs';import'./chunk-I3YGB2BE.mjs';export{a as FocusScope}from'./chunk-KUEDQO7P.mjs';export{a as useCollator}from'./chunk-USMC34OO.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-WL27JGVG.mjs';import'./chunk-2RCST7ET.mjs';import'./chunk-BU5H25MV.mjs';import'./chunk-QAUEG3EX.mjs';export{a as useDateFormatter}from'./chunk-CV6JQGJ3.mjs';export{b as useLocale}from'./chunk-N2XGJKZG.mjs';export{b as DeviceProvider,a as DeviceProviderContext}from'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';export{b as VisuallyHidden}from'./chunk-4ZJMZB5B.mjs';import'./chunk-4N6CLPAY.mjs';import'./chunk-FKYHERP4.mjs';import'./chunk-PBFIKNYZ.mjs';import'./chunk-RCBUNCHV.mjs';import'./chunk-5YHNHEDK.mjs';export{b as Popover,j as PopoverTrigger}from'./chunk-4NYPVKDO.mjs';export{a as isRect}from'./chunk-ZLDT2KDZ.mjs';import'./chunk-UUBOEBYZ.mjs';import'./chunk-C342HL26.mjs';import'./chunk-C6OMLVIQ.mjs';import'./chunk-B7PSE5KC.mjs';import'./chunk-VDUFLHKK.mjs';import'./chunk-4PYEGHW5.mjs';import'./chunk-HONWMHMX.mjs';export{a as announce,b as clearAnnouncer,c as destroyAnnouncer}from'./chunk-JJG67M2S.mjs';export{a as invariant}from'./chunk-66CUIXA6.mjs';import'./chunk-6ZFBX7C7.mjs';import'./chunk-PF3OQKXP.mjs';import'./chunk-6IRWW75G.mjs';import'./chunk-MVK5CB64.mjs';import'./chunk-XWLESSHN.mjs';import'./chunk-XTH6B5FE.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-D3IZ4HBL.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-RXSYDMT6.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-X3AXUU3H.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-545KDVGI.mjs';import'./chunk-YS3Y5KGV.mjs';export{b as booleanOrObjectToConfig,a as filterTruthyValues}from'./chunk-RSKKEGJZ.mjs';export{a as useFocusRing}from'./chunk-K6X2BHPP.mjs';export{e as Focusable,a as useKeyboard}from'./chunk-BGMVPFYK.mjs';import'./chunk-YB3KW7JC.mjs';export{g as useFocusVisible,f as useInteractionModality}from'./chunk-Y4DRSGEJ.mjs';import'./chunk-3FYY26ED.mjs';import'./chunk-AQYBKDT2.mjs';import'./chunk-66NJ7EYY.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-54IAJ3RI.mjs';export{a as useObjectRef}from'./chunk-RT4LMB6X.mjs';import'./chunk-3W6RWDIE.mjs';import'./chunk-MRJFGHFW.mjs';export{c as mergeProps,b as mergeRefs}from'./chunk-TZ4MVY4E.mjs';export{a as filterDOMProps}from'./chunk-KEVERVHK.mjs';export{c as useId}from'./chunk-JDLUGVXG.mjs';import'./chunk-6ZQE5SHE.mjs';export{a as getOwnerDocument}from'./chunk-AUOQSTS5.mjs';import'./chunk-RMUV6NJJ.mjs';export{a as Avatar}from'./chunk-HXTAOYOD.mjs';import'./chunk-FXCHST4Z.mjs';export{a as classNames}from'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
1
+ export{a as isInsideOverlayContent}from'./chunk-A6ZQQSAX.mjs';export{a as isInIframe}from'./chunk-IB23KCIW.mjs';export{a as useMutationObserver}from'./chunk-ZLAY7NNY.mjs';export{a as TreeView}from'./chunk-C7AUJO36.mjs';export{a as UNSAFE_aria}from'./chunk-AGYQLGBZ.mjs';export{c as UNSAFE_stately,a as useListData}from'./chunk-INDVRI57.mjs';export{a as TimeField}from'./chunk-PA3THES4.mjs';export{b as GlobalToastRegion,a as ToastQueue}from'./chunk-KHOXLBPR.mjs';export{a as Stepper}from'./chunk-QXOG2ISL.mjs';export{a as Switch}from'./chunk-GI2O6H4I.mjs';export{f as Cell,c as Column,e as Row,a as Table,d as TableBody,b as TableHeader,g as useTableDragAndDrop}from'./chunk-2EMOQIU7.mjs';export{b as TabItem,a as Tabs}from'./chunk-HK3CZVHY.mjs';import'./chunk-TJEK54BW.mjs';export{a as TaggedPagination}from'./chunk-YWQXHVMW.mjs';export{a as RadioGroup}from'./chunk-2BXXD6SW.mjs';export{a as Reaction}from'./chunk-R2OV7FJO.mjs';import'./chunk-CHTLOFCT.mjs';export{a as ScrollControlButton}from'./chunk-6PXOVWVM.mjs';export{a as Skeleton}from'./chunk-F2HESRBD.mjs';export{a as Panel,b as PanelGroup,c as PanelResizeHandle}from'./chunk-LQMEFFFM.mjs';export{a as PointPicker,b as PointPickerContent,c as PointPickerDisplay,d as usePointProximity}from'./chunk-P5LSMA24.mjs';export{a as clamp}from'./chunk-JBXZ6ZHP.mjs';export{a as usePreventFocus}from'./chunk-63KRQW56.mjs';export{a as useLiveInteractionModality}from'./chunk-UCNHDT36.mjs';export{a as Preview}from'./chunk-ZLZAFTSD.mjs';export{a as ProgressBar}from'./chunk-6VXBFM6Q.mjs';export{a as Markdown}from'./chunk-MAJ74VNE.mjs';export{a as MessageFormat}from'./chunk-FWAK2OZM.mjs';export{a as Pagination}from'./chunk-CYTHB4M4.mjs';export{a as NumberFormat}from'./chunk-DRYSJSKA.mjs';export{a as Icon}from'./chunk-CAWUDHAE.mjs';export{a as ImageDropZone}from'./chunk-B237CJT4.mjs';export{a as ImageGallery}from'./chunk-DMJHCNBU.mjs';import'./chunk-CWPFUB7B.mjs';export{a as useImage}from'./chunk-NV7KQVPE.mjs';export{a as InlineAlert}from'./chunk-RSTHM3ZF.mjs';export{a as useTextSelection}from'./chunk-TO2TQ2LE.mjs';export{a as Kbd}from'./chunk-N6VKP3UH.mjs';export{a as Link}from'./chunk-K6HE4Z2Y.mjs';export{c as EMPTY_SELECTION_STATE,h as Editor,a as EditorCore,g as EditorProvider,e as handleEditorShortcut,f as useEditable,d as useEditor,b as useEditorContext}from'./chunk-VAFIUM63.mjs';export{a as isUrl}from'./chunk-JI4SJ53O.mjs';export{b as areColorsEqual,a as lightenColor}from'./chunk-GKODQS6E.mjs';export{a as Toolbar}from'./chunk-T4R3EXGI.mjs';export{a as capitalize,b as getPlainText}from'./chunk-HI44JQA7.mjs';export{a as Menu}from'./chunk-GVI6EBGJ.mjs';import'./chunk-A24DWFQ2.mjs';export{a as getOsSpecificKeyboardShortcutLabel}from'./chunk-3UH5CQQF.mjs';import'./chunk-TDYBXLYP.mjs';export{a as FileInput}from'./chunk-6EFNC443.mjs';export{a as FileList}from'./chunk-QYTY3KJR.mjs';export{a as ProgressSpinner}from'./chunk-YCI6BEXQ.mjs';import'./chunk-LZFTBNPW.mjs';export{a as FileUploader}from'./chunk-6V7BIFQD.mjs';import'./chunk-TKQOQVZD.mjs';export{a as onDropOrPaste}from'./chunk-TAYP2OGC.mjs';import'./chunk-IVVZSESM.mjs';import'./chunk-MZ4O6LWG.mjs';export{a as FreehandCanvas}from'./chunk-EGXILQNX.mjs';export{a as getSvgPathFromStroke}from'./chunk-5HXTXIE5.mjs';export{a as useUndoRedo}from'./chunk-TTYRHIRQ.mjs';export{a as useIsFirstRender}from'./chunk-DD5FWULD.mjs';import'./chunk-5MUEJ5WI.mjs';import'./chunk-RO5ZRU3Y.mjs';export{a as GridList}from'./chunk-5K46OAX5.mjs';import'./chunk-IXK6S6IH.mjs';import'./chunk-UCPPKNGF.mjs';export{a as Group}from'./chunk-YIGT3OP2.mjs';export{a as ComboBox}from'./chunk-ILAQFMYD.mjs';import'./chunk-Y3YZMICA.mjs';export{a as devWarnOnce}from'./chunk-5IC46G5J.mjs';import'./chunk-VCIX4HG7.mjs';export{a as DateField}from'./chunk-2YTKLY4F.mjs';import'./chunk-E3QDPL77.mjs';export{a as DateFormat}from'./chunk-HT55YHTN.mjs';import'./chunk-O57ZEY3V.mjs';export{a as Disclosure}from'./chunk-HVKYWSRF.mjs';export{b as StatusCard,a as iconMap}from'./chunk-JDIGAVFU.mjs';export{a as DomNodeRenderer}from'./chunk-D5EEZT5J.mjs';export{a as ButtonSelect}from'./chunk-Z4HTFTPM.mjs';export{b as ToggleButton}from'./chunk-NZQVKNP4.mjs';export{a as Calendar,b as RangeCalendar}from'./chunk-4C6AJ3TZ.mjs';export{e as GridLayout,b as ListLayout,g as LocaleAwareGridLayout,a as Size,f as TableLayout,h as VIRTUALIZER_LAYOUT_DEFAULT_OPTIONS,d as Virtualizer,c as WaterfallLayout}from'./chunk-YKMSINHH.mjs';import'./chunk-CUOTJ7AP.mjs';import'./chunk-GXOXYPQQ.mjs';import'./chunk-NQO6OQT6.mjs';import'./chunk-UTQ7AIPM.mjs';export{a as Checkbox}from'./chunk-6NQPENP4.mjs';import'./chunk-ZNN43VZV.mjs';import'./chunk-EA6GA4WC.mjs';import'./chunk-WAOWR7MR.mjs';export{a as Code}from'./chunk-RILRXWGE.mjs';export{b as ColorInput,c as IconColorInput,a as IconColorInputButton}from'./chunk-5IXSPQRW.mjs';export{a as useLocalStorage}from'./chunk-SBR5UAUY.mjs';export{b as ModalClose,a as ModalTrigger}from'./chunk-PNBYTIUO.mjs';export{d as IconSelect,c as Select}from'./chunk-K73R5G6G.mjs';export{a as TagGroup}from'./chunk-TBCZKWGQ.mjs';export{d as Tag}from'./chunk-BBZ2I3RF.mjs';import'./chunk-X5Z54UUE.mjs';export{a as SearchInput}from'./chunk-E3DMXJIC.mjs';import'./chunk-6F66XVOA.mjs';import'./chunk-UEDBY5JI.mjs';import'./chunk-QSSCSN5S.mjs';import'./chunk-VZFS4QRW.mjs';import'./chunk-NO55UIGK.mjs';export{a as useFilter}from'./chunk-5BAHJXOI.mjs';export{a as useDragAndDrop}from'./chunk-XEGXSFIP.mjs';import'./chunk-AW5WDI2U.mjs';export{q as UNSAFE_ListBox}from'./chunk-EYKIXVM3.mjs';import'./chunk-AMYRLAIC.mjs';import'./chunk-E3PFPOHX.mjs';import'./chunk-WSQGB4ZE.mjs';import'./chunk-SMAYNDQQ.mjs';import'./chunk-AMW7LGCF.mjs';export{d as Autocomplete}from'./chunk-VIVNQZYK.mjs';import'./chunk-BLHN7I5Z.mjs';import'./chunk-BROSGYL3.mjs';export{a as ColorSwatchPicker}from'./chunk-P37WUXAI.mjs';export{a as DefaultListOption,c as ListBox}from'./chunk-YWCU4PP7.mjs';import'./chunk-RJZZIVSY.mjs';export{a as isInShadowDOM}from'./chunk-GEZGEZAP.mjs';import'./chunk-NMSOOQB2.mjs';import'./chunk-7P322KP4.mjs';import'./chunk-DDLZ6CKC.mjs';import'./chunk-KEAM6GSA.mjs';import'./chunk-3HKG74G4.mjs';import'./chunk-V37GPPZD.mjs';import'./chunk-NUYBQ7KP.mjs';import'./chunk-UBFMOTBM.mjs';import'./chunk-OMT6ZWSV.mjs';import'./chunk-ILBAZFBL.mjs';export{I as ColorSwatch}from'./chunk-QDQPVCXN.mjs';export{a as parseColor}from'./chunk-EU75HMPG.mjs';export{a as Accordion,b as AccordionItem}from'./chunk-BGHBSM3K.mjs';export{a as REACT_ARIA_INCOMPATIBLE_KEYS,b as safeSpreadProps}from'./chunk-Q5UMLFN3.mjs';export{a as ActionGroup,b as ActionGroupItem}from'./chunk-KWHTLY23.mjs';import'./chunk-L3SNGDBH.mjs';import'./chunk-NGZRN4SF.mjs';import'./chunk-J4NO4WYU.mjs';import'./chunk-PAQQ7MQG.mjs';import'./chunk-DECHIERQ.mjs';export{a as Actionable}from'./chunk-XZSDCUID.mjs';export{a as AlertDialog}from'./chunk-2TH2QRSV.mjs';import'./chunk-4SW77SGW.mjs';export{a as TextInput}from'./chunk-X6IJEPSH.mjs';import'./chunk-2PH5GN2S.mjs';import'./chunk-VOSSQAHC.mjs';import'./chunk-2MS356Q7.mjs';export{a as AudioPlayer}from'./chunk-BCENUHNO.mjs';import'./chunk-MHUFXHRU.mjs';export{b as IconSlider,a as Slider}from'./chunk-MONDDKB4.mjs';export{a as ToggleIconButton}from'./chunk-NADBGP35.mjs';import'./chunk-CFLEBB5T.mjs';import'./chunk-MUNFBB7D.mjs';export{a as NumberInput}from'./chunk-5HK56IXH.mjs';import'./chunk-KY3JKXSX.mjs';import'./chunk-WAFYFWH4.mjs';import'./chunk-XJ2DFV56.mjs';export{a as PopoverContent}from'./chunk-UN7XC7QV.mjs';import'./chunk-IVC2BJRU.mjs';import'./chunk-6XARU7F2.mjs';import'./chunk-KCHAWPUN.mjs';import'./chunk-BJVFZYUV.mjs';import'./chunk-5KD2MNNX.mjs';import'./chunk-UQJGSVXP.mjs';import'./chunk-RFTDIXEG.mjs';export{a as Dialog,b as DialogTitle}from'./chunk-M7OLZJYB.mjs';export{a as Drawer}from'./chunk-SYFSGF73.mjs';import'./chunk-SZTFMBPY.mjs';import'./chunk-PG3WDHSK.mjs';export{b as Modal,e as ModalContent}from'./chunk-7MQBBSZ2.mjs';import'./chunk-7L5UOGZA.mjs';import'./chunk-XF5UMU6D.mjs';export{c as calculateFontSizeToFitWidth,e as findFocusableElements,h as getAbsoluteBounds,i as getAbsolutePosition,f as getActiveElement,a as getHTMLElement,b as getTextDimensions,d as isFocusableElement,g as isInputThatOpensKeyboard}from'./chunk-AKES5B6C.mjs';import'./chunk-OAY74XPB.mjs';export{a as Text}from'./chunk-E5GYCA3P.mjs';import'./chunk-F2X474RV.mjs';import'./chunk-5ANNWMLJ.mjs';export{a as Separator}from'./chunk-XUJJMAKM.mjs';import'./chunk-CPSUI4IW.mjs';import'./chunk-AC7OXVHA.mjs';import'./chunk-EX2LI2CV.mjs';import'./chunk-SAZLJ66W.mjs';import'./chunk-ZANUFNOL.mjs';import'./chunk-CGFLGZL4.mjs';export{a as createMessageFormatter,c as defineMessages,b as useI18n}from'./chunk-GX2IOGYR.mjs';export{a as cleanKeyFromGlobImport}from'./chunk-XXANV3FM.mjs';export{b as legacyMessageIdMap,a as messageIds}from'./chunk-F7PGMOQF.mjs';import'./chunk-K6IQ4ALU.mjs';import'./chunk-M5M3EPG5.mjs';import'./chunk-W6QO7FPZ.mjs';export{b as ActionButton}from'./chunk-AYBACQ6U.mjs';import'./chunk-G6VX4SU6.mjs';export{a as Box}from'./chunk-O7XK2WIX.mjs';export{a as ActionIconButton}from'./chunk-2V323KAD.mjs';export{a as Tooltip}from'./chunk-6JWACCHG.mjs';export{a as useIntersectionObserver}from'./chunk-N26C7NYZ.mjs';import'./chunk-FP5EWPOF.mjs';export{a as useResizeObserver}from'./chunk-TK4QXU3W.mjs';import'./chunk-6YQHZ5RZ.mjs';import'./chunk-DY6WY36N.mjs';import'./chunk-QBJDGBTU.mjs';import'./chunk-CCA2ABXO.mjs';export{a as Portal}from'./chunk-YX2ASVM3.mjs';export{a as usePortalContainer}from'./chunk-F3HQNHR5.mjs';import'./chunk-V3L4SVVF.mjs';export{f as MotionGlobalConfig,c as ThemeProvider,d as disableAnimations,e as enableAnimations,a as useUserPreferences}from'./chunk-UT2I4K7L.mjs';import'./chunk-TCCQDGMI.mjs';export{a as directionVar}from'./chunk-2UUKKXBD.mjs';import'./chunk-PZTVDABF.mjs';import'./chunk-NRKHWSOP.mjs';export{d as I18nProvider}from'./chunk-HZHAKW6I.mjs';export{a as useNumberFormatter}from'./chunk-AV4ZP5SY.mjs';import'./chunk-KPEONVLU.mjs';export{c as FrameProvider,a as useFrameDimensions}from'./chunk-QR2AF3KT.mjs';export{a as useDevice}from'./chunk-ZGRRD3TU.mjs';import'./chunk-6Z6HOW6T.mjs';import'./chunk-TDXALNX3.mjs';import'./chunk-XBBPWSJI.mjs';import'./chunk-7PRJIPFA.mjs';export{b as PortalContainerProvider}from'./chunk-OO7BXL2N.mjs';export{a as Pressable}from'./chunk-WWSGOGLA.mjs';import'./chunk-34TYNTXM.mjs';import'./chunk-I3YGB2BE.mjs';export{a as FocusScope}from'./chunk-KUEDQO7P.mjs';export{a as useCollator}from'./chunk-USMC34OO.mjs';import'./chunk-NHM3H5JU.mjs';import'./chunk-WL27JGVG.mjs';import'./chunk-2RCST7ET.mjs';import'./chunk-BU5H25MV.mjs';import'./chunk-QAUEG3EX.mjs';export{a as useDateFormatter}from'./chunk-CV6JQGJ3.mjs';export{b as useLocale}from'./chunk-N2XGJKZG.mjs';export{b as DeviceProvider,a as DeviceProviderContext}from'./chunk-22BJMDCA.mjs';import'./chunk-6IX6BM7C.mjs';export{b as VisuallyHidden}from'./chunk-4ZJMZB5B.mjs';import'./chunk-BIDNNBRG.mjs';import'./chunk-FKYHERP4.mjs';import'./chunk-B6U6JHD4.mjs';import'./chunk-RCBUNCHV.mjs';import'./chunk-5YHNHEDK.mjs';export{b as Popover,j as PopoverTrigger}from'./chunk-L6S5GBKS.mjs';export{a as isRect}from'./chunk-ZLDT2KDZ.mjs';import'./chunk-UUBOEBYZ.mjs';import'./chunk-C342HL26.mjs';import'./chunk-C6OMLVIQ.mjs';import'./chunk-B7PSE5KC.mjs';import'./chunk-VDUFLHKK.mjs';import'./chunk-4PYEGHW5.mjs';import'./chunk-HONWMHMX.mjs';export{a as announce,b as clearAnnouncer,c as destroyAnnouncer}from'./chunk-JJG67M2S.mjs';export{a as invariant}from'./chunk-66CUIXA6.mjs';import'./chunk-ITWJSFYK.mjs';import'./chunk-SHJ2TJYG.mjs';import'./chunk-MVK5CB64.mjs';import'./chunk-XWLESSHN.mjs';import'./chunk-XTH6B5FE.mjs';import'./chunk-GOSLHCDP.mjs';import'./chunk-CFRTAJP2.mjs';import'./chunk-2VY4FAOY.mjs';import'./chunk-D3IZ4HBL.mjs';import'./chunk-I3RGYL4B.mjs';import'./chunk-RXSYDMT6.mjs';import'./chunk-YV5CNDCW.mjs';import'./chunk-X3AXUU3H.mjs';import'./chunk-5PQHOVGX.mjs';import'./chunk-AGUSZG6K.mjs';import'./chunk-545KDVGI.mjs';import'./chunk-YS3Y5KGV.mjs';export{b as booleanOrObjectToConfig,a as filterTruthyValues}from'./chunk-RSKKEGJZ.mjs';export{a as useFocusRing}from'./chunk-K6X2BHPP.mjs';export{e as Focusable,a as useKeyboard}from'./chunk-BGMVPFYK.mjs';import'./chunk-YB3KW7JC.mjs';export{g as useFocusVisible,f as useInteractionModality}from'./chunk-Y4DRSGEJ.mjs';import'./chunk-3FYY26ED.mjs';import'./chunk-AQYBKDT2.mjs';import'./chunk-66NJ7EYY.mjs';import'./chunk-4WW2MVQN.mjs';import'./chunk-54IAJ3RI.mjs';export{a as useObjectRef}from'./chunk-RT4LMB6X.mjs';import'./chunk-3W6RWDIE.mjs';import'./chunk-MRJFGHFW.mjs';export{c as mergeProps,b as mergeRefs}from'./chunk-TZ4MVY4E.mjs';export{a as filterDOMProps}from'./chunk-KEVERVHK.mjs';export{c as useId}from'./chunk-JDLUGVXG.mjs';import'./chunk-6ZQE5SHE.mjs';export{a as getOwnerDocument}from'./chunk-AUOQSTS5.mjs';import'./chunk-RMUV6NJJ.mjs';export{a as Avatar}from'./chunk-IXRSSEHQ.mjs';import'./chunk-JQQGRJ5J.mjs';export{a as classNames}from'./chunk-4QEH5CGK.mjs';import'./chunk-XPISSX5R.mjs';
@@ -1 +1 @@
1
- export{c as calculateFontSizeToFitWidth,e as findFocusableElements,h as getAbsoluteBounds,i as getAbsolutePosition,f as getActiveElement,a as getHTMLElement,b as getTextDimensions,d as isFocusableElement,g as isInputThatOpensKeyboard}from'../chunk-AKES5B6C.mjs';import'../chunk-6ZFBX7C7.mjs';import'../chunk-PF3OQKXP.mjs';import'../chunk-6IRWW75G.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
1
+ export{c as calculateFontSizeToFitWidth,e as findFocusableElements,h as getAbsoluteBounds,i as getAbsolutePosition,f as getActiveElement,a as getHTMLElement,b as getTextDimensions,d as isFocusableElement,g as isInputThatOpensKeyboard}from'../chunk-AKES5B6C.mjs';import'../chunk-ITWJSFYK.mjs';import'../chunk-SHJ2TJYG.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
@@ -1 +1 @@
1
- export{a as isInShadowDOM}from'../chunk-GEZGEZAP.mjs';import'../chunk-6ZFBX7C7.mjs';import'../chunk-PF3OQKXP.mjs';import'../chunk-6IRWW75G.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
1
+ export{a as isInShadowDOM}from'../chunk-GEZGEZAP.mjs';import'../chunk-ITWJSFYK.mjs';import'../chunk-SHJ2TJYG.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
@@ -1 +1 @@
1
- export{a as getOsSpecificKeyboardShortcutLabel}from'../chunk-3UH5CQQF.mjs';import'../chunk-6ZFBX7C7.mjs';import'../chunk-PF3OQKXP.mjs';import'../chunk-6IRWW75G.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
1
+ export{a as getOsSpecificKeyboardShortcutLabel}from'../chunk-3UH5CQQF.mjs';import'../chunk-ITWJSFYK.mjs';import'../chunk-SHJ2TJYG.mjs';import'../chunk-MVK5CB64.mjs';import'../chunk-XWLESSHN.mjs';import'../chunk-XTH6B5FE.mjs';import'../chunk-GOSLHCDP.mjs';import'../chunk-CFRTAJP2.mjs';import'../chunk-2VY4FAOY.mjs';import'../chunk-D3IZ4HBL.mjs';import'../chunk-I3RGYL4B.mjs';import'../chunk-RXSYDMT6.mjs';import'../chunk-5PQHOVGX.mjs';import'../chunk-AGUSZG6K.mjs';import'../chunk-545KDVGI.mjs';import'../chunk-4WW2MVQN.mjs';import'../chunk-54IAJ3RI.mjs';import'../chunk-RT4LMB6X.mjs';import'../chunk-3W6RWDIE.mjs';import'../chunk-MRJFGHFW.mjs';import'../chunk-TZ4MVY4E.mjs';import'../chunk-KEVERVHK.mjs';import'../chunk-JDLUGVXG.mjs';import'../chunk-6ZQE5SHE.mjs';import'../chunk-AUOQSTS5.mjs';import'../chunk-RMUV6NJJ.mjs';import'../chunk-XPISSX5R.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseline-ui/core",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Baseline UI is a set of accessible components and tools for building accessible, customizable, production-ready user interfaces",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,13 +31,13 @@
31
31
  "perfect-freehand": "^1.2.3",
32
32
  "react-resizable-panels": "4.11.2",
33
33
  "use-sync-external-store": "1.6.0",
34
- "@baseline-ui/css": "3.2.0",
35
- "@baseline-ui/icons": "3.2.0",
36
- "@baseline-ui/tokens": "3.2.0"
34
+ "@baseline-ui/css": "3.3.0",
35
+ "@baseline-ui/icons": "3.3.0",
36
+ "@baseline-ui/tokens": "3.3.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "react": "^18.0.0",
40
- "react-dom": "^18.0.0"
39
+ "react": "^18.0.0 || ^19.0.0",
40
+ "react-dom": "^18.0.0 || ^19.0.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/dompurify": "3.2.0",
package/sbom.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.6",
5
- "serialNumber": "urn:uuid:f88f1fa6-1a20-4c54-b316-220bc7391ed0",
5
+ "serialNumber": "urn:uuid:6daa7f42-8a72-46f6-a2f3-21ea8ba0be62",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2026-09-24T06:10:23.404Z",
8
+ "timestamp": "2026-10-12T15:05:59.859Z",
9
9
  "lifecycles": [
10
10
  {
11
11
  "phase": "pre-build"
@@ -23,9 +23,9 @@
23
23
  "component": {
24
24
  "type": "library",
25
25
  "name": "@baseline-ui/core",
26
- "version": "3.2.0",
27
- "purl": "pkg:npm/@baseline-ui/core@3.2.0",
28
- "bom-ref": "pkg:npm/@baseline-ui/core@3.2.0",
26
+ "version": "3.3.0",
27
+ "purl": "pkg:npm/@baseline-ui/core@3.3.0",
28
+ "bom-ref": "pkg:npm/@baseline-ui/core@3.3.0",
29
29
  "licenses": [
30
30
  {
31
31
  "license": {
@@ -500,55 +500,17 @@
500
500
  {
501
501
  "type": "library",
502
502
  "name": "react",
503
- "version": "18.3.1",
504
- "purl": "pkg:npm/react@18.3.1",
505
- "bom-ref": "pkg:npm/react@18.3.1",
503
+ "version": "19.2.8",
504
+ "purl": "pkg:npm/react@19.2.8",
505
+ "bom-ref": "pkg:npm/react@19.2.8",
506
506
  "externalReferences": [
507
507
  {
508
508
  "type": "distribution",
509
- "url": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
509
+ "url": "https://registry.npmjs.org/react/-/react-19.2.8.tgz",
510
510
  "hashes": [
511
511
  {
512
512
  "alg": "SHA-512",
513
- "content": "c12fa1020252851d0a844bcf240adfb8f54dd7e1f3d6dd18ea7e632eb1906e46f8bab80f13fd11bdefb590c075bffa16807826e1621c57e8bb176a53563fb689"
514
- }
515
- ]
516
- }
517
- ]
518
- },
519
- {
520
- "type": "library",
521
- "name": "loose-envify",
522
- "version": "1.4.0",
523
- "purl": "pkg:npm/loose-envify@1.4.0",
524
- "bom-ref": "pkg:npm/loose-envify@1.4.0",
525
- "externalReferences": [
526
- {
527
- "type": "distribution",
528
- "url": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
529
- "hashes": [
530
- {
531
- "alg": "SHA-512",
532
- "content": "972bb13c6aff59f86b95e9b608bfd472751cd7372a280226043cee918ed8e45ff242235d928ebe7d12debe5c351e03324b0edfeb5d54218e34f04b71452a0add"
533
- }
534
- ]
535
- }
536
- ]
537
- },
538
- {
539
- "type": "library",
540
- "name": "js-tokens",
541
- "version": "4.0.0",
542
- "purl": "pkg:npm/js-tokens@4.0.0",
543
- "bom-ref": "pkg:npm/js-tokens@4.0.0",
544
- "externalReferences": [
545
- {
546
- "type": "distribution",
547
- "url": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
548
- "hashes": [
549
- {
550
- "alg": "SHA-512",
551
- "content": "45d2547e5704ddc5332a232a420b02bb4e853eef5474824ed1b7986cf84737893a6a9809b627dca02b53f5b7313a9601b690f690233a49bce0e026aeb16fcf29"
513
+ "content": "3d66980352ffabdbb6bbbc58422f98dcbdd87e789eed7c8b79a248095d4c183e8ba6bb01c5c02a1a3632af4798de9f9076c03ec7f22b92de1089ff03eb7f926f"
552
514
  }
553
515
  ]
554
516
  }
@@ -557,17 +519,17 @@
557
519
  {
558
520
  "type": "library",
559
521
  "name": "react-dom",
560
- "version": "18.3.1",
561
- "purl": "pkg:npm/react-dom@18.3.1",
562
- "bom-ref": "pkg:npm/react-dom@18.3.1",
522
+ "version": "19.2.8",
523
+ "purl": "pkg:npm/react-dom@19.2.8",
524
+ "bom-ref": "pkg:npm/react-dom@19.2.8",
563
525
  "externalReferences": [
564
526
  {
565
527
  "type": "distribution",
566
- "url": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
528
+ "url": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.8.tgz",
567
529
  "hashes": [
568
530
  {
569
531
  "alg": "SHA-512",
570
- "content": "e66e2740aa7ead945bd3d2cd1f9f463380714e1f76e75ff295b2886e97bb4e91b17c9fbd92fe812e42c15c88e3b296e06e720136a948db7b519d3593d2c9d423"
532
+ "content": "ad5a6b8a67c6046dc347e4ead08406d834f93f12ad8755881839a3e723e6973af86017bbbb213e0eee2856a4c35d948718619746d4c910649278fc9008c06095"
571
533
  }
572
534
  ]
573
535
  }
@@ -576,17 +538,17 @@
576
538
  {
577
539
  "type": "library",
578
540
  "name": "scheduler",
579
- "version": "0.23.2",
580
- "purl": "pkg:npm/scheduler@0.23.2",
581
- "bom-ref": "pkg:npm/scheduler@0.23.2",
541
+ "version": "0.27.0",
542
+ "purl": "pkg:npm/scheduler@0.27.0",
543
+ "bom-ref": "pkg:npm/scheduler@0.27.0",
582
544
  "externalReferences": [
583
545
  {
584
546
  "type": "distribution",
585
- "url": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
547
+ "url": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
586
548
  "hashes": [
587
549
  {
588
550
  "alg": "SHA-512",
589
- "content": "50e4a1b0fc33ecdacc52a851eadd215a315dbaf3b36edbfbb680c7d7f848adf44d2030679c159dd02c094c6bd3a67815966c0609d3fdfd997fb55ac3a9cb98cd"
551
+ "content": "78dbfe5ab55b2aed5fdef6d8253ff1b62179b320391cf20cb5ff48818fe72a0d2c5aacc0504bea63fc66ece71973fa9a7cbc7f88ef4580e99e480a78bf9b62fd"
590
552
  }
591
553
  ]
592
554
  }
@@ -633,7 +595,7 @@
633
595
  ],
634
596
  "dependencies": [
635
597
  {
636
- "ref": "pkg:npm/@baseline-ui/core@3.2.0",
598
+ "ref": "pkg:npm/@baseline-ui/core@3.3.0",
637
599
  "dependsOn": [
638
600
  "pkg:npm/%40internationalized/date@3.12.2",
639
601
  "pkg:npm/%40vanilla-extract/dynamic@2.1.5",
@@ -646,8 +608,8 @@
646
608
  "pkg:npm/markdown-it@14.2.0",
647
609
  "pkg:npm/motion@12.40.0",
648
610
  "pkg:npm/perfect-freehand@1.2.3",
649
- "pkg:npm/react@18.3.1",
650
- "pkg:npm/react-dom@18.3.1",
611
+ "pkg:npm/react@19.2.8",
612
+ "pkg:npm/react-dom@19.2.8",
651
613
  "pkg:npm/react-resizable-panels@4.11.2",
652
614
  "pkg:npm/use-sync-external-store@1.6.0"
653
615
  ]
@@ -769,29 +731,17 @@
769
731
  "dependsOn": []
770
732
  },
771
733
  {
772
- "ref": "pkg:npm/react@18.3.1",
773
- "dependsOn": [
774
- "pkg:npm/loose-envify@1.4.0"
775
- ]
776
- },
777
- {
778
- "ref": "pkg:npm/loose-envify@1.4.0",
779
- "dependsOn": [
780
- "pkg:npm/js-tokens@4.0.0"
781
- ]
782
- },
783
- {
784
- "ref": "pkg:npm/js-tokens@4.0.0",
734
+ "ref": "pkg:npm/react@19.2.8",
785
735
  "dependsOn": []
786
736
  },
787
737
  {
788
- "ref": "pkg:npm/react-dom@18.3.1",
738
+ "ref": "pkg:npm/react-dom@19.2.8",
789
739
  "dependsOn": [
790
- "pkg:npm/scheduler@0.23.2"
740
+ "pkg:npm/scheduler@0.27.0"
791
741
  ]
792
742
  },
793
743
  {
794
- "ref": "pkg:npm/scheduler@0.23.2",
744
+ "ref": "pkg:npm/scheduler@0.27.0",
795
745
  "dependsOn": []
796
746
  },
797
747
  {
@@ -1,29 +0,0 @@
1
- import {a as a$q}from'./chunk-JI4SJ53O.mjs';import {b as b$a}from'./chunk-GKODQS6E.mjs';import {a as a$8}from'./chunk-LLAMYDGW.mjs';import {b as b$3}from'./chunk-HI44JQA7.mjs';import {a as a$o}from'./chunk-3UH5CQQF.mjs';import {a as a$r}from'./chunk-IHLJTHGQ.mjs';import {b as b$6,a as a$m}from'./chunk-RF4E6MLM.mjs';import {a as a$c}from'./chunk-5IC46G5J.mjs';import {b as b$4}from'./chunk-Y45SV547.mjs';import {f}from'./chunk-3NQY5GPQ.mjs';import {a as a$j}from'./chunk-5BAHJXOI.mjs';import {b as b$8,c as c$2}from'./chunk-X3NOIEDZ.mjs';import {a as a$6}from'./chunk-EU75HMPG.mjs';import {a as a$k}from'./chunk-NGZRN4SF.mjs';import {a as a$p}from'./chunk-RJWPSJX2.mjs';import {a as a$g}from'./chunk-HWUESZY2.mjs';import {a as a$h}from'./chunk-ECPG4S5O.mjs';import {a as a$i}from'./chunk-5PIO6M4F.mjs';import {b as b$9,e}from'./chunk-DF3BVX5Z.mjs';import {b as b$7,f as f$1}from'./chunk-AKES5B6C.mjs';import {a as a$n}from'./chunk-2WAKHFPS.mjs';import {a as a$a}from'./chunk-NSC53QWT.mjs';import {a as a$d}from'./chunk-CGFLGZL4.mjs';import {c as c$1,b as b$1}from'./chunk-GX2IOGYR.mjs';import {b as b$b}from'./chunk-J3MJZQUJ.mjs';import {a as a$9}from'./chunk-O7XK2WIX.mjs';import {a as a$b}from'./chunk-JB3O4ABN.mjs';import {a as a$l}from'./chunk-TDXALNX3.mjs';import {b as b$5,j as j$1}from'./chunk-4NYPVKDO.mjs';import {a as a$1}from'./chunk-X3AXUU3H.mjs';import {a as a$4}from'./chunk-RSKKEGJZ.mjs';import {a as a$2}from'./chunk-K6X2BHPP.mjs';import {a as a$e}from'./chunk-BGMVPFYK.mjs';import {a as a$3}from'./chunk-3FYY26ED.mjs';import {d}from'./chunk-MRJFGHFW.mjs';import {b,c}from'./chunk-TZ4MVY4E.mjs';import {c as c$3}from'./chunk-JDLUGVXG.mjs';import {a as a$7,b as b$2,g,e as e$1}from'./chunk-AUOQSTS5.mjs';import {a as a$f}from'./chunk-HXTAOYOD.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$5}from'./chunk-4QEH5CGK.mjs';import {BoldIcon,ItalicIcon,UnderlineIcon,ArrowUpCircleFilledIcon,AtIcon,XCircleFilledIcon,LinkIcon,XIcon}from'@baseline-ui/icons/20';import {layoutSprinkleValues,sprinkles}from'@baseline-ui/tokens';import mt,{useCallback,useImperativeHandle,useEffect,useRef,useState,useMemo,useLayoutEffect,useId,useContext,Fragment as Fragment$1}from'react';import {useGranularLayoutEffect}from'granular-hooks';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import Hr from'just-camel-case';import {QuestionmarkCircleIcon,TextIcon,HighlightTextIcon}from'@baseline-ui/icons/24';import*as jo from'dompurify';import Qr from'just-kebab-case';import {createPortal}from'react-dom';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var xo="f6jv6bm",bo="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6js _1yep5z6jt _1yep5z6ju",Be="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",yo=a({defaultClassName:"f6jv6b0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vo _1yep5z6vp _1yep5z6vq _1yep5z615m _1yep5z615n _1yep5z615o",false:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[[{isInline:true,isMinimal:false},"_1yep5z61ir _1yep5z61is _1yep5z61it _1yep5z61jf _1yep5z61jg _1yep5z61jh _1yep5z61k3 _1yep5z61k4 _1yep5z61k5 _1yep5z61kr _1yep5z61ks _1yep5z61kt _1yep5z61u7 _1yep5z61u5 _1yep5z61pa"]]}),ot=a({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lq",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Eo="f6jv6b6",vo="f6jv6bj _1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt",Ro="f6jv6bk";var To="f6jv6bn _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6ly _1yep5z6lt _1yep5z6lr _1yep5z6hx _1yep5z6eu",ko=a({defaultClassName:"f6jv6bg _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6lp",variantClassNames:{isHovered:{true:"_1yep5z6126"},isDisabled:{true:"_1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),Co="_1yep5z6jy _1yep5z6jz _1yep5z6k0",Mo="f6jv6bf f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu _1yep5z6e3 _1yep5z6ln",Lo=a({defaultClassName:"f6jv6bc _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isInline:{true:"_1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6184 _1yep5z6182 _1yep5z6137",false:"_1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"}},defaultVariants:{},compoundVariants:[]}),So="f6jv6bl",zo="f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu",_t=a({defaultClassName:"f6jv6b7",variantClassNames:{isInline:{true:"f6jv6b8",false:"f6jv6b9"}},defaultVariants:{},compoundVariants:[]}),It="f6jv6ba _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",rt="f6jv6bo";var Nt=mt.forwardRef(({value:t,defaultValue:e,onChange:n,placeholder:o,spellCheck:r,textBoxRef:i,isInline:l,isMinimal:s,isDisabled:a,editableContentAriaLabel:c$1,editorHandle:u,autoFocus:d,saveOnEnter:f,onSave:p},g)=>{let m=mt.useRef(null),[k,L]=a$1(t,e||"",n),K=useCallback(b=>{L(b.currentTarget.value||"");},[L]),C=useCallback(b=>{(f&&b.key==="Enter"&&!b.shiftKey||(b.ctrlKey||b.metaKey)&&b.key==="Enter")&&(b.preventDefault(),p());},[f,p]);useImperativeHandle(g,()=>({clear:()=>{L("");}}));let A=useCallback(b=>{b.currentTarget.style.height="16px",b.currentTarget.style.height=b.currentTarget.scrollHeight+"px";},[]);useGranularLayoutEffect(()=>{let b=m.current;b&&(b.style.height="16px",b.style.height=b.scrollHeight+"px");},[s],[k]),useImperativeHandle(u,()=>({setCaretPosition:b=>{m.current&&(m.current.focus(),m.current.setSelectionRange(b,b));},focus:()=>{m.current&&m.current.focus();}}));let S=d===true||d==="start"||d==="end",M=typeof d=="string"?d:void 0;useEffect(()=>{if(M&&m.current){let b=M==="start"?0:M==="end"?m.current.value.length:void 0;b!==void 0&&m.current.setSelectionRange(b,b);}},[M]);let{focusProps:V,isFocused:W,isFocusVisible:q}=a$2(),{hoverProps:h,isHovered:y}=a$3({}),O=a$4({"data-focus-visible":q,"data-hovered":y,"data-focused":W});return jsx("textarea",{...c(V,h,O),ref:b(m,i),className:a$5({[ot()]:!s,[_t({isInline:l})]:!s,[zo]:!s,[Mo]:s},"BaselineUI-Editor-PlainEditorEditingArea"),autoFocus:S,onChange:K,disabled:a,onInput:A,value:k,placeholder:o,spellCheck:r,"aria-label":c$1,onKeyDown:C})});Nt.displayName="PlainEditor";var Io=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:it}}=layoutSprinkleValues,No=({isOpen:t,onClose:e$1,toolbarFocusLabel:n,helpLabel:o,closeLabel:r,actionLabel:i,shortcutLabel:l,boldLabel:s,italicLabel:a,underlineLabel:c,selectAllLabel:u,cutLabel:d,copyLabel:f,pasteLabel:p,undoLabel:g,redoLabel:m,openHelpDialogLabel:k,submitLabel:L})=>{let{formatMessage:K}=b$1(),C=c$3(),A={toolbarFocus:n,help:o,close:r,action:i,shortcut:l,bold:s,italic:a,underline:c,selectAll:u,cut:d,copy:f,paste:p,undo:g,redo:m,openHelpDialog:k,submit:L},S=M=>A[M]??K(Kr[M]);return jsx(b$9,{isOpen:t,onOpenChange:M=>{M||e$1();},children:jsx(e,{enableDrawer:"auto",style:{zIndex:999999},children:jsxs(a$i,{"aria-labelledby":C,className:vo,drawerBackground:"subtle",children:[jsxs(a$9,{paddingLeft:it.padding.horizontal.lg,paddingRight:it.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:Ro,children:[jsx(a$n,{id:C,elementType:"h3",type:"title",size:"md",children:S("help")}),jsx(a$b,{icon:XIcon,size:"md",variant:"secondary","aria-label":S("close"),"data-testid":"editor-help-dialog-close-button",onPress:e$1})]}),jsx(a$a,{className:So}),jsxs(a$9,{paddingX:it.padding.horizontal.lg,role:"table","aria-labelledby":C,backgroundColor:"background.primary.subtle",children:[jsx("div",{role:"rowgroup",children:jsxs(a$9,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:it.padding.vertical.md,color:"text.primary",children:[jsx("h6",{className:sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:S("action")}),jsx("h6",{className:sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:S("shortcut")})]})}),jsx("div",{role:"rowgroup",children:Io.map(([M,V],W)=>jsxs(Fragment$1,{children:[jsxs(a$9,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:it.padding.vertical.xs,style:{minHeight:40},children:[jsx(a$n,{type:"subtitle",size:"sm",role:"cell",children:S(Hr(M))}),jsx(a$n,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:a$o(V,true)})]}),W!==Io.length-1&&jsx(a$a,{})]},M))})]})]})})})},Kr=c$1({toolbarFocus:{id:"bui.editor.toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"bui.editor.help",defaultMessage:"Help"},close:{id:"bui.editor.close",defaultMessage:"Close"},action:{id:"bui.editor.action",defaultMessage:"Action"},shortcut:{id:"bui.editor.shortcut",defaultMessage:"Shortcut"},bold:{id:"bui.editor.bold",defaultMessage:"Bold"},italic:{id:"bui.editor.italic",defaultMessage:"Italic"},underline:{id:"bui.editor.underline",defaultMessage:"Underline"},selectAll:{id:"bui.editor.selectAll",defaultMessage:"Select All"},cut:{id:"bui.editor.cut",defaultMessage:"Cut"},copy:{id:"bui.editor.copy",defaultMessage:"Copy"},paste:{id:"bui.editor.paste",defaultMessage:"Paste"},undo:{id:"bui.editor.undo",defaultMessage:"Undo"},redo:{id:"bui.editor.redo",defaultMessage:"Redo"},openHelpDialog:{id:"bui.editor.openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"bui.editor.submit",defaultMessage:"Submit"}});var Fr=a$6("#ffffff00").toString("hexa"),an=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...an,{label:"Transparent",color:Fr}];var je="p",Z="a",se="mention",ye="mention_input";function cn(t,e){return typeof t=="object"&&t!==null&&"type"in t&&t.type===e}function x(t){return typeof t=="object"&&t!==null&&"text"in t&&!("type"in t)}function T(t){return cn(t,Z)}function ue(t){return cn(t,se)}function fe(t){return cn(t,ye)}function J(t){return ue(t)||fe(t)}function Ke(){return [{type:je,children:[{text:""}]}]}function wt(t,e){return t.bold===e.bold&&t.italic===e.italic&&t.underline===e.underline&&b$a(t.color,e.color)&&b$a(t.backgroundColor,e.backgroundColor)}function At(t,e){let n=false;for(let i=0;i<t.length;i++){let l=t[i];if(l.text===""&&!(e&&t.length===1)){n=true;break}if(i>0&&wt(t[i-1],l)){n=true;break}}if(!n)return t;let o=t.filter(i=>i.text!==""),r=[];for(let i of o){let l=r.at(-1);l!==void 0&&wt(l,i)?r[r.length-1]={...l,text:l.text+i.text}:r.push(i);}return r}function Ur(t){let e=(i,l)=>i===0&&l===t.length||i>0&&J(t[i-1]),n=false,o=-1;for(let i=0;i<=t.length;i++){let l=t[i],s=i<t.length&&x(l);if(s&&o===-1)o=i;else if(!s&&o!==-1){let a=t.slice(o,i);if(At(a,e(o,i))!==a){n=true;break}o=-1;}}if(!n)return t;let r=[];o=-1;for(let i=0;i<=t.length;i++){let l=t[i],s=i<t.length&&x(l);if(s&&o===-1)o=i;else if(!s&&o!==-1){let a=t.slice(o,i),c=At(a,e(o,i));for(let u of c)r.push(u);o=-1;}!s&&i<t.length&&r.push(l);}return r}function Vr(t){let e=false;for(let o=1;o<t.length;o++){let r=t[o-1],i=t[o];if(T(r)&&T(i)&&r.url===i.url){e=true;break}}if(!e)return t;let n=[];for(let o of t){let r=n.at(-1);if(T(o)&&r!==void 0&&T(r)&&r.url===o.url){let i=At([...r.children,...o.children],false);n[n.length-1]={...r,children:i};}else n.push(o);}return n}function Wr(t){let e=At(t.children,t.children.length===1);return e.reduce((o,r)=>o+r.text,"")===""?null:e===t.children?t:{...t,children:e}}function qr(t){let e=false,n=[];for(let a of t)if(T(a)){let c=Wr(a);c===null?e=true:(n.push(c),c!==a&&(e=true));}else n.push(a);let o=e?n:t,r=Ur(o),i=Vr(r),l=(a,c)=>J(a[c])&&(c===a.length-1||!x(a[c+1])),s=i;if(i.some((a,c)=>l(i,c))){s=[];for(let[a,c]of i.entries())s.push(c),l(i,a)&&s.push({text:""});}return s.length===0?[{text:""}]:s===o&&!e?t:s}function D(t){if(t.length===0)return Ke();let e=false,n=t.map(o=>{let r=qr(o.children);return r===o.children?o:(e=true,{...o,children:r})});return e?n:t}function j(t){if(x(t))return t.text.length;switch(t.type){case Z:{let e=0;for(let n=0;n<t.children.length;n++)e+=t.children[n].text.length;return e}case se:return t.displayName.length;case ye:return t.children[0].text.length;default:return t}}function Fe(t){if(t.length===0)return 0;let e=t.length-1;for(let n of t)for(let o of n.children)e+=j(o);return e}var $r=1,un=3;function st(t){return t.nodeType===$r}function Ue(t,e){return t.tagName.toLowerCase()===e}function Gr(t){if(!st(t))return false;let e=t.tagName.toLowerCase();return e==="p"||e==="div"}function Xr(t){return st(t)&&t.querySelector("p, div")!==null}var Yr=new RegExp("["+String.fromCodePoint(8203)+String.fromCodePoint(65279)+"]","g"),Zr=String.fromCodePoint(160);function Me(t){return t.replaceAll(Yr,"").replaceAll(Zr," ")}function Ao(t,e){let n={...e},o=t.tagName.toLowerCase();(o==="b"||o==="strong")&&(n.bold=true),(o==="i"||o==="em")&&(n.italic=true),o==="u"&&(n.underline=true);let r=t.style;if(r){let i=r.fontWeight;(i==="bold"||Number.parseInt(i,10)>=600&&i!=="")&&(n.bold=true),r.fontStyle==="italic"&&(n.italic=true),r.textDecoration?.includes("underline")&&(n.underline=true);let l=r.color;l&&(n.color=l);let s=r.backgroundColor;s&&(n.backgroundColor=s);}return n}function Ot(t,e,n,o){for(let r=0;r<t.childNodes.length;r++){let i=t.childNodes[r];if(i.nodeType===un){let s=i.nodeValue??"",a=Me(s);a.length>0&&o.push(Bo(a,e));continue}if(!st(i))continue;if(Ue(i,"span")&&i.dataset.userId!==void 0){let s=i.dataset.userId??"",a=i.textContent??"",c=a.startsWith("@")?a.slice(1):a;o.push({type:se,value:s,displayName:c,children:[{text:""}]});continue}if(Ue(i,"span")&&i.dataset.mentionAnchor!==void 0){let s=i.textContent??"";o.push({type:ye,children:[{text:s}]});continue}if(Ue(i,"a")){{let s=i.getAttribute("href")??"",a=[];Oo(i,e,a);let c=fn(a);c.some(d=>d.text.length>0)&&o.push({type:Z,url:s,children:c});}continue}if(Ue(i,"br")){o.push({text:"\0BR\0"});continue}let l=Ao(i,e);Ot(i,l,n,o);}}function Oo(t,e,n){for(let o=0;o<t.childNodes.length;o++){let r=t.childNodes[o];if(r.nodeType===un){let l=r.nodeValue??"",s=Me(l);s.length>0&&n.push(Bo(s,e));continue}if(!st(r))continue;if(Ue(r,"br")){n.push({text:"\0BR\0"});continue}let i=Ao(r,e);Oo(r,i,n);}}function Bo(t,e){let n={text:t};return e.bold&&(n.bold=true),e.italic&&(n.italic=true),e.underline&&(n.underline=true),e.color&&(n.color=e.color),e.backgroundColor&&(n.backgroundColor=e.backgroundColor),n}var Ho="\0BR\0";function fn(t){let e=[...t];if(e.length===1&&dn(e[0]))return [{text:""}];let n=e.length,o=0;for(;o<n&&dn(e[n-1-o]);)o+=1;let r=o>=2?o-1:0;n-=o;let i=[];for(let l=0;l<n;l++){let s=e[l];dn(s)?wo(i):i.push(s);}for(let l=0;l<r;l++)wo(i);return i}function dn(t){return "text"in t&&t.text===Ho}function wo(t){let e=t.at(-1);e!==void 0&&"text"in e&&!("type"in e)?e.text+=`
11
- `:t.push({text:`
12
- `});}function Jr(t){let e=[];Ot(t,{},false,e);let n=fn(e);return {type:je,children:n.length>0?n:[{text:""}]}}function Bt(t){let e=t.childNodes;if(e.length===0)return Ke();let n=[],o=[];function r(){if(o.length===0)return;let l=fn(o);n.push({type:je,children:l.length>0?l:[{text:""}]}),o=[];}function i(l){for(let s of l)if(Gr(s))r(),n.push(Jr(s));else if(s.nodeType===un){let a=s.nodeValue??"",c=Me(a);c.trim().length>0&&o.push({text:c});}else st(s)&&(Ue(s,"br")?o.push({text:Ho}):Xr(s)?(r(),i(s.childNodes)):Ot(s,{},false,o));}return i(e),r(),n.length===0?Ke():D(n)}function ei(t){return Object.entries(t).map(([e,n])=>`${Qr(e)}:${n}`).filter(([,e])=>!!e).join(";")}function Ko(t){return "text"in t}function lt(t){return t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}function le(t){let e=t.trim(),n=e.replaceAll(/[\u0000- ]/g,""),o=/^([a-z][a-z0-9+.-]*):/i.exec(n);if(!o)return e;let r=o[1].toLowerCase();return new Set(["javascript","data","vbscript"]).has(r)?"":e}function Fo(t,e){if(!(e.mac?e.metaKey:e.ctrlKey))return {isLinkClick:false,url:null};let o=t?.closest?.("a")??null;if(!o)return {isLinkClick:false,url:null};let r=le(o.getAttribute("href")??"");return {isLinkClick:true,url:r===""?null:r}}function ti(t){return t.text.includes(`
13
- `)?t.text.split(`
14
- `).map(n=>{let o={text:n};return n.length>0&&(t.bold!==void 0&&(o.bold=t.bold),t.italic!==void 0&&(o.italic=t.italic),t.underline!==void 0&&(o.underline=t.underline),t.color!==void 0&&(o.color=t.color),t.backgroundColor!==void 0&&(o.backgroundColor=t.backgroundColor)),o}):[t]}function ni(t){let e=[[]],n=0;for(let o of t)if(Ko(o)){let r=ti(o);for(let i=0;i<r.length;i++)e[n].push(r[i]),i<r.length-1&&(n++,e[n]=[]);}else e[n].push(o);return e}function pe(t){if(!t)return "";function e(n){if(Ko(n)){if(n.text==="")return "";let r=lt(n.text);if(n.bold&&(r=`<b>${r}</b>`),n.italic&&(r=`<i>${r}</i>`),n.underline&&(r=`<u>${r}</u>`),n.color||n.backgroundColor){let i=ei(a$4({color:n.color||void 0,backgroundColor:n.backgroundColor||void 0}));r=`<span style="${lt(i)}">${r}</span>`;}return r}let o=n.children?.map(r=>pe(r)).join("");switch(n.type){case je:return ni(n.children).map(i=>`<p>${i.map(s=>pe(s)).join("")}</p>`).join("");case Z:return `<a href="${lt(le(n.url))}">${o}</a>`;case se:return `<span data-user-id="${lt(n.value)}">${lt(n.displayName)}</span>`;default:return o}}return Array.isArray(t)?t.map(n=>e(n)).join(""):e(t)}function pn(t){let e=new DOMParser().parseFromString(jo.default.sanitize(t),"text/html");if(!e.body.querySelector("p, div")){let n=e.createElement("p");n.append(...e.body.childNodes),e.body.append(n);}return Bt(e.body)}var oi=new Set(["(","[","{","<",'"',"'","`","\xAB"]),ri=new Set([".",",","!","?",":",";",'"',"'","`","\xBB"]),ii=new Map([[")","("],["]","["],["}","{"]]);function Uo(t,e){let n=0;for(let o of t)o===e&&n++;return n}function Ht(t){let e=0,n=t.length;for(;e<n&&oi.has(t[e]);)e++;for(;n>e;){let l=t[n-1];if(ri.has(l)){n--;continue}let s=ii.get(l);if(s!==void 0){let a=t.slice(e,n);if(Uo(a,l)>Uo(a,s)){n--;continue}}break}if(n<=e)return null;let o=t.slice(e,n),r;if(/^https?:\/\//i.test(o))r=o;else if(/^www\./i.test(o)){if(o.length<=4)return null;r=`https://${o}`;}else return null;let i;try{i=new URL(r);}catch{return null}return i.hostname===""?null:{start:e,end:n,url:r}}function si(t){let e=[],n=/\S+/g,o;for(;(o=n.exec(t))!==null;){let r=Ht(o[0]);if(r){let i=o.index+r.start,l=o.index+r.end;e.push({start:i,end:l,text:t.slice(i,l),url:r.url});}}return e}function Vo(t){let e=t.trim();if(e===""||/\s/.test(e))return null;let n=Ht(e);return n&&n.start===0&&n.end===e.length?n.url:null}function li(t){let e=si(t.text);if(e.length===0)return null;let n=[],o=0;for(let r of e)r.start>o&&n.push({...t,text:t.text.slice(o,r.start)}),n.push({type:Z,url:r.url,children:[{...t,text:r.text}]}),o=r.end;return o<t.text.length&&n.push({...t,text:t.text.slice(o)}),n}function hn(t){let e=false,n=t.map(o=>{let r=false,i=[];for(let l of o.children){let s=x(l)?li(l):null;s?(i.push(...s),r=true):i.push(l);}return r?(e=true,{...o,children:i}):o});return e?n:t}function Wo(t){return ue(t)?0:j(t)}function qo(t){return t.children.reduce((e,n)=>e+j(n),0)}function mn(t,e,n){return Math.min(Math.max(t,e),n)}function Ee(t,e){return t.path[0]!==e.path[0]?t.path[0]<e.path[0]?-1:1:t.path[1]!==e.path[1]?t.path[1]<e.path[1]?-1:1:t.offset!==e.offset?t.offset<e.offset?-1:1:0}function I(t){return Ee(t.anchor,t.focus)===0}function gn(t){return Ee(t.anchor,t.focus)<=0?t:{anchor:t.focus,focus:t.anchor}}function te(t,e){let n=mn(e.path[0],0,t.length-1),o=t[n].children,r=mn(e.path[1],0,o.length-1),i=mn(e.offset,0,Wo(o[r]));return {path:[n,r],offset:i}}function Ve(t){let e=t.length-1,n=t[e].children,o=n.length-1;return {path:[e,o],offset:Wo(n[o])}}function _(t,e){let n=Math.max(e,0);for(let o=0;o<t.length;o++){let r=t[o],i=qo(r);if(n>i){n-=i+1;continue}let l=r.children;for(let s=0;s<l.length;s++){let a=l[s],c=j(a);if(ue(a)){if(n===0)return {path:[o,s],offset:0};if(n<c)return {path:[o,s+1],offset:0}}else if(n<=c)return {path:[o,s],offset:n};n-=c;}}return Ve(t)}function z(t,e){let[n,o]=e.path,r=0;for(let l=0;l<n;l++)r+=qo(t[l])+1;let i=t[n].children;for(let l=0;l<o;l++)r+=j(i[l]);return r+e.offset}function ve(t,e,n,o,r){let i=n==="atomic";if(t<o.path[0]||t>r.path[0])return null;let l=0;if(t===o.path[0]){if(e<o.path[1])return null;e===o.path[1]&&(l=i?0:o.offset);}let s=i?1:n;if(t===r.path[0]){if(e>r.path[1])return null;e===r.path[1]&&(s=i?r.offset>0?1:0:r.offset);}return l>=s?null:{from:l,to:s}}function xn(t,e,n){let o=0;for(let r of t.children)n(r,Math.max(e.from-o,0),Math.min(e.to-o,r.text.length)),o+=r.text.length;}function Go(t,e,n,o){for(let r=e.path[0];r<=n.path[0]&&r<t.length;r++){let i=t[r].children;for(let[l,s]of i.entries())if(!J(s)){if(x(s)){let a=ve(r,l,s.text.length,e,n);a&&o(s,a.from,a.to);}else if(T(s)){let a=ve(r,l,j(s),e,n);a&&xn(s,a,(c,u,d)=>{u<d&&o(c,u,d);});}}}}function Xo(t){return x(t)?t:T(t)?t.children.at(-1)??null:null}function Yo(t,e){let n=te(t,e),o=t[n.path[0]].children,r=o[n.path[1]],i=n.path[1]>0?Xo(o[n.path[1]-1]):null;if(x(r))return n.offset>0?r:i??r;if(T(r)){if(n.offset===0)return i??r.children[0]??null;let l=0;for(let s of r.children)if(l+=s.text.length,n.offset<=l)return s;return r.children.at(-1)??null}return fe(r)?n.offset>0?r.children[0]:i??r.children[0]:i}function $o(t){let e={};return t.bold&&(e.bold=true),t.italic&&(e.italic=true),t.underline&&(e.underline=true),t.color!==void 0&&(e.color=t.color),t.backgroundColor!==void 0&&(e.backgroundColor=t.backgroundColor),e}function ai(t,e){let n={};return t.bold&&e.bold&&(n.bold=true),t.italic&&e.italic&&(n.italic=true),t.underline&&e.underline&&(n.underline=true),t.color!==void 0&&b$a(t.color,e.color)&&(n.color=t.color),t.backgroundColor!==void 0&&b$a(t.backgroundColor,e.backgroundColor)&&(n.backgroundColor=t.backgroundColor),n}function Se(t,e){if(I(e)){let l=Yo(t,e.focus);return l?$o(l):{}}let n=gn(e),o=te(t,n.anchor),r=te(t,n.focus),i=null;return Go(t,o,r,l=>{let s=$o(l);i=i===null?s:ai(i,s);}),i??{}}function jt(t,e,n){if(n===t)return {doc:t,range:e};let o=D(n);return {doc:o,range:{anchor:_(o,z(t,te(t,e.anchor))),focus:_(o,z(t,te(t,e.focus)))}}}function Zo(t,e,n,o){let r={...t,text:t.text.slice(e,n)},i=o(r);if(wt(i,r))return null;let l=[];return e>0&&l.push({...t,text:t.text.slice(0,e)}),l.push(i),n<t.text.length&&l.push({...t,text:t.text.slice(n)}),l}function ci(t,e,n){let o=false,r=[];return xn(t,e,(i,l,s)=>{let a=l<s?Zo(i,l,s,n):null;a?(r.push(...a),o=true):r.push(i);}),o?{...t,children:r}:null}function Jo(t,e,n,o){let r=false,i=t.map((l,s)=>{if(s<e.path[0]||s>n.path[0])return l;let a=false,c=[];for(let[u,d]of l.children.entries())if(x(d)){let f=ve(s,u,d.text.length,e,n),p=f?Zo(d,f.from,f.to,o):null;p?(c.push(...p),a=true):c.push(d);}else if(T(d)){let f=ve(s,u,j(d),e,n),p=f?ci(d,f,o):null;p?(c.push(p),a=true):c.push(d);}else c.push(d);return a?(r=true,{...l,children:c}):l});return r?i:t}function We(t,e){let n=gn(e);return [te(t,n.anchor),te(t,n.focus)]}function bn(t,e,n){if(I(e))return {doc:t,range:e};let[o,r]=We(t,e),i=false,l=true;return Go(t,o,r,a=>{i=true,a[n]||(l=false);}),i?jt(t,e,Jo(t,o,r,l?a=>{let c={...a};return delete c[n],c}:a=>a[n]?a:{...a,[n]:true})):{doc:t,range:e}}function yn(t,e,n,o){if(I(e))return {doc:t,range:e};let[r,i]=We(t,e);return jt(t,e,Jo(t,r,i,s=>{if(s[n]===o)return s;let a={...s};return o===void 0?delete a[n]:a[n]=o,a}))}function Qo(t,e){let n=[],o=[],r=0;for(let i of t){let l=r+i.text.length;l<=e?n.push(i):r>=e?o.push(i):(n.push({...i,text:i.text.slice(0,e-r)}),o.push({...i,text:i.text.slice(e-r)})),r=l;}return [n,o]}function Le(t,e,n){if(e>=t.length)return [[...t],[]];let o=t.slice(0,e),r=t.slice(e+1),i=t[e];if(x(i))o.push({...i,text:i.text.slice(0,n)}),r.unshift({...i,text:i.text.slice(n)});else if(T(i)){let[l,s]=Qo(i.children,n);o.push({...i,children:l}),r.unshift({...i,children:s});}else n===0?r.unshift(i):o.push(i);return [o,r]}function En(t,e){let[n,o]=We(t,e);for(let r=n.path[0];r<=o.path[0]&&r<t.length;r++)for(let[i,l]of t[r].children.entries()){if(!T(l))continue;let s={path:[r,i],offset:0},a={path:[r,i],offset:j(l)};if(Ee(n,a)<=0&&Ee(o,s)>=0)return {paragraphIndex:r,inlineIndex:i,link:l}}return null}function er(t,e){let n=En(t,e);if(!n)return null;let{paragraphIndex:o,inlineIndex:r,link:i}=n;return {url:i.url,range:{anchor:{path:[o,r],offset:0},focus:{path:[o,r],offset:j(i)}}}}function tr(t,e){let[n,o]=We(t,e);for(let r=n.path[0];r<=o.path[0]&&r<t.length;r++)for(let[i,l]of t[r].children.entries()){if(x(l))continue;let s=J(l)?"atomic":j(l);if(ve(r,i,s,n,o))return true}return false}function di(t,e,n,o){let r=[],i=(l,s,a)=>{s<a&&r.push({...l,text:l.text.slice(s,a)});};for(let[l,s]of t[e].children.entries())if(!J(s)){if(x(s)){let a=ve(e,l,s.text.length,n,o);a&&i(s,a.from,a.to);}else if(T(s)){let a=ve(e,l,j(s),n,o);a&&xn(s,a,i);}}return r}function vn(t,e,n){if(I(e))return {doc:t,range:e};let[o,r]=We(t,e);for(let s=o.path[0];s<=r.path[0]&&s<t.length;s++)for(let[a,c]of t[s].children.entries())if(J(c)&&ve(s,a,"atomic",o,r))return {doc:t,range:e};let i=false,l=t.map((s,a)=>{if(a<o.path[0]||a>r.path[0])return s;let c=di(t,a,o,r);if(c.length===0)return s;let u=s.children,[d]=a===o.path[0]?Le(u,o.path[1],o.offset):[[]],f=a===r.path[0]?Le(u,r.path[1],r.offset)[1]:[];return i=true,{...s,children:[...d,{type:Z,url:n,children:c},...f]}});return i?jt(t,e,l):{doc:t,range:e}}function nr(t,e,n){let o=En(t,e);if(!o||o.link.url===n)return {doc:t,range:e};let{paragraphIndex:r,inlineIndex:i,link:l}=o,s=t.map((a,c)=>c!==r?a:{...a,children:a.children.map((u,d)=>d===i?{...l,url:n}:u)});return {doc:D(s),range:e}}function or(t,e){let n=En(t,e);if(!n)return {doc:t,range:e};let{paragraphIndex:o,inlineIndex:r,link:i}=n,l=t.map((s,a)=>a!==o?s:{...s,children:s.children.flatMap((c,u)=>u===r?i.children:[c])});return jt(t,e,l)}function qe(t,e){if(I(e))return {doc:t,range:e};let[n,o]=We(t,e);if(Ee(n,o)===0)return {doc:t,range:e};let r=z(t,n),i=Le(t[n.path[0]].children,n.path[1],n.offset)[0],l=Le(t[o.path[0]].children,o.path[1],o.offset)[1],s={...t[n.path[0]],children:[...i,...l]},a=D([...t.slice(0,n.path[0]),s,...t.slice(o.path[0]+1)]),c=_(a,r);return {doc:a,range:{anchor:c,focus:c}}}function at(t,e,n){let o=te(t,e);if(n==="")return {doc:t,range:{anchor:o,focus:o}};let r=Yo(t,o),i=r?{...r,text:n}:{text:n},l=o.path[0],s=t[l].children,a=s[o.path[1]],c;if(T(a)&&o.offset>0&&o.offset<j(a)){let[f,p]=Qo(a.children,o.offset),g={...a,children:[...f,i,...p]};c=s.map((m,k)=>k===o.path[1]?g:m);}else {let[f,p]=Le(s,o.path[1],o.offset);c=[...f,i,...p];}let u=D(t.map((f,p)=>p===l?{...f,children:c}:f)),d=_(u,z(t,o)+n.length);return {doc:u,range:{anchor:d,focus:d}}}function rr(t,e,n){let o=D(n),r=Fe(o),i=t,l;if(I(e))l=te(t,e.focus);else {let p=qe(t,e);i=p.doc,l=p.range.focus;}if(o.length===1&&r===0)return {doc:i,range:{anchor:l,focus:l}};let s=l.path[0],[a,c]=Le(i[s].children,l.path[1],l.offset),u=o.length===1?[{...i[s],children:[...a,...o[0].children,...c]}]:[{...i[s],children:[...a,...o[0].children]},...o.slice(1,-1),{...o.at(-1),children:[...o.at(-1).children,...c]}],d=D([...i.slice(0,s),...u,...i.slice(s+1)]),f=_(d,z(i,l)+r);return {doc:d,range:{anchor:f,focus:f}}}function ir(t,e){if(I(e))return at(t,e.focus,`
15
- `);let n=qe(t,e);return at(n.doc,n.range.focus,`
16
- `)}function sr(t,e){for(let[n,o]of t.entries()){let r=o.children.indexOf(e);if(r!==-1)return [n,r]}return null}function lr(t){for(let[e,n]of t.entries())for(let[o,r]of n.children.entries())if(fe(r))return [e,o];return null}function ar(t){let e=Ve(t);return {anchor:e,focus:e}}function cr(t,e){let n=t,o;if(I(e))o=te(t,e.focus);else {let d=qe(t,e);n=d.doc,o=d.range.focus;}let r={type:ye,children:[{text:""}]},i=o.path[0],[l,s]=Le(n[i].children,o.path[1],o.offset),a=D(n.map((d,f)=>f===i?{...d,children:[...l,r,...s]}:d)),u={path:sr(a,r)??[0,0],offset:0};return {doc:a,range:{anchor:u,focus:u}}}function dr(t,e){let n=lr(t);if(!n)return {doc:t,range:ar(t)};let[o,r]=n,i={type:se,value:e.id,displayName:e.displayName,children:[{text:""}]},l=D(t.map((u,d)=>d===o?{...u,children:u.children.map((f,p)=>p===r?i:f)}:u)),[s,a]=sr(l,i)??[o,r],c={path:[s,a+1],offset:0};return {doc:l,range:{anchor:c,focus:c}}}function ur(t,e){let n=lr(t);if(!n)return {doc:t,range:ar(t)};let[o,r]=n,i=t[o].children,l=r>0?Xo(i[r-1]):null,s=l?{...l,text:e}:{text:e},a=z(t,{path:[o,r],offset:0})+e.length,c=D(t.map((d,f)=>f===o?{...d,children:i.map((p,g)=>g===r?s:p)}:d)),u=_(c,a);return {doc:c,range:{anchor:u,focus:u}}}function ui(t){let e=[];return t.color&&e.push(`color:${t.color}`),t.backgroundColor&&e.push(`background-color:${t.backgroundColor}`),e.join(";")}function fi(t){for(let e of t.children)if(J(e)||T(e)&&e.children.map(o=>o.text).join("").length>0||x(e)&&e.text.length>0)return false;return true}function fr(t,e,n,o){if(n.text==="")return;let r=n.text.split(`
17
- `);for(let i=0;i<r.length;i++){let l=r[i],s=i===r.length-1;if(l.length>0){let c=t.createTextNode(l);if(n.underline){let d=t.createElement("u");d.append(c),c=d;}if(n.italic){let d=t.createElement("i");d.append(c),c=d;}if(n.bold){let d=t.createElement("b");d.append(c),c=d;}let u=ui(n);if(u){let d=t.createElement("span");d.setAttribute("style",u),d.append(c),c=d;}e.append(c);}(!s||l===""&&r.length>1&&o)&&e.append(t.createElement("br"));}}function pi(t,e,n,o){if(x(n)){fr(t,e,n,o);return}switch(n.type){case Z:{let r=t.createElement("a");r.setAttribute("href",le(n.url)),r.className=a$r({size:"sm",variant:"inline"});for(let i of n.children)fr(t,r,i,false);e.append(r);break}case se:{let r=t.createElement("span");r.setAttribute("contenteditable","false"),r.dataset.userId=n.value,r.textContent=`@${n.displayName}`,e.append(r);break}case ye:{let r=t.createElement("span");r.setAttribute("contenteditable","false"),r.dataset.mentionAnchor="true",r.textContent=n.children[0].text,e.append(r);break}}}function Rn(t){return x(t)?t.text!=="":T(t)?t.children.some(e=>e.text!==""):true}function hi(t,e){let n=t.createElement("p");if(fi(e))return n.append(t.createElement("br")),n;let o=-1;for(let r=e.children.length-1;r>=0;r--)if(Rn(e.children[r])){o=r;break}for(let[r,i]of e.children.entries())pi(t,n,i,r===o);return n}function ct(t,e){let n=e.ownerDocument,o=n.createDocumentFragment();for(let r of t)o.append(hi(n,r));e.replaceChildren(o);}var mi=1,gi=3,xi=11;function ne(t){return t.nodeType===mi}function hr(t){return t.nodeType===xi&&"host"in t}function Ft(t){return t.nodeType===gi}function dt(t,e){return t.tagName.toLowerCase()===e}function bi(t){return dt(t,"span")?t.getAttribute("contenteditable")==="false":false}function yi(t,e,n,o,r){if(o===t){let s=t.childNodes,a=Math.min(r,s.length);return a===0?{found:true,point:{path:[n,0],offset:0}}:Ei(e,n,a)}let i=t.childNodes,l=0;for(let s=0;s<e.children.length;s++){let a=e.children[s];if(x(a)){let c=Ut(e.children,s),u=gr(a.text,i,l,n,s,o,r,c);if(u.found)return u;l+=ze(a.text,c);}else if(T(a)){if(l>=i.length)continue;let c=i[l];if(!ne(c)||!dt(c,"a")){l++;continue}let u=vi(a,c,n,s,o,r);if(u.found)return u;l++;}else if(ue(a)||fe(a)){if(l>=i.length)continue;let c=i[l];if(!ne(c)||!bi(c)){l++;continue}if(o===c||(ne(o)||Ft(o))&&e$1(c,o))return {found:true,point:{path:[n,s+1],offset:0}};l++;}}return {found:false}}function Ei(t,e,n){let o=0;for(let l=0;l<t.children.length;l++){let s=t.children[l],a=x(s)?ze(s.text,Ut(t.children,l)):1;if(o+a>=n){if(x(s))return {found:true,point:{path:[e,l],offset:mr(s.text,n-o)}};if(J(s))return {found:true,point:{path:[e,l+1],offset:0}};{let c=s.children.reduce((u,d)=>u+d.text.length,0);return {found:true,point:{path:[e,l],offset:c}}}}o+=a;}let r=t.children.length-1,i=t.children[r];if(x(i))return {found:true,point:{path:[e,r],offset:i.text.length}};if(J(i))return {found:true,point:{path:[e,r+1],offset:0}};if(T(i)){let l=i.children.reduce((s,a)=>s+a.text.length,0);return {found:true,point:{path:[e,r],offset:l}}}return {found:false}}function Ut(t,e){for(let n=e+1;n<t.length;n++)if(Rn(t[n]))return false;return true}function ze(t,e){if(t==="")return 0;let n=t.split(`
18
- `),o=0;for(let r=0;r<n.length;r++)n[r].length>0&&o++,r<n.length-1&&o++;return e&&t.endsWith(`
19
- `)&&o++,o}function mr(t,e){if(t==="")return 0;let n=t.split(`
20
- `),o=0,r=0;for(let i=0;i<n.length&&!(o>=e);i++){if(n[i].length>0){if(o+1>=e){r+=n[i].length,o++;break}r+=n[i].length,o++;}if(i<n.length-1){if(o+1>=e){r++,o++;break}r++,o++;}}return t.endsWith(`
21
- `)&&o<e&&(r=t.length),Math.min(r,t.length)}function gr(t,e,n,o,r,i,l,s=false){if(t==="")return {found:false};let a=t.split(`
22
- `),c=n,u=0;for(let d=0;d<a.length;d++){let f=a[d],p=d===a.length-1;if(f.length>0&&c<e.length){let g=e[c],m=Vt(g);if(m!==null){if(i===m){let k=Math.min(l,f.length);return {found:true,point:{path:[o,r],offset:u+k}}}if(ne(i)&&e$1(i,m))return {found:true,point:{path:[o,r],offset:u+(l===0?0:f.length)}}}u+=f.length,c++;}if(p){if(p&&s&&t.endsWith(`
23
- `)&&f===""&&c<e.length){let g=e[c];if(ne(g)&&dt(g,"br")&&i===g)return {found:true,point:{path:[o,r],offset:u}};c++;}}else if(c<e.length){let g=e[c];if(ne(g)&&dt(g,"br")&&i===g)return {found:true,point:{path:[o,r],offset:u+(l===0?0:1)}};u++,c++;}}return {found:false}}function vi(t,e,n,o,r,i){if(!ne(e))return {found:false};if(r===e){let c=e.childNodes,u=Math.min(i,c.length),d=0,f=0,p=0;for(let g of t.children){let m=ze(g.text,false);if(p+m>=u){f=d+mr(g.text,u-p);break}d+=g.text.length,p+=m;}return p>=t.children.reduce((g,m)=>g+ze(m.text,false),0)&&(f=t.children.reduce((g,m)=>g+m.text.length,0)),{found:true,point:{path:[n,o],offset:f}}}if(!e$1(e,r))return {found:false};let l=e.childNodes,s=0,a=0;for(let c of t.children){let u=gr(c.text,l,a,n,o,r,i);if(u.found)return {found:true,point:{path:[n,o],offset:s+u.point.offset}};s+=c.text.length,a+=ze(c.text,false);}return {found:false}}function Vt(t){if(Ft(t))return t;if(ne(t)){let e=t;for(;ne(e)&&e.childNodes.length===1;){let n=e.childNodes[0];if(Ft(n))return n;if(ne(n))e=n;else break}}return null}function Kt(t,e,n,o){try{if(n!==t&&!e$1(t,n)||e.length===0)return null;if(n===t){let i=Math.min(o,t.childNodes.length);if(i===0)return {path:[0,0],offset:0};let l=Math.min(i,e.length)-1,s=e[l];if(!s)return null;let a=s.children.length-1,c=s.children[a];if(!c)return null;let u=x(c)?c.text.length:T(c)?c.children.reduce((d,f)=>d+f.text.length,0):0;return {path:[l,a],offset:u}}let r=t.children;for(let i=0;i<e.length;i++){let l=r[i];if(!l)return null;let s=e[i];if(n!==l&&!e$1(l,n))continue;let a=yi(l,s,i,n,o);return a.found?a.point:null}return null}catch{return null}}function pr(t,e,n){try{let[o,r]=n.path,i=n.offset;if(o<0||o>=e.length)return null;let l=e[o];if(r<0||r>=l.children.length)return null;let s=l.children[r],a=t.children[o];if(!a)return null;let c=a.childNodes,u=0;for(let d=0;d<r;d++){let f=l.children[d];x(f)?u+=ze(f.text,Ut(l.children,d)):u++;}if(x(s))return xr(s.text,i,c,u,a,Ut(l.children,r));if(T(s)){if(u>=c.length)return null;let d=c[u];return !ne(d)||!dt(d,"a")?null:Ri(s,i,d)}else if(ue(s)||fe(s)){let d=u+1;if(d<c.length){let f=c[d];if(Ft(f))return {node:f,offset:0}}return {node:a,offset:Math.min(d,a.childNodes.length)}}return null}catch{return null}}function xr(t,e,n,o,r,i=false){if(t==="")return {node:r,offset:o};let l=t.split(`
24
- `),s=o,a=0;for(let c=0;c<l.length;c++){let u=l[c],d=c===l.length-1;if(u.length>0&&s<n.length){let f=n[s];if(e>=a&&e<=a+u.length){let p=Vt(f);return p!==null?{node:p,offset:e-a}:{node:r,offset:s}}a+=u.length,s++;}if(d){if(d&&t.endsWith(`
25
- `)&&u===""&&s<=n.length){if(e===a)return {node:r,offset:Math.min(s,r.childNodes.length)};i&&s++;}}else if(s<n.length){if(e===a)return {node:r,offset:s};a++,s++;}}if(s>o&&s-1<n.length){let c=n[s-1],u=Vt(c);return u!==null?{node:u,offset:u.length}:{node:r,offset:s}}return {node:r,offset:Math.min(s,r.childNodes.length)}}function Ri(t,e,n){let o=n.childNodes,r=0,i=0;for(let l of t.children){let s=l.text.length;if(e<=r+s)return xr(l.text,e-r,o,i,n);r+=s,i+=ze(l.text,false);}if(o.length>0){let l=n.lastChild,s=l===null?null:Vt(l);return s!==null?{node:s,offset:s.length}:{node:n,offset:o.length}}return {node:n,offset:0}}function Wt(t){let e=t.getRootNode();if(typeof e.getSelection=="function")return e.getSelection();let n=t.ownerDocument;if(!n)return null;let o=n.defaultView;return o?o.getSelection():null}function Ti(t,e){let n=t.getComposedRanges;if(typeof n!="function")return null;let o;try{o=n.call(t,{shadowRoots:[e]});}catch{try{o=n.call(t,e);}catch{return null}}let r=o?.[0];return r?{startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset}:null}function Tn(t,e){let n=e.rangeCount>0?e.getRangeAt(0):null,o=n?{startContainer:n.startContainer,startOffset:n.startOffset,endContainer:n.endContainer,endOffset:n.endOffset}:null;if(o&&e$1(t,o.startContainer))return o;let r=t.getRootNode();if(hr(r)){let i=Ti(e,r);if(i&&e$1(t,i.startContainer))return i}return o}function qt(t,e){try{let n=Wt(t);if(!n)return null;let{anchorNode:o,focusNode:r}=n;if(o&&r&&e$1(t,o)&&e$1(t,r)){let a=Kt(t,e,o,n.anchorOffset),c=Kt(t,e,r,n.focusOffset);if(a!==null&&c!==null)return {anchor:a,focus:c}}let i=Tn(t,n);if(!i)return null;let l=Kt(t,e,i.startContainer,i.startOffset);if(l===null)return null;let s=Kt(t,e,i.endContainer,i.endOffset);return s===null?null:{anchor:l,focus:s}}catch{return null}}function Pe(t,e,n){try{let o=pr(t,e,n.anchor);if(o===null)return;let r=pr(t,e,n.focus);if(r===null)return;let i=t.ownerDocument;if(!i)return;let l=Wt(t);if(!l)return;if(Ee(n.anchor,n.focus)>0||hr(t.getRootNode())){l.setBaseAndExtent(o.node,o.offset,r.node,r.offset);return}let a=i.createRange();a.setStart(o.node,o.offset),a.setEnd(r.node,r.offset),l.removeAllRanges(),l.addRange(a);}catch{}}var br="typing";var $t=class{undoStack=[];redoStack=[];now;maxDepth;lastKind=null;lastTime=null;constructor(e={}){this.now=e.now??Date.now,this.maxDepth=e.maxDepth??100;}record(e,n){let o=this.now();this.redoStack.length>0&&(this.redoStack=[]);let r=n===br&&this.lastKind===br&&this.lastTime!==null&&o-this.lastTime<=1e3;this.lastKind=n,this.lastTime=o,!r&&(this.undoStack.push(e),this.undoStack.length>this.maxDepth&&this.undoStack.shift());}undo(e){let n=this.undoStack.pop();return n?(this.redoStack.push(e),this.lastKind=null,this.lastTime=null,n):null}redo(e){let n=this.redoStack.pop();return n?(this.undoStack.push(e),this.lastKind=null,this.lastTime=null,n):null}clear(){this.undoStack=[],this.redoStack=[],this.lastKind=null,this.lastTime=null;}get canUndo(){return this.undoStack.length>0}get canRedo(){return this.redoStack.length>0}};var ki=1,ut=class t{doc=Ke();lastKnownHtml="";lastAppliedValue=null;cachedRange=null;needsSelectionRestore=false;composing=false;pending=null;preservePendingSelectionChanges=0;history=new $t;opts;el=null;pendingExternalRender=null;keyboardShortcutsOverride=void 0;constructor(e={}){this.opts=e,this.lastKnownHtml=pe(this.doc);}setKeyboardShortcutsEnabled(e){this.keyboardShortcutsOverride=e;}attach(e){this.el=e,ct(this.doc,e),this.cachedRange&&Pe(e,this.doc,this.cachedRange);let n=this.handleBeforeInputBound,o=this.handleInputBound,r=this.handlePasteBound,i=this.handleCompositionStartBound,l=this.handleCompositionEndBound,s=this.handleSelectionChangeBound,a=this.handlePointerDownBound,c=this.handleFocusBound,u=e.ownerDocument;return e.addEventListener("beforeinput",n),e.addEventListener("input",o),e.addEventListener("paste",r),e.addEventListener("compositionstart",i),e.addEventListener("compositionend",l),e.addEventListener("pointerdown",a),e.addEventListener("focus",c),u.addEventListener("selectionchange",s),()=>{e.removeEventListener("beforeinput",n),e.removeEventListener("input",o),e.removeEventListener("paste",r),e.removeEventListener("compositionstart",i),e.removeEventListener("compositionend",l),e.removeEventListener("pointerdown",a),e.removeEventListener("focus",c),u.removeEventListener("selectionchange",s),this.el===e&&(this.el=null);}}handleBeforeInputBound=e=>{let n=e;if(g(n)===this.el){if(this.opts.isReadOnly?.()){n.preventDefault();return}this.refreshSelectionFromDom(),this.handleBeforeInput(n);}};handleInputBound=e=>{g(e)===this.el&&(this.composing||this.syncFromDom());};handlePasteBound=e=>{let n=e,o=g(n);!o||!e$1(this.el,o)||(o.nodeType===ki?o:o.parentElement)?.closest('input, [contenteditable="false"]')||(n.preventDefault(),!this.opts.isReadOnly?.()&&(this.composing||(this.refreshSelectionFromDom(),this.insertPastedData(n.clipboardData))));};handlePointerDownBound=()=>{this.preservePendingSelectionChanges=0,this.needsSelectionRestore=false;};handleFocusBound=()=>{this.needsSelectionRestore&&(this.needsSelectionRestore=false,!(!this.el||!this.cachedRange)&&Pe(this.el,this.doc,this.cachedRange));};handleCompositionStartBound=()=>{this.composing=true;};handleCompositionEndBound=()=>{if(this.composing=false,this.pendingExternalRender){let e=this.pendingExternalRender;this.pendingExternalRender=null,e();return}this.syncFromDom();};handleSelectionChangeBound=()=>{this.el&&this.handleSelectionChange();};refreshSelectionFromDom(){if(!this.el)return;let e=qt(this.el,this.doc);e&&(this.cachedRange=e);}getDoc(){return this.doc}getValue(){return pe(this.doc)}setValue(e,n={}){if(e===this.lastKnownHtml||e===this.lastAppliedValue)return;let o,r;try{o=D(pn(e)),r=pe(o);}catch(a){process.env.NODE_ENV!=="production"&&console.error("[Editor] setValue failed to parse value:",a);return}let i=this.cachedRange?z(this.doc,this.cachedRange.anchor):null,l=t.docHasMentionInput(this.doc);this.doc=o,this.lastKnownHtml=r,this.lastAppliedValue=e,this.pending=null,this.history.clear();let s=()=>{if(this.el&&(ct(o,this.el),i!==null)){let a=Math.min(i,Fe(o)),c=_(o,a),u={anchor:c,focus:c};this.cachedRange=u,this.hasFocus()?Pe(this.el,o,u):(this.needsSelectionRestore=true,n.emit||this.emitSelectionChange());}};this.el&&(this.composing?this.pendingExternalRender=s:s()),l&&!t.docHasMentionInput(o)&&this.opts.onMentionInputRemoved?.(),n.emit&&(this.opts.onChange?.(r),this.emitSelectionChange());}static docHasMentionInput(e){return e.some(n=>n.children.some(o=>fe(o)))}exec(e,...n){this.refreshSelectionFromDom();let o=this.cachedRange,r=this.doc,i=o??this.collapsedAtDocEnd(),l={doc:r,range:o},s;try{s=this.dispatchCommand(e,n);}catch(a){process.env.NODE_ENV!=="production"&&console.error(`[Editor] command "${e}" threw:`,a);return}if(s.doc===r){if(e==="toggleMark"&&I(i)){let[a]=n;this.setPendingMark(a,i),this.emitSelectionChange();return}if(e==="setMarkValue"&&I(i)){let[a,c]=n;this.setPendingColorMark(a,c,i),this.emitSelectionChange();return}this.pending=null;return}if(this.pending=null,e==="insertSoftBreak"){let a=this.mergePendingMarks(Se(r,i));if(Object.keys(a).length>0){let c=z(s.doc,s.range.anchor);this.pending={marks:a,caretOffset:c},this.preservePendingSelectionChanges=10;}}this.history.record(l,e),this.applyDocChange(s.doc,s.range,true);}undo(){if(!this.history.canUndo)return;let e={doc:this.doc,range:this.cachedRange},n=this.history.undo(e);n&&(this.pending=null,this.applyDocChange(n.doc,n.range,true));}redo(){if(!this.history.canRedo)return;let e={doc:this.doc,range:this.cachedRange},n=this.history.redo(e);n&&(this.pending=null,this.applyDocChange(n.doc,n.range,true));}canUndo(){return this.history.canUndo}canRedo(){return this.history.canRedo}focus(){this.el?.focus();}hasFocus(){return this.el?e$1(this.el,f$1(this.el)):false}setCaretPosition(e){if(!this.el)return;let n=_(this.doc,e);this.select({anchor:n,focus:n});}select(e){this.el&&(this.el.focus(),this.cachedRange=e,Pe(this.el,this.doc,e));}selectStart(){this.setCaretPosition(0);}selectEnd(){let e=Ve(this.doc);this.select({anchor:e,focus:e});}getSelectionState(){return this.buildSelectionState(this.cachedRange)}buildSelectionState(e){let n=e?Se(this.doc,e):{},o=this.mergePendingMarks(n),r=e?er(this.doc,e):null;return {marks:o,link:r,range:e}}mergePendingMarks(e){return this.pending?this.pending.marks:e}setPendingMark(e,n){let o=z(this.doc,n.anchor),r=Se(this.doc,n),i=this.pending?{...this.pending.marks}:{...r};i[e]?delete i[e]:i[e]=true,this.pending={marks:i,caretOffset:o};}setPendingColorMark(e,n,o){let r=z(this.doc,o.anchor),i=Se(this.doc,o),l=this.pending?{...this.pending.marks}:{...i};n===void 0?delete l[e]:l[e]=n,this.pending={marks:l,caretOffset:r};}emitSelectionChange(){this.opts.onSelectionChange&&this.opts.onSelectionChange(this.buildSelectionState(this.cachedRange));}applyDocChange(e,n,o){if(this.doc=e,this.cachedRange=n,this.lastAppliedValue=null,this.el&&!this.composing&&(ct(e,this.el),n&&Pe(this.el,e,n)),o){let r=pe(e);this.lastKnownHtml=r,this.opts.onChange?.(r),this.emitSelectionChange();}}handleBeforeInput(e){let{inputType:n}=e;if(n==="insertParagraph"||n==="insertLineBreak"){e.preventDefault();let r=this.detectAutoLinkBeforeCaret();this.exec("insertSoftBreak"),r&&this.applyAutoLink(r);return}if(n==="insertText"&&e.data===" "){let r=this.detectAutoLinkBeforeCaret();if(r){e.preventDefault(),this.exec("insertText"," "),this.applyAutoLink(r);return}}if(n==="insertFromPaste"||n==="insertFromDrop"){e.preventDefault(),this.handlePasteInput(e);return}let o=this.keyboardShortcutsOverride??this.opts.areKeyboardShortcutsEnabled?.()??true;if(n==="formatBold"){e.preventDefault(),o&&this.exec("toggleMark","bold");return}if(n==="formatItalic"){e.preventDefault(),o&&this.exec("toggleMark","italic");return}if(n==="formatUnderline"){e.preventDefault(),o&&this.exec("toggleMark","underline");return}if(n==="historyUndo"){e.preventDefault(),o&&this.undo();return}if(n==="historyRedo"){e.preventDefault(),o&&this.redo();return}if(n==="insertText"&&e.data==="@"&&this.shouldTriggerMention()&&this.opts.canStartMention?.()!==false){e.preventDefault();let r=this.doc;this.exec("insertMentionInput"),this.doc===r?this.exec("insertText","@"):this.opts.onMentionTrigger?.();}}shouldTriggerMention(){if(!this.cachedRange)return true;if(!I(this.cachedRange))return false;let e=this.cachedRange,[n,o]=e.anchor.path,r=e.anchor.offset,i=this.doc;if(n>=i.length)return true;let l=i[n];if(o>=l.children.length)return true;let s=l.children[o];if(r===0&&o===0)return true;let a=null;if(x(s)){let c=s.text;if(r>0)a=c[r-1];else if(o>0)a=this.lastCharOf(l.children[o-1]);else return true}else if(T(s)){let c=s.children.map(u=>u.text).join("");if(r>0)a=c[r-1]??null;else if(o>0)a=this.lastCharOf(l.children[o-1]);else return true}else if(r===0&&o>0)a=this.lastCharOf(l.children[o-1]);else return true;return a===null?true:/^[\s"']$/.test(a)}lastCharOf(e){if(x(e)){let n=e.text;return n.length>0?n.at(-1)??null:null}if(T(e)){let o=(e.children??[]).at(-1);return o&&o.text.length>0?o.text.at(-1)??null:null}if(ue(e)){let n=e.displayName??"";return n.length>0?n.at(-1)??null:null}return null}autoLinkEnabled(){return this.opts.autoLink?.()??true}detectAutoLinkBeforeCaret(){return !this.autoLinkEnabled()||this.composing?null:this.findAutoLinkBeforeCaret()}findAutoLinkBeforeCaret(){let e=this.cachedRange;if(!e||!I(e))return null;let n=e.anchor,o=this.doc,r=n.path[0];if(r>=o.length)return null;let i=o[r].children,l=n.path[1],s=n.offset;if(l>=i.length){l=i.length-1;let f=i[l];if(!f||!x(f))return null;s=f.text.length;}else {let f=i[l];x(f)&&s>f.text.length&&(s=f.text.length);}let a=i[l];if(x(a)&&s<a.text.length&&!/\s/.test(a.text[s]))return null;let c="";for(;;){let f=i[l];if(!f||!x(f))break;if(s>0){let p=f.text[s-1];if(/\s/.test(p))break;c=p+c,s-=1;}else {if(l===0)break;let p=i[l-1];if(!x(p))break;l-=1,s=p.text.length;}}if(c==="")return null;let u=Ht(c);if(!u)return null;let d=z(o,{path:[r,l],offset:s});return {startAbs:d+u.start,endAbs:d+u.end,url:u.url}}applyAutoLink(e){let n=le(e.url);if(n==="")return;let o=this.doc,r={anchor:_(o,e.startAbs),focus:_(o,e.endAbs)},i={doc:o,range:this.cachedRange},l=vn(o,r,n);if(l.doc===o)return;let s=this.cachedRange?z(o,this.cachedRange.anchor):e.endAbs;this.history.record(i,"wrapLink");let a=_(l.doc,s);this.applyDocChange(l.doc,{anchor:a,focus:a},true);}handlePasteInput(e){this.insertPastedData(e.dataTransfer);}insertPastedData(e){if(!e)return;let n=this.autoLinkEnabled(),o=e.getData("text/plain");if(n&&o){let i=this.cachedRange;if(i&&!I(i)&&i.anchor.path[0]===i.focus.path[0]){let l=Vo(o),s=l?le(l):"";if(s&&!tr(this.doc,i)){this.exec("wrapLink",s);return}}}let r=e.getData("text/html");if(r)try{let i=D(pn(r));n&&(i=D(hn(i))),this.exec("insertFragment",i);return}catch(i){process.env.NODE_ENV!=="production"&&console.error("[Editor] failed to parse pasted HTML:",i);}if(o){let i=Me(o.replaceAll(`\r
26
- `,`
27
- `).replaceAll("\r",`
28
- `)),l=D([{type:"p",children:[{text:i}]}]);n&&(l=D(hn(l))),this.exec("insertFragment",l);}}syncFromDom(){if(!this.el||this.composing)return;let e=this.doc,n={doc:e,range:this.cachedRange},o=Bt(this.el),r=qt(this.el,o);if(!(pe(o)!==this.lastKnownHtml)){if(r){let d=this.cachedRange;this.cachedRange=r,(!d||!this.rangesEqual(d,r))&&this.emitSelectionChange();}return}this.history.record(n,"typing");let s=o,a=r,c=false;if(!a&&n.range){let d=Math.max(Fe(o)-Fe(e),0),f=this.pending?this.pending.caretOffset:z(e,n.range.anchor),p=_(o,f+d);a={anchor:p,focus:p};}if(this.pending){let d=this.pending.marks,f=a;if(f){let p=this.applyPendingMarks(o,n.range,f);p.doc!==o&&(s=p.doc,a=p.range,c=true),this.pending=a?{marks:d,caretOffset:z(s,a.anchor)}:null,a&&(this.preservePendingSelectionChanges=10);}else this.pending=null;}this.doc=s,this.cachedRange=a;let u=pe(s);this.lastKnownHtml=u,this.lastAppliedValue=null,c&&(ct(s,this.el),a&&Pe(this.el,s,a)),this.opts.onChange?.(u),this.emitSelectionChange();}applyPendingMarks(e,n,o){if(!this.pending||!n||!o)return {doc:e,range:o??{anchor:{path:[0,0],offset:0},focus:{path:[0,0],offset:0}}};let r=this.pending.caretOffset,i=o?z(e,o.anchor):r;if(i<=r)return {doc:e,range:o??{anchor:{path:[0,0],offset:0},focus:{path:[0,0],offset:0}}};let l=this.applyPendingMarkSnapshot(e,this.pending.marks,r,i),s=_(l,i);return {doc:l,range:{anchor:s,focus:s}}}applyPendingMarkSnapshot(e,n,o,r){let i=e,l=()=>({anchor:_(i,o),focus:_(i,r)});for(let s of ["bold","italic","underline"]){let a=l(),c=!!n[s],u=!!Se(i,a)[s];if(c!==u){let d=bn(i,a,s);d.doc!==i&&(i=d.doc);}}for(let s of ["color","backgroundColor"]){let a=l(),c=n[s],u=Se(i,a)[s];if(!b$a(c,u)){let d=yn(i,a,s,c);d.doc!==i&&(i=d.doc);}}return i}handleSelectionChange(){if(!this.el)return;let e=Wt(this.el);if(!e)return;let n=Tn(this.el,e);if(!n||!e$1(this.el,n.startContainer))return;let o=qt(this.el,this.doc),r=this.cachedRange;this.preservePendingSelectionChanges>0?(this.preservePendingSelectionChanges-=1,this.pending&&o&&(this.pending={...this.pending,caretOffset:z(this.doc,o.anchor)})):this.pending&&o&&z(this.doc,o.anchor)!==this.pending.caretOffset&&(this.pending=null),o!==null&&(this.cachedRange=o),(!r||!o||!this.rangesEqual(r,o))&&this.emitSelectionChange();}dispatchCommand(e,n){let o=this.doc,r=this.cachedRange??this.collapsedAtDocEnd();switch(e){case "toggleMark":{let[i]=n;return bn(o,r,i)}case "setMarkValue":{let[i,l]=n;return yn(o,r,i,l)}case "wrapLink":{let[i]=n;return vn(o,r,i)}case "updateLinkUrl":{let[i]=n;return nr(o,r,i)}case "unwrapLink":return or(o,r);case "deleteRange":return qe(o,r);case "insertText":{let[i]=n;if(!I(r)){let l=qe(o,r);return at(l.doc,l.range.focus,i)}return at(o,r.anchor,i)}case "insertFragment":{let[i]=n;return rr(o,r,i)}case "insertSoftBreak":return ir(o,r);case "insertMentionInput":return cr(o,r);case "confirmMention":{let[i]=n;return dr(o,i)}case "removeMentionInput":{let[i]=n;return ur(o,i)}default:return {doc:o,range:r}}}collapsedAtDocEnd(){let e=Ve(this.doc);return {anchor:e,focus:e}}rangesEqual(e,n){return e.anchor.path[0]===n.anchor.path[0]&&e.anchor.path[1]===n.anchor.path[1]&&e.anchor.offset===n.anchor.offset&&e.focus.path[0]===n.focus.path[0]&&e.focus.path[1]===n.focus.path[1]&&e.focus.offset===n.focus.offset}};var ft=mt.createContext(null);function he(){let t=mt.useContext(ft);if(!t)throw new Error("useEditorContext must be used within an EditorProvider");return t}var Gt=Object.freeze({marks:{},link:null,range:null});function Li(t){let e=Me(t.replaceAll(/<br\s*\/?>/gi,""));return e==="<p></p>"||e===""||e==="<p> </p>"}function kn(t={}){let{value:e,defaultValue:n,onChange:o,isDisabled:r,keyboardShortcuts:i,onSelectionChange:l,onMentionTrigger:s,onMentionInputRemoved:a,canStartMention:c,isReadOnly:u,autoLink:d}=t;e!==void 0&&o===void 0&&a$c("use-editor-value-without-onchange","useEditor: `value` without `onChange` is controlled but cannot reflect edits \u2014 they are discarded on the next render. Use `defaultValue` for initial content, or add `onChange`.");let[f,p]=useState(Gt),[g,m]=useState(()=>e??n??""),k=useRef(o);k.current=o;let L=useRef(l);L.current=l;let K=useRef(s);K.current=s;let C=useRef(a);C.current=a;let A=useRef(c);A.current=c;let S=useRef(u);S.current=u;let M=useRef(r);M.current=r;let V=useRef(i);V.current=i;let W=useRef(d);W.current=d;let q=useRef(null);q.current===null&&(q.current=new ut({onChange:R=>{m(R),k.current?.(R);},onSelectionChange:R=>{p(R),L.current?.(R);},onMentionTrigger:()=>{K.current?.();},onMentionInputRemoved:()=>{C.current?.();},canStartMention:()=>A.current?.()??false,autoLink:()=>W.current!==false,isReadOnly:()=>S.current?.()??!!M.current,areKeyboardShortcutsEnabled:()=>V.current!==false}));let h=q.current;useLayoutEffect(()=>{e!==void 0&&h.setValue(e);});let y=useRef(false);useEffect(()=>{if(!y.current){y.current=true;let R=e??n;R&&h.setValue(R);}},[h]),useEffect(()=>{r&&p(Gt);},[r]);let O=e??g,b=Li(O),ae=h.canUndo(),re=h.canRedo();return useMemo(()=>({core:h,selectionState:f,value:O,isEmpty:b,isDisabled:!!r,keyboardShortcuts:i!==false,canUndo:ae,canRedo:re,focus:()=>{h.focus();},selectStart:()=>{h.selectStart();},selectEnd:()=>{h.selectEnd();},setCaretPosition:R=>{h.setCaretPosition(R);},undo:()=>{h.undo();},redo:()=>{h.redo();},getValue:()=>h.getValue(),setValue:(R,$)=>{h.setValue(R,$);},exec:(R,...$)=>{h.exec(R,...$);},isMarkActive:R=>!!f.marks[R],toggleMark:R=>{h.exec("toggleMark",R);},setMark:(R,$)=>{h.exec("setMarkValue",R,$);}}),[h,f,O,b,r,i,ae,re])}function Tr(t,e){let n=t.ctrlKey||t.metaKey,o=t.key.toLowerCase();if(n&&!t.altKey&&o==="z")return t.preventDefault(),t.shiftKey?e.redo():e.undo(),true;if(t.ctrlKey&&!t.altKey&&!t.shiftKey&&o==="y")return t.preventDefault(),e.redo(),true;if(n&&!t.shiftKey&&!t.altKey){if(o==="b")return t.preventDefault(),e.toggleMark("bold"),true;if(o==="i")return t.preventDefault(),e.toggleMark("italic"),true;if(o==="u")return t.preventDefault(),e.toggleMark("underline"),true}return false}function Mn(t,e={}){let n=_i(t),{ref:o,autoFocus:r,onKeyDown:i,keyboardShortcuts:l}=e,s=l??n.keyboardShortcuts,a=useId(),c=useRef(null),u=useRef(null),d=useCallback(m=>{u.current&&(u.current(),u.current=null),m&&(u.current=n.core.attach(m));},[n.core]),f=useMemo(()=>b(c,d,o??null),[d,o]);useEffect(()=>(n.core.setKeyboardShortcutsEnabled(l),()=>{n.core.setKeyboardShortcutsEnabled(void 0);}),[n.core,l]);let p=useRef(false);useEffect(()=>{if(!p.current)switch(p.current=true,r){case true:{n.focus();break}case "start":{n.selectStart();break}case "end":{n.selectEnd();break}}},[n.core]);let{keyboardProps:g}=a$e({onKeyDown:m=>{i?.(m)||s&&Tr(m,n)||m.continuePropagation();}});return {editableProps:{...g,id:a,ref:f,contentEditable:!n.isDisabled,suppressContentEditableWarning:true,role:"textbox","aria-multiline":true}}}function _i(t){let e=useContext(ft);if(t)return t;if(!e)throw new Error("useEditable must be passed an editor or used within an EditorProvider");return e}var Ln=({editor:t,children:e})=>jsx(ft.Provider,{value:t,children:e});var Xt=({markName:t,icon:e,ariaLabel:n,isDisabled:o})=>{let{core:r,selectionState:i}=he(),l=!!i.marks[t];return jsx(a$g,{variant:"tertiary",isSelected:l,size:"sm",icon:e,"aria-label":n,"data-testid":`editor-${t}-button`,isDisabled:o,onPress:()=>{r.exec("toggleMark",t),r.focus();},preventFocusOnPress:true})},zn=({colorKey:t,"aria-label":e,isDisabled:n})=>{let{core:o,selectionState:r}=he(),i=t==="color"?r.marks.color:r.marks.backgroundColor,l=mt.useRef(null),s=useCallback(()=>{l.current=r.range;},[r.range]),a=useCallback(p=>{setTimeout(()=>{let g=o.getSelectionState().range??l.current;g&&o.select(g),o.exec("setMarkValue",t,p);},0);},[o,t]),c=useCallback(p=>{a(p);},[a]),u=useCallback(()=>{a();},[a]),d=useCallback(({ref:p,triggerProps:g})=>jsx(a$b,{icon:t==="color"?TextIcon:HighlightTextIcon,"aria-label":e,"data-testid":t==="color"?"editor-font-color-button":"editor-background-color-button",size:"md",variant:"popover",isDisabled:n,className:Be,preventFocusOnPress:true,...g,ref:p}),[t,e,n]),f=useCallback(p=>{p?c(p.toString("rgba")):u();},[u,c]);return jsx(b$4,{presets:an,allowRemoval:true,pickerMode:"lazy",placement:"top end",colorLabel:false,renderTriggerButton:d,onTriggerPress:s,value:i||"#000000",onChange:f,isDisabled:n})};var De={Add:"add",Edit:"edit",Show:"show"},Cr=({isDisabled:t,addLinkLabel:e,editLinkLabel:n,removeLinkLabel:o,linkAnnotationLabel:r,linkCancelLabel:i,linkSaveLabel:l})=>{let{formatMessage:s}=b$1(),{core:a}=he();return jsxs(b$5,{type:"dialog",children:[jsx(j$1,{children:jsx(a$b,{icon:LinkIcon,size:"sm",isDisabled:t,"aria-label":e??s(_e.addLink),"data-testid":"editor-add-link-button",className:Be,preventFocusOnPress:true})}),jsx(a$h,{className:sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:c})=>jsx(a$i,{size:"content",style:{minWidth:240},children:jsx(Hi,{addLinkLabel:e,editLinkLabel:n,removeLinkLabel:o,linkAnnotationLabel:r,linkCancelLabel:i,linkSaveLabel:l,close:()=>{c(),setTimeout(()=>{a.focus();},0);}})})})]})},Hi=({close:t,addLinkLabel:e,editLinkLabel:n,removeLinkLabel:o,linkAnnotationLabel:r,linkCancelLabel:i,linkSaveLabel:l})=>{let{core:s,selectionState:a}=he(),{formatMessage:c}=b$1(),u=a.link?.url,[d,f]=mt.useState(u?De.Show:De.Add),[p,g]=mt.useState(u||""),m=jsx(a$9,{padding:"lg",children:jsx(a$p,{label:r??c(_e.link),value:p,autoFocus:true,onChange:g,placeholder:"https://yourdomain.com","data-testid":"editor-link-input"})});return jsxs(Fragment,{children:[d===De.Add&&jsxs(Fragment,{children:[m,jsx(a$9,{display:"flex",justifyContent:"flex-end",padding:"lg",className:xo,children:jsx(b$b,{isDisabled:!a$q(p,true)||le(p)==="",label:e??c(_e.addLink),"data-testid":"editor-link-add-button",size:"sm",onPress:()=>{s.exec("wrapLink",p),t?.();},preventFocusOnPress:true})})]}),d===De.Show&&jsxs(Fragment,{children:[jsx(a$9,{padding:"lg",children:jsx(a$n,{type:"subtitle",size:"sm",children:u})}),jsxs(a$9,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(b$b,{label:n??c(_e.editLink),"data-testid":"editor-link-edit-button",size:"sm",variant:"secondary",onPress:()=>{f(De.Edit);},style:{flex:1,justifyContent:"center"}}),jsx(b$b,{label:o??c(_e.removeLink),"data-testid":"editor-link-remove-button",size:"sm",onPress:()=>{s.exec("unwrapLink"),t?.();},preventFocusOnPress:true,style:{flex:1,justifyContent:"center"}})]})]}),d===De.Edit&&jsxs(Fragment,{children:[m,jsxs(a$9,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(b$b,{label:i??c(_e.cancel),"data-testid":"editor-link-cancel-button",size:"sm",variant:"secondary",onPress:()=>{f(De.Show),t?.();}}),jsx(b$b,{label:l??c(_e.save),"data-testid":"editor-link-save-button",size:"sm",onPress:()=>{le(p)!==""&&(s.exec("updateLinkUrl",p),t?.());}})]})]})]})},_e=c$1({addLink:{id:"bui.editor.addLink",defaultMessage:"Add Link"},editLink:{id:"bui.editor.editLink",defaultMessage:"Edit Link"},removeLink:{id:"bui.editor.removeLink",defaultMessage:"Remove Link"},cancel:{id:"bui.editor.cancel",defaultMessage:"Cancel"},save:{id:"bui.editor.save",defaultMessage:"Save"},link:{id:"bui.editor.linkAnnotation",defaultMessage:"Link"}});var Dn=mt.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),qi=({key:t,value:e},{isDisabled:n,optionProps:o,isFocused:r,_state:i},l)=>{let{hoverProps:s}=a$3({isDisabled:n}),{label:a,data:c$1}=e;return jsxs(Fragment,{children:[jsxs("li",{...c(o,s),className:ko({isDisabled:n,isHovered:r}),"data-active":r,ref:l,children:[jsx(a$f,{name:a,...c$1?.avatar}),jsxs(a$9,{display:"flex",flexDirection:"column",children:[jsx(a$n,{type:"subtitle",size:"sm",children:a}),jsx(a$n,{type:"helper",size:"sm",children:c$1?.description})]})]}),t===i.collection.getLastKey()?null:jsx(a$a,{})]})};function Pn(t){return t.displayName?.trim()||t.name?.trim()||t.id}function _n({anchor:t,onClose:e,mentionLabel:n}){let{core:o}=he(),{containerRef:r,items:i,maxMentionableUsersSuggestions:l}=useContext(Dn),[s,a]=useState(""),{contains:c$1}=a$j({sensitivity:"base"}),{formatMessage:u}=b$1(),d=useRef(false),f$1=useCallback(()=>{d.current=true,e();},[e]),p=useMemo(()=>{let h=i.filter(y=>s===""||c$1(Pn(y),s)).map(y=>({id:y.id,label:Pn(y),data:y}));return l?h.slice(0,l):h},[i,l,s,c$1]),g=useCallback(h=>jsx(a$k,{textValue:h.label,children:h.label},h.id),[]),m=useCallback(h=>{if(d.current||h==null)return;let y=i.find(O=>O.id===h);y&&(f$1(),o.exec("confirmMention",{id:y.id,displayName:y.displayName??Pn(y)}),o.exec("insertText"," "),o.focus());},[f$1,o,i]),k=b$6({items:p,children:g,menuTrigger:"focus",onSelectionChange:m}),L=useCallback(h=>{if(d.current)return;f$1();let y=h==="backspace"?"":`@${k.inputValue}`;o.exec("removeMentionInput",y),o.focus();},[f$1,o,k.inputValue]),K=useRef(null),C=useRef(null),A=useRef(null),S=useRef(null);a$l({ref:S,onInteractOutside:()=>{k.close();}});let{inputProps:M,listBoxProps:V}=a$m({defaultItems:p,inputRef:C,buttonRef:K,listBoxRef:A,popoverRef:S,menuTrigger:"focus","aria-label":n??u($i.mention)},k);useLayoutEffect(()=>{C.current?.focus(),setTimeout(()=>{C.current?.focus();});},[]);let W=useCallback(h=>{let y=h.currentTarget,O=y.selectionStart===0&&y.selectionEnd===0,b=y.selectionStart===y.value.length&&y.selectionEnd===y.value.length;h.key==="Backspace"&&O?(h.preventDefault(),L("backspace")):h.key==="Escape"?L("escape"):h.key==="ArrowLeft"&&O?(h.preventDefault(),L("arrowLeft")):h.key==="ArrowRight"&&b&&(h.preventDefault(),L("arrowRight"));let ae=h.metaKey||h.ctrlKey,re=h.key.toLowerCase(),R=ae&&!h.shiftKey&&re==="z"&&o.canUndo(),$=(ae&&h.shiftKey&&re==="z"||h.ctrlKey&&re==="y")&&o.canRedo();(R||$)&&(h.preventDefault(),R?o.undo():o.redo(),f$1(),o.focus());},[L,f$1,o]),q=useMemo(()=>{if(!CSS.supports("field-sizing","content")){let h=b$2(C.current),y=C.current?h?.getComputedStyle(C.current).font:void 0;return {width:y?b$7({text:k.inputValue,font:y,element:C.current}).width+10:"4ch"}}},[k.inputValue]);return jsxs(Fragment,{children:[createPortal(jsx("input",{...c(M,{onKeyDown:W,onBlur:()=>{L("blur");},onChange:h=>{a(h.target.value);}}),style:q,className:To,ref:C}),t),jsx(b$8.Provider,{value:k,children:jsx(a$h,{triggerRef:r,isNonModal:true,ref:S,state:k,crossOffset:-2,children:jsx(c$2,{...V,items:void 0,ref:A,"data-testid":"editor-mention-listbox",className:a$5(f,sprinkles({width:"full"})),renderOption:qi})})})]})}_n.displayName="MentionInputOverlay";var $i=c$1({mention:{defaultMessage:"Mention",id:"bui.editor.mention"}});var wn=mt.forwardRef(({value:t,defaultValue:e,onChange:n,style:o,spellCheck:r,placeholder:i,isInline:l,isDisabled:s,editableContentAriaLabel:a,containerRef:c,onHelpDialogOpenRequest:u,mentionableUsers:d$1,editorHandle:f,maxMentionableUsersSuggestions:p,autoFocus:g,editorRef:m,saveOnEnter:k,onSave:L,autoLink:K,mentionLabel:C,boldLabel:A,italicLabel:S,underlineLabel:M,fontColorLabel:V,backgroundColorLabel:W,helpLabel:q,addLinkLabel:h,editLinkLabel:y,removeLinkLabel:O,linkAnnotationLabel:b,linkCancelLabel:ae,linkSaveLabel:re},R)=>{let $=useRef(null),Ne=useRef(null),{formatMessage:ge}=b$1(),[Xe,Ye]=useState(null),xt=useRef(0),[Qt,bt]=useState(false),yt=()=>{let v=Ne.current?.querySelector("[data-mention-anchor]");v&&(xt.current+=1,Ye({anchor:v,id:xt.current}));},xe=kn({value:t,defaultValue:e,onChange:n,isDisabled:s,onMentionTrigger:yt,onMentionInputRemoved:()=>{Ye(null);},canStartMention:()=>(d$1?.length??0)>0,autoLink:K}),Ze=xe.core;mt.useEffect(()=>{m&&(m.current=Ze);},[Ze,m]);let E=v=>k&&v.key==="Enter"&&!v.shiftKey||(v.ctrlKey||v.metaKey)&&v.key==="Enter"?(v.preventDefault(),L(),true):v.altKey&&v.key==="F10"?(v.preventDefault(),$.current?.querySelector("button")?.focus(),true):false,{editableProps:Et}=Mn(xe,{ref:Ne,autoFocus:g,onKeyDown:E}),Je=v=>{if(s)return;let{isLinkClick:ce,url:G}=Fo(v.target,{metaKey:v.metaKey,ctrlKey:v.ctrlKey,mac:d()});ce&&(v.preventDefault(),G&&b$2(v.currentTarget).open(G,"_blank","noopener,noreferrer"));};mt.useEffect(()=>{let v=Ne.current;if(!v||s)return;let ce=a$7(v),G=b$2(v),Te=ke=>{bt(d()?ke.metaKey:ke.ctrlKey);},tt=()=>{bt(false);};return ce.addEventListener("keydown",Te),ce.addEventListener("keyup",Te),G.addEventListener("blur",tt),()=>{ce.removeEventListener("keydown",Te),ce.removeEventListener("keyup",Te),G.removeEventListener("blur",tt),tt();}},[s]),useImperativeHandle(R,()=>({startMention:()=>{d$1?.length&&(Ne.current?.querySelector("input[role='combobox']")||(Ze.exec("insertMentionInput"),yt()));}})),useImperativeHandle(f,()=>({setCaretPosition:v=>{xe.setCaretPosition(v);},focus:()=>{xe.focus();}}));let Qe=useMemo(()=>({items:d$1||[],containerRef:c,maxMentionableUsersSuggestions:p}),[d$1,c,p]),et=xe.isEmpty;return jsx(Dn.Provider,{value:Qe,children:jsxs(Ln,{editor:xe,children:[jsxs(a$8,{className:a$5(It,"BaselineUI-Editor-RichEditorToolbar"),"aria-controls":Et.id,ref:$,children:[jsxs(a$9,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsx(Xt,{markName:"bold",icon:BoldIcon,ariaLabel:A??ge(Ge.bold),isDisabled:s}),jsx(Xt,{markName:"italic",icon:ItalicIcon,ariaLabel:S??ge(Ge.italic),isDisabled:s}),jsx(Xt,{markName:"underline",icon:UnderlineIcon,ariaLabel:M??ge(Ge.underline),isDisabled:s})]}),jsx(a$a,{orientation:"vertical",className:rt}),jsx(zn,{colorKey:"color","aria-label":V??ge(Ge.fontColor),isDisabled:s}),jsx(a$a,{orientation:"vertical",className:rt}),jsx(zn,{colorKey:"backgroundColor","aria-label":W??ge(Ge.backgroundColor),isDisabled:s}),jsx(a$a,{orientation:"vertical",className:rt}),jsx(Cr,{isDisabled:s,addLinkLabel:h,editLinkLabel:y,removeLinkLabel:O,linkAnnotationLabel:b,linkCancelLabel:ae,linkSaveLabel:re}),jsx(a$a,{orientation:"vertical",className:rt}),jsx(a$b,{className:Be,icon:QuestionmarkCircleIcon,size:"sm","aria-label":q??ge(Ge.help),"data-testid":"editor-help-button",onPress:u})]}),jsx(a$a,{variant:"secondary"}),jsxs("div",{style:{position:"relative"},children:[!!(i&&et)&&jsx("span",{"aria-hidden":true,"aria-disabled":true,"data-testid":"editor-placeholder",style:{position:"absolute",pointerEvents:"none",userSelect:"none",top:0,left:0,right:0},className:a$5(ot({isDisabled:s}),Eo,"BaselineUI-Editor-RichEditorPlaceholder"),children:i}),jsx("div",{...Et,onClick:Je,"data-mod-held":Qt?"":void 0,"aria-label":a,"aria-placeholder":i,spellCheck:r,style:o,className:a$5(ot({isDisabled:s}),_t({isInline:l}),"BaselineUI-Editor-RichEditorEditingArea")})]}),Xe!==null&&jsx(_n,{anchor:Xe.anchor,mentionLabel:C,onClose:()=>{Ye(null);}},Xe.id)]})})});wn.displayName="RichEditor";var Ge=c$1({bold:{defaultMessage:"Bold",id:"bui.editor.bold"},italic:{defaultMessage:"Italic",id:"bui.editor.italic"},underline:{defaultMessage:"Underline",id:"bui.editor.underline"},backgroundColor:{defaultMessage:"Background Color",id:"bui.editor.backgroundColor"},fontColor:{defaultMessage:"Font Color",id:"bui.editor.fontColor"},help:{defaultMessage:"Help",id:"bui.editor.help"}});var Pr=mt.memo(mt.forwardRef(({className:t,style:e,"data-block-id":n,"data-block-class":o,enableRichText:r=false,onCancel:i,onSave:l,isInline:s=true,submitButtonIcon:a=ArrowUpCircleFilledIcon,submitButtonAriaLabel:c$1,cancelButtonAriaLabel:u,"aria-label":d,"aria-describedby":f,"aria-labelledby":p,"aria-details":g,editableContentAriaLabel:m="Editing Area",footerButtons:k,clearOnCancel:L,clearOnSave:K,mentionLabel:C,boldLabel:A,italicLabel:S,underlineLabel:M,fontColorLabel:V,backgroundColorLabel:W,helpLabel:q,closeLabel:h,actionLabel:y,shortcutLabel:O,toolbarFocusLabel:b$2,selectAllLabel:ae,cutLabel:re,copyLabel:R,pasteLabel:$,undoLabel:Ne,redoLabel:ge,openHelpDialogLabel:Xe,submitLabel:Ye,addLinkLabel:xt,editLinkLabel:Qt,removeLinkLabel:bt,linkAnnotationLabel:yt,linkCancelLabel:xe,linkSaveLabel:Ze,...E},Et)=>{let Je=useRef(null),{formatMessage:Qe}=b$1(),et=useRef(null),v=useRef(null),ce=useRef(null),G=!r&&E.variant==="minimal",Te=useRef(null),[tt,ke]=mt.useState(E.value||E.defaultValue),en=E.value!==void 0&&E.onChange!==void 0;r&&E.value!==void 0&&!E.onChange&&a$c("editor-rich-value-uncontrolled","Editor: `value` without `onChange` in rich text mode sets the initial content only. Use `defaultValue` for uncontrolled content, or add `onChange` to control the value.");let Hn=E.value!==void 0&&(!r||en),tn=E.value;mt.useEffect(()=>{Hn&&tn!==void 0&&ke(tn);},[Hn,tn]);let nn=E.isDisabled||E.isSaveDisabled||!b$3(tt||""),{fieldProps:Dr}=a$d({"aria-label":d,"aria-labelledby":p,"aria-describedby":f,"aria-details":g,labelElementType:"div"});G&&!E.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let on=useCallback(()=>{ke(""),r?Je.current?.setValue("<p></p>",{emit:true}):v.current?.clear();},[r]),vt=useCallback(()=>{nn||(l?.(r?Je.current?.getValue()??"":et.current.value),K&&on());},[on,K,r,l,nn]),jn=jsx(a$b,{variant:"ghost","aria-label":c$1||Qe(On.save),icon:a,isDisabled:nn,"data-testid":"editor-save-button",size:"md",excludeFromTabOrder:G,className:a$5({[Co]:G},"BaselineUI-Editor-Save"),onPress:vt,preventFocusOnPress:true}),[_r,rn]=mt.useState(false),{keyboardProps:Ir}=a$e({onKeyDown:F=>{(F.metaKey||F.ctrlKey)&&F.shiftKey&&F.key==="h"&&(F.preventDefault(),rn(true));}}),Kn=useCallback(F=>{ke(F),E.onChange?.(F);},[E]);return jsxs("div",{...c(Dr,r?Ir:{}),role:"application",ref:b(ce,Et),style:e,"data-block-id":n,"data-block-class":o,className:a$5(yo({isInline:s,isMinimal:G}),"BaselineUI-Editor",t),"aria-disabled":E.isDisabled,children:[G?jsxs(Fragment,{children:[s?jsx(a$f,{className:bo,name:E.avatarName||""}):null,jsxs("div",{className:Lo({isInline:s}),children:[jsx(Nt,{isMinimal:G,textBoxRef:et,ref:v,isInline:s,editableContentAriaLabel:m,...E,onChange:Kn,onSave:vt}),jn]})]}):jsxs(Fragment,{children:[r?jsx(wn,{containerRef:ce,ref:Te,editorRef:Je,isInline:s,editableContentAriaLabel:m,onHelpDialogOpenRequest:()=>{rn(true);},mentionLabel:C,boldLabel:A,italicLabel:S,underlineLabel:M,fontColorLabel:V,backgroundColorLabel:W,helpLabel:q,addLinkLabel:xt,editLinkLabel:Qt,removeLinkLabel:bt,linkAnnotationLabel:yt,linkCancelLabel:xe,linkSaveLabel:Ze,...E,value:en?E.value:void 0,defaultValue:E.defaultValue??(en?void 0:E.value),onChange:Kn,onSave:vt}):jsxs(Fragment,{children:[!s&&jsx(a$a,{variant:"secondary"}),jsx(Nt,{onCancel:i,textBoxRef:et,ref:v,isInline:s,editableContentAriaLabel:m,...E,onChange:F=>{ke(F),E.onChange?.(F);},onSave:vt})]}),jsx(a$a,{variant:"secondary"}),jsxs("div",{className:a$5(It,sprinkles({justifyContent:"space-between"}),"BaselineUI-Editor-Footer"),children:[jsxs(a$9,{paddingX:"sm",gap:"sm",display:"flex",children:[r&&E.mentionableUsers?jsx(a$b,{icon:AtIcon,size:"sm","aria-label":C??Qe(On.mention),"data-testid":"editor-mention-button",onPress:()=>Te.current?.startMention(),preventFocusOnPress:true,className:"BaselineUI-Editor-Mention"}):null,k?.map(({type:F,props:Rt},Fn)=>F==="action"?jsx(a$b,{...Rt,size:"sm",isDisabled:E.isDisabled||Rt.isDisabled},Fn):jsx(a$g,{...Rt,size:"sm",variant:"tertiary",isDisabled:E.isDisabled||Rt.isDisabled},Fn))]}),jsxs(a$9,{children:[!!i&&jsx(a$b,{variant:"secondary",icon:XCircleFilledIcon,isDisabled:E.isDisabled,"data-testid":"editor-cancel-button",size:"md",onPress:()=>{i(),L&&on();},"aria-label":u||Qe(On.cancel),className:"BaselineUI-Editor-Cancel"}),jn]})]})]}),jsx(No,{isOpen:_r,onClose:()=>{rn(false);},toolbarFocusLabel:b$2,helpLabel:q,closeLabel:h,actionLabel:y,shortcutLabel:O,boldLabel:A,italicLabel:S,underlineLabel:M,selectAllLabel:ae,cutLabel:re,copyLabel:R,pasteLabel:$,undoLabel:Ne,redoLabel:ge,openHelpDialogLabel:Xe,submitLabel:Ye})]})}));Pr.displayName="Editor";var On=c$1({cancel:{defaultMessage:"Cancel",id:"bui.editor.cancel"},save:{defaultMessage:"Save",id:"bui.editor.save"},mention:{defaultMessage:"Mention",id:"bui.editor.mention"}});
29
- export{ut as a,he as b,Gt as c,kn as d,Tr as e,Mn as f,Ln as g,Pr as h};
@@ -1,10 +0,0 @@
1
- import {a as a$2}from'./chunk-AC7OXVHA.mjs';import {e}from'./chunk-B7PSE5KC.mjs';import {a as a$1}from'./chunk-FXCHST4Z.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import d from'react';import {jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var l=a$1({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610x",title:"_1yep5z610x",label:"_1yep5z610y",value:"_1yep5z610y",helper:"_1yep5z610z",body:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61lj"],[{type:"title",size:"md"},"_1yep5z61lm"],[{type:"title",size:"lg"},"_1yep5z61lp"],[{type:"body",size:"sm"},"_1yep5z61m9"],[{type:"body",size:"md"},"_1yep5z61mc"],[{type:"body",size:"lg"},"_1yep5z61mc"],[{type:"subtitle",size:"sm"},"_1yep5z61m5"],[{type:"subtitle",size:"md"},"_1yep5z61m8"],[{type:"subtitle",size:"lg"},"_1yep5z61m8"],[{type:"label",size:"md"},"_1yep5z61m7"],[{type:"label",size:"lg"},"_1yep5z61m7"],[{type:"value",size:"md"},"_1yep5z61m7"],[{type:"value",size:"lg"},"_1yep5z61m7"],[{type:"helper",size:"sm"},"_1yep5z61m1"]]});var a=d.forwardRef((e$1,i)=>{let[r,z]=e({...e$1,slot:e$1.slot??null},i,a$2),{elementType:o="span",type:n="title",children:_,size:x="md",...t}=r;return jsx(o,{...t,className:a$3(l({size:x,type:n}),"BaselineUI-Text",t.className),ref:z,children:_})});a.displayName="Text";export{a};
@@ -1,10 +0,0 @@
1
- import {a as a$1,r,d}from'./chunk-75722G3R.mjs';import {i,l}from'./chunk-SMAYNDQQ.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {createElement,useMemo}from'react';import {jsx}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var f=({children:_,listBoxProps:r$1,...e})=>jsx(a$1.Provider,{value:useMemo(()=>({items:e.items}),[e.items]),children:jsx(i,{content:jsx(l,{items:e.items,dependencies:[e.items?.[0]?.id,...d(r$1)],children:i=>createElement(r,{...r$1,key:i.id,item:i,isFirstCollectionItem:e.items?.[0]?.id===i.id})}),children:_})});var R="_1mdhlqvd _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",N=a({defaultClassName:"_1mdhlqv9",variantClassNames:{isOpen:{true:"_1mdhlqva"}},defaultVariants:{},compoundVariants:[]}),V="_1mdhlqvi",F=a({defaultClassName:"_1mdhlqve _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isVirtualized:{true:"_1mdhlqvf"}},defaultVariants:{},compoundVariants:[]}),S="_1mdhlqvc cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1 _1yep5z6137 cjv3et5",U="_1mdhlqvg",O="_1mdhlqvh _1yep5z64x _1yep5z64y _1yep5z64z _1yep5z679 _1yep5z67a _1yep5z67b _1yep5z68f _1yep5z68g _1yep5z68h _1yep5z663 _1yep5z664 _1yep5z665",D=a({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isOpen:{true:"_1mdhlqv2"},isDisabled:{true:"z9nup82 _1yep5z6ey"},isHovered:{true:"_1mdhlqv4"},variant:{primary:"_1mdhlqv5",ghost:"_1mdhlqv6"},isReadOnly:{true:"_1mdhlqv7"},areTagsVisible:{true:"_1mdhlqv8 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z6k4 _1yep5z6k5 _1yep5z6k6"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true,isReadOnly:false,isDisabled:false},"_1yep5z6h5"],[{isHovered:true,isReadOnly:false,isDisabled:false},"_1yep5z6la"]]}),P="_1yep5z66x _1yep5z66y _1yep5z66z",H="_1mdhlqvb _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k";export{f as a,R as b,N as c,V as d,F as e,S as f,U as g,O as h,D as i,P as j,H as k};
@@ -1,10 +0,0 @@
1
- import {a as a$1}from'./chunk-LZFTBNPW.mjs';import {a as a$2}from'./chunk-IW4GXU75.mjs';import {c}from'./chunk-JDLUGVXG.mjs';import {a}from'./chunk-FXCHST4Z.mjs';import {a as a$3}from'./chunk-4QEH5CGK.mjs';import M from'react';import {jsx,jsxs}from'react/jsx-runtime';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var v="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",u="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl",f=a({defaultClassName:"_12vfhl44",variantClassNames:{variant:{success:"_1yep5z611s",error:"_1yep5z611o",active:"_1yep5z6120"}},defaultVariants:{},compoundVariants:[]}),h="_1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ev _1yep5z6dy",B="_12vfhl43 _1yep5z6g5 _1yep5z6ln",b="_12vfhl42 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",C="_1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k",j=a({defaultClassName:"_12vfhl40 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dy _1yep5z6eu",variantClassNames:{hasLabel:{false:"_1yep5z6pi _1yep5z6pj _1yep5z6pk"}},defaultVariants:{},compoundVariants:[]});var k=M.forwardRef(({className:x,style:N,variant:p="active",showValue:l,description:t,errorMessage:P,"data-block-id":V,"data-block-class":T,...s},H)=>{let y=c(),{labelProps:L,progressBarProps:_}=a$1({...s,"aria-describedby":t?y:s["aria-describedby"]}),{minValue:i=0,maxValue:W=100,value:I=0,label:r}=s,R=(I-i)/(W-i),E=`${Math.round(R*100)}%`,z=jsx("output",{className:j({hasLabel:!!r}),children:_["aria-valuetext"]}),n=p==="error"?P:t;return jsxs("div",{..._,style:N,className:a$3(v,"BaselineUI-ProgressBar",x),"data-block-id":V,"data-block-class":T,ref:H,children:[r?jsxs("div",{className:u,children:[jsx("label",{...L,className:h,children:r}),l?z:null]}):null,jsxs("div",{className:C,children:[jsxs("div",{className:b,children:[jsx("div",{className:B,children:jsx("div",{style:{width:E},className:f({variant:p})})}),!r&&l?z:null]}),n?jsx("div",{className:a$2({hasError:p==="error"}),id:y,children:n}):null]})]})});k.displayName="ProgressBar";export{k as a};
@@ -1,10 +0,0 @@
1
- import {a}from'./chunk-FXCHST4Z.mjs';/**
2
- * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
- *
4
- * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
5
- * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
6
- * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
7
- * This notice may not be removed from this file.
8
- *
9
- */
10
- var t="uf19bsf _1yep5z6la",o=a({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6lp _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lk z9nup8a",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z611a"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8",popover:"uf19bse _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z6vr _1yep5z6vs _1yep5z6vt"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"primary",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"secondary",isHovered:true,isFocusVisible:false},"_1yep5z61nc"],[{variant:"tertiary",isHovered:true,isFocusVisible:false},"_1yep5z61nb _1yep5z61o9"],[{variant:"ghost",isHovered:true,isFocusVisible:false},"_1yep5z61nh"],[{variant:"popover",isHovered:true,isFocusVisible:false},"_1yep5z61q6 _1yep5z61tx _1yep5z61u1 _1yep5z61ty"],[{variant:"ghost",isDisabled:false},"_1yep5z61ng"],[{variant:"popover",size:"lg"},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"]]});export{t as a,o as b};