@apple-pie/slice 0.1.31 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -284
- package/dist/cjs/chunks/{AudioBubble-k7qS53g6.js → AudioBubble-_eYM1QMu.js} +4 -3
- package/dist/cjs/chunks/{Avatar-hP8GuwvD.js → Avatar-DTro_MXZ.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-DMy34q7_.js → AvatarGroup-OPJJ_Te5.js} +1 -1
- package/dist/cjs/chunks/{Badge-D2TbyfJS.js → Badge-DWUeXxm2.js} +1 -1
- package/dist/cjs/chunks/{Button-CTsHZBEB.js → Button-CuGvPAkH.js} +1 -1
- package/dist/cjs/chunks/{ButtonBar-BRb1PTmw.js → ButtonBar-CbXToyfD.js} +1 -1
- package/dist/cjs/chunks/{Camera-CKv087kr.js → Camera-DjENiyud.js} +5 -4
- package/dist/cjs/chunks/{CheckBox-VRIL1FHh.js → CheckBox-DiJpbdy5.js} +1 -1
- package/dist/cjs/chunks/{Chip-Dr3vKvRY.js → Chip-kzOvEo0P.js} +1 -1
- package/dist/cjs/chunks/{DivInput-Ci0gaCWL.js → DivInput-B917fKB9.js} +1 -1
- package/dist/cjs/chunks/{Dot-C0MvSJOl.js → Dot-DaRF2JyO.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-DflouLUs.js → DrggablePanel-CJTEmYW6.js} +4 -3
- package/dist/cjs/chunks/{DropDown-BS1H62yj.js → DropDown-DRSQvXCC.js} +1 -1
- package/dist/cjs/chunks/{ErrorSummary-B3tof7ir.js → ErrorSummary-ltiIsgJ6.js} +4 -3
- package/dist/cjs/chunks/{FileIcon-Te8MaqTs.js → FileIcon-WIVOTJLa.js} +5 -3
- package/dist/cjs/chunks/{FileList-CDcfKIV6.js → FileList-CzQZZErI.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-wO8IY0Zf.js → FlexDiv-CBENyLT4.js} +1 -1
- package/dist/cjs/chunks/{Grouper-DyGkzdvz.js → Grouper-Cd3AJEFv.js} +4 -3
- package/dist/cjs/chunks/{Icon-BFZ_5Qv3.js → Icon-DjvProjz.js} +4 -3
- package/dist/cjs/chunks/{IconButton-CgsuJIuF.js → IconButton-BuwQLUuj.js} +1 -1
- package/dist/cjs/chunks/{IndexedDB-Dgwal8na.js → IndexedDB-Ddhq6Gjd.js} +1 -1
- package/dist/cjs/chunks/{Label-BuyhcJbF.js → Label-d32ENzwL.js} +1 -1
- package/dist/cjs/chunks/Level-B8eT8XyV.js +58 -0
- package/dist/cjs/chunks/{MdStreamBuffer-CbG_VeRI.js → MdStreamBuffer-Chwibu07.js} +38 -16
- package/dist/cjs/chunks/{Modal-ByRyv3wy.js → Modal-CUAj4e6x.js} +34 -8
- package/dist/cjs/chunks/ModalController-BwFAVI5G.js +80 -0
- package/dist/cjs/chunks/{Overlay-FooE9M_s.js → Overlay-CaAA3ey5.js} +1 -1
- package/dist/cjs/chunks/{Pager-B-cuwffo.js → Pager-uExZ5E3x.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-ByZ_aYAZ.js → ProgressIndicator-DwqslY4o.js} +4 -3
- package/dist/cjs/chunks/{PromptInput--grtHPvy.js → PromptInput-Dl8l8cZv.js} +34 -30
- package/dist/cjs/chunks/{RadioButton-DP2X1dA_.js → RadioButton-DPpAOFQt.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-COGNW5y3.js → RadioButtonList-IbPA6A3y.js} +1 -1
- package/dist/cjs/chunks/{Slider-G1a8UKef.js → Slider-D5oa7NGy.js} +1 -1
- package/dist/cjs/chunks/{Spacer-CsRCleXv.js → Spacer-DtUh2VLv.js} +1 -1
- package/dist/cjs/chunks/{Switch-OBVHKn_D.js → Switch-Bs0r5va5.js} +1 -1
- package/dist/cjs/chunks/{TabBar-C1HkBaxE.js → TabBar-BCSTg_Uc.js} +4 -3
- package/dist/cjs/chunks/{TextArea-BEmNI_HZ.js → TextArea-Dj7jsvVr.js} +1 -1
- package/dist/cjs/chunks/{TextField-D9_COA9H.js → TextField-DNP0wJla.js} +5 -4
- package/dist/cjs/chunks/{Tip-2W0u_oQN.js → Tip-awq6PDZa.js} +1 -1
- package/dist/cjs/chunks/{Toast-B9jX6ioq.js → Toast-xS1TC3Ba.js} +7 -6
- package/dist/cjs/chunks/{ToggleButton-C_Gu5dYR.js → ToggleButton-CqD5c6JA.js} +4 -3
- package/dist/cjs/chunks/{UploadArea-ENFAf4tE.js → UploadArea-CvWqk8YK.js} +1 -1
- package/dist/cjs/chunks/{WSConnection-CZ22tcLz.js → WSConnection-BACWw4TS.js} +1 -1
- package/dist/cjs/chunks/WebRTCConnection-DBeyg4j9.js +252 -0
- package/dist/cjs/chunks/{localDBStore-Ca73jeFf.js → localDBStore-wgCc1SmV.js} +1 -1
- package/dist/cjs/chunks/{microphoneStore-lxYIvhN8.js → microphoneStore-Dy5TwE2I.js} +27 -4
- package/dist/cjs/chunks/{misc-DZAbObFp.js → misc-BwQIEIuF.js} +1 -1
- package/dist/cjs/chunks/{sseStore-Bq7sVvyA.js → sseStore-CFFaYonG.js} +2 -2
- package/dist/cjs/chunks/{uploads-worker-CD-annza.js → uploads-worker-DWvOe9F8.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-CUeB10zx.js → uploadsStore-BCmts7Ie.js} +2 -2
- package/dist/cjs/chunks/{volumeStore-roYTyKJ2.js → volumeStore-BXFAQhvS.js} +5 -4
- package/dist/cjs/chunks/webRTCStore-DRjvbnve.js +55 -0
- package/dist/cjs/chunks/{windowStore-BdJv-RF0.js → windowStore-C4Bg6I9i.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +6 -4
- 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 -7
- package/dist/cjs/components/ButtonBar/index.js +6 -4
- package/dist/cjs/components/Camera/index.js +7 -5
- package/dist/cjs/components/CheckBox/index.js +6 -4
- package/dist/cjs/components/Chip/index.js +7 -5
- 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 -3
- package/dist/cjs/components/DropDown/index.js +6 -4
- package/dist/cjs/components/ErrorSummary/index.js +5 -3
- package/dist/cjs/components/FileIcon/index.js +5 -3
- package/dist/cjs/components/FileList/index.js +7 -5
- package/dist/cjs/components/FlexDiv/index.js +2 -2
- package/dist/cjs/components/Grouper/index.js +7 -5
- package/dist/cjs/components/Icon/index.js +5 -3
- package/dist/cjs/components/IconButton/index.js +8 -6
- package/dist/cjs/components/Label/index.js +3 -3
- package/dist/cjs/components/Level/index.js +7 -0
- package/dist/cjs/components/Modal/index.js +10 -8
- package/dist/cjs/components/ModalController/index.js +6 -4
- 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 -3
- package/dist/cjs/components/PromptInput/index.js +9 -7
- package/dist/cjs/components/RadioButton/index.js +6 -4
- package/dist/cjs/components/RadioButtonList/index.js +7 -5
- package/dist/cjs/components/Slider/index.js +4 -4
- 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 -6
- package/dist/cjs/components/TextArea/index.js +9 -7
- package/dist/cjs/components/Textfield/index.js +9 -7
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +6 -4
- package/dist/cjs/components/ToggleButton/index.js +9 -7
- package/dist/cjs/components/UploadArea/index.js +11 -10
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +60 -0
- package/dist/cjs/hooks/useLocalStore.js +3 -3
- package/dist/cjs/hooks/useMdStreamBuffer.js +55 -30
- package/dist/cjs/hooks/useMicrophone.js +1 -1
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +7 -4
- package/dist/cjs/index.js +19 -18
- package/dist/cjs/providers/ThemeProvider.js +5 -4
- package/dist/cjs/providers/themeServer.js +15 -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 +9 -0
- package/dist/cjs/stores/microphone.js +5 -4
- 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 +24 -19
- package/dist/cjs/utils/index.js +4 -3
- package/dist/cjs/utils/objects/index.js +4 -3
- package/dist/cjs/workers/uploads/uploads.js +2 -2
- package/dist/esm/chunks/{AudioBubble-DfrxyTX_.mjs → AudioBubble-SB1LCBlJ.mjs} +9 -3
- package/dist/esm/chunks/{Avatar-pA41Pcyl.mjs → Avatar-B6PcVOmT.mjs} +2 -2
- package/dist/esm/chunks/{AvatarGroup-CZBtWjnj.mjs → AvatarGroup-DEb3j2IZ.mjs} +2 -2
- package/dist/esm/chunks/{Badge-pLwG0zm7.mjs → Badge-bh5UVUnt.mjs} +1 -1
- package/dist/esm/chunks/{Button-BJoMLZIs.mjs → Button-CWKs3uAV.mjs} +6 -6
- package/dist/esm/chunks/{ButtonBar-BO2RUJ8R.mjs → ButtonBar-CWeMhkSb.mjs} +3 -3
- package/dist/esm/chunks/{Camera-4MNA52HG.mjs → Camera-BmuMA9xY.mjs} +11 -5
- package/dist/esm/chunks/{CheckBox-7KAsvZld.mjs → CheckBox-BR6a2n0j.mjs} +3 -3
- package/dist/esm/chunks/{Chip-BuGvCLLU.mjs → Chip-DXW0jxKf.mjs} +4 -4
- package/dist/esm/chunks/{DivInput-D0YzSWjJ.mjs → DivInput-BWO1EJXA.mjs} +2 -2
- package/dist/esm/chunks/{Dot-h26m47Z-.mjs → Dot-DMst-5Q2.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-Bh6HLPMX.mjs → DrggablePanel-qxrCS7Ot.mjs} +8 -2
- package/dist/esm/chunks/{DropDown-NgMYjjXn.mjs → DropDown-DlO2J4QP.mjs} +3 -3
- package/dist/esm/chunks/{ErrorSummary-nNm9qymE.mjs → ErrorSummary-BplQFunJ.mjs} +8 -2
- package/dist/esm/chunks/{FileIcon-BqyV1wut.mjs → FileIcon-iFmAF7_a.mjs} +8 -2
- package/dist/esm/chunks/{FileList-C1tOvoc0.mjs → FileList-CztHFCJe.mjs} +5 -5
- package/dist/esm/chunks/{FlexDiv-CkK-DAyg.mjs → FlexDiv-DGmDZL7M.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-CyrOkuu2.mjs → Grouper-DxOISLzH.mjs} +9 -3
- package/dist/esm/chunks/{Icon-DjW0Krm8.mjs → Icon-L8B35JN1.mjs} +8 -2
- package/dist/esm/chunks/{IconButton-DdLhTUl0.mjs → IconButton-DxwJemEK.mjs} +5 -5
- package/dist/esm/chunks/{IndexedDB-DVoDikoA.mjs → IndexedDB-DA5oZXju.mjs} +1 -1
- package/dist/esm/chunks/{Label-DhmJ_Sln.mjs → Label-wDPtyK4h.mjs} +2 -2
- package/dist/esm/chunks/Level-B9JayinM.mjs +63 -0
- package/dist/esm/chunks/{MdStreamBuffer-4AJH8WaN.mjs → MdStreamBuffer-Cyon3ytf.mjs} +38 -16
- package/dist/esm/chunks/{Modal-FztrJsQo.mjs → Modal-C-Q2A_RY.mjs} +39 -13
- package/dist/esm/chunks/ModalController-ClAjHLPb.mjs +91 -0
- package/dist/esm/chunks/{Overlay-Dsy55Bxm.mjs → Overlay-Dr9YYxJ6.mjs} +1 -1
- package/dist/esm/chunks/{Pager-BqSdwL0L.mjs → Pager-DPbTCMNe.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-BnqZFATV.mjs → ProgressIndicator-HaJJDZ-m.mjs} +8 -2
- package/dist/esm/chunks/{PromptInput-CRkcPXJu.mjs → PromptInput-wGhpXw-h.mjs} +38 -31
- package/dist/esm/chunks/{RadioButton-DXq3yniV.mjs → RadioButton-oOGgTDhg.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-BgOskHCP.mjs → RadioButtonList-CDWKVvyL.mjs} +3 -3
- package/dist/esm/chunks/{Slider-DPOy9uNI.mjs → Slider-ioPGftDY.mjs} +3 -3
- package/dist/esm/chunks/{Spacer-BJd_D0Fn.mjs → Spacer-VJBjxVlr.mjs} +1 -1
- package/dist/esm/chunks/{Switch-DHqlyizo.mjs → Switch-BCk2sTh3.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-RBXExqMK.mjs → TabBar-C1DYnCRx.mjs} +11 -5
- package/dist/esm/chunks/{TextArea-CIlx_P26.mjs → TextArea-CF3r5m2G.mjs} +2 -2
- package/dist/esm/chunks/{TextField-CX72ybwH.mjs → TextField-BNfTj9v2.mjs} +11 -5
- package/dist/esm/chunks/{Tip-COBSyEjm.mjs → Tip-DIKQvxxO.mjs} +2 -2
- package/dist/esm/chunks/{Toast-BTm3HxDD.mjs → Toast-CkXPrDpp.mjs} +12 -6
- package/dist/esm/chunks/{ToggleButton-DujsCKF3.mjs → ToggleButton-Dvy8fc4t.mjs} +5 -4
- package/dist/esm/chunks/{UploadArea-D--Nt8Ed.mjs → UploadArea-D_xGzR2e.mjs} +4 -4
- package/dist/esm/chunks/{WSConnection-BMXcuW3f.mjs → WSConnection-TiYLENWB.mjs} +1 -1
- package/dist/esm/chunks/WebRTCConnection-d0Yvd66q.mjs +252 -0
- package/dist/esm/chunks/{localDBStore-36E3160Z.mjs → localDBStore-C-5y16uv.mjs} +2 -2
- package/dist/esm/chunks/{microphoneStore-Cexu82zH.mjs → microphoneStore-Cbx9nV4R.mjs} +26 -3
- package/dist/esm/chunks/{misc-CTGTuM2J.mjs → misc-zecH7-IH.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-Dow4NXkZ.mjs → sseStore-DIquUNpm.mjs} +2 -2
- package/dist/esm/chunks/{tslib.es6-BX2F90pK.mjs → tslib.es6-CVvvNSPr.mjs} +1 -1
- package/dist/esm/chunks/{uploads-worker-Dhyp4ot3.mjs → uploads-worker-CUggKU9b.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-DT4lFybE.mjs → uploadsStore-9QngohOe.mjs} +1 -1
- package/dist/esm/chunks/{volumeStore-RAxdmQ60.mjs → volumeStore-BrgZCRKF.mjs} +5 -4
- package/dist/esm/chunks/webRTCStore-DhFE9-bb.mjs +57 -0
- package/dist/esm/chunks/{windowStore-C4AZexIa.mjs → windowStore-BKW7HyoD.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +14 -4
- 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 +18 -8
- package/dist/esm/components/ButtonBar/index.mjs +14 -4
- package/dist/esm/components/Camera/index.mjs +16 -6
- package/dist/esm/components/CheckBox/index.mjs +14 -4
- package/dist/esm/components/Chip/index.mjs +15 -5
- 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 +13 -3
- package/dist/esm/components/DropDown/index.mjs +14 -4
- package/dist/esm/components/ErrorSummary/index.mjs +13 -3
- package/dist/esm/components/FileIcon/index.mjs +13 -3
- package/dist/esm/components/FileList/index.mjs +16 -6
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +15 -5
- package/dist/esm/components/Icon/index.mjs +14 -4
- package/dist/esm/components/IconButton/index.mjs +17 -7
- package/dist/esm/components/Label/index.mjs +3 -3
- package/dist/esm/components/Level/index.mjs +11 -0
- package/dist/esm/components/Modal/index.mjs +20 -10
- package/dist/esm/components/ModalController/index.mjs +14 -6
- 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 +14 -4
- package/dist/esm/components/PromptInput/index.mjs +22 -12
- package/dist/esm/components/RadioButton/index.mjs +14 -4
- package/dist/esm/components/RadioButtonList/index.mjs +15 -5
- package/dist/esm/components/Slider/index.mjs +4 -4
- 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 +18 -8
- package/dist/esm/components/TextArea/index.mjs +19 -9
- package/dist/esm/components/Textfield/index.mjs +20 -10
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +15 -5
- package/dist/esm/components/ToggleButton/index.mjs +19 -9
- package/dist/esm/components/UploadArea/index.mjs +19 -9
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +72 -0
- package/dist/esm/hooks/useLocalStore.mjs +3 -3
- package/dist/esm/hooks/useMdStreamBuffer.mjs +56 -28
- package/dist/esm/hooks/useMicrophone.mjs +1 -1
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +14 -2
- package/dist/esm/index.mjs +62 -50
- package/dist/esm/providers/ThemeProvider.mjs +6 -5
- package/dist/esm/providers/themeServer.mjs +11 -6
- 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 +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/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +18 -14
- package/dist/esm/utils/index.mjs +11 -9
- package/dist/esm/utils/objects/index.mjs +8 -6
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +76 -13
- package/dist/types/components/Level/Level.d.ts +5 -0
- package/dist/types/components/Level/_types.d.ts +21 -0
- package/dist/types/components/Level/index.d.ts +2 -0
- package/dist/types/components/Modal/_types.d.ts +3 -0
- package/dist/types/components/PromptInput/PromptInput.d.ts +10 -2
- package/dist/types/components/PromptInput/_types.d.ts +5 -1
- package/dist/types/components/Toast/_types.d.ts +1 -0
- package/dist/types/components/ToggleButton/_types.d.ts +1 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useBindWebRTC/index.d.ts +1 -0
- package/dist/types/hooks/useBindWebRTC/useBindWebRTC.d.ts +15 -0
- package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +1 -1
- package/dist/types/hooks/useMdStreamBuffer/useMdStreamBuffer.d.ts +6 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/providers/ThemeProvider.d.ts +1 -0
- package/dist/types/providers/themeServer.d.ts +7 -3
- package/dist/types/stores/WebRTC/_types.d.ts +16 -0
- package/dist/types/stores/WebRTC/index.d.ts +2 -0
- package/dist/types/stores/WebRTC/webRTCStore.d.ts +21 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/microphone/index.d.ts +1 -1
- package/dist/types/stores/microphone/microphoneStore.d.ts +14 -1
- package/dist/types/stores/toast/_types.d.ts +1 -0
- package/dist/types/stores/volume/_types.d.ts +3 -1
- package/dist/types/stores/volume/volumeStore.d.ts +6 -2
- package/dist/types/utils/functions/files.d.ts +1 -1
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/objects/MDStreamBuffer/MdStreamBuffer.d.ts +10 -0
- package/dist/types/utils/objects/MDStreamBuffer/_types.d.ts +2 -0
- package/dist/types/utils/objects/WebRTCConnection/WebRTCConnection.d.ts +37 -3
- package/dist/types/utils/objects/WebRTCConnection/_types.d.ts +13 -4
- package/dist/types/utils/objects/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/chunks/ModalController-xjflFsjF.js +0 -68
- package/dist/esm/chunks/ModalController-C1BnM5Dz.mjs +0 -76
- /package/dist/cjs/chunks/{SSEConnection-ACoOeeTO.js → SSEConnection-CF5WZG9b.js} +0 -0
- /package/dist/cjs/chunks/{_types-k-3V1fz_.js → _types-BTdDWVYI.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-MOSbvvnZ.js → audioVisualizer-C7fMG0WH.js} +0 -0
- /package/dist/cjs/chunks/{colors-B0_3srZN.js → colors-CmOkcjB3.js} +0 -0
- /package/dist/cjs/chunks/{debounce-CaoYvh12.js → debounce-BtCCTkbG.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-D4bOjuWd.js → modalStore-CaQkdY5_.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-CthHPjrO.js → sharedTypes-BOieqpQy.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-CPB7RHKY.js → tipStore-4Bs9v2sg.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-6eHe6esp.js → toastStore-CyCE9-lr.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-CzpRaW14.js → tslib.es6-DqjaJVC3.js} +0 -0
- /package/dist/esm/chunks/{SSEConnection-qNnkZUOe.mjs → SSEConnection-g0GBGAqe.mjs} +0 -0
- /package/dist/esm/chunks/{_types-CEStVWlB.mjs → _types-9ekyeJYl.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-BUNbarKP.mjs → audioVisualizer-nMo67yOW.mjs} +0 -0
- /package/dist/esm/chunks/{colors-D-qeA9gU.mjs → colors-v5b8_oYV.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-D5b6tZ5a.mjs → debounce-DFxAyrPi.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-Crg_QmSJ.mjs → modalStore-D6_oc47l.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-U5H1I85x.mjs → sharedTypes-CdmzhKXN.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-pvswaezx.mjs → tipStore-C2M6zBzd.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-80oOTYsj.mjs → toastStore-B-6kdNHw.mjs} +0 -0
|
@@ -1,42 +1,70 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { _ as __rest } from "../chunks/tslib.es6-CVvvNSPr.mjs";
|
|
3
3
|
|
|
4
|
-
import "
|
|
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-Cyon3ytf.mjs";
|
|
7
7
|
|
|
8
8
|
function useMDStreamBuffer(options) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
var _a, _b;
|
|
10
|
+
const bufferRef = useRef(null), queuedValueRef = useRef(""), paceTimerRef = useRef(null), [healthy, setHealthy] = useState(""), [raw, setRaw] = useState(""), [isComplete, setIsComplete] = useState(!1), [pendingCharacters, setPendingCharacters] = useState(0), paceDelayMs = Math.max(0, null !== (_a = null == options ? void 0 : options.paceDelayMs) && void 0 !== _a ? _a : 0), paceChunkSize = Math.max(1, null !== (_b = null == options ? void 0 : options.paceChunkSize) && void 0 !== _b ? _b : Number.POSITIVE_INFINITY), usesPacing = void 0 !== (null == options ? void 0 : options.paceDelayMs) || void 0 !== (null == options ? void 0 : options.paceChunkSize), getTotalPendingCharacters = useCallback(() => {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
return queuedValueRef.current.length + (null !== (_b = null === (_a = bufferRef.current) || void 0 === _a ? void 0 : _a.pendingCharacters) && void 0 !== _b ? _b : 0);
|
|
13
|
+
}, []), clearPaceTimer = useCallback(() => {
|
|
14
|
+
null !== paceTimerRef.current && (clearTimeout(paceTimerRef.current), paceTimerRef.current = null);
|
|
15
|
+
}, []), releaseQueuedChunk = useCallback(() => {
|
|
16
|
+
if (!bufferRef.current || 0 === queuedValueRef.current.length) return clearPaceTimer(),
|
|
17
|
+
void setPendingCharacters(getTotalPendingCharacters());
|
|
18
|
+
const nextChunk = Number.isFinite(paceChunkSize) ? queuedValueRef.current.slice(0, paceChunkSize) : queuedValueRef.current;
|
|
19
|
+
queuedValueRef.current = queuedValueRef.current.slice(nextChunk.length), bufferRef.current.append(nextChunk),
|
|
20
|
+
setPendingCharacters(getTotalPendingCharacters()), 0 !== queuedValueRef.current.length ? paceTimerRef.current = setTimeout(releaseQueuedChunk, paceDelayMs) : clearPaceTimer();
|
|
21
|
+
}, [ clearPaceTimer, getTotalPendingCharacters, paceChunkSize, paceDelayMs ]), ensurePaceTimer = useCallback(() => {
|
|
22
|
+
usesPacing && null === paceTimerRef.current && (paceTimerRef.current = setTimeout(releaseQueuedChunk, paceDelayMs));
|
|
23
|
+
}, [ paceDelayMs, releaseQueuedChunk, usesPacing ]), drainQueuedValue = useCallback(() => {
|
|
24
|
+
bufferRef.current && 0 !== queuedValueRef.current.length && (clearPaceTimer(), bufferRef.current.append(queuedValueRef.current),
|
|
25
|
+
queuedValueRef.current = "", setPendingCharacters(getTotalPendingCharacters()));
|
|
26
|
+
}, [ clearPaceTimer, getTotalPendingCharacters ]);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
const _a = null != options ? options : {}, {paceDelayMs: _paceDelayMs, paceChunkSize: _paceChunkSize} = _a, bufferOptions = __rest(_a, [ "paceDelayMs", "paceChunkSize" ]);
|
|
29
|
+
return bufferRef.current = new MdBuffer(Object.assign(Object.assign({}, bufferOptions), {
|
|
30
|
+
onFlush: snapshot => {
|
|
31
|
+
const {healthy: healthy, raw: raw, isComplete: isComplete} = snapshot;
|
|
32
|
+
setHealthy(healthy), setRaw(raw), setIsComplete(isComplete), setPendingCharacters(queuedValueRef.current.length + snapshot.pendingCharacters);
|
|
33
|
+
}
|
|
34
|
+
})), () => {
|
|
35
|
+
var _a;
|
|
36
|
+
clearPaceTimer(), queuedValueRef.current = "", null === (_a = bufferRef.current) || void 0 === _a || _a.dispose(),
|
|
37
|
+
bufferRef.current = null;
|
|
38
|
+
};
|
|
39
|
+
}, []);
|
|
40
|
+
const append = useCallback(value => {
|
|
41
|
+
var _a;
|
|
42
|
+
if (value) {
|
|
43
|
+
if (!usesPacing) return null === (_a = bufferRef.current) || void 0 === _a || _a.append(value),
|
|
44
|
+
void setPendingCharacters(getTotalPendingCharacters());
|
|
45
|
+
queuedValueRef.current += value, setPendingCharacters(getTotalPendingCharacters()),
|
|
46
|
+
ensurePaceTimer();
|
|
14
47
|
}
|
|
15
|
-
})
|
|
48
|
+
}, [ ensurePaceTimer, getTotalPendingCharacters, usesPacing ]), flush = useCallback(() => {
|
|
49
|
+
var _a;
|
|
50
|
+
return drainQueuedValue(), null === (_a = bufferRef.current) || void 0 === _a ? void 0 : _a.flush();
|
|
51
|
+
}, [ drainQueuedValue ]), complete = useCallback(() => {
|
|
52
|
+
var _a;
|
|
53
|
+
return drainQueuedValue(), null === (_a = bufferRef.current) || void 0 === _a ? void 0 : _a.complete();
|
|
54
|
+
}, [ drainQueuedValue ]), reset = useCallback(() => {
|
|
16
55
|
var _a;
|
|
17
|
-
null === (_a = bufferRef.current) || void 0 === _a || _a.
|
|
18
|
-
|
|
56
|
+
clearPaceTimer(), queuedValueRef.current = "", null === (_a = bufferRef.current) || void 0 === _a || _a.reset(),
|
|
57
|
+
setHealthy(""), setRaw(""), setIsComplete(!1), setPendingCharacters(0);
|
|
58
|
+
}, [ clearPaceTimer ]);
|
|
19
59
|
return {
|
|
20
60
|
raw: raw,
|
|
21
61
|
healthy: healthy,
|
|
22
62
|
isComplete: isComplete,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var _a;
|
|
29
|
-
return null === (_a = bufferRef.current) || void 0 === _a ? void 0 : _a.flush();
|
|
30
|
-
}, []),
|
|
31
|
-
complete: useCallback(() => {
|
|
32
|
-
var _a;
|
|
33
|
-
return null === (_a = bufferRef.current) || void 0 === _a ? void 0 : _a.complete();
|
|
34
|
-
}, []),
|
|
35
|
-
reset: useCallback(() => {
|
|
36
|
-
var _a;
|
|
37
|
-
null === (_a = bufferRef.current) || void 0 === _a || _a.reset(), setHealthy(""),
|
|
38
|
-
setRaw("");
|
|
39
|
-
}, [])
|
|
63
|
+
pendingCharacters: pendingCharacters,
|
|
64
|
+
append: append,
|
|
65
|
+
flush: flush,
|
|
66
|
+
complete: complete,
|
|
67
|
+
reset: reset
|
|
40
68
|
};
|
|
41
69
|
}
|
|
42
70
|
|
|
@@ -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-zecH7-IH.mjs";
|
|
5
5
|
|
|
6
|
-
import "../chunks/tslib.es6-
|
|
6
|
+
import "../chunks/tslib.es6-CVvvNSPr.mjs";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Hook to log component renders, mounts, and unmounts
|
package/dist/esm/hooks.mjs
CHANGED
|
@@ -14,6 +14,8 @@ export { useLocalStore } from "./hooks/useLocalStore.mjs";
|
|
|
14
14
|
|
|
15
15
|
export { useMDStreamBuffer } from "./hooks/useMdStreamBuffer.mjs";
|
|
16
16
|
|
|
17
|
+
export { useBindWebRTC } from "./hooks/useBindWebRTC.mjs";
|
|
18
|
+
|
|
17
19
|
export { useMicrophone } from "./hooks/useMicrophone.mjs";
|
|
18
20
|
|
|
19
21
|
export { useAudioRecorder } from "./hooks/useAudioRecorder.mjs";
|
|
@@ -40,6 +42,16 @@ import "./theme/motion.mjs";
|
|
|
40
42
|
|
|
41
43
|
import "./theme/type.mjs";
|
|
42
44
|
|
|
43
|
-
import "./chunks/tslib.es6-
|
|
45
|
+
import "./chunks/tslib.es6-CVvvNSPr.mjs";
|
|
46
|
+
|
|
47
|
+
import "./chunks/MdStreamBuffer-Cyon3ytf.mjs";
|
|
48
|
+
|
|
49
|
+
import "./chunks/webRTCStore-DhFE9-bb.mjs";
|
|
50
|
+
|
|
51
|
+
import "zustand";
|
|
52
|
+
|
|
53
|
+
import "./chunks/WebRTCConnection-d0Yvd66q.mjs";
|
|
54
|
+
|
|
55
|
+
import "./chunks/microphoneStore-Cbx9nV4R.mjs";
|
|
44
56
|
|
|
45
|
-
import "./chunks/
|
|
57
|
+
import "./chunks/volumeStore-BrgZCRKF.mjs";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as ToolTipType } from "./chunks/sharedTypes-
|
|
1
|
+
export { T as ToolTipType } from "./chunks/sharedTypes-CdmzhKXN.mjs";
|
|
2
2
|
|
|
3
3
|
export { darkTheme, lightTheme } from "./theme/themes.mjs";
|
|
4
4
|
|
|
@@ -24,6 +24,8 @@ export { useLocalStore } from "./hooks/useLocalStore.mjs";
|
|
|
24
24
|
|
|
25
25
|
export { useMDStreamBuffer } from "./hooks/useMdStreamBuffer.mjs";
|
|
26
26
|
|
|
27
|
+
export { useBindWebRTC } from "./hooks/useBindWebRTC.mjs";
|
|
28
|
+
|
|
27
29
|
export { useMicrophone } from "./hooks/useMicrophone.mjs";
|
|
28
30
|
|
|
29
31
|
export { useAudioRecorder } from "./hooks/useAudioRecorder.mjs";
|
|
@@ -32,85 +34,87 @@ export { useWindow } from "./hooks/useWindow.mjs";
|
|
|
32
34
|
|
|
33
35
|
export { useObserveResize } from "./hooks/useObserveResize.mjs";
|
|
34
36
|
|
|
35
|
-
export { A as AudioBubble } from "./chunks/AudioBubble-
|
|
37
|
+
export { A as AudioBubble } from "./chunks/AudioBubble-SB1LCBlJ.mjs";
|
|
36
38
|
|
|
37
|
-
export { A as Avatar } from "./chunks/Avatar-
|
|
39
|
+
export { A as Avatar } from "./chunks/Avatar-B6PcVOmT.mjs";
|
|
38
40
|
|
|
39
|
-
export { A as AvatarGroup } from "./chunks/AvatarGroup-
|
|
41
|
+
export { A as AvatarGroup } from "./chunks/AvatarGroup-DEb3j2IZ.mjs";
|
|
40
42
|
|
|
41
|
-
export { B as Badge } from "./chunks/Badge-
|
|
43
|
+
export { B as Badge } from "./chunks/Badge-bh5UVUnt.mjs";
|
|
42
44
|
|
|
43
|
-
export { I as IconButton } from "./chunks/IconButton-
|
|
45
|
+
export { I as IconButton } from "./chunks/IconButton-DxwJemEK.mjs";
|
|
44
46
|
|
|
45
|
-
export { C as Camera } from "./chunks/Camera-
|
|
47
|
+
export { C as Camera } from "./chunks/Camera-BmuMA9xY.mjs";
|
|
46
48
|
|
|
47
|
-
export { C as CheckBox } from "./chunks/CheckBox-
|
|
49
|
+
export { C as CheckBox } from "./chunks/CheckBox-BR6a2n0j.mjs";
|
|
48
50
|
|
|
49
|
-
export { D as DivInput } from "./chunks/DivInput-
|
|
51
|
+
export { D as DivInput } from "./chunks/DivInput-BWO1EJXA.mjs";
|
|
50
52
|
|
|
51
|
-
export { D as Dot } from "./chunks/Dot-
|
|
53
|
+
export { D as Dot } from "./chunks/Dot-DMst-5Q2.mjs";
|
|
52
54
|
|
|
53
|
-
export { D as DraggablePanel } from "./chunks/DrggablePanel-
|
|
55
|
+
export { D as DraggablePanel } from "./chunks/DrggablePanel-qxrCS7Ot.mjs";
|
|
54
56
|
|
|
55
|
-
export { D as DropDown } from "./chunks/DropDown-
|
|
57
|
+
export { D as DropDown } from "./chunks/DropDown-DlO2J4QP.mjs";
|
|
56
58
|
|
|
57
|
-
export { E as ErrorSummary } from "./chunks/ErrorSummary-
|
|
59
|
+
export { E as ErrorSummary } from "./chunks/ErrorSummary-BplQFunJ.mjs";
|
|
58
60
|
|
|
59
|
-
export { G as Grouper } from "./chunks/Grouper-
|
|
61
|
+
export { G as Grouper } from "./chunks/Grouper-DxOISLzH.mjs";
|
|
60
62
|
|
|
61
|
-
export { O as Overlay } from "./chunks/Overlay-
|
|
63
|
+
export { O as Overlay } from "./chunks/Overlay-Dr9YYxJ6.mjs";
|
|
62
64
|
|
|
63
|
-
export { M as Modal } from "./chunks/Modal-
|
|
65
|
+
export { M as Modal } from "./chunks/Modal-C-Q2A_RY.mjs";
|
|
64
66
|
|
|
65
|
-
export { M as ModalController } from "./chunks/ModalController-
|
|
67
|
+
export { M as ModalController } from "./chunks/ModalController-ClAjHLPb.mjs";
|
|
66
68
|
|
|
67
|
-
export { F as FlexDiv, P as Preset, S as Size } from "./chunks/FlexDiv-
|
|
69
|
+
export { F as FlexDiv, P as Preset, S as Size } from "./chunks/FlexDiv-DGmDZL7M.mjs";
|
|
68
70
|
|
|
69
|
-
export { P as Pager } from "./chunks/Pager-
|
|
71
|
+
export { P as Pager } from "./chunks/Pager-DPbTCMNe.mjs";
|
|
70
72
|
|
|
71
|
-
export { P as PromptInput } from "./chunks/PromptInput-
|
|
73
|
+
export { P as PromptInput } from "./chunks/PromptInput-wGhpXw-h.mjs";
|
|
72
74
|
|
|
73
|
-
export { D as DoneCheck, P as ProgressIndicator } from "./chunks/ProgressIndicator-
|
|
75
|
+
export { D as DoneCheck, P as ProgressIndicator } from "./chunks/ProgressIndicator-HaJJDZ-m.mjs";
|
|
74
76
|
|
|
75
|
-
export { R as RadioButton } from "./chunks/RadioButton-
|
|
77
|
+
export { R as RadioButton } from "./chunks/RadioButton-oOGgTDhg.mjs";
|
|
76
78
|
|
|
77
|
-
export { R as RadioButtonList } from "./chunks/RadioButtonList-
|
|
79
|
+
export { R as RadioButtonList } from "./chunks/RadioButtonList-CDWKVvyL.mjs";
|
|
78
80
|
|
|
79
|
-
export { S as Slider } from "./chunks/Slider-
|
|
81
|
+
export { S as Slider } from "./chunks/Slider-ioPGftDY.mjs";
|
|
80
82
|
|
|
81
|
-
export { S as Spacer } from "./chunks/Spacer-
|
|
83
|
+
export { S as Spacer } from "./chunks/Spacer-VJBjxVlr.mjs";
|
|
82
84
|
|
|
83
|
-
export { S as Switch } from "./chunks/Switch-
|
|
85
|
+
export { S as Switch } from "./chunks/Switch-BCk2sTh3.mjs";
|
|
84
86
|
|
|
85
|
-
export { T as ToggleButton } from "./chunks/ToggleButton-
|
|
87
|
+
export { T as ToggleButton } from "./chunks/ToggleButton-Dvy8fc4t.mjs";
|
|
86
88
|
|
|
87
|
-
export { T as TabBar } from "./chunks/TabBar-
|
|
89
|
+
export { T as TabBar } from "./chunks/TabBar-C1DYnCRx.mjs";
|
|
88
90
|
|
|
89
|
-
export { T as TextArea } from "./chunks/TextArea-
|
|
91
|
+
export { T as TextArea } from "./chunks/TextArea-CF3r5m2G.mjs";
|
|
90
92
|
|
|
91
|
-
export { T as TextField } from "./chunks/TextField-
|
|
93
|
+
export { T as TextField } from "./chunks/TextField-BNfTj9v2.mjs";
|
|
92
94
|
|
|
93
95
|
export { ThemeProvider } from "./providers/ThemeProvider.mjs";
|
|
94
96
|
|
|
95
|
-
export { T as Tip } from "./chunks/Tip-
|
|
97
|
+
export { T as Tip } from "./chunks/Tip-DIKQvxxO.mjs";
|
|
98
|
+
|
|
99
|
+
export { T as Toast, a as ToastType } from "./chunks/Toast-CkXPrDpp.mjs";
|
|
96
100
|
|
|
97
|
-
export {
|
|
101
|
+
export { B as Button } from "./chunks/Button-CWKs3uAV.mjs";
|
|
98
102
|
|
|
99
|
-
export {
|
|
103
|
+
export { C as Chip } from "./chunks/Chip-DXW0jxKf.mjs";
|
|
100
104
|
|
|
101
|
-
export {
|
|
105
|
+
export { F as FileIcon, a as FileIconNames } from "./chunks/FileIcon-iFmAF7_a.mjs";
|
|
102
106
|
|
|
103
|
-
export {
|
|
107
|
+
export { I as Icon } from "./chunks/Icon-L8B35JN1.mjs";
|
|
104
108
|
|
|
105
|
-
export {
|
|
109
|
+
export { S as SliceIcons } from "./chunks/_types-9ekyeJYl.mjs";
|
|
106
110
|
|
|
107
|
-
export {
|
|
111
|
+
export { B as ButtonBar } from "./chunks/ButtonBar-CWeMhkSb.mjs";
|
|
108
112
|
|
|
109
|
-
export {
|
|
113
|
+
export { L as Label, a as LabelBackground } from "./chunks/Label-wDPtyK4h.mjs";
|
|
110
114
|
|
|
111
|
-
export { L as
|
|
115
|
+
export { L as Level } from "./chunks/Level-B9JayinM.mjs";
|
|
112
116
|
|
|
113
|
-
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-
|
|
117
|
+
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-D_xGzR2e.mjs";
|
|
114
118
|
|
|
115
119
|
import "./theme/corners.mjs";
|
|
116
120
|
|
|
@@ -118,24 +122,32 @@ import "./theme/type.mjs";
|
|
|
118
122
|
|
|
119
123
|
import "react";
|
|
120
124
|
|
|
121
|
-
import "./chunks/tslib.es6-
|
|
125
|
+
import "./chunks/tslib.es6-CVvvNSPr.mjs";
|
|
126
|
+
|
|
127
|
+
import "./chunks/MdStreamBuffer-Cyon3ytf.mjs";
|
|
128
|
+
|
|
129
|
+
import "./chunks/webRTCStore-DhFE9-bb.mjs";
|
|
130
|
+
|
|
131
|
+
import "zustand";
|
|
132
|
+
|
|
133
|
+
import "./chunks/WebRTCConnection-d0Yvd66q.mjs";
|
|
134
|
+
|
|
135
|
+
import "./chunks/microphoneStore-Cbx9nV4R.mjs";
|
|
122
136
|
|
|
123
|
-
import "./chunks/
|
|
137
|
+
import "./chunks/volumeStore-BrgZCRKF.mjs";
|
|
124
138
|
|
|
125
139
|
import "react/jsx-runtime";
|
|
126
140
|
|
|
127
|
-
import "./chunks/colors-
|
|
141
|
+
import "./chunks/colors-v5b8_oYV.mjs";
|
|
128
142
|
|
|
129
|
-
import "./chunks/audioVisualizer-
|
|
143
|
+
import "./chunks/audioVisualizer-nMo67yOW.mjs";
|
|
130
144
|
|
|
131
|
-
import "./chunks/misc-
|
|
145
|
+
import "./chunks/misc-zecH7-IH.mjs";
|
|
132
146
|
|
|
133
147
|
import "motion/react";
|
|
134
148
|
|
|
135
|
-
import "./chunks/modalStore-
|
|
136
|
-
|
|
137
|
-
import "zustand";
|
|
149
|
+
import "./chunks/modalStore-D6_oc47l.mjs";
|
|
138
150
|
|
|
139
|
-
import "./chunks/FileList-
|
|
151
|
+
import "./chunks/FileList-CztHFCJe.mjs";
|
|
140
152
|
|
|
141
|
-
import "./chunks/debounce-
|
|
153
|
+
import "./chunks/debounce-DFxAyrPi.mjs";
|
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
|
|
4
4
|
import { createContext, useContext, useState, useEffect, useMemo } from "react";
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { darkTheme, lightTheme } from "../theme/themes.mjs";
|
|
7
7
|
|
|
8
8
|
import "../theme/colors.mjs";
|
|
9
9
|
|
|
@@ -16,7 +16,7 @@ import "../theme/motion.mjs";
|
|
|
16
16
|
import "../theme/type.mjs";
|
|
17
17
|
|
|
18
18
|
const ThemeContext = createContext({
|
|
19
|
-
initialTheme:
|
|
19
|
+
initialTheme: darkTheme.name,
|
|
20
20
|
systemTheme: !0,
|
|
21
21
|
setSystemTheme: () => {}
|
|
22
22
|
});
|
|
@@ -36,12 +36,13 @@ function setDocumentTheme(name, system) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
function ThemeProvider(props) {
|
|
39
|
-
|
|
39
|
+
var _a;
|
|
40
|
+
const {children: children, theme: theme, system: system, global: global, initialTheme: initialTheme, initialSystem: initialSystem} = props, [systemTheme, setSystemTheme] = useState(null === (_a = null != system ? system : initialSystem) || void 0 === _a || _a);
|
|
40
41
|
useEffect(() => {
|
|
41
|
-
|
|
42
|
+
void 0 !== system && setSystemTheme(system);
|
|
42
43
|
}, [ system ]);
|
|
43
44
|
const contextValue = useMemo(() => ({
|
|
44
|
-
initialTheme: null != initialTheme ? initialTheme :
|
|
45
|
+
initialTheme: null != initialTheme ? initialTheme : darkTheme.name,
|
|
45
46
|
systemTheme: systemTheme,
|
|
46
47
|
setSystemTheme: setSystemTheme
|
|
47
48
|
}), [ initialTheme, systemTheme ]);
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
function normalizeThemeName(theme) {
|
|
2
|
-
if (theme) return theme.includes("
|
|
2
|
+
if (theme) return theme.includes("lightMode") ? "lightMode" : "darkMode";
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Resolve the startup Slice theme from an explicit theme value, cookie value,
|
|
7
|
-
* or fallback theme in that order.
|
|
8
|
-
*/
|
|
7
|
+
* or fallback theme in that order. Resolves a system to true if undefined.
|
|
8
|
+
*/
|
|
9
|
+
function resolveInitialTheme(options = {}) {
|
|
9
10
|
var _a, _b;
|
|
10
|
-
const {theme: theme,
|
|
11
|
-
return
|
|
11
|
+
const {theme: theme, activeTheme: activeTheme, systemTheme: systemTheme, fallbackTheme: fallbackTheme = "darkMode"} = options;
|
|
12
|
+
return {
|
|
13
|
+
initialTheme: null !== (_b = null !== (_a = normalizeThemeName(theme)) && void 0 !== _a ? _a : normalizeThemeName(activeTheme)) && void 0 !== _b ? _b : fallbackTheme,
|
|
14
|
+
initialSystem: (system = systemTheme, void 0 === system || system)
|
|
15
|
+
};
|
|
16
|
+
var system;
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
/**
|
|
@@ -17,7 +22,7 @@ function normalizeThemeName(theme) {
|
|
|
17
22
|
*/ function getThemeHtmlAttributes(theme) {
|
|
18
23
|
var _a;
|
|
19
24
|
return {
|
|
20
|
-
"data-slice-theme": null !== (_a = normalizeThemeName(theme)) && void 0 !== _a ? _a : "
|
|
25
|
+
"data-slice-theme": null !== (_a = normalizeThemeName(theme)) && void 0 !== _a ? _a : "darkMode"
|
|
21
26
|
};
|
|
22
27
|
}
|
|
23
28
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { l as localDBActions, u as useLocalDB, a as useLocalDBError, b as useLocalDBStore, c as useLocalDBValues, d as useManageLocalDB } from "../chunks/localDBStore-
|
|
1
|
+
export { l as localDBActions, u as useLocalDB, a as useLocalDBError, b as useLocalDBStore, c as useLocalDBValues, d as useManageLocalDB } from "../chunks/localDBStore-C-5y16uv.mjs";
|
|
2
2
|
|
|
3
|
-
import "../chunks/tslib.es6-
|
|
3
|
+
import "../chunks/tslib.es6-CVvvNSPr.mjs";
|
|
4
4
|
|
|
5
5
|
import "react";
|
|
6
6
|
|
|
@@ -8,4 +8,4 @@ import "zustand";
|
|
|
8
8
|
|
|
9
9
|
import "zustand/react/shallow";
|
|
10
10
|
|
|
11
|
-
import "../chunks/IndexedDB-
|
|
11
|
+
import "../chunks/IndexedDB-DA5oZXju.mjs";
|
package/dist/esm/stores/SSE.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { u as useConnectionClose, a as useConnectionMessage, b as useIsConnected, c as useLastSSEMessage, d as useMessage, e as useSSE, f as useSSEActions, g as useSSEStore } from "../chunks/sseStore-
|
|
1
|
+
export { u as useConnectionClose, a as useConnectionMessage, b as useIsConnected, c as useLastSSEMessage, d as useMessage, e as useSSE, f as useSSEActions, g as useSSEStore } from "../chunks/sseStore-DIquUNpm.mjs";
|
|
2
2
|
|
|
3
3
|
import "zustand";
|
|
4
4
|
|
|
5
|
-
import "../chunks/tslib.es6-
|
|
5
|
+
import "../chunks/tslib.es6-CVvvNSPr.mjs";
|
|
6
6
|
|
|
7
|
-
import "../chunks/SSEConnection-
|
|
7
|
+
import "../chunks/SSEConnection-g0GBGAqe.mjs";
|
package/dist/esm/stores/WS.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { create } from "zustand";
|
|
2
2
|
|
|
3
|
-
import "../chunks/tslib.es6-
|
|
3
|
+
import "../chunks/tslib.es6-CVvvNSPr.mjs";
|
|
4
4
|
|
|
5
|
-
import { W as WSConnection } from "../chunks/WSConnection-
|
|
5
|
+
import { W as WSConnection } from "../chunks/WSConnection-TiYLENWB.mjs";
|
|
6
6
|
|
|
7
7
|
const useWSStore = create((set, get) => ({
|
|
8
8
|
connections: [],
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { g as getWebRTCConnections, u as useWebRTC, a as useWebRTCActions, b as useWebRTCConnected, c as useWebRTCConnection, d as useWebRTCConnections, e as useWebRTCStore } from "../chunks/webRTCStore-DhFE9-bb.mjs";
|
|
2
|
+
|
|
3
|
+
import "../chunks/tslib.es6-CVvvNSPr.mjs";
|
|
4
|
+
|
|
5
|
+
import "zustand";
|
|
6
|
+
|
|
7
|
+
import "../chunks/WebRTCConnection-d0Yvd66q.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { g as getMicrophoneState, m as microphoneActions, u as useCurrentMicDeviceId,
|
|
1
|
+
export { g as getCurrentMicDeviceLabel, a as getMicrophoneState, m as microphoneActions, u as useCurrentMicDeviceId, b as useCurrentMicDeviceLabel, c as useMicActive, d as useMicError, e as useMicInputVolume, f as useMicMuted, h as useMicOptions, i as useMicRequesting, j as useMicStream, k as useMicSupported, l as useMicTrack, n as useMicrophoneStore, o as useMicrophoneStoreActions, p as useMicrophones, q as useProcessedMicStream, r as useSyncMicrophoneStore } from "../chunks/microphoneStore-Cbx9nV4R.mjs";
|
|
2
2
|
|
|
3
|
-
import "../chunks/tslib.es6-
|
|
3
|
+
import "../chunks/tslib.es6-CVvvNSPr.mjs";
|
|
4
4
|
|
|
5
5
|
import "react";
|
|
6
6
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { g as getModal, m as modalActions, u as useModal, a as useModalActions, b as useModalStore } from "../chunks/modalStore-
|
|
1
|
+
export { g as getModal, m as modalActions, u as useModal, a as useModalActions, b as useModalStore } from "../chunks/modalStore-D6_oc47l.mjs";
|
|
2
2
|
|
|
3
3
|
import "zustand";
|
package/dist/esm/stores/tip.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { g as getTip, t as tipActions, u as useTip, a as useTipActions, b as useTipStore } from "../chunks/tipStore-
|
|
1
|
+
export { g as getTip, t as tipActions, u as useTip, a as useTipActions, b as useTipStore } from "../chunks/tipStore-C2M6zBzd.mjs";
|
|
2
2
|
|
|
3
3
|
import "zustand";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { g as getToast, t as toastActions, u as useToast, a as useToastActions, b as useToastStore } from "../chunks/toastStore-
|
|
1
|
+
export { g as getToast, t as toastActions, u as useToast, a as useToastActions, b as useToastStore } from "../chunks/toastStore-B-6kdNHw.mjs";
|
|
2
2
|
|
|
3
3
|
import "zustand";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as createUploadsWorker, g as getUploads, a as getUploadsError, b as getUploadsWorkerStatus, u as uploadsActions, d as uploadsInitialized, e as useUploads, f as useUploadsActions, h as useUploadsError, i as useUploadsInitialized, j as useUploadsStore, k as useUploadsWorkerStatus } from "../chunks/uploadsStore-
|
|
1
|
+
export { c as createUploadsWorker, g as getUploads, a as getUploadsError, b as getUploadsWorkerStatus, u as uploadsActions, d as uploadsInitialized, e as useUploads, f as useUploadsActions, h as useUploadsError, i as useUploadsInitialized, j as useUploadsStore, k as useUploadsWorkerStatus } from "../chunks/uploadsStore-9QngohOe.mjs";
|
|
2
2
|
|
|
3
3
|
import "zustand";
|
|
4
4
|
|
|
5
|
-
import "../chunks/uploads-worker-
|
|
5
|
+
import "../chunks/uploads-worker-CUggKU9b.mjs";
|
|
6
6
|
|
|
7
|
-
import "../chunks/tslib.es6-
|
|
7
|
+
import "../chunks/tslib.es6-CVvvNSPr.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { g as getAttachedMedia, a as getMuted, b as getStoredVolume, c as getVolume, u as useAttachedMedia, d as useMuted, e as useStoredVolume, f as useVolume, h as useVolumeActions, i as useVolumeStore, v as volumeActions } from "../chunks/volumeStore-
|
|
1
|
+
export { g as getAttachedMedia, a as getMuted, b as getStoredVolume, c as getVolume, u as useAttachedMedia, d as useMuted, e as useStoredVolume, f as useVolume, h as useVolumeActions, i as useVolumeStore, v as volumeActions } from "../chunks/volumeStore-BrgZCRKF.mjs";
|
|
2
2
|
|
|
3
|
-
import "../chunks/tslib.es6-
|
|
3
|
+
import "../chunks/tslib.es6-CVvvNSPr.mjs";
|
|
4
4
|
|
|
5
5
|
import "zustand";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { F as FormFactor, d as dpr, f as formFactor, g as gettingLocation, i as isAppleDevice, a as isElectron, b as isTouchDevice, l as location, c as locationError, u as useDpr, e as useFormFactor, h as useGetLocation, j as useGettingLocation, k as useInitializeWindow, m as useIsAppleDevice, n as useIsElectron, o as useIsTouchDevice, p as useLocation, q as useLocationError, r as useViewportHeight, s as useViewportWidth, t as useWindowStore, v as viewportHeight, w as viewportWidth } from "../chunks/windowStore-
|
|
1
|
+
export { F as FormFactor, d as dpr, f as formFactor, g as gettingLocation, i as isAppleDevice, a as isElectron, b as isTouchDevice, l as location, c as locationError, u as useDpr, e as useFormFactor, h as useGetLocation, j as useGettingLocation, k as useInitializeWindow, m as useIsAppleDevice, n as useIsElectron, o as useIsTouchDevice, p as useLocation, q as useLocationError, r as useViewportHeight, s as useViewportWidth, t as useWindowStore, v as viewportHeight, w as viewportWidth } from "../chunks/windowStore-BKW7HyoD.mjs";
|
|
2
2
|
|
|
3
|
-
import "../chunks/tslib.es6-
|
|
3
|
+
import "../chunks/tslib.es6-CVvvNSPr.mjs";
|
|
4
4
|
|
|
5
5
|
import "zustand";
|
package/dist/esm/stores.mjs
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { g as getCurrentMicDeviceLabel, a as getMicrophoneState, m as microphoneActions, u as useCurrentMicDeviceId, b as useCurrentMicDeviceLabel, c as useMicActive, d as useMicError, e as useMicInputVolume, f as useMicMuted, h as useMicOptions, i as useMicRequesting, j as useMicStream, k as useMicSupported, l as useMicTrack, n as useMicrophoneStore, o as useMicrophoneStoreActions, p as useMicrophones, q as useProcessedMicStream, r as useSyncMicrophoneStore } from "./chunks/microphoneStore-Cbx9nV4R.mjs";
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { g as getAttachedMedia, a as getMuted, b as getStoredVolume, c as getVolume, u as useAttachedMedia, d as useMuted, e as useStoredVolume, f as useVolume, h as useVolumeActions, i as useVolumeStore, v as volumeActions } from "./chunks/volumeStore-BrgZCRKF.mjs";
|
|
4
4
|
|
|
5
|
-
export { g as
|
|
5
|
+
export { g as getWebRTCConnections, u as useWebRTC, a as useWebRTCActions, b as useWebRTCConnected, c as useWebRTCConnection, d as useWebRTCConnections, e as useWebRTCStore } from "./chunks/webRTCStore-DhFE9-bb.mjs";
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { F as FormFactor, d as dpr, f as formFactor, g as gettingLocation, i as isAppleDevice, a as isElectron, b as isTouchDevice, l as location, c as locationError, u as useDpr, e as useFormFactor, h as useGetLocation, j as useGettingLocation, k as useInitializeWindow, m as useIsAppleDevice, n as useIsElectron, o as useIsTouchDevice, p as useLocation, q as useLocationError, r as useViewportHeight, s as useViewportWidth, t as useWindowStore, v as viewportHeight, w as viewportWidth } from "./chunks/windowStore-BKW7HyoD.mjs";
|
|
8
8
|
|
|
9
|
-
export { g as
|
|
9
|
+
export { c as createUploadsWorker, g as getUploads, a as getUploadsError, b as getUploadsWorkerStatus, u as uploadsActions, d as uploadsInitialized, e as useUploads, f as useUploadsActions, h as useUploadsError, i as useUploadsInitialized, j as useUploadsStore, k as useUploadsWorkerStatus } from "./chunks/uploadsStore-9QngohOe.mjs";
|
|
10
10
|
|
|
11
|
-
export { g as
|
|
11
|
+
export { g as getModal, m as modalActions, u as useModal, a as useModalActions, b as useModalStore } from "./chunks/modalStore-D6_oc47l.mjs";
|
|
12
12
|
|
|
13
|
-
export { g as
|
|
13
|
+
export { g as getTip, t as tipActions, u as useTip, a as useTipActions, b as useTipStore } from "./chunks/tipStore-C2M6zBzd.mjs";
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { g as getToast, t as toastActions, u as useToast, a as useToastActions, b as useToastStore } from "./chunks/toastStore-B-6kdNHw.mjs";
|
|
16
16
|
|
|
17
|
-
export { u as
|
|
17
|
+
export { l as localDBActions, u as useLocalDB, a as useLocalDBError, b as useLocalDBStore, c as useLocalDBValues, d as useManageLocalDB } from "./chunks/localDBStore-C-5y16uv.mjs";
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
export { u as useConnectionClose, a as useConnectionMessage, b as useIsConnected, c as useLastSSEMessage, d as useMessage, e as useSSE, f as useSSEActions, g as useSSEStore } from "./chunks/sseStore-DIquUNpm.mjs";
|
|
20
|
+
|
|
21
|
+
import "./chunks/tslib.es6-CVvvNSPr.mjs";
|
|
22
|
+
|
|
23
|
+
import "react";
|
|
20
24
|
|
|
21
25
|
import "zustand";
|
|
22
26
|
|
|
23
|
-
import "./chunks/
|
|
27
|
+
import "./chunks/WebRTCConnection-d0Yvd66q.mjs";
|
|
24
28
|
|
|
25
|
-
import "
|
|
29
|
+
import "./chunks/uploads-worker-CUggKU9b.mjs";
|
|
26
30
|
|
|
27
31
|
import "zustand/react/shallow";
|
|
28
32
|
|
|
29
|
-
import "./chunks/IndexedDB-
|
|
33
|
+
import "./chunks/IndexedDB-DA5oZXju.mjs";
|
|
30
34
|
|
|
31
|
-
import "./chunks/SSEConnection-
|
|
35
|
+
import "./chunks/SSEConnection-g0GBGAqe.mjs";
|
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
export { c as copyToClipboard, h as hexToRgb } from "../chunks/misc-
|
|
1
|
+
export { c as copyToClipboard, h as hexToRgb } from "../chunks/misc-zecH7-IH.mjs";
|
|
2
2
|
|
|
3
|
-
export { d as debounce } from "../chunks/debounce-
|
|
3
|
+
export { d as debounce } from "../chunks/debounce-DFxAyrPi.mjs";
|
|
4
4
|
|
|
5
|
-
export { a as addOpacity, t as tintFromColor } from "../chunks/colors-
|
|
5
|
+
export { a as addOpacity, t as tintFromColor } from "../chunks/colors-v5b8_oYV.mjs";
|
|
6
6
|
|
|
7
|
-
export { I as IndexedDB } from "../chunks/IndexedDB-
|
|
7
|
+
export { I as IndexedDB } from "../chunks/IndexedDB-DA5oZXju.mjs";
|
|
8
8
|
|
|
9
|
-
export { A as AudioVisualizer } from "../chunks/audioVisualizer-
|
|
9
|
+
export { A as AudioVisualizer } from "../chunks/audioVisualizer-nMo67yOW.mjs";
|
|
10
10
|
|
|
11
|
-
export { M as MdBuffer } from "../chunks/MdStreamBuffer-
|
|
11
|
+
export { M as MdBuffer } from "../chunks/MdStreamBuffer-Cyon3ytf.mjs";
|
|
12
12
|
|
|
13
|
-
export { S as SSEConnection } from "../chunks/SSEConnection-
|
|
13
|
+
export { S as SSEConnection } from "../chunks/SSEConnection-g0GBGAqe.mjs";
|
|
14
14
|
|
|
15
|
-
export { W as WSConnection } from "../chunks/WSConnection-
|
|
15
|
+
export { W as WSConnection } from "../chunks/WSConnection-TiYLENWB.mjs";
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
export { W as WebRTCConnection } from "../chunks/WebRTCConnection-d0Yvd66q.mjs";
|
|
18
|
+
|
|
19
|
+
import "../chunks/tslib.es6-CVvvNSPr.mjs";
|