@stream-io/video-react-native-sdk 0.0.10 → 0.0.12
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 +14 -0
- package/README.md +2 -2
- package/dist/commonjs/components/Call/CallContent/CallContent.js +133 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -0
- package/dist/commonjs/components/Call/CallContent/index.js +17 -0
- package/dist/commonjs/components/Call/CallContent/index.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +61 -0
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/CallControls.js +52 -0
- package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +77 -0
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ChatButton.js +86 -0
- package/dist/commonjs/components/Call/CallControls/ChatButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +77 -0
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +44 -0
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js +34 -0
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js +46 -0
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ReactionButton.js +71 -0
- package/dist/commonjs/components/Call/CallControls/ReactionButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +74 -0
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +68 -0
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +58 -0
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +58 -0
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +68 -0
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +56 -0
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/index.js +160 -0
- package/dist/commonjs/components/Call/CallControls/index.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +143 -0
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -0
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +76 -0
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -0
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +101 -0
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -0
- package/dist/commonjs/components/Call/CallLayout/index.js +28 -0
- package/dist/commonjs/components/Call/CallLayout/index.js.map +1 -0
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +241 -0
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -0
- package/dist/commonjs/components/Call/CallParticipantsList/index.js +17 -0
- package/dist/commonjs/components/Call/CallParticipantsList/index.js.map +1 -0
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js +121 -0
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js.map +1 -0
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js +107 -0
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js.map +1 -0
- package/dist/commonjs/components/Call/CallTopView/index.js +28 -0
- package/dist/commonjs/components/Call/CallTopView/index.js.map +1 -0
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +73 -0
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -0
- package/dist/commonjs/components/Call/Lobby/Lobby.js +185 -0
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -0
- package/dist/commonjs/components/Call/Lobby/index.js +28 -0
- package/dist/commonjs/components/Call/Lobby/index.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +118 -0
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/JoiningCallIndicator.js +33 -0
- package/dist/commonjs/components/Call/RingingCallContent/JoiningCallIndicator.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +110 -0
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +72 -0
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +117 -0
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -0
- package/dist/commonjs/components/Call/RingingCallContent/index.js +39 -0
- package/dist/commonjs/components/Call/RingingCallContent/index.js.map +1 -0
- package/dist/commonjs/components/Call/index.js +83 -0
- package/dist/commonjs/components/Call/index.js.map +1 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +170 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +154 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js +74 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js +11 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +150 -0
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +146 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +98 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +83 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +63 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +90 -0
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js +193 -0
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js.map +1 -0
- package/dist/commonjs/components/Participant/ParticipantView/index.js +72 -0
- package/dist/commonjs/components/Participant/ParticipantView/index.js.map +1 -0
- package/dist/commonjs/components/Participant/index.js +28 -0
- package/dist/commonjs/components/Participant/index.js.map +1 -0
- package/dist/commonjs/components/index.js +39 -0
- package/dist/commonjs/components/index.js.map +1 -0
- package/dist/commonjs/components/utility/Avatar.js +77 -0
- package/dist/commonjs/components/utility/Avatar.js.map +1 -0
- package/dist/commonjs/components/utility/index.js +17 -0
- package/dist/commonjs/components/utility/index.js.map +1 -0
- package/dist/commonjs/constants/TestIds.js +40 -0
- package/dist/commonjs/constants/TestIds.js.map +1 -0
- package/dist/commonjs/constants/index.js +38 -0
- package/dist/commonjs/constants/index.js.map +1 -0
- package/dist/commonjs/contexts/StreamVideoContext.js +111 -0
- package/dist/commonjs/contexts/StreamVideoContext.js.map +1 -0
- package/dist/commonjs/contexts/ThemeContext.js +59 -0
- package/dist/commonjs/contexts/ThemeContext.js.map +1 -0
- package/dist/commonjs/contexts/index.js +28 -0
- package/dist/commonjs/contexts/index.js.map +1 -0
- package/dist/commonjs/hooks/index.js +61 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js +32 -0
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js.map +1 -0
- package/dist/commonjs/hooks/push/index.js +22 -0
- package/dist/commonjs/hooks/push/index.js.map +1 -0
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +28 -0
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -0
- package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js +69 -0
- package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -0
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +123 -0
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -0
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +89 -0
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -0
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +68 -0
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -0
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +122 -0
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -0
- package/dist/commonjs/hooks/useIncallManager.js +32 -0
- package/dist/commonjs/hooks/useIncallManager.js.map +1 -0
- package/dist/commonjs/hooks/usePermissionNotification.js +44 -0
- package/dist/commonjs/hooks/usePermissionNotification.js.map +1 -0
- package/dist/commonjs/hooks/usePermissionRequest.js +68 -0
- package/dist/commonjs/hooks/usePermissionRequest.js.map +1 -0
- package/dist/commonjs/icons/Back.js +22 -0
- package/dist/commonjs/icons/Back.js.map +1 -0
- package/dist/commonjs/icons/CameraSwitch.js +22 -0
- package/dist/commonjs/icons/CameraSwitch.js.map +1 -0
- package/dist/commonjs/icons/Chat.js +22 -0
- package/dist/commonjs/icons/Chat.js.map +1 -0
- package/dist/commonjs/icons/Mic.js +25 -0
- package/dist/commonjs/icons/Mic.js.map +1 -0
- package/dist/commonjs/icons/MicOff.js +22 -0
- package/dist/commonjs/icons/MicOff.js.map +1 -0
- package/dist/commonjs/icons/Participants.js +24 -0
- package/dist/commonjs/icons/Participants.js.map +1 -0
- package/dist/commonjs/icons/Phone.js +22 -0
- package/dist/commonjs/icons/Phone.js.map +1 -0
- package/dist/commonjs/icons/PhoneDown.js +24 -0
- package/dist/commonjs/icons/PhoneDown.js.map +1 -0
- package/dist/commonjs/icons/PinVertical.js +22 -0
- package/dist/commonjs/icons/PinVertical.js.map +1 -0
- package/dist/commonjs/icons/Reaction.js +22 -0
- package/dist/commonjs/icons/Reaction.js.map +1 -0
- package/dist/commonjs/icons/ScreenShare.js +38 -0
- package/dist/commonjs/icons/ScreenShare.js.map +1 -0
- package/dist/commonjs/icons/Settings.js +24 -0
- package/dist/commonjs/icons/Settings.js.map +1 -0
- package/dist/commonjs/icons/Spotlight.js +24 -0
- package/dist/commonjs/icons/Spotlight.js.map +1 -0
- package/dist/commonjs/icons/ThreeDots.js +34 -0
- package/dist/commonjs/icons/ThreeDots.js.map +1 -0
- package/dist/commonjs/icons/TopViewBackground.js +38 -0
- package/dist/commonjs/icons/TopViewBackground.js.map +1 -0
- package/dist/commonjs/icons/Video.js +22 -0
- package/dist/commonjs/icons/Video.js.map +1 -0
- package/dist/commonjs/icons/VideoSlash.js +24 -0
- package/dist/commonjs/icons/VideoSlash.js.map +1 -0
- package/dist/commonjs/icons/index.js +182 -0
- package/dist/commonjs/icons/index.js.map +1 -0
- package/dist/commonjs/index.js +172 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/providers/MediaStreamManagement.js +148 -0
- package/dist/commonjs/providers/MediaStreamManagement.js.map +1 -0
- package/dist/commonjs/providers/StreamCall.js +49 -0
- package/dist/commonjs/providers/StreamCall.js.map +1 -0
- package/dist/commonjs/providers/StreamVideo.js +76 -0
- package/dist/commonjs/providers/StreamVideo.js.map +1 -0
- package/dist/commonjs/providers/index.js +39 -0
- package/dist/commonjs/providers/index.js.map +1 -0
- package/dist/commonjs/theme/colors.js +51 -0
- package/dist/commonjs/theme/colors.js.map +1 -0
- package/dist/commonjs/theme/constants.js +59 -0
- package/dist/commonjs/theme/constants.js.map +1 -0
- package/dist/commonjs/theme/index.js +28 -0
- package/dist/commonjs/theme/index.js.map +1 -0
- package/dist/commonjs/theme/theme.js +230 -0
- package/dist/commonjs/theme/theme.js.map +1 -0
- package/dist/commonjs/theme/types.js +6 -0
- package/dist/commonjs/theme/types.js.map +1 -0
- package/dist/commonjs/translations/en.json +14 -0
- package/dist/commonjs/translations/index.js +13 -0
- package/dist/commonjs/translations/index.js.map +1 -0
- package/dist/commonjs/utils/StreamVideoRN/index.js +71 -0
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -0
- package/dist/commonjs/utils/StreamVideoRN/types.js +6 -0
- package/dist/commonjs/utils/StreamVideoRN/types.js.map +1 -0
- package/dist/commonjs/utils/hooks/index.js +39 -0
- package/dist/commonjs/utils/hooks/index.js.map +1 -0
- package/dist/commonjs/utils/hooks/useAppStateListener.js +43 -0
- package/dist/commonjs/utils/hooks/useAppStateListener.js.map +1 -0
- package/dist/commonjs/utils/hooks/useDebouncedValue.js +24 -0
- package/dist/commonjs/utils/hooks/useDebouncedValue.js.map +1 -0
- package/dist/commonjs/utils/hooks/usePrevious.js +16 -0
- package/dist/commonjs/utils/hooks/usePrevious.js.map +1 -0
- package/dist/commonjs/utils/index.js +52 -0
- package/dist/commonjs/utils/index.js.map +1 -0
- package/dist/commonjs/utils/internal/optionalLibs.js +31 -0
- package/dist/commonjs/utils/internal/optionalLibs.js.map +1 -0
- package/dist/commonjs/utils/push/android.js +146 -0
- package/dist/commonjs/utils/push/android.js.map +1 -0
- package/dist/commonjs/utils/push/ios.js +46 -0
- package/dist/commonjs/utils/push/ios.js.map +1 -0
- package/dist/commonjs/utils/push/libs.js +39 -0
- package/dist/commonjs/utils/push/libs.js.map +1 -0
- package/dist/commonjs/utils/push/rxSubjects.js +49 -0
- package/dist/commonjs/utils/push/rxSubjects.js.map +1 -0
- package/dist/commonjs/utils/push/utils.js +55 -0
- package/dist/commonjs/utils/push/utils.js.map +1 -0
- package/dist/commonjs/utils/setClientDetails.js +51 -0
- package/dist/commonjs/utils/setClientDetails.js.map +1 -0
- package/dist/commonjs/version.js +9 -0
- package/dist/commonjs/version.js.map +1 -0
- package/dist/module/components/Call/CallContent/CallContent.js +124 -0
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -0
- package/dist/module/components/Call/CallContent/index.js.map +1 -0
- package/dist/module/components/Call/CallControls/AcceptCallButton.js +54 -0
- package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/CallControls.js +45 -0
- package/dist/module/components/Call/CallControls/CallControls.js.map +1 -0
- package/dist/module/components/Call/CallControls/CallControlsButton.js +69 -0
- package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ChatButton.js +79 -0
- package/dist/module/components/Call/CallControls/ChatButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/HangupCallButton.js +69 -0
- package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/IncomingCallControls.js +37 -0
- package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -0
- package/dist/module/components/Call/CallControls/LobbyControls.js +27 -0
- package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -0
- package/dist/module/components/Call/CallControls/OutgoingCallControls.js +39 -0
- package/dist/module/components/Call/CallControls/OutgoingCallControls.js.map +1 -0
- package/dist/module/components/Call/CallControls/ReactionButton.js +63 -0
- package/dist/module/components/Call/CallControls/ReactionButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/RejectCallButton.js +67 -0
- package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +61 -0
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +51 -0
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +51 -0
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +61 -0
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +49 -0
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/index.js.map +1 -0
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +134 -0
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -0
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +69 -0
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -0
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +94 -0
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -0
- package/dist/module/components/Call/CallLayout/index.js.map +1 -0
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +232 -0
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -0
- package/dist/module/components/Call/CallParticipantsList/index.js.map +1 -0
- package/dist/module/components/Call/CallTopView/CallTopView.js +112 -0
- package/dist/module/components/Call/CallTopView/CallTopView.js.map +1 -0
- package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js +100 -0
- package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js.map +1 -0
- package/dist/module/components/Call/CallTopView/index.js.map +1 -0
- package/dist/module/components/Call/Lobby/JoinCallButton.js +66 -0
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -0
- package/dist/module/components/Call/Lobby/Lobby.js +178 -0
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -0
- package/dist/module/components/Call/Lobby/index.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +110 -0
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/JoiningCallIndicator.js +25 -0
- package/dist/module/components/Call/RingingCallContent/JoiningCallIndicator.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +103 -0
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +65 -0
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/UserInfo.js +109 -0
- package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -0
- package/dist/module/components/Call/RingingCallContent/index.js.map +1 -0
- package/dist/module/components/Call/index.js.map +1 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +161 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +145 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js +64 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js +4 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -0
- package/dist/module/components/Participant/FloatingParticipantView/index.js +143 -0
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +139 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +91 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +75 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +56 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js +83 -0
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js +184 -0
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js.map +1 -0
- package/dist/module/components/Participant/ParticipantView/index.js.map +1 -0
- package/dist/module/components/Participant/index.js.map +1 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/utility/Avatar.js +70 -0
- package/dist/module/components/utility/Avatar.js.map +1 -0
- package/dist/module/components/utility/index.js.map +1 -0
- package/dist/module/constants/TestIds.js +30 -0
- package/dist/module/constants/TestIds.js.map +1 -0
- package/dist/module/constants/index.js +28 -0
- package/dist/module/constants/index.js.map +1 -0
- package/dist/module/contexts/StreamVideoContext.js +101 -0
- package/dist/module/contexts/StreamVideoContext.js.map +1 -0
- package/dist/module/contexts/ThemeContext.js +46 -0
- package/dist/module/contexts/ThemeContext.js.map +1 -0
- package/dist/module/contexts/index.js.map +1 -0
- package/dist/module/hooks/index.js.map +1 -0
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +26 -0
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -0
- package/dist/module/hooks/push/index.js +16 -0
- package/dist/module/hooks/push/index.js.map +1 -0
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +22 -0
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -0
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js +63 -0
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -0
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +116 -0
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -0
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +83 -0
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -0
- package/dist/module/hooks/push/useProcessPushCallEffect.js +61 -0
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -0
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +113 -0
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -0
- package/dist/module/hooks/useIncallManager.js +24 -0
- package/dist/module/hooks/useIncallManager.js.map +1 -0
- package/dist/module/hooks/usePermissionNotification.js +37 -0
- package/dist/module/hooks/usePermissionNotification.js.map +1 -0
- package/dist/module/hooks/usePermissionRequest.js +61 -0
- package/dist/module/hooks/usePermissionRequest.js.map +1 -0
- package/dist/module/icons/Back.js +14 -0
- package/dist/module/icons/Back.js.map +1 -0
- package/dist/module/icons/CameraSwitch.js +14 -0
- package/dist/module/icons/CameraSwitch.js.map +1 -0
- package/dist/module/icons/Chat.js +14 -0
- package/dist/module/icons/Chat.js.map +1 -0
- package/dist/module/icons/Mic.js +17 -0
- package/dist/module/icons/Mic.js.map +1 -0
- package/dist/module/icons/MicOff.js +14 -0
- package/dist/module/icons/MicOff.js.map +1 -0
- package/dist/module/icons/Participants.js +16 -0
- package/dist/module/icons/Participants.js.map +1 -0
- package/dist/module/icons/Phone.js +14 -0
- package/dist/module/icons/Phone.js.map +1 -0
- package/dist/module/icons/PhoneDown.js +16 -0
- package/dist/module/icons/PhoneDown.js.map +1 -0
- package/dist/module/icons/PinVertical.js +14 -0
- package/dist/module/icons/PinVertical.js.map +1 -0
- package/dist/module/icons/Reaction.js +14 -0
- package/dist/module/icons/Reaction.js.map +1 -0
- package/dist/module/icons/ScreenShare.js +28 -0
- package/dist/module/icons/ScreenShare.js.map +1 -0
- package/dist/module/icons/Settings.js +14 -0
- package/dist/module/icons/Settings.js.map +1 -0
- package/dist/module/icons/Spotlight.js +16 -0
- package/dist/module/icons/Spotlight.js.map +1 -0
- package/dist/module/icons/ThreeDots.js +26 -0
- package/dist/module/icons/ThreeDots.js.map +1 -0
- package/dist/module/icons/TopViewBackground.js +30 -0
- package/dist/module/icons/TopViewBackground.js.map +1 -0
- package/dist/module/icons/Video.js +14 -0
- package/dist/module/icons/Video.js.map +1 -0
- package/dist/module/icons/VideoSlash.js +16 -0
- package/dist/module/icons/VideoSlash.js.map +1 -0
- package/dist/module/icons/index.js.map +1 -0
- package/dist/module/index.js +35 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/providers/MediaStreamManagement.js +139 -0
- package/dist/module/providers/MediaStreamManagement.js.map +1 -0
- package/dist/module/providers/StreamCall.js +41 -0
- package/dist/module/providers/StreamCall.js.map +1 -0
- package/dist/module/providers/StreamVideo.js +66 -0
- package/dist/module/providers/StreamVideo.js.map +1 -0
- package/dist/module/providers/index.js.map +1 -0
- package/dist/module/theme/colors.js +44 -0
- package/dist/module/theme/colors.js.map +1 -0
- package/dist/module/theme/constants.js +53 -0
- package/dist/module/theme/constants.js.map +1 -0
- package/dist/module/theme/index.js +7 -0
- package/dist/module/theme/index.js.map +1 -0
- package/dist/module/theme/theme.js +223 -0
- package/dist/module/theme/theme.js.map +1 -0
- package/dist/module/theme/types.js.map +1 -0
- package/dist/module/translations/en.json +14 -0
- package/dist/module/translations/index.js +5 -0
- package/dist/module/translations/index.js.map +1 -0
- package/dist/module/utils/StreamVideoRN/index.js +64 -0
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -0
- package/dist/module/utils/StreamVideoRN/types.js.map +1 -0
- package/dist/module/utils/hooks/index.js.map +1 -0
- package/dist/module/utils/hooks/useAppStateListener.js +36 -0
- package/dist/module/utils/hooks/useAppStateListener.js.map +1 -0
- package/dist/module/utils/hooks/useDebouncedValue.js +19 -0
- package/dist/module/utils/hooks/useDebouncedValue.js.map +1 -0
- package/dist/module/utils/hooks/usePrevious.js +9 -0
- package/dist/module/utils/hooks/usePrevious.js.map +1 -0
- package/dist/module/utils/index.js +27 -0
- package/dist/module/utils/index.js.map +1 -0
- package/dist/module/utils/internal/optionalLibs.js +23 -0
- package/dist/module/utils/internal/optionalLibs.js.map +1 -0
- package/dist/module/utils/push/android.js +137 -0
- package/dist/module/utils/push/android.js.map +1 -0
- package/dist/module/utils/push/ios.js +38 -0
- package/dist/module/utils/push/ios.js.map +1 -0
- package/dist/module/utils/push/libs.js +31 -0
- package/dist/module/utils/push/libs.js.map +1 -0
- package/dist/module/utils/push/rxSubjects.js +39 -0
- package/dist/module/utils/push/rxSubjects.js.map +1 -0
- package/dist/module/utils/push/utils.js +47 -0
- package/dist/module/utils/push/utils.js.map +1 -0
- package/dist/module/utils/setClientDetails.js +44 -0
- package/dist/module/utils/setClientDetails.js.map +1 -0
- package/dist/module/version.js +2 -0
- package/dist/module/version.js.map +1 -0
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts +27 -0
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallContent/index.d.ts +2 -0
- package/dist/typescript/components/Call/CallContent/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts +23 -0
- package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/CallControls.d.ts +17 -0
- package/dist/typescript/components/Call/CallControls/CallControls.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts +37 -0
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ChatButton.d.ts +21 -0
- package/dist/typescript/components/Call/CallControls/ChatButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts +23 -0
- package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/LobbyControls.d.ts +5 -0
- package/dist/typescript/components/Call/CallControls/LobbyControls.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/OutgoingCallControls.d.ts +11 -0
- package/dist/typescript/components/Call/CallControls/OutgoingCallControls.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ReactionButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ReactionButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts +24 -0
- package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/index.d.ts +15 -0
- package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts +10 -0
- package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts +20 -0
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +17 -0
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallLayout/index.d.ts +3 -0
- package/dist/typescript/components/Call/CallLayout/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts +35 -0
- package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallParticipantsList/index.d.ts +2 -0
- package/dist/typescript/components/Call/CallParticipantsList/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts +29 -0
- package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts +11 -0
- package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallTopView/index.d.ts +3 -0
- package/dist/typescript/components/Call/CallTopView/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts +12 -0
- package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts +24 -0
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -0
- package/dist/typescript/components/Call/Lobby/index.d.ts +3 -0
- package/dist/typescript/components/Call/Lobby/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts +40 -0
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/JoiningCallIndicator.d.ts +2 -0
- package/dist/typescript/components/Call/RingingCallContent/JoiningCallIndicator.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts +22 -0
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts +35 -0
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/UserInfo.d.ts +14 -0
- package/dist/typescript/components/Call/RingingCallContent/UserInfo.d.ts.map +1 -0
- package/dist/typescript/components/Call/RingingCallContent/index.d.ts +4 -0
- package/dist/typescript/components/Call/RingingCallContent/index.d.ts.map +1 -0
- package/dist/typescript/components/Call/index.d.ts +8 -0
- package/dist/typescript/components/Call/index.d.ts.map +1 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts +4 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts +5 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts.map +1 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/common.d.ts +39 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/common.d.ts.map +1 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/index.d.ts +5 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/index.d.ts.map +1 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts +32 -0
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts +10 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts +7 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts +17 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts +10 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts +70 -0
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts +12 -0
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts.map +1 -0
- package/dist/typescript/components/Participant/ParticipantView/index.d.ts +7 -0
- package/dist/typescript/components/Participant/ParticipantView/index.d.ts.map +1 -0
- package/dist/typescript/components/Participant/index.d.ts +3 -0
- package/dist/typescript/components/Participant/index.d.ts.map +1 -0
- package/dist/typescript/components/index.d.ts +4 -0
- package/dist/typescript/components/index.d.ts.map +1 -0
- package/dist/typescript/components/utility/Avatar.d.ts +43 -0
- package/dist/typescript/components/utility/Avatar.d.ts.map +1 -0
- package/dist/typescript/components/utility/index.d.ts +2 -0
- package/dist/typescript/components/utility/index.d.ts.map +1 -0
- package/dist/typescript/constants/TestIds.d.ts +26 -0
- package/dist/typescript/constants/TestIds.d.ts.map +1 -0
- package/dist/typescript/constants/index.d.ts +14 -0
- package/dist/typescript/constants/index.d.ts.map +1 -0
- package/dist/typescript/contexts/StreamVideoContext.d.ts +20 -0
- package/dist/typescript/contexts/StreamVideoContext.d.ts.map +1 -0
- package/dist/typescript/contexts/ThemeContext.d.ts +23 -0
- package/dist/typescript/contexts/ThemeContext.d.ts.map +1 -0
- package/dist/typescript/contexts/index.d.ts +3 -0
- package/dist/typescript/contexts/index.d.ts.map +1 -0
- package/dist/typescript/hooks/index.d.ts +6 -0
- package/dist/typescript/hooks/index.d.ts.map +1 -0
- package/dist/typescript/hooks/internal/useCallMediaStreamCleanup.d.ts +6 -0
- package/dist/typescript/hooks/internal/useCallMediaStreamCleanup.d.ts.map +1 -0
- package/dist/typescript/hooks/push/index.d.ts +6 -0
- package/dist/typescript/hooks/push/index.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts +5 -0
- package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useIosCallKeepEventsSetupEffect.d.ts +5 -0
- package/dist/typescript/hooks/push/useIosCallKeepEventsSetupEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +5 -0
- package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts +6 -0
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts +8 -0
- package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts +7 -0
- package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -0
- package/dist/typescript/hooks/useIncallManager.d.ts +14 -0
- package/dist/typescript/hooks/useIncallManager.d.ts.map +1 -0
- package/dist/typescript/hooks/usePermissionNotification.d.ts +19 -0
- package/dist/typescript/hooks/usePermissionNotification.d.ts.map +1 -0
- package/dist/typescript/hooks/usePermissionRequest.d.ts +2 -0
- package/dist/typescript/hooks/usePermissionRequest.d.ts.map +1 -0
- package/dist/typescript/icons/Back.d.ts +7 -0
- package/dist/typescript/icons/Back.d.ts.map +1 -0
- package/dist/typescript/icons/CameraSwitch.d.ts +7 -0
- package/dist/typescript/icons/CameraSwitch.d.ts.map +1 -0
- package/dist/typescript/icons/Chat.d.ts +7 -0
- package/dist/typescript/icons/Chat.d.ts.map +1 -0
- package/dist/typescript/icons/Mic.d.ts +7 -0
- package/dist/typescript/icons/Mic.d.ts.map +1 -0
- package/dist/typescript/icons/MicOff.d.ts +7 -0
- package/dist/typescript/icons/MicOff.d.ts.map +1 -0
- package/dist/typescript/icons/Participants.d.ts +7 -0
- package/dist/typescript/icons/Participants.d.ts.map +1 -0
- package/dist/typescript/icons/Phone.d.ts +7 -0
- package/dist/typescript/icons/Phone.d.ts.map +1 -0
- package/dist/typescript/icons/PhoneDown.d.ts +7 -0
- package/dist/typescript/icons/PhoneDown.d.ts.map +1 -0
- package/dist/typescript/icons/PinVertical.d.ts +7 -0
- package/dist/typescript/icons/PinVertical.d.ts.map +1 -0
- package/dist/typescript/icons/Reaction.d.ts +7 -0
- package/dist/typescript/icons/Reaction.d.ts.map +1 -0
- package/dist/typescript/icons/ScreenShare.d.ts +7 -0
- package/dist/typescript/icons/ScreenShare.d.ts.map +1 -0
- package/dist/typescript/icons/Settings.d.ts +6 -0
- package/dist/typescript/icons/Settings.d.ts.map +1 -0
- package/dist/typescript/icons/Spotlight.d.ts +7 -0
- package/dist/typescript/icons/Spotlight.d.ts.map +1 -0
- package/dist/typescript/icons/ThreeDots.d.ts +6 -0
- package/dist/typescript/icons/ThreeDots.d.ts.map +1 -0
- package/dist/typescript/icons/TopViewBackground.d.ts +14 -0
- package/dist/typescript/icons/TopViewBackground.d.ts.map +1 -0
- package/dist/typescript/icons/Video.d.ts +7 -0
- package/dist/typescript/icons/Video.d.ts.map +1 -0
- package/dist/typescript/icons/VideoSlash.d.ts +7 -0
- package/dist/typescript/icons/VideoSlash.d.ts.map +1 -0
- package/dist/typescript/icons/index.d.ts +17 -0
- package/dist/typescript/icons/index.d.ts.map +1 -0
- package/dist/typescript/index.d.ts +17 -0
- package/dist/typescript/index.d.ts.map +1 -0
- package/dist/typescript/providers/MediaStreamManagement.d.ts +46 -0
- package/dist/typescript/providers/MediaStreamManagement.d.ts.map +1 -0
- package/dist/typescript/providers/StreamCall.d.ts +23 -0
- package/dist/typescript/providers/StreamCall.d.ts.map +1 -0
- package/dist/typescript/providers/StreamVideo.d.ts +15 -0
- package/dist/typescript/providers/StreamVideo.d.ts.map +1 -0
- package/dist/typescript/providers/index.d.ts +4 -0
- package/dist/typescript/providers/index.d.ts.map +1 -0
- package/dist/typescript/theme/colors.d.ts +40 -0
- package/dist/typescript/theme/colors.d.ts.map +1 -0
- package/dist/typescript/theme/constants.d.ts +48 -0
- package/dist/typescript/theme/constants.d.ts.map +1 -0
- package/dist/typescript/theme/index.d.ts +4 -0
- package/dist/typescript/theme/index.d.ts.map +1 -0
- package/dist/typescript/theme/theme.d.ts +196 -0
- package/dist/typescript/theme/theme.d.ts.map +1 -0
- package/dist/typescript/theme/types.d.ts +30 -0
- package/dist/typescript/theme/types.d.ts.map +1 -0
- package/dist/typescript/translations/index.d.ts +17 -0
- package/dist/typescript/translations/index.d.ts.map +1 -0
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +28 -0
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -0
- package/dist/typescript/utils/StreamVideoRN/types.d.ts +95 -0
- package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -0
- package/dist/typescript/utils/hooks/index.d.ts +4 -0
- package/dist/typescript/utils/hooks/index.d.ts.map +1 -0
- package/dist/typescript/utils/hooks/useAppStateListener.d.ts +2 -0
- package/dist/typescript/utils/hooks/useAppStateListener.d.ts.map +1 -0
- package/dist/typescript/utils/hooks/useDebouncedValue.d.ts +8 -0
- package/dist/typescript/utils/hooks/useDebouncedValue.d.ts.map +1 -0
- package/dist/typescript/utils/hooks/usePrevious.d.ts +2 -0
- package/dist/typescript/utils/hooks/usePrevious.d.ts.map +1 -0
- package/dist/typescript/utils/index.d.ts +5 -0
- package/dist/typescript/utils/index.d.ts.map +1 -0
- package/dist/typescript/utils/internal/optionalLibs.d.ts +6 -0
- package/dist/typescript/utils/internal/optionalLibs.d.ts.map +1 -0
- package/dist/typescript/utils/push/android.d.ts +9 -0
- package/dist/typescript/utils/push/android.d.ts.map +1 -0
- package/dist/typescript/utils/push/ios.d.ts +6 -0
- package/dist/typescript/utils/push/ios.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs.d.ts +10 -0
- package/dist/typescript/utils/push/libs.d.ts.map +1 -0
- package/dist/typescript/utils/push/rxSubjects.d.ts +29 -0
- package/dist/typescript/utils/push/rxSubjects.d.ts.map +1 -0
- package/dist/typescript/utils/push/utils.d.ts +14 -0
- package/dist/typescript/utils/push/utils.d.ts.map +1 -0
- package/dist/typescript/utils/setClientDetails.d.ts +2 -0
- package/dist/typescript/utils/setClientDetails.d.ts.map +1 -0
- package/dist/typescript/version.d.ts +2 -0
- package/dist/typescript/version.d.ts.map +1 -0
- package/expo-config-plugin/dist/index.js +18 -14
- package/expo-config-plugin/dist/withAndroidManifest.js +6 -5
- package/expo-config-plugin/dist/withAndroidPermissions.js +5 -4
- package/expo-config-plugin/dist/withAppDelegate.js +8 -7
- package/expo-config-plugin/dist/withMainApplication.js +8 -7
- package/expo-config-plugin/dist/withiOSInfoPlist.js +5 -4
- package/package.json +18 -6
- package/src/components/Call/CallControls/ToggleAudioPreviewButton.tsx +3 -3
- package/src/components/Call/CallControls/ToggleVideoPreviewButton.tsx +4 -3
- package/src/components/Call/Lobby/Lobby.tsx +6 -3
- package/src/components/Call/RingingCallContent/OutgoingCall.tsx +5 -3
- package/src/components/Participant/ParticipantView/VideoRenderer.tsx +6 -3
- package/src/hooks/internal/useCallMediaStreamCleanup.ts +1 -0
- package/src/index.ts +41 -0
- package/src/providers/MediaStreamManagement.tsx +80 -51
- package/src/providers/StreamVideo.tsx +0 -2
- package/src/translations/en.json +1 -3
- package/src/utils/StreamVideoRN/index.ts +0 -21
- package/src/utils/setClientDetails.ts +1 -1
- package/src/version.ts +1 -0
- package/dist/index.d.ts +0 -16
- package/dist/index.js +0 -32
- package/dist/index.js.map +0 -1
- package/dist/jest-setup.d.ts +0 -1
- package/dist/jest-setup.js +0 -38
- package/dist/jest-setup.js.map +0 -1
- package/dist/src/components/Call/CallContent/CallContent.d.ts +0 -26
- package/dist/src/components/Call/CallContent/CallContent.js +0 -84
- package/dist/src/components/Call/CallContent/CallContent.js.map +0 -1
- package/dist/src/components/Call/CallContent/index.d.ts +0 -1
- package/dist/src/components/Call/CallContent/index.js.map +0 -1
- package/dist/src/components/Call/CallControls/AcceptCallButton.d.ts +0 -22
- package/dist/src/components/Call/CallControls/AcceptCallButton.js +0 -32
- package/dist/src/components/Call/CallControls/AcceptCallButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/CallControls.d.ts +0 -16
- package/dist/src/components/Call/CallControls/CallControls.js +0 -34
- package/dist/src/components/Call/CallControls/CallControls.js.map +0 -1
- package/dist/src/components/Call/CallControls/CallControlsButton.d.ts +0 -36
- package/dist/src/components/Call/CallControls/CallControlsButton.js +0 -48
- package/dist/src/components/Call/CallControls/CallControlsButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ChatButton.d.ts +0 -20
- package/dist/src/components/Call/CallControls/ChatButton.js +0 -45
- package/dist/src/components/Call/CallControls/ChatButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/HangupCallButton.d.ts +0 -22
- package/dist/src/components/Call/CallControls/HangupCallButton.js +0 -47
- package/dist/src/components/Call/CallControls/HangupCallButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/IncomingCallControls.d.ts +0 -14
- package/dist/src/components/Call/CallControls/IncomingCallControls.js +0 -21
- package/dist/src/components/Call/CallControls/IncomingCallControls.js.map +0 -1
- package/dist/src/components/Call/CallControls/LobbyControls.d.ts +0 -4
- package/dist/src/components/Call/CallControls/LobbyControls.js +0 -22
- package/dist/src/components/Call/CallControls/LobbyControls.js.map +0 -1
- package/dist/src/components/Call/CallControls/OutgoingCallControls.d.ts +0 -10
- package/dist/src/components/Call/CallControls/OutgoingCallControls.js +0 -25
- package/dist/src/components/Call/CallControls/OutgoingCallControls.js.map +0 -1
- package/dist/src/components/Call/CallControls/ReactionButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ReactionButton.js +0 -47
- package/dist/src/components/Call/CallControls/ReactionButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/RejectCallButton.d.ts +0 -23
- package/dist/src/components/Call/CallControls/RejectCallButton.js +0 -41
- package/dist/src/components/Call/CallControls/RejectCallButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ToggleAudioPreviewButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ToggleAudioPreviewButton.js +0 -30
- package/dist/src/components/Call/CallControls/ToggleAudioPreviewButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ToggleAudioPublishingButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ToggleAudioPublishingButton.js +0 -25
- package/dist/src/components/Call/CallControls/ToggleAudioPublishingButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ToggleCameraFaceButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ToggleCameraFaceButton.js +0 -26
- package/dist/src/components/Call/CallControls/ToggleCameraFaceButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ToggleVideoPreviewButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ToggleVideoPreviewButton.js +0 -30
- package/dist/src/components/Call/CallControls/ToggleVideoPreviewButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/ToggleVideoPublishingButton.d.ts +0 -14
- package/dist/src/components/Call/CallControls/ToggleVideoPublishingButton.js +0 -25
- package/dist/src/components/Call/CallControls/ToggleVideoPublishingButton.js.map +0 -1
- package/dist/src/components/Call/CallControls/index.d.ts +0 -14
- package/dist/src/components/Call/CallControls/index.js.map +0 -1
- package/dist/src/components/Call/CallControls/internal/ReactionsPicker.d.ts +0 -9
- package/dist/src/components/Call/CallControls/internal/ReactionsPicker.js +0 -134
- package/dist/src/components/Call/CallControls/internal/ReactionsPicker.js.map +0 -1
- package/dist/src/components/Call/CallLayout/CallParticipantsGrid.d.ts +0 -19
- package/dist/src/components/Call/CallLayout/CallParticipantsGrid.js +0 -45
- package/dist/src/components/Call/CallLayout/CallParticipantsGrid.js.map +0 -1
- package/dist/src/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +0 -16
- package/dist/src/components/Call/CallLayout/CallParticipantsSpotlight.js +0 -76
- package/dist/src/components/Call/CallLayout/CallParticipantsSpotlight.js.map +0 -1
- package/dist/src/components/Call/CallLayout/index.d.ts +0 -2
- package/dist/src/components/Call/CallLayout/index.js.map +0 -1
- package/dist/src/components/Call/CallParticipantsList/CallParticipantsList.d.ts +0 -34
- package/dist/src/components/Call/CallParticipantsList/CallParticipantsList.js +0 -157
- package/dist/src/components/Call/CallParticipantsList/CallParticipantsList.js.map +0 -1
- package/dist/src/components/Call/CallParticipantsList/index.d.ts +0 -1
- package/dist/src/components/Call/CallParticipantsList/index.js.map +0 -1
- package/dist/src/components/Call/CallTopView/CallTopView.d.ts +0 -28
- package/dist/src/components/Call/CallTopView/CallTopView.js +0 -73
- package/dist/src/components/Call/CallTopView/CallTopView.js.map +0 -1
- package/dist/src/components/Call/CallTopView/ParticipantsInfoBadge.d.ts +0 -10
- package/dist/src/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -77
- package/dist/src/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
- package/dist/src/components/Call/CallTopView/index.d.ts +0 -2
- package/dist/src/components/Call/CallTopView/index.js.map +0 -1
- package/dist/src/components/Call/Lobby/JoinCallButton.d.ts +0 -11
- package/dist/src/components/Call/Lobby/JoinCallButton.js +0 -51
- package/dist/src/components/Call/Lobby/JoinCallButton.js.map +0 -1
- package/dist/src/components/Call/Lobby/Lobby.d.ts +0 -23
- package/dist/src/components/Call/Lobby/Lobby.js +0 -149
- package/dist/src/components/Call/Lobby/Lobby.js.map +0 -1
- package/dist/src/components/Call/Lobby/index.d.ts +0 -2
- package/dist/src/components/Call/Lobby/index.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/IncomingCall.d.ts +0 -39
- package/dist/src/components/Call/RingingCallContent/IncomingCall.js +0 -72
- package/dist/src/components/Call/RingingCallContent/IncomingCall.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/JoiningCallIndicator.d.ts +0 -1
- package/dist/src/components/Call/RingingCallContent/JoiningCallIndicator.js +0 -18
- package/dist/src/components/Call/RingingCallContent/JoiningCallIndicator.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/OutgoingCall.d.ts +0 -21
- package/dist/src/components/Call/RingingCallContent/OutgoingCall.js +0 -81
- package/dist/src/components/Call/RingingCallContent/OutgoingCall.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/RingingCallContent.d.ts +0 -34
- package/dist/src/components/Call/RingingCallContent/RingingCallContent.js +0 -41
- package/dist/src/components/Call/RingingCallContent/RingingCallContent.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/UserInfo.d.ts +0 -13
- package/dist/src/components/Call/RingingCallContent/UserInfo.js +0 -82
- package/dist/src/components/Call/RingingCallContent/UserInfo.js.map +0 -1
- package/dist/src/components/Call/RingingCallContent/index.d.ts +0 -3
- package/dist/src/components/Call/RingingCallContent/index.js.map +0 -1
- package/dist/src/components/Call/index.d.ts +0 -7
- package/dist/src/components/Call/index.js.map +0 -1
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts +0 -3
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +0 -145
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +0 -1
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts +0 -4
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +0 -126
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +0 -1
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/common.d.ts +0 -38
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/common.js +0 -59
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/common.js.map +0 -1
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/index.d.ts +0 -4
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/index.js +0 -6
- package/dist/src/components/Participant/FloatingParticipantView/FloatingView/index.js.map +0 -1
- package/dist/src/components/Participant/FloatingParticipantView/index.d.ts +0 -31
- package/dist/src/components/Participant/FloatingParticipantView/index.js +0 -95
- package/dist/src/components/Participant/FloatingParticipantView/index.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/ParticipantLabel.d.ts +0 -9
- package/dist/src/components/Participant/ParticipantView/ParticipantLabel.js +0 -113
- package/dist/src/components/Participant/ParticipantView/ParticipantLabel.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts +0 -6
- package/dist/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +0 -51
- package/dist/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/ParticipantReaction.d.ts +0 -16
- package/dist/src/components/Participant/ParticipantView/ParticipantReaction.js +0 -55
- package/dist/src/components/Participant/ParticipantView/ParticipantReaction.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts +0 -9
- package/dist/src/components/Participant/ParticipantView/ParticipantVideoFallback.js +0 -38
- package/dist/src/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/ParticipantView.d.ts +0 -69
- package/dist/src/components/Participant/ParticipantView/ParticipantView.js +0 -51
- package/dist/src/components/Participant/ParticipantView/ParticipantView.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/VideoRenderer.d.ts +0 -11
- package/dist/src/components/Participant/ParticipantView/VideoRenderer.js +0 -148
- package/dist/src/components/Participant/ParticipantView/VideoRenderer.js.map +0 -1
- package/dist/src/components/Participant/ParticipantView/index.d.ts +0 -6
- package/dist/src/components/Participant/ParticipantView/index.js.map +0 -1
- package/dist/src/components/Participant/index.d.ts +0 -2
- package/dist/src/components/Participant/index.js.map +0 -1
- package/dist/src/components/index.d.ts +0 -3
- package/dist/src/components/index.js.map +0 -1
- package/dist/src/components/utility/Avatar.d.ts +0 -42
- package/dist/src/components/utility/Avatar.js +0 -50
- package/dist/src/components/utility/Avatar.js.map +0 -1
- package/dist/src/components/utility/index.d.ts +0 -1
- package/dist/src/components/utility/index.js.map +0 -1
- package/dist/src/constants/TestIds.d.ts +0 -25
- package/dist/src/constants/TestIds.js +0 -30
- package/dist/src/constants/TestIds.js.map +0 -1
- package/dist/src/constants/index.d.ts +0 -13
- package/dist/src/constants/index.js +0 -32
- package/dist/src/constants/index.js.map +0 -1
- package/dist/src/contexts/StreamVideoContext.d.ts +0 -19
- package/dist/src/contexts/StreamVideoContext.js +0 -82
- package/dist/src/contexts/StreamVideoContext.js.map +0 -1
- package/dist/src/contexts/ThemeContext.d.ts +0 -22
- package/dist/src/contexts/ThemeContext.js +0 -33
- package/dist/src/contexts/ThemeContext.js.map +0 -1
- package/dist/src/contexts/index.d.ts +0 -2
- package/dist/src/contexts/index.js.map +0 -1
- package/dist/src/hooks/index.d.ts +0 -5
- package/dist/src/hooks/index.js.map +0 -1
- package/dist/src/hooks/internal/useCallMediaStreamCleanup.d.ts +0 -5
- package/dist/src/hooks/internal/useCallMediaStreamCleanup.js +0 -25
- package/dist/src/hooks/internal/useCallMediaStreamCleanup.js.map +0 -1
- package/dist/src/hooks/push/index.d.ts +0 -5
- package/dist/src/hooks/push/index.js +0 -15
- package/dist/src/hooks/push/index.js.map +0 -1
- package/dist/src/hooks/push/useInitAndroidTokenAndRest.d.ts +0 -4
- package/dist/src/hooks/push/useInitAndroidTokenAndRest.js +0 -20
- package/dist/src/hooks/push/useInitAndroidTokenAndRest.js.map +0 -1
- package/dist/src/hooks/push/useIosCallKeepEventsSetupEffect.d.ts +0 -4
- package/dist/src/hooks/push/useIosCallKeepEventsSetupEffect.js +0 -46
- package/dist/src/hooks/push/useIosCallKeepEventsSetupEffect.js.map +0 -1
- package/dist/src/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +0 -4
- package/dist/src/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -116
- package/dist/src/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
- package/dist/src/hooks/push/useIosVoipPushEventsSetupEffect.d.ts +0 -5
- package/dist/src/hooks/push/useIosVoipPushEventsSetupEffect.js +0 -78
- package/dist/src/hooks/push/useIosVoipPushEventsSetupEffect.js.map +0 -1
- package/dist/src/hooks/push/useProcessPushCallEffect.d.ts +0 -7
- package/dist/src/hooks/push/useProcessPushCallEffect.js +0 -58
- package/dist/src/hooks/push/useProcessPushCallEffect.js.map +0 -1
- package/dist/src/hooks/useAndroidKeepCallAliveEffect.d.ts +0 -6
- package/dist/src/hooks/useAndroidKeepCallAliveEffect.js +0 -102
- package/dist/src/hooks/useAndroidKeepCallAliveEffect.js.map +0 -1
- package/dist/src/hooks/useIncallManager.d.ts +0 -13
- package/dist/src/hooks/useIncallManager.js +0 -17
- package/dist/src/hooks/useIncallManager.js.map +0 -1
- package/dist/src/hooks/usePermissionNotification.d.ts +0 -18
- package/dist/src/hooks/usePermissionNotification.js +0 -38
- package/dist/src/hooks/usePermissionNotification.js.map +0 -1
- package/dist/src/hooks/usePermissionRequest.d.ts +0 -1
- package/dist/src/hooks/usePermissionRequest.js +0 -60
- package/dist/src/hooks/usePermissionRequest.js.map +0 -1
- package/dist/src/icons/Back.d.ts +0 -6
- package/dist/src/icons/Back.js +0 -5
- package/dist/src/icons/Back.js.map +0 -1
- package/dist/src/icons/CameraSwitch.d.ts +0 -6
- package/dist/src/icons/CameraSwitch.js +0 -5
- package/dist/src/icons/CameraSwitch.js.map +0 -1
- package/dist/src/icons/Chat.d.ts +0 -6
- package/dist/src/icons/Chat.js +0 -5
- package/dist/src/icons/Chat.js.map +0 -1
- package/dist/src/icons/Mic.d.ts +0 -6
- package/dist/src/icons/Mic.js +0 -6
- package/dist/src/icons/Mic.js.map +0 -1
- package/dist/src/icons/MicOff.d.ts +0 -6
- package/dist/src/icons/MicOff.js +0 -5
- package/dist/src/icons/MicOff.js.map +0 -1
- package/dist/src/icons/Participants.d.ts +0 -6
- package/dist/src/icons/Participants.js +0 -5
- package/dist/src/icons/Participants.js.map +0 -1
- package/dist/src/icons/Phone.d.ts +0 -6
- package/dist/src/icons/Phone.js +0 -5
- package/dist/src/icons/Phone.js.map +0 -1
- package/dist/src/icons/PhoneDown.d.ts +0 -6
- package/dist/src/icons/PhoneDown.js +0 -6
- package/dist/src/icons/PhoneDown.js.map +0 -1
- package/dist/src/icons/PinVertical.d.ts +0 -6
- package/dist/src/icons/PinVertical.js +0 -5
- package/dist/src/icons/PinVertical.js.map +0 -1
- package/dist/src/icons/Reaction.d.ts +0 -6
- package/dist/src/icons/Reaction.js +0 -5
- package/dist/src/icons/Reaction.js.map +0 -1
- package/dist/src/icons/ScreenShare.d.ts +0 -6
- package/dist/src/icons/ScreenShare.js +0 -11
- package/dist/src/icons/ScreenShare.js.map +0 -1
- package/dist/src/icons/Settings.d.ts +0 -5
- package/dist/src/icons/Settings.js +0 -7
- package/dist/src/icons/Settings.js.map +0 -1
- package/dist/src/icons/Spotlight.d.ts +0 -6
- package/dist/src/icons/Spotlight.js +0 -5
- package/dist/src/icons/Spotlight.js.map +0 -1
- package/dist/src/icons/ThreeDots.d.ts +0 -5
- package/dist/src/icons/ThreeDots.js +0 -7
- package/dist/src/icons/ThreeDots.js.map +0 -1
- package/dist/src/icons/TopViewBackground.d.ts +0 -13
- package/dist/src/icons/TopViewBackground.js +0 -9
- package/dist/src/icons/TopViewBackground.js.map +0 -1
- package/dist/src/icons/Video.d.ts +0 -6
- package/dist/src/icons/Video.js +0 -5
- package/dist/src/icons/Video.js.map +0 -1
- package/dist/src/icons/VideoSlash.d.ts +0 -6
- package/dist/src/icons/VideoSlash.js +0 -6
- package/dist/src/icons/VideoSlash.js.map +0 -1
- package/dist/src/icons/index.d.ts +0 -16
- package/dist/src/icons/index.js.map +0 -1
- package/dist/src/providers/MediaDevices.d.ts +0 -9
- package/dist/src/providers/MediaDevices.js +0 -40
- package/dist/src/providers/MediaDevices.js.map +0 -1
- package/dist/src/providers/MediaStreamManagement.d.ts +0 -45
- package/dist/src/providers/MediaStreamManagement.js +0 -92
- package/dist/src/providers/MediaStreamManagement.js.map +0 -1
- package/dist/src/providers/StreamCall.d.ts +0 -22
- package/dist/src/providers/StreamCall.js +0 -36
- package/dist/src/providers/StreamCall.js.map +0 -1
- package/dist/src/providers/StreamVideo.d.ts +0 -14
- package/dist/src/providers/StreamVideo.js +0 -52
- package/dist/src/providers/StreamVideo.js.map +0 -1
- package/dist/src/providers/index.d.ts +0 -3
- package/dist/src/providers/index.js.map +0 -1
- package/dist/src/theme/colors.d.ts +0 -39
- package/dist/src/theme/colors.js +0 -46
- package/dist/src/theme/colors.js.map +0 -1
- package/dist/src/theme/constants.d.ts +0 -47
- package/dist/src/theme/constants.js +0 -51
- package/dist/src/theme/constants.js.map +0 -1
- package/dist/src/theme/index.d.ts +0 -3
- package/dist/src/theme/index.js +0 -7
- package/dist/src/theme/index.js.map +0 -1
- package/dist/src/theme/theme.d.ts +0 -195
- package/dist/src/theme/theme.js +0 -219
- package/dist/src/theme/theme.js.map +0 -1
- package/dist/src/theme/types.d.ts +0 -29
- package/dist/src/theme/types.js.map +0 -1
- package/dist/src/translations/en.json +0 -16
- package/dist/src/translations/index.d.ts +0 -18
- package/dist/src/translations/index.js +0 -3
- package/dist/src/translations/index.js.map +0 -1
- package/dist/src/utils/StreamVideoRN/index.d.ts +0 -37
- package/dist/src/utils/StreamVideoRN/index.js +0 -74
- package/dist/src/utils/StreamVideoRN/index.js.map +0 -1
- package/dist/src/utils/StreamVideoRN/permissions.d.ts +0 -5
- package/dist/src/utils/StreamVideoRN/permissions.js +0 -17
- package/dist/src/utils/StreamVideoRN/permissions.js.map +0 -1
- package/dist/src/utils/StreamVideoRN/types.d.ts +0 -94
- package/dist/src/utils/StreamVideoRN/types.js.map +0 -1
- package/dist/src/utils/hooks/index.d.ts +0 -3
- package/dist/src/utils/hooks/index.js.map +0 -1
- package/dist/src/utils/hooks/useAppStateListener.d.ts +0 -1
- package/dist/src/utils/hooks/useAppStateListener.js +0 -37
- package/dist/src/utils/hooks/useAppStateListener.js.map +0 -1
- package/dist/src/utils/hooks/useDebouncedValue.d.ts +0 -7
- package/dist/src/utils/hooks/useDebouncedValue.js +0 -18
- package/dist/src/utils/hooks/useDebouncedValue.js.map +0 -1
- package/dist/src/utils/hooks/usePrevious.d.ts +0 -1
- package/dist/src/utils/hooks/usePrevious.js +0 -9
- package/dist/src/utils/hooks/usePrevious.js.map +0 -1
- package/dist/src/utils/index.d.ts +0 -4
- package/dist/src/utils/index.js +0 -28
- package/dist/src/utils/index.js.map +0 -1
- package/dist/src/utils/internal/optionalLibs.d.ts +0 -5
- package/dist/src/utils/internal/optionalLibs.js +0 -23
- package/dist/src/utils/internal/optionalLibs.js.map +0 -1
- package/dist/src/utils/push/android.d.ts +0 -8
- package/dist/src/utils/push/android.js +0 -131
- package/dist/src/utils/push/android.js.map +0 -1
- package/dist/src/utils/push/ios.d.ts +0 -5
- package/dist/src/utils/push/ios.js +0 -37
- package/dist/src/utils/push/ios.js.map +0 -1
- package/dist/src/utils/push/libs.d.ts +0 -9
- package/dist/src/utils/push/libs.js +0 -34
- package/dist/src/utils/push/libs.js.map +0 -1
- package/dist/src/utils/push/rxSubjects.d.ts +0 -28
- package/dist/src/utils/push/rxSubjects.js +0 -31
- package/dist/src/utils/push/rxSubjects.js.map +0 -1
- package/dist/src/utils/push/utils.d.ts +0 -13
- package/dist/src/utils/push/utils.js +0 -48
- package/dist/src/utils/push/utils.js.map +0 -1
- package/dist/src/utils/setClientDetails.d.ts +0 -1
- package/dist/src/utils/setClientDetails.js +0 -49
- package/dist/src/utils/setClientDetails.js.map +0 -1
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -2
- package/dist/version.js.map +0 -1
- package/expo-config-plugin/dist/index.js.map +0 -1
- package/expo-config-plugin/dist/withAndroidManifest.js.map +0 -1
- package/expo-config-plugin/dist/withAndroidPermissions.js.map +0 -1
- package/expo-config-plugin/dist/withAppDelegate.js.map +0 -1
- package/expo-config-plugin/dist/withMainApplication.js.map +0 -1
- package/expo-config-plugin/dist/withiOSInfoPlist.js.map +0 -1
- package/index.ts +0 -41
- package/src/providers/MediaDevices.tsx +0 -59
- package/src/utils/StreamVideoRN/permissions.ts +0 -25
- /package/dist/{src → module}/components/Call/CallContent/index.js +0 -0
- /package/dist/{src → module}/components/Call/CallControls/index.js +0 -0
- /package/dist/{src → module}/components/Call/CallLayout/index.js +0 -0
- /package/dist/{src → module}/components/Call/CallParticipantsList/index.js +0 -0
- /package/dist/{src → module}/components/Call/CallTopView/index.js +0 -0
- /package/dist/{src → module}/components/Call/Lobby/index.js +0 -0
- /package/dist/{src → module}/components/Call/RingingCallContent/index.js +0 -0
- /package/dist/{src → module}/components/Call/index.js +0 -0
- /package/dist/{src → module}/components/Participant/ParticipantView/index.js +0 -0
- /package/dist/{src → module}/components/Participant/index.js +0 -0
- /package/dist/{src → module}/components/index.js +0 -0
- /package/dist/{src → module}/components/utility/index.js +0 -0
- /package/dist/{src → module}/contexts/index.js +0 -0
- /package/dist/{src → module}/hooks/index.js +0 -0
- /package/dist/{src → module}/icons/index.js +0 -0
- /package/dist/{src → module}/providers/index.js +0 -0
- /package/dist/{src → module}/theme/types.js +0 -0
- /package/dist/{src → module}/utils/StreamVideoRN/types.js +0 -0
- /package/dist/{src → module}/utils/hooks/index.js +0 -0
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Image, StyleSheet, Text, View } from 'react-native';
|
|
3
|
-
import { generateCallTitle } from '../../../utils';
|
|
4
|
-
import { useCallStateHooks, useConnectedUser, } from '@stream-io/video-react-bindings';
|
|
5
|
-
import { useTheme } from '../../../contexts/ThemeContext';
|
|
6
|
-
var AvatarModes;
|
|
7
|
-
(function (AvatarModes) {
|
|
8
|
-
AvatarModes["small"] = "sm";
|
|
9
|
-
AvatarModes["medium"] = "md";
|
|
10
|
-
AvatarModes["large"] = "lg";
|
|
11
|
-
})(AvatarModes || (AvatarModes = {}));
|
|
12
|
-
export const UserInfo = ({ includeSelf = false, totalMembersToShow = 3, }) => {
|
|
13
|
-
const { theme: { colors, typefaces, variants: { avatarSizes }, userInfo, }, } = useTheme();
|
|
14
|
-
const connectedUser = useConnectedUser();
|
|
15
|
-
const { useCallMembers } = useCallStateHooks();
|
|
16
|
-
const members = useCallMembers();
|
|
17
|
-
// take the first N members to show their avatars
|
|
18
|
-
const membersToShow = (members || [])
|
|
19
|
-
.filter((user) => user.user_id !== connectedUser?.id || includeSelf)
|
|
20
|
-
.slice(0, totalMembersToShow)
|
|
21
|
-
.map(({ user }) => user);
|
|
22
|
-
if (includeSelf &&
|
|
23
|
-
!membersToShow.find((user) => user.id === connectedUser?.id)) {
|
|
24
|
-
// if the current user is not in the initial batch of members,
|
|
25
|
-
// replace the first item in membersToShow array with the current user
|
|
26
|
-
const self = members.find(({ user }) => user.id === connectedUser?.id);
|
|
27
|
-
if (self) {
|
|
28
|
-
membersToShow.splice(0, 1, self.user);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
const memberUserIds = membersToShow.map((memberToShow) => memberToShow.name ?? memberToShow.id);
|
|
32
|
-
const callTitle = generateCallTitle(memberUserIds, totalMembersToShow);
|
|
33
|
-
const avatarSizeModes = {
|
|
34
|
-
1: AvatarModes.large,
|
|
35
|
-
2: AvatarModes.medium,
|
|
36
|
-
3: AvatarModes.small,
|
|
37
|
-
};
|
|
38
|
-
const mode = avatarSizeModes[memberUserIds.length] || AvatarModes.small;
|
|
39
|
-
const avatarStyles = {
|
|
40
|
-
height: avatarSizes[mode],
|
|
41
|
-
width: avatarSizes[mode],
|
|
42
|
-
borderRadius: avatarSizes[mode] / 2,
|
|
43
|
-
marginVertical: 4,
|
|
44
|
-
};
|
|
45
|
-
const fontStyleByMembersCount = memberUserIds.length > 1 ? typefaces.heading5 : typefaces.heading4;
|
|
46
|
-
return (React.createElement(View, { style: [styles.container, userInfo.container] },
|
|
47
|
-
React.createElement(View, { style: [styles.avatarGroup, userInfo.avatarGroup] }, membersToShow.map((memberToShow) => {
|
|
48
|
-
if (!memberToShow.image) {
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
return (React.createElement(Image, { key: memberToShow.id, style: [avatarStyles],
|
|
52
|
-
// FIXME: use real avatar from coordinator this is temporary
|
|
53
|
-
source: {
|
|
54
|
-
uri: memberToShow.image,
|
|
55
|
-
} }));
|
|
56
|
-
})),
|
|
57
|
-
React.createElement(Text, { style: [
|
|
58
|
-
styles.name,
|
|
59
|
-
fontStyleByMembersCount,
|
|
60
|
-
{ color: colors.static_white },
|
|
61
|
-
userInfo.name,
|
|
62
|
-
] }, callTitle)));
|
|
63
|
-
};
|
|
64
|
-
const styles = StyleSheet.create({
|
|
65
|
-
container: {
|
|
66
|
-
paddingHorizontal: 64,
|
|
67
|
-
display: 'flex',
|
|
68
|
-
flexDirection: 'column',
|
|
69
|
-
justifyContent: 'space-between',
|
|
70
|
-
},
|
|
71
|
-
avatarGroup: {
|
|
72
|
-
display: 'flex',
|
|
73
|
-
flexDirection: 'row',
|
|
74
|
-
justifyContent: 'space-evenly',
|
|
75
|
-
flexWrap: 'wrap',
|
|
76
|
-
},
|
|
77
|
-
name: {
|
|
78
|
-
textAlign: 'center',
|
|
79
|
-
marginTop: 32,
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
//# sourceMappingURL=UserInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserInfo.js","sourceRoot":"","sources":["../../../../../src/components/Call/RingingCallContent/UserInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACL,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,IAAK,WAIJ;AAJD,WAAK,WAAW;IACd,2BAAY,CAAA;IACZ,4BAAa,CAAA;IACb,2BAAY,CAAA;AACd,CAAC,EAJI,WAAW,KAAX,WAAW,QAIf;AAgBD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACvB,WAAW,GAAG,KAAK,EACnB,kBAAkB,GAAG,CAAC,GACT,EAAE,EAAE;IACjB,MAAM,EACJ,KAAK,EAAE,EACL,MAAM,EACN,SAAS,EACT,QAAQ,EAAE,EAAE,WAAW,EAAE,EACzB,QAAQ,GACT,GACF,GAAG,QAAQ,EAAE,CAAC;IACf,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IACzC,MAAM,EAAE,cAAc,EAAE,GAAG,iBAAiB,EAAE,CAAC;IAC/C,MAAM,OAAO,GAAG,cAAc,EAAE,CAAC;IAEjC,iDAAiD;IACjD,MAAM,aAAa,GAAmB,CAAC,OAAO,IAAI,EAAE,CAAC;SAClD,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO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EAAE,EAAE;KACd;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Call/RingingCallContent/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Call/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
|
package/dist/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import React, { useRef, useReducer, useEffect } from 'react';
|
|
2
|
-
import { Animated, PanResponder, Easing, View, StyleSheet, } from 'react-native';
|
|
3
|
-
import { getSnapAlignments, FloatingViewAlignment, getClosestSnapAlignment, floatingChildViewContainerStyle, } from './common';
|
|
4
|
-
const AnimatedFloatingView = ({ initialAlignment, containerWidth, containerHeight, children, }) => {
|
|
5
|
-
// the translate is calculated using distance of dragging (dx, dy)
|
|
6
|
-
// computed value = value + offset
|
|
7
|
-
// Start of a DRAG state: value is (0,0) and offset is the last (translateX, translateY)
|
|
8
|
-
// DRAGGING state: value is always current (dx, dy) and offset is last (translateX, translateY)
|
|
9
|
-
const translateRef = useRef(new Animated.ValueXY());
|
|
10
|
-
const opacity = useRef(new Animated.Value(0));
|
|
11
|
-
const [rectangle, setRectangle] = React.useState();
|
|
12
|
-
// we need to force update the component when the rectangle is available
|
|
13
|
-
// we cannot just rely on the rectangle because it is not available on the first render
|
|
14
|
-
// and we need snapAlignments to be in a Ref so that it can be used in the panResponder's creation Ref
|
|
15
|
-
const [_, forceUpdate] = useReducer((x) => x + 1, 0);
|
|
16
|
-
// the offsets for the translate bounds of the floating view
|
|
17
|
-
// stored in ref, because it is used in the panResponder (which has to be a ref)
|
|
18
|
-
const snapAlignmentsRef = useRef({
|
|
19
|
-
[FloatingViewAlignment.topLeft]: { x: 0, y: 0 },
|
|
20
|
-
[FloatingViewAlignment.topRight]: { x: 0, y: 0 },
|
|
21
|
-
[FloatingViewAlignment.bottomLeft]: { x: 0, y: 0 },
|
|
22
|
-
[FloatingViewAlignment.bottomRight]: { x: 0, y: 0 },
|
|
23
|
-
});
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
if (!rectangle) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const snapAlignments = getSnapAlignments({
|
|
29
|
-
rootContainerDimensions: {
|
|
30
|
-
width: containerWidth,
|
|
31
|
-
height: containerHeight,
|
|
32
|
-
},
|
|
33
|
-
floatingViewDimensions: {
|
|
34
|
-
width: rectangle.width,
|
|
35
|
-
height: rectangle.height,
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
const { x, y } = snapAlignments[initialAlignment];
|
|
39
|
-
snapAlignmentsRef.current = snapAlignments;
|
|
40
|
-
translateRef.current.setOffset({ x, y });
|
|
41
|
-
translateRef.current.setValue({ x: 0, y: 0 });
|
|
42
|
-
opacity.current.setValue(1);
|
|
43
|
-
forceUpdate();
|
|
44
|
-
// any time the dependency changes, we need to snap to the new alignment
|
|
45
|
-
}, [initialAlignment, rectangle, containerWidth, containerHeight]);
|
|
46
|
-
const panResponder = useRef(PanResponder.create({
|
|
47
|
-
onStartShouldSetPanResponder: () => true,
|
|
48
|
-
onMoveShouldSetPanResponder: () => true,
|
|
49
|
-
// while doing move, the value will be set to distance and offset is the current position
|
|
50
|
-
// example if we 100 to the left
|
|
51
|
-
// value is x:-100 y:0, offset is the previous position
|
|
52
|
-
onPanResponderMove: Animated.event([
|
|
53
|
-
null,
|
|
54
|
-
{
|
|
55
|
-
// dx, dy are the accumulated distance of the gesture since the touch started
|
|
56
|
-
dx: translateRef.current.x,
|
|
57
|
-
dy: translateRef.current.y,
|
|
58
|
-
},
|
|
59
|
-
], {
|
|
60
|
-
useNativeDriver: false, // pan responder move event doesn't support nativeDriver
|
|
61
|
-
}),
|
|
62
|
-
onPanResponderGrant: () => {
|
|
63
|
-
// start of a drag value is always (0,0) and offset is the last (translateX, translateY)
|
|
64
|
-
translateRef.current.extractOffset();
|
|
65
|
-
},
|
|
66
|
-
onPanResponderRelease: () => {
|
|
67
|
-
// make offset to 0 and value is set to the current position (so that we can do the timing animation later)
|
|
68
|
-
translateRef.current.flattenOffset();
|
|
69
|
-
// @ts-expect-error panResponder doesn't support nativeDriver so we can use __getValue() safely
|
|
70
|
-
const currentPosition = translateRef.current.__getValue();
|
|
71
|
-
const closestAlignment = getClosestSnapAlignment({
|
|
72
|
-
position: currentPosition,
|
|
73
|
-
snapAlignments: snapAlignmentsRef.current,
|
|
74
|
-
});
|
|
75
|
-
Animated.timing(translateRef.current, {
|
|
76
|
-
toValue: closestAlignment,
|
|
77
|
-
duration: 300,
|
|
78
|
-
useNativeDriver: true,
|
|
79
|
-
easing: Easing.inOut(Easing.quad),
|
|
80
|
-
}).start();
|
|
81
|
-
},
|
|
82
|
-
})).current;
|
|
83
|
-
useEffect(() => {
|
|
84
|
-
console.info('react-native-reanimated and/or react-native-gesture-handler libraries are not installed. Please install them to get a more performant draggable local video component');
|
|
85
|
-
}, []);
|
|
86
|
-
const containerStyle = {
|
|
87
|
-
...styles.animContainer,
|
|
88
|
-
height: rectangle?.height,
|
|
89
|
-
width: rectangle?.width,
|
|
90
|
-
// do not show anything in the UI until we have the rectangle (onLayout)
|
|
91
|
-
opacity: opacity.current,
|
|
92
|
-
// we use interpolation to keep the value in the bounds of the necessary FloatingViewAlignment
|
|
93
|
-
transform: [
|
|
94
|
-
{
|
|
95
|
-
translateX: translateRef.current.x.interpolate({
|
|
96
|
-
inputRange: [
|
|
97
|
-
0,
|
|
98
|
-
snapAlignmentsRef.current[FloatingViewAlignment.topRight].x,
|
|
99
|
-
],
|
|
100
|
-
outputRange: [
|
|
101
|
-
0,
|
|
102
|
-
snapAlignmentsRef.current[FloatingViewAlignment.topRight].x,
|
|
103
|
-
],
|
|
104
|
-
extrapolate: 'clamp',
|
|
105
|
-
}),
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
translateY: translateRef.current.y.interpolate({
|
|
109
|
-
inputRange: [
|
|
110
|
-
0,
|
|
111
|
-
snapAlignmentsRef.current[FloatingViewAlignment.bottomRight].y,
|
|
112
|
-
],
|
|
113
|
-
outputRange: [
|
|
114
|
-
0,
|
|
115
|
-
snapAlignmentsRef.current[FloatingViewAlignment.bottomRight].y,
|
|
116
|
-
],
|
|
117
|
-
extrapolate: 'clamp',
|
|
118
|
-
}),
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
};
|
|
122
|
-
return (React.createElement(Animated.View, { style: containerStyle, ...panResponder.panHandlers },
|
|
123
|
-
React.createElement(View, { onLayout: (event) => {
|
|
124
|
-
const layout = event.nativeEvent.layout;
|
|
125
|
-
setRectangle((prev) => {
|
|
126
|
-
if (prev &&
|
|
127
|
-
prev.width === layout.width &&
|
|
128
|
-
prev.height === layout.height &&
|
|
129
|
-
prev.x === layout.x &&
|
|
130
|
-
prev.y === layout.y) {
|
|
131
|
-
return prev;
|
|
132
|
-
}
|
|
133
|
-
return layout;
|
|
134
|
-
});
|
|
135
|
-
}, style: floatingChildViewContainerStyle }, children)));
|
|
136
|
-
};
|
|
137
|
-
const styles = StyleSheet.create({
|
|
138
|
-
animContainer: {
|
|
139
|
-
position: 'absolute',
|
|
140
|
-
top: 0,
|
|
141
|
-
left: 0,
|
|
142
|
-
},
|
|
143
|
-
});
|
|
144
|
-
export default AnimatedFloatingView;
|
|
145
|
-
//# sourceMappingURL=AnimatedFloatingView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedFloatingView.js","sourceRoot":"","sources":["../../../../../../src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EACL,QAAQ,EAER,YAAY,EACZ,MAAM,EACN,IAAI,EACJ,UAAU,GACX,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,+BAA+B,GAChC,MAAM,UAAU,CAAC;AAElB,MAAM,oBAAoB,GAAG,CAAC,EAC5B,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,QAAQ,GACU,EAAE,EAAE;IACtB,kEAAkE;IAClE,kCAAkC;IAClC,wFAAwF;IACxF,+FAA+F;IAC/F,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAmB,CAAC;IAEpE,wEAAwE;IACxE,uFAAuF;IACvF,sGAAsG;IACtG,MAAM,CAAC,CAAC,EAAE,WAAW,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAErD,4DAA4D;IAC5D,gFAAgF;IAChF,MAAM,iBAAiB,GAAG,MAAM,CAAuC;QACrE,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;QAC/C,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;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M,CAAC;gBAChB,CAAC,CAAC,CAAC;YACL,CAAC,EACD,KAAK,EAAE,+BAA+B,IAErC,QAAQ,CACJ,CACO,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,aAAa,EAAE;QACb,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, useEffect, useRef } from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import { FloatingViewAlignment, getSnapAlignments, getClosestSnapAlignment, floatingChildViewContainerStyle, } from './common';
|
|
4
|
-
let ReanimatedFloatingView = () => {
|
|
5
|
-
throw new Error('ReanimatedFloatingView component must not be used without the react-native-reanimated library and react-native-gesture-handler library installed');
|
|
6
|
-
};
|
|
7
|
-
try {
|
|
8
|
-
const { Gesture, GestureDetector, } = require('react-native-gesture-handler');
|
|
9
|
-
const Reanimated = require('react-native-reanimated').default;
|
|
10
|
-
const { useSharedValue, withTiming, useAnimatedStyle, withDelay, } = require('react-native-reanimated');
|
|
11
|
-
ReanimatedFloatingView = ({ initialAlignment, containerHeight, containerWidth, children, }) => {
|
|
12
|
-
// to store the starting position of the gesture
|
|
13
|
-
const startRef = useRef({
|
|
14
|
-
x: 0,
|
|
15
|
-
y: 0,
|
|
16
|
-
});
|
|
17
|
-
// to store the necessary translate x, y position
|
|
18
|
-
const translationX = useSharedValue(0);
|
|
19
|
-
const translationY = useSharedValue(0);
|
|
20
|
-
// we don't want to show the floating view until we have the layout rectangle
|
|
21
|
-
const opacity = useSharedValue(0);
|
|
22
|
-
const [rectangle, setRectangle] = React.useState();
|
|
23
|
-
const snapAlignments = useMemo(() => {
|
|
24
|
-
if (!rectangle) {
|
|
25
|
-
return {
|
|
26
|
-
[FloatingViewAlignment.topLeft]: { x: 0, y: 0 },
|
|
27
|
-
[FloatingViewAlignment.topRight]: { x: 0, y: 0 },
|
|
28
|
-
[FloatingViewAlignment.bottomLeft]: { x: 0, y: 0 },
|
|
29
|
-
[FloatingViewAlignment.bottomRight]: { x: 0, y: 0 },
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
return getSnapAlignments({
|
|
33
|
-
rootContainerDimensions: {
|
|
34
|
-
width: containerWidth,
|
|
35
|
-
height: containerHeight,
|
|
36
|
-
},
|
|
37
|
-
floatingViewDimensions: {
|
|
38
|
-
width: rectangle.width,
|
|
39
|
-
height: rectangle.height,
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
}, [rectangle, containerWidth, containerHeight]);
|
|
43
|
-
const dragGesture = useMemo(() => Gesture.Pan()
|
|
44
|
-
.onStart((_e) => {
|
|
45
|
-
// store the starting position of the gesture
|
|
46
|
-
startRef.current = {
|
|
47
|
-
x: translationX.value,
|
|
48
|
-
y: translationY.value,
|
|
49
|
-
};
|
|
50
|
-
})
|
|
51
|
-
.onUpdate((e) => {
|
|
52
|
-
// update the translation with the distance of the gesture + starting position
|
|
53
|
-
translationX.value = Math.max(0, Math.min(e.translationX + (startRef.current?.x ?? 0), snapAlignments[FloatingViewAlignment.bottomRight].x));
|
|
54
|
-
translationY.value = Math.max(0, Math.min(e.translationY + (startRef.current?.y ?? 0), snapAlignments[FloatingViewAlignment.bottomRight].y));
|
|
55
|
-
})
|
|
56
|
-
.onEnd(() => {
|
|
57
|
-
// snap to the closest alignment with a spring animation
|
|
58
|
-
const position = {
|
|
59
|
-
x: translationX.value,
|
|
60
|
-
y: translationY.value,
|
|
61
|
-
};
|
|
62
|
-
const closestAlignment = getClosestSnapAlignment({
|
|
63
|
-
position,
|
|
64
|
-
snapAlignments,
|
|
65
|
-
});
|
|
66
|
-
translationX.value = withTiming(closestAlignment.x);
|
|
67
|
-
translationY.value = withTiming(closestAlignment.y);
|
|
68
|
-
}), [snapAlignments, translationX, translationY]);
|
|
69
|
-
useEffect(() => {
|
|
70
|
-
if (!rectangle) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
const alignment = snapAlignments[initialAlignment];
|
|
74
|
-
startRef.current = alignment;
|
|
75
|
-
translationX.value = alignment.x;
|
|
76
|
-
translationY.value = alignment.y;
|
|
77
|
-
// add a small delay to the opacity animation to avoid
|
|
78
|
-
// the floating view to be visible when it is being moved
|
|
79
|
-
opacity.value = withDelay(500, withTiming(1, { duration: 50 }));
|
|
80
|
-
}, [
|
|
81
|
-
rectangle,
|
|
82
|
-
snapAlignments,
|
|
83
|
-
initialAlignment,
|
|
84
|
-
opacity,
|
|
85
|
-
translationX,
|
|
86
|
-
translationY,
|
|
87
|
-
]);
|
|
88
|
-
const animatedStyle = useAnimatedStyle(() => {
|
|
89
|
-
return {
|
|
90
|
-
height: rectangle?.height,
|
|
91
|
-
width: rectangle?.width,
|
|
92
|
-
opacity: opacity.value,
|
|
93
|
-
// to keep the value in the bounds we use min and max
|
|
94
|
-
transform: [
|
|
95
|
-
{
|
|
96
|
-
translateX: translationX.value,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
translateY: translationY.value,
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
};
|
|
103
|
-
});
|
|
104
|
-
return (
|
|
105
|
-
// gesture handler root view must absolutely fill the bounds
|
|
106
|
-
// to intercept gestures within those bounds
|
|
107
|
-
React.createElement(GestureDetector, { gesture: dragGesture },
|
|
108
|
-
React.createElement(Reanimated.View, { style: animatedStyle },
|
|
109
|
-
React.createElement(View, { onLayout: (event) => {
|
|
110
|
-
const layout = event.nativeEvent.layout;
|
|
111
|
-
setRectangle((prev) => {
|
|
112
|
-
if (prev &&
|
|
113
|
-
prev.width === layout.width &&
|
|
114
|
-
prev.height === layout.height &&
|
|
115
|
-
prev.x === layout.x &&
|
|
116
|
-
prev.y === layout.y) {
|
|
117
|
-
return prev;
|
|
118
|
-
}
|
|
119
|
-
return layout;
|
|
120
|
-
});
|
|
121
|
-
}, style: floatingChildViewContainerStyle }, children))));
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
catch (e) { }
|
|
125
|
-
export default ReanimatedFloatingView;
|
|
126
|
-
//# sourceMappingURL=ReanimatedFloatingView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReanimatedFloatingView.js","sourceRoot":"","sources":["../../../../../../src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAoB,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAmB,IAAI,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,+BAA+B,GAEhC,MAAM,UAAU,CAAC;AAKlB,IAAI,sBAAsB,GAAgC,GAAG,EAAE;IAC7D,MAAM,IAAI,KAAK,CACb,kJAAkJ,CACnJ,CAAC;AACJ,CAAC,CAAC;AAEF,IAAI;IACF,MAAM,EACJ,OAAO,EACP,eAAe,GAChB,GAGG,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAC5C,MAAM,UAAU,GACd,OAAO,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC;IAC7C,MAAM,EACJ,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,SAAS,GACV,GAKG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAEvC,sBAAsB,GAAG,CAAC,EACxB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,QAAQ,GACU,EAAE,EAAE;QACtB,gDAAgD;QAChD,MAAM,QAAQ,GAAsD,MAAM,CAGvE;YACD,CAAC,EAAE,CAAC;YACJ,CAAC,EAAE,CAAC;SACL,CAAC,CAAC;QACH,iDAAiD;QACjD,MAAM,YAAY,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;QACvC,MAAM,YAAY,GAAG,cA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C,EACnB;gCACA,OAAO,IAAI,CAAC;6BACb;4BACD,OAAO,MAAM,CAAC;wBAChB,CAAC,CAAC,CAAC;oBACL,CAAC,EACD,KAAK,EAAE,+BAA+B,IAErC,QAAQ,CACJ,CACS,CACF,CACnB,CAAC;IACJ,CAAC,CAAC;CACH;AAAC,OAAO,CAAC,EAAE,GAAE;AAEd,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
export declare enum FloatingViewAlignment {
|
|
4
|
-
topLeft = 0,
|
|
5
|
-
topRight = 1,
|
|
6
|
-
bottomLeft = 2,
|
|
7
|
-
bottomRight = 3
|
|
8
|
-
}
|
|
9
|
-
export type SnapAlignments = Record<FloatingViewAlignment, {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
}>;
|
|
13
|
-
export declare function getSnapAlignments({ rootContainerDimensions, floatingViewDimensions, }: {
|
|
14
|
-
rootContainerDimensions: {
|
|
15
|
-
width: number;
|
|
16
|
-
height: number;
|
|
17
|
-
};
|
|
18
|
-
floatingViewDimensions: {
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
};
|
|
22
|
-
}): SnapAlignments;
|
|
23
|
-
export declare function getClosestSnapAlignment({ position, snapAlignments, }: {
|
|
24
|
-
position: {
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
};
|
|
28
|
-
snapAlignments: SnapAlignments;
|
|
29
|
-
}): {
|
|
30
|
-
x: number;
|
|
31
|
-
y: number;
|
|
32
|
-
};
|
|
33
|
-
export type FloatingViewProps = React.PropsWithChildren<{
|
|
34
|
-
initialAlignment: FloatingViewAlignment;
|
|
35
|
-
containerWidth: number;
|
|
36
|
-
containerHeight: number;
|
|
37
|
-
}>;
|
|
38
|
-
export declare const floatingChildViewContainerStyle: StyleProp<ViewStyle>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export var FloatingViewAlignment;
|
|
2
|
-
(function (FloatingViewAlignment) {
|
|
3
|
-
// Aligns the floating view to the top left corner.
|
|
4
|
-
FloatingViewAlignment[FloatingViewAlignment["topLeft"] = 0] = "topLeft";
|
|
5
|
-
// Aligns the floating view to the top right corner.
|
|
6
|
-
FloatingViewAlignment[FloatingViewAlignment["topRight"] = 1] = "topRight";
|
|
7
|
-
// Aligns the floating view to the bottom left corner.
|
|
8
|
-
FloatingViewAlignment[FloatingViewAlignment["bottomLeft"] = 2] = "bottomLeft";
|
|
9
|
-
// Aligns the floating view to the bottom right corner.
|
|
10
|
-
FloatingViewAlignment[FloatingViewAlignment["bottomRight"] = 3] = "bottomRight";
|
|
11
|
-
})(FloatingViewAlignment || (FloatingViewAlignment = {}));
|
|
12
|
-
// find the bounds for the floating view
|
|
13
|
-
export function getSnapAlignments({ rootContainerDimensions, floatingViewDimensions, }) {
|
|
14
|
-
const right = rootContainerDimensions.width - floatingViewDimensions.width;
|
|
15
|
-
const bottom = rootContainerDimensions.height - floatingViewDimensions.height;
|
|
16
|
-
const snapOffsets = {
|
|
17
|
-
[FloatingViewAlignment.topLeft]: {
|
|
18
|
-
x: 0,
|
|
19
|
-
y: 0,
|
|
20
|
-
},
|
|
21
|
-
[FloatingViewAlignment.topRight]: {
|
|
22
|
-
x: right,
|
|
23
|
-
y: 0,
|
|
24
|
-
},
|
|
25
|
-
[FloatingViewAlignment.bottomLeft]: {
|
|
26
|
-
x: 0,
|
|
27
|
-
y: bottom,
|
|
28
|
-
},
|
|
29
|
-
[FloatingViewAlignment.bottomRight]: {
|
|
30
|
-
x: right,
|
|
31
|
-
y: bottom,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
return snapOffsets;
|
|
35
|
-
}
|
|
36
|
-
// which is the closest snap alignment to the current position?
|
|
37
|
-
// this is done by finding the closest snap offset by computing which point is
|
|
38
|
-
// in the minimum distance between the current position and all the 4 snap offset bounds
|
|
39
|
-
export function getClosestSnapAlignment({ position, snapAlignments, }) {
|
|
40
|
-
'worklet';
|
|
41
|
-
let minDistanceSquared = Number.MAX_VALUE;
|
|
42
|
-
let closestSnapAlignmentKey = FloatingViewAlignment.topRight;
|
|
43
|
-
for (const key in snapAlignments) {
|
|
44
|
-
// NOTE: key is a string always but we know that it is a FloatingViewAlignment, so we have to cast it unfortunately
|
|
45
|
-
const currentAlignmentKey = key;
|
|
46
|
-
const offset = snapAlignments[currentAlignmentKey];
|
|
47
|
-
const currDistanceSquared = (offset.x - position.x) * (offset.x - position.x) +
|
|
48
|
-
(offset.y - position.y) * (offset.y - position.y);
|
|
49
|
-
if (currDistanceSquared < minDistanceSquared) {
|
|
50
|
-
minDistanceSquared = currDistanceSquared;
|
|
51
|
-
closestSnapAlignmentKey = currentAlignmentKey;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return snapAlignments[closestSnapAlignmentKey];
|
|
55
|
-
}
|
|
56
|
-
export const floatingChildViewContainerStyle = {
|
|
57
|
-
alignSelf: 'flex-start',
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../src/components/Participant/FloatingParticipantView/FloatingView/common.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,qBAYX;AAZD,WAAY,qBAAqB;IAC/B,mDAAmD;IACnD,uEAAO,CAAA;IAEP,oDAAoD;IACpD,yEAAQ,CAAA;IAER,sDAAsD;IACtD,6EAAU,CAAA;IAEV,uDAAuD;IACvD,+EAAW,CAAA;AACb,CAAC,EAZW,qBAAqB,KAArB,qBAAqB,QAYhC;AAOD,wCAAwC;AACxC,MAAM,UAAU,iBAAiB,CAAC,EAChC,uBAAuB,EACvB,sBAAsB,GAIvB;IACC,MAAM,KAAK,GAAG,uBAAuB,CAAC,KAAK,GAAG,sBAAsB,CAAC,KAAK,CAAC;IAC3E,MAAM,MAA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G,mBAAmB,CAAC;YACzC,uBAAuB,GAAG,mBAAmB,CAAC;SAC/C;KACF;IACD,OAAO,cAAc,CAAC,uBAAuB,CAAC,CAAC;AACjD,CAAC;AAQD,MAAM,CAAC,MAAM,+BAA+B,GAAyB;IACnE,SAAS,EAAE,YAAY;CACxB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { getGestureHandlerLib, getReanimatedLib, } from '../../../../utils/internal/optionalLibs';
|
|
2
|
-
const FloatingView = getReanimatedLib() && getGestureHandlerLib()
|
|
3
|
-
? require('./ReanimatedFloatingView').default
|
|
4
|
-
: require('./AnimatedFloatingView').default;
|
|
5
|
-
export default FloatingView;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/Participant/FloatingParticipantView/FloatingView/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,yCAAyC,CAAC;AAGjD,MAAM,YAAY,GAChB,gBAAgB,EAAE,IAAI,oBAAoB,EAAE;IAC1C,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,OAAO;IAC7C,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,OAAO,CAAC;AAEhD,eAAe,YAAY,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import { CallParticipantsListProps } from '../../Call';
|
|
3
|
-
import { ParticipantViewComponentProps } from '../ParticipantView';
|
|
4
|
-
import { StreamVideoParticipant } from '@stream-io/video-client';
|
|
5
|
-
export type FloatingParticipantViewAlignment = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
6
|
-
/**
|
|
7
|
-
* Props to be passed for the LocalVideoView component.
|
|
8
|
-
*/
|
|
9
|
-
export type FloatingParticipantViewProps = ParticipantViewComponentProps & Pick<CallParticipantsListProps, 'ParticipantView'> & {
|
|
10
|
-
/**
|
|
11
|
-
* Determines where the floating participant video will be placed.
|
|
12
|
-
*/
|
|
13
|
-
alignment?: FloatingParticipantViewAlignment;
|
|
14
|
-
/**
|
|
15
|
-
* The participant to be rendered in the FloatingParticipantView
|
|
16
|
-
*/
|
|
17
|
-
participant?: StreamVideoParticipant;
|
|
18
|
-
/**
|
|
19
|
-
* Custom style to be merged with the floating participant view.
|
|
20
|
-
*/
|
|
21
|
-
style?: StyleProp<ViewStyle>;
|
|
22
|
-
/**
|
|
23
|
-
* Handler used to handle actions on click of the participant view in FloatingParticipantView.
|
|
24
|
-
* Eg: Can be used to handle participant switch on click.
|
|
25
|
-
*/
|
|
26
|
-
onPressHandler?: () => void;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* A component to render the floating participant's video.
|
|
30
|
-
*/
|
|
31
|
-
export declare const FloatingParticipantView: ({ alignment, onPressHandler, participant, style, ParticipantView, ParticipantNetworkQualityIndicator, ParticipantReaction, VideoRenderer, }: FloatingParticipantViewProps) => JSX.Element | null;
|