@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
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CallParticipantsSpotlight = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _videoClient = require("@stream-io/video-client");
|
|
9
9
|
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
10
10
|
var _reactNative = require("react-native");
|
|
@@ -14,7 +14,8 @@ var _CallParticipantsList = require("../CallParticipantsList/CallParticipantsLis
|
|
|
14
14
|
var _Participant = require("../../Participant");
|
|
15
15
|
var _ThemeContext = require("../../../contexts/ThemeContext");
|
|
16
16
|
var _useIsInPiPMode = require("../../../hooks/useIsInPiPMode");
|
|
17
|
-
function
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
19
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
19
20
|
/**
|
|
20
21
|
* Props for the CallParticipantsSpotlight component.
|
|
@@ -39,10 +40,11 @@ const CallParticipantsSpotlight = ({
|
|
|
39
40
|
}) => {
|
|
40
41
|
const {
|
|
41
42
|
theme: {
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
callParticipantsSpotlight,
|
|
44
|
+
variants
|
|
44
45
|
}
|
|
45
46
|
} = (0, _ThemeContext.useTheme)();
|
|
47
|
+
const styles = useStyles();
|
|
46
48
|
const {
|
|
47
49
|
useParticipants
|
|
48
50
|
} = (0, _videoReactBindings.useCallStateHooks)();
|
|
@@ -69,14 +71,12 @@ const CallParticipantsSpotlight = ({
|
|
|
69
71
|
flexDirection: landscape ? 'row' : 'column'
|
|
70
72
|
};
|
|
71
73
|
const spotlightContainerLandscapeStyles = {
|
|
72
|
-
marginHorizontal: landscape ? 0 :
|
|
74
|
+
marginHorizontal: landscape ? 0 : variants.spacingSizes.xs
|
|
73
75
|
};
|
|
74
76
|
const showShareScreenOverlay = participantInSpotlight?.isLocalParticipant && isScreenShareOnSpotlight && ScreenShareOverlay;
|
|
75
77
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
76
78
|
testID: _TestIds.ComponentTestIds.CALL_PARTICIPANTS_SPOTLIGHT,
|
|
77
|
-
style: [styles.container, landscapeStyles,
|
|
78
|
-
backgroundColor: colors.dark_gray
|
|
79
|
-
}, callParticipantsSpotlight.container]
|
|
79
|
+
style: [styles.container, landscapeStyles, callParticipantsSpotlight.container]
|
|
80
80
|
}, participantInSpotlight && ParticipantView && (showShareScreenOverlay ? /*#__PURE__*/_react.default.createElement(ScreenShareOverlay, null) : /*#__PURE__*/_react.default.createElement(ParticipantView, _extends({
|
|
81
81
|
participant: participantInSpotlight,
|
|
82
82
|
style: isUserAloneInCall ? [styles.fullScreenSpotlightContainer, callParticipantsSpotlight.fullScreenSpotlightContainer] : [styles.spotlightContainer, spotlightContainerLandscapeStyles, callParticipantsSpotlight.spotlightContainer],
|
|
@@ -94,21 +94,27 @@ const CallParticipantsSpotlight = ({
|
|
|
94
94
|
}, callParticipantsListProps))));
|
|
95
95
|
};
|
|
96
96
|
exports.CallParticipantsSpotlight = CallParticipantsSpotlight;
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
97
|
+
const useStyles = () => {
|
|
98
|
+
const {
|
|
99
|
+
theme
|
|
100
|
+
} = (0, _ThemeContext.useTheme)();
|
|
101
|
+
return (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
|
|
102
|
+
container: {
|
|
103
|
+
flex: 1,
|
|
104
|
+
backgroundColor: theme.colors.sheetPrimary
|
|
105
|
+
},
|
|
106
|
+
fullScreenSpotlightContainer: {
|
|
107
|
+
flex: 1
|
|
108
|
+
},
|
|
109
|
+
spotlightContainer: {
|
|
110
|
+
flex: 2,
|
|
111
|
+
overflow: 'hidden',
|
|
112
|
+
borderRadius: theme.variants.borderRadiusSizes.sm,
|
|
113
|
+
marginHorizontal: theme.variants.spacingSizes.sm
|
|
114
|
+
},
|
|
115
|
+
callParticipantsListContainer: {
|
|
116
|
+
flex: 1
|
|
117
|
+
}
|
|
118
|
+
}), [theme]);
|
|
119
|
+
};
|
|
114
120
|
//# sourceMappingURL=CallParticipantsSpotlight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_videoClient","_videoReactBindings","_reactNative","_useDebouncedValue","_TestIds","_CallParticipantsList","_Participant","_ThemeContext","_useIsInPiPMode","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","CallParticipantsSpotlight","CallParticipantsList","DefaultCallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","DefaultParticipantView","ScreenShareOverlay","VideoRenderer","supportedReactions","landscape","disablePictureInPicture","theme","callParticipantsSpotlight","variants","useTheme","styles","useStyles","useParticipants","useCallStateHooks","_allParticipants","sortBy","speakerLayoutSortPreset","allParticipants","useDebouncedValue","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","hasScreenShare","isUserAloneInCall","isInPiP","useIsInPiPMode","participantViewProps","callParticipantsListProps","landscapeStyles","flexDirection","spotlightContainerLandscapeStyles","marginHorizontal","spacingSizes","xs","showShareScreenOverlay","isLocalParticipant","createElement","View","testID","ComponentTestIds","CALL_PARTICIPANTS_SPOTLIGHT","style","container","participant","fullScreenSpotlightContainer","spotlightContainer","objectFit","trackType","callParticipantsListContainer","participants","horizontal","numberOfColumns","exports","useMemo","StyleSheet","create","flex","backgroundColor","colors","sheetPrimary","overflow","borderRadius","borderRadiusSizes","sm"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AAIA,IAAAO,YAAA,GAAAP,OAAA;AAIA,IAAAQ,aAAA,GAAAR,OAAA;AAEA,IAAAS,eAAA,GAAAT,OAAA;AAA+D,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mB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DebouncedValue = require("../../../utils/hooks/useDebouncedValue");
|
|
|
11
11
|
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
12
12
|
var _TestIds = require("../../../constants/TestIds");
|
|
13
13
|
var _ParticipantView = require("../../Participant/ParticipantView");
|
|
14
|
+
var _contexts = require("../../../contexts");
|
|
14
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
17
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
@@ -42,6 +43,7 @@ const CallParticipantsList = ({
|
|
|
42
43
|
supportedReactions,
|
|
43
44
|
landscape
|
|
44
45
|
}) => {
|
|
46
|
+
const styles = useStyles();
|
|
45
47
|
const [containerLayout, setContainerLayout] = (0, _react.useState)({
|
|
46
48
|
width: 0,
|
|
47
49
|
height: 0
|
|
@@ -123,12 +125,14 @@ const CallParticipantsList = ({
|
|
|
123
125
|
containerWidth: containerLayout.width,
|
|
124
126
|
participantsLength: participants.length,
|
|
125
127
|
numberOfColumns,
|
|
126
|
-
horizontal
|
|
128
|
+
horizontal,
|
|
129
|
+
margin: styles.participant.margin
|
|
127
130
|
});
|
|
128
131
|
const itemContainerStyle = (0, _react.useMemo)(() => {
|
|
129
132
|
const style = {
|
|
130
133
|
width: itemWidth,
|
|
131
|
-
height: itemHeight
|
|
134
|
+
height: itemHeight,
|
|
135
|
+
margin: styles.participant.margin
|
|
132
136
|
};
|
|
133
137
|
if (horizontal) {
|
|
134
138
|
return [styles.participantWrapperHorizontal, style];
|
|
@@ -137,7 +141,7 @@ const CallParticipantsList = ({
|
|
|
137
141
|
return [styles.landScapeStyle, style];
|
|
138
142
|
}
|
|
139
143
|
return style;
|
|
140
|
-
}, [itemWidth, itemHeight, horizontal, landscape]);
|
|
144
|
+
}, [itemWidth, itemHeight, horizontal, landscape, styles]);
|
|
141
145
|
const participantProps = {
|
|
142
146
|
ParticipantLabel,
|
|
143
147
|
ParticipantNetworkQualityIndicator,
|
|
@@ -192,19 +196,27 @@ const CallParticipantsList = ({
|
|
|
192
196
|
});
|
|
193
197
|
};
|
|
194
198
|
exports.CallParticipantsList = CallParticipantsList;
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}
|
|
199
|
+
const useStyles = () => {
|
|
200
|
+
const {
|
|
201
|
+
theme
|
|
202
|
+
} = (0, _contexts.useTheme)();
|
|
203
|
+
return (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
|
|
204
|
+
flexed: {
|
|
205
|
+
flex: 1
|
|
206
|
+
},
|
|
207
|
+
participantWrapperHorizontal: {
|
|
208
|
+
// note: if marginHorizontal is changed, be sure to change the width calculation in calculateParticipantViewSize function
|
|
209
|
+
marginHorizontal: theme.variants.spacingSizes.sm,
|
|
210
|
+
borderRadius: theme.variants.borderRadiusSizes.sm
|
|
211
|
+
},
|
|
212
|
+
landScapeStyle: {
|
|
213
|
+
borderRadius: theme.variants.borderRadiusSizes.sm
|
|
214
|
+
},
|
|
215
|
+
participant: {
|
|
216
|
+
margin: theme.variants.spacingSizes.xs
|
|
217
|
+
}
|
|
218
|
+
}), [theme]);
|
|
219
|
+
};
|
|
208
220
|
|
|
209
221
|
/**
|
|
210
222
|
* 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.
|
|
@@ -220,7 +232,8 @@ function calculateParticipantViewSize({
|
|
|
220
232
|
containerWidth,
|
|
221
233
|
participantsLength,
|
|
222
234
|
numberOfColumns,
|
|
223
|
-
horizontal
|
|
235
|
+
horizontal,
|
|
236
|
+
margin
|
|
224
237
|
}) {
|
|
225
238
|
let itemHeight = containerHeight;
|
|
226
239
|
// in vertical mode, we calculate the height of the participant view based on the containerHeight (aka the phone's screen height)
|
|
@@ -238,6 +251,8 @@ function calculateParticipantViewSize({
|
|
|
238
251
|
// in horizontal mode we apply margin of 8 to the participant view and that should be subtracted from the width
|
|
239
252
|
itemWidth = itemWidth - 8 * 2;
|
|
240
253
|
}
|
|
254
|
+
itemHeight = itemHeight - margin;
|
|
255
|
+
itemWidth = itemWidth - margin;
|
|
241
256
|
return {
|
|
242
257
|
itemHeight,
|
|
243
258
|
itemWidth
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_videoClient","_useDebouncedValue","_videoReactBindings","_TestIds","_ParticipantView","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","VIEWABILITY_CONFIG","waitForInteraction","itemVisiblePercentThreshold","CallParticipantsList","numberOfColumns","horizontal","participants","ParticipantView","DefaultParticipantView","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","VideoRenderer","supportedReactions","landscape","containerLayout","setContainerLayout","useState","width","height","viewableParticipantSessionIds","useRef","Set","_forceUpdateValue","forceUpdate","useReducer","x","forceUpdateValue","useDebouncedValue","activeCall","useCall","activeCallRef","current","onViewableItemsChanged","viewableItems","participantPatches","mustUpdate","newVisibleParticipantSessionIds","map","v","key","oldVisibleParticipantSessionIds","forEach","viewportVisibilityState","videoTrack","VisibilityState","VISIBLE","screenShareTrack","UNKNOWN","state","updateParticipants","keyExtractor","item","sessionId","onLayout","event","nativeEvent","layout","prev","itemHeight","itemWidth","calculateParticipantViewSize","containerHeight","containerWidth","participantsLength","itemContainerStyle","useMemo","style","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_videoClient","_useDebouncedValue","_videoReactBindings","_TestIds","_ParticipantView","_contexts","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","VIEWABILITY_CONFIG","waitForInteraction","itemVisiblePercentThreshold","CallParticipantsList","numberOfColumns","horizontal","participants","ParticipantView","DefaultParticipantView","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","VideoRenderer","supportedReactions","landscape","styles","useStyles","containerLayout","setContainerLayout","useState","width","height","viewableParticipantSessionIds","useRef","Set","_forceUpdateValue","forceUpdate","useReducer","x","forceUpdateValue","useDebouncedValue","activeCall","useCall","activeCallRef","current","onViewableItemsChanged","viewableItems","participantPatches","mustUpdate","newVisibleParticipantSessionIds","map","v","key","oldVisibleParticipantSessionIds","forEach","viewportVisibilityState","videoTrack","VisibilityState","VISIBLE","screenShareTrack","UNKNOWN","state","updateParticipants","keyExtractor","item","sessionId","onLayout","event","nativeEvent","layout","prev","itemHeight","itemWidth","calculateParticipantViewSize","containerHeight","containerWidth","participantsLength","margin","participant","itemContainerStyle","useMemo","style","participantWrapperHorizontal","landScapeStyle","participantProps","renderItem","useCallback","isVisible","createElement","Fragment","trackType","shouldWrapByColumns","index","flexed","FlatList","undefined","data","viewabilityConfig","numColumns","showsHorizontalScrollIndicator","extraData","testID","ComponentTestIds","CALL_PARTICIPANTS_LIST","exports","theme","useTheme","StyleSheet","create","flex","marginHorizontal","variants","spacingSizes","sm","borderRadius","borderRadiusSizes","xs"],"sourceRoot":"../../../../../src","sources":["components/Call/CallParticipantsList/CallParticipantsList.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAKA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAMA,IAAAO,SAAA,GAAAP,OAAA;AAA6C,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAA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|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.JoinCallButton = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
10
10
|
var _ThemeContext = require("../../../contexts/ThemeContext");
|
|
11
11
|
var _videoClient = require("@stream-io/video-client");
|
|
12
|
-
function
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
14
|
/**
|
|
14
15
|
* Props for the Join Call Button in the Lobby component.
|
|
15
16
|
*/
|
|
@@ -28,6 +29,7 @@ const JoinCallButton = ({
|
|
|
28
29
|
joinCallButton
|
|
29
30
|
}
|
|
30
31
|
} = (0, _ThemeContext.useTheme)();
|
|
32
|
+
const styles = useStyles();
|
|
31
33
|
const {
|
|
32
34
|
t
|
|
33
35
|
} = (0, _videoReactBindings.useI18n)();
|
|
@@ -51,24 +53,29 @@ const JoinCallButton = ({
|
|
|
51
53
|
};
|
|
52
54
|
return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
53
55
|
style: [styles.container, {
|
|
54
|
-
backgroundColor: colors.
|
|
56
|
+
backgroundColor: colors.buttonPrimary
|
|
55
57
|
}, joinCallButton.container],
|
|
56
58
|
onPress: onPress
|
|
57
59
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
58
60
|
style: [styles.label, {
|
|
59
|
-
color: colors.
|
|
61
|
+
color: colors.textPrimary
|
|
60
62
|
}, typefaces.subtitleBold, joinCallButton.label]
|
|
61
63
|
}, t('Join')));
|
|
62
64
|
};
|
|
63
65
|
exports.JoinCallButton = JoinCallButton;
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
66
|
+
const useStyles = () => {
|
|
67
|
+
const {
|
|
68
|
+
theme
|
|
69
|
+
} = (0, _ThemeContext.useTheme)();
|
|
70
|
+
return (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
|
|
71
|
+
container: {
|
|
72
|
+
borderRadius: theme.variants.borderRadiusSizes.lg,
|
|
73
|
+
marginTop: theme.variants.spacingSizes.md,
|
|
74
|
+
paddingVertical: theme.variants.spacingSizes.sm
|
|
75
|
+
},
|
|
76
|
+
label: {
|
|
77
|
+
textAlign: 'center'
|
|
78
|
+
}
|
|
79
|
+
}), [theme]);
|
|
80
|
+
};
|
|
74
81
|
//# sourceMappingURL=JoinCallButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_videoReactBindings","_ThemeContext","_videoClient","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","JoinCallButton","onJoinCallHandler","onPressHandler","theme","colors","typefaces","joinCallButton","useTheme","styles","useStyles","useI18n","useCall","onPress","join","create","error","logger","getLogger","createElement","Pressable","style","container","backgroundColor","buttonPrimary","Text","label","color","textPrimary","subtitleBold","exports","useMemo","StyleSheet","borderRadius","variants","borderRadiusSizes","lg","margin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CAAAgD,IAAI;IACHJ,KAAK,EAAE,CACLZ,MAAM,CAACiB,KAAK,EACZ;MAAEC,KAAK,EAAEtB,MAAM,CAACuB;IAAY,CAAC,EAC7BtB,SAAS,CAACuB,YAAY,EACtBtB,cAAc,CAACmB,KAAK;EACpB,GAEDzC,CAAC,CAAC,MAAM,CACL,CACG,CAAC;AAEhB,CAAC;AAAC6C,OAAA,CAAA7B,cAAA,GAAAA,cAAA;AAEF,MAAMS,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEN;EAAM,CAAC,GAAG,IAAAI,sBAAQ,EAAC,CAAC;EAC5B,OAAO,IAAAuB,cAAO,EACZ,MACEC,uBAAU,CAACjB,MAAM,CAAC;IAChBO,SAAS,EAAE;MACTW,YAAY,EAAE7B,KAAK,CAAC8B,QAAQ,CAACC,iBAAiB,CAACC,EAAE;MACjDC,SAAS,EAAEjC,KAAK,CAAC8B,QAAQ,CAACI,YAAY,CAACC,EAAE;MACzCC,eAAe,EAAEpC,KAAK,CAAC8B,QAAQ,CAACI,YAAY,CAACG;IAC/C,CAAC;IACDf,KAAK,EAAE;MACLgB,SAAS,EAAE;IACb;EACF,CAAC,CAAC,EACJ,CAACtC,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Lobby = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _icons = require("../../../icons");
|
|
10
9
|
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
11
10
|
var _Avatar = require("../../utility/Avatar");
|
|
12
|
-
var _constants = require("../../../constants");
|
|
13
11
|
var _reactNativeWebrtc = require("@stream-io/react-native-webrtc");
|
|
14
12
|
var _LobbyControls = require("../CallControls/LobbyControls");
|
|
15
13
|
var _JoinCallButton = require("./JoinCallButton");
|
|
@@ -17,7 +15,8 @@ var _ThemeContext = require("../../../contexts/ThemeContext");
|
|
|
17
15
|
var _useCallMediaStreamCleanup = require("../../../hooks/internal/useCallMediaStreamCleanup");
|
|
18
16
|
var _LobbyFooter = require("./LobbyFooter");
|
|
19
17
|
var _useApplyDefaultMediaStreamSettings = require("../../../hooks/useApplyDefaultMediaStreamSettings");
|
|
20
|
-
function
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
20
|
/**
|
|
22
21
|
* Props for the Lobby Component.
|
|
23
22
|
*/
|
|
@@ -39,6 +38,7 @@ const Lobby = ({
|
|
|
39
38
|
typefaces
|
|
40
39
|
}
|
|
41
40
|
} = (0, _ThemeContext.useTheme)();
|
|
41
|
+
const styles = useStyles(landscape);
|
|
42
42
|
const connectedUser = (0, _videoReactBindings.useConnectedUser)();
|
|
43
43
|
const {
|
|
44
44
|
useCameraState,
|
|
@@ -61,26 +61,15 @@ const Lobby = ({
|
|
|
61
61
|
image: connectedUser?.image,
|
|
62
62
|
name: connectedUser?.name
|
|
63
63
|
};
|
|
64
|
-
const landscapeStyles = {
|
|
65
|
-
flexDirection: landscape ? 'row' : 'column'
|
|
66
|
-
};
|
|
67
64
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
68
|
-
style: [styles.container,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
style: [styles.
|
|
73
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.
|
|
74
|
-
style: [styles.heading, {
|
|
75
|
-
color: colors.static_white
|
|
76
|
-
}, typefaces.heading4, lobby.heading]
|
|
77
|
-
}, t('Before Joining')), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
78
|
-
style: [styles.subHeading, {
|
|
79
|
-
color: colors.text_low_emphasis
|
|
80
|
-
}, typefaces.subtitle]
|
|
81
|
-
}, isVideoEnabledInCall ? t('Setup your audio and video') : t('Setup your audio')), isVideoEnabledInCall && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
65
|
+
style: [styles.container, lobby.container]
|
|
66
|
+
}, connectedUser && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
67
|
+
style: [styles.heading, typefaces.heading5, lobby.heading]
|
|
68
|
+
}, t('Before joining')), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
69
|
+
style: [styles.subHeading, lobby.subHeading]
|
|
70
|
+
}, t('Setup your audio and video')), isVideoEnabledInCall && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
82
71
|
style: [styles.videoContainer, {
|
|
83
|
-
backgroundColor: colors.
|
|
72
|
+
backgroundColor: colors.sheetTertiary
|
|
84
73
|
}, lobby.videoContainer]
|
|
85
74
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
86
75
|
style: styles.topView
|
|
@@ -93,12 +82,10 @@ const Lobby = ({
|
|
|
93
82
|
style: [styles.avatarContainer, lobby.avatarContainer]
|
|
94
83
|
}, /*#__PURE__*/_react.default.createElement(_Avatar.Avatar, {
|
|
95
84
|
participant: connectedUserAsParticipant
|
|
96
|
-
})), /*#__PURE__*/_react.default.createElement(ParticipantStatus, null))), /*#__PURE__*/_react.default.createElement(
|
|
97
|
-
style: [styles.bottomContainer, lobby.bottomContainer]
|
|
98
|
-
}, LobbyControls && /*#__PURE__*/_react.default.createElement(LobbyControls, null), LobbyFooter && /*#__PURE__*/_react.default.createElement(LobbyFooter, {
|
|
85
|
+
})), /*#__PURE__*/_react.default.createElement(ParticipantStatus, null))), LobbyControls && /*#__PURE__*/_react.default.createElement(LobbyControls, null), LobbyFooter && /*#__PURE__*/_react.default.createElement(LobbyFooter, {
|
|
99
86
|
JoinCallButton: JoinCallButton,
|
|
100
87
|
onJoinCallHandler: onJoinCallHandler
|
|
101
|
-
}))
|
|
88
|
+
}));
|
|
102
89
|
};
|
|
103
90
|
exports.Lobby = Lobby;
|
|
104
91
|
const ParticipantStatus = () => {
|
|
@@ -106,84 +93,69 @@ const ParticipantStatus = () => {
|
|
|
106
93
|
theme: {
|
|
107
94
|
colors,
|
|
108
95
|
typefaces,
|
|
109
|
-
lobby
|
|
110
|
-
variants: {
|
|
111
|
-
iconSizes
|
|
112
|
-
}
|
|
96
|
+
lobby
|
|
113
97
|
}
|
|
114
98
|
} = (0, _ThemeContext.useTheme)();
|
|
99
|
+
const styles = useStyles();
|
|
115
100
|
const connectedUser = (0, _videoReactBindings.useConnectedUser)();
|
|
116
|
-
const {
|
|
117
|
-
useMicrophoneState
|
|
118
|
-
} = (0, _videoReactBindings.useCallStateHooks)();
|
|
119
101
|
const participantLabel = connectedUser?.name ?? connectedUser?.id;
|
|
120
|
-
const {
|
|
121
|
-
status: micStatus
|
|
122
|
-
} = useMicrophoneState();
|
|
123
102
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
124
103
|
style: [styles.participantStatusContainer, {
|
|
125
|
-
backgroundColor: colors.
|
|
104
|
+
backgroundColor: colors.sheetOverlay
|
|
126
105
|
}, lobby.participantStatusContainer]
|
|
127
106
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
128
107
|
style: [styles.userNameLabel, {
|
|
129
|
-
color: colors.
|
|
108
|
+
color: colors.textPrimary
|
|
130
109
|
}, typefaces.caption, lobby.userNameLabel],
|
|
131
110
|
numberOfLines: 1
|
|
132
|
-
}, participantLabel)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
|
|
111
|
+
}, participantLabel));
|
|
112
|
+
};
|
|
113
|
+
const useStyles = (landscape = false) => {
|
|
114
|
+
const {
|
|
115
|
+
theme
|
|
116
|
+
} = (0, _ThemeContext.useTheme)();
|
|
117
|
+
return (0, _react.useMemo)(() => _reactNative.StyleSheet.create({
|
|
118
|
+
heading: {
|
|
119
|
+
textAlign: 'center',
|
|
120
|
+
color: theme.colors.textPrimary,
|
|
121
|
+
paddingBottom: theme.variants.spacingSizes.xs
|
|
122
|
+
},
|
|
123
|
+
subHeading: {
|
|
124
|
+
textAlign: 'center',
|
|
125
|
+
paddingBottom: theme.variants.spacingSizes.md,
|
|
126
|
+
color: theme.colors.textSecondary
|
|
127
|
+
},
|
|
128
|
+
container: {
|
|
129
|
+
flex: 1,
|
|
130
|
+
justifyContent: 'center',
|
|
131
|
+
backgroundColor: theme.colors.sheetPrimary,
|
|
132
|
+
paddingRight: theme.variants.insets.right + theme.variants.spacingSizes.sm,
|
|
133
|
+
paddingLeft: theme.variants.insets.left + theme.variants.spacingSizes.sm,
|
|
134
|
+
paddingTop: theme.variants.insets.top,
|
|
135
|
+
paddingBottom: theme.variants.insets.bottom
|
|
136
|
+
},
|
|
137
|
+
videoContainer: {
|
|
138
|
+
height: landscape ? '40%' : '50%',
|
|
139
|
+
borderRadius: theme.variants.borderRadiusSizes.md,
|
|
140
|
+
justifyContent: 'space-between',
|
|
141
|
+
alignItems: 'center',
|
|
142
|
+
overflow: 'hidden'
|
|
143
|
+
},
|
|
144
|
+
topView: {},
|
|
145
|
+
participantStatusContainer: {
|
|
146
|
+
alignSelf: 'flex-start',
|
|
147
|
+
flexDirection: 'row',
|
|
148
|
+
alignItems: 'center',
|
|
149
|
+
padding: theme.variants.spacingSizes.sm,
|
|
150
|
+
borderTopRightRadius: theme.variants.borderRadiusSizes.sm
|
|
151
|
+
},
|
|
152
|
+
avatarContainer: {
|
|
153
|
+
flex: 2,
|
|
154
|
+
justifyContent: 'center'
|
|
155
|
+
},
|
|
156
|
+
userNameLabel: {
|
|
157
|
+
flexShrink: 1
|
|
158
|
+
}
|
|
159
|
+
}), [theme, landscape]);
|
|
140
160
|
};
|
|
141
|
-
const styles = _reactNative.StyleSheet.create({
|
|
142
|
-
container: {
|
|
143
|
-
flex: 1,
|
|
144
|
-
justifyContent: 'space-evenly'
|
|
145
|
-
},
|
|
146
|
-
topContainer: {
|
|
147
|
-
flex: 2,
|
|
148
|
-
justifyContent: 'space-evenly',
|
|
149
|
-
paddingHorizontal: 12
|
|
150
|
-
},
|
|
151
|
-
heading: {
|
|
152
|
-
textAlign: 'center'
|
|
153
|
-
},
|
|
154
|
-
subHeading: {
|
|
155
|
-
textAlign: 'center'
|
|
156
|
-
},
|
|
157
|
-
videoContainer: {
|
|
158
|
-
height: _constants.LOBBY_VIDEO_VIEW_HEIGHT,
|
|
159
|
-
borderRadius: 20,
|
|
160
|
-
justifyContent: 'space-between',
|
|
161
|
-
alignItems: 'center',
|
|
162
|
-
overflow: 'hidden',
|
|
163
|
-
padding: 8
|
|
164
|
-
},
|
|
165
|
-
topView: {},
|
|
166
|
-
bottomContainer: {
|
|
167
|
-
flex: 2,
|
|
168
|
-
justifyContent: 'space-evenly',
|
|
169
|
-
paddingHorizontal: 12
|
|
170
|
-
},
|
|
171
|
-
participantStatusContainer: {
|
|
172
|
-
alignSelf: 'flex-start',
|
|
173
|
-
flexDirection: 'row',
|
|
174
|
-
alignItems: 'center',
|
|
175
|
-
padding: 8,
|
|
176
|
-
borderRadius: 5
|
|
177
|
-
},
|
|
178
|
-
avatarContainer: {
|
|
179
|
-
flex: 2,
|
|
180
|
-
justifyContent: 'center'
|
|
181
|
-
},
|
|
182
|
-
userNameLabel: {
|
|
183
|
-
flexShrink: 1
|
|
184
|
-
},
|
|
185
|
-
audioMutedIconContainer: {
|
|
186
|
-
marginLeft: 8
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
161
|
//# sourceMappingURL=Lobby.js.map
|