@stream-io/video-react-native-sdk 1.22.3 → 1.24.0

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 (251) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/android/src/main/java/com/streamvideo/reactnative/callmanager/ProximityManager.kt +183 -0
  3. package/android/src/main/java/com/streamvideo/reactnative/callmanager/StreamInCallManagerModule.kt +12 -1
  4. package/dist/commonjs/components/Call/CallContent/CallContent.js +2 -2
  5. package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
  6. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +2 -2
  7. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  8. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +3 -3
  9. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  10. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +3 -3
  11. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  12. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +3 -3
  13. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
  14. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +2 -2
  15. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
  16. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +2 -2
  17. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  18. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +2 -2
  19. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
  20. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +4 -4
  21. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  22. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
  23. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  24. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +4 -4
  25. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  26. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js +2 -2
  27. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
  28. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +2 -2
  29. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  30. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +13 -6
  31. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
  32. package/dist/commonjs/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js +30 -0
  33. package/dist/commonjs/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js.map +1 -0
  34. package/dist/commonjs/constants/index.js +1 -6
  35. package/dist/commonjs/constants/index.js.map +1 -1
  36. package/dist/commonjs/contexts/internal/ScreenshotIosContext.js +3 -3
  37. package/dist/commonjs/contexts/internal/ScreenshotIosContext.js.map +1 -1
  38. package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +1 -1
  39. package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
  40. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +2 -2
  41. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
  42. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +13 -13
  43. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  44. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +2 -2
  45. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -1
  46. package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js +1 -1
  47. package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
  48. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +10 -10
  49. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  50. package/dist/commonjs/hooks/usePermissionRequest.js +2 -2
  51. package/dist/commonjs/hooks/usePermissionRequest.js.map +1 -1
  52. package/dist/commonjs/hooks/useScreenShareButton.js +4 -4
  53. package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -1
  54. package/dist/commonjs/hooks/useScreenshot.js +2 -2
  55. package/dist/commonjs/hooks/useScreenshot.js.map +1 -1
  56. package/dist/commonjs/hooks/useTrackDimensions.js +1 -1
  57. package/dist/commonjs/hooks/useTrackDimensions.js.map +1 -1
  58. package/dist/commonjs/modules/call-manager/PrevLibDetection.js +1 -1
  59. package/dist/commonjs/modules/call-manager/PrevLibDetection.js.map +1 -1
  60. package/dist/commonjs/providers/BusyTonePlayer.js +6 -6
  61. package/dist/commonjs/providers/BusyTonePlayer.js.map +1 -1
  62. package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js +2 -2
  63. package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
  64. package/dist/commonjs/providers/StreamCall/AppStateListener.js +7 -7
  65. package/dist/commonjs/providers/StreamCall/AppStateListener.js.map +1 -1
  66. package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js +3 -3
  67. package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
  68. package/dist/commonjs/utils/push/android.js +30 -30
  69. package/dist/commonjs/utils/push/android.js.map +1 -1
  70. package/dist/commonjs/utils/push/internal/ios.js +9 -9
  71. package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
  72. package/dist/commonjs/utils/push/internal/utils.js +11 -11
  73. package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
  74. package/dist/commonjs/utils/push/ios.js +21 -21
  75. package/dist/commonjs/utils/push/ios.js.map +1 -1
  76. package/dist/commonjs/utils/push/libs/expoNotifications.js +1 -1
  77. package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
  78. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js +3 -3
  79. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  80. package/dist/commonjs/utils/push/libs/notifee/index.js +3 -3
  81. package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
  82. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +7 -7
  83. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +1 -1
  84. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +4 -4
  85. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
  86. package/dist/commonjs/version.js +1 -1
  87. package/dist/module/components/Call/CallContent/CallContent.js +3 -3
  88. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
  89. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +3 -3
  90. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  91. package/dist/module/components/Call/CallContent/RTCViewPipNative.js +3 -3
  92. package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  93. package/dist/module/components/Call/CallControls/AcceptCallButton.js +3 -3
  94. package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  95. package/dist/module/components/Call/CallControls/HangupCallButton.js +3 -4
  96. package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
  97. package/dist/module/components/Call/CallControls/RejectCallButton.js +3 -3
  98. package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
  99. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +3 -3
  100. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  101. package/dist/module/components/Call/Lobby/JoinCallButton.js +3 -3
  102. package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
  103. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +5 -5
  104. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  105. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +3 -3
  106. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  107. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -5
  108. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  109. package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js +3 -4
  110. package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
  111. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +3 -3
  112. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  113. package/dist/module/components/Participant/FloatingParticipantView/index.js +14 -7
  114. package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
  115. package/dist/module/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js +23 -0
  116. package/dist/module/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js.map +1 -0
  117. package/dist/module/constants/index.js +0 -5
  118. package/dist/module/constants/index.js.map +1 -1
  119. package/dist/module/contexts/internal/ScreenshotIosContext.js +4 -4
  120. package/dist/module/contexts/internal/ScreenshotIosContext.js.map +1 -1
  121. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +2 -2
  122. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
  123. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +3 -3
  124. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
  125. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +14 -14
  126. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  127. package/dist/module/hooks/push/useProcessPushCallEffect.js +3 -3
  128. package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
  129. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +2 -2
  130. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
  131. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +11 -11
  132. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  133. package/dist/module/hooks/usePermissionRequest.js +3 -3
  134. package/dist/module/hooks/usePermissionRequest.js.map +1 -1
  135. package/dist/module/hooks/useScreenShareButton.js +5 -5
  136. package/dist/module/hooks/useScreenShareButton.js.map +1 -1
  137. package/dist/module/hooks/useScreenshot.js +3 -3
  138. package/dist/module/hooks/useScreenshot.js.map +1 -1
  139. package/dist/module/hooks/useTrackDimensions.js +1 -1
  140. package/dist/module/hooks/useTrackDimensions.js.map +1 -1
  141. package/dist/module/modules/call-manager/PrevLibDetection.js +2 -2
  142. package/dist/module/modules/call-manager/PrevLibDetection.js.map +1 -1
  143. package/dist/module/providers/BusyTonePlayer.js +7 -7
  144. package/dist/module/providers/BusyTonePlayer.js.map +1 -1
  145. package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js +3 -3
  146. package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
  147. package/dist/module/providers/StreamCall/AppStateListener.js +8 -8
  148. package/dist/module/providers/StreamCall/AppStateListener.js.map +1 -1
  149. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +3 -3
  150. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
  151. package/dist/module/utils/push/android.js +31 -31
  152. package/dist/module/utils/push/android.js.map +1 -1
  153. package/dist/module/utils/push/internal/ios.js +9 -9
  154. package/dist/module/utils/push/internal/ios.js.map +1 -1
  155. package/dist/module/utils/push/internal/utils.js +12 -12
  156. package/dist/module/utils/push/internal/utils.js.map +1 -1
  157. package/dist/module/utils/push/ios.js +22 -22
  158. package/dist/module/utils/push/ios.js.map +1 -1
  159. package/dist/module/utils/push/libs/expoNotifications.js +2 -2
  160. package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
  161. package/dist/module/utils/push/libs/firebaseMessaging/index.js +3 -3
  162. package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  163. package/dist/module/utils/push/libs/notifee/index.js +3 -3
  164. package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
  165. package/dist/module/utils/push/setupIosCallKeepEvents.js +8 -8
  166. package/dist/module/utils/push/setupIosCallKeepEvents.js.map +1 -1
  167. package/dist/module/utils/push/setupIosVoipPushEvents.js +5 -5
  168. package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
  169. package/dist/module/version.js +1 -1
  170. package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
  171. package/dist/typescript/components/Call/CallContent/RTCViewPipIOS.d.ts.map +1 -1
  172. package/dist/typescript/components/Call/CallContent/RTCViewPipNative.d.ts.map +1 -1
  173. package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
  174. package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
  175. package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
  176. package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLobby.d.ts.map +1 -1
  177. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -1
  178. package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
  179. package/dist/typescript/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.d.ts +9 -0
  180. package/dist/typescript/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.d.ts.map +1 -0
  181. package/dist/typescript/constants/index.d.ts +0 -5
  182. package/dist/typescript/constants/index.d.ts.map +1 -1
  183. package/dist/typescript/contexts/internal/ScreenshotIosContext.d.ts.map +1 -1
  184. package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts.map +1 -1
  185. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +1 -1
  186. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
  187. package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +1 -1
  188. package/dist/typescript/hooks/push/useProcessPushNonRingingCallEffect.d.ts.map +1 -1
  189. package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
  190. package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -1
  191. package/dist/typescript/hooks/useScreenshot.d.ts.map +1 -1
  192. package/dist/typescript/hooks/useTrackDimensions.d.ts +1 -1
  193. package/dist/typescript/hooks/useTrackDimensions.d.ts.map +1 -1
  194. package/dist/typescript/modules/call-manager/PrevLibDetection.d.ts.map +1 -1
  195. package/dist/typescript/providers/BusyTonePlayer.d.ts.map +1 -1
  196. package/dist/typescript/providers/NoiseCancellation/NoiseCancellationProvider.d.ts.map +1 -1
  197. package/dist/typescript/providers/StreamCall/AppStateListener.d.ts.map +1 -1
  198. package/dist/typescript/utils/push/android.d.ts.map +1 -1
  199. package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -1
  200. package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
  201. package/dist/typescript/utils/push/ios.d.ts.map +1 -1
  202. package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -1
  203. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
  204. package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
  205. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +1 -1
  206. package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
  207. package/dist/typescript/version.d.ts +1 -1
  208. package/ios/StreamInCallManager.swift +112 -37
  209. package/package.json +3 -3
  210. package/src/components/Call/CallContent/CallContent.tsx +7 -9
  211. package/src/components/Call/CallContent/RTCViewPipIOS.tsx +7 -9
  212. package/src/components/Call/CallContent/RTCViewPipNative.tsx +8 -6
  213. package/src/components/Call/CallControls/AcceptCallButton.tsx +3 -3
  214. package/src/components/Call/CallControls/HangupCallButton.tsx +3 -4
  215. package/src/components/Call/CallControls/RejectCallButton.tsx +4 -4
  216. package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +6 -3
  217. package/src/components/Call/Lobby/JoinCallButton.tsx +3 -3
  218. package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +5 -5
  219. package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +3 -3
  220. package/src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx +5 -5
  221. package/src/components/Livestream/ViewerLivestream/ViewerLobby.tsx +3 -4
  222. package/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx +3 -4
  223. package/src/components/Participant/FloatingParticipantView/index.tsx +20 -6
  224. package/src/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.tsx +36 -0
  225. package/src/constants/index.ts +0 -6
  226. package/src/contexts/internal/ScreenshotIosContext.tsx +12 -14
  227. package/src/hooks/push/useInitAndroidTokenAndRest.ts +4 -6
  228. package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +9 -3
  229. package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +14 -19
  230. package/src/hooks/push/useProcessPushCallEffect.ts +11 -9
  231. package/src/hooks/push/useProcessPushNonRingingCallEffect.ts +6 -5
  232. package/src/hooks/useAndroidKeepCallAliveEffect.ts +17 -14
  233. package/src/hooks/usePermissionRequest.tsx +3 -3
  234. package/src/hooks/useScreenShareButton.ts +5 -7
  235. package/src/hooks/useScreenshot.ts +7 -11
  236. package/src/hooks/useTrackDimensions.ts +2 -2
  237. package/src/modules/call-manager/PrevLibDetection.ts +6 -5
  238. package/src/providers/BusyTonePlayer.tsx +7 -11
  239. package/src/providers/NoiseCancellation/NoiseCancellationProvider.tsx +7 -11
  240. package/src/providers/StreamCall/AppStateListener.tsx +8 -12
  241. package/src/utils/getAndroidDefaultRingtoneUrl.ts +3 -3
  242. package/src/utils/push/android.ts +93 -85
  243. package/src/utils/push/internal/ios.ts +9 -15
  244. package/src/utils/push/internal/utils.ts +28 -25
  245. package/src/utils/push/ios.ts +28 -32
  246. package/src/utils/push/libs/expoNotifications.ts +6 -5
  247. package/src/utils/push/libs/firebaseMessaging/index.ts +5 -4
  248. package/src/utils/push/libs/notifee/index.ts +3 -4
  249. package/src/utils/push/setupIosCallKeepEvents.ts +12 -14
  250. package/src/utils/push/setupIosVoipPushEvents.ts +7 -9
  251. package/src/version.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/FloatingParticipantView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,SAAS,EAGd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,kCAAkC,EACxC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EAC1B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,MAAM,MAAM,gCAAgC,GACxC,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,6BAA6B,GACtE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAC3D,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAC5C,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,aAAa,CAAC,GAAG;IACxD;;OAEG;IACH,SAAS,CAAC,EAAE,gCAAgC,CAAC;IAC7C;;OAEG;IACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC;;OAEG;IACH,oBAAoB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC/C;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AA2BJ;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,2PAcrC,4BAA4B,6BAsF9B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/FloatingParticipantView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,SAAS,EAGd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,kCAAkC,EACxC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EAC1B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,MAAM,MAAM,gCAAgC,GACxC,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,6BAA6B,GACtE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAC3D,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAC5C,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,aAAa,CAAC,GAAG;IACxD;;OAEG;IACH,SAAS,CAAC,EAAE,gCAAgC,CAAC;IAC7C;;OAEG;IACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC;;OAEG;IACH,oBAAoB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC/C;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AA2BJ;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,2PAcrC,4BAA4B,6BAsG9B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { StreamVideoParticipant, VideoTrackType } from '@stream-io/video-client';
