@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,5 +1,4 @@
1
1
  export * from './CallContent';
2
- export * from './CallTopView';
3
2
  export * from './CallLayout';
4
3
  export * from './CallControls';
5
4
  export * from './CallParticipantsList';
@@ -1,4 +1,4 @@
1
- import React, { useEffect } from 'react';
1
+ import React, { useEffect, useMemo } from 'react';
2
2
  import { StyleSheet, View } from 'react-native';
3
3
  import InCallManager from 'react-native-incall-manager';
4
4
 
@@ -73,6 +73,7 @@ export const HostLivestream = ({
73
73
  hls,
74
74
  disableStopPublishedStreamsOnEndStream,
75
75
  }: HostLivestreamProps) => {
76
+ const styles = useStyles();
76
77
  const {
77
78
  theme: { colors, hostLivestream },
78
79
  } = useTheme();
@@ -108,9 +109,7 @@ export const HostLivestream = ({
108
109
  <View
109
110
  style={[
110
111
  styles.container,
111
- {
112
- backgroundColor: colors.dark_gray,
113
- },
112
+ { backgroundColor: colors.sheetTertiary },
114
113
  hostLivestream.container,
115
114
  ]}
116
115
  >
@@ -161,22 +160,34 @@ export const HostLivestream = ({
161
160
  );
162
161
  };
163
162
 
164
- const styles = StyleSheet.create({
165
- container: {
166
- flex: 1,
167
- },
168
- topViewContainer: {
169
- position: 'absolute',
170
- top: 0,
171
- left: 0,
172
- right: 0,
173
- zIndex: Z_INDEX.IN_FRONT,
174
- },
175
- controlsViewContainer: {
176
- position: 'absolute',
177
- bottom: 0,
178
- left: 0,
179
- right: 0,
180
- zIndex: Z_INDEX.IN_FRONT,
181
- },
182
- });
163
+ const useStyles = () => {
164
+ const { theme } = useTheme();
165
+ return useMemo(
166
+ () =>
167
+ StyleSheet.create({
168
+ container: {
169
+ flex: 1,
170
+ paddingBottom: theme.variants.insets.bottom,
171
+ paddingLeft: theme.variants.insets.left,
172
+ paddingRight: theme.variants.insets.right,
173
+ paddingTop: theme.variants.insets.top,
174
+ backgroundColor: theme.colors.sheetPrimary,
175
+ },
176
+ topViewContainer: {
177
+ position: 'absolute',
178
+ top: 0,
179
+ left: 0,
180
+ right: 0,
181
+ zIndex: Z_INDEX.IN_FRONT,
182
+ },
183
+ controlsViewContainer: {
184
+ position: 'absolute',
185
+ bottom: 0,
186
+ left: 0,
187
+ right: 0,
188
+ zIndex: Z_INDEX.IN_FRONT,
189
+ },
190
+ }),
191
+ [theme]
192
+ );
193
+ };
@@ -45,7 +45,7 @@ export const HostLivestreamControls = ({
45
45
  <View
46
46
  style={[
47
47
  styles.container,
48
- { backgroundColor: colors.static_overlay },
48
+ { backgroundColor: colors.sheetOverlay },
49
49
  hostLivestreamControls.container,
50
50
  ]}
51
51
  onLayout={onLayout}
@@ -114,10 +114,10 @@ export const HostStartStreamButton = ({
114
114
  styles.container,
115
115
  {
116
116
  backgroundColor: isAwaitingResponse
117
- ? colors.dark_gray
117
+ ? colors.sheetTertiary
118
118
  : liveOrBroadcasting
119
- ? colors.error
120
- : colors.primary,
119
+ ? colors.buttonWarning
120
+ : colors.buttonPrimary,
121
121
  },
122
122
  hostStartStreamButton.container,
123
123
  ]}
@@ -144,7 +144,7 @@ export const HostStartStreamButton = ({
144
144
  style={[
145
145
  styles.text,
146
146
  typefaces.subtitleBold,
147
- { color: colors.static_white },
147
+ { color: colors.textPrimary },
148
148
  hostStartStreamButton.text,
149
149
  ]}
150
150
  >
@@ -2,7 +2,7 @@ import { useCallStateHooks } from '@stream-io/video-react-bindings';
2
2
  import React from 'react';
3
3
  import { useTheme } from '../../../contexts';
4
4
  import { Pressable, StyleSheet, View } from 'react-native';
5
- import { Mic, MicOff } from '../../../icons';
5
+ import { IconWrapper, Mic, MicOff } from '../../../icons';
6
6
 
7
7
  /**
8
8
  * The LivestreamAudioControlButton controls the audio stream publish/unpublish while in the livestream for the host.
@@ -28,7 +28,7 @@ export const LivestreamAudioControlButton = () => {
28
28
  style={[
29
29
  styles.container,
30
30
  {
31
- backgroundColor: colors.dark_gray,
31
+ backgroundColor: colors.buttonSecondary,
32
32
  height: buttonSizes.xs,
33
33
  width: buttonSizes.xs,
34
34
  },
@@ -45,11 +45,13 @@ export const LivestreamAudioControlButton = () => {
45
45
  livestreamAudioControlButton.icon,
46
46
  ]}
47
47
  >
48
- {!optimisticIsMute ? (
49
- <Mic color={colors.static_white} />
50
- ) : (
51
- <MicOff color={colors.static_white} />
52
- )}
48
+ <IconWrapper>
49
+ {!optimisticIsMute ? (
50
+ <Mic color={colors.iconPrimary} size={iconSizes.md} />
51
+ ) : (
52
+ <MicOff color={colors.iconPrimary} size={iconSizes.md} />
53
+ )}
54
+ </IconWrapper>
53
55
  </View>
54
56
  </Pressable>
55
57
  );
@@ -33,8 +33,8 @@ export const LivestreamScreenShareToggleButton = () => {
33
33
  styles.container,
34
34
  {
35
35
  backgroundColor: hasPublishedScreenShare
36
- ? colors.error
37
- : colors.dark_gray,
36
+ ? colors.buttonWarning
37
+ : colors.buttonSecondary,
38
38
  height: buttonSizes.xs,
39
39
  width: buttonSizes.xs,
40
40
  },
@@ -52,9 +52,9 @@ export const LivestreamScreenShareToggleButton = () => {
52
52
  ]}
53
53
  >
54
54
  {hasPublishedScreenShare ? (
55
- <StopScreenShare color={colors.static_white} />
55
+ <StopScreenShare size={iconSizes.sm} color={colors.iconPrimary} />
56
56
  ) : (
57
- <ScreenShare color={colors.static_white} />
57
+ <ScreenShare size={iconSizes.sm} color={colors.iconPrimary} />
58
58
  )}
59
59
  </View>
60
60
  {Platform.OS === 'ios' && (
@@ -2,7 +2,7 @@ import { useCallStateHooks } from '@stream-io/video-react-bindings';
2
2
  import React from 'react';
3
3
  import { useTheme } from '../../../contexts';
4
4
  import { Pressable, StyleSheet, View } from 'react-native';
5
- import { Video, VideoSlash } from '../../../icons';
5
+ import { IconWrapper, Video, VideoSlash } from '../../../icons';
6
6
 
7
7
  /**
8
8
  * The LivestreamVideoControlButton controls the video stream publish/unpublish while in the livestream for the host.
@@ -34,7 +34,7 @@ export const LivestreamVideoControlButton = () => {
34
34
  style={[
35
35
  styles.container,
36
36
  {
37
- backgroundColor: colors.dark_gray,
37
+ backgroundColor: colors.buttonSecondary,
38
38
  height: buttonSizes.xs,
39
39
  width: buttonSizes.xs,
40
40
  },
@@ -51,11 +51,13 @@ export const LivestreamVideoControlButton = () => {
51
51
  livestreamVideoControlButton.icon,
52
52
  ]}
53
53
  >
54
- {!optimisticIsMute ? (
55
- <Video color={colors.static_white} />
56
- ) : (
57
- <VideoSlash color={colors.static_white} />
58
- )}
54
+ <IconWrapper>
55
+ {!optimisticIsMute ? (
56
+ <Video color={colors.iconPrimary} size={iconSizes.md} />
57
+ ) : (
58
+ <VideoSlash color={colors.iconPrimary} size={iconSizes.md} />
59
+ )}
60
+ </IconWrapper>
59
61
  </View>
60
62
  </Pressable>
61
63
  );
@@ -59,9 +59,7 @@ export const ViewerLeaveStreamButton = ({
59
59
  <Pressable
60
60
  style={[
61
61
  styles.container,
62
- {
63
- backgroundColor: colors.dark_gray,
64
- },
62
+ { backgroundColor: colors.buttonSecondary },
65
63
  viewerLeaveStreamButton.container,
66
64
  ]}
67
65
  onPress={onLeaveStreamButtonPress}
@@ -79,7 +77,7 @@ export const ViewerLeaveStreamButton = ({
79
77
  style={[
80
78
  styles.text,
81
79
  typefaces.subtitleBold,
82
- { color: colors.static_white },
80
+ { color: colors.textPrimary },
83
81
  viewerLeaveStreamButton.text,
84
82
  ]}
85
83
  >
@@ -35,9 +35,7 @@ export const ViewerLivestreamControls = ({
35
35
  <View
36
36
  style={[
37
37
  styles.container,
38
- {
39
- backgroundColor: colors.static_overlay,
40
- },
38
+ { backgroundColor: colors.sheetOverlay },
41
39
  viewerLivestreamControls.container,
42
40
  ]}
43
41
  onLayout={onLayout}
@@ -80,7 +80,7 @@ export const LivestreamLayout = ({
80
80
  style={[
81
81
  styles.container,
82
82
  landScapeStyles,
83
- { backgroundColor: colors.static_grey },
83
+ { backgroundColor: colors.sheetTertiary },
84
84
  livestreamLayout.container,
85
85
  ]}
86
86
  >
@@ -120,7 +120,7 @@ export const DurationBadge = ({ mode }: DurationBadgeProps) => {
120
120
  <View
121
121
  style={[
122
122
  styles.container,
123
- { backgroundColor: colors.dark_gray },
123
+ { backgroundColor: colors.sheetTertiary },
124
124
  durationBadge.container,
125
125
  ]}
126
126
  >
@@ -139,7 +139,7 @@ export const DurationBadge = ({ mode }: DurationBadgeProps) => {
139
139
  <Text
140
140
  style={[
141
141
  styles.label,
142
- { color: colors.static_white },
142
+ { color: colors.textPrimary },
143
143
  durationBadge.label,
144
144
  ]}
145
145
  >
@@ -26,7 +26,7 @@ export const FollowerCount = ({}: FollowerCountProps) => {
26
26
  <View
27
27
  style={[
28
28
  styles.container,
29
- { backgroundColor: colors.dark_gray },
29
+ { backgroundColor: colors.sheetTertiary },
30
30
  followerCount.container,
31
31
  ]}
32
32
  >
@@ -42,7 +42,7 @@ export const FollowerCount = ({}: FollowerCountProps) => {
42
42
  <Text
43
43
  style={[
44
44
  styles.label,
45
- { color: colors.static_white },
45
+ { color: colors.textPrimary },
46
46
  followerCount.label,
47
47
  ]}
48
48
  >
@@ -57,7 +57,7 @@ export const HostLivestreamTopView = ({
57
57
  <View
58
58
  style={[
59
59
  styles.container,
60
- { backgroundColor: colors.static_overlay },
60
+ { backgroundColor: colors.sheetOverlay },
61
61
  hostLivestreamTopView.container,
62
62
  ]}
63
63
  onLayout={onLayout}
@@ -20,14 +20,14 @@ export const LiveIndicator = ({}: LiveIndicatorProps) => {
20
20
  <View
21
21
  style={[
22
22
  styles.container,
23
- { backgroundColor: colors.primary },
23
+ { backgroundColor: colors.buttonPrimary },
24
24
  liveIndicator.container,
25
25
  ]}
26
26
  >
27
27
  <Text
28
28
  style={[
29
29
  styles.label,
30
- { color: colors.static_white },
30
+ { color: colors.textPrimary },
31
31
  typefaces.subtitleBold,
32
32
  liveIndicator.label,
33
33
  ]}
@@ -51,7 +51,7 @@ export const ViewerLivestreamTopView = ({
51
51
  <View
52
52
  style={[
53
53
  styles.container,
54
- { backgroundColor: colors.static_overlay },
54
+ { backgroundColor: colors.sheetOverlay },
55
55
  viewerLivestreamTopView.container,
56
56
  ]}
57
57
  onLayout={onLayout}
@@ -1,4 +1,4 @@
1
- import React, { useEffect } from 'react';
1
+ import React, { useEffect, useMemo } from 'react';
2
2
 
3
3
  import { StyleSheet, View } from 'react-native';
4
4
  import InCallManager from 'react-native-incall-manager';
@@ -61,6 +61,7 @@ export const ViewerLivestream = ({
61
61
  ViewerLeaveStreamButton,
62
62
  onLeaveStreamHandler,
63
63
  }: ViewerLivestreamProps) => {
64
+ const styles = useStyles();
64
65
  const {
65
66
  theme: { viewerLivestream },
66
67
  } = useTheme();
@@ -123,8 +124,20 @@ export const ViewerLivestream = ({
123
124
  );
124
125
  };
125
126
 
126
- const styles = StyleSheet.create({
127
- container: {
128
- flex: 1,
129
- },
130
- });
127
+ const useStyles = () => {
128
+ const { theme } = useTheme();
129
+ return useMemo(
130
+ () =>
131
+ StyleSheet.create({
132
+ container: {
133
+ flex: 1,
134
+ paddingBottom: theme.variants.insets.bottom,
135
+ paddingLeft: theme.variants.insets.left,
136
+ paddingRight: theme.variants.insets.right,
137
+ paddingTop: theme.variants.insets.top,
138
+ backgroundColor: theme.colors.sheetPrimary,
139
+ },
140
+ }),
141
+ [theme]
142
+ );
143
+ };
@@ -64,7 +64,6 @@ try {
64
64
  [FloatingViewAlignment.bottomRight]: { x: 0, y: 0 },
65
65
  };
66
66
  }
67
-
68
67
  return getSnapAlignments({
69
68
  rootContainerDimensions: {
70
69
  width: containerWidth,
@@ -66,6 +66,7 @@ const CustomLocalParticipantViewVideoFallback = () => {
66
66
  colors,
67
67
  floatingParticipantsView,
68
68
  variants: { iconSizes },
69
+ defaults,
69
70
  },
70
71
  } = useTheme();
71
72
 
@@ -73,12 +74,12 @@ const CustomLocalParticipantViewVideoFallback = () => {
73
74
  <View
74
75
  style={[
75
76
  styles.videoFallback,
76
- { backgroundColor: colors.disabled },
77
+ { backgroundColor: colors.sheetSecondary },
77
78
  floatingParticipantsView.videoFallback,
78
79
  ]}
79
80
  >
80
81
  <View style={{ height: iconSizes.md, width: iconSizes.md }}>
81
- <VideoSlash color={colors.static_white} />
82
+ <VideoSlash color={colors.iconPrimary} size={defaults.iconSize} />
82
83
  </View>
83
84
  </View>
84
85
  );
@@ -170,9 +171,7 @@ export const FloatingParticipantView = ({
170
171
  style={[
171
172
  styles.participantViewContainer,
172
173
  participantViewStyle,
173
- {
174
- shadowColor: colors.static_black,
175
- },
174
+ { shadowColor: colors.sheetPrimary },
176
175
  floatingParticipantsView.participantViewContainer,
177
176
  ]}
178
177
  // video z order must be one above the one used in grid view
@@ -192,7 +191,6 @@ export const FloatingParticipantView = ({
192
191
 
193
192
  const styles = StyleSheet.create({
194
193
  container: {
195
- margin: 8,
196
194
  // Needed to make the view on top and draggable
197
195
  zIndex: Z_INDEX.IN_MIDDLE,
198
196
  flex: 1,
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useMemo } from 'react';
2
2
  import { Pressable, StyleSheet, Text, View } from 'react-native';
3
3
  import {
4
4
  MicOff,
@@ -12,6 +12,7 @@ import { ParticipantViewProps } from './ParticipantView';
12
12
  import { Z_INDEX } from '../../../constants';
13
13
  import { hasAudio, hasVideo } from '@stream-io/video-client';
14
14
  import { useTheme } from '../../../contexts/ThemeContext';
15
+ import SpeechIndicator from './SpeechIndicator';
15
16
 
16
17
  /**
17
18
  * Props for the ParticipantLabel component.
@@ -43,6 +44,7 @@ export const ParticipantLabel = ({
43
44
  },
44
45
  },
45
46
  } = useTheme();
47
+ const styles = useStyles();
46
48
  const { name, userId, pin, sessionId, isLocalParticipant } = participant;
47
49
  const call = useCall();
48
50
  const { t } = useI18n();
@@ -67,7 +69,7 @@ export const ParticipantLabel = ({
67
69
  <View
68
70
  style={[
69
71
  styles.container,
70
- { backgroundColor: colors.static_overlay },
72
+ { backgroundColor: colors.sheetOverlay },
71
73
  container,
72
74
  ]}
73
75
  testID={ComponentTestIds.PARTICIPANT_SCREEN_SHARING}
@@ -75,19 +77,16 @@ export const ParticipantLabel = ({
75
77
  <View
76
78
  style={[
77
79
  styles.screenShareIconContainer,
78
- {
79
- height: iconSizes.md,
80
- width: iconSizes.md,
81
- },
80
+ { height: iconSizes.md, width: iconSizes.md },
82
81
  screenShareIconContainer,
83
82
  ]}
84
83
  >
85
- <ScreenShareIndicator color={colors.static_white} />
84
+ <ScreenShareIndicator color={colors.iconPrimary} />
86
85
  </View>
87
86
  <Text
88
87
  style={[
89
88
  styles.userNameLabel,
90
- { color: colors.static_white },
89
+ { color: colors.textPrimary },
91
90
  typefaces.caption,
92
91
  userNameLabel,
93
92
  ]}
@@ -103,90 +102,91 @@ export const ParticipantLabel = ({
103
102
  <View
104
103
  style={[
105
104
  styles.container,
106
- { backgroundColor: colors.static_overlay },
105
+ { backgroundColor: colors.sheetOverlay },
107
106
  container,
108
107
  ]}
109
108
  >
110
- <Text
111
- style={[
112
- styles.userNameLabel,
113
- { color: colors.static_white },
114
- typefaces.caption,
115
- userNameLabel,
116
- ]}
117
- numberOfLines={1}
118
- >
119
- {participantLabel}
120
- </Text>
121
- {isAudioMuted && (
122
- <View
123
- style={[
124
- styles.audioMutedIconContainer,
125
- {
126
- height: iconSizes.xs,
127
- width: iconSizes.xs,
128
- },
129
- audioMutedIconContainer,
130
- ]}
131
- >
132
- <MicOff color={colors.error} />
133
- </View>
134
- )}
135
- {isVideoMuted && (
136
- <View
137
- style={[
138
- styles.videoMutedIconContainer,
139
- {
140
- height: iconSizes.xs,
141
- width: iconSizes.xs,
142
- },
143
- videoMutedIconContainer,
144
- ]}
145
- >
146
- <VideoSlash color={colors.error} />
109
+ <View style={styles.wrapper}>
110
+ <Text style={[styles.userNameLabel, userNameLabel]} numberOfLines={1}>
111
+ {participantLabel}
112
+ </Text>
113
+ {isAudioMuted && (
114
+ <View
115
+ style={[styles.audioMutedIconContainer, audioMutedIconContainer]}
116
+ >
117
+ <MicOff color={colors.iconPrimary} size={iconSizes.sm} />
118
+ </View>
119
+ )}
120
+ {isVideoMuted && (
121
+ <View
122
+ style={[styles.videoMutedIconContainer, videoMutedIconContainer]}
123
+ >
124
+ <VideoSlash color={colors.iconPrimary} size={iconSizes.sm} />
125
+ </View>
126
+ )}
127
+ {isPinningEnabled && (
128
+ <Pressable
129
+ style={[styles.pinIconContainer, pinIconContainer]}
130
+ onPress={unPinParticipantHandler}
131
+ >
132
+ <PinVertical color={colors.iconPrimary} size={iconSizes.sm} />
133
+ </Pressable>
134
+ )}
135
+ <View style={styles.indicatorWrapper}>
136
+ <SpeechIndicator
137
+ isSpeaking={!isAudioMuted && participant.isDominantSpeaker}
138
+ />
147
139
  </View>
148
- )}
149
- {isPinningEnabled && (
150
- <Pressable
151
- style={[
152
- styles.pinIconContainer,
153
- {
154
- height: iconSizes.xs,
155
- width: iconSizes.xs,
156
- },
157
- pinIconContainer,
158
- ]}
159
- onPress={unPinParticipantHandler}
160
- >
161
- <PinVertical color={colors.static_white} />
162
- </Pressable>
163
- )}
140
+ </View>
164
141
  </View>
165
142
  );
166
143
  };
167
144
 
168
- const styles = StyleSheet.create({
169
- container: {
170
- flexDirection: 'row',
171
- alignItems: 'center',
172
- padding: 8,
173
- borderRadius: 5,
174
- flexShrink: 1,
175
- zIndex: Z_INDEX.IN_FRONT,
176
- },
177
- userNameLabel: {
178
- flexShrink: 1,
179
- },
180
- screenShareIconContainer: {
181
- marginRight: 8,
182
- },
183
- audioMutedIconContainer: {
184
- marginLeft: 4,
185
- },
186
- videoMutedIconContainer: {
187
- marginLeft: 4,
188
- },
189
- pinIconContainer: {
190
- marginLeft: 4,
191
- },
192
- });
145
+ const useStyles = () => {
146
+ const { theme } = useTheme();
147
+ return useMemo(
148
+ () =>
149
+ StyleSheet.create({
150
+ indicatorWrapper: {
151
+ marginLeft: theme.variants.spacingSizes.sm,
152
+ },
153
+ wrapper: {
154
+ flexDirection: 'row',
155
+ },
156
+ container: {
157
+ flexDirection: 'row',
158
+ alignItems: 'center',
159
+ padding: theme.variants.spacingSizes.sm,
160
+ maxHeight: 30,
161
+ borderTopRightRadius: 5,
162
+ marginBottom: -2,
163
+ flexShrink: 1,
164
+ zIndex: Z_INDEX.IN_FRONT,
165
+ },
166
+ userNameLabel: {
167
+ flexShrink: 1,
168
+ marginTop: 3,
169
+ fontSize: 13,
170
+ fontWeight: '400',
171
+ color: theme.colors.textPrimary,
172
+ },
173
+ screenShareIconContainer: {
174
+ marginRight: theme.variants.spacingSizes.sm,
175
+ justifyContent: 'center',
176
+ },
177
+ audioMutedIconContainer: {
178
+ marginLeft: theme.variants.spacingSizes.xs,
179
+ justifyContent: 'center',
180
+ },
181
+ videoMutedIconContainer: {
182
+ marginLeft: theme.variants.spacingSizes.xs,
183
+ justifyContent: 'center',
184
+ },
185
+ pinIconContainer: {
186
+ marginLeft: theme.variants.spacingSizes.xs,
187
+ justifyContent: 'center',
188
+ },
189
+ }),
190
+ [theme]
191
+ );
192
+ };