@stream-io/video-react-native-sdk 1.3.7 → 1.4.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 (510) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/commonjs/components/Call/CallContent/CallContent.js +25 -20
  3. package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
  4. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +8 -6
  5. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  6. package/dist/commonjs/components/Call/CallControls/CallControls.js +2 -2
  7. package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
  8. package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +11 -18
  9. package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -1
  10. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +8 -13
  11. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
  12. package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +5 -1
  13. package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -1
  14. package/dist/commonjs/components/Call/CallControls/LobbyControls.js +16 -9
  15. package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -1
  16. package/dist/commonjs/components/Call/CallControls/ReactionsButton.js +3 -3
  17. package/dist/commonjs/components/Call/CallControls/ReactionsButton.js.map +1 -1
  18. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +8 -6
  19. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
  20. package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js +10 -6
  21. package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
  22. package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +10 -10
  23. package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
  24. package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +9 -6
  25. package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
  26. package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +10 -6
  27. package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
  28. package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +10 -10
  29. package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
  30. package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +9 -6
  31. package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
  32. package/dist/commonjs/components/Call/CallControls/index.js +0 -11
  33. package/dist/commonjs/components/Call/CallControls/index.js.map +1 -1
  34. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +32 -28
  35. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  36. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +1 -1
  37. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  38. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +31 -25
  39. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  40. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +32 -17
  41. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  42. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +21 -14
  43. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
  44. package/dist/commonjs/components/Call/Lobby/Lobby.js +66 -94
  45. package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
  46. package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +60 -23
  47. package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
  48. package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +6 -7
  49. package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
  50. package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +6 -7
  51. package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
  52. package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +0 -4
  53. package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
  54. package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js +3 -3
  55. package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
  56. package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +1 -1
  57. package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -1
  58. package/dist/commonjs/components/Call/index.js +0 -11
  59. package/dist/commonjs/components/Call/index.js.map +1 -1
  60. package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +31 -20
  61. package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
  62. package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +1 -1
  63. package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
  64. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +2 -2
  65. package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  66. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +7 -5
  67. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
  68. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +5 -3
  69. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
  70. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +7 -5
  71. package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
  72. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
  73. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  74. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +1 -1
  75. package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
  76. package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +1 -1
  77. package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
  78. package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +2 -2
  79. package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
  80. package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +2 -2
  81. package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
  82. package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +1 -1
  83. package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
  84. package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +2 -2
  85. package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
  86. package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +1 -1
  87. package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
  88. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +16 -5
  89. package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
  90. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
  91. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +6 -5
  92. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
  93. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +72 -49
  94. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  95. package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +5 -5
  96. package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
  97. package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +28 -15
  98. package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
  99. package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +2 -2
  100. package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
  101. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +29 -21
  102. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
  103. package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js +86 -0
  104. package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -0
  105. package/dist/commonjs/components/utility/Avatar.js +1 -1
  106. package/dist/commonjs/components/utility/Avatar.js.map +1 -1
  107. package/dist/commonjs/components/utility/ScreenShareOverlay.js +6 -5
  108. package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
  109. package/dist/commonjs/constants/TestIds.js +1 -1
  110. package/dist/commonjs/constants/TestIds.js.map +1 -1
  111. package/dist/commonjs/constants/index.js +24 -5
  112. package/dist/commonjs/constants/index.js.map +1 -1
  113. package/dist/commonjs/icons/CameraSwitch.js +6 -3
  114. package/dist/commonjs/icons/CameraSwitch.js.map +1 -1
  115. package/dist/commonjs/icons/IconWrapper.js +25 -0
  116. package/dist/commonjs/icons/IconWrapper.js.map +1 -0
  117. package/dist/commonjs/icons/Lock.js +26 -0
  118. package/dist/commonjs/icons/Lock.js.map +1 -0
  119. package/dist/commonjs/icons/Mic.js +6 -6
  120. package/dist/commonjs/icons/Mic.js.map +1 -1
  121. package/dist/commonjs/icons/MicOff.js +6 -3
  122. package/dist/commonjs/icons/MicOff.js.map +1 -1
  123. package/dist/commonjs/icons/Phone.js +13 -3
  124. package/dist/commonjs/icons/Phone.js.map +1 -1
  125. package/dist/commonjs/icons/PhoneDown.js +6 -3
  126. package/dist/commonjs/icons/PhoneDown.js.map +1 -1
  127. package/dist/commonjs/icons/PinVertical.js +5 -2
  128. package/dist/commonjs/icons/PinVertical.js.map +1 -1
  129. package/dist/commonjs/icons/Reaction.js +3 -1
  130. package/dist/commonjs/icons/Reaction.js.map +1 -1
  131. package/dist/commonjs/icons/ScreenShare.js +6 -3
  132. package/dist/commonjs/icons/ScreenShare.js.map +1 -1
  133. package/dist/commonjs/icons/StopScreenShare.js +5 -2
  134. package/dist/commonjs/icons/StopScreenShare.js.map +1 -1
  135. package/dist/commonjs/icons/Video.js +6 -3
  136. package/dist/commonjs/icons/Video.js.map +1 -1
  137. package/dist/commonjs/icons/VideoSlash.js +6 -3
  138. package/dist/commonjs/icons/VideoSlash.js.map +1 -1
  139. package/dist/commonjs/icons/index.js +11 -22
  140. package/dist/commonjs/icons/index.js.map +1 -1
  141. package/dist/commonjs/theme/colors.js +22 -39
  142. package/dist/commonjs/theme/colors.js.map +1 -1
  143. package/dist/commonjs/theme/constants.js +44 -44
  144. package/dist/commonjs/theme/constants.js.map +1 -1
  145. package/dist/commonjs/theme/index.js +11 -10
  146. package/dist/commonjs/theme/index.js.map +1 -1
  147. package/dist/commonjs/theme/theme.js +46 -9
  148. package/dist/commonjs/theme/theme.js.map +1 -1
  149. package/dist/commonjs/translations/en.json +7 -3
  150. package/dist/commonjs/version.js +1 -1
  151. package/dist/module/components/Call/CallContent/CallContent.js +26 -21
  152. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
  153. package/dist/module/components/Call/CallControls/AcceptCallButton.js +9 -7
  154. package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
  155. package/dist/module/components/Call/CallControls/CallControls.js +2 -2
  156. package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
  157. package/dist/module/components/Call/CallControls/CallControlsButton.js +11 -18
  158. package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -1
  159. package/dist/module/components/Call/CallControls/HangupCallButton.js +8 -13
  160. package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
  161. package/dist/module/components/Call/CallControls/IncomingCallControls.js +5 -1
  162. package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -1
  163. package/dist/module/components/Call/CallControls/LobbyControls.js +14 -8
  164. package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -1
  165. package/dist/module/components/Call/CallControls/ReactionsButton.js +4 -4
  166. package/dist/module/components/Call/CallControls/ReactionsButton.js.map +1 -1
  167. package/dist/module/components/Call/CallControls/RejectCallButton.js +9 -7
  168. package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
  169. package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js +10 -6
  170. package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
  171. package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +11 -11
  172. package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
  173. package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +10 -7
  174. package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
  175. package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +11 -7
  176. package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
  177. package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +11 -11
  178. package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
  179. package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +10 -7
  180. package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
  181. package/dist/module/components/Call/CallControls/index.js +0 -1
  182. package/dist/module/components/Call/CallControls/index.js.map +1 -1
  183. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +33 -29
  184. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
  185. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +1 -1
  186. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  187. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +29 -24
  188. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  189. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +32 -17
  190. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
  191. package/dist/module/components/Call/Lobby/JoinCallButton.js +19 -13
  192. package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
  193. package/dist/module/components/Call/Lobby/Lobby.js +64 -93
  194. package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
  195. package/dist/module/components/Call/Lobby/LobbyFooter.js +58 -22
  196. package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
  197. package/dist/module/components/Call/RingingCallContent/IncomingCall.js +6 -7
  198. package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
  199. package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +6 -7
  200. package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
  201. package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +0 -4
  202. package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
  203. package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js +3 -3
  204. package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
  205. package/dist/module/components/Call/RingingCallContent/UserInfo.js +1 -1
  206. package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -1
  207. package/dist/module/components/Call/index.js +0 -1
  208. package/dist/module/components/Call/index.js.map +1 -1
  209. package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +32 -21
  210. package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
  211. package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +1 -1
  212. package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
  213. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +2 -2
  214. package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
  215. package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +8 -6
  216. package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
  217. package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +5 -3
  218. package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
  219. package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +8 -6
  220. package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
  221. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
  222. package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
  223. package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +1 -1
  224. package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
  225. package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +1 -1
  226. package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
  227. package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +2 -2
  228. package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
  229. package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +2 -2
  230. package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
  231. package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +1 -1
  232. package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
  233. package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +2 -2
  234. package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
  235. package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +1 -1
  236. package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
  237. package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +17 -6
  238. package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
  239. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
  240. package/dist/module/components/Participant/FloatingParticipantView/index.js +6 -5
  241. package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
  242. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +70 -49
  243. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
  244. package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +5 -5
  245. package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
  246. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +29 -16
  247. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
  248. package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +2 -2
  249. package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
  250. package/dist/module/components/Participant/ParticipantView/ParticipantView.js +27 -20
  251. package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
  252. package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +78 -0
  253. package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -0
  254. package/dist/module/components/utility/Avatar.js +1 -1
  255. package/dist/module/components/utility/Avatar.js.map +1 -1
  256. package/dist/module/components/utility/ScreenShareOverlay.js +6 -5
  257. package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
  258. package/dist/module/constants/TestIds.js +1 -1
  259. package/dist/module/constants/TestIds.js.map +1 -1
  260. package/dist/module/constants/index.js +23 -4
  261. package/dist/module/constants/index.js.map +1 -1
  262. package/dist/module/icons/CameraSwitch.js +6 -3
  263. package/dist/module/icons/CameraSwitch.js.map +1 -1
  264. package/dist/module/icons/IconWrapper.js +17 -0
  265. package/dist/module/icons/IconWrapper.js.map +1 -0
  266. package/dist/module/icons/Lock.js +16 -0
  267. package/dist/module/icons/Lock.js.map +1 -0
  268. package/dist/module/icons/Mic.js +6 -6
  269. package/dist/module/icons/Mic.js.map +1 -1
  270. package/dist/module/icons/MicOff.js +6 -3
  271. package/dist/module/icons/MicOff.js.map +1 -1
  272. package/dist/module/icons/Phone.js +13 -3
  273. package/dist/module/icons/Phone.js.map +1 -1
  274. package/dist/module/icons/PhoneDown.js +6 -3
  275. package/dist/module/icons/PhoneDown.js.map +1 -1
  276. package/dist/module/icons/PinVertical.js +5 -2
  277. package/dist/module/icons/PinVertical.js.map +1 -1
  278. package/dist/module/icons/Reaction.js +3 -1
  279. package/dist/module/icons/Reaction.js.map +1 -1
  280. package/dist/module/icons/ScreenShare.js +6 -3
  281. package/dist/module/icons/ScreenShare.js.map +1 -1
  282. package/dist/module/icons/StopScreenShare.js +5 -2
  283. package/dist/module/icons/StopScreenShare.js.map +1 -1
  284. package/dist/module/icons/Video.js +6 -3
  285. package/dist/module/icons/Video.js.map +1 -1
  286. package/dist/module/icons/VideoSlash.js +6 -3
  287. package/dist/module/icons/VideoSlash.js.map +1 -1
  288. package/dist/module/icons/index.js +1 -2
  289. package/dist/module/icons/index.js.map +1 -1
  290. package/dist/module/theme/colors.js +22 -39
  291. package/dist/module/theme/colors.js.map +1 -1
  292. package/dist/module/theme/constants.js +44 -44
  293. package/dist/module/theme/constants.js.map +1 -1
  294. package/dist/module/theme/index.js +1 -5
  295. package/dist/module/theme/index.js.map +1 -1
  296. package/dist/module/theme/theme.js +46 -9
  297. package/dist/module/theme/theme.js.map +1 -1
  298. package/dist/module/translations/en.json +7 -3
  299. package/dist/module/version.js +1 -1
  300. package/dist/typescript/components/Call/CallContent/CallContent.d.ts +2 -7
  301. package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
  302. package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
  303. package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts +4 -0
  304. package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -1
  305. package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
  306. package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts.map +1 -1
  307. package/dist/typescript/components/Call/CallControls/LobbyControls.d.ts.map +1 -1
  308. package/dist/typescript/components/Call/CallControls/ReactionsButton.d.ts.map +1 -1
  309. package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts.map +1 -1
  310. package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -1
  311. package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts.map +1 -1
  312. package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts.map +1 -1
  313. package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts +6 -1
  314. package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts.map +1 -1
  315. package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts.map +1 -1
  316. package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts.map +1 -1
  317. package/dist/typescript/components/Call/CallControls/index.d.ts +0 -1
  318. package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -1
  319. package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
  320. package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
  321. package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
  322. package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -1
  323. package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
  324. package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts.map +1 -1
  325. package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts +2 -6
  326. package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -1
  327. package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts +1 -6
  328. package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -1
  329. package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts +0 -5
  330. package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -1
  331. package/dist/typescript/components/Call/index.d.ts +0 -1
  332. package/dist/typescript/components/Call/index.d.ts.map +1 -1
  333. package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
  334. package/dist/typescript/components/Livestream/LivestreamControls/LivestreamAudioControlButton.d.ts.map +1 -1
  335. package/dist/typescript/components/Livestream/LivestreamControls/LivestreamVideoControlButton.d.ts.map +1 -1
  336. package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map +1 -1
  337. package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -1
  338. package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
  339. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts.map +1 -1
  340. package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
  341. package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
  342. package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts +1 -1
  343. package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -1
  344. package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts.map +1 -1
  345. package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
  346. package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts +18 -0
  347. package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts.map +1 -0
  348. package/dist/typescript/components/utility/Avatar.d.ts.map +1 -1
  349. package/dist/typescript/constants/TestIds.d.ts +2 -2
  350. package/dist/typescript/constants/TestIds.d.ts.map +1 -1
  351. package/dist/typescript/constants/index.d.ts +0 -1
  352. package/dist/typescript/constants/index.d.ts.map +1 -1
  353. package/dist/typescript/icons/CameraSwitch.d.ts +2 -1
  354. package/dist/typescript/icons/CameraSwitch.d.ts.map +1 -1
  355. package/dist/typescript/icons/IconWrapper.d.ts +6 -0
  356. package/dist/typescript/icons/IconWrapper.d.ts.map +1 -0
  357. package/dist/typescript/icons/{Chat.d.ts → Lock.d.ts} +3 -2
  358. package/dist/typescript/icons/Lock.d.ts.map +1 -0
  359. package/dist/typescript/icons/Mic.d.ts +2 -1
  360. package/dist/typescript/icons/Mic.d.ts.map +1 -1
  361. package/dist/typescript/icons/MicOff.d.ts +2 -1
  362. package/dist/typescript/icons/MicOff.d.ts.map +1 -1
  363. package/dist/typescript/icons/Phone.d.ts +2 -1
  364. package/dist/typescript/icons/Phone.d.ts.map +1 -1
  365. package/dist/typescript/icons/PhoneDown.d.ts +2 -1
  366. package/dist/typescript/icons/PhoneDown.d.ts.map +1 -1
  367. package/dist/typescript/icons/PinVertical.d.ts +2 -1
  368. package/dist/typescript/icons/PinVertical.d.ts.map +1 -1
  369. package/dist/typescript/icons/ScreenShare.d.ts +2 -1
  370. package/dist/typescript/icons/ScreenShare.d.ts.map +1 -1
  371. package/dist/typescript/icons/StopScreenShare.d.ts +2 -1
  372. package/dist/typescript/icons/StopScreenShare.d.ts.map +1 -1
  373. package/dist/typescript/icons/Video.d.ts +2 -1
  374. package/dist/typescript/icons/Video.d.ts.map +1 -1
  375. package/dist/typescript/icons/VideoSlash.d.ts +2 -1
  376. package/dist/typescript/icons/VideoSlash.d.ts.map +1 -1
  377. package/dist/typescript/icons/index.d.ts +1 -2
  378. package/dist/typescript/icons/index.d.ts.map +1 -1
  379. package/dist/typescript/theme/colors.d.ts +5 -38
  380. package/dist/typescript/theme/colors.d.ts.map +1 -1
  381. package/dist/typescript/theme/constants.d.ts +44 -44
  382. package/dist/typescript/theme/constants.d.ts.map +1 -1
  383. package/dist/typescript/theme/index.d.ts +1 -2
  384. package/dist/typescript/theme/index.d.ts.map +1 -1
  385. package/dist/typescript/theme/theme.d.ts +23 -31
  386. package/dist/typescript/theme/theme.d.ts.map +1 -1
  387. package/dist/typescript/theme/types.d.ts +65 -18
  388. package/dist/typescript/theme/types.d.ts.map +1 -1
  389. package/dist/typescript/translations/index.d.ts +5 -1
  390. package/dist/typescript/translations/index.d.ts.map +1 -1
  391. package/dist/typescript/version.d.ts +1 -1
  392. package/package.json +3 -3
  393. package/src/components/Call/CallContent/CallContent.tsx +25 -33
  394. package/src/components/Call/CallControls/AcceptCallButton.tsx +7 -5
  395. package/src/components/Call/CallControls/CallControls.tsx +2 -2
  396. package/src/components/Call/CallControls/CallControlsButton.tsx +14 -20
  397. package/src/components/Call/CallControls/HangupCallButton.tsx +6 -11
  398. package/src/components/Call/CallControls/IncomingCallControls.tsx +5 -1
  399. package/src/components/Call/CallControls/LobbyControls.tsx +16 -8
  400. package/src/components/Call/CallControls/ReactionsButton.tsx +4 -2
  401. package/src/components/Call/CallControls/RejectCallButton.tsx +7 -5
  402. package/src/components/Call/CallControls/ScreenShareToggleButton.tsx +18 -7
  403. package/src/components/Call/CallControls/ToggleAudioPreviewButton.tsx +11 -13
  404. package/src/components/Call/CallControls/ToggleAudioPublishingButton.tsx +12 -8
  405. package/src/components/Call/CallControls/ToggleCameraFaceButton.tsx +23 -10
  406. package/src/components/Call/CallControls/ToggleVideoPreviewButton.tsx +11 -14
  407. package/src/components/Call/CallControls/ToggleVideoPublishingButton.tsx +15 -8
  408. package/src/components/Call/CallControls/index.tsx +0 -1
  409. package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +34 -32
  410. package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +2 -4
  411. package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +29 -23
  412. package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +34 -15
  413. package/src/components/Call/Lobby/JoinCallButton.tsx +21 -15
  414. package/src/components/Call/Lobby/Lobby.tsx +74 -121
  415. package/src/components/Call/Lobby/LobbyFooter.tsx +63 -41
  416. package/src/components/Call/RingingCallContent/IncomingCall.tsx +4 -14
  417. package/src/components/Call/RingingCallContent/OutgoingCall.tsx +4 -14
  418. package/src/components/Call/RingingCallContent/RingingCallContent.tsx +3 -17
  419. package/src/components/Call/RingingCallContent/TextBasedIndicator.tsx +3 -3
  420. package/src/components/Call/RingingCallContent/UserInfo.tsx +1 -1
  421. package/src/components/Call/index.ts +0 -1
  422. package/src/components/Livestream/HostLivestream/HostLivestream.tsx +34 -23
  423. package/src/components/Livestream/LivestreamControls/HostLivestreamControls.tsx +1 -1
  424. package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +4 -4
  425. package/src/components/Livestream/LivestreamControls/LivestreamAudioControlButton.tsx +9 -7
  426. package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +4 -4
  427. package/src/components/Livestream/LivestreamControls/LivestreamVideoControlButton.tsx +9 -7
  428. package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +2 -4
  429. package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +1 -3
  430. package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +1 -1
  431. package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +2 -2
  432. package/src/components/Livestream/LivestreamTopView/FollowerCount.tsx +2 -2
  433. package/src/components/Livestream/LivestreamTopView/HostLivestreamTopView.tsx +1 -1
  434. package/src/components/Livestream/LivestreamTopView/LiveIndicator.tsx +2 -2
  435. package/src/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx +1 -1
  436. package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +19 -6
  437. package/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.tsx +0 -1
  438. package/src/components/Participant/FloatingParticipantView/index.tsx +4 -6
  439. package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +87 -87
  440. package/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.tsx +5 -5
  441. package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +36 -26
  442. package/src/components/Participant/ParticipantView/ParticipantVideoFallback.tsx +2 -6
  443. package/src/components/Participant/ParticipantView/ParticipantView.tsx +33 -22
  444. package/src/components/Participant/ParticipantView/SpeechIndicator.tsx +103 -0
  445. package/src/components/utility/Avatar.tsx +2 -4
  446. package/src/components/utility/ScreenShareOverlay.tsx +5 -5
  447. package/src/constants/TestIds.ts +1 -1
  448. package/src/constants/index.ts +27 -5
  449. package/src/icons/CameraSwitch.tsx +4 -3
  450. package/src/icons/IconWrapper.tsx +15 -0
  451. package/src/icons/Lock.tsx +19 -0
  452. package/src/icons/Mic.tsx +4 -7
  453. package/src/icons/MicOff.tsx +4 -3
  454. package/src/icons/Phone.tsx +11 -3
  455. package/src/icons/PhoneDown.tsx +9 -3
  456. package/src/icons/PinVertical.tsx +3 -2
  457. package/src/icons/Reaction.tsx +1 -1
  458. package/src/icons/ScreenShare.tsx +9 -3
  459. package/src/icons/StopScreenShare.tsx +3 -2
  460. package/src/icons/Video.tsx +4 -3
  461. package/src/icons/VideoSlash.tsx +9 -3
  462. package/src/icons/index.tsx +1 -2
  463. package/src/theme/colors.ts +27 -42
  464. package/src/theme/constants.ts +51 -44
  465. package/src/theme/index.ts +1 -8
  466. package/src/theme/theme.ts +77 -40
  467. package/src/theme/types.ts +72 -21
  468. package/src/translations/en.json +7 -3
  469. package/src/version.ts +1 -1
  470. package/dist/commonjs/components/Call/CallControls/ChatButton.js +0 -84
  471. package/dist/commonjs/components/Call/CallControls/ChatButton.js.map +0 -1
  472. package/dist/commonjs/components/Call/CallTopView/CallTopView.js +0 -120
  473. package/dist/commonjs/components/Call/CallTopView/CallTopView.js.map +0 -1
  474. package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -105
  475. package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
  476. package/dist/commonjs/components/Call/CallTopView/index.js +0 -28
  477. package/dist/commonjs/components/Call/CallTopView/index.js.map +0 -1
  478. package/dist/commonjs/icons/Chat.js +0 -19
  479. package/dist/commonjs/icons/Chat.js.map +0 -1
  480. package/dist/commonjs/icons/Participants.js +0 -21
  481. package/dist/commonjs/icons/Participants.js.map +0 -1
  482. package/dist/module/components/Call/CallControls/ChatButton.js +0 -77
  483. package/dist/module/components/Call/CallControls/ChatButton.js.map +0 -1
  484. package/dist/module/components/Call/CallTopView/CallTopView.js +0 -111
  485. package/dist/module/components/Call/CallTopView/CallTopView.js.map +0 -1
  486. package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -98
  487. package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
  488. package/dist/module/components/Call/CallTopView/index.js +0 -3
  489. package/dist/module/components/Call/CallTopView/index.js.map +0 -1
  490. package/dist/module/icons/Chat.js +0 -11
  491. package/dist/module/icons/Chat.js.map +0 -1
  492. package/dist/module/icons/Participants.js +0 -13
  493. package/dist/module/icons/Participants.js.map +0 -1
  494. package/dist/typescript/components/Call/CallControls/ChatButton.d.ts +0 -22
  495. package/dist/typescript/components/Call/CallControls/ChatButton.d.ts.map +0 -1
  496. package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts +0 -29
  497. package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts.map +0 -1
  498. package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts +0 -12
  499. package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts.map +0 -1
  500. package/dist/typescript/components/Call/CallTopView/index.d.ts +0 -3
  501. package/dist/typescript/components/Call/CallTopView/index.d.ts.map +0 -1
  502. package/dist/typescript/icons/Chat.d.ts.map +0 -1
  503. package/dist/typescript/icons/Participants.d.ts +0 -8
  504. package/dist/typescript/icons/Participants.d.ts.map +0 -1
  505. package/src/components/Call/CallControls/ChatButton.tsx +0 -90
  506. package/src/components/Call/CallTopView/CallTopView.tsx +0 -162
  507. package/src/components/Call/CallTopView/ParticipantsInfoBadge.tsx +0 -119
  508. package/src/components/Call/CallTopView/index.ts +0 -2
  509. package/src/icons/Chat.tsx +0 -16
  510. package/src/icons/Participants.tsx +0 -18
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CallParticipantsSpotlight = void 0;
7
- var _react = _interopRequireDefault(require("react"));
7
+ var _react = _interopRequireWildcard(require("react"));
8
8
  var _videoClient = require("@stream-io/video-client");
