@stream-io/video-react-native-sdk 1.9.30 → 1.10.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 (537) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/commonjs/components/Call/CallContent/CallContent.js +31 -21
  3. package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
  4. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +3 -2
  5. package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  6. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +10 -6
  7. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  8. package/dist/commonjs/components/Call/CallControls/CallControls.js +7 -5
  9. package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
  10. package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +11 -8
  11. package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -1
  12. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +10 -6
  13. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
  14. package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +11 -9
  15. package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -1
  16. package/dist/commonjs/components/Call/CallControls/LobbyControls.js +5 -3
  17. package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -1
  18. package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js +12 -9
  19. package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
  20. package/dist/commonjs/components/Call/CallControls/ReactionsButton.js +22 -15
  21. package/dist/commonjs/components/Call/CallControls/ReactionsButton.js.map +1 -1
  22. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +10 -6
  23. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
  24. package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js +15 -11
  25. package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
  26. package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +13 -9
  27. package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
  28. package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +18 -13
  29. package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
  30. package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +17 -12
  31. package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
  32. package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +13 -9
  33. package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
  34. package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +17 -12
  35. package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
  36. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +39 -34
  37. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  38. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +10 -8
  39. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  40. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +22 -18
  41. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  42. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +25 -21
  43. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  44. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +10 -7
  45. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
  46. package/dist/commonjs/components/Call/Lobby/Lobby.js +43 -33
  47. package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
  48. package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +21 -16
  49. package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
  50. package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js +2 -1
  51. package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
  52. package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js +2 -1
  53. package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
  54. package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +32 -22
  55. package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
  56. package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +35 -25
  57. package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
  58. package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +12 -8
  59. package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
  60. package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js +28 -22
  61. package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
  62. package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +25 -22
  63. package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -1
  64. package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +31 -26
  65. package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
  66. package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +16 -12
  67. package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
  68. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +16 -12
  69. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  70. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +19 -14
  71. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
  72. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js +5 -3
  73. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
  74. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +19 -16
  75. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
  76. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +19 -14
  77. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
  78. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +16 -12
  79. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  80. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +12 -9
  81. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
  82. package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +14 -12
  83. package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
  84. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -3
  85. package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  86. package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +16 -12
  87. package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
  88. package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +16 -12
  89. package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
  90. package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +18 -13
  91. package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
  92. package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +10 -7
  93. package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
  94. package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +18 -13
  95. package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
  96. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +19 -15
  97. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
  98. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +18 -15
  99. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  100. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +20 -16
  101. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
  102. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js +4 -0
  103. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -1
  104. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +39 -33
  105. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
  106. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +54 -43
  107. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  108. package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +30 -27
  109. package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
  110. package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +11 -7
  111. package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
  112. package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +17 -14
  113. package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
  114. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +23 -20
  115. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
  116. package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js +8 -7
  117. package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
  118. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js +13 -11
  119. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
  120. package/dist/commonjs/components/utility/Avatar.js +18 -15
  121. package/dist/commonjs/components/utility/Avatar.js.map +1 -1
  122. package/dist/commonjs/components/utility/ScreenShareOverlay.js +35 -29
  123. package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
  124. package/dist/commonjs/contexts/BackgroundFilters.js +5 -3
  125. package/dist/commonjs/contexts/BackgroundFilters.js.map +1 -1
  126. package/dist/commonjs/contexts/StreamVideoContext.js +6 -5
  127. package/dist/commonjs/contexts/StreamVideoContext.js.map +1 -1
  128. package/dist/commonjs/contexts/ThemeContext.js +5 -3
  129. package/dist/commonjs/contexts/ThemeContext.js.map +1 -1
  130. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +9 -2
  131. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  132. package/dist/commonjs/icons/Back.js +8 -6
  133. package/dist/commonjs/icons/Back.js.map +1 -1
  134. package/dist/commonjs/icons/CameraSwitch.js +8 -6
  135. package/dist/commonjs/icons/CameraSwitch.js.map +1 -1
  136. package/dist/commonjs/icons/EndStreamIcon.js +8 -6
  137. package/dist/commonjs/icons/EndStreamIcon.js.map +1 -1
  138. package/dist/commonjs/icons/Eye.js +8 -6
  139. package/dist/commonjs/icons/Eye.js.map +1 -1
  140. package/dist/commonjs/icons/IconWrapper.js +5 -3
  141. package/dist/commonjs/icons/IconWrapper.js.map +1 -1
  142. package/dist/commonjs/icons/LeaveStreamIcon.js +8 -6
  143. package/dist/commonjs/icons/LeaveStreamIcon.js.map +1 -1
  144. package/dist/commonjs/icons/Lock.js +8 -6
  145. package/dist/commonjs/icons/Lock.js.map +1 -1
  146. package/dist/commonjs/icons/Mic.js +8 -6
  147. package/dist/commonjs/icons/Mic.js.map +1 -1
  148. package/dist/commonjs/icons/MicOff.js +8 -6
  149. package/dist/commonjs/icons/MicOff.js.map +1 -1
  150. package/dist/commonjs/icons/Phone.js +8 -6
  151. package/dist/commonjs/icons/Phone.js.map +1 -1
  152. package/dist/commonjs/icons/PhoneDown.js +8 -6
  153. package/dist/commonjs/icons/PhoneDown.js.map +1 -1
  154. package/dist/commonjs/icons/PinVertical.js +8 -6
  155. package/dist/commonjs/icons/PinVertical.js.map +1 -1
  156. package/dist/commonjs/icons/Reaction.js +8 -6
  157. package/dist/commonjs/icons/Reaction.js.map +1 -1
  158. package/dist/commonjs/icons/ScreenShare.js +8 -6
  159. package/dist/commonjs/icons/ScreenShare.js.map +1 -1
  160. package/dist/commonjs/icons/ScreenShareIndicator.js +21 -18
  161. package/dist/commonjs/icons/ScreenShareIndicator.js.map +1 -1
  162. package/dist/commonjs/icons/Settings.js +7 -5
  163. package/dist/commonjs/icons/Settings.js.map +1 -1
  164. package/dist/commonjs/icons/ShieldBadge.js +8 -6
  165. package/dist/commonjs/icons/ShieldBadge.js.map +1 -1
  166. package/dist/commonjs/icons/Spotlight.js +10 -8
  167. package/dist/commonjs/icons/Spotlight.js.map +1 -1
  168. package/dist/commonjs/icons/StartStreamIcon.js +8 -6
  169. package/dist/commonjs/icons/StartStreamIcon.js.map +1 -1
  170. package/dist/commonjs/icons/StopScreenShare.js +11 -9
  171. package/dist/commonjs/icons/StopScreenShare.js.map +1 -1
  172. package/dist/commonjs/icons/ThreeDots.js +20 -18
  173. package/dist/commonjs/icons/ThreeDots.js.map +1 -1
  174. package/dist/commonjs/icons/TopViewBackground.js +24 -19
  175. package/dist/commonjs/icons/TopViewBackground.js.map +1 -1
  176. package/dist/commonjs/icons/Video.js +8 -6
  177. package/dist/commonjs/icons/Video.js.map +1 -1
  178. package/dist/commonjs/icons/VideoSlash.js +8 -6
  179. package/dist/commonjs/icons/VideoSlash.js.map +1 -1
  180. package/dist/commonjs/package.json +1 -0
  181. package/dist/commonjs/providers/StreamCall/index.js +5 -3
  182. package/dist/commonjs/providers/StreamCall/index.js.map +1 -1
  183. package/dist/commonjs/providers/StreamVideo.js +10 -5
  184. package/dist/commonjs/providers/StreamVideo.js.map +1 -1
  185. package/dist/commonjs/version.js +1 -1
  186. package/dist/module/components/Call/CallContent/CallContent.js +33 -21
  187. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
  188. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +5 -2
  189. package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
  190. package/dist/module/components/Call/CallContent/index.js +2 -0
  191. package/dist/module/components/Call/CallContent/index.js.map +1 -1
  192. package/dist/module/components/Call/CallControls/AcceptCallButton.js +12 -7
  193. package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  194. package/dist/module/components/Call/CallControls/CallControls.js +9 -6
  195. package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
  196. package/dist/module/components/Call/CallControls/CallControlsButton.js +13 -8
  197. package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -1
  198. package/dist/module/components/Call/CallControls/HangupCallButton.js +12 -7
  199. package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
  200. package/dist/module/components/Call/CallControls/IncomingCallControls.js +13 -10
  201. package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -1
  202. package/dist/module/components/Call/CallControls/LobbyControls.js +7 -3
  203. package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -1
  204. package/dist/module/components/Call/CallControls/OutgoingCallControls.js +14 -10
  205. package/dist/module/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
  206. package/dist/module/components/Call/CallControls/ReactionsButton.js +24 -16
  207. package/dist/module/components/Call/CallControls/ReactionsButton.js.map +1 -1
  208. package/dist/module/components/Call/CallControls/RejectCallButton.js +12 -7
  209. package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
  210. package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js +17 -12
  211. package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
  212. package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +15 -10
  213. package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
  214. package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +20 -14
  215. package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
  216. package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +19 -13
  217. package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
  218. package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +15 -10
  219. package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
  220. package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +19 -13
  221. package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
  222. package/dist/module/components/Call/CallControls/index.js +2 -0
  223. package/dist/module/components/Call/CallControls/index.js.map +1 -1
  224. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +41 -34
  225. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  226. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +12 -9
  227. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  228. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +24 -19
  229. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  230. package/dist/module/components/Call/CallLayout/index.js +2 -0
  231. package/dist/module/components/Call/CallLayout/index.js.map +1 -1
  232. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +27 -21
  233. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  234. package/dist/module/components/Call/CallParticipantsList/index.js +2 -0
  235. package/dist/module/components/Call/CallParticipantsList/index.js.map +1 -1
  236. package/dist/module/components/Call/Lobby/JoinCallButton.js +12 -8
  237. package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
  238. package/dist/module/components/Call/Lobby/Lobby.js +45 -34
  239. package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
  240. package/dist/module/components/Call/Lobby/LobbyFooter.js +23 -17
  241. package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
  242. package/dist/module/components/Call/Lobby/index.js +2 -0
  243. package/dist/module/components/Call/Lobby/index.js.map +1 -1
  244. package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js +4 -1
  245. package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
  246. package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js +4 -1
  247. package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
  248. package/dist/module/components/Call/RingingCallContent/IncomingCall.js +34 -23
  249. package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
  250. package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +37 -26
  251. package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
  252. package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +14 -9
  253. package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
  254. package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js +30 -22
  255. package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
  256. package/dist/module/components/Call/RingingCallContent/UserInfo.js +27 -22
  257. package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -1
  258. package/dist/module/components/Call/RingingCallContent/index.js +2 -0
  259. package/dist/module/components/Call/RingingCallContent/index.js.map +1 -1
  260. package/dist/module/components/Call/index.js +2 -0
  261. package/dist/module/components/Call/index.js.map +1 -1
  262. package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +33 -27
  263. package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
  264. package/dist/module/components/Livestream/HostLivestream/index.js +2 -0
  265. package/dist/module/components/Livestream/HostLivestream/index.js.map +1 -1
  266. package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +18 -13
  267. package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
  268. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +18 -13
  269. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  270. package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +21 -14
  271. package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
  272. package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js +7 -4
  273. package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
  274. package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +21 -16
  275. package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
  276. package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +21 -14
  277. package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
  278. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +18 -13
  279. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  280. package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +14 -10
  281. package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
  282. package/dist/module/components/Livestream/LivestreamControls/index.js +2 -0
  283. package/dist/module/components/Livestream/LivestreamControls/index.js.map +1 -1
  284. package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +16 -13
  285. package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
  286. package/dist/module/components/Livestream/LivestreamLayout/index.js +2 -0
  287. package/dist/module/components/Livestream/LivestreamLayout/index.js.map +1 -1
  288. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +7 -3
  289. package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
  290. package/dist/module/components/Livestream/LivestreamPlayer/index.js +2 -0
  291. package/dist/module/components/Livestream/LivestreamPlayer/index.js.map +1 -1
  292. package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +18 -13
  293. package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
  294. package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +18 -13
  295. package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
  296. package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +20 -14
  297. package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
  298. package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +12 -8
  299. package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
  300. package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +20 -14
  301. package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
  302. package/dist/module/components/Livestream/LivestreamTopView/index.js +2 -0
  303. package/dist/module/components/Livestream/LivestreamTopView/index.js.map +1 -1
  304. package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +21 -16
  305. package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
  306. package/dist/module/components/Livestream/ViewerLivestream/index.js +2 -0
  307. package/dist/module/components/Livestream/ViewerLivestream/index.js.map +1 -1
  308. package/dist/module/components/Livestream/index.js +2 -0
  309. package/dist/module/components/Livestream/index.js.map +1 -1
  310. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +20 -15
  311. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
  312. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +22 -16
  313. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
  314. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js +6 -0
  315. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -1
  316. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js +2 -0
  317. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -1
  318. package/dist/module/components/Participant/FloatingParticipantView/index.js +41 -34
  319. package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
  320. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +56 -44
  321. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  322. package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +32 -28
  323. package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
  324. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +13 -8
  325. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
  326. package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +19 -15
  327. package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
  328. package/dist/module/components/Participant/ParticipantView/ParticipantView.js +25 -21
  329. package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
  330. package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +10 -8
  331. package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
  332. package/dist/module/components/Participant/ParticipantView/VideoRenderer.js +15 -11
  333. package/dist/module/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
  334. package/dist/module/components/Participant/ParticipantView/index.js +2 -0
  335. package/dist/module/components/Participant/ParticipantView/index.js.map +1 -1
  336. package/dist/module/components/Participant/index.js +2 -0
  337. package/dist/module/components/Participant/index.js.map +1 -1
  338. package/dist/module/components/index.js +2 -0
  339. package/dist/module/components/index.js.map +1 -1
  340. package/dist/module/components/utility/Avatar.js +20 -16
  341. package/dist/module/components/utility/Avatar.js.map +1 -1
  342. package/dist/module/components/utility/ScreenShareOverlay.js +37 -30
  343. package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
  344. package/dist/module/components/utility/index.js +2 -0
  345. package/dist/module/components/utility/index.js.map +1 -1
  346. package/dist/module/constants/TestIds.js +2 -0
  347. package/dist/module/constants/TestIds.js.map +1 -1
  348. package/dist/module/constants/index.js +2 -0
  349. package/dist/module/constants/index.js.map +1 -1
  350. package/dist/module/contexts/BackgroundFilters.js +7 -3
  351. package/dist/module/contexts/BackgroundFilters.js.map +1 -1
  352. package/dist/module/contexts/StreamVideoContext.js +7 -3
  353. package/dist/module/contexts/StreamVideoContext.js.map +1 -1
  354. package/dist/module/contexts/ThemeContext.js +7 -3
  355. package/dist/module/contexts/ThemeContext.js.map +1 -1
  356. package/dist/module/contexts/index.js +2 -0
  357. package/dist/module/contexts/index.js.map +1 -1
  358. package/dist/module/hooks/index.js +2 -0
  359. package/dist/module/hooks/index.js.map +1 -1
  360. package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +2 -0
  361. package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
  362. package/dist/module/hooks/push/index.js +2 -0
  363. package/dist/module/hooks/push/index.js.map +1 -1
  364. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +2 -0
  365. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
  366. package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js +2 -0
  367. package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -1
  368. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +2 -0
  369. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
  370. package/dist/module/hooks/push/useIosInitRemoteNotifications.js +2 -0
  371. package/dist/module/hooks/push/useIosInitRemoteNotifications.js.map +1 -1
  372. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +11 -2
  373. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
  374. package/dist/module/hooks/push/useProcessPushCallEffect.js +2 -0
  375. package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
  376. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +2 -0
  377. package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
  378. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +2 -0
  379. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  380. package/dist/module/hooks/useApplyDefaultMediaStreamSettings.js +2 -0
  381. package/dist/module/hooks/useApplyDefaultMediaStreamSettings.js.map +1 -1
  382. package/dist/module/hooks/useAutoEnterPiPEffect.js +2 -0
  383. package/dist/module/hooks/useAutoEnterPiPEffect.js.map +1 -1
  384. package/dist/module/hooks/useIsInPiPMode.js +2 -0
  385. package/dist/module/hooks/useIsInPiPMode.js.map +1 -1
  386. package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js +2 -0
  387. package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js.map +1 -1
  388. package/dist/module/hooks/usePaginatedLayoutSortPreset.js +2 -0
  389. package/dist/module/hooks/usePaginatedLayoutSortPreset.js.map +1 -1
  390. package/dist/module/hooks/usePermissionNotification.js +2 -0
  391. package/dist/module/hooks/usePermissionNotification.js.map +1 -1
  392. package/dist/module/hooks/usePermissionRequest.js +2 -0
  393. package/dist/module/hooks/usePermissionRequest.js.map +1 -1
  394. package/dist/module/hooks/useScreenShareButton.js +2 -0
  395. package/dist/module/hooks/useScreenShareButton.js.map +1 -1
  396. package/dist/module/hooks/useTrackDimensions.js +2 -0
  397. package/dist/module/hooks/useTrackDimensions.js.map +1 -1
  398. package/dist/module/icons/Back.js +10 -6
  399. package/dist/module/icons/Back.js.map +1 -1
  400. package/dist/module/icons/CameraSwitch.js +10 -6
  401. package/dist/module/icons/CameraSwitch.js.map +1 -1
  402. package/dist/module/icons/EndStreamIcon.js +10 -6
  403. package/dist/module/icons/EndStreamIcon.js.map +1 -1
  404. package/dist/module/icons/Eye.js +10 -6
  405. package/dist/module/icons/Eye.js.map +1 -1
  406. package/dist/module/icons/IconWrapper.js +7 -3
  407. package/dist/module/icons/IconWrapper.js.map +1 -1
  408. package/dist/module/icons/LeaveStreamIcon.js +10 -6
  409. package/dist/module/icons/LeaveStreamIcon.js.map +1 -1
  410. package/dist/module/icons/Lock.js +10 -6
  411. package/dist/module/icons/Lock.js.map +1 -1
  412. package/dist/module/icons/Mic.js +10 -6
  413. package/dist/module/icons/Mic.js.map +1 -1
  414. package/dist/module/icons/MicOff.js +10 -6
  415. package/dist/module/icons/MicOff.js.map +1 -1
  416. package/dist/module/icons/Phone.js +10 -6
  417. package/dist/module/icons/Phone.js.map +1 -1
  418. package/dist/module/icons/PhoneDown.js +10 -6
  419. package/dist/module/icons/PhoneDown.js.map +1 -1
  420. package/dist/module/icons/PinVertical.js +10 -6
  421. package/dist/module/icons/PinVertical.js.map +1 -1
  422. package/dist/module/icons/Reaction.js +10 -6
  423. package/dist/module/icons/Reaction.js.map +1 -1
  424. package/dist/module/icons/ScreenShare.js +10 -6
  425. package/dist/module/icons/ScreenShare.js.map +1 -1
  426. package/dist/module/icons/ScreenShareIndicator.js +23 -18
  427. package/dist/module/icons/ScreenShareIndicator.js.map +1 -1
  428. package/dist/module/icons/Settings.js +9 -5
  429. package/dist/module/icons/Settings.js.map +1 -1
  430. package/dist/module/icons/ShieldBadge.js +10 -6
  431. package/dist/module/icons/ShieldBadge.js.map +1 -1
  432. package/dist/module/icons/Spotlight.js +12 -8
  433. package/dist/module/icons/Spotlight.js.map +1 -1
  434. package/dist/module/icons/StartStreamIcon.js +10 -6
  435. package/dist/module/icons/StartStreamIcon.js.map +1 -1
  436. package/dist/module/icons/StopScreenShare.js +13 -9
  437. package/dist/module/icons/StopScreenShare.js.map +1 -1
  438. package/dist/module/icons/ThreeDots.js +22 -18
  439. package/dist/module/icons/ThreeDots.js.map +1 -1
  440. package/dist/module/icons/TopViewBackground.js +26 -19
  441. package/dist/module/icons/TopViewBackground.js.map +1 -1
  442. package/dist/module/icons/Video.js +10 -6
  443. package/dist/module/icons/Video.js.map +1 -1
  444. package/dist/module/icons/VideoSlash.js +10 -6
  445. package/dist/module/icons/VideoSlash.js.map +1 -1
  446. package/dist/module/icons/index.js +2 -0
  447. package/dist/module/icons/index.js.map +1 -1
  448. package/dist/module/index.js +2 -0
  449. package/dist/module/index.js.map +1 -1
  450. package/dist/module/package.json +1 -0
  451. package/dist/module/providers/StreamCall/AppStateListener.js +2 -0
  452. package/dist/module/providers/StreamCall/AppStateListener.js.map +1 -1
  453. package/dist/module/providers/StreamCall/DeviceStats.js +2 -0
  454. package/dist/module/providers/StreamCall/DeviceStats.js.map +1 -1
  455. package/dist/module/providers/StreamCall/index.js +7 -4
  456. package/dist/module/providers/StreamCall/index.js.map +1 -1
  457. package/dist/module/providers/StreamVideo.js +12 -5
  458. package/dist/module/providers/StreamVideo.js.map +1 -1
  459. package/dist/module/theme/colors.js +2 -0
  460. package/dist/module/theme/colors.js.map +1 -1
  461. package/dist/module/theme/constants.js +2 -0
  462. package/dist/module/theme/constants.js.map +1 -1
  463. package/dist/module/theme/index.js +2 -0
  464. package/dist/module/theme/index.js.map +1 -1
  465. package/dist/module/theme/theme.js +2 -0
  466. package/dist/module/theme/theme.js.map +1 -1
  467. package/dist/module/theme/types.js +2 -0
  468. package/dist/module/translations/index.js +2 -0
  469. package/dist/module/translations/index.js.map +1 -1
  470. package/dist/module/utils/StreamVideoRN/index.js +2 -0
  471. package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
  472. package/dist/module/utils/StreamVideoRN/types.js +2 -0
  473. package/dist/module/utils/enterPiPAndroid.js +2 -0
  474. package/dist/module/utils/enterPiPAndroid.js.map +1 -1
  475. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +2 -0
  476. package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
  477. package/dist/module/utils/hooks/index.js +2 -0
  478. package/dist/module/utils/hooks/index.js.map +1 -1
  479. package/dist/module/utils/hooks/useDebouncedValue.js +2 -0
  480. package/dist/module/utils/hooks/useDebouncedValue.js.map +1 -1
  481. package/dist/module/utils/hooks/usePrevious.js +2 -0
  482. package/dist/module/utils/hooks/usePrevious.js.map +1 -1
  483. package/dist/module/utils/index.js +2 -0
  484. package/dist/module/utils/index.js.map +1 -1
  485. package/dist/module/utils/internal/newNotificationCallbacks.js +2 -0
  486. package/dist/module/utils/internal/newNotificationCallbacks.js.map +1 -1
  487. package/dist/module/utils/internal/optionallibs/gestureHandler.js +2 -0
  488. package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -1
  489. package/dist/module/utils/internal/optionallibs/index.js +2 -0
  490. package/dist/module/utils/internal/optionallibs/index.js.map +1 -1
  491. package/dist/module/utils/internal/optionallibs/reanimated.js +2 -0
  492. package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -1
  493. package/dist/module/utils/internal/pushLogoutCallback.js +2 -0
  494. package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
  495. package/dist/module/utils/internal/rxSubjects.js +2 -0
  496. package/dist/module/utils/internal/rxSubjects.js.map +1 -1
  497. package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js +2 -0
  498. package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js.map +1 -1
  499. package/dist/module/utils/push/android.js +2 -0
  500. package/dist/module/utils/push/android.js.map +1 -1
  501. package/dist/module/utils/push/index.js +2 -0
  502. package/dist/module/utils/push/index.js.map +1 -1
  503. package/dist/module/utils/push/internal/rxSubjects.js +2 -0
  504. package/dist/module/utils/push/internal/rxSubjects.js.map +1 -1
  505. package/dist/module/utils/push/internal/utils.js +2 -0
  506. package/dist/module/utils/push/internal/utils.js.map +1 -1
  507. package/dist/module/utils/push/ios.js +2 -0
  508. package/dist/module/utils/push/ios.js.map +1 -1
  509. package/dist/module/utils/push/libs/callkeep.js +2 -0
  510. package/dist/module/utils/push/libs/callkeep.js.map +1 -1
  511. package/dist/module/utils/push/libs/expoNotifications.js +2 -0
  512. package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
  513. package/dist/module/utils/push/libs/firebaseMessaging/index.js +2 -0
  514. package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
  515. package/dist/module/utils/push/libs/firebaseMessaging/lib.js +2 -0
  516. package/dist/module/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
  517. package/dist/module/utils/push/libs/index.js +2 -0
  518. package/dist/module/utils/push/libs/index.js.map +1 -1
  519. package/dist/module/utils/push/libs/iosPushNotification.js +2 -0
  520. package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -1
  521. package/dist/module/utils/push/libs/notifee/index.js +2 -0
  522. package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
  523. package/dist/module/utils/push/libs/notifee/lib.js +2 -0
  524. package/dist/module/utils/push/libs/notifee/lib.js.map +1 -1
  525. package/dist/module/utils/push/libs/voipPushNotification.js +2 -0
  526. package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -1
  527. package/dist/module/utils/push/utils.js +2 -0
  528. package/dist/module/utils/push/utils.js.map +1 -1
  529. package/dist/module/utils/setClientDetails.js +2 -0
  530. package/dist/module/utils/setClientDetails.js.map +1 -1
  531. package/dist/module/version.js +3 -1
  532. package/dist/module/version.js.map +1 -1
  533. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
  534. package/dist/typescript/version.d.ts +1 -1
  535. package/package.json +8 -8
  536. package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +23 -2
  537. package/src/version.ts +1 -1
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import React, { useRef } from 'react';
2
4
  import { Platform } from 'react-native';
