@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.
Files changed (312) hide show
  1. package/CHANGELOG.md +728 -687
  2. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +1 -0
  3. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  4. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +5 -5
  5. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  6. package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
  7. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +1 -1
  8. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  9. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +5 -3
  10. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
  11. package/dist/commonjs/contexts/BackgroundFilters.js +1 -1
  12. package/dist/commonjs/contexts/BackgroundFilters.js.map +1 -1
  13. package/dist/commonjs/contexts/ThemeContext.js +12 -3
  14. package/dist/commonjs/contexts/ThemeContext.js.map +1 -1
  15. package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js +0 -1
  16. package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
  17. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +4 -4
  18. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +11 -5
  19. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  20. package/dist/commonjs/hooks/useScreenShareButton.js +1 -3
  21. package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -1
  22. package/dist/commonjs/hooks/useTrackDimensions.js +1 -1
  23. package/dist/commonjs/hooks/useTrackDimensions.js.map +1 -1
  24. package/dist/commonjs/providers/StreamCall/DeviceStats.js +2 -2
  25. package/dist/commonjs/providers/StreamCall/DeviceStats.js.map +1 -1
  26. package/dist/commonjs/providers/StreamVideo.js +1 -1
  27. package/dist/commonjs/providers/StreamVideo.js.map +1 -1
  28. package/dist/commonjs/utils/internal/optionallibs/gestureHandler.js +1 -1
  29. package/dist/commonjs/utils/internal/optionallibs/gestureHandler.js.map +1 -1
  30. package/dist/commonjs/utils/internal/optionallibs/reanimated.js +1 -1
  31. package/dist/commonjs/utils/internal/optionallibs/reanimated.js.map +1 -1
  32. package/dist/commonjs/utils/internal/pushLogoutCallback.js +1 -1
  33. package/dist/commonjs/utils/internal/pushLogoutCallback.js.map +1 -1
  34. package/dist/commonjs/utils/push/internal/ios.js +104 -0
  35. package/dist/commonjs/utils/push/internal/ios.js.map +1 -0
  36. package/dist/commonjs/utils/push/ios.js +15 -107
  37. package/dist/commonjs/utils/push/ios.js.map +1 -1
  38. package/dist/commonjs/utils/push/libs/callkeep.js +1 -1
  39. package/dist/commonjs/utils/push/libs/callkeep.js.map +1 -1
  40. package/dist/commonjs/utils/push/libs/expoNotifications.js +1 -1
  41. package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
  42. package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js +1 -1
  43. package/dist/commonjs/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
  44. package/dist/commonjs/utils/push/libs/iosPushNotification.js +1 -1
  45. package/dist/commonjs/utils/push/libs/iosPushNotification.js.map +1 -1
  46. package/dist/commonjs/utils/push/libs/notifee/lib.js +1 -1
  47. package/dist/commonjs/utils/push/libs/notifee/lib.js.map +1 -1
  48. package/dist/commonjs/utils/push/libs/voipPushNotification.js +1 -1
  49. package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +1 -1
  50. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +2 -2
  51. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -1
  52. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +2 -2
  53. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
  54. package/dist/commonjs/version.js +1 -1
  55. package/dist/module/components/Call/CallContent/CallContent.js +2 -2
  56. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
  57. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +2 -1
  58. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  59. package/dist/module/components/Call/CallContent/RTCViewPipNative.js +6 -6
  60. package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  61. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +1 -1
  62. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  63. package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
  64. package/dist/module/components/Call/Lobby/LobbyFooter.js +1 -1
  65. package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
  66. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +4 -4
  67. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  68. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +7 -5
  69. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
  70. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +1 -1
  71. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
  72. package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +1 -1
  73. package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
  74. package/dist/module/contexts/BackgroundFilters.js +1 -1
  75. package/dist/module/contexts/BackgroundFilters.js.map +1 -1
  76. package/dist/module/contexts/ThemeContext.js +11 -1
  77. package/dist/module/contexts/ThemeContext.js.map +1 -1
  78. package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +0 -1
  79. package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
  80. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +4 -4
  81. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +12 -6
  82. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  83. package/dist/module/hooks/push/useProcessPushCallEffect.js +1 -1
  84. package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
  85. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +2 -2
  86. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  87. package/dist/module/hooks/usePermissionRequest.js +1 -1
  88. package/dist/module/hooks/usePermissionRequest.js.map +1 -1
  89. package/dist/module/hooks/useScreenShareButton.js +3 -5
  90. package/dist/module/hooks/useScreenShareButton.js.map +1 -1
  91. package/dist/module/hooks/useTrackDimensions.js +2 -2
  92. package/dist/module/hooks/useTrackDimensions.js.map +1 -1
  93. package/dist/module/providers/StreamCall/DeviceStats.js +4 -4
  94. package/dist/module/providers/StreamCall/DeviceStats.js.map +1 -1
  95. package/dist/module/providers/StreamVideo.js +2 -2
  96. package/dist/module/providers/StreamVideo.js.map +1 -1
  97. package/dist/module/utils/internal/optionallibs/gestureHandler.js +1 -1
  98. package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -1
  99. package/dist/module/utils/internal/optionallibs/reanimated.js +1 -1
  100. package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -1
  101. package/dist/module/utils/internal/pushLogoutCallback.js +1 -1
  102. package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
  103. package/dist/module/utils/push/android.js +3 -3
  104. package/dist/module/utils/push/android.js.map +1 -1
  105. package/dist/module/utils/push/internal/ios.js +97 -0
  106. package/dist/module/utils/push/internal/ios.js.map +1 -0
  107. package/dist/module/utils/push/internal/utils.js +1 -1
  108. package/dist/module/utils/push/internal/utils.js.map +1 -1
  109. package/dist/module/utils/push/ios.js +18 -109
  110. package/dist/module/utils/push/ios.js.map +1 -1
  111. package/dist/module/utils/push/libs/callkeep.js +1 -1
  112. package/dist/module/utils/push/libs/callkeep.js.map +1 -1
  113. package/dist/module/utils/push/libs/expoNotifications.js +1 -1
  114. package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
  115. package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  116. package/dist/module/utils/push/libs/firebaseMessaging/lib.js +1 -1
  117. package/dist/module/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
  118. package/dist/module/utils/push/libs/iosPushNotification.js +1 -1
  119. package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -1
  120. package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
  121. package/dist/module/utils/push/libs/notifee/lib.js +1 -1
  122. package/dist/module/utils/push/libs/notifee/lib.js.map +1 -1
  123. package/dist/module/utils/push/libs/voipPushNotification.js +1 -1
  124. package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -1
  125. package/dist/module/utils/push/setupIosCallKeepEvents.js +3 -4
  126. package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -1
  127. package/dist/module/utils/push/setupIosVoipPushEvents.js +2 -2
  128. package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
  129. package/dist/module/version.js +1 -1
  130. package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
  131. package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -1
  132. package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts.map +1 -1
  133. package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
  134. package/dist/typescript/components/Call/CallControls/CallControls.d.ts.map +1 -1
  135. package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -1
  136. package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
  137. package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts.map +1 -1
  138. package/dist/typescript/components/Call/CallControls/OutgoingCallControls.d.ts.map +1 -1
  139. package/dist/typescript/components/Call/CallControls/ReactionsButton.d.ts.map +1 -1
  140. package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts.map +1 -1
  141. package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -1
  142. package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts.map +1 -1
  143. package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts.map +1 -1
  144. package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts.map +1 -1
  145. package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts.map +1 -1
  146. package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts.map +1 -1
  147. package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
  148. package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
  149. package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
  150. package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
  151. package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -1
  152. package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
  153. package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts.map +1 -1
  154. package/dist/typescript/components/Call/RingingCallContent/CallLeftIndicator.d.ts.map +1 -1
  155. package/dist/typescript/components/Call/RingingCallContent/CallPreparingIndicator.d.ts.map +1 -1
  156. package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -1
  157. package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -1
  158. package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -1
  159. package/dist/typescript/components/Call/RingingCallContent/TextBasedIndicator.d.ts.map +1 -1
  160. package/dist/typescript/components/Call/RingingCallContent/UserInfo.d.ts.map +1 -1
  161. package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
  162. package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts.map +1 -1
  163. package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts.map +1 -1
  164. package/dist/typescript/components/Livestream/LivestreamControls/LivestreamMediaControls.d.ts.map +1 -1
  165. package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map +1 -1
  166. package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -1
  167. package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts.map +1 -1
  168. package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts.map +1 -1
  169. package/dist/typescript/components/Livestream/LivestreamTopView/DurationBadge.d.ts.map +1 -1
  170. package/dist/typescript/components/Livestream/LivestreamTopView/FollowerCount.d.ts.map +1 -1
  171. package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts.map +1 -1
  172. package/dist/typescript/components/Livestream/LivestreamTopView/LiveIndicator.d.ts.map +1 -1
  173. package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts.map +1 -1
  174. package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
  175. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -1
  176. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts.map +1 -1
  177. package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
  178. package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
  179. package/dist/typescript/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts.map +1 -1
  180. package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -1
  181. package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts.map +1 -1
  182. package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
  183. package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts.map +1 -1
  184. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts.map +1 -1
  185. package/dist/typescript/components/utility/Avatar.d.ts.map +1 -1
  186. package/dist/typescript/components/utility/ScreenShareOverlay.d.ts.map +1 -1
  187. package/dist/typescript/contexts/BackgroundFilters.d.ts.map +1 -1
  188. package/dist/typescript/contexts/ThemeContext.d.ts +10 -2
  189. package/dist/typescript/contexts/ThemeContext.d.ts.map +1 -1
  190. package/dist/typescript/hooks/internal/useCallMediaStreamCleanup.d.ts.map +1 -1
  191. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
  192. package/dist/typescript/hooks/usePaginatedLayoutSortPreset.d.ts.map +1 -1
  193. package/dist/typescript/hooks/usePermissionNotification.d.ts.map +1 -1
  194. package/dist/typescript/hooks/useScreenShareButton.d.ts +21 -1
  195. package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -1
  196. package/dist/typescript/icons/Back.d.ts.map +1 -1
  197. package/dist/typescript/icons/CameraSwitch.d.ts.map +1 -1
  198. package/dist/typescript/icons/IconWrapper.d.ts.map +1 -1
  199. package/dist/typescript/icons/Lock.d.ts.map +1 -1
  200. package/dist/typescript/icons/Mic.d.ts.map +1 -1
  201. package/dist/typescript/icons/MicOff.d.ts.map +1 -1
  202. package/dist/typescript/icons/Phone.d.ts.map +1 -1
  203. package/dist/typescript/icons/PhoneDown.d.ts.map +1 -1
  204. package/dist/typescript/icons/PinVertical.d.ts.map +1 -1
  205. package/dist/typescript/icons/Reaction.d.ts.map +1 -1
  206. package/dist/typescript/icons/ScreenShare.d.ts.map +1 -1
  207. package/dist/typescript/icons/ScreenShareIndicator.d.ts.map +1 -1
  208. package/dist/typescript/icons/Settings.d.ts.map +1 -1
  209. package/dist/typescript/icons/Spotlight.d.ts.map +1 -1
  210. package/dist/typescript/icons/StopScreenShare.d.ts.map +1 -1
  211. package/dist/typescript/icons/ThreeDots.d.ts.map +1 -1
  212. package/dist/typescript/icons/TopViewBackground.d.ts.map +1 -1
  213. package/dist/typescript/icons/Video.d.ts.map +1 -1
  214. package/dist/typescript/icons/VideoSlash.d.ts.map +1 -1
  215. package/dist/typescript/providers/StreamCall/index.d.ts.map +1 -1
  216. package/dist/typescript/providers/StreamVideo.d.ts.map +1 -1
  217. package/dist/typescript/utils/hooks/usePrevious.d.ts.map +1 -1
  218. package/dist/typescript/utils/index.d.ts.map +1 -1
  219. package/dist/typescript/utils/internal/optionallibs/gestureHandler.d.ts.map +1 -1
  220. package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts.map +1 -1
  221. package/dist/typescript/utils/internal/pushLogoutCallback.d.ts +1 -1
  222. package/dist/typescript/utils/internal/pushLogoutCallback.d.ts.map +1 -1
  223. package/dist/typescript/utils/push/android.d.ts +1 -1
  224. package/dist/typescript/utils/push/android.d.ts.map +1 -1
  225. package/dist/typescript/utils/push/internal/ios.d.ts +3 -0
  226. package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -0
  227. package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
  228. package/dist/typescript/utils/push/ios.d.ts +0 -1
  229. package/dist/typescript/utils/push/ios.d.ts.map +1 -1
  230. package/dist/typescript/utils/push/libs/expoNotifications.d.ts +1 -1
  231. package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -1
  232. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
  233. package/dist/typescript/utils/push/libs/iosPushNotification.d.ts +1 -1
  234. package/dist/typescript/utils/push/libs/iosPushNotification.d.ts.map +1 -1
  235. package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
  236. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +1 -1
  237. package/dist/typescript/version.d.ts +1 -1
  238. package/expo-config-plugin/dist/withAndroidManifest.js +0 -1
  239. package/expo-config-plugin/dist/withAppDelegate.js +1 -1
  240. package/expo-config-plugin/dist/withIosScreenCapture/withPlistUpdates.js +1 -1
  241. package/expo-config-plugin/dist/withiOSInfoPlist.js +3 -1
  242. package/package.json +20 -23
  243. package/src/components/Call/CallContent/CallContent.tsx +3 -3
  244. package/src/components/Call/CallContent/RTCViewPipIOS.tsx +6 -4
  245. package/src/components/Call/CallContent/RTCViewPipNative.tsx +5 -5
  246. package/src/components/Call/CallControls/CallControlsButton.tsx +1 -1
  247. package/src/components/Call/CallControls/LobbyControls.tsx +1 -1
  248. package/src/components/Call/CallControls/ScreenShareToggleButton.tsx +1 -1
  249. package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +4 -4
  250. package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +1 -1
  251. package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +5 -5
  252. package/src/components/Call/Lobby/JoinCallButton.tsx +1 -1
  253. package/src/components/Call/Lobby/Lobby.tsx +2 -2
  254. package/src/components/Call/Lobby/LobbyFooter.tsx +2 -2
  255. package/src/components/Call/RingingCallContent/UserInfo.tsx +1 -1
  256. package/src/components/Livestream/HostLivestream/HostLivestream.tsx +1 -1
  257. package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +1 -1
  258. package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +1 -1
  259. package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +1 -1
  260. package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +1 -1
  261. package/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx +10 -10
  262. package/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.tsx +15 -13
  263. package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +1 -1
  264. package/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.tsx +1 -1
  265. package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +3 -3
  266. package/src/components/Participant/ParticipantView/ParticipantView.tsx +1 -1
  267. package/src/components/Participant/ParticipantView/SpeechIndicator.tsx +3 -3
  268. package/src/components/Participant/ParticipantView/VideoRenderer.tsx +1 -1
  269. package/src/contexts/BackgroundFilters.tsx +7 -7
  270. package/src/contexts/StreamVideoContext.tsx +3 -3
  271. package/src/contexts/ThemeContext.tsx +15 -5
  272. package/src/hooks/internal/useCallMediaStreamCleanup.ts +2 -6
  273. package/src/hooks/push/useInitAndroidTokenAndRest.ts +1 -1
  274. package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +25 -25
  275. package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +28 -19
  276. package/src/hooks/push/useProcessPushCallEffect.ts +8 -8
  277. package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +1 -1
  278. package/src/hooks/useAndroidKeepCallAliveEffect.ts +10 -10
  279. package/src/hooks/useAutoEnterPiPEffect.tsx +2 -2
  280. package/src/hooks/useIsIosScreenshareBroadcastStarted.ts +2 -2
  281. package/src/hooks/usePaginatedLayoutSortPreset.ts +1 -1
  282. package/src/hooks/usePermissionNotification.tsx +1 -1
  283. package/src/hooks/usePermissionRequest.tsx +4 -4
  284. package/src/hooks/useScreenShareButton.ts +9 -10
  285. package/src/hooks/useTrackDimensions.ts +3 -3
  286. package/src/providers/StreamCall/AppStateListener.tsx +6 -6
  287. package/src/providers/StreamCall/DeviceStats.tsx +8 -8
  288. package/src/providers/StreamVideo.tsx +4 -4
  289. package/src/utils/StreamVideoRN/index.ts +4 -4
  290. package/src/utils/StreamVideoRN/types.ts +2 -2
  291. package/src/utils/enterPiPAndroid.ts +1 -1
  292. package/src/utils/index.ts +2 -2
  293. package/src/utils/internal/newNotificationCallbacks.ts +3 -3
  294. package/src/utils/internal/optionallibs/gestureHandler.ts +1 -1
  295. package/src/utils/internal/optionallibs/reanimated.ts +1 -1
  296. package/src/utils/internal/pushLogoutCallback.ts +1 -1
  297. package/src/utils/push/android.ts +33 -33
  298. package/src/utils/push/internal/ios.ts +133 -0
  299. package/src/utils/push/internal/utils.ts +10 -10
  300. package/src/utils/push/ios.ts +38 -164
  301. package/src/utils/push/libs/callkeep.ts +2 -2
  302. package/src/utils/push/libs/expoNotifications.ts +5 -5
  303. package/src/utils/push/libs/firebaseMessaging/index.ts +3 -3
  304. package/src/utils/push/libs/firebaseMessaging/lib.ts +1 -1
  305. package/src/utils/push/libs/iosPushNotification.ts +4 -4
  306. package/src/utils/push/libs/notifee/index.ts +7 -7
  307. package/src/utils/push/libs/notifee/lib.ts +1 -1
  308. package/src/utils/push/libs/voipPushNotification.ts +2 -2
  309. package/src/utils/push/setupIosCallKeepEvents.ts +17 -18
  310. package/src/utils/push/setupIosVoipPushEvents.ts +5 -5
  311. package/src/utils/push/utils.ts +2 -2
  312. 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.ThemeProvider, {
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","ThemeProvider","StreamVideoStoreProvider","PushRegister","exports","usePushRegis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ACzC,aAAA,CAAA2C,aAAa;IAACd,KAAK,EAAEA;EAAM,gBAC1BpC,MAAA,CAAAU,OAAA,CAAAsC,aAAA,CAAC9C,mBAAA,CAAAiD,wBAAwB,qBACvBnD,MAAA,CAAAU,OAAA,CAAAsC,aAAA,CAACI,YAAY,MAAE,CAAC,EACfrB,QACuB,CACb,CACI,CAAC;AAE1B,CAAC;;AAED;AACA;AACA;AACA;AAHAsB,OAAA,CAAAzB,WAAA,GAAAA,WAAA;AAIA,MAAMwB,YAAY,GAAGA,CAAA,KAAM;EACzB,IAAAE,4BAAqB,EAAC,CAAC;EACvB,OAAO,IAAI;AACb,CAAC","ignoreList":[]}
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,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yB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estureHandlerLib = void 0;
7
7
  let gestureHandler;
8
8
  try {
9
9
  gestureHandler = require('react-native-gesture-handler');
10
- } catch (e) {}
10
+ } catch {}
11
11
  const getGestureHandlerLib = (onPackageNotFound = () => {}) => {
12
12
  if (!gestureHandler) {
13
13
  onPackageNotFound();
@@ -1 +1 @@
1
- {"version":3,"names":["gestureHandler","require","e","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,OAAOC,CAAC,EAAE,CAAC;AAEN,MAAMC,oBAAoB,GAAGA,CAACC,iBAAiB,GAAGA,CAAA,KAAM,CAAC,CAAC,KAAK;EACpE,IAAI,CAACJ,cAAc,EAAE;IACnBI,iBAAiB,CAAC,CAAC;EACrB;EACA,OAAOJ,cAAc;AACvB,CAAC;AAACK,OAAA,CAAAF,oBAAA,GAAAA,oBAAA","ignoreList":[]}
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":[]}
@@ -7,7 +7,7 @@ exports.getReanimatedLib = void 0;
7
7
  let reanimated;
8
8
  try {
9
9
  reanimated = require('react-native-reanimated');
10
- } catch (e) {}
10
+ } catch {}
11
11
  const getReanimatedLib = (onPackageNotFound = () => {}) => {
12
12
  if (!reanimated) {
13
13
  onPackageNotFound();
@@ -1 +1 @@
1
- {"version":3,"names":["reanimated","require","e","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,OAAOC,CAAC,EAAE,CAAC;AAEN,MAAMC,gBAAgB,GAAGA,CAACC,iBAAiB,GAAGA,CAAA,KAAM,CAAC,CAAC,KAAK;EAChE,IAAI,CAACJ,UAAU,EAAE;IACfI,iBAAiB,CAAC,CAAC;EACrB;EACA,OAAOJ,UAAU;AACnB,CAAC;AAACK,OAAA,CAAAF,gBAAA,GAAAA,gBAAA","ignoreList":[]}
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
- let pushLogoutCallbacks = {};
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,IAAIA,mBAAwC,GAAG,CAAC,CAAC;AAE1C,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":[]}
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,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAIA,IAAAI,MAAA,GAAAJ,OAAA;AAGO,MAAMK,0BAA0B,GAAG,MAAAA,CACxCC,YAAiB,EACjBC,UAAkD,KAC/C;EACH;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMC,MAAM,GAAGF,YAAY,EAAEG,MAAM,EAAED,MAAM;EAC3C,MAAME,IAAI,GAAGJ,YAAY,EAAEG,MAAM,EAAEC,IAAI;EACvC;EACA,IAAIF,MAAM,KAAK,cAAc,IAAIE,IAAI,KAAK,WAAW,EAAE;IACrD;EACF;EACA,MAAMC,QAAQ,GAAGL,YAAY,EAAEG,MAAM,EAAEE,QAAQ;EAC/C,IAAI,CAACA,QAAQ,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI,CAACN,UAAU,CAACO,GAAG,CAACC,gBAAgB,EAAE;IAC1E;EACF;EACA,MAAMC,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,wBAAwB,CAAC,CAA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MW,aAAa,GAAGA,CAAA,KACpBC,mCAA4B,CAACC,OAAO,IAAIC,qBAAQ,CAACC,YAAY,KAAK,QAAQ;EAC5E,IAAI,CAACL,MAAM,IAAIC,aAAa,CAAC,CAAC,EAAE;IAC9B,MAAMK,WAAW,GAAGzB,YAAY,CAAC0B,EAAE,CAAC,KAAK,EAAGC,KAAK,IAAK;MACpD,MAAMC,cAAc,GAAGR,aAAa,CAAC,CAAC;MACtC,IAAI,CAACQ,cAAc,EAAE;QACnBhC,MAAM,CACJ,OAAO,EACP,qCAAqCL,QAAQ,mBAAmBqC,cAAc,EAAE,EAChFD,KACF,CAAC;QACDF,WAAW,CAAC,CAAC;QACb;MACF;MACA,MAAMI,OAAO,GAAGpB,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 = exports.onVoipNotificationReceived = void 0;
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.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
- });
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","_utils","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","onVoipNotificationReceived","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","_canListenToWS","_closed","unsubscriptionCallbacks","RxUtils","getCurrentValue","pushUnsubscriptionCallbacks$","voipPushNotificationCallCId$"],"sourceRoot":"../../../../src","sources":["utils/push/ios.ts"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAKA,IAAAE,KAAA,GAAAF,OAAA;AASA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AAOA,IAAIO,YAAY,GAAG;EAAEC,KAAK,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAG,CAAC;AAE5C,SAASC,0CAA0CA,CACjDC,aA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MiB,MAAM,GAAGV,oBAAoB,CAAC,CAAC;EACrC,MAAMW,aAAa,GAAGA,CAAA,KACpBC,mCAA4B,CAACC,OAAO,IAAIC,qBAAQ,CAACC,YAAY,KAAK,QAAQ;EAC5E,IAAI,CAACL,MAAM,IAAIC,aAAa,CAAC,CAAC,EAAE;IAC9B,MAAMK,WAAW,GAAGzB,YAAY,CAAC0B,EAAE,CAAC,KAAK,EAAGvF,KAAK,IAAK;MACpD,MAAMwF,cAAc,GAAGP,aAAa,CAAC,CAAC;MACtC,IAAI,CAACO,cAAc,EAAE;QACnB9F,MAAM,CACJ,OAAO,EACP,qCAAqCD,QAAQ,mBAAmB+F,cAAc,EAAE,EAChFxF,KACF,CAAC;QACDsF,WAAW,CAAC,CAAC;QACb;MACF;MACA,MAAMG,OAAO,GAAGnB,oBAAoB,CAAC,CAAC;MACtC,IAAImB,OAAO,EAAE;QACX/F,MAAM,CACJ,OAAO,EACP,qCAAqCD,QAAQ,mBAAmB+F,cAAc,wBAAwBC,OAAO,EAAE,EAC/GzF,KACF,CAAC;QACDsF,WAAW,CAAC,CAAC;MACf;IACF,CAAC,CAAC;IACF,MAAMI,uBAAuB,GAC3BC,oBAAO,CAACC,eAAe,CAACC,wCAA4B,CAAC,IAAI,EAAE;IAC7DA,wCAA4B,CAAChG,IAAI,CAAC,CAChC,GAAG6F,uBAAuB,EAC1BJ,WAAW,CACZ,CAAC;EACJ;EACA;EACA;EACA5F,MAAM,CACJ,OAAO,EACP,YAAYD,QAAQ,SAASsE,IAAI,0DACnC,CAAC;EACD+B,wCAA4B,CAACjG,IAAI,CAACJ,QAAQ,CAAC;AAC7C,CAAC;AAACkB,OAAA,CAAAgD,0BAAA,GAAAA,0BAAA","ignoreList":[]}
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,OAAA;AAKA,IAAIM,YAAY,GAAG;EAAEC,KAAK,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAG,CAAC;AAE5C,SAASC,0CAA0CA,CACjDC,aAAgC,EAChC;EACA,IACEA,aAAa,EAAEC,MAAM,KAAK,cAAc,IACxCD,aAAa,EAAEE,IAAI,KAAK,WAAW,EACnC;IACA,MAAMC,GAAG,GAAGH,aAAa,CAACI,QAAQ;IAClC,MAAMF,IAAI,GAAGF,aAAa,CAACE,IAAI;IAC/B,MAAMG,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,4CAA4C,CAAC,CAAC;IACxED,MAAM,CAAC,OAAO,EAAE,eAAeF,GAAG,KAAKD,IAAI,EAAE,CAAC;IAC9CK,mCAAuB,CAACC,IAAI,CAAC;MAAEL,GAAG;MAAED;IAAK,CAAC,CAAC;IAC3C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F,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 (_e) {}
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","_e","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,OAAOC,EAAE,EAAE,CAAC;AAEP,SAASC,cAAcA,CAAA,EAAG;EAC/B,IAAI,CAACJ,QAAQ,EAAE;IACb,MAAMK,KAAK,CACT,oKACF,CAAC;EACH;EACA,OAAOL,QAAQ;AACjB","ignoreList":[]}
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 (_e) {}
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","_e","getExpoNotificationsLib","Error","getExpoNotificationsLibNoThrow","getLogger"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/expoNotifications.ts"],"mappings":";;;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAIC,oBAAsD;AAE1D,IAAI;EACFA,oBAAoB,GAAGD,OAAO,CAAC,oBAAoB,CAAC;AACtD,CAAC,CAAC,OAAOE,EAAE,EAAE,CAAC;AAEP,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACF,oBAAoB,EAAE;IACzB,MAAMG,KAAK,CACT,oMACF,CAAC;EACH;EACA,OAAOH,oBAAoB;AAC7B;AAEO,SAASI,8BAA8BA,CAAA,EAAG;EAC/C,IAAI,CAACJ,oBAAoB,EAAE;IACzB,IAAAK,sBAAS,EAAC,CAAC,gCAAgC,CAAC,CAAC,CAC3C,OAAO,EACP,oHACF,CAAC;EACH;EACA,OAAOL,oBAAoB;AAC7B","ignoreList":[]}
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":[]}
@@ -7,7 +7,7 @@ exports.lib = void 0;
7
7
  let lib = exports.lib = void 0;