9
9
  var _videoReactBindings = require("@stream-io/video-react-bindings");
10
10
  var _reactNative = require("react-native");
@@ -14,7 +14,8 @@ var _CallParticipantsList = require("../CallParticipantsList/CallParticipantsLis
14
14
  var _Participant = require("../../Participant");
15
15
  var _ThemeContext = require("../../../contexts/ThemeContext");
16
16
  var _useIsInPiPMode = require("../../../hooks/useIsInPiPMode");
17
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
19
  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); }
19
20
  /**
20
21
  * Props for the CallParticipantsSpotlight component.
@@ -39,10 +40,11 @@ const CallParticipantsSpotlight = ({
39
40
  }) => {
40
41
  const {
41
42
  theme: {
42
- colors,
43
- callParticipantsSpotlight
43
+ callParticipantsSpotlight,
44
+ variants
44
45
  }
45
46
  } = (0, _ThemeContext.useTheme)();
47
+ const styles = useStyles();
46
48
  const {
47
49
  useParticipants
48
50
  } = (0, _videoReactBindings.useCallStateHooks)();
@@ -69,14 +71,12 @@ const CallParticipantsSpotlight = ({
69
71
  flexDirection: landscape ? 'row' : 'column'
70
72
  };
71
73
  const spotlightContainerLandscapeStyles = {
72
- marginHorizontal: landscape ? 0 : 8
74
+ marginHorizontal: landscape ? 0 : variants.spacingSizes.xs
73
75
  };
74
76
  const showShareScreenOverlay = participantInSpotlight?.isLocalParticipant && isScreenShareOnSpotlight && ScreenShareOverlay;
75
77
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
76
78
  testID: _TestIds.ComponentTestIds.CALL_PARTICIPANTS_SPOTLIGHT,
77
- style: [styles.container, landscapeStyles, {
78
- backgroundColor: colors.dark_gray
79
- }, callParticipantsSpotlight.container]
79
+ style: [styles.container, landscapeStyles, callParticipantsSpotlight.container]
80
80
  }, participantInSpotlight && ParticipantView && (showShareScreenOverlay ? /*#__PURE__*/_react.default.createElement(ScreenShareOverlay, null) : /*#__PURE__*/_react.default.createElement(ParticipantView, _extends({
81
81
  participant: participantInSpotlight,
82
82
  style: isUserAloneInCall ? [styles.fullScreenSpotlightContainer, callParticipantsSpotlight.fullScreenSpotlightContainer] : [styles.spotlightContainer, spotlightContainerLandscapeStyles, callParticipantsSpotlight.spotlightContainer],
@@ -94,21 +94,27 @@ const CallParticipantsSpotlight = ({
94
94
  }, callParticipantsListProps))));
