@stream-io/video-react-native-sdk 0.0.10 → 0.0.12
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/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/dist/commonjs/components/Call/CallContent/CallContent.js +133 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -0
- package/dist/commonjs/components/Call/CallContent/index.js +17 -0
- package/dist/commonjs/components/Call/CallContent/index.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +61 -0
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/CallControls.js +52 -0
- package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +77 -0
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ChatButton.js +86 -0
- package/dist/commonjs/components/Call/CallControls/ChatButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +77 -0
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +44 -0
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js +34 -0
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js +46 -0
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ReactionButton.js +71 -0
- package/dist/commonjs/components/Call/CallControls/ReactionButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +74 -0
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +68 -0
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +58 -0
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +58 -0
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +68 -0
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +56 -0
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/index.js +160 -0
- package/dist/commonjs/components/Call/CallControls/index.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +143 -0
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -0
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +76 -0
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -0
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +101 -0
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -0
- package/dist/commonjs/components/Call/CallLayout/index.js +28 -0
- package/dist/commonjs/components/Call/CallLayout/index.js.map +1 -0
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +241 -0
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -0
- package/dist/commonjs/components/Call/CallParticipantsList/index.js +17 -0
- package/dist/commonjs/components/Call/CallParticipantsList/index.js.map +1 -0
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js +121 -0
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js.map +1 -0
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js +107 -0
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js.map +1 -0
- package/dist/commonjs/components/Call/CallTopView/index.js +28 -0
- package/dist/commonjs/components/Call/CallTopView/index.js.map +1 -0
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +73 -0
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -0
- package/dist/commonjs/components/Call/Lobby/Lobby.js +185 -0
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -0
- package/dist/commonjs/components/Call/Lobby/index.js +28 -0
- package/dist/commonjs/components/Call/Lobby/index.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +118 -0
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/JoiningCallIndicator.js +33 -0
- package/dist/commonjs/components/Call/RingingCallContent/JoiningCallIndicator.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +110 -0
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +72 -0
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +117 -0
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/index.js +39 -0
- package/dist/commonjs/components/Call/RingingCallContent/index.js.map +1 -0
- package/dist/commonjs/components/Call/index.js +83 -0
- package/dist/commonjs/components/Call/index.js.map +1 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +170 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +154 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js +74 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js +11 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +150 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +146 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +98 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +83 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +63 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +90 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js +193 -0
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/index.js +72 -0
- package/dist/commonjs/components/Participant/ParticipantView/index.js.map +1 -0
- package/dist/commonjs/components/Participant/index.js +28 -0
- package/dist/commonjs/components/Participant/index.js.map +1 -0
- package/dist/commonjs/components/index.js +39 -0
- package/dist/commonjs/components/index.js.map +1 -0
- package/dist/commonjs/components/utility/Avatar.js +77 -0
- package/dist/commonjs/components/utility/Avatar.js.map +1 -0
- package/dist/commonjs/components/utility/index.js +17 -0
- package/dist/commonjs/components/utility/index.js.map +1 -0
- package/dist/commonjs/constants/TestIds.js +40 -0
- package/dist/commonjs/constants/TestIds.js.map +1 -0
- package/dist/commonjs/constants/index.js +38 -0
- package/dist/commonjs/constants/index.js.map +1 -0
- package/dist/commonjs/contexts/StreamVideoContext.js +111 -0
- package/dist/commonjs/contexts/StreamVideoContext.js.map +1 -0
- package/dist/commonjs/contexts/ThemeContext.js +59 -0
- package/dist/commonjs/contexts/ThemeContext.js.map +1 -0
- package/dist/commonjs/contexts/index.js +28 -0
- package/dist/commonjs/contexts/index.js.map +1 -0
- package/dist/commonjs/hooks/index.js +61 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js +32 -0
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js.map +1 -0
- package/dist/commonjs/hooks/push/index.js +22 -0
- package/dist/commonjs/hooks/push/index.js.map +1 -0
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +28 -0
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -0
- package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js +69 -0
- package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -0
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +123 -0
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -0
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +89 -0
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -0
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +68 -0
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -0
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +122 -0
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -0
- package/dist/commonjs/hooks/useIncallManager.js +32 -0
- package/dist/commonjs/hooks/useIncallManager.js.map +1 -0
- package/dist/commonjs/hooks/usePermissionNotification.js +44 -0
- package/dist/commonjs/hooks/usePermissionNotification.js.map +1 -0
- package/dist/commonjs/hooks/usePermissionRequest.js +68 -0
- package/dist/commonjs/hooks/usePermissionRequest.js.map +1 -0
- package/dist/commonjs/icons/Back.js +22 -0
- package/dist/commonjs/icons/Back.js.map +1 -0
- package/dist/commonjs/icons/CameraSwitch.js +22 -0
- package/dist/commonjs/icons/CameraSwitch.js.map +1 -0
- package/dist/commonjs/icons/Chat.js +22 -0
- package/dist/commonjs/icons/Chat.js.map +1 -0
- package/dist/commonjs/icons/Mic.js +25 -0
- package/dist/commonjs/icons/Mic.js.map +1 -0
- package/dist/commonjs/icons/MicOff.js +22 -0
- package/dist/commonjs/icons/MicOff.js.map +1 -0
- package/dist/commonjs/icons/Participants.js +24 -0
- package/dist/commonjs/icons/Participants.js.map +1 -0
- package/dist/commonjs/icons/Phone.js +22 -0
- package/dist/commonjs/icons/Phone.js.map +1 -0
- package/dist/commonjs/icons/PhoneDown.js +24 -0
- package/dist/commonjs/icons/PhoneDown.js.map +1 -0
- package/dist/commonjs/icons/PinVertical.js +22 -0
- package/dist/commonjs/icons/PinVertical.js.map +1 -0
- package/dist/commonjs/icons/Reaction.js +22 -0
- package/dist/commonjs/icons/Reaction.js.map +1 -0
- package/dist/commonjs/icons/ScreenShare.js +38 -0
- package/dist/commonjs/icons/ScreenShare.js.map +1 -0
- package/dist/commonjs/icons/Settings.js +24 -0
- package/dist/commonjs/icons/Settings.js.map +1 -0
- package/dist/commonjs/icons/Spotlight.js +24 -0
- package/dist/commonjs/icons/Spotlight.js.map +1 -0
- package/dist/commonjs/icons/ThreeDots.js +34 -0
- package/dist/commonjs/icons/ThreeDots.js.map +1 -0
- package/dist/commonjs/icons/TopViewBackground.js +38 -0
- package/dist/commonjs/icons/TopViewBackground.js.map +1 -0
- package/dist/commonjs/icons/Video.js +22 -0
- package/dist/commonjs/icons/Video.js.map +1 -0
- package/dist/commonjs/icons/VideoSlash.js +24 -0
- package/dist/commonjs/icons/VideoSlash.js.map +1 -0
- package/dist/commonjs/icons/index.js +182 -0
- package/dist/commonjs/icons/index.js.map +1 -0
- package/dist/commonjs/index.js +172 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/providers/MediaStreamManagement.js +148 -0
- package/dist/commonjs/providers/MediaStreamManagement.js.map +1 -0
- package/dist/commonjs/providers/StreamCall.js +49 -0
- package/dist/commonjs/providers/StreamCall.js.map +1 -0
- package/dist/commonjs/providers/StreamVideo.js +76 -0
- package/dist/commonjs/providers/StreamVideo.js.map +1 -0
- package/dist/commonjs/providers/index.js +39 -0
- package/dist/commonjs/providers/index.js.map +1 -0
- package/dist/commonjs/theme/colors.js +51 -0
- package/dist/commonjs/theme/colors.js.map +1 -0
- package/dist/commonjs/theme/constants.js +59 -0
- package/dist/commonjs/theme/constants.js.map +1 -0
- package/dist/commonjs/theme/index.js +28 -0
- package/dist/commonjs/theme/index.js.map +1 -0
- package/dist/commonjs/theme/theme.js +230 -0
- package/dist/commonjs/theme/theme.js.map +1 -0
- package/dist/commonjs/theme/types.js +6 -0
- package/dist/commonjs/theme/types.js.map +1 -0
- package/dist/commonjs/translations/en.json +14 -0
- package/dist/commonjs/translations/index.js +13 -0
- package/dist/commonjs/translations/index.js.map +1 -0
- package/dist/commonjs/utils/StreamVideoRN/index.js +71 -0
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -0
- package/dist/commonjs/utils/StreamVideoRN/types.js +6 -0
- package/dist/commonjs/utils/StreamVideoRN/types.js.map +1 -0
- package/dist/commonjs/utils/hooks/index.js +39 -0
- package/dist/commonjs/utils/hooks/index.js.map +1 -0
- package/dist/commonjs/utils/hooks/useAppStateListener.js +43 -0
- package/dist/commonjs/utils/hooks/useAppStateListener.js.map +1 -0
- package/dist/commonjs/utils/hooks/useDebouncedValue.js +24 -0
- package/dist/commonjs/utils/hooks/useDebouncedValue.js.map +1 -0
- package/dist/commonjs/utils/hooks/usePrevious.js +16 -0
- package/dist/commonjs/utils/hooks/usePrevious.js.map +1 -0
- package/dist/commonjs/utils/index.js +52 -0
- package/dist/commonjs/utils/index.js.map +1 -0
- package/dist/commonjs/utils/internal/optionalLibs.js +31 -0
- package/dist/commonjs/utils/internal/optionalLibs.js.map +1 -0
- package/dist/commonjs/utils/push/android.js +146 -0
- package/dist/commonjs/utils/push/android.js.map +1 -0
- package/dist/commonjs/utils/push/ios.js +46 -0
- package/dist/commonjs/utils/push/ios.js.map +1 -0
- package/dist/commonjs/utils/push/libs.js +39 -0
- package/dist/commonjs/utils/push/libs.js.map +1 -0
- package/dist/commonjs/utils/push/rxSubjects.js +49 -0
- package/dist/commonjs/utils/push/rxSubjects.js.map +1 -0
- package/dist/commonjs/utils/push/utils.js +55 -0
- package/dist/commonjs/utils/push/utils.js.map +1 -0
- package/dist/commonjs/utils/setClientDetails.js +51 -0
- package/dist/commonjs/utils/setClientDetails.js.map +1 -0
- package/dist/commonjs/version.js +9 -0
- package/dist/commonjs/version.js.map +1 -0
- package/dist/module/components/Call/CallContent/CallContent.js +124 -0
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -0
- package/dist/module/components/Call/CallContent/index.js.map +1 -0
- package/dist/module/components/Call/CallControls/AcceptCallButton.js +54 -0
- package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/CallControls.js +45 -0
- package/dist/module/components/Call/CallControls/CallControls.js.map +1 -0
- package/dist/module/components/Call/CallControls/CallControlsButton.js +69 -0
- package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ChatButton.js +79 -0
- package/dist/module/components/Call/CallControls/ChatButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/HangupCallButton.js +69 -0
- package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/IncomingCallControls.js +37 -0
- package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -0
- package/dist/module/components/Call/CallControls/LobbyControls.js +27 -0
- package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -0
- package/dist/module/components/Call/CallControls/OutgoingCallControls.js +39 -0
- package/dist/module/components/Call/CallControls/OutgoingCallControls.js.map +1 -0
- package/dist/module/components/Call/CallControls/ReactionButton.js +63 -0
- package/dist/module/components/Call/CallControls/ReactionButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/RejectCallButton.js +67 -0
- package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +61 -0
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +51 -0
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +51 -0
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +61 -0
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +49 -0
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/index.js.map +1 -0
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +134 -0
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -0
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +69 -0
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -0
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +94 -0
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -0
- package/dist/module/components/Call/CallLayout/index.js.map +1 -0
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +232 -0
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -0
- package/dist/module/components/Call/CallParticipantsList/index.js.map +1 -0
- package/dist/module/components/Call/CallTopView/CallTopView.js +112 -0
- package/dist/module/components/Call/CallTopView/CallTopView.js.map +1 -0
- package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js +100 -0
- package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js.map +1 -0
- package/dist/module/components/Call/CallTopView/index.js.map +1 -0
- package/dist/module/components/Call/Lobby/JoinCallButton.js +66 -0
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -0
- package/dist/module/components/Call/Lobby/Lobby.js +178 -0
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -0
- package/dist/module/components/Call/Lobby/index.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +110 -0
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/JoiningCallIndicator.js +25 -0
- package/dist/module/components/Call/RingingCallContent/JoiningCallIndicator.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +103 -0
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +65 -0
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/UserInfo.js +109 -0
- package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/index.js.map +1 -0
- package/dist/module/components/Call/index.js.map +1 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +161 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +145 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js +64 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js +4 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -0
- package/dist/module/components/Participant/FloatingParticipantView/index.js +143 -0
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +139 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +91 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +75 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +56 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js +83 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js +184 -0
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/index.js.map +1 -0
- package/dist/module/components/Participant/index.js.map +1 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/utility/Avatar.js +70 -0
- package/dist/module/components/utility/Avatar.js.map +1 -0
- package/dist/module/components/utility/index.js.map +1 -0
- package/dist/module/constants/TestIds.js +30 -0
- package/dist/module/constants/TestIds.js.map +1 -0
- package/dist/module/constants/index.js +28 -0
- package/dist/module/constants/index.js.map +1 -0
- package/dist/module/contexts/StreamVideoContext.js +101 -0
- package/dist/module/contexts/StreamVideoContext.js.map +1 -0
- package/dist/module/contexts/ThemeContext.js +46 -0
- package/dist/module/contexts/ThemeContext.js.map +1 -0
- package/dist/module/contexts/index.js.map +1 -0
- package/dist/module/hooks/index.js.map +1 -0
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +26 -0
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -0
- package/dist/module/hooks/push/index.js +16 -0
- package/dist/module/hooks/push/index.js.map +1 -0
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +22 -0
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -0
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js +63 -0
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -0
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +116 -0
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -0
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +83 -0
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -0
- package/dist/module/hooks/push/useProcessPushCallEffect.js +61 -0
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -0
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +113 -0
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -0
- package/dist/module/hooks/useIncallManager.js +24 -0
- package/dist/module/hooks/useIncallManager.js.map +1 -0
- package/dist/module/hooks/usePermissionNotification.js +37 -0
- package/dist/module/hooks/usePermissionNotification.js.map +1 -0
- package/dist/module/hooks/usePermissionRequest.js +61 -0
- package/dist/module/hooks/usePermissionRequest.js.map +1 -0
- package/dist/module/icons/Back.js +14 -0
- package/dist/module/icons/Back.js.map +1 -0
- package/dist/module/icons/CameraSwitch.js +14 -0
- package/dist/module/icons/CameraSwitch.js.map +1 -0
- package/dist/module/icons/Chat.js +14 -0
- package/dist/module/icons/Chat.js.map +1 -0
- package/dist/module/icons/Mic.js +17 -0
- package/dist/module/icons/Mic.js.map +1 -0
- package/dist/module/icons/MicOff.js +14 -0
- package/dist/module/icons/MicOff.js.map +1 -0
- package/dist/module/icons/Participants.js +16 -0
- package/dist/module/icons/Participants.js.map +1 -0
- package/dist/module/icons/Phone.js +14 -0
- package/dist/module/icons/Phone.js.map +1 -0
- package/dist/module/icons/PhoneDown.js +16 -0
- package/dist/module/icons/PhoneDown.js.map +1 -0
- package/dist/module/icons/PinVertical.js +14 -0
- package/dist/module/icons/PinVertical.js.map +1 -0
- package/dist/module/icons/Reaction.js +14 -0
- package/dist/module/icons/Reaction.js.map +1 -0
- package/dist/module/icons/ScreenShare.js +28 -0
- package/dist/module/icons/ScreenShare.js.map +1 -0
- package/dist/module/icons/Settings.js +14 -0
- package/dist/module/icons/Settings.js.map +1 -0
- package/dist/module/icons/Spotlight.js +16 -0
- package/dist/module/icons/Spotlight.js.map +1 -0
- package/dist/module/icons/ThreeDots.js +26 -0
- package/dist/module/icons/ThreeDots.js.map +1 -0
- package/dist/module/icons/TopViewBackground.js +30 -0
- package/dist/module/icons/TopViewBackground.js.map +1 -0
- package/dist/module/icons/Video.js +14 -0
- package/dist/module/icons/Video.js.map +1 -0
- package/dist/module/icons/VideoSlash.js +16 -0
- package/dist/module/icons/VideoSlash.js.map +1 -0
- package/dist/module/icons/index.js.map +1 -0
- package/dist/module/index.js +35 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/providers/MediaStreamManagement.js +139 -0
- package/dist/module/providers/MediaStreamManagement.js.map +1 -0
- package/dist/module/providers/StreamCall.js +41 -0
- package/dist/module/providers/StreamCall.js.map +1 -0
- package/dist/module/providers/StreamVideo.js +66 -0
- package/dist/module/providers/StreamVideo.js.map +1 -0
- package/dist/module/providers/index.js.map +1 -0
- package/dist/module/theme/colors.js +44 -0
- package/dist/module/theme/colors.js.map +1 -0
- package/dist/module/theme/constants.js +53 -0
- package/dist/module/theme/constants.js.map +1 -0
- package/dist/module/theme/index.js +7 -0
- package/dist/module/theme/index.js.map +1 -0
- package/dist/module/theme/theme.js +223 -0
- package/dist/module/theme/theme.js.map +1 -0
- package/dist/module/theme/types.js.map +1 -0
- package/dist/module/translations/en.json +14 -0
- package/dist/module/translations/index.js +5 -0
- package/dist/module/translations/index.js.map +1 -0
- package/dist/module/utils/StreamVideoRN/index.js +64 -0
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -0
- package/dist/module/utils/StreamVideoRN/types.js.map +1 -0
- package/dist/module/utils/hooks/index.js.map +1 -0
- package/dist/module/utils/hooks/useAppStateListener.js +36 -0
- package/dist/module/utils/hooks/useAppStateListener.js.map +1 -0
- package/dist/module/utils/hooks/useDebouncedValue.js +19 -0
- package/dist/module/utils/hooks/useDebouncedValue.js.map +1 -0
- package/dist/module/utils/hooks/usePrevious.js +9 -0
- package/dist/module/utils/hooks/usePrevious.js.map +1 -0
- package/dist/module/utils/index.js +27 -0
- package/dist/module/utils/index.js.map +1 -0
- package/dist/module/utils/internal/optionalLibs.js +23 -0
- package/dist/module/utils/internal/optionalLibs.js.map +1 -0
- package/dist/module/utils/push/android.js +137 -0
- package/dist/module/utils/push/android.js.map +1 -0
- package/dist/module/utils/push/ios.js +38 -0
- package/dist/module/utils/push/ios.js.map +1 -0
- package/dist/module/utils/push/libs.js +31 -0
- package/dist/module/utils/push/libs.js.map +1 -0
- package/dist/module/utils/push/rxSubjects.js +39 -0
- package/dist/module/utils/push/rxSubjects.js.map +1 -0
- package/dist/module/utils/push/utils.js +47 -0
- package/dist/module/utils/push/utils.js.map +1 -0
- package/dist/module/utils/setClientDetails.js +44 -0
- package/dist/module/utils/setClientDetails.js.map +1 -0
- package/dist/module/version.js +2 -0
- package/dist/module/version.js.map +1 -0
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts +27 -0
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallContent/index.d.ts +2 -0
- package/dist/typescript/components/Call/CallContent/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts +23 -0
- package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/CallControls.d.ts +17 -0
- package/dist/typescript/components/Call/CallControls/CallControls.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts +37 -0
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ChatButton.d.ts +21 -0
- package/dist/typescript/components/Call/CallControls/ChatButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts +23 -0
- package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/LobbyControls.d.ts +5 -0
- package/dist/typescript/components/Call/CallControls/LobbyControls.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/OutgoingCallControls.d.ts +11 -0
- package/dist/typescript/components/Call/CallControls/OutgoingCallControls.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ReactionButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ReactionButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts +24 -0
- package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/index.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts +10 -0
- package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts +20 -0
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +17 -0
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallLayout/index.d.ts +3 -0
- package/dist/typescript/components/Call/CallLayout/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts +35 -0
- package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallParticipantsList/index.d.ts +2 -0
- package/dist/typescript/components/Call/CallParticipantsList/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts +29 -0
- package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts +11 -0
- package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallTopView/index.d.ts +3 -0
- package/dist/typescript/components/Call/CallTopView/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts +12 -0
- package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts +24 -0
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -0
- package/dist/typescript/components/Call/Lobby/index.d.ts +3 -0
- package/dist/typescript/components/Call/Lobby/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts +40 -0
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/JoiningCallIndicator.d.ts +2 -0
- package/dist/typescript/components/Call/RingingCallContent/JoiningCallIndicator.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts +22 -0
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts +35 -0
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/UserInfo.d.ts +14 -0
- package/dist/typescript/components/Call/RingingCallContent/UserInfo.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/index.d.ts +4 -0
- package/dist/typescript/components/Call/RingingCallContent/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/index.d.ts +8 -0
- package/dist/typescript/components/Call/index.d.ts.map +1 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts +4 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts +5 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts.map +1 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/common.d.ts +39 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/common.d.ts.map +1 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/index.d.ts +5 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/index.d.ts.map +1 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts +32 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts +10 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts +7 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts +17 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts +10 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts +70 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts +12 -0
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/index.d.ts +7 -0
- package/dist/typescript/components/Participant/ParticipantView/index.d.ts.map +1 -0
- package/dist/typescript/components/Participant/index.d.ts +3 -0
- package/dist/typescript/components/Participant/index.d.ts.map +1 -0
- package/dist/typescript/components/index.d.ts +4 -0
- package/dist/typescript/components/index.d.ts.map +1 -0
- package/dist/typescript/components/utility/Avatar.d.ts +43 -0
- package/dist/typescript/components/utility/Avatar.d.ts.map +1 -0
- package/dist/typescript/components/utility/index.d.ts +2 -0
- package/dist/typescript/components/utility/index.d.ts.map +1 -0
- package/dist/typescript/constants/TestIds.d.ts +26 -0
- package/dist/typescript/constants/TestIds.d.ts.map +1 -0
- package/dist/typescript/constants/index.d.ts +14 -0
- package/dist/typescript/constants/index.d.ts.map +1 -0
- package/dist/typescript/contexts/StreamVideoContext.d.ts +20 -0
- package/dist/typescript/contexts/StreamVideoContext.d.ts.map +1 -0
- package/dist/typescript/contexts/ThemeContext.d.ts +23 -0
- package/dist/typescript/contexts/ThemeContext.d.ts.map +1 -0
- package/dist/typescript/contexts/index.d.ts +3 -0
- package/dist/typescript/contexts/index.d.ts.map +1 -0
- package/dist/typescript/hooks/index.d.ts +6 -0
- package/dist/typescript/hooks/index.d.ts.map +1 -0
- package/dist/typescript/hooks/internal/useCallMediaStreamCleanup.d.ts +6 -0
- package/dist/typescript/hooks/internal/useCallMediaStreamCleanup.d.ts.map +1 -0
- package/dist/typescript/hooks/push/index.d.ts +6 -0
- package/dist/typescript/hooks/push/index.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts +5 -0
- package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useIosCallKeepEventsSetupEffect.d.ts +5 -0
- package/dist/typescript/hooks/push/useIosCallKeepEventsSetupEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +5 -0
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts +6 -0
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts +8 -0
- package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts +7 -0
- package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/useIncallManager.d.ts +14 -0
- package/dist/typescript/hooks/useIncallManager.d.ts.map +1 -0
- package/dist/typescript/hooks/usePermissionNotification.d.ts +19 -0
- package/dist/typescript/hooks/usePermissionNotification.d.ts.map +1 -0
- package/dist/typescript/hooks/usePermissionRequest.d.ts +2 -0
- package/dist/typescript/hooks/usePermissionRequest.d.ts.map +1 -0
- package/dist/typescript/icons/Back.d.ts +7 -0
- package/dist/typescript/icons/Back.d.ts.map +1 -0
- package/dist/typescript/icons/CameraSwitch.d.ts +7 -0
- package/dist/typescript/icons/CameraSwitch.d.ts.map +1 -0
- package/dist/typescript/icons/Chat.d.ts +7 -0
- package/dist/typescript/icons/Chat.d.ts.map +1 -0
- package/dist/typescript/icons/Mic.d.ts +7 -0
- package/dist/typescript/icons/Mic.d.ts.map +1 -0
- package/dist/typescript/icons/MicOff.d.ts +7 -0
- package/dist/typescript/icons/MicOff.d.ts.map +1 -0
- package/dist/typescript/icons/Participants.d.ts +7 -0
- package/dist/typescript/icons/Participants.d.ts.map +1 -0
- package/dist/typescript/icons/Phone.d.ts +7 -0
- package/dist/typescript/icons/Phone.d.ts.map +1 -0
- package/dist/typescript/icons/PhoneDown.d.ts +7 -0
- package/dist/typescript/icons/PhoneDown.d.ts.map +1 -0
- package/dist/typescript/icons/PinVertical.d.ts +7 -0
- package/dist/typescript/icons/PinVertical.d.ts.map +1 -0
- package/dist/typescript/icons/Reaction.d.ts +7 -0
- package/dist/typescript/icons/Reaction.d.ts.map +1 -0
- package/dist/typescript/icons/ScreenShare.d.ts +7 -0
- package/dist/typescript/icons/ScreenShare.d.ts.map +1 -0
- package/dist/typescript/icons/Settings.d.ts +6 -0
- package/dist/typescript/icons/Settings.d.ts.map +1 -0
- package/dist/typescript/icons/Spotlight.d.ts +7 -0
- package/dist/typescript/icons/Spotlight.d.ts.map +1 -0
- package/dist/typescript/icons/ThreeDots.d.ts +6 -0
- package/dist/typescript/icons/ThreeDots.d.ts.map +1 -0
- package/dist/typescript/icons/TopViewBackground.d.ts +14 -0
- package/dist/typescript/icons/TopViewBackground.d.ts.map +1 -0
- package/dist/typescript/icons/Video.d.ts +7 -0
- package/dist/typescript/icons/Video.d.ts.map +1 -0
- package/dist/typescript/icons/VideoSlash.d.ts +7 -0
- package/dist/typescript/icons/VideoSlash.d.ts.map +1 -0
- package/dist/typescript/icons/index.d.ts +17 -0
- package/dist/typescript/icons/index.d.ts.map +1 -0
- package/dist/typescript/index.d.ts +17 -0
- package/dist/typescript/index.d.ts.map +1 -0
- package/dist/typescript/providers/MediaStreamManagement.d.ts +46 -0
- package/dist/typescript/providers/MediaStreamManagement.d.ts.map +1 -0
- package/dist/typescript/providers/StreamCall.d.ts +23 -0
- package/dist/typescript/providers/StreamCall.d.ts.map +1 -0
- package/dist/typescript/providers/StreamVideo.d.ts +15 -0
- package/dist/typescript/providers/StreamVideo.d.ts.map +1 -0
- package/dist/typescript/providers/index.d.ts +4 -0
- package/dist/typescript/providers/index.d.ts.map +1 -0
- package/dist/typescript/theme/colors.d.ts +40 -0
- package/dist/typescript/theme/colors.d.ts.map +1 -0
- package/dist/typescript/theme/constants.d.ts +48 -0
- package/dist/typescript/theme/constants.d.ts.map +1 -0
- package/dist/typescript/theme/index.d.ts +4 -0
- package/dist/typescript/theme/index.d.ts.map +1 -0
- package/dist/typescript/theme/theme.d.ts +196 -0
- package/dist/typescript/theme/theme.d.ts.map +1 -0
- package/dist/typescript/theme/types.d.ts +30 -0
- package/dist/typescript/theme/types.d.ts.map +1 -0
- package/dist/typescript/translations/index.d.ts +17 -0
- package/dist/typescript/translations/index.d.ts.map +1 -0
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +28 -0
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -0
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +95 -0
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -0
- package/dist/typescript/utils/hooks/index.d.ts +4 -0
- package/dist/typescript/utils/hooks/index.d.ts.map +1 -0
- package/dist/typescript/utils/hooks/useAppStateListener.d.ts +2 -0
- package/dist/typescript/utils/hooks/useAppStateListener.d.ts.map +1 -0
- package/dist/typescript/utils/hooks/useDebouncedValue.d.ts +8 -0
- package/dist/typescript/utils/hooks/useDebouncedValue.d.ts.map +1 -0
- package/dist/typescript/utils/hooks/usePrevious.d.ts +2 -0
- package/dist/typescript/utils/hooks/usePrevious.d.ts.map +1 -0
- package/dist/typescript/utils/index.d.ts +5 -0
- package/dist/typescript/utils/index.d.ts.map +1 -0
- package/dist/typescript/utils/internal/optionalLibs.d.ts +6 -0
- package/dist/typescript/utils/internal/optionalLibs.d.ts.map +1 -0
- package/dist/typescript/utils/push/android.d.ts +9 -0
- package/dist/typescript/utils/push/android.d.ts.map +1 -0
- package/dist/typescript/utils/push/ios.d.ts +6 -0
- package/dist/typescript/utils/push/ios.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs.d.ts +10 -0
- package/dist/typescript/utils/push/libs.d.ts.map +1 -0
- package/dist/typescript/utils/push/rxSubjects.d.ts +29 -0
- package/dist/typescript/utils/push/rxSubjects.d.ts.map +1 -0
- package/dist/typescript/utils/push/utils.d.ts +14 -0
- package/dist/typescript/utils/push/utils.d.ts.map +1 -0
- package/dist/typescript/utils/setClientDetails.d.ts +2 -0
- package/dist/typescript/utils/setClientDetails.d.ts.map +1 -0
- package/dist/typescript/version.d.ts +2 -0
- package/dist/typescript/version.d.ts.map +1 -0
- package/expo-config-plugin/dist/index.js +18 -14
- package/expo-config-plugin/dist/withAndroidManifest.js +6 -5
- package/expo-config-plugin/dist/withAndroidPermissions.js +5 -4
- package/expo-config-plugin/dist/withAppDelegate.js +8 -7
- package/expo-config-plugin/dist/withMainApplication.js +8 -7
- package/expo-config-plugin/dist/withiOSInfoPlist.js +5 -4
- package/package.json +18 -6
- package/src/components/Call/CallControls/ToggleAudioPreviewButton.tsx +3 -3
- package/src/components/Call/CallControls/ToggleVideoPreviewButton.tsx +4 -3
- package/src/components/Call/Lobby/Lobby.tsx +6 -3
- package/src/components/Call/RingingCallContent/OutgoingCall.tsx +5 -3
- package/src/components/Participant/ParticipantView/VideoRenderer.tsx +6 -3
- package/src/hooks/internal/useCallMediaStreamCleanup.ts +1 -0
- package/src/index.ts +41 -0
- package/src/providers/MediaStreamManagement.tsx +80 -51
- package/src/providers/StreamVideo.tsx +0 -2
- package/src/translations/en.json +1 -3
- package/src/utils/StreamVideoRN/index.ts +0 -21
- package/src/utils/setClientDetails.ts +1 -1
- package/src/version.ts +1 -0
- package/dist/index.d.ts +0 -16
- package/dist/index.js +0 -32
- package/dist/index.js.map +0 -1
- package/dist/jest-setup.d.ts +0 -1
- package/dist/jest-setup.js +0 -38
- package/dist/jest-setup.js.map +0 -1
- package/dist/src/components/Call/CallContent/CallContent.d.ts +0 -26
- package/dist/src/components/Call/CallContent/CallContent.js +0 -84
- package/dist/src/components/Call/CallContent/CallContent.js.map +0 -1
- package/dist/src/components/Call/CallContent/index.d.ts +0 -1
- package/dist/src/components/Call/CallContent/index.js.map +0 -1
- package/dist/src/components/Call/CallControls/AcceptCallButton.d.ts +0 -22
- package/dist/src/components/Call/CallControls/AcceptCallButton.js +0 -32
- package/dist/src/components/Call/CallControls/AcceptCallButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/CallControls.d.ts +0 -16
- package/dist/src/components/Call/CallControls/CallControls.js +0 -34
- package/dist/src/components/Call/CallControls/CallControls.js.map +0 -1
- package/dist/src/components/Call/CallControls/CallControlsButton.d.ts +0 -36
- package/dist/src/components/Call/CallControls/CallControlsButton.js +0 -48
- package/dist/src/components/Call/CallControls/CallControlsButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ChatButton.d.ts +0 -20
- package/dist/src/components/Call/CallControls/ChatButton.js +0 -45
- package/dist/src/components/Call/CallControls/ChatButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/HangupCallButton.d.ts +0 -22
- package/dist/src/components/Call/CallControls/HangupCallButton.js +0 -47
- package/dist/src/components/Call/CallControls/HangupCallButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/IncomingCallControls.d.ts +0 -14
- package/dist/src/components/Call/CallControls/IncomingCallControls.js +0 -21
- package/dist/src/components/Call/CallControls/IncomingCallControls.js.map +0 -1
- package/dist/src/components/Call/CallControls/LobbyControls.d.ts +0 -4
- package/dist/src/components/Call/CallControls/LobbyControls.js +0 -22
- package/dist/src/components/Call/CallControls/LobbyControls.js.map +0 -1
- package/dist/src/components/Call/CallControls/OutgoingCallControls.d.ts +0 -10
- package/dist/src/components/Call/CallControls/OutgoingCallControls.js +0 -25
- package/dist/src/components/Call/CallControls/OutgoingCallControls.js.map +0 -1
- package/dist/src/components/Call/CallControls/ReactionButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ReactionButton.js +0 -47
- package/dist/src/components/Call/CallControls/ReactionButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/RejectCallButton.d.ts +0 -23
- package/dist/src/components/Call/CallControls/RejectCallButton.js +0 -41
- package/dist/src/components/Call/CallControls/RejectCallButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ToggleAudioPreviewButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ToggleAudioPreviewButton.js +0 -30
- package/dist/src/components/Call/CallControls/ToggleAudioPreviewButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ToggleAudioPublishingButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ToggleAudioPublishingButton.js +0 -25
- package/dist/src/components/Call/CallControls/ToggleAudioPublishingButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ToggleCameraFaceButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ToggleCameraFaceButton.js +0 -26
- package/dist/src/components/Call/CallControls/ToggleCameraFaceButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ToggleVideoPreviewButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ToggleVideoPreviewButton.js +0 -30
- package/dist/src/components/Call/CallControls/ToggleVideoPreviewButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ToggleVideoPublishingButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ToggleVideoPublishingButton.js +0 -25
- package/dist/src/components/Call/CallControls/ToggleVideoPublishingButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/index.d.ts +0 -14
- package/dist/src/components/Call/CallControls/index.js.map +0 -1
- package/dist/src/components/Call/CallControls/internal/ReactionsPicker.d.ts +0 -9
- package/dist/src/components/Call/CallControls/internal/ReactionsPicker.js +0 -134
- package/dist/src/components/Call/CallControls/internal/ReactionsPicker.js.map +0 -1
- package/dist/src/components/Call/CallLayout/CallParticipantsGrid.d.ts +0 -19
- package/dist/src/components/Call/CallLayout/CallParticipantsGrid.js +0 -45
- package/dist/src/components/Call/CallLayout/CallParticipantsGrid.js.map +0 -1
- package/dist/src/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +0 -16
- package/dist/src/components/Call/CallLayout/CallParticipantsSpotlight.js +0 -76
- package/dist/src/components/Call/CallLayout/CallParticipantsSpotlight.js.map +0 -1
- package/dist/src/components/Call/CallLayout/index.d.ts +0 -2
- package/dist/src/components/Call/CallLayout/index.js.map +0 -1
- package/dist/src/components/Call/CallParticipantsList/CallParticipantsList.d.ts +0 -34
- package/dist/src/components/Call/CallParticipantsList/CallParticipantsList.js +0 -157
- package/dist/src/components/Call/CallParticipantsList/CallParticipantsList.js.map +0 -1
- package/dist/src/components/Call/CallParticipantsList/index.d.ts +0 -1
- package/dist/src/components/Call/CallParticipantsList/index.js.map +0 -1
- package/dist/src/components/Call/CallTopView/CallTopView.d.ts +0 -28
- package/dist/src/components/Call/CallTopView/CallTopView.js +0 -73
- package/dist/src/components/Call/CallTopView/CallTopView.js.map +0 -1
- package/dist/src/components/Call/CallTopView/ParticipantsInfoBadge.d.ts +0 -10
- package/dist/src/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -77
- package/dist/src/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
- package/dist/src/components/Call/CallTopView/index.d.ts +0 -2
- package/dist/src/components/Call/CallTopView/index.js.map +0 -1
- package/dist/src/components/Call/Lobby/JoinCallButton.d.ts +0 -11
- package/dist/src/components/Call/Lobby/JoinCallButton.js +0 -51
- package/dist/src/components/Call/Lobby/JoinCallButton.js.map +0 -1
- package/dist/src/components/Call/Lobby/Lobby.d.ts +0 -23
- package/dist/src/components/Call/Lobby/Lobby.js +0 -149
- package/dist/src/components/Call/Lobby/Lobby.js.map +0 -1
- package/dist/src/components/Call/Lobby/index.d.ts +0 -2
- package/dist/src/components/Call/Lobby/index.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/IncomingCall.d.ts +0 -39
- package/dist/src/components/Call/RingingCallContent/IncomingCall.js +0 -72
- package/dist/src/components/Call/RingingCallContent/IncomingCall.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/JoiningCallIndicator.d.ts +0 -1
- package/dist/src/components/Call/RingingCallContent/JoiningCallIndicator.js +0 -18
- package/dist/src/components/Call/RingingCallContent/JoiningCallIndicator.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/OutgoingCall.d.ts +0 -21
- package/dist/src/components/Call/RingingCallContent/OutgoingCall.js +0 -81
- package/dist/src/components/Call/RingingCallContent/OutgoingCall.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/RingingCallContent.d.ts +0 -34
- package/dist/src/components/Call/RingingCallContent/RingingCallContent.js +0 -41
- package/dist/src/components/Call/RingingCallContent/RingingCallContent.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/UserInfo.d.ts +0 -13
- package/dist/src/components/Call/RingingCallContent/UserInfo.js +0 -82
- package/dist/src/components/Call/RingingCallContent/UserInfo.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/index.d.ts +0 -3
- package/dist/src/components/Call/RingingCallContent/index.js.map +0 -1
- package/dist/src/components/Call/index.d.ts +0 -7
- package/dist/src/components/Call/index.js.map +0 -1
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts +0 -3
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +0 -145
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +0 -1
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts +0 -4
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +0 -126
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +0 -1
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/common.d.ts +0 -38
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/common.js +0 -59
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/common.js.map +0 -1
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/index.d.ts +0 -4
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/index.js +0 -6
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/index.js.map +0 -1
- package/dist/src/components/Participant/FloatingParticipantView/index.d.ts +0 -31
- package/dist/src/components/Participant/FloatingParticipantView/index.js +0 -95
- package/dist/src/components/Participant/FloatingParticipantView/index.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/ParticipantLabel.d.ts +0 -9
- package/dist/src/components/Participant/ParticipantView/ParticipantLabel.js +0 -113
- package/dist/src/components/Participant/ParticipantView/ParticipantLabel.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts +0 -6
- package/dist/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +0 -51
- package/dist/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/ParticipantReaction.d.ts +0 -16
- package/dist/src/components/Participant/ParticipantView/ParticipantReaction.js +0 -55
- package/dist/src/components/Participant/ParticipantView/ParticipantReaction.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts +0 -9
- package/dist/src/components/Participant/ParticipantView/ParticipantVideoFallback.js +0 -38
- package/dist/src/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/ParticipantView.d.ts +0 -69
- package/dist/src/components/Participant/ParticipantView/ParticipantView.js +0 -51
- package/dist/src/components/Participant/ParticipantView/ParticipantView.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/VideoRenderer.d.ts +0 -11
- package/dist/src/components/Participant/ParticipantView/VideoRenderer.js +0 -148
- package/dist/src/components/Participant/ParticipantView/VideoRenderer.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/index.d.ts +0 -6
- package/dist/src/components/Participant/ParticipantView/index.js.map +0 -1
- package/dist/src/components/Participant/index.d.ts +0 -2
- package/dist/src/components/Participant/index.js.map +0 -1
- package/dist/src/components/index.d.ts +0 -3
- package/dist/src/components/index.js.map +0 -1
- package/dist/src/components/utility/Avatar.d.ts +0 -42
- package/dist/src/components/utility/Avatar.js +0 -50
- package/dist/src/components/utility/Avatar.js.map +0 -1
- package/dist/src/components/utility/index.d.ts +0 -1
- package/dist/src/components/utility/index.js.map +0 -1
- package/dist/src/constants/TestIds.d.ts +0 -25
- package/dist/src/constants/TestIds.js +0 -30
- package/dist/src/constants/TestIds.js.map +0 -1
- package/dist/src/constants/index.d.ts +0 -13
- package/dist/src/constants/index.js +0 -32
- package/dist/src/constants/index.js.map +0 -1
- package/dist/src/contexts/StreamVideoContext.d.ts +0 -19
- package/dist/src/contexts/StreamVideoContext.js +0 -82
- package/dist/src/contexts/StreamVideoContext.js.map +0 -1
- package/dist/src/contexts/ThemeContext.d.ts +0 -22
- package/dist/src/contexts/ThemeContext.js +0 -33
- package/dist/src/contexts/ThemeContext.js.map +0 -1
- package/dist/src/contexts/index.d.ts +0 -2
- package/dist/src/contexts/index.js.map +0 -1
- package/dist/src/hooks/index.d.ts +0 -5
- package/dist/src/hooks/index.js.map +0 -1
- package/dist/src/hooks/internal/useCallMediaStreamCleanup.d.ts +0 -5
- package/dist/src/hooks/internal/useCallMediaStreamCleanup.js +0 -25
- package/dist/src/hooks/internal/useCallMediaStreamCleanup.js.map +0 -1
- package/dist/src/hooks/push/index.d.ts +0 -5
- package/dist/src/hooks/push/index.js +0 -15
- package/dist/src/hooks/push/index.js.map +0 -1
- package/dist/src/hooks/push/useInitAndroidTokenAndRest.d.ts +0 -4
- package/dist/src/hooks/push/useInitAndroidTokenAndRest.js +0 -20
- package/dist/src/hooks/push/useInitAndroidTokenAndRest.js.map +0 -1
- package/dist/src/hooks/push/useIosCallKeepEventsSetupEffect.d.ts +0 -4
- package/dist/src/hooks/push/useIosCallKeepEventsSetupEffect.js +0 -46
- package/dist/src/hooks/push/useIosCallKeepEventsSetupEffect.js.map +0 -1
- package/dist/src/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +0 -4
- package/dist/src/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -116
- package/dist/src/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
- package/dist/src/hooks/push/useIosVoipPushEventsSetupEffect.d.ts +0 -5
- package/dist/src/hooks/push/useIosVoipPushEventsSetupEffect.js +0 -78
- package/dist/src/hooks/push/useIosVoipPushEventsSetupEffect.js.map +0 -1
- package/dist/src/hooks/push/useProcessPushCallEffect.d.ts +0 -7
- package/dist/src/hooks/push/useProcessPushCallEffect.js +0 -58
- package/dist/src/hooks/push/useProcessPushCallEffect.js.map +0 -1
- package/dist/src/hooks/useAndroidKeepCallAliveEffect.d.ts +0 -6
- package/dist/src/hooks/useAndroidKeepCallAliveEffect.js +0 -102
- package/dist/src/hooks/useAndroidKeepCallAliveEffect.js.map +0 -1
- package/dist/src/hooks/useIncallManager.d.ts +0 -13
- package/dist/src/hooks/useIncallManager.js +0 -17
- package/dist/src/hooks/useIncallManager.js.map +0 -1
- package/dist/src/hooks/usePermissionNotification.d.ts +0 -18
- package/dist/src/hooks/usePermissionNotification.js +0 -38
- package/dist/src/hooks/usePermissionNotification.js.map +0 -1
- package/dist/src/hooks/usePermissionRequest.d.ts +0 -1
- package/dist/src/hooks/usePermissionRequest.js +0 -60
- package/dist/src/hooks/usePermissionRequest.js.map +0 -1
- package/dist/src/icons/Back.d.ts +0 -6
- package/dist/src/icons/Back.js +0 -5
- package/dist/src/icons/Back.js.map +0 -1
- package/dist/src/icons/CameraSwitch.d.ts +0 -6
- package/dist/src/icons/CameraSwitch.js +0 -5
- package/dist/src/icons/CameraSwitch.js.map +0 -1
- package/dist/src/icons/Chat.d.ts +0 -6
- package/dist/src/icons/Chat.js +0 -5
- package/dist/src/icons/Chat.js.map +0 -1
- package/dist/src/icons/Mic.d.ts +0 -6
- package/dist/src/icons/Mic.js +0 -6
- package/dist/src/icons/Mic.js.map +0 -1
- package/dist/src/icons/MicOff.d.ts +0 -6
- package/dist/src/icons/MicOff.js +0 -5
- package/dist/src/icons/MicOff.js.map +0 -1
- package/dist/src/icons/Participants.d.ts +0 -6
- package/dist/src/icons/Participants.js +0 -5
- package/dist/src/icons/Participants.js.map +0 -1
- package/dist/src/icons/Phone.d.ts +0 -6
- package/dist/src/icons/Phone.js +0 -5
- package/dist/src/icons/Phone.js.map +0 -1
- package/dist/src/icons/PhoneDown.d.ts +0 -6
- package/dist/src/icons/PhoneDown.js +0 -6
- package/dist/src/icons/PhoneDown.js.map +0 -1
- package/dist/src/icons/PinVertical.d.ts +0 -6
- package/dist/src/icons/PinVertical.js +0 -5
- package/dist/src/icons/PinVertical.js.map +0 -1
- package/dist/src/icons/Reaction.d.ts +0 -6
- package/dist/src/icons/Reaction.js +0 -5
- package/dist/src/icons/Reaction.js.map +0 -1
- package/dist/src/icons/ScreenShare.d.ts +0 -6
- package/dist/src/icons/ScreenShare.js +0 -11
- package/dist/src/icons/ScreenShare.js.map +0 -1
- package/dist/src/icons/Settings.d.ts +0 -5
- package/dist/src/icons/Settings.js +0 -7
- package/dist/src/icons/Settings.js.map +0 -1
- package/dist/src/icons/Spotlight.d.ts +0 -6
- package/dist/src/icons/Spotlight.js +0 -5
- package/dist/src/icons/Spotlight.js.map +0 -1
- package/dist/src/icons/ThreeDots.d.ts +0 -5
- package/dist/src/icons/ThreeDots.js +0 -7
- package/dist/src/icons/ThreeDots.js.map +0 -1
- package/dist/src/icons/TopViewBackground.d.ts +0 -13
- package/dist/src/icons/TopViewBackground.js +0 -9
- package/dist/src/icons/TopViewBackground.js.map +0 -1
- package/dist/src/icons/Video.d.ts +0 -6
- package/dist/src/icons/Video.js +0 -5
- package/dist/src/icons/Video.js.map +0 -1
- package/dist/src/icons/VideoSlash.d.ts +0 -6
- package/dist/src/icons/VideoSlash.js +0 -6
- package/dist/src/icons/VideoSlash.js.map +0 -1
- package/dist/src/icons/index.d.ts +0 -16
- package/dist/src/icons/index.js.map +0 -1
- package/dist/src/providers/MediaDevices.d.ts +0 -9
- package/dist/src/providers/MediaDevices.js +0 -40
- package/dist/src/providers/MediaDevices.js.map +0 -1
- package/dist/src/providers/MediaStreamManagement.d.ts +0 -45
- package/dist/src/providers/MediaStreamManagement.js +0 -92
- package/dist/src/providers/MediaStreamManagement.js.map +0 -1
- package/dist/src/providers/StreamCall.d.ts +0 -22
- package/dist/src/providers/StreamCall.js +0 -36
- package/dist/src/providers/StreamCall.js.map +0 -1
- package/dist/src/providers/StreamVideo.d.ts +0 -14
- package/dist/src/providers/StreamVideo.js +0 -52
- package/dist/src/providers/StreamVideo.js.map +0 -1
- package/dist/src/providers/index.d.ts +0 -3
- package/dist/src/providers/index.js.map +0 -1
- package/dist/src/theme/colors.d.ts +0 -39
- package/dist/src/theme/colors.js +0 -46
- package/dist/src/theme/colors.js.map +0 -1
- package/dist/src/theme/constants.d.ts +0 -47
- package/dist/src/theme/constants.js +0 -51
- package/dist/src/theme/constants.js.map +0 -1
- package/dist/src/theme/index.d.ts +0 -3
- package/dist/src/theme/index.js +0 -7
- package/dist/src/theme/index.js.map +0 -1
- package/dist/src/theme/theme.d.ts +0 -195
- package/dist/src/theme/theme.js +0 -219
- package/dist/src/theme/theme.js.map +0 -1
- package/dist/src/theme/types.d.ts +0 -29
- package/dist/src/theme/types.js.map +0 -1
- package/dist/src/translations/en.json +0 -16
- package/dist/src/translations/index.d.ts +0 -18
- package/dist/src/translations/index.js +0 -3
- package/dist/src/translations/index.js.map +0 -1
- package/dist/src/utils/StreamVideoRN/index.d.ts +0 -37
- package/dist/src/utils/StreamVideoRN/index.js +0 -74
- package/dist/src/utils/StreamVideoRN/index.js.map +0 -1
- package/dist/src/utils/StreamVideoRN/permissions.d.ts +0 -5
- package/dist/src/utils/StreamVideoRN/permissions.js +0 -17
- package/dist/src/utils/StreamVideoRN/permissions.js.map +0 -1
- package/dist/src/utils/StreamVideoRN/types.d.ts +0 -94
- package/dist/src/utils/StreamVideoRN/types.js.map +0 -1
- package/dist/src/utils/hooks/index.d.ts +0 -3
- package/dist/src/utils/hooks/index.js.map +0 -1
- package/dist/src/utils/hooks/useAppStateListener.d.ts +0 -1
- package/dist/src/utils/hooks/useAppStateListener.js +0 -37
- package/dist/src/utils/hooks/useAppStateListener.js.map +0 -1
- package/dist/src/utils/hooks/useDebouncedValue.d.ts +0 -7
- package/dist/src/utils/hooks/useDebouncedValue.js +0 -18
- package/dist/src/utils/hooks/useDebouncedValue.js.map +0 -1
- package/dist/src/utils/hooks/usePrevious.d.ts +0 -1
- package/dist/src/utils/hooks/usePrevious.js +0 -9
- package/dist/src/utils/hooks/usePrevious.js.map +0 -1
- package/dist/src/utils/index.d.ts +0 -4
- package/dist/src/utils/index.js +0 -28
- package/dist/src/utils/index.js.map +0 -1
- package/dist/src/utils/internal/optionalLibs.d.ts +0 -5
- package/dist/src/utils/internal/optionalLibs.js +0 -23
- package/dist/src/utils/internal/optionalLibs.js.map +0 -1
- package/dist/src/utils/push/android.d.ts +0 -8
- package/dist/src/utils/push/android.js +0 -131
- package/dist/src/utils/push/android.js.map +0 -1
- package/dist/src/utils/push/ios.d.ts +0 -5
- package/dist/src/utils/push/ios.js +0 -37
- package/dist/src/utils/push/ios.js.map +0 -1
- package/dist/src/utils/push/libs.d.ts +0 -9
- package/dist/src/utils/push/libs.js +0 -34
- package/dist/src/utils/push/libs.js.map +0 -1
- package/dist/src/utils/push/rxSubjects.d.ts +0 -28
- package/dist/src/utils/push/rxSubjects.js +0 -31
- package/dist/src/utils/push/rxSubjects.js.map +0 -1
- package/dist/src/utils/push/utils.d.ts +0 -13
- package/dist/src/utils/push/utils.js +0 -48
- package/dist/src/utils/push/utils.js.map +0 -1
- package/dist/src/utils/setClientDetails.d.ts +0 -1
- package/dist/src/utils/setClientDetails.js +0 -49
- package/dist/src/utils/setClientDetails.js.map +0 -1
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -2
- package/dist/version.js.map +0 -1
- package/expo-config-plugin/dist/index.js.map +0 -1
- package/expo-config-plugin/dist/withAndroidManifest.js.map +0 -1
- package/expo-config-plugin/dist/withAndroidPermissions.js.map +0 -1
- package/expo-config-plugin/dist/withAppDelegate.js.map +0 -1
- package/expo-config-plugin/dist/withMainApplication.js.map +0 -1
- package/expo-config-plugin/dist/withiOSInfoPlist.js.map +0 -1
- package/index.ts +0 -41
- package/src/providers/MediaDevices.tsx +0 -59
- package/src/utils/StreamVideoRN/permissions.ts +0 -25
- /package/dist/{src → module}/components/Call/CallContent/index.js +0 -0
- /package/dist/{src → module}/components/Call/CallControls/index.js +0 -0
- /package/dist/{src → module}/components/Call/CallLayout/index.js +0 -0
- /package/dist/{src → module}/components/Call/CallParticipantsList/index.js +0 -0
- /package/dist/{src → module}/components/Call/CallTopView/index.js +0 -0
- /package/dist/{src → module}/components/Call/Lobby/index.js +0 -0
- /package/dist/{src → module}/components/Call/RingingCallContent/index.js +0 -0
- /package/dist/{src → module}/components/Call/index.js +0 -0
- /package/dist/{src → module}/components/Participant/ParticipantView/index.js +0 -0
- /package/dist/{src → module}/components/Participant/index.js +0 -0
- /package/dist/{src → module}/components/index.js +0 -0
- /package/dist/{src → module}/components/utility/index.js +0 -0
- /package/dist/{src → module}/contexts/index.js +0 -0
- /package/dist/{src → module}/hooks/index.js +0 -0
- /package/dist/{src → module}/icons/index.js +0 -0
- /package/dist/{src → module}/providers/index.js +0 -0
- /package/dist/{src → module}/theme/types.js +0 -0
- /package/dist/{src → module}/utils/StreamVideoRN/types.js +0 -0
- /package/dist/{src → module}/utils/hooks/index.js +0 -0
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import { RTCView } from '@stream-io/react-native-webrtc';
|
|
4
|
-
import { CallingState, SfuModels, VisibilityState, } from '@stream-io/video-client';
|
|
5
|
-
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
6
|
-
import { ParticipantVideoFallback as DefaultParticipantVideoFallback } from './ParticipantVideoFallback';
|
|
7
|
-
import { useTheme } from '../../../contexts/ThemeContext';
|
|
8
|
-
const DEFAULT_VIEWPORT_VISIBILITY_STATE = {
|
|
9
|
-
videoTrack: VisibilityState.UNKNOWN,
|
|
10
|
-
screenShareTrack: VisibilityState.UNKNOWN,
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* This component is used to display the video of the participant and fallback when the video is muted.
|
|
14
|
-
*
|
|
15
|
-
* It internally used `RTCView` to render video stream.
|
|
16
|
-
*/
|
|
17
|
-
export const VideoRenderer = ({ trackType = 'videoTrack', participant, isVisible = true, ParticipantVideoFallback = DefaultParticipantVideoFallback, videoZOrder = 0, }) => {
|
|
18
|
-
const { theme: { videoRenderer }, } = useTheme();
|
|
19
|
-
const call = useCall();
|
|
20
|
-
const { useCallCallingState, useCameraState } = useCallStateHooks();
|
|
21
|
-
const callingState = useCallCallingState();
|
|
22
|
-
const pendingVideoLayoutRef = useRef();
|
|
23
|
-
const subscribedVideoLayoutRef = useRef();
|
|
24
|
-
const { direction } = useCameraState();
|
|
25
|
-
const { isLocalParticipant, sessionId, publishedTracks, viewportVisibilityState, videoStream, screenShareStream, } = participant;
|
|
26
|
-
const isScreenSharing = trackType === 'screenShareTrack';
|
|
27
|
-
const isPublishingVideoTrack = publishedTracks.includes(isScreenSharing
|
|
28
|
-
? SfuModels.TrackType.SCREEN_SHARE
|
|
29
|
-
: SfuModels.TrackType.VIDEO);
|
|
30
|
-
const hasJoinedCall = callingState === CallingState.JOINED;
|
|
31
|
-
const canShowVideo = !!videoStream && isVisible && isPublishingVideoTrack;
|
|
32
|
-
const videoStreamToRender = isScreenSharing ? screenShareStream : videoStream;
|
|
33
|
-
const mirror = isLocalParticipant && direction === 'front';
|
|
34
|
-
/**
|
|
35
|
-
* This effect updates the participant's viewportVisibilityState
|
|
36
|
-
* Additionally makes sure that when this view becomes visible again, the layout to subscribe is known
|
|
37
|
-
*/
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (!call) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (!isVisible) {
|
|
43
|
-
if (viewportVisibilityState?.videoTrack !== VisibilityState.VISIBLE) {
|
|
44
|
-
call.state.updateParticipant(sessionId, (p) => ({
|
|
45
|
-
...p,
|
|
46
|
-
viewportVisibilityState: {
|
|
47
|
-
...(p.viewportVisibilityState ?? DEFAULT_VIEWPORT_VISIBILITY_STATE),
|
|
48
|
-
videoTrack: VisibilityState.VISIBLE,
|
|
49
|
-
},
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
if (viewportVisibilityState?.videoTrack !== VisibilityState.INVISIBLE) {
|
|
55
|
-
call.state.updateParticipant(sessionId, (p) => ({
|
|
56
|
-
...p,
|
|
57
|
-
viewportVisibilityState: {
|
|
58
|
-
...(p.viewportVisibilityState ?? DEFAULT_VIEWPORT_VISIBILITY_STATE),
|
|
59
|
-
videoTrack: VisibilityState.INVISIBLE,
|
|
60
|
-
},
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
if (subscribedVideoLayoutRef.current) {
|
|
64
|
-
// when video is enabled again, we want to use the last subscribed dimension to resubscribe
|
|
65
|
-
pendingVideoLayoutRef.current = subscribedVideoLayoutRef.current;
|
|
66
|
-
subscribedVideoLayoutRef.current = undefined;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}, [sessionId, viewportVisibilityState, isVisible, call]);
|
|
70
|
-
useEffect(() => {
|
|
71
|
-
if (!hasJoinedCall && subscribedVideoLayoutRef.current) {
|
|
72
|
-
// when call is joined again, we want to use the last subscribed dimension to resubscribe
|
|
73
|
-
pendingVideoLayoutRef.current = subscribedVideoLayoutRef.current;
|
|
74
|
-
subscribedVideoLayoutRef.current = undefined;
|
|
75
|
-
}
|
|
76
|
-
}, [hasJoinedCall]);
|
|
77
|
-
/**
|
|
78
|
-
* This effect updates the subscription either
|
|
79
|
-
* 1. when video tracks are published and was unpublished before
|
|
80
|
-
* 2. when the view's visibility changes
|
|
81
|
-
* 3. when call was rejoined
|
|
82
|
-
*/
|
|
83
|
-
useEffect(() => {
|
|
84
|
-
// NOTE: We only want to update the subscription if the pendingVideoLayoutRef is set
|
|
85
|
-
const updateIsNeeded = pendingVideoLayoutRef.current;
|
|
86
|
-
if (!updateIsNeeded || !call || !isPublishingVideoTrack || !hasJoinedCall) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
// NOTE: When the view is not visible, we want to subscribe to audio only.
|
|
90
|
-
// We unsubscribe their video by setting the dimension to undefined
|
|
91
|
-
const dimension = isVisible ? pendingVideoLayoutRef.current : undefined;
|
|
92
|
-
call.updateSubscriptionsPartial(trackType, {
|
|
93
|
-
[sessionId]: { dimension },
|
|
94
|
-
});
|
|
95
|
-
if (dimension) {
|
|
96
|
-
subscribedVideoLayoutRef.current = pendingVideoLayoutRef.current;
|
|
97
|
-
pendingVideoLayoutRef.current = undefined;
|
|
98
|
-
}
|
|
99
|
-
}, [
|
|
100
|
-
call,
|
|
101
|
-
isPublishingVideoTrack,
|
|
102
|
-
trackType,
|
|
103
|
-
isVisible,
|
|
104
|
-
sessionId,
|
|
105
|
-
hasJoinedCall,
|
|
106
|
-
]);
|
|
107
|
-
useEffect(() => {
|
|
108
|
-
return () => {
|
|
109
|
-
subscribedVideoLayoutRef.current = undefined;
|
|
110
|
-
pendingVideoLayoutRef.current = undefined;
|
|
111
|
-
};
|
|
112
|
-
}, [trackType, sessionId]);
|
|
113
|
-
const onLayout = (event) => {
|
|
114
|
-
const dimension = {
|
|
115
|
-
width: Math.trunc(event.nativeEvent.layout.width),
|
|
116
|
-
height: Math.trunc(event.nativeEvent.layout.height),
|
|
117
|
-
};
|
|
118
|
-
// NOTE: If the participant hasn't published a video track yet,
|
|
119
|
-
// or the view is not viewable, we store the dimensions and handle it
|
|
120
|
-
// when the track is published or the video is enabled.
|
|
121
|
-
if (!call || !isPublishingVideoTrack || !isVisible || !hasJoinedCall) {
|
|
122
|
-
pendingVideoLayoutRef.current = dimension;
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
// NOTE: We don't want to update the subscription if the dimension hasn't changed
|
|
126
|
-
if (subscribedVideoLayoutRef.current?.width === dimension.width &&
|
|
127
|
-
subscribedVideoLayoutRef.current?.height === dimension.height) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
call.updateSubscriptionsPartial(trackType, {
|
|
131
|
-
[sessionId]: {
|
|
132
|
-
dimension,
|
|
133
|
-
},
|
|
134
|
-
});
|
|
135
|
-
subscribedVideoLayoutRef.current = dimension;
|
|
136
|
-
pendingVideoLayoutRef.current = undefined;
|
|
137
|
-
};
|
|
138
|
-
return (React.createElement(View, { onLayout: onLayout, style: [styles.container, videoRenderer.container] }, canShowVideo ? (React.createElement(RTCView, { style: [styles.videoStream, videoRenderer.videoStream], streamURL: videoStreamToRender?.toURL(), mirror: mirror, objectFit: isScreenSharing ? 'contain' : 'cover', zOrder: videoZOrder })) : (ParticipantVideoFallback && (React.createElement(ParticipantVideoFallback, { participant: participant })))));
|
|
139
|
-
};
|
|
140
|
-
const styles = StyleSheet.create({
|
|
141
|
-
container: {
|
|
142
|
-
...StyleSheet.absoluteFillObject,
|
|
143
|
-
},
|
|
144
|
-
videoStream: {
|
|
145
|
-
...StyleSheet.absoluteFillObject,
|
|
146
|
-
},
|
|
147
|
-
});
|
|
148
|
-
//# sourceMappingURL=VideoRenderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VideoRenderer.js","sourceRoot":"","sources":["../../../../../src/components/Participant/ParticipantView/VideoRenderer.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Participant/ParticipantView/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Participant/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { StreamVideoParticipant } from '@stream-io/video-client';
|
|
2
|
-
import { Theme } from '../../theme/theme';
|
|
3
|
-
/**
|
|
4
|
-
* Props to be passed for the Avatar component.
|
|
5
|
-
*/
|
|
6
|
-
export interface AvatarProps {
|
|
7
|
-
/**
|
|
8
|
-
* The participant of which the avatar will be rendered
|
|
9
|
-
*/
|
|
10
|
-
participant: StreamVideoParticipant;
|
|
11
|
-
/**
|
|
12
|
-
* The size of the avatar
|
|
13
|
-
* @defaultValue
|
|
14
|
-
* The default value is `100`
|
|
15
|
-
*/
|
|
16
|
-
size?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Custom style to be merged with the avatar.
|
|
19
|
-
* @example
|
|
20
|
-
* ```
|
|
21
|
-
* <Avatar
|
|
22
|
-
* participant={participant}
|
|
23
|
-
* style={{
|
|
24
|
-
* container: {
|
|
25
|
-
* backgroundColor: 'red',
|
|
26
|
-
* },
|
|
27
|
-
* image: {
|
|
28
|
-
* borderRadius: 10,
|
|
29
|
-
* },
|
|
30
|
-
* text: {
|
|
31
|
-
* color: 'white',
|
|
32
|
-
* },
|
|
33
|
-
* }}
|
|
34
|
-
* />
|
|
35
|
-
*/
|
|
36
|
-
style?: Theme['avatar'];
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Shows either user's image or initials based on the user state and existence of
|
|
40
|
-
* their image.
|
|
41
|
-
*/
|
|
42
|
-
export declare const Avatar: (props: AvatarProps) => JSX.Element;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Image, StyleSheet, Text, View } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { getInitialsOfName } from '../../utils';
|
|
4
|
-
import { ComponentTestIds, ImageTestIds } from '../../constants/TestIds';
|
|
5
|
-
import { useTheme } from '../../contexts/ThemeContext';
|
|
6
|
-
/**
|
|
7
|
-
* Shows either user's image or initials based on the user state and existence of
|
|
8
|
-
* their image.
|
|
9
|
-
*/
|
|
10
|
-
export const Avatar = (props) => {
|
|
11
|
-
const { participant: { userId, image, name }, size = 100, style: styleProp, } = props;
|
|
12
|
-
const { theme: { avatar, colors, typefaces }, } = useTheme();
|
|
13
|
-
const userDetails = name || userId;
|
|
14
|
-
const userLabel = userDetails ? getInitialsOfName(userDetails) : '?';
|
|
15
|
-
const imageUrl = image;
|
|
16
|
-
return (React.createElement(View, { testID: ComponentTestIds.PARTICIPANT_AVATAR, style: [
|
|
17
|
-
styles.container,
|
|
18
|
-
{
|
|
19
|
-
borderRadius: size / 2,
|
|
20
|
-
height: size,
|
|
21
|
-
width: size,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
backgroundColor: colors.primary,
|
|
25
|
-
},
|
|
26
|
-
avatar.container,
|
|
27
|
-
styleProp?.container,
|
|
28
|
-
] }, imageUrl ? (React.createElement(Image, { testID: ImageTestIds.AVATAR, source: {
|
|
29
|
-
uri: imageUrl,
|
|
30
|
-
}, style: [styles.image, avatar.image, styleProp?.image] })) : (React.createElement(Text, { style: [
|
|
31
|
-
styles.text,
|
|
32
|
-
{ fontSize: size / 2, color: colors.bars },
|
|
33
|
-
typefaces.heading6,
|
|
34
|
-
avatar.text,
|
|
35
|
-
styleProp?.text,
|
|
36
|
-
], numberOfLines: 1 }, userLabel))));
|
|
37
|
-
};
|
|
38
|
-
const styles = StyleSheet.create({
|
|
39
|
-
container: {
|
|
40
|
-
justifyContent: 'center',
|
|
41
|
-
overflow: 'hidden',
|
|
42
|
-
},
|
|
43
|
-
image: {
|
|
44
|
-
flex: 1,
|
|
45
|
-
},
|
|
46
|
-
text: {
|
|
47
|
-
textAlign: 'center',
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=Avatar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.js","sourceRoot":"","sources":["../../../../src/components/utility/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAuCvD;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAkB,EAAE,EAAE;IAC3C,MAAM,EACJ,WAAW,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EACpC,IAAI,GAAG,GAAG,EACV,KAAK,EAAE,SAAS,GACjB,GAAG,KAAK,CAAC;IACV,MAAM,EACJ,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GACrC,GAAG,QAAQ,EAAE,CAAC;IACf,MAAM,WAAW,GAAG,IAAI,IAAI,MAAM,CAAC;IACnC,MAAM,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IAErE,MAAM,QAAQ,GAAG,KAAK,CAAC;IACvB,OAAO,CACL,oBAAC,IAAI,IACH,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,EAC3C,KAAK,EAAE;YACL,MAAM,CAAC,SAAS;YAChB;gBACE,YAAY,EAAE,IAAI,GAAG,CAAC;gBACtB,MAAM,EAAE,IAAI;gBACZ,KAAK,EAAE,IAAI;aACZ;YACD;gBACE,eAAe,EAAE,MAAM,CAAC,OAAO;aAChC;YACD,MAAM,CAAC,SAAS;YAChB,SAAS,EAAE,SAAS;SACrB,IAEA,QAAQ,CAAC,CAAC,CAAC,CACV,oBAAC,KAAK,IACJ,MAAM,EAAE,YAAY,CAAC,MAAM,EAC3B,MAAM,EAAE;YACN,GAAG,EAAE,QAAQ;SACd,EACD,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,GACrD,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,IAAI,IACH,KAAK,EAAE;YACL,MAAM,CAAC,IAAI;YACX,EAAE,QAAQ,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,EAAE;YAC1C,SAAS,CAAC,QAAQ;YAClB,MAAM,CAAC,IAAI;YACX,SAAS,EAAE,IAAI;SAChB,EACD,aAAa,EAAE,CAAC,IAEf,SAAS,CACL,CACR,CACI,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,cAAc,EAAE,QAAQ;QACxB,QAAQ,EAAE,QAAQ;KACnB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,CAAC;KACR;IACD,IAAI,EAAE;QACJ,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Avatar';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/utility/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare enum IconTestIds {
|
|
2
|
-
MUTED_VIDEO = "muted-video-icon",
|
|
3
|
-
HANG_UP_CALL = "hang-up-call-icon",
|
|
4
|
-
SCREEN_SHARE = "screen-share-icon"
|
|
5
|
-
}
|
|
6
|
-
export declare enum ComponentTestIds {
|
|
7
|
-
PARTICIPANT_AVATAR = "participant-avatar",
|
|
8
|
-
CALL_PARTICIPANTS_LIST = "call-participants-list",
|
|
9
|
-
CALL_PARTICIPANTS_SPOTLIGHT = "call-participants-spotlight",
|
|
10
|
-
CALL_PARTICIPANTS_GRID = "call-participants-grid",
|
|
11
|
-
LOCAL_PARTICIPANT = "local-participant",
|
|
12
|
-
PARTICIPANT_MEDIA_STREAM = "participant-media-stream",
|
|
13
|
-
PARTICIPANTS_INFO = "participants-info",
|
|
14
|
-
PARTICIPANT_SCREEN_SHARING = "participant-screen-sharing",
|
|
15
|
-
REACTIONS_PICKER = "reactions-picker",
|
|
16
|
-
CHAT_UNREAD_BADGE_COUNT_INDICATOR = "chat-unread-badge-count-indicator"
|
|
17
|
-
}
|
|
18
|
-
export declare enum ButtonTestIds {
|
|
19
|
-
PARTICIPANTS_INFO = "participants-info-button",
|
|
20
|
-
HANG_UP_CALL = "hang-up-call",
|
|
21
|
-
REACTION = "call-controls-reaction"
|
|
22
|
-
}
|
|
23
|
-
export declare enum ImageTestIds {
|
|
24
|
-
AVATAR = "avatar-image"
|
|
25
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export var IconTestIds;
|
|
2
|
-
(function (IconTestIds) {
|
|
3
|
-
IconTestIds["MUTED_VIDEO"] = "muted-video-icon";
|
|
4
|
-
IconTestIds["HANG_UP_CALL"] = "hang-up-call-icon";
|
|
5
|
-
IconTestIds["SCREEN_SHARE"] = "screen-share-icon";
|
|
6
|
-
})(IconTestIds || (IconTestIds = {}));
|
|
7
|
-
export var ComponentTestIds;
|
|
8
|
-
(function (ComponentTestIds) {
|
|
9
|
-
ComponentTestIds["PARTICIPANT_AVATAR"] = "participant-avatar";
|
|
10
|
-
ComponentTestIds["CALL_PARTICIPANTS_LIST"] = "call-participants-list";
|
|
11
|
-
ComponentTestIds["CALL_PARTICIPANTS_SPOTLIGHT"] = "call-participants-spotlight";
|
|
12
|
-
ComponentTestIds["CALL_PARTICIPANTS_GRID"] = "call-participants-grid";
|
|
13
|
-
ComponentTestIds["LOCAL_PARTICIPANT"] = "local-participant";
|
|
14
|
-
ComponentTestIds["PARTICIPANT_MEDIA_STREAM"] = "participant-media-stream";
|
|
15
|
-
ComponentTestIds["PARTICIPANTS_INFO"] = "participants-info";
|
|
16
|
-
ComponentTestIds["PARTICIPANT_SCREEN_SHARING"] = "participant-screen-sharing";
|
|
17
|
-
ComponentTestIds["REACTIONS_PICKER"] = "reactions-picker";
|
|
18
|
-
ComponentTestIds["CHAT_UNREAD_BADGE_COUNT_INDICATOR"] = "chat-unread-badge-count-indicator";
|
|
19
|
-
})(ComponentTestIds || (ComponentTestIds = {}));
|
|
20
|
-
export var ButtonTestIds;
|
|
21
|
-
(function (ButtonTestIds) {
|
|
22
|
-
ButtonTestIds["PARTICIPANTS_INFO"] = "participants-info-button";
|
|
23
|
-
ButtonTestIds["HANG_UP_CALL"] = "hang-up-call";
|
|
24
|
-
ButtonTestIds["REACTION"] = "call-controls-reaction";
|
|
25
|
-
})(ButtonTestIds || (ButtonTestIds = {}));
|
|
26
|
-
export var ImageTestIds;
|
|
27
|
-
(function (ImageTestIds) {
|
|
28
|
-
ImageTestIds["AVATAR"] = "avatar-image";
|
|
29
|
-
})(ImageTestIds || (ImageTestIds = {}));
|
|
30
|
-
//# sourceMappingURL=TestIds.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestIds.js","sourceRoot":"","sources":["../../../src/constants/TestIds.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,+CAAgC,CAAA;IAChC,iDAAkC,CAAA;IAClC,iDAAkC,CAAA;AACpC,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAED,MAAM,CAAN,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IAC1B,6DAAyC,CAAA;IACzC,qEAAiD,CAAA;IACjD,+EAA2D,CAAA;IAC3D,qEAAiD,CAAA;IACjD,2DAAuC,CAAA;IACvC,yEAAqD,CAAA;IACrD,2DAAuC,CAAA;IACvC,6EAAyD,CAAA;IACzD,yDAAqC,CAAA;IACrC,2FAAuE,CAAA;AACzE,CAAC,EAXW,gBAAgB,KAAhB,gBAAgB,QAW3B;AAED,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,+DAA8C,CAAA;IAC9C,8CAA6B,CAAA;IAC7B,oDAAmC,CAAA;AACrC,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,MAAM,CAAN,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,uCAAuB,CAAA;AACzB,CAAC,EAFW,YAAY,KAAZ,YAAY,QAEvB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { StreamVideoConfig } from '../utils/StreamVideoRN/types';
|
|
2
|
-
export declare const FLOATING_VIDEO_VIEW_STYLE: {
|
|
3
|
-
height: number;
|
|
4
|
-
width: number;
|
|
5
|
-
borderRadius: number;
|
|
6
|
-
};
|
|
7
|
-
export declare const LOBBY_VIDEO_VIEW_HEIGHT = 280;
|
|
8
|
-
export declare const defaultEmojiReactions: StreamVideoConfig['supportedReactions'];
|
|
9
|
-
export declare const Z_INDEX: {
|
|
10
|
-
IN_BACK: number;
|
|
11
|
-
IN_MIDDLE: number;
|
|
12
|
-
IN_FRONT: number;
|
|
13
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export const FLOATING_VIDEO_VIEW_STYLE = {
|
|
2
|
-
height: 140,
|
|
3
|
-
width: 80,
|
|
4
|
-
borderRadius: 10,
|
|
5
|
-
};
|
|
6
|
-
export const LOBBY_VIDEO_VIEW_HEIGHT = 280;
|
|
7
|
-
export const defaultEmojiReactions = [
|
|
8
|
-
{
|
|
9
|
-
type: 'reaction',
|
|
10
|
-
emoji_code: ':like:',
|
|
11
|
-
custom: {},
|
|
12
|
-
icon: '👍',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
type: 'raised-hand',
|
|
16
|
-
emoji_code: ':raise-hand:',
|
|
17
|
-
custom: {},
|
|
18
|
-
icon: '✋',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
type: 'reaction',
|
|
22
|
-
emoji_code: ':fireworks:',
|
|
23
|
-
custom: {},
|
|
24
|
-
icon: '🎉',
|
|
25
|
-
},
|
|
26
|
-
];
|
|
27
|
-
export const Z_INDEX = {
|
|
28
|
-
IN_BACK: 0,
|
|
29
|
-
IN_MIDDLE: 1,
|
|
30
|
-
IN_FRONT: 2,
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,EAAE;IACT,YAAY,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAE3C,MAAM,CAAC,MAAM,qBAAqB,GAA4C;IAC5E;QACE,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,IAAI;KACX;IACD;QACE,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,GAAG;KACV;IACD;QACE,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,aAAa;QACzB,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,IAAI;KACX;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,OAAO,EAAE,CAAC;IACV,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,CAAC;CACZ,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type MediaDeviceInfo = {
|
|
3
|
-
deviceId: string;
|
|
4
|
-
facing?: 'environment' | 'front';
|
|
5
|
-
groupId: string;
|
|
6
|
-
kind: 'videoinput' | 'audioinput';
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Exclude types from documentation site, but we should still add doc comments
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export interface SDKStreamVideoStore {
|
|
14
|
-
currentAudioDevice?: MediaDeviceInfo;
|
|
15
|
-
currentVideoDevice?: MediaDeviceInfo;
|
|
16
|
-
audioDevices: MediaDeviceInfo[];
|
|
17
|
-
videoDevices: MediaDeviceInfo[];
|
|
18
|
-
}
|
|
19
|
-
export declare const StreamVideoStoreProvider: (props: React.PropsWithChildren<{}>) => JSX.Element, useStreamVideoStoreValue: <SelectorOutput extends MediaDeviceInfo | MediaDeviceInfo[] | undefined>(selector: (store: SDKStreamVideoStore) => SelectorOutput) => SelectorOutput, useStreamVideoStoreSetState: () => (partialStateOrFunc: Partial<SDKStreamVideoStore> | ((prevState: SDKStreamVideoStore) => Partial<SDKStreamVideoStore>)) => void;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import React, { createContext, useContext, useEffect, useRef, useState, } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a Atomic store context with a provider and hooks to access the store
|
|
4
|
-
* Atomic means that each value in the store updates state separately using useStoreValue hook
|
|
5
|
-
* Extremely minimalistic implementation of Jotai's store context
|
|
6
|
-
* @param initialState - the initial state of the store
|
|
7
|
-
* @returns - {Provider, useStoreValue, useStoreSetState}
|
|
8
|
-
*/
|
|
9
|
-
function createStoreContext(initialState) {
|
|
10
|
-
function useStoreData() {
|
|
11
|
-
const storeRef = useRef(initialState);
|
|
12
|
-
const getSnapshot = useRef(() => storeRef.current).current;
|
|
13
|
-
const subscribersRef = useRef([]);
|
|
14
|
-
const setState = useRef((partialStateOrFunc) => {
|
|
15
|
-
if (typeof partialStateOrFunc === 'function') {
|
|
16
|
-
const value = partialStateOrFunc(storeRef.current);
|
|
17
|
-
storeRef.current = {
|
|
18
|
-
...storeRef.current,
|
|
19
|
-
...value,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
storeRef.current = { ...storeRef.current, ...partialStateOrFunc };
|
|
24
|
-
}
|
|
25
|
-
subscribersRef.current.forEach((callback) => callback());
|
|
26
|
-
}).current;
|
|
27
|
-
const subscribe = useRef((callback) => {
|
|
28
|
-
subscribersRef.current.push(callback);
|
|
29
|
-
return () => subscribersRef.current.filter((cb) => cb !== callback);
|
|
30
|
-
}).current;
|
|
31
|
-
return {
|
|
32
|
-
getSnapshot,
|
|
33
|
-
setState,
|
|
34
|
-
subscribe,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
const StoreContext = createContext(null);
|
|
38
|
-
function Provider(props) {
|
|
39
|
-
const value = useStoreData();
|
|
40
|
-
return (React.createElement(StoreContext.Provider, { value: value }, props.children));
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @param selector
|
|
44
|
-
* @returns
|
|
45
|
-
*
|
|
46
|
-
* @category Client State
|
|
47
|
-
*/
|
|
48
|
-
function useStoreValue(selector) {
|
|
49
|
-
const store = useContext(StoreContext);
|
|
50
|
-
if (!store) {
|
|
51
|
-
throw new Error('Store not found');
|
|
52
|
-
}
|
|
53
|
-
const [state, setState] = useState(selector(store.getSnapshot()));
|
|
54
|
-
useEffect(() => store.subscribe(() => setState(selector(store.getSnapshot()))), [selector, store]);
|
|
55
|
-
return state;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @returns
|
|
60
|
-
*
|
|
61
|
-
* @category Client State
|
|
62
|
-
*/
|
|
63
|
-
function useStoreSetState() {
|
|
64
|
-
const store = useContext(StoreContext);
|
|
65
|
-
if (!store) {
|
|
66
|
-
throw new Error('Store not found');
|
|
67
|
-
}
|
|
68
|
-
return store.setState;
|
|
69
|
-
}
|
|
70
|
-
return {
|
|
71
|
-
Provider,
|
|
72
|
-
useStoreValue,
|
|
73
|
-
useStoreSetState,
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
export const { Provider: StreamVideoStoreProvider, useStoreValue: useStreamVideoStoreValue, useStoreSetState: useStreamVideoStoreSetState, } = createStoreContext({
|
|
77
|
-
videoDevices: [],
|
|
78
|
-
audioDevices: [],
|
|
79
|
-
currentVideoDevice: undefined,
|
|
80
|
-
currentAudioDevice: undefined,
|
|
81
|
-
});
|
|
82
|
-
//# sourceMappingURL=StreamVideoContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StreamVideoContext.js","sourceRoot":"","sources":["../../../src/contexts/StreamVideoContext.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { Theme } from '../theme/theme';
|
|
3
|
-
export type DeepPartial<T> = {
|
|
4
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
|
5
|
-
};
|
|
6
|
-
export type ThemeProviderInputValue = {
|
|
7
|
-
mergedStyle?: Theme;
|
|
8
|
-
style?: DeepPartial<Theme>;
|
|
9
|
-
};
|
|
10
|
-
export type MergedThemesParams = {
|
|
11
|
-
style?: DeepPartial<Theme>;
|
|
12
|
-
theme?: Theme;
|
|
13
|
-
};
|
|
14
|
-
export type ThemeContextValue = {
|
|
15
|
-
theme: Theme;
|
|
16
|
-
};
|
|
17
|
-
export declare const mergeThemes: (params: MergedThemesParams) => Theme;
|
|
18
|
-
export declare const ThemeContext: React.Context<Theme>;
|
|
19
|
-
export declare const ThemeProvider: React.FC<PropsWithChildren<ThemeProviderInputValue & Partial<ThemeContextValue>>>;
|
|
20
|
-
export declare const useTheme: () => {
|
|
21
|
-
theme: Theme;
|
|
22
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { createContext, useContext, useMemo, } from 'react';
|
|
2
|
-
import merge from 'lodash/merge';
|
|
3
|
-
import { defaultTheme } from '../theme/theme';
|
|
4
|
-
export const mergeThemes = (params) => {
|
|
5
|
-
const { style, theme } = params;
|
|
6
|
-
const finalTheme = (!theme || Object.keys(theme).length === 0
|
|
7
|
-
? JSON.parse(JSON.stringify(defaultTheme))
|
|
8
|
-
: JSON.parse(JSON.stringify(theme)));
|
|
9
|
-
if (style) {
|
|
10
|
-
merge(finalTheme, style);
|
|
11
|
-
}
|
|
12
|
-
return finalTheme;
|
|
13
|
-
};
|
|
14
|
-
const DEFAULT_BASE_CONTEXT_VALUE = {};
|
|
15
|
-
export const ThemeContext = createContext(DEFAULT_BASE_CONTEXT_VALUE);
|
|
16
|
-
export const ThemeProvider = (props) => {
|
|
17
|
-
const { children, mergedStyle, style, theme } = props;
|
|
18
|
-
const modifiedTheme = useMemo(() => {
|
|
19
|
-
if (mergedStyle) {
|
|
20
|
-
return mergedStyle;
|
|
21
|
-
}
|
|
22
|
-
return mergeThemes({ style, theme });
|
|
23
|
-
}, [mergedStyle, style, theme]);
|
|
24
|
-
return (React.createElement(ThemeContext.Provider, { value: modifiedTheme }, children));
|
|
25
|
-
};
|
|
26
|
-
export const useTheme = () => {
|
|
27
|
-
const theme = useContext(ThemeContext);
|
|
28
|
-
if (theme === DEFAULT_BASE_CONTEXT_VALUE) {
|
|
29
|
-
throw new Error('The useThemeContext hook was called outside the ThemeContext Provider. Make sure you have configured OverlayProvider component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#overlay-provider');
|
|
30
|
-
}
|
|
31
|
-
return { theme };
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=ThemeContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.js","sourceRoot":"","sources":["../../../src/contexts/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EAEb,UAAU,EACV,OAAO,GACR,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAS,MAAM,gBAAgB,CAAC;AAoBrD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAA0B,EAAE,EAAE;IACxD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IAChC,MAAM,UAAU,GAAG,CACjB,CAAC,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC;QACvC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC1C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAC7B,CAAC;IAEX,IAAI,KAAK,EAAE;QACT,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;KAC1B;IAED,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAEtC,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CACvC,0BAAmC,CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAEtB,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAEtD,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE;QACjC,IAAI,WAAW,EAAE;YACf,OAAO,WAAW,CAAC;SACpB;QAED,OAAO,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACvC,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IAEhC,OAAO,CACL,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,aAAa,IACxC,QAAQ,CACa,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,MAAM,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;IAEvC,IAAI,KAAK,KAAK,0BAA0B,EAAE;QACxC,MAAM,IAAI,KAAK,CACb,sOAAsO,CACvO,CAAC;KACH;IACD,OAAO,EAAE,KAAK,EAAE,CAAC;AACnB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,QAAQ,CAAC;AACvB,cAAc,iCAAiC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CallingState, disposeOfMediaStream } from '@stream-io/video-client';
|
|
2
|
-
import { useCall } from '@stream-io/video-react-bindings';
|
|
3
|
-
import { useEffect, useRef } from 'react';
|
|
4
|
-
/**
|
|
5
|
-
* This hook is meant to be used in Lobby view or equivalent.
|
|
6
|
-
* It will cleanup the media stream on unmount if call is not meant to be joined.
|
|
7
|
-
*/
|
|
8
|
-
export const useCallMediaStreamCleanup = () => {
|
|
9
|
-
const call = useCall();
|
|
10
|
-
// keeping a reference of call to handle cleanup media stream only on unmount
|
|
11
|
-
const callRef = useRef(call);
|
|
12
|
-
callRef.current = call;
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
return () => {
|
|
15
|
-
const mediaStream = callRef.current?.camera.state.mediaStream;
|
|
16
|
-
if (mediaStream &&
|
|
17
|
-
!(callRef.current?.state.callingState === CallingState.JOINED ||
|
|
18
|
-
callRef.current?.state.callingState === CallingState.JOINING)) {
|
|
19
|
-
// we cleanup media stream only if call is not joined or joining
|
|
20
|
-
disposeOfMediaStream(mediaStream);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}, []);
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=useCallMediaStreamCleanup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCallMediaStreamCleanup.js","sourceRoot":"","sources":["../../../../src/hooks/internal/useCallMediaStreamCleanup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1C;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC5C,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,6EAA6E;IAC7E,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7B,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAEvB,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,GAAG,EAAE;YACV,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,WAErC,CAAC;YACd,IACE,WAAW;gBACX,CAAC,CACC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,YAAY,KAAK,YAAY,CAAC,MAAM;oBAC3D,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,YAAY,KAAK,YAAY,CAAC,OAAO,CAC7D,EACD;gBACA,gEAAgE;gBAChE,oBAAoB,CAAC,WAAW,CAAC,CAAC;aACnC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC"}
|