@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
package/dist/styles.css
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
--scroll-bar-hover-dark: rgba(255, 255, 255, 0.15);
|
|
106
106
|
--surface-primary-tint-light: #fcfcfc;
|
|
107
107
|
--surface-primary-tint-dark: #191e24;
|
|
108
|
-
--surface-shadow-soft-light: 0px 4px 24px #
|
|
108
|
+
--surface-shadow-soft-light: 0px 4px 24px #0000007a;
|
|
109
109
|
--surface-shadow-soft-dark: 0px 4px 24px #0000007a;
|
|
110
110
|
--surface-shadow-strong-light: 0px 4px 64px #0339491a;
|
|
111
111
|
--surface-shadow-strong-dark: 0px 4px 64px #0000007a;
|
|
@@ -8530,3 +8530,151 @@ line {
|
|
|
8530
8530
|
|
|
8531
8531
|
.UploadArea-module_l__KG9YN {
|
|
8532
8532
|
}
|
|
8533
|
+
|
|
8534
|
+
.Video-module_wrapper__a9iH8 {
|
|
8535
|
+
position: relative;
|
|
8536
|
+
display: flex;
|
|
8537
|
+
flex-direction: column;
|
|
8538
|
+
justify-content: center;
|
|
8539
|
+
align-items: center;
|
|
8540
|
+
width: var(--video-width, 100%);
|
|
8541
|
+
height: var(--video-height, auto);
|
|
8542
|
+
border-radius: var(--video-border-radius, 16px);
|
|
8543
|
+
border-width: var(--video-border-size, 0);
|
|
8544
|
+
border-style: solid;
|
|
8545
|
+
border-color: var(--video-border-color, transparent);
|
|
8546
|
+
background-color: var(--video-bg-color, transparent);
|
|
8547
|
+
outline: none;
|
|
8548
|
+
overflow: hidden;
|
|
8549
|
+
}
|
|
8550
|
+
|
|
8551
|
+
.Video-module_video__hxKME {
|
|
8552
|
+
width: 100%;
|
|
8553
|
+
height: 100%;
|
|
8554
|
+
display: block;
|
|
8555
|
+
object-fit: var(--video-object-fit, contain);
|
|
8556
|
+
}
|
|
8557
|
+
|
|
8558
|
+
.Video-module_controls__X4yt6 {
|
|
8559
|
+
position: absolute;
|
|
8560
|
+
display: flex;
|
|
8561
|
+
justify-content: flex-start;
|
|
8562
|
+
align-items: center;
|
|
8563
|
+
flex-direction: column;
|
|
8564
|
+
inset: 0;
|
|
8565
|
+
pointer-events: var(--video-controls-pointer-events, none);
|
|
8566
|
+
opacity: var(--video-controls-opacity, 0);
|
|
8567
|
+
z-index: var(--elevation-float);
|
|
8568
|
+
transition: opacity 0.25s ease-in-out;
|
|
8569
|
+
}
|
|
8570
|
+
|
|
8571
|
+
.Video-module_controlsHeader__dD64- {
|
|
8572
|
+
display: flex;
|
|
8573
|
+
justify-content: space-between;
|
|
8574
|
+
box-sizing: border-box;
|
|
8575
|
+
align-items: center;
|
|
8576
|
+
flex-direction: row;
|
|
8577
|
+
gap: 24px;
|
|
8578
|
+
width: 100%;
|
|
8579
|
+
padding: 16px;
|
|
8580
|
+
}
|
|
8581
|
+
|
|
8582
|
+
.Video-module_controlsFooter__qJNTa {
|
|
8583
|
+
display: flex;
|
|
8584
|
+
justify-content: center;
|
|
8585
|
+
align-items: center;
|
|
8586
|
+
flex-direction: row;
|
|
8587
|
+
gap: 24px;
|
|
8588
|
+
width: 100%;
|
|
8589
|
+
box-sizing: border-box;
|
|
8590
|
+
padding: 16px;
|
|
8591
|
+
}
|
|
8592
|
+
|
|
8593
|
+
.Video-module_controlsBody__2GbQz {
|
|
8594
|
+
display: flex;
|
|
8595
|
+
justify-content: center;
|
|
8596
|
+
align-items: center;
|
|
8597
|
+
flex-direction: column;
|
|
8598
|
+
width: 100%;
|
|
8599
|
+
flex: 1;
|
|
8600
|
+
padding: 16px;
|
|
8601
|
+
}
|
|
8602
|
+
|
|
8603
|
+
.Video-module_right__UMhfW {
|
|
8604
|
+
display: flex;
|
|
8605
|
+
justify-content: flex-end;
|
|
8606
|
+
align-items: center;
|
|
8607
|
+
gap: 8px;
|
|
8608
|
+
border-radius: 100px;
|
|
8609
|
+
background-color: var(--video-controls-bg-color, rgba(0, 0, 0, 0.5));
|
|
8610
|
+
padding: 8px 16px 8px 8px;
|
|
8611
|
+
box-sizing: border-box;
|
|
8612
|
+
}
|
|
8613
|
+
|
|
8614
|
+
.Video-module_left__XC33m {
|
|
8615
|
+
display: flex;
|
|
8616
|
+
justify-content: flex-start;
|
|
8617
|
+
align-items: center;
|
|
8618
|
+
gap: 8px;
|
|
8619
|
+
border-radius: 100px;
|
|
8620
|
+
background-color: var(--video-controls-bg-color, rgba(0, 0, 0, 0.5));
|
|
8621
|
+
padding: 8px;
|
|
8622
|
+
box-sizing: border-box;
|
|
8623
|
+
}
|
|
8624
|
+
|
|
8625
|
+
.Video-module_progress__UTWtq {
|
|
8626
|
+
display: flex;
|
|
8627
|
+
justify-content: flex-start;
|
|
8628
|
+
align-items: center;
|
|
8629
|
+
gap: 8px;
|
|
8630
|
+
border-radius: 100px;
|
|
8631
|
+
background-color: var(--video-controls-bg-color, rgba(0, 0, 0, 0.5));
|
|
8632
|
+
padding: 8px 16px 8px 8px;
|
|
8633
|
+
box-sizing: border-box;
|
|
8634
|
+
width: 50%;
|
|
8635
|
+
}
|
|
8636
|
+
|
|
8637
|
+
.VideoController-module_container__wNiGy {
|
|
8638
|
+
position: fixed;
|
|
8639
|
+
inset: 0;
|
|
8640
|
+
overflow: hidden;
|
|
8641
|
+
z-index: var(--elevation-confirm);
|
|
8642
|
+
pointer-events: none;
|
|
8643
|
+
}
|
|
8644
|
+
|
|
8645
|
+
.VideoController-module_box__a0PRD {
|
|
8646
|
+
position: relative;
|
|
8647
|
+
display: flex;
|
|
8648
|
+
justify-content: center;
|
|
8649
|
+
align-items: center;
|
|
8650
|
+
background: transparent;
|
|
8651
|
+
box-sizing: border-box;
|
|
8652
|
+
width: 100%;
|
|
8653
|
+
height: 100%;
|
|
8654
|
+
overflow: visible;
|
|
8655
|
+
z-index: var(--elevation-confirm);
|
|
8656
|
+
pointer-events: none;
|
|
8657
|
+
}
|
|
8658
|
+
|
|
8659
|
+
.VideoController-module_wrapper__RhpUo {
|
|
8660
|
+
position: absolute;
|
|
8661
|
+
box-sizing: border-box;
|
|
8662
|
+
left: var(--overlay-padding, 64px);
|
|
8663
|
+
right: var(--overlay-padding, 64px);
|
|
8664
|
+
display: flex;
|
|
8665
|
+
flex-direction: column;
|
|
8666
|
+
align-items: center;
|
|
8667
|
+
justify-content: center;
|
|
8668
|
+
gap: 16px;
|
|
8669
|
+
z-index: var(--elevation-confirm);
|
|
8670
|
+
pointer-events: all;
|
|
8671
|
+
visibility: var(--video-visibility, hidden);
|
|
8672
|
+
border-radius: var(--video-border-radius, 16px);
|
|
8673
|
+
overflow: visible;
|
|
8674
|
+
}
|
|
8675
|
+
|
|
8676
|
+
.VideoController-module_video__9bS2L {
|
|
8677
|
+
overflow: visible;
|
|
8678
|
+
box-shadow: var(--surface-shadow-soft);
|
|
8679
|
+
border-radius: var(--video-border-radius, 16px);
|
|
8680
|
+
}
|
|
@@ -57,6 +57,10 @@ export declare const SliceIcons: {
|
|
|
57
57
|
readonly speakerMuted: "speaker muted";
|
|
58
58
|
readonly speakerHigh: "speaker high";
|
|
59
59
|
readonly speakerLow: "speaker low";
|
|
60
|
+
readonly play: "play";
|
|
61
|
+
readonly playCircle: "play circle";
|
|
62
|
+
readonly pause: "pause";
|
|
63
|
+
readonly pauseCircle: "pause circle";
|
|
60
64
|
};
|
|
61
65
|
readonly files: {
|
|
62
66
|
readonly document: "document";
|
|
@@ -142,6 +146,7 @@ export declare const SliceIcons: {
|
|
|
142
146
|
readonly sidebarSplit: "sidebar split";
|
|
143
147
|
readonly keyboard: "keyboard";
|
|
144
148
|
readonly x: "x";
|
|
149
|
+
readonly fullscreen: "fullscreen";
|
|
145
150
|
};
|
|
146
151
|
};
|
|
147
152
|
export {};
|
|
@@ -13,7 +13,9 @@ export interface ToggleButtonProps {
|
|
|
13
13
|
selected?: boolean;
|
|
14
14
|
iconColor?: string;
|
|
15
15
|
iconColorOn?: string;
|
|
16
|
+
iconColorHover?: string;
|
|
16
17
|
bgColor?: string;
|
|
18
|
+
bgColorHover?: string;
|
|
17
19
|
bgColorOn?: string;
|
|
18
20
|
onChange?: (state: boolean) => void;
|
|
19
21
|
onSelect?: () => void;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PlayState, type VideoElement } from './_types';
|
|
3
|
+
export declare const Video: React.NamedExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, keyof {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
src?: string;
|
|
6
|
+
playing?: boolean;
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
muted?: boolean;
|
|
9
|
+
volume?: number;
|
|
10
|
+
playsInline?: boolean;
|
|
11
|
+
playRate?: number;
|
|
12
|
+
controls?: "default" | "simple" | "custom" | "none";
|
|
13
|
+
customControls?: import("./_types").CustomVideoControls;
|
|
14
|
+
poster?: string;
|
|
15
|
+
width?: number | string;
|
|
16
|
+
height?: number | string;
|
|
17
|
+
borderRadius?: number | string;
|
|
18
|
+
borderSize?: number | string;
|
|
19
|
+
borderColor?: string;
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
objectFit?: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
22
|
+
onPlay?: () => void;
|
|
23
|
+
onPause?: () => void;
|
|
24
|
+
onEnd?: () => void;
|
|
25
|
+
onProgress?: (progress: number) => void;
|
|
26
|
+
onLoadProgress?: (progress: number) => void;
|
|
27
|
+
onPlaybackRateChange?: (rate: number) => void;
|
|
28
|
+
onCanPlayThrough?: () => void;
|
|
29
|
+
onPlayStateChange?: (state: PlayState) => void;
|
|
30
|
+
onLoadMetaData?: (duration: number) => void;
|
|
31
|
+
onFullScreenChange?: (fullScreen: boolean) => void;
|
|
32
|
+
onVolumeChange?: (volume: number) => void;
|
|
33
|
+
onLoadedFrameData?: () => void;
|
|
34
|
+
captionsSrc?: string;
|
|
35
|
+
}> & {
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
src?: string;
|
|
38
|
+
playing?: boolean;
|
|
39
|
+
loop?: boolean;
|
|
40
|
+
muted?: boolean;
|
|
41
|
+
volume?: number;
|
|
42
|
+
playsInline?: boolean;
|
|
43
|
+
playRate?: number;
|
|
44
|
+
controls?: "default" | "simple" | "custom" | "none";
|
|
45
|
+
customControls?: import("./_types").CustomVideoControls;
|
|
46
|
+
poster?: string;
|
|
47
|
+
width?: number | string;
|
|
48
|
+
height?: number | string;
|
|
49
|
+
borderRadius?: number | string;
|
|
50
|
+
borderSize?: number | string;
|
|
51
|
+
borderColor?: string;
|
|
52
|
+
backgroundColor?: string;
|
|
53
|
+
objectFit?: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
54
|
+
onPlay?: () => void;
|
|
55
|
+
onPause?: () => void;
|
|
56
|
+
onEnd?: () => void;
|
|
57
|
+
onProgress?: (progress: number) => void;
|
|
58
|
+
onLoadProgress?: (progress: number) => void;
|
|
59
|
+
onPlaybackRateChange?: (rate: number) => void;
|
|
60
|
+
onCanPlayThrough?: () => void;
|
|
61
|
+
onPlayStateChange?: (state: PlayState) => void;
|
|
62
|
+
onLoadMetaData?: (duration: number) => void;
|
|
63
|
+
onFullScreenChange?: (fullScreen: boolean) => void;
|
|
64
|
+
onVolumeChange?: (volume: number) => void;
|
|
65
|
+
onLoadedFrameData?: () => void;
|
|
66
|
+
captionsSrc?: string;
|
|
67
|
+
} & React.RefAttributes<VideoElement>>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type CustomVideoControls = {
|
|
3
|
+
play?: boolean;
|
|
4
|
+
fullscreen?: boolean;
|
|
5
|
+
progress?: boolean;
|
|
6
|
+
volume?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare enum PlayState {
|
|
9
|
+
Playing = "playing",
|
|
10
|
+
Paused = "paused",
|
|
11
|
+
Stopped = "stopped",
|
|
12
|
+
Ended = "ended"
|
|
13
|
+
}
|
|
14
|
+
export interface VideoElement {
|
|
15
|
+
play?: () => Promise<void>;
|
|
16
|
+
stop?: () => Promise<void>;
|
|
17
|
+
restart?: () => Promise<void>;
|
|
18
|
+
setVolume?: (volume: number) => void;
|
|
19
|
+
mute?: (mute: boolean) => void;
|
|
20
|
+
fullscreen?: (state: boolean) => void;
|
|
21
|
+
playbackRate?: (rate: number) => void;
|
|
22
|
+
videoElement?: HTMLVideoElement;
|
|
23
|
+
}
|
|
24
|
+
type VideoBaseProps = {
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
src?: string;
|
|
27
|
+
playing?: boolean;
|
|
28
|
+
loop?: boolean;
|
|
29
|
+
muted?: boolean;
|
|
30
|
+
volume?: number;
|
|
31
|
+
playsInline?: boolean;
|
|
32
|
+
playRate?: number;
|
|
33
|
+
controls?: 'default' | 'simple' | 'custom' | 'none';
|
|
34
|
+
customControls?: CustomVideoControls;
|
|
35
|
+
poster?: string;
|
|
36
|
+
width?: number | string;
|
|
37
|
+
height?: number | string;
|
|
38
|
+
borderRadius?: number | string;
|
|
39
|
+
borderSize?: number | string;
|
|
40
|
+
borderColor?: string;
|
|
41
|
+
backgroundColor?: string;
|
|
42
|
+
objectFit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
43
|
+
onPlay?: () => void;
|
|
44
|
+
onPause?: () => void;
|
|
45
|
+
onEnd?: () => void;
|
|
46
|
+
onProgress?: (progress: number) => void;
|
|
47
|
+
onLoadProgress?: (progress: number) => void;
|
|
48
|
+
onPlaybackRateChange?: (rate: number) => void;
|
|
49
|
+
onCanPlayThrough?: () => void;
|
|
50
|
+
onPlayStateChange?: (state: PlayState) => void;
|
|
51
|
+
onLoadMetaData?: (duration: number) => void;
|
|
52
|
+
onFullScreenChange?: (fullScreen: boolean) => void;
|
|
53
|
+
onVolumeChange?: (volume: number) => void;
|
|
54
|
+
onLoadedFrameData?: () => void;
|
|
55
|
+
captionsSrc?: string;
|
|
56
|
+
};
|
|
57
|
+
export type VideoProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof VideoBaseProps> & VideoBaseProps;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Transition, Variants } from 'motion/react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
export type VideoControllerProps = {
|
|
4
|
+
dragConstraintsRef?: React.RefObject<HTMLElement | null>;
|
|
5
|
+
overlayColor?: string;
|
|
6
|
+
overlayOpacity?: number;
|
|
7
|
+
transition?: Transition;
|
|
8
|
+
variants?: Variants;
|
|
9
|
+
initial?: string;
|
|
10
|
+
animate?: string;
|
|
11
|
+
exit?: string;
|
|
12
|
+
draggable?: boolean;
|
|
13
|
+
padding?: number | string;
|
|
14
|
+
borderRadius?: number | string;
|
|
15
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -84,3 +84,7 @@ export type { LevelProps } from './components/Level';
|
|
|
84
84
|
export { UploadArea } from './components/UploadArea';
|
|
85
85
|
export type { UploadAreaProps } from './components/UploadArea/_types';
|
|
86
86
|
export { imageTypes, videoTypes, documentTypes, audioTypes, textTypes, allTypes, } from './components/UploadArea/_types';
|
|
87
|
+
export { Video } from './components/Video';
|
|
88
|
+
export type { CustomVideoControls, PlayState, VideoElement, VideoProps, } from './components/Video';
|
|
89
|
+
export { VideoController } from './components/VideoController';
|
|
90
|
+
export type { VideoControllerProps } from './components/VideoController';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { VideoProps } from '../../components/Video';
|
|
3
|
+
export type VideoDescriptor = {
|
|
4
|
+
id?: string;
|
|
5
|
+
component: React.ComponentType<VideoProps>;
|
|
6
|
+
props?: VideoProps;
|
|
7
|
+
};
|
|
8
|
+
export interface VideoStore {
|
|
9
|
+
video: VideoDescriptor | null;
|
|
10
|
+
actions: {
|
|
11
|
+
show: (modal: VideoDescriptor | null) => void;
|
|
12
|
+
clear: () => void;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { VideoDescriptor, VideoStore } from './_types';
|
|
2
|
+
export declare const useVideoStore: import("zustand").UseBoundStore<import("zustand").StoreApi<VideoStore>>;
|
|
3
|
+
export declare const useVideo: () => VideoDescriptor | null;
|
|
4
|
+
export declare const useVideoActions: () => {
|
|
5
|
+
show: (modal: VideoDescriptor | null) => void;
|
|
6
|
+
clear: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const videoActions: {
|
|
9
|
+
show: (modal: VideoDescriptor | null) => void;
|
|
10
|
+
clear: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const getVideo: () => VideoDescriptor | null;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|