95
95
  };
96
96
  exports.CallParticipantsSpotlight = CallParticipantsSpotlight;
97
- const styles = _reactNative.StyleSheet.create({
98
- container: {
99
- flex: 1
100
- },
101
- fullScreenSpotlightContainer: {
102
- flex: 1
103
- },
104
- spotlightContainer: {
105
- flex: 2,
106
- overflow: 'hidden',
107
- borderRadius: 10,
108
- marginHorizontal: 8
109
- },
110
- callParticipantsListContainer: {
111
- flex: 1
112
- }
113
- });
97
+ const useStyles = () => {
98
+ const {
99
+ theme
100
+ } = (0, _ThemeContext.useTheme)();
101
+ return (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
102
+ container: {
103
+ flex: 1,
104
+ backgroundColor: theme.colors.sheetPrimary
105
+ },
106
+ fullScreenSpotlightContainer: {
107
+ flex: 1
108
+ },
109
+ spotlightContainer: {
110
+ flex: 2,
111
+ overflow: 'hidden',
112
+ borderRadius: theme.variants.borderRadiusSizes.sm,
113
+ marginHorizontal: theme.variants.spacingSizes.sm
114
+ },
115
+ callParticipantsListContainer: {
116
+ flex: 1
117
+ }
118
+ }), [theme]);
119
+ };
114
120
  //# sourceMappingURL=CallParticipantsSpotlight.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_videoClient","_videoReactBindings","_reactNative","_useDebouncedValue","_TestIds","_CallParticipantsList","_Participant","_ThemeContext","_useIsInPiPMode","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","CallParticipantsSpotlight","CallParticipantsList","DefaultCallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","DefaultParticipantView","ScreenShareOverlay","VideoRenderer","supportedReactions","landscape","disablePictureInPicture","theme","colors","callParticipantsSpotlight","useTheme","useParticipants","useCallStateHooks","_allParticipants","sortBy","speakerLayoutSortPreset","allParticipants","useDebouncedValue","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","hasScreenShare","isUserAloneInCall","isInPiP","useIsInPiPMode","participantViewProps","callParticipantsListProps","landscapeStyles","flexDirection","spotlightContainerLandscapeStyles","marginHorizontal","showShareScreenOverlay","isLocalParticipant","createElement","View","testID","ComponentTestIds","CALL_PARTICIPANTS_SPOTLIGHT","style","styles","container","backgroundColor","dark_gray","participant","fullScreenSpotlightContainer","spotlightContainer","objectFit","trackType","callParticipantsListContainer","participants","horizontal","numberOfColumns","exports","StyleSheet","create","flex","overflow","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AAIA,IAAAO,YAAA,GAAAP,OAAA;AAIA,IAAAQ,aAAA,GAAAR,OAAA;AAEA,IAAAS,eAAA,GAAAT,OAAA;AAA+D,SAAAD,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAE/D;AACA;AACA;;AAiBA;AACA;AACA;AACA;AACO,MAAMO,yBAAyB,GAAGA,CAAC;EACxCC,oBAAoB,GAAGC,0CAA2B;EAClDC,gBAAgB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AAU;IACvB8C,eAAe,EAAE,CAAC9C,SAAS,GAAG,CAAC,GAAG,CAAE;IACpCA,SAAS,EAAEA;EAAU,GACjBqB,yBAAyB,CAC9B,CAEC,CAEJ,CAAC;AAEX,CAAC;AAAC0B,OAAA,CAAA3D,yBAAA,GAAAA,yBAAA;AAEF,MAAM8C,MAAM,GAAGc,uBAAU,CAACC,MAAM,CAAC;EAC/Bd,SAAS,EAAE;IACTe,IAAI,EAAE;EACR,CAAC;EACDX,4BAA4B,EAAE;IAC5BW,IAAI,EAAE;EACR,CAAC;EACDV,kBAAkB,EAAE;IAClBU,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,QAAQ;IAClBC,YAAY,EAAE,EAAE;IAChB3B,gBAAgB,EAAE;EACpB,CAAC;EACDkB,6BAA6B,EAAE;IAC7BO,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_videoClient","_videoReactBindings","_reactNative","_useDebouncedValue","_TestIds","_CallParticipantsList","_Participant","_ThemeContext","_useIsInPiPMode","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","CallParticipantsSpotlight","CallParticipantsList","DefaultCallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","DefaultParticipantView","ScreenShareOverlay","VideoRenderer","supportedReactions","landscape","disablePictureInPicture","theme","callParticipantsSpotlight","variants","useTheme","styles","useStyles","useParticipants","useCallStateHooks","_allParticipants","sortBy","speakerLayoutSortPreset","allParticipants","useDebouncedValue","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","hasScreenShare","isUserAloneInCall","isInPiP","useIsInPiPMode","participantViewProps","callParticipantsListProps","landscapeStyles","flexDirection","spotlightContainerLandscapeStyles","marginHorizontal","spacingSizes","xs","showShareScreenOverlay","isLocalParticipant","createElement","View","testID","ComponentTestIds","CALL_PARTICIPANTS_SPOTLIGHT","style","container","participant","fullScreenSpotlightContainer","spotlightContainer","objectFit","trackType","callParticipantsListContainer","participants","horizontal","numberOfColumns","exports","useMemo","StyleSheet","create","flex","backgroundColor","colors","sheetPrimary","overflow","borderRadius","borderRadiusSizes","sm"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AAIA,IAAAO,YAAA,GAAAP,OAAA;AAIA,IAAAQ,aAAA,GAAAR,OAAA;AAEA,IAAAS,eAAA,GAAAT,OAAA;AAA+D,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,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AMmB,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEL;EAAM,CAAC,GAAG,IAAAG,sBAAQ,EAAC,CAAC;EAC5B,OAAO,IAAA4C,cAAO,EACZ,MACEC,uBAAU,CAACC,MAAM,CAAC;IAChBb,SAAS,EAAE;MACTc,IAAI,EAAE,CAAC;MACPC,eAAe,EAAEnD,KAAK,CAACoD,MAAM,CAACC;IAChC,CAAC;IACDf,4BAA4B,EAAE;MAC5BY,IAAI,EAAE;IACR,CAAC;IACDX,kBAAkB,EAAE;MAClBW,IAAI,EAAE,CAAC;MACPI,QAAQ,EAAE,QAAQ;MAClBC,YAAY,EAAEvD,KAAK,CAACE,QAAQ,CAACsD,iBAAiB,CAACC,EAAE;MACjDhC,gBAAgB,EAAEzB,KAAK,CAACE,QAAQ,CAACwB,YAAY,CAAC+B;IAChD,CAAC;IACDf,6BAA6B,EAAE;MAC7BQ,IAAI,EAAE;IACR;EACF,CAAC,CAAC,EACJ,CAAClD,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
