@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.
- package/CHANGELOG.md +16 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js +25 -20
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +8 -6
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControls.js +2 -2
- package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +11 -18
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +8 -13
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +5 -1
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js +16 -9
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js +3 -3
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +8 -6
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js +10 -6
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +10 -10
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +9 -6
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +10 -6
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +10 -10
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +9 -6
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/index.js +0 -11
- package/dist/commonjs/components/Call/CallControls/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +32 -28
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +31 -25
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +32 -17
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +21 -14
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js +66 -94
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +60 -23
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +6 -7
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +6 -7
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +0 -4
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js +3 -3
- package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/commonjs/components/Call/index.js +0 -11
- package/dist/commonjs/components/Call/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +31 -20
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +7 -5
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +5 -3
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +7 -5
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +16 -5
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +6 -5
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +72 -49
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +5 -5
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +28 -15
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +2 -2
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +29 -21
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js +86 -0
- package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -0
- package/dist/commonjs/components/utility/Avatar.js +1 -1
- package/dist/commonjs/components/utility/Avatar.js.map +1 -1
- package/dist/commonjs/components/utility/ScreenShareOverlay.js +6 -5
- package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/commonjs/constants/TestIds.js +1 -1
- package/dist/commonjs/constants/TestIds.js.map +1 -1
- package/dist/commonjs/constants/index.js +24 -5
- package/dist/commonjs/constants/index.js.map +1 -1
- package/dist/commonjs/icons/CameraSwitch.js +6 -3
- package/dist/commonjs/icons/CameraSwitch.js.map +1 -1
- package/dist/commonjs/icons/IconWrapper.js +25 -0
- package/dist/commonjs/icons/IconWrapper.js.map +1 -0
- package/dist/commonjs/icons/Lock.js +26 -0
- package/dist/commonjs/icons/Lock.js.map +1 -0
- package/dist/commonjs/icons/Mic.js +6 -6
- package/dist/commonjs/icons/Mic.js.map +1 -1
- package/dist/commonjs/icons/MicOff.js +6 -3
- package/dist/commonjs/icons/MicOff.js.map +1 -1
- package/dist/commonjs/icons/Phone.js +13 -3
- package/dist/commonjs/icons/Phone.js.map +1 -1
- package/dist/commonjs/icons/PhoneDown.js +6 -3
- package/dist/commonjs/icons/PhoneDown.js.map +1 -1
- package/dist/commonjs/icons/PinVertical.js +5 -2
- package/dist/commonjs/icons/PinVertical.js.map +1 -1
- package/dist/commonjs/icons/Reaction.js +3 -1
- package/dist/commonjs/icons/Reaction.js.map +1 -1
- package/dist/commonjs/icons/ScreenShare.js +6 -3
- package/dist/commonjs/icons/ScreenShare.js.map +1 -1
- package/dist/commonjs/icons/StopScreenShare.js +5 -2
- package/dist/commonjs/icons/StopScreenShare.js.map +1 -1
- package/dist/commonjs/icons/Video.js +6 -3
- package/dist/commonjs/icons/Video.js.map +1 -1
- package/dist/commonjs/icons/VideoSlash.js +6 -3
- package/dist/commonjs/icons/VideoSlash.js.map +1 -1
- package/dist/commonjs/icons/index.js +11 -22
- package/dist/commonjs/icons/index.js.map +1 -1
- package/dist/commonjs/theme/colors.js +22 -39
- package/dist/commonjs/theme/colors.js.map +1 -1
- package/dist/commonjs/theme/constants.js +44 -44
- package/dist/commonjs/theme/constants.js.map +1 -1
- package/dist/commonjs/theme/index.js +11 -10
- package/dist/commonjs/theme/index.js.map +1 -1
- package/dist/commonjs/theme/theme.js +46 -9
- package/dist/commonjs/theme/theme.js.map +1 -1
- package/dist/commonjs/translations/en.json +7 -3
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +26 -21
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallControls/AcceptCallButton.js +9 -7
- package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControls.js +2 -2
- package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControlsButton.js +11 -18
- package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/HangupCallButton.js +8 -13
- package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/IncomingCallControls.js +5 -1
- package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/LobbyControls.js +14 -8
- package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/ReactionsButton.js +4 -4
- package/dist/module/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/RejectCallButton.js +9 -7
- package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js +10 -6
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +11 -11
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +10 -7
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +11 -7
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +11 -11
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +10 -7
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/index.js +0 -1
- package/dist/module/components/Call/CallControls/index.js.map +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +33 -29
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +29 -24
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +32 -17
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/module/components/Call/Lobby/JoinCallButton.js +19 -13
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js +64 -93
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +58 -22
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +6 -7
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +6 -7
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +0 -4
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js +3 -3
- package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/UserInfo.js +1 -1
- package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/module/components/Call/index.js +0 -1
- package/dist/module/components/Call/index.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +32 -21
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +2 -2
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +8 -6
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +5 -3
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +8 -6
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +2 -2
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +2 -2
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +2 -2
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +17 -6
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js +6 -5
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +70 -49
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +5 -5
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +29 -16
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +2 -2
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js +27 -20
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +78 -0
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -0
- package/dist/module/components/utility/Avatar.js +1 -1
- package/dist/module/components/utility/Avatar.js.map +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js +6 -5
- package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/module/constants/TestIds.js +1 -1
- package/dist/module/constants/TestIds.js.map +1 -1
- package/dist/module/constants/index.js +23 -4
- package/dist/module/constants/index.js.map +1 -1
- package/dist/module/icons/CameraSwitch.js +6 -3
- package/dist/module/icons/CameraSwitch.js.map +1 -1
- package/dist/module/icons/IconWrapper.js +17 -0
- package/dist/module/icons/IconWrapper.js.map +1 -0
- package/dist/module/icons/Lock.js +16 -0
- package/dist/module/icons/Lock.js.map +1 -0
- package/dist/module/icons/Mic.js +6 -6
- package/dist/module/icons/Mic.js.map +1 -1
- package/dist/module/icons/MicOff.js +6 -3
- package/dist/module/icons/MicOff.js.map +1 -1
- package/dist/module/icons/Phone.js +13 -3
- package/dist/module/icons/Phone.js.map +1 -1
- package/dist/module/icons/PhoneDown.js +6 -3
- package/dist/module/icons/PhoneDown.js.map +1 -1
- package/dist/module/icons/PinVertical.js +5 -2
- package/dist/module/icons/PinVertical.js.map +1 -1
- package/dist/module/icons/Reaction.js +3 -1
- package/dist/module/icons/Reaction.js.map +1 -1
- package/dist/module/icons/ScreenShare.js +6 -3
- package/dist/module/icons/ScreenShare.js.map +1 -1
- package/dist/module/icons/StopScreenShare.js +5 -2
- package/dist/module/icons/StopScreenShare.js.map +1 -1
- package/dist/module/icons/Video.js +6 -3
- package/dist/module/icons/Video.js.map +1 -1
- package/dist/module/icons/VideoSlash.js +6 -3
- package/dist/module/icons/VideoSlash.js.map +1 -1
- package/dist/module/icons/index.js +1 -2
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/theme/colors.js +22 -39
- package/dist/module/theme/colors.js.map +1 -1
- package/dist/module/theme/constants.js +44 -44
- package/dist/module/theme/constants.js.map +1 -1
- package/dist/module/theme/index.js +1 -5
- package/dist/module/theme/index.js.map +1 -1
- package/dist/module/theme/theme.js +46 -9
- package/dist/module/theme/theme.js.map +1 -1
- package/dist/module/translations/en.json +7 -3
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts +2 -7
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts +4 -0
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/LobbyControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ReactionsButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts +6 -1
- package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/index.d.ts +0 -1
- package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts +2 -6
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts +1 -6
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts +0 -5
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/index.d.ts +0 -1
- package/dist/typescript/components/Call/index.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamAudioControlButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamVideoControlButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts +18 -0
- package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts.map +1 -0
- package/dist/typescript/components/utility/Avatar.d.ts.map +1 -1
- package/dist/typescript/constants/TestIds.d.ts +2 -2
- package/dist/typescript/constants/TestIds.d.ts.map +1 -1
- package/dist/typescript/constants/index.d.ts +0 -1
- package/dist/typescript/constants/index.d.ts.map +1 -1
- package/dist/typescript/icons/CameraSwitch.d.ts +2 -1
- package/dist/typescript/icons/CameraSwitch.d.ts.map +1 -1
- package/dist/typescript/icons/IconWrapper.d.ts +6 -0
- package/dist/typescript/icons/IconWrapper.d.ts.map +1 -0
- package/dist/typescript/icons/{Chat.d.ts → Lock.d.ts} +3 -2
- package/dist/typescript/icons/Lock.d.ts.map +1 -0
- package/dist/typescript/icons/Mic.d.ts +2 -1
- package/dist/typescript/icons/Mic.d.ts.map +1 -1
- package/dist/typescript/icons/MicOff.d.ts +2 -1
- package/dist/typescript/icons/MicOff.d.ts.map +1 -1
- package/dist/typescript/icons/Phone.d.ts +2 -1
- package/dist/typescript/icons/Phone.d.ts.map +1 -1
- package/dist/typescript/icons/PhoneDown.d.ts +2 -1
- package/dist/typescript/icons/PhoneDown.d.ts.map +1 -1
- package/dist/typescript/icons/PinVertical.d.ts +2 -1
- package/dist/typescript/icons/PinVertical.d.ts.map +1 -1
- package/dist/typescript/icons/ScreenShare.d.ts +2 -1
- package/dist/typescript/icons/ScreenShare.d.ts.map +1 -1
- package/dist/typescript/icons/StopScreenShare.d.ts +2 -1
- package/dist/typescript/icons/StopScreenShare.d.ts.map +1 -1
- package/dist/typescript/icons/Video.d.ts +2 -1
- package/dist/typescript/icons/Video.d.ts.map +1 -1
- package/dist/typescript/icons/VideoSlash.d.ts +2 -1
- package/dist/typescript/icons/VideoSlash.d.ts.map +1 -1
- package/dist/typescript/icons/index.d.ts +1 -2
- package/dist/typescript/icons/index.d.ts.map +1 -1
- package/dist/typescript/theme/colors.d.ts +5 -38
- package/dist/typescript/theme/colors.d.ts.map +1 -1
- package/dist/typescript/theme/constants.d.ts +44 -44
- package/dist/typescript/theme/constants.d.ts.map +1 -1
- package/dist/typescript/theme/index.d.ts +1 -2
- package/dist/typescript/theme/index.d.ts.map +1 -1
- package/dist/typescript/theme/theme.d.ts +23 -31
- package/dist/typescript/theme/theme.d.ts.map +1 -1
- package/dist/typescript/theme/types.d.ts +65 -18
- package/dist/typescript/theme/types.d.ts.map +1 -1
- package/dist/typescript/translations/index.d.ts +5 -1
- package/dist/typescript/translations/index.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/Call/CallContent/CallContent.tsx +25 -33
- package/src/components/Call/CallControls/AcceptCallButton.tsx +7 -5
- package/src/components/Call/CallControls/CallControls.tsx +2 -2
- package/src/components/Call/CallControls/CallControlsButton.tsx +14 -20
- package/src/components/Call/CallControls/HangupCallButton.tsx +6 -11
- package/src/components/Call/CallControls/IncomingCallControls.tsx +5 -1
- package/src/components/Call/CallControls/LobbyControls.tsx +16 -8
- package/src/components/Call/CallControls/ReactionsButton.tsx +4 -2
- package/src/components/Call/CallControls/RejectCallButton.tsx +7 -5
- package/src/components/Call/CallControls/ScreenShareToggleButton.tsx +18 -7
- package/src/components/Call/CallControls/ToggleAudioPreviewButton.tsx +11 -13
- package/src/components/Call/CallControls/ToggleAudioPublishingButton.tsx +12 -8
- package/src/components/Call/CallControls/ToggleCameraFaceButton.tsx +23 -10
- package/src/components/Call/CallControls/ToggleVideoPreviewButton.tsx +11 -14
- package/src/components/Call/CallControls/ToggleVideoPublishingButton.tsx +15 -8
- package/src/components/Call/CallControls/index.tsx +0 -1
- package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +34 -32
- package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +2 -4
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +29 -23
- package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +34 -15
- package/src/components/Call/Lobby/JoinCallButton.tsx +21 -15
- package/src/components/Call/Lobby/Lobby.tsx +74 -121
- package/src/components/Call/Lobby/LobbyFooter.tsx +63 -41
- package/src/components/Call/RingingCallContent/IncomingCall.tsx +4 -14
- package/src/components/Call/RingingCallContent/OutgoingCall.tsx +4 -14
- package/src/components/Call/RingingCallContent/RingingCallContent.tsx +3 -17
- package/src/components/Call/RingingCallContent/TextBasedIndicator.tsx +3 -3
- package/src/components/Call/RingingCallContent/UserInfo.tsx +1 -1
- package/src/components/Call/index.ts +0 -1
- package/src/components/Livestream/HostLivestream/HostLivestream.tsx +34 -23
- package/src/components/Livestream/LivestreamControls/HostLivestreamControls.tsx +1 -1
- package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +4 -4
- package/src/components/Livestream/LivestreamControls/LivestreamAudioControlButton.tsx +9 -7
- package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +4 -4
- package/src/components/Livestream/LivestreamControls/LivestreamVideoControlButton.tsx +9 -7
- package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +2 -4
- package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +1 -3
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +1 -1
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +2 -2
- package/src/components/Livestream/LivestreamTopView/FollowerCount.tsx +2 -2
- package/src/components/Livestream/LivestreamTopView/HostLivestreamTopView.tsx +1 -1
- package/src/components/Livestream/LivestreamTopView/LiveIndicator.tsx +2 -2
- package/src/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx +1 -1
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +19 -6
- package/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.tsx +0 -1
- package/src/components/Participant/FloatingParticipantView/index.tsx +4 -6
- package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +87 -87
- package/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.tsx +5 -5
- package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +36 -26
- package/src/components/Participant/ParticipantView/ParticipantVideoFallback.tsx +2 -6
- package/src/components/Participant/ParticipantView/ParticipantView.tsx +33 -22
- package/src/components/Participant/ParticipantView/SpeechIndicator.tsx +103 -0
- package/src/components/utility/Avatar.tsx +2 -4
- package/src/components/utility/ScreenShareOverlay.tsx +5 -5
- package/src/constants/TestIds.ts +1 -1
- package/src/constants/index.ts +27 -5
- package/src/icons/CameraSwitch.tsx +4 -3
- package/src/icons/IconWrapper.tsx +15 -0
- package/src/icons/Lock.tsx +19 -0
- package/src/icons/Mic.tsx +4 -7
- package/src/icons/MicOff.tsx +4 -3
- package/src/icons/Phone.tsx +11 -3
- package/src/icons/PhoneDown.tsx +9 -3
- package/src/icons/PinVertical.tsx +3 -2
- package/src/icons/Reaction.tsx +1 -1
- package/src/icons/ScreenShare.tsx +9 -3
- package/src/icons/StopScreenShare.tsx +3 -2
- package/src/icons/Video.tsx +4 -3
- package/src/icons/VideoSlash.tsx +9 -3
- package/src/icons/index.tsx +1 -2
- package/src/theme/colors.ts +27 -42
- package/src/theme/constants.ts +51 -44
- package/src/theme/index.ts +1 -8
- package/src/theme/theme.ts +77 -40
- package/src/theme/types.ts +72 -21
- package/src/translations/en.json +7 -3
- package/src/version.ts +1 -1
- package/dist/commonjs/components/Call/CallControls/ChatButton.js +0 -84
- package/dist/commonjs/components/Call/CallControls/ChatButton.js.map +0 -1
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js +0 -120
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js.map +0 -1
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -105
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
- package/dist/commonjs/components/Call/CallTopView/index.js +0 -28
- package/dist/commonjs/components/Call/CallTopView/index.js.map +0 -1
- package/dist/commonjs/icons/Chat.js +0 -19
- package/dist/commonjs/icons/Chat.js.map +0 -1
- package/dist/commonjs/icons/Participants.js +0 -21
- package/dist/commonjs/icons/Participants.js.map +0 -1
- package/dist/module/components/Call/CallControls/ChatButton.js +0 -77
- package/dist/module/components/Call/CallControls/ChatButton.js.map +0 -1
- package/dist/module/components/Call/CallTopView/CallTopView.js +0 -111
- package/dist/module/components/Call/CallTopView/CallTopView.js.map +0 -1
- package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -98
- package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
- package/dist/module/components/Call/CallTopView/index.js +0 -3
- package/dist/module/components/Call/CallTopView/index.js.map +0 -1
- package/dist/module/icons/Chat.js +0 -11
- package/dist/module/icons/Chat.js.map +0 -1
- package/dist/module/icons/Participants.js +0 -13
- package/dist/module/icons/Participants.js.map +0 -1
- package/dist/typescript/components/Call/CallControls/ChatButton.d.ts +0 -22
- package/dist/typescript/components/Call/CallControls/ChatButton.d.ts.map +0 -1
- package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts +0 -29
- package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts.map +0 -1
- package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts +0 -12
- package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts.map +0 -1
- package/dist/typescript/components/Call/CallTopView/index.d.ts +0 -3
- package/dist/typescript/components/Call/CallTopView/index.d.ts.map +0 -1
- package/dist/typescript/icons/Chat.d.ts.map +0 -1
- package/dist/typescript/icons/Participants.d.ts +0 -8
- package/dist/typescript/icons/Participants.d.ts.map +0 -1
- package/src/components/Call/CallControls/ChatButton.tsx +0 -90
- package/src/components/Call/CallTopView/CallTopView.tsx +0 -162
- package/src/components/Call/CallTopView/ParticipantsInfoBadge.tsx +0 -119
- package/src/components/Call/CallTopView/index.ts +0 -2
- package/src/icons/Chat.tsx +0 -16
- 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.
|
|
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.
|
|
74
|
+
color: colors.iconPrimary
|
|
73
75
|
})), /*#__PURE__*/React.createElement(Text, {
|
|
74
76
|
style: [styles.userNameLabel, {
|
|
75
|
-
color: colors.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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","
|
|
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,OAA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ACJ,CAACnE,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js
CHANGED
|
@@ -23,11 +23,11 @@ const useConnectionQualitySignalColors = participant => {
|
|
|
23
23
|
}
|
|
24
24
|
switch (connectionQuality) {
|
|
25
25
|
case SfuModels.ConnectionQuality.EXCELLENT:
|
|
26
|
-
return [colors.
|
|
26
|
+
return [colors.iconSuccess, colors.iconSuccess, colors.iconSuccess];
|
|
27
27
|
case SfuModels.ConnectionQuality.GOOD:
|
|
28
|
-
return [colors.
|
|
28
|
+
return [colors.iconSuccess, colors.iconSuccess, colors.iconPrimary];
|
|
29
29
|
case SfuModels.ConnectionQuality.POOR:
|
|
30
|
-
return [colors.
|
|
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.
|
|
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
|
-
|
|
87
|
+
borderTopLeftRadius: 5
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
//# sourceMappingURL=ParticipantNetworkQualityIndicator.js.map
|
package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","View","Path","Svg","SfuModels","React","Z_INDEX","useTheme","useConnectionQualitySignalColors","participant","theme","colors","connectionQuality","ConnectionQuality","EXCELLENT","
|
|
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,E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ACnCc,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,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
|
-
|
|
48
|
-
|
|
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","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","StyleSheet","Text","View","useCall","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,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MACjDC,eAAe,EAAExB,KAAK,CAACyB,MAAM,CAACC,YAAY;MAC1CC,SAAS,EAAE,UAAU;MACrBC,WAAW,EAAE5B,KAAK,CAACqB,QAAQ,CAACQ,YAAY,CAACC,EAAE;MAC3CC,SAAS,EAAE/B,KAAK,CAACqB,QAAQ,CAACQ,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.
|
|
33
|
+
backgroundColor: colors.sheetTertiary
|
|
34
34
|
}, participantVideoFallback.container]
|
|
35
35
|
}, !image ? /*#__PURE__*/React.createElement(Text, {
|
|
36
36
|
style: [{
|
|
37
|
-
color: colors.
|
|
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","
|
|
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/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;MAAEC,eAAe,EAAEX,MAAM,CAACY;IAAc,CAAC,EACzCV,wBAAwB,CAACQ,SAAS;EAClC,GAED,CAACN,KAAK,gBACLb,KAAA,CAAAgB,aAAA,CAACd,IAAI;IACHe,KAAK,EAAE,CACL;MAAEK,KAAK,EAAEb,MAAM,CAACc;IAAY,CAAC,EAC7Bb,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,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.
|
|
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
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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","
|
|
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;MAAE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;IAACC,SAAS,EAAEA;EAAU,CAAE,CACpE,EACAb,kCAAkC,iBACjCJ,KAAA,CAAAoC,aAAA,CAAChC,kCAAkC;IAACY,WAAW,EAAEA;EAAY,CAAE,CAE7D,CACF,CAAC;AAEX,CAAC;AAED,MAAMa,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEN;EAAM,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAC5B,OAAOb,OAAO,CACZ,MACEC,UAAU,CAACuC,MAAM,CAAC;IAChBJ,SAAS,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,UAAU;;AAEnC;AACA;AACA;;AASA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAAEC;AAAiC,CAAC,KAAK;EACvE,MAAMC,MAAM,GAAGC,SAAS,CAAC,CAAC;EAE1B,MAAM,CAACC,eAAe,CAAC,GAAGT,QAAQ,CAAC,MAAM,CACvC,IAAIE,QAAQ,CAACQ,KAAK,CAAC,GAAG,CAAC,EACvB,IAAIR,QAAQ,CAACQ,KAAK,CAAC,GAAG,CAAC,EACvB,I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ACXa,KAAK,EAAE,CACLnB,MAAM,CAACuB,GAAG,EACVxB,UAAU,GAAGgB,QAAQ,CAACV,aAAa,CAAC,GAAGL,MAAM,CAACwB,QAAQ,CAAE;IAAA;EACxD,CACH,CACF,CACG,CAAC;AAEX,CAAC;AAED,MAAMvB,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEwB;EAAM,CAAC,GAAG5B,QAAQ,CAAC,CAAC;EAC5B,OAAOL,OAAO,CACZ,MACEI,UAAU,CAAC8B,MAAM,CAAC;IAChBN,SAAS,EAAE;MACTO,aAAa,EAAE,KAAK;MACpBC,cAAc,EAAE,eAAe;MAC/BC,UAAU,EAAE,QAAQ;MACpBC,MAAM,EAAEL,KAAK,CAACM,QAAQ,CAACC,gBAAgB,CAACC,EAAE;MAC1CC,KAAK,EAAET,KAAK,CAACM,QAAQ,CAACC,gBAAgB,CAACC,EAAE;MACzCE,YAAY,EAAE,CAAC;MACfC,GAAG,EAAE,CAAC;MACNC,eAAe,EAAEZ,KAAK,CAACa,MAAM,CAACC,YAAY;MAC1CC,OAAO,EAAE;IACX,CAAC;IACDhB,QAAQ,EAAE;MACRM,MAAM,EAAE,KAAK,CAAE;IACjB,CAAC;IACDP,GAAG,EAAE;MACHW,KAAK,EAAE,CAAC;MACRJ,MAAM,EAAE,MAAM;MACdO,eAAe,EAAEZ,KAAK,CAACa,MAAM,CAACG,aAAa;MAC3CN,YAAY,EAAE;IAChB;EACF,CAAC,CAAC,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.
|
|
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","
|
|
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,G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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.
|
|
35
|
+
backgroundColor: colors.sheetTertiary
|
|
36
36
|
}, screenshareOverlay.container]
|
|
37
37
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
38
38
|
style: [styles.text, typefaces.subtitleBold, {
|
|
39
|
-
color: colors.
|
|
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.
|
|
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
|
-
|
|
57
|
+
size: iconSizes.xs,
|
|
58
|
+
color: colors.iconPrimary
|
|
58
59
|
})), /*#__PURE__*/React.createElement(Text, {
|
|
59
60
|
style: [styles.buttonText, {
|
|
60
|
-
color: colors.
|
|
61
|
+
color: colors.textPrimary
|
|
61
62
|
}, screenshareOverlay.buttonText]
|
|
62
63
|
}, t('Stop Screen Sharing'))));
|
|
63
64
|
};
|