@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
|
@@ -0,0 +1,184 @@
|
|
|
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
|
+
/**
|
|
14
|
+
* Props for the VideoRenderer component.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* This component is used to display the video of the participant and fallback when the video is muted.
|
|
19
|
+
*
|
|
20
|
+
* It internally used `RTCView` to render video stream.
|
|
21
|
+
*/
|
|
22
|
+
export const VideoRenderer = _ref => {
|
|
23
|
+
let {
|
|
24
|
+
trackType = 'videoTrack',
|
|
25
|
+
participant,
|
|
26
|
+
isVisible = true,
|
|
27
|
+
ParticipantVideoFallback = DefaultParticipantVideoFallback,
|
|
28
|
+
videoZOrder = 0
|
|
29
|
+
} = _ref;
|
|
30
|
+
const {
|
|
31
|
+
theme: {
|
|
32
|
+
videoRenderer
|
|
33
|
+
}
|
|
34
|
+
} = useTheme();
|
|
35
|
+
const call = useCall();
|
|
36
|
+
const {
|
|
37
|
+
useCallCallingState,
|
|
38
|
+
useCameraState
|
|
39
|
+
} = useCallStateHooks();
|
|
40
|
+
const callingState = useCallCallingState();
|
|
41
|
+
const pendingVideoLayoutRef = useRef();
|
|
42
|
+
const subscribedVideoLayoutRef = useRef();
|
|
43
|
+
const {
|
|
44
|
+
direction
|
|
45
|
+
} = useCameraState();
|
|
46
|
+
const {
|
|
47
|
+
isLocalParticipant,
|
|
48
|
+
sessionId,
|
|
49
|
+
publishedTracks,
|
|
50
|
+
viewportVisibilityState,
|
|
51
|
+
videoStream,
|
|
52
|
+
screenShareStream
|
|
53
|
+
} = participant;
|
|
54
|
+
const isScreenSharing = trackType === 'screenShareTrack';
|
|
55
|
+
const isPublishingVideoTrack = publishedTracks.includes(isScreenSharing ? SfuModels.TrackType.SCREEN_SHARE : SfuModels.TrackType.VIDEO);
|
|
56
|
+
const hasJoinedCall = callingState === CallingState.JOINED;
|
|
57
|
+
const canShowVideo = !!videoStream && isVisible && isPublishingVideoTrack;
|
|
58
|
+
const videoStreamToRender = isScreenSharing ? screenShareStream : videoStream;
|
|
59
|
+
const mirror = isLocalParticipant && direction === 'front';
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* This effect updates the participant's viewportVisibilityState
|
|
63
|
+
* Additionally makes sure that when this view becomes visible again, the layout to subscribe is known
|
|
64
|
+
*/
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
if (!call) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (!isVisible) {
|
|
70
|
+
if ((viewportVisibilityState === null || viewportVisibilityState === void 0 ? void 0 : viewportVisibilityState.videoTrack) !== VisibilityState.VISIBLE) {
|
|
71
|
+
call.state.updateParticipant(sessionId, p => ({
|
|
72
|
+
...p,
|
|
73
|
+
viewportVisibilityState: {
|
|
74
|
+
...(p.viewportVisibilityState ?? DEFAULT_VIEWPORT_VISIBILITY_STATE),
|
|
75
|
+
videoTrack: VisibilityState.VISIBLE
|
|
76
|
+
}
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
79
|
+
} else {
|
|
80
|
+
if ((viewportVisibilityState === null || viewportVisibilityState === void 0 ? void 0 : viewportVisibilityState.videoTrack) !== VisibilityState.INVISIBLE) {
|
|
81
|
+
call.state.updateParticipant(sessionId, p => ({
|
|
82
|
+
...p,
|
|
83
|
+
viewportVisibilityState: {
|
|
84
|
+
...(p.viewportVisibilityState ?? DEFAULT_VIEWPORT_VISIBILITY_STATE),
|
|
85
|
+
videoTrack: VisibilityState.INVISIBLE
|
|
86
|
+
}
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
if (subscribedVideoLayoutRef.current) {
|
|
90
|
+
// when video is enabled again, we want to use the last subscribed dimension to resubscribe
|
|
91
|
+
pendingVideoLayoutRef.current = subscribedVideoLayoutRef.current;
|
|
92
|
+
subscribedVideoLayoutRef.current = undefined;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}, [sessionId, viewportVisibilityState, isVisible, call]);
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
if (!hasJoinedCall && subscribedVideoLayoutRef.current) {
|
|
98
|
+
// when call is joined again, we want to use the last subscribed dimension to resubscribe
|
|
99
|
+
pendingVideoLayoutRef.current = subscribedVideoLayoutRef.current;
|
|
100
|
+
subscribedVideoLayoutRef.current = undefined;
|
|
101
|
+
}
|
|
102
|
+
}, [hasJoinedCall]);
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* This effect updates the subscription either
|
|
106
|
+
* 1. when video tracks are published and was unpublished before
|
|
107
|
+
* 2. when the view's visibility changes
|
|
108
|
+
* 3. when call was rejoined
|
|
109
|
+
*/
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
// NOTE: We only want to update the subscription if the pendingVideoLayoutRef is set
|
|
112
|
+
const updateIsNeeded = pendingVideoLayoutRef.current;
|
|
113
|
+
if (!updateIsNeeded || !call || !isPublishingVideoTrack || !hasJoinedCall) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// NOTE: When the view is not visible, we want to subscribe to audio only.
|
|
118
|
+
// We unsubscribe their video by setting the dimension to undefined
|
|
119
|
+
const dimension = isVisible ? pendingVideoLayoutRef.current : undefined;
|
|
120
|
+
call.updateSubscriptionsPartial(trackType, {
|
|
121
|
+
[sessionId]: {
|
|
122
|
+
dimension
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
if (dimension) {
|
|
126
|
+
subscribedVideoLayoutRef.current = pendingVideoLayoutRef.current;
|
|
127
|
+
pendingVideoLayoutRef.current = undefined;
|
|
128
|
+
}
|
|
129
|
+
}, [call, isPublishingVideoTrack, trackType, isVisible, sessionId, hasJoinedCall]);
|
|
130
|
+
useEffect(() => {
|
|
131
|
+
return () => {
|
|
132
|
+
subscribedVideoLayoutRef.current = undefined;
|
|
133
|
+
pendingVideoLayoutRef.current = undefined;
|
|
134
|
+
};
|
|
135
|
+
}, [trackType, sessionId]);
|
|
136
|
+
const onLayout = event => {
|
|
137
|
+
var _subscribedVideoLayou, _subscribedVideoLayou2;
|
|
138
|
+
const dimension = {
|
|
139
|
+
width: Math.trunc(event.nativeEvent.layout.width),
|
|
140
|
+
height: Math.trunc(event.nativeEvent.layout.height)
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
// NOTE: If the participant hasn't published a video track yet,
|
|
144
|
+
// or the view is not viewable, we store the dimensions and handle it
|
|
145
|
+
// when the track is published or the video is enabled.
|
|
146
|
+
if (!call || !isPublishingVideoTrack || !isVisible || !hasJoinedCall) {
|
|
147
|
+
pendingVideoLayoutRef.current = dimension;
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// NOTE: We don't want to update the subscription if the dimension hasn't changed
|
|
152
|
+
if (((_subscribedVideoLayou = subscribedVideoLayoutRef.current) === null || _subscribedVideoLayou === void 0 ? void 0 : _subscribedVideoLayou.width) === dimension.width && ((_subscribedVideoLayou2 = subscribedVideoLayoutRef.current) === null || _subscribedVideoLayou2 === void 0 ? void 0 : _subscribedVideoLayou2.height) === dimension.height) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
call.updateSubscriptionsPartial(trackType, {
|
|
156
|
+
[sessionId]: {
|
|
157
|
+
dimension
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
subscribedVideoLayoutRef.current = dimension;
|
|
161
|
+
pendingVideoLayoutRef.current = undefined;
|
|
162
|
+
};
|
|
163
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
164
|
+
onLayout: onLayout,
|
|
165
|
+
style: [styles.container, videoRenderer.container]
|
|
166
|
+
}, canShowVideo && videoStreamToRender ? /*#__PURE__*/React.createElement(RTCView, {
|
|
167
|
+
style: [styles.videoStream, videoRenderer.videoStream],
|
|
168
|
+
streamURL: videoStreamToRender.toURL(),
|
|
169
|
+
mirror: mirror,
|
|
170
|
+
objectFit: isScreenSharing ? 'contain' : 'cover',
|
|
171
|
+
zOrder: videoZOrder
|
|
172
|
+
}) : ParticipantVideoFallback && /*#__PURE__*/React.createElement(ParticipantVideoFallback, {
|
|
173
|
+
participant: participant
|
|
174
|
+
}));
|
|
175
|
+
};
|
|
176
|
+
const styles = StyleSheet.create({
|
|
177
|
+
container: {
|
|
178
|
+
...StyleSheet.absoluteFillObject
|
|
179
|
+
},
|
|
180
|
+
videoStream: {
|
|
181
|
+
...StyleSheet.absoluteFillObject
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
//# sourceMappingURL=VideoRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","StyleSheet","View","RTCView","CallingState","SfuModels","VisibilityState","useCall","useCallStateHooks","ParticipantVideoFallback","DefaultParticipantVideoFallback","useTheme","DEFAULT_VIEWPORT_VISIBILITY_STATE","videoTrack","UNKNOWN","screenShareTrack","VideoRenderer","_ref","trackType","participant","isVisible","videoZOrder","theme","videoRenderer","call","useCallCallingState","useCameraState","callingState","pendingVideoLayoutRef","subscribedVideoLayoutRef","direction","isLocalParticipant","sessionId","publishedTracks","viewportVisibilityState","videoStream","screenShareStream","isScreenSharing","isPublishingVideoTrack","includes","TrackType","SCREEN_SHARE","VIDEO","hasJoinedCall","JOINED","canShowVideo","videoStreamToRender","mirror","VISIBLE","state","updateParticipant","p","INVISIBLE","current","undefined","updateIsNeeded","dimension","updateSubscriptionsPartial","onLayout","event","_subscribedVideoLayou","_subscribedVideoLayou2","width","Math","trunc","nativeEvent","layout","height","createElement","style","styles","container","streamURL","toURL","objectFit","zOrder","create","absoluteFillObject"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/VideoRenderer.tsx"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/index.ts"],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,uBAAuB;AACrC,cAAc,4BAA4B;AAC1C,cAAc,mBAAmB;AACjC,cAAc,sCAAsC;AACpD,cAAc,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Participant/index.ts"],"mappings":"AAAA,cAAc,2BAA2B;AACzC,cAAc,mBAAmB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA;AACA,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,eAAe"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
/**
|
|
8
|
+
* Props to be passed for the Avatar component.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Shows either user's image or initials based on the user state and existence of
|
|
13
|
+
* their image.
|
|
14
|
+
*/
|
|
15
|
+
export const Avatar = props => {
|
|
16
|
+
const {
|
|
17
|
+
participant: {
|
|
18
|
+
userId,
|
|
19
|
+
image,
|
|
20
|
+
name
|
|
21
|
+
},
|
|
22
|
+
size = 100,
|
|
23
|
+
style: styleProp
|
|
24
|
+
} = props;
|
|
25
|
+
const {
|
|
26
|
+
theme: {
|
|
27
|
+
avatar,
|
|
28
|
+
colors,
|
|
29
|
+
typefaces
|
|
30
|
+
}
|
|
31
|
+
} = useTheme();
|
|
32
|
+
const userDetails = name || userId;
|
|
33
|
+
const userLabel = userDetails ? getInitialsOfName(userDetails) : '?';
|
|
34
|
+
const imageUrl = image;
|
|
35
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
36
|
+
testID: ComponentTestIds.PARTICIPANT_AVATAR,
|
|
37
|
+
style: [styles.container, {
|
|
38
|
+
borderRadius: size / 2,
|
|
39
|
+
height: size,
|
|
40
|
+
width: size
|
|
41
|
+
}, {
|
|
42
|
+
backgroundColor: colors.primary
|
|
43
|
+
}, avatar.container, styleProp === null || styleProp === void 0 ? void 0 : styleProp.container]
|
|
44
|
+
}, imageUrl ? /*#__PURE__*/React.createElement(Image, {
|
|
45
|
+
testID: ImageTestIds.AVATAR,
|
|
46
|
+
source: {
|
|
47
|
+
uri: imageUrl
|
|
48
|
+
},
|
|
49
|
+
style: [styles.image, avatar.image, styleProp === null || styleProp === void 0 ? void 0 : styleProp.image]
|
|
50
|
+
}) : /*#__PURE__*/React.createElement(Text, {
|
|
51
|
+
style: [styles.text, {
|
|
52
|
+
fontSize: size / 2,
|
|
53
|
+
color: colors.bars
|
|
54
|
+
}, typefaces.heading6, avatar.text, styleProp === null || styleProp === void 0 ? void 0 : styleProp.text],
|
|
55
|
+
numberOfLines: 1
|
|
56
|
+
}, userLabel));
|
|
57
|
+
};
|
|
58
|
+
const styles = StyleSheet.create({
|
|
59
|
+
container: {
|
|
60
|
+
justifyContent: 'center',
|
|
61
|
+
overflow: 'hidden'
|
|
62
|
+
},
|
|
63
|
+
image: {
|
|
64
|
+
flex: 1
|
|
65
|
+
},
|
|
66
|
+
text: {
|
|
67
|
+
textAlign: 'center'
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//# sourceMappingURL=Avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Image","StyleSheet","Text","View","React","getInitialsOfName","ComponentTestIds","ImageTestIds","useTheme","Avatar","props","participant","userId","image","name","size","style","styleProp","theme","avatar","colors","typefaces","userDetails","userLabel","imageUrl","createElement","testID","PARTICIPANT_AVATAR","styles","container","borderRadius","height","width","backgroundColor","primary","AVATAR","source","uri","text","fontSize","color","bars","heading6","numberOfLines","create","justifyContent","overflow","flex","textAlign"],"sourceRoot":"../../../../src","sources":["components/utility/Avatar.tsx"],"mappings":"AAAA,SAASA,KAAK,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC5D,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,iBAAiB,QAAQ,aAAa;AAC/C,SAASC,gBAAgB,EAAEC,YAAY,QAAQ,yBAAyB;AACxE,SAASC,QAAQ,QAAQ,6BAA6B;;AAGtD;AACA;AACA;;AAkCA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,GAAIC,KAAkB,IAAK;EAC5C,MAAM;IACJC,WAAW,EAAE;MAAEC,MAAM;MAAEC,KAAK;MAAEC;IAAK,CAAC;IACpCC,IAAI,GAAG,GAAG;IACVC,KAAK,EAAEC;EACT,CAAC,GAAGP,KAAK;EACT,MAAM;IACJQ,KAAK,EAAE;MAAEC,MAAM;MAAEC,MAAM;MAAEC;IAAU;EACrC,CAAC,GAAGb,QAAQ,CAAC,CAAC;EACd,MAAMc,WAAW,GAAGR,IAAI,IAAIF,MAAM;EAClC,MAAMW,SAAS,GAAGD,WAAW,GAAGjB,iBAAiB,CAACiB,WAAW,CAAC,GAAG,GAAG;EAEpE,MAAME,QAAQ,GAAGX,KAAK;EACtB,oBACET,KAAA,CAAAqB,aAAA,CAACtB,IAAI;IACHuB,MAAM,EAAEpB,gBAAgB,CAACqB,kBAAmB;IAC5CX,KAAK,EAAE,CACLY,MAAM,CAACC,SAAS,EAChB;MACEC,YAAY,EAAEf,IAAI,GAAG,CAAC;MACtBgB,MAAM,EAAEhB,IAAI;MACZiB,KAAK,EAAEjB;IACT,CAAC,EACD;MACEkB,eAAe,EAAEb,MAAM,CAACc;IAC1B,CAAC,EACDf,MAAM,CAACU,SAAS,EAChBZ,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEY,SAAS;EACpB,GAEDL,QAAQ,gBACPpB,KAAA,CAAAqB,aAAA,CAACzB,KAAK;IACJ0B,MAAM,EAAEnB,YAAY,CAAC4B,MAAO;IAC5BC,MAAM,EAAE;MACNC,GAAG,EAAEb;IACP,CAAE;IACFR,KAAK,EAAE,CAACY,MAAM,CAACf,KAAK,EAAEM,MAAM,CAACN,KAAK,EAAEI,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEJ,KAAK;EAAE,CACvD,CAAC,gBAEFT,KAAA,CAAAqB,aAAA,CAACvB,IAAI;IACHc,KAAK,EAAE,CACLY,MAAM,CAACU,IAAI,EACX;MAAEC,QAAQ,EAAExB,IAAI,GAAG,CAAC;MAAEyB,KAAK,EAAEpB,MAAM,CAACqB;IAAK,CAAC,EAC1CpB,SAAS,CAACqB,QAAQ,EAClBvB,MAAM,CAACmB,IAAI,EACXrB,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEqB,IAAI,CACf;IACFK,aAAa,EAAE;EAAE,GAEhBpB,SACG,CAEJ,CAAC;AAEX,CAAC;AAED,MAAMK,MAAM,GAAG3B,UAAU,CAAC2C,MAAM,CAAC;EAC/Bf,SAAS,EAAE;IACTgB,cAAc,EAAE,QAAQ;IACxBC,QAAQ,EAAE;EACZ,CAAC;EACDjC,KAAK,EAAE;IACLkC,IAAI,EAAE;EACR,CAAC;EACDT,IAAI,EAAE;IACJU,SAAS,EAAE;EACb;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/utility/index.ts"],"mappings":"AAAA,cAAc,UAAU"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export let IconTestIds = /*#__PURE__*/function (IconTestIds) {
|
|
2
|
+
IconTestIds["MUTED_VIDEO"] = "muted-video-icon";
|
|
3
|
+
IconTestIds["HANG_UP_CALL"] = "hang-up-call-icon";
|
|
4
|
+
IconTestIds["SCREEN_SHARE"] = "screen-share-icon";
|
|
5
|
+
return IconTestIds;
|
|
6
|
+
}({});
|
|
7
|
+
export let ComponentTestIds = /*#__PURE__*/function (ComponentTestIds) {
|
|
8
|
+
ComponentTestIds["PARTICIPANT_AVATAR"] = "participant-avatar";
|
|
9
|
+
ComponentTestIds["CALL_PARTICIPANTS_LIST"] = "call-participants-list";
|
|
10
|
+
ComponentTestIds["CALL_PARTICIPANTS_SPOTLIGHT"] = "call-participants-spotlight";
|
|
11
|
+
ComponentTestIds["CALL_PARTICIPANTS_GRID"] = "call-participants-grid";
|
|
12
|
+
ComponentTestIds["LOCAL_PARTICIPANT"] = "local-participant";
|
|
13
|
+
ComponentTestIds["PARTICIPANT_MEDIA_STREAM"] = "participant-media-stream";
|
|
14
|
+
ComponentTestIds["PARTICIPANTS_INFO"] = "participants-info";
|
|
15
|
+
ComponentTestIds["PARTICIPANT_SCREEN_SHARING"] = "participant-screen-sharing";
|
|
16
|
+
ComponentTestIds["REACTIONS_PICKER"] = "reactions-picker";
|
|
17
|
+
ComponentTestIds["CHAT_UNREAD_BADGE_COUNT_INDICATOR"] = "chat-unread-badge-count-indicator";
|
|
18
|
+
return ComponentTestIds;
|
|
19
|
+
}({});
|
|
20
|
+
export let ButtonTestIds = /*#__PURE__*/function (ButtonTestIds) {
|
|
21
|
+
ButtonTestIds["PARTICIPANTS_INFO"] = "participants-info-button";
|
|
22
|
+
ButtonTestIds["HANG_UP_CALL"] = "hang-up-call";
|
|
23
|
+
ButtonTestIds["REACTION"] = "call-controls-reaction";
|
|
24
|
+
return ButtonTestIds;
|
|
25
|
+
}({});
|
|
26
|
+
export let ImageTestIds = /*#__PURE__*/function (ImageTestIds) {
|
|
27
|
+
ImageTestIds["AVATAR"] = "avatar-image";
|
|
28
|
+
return ImageTestIds;
|
|
29
|
+
}({});
|
|
30
|
+
//# sourceMappingURL=TestIds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["IconTestIds","ComponentTestIds","ButtonTestIds","ImageTestIds"],"sourceRoot":"../../../src","sources":["constants/TestIds.ts"],"mappings":"AAAA,WAAYA,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAMvB,WAAYC,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAa5B,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAMzB,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
type: 'reaction',
|
|
9
|
+
emoji_code: ':like:',
|
|
10
|
+
custom: {},
|
|
11
|
+
icon: '👍'
|
|
12
|
+
}, {
|
|
13
|
+
type: 'raised-hand',
|
|
14
|
+
emoji_code: ':raise-hand:',
|
|
15
|
+
custom: {},
|
|
16
|
+
icon: '✋'
|
|
17
|
+
}, {
|
|
18
|
+
type: 'reaction',
|
|
19
|
+
emoji_code: ':fireworks:',
|
|
20
|
+
custom: {},
|
|
21
|
+
icon: '🎉'
|
|
22
|
+
}];
|
|
23
|
+
export const Z_INDEX = {
|
|
24
|
+
IN_BACK: 0,
|
|
25
|
+
IN_MIDDLE: 1,
|
|
26
|
+
IN_FRONT: 2
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["FLOATING_VIDEO_VIEW_STYLE","height","width","borderRadius","LOBBY_VIDEO_VIEW_HEIGHT","defaultEmojiReactions","type","emoji_code","custom","icon","Z_INDEX","IN_BACK","IN_MIDDLE","IN_FRONT"],"sourceRoot":"../../../src","sources":["constants/index.ts"],"mappings":"AAEA,OAAO,MAAMA,yBAAyB,GAAG;EACvCC,MAAM,EAAE,GAAG;EACXC,KAAK,EAAE,EAAE;EACTC,YAAY,EAAE;AAChB,CAAC;AAED,OAAO,MAAMC,uBAAuB,GAAG,GAAG;AAE1C,OAAO,MAAMC,qBAA8D,GAAG,CAC5E;EACEC,IAAI,EAAE,UAAU;EAChBC,UAAU,EAAE,QAAQ;EACpBC,MAAM,EAAE,CAAC,CAAC;EACVC,IAAI,EAAE;AACR,CAAC,EACD;EACEH,IAAI,EAAE,aAAa;EACnBC,UAAU,EAAE,cAAc;EAC1BC,MAAM,EAAE,CAAC,CAAC;EACVC,IAAI,EAAE;AACR,CAAC,EACD;EACEH,IAAI,EAAE,UAAU;EAChBC,UAAU,EAAE,aAAa;EACzBC,MAAM,EAAE,CAAC,CAAC;EACVC,IAAI,EAAE;AACR,CAAC,CACF;AAED,OAAO,MAAMC,OAAO,GAAG;EACrBC,OAAO,EAAE,CAAC;EACVC,SAAS,EAAE,CAAC;EACZC,QAAQ,EAAE;AACZ,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React, { createContext, useContext, useEffect, useRef, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Creates a Atomic store context with a provider and hooks to access the store
|
|
5
|
+
* Atomic means that each value in the store updates state separately using useStoreValue hook
|
|
6
|
+
* Extremely minimalistic implementation of Jotai's store context
|
|
7
|
+
* @param initialState - the initial state of the store
|
|
8
|
+
* @returns - {Provider, useStoreValue, useStoreSetState}
|
|
9
|
+
*/
|
|
10
|
+
function createStoreContext(initialState) {
|
|
11
|
+
// returns unsubscribe function
|
|
12
|
+
|
|
13
|
+
function useStoreData() {
|
|
14
|
+
const storeRef = useRef(initialState);
|
|
15
|
+
const getSnapshot = useRef(() => storeRef.current).current;
|
|
16
|
+
const subscribersRef = useRef([]);
|
|
17
|
+
const setState = useRef(partialStateOrFunc => {
|
|
18
|
+
if (typeof partialStateOrFunc === 'function') {
|
|
19
|
+
const value = partialStateOrFunc(storeRef.current);
|
|
20
|
+
storeRef.current = {
|
|
21
|
+
...storeRef.current,
|
|
22
|
+
...value
|
|
23
|
+
};
|
|
24
|
+
} else {
|
|
25
|
+
storeRef.current = {
|
|
26
|
+
...storeRef.current,
|
|
27
|
+
...partialStateOrFunc
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
subscribersRef.current.forEach(callback => callback());
|
|
31
|
+
}).current;
|
|
32
|
+
const subscribe = useRef(callback => {
|
|
33
|
+
subscribersRef.current.push(callback);
|
|
34
|
+
return () => subscribersRef.current.filter(cb => cb !== callback);
|
|
35
|
+
}).current;
|
|
36
|
+
return {
|
|
37
|
+
getSnapshot,
|
|
38
|
+
setState,
|
|
39
|
+
subscribe
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const StoreContext = /*#__PURE__*/createContext(null);
|
|
43
|
+
function Provider(props) {
|
|
44
|
+
const value = useStoreData();
|
|
45
|
+
return /*#__PURE__*/React.createElement(StoreContext.Provider, {
|
|
46
|
+
value: value
|
|
47
|
+
}, props.children);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @param selector
|
|
52
|
+
* @returns
|
|
53
|
+
*
|
|
54
|
+
* @category Client State
|
|
55
|
+
*/
|
|
56
|
+
function useStoreValue(selector) {
|
|
57
|
+
const store = useContext(StoreContext);
|
|
58
|
+
if (!store) {
|
|
59
|
+
throw new Error('Store not found');
|
|
60
|
+
}
|
|
61
|
+
const [state, setState] = useState(selector(store.getSnapshot()));
|
|
62
|
+
useEffect(() => store.subscribe(() => setState(selector(store.getSnapshot()))), [selector, store]);
|
|
63
|
+
return state;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @returns
|
|
69
|
+
*
|
|
70
|
+
* @category Client State
|
|
71
|
+
*/
|
|
72
|
+
function useStoreSetState() {
|
|
73
|
+
const store = useContext(StoreContext);
|
|
74
|
+
if (!store) {
|
|
75
|
+
throw new Error('Store not found');
|
|
76
|
+
}
|
|
77
|
+
return store.setState;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
Provider,
|
|
81
|
+
useStoreValue,
|
|
82
|
+
useStoreSetState
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Exclude types from documentation site, but we should still add doc comments
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
export const {
|
|
92
|
+
Provider: StreamVideoStoreProvider,
|
|
93
|
+
useStoreValue: useStreamVideoStoreValue,
|
|
94
|
+
useStoreSetState: useStreamVideoStoreSetState
|
|
95
|
+
} = createStoreContext({
|
|
96
|
+
videoDevices: [],
|
|
97
|
+
audioDevices: [],
|
|
98
|
+
currentVideoDevice: undefined,
|
|
99
|
+
currentAudioDevice: undefined
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=StreamVideoContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","createContext","useContext","useEffect","useRef","useState","createStoreContext","initialState","useStoreData","storeRef","getSnapshot","current","subscribersRef","setState","partialStateOrFunc","value","forEach","callback","subscribe","push","filter","cb","StoreContext","Provider","props","createElement","children","useStoreValue","selector","store","Error","state","useStoreSetState","StreamVideoStoreProvider","useStreamVideoStoreValue","useStreamVideoStoreSetState","videoDevices","audioDevices","currentVideoDevice","undefined","currentAudioDevice"],"sourceRoot":"../../../src","sources":["contexts/StreamVideoContext.tsx"],"mappings":"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"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 {
|
|
6
|
+
style,
|
|
7
|
+
theme
|
|
8
|
+
} = params;
|
|
9
|
+
const finalTheme = !theme || Object.keys(theme).length === 0 ? JSON.parse(JSON.stringify(defaultTheme)) : JSON.parse(JSON.stringify(theme));
|
|
10
|
+
if (style) {
|
|
11
|
+
merge(finalTheme, style);
|
|
12
|
+
}
|
|
13
|
+
return finalTheme;
|
|
14
|
+
};
|
|
15
|
+
const DEFAULT_BASE_CONTEXT_VALUE = {};
|
|
16
|
+
export const ThemeContext = /*#__PURE__*/createContext(DEFAULT_BASE_CONTEXT_VALUE);
|
|
17
|
+
export const ThemeProvider = props => {
|
|
18
|
+
const {
|
|
19
|
+
children,
|
|
20
|
+
mergedStyle,
|
|
21
|
+
style,
|
|
22
|
+
theme
|
|
23
|
+
} = props;
|
|
24
|
+
const modifiedTheme = useMemo(() => {
|
|
25
|
+
if (mergedStyle) {
|
|
26
|
+
return mergedStyle;
|
|
27
|
+
}
|
|
28
|
+
return mergeThemes({
|
|
29
|
+
style,
|
|
30
|
+
theme
|
|
31
|
+
});
|
|
32
|
+
}, [mergedStyle, style, theme]);
|
|
33
|
+
return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
|
|
34
|
+
value: modifiedTheme
|
|
35
|
+
}, children);
|
|
36
|
+
};
|
|
37
|
+
export const useTheme = () => {
|
|
38
|
+
const theme = useContext(ThemeContext);
|
|
39
|
+
if (theme === DEFAULT_BASE_CONTEXT_VALUE) {
|
|
40
|
+
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');
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
theme
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=ThemeContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","createContext","useContext","useMemo","merge","defaultTheme","mergeThemes","params","style","theme","finalTheme","Object","keys","length","JSON","parse","stringify","DEFAULT_BASE_CONTEXT_VALUE","ThemeContext","ThemeProvider","props","children","mergedStyle","modifiedTheme","createElement","Provider","value","useTheme","Error"],"sourceRoot":"../../../src","sources":["contexts/ThemeContext.tsx"],"mappings":"AAAA,OAAOA,KAAK,IACVC,aAAa,EAEbC,UAAU,EACVC,OAAO,QACF,OAAO;AAEd,OAAOC,KAAK,MAAM,cAAc;AAEhC,SAASC,YAAY,QAAe,gBAAgB;AAoBpD,OAAO,MAAMC,WAAW,GAAIC,MAA0B,IAAK;EACzD,MAAM;IAAEC,KAAK;IAAEC;EAAM,CAAC,GAAGF,MAAM;EAC/B,MAAMG,UAAU,GACd,CAACD,KAAK,IAAIE,MAAM,CAACC,IAAI,CAACH,KAAK,CAAC,CAACI,MAAM,KAAK,CAAC,GACrCC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,SAAS,CAACX,YAAY,CAAC,CAAC,GACxCS,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,SAAS,CAACP,KAAK,CAAC,CAC5B;EAEV,IAAID,KAAK,EAAE;IACTJ,KAAK,CAACM,UAAU,EAAEF,KAAK,CAAC;EAC1B;EAEA,OAAOE,UAAU;AACnB,CAAC;AAED,MAAMO,0BAA0B,GAAG,CAAC,CAAC;AAErC,OAAO,MAAMC,YAAY,gBAAGjB,aAAa,CACvCgB,0BACF,CAAC;AAED,OAAO,MAAME,aAEZ,GAAIC,KAAK,IAAK;EACb,MAAM;IAAEC,QAAQ;IAAEC,WAAW;IAAEd,KAAK;IAAEC;EAAM,CAAC,GAAGW,KAAK;EAErD,MAAMG,aAAa,GAAGpB,OAAO,CAAC,MAAM;IAClC,IAAImB,WAAW,EAAE;MACf,OAAOA,WAAW;IACpB;IAEA,OAAOhB,WAAW,CAAC;MAAEE,KAAK;MAAEC;IAAM,CAAC,CAAC;EACtC,CAAC,EAAE,CAACa,WAAW,EAAEd,KAAK,EAAEC,KAAK,CAAC,CAAC;EAE/B,oBACET,KAAA,CAAAwB,aAAA,CAACN,YAAY,CAACO,QAAQ;IAACC,KAAK,EAAEH;EAAc,GACzCF,QACoB,CAAC;AAE5B,CAAC;AAED,OAAO,MAAMM,QAAQ,GAAGA,CAAA,KAAM;EAC5B,MAAMlB,KAAK,GAAGP,UAAU,CAACgB,YAAY,CAAC;EAEtC,IAAIT,KAAK,KAAKQ,0BAA0B,EAAE;IACxC,MAAM,IAAIW,KAAK,CACb,sOACF,CAAC;EACH;EACA,OAAO;IAAEnB;EAAM,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["contexts/index.ts"],"mappings":"AAAA,cAAc,sBAAsB;AACpC,cAAc,gBAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["hooks/index.ts"],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,6BAA6B;AAC3C,cAAc,QAAQ;AACtB,cAAc,iCAAiC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* This hook is meant to be used in Lobby view or equivalent.
|
|
7
|
+
* It will cleanup the media stream on unmount if call is not meant to be joined.
|
|
8
|
+
*/
|
|
9
|
+
export const useCallMediaStreamCleanup = () => {
|
|
10
|
+
const call = useCall();
|
|
11
|
+
// keeping a reference of call to handle cleanup media stream only on unmount
|
|
12
|
+
const callRef = useRef(call);
|
|
13
|
+
callRef.current = call;
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
return () => {
|
|
16
|
+
var _callRef$current, _callRef$current2, _callRef$current3;
|
|
17
|
+
const mediaStream = (_callRef$current = callRef.current) === null || _callRef$current === void 0 ? void 0 : _callRef$current.camera.state.mediaStream;
|
|
18
|
+
if (mediaStream && !(((_callRef$current2 = callRef.current) === null || _callRef$current2 === void 0 ? void 0 : _callRef$current2.state.callingState) === CallingState.JOINED || ((_callRef$current3 = callRef.current) === null || _callRef$current3 === void 0 ? void 0 : _callRef$current3.state.callingState) === CallingState.JOINING)) {
|
|
19
|
+
// we cleanup media stream only if call is not joined or joining
|
|
20
|
+
// @ts-expect-error Due to DOM typing incompatible with RN
|
|
21
|
+
disposeOfMediaStream(mediaStream);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}, []);
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=useCallMediaStreamCleanup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CallingState","disposeOfMediaStream","useCall","useEffect","useRef","useCallMediaStreamCleanup","call","callRef","current","_callRef$current","_callRef$current2","_callRef$current3","mediaStream","camera","state","callingState","JOINED","JOINING"],"sourceRoot":"../../../../src","sources":["hooks/internal/useCallMediaStreamCleanup.ts"],"mappings":"AACA,SAASA,YAAY,EAAEC,oBAAoB,QAAQ,yBAAyB;AAC5E,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,SAAS,EAAEC,MAAM,QAAQ,OAAO;;AAEzC;AACA;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,MAAMC,IAAI,GAAGJ,OAAO,CAAC,CAAC;EACtB;EACA,MAAMK,OAAO,GAAGH,MAAM,CAACE,IAAI,CAAC;EAC5BC,OAAO,CAACC,OAAO,GAAGF,IAAI;EAEtBH,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MAAA,IAAAM,gBAAA,EAAAC,iBAAA,EAAAC,iBAAA;MACX,MAAMC,WAAW,IAAAH,gBAAA,GAAGF,OAAO,CAACC,OAAO,cAAAC,gBAAA,uBAAfA,gBAAA,CAAiBI,MAAM,CAACC,KAAK,CAACF,WAErC;MACb,IACEA,WAAW,IACX,EACE,EAAAF,iBAAA,GAAAH,OAAO,CAACC,OAAO,cAAAE,iBAAA,uBAAfA,iBAAA,CAAiBI,KAAK,CAACC,YAAY,MAAKf,YAAY,CAACgB,MAAM,IAC3D,EAAAL,iBAAA,GAAAJ,OAAO,CAACC,OAAO,cAAAG,iBAAA,uBAAfA,iBAAA,CAAiBG,KAAK,CAACC,YAAY,MAAKf,YAAY,CAACiB,OAAO,CAC7D,EACD;QACA;QACA;QACAhB,oBAAoB,CAACW,WAAW,CAAC;MACnC;IACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AACR,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useIosCallKeepEventsSetupEffect } from './useIosCallKeepEventsSetupEffect';
|
|
2
|
+
import { useIosVoipPushEventsSetupEffect } from './useIosVoipPushEventsSetupEffect';
|
|
3
|
+
import { useProcessPushCallEffect } from './useProcessPushCallEffect';
|
|
4
|
+
import { useInitAndroidTokenAndRest } from './useInitAndroidTokenAndRest';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This hook is used to do the initial setup for push notifications.
|
|
8
|
+
* It must be used in a component which is a child of StreamVideo from bindings
|
|
9
|
+
*/
|
|
10
|
+
export const usePushRegisterEffect = () => {
|
|
11
|
+
useIosCallKeepEventsSetupEffect();
|
|
12
|
+
useIosVoipPushEventsSetupEffect();
|
|
13
|
+
useProcessPushCallEffect();
|
|
14
|
+
useInitAndroidTokenAndRest();
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useIosCallKeepEventsSetupEffect","useIosVoipPushEventsSetupEffect","useProcessPushCallEffect","useInitAndroidTokenAndRest","usePushRegisterEffect"],"sourceRoot":"../../../../src","sources":["hooks/push/index.ts"],"mappings":"AAAA,SAASA,+BAA+B,QAAQ,mCAAmC;AACnF,SAASC,+BAA+B,QAAQ,mCAAmC;AACnF,SAASC,wBAAwB,QAAQ,4BAA4B;AACrE,SAASC,0BAA0B,QAAQ,8BAA8B;;AAEzE;AACA;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KAAM;EACzCJ,+BAA+B,CAAC,CAAC;EACjCC,+BAA+B,CAAC,CAAC;EACjCC,wBAAwB,CAAC,CAAC;EAC1BC,0BAA0B,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useConnectedUser, useStreamVideoClient } from '@stream-io/video-react-bindings';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import { StreamVideoRN } from '../../utils';
|
|
4
|
+
import { initAndroidPushToken } from '../../utils/push/android';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This hook is used to initialize the push token for Android and ask notification permissions.
|
|
8
|
+
*/
|
|
9
|
+
export const useInitAndroidTokenAndRest = () => {
|
|
10
|
+
var _useConnectedUser;
|
|
11
|
+
const client = useStreamVideoClient();
|
|
12
|
+
const connectedUserId = (_useConnectedUser = useConnectedUser()) === null || _useConnectedUser === void 0 ? void 0 : _useConnectedUser.id;
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
const pushConfig = StreamVideoRN.getConfig().push;
|
|
15
|
+
// NOTE: we need to wait for user to be connected before we can send the push token
|
|
16
|
+
if (!client || !connectedUserId || !pushConfig) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
initAndroidPushToken(client, pushConfig);
|
|
20
|
+
}, [client, connectedUserId]);
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useInitAndroidTokenAndRest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useConnectedUser","useStreamVideoClient","useEffect","StreamVideoRN","initAndroidPushToken","useInitAndroidTokenAndRest","_useConnectedUser","client","connectedUserId","id","pushConfig","getConfig","push"],"sourceRoot":"../../../../src","sources":["hooks/push/useInitAndroidTokenAndRest.ts"],"mappings":"AAAA,SACEA,gBAAgB,EAChBC,oBAAoB,QACf,iCAAiC;AACxC,SAASC,SAAS,QAAQ,OAAO;AACjC,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,oBAAoB,QAAQ,0BAA0B;;AAE/D;AACA;AACA;AACA,OAAO,MAAMC,0BAA0B,GAAGA,CAAA,KAAM;EAAA,IAAAC,iBAAA;EAC9C,MAAMC,MAAM,GAAGN,oBAAoB,CAAC,CAAC;EACrC,MAAMO,eAAe,IAAAF,iBAAA,GAAGN,gBAAgB,CAAC,CAAC,cAAAM,iBAAA,uBAAlBA,iBAAA,CAAoBG,EAAE;EAC9CP,SAAS,CAAC,MAAM;IACd,MAAMQ,UAAU,GAAGP,aAAa,CAACQ,SAAS,CAAC,CAAC,CAACC,IAAI;IACjD;IACA,IAAI,CAACL,MAAM,IAAI,CAACC,eAAe,IAAI,CAACE,UAAU,EAAE;MAC9C;IACF;IACAN,oBAAoB,CAACG,MAAM,EAAEG,UAAU,CAAC;EAC1C,CAAC,EAAE,CAACH,MAAM,EAAEC,eAAe,CAAC,CAAC;AAC/B,CAAC"}
|