@stream-io/video-react-native-sdk 1.9.30 → 1.10.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 +22 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js +31 -21
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +3 -2
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +10 -6
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControls.js +7 -5
- package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +11 -8
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +10 -6
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +11 -9
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js +5 -3
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js +12 -9
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js +22 -15
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +10 -6
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js +15 -11
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +13 -9
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +18 -13
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +17 -12
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +13 -9
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +17 -12
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +39 -34
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +10 -8
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +22 -18
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +25 -21
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +10 -7
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js +43 -33
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +21 -16
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js +2 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js +2 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +32 -22
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +35 -25
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +12 -8
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js +28 -22
- package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +25 -22
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +31 -26
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +16 -12
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +16 -12
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +19 -14
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js +5 -3
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +19 -16
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +19 -14
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +16 -12
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +12 -9
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +14 -12
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -3
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +16 -12
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +16 -12
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +18 -13
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +10 -7
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +18 -13
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +19 -15
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +18 -15
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +20 -16
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js +4 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +39 -33
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +54 -43
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +30 -27
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +11 -7
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +17 -14
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +23 -20
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js +8 -7
- package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js +13 -11
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
- package/dist/commonjs/components/utility/Avatar.js +18 -15
- package/dist/commonjs/components/utility/Avatar.js.map +1 -1
- package/dist/commonjs/components/utility/ScreenShareOverlay.js +35 -29
- package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/commonjs/contexts/BackgroundFilters.js +5 -3
- package/dist/commonjs/contexts/BackgroundFilters.js.map +1 -1
- package/dist/commonjs/contexts/StreamVideoContext.js +6 -5
- package/dist/commonjs/contexts/StreamVideoContext.js.map +1 -1
- package/dist/commonjs/contexts/ThemeContext.js +5 -3
- package/dist/commonjs/contexts/ThemeContext.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +9 -2
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/icons/Back.js +8 -6
- package/dist/commonjs/icons/Back.js.map +1 -1
- package/dist/commonjs/icons/CameraSwitch.js +8 -6
- package/dist/commonjs/icons/CameraSwitch.js.map +1 -1
- package/dist/commonjs/icons/EndStreamIcon.js +8 -6
- package/dist/commonjs/icons/EndStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/Eye.js +8 -6
- package/dist/commonjs/icons/Eye.js.map +1 -1
- package/dist/commonjs/icons/IconWrapper.js +5 -3
- package/dist/commonjs/icons/IconWrapper.js.map +1 -1
- package/dist/commonjs/icons/LeaveStreamIcon.js +8 -6
- package/dist/commonjs/icons/LeaveStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/Lock.js +8 -6
- package/dist/commonjs/icons/Lock.js.map +1 -1
- package/dist/commonjs/icons/Mic.js +8 -6
- package/dist/commonjs/icons/Mic.js.map +1 -1
- package/dist/commonjs/icons/MicOff.js +8 -6
- package/dist/commonjs/icons/MicOff.js.map +1 -1
- package/dist/commonjs/icons/Phone.js +8 -6
- package/dist/commonjs/icons/Phone.js.map +1 -1
- package/dist/commonjs/icons/PhoneDown.js +8 -6
- package/dist/commonjs/icons/PhoneDown.js.map +1 -1
- package/dist/commonjs/icons/PinVertical.js +8 -6
- package/dist/commonjs/icons/PinVertical.js.map +1 -1
- package/dist/commonjs/icons/Reaction.js +8 -6
- package/dist/commonjs/icons/Reaction.js.map +1 -1
- package/dist/commonjs/icons/ScreenShare.js +8 -6
- package/dist/commonjs/icons/ScreenShare.js.map +1 -1
- package/dist/commonjs/icons/ScreenShareIndicator.js +21 -18
- package/dist/commonjs/icons/ScreenShareIndicator.js.map +1 -1
- package/dist/commonjs/icons/Settings.js +7 -5
- package/dist/commonjs/icons/Settings.js.map +1 -1
- package/dist/commonjs/icons/ShieldBadge.js +8 -6
- package/dist/commonjs/icons/ShieldBadge.js.map +1 -1
- package/dist/commonjs/icons/Spotlight.js +10 -8
- package/dist/commonjs/icons/Spotlight.js.map +1 -1
- package/dist/commonjs/icons/StartStreamIcon.js +8 -6
- package/dist/commonjs/icons/StartStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/StopScreenShare.js +11 -9
- package/dist/commonjs/icons/StopScreenShare.js.map +1 -1
- package/dist/commonjs/icons/ThreeDots.js +20 -18
- package/dist/commonjs/icons/ThreeDots.js.map +1 -1
- package/dist/commonjs/icons/TopViewBackground.js +24 -19
- package/dist/commonjs/icons/TopViewBackground.js.map +1 -1
- package/dist/commonjs/icons/Video.js +8 -6
- package/dist/commonjs/icons/Video.js.map +1 -1
- package/dist/commonjs/icons/VideoSlash.js +8 -6
- package/dist/commonjs/icons/VideoSlash.js.map +1 -1
- package/dist/commonjs/package.json +1 -0
- package/dist/commonjs/providers/StreamCall/index.js +5 -3
- package/dist/commonjs/providers/StreamCall/index.js.map +1 -1
- package/dist/commonjs/providers/StreamVideo.js +10 -5
- package/dist/commonjs/providers/StreamVideo.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +33 -21
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +5 -2
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/module/components/Call/CallContent/index.js +2 -0
- package/dist/module/components/Call/CallContent/index.js.map +1 -1
- package/dist/module/components/Call/CallControls/AcceptCallButton.js +12 -7
- package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControls.js +9 -6
- package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControlsButton.js +13 -8
- package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/HangupCallButton.js +12 -7
- package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/IncomingCallControls.js +13 -10
- package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/LobbyControls.js +7 -3
- package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/OutgoingCallControls.js +14 -10
- package/dist/module/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/ReactionsButton.js +24 -16
- package/dist/module/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/RejectCallButton.js +12 -7
- package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js +17 -12
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +15 -10
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +20 -14
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +19 -13
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +15 -10
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +19 -13
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/index.js +2 -0
- package/dist/module/components/Call/CallControls/index.js.map +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +41 -34
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +12 -9
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +24 -19
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Call/CallLayout/index.js +2 -0
- package/dist/module/components/Call/CallLayout/index.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +27 -21
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/index.js +2 -0
- package/dist/module/components/Call/CallParticipantsList/index.js.map +1 -1
- package/dist/module/components/Call/Lobby/JoinCallButton.js +12 -8
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js +45 -34
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +23 -17
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/module/components/Call/Lobby/index.js +2 -0
- package/dist/module/components/Call/Lobby/index.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js +4 -1
- package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js +4 -1
- package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +34 -23
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +37 -26
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +14 -9
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js +30 -22
- package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/UserInfo.js +27 -22
- package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/index.js +2 -0
- package/dist/module/components/Call/RingingCallContent/index.js.map +1 -1
- package/dist/module/components/Call/index.js +2 -0
- package/dist/module/components/Call/index.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +33 -27
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/index.js +2 -0
- package/dist/module/components/Livestream/HostLivestream/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +18 -13
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +18 -13
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +21 -14
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js +7 -4
- package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +21 -16
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +21 -14
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +18 -13
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +14 -10
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/index.js +2 -0
- package/dist/module/components/Livestream/LivestreamControls/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +16 -13
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/index.js +2 -0
- package/dist/module/components/Livestream/LivestreamLayout/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +7 -3
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/index.js +2 -0
- package/dist/module/components/Livestream/LivestreamPlayer/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +18 -13
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +18 -13
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +20 -14
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +12 -8
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +20 -14
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/index.js +2 -0
- package/dist/module/components/Livestream/LivestreamTopView/index.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +21 -16
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/index.js +2 -0
- package/dist/module/components/Livestream/ViewerLivestream/index.js.map +1 -1
- package/dist/module/components/Livestream/index.js +2 -0
- package/dist/module/components/Livestream/index.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +20 -15
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +22 -16
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js +6 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js +2 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js +41 -34
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +56 -44
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +32 -28
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +13 -8
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +19 -15
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js +25 -21
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +10 -8
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js +15 -11
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/index.js +2 -0
- package/dist/module/components/Participant/ParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/index.js +2 -0
- package/dist/module/components/Participant/index.js.map +1 -1
- package/dist/module/components/index.js +2 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/utility/Avatar.js +20 -16
- package/dist/module/components/utility/Avatar.js.map +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js +37 -30
- package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/module/components/utility/index.js +2 -0
- package/dist/module/components/utility/index.js.map +1 -1
- package/dist/module/constants/TestIds.js +2 -0
- package/dist/module/constants/TestIds.js.map +1 -1
- package/dist/module/constants/index.js +2 -0
- package/dist/module/constants/index.js.map +1 -1
- package/dist/module/contexts/BackgroundFilters.js +7 -3
- package/dist/module/contexts/BackgroundFilters.js.map +1 -1
- package/dist/module/contexts/StreamVideoContext.js +7 -3
- package/dist/module/contexts/StreamVideoContext.js.map +1 -1
- package/dist/module/contexts/ThemeContext.js +7 -3
- package/dist/module/contexts/ThemeContext.js.map +1 -1
- package/dist/module/contexts/index.js +2 -0
- package/dist/module/contexts/index.js.map +1 -1
- package/dist/module/hooks/index.js +2 -0
- package/dist/module/hooks/index.js.map +1 -1
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +2 -0
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/module/hooks/push/index.js +2 -0
- package/dist/module/hooks/push/index.js.map +1 -1
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +2 -0
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js +2 -0
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +2 -0
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
- package/dist/module/hooks/push/useIosInitRemoteNotifications.js +2 -0
- package/dist/module/hooks/push/useIosInitRemoteNotifications.js.map +1 -1
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +11 -2
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js +2 -0
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +2 -0
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +2 -0
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/hooks/useApplyDefaultMediaStreamSettings.js +2 -0
- package/dist/module/hooks/useApplyDefaultMediaStreamSettings.js.map +1 -1
- package/dist/module/hooks/useAutoEnterPiPEffect.js +2 -0
- package/dist/module/hooks/useAutoEnterPiPEffect.js.map +1 -1
- package/dist/module/hooks/useIsInPiPMode.js +2 -0
- package/dist/module/hooks/useIsInPiPMode.js.map +1 -1
- package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js +2 -0
- package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js.map +1 -1
- package/dist/module/hooks/usePaginatedLayoutSortPreset.js +2 -0
- package/dist/module/hooks/usePaginatedLayoutSortPreset.js.map +1 -1
- package/dist/module/hooks/usePermissionNotification.js +2 -0
- package/dist/module/hooks/usePermissionNotification.js.map +1 -1
- package/dist/module/hooks/usePermissionRequest.js +2 -0
- package/dist/module/hooks/usePermissionRequest.js.map +1 -1
- package/dist/module/hooks/useScreenShareButton.js +2 -0
- package/dist/module/hooks/useScreenShareButton.js.map +1 -1
- package/dist/module/hooks/useTrackDimensions.js +2 -0
- package/dist/module/hooks/useTrackDimensions.js.map +1 -1
- package/dist/module/icons/Back.js +10 -6
- package/dist/module/icons/Back.js.map +1 -1
- package/dist/module/icons/CameraSwitch.js +10 -6
- package/dist/module/icons/CameraSwitch.js.map +1 -1
- package/dist/module/icons/EndStreamIcon.js +10 -6
- package/dist/module/icons/EndStreamIcon.js.map +1 -1
- package/dist/module/icons/Eye.js +10 -6
- package/dist/module/icons/Eye.js.map +1 -1
- package/dist/module/icons/IconWrapper.js +7 -3
- package/dist/module/icons/IconWrapper.js.map +1 -1
- package/dist/module/icons/LeaveStreamIcon.js +10 -6
- package/dist/module/icons/LeaveStreamIcon.js.map +1 -1
- package/dist/module/icons/Lock.js +10 -6
- package/dist/module/icons/Lock.js.map +1 -1
- package/dist/module/icons/Mic.js +10 -6
- package/dist/module/icons/Mic.js.map +1 -1
- package/dist/module/icons/MicOff.js +10 -6
- package/dist/module/icons/MicOff.js.map +1 -1
- package/dist/module/icons/Phone.js +10 -6
- package/dist/module/icons/Phone.js.map +1 -1
- package/dist/module/icons/PhoneDown.js +10 -6
- package/dist/module/icons/PhoneDown.js.map +1 -1
- package/dist/module/icons/PinVertical.js +10 -6
- package/dist/module/icons/PinVertical.js.map +1 -1
- package/dist/module/icons/Reaction.js +10 -6
- package/dist/module/icons/Reaction.js.map +1 -1
- package/dist/module/icons/ScreenShare.js +10 -6
- package/dist/module/icons/ScreenShare.js.map +1 -1
- package/dist/module/icons/ScreenShareIndicator.js +23 -18
- package/dist/module/icons/ScreenShareIndicator.js.map +1 -1
- package/dist/module/icons/Settings.js +9 -5
- package/dist/module/icons/Settings.js.map +1 -1
- package/dist/module/icons/ShieldBadge.js +10 -6
- package/dist/module/icons/ShieldBadge.js.map +1 -1
- package/dist/module/icons/Spotlight.js +12 -8
- package/dist/module/icons/Spotlight.js.map +1 -1
- package/dist/module/icons/StartStreamIcon.js +10 -6
- package/dist/module/icons/StartStreamIcon.js.map +1 -1
- package/dist/module/icons/StopScreenShare.js +13 -9
- package/dist/module/icons/StopScreenShare.js.map +1 -1
- package/dist/module/icons/ThreeDots.js +22 -18
- package/dist/module/icons/ThreeDots.js.map +1 -1
- package/dist/module/icons/TopViewBackground.js +26 -19
- package/dist/module/icons/TopViewBackground.js.map +1 -1
- package/dist/module/icons/Video.js +10 -6
- package/dist/module/icons/Video.js.map +1 -1
- package/dist/module/icons/VideoSlash.js +10 -6
- package/dist/module/icons/VideoSlash.js.map +1 -1
- package/dist/module/icons/index.js +2 -0
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/index.js +2 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/package.json +1 -0
- package/dist/module/providers/StreamCall/AppStateListener.js +2 -0
- package/dist/module/providers/StreamCall/AppStateListener.js.map +1 -1
- package/dist/module/providers/StreamCall/DeviceStats.js +2 -0
- package/dist/module/providers/StreamCall/DeviceStats.js.map +1 -1
- package/dist/module/providers/StreamCall/index.js +7 -4
- package/dist/module/providers/StreamCall/index.js.map +1 -1
- package/dist/module/providers/StreamVideo.js +12 -5
- package/dist/module/providers/StreamVideo.js.map +1 -1
- package/dist/module/theme/colors.js +2 -0
- package/dist/module/theme/colors.js.map +1 -1
- package/dist/module/theme/constants.js +2 -0
- package/dist/module/theme/constants.js.map +1 -1
- package/dist/module/theme/index.js +2 -0
- package/dist/module/theme/index.js.map +1 -1
- package/dist/module/theme/theme.js +2 -0
- package/dist/module/theme/theme.js.map +1 -1
- package/dist/module/theme/types.js +2 -0
- package/dist/module/translations/index.js +2 -0
- package/dist/module/translations/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +2 -0
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/types.js +2 -0
- package/dist/module/utils/enterPiPAndroid.js +2 -0
- package/dist/module/utils/enterPiPAndroid.js.map +1 -1
- package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +2 -0
- package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
- package/dist/module/utils/hooks/index.js +2 -0
- package/dist/module/utils/hooks/index.js.map +1 -1
- package/dist/module/utils/hooks/useDebouncedValue.js +2 -0
- package/dist/module/utils/hooks/useDebouncedValue.js.map +1 -1
- package/dist/module/utils/hooks/usePrevious.js +2 -0
- package/dist/module/utils/hooks/usePrevious.js.map +1 -1
- package/dist/module/utils/index.js +2 -0
- package/dist/module/utils/index.js.map +1 -1
- package/dist/module/utils/internal/newNotificationCallbacks.js +2 -0
- package/dist/module/utils/internal/newNotificationCallbacks.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/gestureHandler.js +2 -0
- package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/index.js +2 -0
- package/dist/module/utils/internal/optionallibs/index.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/reanimated.js +2 -0
- package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -1
- package/dist/module/utils/internal/pushLogoutCallback.js +2 -0
- package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/module/utils/internal/rxSubjects.js +2 -0
- package/dist/module/utils/internal/rxSubjects.js.map +1 -1
- package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js +2 -0
- package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js.map +1 -1
- package/dist/module/utils/push/android.js +2 -0
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/index.js +2 -0
- package/dist/module/utils/push/index.js.map +1 -1
- package/dist/module/utils/push/internal/rxSubjects.js +2 -0
- package/dist/module/utils/push/internal/rxSubjects.js.map +1 -1
- package/dist/module/utils/push/internal/utils.js +2 -0
- package/dist/module/utils/push/internal/utils.js.map +1 -1
- package/dist/module/utils/push/ios.js +2 -0
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/utils/push/libs/callkeep.js +2 -0
- package/dist/module/utils/push/libs/callkeep.js.map +1 -1
- package/dist/module/utils/push/libs/expoNotifications.js +2 -0
- package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/index.js +2 -0
- package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/lib.js +2 -0
- package/dist/module/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
- package/dist/module/utils/push/libs/index.js +2 -0
- package/dist/module/utils/push/libs/index.js.map +1 -1
- package/dist/module/utils/push/libs/iosPushNotification.js +2 -0
- package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/module/utils/push/libs/notifee/index.js +2 -0
- package/dist/module/utils/push/libs/notifee/index.js.map +1 -1
- package/dist/module/utils/push/libs/notifee/lib.js +2 -0
- package/dist/module/utils/push/libs/notifee/lib.js.map +1 -1
- package/dist/module/utils/push/libs/voipPushNotification.js +2 -0
- package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -1
- package/dist/module/utils/push/utils.js +2 -0
- package/dist/module/utils/push/utils.js.map +1 -1
- package/dist/module/utils/setClientDetails.js +2 -0
- package/dist/module/utils/setClientDetails.js.map +1 -1
- package/dist/module/version.js +3 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/package.json +8 -8
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +23 -2
- package/src/version.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useMemo","StyleSheet","View","InCallManager","useTheme","HostLivestreamTopView","DefaultHostLivestreamTopView","HostLivestreamControls","DefaultHostLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","Z_INDEX","FloatingParticipantView","DefaultFloatingParticipantView","useCallStateHooks","hasVideo","ScreenShareOverlay","DefaultScreenShaerOverlay","HostLivestream","LiveIndicator","FollowerCount","DurationBadge","HostStartStreamButton","LivestreamMediaControls","onEndStreamHandler","onStartStreamHandler","hls","disableStopPublishedStreamsOnEndStream","styles","useStyles","theme","colors","hostLivestream","useParticipants","useHasOngoingScreenShare","currentSpeaker","hasOngoingScreenShare","floatingParticipant","start","media","stop","topViewHeight","setTopViewHeight","useState","controlsHeight","setControlsHeight","topViewProps","onLayout","event","nativeEvent","layout","height","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","StyleSheet","View","InCallManager","useTheme","HostLivestreamTopView","DefaultHostLivestreamTopView","HostLivestreamControls","DefaultHostLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","Z_INDEX","FloatingParticipantView","DefaultFloatingParticipantView","useCallStateHooks","hasVideo","ScreenShareOverlay","DefaultScreenShaerOverlay","jsx","_jsx","jsxs","_jsxs","HostLivestream","LiveIndicator","FollowerCount","DurationBadge","HostStartStreamButton","LivestreamMediaControls","onEndStreamHandler","onStartStreamHandler","hls","disableStopPublishedStreamsOnEndStream","styles","useStyles","theme","colors","hostLivestream","useParticipants","useHasOngoingScreenShare","currentSpeaker","hasOngoingScreenShare","floatingParticipant","start","media","stop","topViewHeight","setTopViewHeight","useState","controlsHeight","setControlsHeight","topViewProps","onLayout","event","nativeEvent","layout","height","style","container","backgroundColor","sheetTertiary","children","topViewContainer","participant","draggableContainerStyle","absoluteFill","top","bottom","create","flex","paddingBottom","variants","insets","paddingLeft","left","paddingRight","right","paddingTop","sheetPrimary","position","zIndex","IN_FRONT","controlsViewContainer"],"sourceRoot":"../../../../../src","sources":["components/Livestream/HostLivestream/HostLivestream.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACjD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,aAAa,MAAM,6BAA6B;AAEvD,SAASC,QAAQ,QAAQ,mBAAmB;AA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AE,CAAC;MACTO,IAAI,EAAE,CAAC;MACPE,KAAK,EAAE,CAAC;MACRI,MAAM,EAAEpE,OAAO,CAACqE;IAClB;EACF,CAAC,CAAC,EACJ,CAAC9C,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Livestream/HostLivestream/index.ts"],"mappings":"AAAA,cAAc,kBAAkB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Livestream/HostLivestream/index.ts"],"mappings":";;AAAA,cAAc,kBAAkB","ignoreList":[]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { StyleSheet, View } from 'react-native';
|
|
3
5
|
import { HostStartStreamButton as DefaultHostStartStreamButton } from './HostStartStreamButton';
|
|
@@ -8,7 +10,7 @@ import { Z_INDEX } from '../../../constants';
|
|
|
8
10
|
/**
|
|
9
11
|
* Props for the HostLivestreamControls component.
|
|
10
12
|
*/
|
|
11
|
-
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
14
|
/**
|
|
13
15
|
* The HostLivestreamControls component displays the call controls for the live stream at host's end.
|
|
14
16
|
*/
|
|
@@ -27,21 +29,24 @@ export const HostLivestreamControls = ({
|
|
|
27
29
|
hostLivestreamControls
|
|
28
30
|
}
|
|
29
31
|
} = useTheme();
|
|
30
|
-
return /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
31
33
|
style: [styles.container, {
|
|
32
34
|
backgroundColor: colors.sheetOverlay
|
|
33
35
|
}, hostLivestreamControls.container],
|
|
34
|
-
onLayout: onLayout
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
onLayout: onLayout,
|
|
37
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
38
|
+
style: [styles.leftElement, hostLivestreamControls.leftElement],
|
|
39
|
+
children: HostStartStreamButton && /*#__PURE__*/_jsx(HostStartStreamButton, {
|
|
40
|
+
onEndStreamHandler: onEndStreamHandler,
|
|
41
|
+
onStartStreamHandler: onStartStreamHandler,
|
|
42
|
+
hls: hls,
|
|
43
|
+
disableStopPublishedStreamsOnEndStream: disableStopPublishedStreamsOnEndStream
|
|
44
|
+
})
|
|
45
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
46
|
+
style: [styles.rightElement, hostLivestreamControls.rightElement],
|
|
47
|
+
children: LivestreamMediaControls && /*#__PURE__*/_jsx(LivestreamMediaControls, {})
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
45
50
|
};
|
|
46
51
|
const styles = StyleSheet.create({
|
|
47
52
|
container: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","HostStartStreamButton","DefaultHostStartStreamButton","LivestreamMediaControls","DefaultLivestreamMediaControls","useTheme","Z_INDEX","HostLivestreamControls","onEndStreamHandler","onStartStreamHandler","hls","disableStopPublishedStreamsOnEndStream","onLayout","theme","colors","hostLivestreamControls","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","HostStartStreamButton","DefaultHostStartStreamButton","LivestreamMediaControls","DefaultLivestreamMediaControls","useTheme","Z_INDEX","jsx","_jsx","jsxs","_jsxs","HostLivestreamControls","onEndStreamHandler","onStartStreamHandler","hls","disableStopPublishedStreamsOnEndStream","onLayout","theme","colors","hostLivestreamControls","style","styles","container","backgroundColor","sheetOverlay","children","leftElement","rightElement","create","position","bottom","flexDirection","alignItems","paddingVertical","paddingHorizontal","zIndex","IN_FRONT","flex"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/HostLivestreamControls.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,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,iBAAIK,IAAA,CAACL,uBAAuB,IAAE;IAAC,CACnD,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAED,MAAMkB,MAAM,GAAGtB,UAAU,CAAC6B,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,CAAC;IACTC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,CAAC;IACpBC,MAAM,EAAE7B,OAAO,CAAC8B;EAClB,CAAC;EACDV,WAAW,EAAE;IACXW,IAAI,EAAE,CAAC;IACPL,UAAU,EAAE;EACd,CAAC;EACDL,YAAY,EAAE;IACZU,IAAI,EAAE,CAAC;IACPL,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { useCall, useCallStateHooks, useI18n } from '@stream-io/video-react-bindings';
|
|
2
4
|
import React, { useState } from 'react';
|
|
3
5
|
import { ActivityIndicator, Pressable, StyleSheet, Text, View } from 'react-native';
|
|
@@ -8,7 +10,7 @@ import { SfuModels, getLogger } from '@stream-io/video-client';
|
|
|
8
10
|
/**
|
|
9
11
|
* Props for the HostStartStreamButton component.
|
|
10
12
|
*/
|
|
11
|
-
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
14
|
/**
|
|
13
15
|
* The HostStartStreamButton component displays and controls the start and end of the host's live stream.
|
|
14
16
|
*/
|
|
@@ -77,22 +79,25 @@ export const HostStartStreamButton = ({
|
|
|
77
79
|
logger('error', 'Error stopping livestream', error);
|
|
78
80
|
}
|
|
79
81
|
};
|
|
80
|
-
return /*#__PURE__*/
|
|
82
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
81
83
|
disabled: isAwaitingResponse,
|
|
82
84
|
style: [styles.container, {
|
|
83
85
|
backgroundColor: isAwaitingResponse ? colors.sheetTertiary : liveOrBroadcasting ? colors.buttonWarning : colors.buttonPrimary
|
|
84
86
|
}, hostStartStreamButton.container],
|
|
85
|
-
onPress: liveOrBroadcasting ? onEndStreamButtonPress : onStartStreamButtonPress
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
onPress: liveOrBroadcasting ? onEndStreamButtonPress : onStartStreamButtonPress,
|
|
88
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
89
|
+
style: [styles.icon, {
|
|
90
|
+
height: iconSizes.xs,
|
|
91
|
+
width: iconSizes.xs
|
|
92
|
+
}, hostStartStreamButton.icon],
|
|
93
|
+
children: isAwaitingResponse ? /*#__PURE__*/_jsx(ActivityIndicator, {}) : liveOrBroadcasting ? /*#__PURE__*/_jsx(EndBroadcastIcon, {}) : /*#__PURE__*/_jsx(StartStreamIcon, {})
|
|
94
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
95
|
+
style: [styles.text, typefaces.subtitleBold, {
|
|
96
|
+
color: colors.textPrimary
|
|
97
|
+
}, hostStartStreamButton.text],
|
|
98
|
+
children: isAwaitingResponse ? t('Loading...') : liveOrBroadcasting ? t('Stop Livestream') : t('Start Livestream')
|
|
99
|
+
})]
|
|
100
|
+
});
|
|
96
101
|
};
|
|
97
102
|
const styles = StyleSheet.create({
|
|
98
103
|
container: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCall","useCallStateHooks","useI18n","React","useState","ActivityIndicator","Pressable","StyleSheet","Text","View","useTheme","EndBroadcastIcon","StartStreamIcon","SfuModels","getLogger","HostStartStreamButton","onEndStreamHandler","onStartStreamHandler","hls","disableStopPublishedStreamsOnEndStream","isAwaitingResponse","setIsAwaitingResponse","useIsCallLive","useIsCallHLSBroadcastingInProgress","theme","colors","variants","iconSizes","typefaces","hostStartStreamButton","call","isCallLive","isCallBroadcasting","t","liveOrBroadcasting","onStartStreamButtonPress","goLive","startHLS","error","logger","onEndStreamButtonPress","stopPublish","TrackType","VIDEO","SCREEN_SHARE","stopHLS","stopLive","
|
|
1
|
+
{"version":3,"names":["useCall","useCallStateHooks","useI18n","React","useState","ActivityIndicator","Pressable","StyleSheet","Text","View","useTheme","EndBroadcastIcon","StartStreamIcon","SfuModels","getLogger","jsx","_jsx","jsxs","_jsxs","HostStartStreamButton","onEndStreamHandler","onStartStreamHandler","hls","disableStopPublishedStreamsOnEndStream","isAwaitingResponse","setIsAwaitingResponse","useIsCallLive","useIsCallHLSBroadcastingInProgress","theme","colors","variants","iconSizes","typefaces","hostStartStreamButton","call","isCallLive","isCallBroadcasting","t","liveOrBroadcasting","onStartStreamButtonPress","goLive","startHLS","error","logger","onEndStreamButtonPress","stopPublish","TrackType","VIDEO","SCREEN_SHARE","stopHLS","stopLive","disabled","style","styles","container","backgroundColor","sheetTertiary","buttonWarning","buttonPrimary","onPress","children","icon","height","xs","width","text","subtitleBold","color","textPrimary","create","flexDirection","alignItems","padding","borderRadius","marginLeft","includeFontPadding"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/HostStartStreamButton.tsx"],"mappings":";;AAAA,SACEA,OAAO,EACPC,iBAAiB,EACjBC,OAAO,QACF,iCAAiC;AACxC,OAAOC,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SACEC,iBAAiB,EACjBC,SAAS,EACTC,UAAU,EACVC,IAAI,EACJC,IAAI,QACC,cAAc;AACrB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,gBAAgB,EAAEC,eAAe,QAAQ,gBAAgB;AAClE,SAASC,SAAS,EAAEC,SAAS,QAAQ,yBAAyB;;AAE9D;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAwBA;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,GAAGA,CAAC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BAAkB,gBACpBtB,IAAA,CAACL,gBAAgB,IAAE,CAAC,gBAEpBK,IAAA,CAACJ,eAAe,IAAE;IACnB,CACG,CAAC,eACPI,IAAA,CAACR,IAAI;MACH4C,KAAK,EAAE,CACLC,MAAM,CAACY,IAAI,EACXjC,SAAS,CAACkC,YAAY,EACtB;QAAEC,KAAK,EAAEtC,MAAM,CAACuC;MAAY,CAAC,EAC7BnC,qBAAqB,CAACgC,IAAI,CAC1B;MAAAL,QAAA,EAEDpC,kBAAkB,GACfa,CAAC,CAAC,YAAY,CAAC,GACfC,kBAAkB,GAChBD,CAAC,CAAC,iBAAiB,CAAC,GACpBA,CAAC,CAAC,kBAAkB;IAAC,CACvB,CAAC;EAAA,CACE,CAAC;AAEhB,CAAC;AAED,MAAMgB,MAAM,GAAG9C,UAAU,CAAC8D,MAAM,CAAC;EAC/Bf,SAAS,EAAE;IACTgB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE;EAChB,CAAC;EACDZ,IAAI,EAAE,CAAC,CAAC;EACRI,IAAI,EAAE;IACJS,UAAU,EAAE,CAAC;IACbC,kBAAkB,EAAE;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { useTheme } from '../../../contexts';
|
|
@@ -7,6 +9,7 @@ import { IconWrapper, Mic, MicOff } from '../../../icons';
|
|
|
7
9
|
/**
|
|
8
10
|
* The LivestreamAudioControlButton controls the audio stream publish/unpublish while in the livestream for the host.
|
|
9
11
|
*/
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
13
|
export const LivestreamAudioControlButton = () => {
|
|
11
14
|
const {
|
|
12
15
|
useMicrophoneState
|
|
@@ -28,25 +31,29 @@ export const LivestreamAudioControlButton = () => {
|
|
|
28
31
|
const onPress = async () => {
|
|
29
32
|
await microphone.toggle();
|
|
30
33
|
};
|
|
31
|
-
return /*#__PURE__*/
|
|
34
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
32
35
|
onPress: onPress,
|
|
33
36
|
style: [styles.container, {
|
|
34
37
|
backgroundColor: colors.buttonSecondary,
|
|
35
38
|
height: buttonSizes.xs,
|
|
36
39
|
width: buttonSizes.xs
|
|
37
|
-
}, livestreamAudioControlButton.container]
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
}, livestreamAudioControlButton.container],
|
|
41
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
42
|
+
style: [styles.icon, {
|
|
43
|
+
height: iconSizes.sm,
|
|
44
|
+
width: iconSizes.sm
|
|
45
|
+
}, livestreamAudioControlButton.icon],
|
|
46
|
+
children: /*#__PURE__*/_jsx(IconWrapper, {
|
|
47
|
+
children: !optimisticIsMute ? /*#__PURE__*/_jsx(Mic, {
|
|
48
|
+
color: colors.iconPrimary,
|
|
49
|
+
size: iconSizes.md
|
|
50
|
+
}) : /*#__PURE__*/_jsx(MicOff, {
|
|
51
|
+
color: colors.iconPrimary,
|
|
52
|
+
size: iconSizes.md
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
});
|
|
50
57
|
};
|
|
51
58
|
const styles = StyleSheet.create({
|
|
52
59
|
container: {
|
package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallStateHooks","React","useTheme","Pressable","StyleSheet","View","IconWrapper","Mic","MicOff","LivestreamAudioControlButton","useMicrophoneState","optimisticIsMute","microphone","theme","colors","variants","iconSizes","buttonSizes","livestreamAudioControlButton","onPress","toggle","
|
|
1
|
+
{"version":3,"names":["useCallStateHooks","React","useTheme","Pressable","StyleSheet","View","IconWrapper","Mic","MicOff","jsx","_jsx","LivestreamAudioControlButton","useMicrophoneState","optimisticIsMute","microphone","theme","colors","variants","iconSizes","buttonSizes","livestreamAudioControlButton","onPress","toggle","style","styles","container","backgroundColor","buttonSecondary","height","xs","width","children","icon","sm","color","iconPrimary","size","md","create","justifyContent","alignItems","marginHorizontal","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/LivestreamAudioControlButton.tsx"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,iCAAiC;AACnE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,WAAW,EAAEC,GAAG,EAAEC,MAAM,QAAQ,gBAAgB;;AAEzD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAGA,OAAO,MAAMC,4BAA4B,GAAGA,CAAA,KAAM;EAChD,MAAM;IAAEC;EAAmB,CAAC,GAAGZ,iBAAiB,CAAC,CAAC;EAClD,MAAM;IAAEa,gBAAgB;IAAEC;EAAW,CAAC,GAAGF,kBAAkB,CAAC,CAAC;EAC7D,MAAM;IACJG,KAAK,EAAE;MACLC,MAAM;MACNC,QAAQ,EAAE;QAAEC,SAAS;QAAEC;MAAY,CAAC;MACpCC;IACF;EACF,CAAC,GAAGlB,QAAQ,CAAC,CAAC;EAEd,MAAMmB,OAAO,GAAG,MAAAA,CAAA,KAAY;IAC1B,MAAMP,UAAU,CAACQ,MAAM,CAAC,CAAC;EAC3B,CAAC;EAED,oBACEZ,IAAA,CAACP,SAAS;IACRkB,OAAO,EAAEA,OAAQ;IACjBE,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MACEC,eAAe,EAAEV,MAAM,CAACW,eAAe;MACvCC,MAAM,EAAET,WAAW,CAACU,EAAE;MACtBC,KAAK,EAAEX,WAAW,CAACU;IACrB,CAAC,EACDT,4BAA4B,CAACK,SAAS,CACtC;IAAAM,QAAA,eAEFrB,IAAA,CAACL,IAAI;MACHkB,KAAK,EAAE,CACLC,MAAM,CAACQ,IAAI,EACX;QACEJ,MAAM,EAAEV,SAAS,CAACe,EAAE;QACpBH,KAAK,EAAEZ,SAAS,CAACe;MACnB,CAAC,EACDb,4BAA4B,CAACY,IAAI,CACjC;MAAAD,QAAA,eAEFrB,IAAA,CAACJ,WAAW;QAAAyB,QAAA,EACT,CAAClB,gBAAgB,gBAChBH,IAAA,CAACH,GAAG;UAAC2B,KAAK,EAAElB,MAAM,CAACmB,WAAY;UAACC,IAAI,EAAElB,SAAS,CAACmB;QAAG,CAAE,CAAC,gBAEtD3B,IAAA,CAACF,MAAM;UAAC0B,KAAK,EAAElB,MAAM,CAACmB,WAAY;UAACC,IAAI,EAAElB,SAAS,CAACmB;QAAG,CAAE;MACzD,CACU;IAAC,CACV;EAAC,CACE,CAAC;AAEhB,CAAC;AAED,MAAMb,MAAM,GAAGpB,UAAU,CAACkC,MAAM,CAAC;EAC/Bb,SAAS,EAAE;IACTc,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,gBAAgB,EAAE,CAAC;IACnBC,YAAY,EAAE;EAChB,CAAC;EACDV,IAAI,EAAE,CAAC;AACT,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { StyleSheet, View } from 'react-native';
|
|
3
5
|
import { useTheme } from '../../../contexts';
|
|
@@ -7,7 +9,7 @@ import { LivestreamVideoControlButton } from './LivestreamVideoControlButton';
|
|
|
7
9
|
/**
|
|
8
10
|
* Props for the LivestreamMediaControls component.
|
|
9
11
|
*/
|
|
10
|
-
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
13
|
/**
|
|
12
14
|
* The LivestreamMediaControls component controls the media publish/unpublish for the host's live stream.
|
|
13
15
|
*/
|
|
@@ -17,9 +19,10 @@ export const LivestreamMediaControls = ({}) => {
|
|
|
17
19
|
livestreamMediaControls
|
|
18
20
|
}
|
|
19
21
|
} = useTheme();
|
|
20
|
-
return /*#__PURE__*/
|
|
21
|
-
style: [styles.container, livestreamMediaControls.container]
|
|
22
|
-
|
|
22
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
23
|
+
style: [styles.container, livestreamMediaControls.container],
|
|
24
|
+
children: [/*#__PURE__*/_jsx(LivestreamAudioControlButton, {}), /*#__PURE__*/_jsx(LivestreamVideoControlButton, {})]
|
|
25
|
+
});
|
|
23
26
|
};
|
|
24
27
|
const styles = StyleSheet.create({
|
|
25
28
|
container: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","useTheme","LivestreamAudioControlButton","LivestreamVideoControlButton","LivestreamMediaControls","theme","livestreamMediaControls","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useTheme","LivestreamAudioControlButton","LivestreamVideoControlButton","jsx","_jsx","jsxs","_jsxs","LivestreamMediaControls","theme","livestreamMediaControls","style","styles","container","children","create","flexDirection","alignItems"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/LivestreamMediaControls.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,4BAA4B,QAAQ,gCAAgC;AAC7E,SAASC,4BAA4B,QAAQ,gCAAgC;;AAE7E;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAGA,CAAC,CAA+B,CAAC,KAAK;EAC3E,MAAM;IACJC,KAAK,EAAE;MAAEC;IAAwB;EACnC,CAAC,GAAGT,QAAQ,CAAC,CAAC;EACd,oBACEM,KAAA,CAACP,IAAI;IAACW,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEH,uBAAuB,CAACG,SAAS,CAAE;IAAAC,QAAA,gBACjET,IAAA,CAACH,4BAA4B,IAAE,CAAC,eAChCG,IAAA,CAACF,4BAA4B,IAAE,CAAC;EAAA,CAC5B,CAAC;AAEX,CAAC;AAED,MAAMS,MAAM,GAAGb,UAAU,CAACgB,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
3
5
|
import { Platform, Pressable, StyleSheet, View } from 'react-native';
|
|
@@ -5,6 +7,7 @@ import { ScreenShare } from '../../../icons/ScreenShare';
|
|
|
5
7
|
import { StopScreenShare } from '../../../icons/StopScreenShare';
|
|
6
8
|
import { ScreenCapturePickerView } from '@stream-io/react-native-webrtc';
|
|
7
9
|
import { useScreenShareButton } from '../../../hooks/useScreenShareButton';
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
11
|
/**
|
|
9
12
|
* The LivestreamVideoControlButton controls the screenshare stream publish/unpublish while in the livestream for the host.
|
|
10
13
|
*/
|
|
@@ -24,27 +27,29 @@ export const LivestreamScreenShareToggleButton = () => {
|
|
|
24
27
|
onPress,
|
|
25
28
|
hasPublishedScreenShare
|
|
26
29
|
} = useScreenShareButton(screenCapturePickerViewiOSRef);
|
|
27
|
-
return /*#__PURE__*/
|
|
30
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
28
31
|
onPress: onPress,
|
|
29
32
|
style: [styles.container, {
|
|
30
33
|
backgroundColor: hasPublishedScreenShare ? colors.buttonWarning : colors.buttonSecondary,
|
|
31
34
|
height: buttonSizes.xs,
|
|
32
35
|
width: buttonSizes.xs
|
|
33
|
-
}, livestreamScreenShareToggleButton.container]
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
}, livestreamScreenShareToggleButton.container],
|
|
37
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
38
|
+
style: [styles.icon, {
|
|
39
|
+
height: iconSizes.sm,
|
|
40
|
+
width: iconSizes.sm
|
|
41
|
+
}, livestreamScreenShareToggleButton.icon],
|
|
42
|
+
children: hasPublishedScreenShare ? /*#__PURE__*/_jsx(StopScreenShare, {
|
|
43
|
+
size: iconSizes.sm,
|
|
44
|
+
color: colors.iconPrimary
|
|
45
|
+
}) : /*#__PURE__*/_jsx(ScreenShare, {
|
|
46
|
+
size: iconSizes.sm,
|
|
47
|
+
color: colors.iconPrimary
|
|
48
|
+
})
|
|
49
|
+
}), Platform.OS === 'ios' && /*#__PURE__*/_jsx(ScreenCapturePickerView, {
|
|
50
|
+
ref: screenCapturePickerViewiOSRef
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
48
53
|
};
|
|
49
54
|
const styles = StyleSheet.create({
|
|
50
55
|
container: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useTheme","Platform","Pressable","StyleSheet","View","ScreenShare","StopScreenShare","ScreenCapturePickerView","useScreenShareButton","LivestreamScreenShareToggleButton","theme","colors","variants","iconSizes","buttonSizes","livestreamScreenShareToggleButton","screenCapturePickerViewiOSRef","useRef","onPress","hasPublishedScreenShare","
|
|
1
|
+
{"version":3,"names":["React","useTheme","Platform","Pressable","StyleSheet","View","ScreenShare","StopScreenShare","ScreenCapturePickerView","useScreenShareButton","jsx","_jsx","jsxs","_jsxs","LivestreamScreenShareToggleButton","theme","colors","variants","iconSizes","buttonSizes","livestreamScreenShareToggleButton","screenCapturePickerViewiOSRef","useRef","onPress","hasPublishedScreenShare","style","styles","container","backgroundColor","buttonWarning","buttonSecondary","height","xs","width","children","icon","sm","size","color","iconPrimary","OS","ref","create","justifyContent","alignItems","marginHorizontal","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,QAAQ,EAAEC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACpE,SAASC,WAAW,QAAQ,4BAA4B;AACxD,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,uBAAuB,QAAQ,gCAAgC;AACxE,SAASC,oBAAoB,QAAQ,qCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAI3E;AACA;AACA;AACA,OAAO,MAAMC,iCAAiC,GAAGA,CAAA,KAAM;EACrD,MAAM;IACJC,KAAK,EAAE;MACLC,MAAM;MACNC,QAAQ,EAAE;QAAEC,SAAS;QAAEC;MAAY,CAAC;MACpCC;IACF;EACF,CAAC,GAAGnB,QAAQ,CAAC,CAAC;EAEd,MAAMoB,6BAA6B,GAAGrB,KAAK,CAACsB,MAAM,CAAC,IAAI,CAAC;EAExD,MAAM;IAAEC,OAAO;IAAEC;EAAwB,CAAC,GAAGf,oBAAoB,CAC/DY,6BACF,CAAC;EAED,oBACER,KAAA,CAACV,SAAS;IACRoB,OAAO,EAAEA,OAAQ;IACjBE,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MACEC,eAAe,EAAEJ,uBAAuB,GACpCR,MAAM,CAACa,aAAa,GACpBb,MAAM,CAACc,eAAe;MAC1BC,MAAM,EAAEZ,WAAW,CAACa,EAAE;MACtBC,KAAK,EAAEd,WAAW,CAACa;IACrB,CAAC,EACDZ,iCAAiC,CAACO,SAAS,CAC3C;IAAAO,QAAA,gBAEFvB,IAAA,CAACN,IAAI;MACHoB,KAAK,EAAE,CACLC,MAAM,CAACS,IAAI,EACX;QACEJ,MAAM,EAAEb,SAAS,CAACkB,EAAE;QACpBH,KAAK,EAAEf,SAAS,CAACkB;MACnB,CAAC,EACDhB,iCAAiC,CAACe,IAAI,CACtC;MAAAD,QAAA,EAEDV,uBAAuB,gBACtBb,IAAA,CAACJ,eAAe;QAAC8B,IAAI,EAAEnB,SAAS,CAACkB,EAAG;QAACE,KAAK,EAAEtB,MAAM,CAACuB;MAAY,CAAE,CAAC,gBAElE5B,IAAA,CAACL,WAAW;QAAC+B,IAAI,EAAEnB,SAAS,CAACkB,EAAG;QAACE,KAAK,EAAEtB,MAAM,CAACuB;MAAY,CAAE;IAC9D,CACG,CAAC,EACNrC,QAAQ,CAACsC,EAAE,KAAK,KAAK,iBACpB7B,IAAA,CAACH,uBAAuB;MAACiC,GAAG,EAAEpB;IAA8B,CAAE,CAC/D;EAAA,CACQ,CAAC;AAEhB,CAAC;AAED,MAAMK,MAAM,GAAGtB,UAAU,CAACsC,MAAM,CAAC;EAC/Bf,SAAS,EAAE;IACTgB,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,gBAAgB,EAAE,CAAC;IACnBC,YAAY,EAAE;EAChB,CAAC;EACDX,IAAI,EAAE,CAAC;AACT,CAAC,CAAC","ignoreList":[]}
|
package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { useTheme } from '../../../contexts';
|
|
@@ -7,6 +9,7 @@ import { IconWrapper, Video, VideoSlash } from '../../../icons';
|
|
|
7
9
|
/**
|
|
8
10
|
* The LivestreamVideoControlButton controls the video stream publish/unpublish while in the livestream for the host.
|
|
9
11
|
*/
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
13
|
export const LivestreamVideoControlButton = () => {
|
|
11
14
|
const {
|
|
12
15
|
useCameraState,
|
|
@@ -34,25 +37,29 @@ export const LivestreamVideoControlButton = () => {
|
|
|
34
37
|
if (!isVideoEnabledInCall) {
|
|
35
38
|
return;
|
|
36
39
|
}
|
|
37
|
-
return /*#__PURE__*/
|
|
40
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
38
41
|
onPress: onPress,
|
|
39
42
|
style: [styles.container, {
|
|
40
43
|
backgroundColor: colors.buttonSecondary,
|
|
41
44
|
height: buttonSizes.xs,
|
|
42
45
|
width: buttonSizes.xs
|
|
43
|
-
}, livestreamVideoControlButton.container]
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
}, livestreamVideoControlButton.container],
|
|
47
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
48
|
+
style: [styles.icon, {
|
|
49
|
+
height: iconSizes.sm,
|
|
50
|
+
width: iconSizes.sm
|
|
51
|
+
}, livestreamVideoControlButton.icon],
|
|
52
|
+
children: /*#__PURE__*/_jsx(IconWrapper, {
|
|
53
|
+
children: !optimisticIsMute ? /*#__PURE__*/_jsx(Video, {
|
|
54
|
+
color: colors.iconPrimary,
|
|
55
|
+
size: iconSizes.md
|
|
56
|
+
}) : /*#__PURE__*/_jsx(VideoSlash, {
|
|
57
|
+
color: colors.iconPrimary,
|
|
58
|
+
size: iconSizes.md
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
})
|
|
62
|
+
});
|
|
56
63
|
};
|
|
57
64
|
const styles = StyleSheet.create({
|
|
58
65
|
container: {
|
package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallStateHooks","React","useTheme","Pressable","StyleSheet","View","IconWrapper","Video","VideoSlash","LivestreamVideoControlButton","useCameraState","useCallSettings","optimisticIsMute","camera","callSettings","isVideoEnabledInCall","video","enabled","theme","colors","variants","iconSizes","buttonSizes","livestreamVideoControlButton","onPress","toggle","
|
|
1
|
+
{"version":3,"names":["useCallStateHooks","React","useTheme","Pressable","StyleSheet","View","IconWrapper","Video","VideoSlash","jsx","_jsx","LivestreamVideoControlButton","useCameraState","useCallSettings","optimisticIsMute","camera","callSettings","isVideoEnabledInCall","video","enabled","theme","colors","variants","iconSizes","buttonSizes","livestreamVideoControlButton","onPress","toggle","style","styles","container","backgroundColor","buttonSecondary","height","xs","width","children","icon","sm","color","iconPrimary","size","md","create","justifyContent","alignItems","marginHorizontal","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/LivestreamVideoControlButton.tsx"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,iCAAiC;AACnE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC1D,SAASC,WAAW,EAAEC,KAAK,EAAEC,UAAU,QAAQ,gBAAgB;;AAE/D;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAGA,OAAO,MAAMC,4BAA4B,GAAGA,CAAA,KAAM;EAChD,MAAM;IAAEC,cAAc;IAAEC;EAAgB,CAAC,GAAGb,iBAAiB,CAAC,CAAC;EAC/D,MAAM;IAAEc,gBAAgB;IAAEC;EAAO,CAAC,GAAGH,cAAc,CAAC,CAAC;E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AM,GAAGzB,UAAU,CAACuC,MAAM,CAAC;EAC/Bb,SAAS,EAAE;IACTc,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,gBAAgB,EAAE,CAAC;IACnBC,YAAY,EAAE;EAChB,CAAC;EACDV,IAAI,EAAE,CAAC;AACT,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import React, { useState } from 'react';
|
|
2
4
|
import { ActivityIndicator, Pressable, StyleSheet, Text, View } from 'react-native';
|
|
3
5
|
import { useTheme } from '../../../contexts';
|
|
@@ -8,7 +10,7 @@ import { getLogger } from '@stream-io/video-client';
|
|
|
8
10
|
/**
|
|
9
11
|
* Props for the ViewerLeaveStreamButton component.
|
|
10
12
|
*/
|
|
11
|
-
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
14
|
/**
|
|
13
15
|
* The ViewerLeaveStreamButton component displays and controls the leave stream logic of the viewer's live stream.
|
|
14
16
|
*/
|
|
@@ -44,21 +46,24 @@ export const ViewerLeaveStreamButton = ({
|
|
|
44
46
|
logger('error', 'Error stopping livestream', error);
|
|
45
47
|
}
|
|
46
48
|
};
|
|
47
|
-
return /*#__PURE__*/
|
|
49
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
48
50
|
style: [styles.container, {
|
|
49
51
|
backgroundColor: colors.buttonSecondary
|
|
50
52
|
}, viewerLeaveStreamButton.container],
|
|
51
|
-
onPress: onLeaveStreamButtonPress
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
onPress: onLeaveStreamButtonPress,
|
|
54
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
55
|
+
style: [styles.icon, {
|
|
56
|
+
height: iconSizes.xs,
|
|
57
|
+
width: iconSizes.xs
|
|
58
|
+
}, viewerLeaveStreamButton.icon],
|
|
59
|
+
children: isAwaitingResponse ? /*#__PURE__*/_jsx(ActivityIndicator, {}) : /*#__PURE__*/_jsx(LeaveStreamIcon, {})
|
|
60
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
61
|
+
style: [styles.text, typefaces.subtitleBold, {
|
|
62
|
+
color: colors.textPrimary
|
|
63
|
+
}, viewerLeaveStreamButton.text],
|
|
64
|
+
children: isAwaitingResponse ? t('Loading...') : t('Leave Stream')
|
|
65
|
+
})]
|
|
66
|
+
});
|
|
62
67
|
};
|
|
63
68
|
const styles = StyleSheet.create({
|
|
64
69
|
container: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","ActivityIndicator","Pressable","StyleSheet","Text","View","useTheme","LeaveStreamIcon","useCall","useI18n","getLogger","ViewerLeaveStreamButton","onLeaveStreamHandler","isAwaitingResponse","setIsAwaitingResponse","call","t","theme","colors","variants","iconSizes","typefaces","viewerLeaveStreamButton","onLeaveStreamButtonPress","leave","error","logger","
|
|
1
|
+
{"version":3,"names":["React","useState","ActivityIndicator","Pressable","StyleSheet","Text","View","useTheme","LeaveStreamIcon","useCall","useI18n","getLogger","jsx","_jsx","jsxs","_jsxs","ViewerLeaveStreamButton","onLeaveStreamHandler","isAwaitingResponse","setIsAwaitingResponse","call","t","theme","colors","variants","iconSizes","typefaces","viewerLeaveStreamButton","onLeaveStreamButtonPress","leave","error","logger","style","styles","container","backgroundColor","buttonSecondary","onPress","children","icon","height","xs","width","text","subtitleBold","color","textPrimary","create","flexDirection","alignItems","padding","borderRadius","marginLeft","includeFontPadding"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SACEC,iBAAiB,EACjBC,SAAS,EACTC,UAAU,EACVC,IAAI,EACJC,IAAI,QACC,cAAc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ET,wBAAyB;IAAAU,QAAA,gBAElCzB,IAAA,CAACP,IAAI;MACH0B,KAAK,EAAE,CACLC,MAAM,CAACM,IAAI,EACX;QAAEC,MAAM,EAAEf,SAAS,CAACgB,EAAE;QAAEC,KAAK,EAAEjB,SAAS,CAACgB;MAAG,CAAC,EAC7Cd,uBAAuB,CAACY,IAAI,CAC5B;MAAAD,QAAA,EAEDpB,kBAAkB,gBAAGL,IAAA,CAACX,iBAAiB,IAAE,CAAC,gBAAGW,IAAA,CAACL,eAAe,IAAE;IAAC,CAC7D,CAAC,eACPK,IAAA,CAACR,IAAI;MACH2B,KAAK,EAAE,CACLC,MAAM,CAACU,IAAI,EACXjB,SAAS,CAACkB,YAAY,EACtB;QAAEC,KAAK,EAAEtB,MAAM,CAACuB;MAAY,CAAC,EAC7BnB,uBAAuB,CAACgB,IAAI,CAC5B;MAAAL,QAAA,EAEDpB,kBAAkB,GAAGG,CAAC,CAAC,YAAY,CAAC,GAAGA,CAAC,CAAC,cAAc;IAAC,CACrD,CAAC;EAAA,CACE,CAAC;AAEhB,CAAC;AAED,MAAMY,MAAM,GAAG7B,UAAU,CAAC2C,MAAM,CAAC;EAC/Bb,SAAS,EAAE;IACTc,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,CAAC;IACVC,YAAY,EAAE;EAChB,CAAC;EACDZ,IAAI,EAAE,CAAC,CAAC;EACRI,IAAI,EAAE;IACJS,UAAU,EAAE,CAAC;IACbC,kBAAkB,EAAE;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { StyleSheet, View } from 'react-native';
|
|
3
5
|
import { ViewerLeaveStreamButton as DefaultViewerLeaveStreamButton } from './ViewerLeaveStreamButton';
|
|
@@ -7,7 +9,7 @@ import { Z_INDEX } from '../../../constants';
|
|
|
7
9
|
/**
|
|
8
10
|
* Props for the ViewerLivestreamControls component.
|
|
9
11
|
*/
|
|
10
|
-
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
13
|
/**
|
|
12
14
|
* The ViewerLivestreamControls component displays the call controls for the live stream at viewer's end.
|
|
13
15
|
*/
|
|
@@ -22,18 +24,20 @@ export const ViewerLivestreamControls = ({
|
|
|
22
24
|
viewerLivestreamControls
|
|
23
25
|
}
|
|
24
26
|
} = useTheme();
|
|
25
|
-
return /*#__PURE__*/
|
|
27
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
26
28
|
style: [styles.container, {
|
|
27
29
|
backgroundColor: colors.sheetOverlay
|
|
28
30
|
}, viewerLivestreamControls.container],
|
|
29
|
-
onLayout: onLayout
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
onLayout: onLayout,
|
|
32
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
33
|
+
style: [styles.leftElement, viewerLivestreamControls.leftElement],
|
|
34
|
+
children: ViewerLeaveStreamButton && /*#__PURE__*/_jsx(ViewerLeaveStreamButton, {
|
|
35
|
+
onLeaveStreamHandler: onLeaveStreamHandler
|
|
36
|
+
})
|
|
37
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
38
|
+
style: [styles.rightElement, viewerLivestreamControls.rightElement]
|
|
39
|
+
})]
|
|
40
|
+
});
|
|
37
41
|
};
|
|
38
42
|
const styles = StyleSheet.create({
|
|
39
43
|
container: {
|
package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","ViewerLeaveStreamButton","DefaultViewerLeaveStreamButton","useTheme","Z_INDEX","ViewerLivestreamControls","onLeaveStreamHandler","onLayout","theme","colors","viewerLivestreamControls","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","ViewerLeaveStreamButton","DefaultViewerLeaveStreamButton","useTheme","Z_INDEX","jsx","_jsx","jsxs","_jsxs","ViewerLivestreamControls","onLeaveStreamHandler","onLayout","theme","colors","viewerLivestreamControls","style","styles","container","backgroundColor","sheetOverlay","children","leftElement","rightElement","create","position","bottom","flexDirection","alignItems","paddingVertical","paddingHorizontal","zIndex","IN_FRONT","content","flex"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AAE1D,SACEC,uBAAuB,IAAIC,8BAA8B,QAEpD,2BAA2B;AAClC,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;;AAE5C;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAWA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAGA,CAAC;EACvCR,uBAAuB,GAAGC,8BAA8B;EACxDQ,oBAAoB;EACpBC;AAC6B,CAAC,KAAK;EACnC,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAyB;EAC5C,CAAC,GAAGX,QAAQ,CAAC,CAAC;EAEd,oBACEK,KAAA,CAACR,IAAI;IACHe,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MAAEC,eAAe,EAAEL,MAAM,CAACM;IAAa,CAAC,EACxCL,wBAAwB,CAACG,SAAS,CAClC;IACFN,QAAQ,EAAEA,QAAS;IAAAS,QAAA,gBAEnBd,IAAA,CAACN,IAAI;MAACe,KAAK,EAAE,CAACC,MAAM,CAACK,WAAW,EAAEP,wBAAwB,CAACO,WAAW,CAAE;MAAAD,QAAA,EACrEnB,uBAAuB,iBACtBK,IAAA,CAACL,uBAAuB;QACtBS,oBAAoB,EAAEA;MAAqB,CAC5C;IACF,CACG,CAAC,eACPJ,IA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