@@ -11,6 +11,7 @@ var _useDebouncedValue = require("../../../utils/hooks/useDebouncedValue");
11
11
  var _videoReactBindings = require("@stream-io/video-react-bindings");
12
12
  var _TestIds = require("../../../constants/TestIds");
13
13
  var _ParticipantView = require("../../Participant/ParticipantView");
14
+ var _contexts = require("../../../contexts");
14
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
17
  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); }
@@ -42,6 +43,7 @@ const CallParticipantsList = ({
42
43
  supportedReactions,
43
44
  landscape
44
45
  }) => {
46
+ const styles = useStyles();
45
47
  const [containerLayout, setContainerLayout] = (0, _react.useState)({
46
48
  width: 0,
47
49
  height: 0
@@ -123,12 +125,14 @@ const CallParticipantsList = ({
123
125
  containerWidth: containerLayout.width,
124
126
  participantsLength: participants.length,
125
127
  numberOfColumns,
126
- horizontal
128
+ horizontal,
129
+ margin: styles.participant.margin
127
130
  });
128
131
  const itemContainerStyle = (0, _react.useMemo)(() => {
129
132
  const style = {
130
133
  width: itemWidth,
131
- height: itemHeight
134
+ height: itemHeight,
135
+ margin: styles.participant.margin
132
136
  };
133
137
  if (horizontal) {
134
138
  return [styles.participantWrapperHorizontal, style];
@@ -137,7 +141,7 @@ const CallParticipantsList = ({
137
141
  return [styles.landScapeStyle, style];
138
142
  }
139
143
  return style;
140
- }, [itemWidth, itemHeight, horizontal, landscape]);
144
+ }, [itemWidth, itemHeight, horizontal, landscape, styles]);
141
145
  const participantProps = {
142
146
  ParticipantLabel,
143
147
  ParticipantNetworkQualityIndicator,
@@ -192,19 +196,27 @@ const CallParticipantsList = ({
192
196
  });
193
197
  };
194
198
  exports.CallParticipantsList = CallParticipantsList;
195
- const styles = _reactNative.StyleSheet.create({
196
- flexed: {
197
- flex: 1
198
- },
199
- participantWrapperHorizontal: {
200
- // note: if marginHorizontal is changed, be sure to change the width calculation in calculateParticipantViewSize function
201
- marginHorizontal: 8,
202
- borderRadius: 10
203
- },
204
- landScapeStyle: {
205
- borderRadius: 10
206
- }
207
- });
199
+ const useStyles = () => {
200
+ const {
201
+ theme
202
+ } = (0, _contexts.useTheme)();
203
+ return (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
204
+ flexed: {
205
+ flex: 1
206
+ },
207
+ participantWrapperHorizontal: {
208
+ // note: if marginHorizontal is changed, be sure to change the width calculation in calculateParticipantViewSize function
209
+ marginHorizontal: theme.variants.spacingSizes.sm,
210
+ borderRadius: theme.variants.borderRadiusSizes.sm
211
+ },
212
+ landScapeStyle: {
213
+ borderRadius: theme.variants.borderRadiusSizes.sm
214
+ },
215
+ participant: {
216
+ margin: theme.variants.spacingSizes.xs
217
+ }
218
+ }), [theme]);
219
+ };
208
220
 
209
221
  /**
210
222
  * This function calculates the size of the participant view based on the size of the container (the phone's screen size) and the number of participants.
@@ -220,7 +232,8 @@ function calculateParticipantViewSize({
220
232
  containerWidth,
221
233
  participantsLength,
222
234
  numberOfColumns,
223
- horizontal
235
+ horizontal,
236
+ margin
224
237
  }) {
225
238
  let itemHeight = containerHeight;
226
239
  // in vertical mode, we calculate the height of the participant view based on the containerHeight (aka the phone's screen height)
@@ -238,6 +251,8 @@ function calculateParticipantViewSize({
238
251
  // in horizontal mode we apply margin of 8 to the participant view and that should be subtracted from the width
239
252
  itemWidth = itemWidth - 8 * 2;
240
253
  }
254
+ itemHeight = itemHeight - margin;
255
+ itemWidth = itemWidth - margin;
241
256
  return {
242
257
  itemHeight,
243
258
  itemWidth
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_videoClient","_useDebouncedValue","_videoReactBindings","_TestIds","_ParticipantView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","VIEWABILITY_CONFIG","waitForInteraction","itemVisiblePercentThreshold","CallParticipantsList","numberOfColumns","horizontal","participants","ParticipantView","DefaultParticipantView","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","VideoRenderer","supportedReactions","landscape","containerLayout","setContainerLayout","useState","width","height","viewableParticipantSessionIds","useRef","Set","_forceUpdateValue","forceUpdate","useReducer","x","forceUpdateValue","useDebouncedValue","activeCall","useCall","activeCallRef","current","onViewableItemsChanged","viewableItems","participantPatches","mustUpdate","newVisibleParticipantSessionIds","map","v","key","oldVisibleParticipantSessionIds","forEach","viewportVisibilityState","videoTrack","VisibilityState","VISIBLE","screenShareTrack","UNKNOWN","state","updateParticipants","keyExtractor","item","sessionId","onLayout","event","nativeEvent","layout","prev","itemHeight","itemWidth","calculateParticipantViewSize","containerHeight","containerWidth","participantsLength","itemContainerStyle","useMemo","style","styles","participantWrapperHorizontal","landScapeStyle","participantProps","renderItem","useCallback","participant","isVisible","createElement","Fragment","trackType","shouldWrapByColumns","index","flexed","FlatList","undefined","data","viewabilityConfig","numColumns","showsHorizontalScrollIndicator","extraData","testID","ComponentTestIds","CALL_PARTICIPANTS_LIST","exports","StyleSheet","create","flex","marginHorizontal","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Call/CallParticipantsList/CallParticipantsList.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAKA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAI2C,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,y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AEA,UAAW;IACvBmF,8BAA8B,EAAE,KAAM;IACtCC,SAAS,EAAE,GAAG7D,gBAAgB,EAAG,CAAC;IAAA;IAClC8D,MAAM,EAAEC,yBAAgB,CAACC;EAAuB,CACjD,CAAC;AAEN,CAAC;AAACC,OAAA,CAAA1F,oBAAA,GAAAA,oBAAA;AAEF,MAAMkE,MAAM,GAAGyB,uBAAU,CAACC,MAAM,CAAC;EAC/Bb,MAAM,EAAE;IACNc,IAAI,EAAE;EACR,CAAC;EACD1B,4BAA4B,EAAE;IAC5B;IACA2B,gBAAgB,EAAE,CAAC;IACnBC,YAAY,EAAE;EAChB,CAAC;EACD3B,cAAc,EAAE;IACd2B,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASpC,4BAA4BA,CAAC;EACpCC,eAAe;EACfC,cAAc;EACdC,kBAAkB;EAClB7D,eAAe;EACfC;AAOF,CAAC,EAAE;EACD,IAAIuD,UAAU,GAAGG,eAAe;EAChC;EACA,IAAI,CAAC1D,UAAU,EAAE;IACf,IAAI4D,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,GAAG5D,eAAe;EAChD,IAAIC,UAAU,EAAE;IACd;IACAwD,SAAS,GAAGA,SAAS,GAAG,CAAC,GAAG,CAAC;EAC/B;EAEA,OAAO;IAAED,UAAU;IAAEC;EAAU,CAAC;AAClC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_videoClient","_useDebouncedValue","_videoReactBindings","_TestIds","_ParticipantView","_contexts","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","VIEWABILITY_CONFIG","waitForInteraction","itemVisiblePercentThreshold","CallParticipantsList","numberOfColumns","horizontal","participants","ParticipantView","DefaultParticipantView","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","VideoRenderer","supportedReactions","landscape","styles","useStyles","containerLayout","setContainerLayout","useState","width","height","viewableParticipantSessionIds","useRef","Set","_forceUpdateValue","forceUpdate","useReducer","x","forceUpdateValue","useDebouncedValue","activeCall","useCall","activeCallRef","current","onViewableItemsChanged","viewableItems","participantPatches","mustUpdate","newVisibleParticipantSessionIds","map","v","key","oldVisibleParticipantSessionIds","forEach","viewportVisibilityState","videoTrack","VisibilityState","VISIBLE","screenShareTrack","UNKNOWN","state","updateParticipants","keyExtractor","item","sessionId","onLayout","event","nativeEvent","layout","prev","itemHeight","itemWidth","calculateParticipantViewSize","containerHeight","containerWidth","participantsLength","margin","participant","itemContainerStyle","useMemo","style","participantWrapperHorizontal","landScapeStyle","participantProps","renderItem","useCallback","isVisible","createElement","Fragment","trackType","shouldWrapByColumns","index","flexed","FlatList","undefined","data","viewabilityConfig","numColumns","showsHorizontalScrollIndicator","extraData","testID","ComponentTestIds","CALL_PARTICIPANTS_LIST","exports","theme","useTheme","StyleSheet","create","flex","marginHorizontal","variants","spacingSizes","sm","borderRadius","borderRadiusSizes","xs"],"sourceRoot":"../../../../../src","sources":["components/Call/CallParticipantsList/CallParticipantsList.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAKA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAMA,IAAAO,SAAA,GAAAP,OAAA;AAA6C,SAAAQ,yBAAAC,CAAA,6BAAAC,OAA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AC,EACJ,CAACX,KAAK,CACR,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAShC,4BAA4BA,CAAC;EACpCC,eAAe;EACfC,cAAc;EACdC,kBAAkB;EAClB/D,eAAe;EACfC,UAAU;EACV+D;AAQF,CAAC,EAAE;EACD,IAAIN,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,GAAGM,MAAM;EAChCL,SAAS,GAAGA,SAAS,GAAGK,MAAM;EAC9B,OAAO;IAAEN,UAAU;IAAEC;EAAU,CAAC;AAClC","ignoreList":[]}
@@ -4,12 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JoinCallButton = void 0;
7
- var _react = _interopRequireDefault(require("react"));
7
+ var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _videoReactBindings = require("@stream-io/video-react-bindings");
10
10
  var _ThemeContext = require("../../../contexts/ThemeContext");
11
11
  var _videoClient = require("@stream-io/video-client");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
14
  /**
14
15
  * Props for the Join Call Button in the Lobby component.
15
16
  */
@@ -28,6 +29,7 @@ const JoinCallButton = ({
28
29
  joinCallButton
29
30
  }
30
31
  } = (0, _ThemeContext.useTheme)();
32
+ const styles = useStyles();
31
33
  const {
32
34
  t
33
35
  } = (0, _videoReactBindings.useI18n)();
@@ -51,24 +53,29 @@ const JoinCallButton = ({
51
53
  };
52
54
  return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
53
55
  style: [styles.container, {
54
- backgroundColor: colors.primary
56
+ backgroundColor: colors.buttonPrimary
55
57
  }, joinCallButton.container],
56
58
  onPress: onPress
57
59
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
58
60
  style: [styles.label, {
59
- color: colors.static_white
61
+ color: colors.textPrimary
60
62
  }, typefaces.subtitleBold, joinCallButton.label]
61
63
  }, t('Join')));
