@apple-pie/slice 0.1.31 → 0.1.32

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 (288) hide show
  1. package/README.md +35 -284
  2. package/dist/cjs/chunks/{AudioBubble-k7qS53g6.js → AudioBubble-Dh2IlYW0.js} +2 -2
  3. package/dist/cjs/chunks/{Avatar-hP8GuwvD.js → Avatar-WcBAu25_.js} +1 -1
  4. package/dist/cjs/chunks/{AvatarGroup-DMy34q7_.js → AvatarGroup-eUkVdeTf.js} +1 -1
  5. package/dist/cjs/chunks/{Badge-D2TbyfJS.js → Badge-4tBynWZe.js} +1 -1
  6. package/dist/cjs/chunks/{Button-CTsHZBEB.js → Button-QJ5lsSAz.js} +1 -1
  7. package/dist/cjs/chunks/{ButtonBar-BRb1PTmw.js → ButtonBar-DcpvT1vD.js} +1 -1
  8. package/dist/cjs/chunks/{Camera-CKv087kr.js → Camera-iDyPLq9h.js} +3 -3
  9. package/dist/cjs/chunks/{CheckBox-VRIL1FHh.js → CheckBox-CmZJd8u2.js} +1 -1
  10. package/dist/cjs/chunks/{Chip-Dr3vKvRY.js → Chip-Bd1bSYeC.js} +1 -1
  11. package/dist/cjs/chunks/{DivInput-Ci0gaCWL.js → DivInput-BY9pQ6ty.js} +1 -1
  12. package/dist/cjs/chunks/{Dot-C0MvSJOl.js → Dot-BeWDLajy.js} +1 -1
  13. package/dist/cjs/chunks/{DrggablePanel-DflouLUs.js → DrggablePanel-DzY5wTco.js} +2 -2
  14. package/dist/cjs/chunks/{DropDown-BS1H62yj.js → DropDown-Cn_nX8u7.js} +1 -1
  15. package/dist/cjs/chunks/{ErrorSummary-B3tof7ir.js → ErrorSummary-D-0uVwyV.js} +2 -2
  16. package/dist/cjs/chunks/{FileIcon-Te8MaqTs.js → FileIcon-JfY2AYqG.js} +2 -2
  17. package/dist/cjs/chunks/{FileList-CDcfKIV6.js → FileList-Dc1nfpR2.js} +1 -1
  18. package/dist/cjs/chunks/{FlexDiv-wO8IY0Zf.js → FlexDiv-B5Pi0-aJ.js} +1 -1
  19. package/dist/cjs/chunks/{Grouper-DyGkzdvz.js → Grouper-DKZkTlow.js} +2 -2
  20. package/dist/cjs/chunks/{Icon-BFZ_5Qv3.js → Icon-BVYVJp9J.js} +2 -2
  21. package/dist/cjs/chunks/{IconButton-CgsuJIuF.js → IconButton-CP1Wsvsx.js} +1 -1
  22. package/dist/cjs/chunks/{IndexedDB-Dgwal8na.js → IndexedDB-CeiVT55Z.js} +1 -1
  23. package/dist/cjs/chunks/{Label-BuyhcJbF.js → Label-DIs1rOey.js} +1 -1
  24. package/dist/cjs/chunks/Level-3yxetsco.js +58 -0
  25. package/dist/cjs/chunks/{MdStreamBuffer-CbG_VeRI.js → MdStreamBuffer-BudWFoNw.js} +38 -16
  26. package/dist/cjs/chunks/{Modal-ByRyv3wy.js → Modal-CjpQdoOe.js} +34 -8
  27. package/dist/cjs/chunks/{ModalController-xjflFsjF.js → ModalController-Cp2PXOOS.js} +1 -1
  28. package/dist/cjs/chunks/{Overlay-FooE9M_s.js → Overlay-DRpHYZek.js} +1 -1
  29. package/dist/cjs/chunks/{Pager-B-cuwffo.js → Pager-ChnTKwml.js} +1 -1
  30. package/dist/cjs/chunks/{ProgressIndicator-ByZ_aYAZ.js → ProgressIndicator-CFiAU-aF.js} +2 -2
  31. package/dist/cjs/chunks/{PromptInput--grtHPvy.js → PromptInput-BFWR0TaP.js} +2 -2
  32. package/dist/cjs/chunks/{RadioButton-DP2X1dA_.js → RadioButton-Bi-FP41j.js} +1 -1
  33. package/dist/cjs/chunks/{RadioButtonList-COGNW5y3.js → RadioButtonList-JHPKMCoX.js} +1 -1
  34. package/dist/cjs/chunks/{Slider-G1a8UKef.js → Slider-D97ws1Cl.js} +1 -1
  35. package/dist/cjs/chunks/{Spacer-CsRCleXv.js → Spacer-DvI2M1wZ.js} +1 -1
  36. package/dist/cjs/chunks/{Switch-OBVHKn_D.js → Switch-DDSSprb7.js} +1 -1
  37. package/dist/cjs/chunks/{TabBar-C1HkBaxE.js → TabBar-TllSeSzb.js} +2 -2
  38. package/dist/cjs/chunks/{TextArea-BEmNI_HZ.js → TextArea-DjZRDixt.js} +1 -1
  39. package/dist/cjs/chunks/{TextField-D9_COA9H.js → TextField-CKA3K0AN.js} +3 -3
  40. package/dist/cjs/chunks/{Tip-2W0u_oQN.js → Tip-BdGXN-TQ.js} +1 -1
  41. package/dist/cjs/chunks/{Toast-B9jX6ioq.js → Toast-COrDS_50.js} +5 -5
  42. package/dist/cjs/chunks/{ToggleButton-C_Gu5dYR.js → ToggleButton-hoOMzBZc.js} +1 -1
  43. package/dist/cjs/chunks/{UploadArea-ENFAf4tE.js → UploadArea-ClG8ZgRZ.js} +1 -1
  44. package/dist/cjs/chunks/{WSConnection-CZ22tcLz.js → WSConnection-Brxc2hEv.js} +1 -1
  45. package/dist/cjs/chunks/WebRTCConnection-eWP4lueC.js +252 -0
  46. package/dist/cjs/chunks/{localDBStore-Ca73jeFf.js → localDBStore-SS_r0C6F.js} +1 -1
  47. package/dist/cjs/chunks/{microphoneStore-lxYIvhN8.js → microphoneStore-DM_8bhFr.js} +27 -4
  48. package/dist/cjs/chunks/{misc-DZAbObFp.js → misc-4xyXRU2K.js} +1 -1
  49. package/dist/cjs/chunks/{sseStore-Bq7sVvyA.js → sseStore-Ag-UnuQq.js} +2 -2
  50. package/dist/cjs/chunks/{uploads-worker-CD-annza.js → uploads-worker-CI-SZptI.js} +1 -1
  51. package/dist/cjs/chunks/{uploadsStore-CUeB10zx.js → uploadsStore-DR2hc4ct.js} +2 -2
  52. package/dist/cjs/chunks/{volumeStore-roYTyKJ2.js → volumeStore-DtTHf-9_.js} +5 -4
  53. package/dist/cjs/chunks/webRTCStore-DWWn7k-0.js +55 -0
  54. package/dist/cjs/chunks/{windowStore-BdJv-RF0.js → windowStore-BUo9Du_e.js} +1 -1
  55. package/dist/cjs/components/AudioBubble/index.js +4 -4
  56. package/dist/cjs/components/Avatar/index.js +3 -3
  57. package/dist/cjs/components/AvatarGroup/index.js +3 -3
  58. package/dist/cjs/components/Badge/index.js +2 -2
  59. package/dist/cjs/components/Button/index.js +7 -7
  60. package/dist/cjs/components/ButtonBar/index.js +3 -3
  61. package/dist/cjs/components/Camera/index.js +5 -5
  62. package/dist/cjs/components/CheckBox/index.js +3 -3
  63. package/dist/cjs/components/Chip/index.js +4 -4
  64. package/dist/cjs/components/DivInput/index.js +3 -3
  65. package/dist/cjs/components/Dot/index.js +2 -2
  66. package/dist/cjs/components/DraggablePanel/index.js +3 -3
  67. package/dist/cjs/components/DropDown/index.js +3 -3
  68. package/dist/cjs/components/ErrorSummary/index.js +3 -3
  69. package/dist/cjs/components/FileIcon/index.js +3 -3
  70. package/dist/cjs/components/FileList/index.js +4 -4
  71. package/dist/cjs/components/FlexDiv/index.js +2 -2
  72. package/dist/cjs/components/Grouper/index.js +4 -4
  73. package/dist/cjs/components/Icon/index.js +3 -3
  74. package/dist/cjs/components/IconButton/index.js +6 -6
  75. package/dist/cjs/components/Label/index.js +3 -3
  76. package/dist/cjs/components/Level/index.js +7 -0
  77. package/dist/cjs/components/Modal/index.js +7 -7
  78. package/dist/cjs/components/ModalController/index.js +3 -3
  79. package/dist/cjs/components/Overlay/index.js +2 -2
  80. package/dist/cjs/components/Pager/index.js +3 -3
  81. package/dist/cjs/components/Progress/index.js +3 -3
  82. package/dist/cjs/components/PromptInput/index.js +7 -7
  83. package/dist/cjs/components/RadioButton/index.js +3 -3
  84. package/dist/cjs/components/RadioButtonList/index.js +4 -4
  85. package/dist/cjs/components/Slider/index.js +4 -4
  86. package/dist/cjs/components/Spacer/index.js +2 -2
  87. package/dist/cjs/components/Switch/index.js +2 -2
  88. package/dist/cjs/components/TabBar/index.js +5 -5
  89. package/dist/cjs/components/TextArea/index.js +7 -7
  90. package/dist/cjs/components/Textfield/index.js +7 -7
  91. package/dist/cjs/components/Tip/index.js +3 -3
  92. package/dist/cjs/components/Toast/index.js +4 -4
  93. package/dist/cjs/components/ToggleButton/index.js +7 -7
  94. package/dist/cjs/components/UploadArea/index.js +5 -5
  95. package/dist/cjs/hooks/useAudioRecorder.js +1 -1
  96. package/dist/cjs/hooks/useBindWebRTC.js +60 -0
  97. package/dist/cjs/hooks/useLocalStore.js +3 -3
  98. package/dist/cjs/hooks/useMdStreamBuffer.js +55 -30
  99. package/dist/cjs/hooks/useMicrophone.js +1 -1
  100. package/dist/cjs/hooks/useTrackRenders.js +2 -2
  101. package/dist/cjs/hooks.js +7 -4
  102. package/dist/cjs/index.js +19 -17
  103. package/dist/cjs/providers/ThemeProvider.js +5 -4
  104. package/dist/cjs/providers/themeServer.js +15 -9
  105. package/dist/cjs/stores/LocalDB.js +3 -3
  106. package/dist/cjs/stores/SSE.js +2 -2
  107. package/dist/cjs/stores/WS.js +2 -2
  108. package/dist/cjs/stores/WebRTC.js +9 -0
  109. package/dist/cjs/stores/microphone.js +5 -4
  110. package/dist/cjs/stores/modal.js +1 -1
  111. package/dist/cjs/stores/tip.js +1 -1
  112. package/dist/cjs/stores/toast.js +1 -1
  113. package/dist/cjs/stores/uploads.js +2 -2
  114. package/dist/cjs/stores/volume.js +2 -2
  115. package/dist/cjs/stores/window.js +2 -2
  116. package/dist/cjs/stores.js +18 -13
  117. package/dist/cjs/utils/index.js +4 -3
  118. package/dist/cjs/utils/objects/index.js +4 -3
  119. package/dist/cjs/workers/uploads/uploads.js +2 -2
  120. package/dist/esm/chunks/{AudioBubble-DfrxyTX_.mjs → AudioBubble-cYlxxQ7c.mjs} +3 -3
  121. package/dist/esm/chunks/{Avatar-pA41Pcyl.mjs → Avatar-D84wF2os.mjs} +2 -2
  122. package/dist/esm/chunks/{AvatarGroup-CZBtWjnj.mjs → AvatarGroup-DiwfbRxH.mjs} +2 -2
  123. package/dist/esm/chunks/{Badge-pLwG0zm7.mjs → Badge-DuUb5-80.mjs} +1 -1
  124. package/dist/esm/chunks/{Button-BJoMLZIs.mjs → Button-BIgwWrPJ.mjs} +6 -6
  125. package/dist/esm/chunks/{ButtonBar-BO2RUJ8R.mjs → ButtonBar-vNvnvw7u.mjs} +3 -3
  126. package/dist/esm/chunks/{Camera-4MNA52HG.mjs → Camera-BMwkTJPq.mjs} +5 -5
  127. package/dist/esm/chunks/{CheckBox-7KAsvZld.mjs → CheckBox-Cpoxy8w_.mjs} +3 -3
  128. package/dist/esm/chunks/{Chip-BuGvCLLU.mjs → Chip-BayNVv7N.mjs} +4 -4
  129. package/dist/esm/chunks/{DivInput-D0YzSWjJ.mjs → DivInput-CWRUxy1y.mjs} +2 -2
  130. package/dist/esm/chunks/{Dot-h26m47Z-.mjs → Dot-v_kcIWV2.mjs} +1 -1
  131. package/dist/esm/chunks/{DrggablePanel-Bh6HLPMX.mjs → DrggablePanel-yEeGeE1w.mjs} +2 -2
  132. package/dist/esm/chunks/{DropDown-NgMYjjXn.mjs → DropDown-QQhwAg_J.mjs} +3 -3
  133. package/dist/esm/chunks/{ErrorSummary-nNm9qymE.mjs → ErrorSummary-DzIZMIll.mjs} +2 -2
  134. package/dist/esm/chunks/{FileIcon-BqyV1wut.mjs → FileIcon-6UlkbKzk.mjs} +2 -2
  135. package/dist/esm/chunks/{FileList-C1tOvoc0.mjs → FileList-vMiGJByw.mjs} +5 -5
  136. package/dist/esm/chunks/{FlexDiv-CkK-DAyg.mjs → FlexDiv-B1m7aY04.mjs} +1 -1
  137. package/dist/esm/chunks/{Grouper-CyrOkuu2.mjs → Grouper-BDrAnfDF.mjs} +3 -3
  138. package/dist/esm/chunks/{Icon-DjW0Krm8.mjs → Icon-D4A6_c4x.mjs} +2 -2
  139. package/dist/esm/chunks/{IconButton-DdLhTUl0.mjs → IconButton-B_W-aOsB.mjs} +5 -5
  140. package/dist/esm/chunks/{IndexedDB-DVoDikoA.mjs → IndexedDB-CTqfKmp1.mjs} +1 -1
  141. package/dist/esm/chunks/{Label-DhmJ_Sln.mjs → Label-I75yz3gq.mjs} +2 -2
  142. package/dist/esm/chunks/Level-DgczkKBr.mjs +63 -0
  143. package/dist/esm/chunks/{MdStreamBuffer-4AJH8WaN.mjs → MdStreamBuffer-CoQWQwRL.mjs} +38 -16
  144. package/dist/esm/chunks/{Modal-FztrJsQo.mjs → Modal-CwwyijaO.mjs} +39 -13
  145. package/dist/esm/chunks/{ModalController-C1BnM5Dz.mjs → ModalController-IyB9lDRa.mjs} +2 -2
  146. package/dist/esm/chunks/{Overlay-Dsy55Bxm.mjs → Overlay-C-yori3-.mjs} +1 -1
  147. package/dist/esm/chunks/{Pager-BqSdwL0L.mjs → Pager-BEtfyKtq.mjs} +2 -2
  148. package/dist/esm/chunks/{ProgressIndicator-BnqZFATV.mjs → ProgressIndicator-BV0ginXb.mjs} +2 -2
  149. package/dist/esm/chunks/{PromptInput-CRkcPXJu.mjs → PromptInput-Cn5fRYap.mjs} +3 -3
  150. package/dist/esm/chunks/{RadioButton-DXq3yniV.mjs → RadioButton-DWlg6ldv.mjs} +3 -3
  151. package/dist/esm/chunks/{RadioButtonList-BgOskHCP.mjs → RadioButtonList-D9FdlhPL.mjs} +3 -3
  152. package/dist/esm/chunks/{Slider-DPOy9uNI.mjs → Slider-B2WZkZSg.mjs} +3 -3
  153. package/dist/esm/chunks/{Spacer-BJd_D0Fn.mjs → Spacer-7Oj0SlD0.mjs} +1 -1
  154. package/dist/esm/chunks/{Switch-DHqlyizo.mjs → Switch-DRhnznnO.mjs} +1 -1
  155. package/dist/esm/chunks/{TabBar-RBXExqMK.mjs → TabBar-D6VR71ye.mjs} +5 -5
  156. package/dist/esm/chunks/{TextArea-CIlx_P26.mjs → TextArea-CkB5rJjI.mjs} +2 -2
  157. package/dist/esm/chunks/{TextField-CX72ybwH.mjs → TextField-BIXmkjEz.mjs} +5 -5
  158. package/dist/esm/chunks/{Tip-COBSyEjm.mjs → Tip-CTdrwLky.mjs} +2 -2
  159. package/dist/esm/chunks/{Toast-BTm3HxDD.mjs → Toast-8bUziIgh.mjs} +6 -6
  160. package/dist/esm/chunks/{ToggleButton-DujsCKF3.mjs → ToggleButton-BOFITa8_.mjs} +2 -2
  161. package/dist/esm/chunks/{UploadArea-D--Nt8Ed.mjs → UploadArea-DE2ccDVx.mjs} +4 -4
  162. package/dist/esm/chunks/{WSConnection-BMXcuW3f.mjs → WSConnection-CHudrD62.mjs} +1 -1
  163. package/dist/esm/chunks/WebRTCConnection-DQbNa7Z9.mjs +252 -0
  164. package/dist/esm/chunks/{localDBStore-36E3160Z.mjs → localDBStore-CaYiqITY.mjs} +2 -2
  165. package/dist/esm/chunks/{microphoneStore-Cexu82zH.mjs → microphoneStore-COEGtgyX.mjs} +26 -3
  166. package/dist/esm/chunks/{misc-CTGTuM2J.mjs → misc-2MIIqzsX.mjs} +1 -1
  167. package/dist/esm/chunks/{sseStore-Dow4NXkZ.mjs → sseStore-nW9CMec_.mjs} +2 -2
  168. package/dist/esm/chunks/{tslib.es6-BX2F90pK.mjs → tslib.es6-C81Qhn1z.mjs} +1 -1
  169. package/dist/esm/chunks/{uploads-worker-Dhyp4ot3.mjs → uploads-worker-CMomtRvm.mjs} +1 -1
  170. package/dist/esm/chunks/{uploadsStore-DT4lFybE.mjs → uploadsStore-CsfpSOTS.mjs} +1 -1
  171. package/dist/esm/chunks/{volumeStore-RAxdmQ60.mjs → volumeStore-TSYPqbHx.mjs} +5 -4
  172. package/dist/esm/chunks/webRTCStore-CVCDJzj5.mjs +57 -0
  173. package/dist/esm/chunks/{windowStore-C4AZexIa.mjs → windowStore-BvejIR82.mjs} +1 -1
  174. package/dist/esm/components/AudioBubble/index.mjs +4 -4
  175. package/dist/esm/components/Avatar/index.mjs +3 -3
  176. package/dist/esm/components/AvatarGroup/index.mjs +4 -4
  177. package/dist/esm/components/Badge/index.mjs +2 -2
  178. package/dist/esm/components/Button/index.mjs +8 -8
  179. package/dist/esm/components/ButtonBar/index.mjs +4 -4
  180. package/dist/esm/components/Camera/index.mjs +6 -6
  181. package/dist/esm/components/CheckBox/index.mjs +4 -4
  182. package/dist/esm/components/Chip/index.mjs +5 -5
  183. package/dist/esm/components/DivInput/index.mjs +3 -3
  184. package/dist/esm/components/Dot/index.mjs +2 -2
  185. package/dist/esm/components/DraggablePanel/index.mjs +3 -3
  186. package/dist/esm/components/DropDown/index.mjs +4 -4
  187. package/dist/esm/components/ErrorSummary/index.mjs +3 -3
  188. package/dist/esm/components/FileIcon/index.mjs +3 -3
  189. package/dist/esm/components/FileList/index.mjs +6 -6
  190. package/dist/esm/components/FlexDiv/index.mjs +2 -2
  191. package/dist/esm/components/Grouper/index.mjs +5 -5
  192. package/dist/esm/components/Icon/index.mjs +4 -4
  193. package/dist/esm/components/IconButton/index.mjs +7 -7
  194. package/dist/esm/components/Label/index.mjs +3 -3
  195. package/dist/esm/components/Level/index.mjs +11 -0
  196. package/dist/esm/components/Modal/index.mjs +10 -10
  197. package/dist/esm/components/ModalController/index.mjs +4 -4
  198. package/dist/esm/components/Overlay/index.mjs +2 -2
  199. package/dist/esm/components/Pager/index.mjs +3 -3
  200. package/dist/esm/components/Progress/index.mjs +4 -4
  201. package/dist/esm/components/PromptInput/index.mjs +11 -11
  202. package/dist/esm/components/RadioButton/index.mjs +4 -4
  203. package/dist/esm/components/RadioButtonList/index.mjs +5 -5
  204. package/dist/esm/components/Slider/index.mjs +4 -4
  205. package/dist/esm/components/Spacer/index.mjs +2 -2
  206. package/dist/esm/components/Switch/index.mjs +2 -2
  207. package/dist/esm/components/TabBar/index.mjs +8 -8
  208. package/dist/esm/components/TextArea/index.mjs +9 -9
  209. package/dist/esm/components/Textfield/index.mjs +10 -10
  210. package/dist/esm/components/Tip/index.mjs +3 -3
  211. package/dist/esm/components/Toast/index.mjs +5 -5
  212. package/dist/esm/components/ToggleButton/index.mjs +9 -9
  213. package/dist/esm/components/UploadArea/index.mjs +7 -7
  214. package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
  215. package/dist/esm/hooks/useBindWebRTC.mjs +72 -0
  216. package/dist/esm/hooks/useLocalStore.mjs +3 -3
  217. package/dist/esm/hooks/useMdStreamBuffer.mjs +56 -28
  218. package/dist/esm/hooks/useMicrophone.mjs +1 -1
  219. package/dist/esm/hooks/useTrackRenders.mjs +2 -2
  220. package/dist/esm/hooks.mjs +14 -2
  221. package/dist/esm/index.mjs +62 -50
  222. package/dist/esm/providers/ThemeProvider.mjs +6 -5
  223. package/dist/esm/providers/themeServer.mjs +11 -6
  224. package/dist/esm/stores/LocalDB.mjs +3 -3
  225. package/dist/esm/stores/SSE.mjs +3 -3
  226. package/dist/esm/stores/WS.mjs +2 -2
  227. package/dist/esm/stores/WebRTC.mjs +7 -0
  228. package/dist/esm/stores/microphone.mjs +2 -2
  229. package/dist/esm/stores/modal.mjs +1 -1
  230. package/dist/esm/stores/tip.mjs +1 -1
  231. package/dist/esm/stores/toast.mjs +1 -1
  232. package/dist/esm/stores/uploads.mjs +3 -3
  233. package/dist/esm/stores/volume.mjs +2 -2
  234. package/dist/esm/stores/window.mjs +2 -2
  235. package/dist/esm/stores.mjs +17 -13
  236. package/dist/esm/utils/index.mjs +11 -9
  237. package/dist/esm/utils/objects/index.mjs +8 -6
  238. package/dist/esm/workers/uploads/uploads.mjs +2 -2
  239. package/dist/styles.css +51 -11
  240. package/dist/types/components/Level/Level.d.ts +5 -0
  241. package/dist/types/components/Level/_types.d.ts +21 -0
  242. package/dist/types/components/Level/index.d.ts +2 -0
  243. package/dist/types/components/Modal/_types.d.ts +3 -0
  244. package/dist/types/components/Toast/_types.d.ts +1 -0
  245. package/dist/types/hooks/index.d.ts +2 -0
  246. package/dist/types/hooks/useBindWebRTC/index.d.ts +1 -0
  247. package/dist/types/hooks/useBindWebRTC/useBindWebRTC.d.ts +15 -0
  248. package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +1 -1
  249. package/dist/types/hooks/useMdStreamBuffer/useMdStreamBuffer.d.ts +6 -1
  250. package/dist/types/index.d.ts +3 -1
  251. package/dist/types/providers/ThemeProvider.d.ts +1 -0
  252. package/dist/types/providers/themeServer.d.ts +7 -3
  253. package/dist/types/stores/WebRTC/_types.d.ts +16 -0
  254. package/dist/types/stores/WebRTC/index.d.ts +2 -0
  255. package/dist/types/stores/WebRTC/webRTCStore.d.ts +21 -0
  256. package/dist/types/stores/index.d.ts +1 -0
  257. package/dist/types/stores/microphone/index.d.ts +1 -1
  258. package/dist/types/stores/microphone/microphoneStore.d.ts +14 -1
  259. package/dist/types/stores/toast/_types.d.ts +1 -0
  260. package/dist/types/stores/volume/_types.d.ts +3 -1
  261. package/dist/types/stores/volume/volumeStore.d.ts +6 -2
  262. package/dist/types/utils/functions/files.d.ts +1 -1
  263. package/dist/types/utils/index.d.ts +2 -2
  264. package/dist/types/utils/objects/MDStreamBuffer/MdStreamBuffer.d.ts +10 -0
  265. package/dist/types/utils/objects/MDStreamBuffer/_types.d.ts +2 -0
  266. package/dist/types/utils/objects/WebRTCConnection/WebRTCConnection.d.ts +37 -3
  267. package/dist/types/utils/objects/WebRTCConnection/_types.d.ts +13 -4
  268. package/dist/types/utils/objects/index.d.ts +2 -0
  269. package/package.json +1 -1
  270. /package/dist/cjs/chunks/{SSEConnection-ACoOeeTO.js → SSEConnection-DfjLAlOG.js} +0 -0
  271. /package/dist/cjs/chunks/{_types-k-3V1fz_.js → _types-DMyBIF8s.js} +0 -0
  272. /package/dist/cjs/chunks/{audioVisualizer-MOSbvvnZ.js → audioVisualizer-BxPvUj4h.js} +0 -0
  273. /package/dist/cjs/chunks/{colors-B0_3srZN.js → colors-4n0sNFRA.js} +0 -0
  274. /package/dist/cjs/chunks/{debounce-CaoYvh12.js → debounce-_IK-La-Z.js} +0 -0
  275. /package/dist/cjs/chunks/{modalStore-D4bOjuWd.js → modalStore-CFsfK3ba.js} +0 -0
  276. /package/dist/cjs/chunks/{sharedTypes-CthHPjrO.js → sharedTypes-C0ZHzH_T.js} +0 -0
  277. /package/dist/cjs/chunks/{tipStore-CPB7RHKY.js → tipStore-dqD9-c30.js} +0 -0
  278. /package/dist/cjs/chunks/{toastStore-6eHe6esp.js → toastStore-BN1N7WXv.js} +0 -0
  279. /package/dist/cjs/chunks/{tslib.es6-CzpRaW14.js → tslib.es6-DsF7Wv4Y.js} +0 -0
  280. /package/dist/esm/chunks/{SSEConnection-qNnkZUOe.mjs → SSEConnection-iFKOV9Uo.mjs} +0 -0
  281. /package/dist/esm/chunks/{_types-CEStVWlB.mjs → _types-DrNviSG6.mjs} +0 -0
  282. /package/dist/esm/chunks/{audioVisualizer-BUNbarKP.mjs → audioVisualizer-BsmpLZyK.mjs} +0 -0
  283. /package/dist/esm/chunks/{colors-D-qeA9gU.mjs → colors-BAATtfbL.mjs} +0 -0
  284. /package/dist/esm/chunks/{debounce-D5b6tZ5a.mjs → debounce-CYBH5qXQ.mjs} +0 -0
  285. /package/dist/esm/chunks/{modalStore-Crg_QmSJ.mjs → modalStore-DmaeMv7z.mjs} +0 -0
  286. /package/dist/esm/chunks/{sharedTypes-U5H1I85x.mjs → sharedTypes-CyrInj1b.mjs} +0 -0
  287. /package/dist/esm/chunks/{tipStore-pvswaezx.mjs → tipStore-B_MUZfr2.mjs} +0 -0
  288. /package/dist/esm/chunks/{toastStore-80oOTYsj.mjs → toastStore-DAprlBVj.mjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
@@ -7,15 +7,15 @@ import { motion } from "motion/react";
7
7
 
8
8
  import React, { forwardRef, useState, useRef, useCallback, useEffect, useImperativeHandle, useMemo } from "react";
9
9
 
10
- import { B as Badge } from "./Badge-pLwG0zm7.mjs";
10
+ import { B as Badge } from "./Badge-DuUb5-80.mjs";
11
11
 
12
- import { D as Dot } from "./Dot-h26m47Z-.mjs";
12
+ import { D as Dot } from "./Dot-v_kcIWV2.mjs";
13
13
 
14
- import { I as Icon } from "./Icon-DjW0Krm8.mjs";
14
+ import { I as Icon } from "./Icon-D4A6_c4x.mjs";
15
15
 
16
- import { P as ProgressIndicator } from "./ProgressIndicator-BnqZFATV.mjs";
16
+ import { P as ProgressIndicator } from "./ProgressIndicator-BV0ginXb.mjs";
17
17
 
18
- import { T as ToolTipType } from "./sharedTypes-U5H1I85x.mjs";
18
+ import { T as ToolTipType } from "./sharedTypes-CyrInj1b.mjs";
19
19
 
20
20
  var css = {
21
21
  button: "Button-module_button__2ZuB7 flexBox-module_row__z24tF",
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useState, useEffect, useCallback, useMemo, useRef } from "react";
7
7
 
8
- import { s as setStyle } from "./misc-CTGTuM2J.mjs";
8
+ import { s as setStyle } from "./misc-2MIIqzsX.mjs";
9
9
 
10
- import { I as Icon } from "./Icon-DjW0Krm8.mjs";
10
+ import { I as Icon } from "./Icon-D4A6_c4x.mjs";
11
11
 
12
12
  var css_wrapper = "ButtonBar-module_wrapper__FYZ3s flexBox-module_rowStart__4tcxS", css_button = "ButtonBar-module_button__bMR3h flexBox-module_row__z24tF", css_selected = "ButtonBar-module_selected__wKvmi";
13
13
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as __awaiter } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { a as __awaiter } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
@@ -9,15 +9,15 @@ import { useTheme } from "../hooks/useTheme.mjs";
9
9
 