3
5
  import { ScreenCapturePickerView } from '@stream-io/react-native-webrtc';
@@ -11,7 +13,7 @@ import { IconWrapper } from '../../../icons';
11
13
  /**
12
14
  * The props for the Screen Share button in the Call Controls.
13
15
  */
14
-
16
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
17
  /**
16
18
  * Button to start/stop screen share.
17
19
  * Note: This button is enabled only on iOS >= 14.0 and any Android version.
@@ -33,21 +35,24 @@ export const ScreenShareToggleButton = ({
33
35
  hasPublishedScreenShare
34
36
  } = useScreenShareButton(screenCapturePickerViewiOSRef, onScreenShareStartedHandler, onScreenShareStoppedHandler);
35
37
  if (!onPress) return null;
36
- return /*#__PURE__*/React.createElement(CallControlsButton, {
38
+ return /*#__PURE__*/_jsxs(CallControlsButton, {
37
39
  onPress: onPress,
38
40
  color: hasPublishedScreenShare ? colors.buttonWarning : colors.buttonSecondary,
39
41
  style: {
40
42
  container: screenShareToggleButton.container,
41
43
  svgContainer: screenShareToggleButton.svgContainer
42
- }
43
- }, /*#__PURE__*/React.createElement(IconWrapper, null, hasPublishedScreenShare ? /*#__PURE__*/React.createElement(StopScreenShare, {
44
- size: variants.iconSizes.md,
45
- color: colors.iconPrimary
46
- }) : /*#__PURE__*/React.createElement(ScreenShare, {
47
- size: variants.iconSizes.md,
48
- color: colors.iconPrimary
49
- })), Platform.OS === 'ios' && /*#__PURE__*/React.createElement(ScreenCapturePickerView, {
50
- ref: screenCapturePickerViewiOSRef
51
- }));
44
+ },
45
+ children: [/*#__PURE__*/_jsx(IconWrapper, {
46
+ children: hasPublishedScreenShare ? /*#__PURE__*/_jsx(StopScreenShare, {
47
+ size: variants.iconSizes.md,
48
+ color: colors.iconPrimary
49
+ }) : /*#__PURE__*/_jsx(ScreenShare, {
50
+ size: variants.iconSizes.md,
51
+ color: colors.iconPrimary
52
+ })
53
+ }), Platform.OS === 'ios' && /*#__PURE__*/_jsx(ScreenCapturePickerView, {
54
+ ref: screenCapturePickerViewiOSRef
55
+ })]
56
+ });
52
57
  };
