@stream-io/video-react-native-sdk 0.8.6 → 0.8.8
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 +13 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js +5 -5
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControls.js +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +3 -3
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ChatButton.js +1 -1
- package/dist/commonjs/components/Call/CallControls/ChatButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +1 -1
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js +1 -1
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js +1 -1
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +3 -3
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js +8 -80
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +8 -8
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +2 -2
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +3 -3
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +4 -5
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/commonjs/components/Call/CallParticipantsList/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js +2 -2
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js.map +1 -1
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js +1 -1
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js.map +1 -1
- package/dist/commonjs/components/Call/CallTopView/index.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +3 -3
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js +6 -6
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +3 -3
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/index.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +2 -2
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/JoiningCallIndicator.js +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/JoiningCallIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +2 -2
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +4 -4
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/index.js.map +1 -1
- package/dist/commonjs/components/Call/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +3 -3
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +8 -8
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +7 -69
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +3 -3
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +5 -6
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +10 -9
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +5 -5
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +3 -3
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/index.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +5 -6
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +4 -4
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +2 -2
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +3 -3
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +3 -3
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js +7 -8
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/index.js.map +1 -1
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/components/utility/Avatar.js +4 -4
- package/dist/commonjs/components/utility/Avatar.js.map +1 -1
- package/dist/commonjs/components/utility/ScreenShareOverlay.js +2 -2
- package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/commonjs/components/utility/index.js.map +1 -1
- package/dist/commonjs/constants/TestIds.js.map +1 -1
- package/dist/commonjs/constants/index.js.map +1 -1
- package/dist/commonjs/contexts/BackgroundFilters.js +7 -12
- package/dist/commonjs/contexts/BackgroundFilters.js.map +1 -1
- package/dist/commonjs/contexts/StreamVideoContext.js +2 -2
- package/dist/commonjs/contexts/StreamVideoContext.js.map +1 -1
- package/dist/commonjs/contexts/ThemeContext.js +3 -3
- package/dist/commonjs/contexts/ThemeContext.js.map +1 -1
- package/dist/commonjs/contexts/index.js.map +1 -1
- package/dist/commonjs/hooks/index.js +11 -0
- package/dist/commonjs/hooks/index.js.map +1 -1
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js +2 -3
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/commonjs/hooks/push/index.js.map +1 -1
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +1 -2
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js +1 -1
- package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +7 -7
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosInitRemoteNotifications.js +1 -2
- package/dist/commonjs/hooks/push/useIosInitRemoteNotifications.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +6 -8
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +1 -2
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js +1 -3
- package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +3 -5
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/commonjs/hooks/useApplyDefaultMediaStreamSettings.js +7 -7
- package/dist/commonjs/hooks/useApplyDefaultMediaStreamSettings.js.map +1 -1
- package/dist/commonjs/hooks/useAutoEnterPiPEffect.js.map +1 -1
- package/dist/commonjs/hooks/useIsInPiPMode.js +1 -2
- package/dist/commonjs/hooks/useIsInPiPMode.js.map +1 -1
- package/dist/commonjs/hooks/useIsIosScreenshareBroadcastStarted.js.map +1 -1
- package/dist/commonjs/hooks/usePaginatedLayoutSortPreset.js.map +1 -1
- package/dist/commonjs/hooks/usePermissionNotification.js.map +1 -1
- package/dist/commonjs/hooks/usePermissionRequest.js +2 -2
- package/dist/commonjs/hooks/usePermissionRequest.js.map +1 -1
- package/dist/commonjs/hooks/useScreenShareButton.js +89 -0
- package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -0
- package/dist/commonjs/icons/Back.js +1 -1
- package/dist/commonjs/icons/Back.js.map +1 -1
- package/dist/commonjs/icons/CameraSwitch.js +1 -1
- package/dist/commonjs/icons/CameraSwitch.js.map +1 -1
- package/dist/commonjs/icons/Chat.js +1 -1
- package/dist/commonjs/icons/Chat.js.map +1 -1
- package/dist/commonjs/icons/EndStreamIcon.js +1 -1
- package/dist/commonjs/icons/EndStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/Eye.js +1 -1
- package/dist/commonjs/icons/Eye.js.map +1 -1
- package/dist/commonjs/icons/LeaveStreamIcon.js +1 -1
- package/dist/commonjs/icons/LeaveStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/Mic.js +1 -1
- package/dist/commonjs/icons/Mic.js.map +1 -1
- package/dist/commonjs/icons/MicOff.js +1 -1
- package/dist/commonjs/icons/MicOff.js.map +1 -1
- package/dist/commonjs/icons/Participants.js +1 -1
- package/dist/commonjs/icons/Participants.js.map +1 -1
- package/dist/commonjs/icons/Phone.js +1 -1
- package/dist/commonjs/icons/Phone.js.map +1 -1
- package/dist/commonjs/icons/PhoneDown.js +1 -1
- package/dist/commonjs/icons/PhoneDown.js.map +1 -1
- package/dist/commonjs/icons/PinVertical.js +1 -1
- package/dist/commonjs/icons/PinVertical.js.map +1 -1
- package/dist/commonjs/icons/Reaction.js +1 -1
- package/dist/commonjs/icons/Reaction.js.map +1 -1
- package/dist/commonjs/icons/ScreenShare.js +3 -3
- package/dist/commonjs/icons/ScreenShare.js.map +1 -1
- package/dist/commonjs/icons/ScreenShareIndicator.js +3 -3
- package/dist/commonjs/icons/ScreenShareIndicator.js.map +1 -1
- package/dist/commonjs/icons/Settings.js +3 -3
- package/dist/commonjs/icons/Settings.js.map +1 -1
- package/dist/commonjs/icons/ShieldBadge.js +1 -1
- package/dist/commonjs/icons/ShieldBadge.js.map +1 -1
- package/dist/commonjs/icons/Spotlight.js +1 -1
- package/dist/commonjs/icons/Spotlight.js.map +1 -1
- package/dist/commonjs/icons/StartStreamIcon.js +1 -1
- package/dist/commonjs/icons/StartStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/StopScreenShare.js +3 -3
- package/dist/commonjs/icons/StopScreenShare.js.map +1 -1
- package/dist/commonjs/icons/ThreeDots.js +1 -1
- package/dist/commonjs/icons/ThreeDots.js.map +1 -1
- package/dist/commonjs/icons/TopViewBackground.js +1 -1
- package/dist/commonjs/icons/TopViewBackground.js.map +1 -1
- package/dist/commonjs/icons/Video.js +1 -1
- package/dist/commonjs/icons/Video.js.map +1 -1
- package/dist/commonjs/icons/VideoSlash.js +1 -1
- package/dist/commonjs/icons/VideoSlash.js.map +1 -1
- package/dist/commonjs/icons/index.js.map +1 -1
- package/dist/commonjs/index.js +2 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/providers/StreamCall.js +6 -10
- package/dist/commonjs/providers/StreamCall.js.map +1 -1
- package/dist/commonjs/providers/StreamVideo.js +4 -5
- package/dist/commonjs/providers/StreamVideo.js.map +1 -1
- package/dist/commonjs/theme/colors.js.map +1 -1
- package/dist/commonjs/theme/constants.js.map +1 -1
- package/dist/commonjs/theme/index.js.map +1 -1
- package/dist/commonjs/theme/theme.js.map +1 -1
- package/dist/commonjs/theme/types.js.map +1 -1
- package/dist/commonjs/translations/index.js +1 -1
- package/dist/commonjs/translations/index.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js +3 -5
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/types.js.map +1 -1
- package/dist/commonjs/utils/enterPiPAndroid.js +1 -2
- package/dist/commonjs/utils/enterPiPAndroid.js.map +1 -1
- package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js +1 -2
- package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
- package/dist/commonjs/utils/hooks/index.js.map +1 -1
- package/dist/commonjs/utils/hooks/useDebouncedValue.js.map +1 -1
- package/dist/commonjs/utils/hooks/usePrevious.js.map +1 -1
- package/dist/commonjs/utils/index.js.map +1 -1
- package/dist/commonjs/utils/internal/newNotificationCallbacks.js.map +1 -1
- package/dist/commonjs/utils/internal/optionallibs/gestureHandler.js.map +1 -1
- package/dist/commonjs/utils/internal/optionallibs/index.js.map +1 -1
- package/dist/commonjs/utils/internal/optionallibs/reanimated.js.map +1 -1
- package/dist/commonjs/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/commonjs/utils/push/android.js +11 -19
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/ios.js +7 -10
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/utils/push/libs/callkeep.js.map +1 -1
- package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/commonjs/utils/push/libs/expoTaskManager.js.map +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging.js.map +1 -1
- package/dist/commonjs/utils/push/libs/index.js.map +1 -1
- package/dist/commonjs/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +1 -1
- package/dist/commonjs/utils/push/rxSubjects.js.map +1 -1
- package/dist/commonjs/utils/push/utils.js +2 -2
- package/dist/commonjs/utils/push/utils.js.map +1 -1
- package/dist/commonjs/utils/setClientDetails.js +1 -1
- package/dist/commonjs/utils/setClientDetails.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/commonjs/version.js.map +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +2 -2
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallContent/index.js.map +1 -1
- package/dist/module/components/Call/CallControls/AcceptCallButton.js +1 -1
- package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControlsButton.js +2 -2
- package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ChatButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/HangupCallButton.js +1 -1
- package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/RejectCallButton.js +2 -2
- package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js +8 -80
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +1 -1
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/index.js.map +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +6 -6
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +2 -2
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Call/CallLayout/index.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +2 -3
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/index.js.map +1 -1
- package/dist/module/components/Call/CallTopView/CallTopView.js.map +1 -1
- package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js.map +1 -1
- package/dist/module/components/Call/CallTopView/index.js.map +1 -1
- package/dist/module/components/Call/Lobby/JoinCallButton.js +2 -2
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js +5 -5
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +2 -2
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/module/components/Call/Lobby/index.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/JoiningCallIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +1 -1
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/UserInfo.js +3 -3
- package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/index.js.map +1 -1
- package/dist/module/components/Call/index.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +6 -6
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +7 -68
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +3 -4
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -4
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +3 -3
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/index.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/index.js.map +1 -1
- package/dist/module/components/Livestream/index.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +3 -4
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +2 -2
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +2 -2
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js +5 -6
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/index.js.map +1 -1
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/utility/Avatar.js +3 -3
- package/dist/module/components/utility/Avatar.js.map +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/module/components/utility/index.js.map +1 -1
- package/dist/module/constants/TestIds.js.map +1 -1
- package/dist/module/constants/index.js.map +1 -1
- package/dist/module/contexts/BackgroundFilters.js +5 -10
- package/dist/module/contexts/BackgroundFilters.js.map +1 -1
- package/dist/module/contexts/StreamVideoContext.js.map +1 -1
- package/dist/module/contexts/ThemeContext.js.map +1 -1
- package/dist/module/contexts/index.js.map +1 -1
- package/dist/module/hooks/index.js +1 -0
- package/dist/module/hooks/index.js.map +1 -1
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +2 -3
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/module/hooks/push/index.js.map +1 -1
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +1 -2
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js +1 -1
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +7 -7
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
- package/dist/module/hooks/push/useIosInitRemoteNotifications.js +1 -2
- package/dist/module/hooks/push/useIosInitRemoteNotifications.js.map +1 -1
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +6 -8
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js +1 -2
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +1 -3
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +1 -3
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/hooks/useApplyDefaultMediaStreamSettings.js +7 -7
- package/dist/module/hooks/useApplyDefaultMediaStreamSettings.js.map +1 -1
- package/dist/module/hooks/useAutoEnterPiPEffect.js.map +1 -1
- package/dist/module/hooks/useIsInPiPMode.js +1 -2
- package/dist/module/hooks/useIsInPiPMode.js.map +1 -1
- package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js.map +1 -1
- package/dist/module/hooks/usePaginatedLayoutSortPreset.js.map +1 -1
- package/dist/module/hooks/usePermissionNotification.js.map +1 -1
- package/dist/module/hooks/usePermissionRequest.js +2 -2
- package/dist/module/hooks/usePermissionRequest.js.map +1 -1
- package/dist/module/hooks/useScreenShareButton.js +83 -0
- package/dist/module/hooks/useScreenShareButton.js.map +1 -0
- package/dist/module/icons/Back.js.map +1 -1
- package/dist/module/icons/CameraSwitch.js.map +1 -1
- package/dist/module/icons/Chat.js.map +1 -1
- package/dist/module/icons/EndStreamIcon.js.map +1 -1
- package/dist/module/icons/Eye.js.map +1 -1
- package/dist/module/icons/LeaveStreamIcon.js.map +1 -1
- package/dist/module/icons/Mic.js.map +1 -1
- package/dist/module/icons/MicOff.js.map +1 -1
- package/dist/module/icons/Participants.js.map +1 -1
- package/dist/module/icons/Phone.js.map +1 -1
- package/dist/module/icons/PhoneDown.js.map +1 -1
- package/dist/module/icons/PinVertical.js.map +1 -1
- package/dist/module/icons/Reaction.js.map +1 -1
- package/dist/module/icons/ScreenShare.js.map +1 -1
- package/dist/module/icons/ScreenShareIndicator.js.map +1 -1
- package/dist/module/icons/Settings.js.map +1 -1
- package/dist/module/icons/ShieldBadge.js.map +1 -1
- package/dist/module/icons/Spotlight.js.map +1 -1
- package/dist/module/icons/StartStreamIcon.js.map +1 -1
- package/dist/module/icons/StopScreenShare.js.map +1 -1
- package/dist/module/icons/ThreeDots.js.map +1 -1
- package/dist/module/icons/TopViewBackground.js.map +1 -1
- package/dist/module/icons/Video.js.map +1 -1
- package/dist/module/icons/VideoSlash.js.map +1 -1
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/providers/StreamCall.js +4 -8
- package/dist/module/providers/StreamCall.js.map +1 -1
- package/dist/module/providers/StreamVideo.js +1 -2
- package/dist/module/providers/StreamVideo.js.map +1 -1
- package/dist/module/theme/colors.js.map +1 -1
- package/dist/module/theme/constants.js.map +1 -1
- package/dist/module/theme/index.js.map +1 -1
- package/dist/module/theme/theme.js.map +1 -1
- package/dist/module/theme/types.js.map +1 -1
- package/dist/module/translations/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +2 -4
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/types.js.map +1 -1
- package/dist/module/utils/enterPiPAndroid.js +1 -2
- package/dist/module/utils/enterPiPAndroid.js.map +1 -1
- package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +1 -2
- package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
- package/dist/module/utils/hooks/index.js.map +1 -1
- package/dist/module/utils/hooks/useDebouncedValue.js.map +1 -1
- package/dist/module/utils/hooks/usePrevious.js.map +1 -1
- package/dist/module/utils/index.js.map +1 -1
- package/dist/module/utils/internal/newNotificationCallbacks.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/index.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -1
- package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/module/utils/push/android.js +9 -17
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/ios.js +5 -8
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/utils/push/libs/callkeep.js.map +1 -1
- package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/module/utils/push/libs/expoTaskManager.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging.js.map +1 -1
- package/dist/module/utils/push/libs/index.js.map +1 -1
- package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -1
- package/dist/module/utils/push/rxSubjects.js.map +1 -1
- package/dist/module/utils/push/utils.js +2 -2
- package/dist/module/utils/push/utils.js.map +1 -1
- package/dist/module/utils/setClientDetails.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.d.ts +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/common.d.ts +0 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/common.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/index.d.ts +0 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/index.d.ts.map +1 -1
- package/dist/typescript/contexts/StreamVideoContext.d.ts.map +1 -1
- package/dist/typescript/hooks/index.d.ts +1 -0
- package/dist/typescript/hooks/index.d.ts.map +1 -1
- package/dist/typescript/hooks/useScreenShareButton.d.ts +9 -0
- package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -0
- package/dist/typescript/providers/StreamCall.d.ts.map +1 -1
- package/dist/typescript/providers/StreamVideo.d.ts.map +1 -1
- package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts +0 -1
- package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/callkeep.d.ts +0 -1
- package/dist/typescript/utils/push/libs/callkeep.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts +0 -1
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts.map +1 -1
- package/dist/typescript/utils/push/utils.d.ts +1 -1
- package/dist/typescript/utils/push/utils.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/expo-config-plugin/dist/common/addNewLinesToAppDelegate.js +1 -1
- package/expo-config-plugin/dist/common/addNewLinesToMainActivity.js +1 -1
- package/expo-config-plugin/dist/withAndroidManifest.js +6 -6
- package/expo-config-plugin/dist/withIosScreenCapture/addBroadcastExtensionXcodeTarget.js +1 -1
- package/expo-config-plugin/dist/withMainActivity.js +17 -0
- package/package.json +17 -21
- package/src/components/Call/CallControls/ScreenShareToggleButton.tsx +9 -95
- package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +6 -91
- package/src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx +4 -3
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +2 -2
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useScreenShareButton.ts +128 -0
- package/src/version.ts +1 -1
|
@@ -36,7 +36,7 @@ export const useIosCallkeepWithCallingStateEffect = () => {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
}, [acceptedForegroundCallkeepMap]);
|
|
39
|
-
const activeCallCid = activeCall
|
|
39
|
+
const activeCallCid = activeCall?.cid;
|
|
40
40
|
useEffect(() => {
|
|
41
41
|
return () => {
|
|
42
42
|
const pushConfig = StreamVideoRN.getConfig().push;
|
|
@@ -46,11 +46,11 @@ export const useIosCallkeepWithCallingStateEffect = () => {
|
|
|
46
46
|
const nativeDialerAcceptedCallMap = RxUtils.getCurrentValue(voipCallkeepAcceptedCallOnNativeDialerMap$);
|
|
47
47
|
const foregroundIncomingCallkeepMap = RxUtils.getCurrentValue(voipCallkeepCallOnForegroundMap$);
|
|
48
48
|
const callkeep = getCallKeepLib();
|
|
49
|
-
if (activeCallCid ===
|
|
49
|
+
if (activeCallCid === nativeDialerAcceptedCallMap?.cid) {
|
|
50
50
|
callkeep.endCall(nativeDialerAcceptedCallMap.uuid);
|
|
51
51
|
// no need to keep this reference anymore
|
|
52
52
|
voipCallkeepAcceptedCallOnNativeDialerMap$.next(undefined);
|
|
53
|
-
} else if (activeCallCid ===
|
|
53
|
+
} else if (activeCallCid === foregroundIncomingCallkeepMap?.cid) {
|
|
54
54
|
callkeep.endCall(foregroundIncomingCallkeepMap.uuid);
|
|
55
55
|
// no need to keep this reference anymore
|
|
56
56
|
voipCallkeepCallOnForegroundMap$.next(undefined);
|
|
@@ -65,7 +65,7 @@ export const useIosCallkeepWithCallingStateEffect = () => {
|
|
|
65
65
|
/**
|
|
66
66
|
* Check if current call is still needed to be accepted in callkeep
|
|
67
67
|
*/
|
|
68
|
-
if (isAcceptedCallingState(callingState) &&
|
|
68
|
+
if (isAcceptedCallingState(callingState) && acceptedForegroundCallkeepMap?.cid !== activeCallCid) {
|
|
69
69
|
const callkeep = getCallKeepLib();
|
|
70
70
|
// push notification was displayed
|
|
71
71
|
// but the call has been accepted through the app and not through the native dialer
|
|
@@ -87,7 +87,7 @@ export const useIosCallkeepWithCallingStateEffect = () => {
|
|
|
87
87
|
// this was a previously joined call which had push notification displayed
|
|
88
88
|
// the call was accepted through the app and not through native dialer
|
|
89
89
|
// the call was left using the leave button in the app and not through native dialer
|
|
90
|
-
if (activeCallCid ===
|
|
90
|
+
if (activeCallCid === acceptedForegroundCallkeepMap?.cid) {
|
|
91
91
|
callkeep.endCall(acceptedForegroundCallkeepMap.uuid);
|
|
92
92
|
setAcceptedForegroundCallkeepMap(undefined);
|
|
93
93
|
return;
|
|
@@ -95,7 +95,7 @@ export const useIosCallkeepWithCallingStateEffect = () => {
|
|
|
95
95
|
// this was a call which had push notification displayed but never joined
|
|
96
96
|
// the user rejected in the app and not from native dialer
|
|
97
97
|
const foregroundIncomingCallkeepMap = RxUtils.getCurrentValue(voipCallkeepCallOnForegroundMap$);
|
|
98
|
-
if (activeCallCid ===
|
|
98
|
+
if (activeCallCid === foregroundIncomingCallkeepMap?.cid) {
|
|
99
99
|
callkeep.endCall(foregroundIncomingCallkeepMap.uuid);
|
|
100
100
|
// no need to keep this reference anymore
|
|
101
101
|
voipCallkeepCallOnForegroundMap$.next(undefined);
|
|
@@ -105,7 +105,7 @@ export const useIosCallkeepWithCallingStateEffect = () => {
|
|
|
105
105
|
// it was an accepted call from native dialer and not from the app
|
|
106
106
|
// the user left using the leave button in the app
|
|
107
107
|
const nativeDialerAcceptedCallMap = RxUtils.getCurrentValue(voipCallkeepAcceptedCallOnNativeDialerMap$);
|
|
108
|
-
if (activeCallCid ===
|
|
108
|
+
if (activeCallCid === nativeDialerAcceptedCallMap?.cid) {
|
|
109
109
|
callkeep.endCall(nativeDialerAcceptedCallMap.uuid);
|
|
110
110
|
// no need to keep this reference anymore
|
|
111
111
|
voipCallkeepAcceptedCallOnNativeDialerMap$.next(undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CallingState","RxUtils","useCall","useCallStateHooks","Platform","useEffect","useState","StreamVideoRN","getCallKeepLib","voipCallkeepAcceptedCallOnNativeDialerMap$","voipCallkeepCallOnForegroundMap$","isNonActiveCallingState","callingState","IDLE","UNKNOWN","LEFT","isAcceptedCallingState","JOINING","JOINED","useIosCallkeepWithCallingStateEffect","activeCall","useCallCallingState","acceptedForegroundCallkeepMap","setAcceptedForegroundCallkeepMap","pushConfig","getConfig","push","OS","callkeep","endCall","uuid","activeCallCid","cid","nativeDialerAcceptedCallMap","getCurrentValue","foregroundIncomingCallkeepMap","next","undefined","foregroundCallkeepMap","answerIncomingCall"],"sourceRoot":"../../../../src","sources":["hooks/push/useIosCallkeepWithCallingStateEffect.ts"],"mappings":"AAAA,SAASA,YAAY,EAAEC,OAAO,QAAQ,yBAAyB;AAC/D,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SACEC,0CAA0C,EAC1CC,gCAAgC,QAC3B,6BAA6B;AAEpC,MAAMC,uBAAuB,GAAIC,YAA0B,IAAK;EAC9D,OACEA,YAAY,KAAKZ,YAAY,CAACa,IAAI,IAClCD,YAAY,KAAKZ,YAAY,CAACc,OAAO,IACrCF,YAAY,KAAKZ,YAAY,CAACe,IAAI;AAEtC,CAAC;AAED,MAAMC,sBAAsB,GAAIJ,YAA0B,IAAK;EAC7D,OACEA,YAAY,KAAKZ,YAAY,CAACiB,OAAO,IACrCL,YAAY,KAAKZ,YAAY,CAACkB,MAAM;AAExC,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMC,oCAAoC,GAAGA,CAAA,KAAM;EACxD,MAAMC,UAAU,GAAGlB,OAAO,CAAC,CAAC;EAC5B,MAAM;IAAEmB;EAAoB,CAAC,GAAGlB,iBAAiB,CAAC,CAAC;EACnD,MAAMS,YAAY,GAAGS,mBAAmB,CAAC,CAAC;EAC1C,MAAM,CAACC,6BAA6B,EAAEC,gCAAgC,CAAC,GACrEjB,QAAQ,CAGL,CAAC;EAEND,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MACX,MAAMmB,UAAU,GAAGjB,aAAa,CAACkB,SAAS,CAAC,CAAC,CAACC,IAAI;MACjD,IAAItB,QAAQ,CAACuB,EAAE,KAAK,KAAK,IAAI,CAACH,UAAU,EAAE;QACxC;MACF;MACA,MAAMI,QAAQ,GAAGpB,cAAc,CAAC,CAAC;MACjC;MACA,IAAIc,6BAA6B,EAAE;QACjC;QACAM,QAAQ,CAACC,OAAO,CAACP,6BAA6B,CAACQ,IAAI,CAAC;MACtD;IACF,CAAC;EACH,CAAC,EAAE,CAACR,6BAA6B,CAAC,CAAC;EAEnC,MAAMS,aAAa,GAAGX,UAAU,
|
|
1
|
+
{"version":3,"names":["CallingState","RxUtils","useCall","useCallStateHooks","Platform","useEffect","useState","StreamVideoRN","getCallKeepLib","voipCallkeepAcceptedCallOnNativeDialerMap$","voipCallkeepCallOnForegroundMap$","isNonActiveCallingState","callingState","IDLE","UNKNOWN","LEFT","isAcceptedCallingState","JOINING","JOINED","useIosCallkeepWithCallingStateEffect","activeCall","useCallCallingState","acceptedForegroundCallkeepMap","setAcceptedForegroundCallkeepMap","pushConfig","getConfig","push","OS","callkeep","endCall","uuid","activeCallCid","cid","nativeDialerAcceptedCallMap","getCurrentValue","foregroundIncomingCallkeepMap","next","undefined","foregroundCallkeepMap","answerIncomingCall"],"sourceRoot":"../../../../src","sources":["hooks/push/useIosCallkeepWithCallingStateEffect.ts"],"mappings":"AAAA,SAASA,YAAY,EAAEC,OAAO,QAAQ,yBAAyB;AAC/D,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SACEC,0CAA0C,EAC1CC,gCAAgC,QAC3B,6BAA6B;AAEpC,MAAMC,uBAAuB,GAAIC,YAA0B,IAAK;EAC9D,OACEA,YAAY,KAAKZ,YAAY,CAACa,IAAI,IAClCD,YAAY,KAAKZ,YAAY,CAACc,OAAO,IACrCF,YAAY,KAAKZ,YAAY,CAACe,IAAI;AAEtC,CAAC;AAED,MAAMC,sBAAsB,GAAIJ,YAA0B,IAAK;EAC7D,OACEA,YAAY,KAAKZ,YAAY,CAACiB,OAAO,IACrCL,YAAY,KAAKZ,YAAY,CAACkB,MAAM;AAExC,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMC,oCAAoC,GAAGA,CAAA,KAAM;EACxD,MAAMC,UAAU,GAAGlB,OAAO,CAAC,CAAC;EAC5B,MAAM;IAAEmB;EAAoB,CAAC,GAAGlB,iBAAiB,CAAC,CAAC;EACnD,MAAMS,YAAY,GAAGS,mBAAmB,CAAC,CAAC;EAC1C,MAAM,CAACC,6BAA6B,EAAEC,gCAAgC,CAAC,GACrEjB,QAAQ,CAGL,CAAC;EAEND,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MACX,MAAMm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ACD,IAAIsB,aAAa,KAAKE,2BAA2B,EAAED,GAAG,EAAE;MACtDJ,QAAQ,CAACC,OAAO,CAACI,2BAA2B,CAACH,IAAI,CAAC;MAClD;MACArB,0CAA0C,CAAC2B,IAAI,CAACC,SAAS,CAAC;MAC1D;IACF;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -7,9 +7,8 @@ import { initIosNonVoipToken } from '../../utils/push/ios';
|
|
|
7
7
|
* This hook is used to initialize the push token for iOS.
|
|
8
8
|
*/
|
|
9
9
|
export const useIosInitRemoteNotifications = () => {
|
|
10
|
-
var _useConnectedUser;
|
|
11
10
|
const client = useStreamVideoClient();
|
|
12
|
-
const connectedUserId =
|
|
11
|
+
const connectedUserId = useConnectedUser()?.id;
|
|
13
12
|
useEffect(() => {
|
|
14
13
|
const pushConfig = StreamVideoRN.getConfig().push;
|
|
15
14
|
// NOTE: we need to wait for user to be connected before we can send the push token
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useConnectedUser","useStreamVideoClient","useEffect","StreamVideoRN","initIosNonVoipToken","useIosInitRemoteNotifications","
|
|
1
|
+
{"version":3,"names":["useConnectedUser","useStreamVideoClient","useEffect","StreamVideoRN","initIosNonVoipToken","useIosInitRemoteNotifications","client","connectedUserId","id","pushConfig","getConfig","push","unsubscribe","unsubscribeListener"],"sourceRoot":"../../../../src","sources":["hooks/push/useIosInitRemoteNotifications.ts"],"mappings":"AAAA,SACEA,gBAAgB,EAChBC,oBAAoB,QACf,iCAAiC;AACxC,SAASC,SAAS,QAAQ,OAAO;AACjC,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,mBAAmB,QAAQ,sBAAsB;;AAE1D;AACA;AACA;AACA,OAAO,MAAMC,6BAA6B,GAAGA,CAAA,KAAM;EACjD,MAAMC,MAAM,GAAGL,oBAAoB,CAAC,CAAC;EACrC,MAAMM,eAAe,GAAGP,gBAAgB,CAAC,CAAC,EAAEQ,EAAE;EAC9CN,SAAS,CAAC,MAAM;IACd,MAAMO,UAAU,GAAGN,aAAa,CAACO,SAAS,CAAC,CAAC,CAACC,IAAI;IACjD;IACA,IAAI,CAACL,MAAM,IAAI,CAACC,eAAe,IAAI,CAACE,UAAU,EAAE;MAC9C;IACF;IACA,IAAIG,WAAW,GAAGA,CAAA,KAAM,CAAC,CAAC;IAC1BR,mBAAmB,CAACE,MAAM,EAAEG,UAAU,EAAGI,mBAAmB,IAAK;MAC/DD,WAAW,GAAGC,mBAAmB;IACnC,CAAC,CAAC;IACF,OAAO,MAAM;MACXD,WAAW,CAAC,CAAC;IACf,CAAC;EACH,CAAC,EAAE,CAACN,MAAM,EAAEC,eAAe,CAAC,CAAC;AAC/B,CAAC","ignoreList":[]}
|
|
@@ -97,7 +97,6 @@ export const useIosVoipPushEventsSetupEffect = () => {
|
|
|
97
97
|
}, []);
|
|
98
98
|
};
|
|
99
99
|
const onNotificationReceived = async notification => {
|
|
100
|
-
var _notification$stream, _notification$stream2, _notification$stream3, _notification$stream4, _notification$stream5;
|
|
101
100
|
/* --- Example payload ---
|
|
102
101
|
{
|
|
103
102
|
"aps": {
|
|
@@ -120,13 +119,13 @@ const onNotificationReceived = async notification => {
|
|
|
120
119
|
"version": "v2"
|
|
121
120
|
}
|
|
122
121
|
} */
|
|
123
|
-
const sender = notification
|
|
124
|
-
const type = notification
|
|
122
|
+
const sender = notification?.stream?.sender;
|
|
123
|
+
const type = notification?.stream?.type;
|
|
125
124
|
// do not process any other notifications other than stream.video or ringing
|
|
126
125
|
if (sender !== 'stream.video' && type !== 'call.ring') {
|
|
127
126
|
return;
|
|
128
127
|
}
|
|
129
|
-
const call_cid = notification
|
|
128
|
+
const call_cid = notification?.stream?.call_cid;
|
|
130
129
|
const pushConfig = StreamVideoRN.getConfig().push;
|
|
131
130
|
if (!call_cid || Platform.OS !== 'ios' || !pushConfig) {
|
|
132
131
|
return;
|
|
@@ -138,8 +137,7 @@ const onNotificationReceived = async notification => {
|
|
|
138
137
|
const callFromPush = await client.onRingingCall(call_cid);
|
|
139
138
|
let uuid = '';
|
|
140
139
|
try {
|
|
141
|
-
|
|
142
|
-
uuid = await (NativeModules === null || NativeModules === void 0 || (_NativeModules$Stream = NativeModules.StreamVideoReactNative) === null || _NativeModules$Stream === void 0 ? void 0 : _NativeModules$Stream.getIncomingCallUUid(call_cid));
|
|
140
|
+
uuid = await NativeModules?.StreamVideoReactNative?.getIncomingCallUUid(call_cid);
|
|
143
141
|
} catch (error) {
|
|
144
142
|
const logger = getLogger(['useIosVoipPushEventsSetupEffect']);
|
|
145
143
|
logger('error', 'Error in getting call uuid from native module', error);
|
|
@@ -147,8 +145,8 @@ const onNotificationReceived = async notification => {
|
|
|
147
145
|
if (!uuid) {
|
|
148
146
|
return;
|
|
149
147
|
}
|
|
150
|
-
const created_by_id = notification
|
|
151
|
-
const receiver_id = notification
|
|
148
|
+
const created_by_id = notification?.stream?.created_by_id;
|
|
149
|
+
const receiver_id = notification?.stream?.receiver_id;
|
|
152
150
|
function closeCallIfNecessary() {
|
|
153
151
|
const {
|
|
154
152
|
mustEndCall,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","getCallKeepLib","getVoipPushNotificationLib","AppState","Platform","StreamVideoRN","useStreamVideoClient","setPushLogoutCallback","NativeModules","canAddPushWSSubscriptionsRef","shouldCallBeEnded","pushUnsubscriptionCallbacks$","voipPushNotificationCallCId$","RxUtils","getLogger","lastVoipToken","useIosVoipPushEventsSetupEffect","client","pushConfig","getConfig","push","OS","push_provider_name","ios","pushProviderName","addVoipDevice","catch","err","logger","voipPushNotification","onTokenReceived","token","removeDevice","addEventListener","events","Array","isArray","length","voipPushEvent","name","data","onNotificationReceived","removeEventListener","notification","
|
|
1
|
+
{"version":3,"names":["useEffect","getCallKeepLib","getVoipPushNotificationLib","AppState","Platform","StreamVideoRN","useStreamVideoClient","setPushLogoutCallback","NativeModules","canAddPushWSSubscriptionsRef","shouldCallBeEnded","pushUnsubscriptionCallbacks$","voipPushNotificationCallCId$","RxUtils","getLogger","lastVoipToken","useIosVoipPushEventsSetupEffect","client","pushConfig","getConfig","push","OS","push_provider_name","ios","pushProviderName","addVoipDevice","catch","err","logger","voipPushNotification","onTokenReceived","token","removeDevice","addEventListener","events","Array","isArray","length","voipPushEvent","name","data","onNotificationReceived","removeEventListener","notification","sender","stream","type","call_cid","createStreamVideoClient","callFromPush","onRingingCall","uuid","StreamVideoReactNative","getIncomingCallUUid","error","created_by_id","receiver_id","closeCallIfNecessary","mustEndCall","callkeepReason","callkeep","reportEndCallWithUUID","closed","canListenToWS","current","currentState","unsubscribe","on","_closed","unsubscriptionCallbacks","getCurrentValue","next","onVoipNotificationCompleted"],"sourceRoot":"../../../../src","sources":["hooks/push/useIosVoipPushEventsSetupEffect.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SACEC,cAAc,EACdC,0BAA0B,QACrB,uBAAuB;AAE9B,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,cAAc;AACjD,SAASC,aAAa,QAAQ,aAAa;AAC3C,SAASC,oBAAoB,QAAQ,iCAAiC;AACtE,SAASC,qBAAqB,QAAQ,yCAAyC;AAC/E,SAASC,aAAa,QAAQ,cAAc;AAC5C,SACEC,4BAA4B,EAC5BC,iBAAiB,QACZ,wBAAwB;AAC/B,SACEC,4BAA4B,EAC5BC,4BAA4B,QACvB,6BAA6B;AACpC,SAASC,OAAO,EAAEC,SAAS,QAAQ,yBAAyB;AAE5D,IAAIC,aAAiC,GAAG,EAAE;;AAE1C;AACA;AACA;AACA;AACA,OAAO,MAAMC,+BAA+B,GAAGA,CAAA,KAAM;EACnD,MAAMC,MAAM,GAAGX,oBAAoB,CAAC,CAAC;EACrCN,SAAS,CAAC,MAAM;IACd,MAAMkB,UAAU,GAAGb,aAAa,CAACc,SAAS,CAAC,CAAC,CAACC,IAAI;IACjD,IAAIhB,QAAQ,CAACiB,EAAE,KAAK,KAAK,IAAI,CAACH,UAAU,IAAI,CAACD,MAAM,EAAE;MAC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AAiB,CACvDuC,YAAY,EACZM,aAAa,EACbC,WACF,CAAC;IACD,IAAIE,WAAW,EAAE;MACf,MAAME,QAAQ,GAAG3D,cAAc,CAAC,CAAC;MACjC2D,QAAQ,CAACC,qBAAqB,CAACV,IAAI,EAAEQ,cAAc,CAAC;MACpD,OAAO,IAAI;IACb;IACA,OAAO,KAAK;EACd;EACA,MAAMG,MAAM,GAAGL,oBAAoB,CAAC,CAAC;EACrC,MAAMM,aAAa,GAAGA,CAAA,KACpBtD,4BAA4B,CAACuD,OAAO,IAAI7D,QAAQ,CAAC8D,YAAY,KAAK,QAAQ;EAC5E,IAAI,CAACH,MAAM,IAAIC,aAAa,CAAC,CAAC,EAAE;IAC9B,MAAMG,WAAW,GAAGjB,YAAY,CAACkB,EAAE,CAAC,KAAK,EAAE,MAAM;MAC/C,IAAI,CAACJ,aAAa,CAAC,CAAC,EAAE;QACpBG,WAAW,CAAC,CAAC;QACb;MACF;MACA,MAAME,OAAO,GAAGX,oBAAoB,CAAC,CAAC;MACtC,IAAIW,OAAO,EAAE;QACXF,WAAW,CAAC,CAAC;MACf;IACF,CAAC,CAAC;IACF,MAAMG,uBAAuB,GAC3BxD,OAAO,CAACyD,eAAe,CAAC3D,4BAA4B,CAAC,IAAI,EAAE;IAC7DA,4BAA4B,CAAC4D,IAAI,CAAC,CAChC,GAAGF,uBAAuB,EAC1BH,WAAW,CACZ,CAAC;EACJ;EACA;EACA;EACAtD,4BAA4B,CAAC2D,IAAI,CAACxB,QAAQ,CAAC;EAC3C,MAAMlB,oBAAoB,GAAG3B,0BAA0B,CAAC,CAAC;EACzD2B,oBAAoB,CAAC2C,2BAA2B,CAACrB,IAAI,CAAC;AACxD,CAAC","ignoreList":[]}
|
|
@@ -11,9 +11,8 @@ import { processCallFromPush } from '../../utils/push/utils';
|
|
|
11
11
|
* So we essentially run this effect only when the client is connected with a websocket.
|
|
12
12
|
*/
|
|
13
13
|
export const useProcessPushCallEffect = () => {
|
|
14
|
-
var _useConnectedUser;
|
|
15
14
|
const client = useStreamVideoClient();
|
|
16
|
-
const connectedUserId =
|
|
15
|
+
const connectedUserId = useConnectedUser()?.id;
|
|
17
16
|
// The Effect to join/reject call automatically when incoming call was received and processed from push notification
|
|
18
17
|
useEffect(() => {
|
|
19
18
|
const pushConfig = StreamVideoRN.getConfig().push;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["pushAcceptedIncomingCallCId$","pushRejectedIncomingCallCId$","pushTappedIncomingCallCId$","pushAndroidBackgroundDeliveredIncomingCallCId$","useEffect","StreamVideoRN","useConnectedUser","useStreamVideoClient","filter","processCallFromPush","useProcessPushCallEffect","
|
|
1
|
+
{"version":3,"names":["pushAcceptedIncomingCallCId$","pushRejectedIncomingCallCId$","pushTappedIncomingCallCId$","pushAndroidBackgroundDeliveredIncomingCallCId$","useEffect","StreamVideoRN","useConnectedUser","useStreamVideoClient","filter","processCallFromPush","useProcessPushCallEffect","client","connectedUserId","id","pushConfig","getConfig","push","acceptedCallSubscription","createCallSubscription","declinedCallSubscription","pressedCallSubscription","backgroundIncomingDeliveredCallSubscription","unsubscribe","cidIsNotUndefined","cid","undefined","behaviourSubjectWithCallCid","action","pipe","subscribe","callCId","navigateAcceptCall","navigateToIncomingCall","next"],"sourceRoot":"../../../../src","sources":["hooks/push/useProcessPushCallEffect.ts"],"mappings":"AAAA,SACEA,4BAA4B,EAC5BC,4BAA4B,EAC5BC,0BAA0B,EAC1BC,8CAA8C,QACzC,6BAA6B;AACpC,SAASC,SAAS,QAAQ,OAAO;AACjC,SAASC,aAAa,QAAQ,aAAa;AAC3C,SACEC,gBAAgB,EAChBC,oBAAoB,QACf,iCAAiC;AAExC,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,mBAAmB,QAAQ,wBAAwB;AAI5D;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGA,CAAA,KAAM;EAC5C,MAAMC,MAAM,GAAGJ,oBAAoB,CAAC,CAAC;E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BAAmB,CAACE,MAAM,EAAEmB,OAAO,EAAEH,MAAM,CAAC;IAClD,IAAIA,MAAM,KAAK,QAAQ,EAAE;MACvBb,UAAU,CAACiB,kBAAkB,CAAC,CAAC;IACjC,CAAC,MAAM,IAAIJ,MAAM,KAAK,SAAS,IAAIA,MAAM,KAAK,qBAAqB,EAAE;MACnEb,UAAU,CAACkB,sBAAsB,CAAC,CAAC;IACrC;IACAN,2BAA2B,CAACO,IAAI,CAACR,SAAS,CAAC,CAAC,CAAC;EAC/C,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
|
|
@@ -11,9 +11,8 @@ import { processNonIncomingCallFromPush } from '../../utils/push/utils';
|
|
|
11
11
|
* So we essentially run this effect only when the client is connected with a websocket.
|
|
12
12
|
*/
|
|
13
13
|
export const useProcessPushNonRingingCallEffect = () => {
|
|
14
|
-
var _useConnectedUser;
|
|
15
14
|
const client = useStreamVideoClient();
|
|
16
|
-
const connectedUserId =
|
|
15
|
+
const connectedUserId = useConnectedUser()?.id;
|
|
17
16
|
// The Effect to join/reject call automatically when incoming call was received and processed from push notification
|
|
18
17
|
useEffect(() => {
|
|
19
18
|
const pushConfig = StreamVideoRN.getConfig().push;
|
|
@@ -27,7 +26,6 @@ export const useProcessPushNonRingingCallEffect = () => {
|
|
|
27
26
|
await processNonIncomingCallFromPush(client, cid, type);
|
|
28
27
|
pushNonRingingCallData$.next(undefined); // remove the current data to avoid processing again
|
|
29
28
|
});
|
|
30
|
-
|
|
31
29
|
return () => {
|
|
32
30
|
subscription.unsubscribe();
|
|
33
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["pushNonRingingCallData$","useEffect","StreamVideoRN","useConnectedUser","useStreamVideoClient","filter","processNonIncomingCallFromPush","useProcessPushNonRingingCallEffect","
|
|
1
|
+
{"version":3,"names":["pushNonRingingCallData$","useEffect","StreamVideoRN","useConnectedUser","useStreamVideoClient","filter","processNonIncomingCallFromPush","useProcessPushNonRingingCallEffect","client","connectedUserId","id","pushConfig","getConfig","push","subscription","pipe","NotUndefined","subscribe","cid","type","next","undefined","unsubscribe","data"],"sourceRoot":"../../../../src","sources":["hooks/push/useProcessPushNonRingingCallEffect.ts"],"mappings":"AAAA,SAASA,uBAAuB,QAAQ,6BAA6B;AACrE,SAASC,SAAS,QAAQ,OAAO;AACjC,SAASC,aAAa,QAAQ,aAAa;AAC3C,SACEC,gBAAgB,EAChBC,oBAAoB,QACf,iCAAiC;AACxC,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,8BAA8B,QAAQ,wBAAwB;;AAEvE;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,kCAAkC,GAAGA,CAAA,KAAM;EACtD,MAAMC,MAAM,GAAGJ,oBAAoB,CAAC,CAAC;EACrC,MAAMK,eAAe,GAAGN,gBAAgB,CAAC,CAAC,EAAEO,EAAE;EAC9C;EACAT,SAAS,CAAC,MAAM;IACd,MAAMU,UAAU,GAAGT,aAAa,CAACU,SAAS,CAAC,CAAC,CAACC,IAAI;IACjD,IAAI,CAACF,UAAU,IAAI,CAACH,MAAM,IAAI,CAACC,eAAe,EAAE;MAC9C;IACF;IAEA,MAAMK,YAAY,GAAGd,uBAAuB,CACzCe,IAAI,CAACV,MAAM,CAACW,YAAY,CAAC,CAAC,CAC1BC,SAAS,CAAC,OAAO;MAAEC,GAAG;MAAEC;IAAK,CAAC,KAAK;MAClC,MAAMb,8BAA8B,CAACE,MAAM,EAAEU,GAAG,EAAEC,IAAI,CAAC;MACvDnB,uBAAuB,CAACoB,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC;IAEJ,OAAO,MAAM;MACXP,YAAY,CAACQ,WAAW,CAAC,CAAC;IAC5B,CAAC;EACH,CAAC,EAAE,CAACd,MAAM,EAAEC,eAAe,CAAC,CAAC;AAC/B,CAAC;;AAED;AACA;AACA;AACA,SAASO,YAAYA,CAAIO,IAAmB,EAAa;EACvD,OAAOA,IAAI,KAAKF,SAAS;AAC3B","ignoreList":[]}
|
|
@@ -51,7 +51,6 @@ async function startForegroundService(call_cid) {
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
|
|
55
54
|
async function stopForegroundService() {
|
|
56
55
|
if (Platform.OS !== 'android') {
|
|
57
56
|
return;
|
|
@@ -69,13 +68,12 @@ let isSetForegroundServiceRan = false;
|
|
|
69
68
|
* Additonally: also responsible for cancelling any notifee displayed notification when the call has transitioned out of ringing
|
|
70
69
|
*/
|
|
71
70
|
export const useAndroidKeepCallAliveEffect = () => {
|
|
72
|
-
var _useCall;
|
|
73
71
|
if (!isSetForegroundServiceRan && Platform.OS === 'android') {
|
|
74
72
|
isSetForegroundServiceRan = true;
|
|
75
73
|
setForegroundService();
|
|
76
74
|
}
|
|
77
75
|
const foregroundServiceStartedRef = useRef(false);
|
|
78
|
-
const activeCallCid =
|
|
76
|
+
const activeCallCid = useCall()?.cid;
|
|
79
77
|
const {
|
|
80
78
|
useCallCallingState
|
|
81
79
|
} = useCallStateHooks();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCall","useCallStateHooks","useEffect","useRef","notifee","AuthorizationStatus","StreamVideoRN","Platform","CallingState","getLogger","setForegroundService","OS","registerForegroundService","Promise","logger","startForegroundService","call_cid","foregroundServiceConfig","getConfig","foregroundService","title","body","android","notificationTexts","channelId","channel","id","settings","getNotificationSettings","authorizationStatus","AUTHORIZED","createChannel","displayNotification","asForegroundService","ongoing","colorized","pressAction","launchActivity","stopForegroundService","isSetForegroundServiceRan","useAndroidKeepCallAliveEffect","
|
|
1
|
+
{"version":3,"names":["useCall","useCallStateHooks","useEffect","useRef","notifee","AuthorizationStatus","StreamVideoRN","Platform","CallingState","getLogger","setForegroundService","OS","registerForegroundService","Promise","logger","startForegroundService","call_cid","foregroundServiceConfig","getConfig","foregroundService","title","body","android","notificationTexts","channelId","channel","id","settings","getNotificationSettings","authorizationStatus","AUTHORIZED","createChannel","displayNotification","asForegroundService","ongoing","colorized","pressAction","launchActivity","stopForegroundService","isSetForegroundServiceRan","useAndroidKeepCallAliveEffect","foregroundServiceStartedRef","activeCallCid","cid","useCallCallingState","callingState","JOINED","run","current","getDisplayedNotifications","then","displayedNotifications","activeCallNotification","find","notification","cancelDisplayedNotification","RINGING","IDLE","LEFT"],"sourceRoot":"../../../src","sources":["hooks/useAndroidKeepCallAliveEffect.ts"],"mappings":"AAAA,SAASA,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACzC,OAAOC,OAAO,IAAIC,mBAAmB,QAAQ,uBAAuB;AACpE,SAASC,aAAa,QAAQ,UAAU;AACxC,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,YAAY,EAAEC,SAAS,QAAQ,yBAAyB;AAEjE,SAASC,oBAAoBA,CAAA,EAAG;EAC9B,IAAIH,QAAQ,CAACI,EAAE,KAAK,SAAS,EAAE;IAC7B;EACF;EACAP,OAAO,CAACQ,yBAAyB,CAAC,MAAM;IACtC,OAAO,IAAIC,OAAO,CAAC,MAAM;MACvB,MAAMC,MAAM,GAAGL,SAAS,CAAC,CAAC,6BAA6B,CAAC,CAAC;MACzDK,MAAM,CAAC,MAAM,EAAE,iDAAiD,CAAC;IACnE,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ;AAEA,eAAeC,sBAAsBA,CAACC,QAAgB,EAAE;EACtD,IAAIT,QAAQ,CAACI,EAAE,KAAK,SAAS,EAAE;IAC7B;EACF;EACA,MAAMM,uBAAuB,GAAGX,aAAa,CAACY,SAAS,CAAC,CAAC,CAACC,iBAAiB;EAC3E,MAAM;IAAEC,KAAK;IAAEC;EAAK,CAAC,GAAGJ,uBAAuB,CAACK,OAAO,CAACC,iBAAiB;EACzE,MAAMC,SAAS,GAAGP,uBAAuB,CAACK,OAAO,CAACG,OAAO,CAACC,EAAE;;EAE5D;EACA,MAAMC,QAAQ,GAAG,MAAMvB,OAAO,C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,MAAMC,sBAAsB,GAAGD,sBAAsB,CAACE,IAAI,CACvDC,YAAY,IAAKA,YAAY,CAAC5B,EAAE,KAAKgB,aACxC,CAAC;UACD,IAAIU,sBAAsB,EAAE;YAC1B;YACAhD,OAAO,CAACkC,qBAAqB,CAAC,CAAC;UACjC;QACF,CAAC,CAAC;MACJ;IACF;EACF,CAAC,EAAE,CAACI,aAAa,EAAEG,YAAY,CAAC,CAAC;EAEjC3C,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MACX;MACA,IAAIuC,2BAA2B,CAACO,OAAO,EAAE;QACvCV,qBAAqB,CAAC,CAAC;QACvBG,2BAA2B,CAACO,OAAO,GAAG,KAAK;MAC7C;IACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AACR,CAAC","ignoreList":[]}
|
|
@@ -22,23 +22,23 @@ export const useApplyDefaultMediaStreamSettings = () => {
|
|
|
22
22
|
initialVideoEnabled
|
|
23
23
|
} = useMemo(() => {
|
|
24
24
|
return {
|
|
25
|
-
initialAudioEnabled: settings
|
|
26
|
-
initialVideoEnabled: settings
|
|
25
|
+
initialAudioEnabled: settings?.audio.mic_default_on,
|
|
26
|
+
initialVideoEnabled: settings?.video.camera_default_on
|
|
27
27
|
};
|
|
28
|
-
}, [settings
|
|
28
|
+
}, [settings?.audio.mic_default_on, settings?.video.camera_default_on]);
|
|
29
29
|
useEffect(() => {
|
|
30
30
|
if (initialAudioEnabled !== undefined) {
|
|
31
31
|
if (initialAudioEnabled) {
|
|
32
|
-
call
|
|
32
|
+
call?.microphone.enable();
|
|
33
33
|
} else {
|
|
34
|
-
call
|
|
34
|
+
call?.microphone.disable();
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
if (initialVideoEnabled !== undefined) {
|
|
38
38
|
if (initialVideoEnabled) {
|
|
39
|
-
call
|
|
39
|
+
call?.camera.enable();
|
|
40
40
|
} else {
|
|
41
|
-
call
|
|
41
|
+
call?.camera.disable();
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}, [call, initialAudioEnabled, initialVideoEnabled]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCall","useCallStateHooks","useEffect","useMemo","useApplyDefaultMediaStreamSettings","useCallSettings","settings","call","initialAudioEnabled","initialVideoEnabled","audio","mic_default_on","video","camera_default_on","undefined","microphone","enable","disable","camera"],"sourceRoot":"../../../src","sources":["hooks/useApplyDefaultMediaStreamSettings.tsx"],"mappings":"AAAA,SAASA,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,SAAS,EAAEC,OAAO,QAAQ,OAAO;;AAE1C;AACA;AACA;AACA,OAAO,MAAMC,kCAAkC,GAAGA,CAAA,KAAM;EACtD,MAAM;IAAEC;EAAgB,CAAC,GAAGJ,iBAAiB,CAAC,CAAC;EAC/C,MAAMK,QAAQ,GAAGD,eAAe,CAAC,CAAC;EAClC,MAAME,IAAI,GAAGP,OAAO,CAAC,CAAC;;EAEtB;AACF;AACA;AACA;AACA;AACA;EACE,MAAM;IAAEQ,mBAAmB;IAAEC;EAAoB,CAAC,GAAGN,OAAO,CAAC,MAAM;IACjE,OAAO;MACLK,mBAAmB,EAAEF,QAAQ,
|
|
1
|
+
{"version":3,"names":["useCall","useCallStateHooks","useEffect","useMemo","useApplyDefaultMediaStreamSettings","useCallSettings","settings","call","initialAudioEnabled","initialVideoEnabled","audio","mic_default_on","video","camera_default_on","undefined","microphone","enable","disable","camera"],"sourceRoot":"../../../src","sources":["hooks/useApplyDefaultMediaStreamSettings.tsx"],"mappings":"AAAA,SAASA,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,SAAS,EAAEC,OAAO,QAAQ,OAAO;;AAE1C;AACA;AACA;AACA,OAAO,MAAMC,kCAAkC,GAAGA,CAAA,KAAM;EACtD,MAAM;IAAEC;EAAgB,CAAC,GAAGJ,iBAAiB,CAAC,CAAC;EAC/C,MAAMK,QAAQ,GAAGD,eAAe,CAAC,CAAC;EAClC,MAAME,IAAI,GAAGP,OAAO,CAAC,CAAC;;EAEtB;AACF;AACA;AACA;AACA;AACA;EACE,MAAM;IAAEQ,mBAAmB;IAAEC;EAAoB,CAAC,GAAGN,OAAO,CAAC,MAAM;IACjE,OAAO;MACLK,mBAAmB,EAAEF,QAAQ,EAAEI,KAAK,CAACC,cAAc;MACnDF,mBAAmB,EAAEH,QAAQ,EAAEM,KAAK,CAACC;IACvC,CAAC;EACH,CAAC,EAAE,CAACP,QAAQ,EAAEI,KAAK,CAACC,cAAc,EAAEL,QAAQ,EAAEM,KAAK,CAACC,iBAAiB,CAAC,CAAC;EAEvEX,SAAS,CAAC,MAAM;IACd,IAAIM,mBAAmB,KAAKM,SAAS,EAAE;MACrC,IAAIN,mBAAmB,EAAE;QACvBD,IAAI,EAAEQ,UAAU,CAACC,MAAM,CAAC,CAAC;MAC3B,CAAC,MAAM;QACLT,IAAI,EAAEQ,UAAU,CAACE,OAAO,CAAC,CAAC;MAC5B;IACF;IAEA,IAAIR,mBAAmB,KAAKK,SAAS,EAAE;MACrC,IAAIL,mBAAmB,EAAE;QACvBF,IAAI,EAAEW,MAAM,CAACF,MAAM,CAAC,CAAC;MACvB,CAAC,MAAM;QACLT,IAAI,EAAEW,MAAM,CAACD,OAAO,CAAC,CAAC;MACxB;IACF;EACF,CAAC,EAAE,CAACV,IAAI,EAAEC,mBAAmB,EAAEC,mBAAmB,CAAC,CAAC;AACtD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","NativeModules","Platform","useAutoEnterPiPEffect","OS","StreamVideoReactNative","canAutoEnterPipMode"],"sourceRoot":"../../../src","sources":["hooks/useAutoEnterPiPEffect.tsx"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,OAAO,SAASC,qBAAqBA,CAAA,EAAG;EACtCH,SAAS,CAAC,MAAM;IACd,IAAIE,QAAQ,CAACE,EAAE,KAAK,SAAS,EAAE;MAC7B;IACF;IAEAH,aAAa,CAACI,sBAAsB,CAACC,mBAAmB,CAAC,IAAI,CAAC;IAE9D,OAAO,MAAM;MACXL,aAAa,CAACI,sBAAsB,CAACC,mBAAmB,CAAC,KAAK,CAAC;IACjE,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AACR"}
|
|
1
|
+
{"version":3,"names":["useEffect","NativeModules","Platform","useAutoEnterPiPEffect","OS","StreamVideoReactNative","canAutoEnterPipMode"],"sourceRoot":"../../../src","sources":["hooks/useAutoEnterPiPEffect.tsx"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,OAAO,SAASC,qBAAqBA,CAAA,EAAG;EACtCH,SAAS,CAAC,MAAM;IACd,IAAIE,QAAQ,CAACE,EAAE,KAAK,SAAS,EAAE;MAC7B;IACF;IAEAH,aAAa,CAACI,sBAAsB,CAACC,mBAAmB,CAAC,IAAI,CAAC;IAE9D,OAAO,MAAM;MACXL,aAAa,CAACI,sBAAsB,CAACC,mBAAmB,CAAC,KAAK,CAAC;IACjE,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;AACR","ignoreList":[]}
|
|
@@ -10,7 +10,6 @@ export function useIsInPiPMode() {
|
|
|
10
10
|
const eventEmitter = new NativeEventEmitter(NativeModules.StreamVideoReactNative);
|
|
11
11
|
const subscriptionPiPChange = eventEmitter.addListener(PIP_CHANGE_EVENT, setIsInPiPMode);
|
|
12
12
|
const subscriptionAppState = AppState.addEventListener('change', nextAppState => {
|
|
13
|
-
var _NativeModules$Stream;
|
|
14
13
|
if (nextAppState === 'background') {
|
|
15
14
|
setIsInPiPMode(true); // set with an assumption that its enabled so that UI disabling happens faster
|
|
16
15
|
// if PiP was not enabled anyway, then in the next code we ll set it to false and UI wont be shown anyway
|
|
@@ -18,7 +17,7 @@ export function useIsInPiPMode() {
|
|
|
18
17
|
// attempt to take the value as soon as app state is changed
|
|
19
18
|
// this can be faster than event emitter at times
|
|
20
19
|
// also in new arch this can be made a synchronous method
|
|
21
|
-
NativeModules
|
|
20
|
+
NativeModules?.StreamVideoReactNative?.isInPiPMode().then(isInPiPNativeMethod => {
|
|
22
21
|
setIsInPiPMode(!!isInPiPNativeMethod);
|
|
23
22
|
});
|
|
24
23
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useState","AppState","NativeEventEmitter","NativeModules","Platform","PIP_CHANGE_EVENT","useIsInPiPMode","isInPiPMode","setIsInPiPMode","OS","eventEmitter","StreamVideoReactNative","subscriptionPiPChange","addListener","subscriptionAppState","addEventListener","nextAppState","
|
|
1
|
+
{"version":3,"names":["useEffect","useState","AppState","NativeEventEmitter","NativeModules","Platform","PIP_CHANGE_EVENT","useIsInPiPMode","isInPiPMode","setIsInPiPMode","OS","eventEmitter","StreamVideoReactNative","subscriptionPiPChange","addListener","subscriptionAppState","addEventListener","nextAppState","then","isInPiPNativeMethod","remove"],"sourceRoot":"../../../src","sources":["hooks/useIsInPiPMode.tsx"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SACEC,QAAQ,EACRC,kBAAkB,EAClBC,aAAa,EACbC,QAAQ,QACH,cAAc;AAErB,MAAMC,gBAAgB,GAAG,yCAAyC;AAElE,OAAO,SAASC,cAAcA,CAAA,EAAG;EAC/B,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGR,QAAQ,CAAC,KAAK,CAAC;EAErDD,SAAS,CAAC,MAAM;IACd,IAAIK,QAAQ,CAACK,EAAE,KAAK,SAAS,EAAE;MAC7B;IACF;IAEA,MAAMC,YAAY,GAAG,IAAIR,kBAAkB,CACzCC,aAAa,CAACQ,sBAChB,CAAC;IAED,MAAMC,qBAAqB,GAAGF,YAAY,CAACG,WAAW,CACpDR,gBAAgB,EAChBG,cACF,CAAC;IAED,MAAMM,oBAAoB,GAAGb,QAAQ,CAACc,gBAAgB,CACpD,QAAQ,EACPC,YAAY,IAAK;MAChB,IAAIA,YAAY,KAAK,YAAY,EAAE;QACjCR,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;QACtB;MACF;MACA;MACA;MACA;MACAL,aAAa,EAAEQ,sBAAsB,EAAEJ,WAAW,CAAC,CAAC,CAACU,IAAI,CACtDC,mBAA+C,IAAK;QACnDV,cAAc,CAAC,CAAC,CAACU,mBAAmB,CAAC;MACvC,CACF,CAAC;IACH,CACF,CAAC;IAED,OAAO,MAAM;MACXN,qBAAqB,CAACO,MAAM,CAAC,CAAC;MAC9BL,oBAAoB,CAACK,MAAM,CAAC,CAAC;IAC/B,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOZ,WAAW;AACpB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useState","NativeEventEmitter","NativeModules","Platform","useIsIosScreenshareBroadcastStarted","hasStarted","setHasStarted","OS","eventEmitter","StreamVideoReactNative","subscription","addListener","event","name","remove"],"sourceRoot":"../../../src","sources":["hooks/useIsIosScreenshareBroadcastStarted.ts"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAM1E,OAAO,SAASC,mCAAmCA,CAAA,EAAG;EACpD,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGN,QAAQ,CAAC,KAAK,CAAC;EAEnDD,SAAS,CAAC,MAAM;IACd,IAAII,QAAQ,CAACI,EAAE,KAAK,KAAK,EAAE;MACzB;IACF;IAEA,MAAMC,YAAY,GAAG,IAAIP,kBAAkB,CACzCC,aAAa,CAACO,sBAChB,CAAC;IAED,MAAMC,YAAY,GAAGF,YAAY,CAACG,WAAW,CAC3C,8CAA8C,EAC7CC,KAAY,IAAK;MAChBN,aAAa,CAACM,KAAK,CAACC,IAAI,KAAK,sBAAsB,CAAC;IACtD,CACF,CAAC;IAED,OAAO,MAAM;MACXH,YAAY,CAACI,MAAM,CAAC,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOT,UAAU;AACnB"}
|
|
1
|
+
{"version":3,"names":["useEffect","useState","NativeEventEmitter","NativeModules","Platform","useIsIosScreenshareBroadcastStarted","hasStarted","setHasStarted","OS","eventEmitter","StreamVideoReactNative","subscription","addListener","event","name","remove"],"sourceRoot":"../../../src","sources":["hooks/useIsIosScreenshareBroadcastStarted.ts"],"mappings":"AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAM1E,OAAO,SAASC,mCAAmCA,CAAA,EAAG;EACpD,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGN,QAAQ,CAAC,KAAK,CAAC;EAEnDD,SAAS,CAAC,MAAM;IACd,IAAII,QAAQ,CAACI,EAAE,KAAK,KAAK,EAAE;MACzB;IACF;IAEA,MAAMC,YAAY,GAAG,IAAIP,kBAAkB,CACzCC,aAAa,CAACO,sBAChB,CAAC;IAED,MAAMC,YAAY,GAAGF,YAAY,CAACG,WAAW,CAC3C,8CAA8C,EAC7CC,KAAY,IAAK;MAChBN,aAAa,CAACM,KAAK,CAACC,IAAI,KAAK,sBAAsB,CAAC;IACtD,CACF,CAAC;IAED,OAAO,MAAM;MACXH,YAAY,CAACI,MAAM,CAAC,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOT,UAAU;AACnB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CallTypes","defaultSortPreset","paginatedLayoutSortPreset","useEffect","resetSortPreset","call","callConfig","get","type","setSortParticipantsBy","options","sortParticipantsBy","usePaginatedLayoutSortPreset"],"sourceRoot":"../../../src","sources":["hooks/usePaginatedLayoutSortPreset.ts"],"mappings":"AAAA,SAEEA,SAAS,EACTC,iBAAiB,EACjBC,yBAAyB,QACpB,yBAAyB;AAChC,SAASC,SAAS,QAAQ,OAAO;AAEjC,MAAMC,eAAe,GAAIC,IAAU,IAAK;EACtC;EACA,MAAMC,UAAU,GAAGN,SAAS,CAACO,GAAG,CAACF,IAAI,CAACG,IAAI,CAAC;EAC3CH,IAAI,CAACI,qBAAqB,CACxBH,UAAU,CAACI,OAAO,CAACC,kBAAkB,IAAIV,iBAC3C,CAAC;AACH,CAAC;AAED,OAAO,MAAMW,4BAA4B,GAAIP,IAAsB,IAAK;EACtEF,SAAS,CAAC,MAAM;IACd,IAAI,CAACE,IAAI,EAAE;MACT;IACF;IACAA,IAAI,CAACI,qBAAqB,CAACP,yBAAyB,CAAC;IACrD,OAAO,MAAM;MACXE,eAAe,CAACC,IAAI,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAACA,IAAI,CAAC,CAAC;AACZ,CAAC"}
|
|
1
|
+
{"version":3,"names":["CallTypes","defaultSortPreset","paginatedLayoutSortPreset","useEffect","resetSortPreset","call","callConfig","get","type","setSortParticipantsBy","options","sortParticipantsBy","usePaginatedLayoutSortPreset"],"sourceRoot":"../../../src","sources":["hooks/usePaginatedLayoutSortPreset.ts"],"mappings":"AAAA,SAEEA,SAAS,EACTC,iBAAiB,EACjBC,yBAAyB,QACpB,yBAAyB;AAChC,SAASC,SAAS,QAAQ,OAAO;AAEjC,MAAMC,eAAe,GAAIC,IAAU,IAAK;EACtC;EACA,MAAMC,UAAU,GAAGN,SAAS,CAACO,GAAG,CAACF,IAAI,CAACG,IAAI,CAAC;EAC3CH,IAAI,CAACI,qBAAqB,CACxBH,UAAU,CAACI,OAAO,CAACC,kBAAkB,IAAIV,iBAC3C,CAAC;AACH,CAAC;AAED,OAAO,MAAMW,4BAA4B,GAAIP,IAAsB,IAAK;EACtEF,SAAS,CAAC,MAAM;IACd,IAAI,CAACE,IAAI,EAAE;MACT;IACF;IACAA,IAAI,CAACI,qBAAqB,CAACP,yBAAyB,CAAC;IACrD,OAAO,MAAM;MACXE,eAAe,CAACC,IAAI,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAACA,IAAI,CAAC,CAAC;AACZ,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CallingState","useCallStateHooks","useCallback","useEffect","Alert","usePrevious","usePermissionNotification","props","permission","messageApproved","messageRevoked","useCallCallingState","useHasPermissions","hasPermission","previousHasPermission","callingState","showGrantedNotification","alert","showRevokedNotification","JOINED"],"sourceRoot":"../../../src","sources":["hooks/usePermissionNotification.tsx"],"mappings":"AAAA,SAASA,YAAY,QAAuB,yBAAyB;AACrE,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AAC9C,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,WAAW,QAAQ,4BAA4B;AAqBxD,OAAO,MAAMC,yBAAyB,GACpCC,KAAkC,IAC/B;EACH,MAAM;IAAEC,UAAU;IAAEC,eAAe;IAAEC;EAAe,CAAC,GAAGH,KAAK;EAC7D,MAAM;IAAEI,mBAAmB;IAAEC;EAAkB,CAAC,GAAGX,iBAAiB,CAAC,CAAC;EACtE,MAAMY,aAAa,GAAGD,iBAAiB,CAACJ,UAAU,CAAC;EACnD,MAAMM,qBAAqB,GAAGT,WAAW,CAACQ,aAAa,CAAC;EACxD,MAAME,YAAY,GAAGJ,mBAAmB,CAAC,CAAC;EAE1C,MAAMK,uBAAuB,GAAGd,WAAW,CAAC,MAAM;IAChDE,KAAK,CAACa,KAAK,CAACR,eAAe,CAAC;EAC9B,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EAErB,MAAMS,uBAAuB,GAAGhB,WAAW,CAAC,MAAM;IAChDE,KAAK,CAACa,KAAK,CAACP,cAAc,CAAC;EAC7B,CAAC,EAAE,CAACA,cAAc,CAAC,CAAC;EAEpBP,SAAS,CAAC,MAAM;IACd;IACA;IACA,IAAIY,YAAY,KAAKf,YAAY,CAACmB,MAAM,EAAE;MACxC;IACF;IACA,IAAIN,aAAa,IAAI,CAACC,qBAAqB,EAAE;MAC3CE,uBAAuB,CAAC,CAAC;IAC3B,CAAC,MAAM,IAAI,CAACH,aAAa,IAAIC,qBAAqB,EAAE;MAClDI,uBAAuB,CAAC,CAAC;IAC3B;EACF,CAAC,EAAE,CACDH,YAAY,EACZF,aAAa,EACbC,qBAAqB,EACrBE,uBAAuB,EACvBE,uBAAuB,CACxB,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"names":["CallingState","useCallStateHooks","useCallback","useEffect","Alert","usePrevious","usePermissionNotification","props","permission","messageApproved","messageRevoked","useCallCallingState","useHasPermissions","hasPermission","previousHasPermission","callingState","showGrantedNotification","alert","showRevokedNotification","JOINED"],"sourceRoot":"../../../src","sources":["hooks/usePermissionNotification.tsx"],"mappings":"AAAA,SAASA,YAAY,QAAuB,yBAAyB;AACrE,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AAC9C,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,WAAW,QAAQ,4BAA4B;AAqBxD,OAAO,MAAMC,yBAAyB,GACpCC,KAAkC,IAC/B;EACH,MAAM;IAAEC,UAAU;IAAEC,eAAe;IAAEC;EAAe,CAAC,GAAGH,KAAK;EAC7D,MAAM;IAAEI,mBAAmB;IAAEC;EAAkB,CAAC,GAAGX,iBAAiB,CAAC,CAAC;EACtE,MAAMY,aAAa,GAAGD,iBAAiB,CAACJ,UAAU,CAAC;EACnD,MAAMM,qBAAqB,GAAGT,WAAW,CAACQ,aAAa,CAAC;EACxD,MAAME,YAAY,GAAGJ,mBAAmB,CAAC,CAAC;EAE1C,MAAMK,uBAAuB,GAAGd,WAAW,CAAC,MAAM;IAChDE,KAAK,CAACa,KAAK,CAACR,eAAe,CAAC;EAC9B,CAAC,EAAE,CAACA,eAAe,CAAC,CAAC;EAErB,MAAMS,uBAAuB,GAAGhB,WAAW,CAAC,MAAM;IAChDE,KAAK,CAACa,KAAK,CAACP,cAAc,CAAC;EAC7B,CAAC,EAAE,CAACA,cAAc,CAAC,CAAC;EAEpBP,SAAS,CAAC,MAAM;IACd;IACA;IACA,IAAIY,YAAY,KAAKf,YAAY,CAACmB,MAAM,EAAE;MACxC;IACF;IACA,IAAIN,aAAa,IAAI,CAACC,qBAAqB,EAAE;MAC3CE,uBAAuB,CAAC,CAAC;IAC3B,CAAC,MAAM,IAAI,CAACH,aAAa,IAAIC,qBAAqB,EAAE;MAClDI,uBAAuB,CAAC,CAAC;IAC3B;EACF,CAAC,EAAE,CACDH,YAAY,EACZF,aAAa,EACbC,qBAAqB,EACrBE,uBAAuB,EACvBE,uBAAuB,CACxB,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -28,9 +28,9 @@ export const usePermissionRequest = () => {
|
|
|
28
28
|
} = request;
|
|
29
29
|
try {
|
|
30
30
|
if (allow) {
|
|
31
|
-
await
|
|
31
|
+
await call?.grantPermissions(user.id, permissions);
|
|
32
32
|
} else {
|
|
33
|
-
await
|
|
33
|
+
await call?.revokePermissions(user.id, permissions);
|
|
34
34
|
}
|
|
35
35
|
} catch (err) {
|
|
36
36
|
const logger = getLogger(['usePermissionRequest']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["OwnCapability","getLogger","useCall","useCallStateHooks","useCallback","useEffect","Alert","usePermissionRequest","call","useHasPermissions","userHasUpdateCallPermissionsCapability","UPDATE_CALL_PERMISSIONS","messageForPermission","userName","permission","SEND_AUDIO","SEND_VIDEO","SCREENSHARE","handleUpdatePermission","request","allow","user","permissions","grantPermissions","id","revokePermissions","err","logger","on","event","type","forEach","alert","name","text","onPress"],"sourceRoot":"../../../src","sources":["hooks/usePermissionRequest.tsx"],"mappings":"AAAA,SACEA,aAAa,EAEbC,SAAS,QACJ,yBAAyB;AAChC,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AAC9C,SAASC,KAAK,QAAQ,cAAc;AAEpC,OAAO,MAAMC,oBAAoB,GAAGA,CAAA,KAAM;EACxC,MAAMC,IAAI,GAAGN,OAAO,CAAC,CAAC;EAEtB,MAAM;IAAEO;EAAkB,CAAC,GAAGN,iBAAiB,CAAC,CAAC;EACjD,MAAMO,sCAAsC,GAAGD,iBAAiB,CAC9DT,aAAa,CAACW,uBAChB,CAAC;EAED,MAAMC,oBAAoB,GAAGA,CAACC,QAAgB,EAAEC,UAAkB,KAAK;IACrE,QAAQA,UAAU;MAChB,KAAKd,aAAa,CAACe,UAAU;QAC3B,
|
|
1
|
+
{"version":3,"names":["OwnCapability","getLogger","useCall","useCallStateHooks","useCallback","useEffect","Alert","usePermissionRequest","call","useHasPermissions","userHasUpdateCallPermissionsCapability","UPDATE_CALL_PERMISSIONS","messageForPermission","userName","permission","SEND_AUDIO","SEND_VIDEO","SCREENSHARE","handleUpdatePermission","request","allow","user","permissions","grantPermissions","id","revokePermissions","err","logger","on","event","type","forEach","alert","name","text","onPress"],"sourceRoot":"../../../src","sources":["hooks/usePermissionRequest.tsx"],"mappings":"AAAA,SACEA,aAAa,EAEbC,SAAS,QACJ,yBAAyB;AAChC,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AAC9C,SAASC,KAAK,QAAQ,cAAc;AAEpC,OAAO,MAAMC,oBAAoB,GAAGA,CAAA,KAAM;EACxC,MAAMC,IAAI,GAAGN,OAAO,CAAC,CAAC;EAEtB,MAAM;IAAEO;EAAkB,CAAC,GAAGN,iBAAiB,CAAC,CAAC;EACjD,MAAMO,sCAAsC,GAAGD,iBAAiB,CAC9DT,aAAa,CAACW,uBAChB,CAAC;EAED,MAAMC,oBAAoB,GAAGA,CAACC,QAAgB,EAAEC,UAAkB,KAAK;IACrE,QAAQA,U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ACrBpB,oBAAoB,CAACS,IAAI,CAACY,IAAI,IAAIZ,IAAI,CAACG,EAAE,EAAEV,UAAU,CAAC,EACtD,CACE;UACEoB,IAAI,EAAE,QAAQ;UACdC,OAAO,EAAEjB,sBAAsB,CAACW,KAAK,EAAE,KAAK;QAC9C,CAAC,EACD;UACEK,IAAI,EAAE,OAAO;UACbC,OAAO,EAAEjB,sBAAsB,CAACW,KAAK,EAAE,IAAI;QAC7C,CAAC,CAEL,CAAC;MACH,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC,EAAE,CAACrB,IAAI,EAAEE,sCAAsC,EAAEQ,sBAAsB,CAAC,CAAC;AAC5E,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { getLogger, hasScreenShare, OwnCapability } from '@stream-io/video-client';
|
|
2
|
+
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
|
+
import { useRef, useEffect } from 'react';
|
|
4
|
+
import { Platform, findNodeHandle, NativeModules } from 'react-native';
|
|
5
|
+
import { usePrevious } from '../utils/hooks';
|
|
6
|
+
import { useIsIosScreenshareBroadcastStarted } from './useIsIosScreenshareBroadcastStarted';
|
|
7
|
+
|
|
8
|
+
// ios >= 14.0 or android - platform restrictions
|
|
9
|
+
const CanDeviceScreenShare = (Platform.OS === 'ios' &&
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
Number.parseInt(Platform.Version.split('.')[0], 10) >= 14, 10) || Platform.OS === 'android';
|
|
12
|
+
export const useScreenShareButton = (screenCapturePickerViewiOSRef, onScreenShareStartedHandler, onScreenShareStoppedHandler, onMissingScreenShareStreamPermission) => {
|
|
13
|
+
const call = useCall();
|
|
14
|
+
const {
|
|
15
|
+
useLocalParticipant,
|
|
16
|
+
useCallSettings,
|
|
17
|
+
useOwnCapabilities
|
|
18
|
+
} = useCallStateHooks();
|
|
19
|
+
const callSettings = useCallSettings();
|
|
20
|
+
const ownCapabilities = useOwnCapabilities();
|
|
21
|
+
const hasScreenSharingPermissions = ownCapabilities?.includes(OwnCapability.SCREENSHARE);
|
|
22
|
+
const isScreenSharingEnabledInCall = callSettings?.screensharing.enabled;
|
|
23
|
+
const onScreenShareStartedHandlerRef = useRef(onScreenShareStartedHandler);
|
|
24
|
+
onScreenShareStartedHandlerRef.current = onScreenShareStartedHandler;
|
|
25
|
+
const onScreenShareStoppedHandlerRef = useRef(onScreenShareStoppedHandler);
|
|
26
|
+
onScreenShareStoppedHandlerRef.current = onScreenShareStoppedHandler;
|
|
27
|
+
const iosScreenShareStartedFromSystem = useIsIosScreenshareBroadcastStarted();
|
|
28
|
+
const prevIosScreenShareStartedFromSystem = usePrevious(iosScreenShareStartedFromSystem);
|
|
29
|
+
const localParticipant = useLocalParticipant();
|
|
30
|
+
const hasPublishedScreenShare = localParticipant && hasScreenShare(localParticipant);
|
|
31
|
+
|
|
32
|
+
// listens to iOS screen share broadcast started event from the system
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (Platform.OS !== 'ios') {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (iosScreenShareStartedFromSystem && !prevIosScreenShareStartedFromSystem) {
|
|
38
|
+
onScreenShareStartedHandlerRef.current?.();
|
|
39
|
+
call?.screenShare.enable();
|
|
40
|
+
} else if (!iosScreenShareStartedFromSystem && prevIosScreenShareStartedFromSystem) {
|
|
41
|
+
onScreenShareStoppedHandlerRef.current?.();
|
|
42
|
+
call?.screenShare.disable(true);
|
|
43
|
+
}
|
|
44
|
+
}, [call, iosScreenShareStartedFromSystem, prevIosScreenShareStartedFromSystem]);
|
|
45
|
+
const onPress = async () => {
|
|
46
|
+
if (!hasScreenSharingPermissions) {
|
|
47
|
+
const logger = getLogger(['useScreenShareButton']);
|
|
48
|
+
logger('info', 'User does not have permissions to stream the screen share media, calling onMissingScreenShareStreamPermission handler if present');
|
|
49
|
+
onMissingScreenShareStreamPermission?.();
|
|
50
|
+
}
|
|
51
|
+
if (!hasPublishedScreenShare) {
|
|
52
|
+
if (Platform.OS === 'ios') {
|
|
53
|
+
const reactTag = findNodeHandle(screenCapturePickerViewiOSRef.current);
|
|
54
|
+
await NativeModules.ScreenCapturePickerViewManager.show(reactTag);
|
|
55
|
+
// After this the iOS screen share broadcast started/stopped event will be triggered
|
|
56
|
+
// and the useEffect listener will handle the rest
|
|
57
|
+
} else {
|
|
58
|
+
try {
|
|
59
|
+
await call?.screenShare.enable();
|
|
60
|
+
onScreenShareStartedHandler?.();
|
|
61
|
+
} catch (error) {
|
|
62
|
+
// ignored.. user didnt allow the screen share in the popup
|
|
63
|
+
const logger = getLogger(['useScreenShareButton']);
|
|
64
|
+
logger('info', 'User opted to not give permissions to start a screen share stream', error);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
} else if (hasPublishedScreenShare) {
|
|
68
|
+
onScreenShareStoppedHandler?.();
|
|
69
|
+
await call?.screenShare.disable(true);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
if (!isScreenSharingEnabledInCall || !CanDeviceScreenShare) {
|
|
73
|
+
return {
|
|
74
|
+
onPress: undefined,
|
|
75
|
+
hasPublishedScreenShare: false
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
onPress,
|
|
80
|
+
hasPublishedScreenShare
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=useScreenShareButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getLogger","hasScreenShare","OwnCapability","useCall","useCallStateHooks","useRef","useEffect","Platform","findNodeHandle","NativeModules","usePrevious","useIsIosScreenshareBroadcastStarted","CanDeviceScreenShare","OS","Number","parseInt","Version","split","useScreenShareButton","screenCapturePickerViewiOSRef","onScreenShareStartedHandler","onScreenShareStoppedHandler","onMissingScreenShareStreamPermission","call","useLocalParticipant","useCallSettings","useOwnCapabilities","callSettings","ownCapabilities","hasScreenSharingPermissions","includes","SCREENSHARE","isScreenSharingEnabledInCall","screensharing","enabled","onScreenShareStartedHandlerRef","current","onScreenShareStoppedHandlerRef","iosScreenShareStartedFromSystem","prevIosScreenShareStartedFromSystem","localParticipant","hasPublishedScreenShare","screenShare","enable","disable","onPress","logger","reactTag","ScreenCapturePickerViewManager","show","error","undefined"],"sourceRoot":"../../../src","sources":["hooks/useScreenShareButton.ts"],"mappings":"AAAA,SACEA,SAAS,EACTC,cAAc,EACdC,aAAa,QACR,yBAAyB;AAChC,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAAgBC,MAAM,EAAEC,SAAS,QAAQ,OAAO;AAChD,SAASC,QAAQ,EAAEC,cAAc,EAAEC,aAAa,QAAQ,cAAc;AACtE,SAASC,WAAW,QAAQ,gBAAgB;AAC5C,SAASC,mCAAmC,QAAQ,uCAAuC;;AAE3F;AACA,MAAMC,oBAAoB,GACxB,CAACL,QAAQ,CAACM,EAAE,KAAK,KAAK;AACpB;AACAC,MAAM,CAACC,QAAQ,CAACR,QAAQ,CAACS,OAAO,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,EAC3D,EAAE,KAAKV,QAAQ,CAACM,EAAE,KAAK,SAAS;AAElC,OAAO,MAAMK,oBAAoB,GAAGA,CAKlCC,6BAA0D,EAK1DC,2BAAwC,EAKxCC,2BAAwC,EAKxCC,oCAAiD,KAC9C;EACH,MAAMC,IAAI,GAAGpB,OAAO,CAAC,CAAC;EACtB,MAAM;IAAEqB,mBAAmB;IAAEC,eAAe;IAAEC;EAAmB,CAAC,GAChEtB,iBAAiB,CAAC,CAAC;EACrB,MAAMuB,YAAY,GAAGF,eAAe,CAAC,CAAC;EACtC,MAAMG,eAAe,GAAGF,kBAAkB,CAAC,CAAC;EAC5C,MAAMG,2BAA2B,GAAGD,eAAe,EAAEE,QAAQ,CAC3D5B,aAAa,CAAC6B,WAChB,CAAC;EACD,MAAMC,4BAA4B,GAAGL,YAAY,EAAEM,aA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,KAAK,EAAE;QACzB,MAAMkC,QAAQ,GAAGvC,cAAc,CAACW,6BAA6B,CAACiB,OAAO,CAAC;QACtE,MAAM3B,aAAa,CAACuC,8BAA8B,CAACC,IAAI,CAACF,QAAQ,CAAC;QACjE;QACA;MACF,CAAC,MAAM;QACL,IAAI;UACF,MAAMxB,IAAI,EAAEmB,WAAW,CAACC,MAAM,CAAC,CAAC;UAChCvB,2BAA2B,GAAG,CAAC;QACjC,CAAC,CAAC,OAAO8B,KAAK,EAAE;UACd;UACA,MAAMJ,MAAM,GAAG9C,SAAS,CAAC,CAAC,sBAAsB,CAAC,CAAC;UAClD8C,MAAM,CACJ,MAAM,EACN,mEAAmE,EACnEI,KACF,CAAC;QACH;MACF;IACF,CAAC,MAAM,IAAIT,uBAAuB,EAAE;MAClCpB,2BAA2B,GAAG,CAAC;MAC/B,MAAME,IAAI,EAAEmB,WAAW,CAACE,OAAO,CAAC,IAAI,CAAC;IACvC;EACF,CAAC;EAED,IAAI,CAACZ,4BAA4B,IAAI,CAACpB,oBAAoB,EAAE;IAC1D,OAAO;MAAEiC,OAAO,EAAEM,SAAS;MAAEV,uBAAuB,EAAE;IAAM,CAAC;EAC/D;EACA,OAAO;IAAEI,OAAO;IAAEJ;EAAwB,CAAC;AAC7C,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Svg","Path","Back","color","createElement","viewBox","d","fill"],"sourceRoot":"../../../src","sources":["icons/Back.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,IAAI,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBACnCJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC;AAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,ueAAue;EACzeC,IAAI,EAAEJ;AAAM,CACb,CACE,CACN"}
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","Back","color","createElement","viewBox","d","fill"],"sourceRoot":"../../../src","sources":["icons/Back.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,IAAI,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBACnCJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC;AAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,ueAAue;EACzeC,IAAI,EAAEJ;AAAM,CACb,CACE,CACN","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Svg","Path","CameraSwitch","color","createElement","viewBox","d","fill"],"sourceRoot":"../../../src","sources":["icons/CameraSwitch.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBAC3CJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC;AAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,w7CAAw7C;EAC17CC,IAAI,EAAEJ;AAAM,CACb,CACE,CACN"}
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","CameraSwitch","color","createElement","viewBox","d","fill"],"sourceRoot":"../../../src","sources":["icons/CameraSwitch.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBAC3CJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC;AAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,w7CAAw7C;EAC17CC,IAAI,EAAEJ;AAAM,CACb,CACE,CACN","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Svg","Path","Chat","color","createElement","viewBox","d","fill"],"sourceRoot":"../../../src","sources":["icons/Chat.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,IAAI,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBACnCJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC;AAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,uTAAuT;EACzTC,IAAI,EAAEJ;AAAM,CACb,CACE,CACN"}
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","Chat","color","createElement","viewBox","d","fill"],"sourceRoot":"../../../src","sources":["icons/Chat.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,IAAI,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBACnCJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC;AAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,uTAAuT;EACzTC,IAAI,EAAEJ;AAAM,CACb,CACE,CACN","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Path","Svg","EndBroadcastIcon","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/EndStreamIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EACpC,oBACEH,KAAA,CAAAI,aAAA,CAACF,GAAG;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACH,IAAI;IACHM,CAAC,EAAC,0/BAA0/B;IAC5/BD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
1
|
+
{"version":3,"names":["React","Path","Svg","EndBroadcastIcon","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/EndStreamIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EACpC,oBACEH,KAAA,CAAAI,aAAA,CAACF,GAAG;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACH,IAAI;IACHM,CAAC,EAAC,0/BAA0/B;IAC5/BD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Svg","Path","Eye","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/Eye.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,GAAG,GAAGA,CAAA,KAAM;EACvB,oBACEH,KAAA,CAAAI,aAAA,CAACH,GAAG;IAACI,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACF,IAAI;IACHK,CAAC,EAAC,2uBAA2uB;IAC7uBD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","Eye","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/Eye.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,GAAG,GAAGA,CAAA,KAAM;EACvB,oBACEH,KAAA,CAAAI,aAAA,CAACH,GAAG;IAACI,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACF,IAAI;IACHK,CAAC,EAAC,2uBAA2uB;IAC7uBD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Path","Svg","LeaveStreamIcon","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/LeaveStreamIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,eAAe,GAAGA,CAAA,KAAM;EACnC,oBACEH,KAAA,CAAAI,aAAA,CAACF,GAAG;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACH,IAAI;IACHM,CAAC,EAAC,oNAAoN;IACtND,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
1
|
+
{"version":3,"names":["React","Path","Svg","LeaveStreamIcon","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/LeaveStreamIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,eAAe,GAAGA,CAAA,KAAM;EACnC,oBACEH,KAAA,CAAAI,aAAA,CAACF,GAAG;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACH,IAAI;IACHM,CAAC,EAAC,oNAAoN;IACtND,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Svg","Path","Mic","color","createElement","viewBox","d","fill"],"sourceRoot":"../../../src","sources":["icons/Mic.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,GAAG,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBAClCJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC;AAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,qJAAqJ;EACvJC,IAAI,EAAEJ;AAAM,CACb,CAAC,eACFJ,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,2KAA2K;EAC7KC,IAAI,EAAEJ;AAAM,CACb,CACE,CACN"}
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","Mic","color","createElement","viewBox","d","fill"],"sourceRoot":"../../../src","sources":["icons/Mic.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,GAAG,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBAClCJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC;AAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,qJAAqJ;EACvJC,IAAI,EAAEJ;AAAM,CACb,CAAC,eACFJ,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,2KAA2K;EAC7KC,IAAI,EAAEJ;AAAM,CACb,CACE,CACN","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Svg","Path","MicOff","color","createElement","viewBox","d","fill"],"sourceRoot":"../../../src","sources":["icons/MicOff.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,MAAM,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBACrCJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC;AAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,o2CAAo2C;EACt2CC,IAAI,EAAEJ;AAAM,CACb,CACE,CACN"}
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","MicOff","color","createElement","viewBox","d","fill"],"sourceRoot":"../../../src","sources":["icons/MicOff.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAO5C,OAAO,MAAMC,MAAM,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBACrCJ,KAAA,CAAAK,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC;AAAW,gBACtBN,KAAA,CAAAK,aAAA,CAACH,IAAI;EACHK,CAAC,EAAC,o2CAAo2C;EACt2CC,IAAI,EAAEJ;AAAM,CACb,CACE,CACN","ignoreList":[]}
|