@apple-pie/slice 0.1.46 → 0.1.47
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-D7A6YNKq.js → AudioBubble-7MRDr6oW.js} +5 -4
- package/dist/cjs/chunks/{Avatar-NhXEz-E5.js → Avatar-BEQvuKXB.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-BiY5kR8U.js → AvatarGroup-BBigZoAv.js} +1 -1
- package/dist/cjs/chunks/{Badge-DjXygkSp.js → Badge-BvSSeAAt.js} +1 -1
- package/dist/cjs/chunks/{Button-C-omYiMd.js → Button-DXQNFBaZ.js} +1 -1
- package/dist/cjs/chunks/{ButtonBar-BeJEeGL_.js → ButtonBar-BXo6dNuf.js} +1 -1
- package/dist/cjs/chunks/{Camera-D9EEGKDj.js → Camera-BPQ1yF3e.js} +6 -5
- package/dist/cjs/chunks/{CheckBox-B30zlOIJ.js → CheckBox-OnTqLOoy.js} +1 -1
- package/dist/cjs/chunks/{Chip-DHX-Qu95.js → Chip-ekl1KQ93.js} +1 -1
- package/dist/cjs/chunks/{DivInput-Br6pOhYv.js → DivInput-D3SEX8J9.js} +1 -1
- package/dist/cjs/chunks/{Dot-BLu3iqa7.js → Dot-03FuwY2T.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-9eU1y3zx.js → DrggablePanel-CzMav9ix.js} +5 -4
- package/dist/cjs/chunks/{DropDown-CLZSy99h.js → DropDown-DZmhSeRX.js} +1 -1
- package/dist/cjs/chunks/{ErrorSummary-B5lPVdED.js → ErrorSummary-DWQIY4M8.js} +5 -4
- package/dist/cjs/chunks/{FileIcon-CESqm-fD.js → FileIcon-CtEGJMf1.js} +5 -5
- package/dist/cjs/chunks/{FileList-DbjNz28-.js → FileList-31XpLMih.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-KmadT8yF.js → FlexDiv-CC6KADWm.js} +1 -1
- package/dist/cjs/chunks/{Grouper-CACMpHGp.js → Grouper-B9qnrP-4.js} +5 -4
- package/dist/cjs/chunks/{Icon-B36rVqFs.js → Icon-CiZuv_Ch.js} +5 -4
- package/dist/cjs/chunks/{IconButton-Dn424Wsw.js → IconButton-C6ZUdM8z.js} +1 -1
- package/dist/cjs/chunks/{IndexedDB-BRw-IxEC.js → IndexedDB-DFFn9mqX.js} +1 -1
- package/dist/cjs/chunks/{Label-CsEg5AQ2.js → Label-B7bBplmn.js} +1 -1
- package/dist/cjs/chunks/{Level-BuiDjBcq.js → Level-DwSesAi0.js} +5 -1
- package/dist/cjs/chunks/{Modal-Cf9RR9Es.js → Modal-BPPojCas.js} +1 -1
- package/dist/cjs/chunks/{ModalController-tDrizTHZ.js → ModalController-BGEq6nZW.js} +3 -3
- package/dist/cjs/chunks/{Overlay-Ci1FxGZk.js → Overlay-BTyVHmZi.js} +1 -1
- package/dist/cjs/chunks/{Pager-C3WzCySK.js → Pager-CyJRXuXt.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-DSquSJwP.js → ProgressIndicator-DywiCVkO.js} +5 -4
- package/dist/cjs/chunks/{PromptInput-BbXZGAWe.js → PromptInput-Cg5z8XMK.js} +6 -5
- package/dist/cjs/chunks/{RadioButton-VMEcd_W1.js → RadioButton-3LQ__XHx.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-Dqy7lYxE.js → RadioButtonList-CCmGGzhD.js} +1 -1
- package/dist/cjs/chunks/{Slider-BqzYObVj.js → Slider-DEvyBgim.js} +5 -4
- package/dist/cjs/chunks/{Spacer-C56PON7K.js → Spacer-DzKg1JZN.js} +1 -1
- package/dist/cjs/chunks/{Switch-CHr2xPQL.js → Switch-BCnrGlFd.js} +1 -1
- package/dist/cjs/chunks/{TabBar-Co-CXGfB.js → TabBar-tawvDdQ9.js} +6 -5
- package/dist/cjs/chunks/{TextArea-BHdYXzBg.js → TextArea-BCmck_Bu.js} +1 -1
- package/dist/cjs/chunks/{TextField-DlYNng8e.js → TextField-D0ig3i5Z.js} +6 -5
- package/dist/cjs/chunks/{Tip-DEOw8HJ6.js → Tip-DPAa_tZz.js} +1 -1
- package/dist/cjs/chunks/{Toast-DawqmWWR.js → Toast-CjSm6wKq.js} +6 -5
- package/dist/cjs/chunks/{ToggleButton-mIzDlM7o.js → ToggleButton-cNIopPE-.js} +1 -1
- package/dist/cjs/chunks/{UploadArea-WT5XsyU_.js → UploadArea-DoJuVudV.js} +1 -1
- package/dist/cjs/chunks/{Video-Pjf89fZt.js → Video-M1-jtah8.js} +1 -1
- package/dist/cjs/chunks/{VideoController-CkZ4EmHb.js → VideoController-Cghf-ihF.js} +4 -4
- package/dist/cjs/chunks/{WSConnection-ByeRqZeT.js → WSConnection-BERcrJfr.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-BIFUOK1m.js → WebRTCConnection-Dd5i5Vsn.js} +1 -1
- package/dist/cjs/chunks/broadcastChannel-D1XhG6Q1.js +75 -0
- package/dist/cjs/chunks/browserChannelsStore-CPJhMFtD.js +96 -0
- package/dist/cjs/chunks/{localDBStore-Bp9sZnnB.js → localDBStore-CzLeudjH.js} +4 -2
- package/dist/cjs/chunks/{microphoneStore-CvE6xePs.js → microphoneStore-BkaENcMx.js} +1 -1
- package/dist/cjs/chunks/{misc-eL5ZLV74.js → misc-BzvE_9R_.js} +1 -1
- package/dist/cjs/chunks/{sseStore-DnyhZyHc.js → sseStore-C9XlDamt.js} +4 -2
- package/dist/cjs/chunks/{uploads-worker--rEBDgqq.js → uploads-worker-ZLJR3WZA.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-CHIqdTcL.js → uploadsStore-xzGjSmYP.js} +2 -2
- package/dist/cjs/chunks/{viewState-BM1U3FFI.js → viewState-6P26uORS.js} +6 -5
- package/dist/cjs/chunks/{volumeStore-U2OlJf6Y.js → volumeStore-D5uQzCPQ.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-t11G9lB7.js → webRTCStore-CgLUjMDH.js} +3 -1
- package/dist/cjs/chunks/{windowStore-D1mTGGvA.js → windowStore-De7LtHFd.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +7 -7
- 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 +10 -9
- package/dist/cjs/components/ButtonBar/index.js +7 -7
- package/dist/cjs/components/Camera/index.js +8 -8
- package/dist/cjs/components/CheckBox/index.js +7 -7
- package/dist/cjs/components/Chip/index.js +8 -7
- package/dist/cjs/components/DataTable/index.js +11 -10
- 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 +7 -7
- package/dist/cjs/components/DropDown/index.js +7 -7
- package/dist/cjs/components/ErrorSummary/index.js +7 -6
- package/dist/cjs/components/FileIcon/index.js +7 -6
- 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 +8 -7
- package/dist/cjs/components/Icon/index.js +7 -6
- package/dist/cjs/components/IconButton/index.js +9 -9
- package/dist/cjs/components/Label/index.js +3 -3
- package/dist/cjs/components/Level/index.js +4 -4
- package/dist/cjs/components/Modal/index.js +11 -10
- package/dist/cjs/components/ModalController/index.js +6 -6
- 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 +6 -5
- package/dist/cjs/components/PromptInput/index.js +10 -10
- package/dist/cjs/components/RadioButton/index.js +7 -7
- package/dist/cjs/components/RadioButtonList/index.js +8 -8
- package/dist/cjs/components/Slider/index.js +7 -7
- 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 +9 -9
- package/dist/cjs/components/TextArea/index.js +10 -9
- package/dist/cjs/components/Textfield/index.js +10 -10
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +7 -6
- package/dist/cjs/components/ToggleButton/index.js +10 -9
- package/dist/cjs/components/UploadArea/index.js +8 -8
- package/dist/cjs/components/Video/index.js +12 -12
- package/dist/cjs/components/VideoController/index.js +10 -10
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +3 -2
- package/dist/cjs/hooks/useClipboard.js +3 -1
- package/dist/cjs/hooks/useMdStreamBuffer.js +2 -2
- package/dist/cjs/hooks/useMicrophone.js +1 -1
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +7 -6
- package/dist/cjs/index.js +11 -10
- package/dist/cjs/stores/LocalDB.js +6 -6
- package/dist/cjs/stores/SSE.js +6 -5
- package/dist/cjs/stores/WS.js +4 -2
- package/dist/cjs/stores/WebRTC.js +6 -6
- package/dist/cjs/stores/browserChannel.js +10 -0
- 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/video.js +1 -1
- package/dist/cjs/stores/volume.js +2 -2
- package/dist/cjs/stores/window.js +2 -2
- package/dist/cjs/stores.js +12 -5
- package/dist/cjs/utils/index.js +9 -3
- package/dist/cjs/utils/objects/index.js +9 -3
- package/dist/cjs/workers/uploads/uploads.js +2 -2
- package/dist/esm/chunks/{AudioBubble-DzYODlDD.mjs → AudioBubble-sDq1KbG4.mjs} +8 -6
- package/dist/esm/chunks/{Avatar-CLj2yi7I.mjs → Avatar-CgH69dGS.mjs} +2 -2
- package/dist/esm/chunks/{AvatarGroup-BsBGeeDX.mjs → AvatarGroup-CVcONno4.mjs} +2 -2
- package/dist/esm/chunks/{Badge-CxuIh-Xz.mjs → Badge-V0fkzlfk.mjs} +1 -1
- package/dist/esm/chunks/{Button-Bz9ypmSl.mjs → Button-CL0LKJDc.mjs} +6 -6
- package/dist/esm/chunks/{ButtonBar-DgHGxtm7.mjs → ButtonBar-BPLc12tE.mjs} +3 -3
- package/dist/esm/chunks/{Camera-CQenDpVd.mjs → Camera-D6KBmxd_.mjs} +10 -8
- package/dist/esm/chunks/{CheckBox-Bg1tGyjG.mjs → CheckBox-iVGppX1l.mjs} +3 -3
- package/dist/esm/chunks/{Chip-BuIMZul1.mjs → Chip-DO5g84bY.mjs} +4 -4
- package/dist/esm/chunks/{DivInput-YeMKT7Mv.mjs → DivInput-D5m-4myl.mjs} +2 -2
- package/dist/esm/chunks/{Dot-BlmxajCk.mjs → Dot-sfjq9c6Z.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-B-4Wnapx.mjs → DrggablePanel-IO_BrX30.mjs} +7 -5
- package/dist/esm/chunks/{DropDown-FW_C2G4q.mjs → DropDown-BBLh_fWy.mjs} +3 -3
- package/dist/esm/chunks/{ErrorSummary-_8Rk-Wsr.mjs → ErrorSummary-B0YJ3i5i.mjs} +7 -5
- package/dist/esm/chunks/{FileIcon-BSt6hm2F.mjs → FileIcon-hM81mI8u.mjs} +7 -5
- package/dist/esm/chunks/{FileList-D0HPgRL-.mjs → FileList-BCkq2RDu.mjs} +5 -5
- package/dist/esm/chunks/{FlexDiv-DsrFpwch.mjs → FlexDiv-DXMUnFLf.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-DnpGsdiB.mjs → Grouper-16TyXy09.mjs} +8 -6
- package/dist/esm/chunks/{Icon-CptxAEva.mjs → Icon-DfeRt_ez.mjs} +7 -5
- package/dist/esm/chunks/{IconButton-XkOW_lnr.mjs → IconButton-VzkyqbvH.mjs} +5 -5
- package/dist/esm/chunks/{IndexedDB-C57PCioP.mjs → IndexedDB-Dr5zANnZ.mjs} +1 -1
- package/dist/esm/chunks/{Label-BjL3V2bm.mjs → Label-D1Z4Zouo.mjs} +2 -2
- package/dist/esm/chunks/{Level-CciHNq5z.mjs → Level-ChdkPG6_.mjs} +5 -3
- package/dist/esm/chunks/{Modal-45bTlzdT.mjs → Modal-C7n04R_z.mjs} +5 -5
- package/dist/esm/chunks/{ModalController-BfuINJfH.mjs → ModalController-oB5b930d.mjs} +5 -5
- package/dist/esm/chunks/{Overlay-Dho1XXV_.mjs → Overlay-DX_g-1OP.mjs} +1 -1
- package/dist/esm/chunks/{Pager-Brhn9W2p.mjs → Pager-Bz0p-nkX.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-H1AokmcU.mjs → ProgressIndicator-Cx1alCaM.mjs} +7 -5
- package/dist/esm/chunks/{PromptInput-dxlaGMAZ.mjs → PromptInput-Cw7w2DJk.mjs} +9 -7
- package/dist/esm/chunks/{RadioButton-DtxbUP1m.mjs → RadioButton-DNi4HZSs.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-BU7AmRaJ.mjs → RadioButtonList-DuOqut1l.mjs} +3 -3
- package/dist/esm/chunks/{Slider-Ci-Syo6r.mjs → Slider-DESg64FR.mjs} +8 -6
- package/dist/esm/chunks/{Spacer-DLe6P6sl.mjs → Spacer-yLr4JhRb.mjs} +1 -1
- package/dist/esm/chunks/{Switch-tmuC_vFz.mjs → Switch-B8SOJBXI.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-DqT8ukGt.mjs → TabBar-CON4mLhp.mjs} +11 -9
- package/dist/esm/chunks/{TextArea-BwKbadO9.mjs → TextArea-CDTEvkGd.mjs} +2 -2
- package/dist/esm/chunks/{TextField-CbSORtHS.mjs → TextField-CMNdOgk6.mjs} +10 -8
- package/dist/esm/chunks/{Tip-CoyRu-o-.mjs → Tip-B0Ue8ayH.mjs} +2 -2
- package/dist/esm/chunks/{Toast-CfJSmVvm.mjs → Toast-1VODwuQo.mjs} +9 -7
- package/dist/esm/chunks/{ToggleButton-Cq7fm59Y.mjs → ToggleButton-DhiHk_eR.mjs} +2 -2
- package/dist/esm/chunks/{UploadArea-DUpwYakK.mjs → UploadArea-OzgNd37z.mjs} +4 -4
- package/dist/esm/chunks/{Video-DzClo3wr.mjs → Video-Cgq5CCI3.mjs} +5 -5
- package/dist/esm/chunks/{VideoController-ipcig4rq.mjs → VideoController-FZ_rT2N8.mjs} +8 -8
- package/dist/esm/chunks/{WSConnection-B_YnWXbU.mjs → WSConnection-Bg5A_R4Y.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-DWRLYmZt.mjs → WebRTCConnection-DwhXmF5N.mjs} +1 -1
- package/dist/esm/chunks/broadcastChannel-_OaC_OdO.mjs +76 -0
- package/dist/esm/chunks/browserChannelsStore-Dn8RLoFP.mjs +94 -0
- package/dist/esm/chunks/{localDBStore-DNswekRn.mjs → localDBStore-CbMyWyUR.mjs} +4 -2
- package/dist/esm/chunks/{microphoneStore-BVbwClpG.mjs → microphoneStore-tq5JJf5k.mjs} +1 -1
- package/dist/esm/chunks/{misc-BehJA8xr.mjs → misc-BhDxN2k_.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-pAJ2IGAZ.mjs → sseStore-CuK5Cj7t.mjs} +4 -2
- package/dist/esm/chunks/{uploads-worker-BliiKZBP.mjs → uploads-worker-DOZg7N_E.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-Twdke-kc.mjs → uploadsStore-1A4Qh0sX.mjs} +1 -1
- package/dist/esm/chunks/{viewState-DsPZr861.mjs → viewState-CA1LPPV6.mjs} +9 -7
- package/dist/esm/chunks/{volumeStore-B1cNRiOA.mjs → volumeStore-C4J_3uNt.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-Dbm8asHn.mjs → webRTCStore-BRp0i0h6.mjs} +4 -2
- package/dist/esm/chunks/{windowStore-CBzgTFW5.mjs → windowStore-B1On863x.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +10 -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 +14 -12
- package/dist/esm/components/ButtonBar/index.mjs +10 -8
- package/dist/esm/components/Camera/index.mjs +12 -10
- package/dist/esm/components/CheckBox/index.mjs +10 -8
- package/dist/esm/components/Chip/index.mjs +11 -9
- package/dist/esm/components/DataTable/index.mjs +11 -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 +9 -7
- package/dist/esm/components/DropDown/index.mjs +10 -8
- package/dist/esm/components/ErrorSummary/index.mjs +9 -7
- package/dist/esm/components/FileIcon/index.mjs +9 -7
- package/dist/esm/components/FileList/index.mjs +12 -10
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +11 -9
- package/dist/esm/components/Icon/index.mjs +10 -8
- package/dist/esm/components/IconButton/index.mjs +13 -11
- package/dist/esm/components/Label/index.mjs +3 -3
- package/dist/esm/components/Level/index.mjs +6 -4
- package/dist/esm/components/Modal/index.mjs +16 -14
- package/dist/esm/components/ModalController/index.mjs +10 -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 +10 -8
- package/dist/esm/components/PromptInput/index.mjs +17 -15
- package/dist/esm/components/RadioButton/index.mjs +10 -8
- package/dist/esm/components/RadioButtonList/index.mjs +11 -9
- package/dist/esm/components/Slider/index.mjs +10 -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 +14 -12
- package/dist/esm/components/TextArea/index.mjs +15 -13
- package/dist/esm/components/Textfield/index.mjs +16 -14
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +11 -9
- package/dist/esm/components/ToggleButton/index.mjs +15 -13
- package/dist/esm/components/UploadArea/index.mjs +13 -11
- package/dist/esm/components/Video/index.mjs +18 -16
- package/dist/esm/components/VideoController/index.mjs +16 -14
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +7 -5
- package/dist/esm/hooks/useClipboard.mjs +4 -2
- package/dist/esm/hooks/useMdStreamBuffer.mjs +4 -2
- package/dist/esm/hooks/useMicrophone.mjs +1 -1
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +9 -7
- package/dist/esm/index.mjs +60 -58
- package/dist/esm/stores/LocalDB.mjs +5 -3
- package/dist/esm/stores/SSE.mjs +5 -3
- package/dist/esm/stores/WS.mjs +4 -2
- package/dist/esm/stores/WebRTC.mjs +5 -3
- package/dist/esm/stores/browserChannel.mjs +7 -0
- 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/video.mjs +1 -1
- package/dist/esm/stores/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +20 -16
- package/dist/esm/utils/index.mjs +13 -11
- package/dist/esm/utils/objects/index.mjs +9 -7
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +2065 -2065
- package/dist/types/stores/browserChannel/_types.d.ts +24 -0
- package/dist/types/stores/browserChannel/browserChannelsStore.d.ts +42 -0
- package/dist/types/stores/browserChannel/browserChannelsStore.test.d.ts +1 -0
- package/dist/types/stores/browserChannel/index.d.ts +2 -0
- package/dist/types/stores/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/objects/browserChannel/broadcastChannel.d.ts +67 -0
- package/dist/types/utils/objects/browserChannel/broadcastChannel.test.d.ts +1 -0
- package/dist/types/utils/objects/index.d.ts +2 -0
- package/package.json +1 -1
- /package/dist/cjs/chunks/{MdStreamBuffer-D6TMHeW6.js → MdStreamBuffer-Ble8ibwA.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-C6CaqgKt.js → SSEConnection-DncGftXV.js} +0 -0
- /package/dist/cjs/chunks/{_types-B00qXMsk.js → _types-ByMdhdf3.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-DyXEzz5B.js → audioVisualizer-zAy7uTX1.js} +0 -0
- /package/dist/cjs/chunks/{colors-D4KqwENo.js → colors-D5CWjn09.js} +0 -0
- /package/dist/cjs/chunks/{debounce-Dwcudcja.js → debounce-Dm998akY.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-BgSGFbsR.js → modalStore-CG80hn6s.js} +0 -0
- /package/dist/cjs/chunks/{rafThrottle-s6AR2mx7.js → rafThrottle-D-ki3HW1.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-BGj2TuEP.js → sharedTypes-xKamS99V.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-nssDFmCg.js → tipStore-l4N-Ht3k.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-BZfCxYNa.js → toastStore-DSvjQPDV.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-hvdVpg9n.js → tslib.es6-C8i2M07g.js} +0 -0
- /package/dist/cjs/chunks/{videoStore-D1GUKQuQ.js → videoStore-CwqZlMvJ.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-CVQOlAQI.mjs → MdStreamBuffer-eFLLW5Tb.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-B51Za2e1.mjs → SSEConnection-DlEQOzv6.mjs} +0 -0
- /package/dist/esm/chunks/{_types-DLEuRVFo.mjs → _types-BOCtN_Uf.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-BE5XzPMo.mjs → audioVisualizer-Dh04_7kZ.mjs} +0 -0
- /package/dist/esm/chunks/{colors-DrwCjncz.mjs → colors-BzL5-oTQ.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-DNEyxGlg.mjs → debounce-W1TqN0ok.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-ENLMmYBo.mjs → modalStore-pT-zaa0K.mjs} +0 -0
- /package/dist/esm/chunks/{rafThrottle-BGq3oR1J.mjs → rafThrottle-Dn5Hoq7g.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-D8p2SubQ.mjs → sharedTypes-CTv7xT4S.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-Cq54idgj.mjs → tipStore-UMY4yIdr.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-B_t3rRa8.mjs → toastStore-Do6Cy79x.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-DDvIwyzx.mjs → tslib.es6-DcvCgOAo.mjs} +0 -0
- /package/dist/esm/chunks/{videoStore-3qSk7xdi.mjs → videoStore-D8m6mJ4d.mjs} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-DcvCgOAo.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
import React, { useState, useEffect, useCallback, useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import { s as setStyle } from "./misc-
|
|
8
|
+
import { s as setStyle } from "./misc-BhDxN2k_.mjs";
|
|
9
9
|
|
|
10
|
-
import { I as Icon } from "./Icon-
|
|
10
|
+
import { I as Icon } from "./Icon-DfeRt_ez.mjs";
|
|
11
11
|
|
|
12
12
|
var css_wrapper = "RadioButton-module_wrapper__-pWRe flexBox-module_row__z24tF", css_radioIcon = "RadioButton-module_radioIcon__I27Xv flexBox-module_column__ezvMq", css_radioTitle = "RadioButton-module_radioTitle__zCQII flexBox-module_rowStart__4tcxS type-module_body-m-regular__LuQBA", css_radioContent = "RadioButton-module_radioContent__38xVx flexBox-module_columnStart__C7P44";
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-DcvCgOAo.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
import React, { useId, useState, useEffect, useCallback, useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import { s as setStyle } from "./misc-
|
|
8
|
+
import { s as setStyle } from "./misc-BhDxN2k_.mjs";
|
|
9
9
|
|
|
10
|
-
import { R as RadioButton } from "./RadioButton-
|
|
10
|
+
import { R as RadioButton } from "./RadioButton-DNi4HZSs.mjs";
|
|
11
11
|
|
|
12
12
|
var css_wrapper = "RadioButtonList-module_wrapper__wnq1-", css_column = "RadioButtonList-module_column__Bq16e flexBox-module_columnStart__C7P44", css_row = "RadioButtonList-module_row__D3szq flexBox-module_rowStart__4tcxS";
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-DcvCgOAo.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -7,15 +7,17 @@ import React, { useRef, useState, useMemo, useCallback, useEffect } from "react"
|
|
|
7
7
|
|
|
8
8
|
import "../theme/colors.mjs";
|
|
9
9
|
|
|
10
|
-
import { p as pointerPosition } from "./misc-
|
|
10
|
+
import { p as pointerPosition } from "./misc-BhDxN2k_.mjs";
|
|
11
11
|
|
|
12
|
-
import { d as debounce } from "./debounce-
|
|
12
|
+
import { d as debounce } from "./debounce-W1TqN0ok.mjs";
|
|
13
13
|
|
|
14
|
-
import "./
|
|
14
|
+
import "./broadcastChannel-_OaC_OdO.mjs";
|
|
15
15
|
|
|
16
|
-
import "./
|
|
16
|
+
import "./webRTCStore-BRp0i0h6.mjs";
|
|
17
17
|
|
|
18
|
-
import "./
|
|
18
|
+
import "./microphoneStore-tq5JJf5k.mjs";
|
|
19
|
+
|
|
20
|
+
import "./volumeStore-C4J_3uNt.mjs";
|
|
19
21
|
|
|
20
22
|
import "../hooks/useWindow.mjs";
|
|
21
23
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-DcvCgOAo.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -9,23 +9,25 @@ import { useTheme } from "../hooks/useTheme.mjs";
|
|
|
9
9
|
|
|
10
10
|
import "../theme/colors.mjs";
|
|
11
11
|
|
|
12
|
-
import { s as setStyle } from "./misc-
|
|
12
|
+
import { s as setStyle } from "./misc-BhDxN2k_.mjs";
|
|
13
13
|
|
|
14
|
-
import "./
|
|
14
|
+
import "./broadcastChannel-_OaC_OdO.mjs";
|
|
15
15
|
|
|
16
|
-
import "./
|
|
16
|
+
import "./webRTCStore-BRp0i0h6.mjs";
|
|
17
17
|
|
|
18
|
-
import "./
|
|
18
|
+
import "./microphoneStore-tq5JJf5k.mjs";
|
|
19
|
+
|
|
20
|
+
import "./volumeStore-C4J_3uNt.mjs";
|
|
19
21
|
|
|
20
22
|
import "../hooks/useWindow.mjs";
|
|
21
23
|
|
|
22
|
-
import { B as Badge } from "./Badge-
|
|
24
|
+
import { B as Badge } from "./Badge-V0fkzlfk.mjs";
|
|
23
25
|
|
|
24
|
-
import { I as Icon } from "./Icon-
|
|
26
|
+
import { I as Icon } from "./Icon-DfeRt_ez.mjs";
|
|
25
27
|
|
|
26
|
-
import { I as IconButton } from "./IconButton-
|
|
28
|
+
import { I as IconButton } from "./IconButton-VzkyqbvH.mjs";
|
|
27
29
|
|
|
28
|
-
import { T as ToolTipType } from "./sharedTypes-
|
|
30
|
+
import { T as ToolTipType } from "./sharedTypes-CTv7xT4S.mjs";
|
|
29
31
|
|
|
30
32
|
var css = {
|
|
31
33
|
wrapper: "TabBar-module_wrapper__cyOR1 flexBox-module_rowStart__4tcxS",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-DcvCgOAo.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
import React, { useState, useRef, useCallback, useEffect, useMemo } from "react";
|
|
7
7
|
|
|
8
|
-
import { B as Button } from "./Button-
|
|
8
|
+
import { B as Button } from "./Button-CL0LKJDc.mjs";
|
|
9
9
|
|
|
10
10
|
var css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0 scrollBars-module_scrollbars__c-ZPl", css_send = "TextArea-module_send__Cub13", css_xs = "TextArea-module_xs__5e748 type-module_body-xs-regular__ZAFft", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-DcvCgOAo.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -11,21 +11,23 @@ import { useTheme } from "../hooks/useTheme.mjs";
|
|
|
11
11
|
|
|
12
12
|
import "../theme/colors.mjs";
|
|
13
13
|
|
|
14
|
-
import { s as setStyle } from "./misc-
|
|
14
|
+
import { s as setStyle } from "./misc-BhDxN2k_.mjs";
|
|
15
15
|
|
|
16
|
-
import "./
|
|
16
|
+
import "./broadcastChannel-_OaC_OdO.mjs";
|
|
17
17
|
|
|
18
|
-
import "./
|
|
18
|
+
import "./webRTCStore-BRp0i0h6.mjs";
|
|
19
19
|
|
|
20
|
-
import "./
|
|
20
|
+
import "./microphoneStore-tq5JJf5k.mjs";
|
|
21
|
+
|
|
22
|
+
import "./volumeStore-C4J_3uNt.mjs";
|
|
21
23
|
|
|
22
24
|
import "../hooks/useWindow.mjs";
|
|
23
25
|
|
|
24
|
-
import { B as Button } from "./Button-
|
|
26
|
+
import { B as Button } from "./Button-CL0LKJDc.mjs";
|
|
25
27
|
|
|
26
|
-
import { I as Icon } from "./Icon-
|
|
28
|
+
import { I as Icon } from "./Icon-DfeRt_ez.mjs";
|
|
27
29
|
|
|
28
|
-
import { I as IconButton } from "./IconButton-
|
|
30
|
+
import { I as IconButton } from "./IconButton-VzkyqbvH.mjs";
|
|
29
31
|
|
|
30
32
|
var css = {
|
|
31
33
|
wrapper: "TextField-module_wrapper__qZ-p- flexBox-module_rowStart__4tcxS",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-DcvCgOAo.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ import { motion } from "motion/react";
|
|
|
7
7
|
|
|
8
8
|
import React, { useState, useRef, useEffect, useMemo } from "react";
|
|
9
9
|
|
|
10
|
-
import { f as filterClasses } from "./misc-
|
|
10
|
+
import { f as filterClasses } from "./misc-BhDxN2k_.mjs";
|
|
11
11
|
|
|
12
12
|
var css = {
|
|
13
13
|
wrapper: "Tip-module_wrapper__D7ACT flexBox-module_rowStart__4tcxS",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-DcvCgOAo.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -11,19 +11,21 @@ import { useTheme } from "../hooks/useTheme.mjs";
|
|
|
11
11
|
|
|
12
12
|
import "../theme/colors.mjs";
|
|
13
13
|
|
|
14
|
-
import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-
|
|
14
|
+
import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-BhDxN2k_.mjs";
|
|
15
15
|
|
|
16
|
-
import "./
|
|
16
|
+
import "./broadcastChannel-_OaC_OdO.mjs";
|
|
17
17
|
|
|
18
|
-
import "./
|
|
18
|
+
import "./webRTCStore-BRp0i0h6.mjs";
|
|
19
19
|
|
|
20
|
-
import "./
|
|
20
|
+
import "./microphoneStore-tq5JJf5k.mjs";
|
|
21
|
+
|
|
22
|
+
import "./volumeStore-C4J_3uNt.mjs";
|
|
21
23
|
|
|
22
24
|
import "../hooks/useWindow.mjs";
|
|
23
25
|
|
|
24
|
-
import { I as Icon } from "./Icon-
|
|
26
|
+
import { I as Icon } from "./Icon-DfeRt_ez.mjs";
|
|
25
27
|
|
|
26
|
-
import { P as ProgressIndicator } from "./ProgressIndicator-
|
|
28
|
+
import { P as ProgressIndicator } from "./ProgressIndicator-Cx1alCaM.mjs";
|
|
27
29
|
|
|
28
30
|
var ToastType, css = {
|
|
29
31
|
wrapper: "Toast-module_wrapper__1uj9O flexBox-module_rowBetween__5FEvi",
|
|
@@ -3,9 +3,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
|
|
6
|
-
import { I as IconButton } from "./IconButton-
|
|
6
|
+
import { I as IconButton } from "./IconButton-VzkyqbvH.mjs";
|
|
7
7
|
|
|
8
|
-
import { L as Label } from "./Label-
|
|
8
|
+
import { L as Label } from "./Label-D1Z4Zouo.mjs";
|
|
9
9
|
|
|
10
10
|
var css_toggleButton = "ToggleButton-module_toggleButton__H7KgI flexBox-module_rowStart__4tcxS";
|
|
11
11
|
|
|
@@ -3,13 +3,13 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
|
|
4
4
|
import React, { useState, useRef, useId, useCallback, useMemo } from "react";
|
|
5
5
|
|
|
6
|
-
import { s as setStyle, a as accessibleKeyDown } from "./misc-
|
|
6
|
+
import { s as setStyle, a as accessibleKeyDown } from "./misc-BhDxN2k_.mjs";
|
|
7
7
|
|
|
8
|
-
import { I as Icon } from "./Icon-
|
|
8
|
+
import { I as Icon } from "./Icon-DfeRt_ez.mjs";
|
|
9
9
|
|
|
10
|
-
import { P as ProgressIndicator } from "./ProgressIndicator-
|
|
10
|
+
import { P as ProgressIndicator } from "./ProgressIndicator-Cx1alCaM.mjs";
|
|
11
11
|
|
|
12
|
-
import { F as FileList } from "./FileList-
|
|
12
|
+
import { F as FileList } from "./FileList-BCkq2RDu.mjs";
|
|
13
13
|
|
|
14
14
|
var css = {
|
|
15
15
|
wrapper: "UploadArea-module_wrapper__aircC flexBox-module_column__ezvMq",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest, _ as __awaiter } from "./tslib.es6-
|
|
2
|
+
import { a as __rest, _ as __awaiter } from "./tslib.es6-DcvCgOAo.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
import React, { useRef, useState, useCallback, useMemo, useEffect } from "react";
|
|
7
7
|
|
|
8
|
-
import { s as setStyle } from "./misc-
|
|
8
|
+
import { s as setStyle } from "./misc-BhDxN2k_.mjs";
|
|
9
9
|
|
|
10
|
-
import { I as IconButton } from "./IconButton-
|
|
10
|
+
import { I as IconButton } from "./IconButton-VzkyqbvH.mjs";
|
|
11
11
|
|
|
12
|
-
import { S as Slider } from "./Slider-
|
|
12
|
+
import { S as Slider } from "./Slider-DESg64FR.mjs";
|
|
13
13
|
|
|
14
|
-
import { T as ToggleButton } from "./ToggleButton-
|
|
14
|
+
import { T as ToggleButton } from "./ToggleButton-DhiHk_eR.mjs";
|
|
15
15
|
|
|
16
16
|
var PlayState, css_wrapper = "Video-module_wrapper__a9iH8", css_video = "Video-module_video__hxKME", css_controls = "Video-module_controls__X4yt6", css_controlsHeader = "Video-module_controlsHeader__dD64-", css_controlsFooter = "Video-module_controlsFooter__qJNTa", css_controlsBody = "Video-module_controlsBody__2GbQz", css_right = "Video-module_right__UMhfW", css_left = "Video-module_left__XC33m", css_progress = "Video-module_progress__UTWtq";
|
|
17
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "./tslib.es6-
|
|
2
|
+
import { a as __rest } from "./tslib.es6-DcvCgOAo.mjs";
|
|
3
3
|
|
|
4
4
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -7,19 +7,19 @@ import { useDragControls, AnimatePresence, motion } from "motion/react";
|
|
|
7
7
|
|
|
8
8
|
import { useRef, useState, useEffect, useMemo } from "react";
|
|
9
9
|
|
|
10
|
-
import "./microphoneStore-
|
|
10
|
+
import "./microphoneStore-tq5JJf5k.mjs";
|
|
11
11
|
|
|
12
|
-
import "./volumeStore-
|
|
12
|
+
import "./volumeStore-C4J_3uNt.mjs";
|
|
13
13
|
|
|
14
|
-
import "./webRTCStore-
|
|
14
|
+
import "./webRTCStore-BRp0i0h6.mjs";
|
|
15
15
|
|
|
16
|
-
import { s as setStyle } from "./misc-
|
|
16
|
+
import { s as setStyle } from "./misc-BhDxN2k_.mjs";
|
|
17
17
|
|
|
18
|
-
import { I as IconButton } from "./IconButton-
|
|
18
|
+
import { I as IconButton } from "./IconButton-VzkyqbvH.mjs";
|
|
19
19
|
|
|
20
|
-
import { O as Overlay } from "./Overlay-
|
|
20
|
+
import { O as Overlay } from "./Overlay-DX_g-1OP.mjs";
|
|
21
21
|
|
|
22
|
-
import { u as useVideo, a as useVideoActions } from "./videoStore-
|
|
22
|
+
import { u as useVideo, a as useVideoActions } from "./videoStore-D8m6mJ4d.mjs";
|
|
23
23
|
|
|
24
24
|
var css_container = "VideoController-module_container__wNiGy", css_box = "VideoController-module_box__a0PRD", css_wrapper = "VideoController-module_wrapper__RhpUo", css_video = "VideoController-module_video__9bS2L";
|
|
25
25
|
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var MessageType;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Pulls the useful fields off a `messageerror` event into a JSON string.
|
|
5
|
+
* `JSON.stringify(event)` alone won't work here - `MessageEvent`'s properties
|
|
6
|
+
* are getters on the prototype, not own-enumerable, so the default
|
|
7
|
+
* serializer drops all of them and produces `"{}"`. This reads them
|
|
8
|
+
* explicitly instead, so a consumer relying on the unified message stream
|
|
9
|
+
* gets something to actually diagnose. Note `event.origin` here is the DOM
|
|
10
|
+
* event's own `origin` field (the sending window/worker's origin), which is
|
|
11
|
+
* unrelated to a {@link BrowserChannel}'s own `origin` identifier.
|
|
12
|
+
*/
|
|
13
|
+
function serializeMessageEvent(event) {
|
|
14
|
+
var _a;
|
|
15
|
+
return JSON.stringify({
|
|
16
|
+
type: event.type,
|
|
17
|
+
origin: event.origin,
|
|
18
|
+
lastEventId: event.lastEventId,
|
|
19
|
+
data: null !== (_a = event.data) && void 0 !== _a ? _a : null
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A typed wrapper around the native `BroadcastChannel` API for posting and
|
|
25
|
+
* receiving messages between same-origin browsing contexts (tabs, windows,
|
|
26
|
+
* iframes, workers).
|
|
27
|
+
*/ !function(MessageType) {
|
|
28
|
+
MessageType.Data = "data", MessageType.Error = "error";
|
|
29
|
+
}(MessageType || (MessageType = {}));
|
|
30
|
+
|
|
31
|
+
class BrowserChannel {
|
|
32
|
+
/**
|
|
33
|
+
* Open the underlying `BroadcastChannel` and attach listeners.
|
|
34
|
+
*/
|
|
35
|
+
constructor(options) {
|
|
36
|
+
var _a;
|
|
37
|
+
if (this.onMessage = event => {
|
|
38
|
+
const {data: data} = event;
|
|
39
|
+
this.onMessageCallback(data);
|
|
40
|
+
}, this.onError = event => {
|
|
41
|
+
this.onErrorCallback(event), this.onMessageCallback({
|
|
42
|
+
content: serializeMessageEvent(event),
|
|
43
|
+
origin: this.origin,
|
|
44
|
+
type: MessageType.Error
|
|
45
|
+
});
|
|
46
|
+
}, this.name = options.name, this.origin = `${null !== (_a = options.origin) && void 0 !== _a ? _a : ""}.${crypto.randomUUID()}`,
|
|
47
|
+
this.onMessageCallback = options.onMessageCallback, this.onErrorCallback = options.onErrorCallback,
|
|
48
|
+
"undefined" == typeof BroadcastChannel) throw new TypeError("BroadcastChannel is not supported in this environment.");
|
|
49
|
+
this.channel = new BroadcastChannel(options.name), this.attachListeners();
|
|
50
|
+
}
|
|
51
|
+
attachListeners() {
|
|
52
|
+
this.channel.addEventListener("message", this.onMessage), this.channel.addEventListener("messageerror", this.onError);
|
|
53
|
+
}
|
|
54
|
+
cleanUpListeners() {
|
|
55
|
+
this.channel.removeEventListener("message", this.onMessage), this.channel.removeEventListener("messageerror", this.onError);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Post a message to every other same-origin context listening on this
|
|
59
|
+
* channel. The message is wrapped with this instance's `origin` before
|
|
60
|
+
* being sent.
|
|
61
|
+
*/ post(message) {
|
|
62
|
+
this.channel.postMessage({
|
|
63
|
+
content: message,
|
|
64
|
+
origin: this.origin,
|
|
65
|
+
type: MessageType.Data
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Close the channel and remove its listeners. The instance should not be
|
|
70
|
+
* reused after calling this.
|
|
71
|
+
*/ close() {
|
|
72
|
+
this.channel.close(), this.cleanUpListeners();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { BrowserChannel as B, MessageType as M };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { create } from "zustand";
|
|
2
|
+
|
|
3
|
+
import "./tslib.es6-DcvCgOAo.mjs";
|
|
4
|
+
|
|
5
|
+
import { B as BrowserChannel } from "./broadcastChannel-_OaC_OdO.mjs";
|
|
6
|
+
|
|
7
|
+
const useBrowserChannelsStore = create((set, get) => ({
|
|
8
|
+
channels: null,
|
|
9
|
+
message: null,
|
|
10
|
+
messages: null,
|
|
11
|
+
actions: {
|
|
12
|
+
addChannel: (config, replace = !0) => {
|
|
13
|
+
var _a;
|
|
14
|
+
const existingChannel = null === (_a = get().channels) || void 0 === _a ? void 0 : _a[config.name];
|
|
15
|
+
if (existingChannel && !replace) return;
|
|
16
|
+
null == existingChannel || existingChannel.close();
|
|
17
|
+
const channel = new BrowserChannel(Object.assign(Object.assign({}, config), {
|
|
18
|
+
onMessageCallback: message => {
|
|
19
|
+
set(state => ({
|
|
20
|
+
message: message,
|
|
21
|
+
messages: Object.assign(Object.assign({}, state.messages), {
|
|
22
|
+
[config.name]: message
|
|
23
|
+
})
|
|
24
|
+
}));
|
|
25
|
+
},
|
|
26
|
+
onErrorCallback: () => {}
|
|
27
|
+
}));
|
|
28
|
+
set(state => {
|
|
29
|
+
const nextMessages = Object.assign({}, state.messages);
|
|
30
|
+
return delete nextMessages[config.name], {
|
|
31
|
+
channels: Object.assign(Object.assign({}, state.channels), {
|
|
32
|
+
[config.name]: channel
|
|
33
|
+
}),
|
|
34
|
+
messages: Object.keys(nextMessages).length > 0 ? nextMessages : null
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
removeChannel: channelName => {
|
|
39
|
+
var _a;
|
|
40
|
+
const existingChannel = null === (_a = get().channels) || void 0 === _a ? void 0 : _a[channelName];
|
|
41
|
+
return !!existingChannel && (existingChannel.close(), set(state => {
|
|
42
|
+
const remainingChannels = Object.assign({}, state.channels);
|
|
43
|
+
delete remainingChannels[channelName];
|
|
44
|
+
const remainingMessages = Object.assign({}, state.messages);
|
|
45
|
+
return delete remainingMessages[channelName], {
|
|
46
|
+
channels: Object.keys(remainingChannels).length > 0 ? remainingChannels : null,
|
|
47
|
+
messages: Object.keys(remainingMessages).length > 0 ? remainingMessages : null
|
|
48
|
+
};
|
|
49
|
+
}), !0);
|
|
50
|
+
},
|
|
51
|
+
addChannels: (configs, replace = !0) => {
|
|
52
|
+
for (const config of configs) get().actions.addChannel(config, replace);
|
|
53
|
+
},
|
|
54
|
+
removeChannels: () => {
|
|
55
|
+
const existingChannels = get().channels;
|
|
56
|
+
if (!existingChannels || 0 === Object.keys(existingChannels).length) return !1;
|
|
57
|
+
for (const channel of Object.values(existingChannels)) channel.close();
|
|
58
|
+
return set({
|
|
59
|
+
channels: null,
|
|
60
|
+
messages: null
|
|
61
|
+
}), !0;
|
|
62
|
+
},
|
|
63
|
+
post: (channelName, message) => {
|
|
64
|
+
var _a;
|
|
65
|
+
const channel = null === (_a = get().channels) || void 0 === _a ? void 0 : _a[channelName];
|
|
66
|
+
return !!channel && (channel.post(message), !0);
|
|
67
|
+
},
|
|
68
|
+
isActiveChannel: channelName => {
|
|
69
|
+
var _a;
|
|
70
|
+
return Boolean(null === (_a = get().channels) || void 0 === _a ? void 0 : _a[channelName]);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
})), useBrowserChannels = () => useBrowserChannelsStore(state => state.channels), useBrowserChannelActions = () => useBrowserChannelsStore(state => state.actions), useIsActiveChannel = channelName => useBrowserChannelsStore(state => {
|
|
74
|
+
var _a;
|
|
75
|
+
return Boolean(null === (_a = state.channels) || void 0 === _a ? void 0 : _a[channelName]);
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
function useMessage(channelName, type) {
|
|
79
|
+
return useBrowserChannelsStore(state => {
|
|
80
|
+
var _a;
|
|
81
|
+
const message = null === (_a = state.messages) || void 0 === _a ? void 0 : _a[channelName];
|
|
82
|
+
return message ? type && message.type !== type ? null : message : null;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const browserChannelActions = useBrowserChannelsStore.getState().actions, getBrowserChannels = () => useBrowserChannelsStore.getState().channels, getLastBrowserChannelMessage = () => useBrowserChannelsStore.getState().message;
|
|
87
|
+
|
|
88
|
+
function getMessage(channelName, type) {
|
|
89
|
+
var _a;
|
|
90
|
+
const message = null === (_a = useBrowserChannelsStore.getState().messages) || void 0 === _a ? void 0 : _a[channelName];
|
|
91
|
+
return message ? type && message.type !== type ? null : message : null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { getLastBrowserChannelMessage as a, browserChannelActions as b, getMessage as c, useBrowserChannels as d, useBrowserChannelsStore as e, useIsActiveChannel as f, getBrowserChannels as g, useMessage as h, useBrowserChannelActions as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __rest } from "./tslib.es6-
|
|
1
|
+
import { _ as __awaiter, a as __rest } from "./tslib.es6-DcvCgOAo.mjs";
|
|
2
2
|
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
|
|
@@ -6,7 +6,9 @@ import { create } from "zustand";
|
|
|
6
6
|
|
|
7
7
|
import { useShallow } from "zustand/react/shallow";
|
|
8
8
|
|
|
9
|
-
import { I as IndexedDB } from "./IndexedDB-
|
|
9
|
+
import { I as IndexedDB } from "./IndexedDB-Dr5zANnZ.mjs";
|
|
10
|
+
|
|
11
|
+
import "./broadcastChannel-_OaC_OdO.mjs";
|
|
10
12
|
|
|
11
13
|
function isValidIDBKey(key) {
|
|
12
14
|
return "string" == typeof key || "number" == typeof key || key instanceof Date || key instanceof ArrayBuffer || (Array.isArray(key) ? key.every(entry => isValidIDBKey(entry)) : ArrayBuffer.isView(key));
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { create } from "zustand";
|
|
2
2
|
|
|
3
|
-
import "./tslib.es6-
|
|
3
|
+
import "./tslib.es6-DcvCgOAo.mjs";
|
|
4
4
|
|
|
5
|
-
import { S as SSEConnection } from "./SSEConnection-
|
|
5
|
+
import { S as SSEConnection } from "./SSEConnection-DlEQOzv6.mjs";
|
|
6
|
+
|
|
7
|
+
import "./broadcastChannel-_OaC_OdO.mjs";
|
|
6
8
|
|
|
7
9
|
const useSSEStore = create((set, get) => ({
|
|
8
10
|
connections: [],
|
|
@@ -2,21 +2,23 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
|
|
3
3
|
import React, { useCallback, useEffect, useState, useRef, useMemo } from "react";
|
|
4
4
|
|
|
5
|
-
import { s as setStyle, a as accessibleKeyDown } from "./misc-
|
|
5
|
+
import { s as setStyle, a as accessibleKeyDown } from "./misc-BhDxN2k_.mjs";
|
|
6
6
|
|
|
7
|
-
import { I as Icon } from "./Icon-
|
|
7
|
+
import { I as Icon } from "./Icon-DfeRt_ez.mjs";
|
|
8
8
|
|
|
9
9
|
import "../theme/colors.mjs";
|
|
10
10
|
|
|
11
|
-
import "./tslib.es6-
|
|
11
|
+
import "./tslib.es6-DcvCgOAo.mjs";
|
|
12
12
|
|
|
13
|
-
import { r as rafThrottle } from "./rafThrottle-
|
|
13
|
+
import { r as rafThrottle } from "./rafThrottle-Dn5Hoq7g.mjs";
|
|
14
14
|
|
|
15
|
-
import "./
|
|
15
|
+
import "./broadcastChannel-_OaC_OdO.mjs";
|
|
16
16
|
|
|
17
|
-
import "./
|
|
17
|
+
import "./webRTCStore-BRp0i0h6.mjs";
|
|
18
18
|
|
|
19
|
-
import "./
|
|
19
|
+
import "./microphoneStore-tq5JJf5k.mjs";
|
|
20
|
+
|
|
21
|
+
import "./volumeStore-C4J_3uNt.mjs";
|
|
20
22
|
|
|
21
23
|
import "../hooks/useWindow.mjs";
|
|
22
24
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { _ as __awaiter } from "./tslib.es6-
|
|
1
|
+
import { _ as __awaiter } from "./tslib.es6-DcvCgOAo.mjs";
|
|
2
2
|
|
|
3
3
|
import { create } from "zustand";
|
|
4
4
|
|
|
5
|
-
import { W as WebRTCConnection } from "./WebRTCConnection-
|
|
5
|
+
import { W as WebRTCConnection } from "./WebRTCConnection-DwhXmF5N.mjs";
|
|
6
|
+
|
|
7
|
+
import "./broadcastChannel-_OaC_OdO.mjs";
|
|
6
8
|
|
|
7
9
|
const useWebRTCStore = create((set, get) => ({
|
|
8
10
|
connections: [],
|