53
58
  //# sourceMappingURL=ScreenShareToggleButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useRef","Platform","ScreenCapturePickerView","ScreenShare","StopScreenShare","CallControlsButton","useTheme","useScreenShareButton","IconWrapper","ScreenShareToggleButton","onScreenShareStartedHandler","onScreenShareStoppedHandler","theme","colors","screenShareToggleButton","variants","screenCapturePickerViewiOSRef","onPress","hasPublishedScreenShare","createElement","color","buttonWarning","buttonSecondary","style","container","svgContainer","size","iconSizes","md","iconPrimary","OS","ref"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ScreenShareToggleButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,uBAAuB,QAAQ,gCAAgC;AACxE,SAASC,WAAW,QAAQ,4BAA4B;AACxD,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,SAASC,WAAW,QAAQ,gBAAgB;;AAE5C;AACA;AACA;;AAcA;AACA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAGA,CAAC;EACtCC,2BAA2B;EAC3BC;AAC4B,CAAC,KAAK;EAClC,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,uBAAuB;MAAEC;IAAS;EACrD,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAEd,MAAMU,6BAA6B,GAAGhB,MAAM,CAAC,IAAI,CAAC;EAElD,MAAM;IAAEiB,OAAO;IAAEC;EAAwB,CAAC,GAAGX,oBAAoB,CAC/DS,6BAA6B,EAC7BN,2BAA2B,EAC3BC,2BACF,CAAC;EAED,IAAI,CAACM,OAAO,EAAE,OAAO,IAAI;EAEzB,oBACElB,KAAA,CAAAoB,aAAA,CAACd,kBAAkB;IACjBY,OAAO,EAAEA,OAAQ;IACjBG,KAAK,EACHF,uBAAuB,GAAGL,MAAM,CAACQ,aAAa,GAAGR,MAAM,CAACS,eACzD;IACDC,KAAK,EAAE;MACLC,SAAS,EAAEV,uBAAuB,CAACU,SAAS;MAC5CC,YAAY,EAAEX,uBAAuB,CAACW;IACxC;EAAE,gBAEF1B,KAAA,CAAAoB,aAAA,CAACX,WAAW,QACTU,uBAAuB,gBACtBnB,KAAA,CAAAoB,aAAA,CAACf,eAAe;IACdsB,IAAI,EAAEX,QAAQ,CAACY,SAAS,CAACC,EAAG;IAC5BR,KAAK,EAAEP,MAAM,CAACgB;EAAY,CAC3B,CAAC,gBAEF9B,KAAA,CAAAoB,aAAA,CAAChB,WAAW;IACVuB,IAAI,EAAEX,QAAQ,CAACY,SAAS,CAACC,EAAG;IAC5BR,KAAK,EAAEP,MAAM,CAACgB;EAAY,CAC3B,CAEQ,CAAC,EACb5B,QAAQ,CAAC6B,EAAE,KAAK,KAAK,iBACpB/B,KAAA,CAAAoB,aAAA,CAACjB,uBAAuB;IAAC6B,GAAG,EAAEf;EAA8B,CAAE,CAE9C,CAAC;AAEzB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useRef","Platform","ScreenCapturePickerView","ScreenShare","StopScreenShare","CallControlsButton","useTheme","useScreenShareButton","IconWrapper","jsx","_jsx","jsxs","_jsxs","ScreenShareToggleButton","onScreenShareStartedHandler","onScreenShareStoppedHandler","theme","colors","screenShareToggleButton","variants","screenCapturePickerViewiOSRef","onPress","hasPublishedScreenShare","color","buttonWarning","buttonSecondary","style","container","svgContainer","children","size","iconSizes","md","iconPrimary","OS","ref"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ScreenShareToggleButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,uBAAuB,QAAQ,gCAAgC;AACxE,SAASC,WAAW,QAAQ,4BAA4B;AACxD,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,S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AK,iBACpBxB,IAAA,CAACR,uBAAuB;MAACiC,GAAG,EAAEf;IAA8B,CAAE,CAC/D;EAAA,CACiB,CAAC;AAEzB,CAAC","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import { useCallStateHooks } from '@stream-io/video-react-bindings';
