@daily-co/react-native-daily-js 0.54.0 → 0.55.1
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/LICENSE +25 -0
- package/package.json +6 -4
- package/type-overrides/@daily-co/daily-js/index.d.ts +28 -12
package/LICENSE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
BSD 2-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019, daily-co
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
17
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
18
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
19
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
20
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
21
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
22
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
23
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
24
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
25
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
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.55.1",
|
|
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",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"android",
|
|
11
11
|
"ios",
|
|
12
12
|
"react-native-daily-js.podspec",
|
|
13
|
-
"react-native.config.js"
|
|
13
|
+
"react-native.config.js",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
14
16
|
],
|
|
15
17
|
"scripts": {
|
|
16
18
|
"build": "tsc",
|
|
@@ -19,14 +21,14 @@
|
|
|
19
21
|
"tag": "scripts/tag",
|
|
20
22
|
"prepublishOnly": "npm run tag"
|
|
21
23
|
},
|
|
22
|
-
"license": "
|
|
24
|
+
"license": "BSD-2-Clause",
|
|
23
25
|
"repository": {
|
|
24
26
|
"type": "git",
|
|
25
27
|
"url": "git+https://github.com/daily-co/react-native-daily-js.git",
|
|
26
28
|
"baseUrl": "https://github.com/daily-co/react-native-daily-js"
|
|
27
29
|
},
|
|
28
30
|
"dependencies": {
|
|
29
|
-
"@daily-co/daily-js": "^0.
|
|
31
|
+
"@daily-co/daily-js": "^0.57.1",
|
|
30
32
|
"@types/react-native-background-timer": "^2.0.0",
|
|
31
33
|
"base-64": "^1.0.0",
|
|
32
34
|
"react-native-url-polyfill": "^1.1.2"
|
|
@@ -65,6 +65,7 @@ export type DailyEvent =
|
|
|
65
65
|
| 'transcription-message'
|
|
66
66
|
| 'local-screen-share-started'
|
|
67
67
|
| 'local-screen-share-stopped'
|
|
68
|
+
| 'local-screen-share-canceled'
|
|
68
69
|
| 'active-speaker-change'
|
|
69
70
|
| 'network-quality-change'
|
|
70
71
|
| 'network-connection'
|
|
@@ -417,6 +418,7 @@ export interface DailyNetworkStats {
|
|
|
417
418
|
timestamp: number;
|
|
418
419
|
recvBitsPerSecond: number | null;
|
|
419
420
|
sendBitsPerSecond: number | null;
|
|
421
|
+
availableOutgoingBitrate: number | null;
|
|
420
422
|
networkRoundTripTime: number | null;
|
|
421
423
|
videoRecvBitsPerSecond: number | null;
|
|
422
424
|
videoSendBitsPerSecond: number | null;
|
|
@@ -534,11 +536,19 @@ export interface DailyRoomInfo {
|
|
|
534
536
|
audio_only?: boolean;
|
|
535
537
|
enable_recording?: string;
|
|
536
538
|
enable_dialin?: boolean;
|
|
539
|
+
/**
|
|
540
|
+
* @deprecated This property will be removed.
|
|
541
|
+
* All calls are treated as autojoin.
|
|
542
|
+
*/
|
|
537
543
|
autojoin?: boolean;
|
|
538
544
|
eject_at_room_exp?: boolean;
|
|
539
545
|
eject_after_elapsed?: number;
|
|
540
546
|
lang?: '' | DailyLanguageSetting;
|
|
541
547
|
sfu_switchover?: number;
|
|
548
|
+
/**
|
|
549
|
+
* @deprecated This property will be removed.
|
|
550
|
+
* All calls use websocket signaling ('ws').
|
|
551
|
+
*/
|
|
542
552
|
signaling_impl?: string;
|
|
543
553
|
geo?: string;
|
|
544
554
|
};
|
|
@@ -701,8 +711,14 @@ export type DailyFatalError = {
|
|
|
701
711
|
export interface DailyFatalConnectionError extends DailyFatalError {
|
|
702
712
|
type: Extract<DailyFatalErrorType, 'connection-error'>;
|
|
703
713
|
details: {
|
|
704
|
-
on:
|
|
705
|
-
|
|
714
|
+
on:
|
|
715
|
+
| 'load'
|
|
716
|
+
| 'join'
|
|
717
|
+
| 'reconnect'
|
|
718
|
+
| 'move'
|
|
719
|
+
| 'rtc-connection'
|
|
720
|
+
| 'room-lookup';
|
|
721
|
+
sourceError: Record<string, any>;
|
|
706
722
|
uri?: string;
|
|
707
723
|
workerGroup?: string;
|
|
708
724
|
geoGroup?: string;
|
|
@@ -1020,10 +1036,10 @@ export interface DailyStreamingParticipantsConfig {
|
|
|
1020
1036
|
sort?: DailyStreamingParticipantsSortMethod;
|
|
1021
1037
|
}
|
|
1022
1038
|
|
|
1023
|
-
export interface DailyStreamingDefaultLayoutConfig
|
|
1024
|
-
extends DailyStreamingParticipantsConfig {
|
|
1039
|
+
export interface DailyStreamingDefaultLayoutConfig {
|
|
1025
1040
|
preset: 'default';
|
|
1026
1041
|
max_cam_streams?: number;
|
|
1042
|
+
participants?: DailyStreamingParticipantsConfig;
|
|
1027
1043
|
}
|
|
1028
1044
|
|
|
1029
1045
|
export interface DailyStreamingSingleParticipantLayoutConfig {
|
|
@@ -1031,35 +1047,35 @@ export interface DailyStreamingSingleParticipantLayoutConfig {
|
|
|
1031
1047
|
session_id: string;
|
|
1032
1048
|
}
|
|
1033
1049
|
|
|
1034
|
-
export interface DailyStreamingActiveParticipantLayoutConfig
|
|
1035
|
-
extends DailyStreamingParticipantsConfig {
|
|
1050
|
+
export interface DailyStreamingActiveParticipantLayoutConfig {
|
|
1036
1051
|
preset: 'active-participant';
|
|
1052
|
+
participants?: DailyStreamingParticipantsConfig;
|
|
1037
1053
|
}
|
|
1038
1054
|
|
|
1039
1055
|
export interface DailyStreamingAudioOnlyLayoutConfig {
|
|
1040
1056
|
preset: 'audio-only';
|
|
1057
|
+
participants?: DailyStreamingParticipantsConfig;
|
|
1041
1058
|
}
|
|
1042
1059
|
|
|
1043
1060
|
export type DailyStreamingPortraitLayoutVariant = 'vertical' | 'inset';
|
|
1044
1061
|
|
|
1045
|
-
export interface DailyStreamingPortraitLayoutConfig
|
|
1046
|
-
extends DailyStreamingParticipantsConfig {
|
|
1062
|
+
export interface DailyStreamingPortraitLayoutConfig {
|
|
1047
1063
|
preset: 'portrait';
|
|
1048
1064
|
variant?: DailyStreamingPortraitLayoutVariant;
|
|
1049
1065
|
max_cam_streams?: number;
|
|
1066
|
+
participants?: DailyStreamingParticipantsConfig;
|
|
1050
1067
|
}
|
|
1051
1068
|
|
|
1052
|
-
export interface DailyUpdateStreamingCustomLayoutConfig
|
|
1053
|
-
extends DailyStreamingParticipantsConfig {
|
|
1069
|
+
export interface DailyUpdateStreamingCustomLayoutConfig {
|
|
1054
1070
|
preset: 'custom';
|
|
1071
|
+
participants?: DailyStreamingParticipantsConfig;
|
|
1055
1072
|
composition_params?: {
|
|
1056
1073
|
[key: string]: boolean | number | string;
|
|
1057
1074
|
};
|
|
1058
1075
|
}
|
|
1059
1076
|
|
|
1060
1077
|
export interface DailyStartStreamingCustomLayoutConfig
|
|
1061
|
-
extends DailyUpdateStreamingCustomLayoutConfig
|
|
1062
|
-
DailyStreamingParticipantsConfig {
|
|
1078
|
+
extends DailyUpdateStreamingCustomLayoutConfig {
|
|
1063
1079
|
composition_id?: string;
|
|
1064
1080
|
session_assets?: {
|
|
1065
1081
|
[key: string]: string;
|