@apple-pie/slice 0.1.56 → 0.1.58
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-2DmGApzQ.js → AudioBubble-BQzb7t1F.js} +4 -4
- package/dist/cjs/chunks/{Avatar-CC0ALePu.js → Avatar-CUFzge9h.js} +2 -2
- package/dist/cjs/chunks/{AvatarGroup-DEbpNjLc.js → AvatarGroup-D5g7PFO9.js} +1 -1
- package/dist/cjs/chunks/{Badge-ZjDd3Ix8.js → Badge-xNdezdPp.js} +1 -1
- package/dist/cjs/chunks/{Button-DnB85xYG.js → Button-CyXJ9uG3.js} +5 -6
- package/dist/cjs/chunks/{ButtonBar-DWDhGpwi.js → ButtonBar-B-RVcWNo.js} +1 -1
- package/dist/cjs/chunks/{Camera-CbB_z0BT.js → Camera-CAzaOB4G.js} +5 -5
- package/dist/cjs/chunks/{CheckBox-CCG8Zu0n.js → CheckBox-YiVx5dkX.js} +1 -1
- package/dist/cjs/chunks/{Chip-D1-XUhlH.js → Chip-BChy87kf.js} +7 -5
- package/dist/cjs/chunks/{DivInput-BRgfHVdj.js → DivInput-DfAONl7x.js} +2 -2
- package/dist/cjs/chunks/{Dot-3F2j3xqG.js → Dot-D2xmxQUt.js} +2 -2
- package/dist/cjs/chunks/{DrggablePanel-DLPTTF0x.js → DrggablePanel-D2BEKaM_.js} +11 -7
- package/dist/cjs/chunks/{DropDown-DczcOKT4.js → DropDown-Cj-GZmDN.js} +4 -4
- package/dist/cjs/chunks/{ErrorSummary-CmloSFWV.js → ErrorSummary-DlrxXxZG.js} +5 -5
- package/dist/cjs/chunks/{FileIcon-C0WnFj_a.js → FileIcon-BUW6exKf.js} +4 -4
- package/dist/cjs/chunks/{FileList-BR5tak9p.js → FileList-DqMJ-CdS.js} +6 -5
- package/dist/cjs/chunks/{FlexDiv-B-9oOJ0q.js → FlexDiv-CkjovMfE.js} +4 -4
- package/dist/cjs/chunks/{Grouper-CVLQb1M8.js → Grouper-Dw7b-rKO.js} +5 -5
- package/dist/cjs/chunks/{Icon-L-KOi8gd.js → Icon-QCkWofx3.js} +4 -4
- package/dist/cjs/chunks/{IconButton-CRlg14ov.js → IconButton-pfCyM8tf.js} +2 -2
- package/dist/cjs/chunks/{IndexedDB-BnRfQTQM.js → IndexedDB-B8x-Lb5K.js} +1 -1
- package/dist/cjs/chunks/{Label-DMWLMm8u.js → Label-CYFeaNz2.js} +5 -2
- package/dist/cjs/chunks/{Level-DFMbJLwo.js → Level-1-42wEEw.js} +2 -2
- package/dist/cjs/chunks/{Modal-3nJMxtM5.js → Modal-mzZbLdRN.js} +3 -3
- package/dist/cjs/chunks/{ModalController-BYbWwA2c.js → ModalController-D4miiECK.js} +3 -3
- package/dist/cjs/chunks/{Overlay-CcLSSVas.js → Overlay-CCoJ_1nO.js} +1 -1
- package/dist/cjs/chunks/{Pager-EnPvzs7I.js → Pager-Bxyv-Mrf.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-D4QBeeJ7.js → ProgressIndicator-DwhhhQU7.js} +5 -5
- package/dist/cjs/chunks/{PromptInput-DOG6-tSs.js → PromptInput-B9paGcxy.js} +9 -10
- package/dist/cjs/chunks/{RadioButton-Dv1UMrmC.js → RadioButton-B9TJk2Mo.js} +3 -3
- package/dist/cjs/chunks/{RadioButtonList-QQsLvc6S.js → RadioButtonList-BNoRk_XR.js} +1 -1
- package/dist/cjs/chunks/{Slider-BPbnMJvK.js → Slider-UfrORkxH.js} +4 -4
- package/dist/cjs/chunks/Spacer-C7IiQxXF.js +26 -0
- package/dist/cjs/chunks/{Switch-BDbPgMBM.js → Switch-hhn2FD0T.js} +4 -4
- package/dist/cjs/chunks/{TabBar-D30fnZts.js → TabBar-DIQKTsGM.js} +9 -9
- package/dist/cjs/chunks/{TextArea-7Ae7ObSp.js → TextArea-BOj9zhbi.js} +3 -3
- package/dist/cjs/chunks/{TextField-DyczwDLg.js → TextField-DJYu-9le.js} +13 -18
- package/dist/cjs/chunks/{Tip-DYMB02-A.js → Tip-99AK0nJF.js} +3 -3
- package/dist/cjs/chunks/{Toast-DCBurEYu.js → Toast-Bff0E9cy.js} +14 -10
- package/dist/cjs/chunks/{ToggleButton-B_C5et_m.js → ToggleButton-rE3hAk9Y.js} +1 -1
- package/dist/cjs/chunks/{UploadArea-CSPRt0Mq.js → UploadArea-8TC2vEKQ.js} +8 -4
- package/dist/cjs/chunks/{Video-C7llXaDv.js → Video-RCjV8YIl.js} +3 -3
- package/dist/cjs/chunks/{VideoController-O-BsyFnJ.js → VideoController-DELbuJN3.js} +6 -6
- package/dist/cjs/chunks/{WSConnection-Dypd3e4R.js → WSConnection-CO9eOg8Z.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-BBxaTTbD.js → WebRTCConnection-CRVE6lTu.js} +1 -1
- package/dist/cjs/chunks/{browserChannelsStore-Y7zsrnV8.js → browserChannelsStore-BV2uJVeI.js} +2 -2
- package/dist/cjs/chunks/{localDBStore-LWl68wGD.js → localDBStore-BR-2nDv_.js} +2 -2
- package/dist/cjs/chunks/{microphoneStore-Bf3gZQQR.js → microphoneStore-C1Zp6UiP.js} +1 -1
- package/dist/cjs/chunks/{misc-BO_-R1om.js → misc-CmImf5jl.js} +1 -1
- package/dist/cjs/chunks/{sseStore-DDlXJ2mc.js → sseStore-CnQU9zYi.js} +3 -3
- package/dist/cjs/chunks/{uploads-worker-BMHcg5-W.js → uploads-worker-hKMYFfkr.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-D3RnoU3L.js → uploadsStore-D8GRqXd4.js} +2 -2
- package/dist/cjs/chunks/{viewState-D2U_fJaY.js → viewState-CcBwTZn8.js} +8 -8
- package/dist/cjs/chunks/{volumeStore-BWzyOw8D.js → volumeStore-DofQKsQb.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-BXp7R6oE.js → webRTCStore-CjsjPMWU.js} +2 -2
- package/dist/cjs/chunks/{windowStore-BYb1L705.js → windowStore-DmMud6Ne.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +6 -6
- 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 -9
- package/dist/cjs/components/ButtonBar/index.js +6 -6
- package/dist/cjs/components/Camera/index.js +8 -8
- package/dist/cjs/components/CheckBox/index.js +6 -6
- package/dist/cjs/components/Chip/index.js +7 -7
- package/dist/cjs/components/DataTable/index.js +7 -7
- 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 +6 -6
- package/dist/cjs/components/DropDown/index.js +6 -6
- package/dist/cjs/components/ErrorSummary/index.js +6 -6
- package/dist/cjs/components/FileIcon/index.js +6 -6
- package/dist/cjs/components/FileList/index.js +7 -7
- package/dist/cjs/components/FlexDiv/index.js +4 -3
- package/dist/cjs/components/Grouper/index.js +7 -7
- package/dist/cjs/components/Icon/index.js +6 -6
- package/dist/cjs/components/IconButton/index.js +9 -10
- package/dist/cjs/components/Label/index.js +3 -3
- package/dist/cjs/components/Level/index.js +4 -4
- package/dist/cjs/components/Modal/index.js +10 -10
- package/dist/cjs/components/ModalController/index.js +6 -6
- package/dist/cjs/components/Overlay/index.js +2 -2
- package/dist/cjs/components/Pager/index.js +3 -3
- package/dist/cjs/components/Progress/index.js +6 -6
- package/dist/cjs/components/PromptInput/index.js +10 -10
- package/dist/cjs/components/RadioButton/index.js +6 -6
- package/dist/cjs/components/RadioButtonList/index.js +7 -7
- package/dist/cjs/components/Slider/index.js +6 -6
- package/dist/cjs/components/Spacer/index.js +2 -2
- package/dist/cjs/components/Switch/index.js +2 -2
- package/dist/cjs/components/TabBar/index.js +9 -9
- package/dist/cjs/components/TextArea/index.js +10 -10
- package/dist/cjs/components/Textfield/index.js +10 -10
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +7 -7
- package/dist/cjs/components/ToggleButton/index.js +10 -10
- package/dist/cjs/components/UploadArea/index.js +8 -8
- package/dist/cjs/components/Video/index.js +12 -13
- package/dist/cjs/components/VideoController/index.js +10 -10
- 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/useInfiniteScroll.js +85 -0
- package/dist/cjs/hooks/useMdStreamBuffer.js +2 -2
- package/dist/cjs/hooks/useMicrophone.js +1 -1
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +7 -6
- package/dist/cjs/index.js +13 -12
- package/dist/cjs/providers/themeServer.test.js +1 -1
- 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/activeTab.js +1 -1
- 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 +5 -5
- package/dist/cjs/theme/themes.js +13 -2
- package/dist/cjs/theme.js +2 -2
- 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-BMvVC5-0.mjs → AudioBubble-DwE50YGL.mjs} +7 -7
- package/dist/esm/chunks/{Avatar-Ce0nIuFe.mjs → Avatar-BdjtrRLS.mjs} +3 -3
- package/dist/esm/chunks/{AvatarGroup-DLqBXeB9.mjs → AvatarGroup-BM-jh9BQ.mjs} +2 -2
- package/dist/esm/chunks/{Badge-DKkqjW28.mjs → Badge-CHPL-h3Z.mjs} +1 -1
- package/dist/esm/chunks/{Button-Bq4xhoet.mjs → Button-YmXPZrPL.mjs} +10 -11
- package/dist/esm/chunks/{ButtonBar-BAqLCnso.mjs → ButtonBar-CKagtnCT.mjs} +3 -3
- package/dist/esm/chunks/{Camera-DJhp-3_t.mjs → Camera-CRDO4oL5.mjs} +9 -9
- package/dist/esm/chunks/{CheckBox-CL37t7_J.mjs → CheckBox-B-vtYku8.mjs} +3 -3
- package/dist/esm/chunks/{Chip-Bjg-ONP_.mjs → Chip-BUJmKr_n.mjs} +10 -8
- package/dist/esm/chunks/{DivInput-D6kq1bR0.mjs → DivInput-BQMy-OA9.mjs} +3 -3
- package/dist/esm/chunks/{Dot-D6uHXyGY.mjs → Dot-Bfl1kBUQ.mjs} +2 -2
- package/dist/esm/chunks/{DrggablePanel-25Wjbf_y.mjs → DrggablePanel-BuMnBc3u.mjs} +10 -8
- package/dist/esm/chunks/{DropDown-BiwdsV6m.mjs → DropDown-BsSvP2ji.mjs} +6 -6
- package/dist/esm/chunks/{ErrorSummary-BODIGAst.mjs → ErrorSummary-DMOWFhAu.mjs} +7 -7
- package/dist/esm/chunks/{FileIcon-CfS-TY-S.mjs → FileIcon-k4eYnLQv.mjs} +6 -6
- package/dist/esm/chunks/{FileList-DYvUHXyd.mjs → FileList-DeuwRbr1.mjs} +10 -9
- package/dist/esm/chunks/{FlexDiv-DIb3pmFo.mjs → FlexDiv-DODEbrMI.mjs} +6 -4
- package/dist/esm/chunks/{Grouper-CL5-Dk2U.mjs → Grouper-BPVjNabz.mjs} +7 -7
- package/dist/esm/chunks/{Icon-h1sVmLvI.mjs → Icon-BlQAJ0NV.mjs} +6 -6
- package/dist/esm/chunks/{IconButton-D9y0_8qs.mjs → IconButton-byqDhHLo.mjs} +8 -6
- package/dist/esm/chunks/{IndexedDB-DcKlcEts.mjs → IndexedDB-DUCWUJdN.mjs} +1 -1
- package/dist/esm/chunks/{Label-Cb1TNTGX.mjs → Label-DnHSkAZF.mjs} +6 -3
- package/dist/esm/chunks/{Level-Ce3F5ITs.mjs → Level-CV1kvx1V.mjs} +4 -4
- package/dist/esm/chunks/{Modal-uAJiitWq.mjs → Modal-CzxOSxwR.mjs} +7 -7
- package/dist/esm/chunks/{ModalController-CviD29p4.mjs → ModalController-C6P18AFg.mjs} +5 -5
- package/dist/esm/chunks/{Overlay-je9uxyF7.mjs → Overlay-CXGkHAtm.mjs} +1 -1
- package/dist/esm/chunks/{Pager-mEoJq77o.mjs → Pager-B5dbPb9x.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-CklbjFdQ.mjs → ProgressIndicator-DvrIrgxu.mjs} +7 -7
- package/dist/esm/chunks/{PromptInput-B93xY5vK.mjs → PromptInput-BAyomDiu.mjs} +12 -13
- package/dist/esm/chunks/{RadioButton-n6q2k-ia.mjs → RadioButton-D6pFBLOS.mjs} +5 -5
- package/dist/esm/chunks/{RadioButtonList-CAJPqSTC.mjs → RadioButtonList-BpT9OaB1.mjs} +3 -3
- package/dist/esm/chunks/{Slider-By-9skcp.mjs → Slider-5sz0qeXF.mjs} +7 -7
- package/dist/esm/chunks/Spacer-gFflabIn.mjs +28 -0
- package/dist/esm/chunks/{Switch-DDyRtDnU.mjs → Switch-SXASJgaA.mjs} +4 -4
- package/dist/esm/chunks/{TabBar-BushFhfl.mjs → TabBar-BIuiRmrm.mjs} +14 -14
- package/dist/esm/chunks/{TextArea-BLum6rgj.mjs → TextArea-DbGoSQVo.mjs} +6 -4
- package/dist/esm/chunks/{TextField-C0V-4Lg1.mjs → TextField-BtrrxNNH.mjs} +17 -22
- package/dist/esm/chunks/{Tip-CCrn5riH.mjs → Tip-CNKUHvPz.mjs} +4 -4
- package/dist/esm/chunks/{Toast-DWhivCO9.mjs → Toast-udN4QBvW.mjs} +14 -12
- package/dist/esm/chunks/{ToggleButton-C_52LsVX.mjs → ToggleButton-Bu0h-627.mjs} +2 -2
- package/dist/esm/chunks/{UploadArea-DJxjadCV.mjs → UploadArea-CkF7ubsS.mjs} +11 -7
- package/dist/esm/chunks/{Video-DiuWxBAM.mjs → Video-CeHfRclT.mjs} +10 -8
- package/dist/esm/chunks/{VideoController-BWvCRNoR.mjs → VideoController-D0EXRyjT.mjs} +10 -10
- package/dist/esm/chunks/{WSConnection-nyuthu2w.mjs → WSConnection-n1TRftv9.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-9m7x937g.mjs → WebRTCConnection-tvD_P75V.mjs} +1 -1
- package/dist/esm/chunks/{browserChannelsStore-smRS4Hid.mjs → browserChannelsStore-B-xC9TOO.mjs} +2 -2
- package/dist/esm/chunks/{localDBStore-ONbAby1P.mjs → localDBStore-CZslfcnT.mjs} +3 -3
- package/dist/esm/chunks/{microphoneStore-6qsb6eV0.mjs → microphoneStore-DkUZbjQU.mjs} +1 -1
- package/dist/esm/chunks/{misc-_71JTGbu.mjs → misc-DtngeJIC.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-Cqbsz4ER.mjs → sseStore-D45Ex3w6.mjs} +3 -3
- package/dist/esm/chunks/{uploads-worker-D3JPUPSZ.mjs → uploads-worker-BuH0JRF9.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-DE-A-CML.mjs → uploadsStore-BkOKmrJc.mjs} +1 -1
- package/dist/esm/chunks/{viewState-C34wAgGX.mjs → viewState-uX0vekU4.mjs} +11 -11
- package/dist/esm/chunks/{volumeStore-Bchda99E.mjs → volumeStore-CWqS-X0g.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-0Fv3Wnrg.mjs → webRTCStore-BmyEouBv.mjs} +3 -3
- package/dist/esm/chunks/{windowStore-DcPWzksH.mjs → windowStore-Da3BCfMQ.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +9 -9
- 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 +13 -13
- package/dist/esm/components/ButtonBar/index.mjs +9 -9
- package/dist/esm/components/Camera/index.mjs +11 -11
- package/dist/esm/components/CheckBox/index.mjs +9 -9
- package/dist/esm/components/Chip/index.mjs +10 -10
- package/dist/esm/components/DataTable/index.mjs +10 -10
- 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 +8 -8
- package/dist/esm/components/DropDown/index.mjs +9 -9
- package/dist/esm/components/ErrorSummary/index.mjs +8 -8
- package/dist/esm/components/FileIcon/index.mjs +8 -8
- package/dist/esm/components/FileList/index.mjs +11 -11
- package/dist/esm/components/FlexDiv/index.mjs +4 -2
- package/dist/esm/components/Grouper/index.mjs +10 -10
- package/dist/esm/components/Icon/index.mjs +9 -9
- package/dist/esm/components/IconButton/index.mjs +13 -13
- package/dist/esm/components/Label/index.mjs +3 -3
- package/dist/esm/components/Level/index.mjs +5 -5
- package/dist/esm/components/Modal/index.mjs +15 -15
- package/dist/esm/components/ModalController/index.mjs +9 -9
- 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 +9 -9
- package/dist/esm/components/PromptInput/index.mjs +16 -16
- package/dist/esm/components/RadioButton/index.mjs +9 -9
- package/dist/esm/components/RadioButtonList/index.mjs +10 -10
- package/dist/esm/components/Slider/index.mjs +9 -9
- 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 +13 -13
- package/dist/esm/components/TextArea/index.mjs +15 -15
- package/dist/esm/components/Textfield/index.mjs +15 -15
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +10 -10
- package/dist/esm/components/ToggleButton/index.mjs +15 -15
- package/dist/esm/components/UploadArea/index.mjs +12 -12
- package/dist/esm/components/Video/index.mjs +20 -20
- package/dist/esm/components/VideoController/index.mjs +15 -15
- 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/useInfiniteScroll.mjs +86 -0
- 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 +10 -8
- package/dist/esm/index.mjs +61 -59
- package/dist/esm/providers/themeServer.test.mjs +1 -1
- 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/activeTab.mjs +1 -1
- 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 +19 -19
- package/dist/esm/theme/themes.mjs +13 -2
- package/dist/esm/theme.mjs +1 -1
- 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 +2020 -2003
- package/dist/types/components/Button/Button.d.ts +2 -2
- package/dist/types/components/Button/_types.d.ts +1 -1
- package/dist/types/components/Chip/_types.d.ts +1 -1
- package/dist/types/components/DivInput/_types.d.ts +2 -2
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +1 -1
- package/dist/types/components/DropDown/_types.d.ts +1 -1
- package/dist/types/components/FlexDiv/FlexDiv.d.ts +2 -2
- package/dist/types/components/FlexDiv/_types.d.ts +1 -1
- package/dist/types/components/IconButton/_types.d.ts +1 -1
- package/dist/types/components/Label/_types.d.ts +1 -1
- package/dist/types/components/PromptInput/PromptInput.d.ts +2 -2
- package/dist/types/components/PromptInput/_types.d.ts +1 -1
- package/dist/types/components/Spacer/_types.d.ts +2 -1
- package/dist/types/components/TextArea/_types.d.ts +1 -1
- package/dist/types/components/Tip/_types.d.ts +2 -2
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +25 -0
- package/dist/types/hooks/useInfiniteScroll/useInfiniteScroll.test.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/spacing/_types.d.ts +10 -0
- package/dist/types/theme/spacing/spacing.d.ts +2 -0
- package/dist/types/theme/themes.d.ts +2 -0
- package/package.json +5 -4
- package/dist/cjs/chunks/Spacer-FeOx0maU.js +0 -19
- package/dist/esm/chunks/Spacer-BalkC0Ns.mjs +0 -21
- /package/dist/cjs/chunks/{MdStreamBuffer-C6Mzzrho.js → MdStreamBuffer-_OrgRfVG.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-DEaAZZK4.js → SSEConnection-CbOe_JNB.js} +0 -0
- /package/dist/cjs/chunks/{_types-C_ivnCLo.js → _types-wkoWD0Y3.js} +0 -0
- /package/dist/cjs/chunks/{activeTabStore-DGx1oDlt.js → activeTabStore-CGvD6cav.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-CWwGpDKy.js → audioVisualizer-C-MOIbKC.js} +0 -0
- /package/dist/cjs/chunks/{broadcastChannel-DsiOkXOS.js → broadcastChannel-CweolKkH.js} +0 -0
- /package/dist/cjs/chunks/{colors-8UgFzWG3.js → colors-CmnEtiBL.js} +0 -0
- /package/dist/cjs/chunks/{debounce-WThsNCy_.js → debounce-BZaLjB2V.js} +0 -0
- /package/dist/cjs/chunks/{magic-string.es-BJ7Aj4k6.js → magic-string.es-CSldRwCx.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-Cf7zIYDq.js → modalStore-cZUYwRGj.js} +0 -0
- /package/dist/cjs/chunks/{rafThrottle-Bz-dXvba.js → rafThrottle-BOry0ZTC.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-CfscXKNK.js → sharedTypes-0pou-NPE.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-NsUC8M9o.js → tipStore-CuYu0vqF.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-QggWGMbD.js → toastStore-C13kXzXk.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-DJn-UVEV.js → tslib.es6-71Jftlb2.js} +0 -0
- /package/dist/cjs/chunks/{videoStore-KWc_xF8H.js → videoStore-EhK3IQSb.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-RTcKc6kb.mjs → MdStreamBuffer-C3dFJJ3U.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-5K8PW_M0.mjs → SSEConnection-DkGC07fu.mjs} +0 -0
- /package/dist/esm/chunks/{_types-BcB7rRaG.mjs → _types-DP1g8sZi.mjs} +0 -0
- /package/dist/esm/chunks/{activeTabStore-J_rS7nDK.mjs → activeTabStore-aDjOVZ_V.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-B-dLbWMF.mjs → audioVisualizer-BwIDqL-t.mjs} +0 -0
- /package/dist/esm/chunks/{broadcastChannel-B-jhrR3a.mjs → broadcastChannel-QIWda6rB.mjs} +0 -0
- /package/dist/esm/chunks/{colors-BX0EXrOS.mjs → colors-B_YmJkkL.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-B79xfyrw.mjs → debounce-CuT6TUcG.mjs} +0 -0
- /package/dist/esm/chunks/{magic-string.es-9DU4z85h.mjs → magic-string.es-ya4sZF4A.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-BsEzx_f6.mjs → modalStore-BloNa5y6.mjs} +0 -0
- /package/dist/esm/chunks/{rafThrottle-D2dyeVut.mjs → rafThrottle-CA0kPebe.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-CmJ2hQtY.mjs → sharedTypes-BFgEbKnN.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-SYcEa33e.mjs → tipStore-DnHV2nLl.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-CX52_jj2.mjs → toastStore-DURM_fWk.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-CE_8mdQi.mjs → tslib.es6-CV__4jU7.mjs} +0 -0
- /package/dist/esm/chunks/{videoStore-CBfvbDcQ.mjs → videoStore-DzD6pFQl.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { T as Toast, a as ToastType } from "../../chunks/Toast-
|
|
1
|
+
export { T as Toast, a as ToastType } from "../../chunks/Toast-udN4QBvW.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-CV__4jU7.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -26,22 +26,22 @@ import "../../theme/type.mjs";
|
|
|
26
26
|
|
|
27
27
|
import "../../hooks/useObserveTheme.mjs";
|
|
28
28
|
|
|
29
|
-
import "../../chunks/misc-
|
|
29
|
+
import "../../chunks/misc-DtngeJIC.mjs";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/broadcastChannel-
|
|
31
|
+
import "../../chunks/broadcastChannel-QIWda6rB.mjs";
|
|
32
32
|
|
|
33
|
-
import "../../chunks/webRTCStore-
|
|
33
|
+
import "../../chunks/webRTCStore-BmyEouBv.mjs";
|
|
34
34
|
|
|
35
35
|
import "zustand";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/WebRTCConnection-
|
|
37
|
+
import "../../chunks/WebRTCConnection-tvD_P75V.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/microphoneStore-
|
|
39
|
+
import "../../chunks/microphoneStore-DkUZbjQU.mjs";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/volumeStore-
|
|
41
|
+
import "../../chunks/volumeStore-CWqS-X0g.mjs";
|
|
42
42
|
|
|
43
43
|
import "../../hooks/useWindow.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/Icon-
|
|
45
|
+
import "../../chunks/Icon-BlQAJ0NV.mjs";
|
|
46
46
|
|
|
47
|
-
import "../../chunks/ProgressIndicator-
|
|
47
|
+
import "../../chunks/ProgressIndicator-DvrIrgxu.mjs";
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
export { T as ToggleButton } from "../../chunks/ToggleButton-
|
|
1
|
+
export { T as ToggleButton } from "../../chunks/ToggleButton-Bu0h-627.mjs";
|
|
2
2
|
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
import "react";
|
|
6
6
|
|
|
7
|
-
import "../../chunks/IconButton-
|
|
7
|
+
import "../../chunks/IconButton-byqDhHLo.mjs";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/tslib.es6-
|
|
9
|
+
import "../../chunks/tslib.es6-CV__4jU7.mjs";
|
|
10
10
|
|
|
11
11
|
import "motion/react";
|
|
12
12
|
|
|
13
|
+
import "../../chunks/misc-DtngeJIC.mjs";
|
|
14
|
+
|
|
13
15
|
import "../../theme/corners.mjs";
|
|
14
16
|
|
|
15
|
-
import "../../chunks/Badge-
|
|
17
|
+
import "../../chunks/Badge-CHPL-h3Z.mjs";
|
|
16
18
|
|
|
17
|
-
import "../../chunks/Dot-
|
|
19
|
+
import "../../chunks/Dot-Bfl1kBUQ.mjs";
|
|
18
20
|
|
|
19
|
-
import "../../chunks/Icon-
|
|
21
|
+
import "../../chunks/Icon-BlQAJ0NV.mjs";
|
|
20
22
|
|
|
21
23
|
import "../../hooks/useTheme.mjs";
|
|
22
24
|
|
|
@@ -34,22 +36,20 @@ import "../../theme/type.mjs";
|
|
|
34
36
|
|
|
35
37
|
import "../../hooks/useObserveTheme.mjs";
|
|
36
38
|
|
|
37
|
-
import "../../chunks/
|
|
38
|
-
|
|
39
|
-
import "../../chunks/broadcastChannel-B-jhrR3a.mjs";
|
|
39
|
+
import "../../chunks/broadcastChannel-QIWda6rB.mjs";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/webRTCStore-
|
|
41
|
+
import "../../chunks/webRTCStore-BmyEouBv.mjs";
|
|
42
42
|
|
|
43
43
|
import "zustand";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/WebRTCConnection-
|
|
45
|
+
import "../../chunks/WebRTCConnection-tvD_P75V.mjs";
|
|
46
46
|
|
|
47
|
-
import "../../chunks/microphoneStore-
|
|
47
|
+
import "../../chunks/microphoneStore-DkUZbjQU.mjs";
|
|
48
48
|
|
|
49
|
-
import "../../chunks/volumeStore-
|
|
49
|
+
import "../../chunks/volumeStore-CWqS-X0g.mjs";
|
|
50
50
|
|
|
51
51
|
import "../../hooks/useWindow.mjs";
|
|
52
52
|
|
|
53
|
-
import "../../chunks/sharedTypes-
|
|
53
|
+
import "../../chunks/sharedTypes-BFgEbKnN.mjs";
|
|
54
54
|
|
|
55
|
-
import "../../chunks/Label-
|
|
55
|
+
import "../../chunks/Label-DnHSkAZF.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "../../chunks/UploadArea-
|
|
1
|
+
export { U as UploadArea, a as allTypes, b as audioTypes, d as documentTypes, i as imageTypes, t as textTypes, v as videoTypes } from "../../chunks/UploadArea-CkF7ubsS.mjs";
|
|
2
2
|
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -6,11 +6,11 @@ import "react";
|
|
|
6
6
|
|
|
7
7
|
import "../../theme/corners.mjs";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/misc-
|
|
9
|
+
import "../../chunks/misc-DtngeJIC.mjs";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/tslib.es6-
|
|
11
|
+
import "../../chunks/tslib.es6-CV__4jU7.mjs";
|
|
12
12
|
|
|
13
|
-
import "../../chunks/Icon-
|
|
13
|
+
import "../../chunks/Icon-BlQAJ0NV.mjs";
|
|
14
14
|
|
|
15
15
|
import "../../hooks/useTheme.mjs";
|
|
16
16
|
|
|
@@ -28,24 +28,24 @@ import "../../theme/type.mjs";
|
|
|
28
28
|
|
|
29
29
|
import "../../hooks/useObserveTheme.mjs";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/broadcastChannel-
|
|
31
|
+
import "../../chunks/broadcastChannel-QIWda6rB.mjs";
|
|
32
32
|
|
|
33
|
-
import "../../chunks/webRTCStore-
|
|
33
|
+
import "../../chunks/webRTCStore-BmyEouBv.mjs";
|
|
34
34
|
|
|
35
35
|
import "zustand";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/WebRTCConnection-
|
|
37
|
+
import "../../chunks/WebRTCConnection-tvD_P75V.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/microphoneStore-
|
|
39
|
+
import "../../chunks/microphoneStore-DkUZbjQU.mjs";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/volumeStore-
|
|
41
|
+
import "../../chunks/volumeStore-CWqS-X0g.mjs";
|
|
42
42
|
|
|
43
43
|
import "../../hooks/useWindow.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/ProgressIndicator-
|
|
45
|
+
import "../../chunks/ProgressIndicator-DvrIrgxu.mjs";
|
|
46
46
|
|
|
47
47
|
import "motion/react";
|
|
48
48
|
|
|
49
|
-
import "../../chunks/FileList-
|
|
49
|
+
import "../../chunks/FileList-DeuwRbr1.mjs";
|
|
50
50
|
|
|
51
|
-
import "../../chunks/FileIcon-
|
|
51
|
+
import "../../chunks/FileIcon-k4eYnLQv.mjs";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export { V as Video } from "../../chunks/Video-
|
|
1
|
+
export { V as Video } from "../../chunks/Video-CeHfRclT.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-CV__4jU7.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
import "react";
|
|
8
8
|
|
|
9
|
-
import "../../
|
|
9
|
+
import "../../theme/corners.mjs";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/
|
|
11
|
+
import "../../chunks/misc-DtngeJIC.mjs";
|
|
12
12
|
|
|
13
|
-
import "
|
|
13
|
+
import "../../chunks/IconButton-byqDhHLo.mjs";
|
|
14
14
|
|
|
15
|
-
import "
|
|
15
|
+
import "motion/react";
|
|
16
16
|
|
|
17
|
-
import "../../chunks/Badge-
|
|
17
|
+
import "../../chunks/Badge-CHPL-h3Z.mjs";
|
|
18
18
|
|
|
19
|
-
import "../../chunks/Dot-
|
|
19
|
+
import "../../chunks/Dot-Bfl1kBUQ.mjs";
|
|
20
20
|
|
|
21
|
-
import "../../chunks/Icon-
|
|
21
|
+
import "../../chunks/Icon-BlQAJ0NV.mjs";
|
|
22
22
|
|
|
23
23
|
import "../../hooks/useTheme.mjs";
|
|
24
24
|
|
|
@@ -36,30 +36,30 @@ import "../../theme/type.mjs";
|
|
|
36
36
|
|
|
37
37
|
import "../../hooks/useObserveTheme.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/broadcastChannel-
|
|
39
|
+
import "../../chunks/broadcastChannel-QIWda6rB.mjs";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/webRTCStore-
|
|
41
|
+
import "../../chunks/webRTCStore-BmyEouBv.mjs";
|
|
42
42
|
|
|
43
43
|
import "zustand";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/WebRTCConnection-
|
|
45
|
+
import "../../chunks/WebRTCConnection-tvD_P75V.mjs";
|
|
46
46
|
|
|
47
|
-
import "../../chunks/microphoneStore-
|
|
47
|
+
import "../../chunks/microphoneStore-DkUZbjQU.mjs";
|
|
48
48
|
|
|
49
|
-
import "../../chunks/volumeStore-
|
|
49
|
+
import "../../chunks/volumeStore-CWqS-X0g.mjs";
|
|
50
50
|
|
|
51
51
|
import "../../hooks/useWindow.mjs";
|
|
52
52
|
|
|
53
|
-
import "../../chunks/sharedTypes-
|
|
53
|
+
import "../../chunks/sharedTypes-BFgEbKnN.mjs";
|
|
54
54
|
|
|
55
|
-
import "../../chunks/ProgressIndicator-
|
|
55
|
+
import "../../chunks/ProgressIndicator-DvrIrgxu.mjs";
|
|
56
56
|
|
|
57
|
-
import "../../chunks/Slider-
|
|
57
|
+
import "../../chunks/Slider-5sz0qeXF.mjs";
|
|
58
58
|
|
|
59
|
-
import "../../chunks/debounce-
|
|
59
|
+
import "../../chunks/debounce-CuT6TUcG.mjs";
|
|
60
60
|
|
|
61
61
|
import "../../hooks/useObserveResize.mjs";
|
|
62
62
|
|
|
63
|
-
import "../../chunks/ToggleButton-
|
|
63
|
+
import "../../chunks/ToggleButton-Bu0h-627.mjs";
|
|
64
64
|
|
|
65
|
-
import "../../chunks/Label-
|
|
65
|
+
import "../../chunks/Label-DnHSkAZF.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { V as VideoController } from "../../chunks/VideoController-
|
|
1
|
+
export { V as VideoController } from "../../chunks/VideoController-D0EXRyjT.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-CV__4jU7.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -8,29 +8,29 @@ import "motion/react";
|
|
|
8
8
|
|
|
9
9
|
import "react";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/microphoneStore-
|
|
11
|
+
import "../../chunks/microphoneStore-DkUZbjQU.mjs";
|
|
12
12
|
|
|
13
13
|
import "zustand";
|
|
14
14
|
|
|
15
|
-
import "../../chunks/volumeStore-
|
|
15
|
+
import "../../chunks/volumeStore-CWqS-X0g.mjs";
|
|
16
16
|
|
|
17
|
-
import "../../chunks/webRTCStore-
|
|
17
|
+
import "../../chunks/webRTCStore-BmyEouBv.mjs";
|
|
18
18
|
|
|
19
|
-
import "../../chunks/WebRTCConnection-
|
|
19
|
+
import "../../chunks/WebRTCConnection-tvD_P75V.mjs";
|
|
20
20
|
|
|
21
|
-
import "../../chunks/broadcastChannel-
|
|
21
|
+
import "../../chunks/broadcastChannel-QIWda6rB.mjs";
|
|
22
22
|
|
|
23
23
|
import "../../theme/corners.mjs";
|
|
24
24
|
|
|
25
|
-
import "../../chunks/misc-
|
|
25
|
+
import "../../chunks/misc-DtngeJIC.mjs";
|
|
26
26
|
|
|
27
|
-
import "../../chunks/IconButton-
|
|
27
|
+
import "../../chunks/IconButton-byqDhHLo.mjs";
|
|
28
28
|
|
|
29
|
-
import "../../chunks/Badge-
|
|
29
|
+
import "../../chunks/Badge-CHPL-h3Z.mjs";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/Dot-
|
|
31
|
+
import "../../chunks/Dot-Bfl1kBUQ.mjs";
|
|
32
32
|
|
|
33
|
-
import "../../chunks/Icon-
|
|
33
|
+
import "../../chunks/Icon-BlQAJ0NV.mjs";
|
|
34
34
|
|
|
35
35
|
import "../../hooks/useTheme.mjs";
|
|
36
36
|
|
|
@@ -50,8 +50,8 @@ import "../../hooks/useObserveTheme.mjs";
|
|
|
50
50
|
|
|
51
51
|
import "../../hooks/useWindow.mjs";
|
|
52
52
|
|
|
53
|
-
import "../../chunks/sharedTypes-
|
|
53
|
+
import "../../chunks/sharedTypes-BFgEbKnN.mjs";
|
|
54
54
|
|
|
55
|
-
import "../../chunks/Overlay-
|
|
55
|
+
import "../../chunks/Overlay-CXGkHAtm.mjs";
|
|
56
56
|
|
|
57
|
-
import "../../chunks/videoStore-
|
|
57
|
+
import "../../chunks/videoStore-DzD6pFQl.mjs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { _ as __awaiter } from "../chunks/tslib.es6-
|
|
2
|
+
import { _ as __awaiter } from "../chunks/tslib.es6-CV__4jU7.mjs";
|
|
3
3
|
|
|
4
4
|
import { useState, useRef, useCallback, useEffect } from "react";
|
|
5
5
|
|
|
6
|
-
import { u as useWebRTC, c as useWebRTCConnection, g as getWebRTCConnections } from "../chunks/webRTCStore-
|
|
6
|
+
import { u as useWebRTC, c as useWebRTCConnection, g as getWebRTCConnections } from "../chunks/webRTCStore-BmyEouBv.mjs";
|
|
7
7
|
|
|
8
|
-
import { q as useProcessedMicStream } from "../chunks/microphoneStore-
|
|
8
|
+
import { q as useProcessedMicStream } from "../chunks/microphoneStore-DkUZbjQU.mjs";
|
|
9
9
|
|
|
10
|
-
import { f as useVolume } from "../chunks/volumeStore-
|
|
10
|
+
import { f as useVolume } from "../chunks/volumeStore-CWqS-X0g.mjs";
|
|
11
11
|
|
|
12
12
|
import "zustand";
|
|
13
13
|
|
|
14
|
-
import "../chunks/WebRTCConnection-
|
|
14
|
+
import "../chunks/WebRTCConnection-tvD_P75V.mjs";
|
|
15
15
|
|
|
16
|
-
import "../chunks/broadcastChannel-
|
|
16
|
+
import "../chunks/broadcastChannel-QIWda6rB.mjs";
|
|
17
17
|
|
|
18
18
|
function useBindWebRTC(options) {
|
|
19
19
|
var _a;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { _ as __awaiter } from "../chunks/tslib.es6-
|
|
2
|
+
import { _ as __awaiter } from "../chunks/tslib.es6-CV__4jU7.mjs";
|
|
3
3
|
|
|
4
4
|
import { useState, useRef, useCallback, useEffect } from "react";
|
|
5
5
|
|
|
6
|
-
import { c as copyToClipboard } from "../chunks/misc-
|
|
6
|
+
import { c as copyToClipboard } from "../chunks/misc-DtngeJIC.mjs";
|
|
7
7
|
|
|
8
|
-
import "../chunks/broadcastChannel-
|
|
8
|
+
import "../chunks/broadcastChannel-QIWda6rB.mjs";
|
|
9
9
|
|
|
10
10
|
const DEFAULT_COPIED_RESET_DELAY = 2e3;
|
|
11
11
|
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { _ as __awaiter } from "../chunks/tslib.es6-CV__4jU7.mjs";
|
|
3
|
+
|
|
4
|
+
import { useState, useRef, useCallback, useEffect } from "react";
|
|
5
|
+
|
|
6
|
+
/** Loads immediately, then appends pages as the sentinel approaches the viewport. */
|
|
7
|
+
function useInfiniteScroll(loader, options) {
|
|
8
|
+
const {enabled: enabled = !0, hasMore: hasMore, resetKey: resetKey, root: root = null, rootMargin: rootMargin = "0px"} = options, [state, setState] = useState(() => ({
|
|
9
|
+
items: [],
|
|
10
|
+
isLoading: !1,
|
|
11
|
+
error: null,
|
|
12
|
+
started: !1
|
|
13
|
+
})), stateRef = useRef(state), loaderRef = useRef(loader), requestRef = useRef(null), mountedRef = useRef(!1), [sentinel, setSentinel] = useState(null), sentinelRef = useCallback(node => setSentinel(node), []);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
loaderRef.current = loader;
|
|
16
|
+
}, [ loader ]);
|
|
17
|
+
const update = useCallback(next => {
|
|
18
|
+
stateRef.current = next, setState(next);
|
|
19
|
+
}, []), reset = useCallback(() => {
|
|
20
|
+
requestRef.current = null, update({
|
|
21
|
+
items: [],
|
|
22
|
+
isLoading: !1,
|
|
23
|
+
error: null,
|
|
24
|
+
started: !1
|
|
25
|
+
});
|
|
26
|
+
}, [ update ]);
|
|
27
|
+
useEffect(() => (mountedRef.current = !0, reset(), () => {
|
|
28
|
+
mountedRef.current = !1, requestRef.current = null;
|
|
29
|
+
}), [ reset, resetKey ]);
|
|
30
|
+
const load = useCallback((...args_1) => __awaiter(this, [ ...args_1 ], void 0, function*(retry = !1) {
|
|
31
|
+
const current = stateRef.current;
|
|
32
|
+
if (!mountedRef.current || !enabled || requestRef.current || !hasMore || current.error && !retry) return;
|
|
33
|
+
const request = {};
|
|
34
|
+
requestRef.current = request, update(Object.assign(Object.assign({}, current), {
|
|
35
|
+
started: !0,
|
|
36
|
+
isLoading: !0,
|
|
37
|
+
error: null
|
|
38
|
+
}));
|
|
39
|
+
try {
|
|
40
|
+
const items = yield loaderRef.current();
|
|
41
|
+
if (requestRef.current !== request || !mountedRef.current) return;
|
|
42
|
+
update({
|
|
43
|
+
items: [ ...current.items, ...items ],
|
|
44
|
+
isLoading: !1,
|
|
45
|
+
error: null,
|
|
46
|
+
started: !0
|
|
47
|
+
});
|
|
48
|
+
} catch (cause) {
|
|
49
|
+
if (requestRef.current !== request || !mountedRef.current) return;
|
|
50
|
+
update(Object.assign(Object.assign({}, current), {
|
|
51
|
+
started: !0,
|
|
52
|
+
isLoading: !1,
|
|
53
|
+
error: cause instanceof Error ? cause : new Error(String(cause))
|
|
54
|
+
}));
|
|
55
|
+
} finally {
|
|
56
|
+
requestRef.current === request && (requestRef.current = null);
|
|
57
|
+
}
|
|
58
|
+
}), [ enabled, hasMore, update ]), loadMore = useCallback(() => load(), [ load ]), retry = useCallback(() => load(!0), [ load ]);
|
|
59
|
+
return useEffect(() => {
|
|
60
|
+
state.started || loadMore();
|
|
61
|
+
}, [ state.started, loadMore ]), useEffect(() => {
|
|
62
|
+
if (!enabled || !sentinel || state.isLoading || state.error || !hasMore || "undefined" == typeof IntersectionObserver) return;
|
|
63
|
+
let active = !0;
|
|
64
|
+
const observer = new IntersectionObserver(entries => {
|
|
65
|
+
active && entries.some(entry => entry.isIntersecting) && loadMore();
|
|
66
|
+
}, {
|
|
67
|
+
root: root,
|
|
68
|
+
rootMargin: rootMargin,
|
|
69
|
+
threshold: 0
|
|
70
|
+
});
|
|
71
|
+
return observer.observe(sentinel), () => {
|
|
72
|
+
active = !1, observer.disconnect();
|
|
73
|
+
};
|
|
74
|
+
}, [ enabled, hasMore, sentinel, state, root, rootMargin, loadMore ]), {
|
|
75
|
+
items: state.items,
|
|
76
|
+
isLoading: state.isLoading,
|
|
77
|
+
error: state.error,
|
|
78
|
+
hasMore: hasMore,
|
|
79
|
+
sentinelRef: sentinelRef,
|
|
80
|
+
loadMore: loadMore,
|
|
81
|
+
retry: retry,
|
|
82
|
+
reset: reset
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export { useInfiniteScroll };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { a as __rest } from "../chunks/tslib.es6-
|
|
2
|
+
import { a as __rest } from "../chunks/tslib.es6-CV__4jU7.mjs";
|
|
3
3
|
|
|
4
4
|
import { useRef, useState, useCallback, useEffect } from "react";
|
|
5
5
|
|
|
6
|
-
import { M as MdBuffer } from "../chunks/MdStreamBuffer-
|
|
6
|
+
import { M as MdBuffer } from "../chunks/MdStreamBuffer-C3dFJJ3U.mjs";
|
|
7
7
|
|
|
8
|
-
import "../chunks/broadcastChannel-
|
|
8
|
+
import "../chunks/broadcastChannel-QIWda6rB.mjs";
|
|
9
9
|
|
|
10
10
|
function useMDStreamBuffer(options) {
|
|
11
11
|
var _a, _b;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
3
|
|
|
4
|
-
import { d as debug } from "../chunks/misc-
|
|
4
|
+
import { d as debug } from "../chunks/misc-DtngeJIC.mjs";
|
|
5
5
|
|
|
6
|
-
import "../chunks/tslib.es6-
|
|
6
|
+
import "../chunks/tslib.es6-CV__4jU7.mjs";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Hook to log component renders, mounts, and unmounts
|
package/dist/esm/hooks.mjs
CHANGED
|
@@ -30,6 +30,8 @@ export { useClipboard } from "./hooks/useClipboard.mjs";
|
|
|
30
30
|
|
|
31
31
|
export { useActiveTab } from "./hooks/useActiveTab.mjs";
|
|
32
32
|
|
|
33
|
+
export { useInfiniteScroll } from "./hooks/useInfiniteScroll.mjs";
|
|
34
|
+
|
|
33
35
|
import "react";
|
|
34
36
|
|
|
35
37
|
import "./providers/ThemeProvider.mjs";
|
|
@@ -48,20 +50,20 @@ import "./theme/motion.mjs";
|
|
|
48
50
|
|
|
49
51
|
import "./theme/type.mjs";
|
|
50
52
|
|
|
51
|
-
import "./chunks/tslib.es6-
|
|
53
|
+
import "./chunks/tslib.es6-CV__4jU7.mjs";
|
|
52
54
|
|
|
53
|
-
import "./chunks/MdStreamBuffer-
|
|
55
|
+
import "./chunks/MdStreamBuffer-C3dFJJ3U.mjs";
|
|
54
56
|
|
|
55
|
-
import "./chunks/broadcastChannel-
|
|
57
|
+
import "./chunks/broadcastChannel-QIWda6rB.mjs";
|
|
56
58
|
|
|
57
|
-
import "./chunks/webRTCStore-
|
|
59
|
+
import "./chunks/webRTCStore-BmyEouBv.mjs";
|
|
58
60
|
|
|
59
61
|
import "zustand";
|
|
60
62
|
|
|
61
|
-
import "./chunks/WebRTCConnection-
|
|
63
|
+
import "./chunks/WebRTCConnection-tvD_P75V.mjs";
|
|
62
64
|
|
|
63
|
-
import "./chunks/microphoneStore-
|
|
65
|
+
import "./chunks/microphoneStore-DkUZbjQU.mjs";
|
|
64
66
|
|
|
65
|
-
import "./chunks/volumeStore-
|
|
67
|
+
import "./chunks/volumeStore-CWqS-X0g.mjs";
|
|
66
68
|
|
|
67
|
-
import "./chunks/misc-
|
|
69
|
+
import "./chunks/misc-DtngeJIC.mjs";
|