2
4
  import React from 'react';
3
5
  import { useTheme } from '../../../contexts';
@@ -7,7 +9,7 @@ import { CallControlsButton } from './CallControlsButton';
7
9
  /**
8
10
  * Props for the Toggle Audio preview button
9
11
  */
10
-
12
+ import { jsx as _jsx } from "react/jsx-runtime";
11
13
  /**
12
14
  * Button to toggle audio mute/unmute status before joining the call.
13
15
  */
@@ -38,20 +40,23 @@ export const ToggleAudioPreviewButton = ({
38
40
  }
39
41
  await microphone.toggle();
40
42
  };
41
- return /*#__PURE__*/React.createElement(CallControlsButton, {
43
+ return /*#__PURE__*/_jsx(CallControlsButton, {
42
44
  onPress: onPress,
43
45
  color: !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning,
44
46
  size: buttonSizes.md,
45
47
  style: {
46
48
  container: toggleAudioPreviewButton.container,
47
49
  svgContainer: toggleAudioPreviewButton.svgContainer
48
- }
49
- }, /*#__PURE__*/React.createElement(IconWrapper, null, !optimisticIsMute ? /*#__PURE__*/React.createElement(Mic, {
50
- color: colors.iconPrimary,
51
- size: defaults.iconSize
52
- }) : /*#__PURE__*/React.createElement(MicOff, {
53
- color: colors.iconPrimary,
54
- size: defaults.iconSize
55
- })));
50
+ },
51
+ children: /*#__PURE__*/_jsx(IconWrapper, {
52
+ children: !optimisticIsMute ? /*#__PURE__*/_jsx(Mic, {
53
+ color: colors.iconPrimary,
54
+ size: defaults.iconSize
55
+ }) : /*#__PURE__*/_jsx(MicOff, {
56
+ color: colors.iconPrimary,
57
+ size: defaults.iconSize
58
+ })
59
+ })
60
+ });
56
61
  };
57
62
  //# sourceMappingURL=ToggleAudioPreviewButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useCallStateHooks","React","useTheme","IconWrapper","Mic","MicOff","CallControlsButton","ToggleAudioPreviewButton","onPressHandler","theme","colors","toggleAudioPreviewButton","variants","buttonSizes","defaults","useMicrophoneState","optimisticIsMute","microphone","onPress","toggle","createElement","color","buttonSecondary","buttonWarning","size","md","style","container","svgContainer","iconPrimary","iconSize"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleAudioPreviewButton.tsx"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,iCAAiC;AACnE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,WAAW,EAAEC,GAAG,EAAEC,MAAM,QAAQ,gBAAgB;AACzD,SAASC,kBAAkB,QAAQ,sBAAsB;;AAEzD;AACA;AACA;;AASA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGA,CAAC;EACvCC;AAC6B,CAAC,KAAK;EACnC,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,wBAAwB;MACxBC,QAAQ,EAAE;QAAEC;MAAY,CAAC;MACzBC;IACF;EACF,CAAC,GAAGZ,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEa;EAAmB,CAAC,GAAGf,iBAAiB,CAAC,CAAC;EAClD,MAAM;IAAEgB,gBAAgB;IAAEC;EAAW,CAAC,GAAGF,kBAAkB,CAAC,CAAC;EAE7D,MAAMG,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIV,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IACA,MAAMS,UAAU,CAACE,MAAM,CAAC,CAAC;EAC3B,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAACd,kBAAkB;IACjBY,OAAO,EAAEA,OAAQ;IACjBG,KAAK,EAAE,CAACL,gBAAgB,GAAGN,MAAM,CAACY,eAAe,GAAGZ,MAAM,CAACa,aAAc;IACzEC,IAAI,EAAEX,WAAW,CAACY,EAAG;IACrBC,KAAK,EAAE;MACLC,SAAS,EAAEhB,wBAAwB,CAACgB,SAAS;MAC7CC,YAAY,EAAEjB,wBAAwB,CAACiB;IACzC;EAAE,gBAEF3B,KAAA,CAAAmB,aAAA,CAACjB,WAAW,QACT,CAACa,gBAAgB,gBAChBf,KAAA,CAAAmB,aAAA,CAAChB,GAAG;IAACiB,KAAK,EAAEX,MAAM,CAACmB,WAAY;IAACL,IAAI,EAAEV,QAAQ,CAACgB;EAAS,CAAE,CAAC,gBAE3D7B,KAAA,CAAAmB,aAAA,CAACf,MAAM;IAACgB,KAAK,EAAEX,MAAM,CAACmB,WAAY;IAACL,IAAI,EAAEV,QAAQ,CAACgB;EAAS,CAAE,CAEpD,CACK,CAAC;AAEzB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useCallStateHooks","React","useTheme","IconWrapper","Mic","MicOff","CallControlsButton","jsx","_jsx","ToggleAudioPreviewButton","onPressHandler","theme","colors","toggleAudioPreviewButton","variants","buttonSizes","defaults","useMicrophoneState","optimisticIsMute","microphone","onPress","toggle","color","buttonSecondary","buttonWarning","size","md","style","container","svgContainer","children","iconPrimary","iconSize"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleAudioPreviewButton.tsx"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,iCAAiC;AACnE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,WAAW,EAAEC,GAAG,EAAEC,MAAM,QAAQ,gBAAgB;AACzD,SAASC,kBAAkB,QAAQ,sBAAsB;;AAEzD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAWA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGA,CAAC;EACvCC;AAC6B,CAAC,KAAK;EACnC,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,wBAAwB;MACxBC,QAAQ,EAAE;QAAEC;MAAY,CAAC;MACzBC;IACF;EACF,CAAC,GAAGd,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEe;EAAmB,CAAC,GAAGjB,iBAAiB,CAAC,CAAC;EAClD,MAAM;IAAEkB,gBAAgB;IAAEC;EAAW,CAAC,GAAGF,kBAAkB,CAAC,CAAC;EAE7D,MAAMG,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIV,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IACA,MAAMS,UAAU,CAACE,MAAM,CAAC,CAAC;EAC3B,CAAC;EAED,oBACEb,IAAA,CAACF,kBAAkB;IACjBc,OAAO,EAAEA,OAAQ;IACjBE,KAAK,EAAE,CAACJ,gBAAgB,GAAGN,MAAM,CAACW,eAAe,GAAGX,MAAM,CAACY,aAAc;IACzEC,IAAI,EAAEV,WAAW,CAACW,EAAG;IACrBC,KAAK,EAAE;MACLC,SAAS,EAAEf,wBAAwB,CAACe,SAAS;MAC7CC,YAAY,EAAEhB,wBAAwB,CAACgB;IACzC,CAAE;IAAAC,QAAA,eAEFtB,IAAA,CAACL,WAAW;MAAA2B,QAAA,EACT,CAACZ,gBAAgB,gBAChBV,IAAA,CAACJ,GAAG;QAACkB,KAAK,EAAEV,MAAM,CAACmB,WAAY;QAACN,IAAI,EAAET,QAAQ,CAACgB;MAAS,CAAE,CAAC,gBAE3DxB,IAAA,CAACH,MAAM;QAACiB,KAAK,EAAEV,MAAM,CAACmB,WAAY;QAACN,IAAI,EAAET,QAAQ,CAACgB;MAAS,CAAE;IAC9D,CACU;EAAC,CACI,CAAC;AAEzB,CAAC","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import React from 'react';