62
64
  };
63
65
  exports.JoinCallButton = JoinCallButton;
64
- const styles = _reactNative.StyleSheet.create({
65
- container: {
66
- borderRadius: 10,
67
- marginTop: 16,
68
- paddingVertical: 8
69
- },
70
- label: {
71
- textAlign: 'center'
72
- }
73
- });
66
+ const useStyles = () => {
67
+ const {
68
+ theme
69
+ } = (0, _ThemeContext.useTheme)();
70
+ return (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
71
+ container: {
72
+ borderRadius: theme.variants.borderRadiusSizes.lg,
73
+ marginTop: theme.variants.spacingSizes.md,
74
+ paddingVertical: theme.variants.spacingSizes.sm
75
+ },
76
+ label: {
77
+ textAlign: 'center'
78
+ }
79
+ }), [theme]);
80
+ };
74
81
  //# sourceMappingURL=JoinCallButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_videoReactBindings","_ThemeContext","_videoClient","e","__esModule","default","JoinCallButton","onJoinCallHandler","onPressHandler","theme","colors","typefaces","joinCallButton","useTheme","t","useI18n","call","useCall","onPress","join","create","error","logger","getLogger","createElement","Pressable","style","styles","container","backgroundColor","primary","Text","label","color","static_white","subtitleBold","exports","StyleSheet","borderRadius","marginTop","paddingVertical","textAlign"],"sourceRoot":"../../../../../src","sources":["components/Call/Lobby/JoinCallButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAAoD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpD;AACA;AACA;;AAKA;AACA;AACA;AACO,MAAMG,cAAc,GAAGA,CAAC;EAC7BC,iBAAiB;EACjBC;AACmB,CAAC,KAAK;EACzB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,SAAS;MAAEC;IAAe;EAC7C,CAAC,GAAG,IAAAC,sBAAQ,EAAC,CAAC;EACd,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,2BAAO,EAAC,CAAC;EACvB,MAAMC,IAAI,GAAG,IAAAC,2BAAO,EAAC,CAAC;EAEtB,MAAMC,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIV,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IACA,IAAI;MACF,MAAMQ,IAAI,EAAEG,IAAI,CAAC;QAAEC,MAAM,EAAE;MAAK,CAAC,CAAC;MAClC,IAAIb,iBAAiB,EAAE;QACrBA,iBAAiB,CAAC,CAAC;MACrB;IACF,CAAC,CAAC,OAAOc,KAAK,EAAE;MACd,MAAMC,MAAM,GAAG,IAAAC,sBAAS,EAAC,CAAC,gBAAgB,CAAC,CAAC;MAC5CD,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAED,KAAK,CAAC;IAC/C;EACF,CAAC;EAED,oBACEzB,MAAA,CAAAS,OAAA,CAAAmB,aAAA,CAACzB,YAAA,CAAA0B,SAAS;IACRC,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MAAEC,eAAe,EAAEnB,MAAM,CAACoB;IAAQ,CAAC,EACnClB,cAAc,CAACgB,SAAS,CACxB;IACFV,OAAO,EAAEA;EAAQ,gBAEjBtB,MAAA,CAAAS,OAAA,CAAAmB,aAAA,CAACzB,YAAA,CAAAgC,IAAI;IACHL,KAAK,EAAE,CACLC,MAAM,CAACK,KAAK,EACZ;MACEC,KAAK,EAAEvB,MAAM,CAACwB;IAChB,CAAC,EACDvB,SAAS,CAACwB,YAAY,EACtBvB,cAAc,CAACoB,KAAK;EACpB,GAEDlB,CAAC,CAAC,MAAM,CACL,CACG,CAAC;AAEhB,CAAC;AAACsB,OAAA,CAAA9B,cAAA,GAAAA,cAAA;AAEF,MAAMqB,MAAM,GAAGU,uBAAU,CAACjB,MAAM,CAAC;EAC/BQ,SAAS,EAAE;IACTU,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE,EAAE;IACbC,eAAe,EAAE;EACnB,CAAC;EACDR,KAAK,EAAE;IACLS,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_videoReactBindings","_ThemeContext","_videoClient","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","JoinCallButton","onJoinCallHandler","onPressHandler","theme","colors","typefaces","joinCallButton","useTheme","styles","useStyles","useI18n","useCall","onPress","join","create","error","logger","getLogger","createElement","Pressable","style","container","backgroundColor","buttonPrimary","Text","label","color","textPrimary","subtitleBold","exports","useMemo","StyleSheet","borderRadius","variants","borderRadiusSizes","lg","marginTop","spacingSizes","md","paddingVertical","sm","textAlign"],"sourceRoot":"../../../../../src","sources":["components/Call/Lobby/JoinCallButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAAoD,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CA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AAc,CAACe,SAAS,CACxB;IACFT,OAAO,EAAEA;EAAQ,gBAEjBvC,MAAA,CAAAa,OAAA,CAAAgC,aAAA,CAAC1C,YAAA,CAAAgD,IAAI;IACHJ,KAAK,EAAE,CACLZ,MAAM,CAACiB,KAAK,EACZ;MAAEC,KAAK,EAAEtB,MAAM,CAACuB;IAAY,CAAC,EAC7BtB,SAAS,CAACuB,YAAY,EACtBtB,cAAc,CAACmB,KAAK;EACpB,GAEDzC,CAAC,CAAC,MAAM,CACL,CACG,CAAC;AAEhB,CAAC;AAAC6C,OAAA,CAAA7B,cAAA,GAAAA,cAAA;AAEF,MAAMS,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEN;EAAM,CAAC,GAAG,IAAAI,sBAAQ,EAAC,CAAC;EAC5B,OAAO,IAAAuB,cAAO,EACZ,MACEC,uBAAU,CAACjB,MAAM,CAAC;IAChBO,SAAS,EAAE;MACTW,YAAY,EAAE7B,KAAK,CAAC8B,QAAQ,CAACC,iBAAiB,CAACC,EAAE;MACjDC,SAAS,EAAEjC,KAAK,CAAC8B,QAAQ,CAACI,YAAY,CAACC,EAAE;MACzCC,eAAe,EAAEpC,KAAK,CAAC8B,QAAQ,CAACI,YAAY,CAACG;IAC/C,CAAC;IACDf,KAAK,EAAE;MACLgB,SAAS,EAAE;IACb;EACF,CAAC,CAAC,EACJ,CAACtC,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Lobby = void 0;
