@stream-io/video-react-native-sdk 0.5.6 → 0.5.8
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/dist/commonjs/components/Call/CallControls/ScreenShareButton.js +3 -1
- package/dist/commonjs/components/Call/CallControls/ScreenShareButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js +2 -2
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -1
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js +1 -1
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/commonjs/utils/index.js.map +1 -1
- package/dist/commonjs/utils/internal/{optionalLibs.js → optionallibs/gestureHandler.js} +2 -13
- package/dist/commonjs/utils/internal/optionallibs/gestureHandler.js.map +1 -0
- package/dist/commonjs/utils/internal/optionallibs/index.js +28 -0
- package/dist/commonjs/utils/internal/optionallibs/index.js.map +1 -0
- package/dist/commonjs/utils/internal/optionallibs/reanimated.js +18 -0
- package/dist/commonjs/utils/internal/optionallibs/reanimated.js.map +1 -0
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/libs/callkeep.js +17 -0
- package/dist/commonjs/utils/push/libs/callkeep.js.map +1 -0
- package/dist/commonjs/utils/push/libs/expoNotifications.js +17 -0
- package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -0
- package/dist/commonjs/utils/push/libs/expoTaskManager.js +17 -0
- package/dist/commonjs/utils/push/libs/expoTaskManager.js.map +1 -0
- package/dist/commonjs/utils/push/libs/firebaseMessaging.js +17 -0
- package/dist/commonjs/utils/push/libs/firebaseMessaging.js.map +1 -0
- package/dist/commonjs/utils/push/libs/index.js +72 -0
- package/dist/commonjs/utils/push/libs/index.js.map +1 -0
- package/dist/commonjs/utils/push/libs/iosPushNotification.js +17 -0
- package/dist/commonjs/utils/push/libs/iosPushNotification.js.map +1 -0
- package/dist/commonjs/utils/push/libs/voipPushNotification.js +17 -0
- package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +1 -0
- package/dist/commonjs/utils/push/utils.js.map +1 -1
- package/dist/commonjs/utils/setClientDetails.js +3 -3
- package/dist/commonjs/utils/setClientDetails.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallControls/ScreenShareButton.js +3 -1
- package/dist/module/components/Call/CallControls/ScreenShareButton.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js +1 -1
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/utils/index.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/gestureHandler.js +11 -0
- package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -0
- package/dist/module/utils/internal/optionallibs/index.js +3 -0
- package/dist/module/utils/internal/optionallibs/index.js.map +1 -0
- package/dist/module/utils/internal/optionallibs/reanimated.js +11 -0
- package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -0
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/libs/callkeep.js +11 -0
- package/dist/module/utils/push/libs/callkeep.js.map +1 -0
- package/dist/module/utils/push/libs/expoNotifications.js +11 -0
- package/dist/module/utils/push/libs/expoNotifications.js.map +1 -0
- package/dist/module/utils/push/libs/expoTaskManager.js +11 -0
- package/dist/module/utils/push/libs/expoTaskManager.js.map +1 -0
- package/dist/module/utils/push/libs/firebaseMessaging.js +11 -0
- package/dist/module/utils/push/libs/firebaseMessaging.js.map +1 -0
- package/dist/module/utils/push/libs/index.js +12 -0
- package/dist/module/utils/push/libs/index.js.map +1 -0
- package/dist/module/utils/push/libs/iosPushNotification.js +11 -0
- package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -0
- package/dist/module/utils/push/libs/voipPushNotification.js +11 -0
- package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -0
- package/dist/module/utils/push/utils.js.map +1 -1
- package/dist/module/utils/setClientDetails.js +3 -3
- package/dist/module/utils/setClientDetails.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallControls/ScreenShareButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
- package/dist/typescript/utils/index.d.ts.map +1 -1
- package/dist/typescript/utils/internal/optionallibs/gestureHandler.d.ts +3 -0
- package/dist/typescript/utils/internal/optionallibs/gestureHandler.d.ts.map +1 -0
- package/dist/typescript/utils/internal/optionallibs/index.d.ts +3 -0
- package/dist/typescript/utils/internal/optionallibs/index.d.ts.map +1 -0
- package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts +4 -0
- package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/callkeep.d.ts +4 -0
- package/dist/typescript/utils/push/libs/callkeep.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts +3 -0
- package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/expoTaskManager.d.ts +3 -0
- package/dist/typescript/utils/push/libs/expoTaskManager.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/firebaseMessaging.d.ts +4 -0
- package/dist/typescript/utils/push/libs/firebaseMessaging.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/index.d.ts +7 -0
- package/dist/typescript/utils/push/libs/index.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/iosPushNotification.d.ts +3 -0
- package/dist/typescript/utils/push/libs/iosPushNotification.d.ts.map +1 -0
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts +4 -0
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts.map +1 -0
- package/dist/typescript/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Call/CallControls/ScreenShareButton.tsx +1 -0
- package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +2 -1
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +2 -2
- package/src/components/Participant/FloatingParticipantView/FloatingView/index.ts +1 -1
- package/src/hooks/internal/useCallMediaStreamCleanup.ts +1 -1
- package/src/hooks/useAndroidKeepCallAliveEffect.ts +1 -1
- package/src/utils/index.ts +4 -2
- package/src/utils/internal/{optionalLibs.ts → optionallibs/gestureHandler.ts} +0 -13
- package/src/utils/internal/optionallibs/index.ts +2 -0
- package/src/utils/internal/optionallibs/reanimated.ts +14 -0
- package/src/utils/push/android.ts +6 -6
- package/src/utils/push/libs/callkeep.ts +16 -0
- package/src/utils/push/libs/expoNotifications.ts +16 -0
- package/src/utils/push/libs/expoTaskManager.ts +16 -0
- package/src/utils/push/libs/firebaseMessaging.ts +18 -0
- package/src/utils/push/libs/index.ts +11 -0
- package/src/utils/push/libs/iosPushNotification.ts +18 -0
- package/src/utils/push/libs/voipPushNotification.ts +17 -0
- package/src/utils/push/utils.ts +1 -1
- package/src/utils/setClientDetails.ts +3 -3
- package/src/version.ts +1 -1
- package/dist/commonjs/utils/internal/optionalLibs.js.map +0 -1
- package/dist/commonjs/utils/push/libs.js +0 -72
- package/dist/commonjs/utils/push/libs.js.map +0 -1
- package/dist/module/utils/internal/optionalLibs.js +0 -21
- package/dist/module/utils/internal/optionalLibs.js.map +0 -1
- package/dist/module/utils/push/libs.js +0 -61
- package/dist/module/utils/push/libs.js.map +0 -1
- package/dist/typescript/utils/internal/optionalLibs.d.ts +0 -6
- package/dist/typescript/utils/internal/optionalLibs.d.ts.map +0 -1
- package/dist/typescript/utils/push/libs.d.ts +0 -16
- package/dist/typescript/utils/push/libs.d.ts.map +0 -1
- package/src/utils/push/libs.ts +0 -96
package/src/utils/push/libs.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
export type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
|
|
2
|
-
export type RNCallKeepType = typeof import('react-native-callkeep').default;
|
|
3
|
-
export type FirebaseMessagingType =
|
|
4
|
-
typeof import('@react-native-firebase/messaging').default;
|
|
5
|
-
export type VoipPushNotificationType =
|
|
6
|
-
typeof import('react-native-voip-push-notification').default;
|
|
7
|
-
export type ExpoNotificationsLib = typeof import('expo-notifications');
|
|
8
|
-
export type ExpoTaskManagerLib = typeof import('expo-task-manager');
|
|
9
|
-
export type PushNotificationIosLib =
|
|
10
|
-
typeof import('@react-native-community/push-notification-ios').default;
|
|
11
|
-
|
|
12
|
-
let callkeep: RNCallKeepType | undefined;
|
|
13
|
-
let messaging: FirebaseMessagingType | undefined;
|
|
14
|
-
let voipPushNotification: VoipPushNotificationType | undefined;
|
|
15
|
-
let expoNotificationsLib: ExpoNotificationsLib | undefined;
|
|
16
|
-
let expoTaskManagerLib: ExpoTaskManagerLib | undefined;
|
|
17
|
-
let pushNotificationIosLib: PushNotificationIosLib | undefined;
|
|
18
|
-
|
|
19
|
-
try {
|
|
20
|
-
callkeep = require('react-native-callkeep').default;
|
|
21
|
-
} catch (e) {}
|
|
22
|
-
|
|
23
|
-
try {
|
|
24
|
-
messaging = require('@react-native-firebase/messaging').default;
|
|
25
|
-
} catch (e) {}
|
|
26
|
-
|
|
27
|
-
try {
|
|
28
|
-
voipPushNotification = require('react-native-voip-push-notification').default;
|
|
29
|
-
} catch (e) {}
|
|
30
|
-
|
|
31
|
-
try {
|
|
32
|
-
expoNotificationsLib = require('expo-notifications');
|
|
33
|
-
} catch (e) {}
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
expoTaskManagerLib = require('expo-task-manager');
|
|
37
|
-
} catch (e) {}
|
|
38
|
-
|
|
39
|
-
try {
|
|
40
|
-
pushNotificationIosLib =
|
|
41
|
-
require('@react-native-community/push-notification-ios').default;
|
|
42
|
-
} catch (e) {}
|
|
43
|
-
|
|
44
|
-
export function getExpoNotificationsLib() {
|
|
45
|
-
if (!expoNotificationsLib) {
|
|
46
|
-
throw Error(
|
|
47
|
-
'expo-notifications library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/notifications/ for installation instructions',
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
return expoNotificationsLib;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function getExpoTaskManagerLib() {
|
|
54
|
-
if (!expoTaskManagerLib) {
|
|
55
|
-
throw Error(
|
|
56
|
-
'expo-task-manager library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/task-manager/ for installation instructions',
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
return expoTaskManagerLib;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function getPushNotificationIosLib() {
|
|
63
|
-
if (!pushNotificationIosLib) {
|
|
64
|
-
throw Error(
|
|
65
|
-
'@react-native-community/push-notification-ios library is not installed. Please install it using "yarn add @react-native-community/push-notification-ios" or "npm i @react-native-community/push-notification-ios --save"',
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
return pushNotificationIosLib;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function getCallKeepLib() {
|
|
72
|
-
if (!callkeep) {
|
|
73
|
-
throw Error(
|
|
74
|
-
'react-native-callkeep library is not installed. Please see https://github.com/react-native-webrtc/react-native-callkeep#Installation for installation instructions',
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
return callkeep;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function getFirebaseMessagingLib() {
|
|
81
|
-
if (!messaging) {
|
|
82
|
-
throw Error(
|
|
83
|
-
'react-native-firebase library is not installed. Please see https://rnfirebase.io/messaging/usage#installation for installation instructions',
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
return messaging;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function getVoipPushNotificationLib() {
|
|
90
|
-
if (!voipPushNotification) {
|
|
91
|
-
throw Error(
|
|
92
|
-
"react-native-voip-push-notification library is not installed. Please install it using 'yarn add react-native-voip-push-notification' or 'npm i react-native-voip-push-notification --save'",
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
return voipPushNotification;
|
|
96
|
-
}
|