2
4
  import { OwnCapability } from '@stream-io/video-client';
3
5
  import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
@@ -8,7 +10,7 @@ import { useTheme } from '../../../contexts/ThemeContext';
8
10
  /**
9
11
  * Props for the Toggle Audio publishing button
10
12
  */
11
-
13
+ import { jsx as _jsx } from "react/jsx-runtime";
12
14
  /**
13
15
  * Button to toggle audio mute/unmute status while in the call.
14
16
  */
@@ -36,18 +38,22 @@ export const ToggleAudioPublishingButton = ({
36
38
  }
37
39
  await microphone.toggle();
38
40
  };
39
- return /*#__PURE__*/React.createElement(Restricted, {
40
- requiredGrants: [OwnCapability.SEND_AUDIO]
41
- }, /*#__PURE__*/React.createElement(CallControlsButton, {
42
- onPress: onPress,
43
- color: !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning,
44
- style: toggleAudioPublishingButton
45
- }, /*#__PURE__*/React.createElement(IconWrapper, null, !optimisticIsMute ? /*#__PURE__*/React.createElement(Mic, {
46
- color: colors.iconPrimary,
47
- size: defaults.iconSize
48
- }) : /*#__PURE__*/React.createElement(MicOff, {
49
- color: colors.iconPrimary,
50
- size: defaults.iconSize
51
- }))));
41
+ return /*#__PURE__*/_jsx(Restricted, {
42
+ requiredGrants: [OwnCapability.SEND_AUDIO],
43
+ children: /*#__PURE__*/_jsx(CallControlsButton, {
44
+ onPress: onPress,
45
+ color: !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning,
46
+ style: toggleAudioPublishingButton,
47
+ children: /*#__PURE__*/_jsx(IconWrapper, {
48
+ children: !optimisticIsMute ? /*#__PURE__*/_jsx(Mic, {
49
+ color: colors.iconPrimary,
50
+ size: defaults.iconSize
51
+ }) : /*#__PURE__*/_jsx(MicOff, {
52
+ color: colors.iconPrimary,
53
+ size: defaults.iconSize
54
+ })
55
+ })
56
+ })
57
+ });
52
58
  };
53
59
  //# sourceMappingURL=ToggleAudioPublishingButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","OwnCapability","Restricted","useCallStateHooks","CallControlsButton","IconWrapper","Mic","MicOff","useTheme","ToggleAudioPublishingButton","onPressHandler","useMicrophoneState","optimisticIsMute","microphone","theme","colors","toggleAudioPublishingButton","defaults","onPress","toggle","createElement","requiredGrants","SEND_AUDIO","color","buttonSecondary","buttonWarning","style","iconPrimary","size","iconSize"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContro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Q,CAACY;EAAS,CAAE,CAAC,gBAE3D7B,KAAA,CAAAoB,aAAA,CAACb,MAAM;IAACgB,KAAK,EAAER,MAAM,CAACY,WAAY;IAACC,IAAI,EAAEX,QAAQ,CAACY;EAAS,CAAE,CAEpD,CACK,CACV,CAAC;AAEjB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","OwnCapability","Restricted","useCallStateHooks","CallControlsButton","IconWrapper","Mic","MicOff","useTheme","jsx","_jsx","ToggleAudioPublishingButton","onPressHandler","useMicrophoneState","optimisticIsMute","microphone","theme","colors","toggleAudioPublishingButton","defaults","onPress","toggle","requiredGrants","SEND_AUDIO","children","color","buttonSecondary","buttonWarning","style","iconPrimary","size","iconSize"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleAudioPublishingButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,UAAU,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC/E,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,WAAW,EAAEC,GAAG,EAAEC,MAAM,QAAQ,gBAAgB;AACzD,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAWA;AACA;AACA;AACA,OAAO,MAAMC,2BAA2B,GAAGA,CAAC;EAC1CC;AACgC,CAAC,KAAK;EACtC,MAAM;IAAEC;EAAmB,CAAC,GAAGV,iBAAiB,CAAC,CAAC;EAClD,MAAM;IAAEW,gBAAgB;IAAEC;EAAW,CAAC,GAAGF,kBAAkB,CAAC,CAAC;EAE7D,MAAM;IACJG,KAAK,EAAE;MAAEC,MAAM;MAAEC,2BAA2B;MAAEC;IAAS;EACzD,CAAC,GAAGX,QAAQ,CAAC,CAAC;EACd,MAAMY,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIR,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IAEA,MAAMG,UAAU,CAACM,MAAM,CAAC,CAAC;EAC3B,CAAC;EAED,oBACEX,IAAA,CAACR,UAAU;IAACoB,cAAc,EAAE,CAACrB,aAAa,CAACsB,UAAU,CAAE;IAAAC,QAAA,eACrDd,IAAA,CAACN,kBAAkB;MACjBgB,OAAO,EAAEA,OAAQ;MACjBK,KAAK,EACH,CAACX,gBAAgB,GAAGG,MAAM,CAACS,eAAe,GAAGT,MAAM,CAACU,aACrD;MACDC,KAAK,EAAEV,2BAA4B;MAAAM,QAAA,eAEnCd,IAAA,CAACL,WAAW;QAAAmB,QAAA,EACT,CAACV,gBAAgB,gBAChBJ,IAAA,CAACJ,GAAG;UAACmB,KAAK,EAAER,MAAM,CAACY,WAAY;UAACC,IAAI,EAAEX,QAAQ,CAACY;QAAS,CAAE,CAAC,gBAE3DrB,IAAA,CAACH,MAAM;UAACkB,KAAK,EAAER,MAAM,CAACY,WAAY;UAACC,IAAI,EAAEX,QAAQ,CAACY;QAAS,CAAE;MAC9D,CACU;IAAC,CACI;EAAC,CACX,CAAC;AAEjB,CAAC","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import { OwnCapability } from '@stream-io/video-client';
2
4
  import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
3
5
  import React from 'react';
@@ -8,7 +10,7 @@ import { useTheme } from '../../../contexts/ThemeContext';
8
10
  /**
9
11
  * Props for the Toggle Camera face button.
10
12
  */
11
-
13
+ import { jsx as _jsx } from "react/jsx-runtime";
12
14
  /**
13
15
  * Button to toggle camera face(front/back) when in the call.
14
16
  */
@@ -44,17 +46,21 @@ export const ToggleCameraFaceButton = ({
44
46
  if (!isVideoEnabledInCall) {
45
47
  return;
46
48
  }
47
- return /*#__PURE__*/React.createElement(Restricted, {
48
- requiredGrants: [OwnCapability.SEND_VIDEO]
49
- }, /*#__PURE__*/React.createElement(CallControlsButton, {
50
- onPress: onPress,
51
- color: backgroundColor || colors.buttonSecondary,
52
- disabledColor: backgroundColor || colors.sheetSecondary,
53
- disabled: optimisticIsMute,
54
- style: toggleCameraFaceButton
55
- }, /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement(CameraSwitch, {
56
- size: variants.iconSizes.md,
57
- color: optimisticIsMute ? colors.buttonDisabled : direction === 'front' || direction === undefined ? colors.iconPrimary : colors.buttonPrimary
58
- }))));
49
+ return /*#__PURE__*/_jsx(Restricted, {
50
+ requiredGrants: [OwnCapability.SEND_VIDEO],
51
+ children: /*#__PURE__*/_jsx(CallControlsButton, {
52
+ onPress: onPress,
53
+ color: backgroundColor || colors.buttonSecondary,
54
+ disabledColor: backgroundColor || colors.sheetSecondary,
55
+ disabled: optimisticIsMute,
56
+ style: toggleCameraFaceButton,
57
+ children: /*#__PURE__*/_jsx(IconWrapper, {
58
+ children: /*#__PURE__*/_jsx(CameraSwitch, {
59
+ size: variants.iconSizes.md,
60
+ color: optimisticIsMute ? colors.buttonDisabled : direction === 'front' || direction === undefined ? colors.iconPrimary : colors.buttonPrimary
61
+ })
62
+ })
63
+ })
64
+ });
59
65
  };
