@apple-pie/slice 0.1.32 → 0.1.33

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 (257) hide show
  1. package/dist/cjs/chunks/{AudioBubble-Dh2IlYW0.js → AudioBubble-_eYM1QMu.js} +4 -3
  2. package/dist/cjs/chunks/{Avatar-WcBAu25_.js → Avatar-DTro_MXZ.js} +1 -1
  3. package/dist/cjs/chunks/{AvatarGroup-eUkVdeTf.js → AvatarGroup-OPJJ_Te5.js} +1 -1
  4. package/dist/cjs/chunks/{Badge-4tBynWZe.js → Badge-DWUeXxm2.js} +1 -1
  5. package/dist/cjs/chunks/{Button-QJ5lsSAz.js → Button-CuGvPAkH.js} +1 -1
  6. package/dist/cjs/chunks/{ButtonBar-DcpvT1vD.js → ButtonBar-CbXToyfD.js} +1 -1
  7. package/dist/cjs/chunks/{Camera-iDyPLq9h.js → Camera-DjENiyud.js} +5 -4
  8. package/dist/cjs/chunks/{CheckBox-CmZJd8u2.js → CheckBox-DiJpbdy5.js} +1 -1
  9. package/dist/cjs/chunks/{Chip-Bd1bSYeC.js → Chip-kzOvEo0P.js} +1 -1
  10. package/dist/cjs/chunks/{DivInput-BY9pQ6ty.js → DivInput-B917fKB9.js} +1 -1
  11. package/dist/cjs/chunks/{Dot-BeWDLajy.js → Dot-DaRF2JyO.js} +1 -1
  12. package/dist/cjs/chunks/{DrggablePanel-DzY5wTco.js → DrggablePanel-CJTEmYW6.js} +4 -3
  13. package/dist/cjs/chunks/{DropDown-Cn_nX8u7.js → DropDown-DRSQvXCC.js} +1 -1
  14. package/dist/cjs/chunks/{ErrorSummary-D-0uVwyV.js → ErrorSummary-ltiIsgJ6.js} +4 -3
  15. package/dist/cjs/chunks/{FileIcon-JfY2AYqG.js → FileIcon-WIVOTJLa.js} +5 -3
  16. package/dist/cjs/chunks/{FileList-Dc1nfpR2.js → FileList-CzQZZErI.js} +1 -1
  17. package/dist/cjs/chunks/{FlexDiv-B5Pi0-aJ.js → FlexDiv-CBENyLT4.js} +1 -1
  18. package/dist/cjs/chunks/{Grouper-DKZkTlow.js → Grouper-Cd3AJEFv.js} +4 -3
  19. package/dist/cjs/chunks/{Icon-BVYVJp9J.js → Icon-DjvProjz.js} +4 -3
  20. package/dist/cjs/chunks/{IconButton-CP1Wsvsx.js → IconButton-BuwQLUuj.js} +1 -1
  21. package/dist/cjs/chunks/{IndexedDB-CeiVT55Z.js → IndexedDB-Ddhq6Gjd.js} +1 -1
  22. package/dist/cjs/chunks/{Label-DIs1rOey.js → Label-d32ENzwL.js} +1 -1
  23. package/dist/cjs/chunks/{Level-3yxetsco.js → Level-B8eT8XyV.js} +1 -1
  24. package/dist/cjs/chunks/{Modal-CjpQdoOe.js → Modal-CUAj4e6x.js} +1 -1
  25. package/dist/cjs/chunks/ModalController-BwFAVI5G.js +80 -0
  26. package/dist/cjs/chunks/{Overlay-DRpHYZek.js → Overlay-CaAA3ey5.js} +1 -1
  27. package/dist/cjs/chunks/{Pager-ChnTKwml.js → Pager-uExZ5E3x.js} +1 -1
  28. package/dist/cjs/chunks/{ProgressIndicator-CFiAU-aF.js → ProgressIndicator-DwqslY4o.js} +4 -3
  29. package/dist/cjs/chunks/{PromptInput-BFWR0TaP.js → PromptInput-Dl8l8cZv.js} +34 -30
  30. package/dist/cjs/chunks/{RadioButton-Bi-FP41j.js → RadioButton-DPpAOFQt.js} +1 -1
  31. package/dist/cjs/chunks/{RadioButtonList-JHPKMCoX.js → RadioButtonList-IbPA6A3y.js} +1 -1
  32. package/dist/cjs/chunks/{Slider-D97ws1Cl.js → Slider-D5oa7NGy.js} +1 -1
  33. package/dist/cjs/chunks/{Spacer-DvI2M1wZ.js → Spacer-DtUh2VLv.js} +1 -1
  34. package/dist/cjs/chunks/{Switch-DDSSprb7.js → Switch-Bs0r5va5.js} +1 -1
  35. package/dist/cjs/chunks/{TabBar-TllSeSzb.js → TabBar-BCSTg_Uc.js} +4 -3
  36. package/dist/cjs/chunks/{TextArea-DjZRDixt.js → TextArea-Dj7jsvVr.js} +1 -1
  37. package/dist/cjs/chunks/{TextField-CKA3K0AN.js → TextField-DNP0wJla.js} +5 -4
  38. package/dist/cjs/chunks/{Tip-BdGXN-TQ.js → Tip-awq6PDZa.js} +1 -1
  39. package/dist/cjs/chunks/{Toast-COrDS_50.js → Toast-xS1TC3Ba.js} +5 -4
  40. package/dist/cjs/chunks/{ToggleButton-hoOMzBZc.js → ToggleButton-CqD5c6JA.js} +4 -3
  41. package/dist/cjs/chunks/{UploadArea-ClG8ZgRZ.js → UploadArea-CvWqk8YK.js} +1 -1
  42. package/dist/cjs/chunks/{WSConnection-Brxc2hEv.js → WSConnection-BACWw4TS.js} +1 -1
  43. package/dist/cjs/chunks/{WebRTCConnection-eWP4lueC.js → WebRTCConnection-DBeyg4j9.js} +1 -1
  44. package/dist/cjs/chunks/{localDBStore-SS_r0C6F.js → localDBStore-wgCc1SmV.js} +1 -1
  45. package/dist/cjs/chunks/{microphoneStore-DM_8bhFr.js → microphoneStore-Dy5TwE2I.js} +1 -1
  46. package/dist/cjs/chunks/{misc-4xyXRU2K.js → misc-BwQIEIuF.js} +1 -1
  47. package/dist/cjs/chunks/{sseStore-Ag-UnuQq.js → sseStore-CFFaYonG.js} +2 -2
  48. package/dist/cjs/chunks/{uploads-worker-CI-SZptI.js → uploads-worker-DWvOe9F8.js} +1 -1
  49. package/dist/cjs/chunks/{uploadsStore-DR2hc4ct.js → uploadsStore-BCmts7Ie.js} +2 -2
  50. package/dist/cjs/chunks/{volumeStore-DtTHf-9_.js → volumeStore-BXFAQhvS.js} +1 -1
  51. package/dist/cjs/chunks/{webRTCStore-DWWn7k-0.js → webRTCStore-DRjvbnve.js} +1 -1
  52. package/dist/cjs/chunks/{windowStore-BUo9Du_e.js → windowStore-C4Bg6I9i.js} +1 -1
  53. package/dist/cjs/components/AudioBubble/index.js +6 -4
  54. package/dist/cjs/components/Avatar/index.js +3 -3
  55. package/dist/cjs/components/AvatarGroup/index.js +3 -3
  56. package/dist/cjs/components/Badge/index.js +2 -2
  57. package/dist/cjs/components/Button/index.js +9 -7
  58. package/dist/cjs/components/ButtonBar/index.js +6 -4
  59. package/dist/cjs/components/Camera/index.js +7 -5
  60. package/dist/cjs/components/CheckBox/index.js +6 -4
  61. package/dist/cjs/components/Chip/index.js +7 -5
  62. package/dist/cjs/components/DivInput/index.js +3 -3
  63. package/dist/cjs/components/Dot/index.js +2 -2
  64. package/dist/cjs/components/DraggablePanel/index.js +5 -3
  65. package/dist/cjs/components/DropDown/index.js +6 -4
  66. package/dist/cjs/components/ErrorSummary/index.js +5 -3
  67. package/dist/cjs/components/FileIcon/index.js +5 -3
  68. package/dist/cjs/components/FileList/index.js +7 -5
  69. package/dist/cjs/components/FlexDiv/index.js +2 -2
  70. package/dist/cjs/components/Grouper/index.js +7 -5
  71. package/dist/cjs/components/Icon/index.js +5 -3
  72. package/dist/cjs/components/IconButton/index.js +8 -6
  73. package/dist/cjs/components/Label/index.js +3 -3
  74. package/dist/cjs/components/Level/index.js +3 -3
  75. package/dist/cjs/components/Modal/index.js +10 -8
  76. package/dist/cjs/components/ModalController/index.js +6 -4
  77. package/dist/cjs/components/Overlay/index.js +2 -2
  78. package/dist/cjs/components/Pager/index.js +3 -3
  79. package/dist/cjs/components/Progress/index.js +5 -3
  80. package/dist/cjs/components/PromptInput/index.js +9 -7
  81. package/dist/cjs/components/RadioButton/index.js +6 -4
  82. package/dist/cjs/components/RadioButtonList/index.js +7 -5
  83. package/dist/cjs/components/Slider/index.js +4 -4
  84. package/dist/cjs/components/Spacer/index.js +2 -2
  85. package/dist/cjs/components/Switch/index.js +2 -2
  86. package/dist/cjs/components/TabBar/index.js +8 -6
  87. package/dist/cjs/components/TextArea/index.js +9 -7
  88. package/dist/cjs/components/Textfield/index.js +9 -7
  89. package/dist/cjs/components/Tip/index.js +3 -3
  90. package/dist/cjs/components/Toast/index.js +6 -4
  91. package/dist/cjs/components/ToggleButton/index.js +9 -7
  92. package/dist/cjs/components/UploadArea/index.js +11 -10
  93. package/dist/cjs/hooks/useAudioRecorder.js +1 -1
  94. package/dist/cjs/hooks/useBindWebRTC.js +2 -2
  95. package/dist/cjs/hooks/useMdStreamBuffer.js +1 -1
  96. package/dist/cjs/hooks/useMicrophone.js +1 -1
  97. package/dist/cjs/hooks/useTrackRenders.js +2 -2
  98. package/dist/cjs/hooks.js +3 -3
  99. package/dist/cjs/index.js +8 -9
  100. package/dist/cjs/stores/LocalDB.js +3 -3
  101. package/dist/cjs/stores/SSE.js +2 -2
  102. package/dist/cjs/stores/WS.js +2 -2
  103. package/dist/cjs/stores/WebRTC.js +2 -2
  104. package/dist/cjs/stores/microphone.js +2 -2
  105. package/dist/cjs/stores/modal.js +1 -1
  106. package/dist/cjs/stores/tip.js +1 -1
  107. package/dist/cjs/stores/toast.js +1 -1
  108. package/dist/cjs/stores/uploads.js +2 -2
  109. package/dist/cjs/stores/volume.js +2 -2
  110. package/dist/cjs/stores/window.js +2 -2
  111. package/dist/cjs/stores.js +31 -31
  112. package/dist/cjs/utils/index.js +2 -2
  113. package/dist/cjs/utils/objects/index.js +2 -2
  114. package/dist/cjs/workers/uploads/uploads.js +2 -2
  115. package/dist/esm/chunks/{AudioBubble-cYlxxQ7c.mjs → AudioBubble-SB1LCBlJ.mjs} +9 -3
  116. package/dist/esm/chunks/{Avatar-D84wF2os.mjs → Avatar-B6PcVOmT.mjs} +2 -2
  117. package/dist/esm/chunks/{AvatarGroup-DiwfbRxH.mjs → AvatarGroup-DEb3j2IZ.mjs} +2 -2
  118. package/dist/esm/chunks/{Badge-DuUb5-80.mjs → Badge-bh5UVUnt.mjs} +1 -1
  119. package/dist/esm/chunks/{Button-BIgwWrPJ.mjs → Button-CWKs3uAV.mjs} +6 -6
  120. package/dist/esm/chunks/{ButtonBar-vNvnvw7u.mjs → ButtonBar-CWeMhkSb.mjs} +3 -3
  121. package/dist/esm/chunks/{Camera-BMwkTJPq.mjs → Camera-BmuMA9xY.mjs} +11 -5
  122. package/dist/esm/chunks/{CheckBox-Cpoxy8w_.mjs → CheckBox-BR6a2n0j.mjs} +3 -3
  123. package/dist/esm/chunks/{Chip-BayNVv7N.mjs → Chip-DXW0jxKf.mjs} +4 -4
  124. package/dist/esm/chunks/{DivInput-CWRUxy1y.mjs → DivInput-BWO1EJXA.mjs} +2 -2
  125. package/dist/esm/chunks/{Dot-v_kcIWV2.mjs → Dot-DMst-5Q2.mjs} +1 -1
  126. package/dist/esm/chunks/{DrggablePanel-yEeGeE1w.mjs → DrggablePanel-qxrCS7Ot.mjs} +8 -2
  127. package/dist/esm/chunks/{DropDown-QQhwAg_J.mjs → DropDown-DlO2J4QP.mjs} +3 -3
  128. package/dist/esm/chunks/{ErrorSummary-DzIZMIll.mjs → ErrorSummary-BplQFunJ.mjs} +8 -2
  129. package/dist/esm/chunks/{FileIcon-6UlkbKzk.mjs → FileIcon-iFmAF7_a.mjs} +8 -2
  130. package/dist/esm/chunks/{FileList-vMiGJByw.mjs → FileList-CztHFCJe.mjs} +5 -5
  131. package/dist/esm/chunks/{FlexDiv-B1m7aY04.mjs → FlexDiv-DGmDZL7M.mjs} +1 -1
  132. package/dist/esm/chunks/{Grouper-BDrAnfDF.mjs → Grouper-DxOISLzH.mjs} +9 -3
  133. package/dist/esm/chunks/{Icon-D4A6_c4x.mjs → Icon-L8B35JN1.mjs} +8 -2
  134. package/dist/esm/chunks/{IconButton-B_W-aOsB.mjs → IconButton-DxwJemEK.mjs} +5 -5
  135. package/dist/esm/chunks/{IndexedDB-CTqfKmp1.mjs → IndexedDB-DA5oZXju.mjs} +1 -1
  136. package/dist/esm/chunks/{Label-I75yz3gq.mjs → Label-wDPtyK4h.mjs} +2 -2
  137. package/dist/esm/chunks/{Level-DgczkKBr.mjs → Level-B9JayinM.mjs} +3 -3
  138. package/dist/esm/chunks/{Modal-CwwyijaO.mjs → Modal-C-Q2A_RY.mjs} +5 -5
  139. package/dist/esm/chunks/ModalController-ClAjHLPb.mjs +91 -0
  140. package/dist/esm/chunks/{Overlay-C-yori3-.mjs → Overlay-Dr9YYxJ6.mjs} +1 -1
  141. package/dist/esm/chunks/{Pager-BEtfyKtq.mjs → Pager-DPbTCMNe.mjs} +2 -2
  142. package/dist/esm/chunks/{ProgressIndicator-BV0ginXb.mjs → ProgressIndicator-HaJJDZ-m.mjs} +8 -2
  143. package/dist/esm/chunks/{PromptInput-Cn5fRYap.mjs → PromptInput-wGhpXw-h.mjs} +38 -31
  144. package/dist/esm/chunks/{RadioButton-DWlg6ldv.mjs → RadioButton-oOGgTDhg.mjs} +3 -3
  145. package/dist/esm/chunks/{RadioButtonList-D9FdlhPL.mjs → RadioButtonList-CDWKVvyL.mjs} +3 -3
  146. package/dist/esm/chunks/{Slider-B2WZkZSg.mjs → Slider-ioPGftDY.mjs} +3 -3
  147. package/dist/esm/chunks/{Spacer-7Oj0SlD0.mjs → Spacer-VJBjxVlr.mjs} +1 -1
  148. package/dist/esm/chunks/{Switch-DRhnznnO.mjs → Switch-BCk2sTh3.mjs} +1 -1
  149. package/dist/esm/chunks/{TabBar-D6VR71ye.mjs → TabBar-C1DYnCRx.mjs} +11 -5
  150. package/dist/esm/chunks/{TextArea-CkB5rJjI.mjs → TextArea-CF3r5m2G.mjs} +2 -2
  151. package/dist/esm/chunks/{TextField-BIXmkjEz.mjs → TextField-BNfTj9v2.mjs} +11 -5
  152. package/dist/esm/chunks/{Tip-CTdrwLky.mjs → Tip-DIKQvxxO.mjs} +2 -2
  153. package/dist/esm/chunks/{Toast-8bUziIgh.mjs → Toast-CkXPrDpp.mjs} +10 -4
  154. package/dist/esm/chunks/{ToggleButton-BOFITa8_.mjs → ToggleButton-Dvy8fc4t.mjs} +5 -4
  155. package/dist/esm/chunks/{UploadArea-DE2ccDVx.mjs → UploadArea-D_xGzR2e.mjs} +4 -4
  156. package/dist/esm/chunks/{WSConnection-CHudrD62.mjs → WSConnection-TiYLENWB.mjs} +1 -1
  157. package/dist/esm/chunks/{WebRTCConnection-DQbNa7Z9.mjs → WebRTCConnection-d0Yvd66q.mjs} +1 -1
  158. package/dist/esm/chunks/{localDBStore-CaYiqITY.mjs → localDBStore-C-5y16uv.mjs} +2 -2
  159. package/dist/esm/chunks/{microphoneStore-COEGtgyX.mjs → microphoneStore-Cbx9nV4R.mjs} +1 -1
  160. package/dist/esm/chunks/{misc-2MIIqzsX.mjs → misc-zecH7-IH.mjs} +1 -1
  161. package/dist/esm/chunks/{sseStore-nW9CMec_.mjs → sseStore-DIquUNpm.mjs} +2 -2
  162. package/dist/esm/chunks/{uploads-worker-CMomtRvm.mjs → uploads-worker-CUggKU9b.mjs} +1 -1
  163. package/dist/esm/chunks/{uploadsStore-CsfpSOTS.mjs → uploadsStore-9QngohOe.mjs} +1 -1
  164. package/dist/esm/chunks/{volumeStore-TSYPqbHx.mjs → volumeStore-BrgZCRKF.mjs} +1 -1
  165. package/dist/esm/chunks/{webRTCStore-CVCDJzj5.mjs → webRTCStore-DhFE9-bb.mjs} +2 -2
  166. package/dist/esm/chunks/{windowStore-BvejIR82.mjs → windowStore-BKW7HyoD.mjs} +1 -1
  167. package/dist/esm/components/AudioBubble/index.mjs +14 -4
  168. package/dist/esm/components/Avatar/index.mjs +3 -3
  169. package/dist/esm/components/AvatarGroup/index.mjs +4 -4
  170. package/dist/esm/components/Badge/index.mjs +2 -2
  171. package/dist/esm/components/Button/index.mjs +18 -8
  172. package/dist/esm/components/ButtonBar/index.mjs +14 -4
  173. package/dist/esm/components/Camera/index.mjs +16 -6
  174. package/dist/esm/components/CheckBox/index.mjs +14 -4
  175. package/dist/esm/components/Chip/index.mjs +15 -5
  176. package/dist/esm/components/DivInput/index.mjs +3 -3
  177. package/dist/esm/components/Dot/index.mjs +2 -2
  178. package/dist/esm/components/DraggablePanel/index.mjs +13 -3
  179. package/dist/esm/components/DropDown/index.mjs +14 -4
  180. package/dist/esm/components/ErrorSummary/index.mjs +13 -3
  181. package/dist/esm/components/FileIcon/index.mjs +13 -3
  182. package/dist/esm/components/FileList/index.mjs +16 -6
  183. package/dist/esm/components/FlexDiv/index.mjs +2 -2
  184. package/dist/esm/components/Grouper/index.mjs +15 -5
  185. package/dist/esm/components/Icon/index.mjs +14 -4
  186. package/dist/esm/components/IconButton/index.mjs +17 -7
  187. package/dist/esm/components/Label/index.mjs +3 -3
  188. package/dist/esm/components/Level/index.mjs +4 -4
  189. package/dist/esm/components/Modal/index.mjs +20 -10
  190. package/dist/esm/components/ModalController/index.mjs +14 -6
  191. package/dist/esm/components/Overlay/index.mjs +2 -2
  192. package/dist/esm/components/Pager/index.mjs +3 -3
  193. package/dist/esm/components/Progress/index.mjs +14 -4
  194. package/dist/esm/components/PromptInput/index.mjs +22 -12
  195. package/dist/esm/components/RadioButton/index.mjs +14 -4
  196. package/dist/esm/components/RadioButtonList/index.mjs +15 -5
  197. package/dist/esm/components/Slider/index.mjs +4 -4
  198. package/dist/esm/components/Spacer/index.mjs +2 -2
  199. package/dist/esm/components/Switch/index.mjs +2 -2
  200. package/dist/esm/components/TabBar/index.mjs +18 -8
  201. package/dist/esm/components/TextArea/index.mjs +19 -9
  202. package/dist/esm/components/Textfield/index.mjs +20 -10
  203. package/dist/esm/components/Tip/index.mjs +3 -3
  204. package/dist/esm/components/Toast/index.mjs +15 -5
  205. package/dist/esm/components/ToggleButton/index.mjs +19 -9
  206. package/dist/esm/components/UploadArea/index.mjs +19 -9
  207. package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
  208. package/dist/esm/hooks/useBindWebRTC.mjs +5 -5
  209. package/dist/esm/hooks/useMdStreamBuffer.mjs +2 -2
  210. package/dist/esm/hooks/useMicrophone.mjs +1 -1
  211. package/dist/esm/hooks/useTrackRenders.mjs +2 -2
  212. package/dist/esm/hooks.mjs +6 -6
  213. package/dist/esm/index.mjs +53 -53
  214. package/dist/esm/stores/LocalDB.mjs +3 -3
  215. package/dist/esm/stores/SSE.mjs +3 -3
  216. package/dist/esm/stores/WS.mjs +2 -2
  217. package/dist/esm/stores/WebRTC.mjs +3 -3
  218. package/dist/esm/stores/microphone.mjs +2 -2
  219. package/dist/esm/stores/modal.mjs +1 -1
  220. package/dist/esm/stores/tip.mjs +1 -1
  221. package/dist/esm/stores/toast.mjs +1 -1
  222. package/dist/esm/stores/uploads.mjs +3 -3
  223. package/dist/esm/stores/volume.mjs +2 -2
  224. package/dist/esm/stores/window.mjs +2 -2
  225. package/dist/esm/stores.mjs +17 -17
  226. package/dist/esm/utils/index.mjs +10 -10
  227. package/dist/esm/utils/objects/index.mjs +7 -7
  228. package/dist/esm/workers/uploads/uploads.mjs +2 -2
  229. package/dist/styles.css +25 -2
  230. package/dist/types/components/PromptInput/PromptInput.d.ts +10 -2
  231. package/dist/types/components/PromptInput/_types.d.ts +5 -1
  232. package/dist/types/components/ToggleButton/_types.d.ts +1 -0
  233. package/package.json +1 -1
  234. package/dist/cjs/chunks/ModalController-Cp2PXOOS.js +0 -68
  235. package/dist/esm/chunks/ModalController-IyB9lDRa.mjs +0 -76
  236. /package/dist/cjs/chunks/{MdStreamBuffer-BudWFoNw.js → MdStreamBuffer-Chwibu07.js} +0 -0
  237. /package/dist/cjs/chunks/{SSEConnection-DfjLAlOG.js → SSEConnection-CF5WZG9b.js} +0 -0
  238. /package/dist/cjs/chunks/{_types-DMyBIF8s.js → _types-BTdDWVYI.js} +0 -0
  239. /package/dist/cjs/chunks/{audioVisualizer-BxPvUj4h.js → audioVisualizer-C7fMG0WH.js} +0 -0
  240. /package/dist/cjs/chunks/{colors-4n0sNFRA.js → colors-CmOkcjB3.js} +0 -0
  241. /package/dist/cjs/chunks/{debounce-_IK-La-Z.js → debounce-BtCCTkbG.js} +0 -0
  242. /package/dist/cjs/chunks/{modalStore-CFsfK3ba.js → modalStore-CaQkdY5_.js} +0 -0
  243. /package/dist/cjs/chunks/{sharedTypes-C0ZHzH_T.js → sharedTypes-BOieqpQy.js} +0 -0
  244. /package/dist/cjs/chunks/{tipStore-dqD9-c30.js → tipStore-4Bs9v2sg.js} +0 -0
  245. /package/dist/cjs/chunks/{toastStore-BN1N7WXv.js → toastStore-CyCE9-lr.js} +0 -0
  246. /package/dist/cjs/chunks/{tslib.es6-DsF7Wv4Y.js → tslib.es6-DqjaJVC3.js} +0 -0
  247. /package/dist/esm/chunks/{MdStreamBuffer-CoQWQwRL.mjs → MdStreamBuffer-Cyon3ytf.mjs} +0 -0
  248. /package/dist/esm/chunks/{SSEConnection-iFKOV9Uo.mjs → SSEConnection-g0GBGAqe.mjs} +0 -0
  249. /package/dist/esm/chunks/{_types-DrNviSG6.mjs → _types-9ekyeJYl.mjs} +0 -0
  250. /package/dist/esm/chunks/{audioVisualizer-BsmpLZyK.mjs → audioVisualizer-nMo67yOW.mjs} +0 -0
  251. /package/dist/esm/chunks/{colors-BAATtfbL.mjs → colors-v5b8_oYV.mjs} +0 -0
  252. /package/dist/esm/chunks/{debounce-CYBH5qXQ.mjs → debounce-DFxAyrPi.mjs} +0 -0
  253. /package/dist/esm/chunks/{modalStore-DmaeMv7z.mjs → modalStore-D6_oc47l.mjs} +0 -0
  254. /package/dist/esm/chunks/{sharedTypes-CyrInj1b.mjs → sharedTypes-CdmzhKXN.mjs} +0 -0
  255. /package/dist/esm/chunks/{tipStore-B_MUZfr2.mjs → tipStore-C2M6zBzd.mjs} +0 -0
  256. /package/dist/esm/chunks/{toastStore-DAprlBVj.mjs → toastStore-B-6kdNHw.mjs} +0 -0
  257. /package/dist/esm/chunks/{tslib.es6-C81Qhn1z.mjs → tslib.es6-CVvvNSPr.mjs} +0 -0