2
+ export declare const useFloatingVideoDimensions: (containerDimensions: {
3
+ width: number;
4
+ height: number;
5
+ } | undefined, participant: StreamVideoParticipant | undefined, trackType: VideoTrackType) => {
6
+ width: number;
7
+ height: number;
8
+ } | undefined;
9
+ //# sourceMappingURL=useFloatingVideoDimensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFloatingVideoDimensions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,cAAc,EACf,MAAM,yBAAyB,CAAC;AAGjC,eAAO,MAAM,0BAA0B,GACrC,qBACI;IACE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,GACD,SAAS,EACb,aAAa,sBAAsB,GAAG,SAAS,EAC/C,WAAW,cAAc;;;aAqB1B,CAAC"}
@@ -1,9 +1,4 @@
1
1
  import { type StreamReactionType } from '../components';
2
- export declare const FLOATING_VIDEO_VIEW_STYLE: {
3
- height: number;
4
- width: number;
5
- borderRadius: number;
6
- };
7
2
  export declare const defaultEmojiReactions: StreamReactionType[];
8
3
  export declare const Z_INDEX: {
9
4
  IN_BACK: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,EA2CrD,CAAC;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,EA2CrD,CAAC;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScreenshotIosContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/internal/ScreenshotIosContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,EAGZ,SAAS,EAGV,MAAM,OAAO,CAAC;AAKf,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,CACR,WAAW,EAAE,sBAAsB,EACnC,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,KAChB,IAAI,CAAC;IACV,UAAU,EAAE,CACV,WAAW,EAAE,sBAAsB,EACnC,cAAc,EAAE,cAAc,KAC3B,IAAI,CAAC;IACV,IAAI,EAAE,CACJ,WAAW,EAAE,sBAAsB,EACnC,cAAc,EAAE,cAAc,KAC3B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC7B,CAAC;AASF,eAAO,MAAM,4BAA4B,GAAI,eAE1C,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,sBA6F7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAO,wBAQ1C,CAAC"}
1
+ {"version":3,"file":"ScreenshotIosContext.d.ts","sourceRoot":"","sources":["../../../../src/contexts/internal/ScreenshotIosContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAEtB,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,EAGZ,SAAS,EAGV,MAAM,OAAO,CAAC;AAKf,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,CACR,WAAW,EAAE,sBAAsB,EACnC,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,KAChB,IAAI,CAAC;IACV,UAAU,EAAE,CACV,WAAW,EAAE,sBAAsB,EACnC,cAAc,EAAE,cAAc,KAC3B,IAAI,CAAC;IACV,IAAI,EAAE,CACJ,WAAW,EAAE,sBAAsB,EACnC,cAAc,EAAE,cAAc,KAC3B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC7B,CAAC;AASF,eAAO,MAAM,4BAA4B,GAAI,eAE1C,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,sBA2F7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAO,wBAQ1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useInitAndroidTokenAndRest.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useInitAndroidTokenAndRest.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,0BAA0B,YAuBtC,CAAC"}
1
+ {"version":3,"file":"useInitAndroidTokenAndRest.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useInitAndroidTokenAndRest.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,0BAA0B,YAqBtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useIosCallkeepWithCallingStateEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useIosCallkeepWithCallingStateEffect.ts"],"names":[],"mappings":"AA6CA;;GAEG;AACH,eAAO,MAAM,oCAAoC,YAoLhD,CAAC"}
1
+ {"version":3,"file":"useIosCallkeepWithCallingStateEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useIosCallkeepWithCallingStateEffect.ts"],"names":[],"mappings":"AAmDA;;GAEG;AACH,eAAO,MAAM,oCAAoC,YAoLhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useIosVoipPushEventsSetupEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useIosVoipPushEventsSetupEffect.ts"],"names":[],"mappings":"AAoCA;;;GAGG;AACH,eAAO,MAAM,+BAA+B,YAkJ3C,CAAC"}
1
+ {"version":3,"file":"useIosVoipPushEventsSetupEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useIosVoipPushEventsSetupEffect.ts"],"names":[],"mappings":"AAoCA;;;GAGG;AACH,eAAO,MAAM,+BAA+B,YA6I3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useProcessPushCallEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useProcessPushCallEffect.ts"],"names":[],"mappings":"AAkBA;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,YAqDpC,CAAC"}
1
+ {"version":3,"file":"useProcessPushCallEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useProcessPushCallEffect.ts"],"names":[],"mappings":"AAkBA;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,YAsDpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useProcessPushNonRingingCallEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useProcessPushNonRingingCallEffect.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,YAyB9C,CAAC"}
1
+ {"version":3,"file":"useProcessPushNonRingingCallEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useProcessPushNonRingingCallEffect.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,YA0B9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAndroidKeepCallAliveEffect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAndroidKeepCallAliveEffect.ts"],"names":[],"mappings":"AAkHA;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,YA+GzC,CAAC"}
1
+ {"version":3,"file":"useAndroidKeepCallAliveEffect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAndroidKeepCallAliveEffect.ts"],"names":[],"mappings":"AAqHA;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,YA+GzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useScreenShareButton.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScreenShareButton.ts"],"names":[],"mappings":"AAMA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAWjD,eAAO,MAAM,oBAAoB;AAC/B;;;GAGG;AACH,+BAA+B,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC;AAC1D;;;GAGG;AACH,8BAA8B,MAAM,IAAI;AACxC;;;GAGG;AACH,8BAA8B,MAAM,IAAI;AACxC;;;GAGG;AACH,uCAAuC,MAAM,IAAI;;;;;;CAyFlD,CAAC"}
1
+ {"version":3,"file":"useScreenShareButton.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScreenShareButton.ts"],"names":[],"mappings":"AAMA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAWjD,eAAO,MAAM,oBAAoB;AAC/B;;;GAGG;AACH,+BAA+B,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC;AAC1D;;;GAGG;AACH,8BAA8B,MAAM,IAAI;AACxC;;;GAGG;AACH,8BAA8B,MAAM,IAAI;AACxC;;;GAGG;AACH,uCAAuC,MAAM,IAAI;;;;;;CAuFlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useScreenshot.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScreenshot.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,sBAAsB,EAEtB,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AAIjC;;;;GAIG;AACH,KAAK,mBAAmB,GAAG;IACzB;;;;;;OAMG;IACH,cAAc,EAAE,CACd,WAAW,EAAE,sBAAsB,EACnC,cAAc,EAAE,cAAc,KAC3B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC7B,CAAC;AAEF,wBAAgB,aAAa,IAAI,mBAAmB,CA8CnD"}
1
+ {"version":3,"file":"useScreenshot.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScreenshot.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,sBAAsB,EAEtB,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AAIjC;;;;GAIG;AACH,KAAK,mBAAmB,GAAG;IACzB;;;;;;OAMG;IACH,cAAc,EAAE,CACd,WAAW,EAAE,sBAAsB,EACnC,cAAc,EAAE,cAAc,KAC3B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC7B,CAAC;AAEF,wBAAgB,aAAa,IAAI,mBAAmB,CA0CnD"}
@@ -4,7 +4,7 @@ import { type StreamVideoParticipant, type VideoTrackType } from '@stream-io/vid
4
4
  * Note: the `tracktype` is used only for local participants.