60
66
  //# sourceMappingURL=ToggleCameraFaceButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["OwnCapability","Restricted","useCallStateHooks","React","CallControlsButton","CameraSwitch","IconWrapper","useTheme","ToggleCameraFaceButton","onPressHandler","backgroundColor","useCameraState","useCallSettings","camera","optimisticIsMute","direction","callSettings","isVideoEnabledInCall","video","enabled","theme","colors","toggleCameraFaceButton","variants","onPress","flip","createElement","requiredGrants","SEND_VIDEO","color","buttonSecondary","disabledColor","sheetSecondary","disabled","style","size","iconSizes","md","buttonDisabled","undefined","iconPrimary","buttonPrimary"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleCameraFaceButton.tsx"],"mappings":"AAAA,SAASA,aAAa,QAAQ,yBAAyB;AACvD,SAASC,UAAU,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC/E,OAAOC,KAAK,MAAM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B,aAAA,CAACrB,YAAY;IACX8B,IAAI,EAAEZ,QAAQ,CAACa,SAAS,CAACC,EAAG;IAC5BR,KAAK,EACHf,gBAAgB,GACZO,MAAM,CAACiB,cAAc,GACrBvB,SAAS,KAAK,OAAO,IAAIA,SAAS,KAAKwB,SAAS,GAC9ClB,MAAM,CAACmB,WAAW,GAClBnB,MAAM,CAACoB;EACd,CACF,CACU,CACK,CACV,CAAC;AAEjB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["OwnCapability","Restricted","useCallStateHooks","React","CallControlsButton","CameraSwitch","IconWrapper","useTheme","jsx","_jsx","ToggleCameraFaceButton","onPressHandler","backgroundColor","useCameraState","useCallSettings","camera","optimisticIsMute","direction","callSettings","isVideoEnabledInCall","video","enabled","theme","colors","toggleCameraFaceButton","variants","onPress","flip","requiredGrants","SEND_VIDEO","children","color","buttonSecondary","disabledColor","sheetSecondary","disabled","style","size","iconSizes","md","buttonDisabled","undefined","iconPrimary","buttonPrimary"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleCameraFaceButton.tsx"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,yBAAyB;AACvD,SAASC,UAAU,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC/E,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,YAAY,EAAEC,WAAW,QAAQ,gBAAgB;AAC1D,SAASC,QAAQ,QAAQ,gCAAgC;;AAGzD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAgBA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAAGA,CAAC;EACrCC,cAAc;EACdC;AAC2B,CAAC,KAAK;EACjC,MAAM;IAAEC,cAAc;IAAEC;EAAgB,CAAC,GAAGZ,iBAAiB,CAAC,CAAC;EAC/D,MAAM;IAAEa,MAAM;IAAEC,gBAAgB;IAAEC;EAAU,CAAC,GAAGJ,cAAc,CAAC,CAAC;EAChE,MAAMK,YAAY,GAAGJ,eAAe,CAAC,CAAC;EACtC,MAAMK,oBAAoB,GAAGD,YAAY,EAAEE,KAAK,CAACC,OAAO;EAExD,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,sBAAsB;MAAEC;IAAS;EACpD,CAAC,GAAGlB,QAAQ,CAAC,CAAC;EACd,MAAMmB,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIf,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IAEA,MAAMI,MAAM,CAACY,IAAI,CAAC,CAAC;EACrB,CAAC;EAED,IAAI,CAACR,oBAAoB,EAAE;IACzB;EACF;EAEA,oBACEV,IAAA,CAACR,UAAU;IAAC2B,cAAc,EAAE,CAAC5B,aAAa,CAAC6B,UAAU,CAAE;IAAAC,QAAA,eACrDrB,IAAA,CAACL,kBAAkB;MACjBsB,OAAO,EAAEA,OAAQ;MACjBK,KAAK,EAAEnB,eAAe,IAAIW,MAAM,CAACS,eAAgB;MACjDC,aAAa,EAAErB,eAAe,IAAIW,MAAM,CAACW,cAAe;MACxDC,QAAQ,EAAEnB,gBAAiB;MAC3BoB,KAAK,EAAEZ,sBAAuB;MAAAM,QAAA,eAE9BrB,IAAA,CAACH,WAAW;QAAAwB,QAAA,eACVrB,IAAA,CAACJ,YAAY;UACXgC,IAAI,EAAEZ,QAAQ,CAACa,SAAS,CAACC,EAAG;UAC5BR,KAAK,EACHf,gBAAgB,GACZO,MAAM,CAACiB,cAAc,GACrBvB,SAAS,KAAK,OAAO,IAAIA,SAAS,KAAKwB,SAAS,GAC9ClB,MAAM,CAACmB,WAAW,GAClBnB,MAAM,CAACoB;QACd,CACF;MAAC,CACS;IAAC,CACI;EAAC,CACX,CAAC;AAEjB,CAAC","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import React from 'react';
2
4
  import { useCallStateHooks } from '@stream-io/video-react-bindings';
3
5
  import { useTheme } from '../../../contexts';
@@ -7,7 +9,7 @@ import { IconWrapper, Video, VideoSlash } from '../../../icons';
7
9
  /**
8
10
  * Props for the Toggle Video preview button
9
11
  */
10
-
12
+ import { jsx as _jsx } from "react/jsx-runtime";
11
13
  /**
12
14
  * Button to toggle video mute/unmute status before joining the call.
13
15
  */
@@ -44,20 +46,23 @@ export const ToggleVideoPreviewButton = ({
44
46
  if (!isVideoEnabledInCall) {
45
47
  return;
46
48
  }
47
- return /*#__PURE__*/React.createElement(CallControlsButton, {
49
+ return /*#__PURE__*/_jsx(CallControlsButton, {
48
50
  onPress: onPress,
49
51
  color: !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning,
50
52
  size: buttonSizes.md,
51
53
  style: {
52
54
  container: toggleVideoPreviewButton.container,
53
55
  svgContainer: toggleVideoPreviewButton.svgContainer
54
- }
55
- }, /*#__PURE__*/React.createElement(IconWrapper, null, !optimisticIsMute ? /*#__PURE__*/React.createElement(Video, {
56
- color: colors.iconPrimary,
57
- size: iconSizes.lg
58
- }) : /*#__PURE__*/React.createElement(VideoSlash, {
59
- color: colors.iconPrimary,
60
- size: iconSizes.lg
61
- })));
56
+ },
57
+ children: /*#__PURE__*/_jsx(IconWrapper, {
58
+ children: !optimisticIsMute ? /*#__PURE__*/_jsx(Video, {
59
+ color: colors.iconPrimary,
60
+ size: iconSizes.lg
61
+ }) : /*#__PURE__*/_jsx(VideoSlash, {
62
+ color: colors.iconPrimary,
63
+ size: iconSizes.lg
64
+ })
65
+ })
66
+ });
62
67
  };