10
10
  import "../theme/colors.mjs";
11
11
 
12
- import { a as accessibleKeyDown } from "./misc-CTGTuM2J.mjs";
12
+ import { a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
13
13
 
14
- import { a as addOpacity } from "./colors-D-qeA9gU.mjs";
14
+ import { a as addOpacity } from "./colors-BAATtfbL.mjs";
15
15
 
16
16
  import "../hooks/useWindow.mjs";
17
17
 
18
- import { A as Avatar } from "./Avatar-pA41Pcyl.mjs";
18
+ import { A as Avatar } from "./Avatar-D84wF2os.mjs";
19
19
 
20
- import { I as Icon } from "./Icon-DjW0Krm8.mjs";
20
+ import { I as Icon } from "./Icon-D4A6_c4x.mjs";
21
21
 
22
22
  var css_wrapper = "Camera-module_wrapper__GOsKp flexBox-module_column__ezvMq", css_video = "Camera-module_video__Q2r9B", css_controls = "Camera-module_controls__qXYoL flexBox-module_rowBetween__5FEvi", css_controlsRight = "Camera-module_controlsRight__VcIz7 flexBox-module_rowEnd__rVdVm", css_controlsCenter = "Camera-module_controlsCenter__e-erq flexBox-module_row__z24tF", css_controlsLeft = "Camera-module_controlsLeft__bR4TN flexBox-module_rowStart__4tcxS", css_error = "Camera-module_error__t0w-d flexBox-module_row__z24tF type-module_body-m-regular__LuQBA", css_poster = "Camera-module_poster__Gun-v flexBox-module_row__z24tF type-module_body-m-regular__LuQBA", css_snapshotFrame = "Camera-module_snapshotFrame__YM6Eu flexBox-module_row__z24tF", css_clear = "Camera-module_clear__aaCfT", css_snapshot = "Camera-module_snapshot__odQH0", css_toolbarButton = "Camera-module_toolbarButton__mnmoF flexBox-module_columnStartCenter__PKcrG", css_buttonIcon = "Camera-module_buttonIcon__a-VBR flexBox-module_row__z24tF", css_buttonLabel = "Camera-module_buttonLabel__6BEs1 flexBox-module_row__z24tF type-module_body-xs-regular__ZAFft";
23
23
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
@@ -7,9 +7,9 @@ import { motion } from "motion/react";
7
7
 
8
8
  import React, { useState, useEffect, useMemo, useCallback } from "react";
9
9
 
10
- import { a as accessibleKeyDown } from "./misc-CTGTuM2J.mjs";
10
+ import { a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
11
11
 
12
- import { I as Icon } from "./Icon-DjW0Krm8.mjs";
12
+ import { I as Icon } from "./Icon-D4A6_c4x.mjs";
13
13
 
14
14
  var css_wrapper = "CheckBox-module_wrapper__uRsjI flexBox-module_row__z24tF", css_icon = "CheckBox-module_icon__FoDJN flexBox-module_row__z24tF", css_label = "CheckBox-module_label__0AiBp type-module_body-m-regular__LuQBA";
15
15
 
@@ -1,15 +1,15 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useState, useCallback, useMemo } from "react";
7
7
 
8
- import { s as setStyle, a as accessibleKeyDown } from "./misc-CTGTuM2J.mjs";
8
+ import { s as setStyle, a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
9
9
 
10
- import { I as Icon } from "./Icon-DjW0Krm8.mjs";
10
+ import { I as Icon } from "./Icon-D4A6_c4x.mjs";
11
11
 
12
- import { T as ToolTipType } from "./sharedTypes-U5H1I85x.mjs";
12
+ import { T as ToolTipType } from "./sharedTypes-CyrInj1b.mjs";
13
13
 
14
14
  var css = {
15
15
  chip: "Chip-module_chip__0nys- flexBox-module_row__z24tF",
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.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, { useRef, useState, useCallback, useEffect, useMemo } from "react";
9
9
 
10
- import { b as cleanString } from "./misc-CTGTuM2J.mjs";
10
+ import { b as cleanString } from "./misc-2MIIqzsX.mjs";
11
11
 
12
12
  var css_wrapper = "DivInput-module_wrapper__ZQxY-", css_input = "DivInput-module_input__J34-l type-module_body-m-regular__LuQBA";
13
13
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
@@ -9,7 +9,7 @@ import { useTheme } from "../hooks/useTheme.mjs";
9
9
 
10
10
  import "../theme/colors.mjs";
11
11
 
12
- import { p as pointerPosition } from "./misc-CTGTuM2J.mjs";
12
+ import { p as pointerPosition } from "./misc-2MIIqzsX.mjs";
13
13
 
14
14
  import "../hooks/useWindow.mjs";
15
15
 
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
6
  import React, { useState, useRef, useEffect, useCallback, useMemo } from "react";
7
7
 
8
- import { s as setStyle } from "./misc-CTGTuM2J.mjs";
8
+ import { s as setStyle } from "./misc-2MIIqzsX.mjs";
9
9
 
10
- import { I as Icon } from "./Icon-DjW0Krm8.mjs";
10
+ import { I as Icon } from "./Icon-D4A6_c4x.mjs";
11
11
 
12
12
  var css = {
13
13
  wrapper: "DropDown-module_wrapper__CyX0u flexBox-module_rowStart__4tcxS",
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -11,7 +11,7 @@ import { useTheme } from "../hooks/useTheme.mjs";
11
11
 
12
12
  import "../theme/colors.mjs";
13
13
 
14
- import { a as addOpacity } from "./colors-D-qeA9gU.mjs";
14
+ import { a as addOpacity } from "./colors-BAATtfbL.mjs";
15
15
 
16
16
  import "../hooks/useWindow.mjs";
17
17
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
5
5
 
@@ -9,7 +9,7 @@ import { useTheme } from "../hooks/useTheme.mjs";
9
9
 
10
10
  import "../theme/colors.mjs";
11
11
 
12
- import { a as accessibleKeyDown } from "./misc-CTGTuM2J.mjs";
12
+ import { a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
13
13
 
14
14
  import "../hooks/useWindow.mjs";
15
15
 
@@ -1,17 +1,17 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.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-CTGTuM2J.mjs";
8
+ import { s as setStyle, a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
9
9
 
10
- import { F as FileIcon } from "./FileIcon-BqyV1wut.mjs";
10
+ import { F as FileIcon } from "./FileIcon-6UlkbKzk.mjs";
11
11
 
12
- import { I as Icon } from "./Icon-DjW0Krm8.mjs";
12
+ import { I as Icon } from "./Icon-D4A6_c4x.mjs";
13
13
 
14
- import { P as ProgressIndicator } from "./ProgressIndicator-BnqZFATV.mjs";
14
+ import { P as ProgressIndicator } from "./ProgressIndicator-BV0ginXb.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 { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -13,9 +13,9 @@ import "../theme/colors.mjs";
13
13
 
14
14
  import "../hooks/useWindow.mjs";
15
15
 
16
- import { B as Badge } from "./Badge-pLwG0zm7.mjs";
16
+ import { B as Badge } from "./Badge-DuUb5-80.mjs";
17
17
 
18
- import { I as Icon } from "./Icon-DjW0Krm8.mjs";
18
+ import { I as Icon } from "./Icon-D4A6_c4x.mjs";
19
19
 
20
20
  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
21
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
5
5
 
@@ -9,7 +9,7 @@ import { useTheme } from "../hooks/useTheme.mjs";
9
9
 
10
10
  import "../theme/colors.mjs";
11
11
 
12
- import { a as accessibleKeyDown } from "./misc-CTGTuM2J.mjs";
12
+ import { a as accessibleKeyDown } from "./misc-2MIIqzsX.mjs";
13
13
 
14
14
  import "../hooks/useWindow.mjs";
15
15
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.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-pLwG0zm7.mjs";
10
+ import { B as Badge } from "./Badge-DuUb5-80.mjs";
11
11
 
12
- import { D as Dot } from "./Dot-h26m47Z-.mjs";
12
+ import { D as Dot } from "./Dot-v_kcIWV2.mjs";
13
13
 
14
- import { I as Icon } from "./Icon-DjW0Krm8.mjs";
14
+ import { I as Icon } from "./Icon-D4A6_c4x.mjs";
15
15
 
16
- import { T as ToolTipType } from "./sharedTypes-U5H1I85x.mjs";
16
+ import { T as ToolTipType } from "./sharedTypes-CyrInj1b.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 { _ as __awaiter } from "./tslib.es6-BX2F90pK.mjs";
1
+ import { a as __awaiter } from "./tslib.es6-C81Qhn1z.mjs";
2
2
 
3
3
  class IndexedDB {
4
4
  constructor(storeName, options = {}) {
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.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-CTGTuM2J.mjs";
8
+ import { s as setStyle } from "./misc-2MIIqzsX.mjs";
9
9
 
10
10
  var LabelBackground, css = {
11
11
  label: "Label-module_label__RaRvM",
@@ -0,0 +1,63 @@
1
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
+
3
+ import { jsx } from "react/jsx-runtime";
4
+
5
+ import React, { useRef, useState, useMemo, useEffect } from "react";
6
+
7
+ import { s as setStyle } from "./misc-2MIIqzsX.mjs";
8
+
9
+ import { A as AudioVisualizer } from "./audioVisualizer-BsmpLZyK.mjs";
10
+
11
+ var css_wrapper = "Level-module_wrapper__yOfXw", css_barContainer = "Level-module_barContainer__QMUdv", css_bar = "Level-module_bar__MnApX";
12
+
13
+ const Level = React.memo(function(props) {
14
+ const {width: width = 100, height: height = 4, gap: gap = 0, audioStream: audioStream, playing: playing = !1, minIntensity: minIntensity = 0, maxIntensity: maxIntensity = 5, intensity: intensity = 3.5, peakIntensity: peakIntensity = .5, risePerSeconds: risePerSeconds = 4, releasePerSeconds: releasePerSeconds, ReleasePerSeconds: ReleasePerSeconds = 1.5, borderRadius: borderRadius = 4, borderColor: borderColor = "transparent", borderWidth: borderWidth = 0, colorActive: colorActive = "var(--feedback-positive)", backgroundColor: backgroundColor = "var(--core-surface-primary-tint)"} = props, divAttributes = __rest(props, [ "width", "height", "gap", "audioStream", "playing", "minIntensity", "maxIntensity", "intensity", "peakIntensity", "risePerSeconds", "releasePerSeconds", "ReleasePerSeconds", "borderRadius", "borderColor", "borderWidth", "colorActive", "backgroundColor" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", visualizerRef = useRef(null), [normalizedIntensity, setNormalizedIntensity] = useState(0), totalBars = Math.max(1, Math.floor(maxIntensity)), minBars = Math.max(0, Math.min(Math.floor(minIntensity), totalBars)), releaseRate = null != releasePerSeconds ? releasePerSeconds : ReleasePerSeconds, intensityIntervals = useMemo(() => new Array(totalBars).fill(0).map((_, index) => index), [ totalBars ]), activeBars = useMemo(() => {
15
+ const scaledBars = Math.round(minBars + normalizedIntensity * (totalBars - minBars));
16
+ return Math.max(minBars, Math.min(scaledBars, totalBars));
17
+ }, [ minBars, normalizedIntensity, totalBars ]), visualizerSettings = useMemo(() => ({
18
+ intensityMultiplier: intensity,
19
+ peakIntensity: peakIntensity,
20
+ risePerSecond: risePerSeconds,
21
+ releasePerSecond: releaseRate,
22
+ onUpdate: ({intensity: nextIntensity}) => setNormalizedIntensity(nextIntensity)
23
+ }), [ intensity, peakIntensity, releaseRate, risePerSeconds ]);
24
+ useEffect(() => {
25
+ var _a;
26
+ if (null === (_a = visualizerRef.current) || void 0 === _a || _a.dispose(), visualizerRef.current = null,
27
+ !audioStream) return void setNormalizedIntensity(0);
28
+ const visualizer = new AudioVisualizer(audioStream, visualizerSettings);
29
+ return visualizerRef.current = visualizer, playing && visualizer.start(), () => {
30
+ visualizer.dispose(), visualizerRef.current === visualizer && (visualizerRef.current = null);
31
+ };
32
+ }, [ audioStream, playing, visualizerSettings ]), useEffect(() => {
33
+ visualizerRef.current && (playing ? visualizerRef.current.start() : (visualizerRef.current.stop(),
34
+ setNormalizedIntensity(0)));
35
+ }, [ playing ]);
36
+ const cssVars = useMemo(() => ({
37
+ "--level-width": setStyle(width),
38
+ "--level-height": setStyle(height),
39
+ "--level-gap": setStyle(gap),
40
+ "--level-bar-border-radius": setStyle(borderRadius),
41
+ "--level-border-color": borderColor,
42
+ "--level-border-width": setStyle(borderWidth),
43
+ "--level-color": colorActive,
44
+ "--level-bg-color": backgroundColor
45
+ }), [ width, height, gap, borderRadius, borderColor, borderWidth, colorActive, backgroundColor ]);
46
+ return jsx("div", Object.assign({
47
+ id: divId,
48
+ className: `${css_wrapper}${divClass}`,
49
+ style: Object.assign(Object.assign({}, cssVars), divStyle)
50
+ }, rest, {
51
+ children: intensityIntervals.map(barIndex => jsx("div", {
52
+ className: css_barContainer,
53
+ children: jsx("div", {
54
+ className: css_bar,
55
+ style: {
56
+ opacity: barIndex < activeBars ? 1 : 0
57
+ }
58
+ })
59
+ }, barIndex))
60
+ }));
61
+ });
62
+
63
+ export { Level as L };
@@ -88,18 +88,19 @@ const DEFAULT_WATCHED_MARKERS = [ {
88
88
  * Buffer streamed Markdown and emit parser-safe snapshots on animation frames.
89
89
  */ class MdBuffer {
90
90
  constructor(options) {
91
- var _a, _b, _c, _d, _e, rules;
92
- this.committedRaw = "", this.activeRaw = "", this.frameHandle = null, this.completeSignal = !1,
93
- this.endOfStreamToken = null == options ? void 0 : options.endOfStreamToken, this.healthyEndMarker = null == options ? void 0 : options.healthyEndMarker,
94
- this.htmlHandling = null !== (_a = null == options ? void 0 : options.htmlHandling) && void 0 !== _a ? _a : "ignore",
91
+ var _a, _b, _c, _d, _e, _f, rules;
92
+ this.committedRaw = "", this.activeRaw = "", this.frameHandle = null, this.flushTimer = null,
93
+ this.lastFlushAt = 0, this.lastFlushedRawLength = 0, this.completeSignal = !1, this.endOfStreamToken = null == options ? void 0 : options.endOfStreamToken,
94
+ this.healthyEndMarker = null == options ? void 0 : options.healthyEndMarker, this.htmlHandling = null !== (_a = null == options ? void 0 : options.htmlHandling) && void 0 !== _a ? _a : "ignore",
95
95
  this.includeLinksAndImages = null !== (_b = null == options ? void 0 : options.includeLinksAndImages) && void 0 !== _b && _b,
96
- this.onFlush = null == options ? void 0 : options.onFlush, this.requestFrame = null !== (_c = null == options ? void 0 : options.requestFrame) && void 0 !== _c ? _c : function() {
96
+ this.flushDelayMs = Math.max(0, null !== (_c = null == options ? void 0 : options.flushDelayMs) && void 0 !== _c ? _c : 0),
97
+ this.onFlush = null == options ? void 0 : options.onFlush, this.requestFrame = null !== (_d = null == options ? void 0 : options.requestFrame) && void 0 !== _d ? _d : function() {
97
98
  if ("undefined" != typeof globalThis && "function" == typeof globalThis.requestAnimationFrame) return globalThis.requestAnimationFrame.bind(globalThis);
98
99
  return callback => globalThis.setTimeout(() => callback(Date.now()), 16);
99
- }(), this.cancelFrame = null !== (_d = null == options ? void 0 : options.cancelFrame) && void 0 !== _d ? _d : function() {
100
+ }(), this.cancelFrame = null !== (_e = null == options ? void 0 : options.cancelFrame) && void 0 !== _e ? _e : function() {
100
101
  if ("undefined" != typeof globalThis && "function" == typeof globalThis.cancelAnimationFrame) return globalThis.cancelAnimationFrame.bind(globalThis);
101
102
  return handle => globalThis.clearTimeout(handle);
102
- }(), this.watchedMarkers = (rules = null !== (_e = null == options ? void 0 : options.watchedMarkers) && void 0 !== _e ? _e : DEFAULT_WATCHED_MARKERS,
103
+ }(), this.watchedMarkers = (rules = null !== (_f = null == options ? void 0 : options.watchedMarkers) && void 0 !== _f ? _f : DEFAULT_WATCHED_MARKERS,
103
104
  [ ...rules ].sort((left, right) => right.open.length - left.open.length));
104
105
  }
105
106
  /**
@@ -112,6 +113,11 @@ const DEFAULT_WATCHED_MARKERS = [ {
112
113
  */ get healthy() {
113
114
  return this.buildHealthyOutput();
114
115
  }
116
+ /**
117
+ * Characters appended since the last emitted snapshot.
118
+ */ get pendingCharacters() {
119
+ return Math.max(0, this.raw.length - this.lastFlushedRawLength);
120
+ }
115
121
  /**
116
122
  * Append a streamed Markdown token and schedule a frame flush.
117
123
  */ append(chunk) {
@@ -123,11 +129,15 @@ const DEFAULT_WATCHED_MARKERS = [ {
123
129
  * Emit the current snapshot immediately.
124
130
  */ flush(reason = "manual") {
125
131
  var _a;
132
+ this.clearScheduledFlush();
133
+ const raw = this.committedRaw + this.activeRaw, healthy = this.buildHealthyOutput();
134
+ this.lastFlushAt = Date.now(), this.lastFlushedRawLength = raw.length;
126
135
  const snapshot = {
127
- raw: this.committedRaw + this.activeRaw,
128
- healthy: this.buildHealthyOutput(),
136
+ raw: raw,
137
+ healthy: healthy,
129
138
  reason: reason,
130
- isComplete: this.completeSignal
139
+ isComplete: this.completeSignal,
140
+ pendingCharacters: this.pendingCharacters
131
141
  };
132
142
  return null === (_a = this.onFlush) || void 0 === _a || _a.call(this, snapshot),
133
143
  snapshot;
@@ -135,14 +145,13 @@ const DEFAULT_WATCHED_MARKERS = [ {
135
145
  /**
136
146
  * Mark the stream as complete and flush one final snapshot.
137
147
  */ complete() {
138
- return null !== this.frameHandle && (this.cancelFrame(this.frameHandle), this.frameHandle = null),
139
- this.completeSignal = !0, this.flush("complete");
148
+ return this.clearScheduledFlush(), this.completeSignal = !0, this.flush("complete");
140
149
  }
141
150
  /**
142
151
  * Clear the buffered state and cancel any pending frame.
143
152
  */ reset() {
144
- null !== this.frameHandle && (this.cancelFrame(this.frameHandle), this.frameHandle = null),
145
- this.committedRaw = "", this.activeRaw = "", this.completeSignal = !1;
153
+ this.clearScheduledFlush(), this.committedRaw = "", this.activeRaw = "", this.lastFlushAt = 0,
154
+ this.lastFlushedRawLength = 0, this.completeSignal = !1;
146
155
  }
147
156
  /**
148
157
  * Cancel future work and release the retained state.
@@ -158,10 +167,23 @@ const DEFAULT_WATCHED_MARKERS = [ {
158
167
  return this.dispose(), snapshot;
159
168
  }
160
169
  scheduleFlush() {
161
- null === this.frameHandle && (this.frameHandle = this.requestFrame(() => {
162
- this.frameHandle = null, this.flush("raf");
170
+ null === this.frameHandle && null === this.flushTimer && (this.frameHandle = this.requestFrame(() => {
171
+ this.frameHandle = null;
172
+ const remainingDelay = this.getRemainingFlushDelay();
173
+ remainingDelay <= 0 ? this.flush("raf") : this.flushTimer = setTimeout(() => {
174
+ this.flushTimer = null, this.flush("raf");
175
+ }, remainingDelay);
163
176
  }));
164
177
  }
178
+ getRemainingFlushDelay() {
179
+ if (this.flushDelayMs <= 0) return 0;
180
+ const elapsed = Date.now() - this.lastFlushAt;
181
+ return Math.max(0, this.flushDelayMs - elapsed);
182
+ }
183
+ clearScheduledFlush() {
184
+ null !== this.frameHandle && (this.cancelFrame(this.frameHandle), this.frameHandle = null),
185
+ null !== this.flushTimer && (clearTimeout(this.flushTimer), this.flushTimer = null);
186
+ }
165
187
  commitStableLines() {
166
188
  if (this.buildHealthyTail(this.activeRaw) !== this.activeRaw) return;
167
189
  const lastNewlineIndex = this.activeRaw.lastIndexOf("\n");
@@ -1,22 +1,24 @@
1
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
1
+ 'use client';
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
2
3
 
3
4
  import { jsxs, jsx } from "react/jsx-runtime";
4
5
 
5
- import React, { useMemo } from "react";
6
+ import React, { useRef, useState, useCallback, useMemo, useEffect } from "react";
6
7
 
7
- import { s as setStyle } from "./misc-CTGTuM2J.mjs";
8
+ import { s as setStyle } from "./misc-2MIIqzsX.mjs";
8
9
 
9
- import { B as Button } from "./Button-BJoMLZIs.mjs";
10
+ import { B as Button } from "./Button-BIgwWrPJ.mjs";
10
11
 
11
- import { I as Icon } from "./Icon-DjW0Krm8.mjs";
12
+ import { I as Icon } from "./Icon-D4A6_c4x.mjs";
12
13
 
13
- import { I as IconButton } from "./IconButton-DdLhTUl0.mjs";
14
+ import { I as IconButton } from "./IconButton-B_W-aOsB.mjs";
14
15
 
15
16
  var css = {
16
17
  wrapper: "Modal-module_wrapper__34Hds flexBox-module_columnBetween__ERfp7",
17
18
  title: "Modal-module_title__A5OeE flexBox-module_rowBetween__5FEvi",
18
19
  titleBlock: "Modal-module_titleBlock__HUepX flexBox-module_rowStart__4tcxS",
19
20
  titleIcon: "Modal-module_titleIcon__xJYzy flexBox-module_row__z24tF",
21
+ contentWrapper: "Modal-module_contentWrapper__Swyjx flexBox-module_columnStart__C7P44",
20
22
  content: "Modal-module_content__dWO-B flexBox-module_columnStart__C7P44",
21
23
  actions: "Modal-module_actions__hY6zi flexBox-module_rowBetween__5FEvi",
22
24
  leftActions: "Modal-module_leftActions__-M-DM flexBox-module_rowStart__4tcxS",
@@ -29,7 +31,19 @@ var css = {
29
31
  };
30
32
 
31
33
  const Modal = React.memo(props => {
32
- const {children: children, id: id, className: className, style: style, minWidth: minWidth = 300, minHeight: minHeight = 200, maxHeight: maxHeight = 400, maxWidth: maxWidth = 400, padding: padding, close: close = !0, title: title, titleSize: titleSize = "l", contentSize: contentSize = "m", actions: actions, titleIcon: titleIcon, titleIconFill: titleIconFill = !0, titleBorderColor: titleBorderColor = "var(--core-outline-primary)", titleBorderWidth: titleBorderWidth = 0, actionsBorderColor: actionsBorderColor = "var(--core-outline-primary)", actionsBorderWidth: actionsBorderWidth = 0, onAction: onAction, onReject: onReject, onResolve: onResolve, onClose: onClose, onToolTip: onToolTip, onDragPointerDown: onDragPointerDown, backgroundColor: backgroundColor = "var(--core-surface-secondary)", titleColor: titleColor = "var(--core-text-special)", borderColor: borderColor = "var(--core-outline-primary)", borderRadius: borderRadius = 8, borderWidth: borderWidth = 1} = props, rest = __rest(props, [ "children", "id", "className", "style", "minWidth", "minHeight", "maxHeight", "maxWidth", "padding", "close", "title", "titleSize", "contentSize", "actions", "titleIcon", "titleIconFill", "titleBorderColor", "titleBorderWidth", "actionsBorderColor", "actionsBorderWidth", "onAction", "onReject", "onResolve", "onClose", "onToolTip", "onDragPointerDown", "backgroundColor", "titleColor", "borderColor", "borderRadius", "borderWidth" ]), modalStyle = null != style ? style : {}, modalClass = className ? ` ${className}` : "", cssVars = useMemo(() => ({
34
+ const {children: children, id: id, className: className, style: style, minWidth: minWidth = 300, minHeight: minHeight = 200, maxHeight: maxHeight = 400, maxWidth: maxWidth = 400, padding: padding, close: close = !0, title: title, titleSize: titleSize = "l", contentSize: contentSize = "m", actions: actions, titleIcon: titleIcon, titleIconFill: titleIconFill = !0, titleBorderColor: titleBorderColor = "var(--core-outline-primary)", titleBorderWidth: titleBorderWidth = 0, actionsBorderColor: actionsBorderColor = "var(--core-outline-primary)", actionsBorderWidth: actionsBorderWidth = 0, autoBorderBottom: autoBorderBottom = !0, onAction: onAction, onReject: onReject, onResolve: onResolve, onClose: onClose, onToolTip: onToolTip, onDragPointerDown: onDragPointerDown, backgroundColor: backgroundColor = "var(--core-surface-secondary)", scrollHandleColor: scrollHandleColor = "var(--core-text-disabled)", scrollHandleColorHover: scrollHandleColorHover = "var(--core-text-disabled)", titleColor: titleColor = "var(--core-text-special)", borderColor: borderColor = "var(--core-outline-primary)", borderRadius: borderRadius = 8, borderWidth: borderWidth = 1} = props, rest = __rest(props, [ "children", "id", "className", "style", "minWidth", "minHeight", "maxHeight", "maxWidth", "padding", "close", "title", "titleSize", "contentSize", "actions", "titleIcon", "titleIconFill", "titleBorderColor", "titleBorderWidth", "actionsBorderColor", "actionsBorderWidth", "autoBorderBottom", "onAction", "onReject", "onResolve", "onClose", "onToolTip", "onDragPointerDown", "backgroundColor", "scrollHandleColor", "scrollHandleColorHover", "titleColor", "borderColor", "borderRadius", "borderWidth" ]), contentWrapperRef = useRef(null), modalStyle = null != style ? style : {}, modalClass = className ? ` ${className}` : "", [scrolls, setScrolls] = useState(!1), getScrolls = useCallback(() => {
35
+ var _a, _b;
36
+ const height = null === (_a = contentWrapperRef.current) || void 0 === _a ? void 0 : _a.offsetHeight, scrollHeight = null === (_b = contentWrapperRef.current) || void 0 === _b ? void 0 : _b.scrollHeight;
37
+ return !(!height || !scrollHeight) && height < scrollHeight;
38
+ }, []), setActionBorderWidth = useMemo(() => scrolls && 0 === actionsBorderWidth && autoBorderBottom ? "1px" : setStyle(actionsBorderWidth), [ actionsBorderWidth, scrolls, autoBorderBottom ]), setContentPaddingTops = useMemo(() => {
39
+ if (scrolls && autoBorderBottom) {
40
+ if ("string" == typeof padding) {
41
+ return padding.split(" ")[0];
42
+ }
43
+ return setStyle(padding, "16px");
44
+ }
45
+ return "0";
46
+ }, [ scrolls, padding, autoBorderBottom ]), cssVars = useMemo(() => ({
33
47
  "--modal-min-width": setStyle(minWidth),
34
48
  "--modal-min-height": setStyle(minHeight),
35
49
  "--modal-max-height": setStyle(maxHeight),
@@ -38,13 +52,20 @@ const Modal = React.memo(props => {
38
52
  "--modal-title-color": titleColor,
39
53
  "--modal-border-radius": setStyle(borderRadius),
40
54
  "--modal-border-width": setStyle(borderWidth),
41
- "--modal-padding": setStyle(padding, 16),
55
+ "--modal-padding": setStyle(padding, "16px 24px"),
42
56
  "--modal-background-color": backgroundColor,
43
57
  "--modal-title-border-color": titleBorderColor,
44
58
  "--modal-title-border-width": setStyle(titleBorderWidth),
45
59
  "--modal-actions-border-color": actionsBorderColor,
46
- "--modal-actions-border-width": setStyle(actionsBorderWidth)
47
- }), [ minWidth, minHeight, maxHeight, maxWidth, borderColor, titleColor, borderRadius, borderWidth, padding, titleBorderWidth, titleBorderColor, actionsBorderWidth, actionsBorderColor, backgroundColor ]), renderActions = position => null == actions ? void 0 : actions.map((action, index) => action.position || "left" !== position ? action.position && position !== action.position ? null : jsx(Button, {
60
+ "--modal-scroll-handle": setStyle(scrollHandleColor),
61
+ "--modal-scroll-handle-hover": setStyle(scrollHandleColorHover),
62
+ "--modal-actions-border-width": setActionBorderWidth,
63
+ "--modal-content-padding-tops": setContentPaddingTops
64
+ }), [ minWidth, minHeight, maxHeight, maxWidth, borderColor, titleColor, borderRadius, borderWidth, padding, titleBorderWidth, titleBorderColor, actionsBorderColor, backgroundColor, scrollHandleColor, scrollHandleColorHover, setContentPaddingTops, setActionBorderWidth ]);
65
+ useEffect(() => {
66
+ children && maxHeight && setScrolls(getScrolls());
67
+ }, [ children, maxHeight, getScrolls ]);
68
+ const renderActions = position => null == actions ? void 0 : actions.map((action, index) => action.position || "left" !== position ? action.position && position !== action.position ? null : jsx(Button, {
48
69
  variant: action.primary ? "solid" : "outline",
49
70
  label: action.label,
50
71
  onClick: e => (action => {
@@ -67,9 +88,9 @@ const Modal = React.memo(props => {
67
88
  }, rest, {
68
89
  children: [ (title || close) && jsxs("div", {
69
90
  className: `${css.title} ${css[titleSize]}`,
91
+ onPointerDown: onDragPointerDown,
70
92
  children: [ jsxs("div", {
71
93
  className: css.titleBlock,
72
- onPointerDown: onDragPointerDown,
73
94
  children: [ titleIcon && jsx("div", {
74
95
  className: css.titleIcon,
75
96
  children: jsx(Icon, {
@@ -95,10 +116,15 @@ const Modal = React.memo(props => {
95
116
  })
96
117
  }) ]
97
118
  }), jsx("div", {
98
- className: `${css.content} ${css[contentSize]}`,
99
- children: children
119
+ className: css.contentWrapper,
120
+ ref: contentWrapperRef,
121
+ children: jsx("div", {
122
+ className: `${css.content} ${css[contentSize]}`,
123
+ children: children
124
+ })
100
125
  }), actions && actions.length > 0 && jsxs("div", {
101
126
  className: css.actions,
127
+ onPointerDown: onDragPointerDown,
102
128
  children: [ jsx("div", {
103
129
  className: css.leftActions,
104
130
  children: renderActions("left")
@@ -2,9 +2,9 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
 
3
3
  import { useDragControls, AnimatePresence, motion } from "motion/react";
4
4
 
5
- import { O as Overlay } from "./Overlay-Dsy55Bxm.mjs";
5
+ import { O as Overlay } from "./Overlay-C-yori3-.mjs";
6
6
 
7
- import { u as useModal, a as useModalActions } from "./modalStore-Crg_QmSJ.mjs";
7
+ import { u as useModal, a as useModalActions } from "./modalStore-DmaeMv7z.mjs";
8
8
 
9
9
  var css_wrapper = "ModalController-module_wrapper__HkOoX flexBox-module_row__z24tF";
10
10
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
2
+ import { _ as __rest } from "./tslib.es6-C81Qhn1z.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5