@azure/communication-react 1.19.0-alpha-202408250016 → 1.19.0-alpha-202408280014
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 +139 -75
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-vvmyDrAz.js → ChatMessageComponentAsRichTextEditBox-JpEHAh2h.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-vvmyDrAz.js.map → ChatMessageComponentAsRichTextEditBox-JpEHAh2h.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BXGkZC3x.js → RichTextSendBoxWrapper-ujBB-J3D.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BXGkZC3x.js.map → RichTextSendBoxWrapper-ujBB-J3D.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-Bqw-4OaM.js → index-D_pIA4Nc.js} +847 -583
- package/dist/dist-cjs/communication-react/index-D_pIA4Nc.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +3 -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/handlers/createCommonHandlers.d.ts +14 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +36 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/incomingCallStackSelector.d.ts +3 -3
- package/dist/dist-esm/calling-component-bindings/src/incomingCallStackSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/index.d.ts +1 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/BreakoutRoomsSubscriber.js +5 -4
- package/dist/dist-esm/calling-stateful-client/src/BreakoutRoomsSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +2 -2
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +1 -3
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +0 -9
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +1 -2
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +2 -1
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +4 -4
- package/dist/dist-esm/react-components/src/components/HoldButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/IncomingCallStack.d.ts +4 -12
- package/dist/dist-esm/react-components/src/components/IncomingCallStack.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +35 -17
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +17 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +71 -49
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +18 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Banner.d.ts +47 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Banner.js +48 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Banner.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/BreakoutRoomsBanner.d.ts +13 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/BreakoutRoomsBanner.js +43 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/BreakoutRoomsBanner.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +13 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +6 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +8 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +6 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +32 -4
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +14 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +5 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +5 -5
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +3 -2
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +4 -4
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +10 -2
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependency.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependency.js +26 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependency.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependencyLazy.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependencyLazy.js +25 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependencyLazy.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/index.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/index.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/dist-cjs/communication-react/index-Bqw-4OaM.js.map +0 -1
|
@@ -189,7 +189,7 @@ function getDefaultExportFromCjs (x) {
|
|
|
189
189
|
// Copyright (c) Microsoft Corporation.
|
|
190
190
|
// Licensed under the MIT License.
|
|
191
191
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
|
192
|
-
var telemetryVersion = '1.19.0-alpha-
|
|
192
|
+
var telemetryVersion = '1.19.0-alpha-202408280014';
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
|
@@ -485,7 +485,7 @@ const Constants = {
|
|
|
485
485
|
*/
|
|
486
486
|
const chatStatefulLogger = logger.createClientLogger('communication-react:chat-stateful');
|
|
487
487
|
|
|
488
|
-
var __awaiter$
|
|
488
|
+
var __awaiter$12 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
489
489
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
490
490
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
491
491
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -527,7 +527,7 @@ class ResourceDownloadQueue {
|
|
|
527
527
|
this._messagesNeedingResourceRetrieval.push(copy);
|
|
528
528
|
}
|
|
529
529
|
startQueue(threadId, operation, options) {
|
|
530
|
-
return __awaiter$
|
|
530
|
+
return __awaiter$12(this, void 0, void 0, function* () {
|
|
531
531
|
if (this.isActive) {
|
|
532
532
|
return;
|
|
533
533
|
}
|
|
@@ -563,7 +563,7 @@ class ResourceDownloadQueue {
|
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
downloadSingleUrl(message, resourceUrl, operation) {
|
|
566
|
-
return __awaiter$
|
|
566
|
+
return __awaiter$12(this, void 0, void 0, function* () {
|
|
567
567
|
const response = { sourceUrl: '' };
|
|
568
568
|
try {
|
|
569
569
|
const abortController = new AbortController();
|
|
@@ -579,7 +579,7 @@ class ResourceDownloadQueue {
|
|
|
579
579
|
});
|
|
580
580
|
}
|
|
581
581
|
downloadAllPreviewUrls(message, operation) {
|
|
582
|
-
return __awaiter$
|
|
582
|
+
return __awaiter$12(this, void 0, void 0, function* () {
|
|
583
583
|
var _a;
|
|
584
584
|
const attachments = (_a = message.content) === null || _a === void 0 ? void 0 : _a.attachments;
|
|
585
585
|
if (message.type === 'html' && attachments) {
|
|
@@ -606,7 +606,7 @@ class ResourceDownloadQueue {
|
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
608
|
downloadResource(operation, url, abortController) {
|
|
609
|
-
return __awaiter$
|
|
609
|
+
return __awaiter$12(this, void 0, void 0, function* () {
|
|
610
610
|
this._requestsToCancel[url] = { src: url, abortController };
|
|
611
611
|
const blobUrl = yield operation(url, { credential: this._credential, endpoint: this._endpoint }, { abortController });
|
|
612
612
|
delete this._requestsToCancel[url];
|
|
@@ -617,9 +617,9 @@ class ResourceDownloadQueue {
|
|
|
617
617
|
/**
|
|
618
618
|
* @private
|
|
619
619
|
*/
|
|
620
|
-
const fetchImageSource = (src, authentication, options) => __awaiter$
|
|
620
|
+
const fetchImageSource = (src, authentication, options) => __awaiter$12(void 0, void 0, void 0, function* () {
|
|
621
621
|
function fetchWithAuthentication(url, token, options) {
|
|
622
|
-
return __awaiter$
|
|
622
|
+
return __awaiter$12(this, void 0, void 0, function* () {
|
|
623
623
|
const headers = new Headers();
|
|
624
624
|
headers.append('Authorization', `Bearer ${token}`);
|
|
625
625
|
return yield fetchWithTimeout(url, {
|
|
@@ -630,7 +630,7 @@ const fetchImageSource = (src, authentication, options) => __awaiter$10(void 0,
|
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
632
|
function fetchWithTimeout(resource, options) {
|
|
633
|
-
return __awaiter$
|
|
633
|
+
return __awaiter$12(this, void 0, void 0, function* () {
|
|
634
634
|
// default timeout is 30 seconds
|
|
635
635
|
const { timeout = 30000, abortController } = options;
|
|
636
636
|
const id = setTimeout(() => {
|
|
@@ -657,7 +657,7 @@ const fetchImageSource = (src, authentication, options) => __awaiter$10(void 0,
|
|
|
657
657
|
|
|
658
658
|
// Copyright (c) Microsoft Corporation.
|
|
659
659
|
// Licensed under the MIT License.
|
|
660
|
-
var __awaiter
|
|
660
|
+
var __awaiter$11 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
661
661
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
662
662
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
663
663
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -733,7 +733,7 @@ let ChatContext$1 = class ChatContext {
|
|
|
733
733
|
// Any item in queue should be removed.
|
|
734
734
|
}
|
|
735
735
|
downloadResourceToCache(threadId, messageId, resourceUrl) {
|
|
736
|
-
return __awaiter
|
|
736
|
+
return __awaiter$11(this, void 0, void 0, function* () {
|
|
737
737
|
var _a;
|
|
738
738
|
let message = (_a = this.getState().threads[threadId]) === null || _a === void 0 ? void 0 : _a.chatMessages[messageId];
|
|
739
739
|
if (message && this._fullsizeImageQueue) {
|
|
@@ -1012,7 +1012,7 @@ let ChatContext$1 = class ChatContext {
|
|
|
1012
1012
|
* @throws ChatError. Exceptions thrown from `f` are tagged with the failed `target.
|
|
1013
1013
|
*/
|
|
1014
1014
|
withAsyncErrorTeedToState(f, target) {
|
|
1015
|
-
return (...args) => __awaiter
|
|
1015
|
+
return (...args) => __awaiter$11(this, void 0, void 0, function* () {
|
|
1016
1016
|
try {
|
|
1017
1017
|
return yield f(...args);
|
|
1018
1018
|
}
|
|
@@ -1119,7 +1119,7 @@ const convertChatMessage = (message, status = 'delivered', clientMessageId) => {
|
|
|
1119
1119
|
|
|
1120
1120
|
// Copyright (c) Microsoft Corporation.
|
|
1121
1121
|
// Licensed under the MIT License.
|
|
1122
|
-
var __awaiter$
|
|
1122
|
+
var __awaiter$10 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1123
1123
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1124
1124
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1125
1125
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -1209,7 +1209,7 @@ class EventSubscriber {
|
|
|
1209
1209
|
};
|
|
1210
1210
|
// This is a temporary fix that no participant message is received for onChatMessageReceived event, which should be handled by JS SDK.
|
|
1211
1211
|
// Without the temporary fix, there are missing 'participant joined' and 'participant left' system messages in the chat thread.
|
|
1212
|
-
this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$
|
|
1212
|
+
this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$10(this, void 0, void 0, function* () {
|
|
1213
1213
|
var _a, e_1, _b, _c;
|
|
1214
1214
|
try {
|
|
1215
1215
|
for (var _d = true, _e = __asyncValues$1(this.chatClient
|
|
@@ -1303,7 +1303,7 @@ class EventSubscriber {
|
|
|
1303
1303
|
|
|
1304
1304
|
// Copyright (c) Microsoft Corporation.
|
|
1305
1305
|
// Licensed under the MIT License.
|
|
1306
|
-
var __awaiter
|
|
1306
|
+
var __awaiter$$ = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1307
1307
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1308
1308
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1309
1309
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -1325,7 +1325,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
|
|
|
1325
1325
|
const threadsIterator = iteratorCreator(...args);
|
|
1326
1326
|
return {
|
|
1327
1327
|
next() {
|
|
1328
|
-
return __awaiter
|
|
1328
|
+
return __awaiter$$(this, void 0, void 0, function* () {
|
|
1329
1329
|
const result = yield threadsIterator.next();
|
|
1330
1330
|
if (!result.done && result.value) {
|
|
1331
1331
|
decorateFn(result.value, context);
|
|
@@ -1340,7 +1340,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
|
|
|
1340
1340
|
const pages = threadsIterator.byPage(settings);
|
|
1341
1341
|
return {
|
|
1342
1342
|
next() {
|
|
1343
|
-
return __awaiter
|
|
1343
|
+
return __awaiter$$(this, void 0, void 0, function* () {
|
|
1344
1344
|
const result = yield pages.next();
|
|
1345
1345
|
const page = result.value;
|
|
1346
1346
|
if (!result.done && result.value) {
|
|
@@ -1427,7 +1427,7 @@ const createDecoratedListParticipants = (chatThreadClient, context) => {
|
|
|
1427
1427
|
|
|
1428
1428
|
// Copyright (c) Microsoft Corporation.
|
|
1429
1429
|
// Licensed under the MIT License.
|
|
1430
|
-
var __awaiter$
|
|
1430
|
+
var __awaiter$_ = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1431
1431
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1432
1432
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1433
1433
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -1446,14 +1446,14 @@ class ProxyChatThreadClient {
|
|
|
1446
1446
|
return createDecoratedListMessages(chatThreadClient, this._context);
|
|
1447
1447
|
}
|
|
1448
1448
|
case 'getMessage': {
|
|
1449
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
1449
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$_(this, void 0, void 0, function* () {
|
|
1450
1450
|
const message = yield chatThreadClient.getMessage(...args);
|
|
1451
1451
|
this._context.setChatMessage(chatThreadClient.threadId, convertChatMessage(message));
|
|
1452
1452
|
return message;
|
|
1453
1453
|
}), 'ChatThreadClient.getMessage');
|
|
1454
1454
|
}
|
|
1455
1455
|
case 'sendMessage': {
|
|
1456
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
1456
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$_(this, void 0, void 0, function* () {
|
|
1457
1457
|
var _a;
|
|
1458
1458
|
// Retry logic?
|
|
1459
1459
|
const [request, options] = args;
|
|
@@ -1494,7 +1494,7 @@ class ProxyChatThreadClient {
|
|
|
1494
1494
|
}), 'ChatThreadClient.sendMessage');
|
|
1495
1495
|
}
|
|
1496
1496
|
case 'addParticipants': {
|
|
1497
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
1497
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$_(this, void 0, void 0, function* () {
|
|
1498
1498
|
const result = yield chatThreadClient.addParticipants(...args);
|
|
1499
1499
|
const [addRequest] = args;
|
|
1500
1500
|
const participantsToAdd = addRequest.participants;
|
|
@@ -1503,7 +1503,7 @@ class ProxyChatThreadClient {
|
|
|
1503
1503
|
}), 'ChatThreadClient.addParticipants');
|
|
1504
1504
|
}
|
|
1505
1505
|
case 'deleteMessage': {
|
|
1506
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
1506
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$_(this, void 0, void 0, function* () {
|
|
1507
1507
|
// DeleteMessage is able to either delete local one(for failed message) or synced message
|
|
1508
1508
|
const [messageId] = args;
|
|
1509
1509
|
if (this._context.deleteLocalMessage(chatThreadClient.threadId, messageId)) {
|
|
@@ -1521,12 +1521,12 @@ class ProxyChatThreadClient {
|
|
|
1521
1521
|
return createDecoratedListReadReceipts(chatThreadClient, this._context);
|
|
1522
1522
|
}
|
|
1523
1523
|
case 'sendTypingNotification': {
|
|
1524
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
1524
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$_(this, void 0, void 0, function* () {
|
|
1525
1525
|
return yield chatThreadClient.sendTypingNotification(...args);
|
|
1526
1526
|
}), 'ChatThreadClient.sendTypingNotification');
|
|
1527
1527
|
}
|
|
1528
1528
|
case 'removeParticipant': {
|
|
1529
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
1529
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$_(this, void 0, void 0, function* () {
|
|
1530
1530
|
const result = yield chatThreadClient.removeParticipant(...args);
|
|
1531
1531
|
const [removeIdentifier] = args;
|
|
1532
1532
|
this._context.deleteParticipant(chatThreadClient.threadId, communicationCommon.getIdentifierKind(removeIdentifier));
|
|
@@ -1534,7 +1534,7 @@ class ProxyChatThreadClient {
|
|
|
1534
1534
|
}), 'ChatThreadClient.removeParticipant');
|
|
1535
1535
|
}
|
|
1536
1536
|
case 'updateMessage': {
|
|
1537
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
1537
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$_(this, void 0, void 0, function* () {
|
|
1538
1538
|
const result = yield chatThreadClient.updateMessage(...args);
|
|
1539
1539
|
const [messageId, updateOption] = args;
|
|
1540
1540
|
this._context.updateChatMessageContent(chatThreadClient.threadId, messageId, updateOption === null || updateOption === void 0 ? void 0 : updateOption.content);
|
|
@@ -1542,7 +1542,7 @@ class ProxyChatThreadClient {
|
|
|
1542
1542
|
}), 'ChatThreadClient.updateMessage');
|
|
1543
1543
|
}
|
|
1544
1544
|
case 'updateTopic': {
|
|
1545
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
1545
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$_(this, void 0, void 0, function* () {
|
|
1546
1546
|
const result = yield chatThreadClient.updateTopic(...args);
|
|
1547
1547
|
const [topic] = args;
|
|
1548
1548
|
this._context.updateThreadTopic(chatThreadClient.threadId, topic);
|
|
@@ -1550,7 +1550,7 @@ class ProxyChatThreadClient {
|
|
|
1550
1550
|
}), 'ChatThreadClient.updateTopic');
|
|
1551
1551
|
}
|
|
1552
1552
|
case 'getProperties': {
|
|
1553
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
1553
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$_(this, void 0, void 0, function* () {
|
|
1554
1554
|
const result = yield chatThreadClient.getProperties(...args);
|
|
1555
1555
|
this._context.updateThread(chatThreadClient.threadId, result);
|
|
1556
1556
|
return result;
|
|
@@ -1588,7 +1588,7 @@ const createDecoratedListThreads = (chatClient, context) => {
|
|
|
1588
1588
|
|
|
1589
1589
|
// Copyright (c) Microsoft Corporation.
|
|
1590
1590
|
// Licensed under the MIT License.
|
|
1591
|
-
var __awaiter$
|
|
1591
|
+
var __awaiter$Z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1592
1592
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1593
1593
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1594
1594
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -1607,7 +1607,7 @@ const proxyChatClient = {
|
|
|
1607
1607
|
switch (prop) {
|
|
1608
1608
|
case 'createChatThread': {
|
|
1609
1609
|
return context.withAsyncErrorTeedToState(function (...args) {
|
|
1610
|
-
return __awaiter$
|
|
1610
|
+
return __awaiter$Z(this, void 0, void 0, function* () {
|
|
1611
1611
|
const result = yield chatClient.createChatThread(...args);
|
|
1612
1612
|
const thread = result.chatThread;
|
|
1613
1613
|
if (thread) {
|
|
@@ -1620,7 +1620,7 @@ const proxyChatClient = {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
case 'deleteChatThread': {
|
|
1622
1622
|
return context.withAsyncErrorTeedToState(function (...args) {
|
|
1623
|
-
return __awaiter$
|
|
1623
|
+
return __awaiter$Z(this, void 0, void 0, function* () {
|
|
1624
1624
|
const result = yield chatClient.deleteChatThread(...args);
|
|
1625
1625
|
context.deleteThread(args[0]);
|
|
1626
1626
|
return result;
|
|
@@ -1640,7 +1640,7 @@ const proxyChatClient = {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
case 'startRealtimeNotifications': {
|
|
1642
1642
|
return context.withAsyncErrorTeedToState(function (...args) {
|
|
1643
|
-
return __awaiter$
|
|
1643
|
+
return __awaiter$Z(this, void 0, void 0, function* () {
|
|
1644
1644
|
const ret = yield chatClient.startRealtimeNotifications(...args);
|
|
1645
1645
|
if (!receiver.eventSubscriber) {
|
|
1646
1646
|
receiver.eventSubscriber = new EventSubscriber(chatClient, context);
|
|
@@ -1651,7 +1651,7 @@ const proxyChatClient = {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
case 'stopRealtimeNotifications': {
|
|
1653
1653
|
return context.withAsyncErrorTeedToState(function (...args) {
|
|
1654
|
-
return __awaiter$
|
|
1654
|
+
return __awaiter$Z(this, void 0, void 0, function* () {
|
|
1655
1655
|
const ret = yield chatClient.stopRealtimeNotifications(...args);
|
|
1656
1656
|
if (receiver.eventSubscriber) {
|
|
1657
1657
|
receiver.eventSubscriber.unsubscribe();
|
|
@@ -1760,7 +1760,7 @@ const getImageAttachmentsFromHTMLContent = (content) => {
|
|
|
1760
1760
|
|
|
1761
1761
|
// Copyright (c) Microsoft Corporation.
|
|
1762
1762
|
// Licensed under the MIT License.
|
|
1763
|
-
var __awaiter$
|
|
1763
|
+
var __awaiter$Y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1764
1764
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1765
1765
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1766
1766
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -1786,7 +1786,7 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
|
|
|
1786
1786
|
// due to a bug in babel, we can't use arrow function here
|
|
1787
1787
|
// affecting conditional-compile-remove(attachment-upload)
|
|
1788
1788
|
onSendMessage: function (content, options) {
|
|
1789
|
-
return __awaiter$
|
|
1789
|
+
return __awaiter$Y(this, void 0, void 0, function* () {
|
|
1790
1790
|
const sendMessageRequest = {
|
|
1791
1791
|
content,
|
|
1792
1792
|
senderDisplayName: chatClient.getState().displayName
|
|
@@ -1822,14 +1822,14 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
|
|
|
1822
1822
|
},
|
|
1823
1823
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
1824
1824
|
onUploadImage: function (image, imageFilename) {
|
|
1825
|
-
return __awaiter$
|
|
1825
|
+
return __awaiter$Y(this, void 0, void 0, function* () {
|
|
1826
1826
|
const imageResult = yield chatThreadClient.uploadImage(image, imageFilename);
|
|
1827
1827
|
return imageResult;
|
|
1828
1828
|
});
|
|
1829
1829
|
},
|
|
1830
1830
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
1831
1831
|
onDeleteImage: function (imageId) {
|
|
1832
|
-
return __awaiter$
|
|
1832
|
+
return __awaiter$Y(this, void 0, void 0, function* () {
|
|
1833
1833
|
try {
|
|
1834
1834
|
yield chatThreadClient.deleteImage(imageId);
|
|
1835
1835
|
}
|
|
@@ -1844,7 +1844,7 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
|
|
|
1844
1844
|
onUpdateMessage: function (messageId, content,
|
|
1845
1845
|
/* @conditional-compile-remove(file-sharing-acs) */
|
|
1846
1846
|
options) {
|
|
1847
|
-
return __awaiter$
|
|
1847
|
+
return __awaiter$Y(this, void 0, void 0, function* () {
|
|
1848
1848
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
1849
1849
|
const imageAttachments = getImageAttachmentsFromHTMLContent(content);
|
|
1850
1850
|
const updateMessageOptions = {
|
|
@@ -1857,23 +1857,23 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
|
|
|
1857
1857
|
yield chatThreadClient.updateMessage(messageId, updateMessageOptions);
|
|
1858
1858
|
});
|
|
1859
1859
|
},
|
|
1860
|
-
onDeleteMessage: (messageId) => __awaiter$
|
|
1860
|
+
onDeleteMessage: (messageId) => __awaiter$Y(void 0, void 0, void 0, function* () {
|
|
1861
1861
|
yield chatThreadClient.deleteMessage(messageId);
|
|
1862
1862
|
}),
|
|
1863
1863
|
// This handler is designed for chatThread to consume
|
|
1864
|
-
onMessageSeen: (chatMessageId) => __awaiter$
|
|
1864
|
+
onMessageSeen: (chatMessageId) => __awaiter$Y(void 0, void 0, void 0, function* () {
|
|
1865
1865
|
yield chatThreadClient.sendReadReceipt({ chatMessageId });
|
|
1866
1866
|
}),
|
|
1867
|
-
onTyping: () => __awaiter$
|
|
1867
|
+
onTyping: () => __awaiter$Y(void 0, void 0, void 0, function* () {
|
|
1868
1868
|
yield chatThreadClient.sendTypingNotification();
|
|
1869
1869
|
}),
|
|
1870
|
-
onRemoveParticipant: (userId) => __awaiter$
|
|
1870
|
+
onRemoveParticipant: (userId) => __awaiter$Y(void 0, void 0, void 0, function* () {
|
|
1871
1871
|
yield chatThreadClient.removeParticipant(fromFlatCommunicationIdentifier(userId));
|
|
1872
1872
|
}),
|
|
1873
|
-
updateThreadTopicName: (topicName) => __awaiter$
|
|
1873
|
+
updateThreadTopicName: (topicName) => __awaiter$Y(void 0, void 0, void 0, function* () {
|
|
1874
1874
|
yield chatThreadClient.updateTopic(topicName);
|
|
1875
1875
|
}),
|
|
1876
|
-
onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$
|
|
1876
|
+
onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$Y(void 0, void 0, void 0, function* () {
|
|
1877
1877
|
var _a, _b, _c;
|
|
1878
1878
|
if (messageIterator === undefined) {
|
|
1879
1879
|
// Lazy definition so that errors in the method call are reported correctly.
|
|
@@ -4492,7 +4492,7 @@ const _MentionPopover = (props) => {
|
|
|
4492
4492
|
|
|
4493
4493
|
// Copyright (c) Microsoft Corporation.
|
|
4494
4494
|
// Licensed under the MIT License.
|
|
4495
|
-
var __awaiter$
|
|
4495
|
+
var __awaiter$X = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4496
4496
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4497
4497
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4498
4498
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -4678,7 +4678,7 @@ const TextFieldWithMention = (props) => {
|
|
|
4678
4678
|
onSuggestionSelected,
|
|
4679
4679
|
updateMentionSuggestions
|
|
4680
4680
|
]);
|
|
4681
|
-
const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$
|
|
4681
|
+
const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$X(void 0, void 0, void 0, function* () {
|
|
4682
4682
|
var _a;
|
|
4683
4683
|
let suggestions = (_a = (yield (mentionLookupOptions === null || mentionLookupOptions === void 0 ? void 0 : mentionLookupOptions.onQueryUpdated(query)))) !== null && _a !== void 0 ? _a : [];
|
|
4684
4684
|
suggestions = suggestions.filter((suggestion) => suggestion.displayText.trim() !== '');
|
|
@@ -4855,7 +4855,7 @@ const TextFieldWithMention = (props) => {
|
|
|
4855
4855
|
});
|
|
4856
4856
|
}
|
|
4857
4857
|
}, [updateSelectionIndexesWithMentionIfNeeded, setSelectionStartValue, setSelectionEndValue]);
|
|
4858
|
-
const handleOnChange = React.useCallback((_b) => __awaiter$
|
|
4858
|
+
const handleOnChange = React.useCallback((_b) => __awaiter$X(void 0, [_b], void 0, function* ({ currentSelectionEnd, currentSelectionStart, currentTriggerStartIndex, event, htmlTextValue, inputTextValue, previousSelectionEnd, previousSelectionStart, tagsValue, updatedValue }) {
|
|
4859
4859
|
var _c;
|
|
4860
4860
|
debouncedQueryUpdate.cancel();
|
|
4861
4861
|
if (event.currentTarget === null) {
|
|
@@ -5408,7 +5408,7 @@ const ATTACHMENT_CARD_MIN_PROGRESS = 0.05;
|
|
|
5408
5408
|
|
|
5409
5409
|
// Copyright (c) Microsoft Corporation.
|
|
5410
5410
|
// Licensed under the MIT License.
|
|
5411
|
-
var __awaiter$
|
|
5411
|
+
var __awaiter$W = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5412
5412
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5413
5413
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5414
5414
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -5496,7 +5496,7 @@ const MappedMenuItems = (menuActions, attachment, handleOnClickError) => {
|
|
|
5496
5496
|
React.createElement(reactComponents.MenuTrigger, null,
|
|
5497
5497
|
React.createElement(reactComponents.ToolbarButton, { "aria-label": localeStrings.attachmentMoreMenu, role: "button", icon: React.createElement(react.Icon, { iconName: "AttachmentMoreMenu" }) }))),
|
|
5498
5498
|
React.createElement(reactComponents.MenuPopover, null,
|
|
5499
|
-
React.createElement(reactComponents.MenuList, null, menuActions.map((menuItem, index) => (React.createElement(reactComponents.MenuItem, { "aria-label": menuItem.name, key: index, icon: menuItem.icon, onClick: () => __awaiter$
|
|
5499
|
+
React.createElement(reactComponents.MenuList, null, menuActions.map((menuItem, index) => (React.createElement(reactComponents.MenuItem, { "aria-label": menuItem.name, key: index, icon: menuItem.icon, onClick: () => __awaiter$W(void 0, void 0, void 0, function* () {
|
|
5500
5500
|
try {
|
|
5501
5501
|
yield menuItem.onClick(attachment);
|
|
5502
5502
|
}
|
|
@@ -5631,7 +5631,7 @@ const _AttachmentUploadCards = (props) => {
|
|
|
5631
5631
|
|
|
5632
5632
|
// Copyright (c) Microsoft Corporation.
|
|
5633
5633
|
// Licensed under the MIT License.
|
|
5634
|
-
var __awaiter$
|
|
5634
|
+
var __awaiter$V = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5635
5635
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5636
5636
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5637
5637
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -5680,7 +5680,7 @@ const hasInlineImageContent = (content) => {
|
|
|
5680
5680
|
*
|
|
5681
5681
|
* @returns The updated message content.
|
|
5682
5682
|
*/
|
|
5683
|
-
const updateStylesOfInlineImages = (message, initialInlineImages) => __awaiter$
|
|
5683
|
+
const updateStylesOfInlineImages = (message, initialInlineImages) => __awaiter$V(void 0, void 0, void 0, function* () {
|
|
5684
5684
|
if (message === '') {
|
|
5685
5685
|
return message;
|
|
5686
5686
|
}
|
|
@@ -5772,7 +5772,7 @@ const toAttachmentMetadata = (attachmentsWithProgress) => {
|
|
|
5772
5772
|
/**
|
|
5773
5773
|
* @internal
|
|
5774
5774
|
*/
|
|
5775
|
-
const modifyInlineImagesInContentString = (content, initialInlineImages, onCompleted) => __awaiter$
|
|
5775
|
+
const modifyInlineImagesInContentString = (content, initialInlineImages, onCompleted) => __awaiter$V(void 0, void 0, void 0, function* () {
|
|
5776
5776
|
let newContent = content;
|
|
5777
5777
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
5778
5778
|
try {
|
|
@@ -7058,7 +7058,7 @@ const removeSingleLocalBlob = (currentLocalBlobMap, imageId) => {
|
|
|
7058
7058
|
}
|
|
7059
7059
|
};
|
|
7060
7060
|
|
|
7061
|
-
var __awaiter$
|
|
7061
|
+
var __awaiter$U = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
7062
7062
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7063
7063
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7064
7064
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -7113,7 +7113,7 @@ class CopyPastePlugin {
|
|
|
7113
7113
|
onPluginEvent(event) {
|
|
7114
7114
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
7115
7115
|
if (event.eventType === PluginEventType.BeforeCutCopy) {
|
|
7116
|
-
event.clonedRoot.querySelectorAll('img').forEach((image) => __awaiter$
|
|
7116
|
+
event.clonedRoot.querySelectorAll('img').forEach((image) => __awaiter$U(this, void 0, void 0, function* () {
|
|
7117
7117
|
if (image.src.startsWith('blob:')) {
|
|
7118
7118
|
const base64Data = this.imageBase64DataMap[image.id];
|
|
7119
7119
|
image.src = base64Data || image.src;
|
|
@@ -10753,7 +10753,7 @@ class _ErrorBoundary extends React.Component {
|
|
|
10753
10753
|
// Copyright (c) Microsoft Corporation.
|
|
10754
10754
|
// Licensed under the MIT License.
|
|
10755
10755
|
/* @conditional-compile-remove(rich-text-editor) */
|
|
10756
|
-
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
|
10756
|
+
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-JpEHAh2h.js'); }));
|
|
10757
10757
|
/**
|
|
10758
10758
|
* @private
|
|
10759
10759
|
* Use this function to load RoosterJS dependencies early in the lifecycle.
|
|
@@ -10761,7 +10761,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
|
|
|
10761
10761
|
*
|
|
10762
10762
|
* @conditional-compile-remove(rich-text-editor)
|
|
10763
10763
|
*/
|
|
10764
|
-
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
|
10764
|
+
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-JpEHAh2h.js'); });
|
|
10765
10765
|
/**
|
|
10766
10766
|
* @private
|
|
10767
10767
|
*/
|
|
@@ -10780,7 +10780,7 @@ const ChatMessageComponentAsEditBoxPicker = (props) => {
|
|
|
10780
10780
|
|
|
10781
10781
|
// Copyright (c) Microsoft Corporation.
|
|
10782
10782
|
// Licensed under the MIT License.
|
|
10783
|
-
var __awaiter$
|
|
10783
|
+
var __awaiter$T = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10784
10784
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10785
10785
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10786
10786
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -10836,7 +10836,7 @@ const ChatMyMessageComponent = (props) => {
|
|
|
10836
10836
|
function (text,
|
|
10837
10837
|
/* @conditional-compile-remove(file-sharing-acs) */
|
|
10838
10838
|
attachments) {
|
|
10839
|
-
return __awaiter$
|
|
10839
|
+
return __awaiter$T(this, void 0, void 0, function* () {
|
|
10840
10840
|
/* @conditional-compile-remove(file-sharing-acs) */
|
|
10841
10841
|
if (`attachments` in message && attachments) {
|
|
10842
10842
|
message.attachments = attachments;
|
|
@@ -11274,7 +11274,7 @@ const fluentChatComponent = (props) => {
|
|
|
11274
11274
|
|
|
11275
11275
|
// Copyright (c) Microsoft Corporation.
|
|
11276
11276
|
// Licensed under the MIT License.
|
|
11277
|
-
var __awaiter$
|
|
11277
|
+
var __awaiter$S = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
11278
11278
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
11279
11279
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11280
11280
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -11470,7 +11470,7 @@ const MessageThreadWrapper = (props) => {
|
|
|
11470
11470
|
loadChatMessageComponentAsRichTextEditBox();
|
|
11471
11471
|
}
|
|
11472
11472
|
}, [richTextEditorOptions]);
|
|
11473
|
-
const onDeleteMessageCallback = React.useCallback((messageId) => __awaiter$
|
|
11473
|
+
const onDeleteMessageCallback = React.useCallback((messageId) => __awaiter$S(void 0, void 0, void 0, function* () {
|
|
11474
11474
|
if (!onDeleteMessage) {
|
|
11475
11475
|
return;
|
|
11476
11476
|
}
|
|
@@ -11551,7 +11551,7 @@ const MessageThreadWrapper = (props) => {
|
|
|
11551
11551
|
*/
|
|
11552
11552
|
const clientHeight = (_a = chatThreadRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight;
|
|
11553
11553
|
// we try to only send those message status if user is scrolled to the bottom.
|
|
11554
|
-
const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$
|
|
11554
|
+
const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$S(void 0, void 0, void 0, function* () {
|
|
11555
11555
|
if (!isAtBottomOfScrollRef.current ||
|
|
11556
11556
|
!document.hasFocus() ||
|
|
11557
11557
|
!messagesRef.current ||
|
|
@@ -11602,7 +11602,7 @@ const MessageThreadWrapper = (props) => {
|
|
|
11602
11602
|
setIsAtBottomOfScrollRef(atBottom);
|
|
11603
11603
|
}, [scrollToBottom, sendMessageStatusIfAtBottom]);
|
|
11604
11604
|
// Infinite scrolling + threadInitialize function
|
|
11605
|
-
const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$
|
|
11605
|
+
const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$S(void 0, void 0, void 0, function* () {
|
|
11606
11606
|
if (!isLoadingChatMessagesRef.current) {
|
|
11607
11607
|
if (onLoadPreviousChatMessages) {
|
|
11608
11608
|
isLoadingChatMessagesRef.current = true;
|
|
@@ -12567,13 +12567,13 @@ const DrawerContentContainer = (props) => {
|
|
|
12567
12567
|
const theme = react.useTheme();
|
|
12568
12568
|
const backgroundColor = theme.palette.white;
|
|
12569
12569
|
const borderRadius = theme.effects.roundedCorner4;
|
|
12570
|
-
const rootStyles = react.mergeStyles(containerStyles$
|
|
12570
|
+
const rootStyles = react.mergeStyles(containerStyles$6(backgroundColor, borderRadius), (_a = props.styles) === null || _a === void 0 ? void 0 : _a.root);
|
|
12571
12571
|
return (React.createElement(react.Stack, { className: rootStyles },
|
|
12572
12572
|
props.heading && (React.createElement(react.Stack, { className: react.mergeStyles(headingContainerStyles) },
|
|
12573
12573
|
React.createElement(react.Text, { className: react.mergeStyles(headingStyles(theme)) }, props.heading))),
|
|
12574
12574
|
props.children));
|
|
12575
12575
|
};
|
|
12576
|
-
const containerStyles$
|
|
12576
|
+
const containerStyles$6 = (backgroundColor, borderRadius) => (Object.assign({ background: backgroundColor, borderTopRightRadius: borderRadius, borderTopLeftRadius: borderRadius }, react.AnimationStyles.slideUpIn10));
|
|
12577
12577
|
const headingContainerStyles = {
|
|
12578
12578
|
textAlign: 'center',
|
|
12579
12579
|
width: '100%',
|
|
@@ -14607,7 +14607,7 @@ const localVideoTileContainerStyles = {
|
|
|
14607
14607
|
|
|
14608
14608
|
// Copyright (c) Microsoft Corporation.
|
|
14609
14609
|
// Licensed under the MIT License.
|
|
14610
|
-
var __awaiter$
|
|
14610
|
+
var __awaiter$R = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14611
14611
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14612
14612
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14613
14613
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -14624,7 +14624,7 @@ const LocalVideoCameraCycleButton = (props) => {
|
|
|
14624
14624
|
const { cameras, selectedCamera, onSelectCamera, label, ariaDescription, size } = props;
|
|
14625
14625
|
const theme = react.useTheme();
|
|
14626
14626
|
const [waitForCamera, setWaitForCamera] = React.useState(false);
|
|
14627
|
-
const onChangeCameraClick = React.useCallback((device) => __awaiter$
|
|
14627
|
+
const onChangeCameraClick = React.useCallback((device) => __awaiter$R(void 0, void 0, void 0, function* () {
|
|
14628
14628
|
// Throttle changing camera to prevent too many callbacks
|
|
14629
14629
|
if (onSelectCamera) {
|
|
14630
14630
|
setWaitForCamera(true);
|
|
@@ -17408,7 +17408,7 @@ const DevicesButton = (props) => {
|
|
|
17408
17408
|
|
|
17409
17409
|
// Copyright (c) Microsoft Corporation.
|
|
17410
17410
|
// Licensed under the MIT License.
|
|
17411
|
-
var __awaiter$
|
|
17411
|
+
var __awaiter$Q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17412
17412
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17413
17413
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17414
17414
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -17446,7 +17446,7 @@ const CameraButton = (props) => {
|
|
|
17446
17446
|
const toggleAnnouncerString = React.useCallback((isCameraOn) => {
|
|
17447
17447
|
setAnnouncerString(!isCameraOn ? strings.cameraActionTurnedOffAnnouncement : strings.cameraActionTurnedOnAnnouncement);
|
|
17448
17448
|
}, [strings.cameraActionTurnedOffAnnouncement, strings.cameraActionTurnedOnAnnouncement]);
|
|
17449
|
-
const onToggleClick = React.useCallback(() => __awaiter$
|
|
17449
|
+
const onToggleClick = React.useCallback(() => __awaiter$Q(void 0, void 0, void 0, function* () {
|
|
17450
17450
|
// Throttle click on camera, need to await onToggleCamera then allow another click
|
|
17451
17451
|
if (onToggleCamera) {
|
|
17452
17452
|
setWaitForCamera(true);
|
|
@@ -17460,7 +17460,7 @@ const CameraButton = (props) => {
|
|
|
17460
17460
|
}
|
|
17461
17461
|
}
|
|
17462
17462
|
}), [cameraOn, localVideoViewOptions, onToggleCamera, toggleAnnouncerString]);
|
|
17463
|
-
const onChangeCameraClick = React.useCallback((device) => __awaiter$
|
|
17463
|
+
const onChangeCameraClick = React.useCallback((device) => __awaiter$Q(void 0, void 0, void 0, function* () {
|
|
17464
17464
|
// Throttle changing camera to prevent too many callbacks
|
|
17465
17465
|
if (onSelectCamera) {
|
|
17466
17466
|
setWaitForCamera(true);
|
|
@@ -17681,7 +17681,7 @@ const menupButtonPadding = {
|
|
|
17681
17681
|
|
|
17682
17682
|
// Copyright (c) Microsoft Corporation.
|
|
17683
17683
|
// Licensed under the MIT License.
|
|
17684
|
-
var __awaiter$
|
|
17684
|
+
var __awaiter$P = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17685
17685
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17686
17686
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17687
17687
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -17722,7 +17722,7 @@ const MicrophoneButton = (props) => {
|
|
|
17722
17722
|
const toggleAnnouncerString = React.useCallback((isMicOn) => {
|
|
17723
17723
|
setAnnouncerString(!isMicOn ? strings.microphoneActionTurnedOffAnnouncement : strings.microphoneActionTurnedOnAnnouncement);
|
|
17724
17724
|
}, [strings.microphoneActionTurnedOffAnnouncement, strings.microphoneActionTurnedOnAnnouncement]);
|
|
17725
|
-
const onToggleClick = React.useCallback(() => __awaiter$
|
|
17725
|
+
const onToggleClick = React.useCallback(() => __awaiter$P(void 0, void 0, void 0, function* () {
|
|
17726
17726
|
if (onToggleMicrophone) {
|
|
17727
17727
|
try {
|
|
17728
17728
|
yield onToggleMicrophone();
|
|
@@ -18358,7 +18358,7 @@ const secondaryTileFloatingStyles = {
|
|
|
18358
18358
|
/**
|
|
18359
18359
|
* @private
|
|
18360
18360
|
*/
|
|
18361
|
-
const containerStyles$
|
|
18361
|
+
const containerStyles$5 = (theme) => {
|
|
18362
18362
|
return {
|
|
18363
18363
|
maxWidth: '16rem',
|
|
18364
18364
|
textAlign: 'center',
|
|
@@ -18588,7 +18588,7 @@ const dtmfFrequencies = {
|
|
|
18588
18588
|
|
|
18589
18589
|
// Copyright (c) Microsoft Corporation.
|
|
18590
18590
|
// Licensed under the MIT License.
|
|
18591
|
-
var __awaiter$
|
|
18591
|
+
var __awaiter$O = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18592
18592
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18593
18593
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18594
18594
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -18632,10 +18632,10 @@ const DialpadButton = (props) => {
|
|
|
18632
18632
|
const [buttonPressed, setButtonPressed] = React.useState(false);
|
|
18633
18633
|
const dtmfToneSound = React.useRef(new Tone(dtmfToneAudioContext, dtmfFrequencies[digit].f1, dtmfFrequencies[digit].f2));
|
|
18634
18634
|
const useLongPressProps = React.useMemo(() => ({
|
|
18635
|
-
onClick: () => __awaiter$
|
|
18635
|
+
onClick: () => __awaiter$O(void 0, void 0, void 0, function* () {
|
|
18636
18636
|
onClick(digit, index);
|
|
18637
18637
|
}),
|
|
18638
|
-
onLongPress: () => __awaiter$
|
|
18638
|
+
onLongPress: () => __awaiter$O(void 0, void 0, void 0, function* () {
|
|
18639
18639
|
onLongPress(digit, index);
|
|
18640
18640
|
}),
|
|
18641
18641
|
touchEventsOnly: longPressTrigger === 'touch'
|
|
@@ -18738,7 +18738,7 @@ const DialpadContainer = (props) => {
|
|
|
18738
18738
|
const modifiedInput = plainTextValue.substring(0, plainTextValue.length - 1);
|
|
18739
18739
|
setText(modifiedInput);
|
|
18740
18740
|
};
|
|
18741
|
-
return (React.createElement(react.Stack, { className: react.mergeStyles(containerStyles$
|
|
18741
|
+
return (React.createElement(react.Stack, { className: react.mergeStyles(containerStyles$5(theme), (_a = props.styles) === null || _a === void 0 ? void 0 : _a.root), "data-test-id": "dialpadContainer", "data-ui-id": "dialpadContainer", horizontalAlign: 'center' },
|
|
18742
18742
|
dialpadMode === 'dialer' && (React.createElement(react.TextField, { styles: react.concatStyleSets(textFieldStyles(theme, plainTextValue !== ''), (_b = props.styles) === null || _b === void 0 ? void 0 : _b.textField), value: textFieldValue ? textFieldValue : _formatPhoneNumber(plainTextValue),
|
|
18743
18743
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18744
18744
|
onChange: (e) => {
|
|
@@ -19139,7 +19139,7 @@ const linkTextStyles = {
|
|
|
19139
19139
|
/**
|
|
19140
19140
|
* @internal
|
|
19141
19141
|
*/
|
|
19142
|
-
const containerStyles$
|
|
19142
|
+
const containerStyles$4 = {
|
|
19143
19143
|
root: {
|
|
19144
19144
|
maxWidth: _pxToRem(375),
|
|
19145
19145
|
padding: '2rem'
|
|
@@ -19166,7 +19166,7 @@ const continueAnywayButtonStyles = (theme) => {
|
|
|
19166
19166
|
const UnsupportedEnvironmentContainer = (props) => {
|
|
19167
19167
|
const { onTroubleshootingClick, strings, onContinueAnywayClick } = props;
|
|
19168
19168
|
const theme = useTheme();
|
|
19169
|
-
return (React.createElement(react.Stack, { styles: containerStyles$
|
|
19169
|
+
return (React.createElement(react.Stack, { styles: containerStyles$4, tokens: { childrenGap: '2rem' } },
|
|
19170
19170
|
React.createElement(react.Icon, { iconName: "UnsupportedEnvironmentWarning", "data-ui-id": "unsupported-environment-icon" }),
|
|
19171
19171
|
React.createElement(react.Stack, { styles: testContainerStyles, tokens: { childrenGap: '0.25rem' } },
|
|
19172
19172
|
React.createElement(react.Text, { styles: mainTextStyles }, strings === null || strings === void 0 ? void 0 : strings.primaryText),
|
|
@@ -19773,7 +19773,7 @@ const _spokenLanguageToCaptionLanguage = {
|
|
|
19773
19773
|
|
|
19774
19774
|
// Copyright (c) Microsoft Corporation.
|
|
19775
19775
|
// Licensed under the MIT License.
|
|
19776
|
-
var __awaiter$
|
|
19776
|
+
var __awaiter$N = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
19777
19777
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19778
19778
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19779
19779
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -19812,7 +19812,7 @@ const _CaptionsSettingsModal = (props) => {
|
|
|
19812
19812
|
onDismissCaptionsSettings();
|
|
19813
19813
|
}
|
|
19814
19814
|
}, [onDismissCaptionsSettings]);
|
|
19815
|
-
const onConfirm = React.useCallback(() => __awaiter$
|
|
19815
|
+
const onConfirm = React.useCallback(() => __awaiter$N(void 0, void 0, void 0, function* () {
|
|
19816
19816
|
const spokenLanguageCode = selectedSpokenLanguage.key;
|
|
19817
19817
|
const captionLanguageCode = selectedCaptionLanguage.key;
|
|
19818
19818
|
if (isCaptionsFeatureActive) {
|
|
@@ -20109,7 +20109,7 @@ const messageTextStyle = (theme) => react.mergeStyles({
|
|
|
20109
20109
|
/**
|
|
20110
20110
|
* @private
|
|
20111
20111
|
*/
|
|
20112
|
-
const titleTextClassName = react.mergeStyles({
|
|
20112
|
+
const titleTextClassName$1 = react.mergeStyles({
|
|
20113
20113
|
fontWeight: 400,
|
|
20114
20114
|
fontSize: _pxToRem(14),
|
|
20115
20115
|
lineHeight: _pxToRem(16),
|
|
@@ -20118,7 +20118,7 @@ const titleTextClassName = react.mergeStyles({
|
|
|
20118
20118
|
/**
|
|
20119
20119
|
* @private
|
|
20120
20120
|
*/
|
|
20121
|
-
const containerStyles$
|
|
20121
|
+
const containerStyles$3 = (theme) => react.mergeStyles({
|
|
20122
20122
|
boxShadow: theme.effects.elevation8,
|
|
20123
20123
|
width: '20rem',
|
|
20124
20124
|
padding: '0.75rem',
|
|
@@ -20172,11 +20172,11 @@ const Notification = (props) => {
|
|
|
20172
20172
|
}
|
|
20173
20173
|
}
|
|
20174
20174
|
return (React.createElement(react.Stack, { horizontalAlign: "center" },
|
|
20175
|
-
React.createElement(react.Stack, { "data-ui-id": "notification-bar", className: containerStyles$
|
|
20175
|
+
React.createElement(react.Stack, { "data-ui-id": "notification-bar", className: containerStyles$3(theme) },
|
|
20176
20176
|
React.createElement(react.Stack, { horizontal: true, horizontalAlign: "space-between" },
|
|
20177
20177
|
React.createElement(react.Stack, { horizontal: true },
|
|
20178
20178
|
React.createElement(react.Icon, Object.assign({ className: notificationIconClassName, iconName: (_b = (_a = props.notificationIconProps) === null || _a === void 0 ? void 0 : _a.iconName) !== null && _b !== void 0 ? _b : 'ErrorBadge' }, props.notificationIconProps)),
|
|
20179
|
-
React.createElement(react.Text, { className: titleTextClassName }, strings === null || strings === void 0 ? void 0 : strings.title)),
|
|
20179
|
+
React.createElement(react.Text, { className: titleTextClassName$1 }, strings === null || strings === void 0 ? void 0 : strings.title)),
|
|
20180
20180
|
React.createElement(react.IconButton, { iconProps: cancelIcon, ariaLabel: strings === null || strings === void 0 ? void 0 : strings.dismissButtonAriaLabel, "aria-live": 'polite', onClick: props.onDismiss })),
|
|
20181
20181
|
React.createElement(react.Text, { className: messageTextStyle(theme) }, strings === null || strings === void 0 ? void 0 : strings.message),
|
|
20182
20182
|
React.createElement(react.Stack, { horizontal: true, horizontalAlign: "space-evenly" },
|
|
@@ -21486,7 +21486,7 @@ const _DEFAULT_INLINE_IMAGE_FILE_NAME = 'image.png';
|
|
|
21486
21486
|
|
|
21487
21487
|
// Copyright (c) Microsoft Corporation.
|
|
21488
21488
|
// Licensed under the MIT License.
|
|
21489
|
-
var __awaiter$
|
|
21489
|
+
var __awaiter$M = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
21490
21490
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21491
21491
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
21492
21492
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -21603,9 +21603,9 @@ class AzureCommunicationChatAdapter {
|
|
|
21603
21603
|
this.chatClient.dispose();
|
|
21604
21604
|
}
|
|
21605
21605
|
fetchInitialData() {
|
|
21606
|
-
return __awaiter$
|
|
21606
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21607
21607
|
// If get properties fails we dont want to try to get the participants after.
|
|
21608
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21608
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21609
21609
|
var _a, e_1, _b, _c;
|
|
21610
21610
|
yield this.chatThreadClient.getProperties();
|
|
21611
21611
|
try {
|
|
@@ -21641,66 +21641,66 @@ class AzureCommunicationChatAdapter {
|
|
|
21641
21641
|
this.context.offStateChange(handler);
|
|
21642
21642
|
}
|
|
21643
21643
|
sendMessage(content, options) {
|
|
21644
|
-
return __awaiter$
|
|
21645
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21644
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21645
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21646
21646
|
return yield this.handlers.onSendMessage(content, options);
|
|
21647
21647
|
}));
|
|
21648
21648
|
});
|
|
21649
21649
|
}
|
|
21650
21650
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
21651
21651
|
uploadImage(image, imageFilename) {
|
|
21652
|
-
return __awaiter$
|
|
21653
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21652
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21653
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21654
21654
|
return yield this.handlers.onUploadImage(image, imageFilename);
|
|
21655
21655
|
}));
|
|
21656
21656
|
});
|
|
21657
21657
|
}
|
|
21658
21658
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
21659
21659
|
deleteImage(imageId) {
|
|
21660
|
-
return __awaiter$
|
|
21661
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21660
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21661
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21662
21662
|
return yield this.handlers.onDeleteImage(imageId);
|
|
21663
21663
|
}));
|
|
21664
21664
|
});
|
|
21665
21665
|
}
|
|
21666
21666
|
sendReadReceipt(chatMessageId) {
|
|
21667
|
-
return __awaiter$
|
|
21668
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21667
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21668
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21669
21669
|
yield this.handlers.onMessageSeen(chatMessageId);
|
|
21670
21670
|
}));
|
|
21671
21671
|
});
|
|
21672
21672
|
}
|
|
21673
21673
|
sendTypingIndicator() {
|
|
21674
|
-
return __awaiter$
|
|
21675
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21674
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21675
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21676
21676
|
yield this.handlers.onTyping();
|
|
21677
21677
|
}));
|
|
21678
21678
|
});
|
|
21679
21679
|
}
|
|
21680
21680
|
removeParticipant(userId) {
|
|
21681
|
-
return __awaiter$
|
|
21682
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21681
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21682
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21683
21683
|
yield this.handlers.onRemoveParticipant(userId);
|
|
21684
21684
|
}));
|
|
21685
21685
|
});
|
|
21686
21686
|
}
|
|
21687
21687
|
setTopic(topicName) {
|
|
21688
|
-
return __awaiter$
|
|
21689
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21688
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21689
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21690
21690
|
yield this.handlers.updateThreadTopicName(topicName);
|
|
21691
21691
|
}));
|
|
21692
21692
|
});
|
|
21693
21693
|
}
|
|
21694
21694
|
loadPreviousChatMessages(messagesToLoad) {
|
|
21695
|
-
return __awaiter$
|
|
21696
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21695
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21696
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21697
21697
|
return yield this.handlers.onLoadPreviousChatMessages(messagesToLoad);
|
|
21698
21698
|
}));
|
|
21699
21699
|
});
|
|
21700
21700
|
}
|
|
21701
21701
|
updateMessage(messageId, content, options) {
|
|
21702
|
-
return __awaiter$
|
|
21703
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21702
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21703
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21704
21704
|
var _a;
|
|
21705
21705
|
/* @conditional-compile-remove(file-sharing-acs) */
|
|
21706
21706
|
const messageOptions = {};
|
|
@@ -21731,14 +21731,14 @@ class AzureCommunicationChatAdapter {
|
|
|
21731
21731
|
});
|
|
21732
21732
|
}
|
|
21733
21733
|
deleteMessage(messageId) {
|
|
21734
|
-
return __awaiter$
|
|
21735
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
21734
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21735
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$M(this, void 0, void 0, function* () {
|
|
21736
21736
|
return yield this.handlers.onDeleteMessage(messageId);
|
|
21737
21737
|
}));
|
|
21738
21738
|
});
|
|
21739
21739
|
}
|
|
21740
21740
|
downloadResourceToCache(resourceDetails) {
|
|
21741
|
-
return __awaiter$
|
|
21741
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21742
21742
|
this.chatClient.downloadResourceToCache(resourceDetails.threadId, resourceDetails.messageId, resourceDetails.resourceUrl);
|
|
21743
21743
|
});
|
|
21744
21744
|
}
|
|
@@ -21817,7 +21817,7 @@ class AzureCommunicationChatAdapter {
|
|
|
21817
21817
|
this.emitter.off(event, listener);
|
|
21818
21818
|
}
|
|
21819
21819
|
asyncTeeErrorToEventEmitter(f) {
|
|
21820
|
-
return __awaiter$
|
|
21820
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
21821
21821
|
try {
|
|
21822
21822
|
return yield f();
|
|
21823
21823
|
}
|
|
@@ -21867,7 +21867,7 @@ const convertEventType = (type) => {
|
|
|
21867
21867
|
*
|
|
21868
21868
|
* @public
|
|
21869
21869
|
*/
|
|
21870
|
-
const createAzureCommunicationChatAdapter = (_a) => __awaiter$
|
|
21870
|
+
const createAzureCommunicationChatAdapter = (_a) => __awaiter$M(void 0, [_a], void 0, function* ({ endpoint: endpointUrl, userId, displayName, credential, threadId }) {
|
|
21871
21871
|
return _createAzureCommunicationChatAdapterInner(endpointUrl, userId, displayName, credential, threadId);
|
|
21872
21872
|
});
|
|
21873
21873
|
/**
|
|
@@ -21875,7 +21875,7 @@ const createAzureCommunicationChatAdapter = (_a) => __awaiter$K(void 0, [_a], vo
|
|
|
21875
21875
|
*
|
|
21876
21876
|
* @internal
|
|
21877
21877
|
*/
|
|
21878
|
-
const _createAzureCommunicationChatAdapterInner = (endpoint_1, userId_1, displayName_1, credential_1, threadId_1, ...args_1) => __awaiter$
|
|
21878
|
+
const _createAzureCommunicationChatAdapterInner = (endpoint_1, userId_1, displayName_1, credential_1, threadId_1, ...args_1) => __awaiter$M(void 0, [endpoint_1, userId_1, displayName_1, credential_1, threadId_1, ...args_1], void 0, function* (endpoint, userId, displayName, credential, threadId, telemetryImplementationHint = 'Chat') {
|
|
21879
21879
|
if (!_isValidIdentifier(userId)) {
|
|
21880
21880
|
throw new Error('Provided userId is invalid. Please provide valid identifier object.');
|
|
21881
21881
|
}
|
|
@@ -21895,7 +21895,7 @@ const _createAzureCommunicationChatAdapterInner = (endpoint_1, userId_1, display
|
|
|
21895
21895
|
* ThreadId is a promise to allow for lazy initialization of the adapter.
|
|
21896
21896
|
* @internal
|
|
21897
21897
|
*/
|
|
21898
|
-
const _createLazyAzureCommunicationChatAdapterInner = (endpoint_2, userId_2, displayName_2, credential_2, threadId_2, ...args_2) => __awaiter$
|
|
21898
|
+
const _createLazyAzureCommunicationChatAdapterInner = (endpoint_2, userId_2, displayName_2, credential_2, threadId_2, ...args_2) => __awaiter$M(void 0, [endpoint_2, userId_2, displayName_2, credential_2, threadId_2, ...args_2], void 0, function* (endpoint, userId, displayName, credential, threadId, telemetryImplementationHint = 'Chat') {
|
|
21899
21899
|
if (!_isValidIdentifier(userId)) {
|
|
21900
21900
|
throw new Error('Provided userId is invalid. Please provide valid identifier object.');
|
|
21901
21901
|
}
|
|
@@ -21905,7 +21905,7 @@ const _createLazyAzureCommunicationChatAdapterInner = (endpoint_2, userId_2, dis
|
|
|
21905
21905
|
endpoint,
|
|
21906
21906
|
credential
|
|
21907
21907
|
}, undefined, telemetryImplementationHint);
|
|
21908
|
-
return threadId.then((threadId) => __awaiter$
|
|
21908
|
+
return threadId.then((threadId) => __awaiter$M(void 0, void 0, void 0, function* () {
|
|
21909
21909
|
if (UNSUPPORTED_CHAT_THREAD_TYPE.some((t) => threadId.includes(t))) {
|
|
21910
21910
|
console.error(`Invalid Chat ThreadId: ${threadId}. Please note with Teams Channel Meetings, only Calling is supported and Chat is not currently supported. Read more: ${TEAMS_LIMITATION_LEARN_MORE}.`);
|
|
21911
21911
|
}
|
|
@@ -21966,7 +21966,7 @@ beforeDispose) => {
|
|
|
21966
21966
|
if (!credential || !displayName || !endpoint || !threadId || !userId) {
|
|
21967
21967
|
return;
|
|
21968
21968
|
}
|
|
21969
|
-
(() => __awaiter$
|
|
21969
|
+
(() => __awaiter$M(void 0, void 0, void 0, function* () {
|
|
21970
21970
|
if (adapterRef.current) {
|
|
21971
21971
|
// Dispose the old adapter when a new one is created.
|
|
21972
21972
|
//
|
|
@@ -21998,7 +21998,7 @@ beforeDispose) => {
|
|
|
21998
21998
|
// Dispose any existing adapter when the component unmounts.
|
|
21999
21999
|
React.useEffect(() => {
|
|
22000
22000
|
return () => {
|
|
22001
|
-
(() => __awaiter$
|
|
22001
|
+
(() => __awaiter$M(void 0, void 0, void 0, function* () {
|
|
22002
22002
|
if (adapterRef.current) {
|
|
22003
22003
|
if (beforeDisposeRef.current) {
|
|
22004
22004
|
yield beforeDisposeRef.current(adapterRef.current);
|
|
@@ -22020,7 +22020,7 @@ beforeDispose) => {
|
|
|
22020
22020
|
* @public
|
|
22021
22021
|
*/
|
|
22022
22022
|
function createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient) {
|
|
22023
|
-
return __awaiter$
|
|
22023
|
+
return __awaiter$M(this, void 0, void 0, function* () {
|
|
22024
22024
|
return new AzureCommunicationChatAdapter(chatClient, chatThreadClient);
|
|
22025
22025
|
});
|
|
22026
22026
|
}
|
|
@@ -22405,7 +22405,7 @@ const sendboxContainerStyles = {
|
|
|
22405
22405
|
|
|
22406
22406
|
// Copyright (c) Microsoft Corporation.
|
|
22407
22407
|
// Licensed under the MIT License.
|
|
22408
|
-
var __awaiter$
|
|
22408
|
+
var __awaiter$L = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22409
22409
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
22410
22410
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22411
22411
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -22426,7 +22426,7 @@ const AvatarPersona = (props) => {
|
|
|
22426
22426
|
const { userId, dataProvider, text, imageUrl, imageInitials, initialsColor, initialsTextColor, showOverflowTooltip } = props;
|
|
22427
22427
|
const [data, setData] = React.useState();
|
|
22428
22428
|
React.useEffect(() => {
|
|
22429
|
-
(() => __awaiter$
|
|
22429
|
+
(() => __awaiter$L(void 0, void 0, void 0, function* () {
|
|
22430
22430
|
if (dataProvider && userId) {
|
|
22431
22431
|
const newData = yield dataProvider(userId);
|
|
22432
22432
|
if (avatarDeepDifferenceCheck(data, newData)) {
|
|
@@ -22982,7 +22982,7 @@ const AttachmentDownloadErrorBar = (props) => {
|
|
|
22982
22982
|
/**
|
|
22983
22983
|
* Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox with lazy loading
|
|
22984
22984
|
*/
|
|
22985
|
-
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-
|
|
22985
|
+
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-ujBB-J3D.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
|
|
22986
22986
|
/**
|
|
22987
22987
|
* @private
|
|
22988
22988
|
* Use this function to load RoosterJS dependencies early in the lifecycle.
|
|
@@ -22990,7 +22990,7 @@ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function
|
|
|
22990
22990
|
*
|
|
22991
22991
|
/* @conditional-compile-remove(rich-text-editor-composite-support)
|
|
22992
22992
|
*/
|
|
22993
|
-
const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-
|
|
22993
|
+
const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-ujBB-J3D.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
|
|
22994
22994
|
/**
|
|
22995
22995
|
* @private
|
|
22996
22996
|
*/
|
|
@@ -23024,7 +23024,7 @@ const SendBoxPicker = (props) => {
|
|
|
23024
23024
|
|
|
23025
23025
|
// Copyright (c) Microsoft Corporation.
|
|
23026
23026
|
// Licensed under the MIT License.
|
|
23027
|
-
var __awaiter$
|
|
23027
|
+
var __awaiter$K = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
23028
23028
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23029
23029
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
23030
23030
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -23036,7 +23036,7 @@ var __awaiter$I = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
|
23036
23036
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
23037
23037
|
const MAX_INLINE_IMAGE_UPLOAD_SIZE_MB = 20;
|
|
23038
23038
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
23039
|
-
const fetchBlobData = (resource, options) => __awaiter$
|
|
23039
|
+
const fetchBlobData = (resource, options) => __awaiter$K(void 0, void 0, void 0, function* () {
|
|
23040
23040
|
// default timeout is 30 seconds
|
|
23041
23041
|
const { timeout = 30000, abortController } = options;
|
|
23042
23042
|
const id = setTimeout(() => {
|
|
@@ -23050,7 +23050,7 @@ const fetchBlobData = (resource, options) => __awaiter$I(void 0, void 0, void 0,
|
|
|
23050
23050
|
/**
|
|
23051
23051
|
* @private
|
|
23052
23052
|
*/
|
|
23053
|
-
const getInlineImageData = (image) => __awaiter$
|
|
23053
|
+
const getInlineImageData = (image) => __awaiter$K(void 0, void 0, void 0, function* () {
|
|
23054
23054
|
if (image.startsWith('blob') || image.startsWith('http')) {
|
|
23055
23055
|
try {
|
|
23056
23056
|
const res = yield fetchBlobData(image, { abortController: new AbortController() });
|
|
@@ -23094,7 +23094,7 @@ const getSendBoxInlineImages = (sendBoxInlineImageUploads) => {
|
|
|
23094
23094
|
return (_a = sendBoxInlineImageUploads[SEND_BOX_UPLOADS_KEY_VALUE]) === null || _a === void 0 ? void 0 : _a.map((upload) => upload.metadata);
|
|
23095
23095
|
};
|
|
23096
23096
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
23097
|
-
const inlineImageUploadHandler = (uploadTasks, adapter, strings) => __awaiter$
|
|
23097
|
+
const inlineImageUploadHandler = (uploadTasks, adapter, strings) => __awaiter$K(void 0, void 0, void 0, function* () {
|
|
23098
23098
|
var _a, _b, _c;
|
|
23099
23099
|
for (const task of uploadTasks) {
|
|
23100
23100
|
const uploadTask = task;
|
|
@@ -23127,7 +23127,7 @@ const inlineImageUploadHandler = (uploadTasks, adapter, strings) => __awaiter$I(
|
|
|
23127
23127
|
}
|
|
23128
23128
|
});
|
|
23129
23129
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
23130
|
-
const generateUploadTask = (imageAttributes, fileName, messageId, inlineImageUploadActionHandler) => __awaiter$
|
|
23130
|
+
const generateUploadTask = (imageAttributes, fileName, messageId, inlineImageUploadActionHandler) => __awaiter$K(void 0, void 0, void 0, function* () {
|
|
23131
23131
|
const imageData = yield getInlineImageData(imageAttributes.src);
|
|
23132
23132
|
if (!imageData) {
|
|
23133
23133
|
return;
|
|
@@ -23174,7 +23174,7 @@ const generateUploadTask = (imageAttributes, fileName, messageId, inlineImageUpl
|
|
|
23174
23174
|
/**
|
|
23175
23175
|
* @internal
|
|
23176
23176
|
*/
|
|
23177
|
-
const onInsertInlineImageForEditBox = (imageAttributes, fileName, messageId, adapter, handleEditBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$
|
|
23177
|
+
const onInsertInlineImageForEditBox = (imageAttributes, fileName, messageId, adapter, handleEditBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$K(void 0, void 0, void 0, function* () {
|
|
23178
23178
|
const uploadTask = yield generateUploadTask(imageAttributes, fileName, messageId, handleEditBoxInlineImageUploadAction);
|
|
23179
23179
|
if (!uploadTask) {
|
|
23180
23180
|
return;
|
|
@@ -23190,7 +23190,7 @@ const onInsertInlineImageForEditBox = (imageAttributes, fileName, messageId, ada
|
|
|
23190
23190
|
/**
|
|
23191
23191
|
* @internal
|
|
23192
23192
|
*/
|
|
23193
|
-
const onInsertInlineImageForSendBox = (imageAttributes, fileName, adapter, handleSendBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$
|
|
23193
|
+
const onInsertInlineImageForSendBox = (imageAttributes, fileName, adapter, handleSendBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$K(void 0, void 0, void 0, function* () {
|
|
23194
23194
|
const uploadTask = yield generateUploadTask(imageAttributes, fileName, SEND_BOX_UPLOADS_KEY_VALUE, handleSendBoxInlineImageUploadAction);
|
|
23195
23195
|
if (!uploadTask) {
|
|
23196
23196
|
return;
|
|
@@ -23324,7 +23324,7 @@ const ImageUploadReducer = (state, action) => {
|
|
|
23324
23324
|
|
|
23325
23325
|
// Copyright (c) Microsoft Corporation.
|
|
23326
23326
|
// Licensed under the MIT License.
|
|
23327
|
-
var __awaiter$
|
|
23327
|
+
var __awaiter$J = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
23328
23328
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23329
23329
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
23330
23330
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -23378,7 +23378,7 @@ const ChatScreen = (props) => {
|
|
|
23378
23378
|
}, [adapter]);
|
|
23379
23379
|
React.useEffect(() => {
|
|
23380
23380
|
// Initial data should be always fetched by the composite(or external caller) instead of the adapter
|
|
23381
|
-
const fetchData = () => __awaiter$
|
|
23381
|
+
const fetchData = () => __awaiter$J(void 0, void 0, void 0, function* () {
|
|
23382
23382
|
// Fetch initial data for adapter
|
|
23383
23383
|
yield adapter.fetchInitialData();
|
|
23384
23384
|
// Fetch initial set of messages. Without fetching messages here, if the Composite's adapter is changed the message thread does not load new messages.
|
|
@@ -23615,7 +23615,7 @@ const ChatScreen = (props) => {
|
|
|
23615
23615
|
}, [uploads]);
|
|
23616
23616
|
const onSendMessageHandler = React.useCallback(function (content,
|
|
23617
23617
|
/* @conditional-compile-remove(file-sharing-acs) */ /* @conditional-compile-remove(rich-text-editor-composite-support) */ options) {
|
|
23618
|
-
return __awaiter$
|
|
23618
|
+
return __awaiter$J(this, void 0, void 0, function* () {
|
|
23619
23619
|
var _a;
|
|
23620
23620
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
23621
23621
|
content = updateContentStringWithUploadedInlineImages(content, sendBoxInlineImageUploads);
|
|
@@ -23644,7 +23644,7 @@ const ChatScreen = (props) => {
|
|
|
23644
23644
|
]);
|
|
23645
23645
|
const onUpdateMessageHandler = React.useCallback(function (messageId, content,
|
|
23646
23646
|
/* @conditional-compile-remove(file-sharing-acs) */ options) {
|
|
23647
|
-
return __awaiter$
|
|
23647
|
+
return __awaiter$J(this, void 0, void 0, function* () {
|
|
23648
23648
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
23649
23649
|
content = updateContentStringWithUploadedInlineImages(content, editBoxInlineImageUploads, messageId);
|
|
23650
23650
|
yield messageThreadProps.onUpdateMessage(messageId, content,
|
|
@@ -23915,7 +23915,7 @@ const getLatestErrors = (state) => state.latestErrors;
|
|
|
23915
23915
|
/**
|
|
23916
23916
|
* @private
|
|
23917
23917
|
*/
|
|
23918
|
-
const getLatestNotifications = (state) => state.latestNotifications;
|
|
23918
|
+
const getLatestNotifications$1 = (state) => state.latestNotifications;
|
|
23919
23919
|
/**
|
|
23920
23920
|
* @private
|
|
23921
23921
|
*/
|
|
@@ -24003,7 +24003,7 @@ const getAssignedBreakoutRoom$1 = (state, props) => {
|
|
|
24003
24003
|
|
|
24004
24004
|
// Copyright (c) Microsoft Corporation.
|
|
24005
24005
|
// Licensed under the MIT License.
|
|
24006
|
-
var __awaiter$
|
|
24006
|
+
var __awaiter$I = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
24007
24007
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
24008
24008
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24009
24009
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -24042,7 +24042,7 @@ const _isPreviewOn = (deviceManager) => {
|
|
|
24042
24042
|
*
|
|
24043
24043
|
* @private
|
|
24044
24044
|
*/
|
|
24045
|
-
const disposeAllLocalPreviewViews = (callClient) => __awaiter$
|
|
24045
|
+
const disposeAllLocalPreviewViews = (callClient) => __awaiter$I(void 0, void 0, void 0, function* () {
|
|
24046
24046
|
const unparentedViews = callClient.getState().deviceManager.unparentedViews;
|
|
24047
24047
|
for (const view of unparentedViews) {
|
|
24048
24048
|
yield callClient.disposeView(undefined, undefined, view);
|
|
@@ -24111,7 +24111,7 @@ const maskDisplayNameWithRole = (displayName, localUserRole, participantRole, is
|
|
|
24111
24111
|
* Helper to create a local video stream from the selected camera.
|
|
24112
24112
|
* @private
|
|
24113
24113
|
*/
|
|
24114
|
-
const createLocalVideoStream = (callClient) => __awaiter$
|
|
24114
|
+
const createLocalVideoStream = (callClient) => __awaiter$I(void 0, void 0, void 0, function* () {
|
|
24115
24115
|
const camera = yield (callClient === null || callClient === void 0 ? void 0 : callClient.getState().deviceManager.selectedCamera);
|
|
24116
24116
|
if (camera) {
|
|
24117
24117
|
return new communicationCalling.LocalVideoStream(camera);
|
|
@@ -24230,7 +24230,7 @@ const holdButtonSelector = reselect__namespace.createSelector([getCallState], (c
|
|
|
24230
24230
|
|
|
24231
24231
|
// Copyright (c) Microsoft Corporation.
|
|
24232
24232
|
// Licensed under the MIT License.
|
|
24233
|
-
var __awaiter$
|
|
24233
|
+
var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
24234
24234
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
24235
24235
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24236
24236
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -24251,7 +24251,7 @@ const areStreamsEqual = (prevStream, newStream) => {
|
|
|
24251
24251
|
* @private
|
|
24252
24252
|
*/
|
|
24253
24253
|
const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager, call, options) => {
|
|
24254
|
-
const onStartLocalVideo = () => __awaiter$
|
|
24254
|
+
const onStartLocalVideo = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24255
24255
|
// Before the call object creates a stream, dispose of any local preview streams.
|
|
24256
24256
|
// @TODO: is there any way to parent the unparented view to the call object instead
|
|
24257
24257
|
// of disposing and creating a new stream?
|
|
@@ -24271,7 +24271,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24271
24271
|
yield call.startVideo(stream);
|
|
24272
24272
|
}
|
|
24273
24273
|
});
|
|
24274
|
-
const onStopLocalVideo = (stream) => __awaiter$
|
|
24274
|
+
const onStopLocalVideo = (stream) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24275
24275
|
const callId = call === null || call === void 0 ? void 0 : call.id;
|
|
24276
24276
|
if (!callId) {
|
|
24277
24277
|
return;
|
|
@@ -24280,7 +24280,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24280
24280
|
yield call.stopVideo(stream);
|
|
24281
24281
|
}
|
|
24282
24282
|
});
|
|
24283
|
-
const onToggleCamera = (options) => __awaiter$
|
|
24283
|
+
const onToggleCamera = (options) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24284
24284
|
const previewOn = _isPreviewOn(callClient.getState().deviceManager);
|
|
24285
24285
|
// the disposal of the unparented views is to workaround: https://skype.visualstudio.com/SPOOL/_workitems/edit/3030558.
|
|
24286
24286
|
// The root cause of the issue is caused by never transitioning the unparented view to the
|
|
@@ -24337,19 +24337,19 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24337
24337
|
}
|
|
24338
24338
|
}
|
|
24339
24339
|
});
|
|
24340
|
-
const onSelectMicrophone = (device) => __awaiter$
|
|
24340
|
+
const onSelectMicrophone = (device) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24341
24341
|
if (!deviceManager) {
|
|
24342
24342
|
return;
|
|
24343
24343
|
}
|
|
24344
24344
|
return deviceManager.selectMicrophone(device);
|
|
24345
24345
|
});
|
|
24346
|
-
const onSelectSpeaker = (device) => __awaiter$
|
|
24346
|
+
const onSelectSpeaker = (device) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24347
24347
|
if (!deviceManager) {
|
|
24348
24348
|
return;
|
|
24349
24349
|
}
|
|
24350
24350
|
return deviceManager.selectSpeaker(device);
|
|
24351
24351
|
});
|
|
24352
|
-
const onSelectCamera = (device, options) => __awaiter$
|
|
24352
|
+
const onSelectCamera = (device, options) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24353
24353
|
if (!deviceManager) {
|
|
24354
24354
|
return;
|
|
24355
24355
|
}
|
|
@@ -24379,9 +24379,9 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24379
24379
|
}, options);
|
|
24380
24380
|
}
|
|
24381
24381
|
});
|
|
24382
|
-
const onRaiseHand = () => __awaiter$
|
|
24383
|
-
const onLowerHand = () => __awaiter$
|
|
24384
|
-
const onToggleRaiseHand = () => __awaiter$
|
|
24382
|
+
const onRaiseHand = () => __awaiter$H(void 0, void 0, void 0, function* () { var _a; return yield ((_a = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand)) === null || _a === void 0 ? void 0 : _a.raiseHand()); });
|
|
24383
|
+
const onLowerHand = () => __awaiter$H(void 0, void 0, void 0, function* () { var _b; return yield ((_b = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand)) === null || _b === void 0 ? void 0 : _b.lowerHand()); });
|
|
24384
|
+
const onToggleRaiseHand = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24385
24385
|
const raiseHandFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand);
|
|
24386
24386
|
const localUserId = callClient.getState().userId;
|
|
24387
24387
|
const isLocalRaisedHand = raiseHandFeature === null || raiseHandFeature === void 0 ? void 0 : raiseHandFeature.getRaisedHands().find((publishedState) => toFlatCommunicationIdentifier(publishedState.identifier) === toFlatCommunicationIdentifier(localUserId));
|
|
@@ -24392,7 +24392,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24392
24392
|
yield (raiseHandFeature === null || raiseHandFeature === void 0 ? void 0 : raiseHandFeature.raiseHand());
|
|
24393
24393
|
}
|
|
24394
24394
|
});
|
|
24395
|
-
const onReactionClick = (reaction) => __awaiter$
|
|
24395
|
+
const onReactionClick = (reaction) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24396
24396
|
var _c;
|
|
24397
24397
|
if (reaction === 'like' ||
|
|
24398
24398
|
reaction === 'applause' ||
|
|
@@ -24406,19 +24406,19 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24406
24406
|
}
|
|
24407
24407
|
return;
|
|
24408
24408
|
});
|
|
24409
|
-
const onToggleMicrophone = () => __awaiter$
|
|
24409
|
+
const onToggleMicrophone = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24410
24410
|
if (!call || !(_isInCall(call.state) || _isInLobbyOrConnecting(call.state))) {
|
|
24411
24411
|
throw new Error(`Please invoke onToggleMicrophone after call is started`);
|
|
24412
24412
|
}
|
|
24413
24413
|
return call.isMuted ? yield call.unmute() : yield call.mute();
|
|
24414
24414
|
});
|
|
24415
|
-
const onStartScreenShare = () => __awaiter$
|
|
24416
|
-
const onStopScreenShare = () => __awaiter$
|
|
24417
|
-
const onToggleScreenShare = () => __awaiter$
|
|
24418
|
-
const onHangUp = (forEveryone) => __awaiter$
|
|
24415
|
+
const onStartScreenShare = () => __awaiter$H(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.startScreenSharing()); });
|
|
24416
|
+
const onStopScreenShare = () => __awaiter$H(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.stopScreenSharing()); });
|
|
24417
|
+
const onToggleScreenShare = () => __awaiter$H(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.isScreenSharingOn) ? yield onStopScreenShare() : yield onStartScreenShare(); });
|
|
24418
|
+
const onHangUp = (forEveryone) => __awaiter$H(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.hangUp({ forEveryone: forEveryone === true ? true : false })); });
|
|
24419
24419
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
24420
|
-
const onToggleHold = () => __awaiter$
|
|
24421
|
-
const onCreateLocalStreamView = (...args_1) => __awaiter$
|
|
24420
|
+
const onToggleHold = () => __awaiter$H(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.state) === 'LocalHold' ? yield (call === null || call === void 0 ? void 0 : call.resume()) : yield (call === null || call === void 0 ? void 0 : call.hold()); });
|
|
24421
|
+
const onCreateLocalStreamView = (...args_1) => __awaiter$H(void 0, [...args_1], void 0, function* (options = { scalingMode: 'Crop', isMirrored: true }) {
|
|
24422
24422
|
if (!call || call.localVideoStreams.length === 0) {
|
|
24423
24423
|
return;
|
|
24424
24424
|
}
|
|
@@ -24442,7 +24442,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24442
24442
|
}
|
|
24443
24443
|
return (createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view) ? { view: createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view } : undefined;
|
|
24444
24444
|
});
|
|
24445
|
-
const onCreateRemoteStreamView = (userId_1, ...args_2) => __awaiter$
|
|
24445
|
+
const onCreateRemoteStreamView = (userId_1, ...args_2) => __awaiter$H(void 0, [userId_1, ...args_2], void 0, function* (userId, options = { scalingMode: 'Crop' }) {
|
|
24446
24446
|
if (!call) {
|
|
24447
24447
|
return;
|
|
24448
24448
|
}
|
|
@@ -24479,7 +24479,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24479
24479
|
}
|
|
24480
24480
|
return (createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view) ? { view: createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view } : undefined;
|
|
24481
24481
|
});
|
|
24482
|
-
const onDisposeRemoteStreamView = (userId) => __awaiter$
|
|
24482
|
+
const onDisposeRemoteStreamView = (userId) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24483
24483
|
if (!call) {
|
|
24484
24484
|
return;
|
|
24485
24485
|
}
|
|
@@ -24500,7 +24500,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24500
24500
|
callClient.disposeView(call.id, participant.identifier, screenShareStream);
|
|
24501
24501
|
}
|
|
24502
24502
|
});
|
|
24503
|
-
const onDisposeRemoteVideoStreamView = (userId) => __awaiter$
|
|
24503
|
+
const onDisposeRemoteVideoStreamView = (userId) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24504
24504
|
if (!call) {
|
|
24505
24505
|
return;
|
|
24506
24506
|
}
|
|
@@ -24517,7 +24517,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24517
24517
|
callClient.disposeView(call.id, participant.identifier, remoteVideoStream);
|
|
24518
24518
|
}
|
|
24519
24519
|
});
|
|
24520
|
-
const onDisposeRemoteScreenShareStreamView = (userId) => __awaiter$
|
|
24520
|
+
const onDisposeRemoteScreenShareStreamView = (userId) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24521
24521
|
if (!call) {
|
|
24522
24522
|
return;
|
|
24523
24523
|
}
|
|
@@ -24534,7 +24534,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24534
24534
|
callClient.disposeView(call.id, participant.identifier, screenShareStream);
|
|
24535
24535
|
}
|
|
24536
24536
|
});
|
|
24537
|
-
const onDisposeLocalScreenShareStreamView = () => __awaiter$
|
|
24537
|
+
const onDisposeLocalScreenShareStreamView = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24538
24538
|
if (!call) {
|
|
24539
24539
|
return;
|
|
24540
24540
|
}
|
|
@@ -24547,7 +24547,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24547
24547
|
callClient.disposeView(call.id, undefined, screenShareStream);
|
|
24548
24548
|
}
|
|
24549
24549
|
});
|
|
24550
|
-
const onDisposeLocalStreamView = () => __awaiter$
|
|
24550
|
+
const onDisposeLocalStreamView = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24551
24551
|
// If the user is currently in a call, dispose of the local stream view attached to that call.
|
|
24552
24552
|
const callState = call && callClient.getState().calls[call.id];
|
|
24553
24553
|
const localStream = callState === null || callState === void 0 ? void 0 : callState.localVideoStreams.find((item) => item.mediaStreamType === 'Video');
|
|
@@ -24559,17 +24559,17 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24559
24559
|
// TODO: we need to remember which LocalVideoStream was used for LocalPreview and dispose that one.
|
|
24560
24560
|
yield disposeAllLocalPreviewViews(callClient);
|
|
24561
24561
|
});
|
|
24562
|
-
const onSendDtmfTone = (dtmfTone) => __awaiter$
|
|
24562
|
+
const onSendDtmfTone = (dtmfTone) => __awaiter$H(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.sendDtmf(dtmfTone)); });
|
|
24563
24563
|
const notImplemented = () => {
|
|
24564
24564
|
throw new Error('Not implemented, cannot call a method from an abstract object');
|
|
24565
24565
|
};
|
|
24566
24566
|
/* @conditional-compile-remove(call-readiness) */
|
|
24567
|
-
const askDevicePermission = (constrain) => __awaiter$
|
|
24567
|
+
const askDevicePermission = (constrain) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24568
24568
|
if (deviceManager) {
|
|
24569
24569
|
yield (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.askDevicePermission(constrain));
|
|
24570
24570
|
}
|
|
24571
24571
|
});
|
|
24572
|
-
const onRemoveVideoBackgroundEffects = () => __awaiter$
|
|
24572
|
+
const onRemoveVideoBackgroundEffects = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24573
24573
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
|
24574
24574
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
|
24575
24575
|
if (stream) {
|
|
@@ -24581,7 +24581,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24581
24581
|
}
|
|
24582
24582
|
}
|
|
24583
24583
|
});
|
|
24584
|
-
const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$
|
|
24584
|
+
const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24585
24585
|
var _d;
|
|
24586
24586
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
|
24587
24587
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
|
@@ -24594,7 +24594,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24594
24594
|
return createEffect && stream.feature(communicationCalling.Features.VideoEffects).startEffects(createEffect(backgroundBlurConfig));
|
|
24595
24595
|
}
|
|
24596
24596
|
});
|
|
24597
|
-
const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$
|
|
24597
|
+
const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24598
24598
|
var _e;
|
|
24599
24599
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
|
24600
24600
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
|
@@ -24607,38 +24607,65 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24607
24607
|
return (createEffect && stream.feature(communicationCalling.Features.VideoEffects).startEffects(createEffect(backgroundReplacementConfig)));
|
|
24608
24608
|
}
|
|
24609
24609
|
});
|
|
24610
|
-
|
|
24610
|
+
/* @conditional-compile-remove(DNS) */
|
|
24611
|
+
const onStartNoiseSuppressionEffect = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24612
|
+
var _f;
|
|
24613
|
+
const audioEffects = (options === null || options === void 0 ? void 0 : options.onResolveDeepNoiseSuppressionDependency) &&
|
|
24614
|
+
((_f = (yield options.onResolveDeepNoiseSuppressionDependency())) === null || _f === void 0 ? void 0 : _f.deepNoiseSuppressionEffect);
|
|
24615
|
+
const stream = call === null || call === void 0 ? void 0 : call.localAudioStreams.find((stream) => stream.mediaStreamType === 'Audio');
|
|
24616
|
+
if (stream && audioEffects && audioEffects.noiseSuppression) {
|
|
24617
|
+
const audioEffectsFeature = stream.feature(communicationCalling.Features.AudioEffects);
|
|
24618
|
+
const isNoiseSuppressionSupported = yield audioEffectsFeature.isSupported(audioEffects.noiseSuppression);
|
|
24619
|
+
if (isNoiseSuppressionSupported) {
|
|
24620
|
+
return yield audioEffectsFeature.startEffects(audioEffects);
|
|
24621
|
+
}
|
|
24622
|
+
else {
|
|
24623
|
+
throw new Error('Deep Noise Suppression is not supported on this platform.');
|
|
24624
|
+
}
|
|
24625
|
+
}
|
|
24626
|
+
});
|
|
24627
|
+
/* @conditional-compile-remove(DNS) */
|
|
24628
|
+
const onStopNoiseSuppressionEffect = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24629
|
+
const stream = call === null || call === void 0 ? void 0 : call.localAudioStreams.find((stream) => stream.mediaStreamType === 'Audio');
|
|
24630
|
+
if (stream && (options === null || options === void 0 ? void 0 : options.onResolveDeepNoiseSuppressionDependency)) {
|
|
24631
|
+
const audioEffects = {
|
|
24632
|
+
noiseSuppression: true
|
|
24633
|
+
};
|
|
24634
|
+
return yield stream.feature(communicationCalling.Features.AudioEffects).stopEffects(audioEffects);
|
|
24635
|
+
}
|
|
24636
|
+
});
|
|
24637
|
+
const onStartCaptions = (options) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24611
24638
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
|
24612
24639
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.startCaptions(options));
|
|
24613
24640
|
});
|
|
24614
|
-
const onStopCaptions = () => __awaiter$
|
|
24641
|
+
const onStopCaptions = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24615
24642
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
|
24616
24643
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.stopCaptions());
|
|
24617
24644
|
});
|
|
24618
|
-
const onSetSpokenLanguage = (language) => __awaiter$
|
|
24645
|
+
const onSetSpokenLanguage = (language) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24619
24646
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
|
24620
24647
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.setSpokenLanguage(language));
|
|
24621
24648
|
});
|
|
24622
|
-
const onSetCaptionLanguage = (language) => __awaiter$
|
|
24649
|
+
const onSetCaptionLanguage = (language) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24623
24650
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
|
24624
24651
|
yield captionsFeature.setCaptionLanguage(language);
|
|
24625
24652
|
});
|
|
24626
|
-
const onSubmitSurvey = (survey) => __awaiter$
|
|
24627
|
-
const onStartSpotlight = (userIds) => __awaiter$
|
|
24653
|
+
const onSubmitSurvey = (survey) => __awaiter$H(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.CallSurvey).submitSurvey(survey)); });
|
|
24654
|
+
const onStartSpotlight = (userIds) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24628
24655
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
|
24629
24656
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight(participants));
|
|
24630
24657
|
});
|
|
24631
|
-
const onStopSpotlight = (userIds) => __awaiter$
|
|
24658
|
+
const onStopSpotlight = (userIds) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24632
24659
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
|
24633
24660
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight(participants));
|
|
24634
24661
|
});
|
|
24635
|
-
const onStopAllSpotlight = () => __awaiter$
|
|
24662
|
+
const onStopAllSpotlight = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24636
24663
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopAllSpotlight());
|
|
24637
24664
|
});
|
|
24638
24665
|
/* @conditional-compile-remove(soft-mute) */
|
|
24639
|
-
const onMuteParticipant = (userId) => __awaiter$
|
|
24666
|
+
const onMuteParticipant = (userId) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24640
24667
|
if (call === null || call === void 0 ? void 0 : call.remoteParticipants) {
|
|
24641
|
-
call === null || call === void 0 ? void 0 : call.remoteParticipants.forEach((participant) => __awaiter$
|
|
24668
|
+
call === null || call === void 0 ? void 0 : call.remoteParticipants.forEach((participant) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24642
24669
|
// Using toFlatCommunicationIdentifier to convert the CommunicationIdentifier to string
|
|
24643
24670
|
// as _toCommunicationIdentifier(userId) comparison to participant.identifier did not work for this case
|
|
24644
24671
|
if (toFlatCommunicationIdentifier(participant.identifier) === userId) {
|
|
@@ -24648,27 +24675,27 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24648
24675
|
}
|
|
24649
24676
|
});
|
|
24650
24677
|
/* @conditional-compile-remove(soft-mute) */
|
|
24651
|
-
const onMuteAllRemoteParticipants = () => __awaiter$
|
|
24678
|
+
const onMuteAllRemoteParticipants = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24652
24679
|
call === null || call === void 0 ? void 0 : call.muteAllRemoteParticipants();
|
|
24653
24680
|
});
|
|
24654
24681
|
const canStartSpotlight = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Capabilities).capabilities.spotlightParticipant.isPresent;
|
|
24655
24682
|
const canRemoveSpotlight = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Capabilities).capabilities.removeParticipantsSpotlight.isPresent;
|
|
24656
24683
|
const onStartLocalSpotlight = canStartSpotlight
|
|
24657
|
-
? () => __awaiter$
|
|
24684
|
+
? () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24658
24685
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight());
|
|
24659
24686
|
})
|
|
24660
24687
|
: undefined;
|
|
24661
|
-
const onStopLocalSpotlight = () => __awaiter$
|
|
24688
|
+
const onStopLocalSpotlight = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24662
24689
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight());
|
|
24663
24690
|
});
|
|
24664
24691
|
const onStartRemoteSpotlight = canStartSpotlight
|
|
24665
|
-
? (userIds) => __awaiter$
|
|
24692
|
+
? (userIds) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24666
24693
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
|
24667
24694
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight(participants));
|
|
24668
24695
|
})
|
|
24669
24696
|
: undefined;
|
|
24670
24697
|
const onStopRemoteSpotlight = canRemoveSpotlight
|
|
24671
|
-
? (userIds) => __awaiter$
|
|
24698
|
+
? (userIds) => __awaiter$H(void 0, void 0, void 0, function* () {
|
|
24672
24699
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
|
24673
24700
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight(participants));
|
|
24674
24701
|
})
|
|
@@ -24707,6 +24734,10 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24707
24734
|
onRemoveVideoBackgroundEffects,
|
|
24708
24735
|
onBlurVideoBackground,
|
|
24709
24736
|
onReplaceVideoBackground,
|
|
24737
|
+
/* @conditional-compile-remove(DNS) */
|
|
24738
|
+
onStartNoiseSuppressionEffect,
|
|
24739
|
+
/* @conditional-compile-remove(DNS) */
|
|
24740
|
+
onStopNoiseSuppressionEffect,
|
|
24710
24741
|
onStartCaptions,
|
|
24711
24742
|
onStopCaptions,
|
|
24712
24743
|
onSetCaptionLanguage,
|
|
@@ -24722,13 +24753,17 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
|
24722
24753
|
/* @conditional-compile-remove(soft-mute) */
|
|
24723
24754
|
onMuteParticipant,
|
|
24724
24755
|
/* @conditional-compile-remove(soft-mute) */
|
|
24725
|
-
onMuteAllRemoteParticipants
|
|
24756
|
+
onMuteAllRemoteParticipants,
|
|
24757
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
|
24758
|
+
onAcceptCall: notImplemented,
|
|
24759
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
|
24760
|
+
onRejectCall: notImplemented
|
|
24726
24761
|
};
|
|
24727
24762
|
});
|
|
24728
24763
|
|
|
24729
24764
|
// Copyright (c) Microsoft Corporation.
|
|
24730
24765
|
// Licensed under the MIT License.
|
|
24731
|
-
var __awaiter$
|
|
24766
|
+
var __awaiter$G = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
24732
24767
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
24733
24768
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24734
24769
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -24762,7 +24797,7 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
|
24762
24797
|
return callAgent === null || callAgent === void 0 ? void 0 : callAgent.startCall(participants, options);
|
|
24763
24798
|
},
|
|
24764
24799
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
24765
|
-
onAddParticipant: (userId, options) => __awaiter$
|
|
24800
|
+
onAddParticipant: (userId, options) => __awaiter$G(void 0, void 0, void 0, function* () {
|
|
24766
24801
|
const participant = _toCommunicationIdentifier(userId);
|
|
24767
24802
|
if (communicationCommon.isPhoneNumberIdentifier(participant)) {
|
|
24768
24803
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant, options);
|
|
@@ -24770,12 +24805,12 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
|
24770
24805
|
else if (communicationCommon.isCommunicationUserIdentifier(participant) || communicationCommon.isMicrosoftTeamsUserIdentifier(participant)) {
|
|
24771
24806
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant);
|
|
24772
24807
|
}
|
|
24773
|
-
}), onRemoveParticipant: (userId) => __awaiter$
|
|
24808
|
+
}), onRemoveParticipant: (userId) => __awaiter$G(void 0, void 0, void 0, function* () {
|
|
24774
24809
|
const participant = _toCommunicationIdentifier(userId);
|
|
24775
24810
|
yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
|
|
24776
24811
|
}),
|
|
24777
24812
|
/* @conditional-compile-remove(one-to-n-calling) */
|
|
24778
|
-
onAcceptCall: (incomingCallId, useVideo) => __awaiter$
|
|
24813
|
+
onAcceptCall: (incomingCallId, useVideo) => __awaiter$G(void 0, void 0, void 0, function* () {
|
|
24779
24814
|
const localVideoStream = useVideo ? yield createLocalVideoStream(callClient) : undefined;
|
|
24780
24815
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
|
24781
24816
|
if (incomingCall) {
|
|
@@ -24783,7 +24818,7 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
|
24783
24818
|
}
|
|
24784
24819
|
}),
|
|
24785
24820
|
/* @conditional-compile-remove(one-to-n-calling) */
|
|
24786
|
-
onRejectCall: (incomingCallId) => __awaiter$
|
|
24821
|
+
onRejectCall: (incomingCallId) => __awaiter$G(void 0, void 0, void 0, function* () {
|
|
24787
24822
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
|
24788
24823
|
if (incomingCall) {
|
|
24789
24824
|
yield incomingCall.reject();
|
|
@@ -24791,13 +24826,13 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
|
24791
24826
|
}),
|
|
24792
24827
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
24793
24828
|
onHangUp: breakoutRoomOriginCall
|
|
24794
|
-
? () => __awaiter$
|
|
24829
|
+
? () => __awaiter$G(void 0, void 0, void 0, function* () { return breakoutRoomOriginCall.hangUp().then(() => commonCallingHandlers.onHangUp()); })
|
|
24795
24830
|
: commonCallingHandlers.onHangUp });
|
|
24796
24831
|
});
|
|
24797
24832
|
|
|
24798
24833
|
// Copyright (c) Microsoft Corporation.
|
|
24799
24834
|
// Licensed under the MIT License.
|
|
24800
|
-
var __awaiter$
|
|
24835
|
+
var __awaiter$F = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
24801
24836
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
24802
24837
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24803
24838
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -24828,7 +24863,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
|
24828
24863
|
return undefined;
|
|
24829
24864
|
},
|
|
24830
24865
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
24831
|
-
onAddParticipant: (userId, options) => __awaiter$
|
|
24866
|
+
onAddParticipant: (userId, options) => __awaiter$F(void 0, void 0, void 0, function* () {
|
|
24832
24867
|
const participant = _toCommunicationIdentifier(userId);
|
|
24833
24868
|
/* @conditional-compile-remove(teams-identity-support) */
|
|
24834
24869
|
const threadId = options === null || options === void 0 ? void 0 : options.threadId;
|
|
@@ -24844,7 +24879,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
|
24844
24879
|
}
|
|
24845
24880
|
/* @conditional-compile-remove(teams-identity-support) */
|
|
24846
24881
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant);
|
|
24847
|
-
}), onRemoveParticipant: (userId) => __awaiter$
|
|
24882
|
+
}), onRemoveParticipant: (userId) => __awaiter$F(void 0, void 0, void 0, function* () {
|
|
24848
24883
|
const participant = _toCommunicationIdentifier(userId);
|
|
24849
24884
|
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
|
24850
24885
|
throw new Error('CommunicationIdentifier in Teams call is not supported!');
|
|
@@ -24856,7 +24891,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
|
24856
24891
|
yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
|
|
24857
24892
|
}),
|
|
24858
24893
|
/* @conditional-compile-remove(one-to-n-calling) */
|
|
24859
|
-
onAcceptCall: (incomingCallId, useVideo) => __awaiter$
|
|
24894
|
+
onAcceptCall: (incomingCallId, useVideo) => __awaiter$F(void 0, void 0, void 0, function* () {
|
|
24860
24895
|
const localVideoStream = useVideo ? yield createLocalVideoStream(callClient) : undefined;
|
|
24861
24896
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
|
24862
24897
|
if (incomingCall) {
|
|
@@ -24864,7 +24899,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
|
24864
24899
|
}
|
|
24865
24900
|
}),
|
|
24866
24901
|
/* @conditional-compile-remove(one-to-n-calling) */
|
|
24867
|
-
onRejectCall: (incomingCallId) => __awaiter$
|
|
24902
|
+
onRejectCall: (incomingCallId) => __awaiter$F(void 0, void 0, void 0, function* () {
|
|
24868
24903
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
|
24869
24904
|
if (incomingCall) {
|
|
24870
24905
|
yield incomingCall.reject();
|
|
@@ -24885,7 +24920,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
|
24885
24920
|
*/
|
|
24886
24921
|
const notificationStackSelector = reselect.createSelector([
|
|
24887
24922
|
getLatestErrors,
|
|
24888
|
-
/* @conditional-compile-remove(breakout-rooms) */ getLatestNotifications,
|
|
24923
|
+
/* @conditional-compile-remove(breakout-rooms) */ getLatestNotifications$1,
|
|
24889
24924
|
getDiagnostics,
|
|
24890
24925
|
getDeviceManager$1,
|
|
24891
24926
|
getEnvironmentInfo,
|
|
@@ -25174,7 +25209,7 @@ const getCaptionsSpeakerIdentifier = (captions) => {
|
|
|
25174
25209
|
|
|
25175
25210
|
// Copyright (c) Microsoft Corporation.
|
|
25176
25211
|
// Licensed under the MIT License.
|
|
25177
|
-
var __awaiter$
|
|
25212
|
+
var __awaiter$E = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
25178
25213
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
25179
25214
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
25180
25215
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -25251,7 +25286,7 @@ class ProxyDeviceManager {
|
|
|
25251
25286
|
console.info('Could not Unsubscribe to Permissions API Camera changed events, API is not supported by browser', e);
|
|
25252
25287
|
}
|
|
25253
25288
|
};
|
|
25254
|
-
this.permissionsApiStateChangeHandler = () => __awaiter$
|
|
25289
|
+
this.permissionsApiStateChangeHandler = () => __awaiter$E(this, void 0, void 0, function* () {
|
|
25255
25290
|
yield this.updateDevicePermissionState();
|
|
25256
25291
|
});
|
|
25257
25292
|
/**
|
|
@@ -25262,13 +25297,13 @@ class ProxyDeviceManager {
|
|
|
25262
25297
|
this.selectCamera = (videoDeviceInfo) => {
|
|
25263
25298
|
this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);
|
|
25264
25299
|
};
|
|
25265
|
-
this.videoDevicesUpdated = () => __awaiter$
|
|
25300
|
+
this.videoDevicesUpdated = () => __awaiter$E(this, void 0, void 0, function* () {
|
|
25266
25301
|
// Device Manager always has a camera with '' name if there are no real camera devices available.
|
|
25267
25302
|
// We don't want to show that in the UI.
|
|
25268
25303
|
const realCameras = (yield this._deviceManager.getCameras()).filter((c) => !!c.name);
|
|
25269
25304
|
this._context.setDeviceManagerCameras(dedupeById(realCameras));
|
|
25270
25305
|
});
|
|
25271
|
-
this.audioDevicesUpdated = () => __awaiter$
|
|
25306
|
+
this.audioDevicesUpdated = () => __awaiter$E(this, void 0, void 0, function* () {
|
|
25272
25307
|
this._context.setDeviceManagerMicrophones(dedupeById(yield this._deviceManager.getMicrophones()));
|
|
25273
25308
|
if (this._deviceManager.isSpeakerSelectionAvailable) {
|
|
25274
25309
|
this._context.setDeviceManagerSpeakers(dedupeById(yield this._deviceManager.getSpeakers()));
|
|
@@ -25280,7 +25315,7 @@ class ProxyDeviceManager {
|
|
|
25280
25315
|
this.selectedSpeakerChanged = () => {
|
|
25281
25316
|
this._context.setDeviceManagerSelectedSpeaker(this._deviceManager.selectedSpeaker);
|
|
25282
25317
|
};
|
|
25283
|
-
this.updateDevicePermissionState = (sdkDeviceAccessState) => __awaiter$
|
|
25318
|
+
this.updateDevicePermissionState = (sdkDeviceAccessState) => __awaiter$E(this, void 0, void 0, function* () {
|
|
25284
25319
|
let hasCameraPermission = !!(sdkDeviceAccessState === null || sdkDeviceAccessState === void 0 ? void 0 : sdkDeviceAccessState.video);
|
|
25285
25320
|
let hasMicPermission = !!(sdkDeviceAccessState === null || sdkDeviceAccessState === void 0 ? void 0 : sdkDeviceAccessState.audio);
|
|
25286
25321
|
// Supplement the SDK values with values from the Permissions API to get a better understanding of the device
|
|
@@ -25356,7 +25391,7 @@ class ProxyDeviceManager {
|
|
|
25356
25391
|
}
|
|
25357
25392
|
case 'askDevicePermission': {
|
|
25358
25393
|
return this._context.withAsyncErrorTeedToState((...args) => {
|
|
25359
|
-
return target.askDevicePermission(...args).then((deviceAccess) => __awaiter$
|
|
25394
|
+
return target.askDevicePermission(...args).then((deviceAccess) => __awaiter$E(this, void 0, void 0, function* () {
|
|
25360
25395
|
yield this.updateDevicePermissionState(deviceAccess);
|
|
25361
25396
|
return deviceAccess;
|
|
25362
25397
|
}));
|
|
@@ -25753,7 +25788,7 @@ class CallIdHistory {
|
|
|
25753
25788
|
|
|
25754
25789
|
// Copyright (c) Microsoft Corporation.
|
|
25755
25790
|
// Licensed under the MIT License.
|
|
25756
|
-
var __awaiter$
|
|
25791
|
+
var __awaiter$D = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
25757
25792
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
25758
25793
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
25759
25794
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -25778,8 +25813,7 @@ const REACTION_ANIMATION_TIME_MS = 4133;
|
|
|
25778
25813
|
* @private
|
|
25779
25814
|
*/
|
|
25780
25815
|
let CallContext$2 = class CallContext {
|
|
25781
|
-
constructor(userId, maxListeners = 50
|
|
25782
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId) {
|
|
25816
|
+
constructor(userId, maxListeners = 50) {
|
|
25783
25817
|
this._callIdHistory = new CallIdHistory();
|
|
25784
25818
|
this._timeOutId = {};
|
|
25785
25819
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
@@ -25814,7 +25848,6 @@ let CallContext$2 = class CallContext {
|
|
|
25814
25848
|
callAgent: undefined,
|
|
25815
25849
|
userId: userId,
|
|
25816
25850
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo: undefined,
|
|
25817
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: alternateCallerId,
|
|
25818
25851
|
latestErrors: {},
|
|
25819
25852
|
/* @conditional-compile-remove(breakout-rooms) */ latestNotifications: {}
|
|
25820
25853
|
};
|
|
@@ -26726,7 +26759,7 @@ let CallContext$2 = class CallContext {
|
|
|
26726
26759
|
* @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.
|
|
26727
26760
|
*/
|
|
26728
26761
|
withAsyncErrorTeedToState(action, target) {
|
|
26729
|
-
return (...args) => __awaiter$
|
|
26762
|
+
return (...args) => __awaiter$D(this, void 0, void 0, function* () {
|
|
26730
26763
|
try {
|
|
26731
26764
|
return yield action(...args);
|
|
26732
26765
|
}
|
|
@@ -27270,7 +27303,7 @@ function _logStreamEvent(eventName, streamLogInfo, error) {
|
|
|
27270
27303
|
|
|
27271
27304
|
// Copyright (c) Microsoft Corporation.
|
|
27272
27305
|
// Licensed under the MIT License.
|
|
27273
|
-
var __awaiter$
|
|
27306
|
+
var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27274
27307
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27275
27308
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27276
27309
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -27280,7 +27313,7 @@ var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
|
27280
27313
|
});
|
|
27281
27314
|
};
|
|
27282
27315
|
function createViewVideo(context, internalContext, callId, stream, participantId, options) {
|
|
27283
|
-
return __awaiter$
|
|
27316
|
+
return __awaiter$C(this, void 0, void 0, function* () {
|
|
27284
27317
|
// we can only have 3 types of createView
|
|
27285
27318
|
let streamEventType;
|
|
27286
27319
|
// we will reuse these for local as well but we need to make sure the remote stream is passed in like before.
|
|
@@ -27409,7 +27442,7 @@ function createViewVideo(context, internalContext, callId, stream, participantId
|
|
|
27409
27442
|
});
|
|
27410
27443
|
}
|
|
27411
27444
|
function createViewUnparentedVideo(context, internalContext, stream, options) {
|
|
27412
|
-
return __awaiter$
|
|
27445
|
+
return __awaiter$C(this, void 0, void 0, function* () {
|
|
27413
27446
|
const renderInfo = internalContext.getUnparentedRenderInfo(stream);
|
|
27414
27447
|
if (renderInfo && renderInfo.status === 'Rendered') {
|
|
27415
27448
|
console.warn('Unparented LocalVideoStream is already rendered');
|
|
@@ -27578,7 +27611,7 @@ function createView(context, internalContext, callId, participantId, stream, opt
|
|
|
27578
27611
|
// Render LocalVideoStream that is not part of a Call
|
|
27579
27612
|
// Because it is not part of the call we don't tee errors to state naturally (e.g. via a Call Client function such as startVideo).
|
|
27580
27613
|
// We do not have a startLocalPreviewVideo function, so as a workaround we ensure any errors are propagated here.
|
|
27581
|
-
return context.withAsyncErrorTeedToState(() => __awaiter$
|
|
27614
|
+
return context.withAsyncErrorTeedToState(() => __awaiter$C(this, void 0, void 0, function* () { return yield createViewUnparentedVideo(context, internalContext, stream, options); }), 'Call.startVideo')();
|
|
27582
27615
|
}
|
|
27583
27616
|
else {
|
|
27584
27617
|
_logStreamEvent(EventNames.CREATE_STREAM_INVALID_PARAMS, { streamType });
|
|
@@ -27764,7 +27797,7 @@ class RecordingSubscriber {
|
|
|
27764
27797
|
|
|
27765
27798
|
// Copyright (c) Microsoft Corporation.
|
|
27766
27799
|
// Licensed under the MIT License.
|
|
27767
|
-
var __awaiter$
|
|
27800
|
+
var __awaiter$B = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27768
27801
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27769
27802
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27770
27803
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -27788,7 +27821,7 @@ class PPTLiveSubscriber {
|
|
|
27788
27821
|
this._context.setCallPPTLiveActive(this._callIdRef.callId, this._pptLive.isActive);
|
|
27789
27822
|
this.checkAndUpdatePPTLiveParticipant();
|
|
27790
27823
|
};
|
|
27791
|
-
this.checkAndUpdatePPTLiveParticipant = () => __awaiter$
|
|
27824
|
+
this.checkAndUpdatePPTLiveParticipant = () => __awaiter$B(this, void 0, void 0, function* () {
|
|
27792
27825
|
if (!this._pptLive.activePresenterId) {
|
|
27793
27826
|
return;
|
|
27794
27827
|
}
|
|
@@ -28135,16 +28168,13 @@ class BreakoutRoomsSubscriber {
|
|
|
28135
28168
|
clearTimeout(this._breakoutRoomClosingSoonTimeoutId);
|
|
28136
28169
|
};
|
|
28137
28170
|
this.onBreakoutRoomsUpdated = (eventData) => {
|
|
28138
|
-
if (!eventData.data) {
|
|
28139
|
-
return;
|
|
28140
|
-
}
|
|
28141
28171
|
if (eventData.type === 'assignedBreakoutRooms') {
|
|
28142
28172
|
this.onAssignedBreakoutRoomUpdated(eventData.data);
|
|
28143
28173
|
}
|
|
28144
28174
|
else if (eventData.type === 'join') {
|
|
28145
28175
|
this.onBreakoutRoomsJoined(eventData.data);
|
|
28146
28176
|
}
|
|
28147
|
-
else if (eventData.type === 'breakoutRoomsSettings') {
|
|
28177
|
+
else if (eventData.type === 'breakoutRoomsSettings' && eventData.data) {
|
|
28148
28178
|
this.onBreakoutRoomSettingsUpdated(eventData.data);
|
|
28149
28179
|
}
|
|
28150
28180
|
};
|
|
@@ -28157,6 +28187,10 @@ class BreakoutRoomsSubscriber {
|
|
|
28157
28187
|
if (callState === undefined) {
|
|
28158
28188
|
return;
|
|
28159
28189
|
}
|
|
28190
|
+
if (!breakoutRoom) {
|
|
28191
|
+
this._context.setAssignedBreakoutRoom(this._callIdRef.callId, breakoutRoom);
|
|
28192
|
+
return;
|
|
28193
|
+
}
|
|
28160
28194
|
if (breakoutRoom.state === 'open' &&
|
|
28161
28195
|
(currentAssignedBreakoutRoom === null || currentAssignedBreakoutRoom === void 0 ? void 0 : currentAssignedBreakoutRoom.state) === 'open' &&
|
|
28162
28196
|
((_b = currentAssignedBreakoutRoom === null || currentAssignedBreakoutRoom === void 0 ? void 0 : currentAssignedBreakoutRoom.call) === null || _b === void 0 ? void 0 : _b.id) !== ((_c = breakoutRoom.call) === null || _c === void 0 ? void 0 : _c.id)) {
|
|
@@ -28476,7 +28510,7 @@ class IncomingCallSubscriber {
|
|
|
28476
28510
|
|
|
28477
28511
|
// Copyright (c) Microsoft Corporation.
|
|
28478
28512
|
// Licensed under the MIT License.
|
|
28479
|
-
var __awaiter$
|
|
28513
|
+
var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28480
28514
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28481
28515
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28482
28516
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -28496,14 +28530,14 @@ class ProxyIncomingCall {
|
|
|
28496
28530
|
switch (prop) {
|
|
28497
28531
|
case 'accept': {
|
|
28498
28532
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28499
|
-
return __awaiter$
|
|
28533
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
|
28500
28534
|
return yield target.accept(...args);
|
|
28501
28535
|
});
|
|
28502
28536
|
}, 'IncomingCall.accept');
|
|
28503
28537
|
}
|
|
28504
28538
|
case 'reject': {
|
|
28505
28539
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28506
|
-
return __awaiter$
|
|
28540
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
|
28507
28541
|
return yield target.reject(...args);
|
|
28508
28542
|
});
|
|
28509
28543
|
}, 'IncomingCall.reject');
|
|
@@ -28525,7 +28559,7 @@ const incomingCallDeclaratify = (incomingCall, context) => {
|
|
|
28525
28559
|
|
|
28526
28560
|
// Copyright (c) Microsoft Corporation.
|
|
28527
28561
|
// Licensed under the MIT License.
|
|
28528
|
-
var __awaiter$
|
|
28562
|
+
var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28529
28563
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28530
28564
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28531
28565
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -28545,14 +28579,14 @@ class ProxyTeamsIncomingCall {
|
|
|
28545
28579
|
switch (prop) {
|
|
28546
28580
|
case 'accept': {
|
|
28547
28581
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28548
|
-
return __awaiter$
|
|
28582
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
|
28549
28583
|
return yield target.accept(...args);
|
|
28550
28584
|
});
|
|
28551
28585
|
}, 'IncomingCall.accept');
|
|
28552
28586
|
}
|
|
28553
28587
|
case 'reject': {
|
|
28554
28588
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28555
|
-
return __awaiter$
|
|
28589
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
|
28556
28590
|
return yield target.reject(...args);
|
|
28557
28591
|
});
|
|
28558
28592
|
}, 'IncomingCall.reject');
|
|
@@ -28771,7 +28805,7 @@ const clearCallRelatedState = (context, internalContext) => {
|
|
|
28771
28805
|
|
|
28772
28806
|
// Copyright (c) Microsoft Corporation.
|
|
28773
28807
|
// Licensed under the MIT License.
|
|
28774
|
-
var __awaiter$
|
|
28808
|
+
var __awaiter$y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28775
28809
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28776
28810
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28777
28811
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -28797,56 +28831,56 @@ class ProxyCallCommon {
|
|
|
28797
28831
|
switch (prop) {
|
|
28798
28832
|
case 'mute': {
|
|
28799
28833
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28800
|
-
return __awaiter$
|
|
28834
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28801
28835
|
return yield target.mute(...args);
|
|
28802
28836
|
});
|
|
28803
28837
|
}, 'Call.mute');
|
|
28804
28838
|
}
|
|
28805
28839
|
case 'unmute': {
|
|
28806
28840
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28807
|
-
return __awaiter$
|
|
28841
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28808
28842
|
return yield target.unmute(...args);
|
|
28809
28843
|
});
|
|
28810
28844
|
}, 'Call.unmute');
|
|
28811
28845
|
}
|
|
28812
28846
|
case 'startVideo': {
|
|
28813
28847
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28814
|
-
return __awaiter$
|
|
28848
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28815
28849
|
return yield target.startVideo(...args);
|
|
28816
28850
|
});
|
|
28817
28851
|
}, 'Call.startVideo');
|
|
28818
28852
|
}
|
|
28819
28853
|
case 'stopVideo': {
|
|
28820
28854
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28821
|
-
return __awaiter$
|
|
28855
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28822
28856
|
return yield target.stopVideo(...args);
|
|
28823
28857
|
});
|
|
28824
28858
|
}, 'Call.stopVideo');
|
|
28825
28859
|
}
|
|
28826
28860
|
case 'startScreenSharing': {
|
|
28827
28861
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28828
|
-
return __awaiter$
|
|
28862
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28829
28863
|
return yield target.startScreenSharing(...args);
|
|
28830
28864
|
});
|
|
28831
28865
|
}, 'Call.startScreenSharing');
|
|
28832
28866
|
}
|
|
28833
28867
|
case 'stopScreenSharing': {
|
|
28834
28868
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28835
|
-
return __awaiter$
|
|
28869
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28836
28870
|
return yield target.stopScreenSharing(...args);
|
|
28837
28871
|
});
|
|
28838
28872
|
}, 'Call.stopScreenSharing');
|
|
28839
28873
|
}
|
|
28840
28874
|
case 'hold': {
|
|
28841
28875
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28842
|
-
return __awaiter$
|
|
28876
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28843
28877
|
return yield target.hold(...args);
|
|
28844
28878
|
});
|
|
28845
28879
|
}, 'Call.hold');
|
|
28846
28880
|
}
|
|
28847
28881
|
case 'resume': {
|
|
28848
28882
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28849
|
-
return __awaiter$
|
|
28883
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28850
28884
|
return yield target.resume(...args);
|
|
28851
28885
|
});
|
|
28852
28886
|
}, 'Call.resume');
|
|
@@ -28914,7 +28948,7 @@ class ProxyTeamsCaptions {
|
|
|
28914
28948
|
get(target, prop) {
|
|
28915
28949
|
switch (prop) {
|
|
28916
28950
|
case 'startCaptions':
|
|
28917
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
28951
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28918
28952
|
var _a, _b;
|
|
28919
28953
|
this._context.setStartCaptionsInProgress(this._call.id, true);
|
|
28920
28954
|
try {
|
|
@@ -28928,7 +28962,7 @@ class ProxyTeamsCaptions {
|
|
|
28928
28962
|
}
|
|
28929
28963
|
}), 'Call.feature');
|
|
28930
28964
|
case 'stopCaptions':
|
|
28931
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
28965
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28932
28966
|
const ret = yield target.stopCaptions(...args);
|
|
28933
28967
|
this._context.setIsCaptionActive(this._call.id, false);
|
|
28934
28968
|
this._context.setStartCaptionsInProgress(this._call.id, false);
|
|
@@ -28936,13 +28970,13 @@ class ProxyTeamsCaptions {
|
|
|
28936
28970
|
return ret;
|
|
28937
28971
|
}), 'Call.feature');
|
|
28938
28972
|
case 'setSpokenLanguage':
|
|
28939
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
28973
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28940
28974
|
const ret = yield target.setSpokenLanguage(...args);
|
|
28941
28975
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
|
28942
28976
|
return ret;
|
|
28943
28977
|
}), 'Call.feature');
|
|
28944
28978
|
case 'setCaptionLanguage':
|
|
28945
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
28979
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28946
28980
|
const ret = yield target.setCaptionLanguage(...args);
|
|
28947
28981
|
this._context.setSelectedCaptionLanguage(this._call.id, args[0]);
|
|
28948
28982
|
return ret;
|
|
@@ -28964,7 +28998,7 @@ class ProxyCaptions {
|
|
|
28964
28998
|
get(target, prop) {
|
|
28965
28999
|
switch (prop) {
|
|
28966
29000
|
case 'startCaptions':
|
|
28967
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29001
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28968
29002
|
var _a, _b;
|
|
28969
29003
|
this._context.setStartCaptionsInProgress(this._call.id, true);
|
|
28970
29004
|
try {
|
|
@@ -28978,7 +29012,7 @@ class ProxyCaptions {
|
|
|
28978
29012
|
}
|
|
28979
29013
|
}), 'Call.feature');
|
|
28980
29014
|
case 'stopCaptions':
|
|
28981
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29015
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28982
29016
|
const ret = yield target.stopCaptions(...args);
|
|
28983
29017
|
this._context.setIsCaptionActive(this._call.id, false);
|
|
28984
29018
|
this._context.setStartCaptionsInProgress(this._call.id, false);
|
|
@@ -28986,7 +29020,7 @@ class ProxyCaptions {
|
|
|
28986
29020
|
return ret;
|
|
28987
29021
|
}), 'Call.feature');
|
|
28988
29022
|
case 'setSpokenLanguage':
|
|
28989
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29023
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28990
29024
|
const ret = yield target.setSpokenLanguage(...args);
|
|
28991
29025
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
|
28992
29026
|
return ret;
|
|
@@ -29006,12 +29040,12 @@ class ProxySpotlightCallFeature {
|
|
|
29006
29040
|
get(target, prop) {
|
|
29007
29041
|
switch (prop) {
|
|
29008
29042
|
case 'startSpotlight':
|
|
29009
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29043
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
29010
29044
|
const ret = yield target.startSpotlight(...args);
|
|
29011
29045
|
return ret;
|
|
29012
29046
|
}), 'Call.feature');
|
|
29013
29047
|
case 'stopSpotlight':
|
|
29014
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29048
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
29015
29049
|
const ret = yield target.stopSpotlight(...args);
|
|
29016
29050
|
return ret;
|
|
29017
29051
|
}), 'Call.feature');
|
|
@@ -29053,7 +29087,7 @@ class ProxyTransferCallFeature {
|
|
|
29053
29087
|
|
|
29054
29088
|
// Copyright (c) Microsoft Corporation.
|
|
29055
29089
|
// Licensed under the MIT License.
|
|
29056
|
-
var __awaiter$
|
|
29090
|
+
var __awaiter$x = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29057
29091
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29058
29092
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29059
29093
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -29067,7 +29101,7 @@ class ProxyCall extends ProxyCallCommon {
|
|
|
29067
29101
|
switch (prop) {
|
|
29068
29102
|
case 'addParticipant': {
|
|
29069
29103
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
|
29070
|
-
return __awaiter$
|
|
29104
|
+
return __awaiter$x(this, void 0, void 0, function* () {
|
|
29071
29105
|
return yield target.addParticipant(...args);
|
|
29072
29106
|
});
|
|
29073
29107
|
}, 'Call.addParticipant');
|
|
@@ -29302,7 +29336,7 @@ class InternalCallContext {
|
|
|
29302
29336
|
|
|
29303
29337
|
// Copyright (c) Microsoft Corporation.
|
|
29304
29338
|
// Licensed under the MIT License.
|
|
29305
|
-
var __awaiter$
|
|
29339
|
+
var __awaiter$w = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29306
29340
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29307
29341
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29308
29342
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -29318,7 +29352,7 @@ class ProxyTeamsCall extends ProxyCallCommon {
|
|
|
29318
29352
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
29319
29353
|
case 'addParticipant': {
|
|
29320
29354
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
|
29321
|
-
return __awaiter$
|
|
29355
|
+
return __awaiter$w(this, void 0, void 0, function* () {
|
|
29322
29356
|
return yield target.addParticipant(...args);
|
|
29323
29357
|
});
|
|
29324
29358
|
}, 'TeamsCall.addParticipant');
|
|
@@ -29437,7 +29471,7 @@ const teamsCallAgentDeclaratify = (callAgent, context, internalContext) => {
|
|
|
29437
29471
|
|
|
29438
29472
|
// Copyright (c) Microsoft Corporation.
|
|
29439
29473
|
// Licensed under the MIT License.
|
|
29440
|
-
var __awaiter$
|
|
29474
|
+
var __awaiter$v = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29441
29475
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29442
29476
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29443
29477
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -29459,7 +29493,7 @@ class ProxyVideoStreamRendererView {
|
|
|
29459
29493
|
get(target, prop) {
|
|
29460
29494
|
switch (prop) {
|
|
29461
29495
|
case 'updateScalingMode': {
|
|
29462
|
-
return (...args) => __awaiter$
|
|
29496
|
+
return (...args) => __awaiter$v(this, void 0, void 0, function* () {
|
|
29463
29497
|
yield target.updateScalingMode(...args);
|
|
29464
29498
|
this._context.setRemoteVideoStreamViewScalingMode(this._callId, this._participantId, this._streamId, args[0]);
|
|
29465
29499
|
});
|
|
@@ -29480,7 +29514,7 @@ const videoStreamRendererViewDeclaratify = (view, context, callId, participantId
|
|
|
29480
29514
|
|
|
29481
29515
|
// Copyright (c) Microsoft Corporation.
|
|
29482
29516
|
// Licensed under the MIT License.
|
|
29483
|
-
var __awaiter$
|
|
29517
|
+
var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29484
29518
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29485
29519
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29486
29520
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -29502,7 +29536,7 @@ class ProxyCallClient {
|
|
|
29502
29536
|
get(target, prop) {
|
|
29503
29537
|
switch (prop) {
|
|
29504
29538
|
case 'createCallAgent': {
|
|
29505
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29539
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$u(this, void 0, void 0, function* () {
|
|
29506
29540
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
|
29507
29541
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
|
29508
29542
|
// callAgent if the createCallAgent succeeds.
|
|
@@ -29515,7 +29549,7 @@ class ProxyCallClient {
|
|
|
29515
29549
|
}), 'CallClient.createCallAgent');
|
|
29516
29550
|
}
|
|
29517
29551
|
case 'createTeamsCallAgent': {
|
|
29518
|
-
/* @conditional-compile-remove(teams-identity-support) */ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29552
|
+
/* @conditional-compile-remove(teams-identity-support) */ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$u(this, void 0, void 0, function* () {
|
|
29519
29553
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
|
29520
29554
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
|
29521
29555
|
// callAgent if the createCallAgent succeeds.
|
|
@@ -29528,7 +29562,7 @@ class ProxyCallClient {
|
|
|
29528
29562
|
}), 'CallClient.createTeamsCallAgent');
|
|
29529
29563
|
}
|
|
29530
29564
|
case 'getDeviceManager': {
|
|
29531
|
-
return this._context.withAsyncErrorTeedToState(() => __awaiter$
|
|
29565
|
+
return this._context.withAsyncErrorTeedToState(() => __awaiter$u(this, void 0, void 0, function* () {
|
|
29532
29566
|
// As of writing, the SDK always returns the same instance of DeviceManager so we keep a reference of
|
|
29533
29567
|
// DeviceManager and if it does not change we return the cached DeclarativeDeviceManager. If it does not we'll
|
|
29534
29568
|
// throw an error that indicate we need to fix this issue as our implementation has diverged from the SDK.
|
|
@@ -29557,7 +29591,7 @@ class ProxyCallClient {
|
|
|
29557
29591
|
/**
|
|
29558
29592
|
* add to this object if we want to proxy anything else off the DebugInfo feature object.
|
|
29559
29593
|
*/
|
|
29560
|
-
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$
|
|
29594
|
+
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$u(this, void 0, void 0, function* () {
|
|
29561
29595
|
const environmentInfo = yield feature.getEnvironmentInfo();
|
|
29562
29596
|
this._context.setEnvironmentInfo(environmentInfo);
|
|
29563
29597
|
return environmentInfo;
|
|
@@ -29595,8 +29629,7 @@ const createStatefulCallClient = (args, options) => {
|
|
|
29595
29629
|
*/
|
|
29596
29630
|
const _createStatefulCallClientInner = (args, options, telemetryImplementationHint = 'StatefulComponents') => {
|
|
29597
29631
|
callingStatefulLogger.info(`Creating calling stateful client using library version: ${_getApplicationId(telemetryImplementationHint)}`);
|
|
29598
|
-
return createStatefulCallClientWithDeps(new communicationCalling.CallClient(withTelemetryTag(telemetryImplementationHint, options === null || options === void 0 ? void 0 : options.callClientOptions)), new CallContext$2(communicationCommon.getIdentifierKind(args.userId), options === null || options === void 0 ? void 0 : options.maxStateChangeListeners,
|
|
29599
|
-
/* @conditional-compile-remove(PSTN-calls) */ args.alternateCallerId), new InternalCallContext());
|
|
29632
|
+
return createStatefulCallClientWithDeps(new communicationCalling.CallClient(withTelemetryTag(telemetryImplementationHint, options === null || options === void 0 ? void 0 : options.callClientOptions)), new CallContext$2(communicationCommon.getIdentifierKind(args.userId), options === null || options === void 0 ? void 0 : options.maxStateChangeListeners), new InternalCallContext());
|
|
29600
29633
|
};
|
|
29601
29634
|
/**
|
|
29602
29635
|
* Package-internal version of createStatefulCallClient that allows dependency injection.
|
|
@@ -29618,7 +29651,7 @@ const createStatefulCallClientWithDeps = (callClient, context, internalContext)
|
|
|
29618
29651
|
});
|
|
29619
29652
|
Object.defineProperty(callClient, 'createView', {
|
|
29620
29653
|
configurable: false,
|
|
29621
|
-
value: (callId, participantId, stream, options) => __awaiter$
|
|
29654
|
+
value: (callId, participantId, stream, options) => __awaiter$u(void 0, void 0, void 0, function* () {
|
|
29622
29655
|
const participantIdKind = participantId ? communicationCommon.getIdentifierKind(participantId) : undefined;
|
|
29623
29656
|
const result = yield createView(context, internalContext, callId, participantIdKind, stream, options);
|
|
29624
29657
|
// We only need to declaratify the VideoStreamRendererView object for remote participants. Because the updateScalingMode only needs to be called on remote participant stream views.
|
|
@@ -30672,7 +30705,7 @@ const END_CALL_PAGES = [
|
|
|
30672
30705
|
|
|
30673
30706
|
// Copyright (c) Microsoft Corporation.
|
|
30674
30707
|
// Licensed under the MIT License.
|
|
30675
|
-
var __awaiter$
|
|
30708
|
+
var __awaiter$t = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30676
30709
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30677
30710
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
30678
30711
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -30911,7 +30944,8 @@ const getEndedCallPageProps = (locale, endedCall) => {
|
|
|
30911
30944
|
*
|
|
30912
30945
|
* @private
|
|
30913
30946
|
*/
|
|
30914
|
-
const getCallCompositePage = (call, previousCall, transferCall, unsupportedBrowserInfo) => {
|
|
30947
|
+
const getCallCompositePage = (call, previousCall, transferCall, originCall, unsupportedBrowserInfo) => {
|
|
30948
|
+
var _a;
|
|
30915
30949
|
/* @conditional-compile-remove(unsupported-browser) */
|
|
30916
30950
|
if (isUnsupportedEnvironment(unsupportedBrowserInfo === null || unsupportedBrowserInfo === void 0 ? void 0 : unsupportedBrowserInfo.environmentInfo, unsupportedBrowserInfo === null || unsupportedBrowserInfo === void 0 ? void 0 : unsupportedBrowserInfo.unsupportedBrowserVersionOptedIn)) {
|
|
30917
30951
|
return 'unsupportedEnvironment';
|
|
@@ -30947,6 +30981,10 @@ const getCallCompositePage = (call, previousCall, transferCall, unsupportedBrows
|
|
|
30947
30981
|
return 'configuration';
|
|
30948
30982
|
}
|
|
30949
30983
|
}
|
|
30984
|
+
// /* @conditional-compile-remove(breakout-rooms) */
|
|
30985
|
+
if (((_a = previousCall === null || previousCall === void 0 ? void 0 : previousCall.breakoutRooms) === null || _a === void 0 ? void 0 : _a.breakoutRoomOriginCallId) && originCall) {
|
|
30986
|
+
return 'call';
|
|
30987
|
+
}
|
|
30950
30988
|
if (previousCall) {
|
|
30951
30989
|
const reason = getCallEndReason(previousCall);
|
|
30952
30990
|
switch (reason) {
|
|
@@ -31034,7 +31072,7 @@ const isDisabled$4 = (option) => {
|
|
|
31034
31072
|
/**
|
|
31035
31073
|
* @returns Permissions state for the camera.
|
|
31036
31074
|
*/
|
|
31037
|
-
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$
|
|
31075
|
+
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$t(void 0, void 0, void 0, function* () {
|
|
31038
31076
|
try {
|
|
31039
31077
|
return (yield navigator.permissions.query({ name: 'camera' })).state;
|
|
31040
31078
|
}
|
|
@@ -31047,7 +31085,7 @@ const queryCameraPermissionFromPermissionsAPI = () => __awaiter$r(void 0, void 0
|
|
|
31047
31085
|
/**
|
|
31048
31086
|
* @returns Permissions state for the microphone.
|
|
31049
31087
|
*/
|
|
31050
|
-
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$
|
|
31088
|
+
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$t(void 0, void 0, void 0, function* () {
|
|
31051
31089
|
try {
|
|
31052
31090
|
return (yield navigator.permissions.query({ name: 'microphone' })).state;
|
|
31053
31091
|
}
|
|
@@ -31064,7 +31102,7 @@ const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$r(void 0, vo
|
|
|
31064
31102
|
* If permission API is not supported on this browser, permission state is set to unsupported.
|
|
31065
31103
|
* @private
|
|
31066
31104
|
*/
|
|
31067
|
-
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$
|
|
31105
|
+
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$t(void 0, void 0, void 0, function* () {
|
|
31068
31106
|
const [cameraResult, microphoneResult] = yield Promise.all([
|
|
31069
31107
|
queryCameraPermissionFromPermissionsAPI(),
|
|
31070
31108
|
queryMicrophonePermissionFromPermissionsAPI()
|
|
@@ -31251,7 +31289,7 @@ function computeComplianceNotification(complianceProps, cachedProps) {
|
|
|
31251
31289
|
|
|
31252
31290
|
// Copyright (c) Microsoft Corporation.
|
|
31253
31291
|
// Licensed under the MIT License.
|
|
31254
|
-
var __awaiter$
|
|
31292
|
+
var __awaiter$s = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31255
31293
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31256
31294
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31257
31295
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -31274,22 +31312,22 @@ _component) => {
|
|
|
31274
31312
|
};
|
|
31275
31313
|
const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
31276
31314
|
return {
|
|
31277
|
-
onCreateLocalStreamView: (options) => __awaiter$
|
|
31315
|
+
onCreateLocalStreamView: (options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31278
31316
|
return yield adapter.createStreamView(undefined, options);
|
|
31279
31317
|
}),
|
|
31280
|
-
onCreateRemoteStreamView: (userId, options) => __awaiter$
|
|
31318
|
+
onCreateRemoteStreamView: (userId, options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31281
31319
|
return yield adapter.createStreamView(userId, options);
|
|
31282
31320
|
}),
|
|
31283
|
-
onHangUp: (forEveryone) => __awaiter$
|
|
31321
|
+
onHangUp: (forEveryone) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31284
31322
|
yield adapter.leaveCall(forEveryone);
|
|
31285
31323
|
}),
|
|
31286
31324
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
31287
|
-
onToggleHold: () => __awaiter$
|
|
31325
|
+
onToggleHold: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31288
31326
|
var _a;
|
|
31289
31327
|
return ((_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold' ? yield adapter.resumeCall() : yield adapter.holdCall();
|
|
31290
31328
|
}),
|
|
31291
31329
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
31292
|
-
onAddParticipant: (participant, options) => __awaiter$
|
|
31330
|
+
onAddParticipant: (participant, options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31293
31331
|
if ('communicationUserId' in participant) {
|
|
31294
31332
|
return yield adapter.addParticipant(participant);
|
|
31295
31333
|
}
|
|
@@ -31297,10 +31335,10 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
|
31297
31335
|
return yield adapter.addParticipant(participant, options);
|
|
31298
31336
|
}
|
|
31299
31337
|
}),
|
|
31300
|
-
onSendDtmfTone: (dtmfTone) => __awaiter$
|
|
31338
|
+
onSendDtmfTone: (dtmfTone) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31301
31339
|
yield adapter.sendDtmfTone(dtmfTone);
|
|
31302
31340
|
}),
|
|
31303
|
-
onRemoveParticipant: (userId) => __awaiter$
|
|
31341
|
+
onRemoveParticipant: (userId) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31304
31342
|
if (typeof userId === 'string') {
|
|
31305
31343
|
yield adapter.removeParticipant(userId);
|
|
31306
31344
|
}
|
|
@@ -31309,136 +31347,144 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
|
31309
31347
|
yield adapter.removeParticipant(_toCommunicationIdentifier(userId));
|
|
31310
31348
|
}
|
|
31311
31349
|
}),
|
|
31312
|
-
onRaiseHand: () => __awaiter$
|
|
31350
|
+
onRaiseHand: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31313
31351
|
yield adapter.raiseHand();
|
|
31314
31352
|
}),
|
|
31315
|
-
onLowerHand: () => __awaiter$
|
|
31353
|
+
onLowerHand: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31316
31354
|
yield adapter.lowerHand();
|
|
31317
31355
|
}),
|
|
31318
|
-
onToggleRaiseHand: () => __awaiter$
|
|
31356
|
+
onToggleRaiseHand: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31319
31357
|
var _b;
|
|
31320
31358
|
((_b = adapter.getState().call) === null || _b === void 0 ? void 0 : _b.raiseHand.localParticipantRaisedHand)
|
|
31321
31359
|
? yield adapter.lowerHand()
|
|
31322
31360
|
: yield adapter.raiseHand();
|
|
31323
31361
|
}),
|
|
31324
|
-
onReactionClick: (reaction) => __awaiter$
|
|
31362
|
+
onReactionClick: (reaction) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31325
31363
|
yield adapter.onReactionClick(reaction);
|
|
31326
31364
|
}),
|
|
31327
|
-
onSelectCamera: (deviceInfo, options) => __awaiter$
|
|
31365
|
+
onSelectCamera: (deviceInfo, options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31328
31366
|
yield adapter.setCamera(deviceInfo, options);
|
|
31329
31367
|
}),
|
|
31330
|
-
onSelectMicrophone: (deviceInfo) => __awaiter$
|
|
31368
|
+
onSelectMicrophone: (deviceInfo) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31331
31369
|
yield adapter.setMicrophone(deviceInfo);
|
|
31332
31370
|
}),
|
|
31333
|
-
onSelectSpeaker: (deviceInfo) => __awaiter$
|
|
31371
|
+
onSelectSpeaker: (deviceInfo) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31334
31372
|
yield adapter.setSpeaker(deviceInfo);
|
|
31335
31373
|
}),
|
|
31336
31374
|
onStartCall: (participants, options) => {
|
|
31337
31375
|
const rawIds = participants.map((participant) => toFlatCommunicationIdentifier(participant));
|
|
31338
31376
|
return adapter.startCall(rawIds, options);
|
|
31339
31377
|
},
|
|
31340
|
-
onStartScreenShare: () => __awaiter$
|
|
31378
|
+
onStartScreenShare: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31341
31379
|
yield adapter.startScreenShare();
|
|
31342
31380
|
}),
|
|
31343
|
-
onStopScreenShare: () => __awaiter$
|
|
31381
|
+
onStopScreenShare: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31344
31382
|
yield adapter.stopScreenShare();
|
|
31345
31383
|
}),
|
|
31346
|
-
onToggleCamera: (options) => __awaiter$
|
|
31384
|
+
onToggleCamera: (options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31347
31385
|
isCameraOn(adapter.getState()) ? yield adapter.stopCamera() : yield adapter.startCamera(options);
|
|
31348
31386
|
}),
|
|
31349
|
-
onToggleMicrophone: () => __awaiter$
|
|
31387
|
+
onToggleMicrophone: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31350
31388
|
var _c;
|
|
31351
31389
|
return ((_c = adapter.getState().call) === null || _c === void 0 ? void 0 : _c.isMuted) ? yield adapter.unmute() : yield adapter.mute();
|
|
31352
31390
|
}),
|
|
31353
|
-
onToggleScreenShare: () => __awaiter$
|
|
31391
|
+
onToggleScreenShare: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31354
31392
|
var _d;
|
|
31355
31393
|
return ((_d = adapter.getState().call) === null || _d === void 0 ? void 0 : _d.isScreenSharingOn)
|
|
31356
31394
|
? yield adapter.stopScreenShare()
|
|
31357
31395
|
: yield adapter.startScreenShare();
|
|
31358
31396
|
}),
|
|
31359
|
-
onStartLocalVideo: () => __awaiter$
|
|
31397
|
+
onStartLocalVideo: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31360
31398
|
if (adapter.getState().call) {
|
|
31361
31399
|
return adapter.startCamera();
|
|
31362
31400
|
}
|
|
31363
31401
|
}),
|
|
31364
|
-
onDisposeLocalStreamView: () => __awaiter$
|
|
31402
|
+
onDisposeLocalStreamView: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31365
31403
|
return adapter.disposeLocalVideoStreamView();
|
|
31366
31404
|
}),
|
|
31367
|
-
onDisposeRemoteStreamView: (userId) => __awaiter$
|
|
31405
|
+
onDisposeRemoteStreamView: (userId) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31368
31406
|
return adapter.disposeStreamView(userId);
|
|
31369
31407
|
}),
|
|
31370
|
-
onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$
|
|
31408
|
+
onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31371
31409
|
return adapter.disposeScreenShareStreamView(userId);
|
|
31372
31410
|
}),
|
|
31373
|
-
onDisposeLocalScreenShareStreamView: () => __awaiter$
|
|
31411
|
+
onDisposeLocalScreenShareStreamView: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31374
31412
|
return adapter.disposeScreenShareStreamView('');
|
|
31375
31413
|
}),
|
|
31376
|
-
onDisposeRemoteVideoStreamView: (userId) => __awaiter$
|
|
31414
|
+
onDisposeRemoteVideoStreamView: (userId) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31377
31415
|
return adapter.disposeRemoteVideoStreamView(userId);
|
|
31378
31416
|
}),
|
|
31379
31417
|
/* @conditional-compile-remove(call-readiness) */
|
|
31380
|
-
askDevicePermission: (constrain) => __awaiter$
|
|
31418
|
+
askDevicePermission: (constrain) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31381
31419
|
return adapter.askDevicePermission(constrain);
|
|
31382
31420
|
}),
|
|
31383
|
-
onRemoveVideoBackgroundEffects: () => __awaiter$
|
|
31421
|
+
onRemoveVideoBackgroundEffects: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31384
31422
|
return yield adapter.stopVideoBackgroundEffects();
|
|
31385
31423
|
}),
|
|
31386
|
-
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$
|
|
31424
|
+
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31387
31425
|
const blurConfig = Object.assign({ effectName: 'blur' }, backgroundBlurConfig);
|
|
31388
31426
|
return yield adapter.startVideoBackgroundEffect(blurConfig);
|
|
31389
31427
|
}),
|
|
31390
|
-
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$
|
|
31428
|
+
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31391
31429
|
const replacementConfig = Object.assign({ effectName: 'replacement' }, backgroundReplacementConfig);
|
|
31392
31430
|
return yield adapter.startVideoBackgroundEffect(replacementConfig);
|
|
31393
31431
|
}),
|
|
31394
|
-
|
|
31432
|
+
/* @conditional-compile-remove(DNS) */
|
|
31433
|
+
onStartNoiseSuppressionEffect: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31434
|
+
return yield adapter.startNoiseSuppressionEffect();
|
|
31435
|
+
}),
|
|
31436
|
+
/* @conditional-compile-remove(DNS) */
|
|
31437
|
+
onStopNoiseSuppressionEffect: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31438
|
+
return yield adapter.stopNoiseSuppressionEffect();
|
|
31439
|
+
}),
|
|
31440
|
+
onStartCaptions: (options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31395
31441
|
yield adapter.startCaptions(options);
|
|
31396
31442
|
}),
|
|
31397
|
-
onStopCaptions: () => __awaiter$
|
|
31443
|
+
onStopCaptions: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31398
31444
|
yield adapter.stopCaptions();
|
|
31399
31445
|
}),
|
|
31400
|
-
onSetSpokenLanguage: (language) => __awaiter$
|
|
31446
|
+
onSetSpokenLanguage: (language) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31401
31447
|
yield adapter.setSpokenLanguage(language);
|
|
31402
31448
|
}),
|
|
31403
|
-
onSetCaptionLanguage: (language) => __awaiter$
|
|
31449
|
+
onSetCaptionLanguage: (language) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31404
31450
|
yield adapter.setCaptionLanguage(language);
|
|
31405
31451
|
}),
|
|
31406
|
-
onSubmitSurvey: (survey) => __awaiter$
|
|
31452
|
+
onSubmitSurvey: (survey) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31407
31453
|
return yield adapter.submitSurvey(survey);
|
|
31408
31454
|
}),
|
|
31409
|
-
onStartSpotlight: (userIds) => __awaiter$
|
|
31455
|
+
onStartSpotlight: (userIds) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31410
31456
|
yield adapter.startSpotlight(userIds);
|
|
31411
31457
|
}),
|
|
31412
|
-
onStopSpotlight: (userIds) => __awaiter$
|
|
31458
|
+
onStopSpotlight: (userIds) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31413
31459
|
yield adapter.stopSpotlight(userIds);
|
|
31414
31460
|
}),
|
|
31415
|
-
onStopAllSpotlight: () => __awaiter$
|
|
31461
|
+
onStopAllSpotlight: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31416
31462
|
yield adapter.stopAllSpotlight();
|
|
31417
31463
|
}),
|
|
31418
31464
|
onStartLocalSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.spotlightParticipant.isPresent)
|
|
31419
|
-
? () => __awaiter$
|
|
31465
|
+
? () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31420
31466
|
yield adapter.startSpotlight();
|
|
31421
31467
|
})
|
|
31422
31468
|
: undefined,
|
|
31423
|
-
onStopLocalSpotlight: () => __awaiter$
|
|
31469
|
+
onStopLocalSpotlight: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31424
31470
|
yield adapter.stopSpotlight();
|
|
31425
31471
|
}),
|
|
31426
31472
|
onStartRemoteSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.spotlightParticipant.isPresent)
|
|
31427
|
-
? (userIds) => __awaiter$
|
|
31473
|
+
? (userIds) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31428
31474
|
yield adapter.startSpotlight(userIds);
|
|
31429
31475
|
})
|
|
31430
31476
|
: undefined,
|
|
31431
31477
|
onStopRemoteSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.removeParticipantsSpotlight.isPresent)
|
|
31432
|
-
? (userIds) => __awaiter$
|
|
31478
|
+
? (userIds) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31433
31479
|
yield adapter.stopSpotlight(userIds);
|
|
31434
31480
|
})
|
|
31435
31481
|
: undefined,
|
|
31436
31482
|
/* @conditional-compile-remove(soft-mute) */
|
|
31437
|
-
onMuteParticipant: (userId) => __awaiter$
|
|
31483
|
+
onMuteParticipant: (userId) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31438
31484
|
yield adapter.muteParticipant(userId);
|
|
31439
31485
|
}),
|
|
31440
31486
|
/* @conditional-compile-remove(soft-mute) */
|
|
31441
|
-
onMuteAllRemoteParticipants: () => __awaiter$
|
|
31487
|
+
onMuteAllRemoteParticipants: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31442
31488
|
yield adapter.muteAllRemoteParticipants();
|
|
31443
31489
|
})
|
|
31444
31490
|
};
|
|
@@ -31576,7 +31622,7 @@ const MoreButton = (props) => {
|
|
|
31576
31622
|
|
|
31577
31623
|
// Copyright (c) Microsoft Corporation.
|
|
31578
31624
|
// Licensed under the MIT License.
|
|
31579
|
-
var __awaiter$
|
|
31625
|
+
var __awaiter$r = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31580
31626
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31581
31627
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31582
31628
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -31598,7 +31644,7 @@ const CaptionsBannerMoreButton = (props) => {
|
|
|
31598
31644
|
tooltipOffContent: localeStrings.strings.call.captionsBannerMoreButtonTooltip
|
|
31599
31645
|
}), [localeStrings]);
|
|
31600
31646
|
const moreButtonContextualMenuItems = [];
|
|
31601
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
|
31647
|
+
const startCaptions = React.useCallback(() => __awaiter$r(void 0, void 0, void 0, function* () {
|
|
31602
31648
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
|
31603
31649
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
|
31604
31650
|
});
|
|
@@ -31807,7 +31853,7 @@ const buttonTextStyles = { label: { fontSize: '0.875rem' } };
|
|
|
31807
31853
|
|
|
31808
31854
|
// Copyright (c) Microsoft Corporation.
|
|
31809
31855
|
// Licensed under the MIT License.
|
|
31810
|
-
var __awaiter$
|
|
31856
|
+
var __awaiter$q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31811
31857
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31812
31858
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31813
31859
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -31859,7 +31905,7 @@ const EndCall = (props) => {
|
|
|
31859
31905
|
toggleConfirm();
|
|
31860
31906
|
}, [onHangUp, toggleConfirm]);
|
|
31861
31907
|
/* @conditional-compile-remove(end-call-options) */
|
|
31862
|
-
const hangUpOverride = React.useCallback((forEveryone) => __awaiter$
|
|
31908
|
+
const hangUpOverride = React.useCallback((forEveryone) => __awaiter$q(void 0, void 0, void 0, function* () {
|
|
31863
31909
|
if (props.mobileView ||
|
|
31864
31910
|
forEveryone === false /* value being false(not undefined) because it comes from endCall option */) {
|
|
31865
31911
|
onHangUp();
|
|
@@ -32057,6 +32103,11 @@ const getBreakoutRoomSettings = (state) => { var _a, _b; return (_b = (_a = stat
|
|
|
32057
32103
|
* @private
|
|
32058
32104
|
*/
|
|
32059
32105
|
const getBreakoutRoomDisplayName = (state) => { var _a, _b; return (_b = (_a = state.call) === null || _a === void 0 ? void 0 : _a.breakoutRooms) === null || _b === void 0 ? void 0 : _b.breakoutRoomDisplayName; };
|
|
32106
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
32107
|
+
/**
|
|
32108
|
+
* @private
|
|
32109
|
+
*/
|
|
32110
|
+
const getLatestNotifications = (state) => state.latestNotifications;
|
|
32060
32111
|
|
|
32061
32112
|
// Copyright (c) Microsoft Corporation.
|
|
32062
32113
|
// Licensed under the MIT License.
|
|
@@ -32815,7 +32866,7 @@ const showDtmfDialer = (callees, remoteParticipants) => {
|
|
|
32815
32866
|
|
|
32816
32867
|
// Copyright (c) Microsoft Corporation.
|
|
32817
32868
|
// Licensed under the MIT License.
|
|
32818
|
-
var __awaiter$
|
|
32869
|
+
var __awaiter$p = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32819
32870
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32820
32871
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32821
32872
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -32835,7 +32886,7 @@ const DesktopMoreButton = (props) => {
|
|
|
32835
32886
|
const holdButtonProps = usePropsFor$1(HoldButton);
|
|
32836
32887
|
const startCaptionsButtonProps = useAdaptedSelector(_startCaptionsButtonSelector);
|
|
32837
32888
|
const startCaptionsButtonHandlers = useHandlers();
|
|
32838
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
|
32889
|
+
const startCaptions = React.useCallback(() => __awaiter$p(void 0, void 0, void 0, function* () {
|
|
32839
32890
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
|
32840
32891
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
|
32841
32892
|
});
|
|
@@ -33322,7 +33373,7 @@ const modalLayerHostStyle = {
|
|
|
33322
33373
|
|
|
33323
33374
|
// Copyright (c) Microsoft Corporation.
|
|
33324
33375
|
// Licensed under the MIT License.
|
|
33325
|
-
var __awaiter$
|
|
33376
|
+
var __awaiter$o = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33326
33377
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33327
33378
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33328
33379
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -33367,7 +33418,7 @@ const useMinMaxDragPosition = (modalLayerHostId, rtl) => {
|
|
|
33367
33418
|
/**
|
|
33368
33419
|
* @private
|
|
33369
33420
|
*/
|
|
33370
|
-
const busyWait = (checkCondition, retryLimit) => __awaiter$
|
|
33421
|
+
const busyWait = (checkCondition, retryLimit) => __awaiter$o(void 0, void 0, void 0, function* () {
|
|
33371
33422
|
const delayMs = 500;
|
|
33372
33423
|
let retryCount = 0;
|
|
33373
33424
|
while (!checkCondition()) {
|
|
@@ -33456,7 +33507,7 @@ const timerTextStyle = {
|
|
|
33456
33507
|
|
|
33457
33508
|
// Copyright (c) Microsoft Corporation.
|
|
33458
33509
|
// Licensed under the MIT License.
|
|
33459
|
-
var __awaiter$
|
|
33510
|
+
var __awaiter$n = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33460
33511
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33461
33512
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33462
33513
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -33504,7 +33555,12 @@ const CommonCallControlBar = (props) => {
|
|
|
33504
33555
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
33505
33556
|
const assignedBreakoutRoom = useSelector$1(getAssignedBreakoutRoom);
|
|
33506
33557
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
33558
|
+
const latestNotifications = useSelector$1(getLatestNotifications);
|
|
33559
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
33507
33560
|
const breakoutRoomSettings = useSelector$1(getBreakoutRoomSettings);
|
|
33561
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
33562
|
+
const movingToBreakoutRoomAutomatically = (assignedBreakoutRoom === null || assignedBreakoutRoom === void 0 ? void 0 : assignedBreakoutRoom.autoMoveParticipantToBreakoutRoom) &&
|
|
33563
|
+
(latestNotifications['assignedBreakoutRoomOpened'] || latestNotifications['assignedBreakoutRoomChanged']);
|
|
33508
33564
|
const handleResize = React.useCallback(() => {
|
|
33509
33565
|
setControlBarButtonsWidth(controlBarContainerRef.current ? controlBarContainerRef.current.offsetWidth : 0);
|
|
33510
33566
|
setPanelsButtonsWidth(sidepaneControlsRef.current ? sidepaneControlsRef.current.offsetWidth : 0);
|
|
@@ -33623,7 +33679,10 @@ const CommonCallControlBar = (props) => {
|
|
|
33623
33679
|
React.createElement("div", { ref: controlBarContainerRef },
|
|
33624
33680
|
React.createElement(ControlBar, { layout: props.displayVertical ? 'vertical' : 'horizontal', styles: centerContainerStyles },
|
|
33625
33681
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
33626
|
-
|
|
33682
|
+
!props.mobileView &&
|
|
33683
|
+
assignedBreakoutRoom &&
|
|
33684
|
+
assignedBreakoutRoom.state === 'open' &&
|
|
33685
|
+
!movingToBreakoutRoomAutomatically && (React.createElement(react.PrimaryButton, { text: callStrings.joinBreakoutRoomButtonLabel, onClick: () => __awaiter$n(void 0, void 0, void 0, function* () {
|
|
33627
33686
|
assignedBreakoutRoom.join();
|
|
33628
33687
|
}), styles: commonButtonStyles })),
|
|
33629
33688
|
microphoneButtonIsEnabled && (React.createElement(Microphone, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
|
|
@@ -33912,7 +33971,7 @@ const SpokenLanguageSettingsDrawer = (props) => {
|
|
|
33912
33971
|
|
|
33913
33972
|
// Copyright (c) Microsoft Corporation.
|
|
33914
33973
|
// Licensed under the MIT License.
|
|
33915
|
-
var __awaiter$
|
|
33974
|
+
var __awaiter$m = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33916
33975
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33917
33976
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33918
33977
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -33958,7 +34017,7 @@ const MoreDrawer = (props) => {
|
|
|
33958
34017
|
if (props.reactionResources !== undefined) {
|
|
33959
34018
|
drawerMenuItems.push({
|
|
33960
34019
|
itemKey: 'reactions',
|
|
33961
|
-
onRendererContent: () => (React.createElement(_ReactionDrawerMenuItem, { onReactionClick: (reaction) => __awaiter$
|
|
34020
|
+
onRendererContent: () => (React.createElement(_ReactionDrawerMenuItem, { onReactionClick: (reaction) => __awaiter$m(void 0, void 0, void 0, function* () {
|
|
33962
34021
|
var _h;
|
|
33963
34022
|
(_h = props.onReactionClick) === null || _h === void 0 ? void 0 : _h.call(props, reaction);
|
|
33964
34023
|
onLightDismiss();
|
|
@@ -34179,7 +34238,7 @@ const MoreDrawer = (props) => {
|
|
|
34179
34238
|
const [isCaptionLanguageDrawerOpen, setIsCaptionLanguageDrawerOpen] = React.useState(false);
|
|
34180
34239
|
const [currentSpokenLanguage, setCurrentSpokenLanguage] = React.useState((_f = captionSettingsProp.currentSpokenLanguage) !== null && _f !== void 0 ? _f : 'en-us');
|
|
34181
34240
|
const [currentCaptionLanguage, setCurrentCaptionLanguage] = React.useState((_g = captionSettingsProp.currentCaptionLanguage) !== null && _g !== void 0 ? _g : _spokenLanguageToCaptionLanguage[currentSpokenLanguage]);
|
|
34182
|
-
const onToggleChange = React.useCallback(() => __awaiter$
|
|
34241
|
+
const onToggleChange = React.useCallback(() => __awaiter$m(void 0, void 0, void 0, function* () {
|
|
34183
34242
|
if (!captionSettingsProp.isCaptionsFeatureActive) {
|
|
34184
34243
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
|
34185
34244
|
spokenLanguage: currentSpokenLanguage
|
|
@@ -34871,6 +34930,7 @@ const iconClass = react.mergeStyles({
|
|
|
34871
34930
|
// Licensed under the MIT License.
|
|
34872
34931
|
/** @private */
|
|
34873
34932
|
const AddPeopleDropdown = (props) => {
|
|
34933
|
+
var _a, _b;
|
|
34874
34934
|
const theme = react.useTheme();
|
|
34875
34935
|
const { inviteLink, strings, mobileView, onAddParticipant, alternateCallerId, onCopyInviteLink, inviteLinkCopiedRecently } = props;
|
|
34876
34936
|
const [showDialpad, setShowDialpad] = React.useState(false);
|
|
@@ -34941,7 +35001,7 @@ const AddPeopleDropdown = (props) => {
|
|
|
34941
35001
|
React.createElement(Announcer$1, { ariaLive: 'assertive', announcementString: announcerStrings }),
|
|
34942
35002
|
defaultMenuProps.items.length > 0 && (React.createElement(react.Stack.Item, { styles: copyLinkButtonContainerStyles },
|
|
34943
35003
|
React.createElement(react.PrimaryButton, { id: calloutButtonId, onClick: setDrawerMenuItemsForAddPeople, styles: copyLinkButtonStylesThemed, onRenderIcon: () => PeoplePaneAddPersonIconTrampoline(), text: strings.peoplePaneAddPeopleButtonLabel, "data-ui-id": "call-add-people-button" }),
|
|
34944
|
-
inviteLinkCopiedRecently && (React.createElement(CalloutWithIcon, { targetId: calloutButtonId, text: strings.copyInviteLinkButtonActionedLabel, doNotLayer: true })))),
|
|
35004
|
+
inviteLinkCopiedRecently && (React.createElement(CalloutWithIcon, { targetId: calloutButtonId, text: (_a = strings.copyInviteLinkButtonActionedLabel) !== null && _a !== void 0 ? _a : '', doNotLayer: true })))),
|
|
34945
35005
|
addPeopleDrawerMenuItems.length > 0 && (React.createElement(react.Stack, { styles: drawerContainerStyles(), "data-ui-id": "call-add-people-dropdown" },
|
|
34946
35006
|
React.createElement(_DrawerMenu, { disableMaxHeight: true, onLightDismiss: () => setAddPeopleDrawerMenuItems([]), items: addPeopleDrawerMenuItems }))),
|
|
34947
35007
|
alternateCallerId && (React.createElement(CallingDialpad, { isMobile: true, strings: strings, showDialpad: showDialpad, onDismissDialpad: onDismissDialpad, onAddParticipant: onAddParticipant, alternateCallerId: alternateCallerId }))));
|
|
@@ -34951,7 +35011,7 @@ const AddPeopleDropdown = (props) => {
|
|
|
34951
35011
|
alternateCallerId && (React.createElement(CallingDialpad, { isMobile: false, strings: strings, showDialpad: showDialpad, onDismissDialpad: onDismissDialpad, onAddParticipant: onAddParticipant, alternateCallerId: alternateCallerId })),
|
|
34952
35012
|
defaultMenuProps.items.length > 0 && (React.createElement(react.Stack, { styles: copyLinkButtonStackStyles },
|
|
34953
35013
|
React.createElement(react.DefaultButton, { id: calloutButtonId, onRenderIcon: () => PeoplePaneAddPersonIconTrampoline(), text: strings.peoplePaneAddPeopleButtonLabel, menuProps: defaultMenuProps, styles: copyLinkButtonStylesThemed, "data-ui-id": "call-add-people-button" }),
|
|
34954
|
-
inviteLinkCopiedRecently && (React.createElement(CalloutWithIcon, { targetId: calloutButtonId, text: strings.copyInviteLinkButtonActionedLabel })))))));
|
|
35014
|
+
inviteLinkCopiedRecently && (React.createElement(CalloutWithIcon, { targetId: calloutButtonId, text: (_b = strings.copyInviteLinkButtonActionedLabel) !== null && _b !== void 0 ? _b : '' })))))));
|
|
34955
35015
|
};
|
|
34956
35016
|
function PeoplePaneOpenDialpadIconNameTrampoline() {
|
|
34957
35017
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
@@ -34997,7 +35057,7 @@ const AddPeopleButton = (props) => {
|
|
|
34997
35057
|
reactHooks.useId('callout-button');
|
|
34998
35058
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
34999
35059
|
if (mobileView) {
|
|
35000
|
-
return (React.createElement(AddPeopleDropdown, { strings: strings, mobileView: mobileView, inviteLink: inviteLink, onAddParticipant: props.onAddParticipant, alternateCallerId: props.alternateCallerId, onCopyInviteLink: onCopyInviteLink, inviteLinkCopiedRecently: inviteLinkCopiedRecently }));
|
|
35060
|
+
return (React.createElement(AddPeopleDropdown, { strings: Object.assign({}, strings), mobileView: mobileView, inviteLink: inviteLink, onAddParticipant: props.onAddParticipant, alternateCallerId: props.alternateCallerId, onCopyInviteLink: onCopyInviteLink, inviteLinkCopiedRecently: inviteLinkCopiedRecently }));
|
|
35001
35061
|
}
|
|
35002
35062
|
else {
|
|
35003
35063
|
return (React.createElement(react.Stack, { tokens: peoplePaneContainerTokens, "data-ui-id": "people-pane-content", verticalFill: true },
|
|
@@ -35008,7 +35068,7 @@ const AddPeopleButton = (props) => {
|
|
|
35008
35068
|
|
|
35009
35069
|
// Copyright (c) Microsoft Corporation.
|
|
35010
35070
|
// Licensed under the MIT License.
|
|
35011
|
-
var __awaiter$
|
|
35071
|
+
var __awaiter$l = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35012
35072
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35013
35073
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
35014
35074
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -35030,11 +35090,11 @@ const PeoplePaneContent = (props) => {
|
|
|
35030
35090
|
return localeStrings.strings.call;
|
|
35031
35091
|
};
|
|
35032
35092
|
const strings = getStrings();
|
|
35033
|
-
const removeParticipantFromCall = React.useCallback((participantId) => __awaiter$
|
|
35093
|
+
const removeParticipantFromCall = React.useCallback((participantId) => __awaiter$l(void 0, void 0, void 0, function* () {
|
|
35034
35094
|
yield adapter.removeParticipant(participantId);
|
|
35035
35095
|
}), [adapter]);
|
|
35036
35096
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
35037
|
-
const addParticipantToCall = React.useCallback((participant, options) => __awaiter$
|
|
35097
|
+
const addParticipantToCall = React.useCallback((participant, options) => __awaiter$l(void 0, void 0, void 0, function* () {
|
|
35038
35098
|
yield adapter.addParticipant(participant, options);
|
|
35039
35099
|
}), [adapter]);
|
|
35040
35100
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
@@ -35067,7 +35127,7 @@ const PeoplePaneContent = (props) => {
|
|
|
35067
35127
|
return drawerMenuItems && drawerMenuItems.length > 0 ? () => setDrawerMenuItems(drawerMenuItems) : undefined;
|
|
35068
35128
|
}, [participantListHeadingMoreButtonProps === null || participantListHeadingMoreButtonProps === void 0 ? void 0 : participantListHeadingMoreButtonProps.items, setDrawerMenuItems]);
|
|
35069
35129
|
const participantListProps = React.useMemo(() => {
|
|
35070
|
-
const onRemoveAParticipant = (participantId) => __awaiter$
|
|
35130
|
+
const onRemoveAParticipant = (participantId) => __awaiter$l(void 0, void 0, void 0, function* () { return removeParticipantFromCall(participantId); });
|
|
35071
35131
|
return Object.assign(Object.assign({}, participantListDefaultProps), {
|
|
35072
35132
|
// Passing undefined callback for mobile to avoid context menus for participants in ParticipantList are clicked
|
|
35073
35133
|
onRemoveParticipant: props.mobileView ? undefined : onRemoveAParticipant,
|
|
@@ -35637,7 +35697,7 @@ const localVideoSelector = reselect__namespace.createSelector([callStatusSelecto
|
|
|
35637
35697
|
|
|
35638
35698
|
// Copyright (c) Microsoft Corporation.
|
|
35639
35699
|
// Licensed under the MIT License.
|
|
35640
|
-
var __awaiter$
|
|
35700
|
+
var __awaiter$k = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35641
35701
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35642
35702
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
35643
35703
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -35698,7 +35758,7 @@ const VideoEffectsPaneContent = (props) => {
|
|
|
35698
35758
|
}
|
|
35699
35759
|
return videoEffects;
|
|
35700
35760
|
}, [strings, adapter]);
|
|
35701
|
-
const onEffectChange = React.useCallback((effectKey) => __awaiter$
|
|
35761
|
+
const onEffectChange = React.useCallback((effectKey) => __awaiter$k(void 0, void 0, void 0, function* () {
|
|
35702
35762
|
if (effectKey === 'blur') {
|
|
35703
35763
|
const blurEffect = {
|
|
35704
35764
|
effectName: effectKey
|
|
@@ -36158,7 +36218,7 @@ const messageBarStyles = {
|
|
|
36158
36218
|
|
|
36159
36219
|
// Copyright (c) Microsoft Corporation.
|
|
36160
36220
|
// Licensed under the MIT License.
|
|
36161
|
-
var __awaiter$
|
|
36221
|
+
var __awaiter$j = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36162
36222
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36163
36223
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36164
36224
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -36190,7 +36250,7 @@ const useLocalSpotlightCallbacksWithPrompt = (onStartLocalSpotlight, onStopLocal
|
|
|
36190
36250
|
}, [onStartLocalSpotlight, onStopLocalSpotlight, setIsPromptOpen, setPromptProps, strings]);
|
|
36191
36251
|
};
|
|
36192
36252
|
const getStartLocalSpotlightWithPromptCallback = (onStartSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
|
36193
|
-
return () => __awaiter$
|
|
36253
|
+
return () => __awaiter$j(void 0, void 0, void 0, function* () {
|
|
36194
36254
|
setPromptProps({
|
|
36195
36255
|
heading: strings.spotlightPrompt.startSpotlightHeading,
|
|
36196
36256
|
text: strings.spotlightPrompt.startSpotlightOnSelfText,
|
|
@@ -36206,7 +36266,7 @@ const getStartLocalSpotlightWithPromptCallback = (onStartSpotlight, setIsPromptO
|
|
|
36206
36266
|
});
|
|
36207
36267
|
};
|
|
36208
36268
|
const getStopLocalSpotlightWithPromptCallback = (onStopSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
|
36209
|
-
return () => __awaiter$
|
|
36269
|
+
return () => __awaiter$j(void 0, void 0, void 0, function* () {
|
|
36210
36270
|
setPromptProps({
|
|
36211
36271
|
heading: strings.spotlightPrompt.stopSpotlightOnSelfHeading,
|
|
36212
36272
|
text: strings.spotlightPrompt.stopSpotlightOnSelfText,
|
|
@@ -36244,7 +36304,7 @@ const useRemoteSpotlightCallbacksWithPrompt = (onStartRemoteSpotlight, onStopRem
|
|
|
36244
36304
|
}, [onStartRemoteSpotlight, onStopRemoteSpotlight, setIsPromptOpen, setPromptProps, strings]);
|
|
36245
36305
|
};
|
|
36246
36306
|
const getStartRemoteSpotlightWithPromptCallback = (onStartSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
|
36247
|
-
return (userIds) => __awaiter$
|
|
36307
|
+
return (userIds) => __awaiter$j(void 0, void 0, void 0, function* () {
|
|
36248
36308
|
if (userIds.length > 1) {
|
|
36249
36309
|
onStartSpotlight(userIds);
|
|
36250
36310
|
}
|
|
@@ -36263,7 +36323,7 @@ const getStartRemoteSpotlightWithPromptCallback = (onStartSpotlight, setIsPrompt
|
|
|
36263
36323
|
});
|
|
36264
36324
|
};
|
|
36265
36325
|
const getStopRemoteSpotlightWithPromptCallback = (onStopSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
|
36266
|
-
return (userIds) => __awaiter$
|
|
36326
|
+
return (userIds) => __awaiter$j(void 0, void 0, void 0, function* () {
|
|
36267
36327
|
if (userIds.length > 1) {
|
|
36268
36328
|
onStopSpotlight(userIds);
|
|
36269
36329
|
}
|
|
@@ -36300,7 +36360,7 @@ const useStopAllSpotlightCallbackWithPrompt = (stopAllSpotlight, setIsPromptOpen
|
|
|
36300
36360
|
}, [stopAllSpotlight, setIsPromptOpen, setPromptProps, strings]);
|
|
36301
36361
|
};
|
|
36302
36362
|
const getStopAllSpotlightCallbackWithPromptCallback = (stopAllSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
|
36303
|
-
return () => __awaiter$
|
|
36363
|
+
return () => __awaiter$j(void 0, void 0, void 0, function* () {
|
|
36304
36364
|
setPromptProps({
|
|
36305
36365
|
heading: strings.spotlightPrompt.stopAllSpotlightHeading,
|
|
36306
36366
|
text: strings.spotlightPrompt.stopAllSpotlightText,
|
|
@@ -36334,6 +36394,81 @@ const useCompositeStringsForNotificationStackStrings = (locale) => {
|
|
|
36334
36394
|
return notificationStackStrings;
|
|
36335
36395
|
};
|
|
36336
36396
|
|
|
36397
|
+
// Copyright (c) Microsoft Corporation.
|
|
36398
|
+
// Licensed under the MIT License.
|
|
36399
|
+
/**
|
|
36400
|
+
* A component to show a banner in the UI.
|
|
36401
|
+
*
|
|
36402
|
+
* @private
|
|
36403
|
+
*/
|
|
36404
|
+
const Banner = (props) => {
|
|
36405
|
+
var _a, _b;
|
|
36406
|
+
const strings = props.strings;
|
|
36407
|
+
const theme = react.useTheme();
|
|
36408
|
+
return (React.createElement(react.Stack, { horizontalAlign: "center" },
|
|
36409
|
+
React.createElement(react.Stack, { "data-ui-id": "banner", className: containerStyles$2(theme) },
|
|
36410
|
+
React.createElement(react.Stack, { horizontal: true, horizontalAlign: "space-between" },
|
|
36411
|
+
React.createElement(react.Stack, { horizontal: true },
|
|
36412
|
+
((_a = props.iconProps) === null || _a === void 0 ? void 0 : _a.iconName) && (React.createElement(react.Icon, Object.assign({ className: bannerIconClassName, iconName: (_b = props.iconProps) === null || _b === void 0 ? void 0 : _b.iconName }, props.iconProps))),
|
|
36413
|
+
React.createElement(react.Text, { className: titleTextClassName }, strings === null || strings === void 0 ? void 0 : strings.title)),
|
|
36414
|
+
props.primaryButton ? (React.createElement(react.PrimaryButton, { text: strings === null || strings === void 0 ? void 0 : strings.primaryButtonLabel, ariaLabel: strings === null || strings === void 0 ? void 0 : strings.primaryButtonLabel, onClick: props.onClickButton })) : (React.createElement(react.DefaultButton, { text: strings === null || strings === void 0 ? void 0 : strings.primaryButtonLabel, ariaLabel: strings === null || strings === void 0 ? void 0 : strings.primaryButtonLabel, onClick: props.onClickButton }))))));
|
|
36415
|
+
};
|
|
36416
|
+
const titleTextClassName = react.mergeStyles({
|
|
36417
|
+
fontWeight: 400,
|
|
36418
|
+
fontSize: _pxToRem(14),
|
|
36419
|
+
lineHeight: _pxToRem(16),
|
|
36420
|
+
alignSelf: 'center'
|
|
36421
|
+
});
|
|
36422
|
+
const containerStyles$2 = (theme) => react.mergeStyles({
|
|
36423
|
+
boxShadow: theme.effects.elevation8,
|
|
36424
|
+
width: '20rem',
|
|
36425
|
+
padding: '0.75rem',
|
|
36426
|
+
borderRadius: '0.25rem',
|
|
36427
|
+
position: 'relative',
|
|
36428
|
+
backgroundColor: theme.palette.white
|
|
36429
|
+
});
|
|
36430
|
+
const bannerIconClassName = react.mergeStyles({
|
|
36431
|
+
fontSize: '1.25rem',
|
|
36432
|
+
alignSelf: 'center',
|
|
36433
|
+
marginRight: '0.5rem',
|
|
36434
|
+
svg: {
|
|
36435
|
+
width: '1.25rem',
|
|
36436
|
+
height: '1.25rem'
|
|
36437
|
+
}
|
|
36438
|
+
});
|
|
36439
|
+
|
|
36440
|
+
// Copyright (c) Microsoft Corporation.
|
|
36441
|
+
// Licensed under the MIT License.
|
|
36442
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
36443
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
36444
|
+
/**
|
|
36445
|
+
* @private
|
|
36446
|
+
*/
|
|
36447
|
+
const BreakoutRoomsBanner = (props) => {
|
|
36448
|
+
const { latestNotifications, locale, adapter } = props;
|
|
36449
|
+
const assignedBreakoutRoom = useSelector$1(getAssignedBreakoutRoom);
|
|
36450
|
+
const breakoutRoomSettings = useSelector$1(getBreakoutRoomSettings);
|
|
36451
|
+
const autoMoveToBreakoutRoomCurrentlyInEffect = (assignedBreakoutRoom === null || assignedBreakoutRoom === void 0 ? void 0 : assignedBreakoutRoom.autoMoveParticipantToBreakoutRoom) &&
|
|
36452
|
+
(latestNotifications === null || latestNotifications === void 0 ? void 0 : latestNotifications.find((notification) => notification.type === 'assignedBreakoutRoomOpened' || notification.type === 'assignedBreakoutRoomChanged'));
|
|
36453
|
+
if (assignedBreakoutRoom && assignedBreakoutRoom.state === 'open' && !autoMoveToBreakoutRoomCurrentlyInEffect) {
|
|
36454
|
+
return (React.createElement(react.Stack, { styles: bannerNotificationStyles },
|
|
36455
|
+
React.createElement(Banner, { strings: {
|
|
36456
|
+
title: assignedBreakoutRoom.displayName
|
|
36457
|
+
? locale.strings.call.joinBreakoutRoomBannerTitle.replace('{roomName}', assignedBreakoutRoom.displayName)
|
|
36458
|
+
: locale.strings.call.joinBreakoutRoomBannerTitle,
|
|
36459
|
+
primaryButtonLabel: locale.strings.call.joinBreakoutRoomBannerButtonLabel
|
|
36460
|
+
}, onClickButton: () => assignedBreakoutRoom.join(), iconProps: { iconName: 'NotificationBarBreakoutRoomPromptJoin' }, primaryButton: true })));
|
|
36461
|
+
}
|
|
36462
|
+
else if (breakoutRoomSettings && breakoutRoomSettings.disableReturnToMainMeeting !== true) {
|
|
36463
|
+
return (React.createElement(react.Stack, { styles: bannerNotificationStyles },
|
|
36464
|
+
React.createElement(Banner, { strings: {
|
|
36465
|
+
title: locale.strings.call.returnFromBreakoutRoomBannerTitle,
|
|
36466
|
+
primaryButtonLabel: locale.strings.call.returnFromBreakoutRoomBannerButtonLabel
|
|
36467
|
+
}, onClickButton: () => adapter.returnFromBreakoutRoom(), iconProps: { iconName: 'NotificationBarBreakoutRoomClosingSoon' } })));
|
|
36468
|
+
}
|
|
36469
|
+
return undefined;
|
|
36470
|
+
};
|
|
36471
|
+
|
|
36337
36472
|
// Copyright (c) Microsoft Corporation.
|
|
36338
36473
|
// Licensed under the MIT License.
|
|
36339
36474
|
/**
|
|
@@ -36586,6 +36721,13 @@ const CallArrangement = (props) => {
|
|
|
36586
36721
|
: (_f = props.capabilitiesChangedNotificationBarProps) === null || _f === void 0 ? void 0 : _f.capabilitiesChangedNotifications;
|
|
36587
36722
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
36588
36723
|
const notificationStackStrings = useCompositeStringsForNotificationStackStrings(locale);
|
|
36724
|
+
let latestNotifications = props.latestNotifications;
|
|
36725
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
36726
|
+
// Filter out breakout room notification that prompts user to join breakout room when in mobile view. We will
|
|
36727
|
+
// replace it with a non-dismissible banner
|
|
36728
|
+
latestNotifications = props.mobileView
|
|
36729
|
+
? (latestNotifications !== null && latestNotifications !== void 0 ? latestNotifications : []).filter((notification) => notification.type !== 'assignedBreakoutRoomOpenedPromptJoin')
|
|
36730
|
+
: latestNotifications;
|
|
36589
36731
|
return (React.createElement("div", { ref: containerRef, className: react.mergeStyles(containerDivStyles), id: props.id },
|
|
36590
36732
|
React.createElement(react.Stack, { verticalFill: true, horizontalAlign: "stretch", className: containerClassName, "data-ui-id": props.dataUiId },
|
|
36591
36733
|
React.createElement(react.Stack, { reversed: true, horizontal: verticalControlBar, grow: true, styles: callArrangementContainerStyles(verticalControlBar) },
|
|
@@ -36616,10 +36758,12 @@ const CallArrangement = (props) => {
|
|
|
36616
36758
|
React.createElement(react.Stack.Item, { styles: callGalleryStyles, grow: true },
|
|
36617
36759
|
React.createElement(react.Stack, { verticalFill: true, styles: mediaGalleryContainerStyles$1 },
|
|
36618
36760
|
React.createElement(react.Stack.Item, { styles: notificationsContainerStyles },
|
|
36761
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
36762
|
+
props.mobileView && (React.createElement(BreakoutRoomsBanner, { latestNotifications: latestNotifications, locale: locale, adapter: adapter })),
|
|
36619
36763
|
props.showErrorNotifications && (React.createElement(react.Stack, { styles: notificationStackStyles, horizontalAlign: "center", verticalAlign: "center" },
|
|
36620
36764
|
React.createElement(NotificationStack, { onDismissNotification: props.onDismissError, activeNotifications: filteredLatestErrorNotifications }))),
|
|
36621
|
-
|
|
36622
|
-
React.createElement(NotificationStack, { activeNotifications:
|
|
36765
|
+
latestNotifications && (React.createElement(react.Stack, { styles: notificationStackStyles, horizontalAlign: "center", verticalAlign: "center" },
|
|
36766
|
+
React.createElement(NotificationStack, { activeNotifications: latestNotifications, onDismissNotification: props.onDismissNotification,
|
|
36623
36767
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
36624
36768
|
strings: notificationStackStrings }))),
|
|
36625
36769
|
props.capabilitiesChangedNotificationBarProps &&
|
|
@@ -37037,7 +37181,7 @@ const DtmfDialpadContentTimerStyles = {
|
|
|
37037
37181
|
|
|
37038
37182
|
// Copyright (c) Microsoft Corporation.
|
|
37039
37183
|
// Licensed under the MIT License.
|
|
37040
|
-
var __awaiter$
|
|
37184
|
+
var __awaiter$i = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37041
37185
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37042
37186
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
37043
37187
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -37067,7 +37211,7 @@ const DtmfDialpadPageContent = (props) => {
|
|
|
37067
37211
|
React.createElement(react.Stack, { verticalAlign: 'center', style: { margin: 'auto' } },
|
|
37068
37212
|
React.createElement(DtmfDialerContentTimer, null),
|
|
37069
37213
|
React.createElement(react.Text, { style: { margin: 'auto' } }, calleeName && calleeName !== 'Unnamed participant' ? calleeName === null || calleeName === void 0 ? void 0 : calleeName.toString() : ''),
|
|
37070
|
-
React.createElement(Dialpad, { onSendDtmfTone: (tone) => __awaiter$
|
|
37214
|
+
React.createElement(Dialpad, { onSendDtmfTone: (tone) => __awaiter$i(void 0, void 0, void 0, function* () {
|
|
37071
37215
|
yield adapter.sendDtmfTone(tone);
|
|
37072
37216
|
}), longPressTrigger: props.mobileView ? 'touch' : 'mouseAndTouch', dialpadMode: 'dtmf', dtmfAudioContext: props.compositeAudioContext }))));
|
|
37073
37217
|
};
|
|
@@ -37839,7 +37983,7 @@ const localPreviewButtonStyle = (isMobile) => {
|
|
|
37839
37983
|
|
|
37840
37984
|
// Copyright (c) Microsoft Corporation.
|
|
37841
37985
|
// Licensed under the MIT License.
|
|
37842
|
-
var __awaiter$
|
|
37986
|
+
var __awaiter$h = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37843
37987
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37844
37988
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
37845
37989
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -37859,7 +38003,7 @@ const LocalPreview = (props) => {
|
|
|
37859
38003
|
const { audio: microphonePermissionGranted, video: cameraPermissionGranted } = useSelector$1(devicePermissionSelector);
|
|
37860
38004
|
const isLocalMicrophoneEnabled = useSelector$1(getLocalMicrophoneEnabled);
|
|
37861
38005
|
const adapter = useAdapter();
|
|
37862
|
-
const onToggleMic = React.useCallback(() => __awaiter$
|
|
38006
|
+
const onToggleMic = React.useCallback(() => __awaiter$h(void 0, void 0, void 0, function* () {
|
|
37863
38007
|
isLocalMicrophoneEnabled ? adapter.mute() : adapter.unmute();
|
|
37864
38008
|
}), [adapter, isLocalMicrophoneEnabled]);
|
|
37865
38009
|
const hasNoSpeakers = !devicesButtonProps.speakers.length;
|
|
@@ -38223,7 +38367,7 @@ const constructTSpanLine = (line, lineHeightPx) => {
|
|
|
38223
38367
|
|
|
38224
38368
|
// Copyright (c) Microsoft Corporation.
|
|
38225
38369
|
// Licensed under the MIT License.
|
|
38226
|
-
var __awaiter$
|
|
38370
|
+
var __awaiter$g = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
38227
38371
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38228
38372
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38229
38373
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -38326,7 +38470,7 @@ const ConfigurationPage = (props) => {
|
|
|
38326
38470
|
/* @conditional-compile-remove(call-readiness) */
|
|
38327
38471
|
const forceShowingCheckPermissions = !minimumFallbackTimerElapsed;
|
|
38328
38472
|
const { toggleVideoEffectsPane, closeVideoEffectsPane, isVideoEffectsPaneOpen } = useVideoEffectsPane(props.updateSidePaneRenderer, mobileView, props.latestErrors, props.onDismissError);
|
|
38329
|
-
const startCall = React.useCallback(() => __awaiter$
|
|
38473
|
+
const startCall = React.useCallback(() => __awaiter$g(void 0, void 0, void 0, function* () {
|
|
38330
38474
|
closeVideoEffectsPane();
|
|
38331
38475
|
startCallHandler();
|
|
38332
38476
|
}), [startCallHandler, closeVideoEffectsPane]);
|
|
@@ -38828,7 +38972,7 @@ const holdPaneContentStyles = {
|
|
|
38828
38972
|
|
|
38829
38973
|
// Copyright (c) Microsoft Corporation.
|
|
38830
38974
|
// Licensed under the MIT License.
|
|
38831
|
-
var __awaiter$
|
|
38975
|
+
var __awaiter$f = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
38832
38976
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38833
38977
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38834
38978
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -38863,7 +39007,7 @@ const HoldPane = () => {
|
|
|
38863
39007
|
React.createElement(react.Stack, { horizontal: true, styles: holdPaneContentStyles },
|
|
38864
39008
|
React.createElement(react.Text, { styles: holdPaneTimerStyles }, elapsedTime),
|
|
38865
39009
|
React.createElement(react.Text, { styles: holdPaneLabelStyles, role: "status", "aria-live": "assertive" }, strings.holdScreenLabel),
|
|
38866
|
-
React.createElement(react.PrimaryButton, { text: !resumingCall ? strings.resumeCallButtonLabel : strings.resumingCallButtonLabel, ariaLabel: !resumingCall ? strings.resumeCallButtonAriaLabel : strings.resumingCallButtonAriaLabel, styles: resumeButtonStyles, disabled: resumingCall, onClick: () => __awaiter$
|
|
39010
|
+
React.createElement(react.PrimaryButton, { text: !resumingCall ? strings.resumeCallButtonLabel : strings.resumingCallButtonLabel, ariaLabel: !resumingCall ? strings.resumeCallButtonAriaLabel : strings.resumingCallButtonAriaLabel, styles: resumeButtonStyles, disabled: resumingCall, onClick: () => __awaiter$f(void 0, void 0, void 0, function* () {
|
|
38867
39011
|
setResumingCall(true);
|
|
38868
39012
|
try {
|
|
38869
39013
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
|
@@ -38894,13 +39038,14 @@ const getReadableTime = (time) => {
|
|
|
38894
39038
|
return `${hours > 0 ? hours + ':' : ''}${readableMinutes}:${readableSeconds}`;
|
|
38895
39039
|
};
|
|
38896
39040
|
const stringsTrampoline = (locale) => {
|
|
39041
|
+
var _a, _b, _c, _d, _e;
|
|
38897
39042
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
|
38898
39043
|
return {
|
|
38899
|
-
holdScreenLabel: locale.strings.call.holdScreenLabel,
|
|
38900
|
-
resumeCallButtonLabel: locale.strings.call.resumeCallButtonLabel,
|
|
38901
|
-
resumeCallButtonAriaLabel: locale.strings.call.resumeCallButtonAriaLabel,
|
|
38902
|
-
resumingCallButtonLabel: locale.strings.call.resumingCallButtonLabel,
|
|
38903
|
-
resumingCallButtonAriaLabel: locale.strings.call.resumingCallButtonAriaLabel
|
|
39044
|
+
holdScreenLabel: (_a = locale.strings.call.holdScreenLabel) !== null && _a !== void 0 ? _a : '',
|
|
39045
|
+
resumeCallButtonLabel: (_b = locale.strings.call.resumeCallButtonLabel) !== null && _b !== void 0 ? _b : '',
|
|
39046
|
+
resumeCallButtonAriaLabel: (_c = locale.strings.call.resumeCallButtonAriaLabel) !== null && _c !== void 0 ? _c : '',
|
|
39047
|
+
resumingCallButtonLabel: (_d = locale.strings.call.resumingCallButtonLabel) !== null && _d !== void 0 ? _d : '',
|
|
39048
|
+
resumingCallButtonAriaLabel: (_e = locale.strings.call.resumingCallButtonAriaLabel) !== null && _e !== void 0 ? _e : ''
|
|
38904
39049
|
};
|
|
38905
39050
|
};
|
|
38906
39051
|
|
|
@@ -39245,7 +39390,7 @@ const surveyContainerStyle = (isMobile) => react.mergeStyles(isMobile
|
|
|
39245
39390
|
|
|
39246
39391
|
// Copyright (c) Microsoft Corporation.
|
|
39247
39392
|
// Licensed under the MIT License.
|
|
39248
|
-
var __awaiter$
|
|
39393
|
+
var __awaiter$e = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39249
39394
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39250
39395
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39251
39396
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -39291,7 +39436,7 @@ const Survey = (props) => {
|
|
|
39291
39436
|
setShowDefaultAfterDismissedScreen(true);
|
|
39292
39437
|
}
|
|
39293
39438
|
} }, strings.surveySkipButtonLabel),
|
|
39294
|
-
showSubmitFeedbackButton && (React.createElement(react.PrimaryButton, { disabled: submitButtonDisabled, style: { marginTop: '1rem', marginLeft: '0.5rem' }, onClick: () => __awaiter$
|
|
39439
|
+
showSubmitFeedbackButton && (React.createElement(react.PrimaryButton, { disabled: submitButtonDisabled, style: { marginTop: '1rem', marginLeft: '0.5rem' }, onClick: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
|
39295
39440
|
const surveyResults = { overallRating: { score: ratings } };
|
|
39296
39441
|
if (issuesSelected === null || issuesSelected === void 0 ? void 0 : issuesSelected.overallRating) {
|
|
39297
39442
|
surveyResults.overallRating = { score: ratings, issues: issuesSelected.overallRating.issues };
|
|
@@ -39362,7 +39507,7 @@ function SurveyPage(props) {
|
|
|
39362
39507
|
|
|
39363
39508
|
// Copyright (c) Microsoft Corporation.
|
|
39364
39509
|
// Licensed under the MIT License.
|
|
39365
|
-
var __awaiter$
|
|
39510
|
+
var __awaiter$d = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39366
39511
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39367
39512
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39368
39513
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -39381,7 +39526,7 @@ const MainScreen = (props) => {
|
|
|
39381
39526
|
const hasCameras = camerasCount > 0;
|
|
39382
39527
|
const hasMicrophones = microphonesCount > 0;
|
|
39383
39528
|
React.useEffect(() => {
|
|
39384
|
-
(() => __awaiter$
|
|
39529
|
+
(() => __awaiter$d(void 0, void 0, void 0, function* () {
|
|
39385
39530
|
var _a, _b, _c, _d, _e;
|
|
39386
39531
|
const constrain = getQueryOptions({
|
|
39387
39532
|
role: (_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.role
|
|
@@ -39732,7 +39877,7 @@ function createHandlers(callClient, callAgent, deviceManager, call, options) {
|
|
|
39732
39877
|
|
|
39733
39878
|
// Copyright (c) Microsoft Corporation.
|
|
39734
39879
|
// Licensed under the MIT License.
|
|
39735
|
-
var __awaiter$
|
|
39880
|
+
var __awaiter$c = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39736
39881
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39737
39882
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39738
39883
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -39749,7 +39894,7 @@ const createProfileStateModifier = (onFetchProfile, notifyUpdate) => {
|
|
|
39749
39894
|
return (state) => {
|
|
39750
39895
|
var _a;
|
|
39751
39896
|
const originalParticipants = (_a = state.call) === null || _a === void 0 ? void 0 : _a.remoteParticipants;
|
|
39752
|
-
(() => __awaiter$
|
|
39897
|
+
(() => __awaiter$c(void 0, void 0, void 0, function* () {
|
|
39753
39898
|
let shouldNotifyUpdates = false;
|
|
39754
39899
|
for (const key in originalParticipants) {
|
|
39755
39900
|
if (cachedDisplayName[key]) {
|
|
@@ -39891,7 +40036,7 @@ const shouldPlayRinging = (call, callee) => {
|
|
|
39891
40036
|
|
|
39892
40037
|
// Copyright (c) Microsoft Corporation.
|
|
39893
40038
|
// Licensed under the MIT License.
|
|
39894
|
-
var __awaiter$
|
|
40039
|
+
var __awaiter$b = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39895
40040
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39896
40041
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39897
40042
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -39903,7 +40048,7 @@ var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
|
39903
40048
|
/** Context of call, which is a centralized context for all state updates */
|
|
39904
40049
|
class CallContext {
|
|
39905
40050
|
constructor(clientState, isTeamsCall, isTeamsMeeting, isRoomsCall, options, targetCallees) {
|
|
39906
|
-
var _a, _b, _c, _d;
|
|
40051
|
+
var _a, _b, _c, _d, _e;
|
|
39907
40052
|
this.emitter = new EventEmitter.EventEmitter();
|
|
39908
40053
|
this.state = {
|
|
39909
40054
|
isLocalPreviewMicrophoneEnabled: false,
|
|
@@ -39918,17 +40063,19 @@ class CallContext {
|
|
|
39918
40063
|
isTeamsCall,
|
|
39919
40064
|
isTeamsMeeting,
|
|
39920
40065
|
isRoomsCall,
|
|
39921
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId:
|
|
40066
|
+
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: options === null || options === void 0 ? void 0 : options.alternateCallerId,
|
|
39922
40067
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo: clientState.environmentInfo,
|
|
39923
40068
|
/* @conditional-compile-remove(unsupported-browser) */ unsupportedBrowserVersionsAllowed: false,
|
|
39924
40069
|
videoBackgroundImages: (_b = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _b === void 0 ? void 0 : _b.videoBackgroundImages,
|
|
39925
40070
|
onResolveVideoEffectDependency: (_c = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _c === void 0 ? void 0 : _c.onResolveDependency,
|
|
40071
|
+
/* @conditional-compile-remove(DNS) */
|
|
40072
|
+
onResolveDeepNoiseSuppressionDependency: (_d = options === null || options === void 0 ? void 0 : options.deepNoiseSuppressionOptions) === null || _d === void 0 ? void 0 : _d.onResolveDependency,
|
|
39926
40073
|
selectedVideoBackgroundEffect: undefined,
|
|
39927
40074
|
cameraStatus: undefined,
|
|
39928
40075
|
sounds: options === null || options === void 0 ? void 0 : options.callingSounds,
|
|
39929
40076
|
reactions: options === null || options === void 0 ? void 0 : options.reactionResources
|
|
39930
40077
|
};
|
|
39931
|
-
this.emitter.setMaxListeners((
|
|
40078
|
+
this.emitter.setMaxListeners((_e = options === null || options === void 0 ? void 0 : options.maxListeners) !== null && _e !== void 0 ? _e : 50);
|
|
39932
40079
|
this.bindPublicMethods();
|
|
39933
40080
|
this.displayNameModifier = (options === null || options === void 0 ? void 0 : options.onFetchProfile)
|
|
39934
40081
|
? createProfileStateModifier(options.onFetchProfile, () => {
|
|
@@ -39970,7 +40117,7 @@ class CallContext {
|
|
|
39970
40117
|
this.emitter.off('callEnded', handler);
|
|
39971
40118
|
}
|
|
39972
40119
|
updateClientState(clientState) {
|
|
39973
|
-
var _a;
|
|
40120
|
+
var _a, _b, _c, _d, _e;
|
|
39974
40121
|
let call = this.callId ? clientState.calls[this.callId] : undefined;
|
|
39975
40122
|
const latestEndedCall = clientState.callsEnded ? findLatestEndedCall(clientState.callsEnded) : undefined;
|
|
39976
40123
|
// As the state is transitioning to a new state, trigger appropriate callback events.
|
|
@@ -39984,7 +40131,14 @@ class CallContext {
|
|
|
39984
40131
|
? findLatestAcceptedTransfer(call.transfer.acceptedTransfers)
|
|
39985
40132
|
: undefined;
|
|
39986
40133
|
const transferCall = latestAcceptedTransfer ? clientState.calls[latestAcceptedTransfer.callId] : undefined;
|
|
40134
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
40135
|
+
const originCall = ((_a = call === null || call === void 0 ? void 0 : call.breakoutRooms) === null || _a === void 0 ? void 0 : _a.breakoutRoomOriginCallId)
|
|
40136
|
+
? clientState.calls[(_b = call === null || call === void 0 ? void 0 : call.breakoutRooms) === null || _b === void 0 ? void 0 : _b.breakoutRoomOriginCallId]
|
|
40137
|
+
: ((_c = latestEndedCall === null || latestEndedCall === void 0 ? void 0 : latestEndedCall.breakoutRooms) === null || _c === void 0 ? void 0 : _c.breakoutRoomOriginCallId)
|
|
40138
|
+
? clientState.calls[(_d = latestEndedCall === null || latestEndedCall === void 0 ? void 0 : latestEndedCall.breakoutRooms) === null || _d === void 0 ? void 0 : _d.breakoutRoomOriginCallId]
|
|
40139
|
+
: undefined;
|
|
39987
40140
|
const newPage = getCallCompositePage(call, latestEndedCall, transferCall,
|
|
40141
|
+
/* @conditional-compile-remove(breakout-rooms) */ originCall,
|
|
39988
40142
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo);
|
|
39989
40143
|
if (!IsCallEndedPage(oldPage) && IsCallEndedPage(newPage)) {
|
|
39990
40144
|
this.emitter.emit('callEnded', { callId: this.callId });
|
|
@@ -39994,7 +40148,7 @@ class CallContext {
|
|
|
39994
40148
|
call = undefined;
|
|
39995
40149
|
}
|
|
39996
40150
|
if (this.state.page) {
|
|
39997
|
-
this.setState(Object.assign(Object.assign({}, this.state), { userId: clientState.userId, displayName: (
|
|
40151
|
+
this.setState(Object.assign(Object.assign({}, this.state), { userId: clientState.userId, displayName: (_e = clientState.callAgent) === null || _e === void 0 ? void 0 : _e.displayName, call, page: newPage, endedCall: latestEndedCall, devices: clientState.deviceManager, latestErrors: clientState.latestErrors,
|
|
39998
40152
|
/* @conditional-compile-remove(breakout-rooms) */ latestNotifications: clientState.latestNotifications, cameraStatus: (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((s) => s.mediaStreamType === 'Video')) ||
|
|
39999
40153
|
clientState.deviceManager.unparentedViews.find((s) => s.mediaStreamType === 'Video')
|
|
40000
40154
|
? 'On'
|
|
@@ -40055,7 +40209,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40055
40209
|
this._call = newCall;
|
|
40056
40210
|
}
|
|
40057
40211
|
constructor(callClient, locatorOrTargetCalless, callAgent, deviceManager, options) {
|
|
40058
|
-
var _a, _b;
|
|
40212
|
+
var _a, _b, _c;
|
|
40059
40213
|
this.participantSubscribers = new Map();
|
|
40060
40214
|
this.emitter = new EventEmitter.EventEmitter();
|
|
40061
40215
|
this.isMyMutedChanged = () => {
|
|
@@ -40086,6 +40240,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40086
40240
|
});
|
|
40087
40241
|
const isRoomsCall = this.locator ? 'roomId' in this.locator : false;
|
|
40088
40242
|
this.onResolveVideoBackgroundEffectsDependency = (_b = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _b === void 0 ? void 0 : _b.onResolveDependency;
|
|
40243
|
+
/* @conditional-compile-remove(DNS) */
|
|
40244
|
+
this.onResolveDeepNoiseSuppressionDependency = (_c = options === null || options === void 0 ? void 0 : options.deepNoiseSuppressionOptions) === null || _c === void 0 ? void 0 : _c.onResolveDependency;
|
|
40089
40245
|
this.context = new CallContext(callClient.getState(), !!isTeamsCall, isTeamsMeeting, isRoomsCall, options, this.targetCallees);
|
|
40090
40246
|
this.context.onCallEnded((endCallData) => this.emitter.emit('callEnded', endCallData));
|
|
40091
40247
|
const onStateChange = (clientState) => {
|
|
@@ -40117,7 +40273,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40117
40273
|
this.context.updateClientState(clientState);
|
|
40118
40274
|
};
|
|
40119
40275
|
this.handlers = createHandlers(callClient, callAgent, deviceManager, undefined, {
|
|
40120
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
|
40276
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
|
40277
|
+
/* @conditional-compile-remove(DNS) */
|
|
40278
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
|
40121
40279
|
});
|
|
40122
40280
|
this.onClientStateChange = onStateChange;
|
|
40123
40281
|
this.subscribeDeviceManagerEvents();
|
|
@@ -40218,6 +40376,10 @@ class AzureCommunicationCallAdapter {
|
|
|
40218
40376
|
this.startVideoBackgroundEffect.bind(this);
|
|
40219
40377
|
this.stopVideoBackgroundEffects.bind(this);
|
|
40220
40378
|
this.updateBackgroundPickerImages.bind(this);
|
|
40379
|
+
/* @conditional-compile-remove(DNS) */
|
|
40380
|
+
this.startNoiseSuppressionEffect.bind(this);
|
|
40381
|
+
/* @conditional-compile-remove(DNS) */
|
|
40382
|
+
this.stopNoiseSuppressionEffect.bind(this);
|
|
40221
40383
|
this.submitSurvey.bind(this);
|
|
40222
40384
|
this.startSpotlight.bind(this);
|
|
40223
40385
|
this.stopSpotlight.bind(this);
|
|
@@ -40233,9 +40395,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40233
40395
|
this.callAgent.dispose();
|
|
40234
40396
|
}
|
|
40235
40397
|
queryCameras() {
|
|
40236
|
-
return __awaiter$
|
|
40398
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40237
40399
|
const startTime = new Date().getTime();
|
|
40238
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40400
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40239
40401
|
const cameras = yield this.deviceManager.getCameras();
|
|
40240
40402
|
const endTime = new Date().getTime();
|
|
40241
40403
|
compositeLogger.info('time to query cameras', endTime - startTime, 'ms');
|
|
@@ -40244,9 +40406,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40244
40406
|
});
|
|
40245
40407
|
}
|
|
40246
40408
|
queryMicrophones() {
|
|
40247
|
-
return __awaiter$
|
|
40409
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40248
40410
|
const startTime = new Date().getTime();
|
|
40249
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40411
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40250
40412
|
const microphones = yield this.deviceManager.getMicrophones();
|
|
40251
40413
|
const endTime = new Date().getTime();
|
|
40252
40414
|
compositeLogger.info('time to query microphones', endTime - startTime, 'ms');
|
|
@@ -40255,9 +40417,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40255
40417
|
});
|
|
40256
40418
|
}
|
|
40257
40419
|
querySpeakers() {
|
|
40258
|
-
return __awaiter$
|
|
40420
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40259
40421
|
const startTime = new Date().getTime();
|
|
40260
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40422
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40261
40423
|
const speakers = (yield this.deviceManager.isSpeakerSelectionAvailable) ? this.deviceManager.getSpeakers() : [];
|
|
40262
40424
|
const endTime = new Date().getTime();
|
|
40263
40425
|
compositeLogger.info('time to query speakers', endTime - startTime, 'ms');
|
|
@@ -40266,9 +40428,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40266
40428
|
});
|
|
40267
40429
|
}
|
|
40268
40430
|
askDevicePermission(constrain) {
|
|
40269
|
-
return __awaiter$
|
|
40431
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40270
40432
|
const startTime = new Date().getTime();
|
|
40271
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40433
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40272
40434
|
yield this.deviceManager.askDevicePermission(constrain);
|
|
40273
40435
|
const endTime = new Date().getTime();
|
|
40274
40436
|
compositeLogger.info('time to query askDevicePermissions', endTime - startTime, 'ms');
|
|
@@ -40307,6 +40469,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40307
40469
|
? { localVideoStreams: [new communicationCalling.LocalVideoStream(selectedCamera)] }
|
|
40308
40470
|
: {};
|
|
40309
40471
|
const call = this._joinCall(audioOptions, videoOptions);
|
|
40472
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
40473
|
+
this.originCall = call;
|
|
40310
40474
|
this.processNewCall(call);
|
|
40311
40475
|
return call;
|
|
40312
40476
|
});
|
|
@@ -40355,7 +40519,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40355
40519
|
});
|
|
40356
40520
|
}
|
|
40357
40521
|
createStreamView(remoteUserId, options) {
|
|
40358
|
-
return __awaiter$
|
|
40522
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40359
40523
|
if (remoteUserId === undefined) {
|
|
40360
40524
|
return yield this.handlers.onCreateLocalStreamView(options);
|
|
40361
40525
|
}
|
|
@@ -40365,7 +40529,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40365
40529
|
});
|
|
40366
40530
|
}
|
|
40367
40531
|
disposeStreamView(remoteUserId) {
|
|
40368
|
-
return __awaiter$
|
|
40532
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40369
40533
|
if (remoteUserId === undefined) {
|
|
40370
40534
|
yield this.handlers.onDisposeLocalStreamView();
|
|
40371
40535
|
}
|
|
@@ -40375,7 +40539,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40375
40539
|
});
|
|
40376
40540
|
}
|
|
40377
40541
|
disposeScreenShareStreamView(remoteUserId) {
|
|
40378
|
-
return __awaiter$
|
|
40542
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40379
40543
|
if (remoteUserId !== '') {
|
|
40380
40544
|
yield this.handlers.onDisposeRemoteScreenShareStreamView(remoteUserId);
|
|
40381
40545
|
}
|
|
@@ -40385,17 +40549,17 @@ class AzureCommunicationCallAdapter {
|
|
|
40385
40549
|
});
|
|
40386
40550
|
}
|
|
40387
40551
|
disposeRemoteVideoStreamView(remoteUserId) {
|
|
40388
|
-
return __awaiter$
|
|
40552
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40389
40553
|
yield this.handlers.onDisposeRemoteVideoStreamView(remoteUserId);
|
|
40390
40554
|
});
|
|
40391
40555
|
}
|
|
40392
40556
|
disposeLocalVideoStreamView() {
|
|
40393
|
-
return __awaiter$
|
|
40557
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40394
40558
|
yield this.handlers.onDisposeLocalStreamView();
|
|
40395
40559
|
});
|
|
40396
40560
|
}
|
|
40397
40561
|
leaveCall(forEveryone) {
|
|
40398
|
-
return __awaiter$
|
|
40562
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40399
40563
|
if (this.getState().page === 'transferring') {
|
|
40400
40564
|
const transferCall = this.callAgent.calls.filter((call) => { var _a; return call.id === ((_a = this.getState().acceptedTransferCallState) === null || _a === void 0 ? void 0 : _a.id); })[0];
|
|
40401
40565
|
transferCall === null || transferCall === void 0 ? void 0 : transferCall.hangUp();
|
|
@@ -40403,7 +40567,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40403
40567
|
yield this.handlers.onHangUp(forEveryone);
|
|
40404
40568
|
this.unsubscribeCallEvents();
|
|
40405
40569
|
this.handlers = createHandlers(this.callClient, this.callAgent, this.deviceManager, this.call, {
|
|
40406
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
|
40570
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
|
40571
|
+
/* @conditional-compile-remove(DNS) */
|
|
40572
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
|
40407
40573
|
});
|
|
40408
40574
|
// We set the adapter.call object to undefined immediately when a call is ended.
|
|
40409
40575
|
// We do not set the context.callId to undefined because it is a part of the immutable data flow loop.
|
|
@@ -40413,29 +40579,29 @@ class AzureCommunicationCallAdapter {
|
|
|
40413
40579
|
});
|
|
40414
40580
|
}
|
|
40415
40581
|
setCamera(device, options) {
|
|
40416
|
-
return __awaiter$
|
|
40417
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40582
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40583
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40418
40584
|
yield this.handlers.onSelectCamera(device, options);
|
|
40419
40585
|
}));
|
|
40420
40586
|
});
|
|
40421
40587
|
}
|
|
40422
40588
|
setMicrophone(device) {
|
|
40423
|
-
return __awaiter$
|
|
40424
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40589
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40590
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40425
40591
|
yield this.handlers.onSelectMicrophone(device);
|
|
40426
40592
|
}));
|
|
40427
40593
|
});
|
|
40428
40594
|
}
|
|
40429
40595
|
setSpeaker(device) {
|
|
40430
|
-
return __awaiter$
|
|
40431
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40596
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40597
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40432
40598
|
yield this.handlers.onSelectSpeaker(device);
|
|
40433
40599
|
}));
|
|
40434
40600
|
});
|
|
40435
40601
|
}
|
|
40436
40602
|
startCamera(options) {
|
|
40437
|
-
return __awaiter$
|
|
40438
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40603
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40604
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40439
40605
|
if (!isCameraOn(this.getState())) {
|
|
40440
40606
|
// First kick off the effect on the local device before starting the camera in the call.
|
|
40441
40607
|
// This prevents the effect not being applied for a brief moment when the camera is started.
|
|
@@ -40459,8 +40625,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40459
40625
|
});
|
|
40460
40626
|
}
|
|
40461
40627
|
stopCamera() {
|
|
40462
|
-
return __awaiter$
|
|
40463
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40628
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40629
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40464
40630
|
if (isCameraOn(this.getState())) {
|
|
40465
40631
|
yield this.handlers.onToggleCamera();
|
|
40466
40632
|
}
|
|
@@ -40468,8 +40634,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40468
40634
|
});
|
|
40469
40635
|
}
|
|
40470
40636
|
mute() {
|
|
40471
|
-
return __awaiter$
|
|
40472
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40637
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40638
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40473
40639
|
var _a, _b;
|
|
40474
40640
|
this.context.setIsLocalMicrophoneEnabled(false);
|
|
40475
40641
|
if (_isInCall((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) && !((_b = this.call) === null || _b === void 0 ? void 0 : _b.isMuted)) {
|
|
@@ -40479,8 +40645,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40479
40645
|
});
|
|
40480
40646
|
}
|
|
40481
40647
|
unmute() {
|
|
40482
|
-
return __awaiter$
|
|
40483
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40648
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40649
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40484
40650
|
var _a, _b, _c;
|
|
40485
40651
|
this.context.setIsLocalMicrophoneEnabled(true);
|
|
40486
40652
|
if ((_isInCall((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) || _isInLobbyOrConnecting((_b = this.call) === null || _b === void 0 ? void 0 : _b.state)) && ((_c = this.call) === null || _c === void 0 ? void 0 : _c.isMuted)) {
|
|
@@ -40490,8 +40656,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40490
40656
|
});
|
|
40491
40657
|
}
|
|
40492
40658
|
startScreenShare() {
|
|
40493
|
-
return __awaiter$
|
|
40494
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40659
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40660
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40495
40661
|
var _a;
|
|
40496
40662
|
if (!((_a = this.call) === null || _a === void 0 ? void 0 : _a.isScreenSharingOn)) {
|
|
40497
40663
|
yield this.handlers.onToggleScreenShare();
|
|
@@ -40500,8 +40666,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40500
40666
|
});
|
|
40501
40667
|
}
|
|
40502
40668
|
stopScreenShare() {
|
|
40503
|
-
return __awaiter$
|
|
40504
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40669
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40670
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40505
40671
|
var _a;
|
|
40506
40672
|
if ((_a = this.call) === null || _a === void 0 ? void 0 : _a.isScreenSharingOn) {
|
|
40507
40673
|
yield this.handlers.onToggleScreenShare();
|
|
@@ -40510,22 +40676,22 @@ class AzureCommunicationCallAdapter {
|
|
|
40510
40676
|
});
|
|
40511
40677
|
}
|
|
40512
40678
|
raiseHand() {
|
|
40513
|
-
return __awaiter$
|
|
40514
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40679
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40680
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40515
40681
|
yield this.handlers.onToggleRaiseHand();
|
|
40516
40682
|
}));
|
|
40517
40683
|
});
|
|
40518
40684
|
}
|
|
40519
40685
|
lowerHand() {
|
|
40520
|
-
return __awaiter$
|
|
40521
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40686
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40687
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40522
40688
|
yield this.handlers.onToggleRaiseHand();
|
|
40523
40689
|
}));
|
|
40524
40690
|
});
|
|
40525
40691
|
}
|
|
40526
40692
|
onReactionClick(reaction) {
|
|
40527
|
-
return __awaiter$
|
|
40528
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40693
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40694
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40529
40695
|
yield this.handlers.onReactionClick(reaction);
|
|
40530
40696
|
}));
|
|
40531
40697
|
});
|
|
@@ -40536,7 +40702,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40536
40702
|
this.context.updateClientState(this.callClient.getState());
|
|
40537
40703
|
}
|
|
40538
40704
|
startVideoBackgroundEffect(videoBackgroundEffect) {
|
|
40539
|
-
return __awaiter$
|
|
40705
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40540
40706
|
if (this.isBlurEffect(videoBackgroundEffect)) {
|
|
40541
40707
|
const blurConfig = videoBackgroundEffect;
|
|
40542
40708
|
yield this.handlers.onBlurVideoBackground(blurConfig);
|
|
@@ -40548,7 +40714,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40548
40714
|
});
|
|
40549
40715
|
}
|
|
40550
40716
|
stopVideoBackgroundEffects() {
|
|
40551
|
-
return __awaiter$
|
|
40717
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40552
40718
|
yield this.handlers.onRemoveVideoBackgroundEffects();
|
|
40553
40719
|
});
|
|
40554
40720
|
}
|
|
@@ -40558,6 +40724,18 @@ class AzureCommunicationCallAdapter {
|
|
|
40558
40724
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground) {
|
|
40559
40725
|
this.context.setSelectedVideoBackgroundEffect(selectedVideoBackground);
|
|
40560
40726
|
}
|
|
40727
|
+
/* @conditional-compile-remove(DNS) */
|
|
40728
|
+
startNoiseSuppressionEffect() {
|
|
40729
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40730
|
+
yield this.handlers.onStartNoiseSuppressionEffect();
|
|
40731
|
+
});
|
|
40732
|
+
}
|
|
40733
|
+
/* @conditional-compile-remove(DNS) */
|
|
40734
|
+
stopNoiseSuppressionEffect() {
|
|
40735
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40736
|
+
yield this.handlers.onStopNoiseSuppressionEffect();
|
|
40737
|
+
});
|
|
40738
|
+
}
|
|
40561
40739
|
startCall(participants, options) {
|
|
40562
40740
|
var _a, _b;
|
|
40563
40741
|
if (_isInCall((_b = (_a = this.getState().call) === null || _a === void 0 ? void 0 : _a.state) !== null && _b !== void 0 ? _b : 'None')) {
|
|
@@ -40595,7 +40773,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40595
40773
|
// Resync state after callId is set
|
|
40596
40774
|
this.context.updateClientState(this.callClient.getState());
|
|
40597
40775
|
this.handlers = createHandlers(this.callClient, this.callAgent, this.deviceManager, this.call, {
|
|
40598
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
|
40776
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
|
40777
|
+
/* @conditional-compile-remove(DNS) */
|
|
40778
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
|
40599
40779
|
});
|
|
40600
40780
|
this.subscribeCallEvents();
|
|
40601
40781
|
}
|
|
@@ -40606,7 +40786,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40606
40786
|
return effect.effectName === 'replacement';
|
|
40607
40787
|
}
|
|
40608
40788
|
removeParticipant(userId) {
|
|
40609
|
-
return __awaiter$
|
|
40789
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40610
40790
|
let participant = userId;
|
|
40611
40791
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
40612
40792
|
participant = _toCommunicationIdentifier(userId);
|
|
@@ -40615,7 +40795,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40615
40795
|
}
|
|
40616
40796
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
40617
40797
|
addParticipant(participant, options) {
|
|
40618
|
-
return __awaiter$
|
|
40798
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40619
40799
|
if (communicationCommon.isPhoneNumberIdentifier(participant) && options) {
|
|
40620
40800
|
this.handlers.onAddParticipant(participant, options);
|
|
40621
40801
|
}
|
|
@@ -40626,7 +40806,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40626
40806
|
}
|
|
40627
40807
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
40628
40808
|
holdCall() {
|
|
40629
|
-
return __awaiter$
|
|
40809
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40630
40810
|
var _a, _b;
|
|
40631
40811
|
if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) !== 'LocalHold') {
|
|
40632
40812
|
if ((_b = this.call) === null || _b === void 0 ? void 0 : _b.isLocalVideoStarted) {
|
|
@@ -40642,7 +40822,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40642
40822
|
}
|
|
40643
40823
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
40644
40824
|
resumeCall() {
|
|
40645
|
-
return __awaiter$
|
|
40825
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40646
40826
|
var _a;
|
|
40647
40827
|
if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold') {
|
|
40648
40828
|
this.handlers.onToggleHold().then(() => {
|
|
@@ -40655,87 +40835,77 @@ class AzureCommunicationCallAdapter {
|
|
|
40655
40835
|
});
|
|
40656
40836
|
}
|
|
40657
40837
|
sendDtmfTone(dtmfTone) {
|
|
40658
|
-
return __awaiter$
|
|
40838
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40659
40839
|
this.handlers.onSendDtmfTone(dtmfTone);
|
|
40660
40840
|
});
|
|
40661
40841
|
}
|
|
40662
40842
|
startCaptions(options) {
|
|
40663
|
-
return __awaiter$
|
|
40843
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40664
40844
|
this.handlers.onStartCaptions(options);
|
|
40665
40845
|
});
|
|
40666
40846
|
}
|
|
40667
40847
|
stopCaptions() {
|
|
40668
|
-
return __awaiter$
|
|
40848
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40669
40849
|
this.handlers.onStopCaptions();
|
|
40670
40850
|
});
|
|
40671
40851
|
}
|
|
40672
40852
|
setCaptionLanguage(language) {
|
|
40673
|
-
return __awaiter$
|
|
40853
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40674
40854
|
this.handlers.onSetCaptionLanguage(language);
|
|
40675
40855
|
});
|
|
40676
40856
|
}
|
|
40677
40857
|
setSpokenLanguage(language) {
|
|
40678
|
-
return __awaiter$
|
|
40858
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40679
40859
|
this.handlers.onSetSpokenLanguage(language);
|
|
40680
40860
|
});
|
|
40681
40861
|
}
|
|
40682
40862
|
submitSurvey(survey) {
|
|
40683
|
-
return __awaiter$
|
|
40863
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40684
40864
|
return this.handlers.onSubmitSurvey(survey);
|
|
40685
40865
|
});
|
|
40686
40866
|
}
|
|
40687
40867
|
/* @conditional-compile-remove(soft-mute) */
|
|
40688
40868
|
muteParticipant(userId) {
|
|
40689
|
-
return __awaiter$
|
|
40869
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40690
40870
|
this.handlers.onMuteParticipant(userId);
|
|
40691
40871
|
});
|
|
40692
40872
|
}
|
|
40693
40873
|
/* @conditional-compile-remove(soft-mute) */
|
|
40694
40874
|
muteAllRemoteParticipants() {
|
|
40695
|
-
return __awaiter$
|
|
40875
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40696
40876
|
this.handlers.onMuteAllRemoteParticipants();
|
|
40697
40877
|
});
|
|
40698
40878
|
}
|
|
40699
40879
|
startSpotlight(userIds) {
|
|
40700
|
-
return __awaiter$
|
|
40880
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40701
40881
|
this.handlers.onStartSpotlight(userIds);
|
|
40702
40882
|
});
|
|
40703
40883
|
}
|
|
40704
40884
|
stopSpotlight(userIds) {
|
|
40705
|
-
return __awaiter$
|
|
40885
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40706
40886
|
this.handlers.onStopSpotlight(userIds);
|
|
40707
40887
|
});
|
|
40708
40888
|
}
|
|
40709
40889
|
stopAllSpotlight() {
|
|
40710
|
-
return __awaiter$
|
|
40890
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40711
40891
|
this.handlers.onStopAllSpotlight();
|
|
40712
40892
|
});
|
|
40713
40893
|
}
|
|
40714
40894
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
40715
40895
|
returnFromBreakoutRoom() {
|
|
40716
|
-
return __awaiter$
|
|
40717
|
-
var _a
|
|
40718
|
-
if (this.
|
|
40719
|
-
return;
|
|
40720
|
-
}
|
|
40721
|
-
// Find call state of current call from stateful layer. The current call state of breakout room may not be present in calls array
|
|
40722
|
-
// if the breakout room call is ended. So search the callsEnded array as well.
|
|
40723
|
-
const callState = this.callClient.getState().calls[(_a = this.call) === null || _a === void 0 ? void 0 : _a.id]
|
|
40724
|
-
? this.callClient.getState().callsEnded[(_b = this.call) === null || _b === void 0 ? void 0 : _b.id]
|
|
40725
|
-
: undefined;
|
|
40726
|
-
// Find origin call id from breakout room call state
|
|
40727
|
-
const originCallId = (_c = callState === null || callState === void 0 ? void 0 : callState.breakoutRooms) === null || _c === void 0 ? void 0 : _c.breakoutRoomOriginCallId;
|
|
40728
|
-
// Find origin call from call agent
|
|
40729
|
-
const originCall = (_d = this.callAgent) === null || _d === void 0 ? void 0 : _d.calls.find((callAgentCall) => {
|
|
40730
|
-
return callAgentCall.id === originCallId;
|
|
40731
|
-
});
|
|
40732
|
-
if (!originCall) {
|
|
40896
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40897
|
+
var _a;
|
|
40898
|
+
if (!this.originCall) {
|
|
40733
40899
|
throw new Error('Could not return from breakout room because the origin call could not be retrieved.');
|
|
40734
40900
|
}
|
|
40901
|
+
if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.id) === this.originCall.id) {
|
|
40902
|
+
console.error('Return from breakout room will not be done because current call is the origin call.');
|
|
40903
|
+
return;
|
|
40904
|
+
}
|
|
40735
40905
|
const breakoutRoomCall = this.call;
|
|
40736
|
-
this.processNewCall(originCall);
|
|
40906
|
+
this.processNewCall(this.originCall);
|
|
40737
40907
|
yield this.resumeCall();
|
|
40738
|
-
if ((breakoutRoomCall === null || breakoutRoomCall === void 0 ? void 0 : breakoutRoomCall.state)
|
|
40908
|
+
if ((breakoutRoomCall === null || breakoutRoomCall === void 0 ? void 0 : breakoutRoomCall.state) && !['Disconnecting', 'Disconnected'].includes(breakoutRoomCall.state)) {
|
|
40739
40909
|
breakoutRoomCall.hangUp();
|
|
40740
40910
|
}
|
|
40741
40911
|
});
|
|
@@ -40823,7 +40993,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40823
40993
|
}
|
|
40824
40994
|
}
|
|
40825
40995
|
unsubscribeCallEvents() {
|
|
40826
|
-
var _a, _b, _c, _d, _e;
|
|
40996
|
+
var _a, _b, _c, _d, _e, _f;
|
|
40827
40997
|
for (const subscriber of this.participantSubscribers.values()) {
|
|
40828
40998
|
subscriber.unsubscribeAll();
|
|
40829
40999
|
}
|
|
@@ -40837,6 +41007,12 @@ class AzureCommunicationCallAdapter {
|
|
|
40837
41007
|
if (this.callingSoundSubscriber) {
|
|
40838
41008
|
this.callingSoundSubscriber.unsubscribeAll();
|
|
40839
41009
|
}
|
|
41010
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
41011
|
+
const breakoutRoomsFeature = (_f = this.call) === null || _f === void 0 ? void 0 : _f.feature(communicationCalling.Features.BreakoutRooms);
|
|
41012
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
41013
|
+
if (breakoutRoomsFeature) {
|
|
41014
|
+
breakoutRoomsFeature.off('breakoutRoomsUpdated', this.breakoutRoomsUpdated.bind(this));
|
|
41015
|
+
}
|
|
40840
41016
|
}
|
|
40841
41017
|
/* @conditional-compile-remove(acs-close-captions) */
|
|
40842
41018
|
captionsKindChanged() {
|
|
@@ -40929,19 +41105,21 @@ class AzureCommunicationCallAdapter {
|
|
|
40929
41105
|
}
|
|
40930
41106
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
40931
41107
|
breakoutRoomsUpdated(eventData) {
|
|
40932
|
-
if (eventData.
|
|
40933
|
-
|
|
40934
|
-
|
|
40935
|
-
|
|
40936
|
-
|
|
40937
|
-
this.breakoutRoomJoined(eventData.data);
|
|
40938
|
-
}
|
|
41108
|
+
if (eventData.type === 'assignedBreakoutRooms') {
|
|
41109
|
+
this.assignedBreakoutRoomUpdated(eventData.data);
|
|
41110
|
+
}
|
|
41111
|
+
else if (eventData.type === 'join') {
|
|
41112
|
+
this.breakoutRoomJoined(eventData.data);
|
|
40939
41113
|
}
|
|
40940
41114
|
this.emitter.emit('breakoutRoomsUpdated', eventData);
|
|
40941
41115
|
}
|
|
40942
41116
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
40943
41117
|
assignedBreakoutRoomUpdated(breakoutRoom) {
|
|
40944
|
-
|
|
41118
|
+
var _a, _b, _c;
|
|
41119
|
+
if (!((_a = this.call) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
41120
|
+
return;
|
|
41121
|
+
}
|
|
41122
|
+
if (((_b = this.originCall) === null || _b === void 0 ? void 0 : _b.id) !== ((_c = this.call) === null || _c === void 0 ? void 0 : _c.id) && (!breakoutRoom || breakoutRoom.state === 'closed')) {
|
|
40945
41123
|
this.returnFromBreakoutRoom();
|
|
40946
41124
|
}
|
|
40947
41125
|
}
|
|
@@ -40990,7 +41168,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40990
41168
|
this.emitter.off(event, listener);
|
|
40991
41169
|
}
|
|
40992
41170
|
asyncTeeErrorToEventEmitter(f) {
|
|
40993
|
-
return __awaiter$
|
|
41171
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40994
41172
|
try {
|
|
40995
41173
|
return yield f();
|
|
40996
41174
|
}
|
|
@@ -41027,7 +41205,7 @@ class AzureCommunicationCallAdapter {
|
|
|
41027
41205
|
* @public
|
|
41028
41206
|
*/
|
|
41029
41207
|
function createAzureCommunicationCallAdapter(args) {
|
|
41030
|
-
return __awaiter$
|
|
41208
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
41031
41209
|
if (communicationCommon.isMicrosoftTeamsUserIdentifier(args.userId)) {
|
|
41032
41210
|
throw new Error('Microsoft Teams user identifier is not supported by AzureCommunicationCallAdapter. Instead use TeamsCallAdapter.');
|
|
41033
41211
|
}
|
|
@@ -41037,8 +41215,6 @@ function createAzureCommunicationCallAdapter(args) {
|
|
|
41037
41215
|
credential: args.credential,
|
|
41038
41216
|
locator: args.locator,
|
|
41039
41217
|
targetCallees: args.targetCallees,
|
|
41040
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
41041
|
-
alternateCallerId: args.alternateCallerId,
|
|
41042
41218
|
options: args.options
|
|
41043
41219
|
});
|
|
41044
41220
|
});
|
|
@@ -41048,15 +41224,12 @@ function createAzureCommunicationCallAdapter(args) {
|
|
|
41048
41224
|
*
|
|
41049
41225
|
* @internal
|
|
41050
41226
|
*/
|
|
41051
|
-
const _createAzureCommunicationCallAdapterInner = (_a) => __awaiter$
|
|
41052
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId, options, telemetryImplementationHint = 'Call' }) {
|
|
41227
|
+
const _createAzureCommunicationCallAdapterInner = (_a) => __awaiter$b(void 0, [_a], void 0, function* ({ userId, displayName, credential, locator, targetCallees, options, telemetryImplementationHint = 'Call' }) {
|
|
41053
41228
|
if (!_isValidIdentifier(userId)) {
|
|
41054
41229
|
throw new Error('Invalid identifier. Please provide valid identifier object.');
|
|
41055
41230
|
}
|
|
41056
41231
|
const callClient = _createStatefulCallClientInner({
|
|
41057
|
-
userId
|
|
41058
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
41059
|
-
alternateCallerId
|
|
41232
|
+
userId
|
|
41060
41233
|
}, undefined, telemetryImplementationHint);
|
|
41061
41234
|
const callAgent = yield callClient.createCallAgent(credential, {
|
|
41062
41235
|
displayName
|
|
@@ -41074,7 +41247,7 @@ const _createAzureCommunicationCallAdapterInner = (_a) => __awaiter$9(void 0, [_
|
|
|
41074
41247
|
/**
|
|
41075
41248
|
* @public
|
|
41076
41249
|
*/
|
|
41077
|
-
const createTeamsCallAdapter = (args) => __awaiter$
|
|
41250
|
+
const createTeamsCallAdapter = (args) => __awaiter$b(void 0, void 0, void 0, function* () {
|
|
41078
41251
|
const { userId, credential, options } = args;
|
|
41079
41252
|
if (communicationCommon.isCommunicationUserIdentifier(userId)) {
|
|
41080
41253
|
throw new Error('Communication User identifier is not supported by TeamsCallAdapter, please use our AzureCommunicationCallAdapter.');
|
|
@@ -41100,8 +41273,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
41100
41273
|
const locator = 'locator' in args ? args.locator : undefined;
|
|
41101
41274
|
const targetCallees = 'targetCallees' in args ? args.targetCallees : undefined;
|
|
41102
41275
|
const displayName = 'displayName' in args ? args.displayName : undefined;
|
|
41103
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
41104
|
-
const alternateCallerId = 'alternateCallerId' in args ? args.alternateCallerId : undefined;
|
|
41105
41276
|
const options = 'options' in args ? args.options : undefined;
|
|
41106
41277
|
// State update needed to rerender the parent component when a new adapter is created.
|
|
41107
41278
|
const [adapter, setAdapter] = React.useState(undefined);
|
|
@@ -41123,7 +41294,7 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
41123
41294
|
if (adapterKind === 'AzureCommunication' && !displayName) {
|
|
41124
41295
|
return;
|
|
41125
41296
|
}
|
|
41126
|
-
(() => __awaiter$
|
|
41297
|
+
(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
41127
41298
|
if (adapterRef.current) {
|
|
41128
41299
|
// Dispose the old adapter when a new one is created.
|
|
41129
41300
|
//
|
|
@@ -41153,7 +41324,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
41153
41324
|
displayName: displayName,
|
|
41154
41325
|
locator,
|
|
41155
41326
|
userId: userId,
|
|
41156
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
|
|
41157
41327
|
options
|
|
41158
41328
|
}));
|
|
41159
41329
|
}
|
|
@@ -41163,7 +41333,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
41163
41333
|
displayName: displayName,
|
|
41164
41334
|
targetCallees,
|
|
41165
41335
|
userId: userId,
|
|
41166
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
|
|
41167
41336
|
options
|
|
41168
41337
|
}));
|
|
41169
41338
|
}
|
|
@@ -41217,15 +41386,13 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
41217
41386
|
locator,
|
|
41218
41387
|
userId,
|
|
41219
41388
|
displayName,
|
|
41220
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
41221
|
-
alternateCallerId,
|
|
41222
41389
|
options,
|
|
41223
41390
|
targetCallees
|
|
41224
41391
|
]);
|
|
41225
41392
|
// Dispose any existing adapter when the component unmounts.
|
|
41226
41393
|
React.useEffect(() => {
|
|
41227
41394
|
return () => {
|
|
41228
|
-
(() => __awaiter$
|
|
41395
|
+
(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
41229
41396
|
if (adapterRef.current) {
|
|
41230
41397
|
if (beforeDisposeRef.current) {
|
|
41231
41398
|
yield beforeDisposeRef.current(adapterRef.current);
|
|
@@ -41320,7 +41487,7 @@ beforeDispose) => {
|
|
|
41320
41487
|
* @public
|
|
41321
41488
|
*/
|
|
41322
41489
|
function createAzureCommunicationCallAdapterFromClient(callClient, callAgent, locatorOrtargetCallees, options) {
|
|
41323
|
-
return __awaiter$
|
|
41490
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
41324
41491
|
const deviceManager = (yield callClient.getDeviceManager());
|
|
41325
41492
|
yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones()]);
|
|
41326
41493
|
if (deviceManager.isSpeakerSelectionAvailable) {
|
|
@@ -41345,7 +41512,7 @@ function createAzureCommunicationCallAdapterFromClient(callClient, callAgent, lo
|
|
|
41345
41512
|
*
|
|
41346
41513
|
* @public
|
|
41347
41514
|
*/
|
|
41348
|
-
const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$
|
|
41515
|
+
const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$b(void 0, void 0, void 0, function* () {
|
|
41349
41516
|
const deviceManager = (yield callClient.getDeviceManager());
|
|
41350
41517
|
yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones()]);
|
|
41351
41518
|
if (deviceManager.isSpeakerSelectionAvailable) {
|
|
@@ -41403,7 +41570,7 @@ const chatSpinnerContainerStyles = {
|
|
|
41403
41570
|
|
|
41404
41571
|
// Copyright (c) Microsoft Corporation.
|
|
41405
41572
|
// Licensed under the MIT License.
|
|
41406
|
-
var __awaiter$
|
|
41573
|
+
var __awaiter$a = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41407
41574
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
41408
41575
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41409
41576
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -41469,7 +41636,7 @@ class CallWithChatBackedCallAdapter {
|
|
|
41469
41636
|
return this.callWithChatAdapter.joinCall(options);
|
|
41470
41637
|
}
|
|
41471
41638
|
};
|
|
41472
|
-
this.leaveCall = (forEveryone) => __awaiter$
|
|
41639
|
+
this.leaveCall = (forEveryone) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.leaveCall(forEveryone); });
|
|
41473
41640
|
this.startCall = (participants, options) => {
|
|
41474
41641
|
if (participants.every((participant) => typeof participant === 'string')) {
|
|
41475
41642
|
return this.callWithChatAdapter.startCall(participants, options);
|
|
@@ -41478,39 +41645,39 @@ class CallWithChatBackedCallAdapter {
|
|
|
41478
41645
|
return this.callWithChatAdapter.startCall(participants, options);
|
|
41479
41646
|
}
|
|
41480
41647
|
};
|
|
41481
|
-
this.setCamera = (sourceId, options) => __awaiter$
|
|
41482
|
-
this.setMicrophone = (sourceId) => __awaiter$
|
|
41483
|
-
this.setSpeaker = (sourceId) => __awaiter$
|
|
41484
|
-
this.askDevicePermission = (constraints) => __awaiter$
|
|
41485
|
-
this.queryCameras = () => __awaiter$
|
|
41486
|
-
this.queryMicrophones = () => __awaiter$
|
|
41487
|
-
this.querySpeakers = () => __awaiter$
|
|
41488
|
-
this.startCamera = (options) => __awaiter$
|
|
41489
|
-
this.stopCamera = () => __awaiter$
|
|
41490
|
-
this.mute = () => __awaiter$
|
|
41491
|
-
this.unmute = () => __awaiter$
|
|
41492
|
-
this.startScreenShare = () => __awaiter$
|
|
41493
|
-
this.stopScreenShare = () => __awaiter$
|
|
41494
|
-
this.raiseHand = () => __awaiter$
|
|
41495
|
-
this.lowerHand = () => __awaiter$
|
|
41496
|
-
this.onReactionClick = (reaction) => __awaiter$
|
|
41497
|
-
this.removeParticipant = (userId) => __awaiter$
|
|
41648
|
+
this.setCamera = (sourceId, options) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.setCamera(sourceId, options); });
|
|
41649
|
+
this.setMicrophone = (sourceId) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.setMicrophone(sourceId); });
|
|
41650
|
+
this.setSpeaker = (sourceId) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.setSpeaker(sourceId); });
|
|
41651
|
+
this.askDevicePermission = (constraints) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.askDevicePermission(constraints); });
|
|
41652
|
+
this.queryCameras = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.queryCameras(); });
|
|
41653
|
+
this.queryMicrophones = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.queryMicrophones(); });
|
|
41654
|
+
this.querySpeakers = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.querySpeakers(); });
|
|
41655
|
+
this.startCamera = (options) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.startCamera(options); });
|
|
41656
|
+
this.stopCamera = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.stopCamera(); });
|
|
41657
|
+
this.mute = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.mute(); });
|
|
41658
|
+
this.unmute = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.unmute(); });
|
|
41659
|
+
this.startScreenShare = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.startScreenShare(); });
|
|
41660
|
+
this.stopScreenShare = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.stopScreenShare(); });
|
|
41661
|
+
this.raiseHand = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.raiseHand(); });
|
|
41662
|
+
this.lowerHand = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.lowerHand(); });
|
|
41663
|
+
this.onReactionClick = (reaction) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.onReactionClick(reaction); });
|
|
41664
|
+
this.removeParticipant = (userId) => __awaiter$a(this, void 0, void 0, function* () {
|
|
41498
41665
|
let participant = userId;
|
|
41499
41666
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
41500
41667
|
participant = _toCommunicationIdentifier(userId);
|
|
41501
41668
|
yield this.callWithChatAdapter.removeParticipant(participant);
|
|
41502
41669
|
});
|
|
41503
|
-
this.createStreamView = (remoteUserId, options) => __awaiter$
|
|
41504
|
-
this.disposeStreamView = (remoteUserId, options) => __awaiter$
|
|
41670
|
+
this.createStreamView = (remoteUserId, options) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.createStreamView(remoteUserId, options); });
|
|
41671
|
+
this.disposeStreamView = (remoteUserId, options) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.disposeStreamView(remoteUserId, options); });
|
|
41505
41672
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
41506
|
-
this.holdCall = () => __awaiter$
|
|
41673
|
+
this.holdCall = () => __awaiter$a(this, void 0, void 0, function* () {
|
|
41507
41674
|
yield this.callWithChatAdapter.holdCall();
|
|
41508
41675
|
});
|
|
41509
41676
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
41510
|
-
this.resumeCall = () => __awaiter$
|
|
41677
|
+
this.resumeCall = () => __awaiter$a(this, void 0, void 0, function* () {
|
|
41511
41678
|
yield this.callWithChatAdapter.resumeCall();
|
|
41512
41679
|
});
|
|
41513
|
-
this.sendDtmfTone = (dtmfTone) => __awaiter$
|
|
41680
|
+
this.sendDtmfTone = (dtmfTone) => __awaiter$a(this, void 0, void 0, function* () {
|
|
41514
41681
|
yield this.callWithChatAdapter.sendDtmfTone(dtmfTone);
|
|
41515
41682
|
});
|
|
41516
41683
|
this.callWithChatAdapter = callWithChatAdapter;
|
|
@@ -41526,7 +41693,7 @@ class CallWithChatBackedCallAdapter {
|
|
|
41526
41693
|
}
|
|
41527
41694
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
41528
41695
|
addParticipant(participant, options) {
|
|
41529
|
-
return __awaiter$
|
|
41696
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41530
41697
|
if (communicationCommon.isPhoneNumberIdentifier(participant) && options) {
|
|
41531
41698
|
return this.callWithChatAdapter.addParticipant(participant, options);
|
|
41532
41699
|
}
|
|
@@ -41540,32 +41707,32 @@ class CallWithChatBackedCallAdapter {
|
|
|
41540
41707
|
return this.callWithChatAdapter.allowUnsupportedBrowserVersion();
|
|
41541
41708
|
}
|
|
41542
41709
|
startCaptions(options) {
|
|
41543
|
-
return __awaiter$
|
|
41710
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41544
41711
|
this.callWithChatAdapter.startCaptions(options);
|
|
41545
41712
|
});
|
|
41546
41713
|
}
|
|
41547
41714
|
stopCaptions() {
|
|
41548
|
-
return __awaiter$
|
|
41715
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41549
41716
|
this.callWithChatAdapter.stopCaptions();
|
|
41550
41717
|
});
|
|
41551
41718
|
}
|
|
41552
41719
|
setCaptionLanguage(language) {
|
|
41553
|
-
return __awaiter$
|
|
41720
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41554
41721
|
this.callWithChatAdapter.setCaptionLanguage(language);
|
|
41555
41722
|
});
|
|
41556
41723
|
}
|
|
41557
41724
|
setSpokenLanguage(language) {
|
|
41558
|
-
return __awaiter$
|
|
41725
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41559
41726
|
this.callWithChatAdapter.setSpokenLanguage(language);
|
|
41560
41727
|
});
|
|
41561
41728
|
}
|
|
41562
41729
|
startVideoBackgroundEffect(videoBackgroundEffect) {
|
|
41563
|
-
return __awaiter$
|
|
41730
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41564
41731
|
yield this.callWithChatAdapter.startVideoBackgroundEffect(videoBackgroundEffect);
|
|
41565
41732
|
});
|
|
41566
41733
|
}
|
|
41567
41734
|
stopVideoBackgroundEffects() {
|
|
41568
|
-
return __awaiter$
|
|
41735
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41569
41736
|
yield this.callWithChatAdapter.stopVideoBackgroundEffects();
|
|
41570
41737
|
});
|
|
41571
41738
|
}
|
|
@@ -41575,41 +41742,53 @@ class CallWithChatBackedCallAdapter {
|
|
|
41575
41742
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground) {
|
|
41576
41743
|
return this.callWithChatAdapter.updateSelectedVideoBackgroundEffect(selectedVideoBackground);
|
|
41577
41744
|
}
|
|
41745
|
+
/* @conditional-compile-remove(DNS) */
|
|
41746
|
+
startNoiseSuppressionEffect() {
|
|
41747
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41748
|
+
return this.callWithChatAdapter.startNoiseSuppressionEffect();
|
|
41749
|
+
});
|
|
41750
|
+
}
|
|
41751
|
+
/* @conditional-compile-remove(DNS) */
|
|
41752
|
+
stopNoiseSuppressionEffect() {
|
|
41753
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41754
|
+
return this.callWithChatAdapter.stopNoiseSuppressionEffect();
|
|
41755
|
+
});
|
|
41756
|
+
}
|
|
41578
41757
|
submitSurvey(survey) {
|
|
41579
|
-
return __awaiter$
|
|
41758
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41580
41759
|
return this.callWithChatAdapter.submitSurvey(survey);
|
|
41581
41760
|
});
|
|
41582
41761
|
}
|
|
41583
41762
|
startSpotlight(userIds) {
|
|
41584
|
-
return __awaiter$
|
|
41763
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41585
41764
|
return this.callWithChatAdapter.startSpotlight(userIds);
|
|
41586
41765
|
});
|
|
41587
41766
|
}
|
|
41588
41767
|
stopSpotlight(userIds) {
|
|
41589
|
-
return __awaiter$
|
|
41768
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41590
41769
|
return this.callWithChatAdapter.stopSpotlight(userIds);
|
|
41591
41770
|
});
|
|
41592
41771
|
}
|
|
41593
41772
|
stopAllSpotlight() {
|
|
41594
|
-
return __awaiter$
|
|
41773
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41595
41774
|
return this.callWithChatAdapter.stopAllSpotlight();
|
|
41596
41775
|
});
|
|
41597
41776
|
}
|
|
41598
41777
|
/* @conditional-compile-remove(soft-mute) */
|
|
41599
41778
|
muteParticipant(userId) {
|
|
41600
|
-
return __awaiter$
|
|
41779
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41601
41780
|
return this.callWithChatAdapter.muteParticipant(userId);
|
|
41602
41781
|
});
|
|
41603
41782
|
}
|
|
41604
41783
|
/* @conditional-compile-remove(soft-mute) */
|
|
41605
41784
|
muteAllRemoteParticipants() {
|
|
41606
|
-
return __awaiter$
|
|
41785
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41607
41786
|
return this.callWithChatAdapter.muteAllRemoteParticipants();
|
|
41608
41787
|
});
|
|
41609
41788
|
}
|
|
41610
41789
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
41611
41790
|
returnFromBreakoutRoom() {
|
|
41612
|
-
return __awaiter$
|
|
41791
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41613
41792
|
return this.callWithChatAdapter.returnFromBreakoutRoom();
|
|
41614
41793
|
});
|
|
41615
41794
|
}
|
|
@@ -41634,6 +41813,8 @@ function callAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState)
|
|
|
41634
41813
|
environmentInfo: callWithChatAdapterState.environmentInfo,
|
|
41635
41814
|
videoBackgroundImages: callWithChatAdapterState.videoBackgroundImages,
|
|
41636
41815
|
onResolveVideoEffectDependency: callWithChatAdapterState.onResolveVideoEffectDependency,
|
|
41816
|
+
/* @conditional-compile-remove(DNS) */
|
|
41817
|
+
onResolveDeepNoiseSuppressionDependency: callWithChatAdapterState.onResolveDeepNoiseSuppressionDependency,
|
|
41637
41818
|
selectedVideoBackgroundEffect: callWithChatAdapterState.selectedVideoBackgroundEffect,
|
|
41638
41819
|
reactions: callWithChatAdapterState.reactions
|
|
41639
41820
|
};
|
|
@@ -41641,7 +41822,7 @@ function callAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState)
|
|
|
41641
41822
|
|
|
41642
41823
|
// Copyright (c) Microsoft Corporation.
|
|
41643
41824
|
// Licensed under the MIT License.
|
|
41644
|
-
var __awaiter$
|
|
41825
|
+
var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41645
41826
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
41646
41827
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41647
41828
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -41662,26 +41843,26 @@ class CallWithChatBackedChatAdapter {
|
|
|
41662
41843
|
// For onStateChange we must convert CallWithChat state to chat state. This involves creating a new handler to be passed into the onStateChange.
|
|
41663
41844
|
// In order to unsubscribe the handler when offStateChange is called we must have a mapping of the original handler to the newly created handler.
|
|
41664
41845
|
this.eventStore = new Map();
|
|
41665
|
-
this.fetchInitialData = () => __awaiter$
|
|
41846
|
+
this.fetchInitialData = () => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.fetchInitialData(); });
|
|
41666
41847
|
// due to a bug in babel, we can't use arrow function here
|
|
41667
41848
|
// affecting conditional-compile-remove(attachment-upload)
|
|
41668
41849
|
// have to bind this since the scope of 'this' is lost when the function is passed as a callback
|
|
41669
41850
|
this.sendMessageHandler = function (content,
|
|
41670
41851
|
/* @conditional-compile-remove(file-sharing-acs) */
|
|
41671
41852
|
options) {
|
|
41672
|
-
return __awaiter$
|
|
41853
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
|
41673
41854
|
yield this.callWithChatAdapter.sendMessage(content, /* @conditional-compile-remove(file-sharing-acs) */ options);
|
|
41674
41855
|
});
|
|
41675
41856
|
};
|
|
41676
41857
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
41677
41858
|
this.uploadImageHandler = function (image, fileName) {
|
|
41678
|
-
return __awaiter$
|
|
41859
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
|
41679
41860
|
return yield this.callWithChatAdapter.uploadImage(image, fileName);
|
|
41680
41861
|
});
|
|
41681
41862
|
};
|
|
41682
41863
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
41683
41864
|
this.deleteImageHandler = function (imageId) {
|
|
41684
|
-
return __awaiter$
|
|
41865
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
|
41685
41866
|
return yield this.callWithChatAdapter.deleteImage(imageId);
|
|
41686
41867
|
});
|
|
41687
41868
|
};
|
|
@@ -41690,10 +41871,10 @@ class CallWithChatBackedChatAdapter {
|
|
|
41690
41871
|
this.uploadImage = this.uploadImageHandler.bind(this);
|
|
41691
41872
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
41692
41873
|
this.deleteImage = this.deleteImageHandler.bind(this);
|
|
41693
|
-
this.sendReadReceipt = (chatMessageId) => __awaiter$
|
|
41694
|
-
this.sendTypingIndicator = () => __awaiter$
|
|
41695
|
-
this.removeParticipant = (userId) => __awaiter$
|
|
41696
|
-
this.loadPreviousChatMessages = (messagesToLoad) => __awaiter$
|
|
41874
|
+
this.sendReadReceipt = (chatMessageId) => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.sendReadReceipt(chatMessageId); });
|
|
41875
|
+
this.sendTypingIndicator = () => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.sendTypingIndicator(); });
|
|
41876
|
+
this.removeParticipant = (userId) => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.removeParticipant(userId); });
|
|
41877
|
+
this.loadPreviousChatMessages = (messagesToLoad) => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.loadPreviousChatMessages(messagesToLoad); });
|
|
41697
41878
|
this.dispose = () => this.callWithChatAdapter.dispose();
|
|
41698
41879
|
this.onStateChange = (handler) => {
|
|
41699
41880
|
const convertedHandler = (state) => {
|
|
@@ -41736,22 +41917,22 @@ class CallWithChatBackedChatAdapter {
|
|
|
41736
41917
|
// affecting conditional-compile-remove(attachment-upload)
|
|
41737
41918
|
// have to bind this since the scope of 'this' is lost when the function is passed as a callback
|
|
41738
41919
|
this.updateMessageHandler = function (messageId, content, options) {
|
|
41739
|
-
return __awaiter$
|
|
41920
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
|
41740
41921
|
yield this.callWithChatAdapter.updateMessage(messageId, content, options);
|
|
41741
41922
|
});
|
|
41742
41923
|
};
|
|
41743
41924
|
this.updateMessage = this.updateMessageHandler.bind(this);
|
|
41744
|
-
this.deleteMessage = (messageId) => __awaiter$
|
|
41925
|
+
this.deleteMessage = (messageId) => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.deleteMessage(messageId); });
|
|
41745
41926
|
this.clearErrors = (errorTypes) => {
|
|
41746
41927
|
throw new Error(`Method not supported in CallWithChatComposite.`);
|
|
41747
41928
|
};
|
|
41748
|
-
this.setTopic = (topicName) => __awaiter$
|
|
41929
|
+
this.setTopic = (topicName) => __awaiter$9(this, void 0, void 0, function* () {
|
|
41749
41930
|
throw new Error(`Chat Topics are not supported in CallWithChatComposite.`);
|
|
41750
41931
|
});
|
|
41751
41932
|
this.callWithChatAdapter = callWithChatAdapter;
|
|
41752
41933
|
}
|
|
41753
41934
|
downloadResourceToCache(resourceDetails) {
|
|
41754
|
-
return __awaiter$
|
|
41935
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
|
41755
41936
|
this.callWithChatAdapter.downloadResourceToCache(resourceDetails);
|
|
41756
41937
|
});
|
|
41757
41938
|
}
|
|
@@ -42224,6 +42405,8 @@ function callWithChatAdapterStateFromBackingStates(callAdapter) {
|
|
|
42224
42405
|
environmentInfo: callAdapterState.environmentInfo,
|
|
42225
42406
|
videoBackgroundImages: callAdapterState.videoBackgroundImages,
|
|
42226
42407
|
onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency,
|
|
42408
|
+
/* @conditional-compile-remove(DNS) */
|
|
42409
|
+
onResolveDeepNoiseSuppressionDependency: callAdapterState.onResolveDeepNoiseSuppressionDependency,
|
|
42227
42410
|
selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect,
|
|
42228
42411
|
/* @conditional-compile-remove(hide-attendee-name) */
|
|
42229
42412
|
/** Hide attendee names in teams meeting */
|
|
@@ -42243,12 +42426,14 @@ function mergeChatAdapterStateIntoCallWithChatAdapterState(existingCallWithChatA
|
|
|
42243
42426
|
function mergeCallAdapterStateIntoCallWithChatAdapterState(existingCallWithChatAdapterState, callAdapterState) {
|
|
42244
42427
|
return Object.assign(Object.assign({}, existingCallWithChatAdapterState), { userId: callAdapterState.userId, page: callAdapterState.page, displayName: callAdapterState.displayName, devices: callAdapterState.devices, call: callAdapterState.call, isLocalPreviewMicrophoneEnabled: callAdapterState.isLocalPreviewMicrophoneEnabled, isTeamsCall: callAdapterState.isTeamsCall, isTeamsMeeting: callAdapterState.isTeamsMeeting, latestCallErrors: callAdapterState.latestErrors,
|
|
42245
42428
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
42246
|
-
latestCallNotifications: callAdapterState.latestNotifications, videoBackgroundImages: callAdapterState.videoBackgroundImages, onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency,
|
|
42429
|
+
latestCallNotifications: callAdapterState.latestNotifications, videoBackgroundImages: callAdapterState.videoBackgroundImages, onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency,
|
|
42430
|
+
/* @conditional-compile-remove(DNS) */
|
|
42431
|
+
onResolveDeepNoiseSuppressionDependency: callAdapterState.onResolveDeepNoiseSuppressionDependency, selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect });
|
|
42247
42432
|
}
|
|
42248
42433
|
|
|
42249
42434
|
// Copyright (c) Microsoft Corporation.
|
|
42250
42435
|
// Licensed under the MIT License.
|
|
42251
|
-
var __awaiter$
|
|
42436
|
+
var __awaiter$8 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42252
42437
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42253
42438
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
42254
42439
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -42316,7 +42501,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42316
42501
|
};
|
|
42317
42502
|
this.callAdapter.onStateChange(onCallStateChange);
|
|
42318
42503
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
42319
|
-
this.callAdapter.on('breakoutRoomsUpdated', (eventData) => __awaiter$
|
|
42504
|
+
this.callAdapter.on('breakoutRoomsUpdated', (eventData) => __awaiter$8(this, void 0, void 0, function* () {
|
|
42320
42505
|
if (eventData.type === 'join') {
|
|
42321
42506
|
yield this.breakoutRoomJoined(eventData.data);
|
|
42322
42507
|
}
|
|
@@ -42340,7 +42525,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42340
42525
|
}
|
|
42341
42526
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
42342
42527
|
breakoutRoomJoined(call) {
|
|
42343
|
-
return __awaiter$
|
|
42528
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42344
42529
|
var _a;
|
|
42345
42530
|
const targetThreadId = call.info.threadId;
|
|
42346
42531
|
// If the chat adapter is not on the target thread then we need to switch to the breakout room chat adapter
|
|
@@ -42375,7 +42560,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42375
42560
|
}
|
|
42376
42561
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
42377
42562
|
setBreakoutRoomChatAdapterToThread(targetThreadId) {
|
|
42378
|
-
return __awaiter$
|
|
42563
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42379
42564
|
if (this.breakoutRoomChatAdapter) {
|
|
42380
42565
|
// If the breakout room chat adapter is not set on the target thread then unsubscribe, dispose, and
|
|
42381
42566
|
// reinitialize the chat adapter for the target thread
|
|
@@ -42483,6 +42668,10 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42483
42668
|
this.startVideoBackgroundEffect.bind(this);
|
|
42484
42669
|
this.stopVideoBackgroundEffects.bind(this);
|
|
42485
42670
|
this.updateBackgroundPickerImages.bind(this);
|
|
42671
|
+
/* @conditional-compile-remove(DNS) */
|
|
42672
|
+
this.startNoiseSuppressionEffect.bind(this);
|
|
42673
|
+
/* @conditional-compile-remove(DNS) */
|
|
42674
|
+
this.stopNoiseSuppressionEffect.bind(this);
|
|
42486
42675
|
}
|
|
42487
42676
|
/** Join existing Call. */
|
|
42488
42677
|
joinCall(options) {
|
|
@@ -42495,7 +42684,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42495
42684
|
}
|
|
42496
42685
|
/** Leave current Call. */
|
|
42497
42686
|
leaveCall(forEveryone) {
|
|
42498
|
-
return __awaiter$
|
|
42687
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42499
42688
|
// Only remove self from the GroupCall. Contoso must manage access to Chat.
|
|
42500
42689
|
yield this.callAdapter.leaveCall(forEveryone);
|
|
42501
42690
|
});
|
|
@@ -42542,7 +42731,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42542
42731
|
}
|
|
42543
42732
|
/** Remove a participant from the Call only. */
|
|
42544
42733
|
removeParticipant(userId) {
|
|
42545
|
-
return __awaiter$
|
|
42734
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42546
42735
|
let participant = userId;
|
|
42547
42736
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
42548
42737
|
participant = _toCommunicationIdentifier(userId);
|
|
@@ -42550,132 +42739,132 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42550
42739
|
});
|
|
42551
42740
|
}
|
|
42552
42741
|
setCamera(device, options) {
|
|
42553
|
-
return __awaiter$
|
|
42742
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42554
42743
|
yield this.callAdapter.setCamera(device, options);
|
|
42555
42744
|
});
|
|
42556
42745
|
}
|
|
42557
42746
|
/** Set the microphone to be used in the Call. */
|
|
42558
42747
|
setMicrophone(device) {
|
|
42559
|
-
return __awaiter$
|
|
42748
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42560
42749
|
yield this.callAdapter.setMicrophone(device);
|
|
42561
42750
|
});
|
|
42562
42751
|
}
|
|
42563
42752
|
/** Set the speaker to be used in the Call. */
|
|
42564
42753
|
setSpeaker(device) {
|
|
42565
|
-
return __awaiter$
|
|
42754
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42566
42755
|
yield this.callAdapter.setSpeaker(device);
|
|
42567
42756
|
});
|
|
42568
42757
|
}
|
|
42569
42758
|
askDevicePermission(constraints) {
|
|
42570
|
-
return __awaiter$
|
|
42759
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42571
42760
|
yield this.callAdapter.askDevicePermission(constraints);
|
|
42572
42761
|
});
|
|
42573
42762
|
}
|
|
42574
42763
|
/** Query for available cameras. */
|
|
42575
42764
|
queryCameras() {
|
|
42576
|
-
return __awaiter$
|
|
42765
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42577
42766
|
return yield this.callAdapter.queryCameras();
|
|
42578
42767
|
});
|
|
42579
42768
|
}
|
|
42580
42769
|
/** Query for available microphones. */
|
|
42581
42770
|
queryMicrophones() {
|
|
42582
|
-
return __awaiter$
|
|
42771
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42583
42772
|
return yield this.callAdapter.queryMicrophones();
|
|
42584
42773
|
});
|
|
42585
42774
|
}
|
|
42586
42775
|
/** Query for available speakers. */
|
|
42587
42776
|
querySpeakers() {
|
|
42588
|
-
return __awaiter$
|
|
42777
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42589
42778
|
return yield this.callAdapter.querySpeakers();
|
|
42590
42779
|
});
|
|
42591
42780
|
}
|
|
42592
42781
|
/** Start the camera for the user in the Call. */
|
|
42593
42782
|
startCamera(options) {
|
|
42594
|
-
return __awaiter$
|
|
42783
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42595
42784
|
yield this.callAdapter.startCamera(options);
|
|
42596
42785
|
});
|
|
42597
42786
|
}
|
|
42598
42787
|
/** Stop the camera for the user in the Call. */
|
|
42599
42788
|
stopCamera() {
|
|
42600
|
-
return __awaiter$
|
|
42789
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42601
42790
|
yield this.callAdapter.stopCamera();
|
|
42602
42791
|
});
|
|
42603
42792
|
}
|
|
42604
42793
|
/** Mute the user in the Call. */
|
|
42605
42794
|
mute() {
|
|
42606
|
-
return __awaiter$
|
|
42795
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42607
42796
|
yield this.callAdapter.mute();
|
|
42608
42797
|
});
|
|
42609
42798
|
}
|
|
42610
42799
|
/** Unmute the user in the Call. */
|
|
42611
42800
|
unmute() {
|
|
42612
|
-
return __awaiter$
|
|
42801
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42613
42802
|
yield this.callAdapter.unmute();
|
|
42614
42803
|
});
|
|
42615
42804
|
}
|
|
42616
42805
|
/** Trigger the user to start screen share. */
|
|
42617
42806
|
startScreenShare() {
|
|
42618
|
-
return __awaiter$
|
|
42807
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42619
42808
|
yield this.callAdapter.startScreenShare();
|
|
42620
42809
|
});
|
|
42621
42810
|
}
|
|
42622
42811
|
/** Stop the current active screen share. */
|
|
42623
42812
|
stopScreenShare() {
|
|
42624
|
-
return __awaiter$
|
|
42813
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42625
42814
|
yield this.callAdapter.stopScreenShare();
|
|
42626
42815
|
});
|
|
42627
42816
|
}
|
|
42628
42817
|
/** Raise hand for local user. */
|
|
42629
42818
|
raiseHand() {
|
|
42630
|
-
return __awaiter$
|
|
42819
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42631
42820
|
yield this.callAdapter.raiseHand();
|
|
42632
42821
|
});
|
|
42633
42822
|
}
|
|
42634
42823
|
/** Lower hand for local user. */
|
|
42635
42824
|
lowerHand() {
|
|
42636
|
-
return __awaiter$
|
|
42825
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42637
42826
|
yield this.callAdapter.lowerHand();
|
|
42638
42827
|
});
|
|
42639
42828
|
}
|
|
42640
42829
|
/** Reaction clicked by the local user. */
|
|
42641
42830
|
onReactionClick(reaction) {
|
|
42642
|
-
return __awaiter$
|
|
42831
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42643
42832
|
yield this.callAdapter.onReactionClick(reaction);
|
|
42644
42833
|
});
|
|
42645
42834
|
}
|
|
42646
42835
|
/** Create a stream view for a remote participants video feed. */
|
|
42647
42836
|
createStreamView(remoteUserId, options) {
|
|
42648
|
-
return __awaiter$
|
|
42837
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42649
42838
|
return yield this.callAdapter.createStreamView(remoteUserId, options);
|
|
42650
42839
|
});
|
|
42651
42840
|
}
|
|
42652
42841
|
/** Dispose of a created stream view of a remote participants video feed. */
|
|
42653
42842
|
disposeStreamView(remoteUserId, options) {
|
|
42654
|
-
return __awaiter$
|
|
42843
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42655
42844
|
yield this.callAdapter.disposeStreamView(remoteUserId, options);
|
|
42656
42845
|
});
|
|
42657
42846
|
}
|
|
42658
42847
|
/** Dispose of a remote screen share */
|
|
42659
42848
|
disposeScreenShareStreamView(remoteUserId) {
|
|
42660
|
-
return __awaiter$
|
|
42849
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42661
42850
|
yield this.callAdapter.disposeScreenShareStreamView(remoteUserId);
|
|
42662
42851
|
});
|
|
42663
42852
|
}
|
|
42664
42853
|
/** Dispose of a remote video stream */
|
|
42665
42854
|
disposeRemoteVideoStreamView(remoteUserId) {
|
|
42666
|
-
return __awaiter$
|
|
42855
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42667
42856
|
yield this.callAdapter.disposeRemoteVideoStreamView(remoteUserId);
|
|
42668
42857
|
});
|
|
42669
42858
|
}
|
|
42670
42859
|
/** Dispose of the local video stream */
|
|
42671
42860
|
disposeLocalVideoStreamView() {
|
|
42672
|
-
return __awaiter$
|
|
42861
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42673
42862
|
yield this.callAdapter.disposeLocalVideoStreamView();
|
|
42674
42863
|
});
|
|
42675
42864
|
}
|
|
42676
42865
|
/** Fetch initial Call and Chat data such as chat messages. */
|
|
42677
42866
|
fetchInitialData() {
|
|
42678
|
-
return __awaiter$
|
|
42867
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42679
42868
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42680
42869
|
return adapter.fetchInitialData();
|
|
42681
42870
|
});
|
|
@@ -42685,7 +42874,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42685
42874
|
sendMessage(content,
|
|
42686
42875
|
/* @conditional-compile-remove(file-sharing-acs) */
|
|
42687
42876
|
options) {
|
|
42688
|
-
return __awaiter$
|
|
42877
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42689
42878
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42690
42879
|
return adapter.sendMessage(content, /* @conditional-compile-remove(file-sharing-acs) */ options);
|
|
42691
42880
|
});
|
|
@@ -42694,7 +42883,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42694
42883
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
42695
42884
|
/** Upload a chat image. */
|
|
42696
42885
|
uploadImage(image, imageFileName) {
|
|
42697
|
-
return __awaiter$
|
|
42886
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42698
42887
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42699
42888
|
return adapter.uploadImage(image, imageFileName);
|
|
42700
42889
|
});
|
|
@@ -42703,7 +42892,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42703
42892
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
42704
42893
|
/** Delete a chat image. */
|
|
42705
42894
|
deleteImage(imageId) {
|
|
42706
|
-
return __awaiter$
|
|
42895
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42707
42896
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42708
42897
|
return adapter.deleteImage(imageId);
|
|
42709
42898
|
});
|
|
@@ -42711,7 +42900,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42711
42900
|
}
|
|
42712
42901
|
/** Send a chat read receipt. */
|
|
42713
42902
|
sendReadReceipt(chatMessageId) {
|
|
42714
|
-
return __awaiter$
|
|
42903
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42715
42904
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42716
42905
|
return adapter.sendReadReceipt(chatMessageId);
|
|
42717
42906
|
});
|
|
@@ -42719,7 +42908,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42719
42908
|
}
|
|
42720
42909
|
/** Send an isTyping indicator. */
|
|
42721
42910
|
sendTypingIndicator() {
|
|
42722
|
-
return __awaiter$
|
|
42911
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42723
42912
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42724
42913
|
return adapter.sendTypingIndicator();
|
|
42725
42914
|
});
|
|
@@ -42727,7 +42916,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42727
42916
|
}
|
|
42728
42917
|
/** Load previous Chat messages. */
|
|
42729
42918
|
loadPreviousChatMessages(messagesToLoad) {
|
|
42730
|
-
return __awaiter$
|
|
42919
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42731
42920
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42732
42921
|
return adapter.loadPreviousChatMessages(messagesToLoad);
|
|
42733
42922
|
});
|
|
@@ -42735,7 +42924,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42735
42924
|
}
|
|
42736
42925
|
/** Update an existing message. */
|
|
42737
42926
|
updateMessage(messageId, content, options) {
|
|
42738
|
-
return __awaiter$
|
|
42927
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42739
42928
|
return this.executeWithResolvedChatAdapter((adapter) => {
|
|
42740
42929
|
return adapter.updateMessage(messageId, content, options);
|
|
42741
42930
|
});
|
|
@@ -42743,14 +42932,14 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42743
42932
|
}
|
|
42744
42933
|
/** Delete an existing message. */
|
|
42745
42934
|
deleteMessage(messageId) {
|
|
42746
|
-
return __awaiter$
|
|
42935
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42747
42936
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42748
42937
|
return adapter.deleteMessage(messageId);
|
|
42749
42938
|
});
|
|
42750
42939
|
});
|
|
42751
42940
|
}
|
|
42752
42941
|
downloadResourceToCache(resourceDetails) {
|
|
42753
|
-
return __awaiter$
|
|
42942
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42754
42943
|
this.executeWithResolvedChatAdapter((adapter) => {
|
|
42755
42944
|
adapter.downloadResourceToCache(resourceDetails);
|
|
42756
42945
|
});
|
|
@@ -42763,19 +42952,19 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42763
42952
|
}
|
|
42764
42953
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
42765
42954
|
holdCall() {
|
|
42766
|
-
return __awaiter$
|
|
42955
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42767
42956
|
return yield this.callAdapter.holdCall();
|
|
42768
42957
|
});
|
|
42769
42958
|
}
|
|
42770
42959
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
42771
42960
|
resumeCall() {
|
|
42772
|
-
return __awaiter$
|
|
42961
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42773
42962
|
return yield this.callAdapter.resumeCall();
|
|
42774
42963
|
});
|
|
42775
42964
|
}
|
|
42776
42965
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
42777
42966
|
addParticipant(participant, options) {
|
|
42778
|
-
return __awaiter$
|
|
42967
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42779
42968
|
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
|
42780
42969
|
return yield this.callAdapter.addParticipant(participant);
|
|
42781
42970
|
}
|
|
@@ -42785,7 +42974,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42785
42974
|
});
|
|
42786
42975
|
}
|
|
42787
42976
|
sendDtmfTone(dtmfTone) {
|
|
42788
|
-
return __awaiter$
|
|
42977
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42789
42978
|
return yield this.callAdapter.sendDtmfTone(dtmfTone);
|
|
42790
42979
|
});
|
|
42791
42980
|
}
|
|
@@ -42794,32 +42983,32 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42794
42983
|
return this.callAdapter.allowUnsupportedBrowserVersion();
|
|
42795
42984
|
}
|
|
42796
42985
|
startCaptions(options) {
|
|
42797
|
-
return __awaiter$
|
|
42986
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42798
42987
|
yield this.callAdapter.startCaptions(options);
|
|
42799
42988
|
});
|
|
42800
42989
|
}
|
|
42801
42990
|
stopCaptions() {
|
|
42802
|
-
return __awaiter$
|
|
42991
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42803
42992
|
yield this.callAdapter.stopCaptions();
|
|
42804
42993
|
});
|
|
42805
42994
|
}
|
|
42806
42995
|
setCaptionLanguage(language) {
|
|
42807
|
-
return __awaiter$
|
|
42996
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42808
42997
|
yield this.callAdapter.setCaptionLanguage(language);
|
|
42809
42998
|
});
|
|
42810
42999
|
}
|
|
42811
43000
|
setSpokenLanguage(language) {
|
|
42812
|
-
return __awaiter$
|
|
43001
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42813
43002
|
yield this.callAdapter.setSpokenLanguage(language);
|
|
42814
43003
|
});
|
|
42815
43004
|
}
|
|
42816
43005
|
startVideoBackgroundEffect(videoBackgroundEffect) {
|
|
42817
|
-
return __awaiter$
|
|
43006
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42818
43007
|
yield this.callAdapter.startVideoBackgroundEffect(videoBackgroundEffect);
|
|
42819
43008
|
});
|
|
42820
43009
|
}
|
|
42821
43010
|
stopVideoBackgroundEffects() {
|
|
42822
|
-
return __awaiter$
|
|
43011
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42823
43012
|
return yield this.callAdapter.stopVideoBackgroundEffects();
|
|
42824
43013
|
});
|
|
42825
43014
|
}
|
|
@@ -42829,47 +43018,63 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42829
43018
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground) {
|
|
42830
43019
|
return this.callAdapter.updateSelectedVideoBackgroundEffect(selectedVideoBackground);
|
|
42831
43020
|
}
|
|
43021
|
+
/* @conditional-compile-remove(DNS) */
|
|
43022
|
+
startNoiseSuppressionEffect() {
|
|
43023
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
43024
|
+
return yield this.callAdapter.startNoiseSuppressionEffect();
|
|
43025
|
+
});
|
|
43026
|
+
}
|
|
43027
|
+
/* @conditional-compile-remove(DNS) */
|
|
43028
|
+
stopNoiseSuppressionEffect() {
|
|
43029
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
43030
|
+
return yield this.callAdapter.stopNoiseSuppressionEffect();
|
|
43031
|
+
});
|
|
43032
|
+
}
|
|
42832
43033
|
submitSurvey(survey) {
|
|
42833
|
-
return __awaiter$
|
|
43034
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42834
43035
|
return this.callAdapter.submitSurvey(survey);
|
|
42835
43036
|
});
|
|
42836
43037
|
}
|
|
42837
43038
|
startSpotlight(userIds) {
|
|
42838
|
-
return __awaiter$
|
|
43039
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42839
43040
|
return this.callAdapter.startSpotlight(userIds);
|
|
42840
43041
|
});
|
|
42841
43042
|
}
|
|
42842
43043
|
stopSpotlight(userIds) {
|
|
42843
|
-
return __awaiter$
|
|
43044
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42844
43045
|
return this.callAdapter.stopSpotlight(userIds);
|
|
42845
43046
|
});
|
|
42846
43047
|
}
|
|
42847
43048
|
stopAllSpotlight() {
|
|
42848
|
-
return __awaiter$
|
|
43049
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42849
43050
|
return this.callAdapter.stopAllSpotlight();
|
|
42850
43051
|
});
|
|
42851
43052
|
}
|
|
42852
43053
|
/* @conditional-compile-remove(soft-mute) */
|
|
42853
43054
|
muteParticipant(userId) {
|
|
42854
|
-
return __awaiter$
|
|
43055
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42855
43056
|
return this.callAdapter.muteParticipant(userId);
|
|
42856
43057
|
});
|
|
42857
43058
|
}
|
|
42858
43059
|
/* @conditional-compile-remove(soft-mute) */
|
|
42859
43060
|
muteAllRemoteParticipants() {
|
|
42860
|
-
return __awaiter$
|
|
43061
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42861
43062
|
return this.callAdapter.muteAllRemoteParticipants();
|
|
42862
43063
|
});
|
|
42863
43064
|
}
|
|
42864
43065
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
42865
43066
|
returnFromBreakoutRoom() {
|
|
42866
|
-
return __awaiter$
|
|
42867
|
-
var _a;
|
|
42868
|
-
if (this.originCallChatAdapter
|
|
42869
|
-
(_a = this.
|
|
43067
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
43068
|
+
var _a, _b, _c, _d;
|
|
43069
|
+
if (this.originCallChatAdapter &&
|
|
43070
|
+
((_a = this.context.getState().chat) === null || _a === void 0 ? void 0 : _a.threadId) !== this.originCallChatAdapter.getState().thread.threadId) {
|
|
43071
|
+
(_b = this.breakoutRoomChatAdapter) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
42870
43072
|
this.updateChatAdapter(this.originCallChatAdapter);
|
|
42871
43073
|
}
|
|
42872
|
-
|
|
43074
|
+
const originCallId = (_d = (_c = this.callAdapter.getState().call) === null || _c === void 0 ? void 0 : _c.breakoutRooms) === null || _d === void 0 ? void 0 : _d.breakoutRoomOriginCallId;
|
|
43075
|
+
if (originCallId) {
|
|
43076
|
+
yield this.callAdapter.returnFromBreakoutRoom();
|
|
43077
|
+
}
|
|
42873
43078
|
});
|
|
42874
43079
|
}
|
|
42875
43080
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -42969,6 +43174,10 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42969
43174
|
case 'spotlightChanged':
|
|
42970
43175
|
this.callAdapter.on('spotlightChanged', listener);
|
|
42971
43176
|
break;
|
|
43177
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
43178
|
+
case 'breakoutRoomsUpdated':
|
|
43179
|
+
this.callAdapter.on('breakoutRoomsUpdated', listener);
|
|
43180
|
+
break;
|
|
42972
43181
|
default:
|
|
42973
43182
|
throw `Unknown AzureCommunicationCallWithChatAdapter Event: ${event}`;
|
|
42974
43183
|
}
|
|
@@ -43070,6 +43279,10 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
43070
43279
|
case 'spotlightChanged':
|
|
43071
43280
|
this.callAdapter.off('spotlightChanged', listener);
|
|
43072
43281
|
break;
|
|
43282
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
|
43283
|
+
case 'breakoutRoomsUpdated':
|
|
43284
|
+
this.callAdapter.off('breakoutRoomsUpdated', listener);
|
|
43285
|
+
break;
|
|
43073
43286
|
default:
|
|
43074
43287
|
throw `Unknown AzureCommunicationCallWithChatAdapter Event: ${event}`;
|
|
43075
43288
|
}
|
|
@@ -43096,7 +43309,7 @@ class CallAndChatProvider {
|
|
|
43096
43309
|
return false;
|
|
43097
43310
|
}
|
|
43098
43311
|
getChatThreadPromise() {
|
|
43099
|
-
return __awaiter$
|
|
43312
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
43100
43313
|
return this.getChatThread();
|
|
43101
43314
|
});
|
|
43102
43315
|
}
|
|
@@ -43121,7 +43334,7 @@ class TeamsMeetingLinkProvider {
|
|
|
43121
43334
|
throw new Error('Chat thread ID should be retrieved from call.callInfo using method getChatThreadPromise');
|
|
43122
43335
|
}
|
|
43123
43336
|
getChatThreadPromise() {
|
|
43124
|
-
return __awaiter$
|
|
43337
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
43125
43338
|
{
|
|
43126
43339
|
// Wait for the call to be connected and get the chat thread ID from `call.callInfo`.
|
|
43127
43340
|
const chatThreadPromise = new Promise((resolve) => {
|
|
@@ -43165,7 +43378,7 @@ class TeamsMeetingIdProvider {
|
|
|
43165
43378
|
* @returns the chat thread ID for the given meeting ID.
|
|
43166
43379
|
*/
|
|
43167
43380
|
getChatThreadPromise() {
|
|
43168
|
-
return __awaiter$
|
|
43381
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
43169
43382
|
return new Promise((resolve) => {
|
|
43170
43383
|
const stateChangeListener = (state) => {
|
|
43171
43384
|
var _a, _b, _c;
|
|
@@ -43197,7 +43410,7 @@ class TeamsMeetingIdProvider {
|
|
|
43197
43410
|
*
|
|
43198
43411
|
* @public
|
|
43199
43412
|
*/
|
|
43200
|
-
const createAzureCommunicationCallWithChatAdapter = (_a) => __awaiter$
|
|
43413
|
+
const createAzureCommunicationCallWithChatAdapter = (_a) => __awaiter$8(void 0, [_a], void 0, function* ({ userId, displayName, credential, endpoint, locator,
|
|
43201
43414
|
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId, callAdapterOptions }) {
|
|
43202
43415
|
const callAdapterLocator = isTeamsMeetingLocator(locator) ? locator : locator.callLocator;
|
|
43203
43416
|
const callAdapter = _createAzureCommunicationCallAdapterInner({
|
|
@@ -43279,7 +43492,7 @@ beforeDispose) => {
|
|
|
43279
43492
|
if (!credential || !displayName || !endpoint || !locator || !userId) {
|
|
43280
43493
|
return;
|
|
43281
43494
|
}
|
|
43282
|
-
(() => __awaiter$
|
|
43495
|
+
(() => __awaiter$8(void 0, void 0, void 0, function* () {
|
|
43283
43496
|
if (adapterRef.current) {
|
|
43284
43497
|
// Dispose the old adapter when a new one is created.
|
|
43285
43498
|
//
|
|
@@ -43330,7 +43543,7 @@ beforeDispose) => {
|
|
|
43330
43543
|
// Dispose any existing adapter when the component unmounts.
|
|
43331
43544
|
React.useEffect(() => {
|
|
43332
43545
|
return () => {
|
|
43333
|
-
(() => __awaiter$
|
|
43546
|
+
(() => __awaiter$8(void 0, void 0, void 0, function* () {
|
|
43334
43547
|
if (adapterRef.current) {
|
|
43335
43548
|
if (beforeDisposeRef.current) {
|
|
43336
43549
|
yield beforeDisposeRef.current(adapterRef.current);
|
|
@@ -43352,7 +43565,7 @@ beforeDispose) => {
|
|
|
43352
43565
|
*
|
|
43353
43566
|
* @public
|
|
43354
43567
|
*/
|
|
43355
|
-
const createAzureCommunicationCallWithChatAdapterFromClients = (_b) => __awaiter$
|
|
43568
|
+
const createAzureCommunicationCallWithChatAdapterFromClients = (_b) => __awaiter$8(void 0, [_b], void 0, function* ({ callClient, callAgent, callLocator, chatClient, chatThreadClient, callAdapterOptions }) {
|
|
43356
43569
|
const callAdapter = yield createAzureCommunicationCallAdapterFromClient(callClient, callAgent, callLocator, callAdapterOptions);
|
|
43357
43570
|
const chatAdapter = yield createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient);
|
|
43358
43571
|
return new AzureCommunicationCallWithChatAdapter(callAdapter, chatAdapter);
|
|
@@ -43669,7 +43882,7 @@ const COMPOSITE_LOCALE_ZH_TW = {
|
|
|
43669
43882
|
|
|
43670
43883
|
// Copyright (c) Microsoft Corporation.
|
|
43671
43884
|
// Licensed under the MIT License.
|
|
43672
|
-
var __awaiter$
|
|
43885
|
+
var __awaiter$7 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
43673
43886
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43674
43887
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43675
43888
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -43683,7 +43896,7 @@ var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
|
43683
43896
|
* Dependency resolution for video background effects using lazy loading.
|
|
43684
43897
|
* @public
|
|
43685
43898
|
*/
|
|
43686
|
-
const onResolveVideoEffectDependencyLazy = () => __awaiter$
|
|
43899
|
+
const onResolveVideoEffectDependencyLazy = () => __awaiter$7(void 0, void 0, void 0, function* () {
|
|
43687
43900
|
const module = yield import('@azure/communication-calling-effects');
|
|
43688
43901
|
const createBackgroundBlurEffect = (config) => {
|
|
43689
43902
|
return new module.BackgroundBlurEffect(config);
|
|
@@ -43700,7 +43913,7 @@ const onResolveVideoEffectDependencyLazy = () => __awaiter$5(void 0, void 0, voi
|
|
|
43700
43913
|
|
|
43701
43914
|
// Copyright (c) Microsoft Corporation.
|
|
43702
43915
|
// Licensed under the MIT License.
|
|
43703
|
-
var __awaiter$
|
|
43916
|
+
var __awaiter$6 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
43704
43917
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43705
43918
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43706
43919
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -43714,7 +43927,7 @@ var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
|
43714
43927
|
*
|
|
43715
43928
|
* @public
|
|
43716
43929
|
*/
|
|
43717
|
-
const onResolveVideoEffectDependency = () => __awaiter$
|
|
43930
|
+
const onResolveVideoEffectDependency = () => __awaiter$6(void 0, void 0, void 0, function* () {
|
|
43718
43931
|
const createBackgroundBlurEffect = (config) => {
|
|
43719
43932
|
return new communicationCallingEffects.BackgroundBlurEffect(config);
|
|
43720
43933
|
};
|
|
@@ -43728,6 +43941,55 @@ const onResolveVideoEffectDependency = () => __awaiter$4(void 0, void 0, void 0,
|
|
|
43728
43941
|
return VideoBackgroundEffectsDependency;
|
|
43729
43942
|
});
|
|
43730
43943
|
|
|
43944
|
+
// Copyright (c) Microsoft Corporation.
|
|
43945
|
+
// Licensed under the MIT License.
|
|
43946
|
+
var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
43947
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43948
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43949
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
43950
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43951
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
43952
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43953
|
+
});
|
|
43954
|
+
};
|
|
43955
|
+
/* @conditional-compile-remove(DNS) */
|
|
43956
|
+
/**
|
|
43957
|
+
*
|
|
43958
|
+
* Dependency resolution for video background effects using lazy loading.
|
|
43959
|
+
* @beta
|
|
43960
|
+
*/
|
|
43961
|
+
const onResolveDeepNoiseSuppressionDependencyLazy = () => __awaiter$5(void 0, void 0, void 0, function* () {
|
|
43962
|
+
const module = yield import('@azure/communication-calling-effects');
|
|
43963
|
+
const audioEffect = {
|
|
43964
|
+
noiseSuppression: new module.DeepNoiseSuppressionEffect()
|
|
43965
|
+
};
|
|
43966
|
+
return { deepNoiseSuppressionEffect: audioEffect };
|
|
43967
|
+
});
|
|
43968
|
+
|
|
43969
|
+
// Copyright (c) Microsoft Corporation.
|
|
43970
|
+
// Licensed under the MIT License.
|
|
43971
|
+
var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
43972
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43973
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43974
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
43975
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43976
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
43977
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43978
|
+
});
|
|
43979
|
+
};
|
|
43980
|
+
/* @conditional-compile-remove(DNS) */
|
|
43981
|
+
/**
|
|
43982
|
+
*
|
|
43983
|
+
* Dependency resolution for video background effects using lazy loading.
|
|
43984
|
+
* @beta
|
|
43985
|
+
*/
|
|
43986
|
+
const onResolveDeepNoiseSuppressionDependency = () => __awaiter$4(void 0, void 0, void 0, function* () {
|
|
43987
|
+
const audioEffect = {
|
|
43988
|
+
noiseSuppression: new communicationCallingEffects.DeepNoiseSuppressionEffect()
|
|
43989
|
+
};
|
|
43990
|
+
return { deepNoiseSuppressionEffect: audioEffect };
|
|
43991
|
+
});
|
|
43992
|
+
|
|
43731
43993
|
// Copyright (c) Microsoft Corporation.
|
|
43732
43994
|
// Licensed under the MIT License.
|
|
43733
43995
|
var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -44087,6 +44349,8 @@ exports.loadOutboundCallComposite = loadOutboundCallComposite;
|
|
|
44087
44349
|
exports.modifyInlineImagesInContentString = modifyInlineImagesInContentString;
|
|
44088
44350
|
exports.onRenderCancelIcon = onRenderCancelIcon;
|
|
44089
44351
|
exports.onRenderSubmitIcon = onRenderSubmitIcon;
|
|
44352
|
+
exports.onResolveDeepNoiseSuppressionDependency = onResolveDeepNoiseSuppressionDependency;
|
|
44353
|
+
exports.onResolveDeepNoiseSuppressionDependencyLazy = onResolveDeepNoiseSuppressionDependencyLazy;
|
|
44090
44354
|
exports.onResolveVideoEffectDependency = onResolveVideoEffectDependency;
|
|
44091
44355
|
exports.onResolveVideoEffectDependencyLazy = onResolveVideoEffectDependencyLazy;
|
|
44092
44356
|
exports.removeBrokenImageContentAndClearImageSizeStyles = removeBrokenImageContentAndClearImageSizeStyles;
|
|
@@ -44112,4 +44376,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
|
44112
44376
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
|
44113
44377
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
|
44114
44378
|
exports.useTheme = useTheme;
|
|
44115
|
-
//# sourceMappingURL=index-
|
|
44379
|
+
//# sourceMappingURL=index-D_pIA4Nc.js.map
|