@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,7 +1,7 @@
|
|
|
1
1
|
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CallControlsButton } from './CallControlsButton';
|
|
4
|
-
import { PhoneDown } from '../../../icons';
|
|
4
|
+
import { IconWrapper, PhoneDown } from '../../../icons';
|
|
5
5
|
import { CallingState, getLogger } from '@stream-io/video-client';
|
|
6
6
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
7
|
|
|
@@ -54,7 +54,7 @@ export const RejectCallButton = ({
|
|
|
54
54
|
theme: {
|
|
55
55
|
colors,
|
|
56
56
|
rejectCallButton,
|
|
57
|
-
variants: { buttonSizes },
|
|
57
|
+
variants: { buttonSizes, iconSizes },
|
|
58
58
|
},
|
|
59
59
|
} = useTheme();
|
|
60
60
|
const rejectCallHandler = async () => {
|
|
@@ -79,13 +79,15 @@ export const RejectCallButton = ({
|
|
|
79
79
|
return (
|
|
80
80
|
<CallControlsButton
|
|
81
81
|
onPress={rejectCallHandler}
|
|
82
|
-
color={colors.
|
|
83
|
-
size={size ?? buttonSizes.
|
|
82
|
+
color={colors.buttonWarning}
|
|
83
|
+
size={size ?? buttonSizes.md}
|
|
84
84
|
// TODO: check what to do about this random style prop
|
|
85
85
|
// svgContainerStyle={theme.icon.lg}
|
|
86
86
|
style={rejectCallButton}
|
|
87
87
|
>
|
|
88
|
-
<
|
|
88
|
+
<IconWrapper>
|
|
89
|
+
<PhoneDown color={colors.iconPrimary} size={iconSizes.lg} />
|
|
90
|
+
</IconWrapper>
|
|
89
91
|
</CallControlsButton>
|
|
90
92
|
);
|
|
91
93
|
};
|
|
@@ -6,6 +6,7 @@ import { StopScreenShare } from '../../../icons/StopScreenShare';
|
|
|
6
6
|
import { CallControlsButton } from './CallControlsButton';
|
|
7
7
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
8
8
|
import { useScreenShareButton } from '../../../hooks/useScreenShareButton';
|
|
9
|
+
import { IconWrapper } from '../../../icons';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* The props for the Screen Share button in the Call Controls.
|
|
@@ -32,7 +33,7 @@ export const ScreenShareToggleButton = ({
|
|
|
32
33
|
onScreenShareStoppedHandler,
|
|
33
34
|
}: ScreenShareToggleButtonProps) => {
|
|
34
35
|
const {
|
|
35
|
-
theme: { colors, screenShareToggleButton },
|
|
36
|
+
theme: { colors, screenShareToggleButton, variants },
|
|
36
37
|
} = useTheme();
|
|
37
38
|
|
|
38
39
|
const screenCapturePickerViewiOSRef = useRef(null);
|
|
@@ -48,17 +49,27 @@ export const ScreenShareToggleButton = ({
|
|
|
48
49
|
return (
|
|
49
50
|
<CallControlsButton
|
|
50
51
|
onPress={onPress}
|
|
51
|
-
color={
|
|
52
|
+
color={
|
|
53
|
+
hasPublishedScreenShare ? colors.buttonWarning : colors.buttonSecondary
|
|
54
|
+
}
|
|
52
55
|
style={{
|
|
53
56
|
container: screenShareToggleButton.container,
|
|
54
57
|
svgContainer: screenShareToggleButton.svgContainer,
|
|
55
58
|
}}
|
|
56
59
|
>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
<IconWrapper>
|
|
61
|
+
{hasPublishedScreenShare ? (
|
|
62
|
+
<StopScreenShare
|
|
63
|
+
size={variants.iconSizes.md}
|
|
64
|
+
color={colors.iconPrimary}
|
|
65
|
+
/>
|
|
66
|
+
) : (
|
|
67
|
+
<ScreenShare
|
|
68
|
+
size={variants.iconSizes.md}
|
|
69
|
+
color={colors.iconPrimary}
|
|
70
|
+
/>
|
|
71
|
+
)}
|
|
72
|
+
</IconWrapper>
|
|
62
73
|
{Platform.OS === 'ios' && (
|
|
63
74
|
<ScreenCapturePickerView ref={screenCapturePickerViewiOSRef} />
|
|
64
75
|
)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useTheme } from '../../../contexts';
|
|
4
|
-
import { Mic, MicOff } from '../../../icons';
|
|
4
|
+
import { IconWrapper, Mic, MicOff } from '../../../icons';
|
|
5
5
|
import { CallControlsButton } from './CallControlsButton';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -26,6 +26,7 @@ export const ToggleAudioPreviewButton = ({
|
|
|
26
26
|
colors,
|
|
27
27
|
toggleAudioPreviewButton,
|
|
28
28
|
variants: { buttonSizes },
|
|
29
|
+
defaults,
|
|
29
30
|
},
|
|
30
31
|
} = useTheme();
|
|
31
32
|
const { useMicrophoneState } = useCallStateHooks();
|
|
@@ -42,23 +43,20 @@ export const ToggleAudioPreviewButton = ({
|
|
|
42
43
|
return (
|
|
43
44
|
<CallControlsButton
|
|
44
45
|
onPress={onPress}
|
|
45
|
-
color={!optimisticIsMute ? colors.
|
|
46
|
+
color={!optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning}
|
|
46
47
|
size={buttonSizes.md}
|
|
47
48
|
style={{
|
|
48
|
-
container:
|
|
49
|
-
shadowColor: !optimisticIsMute
|
|
50
|
-
? colors.static_white
|
|
51
|
-
: colors.static_black,
|
|
52
|
-
...toggleAudioPreviewButton.container,
|
|
53
|
-
},
|
|
49
|
+
container: toggleAudioPreviewButton.container,
|
|
54
50
|
svgContainer: toggleAudioPreviewButton.svgContainer,
|
|
55
51
|
}}
|
|
56
52
|
>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
<IconWrapper>
|
|
54
|
+
{!optimisticIsMute ? (
|
|
55
|
+
<Mic color={colors.iconPrimary} size={defaults.iconSize} />
|
|
56
|
+
) : (
|
|
57
|
+
<MicOff color={colors.iconPrimary} size={defaults.iconSize} />
|
|
58
|
+
)}
|
|
59
|
+
</IconWrapper>
|
|
62
60
|
</CallControlsButton>
|
|
63
61
|
);
|
|
64
62
|
};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { OwnCapability } from '@stream-io/video-client';
|
|
3
3
|
import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
4
4
|
import { CallControlsButton } from './CallControlsButton';
|
|
5
|
-
import { Mic, MicOff } from '../../../icons';
|
|
5
|
+
import { IconWrapper, Mic, MicOff } from '../../../icons';
|
|
6
6
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -26,7 +26,7 @@ export const ToggleAudioPublishingButton = ({
|
|
|
26
26
|
const { optimisticIsMute, microphone } = useMicrophoneState();
|
|
27
27
|
|
|
28
28
|
const {
|
|
29
|
-
theme: { colors, toggleAudioPublishingButton },
|
|
29
|
+
theme: { colors, toggleAudioPublishingButton, defaults },
|
|
30
30
|
} = useTheme();
|
|
31
31
|
const onPress = async () => {
|
|
32
32
|
if (onPressHandler) {
|
|
@@ -41,14 +41,18 @@ export const ToggleAudioPublishingButton = ({
|
|
|
41
41
|
<Restricted requiredGrants={[OwnCapability.SEND_AUDIO]}>
|
|
42
42
|
<CallControlsButton
|
|
43
43
|
onPress={onPress}
|
|
44
|
-
color={
|
|
44
|
+
color={
|
|
45
|
+
!optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning
|
|
46
|
+
}
|
|
45
47
|
style={toggleAudioPublishingButton}
|
|
46
48
|
>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
<IconWrapper>
|
|
50
|
+
{!optimisticIsMute ? (
|
|
51
|
+
<Mic color={colors.iconPrimary} size={defaults.iconSize} />
|
|
52
|
+
) : (
|
|
53
|
+
<MicOff color={colors.iconPrimary} size={defaults.iconSize} />
|
|
54
|
+
)}
|
|
55
|
+
</IconWrapper>
|
|
52
56
|
</CallControlsButton>
|
|
53
57
|
</Restricted>
|
|
54
58
|
);
|
|
@@ -2,8 +2,9 @@ import { OwnCapability } from '@stream-io/video-client';
|
|
|
2
2
|
import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { CallControlsButton } from './CallControlsButton';
|
|
5
|
-
import { CameraSwitch } from '../../../icons';
|
|
5
|
+
import { CameraSwitch, IconWrapper } from '../../../icons';
|
|
6
6
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
|
+
import { ColorValue } from 'react-native';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Props for the Toggle Camera face button.
|
|
@@ -14,6 +15,11 @@ export type ToggleCameraFaceButtonProps = {
|
|
|
14
15
|
* @returns void
|
|
15
16
|
*/
|
|
16
17
|
onPressHandler?: () => void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Background color of the button.
|
|
21
|
+
*/
|
|
22
|
+
backgroundColor?: ColorValue;
|
|
17
23
|
};
|
|
18
24
|
|
|
19
25
|
/**
|
|
@@ -21,6 +27,7 @@ export type ToggleCameraFaceButtonProps = {
|
|
|
21
27
|
*/
|
|
22
28
|
export const ToggleCameraFaceButton = ({
|
|
23
29
|
onPressHandler,
|
|
30
|
+
backgroundColor,
|
|
24
31
|
}: ToggleCameraFaceButtonProps) => {
|
|
25
32
|
const { useCameraState, useCallSettings } = useCallStateHooks();
|
|
26
33
|
const { camera, optimisticIsMute, direction } = useCameraState();
|
|
@@ -28,7 +35,7 @@ export const ToggleCameraFaceButton = ({
|
|
|
28
35
|
const isVideoEnabledInCall = callSettings?.video.enabled;
|
|
29
36
|
|
|
30
37
|
const {
|
|
31
|
-
theme: { colors, toggleCameraFaceButton },
|
|
38
|
+
theme: { colors, toggleCameraFaceButton, variants },
|
|
32
39
|
} = useTheme();
|
|
33
40
|
const onPress = async () => {
|
|
34
41
|
if (onPressHandler) {
|
|
@@ -47,17 +54,23 @@ export const ToggleCameraFaceButton = ({
|
|
|
47
54
|
<Restricted requiredGrants={[OwnCapability.SEND_VIDEO]}>
|
|
48
55
|
<CallControlsButton
|
|
49
56
|
onPress={onPress}
|
|
50
|
-
color={
|
|
57
|
+
color={backgroundColor || colors.buttonSecondary}
|
|
58
|
+
disabledColor={backgroundColor || colors.sheetSecondary}
|
|
51
59
|
disabled={optimisticIsMute}
|
|
52
60
|
style={toggleCameraFaceButton}
|
|
53
61
|
>
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
<IconWrapper>
|
|
63
|
+
<CameraSwitch
|
|
64
|
+
size={variants.iconSizes.md}
|
|
65
|
+
color={
|
|
66
|
+
optimisticIsMute
|
|
67
|
+
? colors.buttonDisabled
|
|
68
|
+
: direction === 'front' || direction === undefined
|
|
69
|
+
? colors.iconPrimary
|
|
70
|
+
: colors.buttonPrimary
|
|
71
|
+
}
|
|
72
|
+
/>
|
|
73
|
+
</IconWrapper>
|
|
61
74
|
</CallControlsButton>
|
|
62
75
|
</Restricted>
|
|
63
76
|
);
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
3
|
import { useTheme } from '../../../contexts';
|
|
4
4
|
import { CallControlsButton } from './CallControlsButton';
|
|
5
|
-
import { Video, VideoSlash } from '../../../icons';
|
|
5
|
+
import { IconWrapper, Video, VideoSlash } from '../../../icons';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Props for the Toggle Video preview button
|
|
@@ -25,7 +25,7 @@ export const ToggleVideoPreviewButton = ({
|
|
|
25
25
|
theme: {
|
|
26
26
|
colors,
|
|
27
27
|
toggleVideoPreviewButton,
|
|
28
|
-
variants: { buttonSizes },
|
|
28
|
+
variants: { buttonSizes, iconSizes },
|
|
29
29
|
},
|
|
30
30
|
} = useTheme();
|
|
31
31
|
const { useCameraState, useCallSettings } = useCallStateHooks();
|
|
@@ -47,23 +47,20 @@ export const ToggleVideoPreviewButton = ({
|
|
|
47
47
|
return (
|
|
48
48
|
<CallControlsButton
|
|
49
49
|
onPress={onPress}
|
|
50
|
-
color={!optimisticIsMute ? colors.
|
|
50
|
+
color={!optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning}
|
|
51
51
|
size={buttonSizes.md}
|
|
52
52
|
style={{
|
|
53
|
-
container:
|
|
54
|
-
shadowColor: !optimisticIsMute
|
|
55
|
-
? colors.static_white
|
|
56
|
-
: colors.static_black,
|
|
57
|
-
...toggleVideoPreviewButton.container,
|
|
58
|
-
},
|
|
53
|
+
container: toggleVideoPreviewButton.container,
|
|
59
54
|
svgContainer: toggleVideoPreviewButton.svgContainer,
|
|
60
55
|
}}
|
|
61
56
|
>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
<IconWrapper>
|
|
58
|
+
{!optimisticIsMute ? (
|
|
59
|
+
<Video color={colors.iconPrimary} size={iconSizes.lg} />
|
|
60
|
+
) : (
|
|
61
|
+
<VideoSlash color={colors.iconPrimary} size={iconSizes.lg} />
|
|
62
|
+
)}
|
|
63
|
+
</IconWrapper>
|
|
67
64
|
</CallControlsButton>
|
|
68
65
|
);
|
|
69
66
|
};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { OwnCapability } from '@stream-io/video-client';
|
|
3
3
|
import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
4
4
|
import { CallControlsButton } from './CallControlsButton';
|
|
5
|
-
import { Video, VideoSlash } from '../../../icons';
|
|
5
|
+
import { IconWrapper, Video, VideoSlash } from '../../../icons';
|
|
6
6
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -27,7 +27,7 @@ export const ToggleVideoPublishingButton = ({
|
|
|
27
27
|
const callSettings = useCallSettings();
|
|
28
28
|
const isVideoEnabledInCall = callSettings?.video.enabled;
|
|
29
29
|
const {
|
|
30
|
-
theme: { colors },
|
|
30
|
+
theme: { colors, variants },
|
|
31
31
|
} = useTheme();
|
|
32
32
|
const onPress = async () => {
|
|
33
33
|
if (onPressHandler) {
|
|
@@ -45,13 +45,20 @@ export const ToggleVideoPublishingButton = ({
|
|
|
45
45
|
<Restricted requiredGrants={[OwnCapability.SEND_VIDEO]}>
|
|
46
46
|
<CallControlsButton
|
|
47
47
|
onPress={onPress}
|
|
48
|
-
color={
|
|
48
|
+
color={
|
|
49
|
+
!optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning
|
|
50
|
+
}
|
|
49
51
|
>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
<IconWrapper>
|
|
53
|
+
{!optimisticIsMute ? (
|
|
54
|
+
<Video color={colors.iconPrimary} size={variants.iconSizes.md} />
|
|
55
|
+
) : (
|
|
56
|
+
<VideoSlash
|
|
57
|
+
color={colors.iconPrimary}
|
|
58
|
+
size={variants.iconSizes.md}
|
|
59
|
+
/>
|
|
60
|
+
)}
|
|
61
|
+
</IconWrapper>
|
|
55
62
|
</CallControlsButton>
|
|
56
63
|
</Restricted>
|
|
57
64
|
);
|
|
@@ -6,7 +6,6 @@ export * from './ToggleVideoPreviewButton';
|
|
|
6
6
|
export * from './ToggleAudioPublishingButton';
|
|
7
7
|
export * from './ToggleVideoPublishingButton';
|
|
8
8
|
export * from './ToggleCameraFaceButton';
|
|
9
|
-
export * from './ChatButton';
|
|
10
9
|
export * from './ReactionsButton';
|
|
11
10
|
export * from './CallControls';
|
|
12
11
|
export * from './CallControlsButton';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, useRef } from 'react';
|
|
1
|
+
import React, { useEffect, useMemo, useRef } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
LayoutRectangle,
|
|
4
4
|
Pressable,
|
|
@@ -18,26 +18,24 @@ type ReactionPickerProps = Pick<ReactionsButtonProps, 'supportedReactions'> & {
|
|
|
18
18
|
onRequestedClose: () => void;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
const TOP_PADDING = 4;
|
|
22
|
-
const REACTION_MARGIN_BOTTOM = 4;
|
|
23
|
-
|
|
24
21
|
export const ReactionsPicker = ({
|
|
25
22
|
supportedReactions = defaultEmojiReactions,
|
|
26
23
|
reactionsButtonLayoutRectangle,
|
|
27
24
|
onRequestedClose,
|
|
28
25
|
}: ReactionPickerProps) => {
|
|
29
26
|
const {
|
|
30
|
-
theme: { colors, reactionsPicker },
|
|
27
|
+
theme: { colors, reactionsPicker, variants },
|
|
31
28
|
} = useTheme();
|
|
29
|
+
const styles = useStyles();
|
|
32
30
|
const call = useCall();
|
|
33
31
|
const size = reactionsButtonLayoutRectangle?.width ?? 0;
|
|
34
32
|
const reactionItemSize = size * 0.8;
|
|
35
33
|
|
|
36
34
|
const popupHeight =
|
|
37
35
|
// the top padding
|
|
38
|
-
|
|
36
|
+
variants.spacingSizes.xs +
|
|
39
37
|
// take margins into account
|
|
40
|
-
|
|
38
|
+
variants.spacingSizes.xs * supportedReactions.length +
|
|
41
39
|
// the size of the reaction icon items (same size as reactions button * amount of reactions)
|
|
42
40
|
reactionItemSize * supportedReactions.length;
|
|
43
41
|
|
|
@@ -104,7 +102,7 @@ export const ReactionsPicker = ({
|
|
|
104
102
|
styles.reactionsPopup,
|
|
105
103
|
reactionsPopupStyle,
|
|
106
104
|
{
|
|
107
|
-
backgroundColor: colors.
|
|
105
|
+
backgroundColor: colors.sheetSecondary,
|
|
108
106
|
},
|
|
109
107
|
reactionsPicker.reactionsPopup,
|
|
110
108
|
]}
|
|
@@ -119,10 +117,7 @@ export const ReactionsPicker = ({
|
|
|
119
117
|
style={[
|
|
120
118
|
styles.reactionItem,
|
|
121
119
|
reactionItemStyle,
|
|
122
|
-
{
|
|
123
|
-
// temporary background color until we have theming
|
|
124
|
-
backgroundColor: colors.overlay,
|
|
125
|
-
},
|
|
120
|
+
{ backgroundColor: colors.buttonSecondary },
|
|
126
121
|
reactionsPicker.reactionItem,
|
|
127
122
|
]}
|
|
128
123
|
onPress={() => {
|
|
@@ -159,7 +154,7 @@ export const ReactionsPicker = ({
|
|
|
159
154
|
style={[
|
|
160
155
|
reactionsButtonDimmerStyle,
|
|
161
156
|
{
|
|
162
|
-
backgroundColor: colors.
|
|
157
|
+
backgroundColor: colors.sheetSecondary,
|
|
163
158
|
},
|
|
164
159
|
reactionsPicker.reactionsButtonDimmer,
|
|
165
160
|
]}
|
|
@@ -169,22 +164,29 @@ export const ReactionsPicker = ({
|
|
|
169
164
|
);
|
|
170
165
|
};
|
|
171
166
|
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
167
|
+
const useStyles = () => {
|
|
168
|
+
const { theme } = useTheme();
|
|
169
|
+
return useMemo(
|
|
170
|
+
() =>
|
|
171
|
+
StyleSheet.create({
|
|
172
|
+
reactionsPopup: {
|
|
173
|
+
position: 'absolute',
|
|
174
|
+
alignItems: 'center',
|
|
175
|
+
paddingTop: theme.variants.spacingSizes.xs,
|
|
176
|
+
},
|
|
177
|
+
reactionsButtonDimmer: {
|
|
178
|
+
position: 'absolute',
|
|
179
|
+
opacity: 0.5,
|
|
180
|
+
},
|
|
181
|
+
reactionItem: {
|
|
182
|
+
alignItems: 'center',
|
|
183
|
+
justifyContent: 'center',
|
|
184
|
+
marginBottom: theme.variants.spacingSizes.xs,
|
|
185
|
+
},
|
|
186
|
+
reactionText: {
|
|
187
|
+
fontSize: 18.5,
|
|
188
|
+
},
|
|
189
|
+
}),
|
|
190
|
+
[theme]
|
|
191
|
+
);
|
|
192
|
+
};
|
|
@@ -100,7 +100,7 @@ export const CallParticipantsGrid = ({
|
|
|
100
100
|
style={[
|
|
101
101
|
styles.container,
|
|
102
102
|
landscapeStyles,
|
|
103
|
-
{ backgroundColor: colors.
|
|
103
|
+
{ backgroundColor: colors.sheetPrimary },
|
|
104
104
|
callParticipantsGrid.container,
|
|
105
105
|
]}
|
|
106
106
|
testID={ComponentTestIds.CALL_PARTICIPANTS_GRID}
|
|
@@ -118,7 +118,5 @@ export const CallParticipantsGrid = ({
|
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
const styles = StyleSheet.create({
|
|
121
|
-
container: {
|
|
122
|
-
flex: 1,
|
|
123
|
-
},
|
|
121
|
+
container: { flex: 1 },
|
|
124
122
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
hasScreenShare,
|
|
4
4
|
speakerLayoutSortPreset,
|
|
@@ -56,8 +56,9 @@ export const CallParticipantsSpotlight = ({
|
|
|
56
56
|
disablePictureInPicture,
|
|
57
57
|
}: CallParticipantsSpotlightProps) => {
|
|
58
58
|
const {
|
|
59
|
-
theme: {
|
|
59
|
+
theme: { callParticipantsSpotlight, variants },
|
|
60
60
|
} = useTheme();
|
|
61
|
+
const styles = useStyles();
|
|
61
62
|
const { useParticipants } = useCallStateHooks();
|
|
62
63
|
const _allParticipants = useParticipants({
|
|
63
64
|
sortBy: speakerLayoutSortPreset,
|
|
@@ -88,7 +89,7 @@ export const CallParticipantsSpotlight = ({
|
|
|
88
89
|
};
|
|
89
90
|
|
|
90
91
|
const spotlightContainerLandscapeStyles: ViewStyle = {
|
|
91
|
-
marginHorizontal: landscape ? 0 :
|
|
92
|
+
marginHorizontal: landscape ? 0 : variants.spacingSizes.xs,
|
|
92
93
|
};
|
|
93
94
|
|
|
94
95
|
const showShareScreenOverlay =
|
|
@@ -102,9 +103,6 @@ export const CallParticipantsSpotlight = ({
|
|
|
102
103
|
style={[
|
|
103
104
|
styles.container,
|
|
104
105
|
landscapeStyles,
|
|
105
|
-
{
|
|
106
|
-
backgroundColor: colors.dark_gray,
|
|
107
|
-
},
|
|
108
106
|
callParticipantsSpotlight.container,
|
|
109
107
|
]}
|
|
110
108
|
>
|
|
@@ -160,20 +158,28 @@ export const CallParticipantsSpotlight = ({
|
|
|
160
158
|
);
|
|
161
159
|
};
|
|
162
160
|
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
161
|
+
const useStyles = () => {
|
|
162
|
+
const { theme } = useTheme();
|
|
163
|
+
return useMemo(
|
|
164
|
+
() =>
|
|
165
|
+
StyleSheet.create({
|
|
166
|
+
container: {
|
|
167
|
+
flex: 1,
|
|
168
|
+
backgroundColor: theme.colors.sheetPrimary,
|
|
169
|
+
},
|
|
170
|
+
fullScreenSpotlightContainer: {
|
|
171
|
+
flex: 1,
|
|
172
|
+
},
|
|
173
|
+
spotlightContainer: {
|
|
174
|
+
flex: 2,
|
|
175
|
+
overflow: 'hidden',
|
|
176
|
+
borderRadius: theme.variants.borderRadiusSizes.sm,
|
|
177
|
+
marginHorizontal: theme.variants.spacingSizes.sm,
|
|
178
|
+
},
|
|
179
|
+
callParticipantsListContainer: {
|
|
180
|
+
flex: 1,
|
|
181
|
+
},
|
|
182
|
+
}),
|
|
183
|
+
[theme]
|
|
184
|
+
);
|
|
185
|
+
};
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
ParticipantViewProps,
|
|
22
22
|
} from '../../Participant/ParticipantView';
|
|
23
23
|
import { CallContentProps } from '../CallContent';
|
|
24
|
+
import { useTheme } from '../../../contexts';
|
|
24
25
|
|
|
25
26
|
type FlatListProps = React.ComponentProps<
|
|
26
27
|
typeof FlatList<StreamVideoParticipant>
|
|
@@ -83,6 +84,7 @@ export const CallParticipantsList = ({
|
|
|
83
84
|
supportedReactions,
|
|
84
85
|
landscape,
|
|
85
86
|
}: CallParticipantsListProps) => {
|
|
87
|
+
const styles = useStyles();
|
|
86
88
|
const [containerLayout, setContainerLayout] = useState({
|
|
87
89
|
width: 0,
|
|
88
90
|
height: 0,
|
|
@@ -163,10 +165,15 @@ export const CallParticipantsList = ({
|
|
|
163
165
|
participantsLength: participants.length,
|
|
164
166
|
numberOfColumns,
|
|
165
167
|
horizontal,
|
|
168
|
+
margin: styles.participant.margin,
|
|
166
169
|
});
|
|
167
170
|
|
|
168
171
|
const itemContainerStyle = useMemo<StyleProp<ViewStyle>>(() => {
|
|
169
|
-
const style = {
|
|
172
|
+
const style = {
|
|
173
|
+
width: itemWidth,
|
|
174
|
+
height: itemHeight,
|
|
175
|
+
margin: styles.participant.margin,
|
|
176
|
+
};
|
|
170
177
|
if (horizontal) {
|
|
171
178
|
return [styles.participantWrapperHorizontal, style];
|
|
172
179
|
}
|
|
@@ -174,7 +181,7 @@ export const CallParticipantsList = ({
|
|
|
174
181
|
return [styles.landScapeStyle, style];
|
|
175
182
|
}
|
|
176
183
|
return style;
|
|
177
|
-
}, [itemWidth, itemHeight, horizontal, landscape]);
|
|
184
|
+
}, [itemWidth, itemHeight, horizontal, landscape, styles]);
|
|
178
185
|
|
|
179
186
|
const participantProps: ParticipantViewComponentProps = {
|
|
180
187
|
ParticipantLabel,
|
|
@@ -251,19 +258,27 @@ export const CallParticipantsList = ({
|
|
|
251
258
|
);
|
|
252
259
|
};
|
|
253
260
|
|
|
254
|
-
const
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
261
|
+
const useStyles = () => {
|
|
262
|
+
const { theme } = useTheme();
|
|
263
|
+
return useMemo(
|
|
264
|
+
() =>
|
|
265
|
+
StyleSheet.create({
|
|
266
|
+
flexed: { flex: 1 },
|
|
267
|
+
participantWrapperHorizontal: {
|
|
268
|
+
// note: if marginHorizontal is changed, be sure to change the width calculation in calculateParticipantViewSize function
|
|
269
|
+
marginHorizontal: theme.variants.spacingSizes.sm,
|
|
270
|
+
borderRadius: theme.variants.borderRadiusSizes.sm,
|
|
271
|
+
},
|
|
272
|
+
landScapeStyle: {
|
|
273
|
+
borderRadius: theme.variants.borderRadiusSizes.sm,
|
|
274
|
+
},
|
|
275
|
+
participant: {
|
|
276
|
+
margin: theme.variants.spacingSizes.xs,
|
|
277
|
+
},
|
|
278
|
+
}),
|
|
279
|
+
[theme]
|
|
280
|
+
);
|
|
281
|
+
};
|
|
267
282
|
|
|
268
283
|
/**
|
|
269
284
|
* This function calculates the size of the participant view based on the size of the container (the phone's screen size) and the number of participants.
|
|
@@ -280,12 +295,14 @@ function calculateParticipantViewSize({
|
|
|
280
295
|
participantsLength,
|
|
281
296
|
numberOfColumns,
|
|
282
297
|
horizontal,
|
|
298
|
+
margin,
|
|
283
299
|
}: {
|
|
284
300
|
containerHeight: number;
|
|
285
301
|
containerWidth: number;
|
|
286
302
|
participantsLength: number;
|
|
287
303
|
numberOfColumns: number;
|
|
288
304
|
horizontal: boolean | undefined;
|
|
305
|
+
margin: number;
|
|
289
306
|
}) {
|
|
290
307
|
let itemHeight = containerHeight;
|
|
291
308
|
// in vertical mode, we calculate the height of the participant view based on the containerHeight (aka the phone's screen height)
|
|
@@ -305,5 +322,7 @@ function calculateParticipantViewSize({
|
|
|
305
322
|
itemWidth = itemWidth - 8 * 2;
|
|
306
323
|
}
|
|
307
324
|
|
|
325
|
+
itemHeight = itemHeight - margin;
|
|
326
|
+
itemWidth = itemWidth - margin;
|
|
308
327
|
return { itemHeight, itemWidth };
|
|
309
328
|
}
|