@stream-io/video-client 0.0.31 → 0.0.32
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 +7 -0
- package/dist/index.browser.es.js +1 -40
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +1 -40
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -40
- package/dist/index.es.js.map +1 -1
- package/dist/src/events/call-permissions.d.ts +0 -5
- package/dist/src/store/CallState.d.ts +1 -23
- package/package.json +1 -1
- package/src/events/__tests__/call-permissions.test.ts +0 -36
- package/src/events/call-permissions.ts +0 -14
- package/src/events/callEventHandlers.ts +1 -2
- package/src/store/CallState.ts +0 -37
package/dist/index.cjs.js
CHANGED
|
@@ -7577,13 +7577,6 @@ class CallState {
|
|
|
7577
7577
|
* Emits a list of details about recordings performed for the current call.
|
|
7578
7578
|
*/
|
|
7579
7579
|
this.callRecordingListSubject = new rxjs.BehaviorSubject([]);
|
|
7580
|
-
/**
|
|
7581
|
-
* Emits the latest call permission request sent by any participant of the
|
|
7582
|
-
* current call.
|
|
7583
|
-
*
|
|
7584
|
-
* @internal
|
|
7585
|
-
*/
|
|
7586
|
-
this.callPermissionRequestSubject = new rxjs.BehaviorSubject(undefined);
|
|
7587
7580
|
/**
|
|
7588
7581
|
* A list of comparators that are used to sort the participants.
|
|
7589
7582
|
*
|
|
@@ -7675,15 +7668,6 @@ class CallState {
|
|
|
7675
7668
|
this.setCallRecordingsList = (recordings) => {
|
|
7676
7669
|
return this.setCurrentValue(this.callRecordingListSubject, recordings);
|
|
7677
7670
|
};
|
|
7678
|
-
/**
|
|
7679
|
-
* Sets the last call permission request.
|
|
7680
|
-
*
|
|
7681
|
-
* @internal
|
|
7682
|
-
* @param request the last call permission request.
|
|
7683
|
-
*/
|
|
7684
|
-
this.setCallPermissionRequest = (request) => {
|
|
7685
|
-
return this.setCurrentValue(this.callPermissionRequestSubject, request);
|
|
7686
|
-
};
|
|
7687
7671
|
/**
|
|
7688
7672
|
* Sets the call stats report.
|
|
7689
7673
|
*
|
|
@@ -7815,8 +7799,6 @@ class CallState {
|
|
|
7815
7799
|
this.anonymousParticipantCount$ =
|
|
7816
7800
|
this.anonymousParticipantCountSubject.asObservable();
|
|
7817
7801
|
this.callStatsReport$ = this.callStatsReportSubject.asObservable();
|
|
7818
|
-
this.callPermissionRequest$ =
|
|
7819
|
-
this.callPermissionRequestSubject.asObservable();
|
|
7820
7802
|
this.callRecordingList$ = this.callRecordingListSubject.asObservable();
|
|
7821
7803
|
this.metadata$ = this.metadataSubject.asObservable();
|
|
7822
7804
|
this.members$ = this.membersSubject.asObservable();
|
|
@@ -7892,12 +7874,6 @@ class CallState {
|
|
|
7892
7874
|
get callRecordingsList() {
|
|
7893
7875
|
return this.getCurrentValue(this.callRecordingList$);
|
|
7894
7876
|
}
|
|
7895
|
-
/**
|
|
7896
|
-
* The last call permission request.
|
|
7897
|
-
*/
|
|
7898
|
-
get callPermissionRequest() {
|
|
7899
|
-
return this.getCurrentValue(this.callPermissionRequest$);
|
|
7900
|
-
}
|
|
7901
7877
|
/**
|
|
7902
7878
|
* The call stats report.
|
|
7903
7879
|
*/
|
|
@@ -8013,20 +7989,6 @@ const watchCallUpdated = (state) => {
|
|
|
8013
7989
|
};
|
|
8014
7990
|
};
|
|
8015
7991
|
|
|
8016
|
-
/**
|
|
8017
|
-
* Event handler that watches for `call.permission_request` events
|
|
8018
|
-
* Updates the state store using the `callPermissionRequest$` stream
|
|
8019
|
-
*/
|
|
8020
|
-
const watchCallPermissionRequest = (state) => {
|
|
8021
|
-
return function onCallPermissionRequest(event) {
|
|
8022
|
-
if (event.type !== 'call.permission_request')
|
|
8023
|
-
return;
|
|
8024
|
-
const { localParticipant } = state;
|
|
8025
|
-
if (event.user.id !== (localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.userId)) {
|
|
8026
|
-
state.setCallPermissionRequest(event);
|
|
8027
|
-
}
|
|
8028
|
-
};
|
|
8029
|
-
};
|
|
8030
7992
|
/**
|
|
8031
7993
|
* Event handler that watches for `call.permissions_updated` events
|
|
8032
7994
|
*/
|
|
@@ -8489,7 +8451,6 @@ const registerEventHandlers = (call, state, dispatcher) => {
|
|
|
8489
8451
|
'call.member_removed': watchCallMemberRemoved(state),
|
|
8490
8452
|
'call.member_updated': watchCallMemberUpdated(state),
|
|
8491
8453
|
'call.member_updated_permission': watchCallMemberUpdatedPermission(state),
|
|
8492
|
-
'call.permission_request': watchCallPermissionRequest(state),
|
|
8493
8454
|
'call.permissions_updated': watchCallPermissionsUpdated(state),
|
|
8494
8455
|
'call.reaction_new': watchNewReactions(state),
|
|
8495
8456
|
'call.recording_started': watchCallRecordingStarted(state),
|
|
@@ -11902,7 +11863,7 @@ class StreamClient {
|
|
|
11902
11863
|
}
|
|
11903
11864
|
getUserAgent() {
|
|
11904
11865
|
return (this.userAgent ||
|
|
11905
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11866
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.31"}`);
|
|
11906
11867
|
}
|
|
11907
11868
|
setUserAgent(userAgent) {
|
|
11908
11869
|
this.userAgent = userAgent;
|