@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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Restricted","React","useState","CallControlsButton","OwnCapability","ButtonTestIds","Reaction","ReactionsPicker","useTheme","ReactionsButton","supportedReactions","onPressHandler","showReactionsPicker","setShowReactionsPicker","reactionsButtonLayoutRectangle","setReactionsButtonLayoutRectangle","theme","colors","onReactionsButtonLayout","event","layout","nativeEvent","prev","width","height","x","y","reactionsButtonHandler","createElement","Fragment","requiredGrants","CREATE_REACTION","testID","REACTION","onPress","onLayout","color","
|
|
1
|
+
{"version":3,"names":["Restricted","React","useState","CallControlsButton","OwnCapability","ButtonTestIds","IconWrapper","Reaction","ReactionsPicker","useTheme","ReactionsButton","supportedReactions","onPressHandler","showReactionsPicker","setShowReactionsPicker","reactionsButtonLayoutRectangle","setReactionsButtonLayoutRectangle","theme","colors","onReactionsButtonLayout","event","layout","nativeEvent","prev","width","height","x","y","reactionsButtonHandler","createElement","Fragment","requiredGrants","CREATE_REACTION","testID","REACTION","onPress","onLayout","color","iconPrimary","onRequestedClose"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ReactionsButton.tsx"],"mappings":"AAAA,SAASA,UAAU,QAAQ,iCAAiC;AAC5D,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,WAAW,EAAEC,QAAQ,QAAQ,gBAAgB;AACtD,SAASC,eAAe,QAAQ,4BAA4B;AAE5D,SAASC,QAAQ,QAAQ,gCAAgC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IAChCQ,QAAQ,EAAEjB;EAAwB,gBAElClB,KAAA,CAAA4B,aAAA,CAACvB,WAAW,qBACVL,KAAA,CAAA4B,aAAA,CAACtB,QAAQ;IAAC8B,KAAK,EAAEnB,MAAM,CAACoB;EAAY,CAAE,CAC3B,CACK,CACV,CAAC,EACZzB,mBAAmB,iBAClBZ,KAAA,CAAA4B,aAAA,CAACrB,eAAe;IACdG,kBAAkB,EAAEA,kBAAmB;IACvCI,8BAA8B,EAAEA,8BAA+B;IAC/DwB,gBAAgB,EAAEA,CAAA,KAAM;MACtBzB,sBAAsB,CAAC,KAAK,CAAC;IAC/B;EAAE,CACH,CAEH,CAAC;AAEP,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CallControlsButton } from './CallControlsButton';
|
|
4
|
-
import { PhoneDown } from '../../../icons';
|
|
4
|
+
import { IconWrapper, PhoneDown } from '../../../icons';
|
|
5
5
|
import { CallingState, getLogger } from '@stream-io/video-client';
|
|
6
6
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
7
|
|
|
@@ -30,7 +30,8 @@ export const RejectCallButton = ({
|
|
|
30
30
|
colors,
|
|
31
31
|
rejectCallButton,
|
|
32
32
|
variants: {
|
|
33
|
-
buttonSizes
|
|
33
|
+
buttonSizes,
|
|
34
|
+
iconSizes
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
} = useTheme();
|
|
@@ -57,14 +58,15 @@ export const RejectCallButton = ({
|
|
|
57
58
|
};
|
|
58
59
|
return /*#__PURE__*/React.createElement(CallControlsButton, {
|
|
59
60
|
onPress: rejectCallHandler,
|
|
60
|
-
color: colors.
|
|
61
|
-
size: size ?? buttonSizes.
|
|
61
|
+
color: colors.buttonWarning,
|
|
62
|
+
size: size ?? buttonSizes.md
|
|
62
63
|
// TODO: check what to do about this random style prop
|
|
63
64
|
// svgContainerStyle={theme.icon.lg}
|
|
64
65
|
,
|
|
65
66
|
style: rejectCallButton
|
|
66
|
-
}, /*#__PURE__*/React.createElement(PhoneDown, {
|
|
67
|
-
color: colors.
|
|
68
|
-
|
|
67
|
+
}, /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement(PhoneDown, {
|
|
68
|
+
color: colors.iconPrimary,
|
|
69
|
+
size: iconSizes.lg
|
|
70
|
+
})));
|
|
69
71
|
};
|
|
70
72
|
//# sourceMappingURL=RejectCallButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCall","useCallStateHooks","React","CallControlsButton","PhoneDown","CallingState","getLogger","useTheme","RejectCallButton","onPressHandler","onRejectCallHandler","size","rejectReason","call","useCallCallingState","callingState","theme","colors","rejectCallButton","variants","buttonSizes","rejectCallHandler","LEFT","leave","reject","reason","error","logger","createElement","onPress","color","
|
|
1
|
+
{"version":3,"names":["useCall","useCallStateHooks","React","CallControlsButton","IconWrapper","PhoneDown","CallingState","getLogger","useTheme","RejectCallButton","onPressHandler","onRejectCallHandler","size","rejectReason","call","useCallCallingState","callingState","theme","colors","rejectCallButton","variants","buttonSizes","iconSizes","rejectCallHandler","LEFT","leave","reject","reason","error","logger","createElement","onPress","color","buttonWarning","md","style","iconPrimary","lg"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/RejectCallButton.tsx"],"mappings":"AAAA,SAASA,OAAO,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC5E,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,WAAW,EAAEC,SAAS,QAAQ,gBAAgB;AACvD,SAASC,YAAY,EAAEC,SAAS,QAAQ,yBAAyB;AACjE,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;;AA6BA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BC,cAAc;EACdC,mB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AACe;EAAG,CAAE,CAChD,CACK,CAAC;AAEzB,CAAC","ignoreList":[]}
|
|
@@ -6,6 +6,7 @@ import { StopScreenShare } from '../../../icons/StopScreenShare';
|
|
|
6
6
|
import { CallControlsButton } from './CallControlsButton';
|
|
7
7
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
8
8
|
import { useScreenShareButton } from '../../../hooks/useScreenShareButton';
|
|
9
|
+
import { IconWrapper } from '../../../icons';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* The props for the Screen Share button in the Call Controls.
|
|
@@ -22,7 +23,8 @@ export const ScreenShareToggleButton = ({
|
|
|
22
23
|
const {
|
|
23
24
|
theme: {
|
|
24
25
|
colors,
|
|
25
|
-
screenShareToggleButton
|
|
26
|
+
screenShareToggleButton,
|
|
27
|
+
variants
|
|
26
28
|
}
|
|
27
29
|
} = useTheme();
|
|
28
30
|
const screenCapturePickerViewiOSRef = useRef(null);
|
|
@@ -33,16 +35,18 @@ export const ScreenShareToggleButton = ({
|
|
|
33
35
|
if (!onPress) return null;
|
|
34
36
|
return /*#__PURE__*/React.createElement(CallControlsButton, {
|
|
35
37
|
onPress: onPress,
|
|
36
|
-
color: hasPublishedScreenShare ? colors.
|
|
38
|
+
color: hasPublishedScreenShare ? colors.buttonWarning : colors.buttonSecondary,
|
|
37
39
|
style: {
|
|
38
40
|
container: screenShareToggleButton.container,
|
|
39
41
|
svgContainer: screenShareToggleButton.svgContainer
|
|
40
42
|
}
|
|
41
|
-
}, hasPublishedScreenShare ? /*#__PURE__*/React.createElement(StopScreenShare, {
|
|
42
|
-
|
|
43
|
+
}, /*#__PURE__*/React.createElement(IconWrapper, null, hasPublishedScreenShare ? /*#__PURE__*/React.createElement(StopScreenShare, {
|
|
44
|
+
size: variants.iconSizes.md,
|
|
45
|
+
color: colors.iconPrimary
|
|
43
46
|
}) : /*#__PURE__*/React.createElement(ScreenShare, {
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
size: variants.iconSizes.md,
|
|
48
|
+
color: colors.iconPrimary
|
|
49
|
+
})), Platform.OS === 'ios' && /*#__PURE__*/React.createElement(ScreenCapturePickerView, {
|
|
46
50
|
ref: screenCapturePickerViewiOSRef
|
|
47
51
|
}));
|
|
48
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","Platform","ScreenCapturePickerView","ScreenShare","StopScreenShare","CallControlsButton","useTheme","useScreenShareButton","ScreenShareToggleButton","onScreenShareStartedHandler","onScreenShareStoppedHandler","theme","colors","screenShareToggleButton","screenCapturePickerViewiOSRef","onPress","hasPublishedScreenShare","createElement","color","
|
|
1
|
+
{"version":3,"names":["React","useRef","Platform","ScreenCapturePickerView","ScreenShare","StopScreenShare","CallControlsButton","useTheme","useScreenShareButton","IconWrapper","ScreenShareToggleButton","onScreenShareStartedHandler","onScreenShareStoppedHandler","theme","colors","screenShareToggleButton","variants","screenCapturePickerViewiOSRef","onPress","hasPublishedScreenShare","createElement","color","buttonWarning","buttonSecondary","style","container","svgContainer","size","iconSizes","md","iconPrimary","OS","ref"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ScreenShareToggleButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,uBAAuB,QAAQ,gCAAgC;AACxE,SAASC,WAAW,QAAQ,4BAA4B;AACxD,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,SAASC,WAAW,QAAQ,gBAAgB;;AAE5C;AACA;AACA;;AAcA;AACA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAGA,CAAC;EACtCC,2BAA2B;EAC3BC;AAC4B,CAAC,KAAK;EAClC,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,uBAAuB;MAAEC;IAAS;EACrD,CAAC,GAAGT,QAAQ,CAAC,CAAC;EAEd,MAAMU,6BAA6B,GAAGhB,MAAM,CAAC,IAAI,CAAC;EAElD,MAAM;IAAEiB,OAAO;IAAEC;EAAwB,CAAC,GAAGX,oBAAoB,CAC/DS,6BAA6B,EAC7BN,2BAA2B,EAC3BC,2BACF,CAAC;EAED,IAAI,CAACM,OAAO,EAAE,OAAO,IAAI;EAEzB,oBACElB,KAAA,CAAAoB,aAAA,CAACd,kBAAkB;IACjBY,OAAO,EAAEA,OAAQ;IACjBG,KAAK,EACHF,uBAAuB,GAAGL,MAAM,CAACQ,aAAa,GAAGR,MAAM,CAACS,eACzD;IACDC,KAAK,EAAE;MACLC,SAAS,EAAEV,uBAAuB,CAACU,SAAS;MAC5CC,YAAY,EAAEX,uBAAuB,CAACW;IACxC;EAAE,gBAEF1B,KAAA,CAAAoB,aAAA,CAACX,WAAW,QACTU,uBAAuB,gBACtBnB,KAAA,CAAAoB,aAAA,CAACf,eAAe;IACdsB,IAAI,EAAEX,QAAQ,CAACY,SAAS,CAACC,EAAG;IAC5BR,KAAK,EAAEP,MAAM,CAACgB;EAAY,CAC3B,CAAC,gBAEF9B,KAAA,CAAAoB,aAAA,CAAChB,WAAW;IACVuB,IAAI,EAAEX,QAAQ,CAACY,SAAS,CAACC,EAAG;IAC5BR,KAAK,EAAEP,MAAM,CAACgB;EAAY,CAC3B,CAEQ,CAAC,EACb5B,QAAQ,CAAC6B,EAAE,KAAK,KAAK,iBACpB/B,KAAA,CAAAoB,aAAA,CAACjB,uBAAuB;IAAC6B,GAAG,EAAEf;EAA8B,CAAE,CAE9C,CAAC;AAEzB,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useTheme } from '../../../contexts';
|
|
4
|
-
import { Mic, MicOff } from '../../../icons';
|
|
4
|
+
import { IconWrapper, Mic, MicOff } from '../../../icons';
|
|
5
5
|
import { CallControlsButton } from './CallControlsButton';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -20,7 +20,8 @@ export const ToggleAudioPreviewButton = ({
|
|
|
20
20
|
toggleAudioPreviewButton,
|
|
21
21
|
variants: {
|
|
22
22
|
buttonSizes
|
|
23
|
-
}
|
|
23
|
+
},
|
|
24
|
+
defaults
|
|
24
25
|
}
|
|
25
26
|
} = useTheme();
|
|
26
27
|
const {
|
|
@@ -39,19 +40,18 @@ export const ToggleAudioPreviewButton = ({
|
|
|
39
40
|
};
|
|
40
41
|
return /*#__PURE__*/React.createElement(CallControlsButton, {
|
|
41
42
|
onPress: onPress,
|
|
42
|
-
color: !optimisticIsMute ? colors.
|
|
43
|
+
color: !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning,
|
|
43
44
|
size: buttonSizes.md,
|
|
44
45
|
style: {
|
|
45
|
-
container:
|
|
46
|
-
shadowColor: !optimisticIsMute ? colors.static_white : colors.static_black,
|
|
47
|
-
...toggleAudioPreviewButton.container
|
|
48
|
-
},
|
|
46
|
+
container: toggleAudioPreviewButton.container,
|
|
49
47
|
svgContainer: toggleAudioPreviewButton.svgContainer
|
|
50
48
|
}
|
|
51
|
-
}, !optimisticIsMute ? /*#__PURE__*/React.createElement(Mic, {
|
|
52
|
-
color: colors.
|
|
49
|
+
}, /*#__PURE__*/React.createElement(IconWrapper, null, !optimisticIsMute ? /*#__PURE__*/React.createElement(Mic, {
|
|
50
|
+
color: colors.iconPrimary,
|
|
51
|
+
size: defaults.iconSize
|
|
53
52
|
}) : /*#__PURE__*/React.createElement(MicOff, {
|
|
54
|
-
color: colors.
|
|
55
|
-
|
|
53
|
+
color: colors.iconPrimary,
|
|
54
|
+
size: defaults.iconSize
|
|
55
|
+
})));
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=ToggleAudioPreviewButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallStateHooks","React","useTheme","Mic","MicOff","CallControlsButton","ToggleAudioPreviewButton","onPressHandler","theme","colors","toggleAudioPreviewButton","variants","buttonSizes","useMicrophoneState","optimisticIsMute","microphone","onPress","toggle","createElement","color","
|
|
1
|
+
{"version":3,"names":["useCallStateHooks","React","useTheme","IconWrapper","Mic","MicOff","CallControlsButton","ToggleAudioPreviewButton","onPressHandler","theme","colors","toggleAudioPreviewButton","variants","buttonSizes","defaults","useMicrophoneState","optimisticIsMute","microphone","onPress","toggle","createElement","color","buttonSecondary","buttonWarning","size","md","style","container","svgContainer","iconPrimary","iconSize"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleAudioPreviewButton.tsx"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,iCAAiC;AACnE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,WAAW,EAAEC,GAAG,EAAEC,MAAM,QAAQ,gBAAgB;AACzD,SAASC,kBAAkB,QAAQ,sBAAsB;;AAEzD;AACA;AACA;;AASA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGA,CAAC;EACvCC;AAC6B,CAAC,KAAK;EACnC,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,wBAAwB;MACxBC,QAAQ,EAAE;QAAEC;MAAY,CAAC;MACzBC;IACF;EACF,CAAC,GAAGZ,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEa;EAAmB,CAAC,GAAGf,iBAAiB,CAAC,CAAC;EAClD,MAAM;IAAEgB,gBAAgB;IAAEC;EAAW,CAAC,GAAGF,kBAAkB,CAAC,CAAC;EAE7D,MAAMG,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIV,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IACA,MAAMS,UAAU,CAACE,MAAM,CAAC,CAAC;EAC3B,CAAC;EAED,oBACElB,KAAA,CAAAmB,aAAA,CAACd,kBAAkB;IACjBY,OAAO,EAAEA,OAAQ;IACjBG,KAAK,EAAE,CAACL,gBAAgB,GAAGN,MAAM,CAACY,eAAe,GAAGZ,MAAM,CAACa,aAAc;IACzEC,IAAI,EAAEX,WAAW,CAACY,EAAG;IACrBC,KAAK,EAAE;MACLC,SAAS,EAAEhB,wBAAwB,CAACgB,SAAS;MAC7CC,YAAY,EAAEjB,wBAAwB,CAACiB;IACzC;EAAE,gBAEF3B,KAAA,CAAAmB,aAAA,CAACjB,WAAW,QACT,CAACa,gBAAgB,gBAChBf,KAAA,CAAAmB,aAAA,CAAChB,GAAG;IAACiB,KAAK,EAAEX,MAAM,CAACmB,WAAY;IAACL,IAAI,EAAEV,QAAQ,CAACgB;EAAS,CAAE,CAAC,gBAE3D7B,KAAA,CAAAmB,aAAA,CAACf,MAAM;IAACgB,KAAK,EAAEX,MAAM,CAACmB,WAAY;IAACL,IAAI,EAAEV,QAAQ,CAACgB;EAAS,CAAE,CAEpD,CACK,CAAC;AAEzB,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { OwnCapability } from '@stream-io/video-client';
|
|
3
3
|
import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
4
4
|
import { CallControlsButton } from './CallControlsButton';
|
|
5
|
-
import { Mic, MicOff } from '../../../icons';
|
|
5
|
+
import { IconWrapper, Mic, MicOff } from '../../../icons';
|
|
6
6
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -25,7 +25,8 @@ export const ToggleAudioPublishingButton = ({
|
|
|
25
25
|
const {
|
|
26
26
|
theme: {
|
|
27
27
|
colors,
|
|
28
|
-
toggleAudioPublishingButton
|
|
28
|
+
toggleAudioPublishingButton,
|
|
29
|
+
defaults
|
|
29
30
|
}
|
|
30
31
|
} = useTheme();
|
|
31
32
|
const onPress = async () => {
|
|
@@ -39,12 +40,14 @@ export const ToggleAudioPublishingButton = ({
|
|
|
39
40
|
requiredGrants: [OwnCapability.SEND_AUDIO]
|
|
40
41
|
}, /*#__PURE__*/React.createElement(CallControlsButton, {
|
|
41
42
|
onPress: onPress,
|
|
42
|
-
color: !optimisticIsMute ? colors.
|
|
43
|
+
color: !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning,
|
|
43
44
|
style: toggleAudioPublishingButton
|
|
44
|
-
}, !optimisticIsMute ? /*#__PURE__*/React.createElement(Mic, {
|
|
45
|
-
color: colors.
|
|
45
|
+
}, /*#__PURE__*/React.createElement(IconWrapper, null, !optimisticIsMute ? /*#__PURE__*/React.createElement(Mic, {
|
|
46
|
+
color: colors.iconPrimary,
|
|
47
|
+
size: defaults.iconSize
|
|
46
48
|
}) : /*#__PURE__*/React.createElement(MicOff, {
|
|
47
|
-
color: colors.
|
|
48
|
-
|
|
49
|
+
color: colors.iconPrimary,
|
|
50
|
+
size: defaults.iconSize
|
|
51
|
+
}))));
|
|
49
52
|
};
|
|
50
53
|
//# sourceMappingURL=ToggleAudioPublishingButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","OwnCapability","Restricted","useCallStateHooks","CallControlsButton","Mic","MicOff","useTheme","ToggleAudioPublishingButton","onPressHandler","useMicrophoneState","optimisticIsMute","microphone","theme","colors","toggleAudioPublishingButton","onPress","toggle","createElement","requiredGrants","SEND_AUDIO","color","
|
|
1
|
+
{"version":3,"names":["React","OwnCapability","Restricted","useCallStateHooks","CallControlsButton","IconWrapper","Mic","MicOff","useTheme","ToggleAudioPublishingButton","onPressHandler","useMicrophoneState","optimisticIsMute","microphone","theme","colors","toggleAudioPublishingButton","defaults","onPress","toggle","createElement","requiredGrants","SEND_AUDIO","color","buttonSecondary","buttonWarning","style","iconPrimary","size","iconSize"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleAudioPublishingButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC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IAACC,IAAI,EAAEX,QAAQ,CAACY;EAAS,CAAE,CAEpD,CACK,CACV,CAAC;AAEjB,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@ import { OwnCapability } from '@stream-io/video-client';
|
|
|
2
2
|
import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { CallControlsButton } from './CallControlsButton';
|
|
5
|
-
import { CameraSwitch } from '../../../icons';
|
|
5
|
+
import { CameraSwitch, IconWrapper } from '../../../icons';
|
|
6
6
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -13,7 +13,8 @@ import { useTheme } from '../../../contexts/ThemeContext';
|
|
|
13
13
|
* Button to toggle camera face(front/back) when in the call.
|
|
14
14
|
*/
|
|
15
15
|
export const ToggleCameraFaceButton = ({
|
|
16
|
-
onPressHandler
|
|
16
|
+
onPressHandler,
|
|
17
|
+
backgroundColor
|
|
17
18
|
}) => {
|
|
18
19
|
const {
|
|
19
20
|
useCameraState,
|
|
@@ -29,7 +30,8 @@ export const ToggleCameraFaceButton = ({
|
|
|
29
30
|
const {
|
|
30
31
|
theme: {
|
|
31
32
|
colors,
|
|
32
|
-
toggleCameraFaceButton
|
|
33
|
+
toggleCameraFaceButton,
|
|
34
|
+
variants
|
|
33
35
|
}
|
|
34
36
|
} = useTheme();
|
|
35
37
|
const onPress = async () => {
|
|
@@ -46,11 +48,13 @@ export const ToggleCameraFaceButton = ({
|
|
|
46
48
|
requiredGrants: [OwnCapability.SEND_VIDEO]
|
|
47
49
|
}, /*#__PURE__*/React.createElement(CallControlsButton, {
|
|
48
50
|
onPress: onPress,
|
|
49
|
-
color:
|
|
51
|
+
color: backgroundColor || colors.buttonSecondary,
|
|
52
|
+
disabledColor: backgroundColor || colors.sheetSecondary,
|
|
50
53
|
disabled: optimisticIsMute,
|
|
51
54
|
style: toggleCameraFaceButton
|
|
52
|
-
}, /*#__PURE__*/React.createElement(CameraSwitch, {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
}, /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement(CameraSwitch, {
|
|
56
|
+
size: variants.iconSizes.md,
|
|
57
|
+
color: optimisticIsMute ? colors.buttonDisabled : direction === 'front' || direction === undefined ? colors.iconPrimary : colors.buttonPrimary
|
|
58
|
+
}))));
|
|
55
59
|
};
|
|
56
60
|
//# sourceMappingURL=ToggleCameraFaceButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["OwnCapability","Restricted","useCallStateHooks","React","CallControlsButton","CameraSwitch","useTheme","ToggleCameraFaceButton","onPressHandler","useCameraState","useCallSettings","camera","optimisticIsMute","direction","callSettings","isVideoEnabledInCall","video","enabled","theme","colors","toggleCameraFaceButton","onPress","flip","createElement","requiredGrants","SEND_VIDEO","color","
|
|
1
|
+
{"version":3,"names":["OwnCapability","Restricted","useCallStateHooks","React","CallControlsButton","CameraSwitch","IconWrapper","useTheme","ToggleCameraFaceButton","onPressHandler","backgroundColor","useCameraState","useCallSettings","camera","optimisticIsMute","direction","callSettings","isVideoEnabledInCall","video","enabled","theme","colors","toggleCameraFaceButton","variants","onPress","flip","createElement","requiredGrants","SEND_VIDEO","color","buttonSecondary","disabledColor","sheetSecondary","disabled","style","size","iconSizes","md","buttonDisabled","undefined","iconPrimary","buttonPrimary"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleCameraFaceButton.tsx"],"mappings":"AAAA,SAASA,aAAa,QAAQ,yBAAyB;AACvD,SAASC,UAAU,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC/E,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,YAAY,EAAEC,WAAW,QAAQ,gBAAgB;AAC1D,SAASC,QAAQ,QAAQ,gCAAgC;;AAGzD;AACA;AACA;;AAcA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,G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ClB,MAAM,CAACmB,WAAW,GAClBnB,MAAM,CAACoB;EACd,CACF,CACU,CACK,CACV,CAAC;AAEjB,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
3
3
|
import { useTheme } from '../../../contexts';
|
|
4
4
|
import { CallControlsButton } from './CallControlsButton';
|
|
5
|
-
import { Video, VideoSlash } from '../../../icons';
|
|
5
|
+
import { IconWrapper, Video, VideoSlash } from '../../../icons';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Props for the Toggle Video preview button
|
|
@@ -19,7 +19,8 @@ export const ToggleVideoPreviewButton = ({
|
|
|
19
19
|
colors,
|
|
20
20
|
toggleVideoPreviewButton,
|
|
21
21
|
variants: {
|
|
22
|
-
buttonSizes
|
|
22
|
+
buttonSizes,
|
|
23
|
+
iconSizes
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
} = useTheme();
|
|
@@ -45,19 +46,18 @@ export const ToggleVideoPreviewButton = ({
|
|
|
45
46
|
}
|
|
46
47
|
return /*#__PURE__*/React.createElement(CallControlsButton, {
|
|
47
48
|
onPress: onPress,
|
|
48
|
-
color: !optimisticIsMute ? colors.
|
|
49
|
+
color: !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning,
|
|
49
50
|
size: buttonSizes.md,
|
|
50
51
|
style: {
|
|
51
|
-
container:
|
|
52
|
-
shadowColor: !optimisticIsMute ? colors.static_white : colors.static_black,
|
|
53
|
-
...toggleVideoPreviewButton.container
|
|
54
|
-
},
|
|
52
|
+
container: toggleVideoPreviewButton.container,
|
|
55
53
|
svgContainer: toggleVideoPreviewButton.svgContainer
|
|
56
54
|
}
|
|
57
|
-
}, !optimisticIsMute ? /*#__PURE__*/React.createElement(Video, {
|
|
58
|
-
color: colors.
|
|
55
|
+
}, /*#__PURE__*/React.createElement(IconWrapper, null, !optimisticIsMute ? /*#__PURE__*/React.createElement(Video, {
|
|
56
|
+
color: colors.iconPrimary,
|
|
57
|
+
size: iconSizes.lg
|
|
59
58
|
}) : /*#__PURE__*/React.createElement(VideoSlash, {
|
|
60
|
-
color: colors.
|
|
61
|
-
|
|
59
|
+
color: colors.iconPrimary,
|
|
60
|
+
size: iconSizes.lg
|
|
61
|
+
})));
|
|
62
62
|
};
|
|
63
63
|
//# sourceMappingURL=ToggleVideoPreviewButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallStateHooks","useTheme","CallControlsButton","Video","VideoSlash","ToggleVideoPreviewButton","onPressHandler","theme","colors","toggleVideoPreviewButton","variants","buttonSizes","useCameraState","useCallSettings","callSettings","isVideoEnabledInCall","video","enabled","optimisticIsMute","camera","onPress","toggle","createElement","color","
|
|
1
|
+
{"version":3,"names":["React","useCallStateHooks","useTheme","CallControlsButton","IconWrapper","Video","VideoSlash","ToggleVideoPreviewButton","onPressHandler","theme","colors","toggleVideoPreviewButton","variants","buttonSizes","iconSizes","useCameraState","useCallSettings","callSettings","isVideoEnabledInCall","video","enabled","optimisticIsMute","camera","onPress","toggle","createElement","color","buttonSecondary","buttonWarning","size","md","style","container","svgContainer","iconPrimary","lg"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleVideoPreviewButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,WAAW,EAAEC,KAAK,EAAEC,UAAU,QAAQ,gBAAgB;;AAE/D;AACA;AACA;;AASA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGA,CAAC;EACvCC;AAC6B,CAAC,KAAK;EACnC,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,wBAAwB;MACxBC,QAAQ,EAAE;QAAEC,WAAW;QAAEC;MAAU;IACrC;EACF,CA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} from '@stream-io/video-client';
|
|
3
3
|
import { Restricted, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
4
4
|
import { CallControlsButton } from './CallControlsButton';
|
|
5
|
-
import { Video, VideoSlash } from '../../../icons';
|
|
5
|
+
import { IconWrapper, Video, VideoSlash } from '../../../icons';
|
|
6
6
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -27,7 +27,8 @@ export const ToggleVideoPublishingButton = ({
|
|
|
27
27
|
const isVideoEnabledInCall = callSettings?.video.enabled;
|
|
28
28
|
const {
|
|
29
29
|
theme: {
|
|
30
|
-
colors
|
|
30
|
+
colors,
|
|
31
|
+
variants
|
|
31
32
|
}
|
|
32
33
|
} = useTheme();
|
|
33
34
|
const onPress = async () => {
|
|
@@ -44,11 +45,13 @@ export const ToggleVideoPublishingButton = ({
|
|
|
44
45
|
requiredGrants: [OwnCapability.SEND_VIDEO]
|
|
45
46
|
}, /*#__PURE__*/React.createElement(CallControlsButton, {
|
|
46
47
|
onPress: onPress,
|
|
47
|
-
color: !optimisticIsMute ? colors.
|
|
48
|
-
}, !optimisticIsMute ? /*#__PURE__*/React.createElement(Video, {
|
|
49
|
-
color: colors.
|
|
48
|
+
color: !optimisticIsMute ? colors.buttonSecondary : colors.buttonWarning
|
|
49
|
+
}, /*#__PURE__*/React.createElement(IconWrapper, null, !optimisticIsMute ? /*#__PURE__*/React.createElement(Video, {
|
|
50
|
+
color: colors.iconPrimary,
|
|
51
|
+
size: variants.iconSizes.md
|
|
50
52
|
}) : /*#__PURE__*/React.createElement(VideoSlash, {
|
|
51
|
-
color: colors.
|
|
52
|
-
|
|
53
|
+
color: colors.iconPrimary,
|
|
54
|
+
size: variants.iconSizes.md
|
|
55
|
+
}))));
|
|
53
56
|
};
|
|
54
57
|
//# sourceMappingURL=ToggleVideoPublishingButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","OwnCapability","Restricted","useCallStateHooks","CallControlsButton","Video","VideoSlash","useTheme","ToggleVideoPublishingButton","onPressHandler","useCameraState","useCallSettings","camera","optimisticIsMute","callSettings","isVideoEnabledInCall","video","enabled","theme","colors","onPress","toggle","createElement","requiredGrants","SEND_VIDEO","color","
|
|
1
|
+
{"version":3,"names":["React","OwnCapability","Restricted","useCallStateHooks","CallControlsButton","IconWrapper","Video","VideoSlash","useTheme","ToggleVideoPublishingButton","onPressHandler","useCameraState","useCallSettings","camera","optimisticIsMute","callSettings","isVideoEnabledInCall","video","enabled","theme","colors","variants","onPress","toggle","createElement","requiredGrants","SEND_VIDEO","color","buttonSecondary","buttonWarning","iconPrimary","size","iconSizes","md"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ToggleVideoPublishingButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,QAAQ,yBAAyB;AACvD,SAASC,UAAU,EAAEC,iBAAiB,QAAQ,iCAAiC;AAC/E,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,WAAW,EAAEC,KAAK,EAAEC,UAAU,QAAQ,gBAAgB;AAC/D,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;AACA;AACA;;AASA;AACA;AACA;AACA,OAAO,MAAMC,2BAA2B,GAAGA,CAAC;EAC1CC;AACgC,CAAC,KAAK;EACtC,MAAM;IAAEC,cAAc;IAAEC;EAAgB,CAAC,GAAGT,iBAAiB,CAAC,CAAC;EAC/D,MAAM;IAAEU,MAAM;IAAEC;EAAiB,CAAC,GAAGH,cAAc,CAAC,CAAC;EACrD,MAAMI,YAAY,GAAGH,eAAe,CAAC,CAAC;EACtC,MAAMI,oBAAoB,GAAGD,YAAY,EAAEE,KAAK,CAACC,OAAO;EACxD,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAS;EAC5B,CAAC,GAAGb,QAAQ,CAAC,CAAC;EACd,MAAMc,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,IAAIZ,cAAc,EAAE;MAClBA,cAAc,CAAC,CAAC;MAChB;IACF;IACA,MAAMG,MAAM,CAACU,MAAM,CAAC,CAAC;EACvB,CAAC;EAED,IAAI,CAACP,oBAAoB,EAAE;IACzB;EACF;EAEA,oBACEhB,KAAA,CAAAwB,aAAA,CAACtB,UAAU;IAACuB,cAAc,EAAE,CAACxB,aAAa,CAACyB,UAAU;EAAE,gBACrD1B,KAAA,CAAAwB,aAAA,CAACpB,kBAAkB;IACjBkB,OAAO,EAAEA,OAAQ;IACjBK,KAAK,EACH,CAACb,gBAAgB,GAAGM,MAAM,CAACQ,eAAe,GAAGR,MAAM,CAACS;EACrD,gBAED7B,KAAA,CAAAwB,aAAA,CAACnB,WAAW,QACT,CAACS,gBAAgB,gBAChBd,KAAA,CAAAwB,aAAA,CAAClB,KAAK;IAACqB,KAAK,EAAEP,MAAM,CAACU,WAAY;IAACC,IAAI,EAAEV,QAAQ,CAACW,SAAS,CAACC;EAAG,CAAE,CAAC,gBAEjEjC,KAAA,CAAAwB,aAAA,CAACjB,UAAU;IACToB,KAAK,EAAEP,MAAM,CAACU,WAAY;IAC1BC,IAAI,EAAEV,QAAQ,CAACW,SAAS,CAACC;EAAG,CAC7B,CAEQ,CACK,CACV,CAAC;AAEjB,CAAC","ignoreList":[]}
|
|
@@ -6,7 +6,6 @@ export * from './ToggleVideoPreviewButton';
|
|
|
6
6
|
export * from './ToggleAudioPublishingButton';
|
|
7
7
|
export * from './ToggleVideoPublishingButton';
|
|
8
8
|
export * from './ToggleCameraFaceButton';
|
|
9
|
-
export * from './ChatButton';
|
|
10
9
|
export * from './ReactionsButton';
|
|
11
10
|
export * from './CallControls';
|
|
12
11
|
export * from './CallControlsButton';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/index.tsx"],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,4BAA4B;AAC1C,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,0BAA0B;AACxC,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/index.tsx"],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,4BAA4B;AAC1C,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,0BAA0B;AACxC,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,sBAAsB;AACpC,cAAc,iBAAiB;AAC/B,cAAc,wBAAwB;AACtC,cAAc,wBAAwB;AACtC,cAAc,2BAA2B","ignoreList":[]}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import React, { useEffect, useRef } from 'react';
|
|
1
|
+
import React, { useEffect, useMemo, useRef } from 'react';
|
|
2
2
|
import { Pressable, StyleSheet, Animated, Easing } from 'react-native';
|
|
3
3
|
import { useCall } from '@stream-io/video-react-bindings';
|
|
4
4
|
import { getLogger } from '@stream-io/video-client';
|
|
5
5
|
import { ComponentTestIds } from '../../../../constants/TestIds';
|
|
6
6
|
import { useTheme } from '../../../../contexts/ThemeContext';
|
|
7
7
|
import { defaultEmojiReactions } from '../../../../constants';
|
|
8
|
-
const TOP_PADDING = 4;
|
|
9
|
-
const REACTION_MARGIN_BOTTOM = 4;
|
|
10
8
|
export const ReactionsPicker = ({
|
|
11
9
|
supportedReactions = defaultEmojiReactions,
|
|
12
10
|
reactionsButtonLayoutRectangle,
|
|
@@ -15,17 +13,19 @@ export const ReactionsPicker = ({
|
|
|
15
13
|
const {
|
|
16
14
|
theme: {
|
|
17
15
|
colors,
|
|
18
|
-
reactionsPicker
|
|
16
|
+
reactionsPicker,
|
|
17
|
+
variants
|
|
19
18
|
}
|
|
20
19
|
} = useTheme();
|
|
20
|
+
const styles = useStyles();
|
|
21
21
|
const call = useCall();
|
|
22
22
|
const size = reactionsButtonLayoutRectangle?.width ?? 0;
|
|
23
23
|
const reactionItemSize = size * 0.8;
|
|
24
24
|
const popupHeight =
|
|
25
25
|
// the top padding
|
|
26
|
-
|
|
26
|
+
variants.spacingSizes.xs +
|
|
27
27
|
// take margins into account
|
|
28
|
-
|
|
28
|
+
variants.spacingSizes.xs * supportedReactions.length +
|
|
29
29
|
// the size of the reaction icon items (same size as reactions button * amount of reactions)
|
|
30
30
|
reactionItemSize * supportedReactions.length;
|
|
31
31
|
const reactionsPopupStyle = {
|
|
@@ -81,7 +81,7 @@ export const ReactionsPicker = ({
|
|
|
81
81
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
82
82
|
testID: ComponentTestIds.REACTIONS_PICKER,
|
|
83
83
|
style: [styles.reactionsPopup, reactionsPopupStyle, {
|
|
84
|
-
backgroundColor: colors.
|
|
84
|
+
backgroundColor: colors.sheetSecondary
|
|
85
85
|
}, reactionsPicker.reactionsPopup],
|
|
86
86
|
onPress: () => {
|
|
87
87
|
onClose();
|
|
@@ -89,8 +89,7 @@ export const ReactionsPicker = ({
|
|
|
89
89
|
}, supportedReactions.map(supportedReaction => /*#__PURE__*/React.createElement(Pressable, {
|
|
90
90
|
key: supportedReaction.emoji_code,
|
|
91
91
|
style: [styles.reactionItem, reactionItemStyle, {
|
|
92
|
-
|
|
93
|
-
backgroundColor: colors.overlay
|
|
92
|
+
backgroundColor: colors.buttonSecondary
|
|
94
93
|
}, reactionsPicker.reactionItem],
|
|
95
94
|
onPress: () => {
|
|
96
95
|
onClose({
|
|
@@ -109,28 +108,33 @@ export const ReactionsPicker = ({
|
|
|
109
108
|
}, reactionsPicker.reactionText]
|
|
110
109
|
}, supportedReaction.icon)))), /*#__PURE__*/React.createElement(Pressable, {
|
|
111
110
|
style: [reactionsButtonDimmerStyle, {
|
|
112
|
-
backgroundColor: colors.
|
|
111
|
+
backgroundColor: colors.sheetSecondary
|
|
113
112
|
}, reactionsPicker.reactionsButtonDimmer],
|
|
114
113
|
onPress: () => onClose()
|
|
115
114
|
}));
|
|
116
115
|
};
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
116
|
+
const useStyles = () => {
|
|
117
|
+
const {
|
|
118
|
+
theme
|
|
119
|
+
} = useTheme();
|
|
120
|
+
return useMemo(() => StyleSheet.create({
|
|
121
|
+
reactionsPopup: {
|
|
122
|
+
position: 'absolute',
|
|
123
|
+
alignItems: 'center',
|
|
124
|
+
paddingTop: theme.variants.spacingSizes.xs
|
|
125
|
+
},
|
|
126
|
+
reactionsButtonDimmer: {
|
|
127
|
+
position: 'absolute',
|
|
128
|
+
opacity: 0.5
|
|
129
|
+
},
|
|
130
|
+
reactionItem: {
|
|
131
|
+
alignItems: 'center',
|
|
132
|
+
justifyContent: 'center',
|
|
133
|
+
marginBottom: theme.variants.spacingSizes.xs
|
|
134
|
+
},
|
|
135
|
+
reactionText: {
|
|
136
|
+
fontSize: 18.5
|
|
137
|
+
}
|
|
138
|
+
}), [theme]);
|
|
139
|
+
};
|
|
136
140
|
//# sourceMappingURL=ReactionsPicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useRef","Pressable","StyleSheet","Animated","Easing","useCall","getLogger","ComponentTestIds","useTheme","defaultEmojiReactions","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","useRef","Pressable","StyleSheet","Animated","Easing","useCall","getLogger","ComponentTestIds","useTheme","defaultEmojiReactions","ReactionsPicker","supportedReactions","reactionsButtonLayoutRectangle","onRequestedClose","theme","colors","reactionsPicker","variants","styles","useStyles","call","size","width","reactionItemSize","popupHeight","spacingSizes","xs","length","reactionsPopupStyle","top","y","left","x","height","borderTopStartRadius","borderTopEndRadius","elasticAnimRef","Value","timing","current","toValue","duration","useNativeDriver","easing","elastic","start","reactionItemStyle","borderRadius","reactionsButtonDimmerStyle","reactionsButtonDimmer","onClose","reaction","sendReaction","catch","e","logger","linear","createElement","Fragment","testID","REACTIONS_PICKER","style","reactionsPopup","backgroundColor","sheetSecondary","onPress","map","supportedReaction","key","emoji_code","reactionItem","buttonSecondary","type","custom","Text","reactionText","transform","scaleY","scaleX","icon","create","position","alignItems","paddingTop","opacity","justifyContent","marginBottom","fontSize"],"sourceRoot":"../../../../../../src","sources":["components/Call/CallControls/internal/ReactionsPicker.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACzD,SAEEC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,MAAM,QACD,cAAc;AACrB,SAASC,OAAO,QAAQ,iCAAiC;AACzD,SAA8BC,SAAS,QAAQ,yBAAyB;AACxE,SAASC,gBAAgB,QAAQ,+BAA+B;AAChE,SAASC,QAAQ,QAAQ,mCAAmC;AAE5D,SAASC,qBAAqB,QAAQ,uBAAuB;AAO7D,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC9BC,kBAAkB,GAAGF,qBAAqB;EAC1CG,8BAA8B;EAC9BC;AACmB,CAAC,KAAK;EACzB,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,eAAe;MAAEC;IAAS;EAC7C,CAAC,GAAGT,QAAQ,CAAC,CAAC;EACd,MAAMU,MAAM,GAAGC,SAAS,CAAC,CAAC;EAC1B,MAAMC,IAAI,GAAGf,OAAO,CAAC,CAAC;EACtB,MAAMgB,IAAI,GAAGT,8BAA8B,EAAEU,KAAK,IAAI,CAAC;EACvD,MAAMC,gBAAgB,GAAGF,IAAI,GAAG,GAAG;EAEnC,MAAMG,W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AAExE,KAAK,CAACG,QAAQ,CAACQ,YAAY,CAACC;IAC5C,CAAC;IACDiD,YAAY,EAAE;MACZY,QAAQ,EAAE;IACZ;EACF,CAAC,CAAC,EACJ,CAACzE,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -64,7 +64,7 @@ export const CallParticipantsGrid = ({
|
|
|
64
64
|
};
|
|
65
65
|
return /*#__PURE__*/React.createElement(View, {
|
|
66
66
|
style: [styles.container, landscapeStyles, {
|
|
67
|
-
backgroundColor: colors.
|
|
67
|
+
backgroundColor: colors.sheetPrimary
|
|
68
68
|
}, callParticipantsGrid.container],
|
|
69
69
|
testID: ComponentTestIds.CALL_PARTICIPANTS_GRID
|
|
70
70
|
}, CallParticipantsList && /*#__PURE__*/React.createElement(CallParticipantsList, _extends({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","useCallStateHooks","useDebouncedValue","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","useIsInPiPMode","CallParticipantsGrid","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","supportedReactions","landscape","disablePictureInPicture","theme","colors","callParticipantsGrid","useRemoteParticipants","useParticipants","useLocalParticipant","_remoteParticipants","localParticipant","_allParticipants","remoteParticipants","allParticipants","landscapeStyles","flexDirection","isInPiPMode","showFloatingView","length","participants","participantViewProps","createElement","style","styles","container","backgroundColor","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useCallStateHooks","useDebouncedValue","CallParticipantsList","DefaultCallParticipantsList","ComponentTestIds","useTheme","useIsInPiPMode","CallParticipantsGrid","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","VideoRenderer","showLocalParticipant","supportedReactions","landscape","disablePictureInPicture","theme","colors","callParticipantsGrid","useRemoteParticipants","useParticipants","useLocalParticipant","_remoteParticipants","localParticipant","_allParticipants","remoteParticipants","allParticipants","landscapeStyles","flexDirection","isInPiPMode","showFloatingView","length","participants","participantViewProps","createElement","style","styles","container","backgroundColor","sheetPrimary","testID","CALL_PARTICIPANTS_GRID","_extends","create","flex"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsGrid.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAC1D,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SACEC,oBAAoB,IAAIC,2BAA2B,QAE9C,8CAA8C;AACrD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,QAAQ,QAAQ,gCAAgC;AAGzD,SAASC,cAAc,QAAQ,+BAA+B;;AAG9D;AACA;AACA;;AAkBA;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACnCL,oBAAoB,GAAGC,2BAA2B;EAClDK,gBAAgB;EAChBC,kCAAkC;EAClCC,mBAAmB;EACnBC,wBAAwB;EACxBC,eAAe;EACfC,aAAa;EACbC,oBAAoB,GAAG,KAAK;EAC5BC,kBAAkB;EAClBC,SAAS;EACTC;AACyB,CAAC,KAAK;EAC/B,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAqB;EACxC,CAAC,GAAGf,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEgB,qBAAqB;IAAEC,eAAe;IAAEC;EAAoB,CAAC,GACnEvB,iBAAiB,CAAC,CAAC;EACrB,MAAMwB,mBAAmB,GAAGH,qBAAqB,CAAC,CAAC;EACnD,MAAMI,gBAAgB,GAAGF,mBAAmB,CAAC,CAAC;EAC9C,MAAMG,gBAAgB,GAAGJ,eAAe,CAAC,CAAC;EAC1C;EACA,MAAMK,kBAAkB,GAAG1B,iBAAiB,CAACuB,mBAAmB,EAAE,GAAG,CAAC;EACtE,MAAMI,eAAe,GAAG3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