@azure/communication-react 1.22.0-alpha-202412070017 → 1.22.0-alpha-202412100018
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 +60 -10
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CTHWXMl0.js → ChatMessageComponentAsRichTextEditBox-Bpez2mhK.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-CTHWXMl0.js.map → ChatMessageComponentAsRichTextEditBox-Bpez2mhK.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-C0YPqtKB.js → RichTextSendBoxWrapper-CrmMCuXY.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-C0YPqtKB.js.map → RichTextSendBoxWrapper-CrmMCuXY.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-Bf1eybwR.js → index-DIxf34Zj.js} +176 -40
- package/dist/dist-cjs/communication-react/index-DIxf34Zj.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +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 +5 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +8 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +48 -8
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +20 -20
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js +45 -3
- package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +11 -5
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +7 -1
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +5 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +2 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +15 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js +62 -0
- package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/MediaAccessSubscriber.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/MediaAccessSubscriber.js +7 -4
- package/dist/dist-esm/calling-stateful-client/src/MediaAccessSubscriber.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/NotificationStack.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/NotificationStack.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/TogetherModeTypes.d.ts +7 -31
- package/dist/dist-esm/react-components/src/types/TogetherModeTypes.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +3 -1
- package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AudioProvider.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AudioProvider.js +8 -3
- package/dist/dist-esm/react-composites/src/composites/common/AudioProvider.js.map +1 -1
- package/package.json +2 -2
- package/dist/dist-cjs/communication-react/index-Bf1eybwR.js.map +0 -1
@@ -188,7 +188,7 @@ function getDefaultExportFromCjs (x) {
|
|
188
188
|
// Copyright (c) Microsoft Corporation.
|
189
189
|
// Licensed under the MIT License.
|
190
190
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
191
|
-
var telemetryVersion = '1.22.0-alpha-
|
191
|
+
var telemetryVersion = '1.22.0-alpha-202412100018';
|
192
192
|
|
193
193
|
|
194
194
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -1384,40 +1384,40 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
1384
1384
|
}
|
1385
1385
|
};
|
1386
1386
|
/* @conditional-compile-remove(media-access) */
|
1387
|
-
const
|
1387
|
+
const onForbidAudio = (userIds) => __awaiter$11(void 0, void 0, void 0, function* () {
|
1388
1388
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
1389
1389
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).forbidAudio(participants));
|
1390
1390
|
});
|
1391
1391
|
/* @conditional-compile-remove(media-access) */
|
1392
|
-
const
|
1392
|
+
const onPermitAudio = (userIds) => __awaiter$11(void 0, void 0, void 0, function* () {
|
1393
1393
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
1394
1394
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).permitAudio(participants));
|
1395
1395
|
});
|
1396
1396
|
/* @conditional-compile-remove(media-access) */
|
1397
|
-
const
|
1398
|
-
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).
|
1397
|
+
const onForbidOthersAudio = () => __awaiter$11(void 0, void 0, void 0, function* () {
|
1398
|
+
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).forbidOthersAudio());
|
1399
1399
|
});
|
1400
1400
|
/* @conditional-compile-remove(media-access) */
|
1401
|
-
const
|
1402
|
-
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).
|
1401
|
+
const onPermitOthersAudio = () => __awaiter$11(void 0, void 0, void 0, function* () {
|
1402
|
+
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).permitOthersAudio());
|
1403
1403
|
});
|
1404
1404
|
/* @conditional-compile-remove(media-access) */
|
1405
|
-
const
|
1405
|
+
const onForbidVideo = (userIds) => __awaiter$11(void 0, void 0, void 0, function* () {
|
1406
1406
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
1407
1407
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).forbidVideo(participants));
|
1408
1408
|
});
|
1409
1409
|
/* @conditional-compile-remove(media-access) */
|
1410
|
-
const
|
1410
|
+
const onPermitVideo = (userIds) => __awaiter$11(void 0, void 0, void 0, function* () {
|
1411
1411
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
1412
1412
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).permitVideo(participants));
|
1413
1413
|
});
|
1414
1414
|
/* @conditional-compile-remove(media-access) */
|
1415
|
-
const
|
1416
|
-
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).
|
1415
|
+
const onForbidOthersVideo = () => __awaiter$11(void 0, void 0, void 0, function* () {
|
1416
|
+
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).forbidOthersVideo());
|
1417
1417
|
});
|
1418
1418
|
/* @conditional-compile-remove(media-access) */
|
1419
|
-
const
|
1420
|
-
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).
|
1419
|
+
const onPermitOthersVideo = () => __awaiter$11(void 0, void 0, void 0, function* () {
|
1420
|
+
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.MediaAccess).permitOthersVideo());
|
1421
1421
|
});
|
1422
1422
|
return {
|
1423
1423
|
onHangUp,
|
@@ -1478,21 +1478,21 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
1478
1478
|
/* @conditional-compile-remove(together-mode) */
|
1479
1479
|
onSetTogetherModeSceneSize,
|
1480
1480
|
/* @conditional-compile-remove(media-access) */
|
1481
|
-
|
1481
|
+
onForbidAudio,
|
1482
1482
|
/* @conditional-compile-remove(media-access) */
|
1483
|
-
|
1483
|
+
onPermitAudio,
|
1484
1484
|
/* @conditional-compile-remove(media-access) */
|
1485
|
-
|
1485
|
+
onForbidOthersAudio,
|
1486
1486
|
/* @conditional-compile-remove(media-access) */
|
1487
|
-
|
1487
|
+
onPermitOthersAudio,
|
1488
1488
|
/* @conditional-compile-remove(media-access) */
|
1489
|
-
|
1489
|
+
onForbidVideo,
|
1490
1490
|
/* @conditional-compile-remove(media-access) */
|
1491
|
-
|
1491
|
+
onPermitVideo,
|
1492
1492
|
/* @conditional-compile-remove(media-access) */
|
1493
|
-
|
1493
|
+
onForbidOthersVideo,
|
1494
1494
|
/* @conditional-compile-remove(media-access) */
|
1495
|
-
|
1495
|
+
onPermitOthersVideo
|
1496
1496
|
};
|
1497
1497
|
});
|
1498
1498
|
|
@@ -1661,7 +1661,7 @@ const notificationStackSelector = reselect.createSelector([
|
|
1661
1661
|
getMeetingConferencePhones,
|
1662
1662
|
/* @conditional-compile-remove(breakout-rooms) */ getAssignedBreakoutRoom$1
|
1663
1663
|
], (latestErrors,
|
1664
|
-
/* @conditional-compile-remove(breakout-rooms) */ latestNotifications, diagnostics, deviceManager, environmentInfo, meetingConference,
|
1664
|
+
/* @conditional-compile-remove(breakout-rooms) */ /* @conditional-compile-remove(media-access) */ latestNotifications, diagnostics, deviceManager, environmentInfo, meetingConference,
|
1665
1665
|
/* @conditional-compile-remove(breakout-rooms) */ assignedBreakoutRoom) => {
|
1666
1666
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
1667
1667
|
// The order in which the errors are returned is significant: The `Notification` shows errors on the UI in that order.
|
@@ -1772,7 +1772,8 @@ const notificationStackSelector = reselect.createSelector([
|
|
1772
1772
|
appendActiveErrorIfDefined$1(activeErrorMessages, latestErrors, 'Call.startVideo', 'startVideoGeneric');
|
1773
1773
|
}
|
1774
1774
|
appendActiveErrorIfDefined$1(activeErrorMessages, latestErrors, 'Call.unmute', 'unmuteGeneric');
|
1775
|
-
|
1775
|
+
appendMuteByOthersNotificationTrampoline(activeErrorMessages, latestErrors,
|
1776
|
+
/* @conditional-compile-remove(media-access) */ latestNotifications);
|
1776
1777
|
appendActiveErrorIfDefined$1(activeErrorMessages, latestErrors, 'VideoEffectsFeature.startEffects', 'unableToStartVideoEffect');
|
1777
1778
|
if (((_s = latestErrors['CallAgent.join']) === null || _s === void 0 ? void 0 : _s.message) === 'CallAgent.join: Invalid meeting link') {
|
1778
1779
|
appendActiveErrorIfDefined$1(activeErrorMessages, latestErrors, 'CallAgent.join', 'failedToJoinCallInvalidMeetingLink');
|
@@ -1829,6 +1830,34 @@ const notificationStackSelector = reselect.createSelector([
|
|
1829
1830
|
timestamp: latestNotifications['breakoutRoomClosingSoon'].timestamp
|
1830
1831
|
});
|
1831
1832
|
}
|
1833
|
+
/* @conditional-compile-remove(media-access) */
|
1834
|
+
if (latestNotifications['capabilityTurnVideoOnPresent']) {
|
1835
|
+
activeNotifications.push({
|
1836
|
+
type: 'capabilityTurnVideoOnPresent',
|
1837
|
+
timestamp: latestNotifications['capabilityTurnVideoOnPresent'].timestamp
|
1838
|
+
});
|
1839
|
+
}
|
1840
|
+
/* @conditional-compile-remove(media-access) */
|
1841
|
+
if (latestNotifications['capabilityTurnVideoOnAbsent']) {
|
1842
|
+
activeNotifications.push({
|
1843
|
+
type: 'capabilityTurnVideoOnAbsent',
|
1844
|
+
timestamp: latestNotifications['capabilityTurnVideoOnAbsent'].timestamp
|
1845
|
+
});
|
1846
|
+
}
|
1847
|
+
/* @conditional-compile-remove(media-access) */
|
1848
|
+
if (latestNotifications['capabilityUnmuteMicPresent']) {
|
1849
|
+
activeNotifications.push({
|
1850
|
+
type: 'capabilityUnmuteMicPresent',
|
1851
|
+
timestamp: latestNotifications['capabilityUnmuteMicPresent'].timestamp
|
1852
|
+
});
|
1853
|
+
}
|
1854
|
+
/* @conditional-compile-remove(media-access) */
|
1855
|
+
if (latestNotifications['capabilityUnmuteMicAbsent']) {
|
1856
|
+
activeNotifications.push({
|
1857
|
+
type: 'capabilityUnmuteMicAbsent',
|
1858
|
+
timestamp: latestNotifications['capabilityUnmuteMicAbsent'].timestamp
|
1859
|
+
});
|
1860
|
+
}
|
1832
1861
|
return { activeErrorMessages: activeErrorMessages, activeNotifications: activeNotifications };
|
1833
1862
|
});
|
1834
1863
|
const appendActiveErrorIfDefined$1 = (activeErrorMessages, latestErrors, target, activeErrorType) => {
|
@@ -1840,6 +1869,16 @@ const appendActiveErrorIfDefined$1 = (activeErrorMessages, latestErrors, target,
|
|
1840
1869
|
timestamp: latestErrors[target].timestamp
|
1841
1870
|
});
|
1842
1871
|
};
|
1872
|
+
const appendMuteByOthersNotificationTrampoline = (activeErrorMessages, latestErrors, latestNotifications) => {
|
1873
|
+
/* @conditional-compile-remove(media-access) */
|
1874
|
+
if (latestNotifications &&
|
1875
|
+
!latestNotifications['capabilityUnmuteMicAbsent'] &&
|
1876
|
+
!latestNotifications['capabilityUnmuteMicPresent']) {
|
1877
|
+
appendActiveErrorIfDefined$1(activeErrorMessages, latestErrors, 'Call.mutedByOthers', 'mutedByRemoteParticipant');
|
1878
|
+
}
|
1879
|
+
/* @conditional-compile-remove(media-access) */
|
1880
|
+
return;
|
1881
|
+
};
|
1843
1882
|
|
1844
1883
|
// Copyright (c) Microsoft Corporation.
|
1845
1884
|
// Licensed under the MIT License.
|
@@ -3704,6 +3743,21 @@ let CallContext$2 = class CallContext {
|
|
3704
3743
|
});
|
3705
3744
|
});
|
3706
3745
|
}
|
3746
|
+
/* @conditional-compile-remove(media-access) */
|
3747
|
+
setMeetingMediaAccess(callId, meetingMediaAccess) {
|
3748
|
+
this.modifyState((draft) => {
|
3749
|
+
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
3750
|
+
if (!call) {
|
3751
|
+
return;
|
3752
|
+
}
|
3753
|
+
if (meetingMediaAccess) {
|
3754
|
+
call.mediaAccess = {
|
3755
|
+
isAudioPermitted: meetingMediaAccess.isAudioPermitted,
|
3756
|
+
isVideoPermitted: meetingMediaAccess.isVideoPermitted
|
3757
|
+
};
|
3758
|
+
}
|
3759
|
+
});
|
3760
|
+
}
|
3707
3761
|
};
|
3708
3762
|
const toCallError = (target, error) => {
|
3709
3763
|
if (error instanceof Error) {
|
@@ -4947,6 +5001,68 @@ class CapabilitiesSubscriber {
|
|
4947
5001
|
if (data.oldValue.viewAttendeeNames !== data.newValue.viewAttendeeNames) {
|
4948
5002
|
this._context.setHideAttendeeNames(this._callIdRef.callId, data);
|
4949
5003
|
}
|
5004
|
+
/* @conditional-compile-remove(media-access) */
|
5005
|
+
this.setUnmuteMicAndTurnVideoOnNotification(data);
|
5006
|
+
};
|
5007
|
+
/* @conditional-compile-remove(media-access) */
|
5008
|
+
this.setUnmuteMicAndTurnVideoOnNotification = (data) => {
|
5009
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
5010
|
+
if (((_a = data.oldValue.turnVideoOn) === null || _a === void 0 ? void 0 : _a.isPresent) !== ((_b = data.newValue.turnVideoOn) === null || _b === void 0 ? void 0 : _b.isPresent)) {
|
5011
|
+
if (((_c = data.oldValue.turnVideoOn) === null || _c === void 0 ? void 0 : _c.isPresent) === false && ((_d = data.newValue.turnVideoOn) === null || _d === void 0 ? void 0 : _d.isPresent)) {
|
5012
|
+
const capabilityTurnVideoOnAbsent = this._context.getState().latestNotifications.capabilityTurnVideoOnAbsent;
|
5013
|
+
if (capabilityTurnVideoOnAbsent) {
|
5014
|
+
this._context.deleteLatestNotification(this._callIdRef.callId, 'capabilityTurnVideoOnAbsent');
|
5015
|
+
}
|
5016
|
+
const capabilityTurnVideoOnPresent = this._context.getState().latestNotifications.capabilityTurnVideoOnPresent;
|
5017
|
+
if (!capabilityTurnVideoOnPresent) {
|
5018
|
+
this._context.setLatestNotification(this._callIdRef.callId, {
|
5019
|
+
target: 'capabilityTurnVideoOnPresent',
|
5020
|
+
timestamp: new Date(Date.now())
|
5021
|
+
});
|
5022
|
+
}
|
5023
|
+
}
|
5024
|
+
if (((_e = data.newValue.turnVideoOn) === null || _e === void 0 ? void 0 : _e.isPresent) === false) {
|
5025
|
+
const capabilityTurnVideoOnPresent = this._context.getState().latestNotifications.capabilityTurnVideoOnPresent;
|
5026
|
+
if (capabilityTurnVideoOnPresent) {
|
5027
|
+
this._context.deleteLatestNotification(this._callIdRef.callId, 'capabilityTurnVideoOnPresent');
|
5028
|
+
}
|
5029
|
+
const capabilityTurnVideoOnAbsent = this._context.getState().latestNotifications.capabilityTurnVideoOnAbsent;
|
5030
|
+
if (!capabilityTurnVideoOnAbsent) {
|
5031
|
+
this._context.setLatestNotification(this._callIdRef.callId, {
|
5032
|
+
target: 'capabilityTurnVideoOnAbsent',
|
5033
|
+
timestamp: new Date(Date.now())
|
5034
|
+
});
|
5035
|
+
}
|
5036
|
+
}
|
5037
|
+
}
|
5038
|
+
if (((_f = data.oldValue.unmuteMic) === null || _f === void 0 ? void 0 : _f.isPresent) !== ((_g = data.newValue.unmuteMic) === null || _g === void 0 ? void 0 : _g.isPresent)) {
|
5039
|
+
if (((_h = data.oldValue.unmuteMic) === null || _h === void 0 ? void 0 : _h.isPresent) === false && ((_j = data.newValue.unmuteMic) === null || _j === void 0 ? void 0 : _j.isPresent)) {
|
5040
|
+
const capabilityUnmuteMicAbsent = this._context.getState().latestNotifications.capabilityUnmuteMicAbsent;
|
5041
|
+
if (capabilityUnmuteMicAbsent) {
|
5042
|
+
this._context.deleteLatestNotification(this._callIdRef.callId, 'capabilityUnmuteMicAbsent');
|
5043
|
+
}
|
5044
|
+
const capabilityUnmuteMicPresent = this._context.getState().latestNotifications.capabilityUnmuteMicPresent;
|
5045
|
+
if (!capabilityUnmuteMicPresent) {
|
5046
|
+
this._context.setLatestNotification(this._callIdRef.callId, {
|
5047
|
+
target: 'capabilityUnmuteMicPresent',
|
5048
|
+
timestamp: new Date(Date.now())
|
5049
|
+
});
|
5050
|
+
}
|
5051
|
+
}
|
5052
|
+
if (((_k = data.newValue.unmuteMic) === null || _k === void 0 ? void 0 : _k.isPresent) === false) {
|
5053
|
+
const capabilityUnmuteMicPresent = this._context.getState().latestNotifications.capabilityUnmuteMicPresent;
|
5054
|
+
if (capabilityUnmuteMicPresent) {
|
5055
|
+
this._context.deleteLatestNotification(this._callIdRef.callId, 'capabilityUnmuteMicPresent');
|
5056
|
+
}
|
5057
|
+
const capabilityUnmuteMicAbsent = this._context.getState().latestNotifications.capabilityUnmuteMicAbsent;
|
5058
|
+
if (!capabilityUnmuteMicAbsent) {
|
5059
|
+
this._context.setLatestNotification(this._callIdRef.callId, {
|
5060
|
+
target: 'capabilityUnmuteMicAbsent',
|
5061
|
+
timestamp: new Date(Date.now())
|
5062
|
+
});
|
5063
|
+
}
|
5064
|
+
}
|
5065
|
+
}
|
4950
5066
|
};
|
4951
5067
|
this._callIdRef = callIdRef;
|
4952
5068
|
this._context = context;
|
@@ -5464,18 +5580,21 @@ class MediaAccessSubscriber {
|
|
5464
5580
|
constructor(callIdRef, context, mediaAccessCallFeature) {
|
5465
5581
|
this.subscribe = () => {
|
5466
5582
|
this._mediaAccessCallFeature.on('mediaAccessChanged', this.mediaAccessChanged);
|
5583
|
+
this._mediaAccessCallFeature.on('meetingMediaAccessChanged', this.meetingMediaAccessChanged);
|
5467
5584
|
};
|
5468
5585
|
this.unsubscribe = () => {
|
5469
5586
|
this._mediaAccessCallFeature.off('mediaAccessChanged', this.mediaAccessChanged);
|
5587
|
+
this._mediaAccessCallFeature.off('meetingMediaAccessChanged', this.meetingMediaAccessChanged);
|
5470
5588
|
};
|
5471
|
-
this.mediaAccessChanged = (data) =>
|
5472
|
-
|
5473
|
-
};
|
5589
|
+
this.mediaAccessChanged = (data) => this._context.setMediaAccesses(this._callIdRef.callId, data.mediaAccesses);
|
5590
|
+
this.meetingMediaAccessChanged = (data) => this._context.setMeetingMediaAccess(this._callIdRef.callId, data.meetingMediaAccess);
|
5474
5591
|
this._callIdRef = callIdRef;
|
5475
5592
|
this._context = context;
|
5476
5593
|
this._mediaAccessCallFeature = mediaAccessCallFeature;
|
5477
|
-
const mediaAccesses = this._mediaAccessCallFeature.
|
5594
|
+
const mediaAccesses = this._mediaAccessCallFeature.getAllOthersMediaAccess();
|
5595
|
+
const meetingMediaAccess = this._mediaAccessCallFeature.getMeetingMediaAccess();
|
5478
5596
|
this._context.setMediaAccesses(this._callIdRef.callId, mediaAccesses);
|
5597
|
+
this._context.setMeetingMediaAccess(this._callIdRef.callId, meetingMediaAccess);
|
5479
5598
|
this.subscribe();
|
5480
5599
|
}
|
5481
5600
|
}
|
@@ -15922,7 +16041,7 @@ class _ErrorBoundary extends React.Component {
|
|
15922
16041
|
// Copyright (c) Microsoft Corporation.
|
15923
16042
|
// Licensed under the MIT License.
|
15924
16043
|
/* @conditional-compile-remove(rich-text-editor) */
|
15925
|
-
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
16044
|
+
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-Bpez2mhK.js'); }));
|
15926
16045
|
/**
|
15927
16046
|
* @private
|
15928
16047
|
* Use this function to load RoosterJS dependencies early in the lifecycle.
|
@@ -15930,7 +16049,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
|
|
15930
16049
|
*
|
15931
16050
|
* @conditional-compile-remove(rich-text-editor)
|
15932
16051
|
*/
|
15933
|
-
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
16052
|
+
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-Bpez2mhK.js'); });
|
15934
16053
|
/**
|
15935
16054
|
* @private
|
15936
16055
|
*/
|
@@ -26275,23 +26394,27 @@ const _videoGalleryRemoteParticipantsMemo = (remoteParticipants, isHideAttendeeN
|
|
26275
26394
|
/* @conditional-compile-remove(remote-ufd) */
|
26276
26395
|
Math.max(((_c = (_b = (_a = participant.diagnostics) === null || _a === void 0 ? void 0 : _a.networkReceiveQuality) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : 0), ((_f = (_e = (_d = participant.diagnostics) === null || _d === void 0 ? void 0 : _d.networkSendQuality) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : 0)),
|
26277
26396
|
/* @conditional-compile-remove(media-access) */
|
26278
|
-
participant.mediaAccess
|
26397
|
+
participant.mediaAccess,
|
26398
|
+
/* @conditional-compile-remove(media-access) */
|
26399
|
+
participant.role);
|
26279
26400
|
}));
|
26280
26401
|
});
|
26281
26402
|
};
|
26282
26403
|
const memoizedAllConvertRemoteParticipant = memoizeFnAll((userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand, contentSharingStream, reaction, spotlight,
|
26283
26404
|
/* @conditional-compile-remove(remote-ufd) */
|
26284
|
-
signalStrength, mediaAccess) => {
|
26405
|
+
signalStrength, mediaAccess, role) => {
|
26285
26406
|
return convertRemoteParticipantToVideoGalleryRemoteParticipant(userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand, contentSharingStream, reaction, spotlight,
|
26286
26407
|
/* @conditional-compile-remove(remote-ufd) */
|
26287
26408
|
signalStrength,
|
26288
26409
|
/* @conditional-compile-remove(media-access) */
|
26289
|
-
mediaAccess
|
26410
|
+
mediaAccess,
|
26411
|
+
/* @conditional-compile-remove(media-access) */
|
26412
|
+
role);
|
26290
26413
|
});
|
26291
26414
|
/** @private */
|
26292
26415
|
const convertRemoteParticipantToVideoGalleryRemoteParticipant = (userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand, contentSharingStream, reaction, spotlight,
|
26293
26416
|
/* @conditional-compile-remove(remote-ufd) */
|
26294
|
-
signalStrength, mediaAccess) => {
|
26417
|
+
signalStrength, mediaAccess, role) => {
|
26295
26418
|
const rawVideoStreamsArray = Object.values(videoStreams);
|
26296
26419
|
let videoStream = undefined;
|
26297
26420
|
let screenShareStream = undefined;
|
@@ -26330,7 +26453,9 @@ signalStrength, mediaAccess) => {
|
|
26330
26453
|
/* @conditional-compile-remove(remote-ufd) */
|
26331
26454
|
signalStrength,
|
26332
26455
|
/* @conditional-compile-remove(media-access) */
|
26333
|
-
mediaAccess
|
26456
|
+
mediaAccess,
|
26457
|
+
/* @conditional-compile-remove(media-access) */
|
26458
|
+
role
|
26334
26459
|
};
|
26335
26460
|
};
|
26336
26461
|
const convertRemoteVideoStreamToVideoGalleryStream = (stream) => {
|
@@ -26438,7 +26563,13 @@ const videoGallerySelector = reselect.createSelector([
|
|
26438
26563
|
const spotlightedParticipantIds = memoizeSpotlightedParticipantIds(spotlightCallFeature === null || spotlightCallFeature === void 0 ? void 0 : spotlightCallFeature.spotlightedParticipants);
|
26439
26564
|
return {
|
26440
26565
|
screenShareParticipant: screenShareRemoteParticipant
|
26441
|
-
? convertRemoteParticipantToVideoGalleryRemoteParticipant(toFlatCommunicationIdentifier(screenShareRemoteParticipant.identifier), screenShareRemoteParticipant.isMuted, checkIsSpeaking(screenShareRemoteParticipant), screenShareRemoteParticipant.videoStreams, screenShareRemoteParticipant.state, screenShareRemoteParticipant.displayName, screenShareRemoteParticipant.raisedHand, screenShareRemoteParticipant.contentSharingStream, undefined, screenShareRemoteParticipant.spotlight
|
26566
|
+
? convertRemoteParticipantToVideoGalleryRemoteParticipant(toFlatCommunicationIdentifier(screenShareRemoteParticipant.identifier), screenShareRemoteParticipant.isMuted, checkIsSpeaking(screenShareRemoteParticipant), screenShareRemoteParticipant.videoStreams, screenShareRemoteParticipant.state, screenShareRemoteParticipant.displayName, screenShareRemoteParticipant.raisedHand, screenShareRemoteParticipant.contentSharingStream, undefined, screenShareRemoteParticipant.spotlight,
|
26567
|
+
/* @conditional-compile-remove(media-access) */
|
26568
|
+
undefined,
|
26569
|
+
/* @conditional-compile-remove(media-access) */
|
26570
|
+
screenShareRemoteParticipant.mediaAccess,
|
26571
|
+
/* @conditional-compile-remove(media-access) */
|
26572
|
+
role)
|
26442
26573
|
: undefined,
|
26443
26574
|
localParticipant: memoizeLocalParticipant(identifier, displayName, isMuted, isScreenSharingOn, localVideoStream, localScreenSharingStream, role, raisedHand, localParticipantReactionState, spotlightCallFeature === null || spotlightCallFeature === void 0 ? void 0 : spotlightCallFeature.localParticipantSpotlight, capabilities),
|
26444
26575
|
remoteParticipants: _videoGalleryRemoteParticipantsMemo(_updateUserDisplayNames(remoteParticipants ? Object.values(remoteParticipants) : noRemoteParticipants), isHideAttendeeNamesEnabled, role),
|
@@ -29928,16 +30059,21 @@ const globalLayerHostStyle = {
|
|
29928
30059
|
*/
|
29929
30060
|
const ACSAudioProvider = (props) => {
|
29930
30061
|
const { audioContext, children } = props;
|
30062
|
+
const [stateAudioContext, setStateAudioContext] = React.useState(undefined);
|
30063
|
+
React.useEffect(() => {
|
30064
|
+
// Create the AudioContext only when the component is rendered
|
30065
|
+
setStateAudioContext(audioContext);
|
30066
|
+
}, [audioContext]);
|
29931
30067
|
const alreadyWrapped = useAudio();
|
29932
30068
|
if (alreadyWrapped) {
|
29933
30069
|
return React.createElement(React.Fragment, null, children);
|
29934
30070
|
}
|
29935
|
-
return React.createElement(ACSAudioContext.Provider, { value:
|
30071
|
+
return React.createElement(ACSAudioContext.Provider, { value: stateAudioContext }, props.children);
|
29936
30072
|
};
|
29937
30073
|
/**
|
29938
30074
|
* @private
|
29939
30075
|
*/
|
29940
|
-
const ACSAudioContext = React.createContext(
|
30076
|
+
const ACSAudioContext = React.createContext(undefined);
|
29941
30077
|
/**
|
29942
30078
|
* @private
|
29943
30079
|
*/
|
@@ -30708,7 +30844,7 @@ const AttachmentDownloadErrorBar = (props) => {
|
|
30708
30844
|
/**
|
30709
30845
|
* Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox with lazy loading
|
30710
30846
|
*/
|
30711
|
-
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-
|
30847
|
+
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-CrmMCuXY.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
|
30712
30848
|
/**
|
30713
30849
|
* @private
|
30714
30850
|
* Use this function to load RoosterJS dependencies early in the lifecycle.
|
@@ -30716,7 +30852,7 @@ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function
|
|
30716
30852
|
*
|
30717
30853
|
/* @conditional-compile-remove(rich-text-editor-composite-support)
|
30718
30854
|
*/
|
30719
|
-
const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-
|
30855
|
+
const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-CrmMCuXY.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
|
30720
30856
|
/**
|
30721
30857
|
* @private
|
30722
30858
|
*/
|
@@ -45384,4 +45520,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
45384
45520
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
45385
45521
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
45386
45522
|
exports.useTheme = useTheme;
|
45387
|
-
//# sourceMappingURL=index-
|
45523
|
+
//# sourceMappingURL=index-DIxf34Zj.js.map
|