@apple-pie/slice 0.1.52 → 0.1.54
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-Di2Qyjer.js → AudioBubble-Dr6qLxhJ.js} +5 -4
- package/dist/cjs/chunks/{Avatar-L6s2-x0u.js → Avatar-Dm6-L043.js} +2 -2
- package/dist/cjs/chunks/{AvatarGroup-DNGFPl1j.js → AvatarGroup-COzT3ILz.js} +3 -3
- package/dist/cjs/chunks/{Badge-CWASZI0E.js → Badge--0CfhLFo.js} +1 -1
- package/dist/cjs/chunks/{Button-kzWt5lcL.js → Button-GKTXo4mq.js} +5 -5
- package/dist/cjs/chunks/{ButtonBar-BaFGN5AR.js → ButtonBar-DTx0V5jh.js} +2 -2
- package/dist/cjs/chunks/{Camera-CBZmVUf6.js → Camera-D-JFUCUD.js} +7 -6
- package/dist/cjs/chunks/{CheckBox-D8e57FqA.js → CheckBox-C15tG2Bk.js} +1 -1
- package/dist/cjs/chunks/{Chip-DCFtFPpu.js → Chip-Ew-cd6K_.js} +2 -2
- package/dist/cjs/chunks/{DivInput-BbYo5dnn.js → DivInput-D9tdT7eI.js} +5 -5
- package/dist/cjs/chunks/{Dot-ByKZIcva.js → Dot-C_3SC1bM.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-EvnMMRh0.js → DrggablePanel-BJHDIkhE.js} +21 -16
- package/dist/cjs/chunks/{DropDown-C-i2rIhH.js → DropDown-CAOUZGB0.js} +2 -2
- package/dist/cjs/chunks/{ErrorSummary-DLaE1duh.js → ErrorSummary-O4j5yVBP.js} +6 -5
- package/dist/cjs/chunks/{FileIcon-DqFMbhRF.js → FileIcon-CzZLisJx.js} +5 -5
- package/dist/cjs/chunks/{FileList-C3KR7jHj.js → FileList-Be7Sn-bF.js} +2 -2
- package/dist/cjs/chunks/{FlexDiv-BPmDJlQe.js → FlexDiv-D7PuHhZt.js} +1 -1
- package/dist/cjs/chunks/{Grouper-Bm013ATj.js → Grouper-BFDVqFxW.js} +5 -5
- package/dist/cjs/chunks/{Icon-CUbgmUeu.js → Icon-CsNB8HJ4.js} +5 -4
- package/dist/cjs/chunks/{IconButton-BbgyyMjG.js → IconButton-DlLDM8w2.js} +3 -3
- package/dist/cjs/chunks/{IndexedDB-DFVmvrQg.js → IndexedDB-Cj_Oxilj.js} +8 -4
- package/dist/cjs/chunks/{Label-CDuN-9n3.js → Label-BB8PYTuF.js} +2 -2
- package/dist/cjs/chunks/{Level-vbDvflcO.js → Level-IuQRDwDH.js} +3 -3
- package/dist/cjs/chunks/{Modal-BS-9UkxV.js → Modal-c5lf--ia.js} +3 -2
- package/dist/cjs/chunks/{ModalController-B-m3OD5K.js → ModalController-DqlX7Bvu.js} +3 -2
- package/dist/cjs/chunks/{Overlay-QprT1IaK.js → Overlay-BS3eyLZz.js} +2 -2
- package/dist/cjs/chunks/{Pager-7edBFop6.js → Pager-CLGGNiPg.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-Bi1UfJIW.js → ProgressIndicator-CctdHXiJ.js} +5 -4
- package/dist/cjs/chunks/{PromptInput-BHDK8fjX.js → PromptInput-BmPDEllv.js} +13 -8
- package/dist/cjs/chunks/{RadioButton-SqAqjkcO.js → RadioButton-aMfLOeHI.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-Bk4zdfNK.js → RadioButtonList-DUAZeawt.js} +1 -1
- package/dist/cjs/chunks/{Slider-CGXCa5hf.js → Slider-CCqbXz95.js} +5 -4
- package/dist/cjs/chunks/{Spacer-Cz634l5B.js → Spacer-1dAdRzu7.js} +1 -1
- package/dist/cjs/chunks/{Switch-BWz76WjN.js → Switch-D5qUfthw.js} +2 -2
- package/dist/cjs/chunks/{TabBar-BhV5XeiX.js → TabBar-zpHPLgxV.js} +6 -5
- package/dist/cjs/chunks/{TextArea-Dc0MXEtY.js → TextArea-Dq4U3Kpd.js} +5 -5
- package/dist/cjs/chunks/{TextField-l62uCubT.js → TextField-qjDwSe8i.js} +12 -7
- package/dist/cjs/chunks/{Tip-BBMqZlgV.js → Tip-l0mnd4j8.js} +3 -3
- package/dist/cjs/chunks/{Toast-DNSA3BzO.js → Toast-DLh9lGPy.js} +6 -5
- package/dist/cjs/chunks/{ToggleButton-DclomTgT.js → ToggleButton-BXsZ_GRW.js} +5 -5
- package/dist/cjs/chunks/{UploadArea-Bm674kMd.js → UploadArea-O7qgIT09.js} +5 -5
- package/dist/cjs/chunks/{Video-Be2aIETB.js → Video-bDe-_ZqY.js} +26 -22
- package/dist/cjs/chunks/{VideoController-BCTD_gZh.js → VideoController-CpDn6I-1.js} +9 -7
- package/dist/cjs/chunks/{WSConnection-pryKJWc6.js → WSConnection-DSXroJhQ.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-C_GRUnIY.js → WebRTCConnection-hyxJJPiJ.js} +1 -1
- package/dist/cjs/chunks/{browserChannelsStore-6ZSY_xb-.js → browserChannelsStore-CmnVwY1c.js} +2 -2
- package/dist/cjs/chunks/{localDBStore-DO3FanPt.js → localDBStore-DmIQbLFy.js} +2 -2
- package/dist/cjs/chunks/magic-string.es-B_Vt62F2.js +724 -0
- package/dist/cjs/chunks/{microphoneStore-Ch3VVm4T.js → microphoneStore-Dn91izLl.js} +1 -1
- package/dist/cjs/chunks/{misc-BNlFh_4N.js → misc-BPL5e5rQ.js} +1 -1
- package/dist/cjs/chunks/{sseStore-C_INE2Dq.js → sseStore-DQsxYylT.js} +3 -3
- package/dist/cjs/chunks/{uploads-worker-Bz66LCly.js → uploads-worker-CrDHS1Wi.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-blQX5Zny.js → uploadsStore-Cnsx2-as.js} +2 -2
- package/dist/cjs/chunks/{viewState-8FeRZBG3.js → viewState-ClGpHAw4.js} +8 -7
- package/dist/cjs/chunks/{volumeStore-CA9Pdx5e.js → volumeStore-DsHPJx-8.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-Bu7_nxNq.js → webRTCStore-w3zT4ZiO.js} +2 -2
- package/dist/cjs/chunks/{windowStore-CYvn2_ma.js → windowStore-bOEjKVUr.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +6 -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 +12 -11
- package/dist/cjs/components/ButtonBar/index.js +9 -8
- package/dist/cjs/components/Camera/index.js +8 -7
- package/dist/cjs/components/CheckBox/index.js +6 -5
- package/dist/cjs/components/Chip/index.js +9 -9
- package/dist/cjs/components/DataTable/index.js +13 -13
- package/dist/cjs/components/DivInput/index.js +4 -3
- package/dist/cjs/components/Dot/index.js +2 -2
- package/dist/cjs/components/DraggablePanel/index.js +6 -5
- package/dist/cjs/components/DropDown/index.js +9 -8
- 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 +7 -6
- 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 +12 -10
- package/dist/cjs/components/Label/index.js +4 -3
- package/dist/cjs/components/Level/index.js +4 -4
- package/dist/cjs/components/Modal/index.js +12 -12
- package/dist/cjs/components/ModalController/index.js +6 -5
- package/dist/cjs/components/Overlay/index.js +2 -2
- package/dist/cjs/components/Pager/index.js +3 -3
- package/dist/cjs/components/Progress/index.js +6 -5
- package/dist/cjs/components/PromptInput/index.js +10 -9
- package/dist/cjs/components/RadioButton/index.js +6 -5
- package/dist/cjs/components/RadioButtonList/index.js +7 -6
- package/dist/cjs/components/Slider/index.js +6 -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 -8
- package/dist/cjs/components/TextArea/index.js +12 -12
- package/dist/cjs/components/Textfield/index.js +10 -9
- package/dist/cjs/components/Tip/index.js +4 -3
- package/dist/cjs/components/Toast/index.js +7 -6
- package/dist/cjs/components/ToggleButton/index.js +12 -12
- package/dist/cjs/components/UploadArea/index.js +11 -10
- package/dist/cjs/components/Video/index.js +15 -13
- package/dist/cjs/components/VideoController/index.js +12 -12
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +2 -2
- package/dist/cjs/hooks/useClipboard.js +2 -2
- package/dist/cjs/hooks/useMdStreamBuffer.js +2 -2
- package/dist/cjs/hooks/useMicrophone.js +1 -1
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +4 -4
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/providers/themeServer.test.js +10574 -0
- package/dist/cjs/stores/LocalDB.js +3 -3
- package/dist/cjs/stores/SSE.js +3 -3
- package/dist/cjs/stores/WS.js +3 -3
- package/dist/cjs/stores/WebRTC.js +3 -3
- package/dist/cjs/stores/browserChannel.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 +1 -1
- package/dist/cjs/stores/volume.js +2 -2
- package/dist/cjs/stores/window.js +2 -2
- package/dist/cjs/stores.js +15 -16
- package/dist/cjs/theme/corners.js +8 -8
- 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-BzlrPWjD.mjs → AudioBubble-D-RT0yf7.mjs} +8 -6
- package/dist/esm/chunks/{Avatar-DE7v6q5Z.mjs → Avatar-Cfg6FJ0s.mjs} +3 -3
- package/dist/esm/chunks/{AvatarGroup-B-E3eFeF.mjs → AvatarGroup-Gj3VU9aT.mjs} +4 -4
- package/dist/esm/chunks/{Badge-Cli_Ebpu.mjs → Badge-gU-yUZyp.mjs} +1 -1
- package/dist/esm/chunks/{Button-BdxJ4wnE.mjs → Button-CWM6SoTH.mjs} +12 -10
- package/dist/esm/chunks/{ButtonBar-LIzMkcAW.mjs → ButtonBar-Dn8dKTlX.mjs} +6 -4
- package/dist/esm/chunks/{Camera-DQIlyciR.mjs → Camera-IjLmPnrx.mjs} +11 -9
- package/dist/esm/chunks/{CheckBox-yuitT-oK.mjs → CheckBox-N-f1qiAg.mjs} +3 -3
- package/dist/esm/chunks/{Chip-BVWlgpZ4.mjs → Chip-3QPbsJ7y.mjs} +7 -5
- package/dist/esm/chunks/{DivInput-SeyX77Nb.mjs → DivInput-BWjyG_0R.mjs} +8 -6
- package/dist/esm/chunks/{Dot-Lyaimh03.mjs → Dot-BbRo6uDo.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel--TPNDMpD.mjs → DrggablePanel-BxhttOxO.mjs} +23 -17
- package/dist/esm/chunks/{DropDown-BmumgcHV.mjs → DropDown-6pBlQiK9.mjs} +6 -4
- package/dist/esm/chunks/{ErrorSummary-CPsaqCL-.mjs → ErrorSummary-CYabMp4V.mjs} +8 -6
- package/dist/esm/chunks/{FileIcon-Ckvm7EOw.mjs → FileIcon-AtwKsycg.mjs} +7 -5
- package/dist/esm/chunks/{FileList-D0b6RxKc.mjs → FileList-WNFbRSQz.mjs} +6 -6
- package/dist/esm/chunks/{FlexDiv-D7wQNKz0.mjs → FlexDiv-B0zpV_yw.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-BrjPf1Zm.mjs → Grouper-cxRPaYkF.mjs} +8 -6
- package/dist/esm/chunks/{Icon-DGQB6Mfm.mjs → Icon-Ce2CM7lt.mjs} +7 -5
- package/dist/esm/chunks/{IconButton-Wffb0Rhg.mjs → IconButton-DmhOQNtq.mjs} +9 -7
- package/dist/esm/chunks/{IndexedDB-Cwb-PZNm.mjs → IndexedDB-CTcPvxFz.mjs} +8 -4
- package/dist/esm/chunks/{Label-BF7Bac6I.mjs → Label-CKShh9JV.mjs} +5 -3
- package/dist/esm/chunks/{Level-DnWQ5mLH.mjs → Level-B-ccKdXg.mjs} +7 -5
- package/dist/esm/chunks/{Modal-BuDVEntK.mjs → Modal-l6vmZBDp.mjs} +9 -6
- package/dist/esm/chunks/{ModalController-CWZBh7Dg.mjs → ModalController-Bs280SUJ.mjs} +6 -4
- package/dist/esm/chunks/{Overlay-DXAULyRd.mjs → Overlay-BhrCyPRX.mjs} +2 -2
- package/dist/esm/chunks/{Pager-Bjwlh0Vs.mjs → Pager-Pd6QanSG.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-C8tli-Jg.mjs → ProgressIndicator-dkR6UF1M.mjs} +7 -5
- package/dist/esm/chunks/{PromptInput-JE3EkzEV.mjs → PromptInput-CLVqz0ux.mjs} +14 -10
- package/dist/esm/chunks/{RadioButton-BK37fGER.mjs → RadioButton-ClKR7eks.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-CPfE3YBM.mjs → RadioButtonList-YtfbHCig.mjs} +3 -3
- package/dist/esm/chunks/{Slider-D6nWSQ-A.mjs → Slider-B8A9FdgY.mjs} +8 -6
- package/dist/esm/chunks/{Spacer-CWY79s4p.mjs → Spacer-CNowPM3L.mjs} +1 -1
- package/dist/esm/chunks/{Switch-De_cFgOS.mjs → Switch-BT1dUQya.mjs} +2 -2
- package/dist/esm/chunks/{TabBar-CCq8-TdA.mjs → TabBar-CCiJ42x5.mjs} +11 -9
- package/dist/esm/chunks/{TextArea-kAVb9Lpy.mjs → TextArea-MVHdEa8y.mjs} +8 -6
- package/dist/esm/chunks/{TextField-MxcxS6SE.mjs → TextField-BZ2kmUcF.mjs} +13 -9
- package/dist/esm/chunks/{Tip-CuRp-fki.mjs → Tip-dvhw-sBF.mjs} +6 -4
- package/dist/esm/chunks/{Toast-CvWVJwrM.mjs → Toast-Ct5uczWn.mjs} +9 -7
- package/dist/esm/chunks/{ToggleButton-DpR2FO_I.mjs → ToggleButton-nusOpkrZ.mjs} +6 -6
- package/dist/esm/chunks/{UploadArea-ChXIXxSg.mjs → UploadArea-BjlfBjiw.mjs} +10 -8
- package/dist/esm/chunks/{Video-D3FSIySJ.mjs → Video-DKjVachU.mjs} +32 -26
- package/dist/esm/chunks/{VideoController-CS6eZwuf.mjs → VideoController-kH0JkJf-.mjs} +16 -11
- package/dist/esm/chunks/{WSConnection-DX-v8PDB.mjs → WSConnection-NpYplU2v.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-KLpY6CZG.mjs → WebRTCConnection-CCD9soqe.mjs} +1 -1
- package/dist/esm/chunks/{browserChannelsStore-BlUi1EOi.mjs → browserChannelsStore-srC8Ojsl.mjs} +2 -2
- package/dist/esm/chunks/{localDBStore-Cqmkk2oq.mjs → localDBStore-BpKbAtAQ.mjs} +3 -3
- package/dist/esm/chunks/magic-string.es-DLHkwHmE.mjs +722 -0
- package/dist/esm/chunks/{microphoneStore-CHjTUEL_.mjs → microphoneStore-CtpUG1DB.mjs} +1 -1
- package/dist/esm/chunks/{misc-GB29X0YR.mjs → misc-NDOWTiFf.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-CsFtm_ph.mjs → sseStore-DUg0x7Qh.mjs} +3 -3
- package/dist/esm/chunks/{uploads-worker-DnuyqnvO.mjs → uploads-worker-DuzIaN9P.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-BJkaMc8Q.mjs → uploadsStore-C6wzah24.mjs} +1 -1
- package/dist/esm/chunks/{viewState-Bz_5JiKf.mjs → viewState-KJ0VsD2b.mjs} +13 -9
- package/dist/esm/chunks/{volumeStore-DBjptppw.mjs → volumeStore-IY7T-8fH.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-Da4krjmG.mjs → webRTCStore-DmyQS-SN.mjs} +3 -3
- package/dist/esm/chunks/{windowStore-DuCMm9ZH.mjs → windowStore-DSbR-lfu.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +11 -7
- 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 +17 -13
- package/dist/esm/components/ButtonBar/index.mjs +13 -9
- package/dist/esm/components/Camera/index.mjs +13 -9
- package/dist/esm/components/CheckBox/index.mjs +11 -7
- package/dist/esm/components/Chip/index.mjs +14 -10
- package/dist/esm/components/DataTable/index.mjs +14 -10
- package/dist/esm/components/DivInput/index.mjs +5 -3
- package/dist/esm/components/Dot/index.mjs +2 -2
- package/dist/esm/components/DraggablePanel/index.mjs +10 -6
- package/dist/esm/components/DropDown/index.mjs +13 -9
- package/dist/esm/components/ErrorSummary/index.mjs +10 -6
- package/dist/esm/components/FileIcon/index.mjs +10 -6
- package/dist/esm/components/FileList/index.mjs +13 -9
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +12 -8
- package/dist/esm/components/Icon/index.mjs +11 -7
- package/dist/esm/components/IconButton/index.mjs +16 -12
- package/dist/esm/components/Label/index.mjs +5 -3
- package/dist/esm/components/Level/index.mjs +7 -5
- package/dist/esm/components/Modal/index.mjs +19 -15
- package/dist/esm/components/ModalController/index.mjs +12 -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 +11 -7
- package/dist/esm/components/PromptInput/index.mjs +18 -14
- package/dist/esm/components/RadioButton/index.mjs +11 -7
- package/dist/esm/components/RadioButtonList/index.mjs +12 -8
- package/dist/esm/components/Slider/index.mjs +11 -7
- 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 -11
- package/dist/esm/components/TextArea/index.mjs +18 -14
- package/dist/esm/components/Textfield/index.mjs +17 -13
- package/dist/esm/components/Tip/index.mjs +5 -3
- package/dist/esm/components/Toast/index.mjs +12 -8
- package/dist/esm/components/ToggleButton/index.mjs +18 -14
- package/dist/esm/components/UploadArea/index.mjs +16 -12
- package/dist/esm/components/Video/index.mjs +23 -17
- package/dist/esm/components/VideoController/index.mjs +20 -16
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +6 -6
- package/dist/esm/hooks/useClipboard.mjs +3 -3
- package/dist/esm/hooks/useMdStreamBuffer.mjs +3 -3
- package/dist/esm/hooks/useMicrophone.mjs +1 -1
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +8 -8
- package/dist/esm/index.mjs +59 -59
- package/dist/esm/providers/themeServer.test.mjs +10572 -0
- package/dist/esm/stores/LocalDB.mjs +4 -4
- package/dist/esm/stores/SSE.mjs +4 -4
- package/dist/esm/stores/WS.mjs +3 -3
- package/dist/esm/stores/WebRTC.mjs +4 -4
- package/dist/esm/stores/browserChannel.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 +1 -1
- package/dist/esm/stores/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +18 -18
- package/dist/esm/theme/corners.mjs +8 -8
- package/dist/esm/utils/index.mjs +12 -12
- package/dist/esm/utils/objects/index.mjs +8 -8
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +2569 -2558
- package/dist/types/components/Avatar/_types.d.ts +0 -1
- package/dist/types/components/AvatarGroup/_types.d.ts +0 -1
- package/dist/types/components/Button/Button.d.ts +0 -4
- package/dist/types/components/Button/_types.d.ts +0 -2
- package/dist/types/components/ButtonBar/_types.d.ts +0 -3
- package/dist/types/components/Chip/_types.d.ts +0 -2
- package/dist/types/components/DataTable/_useResizeColumn.test.d.ts +1 -0
- package/dist/types/components/DataTable/columnHelper.test.d.ts +1 -0
- package/dist/types/components/DivInput/_types.d.ts +0 -1
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +13 -1
- package/dist/types/components/DropDown/_types.d.ts +0 -1
- package/dist/types/components/ErrorSummary/_types.d.ts +0 -1
- package/dist/types/components/FileList/_types.d.ts +0 -1
- package/dist/types/components/Icon/iconRegistry.test.d.ts +1 -0
- package/dist/types/components/IconButton/_animation.test.d.ts +1 -0
- package/dist/types/components/IconButton/_types.d.ts +3 -3
- package/dist/types/components/Label/_types.d.ts +0 -1
- package/dist/types/components/Switch/_types.d.ts +0 -2
- package/dist/types/components/TextArea/_types.d.ts +0 -1
- package/dist/types/components/Tip/_types.d.ts +0 -1
- package/dist/types/components/ToggleButton/_types.d.ts +3 -3
- package/dist/types/components/UploadArea/UploadArea.d.ts +0 -4
- package/dist/types/components/UploadArea/_types.d.ts +0 -2
- package/dist/types/components/Video/Video.d.ts +4 -0
- package/dist/types/components/Video/_types.d.ts +2 -0
- package/dist/types/components/VideoController/_types.d.ts +1 -0
- package/dist/types/components/playHelpers.d.ts +353 -0
- package/dist/types/hooks/useBindWebRTC/useBindWebRTC.test.d.ts +1 -0
- package/dist/types/hooks/useTrackRenders/useTrackRenders.test.d.ts +1 -0
- package/dist/types/providers/themeServer.test.d.ts +1 -0
- package/dist/types/stores/LocalDB/localDBStore.test.d.ts +1 -0
- package/dist/types/theme/corners/types.d.ts +8 -8
- package/dist/types/utils/objects/IndexedDB/IndexedDB.d.ts +3 -0
- package/dist/types/utils/objects/IndexedDB/IndexedDB.test.d.ts +1 -0
- package/dist/types/utils/objects/MDStreamBuffer/MdStreamBuffer.test.d.ts +1 -0
- package/dist/types/utils/objects/WebRTCConnection/WebRTCConnection.test.d.ts +1 -0
- package/dist/types/workers/uploads/uploads-worker.test.d.ts +1 -0
- package/package.json +2 -1
- /package/dist/cjs/chunks/{MdStreamBuffer-Ba-YbQaW.js → MdStreamBuffer-CVkue3K3.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-C0XhTcpi.js → SSEConnection-zUZG9TiF.js} +0 -0
- /package/dist/cjs/chunks/{_types-DEjCVlhp.js → _types-BnrWf6-T.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-DFgLMDKW.js → audioVisualizer-GmZ0xNzv.js} +0 -0
- /package/dist/cjs/chunks/{broadcastChannel-B0l8OE4I.js → broadcastChannel-CtwRunj4.js} +0 -0
- /package/dist/cjs/chunks/{colors-jx2QRRls.js → colors-C2uwoGzp.js} +0 -0
- /package/dist/cjs/chunks/{debounce-CsmIqkDy.js → debounce-BP_p5Vjk.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-DaB75uoa.js → modalStore-B-Xkl2-3.js} +0 -0
- /package/dist/cjs/chunks/{rafThrottle-DvT0BNgS.js → rafThrottle-DpVYeDi4.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-BT25wBhL.js → sharedTypes-BgBhX0El.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-Dxda_4EA.js → tipStore-B2mVU0US.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-DqWfFw57.js → toastStore-C9lsqywS.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-CTGrDO27.js → tslib.es6-CG8Jpxry.js} +0 -0
- /package/dist/cjs/chunks/{videoStore-q-yi22M3.js → videoStore-DIXd-mmm.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-CuqX6fWF.mjs → MdStreamBuffer-C2X6YPkL.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-DgwE_V3B.mjs → SSEConnection-BR6JKisq.mjs} +0 -0
- /package/dist/esm/chunks/{_types-n_IXoiPR.mjs → _types-CvUR3WMd.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-CLKL6Y79.mjs → audioVisualizer-jpYXWaW8.mjs} +0 -0
- /package/dist/esm/chunks/{broadcastChannel-qkn7bL4S.mjs → broadcastChannel-jqOpePyV.mjs} +0 -0
- /package/dist/esm/chunks/{colors-C3CypePZ.mjs → colors-DE286j6U.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-xuz65F25.mjs → debounce-LajsXcz1.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-DN1F_WR9.mjs → modalStore-CgEpalf_.mjs} +0 -0
- /package/dist/esm/chunks/{rafThrottle-B6dxl-O8.mjs → rafThrottle-DGnknyNH.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-DqPH1p0Q.mjs → sharedTypes-DnHEGYor.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-B_trLnIa.mjs → tipStore-B0TrZT8p.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-BWlW1cRh.mjs → toastStore-CIW93cFF.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-DGRmn-gx.mjs → tslib.es6-BTg9ZFwR.mjs} +0 -0
- /package/dist/esm/chunks/{videoStore-BxCTQ_tE.mjs → videoStore-B_fdicUy.mjs} +0 -0
|
@@ -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"), theme_corners = require("../theme/corners.js"), misc = require("./misc-BPL5e5rQ.js"), Icon = require("./Icon-CsNB8HJ4.js"), ProgressIndicator = require("./ProgressIndicator-CctdHXiJ.js"), FileList = require("./FileList-Be7Sn-bF.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",
|
|
@@ -24,7 +24,7 @@ var FileTypes;
|
|
|
24
24
|
}(FileTypes || (FileTypes = {}));
|
|
25
25
|
|
|
26
26
|
const UploadAreaBase = React.forwardRef((props, ref) => {
|
|
27
|
-
const {icon: icon = "upload", iconColor: iconColor = "var(--core-text-primary)", iconColorHover: iconColorHover = "var(--core-text-special)", title: title = "Upload Files", width: width = "100%", height: height = "auto", message: message = "Drag and drop files here or click to upload", busyMessage: busyMessage = "Uploading in progress", iconSize: iconSize = 24, textSize: textSize = "m", borderWidth: borderWidth, border: border = 1, borderStyle: borderStyle = "dashed", borderColor: borderColor = "var(--core-outline-primary)", borderColorHover: borderColorHover = "var(--core-outline-special)", borderRadius: borderRadius, radius: radius =
|
|
27
|
+
const {icon: icon = "upload", iconColor: iconColor = "var(--core-text-primary)", iconColorHover: iconColorHover = "var(--core-text-special)", title: title = "Upload Files", width: width = "100%", height: height = "auto", message: message = "Drag and drop files here or click to upload", busyMessage: busyMessage = "Uploading in progress", iconSize: iconSize = 24, textSize: textSize = "m", borderWidth: borderWidth, border: border = 1, borderStyle: borderStyle = "dashed", borderColor: borderColor = "var(--core-outline-primary)", borderColorHover: borderColorHover = "var(--core-outline-special)", borderRadius: borderRadius, radius: radius = theme_corners.corners["corner-m"], padding: padding = 32, backgroundColor: backgroundColor = "var(--core-surface-secondary)", backgroundColorHover: backgroundColorHover = "var(--core-surface-special)", acceptedTypes: acceptedTypes = allTypes, multiple: multiple = !0, busy: busy = !1, canRemove: canRemove = !0, showProgress: showProgress = !0, files: files = [], onUpload: onUpload} = props, [hovered, setHovered] = React.useState(!1), inputRef = React.useRef(null), dragDepth = React.useRef(0), inputId = React.useId(), titleId = React.useId(), messageId = React.useId(), isInteractive = !busy && files.length < 1, resolvedBorderWidth = null != borderWidth ? borderWidth : border, resolvedBorderRadius = null != borderRadius ? borderRadius : radius, resolvedBackgroundColor = backgroundColor, resolvedBackgroundColorHover = backgroundColorHover, handleClickUpload = React.useCallback(() => {
|
|
28
28
|
var _a;
|
|
29
29
|
isInteractive && (null == inputRef ? void 0 : inputRef.current) && (inputRef.current.value = "",
|
|
30
30
|
null === (_a = inputRef.current) || void 0 === _a || _a.click());
|
|
@@ -39,10 +39,10 @@ const UploadAreaBase = React.forwardRef((props, ref) => {
|
|
|
39
39
|
e.preventDefault(), busy || (dragDepth.current = Math.max(0, dragDepth.current - 1),
|
|
40
40
|
0 === dragDepth.current && setHovered(!1));
|
|
41
41
|
}, [ busy ]), handleDrop = React.useCallback(e => {
|
|
42
|
-
var _a;
|
|
42
|
+
var _a, _b;
|
|
43
43
|
if (e.preventDefault(), busy) return;
|
|
44
44
|
dragDepth.current = 0, setHovered(!1);
|
|
45
|
-
const files = Array.from(null !== (_a = e.dataTransfer.files) && void 0 !==
|
|
45
|
+
const files = Array.from(null !== (_b = null === (_a = e.dataTransfer) || void 0 === _a ? void 0 : _a.files) && void 0 !== _b ? _b : []);
|
|
46
46
|
null == onUpload || onUpload(files);
|
|
47
47
|
}, [ busy, onUpload ]), iconStrokeColor = React.useMemo(() => hovered ? iconColorHover : iconColor, [ hovered, iconColor, iconColorHover ]), cssVars = React.useMemo(() => ({
|
|
48
48
|
"--ua-border": `${resolvedBorderWidth}px`,
|
|
@@ -98,7 +98,7 @@ const UploadAreaBase = React.forwardRef((props, ref) => {
|
|
|
98
98
|
className: css.files,
|
|
99
99
|
children: jsxRuntime.jsx(FileList.FileList, {
|
|
100
100
|
files: files,
|
|
101
|
-
|
|
101
|
+
backgroundColor: "var(--core-surface-primary)",
|
|
102
102
|
textSize: "m",
|
|
103
103
|
direction: "column",
|
|
104
104
|
gap: 8,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var PlayState, tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var PlayState, tslib_es6 = require("./tslib.es6-CG8Jpxry.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-BPL5e5rQ.js"), IconButton = require("./IconButton-DlLDM8w2.js"), ProgressIndicator = require("./ProgressIndicator-CctdHXiJ.js"), Slider = require("./Slider-CCqbXz95.js"), ToggleButton = require("./ToggleButton-BXsZ_GRW.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
5
|
|
|
6
6
|
!function(PlayState) {
|
|
7
7
|
PlayState.Playing = "playing", PlayState.Paused = "paused", PlayState.Stopped = "stopped",
|
|
@@ -14,7 +14,7 @@ const BaseVideo = React.forwardRef((props, ref) => {
|
|
|
14
14
|
progress: !0,
|
|
15
15
|
volume: !0,
|
|
16
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, onQuit: onQuit} = 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", "onQuit" ]), {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 => {
|
|
17
|
+
}, showProgressIndicator: showProgressIndicator = !0, onPlay: onPlay, onPause: onPause, onEnd: onEnd, onProgress: onProgress, onLoadProgress: onLoadProgress, onPlaybackRateChange: onPlaybackRateChange, onCanPlayThrough: onCanPlayThrough, onCanPlay: onCanPlay, onPlayStateChange: onPlayStateChange, onLoadMetaData: onLoadMetaData, onFullScreenChange: onFullScreenChange, onVolumeChange: onVolumeChange, onLoadedFrameData: onLoadedFrameData, onQuit: onQuit} = 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", "showProgressIndicator", "onPlay", "onPause", "onEnd", "onProgress", "onLoadProgress", "onPlaybackRateChange", "onCanPlayThrough", "onCanPlay", "onPlayStateChange", "onLoadMetaData", "onFullScreenChange", "onVolumeChange", "onLoadedFrameData", "onQuit" ]), {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), [canPlay, setCanPlay] = React.useState(!1), timer = React.useRef(null), handleLoadProgress = React.useCallback(event => {
|
|
18
18
|
const target = event.target;
|
|
19
19
|
if (target.buffered.length > 0) {
|
|
20
20
|
const bufferedEnd = target.buffered.end(target.buffered.length - 1), duration = target.duration;
|
|
@@ -36,11 +36,12 @@ const BaseVideo = React.forwardRef((props, ref) => {
|
|
|
36
36
|
}
|
|
37
37
|
}, [ onProgress, onPlayStateChange ]), handleCanPlayThrough = React.useCallback(() => {
|
|
38
38
|
null == onCanPlayThrough || onCanPlayThrough();
|
|
39
|
-
}, [ onCanPlayThrough ]),
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
}, [ onCanPlayThrough ]), handleCanPlay = React.useCallback(() => {
|
|
40
|
+
setCanPlay(!0), null == onCanPlay || onCanPlay();
|
|
41
|
+
}, [ onCanPlay ]), handlePlay = React.useCallback(() => {
|
|
42
|
+
var _a, _b;
|
|
42
43
|
null == onPlay || onPlay(), setIsPlaying(!0);
|
|
43
|
-
(null === (
|
|
44
|
+
(null === (_a = videoRef.current) || void 0 === _a ? void 0 : _a.currentTime) === (null === (_b = videoRef.current) || void 0 === _b ? void 0 : _b.duration) ? (playState.current !== PlayState.Ended && (null == onPlayStateChange || onPlayStateChange(PlayState.Ended)),
|
|
44
45
|
playState.current = PlayState.Ended) : playState.current !== PlayState.Playing && (null == onPlayStateChange || onPlayStateChange(PlayState.Playing),
|
|
45
46
|
playState.current = PlayState.Playing);
|
|
46
47
|
}, [ onPlay, onPlayStateChange ]), handlePause = React.useCallback(() => {
|
|
@@ -81,8 +82,8 @@ const BaseVideo = React.forwardRef((props, ref) => {
|
|
|
81
82
|
rate < .5 && (nextRate = .5), rate > 3 && (nextRate = 3), videoRef.current.playbackRate = nextRate;
|
|
82
83
|
}, []), handleRestart = React.useCallback(() => {
|
|
83
84
|
videoRef.current && (videoRef.current.pause(), videoRef.current.currentTime = 0,
|
|
84
|
-
|
|
85
|
-
}, []), handleVolumeChange = React.useCallback((volume = 1) => {
|
|
85
|
+
handlePlayClick(!0));
|
|
86
|
+
}, [ handlePlayClick ]), handleVolumeChange = React.useCallback((volume = 1) => {
|
|
86
87
|
if (!videoRef.current) return;
|
|
87
88
|
let nextVolume = volume;
|
|
88
89
|
volume < 0 && (nextVolume = 0), volume > 1 && (nextVolume = 1), videoRef.current.volume = nextVolume,
|
|
@@ -176,8 +177,8 @@ const BaseVideo = React.forwardRef((props, ref) => {
|
|
|
176
177
|
iconFill: !0,
|
|
177
178
|
buttonSize: "m",
|
|
178
179
|
iconSize: 18,
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
backgroundColor: "rgba(255,255,255,0.05)",
|
|
181
|
+
backgroundColorHover: "rgba(0,0,0,0.7)",
|
|
181
182
|
iconColor: "var(--core-text-light)",
|
|
182
183
|
iconColorHover: "var(--core-text-light)",
|
|
183
184
|
onClick: () => handleFullScreen(!0)
|
|
@@ -189,9 +190,9 @@ const BaseVideo = React.forwardRef((props, ref) => {
|
|
|
189
190
|
iconFill: !0,
|
|
190
191
|
buttonSize: "m",
|
|
191
192
|
iconSize: 20,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
backgroundColor: "rgba(255,255,255,0.05)",
|
|
194
|
+
backgroundColorHover: "rgba(0,0,0,0.7)",
|
|
195
|
+
backgroundColorOn: "rgba(0,0,0,0.5)",
|
|
195
196
|
iconColor: "var(--core-text-light)",
|
|
196
197
|
iconColorHover: "var(--core-text-light)",
|
|
197
198
|
onClick: () => handleMute()
|
|
@@ -214,9 +215,9 @@ const BaseVideo = React.forwardRef((props, ref) => {
|
|
|
214
215
|
iconOn: "pause",
|
|
215
216
|
iconSize: 48,
|
|
216
217
|
buttonSize: "xl",
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
backgroundColor: "rgba(0,0,0,0.5)",
|
|
219
|
+
backgroundColorHover: "rgba(0,0,0,0.7)",
|
|
220
|
+
backgroundColorOn: "rgba(0,0,0,0.5)",
|
|
220
221
|
iconColor: "var(--core-text-light)",
|
|
221
222
|
iconColorOn: "var(--core-text-light)",
|
|
222
223
|
iconColorHover: "var(--core-text-light)",
|
|
@@ -232,9 +233,9 @@ const BaseVideo = React.forwardRef((props, ref) => {
|
|
|
232
233
|
iconOn: "pause",
|
|
233
234
|
buttonSize: "m",
|
|
234
235
|
iconSize: 28,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
backgroundColor: "rgba(255,255,255,0.05)",
|
|
237
|
+
backgroundColorHover: "rgba(0,0,0,0.7)",
|
|
238
|
+
backgroundColorOn: "rgba(255,255,255,0.05)",
|
|
238
239
|
iconColor: "var(--core-text-light)",
|
|
239
240
|
iconColorHover: "var(--core-text-light)",
|
|
240
241
|
iconColorOn: "var(--core-text-light)",
|
|
@@ -253,9 +254,9 @@ const BaseVideo = React.forwardRef((props, ref) => {
|
|
|
253
254
|
toggle: !1,
|
|
254
255
|
icon: "x",
|
|
255
256
|
buttonSize: "m",
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
backgroundColor: "rgba(255,255,255,0.05)",
|
|
258
|
+
backgroundColorHover: "rgba(0,0,0,0.7)",
|
|
259
|
+
backgroundColorOn: "rgba(255,255,255,0.05)",
|
|
259
260
|
iconColor: "var(--core-text-light)",
|
|
260
261
|
iconColorHover: "var(--core-text-light)",
|
|
261
262
|
iconColorOn: "var(--core-text-light)",
|
|
@@ -274,6 +275,7 @@ const BaseVideo = React.forwardRef((props, ref) => {
|
|
|
274
275
|
controls: "default" === controls,
|
|
275
276
|
poster: poster,
|
|
276
277
|
onCanPlayThrough: handleCanPlayThrough,
|
|
278
|
+
onCanPlay: handleCanPlay,
|
|
277
279
|
onPlay: handlePlay,
|
|
278
280
|
onPause: handlePause,
|
|
279
281
|
onEnded: handleEnd,
|
|
@@ -286,6 +288,8 @@ const BaseVideo = React.forwardRef((props, ref) => {
|
|
|
286
288
|
kind: "captions",
|
|
287
289
|
src: captionsSrc
|
|
288
290
|
})
|
|
291
|
+
}), !canPlay && showProgressIndicator && jsxRuntime.jsx(ProgressIndicator.ProgressIndicator, {
|
|
292
|
+
show: !0
|
|
289
293
|
}) ]
|
|
290
294
|
}));
|
|
291
295
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-
|
|
4
|
+
var tslib_es6 = require("./tslib.es6-CG8Jpxry.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react");
|
|
5
5
|
|
|
6
|
-
require("./microphoneStore-
|
|
6
|
+
require("./microphoneStore-Dn91izLl.js"), require("./volumeStore-DsHPJx-8.js"),
|
|
7
|
+
require("./webRTCStore-w3zT4ZiO.js");
|
|
7
8
|
|
|
8
|
-
var misc = require("./misc-
|
|
9
|
+
var theme_corners = require("../theme/corners.js"), misc = require("./misc-BPL5e5rQ.js"), IconButton = require("./IconButton-DlLDM8w2.js"), Overlay = require("./Overlay-BS3eyLZz.js"), videoStore = require("./videoStore-DIXd-mmm.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";
|
|
9
10
|
|
|
10
11
|
const defaultTransition = {
|
|
11
12
|
ease: "easeOut",
|
|
@@ -25,7 +26,7 @@ const defaultTransition = {
|
|
|
25
26
|
|
|
26
27
|
exports.VideoController = function(props) {
|
|
27
28
|
var _a;
|
|
28
|
-
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 =
|
|
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 = theme_corners.corners["corner-m"], quit: quit = "inline", showProgressIndicator: showProgressIndicator = !0, onQuit: onQuit} = 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);
|
|
29
30
|
React.useEffect(() => {
|
|
30
31
|
(null == video ? void 0 : video.id) && setReady(!1);
|
|
31
32
|
}, [ null == video ? void 0 : video.id ]);
|
|
@@ -34,7 +35,7 @@ exports.VideoController = function(props) {
|
|
|
34
35
|
}, cssVars = React.useMemo(() => ({
|
|
35
36
|
"--overlay-padding": misc.setStyle(padding, 64),
|
|
36
37
|
"--video-visibility": ready ? "visible" : "hidden",
|
|
37
|
-
"--video-border-radius": misc.setStyle(borderRadius,
|
|
38
|
+
"--video-border-radius": misc.setStyle(borderRadius, theme_corners.corners["corner-m"])
|
|
38
39
|
}), [ padding, ready, borderRadius ]);
|
|
39
40
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
40
41
|
children: [ jsxRuntime.jsx(Overlay.Overlay, {
|
|
@@ -67,6 +68,7 @@ exports.VideoController = function(props) {
|
|
|
67
68
|
children: [ jsxRuntime.jsx("div", {
|
|
68
69
|
className: css_video,
|
|
69
70
|
children: jsxRuntime.jsx(VideoComponent, Object.assign({}, videoProps, {
|
|
71
|
+
showProgressIndicator: showProgressIndicator,
|
|
70
72
|
borderRadius: null != borderRadius ? borderRadius : videoBorderRadius,
|
|
71
73
|
onLoadedFrameData: () => {
|
|
72
74
|
setReady(!0), null == onLoadedFrameData || onLoadedFrameData();
|
|
@@ -80,8 +82,8 @@ exports.VideoController = function(props) {
|
|
|
80
82
|
icon: "x",
|
|
81
83
|
buttonSize: "l",
|
|
82
84
|
onClick: handleHide,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
backgroundColor: "rgba(255,255,255,0.05)",
|
|
86
|
+
backgroundColorHover: "rgba(255,255,255,0.25)",
|
|
85
87
|
iconColor: "var(--core-text-light)",
|
|
86
88
|
iconColorHover: "var(--core-text-light)"
|
|
87
89
|
}) ]
|
package/dist/cjs/chunks/{browserChannelsStore-6ZSY_xb-.js → browserChannelsStore-CmnVwY1c.js}
RENAMED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var zustand = require("zustand");
|
|
4
4
|
|
|
5
|
-
require("./tslib.es6-
|
|
5
|
+
require("./tslib.es6-CG8Jpxry.js");
|
|
6
6
|
|
|
7
|
-
var broadcastChannel = require("./broadcastChannel-
|
|
7
|
+
var broadcastChannel = require("./broadcastChannel-CtwRunj4.js");
|
|
8
8
|
|
|
9
9
|
const useBrowserChannelsStore = zustand.create((set, get) => ({
|
|
10
10
|
channels: null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require("./tslib.es6-
|
|
3
|
+
var tslib_es6 = require("./tslib.es6-CG8Jpxry.js"), React = require("react"), zustand = require("zustand"), shallow = require("zustand/react/shallow"), IndexedDB = require("./IndexedDB-Cj_Oxilj.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));
|
|
@@ -120,7 +120,7 @@ function replaceConnection(connection) {
|
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* Update connection with an error state
|
|
123
|
-
*/ require("./broadcastChannel-
|
|
123
|
+
*/ require("./broadcastChannel-CtwRunj4.js");
|
|
124
124
|
|
|
125
125
|
const useLocalDBStore = zustand.create((set, get) => ({
|
|
126
126
|
stores: [],
|