@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 { Pressable, StyleSheet, Text, View } from 'react-native';
3
3
  import { MicOff, PinVertical, ScreenShareIndicator, VideoSlash } from '../../../icons';
4
4
  import { useCall, useI18n } from '@stream-io/video-react-bindings';
@@ -6,6 +6,7 @@ import { ComponentTestIds } from '../../../constants/TestIds';
6
6
  import { Z_INDEX } from '../../../constants';
7
7
  import { hasAudio, hasVideo } from '@stream-io/video-client';
8
8
  import { useTheme } from '../../../contexts/ThemeContext';
9
+ import SpeechIndicator from './SpeechIndicator';
9
10
 
10
11
  /**
11
12
  * Props for the ParticipantLabel component.
@@ -35,6 +36,7 @@ export const ParticipantLabel = ({
35
36
  }
36
37
  }
37
38
  } = useTheme();
39
+ const styles = useStyles();
38
40
  const {
39
41
  name,
40
42
  userId,
@@ -60,7 +62,7 @@ export const ParticipantLabel = ({
60
62
  });
61
63
  return /*#__PURE__*/React.createElement(View, {
62
64
  style: [styles.container, {
63
- backgroundColor: colors.static_overlay
65
+ backgroundColor: colors.sheetOverlay
64
66
  }, container],
65
67
  testID: ComponentTestIds.PARTICIPANT_SCREEN_SHARING
66
68
  }, /*#__PURE__*/React.createElement(View, {
@@ -69,70 +71,89 @@ export const ParticipantLabel = ({
69
71
  width: iconSizes.md
70
72
  }, screenShareIconContainer]
71
73
  }, /*#__PURE__*/React.createElement(ScreenShareIndicator, {
72
- color: colors.static_white
74
+ color: colors.iconPrimary
73
75
  })), /*#__PURE__*/React.createElement(Text, {
74
76
  style: [styles.userNameLabel, {
75
- color: colors.static_white
77
+ color: colors.textPrimary
76
78
  }, typefaces.caption, userNameLabel],
77
79
  numberOfLines: 1
78
80
  }, screenShareText));
79
81
  }
80
82
  return /*#__PURE__*/React.createElement(View, {
81
83
  style: [styles.container, {
82
- backgroundColor: colors.static_overlay
84
+ backgroundColor: colors.sheetOverlay
83
85
  }, container]
86
+ }, /*#__PURE__*/React.createElement(View, {
87
+ style: styles.wrapper
84
88
  }, /*#__PURE__*/React.createElement(Text, {
85
- style: [styles.userNameLabel, {
86
- color: colors.static_white
87
- }, typefaces.caption, userNameLabel],
89
+ style: [styles.userNameLabel, userNameLabel],
88
90
  numberOfLines: 1
89
91
  }, participantLabel), isAudioMuted && /*#__PURE__*/React.createElement(View, {
90
- style: [styles.audioMutedIconContainer, {
91
- height: iconSizes.xs,
92
- width: iconSizes.xs
93
- }, audioMutedIconContainer]
92
+ style: [styles.audioMutedIconContainer, audioMutedIconContainer]
94
93
  }, /*#__PURE__*/React.createElement(MicOff, {
95
- color: colors.error
94
+ color: colors.iconPrimary,
95
+ size: iconSizes.sm
96
96
  })), isVideoMuted && /*#__PURE__*/React.createElement(View, {
97
- style: [styles.videoMutedIconContainer, {
98
- height: iconSizes.xs,
99
- width: iconSizes.xs
100
- }, videoMutedIconContainer]
97
+ style: [styles.videoMutedIconContainer, videoMutedIconContainer]
101
98
  }, /*#__PURE__*/React.createElement(VideoSlash, {
102
- color: colors.error
99
+ color: colors.iconPrimary,
100
+ size: iconSizes.sm
103
101
  })), isPinningEnabled && /*#__PURE__*/React.createElement(Pressable, {
104
- style: [styles.pinIconContainer, {
105
- height: iconSizes.xs,
106
- width: iconSizes.xs
107
- }, pinIconContainer],
102
+ style: [styles.pinIconContainer, pinIconContainer],
108
103
  onPress: unPinParticipantHandler
109
104
  }, /*#__PURE__*/React.createElement(PinVertical, {
110
- color: colors.static_white
111
- })));
105
+ color: colors.iconPrimary,
106
+ size: iconSizes.sm
107
+ })), /*#__PURE__*/React.createElement(View, {
108
+ style: styles.indicatorWrapper
109
+ }, /*#__PURE__*/React.createElement(SpeechIndicator, {
110
+ isSpeaking: !isAudioMuted && participant.isDominantSpeaker
111
+ }))));
112
+ };
113
+ const useStyles = () => {
114
+ const {
115
+ theme
116
+ } = useTheme();
117
+ return useMemo(() => StyleSheet.create({
118
+ indicatorWrapper: {
119
+ marginLeft: theme.variants.spacingSizes.sm
120
+ },
121
+ wrapper: {
122
+ flexDirection: 'row'
123
+ },
124
+ container: {
125
+ flexDirection: 'row',
126
+ alignItems: 'center',
127
+ padding: theme.variants.spacingSizes.sm,
128
+ maxHeight: 30,
129
+ borderTopRightRadius: 5,
130
+ marginBottom: -2,
131
+ flexShrink: 1,
132
+ zIndex: Z_INDEX.IN_FRONT
133
+ },
134
+ userNameLabel: {
135
+ flexShrink: 1,
136
+ marginTop: 3,
137
+ fontSize: 13,
138
+ fontWeight: '400',
139
+ color: theme.colors.textPrimary
140
+ },
141
+ screenShareIconContainer: {
142
+ marginRight: theme.variants.spacingSizes.sm,
143
+ justifyContent: 'center'
144
+ },
145
+ audioMutedIconContainer: {
146
+ marginLeft: theme.variants.spacingSizes.xs,
147
+ justifyContent: 'center'
148
+ },
149
+ videoMutedIconContainer: {
150
+ marginLeft: theme.variants.spacingSizes.xs,
151
+ justifyContent: 'center'
152
+ },
153
+ pinIconContainer: {
154
+ marginLeft: theme.variants.spacingSizes.xs,
155
+ justifyContent: 'center'
156
+ }
157
+ }), [theme]);
112
158
  };
