@stream-io/video-react-native-sdk 1.39.0 → 1.40.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 (692) hide show
  1. package/CHANGELOG.md +24 -6
  2. package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNativeModule.kt +81 -0
  3. package/android/src/main/java/com/streamvideo/reactnative/recorder/AudioPipeline.kt +436 -0
  4. package/android/src/main/java/com/streamvideo/reactnative/recorder/EncoderConstants.kt +17 -0
  5. package/android/src/main/java/com/streamvideo/reactnative/recorder/PipelineHost.kt +36 -0
  6. package/android/src/main/java/com/streamvideo/reactnative/recorder/RecorderPlaybackSamplesSink.kt +60 -0
  7. package/android/src/main/java/com/streamvideo/reactnative/recorder/RecorderVideoSink.kt +31 -0
  8. package/android/src/main/java/com/streamvideo/reactnative/recorder/TracksRecorderManager.kt +338 -0
  9. package/android/src/main/java/com/streamvideo/reactnative/recorder/VideoPipeline.kt +472 -0
  10. package/dist/commonjs/components/Call/CallContent/CallContent.js +93 -48
  11. package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
  12. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +22 -20
  13. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  14. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +2 -1
  15. package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  16. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +10 -6
  17. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  18. package/dist/commonjs/components/Call/CallControls/CallControls.js +7 -5
  19. package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
  20. package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +11 -8
  21. package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -1
  22. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +10 -6
  23. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
  24. package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +11 -9
  25. package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -1
  26. package/dist/commonjs/components/Call/CallControls/LobbyControls.js +5 -3
  27. package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -1
  28. package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js +12 -9
  29. package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
  30. package/dist/commonjs/components/Call/CallControls/ReactionsButton.js +22 -15
  31. package/dist/commonjs/components/Call/CallControls/ReactionsButton.js.map +1 -1
  32. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +10 -6
  33. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
  34. package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js +15 -11
  35. package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
  36. package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +13 -9
  37. package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
  38. package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +18 -13
  39. package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
  40. package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +17 -12
  41. package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
  42. package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +13 -9
  43. package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
  44. package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +17 -12
  45. package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
  46. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +39 -34
  47. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  48. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +17 -12
  49. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  50. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +36 -24
  51. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  52. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +30 -28
  53. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  54. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +10 -7
  55. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
  56. package/dist/commonjs/components/Call/Lobby/Lobby.js +45 -35
  57. package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
  58. package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +21 -16
  59. package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
  60. package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js +2 -1
  61. package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
  62. package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js +2 -1
  63. package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
  64. package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +32 -22
  65. package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
  66. package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +37 -27
  67. package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
  68. package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +13 -11
  69. package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
  70. package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js +28 -22
  71. package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
  72. package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +25 -22
  73. package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -1
  74. package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +38 -34
  75. package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
  76. package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +16 -12
  77. package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
  78. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +16 -12
  79. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  80. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +19 -14
  81. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
  82. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js +5 -3
  83. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
  84. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +19 -16
  85. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
  86. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +19 -14
  87. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
  88. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +11 -8
  89. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  90. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +78 -57
  91. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
  92. package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +13 -46
  93. package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
  94. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamEnded.js +48 -22
  95. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamEnded.js.map +1 -1
  96. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +7 -5
  97. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  98. package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +12 -9
  99. package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
  100. package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +11 -7
  101. package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
  102. package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +18 -13
  103. package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
  104. package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +10 -7
  105. package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
  106. package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +18 -13
  107. package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
  108. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +41 -37
  109. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
  110. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js +33 -23
  111. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
  112. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +18 -15
  113. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  114. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +20 -16
  115. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
  116. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +55 -48
  117. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
  118. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +64 -52
  119. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  120. package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +30 -27
  121. package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
  122. package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +11 -7
  123. package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
  124. package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +17 -14
  125. package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
  126. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +27 -24
  127. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
  128. package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js +8 -7
  129. package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
  130. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/index.js +35 -32
  131. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/index.js.map +1 -1
  132. package/dist/commonjs/components/utility/Avatar.js +18 -15
  133. package/dist/commonjs/components/utility/Avatar.js.map +1 -1
  134. package/dist/commonjs/components/utility/ScreenShareOverlay.js +35 -29
  135. package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
  136. package/dist/commonjs/contexts/BackgroundFilters.js +5 -3
  137. package/dist/commonjs/contexts/BackgroundFilters.js.map +1 -1
  138. package/dist/commonjs/contexts/ThemeContext.js +5 -3
  139. package/dist/commonjs/contexts/ThemeContext.js.map +1 -1
  140. package/dist/commonjs/contexts/internal/ScreenshotIosContext.js +5 -3
  141. package/dist/commonjs/contexts/internal/ScreenshotIosContext.js.map +1 -1
  142. package/dist/commonjs/hooks/index.js +11 -0
  143. package/dist/commonjs/hooks/index.js.map +1 -1
  144. package/dist/commonjs/hooks/useAutoEnterPiPEffect.js +5 -10
  145. package/dist/commonjs/hooks/useAutoEnterPiPEffect.js.map +1 -1
  146. package/dist/commonjs/hooks/useLoopbackRecording.js +263 -0
  147. package/dist/commonjs/hooks/useLoopbackRecording.js.map +1 -0
  148. package/dist/commonjs/hooks/useModeration.js +4 -1
  149. package/dist/commonjs/hooks/useModeration.js.map +1 -1
  150. package/dist/commonjs/icons/Back.js +8 -6
  151. package/dist/commonjs/icons/Back.js.map +1 -1
  152. package/dist/commonjs/icons/BadNetwork.js +11 -9
  153. package/dist/commonjs/icons/BadNetwork.js.map +1 -1
  154. package/dist/commonjs/icons/CameraSwitch.js +8 -6
  155. package/dist/commonjs/icons/CameraSwitch.js.map +1 -1
  156. package/dist/commonjs/icons/EndStreamIcon.js +8 -6
  157. package/dist/commonjs/icons/EndStreamIcon.js.map +1 -1
  158. package/dist/commonjs/icons/Eye.js +8 -6
  159. package/dist/commonjs/icons/Eye.js.map +1 -1
  160. package/dist/commonjs/icons/IconWrapper.js +5 -3
  161. package/dist/commonjs/icons/IconWrapper.js.map +1 -1
  162. package/dist/commonjs/icons/LivestreamControls.js +44 -39
  163. package/dist/commonjs/icons/LivestreamControls.js.map +1 -1
  164. package/dist/commonjs/icons/Lock.js +8 -6
  165. package/dist/commonjs/icons/Lock.js.map +1 -1
  166. package/dist/commonjs/icons/Maximize.js +33 -31
  167. package/dist/commonjs/icons/Maximize.js.map +1 -1
  168. package/dist/commonjs/icons/Mic.js +8 -6
  169. package/dist/commonjs/icons/Mic.js.map +1 -1
  170. package/dist/commonjs/icons/MicOff.js +8 -6
  171. package/dist/commonjs/icons/MicOff.js.map +1 -1
  172. package/dist/commonjs/icons/Phone.js +8 -6
  173. package/dist/commonjs/icons/Phone.js.map +1 -1
  174. package/dist/commonjs/icons/PhoneDown.js +8 -6
  175. package/dist/commonjs/icons/PhoneDown.js.map +1 -1
  176. package/dist/commonjs/icons/PinVertical.js +8 -6
  177. package/dist/commonjs/icons/PinVertical.js.map +1 -1
  178. package/dist/commonjs/icons/Reaction.js +8 -6
  179. package/dist/commonjs/icons/Reaction.js.map +1 -1
  180. package/dist/commonjs/icons/ScreenShare.js +8 -6
  181. package/dist/commonjs/icons/ScreenShare.js.map +1 -1
  182. package/dist/commonjs/icons/ScreenShareIndicator.js +21 -18
  183. package/dist/commonjs/icons/ScreenShareIndicator.js.map +1 -1
  184. package/dist/commonjs/icons/StartStreamIcon.js +8 -6
  185. package/dist/commonjs/icons/StartStreamIcon.js.map +1 -1
  186. package/dist/commonjs/icons/StopScreenShare.js +11 -9
  187. package/dist/commonjs/icons/StopScreenShare.js.map +1 -1
  188. package/dist/commonjs/icons/Video.js +8 -6
  189. package/dist/commonjs/icons/Video.js.map +1 -1
  190. package/dist/commonjs/icons/VideoSlash.js +8 -6
  191. package/dist/commonjs/icons/VideoSlash.js.map +1 -1
  192. package/dist/commonjs/icons/index.js +0 -66
  193. package/dist/commonjs/icons/index.js.map +1 -1
  194. package/dist/commonjs/package.json +1 -0
  195. package/dist/commonjs/providers/BusyTonePlayer.js +7 -7
  196. package/dist/commonjs/providers/BusyTonePlayer.js.map +1 -1
  197. package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js +5 -3
  198. package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
  199. package/dist/commonjs/providers/StreamCall/AppStateListener.js +3 -0
  200. package/dist/commonjs/providers/StreamCall/AppStateListener.js.map +1 -1
  201. package/dist/commonjs/providers/StreamCall/DeviceStats.js +1 -1
  202. package/dist/commonjs/providers/StreamCall/DeviceStats.js.map +1 -1
  203. package/dist/commonjs/providers/StreamCall/index.js +5 -3
  204. package/dist/commonjs/providers/StreamCall/index.js.map +1 -1
  205. package/dist/commonjs/providers/StreamVideo.js +10 -5
  206. package/dist/commonjs/providers/StreamVideo.js.map +1 -1
  207. package/dist/commonjs/utils/StreamVideoRN/index.js +0 -1
  208. package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
  209. package/dist/commonjs/utils/internal/callingx/callingx.js +4 -4
  210. package/dist/commonjs/utils/internal/callingx/callingx.js.map +1 -1
  211. package/dist/commonjs/utils/internal/registerSDKGlobals.js +2 -2
  212. package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
  213. package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  214. package/dist/commonjs/version.js +1 -1
  215. package/dist/module/components/Call/CallContent/CallContent.js +95 -48
  216. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
  217. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +24 -20
  218. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  219. package/dist/module/components/Call/CallContent/RTCViewPipNative.js +4 -1
  220. package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
  221. package/dist/module/components/Call/CallContent/index.js +2 -0
  222. package/dist/module/components/Call/CallContent/index.js.map +1 -1
  223. package/dist/module/components/Call/CallControls/AcceptCallButton.js +12 -7
  224. package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  225. package/dist/module/components/Call/CallControls/CallControls.js +9 -6
  226. package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
  227. package/dist/module/components/Call/CallControls/CallControlsButton.js +13 -8
  228. package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -1
  229. package/dist/module/components/Call/CallControls/HangupCallButton.js +12 -7
  230. package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
  231. package/dist/module/components/Call/CallControls/IncomingCallControls.js +13 -10
  232. package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -1
  233. package/dist/module/components/Call/CallControls/LobbyControls.js +7 -3
  234. package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -1
  235. package/dist/module/components/Call/CallControls/OutgoingCallControls.js +14 -10
  236. package/dist/module/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
  237. package/dist/module/components/Call/CallControls/ReactionsButton.js +24 -16
  238. package/dist/module/components/Call/CallControls/ReactionsButton.js.map +1 -1
  239. package/dist/module/components/Call/CallControls/RejectCallButton.js +12 -7
  240. package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
  241. package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js +17 -12
  242. package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
  243. package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +15 -10
  244. package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
  245. package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +20 -14
  246. package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
  247. package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +19 -13
  248. package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
  249. package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +15 -10
  250. package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
  251. package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +19 -13
  252. package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
  253. package/dist/module/components/Call/CallControls/index.js +2 -0
  254. package/dist/module/components/Call/CallControls/index.js.map +1 -1
  255. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +41 -34
  256. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  257. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +19 -13
  258. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  259. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +38 -25
  260. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  261. package/dist/module/components/Call/CallLayout/index.js +2 -0
  262. package/dist/module/components/Call/CallLayout/index.js.map +1 -1
  263. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +32 -28
  264. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  265. package/dist/module/components/Call/CallParticipantsList/index.js +2 -0
  266. package/dist/module/components/Call/CallParticipantsList/index.js.map +1 -1
  267. package/dist/module/components/Call/Lobby/JoinCallButton.js +12 -8
  268. package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
  269. package/dist/module/components/Call/Lobby/Lobby.js +47 -36
  270. package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
  271. package/dist/module/components/Call/Lobby/LobbyFooter.js +23 -17
  272. package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
  273. package/dist/module/components/Call/Lobby/index.js +2 -0
  274. package/dist/module/components/Call/Lobby/index.js.map +1 -1
  275. package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js +4 -1
  276. package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
  277. package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js +4 -1
  278. package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
  279. package/dist/module/components/Call/RingingCallContent/IncomingCall.js +34 -23
  280. package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
  281. package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +39 -28
  282. package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
  283. package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +15 -12
  284. package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
  285. package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js +30 -22
  286. package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
  287. package/dist/module/components/Call/RingingCallContent/UserInfo.js +27 -22
  288. package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -1
  289. package/dist/module/components/Call/RingingCallContent/index.js +2 -0
  290. package/dist/module/components/Call/RingingCallContent/index.js.map +1 -1
  291. package/dist/module/components/Call/index.js +2 -0
  292. package/dist/module/components/Call/index.js.map +1 -1
  293. package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +40 -35
  294. package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
  295. package/dist/module/components/Livestream/HostLivestream/index.js +2 -0
  296. package/dist/module/components/Livestream/HostLivestream/index.js.map +1 -1
  297. package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +18 -13
  298. package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
  299. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +18 -13
  300. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  301. package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +21 -14
  302. package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
  303. package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js +7 -4
  304. package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
  305. package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +21 -16
  306. package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
  307. package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +21 -14
  308. package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
  309. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +13 -9
  310. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  311. package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +80 -58
  312. package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
  313. package/dist/module/components/Livestream/LivestreamControls/index.js +2 -0
  314. package/dist/module/components/Livestream/LivestreamControls/index.js.map +1 -1
  315. package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +14 -46
  316. package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
  317. package/dist/module/components/Livestream/LivestreamLayout/index.js +2 -0
  318. package/dist/module/components/Livestream/LivestreamLayout/index.js.map +1 -1
  319. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamEnded.js +52 -25
  320. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamEnded.js.map +1 -1
  321. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +9 -5
  322. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  323. package/dist/module/components/Livestream/LivestreamPlayer/index.js +2 -0
  324. package/dist/module/components/Livestream/LivestreamPlayer/index.js.map +1 -1
  325. package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +14 -10
  326. package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
  327. package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +13 -8
  328. package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
  329. package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +20 -14
  330. package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
  331. package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +12 -8
  332. package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
  333. package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +20 -14
  334. package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
  335. package/dist/module/components/Livestream/LivestreamTopView/index.js +2 -0
  336. package/dist/module/components/Livestream/LivestreamTopView/index.js.map +1 -1
  337. package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +43 -38
  338. package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
  339. package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js +35 -23
  340. package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
  341. package/dist/module/components/Livestream/ViewerLivestream/index.js +2 -0
  342. package/dist/module/components/Livestream/ViewerLivestream/index.js.map +1 -1
  343. package/dist/module/components/Livestream/index.js +2 -0
  344. package/dist/module/components/Livestream/index.js.map +1 -1
  345. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +20 -15
  346. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  347. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +22 -16
  348. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
  349. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js +2 -0
  350. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -1
  351. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js +2 -0
  352. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -1
  353. package/dist/module/components/Participant/FloatingParticipantView/index.js +56 -49
  354. package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
  355. package/dist/module/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js +2 -0
  356. package/dist/module/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js.map +1 -1
  357. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +66 -53
  358. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  359. package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +32 -28
  360. package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
  361. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +13 -8
  362. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
  363. package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +19 -15
  364. package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
  365. package/dist/module/components/Participant/ParticipantView/ParticipantView.js +29 -24
  366. package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
  367. package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +10 -8
  368. package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
  369. package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +2 -0
  370. package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
  371. package/dist/module/components/Participant/ParticipantView/VideoRenderer/index.js +37 -31
  372. package/dist/module/components/Participant/ParticipantView/VideoRenderer/index.js.map +1 -1
  373. package/dist/module/components/Participant/ParticipantView/index.js +2 -0
  374. package/dist/module/components/Participant/ParticipantView/index.js.map +1 -1
  375. package/dist/module/components/Participant/index.js +2 -0
  376. package/dist/module/components/Participant/index.js.map +1 -1
  377. package/dist/module/components/index.js +2 -0
  378. package/dist/module/components/index.js.map +1 -1
  379. package/dist/module/components/utility/Avatar.js +20 -16
  380. package/dist/module/components/utility/Avatar.js.map +1 -1
  381. package/dist/module/components/utility/ScreenShareOverlay.js +37 -30
  382. package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
  383. package/dist/module/components/utility/index.js +2 -0
  384. package/dist/module/components/utility/index.js.map +1 -1
  385. package/dist/module/constants/TestIds.js +2 -0
  386. package/dist/module/constants/TestIds.js.map +1 -1
  387. package/dist/module/constants/index.js +2 -0
  388. package/dist/module/constants/index.js.map +1 -1
  389. package/dist/module/contexts/BackgroundFilters.js +7 -4
  390. package/dist/module/contexts/BackgroundFilters.js.map +1 -1
  391. package/dist/module/contexts/ThemeContext.js +7 -4
  392. package/dist/module/contexts/ThemeContext.js.map +1 -1
  393. package/dist/module/contexts/index.js +2 -0
  394. package/dist/module/contexts/index.js.map +1 -1
  395. package/dist/module/contexts/internal/BackgroundFiltersContext.js +2 -0
  396. package/dist/module/contexts/internal/BackgroundFiltersContext.js.map +1 -1
  397. package/dist/module/contexts/internal/ScreenshotIosContext.js +7 -3
  398. package/dist/module/contexts/internal/ScreenshotIosContext.js.map +1 -1
  399. package/dist/module/hooks/index.js +3 -0
  400. package/dist/module/hooks/index.js.map +1 -1
  401. package/dist/module/hooks/push/index.js +2 -0
  402. package/dist/module/hooks/push/index.js.map +1 -1
  403. package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js +2 -0
  404. package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -1
  405. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +2 -0
  406. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
  407. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +2 -0
  408. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  409. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +2 -0
  410. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  411. package/dist/module/hooks/useAutoEnterPiPEffect.js +7 -10
  412. package/dist/module/hooks/useAutoEnterPiPEffect.js.map +1 -1
  413. package/dist/module/hooks/useIsInPiPMode.js +2 -0
  414. package/dist/module/hooks/useIsInPiPMode.js.map +1 -1
  415. package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js +2 -0
  416. package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js.map +1 -1
  417. package/dist/module/hooks/useLoopbackRecording.js +260 -0
  418. package/dist/module/hooks/useLoopbackRecording.js.map +1 -0
  419. package/dist/module/hooks/useModeration.js +6 -1
  420. package/dist/module/hooks/useModeration.js.map +1 -1
  421. package/dist/module/hooks/usePaginatedLayoutSortPreset.js +2 -0
  422. package/dist/module/hooks/usePaginatedLayoutSortPreset.js.map +1 -1
  423. package/dist/module/hooks/usePermissionNotification.js +2 -0
  424. package/dist/module/hooks/usePermissionNotification.js.map +1 -1
  425. package/dist/module/hooks/usePermissionRequest.js +2 -0
  426. package/dist/module/hooks/usePermissionRequest.js.map +1 -1
  427. package/dist/module/hooks/useScreenShareAudioMixing.js +2 -0
  428. package/dist/module/hooks/useScreenShareAudioMixing.js.map +1 -1
  429. package/dist/module/hooks/useScreenShareButton.js +2 -0
  430. package/dist/module/hooks/useScreenShareButton.js.map +1 -1
  431. package/dist/module/hooks/useScreenshot.js +2 -0
  432. package/dist/module/hooks/useScreenshot.js.map +1 -1
  433. package/dist/module/hooks/useTrackDimensions.js +2 -0
  434. package/dist/module/hooks/useTrackDimensions.js.map +1 -1
  435. package/dist/module/icons/Back.js +10 -6
  436. package/dist/module/icons/Back.js.map +1 -1
  437. package/dist/module/icons/BadNetwork.js +13 -9
  438. package/dist/module/icons/BadNetwork.js.map +1 -1
  439. package/dist/module/icons/CameraSwitch.js +10 -6
  440. package/dist/module/icons/CameraSwitch.js.map +1 -1
  441. package/dist/module/icons/EndStreamIcon.js +10 -6
  442. package/dist/module/icons/EndStreamIcon.js.map +1 -1
  443. package/dist/module/icons/Eye.js +10 -6
  444. package/dist/module/icons/Eye.js.map +1 -1
  445. package/dist/module/icons/IconWrapper.js +7 -3
  446. package/dist/module/icons/IconWrapper.js.map +1 -1
  447. package/dist/module/icons/LivestreamControls.js +46 -39
  448. package/dist/module/icons/LivestreamControls.js.map +1 -1
  449. package/dist/module/icons/Lock.js +10 -6
  450. package/dist/module/icons/Lock.js.map +1 -1
  451. package/dist/module/icons/Maximize.js +35 -31
  452. package/dist/module/icons/Maximize.js.map +1 -1
  453. package/dist/module/icons/Mic.js +10 -6
  454. package/dist/module/icons/Mic.js.map +1 -1
  455. package/dist/module/icons/MicOff.js +10 -6
  456. package/dist/module/icons/MicOff.js.map +1 -1
  457. package/dist/module/icons/Phone.js +10 -6
  458. package/dist/module/icons/Phone.js.map +1 -1
  459. package/dist/module/icons/PhoneDown.js +10 -6
  460. package/dist/module/icons/PhoneDown.js.map +1 -1
  461. package/dist/module/icons/PinVertical.js +10 -6
  462. package/dist/module/icons/PinVertical.js.map +1 -1
  463. package/dist/module/icons/Reaction.js +10 -6
  464. package/dist/module/icons/Reaction.js.map +1 -1
  465. package/dist/module/icons/ScreenShare.js +10 -6
  466. package/dist/module/icons/ScreenShare.js.map +1 -1
  467. package/dist/module/icons/ScreenShareIndicator.js +23 -18
  468. package/dist/module/icons/ScreenShareIndicator.js.map +1 -1
  469. package/dist/module/icons/StartStreamIcon.js +10 -6
  470. package/dist/module/icons/StartStreamIcon.js.map +1 -1
  471. package/dist/module/icons/StopScreenShare.js +13 -9
  472. package/dist/module/icons/StopScreenShare.js.map +1 -1
  473. package/dist/module/icons/Video.js +10 -6
  474. package/dist/module/icons/Video.js.map +1 -1
  475. package/dist/module/icons/VideoSlash.js +10 -6
  476. package/dist/module/icons/VideoSlash.js.map +1 -1
  477. package/dist/module/icons/index.js +2 -6
  478. package/dist/module/icons/index.js.map +1 -1
  479. package/dist/module/index.js +2 -0
  480. package/dist/module/index.js.map +1 -1
  481. package/dist/module/modules/ScreenShareAudioManager.js +2 -0
  482. package/dist/module/modules/ScreenShareAudioManager.js.map +1 -1
  483. package/dist/module/modules/call-manager/CallManager.js +2 -0
  484. package/dist/module/modules/call-manager/CallManager.js.map +1 -1
  485. package/dist/module/modules/call-manager/PrevLibDetection.js +2 -0
  486. package/dist/module/modules/call-manager/PrevLibDetection.js.map +1 -1
  487. package/dist/module/modules/call-manager/index.js +2 -0
  488. package/dist/module/modules/call-manager/index.js.map +1 -1
  489. package/dist/module/modules/call-manager/native-module.d.js +2 -0
  490. package/dist/module/modules/call-manager/native-module.d.js.map +1 -1
  491. package/dist/module/modules/call-manager/types.js +1 -1
  492. package/dist/module/providers/BusyTonePlayer.js +9 -7
  493. package/dist/module/providers/BusyTonePlayer.js.map +1 -1
  494. package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js +7 -4
  495. package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
  496. package/dist/module/providers/NoiseCancellation/index.js +2 -0
  497. package/dist/module/providers/NoiseCancellation/index.js.map +1 -1
  498. package/dist/module/providers/NoiseCancellation/lib.js +2 -0
  499. package/dist/module/providers/NoiseCancellation/lib.js.map +1 -1
  500. package/dist/module/providers/StreamCall/AppStateListener.js +5 -0
  501. package/dist/module/providers/StreamCall/AppStateListener.js.map +1 -1
  502. package/dist/module/providers/StreamCall/AudioInterruptionTracer.js +2 -0
  503. package/dist/module/providers/StreamCall/AudioInterruptionTracer.js.map +1 -1
  504. package/dist/module/providers/StreamCall/DeviceStats.js +3 -1
  505. package/dist/module/providers/StreamCall/DeviceStats.js.map +1 -1
  506. package/dist/module/providers/StreamCall/index.js +7 -4
  507. package/dist/module/providers/StreamCall/index.js.map +1 -1
  508. package/dist/module/providers/StreamVideo.js +12 -5
  509. package/dist/module/providers/StreamVideo.js.map +1 -1
  510. package/dist/module/theme/colors.js +2 -0
  511. package/dist/module/theme/colors.js.map +1 -1
  512. package/dist/module/theme/constants.js +2 -0
  513. package/dist/module/theme/constants.js.map +1 -1
  514. package/dist/module/theme/index.js +2 -0
  515. package/dist/module/theme/index.js.map +1 -1
  516. package/dist/module/theme/theme.js +2 -0
  517. package/dist/module/theme/theme.js.map +1 -1
  518. package/dist/module/theme/types.js +2 -0
  519. package/dist/module/translations/index.js +2 -0
  520. package/dist/module/translations/index.js.map +1 -1
  521. package/dist/module/utils/StreamVideoRN/index.js +2 -1
  522. package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
  523. package/dist/module/utils/StreamVideoRN/types.js +2 -0
  524. package/dist/module/utils/enterPiPAndroid.js +2 -0
  525. package/dist/module/utils/enterPiPAndroid.js.map +1 -1
  526. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +2 -0
  527. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
  528. package/dist/module/utils/hooks/index.js +2 -0
  529. package/dist/module/utils/hooks/index.js.map +1 -1
  530. package/dist/module/utils/hooks/usePrevious.js +2 -0
  531. package/dist/module/utils/hooks/usePrevious.js.map +1 -1
  532. package/dist/module/utils/index.js +2 -0
  533. package/dist/module/utils/index.js.map +1 -1
  534. package/dist/module/utils/internal/callingx/audioSessionPromise.js +2 -0
  535. package/dist/module/utils/internal/callingx/audioSessionPromise.js.map +1 -1
  536. package/dist/module/utils/internal/callingx/callingx.js +6 -4
  537. package/dist/module/utils/internal/callingx/callingx.js.map +1 -1
  538. package/dist/module/utils/internal/optionallibs/gestureHandler.js +2 -0
  539. package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -1
  540. package/dist/module/utils/internal/optionallibs/index.js +2 -0
  541. package/dist/module/utils/internal/optionallibs/index.js.map +1 -1
  542. package/dist/module/utils/internal/optionallibs/reanimated.js +2 -0
  543. package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -1
  544. package/dist/module/utils/internal/pushLogoutCallback.js +2 -0
  545. package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
  546. package/dist/module/utils/internal/registerSDKGlobals.js +4 -2
  547. package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
  548. package/dist/module/utils/internal/rxSubjects.js +2 -0
  549. package/dist/module/utils/internal/rxSubjects.js.map +1 -1
  550. package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js +2 -0
  551. package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js.map +1 -1
  552. package/dist/module/utils/keepCallAliveHeadlessTask.js +2 -0
  553. package/dist/module/utils/keepCallAliveHeadlessTask.js.map +1 -1
  554. package/dist/module/utils/push/android.js +2 -0
  555. package/dist/module/utils/push/android.js.map +1 -1
  556. package/dist/module/utils/push/index.js +2 -0
  557. package/dist/module/utils/push/index.js.map +1 -1
  558. package/dist/module/utils/push/internal/constants.js +2 -0
  559. package/dist/module/utils/push/internal/constants.js.map +1 -1
  560. package/dist/module/utils/push/internal/ios.js +2 -0
  561. package/dist/module/utils/push/internal/ios.js.map +1 -1
  562. package/dist/module/utils/push/internal/utils.js +2 -0
  563. package/dist/module/utils/push/internal/utils.js.map +1 -1
  564. package/dist/module/utils/push/libs/callingx.js +2 -0
  565. package/dist/module/utils/push/libs/callingx.js.map +1 -1
  566. package/dist/module/utils/push/libs/firebaseMessaging/index.js +2 -0
  567. package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  568. package/dist/module/utils/push/libs/firebaseMessaging/lib.js +2 -0
  569. package/dist/module/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
  570. package/dist/module/utils/push/libs/index.js +2 -0
  571. package/dist/module/utils/push/libs/index.js.map +1 -1
  572. package/dist/module/utils/push/setupCallingExpEvents.js +2 -0
  573. package/dist/module/utils/push/setupCallingExpEvents.js.map +1 -1
  574. package/dist/module/utils/push/setupIosVoipPushEvents.js +2 -0
  575. package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
  576. package/dist/module/utils/push/utils.js +2 -0
  577. package/dist/module/utils/push/utils.js.map +1 -1
  578. package/dist/module/utils/setClientDetails.js +2 -0
  579. package/dist/module/utils/setClientDetails.js.map +1 -1
  580. package/dist/module/version.js +3 -1
  581. package/dist/module/version.js.map +1 -1
  582. package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
  583. package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
  584. package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
  585. package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
  586. package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
  587. package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
  588. package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts.map +1 -1
  589. package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamEnded.d.ts.map +1 -1
  590. package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
  591. package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
  592. package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts +1 -1
  593. package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
  594. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/index.d.ts +1 -1
  595. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/index.d.ts.map +1 -1
  596. package/dist/typescript/contexts/BackgroundFilters.d.ts +1 -1
  597. package/dist/typescript/contexts/BackgroundFilters.d.ts.map +1 -1
  598. package/dist/typescript/hooks/index.d.ts +1 -0
  599. package/dist/typescript/hooks/index.d.ts.map +1 -1
  600. package/dist/typescript/hooks/useAutoEnterPiPEffect.d.ts.map +1 -1
  601. package/dist/typescript/hooks/useLoopbackRecording.d.ts +85 -0
  602. package/dist/typescript/hooks/useLoopbackRecording.d.ts.map +1 -0
  603. package/dist/typescript/hooks/useModeration.d.ts.map +1 -1
  604. package/dist/typescript/icons/index.d.ts +0 -6
  605. package/dist/typescript/icons/index.d.ts.map +1 -1
  606. package/dist/typescript/providers/StreamCall/AppStateListener.d.ts.map +1 -1
  607. package/dist/typescript/providers/StreamCall/DeviceStats.d.ts.map +1 -1
  608. package/dist/typescript/utils/StreamVideoRN/index.d.ts +0 -1
  609. package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
  610. package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +1 -1
  611. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts +2 -16
  612. package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
  613. package/dist/typescript/version.d.ts +1 -1
  614. package/ios/StreamVideoReactNative-Bridging-Header.h +2 -0
  615. package/ios/StreamVideoReactNative.m +81 -0
  616. package/ios/TracksRecorder/AudioPipeline.swift +270 -0
  617. package/ios/TracksRecorder/PipelineHost.swift +56 -0
  618. package/ios/TracksRecorder/RecorderAudioRenderTap.swift +144 -0
  619. package/ios/TracksRecorder/RecorderVideoSink.swift +137 -0
  620. package/ios/TracksRecorder/TracksRecorderManager.swift +333 -0
  621. package/ios/TracksRecorder/VideoPipeline.swift +297 -0
  622. package/package.json +10 -8
  623. package/src/components/Call/CallContent/CallContent.tsx +69 -39
  624. package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +4 -6
  625. package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +30 -21
  626. package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +23 -9
  627. package/src/components/Call/Lobby/Lobby.tsx +9 -5
  628. package/src/components/Livestream/HostLivestream/HostLivestream.tsx +5 -6
  629. package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +1 -1
  630. package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +4 -64
  631. package/src/components/Livestream/LivestreamPlayer/LivestreamEnded.tsx +54 -18
  632. package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +2 -2
  633. package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +10 -12
  634. package/src/components/Participant/FloatingParticipantView/index.tsx +26 -18
  635. package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +1 -1
  636. package/src/components/Participant/ParticipantView/ParticipantView.tsx +68 -64
  637. package/src/components/Participant/ParticipantView/VideoRenderer/index.tsx +192 -179
  638. package/src/hooks/index.ts +1 -0
  639. package/src/hooks/useAutoEnterPiPEffect.tsx +5 -11
  640. package/src/hooks/useLoopbackRecording.ts +448 -0
  641. package/src/hooks/useModeration.ts +4 -1
  642. package/src/icons/index.tsx +0 -6
  643. package/src/providers/BusyTonePlayer.tsx +11 -11
  644. package/src/providers/StreamCall/AppStateListener.tsx +3 -0
  645. package/src/providers/StreamCall/DeviceStats.tsx +2 -1
  646. package/src/utils/StreamVideoRN/index.ts +0 -1
  647. package/src/utils/internal/callingx/callingx.ts +20 -10
  648. package/src/utils/internal/registerSDKGlobals.ts +2 -2
  649. package/src/utils/push/libs/firebaseMessaging/index.ts +4 -2
  650. package/src/version.ts +1 -1
  651. package/dist/commonjs/icons/LeaveStreamIcon.js +0 -20
  652. package/dist/commonjs/icons/LeaveStreamIcon.js.map +0 -1
  653. package/dist/commonjs/icons/Settings.js +0 -22
  654. package/dist/commonjs/icons/Settings.js.map +0 -1
  655. package/dist/commonjs/icons/ShieldBadge.js +0 -20
  656. package/dist/commonjs/icons/ShieldBadge.js.map +0 -1
  657. package/dist/commonjs/icons/Spotlight.js +0 -21
  658. package/dist/commonjs/icons/Spotlight.js.map +0 -1
  659. package/dist/commonjs/icons/ThreeDots.js +0 -31
  660. package/dist/commonjs/icons/ThreeDots.js.map +0 -1
  661. package/dist/commonjs/icons/TopViewBackground.js +0 -35
  662. package/dist/commonjs/icons/TopViewBackground.js.map +0 -1
  663. package/dist/module/icons/LeaveStreamIcon.js +0 -12
  664. package/dist/module/icons/LeaveStreamIcon.js.map +0 -1
  665. package/dist/module/icons/Settings.js +0 -13
  666. package/dist/module/icons/Settings.js.map +0 -1
  667. package/dist/module/icons/ShieldBadge.js +0 -12
  668. package/dist/module/icons/ShieldBadge.js.map +0 -1
  669. package/dist/module/icons/Spotlight.js +0 -13
  670. package/dist/module/icons/Spotlight.js.map +0 -1
  671. package/dist/module/icons/ThreeDots.js +0 -23
  672. package/dist/module/icons/ThreeDots.js.map +0 -1
  673. package/dist/module/icons/TopViewBackground.js +0 -27
  674. package/dist/module/icons/TopViewBackground.js.map +0 -1
  675. package/dist/typescript/icons/LeaveStreamIcon.d.ts +0 -3
  676. package/dist/typescript/icons/LeaveStreamIcon.d.ts.map +0 -1
  677. package/dist/typescript/icons/Settings.d.ts +0 -7
  678. package/dist/typescript/icons/Settings.d.ts.map +0 -1
  679. package/dist/typescript/icons/ShieldBadge.d.ts +0 -3
  680. package/dist/typescript/icons/ShieldBadge.d.ts.map +0 -1
  681. package/dist/typescript/icons/Spotlight.d.ts +0 -8
  682. package/dist/typescript/icons/Spotlight.d.ts.map +0 -1
  683. package/dist/typescript/icons/ThreeDots.d.ts +0 -7
  684. package/dist/typescript/icons/ThreeDots.d.ts.map +0 -1
  685. package/dist/typescript/icons/TopViewBackground.d.ts +0 -15
  686. package/dist/typescript/icons/TopViewBackground.d.ts.map +0 -1
  687. package/src/icons/LeaveStreamIcon.tsx +0 -13
  688. package/src/icons/Settings.tsx +0 -14
  689. package/src/icons/ShieldBadge.tsx +0 -13
  690. package/src/icons/Spotlight.tsx +0 -18
  691. package/src/icons/ThreeDots.tsx +0 -14
  692. package/src/icons/TopViewBackground.tsx +0 -43
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import React, { useEffect, useMemo, useRef } from 'react';
2
4
  import { Animated, Easing, Pressable, StyleSheet } from 'react-native';