5
5
  * `tracktype` should be 'videoTrack' for video track and 'screenShareTrack' for screen share track.
6
6
  */
7
- export declare function useTrackDimensions(participant: StreamVideoParticipant, trackType: VideoTrackType): {
7
+ export declare function useTrackDimensions(participant: StreamVideoParticipant | undefined, trackType: VideoTrackType): {
8
8
  width: number;
9
9
  height: number;
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useTrackDimensions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTrackDimensions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AAIjC;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,sBAAsB,EACnC,SAAS,EAAE,cAAc;;;EAmE1B"}
1
+ {"version":3,"file":"useTrackDimensions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTrackDimensions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AAIjC;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,sBAAsB,GAAG,SAAS,EAC/C,SAAS,EAAE,cAAc;;;EAmE1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrevLibDetection.d.ts","sourceRoot":"","sources":["../../../../src/modules/call-manager/PrevLibDetection.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,kBAAkB;IAC9B,KAAK,CAAC,KAAK,CAAC,EAAE;QACZ,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;QAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,GAAG,IAAI;IAER,IAAI,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAC1C;AAQD,wBAAgB,4BAA4B,mCAQ3C"}
1
+ {"version":3,"file":"PrevLibDetection.d.ts","sourceRoot":"","sources":["../../../../src/modules/call-manager/PrevLibDetection.ts"],"names":[],"mappings":"AAEA,OAAO,OAAO,kBAAkB;IAC9B,KAAK,CAAC,KAAK,CAAC,EAAE;QACZ,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;QAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,GAAG,IAAI;IAER,IAAI,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAC1C;AAQD,wBAAgB,4BAA4B,mCAS3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"BusyTonePlayer.d.ts","sourceRoot":"","sources":["../../../src/providers/BusyTonePlayer.tsx"],"names":[],"mappings":"AAOA;;GAEG;AACH,QAAA,MAAM,cAAc,YA0DnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"BusyTonePlayer.d.ts","sourceRoot":"","sources":["../../../src/providers/BusyTonePlayer.tsx"],"names":[],"mappings":"AAOA;;GAEG;AACH,QAAA,MAAM,cAAc,YAsDnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NoiseCancellationProvider.d.ts","sourceRoot":"","sources":["../../../../src/providers/NoiseCancellation/NoiseCancellationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,iBAAiB,EAIlB,MAAM,OAAO,CAAC;AAaf;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,qCAAqC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3D;;;OAGG;IACH,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,CAAC;CACxE,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,oBAQvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,OAAO,iBAAiB,CAAC,EAAE,CAAC,sBAkFrE,CAAC"}
1
+ {"version":3,"file":"NoiseCancellationProvider.d.ts","sourceRoot":"","sources":["../../../../src/providers/NoiseCancellation/NoiseCancellationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,iBAAiB,EAIlB,MAAM,OAAO,CAAC;AAaf;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,qCAAqC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3D;;;OAGG;IACH,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,CAAC;CACxE,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,oBAQvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,OAAO,iBAAiB,CAAC,EAAE,CAAC,sBA8ErE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AppStateListener.d.ts","sourceRoot":"","sources":["../../../../src/providers/StreamCall/AppStateListener.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,gBAAgB,YA2H5B,CAAC"}
1
+ {"version":3,"file":"AppStateListener.d.ts","sourceRoot":"","sources":["../../../../src/providers/StreamCall/AppStateListener.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,gBAAgB,YAuH5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/android.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,sBAAsB,EAO3B,KAAK,UAAU,EAChB,MAAM,QAAQ,CAAC;AAsBhB,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzD,KAAK,+BAA+B,GAAG,UAAU,CAC/C,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAC3C,CAAC,CAAC,CAAC,CAAC;AAEL,KAAK,KAAK,GAAG,UAAU,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC;AAI5D,4BAA4B;AAC5B,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAoE1D;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,sBAAsB,CAAC,aAAa,CAAC,MAAM,CAAC,kBA8QnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,0BAGzC;IACD,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;CACvB,kBA2GA,CAAC"}
1
+ {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/android.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,sBAAsB,EAO3B,KAAK,UAAU,EAChB,MAAM,QAAQ,CAAC;AAsBhB,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzD,KAAK,+BAA+B,GAAG,UAAU,CAC/C,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAC3C,CAAC,CAAC,CAAC,CAAC;AAEL,KAAK,KAAK,GAAG,UAAU,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC;AAI5D,4BAA4B;AAC5B,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAmE1D;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,sBAAsB,CAAC,aAAa,CAAC,MAAM,CAAC,kBAuRnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,0BAGzC;IACD,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;CACvB,kBA2GA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/ios.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,eAAO,MAAM,0BAA0B,GACrC,cAAc,GAAG,EACjB,YAAY,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,kBA6HnD,CAAC"}
1
+ {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/ios.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,eAAO,MAAM,0BAA0B,GACrC,cAAc,GAAG,EACjB,YAAY,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,kBAuHnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAGJ,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAInC,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzD,KAAK,4BAA4B,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,cAAc,IAAI,EAClB,eAAe,MAAM,GAAG,SAAS,EACjC,aAAa,MAAM,GAAG,SAAS;;;CAuChC,CAAC;AAMF,eAAO,MAAM,+BAA+B,GAC1C,YAAY,UAAU,EACtB,UAAU,MAAM,EAChB,QAAQ,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,kBAelD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,iBAAiB,EACzB,UAAU,MAAM,EAChB,QAAQ,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,qBAAqB,EAChE,YAAY,UAAU,kBAsCvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,GACzC,QAAQ,iBAAiB,EACzB,UAAU,MAAM,EAChB,4BAA4B,mBAAmB,kBAmBhD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,GAAI,UAAU,MAAM,SAM7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,4BAE1C,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAEJ,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAInC,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzD,KAAK,4BAA4B,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,cAAc,IAAI,EAClB,eAAe,MAAM,GAAG,SAAS,EACjC,aAAa,MAAM,GAAG,SAAS;;;CAwChC,CAAC;AAMF,eAAO,MAAM,+BAA+B,GAC1C,YAAY,UAAU,EACtB,UAAU,MAAM,EAChB,QAAQ,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,kBAiBlD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,iBAAiB,EACzB,UAAU,MAAM,EAChB,QAAQ,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,qBAAqB,EAChE,YAAY,UAAU,kBAoCvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,GACzC,QAAQ,iBAAiB,EACzB,UAAU,MAAM,EAChB,4BAA4B,mBAAmB,kBAqBhD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,GAAI,UAAU,MAAM,SAM7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,4BAE1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/ios.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EACL,KAAK,gBAAgB,EAIrB,KAAK,uBAAuB,EAC7B,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAa,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAqBzD,eAAO,MAAM,0BAA0B,GAAI,OAAO,gBAAgB,SAsBjE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,YAE/B;IACD,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;CACvB,SAmBA,CAAC;AAEF,wBAAgB,qCAAqC,CACnD,YAAY,EAAE,uBAAuB,QAmCtC;AAED,2BAA2B;AAC3B,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAsF1D"}
1
+ {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/ios.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EACL,KAAK,gBAAgB,EAIrB,KAAK,uBAAuB,EAC7B,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,iBAAiB,EAAqB,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAInD,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAuBzD,eAAO,MAAM,0BAA0B,GAAI,OAAO,gBAAgB,SAuBjE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,YAE/B;IACD,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;CACvB,SAkBA,CAAC;AAEF,wBAAgB,qCAAqC,CACnD,YAAY,EAAE,uBAAuB,QAkCtC;AAED,2BAA2B;AAC3B,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAiF1D"}
@@ -1 +1 @@
1
- {"version":3,"file":"expoNotifications.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/expoNotifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG,cAAc,oBAAoB,CAAC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAQ5C,wBAAgB,uBAAuB,wCAOtC;AAED,wBAAgB,8BAA8B,oDAQ7C"}
1
+ {"version":3,"file":"expoNotifications.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/expoNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,MAAM,MAAM,oBAAoB,GAAG,cAAc,oBAAoB,CAAC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAQ5C,wBAAgB,uBAAuB,wCAOtC;AAED,wBAAgB,8BAA8B,oDAS7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/firebaseMessaging/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAEvC,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAKzC,wBAAgB,uBAAuB,4OAQtC;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,OAAO,uPAa7D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/firebaseMessaging/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAGvC,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAKzC,wBAAgB,uBAAuB,4OAQtC;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,OAAO,uPAc7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/notifee/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC;AAE9B,aAAK,4BAA4B;IAC/B,8BAA8B,KAAK;IACnC,wCAAwC,KAAK;IAC7C,iCAAiC,IAAI;IACrC,8BAA8B,MAAM;IACpC,gCAAgC,IAAI;IACpC,sCAAsC,IAAI;IAC1C,wCAAwC,KAAK;IAC7C,wCAAwC,OAAO;IAC/C,kCAAkC,MAAM;IACxC,kCAAkC,IAAI;IACtC,wCAAwC,MAAM;IAC9C,qCAAqC,OAAO;IAC5C,mCAAmC,aAAa;IAChD,uCAAuC,OAAO;IAC9C,gCAAgC,KAAK;CACtC;AAKD,wBAAgB,uCAAuC,2CAQtD;AAED,wBAAgB,oCAAoC,uDASnD;AAED,wBAAsB,sCAAsC,4CA0B3D;AAED,wBAAgB,qCAAqC,mCAKpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/push/libs/notifee/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC;AAE9B,aAAK,4BAA4B;IAC/B,8BAA8B,KAAK;IACnC,wCAAwC,KAAK;IAC7C,iCAAiC,IAAI;IACrC,8BAA8B,MAAM;IACpC,gCAAgC,IAAI;IACpC,sCAAsC,IAAI;IAC1C,wCAAwC,KAAK;IAC7C,wCAAwC,OAAO;IAC/C,kCAAkC,MAAM;IACxC,kCAAkC,IAAI;IACtC,wCAAwC,MAAM;IAC9C,qCAAqC,OAAO;IAC5C,mCAAmC,aAAa;IAChD,uCAAuC,OAAO;IAC9C,gCAAgC,KAAK;CACtC;AAKD,wBAAgB,uCAAuC,2CAQtD;AAED,wBAAgB,oCAAoC,uDAQnD;AAED,wBAAsB,sCAAsC,4CA0B3D;AAED,wBAAgB,qCAAqC,mCAKpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"setupIosCallKeepEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosCallKeepEvents.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAUhE;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QA8HnD"}
1
+ {"version":3,"file":"setupIosCallKeepEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosCallKeepEvents.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAUhE;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QA4HnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"setupIosVoipPushEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosVoipPushEvents.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QA2BnD"}
1
+ {"version":3,"file":"setupIosVoipPushEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/setupIosVoipPushEvents.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,QAyBnD"}
@@ -1,2 +1,2 @@
1
- export declare const version = "1.22.3";
1
+ export declare const version = "1.24.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -18,32 +18,32 @@ enum DefaultAudioDevice {
18
18
 
19
19
  @objc(StreamInCallManager)
20
20
  class StreamInCallManager: RCTEventEmitter {
21
-
21
+
22
22
  private let audioSessionQueue = DispatchQueue(label: "io.getstream.rn.audioSessionQueue")
23
-
23
+
24
24
  private var audioManagerActivated = false
25
25
  private var callAudioRole: CallAudioRole = .communicator
26
26
  private var defaultAudioDevice: DefaultAudioDevice = .speaker
27
27
  private var previousVolume: Float = 0.75
28
-
28
+
29
29
  private struct AudioSessionState {
30
30
  let category: AVAudioSession.Category
31
31
  let mode: AVAudioSession.Mode
32
32
  let options: AVAudioSession.CategoryOptions
33
33
  }
34
-
34
+
35
35
  private var previousAudioSessionState: AudioSessionState?
36
-
36
+ private var hasRegisteredRouteObserver = false
37
+
37
38
  override func invalidate() {
38
39
  stop()
39
40
  super.invalidate()
40
41
  }
41
-
42
+
42
43
  override static func requiresMainQueueSetup() -> Bool {
43
44
  return false
44
45
  }
45
-
46
-
46
+
47
47
  @objc(setAudioRole:)
48
48
  func setAudioRole(audioRole: String) {
49
49
  audioSessionQueue.async { [self] in
@@ -54,7 +54,7 @@ class StreamInCallManager: RCTEventEmitter {
54
54
  self.callAudioRole = audioRole.lowercased() == "listener" ? .listener : .communicator
55
55
  }
56
56
  }
57
-
57
+
58
58
  @objc(setDefaultAudioDeviceEndpointType:)
59
59
  func setDefaultAudioDeviceEndpointType(endpointType: String) {
60
60
  audioSessionQueue.async { [self] in
@@ -65,7 +65,7 @@ class StreamInCallManager: RCTEventEmitter {
65
65
  self.defaultAudioDevice = endpointType.lowercased() == "earpiece" ? .earpiece : .speaker
66
66
  }
67
67
  }
68
-
68
+
69
69
  @objc
70
70
  func start() {
71
71
  audioSessionQueue.async { [self] in
@@ -79,10 +79,17 @@ class StreamInCallManager: RCTEventEmitter {
79
79
  options: session.categoryOptions
80
80
  )
81
81
  configureAudioSession()
82
+ // Enable wake lock to prevent the screen from dimming/locking during a call
83
+ DispatchQueue.main.async {
84
+ UIApplication.shared.isIdleTimerDisabled = true
85
+ self.registerAudioRouteObserver()
86
+ self.updateProximityMonitoring()
87
+ self.log("Wake lock enabled (idle timer disabled)")
88
+ }
82
89
  audioManagerActivated = true
83
90
  }
84
91
  }
85
-
92
+
86
93
  @objc
87
94
  func stop() {
88
95
  audioSessionQueue.async { [self] in
@@ -100,13 +107,20 @@ class StreamInCallManager: RCTEventEmitter {
100
107
  }
101
108
  audioManagerActivated = false
102
109
  }
110
+ // Disable wake lock and proximity when call manager stops so the device can sleep again
111
+ DispatchQueue.main.async {
112
+ self.setProximityMonitoringEnabled(false)
113
+ self.unregisterAudioRouteObserver()
114
+ UIApplication.shared.isIdleTimerDisabled = false
115
+ self.log("Wake lock disabled (idle timer enabled)")
116
+ }
103
117
  }
104
-
118
+
105
119
  private func configureAudioSession() {
106
120
  let intendedCategory: AVAudioSession.Category!
107
121
  let intendedMode: AVAudioSession.Mode!
108
122
  let intendedOptions: AVAudioSession.CategoryOptions!
109
-
123
+
110
124
  if (callAudioRole == .listener) {
111
125
  // enables high quality audio playback but disables microphone
112
126
  intendedCategory = .playback
@@ -116,15 +130,23 @@ class StreamInCallManager: RCTEventEmitter {
116
130
  intendedCategory = .playAndRecord
117
131
  intendedMode = .voiceChat
118
132
 
133
+ // XCode 16 and older don't expose .allowBluetoothHFP
134
+ // https://forums.swift.org/t/xcode-26-avaudiosession-categoryoptions-allowbluetooth-deprecated/80956
135
+ #if compiler(>=6.2) // For Xcode 26.0+
136
+ let bluetoothOption: AVAudioSession.CategoryOptions = .allowBluetoothHFP
137
+ #else
138
+ let bluetoothOption: AVAudioSession.CategoryOptions = .allowBluetooth
139
+ #endif
140
+
119
141
  if (defaultAudioDevice == .speaker) {
120
142
  // defaultToSpeaker will route to speaker if nothing else is connected
121
- intendedOptions = [.allowBluetooth, .defaultToSpeaker]
143
+ intendedOptions = [bluetoothOption, .defaultToSpeaker]
122
144
  } else {
123
145
  // having no defaultToSpeaker makes sure audio goes to earpiece if nothing is connected
124
- intendedOptions = [.allowBluetooth]
146
+ intendedOptions = [bluetoothOption]
125
147
  }
126
148
  }
127
-
149
+
128
150
  // START: set the config that webrtc must use when it takes control
129
151
  let rtcConfig = RTCAudioSessionConfiguration.webRTC()
130
152
  rtcConfig.category = intendedCategory.rawValue
@@ -132,14 +154,14 @@ class StreamInCallManager: RCTEventEmitter {
132
154
  rtcConfig.categoryOptions = intendedOptions
133
155
  RTCAudioSessionConfiguration.setWebRTC(rtcConfig)
134
156
  // END
135
-
157
+
136
158
  // START: compare current audio session with intended, and update if different
137
159
  let session = RTCAudioSession.sharedInstance()
138
160
  let currentCategory = session.category
139
161
  let currentMode = session.mode
140
162
  let currentOptions = session.categoryOptions
141
163
  let currentIsActive = session.isActive
142
-
164
+
143
165
  if currentCategory != intendedCategory.rawValue || currentMode != intendedMode.rawValue || currentOptions != intendedOptions || !currentIsActive {
144
166
  session.lockForConfiguration()
145
167
  do {
@@ -162,7 +184,7 @@ class StreamInCallManager: RCTEventEmitter {
162
184
  }
163
185
  // END
164
186
  }
165
-
187
+
166
188
  @objc(showAudioRoutePicker)
167
189
  public func showAudioRoutePicker() {
168
190
  guard #available(iOS 11.0, tvOS 11.0, macOS 10.15, *) else {
@@ -177,7 +199,7 @@ class StreamInCallManager: RCTEventEmitter {
177
199
  .sendActions(for: .touchUpInside)
178
200
  }
179
201
  }
180
-
202
+
181
203
  @objc(setForceSpeakerphoneOn:)
182
204
  func setForceSpeakerphoneOn(enable: Bool) {
183
205
  let session = AVAudioSession.sharedInstance()
@@ -188,12 +210,12 @@ class StreamInCallManager: RCTEventEmitter {
188
210
  log("Error setting speakerphone: \(error)")
189
211
  }
190
212
  }
191
-
213
+
192
214
  @objc(setMicrophoneMute:)
193
215
  func setMicrophoneMute(enable: Bool) {
194
216
  log("iOS does not support setMicrophoneMute()")
195
217
  }
196
-
218
+
197
219
  @objc
198
220
  func logAudioState() {
199
221
  let session = AVAudioSession.sharedInstance()
@@ -209,17 +231,17 @@ class StreamInCallManager: RCTEventEmitter {
209
231
  """
210
232
  log(logString)
211
233
  }
212
-
234
+
213
235
  @objc(muteAudioOutput)
214
236
  func muteAudioOutput() {
215
237
  DispatchQueue.main.async { [self] in
216
238
  let volumeView = MPVolumeView()
217
-
239
+
218
240
  // Add to a temporary view hierarchy to make it functional
219
241
  if let window = getCurrentWindow() {
220
242
  volumeView.frame = CGRect(x: -1000, y: -1000, width: 1, height: 1)
221
243
  window.addSubview(volumeView)
222
-
244
+
223
245
  // Give it a moment to initialize
224
246
  DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
225
247
  if let slider = volumeView.subviews.first(where: { $0 is UISlider }) as? UISlider {
@@ -230,24 +252,24 @@ class StreamInCallManager: RCTEventEmitter {
230
252
  } else {
231
253
  self.log("Could not find volume slider")
232
254
  }
233
-
255
+
234
256
  // Remove from view hierarchy after use
235
257
  volumeView.removeFromSuperview()
236
258
  }
237
259
  }
238
260
  }
239
261
  }
240
-
262
+
241
263
  @objc(unmuteAudioOutput)
242
264
  func unmuteAudioOutput() {
243
265
  DispatchQueue.main.async { [self] in
244
266
  let volumeView = MPVolumeView()
245
-
267
+
246
268
  // Add to a temporary view hierarchy to make it functional
247
269
  if let window = getCurrentWindow() {
248
270
  volumeView.frame = CGRect(x: -1000, y: -1000, width: 1, height: 1)
249
271
  window.addSubview(volumeView)
250
-
272
+
251
273
  // Give it a moment to initialize
252
274
  DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
253
275
  if let slider = volumeView.subviews.first(where: { $0 is UISlider }) as? UISlider {
@@ -258,31 +280,84 @@ class StreamInCallManager: RCTEventEmitter {
258
280
  } else {
259
281
  self.log("Could not find volume slider")
260
282
  }
261
-
283
+
262
284
  // Remove from view hierarchy after use
263
285
  volumeView.removeFromSuperview()
264
286
  }
265
287
  }
266
288
  }
267
289
  }
268
-
290
+
291
+ // MARK: - Proximity Handling
292
+ private func registerAudioRouteObserver() {
293
+ if hasRegisteredRouteObserver { return }
294
+ NotificationCenter.default.addObserver(
295
+ self,
296
+ selector: #selector(handleAudioRouteChange(_:)),
297
+ name: AVAudioSession.routeChangeNotification,
298
+ object: nil
299
+ )
300
+ hasRegisteredRouteObserver = true
301
+ log("Registered AVAudioSession.routeChangeNotification observer")
302
+ }
303
+
304
+ private func unregisterAudioRouteObserver() {
305
+ if !hasRegisteredRouteObserver { return }
306
+ NotificationCenter.default.removeObserver(self, name: AVAudioSession.routeChangeNotification, object: nil)
307
+ hasRegisteredRouteObserver = false
308
+ log("Unregistered AVAudioSession.routeChangeNotification observer")
309
+ }
310
+
311
+ @objc private func handleAudioRouteChange(_ notification: Notification) {
312
+ // Route changes can arrive on arbitrary queues; ensure UI-safe work on main
313
+ DispatchQueue.main.async { [weak self] in
314
+ self?.updateProximityMonitoring()
315
+ }
316
+ }
317
+
318
+ private func updateProximityMonitoring() {
319
+ // Proximity is only meaningful while a call is active
320
+ guard audioManagerActivated else {
321
+ setProximityMonitoringEnabled(false)
322
+ return
323
+ }
324
+ let session = AVAudioSession.sharedInstance()
325
+ let port = session.currentRoute.outputs.first?.portType
326
+ let isEarpiece = (port == .builtInReceiver)
327
+ setProximityMonitoringEnabled(isEarpiece)
328
+ }
329
+
330
+ private func setProximityMonitoringEnabled(_ enabled: Bool) {
331
+ // Always toggle on the main thread
332
+ if Thread.isMainThread {
333
+ if UIDevice.current.isProximityMonitoringEnabled != enabled {
334
+ UIDevice.current.isProximityMonitoringEnabled = enabled
335
+ log("Proximity monitoring \(enabled ? "ENABLED" : "DISABLED")")
336
+ }
337
+ } else {
338
+ DispatchQueue.main.async { [weak self] in
339
+ self?.setProximityMonitoringEnabled(enabled)
340
+ }
341
+ }
342
+ }
343
+
269
344
  // MARK: - RCTEventEmitter
270
-
345
+
271
346
  override func supportedEvents() -> [String]! {
272
347
  // TODO: list events that can be sent to JS
273
348
  return []
274
349
  }
275
-
350
+
276
351
  @objc
277
352
  override func addListener(_ eventName: String!) {
278
353
  super.addListener(eventName)
279
354
  }
280
-
355
+
281
356
  @objc
282
357
  override func removeListeners(_ count: Double) {
283
358
  super.removeListeners(count)
284
359
  }
285
-
360
+
286
361
  // MARK: - Helper Methods
287
362
  private func getCurrentWindow() -> UIWindow? {
288
363
  if #available(iOS 13.0, *) {
@@ -294,10 +369,10 @@ class StreamInCallManager: RCTEventEmitter {
294
369
  return UIApplication.shared.keyWindow
295
370
  }
296
371
  }
297
-
372
+
298
373
  // MARK: - Logging Helper
299
374
  private func log(_ message: String) {
300
375
  NSLog("InCallManager: %@", message)
301
376
  }
302
-
377
+
303
378
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/video-react-native-sdk",
3
- "version": "1.22.3",
3
+ "version": "1.24.0",
4
4
  "description": "Stream Video SDK for React Native",
5
5
  "author": "https://getstream.io",
6
6
  "homepage": "https://getstream.io/video/docs/react-native/",
@@ -45,8 +45,8 @@
45
45
  "!**/.*"
46
46
  ],
47
47
  "dependencies": {
48
- "@stream-io/video-client": "1.35.0",
49
- "@stream-io/video-react-bindings": "1.10.2",
48
+ "@stream-io/video-client": "1.36.0",
49
+ "@stream-io/video-react-bindings": "1.10.4",
50
50
  "intl-pluralrules": "2.0.1",
51
51
  "lodash.merge": "^4.6.2",
52
52
  "react-native-url-polyfill": "^3.0.0",
@@ -20,8 +20,8 @@ import {
20
20
  import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
21
21
  import {
22
22
  CallingState,
23
- getLogger,
24
23
  type StreamReaction,
24
+ videoLoggerSystem,
25
25
  } from '@stream-io/video-client';
26
26
 
27
27
  import { Z_INDEX } from '../../../constants';
@@ -151,18 +151,16 @@ export const CallContent = ({
151
151
  useEffect(() => {
152
152
  if (isInPiPMode && Platform.OS === 'android') {
153
153
  const unsubFunc = call?.on('call.ended', () => {
154
- getLogger(['CallContent'])(
155
- 'debug',
156
- `exiting PiP mode due to call.ended`,
157
- );
154
+ videoLoggerSystem
155
+ .getLogger('CallContent')
156
+ .debug(`exiting PiP mode due to call.ended`);
158
157
  NativeModules.StreamVideoReactNative.exitPipMode();
159
158
  });
160
159
  const subscription = call?.state.callingState$.subscribe((state) => {
161
160
  if (state === CallingState.LEFT) {
162
- getLogger(['CallContent'])(
163
- 'debug',
164
- `exiting PiP mode due to callingState: LEFT`,
165
- );
161
+ videoLoggerSystem
162
+ .getLogger('CallContent')
163
+ .debug(`exiting PiP mode due to callingState: LEFT`);
166
164
  NativeModules.StreamVideoReactNative.exitPipMode();
167
165
  }
168
166
  });
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CallingState,
3
- getLogger,
4
3
  hasScreenShare,
5
4
  speakerLayoutSortPreset,
6
5
  type StreamVideoParticipant,
6
+ videoLoggerSystem,
7
7
  type VideoTrackType,
8
8
  } from '@stream-io/video-client';
9
9
  import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
@@ -72,18 +72,16 @@ export const RTCViewPipIOS = React.memo((props: Props) => {
72
72
  shouldDisableIOSLocalVideoOnBackgroundRef.current = true;
73
73
  };
74
74
  const unsubFunc = call?.on('call.ended', () => {
75
- getLogger(['RTCViewPipIOS'])(
76
- 'debug',
77
- `onCallClosed due to call.ended event`,
78
- );
75
+ videoLoggerSystem
76
+ .getLogger('RTCViewPipIOS')
77
+ .debug(`onCallClosed due to call.ended event`);
79
78
  onCallClosed();
80
79
  });
81
80
  const subscription = call?.state.callingState$.subscribe((state) => {
82
81
  if (state === CallingState.LEFT) {
83
- getLogger(['RTCViewPipIOS'])(
84
- 'debug',
85
- `onCallClosed due to callingState: ${state}`,
86
- );
82
+ videoLoggerSystem
83
+ .getLogger('RTCViewPipIOS')
84
+ .debug(`onCallClosed due to callingState: ${state}`);
87
85
  onCallClosed();
88
86
  }
89
87
  });