@apple-pie/slice 0.1.36 → 0.1.37
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-BE_f4Hso.js → AudioBubble-Xo5cZPEk.js} +4 -3
- package/dist/cjs/chunks/{Avatar-BiyInyRO.js → Avatar-CXBRq6_n.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-DRL0lWmX.js → AvatarGroup-BC67QM2G.js} +1 -1
- package/dist/cjs/chunks/{Badge-DMowUBPk.js → Badge-DBNftrlx.js} +1 -1
- package/dist/cjs/chunks/{Button-COMAPFWV.js → Button-CFBYcMYb.js} +1 -1
- package/dist/cjs/chunks/{ButtonBar-IiuZuTLR.js → ButtonBar-C8XFmA4E.js} +1 -1
- package/dist/cjs/chunks/{Camera-Ly06XVkk.js → Camera-HWGUD0cK.js} +5 -4
- package/dist/cjs/chunks/{CheckBox-HmPtb4qd.js → CheckBox-CP89bz2H.js} +1 -1
- package/dist/cjs/chunks/{Chip-6PG7VzN-.js → Chip-nNOlR74w.js} +1 -1
- package/dist/cjs/chunks/{DivInput-C-PFUeDT.js → DivInput-eBsUykBQ.js} +1 -1
- package/dist/cjs/chunks/{Dot-dB91CPB9.js → Dot-Ci0Rzp0t.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-B4pmiREo.js → DrggablePanel-aMr4Zia0.js} +4 -3
- package/dist/cjs/chunks/{DropDown-DrFvc39t.js → DropDown-ObGamgkI.js} +1 -1
- package/dist/cjs/chunks/{ErrorSummary-_XvQGFbZ.js → ErrorSummary-tAgJjuJA.js} +4 -3
- package/dist/cjs/chunks/{FileIcon-UA9ZceY_.js → FileIcon-DH6ykApv.js} +4 -3
- package/dist/cjs/chunks/{FileList-CnsmD5Y7.js → FileList-TVRpzdus.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-WZf3guIi.js → FlexDiv-CiDztYIC.js} +1 -1
- package/dist/cjs/chunks/{Grouper-BzPprBpD.js → Grouper-RPzgqKC0.js} +4 -3
- package/dist/cjs/chunks/{Icon-g039RSWl.js → Icon-D-RerGRq.js} +73 -4
- package/dist/cjs/chunks/{IconButton-DZBikqIA.js → IconButton-D-vS9cTS.js} +1 -1
- package/dist/cjs/chunks/{IndexedDB-DW-NDU8i.js → IndexedDB-D7vMzi1C.js} +1 -1
- package/dist/cjs/chunks/{Label-BLCGQli-.js → Label-B593UMZN.js} +1 -1
- package/dist/cjs/chunks/{Level-CvPkz_70.js → Level-DttfXgcb.js} +2 -1
- package/dist/cjs/chunks/{Modal-D8RvqX4f.js → Modal-uML3kOba.js} +1 -1
- package/dist/cjs/chunks/{ModalController-ctBbD_Jn.js → ModalController-HpljwIjV.js} +4 -2
- package/dist/cjs/chunks/{Overlay-CB0-ZCbr.js → Overlay-BAPCjL1R.js} +1 -1
- package/dist/cjs/chunks/{Pager-GwtjwNSr.js → Pager-BHI3oj2V.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-BqAJgdQp.js → ProgressIndicator-D5wkRI9I.js} +4 -3
- package/dist/cjs/chunks/{PromptInput-B5-MrCid.js → PromptInput-l2NY9HAt.js} +5 -4
- package/dist/cjs/chunks/{RadioButton-B0It6bQ8.js → RadioButton-C2uOkiyw.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-B-G1DO7M.js → RadioButtonList-G39JfLRY.js} +1 -1
- package/dist/cjs/chunks/{Slider-BDCvQ_h4.js → Slider-Ba951T1H.js} +4 -3
- package/dist/cjs/chunks/{Spacer-C_qGs52F.js → Spacer-Ds3-e4nb.js} +1 -1
- package/dist/cjs/chunks/{Switch-2YgqC8vV.js → Switch-B8DulleR.js} +1 -1
- package/dist/cjs/chunks/{TabBar-C3FbWoTz.js → TabBar-CkE32FOT.js} +5 -4
- package/dist/cjs/chunks/{TextArea-C3DehkDw.js → TextArea-WyrsKhiI.js} +1 -1
- package/dist/cjs/chunks/{TextField-BkZlrRfY.js → TextField-D9lA6MqD.js} +5 -4
- package/dist/cjs/chunks/{Tip-CEvYKuL1.js → Tip-B9-eEo1W.js} +1 -1
- package/dist/cjs/chunks/{Toast-BoCExCrT.js → Toast-RKrXrBM_.js} +5 -4
- package/dist/cjs/chunks/{ToggleButton-CBQt8Ii8.js → ToggleButton-CT_lqOtJ.js} +5 -2
- package/dist/cjs/chunks/{UploadArea-D3I4J8B7.js → UploadArea-BzeMdfWX.js} +1 -1
- package/dist/cjs/chunks/Video-tMdl2sgI.js +285 -0
- package/dist/cjs/chunks/VideoController-ClgopggU.js +90 -0
- package/dist/cjs/chunks/{WSConnection-D6rZfnAf.js → WSConnection-Dqb47OS8.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-C_IDgzdx.js → WebRTCConnection-hG9FYZwt.js} +1 -1
- package/dist/cjs/chunks/{_types-Cq4h0y4u.js → _types-DEt5va_v.js} +7 -2
- package/dist/cjs/chunks/{localDBStore-CmeqEYMi.js → localDBStore-DTF2I86l.js} +1 -1
- package/dist/cjs/chunks/{microphoneStore-V2mYQFa4.js → microphoneStore-BM-XC3HM.js} +1 -1
- package/dist/cjs/chunks/{misc-CGesOGlL.js → misc-BKCSnz7i.js} +1 -1
- package/dist/cjs/chunks/{sseStore-Bql9biBI.js → sseStore-CTJstD-J.js} +2 -2
- package/dist/cjs/chunks/{uploads-worker-CpdqGKrs.js → uploads-worker-C3qvQXla.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-DWM1E-GX.js → uploadsStore-DLjRL7bJ.js} +2 -2
- package/dist/cjs/chunks/videoStore-uqxnwumS.js +21 -0
- package/dist/cjs/chunks/{volumeStore-CpxXslLu.js → volumeStore-Cq7cBiVC.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-C9e5XlzB.js → webRTCStore-BO-7A2lW.js} +1 -1
- package/dist/cjs/chunks/{windowStore-DV7Ch5Z2.js → windowStore-CbBuM_dH.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +7 -5
- 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 -8
- package/dist/cjs/components/ButtonBar/index.js +7 -5
- package/dist/cjs/components/Camera/index.js +8 -6
- package/dist/cjs/components/CheckBox/index.js +7 -5
- package/dist/cjs/components/Chip/index.js +7 -6
- 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 -5
- package/dist/cjs/components/DropDown/index.js +7 -5
- package/dist/cjs/components/ErrorSummary/index.js +6 -5
- package/dist/cjs/components/FileIcon/index.js +6 -5
- package/dist/cjs/components/FileList/index.js +8 -7
- package/dist/cjs/components/FlexDiv/index.js +2 -2
- package/dist/cjs/components/Grouper/index.js +7 -6
- package/dist/cjs/components/Icon/index.js +6 -5
- package/dist/cjs/components/IconButton/index.js +9 -7
- package/dist/cjs/components/Label/index.js +3 -3
- package/dist/cjs/components/Level/index.js +3 -3
- package/dist/cjs/components/Modal/index.js +10 -9
- 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 -4
- package/dist/cjs/components/PromptInput/index.js +10 -8
- package/dist/cjs/components/RadioButton/index.js +7 -5
- package/dist/cjs/components/RadioButtonList/index.js +8 -6
- package/dist/cjs/components/Slider/index.js +7 -5
- package/dist/cjs/components/Spacer/index.js +2 -2
- package/dist/cjs/components/Switch/index.js +2 -2
- package/dist/cjs/components/TabBar/index.js +9 -7
- package/dist/cjs/components/TextArea/index.js +9 -8
- package/dist/cjs/components/Textfield/index.js +10 -8
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +6 -5
- package/dist/cjs/components/ToggleButton/index.js +9 -8
- package/dist/cjs/components/UploadArea/index.js +8 -6
- package/dist/cjs/components/Video/index.js +17 -0
- package/dist/cjs/components/VideoController/index.js +16 -0
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +2 -2
- package/dist/cjs/hooks/useMdStreamBuffer.js +1 -1
- package/dist/cjs/hooks/useMicrophone.js +1 -1
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +3 -3
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/stores/LocalDB.js +3 -3
- package/dist/cjs/stores/SSE.js +2 -2
- package/dist/cjs/stores/WS.js +2 -2
- package/dist/cjs/stores/WebRTC.js +2 -2
- package/dist/cjs/stores/microphone.js +2 -2
- package/dist/cjs/stores/modal.js +1 -1
- package/dist/cjs/stores/tip.js +1 -1
- package/dist/cjs/stores/toast.js +1 -1
- package/dist/cjs/stores/uploads.js +2 -2
- package/dist/cjs/stores/video.js +7 -0
- package/dist/cjs/stores/volume.js +2 -2
- package/dist/cjs/stores/window.js +2 -2
- package/dist/cjs/stores.js +30 -28
- package/dist/cjs/utils/index.js +2 -2
- package/dist/cjs/utils/objects/index.js +2 -2
- package/dist/cjs/workers/uploads/uploads.js +2 -2
- package/dist/esm/chunks/{AudioBubble-DbIkKNSG.mjs → AudioBubble-yCsnZ3rL.mjs} +8 -4
- package/dist/esm/chunks/{Avatar-BdEM1ozC.mjs → Avatar-Cu0U65SH.mjs} +2 -2
- package/dist/esm/chunks/{AvatarGroup-BTYNzBuA.mjs → AvatarGroup-C_-K1xlX.mjs} +2 -2
- package/dist/esm/chunks/{Badge-BpiR8FTR.mjs → Badge-BvY84ufc.mjs} +1 -1
- package/dist/esm/chunks/{Button-CsgknV85.mjs → Button-Bu19lNFC.mjs} +6 -6
- package/dist/esm/chunks/{ButtonBar-BFZwa2aG.mjs → ButtonBar-D_0kUzcz.mjs} +3 -3
- package/dist/esm/chunks/{Camera-CqXqVh7j.mjs → Camera-DBcyGSfc.mjs} +10 -6
- package/dist/esm/chunks/{CheckBox-CQxfSzXH.mjs → CheckBox-DrhGI9RT.mjs} +3 -3
- package/dist/esm/chunks/{Chip-B9lOeTEj.mjs → Chip-SYz-iDwy.mjs} +4 -4
- package/dist/esm/chunks/{DivInput-D98_x_cR.mjs → DivInput-BDUg1ABU.mjs} +2 -2
- package/dist/esm/chunks/{Dot-CWHimm2-.mjs → Dot-FJ3hAO8I.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-CWuLIdX9.mjs → DrggablePanel-CACyTWqR.mjs} +7 -3
- package/dist/esm/chunks/{DropDown-DmvRDK3x.mjs → DropDown-Da7mVP61.mjs} +3 -3
- package/dist/esm/chunks/{ErrorSummary-CB6H8_k-.mjs → ErrorSummary-0Hj7oPpL.mjs} +7 -3
- package/dist/esm/chunks/{FileIcon-D20gyTFi.mjs → FileIcon-DZAi9ZkU.mjs} +7 -3
- package/dist/esm/chunks/{FileList-C-YZ-FcH.mjs → FileList-D_li0dMh.mjs} +5 -5
- package/dist/esm/chunks/{FlexDiv-CtfrPPcV.mjs → FlexDiv-CQCa9vLf.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-gDZnuiM0.mjs → Grouper-BjanuRaI.mjs} +8 -4
- package/dist/esm/chunks/{Icon-CF8mSm1j.mjs → Icon-BFU6Yqe5.mjs} +77 -5
- package/dist/esm/chunks/{IconButton-DAyyIY8J.mjs → IconButton-BSfjX-9S.mjs} +5 -5
- package/dist/esm/chunks/{IndexedDB-Ckz-KqBO.mjs → IndexedDB-DhevfBOg.mjs} +1 -1
- package/dist/esm/chunks/{Label-2jNz4_6V.mjs → Label-C8RnJ9Lg.mjs} +2 -2
- package/dist/esm/chunks/{Level-CVC8xDqy.mjs → Level-BJFm-X3G.mjs} +4 -3
- package/dist/esm/chunks/{Modal-BmNG8fzy.mjs → Modal-CWJeNAOQ.mjs} +5 -5
- package/dist/esm/chunks/{ModalController-Ce3srWy-.mjs → ModalController-CzAHoDrY.mjs} +8 -3
- package/dist/esm/chunks/{Overlay-B7lugjjj.mjs → Overlay-D5wdtOAI.mjs} +1 -1
- package/dist/esm/chunks/{Pager-DURbG5j1.mjs → Pager-Bpq4k9Pn.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-CRc_YmyK.mjs → ProgressIndicator-BBVwMWzm.mjs} +7 -3
- package/dist/esm/chunks/{PromptInput-vnwk-zMH.mjs → PromptInput-BxH23sGc.mjs} +9 -5
- package/dist/esm/chunks/{RadioButton-BEuDCEOu.mjs → RadioButton-BAFQDK57.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-B_WIvWpr.mjs → RadioButtonList-Cnh1UHHz.mjs} +3 -3
- package/dist/esm/chunks/{Slider-CDjKOpoL.mjs → Slider-BPXwoiwJ.mjs} +8 -4
- package/dist/esm/chunks/{Spacer-CdkfmN54.mjs → Spacer-HGNNBfvv.mjs} +1 -1
- package/dist/esm/chunks/{Switch-C_DiN4cG.mjs → Switch-C5qBX15j.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-D8IYekUP.mjs → TabBar-D06eYt6u.mjs} +11 -7
- package/dist/esm/chunks/{TextArea-DWcOF8Wp.mjs → TextArea-mN8h_Cue.mjs} +2 -2
- package/dist/esm/chunks/{TextField-D-Y8f0QY.mjs → TextField-Cm7pEaDr.mjs} +10 -6
- package/dist/esm/chunks/{Tip-Cr872A6k.mjs → Tip-BR3b7fuP.mjs} +2 -2
- package/dist/esm/chunks/{Toast-Bb5Hh3so.mjs → Toast-CzlNn-kB.mjs} +9 -5
- package/dist/esm/chunks/{ToggleButton-_9LchL03.mjs → ToggleButton-CDGVCiPi.mjs} +6 -3
- package/dist/esm/chunks/{UploadArea-Dm3tjBoN.mjs → UploadArea-Clxy3kka.mjs} +4 -4
- package/dist/esm/chunks/Video-_9DI55pO.mjs +296 -0
- package/dist/esm/chunks/VideoController-Bs8p1xwx.mjs +107 -0
- package/dist/esm/chunks/{WSConnection-B1_GePm4.mjs → WSConnection-YxyoqZum.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-DFZPhyph.mjs → WebRTCConnection-MOqvO3By.mjs} +1 -1
- package/dist/esm/chunks/{_types-CI0sR4EH.mjs → _types-BFtPNHwq.mjs} +7 -2
- package/dist/esm/chunks/{localDBStore-C-lYeGJl.mjs → localDBStore-DE8J4Hvg.mjs} +2 -2
- package/dist/esm/chunks/{microphoneStore-zHPtnRfW.mjs → microphoneStore-DqwMpMcu.mjs} +1 -1
- package/dist/esm/chunks/{misc-DjqDmrJE.mjs → misc-DWvJZgjx.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-ZGbbKbVB.mjs → sseStore-Bc-9bdZh.mjs} +2 -2
- package/dist/esm/chunks/{uploads-worker-kw6UOEx5.mjs → uploads-worker-DqpQ5WSo.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-BfyNmYWk.mjs → uploadsStore-DZIHwqML.mjs} +1 -1
- package/dist/esm/chunks/videoStore-BkLBmQIB.mjs +19 -0
- package/dist/esm/chunks/{volumeStore-D_5Xqf_0.mjs → volumeStore-B8u-1p8C.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-Cy7Mo7hB.mjs → webRTCStore-CE66PHep.mjs} +2 -2
- package/dist/esm/chunks/{windowStore-CXggRA80.mjs → windowStore-CGqgjOhg.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +11 -5
- 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 +15 -9
- package/dist/esm/components/ButtonBar/index.mjs +11 -5
- package/dist/esm/components/Camera/index.mjs +13 -7
- package/dist/esm/components/CheckBox/index.mjs +11 -5
- package/dist/esm/components/Chip/index.mjs +12 -6
- 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 +10 -4
- package/dist/esm/components/DropDown/index.mjs +11 -5
- package/dist/esm/components/ErrorSummary/index.mjs +10 -4
- package/dist/esm/components/FileIcon/index.mjs +10 -4
- package/dist/esm/components/FileList/index.mjs +13 -7
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +12 -6
- package/dist/esm/components/Icon/index.mjs +11 -5
- package/dist/esm/components/IconButton/index.mjs +14 -8
- package/dist/esm/components/Label/index.mjs +3 -3
- package/dist/esm/components/Level/index.mjs +4 -4
- package/dist/esm/components/Modal/index.mjs +17 -11
- package/dist/esm/components/ModalController/index.mjs +11 -5
- 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 +11 -5
- package/dist/esm/components/PromptInput/index.mjs +18 -12
- package/dist/esm/components/RadioButton/index.mjs +11 -5
- package/dist/esm/components/RadioButtonList/index.mjs +12 -6
- package/dist/esm/components/Slider/index.mjs +11 -5
- 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 +15 -9
- package/dist/esm/components/TextArea/index.mjs +16 -10
- package/dist/esm/components/Textfield/index.mjs +17 -11
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +12 -6
- package/dist/esm/components/ToggleButton/index.mjs +16 -10
- package/dist/esm/components/UploadArea/index.mjs +14 -8
- package/dist/esm/components/Video/index.mjs +61 -0
- package/dist/esm/components/VideoController/index.mjs +55 -0
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +5 -5
- package/dist/esm/hooks/useMdStreamBuffer.mjs +2 -2
- package/dist/esm/hooks/useMicrophone.mjs +1 -1
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +6 -6
- package/dist/esm/index.mjs +59 -53
- package/dist/esm/stores/LocalDB.mjs +3 -3
- package/dist/esm/stores/SSE.mjs +3 -3
- package/dist/esm/stores/WS.mjs +2 -2
- package/dist/esm/stores/WebRTC.mjs +3 -3
- package/dist/esm/stores/microphone.mjs +2 -2
- package/dist/esm/stores/modal.mjs +1 -1
- package/dist/esm/stores/tip.mjs +1 -1
- package/dist/esm/stores/toast.mjs +1 -1
- package/dist/esm/stores/uploads.mjs +3 -3
- package/dist/esm/stores/video.mjs +3 -0
- package/dist/esm/stores/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +17 -15
- package/dist/esm/utils/index.mjs +10 -10
- package/dist/esm/utils/objects/index.mjs +7 -7
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +149 -1
- package/dist/types/components/Icon/_types.d.ts +5 -0
- package/dist/types/components/ToggleButton/_types.d.ts +2 -0
- package/dist/types/components/Video/Video.d.ts +67 -0
- package/dist/types/components/Video/_types.d.ts +58 -0
- package/dist/types/components/Video/index.d.ts +2 -0
- package/dist/types/components/VideoController/VideoController.d.ts +2 -0
- package/dist/types/components/VideoController/_types.d.ts +15 -0
- package/dist/types/components/VideoController/index.d.ts +2 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/dist/types/stores/video/_types.d.ts +14 -0
- package/dist/types/stores/video/index.d.ts +2 -0
- package/dist/types/stores/video/videoStore.d.ts +12 -0
- package/package.json +1 -1
- /package/dist/cjs/chunks/{MdStreamBuffer-P4x0pDST.js → MdStreamBuffer-BpYjC6oG.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-CYqfVBs1.js → SSEConnection-j9n8tDd-.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-D3ZG5ZP6.js → audioVisualizer-COVl0T6c.js} +0 -0
- /package/dist/cjs/chunks/{colors-DbCrvnqF.js → colors-hrYWfbGJ.js} +0 -0
- /package/dist/cjs/chunks/{debounce-DnWdlF44.js → debounce-VXThgD9D.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-CJNFUtIy.js → modalStore-CAqzPgtE.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-D5nZ9SDg.js → sharedTypes-DbkuoBK5.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-DV7lnGfJ.js → tipStore-QjYu45vB.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-B_Kb_gld.js → toastStore-D4lqIfDl.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-CjqORQO8.js → tslib.es6-BiEkm1EG.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-QqAM_dVR.mjs → MdStreamBuffer-Be13p-Lr.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-Bxy3gcK3.mjs → SSEConnection-LevOfUdD.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-DKVVhtrd.mjs → audioVisualizer-DVvTr7Rj.mjs} +0 -0
- /package/dist/esm/chunks/{colors-znQ0X8Pf.mjs → colors-FXEIVaHB.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-AGOKEQDZ.mjs → debounce-B3gbRZhm.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-BXnW8M6D.mjs → modalStore-DhlJJici.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-_CvGLd7A.mjs → sharedTypes-DdBIOxPR.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-BZPw1gyq.mjs → tipStore-D7EBdeEj.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-BXCjnqI1.mjs → toastStore-G5VSoxc3.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-8-nvCYY0.mjs → tslib.es6-DcMgrs4I.mjs} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-BiEkm1EG.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Button = require("./Button-CFBYcMYb.js"), css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_xs = "TextArea-module_xs__5e748 type-module_body-xs-regular__ZAFft", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
|
|
5
5
|
|
|
6
6
|
const TextArea = React.memo(props => {
|
|
7
7
|
const {value: value = "", name: name = "text_area", width: width = "100%", focused: focused = !1, placeholder: placeholder = "Enter text here...", rows: rows = 6, border: border = !0, borderRadius: borderRadius = 4, padding: padding = "16px 4px 16px 16px", error: error = !1, resizable: resizable = !0, hasSend: hasSend = !1, sendOffset: sendOffset = {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-BiEkm1EG.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var misc = require("./misc-
|
|
8
|
+
var misc = require("./misc-BKCSnz7i.js");
|
|
9
9
|
|
|
10
|
-
require("./
|
|
10
|
+
require("./webRTCStore-BO-7A2lW.js"), require("./microphoneStore-BM-XC3HM.js"),
|
|
11
|
+
require("./volumeStore-Cq7cBiVC.js"), require("../hooks/useWindow.js");
|
|
11
12
|
|
|
12
|
-
var Button = require("./Button-
|
|
13
|
+
var Button = require("./Button-CFBYcMYb.js"), Icon = require("./Icon-D-RerGRq.js"), IconButton = require("./IconButton-D-vS9cTS.js"), css = {
|
|
13
14
|
wrapper: "TextField-module_wrapper__qZ-p- flexBox-module_rowStart__4tcxS",
|
|
14
15
|
container: "TextField-module_container__5U9yK flexBox-module_rowStart__4tcxS",
|
|
15
16
|
label: "TextField-module_label__jD8MR flexBox-module_rowStart__4tcxS",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-BiEkm1EG.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), misc = require("./misc-BKCSnz7i.js"), css = {
|
|
5
5
|
wrapper: "Tip-module_wrapper__D7ACT flexBox-module_rowStart__4tcxS",
|
|
6
6
|
xs: "Tip-module_xs__wsz9y type-module_body-xs-regular__ZAFft",
|
|
7
7
|
s: "Tip-module_s__Wvz3q type-module_body-s-regular__vRHSP",
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-BiEkm1EG.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
|
|
5
5
|
|
|
6
6
|
require("../theme/colors.js");
|
|
7
7
|
|
|
8
|
-
var misc = require("./misc-
|
|
8
|
+
var misc = require("./misc-BKCSnz7i.js");
|
|
9
9
|
|
|
10
|
-
require("./
|
|
10
|
+
require("./webRTCStore-BO-7A2lW.js"), require("./microphoneStore-BM-XC3HM.js"),
|
|
11
|
+
require("./volumeStore-Cq7cBiVC.js"), require("../hooks/useWindow.js");
|
|
11
12
|
|
|
12
|
-
var ToastType, Icon = require("./Icon-
|
|
13
|
+
var ToastType, Icon = require("./Icon-D-RerGRq.js"), ProgressIndicator = require("./ProgressIndicator-D5wkRI9I.js"), css = {
|
|
13
14
|
wrapper: "Toast-module_wrapper__1uj9O flexBox-module_rowBetween__5FEvi",
|
|
14
15
|
close: "Toast-module_close__i10-s flexBox-module_row__z24tF",
|
|
15
16
|
message: "Toast-module_message__3dP0P flexBox-module_rowStart__4tcxS",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
|
-
var jsxRuntime = require("react/jsx-runtime"), React = require("react"), IconButton = require("./IconButton-
|
|
4
|
+
var jsxRuntime = require("react/jsx-runtime"), React = require("react"), IconButton = require("./IconButton-D-vS9cTS.js"), Label = require("./Label-B593UMZN.js"), css_toggleButton = "ToggleButton-module_toggleButton__H7KgI flexBox-module_rowStart__4tcxS";
|
|
4
5
|
|
|
5
6
|
exports.ToggleButton = function(props) {
|
|
6
|
-
const {label: label, textSize: textSize, icon: icon, iconOn: iconOn, selected: selected = !1, iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-surface-primary)", bgColor: bgColor = "var(--core-surface-secondary)", bgColorOn: bgColorOn = "var(--core-text-special)", iconSize: iconSize = 20, buttonSize: buttonSize = "m", tooltip: tooltip, gap: gap = 4, unselect: unselect = !0, fill: fill = !1, disabled: disabled = !1, border: border = !1, onChange: onChange, onSelect: onSelect, onToolTip: onToolTip, children: children, presetAnimations: presetAnimations, customAnimations: customAnimations} = props, handleClick = () => {
|
|
7
|
+
const {label: label, textSize: textSize, icon: icon, iconOn: iconOn, selected: selected = !1, iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-surface-primary)", iconColorHover: iconColorHover = "var(--core-text-primary)", bgColor: bgColor = "var(--core-surface-secondary)", bgColorHover: bgColorHover = "var(--core-surface-secondary)", bgColorOn: bgColorOn = "var(--core-text-special)", iconSize: iconSize = 20, buttonSize: buttonSize = "m", tooltip: tooltip, gap: gap = 4, unselect: unselect = !0, fill: fill = !1, disabled: disabled = !1, border: border = !1, onChange: onChange, onSelect: onSelect, onToolTip: onToolTip, children: children, presetAnimations: presetAnimations, customAnimations: customAnimations} = props, handleClick = () => {
|
|
7
8
|
if (!unselect && selected) return;
|
|
8
9
|
const newState = !selected;
|
|
9
10
|
null == onChange || onChange(newState), newState && (null == onSelect || onSelect());
|
|
@@ -20,9 +21,11 @@ exports.ToggleButton = function(props) {
|
|
|
20
21
|
toggle: !selected,
|
|
21
22
|
isToggled: selected,
|
|
22
23
|
bgColorOn: bgColorOn,
|
|
24
|
+
bgColorHover: bgColorHover,
|
|
23
25
|
bgColor: bgColor,
|
|
24
26
|
iconColor: iconColor,
|
|
25
27
|
iconColorOn: iconColorOn,
|
|
28
|
+
iconColorHover: iconColorHover,
|
|
26
29
|
onClick: handleClick,
|
|
27
30
|
iconSize: iconSize,
|
|
28
31
|
iconFill: fill,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-
|
|
4
|
+
var jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BKCSnz7i.js"), Icon = require("./Icon-D-RerGRq.js"), ProgressIndicator = require("./ProgressIndicator-D5wkRI9I.js"), FileList = require("./FileList-TVRpzdus.js"), css = {
|
|
5
5
|
wrapper: "UploadArea-module_wrapper__aircC flexBox-module_column__ezvMq",
|
|
6
6
|
icon: "UploadArea-module_icon__M7n-m flexBox-module_row__z24tF",
|
|
7
7
|
title: "UploadArea-module_title__VbNGq type-module_body-l-bold__Fh2dt",
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var PlayState, tslib_es6 = require("./tslib.es6-BiEkm1EG.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BKCSnz7i.js"), IconButton = require("./IconButton-D-vS9cTS.js"), Slider = require("./Slider-Ba951T1H.js"), ToggleButton = require("./ToggleButton-CT_lqOtJ.js"), 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";
|
|
5
|
+
|
|
6
|
+
!function(PlayState) {
|
|
7
|
+
PlayState.Playing = "playing", PlayState.Paused = "paused", PlayState.Stopped = "stopped",
|
|
8
|
+
PlayState.Ended = "ended";
|
|
9
|
+
}(PlayState || (PlayState = {}));
|
|
10
|
+
|
|
11
|
+
const BaseVideo = React.forwardRef((props, ref) => {
|
|
12
|
+
const {children: children, src: src, playing: playing, loop: loop = !1, muted: muted = !0, playsInline: playsInline = !0, controls: controls = "simple", volume: volume = 1, poster: poster, captionsSrc: captionsSrc, playRate: playRate = 1, width: width = "100%", height: height = "auto", borderRadius: borderRadius, borderSize: borderSize, borderColor: borderColor, backgroundColor: backgroundColor, objectFit: objectFit = "contain", customControls: customControls = {
|
|
13
|
+
play: !1,
|
|
14
|
+
progress: !0,
|
|
15
|
+
volume: !0,
|
|
16
|
+
fullscreen: !0
|
|
17
|
+
}, onPlay: onPlay, onPause: onPause, onEnd: onEnd, onProgress: onProgress, onLoadProgress: onLoadProgress, onPlaybackRateChange: onPlaybackRateChange, onCanPlayThrough: onCanPlayThrough, onPlayStateChange: onPlayStateChange, onLoadMetaData: onLoadMetaData, onFullScreenChange: onFullScreenChange, onVolumeChange: onVolumeChange, onLoadedFrameData: onLoadedFrameData} = props, divAttributes = tslib_es6.__rest(props, [ "children", "src", "playing", "loop", "muted", "playsInline", "controls", "volume", "poster", "captionsSrc", "playRate", "width", "height", "borderRadius", "borderSize", "borderColor", "backgroundColor", "objectFit", "customControls", "onPlay", "onPause", "onEnd", "onProgress", "onLoadProgress", "onPlaybackRateChange", "onCanPlayThrough", "onPlayStateChange", "onLoadMetaData", "onFullScreenChange", "onVolumeChange", "onLoadedFrameData" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", videoRef = React.useRef(null), containerRef = React.useRef(null), progress = React.useRef(null), wasPlaying = React.useRef(null != playing && playing), playState = React.useRef(PlayState.Stopped), [isPlaying, setIsPlaying] = React.useState(null != playing && playing), [isMuted, setIsMuted] = React.useState(null != muted && muted), [currentVolume, setCurrentVolume] = React.useState(null != volume ? volume : 1), [currentProgress, setCurrentProgress] = React.useState(0), [hovered, setHovered] = React.useState(!1), timer = React.useRef(null), handleLoadProgress = React.useCallback(event => {
|
|
18
|
+
const target = event.target;
|
|
19
|
+
if (target.buffered.length > 0) {
|
|
20
|
+
const bufferedEnd = target.buffered.end(target.buffered.length - 1), duration = target.duration;
|
|
21
|
+
if (duration > 0) {
|
|
22
|
+
null == onLoadProgress || onLoadProgress(bufferedEnd / duration);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, [ onLoadProgress ]), handlePlayProgress = React.useCallback(event => {
|
|
26
|
+
var _a, _b, _c;
|
|
27
|
+
const target = event.target, percentPlayed = target.currentTime / target.duration;
|
|
28
|
+
if (setCurrentProgress(percentPlayed), progress.current !== percentPlayed) {
|
|
29
|
+
null == onProgress || onProgress(percentPlayed), progress.current = percentPlayed;
|
|
30
|
+
const isAtZero = 0 === (null === (_a = videoRef.current) || void 0 === _a ? void 0 : _a.currentTime), isAtEnd = (null === (_b = videoRef.current) || void 0 === _b ? void 0 : _b.currentTime) === (null === (_c = videoRef.current) || void 0 === _c ? void 0 : _c.duration);
|
|
31
|
+
isAtZero && target.paused ? (playState.current !== PlayState.Stopped && (null == onPlayStateChange || onPlayStateChange(PlayState.Stopped)),
|
|
32
|
+
playState.current = PlayState.Stopped) : isAtEnd ? (playState.current !== PlayState.Ended && (null == onPlayStateChange || onPlayStateChange(PlayState.Ended)),
|
|
33
|
+
playState.current = PlayState.Ended) : target.paused && playState.current !== PlayState.Paused ? (null == onPlayStateChange || onPlayStateChange(PlayState.Paused),
|
|
34
|
+
playState.current = PlayState.Paused) : target.paused || playState.current === PlayState.Playing || (null == onPlayStateChange || onPlayStateChange(PlayState.Playing),
|
|
35
|
+
playState.current = PlayState.Playing);
|
|
36
|
+
}
|
|
37
|
+
}, [ onProgress, onPlayStateChange ]), handleCanPlayThrough = React.useCallback(() => {
|
|
38
|
+
null == onCanPlayThrough || onCanPlayThrough();
|
|
39
|
+
}, [ onCanPlayThrough ]), handlePlay = React.useCallback(() => {
|
|
40
|
+
var _a, _b, _c;
|
|
41
|
+
(null === (_a = videoRef.current) || void 0 === _a ? void 0 : _a.paused) && videoRef.current.play().then(() => null),
|
|
42
|
+
null == onPlay || onPlay(), setIsPlaying(!0);
|
|
43
|
+
(null === (_b = videoRef.current) || void 0 === _b ? void 0 : _b.currentTime) === (null === (_c = videoRef.current) || void 0 === _c ? void 0 : _c.duration) ? (playState.current !== PlayState.Ended && (null == onPlayStateChange || onPlayStateChange(PlayState.Ended)),
|
|
44
|
+
playState.current = PlayState.Ended) : playState.current !== PlayState.Playing && (null == onPlayStateChange || onPlayStateChange(PlayState.Playing),
|
|
45
|
+
playState.current = PlayState.Playing);
|
|
46
|
+
}, [ onPlay, onPlayStateChange ]), handlePause = React.useCallback(() => {
|
|
47
|
+
var _a, _b, _c;
|
|
48
|
+
null == onPause || onPause(), setIsPlaying(!1);
|
|
49
|
+
const isAtZero = 0 === (null === (_a = videoRef.current) || void 0 === _a ? void 0 : _a.currentTime);
|
|
50
|
+
(null === (_b = videoRef.current) || void 0 === _b ? void 0 : _b.currentTime) === (null === (_c = videoRef.current) || void 0 === _c ? void 0 : _c.duration) || isAtZero || playState.current !== PlayState.Paused && (null == onPlayStateChange || onPlayStateChange(PlayState.Paused),
|
|
51
|
+
playState.current = PlayState.Paused);
|
|
52
|
+
}, [ onPause, onPlayStateChange ]), handleEnd = React.useCallback(() => {
|
|
53
|
+
null == onEnd || onEnd();
|
|
54
|
+
}, [ onEnd ]), handleLoadMetadata = React.useCallback(event => {
|
|
55
|
+
const target = event.target;
|
|
56
|
+
null == onLoadMetaData || onLoadMetaData(target.duration);
|
|
57
|
+
}, [ onLoadMetaData ]), handlePlaybackRate = React.useCallback(event => {
|
|
58
|
+
const playbackRate = event.target.playbackRate;
|
|
59
|
+
null == onPlaybackRateChange || onPlaybackRateChange(playbackRate);
|
|
60
|
+
}, [ onPlaybackRateChange ]), handlePlayClick = React.useCallback(play => {
|
|
61
|
+
const video = videoRef.current;
|
|
62
|
+
if (!video) return;
|
|
63
|
+
let setPlaying = video.paused;
|
|
64
|
+
void 0 !== play && (setPlaying = play), setPlaying ? video.play().then(() => null).catch(() => null) : video.pause();
|
|
65
|
+
}, []), handleMouseOver = React.useCallback(() => {
|
|
66
|
+
setHovered(!0), timer.current && clearTimeout(timer.current), timer.current = setTimeout(() => {
|
|
67
|
+
setHovered(!1);
|
|
68
|
+
}, 2e3);
|
|
69
|
+
}, []), handleMouseOut = React.useCallback(() => {
|
|
70
|
+
timer.current && clearTimeout(timer.current), setHovered(!1);
|
|
71
|
+
}, []), handleFullScreen = React.useCallback((state = !0) => {
|
|
72
|
+
const video = videoRef.current;
|
|
73
|
+
video && (state ? video.requestFullscreen().catch(() => null) : document.fullscreenElement === video && document.exitFullscreen().catch(() => null));
|
|
74
|
+
}, []), handleMute = React.useCallback(state => {
|
|
75
|
+
if (!videoRef.current) return;
|
|
76
|
+
let nextMuted = !videoRef.current.muted;
|
|
77
|
+
void 0 !== state && (nextMuted = state), videoRef.current.muted = nextMuted, setIsMuted(nextMuted);
|
|
78
|
+
}, []), handleRateChange = React.useCallback((rate = 1) => {
|
|
79
|
+
if (!videoRef.current) return;
|
|
80
|
+
let nextRate = rate;
|
|
81
|
+
rate < .5 && (nextRate = .5), rate > 3 && (nextRate = 3), videoRef.current.playbackRate = nextRate;
|
|
82
|
+
}, []), handleRestart = React.useCallback(() => {
|
|
83
|
+
videoRef.current && (videoRef.current.pause(), videoRef.current.currentTime = 0,
|
|
84
|
+
videoRef.current.play().then(() => null));
|
|
85
|
+
}, []), handleVolumeChange = React.useCallback((volume = 1) => {
|
|
86
|
+
if (!videoRef.current) return;
|
|
87
|
+
let nextVolume = volume;
|
|
88
|
+
volume < 0 && (nextVolume = 0), volume > 1 && (nextVolume = 1), videoRef.current.volume = nextVolume,
|
|
89
|
+
setCurrentVolume(nextVolume), null == onVolumeChange || onVolumeChange(nextVolume);
|
|
90
|
+
}, [ onVolumeChange ]), handleSetProgress = React.useCallback(progress => {
|
|
91
|
+
videoRef.current && (wasPlaying.current || (wasPlaying.current = !videoRef.current.paused),
|
|
92
|
+
videoRef.current.pause(), videoRef.current.currentTime = progress * videoRef.current.duration);
|
|
93
|
+
}, []), handleSeekEnd = React.useCallback(() => {
|
|
94
|
+
wasPlaying.current && (handlePlayClick(!0), wasPlaying.current = !1);
|
|
95
|
+
}, [ handlePlayClick ]), handleFullScreenChange = React.useCallback(() => {
|
|
96
|
+
const isFullscreen = document.fullscreenElement === videoRef.current;
|
|
97
|
+
null == onFullScreenChange || onFullScreenChange(isFullscreen);
|
|
98
|
+
}, [ onFullScreenChange ]), handleLoadedFrame = React.useCallback(() => {
|
|
99
|
+
null == onLoadedFrameData || onLoadedFrameData();
|
|
100
|
+
}, [ onLoadedFrameData ]);
|
|
101
|
+
React.useImperativeHandle(ref, () => ({
|
|
102
|
+
play: () => tslib_es6.__awaiter(void 0, void 0, void 0, function*() {
|
|
103
|
+
handlePlayClick(!0);
|
|
104
|
+
}),
|
|
105
|
+
stop: () => tslib_es6.__awaiter(void 0, void 0, void 0, function*() {
|
|
106
|
+
handlePlayClick(!1);
|
|
107
|
+
}),
|
|
108
|
+
restart: () => tslib_es6.__awaiter(void 0, void 0, void 0, function*() {
|
|
109
|
+
handleRestart();
|
|
110
|
+
}),
|
|
111
|
+
setVolume: volume => {
|
|
112
|
+
handleVolumeChange(volume);
|
|
113
|
+
},
|
|
114
|
+
mute: mute => {
|
|
115
|
+
handleMute(mute);
|
|
116
|
+
},
|
|
117
|
+
fullscreen: state => {
|
|
118
|
+
handleFullScreen(state);
|
|
119
|
+
},
|
|
120
|
+
playbackRate: rate => {
|
|
121
|
+
handleRateChange(rate);
|
|
122
|
+
},
|
|
123
|
+
get videoElement() {
|
|
124
|
+
var _a;
|
|
125
|
+
return null !== (_a = videoRef.current) && void 0 !== _a ? _a : void 0;
|
|
126
|
+
}
|
|
127
|
+
}), [ handlePlayClick, handleRestart, handleMute, handleFullScreen, handleRateChange, handleVolumeChange ]);
|
|
128
|
+
const showCustomControls = React.useMemo(() => "default" !== controls && "none" !== controls, [ controls ]), cssVars = React.useMemo(() => ({
|
|
129
|
+
"--video-width": misc.setStyle(width, "unset"),
|
|
130
|
+
"--video-height": misc.setStyle(height, "unset"),
|
|
131
|
+
"--video-border-radius": misc.setStyle(borderRadius, 0),
|
|
132
|
+
"--video-border-size": misc.setStyle(borderSize, 0),
|
|
133
|
+
"--video-border-color": misc.setStyle(borderColor, "transparent"),
|
|
134
|
+
"--video-bg-color": misc.setStyle(backgroundColor, "transparent"),
|
|
135
|
+
"--video-object-fit": null != objectFit ? objectFit : "contain",
|
|
136
|
+
"--video-controls-pointer-events": hovered ? "auto" : "none",
|
|
137
|
+
"--video-controls-opacity": hovered ? 1 : 0
|
|
138
|
+
}), [ width, height, borderRadius, borderSize, borderColor, backgroundColor, objectFit, hovered ]), speakerIcon = React.useMemo(() => isMuted || 0 === currentVolume ? "speaker muted" : "speaker", [ isMuted, currentVolume ]);
|
|
139
|
+
return React.useEffect(() => handleRateChange(playRate), [ playRate, handleRateChange ]),
|
|
140
|
+
React.useEffect(() => {
|
|
141
|
+
void 0 !== playing && handlePlayClick(playing);
|
|
142
|
+
}, [ playing, handlePlayClick ]), React.useEffect(() => handleMute(muted), [ muted, handleMute ]),
|
|
143
|
+
React.useEffect(() => handleVolumeChange(volume), [ volume, handleVolumeChange ]),
|
|
144
|
+
React.useEffect(() => {
|
|
145
|
+
var _a, _b;
|
|
146
|
+
return null === (_a = videoRef.current) || void 0 === _a || _a.addEventListener("seeked", handleSeekEnd),
|
|
147
|
+
null === (_b = videoRef.current) || void 0 === _b || _b.addEventListener("loadeddata", handleLoadedFrame),
|
|
148
|
+
document.addEventListener("fullscreenchange", handleFullScreenChange), () => {
|
|
149
|
+
var _a, _b;
|
|
150
|
+
null === (_a = videoRef.current) || void 0 === _a || _a.removeEventListener("seeked", handleSeekEnd),
|
|
151
|
+
null === (_b = videoRef.current) || void 0 === _b || _b.removeEventListener("loadeddata", handleLoadedFrame),
|
|
152
|
+
document.removeEventListener("fullscreenchange", handleFullScreenChange);
|
|
153
|
+
};
|
|
154
|
+
}, [ handleSeekEnd, handleFullScreenChange, handleLoadedFrame ]), jsxRuntime.jsxs("div", Object.assign({
|
|
155
|
+
id: divId,
|
|
156
|
+
ref: containerRef,
|
|
157
|
+
className: `${css_wrapper}${divClass}`,
|
|
158
|
+
style: Object.assign(Object.assign({}, cssVars), divStyle),
|
|
159
|
+
onMouseEnter: handleMouseOver,
|
|
160
|
+
onMouseLeave: handleMouseOut,
|
|
161
|
+
onBlur: handleMouseOut,
|
|
162
|
+
onFocus: handleMouseOver,
|
|
163
|
+
onMouseMove: handleMouseOver
|
|
164
|
+
}, rest, {
|
|
165
|
+
children: [ showCustomControls && jsxRuntime.jsxs("div", {
|
|
166
|
+
className: css_controls,
|
|
167
|
+
children: [ !children && "simple" === controls && jsxRuntime.jsxs("div", {
|
|
168
|
+
className: css_controls,
|
|
169
|
+
children: [ jsxRuntime.jsxs("div", {
|
|
170
|
+
className: css_controlsHeader,
|
|
171
|
+
children: [ customControls.fullscreen && jsxRuntime.jsx("div", {
|
|
172
|
+
className: css_left,
|
|
173
|
+
children: jsxRuntime.jsx(IconButton.IconButton, {
|
|
174
|
+
icon: "fullscreen",
|
|
175
|
+
iconFill: !0,
|
|
176
|
+
buttonSize: "m",
|
|
177
|
+
iconSize: 18,
|
|
178
|
+
bgColor: "rgba(255,255,255,0.05)",
|
|
179
|
+
bgColorHover: "rgba(0,0,0,0.7)",
|
|
180
|
+
iconColor: "var(--core-text-light)",
|
|
181
|
+
iconColorHover: "var(--core-text-light)",
|
|
182
|
+
onClick: () => handleFullScreen(!0)
|
|
183
|
+
})
|
|
184
|
+
}), customControls.volume && jsxRuntime.jsxs("div", {
|
|
185
|
+
className: css_right,
|
|
186
|
+
children: [ jsxRuntime.jsx(IconButton.IconButton, {
|
|
187
|
+
icon: speakerIcon,
|
|
188
|
+
iconFill: !0,
|
|
189
|
+
buttonSize: "m",
|
|
190
|
+
iconSize: 20,
|
|
191
|
+
bgColor: "rgba(255,255,255,0.05)",
|
|
192
|
+
bgColorHover: "rgba(0,0,0,0.7)",
|
|
193
|
+
bgColorOn: "rgba(0,0,0,0.5)",
|
|
194
|
+
iconColor: "var(--core-text-light)",
|
|
195
|
+
iconColorHover: "var(--core-text-light)",
|
|
196
|
+
onClick: () => handleMute()
|
|
197
|
+
}), jsxRuntime.jsx(Slider.Slider, {
|
|
198
|
+
trackColor: "rgba(0,0,0,0.5)",
|
|
199
|
+
progressColor: "var(--core-text-light)",
|
|
200
|
+
trackHeadSize: 16,
|
|
201
|
+
trackHeadBorderSize: 0,
|
|
202
|
+
scaleMax: 1,
|
|
203
|
+
scaleMin: 0,
|
|
204
|
+
value: currentVolume,
|
|
205
|
+
onChange: value => handleVolumeChange(value)
|
|
206
|
+
}) ]
|
|
207
|
+
}) ]
|
|
208
|
+
}), jsxRuntime.jsx("div", {
|
|
209
|
+
className: css_controlsBody,
|
|
210
|
+
children: customControls.play && jsxRuntime.jsx(ToggleButton.ToggleButton, {
|
|
211
|
+
selected: isPlaying,
|
|
212
|
+
icon: "play",
|
|
213
|
+
iconOn: "pause",
|
|
214
|
+
iconSize: 48,
|
|
215
|
+
buttonSize: "xl",
|
|
216
|
+
bgColor: "rgba(0,0,0,0.5)",
|
|
217
|
+
bgColorHover: "rgba(0,0,0,0.7)",
|
|
218
|
+
bgColorOn: "rgba(0,0,0,0.5)",
|
|
219
|
+
iconColor: "var(--core-text-light)",
|
|
220
|
+
iconColorOn: "var(--core-text-light)",
|
|
221
|
+
iconColorHover: "var(--core-text-light)",
|
|
222
|
+
onChange: () => handlePlayClick()
|
|
223
|
+
})
|
|
224
|
+
}), jsxRuntime.jsx("div", {
|
|
225
|
+
className: css_controlsFooter,
|
|
226
|
+
children: customControls.progress && jsxRuntime.jsxs("div", {
|
|
227
|
+
className: css_progress,
|
|
228
|
+
children: [ jsxRuntime.jsx(ToggleButton.ToggleButton, {
|
|
229
|
+
selected: isPlaying,
|
|
230
|
+
icon: "play",
|
|
231
|
+
iconOn: "pause",
|
|
232
|
+
buttonSize: "m",
|
|
233
|
+
iconSize: 28,
|
|
234
|
+
bgColor: "rgba(255,255,255,0.05)",
|
|
235
|
+
bgColorHover: "rgba(0,0,0,0.7)",
|
|
236
|
+
bgColorOn: "rgba(255,255,255,0.05)",
|
|
237
|
+
iconColor: "var(--core-text-light)",
|
|
238
|
+
iconColorHover: "var(--core-text-light)",
|
|
239
|
+
iconColorOn: "var(--core-text-light)",
|
|
240
|
+
onChange: () => handlePlayClick()
|
|
241
|
+
}), jsxRuntime.jsx(Slider.Slider, {
|
|
242
|
+
trackColor: "rgba(0,0,0,0.5)",
|
|
243
|
+
progressColor: "var(--core-text-light)",
|
|
244
|
+
trackHeadSize: 16,
|
|
245
|
+
trackHeadBorderSize: 0,
|
|
246
|
+
scaleMax: 1,
|
|
247
|
+
scaleMin: 0,
|
|
248
|
+
value: currentProgress,
|
|
249
|
+
onChange: handleSetProgress,
|
|
250
|
+
width: "100%"
|
|
251
|
+
}) ]
|
|
252
|
+
})
|
|
253
|
+
}) ]
|
|
254
|
+
}), "custom" === controls && children ]
|
|
255
|
+
}), jsxRuntime.jsx("video", {
|
|
256
|
+
ref: videoRef,
|
|
257
|
+
src: src,
|
|
258
|
+
autoPlay: !1,
|
|
259
|
+
playsInline: playsInline,
|
|
260
|
+
loop: loop,
|
|
261
|
+
muted: isMuted,
|
|
262
|
+
controls: "default" === controls,
|
|
263
|
+
poster: poster,
|
|
264
|
+
onCanPlayThrough: handleCanPlayThrough,
|
|
265
|
+
onPlay: handlePlay,
|
|
266
|
+
onPause: handlePause,
|
|
267
|
+
onEnded: handleEnd,
|
|
268
|
+
onProgress: handleLoadProgress,
|
|
269
|
+
onTimeUpdate: handlePlayProgress,
|
|
270
|
+
onRateChange: handlePlaybackRate,
|
|
271
|
+
onLoadedMetadata: handleLoadMetadata,
|
|
272
|
+
className: css_video,
|
|
273
|
+
children: jsxRuntime.jsx("track", {
|
|
274
|
+
kind: "captions",
|
|
275
|
+
src: captionsSrc
|
|
276
|
+
})
|
|
277
|
+
}) ]
|
|
278
|
+
}));
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
BaseVideo.displayName = "Video";
|
|
282
|
+
|
|
283
|
+
const Video = React.memo(BaseVideo);
|
|
284
|
+
|
|
285
|
+
exports.Video = Video;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-BiEkm1EG.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react");
|
|
5
|
+
|
|
6
|
+
require("./microphoneStore-BM-XC3HM.js"), require("./volumeStore-Cq7cBiVC.js"),
|
|
7
|
+
require("./webRTCStore-BO-7A2lW.js");
|
|
8
|
+
|
|
9
|
+
var misc = require("./misc-BKCSnz7i.js"), IconButton = require("./IconButton-D-vS9cTS.js"), Overlay = require("./Overlay-BAPCjL1R.js"), videoStore = require("./videoStore-uqxnwumS.js"), css_container = "VideoController-module_container__wNiGy", css_box = "VideoController-module_box__a0PRD", css_wrapper = "VideoController-module_wrapper__RhpUo", css_video = "VideoController-module_video__9bS2L";
|
|
10
|
+
|
|
11
|
+
const defaultTransition = {
|
|
12
|
+
ease: "easeOut",
|
|
13
|
+
duration: .25,
|
|
14
|
+
delay: .1
|
|
15
|
+
}, defaultVariants = {
|
|
16
|
+
initial: {
|
|
17
|
+
opacity: 0
|
|
18
|
+
},
|
|
19
|
+
animate: {
|
|
20
|
+
opacity: 1
|
|
21
|
+
},
|
|
22
|
+
exit: {
|
|
23
|
+
opacity: 0
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.VideoController = function(props) {
|
|
28
|
+
var _a;
|
|
29
|
+
const {dragConstraintsRef: dragConstraintsRef, transition: transition = defaultTransition, variants: variants = defaultVariants, initial: initial = "initial", animate: animate = "animate", exit: exit = "exit", draggable: draggable = !0, overlayOpacity: overlayOpacity = .7, overlayColor: overlayColor = "rgb(0,0,0)", padding: padding = 64, borderRadius: borderRadius = 8} = props, controls = react.useDragControls(), video = videoStore.useVideo(), hide = videoStore.useVideoActions().clear, VideoComponent = null == video ? void 0 : video.component, _b = null !== (_a = null == video ? void 0 : video.props) && void 0 !== _a ? _a : {}, {onLoadedFrameData: onLoadedFrameData, borderRadius: videoBorderRadius} = _b, videoProps = tslib_es6.__rest(_b, [ "onLoadedFrameData", "borderRadius" ]), ref = React.useRef(null), constraints = null != dragConstraintsRef ? dragConstraintsRef : ref, [ready, setReady] = React.useState(!1);
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
(null == video ? void 0 : video.id) && setReady(!1);
|
|
32
|
+
}, [ null == video ? void 0 : video.id ]);
|
|
33
|
+
const handleHide = () => {
|
|
34
|
+
setReady(!1), hide();
|
|
35
|
+
}, cssVars = React.useMemo(() => ({
|
|
36
|
+
"--overlay-padding": misc.setStyle(padding, 64),
|
|
37
|
+
"--video-visibility": ready ? "visible" : "hidden",
|
|
38
|
+
"--video-border-radius": misc.setStyle(borderRadius, 8)
|
|
39
|
+
}), [ padding, ready, borderRadius ]);
|
|
40
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
41
|
+
children: [ jsxRuntime.jsx(Overlay.Overlay, {
|
|
42
|
+
show: !!video,
|
|
43
|
+
type: "dark",
|
|
44
|
+
opacity: overlayOpacity,
|
|
45
|
+
color: overlayColor,
|
|
46
|
+
onClick: handleHide
|
|
47
|
+
}), jsxRuntime.jsx(react.AnimatePresence, {
|
|
48
|
+
initial: !1,
|
|
49
|
+
children: video && VideoComponent && jsxRuntime.jsx("div", {
|
|
50
|
+
className: css_container,
|
|
51
|
+
ref: ref,
|
|
52
|
+
style: cssVars,
|
|
53
|
+
children: jsxRuntime.jsx("div", {
|
|
54
|
+
className: css_box,
|
|
55
|
+
children: jsxRuntime.jsxs(react.motion.div, {
|
|
56
|
+
className: css_wrapper,
|
|
57
|
+
variants: variants,
|
|
58
|
+
initial: initial,
|
|
59
|
+
animate: animate,
|
|
60
|
+
exit: exit,
|
|
61
|
+
transition: transition,
|
|
62
|
+
drag: draggable,
|
|
63
|
+
dragListener: !draggable && void 0,
|
|
64
|
+
dragControls: draggable ? controls : void 0,
|
|
65
|
+
dragConstraints: draggable ? constraints : void 0,
|
|
66
|
+
dragElastic: draggable ? 0 : void 0,
|
|
67
|
+
dragMomentum: !draggable && void 0,
|
|
68
|
+
children: [ jsxRuntime.jsx("div", {
|
|
69
|
+
className: css_video,
|
|
70
|
+
children: jsxRuntime.jsx(VideoComponent, Object.assign({}, videoProps, {
|
|
71
|
+
borderRadius: null != borderRadius ? borderRadius : videoBorderRadius,
|
|
72
|
+
onLoadedFrameData: () => {
|
|
73
|
+
setReady(!0), null == onLoadedFrameData || onLoadedFrameData();
|
|
74
|
+
}
|
|
75
|
+
}))
|
|
76
|
+
}), jsxRuntime.jsx(IconButton.IconButton, {
|
|
77
|
+
icon: "x",
|
|
78
|
+
buttonSize: "l",
|
|
79
|
+
onClick: handleHide,
|
|
80
|
+
bgColor: "rgba(255,255,255,0.05)",
|
|
81
|
+
bgColorHover: "rgba(255,255,255,0.25)",
|
|
82
|
+
iconColor: "var(--core-text-light)",
|
|
83
|
+
iconColorHover: "var(--core-text-light)"
|
|
84
|
+
}) ]
|
|
85
|
+
})
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
}) ]
|
|
89
|
+
});
|
|
90
|
+
};
|
|
@@ -43,7 +43,11 @@ exports.SliceIcons = {
|
|
|
43
43
|
speaker: "speaker",
|
|
44
44
|
speakerMuted: "speaker muted",
|
|
45
45
|
speakerHigh: "speaker high",
|
|
46
|
-
speakerLow: "speaker low"
|
|
46
|
+
speakerLow: "speaker low",
|
|
47
|
+
play: "play",
|
|
48
|
+
playCircle: "play circle",
|
|
49
|
+
pause: "pause",
|
|
50
|
+
pauseCircle: "pause circle"
|
|
47
51
|
},
|
|
48
52
|
files: {
|
|
49
53
|
document: "document",
|
|
@@ -128,6 +132,7 @@ exports.SliceIcons = {
|
|
|
128
132
|
sidebar: "sidebar",
|
|
129
133
|
sidebarSplit: "sidebar split",
|
|
130
134
|
keyboard: "keyboard",
|
|
131
|
-
x: "x"
|
|
135
|
+
x: "x",
|
|
136
|
+
fullscreen: "fullscreen"
|
|
132
137
|
}
|
|
133
138
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require("./tslib.es6-
|
|
3
|
+
var tslib_es6 = require("./tslib.es6-BiEkm1EG.js"), React = require("react"), zustand = require("zustand"), shallow = require("zustand/react/shallow"), IndexedDB = require("./IndexedDB-D7vMzi1C.js");
|
|
4
4
|
|
|
5
5
|
function isValidIDBKey(key) {
|
|
6
6
|
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,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-BiEkm1EG.js"), React = require("react"), zustand = require("zustand");
|
|
5
5
|
|
|
6
6
|
const emptyMicStreamRef = {
|
|
7
7
|
current: null
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var zustand = require("zustand");
|
|
4
4
|
|
|
5
|
-
require("./tslib.es6-
|
|
5
|
+
require("./tslib.es6-BiEkm1EG.js");
|
|
6
6
|
|
|
7
|
-
var SSEConnection = require("./SSEConnection-
|
|
7
|
+
var SSEConnection = require("./SSEConnection-j9n8tDd-.js");
|
|
8
8
|
|
|
9
9
|
const useSSEStore = zustand.create((set, get) => ({
|
|
10
10
|
connections: [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var FileUploadStatus, UploadError, WorkerStatus, tslib_es6 = require("./tslib.es6-
|
|
3
|
+
var FileUploadStatus, UploadError, WorkerStatus, tslib_es6 = require("./tslib.es6-BiEkm1EG.js");
|
|
4
4
|
|
|
5
5
|
!function(FileUploadStatus) {
|
|
6
6
|
FileUploadStatus.queued = "pending", FileUploadStatus.uploading = "uploading", FileUploadStatus.completed = "completed",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var zustand = require("zustand"), uploadsWorker$1 = require("./uploads-worker-
|
|
3
|
+
var zustand = require("zustand"), uploadsWorker$1 = require("./uploads-worker-C3qvQXla.js"), _documentCurrentScript = "undefined" != typeof document ? document.currentScript : null;
|
|
4
4
|
|
|
5
5
|
let uploadsWorker = null;
|
|
6
6
|
|
|
@@ -64,7 +64,7 @@ function handleWorkerMessage(event) {
|
|
|
64
64
|
const uploadsActions = useUploadsStore.getState().actions;
|
|
65
65
|
|
|
66
66
|
exports.createUploadsWorker = function(workerUrl) {
|
|
67
|
-
return new Worker(null != workerUrl ? workerUrl : new URL("../../workers/uploads/uploads.ts", "undefined" == typeof document ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && "SCRIPT" === _documentCurrentScript.tagName.toUpperCase() && _documentCurrentScript.src || new URL("chunks/uploadsStore-
|
|
67
|
+
return new Worker(null != workerUrl ? workerUrl : new URL("../../workers/uploads/uploads.ts", "undefined" == typeof document ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && "SCRIPT" === _documentCurrentScript.tagName.toUpperCase() && _documentCurrentScript.src || new URL("chunks/uploadsStore-DLjRL7bJ.js", document.baseURI).href), {
|
|
68
68
|
type: "module"
|
|
69
69
|
});
|
|
70
70
|
}, exports.getUploads = () => useUploadsStore.getState().uploads, exports.getUploadsError = () => useUploadsStore.getState().error,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const useVideoStore = require("zustand").create((set, get) => ({
|
|
4
|
+
video: null,
|
|
5
|
+
actions: {
|
|
6
|
+
show: video => {
|
|
7
|
+
get().video !== video && set({
|
|
8
|
+
video: video
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
clear: () => {
|
|
12
|
+
set({
|
|
13
|
+
video: null
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
})), videoActions = useVideoStore.getState().actions;
|
|
18
|
+
|
|
19
|
+
exports.getVideo = () => useVideoStore.getState().video, exports.useVideo = () => useVideoStore(state => state.video),
|
|
20
|
+
exports.useVideoActions = () => useVideoStore(state => state.actions), exports.useVideoStore = useVideoStore,
|
|
21
|
+
exports.videoActions = videoActions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require("./tslib.es6-
|
|
3
|
+
var tslib_es6 = require("./tslib.es6-BiEkm1EG.js"), zustand = require("zustand"), WebRTCConnection = require("./WebRTCConnection-hG9FYZwt.js");
|
|
4
4
|
|
|
5
5
|
const useWebRTCStore = zustand.create((set, get) => ({
|
|
6
6
|
connections: [],
|