@daily-co/react-native-daily-js 0.40.0 → 0.41.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daily-co/react-native-daily-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.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,7 +26,7 @@
|
|
|
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.43.0",
|
|
30
30
|
"@types/react-native-background-timer": "^2.0.0",
|
|
31
31
|
"react-native-url-polyfill": "^1.1.2"
|
|
32
32
|
},
|
|
@@ -494,17 +494,17 @@ export type DailyCameraError = {
|
|
|
494
494
|
export interface DailyCamPermissionsError extends DailyCameraError {
|
|
495
495
|
type: Extract<DailyCameraErrorType, 'permissions'>;
|
|
496
496
|
blockedBy: 'user' | 'browser';
|
|
497
|
-
blockedMedia:
|
|
497
|
+
blockedMedia: Array<'video' | 'audio'>;
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
export interface DailyCamDeviceNotFoundError extends DailyCameraError {
|
|
501
501
|
type: Extract<DailyCameraErrorType, 'not-found'>;
|
|
502
|
-
missingMedia:
|
|
502
|
+
missingMedia: Array<'video' | 'audio'>;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
export interface DailyCamConstraintsError extends DailyCameraError {
|
|
506
506
|
type: Extract<DailyCameraErrorType, 'constraints'>;
|
|
507
|
-
reason:
|
|
507
|
+
reason: 'invalid' | 'none-specified';
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
export interface DailyCamInUseError extends DailyCameraError {
|
|
@@ -522,7 +522,7 @@ export interface DailyCamUnknownError extends DailyCameraError {
|
|
|
522
522
|
type: Extract<DailyCameraErrorType, 'unknown'>;
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
export type DailyCameraErrorObject<T extends
|
|
525
|
+
export type DailyCameraErrorObject<T extends DailyCameraErrorType> =
|
|
526
526
|
T extends DailyCamPermissionsError['type']
|
|
527
527
|
? DailyCamPermissionsError
|
|
528
528
|
: T extends DailyCamDeviceNotFoundError['type']
|
|
@@ -544,7 +544,7 @@ export interface DailyEventObjectCameraError {
|
|
|
544
544
|
audioOk?: boolean;
|
|
545
545
|
videoOk?: boolean;
|
|
546
546
|
};
|
|
547
|
-
error: DailyCameraErrorObject
|
|
547
|
+
error: DailyCameraErrorObject<DailyCameraErrorType>;
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
export type DailyFatalError = {
|
|
@@ -553,7 +553,7 @@ export type DailyFatalError = {
|
|
|
553
553
|
};
|
|
554
554
|
|
|
555
555
|
export interface DailyFatalConnectionError extends DailyFatalError {
|
|
556
|
-
type: Extract<
|
|
556
|
+
type: Extract<DailyFatalErrorType, 'connection-error'>;
|
|
557
557
|
details: {
|
|
558
558
|
on: 'join' | 'reconnect';
|
|
559
559
|
sourceError: Error;
|
|
@@ -561,13 +561,13 @@ export interface DailyFatalConnectionError extends DailyFatalError {
|
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
export type DailyFatalErrorObject<T extends
|
|
564
|
+
export type DailyFatalErrorObject<T extends DailyFatalErrorType> =
|
|
565
565
|
T extends DailyFatalConnectionError['type'] ? DailyFatalConnectionError : any;
|
|
566
566
|
|
|
567
567
|
export interface DailyEventObjectFatalError {
|
|
568
568
|
action: Extract<DailyEvent, 'error'>;
|
|
569
569
|
errorMsg: string;
|
|
570
|
-
error?: DailyFatalErrorObject
|
|
570
|
+
error?: DailyFatalErrorObject<DailyFatalErrorType>;
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
export interface DailyEventObjectNonFatalError {
|