@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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.0.32](https://github.com/GetStream/stream-video-js/compare/client0.0.31...client0.0.32) (2023-07-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* stop tracking permission requests in Call state ([#744](https://github.com/GetStream/stream-video-js/issues/744)) ([b330df3](https://github.com/GetStream/stream-video-js/commit/b330df39d9dce34d9e5a1a7ec58acb0a905ee07b))
|
|
11
|
+
|
|
5
12
|
### [0.0.31](https://github.com/GetStream/stream-video-js/compare/client0.0.30...client0.0.31) (2023-07-03)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -7554,13 +7554,6 @@ class CallState {
|
|
|
7554
7554
|
* Emits a list of details about recordings performed for the current call.
|
|
7555
7555
|
*/
|
|
7556
7556
|
this.callRecordingListSubject = new BehaviorSubject([]);
|
|
7557
|
-
/**
|
|
7558
|
-
* Emits the latest call permission request sent by any participant of the
|
|
7559
|
-
* current call.
|
|
7560
|
-
*
|
|
7561
|
-
* @internal
|
|
7562
|
-
*/
|
|
7563
|
-
this.callPermissionRequestSubject = new BehaviorSubject(undefined);
|
|
7564
7557
|
/**
|
|
7565
7558
|
* A list of comparators that are used to sort the participants.
|
|
7566
7559
|
*
|
|
@@ -7652,15 +7645,6 @@ class CallState {
|
|
|
7652
7645
|
this.setCallRecordingsList = (recordings) => {
|
|
7653
7646
|
return this.setCurrentValue(this.callRecordingListSubject, recordings);
|
|
7654
7647
|
};
|
|
7655
|
-
/**
|
|
7656
|
-
* Sets the last call permission request.
|
|
7657
|
-
*
|
|
7658
|
-
* @internal
|
|
7659
|
-
* @param request the last call permission request.
|
|
7660
|
-
*/
|
|
7661
|
-
this.setCallPermissionRequest = (request) => {
|
|
7662
|
-
return this.setCurrentValue(this.callPermissionRequestSubject, request);
|
|
7663
|
-
};
|
|
7664
7648
|
/**
|
|
7665
7649
|
* Sets the call stats report.
|
|
7666
7650
|
*
|
|
@@ -7792,8 +7776,6 @@ class CallState {
|
|
|
7792
7776
|
this.anonymousParticipantCount$ =
|
|
7793
7777
|
this.anonymousParticipantCountSubject.asObservable();
|
|
7794
7778
|
this.callStatsReport$ = this.callStatsReportSubject.asObservable();
|
|
7795
|
-
this.callPermissionRequest$ =
|
|
7796
|
-
this.callPermissionRequestSubject.asObservable();
|
|
7797
7779
|
this.callRecordingList$ = this.callRecordingListSubject.asObservable();
|
|
7798
7780
|
this.metadata$ = this.metadataSubject.asObservable();
|
|
7799
7781
|
this.members$ = this.membersSubject.asObservable();
|
|
@@ -7869,12 +7851,6 @@ class CallState {
|
|
|
7869
7851
|
get callRecordingsList() {
|
|
7870
7852
|
return this.getCurrentValue(this.callRecordingList$);
|
|
7871
7853
|
}
|
|
7872
|
-
/**
|
|
7873
|
-
* The last call permission request.
|
|
7874
|
-
*/
|
|
7875
|
-
get callPermissionRequest() {
|
|
7876
|
-
return this.getCurrentValue(this.callPermissionRequest$);
|
|
7877
|
-
}
|
|
7878
7854
|
/**
|
|
7879
7855
|
* The call stats report.
|
|
7880
7856
|
*/
|
|
@@ -7990,20 +7966,6 @@ const watchCallUpdated = (state) => {
|
|
|
7990
7966
|
};
|
|
7991
7967
|
};
|
|
7992
7968
|
|
|
7993
|
-
/**
|
|
7994
|
-
* Event handler that watches for `call.permission_request` events
|
|
7995
|
-
* Updates the state store using the `callPermissionRequest$` stream
|
|
7996
|
-
*/
|
|
7997
|
-
const watchCallPermissionRequest = (state) => {
|
|
7998
|
-
return function onCallPermissionRequest(event) {
|
|
7999
|
-
if (event.type !== 'call.permission_request')
|
|
8000
|
-
return;
|
|
8001
|
-
const { localParticipant } = state;
|
|
8002
|
-
if (event.user.id !== (localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.userId)) {
|
|
8003
|
-
state.setCallPermissionRequest(event);
|
|
8004
|
-
}
|
|
8005
|
-
};
|
|
8006
|
-
};
|
|
8007
7969
|
/**
|
|
8008
7970
|
* Event handler that watches for `call.permissions_updated` events
|
|
8009
7971
|
*/
|
|
@@ -8466,7 +8428,6 @@ const registerEventHandlers = (call, state, dispatcher) => {
|
|
|
8466
8428
|
'call.member_removed': watchCallMemberRemoved(state),
|
|
8467
8429
|
'call.member_updated': watchCallMemberUpdated(state),
|
|
8468
8430
|
'call.member_updated_permission': watchCallMemberUpdatedPermission(state),
|
|
8469
|
-
'call.permission_request': watchCallPermissionRequest(state),
|
|
8470
8431
|
'call.permissions_updated': watchCallPermissionsUpdated(state),
|
|
8471
8432
|
'call.reaction_new': watchNewReactions(state),
|
|
8472
8433
|
'call.recording_started': watchCallRecordingStarted(state),
|
|
@@ -11878,7 +11839,7 @@ class StreamClient {
|
|
|
11878
11839
|
}
|
|
11879
11840
|
getUserAgent() {
|
|
11880
11841
|
return (this.userAgent ||
|
|
11881
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.
|
|
11842
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.31"}`);
|
|
11882
11843
|
}
|
|
11883
11844
|
setUserAgent(userAgent) {
|
|
11884
11845
|
this.userAgent = userAgent;
|