@@ -1,17 +1,17 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useCallback, useMemo } from "react";
7
7
 
8
- import { s as setStyle, a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
8
+ import { s as setStyle, a as accessibleKeyDown } from "./misc-zecH7-IH.mjs";
9
9
 
10
- import { F as FileIcon } from "./FileIcon-6UlkbKzk.mjs";
10
+ import { F as FileIcon } from "./FileIcon-iFmAF7_a.mjs";
11
11
 
12
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
12
+ import { I as Icon } from "./Icon-L8B35JN1.mjs";
13
13
 
14
- import { P as ProgressIndicator } from "./ProgressIndicator-BV0ginXb.mjs";
14
+ import { P as ProgressIndicator } from "./ProgressIndicator-HaJJDZ-m.mjs";
15
15
 
16
16
  /**
17
17
  * Split a file name into its display name and extension.
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -11,11 +11,17 @@ import { useTheme } from "../hooks/useTheme.mjs";
11
11
 
12
12
  import "../theme/colors.mjs";
13
13
 
14
+ import "./webRTCStore-DhFE9-bb.mjs";
15
+
16
+ import "./microphoneStore-Cbx9nV4R.mjs";
17
+
18
+ import "./volumeStore-BrgZCRKF.mjs";
19
+
14
20
  import "../hooks/useWindow.mjs";
15
21
 
16
- import { B as Badge } from "./Badge-DuUb5-80.mjs";
22
+ import { B as Badge } from "./Badge-bh5UVUnt.mjs";
17
23
 
18
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
24
+ import { I as Icon } from "./Icon-L8B35JN1.mjs";
19
25
 
20
26
  var css_header = "Grouper-module_header__D5fV0 flexBox-module_rowBetween__5FEvi", css_title = "Grouper-module_title__ZKqTP flexBox-module_rowBetween__5FEvi type-module_body-m-regular__LuQBA", css_content = "Grouper-module_content__Mof50 flexBox-module_rowBetween__5FEvi", css_icon = "Grouper-module_icon__14Jis flexBox-module_row__z24tF";
21
27
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
5
5
 
@@ -9,7 +9,13 @@ import { useTheme } from "../hooks/useTheme.mjs";
9
9
 
10
10
  import "../theme/colors.mjs";
11
11
 
12
- import { a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
12
+ import { a as accessibleKeyDown } from "./misc-zecH7-IH.mjs";
13
+
14
+ import "./webRTCStore-DhFE9-bb.mjs";
15
+
16
+ import "./microphoneStore-Cbx9nV4R.mjs";
17
+
18
+ import "./volumeStore-BrgZCRKF.mjs";
13
19
 
14
20
  import "../hooks/useWindow.mjs";
15
21
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
@@ -7,13 +7,13 @@ import { motion } from "motion/react";
7
7
 
8
8
  import React, { useRef, useState, useEffect, useCallback, useMemo } from "react";
9
9
 
10
- import { B as Badge } from "./Badge-DuUb5-80.mjs";
10
+ import { B as Badge } from "./Badge-bh5UVUnt.mjs";
11
11
 
12
- import { D as Dot } from "./Dot-v_kcIWV2.mjs";
12
+ import { D as Dot } from "./Dot-DMst-5Q2.mjs";
13
13
 
14
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
14
+ import { I as Icon } from "./Icon-L8B35JN1.mjs";
15
15
 
16
- import { T as ToolTipType } from "./sharedTypes-CyrInj1b.mjs";
16
+ import { T as ToolTipType } from "./sharedTypes-CdmzhKXN.mjs";
17
17
 
18
18
  var css_button = "IconButton-module_button__rziqa flexBox-module_row__z24tF", css_label = "IconButton-module_label__qWGFD flexBox-module_row__z24tF type-module_body-l-regular__lOYbg", css_icon = "IconButton-module_icon__2DDWy flexBox-module_row__z24tF", css_count = "IconButton-module_count__6r373 flexBox-module_row__z24tF";
19
19
 
@@ -1,4 +1,4 @@
1
- import { a as __awaiter } from "./tslib.es6-C81Qhn1z.mjs";
1
+ import { a as __awaiter } from "./tslib.es6-CVvvNSPr.mjs";
2
2
 
3
3
  class IndexedDB {
4
4
  constructor(storeName, options = {}) {
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
6
6
  import { useCallback, useMemo } from "react";
7
7
 
8
- import { s as setStyle } from "./misc-2MIIqzsX.mjs";
8
+ import { s as setStyle } from "./misc-zecH7-IH.mjs";
9
9
 
10
10
  var LabelBackground, css = {
11
11
  label: "Label-module_label__RaRvM",
@@ -1,12 +1,12 @@
1
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
1
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
2
2
 
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
5
5
  import React, { useRef, useState, useMemo, useEffect } from "react";
6
6
 
7
- import { s as setStyle } from "./misc-2MIIqzsX.mjs";
7
+ import { s as setStyle } from "./misc-zecH7-IH.mjs";
8
8
 
9
- import { A as AudioVisualizer } from "./audioVisualizer-BsmpLZyK.mjs";
9
+ import { A as AudioVisualizer } from "./audioVisualizer-nMo67yOW.mjs";
10
10
 
11
11
  var css_wrapper = "Level-module_wrapper__yOfXw", css_barContainer = "Level-module_barContainer__QMUdv", css_bar = "Level-module_bar__MnApX";
12
12
 
@@ -1,17 +1,17 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useRef, useState, useCallback, useMemo, useEffect } from "react";
7
7
 
8
- import { s as setStyle } from "./misc-2MIIqzsX.mjs";
8
+ import { s as setStyle } from "./misc-zecH7-IH.mjs";
9
9
 
10
- import { B as Button } from "./Button-BIgwWrPJ.mjs";
10
+ import { B as Button } from "./Button-CWKs3uAV.mjs";
11
11
 
12
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
12
+ import { I as Icon } from "./Icon-L8B35JN1.mjs";
13
13
 
14
- import { I as IconButton } from "./IconButton-B_W-aOsB.mjs";
14
+ import { I as IconButton } from "./IconButton-DxwJemEK.mjs";
15
15
 
16
16
  var css = {
17
17
  wrapper: "Modal-module_wrapper__34Hds flexBox-module_columnBetween__ERfp7",
@@ -0,0 +1,91 @@
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+
3
+ import { useDragControls, AnimatePresence, motion } from "motion/react";
4
+
5
+ import { useRef } from "react";
6
+
7
+ import "./microphoneStore-Cbx9nV4R.mjs";
8
+
9
+ import "./volumeStore-BrgZCRKF.mjs";
10
+
11
+ import "./webRTCStore-DhFE9-bb.mjs";
12
+
13
+ import { O as Overlay } from "./Overlay-Dr9YYxJ6.mjs";
14
+
15
+ import { u as useModal, a as useModalActions } from "./modalStore-D6_oc47l.mjs";
16
+
17
+ var css_container = "ModalController-module_container__3cSaO", css_box = "ModalController-module_box__cPzOz", css_wrapper = "ModalController-module_wrapper__HkOoX flexBox-module_row__z24tF";
18
+
19
+ const defaultTransition = {
20
+ ease: "easeOut",
21
+ duration: .25,
22
+ delay: .1
23
+ }, defaultVariants = {
24
+ initial: {
25
+ opacity: 0,
26
+ y: 20
27
+ },
28
+ animate: {
29
+ opacity: 1,
30
+ y: 0
31
+ },
32
+ exit: {
33
+ opacity: 0,
34
+ y: 20
35
+ }
36
+ };
37
+
38
+ function ModalController(props) {
39
+ const {dragConstraintsRef: dragConstraintsRef, transition: transition = defaultTransition, variants: variants = defaultVariants, initial: initial = "initial", animate: animate = "animate", exit: exit = "exit", draggable: draggable = !0, overlayOpacity: overlayOpacity = .7, overlayColor: overlayColor = "rgb(0,0,0)"} = props, controls = useDragControls(), modal = useModal(), resolve = useModalActions().resolve, reject = useModalActions().reject, hide = useModalActions().hide, ModalComponent = null == modal ? void 0 : modal.component, modalProps = null == modal ? void 0 : modal.props, ref = useRef(null), constraints = null != dragConstraintsRef ? dragConstraintsRef : ref;
40
+ return jsxs(Fragment, {
41
+ children: [ jsx(Overlay, {
42
+ show: !!modal,
43
+ type: "dark",
44
+ opacity: overlayOpacity,
45
+ color: overlayColor,
46
+ onClick: () => hide()
47
+ }), jsx(AnimatePresence, {
48
+ children: modal && ModalComponent && jsx("div", {
49
+ className: css_container,
50
+ ref: ref,
51
+ children: jsx("div", {
52
+ className: css_box,
53
+ children: jsx(motion.div, {
54
+ className: css_wrapper,
55
+ variants: variants,
56
+ initial: initial,
57
+ animate: animate,
58
+ exit: exit,
59
+ transition: transition,
60
+ drag: draggable,
61
+ dragListener: !draggable && void 0,
62
+ dragControls: draggable ? controls : void 0,
63
+ dragConstraints: draggable ? constraints : void 0,
64
+ dragElastic: draggable ? 0 : void 0,
65
+ dragMomentum: !draggable && void 0,
66
+ children: jsx(ModalComponent, Object.assign({}, modalProps, {
67
+ onResolve: value => {
68
+ "function" == typeof (null == modalProps ? void 0 : modalProps.onResolve) && modalProps.onResolve(value),
69
+ resolve(value);
70
+ },
71
+ onReject: error => {
72
+ "function" == typeof (null == modalProps ? void 0 : modalProps.onReject) && modalProps.onReject(error),
73
+ reject(error);
74
+ },
75
+ onClose: () => {
76
+ "function" == typeof (null == modalProps ? void 0 : modalProps.onClose) && modalProps.onClose(),
77
+ hide();
78
+ },
79
+ onDragPointerDown: e => {
80
+ "function" == typeof (null == modalProps ? void 0 : modalProps.onDragPointerDown) && (null == modalProps || modalProps.onDragPointerDown(e)),
81
+ controls.start(e);
82
+ }
83
+ }))
84
+ })
85
+ })
86
+ })
87
+ }) ]
88
+ });
89
+ }
90
+
91
+ export { ModalController as M };
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useState, useMemo, useEffect, useCallback } from "react";
7
7
 
8
- import { a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
8
+ import { a as accessibleKeyDown } from "./misc-zecH7-IH.mjs";
9
9
 
10
10
  var css_wrapper = "Pager-module_wrapper__eutVg flexBox-module_row__z24tF", css_bullet = "Pager-module_bullet__TxyR5 flexBox-module_row__z24tF", css_selected = "Pager-module_selected__C6xbR";
11
11
 
@@ -7,11 +7,17 @@ import { useTheme } from "../hooks/useTheme.mjs";
7
7
 
8
8
  import "../theme/colors.mjs";
9
9
 
10
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
10
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
11
+
12
+ import "./webRTCStore-DhFE9-bb.mjs";
13
+
14
+ import "./microphoneStore-Cbx9nV4R.mjs";
15
+
16
+ import "./volumeStore-BrgZCRKF.mjs";
11
17
 
12
18
  import "../hooks/useWindow.mjs";
13
19
 
14
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
20
+ import { I as Icon } from "./Icon-L8B35JN1.mjs";
15
21
 
16
22
  import { AnimatePresence, motion } from "motion/react";
17
23
 
@@ -7,13 +7,21 @@ import { useTheme } from "../hooks/useTheme.mjs";
7
7
 
8
8
  import "../theme/colors.mjs";
9
9
 
10
- import "./tslib.es6-C81Qhn1z.mjs";
10
+ import "./tslib.es6-CVvvNSPr.mjs";
11
+
12
+ import { s as setStyle } from "./misc-zecH7-IH.mjs";
13
+
14
+ import "./webRTCStore-DhFE9-bb.mjs";
15
+
16
+ import "./microphoneStore-Cbx9nV4R.mjs";
17
+
18
+ import "./volumeStore-BrgZCRKF.mjs";
11
19
 
12
20
  import "../hooks/useWindow.mjs";
13
21
 
14
- import { B as Button } from "./Button-BIgwWrPJ.mjs";
22
+ import { B as Button } from "./Button-CWKs3uAV.mjs";
15
23
 
16
- import { F as FileList } from "./FileList-vMiGJByw.mjs";
24
+ import { F as FileList } from "./FileList-CztHFCJe.mjs";
17
25
 
18
26
  var css = {
19
27
  wrapperBg: "PromptInput-module_wrapperBg__zabZq flexBox-module_columnStart__C7P44",
@@ -30,7 +38,7 @@ var css = {
30
38
  };
31
39
 
32
40
  const PromptInputBase = React.forwardRef((props, ref) => {
33
- const {children: children, attachments: attachments = [], value: value = "", working: working = !1, maxHeight: maxHeight, borderStyle: borderStyle = "gradient", borderColor: borderColor, borderColorOn: borderColorOn, borderAnimate: borderAnimate = !0, borderWidth: borderWidth = 1, borderRadius: borderRadius = 8, focused: focused = !1, placeholder: placeholder = "Ask me anything ...", placeholderWorking: placeholderWorking = "Working ...", submitClears: submitClears = !0, submitEnablesStop: submitEnablesStop = !0, enterSubmits: enterSubmits = !0, attachButton: attachButton = !0, sendButton: sendButton = !0, stopEnabled: stopEnabled = !1, textSize: textSize = "m", maxLength: maxLength, toolbarGap: toolbarGap = 8, onChange: onChange, onBlur: onBlur, onFocus: onFocus, onSubmit: onSubmit, onStop: onStop, onAttachmentsChange: onAttachmentsChange} = props, {isDark: isDark} = useTheme(), [isFocused, setIsFocused] = useState(null != focused && focused), [isWorking, setIsWorking] = useState(null != working && working), [isStopEnabled, setIsStopEnabled] = useState(stopEnabled), [textValue, setTextValue] = useState(value), textAreaRef = useRef(null), handleFocus = useCallback(() => {
41
+ const {children: children, attachments: attachments = [], value: value = "", width: width = "100%", maxWidth: maxWidth, minWidth: minWidth, working: working = !1, maxHeight: maxHeight, attachmentsDisabled: attachmentsDisabled = !1, submitWorking: submitWorking = !1, borderStyle: borderStyle = "gradient", borderColor: borderColor, borderColorOn: borderColorOn, borderAnimate: borderAnimate = !0, borderWidth: borderWidth = 1, borderRadius: borderRadius = 8, focused: focused = !1, placeholder: placeholder = "Ask me anything ...", placeholderWorking: placeholderWorking = "Working ...", submitClears: submitClears = !0, enterSubmits: enterSubmits = !0, attachButton: attachButton = !0, sendButton: sendButton = !0, stopEnabled: stopEnabled = !1, textSize: textSize = "m", maxLength: maxLength, toolbarGap: toolbarGap = 8, onChange: onChange, onBlur: onBlur, onFocus: onFocus, onSubmit: onSubmit, onStop: onStop, onAttachmentsChange: onAttachmentsChange} = props, {isDark: isDark} = useTheme(), [isFocused, setIsFocused] = useState(null != focused && focused), [textValue, setTextValue] = useState(value), textAreaRef = useRef(null), handleFocus = useCallback(() => {
34
42
  var _a, _b;
35
43
  setIsFocused(!0), null === (_a = null == textAreaRef ? void 0 : textAreaRef.current) || void 0 === _a || _a.focus(),
36
44
  null == onFocus || onFocus(null === (_b = textAreaRef.current) || void 0 === _b ? void 0 : _b.value, attachments);
@@ -46,47 +54,46 @@ const PromptInputBase = React.forwardRef((props, ref) => {
46
54
  setTextValue(newValue), null == onChange || onChange(newValue, attachments);
47
55
  }, [ onChange, attachments ]), handleSubmit = useCallback(() => {
48
56
  var _a;
49
- if (isWorking || isStopEnabled) return;
57
+ if (stopEnabled) return;
58
+ if (working && submitWorking) return;
50
59
  const currentValue = null === (_a = textAreaRef.current) || void 0 === _a ? void 0 : _a.value;
51
- currentValue && (null == onSubmit || onSubmit(currentValue, attachments), setIsWorking(!0),
52
- submitClears && setTextValue(""), submitEnablesStop && setIsStopEnabled(!0), handleBlur());
53
- }, [ submitClears, onSubmit, handleBlur, submitEnablesStop, isWorking, isStopEnabled, attachments ]), handleStop = useCallback(() => {
54
- setIsWorking(!1), setIsStopEnabled(!1), null == onStop || onStop(), handleFocus();
60
+ currentValue && (null == onSubmit || onSubmit(currentValue, attachments), submitClears && setTextValue(""),
61
+ handleBlur());
62
+ }, [ stopEnabled, submitClears, onSubmit, handleBlur, attachments, working, submitWorking ]), handleStop = useCallback(() => {
63
+ null == onStop || onStop(), handleFocus();
55
64
  }, [ onStop, handleFocus ]), handleKeyDown = useCallback(e => {
56
- if ("Enter" === e.key && enterSubmits) {
57
- if (e.preventDefault(), isWorking) return;
58
- handleSubmit();
59
- }
60
- }, [ handleSubmit, isWorking, enterSubmits ]), handleClickSend = useCallback(e => {
61
- e.preventDefault(), e.stopPropagation(), isWorking && !isStopEnabled || (isStopEnabled ? handleStop() : handleSubmit());
62
- }, [ handleSubmit, handleStop, isStopEnabled, isWorking ]), handleClickAttach = useCallback(e => {
65
+ "Enter" === e.key && enterSubmits && (e.preventDefault(), handleSubmit());
66
+ }, [ handleSubmit, enterSubmits ]), handleClickSend = useCallback(e => {
67
+ e.preventDefault(), e.stopPropagation(), stopEnabled ? handleStop() : handleSubmit();
68
+ }, [ handleSubmit, handleStop, stopEnabled ]), handleClickAttach = useCallback(e => {
63
69
  e.preventDefault(), e.stopPropagation();
64
70
  }, []), handleClickButtonBar = useCallback(e => {
65
- e.preventDefault(), isWorking || handleFocus();
66
- }, [ handleFocus, isWorking ]), setBorderColor = useMemo(() => {
71
+ e.preventDefault(), handleFocus();
72
+ }, [ handleFocus ]), setBorderColor = useMemo(() => {
67
73
  if ("gradient" === borderStyle) {
68
74
  const radial = isDark ? "var(--conic-gradient-dark)" : "var(--conic-gradient-light)";
69
- return isWorking && borderAnimate ? radial : isFocused ? null != borderColorOn ? borderColorOn : radial : null != borderColor ? borderColor : radial;
75
+ return working && borderAnimate ? radial : isFocused ? null != borderColorOn ? borderColorOn : radial : null != borderColor ? borderColor : radial;
70
76
  }
71
- return "solid" === borderStyle ? isWorking || isFocused ? null != borderColorOn ? borderColorOn : "var(--core-outline-special)" : null != borderColor ? borderColor : "transparent" : "transparent";
72
- }, [ borderStyle, isFocused, borderColorOn, borderColor, isWorking, borderAnimate, isDark ]), setPlaceholder = useMemo(() => isWorking && placeholderWorking ? placeholderWorking : placeholder, [ isWorking, placeholder, placeholderWorking ]), setSendIconColor = useMemo(() => isStopEnabled || isWorking ? "var(--core-text-primary)" : "" !== textValue ? "var(--core-text-light)" : "var(--core-text-disabled)", [ textValue, isWorking, isStopEnabled ]), sendButtonState = useMemo(() => isStopEnabled || "" !== textValue || isWorking ? "normal" : "disabled", [ textValue, isStopEnabled, isWorking ]), attachState = useMemo(() => isWorking ? "disabled" : "normal", [ isWorking ]);
77
+ return "solid" === borderStyle ? working || isFocused ? null != borderColorOn ? borderColorOn : "var(--core-outline-special)" : null != borderColor ? borderColor : "transparent" : "transparent";
78
+ }, [ borderStyle, isFocused, borderColorOn, borderColor, working, borderAnimate, isDark ]), setPlaceholder = useMemo(() => working && placeholderWorking ? placeholderWorking : placeholder, [ working, placeholder, placeholderWorking ]), setSendIconColor = useMemo(() => stopEnabled ? "var(--core-text-primary)" : "" !== textValue ? "var(--core-text-light)" : "var(--core-text-disabled)", [ textValue, stopEnabled ]), sendButtonState = useMemo(() => working && submitWorking || stopEnabled ? "normal" : "" === textValue ? "disabled" : "normal", [ textValue, stopEnabled, working, submitWorking ]), attachState = useMemo(() => attachmentsDisabled ? "disabled" : "normal", [ attachmentsDisabled ]);
73
79
  useEffect(() => {
74
80
  var _a, _b;
75
81
  focused ? null === (_a = textAreaRef.current) || void 0 === _a || _a.focus() : null === (_b = textAreaRef.current) || void 0 === _b || _b.blur();
76
82
  }, [ focused ]), useEffect(() => {
77
83
  var _a;
78
84
  (null === (_a = textAreaRef.current) || void 0 === _a ? void 0 : _a.value) !== value && setTextValue(value);
79
- }, [ value ]), useEffect(() => {
80
- void 0 !== working && setIsWorking(working);
81
- }, [ working ]), useEffect(() => setIsStopEnabled(stopEnabled), [ stopEnabled ]);
85
+ }, [ value ]);
82
86
  const cssVars = useMemo(() => ({
87
+ "--prompt-width": setStyle(width),
88
+ "--prompt-min-width": setStyle(minWidth, "unset"),
89
+ "--prompt-max-width": setStyle(maxWidth, "unset"),
83
90
  "--prompt-border-color": setBorderColor,
84
91
  "--prompt-max-height": maxHeight ? `${maxHeight}px` : "unset",
85
92
  "--prompt-border-width": borderWidth ? `${borderWidth}px` : "0",
86
- "--prompt-state": isWorking && borderAnimate ? "running" : "paused",
93
+ "--prompt-state": working && borderAnimate ? "running" : "paused",
87
94
  "--prompt-border-radius": borderRadius ? `${borderRadius}px` : "8px",
88
95
  "--prompt-inner-border-radius": borderRadius ? borderRadius - 1 + "px" : "7px"
89
- }), [ isWorking, borderAnimate, setBorderColor, borderWidth, borderRadius, maxHeight ]);
96
+ }), [ working, borderAnimate, setBorderColor, borderWidth, borderRadius, maxHeight, width, maxWidth, minWidth ]);
90
97
  return jsx("div", {
91
98
  className: css.wrapperBg,
92
99
  ref: ref,
@@ -137,13 +144,13 @@ const PromptInputBase = React.forwardRef((props, ref) => {
137
144
  }), sendButton && jsx(Button, {
138
145
  round: !0,
139
146
  label: void 0,
140
- variant: isStopEnabled ? "outline" : "solid",
141
- iconLeft: isStopEnabled ? "stop" : "arrow up",
142
- iconSize: isStopEnabled ? 16 : 20,
147
+ variant: stopEnabled ? "outline" : "solid",
148
+ iconLeft: stopEnabled ? "stop" : "arrow up",
149
+ iconSize: stopEnabled ? 16 : 20,
143
150
  state: sendButtonState,
144
151
  bgColorDisabled: "var(--core-outline-primary)",
145
- progress: !isStopEnabled,
146
- working: !isStopEnabled && isWorking,
152
+ progress: !stopEnabled,
153
+ working: submitWorking && working,
147
154
  onMouseDown: handleClickSend,
148
155
  iconColor: setSendIconColor
149
156
  }) ]
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useState, useEffect, useCallback, useMemo } from "react";
7
7
 
8
- import { s as setStyle } from "./misc-2MIIqzsX.mjs";
8
+ import { s as setStyle } from "./misc-zecH7-IH.mjs";
9
9
 
10
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
10
+ import { I as Icon } from "./Icon-L8B35JN1.mjs";
11
11
 
12
12
  var css_wrapper = "RadioButton-module_wrapper__-pWRe flexBox-module_row__z24tF", css_radioIcon = "RadioButton-module_radioIcon__I27Xv flexBox-module_column__ezvMq", css_radioTitle = "RadioButton-module_radioTitle__zCQII flexBox-module_rowStart__4tcxS type-module_body-m-regular__LuQBA", css_radioContent = "RadioButton-module_radioContent__38xVx flexBox-module_columnStart__C7P44";
13
13
 
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useId, useState, useEffect, useCallback, useMemo } from "react";
7
7
 
8
- import { s as setStyle } from "./misc-2MIIqzsX.mjs";
8
+ import { s as setStyle } from "./misc-zecH7-IH.mjs";
9
9
 
10
- import { R as RadioButton } from "./RadioButton-DWlg6ldv.mjs";
10
+ import { R as RadioButton } from "./RadioButton-oOGgTDhg.mjs";
11
11
 
12
12
  var css_wrapper = "RadioButtonList-module_wrapper__wnq1-", css_column = "RadioButtonList-module_column__Bq16e flexBox-module_columnStart__C7P44", css_row = "RadioButtonList-module_row__D3szq flexBox-module_rowStart__4tcxS";
13
13
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -7,9 +7,9 @@ import React, { useRef, useState, useMemo, useCallback, useEffect } from "react"
7
7
 
8
8
  import { useObserveResize } from "../hooks/useObserveResize.mjs";
9
9
 
10
- import { d as debounce } from "./debounce-CYBH5qXQ.mjs";
10
+ import { p as pointerPosition } from "./misc-zecH7-IH.mjs";
11
11
 
12
- import { p as pointerPosition } from "./misc-2MIIqzsX.mjs";
12
+ import { d as debounce } from "./debounce-DFxAyrPi.mjs";
13
13
 
14
14
  var css_wrapper = "Slider-module_wrapper__KCCs1", css_trackBg = "Slider-module_trackBg__7zfqm flexBox-module_rowStart__4tcxS", css_track = "Slider-module_track__kaJkL flexBox-module_rowStart__4tcxS", css_trackHead = "Slider-module_trackHead__W-UdG", css_trackWrapper = "Slider-module_trackWrapper__Ot0Wh flexBox-module_rowStart__4tcxS";
15
15
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -9,15 +9,21 @@ import { useTheme } from "../hooks/useTheme.mjs";
9
9
 
10
10
  import "../theme/colors.mjs";
11
11
 
12
+ import "./webRTCStore-DhFE9-bb.mjs";
13
+
14
+ import "./microphoneStore-Cbx9nV4R.mjs";
15
+
16
+ import "./volumeStore-BrgZCRKF.mjs";
17
+
12
18
  import "../hooks/useWindow.mjs";
13
19
 
14
- import { B as Badge } from "./Badge-DuUb5-80.mjs";
20
+ import { B as Badge } from "./Badge-bh5UVUnt.mjs";
15
21
 
16
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
22
+ import { I as Icon } from "./Icon-L8B35JN1.mjs";
17
23
 
18
- import { I as IconButton } from "./IconButton-B_W-aOsB.mjs";
24
+ import { I as IconButton } from "./IconButton-DxwJemEK.mjs";
19
25
 
20
- import { T as ToolTipType } from "./sharedTypes-CyrInj1b.mjs";
26
+ import { T as ToolTipType } from "./sharedTypes-CdmzhKXN.mjs";
21
27
 
22
28
  var css_wrapper = "TabBar-module_wrapper__cyOR1 flexBox-module_rowStart__4tcxS", css_option = "TabBar-module_option__gYjDf flexBox-module_row__z24tF type-module_body-m-regular__LuQBA", css_icon = "TabBar-module_icon__JDgG3 flexBox-module_row__z24tF", css_close = "TabBar-module_close__bvSBh flexBox-module_row__z24tF";
23
29
 
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useState, useRef, useCallback, useEffect, useMemo } from "react";
7
7
 
8
- import { B as Button } from "./Button-BIgwWrPJ.mjs";
8
+ import { B as Button } from "./Button-CWKs3uAV.mjs";
9
9
 
10
10
  var css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_xs = "TextArea-module_xs__5e748 type-module_body-xs-regular__ZAFft", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
11
11
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
@@ -11,15 +11,21 @@ import { useTheme } from "../hooks/useTheme.mjs";
11
11
 
12
12
  import "../theme/colors.mjs";
13
13
 
14
- import { s as setStyle } from "./misc-2MIIqzsX.mjs";
14
+ import { s as setStyle } from "./misc-zecH7-IH.mjs";
15
+
16
+ import "./webRTCStore-DhFE9-bb.mjs";
17
+
18
+ import "./microphoneStore-Cbx9nV4R.mjs";
19
+
20
+ import "./volumeStore-BrgZCRKF.mjs";
15
21
 
16
22
  import "../hooks/useWindow.mjs";
17
23
 
18
- import { B as Button } from "./Button-BIgwWrPJ.mjs";
24
+ import { B as Button } from "./Button-CWKs3uAV.mjs";
19
25
 
20
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
26
+ import { I as Icon } from "./Icon-L8B35JN1.mjs";
21
27
 
22
- import { I as IconButton } from "./IconButton-B_W-aOsB.mjs";
28
+ import { I as IconButton } from "./IconButton-DxwJemEK.mjs";
23
29
 
24
30
  var css = {
25
31
  wrapper: "TextField-module_wrapper__qZ-p- flexBox-module_rowStart__4tcxS",
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -7,7 +7,7 @@ import { motion } from "motion/react";
7
7
 
8
8
  import React, { useState, useRef, useEffect, useMemo } from "react";
9
9
 
10
- import { f as filterClasses } from "./misc-2MIIqzsX.mjs";
10
+ import { f as filterClasses } from "./misc-zecH7-IH.mjs";
11
11
 
12
12
  var css = {
13
13
  wrapper: "Tip-module_wrapper__D7ACT flexBox-module_rowStart__4tcxS",
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+ import { _ as __rest } from "./tslib.es6-CVvvNSPr.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -11,13 +11,19 @@ import { useTheme } from "../hooks/useTheme.mjs";
11
11
 
12
12
  import "../theme/colors.mjs";
13
13
 
14
- import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
14
+ import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-zecH7-IH.mjs";
15
+
16
+ import "./webRTCStore-DhFE9-bb.mjs";
17
+
18
+ import "./microphoneStore-Cbx9nV4R.mjs";
19
+
20
+ import "./volumeStore-BrgZCRKF.mjs";
15
21
 
16
22
  import "../hooks/useWindow.mjs";
17
23
 
18
- import { I as Icon } from "./Icon-D4A6_c4x.mjs";
24
+ import { I as Icon } from "./Icon-L8B35JN1.mjs";
19
25
 
20
- import { P as ProgressIndicator } from "./ProgressIndicator-BV0ginXb.mjs";
26
+ import { P as ProgressIndicator } from "./ProgressIndicator-HaJJDZ-m.mjs";
21
27
 
22
28
  var ToastType, css = {
23
29
  wrapper: "Toast-module_wrapper__1uj9O flexBox-module_rowBetween__5FEvi",