@apple-pie/slice 0.1.34 → 0.1.35
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.
- package/dist/cjs/chunks/{AudioBubble-D6EdVxCx.js → AudioBubble-CSybA_ET.js} +4 -4
- package/dist/cjs/chunks/{Avatar-C8Y8QA6W.js → Avatar-vhbPRhli.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-BJGROy0D.js → AvatarGroup-BQ8evyuD.js} +1 -1
- package/dist/cjs/chunks/{Badge-D0jOqpGM.js → Badge-C6Yv-vZ7.js} +1 -1
- package/dist/cjs/chunks/{Button-CSyenByA.js → Button-DSFVBBSz.js} +5 -4
- package/dist/cjs/chunks/{ButtonBar-D6nO_KLU.js → ButtonBar-BV57H5tK.js} +1 -1
- package/dist/cjs/chunks/{Camera-C8ug84NJ.js → Camera-UCBkxmIi.js} +5 -5
- package/dist/cjs/chunks/{CheckBox-rALyYaSt.js → CheckBox-DEJCxMel.js} +1 -1
- package/dist/cjs/chunks/{Chip-BwxjTPRM.js → Chip-Co9UJPhs.js} +9 -9
- package/dist/cjs/chunks/{DivInput-BRhOr7b5.js → DivInput-DXYuLZTP.js} +1 -1
- package/dist/cjs/chunks/{Dot-DLk45OlQ.js → Dot-ByyRFxJf.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-Ch24xWZu.js → DrggablePanel-EDw3OZa4.js} +9 -8
- package/dist/cjs/chunks/{DropDown-BbhZnN_w.js → DropDown-BpvddY0X.js} +1 -1
- package/dist/cjs/chunks/{ErrorSummary-CI6hUFwD.js → ErrorSummary-Chas_lIG.js} +4 -4
- package/dist/cjs/chunks/{FileIcon-CfjasX-r.js → FileIcon-vvwv1ZWh.js} +4 -4
- package/dist/cjs/chunks/{FileList-B93Xcxz4.js → FileList-CY_ZUI5o.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-rfXrDSOq.js → FlexDiv-CXas-gXx.js} +1 -1
- package/dist/cjs/chunks/{Grouper-DSrE9R-U.js → Grouper-DoDqtlXQ.js} +4 -4
- package/dist/cjs/chunks/{Icon-CRxH8X5b.js → Icon-DR7d5wbQ.js} +17 -5
- package/dist/cjs/chunks/IconButton-C2pgDGer.js +182 -0
- package/dist/cjs/chunks/{IndexedDB-BFj53nVB.js → IndexedDB-B3huw-IF.js} +1 -1
- package/dist/cjs/chunks/{Label-BHP_DdP0.js → Label-Bz1y0MlN.js} +1 -1
- package/dist/cjs/chunks/{Level-BWOIrzAv.js → Level-CGC1rIjD.js} +1 -1
- package/dist/cjs/chunks/{Modal-BEKrk6zT.js → Modal-C9p4TjIF.js} +1 -1
- package/dist/cjs/chunks/{ModalController-DQJ-Vr6w.js → ModalController-B1l70sB5.js} +3 -3
- package/dist/cjs/chunks/{Overlay-CgD0_kQK.js → Overlay-77krece8.js} +1 -1
- package/dist/cjs/chunks/{Pager-CjMnXBqh.js → Pager-B0FSZmAn.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-V-orBNdI.js → ProgressIndicator-CK7dKk8W.js} +4 -4
- package/dist/cjs/chunks/{PromptInput-DK1pGnIm.js → PromptInput-BFjWPvXi.js} +5 -5
- package/dist/cjs/chunks/{RadioButton-DOv8YC-8.js → RadioButton-qoMg2eXZ.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-BC0PaUB2.js → RadioButtonList-BKKQcFSI.js} +1 -1
- package/dist/cjs/chunks/{Slider-D4zQ-4aq.js → Slider-D7r0G9UI.js} +4 -4
- package/dist/cjs/chunks/{Spacer-CdIj0JdL.js → Spacer-DHvuvgy8.js} +1 -1
- package/dist/cjs/chunks/{Switch-BcyjA09W.js → Switch-D0WIz66o.js} +1 -1
- package/dist/cjs/chunks/{TabBar-BzfXUqQ7.js → TabBar-OZ8cC1Wh.js} +6 -6
- package/dist/cjs/chunks/{TextArea-Aqo_XxW3.js → TextArea-BnWOSrib.js} +3 -2
- package/dist/cjs/chunks/{TextField-D9cVqxeH.js → TextField-zAs-JMXf.js} +5 -5
- package/dist/cjs/chunks/{Tip-6p-WETDg.js → Tip-DeP8_frS.js} +1 -1
- package/dist/cjs/chunks/{Toast-D2RPpe4w.js → Toast-D-pkBwRK.js} +5 -5
- package/dist/cjs/chunks/{ToggleButton-DIO-mLzn.js → ToggleButton-cNIO7RUS.js} +6 -4
- package/dist/cjs/chunks/{UploadArea-dLHkxZaJ.js → UploadArea-6sLdjTc4.js} +1 -1
- package/dist/cjs/chunks/{WSConnection-DUtc0Zek.js → WSConnection-BwJzXOF0.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-DOegM5k_.js → WebRTCConnection-Bv-nWtU7.js} +1 -1
- package/dist/cjs/chunks/{_types-CnvV2yMQ.js → _types-BTZx360t.js} +3 -1
- package/dist/cjs/chunks/{localDBStore-BE1Spdvk.js → localDBStore-DDw1HB7W.js} +1 -1
- package/dist/cjs/chunks/{microphoneStore-BQttBRKb.js → microphoneStore-BWE0f5k5.js} +1 -1
- package/dist/cjs/chunks/{misc-CktV9aap.js → misc-Xy8NlSfu.js} +1 -1
- package/dist/cjs/chunks/{sseStore-CUctZwDm.js → sseStore-cP_aDXa1.js} +2 -2
- package/dist/cjs/chunks/{uploads-worker-B-7wl30J.js → uploads-worker-Ey3k_A8W.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-BhvyVpxk.js → uploadsStore-CysEm3Jm.js} +2 -2
- package/dist/cjs/chunks/{volumeStore-CPxgI64S.js → volumeStore-TOX_FL_t.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-M1HXHN92.js → webRTCStore-B1cS14MD.js} +1 -1
- package/dist/cjs/chunks/{windowStore-BeMPlP7X.js → windowStore-DCcNnrCO.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +6 -6
- package/dist/cjs/components/Avatar/index.js +3 -3
- package/dist/cjs/components/AvatarGroup/index.js +3 -3
- package/dist/cjs/components/Badge/index.js +2 -2
- package/dist/cjs/components/Button/index.js +9 -9
- package/dist/cjs/components/ButtonBar/index.js +6 -6
- package/dist/cjs/components/Camera/index.js +7 -7
- package/dist/cjs/components/CheckBox/index.js +6 -6
- package/dist/cjs/components/Chip/index.js +7 -7
- package/dist/cjs/components/DivInput/index.js +3 -3
- package/dist/cjs/components/Dot/index.js +2 -2
- package/dist/cjs/components/DraggablePanel/index.js +5 -5
- package/dist/cjs/components/DropDown/index.js +6 -6
- package/dist/cjs/components/ErrorSummary/index.js +5 -5
- package/dist/cjs/components/FileIcon/index.js +5 -5
- package/dist/cjs/components/FileList/index.js +7 -7
- package/dist/cjs/components/FlexDiv/index.js +2 -2
- package/dist/cjs/components/Grouper/index.js +7 -7
- package/dist/cjs/components/Icon/index.js +5 -5
- package/dist/cjs/components/IconButton/index.js +19 -9
- package/dist/cjs/components/Label/index.js +3 -3
- package/dist/cjs/components/Level/index.js +3 -3
- package/dist/cjs/components/Modal/index.js +10 -10
- package/dist/cjs/components/ModalController/index.js +5 -5
- package/dist/cjs/components/Overlay/index.js +2 -2
- package/dist/cjs/components/Pager/index.js +3 -3
- package/dist/cjs/components/Progress/index.js +5 -5
- package/dist/cjs/components/PromptInput/index.js +9 -9
- package/dist/cjs/components/RadioButton/index.js +6 -6
- package/dist/cjs/components/RadioButtonList/index.js +7 -7
- package/dist/cjs/components/Slider/index.js +5 -5
- package/dist/cjs/components/Spacer/index.js +2 -2
- package/dist/cjs/components/Switch/index.js +2 -2
- package/dist/cjs/components/TabBar/index.js +8 -8
- package/dist/cjs/components/TextArea/index.js +9 -9
- package/dist/cjs/components/Textfield/index.js +9 -9
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +6 -6
- package/dist/cjs/components/ToggleButton/index.js +9 -9
- package/dist/cjs/components/UploadArea/index.js +12 -11
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +2 -2
- package/dist/cjs/hooks/useMdStreamBuffer.js +1 -1
- package/dist/cjs/hooks/useMicrophone.js +32 -28
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +3 -3
- package/dist/cjs/index.js +19 -9
- package/dist/cjs/stores/LocalDB.js +3 -3
- package/dist/cjs/stores/SSE.js +2 -2
- package/dist/cjs/stores/WS.js +2 -2
- package/dist/cjs/stores/WebRTC.js +2 -2
- package/dist/cjs/stores/microphone.js +2 -2
- package/dist/cjs/stores/modal.js +1 -1
- package/dist/cjs/stores/tip.js +1 -1
- package/dist/cjs/stores/toast.js +1 -1
- package/dist/cjs/stores/uploads.js +2 -2
- package/dist/cjs/stores/volume.js +2 -2
- package/dist/cjs/stores/window.js +2 -2
- package/dist/cjs/stores.js +4 -4
- package/dist/cjs/theme/colors.js +4 -0
- package/dist/cjs/utils/index.js +2 -2
- package/dist/cjs/utils/objects/index.js +2 -2
- package/dist/cjs/workers/uploads/uploads.js +2 -2
- package/dist/esm/chunks/{AudioBubble-BudIMUsf.mjs → AudioBubble-_YhANdyd.mjs} +6 -6
- package/dist/esm/chunks/{Avatar-Bk8kdTEa.mjs → Avatar-C7U2ianJ.mjs} +2 -2
- package/dist/esm/chunks/{AvatarGroup-CRixAHW5.mjs → AvatarGroup-VAbyMrus.mjs} +2 -2
- package/dist/esm/chunks/{Badge-DHvo2-ZQ.mjs → Badge-BKZj-pNA.mjs} +1 -1
- package/dist/esm/chunks/{Button-v92U2QVV.mjs → Button-C6jYGagD.mjs} +10 -9
- package/dist/esm/chunks/{ButtonBar-Bn4GhpbO.mjs → ButtonBar-CHKHuVy1.mjs} +3 -3
- package/dist/esm/chunks/{Camera-Cvp_kb-A.mjs → Camera-DPATxQwH.mjs} +8 -8
- package/dist/esm/chunks/{CheckBox-CUbeBXgg.mjs → CheckBox-8oY2dwYh.mjs} +3 -3
- package/dist/esm/chunks/Chip-c3piVzsJ.mjs +87 -0
- package/dist/esm/chunks/{DivInput-CZ3PVteW.mjs → DivInput-g28YpiQp.mjs} +2 -2
- package/dist/esm/chunks/{Dot-B6Q97aIp.mjs → Dot-DnfM38Qp.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-DLltuMUc.mjs → DrggablePanel-CjgYDhDq.mjs} +10 -9
- package/dist/esm/chunks/{DropDown-DqVsJwO3.mjs → DropDown-CWHPCDQS.mjs} +3 -3
- package/dist/esm/chunks/{ErrorSummary-CCTJpTqA.mjs → ErrorSummary-D1PqqK3r.mjs} +5 -5
- package/dist/esm/chunks/{FileIcon-DnEohsNX.mjs → FileIcon-CudRs_lw.mjs} +5 -5
- package/dist/esm/chunks/{FileList-CnuT4Llg.mjs → FileList-Cj_k6oel.mjs} +5 -5
- package/dist/esm/chunks/{FlexDiv-DGEzQRcq.mjs → FlexDiv-pSlVGfpp.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-BoGryrnc.mjs → Grouper-BQxdCQKy.mjs} +6 -6
- package/dist/esm/chunks/{Icon-CbDAKN_S.mjs → Icon-CKS12m2e.mjs} +19 -7
- package/dist/esm/chunks/IconButton-Cka059ZT.mjs +193 -0
- package/dist/esm/chunks/{IndexedDB-Bqjric8V.mjs → IndexedDB-C1lcbDjn.mjs} +1 -1
- package/dist/esm/chunks/{Label-BlvreqNJ.mjs → Label-B7SDZHF3.mjs} +2 -2
- package/dist/esm/chunks/{Level-COXHoBs6.mjs → Level-CjR-2ZHs.mjs} +3 -3
- package/dist/esm/chunks/{Modal-CqBytyja.mjs → Modal-BLqTi3R2.mjs} +5 -5
- package/dist/esm/chunks/{ModalController-6Gc8QRxx.mjs → ModalController-BGCz54A8.mjs} +5 -5
- package/dist/esm/chunks/{Overlay-iKgSkUKP.mjs → Overlay-Dp2GOGjC.mjs} +1 -1
- package/dist/esm/chunks/{Pager-XgsZBzcg.mjs → Pager-DRkFuZTV.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-BWrcdWvF.mjs → ProgressIndicator-C2EWIn7Z.mjs} +5 -5
- package/dist/esm/chunks/{PromptInput-DbT3sVeA.mjs → PromptInput-mkEHu-_v.mjs} +7 -7
- package/dist/esm/chunks/{RadioButton-DUzPaLKa.mjs → RadioButton-Bd23SEL0.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-NjEGYpj4.mjs → RadioButtonList-ho29Z9aG.mjs} +3 -3
- package/dist/esm/chunks/{Slider-Bvnhqzjx.mjs → Slider-9hcuVdaH.mjs} +6 -6
- package/dist/esm/chunks/{Spacer-B2JAN7e8.mjs → Spacer-D3_8SzUs.mjs} +1 -1
- package/dist/esm/chunks/{Switch-CspvY_DQ.mjs → Switch-CV_2ygFC.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-BlvOUGJx.mjs → TabBar-BOUnKetI.mjs} +10 -10
- package/dist/esm/chunks/{TextArea-BpMTGopK.mjs → TextArea-FQVQo3LR.mjs} +4 -3
- package/dist/esm/chunks/{TextField-DELrBLOa.mjs → TextField-D7ZiWK9I.mjs} +8 -8
- package/dist/esm/chunks/{Tip-DBVeB0Zs.mjs → Tip-5OhdfJW7.mjs} +2 -2
- package/dist/esm/chunks/{Toast-HU8Pgwsr.mjs → Toast-BlDzsT1J.mjs} +7 -7
- package/dist/esm/chunks/{ToggleButton-CGpBWhaX.mjs → ToggleButton-BIIm75PN.mjs} +7 -5
- package/dist/esm/chunks/{UploadArea-DdV_ILIU.mjs → UploadArea-AjFofefa.mjs} +4 -4
- package/dist/esm/chunks/{WSConnection-eStD8i-1.mjs → WSConnection-CjwR_k97.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-BaPHQ_C4.mjs → WebRTCConnection-rKAgZEbe.mjs} +1 -1
- package/dist/esm/chunks/{_types-DR4jXucA.mjs → _types-Fewdpo-O.mjs} +3 -1
- package/dist/esm/chunks/{localDBStore-NpiMrXsA.mjs → localDBStore-Bxvk_IzQ.mjs} +2 -2
- package/dist/esm/chunks/{microphoneStore-uYs2NQQx.mjs → microphoneStore-Do0a5LZ9.mjs} +1 -1
- package/dist/esm/chunks/{misc-BQH7I5Zj.mjs → misc-C5cfUKzm.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-ueYoyFeB.mjs → sseStore-oSknLkEF.mjs} +2 -2
- package/dist/esm/chunks/{uploads-worker-CFPGExfT.mjs → uploads-worker-Cyum1zTV.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-DNalSMtC.mjs → uploadsStore-BxpUKpcf.mjs} +1 -1
- package/dist/esm/chunks/{volumeStore-C0iU07fK.mjs → volumeStore-D5i1CeFf.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-Ck8TCzr_.mjs → webRTCStore-BLGNTnV3.mjs} +2 -2
- package/dist/esm/chunks/{windowStore-DcYPAWds.mjs → windowStore-BqOOGKQ6.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +8 -8
- package/dist/esm/components/Avatar/index.mjs +3 -3
- package/dist/esm/components/AvatarGroup/index.mjs +4 -4
- package/dist/esm/components/Badge/index.mjs +2 -2
- package/dist/esm/components/Button/index.mjs +12 -12
- package/dist/esm/components/ButtonBar/index.mjs +8 -8
- package/dist/esm/components/Camera/index.mjs +10 -10
- package/dist/esm/components/CheckBox/index.mjs +8 -8
- package/dist/esm/components/Chip/index.mjs +9 -9
- package/dist/esm/components/DivInput/index.mjs +3 -3
- package/dist/esm/components/Dot/index.mjs +2 -2
- package/dist/esm/components/DraggablePanel/index.mjs +7 -7
- package/dist/esm/components/DropDown/index.mjs +8 -8
- package/dist/esm/components/ErrorSummary/index.mjs +7 -7
- package/dist/esm/components/FileIcon/index.mjs +7 -7
- package/dist/esm/components/FileList/index.mjs +10 -10
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +9 -9
- package/dist/esm/components/Icon/index.mjs +8 -8
- package/dist/esm/components/IconButton/index.mjs +11 -11
- package/dist/esm/components/Label/index.mjs +3 -3
- package/dist/esm/components/Level/index.mjs +4 -4
- package/dist/esm/components/Modal/index.mjs +14 -14
- package/dist/esm/components/ModalController/index.mjs +8 -8
- package/dist/esm/components/Overlay/index.mjs +2 -2
- package/dist/esm/components/Pager/index.mjs +3 -3
- package/dist/esm/components/Progress/index.mjs +8 -8
- package/dist/esm/components/PromptInput/index.mjs +15 -15
- package/dist/esm/components/RadioButton/index.mjs +8 -8
- package/dist/esm/components/RadioButtonList/index.mjs +9 -9
- package/dist/esm/components/Slider/index.mjs +8 -8
- package/dist/esm/components/Spacer/index.mjs +2 -2
- package/dist/esm/components/Switch/index.mjs +2 -2
- package/dist/esm/components/TabBar/index.mjs +12 -12
- package/dist/esm/components/TextArea/index.mjs +13 -13
- package/dist/esm/components/Textfield/index.mjs +14 -14
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +9 -9
- package/dist/esm/components/ToggleButton/index.mjs +13 -13
- package/dist/esm/components/UploadArea/index.mjs +13 -13
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +5 -5
- package/dist/esm/hooks/useMdStreamBuffer.mjs +2 -2
- package/dist/esm/hooks/useMicrophone.mjs +32 -28
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +6 -6
- package/dist/esm/index.mjs +53 -53
- package/dist/esm/stores/LocalDB.mjs +3 -3
- package/dist/esm/stores/SSE.mjs +3 -3
- package/dist/esm/stores/WS.mjs +2 -2
- package/dist/esm/stores/WebRTC.mjs +3 -3
- package/dist/esm/stores/microphone.mjs +2 -2
- package/dist/esm/stores/modal.mjs +1 -1
- package/dist/esm/stores/tip.mjs +1 -1
- package/dist/esm/stores/toast.mjs +1 -1
- package/dist/esm/stores/uploads.mjs +3 -3
- package/dist/esm/stores/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +15 -15
- package/dist/esm/theme/colors.mjs +4 -0
- package/dist/esm/utils/index.mjs +10 -10
- package/dist/esm/utils/objects/index.mjs +7 -7
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +6 -1
- package/dist/types/components/Button/Button.d.ts +4 -0
- package/dist/types/components/Button/_types.d.ts +2 -0
- package/dist/types/components/Chip/_types.d.ts +1 -0
- package/dist/types/components/Icon/_types.d.ts +2 -0
- package/dist/types/components/IconButton/_animation.d.ts +18 -0
- package/dist/types/components/IconButton/_types.d.ts +46 -0
- package/dist/types/components/IconButton/index.d.ts +2 -1
- package/dist/types/components/TabBar/_types.d.ts +2 -2
- package/dist/types/components/TextArea/_types.d.ts +1 -0
- package/dist/types/components/ToggleButton/_types.d.ts +5 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/theme/colors/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/chunks/IconButton-KFtalJ6A.js +0 -82
- package/dist/esm/chunks/Chip-HGLXF8JO.mjs +0 -87
- package/dist/esm/chunks/IconButton-nOcdRqR3.mjs +0 -96
- /package/dist/cjs/chunks/{MdStreamBuffer-CQGZtTLN.js → MdStreamBuffer-tvK8qsjv.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-BqitbvAq.js → SSEConnection-C6fFzIM7.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-i41gzZXM.js → audioVisualizer-DFVbG1U3.js} +0 -0
- /package/dist/cjs/chunks/{colors-BlSE7Sf2.js → colors-D1ls4xuy.js} +0 -0
- /package/dist/cjs/chunks/{debounce-C7m-uQW2.js → debounce-Dt7br1wm.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-BrwOUMH_.js → modalStore-C2TNegI3.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-Cep5dDpY.js → sharedTypes-DC-9YrKq.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-BXKWR6IE.js → tipStore-CcUHlLfK.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-Y9JmFP0o.js → toastStore-CzsUlpG7.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-yslq87rf.js → tslib.es6-CZ8Is2ry.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-BF5ZQeUD.mjs → MdStreamBuffer-CvU2-p0i.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-DNA5yBWy.mjs → SSEConnection-CnZ9v2PI.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-CAET7dc9.mjs → audioVisualizer-Cw40IeKn.mjs} +0 -0
- /package/dist/esm/chunks/{colors-BHYMt294.mjs → colors-7VDET9eL.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-DpPYyz3x.mjs → debounce-zgRcExLD.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-DbxIsSpU.mjs → modalStore-OVzsFkde.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-DoNQkNSM.mjs → sharedTypes-7jlhdP2f.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-CmyIJWe7.mjs → tipStore-o8uQjfPm.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-BYMHSiu2.mjs → toastStore-Cnivb4IM.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-75ZdAmtm.mjs → tslib.es6-CDAuOlZ8.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { T as TabBar } from "../../chunks/TabBar-
|
|
1
|
+
export { T as TabBar } from "../../chunks/TabBar-BOUnKetI.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -24,28 +24,28 @@ import "../../theme/type.mjs";
|
|
|
24
24
|
|
|
25
25
|
import "../../hooks/useObserveTheme.mjs";
|
|
26
26
|
|
|
27
|
-
import "../../chunks/misc-
|
|
27
|
+
import "../../chunks/misc-C5cfUKzm.mjs";
|
|
28
28
|
|
|
29
|
-
import "../../chunks/webRTCStore-
|
|
29
|
+
import "../../chunks/webRTCStore-BLGNTnV3.mjs";
|
|
30
30
|
|
|
31
31
|
import "zustand";
|
|
32
32
|
|
|
33
|
-
import "../../chunks/WebRTCConnection-
|
|
33
|
+
import "../../chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
34
34
|
|
|
35
|
-
import "../../chunks/microphoneStore-
|
|
35
|
+
import "../../chunks/microphoneStore-Do0a5LZ9.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/volumeStore-
|
|
37
|
+
import "../../chunks/volumeStore-D5i1CeFf.mjs";
|
|
38
38
|
|
|
39
39
|
import "../../hooks/useWindow.mjs";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/Badge-
|
|
41
|
+
import "../../chunks/Badge-BKZj-pNA.mjs";
|
|
42
42
|
|
|
43
|
-
import "../../chunks/Icon-
|
|
43
|
+
import "../../chunks/Icon-CKS12m2e.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/IconButton-
|
|
45
|
+
import "../../chunks/IconButton-Cka059ZT.mjs";
|
|
46
46
|
|
|
47
47
|
import "motion/react";
|
|
48
48
|
|
|
49
|
-
import "../../chunks/Dot-
|
|
49
|
+
import "../../chunks/Dot-DnfM38Qp.mjs";
|
|
50
50
|
|
|
51
|
-
import "../../chunks/sharedTypes-
|
|
51
|
+
import "../../chunks/sharedTypes-7jlhdP2f.mjs";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { T as TextArea } from "../../chunks/TextArea-
|
|
1
|
+
export { T as TextArea } from "../../chunks/TextArea-FQVQo3LR.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
import "react";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/Button-
|
|
9
|
+
import "../../chunks/Button-C6jYGagD.mjs";
|
|
10
10
|
|
|
11
11
|
import "motion/react";
|
|
12
12
|
|
|
13
|
-
import "../../chunks/Badge-
|
|
13
|
+
import "../../chunks/Badge-BKZj-pNA.mjs";
|
|
14
14
|
|
|
15
|
-
import "../../chunks/Dot-
|
|
15
|
+
import "../../chunks/Dot-DnfM38Qp.mjs";
|
|
16
16
|
|
|
17
|
-
import "../../chunks/Icon-
|
|
17
|
+
import "../../chunks/Icon-CKS12m2e.mjs";
|
|
18
18
|
|
|
19
19
|
import "../../hooks/useTheme.mjs";
|
|
20
20
|
|
|
@@ -34,20 +34,20 @@ import "../../theme/type.mjs";
|
|
|
34
34
|
|
|
35
35
|
import "../../hooks/useObserveTheme.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/misc-
|
|
37
|
+
import "../../chunks/misc-C5cfUKzm.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/webRTCStore-
|
|
39
|
+
import "../../chunks/webRTCStore-BLGNTnV3.mjs";
|
|
40
40
|
|
|
41
41
|
import "zustand";
|
|
42
42
|
|
|
43
|
-
import "../../chunks/WebRTCConnection-
|
|
43
|
+
import "../../chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/microphoneStore-
|
|
45
|
+
import "../../chunks/microphoneStore-Do0a5LZ9.mjs";
|
|
46
46
|
|
|
47
|
-
import "../../chunks/volumeStore-
|
|
47
|
+
import "../../chunks/volumeStore-D5i1CeFf.mjs";
|
|
48
48
|
|
|
49
49
|
import "../../hooks/useWindow.mjs";
|
|
50
50
|
|
|
51
|
-
import "../../chunks/ProgressIndicator-
|
|
51
|
+
import "../../chunks/ProgressIndicator-C2EWIn7Z.mjs";
|
|
52
52
|
|
|
53
|
-
import "../../chunks/sharedTypes-
|
|
53
|
+
import "../../chunks/sharedTypes-7jlhdP2f.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { T as TextField } from "../../chunks/TextField-
|
|
1
|
+
export { T as TextField } from "../../chunks/TextField-D7ZiWK9I.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -26,30 +26,30 @@ import "../../theme/type.mjs";
|
|
|
26
26
|
|
|
27
27
|
import "../../hooks/useObserveTheme.mjs";
|
|
28
28
|
|
|
29
|
-
import "../../chunks/misc-
|
|
29
|
+
import "../../chunks/misc-C5cfUKzm.mjs";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/webRTCStore-
|
|
31
|
+
import "../../chunks/webRTCStore-BLGNTnV3.mjs";
|
|
32
32
|
|
|
33
33
|
import "zustand";
|
|
34
34
|
|
|
35
|
-
import "../../chunks/WebRTCConnection-
|
|
35
|
+
import "../../chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/microphoneStore-
|
|
37
|
+
import "../../chunks/microphoneStore-Do0a5LZ9.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/volumeStore-
|
|
39
|
+
import "../../chunks/volumeStore-D5i1CeFf.mjs";
|
|
40
40
|
|
|
41
41
|
import "../../hooks/useWindow.mjs";
|
|
42
42
|
|
|
43
|
-
import "../../chunks/Button-
|
|
43
|
+
import "../../chunks/Button-C6jYGagD.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/Badge-
|
|
45
|
+
import "../../chunks/Badge-BKZj-pNA.mjs";
|
|
46
46
|
|
|
47
|
-
import "../../chunks/Dot-
|
|
47
|
+
import "../../chunks/Dot-DnfM38Qp.mjs";
|
|
48
48
|
|
|
49
|
-
import "../../chunks/Icon-
|
|
49
|
+
import "../../chunks/Icon-CKS12m2e.mjs";
|
|
50
50
|
|
|
51
|
-
import "../../chunks/ProgressIndicator-
|
|
51
|
+
import "../../chunks/ProgressIndicator-C2EWIn7Z.mjs";
|
|
52
52
|
|
|
53
|
-
import "../../chunks/sharedTypes-
|
|
53
|
+
import "../../chunks/sharedTypes-7jlhdP2f.mjs";
|
|
54
54
|
|
|
55
|
-
import "../../chunks/IconButton-
|
|
55
|
+
import "../../chunks/IconButton-Cka059ZT.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { T as Tip } from "../../chunks/Tip-
|
|
1
|
+
export { T as Tip } from "../../chunks/Tip-5OhdfJW7.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -8,4 +8,4 @@ import "motion/react";
|
|
|
8
8
|
|
|
9
9
|
import "react";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/misc-
|
|
11
|
+
import "../../chunks/misc-C5cfUKzm.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { T as Toast, a as ToastType } from "../../chunks/Toast-
|
|
1
|
+
export { T as Toast, a as ToastType } from "../../chunks/Toast-BlDzsT1J.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -26,20 +26,20 @@ import "../../theme/type.mjs";
|
|
|
26
26
|
|
|
27
27
|
import "../../hooks/useObserveTheme.mjs";
|
|
28
28
|
|
|
29
|
-
import "../../chunks/misc-
|
|
29
|
+
import "../../chunks/misc-C5cfUKzm.mjs";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/webRTCStore-
|
|
31
|
+
import "../../chunks/webRTCStore-BLGNTnV3.mjs";
|
|
32
32
|
|
|
33
33
|
import "zustand";
|
|
34
34
|
|
|
35
|
-
import "../../chunks/WebRTCConnection-
|
|
35
|
+
import "../../chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/microphoneStore-
|
|
37
|
+
import "../../chunks/microphoneStore-Do0a5LZ9.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/volumeStore-
|
|
39
|
+
import "../../chunks/volumeStore-D5i1CeFf.mjs";
|
|
40
40
|
|
|
41
41
|
import "../../hooks/useWindow.mjs";
|
|
42
42
|
|
|
43
|
-
import "../../chunks/Icon-
|
|
43
|
+
import "../../chunks/Icon-CKS12m2e.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/ProgressIndicator-
|
|
45
|
+
import "../../chunks/ProgressIndicator-C2EWIn7Z.mjs";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { T as ToggleButton } from "../../chunks/ToggleButton-
|
|
1
|
+
export { T as ToggleButton } from "../../chunks/ToggleButton-BIIm75PN.mjs";
|
|
2
2
|
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
import "react";
|
|
6
6
|
|
|
7
|
-
import "../../chunks/IconButton-
|
|
7
|
+
import "../../chunks/IconButton-Cka059ZT.mjs";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/tslib.es6-
|
|
9
|
+
import "../../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
10
10
|
|
|
11
11
|
import "motion/react";
|
|
12
12
|
|
|
13
|
-
import "../../chunks/Badge-
|
|
13
|
+
import "../../chunks/Badge-BKZj-pNA.mjs";
|
|
14
14
|
|
|
15
|
-
import "../../chunks/Dot-
|
|
15
|
+
import "../../chunks/Dot-DnfM38Qp.mjs";
|
|
16
16
|
|
|
17
|
-
import "../../chunks/Icon-
|
|
17
|
+
import "../../chunks/Icon-CKS12m2e.mjs";
|
|
18
18
|
|
|
19
19
|
import "../../hooks/useTheme.mjs";
|
|
20
20
|
|
|
@@ -34,20 +34,20 @@ import "../../theme/type.mjs";
|
|
|
34
34
|
|
|
35
35
|
import "../../hooks/useObserveTheme.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/misc-
|
|
37
|
+
import "../../chunks/misc-C5cfUKzm.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/webRTCStore-
|
|
39
|
+
import "../../chunks/webRTCStore-BLGNTnV3.mjs";
|
|
40
40
|
|
|
41
41
|
import "zustand";
|
|
42
42
|
|
|
43
|
-
import "../../chunks/WebRTCConnection-
|
|
43
|
+
import "../../chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/microphoneStore-
|
|
45
|
+
import "../../chunks/microphoneStore-Do0a5LZ9.mjs";
|
|
46
46
|
|
|
47
|
-
import "../../chunks/volumeStore-
|
|
47
|
+
import "../../chunks/volumeStore-D5i1CeFf.mjs";
|
|
48
48
|
|
|
49
49
|
import "../../hooks/useWindow.mjs";
|
|
50
50
|
|
|
51
|
-
import "../../chunks/sharedTypes-
|
|
51
|
+
import "../../chunks/sharedTypes-7jlhdP2f.mjs";
|
|
52
52
|
|
|
53
|
-
import "../../chunks/Label-
|
|
53
|
+
import "../../chunks/Label-B7SDZHF3.mjs";
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "../../chunks/UploadArea-
|
|
1
|
+
export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "../../chunks/UploadArea-AjFofefa.mjs";
|
|
2
2
|
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
import "react";
|
|
6
6
|
|
|
7
|
-
import "../../chunks/misc-
|
|
7
|
+
import "../../chunks/misc-C5cfUKzm.mjs";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/tslib.es6-
|
|
9
|
+
import "../../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/
|
|
12
|
-
|
|
13
|
-
import "../../chunks/FileIcon-DnEohsNX.mjs";
|
|
11
|
+
import "../../chunks/Icon-CKS12m2e.mjs";
|
|
14
12
|
|
|
15
13
|
import "../../hooks/useTheme.mjs";
|
|
16
14
|
|
|
@@ -30,20 +28,22 @@ import "../../theme/type.mjs";
|
|
|
30
28
|
|
|
31
29
|
import "../../hooks/useObserveTheme.mjs";
|
|
32
30
|
|
|
33
|
-
import "../../chunks/webRTCStore-
|
|
31
|
+
import "../../chunks/webRTCStore-BLGNTnV3.mjs";
|
|
34
32
|
|
|
35
33
|
import "zustand";
|
|
36
34
|
|
|
37
|
-
import "../../chunks/WebRTCConnection-
|
|
35
|
+
import "../../chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
38
36
|
|
|
39
|
-
import "../../chunks/microphoneStore-
|
|
37
|
+
import "../../chunks/microphoneStore-Do0a5LZ9.mjs";
|
|
40
38
|
|
|
41
|
-
import "../../chunks/volumeStore-
|
|
39
|
+
import "../../chunks/volumeStore-D5i1CeFf.mjs";
|
|
42
40
|
|
|
43
41
|
import "../../hooks/useWindow.mjs";
|
|
44
42
|
|
|
45
|
-
import "../../chunks/
|
|
46
|
-
|
|
47
|
-
import "../../chunks/ProgressIndicator-BWrcdWvF.mjs";
|
|
43
|
+
import "../../chunks/ProgressIndicator-C2EWIn7Z.mjs";
|
|
48
44
|
|
|
49
45
|
import "motion/react";
|
|
46
|
+
|
|
47
|
+
import "../../chunks/FileList-Cj_k6oel.mjs";
|
|
48
|
+
|
|
49
|
+
import "../../chunks/FileIcon-CudRs_lw.mjs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __awaiter } from "../chunks/tslib.es6-
|
|
2
|
+
import { a as __awaiter } from "../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
3
3
|
|
|
4
4
|
import { useState, useRef, useCallback, useEffect } from "react";
|
|
5
5
|
|
|
6
|
-
import { u as useWebRTC, c as useWebRTCConnection, g as getWebRTCConnections } from "../chunks/webRTCStore-
|
|
6
|
+
import { u as useWebRTC, c as useWebRTCConnection, g as getWebRTCConnections } from "../chunks/webRTCStore-BLGNTnV3.mjs";
|
|
7
7
|
|
|
8
|
-
import { q as useProcessedMicStream } from "../chunks/microphoneStore-
|
|
8
|
+
import { q as useProcessedMicStream } from "../chunks/microphoneStore-Do0a5LZ9.mjs";
|
|
9
9
|
|
|
10
|
-
import { f as useVolume } from "../chunks/volumeStore-
|
|
10
|
+
import { f as useVolume } from "../chunks/volumeStore-D5i1CeFf.mjs";
|
|
11
11
|
|
|
12
12
|
import "zustand";
|
|
13
13
|
|
|
14
|
-
import "../chunks/WebRTCConnection-
|
|
14
|
+
import "../chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
15
15
|
|
|
16
16
|
function useBindWebRTC(options) {
|
|
17
17
|
var _a;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { _ as __rest } from "../chunks/tslib.es6-
|
|
2
|
+
import { _ as __rest } from "../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
3
3
|
|
|
4
4
|
import { useRef, useState, useCallback, useEffect } from "react";
|
|
5
5
|
|
|
6
|
-
import { M as MdBuffer } from "../chunks/MdStreamBuffer-
|
|
6
|
+
import { M as MdBuffer } from "../chunks/MdStreamBuffer-CvU2-p0i.mjs";
|
|
7
7
|
|
|
8
8
|
function useMDStreamBuffer(options) {
|
|
9
9
|
var _a, _b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __awaiter } from "../chunks/tslib.es6-
|
|
2
|
+
import { a as __awaiter } from "../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
3
3
|
|
|
4
4
|
import { useRef, useState, useCallback, useMemo, useEffect } from "react";
|
|
5
5
|
|
|
@@ -71,32 +71,14 @@ function useMicrophone(startMuted = !0, microphoneDeviceId, autoRequest = !0) {
|
|
|
71
71
|
setupAudioProcessing(micStream.current), micTrack.current = getMicTrack(), setCurrentDeviceId(null !== (_a = micTrack.current.getSettings().deviceId) && void 0 !== _a ? _a : null),
|
|
72
72
|
micTrack.current.enabled = !mutedRef.current, mutedRef.current || (yield waitForTrackToBecomeActive(micTrack.current)),
|
|
73
73
|
setIsActive(Boolean("live" === micTrack.current.readyState)), micStream.current;
|
|
74
|
-
}), [ constraints, getMicTrack, setupAudioProcessing, waitForTrackToBecomeActive ]),
|
|
75
|
-
if (hasActiveStream()) return setIsActive(!0), setError(null), micStream.current;
|
|
76
|
-
if (setIsRequesting(!0), yield waitForPaint(), !hasMediaSupport) {
|
|
77
|
-
const nextError = new Error("Microphone access isn't supported");
|
|
78
|
-
return setError(nextError), setCurrentDeviceId(null), setIsActive(!1), mountedRef.current && setIsRequesting(!1),
|
|
79
|
-
null;
|
|
80
|
-
}
|
|
81
|
-
setError(null), stopMicStream();
|
|
82
|
-
try {
|
|
83
|
-
return yield requestStream();
|
|
84
|
-
} catch (error) {
|
|
85
|
-
if (!(error instanceof DOMException && "OverconstrainedError" === error.name || error instanceof DOMException && "NotFoundError" === error.name)) {
|
|
86
|
-
let nextError = new Error("Failed to access microphone");
|
|
87
|
-
throw error instanceof Error && (error.message.toLowerCase().includes("denied permission") || "NotAllowedError" === error.name) && (nextError = new Error("Permission to access the microphone was denied")),
|
|
88
|
-
setError(nextError), setCurrentDeviceId(null), setIsActive(!1), nextError;
|
|
89
|
-
}
|
|
90
|
-
return yield requestStream(void 0, !1);
|
|
91
|
-
} finally {
|
|
92
|
-
setIsRequesting(!1);
|
|
93
|
-
}
|
|
94
|
-
}), [ hasActiveStream, hasMediaSupport, requestStream, stopMicStream, waitForPaint ]), refreshMicrophones = useCallback(() => __awaiter(this, void 0, void 0, function*() {
|
|
74
|
+
}), [ constraints, getMicTrack, setupAudioProcessing, waitForTrackToBecomeActive ]), refreshMicrophones = useCallback(() => __awaiter(this, void 0, void 0, function*() {
|
|
95
75
|
var _a;
|
|
96
76
|
if (!hasMediaSupport) return [];
|
|
97
77
|
try {
|
|
98
|
-
const devices = yield navigator.mediaDevices.enumerateDevices(), currentDeviceId = null === (_a = micTrack.current) || void 0 === _a ? void 0 : _a.getSettings().deviceId,
|
|
99
|
-
|
|
78
|
+
const devices = yield navigator.mediaDevices.enumerateDevices(), currentDeviceId = null === (_a = micTrack.current) || void 0 === _a ? void 0 : _a.getSettings().deviceId, availableInputs = devices.filter(device => "audioinput" === device.kind && "" !== device.deviceId), shouldExposeOptions = function(devices) {
|
|
79
|
+
return devices.some(device => "" !== device.label.trim());
|
|
80
|
+
}(availableInputs) || Boolean(currentDeviceId) || hasActiveStream(), mics = shouldExposeOptions ? function(devices, activeDeviceId) {
|
|
81
|
+
const microphones = devices.filter(device => "" !== device.deviceId), defaultIndex = microphones.findIndex(device => "default" === device.deviceId);
|
|
100
82
|
if (defaultIndex > 0) {
|
|
101
83
|
const [defaultDevice] = microphones.splice(defaultIndex, 1);
|
|
102
84
|
return microphones.unshift(defaultDevice), microphones;
|
|
@@ -109,7 +91,7 @@ function useMicrophone(startMuted = !0, microphoneDeviceId, autoRequest = !0) {
|
|
|
109
91
|
microphones.unshift(activeDevice);
|
|
110
92
|
}
|
|
111
93
|
return microphones;
|
|
112
|
-
}(
|
|
94
|
+
}(availableInputs, currentDeviceId) : [], options = mics.map(mic => ({
|
|
113
95
|
value: {
|
|
114
96
|
id: mic.deviceId
|
|
115
97
|
},
|
|
@@ -119,18 +101,40 @@ function useMicrophone(startMuted = !0, microphoneDeviceId, autoRequest = !0) {
|
|
|
119
101
|
} catch (_b) {
|
|
120
102
|
return setMicrophones([]), setMicOptions([]), [];
|
|
121
103
|
}
|
|
122
|
-
}), [ hasMediaSupport ]),
|
|
104
|
+
}), [ hasActiveStream, hasMediaSupport ]), requestMicrophone = useCallback(() => __awaiter(this, void 0, void 0, function*() {
|
|
105
|
+
if (hasActiveStream()) return setIsActive(!0), setError(null), micStream.current;
|
|
106
|
+
if (setIsRequesting(!0), yield waitForPaint(), !hasMediaSupport) {
|
|
107
|
+
const nextError = new Error("Microphone access isn't supported");
|
|
108
|
+
return setError(nextError), setCurrentDeviceId(null), setIsActive(!1), mountedRef.current && setIsRequesting(!1),
|
|
109
|
+
null;
|
|
110
|
+
}
|
|
111
|
+
setError(null), stopMicStream();
|
|
112
|
+
try {
|
|
113
|
+
const stream = yield requestStream();
|
|
114
|
+
return yield refreshMicrophones(), stream;
|
|
115
|
+
} catch (error) {
|
|
116
|
+
if (!(error instanceof DOMException && "OverconstrainedError" === error.name || error instanceof DOMException && "NotFoundError" === error.name)) {
|
|
117
|
+
let nextError = new Error("Failed to access microphone");
|
|
118
|
+
throw error instanceof Error && (error.message.toLowerCase().includes("denied permission") || "NotAllowedError" === error.name) && (nextError = new Error("Permission to access the microphone was denied")),
|
|
119
|
+
setError(nextError), setCurrentDeviceId(null), setIsActive(!1), nextError;
|
|
120
|
+
}
|
|
121
|
+
const stream = yield requestStream(void 0, !1);
|
|
122
|
+
return yield refreshMicrophones(), stream;
|
|
123
|
+
} finally {
|
|
124
|
+
setIsRequesting(!1);
|
|
125
|
+
}
|
|
126
|
+
}), [ hasActiveStream, hasMediaSupport, refreshMicrophones, requestStream, stopMicStream, waitForPaint ]), setMicrophone = useCallback(deviceId => __awaiter(this, void 0, void 0, function*() {
|
|
123
127
|
var _a;
|
|
124
128
|
setIsRequesting(!0), yield waitForPaint();
|
|
125
129
|
const id = "string" == typeof deviceId ? deviceId : null === (_a = deviceId.value) || void 0 === _a ? void 0 : _a.id;
|
|
126
130
|
try {
|
|
127
|
-
setError(null), stopMicStream(), yield requestStream(id, !1);
|
|
131
|
+
setError(null), stopMicStream(), yield requestStream(id, !1), yield refreshMicrophones();
|
|
128
132
|
} catch (err) {
|
|
129
133
|
setCurrentDeviceId(null), setIsActive(!1), setError(err instanceof Error ? err : new Error("Error switching microphone"));
|
|
130
134
|
} finally {
|
|
131
135
|
setIsRequesting(!1);
|
|
132
136
|
}
|
|
133
|
-
}), [ requestStream, stopMicStream, waitForPaint ]), toggleMute = useCallback(() => {
|
|
137
|
+
}), [ refreshMicrophones, requestStream, stopMicStream, waitForPaint ]), toggleMute = useCallback(() => {
|
|
134
138
|
try {
|
|
135
139
|
muted ? unmuteMic() : muteMic();
|
|
136
140
|
} catch (_a) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
3
|
|
|
4
|
-
import { d as debug } from "../chunks/misc-
|
|
4
|
+
import { d as debug } from "../chunks/misc-C5cfUKzm.mjs";
|
|
5
5
|
|
|
6
|
-
import "../chunks/tslib.es6-
|
|
6
|
+
import "../chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Hook to log component renders, mounts, and unmounts
|
package/dist/esm/hooks.mjs
CHANGED
|
@@ -42,16 +42,16 @@ import "./theme/motion.mjs";
|
|
|
42
42
|
|
|
43
43
|
import "./theme/type.mjs";
|
|
44
44
|
|
|
45
|
-
import "./chunks/tslib.es6-
|
|
45
|
+
import "./chunks/tslib.es6-CDAuOlZ8.mjs";
|
|
46
46
|
|
|
47
|
-
import "./chunks/MdStreamBuffer-
|
|
47
|
+
import "./chunks/MdStreamBuffer-CvU2-p0i.mjs";
|
|
48
48
|
|
|
49
|
-
import "./chunks/webRTCStore-
|
|
49
|
+
import "./chunks/webRTCStore-BLGNTnV3.mjs";
|
|
50
50
|
|
|
51
51
|
import "zustand";
|
|
52
52
|
|
|
53
|
-
import "./chunks/WebRTCConnection-
|
|
53
|
+
import "./chunks/WebRTCConnection-rKAgZEbe.mjs";
|
|
54
54
|
|
|
55
|
-
import "./chunks/microphoneStore-
|
|
55
|
+
import "./chunks/microphoneStore-Do0a5LZ9.mjs";
|
|
56
56
|
|
|
57
|
-
import "./chunks/volumeStore-
|
|
57
|
+
import "./chunks/volumeStore-D5i1CeFf.mjs";
|