63
68
  //# sourceMappingURL=ToggleVideoPreviewButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallStateHooks","useTheme","CallControlsButton","IconWrapper","Video","VideoSlash","ToggleVideoPreviewButton","onPressHandler","theme","colors","toggleVideoPreviewButton","variants","buttonSizes","iconSizes","useCameraState","useCallSettings","callSettings","isVideoEnabledInCall","video","enabled","optimisticIsMute","camera","onPress","toggle","createElement","color","buttonSecondary","buttonWarning","size","md","style","container","svgContainer","iconPrimary","lg"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleVideoPreviewButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,WAAW,EAAEC,KAAK,EAAEC,UAAU,QAAQ,gBAAgB;;AAE/D;AACA;AACA;;AASA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGA,CAAC;EACvCC;AAC6B,CAAC,KAAK;EACnC,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,wBAAwB;MACxBC,QAAQ,EAAE;QAAEC,WAAW;QAAEC;MAAU;IACrC;EACF,CAAC,GAAGZ,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEa,cAAc;IAAEC;EAAgB,CAAC,GAAGf,iBAAiB,CAAC,CAAC;EAC/D,MAAMgB,YAAY,GAAGD,eAAe,CAAC,CAAC;EACtC,MAAME,oBAAoB,GAAGD,YAAY,EAAEE,KAAK,CAACC,OAAO;EACxD,MAAM;IAAEC,gBAAgB;IAAEC;EAAO,CAAC,GAAGP,cAAc,CAAC,CAAC;EACrD,MAAMQ,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIf,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IACA,MAAMc,MAAM,CAACE,MAAM,CAAC,CAAC;EACvB,CAAC;EAED,IAAI,CAACN,oBAAoB,EAAE;IACzB;EACF;EAEA,oBACElB,KAAA,CAAAyB,aAAA,CAACtB,kBAAkB;IACjBoB,OAAO,EAAEA,OAAQ;IACjBG,KAAK,EAAE,CAACL,gBAAgB,GAAGX,MAAM,CAACiB,eAAe,GAAGjB,MAAM,CAACkB,aAAc;IACzEC,IAAI,EAAEhB,WAAW,CAACiB,EAAG;IACrBC,KAAK,EAAE;MACLC,SAAS,EAAErB,wBAAwB,CAACqB,SAAS;MAC7CC,YAAY,EAAEtB,wBAAwB,CAACsB;IACzC;EAAE,gBAEFjC,KAAA,CAAAyB,aAAA,CAACrB,WAAW,QACT,CAACiB,gBAAgB,gBAChBrB,KAAA,CAAAyB,aAAA,CAACpB,KAAK;IAACqB,KAAK,EAAEhB,MAAM,CAACwB,WAAY;IAACL,IAAI,EAAEf,SAAS,CAACqB;EAAG,CAAE,CAAC,gBAExDnC,KAAA,CAAAyB,aAAA,CAACnB,UAAU;IAACoB,KAAK,EAAEhB,MAAM,CAACwB,WAAY;IAACL,IAAI,EAAEf,SAAS,CAACqB;EAAG,CAAE,CAEnD,CACK,CAAC;AAEzB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useCallStateHooks","useTheme","CallControlsButton","IconWrapper","Video","VideoSlash","jsx","_jsx","ToggleVideoPreviewButton","onPressHandler","theme","colors","toggleVideoPreviewButton","variants","buttonSizes","iconSizes","useCameraState","useCallSettings","callSettings","isVideoEnabledInCall","video","enabled","optimisticIsMute","camera","onPress","toggle","color","buttonSecondary","buttonWarning","size","md","style","container","svgContainer","children","iconPrimary","lg"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleVideoPreviewButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,WAAW,EAAEC,KAAK,EAAEC,UAAU,QAAQ,gBAAgB;;AAE/D;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAWA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGA,CAAC;EACvCC;AAC6B,CAAC,KAAK;EACnC,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,wBAAwB;MACxBC,QAAQ,EAAE;QAAEC,WAAW;QAAEC;MAAU;IACrC;EACF,CAAC,GAAGd,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEe,cAAc;IAAEC;EAAgB,CAAC,GAAGjB,iBAAiB,CAAC,CAAC;EAC/D,MAAMkB,YAAY,GAAGD,eAAe,CAAC,CAAC;EACtC,MAAME,oBAAoB,GAAGD,YAAY,EAAEE,KAAK,CAACC,OAAO;EACxD,MAAM;IAAEC,gBAAgB;IAAEC;EAAO,CAAC,GAAGP,cAAc,CAAC,CAAC;EACrD,MAAMQ,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIf,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IACA,MAAMc,MAAM,CAACE,MAAM,CAAC,CAAC;EACvB,CAAC;EAED,IAAI,CAACN,oBAAoB,EAAE;IACzB;EACF;EAEA,oBACEZ,IAAA,CAACL,kBAAkB;IACjBsB,OAAO,EAAEA,OAAQ;IACjBE,KAAK,EAAE,CAACJ,gBAAgB,GAAGX,MAAM,CAACgB,eAAe,GAAGhB,MAAM,CAACiB,aAAc;IACzEC,IAAI,EAAEf,WAAW,CAACgB,EAAG;IACrBC,KAAK,EAAE;MACLC,SAAS,EAAEpB,wBAAwB,CAACoB,SAAS;MAC7CC,YAAY,EAAErB,wBAAwB,CAACqB;IACzC,CAAE;IAAAC,QAAA,eAEF3B,IAAA,CAACJ,WAAW;MAAA+B,QAAA,EACT,CAACZ,gBAAgB,gBAChBf,IAAA,CAACH,KAAK;QAACsB,KAAK,EAAEf,MAAM,CAACwB,WAAY;QAACN,IAAI,EAAEd,SAAS,CAACqB;MAAG,CAAE,CAAC,gBAExD7B,IAAA,CAACF,UAAU;QAACqB,KAAK,EAAEf,MAAM,CAACwB,WAAY;QAACN,IAAI,EAAEd,SAAS,CAACqB;MAAG,CAAE;IAC7D,CACU;EAAC,CACI,CAAC;AAEzB,CAAC","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import React from 'react';
2
4
  import { OwnCapability } from '@stream-io/video-client';
3
5
  import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
@@ -8,7 +10,7 @@ import { useTheme } from '../../../contexts/ThemeContext';
8
10
  /**
9
11
  * Props for the Toggle Video publishing button
10
12
  */
11
-
13
+ import { jsx as _jsx } from "react/jsx-runtime";
12
14
  /**
13
15
  * Button to toggle video mute/unmute status while in the call.
14
16
  */
@@ -41,17 +43,21 @@ export const ToggleVideoPublishingButton = ({
41
43
  if (!isVideoEnabledInCall) {
42
44
  return;
43
45
  }
44
- return /*#__PURE__*/React.createElement(Restricted, {
45
- requiredGrants: [OwnCapability.SEND_VIDEO]
46
- }, /*#__PURE__*/React.createElement(CallControlsButton, {
47
- onPress: onPress,
48
- color: !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning
49
- }, /*#__PURE__*/React.createElement(IconWrapper, null, !optimisticIsMute ? /*#__PURE__*/React.createElement(Video, {
50
- color: colors.iconPrimary,
51
- size: variants.iconSizes.md
52
- }) : /*#__PURE__*/React.createElement(VideoSlash, {
53
- color: colors.iconPrimary,
54
- size: variants.iconSizes.md
55
- }))));
46
+ return /*#__PURE__*/_jsx(Restricted, {
47
+ requiredGrants: [OwnCapability.SEND_VIDEO],
48
+ children: /*#__PURE__*/_jsx(CallControlsButton, {
49
+ onPress: onPress,
50
+ color: !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning,
51
+ children: /*#__PURE__*/_jsx(IconWrapper, {
52
+ children: !optimisticIsMute ? /*#__PURE__*/_jsx(Video, {
53
+ color: colors.iconPrimary,
54
+ size: variants.iconSizes.md
55
+ }) : /*#__PURE__*/_jsx(VideoSlash, {
56
+ color: colors.iconPrimary,
57
+ size: variants.iconSizes.md
58
+ })
59
+ })
60
+ })
61
+ });
56
62
  };
57
63
  //# sourceMappingURL=ToggleVideoPublishingButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","OwnCapability","Restricted","useCallStateHooks","CallControlsButton","IconWrapper","Video","VideoSlash","useTheme","ToggleVideoPublishingButton","onPressHandler","useCameraState","useCallSettings","camera","optimisticIsMute","callSettings","isVideoEnabledInCall","video","enabled","theme","colors","variants","onPress","toggle","createElement","requiredGrants","SEND_VIDEO","color","buttonSecondary","buttonWarning","iconPrimary","size","iconSizes","md"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleVideoPublishingButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,UAAU,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC/E,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,WAAW,EAAEC,KAAK,EAAEC,UAAU,QAAQ,gBAAgB;AAC/D,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;;AASA;AACA;AACA;AACA,OAAO,MAAMC,2BAA2B,GAAGA,CAAC;EAC1CC;AACgC,CAAC,KAAK;EACtC,MAAM;IAAEC,cAAc;IAAEC;EAAgB,CAAC,GAAGT,iBAAiB,CAAC,CAAC;EAC/D,MAAM;IAAEU,MAAM;IAAEC;EAAiB,CAAC,GAAGH,cAAc,CAAC,CAAC;EACrD,MAAMI,YAAY,GAAGH,eAAe,CAAC,CAAC;EACtC,MAAMI,oBAAoB,GAAGD,YAAY,EAAEE,KAAK,CAACC,OAAO;EACxD,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAS;EAC5B,CAAC,GAAGb,QAAQ,CAAC,CAAC;EACd,MAAMc,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIZ,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IACA,MAAMG,MAAM,CAACU,MAAM,CAAC,CAAC;EACvB,CAAC;EAED,IAAI,CAACP,oBAAoB,EAAE;IACzB;EACF;EAEA,oBACEhB,KAAA,CAAAwB,aAAA,CAACtB,UAAU;IAACuB,cAAc,EAAE,CAACxB,aAAa,CAACyB,UAAU;EAAE,gBACrD1B,KAAA,CAAAwB,aAAA,CAACpB,kBAAkB;IACjBkB,OAAO,EAAEA,OAAQ;IACjBK,KAAK,EACH,CAACb,gBAAgB,GAAGM,MAAM,CAACQ,eAAe,GAAGR,MAAM,CAACS;EACrD,gBAED7B,KAAA,CAAAwB,aAAA,CAACnB,WAAW,QACT,CAACS,gBAAgB,gBAChBd,KAAA,CAAAwB,aAAA,CAAClB,KAAK;IAACqB,KAAK,EAAEP,MAAM,CAACU,WAAY;IAACC,IAAI,EAAEV,QAAQ,CAACW,SAAS,CAACC;EAAG,CAAE,CAAC,gBAEjEjC,KAAA,CAAAwB,aAAA,CAACjB,UAAU;IACToB,KAAK,EAAEP,MAAM,CAACU,WAAY;IAC1BC,IAAI,EAAEV,QAAQ,CAACW,SAAS,CAACC;EAAG,CAC7B,CAEQ,CACK,CACV,CAAC;AAEjB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","OwnCapability","Restricted","useCallStateHooks","CallControlsButton","IconWrapper","Video","VideoSlash","useTheme","jsx","_jsx","ToggleVideoPublishingButton","onPressHandler","useCameraState","useCallSettings","camera","optimisticIsMute","callSettings","isVideoEnabledInCall","video","enabled","theme","colors","variants","onPress","toggle","requiredGrants","SEND_VIDEO","children","color","buttonSecondary","buttonWarning","iconPrimary","size","iconSizes","md"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleVideoPublishingButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,UAAU,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC/E,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,WAAW,EAAEC,KAAK,EAAEC,UAAU,QAAQ,gBAAgB;AAC/D,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAWA;AACA;AACA;AACA,OAAO,MAAMC,2BAA2B,GAAGA,CAAC;EAC1CC;AACgC,CAAC,KAAK;EACtC,MAAM;IA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  export * from './RejectCallButton';
3
5
  export * from './HangupCallButton';
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/index.tsx"],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,4BAA4B;AAC1C,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,0BAA0B;AACxC,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,sBAAsB;AACpC,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB;AACtC,cAAc,wBAAwB;AACtC,cAAc,2BAA2B","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/index.tsx"],"mappings":";;AAAA,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,4BAA4B;AAC1C,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,0BAA0B;AACxC,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,sBAAsB;AACpC,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB;AACtC,cAAc,wBAAwB;AACtC,cAAc,2BAA2B","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  import React, { useEffect, useMemo, useRef } from 'react';
2
4
  import { Pressable, StyleSheet, Animated, Easing } from 'react-native';
