@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
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useMemo } from 'react';
2
2
  import { LobbyProps } from './Lobby';
3
3
  import { Pressable, StyleSheet, Text } from 'react-native';
4
4
  import { useCall, useI18n } from '@stream-io/video-react-bindings';
@@ -22,6 +22,7 @@ export const JoinCallButton = ({
22
22
  const {
23
23
  theme: { colors, typefaces, joinCallButton },
24
24
  } = useTheme();
25
+ const styles = useStyles();
25
26
  const { t } = useI18n();
26
27
  const call = useCall();
27
28
 
@@ -45,7 +46,7 @@ export const JoinCallButton = ({
45
46
  <Pressable
46
47
  style={[
47
48
  styles.container,
48
- { backgroundColor: colors.primary },
49
+ { backgroundColor: colors.buttonPrimary },
49
50
  joinCallButton.container,
50
51
  ]}
51
52
  onPress={onPress}
@@ -53,9 +54,7 @@ export const JoinCallButton = ({
53
54
  <Text
54
55
  style={[
55
56
  styles.label,
56
- {
57
- color: colors.static_white,
58
- },
57
+ { color: colors.textPrimary },
59
58
  typefaces.subtitleBold,
60
59
  joinCallButton.label,
61
60
  ]}
@@ -66,13 +65,20 @@ export const JoinCallButton = ({
66
65
  );
67
66
  };
68
67
 
69
- const styles = StyleSheet.create({
70
- container: {
71
- borderRadius: 10,
72
- marginTop: 16,
73
- paddingVertical: 8,
74
- },
75
- label: {
76
- textAlign: 'center',
77
- },
78
- });
68
+ const useStyles = () => {
69
+ const { theme } = useTheme();
70
+ return useMemo(
71
+ () =>
72
+ StyleSheet.create({
73
+ container: {
74
+ borderRadius: theme.variants.borderRadiusSizes.lg,
75
+ marginTop: theme.variants.spacingSizes.md,
76
+ paddingVertical: theme.variants.spacingSizes.sm,
77
+ },
78
+ label: {
79
+ textAlign: 'center',
80
+ },
81
+ }),
82
+ [theme]
83
+ );
84
+ };
@@ -1,6 +1,5 @@
1
- import React, { ComponentType } from 'react';
2
- import { StyleSheet, Text, View, ViewStyle } from 'react-native';
3
- import { MicOff } from '../../../icons';
1
+ import React, { ComponentType, useMemo } from 'react';
2
+ import { StyleSheet, Text, View } from 'react-native';
4
3
  import {
5
4
  useCallStateHooks,
6
5
  useConnectedUser,
@@ -8,7 +7,6 @@ import {
8
7
  } from '@stream-io/video-react-bindings';
9
8
  import { Avatar } from '../../utility/Avatar';
10
9
  import { StreamVideoParticipant } from '@stream-io/video-client';
11
- import { LOBBY_VIDEO_VIEW_HEIGHT } from '../../../constants';
12
10
  import { RTCView } from '@stream-io/react-native-webrtc';
13
11
  import { LobbyControls as DefaultLobbyControls } from '../CallControls/LobbyControls';
14
12
  import {
@@ -64,6 +62,7 @@ export const Lobby = ({
64
62
  const {
65
63
  theme: { colors, lobby, typefaces },
66
64
  } = useTheme();
65
+ const styles = useStyles(landscape);
67
66
  const connectedUser = useConnectedUser();
68
67
  const { useCameraState, useCallSettings } = useCallStateHooks();
69
68
  const callSettings = useCallSettings();
@@ -81,47 +80,21 @@ export const Lobby = ({
81
80
  name: connectedUser?.name,
82
81
  } as StreamVideoParticipant;
83
82
 
84
- const landscapeStyles: ViewStyle = {
85
- flexDirection: landscape ? 'row' : 'column',
86
- };
87
-
88
83
  return (
89
- <View
90
- style={[
91
- styles.container,
92
- landscapeStyles,
93
- { backgroundColor: colors.static_grey },
94
- lobby.container,
95
- ]}
96
- >
84
+ <View style={[styles.container, lobby.container]}>
97
85
  {connectedUser && (
98
- <View style={[styles.topContainer, lobby.topContainer]}>
99
- <Text
100
- style={[
101
- styles.heading,
102
- { color: colors.static_white },
103
- typefaces.heading4,
104
- lobby.heading,
105
- ]}
106
- >
107
- {t('Before Joining')}
86
+ <>
87
+ <Text style={[styles.heading, typefaces.heading5, lobby.heading]}>
88
+ {t('Before joining')}
108
89
  </Text>
109
- <Text
110
- style={[
111
- styles.subHeading,
112
- { color: colors.text_low_emphasis },
113
- typefaces.subtitle,
114
- ]}
115
- >
116
- {isVideoEnabledInCall
117
- ? t('Setup your audio and video')
118
- : t('Setup your audio')}
90
+ <Text style={[styles.subHeading, lobby.subHeading]}>
91
+ {t('Setup your audio and video')}
119
92
  </Text>
120
93
  {isVideoEnabledInCall && (
121
94
  <View
122
95
  style={[
123
96
  styles.videoContainer,
124
- { backgroundColor: colors.disabled },
97
+ { backgroundColor: colors.sheetTertiary },
125
98
  lobby.videoContainer,
126
99
  ]}
127
100
  >
@@ -141,48 +114,38 @@ export const Lobby = ({
141
114
  <ParticipantStatus />
142
115
  </View>
143
116
  )}
144
- </View>
117
+ </>
118
+ )}
119
+ {LobbyControls && <LobbyControls />}
120
+ {LobbyFooter && (
121
+ <LobbyFooter
122
+ JoinCallButton={JoinCallButton}
123
+ onJoinCallHandler={onJoinCallHandler}
124
+ />
145
125
  )}
146
- <View style={[styles.bottomContainer, lobby.bottomContainer]}>
147
- {LobbyControls && <LobbyControls />}
148
- {LobbyFooter && (
149
- <LobbyFooter
150
- JoinCallButton={JoinCallButton}
151
- onJoinCallHandler={onJoinCallHandler}
152
- />
153
- )}
154
- </View>
155
126
  </View>
156
127
  );
157
128
  };
158
129
 
159
130
  const ParticipantStatus = () => {
160
131
  const {
161
- theme: {
162
- colors,
163
- typefaces,
164
- lobby,
165
- variants: { iconSizes },
166
- },
132
+ theme: { colors, typefaces, lobby },
167
133
  } = useTheme();
134
+ const styles = useStyles();
168
135
  const connectedUser = useConnectedUser();
169
- const { useMicrophoneState } = useCallStateHooks();
170
136
  const participantLabel = connectedUser?.name ?? connectedUser?.id;
171
- const { status: micStatus } = useMicrophoneState();
172
137
  return (
173
138
  <View
174
139
  style={[
175
140
  styles.participantStatusContainer,
176
- {
177
- backgroundColor: colors.static_overlay,
178
- },
141
+ { backgroundColor: colors.sheetOverlay },
179
142
  lobby.participantStatusContainer,
180
143
  ]}
181
144
  >
182
145
  <Text
183
146
  style={[
184
147
  styles.userNameLabel,
185
- { color: colors.static_white },
148
+ { color: colors.textPrimary },
186
149
  typefaces.caption,
187
150
  lobby.userNameLabel,
188
151
  ]}
@@ -190,69 +153,59 @@ const ParticipantStatus = () => {
190
153
  >
191
154
  {participantLabel}
192
155
  </Text>
193
- {(!micStatus || micStatus === 'disabled') && (
194
- <View
195
- style={[
196
- styles.audioMutedIconContainer,
197
- {
198
- height: iconSizes.xs,
199
- width: iconSizes.xs,
200
- },
201
- lobby.audioMutedIconContainer,
202
- ]}
203
- >
204
- <MicOff color={colors.error} />
205
- </View>
206
- )}
207
156
  </View>
208
157
  );
209
158
  };
210
159
 
211
- const styles = StyleSheet.create({
212
- container: {
213
- flex: 1,
214
- justifyContent: 'space-evenly',
215
- },
216
- topContainer: {
217
- flex: 2,
218
- justifyContent: 'space-evenly',
219
- paddingHorizontal: 12,
220
- },
221
- heading: {
222
- textAlign: 'center',
223
- },
224
- subHeading: {
225
- textAlign: 'center',
226
- },
227
- videoContainer: {
228
- height: LOBBY_VIDEO_VIEW_HEIGHT,
229
- borderRadius: 20,
230
- justifyContent: 'space-between',
231
- alignItems: 'center',
232
- overflow: 'hidden',
233
- padding: 8,
234
- },
235
- topView: {},
236
- bottomContainer: {
237
- flex: 2,
238
- justifyContent: 'space-evenly',
239
- paddingHorizontal: 12,
240
- },
241
- participantStatusContainer: {
242
- alignSelf: 'flex-start',
243
- flexDirection: 'row',
244
- alignItems: 'center',
245
- padding: 8,
246
- borderRadius: 5,
247
- },
248
- avatarContainer: {
249
- flex: 2,
250
- justifyContent: 'center',
251
- },
252
- userNameLabel: {
253
- flexShrink: 1,
254
- },
255
- audioMutedIconContainer: {
256
- marginLeft: 8,
257
- },
258
- });
160
+ const useStyles = (landscape = false) => {
161
+ const { theme } = useTheme();
162
+ return useMemo(
163
+ () =>
164
+ StyleSheet.create({
165
+ heading: {
166
+ textAlign: 'center',
167
+ color: theme.colors.textPrimary,
168
+ paddingBottom: theme.variants.spacingSizes.xs,
169
+ },
170
+ subHeading: {
171
+ textAlign: 'center',
172
+ paddingBottom: theme.variants.spacingSizes.md,
173
+ color: theme.colors.textSecondary,
174
+ },
175
+ container: {
176
+ flex: 1,
177
+ justifyContent: 'center',
178
+ backgroundColor: theme.colors.sheetPrimary,
179
+ paddingRight:
180
+ theme.variants.insets.right + theme.variants.spacingSizes.sm,
181
+ paddingLeft:
182
+ theme.variants.insets.left + theme.variants.spacingSizes.sm,
183
+ paddingTop: theme.variants.insets.top,
184
+ paddingBottom: theme.variants.insets.bottom,
185
+ },
186
+ videoContainer: {
187
+ height: landscape ? '40%' : '50%',
188
+ borderRadius: theme.variants.borderRadiusSizes.md,
189
+ justifyContent: 'space-between',
190
+ alignItems: 'center',
191
+ overflow: 'hidden',
192
+ },
193
+ topView: {},
194
+ participantStatusContainer: {
195
+ alignSelf: 'flex-start',
196
+ flexDirection: 'row',
197
+ alignItems: 'center',
198
+ padding: theme.variants.spacingSizes.sm,
199
+ borderTopRightRadius: theme.variants.borderRadiusSizes.sm,
200
+ },
201
+ avatarContainer: {
202
+ flex: 2,
203
+ justifyContent: 'center',
204
+ },
205
+ userNameLabel: {
206
+ flexShrink: 1,
207
+ },
208
+ }),
209
+ [theme, landscape]
210
+ );
211
+ };
@@ -1,12 +1,9 @@
1
- import React from 'react';
1
+ import React, { useMemo } from 'react';
2
2
  import { LobbyProps } from './Lobby';
3
3
  import { View, StyleSheet, Text } from 'react-native';
4
- import {
5
- useCall,
6
- useCallStateHooks,
7
- useI18n,
8
- } from '@stream-io/video-react-bindings';
9
4
  import { useTheme } from '../../../contexts/ThemeContext';
5
+ import { useCallStateHooks, useI18n } from '@stream-io/video-react-bindings';
6
+ import { Lock } from '../../../icons/Lock';
10
7
 
11
8
  /**
12
9
  * Props for the Lobby Footer in the Lobby component.
@@ -24,42 +21,44 @@ export const LobbyFooter = ({
24
21
  JoinCallButton,
25
22
  }: LobbyFooterProps) => {
26
23
  const {
27
- theme: { colors, lobby, typefaces },
24
+ theme: { colors, lobby, variants },
28
25
  } = useTheme();
26
+ const styles = useStyles();
29
27
  const { useCallSession } = useCallStateHooks();
30
-
31
28
  const { t } = useI18n();
32
-
33
- const call = useCall();
34
29
  const session = useCallSession();
30
+ const numberOfParticipants = session?.participants.length;
35
31
 
36
- const participantsCount = session?.participants.length;
32
+ const participantsText = useMemo(() => {
33
+ if (!numberOfParticipants) {
34
+ return t('Currently there are no other participants in the call.');
35
+ }
36
+ if (numberOfParticipants === 1) {
37
+ return t('There is {{numberOfParticipants}} more person in the call.', {
38
+ numberOfParticipants,
39
+ });
40
+ }
41
+ return t('There are {{numberOfParticipants}} more people in the call.', {
42
+ numberOfParticipants,
43
+ });
44
+ }, [numberOfParticipants, t]);
37
45
 
38
46
  return (
39
- <View
40
- style={[
41
- styles.infoContainer,
42
- { backgroundColor: colors.static_overlay },
43
- lobby.infoContainer,
44
- ]}
45
- >
46
- <Text
47
- style={[
48
- { color: colors.static_white },
49
- typefaces.subtitleBold,
50
- lobby.infoText,
51
- ]}
52
- >
53
- {t('You are about to join a call with id {{ callId }}.', {
54
- callId: call?.id,
55
- }) +
56
- ' ' +
57
- (participantsCount
58
- ? t('{{ numberOfParticipants }} participant(s) are in the call.', {
59
- numberOfParticipants: participantsCount,
60
- })
61
- : t('You are first to join the call.'))}
62
- </Text>
47
+ <View style={[styles.mainContainer, lobby.infoContainer]}>
48
+ <View style={styles.textContainer}>
49
+ <View style={styles.iconContainer}>
50
+ <Lock color={colors.iconPrimary} size={variants.iconSizes.md} />
51
+ </View>
52
+ <Text
53
+ style={[
54
+ { color: colors.textPrimary },
55
+ styles.infoText,
56
+ lobby.infoText,
57
+ ]}
58
+ >
59
+ {t('You are about to join a call.') + ' ' + participantsText}
60
+ </Text>
61
+ </View>
63
62
  {JoinCallButton && (
64
63
  <JoinCallButton onJoinCallHandler={onJoinCallHandler} />
65
64
  )}
@@ -67,9 +66,32 @@ export const LobbyFooter = ({
67
66
  );
68
67
  };
69
68
 
70
- const styles = StyleSheet.create({
71
- infoContainer: {
72
- padding: 12,
73
- borderRadius: 10,
74
- },
75
- });
69
+ const useStyles = () => {
70
+ const { theme } = useTheme();
71
+ return useMemo(
72
+ () =>
73
+ StyleSheet.create({
74
+ mainContainer: {
75
+ padding: theme.variants.spacingSizes.sm,
76
+ },
77
+ textContainer: {
78
+ flexDirection: 'row',
79
+ alignItems: 'center',
80
+ justifyContent: 'center',
81
+ backgroundColor: theme.colors.sheetTertiary,
82
+ paddingHorizontal: theme.variants.spacingSizes.md,
83
+ paddingVertical: theme.variants.spacingSizes.xs,
84
+ borderRadius: theme.variants.borderRadiusSizes.sm,
85
+ },
86
+ iconContainer: {
87
+ marginRight: theme.variants.spacingSizes.sm,
88
+ },
89
+ infoText: {
90
+ fontSize: theme.variants.fontSizes.sm,
91
+ lineHeight: 20,
92
+ fontWeight: '400',
93
+ },
94
+ }),
95
+ [theme]
96
+ );
97
+ };
@@ -12,10 +12,6 @@ import {
12
12
  useI18n,
13
13
  } from '@stream-io/video-react-bindings';
14
14
  import { UserInfo } from './UserInfo';
15
- import {
16
- CallTopView as DefaultCallTopView,
17
- CallTopViewProps,
18
- } from '../CallTopView';
19
15
  import {
20
16
  IncomingCallControls as DefaultIncomingCallControls,
21
17
  IncomingCallControlsProps,
@@ -27,10 +23,6 @@ import { useApplyDefaultMediaStreamSettings } from '../../../hooks/useApplyDefau
27
23
  * Props for the IncomingCall Component.
28
24
  */
29
25
  export type IncomingCallProps = IncomingCallControlsProps & {
30
- /**
31
- * Prop to customize the CallTopView component in the IncomingCall component.
32
- */
33
- CallTopView?: React.ComponentType<CallTopViewProps> | null;
34
26
  /**
35
27
  * Prop to customize the IncomingCall controls.
36
28
  */
@@ -49,7 +41,6 @@ export type IncomingCallProps = IncomingCallControlsProps & {
49
41
  export const IncomingCall = ({
50
42
  onAcceptCallHandler,
51
43
  onRejectCallHandler,
52
- CallTopView = DefaultCallTopView,
53
44
  IncomingCallControls = DefaultIncomingCallControls,
54
45
  landscape,
55
46
  }: IncomingCallProps) => {
@@ -66,7 +57,6 @@ export const IncomingCall = ({
66
57
 
67
58
  return (
68
59
  <Background>
69
- {CallTopView && <CallTopView />}
70
60
  <View
71
61
  style={[styles.content, landscapeContentStyles, incomingCall.content]}
72
62
  >
@@ -75,7 +65,7 @@ export const IncomingCall = ({
75
65
  <Text
76
66
  style={[
77
67
  styles.incomingCallText,
78
- { color: colors.static_white },
68
+ { color: colors.textPrimary },
79
69
  typefaces.heading6,
80
70
  incomingCall.incomingCallText,
81
71
  ]}
@@ -128,7 +118,7 @@ const Background: React.FunctionComponent<{
128
118
  }}
129
119
  style={[
130
120
  styles.background,
131
- { backgroundColor: colors.static_grey },
121
+ { backgroundColor: colors.sheetTertiary },
132
122
  incomingCall.background,
133
123
  ]}
134
124
  >
@@ -140,7 +130,7 @@ const Background: React.FunctionComponent<{
140
130
  <View
141
131
  style={[
142
132
  styles.background,
143
- { backgroundColor: colors.static_grey },
133
+ { backgroundColor: colors.sheetTertiary },
144
134
  incomingCall.background,
145
135
  ]}
146
136
  >
@@ -156,7 +146,7 @@ export const styles = StyleSheet.create({
156
146
  content: {
157
147
  flex: 1,
158
148
  },
159
- topContainer: { flex: 1 },
149
+ topContainer: { flex: 1, justifyContent: 'center' },
160
150
  incomingCallText: {
161
151
  marginTop: 8,
162
152
  textAlign: 'center',
@@ -9,10 +9,6 @@ import {
9
9
  OutgoingCallControls as DefaultOutgoingCallControls,
10
10
  OutgoingCallControlsProps,
11
11
  } from '../CallControls';
12
- import {
13
- CallTopView as DefaultCallTopView,
14
- CallTopViewProps,
15
- } from '../CallTopView';
16
12
  import { useCallMediaStreamCleanup } from '../../../hooks/internal/useCallMediaStreamCleanup';
17
13
  import { useApplyDefaultMediaStreamSettings } from '../../../hooks/useApplyDefaultMediaStreamSettings';
18
14
 
@@ -20,10 +16,6 @@ import { useApplyDefaultMediaStreamSettings } from '../../../hooks/useApplyDefau
20
16
  * Props for the OutgoingCall Component.
21
17
  */
22
18
  export type OutgoingCallProps = OutgoingCallControlsProps & {
23
- /**
24
- * Prop to customize the CallTopView component in the IncomingCall component.
25
- */
26
- CallTopView?: React.ComponentType<CallTopViewProps> | null;
27
19
  /**
28
20
  * Prop to customize the OutgoingCall controls.
29
21
  */
@@ -40,7 +32,6 @@ export type OutgoingCallProps = OutgoingCallControlsProps & {
40
32
  * Used after the user has initiated a call.
41
33
  */
42
34
  export const OutgoingCall = ({
43
- CallTopView = DefaultCallTopView,
44
35
  OutgoingCallControls = DefaultOutgoingCallControls,
45
36
  landscape,
46
37
  }: OutgoingCallProps) => {
@@ -65,7 +56,6 @@ export const OutgoingCall = ({
65
56
  outgoingCall.container,
66
57
  ]}
67
58
  >
68
- {CallTopView && <CallTopView />}
69
59
  <View
70
60
  style={[styles.content, landscapeContentStyles, outgoingCall.content]}
71
61
  >
@@ -74,7 +64,7 @@ export const OutgoingCall = ({
74
64
  <Text
75
65
  style={[
76
66
  styles.callingText,
77
- { color: colors.static_white },
67
+ { color: colors.textPrimary },
78
68
  typefaces.heading6,
79
69
  outgoingCall.callingText,
80
70
  ]}
@@ -115,7 +105,7 @@ const Background = () => {
115
105
  <View
116
106
  style={[
117
107
  styles.background,
118
- { backgroundColor: colors.static_grey },
108
+ { backgroundColor: colors.sheetSecondary },
119
109
  outgoingCall.background,
120
110
  ]}
121
111
  />
@@ -125,7 +115,7 @@ const Background = () => {
125
115
  <View
126
116
  style={[
127
117
  styles.background,
128
- { backgroundColor: colors.static_grey },
118
+ { backgroundColor: colors.sheetSecondary },
129
119
  outgoingCall.background,
130
120
  ]}
131
121
  >
@@ -147,7 +137,7 @@ const styles = StyleSheet.create({
147
137
  container: {
148
138
  zIndex: Z_INDEX.IN_MIDDLE,
149
139
  },
150
- topContainer: { flex: 1 },
140
+ topContainer: { flex: 1, justifyContent: 'center' },
151
141
  content: {
152
142
  flex: 1,
153
143
  },
@@ -6,7 +6,6 @@ import {
6
6
  CallContent as DefaultCallContent,
7
7
  CallContentProps,
8
8
  } from '../CallContent';
9
- import { CallTopViewProps } from '../CallTopView';
10
9
  import {
11
10
  IncomingCall as DefaultIncomingCall,
12
11
  IncomingCallProps,
@@ -41,10 +40,6 @@ export type RingingCallContentProps = {
41
40
  * Prop to customize the accepted CallContent component in the RingingCallContent. This is shown after the call is accepted.
42
41
  */
43
42
  CallContent?: React.ComponentType<CallContentProps> | null;
44
- /**
45
- * Prop to customize the CallTopView component in the RingingCallContent.
46
- */
47
- CallTopView?: React.ComponentType<CallTopViewProps> | null;
48
43
  /**
49
44
  * Prop to override the component shown when the call is left.
50
45
  */
@@ -69,7 +64,6 @@ const RingingCallPanel = ({
69
64
  IncomingCall = DefaultIncomingCall,
70
65
  OutgoingCall = DefaultOutgoingCall,
71
66
  CallContent = DefaultCallContent,
72
- CallTopView,
73
67
  CallLeftIndicator = DefaultCallLeftIndicator,
74
68
  CallPreparingIndicator = DefaultCallPreparingIndicator,
75
69
  landscape,
@@ -84,12 +78,8 @@ const RingingCallPanel = ({
84
78
  switch (callingState) {
85
79
  case CallingState.RINGING:
86
80
  return isCallCreatedByMe
87
- ? OutgoingCall && (
88
- <OutgoingCall CallTopView={CallTopView} landscape={landscape} />
89
- )
90
- : IncomingCall && (
91
- <IncomingCall CallTopView={CallTopView} landscape={landscape} />
92
- );
81
+ ? OutgoingCall && <OutgoingCall landscape={landscape} />
82
+ : IncomingCall && <IncomingCall landscape={landscape} />;
93
83
  case CallingState.LEFT:
94
84
  return (
95
85
  CallLeftIndicator && <CallLeftIndicator onBackPress={onBackPress} />
@@ -101,11 +91,7 @@ const RingingCallPanel = ({
101
91
  )
102
92
  );
103
93
  default:
104
- return (
105
- CallContent && (
106
- <CallContent CallTopView={CallTopView} landscape={landscape} />
107
- )
108
- );
94
+ return CallContent && <CallContent landscape={landscape} />;
109
95
  }
110
96
  };
111
97
 
@@ -18,7 +18,7 @@ export const TextBasedIndicator = (props: TextBasedIndicatorProps) => {
18
18
  } = useTheme();
19
19
 
20
20
  return (
21
- <View style={[styles.container, { backgroundColor: colors.static_grey }]}>
21
+ <View style={[styles.container, { backgroundColor: colors.sheetTertiary }]}>
22
22
  {props.onBackPress && (
23
23
  <View style={styles.backContainer}>
24
24
  <Pressable
@@ -31,7 +31,7 @@ export const TextBasedIndicator = (props: TextBasedIndicatorProps) => {
31
31
  },
32
32
  ]}
33
33
  >
34
- <Back color={colors.static_white} />
34
+ <Back color={colors.iconPrimary} />
35
35
  </Pressable>
36
36
  </View>
37
37
  )}
@@ -39,7 +39,7 @@ export const TextBasedIndicator = (props: TextBasedIndicatorProps) => {
39
39
  <Text
40
40
  style={[
41
41
  styles.text,
42
- { color: colors.static_white },
42
+ { color: colors.textPrimary },
43
43
  typefaces.heading6,
44
44
  ]}
45
45
  >
@@ -109,7 +109,7 @@ export const UserInfo = ({
109
109
  style={[
110
110
  styles.name,
111
111
  fontStyleByMembersCount,
112
- { color: colors.static_white },
112
+ { color: colors.textPrimary },
113
113
  userInfo.name,
114
114
  ]}
115
115
  >