@daily-co/react-native-daily-js 0.49.1 → 0.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ exports.DailyMediaView = DailyMediaView_1.default;
|
|
|
36
36
|
var iOSCallObjectBundleCache_1 = __importDefault(require("./iOSCallObjectBundleCache"));
|
|
37
37
|
require("react-native-url-polyfill/auto"); // Applies global URL polyfill
|
|
38
38
|
var react_native_background_timer_1 = __importDefault(require("react-native-background-timer"));
|
|
39
|
+
var base_64_1 = require("base-64");
|
|
39
40
|
var react_native_1 = require("react-native");
|
|
40
41
|
var DailyNativeUtils = react_native_1.NativeModules.DailyNativeUtils, WebRTCModule = react_native_1.NativeModules.WebRTCModule;
|
|
41
42
|
var webRTCEventEmitter = new react_native_1.NativeEventEmitter(WebRTCModule);
|
|
@@ -96,6 +97,8 @@ function setupGlobals() {
|
|
|
96
97
|
(0, react_native_webrtc_1.registerGlobals)();
|
|
97
98
|
// A shim to prevent errors in call machine bundle (not ideal)
|
|
98
99
|
global.window.addEventListener = function () { };
|
|
100
|
+
global.btoa = base_64_1.encode;
|
|
101
|
+
global.atob = base_64_1.decode;
|
|
99
102
|
// A workaround for iOS HTTP cache not caching call object bundle due to size
|
|
100
103
|
if (react_native_1.Platform.OS === 'ios') {
|
|
101
104
|
global.iOSCallObjectBundleCache = iOSCallObjectBundleCache_1.default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daily-co/react-native-daily-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"description": "React Native library for making video calls using Daily",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,8 +26,9 @@
|
|
|
26
26
|
"baseUrl": "https://github.com/daily-co/react-native-daily-js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@daily-co/daily-js": "^0.
|
|
29
|
+
"@daily-co/daily-js": "^0.53.0",
|
|
30
30
|
"@types/react-native-background-timer": "^2.0.0",
|
|
31
|
+
"base-64": "^1.0.0",
|
|
31
32
|
"react-native-url-polyfill": "^1.1.2"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"@daily-co/react-native-webrtc": "^111.0.0-daily.2",
|
|
40
41
|
"@react-native-async-storage/async-storage": "^1.15.7",
|
|
41
42
|
"react-native-background-timer": "^2.3.1",
|
|
42
|
-
"typescript": "^4.8.4"
|
|
43
|
+
"typescript": "^4.8.4",
|
|
44
|
+
"@types/base-64": "^1.0.0"
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -185,6 +185,9 @@ export interface DailyIceConfig {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
export interface DailyAdvancedConfig {
|
|
188
|
+
/**
|
|
189
|
+
* @deprecated This property will be removed. Instead, use sendSettings, which is found in DailyCallOptions.
|
|
190
|
+
*/
|
|
188
191
|
camSimulcastEncodings?: CamSimulcastEncoding[];
|
|
189
192
|
v2CamAndMic?: boolean;
|
|
190
193
|
experimentalGetUserMediaConstraintsModify?: (constraints: any) => void;
|
|
@@ -363,6 +366,7 @@ export type DailyTrackSubscriptionOptions =
|
|
|
363
366
|
export interface DailyParticipantUpdateOptions {
|
|
364
367
|
setAudio?: boolean;
|
|
365
368
|
setVideo?: boolean;
|
|
369
|
+
setScreenShare?: false;
|
|
366
370
|
setSubscribedTracks?: DailyTrackSubscriptionOptions;
|
|
367
371
|
eject?: true;
|
|
368
372
|
updatePermissions?: DailyParticipantPermissionsUpdate;
|