7
- var _react = _interopRequireDefault(require("react"));
7
+ var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _icons = require("../../../icons");
10
9
  var _videoReactBindings = require("@stream-io/video-react-bindings");
11
10
  var _Avatar = require("../../utility/Avatar");
12
- var _constants = require("../../../constants");
13
11
  var _reactNativeWebrtc = require("@stream-io/react-native-webrtc");
14
12
  var _LobbyControls = require("../CallControls/LobbyControls");
15
13
  var _JoinCallButton = require("./JoinCallButton");
@@ -17,7 +15,8 @@ var _ThemeContext = require("../../../contexts/ThemeContext");
17
15
  var _useCallMediaStreamCleanup = require("../../../hooks/internal/useCallMediaStreamCleanup");
18
16
  var _LobbyFooter = require("./LobbyFooter");
19
17
  var _useApplyDefaultMediaStreamSettings = require("../../../hooks/useApplyDefaultMediaStreamSettings");
20
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
20
  /**
22
21
  * Props for the Lobby Component.
23
22
  */
@@ -39,6 +38,7 @@ const Lobby = ({
39
38
  typefaces
40
39
  }
41
40
  } = (0, _ThemeContext.useTheme)();
41
+ const styles = useStyles(landscape);
42
42
  const connectedUser = (0, _videoReactBindings.useConnectedUser)();
