@stream-io/video-react-native-sdk 1.10.16 → 1.10.18
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 +726 -684
- 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/hooks/internal/useCallMediaStreamCleanup.js +0 -1
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +3 -0
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +19 -7
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +22 -6
- 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/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/android.js +22 -15
- package/dist/commonjs/utils/push/android.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 +10 -2
- package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging/index.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 +7 -2
- package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -1
- package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +7 -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/hooks/internal/useCallMediaStreamCleanup.js +0 -1
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +3 -0
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +19 -7
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +23 -7
- 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/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 +25 -18
- 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 +9 -2
- package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/index.js +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 +8 -4
- package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -1
- package/dist/module/utils/push/setupIosVoipPushEvents.js +7 -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.map +1 -1
- package/dist/typescript/hooks/internal/useCallMediaStreamCleanup.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.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/StreamVideoRN/types.d.ts +2 -2
- 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 +2 -2
- 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 +2 -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/utils/push/setupIosVoipPushEvents.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 +21 -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 +2 -2
- package/src/hooks/internal/useCallMediaStreamCleanup.ts +2 -6
- package/src/hooks/push/useInitAndroidTokenAndRest.ts +7 -0
- package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +55 -28
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +46 -17
- 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 +1 -1
- package/src/utils/StreamVideoRN/index.ts +4 -4
- package/src/utils/StreamVideoRN/types.ts +4 -4
- 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 +63 -52
- 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 +15 -4
- package/src/utils/push/libs/firebaseMessaging/index.ts +4 -4
- 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 +24 -17
- package/src/utils/push/setupIosVoipPushEvents.ts +12 -4
- package/src/utils/push/utils.ts +2 -2
- package/src/version.ts +1 -1
|
@@ -17,7 +17,7 @@ function getFirebaseMessagingLib() {
|
|
|
17
17
|
function getFirebaseMessagingLibNoThrow(isExpo) {
|
|
18
18
|
if (!_lib.lib) {
|
|
19
19
|
const logger = (0, _videoClient.getLogger)(['getFirebaseMessagingLibNoThrow']);
|
|
20
|
-
logger('
|
|
20
|
+
logger('debug', `${isExpo ? 'In Expo, @react-native-firebase/messaging library is required to receive ringing notifications in app killed state for Android.' : ''}${INSTALLATION_INSTRUCTION}`);
|
|
21
21
|
}
|
|
22
22
|
return _lib.lib;
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_videoClient","require","_lib","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","lib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger","getLogger"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/index.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AAKA,MAAME,wBAAwB,GAC5B,6FAA6F;AAExF,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACC,QAAG,EAAE;IACR,MAAMC,KAAK,CACT,qDAAqD,GACnDH,wBACJ,CAAC;EACH;EACA,OAAOE,QAAG;AACZ;AAEO,SAASE,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACH,QAAG,EAAE;IACR,MAAMI,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,gCAAgC,CAAC,CAAC;IAC5DD,MAAM,CACJ,
|
|
1
|
+
{"version":3,"names":["_videoClient","require","_lib","INSTALLATION_INSTRUCTION","getFirebaseMessagingLib","lib","Error","getFirebaseMessagingLibNoThrow","isExpo","logger","getLogger"],"sourceRoot":"../../../../../../src","sources":["utils/push/libs/firebaseMessaging/index.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AAKA,MAAME,wBAAwB,GAC5B,6FAA6F;AAExF,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACC,QAAG,EAAE;IACR,MAAMC,KAAK,CACT,qDAAqD,GACnDH,wBACJ,CAAC;EACH;EACA,OAAOE,QAAG;AACZ;AAEO,SAASE,8BAA8BA,CAACC,MAAe,EAAE;EAC9D,IAAI,CAACH,QAAG,EAAE;IACR,MAAMI,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,gCAAgC,CAAC,CAAC;IAC5DD,MAAM,CACJ,OAAO,EACP,GACED,MAAM,GACF,iIAAiI,GACjI,EAAE,GACLL,wBAAwB,EAC7B,CAAC;EACH;EACA,OAAOE,QAAG;AACZ","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":[]}
|
|
@@ -17,6 +17,11 @@ function setupIosCallKeepEvents(pushConfig) {
|
|
|
17
17
|
if (_reactNative.Platform.OS !== 'ios' || !pushConfig.ios.pushProviderName) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
+
if (!pushConfig.android.incomingCallChannel) {
|
|
21
|
+
// TODO: remove this check and find a better way once we have telecom integration for android
|
|
22
|
+
(0, _videoClient.getLogger)(['setupIosCallKeepEvents'])('debug', 'android incomingCallChannel is not defined, so skipping the setupIosCallKeepEvents');
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
20
25
|
const logger = (0, _videoClient.getLogger)(['setupIosCallKeepEvents']);
|
|
21
26
|
const callkeep = (0, _libs.getCallKeepLib)();
|
|
22
27
|
async function getCallCid(callUUID) {
|
|
@@ -27,7 +32,7 @@ function setupIosCallKeepEvents(pushConfig) {
|
|
|
27
32
|
call_cid = await _reactNative.NativeModules?.StreamVideoReactNative?.getIncomingCallCid(callUUID);
|
|
28
33
|
_rxSubjects.voipPushNotificationCallCId$.next(call_cid);
|
|
29
34
|
} catch (error) {
|
|
30
|
-
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);
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
return call_cid;
|
|
@@ -46,7 +51,7 @@ function setupIosCallKeepEvents(pushConfig) {
|
|
|
46
51
|
}
|
|
47
52
|
function didDisplayIncomingCall(callUUID, payload) {
|
|
48
53
|
const voipPushNotification = (0, _libs.getVoipPushNotificationLib)();
|
|
49
|
-
// @ts-expect-error
|
|
54
|
+
// @ts-expect-error - call_cid is not part of RNCallKeepEventPayload
|
|
50
55
|
const call_cid = payload?.call_cid;
|
|
51
56
|
logger('debug', `didDisplayIncomingCall event with callUUID: ${callUUID} call_cid: ${call_cid}`);
|
|
52
57
|
if (call_cid) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_rxSubjects","require","_videoClient","_libs","_utils","_reactNative","_pushLogoutCallback","setupIosCallKeepEvents","pushConfig","Platform","OS","ios","pushProviderName","
|
|
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":";;;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EACA,IAAAE,oCAA6B,EAAC,CAAC;EAC/B;EACAC,sDAA0C,CAACpC,IAAI,CAAC;IAC9Ce,IAAI,EAAEkB,oBAAoB;IAC1BjB,GAAG,EAAEvB;EACP,CAAC,CAAC;EACF;EACA4C,wCAA4B,CAACrC,IAAI,CAACP,QAAQ,CAAC;EAC3C;EACAqB,4CAAgC,CAACd,IAAI,CAACsC,SAAS,CAAC;AAClD,CAAC;AAED,MAAMhC,qBAAqB,GAAG,MAAAA,CAC5Bb,QAA4B,EAC5BwC,oBAA4B,EAC5BrD,UAAsB,KACnB;EACH,IAAI,CAACsD,6BAA6B,CAACzC,QAAQ,EAAEwC,oBAAoB,CAAC,EAAE;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) {
|
|
@@ -14,10 +14,15 @@ function setupIosVoipPushEvents(pushConfig) {
|
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
const logger = (0, _videoClient.getLogger)(['setupIosVoipPushEvents']);
|
|
17
|
+
if (!pushConfig.android.incomingCallChannel) {
|
|
18
|
+
// TODO: remove this check and find a better way once we have telecom integration for android
|
|
19
|
+
logger('debug', 'android incomingCallChannel is not defined, so skipping the setupIosVoipPushEvents');
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
17
22
|
const voipPushNotification = (0, _libs.getVoipPushNotificationLib)();
|
|
18
23
|
logger('debug', 'notification event listener added');
|
|
19
24
|
voipPushNotification.addEventListener('notification', notification => {
|
|
20
|
-
(0,
|
|
25
|
+
(0, _ios.onVoipNotificationReceived)(notification, pushConfig);
|
|
21
26
|
});
|
|
22
27
|
(0, _pushLogoutCallback.setPushLogoutCallback)(async () => {
|
|
23
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 = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","useRef","useState","StyleSheet","View","InCallManager","CallParticipantsGrid","CallParticipantsSpotlight","CallControls","DefaultCallControls","useCallStateHooks","Z_INDEX","useDebouncedValue","FloatingParticipantView","DefaultFloatingParticipantView","useTheme","useAutoEnterPiPEffect","useIsInPiPMode","ScreenShareOverlay","DefaultScreenShareOverlay","RTCViewPipIOS","CallContent","onHangupCallHandler","CallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","layout","landscape","supportedReactions","iOSPiPIncludeLocalParticipantVideo","disablePictureInPicture","initialInCallManagerAudioMode","showRemoteParticipantInFloatingView","setShowRemoteParticipantInFloatingView","styles","useStyles","theme","callContent","useHasOngoingScreenShare","useRemoteParticipants","useLocalParticipant","incallManagerModeRef","_remoteParticipants","remoteParticipants","localParticipant","isInPiPMode","hasScreenShare","showSpotlightLayout","showFloatingView","length","isRemoteParticipantInFloatingView","start","media","current","stop","handleFloatingViewParticipantSwitch","prevState","participantViewProps","callParticipantsGridProps","showLocalParticipant","callParticipantsSpotlightProps","landscapeStyles","flexDirection","createElement","Fragment","includeLocalParticipantVideo","style","container","content","callParticipantsContainer","view","topContainer","pointerEvents","_extends","participant","onPressHandler","create","flex","paddingBottom","variants","insets","bottom","paddingLeft","left","paddingRight","right","paddingTop","top","backgroundColor","colors","sheetPrimary","absoluteFillObject","zIndex","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, hasScreenShare, speakerLayoutSortPreset } from
|
|
|
2
2
|
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
3
|
import React, { useEffect, useMemo } from 'react';
|
|
4
4
|
import { findNodeHandle } from 'react-native';
|
|
5
|
-
import {
|
|
5
|
+
import { onNativeCallClosed, RTCViewPipNative } from './RTCViewPipNative';
|
|
6
6
|
import { useDebouncedValue } from '../../../utils/hooks/useDebouncedValue';
|
|
7
7
|
import { shouldDisableIOSLocalVideoOnBackgroundRef } from '../../../utils/internal/shouldDisableIOSLocalVideoOnBackground';
|
|
8
8
|
const RTCViewPipIOS = /*#__PURE__*/React.memo(({
|
|
@@ -77,5 +77,6 @@ const RTCViewPipIOS = /*#__PURE__*/React.memo(({
|
|
|
77
77
|
ref: nativeRef
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
|
+
RTCViewPipIOS.displayName = 'RTCViewPipIOS';
|
|
80
81
|
export default RTCViewPipIOS;
|
|
81
82
|
//# sourceMappingURL=RTCViewPipIOS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CallingState","getLogger","hasScreenShare","speakerLayoutSortPreset","useCall","useCallStateHooks","React","useEffect","useMemo","findNodeHandle","
|
|
1
|
+
{"version":3,"names":["CallingState","getLogger","hasScreenShare","speakerLayoutSortPreset","useCall","useCallStateHooks","React","useEffect","useMemo","findNodeHandle","onNativeCallClosed","RTCViewPipNative","useDebouncedValue","shouldDisableIOSLocalVideoOnBackgroundRef","RTCViewPipIOS","memo","includeLocalParticipantVideo","call","useParticipants","_allParticipants","sortBy","allParticipants","dominantSpeaker","dominantSpeaker2","filter","participant","isLocalParticipant","participantInSpotlight","current","nativeRef","useRef","callClosedInvokedOnce","onCallClosed","node","unsubFunc","on","subscription","state","callingState$","subscribe","LEFT","IDLE","unsubscribe","streamURL","undefined","videoStream","screenShareStream","isScreenSharing","videoStreamToRender","toURL","createElement","ref","displayName"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent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AAGnB,sBAAsB;IAEjE,MAAMoB,eAAe,GAAG7C,cAAc,CAACyB,sBAAsB,CAAC;IAE9D,MAAMqB,mBAAmB,GAAID,eAAe,GACxCD,iBAAiB,GACjBD,WAAkD;IAEtD,OAAOG,mBAAmB,EAAEC,KAAK,CAAC,CAAC;EACrC,CAAC,EAAE,CAACtB,sBAAsB,CAAC,CAAC;EAE5B,oBAAOrB,KAAA,CAAA4C,aAAA,CAACvC,gBAAgB;IAACgC,SAAS,EAAEA,SAAU;IAACQ,GAAG,EAAEtB;EAAU,CAAE,CAAC;AACnE,CAAC,CAAC;AAEFf,aAAa,CAACsC,WAAW,GAAG,eAAe;AAE3C,eAAetC,aAAa","ignoreList":[]}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { getLogger } from '@stream-io/video-client';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Platform, requireNativeComponent,
|
|
3
|
+
import { Platform, requireNativeComponent, StyleSheet, UIManager } from 'react-native';
|
|
4
4
|
const COMPONENT_NAME = 'RTCViewPip';
|
|
5
5
|
const NativeComponent = requireNativeComponent(COMPONENT_NAME);
|
|
6
6
|
export function onNativeCallClosed(reactTag) {
|
|
7
7
|
getLogger(['RTCViewPipNative'])('debug', 'onNativeCallClosed');
|
|
8
|
-
UIManager.dispatchViewManagerCommand(reactTag,
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
UIManager.getViewManagerConfig(COMPONENT_NAME).Commands.onCallClosed, []);
|
|
8
|
+
UIManager.dispatchViewManagerCommand(reactTag, UIManager.getViewManagerConfig(COMPONENT_NAME).Commands.onCallClosed, []);
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
/** Wrapper for the native view
|
|
@@ -16,9 +14,11 @@ export const RTCViewPipNative = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwa
|
|
|
16
14
|
if (Platform.OS !== 'ios') return null;
|
|
17
15
|
return /*#__PURE__*/React.createElement(NativeComponent, {
|
|
18
16
|
style: StyleSheet.absoluteFill,
|
|
19
|
-
pointerEvents: 'none'
|
|
17
|
+
pointerEvents: 'none'
|
|
18
|
+
// eslint-disable-next-line react/prop-types
|
|
19
|
+
,
|
|
20
20
|
streamURL: props.streamURL
|
|
21
|
-
// @ts-
|
|
21
|
+
// @ts-expect-error - types issue
|
|
22
22
|
,
|
|
23
23
|
ref: ref
|
|
24
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getLogger","React","Platform","requireNativeComponent","
|
|
1
|
+
{"version":3,"names":["getLogger","React","Platform","requireNativeComponent","StyleSheet","UIManager","COMPONENT_NAME","NativeComponent","onNativeCallClosed","reactTag","dispatchViewManagerCommand","getViewManagerConfig","Commands","onCallClosed","RTCViewPipNative","memo","forwardRef","props","ref","OS","createElement","style","absoluteFill","pointerEvents","streamURL"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/RTCViewPipNative.tsx"],"mappings":"AAAA,SAASA,SAAS,QAAQ,yBAAyB;AACnD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAEEC,QAAQ,EACRC,sBAAsB,EACtBC,UAAU,EACVC,SAAS,QACJ,cAAc;AAErB,MAAMC,cAAc,GAAG,YAAY;AAMnC,MAAMC,eAAqD,GACzDJ,sBAAsB,CAACG,cAAc,CAAC;AAExC,OAAO,SAASE,kBAAkBA,CAACC,QAAgB,EAAE;EACnDT,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO,EAAE,oBAAoB,CAAC;EAC9DK,SAAS,CAACK,0BAA0B,CAClCD,QAAQ,EACRJ,SAAS,CAACM,oBAAoB,CAACL,cAAc,CAAC,CAACM,QAAQ,CAACC,YAAY,EACpE,EACF,CAAC;AACH;;AAEA;AACA;AACA,OAAO,MAAMC,gBAAgB,gBAAGb,KAAK,CAACc,IAAI,cACxCd,KAAK,CAACe,UAAU,CAKd,CAACC,KAAK,EAAEC,GAAG,KAAK;EAChB,IAAIhB,QAAQ,CAACiB,EAAE,KAAK,KAAK,EAAE,OAAO,IAAI;EAEtC,oBACElB,KAAA,CAAAmB,aAAA,CAACb,eAAe;IACdc,KAAK,EAAEjB,UAAU,CAACkB,YAAa;IAC/BC,aAAa,EAAE;IACf;IAAA;IACAC,SAAS,EAAEP,KAAK,CAACO;IACjB;IAAA;IACAN,GAAG,EAAEA;EAAI,CACV,CAAC;AAEN,CAAC,CACH,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useRef } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Animated, Easing, Pressable, StyleSheet } from 'react-native';
|
|
3
3
|
import { useCall } from '@stream-io/video-react-bindings';
|
|
4
4
|
import { getLogger } from '@stream-io/video-client';
|
|
5
5
|
import { ComponentTestIds } from '../../../../constants/TestIds';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useMemo","useRef","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","useRef","Animated","Easing","Pressable","StyleSheet","useCall","getLogger","ComponentTestIds","useTheme","defaultEmojiReactions","ReactionsPicker","supportedReactions","reactionsButtonLayoutRectangle","onRequestedClose","theme","colors","reactionsPicker","variants","styles","useStyles","call","size","width","reactionItemSize","popupHeight","spacingSizes","xs","length","reactionsPopupStyle","top","y","left","x","height","borderTopStartRadius","borderTopEndRadius","elasticAnimRef","Value","timing","current","toValue","duration","useNativeDriver","easing","elastic","start","reactionItemStyle","borderRadius","reactionsButtonDimmerStyle","reactionsButtonDimmer","onClose","reaction","sendReaction","catch","e","logger","linear","createElement","Fragment","testID","REACTIONS_PICKER","style","reactionsPopup","backgroundColor","sheetSecondary","onPress","map","supportedReaction","key","emoji_code","reactionItem","buttonSecondary","type","custom","Text","reactionText","transform","scaleY","scaleX","icon","create","position","alignItems","paddingTop","opacity","justifyContent","marginBottom","fontSize"],"sourceRoot":"../../../../../../src","sources":["components/Call/CallControls/internal/ReactionsPicker.tsx"],"mappings":"AAAA,OAAOA,KAA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ACN,CACN,CACZ,CACQ,CAAC,eAEZlF,KAAA,CAAA4D,aAAA,CAACtD,SAAS;IACR0D,KAAK,EAAE,CACLb,0BAA0B,EAC1B;MACEe,eAAe,EAAEhD,MAAM,CAACiD;IAC1B,CAAC,EACDhD,eAAe,CAACiC,qBAAqB,CACrC;IACFgB,OAAO,EAAEA,CAAA,KAAMf,OAAO,CAAC;EAAE,CAC1B,CACD,CAAC;AAEP,CAAC;AAED,MAAM/B,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEL;EAAM,CAAC,GAAGN,QAAQ,CAAC,CAAC;EAC5B,OAAOT,OAAO,CACZ,MACEK,UAAU,CAAC4E,MAAM,CAAC;IAChBlB,cAAc,EAAE;MACdmB,QAAQ,EAAE,UAAU;MACpBC,UAAU,EAAE,QAAQ;MACpBC,UAAU,EAAErE,KAAK,CAACG,QAAQ,CAACQ,YAAY,CAACC;IAC1C,CAAC;IACDuB,qBAAqB,EAAE;MACrBgC,QAAQ,EAAE,UAAU;MACpBG,OAAO,EAAE;IACX,CAAC;IACDd,YAAY,EAAE;MACZY,UAAU,EAAE,QAAQ;MACpBG,cAAc,EAAE,QAAQ;MACxBC,YAAY,EAAExE,KAAK,CAACG,QAAQ,CAACQ,YAAY,CAACC;IAC5C,CAAC;IACDiD,YAAY,EAAE;MACZY,QAAQ,EAAE;IACZ;EACF,CAAC,CAAC,EACJ,CAACzE,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","StyleSheet","Text","View","useCallStateHooks","useConnectedUser","useI18n","Avatar","RTCView","LobbyControls","DefaultLobbyControls","JoinCallButton","DefaultJoinCallButton","useTheme","useCallMediaStreamCleanup","LobbyFooter","DefaultLobbyFooter","useApplyDefaultMediaStreamSettings","Lobby","onJoinCallHandler","landscape","theme","colors","lobby","typefaces","styles","useStyles","connectedUser","useCameraState","useCallSettings","callSettings","isVideoEnabledInCall","video","enabled","isMute","cameraIsMuted","mediaStream","t","localVideoStream","connectedUserAsParticipant","userId","id","image","name","createElement","style","container","Fragment","heading","heading5","subHeading","videoContainer","backgroundColor","sheetTertiary","topView","mirror","streamURL","toURL","objectFit","absoluteFillObject","avatarContainer","participant","ParticipantStatus","participantLabel","participantStatusContainer","sheetOverlay","userNameLabel","color","textPrimary","caption","numberOfLines","create","textAlign","paddingBottom","variants","spacingSizes","xs","md","textSecondary","flex","justifyContent","sheetPrimary","paddingRight","insets","right","sm","paddingLeft","left","paddingTop","top","bottom","height","borderRadius","borderRadiusSizes","alignItems","overflow","alignSelf","flexDirection","padding","borderTopRightRadius","flexShrink"],"sourceRoot":"../../../../../src","sources":["components/Call/Lobby/Lobby.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAwBC,OAAO,QAAQ,OAAO;AAC1D,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SACEC,iBAAiB,EACjBC,gBAAgB,EAChBC,OAAO,QACF,iCAAiC;AACxC,SAASC,MAAM,QAAQ,sBAAsB;
|
|
1
|
+
{"version":3,"names":["React","useMemo","StyleSheet","Text","View","useCallStateHooks","useConnectedUser","useI18n","Avatar","RTCView","LobbyControls","DefaultLobbyControls","JoinCallButton","DefaultJoinCallButton","useTheme","useCallMediaStreamCleanup","LobbyFooter","DefaultLobbyFooter","useApplyDefaultMediaStreamSettings","Lobby","onJoinCallHandler","landscape","theme","colors","lobby","typefaces","styles","useStyles","connectedUser","useCameraState","useCallSettings","callSettings","isVideoEnabledInCall","video","enabled","isMute","cameraIsMuted","mediaStream","t","localVideoStream","connectedUserAsParticipant","userId","id","image","name","createElement","style","container","Fragment","heading","heading5","subHeading","videoContainer","backgroundColor","sheetTertiary","topView","mirror","streamURL","toURL","objectFit","absoluteFillObject","avatarContainer","participant","ParticipantStatus","participantLabel","participantStatusContainer","sheetOverlay","userNameLabel","color","textPrimary","caption","numberOfLines","create","textAlign","paddingBottom","variants","spacingSizes","xs","md","textSecondary","flex","justifyContent","sheetPrimary","paddingRight","insets","right","sm","paddingLeft","left","paddingTop","top","bottom","height","borderRadius","borderRadiusSizes","alignItems","overflow","alignSelf","flexDirection","padding","borderTopRightRadius","flexShrink"],"sourceRoot":"../../../../../src","sources":["components/Call/Lobby/Lobby.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAwBC,OAAO,QAAQ,OAAO;AAC1D,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SACEC,iBAAiB,EACjBC,gBAAgB,EAChBC,OAAO,QACF,iCAAiC;AACxC,SAASC,MAAM,QAAQ,sBAAsB;AAG7C,SAASC,OAAO,QAAQ,gCAAgC;AACxD,SAASC,aAAa,IAAIC,oBAAoB,QAAQ,+BAA+B;AACrF,SACEC,cAAc,IAAIC,qBAAqB,QAElC,kBAAkB;AACzB,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,yBAAyB,QAAQ,mDAAmD;AAC7F,SACEC,WAAW,IAAIC,kBAAkB,QAE5B,eAAe;AACtB,SAASC,kCAAkC,QAAQ,mDAAmD;;AAEtG;AACA;AACA;;AAyBA;AACA;AACA;AACA,OAAO,MAAMC,KAAK,GAAGA,CAAC;EACpBC,iBAAiB;EACjBV,aAAa,GAAGC,oBAAoB;EACpCC,cAAc,GAAGC,qBAAqB;EACtCQ,SAAS,GAAG,KAAK;EACjBL,WAAW,GAAGC;AACJ,CAAC,KAAK;EAChB,MAAM;IACJK,KAAK,EAAE;MAAEC,MAAM;MAAEC,KAAK;MAAEC;IAAU;EACpC,CAAC,GAAGX,QAAQ,CAAC,CAAC;EACd,MAAMY,MAAM,GAAGC,SAAS,CAACN,SAAS,CAAC;EACnC,MAAMO,aAAa,GAAGtB,gBAAgB,CAAC,CAAC;EACxC,MAAM;IAAEuB,cAAc;IAAEC;EAAgB,CAAC,GAAGzB,iBAAiB,CAAC,CAAC;EAC/D,MAAM0B,YAAY,GAAGD,eAAe,CAAC,CAAC;EACtC,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MAC7DG,UAAU,EAAEnE,KAAK,CAACqD,QAAQ,CAACS,MAAM,CAACM,GAAG;MACrChB,aAAa,EAAEpD,KAAK,CAACqD,QAAQ,CAACS,MAAM,CAACO;IACvC,CAAC;IACDvC,cAAc,EAAE;MACdwC,MAAM,EAAEvE,SAAS,GAAG,KAAK,GAAG,KAAK;MACjCwE,YAAY,EAAEvE,KAAK,CAACqD,QAAQ,CAACmB,iBAAiB,CAAChB,EAAE;MACjDG,cAAc,EAAE,eAAe;MAC/Bc,UAAU,EAAE,QAAQ;MACpBC,QAAQ,EAAE;IACZ,CAAC;IACDzC,OAAO,EAAE,CAAC,CAAC;IACXU,0BAA0B,EAAE;MAC1BgC,SAAS,EAAE,YAAY;MACvBC,aAAa,EAAE,KAAK;MACpBH,UAAU,EAAE,QAAQ;MACpBI,OAAO,EAAE7E,KAAK,CAACqD,QAAQ,CAACC,YAAY,CAACU,EAAE;MACvCc,oBAAoB,EAAE9E,KAAK,CAACqD,QAAQ,CAACmB,iBAAiB,CAACR;IACzD,CAAC;IACDzB,eAAe,EAAE;MACfmB,IAAI,EAAE,CAAC;MACPC,cAAc,EAAE;IAClB,CAAC;IACDd,aAAa,EAAE;MACbkC,UAAU,EAAE;IACd;EACF,CAAC,CAAC,EACJ,CAAC/E,KAAK,EAAED,SAAS,CACnB,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
4
4
|
import { useCallStateHooks, useI18n } from '@stream-io/video-react-bindings';
|
|
5
5
|
import { Lock } from '../../../icons/Lock';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","
|
|
1
|
+
{"version":3,"names":["React","useMemo","StyleSheet","Text","View","useTheme","useCallStateHooks","useI18n","Lock","LobbyFooter","onJoinCallHandler","JoinCallButton","theme","colors","lobby","variants","styles","useStyles","useCallSession","t","session","numberOfParticipants","participants","length","participantsText","createElement","style","mainContainer","infoContainer","textContainer","iconContainer","color","iconPrimary","size","iconSizes","md","textPrimary","infoText","create","padding","spacingSizes","sm","flexDirection","alignItems","justifyContent","backgroundColor","sheetTertiary","paddingHorizontal","paddingVertical","xs","borderRadius","borderRadiusSizes","marginRight","fontSize","fontSizes","lineHeight","fontWeight"],"sourceRoot":"../../../../../src","sources":["components/Call/Lobby/LobbyFooter.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AAEtC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,iBAAiB,EAAEC,OAAO,QAAQ,iCAAiC;AAC5E,SAASC,IAAI,QAAQ,qBAAqB;;AAE1C;AACA;AACA;;AAMA;AACA;AACA;AACA,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAC1BC,iBAAiB;EACjBC;AACgB,CAAC,KAAK;EACtB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,KAAK;MAAEC;IAAS;EACnC,CAAC,GAAGV,QAAQ,CAAC,CAAC;EACd,MAAMW,MAAM,GAAGC,SAAS,CAAC,CAAC;EAC1B,MAAM;IAAEC;EAAe,CAAC,GAAGZ,iBAAiB,CAAC,CAAC;EAC9C,MAAM;IAAEa;EAAE,CAAC,GAAGZ,OAAO,CAAC,CAAC;EACvB,MAAMa,OAAO,GAAGF,cAAc,CAAC,CAAC;EAChC,MAAMG,oBAAoB,GAAGD,OAAO,EAAEE,YAAY,CAACC,MAAM;EAEzD,MAAMC,gBAAgB,GAAGvB,OAAO,CAAC,MAAM;IACrC,IAAI,CAACoB,oBAAoB,EAAE;MACzB,OAAOF,CAAC,CAAC,wDAAwD,CAAC;IACpE;IACA,IAAIE,oBAAoB,KAAK,CAAC,EAAE;MAC9B,OAAOF,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EAAE;MACba,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE,QAAQ;MACxBC,eAAe,EAAEjC,KAAK,CAACC,MAAM,CAACiC,aAAa;MAC3CC,iBAAiB,EAAEnC,KAAK,CAACG,QAAQ,CAACyB,YAAY,CAACL,EAAE;MACjDa,eAAe,EAAEpC,KAAK,CAACG,QAAQ,CAACyB,YAAY,CAACS,EAAE;MAC/CC,YAAY,EAAEtC,KAAK,CAACG,QAAQ,CAACoC,iBAAiB,CAACV;IACjD,CAAC;IACDX,aAAa,EAAE;MACbsB,WAAW,EAAExC,KAAK,CAACG,QAAQ,CAACyB,YAAY,CAACC;IAC3C,CAAC;IACDJ,QAAQ,EAAE;MACRgB,QAAQ,EAAEzC,KAAK,CAACG,QAAQ,CAACuC,SAAS,CAACb,EAAE;MACrCc,UAAU,EAAE,EAAE;MACdC,UAAU,EAAE;IACd;EACF,CAAC,CAAC,EACJ,CAAC5C,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
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, {
|
|
3
|
-
import { Animated, PanResponder,
|
|
4
|
-
import {
|
|
2
|
+
import React, { useEffect, useReducer, useRef } from 'react';
|
|
3
|
+
import { Animated, Easing, PanResponder, StyleSheet, View } from 'react-native';
|
|
4
|
+
import { floatingChildViewContainerStyle, FloatingViewAlignment, getClosestSnapAlignment, getSnapAlignments } from './common';
|
|
5
5
|
import { getLogger } from '@stream-io/video-client';
|
|
6
6
|
const AnimatedFloatingView = ({
|
|
7
7
|
initialAlignment,
|
|
@@ -20,7 +20,7 @@ const AnimatedFloatingView = ({
|
|
|
20
20
|
// we need to force update the component when the rectangle is available
|
|
21
21
|
// we cannot just rely on the rectangle because it is not available on the first render
|
|
22
22
|
// and we need snapAlignments to be in a Ref so that it can be used in the panResponder's creation Ref
|
|
23
|
-
const [
|
|
23
|
+
const [, forceUpdate] = useReducer(x => x + 1, 0);
|
|
24
24
|
|
|
25
25
|
// the offsets for the translate bounds of the floating view
|
|
26
26
|
// stored in ref, because it is used in the panResponder (which has to be a ref)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useReducer","useRef","Animated","Easing","PanResponder","StyleSheet","View","floatingChildViewContainerStyle","FloatingViewAlignment","getClosestSnapAlignment","getSnapAlignments","getLogger","AnimatedFloatingView","initialAlignment","containerWidth","containerHeight","children","translateRef","ValueXY","opacity","Value","rectangle","setRectangle","useState","forceUpdate","x","snapAlignmentsRef","topLeft","y","topRight","bottomLeft","bottomRight","snapAlignments","rootContainerDimensions","width","height","floatingViewDimensions","current","setOffset","setValue","panResponder","create","onStartShouldSetPanResponder","onMoveShouldSetPanResponder","onPanResponderMove","event","dx","dy","useNativeDriver","onPanResponderGrant","extractOffset","onPanResponderRelease","flattenOffset","currentPosition","__getValue","closestAlignment","position","timing","toValue","duration","easing","inOut","quad","start","logger","containerStyle","styles","animContainer","transform","translateX","interpolate","inputRange","outputRange","extrapolate","translateY","createElement","_extends","style","panHandlers","onLayout","layout","nativeEvent","prev","top","left"],"sourceRoot":"../../../../../../src","sources":["components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,UAAU,EAAEC,MAAM,QAAQ,OAAO;AAC5D,SACEC,QAAQ,EACRC,MAAM,EAENC,YAAY,EACZC,UAAU,EACVC,IAAI,QACC,cAAc;AACrB,SACEC,+BAA+B,EAC/BC,qBAAqB,EAErBC,uBAAuB,EACvBC,iBAAiB,QACZ,UAAU;AACjB,SAASC,SAAS,QAAQ,yBAAyB;AAEnD,MAAMC,oBA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,iBAAiB,CAACW,OAAO,CAAC7B,qBAAqB,CAACuB,WAAW,CAAC,CAACH,CAAC,CAC/D;QACD4C,WAAW,EAAE,CACX,CAAC,EACD9C,iBAAiB,CAACW,OAAO,CAAC7B,qBAAqB,CAACuB,WAAW,CAAC,CAACH,CAAC,CAC/D;QACD6C,WAAW,EAAE;MACf,CAAC;IACH,CAAC;EAEL,CAAC;EAED,oBACE3E,KAAA,CAAA6E,aAAA,CAACzE,QAAQ,CAACI,IAAI,EAAAsE,QAAA;IAACC,KAAK,EAAEZ;EAAe,GAAKzB,YAAY,CAACsC,WAAW,gBAChEhF,KAAA,CAAA6E,aAAA,CAACrE,IAAI;IACHyE,QAAQ,EAAGlC,KAAK,IAAK;MACnB,MAAMmC,MAAM,GAAGnC,KAAK,CAACoC,WAAW,CAACD,MAAM;MACvC1D,YAAY,CAAE4D,IAAI,IAAK;QACrB,IACEA,IAAI,IACJA,IAAI,CAAChD,KAAK,KAAK8C,MAAM,CAAC9C,KAAK,IAC3BgD,IAAI,CAAC/C,MAAM,KAAK6C,MAAM,CAAC7C,MAAM,IAC7B+C,IAAI,CAACzD,CAAC,KAAKuD,MAAM,CAACvD,CAAC,IACnByD,IAAI,CAACtD,CAAC,KAAKoD,MAAM,CAACpD,CAAC,EACnB;UACA,OAAOsD,IAAI;QACb;QACA,OAAOF,MAAM;MACf,CAAC,CAAC;IACJ,CAAE;IACFH,KAAK,EAAEtE;EAAgC,GAEtCS,QACG,CACO,CAAC;AAEpB,CAAC;AAED,MAAMkD,MAAM,GAAG7D,UAAU,CAACoC,MAAM,CAAC;EAC/B0B,aAAa,EAAE;IACbX,QAAQ,EAAE,UAAU;IACpB2B,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,eAAexE,oBAAoB","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useEffect, useMemo } from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { floatingChildViewContainerStyle, FloatingViewAlignment, getClosestSnapAlignment, getSnapAlignments } from './common';
|
|
4
4
|
let ReanimatedFloatingView = () => {
|
|
5
5
|
throw new Error('ReanimatedFloatingView component must not be used without the react-native-reanimated library and react-native-gesture-handler library installed');
|
|
6
6
|
};
|
|
@@ -16,6 +16,8 @@ try {
|
|
|
16
16
|
useAnimatedStyle,
|
|
17
17
|
withDelay
|
|
18
18
|
} = require('react-native-reanimated');
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line react/display-name
|
|
19
21
|
ReanimatedFloatingView = ({
|
|
20
22
|
initialAlignment,
|
|
21
23
|
containerHeight,
|
|
@@ -66,7 +68,7 @@ try {
|
|
|
66
68
|
}
|
|
67
69
|
});
|
|
68
70
|
}, [rectangle, containerWidth, containerHeight]);
|
|
69
|
-
const dragGesture = Gesture.Pan().onStart(
|
|
71
|
+
const dragGesture = Gesture.Pan().onStart(() => {
|
|
70
72
|
start.value = {
|
|
71
73
|
x: translationX.value,
|
|
72
74
|
y: translationY.value
|
|
@@ -106,7 +108,7 @@ try {
|
|
|
106
108
|
}));
|
|
107
109
|
}, [rectangle, snapAlignments, initialAlignment, opacity, translationX, translationY, start]);
|
|
108
110
|
|
|
109
|
-
// @ts-
|
|
111
|
+
// @ts-expect-error - types conflict
|
|
110
112
|
const animatedStyle = useAnimatedStyle(() => {
|
|
111
113
|
return {
|
|
112
114
|
height: rectangle?.height,
|
|
@@ -142,6 +144,6 @@ try {
|
|
|
142
144
|
}, children)))
|
|
143
145
|
);
|
|
144
146
|
};
|
|
145
|
-
} catch
|
|
147
|
+
} catch {}
|
|
146
148
|
export default ReanimatedFloatingView;
|
|
147
149
|
//# sourceMappingURL=ReanimatedFloatingView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","View","floatingChildViewContainerStyle","FloatingViewAlignment","getClosestSnapAlignment","getSnapAlignments","ReanimatedFloatingView","Error","Gesture","GestureDetector","require","Reanimated","default","useSharedValue","withTiming","useAnimatedStyle","withDelay","initialAlignment","containerHeight","containerWidth","children","start","x","y","translationX","translationY","opacity","rectangle","setRectangle","useState","snapAlignments","topLeft","topRight","bottomLeft","bottomRight","rootContainerDimensions","width","height","floatingViewDimensions","dragGesture","Pan","onStart","value","onUpdate","e","Math","max","min","onEnd","position","closestAlignment","alignment","duration","animatedStyle","transform","translateX","translateY","createElement","gesture","style","onLayout","event","layout","nativeEvent","prev"],"sourceRoot":"../../../../../../src","sources":["components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACjD,SAA+BC,IAAI,QAAQ,cAAc;AACzD,SACEC,+BAA+B,EAC/BC,qBAAqB,EAErBC,uBAAuB,EACvBC,iBAAiB,QACZ,UAAU;AAMjB,IAAIC,sBAAmD,GAAGA,CAAA,KAAM;EAC9D,MAAM,IAAIC,KAAK,CACb,kJACF,CAAC;AACH,CAAC;AAED,IAAI;EACF,MAAM;IACJC,OAAO;IACPC;EAIF,CAAC,GAAGC,OAAO,CAAC,8BAA8B,CAAC;EAC3C,MAAMC,UAAmC,GACvCD,OAAO,CAAC,yBAAyB,CAAC,CAACE,OAAO;EAC5C,MAAM;IACJC,cAAc;IACdC,UAAU;IACVC,gBAAgB;IAChBC;EAMF,CAAC,GAAGN,OAAO,CAAC,yBAAyB,CAAC;;EAEtC;EACAJ,sBAAsB,GAAGA,CAAC;IACxBW,gBAAgB;IAChBC,eAAe;IACfC,cAAc;IACdC;EACiB,CAAC,KAAK;IACvB;IACA;IACA,MAAMC,KAAK,GAAGR,cAAc,CAAC;MAAES,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE,CAAC,CAAC;IAC5C;IACA,MAAMC,YAAY,GAAGX,cAAc,CAAC,CAAC,CAAC;IACtC,MAAMY,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EAAEzD;MAAgC,GAEtCkB,QACG,CACS,CACF;IAAC;EAEtB,CAAC;AACH,CAAC,CAAC,MAAM,CAAC;AAET,eAAed,sBAAsB","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useMemo } from 'react';
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
import { useCall } from '@stream-io/video-react-bindings';
|
|
4
|
-
import {
|
|
4
|
+
import { defaultEmojiReactions, Z_INDEX } from '../../../constants';
|
|
5
5
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
6
6
|
|
|
7
7
|
/**
|