@azure/communication-react 1.33.0 → 1.34.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/dist/dist-cjs/communication-react/index.js +82 -30
- 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-stateful-client/src/CallSubscriber.d.ts +9 -9
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +81 -29
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
- package/package.json +1 -1
|
@@ -178,7 +178,7 @@ function getDefaultExportFromCjs (x) {
|
|
|
178
178
|
// Copyright (c) Microsoft Corporation.
|
|
179
179
|
// Licensed under the MIT License.
|
|
180
180
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
|
181
|
-
var telemetryVersion = '1.
|
|
181
|
+
var telemetryVersion = '1.34.0';
|
|
182
182
|
|
|
183
183
|
|
|
184
184
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
|
@@ -5519,7 +5519,7 @@ class CallSubscriber {
|
|
|
5519
5519
|
}
|
|
5520
5520
|
};
|
|
5521
5521
|
this.unsubscribe = () => {
|
|
5522
|
-
var _a, _b, _c, _d;
|
|
5522
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
5523
5523
|
this._call.off('stateChanged', this.stateChanged);
|
|
5524
5524
|
this._call.off('stateChanged', this._safeSubscribeInitCaptionSubscriber);
|
|
5525
5525
|
this._call.off('stateChanged', this._safeSubscribeInitTeamsMeetingConference);
|
|
@@ -5541,22 +5541,22 @@ class CallSubscriber {
|
|
|
5541
5541
|
disposeView$1(this._context, this._internalContext, this._callIdRef.callId, undefined, convertSdkLocalStreamToDeclarativeLocalStream(localVideoStream));
|
|
5542
5542
|
this._internalContext.deleteLocalRenderInfo(this._callIdRef.callId, mediaStreamType);
|
|
5543
5543
|
}
|
|
5544
|
-
this._diagnosticsSubscriber.unsubscribe();
|
|
5545
|
-
this._recordingSubscriber.unsubscribe();
|
|
5546
|
-
this._transcriptionSubscriber.unsubscribe();
|
|
5547
|
-
this._optimalVideoCountSubscriber.unsubscribe();
|
|
5548
|
-
this._pptLiveSubscriber.unsubscribe();
|
|
5549
|
-
(
|
|
5544
|
+
(_a = this._diagnosticsSubscriber) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
5545
|
+
(_b = this._recordingSubscriber) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
5546
|
+
(_c = this._transcriptionSubscriber) === null || _c === void 0 ? void 0 : _c.unsubscribe();
|
|
5547
|
+
(_d = this._optimalVideoCountSubscriber) === null || _d === void 0 ? void 0 : _d.unsubscribe();
|
|
5548
|
+
(_e = this._pptLiveSubscriber) === null || _e === void 0 ? void 0 : _e.unsubscribe();
|
|
5549
|
+
(_f = this._CaptionsFeatureSubscriber) === null || _f === void 0 ? void 0 : _f.unsubscribe();
|
|
5550
5550
|
if (this._realTimeTextSubscriber) {
|
|
5551
5551
|
this._realTimeTextSubscriber.unsubscribe();
|
|
5552
5552
|
}
|
|
5553
|
-
(
|
|
5554
|
-
this._capabilitiesSubscriber.unsubscribe();
|
|
5555
|
-
(
|
|
5556
|
-
this._spotlightSubscriber.unsubscribe();
|
|
5557
|
-
(
|
|
5558
|
-
this._togetherModeSubscriber.unsubscribe();
|
|
5559
|
-
this._mediaAccessSubscriber.unsubscribe();
|
|
5553
|
+
(_g = this._raiseHandSubscriber) === null || _g === void 0 ? void 0 : _g.unsubscribe();
|
|
5554
|
+
(_h = this._capabilitiesSubscriber) === null || _h === void 0 ? void 0 : _h.unsubscribe();
|
|
5555
|
+
(_j = this._reactionSubscriber) === null || _j === void 0 ? void 0 : _j.unsubscribe();
|
|
5556
|
+
(_k = this._spotlightSubscriber) === null || _k === void 0 ? void 0 : _k.unsubscribe();
|
|
5557
|
+
(_l = this._breakoutRoomsSubscriber) === null || _l === void 0 ? void 0 : _l.unsubscribe();
|
|
5558
|
+
(_m = this._togetherModeSubscriber) === null || _m === void 0 ? void 0 : _m.unsubscribe();
|
|
5559
|
+
(_o = this._mediaAccessSubscriber) === null || _o === void 0 ? void 0 : _o.unsubscribe();
|
|
5560
5560
|
};
|
|
5561
5561
|
this.stateChanged = () => {
|
|
5562
5562
|
this._context.setCallState(this._callIdRef.callId, this._call.state);
|
|
@@ -5653,25 +5653,77 @@ class CallSubscriber {
|
|
|
5653
5653
|
};
|
|
5654
5654
|
this._context = context;
|
|
5655
5655
|
this._internalContext = internalContext;
|
|
5656
|
-
|
|
5656
|
+
// Creating diagnostic subscribers registers listeners which can throw policy-gated errors
|
|
5657
|
+
// (e.g. Teams-identity outbound group/PSTN calls: code=403 subCode=45802).
|
|
5658
|
+
// Wrap with _safeSubscribe so policy errors don't abort call setup.
|
|
5659
|
+
this._safeSubscribe(() => {
|
|
5660
|
+
this._diagnosticsSubscriber = new UserFacingDiagnosticsSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.UserFacingDiagnostics));
|
|
5661
|
+
});
|
|
5657
5662
|
this._participantSubscribers = new Map();
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
this.
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
this.
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5663
|
+
// Recording listener registration can throw policy-gated errors (403 subCode 45802).
|
|
5664
|
+
// Wrap with _safeSubscribe so optional-feature policy errors don't abort call setup.
|
|
5665
|
+
this._safeSubscribe(() => {
|
|
5666
|
+
this._recordingSubscriber = new RecordingSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Recording));
|
|
5667
|
+
});
|
|
5668
|
+
this._safeSubscribe(() => {
|
|
5669
|
+
this._pptLiveSubscriber = new PPTLiveSubscriber(this._callIdRef, this._context, this._call);
|
|
5670
|
+
});
|
|
5671
|
+
// Transcription listener registration can throw policy-gated errors (403 subCode 45802).
|
|
5672
|
+
// Wrap with _safeSubscribe so optional-feature policy errors don't abort call setup.
|
|
5673
|
+
this._safeSubscribe(() => {
|
|
5674
|
+
this._transcriptionSubscriber = new TranscriptionSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Transcription));
|
|
5675
|
+
});
|
|
5676
|
+
// RaiseHand listener registration can throw policy-gated errors (403 subCode 45802).
|
|
5677
|
+
// Wrap with _safeSubscribe so optional-feature policy errors don't abort call setup.
|
|
5678
|
+
this._safeSubscribe(() => {
|
|
5679
|
+
this._raiseHandSubscriber = new RaiseHandSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.RaiseHand));
|
|
5680
|
+
});
|
|
5681
|
+
// Creating the ReactionSubscriber registers a 'reaction' listener on the Reaction feature.
|
|
5682
|
+
// That registration is policy-gated by the Calling SDK and can throw an ExpectedError
|
|
5683
|
+
// (e.g. Teams-identity outbound group/PSTN calls: code=403 subCode=45802
|
|
5684
|
+
// EVENT_SUBSCRIBE_FAIL_POLICY "Unable to register listener due to meeting policy").
|
|
5685
|
+
// Reactions are an optional feature that the app may not use, so this must never abort
|
|
5686
|
+
// call setup / null out the returned Call. Wrap it with _safeSubscribe so the error is
|
|
5687
|
+
// tee'd to state instead of propagating out of startCall/join.
|
|
5688
|
+
this._safeSubscribe(() => {
|
|
5689
|
+
this._reactionSubscriber = new ReactionSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Reaction));
|
|
5690
|
+
});
|
|
5691
|
+
// OptimalVideoCount listener registration can throw policy-gated errors (403 subCode 45802).
|
|
5692
|
+
// Wrap with _safeSubscribe so optional-feature policy errors don't abort call setup.
|
|
5693
|
+
this._safeSubscribe(() => {
|
|
5694
|
+
this._optimalVideoCountSubscriber = new OptimalVideoCountSubscriber({
|
|
5695
|
+
callIdRef: this._callIdRef,
|
|
5696
|
+
context: this._context,
|
|
5697
|
+
localOptimalVideoCountFeature: this._call.feature(communicationCalling.Features.OptimalVideoCount)
|
|
5698
|
+
});
|
|
5667
5699
|
});
|
|
5668
5700
|
this._localVideoStreamVideoEffectsSubscribers = new Map();
|
|
5669
|
-
|
|
5670
|
-
|
|
5701
|
+
// Capabilities listener registration can throw policy-gated errors (403 subCode 45802).
|
|
5702
|
+
// Wrap with _safeSubscribe so optional-feature policy errors don't abort call setup.
|
|
5703
|
+
this._safeSubscribe(() => {
|
|
5704
|
+
this._capabilitiesSubscriber = new CapabilitiesSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Capabilities));
|
|
5705
|
+
});
|
|
5706
|
+
// Spotlight listener registration can throw policy-gated errors (403 subCode 45802).
|
|
5707
|
+
// Wrap with _safeSubscribe so optional-feature policy errors don't abort call setup.
|
|
5708
|
+
this._safeSubscribe(() => {
|
|
5709
|
+
this._spotlightSubscriber = new SpotlightSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Spotlight));
|
|
5710
|
+
});
|
|
5671
5711
|
this._context.deleteLatestNotification('assignedBreakoutRoomClosed');
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
this.
|
|
5712
|
+
// BreakoutRooms listener registration can throw policy-gated errors (403 subCode 45802).
|
|
5713
|
+
// Wrap with _safeSubscribe so optional-feature policy errors don't abort call setup.
|
|
5714
|
+
this._safeSubscribe(() => {
|
|
5715
|
+
this._breakoutRoomsSubscriber = new BreakoutRoomsSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.BreakoutRooms));
|
|
5716
|
+
});
|
|
5717
|
+
// TogetherMode listener registration can throw policy-gated errors (403 subCode 45802).
|
|
5718
|
+
// Wrap with _safeSubscribe so optional-feature policy errors don't abort call setup.
|
|
5719
|
+
this._safeSubscribe(() => {
|
|
5720
|
+
this._togetherModeSubscriber = new TogetherModeSubscriber(this._callIdRef, this._context, this._internalContext, this._call.feature(communicationCalling.Features.TogetherMode));
|
|
5721
|
+
});
|
|
5722
|
+
// MediaAccess listener registration can throw policy-gated errors (403 subCode 45802).
|
|
5723
|
+
// Wrap with _safeSubscribe so optional-feature policy errors don't abort call setup.
|
|
5724
|
+
this._safeSubscribe(() => {
|
|
5725
|
+
this._mediaAccessSubscriber = new MediaAccessSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.MediaAccess));
|
|
5726
|
+
});
|
|
5675
5727
|
this.subscribe();
|
|
5676
5728
|
}
|
|
5677
5729
|
// This is a helper function to safely call subscriber functions. This is needed in order to prevent events
|