43
43
  const {
44
44
  useCameraState,
@@ -61,26 +61,15 @@ const Lobby = ({
61
61
  image: connectedUser?.image,
62
62
  name: connectedUser?.name
63
63
  };
64
- const landscapeStyles = {
65
- flexDirection: landscape ? 'row' : 'column'
66
- };
67
64
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
68
- style: [styles.container, landscapeStyles, {
69
- backgroundColor: colors.static_grey
70
- }, lobby.container]
71
- }, connectedUser && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
72
- style: [styles.topContainer, lobby.topContainer]
73
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
74
- style: [styles.heading, {
75
- color: colors.static_white
76
- }, typefaces.heading4, lobby.heading]
77
- }, t('Before Joining')), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
78
- style: [styles.subHeading, {
79
- color: colors.text_low_emphasis
80
- }, typefaces.subtitle]
81
- }, isVideoEnabledInCall ? t('Setup your audio and video') : t('Setup your audio')), isVideoEnabledInCall && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
65
+ style: [styles.container, lobby.container]
66
+ }, connectedUser && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
67
+ style: [styles.heading, typefaces.heading5, lobby.heading]
68
+ }, t('Before joining')), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
69
+ style: [styles.subHeading, lobby.subHeading]
70
+ }, t('Setup your audio and video')), isVideoEnabledInCall && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
82
71
  style: [styles.videoContainer, {
83
- backgroundColor: colors.disabled
72
+ backgroundColor: colors.sheetTertiary
84
73
  }, lobby.videoContainer]
