@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
package/dist/src/utils/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// Utility to join strings with commas and 'and'
|
|
2
|
-
export const generateCallTitle = (memberUserIds, totalMembersToShow) => {
|
|
3
|
-
const supportedAmountOfMemberUserIds = memberUserIds.slice(0, totalMembersToShow);
|
|
4
|
-
if (totalMembersToShow &&
|
|
5
|
-
supportedAmountOfMemberUserIds.length < totalMembersToShow) {
|
|
6
|
-
return supportedAmountOfMemberUserIds.join(' and ');
|
|
7
|
-
}
|
|
8
|
-
const allMembersExceptLast = supportedAmountOfMemberUserIds.slice(0, -1);
|
|
9
|
-
const lastMember = supportedAmountOfMemberUserIds.slice(-1)[0];
|
|
10
|
-
return `${allMembersExceptLast.join(', ')}, and ${lastMember}`;
|
|
11
|
-
};
|
|
12
|
-
// Utility to truncate long strings
|
|
13
|
-
export const generateParticipantTitle = (memberUserId) => {
|
|
14
|
-
return memberUserId.length > 15
|
|
15
|
-
? memberUserId.slice(0, 15) + '...'
|
|
16
|
-
: memberUserId;
|
|
17
|
-
};
|
|
18
|
-
// Utility to get initials of a name
|
|
19
|
-
export const getInitialsOfName = (name) => {
|
|
20
|
-
const names = name.split(' ');
|
|
21
|
-
let initials = names[0].substring(0, 1).toUpperCase();
|
|
22
|
-
if (names.length > 1) {
|
|
23
|
-
initials += names[names.length - 1].substring(0, 1).toUpperCase();
|
|
24
|
-
}
|
|
25
|
-
return initials;
|
|
26
|
-
};
|
|
27
|
-
export * from './StreamVideoRN';
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,MAAM,CAAC,MAAM,iBAAiB,GAA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D,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react-native-reanimated" />
|
|
2
|
-
export type GestureHandlerType = typeof import('react-native-gesture-handler');
|
|
3
|
-
export type ReanimatedType = typeof import('react-native-reanimated');
|
|
4
|
-
export declare const getReanimatedLib: (onPackageNotFound?: () => void) => typeof import("react-native-reanimated") | undefined;
|
|
5
|
-
export declare const getGestureHandlerLib: (onPackageNotFound?: () => void) => typeof import("react-native-gesture-handler") | undefined;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
let gestureHandler;
|
|
2
|
-
let reanimated;
|
|
3
|
-
try {
|
|
4
|
-
gestureHandler = require('react-native-gesture-handler');
|
|
5
|
-
}
|
|
6
|
-
catch (e) { }
|
|
7
|
-
try {
|
|
8
|
-
reanimated = require('react-native-reanimated');
|
|
9
|
-
}
|
|
10
|
-
catch (e) { }
|
|
11
|
-
export const getReanimatedLib = (onPackageNotFound = () => { }) => {
|
|
12
|
-
if (!reanimated) {
|
|
13
|
-
onPackageNotFound();
|
|
14
|
-
}
|
|
15
|
-
return reanimated;
|
|
16
|
-
};
|
|
17
|
-
export const getGestureHandlerLib = (onPackageNotFound = () => { }) => {
|
|
18
|
-
if (!gestureHandler) {
|
|
19
|
-
onPackageNotFound();
|
|
20
|
-
}
|
|
21
|
-
return gestureHandler;
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=optionalLibs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"optionalLibs.js","sourceRoot":"","sources":["../../../../src/utils/internal/optionalLibs.ts"],"names":[],"mappings":"AAGA,IAAI,cAA8C,CAAC;AACnD,IAAI,UAAsC,CAAC;AAE3C,IAAI;IACF,cAAc,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;CAC1D;AAAC,OAAO,CAAC,EAAE,GAAE;AAEd,IAAI;IACF,UAAU,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACjD;AAAC,OAAO,CAAC,EAAE,GAAE;AAEd,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,iBAAiB,GAAG,GAAG,EAAE,GAAE,CAAC,EAAE,EAAE;IAC/D,IAAI,CAAC,UAAU,EAAE;QACf,iBAAiB,EAAE,CAAC;KACrB;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,iBAAiB,GAAG,GAAG,EAAE,GAAE,CAAC,EAAE,EAAE;IACnE,IAAI,CAAC,cAAc,EAAE;QACnB,iBAAiB,EAAE,CAAC;KACrB;IACD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { StreamVideoClient } from '@stream-io/video-client';
|
|
2
|
-
import type { StreamVideoConfig } from '../StreamVideoRN/types';
|
|
3
|
-
type PushConfig = NonNullable<StreamVideoConfig['push']>;
|
|
4
|
-
/** Setup Firebase push message handler **/
|
|
5
|
-
export declare function setupFirebaseHandlerAndroid(pushConfig: PushConfig): void;
|
|
6
|
-
/** Send token to stream, create notification channel, */
|
|
7
|
-
export declare function initAndroidPushToken(client: StreamVideoClient, pushConfig: PushConfig): Promise<void>;
|
|
8
|
-
export {};
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import notifee, { EventType } from '@notifee/react-native';
|
|
2
|
-
import { Platform } from 'react-native';
|
|
3
|
-
import { getFirebaseMessagingLib } from './libs';
|
|
4
|
-
import { pushAcceptedIncomingCallCId$, pushRejectedIncomingCallCId$, pushTappedIncomingCallCId$, } from './rxSubjects';
|
|
5
|
-
import { processCallFromPushInBackground } from './utils';
|
|
6
|
-
const ACCEPT_CALL_ACTION_ID = 'accept';
|
|
7
|
-
const DECLINE_CALL_ACTION_ID = 'decline';
|
|
8
|
-
/** Setup Firebase push message handler **/
|
|
9
|
-
export function setupFirebaseHandlerAndroid(pushConfig) {
|
|
10
|
-
if (Platform.OS !== 'android') {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
const messaging = getFirebaseMessagingLib();
|
|
14
|
-
messaging().setBackgroundMessageHandler(async (msg) => await firebaseMessagingOnMessageHandler(msg, pushConfig));
|
|
15
|
-
// messaging().onMessage(firebaseMessagingOnMessageHandler); // this is to listen to foreground messages, which we dont need for now
|
|
16
|
-
notifee.onBackgroundEvent(async (event) => {
|
|
17
|
-
// NOTE: When app was opened from a quit state, we will never hit this when on accept event as app will open and the click event will go to foreground
|
|
18
|
-
await onNotifeeEvent(event, pushConfig);
|
|
19
|
-
});
|
|
20
|
-
notifee.onForegroundEvent((event) => {
|
|
21
|
-
// NOTE: When app was opened from a quit state, we will never hit this when on accept event as app will open and go to foreground immediately
|
|
22
|
-
onNotifeeEvent(event, pushConfig);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
/** Send token to stream, create notification channel, */
|
|
26
|
-
export async function initAndroidPushToken(client, pushConfig) {
|
|
27
|
-
if (Platform.OS !== 'android') {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const messaging = getFirebaseMessagingLib();
|
|
31
|
-
const token = await messaging().getToken();
|
|
32
|
-
const push_provider_name = pushConfig.android.pushProviderName;
|
|
33
|
-
await client.addDevice(token, 'firebase', push_provider_name);
|
|
34
|
-
}
|
|
35
|
-
const firebaseMessagingOnMessageHandler = async (message, pushConfig) => {
|
|
36
|
-
if (Platform.OS !== 'android') {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
/* Example data from firebase
|
|
40
|
-
"message": {
|
|
41
|
-
"data": {
|
|
42
|
-
call_cid: 'audio_room:dcc1638c-e90d-4dcb-bf3b-8fa7767bfbb0',
|
|
43
|
-
call_display_name: '',
|
|
44
|
-
created_by_display_name: 'tommaso',
|
|
45
|
-
created_by_id: 'tommaso-03dcddb7-e9e2-42ec-b2f3-5043aac666ee',
|
|
46
|
-
receiver_id: 'martin-21824f17-319b-401b-a61b-fcab646f0d3f',
|
|
47
|
-
sender: 'stream.video',
|
|
48
|
-
type: 'call.live_started',
|
|
49
|
-
version: 'v2'
|
|
50
|
-
},
|
|
51
|
-
// other stuff
|
|
52
|
-
}
|
|
53
|
-
*/
|
|
54
|
-
const data = message.data;
|
|
55
|
-
if (!data || data.sender !== 'stream.video') {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
await notifee.createChannel(pushConfig.android.incomingCallChannel);
|
|
59
|
-
const { getTitle, getBody } = pushConfig.android.incomingCallNotificationTextGetters;
|
|
60
|
-
const channelId = pushConfig.android.incomingCallChannel.id;
|
|
61
|
-
const createdUserName = data.created_by_display_name;
|
|
62
|
-
await notifee.displayNotification({
|
|
63
|
-
title: getTitle(createdUserName),
|
|
64
|
-
body: getBody(createdUserName),
|
|
65
|
-
data,
|
|
66
|
-
android: {
|
|
67
|
-
channelId,
|
|
68
|
-
pressAction: {
|
|
69
|
-
id: 'default',
|
|
70
|
-
launchActivity: 'default', // open the app when the notification is pressed
|
|
71
|
-
},
|
|
72
|
-
actions: [
|
|
73
|
-
{
|
|
74
|
-
title: 'Decline',
|
|
75
|
-
pressAction: {
|
|
76
|
-
id: DECLINE_CALL_ACTION_ID,
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
title: 'Accept',
|
|
81
|
-
pressAction: {
|
|
82
|
-
id: ACCEPT_CALL_ACTION_ID,
|
|
83
|
-
launchActivity: 'default', // open the app when the notification is pressed
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
timeoutAfter: 60000, // 60 seconds, after which the notification will be dismissed automatically
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
const onNotifeeEvent = async (event, pushConfig) => {
|
|
92
|
-
const { type, detail } = event;
|
|
93
|
-
const { notification, pressAction } = detail;
|
|
94
|
-
const notificationId = notification?.id;
|
|
95
|
-
const data = notification?.data;
|
|
96
|
-
if (!data ||
|
|
97
|
-
!pressAction ||
|
|
98
|
-
!notificationId ||
|
|
99
|
-
data.sender !== 'stream.video') {
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
// we can safely cast to string because the data is from "stream.video"
|
|
103
|
-
const call_cid = data.call_cid;
|
|
104
|
-
// check if we have observers for the call cid (this means the app is in the foreground state)
|
|
105
|
-
const hasObservers = pushAcceptedIncomingCallCId$.observed &&
|
|
106
|
-
pushRejectedIncomingCallCId$.observed;
|
|
107
|
-
// Check if we need to decline the call
|
|
108
|
-
const didPressDecline = type === EventType.ACTION_PRESS &&
|
|
109
|
-
pressAction.id === DECLINE_CALL_ACTION_ID;
|
|
110
|
-
const didDismiss = type === EventType.DISMISSED;
|
|
111
|
-
const mustDecline = didPressDecline || didDismiss;
|
|
112
|
-
// Check if we need to accept the call
|
|
113
|
-
const mustAccept = type === EventType.ACTION_PRESS && pressAction.id === ACCEPT_CALL_ACTION_ID;
|
|
114
|
-
if (mustAccept) {
|
|
115
|
-
pushAcceptedIncomingCallCId$.next(call_cid);
|
|
116
|
-
// NOTE: accept will be handled by the app with rxjs observers as the app will go to foreground always
|
|
117
|
-
}
|
|
118
|
-
else if (mustDecline) {
|
|
119
|
-
pushRejectedIncomingCallCId$.next(call_cid);
|
|
120
|
-
if (hasObservers) {
|
|
121
|
-
// if we had observers we can return here as the observers will handle the call as the app is in the foreground state
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
await processCallFromPushInBackground(pushConfig, call_cid, 'decline');
|
|
125
|
-
}
|
|
126
|
-
else if (type === EventType.PRESS) {
|
|
127
|
-
pushTappedIncomingCallCId$.next(call_cid);
|
|
128
|
-
// pressed state will be handled by the app with rxjs observers as the app will go to foreground always
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
//# sourceMappingURL=android.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"android.js","sourceRoot":"","sources":["../../../../src/utils/push/android.ts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YAChB,qHAAqH;YACrH,OAAO;SACR;QACD,MAAM,+BAA+B,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;KACxE;SAAM,IAAI,IAAI,KAAK,SAAS,CAAC,KAAK,EAAE;QACnC,0BAA0B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1C,uGAAuG;KACxG;AACH,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { StreamVideoConfig } from '../StreamVideoRN/types';
|
|
2
|
-
type PushConfig = NonNullable<StreamVideoConfig['push']>;
|
|
3
|
-
export declare const iosCallkeepAcceptCall: (call_cid: string | undefined, callUUIDFromCallkeep: string) => void;
|
|
4
|
-
export declare const iosCallkeepRejectCall: (call_cid: string | undefined, callUUIDFromCallkeep: string, pushConfig: PushConfig) => Promise<void>;
|
|
5
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { pushAcceptedIncomingCallCId$, voipPushNotificationCallCId$, voipCallkeepCallOnForegroundMap$, voipCallkeepAcceptedCallOnNativeDialerMap$, } from './rxSubjects';
|
|
2
|
-
import { processCallFromPushInBackground } from './utils';
|
|
3
|
-
export const iosCallkeepAcceptCall = (call_cid, callUUIDFromCallkeep) => {
|
|
4
|
-
if (!shouldProcessCallFromCallkeep(call_cid, callUUIDFromCallkeep)) {
|
|
5
|
-
return;
|
|
6
|
-
}
|
|
7
|
-
// to call end callkeep later if ended in app and not through callkeep
|
|
8
|
-
voipCallkeepAcceptedCallOnNativeDialerMap$.next({
|
|
9
|
-
uuid: callUUIDFromCallkeep,
|
|
10
|
-
cid: call_cid,
|
|
11
|
-
});
|
|
12
|
-
// to process the call in the app
|
|
13
|
-
pushAcceptedIncomingCallCId$.next(call_cid);
|
|
14
|
-
// no need to keep these references anymore
|
|
15
|
-
voipCallkeepCallOnForegroundMap$.next(undefined);
|
|
16
|
-
};
|
|
17
|
-
export const iosCallkeepRejectCall = async (call_cid, callUUIDFromCallkeep, pushConfig) => {
|
|
18
|
-
if (!shouldProcessCallFromCallkeep(call_cid, callUUIDFromCallkeep)) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
// no need to keep these references anymore
|
|
22
|
-
voipCallkeepAcceptedCallOnNativeDialerMap$.next(undefined);
|
|
23
|
-
voipCallkeepCallOnForegroundMap$.next(undefined);
|
|
24
|
-
voipPushNotificationCallCId$.next(undefined);
|
|
25
|
-
await processCallFromPushInBackground(pushConfig, call_cid, 'decline');
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Helper function to determine if the answer/end call event from callkeep must be processed
|
|
29
|
-
* Just checks if we have a valid call_cid and acts as a type guard for call_cid
|
|
30
|
-
*/
|
|
31
|
-
const shouldProcessCallFromCallkeep = (call_cid, callUUIDFromCallkeep) => {
|
|
32
|
-
if (!call_cid || !callUUIDFromCallkeep) {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
return true;
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=ios.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ios.js","sourceRoot":"","sources":["../../../../src/utils/push/ios.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,gCAAgC,EAChC,0CAA0C,GAC3C,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAI1D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,QAA4B,EAC5B,oBAA4B,EAC5B,EAAE;IACF,IAAI,CAAC,6BAA6B,CAAC,QAAQ,EAAE,oBAAoB,CAAC,EAAE;QAClE,OAAO;KACR;IACD,sEAAsE;IACtE,0CAA0C,CAAC,IAAI,CAAC;QAC9C,IAAI,EAAE,oBAAoB;QAC1B,GAAG,EAAE,QAAQ;KACd,CAAC,CAAC;IACH,iCAAiC;IACjC,4BAA4B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5C,2CAA2C;IAC3C,gCAAgC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EACxC,QAA4B,EAC5B,oBAA4B,EAC5B,UAAsB,EACtB,EAAE;IACF,IAAI,CAAC,6BAA6B,CAAC,QAAQ,EAAE,oBAAoB,CAAC,EAAE;QAClE,OAAO;KACR;IACD,2CAA2C;IAC3C,0CAA0C,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3D,gCAAgC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACjD,4BAA4B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC7C,MAAM,+BAA+B,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AACzE,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,6BAA6B,GAAG,CACpC,QAA4B,EAC5B,oBAA4B,EACR,EAAE;IACtB,IAAI,CAAC,QAAQ,IAAI,CAAC,oBAAoB,EAAE;QACtC,OAAO,KAAK,CAAC;KACd;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react-native-callkeep" />
|
|
2
|
-
/// <reference types="react-native-voip-push-notification" />
|
|
3
|
-
export type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
|
|
4
|
-
export type RNCallKeepType = typeof import('react-native-callkeep').default;
|
|
5
|
-
export type FirebaseMessagingType = typeof import('@react-native-firebase/messaging').default;
|
|
6
|
-
export type VoipPushNotificationType = typeof import('react-native-voip-push-notification').default;
|
|
7
|
-
export declare function getCallKeepLib(): typeof import("react-native-callkeep").default;
|
|
8
|
-
export declare function getFirebaseMessagingLib(): import("@react-native-firebase/app").ReactNativeFirebase.FirebaseModuleWithStatics<import("@react-native-firebase/messaging").FirebaseMessagingTypes.Module, import("@react-native-firebase/messaging").FirebaseMessagingTypes.Statics>;
|
|
9
|
-
export declare function getVoipPushNotificationLib(): typeof import("react-native-voip-push-notification").default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
let callkeep;
|
|
2
|
-
let messaging;
|
|
3
|
-
let voipPushNotification;
|
|
4
|
-
try {
|
|
5
|
-
callkeep = require('react-native-callkeep').default;
|
|
6
|
-
}
|
|
7
|
-
catch (e) { }
|
|
8
|
-
try {
|
|
9
|
-
messaging = require('@react-native-firebase/messaging').default;
|
|
10
|
-
}
|
|
11
|
-
catch (e) { }
|
|
12
|
-
try {
|
|
13
|
-
voipPushNotification = require('react-native-voip-push-notification').default;
|
|
14
|
-
}
|
|
15
|
-
catch (e) { }
|
|
16
|
-
export function getCallKeepLib() {
|
|
17
|
-
if (!callkeep) {
|
|
18
|
-
throw Error('react-native-callkeep library is not installed. Please see https://github.com/react-native-webrtc/react-native-callkeep#Installation for installation instructions');
|
|
19
|
-
}
|
|
20
|
-
return callkeep;
|
|
21
|
-
}
|
|
22
|
-
export function getFirebaseMessagingLib() {
|
|
23
|
-
if (!messaging) {
|
|
24
|
-
throw Error('react-native-firebase library is not installed. Please see https://rnfirebase.io/messaging/usage#installation for installation instructions');
|
|
25
|
-
}
|
|
26
|
-
return messaging;
|
|
27
|
-
}
|
|
28
|
-
export function getVoipPushNotificationLib() {
|
|
29
|
-
if (!voipPushNotification) {
|
|
30
|
-
throw Error("react-native-voip-push-notification library is not installed. Please install it using 'yarn add react-native-voip-push-notification' or 'npm install react-native-voip-push-notification'");
|
|
31
|
-
}
|
|
32
|
-
return voipPushNotification;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=libs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"libs.js","sourceRoot":"","sources":["../../../../src/utils/push/libs.ts"],"names":[],"mappings":"AAQA,IAAI,QAAoC,CAAC;AACzC,IAAI,SAA4C,CAAC;AACjD,IAAI,oBAA0D,CAAC;AAE/D,IAAI;IACF,QAAQ,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;CACrD;AAAC,OAAO,CAAC,EAAE,GAAE;AAEd,IAAI;IACF,SAAS,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC,OAAO,CAAC;CACjE;AAAC,OAAO,CAAC,EAAE,GAAE;AAEd,IAAI;IACF,oBAAoB,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC,OAAO,CAAC;CAC/E;AAAC,OAAO,CAAC,EAAE,GAAE;AAEd,MAAM,UAAU,cAAc;IAC5B,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,KAAK,CACT,oKAAoK,CACrK,CAAC;KACH;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,IAAI,CAAC,SAAS,EAAE;QACd,MAAM,KAAK,CACT,6IAA6I,CAC9I,CAAC;KACH;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,0BAA0B;IACxC,IAAI,CAAC,oBAAoB,EAAE;QACzB,MAAM,KAAK,CACT,2LAA2L,CAC5L,CAAC;KACH;IACD,OAAO,oBAAoB,CAAC;AAC9B,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
/**
|
|
3
|
-
* This rxjs subject is used to store the call cid of the accepted incoming call from push notification
|
|
4
|
-
* Note: it is should be subscribed only when a user has connected to the websocket of Stream
|
|
5
|
-
*/
|
|
6
|
-
export declare const pushAcceptedIncomingCallCId$: BehaviorSubject<string | undefined>;
|
|
7
|
-
/**
|
|
8
|
-
* This rxjs subject is used to store the call cid of the tapped incoming call from push notification it is neither accepted nor rejected yet
|
|
9
|
-
* Note: it should be subscribed only when a user has connected to the websocket of Stream
|
|
10
|
-
*/
|
|
11
|
-
export declare const pushTappedIncomingCallCId$: BehaviorSubject<string | undefined>;
|
|
12
|
-
/**
|
|
13
|
-
* This rxjs subject is used to store the call cid of the accepted incoming call from push notification
|
|
14
|
-
* Note: it should be subscribed only when a user has connected to the websocket of Stream
|
|
15
|
-
*/
|
|
16
|
-
export declare const pushRejectedIncomingCallCId$: BehaviorSubject<string | undefined>;
|
|
17
|
-
/**
|
|
18
|
-
* This rxjs subject is used to store the call cid of the incoming call from ios voip pushkit notification
|
|
19
|
-
*/
|
|
20
|
-
export declare const voipPushNotificationCallCId$: BehaviorSubject<string | undefined>;
|
|
21
|
-
/** The pair of cid of a call and its corresponding uuid created in the native side */
|
|
22
|
-
type CallkeepMap = {
|
|
23
|
-
uuid: string;
|
|
24
|
-
cid: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const voipCallkeepCallOnForegroundMap$: BehaviorSubject<CallkeepMap | undefined>;
|
|
27
|
-
export declare const voipCallkeepAcceptedCallOnNativeDialerMap$: BehaviorSubject<CallkeepMap | undefined>;
|
|
28
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
/**
|
|
3
|
-
* This rxjs subject is used to store the call cid of the accepted incoming call from push notification
|
|
4
|
-
* Note: it is should be subscribed only when a user has connected to the websocket of Stream
|
|
5
|
-
*/
|
|
6
|
-
export const pushAcceptedIncomingCallCId$ = new BehaviorSubject(undefined);
|
|
7
|
-
/**
|
|
8
|
-
* This rxjs subject is used to store the call cid of the tapped incoming call from push notification it is neither accepted nor rejected yet
|
|
9
|
-
* Note: it should be subscribed only when a user has connected to the websocket of Stream
|
|
10
|
-
*/
|
|
11
|
-
export const pushTappedIncomingCallCId$ = new BehaviorSubject(undefined);
|
|
12
|
-
/**
|
|
13
|
-
* This rxjs subject is used to store the call cid of the accepted incoming call from push notification
|
|
14
|
-
* Note: it should be subscribed only when a user has connected to the websocket of Stream
|
|
15
|
-
*/
|
|
16
|
-
export const pushRejectedIncomingCallCId$ = new BehaviorSubject(undefined);
|
|
17
|
-
/**
|
|
18
|
-
* This rxjs subject is used to store the call cid of the incoming call from ios voip pushkit notification
|
|
19
|
-
*/
|
|
20
|
-
export const voipPushNotificationCallCId$ = new BehaviorSubject(undefined);
|
|
21
|
-
/*
|
|
22
|
-
* This rxjs subject should only used to store the CallkeepMap
|
|
23
|
-
* for the incoming call when on foreground
|
|
24
|
-
* or in other words, when we get didDisplayIncomingCall from callkeep lib
|
|
25
|
-
*/
|
|
26
|
-
export const voipCallkeepCallOnForegroundMap$ = new BehaviorSubject(undefined);
|
|
27
|
-
/*
|
|
28
|
-
* This rxjs subject should only used to store the CallkeepMap when it was accepted in the native dialer
|
|
29
|
-
*/
|
|
30
|
-
export const voipCallkeepAcceptedCallOnNativeDialerMap$ = new BehaviorSubject(undefined);
|
|
31
|
-
//# sourceMappingURL=rxSubjects.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rxSubjects.js","sourceRoot":"","sources":["../../../../src/utils/push/rxSubjects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAEvC;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,eAAe,CAE7D,SAAS,CAAC,CAAC;AAEb;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,eAAe,CAE3D,SAAS,CAAC,CAAC;AAEb;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,eAAe,CAE7D,SAAS,CAAC,CAAC;AAEb;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,eAAe,CAE7D,SAAS,CAAC,CAAC;AAQb;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,eAAe,CAEjE,SAAS,CAAC,CAAC;AAEb;;GAEG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAG,IAAI,eAAe,CAE3E,SAAS,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { StreamVideoClient } from '@stream-io/video-client';
|
|
2
|
-
import type { StreamVideoConfig } from '../StreamVideoRN/types';
|
|
3
|
-
type PushConfig = NonNullable<StreamVideoConfig['push']>;
|
|
4
|
-
export declare const processCallFromPushInBackground: (pushConfig: PushConfig, call_cid: string, action: Parameters<typeof processCallFromPush>[2]) => Promise<void>;
|
|
5
|
-
/**
|
|
6
|
-
* This function is used process the call from push notifications due to incoming call
|
|
7
|
-
* It does the following steps:
|
|
8
|
-
* 1. Get the call from the client if present or create a new call
|
|
9
|
-
* 2. Fetch the latest state of the call from the server if its not already in ringing state
|
|
10
|
-
* 3. Join or leave the call based on the user's action.
|
|
11
|
-
*/
|
|
12
|
-
export declare const processCallFromPush: (client: StreamVideoClient, call_cid: string, action: 'accept' | 'decline' | 'pressed') => Promise<void>;
|
|
13
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* An action for the notification or callkeep and app does not have JS context setup yet, so we need to do two steps:
|
|
2
|
-
1. we need to create a new client and connect the user to decline the call
|
|
3
|
-
2. this is because the app is in background state and we don't have a client to get the call and do an action
|
|
4
|
-
*/
|
|
5
|
-
export const processCallFromPushInBackground = async (pushConfig, call_cid, action) => {
|
|
6
|
-
let videoClient;
|
|
7
|
-
try {
|
|
8
|
-
videoClient = await pushConfig.createStreamVideoClient();
|
|
9
|
-
if (!videoClient) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
catch (e) {
|
|
14
|
-
console.log('failed to create video client and connect user', e);
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
await processCallFromPush(videoClient, call_cid, action);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* This function is used process the call from push notifications due to incoming call
|
|
21
|
-
* It does the following steps:
|
|
22
|
-
* 1. Get the call from the client if present or create a new call
|
|
23
|
-
* 2. Fetch the latest state of the call from the server if its not already in ringing state
|
|
24
|
-
* 3. Join or leave the call based on the user's action.
|
|
25
|
-
*/
|
|
26
|
-
export const processCallFromPush = async (client, call_cid, action) => {
|
|
27
|
-
let callFromPush;
|
|
28
|
-
try {
|
|
29
|
-
callFromPush = await client.onRingingCall(call_cid);
|
|
30
|
-
}
|
|
31
|
-
catch (e) {
|
|
32
|
-
console.log('failed to fetch call from push notification', e);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
// note: when action was pressed, we dont need to do anything as the only thing is to do is to get the call which adds it to the client
|
|
36
|
-
try {
|
|
37
|
-
if (action === 'accept') {
|
|
38
|
-
await callFromPush.join();
|
|
39
|
-
}
|
|
40
|
-
else if (action === 'decline') {
|
|
41
|
-
await callFromPush.leave({ reject: true });
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
catch (e) {
|
|
45
|
-
console.log('failed to process call from push notification', e, action);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/utils/push/utils.ts"],"names":[],"mappings":"AAKA;;;EAGE;AACF,MAAM,CAAC,MAAM,+BAA+B,GAAG,KAAK,EAClD,UAAsB,EACtB,QAAgB,EAChB,MAAiD,EACjD,EAAE;IACF,IAAI,WAA0C,CAAC;IAE/C,IAAI;QACF,WAAW,GAAG,MAAM,UAAU,CAAC,uBAAuB,EAAE,CAAC;QACzD,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO;SACR;KACF;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,GAAG,CAAC,gDAAgD,EAAE,CAAC,CAAC,CAAC;QACjE,OAAO;KACR;IACD,MAAM,mBAAmB,CAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAAyB,EACzB,QAAgB,EAChB,MAAwC,EACxC,EAAE;IACF,IAAI,YAAkB,CAAC;IACvB,IAAI;QACF,YAAY,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;KACrD;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC;QAC9D,OAAO;KACR;IACD,uIAAuI;IACvI,IAAI;QACF,IAAI,MAAM,KAAK,QAAQ,EAAE;YACvB,MAAM,YAAY,CAAC,IAAI,EAAE,CAAC;SAC3B;aAAM,IAAI,MAAM,KAAK,SAAS,EAAE;YAC/B,MAAM,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;SAC5C;KACF;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,GAAG,CAAC,+CAA+C,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;KACzE;AACH,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const setClientDetails: () => void;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { setSdkInfo, setDeviceInfo, setOSInfo, SfuModels, } from '@stream-io/video-client';
|
|
2
|
-
import { Platform } from 'react-native';
|
|
3
|
-
import { version } from '../../version';
|
|
4
|
-
const [major, minor, patch] = version.split('.');
|
|
5
|
-
export const setClientDetails = () => {
|
|
6
|
-
setSdkInfo({
|
|
7
|
-
type: SfuModels.SdkType.REACT_NATIVE,
|
|
8
|
-
major,
|
|
9
|
-
minor,
|
|
10
|
-
patch,
|
|
11
|
-
});
|
|
12
|
-
let osName = Platform.OS;
|
|
13
|
-
if (Platform.OS === 'ios') {
|
|
14
|
-
// example: "iOS" | "iPadOS"
|
|
15
|
-
osName = Platform.constants.systemName;
|
|
16
|
-
}
|
|
17
|
-
let osVersion = '';
|
|
18
|
-
if (Platform.OS === 'android') {
|
|
19
|
-
// example: "33" - its more OS API level than consumer version
|
|
20
|
-
osVersion = Platform.constants.Version.toString();
|
|
21
|
-
}
|
|
22
|
-
else if (Platform.OS === 'ios') {
|
|
23
|
-
// example: "16.2"
|
|
24
|
-
osVersion = Platform.constants.osVersion;
|
|
25
|
-
}
|
|
26
|
-
setOSInfo({
|
|
27
|
-
name: osName,
|
|
28
|
-
version: osVersion,
|
|
29
|
-
architecture: '',
|
|
30
|
-
});
|
|
31
|
-
let deviceName = '';
|
|
32
|
-
if (Platform.OS === 'android') {
|
|
33
|
-
// Example: "Google Pixel 7"
|
|
34
|
-
const prefix = Platform.constants.Manufacturer.toLowerCase() ===
|
|
35
|
-
Platform.constants.Brand.toLowerCase()
|
|
36
|
-
? Platform.constants.Manufacturer
|
|
37
|
-
: `${Platform.constants.Manufacturer} ${Platform.constants.Brand}`;
|
|
38
|
-
deviceName = `${prefix} ${Platform.constants.Model}`;
|
|
39
|
-
}
|
|
40
|
-
else if (Platform.OS === 'ios') {
|
|
41
|
-
// note: osName check is necessary because Platform.isPad is not reliable
|
|
42
|
-
deviceName = Platform.isPad || osName === 'iPadOS' ? 'iPad' : 'iPhone';
|
|
43
|
-
}
|
|
44
|
-
setDeviceInfo({
|
|
45
|
-
name: deviceName,
|
|
46
|
-
version: '',
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=setClientDetails.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setClientDetails.js","sourceRoot":"","sources":["../../../src/utils/setClientDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,aAAa,EACb,SAAS,EACT,SAAS,GACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,UAAU,CAAC;QACT,IAAI,EAAE,SAAS,CAAC,OAAO,C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M,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;KACxE;IAED,aAAa,CAAC;QACZ,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,EAAE;KACZ,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/dist/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const version = "0.0.10";
|
package/dist/version.js
DELETED
package/dist/version.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,wCAAwC,MAAM,mBAAmB,CAAC;AACzE,OAAO,4CAA4C,MAAM,uBAAuB,CAAC;AACjF,OAAO,+CAA+C,MAAM,0BAA0B,CAAC;AACvF,OAAO,qCAAqC,MAAM,uBAAuB,CAAC;AAC1E,OAAO,yCAAyC,MAAM,oBAAoB,CAAC;AAE3E,MAAM,6BAA6B,GAAiB,CAAC,MAAM,EAAE,EAAE;IAC7D,OAAO,WAAW,CAAC,MAAM,EAAE;QACzB,wCAAwC;QACxC,4CAA4C;QAC5C,+CAA+C;QAC/C,qCAAqC;QACrC,yCAAyC;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withAndroidManifest.js","sourceRoot":"","sources":["../src/withAndroidManifest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,MAAM,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,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,CAAC;AAEF,eAAe,wCAAwC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withMainApplication.js","sourceRoot":"","sources":["../src/withMainApplication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EACL,UAAU,EACV,oCAAoC,GACrC,MAAM,4CAA4C,CAAC;AAEpD,MAAM,4CAA4C,GAAiB,CACjE,aAAa,EACb,EAAE;IACF,OAAO,mBAAmB,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE;QACnD,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;YACvD,IAAI;gBACF,MAAM,CAAC,UAAU,CAAC,QAAQ,GAAG,UAAU,CACrC,MAAM,CAAC,UAAU,CAAC,QAAQ,EAC1B,CAAC,oDAAoD,CAAC,EACtD,MAAM,CAAC,UAAU,CAAC,QAAQ,KAAK,MAAM,CACtC,CAAC;gBACF,MAAM,iBAAiB,GAAG,mCAAmC,CAAC;gBAC9D,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE;oBAC3D,MAAM,CAAC,UAAU,CAAC,QAAQ,GAAG,oCAAoC,CAC/D,MAAM,CAAC,UAAU,CAAC,QAAQ,EAC1B,UAAU,EACV,iBAAiB,CAClB,CAAC;iBACH;aACF;YAAC,OAAO,KAAU,EAAE;gBACnB,MAAM,IAAI,KAAK,CACb,+FAA+F,CAChG,CAAC;aACH;SACF;aAAM;YACL,MAAM,IAAI,KAAK,CACb,0FAA0F,CAC3F,CAAC;SACH;QACD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,4CAA4C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withiOSInfoPlist.js","sourceRoot":"","sources":["../src/withiOSInfoPlist.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,yCAAyC,GAAiB,CAC9D,aAAa,EACb,EAAE;IACF,OAAO,aAAa,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE;QAC7C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE;YACvD,MAAM,CAAC,UAAU,CAAC,iBAAiB,GAAG,EAAE,CAAC;SAC1C;QACD,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YAC1D,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACnD;QACD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,yCAAyC,CAAC"}
|
package/index.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { setClientDetails } from './src/utils/setClientDetails';
|
|
2
|
-
/** Initialize text encoder/decoder polyfill */
|
|
3
|
-
import 'text-encoding-polyfill';
|
|
4
|
-
/** Initialize URL polyfill */
|
|
5
|
-
import 'react-native-url-polyfill/auto';
|
|
6
|
-
/** i18next polyfill to handle intl format for pluralization. For more info see https://www.i18next.com/misc/json-format#i-18-next-json-v4 */
|
|
7
|
-
import 'intl-pluralrules';
|
|
8
|
-
import { registerGlobals } from '@stream-io/react-native-webrtc';
|
|
9
|
-
import Logger from '@stream-io/react-native-webrtc/src/Logger';
|
|
10
|
-
import { Platform } from 'react-native';
|
|
11
|
-
|
|
12
|
-
// We're registering globals, because our video JS client is serving SDKs that use browser based webRTC functions.
|
|
13
|
-
// This will result in creation of 2 global objects: `window` and `navigator`
|
|
14
|
-
// Reference: https://github.com/react-native-webrtc/react-native-webrtc/blob/16cff1523da457dbcc27bb0744ee2bad3a987c41/Documentation/BasicUsage.md#registering-globals
|
|
15
|
-
if (Platform.OS !== 'web') {
|
|
16
|
-
registerGlobals();
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// only enable warning and error logs from webrtc library
|
|
20
|
-
Logger.enable(`${Logger.ROOT_PREFIX}:(WARN|ERROR)`);
|
|
21
|
-
|
|
22
|
-
export * from '@stream-io/i18n';
|
|
23
|
-
export * from '@stream-io/video-client';
|
|
24
|
-
export * from '@stream-io/video-react-bindings';
|
|
25
|
-
export * from './src/components';
|
|
26
|
-
export * from './src/contexts';
|
|
27
|
-
export * from './src/hooks';
|
|
28
|
-
export * from './src/theme';
|
|
29
|
-
export * from './src/utils';
|
|
30
|
-
export * from './src/translations';
|
|
31
|
-
|
|
32
|
-
// Overriding 'StreamVideo' from '@stream-io/video-react-bindings'
|
|
33
|
-
// Explicitly re-exporting to resolve ambiguity.
|
|
34
|
-
export {
|
|
35
|
-
StreamVideo,
|
|
36
|
-
StreamCall,
|
|
37
|
-
MediaStreamManagement,
|
|
38
|
-
useMediaStreamManagement,
|
|
39
|
-
} from './src/providers';
|
|
40
|
-
|
|
41
|
-
setClientDetails();
|