@azure/communication-react 1.5.1-alpha-202301260015 → 1.5.1-alpha-202302010014
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/dist/communication-react.d.ts +4 -0
- package/dist/dist-cjs/communication-react/index.js +20 -1
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +2 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +7 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +4 -0
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +11 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +8 -0
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
- package/package.json +12 -10
@@ -1984,6 +1984,10 @@ export declare interface CallState {
|
|
1984
1984
|
* Proxy of {@link @azure/communication-calling#Call.role}.
|
1985
1985
|
*/
|
1986
1986
|
role?: ParticipantRole;
|
1987
|
+
/**
|
1988
|
+
* Proxy of {@link @azure/communication-calling#Call.totalParticipantCount}.
|
1989
|
+
*/
|
1990
|
+
totalParticipantCount?: number;
|
1987
1991
|
}
|
1988
1992
|
|
1989
1993
|
/**
|
@@ -159,7 +159,7 @@ const _toCommunicationIdentifier = (id) => {
|
|
159
159
|
// Copyright (c) Microsoft Corporation.
|
160
160
|
// Licensed under the MIT license.
|
161
161
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
162
|
-
var telemetryVersion = '1.5.1-alpha-
|
162
|
+
var telemetryVersion = '1.5.1-alpha-202302010014';
|
163
163
|
|
164
164
|
// Copyright (c) Microsoft Corporation.
|
165
165
|
/**
|
@@ -1277,6 +1277,8 @@ class CallContext$2 {
|
|
1277
1277
|
existingCall.recording.isRecordingActive = call.recording.isRecordingActive;
|
1278
1278
|
/* @conditional-compile-remove(rooms) */
|
1279
1279
|
existingCall.role = call.role;
|
1280
|
+
/* @conditional-compile-remove(total-participant-count) */
|
1281
|
+
existingCall.totalParticipantCount = call.totalParticipantCount;
|
1280
1282
|
// We don't update the startTime and endTime if we are updating an existing active call
|
1281
1283
|
}
|
1282
1284
|
else {
|
@@ -1390,6 +1392,15 @@ class CallContext$2 {
|
|
1390
1392
|
}
|
1391
1393
|
});
|
1392
1394
|
}
|
1395
|
+
/* @conditional-compile-remove(total-participant-count) */
|
1396
|
+
setTotalParticipantCount(callId, totalParticipantCount) {
|
1397
|
+
this.modifyState((draft) => {
|
1398
|
+
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
1399
|
+
if (call) {
|
1400
|
+
call.totalParticipantCount = totalParticipantCount;
|
1401
|
+
}
|
1402
|
+
});
|
1403
|
+
}
|
1393
1404
|
setCallDominantSpeakers(callId, dominantSpeakers) {
|
1394
1405
|
this.modifyState((draft) => {
|
1395
1406
|
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
@@ -2810,6 +2821,8 @@ class CallSubscriber {
|
|
2810
2821
|
/* @conditional-compile-remove(rooms) */
|
2811
2822
|
this._call.on('roleChanged', this.callRoleChangedHandler);
|
2812
2823
|
this._call.feature(communicationCalling.Features.DominantSpeakers).on('dominantSpeakersChanged', this.dominantSpeakersChanged);
|
2824
|
+
/* @conditional-compile-remove(total-participant-count) */
|
2825
|
+
this._call.on('totalParticipantCountChanged', this.totalParticipantCountChangedHandler);
|
2813
2826
|
// At time of writing only one LocalVideoStream is supported by SDK.
|
2814
2827
|
if (this._call.localVideoStreams.length > 0) {
|
2815
2828
|
this._internalContext.setLocalRenderInfo(this._callIdRef.callId, this._call.localVideoStreams[0], 'NotRendered', undefined);
|
@@ -2830,6 +2843,8 @@ class CallSubscriber {
|
|
2830
2843
|
this._call.off('isMutedChanged', this.isMuteChanged);
|
2831
2844
|
/* @conditional-compile-remove(rooms) */
|
2832
2845
|
this._call.off('roleChanged', this.callRoleChangedHandler);
|
2846
|
+
/* @conditional-compile-remove(total-participant-count) */
|
2847
|
+
this._call.off('totalParticipantCountChanged', this.totalParticipantCountChangedHandler);
|
2833
2848
|
this._participantSubscribers.forEach((participantSubscriber) => {
|
2834
2849
|
participantSubscriber.unsubscribe();
|
2835
2850
|
});
|
@@ -2862,6 +2877,10 @@ class CallSubscriber {
|
|
2862
2877
|
this.callRoleChangedHandler = () => {
|
2863
2878
|
this._context.setRole(this._callIdRef.callId, this._call.role);
|
2864
2879
|
};
|
2880
|
+
/* @conditional-compile-remove(total-participant-count) */
|
2881
|
+
this.totalParticipantCountChangedHandler = () => {
|
2882
|
+
this._context.setTotalParticipantCount(this._callIdRef.callId, this._call.totalParticipantCount);
|
2883
|
+
};
|
2865
2884
|
this.remoteParticipantsUpdated = (event) => {
|
2866
2885
|
event.added.forEach((participant) => {
|
2867
2886
|
this.addParticipantListener(participant);
|