85
74
  }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
86
75
  style: styles.topView
@@ -93,12 +82,10 @@ const Lobby = ({
93
82
  style: [styles.avatarContainer, lobby.avatarContainer]
94
83
  }, /*#__PURE__*/_react.default.createElement(_Avatar.Avatar, {
95
84
  participant: connectedUserAsParticipant
96
- })), /*#__PURE__*/_react.default.createElement(ParticipantStatus, null))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
97
- style: [styles.bottomContainer, lobby.bottomContainer]
98
- }, LobbyControls && /*#__PURE__*/_react.default.createElement(LobbyControls, null), LobbyFooter && /*#__PURE__*/_react.default.createElement(LobbyFooter, {
85
+ })), /*#__PURE__*/_react.default.createElement(ParticipantStatus, null))), LobbyControls && /*#__PURE__*/_react.default.createElement(LobbyControls, null), LobbyFooter && /*#__PURE__*/_react.default.createElement(LobbyFooter, {
99
86
  JoinCallButton: JoinCallButton,
100
87
  onJoinCallHandler: onJoinCallHandler
101
- })));
88
+ }));
102
89
  };
103
90
  exports.Lobby = Lobby;
104
91
  const ParticipantStatus = () => {
@@ -106,84 +93,69 @@ const ParticipantStatus = () => {
106
93
  theme: {
107
94
  colors,
108
95
  typefaces,
109
- lobby,
110
- variants: {
111
- iconSizes
112
- }
96
+ lobby
113
97
  }
114
98
  } = (0, _ThemeContext.useTheme)();
99
+ const styles = useStyles();
115
100
  const connectedUser = (0, _videoReactBindings.useConnectedUser)();
116
- const {
117
- useMicrophoneState
118
- } = (0, _videoReactBindings.useCallStateHooks)();
119
101
  const participantLabel = connectedUser?.name ?? connectedUser?.id;
120
- const {
121
- status: micStatus
122
- } = useMicrophoneState();
123
102
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
124
103
  style: [styles.participantStatusContainer, {
125
- backgroundColor: colors.static_overlay
104
+ backgroundColor: colors.sheetOverlay
126
105
  }, lobby.participantStatusContainer]
127
106
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
128
107
  style: [styles.userNameLabel, {
129
- color: colors.static_white
108
+ color: colors.textPrimary
130
109
  }, typefaces.caption, lobby.userNameLabel],
131
110
  numberOfLines: 1
132
- }, participantLabel), (!micStatus || micStatus === 'disabled') && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
133
- style: [styles.audioMutedIconContainer, {
134
- height: iconSizes.xs,
135
- width: iconSizes.xs
136
- }, lobby.audioMutedIconContainer]
137
- }, /*#__PURE__*/_react.default.createElement(_icons.MicOff, {
138
- color: colors.error
139
- })));
111
+ }, participantLabel));
112
+ };
113
+ const useStyles = (landscape = false) => {
114
+ const {
115
+ theme
116
+ } = (0, _ThemeContext.useTheme)();
117
+ return (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
118
+ heading: {
119
+ textAlign: 'center',
120
+ color: theme.colors.textPrimary,
121
+ paddingBottom: theme.variants.spacingSizes.xs
122
+ },
123
+ subHeading: {
124
+ textAlign: 'center',
125
+ paddingBottom: theme.variants.spacingSizes.md,
126
+ color: theme.colors.textSecondary
127
+ },
128
+ container: {
129
+ flex: 1,
130
+ justifyContent: 'center',
131
+ backgroundColor: theme.colors.sheetPrimary,
132
+ paddingRight: theme.variants.insets.right + theme.variants.spacingSizes.sm,
133
+ paddingLeft: theme.variants.insets.left + theme.variants.spacingSizes.sm,
134
+ paddingTop: theme.variants.insets.top,
135
+ paddingBottom: theme.variants.insets.bottom
136
+ },
137
+ videoContainer: {
138
+ height: landscape ? '40%' : '50%',
139
+ borderRadius: theme.variants.borderRadiusSizes.md,
140
+ justifyContent: 'space-between',
141
+ alignItems: 'center',
142
+ overflow: 'hidden'
143
+ },
144
+ topView: {},
145
+ participantStatusContainer: {
146
+ alignSelf: 'flex-start',
147
+ flexDirection: 'row',
148
+ alignItems: 'center',
149
+ padding: theme.variants.spacingSizes.sm,
150
+ borderTopRightRadius: theme.variants.borderRadiusSizes.sm
151
+ },
152
+ avatarContainer: {
153
+ flex: 2,
154
+ justifyContent: 'center'
155
+ },
156
+ userNameLabel: {
157
+ flexShrink: 1
158
+ }
159
+ }), [theme, landscape]);
140
160
  };
141
- const styles = _reactNative.StyleSheet.create({
142
- container: {
143
- flex: 1,
144
- justifyContent: 'space-evenly'
145
- },
146
- topContainer: {
147
- flex: 2,
148
- justifyContent: 'space-evenly',
149
- paddingHorizontal: 12
150
- },
151
- heading: {
152
- textAlign: 'center'
153
- },
154
- subHeading: {
155
- textAlign: 'center'
156
- },
157
- videoContainer: {
158
- height: _constants.LOBBY_VIDEO_VIEW_HEIGHT,
159
- borderRadius: 20,
160
- justifyContent: 'space-between',
161
- alignItems: 'center',
162
- overflow: 'hidden',
163
- padding: 8
164
- },
165
- topView: {},
166
- bottomContainer: {
167
- flex: 2,
168
- justifyContent: 'space-evenly',
169
- paddingHorizontal: 12
170
- },
171
- participantStatusContainer: {
172
- alignSelf: 'flex-start',
173
- flexDirection: 'row',
174
- alignItems: 'center',
175
- padding: 8,
176
- borderRadius: 5
177
- },
178
- avatarContainer: {
179
- flex: 2,
180
- justifyContent: 'center'
181
- },
182
- userNameLabel: {
183
- flexShrink: 1
184
- },
185
- audioMutedIconContainer: {
186
- marginLeft: 8
187
- }
188
- });
189
161
  //# sourceMappingURL=Lobby.js.map