@stream-io/video-react-native-sdk 1.28.3 → 1.29.0-beta.1

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 (240) hide show
  1. package/android/src/main/AndroidManifest.xml +8 -1
  2. package/android/src/main/AndroidManifestNew.xml +11 -0
  3. package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNativeModule.kt +42 -5
  4. package/android/src/main/java/com/streamvideo/reactnative/audio/utils/WebRtcAudioUtils.kt +70 -6
  5. package/android/src/main/java/com/streamvideo/reactnative/callmanager/StreamInCallManagerModule.kt +6 -4
  6. package/android/src/main/java/com/streamvideo/reactnative/keepalive/KeepAliveNotification.kt +83 -0
  7. package/android/src/main/java/com/streamvideo/reactnative/keepalive/StreamCallKeepAliveHeadlessService.kt +134 -0
  8. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +3 -1
  9. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  10. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +5 -2
  11. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  12. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +6 -3
  13. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  14. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +3 -1
  15. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
  16. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +3 -1
  17. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
  18. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/index.js +3 -2
  19. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/index.js.map +1 -1
  20. package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js +216 -0
  21. package/dist/commonjs/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -0
  22. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +18 -31
  23. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  24. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +64 -97
  25. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  26. package/dist/commonjs/index.js +1 -0
  27. package/dist/commonjs/index.js.map +1 -1
  28. package/dist/commonjs/modules/call-manager/CallManager.js +26 -0
  29. package/dist/commonjs/modules/call-manager/CallManager.js.map +1 -1
  30. package/dist/commonjs/providers/StreamCall/index.js +6 -6
  31. package/dist/commonjs/providers/StreamCall/index.js.map +1 -1
  32. package/dist/commonjs/utils/StreamVideoRN/index.js +33 -21
  33. package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
  34. package/dist/commonjs/utils/internal/audioSessionPromise.js +46 -0
  35. package/dist/commonjs/utils/internal/audioSessionPromise.js.map +1 -0
  36. package/dist/commonjs/utils/internal/callingx.js +84 -0
  37. package/dist/commonjs/utils/internal/callingx.js.map +1 -0
  38. package/dist/commonjs/utils/internal/registerSDKGlobals.js +52 -3
  39. package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
  40. package/dist/commonjs/utils/keepCallAliveHeadlessTask.js +48 -0
  41. package/dist/commonjs/utils/keepCallAliveHeadlessTask.js.map +1 -0
  42. package/dist/commonjs/utils/push/android.js +145 -200
  43. package/dist/commonjs/utils/push/android.js.map +1 -1
  44. package/dist/commonjs/utils/push/internal/ios.js +16 -34
  45. package/dist/commonjs/utils/push/internal/ios.js.map +1 -1
  46. package/dist/commonjs/utils/push/internal/rxSubjects.js +1 -20
  47. package/dist/commonjs/utils/push/internal/rxSubjects.js.map +1 -1
  48. package/dist/commonjs/utils/push/internal/utils.js +17 -1
  49. package/dist/commonjs/utils/push/internal/utils.js.map +1 -1
  50. package/dist/commonjs/utils/push/ios.js.map +1 -1
  51. package/dist/commonjs/utils/push/libs/callingx.js +75 -0
  52. package/dist/commonjs/utils/push/libs/callingx.js.map +1 -0
  53. package/dist/commonjs/utils/push/libs/index.js +8 -19
  54. package/dist/commonjs/utils/push/libs/index.js.map +1 -1
  55. package/dist/commonjs/utils/push/libs/notifee/index.js +0 -19
  56. package/dist/commonjs/utils/push/libs/notifee/index.js.map +1 -1
  57. package/dist/commonjs/utils/push/setupCallingExpEvents.js +97 -0
  58. package/dist/commonjs/utils/push/setupCallingExpEvents.js.map +1 -0
  59. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js +7 -6
  60. package/dist/commonjs/utils/push/setupIosVoipPushEvents.js.map +1 -1
  61. package/dist/commonjs/version.js +1 -1
  62. package/dist/commonjs/version.js.map +1 -1
  63. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +3 -1
  64. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  65. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +5 -2
  66. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  67. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +6 -3
  68. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  69. package/dist/module/components/Participant/FloatingParticipantView/index.js +3 -1
  70. package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
  71. package/dist/module/components/Participant/ParticipantView/ParticipantView.js +3 -1
  72. package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
  73. package/dist/module/components/Participant/ParticipantView/VideoRenderer/index.js +3 -2
  74. package/dist/module/components/Participant/ParticipantView/VideoRenderer/index.js.map +1 -1
  75. package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js +209 -0
  76. package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -0
  77. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +18 -31
  78. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  79. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +66 -99
  80. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  81. package/dist/module/index.js +1 -0
  82. package/dist/module/index.js.map +1 -1
  83. package/dist/module/modules/call-manager/CallManager.js +26 -0
  84. package/dist/module/modules/call-manager/CallManager.js.map +1 -1
  85. package/dist/module/providers/StreamCall/index.js +6 -6
  86. package/dist/module/providers/StreamCall/index.js.map +1 -1
  87. package/dist/module/utils/StreamVideoRN/index.js +33 -21
  88. package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
  89. package/dist/module/utils/internal/audioSessionPromise.js +39 -0
  90. package/dist/module/utils/internal/audioSessionPromise.js.map +1 -0
  91. package/dist/module/utils/internal/callingx.js +75 -0
  92. package/dist/module/utils/internal/callingx.js.map +1 -0
  93. package/dist/module/utils/internal/registerSDKGlobals.js +53 -4
  94. package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
  95. package/dist/module/utils/keepCallAliveHeadlessTask.js +42 -0
  96. package/dist/module/utils/keepCallAliveHeadlessTask.js.map +1 -0
  97. package/dist/module/utils/push/android.js +147 -202
  98. package/dist/module/utils/push/android.js.map +1 -1
  99. package/dist/module/utils/push/internal/ios.js +16 -34
  100. package/dist/module/utils/push/internal/ios.js.map +1 -1
  101. package/dist/module/utils/push/internal/rxSubjects.js +0 -19
  102. package/dist/module/utils/push/internal/rxSubjects.js.map +1 -1
  103. package/dist/module/utils/push/internal/utils.js +14 -0
  104. package/dist/module/utils/push/internal/utils.js.map +1 -1
  105. package/dist/module/utils/push/ios.js.map +1 -1
  106. package/dist/module/utils/push/libs/callingx.js +67 -0
  107. package/dist/module/utils/push/libs/callingx.js.map +1 -0
  108. package/dist/module/utils/push/libs/index.js +1 -2
  109. package/dist/module/utils/push/libs/index.js.map +1 -1
  110. package/dist/module/utils/push/libs/notifee/index.js +0 -18
  111. package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
  112. package/dist/module/utils/push/setupCallingExpEvents.js +91 -0
  113. package/dist/module/utils/push/setupCallingExpEvents.js.map +1 -0
  114. package/dist/module/utils/push/setupIosVoipPushEvents.js +7 -6
  115. package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
  116. package/dist/module/version.js +1 -1
  117. package/dist/module/version.js.map +1 -1
  118. package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts +2 -2
  119. package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
  120. package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +2 -2
  121. package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
  122. package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts +6 -1
  123. package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
  124. package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts +2 -2
  125. package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
  126. package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts +6 -1
  127. package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
  128. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/index.d.ts +2 -2
  129. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/index.d.ts.map +1 -1
  130. package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts +5 -0
  131. package/dist/typescript/hooks/push/useCallingExpWithCallingStateEffect.d.ts.map +1 -0
  132. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
  133. package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -1
  134. package/dist/typescript/index.d.ts +1 -0
  135. package/dist/typescript/index.d.ts.map +1 -1
  136. package/dist/typescript/modules/call-manager/CallManager.d.ts +5 -0
  137. package/dist/typescript/modules/call-manager/CallManager.d.ts.map +1 -1
  138. package/dist/typescript/utils/StreamVideoRN/index.d.ts +20 -2
  139. package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
  140. package/dist/typescript/utils/StreamVideoRN/types.d.ts +54 -29
  141. package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -1
  142. package/dist/typescript/utils/internal/audioSessionPromise.d.ts +16 -0
  143. package/dist/typescript/utils/internal/audioSessionPromise.d.ts.map +1 -0
  144. package/dist/typescript/utils/internal/callingx.d.ts +13 -0
  145. package/dist/typescript/utils/internal/callingx.d.ts.map +1 -0
  146. package/dist/typescript/utils/internal/registerSDKGlobals.d.ts.map +1 -1
  147. package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts +10 -0
  148. package/dist/typescript/utils/keepCallAliveHeadlessTask.d.ts.map +1 -0
  149. package/dist/typescript/utils/push/android.d.ts +1 -2
  150. package/dist/typescript/utils/push/android.d.ts.map +1 -1
  151. package/dist/typescript/utils/push/internal/ios.d.ts.map +1 -1
  152. package/dist/typescript/utils/push/internal/rxSubjects.d.ts +0 -12
  153. package/dist/typescript/utils/push/internal/rxSubjects.d.ts.map +1 -1
  154. package/dist/typescript/utils/push/internal/utils.d.ts +4 -0
  155. package/dist/typescript/utils/push/internal/utils.d.ts.map +1 -1
  156. package/dist/typescript/utils/push/ios.d.ts +1 -2
  157. package/dist/typescript/utils/push/ios.d.ts.map +1 -1
  158. package/dist/typescript/utils/push/libs/callingx.d.ts +9 -0
  159. package/dist/typescript/utils/push/libs/callingx.d.ts.map +1 -0
  160. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts +16 -2
  161. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
  162. package/dist/typescript/utils/push/libs/index.d.ts +1 -2
  163. package/dist/typescript/utils/push/libs/index.d.ts.map +1 -1
  164. package/dist/typescript/utils/push/libs/notifee/index.d.ts +0 -1
  165. package/dist/typescript/utils/push/libs/notifee/index.d.ts.map +1 -1
  166. package/dist/typescript/utils/push/setupCallingExpEvents.d.ts +8 -0
  167. package/dist/typescript/utils/push/setupCallingExpEvents.d.ts.map +1 -0
  168. package/dist/typescript/utils/push/setupIosVoipPushEvents.d.ts.map +1 -1
  169. package/dist/typescript/version.d.ts +1 -1
  170. package/dist/typescript/version.d.ts.map +1 -1
  171. package/expo-config-plugin/dist/withAndroidManifest.js +1 -33
  172. package/expo-config-plugin/dist/withAndroidPermissions.js +2 -7
  173. package/expo-config-plugin/dist/withAppDelegate.js +19 -197
  174. package/expo-config-plugin/dist/withMainActivity.js +1 -1
  175. package/expo-config-plugin/dist/withiOSInfoPlist.js +2 -3
  176. package/ios/StreamInCallManager.m +2 -0
  177. package/ios/StreamInCallManager.swift +20 -5
  178. package/ios/StreamVideoReactNative.h +7 -4
  179. package/ios/StreamVideoReactNative.m +191 -82
  180. package/package.json +10 -15
  181. package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +3 -1
  182. package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +4 -1
  183. package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +8 -0
  184. package/src/components/Participant/FloatingParticipantView/index.tsx +3 -1
  185. package/src/components/Participant/ParticipantView/ParticipantView.tsx +7 -0
  186. package/src/components/Participant/ParticipantView/VideoRenderer/index.tsx +7 -2
  187. package/src/hooks/push/useCallingExpWithCallingStateEffect.ts +307 -0
  188. package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +21 -34
  189. package/src/hooks/useAndroidKeepCallAliveEffect.ts +94 -120
  190. package/src/index.ts +1 -0
  191. package/src/modules/call-manager/CallManager.ts +36 -0
  192. package/src/modules/call-manager/native-module.d.ts +7 -0
  193. package/src/providers/StreamCall/index.tsx +6 -6
  194. package/src/utils/StreamVideoRN/index.ts +40 -30
  195. package/src/utils/StreamVideoRN/types.ts +56 -29
  196. package/src/utils/internal/audioSessionPromise.ts +39 -0
  197. package/src/utils/internal/callingx.ts +108 -0
  198. package/src/utils/internal/registerSDKGlobals.ts +47 -4
  199. package/src/utils/keepCallAliveHeadlessTask.ts +54 -0
  200. package/src/utils/push/android.ts +223 -308
  201. package/src/utils/push/internal/ios.ts +25 -46
  202. package/src/utils/push/internal/rxSubjects.ts +0 -29
  203. package/src/utils/push/internal/utils.ts +25 -0
  204. package/src/utils/push/ios.ts +1 -6
  205. package/src/utils/push/libs/callingx.ts +90 -0
  206. package/src/utils/push/libs/index.ts +1 -2
  207. package/src/utils/push/libs/notifee/index.ts +0 -27
  208. package/src/utils/push/setupCallingExpEvents.ts +117 -0
  209. package/src/utils/push/setupIosVoipPushEvents.ts +11 -7
  210. package/src/version.ts +1 -1
  211. package/CHANGELOG.md +0 -3103
  212. package/android/src/main/java/com/streamvideo/reactnative/util/CallAliveServiceChecker.kt +0 -95
  213. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -160
  214. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
  215. package/dist/commonjs/utils/push/libs/callkeep.js +0 -17
  216. package/dist/commonjs/utils/push/libs/callkeep.js.map +0 -1
  217. package/dist/commonjs/utils/push/libs/voipPushNotification.js +0 -17
  218. package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +0 -1
  219. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js +0 -205
  220. package/dist/commonjs/utils/push/setupIosCallKeepEvents.js.map +0 -1
  221. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -153
  222. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
  223. package/dist/module/utils/push/libs/callkeep.js +0 -11
  224. package/dist/module/utils/push/libs/callkeep.js.map +0 -1
  225. package/dist/module/utils/push/libs/voipPushNotification.js +0 -11
  226. package/dist/module/utils/push/libs/voipPushNotification.js.map +0 -1
  227. package/dist/module/utils/push/setupIosCallKeepEvents.js +0 -199
  228. package/dist/module/utils/push/setupIosCallKeepEvents.js.map +0 -1
  229. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +0 -5
  230. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +0 -1
  231. package/dist/typescript/utils/push/libs/callkeep.d.ts +0 -3
  232. package/dist/typescript/utils/push/libs/callkeep.d.ts.map +0 -1
  233. package/dist/typescript/utils/push/libs/voipPushNotification.d.ts +0 -3
  234. package/dist/typescript/utils/push/libs/voipPushNotification.d.ts.map +0 -1
  235. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts +0 -6
  236. package/dist/typescript/utils/push/setupIosCallKeepEvents.d.ts.map +0 -1
  237. package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +0 -235
  238. package/src/utils/push/libs/callkeep.ts +0 -16
  239. package/src/utils/push/libs/voipPushNotification.ts +0 -17
  240. package/src/utils/push/setupIosCallKeepEvents.ts +0 -252