113
- const styles = StyleSheet.create({
114
- container: {
115
- flexDirection: 'row',
116
- alignItems: 'center',
117
- padding: 8,
118
- borderRadius: 5,
119
- flexShrink: 1,
120
- zIndex: Z_INDEX.IN_FRONT
121
- },
122
- userNameLabel: {
123
- flexShrink: 1
124
- },
125
- screenShareIconContainer: {
126
- marginRight: 8
127
- },
128
- audioMutedIconContainer: {
129
- marginLeft: 4
130
- },
131
- videoMutedIconContainer: {
132
- marginLeft: 4
133
- },
134
- pinIconContainer: {
135
- marginLeft: 4
136
- }
137
- });
138
159
  //# sourceMappingURL=ParticipantLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Pressable","StyleSheet","Text","View","MicOff","PinVertical","ScreenShareIndicator","VideoSlash","useCall","useI18n","ComponentTestIds","Z_INDEX","hasAudio","hasVideo","useTheme","ParticipantLabel","participant","trackType","theme","colors","typefaces","variants","iconSizes","participantLabel","container","userNameLabel","audioMutedIconContainer","videoMutedIconContainer","pinIconContainer","screenShareIconContainer","name","userId","pin","sessionId","isLocalParticipant","call","t","participantName","isPinningEnabled","isLocalPin","isAudioMuted","isVideoMuted","unPinParticipantHandler","unpin","screenShareText","userName","createElement","style","styles","backgroundColor","static_overlay","testID","PARTICIPANT_SCREEN_SHARING","height","md","width","color","static_white","caption","numberOfLines","xs","error","onPress","create","flexDirection","alignItems","padding","borderRadius","flexShrink","zIndex","IN_FRONT","marginRight","marginLeft"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantLabel.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAChE,SACEC,MAAM,EACNC,WAAW,EACXC,oBAAoB,EACpBC,UAAU,QACL,gBAAgB;AACvB,SAASC,OAAO,EAAEC,OAAO,QAAQ,iCAAiC;AAClE,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,yBAAyB;AAC5D,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;;AAMA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BC,WAAW;EACXC;AACqB,CAAC,KAAK;EAC3B,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,SAAS;MACTC,QAAQ,EAAE;QAAEC;MAAU,CAAC;MACvBC,gBAAgB,EAAE;QAChBC,SAAS;QACTC,aAAa;QACbC,uBAAuB;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ACrB,uBAAuB,EAC9B;MACE0B,MAAM,EAAE/B,SAAS,CAACsC,EAAE;MACpBL,KAAK,EAAEjC,SAAS,CAACsC;IACnB,CAAC,EACDjC,uBAAuB;EACvB,gBAEF5B,KAAA,CAAA+C,aAAA,CAACvC,UAAU;IAACiD,KAAK,EAAErC,MAAM,CAAC0C;EAAM,CAAE,CAC9B,CACP,EACAvB,gBAAgB,iBACfvC,KAAA,CAAA+C,aAAA,CAAC9C,SAAS;IACR+C,KAAK,EAAE,CACLC,MAAM,CAACpB,gBAAgB,EACvB;MACEyB,MAAM,EAAE/B,SAAS,CAACsC,EAAE;MACpBL,KAAK,EAAEjC,SAAS,CAACsC;IACnB,CAAC,EACDhC,gBAAgB,CAChB;IACFkC,OAAO,EAAEpB;EAAwB,gBAEjC3C,KAAA,CAAA+C,aAAA,CAACzC,WAAW;IAACmD,KAAK,EAAErC,MAAM,CAACsC;EAAa,CAAE,CACjC,CAET,CAAC;AAEX,CAAC;AAED,MAAMT,MAAM,GAAG/C,UAAU,CAAC8D,MAAM,CAAC;EAC/BvC,SAAS,EAAE;IACTwC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,CAAC;IACbC,MAAM,EAAE1D,OAAO,CAAC2D;EAClB,CAAC;EACD7C,aAAa,EAAE;IACb2C,UAAU,EAAE;EACd,CAAC;EACDvC,wBAAwB,EAAE;IACxB0C,WAAW,EAAE;EACf,CAAC;EACD7C,uBAAuB,EAAE;IACvB8C,UAAU,EAAE;EACd,CAAC;EACD7C,uBAAuB,EAAE;IACvB6C,UAAU,EAAE;EACd,CAAC;EACD5C,gBAAgB,EAAE;IAChB4C,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","Pressable","StyleSheet","Text","View","MicOff","PinVertical","ScreenShareIndicator","VideoSlash","useCall","useI18n","ComponentTestIds","Z_INDEX","hasAudio","hasVideo","useTheme","SpeechIndicator","ParticipantLabel","participant","trackType","theme","colors","typefaces","variants","iconSizes","participantLabel","container","userNameLabel","audioMutedIconContainer","videoMutedIconContainer","pinIconContainer","screenShareIconContainer","styles","useStyles","name","userId","pin","sessionId","isLocalParticipant","call","t","participantName","isPinningEnabled","isLocalPin","isAudioMuted","isVideoMuted","unPinParticipantHandler","unpin","screenShareText","userName","createElement","style","backgroundColor","sheetOverlay","testID","PARTICIPANT_SCREEN_SHARING","height","md","width","color","iconPrimary","textPrimary","caption","numberOfLines","wrapper","size","sm","onPress","indicatorWrapper","isSpeaking","isDominantSpeaker","create","marginLeft","spacingSizes","flexDirection","alignItems","padding","maxHeight","borderTopRightRadius","marginBottom","flexShrink","zIndex","IN_FRONT","marginTop","fontSize","fontWeight","marginRight","justifyContent","xs"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantLabel.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAChE,SACEC,MAAM,EACNC,WAAW,EACXC,oBAAoB,EACpBC,UAAU,QACL,gBAAgB;AACvB,SAASC,OAAO,EAAEC,OAAO,QAAQ,iCAAiC;AAClE,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,yBAAyB;AAC5D,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,OAAOC,eAAe,MAAM,mBAAmB;;AAE/C;AACA;AACA;;AAMA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BC,WAAW;EACXC;AACqB,CAAC,KAAK;EAC3B,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,SAAS;MACTC,QAAQ,EAAE;QAAEC;MAAU,CAAC;MACvBC,gB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oB,EAAE,CAAC;MACvBC,YAAY,EAAE,CAAC,CAAC;MAChBC,UAAU,EAAE,CAAC;MACbC,MAAM,EAAErE,OAAO,CAACsE;IAClB,CAAC;IACDvD,aAAa,EAAE;MACbqD,UAAU,EAAE,CAAC;MACbG,SAAS,EAAE,CAAC;MACZC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAE,KAAK;MACjB1B,KAAK,EAAEvC,KAAK,CAACC,MAAM,CAACwC;IACtB,CAAC;IACD9B,wBAAwB,EAAE;MACxBuD,WAAW,EAAElE,KAAK,CAACG,QAAQ,CAACkD,YAAY,CAACP,EAAE;MAC3CqB,cAAc,EAAE;IAClB,CAAC;IACD3D,uBAAuB,EAAE;MACvB4C,UAAU,EAAEpD,KAAK,CAACG,QAAQ,CAACkD,YAAY,CAACe,EAAE;MAC1CD,cAAc,EAAE;IAClB,CAAC;IACD1D,uBAAuB,EAAE;MACvB2C,UAAU,EAAEpD,KAAK,CAACG,QAAQ,CAACkD,YAAY,CAACe,EAAE;MAC1CD,cAAc,EAAE;IAClB,CAAC;IACDzD,gBAAgB,EAAE;MAChB0C,UAAU,EAAEpD,KAAK,CAACG,QAAQ,CAACkD,YAAY,CAACe,EAAE;MAC1CD,cAAc,EAAE;IAClB;EACF,CAAC,CAAC,EACJ,CAACnE,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