8
8
  try {
9
9
  exports.lib = lib = require('@react-native-firebase/messaging').default;
10
- } catch (_e) {}
10
+ } catch {}
11
11
 
12
12
  /*
13
13
  IMPORTANT: must keep a failing import in a different file
@@ -1 +1 @@
1
- {"version":3,"names":["lib","exports","require","default","_e"],"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,OAAOC,EAAE,EAAE,CAAC;;AAId;AACA;AACA;AACA","ignoreList":[]}
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 (_e) {}
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","_e","getPushNotificationIosLib","Error"],"sourceRoot":"../../../../../src","sources":["utils/push/libs/iosPushNotification.ts"],"mappings":";;;;;;AAGA,IAAIA,sBAA0D;AAM9D,IAAI;EACFA,sBAAsB,GACpBC,OAAO,CAAC,+CAA+C,CAAC,CAACC,OAAO;AACpE,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;AAEP,SAASC,yBAAyBA,CAAA,EAAG;EAC1C,IAAI,CAACJ,sBAAsB,EAAE;IAC3B,MAAMK,KAAK,CACT,0NACF,CAAC;EACH;EACA,OAAOL,sBAAsB;AAC/B","ignoreList":[]}
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":[]}
@@ -7,7 +7,7 @@ exports.lib = void 0;
7
7
  let lib = exports.lib = void 0;
8
8
  try {
9
9
  exports.lib = lib = require('@notifee/react-native');
10
- } catch (_e) {}
10
+ } catch {}
11
11
 
12
12
  /*
13
13
  IMPORTANT: must keep a failing import in a different file
@@ -1 +1 @@
1
- {"version":3,"names":["lib","exports","require","_e"],"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,OAAOC,EAAE,EAAE,CAAC;;AAId;AACA;AACA;AACA","ignoreList":[]}
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 (_e) {}
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","_e","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,OAAOC,EAAE,EAAE,CAAC;AAEP,SAASC,0BAA0BA,CAAA,EAAG;EAC3C,IAAI,CAACJ,oBAAoB,EAAE;IACzB,MAAMK,KAAK,CACT,4LACF,CAAC;EACH;EACA,OAAOL,oBAAoB;AAC7B","ignoreList":[]}
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;AAIA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAQA,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;IACA,IAAAC,sBAAS,EAAC,CAAC,wBAAwB,CAAC,CAAC,CACnC,OAAO,EACP,oFACF,CAAC;IACD;EACF;EACA,MAAMC,MAAM,GAAG,IAAAD,sBAAS,EAAC,CAAC,wBAAwB,CAAC,CAAC;EACpD,MAAME,QAAQ,GAAG,IAAAC,oBAAc,EAAC,CAAC;EAEjC,eAAeC,UAAUA,CAACC,QAAgB,EAA+B;IACvE,IAAIC,QAAQ,GAAGC,oBAAO,CAACC,eAAe,CAACC,wCAA4B,CAAC;IACpE,IAAI,CAACH,QAAQ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;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":[]}
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,EAA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AsB,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 _ = require("..");
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, _.onVoipNotificationReceived)(notification);
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","_","_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,CAAA,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,4BAA0B,EAACD,YAAY,CAAC;EAC1C,CAAC,CAAC;EACF,IAAAE,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":[]}
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":[]}
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = void 0;
7
- const version = exports.version = '1.10.17';
7
+ const version = exports.version = '1.10.19';
8
8
  //# sourceMappingURL=version.js.map
@@ -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, useState, useMemo, useRef } from 'react';
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 { useIsInPiPMode, useAutoEnterPiPEffect } from '../../../hooks';
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 = ({