@stream-io/video-react-native-sdk 1.10.17 → 1.10.19
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 +728 -687
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +1 -0
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +5 -5
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +5 -3
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/commonjs/contexts/BackgroundFilters.js +1 -1
- package/dist/commonjs/contexts/BackgroundFilters.js.map +1 -1
- package/dist/commonjs/contexts/ThemeContext.js +12 -3
- package/dist/commonjs/contexts/ThemeContext.js.map +1 -1
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js +0 -1
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +4 -4
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +11 -5
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/useScreenShareButton.js +1 -3
- package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -1
- package/dist/commonjs/hooks/useTrackDimensions.js +1 -1
- package/dist/commonjs/hooks/useTrackDimensions.js.map +1 -1
- package/dist/commonjs/providers/StreamCall/DeviceStats.js +2 -2
- package/dist/commonjs/providers/StreamCall/DeviceStats.js.map +1 -1
- package/dist/commonjs/providers/StreamVideo.js +1 -1
- package/dist/commonjs/providers/StreamVideo.js.map +1 -1
- package/dist/commonjs/utils/internal/optionallibs/gestureHandler.js +1 -1
- package/dist/commonjs/utils/internal/optionallibs/gestureHandler.js.map +1 -1
- package/dist/commonjs/utils/internal/optionallibs/reanimated.js +1 -1
- package/dist/commonjs/utils/internal/optionallibs/reanimated.js.map +1 -1
- package/dist/commonjs/utils/internal/pushLogoutCallback.js +1 -1
- package/dist/commonjs/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/commonjs/utils/push/internal/ios.js +104 -0
- package/dist/commonjs/utils/push/internal/ios.js.map +1 -0
- package/dist/commonjs/utils/push/ios.js +15 -107
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/utils/push/libs/callkeep.js +1 -1
- package/dist/commonjs/utils/push/libs/callkeep.js.map +1 -1
- package/dist/commonjs/utils/push/libs/expoNotifications.js +1 -1
- package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
- package/dist/commonjs/utils/push/libs/iosPushNotification.js +1 -1
- package/dist/commonjs/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/commonjs/utils/push/libs/notifee/lib.js +1 -1
- package/dist/commonjs/utils/push/libs/notifee/lib.js.map +1 -1
- package/dist/commonjs/utils/push/libs/voipPushNotification.js +1 -1
- package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +1 -1
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +2 -2
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -1
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +2 -2
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/commonjs/version.js +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/RTCViewPipIOS.js +2 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js +6 -6
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +4 -4
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +7 -5
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.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/SpeechIndicator.js +1 -1
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
- package/dist/module/contexts/BackgroundFilters.js +1 -1
- package/dist/module/contexts/BackgroundFilters.js.map +1 -1
- package/dist/module/contexts/ThemeContext.js +11 -1
- package/dist/module/contexts/ThemeContext.js.map +1 -1
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +0 -1
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +4 -4
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +12 -6
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js +1 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +2 -2
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/hooks/usePermissionRequest.js +1 -1
- package/dist/module/hooks/usePermissionRequest.js.map +1 -1
- package/dist/module/hooks/useScreenShareButton.js +3 -5
- package/dist/module/hooks/useScreenShareButton.js.map +1 -1
- package/dist/module/hooks/useTrackDimensions.js +2 -2
- package/dist/module/hooks/useTrackDimensions.js.map +1 -1
- package/dist/module/providers/StreamCall/DeviceStats.js +4 -4
- package/dist/module/providers/StreamCall/DeviceStats.js.map +1 -1
- package/dist/module/providers/StreamVideo.js +2 -2
- package/dist/module/providers/StreamVideo.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/gestureHandler.js +1 -1
- package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/reanimated.js +1 -1
- package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -1
- package/dist/module/utils/internal/pushLogoutCallback.js +1 -1
- package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/module/utils/push/android.js +3 -3
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/internal/ios.js +97 -0
- package/dist/module/utils/push/internal/ios.js.map +1 -0
- package/dist/module/utils/push/internal/utils.js +1 -1
- package/dist/module/utils/push/internal/utils.js.map +1 -1
- package/dist/module/utils/push/ios.js +18 -109
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/utils/push/libs/callkeep.js +1 -1
- package/dist/module/utils/push/libs/callkeep.js.map +1 -1
- package/dist/module/utils/push/libs/expoNotifications.js +1 -1
- package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/lib.js +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
- package/dist/module/utils/push/libs/iosPushNotification.js +1 -1
- package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/module/utils/push/libs/notifee/lib.js +1 -1
- package/dist/module/utils/push/libs/notifee/lib.js.map +1 -1
- package/dist/module/utils/push/libs/voipPushNotification.js +1 -1
- package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -1
- package/dist/module/utils/push/setupIosCallKeepEvents.js +3 -4
- package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -1
- package/dist/module/utils/push/setupIosVoipPushEvents.js +2 -2
- package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/CallControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/OutgoingCallControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ReactionsButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/CallLeftIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/CallPreparingIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/TextBasedIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/UserInfo.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamMediaControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/DurationBadge.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/FollowerCount.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/LiveIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts.map +1 -1
- package/dist/typescript/components/utility/Avatar.d.ts.map +1 -1
- package/dist/typescript/components/utility/ScreenShareOverlay.d.ts.map +1 -1
- package/dist/typescript/contexts/BackgroundFilters.d.ts.map +1 -1
- package/dist/typescript/contexts/ThemeContext.d.ts +10 -2
- package/dist/typescript/contexts/ThemeContext.d.ts.map +1 -1
- package/dist/typescript/hooks/internal/useCallMediaStreamCleanup.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/usePaginatedLayoutSortPreset.d.ts.map +1 -1
- package/dist/typescript/hooks/usePermissionNotification.d.ts.map +1 -1
- package/dist/typescript/hooks/useScreenShareButton.d.ts +21 -1
- package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -1
- package/dist/typescript/icons/Back.d.ts.map +1 -1
- package/dist/typescript/icons/CameraSwitch.d.ts.map +1 -1
- package/dist/typescript/icons/IconWrapper.d.ts.map +1 -1
- package/dist/typescript/icons/Lock.d.ts.map +1 -1
- package/dist/typescript/icons/Mic.d.ts.map +1 -1
- package/dist/typescript/icons/MicOff.d.ts.map +1 -1
- package/dist/typescript/icons/Phone.d.ts.map +1 -1
- package/dist/typescript/icons/PhoneDown.d.ts.map +1 -1
- package/dist/typescript/icons/PinVertical.d.ts.map +1 -1
- package/dist/typescript/icons/Reaction.d.ts.map +1 -1
- package/dist/typescript/icons/ScreenShare.d.ts.map +1 -1
- package/dist/typescript/icons/ScreenShareIndicator.d.ts.map +1 -1
- package/dist/typescript/icons/Settings.d.ts.map +1 -1
- package/dist/typescript/icons/Spotlight.d.ts.map +1 -1
- package/dist/typescript/icons/StopScreenShare.d.ts.map +1 -1
- package/dist/typescript/icons/ThreeDots.d.ts.map +1 -1
- package/dist/typescript/icons/TopViewBackground.d.ts.map +1 -1
- package/dist/typescript/icons/Video.d.ts.map +1 -1
- package/dist/typescript/icons/VideoSlash.d.ts.map +1 -1
- package/dist/typescript/providers/StreamCall/index.d.ts.map +1 -1
- package/dist/typescript/providers/StreamVideo.d.ts.map +1 -1
- package/dist/typescript/utils/hooks/usePrevious.d.ts.map +1 -1
- package/dist/typescript/utils/index.d.ts.map +1 -1
- package/dist/typescript/utils/internal/optionallibs/gestureHandler.d.ts.map +1 -1
- package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts.map +1 -1
- package/dist/typescript/utils/internal/pushLogoutCallback.d.ts +1 -1
- package/dist/typescript/utils/internal/pushLogoutCallback.d.ts.map +1 -1
- package/dist/typescript/utils/push/android.d.ts +1 -1
- package/dist/typescript/utils/push/android.d.ts.map +1 -1
- package/dist/typescript/utils/push/internal/ios.d.ts +3 -0
- package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -0
- package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
- package/dist/typescript/utils/push/ios.d.ts +0 -1
- package/dist/typescript/utils/push/ios.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts +1 -1
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/iosPushNotification.d.ts +1 -1
- package/dist/typescript/utils/push/libs/iosPushNotification.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
- package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/expo-config-plugin/dist/withAndroidManifest.js +0 -1
- package/expo-config-plugin/dist/withAppDelegate.js +1 -1
- package/expo-config-plugin/dist/withIosScreenCapture/withPlistUpdates.js +1 -1
- package/expo-config-plugin/dist/withiOSInfoPlist.js +3 -1
- package/package.json +20 -23
- package/src/components/Call/CallContent/CallContent.tsx +3 -3
- package/src/components/Call/CallContent/RTCViewPipIOS.tsx +6 -4
- package/src/components/Call/CallContent/RTCViewPipNative.tsx +5 -5
- package/src/components/Call/CallControls/CallControlsButton.tsx +1 -1
- package/src/components/Call/CallControls/LobbyControls.tsx +1 -1
- package/src/components/Call/CallControls/ScreenShareToggleButton.tsx +1 -1
- package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +4 -4
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +1 -1
- package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +5 -5
- package/src/components/Call/Lobby/JoinCallButton.tsx +1 -1
- package/src/components/Call/Lobby/Lobby.tsx +2 -2
- package/src/components/Call/Lobby/LobbyFooter.tsx +2 -2
- package/src/components/Call/RingingCallContent/UserInfo.tsx +1 -1
- package/src/components/Livestream/HostLivestream/HostLivestream.tsx +1 -1
- package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +1 -1
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +1 -1
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +1 -1
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +1 -1
- package/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx +10 -10
- package/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.tsx +15 -13
- package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +1 -1
- package/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.tsx +1 -1
- package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +3 -3
- package/src/components/Participant/ParticipantView/ParticipantView.tsx +1 -1
- package/src/components/Participant/ParticipantView/SpeechIndicator.tsx +3 -3
- package/src/components/Participant/ParticipantView/VideoRenderer.tsx +1 -1
- package/src/contexts/BackgroundFilters.tsx +7 -7
- package/src/contexts/StreamVideoContext.tsx +3 -3
- package/src/contexts/ThemeContext.tsx +15 -5
- package/src/hooks/internal/useCallMediaStreamCleanup.ts +2 -6
- package/src/hooks/push/useInitAndroidTokenAndRest.ts +1 -1
- package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +25 -25
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +28 -19
- package/src/hooks/push/useProcessPushCallEffect.ts +8 -8
- package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +1 -1
- package/src/hooks/useAndroidKeepCallAliveEffect.ts +10 -10
- package/src/hooks/useAutoEnterPiPEffect.tsx +2 -2
- package/src/hooks/useIsIosScreenshareBroadcastStarted.ts +2 -2
- package/src/hooks/usePaginatedLayoutSortPreset.ts +1 -1
- package/src/hooks/usePermissionNotification.tsx +1 -1
- package/src/hooks/usePermissionRequest.tsx +4 -4
- package/src/hooks/useScreenShareButton.ts +9 -10
- package/src/hooks/useTrackDimensions.ts +3 -3
- package/src/providers/StreamCall/AppStateListener.tsx +6 -6
- package/src/providers/StreamCall/DeviceStats.tsx +8 -8
- package/src/providers/StreamVideo.tsx +4 -4
- package/src/utils/StreamVideoRN/index.ts +4 -4
- package/src/utils/StreamVideoRN/types.ts +2 -2
- package/src/utils/enterPiPAndroid.ts +1 -1
- package/src/utils/index.ts +2 -2
- package/src/utils/internal/newNotificationCallbacks.ts +3 -3
- package/src/utils/internal/optionallibs/gestureHandler.ts +1 -1
- package/src/utils/internal/optionallibs/reanimated.ts +1 -1
- package/src/utils/internal/pushLogoutCallback.ts +1 -1
- package/src/utils/push/android.ts +33 -33
- package/src/utils/push/internal/ios.ts +133 -0
- package/src/utils/push/internal/utils.ts +10 -10
- package/src/utils/push/ios.ts +38 -164
- package/src/utils/push/libs/callkeep.ts +2 -2
- package/src/utils/push/libs/expoNotifications.ts +5 -5
- package/src/utils/push/libs/firebaseMessaging/index.ts +3 -3
- package/src/utils/push/libs/firebaseMessaging/lib.ts +1 -1
- package/src/utils/push/libs/iosPushNotification.ts +4 -4
- package/src/utils/push/libs/notifee/index.ts +7 -7
- package/src/utils/push/libs/notifee/lib.ts +1 -1
- package/src/utils/push/libs/voipPushNotification.ts +2 -2
- package/src/utils/push/setupIosCallKeepEvents.ts +17 -18
- package/src/utils/push/setupIosVoipPushEvents.ts +5 -5
- package/src/utils/push/utils.ts +2 -2
- package/src/version.ts +1 -1
|
@@ -57,7 +57,7 @@ const StreamVideo = props => {
|
|
|
57
57
|
language: language,
|
|
58
58
|
translationsOverrides: translationsOverrides,
|
|
59
59
|
i18nInstance: i18nInstance
|
|
60
|
-
}, /*#__PURE__*/_react.default.createElement(_ThemeContext.
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_ThemeContext.StreamTheme, {
|
|
61
61
|
style: style
|
|
62
62
|
}, /*#__PURE__*/_react.default.createElement(_StreamVideoContext.StreamVideoStoreProvider, null, /*#__PURE__*/_react.default.createElement(PushRegister, null), children)));
|
|
63
63
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_videoReactBindings","require","_react","_interopRequireWildcard","_StreamVideoContext","_netinfo","_interopRequireDefault","_hooks","_translations","_ThemeContext","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StreamVideo","props","client","children","translationsOverrides","translations","i18nInstance","language","style","useEffect","prevIsOnline","NetInfo","addEventListener","state","isConnected","isInternetReachable","isOnline","type","streamClient","updateNetworkConnectionStatus","createElement","StreamVideoProvider","
|
|
1
|
+
{"version":3,"names":["_videoReactBindings","require","_react","_interopRequireWildcard","_StreamVideoContext","_netinfo","_interopRequireDefault","_hooks","_translations","_ThemeContext","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","StreamVideo","props","client","children","translationsOverrides","translations","i18nInstance","language","style","useEffect","prevIsOnline","NetInfo","addEventListener","state","isConnected","isInternetReachable","isOnline","type","streamClient","updateNetworkConnectionStatus","createElement","StreamVideoProvider","StreamTheme","StreamVideoStoreProvider","PushRegister","exports","usePushRegisterEffect"],"sourceRoot":"../../../src","sources":["providers/StreamVideo.tsx"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AAAyE,SAAAK,uBAAAI,CAAA,WAAAA,CAAA,I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B,EAAC,CAAC;EACvB,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.getGestureHandlerLib = void 0;
|
|
|
7
7
|
let gestureHandler;
|
|
8
8
|
try {
|
|
9
9
|
gestureHandler = require('react-native-gesture-handler');
|
|
10
|
-
} catch
|
|
10
|
+
} catch {}
|
|
11
11
|
const getGestureHandlerLib = (onPackageNotFound = () => {}) => {
|
|
12
12
|
if (!gestureHandler) {
|
|
13
13
|
onPackageNotFound();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["gestureHandler","require","
|
|
1
|
+
{"version":3,"names":["gestureHandler","require","getGestureHandlerLib","onPackageNotFound","exports"],"sourceRoot":"../../../../../src","sources":["utils/internal/optionallibs/gestureHandler.ts"],"mappings":";;;;;;AAEA,IAAIA,cAA8C;AAElD,IAAI;EACFA,cAAc,GAAGC,OAAO,CAAC,8BAA8B,CAAC;AAC1D,CAAC,CAAC,MAAM,CAAC;AAEF,MAAMC,oBAAoB,GAAGA,CAACC,iBAAiB,GAAGA,CAAA,KAAM,CAAC,CAAC,KAAK;EACpE,IAAI,CAACH,cAAc,EAAE;IACnBG,iBAAiB,CAAC,CAAC;EACrB;EACA,OAAOH,cAAc;AACvB,CAAC;AAACI,OAAA,CAAAF,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["reanimated","require","
|
|
1
|
+
{"version":3,"names":["reanimated","require","getReanimatedLib","onPackageNotFound","exports"],"sourceRoot":"../../../../../src","sources":["utils/internal/optionallibs/reanimated.ts"],"mappings":";;;;;;AAEA,IAAIA,UAAsC;AAE1C,IAAI;EACFA,UAAU,GAAGC,OAAO,CAAC,yBAAyB,CAAC;AACjD,CAAC,CAAC,MAAM,CAAC;AAEF,MAAMC,gBAAgB,GAAGA,CAACC,iBAAiB,GAAGA,CAAA,KAAM,CAAC,CAAC,KAAK;EAChE,IAAI,CAACH,UAAU,EAAE;IACfG,iBAAiB,CAAC,CAAC;EACrB;EACA,OAAOH,UAAU;AACnB,CAAC;AAACI,OAAA,CAAAF,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.setPushLogoutCallback = exports.default = void 0;
|
|
7
|
-
|
|
7
|
+
const pushLogoutCallbacks = {};
|
|
8
8
|
const setPushLogoutCallback = callback => {
|
|
9
9
|
if (!pushLogoutCallbacks.current) {
|
|
10
10
|
pushLogoutCallbacks.current = [callback];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["pushLogoutCallbacks","setPushLogoutCallback","callback","current","push","exports","_default","default"],"sourceRoot":"../../../../src","sources":["utils/internal/pushLogoutCallback.ts"],"mappings":";;;;;;AAMA,
|
|
1
|
+
{"version":3,"names":["pushLogoutCallbacks","setPushLogoutCallback","callback","current","push","exports","_default","default"],"sourceRoot":"../../../../src","sources":["utils/internal/pushLogoutCallback.ts"],"mappings":";;;;;;AAMA,MAAMA,mBAAwC,GAAG,CAAC,CAAC;AAE5C,MAAMC,qBAAqB,GAAIC,QAAkB,IAAK;EAC3D,IAAI,CAACF,mBAAmB,CAACG,OAAO,EAAE;IAChCH,mBAAmB,CAACG,OAAO,GAAG,CAACD,QAAQ,CAAC;EAC1C,CAAC,MAAM;IACLF,mBAAmB,CAACG,OAAO,CAACC,IAAI,CAACF,QAAQ,CAAC;EAC5C;AACF,CAAC;AAACG,OAAA,CAAAJ,qBAAA,GAAAA,qBAAA;AAAA,IAAAK,QAAA,GAAAD,OAAA,CAAAE,OAAA,GAEaP,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.onVoipNotificationReceived = void 0;
|
|
7
|
+
var _videoClient = require("@stream-io/video-client");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _libs = require("../libs");
|
|
10
|
+
var _rxSubjects = require("./rxSubjects");
|
|
11
|
+
var _utils = require("./utils");
|
|
12
|
+
const onVoipNotificationReceived = async (notification, pushConfig) => {
|
|
13
|
+
/* --- Example payload ---
|
|
14
|
+
{
|
|
15
|
+
"aps": {
|
|
16
|
+
"alert": {
|
|
17
|
+
"body": "",
|
|
18
|
+
"title": "Vishal Narkhede is calling you"
|
|
19
|
+
},
|
|
20
|
+
"badge": 0,
|
|
21
|
+
"category": "stream.video",
|
|
22
|
+
"mutable-content": 1
|
|
23
|
+
},
|
|
24
|
+
"stream": {
|
|
25
|
+
"call_cid": "default:ixbm7y0k74pbjnq",
|
|
26
|
+
"call_display_name": "",
|
|
27
|
+
"created_by_display_name": "Vishal Narkhede",
|
|
28
|
+
"created_by_id": "vishalexpo",
|
|
29
|
+
"receiver_id": "santhoshexpo",
|
|
30
|
+
"sender": "stream.video",
|
|
31
|
+
"type": "call.ring",
|
|
32
|
+
"version": "v2"
|
|
33
|
+
}
|
|
34
|
+
} */
|
|
35
|
+
const sender = notification?.stream?.sender;
|
|
36
|
+
const type = notification?.stream?.type;
|
|
37
|
+
// do not process any other notifications other than stream.video or ringing
|
|
38
|
+
if (sender !== 'stream.video' && type !== 'call.ring') {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const call_cid = notification?.stream?.call_cid;
|
|
42
|
+
if (!call_cid || _reactNative.Platform.OS !== 'ios' || !pushConfig.ios.pushProviderName) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const logger = (0, _videoClient.getLogger)(['setupIosVoipPushEvents']);
|
|
46
|
+
const client = await pushConfig.createStreamVideoClient();
|
|
47
|
+
if (!client) {
|
|
48
|
+
logger('debug', 'client not found, not processing call.ring voip push notification');
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const callFromPush = await client.onRingingCall(call_cid);
|
|
52
|
+
let uuid = '';
|
|
53
|
+
try {
|
|
54
|
+
uuid = await _reactNative.NativeModules?.StreamVideoReactNative?.getIncomingCallUUid(call_cid);
|
|
55
|
+
} catch (error) {
|
|
56
|
+
logger('error', 'Error in getting call uuid from native module', error);
|
|
57
|
+
}
|
|
58
|
+
if (!uuid) {
|
|
59
|
+
logger('error', `Not processing call.ring push notification, as no uuid found for call_cid: ${call_cid}`);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const created_by_id = notification?.stream?.created_by_id;
|
|
63
|
+
const receiver_id = notification?.stream?.receiver_id;
|
|
64
|
+
function closeCallIfNecessary() {
|
|
65
|
+
const {
|
|
66
|
+
mustEndCall,
|
|
67
|
+
callkeepReason
|
|
68
|
+
} = (0, _utils.shouldCallBeEnded)(callFromPush, created_by_id, receiver_id);
|
|
69
|
+
if (mustEndCall) {
|
|
70
|
+
const callkeep = (0, _libs.getCallKeepLib)();
|
|
71
|
+
logger('debug', `callkeep.reportEndCallWithUUID for uuid: ${uuid}, call_cid: ${call_cid}, reason: ${callkeepReason}`);
|
|
72
|
+
callkeep.reportEndCallWithUUID(uuid, callkeepReason);
|
|
73
|
+
const voipPushNotification = (0, _libs.getVoipPushNotificationLib)();
|
|
74
|
+
voipPushNotification.onVoipNotificationCompleted(uuid);
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
const closed = closeCallIfNecessary();
|
|
80
|
+
const canListenToWS = () => _utils.canAddPushWSSubscriptionsRef.current && _reactNative.AppState.currentState !== 'active';
|
|
81
|
+
if (!closed && canListenToWS()) {
|
|
82
|
+
const unsubscribe = callFromPush.on('all', event => {
|
|
83
|
+
const _canListenToWS = canListenToWS();
|
|
84
|
+
if (!_canListenToWS) {
|
|
85
|
+
logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, event);
|
|
86
|
+
unsubscribe();
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const _closed = closeCallIfNecessary();
|
|
90
|
+
if (_closed) {
|
|
91
|
+
logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_closed}`, event);
|
|
92
|
+
unsubscribe();
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
const unsubscriptionCallbacks = _videoClient.RxUtils.getCurrentValue(_rxSubjects.pushUnsubscriptionCallbacks$) ?? [];
|
|
96
|
+
_rxSubjects.pushUnsubscriptionCallbacks$.next([...unsubscriptionCallbacks, unsubscribe]);
|
|
97
|
+
}
|
|
98
|
+
// send the info to this subject, it is listened by callkeep events
|
|
99
|
+
// callkeep events will then accept/reject the call
|
|
100
|
+
logger('debug', `call_cid:${call_cid} uuid:${uuid} received and processed from call.ring push notification`);
|
|
101
|
+
_rxSubjects.voipPushNotificationCallCId$.next(call_cid);
|
|
102
|
+
};
|
|
103
|
+
exports.onVoipNotificationReceived = onVoipNotificationReceived;
|
|
104
|
+
//# sourceMappingURL=ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_reactNative","_libs","_rxSubjects","_utils","onVoipNotificationReceived","notification","pushConfig","sender","stream","type","call_cid","Platform","OS","ios","pushProviderName","logger","getLogger","client","createStreamVideoClient","callFromPush","onRingingCall","uuid","NativeModules","StreamVideoReactNative","getIncomingCallUUid","error","created_by_id","receiver_id","closeCallIfNecessary","mustEndCall","callkeepReason","shouldCallBeEnded","callkeep","getCallKeepLib","reportEndCallWithUUID","voipPushNotification","getVoipPushNotificationLib","onVoipNotificationCompleted","closed","canListenToWS","canAddPushWSSubscriptionsRef","current","AppState","currentState","unsubscribe","on","event","_canListenToWS","_closed","unsubscriptionCallbacks","RxUtils","getCurrentValue","pushUnsubscriptionCallbacks$","next","voipPushNotificationCallCId$","exports"],"sourceRoot":"../../../../../src","sources":["utils/push/internal/ios.ts"],"mappings":";;;;;;AAAA,IAA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,oBAAoB,CAAC,CAAC;MACtC,IAAIoB,OAAO,EAAE;QACXjC,MAAM,CACJ,OAAO,EACP,qCAAqCL,QAAQ,mBAAmBqC,cAAc,wBAAwBC,OAAO,EAAE,EAC/GF,KACF,CAAC;QACDF,WAAW,CAAC,CAAC;MACf;IACF,CAAC,CAAC;IACF,MAAMK,uBAAuB,GAC3BC,oBAAO,CAACC,eAAe,CAACC,wCAA4B,CAAC,IAAI,EAAE;IAC7DA,wCAA4B,CAACC,IAAI,CAAC,CAChC,GAAGJ,uBAAuB,EAC1BL,WAAW,CACZ,CAAC;EACJ;EACA;EACA;EACA7B,MAAM,CACJ,OAAO,EACP,YAAYL,QAAQ,SAASW,IAAI,0DACnC,CAAC;EACDiC,wCAA4B,CAACD,IAAI,CAAC3C,QAAQ,CAAC;AAC7C,CAAC;AAAC6C,OAAA,CAAAnD,0BAAA,GAAAA,0BAAA","ignoreList":[]}
|
|
@@ -5,14 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.initIosNonVoipToken = initIosNonVoipToken;
|
|
7
7
|
exports.onPushNotificationiOSStreamVideoEvent = onPushNotificationiOSStreamVideoEvent;
|
|
8
|
-
exports.oniOSNotifeeEvent = exports.oniOSExpoNotificationEvent =
|
|
8
|
+
exports.oniOSNotifeeEvent = exports.oniOSExpoNotificationEvent = void 0;
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
10
|
var _rxSubjects = require("./internal/rxSubjects");
|
|
11
11
|
var _libs = require("./libs");
|
|
12
12
|
var _videoClient = require("@stream-io/video-client");
|
|
13
13
|
var _pushLogoutCallback = require("../internal/pushLogoutCallback");
|
|
14
14
|
var _StreamVideoRN = require("../StreamVideoRN");
|
|
15
|
-
var _utils = require("./internal/utils");
|
|
16
15
|
let lastApnToken = {
|
|
17
16
|
token: '',
|
|
18
17
|
userId: ''
|
|
@@ -130,18 +129,20 @@ async function initIosNonVoipToken(client, pushConfig, setUnsubscribeListener) {
|
|
|
130
129
|
};
|
|
131
130
|
if (pushConfig.isExpo) {
|
|
132
131
|
const expoNotificationsLib = (0, _libs.getExpoNotificationsLib)();
|
|
133
|
-
expoNotificationsLib
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
132
|
+
if (expoNotificationsLib) {
|
|
133
|
+
expoNotificationsLib.getDevicePushTokenAsync().then(devicePushToken => {
|
|
134
|
+
logger('debug', 'Got device token - expoNotificationsLib.getDevicePushTokenAsync', devicePushToken.data);
|
|
135
|
+
setDeviceToken(devicePushToken.data);
|
|
136
|
+
});
|
|
137
|
+
const subscription = expoNotificationsLib.addPushTokenListener(devicePushToken => {
|
|
138
|
+
logger('debug', 'Got device token - expoNotificationsLib.addPushTokenListener', devicePushToken.data);
|
|
139
|
+
setDeviceToken(devicePushToken.data);
|
|
140
|
+
});
|
|
141
|
+
setUnsubscribeListener(() => {
|
|
142
|
+
logger('debug', `removed expo addPushTokenListener`);
|
|
143
|
+
subscription.remove();
|
|
144
|
+
});
|
|
145
|
+
}
|
|
145
146
|
} else {
|
|
146
147
|
const pushNotificationIosLib = (0, _libs.getPushNotificationIosLib)();
|
|
147
148
|
pushNotificationIosLib.addEventListener('register', token => {
|
|
@@ -154,97 +155,4 @@ async function initIosNonVoipToken(client, pushConfig, setUnsubscribeListener) {
|
|
|
154
155
|
});
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
|
-
const onVoipNotificationReceived = async notification => {
|
|
158
|
-
/* --- Example payload ---
|
|
159
|
-
{
|
|
160
|
-
"aps": {
|
|
161
|
-
"alert": {
|
|
162
|
-
"body": "",
|
|
163
|
-
"title": "Vishal Narkhede is calling you"
|
|
164
|
-
},
|
|
165
|
-
"badge": 0,
|
|
166
|
-
"category": "stream.video",
|
|
167
|
-
"mutable-content": 1
|
|
168
|
-
},
|
|
169
|
-
"stream": {
|
|
170
|
-
"call_cid": "default:ixbm7y0k74pbjnq",
|
|
171
|
-
"call_display_name": "",
|
|
172
|
-
"created_by_display_name": "Vishal Narkhede",
|
|
173
|
-
"created_by_id": "vishalexpo",
|
|
174
|
-
"receiver_id": "santhoshexpo",
|
|
175
|
-
"sender": "stream.video",
|
|
176
|
-
"type": "call.ring",
|
|
177
|
-
"version": "v2"
|
|
178
|
-
}
|
|
179
|
-
} */
|
|
180
|
-
const sender = notification?.stream?.sender;
|
|
181
|
-
const type = notification?.stream?.type;
|
|
182
|
-
// do not process any other notifications other than stream.video or ringing
|
|
183
|
-
if (sender !== 'stream.video' && type !== 'call.ring') {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
const call_cid = notification?.stream?.call_cid;
|
|
187
|
-
const pushConfig = _StreamVideoRN.StreamVideoRN.getConfig().push;
|
|
188
|
-
if (!call_cid || _reactNative.Platform.OS !== 'ios' || !pushConfig) {
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
const logger = (0, _videoClient.getLogger)(['setupIosVoipPushEvents']);
|
|
192
|
-
const client = await pushConfig.createStreamVideoClient();
|
|
193
|
-
if (!client) {
|
|
194
|
-
logger('debug', 'client not found, not processing call.ring voip push notification');
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
const callFromPush = await client.onRingingCall(call_cid);
|
|
198
|
-
let uuid = '';
|
|
199
|
-
try {
|
|
200
|
-
uuid = await _reactNative.NativeModules?.StreamVideoReactNative?.getIncomingCallUUid(call_cid);
|
|
201
|
-
} catch (error) {
|
|
202
|
-
logger('error', 'Error in getting call uuid from native module', error);
|
|
203
|
-
}
|
|
204
|
-
if (!uuid) {
|
|
205
|
-
logger('error', `Not processing call.ring push notification, as no uuid found for call_cid: ${call_cid}`);
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
const created_by_id = notification?.stream?.created_by_id;
|
|
209
|
-
const receiver_id = notification?.stream?.receiver_id;
|
|
210
|
-
function closeCallIfNecessary() {
|
|
211
|
-
const {
|
|
212
|
-
mustEndCall,
|
|
213
|
-
callkeepReason
|
|
214
|
-
} = (0, _utils.shouldCallBeEnded)(callFromPush, created_by_id, receiver_id);
|
|
215
|
-
if (mustEndCall) {
|
|
216
|
-
const callkeep = (0, _libs.getCallKeepLib)();
|
|
217
|
-
logger('debug', `callkeep.reportEndCallWithUUID for uuid: ${uuid}, call_cid: ${call_cid}, reason: ${callkeepReason}`);
|
|
218
|
-
callkeep.reportEndCallWithUUID(uuid, callkeepReason);
|
|
219
|
-
const voipPushNotification = (0, _libs.getVoipPushNotificationLib)();
|
|
220
|
-
voipPushNotification.onVoipNotificationCompleted(uuid);
|
|
221
|
-
return true;
|
|
222
|
-
}
|
|
223
|
-
return false;
|
|
224
|
-
}
|
|
225
|
-
const closed = closeCallIfNecessary();
|
|
226
|
-
const canListenToWS = () => _utils.canAddPushWSSubscriptionsRef.current && _reactNative.AppState.currentState !== 'active';
|
|
227
|
-
if (!closed && canListenToWS()) {
|
|
228
|
-
const unsubscribe = callFromPush.on('all', event => {
|
|
229
|
-
const _canListenToWS = canListenToWS();
|
|
230
|
-
if (!_canListenToWS) {
|
|
231
|
-
logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS}`, event);
|
|
232
|
-
unsubscribe();
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
const _closed = closeCallIfNecessary();
|
|
236
|
-
if (_closed) {
|
|
237
|
-
logger('debug', `unsubscribe due to event callCid: ${call_cid} canListenToWS: ${_canListenToWS} shouldCallBeClosed: ${_closed}`, event);
|
|
238
|
-
unsubscribe();
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
const unsubscriptionCallbacks = _videoClient.RxUtils.getCurrentValue(_rxSubjects.pushUnsubscriptionCallbacks$) ?? [];
|
|
242
|
-
_rxSubjects.pushUnsubscriptionCallbacks$.next([...unsubscriptionCallbacks, unsubscribe]);
|
|
243
|
-
}
|
|
244
|
-
// send the info to this subject, it is listened by callkeep events
|
|
245
|
-
// callkeep events will then accept/reject the call
|
|
246
|
-
logger('debug', `call_cid:${call_cid} uuid:${uuid} received and processed from call.ring push notification`);
|
|
247
|
-
_rxSubjects.voipPushNotificationCallCId$.next(call_cid);
|
|
248
|
-
};
|
|
249
|
-
exports.onVoipNotificationReceived = onVoipNotificationReceived;
|
|
250
158
|
//# sourceMappingURL=ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_rxSubjects","_libs","_videoClient","_pushLogoutCallback","_StreamVideoRN","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_rxSubjects","_libs","_videoClient","_pushLogoutCallback","_StreamVideoRN","lastApnToken","token","userId","processNonRingingNotificationStreamPayload","streamPayload","sender","type","cid","call_cid","logger","getLogger","pushNonRingingCallData$","next","undefined","oniOSExpoNotificationEvent","event","pushConfig","StreamVideoRN","getConfig","push","trigger","request","payload","stream","JSON","stringify","exports","oniOSNotifeeEvent","Platform","OS","detail","notifeeLib","getNotifeeLibThrowIfNotInstalledForPush","EventType","PRESS","notification","data","result","onTapNonRingingCallNotification","onPushNotificationiOSStreamVideoEvent","pushNotificationIosLib","getPushNotificationIosLib","getData","isClicked","userInteraction","finish","FetchResult","NoData","initIosNonVoipToken","client","setUnsubscribeListener","ios","pushProviderName","setDeviceToken","streamClient","_user","id","setPushLogoutCallback","removeDevice","err","push_provider_name","addDevice","then","catch","isExpo","expoNotificationsLib","getExpoNotificationsLib","getDevicePushTokenAsync","devicePushToken","subscription","addPushTokenListener","remove","addEventListener","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/ios.ts"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAOA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAA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AMiC,YAAY,GAAGJ,oBAAoB,CAACK,oBAAoB,CAC3DF,eAAe,IAAK;QACnB3D,MAAM,CACJ,OAAO,EACP,8DAA8D,EAC9D2D,eAAe,CAAChC,IAClB,CAAC;QACDiB,cAAc,CAACe,eAAe,CAAChC,IAAI,CAAC;MACtC,CACF,CAAC;MACDc,sBAAsB,CAAC,MAAM;QAC3BzC,MAAM,CAAC,OAAO,EAAE,mCAAmC,CAAC;QACpD4D,YAAY,CAACE,MAAM,CAAC,CAAC;MACvB,CAAC,CAAC;IACJ;EACF,CAAC,MAAM;IACL,MAAM/B,sBAAsB,GAAG,IAAAC,+BAAyB,EAAC,CAAC;IAC1DD,sBAAsB,CAACgC,gBAAgB,CAAC,UAAU,EAAGvE,KAAK,IAAK;MAC7DQ,MAAM,CACJ,OAAO,EACP,wEAAwE,EACxER,KACF,CAAC;MACDoD,cAAc,CAACpD,KAAK,CAAC;IACvB,CAAC,CAAC;IACFiD,sBAAsB,CAAC,MAAM;MAC3BzC,MAAM,CAAC,OAAO,EAAE,wDAAwD,CAAC;MACzE+B,sBAAsB,CAACiC,mBAAmB,CAAC,UAAU,CAAC;IACxD,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.getCallKeepLib = getCallKeepLib;
|
|
|
7
7
|
let callkeep;
|
|
8
8
|
try {
|
|
9
9
|
callkeep = require('react-native-callkeep').default;
|
|
10
|
-
} catch
|
|
10
|
+
} catch {}
|
|
11
11
|
function getCallKeepLib() {
|
|
12
12
|
if (!callkeep) {
|
|
13
13
|
throw Error('react-native-callkeep library is not installed. Please see https://github.com/react-native-webrtc/react-native-callkeep#Installation for installation instructions');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["callkeep","require","default","
|
|
1
|
+
{"version":3,"names":["callkeep","require","default","getCallKeepLib","Error"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/callkeep.ts"],"mappings":";;;;;;AAEA,IAAIA,QAAoC;AAExC,IAAI;EACFA,QAAQ,GAAGC,OAAO,CAAC,uBAAuB,CAAC,CAACC,OAAO;AACrD,CAAC,CAAC,MAAM,CAAC;AAEF,SAASC,cAAcA,CAAA,EAAG;EAC/B,IAAI,CAACH,QAAQ,EAAE;IACb,MAAMI,KAAK,CACT,oKACF,CAAC;EACH;EACA,OAAOJ,QAAQ;AACjB","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ var _videoClient = require("@stream-io/video-client");
|
|
|
9
9
|
let expoNotificationsLib;
|
|
10
10
|
try {
|
|
11
11
|
expoNotificationsLib = require('expo-notifications');
|
|
12
|
-
} catch
|
|
12
|
+
} catch {}
|
|
13
13
|
function getExpoNotificationsLib() {
|
|
14
14
|
if (!expoNotificationsLib) {
|
|
15
15
|
throw Error('expo-notifications library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/notifications/ for installation instructions. It is required for non ringing push notifications.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_videoClient","require","expoNotificationsLib","
|
|
1
|
+
{"version":3,"names":["_videoClient","require","expoNotificationsLib","getExpoNotificationsLib","Error","getExpoNotificationsLibNoThrow","getLogger"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/expoNotifications.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA,IAAIC,oBAAsD;AAE1D,IAAI;EACFA,oBAAoB,GAAGD,OAAO,CAAC,oBAAoB,CAAC;AACtD,CAAC,CAAC,MAAM,CAAC;AAEF,SAASE,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACD,oBAAoB,EAAE;IACzB,MAAME,KAAK,CACT,oMACF,CAAC;EACH;EACA,OAAOF,oBAAoB;AAC7B;AAEO,SAASG,8BAA8BA,CAAA,EAAG;EAC/C,IAAI,CAACH,oBAAoB,EAAE;IACzB,IAAAI,sBAAS,EAAC,CAAC,gCAAgC,CAAC,CAAC,CAC3C,OAAO,EACP,oHACF,CAAC;EACH;EACA,OAAOJ,oBAAoB;AAC7B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["lib","exports","require","default"
|
|
1
|
+
{"version":3,"names":["lib","exports","require","default"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/lib.ts"],"mappings":";;;;;;AAEA,IAAIA,GAAqB,GAAAC,OAAA,CAAAD,GAAA;AAEzB,IAAI;EACFC,OAAA,CAAAD,GAAA,GAAAA,GAAG,GAAGE,OAAO,CAAC,kCAAkC,CAAC,CAACC,OAAO;AAC3D,CAAC,CAAC,MAAM,CAAC;;AAIT;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.getPushNotificationIosLib = getPushNotificationIosLib;
|
|
|
7
7
|
let pushNotificationIosLib;
|
|
8
8
|
try {
|
|
9
9
|
pushNotificationIosLib = require('@react-native-community/push-notification-ios').default;
|
|
10
|
-
} catch
|
|
10
|
+
} catch {}
|
|
11
11
|
function getPushNotificationIosLib() {
|
|
12
12
|
if (!pushNotificationIosLib) {
|
|
13
13
|
throw Error('@react-native-community/push-notification-ios library is not installed. Please install it using "yarn add @react-native-community/push-notification-ios" or "npm i @react-native-community/push-notification-ios --save"');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["pushNotificationIosLib","require","default","
|
|
1
|
+
{"version":3,"names":["pushNotificationIosLib","require","default","getPushNotificationIosLib","Error"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/iosPushNotification.ts"],"mappings":";;;;;;AAKA,IAAIA,sBAA0D;AAI9D,IAAI;EACFA,sBAAsB,GACpBC,OAAO,CAAC,+CAA+C,CAAC,CAACC,OAAO;AACpE,CAAC,CAAC,MAAM,CAAC;AAEF,SAASC,yBAAyBA,CAAA,EAAG;EAC1C,IAAI,CAACH,sBAAsB,EAAE;IAC3B,MAAMI,KAAK,CACT,0NACF,CAAC;EACH;EACA,OAAOJ,sBAAsB;AAC/B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["lib","exports","require"
|
|
1
|
+
{"version":3,"names":["lib","exports","require"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/notifee/lib.ts"],"mappings":";;;;;;AAEA,IAAIA,GAAqB,GAAAC,OAAA,CAAAD,GAAA;AAEzB,IAAI;EACFC,OAAA,CAAAD,GAAA,GAAAA,GAAG,GAAGE,OAAO,CAAC,uBAAuB,CAAC;AACxC,CAAC,CAAC,MAAM,CAAC;;AAIT;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.getVoipPushNotificationLib = getVoipPushNotificationLib;
|
|
|
7
7
|
let voipPushNotification;
|
|
8
8
|
try {
|
|
9
9
|
voipPushNotification = require('react-native-voip-push-notification').default;
|
|
10
|
-
} catch
|
|
10
|
+
} catch {}
|
|
11
11
|
function getVoipPushNotificationLib() {
|
|
12
12
|
if (!voipPushNotification) {
|
|
13
13
|
throw Error("react-native-voip-push-notification library is not installed. Please install it using 'yarn add react-native-voip-push-notification' or 'npm i react-native-voip-push-notification --save'");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["voipPushNotification","require","default","
|
|
1
|
+
{"version":3,"names":["voipPushNotification","require","default","getVoipPushNotificationLib","Error"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/voipPushNotification.ts"],"mappings":";;;;;;AAGA,IAAIA,oBAA0D;AAE9D,IAAI;EACFA,oBAAoB,GAAGC,OAAO,CAAC,qCAAqC,CAAC,CAACC,OAAO;AAC/E,CAAC,CAAC,MAAM,CAAC;AAEF,SAASC,0BAA0BA,CAAA,EAAG;EAC3C,IAAI,CAACH,oBAAoB,EAAE;IACzB,MAAMI,KAAK,CACT,4LACF,CAAC;EACH;EACA,OAAOJ,oBAAoB;AAC7B","ignoreList":[]}
|
|
@@ -32,7 +32,7 @@ function setupIosCallKeepEvents(pushConfig) {
|
|
|
32
32
|
call_cid = await _reactNative.NativeModules?.StreamVideoReactNative?.getIncomingCallCid(callUUID);
|
|
33
33
|
_rxSubjects.voipPushNotificationCallCId$.next(call_cid);
|
|
34
34
|
} catch (error) {
|
|
35
|
-
logger('debug', 'Error in getting call cid from native module - probably the call was already processed, so ignoring this callkeep event');
|
|
35
|
+
logger('debug', 'Error in getting call cid from native module - probably the call was already processed, so ignoring this callkeep event', error);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
return call_cid;
|
|
@@ -51,7 +51,7 @@ function setupIosCallKeepEvents(pushConfig) {
|
|
|
51
51
|
}
|
|
52
52
|
function didDisplayIncomingCall(callUUID, payload) {
|
|
53
53
|
const voipPushNotification = (0, _libs.getVoipPushNotificationLib)();
|
|
54
|
-
// @ts-expect-error
|
|
54
|
+
// @ts-expect-error - call_cid is not part of RNCallKeepEventPayload
|
|
55
55
|
const call_cid = payload?.call_cid;
|
|
56
56
|
logger('debug', `didDisplayIncomingCall event with callUUID: ${callUUID} call_cid: ${call_cid}`);
|
|
57
57
|
if (call_cid) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_rxSubjects","require","_videoClient","_libs","_utils","_reactNative","_pushLogoutCallback","setupIosCallKeepEvents","pushConfig","Platform","OS","ios","pushProviderName","android","incomingCallChannel","getLogger","logger","callkeep","getCallKeepLib","getCallCid","callUUID","call_cid","RxUtils","getCurrentValue","voipPushNotificationCallCId$","NativeModules","StreamVideoReactNative","getIncomingCallCid","next","error","answerCall","then","iosCallkeepAcceptCall","endCall","iosCallkeepRejectCall","didDisplayIncomingCall","payload","voipPushNotification","getVoipPushNotificationLib","AppState","currentState","processCallFromPushInBackground","voipCallkeepCallOnForegroundMap$","uuid","cid","onVoipNotificationCompleted","remove","removeAnswerCall","addEventListener","removeEndCall","removeDisplayIncomingCall","removeDidLoadWithEvents","events","Array","isArray","length","forEach","event","name","data","setPushLogoutCallback","callUUIDFromCallkeep","shouldProcessCallFromCallkeep","clearPushWSEventSubscriptions","voipCallkeepAcceptedCallOnNativeDialerMap$","pushAcceptedIncomingCallCId$","undefined","removeIncomingCall"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosCallKeepEvents.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_rxSubjects","require","_videoClient","_libs","_utils","_reactNative","_pushLogoutCallback","setupIosCallKeepEvents","pushConfig","Platform","OS","ios","pushProviderName","android","incomingCallChannel","getLogger","logger","callkeep","getCallKeepLib","getCallCid","callUUID","call_cid","RxUtils","getCurrentValue","voipPushNotificationCallCId$","NativeModules","StreamVideoReactNative","getIncomingCallCid","next","error","answerCall","then","iosCallkeepAcceptCall","endCall","iosCallkeepRejectCall","didDisplayIncomingCall","payload","voipPushNotification","getVoipPushNotificationLib","AppState","currentState","processCallFromPushInBackground","voipCallkeepCallOnForegroundMap$","uuid","cid","onVoipNotificationCompleted","remove","removeAnswerCall","addEventListener","removeEndCall","removeDisplayIncomingCall","removeDidLoadWithEvents","events","Array","isArray","length","forEach","event","name","data","setPushLogoutCallback","callUUIDFromCallkeep","shouldProcessCallFromCallkeep","clearPushWSEventSubscriptions","voipCallkeepAcceptedCallOnNativeDialerMap$","pushAcceptedIncomingCallCId$","undefined","removeIncomingCall"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosCallKeepEvents.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAIA;AACA;AACA;AACO,SAASM,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI,CAACF,UAAU,CAACG,GAAG,CAACC,gBAAgB,EAAE;IAC7D;EACF;EACA,IAAI,CAACJ,UAAU,CAACK,OAAO,CAACC,mBAAmB,EAAE;IAC3C;I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;IAClE;EACF;EACA,IAAAE,oCAA6B,EAAC,CAAC;EAC/B;EACAC,sDAA0C,CAACpC,IAAI,CAACsC,SAAS,CAAC;EAC1DxB,4CAAgC,CAACd,IAAI,CAACsC,SAAS,CAAC;EAChD1C,wCAA4B,CAACI,IAAI,CAACsC,SAAS,CAAC;EAC5C,MAAM,IAAAzB,sCAA+B,EAACjC,UAAU,EAAEa,QAAQ,EAAE,SAAS,CAAC;EACtE,MAAMI,0BAAa,CAACC,sBAAsB,EAAEyC,kBAAkB,CAAC9C,QAAQ,CAAC;AAC1E,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMyC,6BAA6B,GAAGA,CACpCzC,QAA4B,EAC5BwC,oBAA4B,KACL;EACvB,IAAI,CAACxC,QAAQ,IAAI,CAACwC,oBAAoB,EAAE;IACtC,OAAO,KAAK;EACd;EACA,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.setupIosVoipPushEvents = setupIosVoipPushEvents;
|
|
7
7
|
var _libs = require("./libs");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var
|
|
9
|
+
var _ios = require("./internal/ios");
|
|
10
10
|
var _pushLogoutCallback = require("../internal/pushLogoutCallback");
|
|
11
11
|
var _videoClient = require("@stream-io/video-client");
|
|
12
12
|
function setupIosVoipPushEvents(pushConfig) {
|
|
@@ -22,7 +22,7 @@ function setupIosVoipPushEvents(pushConfig) {
|
|
|
22
22
|
const voipPushNotification = (0, _libs.getVoipPushNotificationLib)();
|
|
23
23
|
logger('debug', 'notification event listener added');
|
|
24
24
|
voipPushNotification.addEventListener('notification', notification => {
|
|
25
|
-
(0,
|
|
25
|
+
(0, _ios.onVoipNotificationReceived)(notification, pushConfig);
|
|
26
26
|
});
|
|
27
27
|
(0, _pushLogoutCallback.setPushLogoutCallback)(async () => {
|
|
28
28
|
(0, _videoClient.getLogger)(['setPushLogoutCallback'])('debug', 'notification event listener removed');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_libs","require","_reactNative","
|
|
1
|
+
{"version":3,"names":["_libs","require","_reactNative","_ios","_pushLogoutCallback","_videoClient","setupIosVoipPushEvents","pushConfig","Platform","OS","ios","pushProviderName","logger","getLogger","android","incomingCallChannel","voipPushNotification","getVoipPushNotificationLib","addEventListener","notification","onVoipNotificationReceived","setPushLogoutCallback","removeEventListener"],"sourceRoot":"../../../../src","sources":["utils/push/setupIosVoipPushEvents.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAGO,SAASK,sBAAsBA,CACpCC,UAAkD,EAClD;EACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI,CAACF,UAAU,CAACG,GAAG,EAAEC,gBAAgB,EAAE;IAC9D;EACF;EACA,MAAMC,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,wBAAwB,CAAC,CAAC;EACpD,IAAI,CAACN,UAAU,CAACO,OAAO,CAACC,mBAAmB,EAAE;IAC3C;IACAH,MAAM,CACJ,OAAO,EACP,oFACF,CAAC;IACD;EACF;EACA,MAAMI,oBAAoB,GAAG,IAAAC,gCAA0B,EAAC,CAAC;EAEzDL,MAAM,CAAC,OAAO,EAAE,mCAAmC,CAAC;EACpDI,oBAAoB,CAACE,gBAAgB,CAAC,cAAc,EAAGC,YAAY,IAAK;IACtE,IAAAC,+BAA0B,EAACD,YAAY,EAAEZ,UAAU,CAAC;EACtD,CAAC,CAAC;EACF,IAAAc,yCAAqB,EAAC,YAAY;IAChC,IAAAR,sBAAS,EAAC,CAAC,uBAAuB,CAAC,CAAC,CAClC,OAAO,EACP,qCACF,CAAC;IACDG,oBAAoB,CAACM,mBAAmB,CAAC,cAAc,CAAC;EAC1D,CAAC,CAAC;AACJ","ignoreList":[]}
|
package/dist/commonjs/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import React, { useEffect,
|
|
2
|
+
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import { StyleSheet, View } from 'react-native';
|
|
4
4
|
import InCallManager from 'react-native-incall-manager';
|
|
5
5
|
import { CallParticipantsGrid, CallParticipantsSpotlight } from '../CallLayout';
|
|
@@ -9,7 +9,7 @@ import { Z_INDEX } from '../../../constants';
|
|
|
9
9
|
import { useDebouncedValue } from '../../../utils/hooks';
|
|
10
10
|
import { FloatingParticipantView as DefaultFloatingParticipantView } from '../../Participant';
|
|
11
11
|
import { useTheme } from '../../../contexts';
|
|
12
|
-
import {
|
|
12
|
+
import { useAutoEnterPiPEffect, useIsInPiPMode } from '../../../hooks';
|
|
13
13
|
import { ScreenShareOverlay as DefaultScreenShareOverlay } from '../../utility/ScreenShareOverlay';
|
|
14
14
|
import RTCViewPipIOS from './RTCViewPipIOS';
|
|
15
15
|
export const CallContent = ({
|