@@ -23,11 +23,11 @@ const useConnectionQualitySignalColors = participant => {
23
23
  }
24
24
  switch (connectionQuality) {
25
25
  case SfuModels.ConnectionQuality.EXCELLENT:
26
- return [colors.primary, colors.primary, colors.primary];
26
+ return [colors.iconSuccess, colors.iconSuccess, colors.iconSuccess];
27
27
  case SfuModels.ConnectionQuality.GOOD:
28
- return [colors.primary, colors.primary, colors.static_white];
28
+ return [colors.iconSuccess, colors.iconSuccess, colors.iconPrimary];
29
29
  case SfuModels.ConnectionQuality.POOR:
30
- return [colors.error, colors.static_white, colors.static_white];
30
+ return [colors.iconWarning, colors.iconPrimary, colors.iconPrimary];
31
31
  default:
32
32
  return null;
33
33
  }
@@ -50,7 +50,7 @@ export const ParticipantNetworkQualityIndicator = ({
50
50
  }
51
51
  return /*#__PURE__*/React.createElement(View, {
52
52
  style: [styles.container, {
53
- backgroundColor: colors.static_overlay,
53
+ backgroundColor: colors.sheetOverlay,
54
54
  height: iconSizes.lg,
55
55
  width: iconSizes.lg
56
56
  }, participantNetworkQualityIndicator.container]
@@ -84,7 +84,7 @@ const styles = StyleSheet.create({
84
84
  container: {
85
85
  zIndex: Z_INDEX.IN_FRONT,
86
86
  alignSelf: 'flex-end',
87
- borderRadius: 5
87
+ borderTopLeftRadius: 5
88
88
  }
89
89
  });
90
90
  //# sourceMappingURL=ParticipantNetworkQualityIndicator.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["StyleSheet","View","Path","Svg","SfuModels","React","Z_INDEX","useTheme","useConnectionQualitySignalColors","participant","theme","colors","connectionQuality","ConnectionQuality","EXCELLENT","primary","GOOD","static_white","POOR","error","ParticipantNetworkQualityIndicator","variants","iconSizes","participantNetworkQualityIndicator","connectionQualityColors","createElement","style","styles","container","backgroundColor","static_overlay","height","lg","width","viewBox","fill","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin","create","zIndex","IN_FRONT","alignSelf","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.tsx"],"mappings":"AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAC5C,SAASC,SAAS,QAAQ,yBAAyB;AACnD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;;AAMA,MAAMC,gCAAgC,GACpCC,WAAgD,IAC7C;EACH,MAAM;IACJC,KAAK,EAAE;MAAEC;IAAO;EAClB,CAAC,GAAGJ,QAAQ,CAAC,CAAC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EAAO,gBACpC9B,KAAA,CAAAoB,aAAA,CAACvB,IAAI;IACHkC,CAAC,EAAC,oCAAoC;IACtCC,MAAM,EAAEb,uBAAuB,CAAC,CAAC,CAAE;IACnCc,WAAW,EAAE,CAAE;IACfC,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC,OAAO;IACtBL,IAAI,EAAEX,uBAAuB,CAAC,CAAC;EAAE,CAClC,CAAC,eACFnB,KAAA,CAAAoB,aAAA,CAACvB,IAAI;IACHkC,CAAC,EAAC,qCAAqC;IACvCC,MAAM,EAAEb,uBAAuB,CAAC,CAAC,CAAE;IACnCc,WAAW,EAAE,CAAE;IACfC,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC,OAAO;IACtBL,IAAI,EAAEX,uBAAuB,CAAC,CAAC;EAAE,CAClC,CAAC,eACFnB,KAAA,CAAAoB,aAAA,CAACvB,IAAI;IACHkC,CAAC,EAAC,qCAAqC;IACvCC,MAAM,EAAEb,uBAAuB,CAAC,CAAC,CAAE;IACnCc,WAAW,EAAE,CAAE;IACfC,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC,OAAO;IACtBL,IAAI,EAAEX,uBAAuB,CAAC,CAAC;EAAE,CAClC,CACE,CACD,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAG3B,UAAU,CAACyC,MAAM,CAAC;EAC/Bb,SAAS,EAAE;IACTc,MAAM,EAAEpC,OAAO,CAACqC,QAAQ;IACxBC,SAAS,EAAE,UAAU;IACrBC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["StyleSheet","View","Path","Svg","SfuModels","React","Z_INDEX","useTheme","useConnectionQualitySignalColors","participant","theme","colors","connectionQuality","ConnectionQuality","EXCELLENT","iconSuccess","GOOD","iconPrimary","POOR","iconWarning","ParticipantNetworkQualityIndicator","variants","iconSizes","participantNetworkQualityIndicator","connectionQualityColors","createElement","style","styles","container","backgroundColor","sheetOverlay","height","lg","width","viewBox","fill","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin","create","zIndex","IN_FRONT","alignSelf","borderTopLeftRadius"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.tsx"],"mappings":"AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAC5C,SAASC,SAAS,QAAQ,yBAAyB;AACnD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;;AAMA,MAAMC,gCAAgC,GACpCC,WAAgD,IAC7C;EACH,MAAM;IACJC,KAAK,EAAE;MAAEC;IAAO;EAClB,CAAC,GAAGJ,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEK;EAAkB,CAAC,GAAGH,WAAW;EACzC,IAAI,CAACG,iBAAiB,EAAE;IACtB,OAAO,IAAI;EACb;EAEA,QAAQA,iBAAiB;IACvB,KAAKR,SAAS,CAACS,iBAAiB,CAACC,SAAS;MACxC,OAAO,CAACH,MAAM,CAACI,WAAW,EAAEJ,MAAM,CAACI,WAAW,EAAEJ,MAAM,CAACI,WAAW,CAAC;IACrE,KAAKX,SAAS,CAACS,iBAAiB,CAACG,IAAI;MACnC,OAAO,CAACL,MAAM,CAACI,WAAW,EAAEJ,MAAM,CAACI,WAAW,EAAEJ,MAAM,CAACM,WAAW,CAAC;IACrE,KAAKb,SAAS,CAACS,iBAAiB,CAACK,IAAI;MACnC,OAAO,CAACP,MAAM,CAACQ,WAAW,EAAER,MAAM,CAACM,WAAW,EAAEN,MAAM,CAACM,WAAW,CAAC;IACrE;MACE,OAAO,IAAI;EACf;AACF,CAAC;AAED,OAAO,MAAMG,kCAAkC,GAAGA,CAAC;EACjDX;AACuC,CAAC,KAAK;EAC7C,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNU,QAAQ,EAAE;QA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AEX,uBAAuB,CAAC,CAAC;EAAE,CAClC,CACE,CACD,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAG3B,UAAU,CAACyC,MAAM,CAAC;EAC/Bb,SAAS,EAAE;IACTc,MAAM,EAAEpC,OAAO,CAACqC,QAAQ;IACxBC,SAAS,EAAE,UAAU;IACrBC,mBAAmB,EAAE;EACvB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import React, { useEffect } from 'react';
1
+ import React, { useEffect, useMemo } from 'react';
2
2
  import { StyleSheet, Text, View } from 'react-native';
3
3
  import { useCall } from '@stream-io/video-react-bindings';
4
4
  import { Z_INDEX, defaultEmojiReactions } from '../../../constants';
@@ -21,12 +21,10 @@ export const ParticipantReaction = ({
21
21
  sessionId
22
22
  } = participant;
23
23
  const call = useCall();
24
+ const styles = useStyles();
24
25
  const {
25
26
  theme: {
26
27
  typefaces,
27
- variants: {
28
- iconSizes
29
- },
30
28
  participantReaction
31
29
  }
32
30
  } = useTheme();
@@ -42,19 +40,34 @@ export const ParticipantReaction = ({
42
40
  };
43
41
  }, [call, hideAfterTimeoutInMs, sessionId, reaction]);
44
42
  const currentReaction = reaction && supportedReactions.find(supportedReaction => supportedReaction.emoji_code === reaction.emoji_code);
45
- return /*#__PURE__*/React.createElement(View, {
46
- style: [styles.container, {
47
- height: iconSizes.md,
48
- width: iconSizes.md
49
- }, participantReaction.container]
43
+ return currentReaction?.icon != null && /*#__PURE__*/React.createElement(View, {
44
+ style: [styles.container, participantReaction.container]
45
+ }, /*#__PURE__*/React.createElement(View, {
46
+ style: styles.reaction
50
47
  }, /*#__PURE__*/React.createElement(Text, {
51
48
  style: [participantReaction.reaction, typefaces.heading6]
52
- }, currentReaction?.icon));
49
+ }, currentReaction?.icon)));
50
+ };
51
+ const useStyles = () => {
52
+ const {
53
+ theme
54
+ } = useTheme();
55
+ return useMemo(() => StyleSheet.create({
56
+ container: {
57
+ flex: 1,
58
+ zIndex: Z_INDEX.IN_FRONT
59
+ },
60
+ reaction: {
61
+ borderRadius: theme.variants.borderRadiusSizes.sm,
62
+ backgroundColor: theme.colors.sheetOverlay,
63
+ alignSelf: 'flex-end',
64
+ marginRight: theme.variants.spacingSizes.md,
65
+ marginTop: theme.variants.spacingSizes.md,
66
+ height: theme.variants.roundButtonSizes.md,
67
+ width: theme.variants.roundButtonSizes.md,
68
+ alignItems: 'center',
69
+ justifyContent: 'center'
70
+ }
71
+ }), [theme]);
53
72
  };
54
- const styles = StyleSheet.create({
55
- container: {
56
- alignSelf: 'flex-start',
57
- zIndex: Z_INDEX.IN_FRONT
58
- }
59
- });
60
73
  //# sourceMappingURL=ParticipantReaction.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEffect","StyleSheet","Text","View","useCall","Z_INDEX","defaultEmojiReactions","useTheme","ParticipantReaction","participant","supportedReactions","hideAfterTimeoutInMs","reaction","sessionId","call","theme","typefaces","variants","iconSizes","participantReaction","timeoutId","setTimeout","resetReaction","clearTimeout","currentReaction","find","supportedReaction","emoji_code","createElement","style","styles","container","height","md","width","heading6","icon","create","alignSelf","zIndex","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantReaction.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,OAAO,EAAEC,qBAAqB,QAAQ,oBAAoB;AAEnE,SAASC,QAAQ,QAAQ,gCAAgC;;AAGzD;AACA;AACA;;AAcA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAClCC,WAAW;EACXC,kBAAkB,GAAGJ,qBAAqB;EAC1CK,oBAAoB,GAAG;AACC,CAAC,KAAK;EAC9B,MAAM;IAAEC,QAAQ;IAAEC;EAAU,CAAC,GAAGJ,WAAW;EAC3C,MAAMK,IAAI,GAA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Call","Z_INDEX","defaultEmojiReactions","useTheme","ParticipantReaction","participant","supportedReactions","hideAfterTimeoutInMs","reaction","sessionId","call","styles","useStyles","theme","typefaces","participantReaction","timeoutId","setTimeout","resetReaction","clearTimeout","currentReaction","find","supportedReaction","emoji_code","icon","createElement","style","container","heading6","create","flex","zIndex","IN_FRONT","borderRadius","variants","borderRadiusSizes","sm","backgroundColor","colors","sheetOverlay","alignSelf","marginRight","spacingSizes","md","marginTop","height","roundButtonSizes","width","alignItems","justifyContent"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantReaction.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACjD,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAASC,OAAO,EAAEC,qBAAqB,QAAQ,oBAAoB;AAEnE,SAASC,QAAQ,QAAQ,gCAAgC;;AAGzD;AACA;AACA;;AAcA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAClCC,WAAW;EACXC,kBAAkB,GAAGJ,qBAAqB;EAC1CK,oBAAoB,GAAG;AACC,CAAC,KAAK;EAC9B,MAAM;IAAEC,QAAQ;IAAEC;EAAU,CAAC,GAAGJ,WAAW;EAC3C,MAAMK,IAAI,GAAGV,OAAO,CAAC,CAAC;EACtB,MAAMW,MAAM,GAAGC,SAAS,CAAC,CAAC;EAC1B,MAAM;IACJC,KAAK,EAAE;MAAEC,SAAS;MAAEC;IAAoB;EAC1C,CAAC,GAAGZ,QAAQ,CAAC,CAAC;EAEdR,SAAS,CAAC,MAAM;IACd,IAAIqB,SAAyB;IAC7B,IAAIN,IAAI,EAAE;MACRM,SAAS,GAAGC,UAAU,CAAC,MAAM;QAC3BP,IAAI,CAACQ,aAAa,CAACT,SAAS,CAAC;MAC/B,CAAC,EAAEF,oBAAoB,CAAC;IAC1B;IACA,OAAO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,YAAY,CAACC,EAAE;MACzCE,MAAM,EAAEhC,KAAK,CAACqB,QAAQ,CAACY,gBAAgB,CAACH,EAAE;MAC1CI,KAAK,EAAElC,KAAK,CAACqB,QAAQ,CAACY,gBAAgB,CAACH,EAAE;MACzCK,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE;IAClB;EACF,CAAC,CAAC,EACJ,CAACpC,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
@@ -30,11 +30,11 @@ export const ParticipantVideoFallback = ({
30
30
  // Display the Participant name/user id if the image isn't present.
31
31
  return /*#__PURE__*/React.createElement(View, {
32
32
  style: [styles.container, {
33
- backgroundColor: colors.static_grey
33
+ backgroundColor: colors.sheetTertiary
34
34
  }, participantVideoFallback.container]
35
35
  }, !image ? /*#__PURE__*/React.createElement(Text, {
36
36
  style: [{
37
- color: colors.static_white
37
+ color: colors.textPrimary
38
38
  }, typefaces.bodyBold, participantVideoFallback.label]
39
39
  }, participantLabel) : /*#__PURE__*/React.createElement(Avatar, {
40
40
  participant: participant,
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","Text","View","Avatar","useTheme","ParticipantVideoFallback","participant","theme","colors","typefaces","participantVideoFallback","name","image","userId","participantLabel","createElement","style","styles","container","backgroundColor","static_grey","color","static_white","bodyBold","label","avatarContainer","avatarImage","text","avatarText","create","alignItems","justifyContent","absoluteFillObject"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantVideoFallback.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,MAAM,QAAQ,eAAe;AAEtC,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;;AAMA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGA,CAAC;EACvCC;AAC6B,CAAC,KAAK;EACnC,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,SAAS;MAAEC;IAAyB;EACvD,CAAC,GAAGN,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEO,IAAI;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGP,WAAW;EAC3C,MAAMQ,gBAAgB,GAAGH,IAAI,IAAIE,MAAM;;EAEvC;EACA,oBACEd,KAAA,CAAAgB,aAAA,CAACb,IAAI;IACHc,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MACEC,eAAe,EAAEX,MAAM,CAACY;IAC1B,CAAC,EACDV,wBAAwB,CAACQ,SAAS;EAClC,GAED,CAACN,KAAK,gBACLb,KAAA,CAAAgB,aAAA,CAACd,IAAI;IACHe,KAAK,EAAE,CACL;MACEK,KAAK,EAAEb,MAAM,CAACc;IAChB,CAAC,EACDb,SAAS,CAACc,QAAQ,EAClBb,wBAAwB,CAACc,KAAK;EAC9B,GAEDV,gBACG,CAAC,gBAEPf,KAAA,CAAAgB,aAAA,CAACZ,MAAM;IACLG,WAAW,EAAEA,WAAY;IACzBU,KAAK,EAAE;MACLE,SAAS,EAAER,wBAAwB,CAACe,eAAe;MACnDb,KAAK,EAAEF,wBAAwB,CAACgB,WAAW;MAC3CC,IAAI,EAAEjB,wBAAwB,CAACkB;IACjC;EAAE,CACH,CAEC,CAAC;AAEX,CAAC;AAED,MAAMX,MAAM,GAAGjB,UAAU,CAAC6B,MAAM,CAAC;EAC/BX,SAAS,EAAE;IACTY,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxB,GAAG/B,UAAU,CAACgC;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","StyleSheet","Text","View","Avatar","useTheme","ParticipantVideoFallback","participant","theme","colors","typefaces","participantVideoFallback","name","image","userId","participantLabel","createElement","style","styles","container","backgroundColor","sheetTertiary","color","textPrimary","bodyBold","label","avatarContainer","avatarImage","text","avatarText","create","alignItems","justifyContent","absoluteFillObject"],"sourceRoot":"../../../../../src","sources":["components/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E;IACTY,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxB,GAAG/B,UAAU,CAACgC;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { useMemo } from 'react';
2
2
  import { StyleSheet, View } from 'react-native';
3
3
  import { ParticipantNetworkQualityIndicator as DefaultParticipantNetworkQualityIndicator } from './ParticipantNetworkQualityIndicator';
4
4
  import { ParticipantReaction as DefaultParticipantReaction } from './ParticipantReaction';
@@ -40,10 +40,11 @@ export const ParticipantView = ({
40
40
  isSpeaking,
41
41
  userId
42
42
  } = participant;
43
+ const styles = useStyles();
43
44
  const isScreenSharing = trackType === 'screenShareTrack';
44
45
  const applySpeakerStyle = isSpeaking && !isScreenSharing;
45
46
  const speakerStyle = applySpeakerStyle && [styles.highligtedContainer, {
46
- borderColor: colors.primary
47
+ borderColor: colors.buttonPrimary
47
48
  }, participantView.highligtedContainer];
48
49
  return /*#__PURE__*/React.createElement(View, {
49
50
  style: [styles.container, style, speakerStyle],
@@ -59,7 +60,7 @@ export const ParticipantView = ({
59
60
  objectFit: objectFit,
60
61
  videoZOrder: videoZOrder
61
62
  }), /*#__PURE__*/React.createElement(View, {
62
- style: [styles.footerContainer, participantView.footerContainer]
63
+ style: [styles.footerContainer, participantView.footerContainer, !ParticipantLabel && styles.networkIndicatorOnly]
63
64
  }, ParticipantLabel && /*#__PURE__*/React.createElement(ParticipantLabel, {
64
65
  participant: participant,
65
66
  trackType: trackType
@@ -67,21 +68,27 @@ export const ParticipantView = ({
67
68
  participant: participant
68
69
  })));
69
70
  };
70
- const styles = StyleSheet.create({
71
- container: {
72
- justifyContent: 'space-between',
73
- padding: 4,
74
- overflow: 'hidden',
75
- borderWidth: 2,
76
- borderColor: 'transparent'
77
- },
78
- footerContainer: {
79
- flexDirection: 'row',
80
- justifyContent: 'space-between',
81
- alignItems: 'center'
82
- },
83
- highligtedContainer: {
84
- borderWidth: 2
85
- }
86
- });
71
+ const useStyles = () => {
72
+ const {
73
+ theme
74
+ } = useTheme();
75
+ return useMemo(() => StyleSheet.create({
76
+ container: {
77
+ overflow: 'hidden',
78
+ justifyContent: 'flex-end',
79
+ borderRadius: theme.variants.borderRadiusSizes.md
80
+ },
81
+ footerContainer: {
82
+ flexDirection: 'row',
83
+ justifyContent: 'space-between',
84
+ alignItems: 'center'
85
+ },
86
+ highligtedContainer: {
87
+ borderWidth: 2
88
+ },
89
+ networkIndicatorOnly: {
90
+ justifyContent: 'flex-end'
91
+ }
92
+ }), [theme]);
93
+ };
87
94
  //# sourceMappingURL=ParticipantView.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","View","ParticipantNetworkQualityIndicator","DefaultParticipantNetworkQualityIndicator","ParticipantReaction","DefaultParticipantReaction","ParticipantLabel","DefaultParticipantLabel","ParticipantVideoFallback","DefaultParticipantVideoFallback","VideoRenderer","DefaultVideoRenderer","useTheme","ParticipantView","participant","trackType","isVisible","style","objectFit","videoZOrder","supportedReactions","theme","colors","participantView","isSpeaking","userId","isScreenSharing","applySpeakerStyle","speakerStyle","styles","highligtedContainer","borderColor","primary","createElement","container","testID","footerContainer","create","justifyContent","padding","overflow","borderWidth","flexDirection","alignItems"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantView.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAyB,OAAO;AAC5C,SAAoBC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAKrE,SACEC,kCAAkC,IAAIC,yCAAyC,QAE1E,sCAAsC;AAC7C,SACEC,mBAAmB,IAAIC,0BAA0B,QAE5C,uBAAuB;AAC9B,SACEC,gBAAgB,IAAIC,uBAAuB,QAEtC,oBAAoB;AAC3B,SACEC,wBAAwB,IAAIC,+BAA+B,QAEtD,4BAA4B;AACnC,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SAASC,QAAQ,QAAQ,gCAAgC;;AA0BzD;AACA;AACA;;A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AU;IACrBP,wBAAwB,EAAEA,wBAAyB;IACnDU,SAAS,EAAEA,SAAU;IACrBC,WAAW,EAAEA;EAAY,CAC1B,CACF,eACDpB,KAAA,CAAAkC,aAAA,CAAChC,IAAI;IAACgB,KAAK,EAAE,CAACY,MAAM,CAACO,eAAe,EAAEb,eAAe,CAACa,eAAe;EAAE,GACpE9B,gBAAgB,iBACfP,KAAA,CAAAkC,aAAA,CAAC3B,gBAAgB;IAACQ,WAAW,EAAEA,WAAY;IAACC,SAAS,EAAEA;EAAU,CAAE,CACpE,EACAb,kCAAkC,iBACjCH,KAAA,CAAAkC,aAAA,CAAC/B,kCAAkC;IAACY,WAAW,EAAEA;EAAY,CAAE,CAE7D,CACF,CAAC;AAEX,CAAC;AAED,MAAMe,MAAM,GAAG7B,UAAU,CAACqC,MAAM,CAAC;EAC/BH,SAAS,EAAE;IACTI,cAAc,EAAE,eAAe;IAC/BC,OAAO,EAAE,CAAC;IACVC,QAAQ,EAAE,QAAQ;IAClBC,WAAW,EAAE,CAAC;IACdV,WAAW,EAAE;EACf,CAAC;EACDK,eAAe,EAAE;IACfM,aAAa,EAAE,KAAK;IACpBJ,cAAc,EAAE,eAAe;IAC/BK,UAAU,EAAE;EACd,CAAC;EACDb,mBAAmB,EAAE;IACnBW,WAAW,EAAE;EACf;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","StyleSheet","View","ParticipantNetworkQualityIndicator","DefaultParticipantNetworkQualityIndicator","ParticipantReaction","DefaultParticipantReaction","ParticipantLabel","DefaultParticipantLabel","ParticipantVideoFallback","DefaultParticipantVideoFallback","VideoRenderer","DefaultVideoRenderer","useTheme","ParticipantView","participant","trackType","isVisible","style","objectFit","videoZOrder","supportedReactions","theme","colors","participantView","isSpeaking","userId","styles","useStyles","isScreenSharing","applySpeakerStyle","speakerStyle","highligtedContainer","borderColor","buttonPrimary","createElement","container","testID","footerContainer","networkIndicatorOnly","create","overflow","justifyContent","borderRadius","variants","borderRadiusSizes","md","flexDirection","alignItems","borderWidth"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/ParticipantView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAmBC,OAAO,QAAQ,OAAO;AACrD,SAAoBC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAKrE,SACEC,kCAAkC,IAAIC,yCAAyC,QAE1E,sCAAsC;AAC7C,SACEC,mBAAmB,IAAIC,0BAA0B,QAE5C,uBAAuB;AAC9B,SACEC,gBAAgB,IAAIC,uBAAuB,QAEtC,oBAAoB;AAC3B,SACEC,wBAAwB,IAAIC,+BAA+B,QAEtD,4BAA4B;AACnC,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SAASC,QAAQ,QAAQ,gCAAgC;;AA0BzD;AACA;AACA;;AAsCA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,WAAW;EACXC,SAAS,GAAG,YAAY;EACxBC,SAAS,GAAG,IAAI;EAChBC,KAAK;EACLX,gBAAgB,GAAGC,uBAAuB;EAC1CH,mBAAmB,GAAGC,0BAA0B;EAChDK,aAAa,GAAGC,oBAAoB;EACpCT,kCAAkC,GAAGC,yCAAyC;EAC9EK,wBAAwB,GAAGC,+BAA+B;EAC1DS,SAAS,GAAG,OAAO;EACnBC,WAAW,GAAG,CAAC;EACfC;AACoB,CAAC,KAAK;EAC1B,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAgB;EACnC,CAAC,GAAGX,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEY,UAAU;IAAEC;EAAO,CAAC,GAAGX,WAAW;EAC1C,MAAMY,MAAM,GAAGC,SAAS,CAAC,CAAC;EAC1B,MAAMC,eAAe,GAAGb,SAAS,KAAK,kBAAkB;EACxD,MAAMc,iBAAiB,GAAGL,UAAU,IAAI,CAACI,eAAe;EACxD,MAAME,YAAY,GAAGD,iBAAiB,IAAI,CACxCH,MAAM,CAACK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AAS,EAAE;MACTK,QAAQ,EAAE,QAAQ;MAClBC,cAAc,EAAE,UAAU;MAC1BC,YAAY,EAAErB,KAAK,CAACsB,QAAQ,CAACC,iBAAiB,CAACC;IACjD,CAAC;IACDR,eAAe,EAAE;MACfS,aAAa,EAAE,KAAK;MACpBL,cAAc,EAAE,eAAe;MAC/BM,UAAU,EAAE;IACd,CAAC;IACDhB,mBAAmB,EAAE;MACnBiB,WAAW,EAAE;IACf,CAAC;IACDV,oBAAoB,EAAE;MAAEG,cAAc,EAAE;IAAW;EACrD,CAAC,CAAC,EACJ,CAACpB,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,78 @@
1
+ import React, { useEffect, useMemo, useState } from 'react';
2
+ import { View, Animated, StyleSheet } from 'react-native';
3
+ import { useTheme } from '../../..';
4
+
5
+ /**
6
+ * Props for the SpeechIndicator component.
7
+ */
8
+
9
+ /**
10
+ * The SpeechIndicator component displays animated bars to indicate speech activity.
11
+ * The bars animate when `isSpeaking` is true, mimicking a sound meter.
12
+ */
13
+ export const SpeechIndicator = ({
14
+ isSpeaking
15
+ }) => {
16
+ const styles = useStyles();
17
+ const [animationValues] = useState(() => [new Animated.Value(0.6), new Animated.Value(0.6), new Animated.Value(0.6)]);
18
+ useEffect(() => {
19
+ if (isSpeaking) {
20
+ animationValues.forEach((animatedValue, index) => {
21
+ Animated.loop(Animated.sequence([Animated.timing(animatedValue, {
22
+ toValue: index % 2 === 0 ? 0.3 : 1.1,
23
+ duration: (index + 1) * 300,
24
+ useNativeDriver: true
25
+ }), Animated.timing(animatedValue, {
26
+ toValue: 0.6,
27
+ duration: (index + 1) * 300,
28
+ useNativeDriver: true
29
+ })])).start();
30
+ });
31
+ } else {
32
+ animationValues.forEach(animatedValue => {
33
+ animatedValue.setValue(0.3); // Set a smaller value for a reduced default height
34
+ });
35
+ }
36
+ }, [isSpeaking, animationValues]);
37
+ const barStyle = animatedValue => ({
38
+ transform: [{
39
+ scaleY: animatedValue
40
+ }]
41
+ });
42
+ return /*#__PURE__*/React.createElement(View, {
43
+ style: [styles.container]
44
+ }, animationValues.map((animatedValue, index) => /*#__PURE__*/React.createElement(Animated.View, {
45
+ key: index,
46
+ style: [styles.bar, isSpeaking ? barStyle(animatedValue) : styles.smallBar // Apply smaller bar style when not speaking
47
+ ]
48
+ })));
49
+ };
50
+ const useStyles = () => {
51
+ const {
52
+ theme
53
+ } = useTheme();
54
+ return useMemo(() => StyleSheet.create({
55
+ container: {
56
+ flexDirection: 'row',
57
+ justifyContent: 'space-between',
58
+ alignItems: 'center',
59
+ height: theme.variants.roundButtonSizes.sm,
60
+ width: theme.variants.roundButtonSizes.sm,
61
+ borderRadius: 5,
62
+ gap: 1,
63
+ backgroundColor: theme.colors.sheetOverlay,
64
+ padding: 5
65
+ },
66
+ smallBar: {
67
+ height: '30%' // Smaller default height when animation is not running
68
+ },
69
+ bar: {
70
+ width: 3,
71
+ height: '100%',
72
+ backgroundColor: theme.colors.iconSecondary,
73
+ borderRadius: 2
74
+ }
75
+ }), [theme]);
76
+ };
77
+ export default SpeechIndicator;
78
+ //# sourceMappingURL=SpeechIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useMemo","useState","View","Animated","StyleSheet","useTheme","SpeechIndicator","isSpeaking","styles","useStyles","animationValues","Value","forEach","animatedValue","index","loop","sequence","timing","toValue","duration","useNativeDriver","start","setValue","barStyle","transform","scaleY","createElement","style","container","map","key","bar","smallBar","theme","create","flexDirection","justifyContent","alignItems","height","variants","roundButtonSizes","sm","width","borderRadius","gap","backgroundColor","colors","sheetOverlay","padding","iconSecondary"],"sourceRoot":"../../../../../src","sources":["components/Participant/ParticipantView/SpeechIndicator.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC3D,SAASC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AACzD,SAASC,QAAQ,QAAQ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,EACJ,CAACV,KAAK,CACR,CAAC;AACH,CAAC;AAED,eAAe3B,eAAe","ignoreList":[]}
@@ -50,7 +50,7 @@ export const Avatar = props => {
50
50
  }) : /*#__PURE__*/React.createElement(Text, {
51
51
  style: [styles.text, {
52
52
  fontSize: size / 2,
53
- color: colors.bars
53
+ color: colors.textPrimary
54
54
  }, typefaces.heading6, avatar.text, styleProp?.text],
55
55
  numberOfLines: 1
56
56
  }, userLabel));
@@ -1 +1 @@
1
- {"version":3,"names":["Image","StyleSheet","Text","View","React","getInitialsOfName","ComponentTestIds","ImageTestIds","useTheme","Avatar","props","participant","userId","image","name","size","style","styleProp","theme","avatar","colors","typefaces","userDetails","userLabel","imageUrl","createElement","testID","PARTICIPANT_AVATAR","styles","container","borderRadius","height","width","backgroundColor","primary","AVATAR","source","uri","text","fontSize","color","bars","heading6","numberOfLines","create","justifyContent","overflow","flex","textAlign"],"sourceRoot":"../../../../src","sources":["components/utility/Avatar.tsx"],"mappings":"AAAA,SAASA,KAAK,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC5D,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,iBAAiB,QAAQ,aAAa;AAC/C,SAASC,gBAAgB,EAAEC,YAAY,QAAQ,yBAAyB;AACxE,SAASC,QAAQ,QAAQ,6BAA6B;;AAGtD;AACA;AACA;;AAkCA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,GAAIC,KAAkB,IAAK;EAC5C,MAAM;IACJC,WAAW,EAAE;MAAEC,MAAM;MAAEC,KAAK;MAAEC;IAAK,CAAC;IACpCC,IAAI,GAAG,GAAG;IACVC,KAAK,EAAEC;EACT,CAAC,GAAGP,KAAK;EACT,MAAM;IACJQ,KAAK,EAAE;MAAEC,MAAM;MAAEC,MAAM;MAAEC;IAAU;EACrC,CAAC,GAAGb,QAAQ,CAAC,CAAC;EACd,MAAMc,WAAW,GAAGR,IAAI,IAAIF,MAAM;EAClC,MAAMW,SAAS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I,EAAE;IACJU,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Image","StyleSheet","Text","View","React","getInitialsOfName","ComponentTestIds","ImageTestIds","useTheme","Avatar","props","participant","userId","image","name","size","style","styleProp","theme","avatar","colors","typefaces","userDetails","userLabel","imageUrl","createElement","testID","PARTICIPANT_AVATAR","styles","container","borderRadius","height","width","backgroundColor","primary","AVATAR","source","uri","text","fontSize","color","textPrimary","heading6","numberOfLines","create","justifyContent","overflow","flex","textAlign"],"sourceRoot":"../../../../src","sources":["components/utility/Avatar.tsx"],"mappings":"AAAA,SAASA,KAAK,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC5D,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,iBAAiB,QAAQ,aAAa;AAC/C,SAASC,gBAAgB,EAAEC,YAAY,QAAQ,yBAAyB;AACxE,SAASC,QAAQ,QAAQ,6BAA6B;;AAGtD;AACA;AACA;;AAkCA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,GAAIC,KAAkB,IAAK;EAC5C,MAAM;IACJC,WAAW,EAAE;MAAEC,MAAM;MAAEC,KAAK;MAAEC;IAAK,CAAC;IACpCC,IAAI,GAAG,GAAG;IACVC,KAAK,EAAEC;EACT,CAAC,GAAGP,KAAK;EACT,MAAM;IACJQ,KAAK,EAAE;MAAEC,MAAM;MAAEC,MAAM;MAAEC;IAAU;EACrC,CAAC,GAAGb,QAAQ,CAAC,CAAC;EACd,MAAMc,WAAW,GAAGR,IAAI,IAAIF,MAAM;EAClC,MAAMW,SAAS,GAAGD,WAAW,GAAGjB,iBAAiB,CAACiB,WAAW,CAAC,GAAG,GAAG;EAEpE,MAAME,QAAQ,GAAGX,KAAK;EACtB,oBACET,KAAA,CAAAqB,aAAA,CAACtB,IAAI;IACHuB,MAAM,EAAEpB,gBAAgB,CAACqB,kBAAmB;IAC5CX,KAAK,EAAE,CACLY,MAAM,CAACC,SAAS,EAChB;MACEC,YAAY,EAAEf,IAAI,GAAG,CAAC;MACtBgB,MAAM,EAAEhB,IAAI;MACZiB,KAAK,EAAEjB;IACT,CAAC,EACD;MAAEkB,eAAe,EAAEb,MAAM,CAACc;IAAQ,CAAC,EACnCf,MAAM,CAACU,SAAS,EAChBZ,SAAS,EAAEY,SAAS;EACpB,GAEDL,QAAQ,gBACPpB,KAAA,CAAAqB,aAAA,CAACzB,KAAK;IACJ0B,MAAM,EAAEnB,YAAY,CAAC4B,MAAO;IAC5BC,MAAM,EAAE;MACNC,GAAG,EAAEb;IACP,CAAE;IACFR,KAAK,EAAE,CAACY,MAAM,CAACf,KAAK,EAAEM,MAAM,CAACN,KAAK,EAAEI,SAAS,EAAEJ,KAAK;EAAE,CACvD,CAAC,gBAEFT,KAAA,CAAAqB,aAAA,CAACvB,IAAI;IACHc,KAAK,EAAE,CACLY,MAAM,CAACU,IAAI,EACX;MAAEC,QAAQ,EAAExB,IAAI,GAAG,CAAC;MAAEyB,KAAK,EAAEpB,MAAM,CAACqB;IAAY,CAAC,EACjDpB,SAAS,CAACqB,QAAQ,EAClBvB,MAAM,CAACmB,IAAI,EACXrB,SAAS,EAAEqB,IAAI,CACf;IACFK,aAAa,EAAE;EAAE,GAEhBpB,SACG,CAEJ,CAAC;AAEX,CAAC;AAED,MAAMK,MAAM,GAAG3B,UAAU,CAAC2C,MAAM,CAAC;EAC/Bf,SAAS,EAAE;IACTgB,cAAc,EAAE,QAAQ;IACxBC,QAAQ,EAAE;EACZ,CAAC;EACDjC,KAAK,EAAE;IACLkC,IAAI,EAAE;EACR,CAAC;EACDT,IAAI,EAAE;IACJU,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -32,11 +32,11 @@ export const ScreenShareOverlay = ({}) => {
32
32
  };
33
33
  return /*#__PURE__*/React.createElement(View, {
34
34
  style: [styles.container, {
35
- backgroundColor: colors.static_grey
35
+ backgroundColor: colors.sheetTertiary
36
36
  }, screenshareOverlay.container]
37
37
  }, /*#__PURE__*/React.createElement(Text, {
38
38
  style: [styles.text, typefaces.subtitleBold, {
39
- color: colors.static_white
39
+ color: colors.textPrimary
40
40
  }, screenshareOverlay.text]
41
41
  }, t('You are sharing your screen with everyone')), /*#__PURE__*/React.createElement(Pressable, {
42
42
  onPress: onStopScreenshareHandler,
@@ -44,7 +44,7 @@ export const ScreenShareOverlay = ({}) => {
44
44
  pressed
45
45
  }) => {
46
46
  return [styles.button, {
47
- backgroundColor: colors.dark_gray,
47
+ backgroundColor: colors.sheetSecondary,
48
48
  opacity: pressed ? 0.2 : 1
49
49
  }, screenshareOverlay.button];
50
50
  }
@@ -54,10 +54,11 @@ export const ScreenShareOverlay = ({}) => {
54
54
  width: iconSizes.xs
55
55
  }, screenshareOverlay.buttonIcon]
56
56
  }, /*#__PURE__*/React.createElement(StopScreenShare, {
57
- color: colors.static_white
57
+ size: iconSizes.xs,
58
+ color: colors.iconPrimary
58
59
  })), /*#__PURE__*/React.createElement(Text, {
59
60
  style: [styles.buttonText, {
60
- color: colors.static_white
61
+ color: colors.textPrimary
61
62
  }, screenshareOverlay.buttonText]
62
63
  }, t('Stop Screen Sharing'))));
63
64
  };