@stream-io/video-react-native-sdk 0.7.14 → 0.7.16
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 +18 -0
- package/android/build.gradle +56 -97
- package/android/gradle.properties +5 -3
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/streamvideo/reactnative/StreamVideoReactNativeModule.kt +2 -1
- package/dist/commonjs/components/Call/CallControls/index.js +11 -0
- package/dist/commonjs/components/Call/CallControls/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/contexts/BackgroundFilters.js +125 -0
- package/dist/commonjs/contexts/BackgroundFilters.js.map +1 -0
- package/dist/commonjs/contexts/index.js +11 -0
- package/dist/commonjs/contexts/index.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/index.js +5 -4
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallControls/index.js +1 -0
- package/dist/module/components/Call/CallControls/index.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/contexts/BackgroundFilters.js +116 -0
- package/dist/module/contexts/BackgroundFilters.js.map +1 -0
- package/dist/module/contexts/index.js +1 -0
- package/dist/module/contexts/index.js.map +1 -1
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/index.js +3 -2
- package/dist/module/index.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallControls/index.d.ts +1 -0
- package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -1
- package/dist/typescript/contexts/BackgroundFilters.d.ts +49 -0
- package/dist/typescript/contexts/BackgroundFilters.d.ts.map +1 -0
- package/dist/typescript/contexts/index.d.ts +1 -0
- package/dist/typescript/contexts/index.d.ts.map +1 -1
- package/dist/typescript/index.d.ts +2 -1
- package/dist/typescript/index.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/package.json +19 -6
- package/src/components/Call/CallControls/CallControlsButton.tsx +1 -1
- package/src/components/Call/CallControls/ScreenShareToggleButton.tsx +1 -1
- package/src/components/Call/CallControls/index.tsx +1 -0
- package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +2 -2
- package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +4 -4
- package/src/components/Call/RingingCallContent/UserInfo.tsx +1 -1
- package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +4 -4
- package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +1 -1
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +1 -1
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +1 -1
- package/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.tsx +3 -3
- package/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.tsx +5 -5
- package/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.tsx +1 -1
- package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +1 -1
- package/src/components/Participant/ParticipantView/VideoRenderer.tsx +1 -1
- package/src/contexts/BackgroundFilters.tsx +197 -0
- package/src/contexts/StreamVideoContext.tsx +3 -3
- package/src/contexts/ThemeContext.tsx +2 -2
- package/src/contexts/index.ts +1 -0
- package/src/hooks/push/useIosCallKeepEventsSetupEffect.ts +3 -3
- package/src/hooks/push/useIosCallkeepWithCallingStateEffect.ts +5 -5
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +5 -4
- package/src/hooks/push/useProcessPushCallEffect.ts +5 -5
- package/src/hooks/useAndroidKeepCallAliveEffect.ts +2 -2
- package/src/hooks/useIsInPiPMode.tsx +2 -2
- package/src/hooks/useIsIosScreenshareBroadcastStarted.ts +2 -2
- package/src/hooks/usePaginatedLayoutSortPreset.ts +1 -1
- package/src/hooks/usePermissionNotification.tsx +1 -1
- package/src/hooks/usePermissionRequest.tsx +3 -3
- package/src/index.ts +3 -2
- package/src/providers/StreamCall.tsx +2 -2
- package/src/providers/StreamVideo.tsx +1 -1
- package/src/utils/StreamVideoRN/index.ts +3 -3
- package/src/utils/StreamVideoRN/types.ts +2 -2
- package/src/utils/enterPiPAndroid.ts +1 -1
- package/src/utils/hooks/useAppStateListener.ts +2 -2
- package/src/utils/index.ts +2 -2
- package/src/utils/internal/newNotificationCallbacks.ts +3 -3
- package/src/utils/push/android.ts +14 -14
- package/src/utils/push/ios.ts +6 -6
- package/src/utils/push/libs/callkeep.ts +1 -1
- package/src/utils/push/libs/expoNotifications.ts +1 -1
- package/src/utils/push/libs/expoTaskManager.ts +1 -1
- package/src/utils/push/libs/firebaseMessaging.ts +2 -2
- package/src/utils/push/libs/iosPushNotification.ts +1 -1
- package/src/utils/push/libs/voipPushNotification.ts +1 -1
- package/src/utils/push/utils.ts +5 -5
- package/src/version.ts +1 -1
- package/dist/commonjs/providers/index.js +0 -28
- package/dist/commonjs/providers/index.js.map +0 -1
- package/dist/module/providers/index.js +0 -3
- package/dist/module/providers/index.js.map +0 -1
- package/dist/typescript/providers/index.d.ts +0 -3
- package/dist/typescript/providers/index.d.ts.map +0 -1
- package/src/providers/index.ts +0 -2
|
@@ -3,7 +3,7 @@ import { NonRingingPushEvent } from '../StreamVideoRN/types';
|
|
|
3
3
|
|
|
4
4
|
export type NewCallNotificationCallback = (
|
|
5
5
|
call: Call,
|
|
6
|
-
notificationType: NonRingingPushEvent
|
|
6
|
+
notificationType: NonRingingPushEvent
|
|
7
7
|
) => void;
|
|
8
8
|
|
|
9
9
|
type NewNotificationCallbacks = {
|
|
@@ -16,11 +16,11 @@ const newNotificationCallbacks: NewNotificationCallbacks = {};
|
|
|
16
16
|
|
|
17
17
|
export const onNewCallNotification: NewCallNotificationCallback = (
|
|
18
18
|
call,
|
|
19
|
-
notificationType
|
|
19
|
+
notificationType
|
|
20
20
|
) => {
|
|
21
21
|
if (newNotificationCallbacks.current && lastCid !== call.cid) {
|
|
22
22
|
newNotificationCallbacks.current.forEach((callback) =>
|
|
23
|
-
callback(call, notificationType)
|
|
23
|
+
callback(call, notificationType)
|
|
24
24
|
);
|
|
25
25
|
lastCid = call.cid;
|
|
26
26
|
}
|
|
@@ -49,10 +49,10 @@ export function setupFirebaseHandlerAndroid(pushConfig: PushConfig) {
|
|
|
49
49
|
// handles on app killed state in expo, expo-notifications cannot handle that
|
|
50
50
|
messaging().setBackgroundMessageHandler(
|
|
51
51
|
async (msg) =>
|
|
52
|
-
await firebaseMessagingOnMessageHandler(msg.data, pushConfig)
|
|
52
|
+
await firebaseMessagingOnMessageHandler(msg.data, pushConfig)
|
|
53
53
|
);
|
|
54
54
|
messaging().onMessage((msg) =>
|
|
55
|
-
firebaseMessagingOnMessageHandler(msg.data, pushConfig)
|
|
55
|
+
firebaseMessagingOnMessageHandler(msg.data, pushConfig)
|
|
56
56
|
); // this is to listen to foreground messages, which we dont need for now
|
|
57
57
|
} else {
|
|
58
58
|
const Notifications = getExpoNotificationsLib();
|
|
@@ -69,7 +69,7 @@ export function setupFirebaseHandlerAndroid(pushConfig: PushConfig) {
|
|
|
69
69
|
// @ts-ignore
|
|
70
70
|
const dataToProcess = data.notification?.data;
|
|
71
71
|
firebaseMessagingOnMessageHandler(dataToProcess, pushConfig);
|
|
72
|
-
}
|
|
72
|
+
}
|
|
73
73
|
);
|
|
74
74
|
// background handler (does not handle on app killed state)
|
|
75
75
|
Notifications.registerTaskAsync(BACKGROUND_NOTIFICATION_TASK);
|
|
@@ -101,10 +101,10 @@ export function setupFirebaseHandlerAndroid(pushConfig: PushConfig) {
|
|
|
101
101
|
const messaging = getFirebaseMessagingLib();
|
|
102
102
|
messaging().setBackgroundMessageHandler(
|
|
103
103
|
async (msg) =>
|
|
104
|
-
await firebaseMessagingOnMessageHandler(msg.data, pushConfig)
|
|
104
|
+
await firebaseMessagingOnMessageHandler(msg.data, pushConfig)
|
|
105
105
|
);
|
|
106
106
|
messaging().onMessage((msg) =>
|
|
107
|
-
firebaseMessagingOnMessageHandler(msg.data, pushConfig)
|
|
107
|
+
firebaseMessagingOnMessageHandler(msg.data, pushConfig)
|
|
108
108
|
); // this is to listen to foreground messages, which we dont need for now
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -121,7 +121,7 @@ export function setupFirebaseHandlerAndroid(pushConfig: PushConfig) {
|
|
|
121
121
|
export async function initAndroidPushToken(
|
|
122
122
|
client: StreamVideoClient,
|
|
123
123
|
pushConfig: PushConfig,
|
|
124
|
-
setUnsubscribeListener: (unsubscribe: () => void) => void
|
|
124
|
+
setUnsubscribeListener: (unsubscribe: () => void) => void
|
|
125
125
|
) {
|
|
126
126
|
if (Platform.OS !== 'android' || !pushConfig.android.pushProviderName) {
|
|
127
127
|
return;
|
|
@@ -142,7 +142,7 @@ export async function initAndroidPushToken(
|
|
|
142
142
|
const subscription = expoNotificationsLib.addPushTokenListener(
|
|
143
143
|
(devicePushToken) => {
|
|
144
144
|
setDeviceToken(devicePushToken.data);
|
|
145
|
-
}
|
|
145
|
+
}
|
|
146
146
|
);
|
|
147
147
|
setUnsubscribeListener(() => subscription.remove());
|
|
148
148
|
const devicePushToken =
|
|
@@ -152,7 +152,7 @@ export async function initAndroidPushToken(
|
|
|
152
152
|
} else {
|
|
153
153
|
const messaging = getFirebaseMessagingLib();
|
|
154
154
|
const unsubscribe = messaging().onTokenRefresh((refreshedToken) =>
|
|
155
|
-
setDeviceToken(refreshedToken)
|
|
155
|
+
setDeviceToken(refreshedToken)
|
|
156
156
|
);
|
|
157
157
|
setUnsubscribeListener(unsubscribe);
|
|
158
158
|
const token = await messaging().getToken();
|
|
@@ -162,7 +162,7 @@ export async function initAndroidPushToken(
|
|
|
162
162
|
|
|
163
163
|
const firebaseMessagingOnMessageHandler = async (
|
|
164
164
|
data: FirebaseMessagingTypes.RemoteMessage['data'],
|
|
165
|
-
pushConfig: PushConfig
|
|
165
|
+
pushConfig: PushConfig
|
|
166
166
|
) => {
|
|
167
167
|
/* Example data from firebase
|
|
168
168
|
"message": {
|
|
@@ -192,7 +192,7 @@ const firebaseMessagingOnMessageHandler = async (
|
|
|
192
192
|
const { mustEndCall } = shouldCallBeEnded(
|
|
193
193
|
callToCheck,
|
|
194
194
|
created_by_id,
|
|
195
|
-
receiver_id
|
|
195
|
+
receiver_id
|
|
196
196
|
);
|
|
197
197
|
return mustEndCall;
|
|
198
198
|
}
|
|
@@ -237,7 +237,7 @@ const firebaseMessagingOnMessageHandler = async (
|
|
|
237
237
|
pushConfig.android.incomingCallNotificationTextGetters;
|
|
238
238
|
if (!incomingCallChannel || !incomingCallNotificationTextGetters) {
|
|
239
239
|
console.debug(
|
|
240
|
-
"Can't show incoming call notification as either or both incomingCallChannel and was not provided"
|
|
240
|
+
"Can't show incoming call notification as either or both incomingCallChannel and was not provided"
|
|
241
241
|
);
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
@@ -310,7 +310,7 @@ const firebaseMessagingOnMessageHandler = async (
|
|
|
310
310
|
pushConfig.android.callNotificationTextGetters;
|
|
311
311
|
if (!callChannel || !callNotificationTextGetters) {
|
|
312
312
|
console.debug(
|
|
313
|
-
"Can't show call notification as either or both callChannel and callNotificationTextGetters is not provided"
|
|
313
|
+
"Can't show call notification as either or both callChannel and callNotificationTextGetters is not provided"
|
|
314
314
|
);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
@@ -343,7 +343,7 @@ const firebaseMessagingOnMessageHandler = async (
|
|
|
343
343
|
const onNotifeeEvent = async (
|
|
344
344
|
event: Event,
|
|
345
345
|
pushConfig: PushConfig,
|
|
346
|
-
isBackground: boolean
|
|
346
|
+
isBackground: boolean
|
|
347
347
|
) => {
|
|
348
348
|
const { type, detail } = event;
|
|
349
349
|
const { notification, pressAction } = detail;
|
|
@@ -402,7 +402,7 @@ const onNotifeeEvent = async (
|
|
|
402
402
|
pushTappedIncomingCallCId$.next(call_cid);
|
|
403
403
|
pushConfig.onTapNonRingingCallNotification?.(
|
|
404
404
|
call_cid,
|
|
405
|
-
data.type as NonRingingPushEvent
|
|
405
|
+
data.type as NonRingingPushEvent
|
|
406
406
|
);
|
|
407
407
|
}
|
|
408
408
|
}
|
package/src/utils/push/ios.ts
CHANGED
|
@@ -30,7 +30,7 @@ type StreamPayload =
|
|
|
30
30
|
| undefined;
|
|
31
31
|
|
|
32
32
|
function processNonRingingNotificationStreamPayload(
|
|
33
|
-
streamPayload: StreamPayload
|
|
33
|
+
streamPayload: StreamPayload
|
|
34
34
|
) {
|
|
35
35
|
if (
|
|
36
36
|
streamPayload?.sender === 'stream.video' &&
|
|
@@ -45,7 +45,7 @@ function processNonRingingNotificationStreamPayload(
|
|
|
45
45
|
|
|
46
46
|
export const iosCallkeepAcceptCall = (
|
|
47
47
|
call_cid: string | undefined,
|
|
48
|
-
callUUIDFromCallkeep: string
|
|
48
|
+
callUUIDFromCallkeep: string
|
|
49
49
|
) => {
|
|
50
50
|
if (!shouldProcessCallFromCallkeep(call_cid, callUUIDFromCallkeep)) {
|
|
51
51
|
return;
|
|
@@ -65,7 +65,7 @@ export const iosCallkeepAcceptCall = (
|
|
|
65
65
|
export const iosCallkeepRejectCall = async (
|
|
66
66
|
call_cid: string | undefined,
|
|
67
67
|
callUUIDFromCallkeep: string,
|
|
68
|
-
pushConfig: PushConfig
|
|
68
|
+
pushConfig: PushConfig
|
|
69
69
|
) => {
|
|
70
70
|
if (!shouldProcessCallFromCallkeep(call_cid, callUUIDFromCallkeep)) {
|
|
71
71
|
return;
|
|
@@ -84,7 +84,7 @@ export const iosCallkeepRejectCall = async (
|
|
|
84
84
|
*/
|
|
85
85
|
const shouldProcessCallFromCallkeep = (
|
|
86
86
|
call_cid: string | undefined,
|
|
87
|
-
callUUIDFromCallkeep: string
|
|
87
|
+
callUUIDFromCallkeep: string
|
|
88
88
|
): call_cid is string => {
|
|
89
89
|
if (!call_cid || !callUUIDFromCallkeep) {
|
|
90
90
|
return false;
|
|
@@ -127,7 +127,7 @@ export const setupRemoteNotificationsHandleriOS = (pushConfig: PushConfig) => {
|
|
|
127
127
|
export async function initIosNonVoipToken(
|
|
128
128
|
client: StreamVideoClient,
|
|
129
129
|
pushConfig: PushConfig,
|
|
130
|
-
setUnsubscribeListener: (unsubscribe: () => void) => void
|
|
130
|
+
setUnsubscribeListener: (unsubscribe: () => void) => void
|
|
131
131
|
) {
|
|
132
132
|
if (
|
|
133
133
|
Platform.OS !== 'ios' ||
|
|
@@ -155,7 +155,7 @@ export async function initIosNonVoipToken(
|
|
|
155
155
|
const subscription = expoNotificationsLib.addPushTokenListener(
|
|
156
156
|
(devicePushToken) => {
|
|
157
157
|
setDeviceToken(devicePushToken.data);
|
|
158
|
-
}
|
|
158
|
+
}
|
|
159
159
|
);
|
|
160
160
|
const subscriptionForReceive =
|
|
161
161
|
expoNotificationsLib.addNotificationReceivedListener((event) => {
|
|
@@ -9,7 +9,7 @@ try {
|
|
|
9
9
|
export function getCallKeepLib() {
|
|
10
10
|
if (!callkeep) {
|
|
11
11
|
throw Error(
|
|
12
|
-
'react-native-callkeep library is not installed. Please see https://github.com/react-native-webrtc/react-native-callkeep#Installation for installation instructions'
|
|
12
|
+
'react-native-callkeep library is not installed. Please see https://github.com/react-native-webrtc/react-native-callkeep#Installation for installation instructions'
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
return callkeep;
|
|
@@ -9,7 +9,7 @@ try {
|
|
|
9
9
|
export function getExpoNotificationsLib() {
|
|
10
10
|
if (!expoNotificationsLib) {
|
|
11
11
|
throw Error(
|
|
12
|
-
'expo-notifications library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/notifications/ for installation instructions'
|
|
12
|
+
'expo-notifications library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/notifications/ for installation instructions'
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
return expoNotificationsLib;
|
|
@@ -9,7 +9,7 @@ try {
|
|
|
9
9
|
export function getExpoTaskManagerLib(): ExpoTaskManagerLib {
|
|
10
10
|
if (!expoTaskManagerLib) {
|
|
11
11
|
throw Error(
|
|
12
|
-
'expo-task-manager library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/task-manager/ for installation instructions'
|
|
12
|
+
'expo-task-manager library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/task-manager/ for installation instructions'
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
return expoTaskManagerLib;
|
|
@@ -14,7 +14,7 @@ export function getFirebaseMessagingLib() {
|
|
|
14
14
|
if (!messaging) {
|
|
15
15
|
throw Error(
|
|
16
16
|
'@react-native-firebase/messaging is not installed. ' +
|
|
17
|
-
INSTALLATION_INSTRUCTION
|
|
17
|
+
INSTALLATION_INSTRUCTION
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
return messaging;
|
|
@@ -27,7 +27,7 @@ export function getFirebaseMessagingLibNoThrow(isExpo: boolean) {
|
|
|
27
27
|
isExpo
|
|
28
28
|
? 'In Expo, @react-native-firebase/messaging library is required to receive ringing notifications in app killed state for Android.'
|
|
29
29
|
: ''
|
|
30
|
-
}${INSTALLATION_INSTRUCTION}
|
|
30
|
+
}${INSTALLATION_INSTRUCTION}`
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
return messaging;
|
|
@@ -11,7 +11,7 @@ try {
|
|
|
11
11
|
export function getPushNotificationIosLib() {
|
|
12
12
|
if (!pushNotificationIosLib) {
|
|
13
13
|
throw Error(
|
|
14
|
-
'@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"'
|
|
14
|
+
'@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"'
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
return pushNotificationIosLib;
|
|
@@ -10,7 +10,7 @@ try {
|
|
|
10
10
|
export function getVoipPushNotificationLib() {
|
|
11
11
|
if (!voipPushNotification) {
|
|
12
12
|
throw Error(
|
|
13
|
-
"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'"
|
|
13
|
+
"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'"
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
return voipPushNotification;
|
package/src/utils/push/utils.ts
CHANGED
|
@@ -17,7 +17,7 @@ type CanAddPushWSSubscriptionsRef = { current: boolean };
|
|
|
17
17
|
export const shouldCallBeEnded = (
|
|
18
18
|
callFromPush: Call,
|
|
19
19
|
created_by_id: string | undefined,
|
|
20
|
-
receiver_id: string | undefined
|
|
20
|
+
receiver_id: string | undefined
|
|
21
21
|
) => {
|
|
22
22
|
/* callkeep reasons for ending a call
|
|
23
23
|
FAILED: 1,
|
|
@@ -61,7 +61,7 @@ export const shouldCallBeEnded = (
|
|
|
61
61
|
export const processCallFromPushInBackground = async (
|
|
62
62
|
pushConfig: PushConfig,
|
|
63
63
|
call_cid: string,
|
|
64
|
-
action: Parameters<typeof processCallFromPush>[2]
|
|
64
|
+
action: Parameters<typeof processCallFromPush>[2]
|
|
65
65
|
) => {
|
|
66
66
|
let videoClient: StreamVideoClient | undefined;
|
|
67
67
|
|
|
@@ -87,7 +87,7 @@ export const processCallFromPushInBackground = async (
|
|
|
87
87
|
export const processCallFromPush = async (
|
|
88
88
|
client: StreamVideoClient,
|
|
89
89
|
call_cid: string,
|
|
90
|
-
action: 'accept' | 'decline' | 'pressed' | 'backgroundDelivered'
|
|
90
|
+
action: 'accept' | 'decline' | 'pressed' | 'backgroundDelivered'
|
|
91
91
|
) => {
|
|
92
92
|
let callFromPush: Call;
|
|
93
93
|
try {
|
|
@@ -118,7 +118,7 @@ export const processCallFromPush = async (
|
|
|
118
118
|
export const processNonIncomingCallFromPush = async (
|
|
119
119
|
client: StreamVideoClient,
|
|
120
120
|
call_cid: string,
|
|
121
|
-
nonRingingNotificationType: NonRingingPushEvent
|
|
121
|
+
nonRingingNotificationType: NonRingingPushEvent
|
|
122
122
|
) => {
|
|
123
123
|
let callFromPush: Call;
|
|
124
124
|
try {
|
|
@@ -144,7 +144,7 @@ export const processNonIncomingCallFromPush = async (
|
|
|
144
144
|
*/
|
|
145
145
|
export const clearPushWSEventSubscriptions = () => {
|
|
146
146
|
const unsubscriptionCallbacks = RxUtils.getCurrentValue(
|
|
147
|
-
pushUnsubscriptionCallbacks
|
|
147
|
+
pushUnsubscriptionCallbacks$
|
|
148
148
|
);
|
|
149
149
|
if (unsubscriptionCallbacks) {
|
|
150
150
|
unsubscriptionCallbacks.forEach((cb) => cb());
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.7.
|
|
1
|
+
export const version = '0.7.16';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _StreamVideo = require("./StreamVideo");
|
|
7
|
-
Object.keys(_StreamVideo).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _StreamVideo[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _StreamVideo[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _StreamCall = require("./StreamCall");
|
|
18
|
-
Object.keys(_StreamCall).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _StreamCall[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _StreamCall[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_StreamVideo","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_StreamCall"],"sourceRoot":"../../../src","sources":["providers/index.ts"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,YAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,WAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,WAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,WAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,WAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["providers/index.ts"],"mappings":"AAAA,cAAc,eAAe;AAC7B,cAAc,cAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
package/src/providers/index.ts
DELETED