@apple-pie/slice 0.1.55 → 0.1.57
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-Ci-rl3rB.js → AudioBubble-Spg7xqc9.js} +4 -4
- package/dist/cjs/chunks/{Avatar-CFwpwiLw.js → Avatar-BdhreiVP.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-CudYFYjc.js → AvatarGroup-BD69pplN.js} +1 -1
- package/dist/cjs/chunks/{Badge-Ddurl_e4.js → Badge-C_sva3jT.js} +1 -1
- package/dist/cjs/chunks/{Button-Dh1u8LGA.js → Button-C8hlMST5.js} +1 -1
- package/dist/cjs/chunks/{ButtonBar--GU2CDWR.js → ButtonBar-1Qjuyr2U.js} +1 -1
- package/dist/cjs/chunks/{Camera-Cy1WdY-8.js → Camera-CXQLHtv8.js} +5 -5
- package/dist/cjs/chunks/{CheckBox-JTuwhl0L.js → CheckBox-Bp4HCEp5.js} +1 -1
- package/dist/cjs/chunks/{Chip-CscCQTUX.js → Chip-D8k22_F8.js} +1 -1
- package/dist/cjs/chunks/{DivInput-spwd-jbV.js → DivInput-BXFPO-Mi.js} +1 -1
- package/dist/cjs/chunks/{Dot-B4n8esf7.js → Dot-BkFz2bG3.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-DGQLxiC8.js → DrggablePanel-EJYkjSuq.js} +4 -4
- package/dist/cjs/chunks/{DropDown-D2fGQz6F.js → DropDown-DcrJTYel.js} +1 -1
- package/dist/cjs/chunks/{ErrorSummary-DiGsZnI5.js → ErrorSummary-FYhQ8A2g.js} +4 -4
- package/dist/cjs/chunks/{FileIcon-Bfz-Y0Cy.js → FileIcon-DdKRzIde.js} +4 -4
- package/dist/cjs/chunks/{FileList-DLh47FG2.js → FileList-CBR3uaXM.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-XqYE8giM.js → FlexDiv-DRaTYgR_.js} +1 -1
- package/dist/cjs/chunks/{Grouper-CXrkmjjs.js → Grouper-k1wtUJlG.js} +5 -5
- package/dist/cjs/chunks/{Icon-Cpv-MLQe.js → Icon-aBLPfZrD.js} +4 -4
- package/dist/cjs/chunks/{IconButton-CidluQkI.js → IconButton-CbGXfBLK.js} +1 -1
- package/dist/cjs/chunks/{IndexedDB-DgaYP2kI.js → IndexedDB-BcDtqygg.js} +1 -1
- package/dist/cjs/chunks/{Label-240mLqnE.js → Label-Coei_F3_.js} +1 -1
- package/dist/cjs/chunks/{Level-rBu7hwzn.js → Level-DpYVX9KZ.js} +2 -2
- package/dist/cjs/chunks/{Modal-DubGGcyK.js → Modal-IDb_E4Uj.js} +1 -1
- package/dist/cjs/chunks/{ModalController-8krc78Et.js → ModalController-D0Rk-7xK.js} +3 -3
- package/dist/cjs/chunks/{Overlay-BQZaR_uy.js → Overlay-CTRJWWlC.js} +1 -1
- package/dist/cjs/chunks/{Pager-gW2u2OKl.js → Pager-CjgU7xRP.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-Ctmi4lZM.js → ProgressIndicator-Dn_SVbK5.js} +4 -4
- package/dist/cjs/chunks/{PromptInput-CeAKJoh8.js → PromptInput-DrqqeB7q.js} +5 -5
- package/dist/cjs/chunks/{RadioButton-DFL54WX0.js → RadioButton-Bc7LvS17.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-CMqnMCzn.js → RadioButtonList-Bl6hPvsZ.js} +1 -1
- package/dist/cjs/chunks/{Slider-jBArsE7g.js → Slider-BAR_f1bT.js} +4 -4
- package/dist/cjs/chunks/{Spacer-DIO_OS0T.js → Spacer-ByFg1uI8.js} +1 -1
- package/dist/cjs/chunks/{Switch-Dn1iTrTJ.js → Switch-CuK0xq85.js} +1 -1
- package/dist/cjs/chunks/{TabBar-DIW1Q4ok.js → TabBar-DE-0fmd_.js} +5 -5
- package/dist/cjs/chunks/{TextArea-CB_IjBVY.js → TextArea-CTDhSMbI.js} +1 -1
- package/dist/cjs/chunks/{TextField-BJLykcgJ.js → TextField-BocVz2FD.js} +5 -5
- package/dist/cjs/chunks/{Tip-Cr-zkGaw.js → Tip-C7hgfkbD.js} +1 -1
- package/dist/cjs/chunks/{Toast-GQYR1pGd.js → Toast-CUtUp1H3.js} +5 -5
- package/dist/cjs/chunks/{ToggleButton-Czjv-HeJ.js → ToggleButton-BEw8y4n6.js} +1 -1
- package/dist/cjs/chunks/{UploadArea-D4DtPgYh.js → UploadArea-cmzfjkdq.js} +1 -1
- package/dist/cjs/chunks/{Video-Cp0IDyIo.js → Video-Cqyh2uqE.js} +1 -1
- package/dist/cjs/chunks/{VideoController-vg1e2upa.js → VideoController-cgbR4TCM.js} +4 -4
- package/dist/cjs/chunks/{WSConnection-Cm3mM-kW.js → WSConnection-lb-L_wl2.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-DKYpFbFv.js → WebRTCConnection-C9wlDCWJ.js} +1 -1
- package/dist/cjs/chunks/activeTabStore-DIGbK-zT.js +37 -0
- package/dist/cjs/chunks/{browserChannelsStore-C7f7hGQf.js → browserChannelsStore-DzmDF2aJ.js} +2 -2
- package/dist/cjs/chunks/{localDBStore-tJW5x8XW.js → localDBStore-Bo66OkHk.js} +2 -2
- package/dist/cjs/chunks/{microphoneStore-2585gIPW.js → microphoneStore-D0ussh7L.js} +1 -1
- package/dist/cjs/chunks/{misc-Dl3vLXvs.js → misc-DzYz4zh5.js} +1 -1
- package/dist/cjs/chunks/{sseStore-Dff-e9q1.js → sseStore-B-0NYziZ.js} +3 -3
- package/dist/cjs/chunks/{uploads-worker-DDn3aQ3U.js → uploads-worker-wiEYAP3-.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-vxO-F8Mx.js → uploadsStore-DiER7z5_.js} +2 -2
- package/dist/cjs/chunks/{viewState-BX4i2_kH.js → viewState-ktYEaZW2.js} +5 -5
- package/dist/cjs/chunks/{volumeStore-Cbp7J53V.js → volumeStore-Dez02JPh.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-BzNARlM8.js → webRTCStore-CAt0Ly4R.js} +2 -2
- package/dist/cjs/chunks/{windowStore-CGzmuuZy.js → windowStore-BYkEn0kO.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 +2 -2
- 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 +8 -8
- 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 -12
- package/dist/cjs/components/VideoController/index.js +10 -10
- package/dist/cjs/hooks/useActiveTab.js +28 -0
- 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 +12 -11
- 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 +9 -0
- 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 +12 -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-lHwXYyfI.mjs → AudioBubble-ck1gSxtM.mjs} +7 -7
- package/dist/esm/chunks/{Avatar-Bq5Kq4Dv.mjs → Avatar-vhBRrvQP.mjs} +2 -2
- package/dist/esm/chunks/{AvatarGroup-CVr2k54D.mjs → AvatarGroup-DDPn1trz.mjs} +2 -2
- package/dist/esm/chunks/{Badge-C3B2kCUz.mjs → Badge-CntS4K1P.mjs} +1 -1
- package/dist/esm/chunks/{Button-DOAQpqkP.mjs → Button-DVVXYB5E.mjs} +6 -6
- package/dist/esm/chunks/{ButtonBar-C-v0Qiph.mjs → ButtonBar-NduUKEhd.mjs} +3 -3
- package/dist/esm/chunks/{Camera-Cs41HnCU.mjs → Camera-Cofsfiqg.mjs} +9 -9
- package/dist/esm/chunks/{CheckBox-r9uvftfJ.mjs → CheckBox-Du4u1Eva.mjs} +3 -3
- package/dist/esm/chunks/{Chip-pkieLAGf.mjs → Chip-stmVXz5P.mjs} +4 -4
- package/dist/esm/chunks/{DivInput-CBzp2PQN.mjs → DivInput-CGAqMs0y.mjs} +2 -2
- package/dist/esm/chunks/{Dot-DlXhSzum.mjs → Dot-CExdhu0z.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-CYiU6usT.mjs → DrggablePanel-CCZWzCE4.mjs} +6 -6
- package/dist/esm/chunks/{DropDown-DCReAR0G.mjs → DropDown-REkWym1V.mjs} +3 -3
- package/dist/esm/chunks/{ErrorSummary-DBKXkHjW.mjs → ErrorSummary-CnApLAG8.mjs} +6 -6
- package/dist/esm/chunks/{FileIcon--z38OolT.mjs → FileIcon-CJa41GGE.mjs} +6 -6
- package/dist/esm/chunks/{FileList-CcYWB5So.mjs → FileList-CtPtwFg0.mjs} +5 -5
- package/dist/esm/chunks/{FlexDiv-C_glR48F.mjs → FlexDiv-DfCUyRsq.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-pl8vNe54.mjs → Grouper-C2ekOKk-.mjs} +7 -7
- package/dist/esm/chunks/{Icon-B0omwLdy.mjs → Icon-DYv9sj3v.mjs} +6 -6
- package/dist/esm/chunks/{IconButton-BmaPhYbz.mjs → IconButton-DUz8Pz1Z.mjs} +5 -5
- package/dist/esm/chunks/{IndexedDB-PThzgk-P.mjs → IndexedDB-CO2IHWQq.mjs} +1 -1
- package/dist/esm/chunks/{Label-DtpPad33.mjs → Label-osW2bH9O.mjs} +2 -2
- package/dist/esm/chunks/{Level-ChWRe8Zi.mjs → Level-DbvGSfLq.mjs} +4 -4
- package/dist/esm/chunks/{Modal-BupIFts5.mjs → Modal-Be3CsAWQ.mjs} +5 -5
- package/dist/esm/chunks/{ModalController-B41uWv1i.mjs → ModalController-DcZ5fgr-.mjs} +5 -5
- package/dist/esm/chunks/{Overlay-llH2XkgJ.mjs → Overlay-B8l0rD6j.mjs} +1 -1
- package/dist/esm/chunks/{Pager-CQfKpLRA.mjs → Pager-BkWiP2if.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-tZ_nWPPA.mjs → ProgressIndicator-DPfGlu5w.mjs} +6 -6
- package/dist/esm/chunks/{PromptInput-BVbLYT3n.mjs → PromptInput-Dn2jmUeX.mjs} +8 -8
- package/dist/esm/chunks/{RadioButton-V963ISIO.mjs → RadioButton-DsZpFQlj.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-Bxs7MDXi.mjs → RadioButtonList-3SGXzY-l.mjs} +3 -3
- package/dist/esm/chunks/{Slider-Dm0EUbxT.mjs → Slider-bAlRcnr5.mjs} +7 -7
- package/dist/esm/chunks/{Spacer-BXklm0is.mjs → Spacer-Dw1R_QS-.mjs} +1 -1
- package/dist/esm/chunks/{Switch-BLK7ZAfp.mjs → Switch-YtBkB2gF.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-BmiPWEgw.mjs → TabBar-Bk1kOBSG.mjs} +10 -10
- package/dist/esm/chunks/{TextArea-Dq27W5iX.mjs → TextArea-DYim_fwG.mjs} +2 -2
- package/dist/esm/chunks/{TextField-CMRKik7J.mjs → TextField-CuUvgXoc.mjs} +9 -9
- package/dist/esm/chunks/{Tip-D0jmk521.mjs → Tip-CO5yFUi-.mjs} +2 -2
- package/dist/esm/chunks/{Toast-BHkhMttI.mjs → Toast-jV_6b03p.mjs} +8 -8
- package/dist/esm/chunks/{ToggleButton-CXyf2gcN.mjs → ToggleButton-CZbTyzZ7.mjs} +2 -2
- package/dist/esm/chunks/{UploadArea-DIs23NU0.mjs → UploadArea-BjSr0-kl.mjs} +4 -4
- package/dist/esm/chunks/{Video-BJ0gcBel.mjs → Video-D5owl4GM.mjs} +6 -6
- package/dist/esm/chunks/{VideoController-u2bIgPdx.mjs → VideoController-BMm4f486.mjs} +8 -8
- package/dist/esm/chunks/{WSConnection-CcGt3LkF.mjs → WSConnection-BkG6pECQ.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-BPywg9cu.mjs → WebRTCConnection-BMc3ILmW.mjs} +1 -1
- package/dist/esm/chunks/activeTabStore-DR2HKd1h.mjs +33 -0
- package/dist/esm/chunks/{browserChannelsStore-CsgSxQ1a.mjs → browserChannelsStore-BBnRAxaL.mjs} +2 -2
- package/dist/esm/chunks/{localDBStore-Ba8BkN1-.mjs → localDBStore-ChLj2J2R.mjs} +3 -3
- package/dist/esm/chunks/{microphoneStore-BMtJqEO9.mjs → microphoneStore-CKLPc5zm.mjs} +1 -1
- package/dist/esm/chunks/{misc-BOsYupnl.mjs → misc-Vjo15VLp.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-Dmv5jCJm.mjs → sseStore-C0XwLPfn.mjs} +3 -3
- package/dist/esm/chunks/{uploads-worker-BsD4-nWC.mjs → uploads-worker-DV0Cm3VQ.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-Wb6VPPKx.mjs → uploadsStore-DyYma52Z.mjs} +1 -1
- package/dist/esm/chunks/{viewState-N_bFO6BX.mjs → viewState-y3yZZZDC.mjs} +8 -8
- package/dist/esm/chunks/{volumeStore-BsaVyLo-.mjs → volumeStore-CicDxCvO.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-BTg7uPMp.mjs → webRTCStore-Dr5M8DFU.mjs} +3 -3
- package/dist/esm/chunks/{windowStore-BWDOondh.mjs → windowStore-OW9W5zAw.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 +2 -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 +12 -12
- 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 +14 -14
- 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 +14 -14
- package/dist/esm/components/UploadArea/index.mjs +12 -12
- package/dist/esm/components/Video/index.mjs +18 -18
- package/dist/esm/components/VideoController/index.mjs +15 -15
- package/dist/esm/hooks/useActiveTab.mjs +28 -0
- 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 +12 -8
- package/dist/esm/index.mjs +63 -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 +3 -0
- 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 +20 -18
- 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 +2241 -2241
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useActiveTab/useActiveTab.d.ts +7 -0
- package/dist/types/hooks/useActiveTab/useActiveTab.test.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 +2 -1
- package/dist/types/stores/activeTab/_types.d.ts +8 -0
- package/dist/types/stores/activeTab/activeTabStore.d.ts +12 -0
- package/dist/types/stores/activeTab/activeTabStore.test.d.ts +1 -0
- package/dist/types/stores/activeTab/index.d.ts +2 -0
- package/dist/types/stores/index.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/cjs/chunks/{MdStreamBuffer-Bboz_R1W.js → MdStreamBuffer-pKVX0tZt.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-hbxP3fgo.js → SSEConnection-cJuY1bye.js} +0 -0
- /package/dist/cjs/chunks/{_types-BRInW0RE.js → _types-xGDmxITu.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-CwFeZxH-.js → audioVisualizer-CLqdv2K-.js} +0 -0
- /package/dist/cjs/chunks/{broadcastChannel-B6awnTgY.js → broadcastChannel-Bf-u0RnC.js} +0 -0
- /package/dist/cjs/chunks/{colors-Dy8ICsNh.js → colors-Yb-BONG0.js} +0 -0
- /package/dist/cjs/chunks/{debounce-CnWuEG84.js → debounce-B1046f-_.js} +0 -0
- /package/dist/cjs/chunks/{magic-string.es-BdlT6gR0.js → magic-string.es-CR7TWHhS.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-CU1SPHib.js → modalStore-DwgyWAOV.js} +0 -0
- /package/dist/cjs/chunks/{rafThrottle-C3Z36lSX.js → rafThrottle-68q3wWGh.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-DNxk8IrJ.js → sharedTypes-CKKHnYKP.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-BWWEZ6_r.js → tipStore-CZDr2c8Z.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-BsIEj1A9.js → toastStore-CJJRSAs2.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-BrJYtQdP.js → tslib.es6-CxZHzsEo.js} +0 -0
- /package/dist/cjs/chunks/{videoStore-Dk5FGyO5.js → videoStore-CG5H5-lr.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-DVDrRHm9.mjs → MdStreamBuffer-ZUWjyTTg.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-BBFLpfjp.mjs → SSEConnection-3DCZcriT.mjs} +0 -0
- /package/dist/esm/chunks/{_types-CgRIB9Ze.mjs → _types-DBTuETEQ.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-C9AEPOBM.mjs → audioVisualizer-BxszDYyy.mjs} +0 -0
- /package/dist/esm/chunks/{broadcastChannel-COaDB1zC.mjs → broadcastChannel-_Q346Oc1.mjs} +0 -0
- /package/dist/esm/chunks/{colors-DdmyFyR2.mjs → colors-Cpt08T7U.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-CIWvxa5-.mjs → debounce-D_IO1tKP.mjs} +0 -0
- /package/dist/esm/chunks/{magic-string.es-Bof2T5vE.mjs → magic-string.es-LOpujL9L.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-Cb9QkEpr.mjs → modalStore-CMO5OJNA.mjs} +0 -0
- /package/dist/esm/chunks/{rafThrottle-Bh3QSrUT.mjs → rafThrottle-BMAGudCU.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-DlKekiim.mjs → sharedTypes-DRYdKvBH.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-BV528MQs.mjs → tipStore-C2MdlITu.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-C_Sj0zgP.mjs → toastStore-bClN8hti.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-C1OKXg6I.mjs → tslib.es6-UNsbHCvA.mjs} +0 -0
- /package/dist/esm/chunks/{videoStore-CZmDvdxC.mjs → videoStore-DbLjS_2T.mjs} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { T as ToggleButton } from "../../chunks/ToggleButton-
|
|
1
|
+
export { T as ToggleButton } from "../../chunks/ToggleButton-CZbTyzZ7.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-DUz8Pz1Z.mjs";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/tslib.es6-
|
|
9
|
+
import "../../chunks/tslib.es6-UNsbHCvA.mjs";
|
|
10
10
|
|
|
11
11
|
import "motion/react";
|
|
12
12
|
|
|
13
13
|
import "../../theme/corners.mjs";
|
|
14
14
|
|
|
15
|
-
import "../../chunks/Badge-
|
|
15
|
+
import "../../chunks/Badge-CntS4K1P.mjs";
|
|
16
16
|
|
|
17
|
-
import "../../chunks/Dot-
|
|
17
|
+
import "../../chunks/Dot-CExdhu0z.mjs";
|
|
18
18
|
|
|
19
|
-
import "../../chunks/Icon-
|
|
19
|
+
import "../../chunks/Icon-DYv9sj3v.mjs";
|
|
20
20
|
|
|
21
21
|
import "../../hooks/useTheme.mjs";
|
|
22
22
|
|
|
@@ -34,22 +34,22 @@ import "../../theme/type.mjs";
|
|
|
34
34
|
|
|
35
35
|
import "../../hooks/useObserveTheme.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/misc-
|
|
37
|
+
import "../../chunks/misc-Vjo15VLp.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/broadcastChannel-
|
|
39
|
+
import "../../chunks/broadcastChannel-_Q346Oc1.mjs";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/webRTCStore-
|
|
41
|
+
import "../../chunks/webRTCStore-Dr5M8DFU.mjs";
|
|
42
42
|
|
|
43
43
|
import "zustand";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/WebRTCConnection-
|
|
45
|
+
import "../../chunks/WebRTCConnection-BMc3ILmW.mjs";
|
|
46
46
|
|
|
47
|
-
import "../../chunks/microphoneStore-
|
|
47
|
+
import "../../chunks/microphoneStore-CKLPc5zm.mjs";
|
|
48
48
|
|
|
49
|
-
import "../../chunks/volumeStore-
|
|
49
|
+
import "../../chunks/volumeStore-CicDxCvO.mjs";
|
|
50
50
|
|
|
51
51
|
import "../../hooks/useWindow.mjs";
|
|
52
52
|
|
|
53
|
-
import "../../chunks/sharedTypes-
|
|
53
|
+
import "../../chunks/sharedTypes-DRYdKvBH.mjs";
|
|
54
54
|
|
|
55
|
-
import "../../chunks/Label-
|
|
55
|
+
import "../../chunks/Label-osW2bH9O.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-BjSr0-kl.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-Vjo15VLp.mjs";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/tslib.es6-
|
|
11
|
+
import "../../chunks/tslib.es6-UNsbHCvA.mjs";
|
|
12
12
|
|
|
13
|
-
import "../../chunks/Icon-
|
|
13
|
+
import "../../chunks/Icon-DYv9sj3v.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-_Q346Oc1.mjs";
|
|
32
32
|
|
|
33
|
-
import "../../chunks/webRTCStore-
|
|
33
|
+
import "../../chunks/webRTCStore-Dr5M8DFU.mjs";
|
|
34
34
|
|
|
35
35
|
import "zustand";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/WebRTCConnection-
|
|
37
|
+
import "../../chunks/WebRTCConnection-BMc3ILmW.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/microphoneStore-
|
|
39
|
+
import "../../chunks/microphoneStore-CKLPc5zm.mjs";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/volumeStore-
|
|
41
|
+
import "../../chunks/volumeStore-CicDxCvO.mjs";
|
|
42
42
|
|
|
43
43
|
import "../../hooks/useWindow.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/ProgressIndicator-
|
|
45
|
+
import "../../chunks/ProgressIndicator-DPfGlu5w.mjs";
|
|
46
46
|
|
|
47
47
|
import "motion/react";
|
|
48
48
|
|
|
49
|
-
import "../../chunks/FileList-
|
|
49
|
+
import "../../chunks/FileList-CtPtwFg0.mjs";
|
|
50
50
|
|
|
51
|
-
import "../../chunks/FileIcon
|
|
51
|
+
import "../../chunks/FileIcon-CJa41GGE.mjs";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export { V as Video } from "../../chunks/Video-
|
|
1
|
+
export { V as Video } from "../../chunks/Video-D5owl4GM.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-UNsbHCvA.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
import "react";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/misc-
|
|
9
|
+
import "../../chunks/misc-Vjo15VLp.mjs";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/IconButton-
|
|
11
|
+
import "../../chunks/IconButton-DUz8Pz1Z.mjs";
|
|
12
12
|
|
|
13
13
|
import "motion/react";
|
|
14
14
|
|
|
15
15
|
import "../../theme/corners.mjs";
|
|
16
16
|
|
|
17
|
-
import "../../chunks/Badge-
|
|
17
|
+
import "../../chunks/Badge-CntS4K1P.mjs";
|
|
18
18
|
|
|
19
|
-
import "../../chunks/Dot-
|
|
19
|
+
import "../../chunks/Dot-CExdhu0z.mjs";
|
|
20
20
|
|
|
21
|
-
import "../../chunks/Icon-
|
|
21
|
+
import "../../chunks/Icon-DYv9sj3v.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-_Q346Oc1.mjs";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/webRTCStore-
|
|
41
|
+
import "../../chunks/webRTCStore-Dr5M8DFU.mjs";
|
|
42
42
|
|
|
43
43
|
import "zustand";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/WebRTCConnection-
|
|
45
|
+
import "../../chunks/WebRTCConnection-BMc3ILmW.mjs";
|
|
46
46
|
|
|
47
|
-
import "../../chunks/microphoneStore-
|
|
47
|
+
import "../../chunks/microphoneStore-CKLPc5zm.mjs";
|
|
48
48
|
|
|
49
|
-
import "../../chunks/volumeStore-
|
|
49
|
+
import "../../chunks/volumeStore-CicDxCvO.mjs";
|
|
50
50
|
|
|
51
51
|
import "../../hooks/useWindow.mjs";
|
|
52
52
|
|
|
53
|
-
import "../../chunks/sharedTypes-
|
|
53
|
+
import "../../chunks/sharedTypes-DRYdKvBH.mjs";
|
|
54
54
|
|
|
55
|
-
import "../../chunks/ProgressIndicator-
|
|
55
|
+
import "../../chunks/ProgressIndicator-DPfGlu5w.mjs";
|
|
56
56
|
|
|
57
|
-
import "../../chunks/Slider-
|
|
57
|
+
import "../../chunks/Slider-bAlRcnr5.mjs";
|
|
58
58
|
|
|
59
|
-
import "../../chunks/debounce-
|
|
59
|
+
import "../../chunks/debounce-D_IO1tKP.mjs";
|
|
60
60
|
|
|
61
61
|
import "../../hooks/useObserveResize.mjs";
|
|
62
62
|
|
|
63
|
-
import "../../chunks/ToggleButton-
|
|
63
|
+
import "../../chunks/ToggleButton-CZbTyzZ7.mjs";
|
|
64
64
|
|
|
65
|
-
import "../../chunks/Label-
|
|
65
|
+
import "../../chunks/Label-osW2bH9O.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { V as VideoController } from "../../chunks/VideoController-
|
|
1
|
+
export { V as VideoController } from "../../chunks/VideoController-BMm4f486.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-UNsbHCvA.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-CKLPc5zm.mjs";
|
|
12
12
|
|
|
13
13
|
import "zustand";
|
|
14
14
|
|
|
15
|
-
import "../../chunks/volumeStore-
|
|
15
|
+
import "../../chunks/volumeStore-CicDxCvO.mjs";
|
|
16
16
|
|
|
17
|
-
import "../../chunks/webRTCStore-
|
|
17
|
+
import "../../chunks/webRTCStore-Dr5M8DFU.mjs";
|
|
18
18
|
|
|
19
|
-
import "../../chunks/WebRTCConnection-
|
|
19
|
+
import "../../chunks/WebRTCConnection-BMc3ILmW.mjs";
|
|
20
20
|
|
|
21
|
-
import "../../chunks/broadcastChannel-
|
|
21
|
+
import "../../chunks/broadcastChannel-_Q346Oc1.mjs";
|
|
22
22
|
|
|
23
23
|
import "../../theme/corners.mjs";
|
|
24
24
|
|
|
25
|
-
import "../../chunks/misc-
|
|
25
|
+
import "../../chunks/misc-Vjo15VLp.mjs";
|
|
26
26
|
|
|
27
|
-
import "../../chunks/IconButton-
|
|
27
|
+
import "../../chunks/IconButton-DUz8Pz1Z.mjs";
|
|
28
28
|
|
|
29
|
-
import "../../chunks/Badge-
|
|
29
|
+
import "../../chunks/Badge-CntS4K1P.mjs";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/Dot-
|
|
31
|
+
import "../../chunks/Dot-CExdhu0z.mjs";
|
|
32
32
|
|
|
33
|
-
import "../../chunks/Icon-
|
|
33
|
+
import "../../chunks/Icon-DYv9sj3v.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-DRYdKvBH.mjs";
|
|
54
54
|
|
|
55
|
-
import "../../chunks/Overlay-
|
|
55
|
+
import "../../chunks/Overlay-B8l0rD6j.mjs";
|
|
56
56
|
|
|
57
|
-
import "../../chunks/videoStore-
|
|
57
|
+
import "../../chunks/videoStore-DbLjS_2T.mjs";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
|
|
4
|
+
/** Observes document visibility and focus. Defaults to hidden and unfocused until mounted. */ function useActiveTab() {
|
|
5
|
+
const [state, setState] = useState({
|
|
6
|
+
isActiveTab: !1,
|
|
7
|
+
isTabFocused: !1,
|
|
8
|
+
visibilityState: "hidden"
|
|
9
|
+
});
|
|
10
|
+
return useEffect(() => {
|
|
11
|
+
if ("undefined" == typeof document) return;
|
|
12
|
+
const target = document, win = target.defaultView, handleChange = () => {
|
|
13
|
+
const visibilityState = target.visibilityState, isActiveTab = "visible" === visibilityState, isTabFocused = target.hasFocus();
|
|
14
|
+
setState(previous => previous.visibilityState === visibilityState && previous.isTabFocused === isTabFocused ? previous : {
|
|
15
|
+
isActiveTab: isActiveTab,
|
|
16
|
+
isTabFocused: isTabFocused,
|
|
17
|
+
visibilityState: visibilityState
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
return target.addEventListener("visibilitychange", handleChange), null == win || win.addEventListener("focus", handleChange),
|
|
21
|
+
null == win || win.addEventListener("blur", handleChange), handleChange(), () => {
|
|
22
|
+
target.removeEventListener("visibilitychange", handleChange), null == win || win.removeEventListener("focus", handleChange),
|
|
23
|
+
null == win || win.removeEventListener("blur", handleChange);
|
|
24
|
+
};
|
|
25
|
+
}, []), state;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { useActiveTab };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { _ as __awaiter } from "../chunks/tslib.es6-
|
|
2
|
+
import { _ as __awaiter } from "../chunks/tslib.es6-UNsbHCvA.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-Dr5M8DFU.mjs";
|
|
7
7
|
|
|
8
|
-
import { q as useProcessedMicStream } from "../chunks/microphoneStore-
|
|
8
|
+
import { q as useProcessedMicStream } from "../chunks/microphoneStore-CKLPc5zm.mjs";
|
|
9
9
|
|
|
10
|
-
import { f as useVolume } from "../chunks/volumeStore-
|
|
10
|
+
import { f as useVolume } from "../chunks/volumeStore-CicDxCvO.mjs";
|
|
11
11
|
|
|
12
12
|
import "zustand";
|
|
13
13
|
|
|
14
|
-
import "../chunks/WebRTCConnection-
|
|
14
|
+
import "../chunks/WebRTCConnection-BMc3ILmW.mjs";
|
|
15
15
|
|
|
16
|
-
import "../chunks/broadcastChannel-
|
|
16
|
+
import "../chunks/broadcastChannel-_Q346Oc1.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-UNsbHCvA.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-Vjo15VLp.mjs";
|
|
7
7
|
|
|
8
|
-
import "../chunks/broadcastChannel-
|
|
8
|
+
import "../chunks/broadcastChannel-_Q346Oc1.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-UNsbHCvA.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-UNsbHCvA.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-ZUWjyTTg.mjs";
|
|
7
7
|
|
|
8
|
-
import "../chunks/broadcastChannel-
|
|
8
|
+
import "../chunks/broadcastChannel-_Q346Oc1.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-Vjo15VLp.mjs";
|
|
5
5
|
|
|
6
|
-
import "../chunks/tslib.es6-
|
|
6
|
+
import "../chunks/tslib.es6-UNsbHCvA.mjs";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Hook to log component renders, mounts, and unmounts
|
package/dist/esm/hooks.mjs
CHANGED
|
@@ -28,6 +28,10 @@ export { defaultOptions as defaultIntersectingOptions, useIntersecting } from ".
|
|
|
28
28
|
|
|
29
29
|
export { useClipboard } from "./hooks/useClipboard.mjs";
|
|
30
30
|
|
|
31
|
+
export { useActiveTab } from "./hooks/useActiveTab.mjs";
|
|
32
|
+
|
|
33
|
+
export { useInfiniteScroll } from "./hooks/useInfiniteScroll.mjs";
|
|
34
|
+
|
|
31
35
|
import "react";
|
|
32
36
|
|
|
33
37
|
import "./providers/ThemeProvider.mjs";
|
|
@@ -46,20 +50,20 @@ import "./theme/motion.mjs";
|
|
|
46
50
|
|
|
47
51
|
import "./theme/type.mjs";
|
|
48
52
|
|
|
49
|
-
import "./chunks/tslib.es6-
|
|
53
|
+
import "./chunks/tslib.es6-UNsbHCvA.mjs";
|
|
50
54
|
|
|
51
|
-
import "./chunks/MdStreamBuffer-
|
|
55
|
+
import "./chunks/MdStreamBuffer-ZUWjyTTg.mjs";
|
|
52
56
|
|
|
53
|
-
import "./chunks/broadcastChannel-
|
|
57
|
+
import "./chunks/broadcastChannel-_Q346Oc1.mjs";
|
|
54
58
|
|
|
55
|
-
import "./chunks/webRTCStore-
|
|
59
|
+
import "./chunks/webRTCStore-Dr5M8DFU.mjs";
|
|
56
60
|
|
|
57
61
|
import "zustand";
|
|
58
62
|
|
|
59
|
-
import "./chunks/WebRTCConnection-
|
|
63
|
+
import "./chunks/WebRTCConnection-BMc3ILmW.mjs";
|
|
60
64
|
|
|
61
|
-
import "./chunks/microphoneStore-
|
|
65
|
+
import "./chunks/microphoneStore-CKLPc5zm.mjs";
|
|
62
66
|
|
|
63
|
-
import "./chunks/volumeStore-
|
|
67
|
+
import "./chunks/volumeStore-CicDxCvO.mjs";
|
|
64
68
|
|
|
65
|
-
import "./chunks/misc-
|
|
69
|
+
import "./chunks/misc-Vjo15VLp.mjs";
|