@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,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ChatButton = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _CallControlsButton = require("./CallControlsButton");
|
|
10
|
-
var _icons = require("../../../icons");
|
|
11
|
-
var _TestIds = require("../../../constants/TestIds");
|
|
12
|
-
var _constants = require("../../../constants");
|
|
13
|
-
var _ThemeContext = require("../../../contexts/ThemeContext");
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
/**
|
|
16
|
-
* The props for the Chat Button in the Call Controls.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Button to open the Chat window while in the call.
|
|
21
|
-
*
|
|
22
|
-
* This call also display the unread count indicator/badge is there messages that are unread.
|
|
23
|
-
*/
|
|
24
|
-
const ChatButton = ({
|
|
25
|
-
onPressHandler,
|
|
26
|
-
unreadBadgeCount
|
|
27
|
-
}) => {
|
|
28
|
-
const {
|
|
29
|
-
theme: {
|
|
30
|
-
colors,
|
|
31
|
-
chatButton
|
|
32
|
-
}
|
|
33
|
-
} = (0, _ThemeContext.useTheme)();
|
|
34
|
-
return /*#__PURE__*/_react.default.createElement(_CallControlsButton.CallControlsButton, {
|
|
35
|
-
onPress: onPressHandler,
|
|
36
|
-
style: chatButton
|
|
37
|
-
}, /*#__PURE__*/_react.default.createElement(UnreadBadgeCountIndicator, {
|
|
38
|
-
count: unreadBadgeCount
|
|
39
|
-
}), /*#__PURE__*/_react.default.createElement(_icons.Chat, {
|
|
40
|
-
color: colors.static_black
|
|
41
|
-
}));
|
|
42
|
-
};
|
|
43
|
-
exports.ChatButton = ChatButton;
|
|
44
|
-
const UnreadBadgeCountIndicator = ({
|
|
45
|
-
count
|
|
46
|
-
}) => {
|
|
47
|
-
const {
|
|
48
|
-
theme: {
|
|
49
|
-
colors,
|
|
50
|
-
typefaces
|
|
51
|
-
}
|
|
52
|
-
} = (0, _ThemeContext.useTheme)();
|
|
53
|
-
|
|
54
|
-
// Don't show badge if count is 0 or undefined
|
|
55
|
-
if (!count) {
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
59
|
-
testID: _TestIds.ComponentTestIds.CHAT_UNREAD_BADGE_COUNT_INDICATOR,
|
|
60
|
-
style: [styles.chatBadge, {
|
|
61
|
-
backgroundColor: colors.error
|
|
62
|
-
}]
|
|
63
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
64
|
-
style: [styles.chatBadgeText, {
|
|
65
|
-
color: colors.static_white
|
|
66
|
-
}, typefaces.subtitle]
|
|
67
|
-
}, count));
|
|
68
|
-
};
|
|
69
|
-
const styles = _reactNative.StyleSheet.create({
|
|
70
|
-
chatBadge: {
|
|
71
|
-
borderRadius: 30,
|
|
72
|
-
position: 'absolute',
|
|
73
|
-
left: 15,
|
|
74
|
-
bottom: 20,
|
|
75
|
-
zIndex: _constants.Z_INDEX.IN_FRONT,
|
|
76
|
-
height: 24,
|
|
77
|
-
width: 24,
|
|
78
|
-
justifyContent: 'center'
|
|
79
|
-
},
|
|
80
|
-
chatBadgeText: {
|
|
81
|
-
textAlign: 'center'
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
//# sourceMappingURL=ChatButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_CallControlsButton","_icons","_TestIds","_constants","_ThemeContext","e","__esModule","default","ChatButton","onPressHandler","unreadBadgeCount","theme","colors","chatButton","useTheme","createElement","CallControlsButton","onPress","style","UnreadBadgeCountIndicator","count","Chat","color","static_black","exports","typefaces","View","testID","ComponentTestIds","CHAT_UNREAD_BADGE_COUNT_INDICATOR","styles","chatBadge","backgroundColor","error","Text","chatBadgeText","static_white","subtitle","StyleSheet","create","borderRadius","position","left","bottom","zIndex","Z_INDEX","IN_FRONT","height","width","justifyContent","textAlign"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ChatButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAA0D,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE1D;AACA;AACA;;AAaA;AACA;AACA;AACA;AACA;AACO,MAAMG,UAAU,GAAGA,CAAC;EACzBC,cAAc;EACdC;AACe,CAAC,KAAK;EACrB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAW;EAC9B,CAAC,GAAG,IAAAC,sBAAQ,EAAC,CAAC;EACd,oBACElB,MAAA,CAAAW,OAAA,CAAAQ,aAAA,CAACf,mBAAA,CAAAgB,kBAAkB;IAACC,OAAO,EAAER,cAAe;IAACS,KAAK,EAAEL;EAAW,gBAC7DjB,MAAA,CAAAW,OAAA,CAAAQ,aAAA,CAACI,yBAAyB;IAACC,KAAK,EAAEV;EAAiB,CAAE,CAAC,eACtDd,MAAA,CAAAW,OAA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strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CallTopView = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _ParticipantsInfoBadge = require("./ParticipantsInfoBadge");
|
|
10
|
-
var _Back = require("../../../icons/Back");
|
|
11
|
-
var _icons = require("../../../icons");
|
|
12
|
-
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
13
|
-
var _videoClient = require("@stream-io/video-client");
|
|
14
|
-
var _ThemeContext = require("../../../contexts/ThemeContext");
|
|
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); }
|
|
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; }
|
|
17
|
-
const CallTopView = ({
|
|
18
|
-
onBackPressed,
|
|
19
|
-
onParticipantInfoPress,
|
|
20
|
-
title,
|
|
21
|
-
style: styleProp,
|
|
22
|
-
ParticipantsInfoBadge = _ParticipantsInfoBadge.ParticipantsInfoBadge
|
|
23
|
-
}) => {
|
|
24
|
-
const [callTopViewHeight, setCallTopViewHeight] = (0, _react.useState)(0);
|
|
25
|
-
const [callTopViewWidth, setCallTopViewWidth] = (0, _react.useState)(0);
|
|
26
|
-
const {
|
|
27
|
-
theme: {
|
|
28
|
-
colors,
|
|
29
|
-
typefaces,
|
|
30
|
-
variants: {
|
|
31
|
-
iconSizes
|
|
32
|
-
},
|
|
33
|
-
callTopView
|
|
34
|
-
}
|
|
35
|
-
} = (0, _ThemeContext.useTheme)();
|
|
36
|
-
const {
|
|
37
|
-
useCallCallingState
|
|
38
|
-
} = (0, _videoReactBindings.useCallStateHooks)();
|
|
39
|
-
const callingState = useCallCallingState();
|
|
40
|
-
const {
|
|
41
|
-
t
|
|
42
|
-
} = (0, _videoReactBindings.useI18n)();
|
|
43
|
-
const isCallReconnecting = callingState === _videoClient.CallingState.RECONNECTING;
|
|
44
|
-
const onLayout = event => {
|
|
45
|
-
const {
|
|
46
|
-
height,
|
|
47
|
-
width
|
|
48
|
-
} = event.nativeEvent.layout;
|
|
49
|
-
if (setCallTopViewHeight) {
|
|
50
|
-
setCallTopViewHeight(height);
|
|
51
|
-
setCallTopViewWidth(width);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
55
|
-
style: [styleProp, callTopView.container]
|
|
56
|
-
}, /*#__PURE__*/_react.default.createElement(_icons.TopViewBackground, {
|
|
57
|
-
height: callTopViewHeight,
|
|
58
|
-
width: callTopViewWidth
|
|
59
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
60
|
-
style: [styles.content, callTopView.content],
|
|
61
|
-
onLayout: onLayout
|
|
62
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
63
|
-
style: styles.leftElement
|
|
64
|
-
}, onBackPressed && /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
65
|
-
style: ({
|
|
66
|
-
pressed
|
|
67
|
-
}) => [styles.backIconContainer, {
|
|
68
|
-
opacity: pressed ? 0.2 : 1,
|
|
69
|
-
height: iconSizes.md,
|
|
70
|
-
width: iconSizes.md
|
|
71
|
-
}, callTopView.backIconContainer],
|
|
72
|
-
onPress: onBackPressed
|
|
73
|
-
}, /*#__PURE__*/_react.default.createElement(_Back.Back, {
|
|
74
|
-
color: colors.static_white
|
|
75
|
-
}))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
76
|
-
style: [styles.centerElement, callTopView.centerElement]
|
|
77
|
-
}, title ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
78
|
-
style: [{
|
|
79
|
-
color: colors.static_white
|
|
80
|
-
}, typefaces.subtitleBold, callTopView.title],
|
|
81
|
-
numberOfLines: 1
|
|
82
|
-
}, title) : isCallReconnecting && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
83
|
-
style: [{
|
|
84
|
-
color: colors.static_white
|
|
85
|
-
}, typefaces.subtitleBold, callTopView.title]
|
|
86
|
-
}, t('Reconnecting...'))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
87
|
-
style: [styles.rightElement, callTopView.rightElement]
|
|
88
|
-
}, ParticipantsInfoBadge && /*#__PURE__*/_react.default.createElement(ParticipantsInfoBadge, {
|
|
89
|
-
onParticipantInfoPress: onParticipantInfoPress
|
|
90
|
-
}))));
|
|
91
|
-
};
|
|
92
|
-
exports.CallTopView = CallTopView;
|
|
93
|
-
const styles = _reactNative.StyleSheet.create({
|
|
94
|
-
content: {
|
|
95
|
-
position: 'absolute',
|
|
96
|
-
top: 0,
|
|
97
|
-
flexDirection: 'row',
|
|
98
|
-
paddingTop: 24,
|
|
99
|
-
paddingBottom: 12,
|
|
100
|
-
alignItems: 'center'
|
|
101
|
-
},
|
|
102
|
-
backIconContainer: {
|
|
103
|
-
// Added to compensate the participant badge surface area
|
|
104
|
-
marginLeft: 8
|
|
105
|
-
},
|
|
106
|
-
leftElement: {
|
|
107
|
-
flex: 1,
|
|
108
|
-
alignItems: 'flex-start'
|
|
109
|
-
},
|
|
110
|
-
centerElement: {
|
|
111
|
-
flex: 1,
|
|
112
|
-
alignItems: 'center',
|
|
113
|
-
flexGrow: 3
|
|
114
|
-
},
|
|
115
|
-
rightElement: {
|
|
116
|
-
flex: 1,
|
|
117
|
-
alignItems: 'flex-end'
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
//# sourceMappingURL=CallTopView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_ParticipantsInfoBadge","_Back","_icons","_videoReactBindings","_videoClient","_ThemeContext","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CallTopView","onBackPressed","onParticipantInfoPress","title","style","styleProp","ParticipantsInfoBadge","DefaultParticipantsInfoBadge","callTopViewHeight","setCallTopViewHeight","useState","callTopViewWidth","setCallTopViewWidth","theme","colors","typefaces","variants","iconSizes","callTopView","useTheme","useCallCallingState","useCallStateHooks","callingState","useI18n","isCallReconnecting","CallingState","RECONNECTING","onLayout","event","height","width","nativeEvent","layout","createElement","View","container","TopViewBackground","styles","content","leftElement","Pressable","pressed","backIconContainer","opacity","md","onPress","Back","color","static_white","centerElement","Text","subtitleBold","numberOfLines","rightElement","exports","StyleSheet","create","position","top","flexDirection","paddingTop","paddingBottom","alignItems","marginLeft","flex","flexGrow"],"sourceRoot":"../../../../../src","sources":["components/Call/CallTopView/CallTopView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,sBAAA,GAAAF,OAAA;AAIA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAA0D,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAA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AC5D,YAAA,CAAA6D,IAAI;IAAC9B,KAAK,EAAE,CAACiC,MAAM,CAACgB,YAAY,EAAEnC,WAAW,CAACmC,YAAY;EAAE,GAC1D/C,qBAAqB,iBACpBpC,MAAA,CAAAgB,OAAA,CAAA+C,aAAA,CAAC3B,qBAAqB;IACpBJ,sBAAsB,EAAEA;EAAuB,CAChD,CAEC,CACF,CACF,CAAC;AAEX,CAAC;AAACoD,OAAA,CAAAtD,WAAA,GAAAA,WAAA;AAEF,MAAMqC,MAAM,GAAGkB,uBAAU,CAACC,MAAM,CAAC;EAC/BlB,OAAO,EAAE;IACPmB,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,EAAE;IACjBC,UAAU,EAAE;EACd,CAAC;EACDpB,iBAAiB,EAAE;IACjB;IACAqB,UAAU,EAAE;EACd,CAAC;EACDxB,WAAW,EAAE;IACXyB,IAAI,EAAE,CAAC;IACPF,UAAU,EAAE;EACd,CAAC;EACDb,aAAa,EAAE;IACbe,IAAI,EAAE,CAAC;IACPF,UAAU,EAAE,QAAQ;IACpBG,QAAQ,EAAE;EACZ,CAAC;EACDZ,YAAY,EAAE;IACZW,IAAI,EAAE,CAAC;IACPF,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ParticipantsInfoBadge = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _icons = require("../../../icons");
|
|
10
|
-
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
11
|
-
var _constants = require("../../../constants");
|
|
12
|
-
var _TestIds = require("../../../constants/TestIds");
|
|
13
|
-
var _ThemeContext = require("../../../contexts/ThemeContext");
|
|
14
|
-
var _videoClient = require("@stream-io/video-client");
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
-
/**
|
|
17
|
-
* Props for the ParticipantsInfoBadge component.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Badge that shows the number of participants in the call.
|
|
22
|
-
* When pressed, it opens the ParticipantsInfoList.
|
|
23
|
-
*/
|
|
24
|
-
const ParticipantsInfoBadge = ({
|
|
25
|
-
onParticipantInfoPress
|
|
26
|
-
}) => {
|
|
27
|
-
const {
|
|
28
|
-
theme: {
|
|
29
|
-
colors,
|
|
30
|
-
participantInfoBadge,
|
|
31
|
-
typefaces,
|
|
32
|
-
variants: {
|
|
33
|
-
iconSizes
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
} = (0, _ThemeContext.useTheme)();
|
|
37
|
-
const {
|
|
38
|
-
useParticipantCount,
|
|
39
|
-
useCallMembers,
|
|
40
|
-
useCallCallingState
|
|
41
|
-
} = (0, _videoReactBindings.useCallStateHooks)();
|
|
42
|
-
const participantCount = useParticipantCount();
|
|
43
|
-
const members = useCallMembers();
|
|
44
|
-
const callingState = useCallCallingState();
|
|
45
|
-
let count = 0;
|
|
46
|
-
/**
|
|
47
|
-
* We show member's length if Incoming and Outgoing Call Views are rendered.
|
|
48
|
-
* Else we show the count of the participants that are in the call.
|
|
49
|
-
* Since the members count also includes caller/callee, we reduce the count by 1.
|
|
50
|
-
**/
|
|
51
|
-
if (callingState === _videoClient.CallingState.RINGING) {
|
|
52
|
-
count = members.length - 1;
|
|
53
|
-
} else {
|
|
54
|
-
count = participantCount;
|
|
55
|
-
}
|
|
56
|
-
if (count === 0) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
60
|
-
onPress: onParticipantInfoPress,
|
|
61
|
-
style: ({
|
|
62
|
-
pressed
|
|
63
|
-
}) => [styles.container, {
|
|
64
|
-
opacity: pressed ? 0.2 : 1
|
|
65
|
-
}, participantInfoBadge.container],
|
|
66
|
-
disabled: !onParticipantInfoPress,
|
|
67
|
-
testID: _TestIds.ButtonTestIds.PARTICIPANTS_INFO
|
|
68
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
69
|
-
style: [{
|
|
70
|
-
height: iconSizes.md,
|
|
71
|
-
width: iconSizes.md
|
|
72
|
-
}, participantInfoBadge.participantsIconContainer]
|
|
73
|
-
}, /*#__PURE__*/_react.default.createElement(_icons.Participants, {
|
|
74
|
-
color: colors.static_white
|
|
75
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
76
|
-
style: [styles.participantCountContainer, {
|
|
77
|
-
backgroundColor: colors.text_low_emphasis
|
|
78
|
-
}, participantInfoBadge.participantCountContainer],
|
|
79
|
-
testID: _TestIds.ButtonTestIds.PARTICIPANTS_COUNT_VIEW
|
|
80
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
81
|
-
style: [styles.participantCountText, {
|
|
82
|
-
color: colors.static_white
|
|
83
|
-
}, typefaces.subtitle, participantInfoBadge.participantsCountText],
|
|
84
|
-
testID: _TestIds.ButtonTestIds.PARTICIPANTS_COUNT_TEXT
|
|
85
|
-
}, count)));
|
|
86
|
-
};
|
|
87
|
-
exports.ParticipantsInfoBadge = ParticipantsInfoBadge;
|
|
88
|
-
const styles = _reactNative.StyleSheet.create({
|
|
89
|
-
container: {
|
|
90
|
-
flexDirection: 'row'
|
|
91
|
-
},
|
|
92
|
-
participantCountContainer: {
|
|
93
|
-
justifyContent: 'center',
|
|
94
|
-
paddingHorizontal: 8,
|
|
95
|
-
borderRadius: 30,
|
|
96
|
-
zIndex: _constants.Z_INDEX.IN_FRONT,
|
|
97
|
-
bottom: 12,
|
|
98
|
-
right: 12
|
|
99
|
-
},
|
|
100
|
-
participantCountText: {
|
|
101
|
-
includeFontPadding: false,
|
|
102
|
-
textAlign: 'center'
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
//# sourceMappingURL=ParticipantsInfoBadge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_icons","_videoReactBindings","_constants","_TestIds","_ThemeContext","_videoClient","e","__esModule","default","ParticipantsInfoBadge","onParticipantInfoPress","theme","colors","participantInfoBadge","typefaces","variants","iconSizes","useTheme","useParticipantCount","useCallMembers","useCallCallingState","useCallStateHooks","participantCount","members","callingState","count","CallingState","RINGING","length","createElement","Pressable","onPress","style","pressed","styles","container","opacity","disabled","testID","ButtonTestIds","PARTICIPANTS_INFO","View","height","md","width","participantsIconContainer","Participants","color","static_white","participantCountContainer","backgroundColor","text_low_emphasis","PARTICIPANTS_COUNT_VIEW","Text","participantCountText","subtitle","participantsCountText","PARTICIPANTS_COUNT_TEXT","exports","StyleSheet","create","flexDirection","justifyContent","paddingHorizontal","borderRadius","zIndex","Z_INDEX","IN_FRONT","bottom","right","includeFontPadding","textAlign"],"sourceRoot":"../../../../../src","sources":["components/Call/CallTopView/ParticipantsInfoBadge.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAAuD,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEvD;AACA;AACA;;AAMA;AACA;AACA;AACA;AACO,MAAMG,qBAAqB,GAAGA,CAAC;EACpCC;AAC0B,CAAC,KAAK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|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _CallTopView = require("./CallTopView");
|
|
7
|
-
Object.keys(_CallTopView).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _CallTopView[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _CallTopView[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _ParticipantsInfoBadge = require("./ParticipantsInfoBadge");
|
|
18
|
-
Object.keys(_ParticipantsInfoBadge).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _ParticipantsInfoBadge[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _ParticipantsInfoBadge[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_CallTopView","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ParticipantsInfoBadge"],"sourceRoot":"../../../../../src","sources":["components/Call/CallTopView/index.ts"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,YAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,sBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,sBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,sBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,sBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Chat = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNativeSvg = require("react-native-svg");
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const Chat = ({
|
|
11
|
-
color
|
|
12
|
-
}) => /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Svg, {
|
|
13
|
-
viewBox: "0 0 21 20"
|
|
14
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Path, {
|
|
15
|
-
d: "M 17.1887 0.353516 H 2.37385 C 1.35534 0.353516 0.522003 1.18685 0.522003 2.20537 V 18.872 L 4.22571 15.1683 H 17.1887 C 18.2072 15.1683 19.0405 14.335 19.0405 13.3165 V 2.20537 C 19.0405 1.18685 18.2072 0.353516 17.1887 0.353516 Z M 17.1887 13.3165 H 4.22571 L 2.37385 15.1683 V 2.20537 H 17.1887 V 13.3165 Z",
|
|
16
|
-
fill: color
|
|
17
|
-
}));
|
|
18
|
-
exports.Chat = Chat;
|
|
19
|
-
//# sourceMappingURL=Chat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeSvg","e","__esModule","default","Chat","color","createElement","Svg","viewBox","Path","d","fill","exports"],"sourceRoot":"../../../src","sources":["icons/Chat.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAA6C,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOtC,MAAMG,IAAI,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBACnCR,MAAA,CAAAM,OAAA,CAAAG,aAAA,CAACN,eAAA,CAAAO,GAAG;EAACC,OAAO,EAAC;AAAW,gBACtBX,MAAA,CAAAM,OAAA,CAAAG,aAAA,CAACN,eAAA,CAAAS,IAAI;EACHC,CAAC,EAAC,uTAAuT;EACzTC,IAAI,EAAEN;AAAM,CACb,CACE,CACN;AAACO,OAAA,CAAAR,IAAA,GAAAA,IAAA","ignoreList":[]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Participants = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNativeSvg = require("react-native-svg");
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const Participants = ({
|
|
11
|
-
color
|
|
12
|
-
}) => /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Svg, {
|
|
13
|
-
viewBox: "0 0 23 20"
|
|
14
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Path, {
|
|
15
|
-
clipRule: "evenodd",
|
|
16
|
-
d: "M 11 8 C 13.2091 8 15 6.20914 15 4 C 15 1.79086 13.2091 0 11 0 C 8.79086 0 7 1.79086 7 4 C 7 6.20914 8.79086 8 11 8 Z M 5.5 1 C 3.567 1 2 2.567 2 4.5 C 2 6.433 3.567 8 5.5 8 C 6.05228 8 6.5 7.55228 6.5 7 C 6.5 6.44772 6.05228 6 5.5 6 C 4.67157 6 4 5.32843 4 4.5 C 4 3.67157 4.67157 3 5.5 3 C 6.05228 3 6.5 2.55228 6.5 2 C 6.5 1.44772 6.05228 1 5.5 1 Z M 4 16 C 4 12.134 7.13401 9 11 9 C 14.866 9 18 12.134 18 16 C 18 16.397 17.9669 16.7869 17.903 17.1671 C 17.6021 18.9581 13 19.5 11 19.5 C 9 19.5 4.41865 19.0753 4.09763 17.1708 C 4.03335 16.7894 4 16.3982 4 16 Z M 3.85402 10.7725 C 4.28304 10.4247 4.34889 9.79494 4.0011 9.36592 C 3.6533 8.9369 3.02357 8.87105 2.59455 9.21884 C 1.01345 10.5006 0 12.4618 0 14.659 C 0 15.0572 0.0333547 15.4484 0.0976325 15.8297 C 0.18943 16.3743 0.705335 16.7414 1.24994 16.6496 C 1.79454 16.5578 2.16161 16.0419 2.06981 15.4973 C 2.02397 15.2253 2 14.9453 2 14.659 C 2 13.0903 2.72123 11.6908 3.85402 10.7725 Z M 20.5 4.5 C 20.5 2.567 18.933 1 17 1 C 16.4477 1 16 1.44772 16 2 C 16 2.55228 16.4477 3 17 3 C 17.8284 3 18.5 3.67157 18.5 4.5 C 18.5 5.32843 17.8284 6 17 6 C 16.4477 6 16 6.44772 16 7 C 16 7.55228 16.4477 8 17 8 C 18.933 8 20.5 6.433 20.5 4.5 Z M 18.3703 10.7725 C 17.9413 10.4247 17.8755 9.79494 18.2233 9.36592 C 18.5711 8.9369 19.2008 8.87105 19.6298 9.21884 C 21.2109 10.5006 22.2244 12.4618 22.2244 14.659 C 22.2244 15.0572 22.191 15.4484 22.1267 15.8297 C 22.0349 16.3743 21.519 16.7414 20.9744 16.6496 C 20.4298 16.5578 20.0628 16.0419 20.1546 15.4973 C 20.2004 15.2253 20.2244 14.9453 20.2244 14.659 C 20.2244 13.0903 19.5031 11.6908 18.3703 10.7725 Z",
|
|
17
|
-
fill: color,
|
|
18
|
-
fillRule: "evenodd"
|
|
19
|
-
}));
|
|
20
|
-
exports.Participants = Participants;
|
|
21
|
-
//# sourceMappingURL=Participants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeSvg","e","__esModule","default","Participants","color","createElement","Svg","viewBox","Path","clipRule","d","fill","fillRule","exports"],"sourceRoot":"../../../src","sources":["icons/Participants.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAA6C,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOtC,MAAMG,YAAY,GAAGA,CAAC;EAAEC;AAAa,CAAC,kBAC3CR,MAAA,CAAAM,OAAA,CAAAG,aAAA,CAACN,eAAA,CAAAO,GAAG;EAACC,OAAO,EAAC;AAAW,gBACtBX,MAAA,CAAAM,OAAA,CAAAG,aAAA,CAACN,eAAA,CAAAS,IAAI;EACHC,QAAQ,EAAC,SAAS;EAClBC,CAAC,EAAC,4kDAA4kD;EAC9kDC,IAAI,EAAEP,KAAM;EACZQ,QAAQ,EAAC;AAAS,CACnB,CACE,CACN;AAACC,OAAA,CAAAV,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
-
import { CallControlsButton } from './CallControlsButton';
|
|
4
|
-
import { Chat } from '../../../icons';
|
|
5
|
-
import { ComponentTestIds } from '../../../constants/TestIds';
|
|
6
|
-
import { Z_INDEX } from '../../../constants';
|
|
7
|
-
import { useTheme } from '../../../contexts/ThemeContext';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The props for the Chat Button in the Call Controls.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Button to open the Chat window while in the call.
|
|
15
|
-
*
|
|
16
|
-
* This call also display the unread count indicator/badge is there messages that are unread.
|
|
17
|
-
*/
|
|
18
|
-
export const ChatButton = ({
|
|
19
|
-
onPressHandler,
|
|
20
|
-
unreadBadgeCount
|
|
21
|
-
}) => {
|
|
22
|
-
const {
|
|
23
|
-
theme: {
|
|
24
|
-
colors,
|
|
25
|
-
chatButton
|
|
26
|
-
}
|
|
27
|
-
} = useTheme();
|
|
28
|
-
return /*#__PURE__*/React.createElement(CallControlsButton, {
|
|
29
|
-
onPress: onPressHandler,
|
|
30
|
-
style: chatButton
|
|
31
|
-
}, /*#__PURE__*/React.createElement(UnreadBadgeCountIndicator, {
|
|
32
|
-
count: unreadBadgeCount
|
|
33
|
-
}), /*#__PURE__*/React.createElement(Chat, {
|
|
34
|
-
color: colors.static_black
|
|
35
|
-
}));
|
|
36
|
-
};
|
|
37
|
-
const UnreadBadgeCountIndicator = ({
|
|
38
|
-
count
|
|
39
|
-
}) => {
|
|
40
|
-
const {
|
|
41
|
-
theme: {
|
|
42
|
-
colors,
|
|
43
|
-
typefaces
|
|
44
|
-
}
|
|
45
|
-
} = useTheme();
|
|
46
|
-
|
|
47
|
-
// Don't show badge if count is 0 or undefined
|
|
48
|
-
if (!count) {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
52
|
-
testID: ComponentTestIds.CHAT_UNREAD_BADGE_COUNT_INDICATOR,
|
|
53
|
-
style: [styles.chatBadge, {
|
|
54
|
-
backgroundColor: colors.error
|
|
55
|
-
}]
|
|
56
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
57
|
-
style: [styles.chatBadgeText, {
|
|
58
|
-
color: colors.static_white
|
|
59
|
-
}, typefaces.subtitle]
|
|
60
|
-
}, count));
|
|
61
|
-
};
|
|
62
|
-
const styles = StyleSheet.create({
|
|
63
|
-
chatBadge: {
|
|
64
|
-
borderRadius: 30,
|
|
65
|
-
position: 'absolute',
|
|
66
|
-
left: 15,
|
|
67
|
-
bottom: 20,
|
|
68
|
-
zIndex: Z_INDEX.IN_FRONT,
|
|
69
|
-
height: 24,
|
|
70
|
-
width: 24,
|
|
71
|
-
justifyContent: 'center'
|
|
72
|
-
},
|
|
73
|
-
chatBadgeText: {
|
|
74
|
-
textAlign: 'center'
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
//# sourceMappingURL=ChatButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Text","View","CallControlsButton","Chat","ComponentTestIds","Z_INDEX","useTheme","ChatButton","onPressHandler","unreadBadgeCount","theme","colors","chatButton","createElement","onPress","style","UnreadBadgeCountIndicator","count","color","static_black","typefaces","testID","CHAT_UNREAD_BADGE_COUNT_INDICATOR","styles","chatBadge","backgroundColor","error","chatBadgeText","static_white","subtitle","create","borderRadius","position","left","bottom","zIndex","IN_FRONT","height","width","justifyContent","textAlign"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ChatButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,IAAI,QAAQ,gBAAgB;AACrC,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;;AAaA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAGA,CAAC;EACzBC,cAAc;EACdC;AACe,CAAC,KAAK;EACrB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAW;EAC9B,CAAC,GAAGN,Q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ba,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { View, StyleSheet, Text, Pressable } from 'react-native';
|
|
3
|
-
import { ParticipantsInfoBadge as DefaultParticipantsInfoBadge } from './ParticipantsInfoBadge';
|
|
4
|
-
import { Back } from '../../../icons/Back';
|
|
5
|
-
import { TopViewBackground } from '../../../icons';
|
|
6
|
-
import { useCallStateHooks, useI18n } from '@stream-io/video-react-bindings';
|
|
7
|
-
import { CallingState } from '@stream-io/video-client';
|
|
8
|
-
import { useTheme } from '../../../contexts/ThemeContext';
|
|
9
|
-
export const CallTopView = ({
|
|
10
|
-
onBackPressed,
|
|
11
|
-
onParticipantInfoPress,
|
|
12
|
-
title,
|
|
13
|
-
style: styleProp,
|
|
14
|
-
ParticipantsInfoBadge = DefaultParticipantsInfoBadge
|
|
15
|
-
}) => {
|
|
16
|
-
const [callTopViewHeight, setCallTopViewHeight] = useState(0);
|
|
17
|
-
const [callTopViewWidth, setCallTopViewWidth] = useState(0);
|
|
18
|
-
const {
|
|
19
|
-
theme: {
|
|
20
|
-
colors,
|
|
21
|
-
typefaces,
|
|
22
|
-
variants: {
|
|
23
|
-
iconSizes
|
|
24
|
-
},
|
|
25
|
-
callTopView
|
|
26
|
-
}
|
|
27
|
-
} = useTheme();
|
|
28
|
-
const {
|
|
29
|
-
useCallCallingState
|
|
30
|
-
} = useCallStateHooks();
|
|
31
|
-
const callingState = useCallCallingState();
|
|
32
|
-
const {
|
|
33
|
-
t
|
|
34
|
-
} = useI18n();
|
|
35
|
-
const isCallReconnecting = callingState === CallingState.RECONNECTING;
|
|
36
|
-
const onLayout = event => {
|
|
37
|
-
const {
|
|
38
|
-
height,
|
|
39
|
-
width
|
|
40
|
-
} = event.nativeEvent.layout;
|
|
41
|
-
if (setCallTopViewHeight) {
|
|
42
|
-
setCallTopViewHeight(height);
|
|
43
|
-
setCallTopViewWidth(width);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
47
|
-
style: [styleProp, callTopView.container]
|
|
48
|
-
}, /*#__PURE__*/React.createElement(TopViewBackground, {
|
|
49
|
-
height: callTopViewHeight,
|
|
50
|
-
width: callTopViewWidth
|
|
51
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
52
|
-
style: [styles.content, callTopView.content],
|
|
53
|
-
onLayout: onLayout
|
|
54
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
55
|
-
style: styles.leftElement
|
|
56
|
-
}, onBackPressed && /*#__PURE__*/React.createElement(Pressable, {
|
|
57
|
-
style: ({
|
|
58
|
-
pressed
|
|
59
|
-
}) => [styles.backIconContainer, {
|
|
60
|
-
opacity: pressed ? 0.2 : 1,
|
|
61
|
-
height: iconSizes.md,
|
|
62
|
-
width: iconSizes.md
|
|
63
|
-
}, callTopView.backIconContainer],
|
|
64
|
-
onPress: onBackPressed
|
|
65
|
-
}, /*#__PURE__*/React.createElement(Back, {
|
|
66
|
-
color: colors.static_white
|
|
67
|
-
}))), /*#__PURE__*/React.createElement(View, {
|
|
68
|
-
style: [styles.centerElement, callTopView.centerElement]
|
|
69
|
-
}, title ? /*#__PURE__*/React.createElement(Text, {
|
|
70
|
-
style: [{
|
|
71
|
-
color: colors.static_white
|
|
72
|
-
}, typefaces.subtitleBold, callTopView.title],
|
|
73
|
-
numberOfLines: 1
|
|
74
|
-
}, title) : isCallReconnecting && /*#__PURE__*/React.createElement(Text, {
|
|
75
|
-
style: [{
|
|
76
|
-
color: colors.static_white
|
|
77
|
-
}, typefaces.subtitleBold, callTopView.title]
|
|
78
|
-
}, t('Reconnecting...'))), /*#__PURE__*/React.createElement(View, {
|
|
79
|
-
style: [styles.rightElement, callTopView.rightElement]
|
|
80
|
-
}, ParticipantsInfoBadge && /*#__PURE__*/React.createElement(ParticipantsInfoBadge, {
|
|
81
|
-
onParticipantInfoPress: onParticipantInfoPress
|
|
82
|
-
}))));
|
|
83
|
-
};
|
|
84
|
-
const styles = StyleSheet.create({
|
|
85
|
-
content: {
|
|
86
|
-
position: 'absolute',
|
|
87
|
-
top: 0,
|
|
88
|
-
flexDirection: 'row',
|
|
89
|
-
paddingTop: 24,
|
|
90
|
-
paddingBottom: 12,
|
|
91
|
-
alignItems: 'center'
|
|
92
|
-
},
|
|
93
|
-
backIconContainer: {
|
|
94
|
-
// Added to compensate the participant badge surface area
|
|
95
|
-
marginLeft: 8
|
|
96
|
-
},
|
|
97
|
-
leftElement: {
|
|
98
|
-
flex: 1,
|
|
99
|
-
alignItems: 'flex-start'
|
|
100
|
-
},
|
|
101
|
-
centerElement: {
|
|
102
|
-
flex: 1,
|
|
103
|
-
alignItems: 'center',
|
|
104
|
-
flexGrow: 3
|
|
105
|
-
},
|
|
106
|
-
rightElement: {
|
|
107
|
-
flex: 1,
|
|
108
|
-
alignItems: 'flex-end'
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
//# sourceMappingURL=CallTopView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","View","StyleSheet","Text","Pressable","ParticipantsInfoBadge","DefaultParticipantsInfoBadge","Back","TopViewBackground","useCallStateHooks","useI18n","CallingState","useTheme","CallTopView","onBackPressed","onParticipantInfoPress","title","style","styleProp","callTopViewHeight","setCallTopViewHeight","callTopViewWidth","setCallTopViewWidth","theme","colors","typefaces","variants","iconSizes","callTopView","useCallCallingState","callingState","t","isCallReconnecting","RECONNECTING","onLayout","event","height","width","nativeEvent","layout","createElement","container","styles","content","leftElement","pressed","backIconContainer","opacity","md","onPress","color","static_white","centerElement","subtitleBold","numberOfLines","rightElement","create","position","top","flexDirection","paddingTop","paddingBottom","alignItems","marginLeft","flex","flexGrow"],"sourceRoot":"../../../../../src","sources":["components/Call/CallTopView/CallTopView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SACEC,IAAI,E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