3
5
  import { useCall } from '@stream-io/video-react-bindings';
@@ -5,6 +7,7 @@ import { videoLoggerSystem } from '@stream-io/video-client';
5
7
  import { ComponentTestIds } from '../../../../constants/TestIds';
6
8
  import { useTheme } from '../../../../contexts/ThemeContext';
7
9
  import { defaultEmojiReactions } from '../../../../constants';
10
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
8
11
  export const ReactionsPicker = ({
9
12
  supportedReactions = defaultEmojiReactions,
10
13
  reactionsButtonLayoutRectangle,
@@ -78,40 +81,44 @@ export const ReactionsPicker = ({
78
81
  easing: Easing.linear
79
82
  }).start(onRequestedClose);
80
83
  };
81
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Pressable, {
82
- testID: ComponentTestIds.REACTIONS_PICKER,
83
- style: [styles.reactionsPopup, reactionsPopupStyle, {
84
- backgroundColor: colors.sheetSecondary
85
- }, reactionsPicker.reactionsPopup],
86
- onPress: () => {
87
- onClose();
88
- }
89
- }, supportedReactions.map(supportedReaction => /*#__PURE__*/React.createElement(Pressable, {
90
- key: supportedReaction.emoji_code,
91
- style: [styles.reactionItem, reactionItemStyle, {
92
- backgroundColor: colors.buttonSecondary
93
- }, reactionsPicker.reactionItem],
94
- onPress: () => {
95
- onClose({
96
- type: supportedReaction.type,
97
- custom: supportedReaction.custom,
98
- emoji_code: supportedReaction.emoji_code
99
- });
100
- }
101
- }, /*#__PURE__*/React.createElement(Animated.Text, {
102
- style: [styles.reactionText, {
103
- transform: [{
104
- scaleY: elasticAnimRef.current
105
- }, {
106
- scaleX: elasticAnimRef.current
107
- }]
108
- }, reactionsPicker.reactionText]
109
- }, supportedReaction.icon)))), /*#__PURE__*/React.createElement(Pressable, {
110
- style: [reactionsButtonDimmerStyle, {
111
- backgroundColor: colors.sheetSecondary
112
- }, reactionsPicker.reactionsButtonDimmer],
113
- onPress: () => onClose()
114
- }));
84
+ return /*#__PURE__*/_jsxs(_Fragment, {
85
+ children: [/*#__PURE__*/_jsx(Pressable, {
86
+ testID: ComponentTestIds.REACTIONS_PICKER,
87
+ style: [styles.reactionsPopup, reactionsPopupStyle, {
88
+ backgroundColor: colors.sheetSecondary
89
+ }, reactionsPicker.reactionsPopup],
90
+ onPress: () => {
91
+ onClose();
92
+ },
93
+ children: supportedReactions.map(supportedReaction => /*#__PURE__*/_jsx(Pressable, {
94
+ style: [styles.reactionItem, reactionItemStyle, {
95
+ backgroundColor: colors.buttonSecondary
96
+ }, reactionsPicker.reactionItem],
97
+ onPress: () => {
98
+ onClose({
99
+ type: supportedReaction.type,
100
+ custom: supportedReaction.custom,
101
+ emoji_code: supportedReaction.emoji_code
102
+ });
103
+ },
104
+ children: /*#__PURE__*/_jsx(Animated.Text, {
105
+ style: [styles.reactionText, {
106
+ transform: [{
107
+ scaleY: elasticAnimRef.current
108
+ }, {
109
+ scaleX: elasticAnimRef.current
110
+ }]
111
+ }, reactionsPicker.reactionText],
112
+ children: supportedReaction.icon
113
+ })
114
+ }, supportedReaction.emoji_code))
115
+ }), /*#__PURE__*/_jsx(Pressable, {
116
+ style: [reactionsButtonDimmerStyle, {
117
+ backgroundColor: colors.sheetSecondary
118
+ }, reactionsPicker.reactionsButtonDimmer],
119
+ onPress: () => onClose()
120
+ })]
121
+ });
115
122
  };