3
5
  import { useCall } from '@stream-io/video-react-bindings';
@@ -5,6 +7,7 @@ import { getLogger } 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","Pressable","StyleSheet","Animated","Easing","useCall","getLogger","ComponentTestIds","useTheme","defaultEmojiReactions","ReactionsPicker","supportedReactions","reactionsButtonLayoutRectangle","onRequestedClose","theme","colors","reactionsPicker","variants","styles","useStyles","call","size","width","reactionItemSize","popupHeight","spacingSizes","xs","length","reactionsPopupStyle","top","y","left","x","height","borderTopStartRadius","borderTopEndRadius","elasticAnimRef","Value","timing","current","toValue","duration","useNativeDriver","easing","elastic","start","reactionItemStyle","borderRadius","reactionsButtonDimmerStyle","reactionsButtonDimmer","onClose","reaction","sendReaction","catch","e","logger","linear","createElement","Fragment","testID","REACTIONS_PICKER","style","reactionsPopup","backgroundColor","sheetSecondary","onPress","map","supportedReaction","key","emoji_code","reactionItem","buttonSecondary","type","custom","Text","reactionText","transform","scaleY","scaleX","icon","create","position","alignItems","paddingTop","opacity","justifyContent","marginBottom","fontSize"],"sourceRoot":"../../../../../../src","sources":["components/Call/CallControls/internal/ReactionsPicker.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC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,CACZ,CACQ,CAAC,eAEZlF,KAAA,CAAA4D,aAAA,CAACxD,SAAS;IACR4D,KAAK,EAAE,CACLb,0BAA0B,EAC1B;MACEe,eAAe,EAAEhD,MAAM,CAACiD;IAC1B,CAAC,EACDhD,eAAe,CAACiC,qBAAqB,CACrC;IACFgB,OAAO,EAAEA,CAAA,KAAMf,OAAO,CAAC;EAAE,CAC1B,CACD,CAAC;AAEP,CAAC;AAED,MAAM/B,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEL;EAAM,CAAC,GAAGN,QAAQ,CAAC,CAAC;EAC5B,OAAOT,OAAO,CACZ,MACEG,UAAU,CAAC8E,MAAM,CAAC;IAChBlB,cAAc,EAAE;MACdmB,QAAQ,EAAE,UAAU;MACpBC,UAAU,EAAE,QAAQ;MACpBC,UAAU,EAAErE,KAAK,CAACG,QAAQ,CAACQ,YAAY,CAACC;IAC1C,CAAC;IACDuB,qBAAqB,EAAE;MACrBgC,QAAQ,EAAE,UAAU;MACpBG,OAAO,EAAE;IACX,CAAC;IACDd,YAAY,EAAE;MACZY,UAAU,EAAE,QAAQ;MACpBG,cAAc,EAAE,QAAQ;MACxBC,YAAY,EAAExE,KAAK,CAACG,QAAQ,CAACQ,YAAY,CAACC;IAC5C,CAAC;IACDiD,YAAY,EAAE;MACZY,QAAQ,EAAE;IACZ;EACF,CAAC,CAAC,EACJ,CAACzE,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useMemo","useRef","Pressable","StyleSheet","Animated","Easing","useCall","getLogger","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","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,SAEEC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,MAAM,QACD,cAAc;AACrB,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAA8BC,SAAS,QAAQ,yBAAyB;AACxE,SAASC,gBAAgB,QAAQ,+BAA+B;AAChE,SAASC,QAAQ,QAAQ,mCAAmC;AAE5D,SAASC,qBAAqB,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAO9D,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,kBAAkB,GAAGR,qBAAqB;EAC1CS,8BAA8B;EAC9BC;AACmB,CAAC,KAAK;EACzB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,eAAe;MAAEC;IAAS;EAC7C,CAAC,GAAGf,QAAQ,CAAC,CAAC;EACd,MAAMgB,MAAM,GAAGC,SAAS,CAAC,CAAC;EAC1B,MAAMC,IAAI,GAAGrB,OAAO,CAAC,CAAC;EACtB,MAAMsB,IAAI,GAAGT,8BAA8B,EAAEU,KAAK,IAAI,CAAC;EACvD,MAAMC,gBAAgB,GAAGF,IAAI,GAAG,GAAG;EAEnC,MAAMG,WAAW;EACf;EACAP,QAAQ,CAACQ,YAAY,CAACC,EAAE;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AAY,EAAE;MACZY,QAAQ,EAAE;IACZ;EACF,CAAC,CAAC,EACJ,CAACvE,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 from 'react';
3
4
  import { StyleSheet, View } from 'react-native';
4
5
  import { 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
  */
@@ -71,16 +72,18 @@ export const CallParticipantsGrid = ({
71
72
  ParticipantVideoFallback,
72
73
  VideoRenderer
73
74
  };
74
- return /*#__PURE__*/React.createElement(View, {
75
+ return /*#__PURE__*/_jsx(View, {
75
76
  style: [styles.container, landscapeStyles, {
76
77
  backgroundColor: colors.sheetPrimary
77
78
  }, callParticipantsGrid.container],
78
- testID: ComponentTestIds.CALL_PARTICIPANTS_GRID
79
- }, CallParticipantsList && /*#__PURE__*/React.createElement(CallParticipantsList, _extends({
80
- participants: participants,
81
- supportedReactions: supportedReactions,
82
- landscape: landscape
83
- }, participantViewProps)));
79
+ testID: ComponentTestIds.CALL_PARTICIPANTS_GRID,
80
+ children: CallParticipantsList && /*#__PURE__*/_jsx(CallParticipantsList, {
81
+ participants: participants,
82
+ supportedReactions: supportedReactions,
83
+ landscape: landscape,
84
+ ...participantViewProps
85
+ })
86
+ });
84
87
  };
85
88
  const styles = StyleSheet.create({
86
89
  container: {
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","View","useCallStateHooks","useDebouncedValue","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","useIsInPiPMode","CallParticipantsGrid","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","supportedReactions","landscape","theme","colors","callParticipantsGrid","useRemoteParticipants","useParticipants","useLocalParticipant","useDominantSpeaker","_remoteParticipants","localParticipant","_allParticipants","dominantSpeaker","remoteParticipants","allParticipants","landscapeStyles","flexDirection","isInPiPMode","showFloatingView","length","participants","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,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SACEC,oBAAoB,IAAIC,2BAA2B,QAE9C,8CAA8C;AACrD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,QAAQ,QAAQ,gCAAgC;AAGzD,SAASC,cAAc,QAAQ,+BAA+B;;AAE9D;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,oBAAoB,GAAG,KAAK;EAC5BC,kBAAkB;EAClBC;AACyB,CAAC,KAAK;EAC/B,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAqB;EACxC,CAAC,GAAGd,QAAQ,CAAC,CAAC;EACd,MAAM;IACJe,qBAAqB;IACrBC,eAAe;IACfC,mBAAmB;IACnBC;EACF,CAAC,GAAGvB,iBAAiB,CAAC,CA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,KAAA,CAAAyC,aAAA,CAACvC,IAAI;IACHwC,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChBX,eAAe,EACf;MAAEY,eAAe,EAAExB,MAAM,CAACyB;IAAa,CAAC,EACxCxB,oBAAoB,CAACsB,SAAS,CAC9B;IACFG,MAAM,EAAExC,gBAAgB,CAACyC;EAAuB,GAE/C3C,oBAAoB,iBACnBL,KAAA,CAAAyC,aAAA,CAACpC,oBAAoB,EAAA4C,QAAA;IACnBX,YAAY,EAAEA,YAAa;IAC3BpB,kBAAkB,EAAEA,kBAAmB;IACvCC,SAAS,EAAEA;EAAU,GACjBqB,oBAAoB,CACzB,CAEC,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAG1C,UAAU,CAACiD,MAAM,CAAC;EAC/BN,SAAS,EAAE;IAAEO,IAAI,EAAE;EAAE;AACvB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","StyleSheet","View","useCallStateHooks","useDebouncedValue","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","useIsInPiPMode","jsx","_jsx","CallParticipantsGrid","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","supportedReactions","landscape","theme","colors","callParticipantsGrid","useRemoteParticipants","useParticipants","useLocalParticipant","useDominantSpeaker","_remoteParticipants","localParticipant","_allParticipants","dominantSpeaker","remoteParticipants","allParticipants","landscapeStyles","flexDirection","isInPiPMode","showFloatingView","length","participants","isLocalParticipant","participantViewProps","style","styles","container","backgroundColor","sheetPrimary","testID","CALL_PARTICIPANTS_GRID","children","create","flex"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsGrid.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,iBAAiB,QAAQ,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