@daily-co/react-native-daily-js 0.15.0 → 0.19.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/README.md CHANGED
@@ -14,7 +14,8 @@ This package introduces some constraints on what OS/SDK versions your project ca
14
14
  Install `react-native-daily-js` along with its peer dependencies:
15
15
 
16
16
  ```bash
17
- npm i @daily-co/react-native-daily-js @daily-co/react-native-webrtc@1.89.2-daily.3 @react-native-async-storage/async-storage@^1.15.7 react-native-background-timer@^2.3.1
17
+ npm i @daily-co/react-native-daily-js @react-native-async-storage/async-storage@^1.15.7 react-native-background-timer@^2.3.1
18
+ npm i --save-exact @daily-co/react-native-webrtc@1.89.2-daily.3
18
19
  ```
19
20
 
20
21
  Then, follow the below steps to set up your native project on each platform. **Note that these steps assume you're using a version of React Native that supports autolinking (>= 60).**
@@ -66,9 +67,9 @@ If you view the raw file contents of `Info.plist`, it should look like this:
66
67
  <dict>
67
68
  ...
68
69
  <key>NSCameraUsageDescription</key>
69
- <string>"Daily Playground needs camera access to work"</string>
70
+ <string>Daily Playground needs camera access to work</string>
70
71
  <key>NSMicrophoneUsageDescription</key>
71
- <string>"Daily Playground needs microphone access to work"</string>
72
+ <string>Daily Playground needs microphone access to work</string>
72
73
  <key>UIBackgroundModes</key>
73
74
  <array>
74
75
  <string>voip</string>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daily-co/react-native-daily-js",
3
- "version": "0.15.0",
3
+ "version": "0.19.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,18 +26,17 @@
26
26
  "baseUrl": "https://github.com/daily-co/react-native-daily-js"
27
27
  },
28
28
  "dependencies": {
29
- "@daily-co/daily-js": "^0.18.0",
29
+ "@daily-co/daily-js": "^0.21.0",
30
30
  "@types/react-native-background-timer": "^2.0.0",
31
31
  "react-native-url-polyfill": "^1.1.2"
32
32
  },
33
- "//": "WHEN ONE OF THESE CHANGE, PLEASE UPDATE README.md INSTALL SNIPPET ACCORDINGLY",
34
33
  "peerDependencies": {
35
- "@daily-co/react-native-webrtc": "1.89.2-daily.3",
34
+ "@daily-co/react-native-webrtc": "1.89.2-daily.4",
36
35
  "@react-native-async-storage/async-storage": "^1.15.7",
37
36
  "react-native-background-timer": "^2.3.1"
38
37
  },
39
38
  "devDependencies": {
40
- "@daily-co/react-native-webrtc": "1.89.2-daily.3",
39
+ "@daily-co/react-native-webrtc": "1.89.2-daily.4",
41
40
  "@react-native-async-storage/async-storage": "^1.15.7",
42
41
  "react-native-background-timer": "^2.3.1",
43
42
  "typescript": "^3.8.3"
@@ -21,6 +21,7 @@ export type DailyLanguage =
21
21
  | 'no'
22
22
  | 'pt'
23
23
  | 'pl'
24
+ | 'ru'
24
25
  | 'sv'
25
26
  | 'es'
26
27
  | 'tr'
@@ -86,6 +87,7 @@ export interface DailyBrowserInfo {
86
87
  version: string;
87
88
  supportsScreenShare: boolean;
88
89
  supportsSfu: boolean;
90
+ supportsVideoProcessing: boolean;
89
91
  }
90
92
 
91
93
  export interface DailyCallOptions {
@@ -249,6 +251,7 @@ export interface DailyRoomInfo {
249
251
  enable_knocking?: boolean;
250
252
  enable_network_ui?: boolean;
251
253
  enable_prejoin_ui?: boolean;
254
+ enable_video_processing_ui?: boolean;
252
255
  start_video_off?: boolean;
253
256
  start_audio_off?: boolean;
254
257
  owner_only_broadcast?: boolean;
@@ -276,6 +279,7 @@ export interface DailyRoomInfo {
276
279
  max_live_streams?: number;
277
280
  enable_network_ui?: boolean;
278
281
  enable_prejoin_ui?: boolean;
282
+ enable_video_processing_ui?: boolean;
279
283
  };
280
284
  tokenConfig: {
281
285
  eject_at_token_exp?: boolean;
@@ -476,10 +480,19 @@ export interface DailyStreamingActiveParticipantLayoutConfig {
476
480
  preset: 'active-participant';
477
481
  }
478
482
 
483
+ export type DailyStreamingPortraitLayoutVariant = 'vertical' | 'inset';
484
+
485
+ export interface DailyStreamingPortraitLayoutConfig {
486
+ preset: 'portrait';
487
+ variant?: DailyStreamingPortraitLayoutVariant;
488
+ max_cam_streams?: number;
489
+ }
490
+
479
491
  export type DailyStreamingLayoutConfig =
480
492
  | DailyStreamingDefaultLayoutConfig
481
493
  | DailyStreamingSingleParticipantLayoutConfig
482
- | DailyStreamingActiveParticipantLayoutConfig;
494
+ | DailyStreamingActiveParticipantLayoutConfig
495
+ | DailyStreamingPortraitLayoutConfig;
483
496
 
484
497
  export type DailyAccess = 'unknown' | SpecifiedDailyAccess;
485
498