116
123
  const useStyles = () => {
117
124
  const {
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEffect","useMemo","useRef","Animated","Easing","Pressable","StyleSheet","useCall","videoLoggerSystem","ComponentTestIds","useTheme","defaultEmojiReactions","ReactionsPicker","supportedReactions","reactionsButtonLayoutRectangle","onRequestedClose","theme","colors","reactionsPicker","variants","styles","useStyles","call","size","width","reactionItemSize","popupHeight","spacingSizes","xs","length","reactionsPopupStyle","top","y","left","x","height","borderTopStartRadius","borderTopEndRadius","elasticAnimRef","Value","timing","current","toValue","duration","useNativeDriver","easing","elastic","start","reactionItemStyle","borderRadius","reactionsButtonDimmerStyle","reactionsButtonDimmer","onClose","reaction","sendReaction","catch","e","logger","getLogger","error","linear","createElement","Fragment","testID","REACTIONS_PICKER","style","reactionsPopup","backgroundColor","sheetSecondary","onPress","map","supportedReaction","key","emoji_code","reactionItem","buttonSecondary","type","custom","Text","reactionText","transform","scaleY","scaleX","icon","create","position","alignItems","paddingTop","opacity","justifyContent","marginBottom","fontSize"],"sourceRoot":"../../../../../../src","sources":["components/Call/CallControls/internal/ReactionsPicker.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACzD,SACEC,QAAQ,EACRC,MAAM,EAENC,SAAS,EACTC,UAAU,QACL,cAAc;AACrB,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAEEC,iBAAiB,QACZ,yBAAyB;AAChC,SAASC,gBAAgB,QAAQ,+BAA+B;AAChE,SAASC,QAAQ,QAAQ,mCAAmC;AAE5D,SAASC,qBAAqB,QAAQ,uBAAuB;AAO7D,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,kBAAkB,GAAGF,qBAAqB;EAC1CG,8BAA8B;EAC9BC;AACmB,CAAC,KAAK;EACzB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,eAAe;MAAEC;IAAS;EAC7C,CAAC,GAAGT,QAAQ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;MACpBC,UAAU,EAAEvE,KAAK,CAACG,QAAQ,CAACQ,YAAY,CAACC;IAC1C,CAAC;IACDuB,qBAAqB,EAAE;MACrBkC,QAAQ,EAAE,UAAU;MACpBG,OAAO,EAAE;IACX,CAAC;IACDd,YAAY,EAAE;MACZY,UAAU,EAAE,QAAQ;MACpBG,cAAc,EAAE,QAAQ;MACxBC,YAAY,EAAE1E,KAAK,CAACG,QAAQ,CAACQ,YAAY,CAACC;IAC5C,CAAC;IACDmD,YAAY,EAAE;MACZY,QAAQ,EAAE;IACZ;EACF,CAAC,CAAC,EACJ,CAAC3E,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useMemo","useRef","Animated","Easing","Pressable","StyleSheet","useCall","videoLoggerSystem","ComponentTestIds","useTheme","defaultEmojiReactions","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ReactionsPicker","supportedReactions","reactionsButtonLayoutRectangle","onRequestedClose","theme","colors","reactionsPicker","variants","styles","useStyles","call","size","width","reactionItemSize","popupHeight","spacingSizes","xs","length","reactionsPopupStyle","top","y","left","x","height","borderTopStartRadius","borderTopEndRadius","elasticAnimRef","Value","timing","current","toValue","duration","useNativeDriver","easing","elastic","start","reactionItemStyle","borderRadius","reactionsButtonDimmerStyle","reactionsButtonDimmer","onClose","reaction","sendReaction","catch","e","logger","getLogger","error","linear","children","testID","REACTIONS_PICKER","style","reactionsPopup","backgroundColor","sheetSecondary","onPress","map","supportedReaction","reactionItem","buttonSecondary","type","custom","emoji_code","Text","reactionText","transform","scaleY","scaleX","icon","create","position","alignItems","paddingTop","opacity","justifyContent","marginBottom","fontSize"],"sourceRoot":"../../../../../../src","sources":["components/Call/CallControls/internal/ReactionsPicker.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACzD,SACEC,QAAQ,EACRC,MAAM,EAENC,SAAS,EACTC,UAAU,QACL,cA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AAA,CAACR,SAAS;MACRiE,KAAK,EAAE,CACLd,0BAA0B,EAC1B;QACEgB,eAAe,EAAEjD,MAAM,CAACkD;MAC1B,CAAC,EACDjD,eAAe,CAACiC,qBAAqB,CACrC;MACFiB,OAAO,EAAEA,CAAA,KAAMhB,OAAO,CAAC;IAAE,CAC1B,CAAC;EAAA,CACF,CAAC;AAEP,CAAC;AAED,MAAM/B,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEL;EAAM,CAAC,GAAGZ,QAAQ,CAAC,CAAC;EAC5B,OAAOT,OAAO,CACZ,MACEK,UAAU,CAACkF,MAAM,CAAC;IAChBjB,cAAc,EAAE;MACdkB,QAAQ,EAAE,UAAU;MACpBC,UAAU,EAAE,QAAQ;MACpBC,UAAU,EAAErE,KAAK,CAACG,QAAQ,CAACQ,YAAY,CAACC;IAC1C,CAAC;IACDuB,qBAAqB,EAAE;MACrBgC,QAAQ,EAAE,UAAU;MACpBG,OAAO,EAAE;IACX,CAAC;IACDf,YAAY,EAAE;MACZa,UAAU,EAAE,QAAQ;MACpBG,cAAc,EAAE,QAAQ;MACxBC,YAAY,EAAExE,KAAK,CAACG,QAAQ,CAACQ,YAAY,CAACC;IAC5C,CAAC;IACDiD,YAAY,EAAE;MACZY,QAAQ,EAAE;IACZ;EACF,CAAC,CAAC,EACJ,CAACzE,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,4 +1,5 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
1
+ "use strict";
2
+
2
3
  import React, { useEffect, useState } from 'react';
3
4
  import { StyleSheet, View } from 'react-native';
4
5
  import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
@@ -11,7 +12,7 @@ import { useIsInPiPMode } from '../../../hooks/useIsInPiPMode';
11
12
  /**
12
13
  * Props for the CallParticipantsGrid component.
13
14
  */
14
-
15
+ import { jsx as _jsx } from "react/jsx-runtime";
15
16
  /**
16
17
  * Component used to display the list of participants in a grid mode.
17
18
  */
@@ -56,9 +57,6 @@ export const CallParticipantsGrid = ({
56
57
  sub2.unsubscribe();
57
58
  };
58
59
  }, [call]);
59
- const landscapeStyles = {
60
- flexDirection: landscape ? 'row' : 'column'
61
- };
62
60
  const isInPiPMode = useIsInPiPMode();
63
61
  const showFloatingView = !isInPiPMode && remoteParticipants.length > 0 && remoteParticipants.length < 3;
64
62
  let participants;
@@ -91,20 +89,28 @@ export const CallParticipantsGrid = ({
91
89
  VideoRenderer,
92
90
  mirror
93
91
  };
94
- return /*#__PURE__*/React.createElement(View, {
95
- style: [styles.container, landscapeStyles, {
92
+ return /*#__PURE__*/_jsx(View, {
93
+ style: [styles.container, landscape ? styles.row : styles.column, {
96
94
  backgroundColor: colors.sheetPrimary
97
95
  }, callParticipantsGrid.container],
98
- testID: ComponentTestIds.CALL_PARTICIPANTS_GRID
99
- }, CallParticipantsList && /*#__PURE__*/React.createElement(CallParticipantsList, _extends({
100
- participants: participants,
101
- supportedReactions: supportedReactions,
102
- landscape: landscape
103
- }, participantViewProps)));
96
+ testID: ComponentTestIds.CALL_PARTICIPANTS_GRID,
97
+ children: CallParticipantsList && /*#__PURE__*/_jsx(CallParticipantsList, {
98
+ participants: participants,
99
+ supportedReactions: supportedReactions,
100
+ landscape: landscape,
101
+ ...participantViewProps
102
+ })
103
+ });
104
104
  };
105
105
  const styles = StyleSheet.create({
106
106
  container: {
107
107
  flex: 1
108
+ },
109
+ row: {
110
+ flexDirection: 'row'
111
+ },
112
+ column: {
113
+ flexDirection: 'column'
108
114
  }
109
115
  });
110
116
  //# sourceMappingURL=CallParticipantsGrid.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEffect","useState","StyleSheet","View","useCall","useCallStateHooks","debounceTime","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","useIsInPiPMode","CallParticipantsGrid","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","mirror","showLocalParticipant","supportedReactions","landscape","theme","colors","callParticipantsGrid","call","useLocalParticipant","useDominantSpeaker","localParticipant","dominantSpeaker","remoteParticipants","setRemoteParticipants","state","allParticipants","setAllParticipants","participants","sub1","remoteParticipants$","pipe","subscribe","sub2","participants$","unsubscribe","landscapeStyles","flexDirection","isInPiPMode","showFloatingView","length","isLocalParticipant","participantViewProps","createElement","style","styles","container","backgroundColor","sheetPrimary","testID","CALL_PARTICIPANTS_GRID","_extends","create","flex"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsGrid.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAC/D,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,YAAY,QAAQ,MAAM;AACnC,SACEC,oBAAoB,IAAIC,2BAA2B,QAE9C,8CAA8C;AACrD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,QAAQ,QAAQ,gCAAgC;AAGzD,SAASC,cAAc,QAAQ,+BAA+B;;AAG9D;AACA;AACA;;AAeA;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACnCL,oBAAoB,GAAGC,2BAA2B;EAClDK,gBAAgB;EAChBC,kCAAkC;EAClCC,mBAAmB;EACnBC,wBAAwB;EACxBC,eAAe;EACfC,aAAa;EACbC,MAAM;EACNC,oBAAoB,GAAG,KAAK;EAC5BC,kBAAkB;EAClBC;AACyB,CAAC,KAAK;EAC/B,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAqB;EACxC,CAAC,GAAGf,QAAQ,CAAC,CAAC;EACd,MAAMgB,IAAI,GAAGtB,OAAO,CAAC,CAAC;EACtB,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AAGnD,UAAU,CAAC0D,MAAM,CAAC;EAC/BN,SAAS,EAAE;IAAEO,IAAI,EAAE;EAAE;AACvB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useState","StyleSheet","View","useCall","useCallStateHooks","debounceTime","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","useIsInPiPMode","jsx","_jsx","CallParticipantsGrid","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","mirror","showLocalParticipant","supportedReactions","landscape","theme","colors","callParticipantsGrid","call","useLocalParticipant","useDominantSpeaker","localParticipant","dominantSpeaker","remoteParticipants","setRemoteParticipants","state","allParticipants","setAllParticipants","participants","sub1","remoteParticipants$","pipe","subscribe","sub2","participants$","unsubscribe","isInPiPMode","showFloatingView","length","isLocalParticipant","participantViewProps","style","styles","container","row","column","backgroundColor","sheetPrimary","testID","CALL_PARTICIPANTS_GRID","children","create","flex","flexDirection"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsGrid.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,SAASC,YAAY,QAAQ,MAAM;AACnC,SACEC,oBAAoB,IAAIC,2BAA2B,QAE9C,8CAA8C;AACrD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,QAAQ,QAAQ,gCAAgC;AAGzD,SAASC,cAAc,QAAQ,+BAA+B;;AAG9D;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAiBA;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACnCP,oBAAoB,GAAGC,2BAA2B;EAClDO,gBAAgB;EAChBC,kCAAkC;EAClCC,mBAAmB;EACnBC,wBAAwB;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oB,iBACnBM,IAAA,CAACN,oBAAoB;MACnB+B,YAAY,EAAEA,YAAa;MAC3Bf,kBAAkB,EAAEA,kBAAmB;MACvCC,SAAS,EAAEA,SAAU;MAAA,GACjB0B;IAAoB,CACzB;EACF,CACG,CAAC;AAEX,CAAC;AAED,MAAME,MAAM,GAAGlD,UAAU,CAAC2D,MAAM,CAAC;EAC/BR,SAAS,EAAE;IAAES,IAAI,EAAE;EAAE,CAAC;EACtBR,GAAG,EAAE;IAAES,aAAa,EAAE;EAAM,CAAC;EAC7BR,MAAM,EAAE;IAAEQ,aAAa,EAAE;EAAS;AACpC,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +1,5 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
1
+ "use strict";
2
+
2
3
  import React, { useEffect, useMemo, useState } from 'react';
3
4
  import { hasScreenShare } from '@stream-io/video-client';
4
5
  import { useCall } from '@stream-io/video-react-bindings';
@@ -13,7 +14,7 @@ import { useIsInPiPMode } from '../../../hooks/useIsInPiPMode';
13
14
  /**
14
15
  * Props for the CallParticipantsSpotlight component.
15
16
  */
16
-
17
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
18
  /**
18
19
  * Component used to display the list of participants in a spotlight mode.
19
20
  * This can be used when you want to render the screen sharing stream.
@@ -64,33 +65,45 @@ export const CallParticipantsSpotlight = ({
64
65
  ParticipantView,
65
66
  mirror
66
67
  };
67
- const landscapeStyles = {
68
- flexDirection: landscape ? 'row' : 'column'
69
- };
70
- const spotlightContainerLandscapeStyles = {
68
+
69
+ // Memoized so the spotlight tile's `style` prop stays referentially stable;
70
+ // otherwise the fresh array literal defeats ParticipantView's React.memo.
71
+ const spotlightParticipantStyle = useMemo(() => isUserAloneInCall ? [styles.fullScreenSpotlightContainer, callParticipantsSpotlight.fullScreenSpotlightContainer] : [styles.spotlightContainer, {
71
72
  marginHorizontal: landscape ? 0 : variants.spacingSizes.xs
72
- };
73
+ }, callParticipantsSpotlight.spotlightContainer], [isUserAloneInCall, landscape, styles, callParticipantsSpotlight, variants.spacingSizes.xs]);
73
74
  const showShareScreenOverlay = participantInSpotlight?.isLocalParticipant && isScreenShareOnSpotlight && ScreenShareOverlay;
74
- return /*#__PURE__*/React.createElement(View, {
75
+ return /*#__PURE__*/_jsxs(View, {
75
76
  testID: ComponentTestIds.CALL_PARTICIPANTS_SPOTLIGHT,
76
- style: [styles.container, landscapeStyles, callParticipantsSpotlight.container]
77
- }, participantInSpotlight && ParticipantView && (showShareScreenOverlay ? /*#__PURE__*/React.createElement(ScreenShareOverlay, null) : /*#__PURE__*/React.createElement(ParticipantView, _extends({
78
- participant: participantInSpotlight,
79
- style: isUserAloneInCall ? [styles.fullScreenSpotlightContainer, callParticipantsSpotlight.fullScreenSpotlightContainer] : [styles.spotlightContainer, spotlightContainerLandscapeStyles, callParticipantsSpotlight.spotlightContainer],
80
- objectFit: isScreenShareOnSpotlight ? 'contain' : 'cover',
81
- trackType: isScreenShareOnSpotlight ? 'screenShareTrack' : 'videoTrack',
82
- supportedReactions: supportedReactions,
83
- mirror: mirror
84
- }, participantViewProps))), !isInPiP && !isUserAloneInCall && /*#__PURE__*/React.createElement(View, {
85
- style: [styles.callParticipantsListContainer, callParticipantsSpotlight.callParticipantsListContainer]
86
- }, CallParticipantsList && /*#__PURE__*/React.createElement(CallParticipantsList, _extends({
87
- participants: isScreenShareOnSpotlight ? allParticipants : otherParticipants,
88
- supportedReactions: supportedReactions,
89
- horizontal: !landscape,
90
- numberOfColumns: !landscape ? 2 : 1,
91
- landscape: landscape
92
- }, callParticipantsListProps))));
77
+ style: [styles.container, landscape ? landscapeStyles.row : landscapeStyles.column, callParticipantsSpotlight.container],
78
+ children: [participantInSpotlight && ParticipantView && (showShareScreenOverlay ? /*#__PURE__*/_jsx(ScreenShareOverlay, {}) : /*#__PURE__*/_jsx(ParticipantView, {
79
+ participant: participantInSpotlight,
80
+ style: spotlightParticipantStyle,
81
+ objectFit: isScreenShareOnSpotlight ? 'contain' : 'cover',
82
+ trackType: isScreenShareOnSpotlight ? 'screenShareTrack' : 'videoTrack',
83
+ supportedReactions: supportedReactions,
84
+ mirror: mirror,
85
+ ...participantViewProps
86
+ })), !isInPiP && !isUserAloneInCall && /*#__PURE__*/_jsx(View, {
87
+ style: [styles.callParticipantsListContainer, callParticipantsSpotlight.callParticipantsListContainer],
88
+ children: CallParticipantsList && /*#__PURE__*/_jsx(CallParticipantsList, {
89
+ participants: isScreenShareOnSpotlight ? allParticipants : otherParticipants,
90
+ supportedReactions: supportedReactions,
91
+ horizontal: !landscape,
92
+ numberOfColumns: !landscape ? 2 : 1,
93
+ landscape: landscape,
94
+ ...callParticipantsListProps
95
+ })
96
+ })]
97
+ });
93
98
  };
99
+ const landscapeStyles = StyleSheet.create({
100
+ row: {
101
+ flexDirection: 'row'
102
+ },
103
+ column: {
104
+ flexDirection: 'column'
105
+ }
106
+ });
94
107
  const useStyles = () => {
95
108
  const {
96
109
  theme
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEffect","useMemo","useState","hasScreenShare","useCall","StyleSheet","View","debounceTime","ComponentTestIds","CallParticipantsList","DefaultCallParticipantsList","ParticipantView","DefaultParticipantView","useTheme","useIsInPiPMode","CallParticipantsSpotlight","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ScreenShareOverlay","VideoRenderer","supportedReactions","mirror","landscape","theme","callParticipantsSpotlight","variants","styles","useStyles","call","allParticipants","setAllParticipants","state","participants","sub","participants$","pipe","subscribe","unsubscribe","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","isUserAloneInCall","length","isInPiP","participantViewProps","callParticipantsListProps","landscapeStyles","flexDirection","spotlightContainerLandscapeStyles","marginHorizontal","spacingSizes","xs","showShareScreenOverlay","isLocalParticipant","createElement","testID","CALL_PARTICIPANTS_SPOTLIGHT","style","container","_extends","participant","fullScreenSpotlightContainer","spotlightContainer","objectFit","trackType","callParticipantsListContainer","horizontal","numberOfColumns","create","flex","backgroundColor","colors","sheetPrimary","overflow","borderRadius","borderRadiusSizes","sm"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC3D,SACEC,cAAc,QAET,yBAAyB;AAChC,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAC/D,SAASC,YAAY,QAAQ,MAAM;AACnC,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,oBAAoB,IAAIC,2BAA2B,QAE9C,8CAA8C;AACrD,SACEC,eAAe,IAAIC,sBAAsB,QAEpC,mBAAmB;AAC1B,SAASC,QAAQ,QAAQ,gCAAgC;AAEzD,SAASC,cAAc,QAAQ,+BAA+B;;AAE9D;AACA;AACA;;AAcA;AACA;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,GAAGA,CAAC;EACxCN,oBAAoB,GAAGC,2BAA2B;EAClDM,gBAAgB;EAChBC,kCAAkC;EAClCC,mBAAmB;EACnBC,wBAAwB;EACxBR,eAAe,GAAGC,sBAAsB;EACxCQ,kBAAkB;EAClBC,aAAa;EACbC,kBAAkB;EAClBC,MAAM;EACNC;AAC8B,CAAC,KAAK;EACpC,MAAM;IACJC,KAAK,EAAE;MAAEC,yBAAyB;MAAEC;IAAS;EAC/C,CAAC,GAAGd,QAAQ,CAAC,CAAC;EACd,MAAMe,MAAM,GAAGC,SAAS,CAAC,CAAC;EAC1B,MAAMC,IAAI,GAAG1B,OAAO,CAAC,CAAC;EACtB,MAAM,CAAC2B,eAAe,EAAEC,kBAAkB,CAAC,GAAG9B,QAAQ,CAEpD,MAAM4B,IAAI,EAAEG,KAAK,CAACC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C,CAAC;EAC5B,OAAOZ,OAAO,CACZ,MACEI,UAAU,CAACiE,MAAM,CAAC;IAChBV,SAAS,EAAE;MACTW,IAAI,EAAE,CAAC;MACPC,eAAe,EAAE/C,KAAK,CAACgD,MAAM,CAACC;IAChC,CAAC;IACDX,4BAA4B,EAAE;MAC5BQ,IAAI,EAAE;IACR,CAAC;IACDP,kBAAkB,EAAE;MAClBO,IAAI,EAAE,CAAC;MACPI,QAAQ,EAAE,QAAQ;MAClBC,YAAY,EAAEnD,KAAK,CAACE,QAAQ,CAACkD,iBAAiB,CAACC,EAAE;MACjD3B,gBAAgB,EAAE1B,KAAK,CAACE,QAAQ,CAACyB,YAAY,CAAC0B;IAChD,CAAC;IACDX,6BAA6B,EAAE;MAC7BI,IAAI,EAAE;IACR;EACF,CAAC,CAAC,EACJ,CAAC9C,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useMemo","useState","hasScreenShare","useCall","StyleSheet","View","debounceTime","ComponentTestIds","CallParticipantsList","DefaultCallParticipantsList","ParticipantView","DefaultParticipantView","useTheme","useIsInPiPMode","jsx","_jsx","jsxs","_jsxs","CallParticipantsSpotlight","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ScreenShareOverlay","VideoRenderer","supportedReactions","mirror","landscape","theme","callParticipantsSpotlight","variants","styles","useStyles","call","allParticipants","setAllParticipants","state","participants","sub","participants$","pipe","subscribe","unsubscribe","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","isUserAloneInCall","length","isInPiP","participantViewProps","callParticipantsListProps","spotlightParticipantStyle","fullScreenSpotlightContainer","spotlightContainer","marginHorizontal","spacingSizes","xs","showShareScreenOverlay","isLocalParticipant","testID","CALL_PARTICIPANTS_SPOTLIGHT","style","container","landscapeStyles","row","column","children","participant","objectFit","trackType","callParticipantsListContainer","horizontal","numberOfColumns","create","flexDirection","flex","backgroundColor","colors","sheetPrimary","overflow","borderRadius","bor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EAAE;IAAES,aAAa,EAAE;EAAS;AACpC,CAAC,CAAC;AAEF,MAAM1C,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEJ;EAAM,CAAC,GAAGhB,QAAQ,CAAC,CAAC;EAC5B,OAAOZ,OAAO,CACZ,MACEI,UAAU,CAACqE,MAAM,CAAC;IAChBX,SAAS,EAAE;MACTa,IAAI,EAAE,CAAC;MACPC,eAAe,EAAEhD,KAAK,CAACiD,MAAM,CAACC;IAChC,CAAC;IACD1B,4BAA4B,EAAE;MAC5BuB,IAAI,EAAE;IACR,CAAC;IACDtB,kBAAkB,EAAE;MAClBsB,IAAI,EAAE,CAAC;MACPI,QAAQ,EAAE,QAAQ;MAClBC,YAAY,EAAEpD,KAAK,CAACE,QAAQ,CAACmD,iBAAiB,CAACC,EAAE;MACjD5B,gBAAgB,EAAE1B,KAAK,CAACE,QAAQ,CAACyB,YAAY,CAAC2B;IAChD,CAAC;IACDZ,6BAA6B,EAAE;MAC7BK,IAAI,EAAE;IACR;EACF,CAAC,CAAC,EACJ,CAAC/C,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  export * from './CallParticipantsGrid';
2
4
  export * from './CallParticipantsSpotlight';
3
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/index.ts"],"mappings":"AAAA,cAAc,wBAAwB;AACtC,cAAc,6BAA6B","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/index.ts"],"mappings":";;AAAA,cAAc,wBAAwB;AACtC,cAAc,6BAA6B","ignoreList":[]}
@@ -1,4 +1,5 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
1
+ "use strict";
2
+
2
3
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
4
  import { FlatList, StyleSheet } from 'react-native';
4
5
  import { VisibilityState } from '@stream-io/video-client';
@@ -7,6 +8,7 @@ import { useCall } from '@stream-io/video-react-bindings';
7
8
  import { ComponentTestIds } from '../../../constants/TestIds';
8
9
  import { ParticipantView as DefaultParticipantView } from '../../Participant/ParticipantView';
9
10
  import { useTheme } from '../../../contexts';
11
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
10
12
  const VIEWABILITY_CONFIG = {
11
13
  waitForInteraction: false,
12
14
  itemVisiblePercentThreshold: 60
@@ -150,48 +152,50 @@ export const CallParticipantsList = ({
150
152
  }
151
153
  return style;
152
154
  }, [itemWidth, itemHeight, horizontal, landscape, styles]);
153
- const participantProps = {
155
+ const participantProps = useMemo(() => ({
154
156
  ParticipantLabel,
155
157
  ParticipantNetworkQualityIndicator,
156
158
  ParticipantReaction,
157
159
  ParticipantVideoFallback,
158
160
  VideoRenderer
159
- };
161
+ }), [ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, VideoRenderer]);
160
162
  const renderItem = useCallback(({
161
163
  item: participant
162
164
  }) => {
163
165
  const isVisible = viewableParticipantSessionIds.current.has(participant.sessionId);
164
- return /*#__PURE__*/React.createElement(React.Fragment, null, ParticipantView && /*#__PURE__*/React.createElement(ParticipantView, _extends({
165
- participant: participant,
166
- style: itemContainerStyle,
167
- trackType: "videoTrack",
168
- isVisible: isVisible,
169
- supportedReactions: supportedReactions,
170
- mirror: mirror
171
- }, participantProps)));
172
- },
173
- // eslint-disable-next-line react-hooks/exhaustive-deps
174
- [itemContainerStyle]);
166
+ return /*#__PURE__*/_jsx(_Fragment, {
167
+ children: ParticipantView && /*#__PURE__*/_jsx(ParticipantView, {
168
+ participant: participant,
169
+ style: itemContainerStyle,
170
+ trackType: "videoTrack",
171
+ isVisible: isVisible,
172
+ supportedReactions: supportedReactions,
173
+ mirror: mirror,
174
+ ...participantProps
175
+ })
176
+ });
177
+ }, [ParticipantView, itemContainerStyle, participantProps, supportedReactions, mirror]);
175
178
 
176
179
  // in vertical mode, only when there are more than 2 participants in a call, the participants should be displayed in a grid
177
180
  // else we display them both in a stretched row on the screen
178
181
  const shouldWrapByColumns = !!horizontal || participants.length > 2;
179
182
  if (!shouldWrapByColumns) {
180
- return /*#__PURE__*/React.createElement(React.Fragment, null, participants.map((participant, index) => {
181
- return ParticipantView && /*#__PURE__*/React.createElement(ParticipantView, _extends({
182
- participant: participant,
183
- style: styles.flexed,
184
- trackType: "videoTrack",
185
- key: keyExtractor(participant, index),
186
- supportedReactions: supportedReactions,
187
- mirror: mirror
188
- }, participantProps));
189
- }));
183
+ return /*#__PURE__*/_jsx(_Fragment, {
184
+ children: participants.map((participant, index) => {
185
+ return ParticipantView && /*#__PURE__*/_jsx(ParticipantView, {
186
+ participant: participant,
187
+ style: styles.flexed,
188
+ trackType: "videoTrack",
189
+ supportedReactions: supportedReactions,
190
+ mirror: mirror,
191
+ ...participantProps
192
+ }, keyExtractor(participant, index));
193
+ })
194
+ });
190
195
  }
191
- return /*#__PURE__*/React.createElement(FlatList, {
196
+ return /*#__PURE__*/_jsx(FlatList, {
192
197
  onLayout: onLayout,
193
- key: !horizontal ? numberOfColumns : undefined // setting numColumns as key is a strict requirement of react-native to support changing numColumns on the fly
194
- ,
198
+ // setting numColumns as key is a strict requirement of react-native to support changing numColumns on the fly
195
199
  data: participants,
196
200
  keyExtractor: keyExtractor,
197
201
  viewabilityConfig: VIEWABILITY_CONFIG,
@@ -203,7 +207,7 @@ export const CallParticipantsList = ({
203
207
  extraData: `${forceUpdateValue}` // this is important to force re-render when visibility changes
204
208
  ,
205
209
  testID: ComponentTestIds.CALL_PARTICIPANTS_LIST
206
- });
210
+ }, !horizontal ? numberOfColumns : undefined);
207
211
  };
208
212
  const useStyles = () => {
209
213
  const {
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useEffect","useMemo","useRef","useState","FlatList","StyleSheet","VisibilityState","Subject","debounceTime","useCall","ComponentTestIds","ParticipantView","DefaultParticipantView","useTheme","VIEWABILITY_CONFIG","waitForInteraction","itemVisiblePercentThreshold","CallParticipantsList","numberOfColumns","horizontal","participants","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","VideoRenderer","supportedReactions","landscape","mirror","styles","useStyles","containerLayout","setContainerLayout","width","height","viewableParticipantSessionIds","current","Set","forceUpdate$Ref","forceUpdate$","forceUpdateValue","setForceUpdateValue","sub","pipe","subscribe","v","unsubscribe","forceUpdate","next","activeCall","activeCallRef","onViewableItemsChanged","viewableItems","participantPatches","mustUpdate","newVisibleParticipantSessionIds","map","key","oldVisibleParticipantSessionIds","forEach","has","viewportVisibilityState","videoTrack","VISIBLE","screenShareTrack","UNKNOWN","state","updateParticipants","keyExtractor","item","sessionId","onLayout","event","nativeEvent","layout","prev","itemHeight","itemWidth","calculateParticipantViewSize","containerHeight","containerWidth","participantsLength","length","margin","participant","itemContainerStyle","style","participantWrapperHorizontal","landScapeStyle","participantProps","renderItem","isVisible","createElement","Fragment","_extends","trackType","shouldWrapByColumns","index","flexed","undefined","data","viewabilityConfig","numColumns","showsHorizontalScrollIndicator","extraData","testID","CALL_PARTICIPANTS_LIST","theme","create","flex","marginHorizontal","variants","spacingSizes","sm","borderRadius","borderRadiusSizes","xs"],"sourceRoot":"../../../../../src","sources":["components/Call/CallParticipantsList/CallParticipantsList.tsx"],"mappings":";AAAA,OAAOA,KAAK,IACVC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SACEC,QAAQ,EAERC,UAAU,QAEL,cAAc;AAErB,SAGEC,eAAe,QACV,yBAAyB;AAChC,SAASC,OAAO,EAAEC,YAAY,QAAQ,MAAM;AAC5C,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,gBAAgB,QAAQ,4BAA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AC5B;MACAuB,gBAAgB,EAAEH,KAAK,CAACI,QAAQ,CAACC,YAAY,CAACC,EAAE;MAChDC,YAAY,EAAEP,KAAK,CAACI,QAAQ,CAACI,iBAAiB,CAACF;IACjD,CAAC;IACDzB,cAAc,EAAE;MACd0B,YAAY,EAAEP,KAAK,CAACI,QAAQ,CAACI,iBAAiB,CAACF;IACjD,CAAC;IACD7B,WAAW,EAAE;MACXD,MAAM,EAAEwB,KAAK,CAACI,QAAQ,CAACC,YAAY,CAACI;IACtC;EACF,CAAC,CAAC,EACJ,CAACT,KAAK,CACR,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS7B,4BAA4BA,CAAC;EACpCC,eAAe;EACfC,cAAc;EACdC,kBAAkB;EAClB/D,eAAe;EACfC,UAAU;EACVgE;AAQF,CAAC,EAAE;EACD,IAAIP,UAAU,GAAGG,eAAe;EAChC;EACA,IAAI,CAAC5D,UAAU,EAAE;IACf,IAAI8D,kBAAkB,IAAI,CAAC,EAAE;MAC3B;MACAL,UAAU,GAAGG,eAAe,GAAG,CAAC;IAClC,CAAC,MAAM;MACL;MACAH,UAAU,GAAGG,eAAe,GAAG,CAAC;IAClC;EACF;EAEA,IAAIF,SAAS,GAAGG,cAAc,GAAG9D,eAAe;EAChD,IAAIC,UAAU,EAAE;IACd;IACA0D,SAAS,GAAGA,SAAS,GAAG,CAAC,GAAG,CAAC;EAC/B;EAEAD,UAAU,GAAGA,UAAU,GAAGO,MAAM;EAChCN,SAAS,GAAGA,SAAS,GAAGM,MAAM;EAC9B,OAAO;IAAEP,UAAU;IAAEC;EAAU,CAAC;AAClC","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallback","useEffect","useMemo","useRef","useState","FlatList","StyleSheet","VisibilityState","Subject","debounceTime","useCall","ComponentTestIds","ParticipantView","DefaultParticipantView","useTheme","jsx","_jsx","Fragment","_Fragment","VIEWABILITY_CONFIG","waitForInteraction","itemVisiblePercentThreshold","CallParticipantsList","numberOfColumns","horizontal","participants","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","VideoRenderer","supportedReactions","landscape","mirror","styles","useStyles","containerLayout","setContainerLayout","width","height","viewableParticipantSessionIds","current","Set","forceUpdate$Ref","forceUpdate$","forceUpdateValue","setForceUpdateValue","sub","pipe","subscribe","v","unsubscribe","forceUpdate","next","activeCall","activeCallRef","onViewableItemsChanged","viewableItems","participantPatches","mustUpdate","newVisibleParticipantSessionIds","map","key","oldVisibleParticipantSessionIds","forEach","has","viewportVisibilityState","videoTrack","VISIBLE","screenShareTrack","UNKNOWN","state","updateParticipants","keyExtractor","item","sessionId","onLayout","event","nativeEvent","layout","prev","itemHeight","itemWidth","calculateParticipantViewSize","containerHeight","containerWidth","participantsLength","length","margin","participant","itemContainerStyle","style","participantWrapperHorizontal","landScapeStyle","participantProps","renderItem","isVisible","children","trackType","shouldWrapByColumns","index","flexed","data","viewabilityConfig","numColumns","undefined","showsHorizontalScrollIndicator","extraData","testID","CALL_PARTICIPANTS_LIST","theme","create","flex","marginHorizontal","variants","spacingSizes","sm","borderRadius","borderRadiusSizes","xs"],"sourceRoot":"../../../../../src","sources":["components/Call/CallParticipantsList/CallParticipantsList.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IACVC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SACEC,QAAQ,EAERC,UAAU,QAEL,cAAc;AAErB,SAGEC,eAAe,QACV,yBAAyB;AAChC,SAASC,OAAO,EAAEC,YAAY,QAAQ,MAAM;AAC5C,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,eAAe,IAAIC,sBAAsB,QAGpC,mCAAmC;AAE1C,SAASC,QAAQ,QAAQ,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAM7C,MAAMC,k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,CAACC,YAAY,CAACC,EAAE;MAChDC,YAAY,EAAEP,KAAK,CAACI,QAAQ,CAACI,iBAAiB,CAACF;IACjD,CAAC;IACDvB,cAAc,EAAE;MACdwB,YAAY,EAAEP,KAAK,CAACI,QAAQ,CAACI,iBAAiB,CAACF;IACjD,CAAC;IACD3B,WAAW,EAAE;MACXD,MAAM,EAAEsB,KAAK,CAACI,QAAQ,CAACC,YAAY,CAACI;IACtC;EACF,CAAC,CAAC,EACJ,CAACT,KAAK,CACR,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS3B,4BAA4BA,CAAC;EACpCC,eAAe;EACfC,cAAc;EACdC,kBAAkB;EAClB/D,eAAe;EACfC,UAAU;EACVgE;AAQF,CAAC,EAAE;EACD,IAAIP,UAAU,GAAGG,eAAe;EAChC;EACA,IAAI,CAAC5D,UAAU,EAAE;IACf,IAAI8D,kBAAkB,IAAI,CAAC,EAAE;MAC3B;MACAL,UAAU,GAAGG,eAAe,GAAG,CAAC;IAClC,CAAC,MAAM;MACL;MACAH,UAAU,GAAGG,eAAe,GAAG,CAAC;IAClC;EACF;EAEA,IAAIF,SAAS,GAAGG,cAAc,GAAG9D,eAAe;EAChD,IAAIC,UAAU,EAAE;IACd;IACA0D,SAAS,GAAGA,SAAS,GAAG,CAAC,GAAG,CAAC;EAC/B;EAEAD,UAAU,GAAGA,UAAU,GAAGO,MAAM;EAChCN,SAAS,GAAGA,SAAS,GAAGM,MAAM;EAC9B,OAAO;IAAEP,UAAU;IAAEC;EAAU,CAAC;AAClC","ignoreList":[]}
@@ -1,2 +1,4 @@
1
+ "use strict";
2
+
1
3
  export * from './CallParticipantsList';
2
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallParticipantsList/index.ts"],"mappings":"AAAA,cAAc,wBAAwB","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallParticipantsList/index.ts"],"mappings":";;AAAA,cAAc,wBAAwB","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import React, { useMemo, useState } from 'react';
2
4
  import { Pressable, StyleSheet, Text } from 'react-native';
3
5
  import { useCall, useI18n } from '@stream-io/video-react-bindings';
@@ -7,7 +9,7 @@ import { videoLoggerSystem } from '@stream-io/video-client';
7
9
  /**
8
10
  * Props for the Join Call Button in the Lobby component.
9
11
  */
10
-
12
+ import { jsx as _jsx } from "react/jsx-runtime";
11
13
  /**
12
14
  * The default Join call button to be used in the Lobby component.
13
15
  */
@@ -49,17 +51,19 @@ export const JoinCallButton = ({
49
51
  }
50
52
  };
51
53
  const backgroundColor = isLoading ? colors.buttonDisabled : colors.buttonPrimary;
52
- return /*#__PURE__*/React.createElement(Pressable, {
54
+ return /*#__PURE__*/_jsx(Pressable, {
53
55
  style: [styles.container, {
54
56
  backgroundColor
55
57
  }, joinCallButton.container],
56
58
  onPress: onPress,
57
- disabled: isLoading
58
- }, /*#__PURE__*/React.createElement(Text, {
59
- style: [styles.label, {
60
- color: colors.textPrimary
61
- }, typefaces.subtitleBold, joinCallButton.label]
62
- }, isLoading ? t('Joining...') : t('Join')));
59
+ disabled: isLoading,
60
+ children: /*#__PURE__*/_jsx(Text, {
61
+ style: [styles.label, {
62
+ color: colors.textPrimary
63
+ }, typefaces.subtitleBold, joinCallButton.label],
64
+ children: isLoading ? t('Joining...') : t('Join')
65
+ })
66
+ });
63
67
  };
64
68
  const useStyles = () => {
65
69
  const {
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","useState","Pressable","StyleSheet","Text","useCall","useI18n","useTheme","videoLoggerSystem","JoinCallButton","onJoinCallHandler","onPressHandler","theme","colors","typefaces","joinCallButton","styles","useStyles","isLoading","setIsLoading","t","call","onPress","join","create","error","logger","getLogger","backgroundColor","buttonDisabled","buttonPrimary","createElement","style","container","disabled","label","color","textPrimary","subtitleBold","borderRadius","variants","borderRadiusSizes","lg","marginTop","spacingSizes","md","paddingVertical","sm","textAlign"],"sourceRoot":"../../../../../src","sources":["components/Call/Lobby/JoinCallButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAEhD,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,OAAO,EAAEC,OAAO,QAAQ,iCAAiC;AAClE,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,iBAAiB,QAAQ,yBAAyB;;AAE3D;AACA;AACA;;AAKA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,iBAAiB;EACjBC;AACmB,CAAC,KAAK;EACzB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,SAAS;MAAEC;IAAe;EAC7C,CAAC,GAAGR,QAAQ,CAAC,CAAC;EACd,MAAMS,MAAM,GAAGC,SAAS,CAAC,CAAC;EAC1B,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGlB,QAAQ,CAAC,KAAK,CAAC;EACjD,MAAM;IAAEmB;EAAE,CAAC,GAAGd,OAAO,CAAC,CAAC;EACvB,MAAMe,IAAI,GAAGhB,OAAO,CAAC,CAAC;EAEtB,MAAMiB,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1BH,YAAY,CAAC,IAAI,CAAC;IAClB,IAAIR,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IACA,IAAI;MACF,MAAMU,IAAI,EAAEE,IAAI,CAAC;QAAEC,MAAM,EAAE;MAAK,CAAC,CAAC;MAClC,IAAId,iBAAiB,EAAE;QACrBA,iBAAiB,CAAC,CAAC;MACrB;IACF,CAAC,CAAC,OAAOe,KAAK,EAAE;MACd,MAAMC,MAAM,GAAGlB,iBAAiB,CAACmB,SAAS,CAAC,gBAAgB,CAAC;MAC5DD,MAAM,CAACD,KAAK,CAAC,qBA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Text","useCall","useI18n","useTheme","videoLoggerSystem","jsx","_jsx","JoinCallButton","onJoinCallHandler","onPressHandler","theme","colors","typefaces","joinCallButton","styles","useStyles","isLoading","setIsLoading","t","call","onPress","join","create","error","logger","getLogger","backgroundColor","buttonDisabled","buttonPrimary","style","container","disabled","children","label","color","textPrimary","subtitleBold","borderRadius","variants","borderRadiusSizes","lg","marginTop","spacingSizes","md","paddingVertical","sm","textAlign"],"sourceRoot":"../../../../../src","sources":["components/Call/Lobby/JoinCallButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAEhD,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,OAAO,EAAEC,OAAO,QAAQ,iCAAiC;AAClE,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,iBAAiB,QAAQ,yBAAyB;;AAE3D;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAOA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAC7BC,iBAAiB;EACjBC;AACmB,CAAC,KAAK;EACzB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,SAAS;MAAEC;IAAe;EAC7C,CAAC,GAAGV,QAAQ,CAAC,CAAC;EACd,MAAMW,MAAM,GAAGC,SAAS,CAAC,CAAC;EAC1B,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGpB,QAAQ,CAAC,KAAK,CAAC;EACjD,MAAM;IAAEqB;EAAE,CAAC,GAAGhB,OAAO,CAAC,CAAC;EACvB,MAAMiB,IAAI,GAAGlB,OAAO,CAAC,CAAC;EAEtB,MAAMmB,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1BH,YAAY,CAAC,IAAI,CAAC;IAClB,IAAIR,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IACA,IAAI;MACF,MAAMU,IAAI,EAAEE,IAAI,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