@@ -5,7 +5,7 @@ import type { ParticipantViewComponentProps } from '../../Participant';
5
5
  /**
6
6
  * Props for the CallParticipantsGrid component.
7
7
  */
8
- export type CallParticipantsGridProps = ParticipantViewComponentProps & Pick<CallContentProps, 'supportedReactions' | 'CallParticipantsList'> & Pick<CallParticipantsListComponentProps, 'ParticipantView'> & {
8
+ export type CallParticipantsGridProps = ParticipantViewComponentProps & Pick<CallContentProps, 'supportedReactions' | 'CallParticipantsList'> & Pick<CallParticipantsListComponentProps, 'ParticipantView' | 'mirror'> & {
9
9
  /**
10
10
  * Boolean to decide if local participant will be visible in the grid when there is 1:1 call.
11
11
  */
@@ -19,5 +19,5 @@ export type CallParticipantsGridProps = ParticipantViewComponentProps & Pick<Cal
19
19
  /**
20
20
  * Component used to display the list of participants in a grid mode.
21
21
  */
22
- export declare const CallParticipantsGrid: ({ CallParticipantsList, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, VideoRenderer, showLocalParticipant, supportedReactions, landscape, }: CallParticipantsGridProps) => React.JSX.Element;
22
+ export declare const CallParticipantsGrid: ({ CallParticipantsList, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, VideoRenderer, mirror, showLocalParticipant, supportedReactions, landscape, }: CallParticipantsGridProps) => React.JSX.Element;
23
23
  //# sourceMappingURL=CallParticipantsGrid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CallParticipantsGrid.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallLayout/CallParticipantsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,8CAA8C,CAAC;AAGtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAIvE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,GACnE,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,GAAG,sBAAsB,CAAC,GACrE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAAG;IAC5D;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,qNAWlC,yBAAyB,sBAiF3B,CAAC"}
1
+ {"version":3,"file":"CallParticipantsGrid.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallLayout/CallParticipantsGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,8CAA8C,CAAC;AAGtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAIvE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,GACnE,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,GAAG,sBAAsB,CAAC,GACrE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,GAAG,QAAQ,CAAC,GAAG;IACvE;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,6NAYlC,yBAAyB,sBAkF3B,CAAC"}
@@ -5,7 +5,7 @@ import { type CallContentProps } from '../CallContent';
5
5
  /**
6
6
  * Props for the CallParticipantsSpotlight component.
7
7
  */
8
- export type CallParticipantsSpotlightProps = ParticipantViewComponentProps & Pick<CallContentProps, 'supportedReactions' | 'CallParticipantsList' | 'ScreenShareOverlay'> & Pick<CallParticipantsListComponentProps, 'ParticipantView'> & {
8
+ export type CallParticipantsSpotlightProps = ParticipantViewComponentProps & Pick<CallContentProps, 'supportedReactions' | 'CallParticipantsList' | 'ScreenShareOverlay'> & Pick<CallParticipantsListComponentProps, 'ParticipantView' | 'mirror'> & {
9
9
  /**
10
10
  * Check if device is in landscape mode.
11
11
  * This will apply the landscape mode styles to the component.
@@ -16,5 +16,5 @@ export type CallParticipantsSpotlightProps = ParticipantViewComponentProps & Pic
16
16
  * Component used to display the list of participants in a spotlight mode.
17
17
  * This can be used when you want to render the screen sharing stream.
18
18
  */
19
- export declare const CallParticipantsSpotlight: ({ CallParticipantsList, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, ScreenShareOverlay, VideoRenderer, supportedReactions, landscape, }: CallParticipantsSpotlightProps) => React.JSX.Element;
19
+ export declare const CallParticipantsSpotlight: ({ CallParticipantsList, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, ScreenShareOverlay, VideoRenderer, supportedReactions, mirror, landscape, }: CallParticipantsSpotlightProps) => React.JSX.Element;
20
20
  //# sourceMappingURL=CallParticipantsSpotlight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CallParticipantsSpotlight.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AASvC,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,GACxE,IAAI,CACF,gBAAgB,EAChB,oBAAoB,GAAG,sBAAsB,GAAG,oBAAoB,CACrE,GACD,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAAG;IAC5D;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,yBAAyB,GAAI,mNAWvC,8BAA8B,sBAsGhC,CAAC"}
1
+ {"version":3,"file":"CallParticipantsSpotlight.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AASvC,OAAO,EAEL,KAAK,kCAAkC,EACxC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,GACxE,IAAI,CACF,gBAAgB,EAChB,oBAAoB,GAAG,sBAAsB,GAAG,oBAAoB,CACrE,GACD,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,GAAG,QAAQ,CAAC,GAAG;IACvE;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,yBAAyB,GAAI,2NAYvC,8BAA8B,sBAwGhC,CAAC"}
@@ -7,6 +7,11 @@ export type CallParticipantsListComponentProps = ParticipantViewComponentProps &
7
7
  * Component to customize the participant view.
8
8
  */
9
9
  ParticipantView?: React.ComponentType<ParticipantViewProps> | null;
10
+ /**
11
+ * Forces a participant's video to be mirrored or unmirrored. By default, the video track
12
+ * from the local participant is mirrored, and all other videos are not mirrored.
13
+ */
14
+ mirror?: boolean;
10
15
  };
11
16
  /**
12
17
  * Props of the CallParticipantsList component
@@ -37,5 +42,5 @@ export type CallParticipantsListProps = CallParticipantsListComponentProps & Pic
37
42
  * NOTE: this component depends on a flex container to calculate the width and height of the participant view,
38
43
  * hence it should be used only in a flex parent container
39
44
  */
40
- export declare const CallParticipantsList: ({ numberOfColumns, horizontal, participants, ParticipantView, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, VideoRenderer, supportedReactions, landscape, }: CallParticipantsListProps) => React.JSX.Element;
45
+ export declare const CallParticipantsList: ({ numberOfColumns, horizontal, participants, ParticipantView, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, VideoRenderer, supportedReactions, landscape, mirror, }: CallParticipantsListProps) => React.JSX.Element;
41
46
  //# sourceMappingURL=CallParticipantsList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CallParticipantsList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallParticipantsList/CallParticipantsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAQf,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAYvD,MAAM,MAAM,kCAAkC,GAC5C,6BAA6B,GAAG;IAC9B;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;CACpE,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,kCAAkC,GACxE,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAAG;IAC7C;;OAEG;IACH,YAAY,EAAE,sBAAsB,EAAE,CAAC;IACvC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,oNAYlC,yBAAyB,sBA6K3B,CAAC"}
1
+ {"version":3,"file":"CallParticipantsList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallParticipantsList/CallParticipantsList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAQf,OAAO,EACL,KAAK,sBAAsB,EAG5B,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAYvD,MAAM,MAAM,kCAAkC,GAC5C,6BAA6B,GAAG;IAC9B;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;IACnE;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,kCAAkC,GACxE,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAAG;IAC7C;;OAEG;IACH,YAAY,EAAE,sBAAsB,EAAE,CAAC;IACvC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,4NAalC,yBAAyB,sBA+K3B,CAAC"}
@@ -7,7 +7,7 @@ export type FloatingParticipantViewAlignment = 'top-left' | 'top-right' | 'botto
7
7
  /**
8
8
  * Props to be passed for the LocalVideoView component.
9
9
  */
10
- export type FloatingParticipantViewProps = ParticipantViewComponentProps & Pick<CallParticipantsListComponentProps, 'ParticipantView'> & Pick<CallContentProps, 'supportedReactions'> & Pick<ParticipantViewProps, 'objectFit' | 'videoZOrder'> & {
10
+ export type FloatingParticipantViewProps = ParticipantViewComponentProps & Pick<CallParticipantsListComponentProps, 'ParticipantView'> & Pick<CallContentProps, 'supportedReactions'> & Pick<ParticipantViewProps, 'objectFit' | 'videoZOrder' | 'mirror'> & {
11
11
  /**
12
12
  * Determines where the floating participant video will be placed.
13
13
  */
@@ -34,5 +34,5 @@ export type FloatingParticipantViewProps = ParticipantViewComponentProps & Pick<
34
34
  /**
35
35
  * A component to render the floating participant's video.
36
36
  */
37
- export declare const FloatingParticipantView: ({ alignment, onPressHandler, participant, participantViewStyle, draggableContainerStyle, ParticipantView, ParticipantNetworkQualityIndicator, ParticipantVideoFallback, ParticipantReaction, VideoRenderer, supportedReactions, videoZOrder, objectFit, }: FloatingParticipantViewProps) => React.JSX.Element | null;
37
+ export declare const FloatingParticipantView: ({ alignment, onPressHandler, participant, participantViewStyle, draggableContainerStyle, ParticipantView, ParticipantNetworkQualityIndicator, ParticipantVideoFallback, ParticipantReaction, VideoRenderer, supportedReactions, videoZOrder, objectFit, mirror, }: FloatingParticipantViewProps) => React.JSX.Element | null;
38
38
  //# sourceMappingURL=index.d.ts.map
@@ -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;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,6BAqG9B,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,GAAG,QAAQ,CAAC,GAAG;IACnE;;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,mQAerC,4BAA4B,6BAsG9B,CAAC"}
@@ -66,11 +66,16 @@ export type ParticipantViewProps = ParticipantViewComponentProps & Pick<CallCont
66
66
  * In the fashion of https://www.w3.org/TR/html5/embedded-content-0.html#dom-video-videowidth and https://www.w3.org/TR/html5/rendering.html#video-object-fit, resembles the CSS style object-fit.
67
67
  */
68
68
  objectFit?: 'contain' | 'cover';
69
+ /**
70
+ * Forces a participant's video to be mirrored or unmirrored. By default, the video track
71
+ * from the local participant is mirrored, and all other videos are not mirrored.
72
+ */
73
+ mirror?: boolean;
69
74
  };
70
75
  /**
71
76
  * A component that renders the participants' video track or screenShare track
72
77
  * and additional info. By an absence of a video track or when isVisible is truthy,
73
78
  * only an avatar and audio track will be rendered.
74
79
  */
75
- export declare const ParticipantView: ({ participant, trackType, isVisible, style, ParticipantLabel, ParticipantReaction, VideoRenderer, ParticipantNetworkQualityIndicator, ParticipantVideoFallback, objectFit, videoZOrder, supportedReactions, }: ParticipantViewProps) => React.JSX.Element;
80
+ export declare const ParticipantView: ({ participant, trackType, isVisible, style, ParticipantLabel, ParticipantReaction, VideoRenderer, ParticipantNetworkQualityIndicator, ParticipantVideoFallback, objectFit, videoZOrder, mirror, supportedReactions, }: ParticipantViewProps) => React.JSX.Element;
76
81
  //# sourceMappingURL=ParticipantView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ParticipantView.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/ParticipantView/ParticipantView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,KAAK,uCAAuC,EAC7C,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,gBAAgB,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAC/D;;OAEG;IACH,mBAAmB,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;IACrE;;OAEG;IACH,wBAAwB,CAAC,EAAE,aAAa,CAAC,6BAA6B,CAAC,GAAG,IAAI,CAAC;IAC/E;;OAEG;IACH,kCAAkC,CAAC,EAAE,aAAa,CAAC,uCAAuC,CAAC,GAAG,IAAI,CAAC;IACnG;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;CAC1D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,6BAA6B,GAC9D,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAAG;IAC7C;;OAEG;IACH,WAAW,EAAE,sBAAsB,CAAC;IACpC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CACjC,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,+MAa7B,oBAAoB,sBAsDtB,CAAC"}
1
+ {"version":3,"file":"ParticipantView.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/ParticipantView/ParticipantView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,aAAa,EAAW,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,EACL,KAAK,sB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AAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,uNAc7B,oBAAoB,sBAuDtB,CAAC"}
@@ -3,11 +3,11 @@ import type { ParticipantViewProps } from '../ParticipantView';
3
3
  /**
4
4
  * Props for the VideoRenderer component.
5
5
  */
6
- export type VideoRendererProps = Pick<ParticipantViewProps, 'ParticipantVideoFallback' | 'trackType' | 'participant' | 'isVisible' | 'objectFit' | 'videoZOrder'>;
6
+ export type VideoRendererProps = Pick<ParticipantViewProps, 'ParticipantVideoFallback' | 'trackType' | 'participant' | 'isVisible' | 'objectFit' | 'videoZOrder' | 'mirror'>;
7
7
  /**
8
8
  * This component is used to display the video of the participant and fallback when the video is muted.
9
9
  *
10
10
  * It internally used `RTCView` to render video stream.
11
11
  */
12
- export declare const VideoRenderer: ({ trackType, participant, isVisible, ParticipantVideoFallback, objectFit, videoZOrder, }: VideoRendererProps) => React.JSX.Element;
12
+ export declare const VideoRenderer: ({ trackType, participant, isVisible, ParticipantVideoFallback, objectFit, videoZOrder, mirror: mirrorOverride, }: VideoRendererProps) => React.JSX.Element;
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Participant/ParticipantView/VideoRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAuB/D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,oBAAoB,EAClB,0BAA0B,GAC1B,WAAW,GACX,aAAa,GACb,WAAW,GACX,WAAW,GACX,aAAa,CAChB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,0FAO3B,kBAAkB,sBA6KpB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Participant/ParticipantView/VideoRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAuB/D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,oBAAoB,EAClB,0BAA0B,GAC1B,WAAW,GACX,aAAa,GACb,WAAW,GACX,WAAW,GACX,aAAa,GACb,QAAQ,CACX,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,kHAQ3B,kBAAkB,sBAgLpB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This hook is used to inform sync call state with CallKit/Telecom (i.e. start call, end call, mute/unmute call).
3
+ */
4
+ export declare const useCallingExpWithCallingStateEffect: () => void;
5
+ //# sourceMappingURL=useCallingExpWithCallingStateEffect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCallingExpWithCallingStateEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useCallingExpWithCallingStateEffect.ts"],"names":[],"mappings":"AAmDA;;GAEG;AACH,eAAO,MAAM,mCAAmC,YA4P/C,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,YA6I3C,CAAC"}
1
+ {"version":3,"file":"useIosVoipPushEventsSetupEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useIosVoipPushEventsSetupEffect.ts"],"names":[],"mappings":"AAoCA;;;GAGG;AACH,eAAO,MAAM,+BAA+B,YAgI3C,CAAC"}
@@ -1 +1 @@
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
+ {"version":3,"file":"useAndroidKeepCallAliveEffect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAndroidKeepCallAliveEffect.ts"],"names":[],"mappings":"AA+EA;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,YA2HzC,CAAC"}
@@ -4,6 +4,7 @@ import 'text-encoding-polyfill';
4
4
  import 'react-native-url-polyfill/auto';
5
5
  /** i18next polyfill to handle intl format for pluralization. For more info see https://www.i18next.com/misc/json-format#i-18-next-json-v4 */
6
6
  import 'intl-pluralrules';
7
+ import './utils/keepCallAliveHeadlessTask';
7
8
  export * from '@stream-io/video-client';
8
9
  export * from '@stream-io/video-react-bindings';
9
10
  export * from './components';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,+CAA+C;AAC/C,OAAO,wBAAwB,CAAC;AAChC,8BAA8B;AAC9B,OAAO,gCAAgC,CAAC;AACxC,6IAA6I;AAC7I,OAAO,kBAAkB,CAAC;AAiB1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AAIvC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,+CAA+C;AAC/C,OAAO,wBAAwB,CAAC;AAChC,8BAA8B;AAC9B,OAAO,gCAAgC,CAAC;AACxC,6IAA6I;AAC7I,OAAO,kBAAkB,CAAC;AAK1B,OAAO,mCAAmC,CAAC;AAa3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AAIvC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,cAAc,+BAA+B,CAAC"}
@@ -64,6 +64,11 @@ export declare class CallManager {
64
64
  * in the native layer.
65
65
  */
66
66
  logAudioState: () => void;
67
+ /**
68
+ * For debugging purposes, returns the current audio state as a string.
69
+ * @returns A string containing the current audio state information.
70
+ */
71
+ getAudioStateLog: () => string;
67
72
  }
68
73
  export {};
69
74
  //# sourceMappingURL=CallManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CallManager.d.ts","sourceRoot":"","sources":["../../../../src/modules/call-manager/CallManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAQvE,cAAM,kBAAkB;IACtB,OAAO,CAAC,YAAY,CAAC,CAAqB;IAE1C;;OAEG;IACH,oBAAoB,QAAa,OAAO,CAAC,iBAAiB,CAAC,CAGzD;IAEF;;;;OAIG;IACH,iBAAiB,GAAI,cAAc,MAAM,KAAG,IAAI,CAG9C;IAEF;;;OAGG;IACH,4BAA4B,GAC1B,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,IAAI,KACvD,CAAC,MAAM,IAAI,CAAC,CAKb;CACH;AAED,cAAM,cAAc;IAClB;;OAEG;IACH,kBAAkB,QAAO,IAAI,CAG3B;CACH;AAED,cAAM,cAAc;IAClB;;OAEG;IACH,OAAO,GAAI,MAAM,OAAO,KAAG,IAAI,CAM7B;IAEF;;OAEG;IACH,sBAAsB,GAAI,OAAO,OAAO,KAAG,IAAI,CAE7C;CACH;AAED,qBAAa,WAAW;IACtB,OAAO,qBAA4B;IACnC,GAAG,iBAAwB;IAC3B,OAAO,iBAAwB;IAE/B;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,GAAI,SAAS,yBAAyB,KAAG,IAAI,CAUhD;IAEF;;OAEG;IACH,IAAI,QAAO,IAAI,CAEb;IAEF;;;OAGG;IACH,aAAa,QAAO,IAAI,CAAkC;CAC3D"}
1
+ {"version":3,"file":"CallManager.d.ts","sourceRoot":"","sources":["../../../../src/modules/call-manager/CallManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAWvE,cAAM,kBAAkB;IACtB,OAAO,CAAC,YAAY,CAAC,CAAqB;IAE1C;;OAEG;IACH,oBAAoB,QAAa,OAAO,CAAC,iBAAiB,CAAC,CAGzD;IAEF;;;;OAIG;IACH,iBAAiB,GAAI,cAAc,MAAM,KAAG,IAAI,CAG9C;IAEF;;;OAGG;IACH,4BAA4B,GAC1B,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,IAAI,KACvD,CAAC,MAAM,IAAI,CAAC,CAKb;CACH;AAED,cAAM,cAAc;IAClB;;OAEG;IACH,kBAAkB,QAAO,IAAI,CAG3B;CACH;AAED,cAAM,cAAc;IAClB;;OAEG;IACH,OAAO,GAAI,MAAM,OAAO,KAAG,IAAI,CAM7B;IAEF;;OAEG;IACH,sBAAsB,GAAI,OAAO,OAAO,KAAG,IAAI,CAE7C;CACH;AAeD,qBAAa,WAAW;IACtB,OAAO,qBAA4B;IACnC,GAAG,iBAAwB;IAC3B,OAAO,iBAAwB;IAE/B;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,GAAI,SAAS,yBAAyB,KAAG,IAAI,CAkBhD;IAEF;;OAEG;IACH,IAAI,QAAO,IAAI,CAQb;IAEF;;;OAGG;IACH,aAAa,QAAO,IAAI,CAAkC;IAE1D;;;OAGG;IACH,gBAAgB,QAAO,MAAM,CAAqC;CACnE"}
@@ -12,7 +12,6 @@ export declare class StreamVideoRN {
12
12
  * This function accepts a partial config object that will be deeply merged with the default config.
13
13
  */
14
14
  static updateConfig(updateConfig: DeepPartial<Omit<StreamVideoConfig, 'push'>>): void;
15
- static updateAndroidIncomingCallChannel(updateChannel: Partial<NonNullable<StreamVideoConfig['push']>['android']['incomingCallChannel']>): void;
16
15
  /**
17
16
  * Set the push config for StreamVideoRN.
18
17
  * This method must be called **outside** of your application lifecycle, e.g. alongside your
@@ -25,7 +24,26 @@ export declare class StreamVideoRN {
25
24
  * import App from './App';
26
25
  * // Set push config
27
26
  * const pushConfig = {}; // construct your config
28
- * StreamVideoRN.setPushConfig(pushConfig);
27
+ * // Set CallKit/Android Telecom API integration options. All params are optional. If not provided, the default values will be used.
28
+ * const callingExpOptions = {
29
+ * ios: {
30
+ * callsHistory: true,
31
+ * displayCallTimeout: 60000,
32
+ * sound: 'ringtone',
33
+ * imageName: 'callkit_icon',
34
+ * },
35
+ * android: {
36
+ * incomingChannel: {
37
+ * id: 'stream_incoming_call_notifications',
38
+ * name: 'Call notifications',
39
+ * vibration: true,
40
+ * sound: 'default',
41
+ * },
42
+ * titleTransformer: (text: string) => text,
43
+ * subtitleTransformer: (text: string) => text,
44
+ * },
45
+ * };
46
+ * StreamVideoRN.setPushConfig(pushConfig, callingExpOptions);
29
47
  * AppRegistry.registerComponent('app', () => App);
30
48
  */
31
49
  static setPushConfig(pushConfig: NonNullable<StreamVideoConfig['push']>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/StreamVideoRN/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE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oRN/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAiC,EAC/B,KAAK,2BAA2B,EACjC,MAAM,sCAAsC,CAAC;AAW9C,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAgDF,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,MAAM,CAA+B;IACpD,OAAO,CAAC,MAAM,CAAC,eAAe,CAA+B;IAE7D;;;;OAIG;IACH,MAAM,CAAC,YAAY,CACjB,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IAK5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CAAC,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAyBvE,MAAM,CAAC,SAAS;IAIhB;;;OAGG;IACH,MAAM,CAAC,YAAY;IASnB,MAAM,CAAC,wBAAwB;IAI/B;;;;OAIG;IACH,MAAM,CAAC,gCAAgC,CACrC,QAAQ,EAAE,2BAA2B;IAavC;;OAEG;WACU,YAAY;IAIzB;;OAEG;WACU,YAAY;IAIzB;;;OAGG;WACU,6BAA6B,IAAI,OAAO,CAAC,OAAO,CAAC;IAQ9D;;;OAGG;WACU,4BAA4B,IAAI,OAAO,CAAC,OAAO,CAAC;IAQ7D;;;OAGG;WACU,wBAAwB,IAAI,OAAO,CAAC,OAAO,CAAC;CAO1D"}
@@ -1,5 +1,15 @@
1
1
  import { type ClientPublishOptions, StreamVideoClient, type Call } from '@stream-io/video-client';
2
2
  import type { AndroidChannel } from '@notifee/react-native';
3
+ export type AndroidChannelConfig = {
4
+ id: string;
5
+ name: string;
6
+ sound?: string;
7
+ vibration?: boolean;
8
+ };
9
+ export type KeepAliveAndroidNotificationTexts = {
10
+ title: string;
11
+ body: string;
12
+ };
3
13
  export type NonRingingPushEvent = 'call.live_started' | 'call.notification' | 'call.missed';
4
14
  export type StreamVideoConfig = {
5
15
  /**
@@ -22,6 +32,27 @@ export type StreamVideoConfig = {
22
32
  * @example "production-apn-video" or "staging-apn-video" based on the environment
23
33
  */
24
34
  pushProviderName?: string;
35
+ supportsVideo?: boolean;
36
+ /**
37
+ * Sound to play when an incoming call is received. Must be a valid sound resource name in the project.
38
+ * @default '' (no sound)
39
+ */
40
+ sound?: string;
41
+ /**
42
+ * Image to display when an incoming call is received. Must be a valid image resource name in the project.
43
+ * @default '' (no image)
44
+ */
45
+ imageName?: string;
46
+ /**
47
+ * Enable calls history. When enabled, the call will be added to the calls history.
48
+ * @default false
49
+ */
50
+ callsHistory?: boolean;
51
+ /**
52
+ * Timeout to display an incoming call. When the call is displayed for more than the timeout, the call will be rejected.
53
+ * @default 60000 (1 minute)
54
+ */
55
+ displayCallTimeout?: number;
25
56
  };
26
57
  android: {
27
58
  /**
@@ -51,28 +82,21 @@ export type StreamVideoConfig = {
51
82
  * The notification channel to be used for incoming calls for Android.
52
83
  * @example
53
84
  * {
54
- * id: 'stream_incoming_call',
55
- * name: 'Incoming call notifications',
56
- * importance: AndroidImportance.HIGH,
85
+ * id: 'incoming_calls_channel',
86
+ * name: 'Incoming calls',
87
+ * sound?: string;
88
+ * vibration?: boolean;
57
89
  * }
58
90
  */
59
- incomingCallChannel?: AndroidChannel;
91
+ incomingChannel?: AndroidChannelConfig;
60
92
  /**
61
- * Functions to create the texts shown in the notification for incoming calls in Android.
62
- * @example
63
- * {
64
- * getTitle: (createdUserName: string) => `Incoming call from ${createdUserName}`,
65
- * getBody: (createdUserName: string) => `Tap to answer the call`
66
- * getAcceptButtonTitle?: () => `Accept`,
67
- * getDeclineButtonTitle?: () => `Decline`,
68
- * }
93
+ * The transformer to be used to transform the call title in the notification for ringing and ongoing calls for Android.
69
94
  */
70
- incomingCallNotificationTextGetters?: {
71
- getTitle: (createdUserName: string) => string;
72
- getBody: (createdUserName: string) => string;
73
- getAcceptButtonTitle?: () => string;
74
- getDeclineButtonTitle?: () => string;
75
- };
95
+ titleTransformer?: (memberName: string, incoming: boolean) => string;
96
+ /**
97
+ * The transformer to be used to transform the call subtitle for ringing and ongoing calls for Android.
98
+ */
99
+ subtitleTransformer?: (call_cid: string, incoming: boolean) => string;
76
100
  /**
77
101
  * Functions to create the texts shown in the notification for non ringing calls in Android.
78
102
  * @example
@@ -98,6 +122,16 @@ export type StreamVideoConfig = {
98
122
  getBody: (type: NonRingingPushEvent, createdUserName: string) => string;
99
123
  };
100
124
  };
125
+ /**
126
+ * Whether to enable ongoing calls.
127
+ * @default false
128
+ */
129
+ enableOngoingCalls?: boolean;
130
+ /**
131
+ * Whether to reject calls when the user is busy.
132
+ * @default false
133
+ */
134
+ shouldRejectCallWhenBusy?: boolean;
101
135
  /**
102
136
  * This function is used to create a custom video client.
103
137
  * This is used create a video client for incoming calls in the background and inform call events to the server.
@@ -117,12 +151,6 @@ export type StreamVideoConfig = {
117
151
  * }
118
152
  */
119
153
  createStreamVideoClient: () => Promise<StreamVideoClient | undefined>;
120
- /** @deprecated This method will be removed in the future. Please watch for incoming and outgoing calls in the root component of your app.
121
- Please see https://getstream.io/video/docs/react-native/advanced/ringing-calls/#watch-for-incoming-and-outgoing-calls for more information */
122
- navigateAcceptCall?: () => void;
123
- /** @deprecated This method will be removed in the future. Please watch for incoming and outgoing calls in the root component of your app.
124
- Please see https://getstream.io/video/docs/react-native/advanced/ringing-calls/#watch-for-incoming-and-outgoing-calls for more information */
125
- navigateToIncomingCall?: () => void;
126
154
  /** Callback that is called when a non ringing push notification was tapped */
127
155
  onTapNonRingingCallNotification?: (call_cid: string, type: NonRingingPushEvent) => void;
128
156
  };
@@ -131,14 +159,11 @@ export type StreamVideoConfig = {
131
159
  /**
132
160
  * The notification channel to keep call alive in the background for Android using a foreground service.
133
161
  */
134
- channel: AndroidChannel;
162
+ channel: Omit<AndroidChannelConfig, 'sound' | 'vibration'>;
135
163
  /**
136
164
  * The texts shown in the notification to keep call alive in the background
137
165
  */
138
- notificationTexts: {
139
- title: string;
140
- body: string;
141
- };
166
+ notificationTexts: KeepAliveAndroidNotificationTexts;
142
167
  /**
143
168
  * The task to run in the foreground service
144
169
  * The task must resolve a promise once complete
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/utils/StreamVideoRN/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,iBAAiB,EACjB,KAAK,IAAI,EACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAC3B,mBAAmB,GACnB,mBAAmB,GACnB,aAAa,CAAC;AAElB,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;OAIG;IACH,IAAI,CAAC,EAAE;QACL,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB;;;;WAIG;QACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;QAEtC,GAAG,EAAE;YACH;;;;eAIG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;SAC3B,CAAC;QACF,OAAO,EAAE;YACP;;;;eAIG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB;;;;eAIG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAC1B;;;;;;;;;eASG;YACH,WAAW,CAAC,EAAE,cAAc,CAAC;YAC7B;;;;;;;;eAQG;YACH,mBAAmB,CAAC,EAAE,cAAc,CAAC;YACrC;;;;;;;;;eASG;YACH,mCAAmC,CAAC,EAAE;gBACpC,QAAQ,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,MAAM,CAAC;gBAC9C,OAAO,EAAE,CAAC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eAEG;YACH,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,MAAM,CAAC;YACtE;;;;;;;;;;;;;;;;;;;eAmBG;YACH,2BAA2B,CAAC,EAAE;gBAC5B,QAAQ,EAAE,CACR,IAAI,EAAE,mBAAmB,EACzB,eAAe,EAAE,MAAM,KACpB,MAAM,CAAC;gBACZ,OAAO,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,KAAK,MAAM,CAAC;aACzE,CAAC;SACH,CAAC;QACF;;;WAGG;QACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B;;;WAGG;QACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;QACnC;;;;;;;;;;;;;;;;;WAiBG;QACH,uBAAuB,EAAE,MAAM,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;QACtE,8EAA8E;QAC9E,+BAA+B,CAAC,EAAE,CAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,mBAAmB,KACtB,IAAI,CAAC;KACX,CAAC;IACF,iBAAiB,EAAE;QACjB,OAAO,EAAE;YACP;;eAEG;YACH,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,OAAO,GAAG,WAAW,CAAC,CAAC;YAC3D;;eAEG;YACH,iBAAiB,EAAE,iCAAiC,CAAC;YACrD;;;eAGG;YACH,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;SAC1C,CAAC;KACH,CAAC;CACH,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Module to manage pending promise for audio session activation.
3
+ * Used to wait for iOS CallKit's didActivateAudioSession event after starting a call.
4
+ */
5
+ /**
6
+ * Creates a promise that resolves when the audio session is activated,
7
+ * or after a timeout to prevent hanging indefinitely.
8
+ * @returns Promise that resolves when audio session is activated or timeout occurs
9
+ */
10
+ export declare function waitForAudioSessionActivation(): Promise<void>;
11
+ /**
12
+ * Resolves the pending audio session activation promise.
13
+ * Called when the didActivateAudioSession event fires or on timeout.
14
+ */
15
+ export declare function resolvePendingAudioSession(): void;
16
+ //# sourceMappingURL=audioSessionPromise.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audioSessionPromise.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/audioSessionPromise.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,OAAO,CAAC,IAAI,CAAC,CAQ7D;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CASjD"}
@@ -0,0 +1,13 @@
1
+ import { Call, MemberResponse, StreamVideoParticipant } from '@stream-io/video-client';
2
+ /**
3
+ * Gets the call display name. To be used for display in native call screen.
4
+ */
5
+ export declare function getCallDisplayName(callMembers: MemberResponse[] | undefined, participants: StreamVideoParticipant[] | undefined, currentUserId: string | undefined): string;
6
+ /**
7
+ * Starts the call in the callingx library.
8
+ * Must be called for all outgoing calls
9
+ * and optionally for non-ringing calls when ongoing calls are enabled.
10
+ */
11
+ export declare function startCallingxCall(call: Call): Promise<void>;
12
+ export declare function endCallingxCall(call: Call): Promise<void>;
13
+ //# sourceMappingURL=callingx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callingx.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/callingx.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,IAAI,EACJ,cAAc,EACd,sBAAsB,EAEvB,MAAM,yBAAyB,CAAC;AAKjC;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,cAAc,EAAE,GAAG,SAAS,EACzC,YAAY,EAAE,sBAAsB,EAAE,GAAG,SAAS,EAClD,aAAa,EAAE,MAAM,GAAG,SAAS,UA+BlC;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,IAAI,iBAiCjD;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,IAAI,iBAY/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"registerSDKGlobals.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/registerSDKGlobals.ts"],"names":[],"mappings":"AAyBA,wBAAgB,kBAAkB,SAIjC"}
1
+ {"version":3,"file":"registerSDKGlobals.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/registerSDKGlobals.ts"],"names":[],"mappings":"AAoEA,wBAAgB,kBAAkB,SAIjC"}
@@ -0,0 +1,10 @@
1
+ import type { Call } from '@stream-io/video-client';
2
+ export declare const KEEP_CALL_ALIVE_HEADLESS_TASK_NAME = "StreamVideoKeepCallAlive";
3
+ /**
4
+ * The keep-alive headless task needs access to the active `Call` instance.
5
+ * The keep-alive hook will set this reference before starting the native service.
6
+ */
7
+ export declare const keepCallAliveCallRef: {
8
+ current: Call | undefined;
9
+ };
10
+ //# sourceMappingURL=keepCallAliveHeadlessTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keepCallAliveHeadlessTask.d.ts","sourceRoot":"","sources":["../../../src/utils/keepCallAliveHeadlessTask.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAIpD,eAAO,MAAM,kCAAkC,6BAA6B,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE;IAAE,OAAO,EAAE,IAAI,GAAG,SAAS,CAAA;CAE7D,CAAC"}
@@ -11,9 +11,8 @@ export declare function initAndroidPushToken(client: StreamVideoClient, pushConf
11
11
  * For Ringing and Non-Ringing calls.
12
12
  */
13
13
  export declare const firebaseDataHandler: (data: FirebaseMessagingTypes.RemoteMessage["data"]) => Promise<void>;
14
- export declare const onAndroidNotifeeEvent: ({ event, isBackground, }: {
14
+ export declare const onAndroidNotifeeEvent: ({ event }: {
15
15
  event: Event;
16
- isBackground: boolean;
17
16
  }) => Promise<void>;
18
17
  export {};
19
18
  //# sourceMappingURL=android.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/android.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,sBAAsB,EAM3B,KAAK,UAAU,EAChB,MAAM,QAAQ,CAAC;AAQhB,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,iBAkE1D;AAED;;;GAGG;AAEH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,sBAAsB,CAAC,aAAa,CAAC,MAAM,CAAC,kBAsSnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,WAAW;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,kBA6BtE,CAAC"}
@@ -1 +1 @@
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
+ {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/ios.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAI9D,eAAO,MAAM,0BAA0B,GACrC,cAAc,GAAG,EACjB,YAAY,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,kBAmGnD,CAAC"}
@@ -29,16 +29,4 @@ export declare const pushAndroidBackgroundDeliveredIncomingCallCId$: BehaviorSub
29
29
  * Note: it should be subscribed only when a user has connected to the websocket of Stream
30
30
  */
31
31
  export declare const pushRejectedIncomingCallCId$: BehaviorSubject<string | undefined>;
32
- /**
33
- * This rxjs subject is used to store the call cid of the incoming call from ios voip pushkit notification
34
- */
35
- export declare const voipPushNotificationCallCId$: BehaviorSubject<string | undefined>;
36
- /** The pair of cid of a call and its corresponding uuid created in the native side */
37
- type CallkeepMap = {
38
- uuid: string;
39
- cid: string;
40
- };
41
- export declare const voipCallkeepCallOnForegroundMap$: BehaviorSubject<CallkeepMap | undefined>;
42
- export declare const voipCallkeepAcceptedCallOnNativeDialerMap$: BehaviorSubject<CallkeepMap | undefined>;
43
- export {};
44
32
  //# sourceMappingURL=rxSubjects.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rxSubjects.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/rxSubjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;SAC3B,MAAM;UAAQ,mBAAmB;cAC9B,CAAC;AAEb;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qCAE7B,CAAC;AAEb;;;GAGG;AACH,eAAO,MAAM,0BAA0B,qCAE3B,CAAC;AAEb;;;;GAIG;AACH,eAAO,MAAM,8CAA8C,qCACP,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qCAE7B,CAAC;AAEb;;GAEG;AACH,eAAO,MAAM,4BAA4B,qCAE7B,CAAC;AAEb,sFAAsF;AACtF,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAOF,eAAO,MAAM,gCAAgC,0CAEjC,CAAC;AAKb,eAAO,MAAM,0CAA0C,0CAE3C,CAAC"}
1
+ {"version":3,"file":"rxSubjects.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/internal/rxSubjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;SAC3B,MAAM;UAAQ,mBAAmB;cAC9B,CAAC;AAEb;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qCAE7B,CAAC;AAEb;;;GAGG;AACH,eAAO,MAAM,0BAA0B,qCAE3B,CAAC;AAEb;;;;GAIG;AACH,eAAO,MAAM,8CAA8C,qCACP,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qCAE7B,CAAC"}
@@ -39,5 +39,9 @@ export declare const clearPushWSEventSubscriptions: (call_cid: string) => void;
39
39
  * It is used to avoid adding the push WS subscriptions when the client is connected to WS in the foreground
40
40
  */
41
41
  export declare const canAddPushWSSubscriptionsRef: CanAddPushWSSubscriptionsRef;
42
+ export declare const canListenToWS: () => boolean;
43
+ export declare const shouldCallBeClosed: (call: Call, pushData: {
44
+ [key: string]: string | object;
45
+ }) => boolean;
42
46
  export {};
43
47
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
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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AC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,iBAAiB,EACzB,UAAU,MAAM,EAChB,QAAQ,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,qBAAqB,EAChE,YAAY,UAAU,kBA8CvB,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;AAEF,eAAO,MAAM,aAAa,eACkD,CAAC;AAE7E,eAAO,MAAM,kBAAkB,GAC7B,MAAM,IAAI,EACV,UAAU;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,YAO7C,CAAC"}
@@ -4,9 +4,8 @@ import { StreamVideoClient } from '@stream-io/video-client';
4
4
  import type { Event } from '@notifee/react-native';
5
5
  type PushConfig = NonNullable<StreamVideoConfig['push']>;
6
6
  export declare const oniOSExpoNotificationEvent: (event: ExpoNotification) => void;
7
- export declare const oniOSNotifeeEvent: ({ event, }: {
7
+ export declare const oniOSNotifeeEvent: ({ event }: {
8
8
  event: Event;
9
- isBackground: boolean;
10
9
  }) => void;
11
10
  export declare function onPushNotificationiOSStreamVideoEvent(notification: PushNotificationiOSType): void;
12
11
  /** Send token to stream */
@@ -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,EAAE,iBAAiB,EAAqB,MAAM,yBAAyB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E,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAiF1D"}
@@ -0,0 +1,9 @@
1
+ import { StreamVideoConfig } from '../../StreamVideoRN/types';
2
+ export type RNCallingxType = import('@stream-io/react-native-callingx').ICallingxModule;
3
+ export type EventData = import('@stream-io/react-native-callingx').EventData;
4
+ export type EventParams = import('@stream-io/react-native-callingx').EventParams;
5
+ export type CallingExpOptions = import('@stream-io/react-native-callingx').CallingExpOptions;
6
+ export declare function getCallingxLib(): import("@stream-io/react-native-callingx").ICallingxModule;
7
+ export declare function getCallingxLibIfAvailable(): import("@stream-io/react-native-callingx").ICallingxModule | undefined;
8
+ export declare function extractCallingExpOptions(config: StreamVideoConfig): CallingExpOptions;
9
+ //# sourceMappingURL=callingx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callingx.d.ts","sourceRoot":"","sources":["../../../../../src/utils/push/libs/callingx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,MAAM,cAAc,GACxB,OAAO,kCAAkC,EAAE,eAAe,CAAC;AAC7D,MAAM,MAAM,SAAS,GAAG,OAAO,kCAAkC,EAAE,SAAS,CAAC;AAC7E,MAAM,MAAM,WAAW,GACrB,OAAO,kCAAkC,EAAE,WAAW,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAC3B,OAAO,kCAAkC,EAAE,iBAAiB,CAAC;AAQ/D,wBAAgB,cAAc,+DAK7B;AAED,wBAAgB,yBAAyB,2EAExC;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,iBAAiB,GACxB,iBAAiB,CA4DnB"}
@@ -1,6 +1,20 @@
1
1
  import { type Type } from './lib';
2
2
  export type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
3
3
  export type FirebaseMessagingType = Type;
4
- export declare function getFirebaseMessagingLib(): import("@react-native-firebase/app").ReactNativeFirebase.FirebaseModuleWithStatics<import("@react-native-firebase/messaging").FirebaseMessagingTypes.Module, import("@react-native-firebase/messaging").FirebaseMessagingTypes.Statics>;
5
- export declare function getFirebaseMessagingLibNoThrow(isExpo: boolean): import("@react-native-firebase/app").ReactNativeFirebase.FirebaseModuleWithStatics<import("@react-native-firebase/messaging").FirebaseMessagingTypes.Module, import("@react-native-firebase/messaging").FirebaseMessagingTypes.Statics> | undefined;
4
+ export declare function getFirebaseMessagingLib(): {
5
+ (app?: import("@react-native-firebase/app").ReactNativeFirebase.FirebaseApp): import("@react-native-firebase/messaging").Messaging;
6
+ readonly SDK_VERSION: string;
7
+ } & import("@react-native-firebase/messaging/dist/typescript/commonjs/lib/types/messaging").Statics & {
8
+ messaging: import("@react-native-firebase/app").ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<import("@react-native-firebase/messaging").Messaging, import("@react-native-firebase/messaging/dist/typescript/commonjs/lib/types/messaging").Statics>;
9
+ firebase: import("@react-native-firebase/app").ReactNativeFirebase.Module;
10
+ app(name?: string): import("@react-native-firebase/app").ReactNativeFirebase.FirebaseApp;
11
+ };
12
+ export declare function getFirebaseMessagingLibNoThrow(isExpo: boolean): ({
13
+ (app?: import("@react-native-firebase/app").ReactNativeFirebase.FirebaseApp): import("@react-native-firebase/messaging").Messaging;
14
+ readonly SDK_VERSION: string;
15
+ } & import("@react-native-firebase/messaging/dist/typescript/commonjs/lib/types/messaging").Statics & {
16
+ messaging: import("@react-native-firebase/app").ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<import("@react-native-firebase/messaging").Messaging, import("@react-native-firebase/messaging/dist/typescript/commonjs/lib/types/messaging").Statics>;
17
+ firebase: import("@react-native-firebase/app").ReactNativeFirebase.Module;
18
+ app(name?: string): import("@react-native-firebase/app").ReactNativeFirebase.FirebaseApp;
19
+ }) | undefined;
6
20
  //# sourceMappingURL=index.d.ts.map