@azure/communication-react 1.19.0-alpha-202408270015 → 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 +121 -75
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-qEJmtx93.js → ChatMessageComponentAsRichTextEditBox-JpEHAh2h.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-qEJmtx93.js.map → ChatMessageComponentAsRichTextEditBox-JpEHAh2h.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BgnerjU-.js → RichTextSendBoxWrapper-ujBB-J3D.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BgnerjU-.js.map → RichTextSendBoxWrapper-ujBB-J3D.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-DejG4i9h.js → index-D_pIA4Nc.js} +673 -531
- package/dist/dist-cjs/communication-react/{index-DejG4i9h.js.map → index-D_pIA4Nc.js.map} +1 -1
- 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/CallContext.d.ts +1 -1
- 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 +17 -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 +16 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +35 -20
- 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/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/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +16 -0
- 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/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
|
@@ -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;
|
|
@@ -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();
|
|
@@ -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'
|
|
@@ -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) {
|
|
@@ -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,
|
|
@@ -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();
|
|
@@ -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
|
}
|
|
@@ -28477,7 +28510,7 @@ class IncomingCallSubscriber {
|
|
|
28477
28510
|
|
|
28478
28511
|
// Copyright (c) Microsoft Corporation.
|
|
28479
28512
|
// Licensed under the MIT License.
|
|
28480
|
-
var __awaiter$
|
|
28513
|
+
var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28481
28514
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28482
28515
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28483
28516
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -28497,14 +28530,14 @@ class ProxyIncomingCall {
|
|
|
28497
28530
|
switch (prop) {
|
|
28498
28531
|
case 'accept': {
|
|
28499
28532
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28500
|
-
return __awaiter$
|
|
28533
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
|
28501
28534
|
return yield target.accept(...args);
|
|
28502
28535
|
});
|
|
28503
28536
|
}, 'IncomingCall.accept');
|
|
28504
28537
|
}
|
|
28505
28538
|
case 'reject': {
|
|
28506
28539
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28507
|
-
return __awaiter$
|
|
28540
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
|
28508
28541
|
return yield target.reject(...args);
|
|
28509
28542
|
});
|
|
28510
28543
|
}, 'IncomingCall.reject');
|
|
@@ -28526,7 +28559,7 @@ const incomingCallDeclaratify = (incomingCall, context) => {
|
|
|
28526
28559
|
|
|
28527
28560
|
// Copyright (c) Microsoft Corporation.
|
|
28528
28561
|
// Licensed under the MIT License.
|
|
28529
|
-
var __awaiter$
|
|
28562
|
+
var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28530
28563
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28531
28564
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28532
28565
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -28546,14 +28579,14 @@ class ProxyTeamsIncomingCall {
|
|
|
28546
28579
|
switch (prop) {
|
|
28547
28580
|
case 'accept': {
|
|
28548
28581
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28549
|
-
return __awaiter$
|
|
28582
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
|
28550
28583
|
return yield target.accept(...args);
|
|
28551
28584
|
});
|
|
28552
28585
|
}, 'IncomingCall.accept');
|
|
28553
28586
|
}
|
|
28554
28587
|
case 'reject': {
|
|
28555
28588
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28556
|
-
return __awaiter$
|
|
28589
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
|
28557
28590
|
return yield target.reject(...args);
|
|
28558
28591
|
});
|
|
28559
28592
|
}, 'IncomingCall.reject');
|
|
@@ -28772,7 +28805,7 @@ const clearCallRelatedState = (context, internalContext) => {
|
|
|
28772
28805
|
|
|
28773
28806
|
// Copyright (c) Microsoft Corporation.
|
|
28774
28807
|
// Licensed under the MIT License.
|
|
28775
|
-
var __awaiter$
|
|
28808
|
+
var __awaiter$y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
28776
28809
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28777
28810
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28778
28811
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -28798,56 +28831,56 @@ class ProxyCallCommon {
|
|
|
28798
28831
|
switch (prop) {
|
|
28799
28832
|
case 'mute': {
|
|
28800
28833
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28801
|
-
return __awaiter$
|
|
28834
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28802
28835
|
return yield target.mute(...args);
|
|
28803
28836
|
});
|
|
28804
28837
|
}, 'Call.mute');
|
|
28805
28838
|
}
|
|
28806
28839
|
case 'unmute': {
|
|
28807
28840
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28808
|
-
return __awaiter$
|
|
28841
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28809
28842
|
return yield target.unmute(...args);
|
|
28810
28843
|
});
|
|
28811
28844
|
}, 'Call.unmute');
|
|
28812
28845
|
}
|
|
28813
28846
|
case 'startVideo': {
|
|
28814
28847
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28815
|
-
return __awaiter$
|
|
28848
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28816
28849
|
return yield target.startVideo(...args);
|
|
28817
28850
|
});
|
|
28818
28851
|
}, 'Call.startVideo');
|
|
28819
28852
|
}
|
|
28820
28853
|
case 'stopVideo': {
|
|
28821
28854
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28822
|
-
return __awaiter$
|
|
28855
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28823
28856
|
return yield target.stopVideo(...args);
|
|
28824
28857
|
});
|
|
28825
28858
|
}, 'Call.stopVideo');
|
|
28826
28859
|
}
|
|
28827
28860
|
case 'startScreenSharing': {
|
|
28828
28861
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28829
|
-
return __awaiter$
|
|
28862
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28830
28863
|
return yield target.startScreenSharing(...args);
|
|
28831
28864
|
});
|
|
28832
28865
|
}, 'Call.startScreenSharing');
|
|
28833
28866
|
}
|
|
28834
28867
|
case 'stopScreenSharing': {
|
|
28835
28868
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28836
|
-
return __awaiter$
|
|
28869
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28837
28870
|
return yield target.stopScreenSharing(...args);
|
|
28838
28871
|
});
|
|
28839
28872
|
}, 'Call.stopScreenSharing');
|
|
28840
28873
|
}
|
|
28841
28874
|
case 'hold': {
|
|
28842
28875
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28843
|
-
return __awaiter$
|
|
28876
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28844
28877
|
return yield target.hold(...args);
|
|
28845
28878
|
});
|
|
28846
28879
|
}, 'Call.hold');
|
|
28847
28880
|
}
|
|
28848
28881
|
case 'resume': {
|
|
28849
28882
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
|
28850
|
-
return __awaiter$
|
|
28883
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
|
28851
28884
|
return yield target.resume(...args);
|
|
28852
28885
|
});
|
|
28853
28886
|
}, 'Call.resume');
|
|
@@ -28915,7 +28948,7 @@ class ProxyTeamsCaptions {
|
|
|
28915
28948
|
get(target, prop) {
|
|
28916
28949
|
switch (prop) {
|
|
28917
28950
|
case 'startCaptions':
|
|
28918
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
28951
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28919
28952
|
var _a, _b;
|
|
28920
28953
|
this._context.setStartCaptionsInProgress(this._call.id, true);
|
|
28921
28954
|
try {
|
|
@@ -28929,7 +28962,7 @@ class ProxyTeamsCaptions {
|
|
|
28929
28962
|
}
|
|
28930
28963
|
}), 'Call.feature');
|
|
28931
28964
|
case 'stopCaptions':
|
|
28932
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
28965
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28933
28966
|
const ret = yield target.stopCaptions(...args);
|
|
28934
28967
|
this._context.setIsCaptionActive(this._call.id, false);
|
|
28935
28968
|
this._context.setStartCaptionsInProgress(this._call.id, false);
|
|
@@ -28937,13 +28970,13 @@ class ProxyTeamsCaptions {
|
|
|
28937
28970
|
return ret;
|
|
28938
28971
|
}), 'Call.feature');
|
|
28939
28972
|
case 'setSpokenLanguage':
|
|
28940
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
28973
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28941
28974
|
const ret = yield target.setSpokenLanguage(...args);
|
|
28942
28975
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
|
28943
28976
|
return ret;
|
|
28944
28977
|
}), 'Call.feature');
|
|
28945
28978
|
case 'setCaptionLanguage':
|
|
28946
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
28979
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28947
28980
|
const ret = yield target.setCaptionLanguage(...args);
|
|
28948
28981
|
this._context.setSelectedCaptionLanguage(this._call.id, args[0]);
|
|
28949
28982
|
return ret;
|
|
@@ -28965,7 +28998,7 @@ class ProxyCaptions {
|
|
|
28965
28998
|
get(target, prop) {
|
|
28966
28999
|
switch (prop) {
|
|
28967
29000
|
case 'startCaptions':
|
|
28968
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29001
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28969
29002
|
var _a, _b;
|
|
28970
29003
|
this._context.setStartCaptionsInProgress(this._call.id, true);
|
|
28971
29004
|
try {
|
|
@@ -28979,7 +29012,7 @@ class ProxyCaptions {
|
|
|
28979
29012
|
}
|
|
28980
29013
|
}), 'Call.feature');
|
|
28981
29014
|
case 'stopCaptions':
|
|
28982
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29015
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28983
29016
|
const ret = yield target.stopCaptions(...args);
|
|
28984
29017
|
this._context.setIsCaptionActive(this._call.id, false);
|
|
28985
29018
|
this._context.setStartCaptionsInProgress(this._call.id, false);
|
|
@@ -28987,7 +29020,7 @@ class ProxyCaptions {
|
|
|
28987
29020
|
return ret;
|
|
28988
29021
|
}), 'Call.feature');
|
|
28989
29022
|
case 'setSpokenLanguage':
|
|
28990
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29023
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
28991
29024
|
const ret = yield target.setSpokenLanguage(...args);
|
|
28992
29025
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
|
28993
29026
|
return ret;
|
|
@@ -29007,12 +29040,12 @@ class ProxySpotlightCallFeature {
|
|
|
29007
29040
|
get(target, prop) {
|
|
29008
29041
|
switch (prop) {
|
|
29009
29042
|
case 'startSpotlight':
|
|
29010
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29043
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
29011
29044
|
const ret = yield target.startSpotlight(...args);
|
|
29012
29045
|
return ret;
|
|
29013
29046
|
}), 'Call.feature');
|
|
29014
29047
|
case 'stopSpotlight':
|
|
29015
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29048
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, void 0, void 0, function* () {
|
|
29016
29049
|
const ret = yield target.stopSpotlight(...args);
|
|
29017
29050
|
return ret;
|
|
29018
29051
|
}), 'Call.feature');
|
|
@@ -29054,7 +29087,7 @@ class ProxyTransferCallFeature {
|
|
|
29054
29087
|
|
|
29055
29088
|
// Copyright (c) Microsoft Corporation.
|
|
29056
29089
|
// Licensed under the MIT License.
|
|
29057
|
-
var __awaiter$
|
|
29090
|
+
var __awaiter$x = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29058
29091
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29059
29092
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29060
29093
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -29068,7 +29101,7 @@ class ProxyCall extends ProxyCallCommon {
|
|
|
29068
29101
|
switch (prop) {
|
|
29069
29102
|
case 'addParticipant': {
|
|
29070
29103
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
|
29071
|
-
return __awaiter$
|
|
29104
|
+
return __awaiter$x(this, void 0, void 0, function* () {
|
|
29072
29105
|
return yield target.addParticipant(...args);
|
|
29073
29106
|
});
|
|
29074
29107
|
}, 'Call.addParticipant');
|
|
@@ -29303,7 +29336,7 @@ class InternalCallContext {
|
|
|
29303
29336
|
|
|
29304
29337
|
// Copyright (c) Microsoft Corporation.
|
|
29305
29338
|
// Licensed under the MIT License.
|
|
29306
|
-
var __awaiter$
|
|
29339
|
+
var __awaiter$w = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29307
29340
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29308
29341
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29309
29342
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -29319,7 +29352,7 @@ class ProxyTeamsCall extends ProxyCallCommon {
|
|
|
29319
29352
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
29320
29353
|
case 'addParticipant': {
|
|
29321
29354
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
|
29322
|
-
return __awaiter$
|
|
29355
|
+
return __awaiter$w(this, void 0, void 0, function* () {
|
|
29323
29356
|
return yield target.addParticipant(...args);
|
|
29324
29357
|
});
|
|
29325
29358
|
}, 'TeamsCall.addParticipant');
|
|
@@ -29438,7 +29471,7 @@ const teamsCallAgentDeclaratify = (callAgent, context, internalContext) => {
|
|
|
29438
29471
|
|
|
29439
29472
|
// Copyright (c) Microsoft Corporation.
|
|
29440
29473
|
// Licensed under the MIT License.
|
|
29441
|
-
var __awaiter$
|
|
29474
|
+
var __awaiter$v = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29442
29475
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29443
29476
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29444
29477
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -29460,7 +29493,7 @@ class ProxyVideoStreamRendererView {
|
|
|
29460
29493
|
get(target, prop) {
|
|
29461
29494
|
switch (prop) {
|
|
29462
29495
|
case 'updateScalingMode': {
|
|
29463
|
-
return (...args) => __awaiter$
|
|
29496
|
+
return (...args) => __awaiter$v(this, void 0, void 0, function* () {
|
|
29464
29497
|
yield target.updateScalingMode(...args);
|
|
29465
29498
|
this._context.setRemoteVideoStreamViewScalingMode(this._callId, this._participantId, this._streamId, args[0]);
|
|
29466
29499
|
});
|
|
@@ -29481,7 +29514,7 @@ const videoStreamRendererViewDeclaratify = (view, context, callId, participantId
|
|
|
29481
29514
|
|
|
29482
29515
|
// Copyright (c) Microsoft Corporation.
|
|
29483
29516
|
// Licensed under the MIT License.
|
|
29484
|
-
var __awaiter$
|
|
29517
|
+
var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29485
29518
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29486
29519
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29487
29520
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -29503,7 +29536,7 @@ class ProxyCallClient {
|
|
|
29503
29536
|
get(target, prop) {
|
|
29504
29537
|
switch (prop) {
|
|
29505
29538
|
case 'createCallAgent': {
|
|
29506
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
|
29539
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$u(this, void 0, void 0, function* () {
|
|
29507
29540
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
|
29508
29541
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
|
29509
29542
|
// callAgent if the createCallAgent succeeds.
|
|
@@ -29516,7 +29549,7 @@ class ProxyCallClient {
|
|
|
29516
29549
|
}), 'CallClient.createCallAgent');
|
|
29517
29550
|
}
|
|
29518
29551
|
case 'createTeamsCallAgent': {
|
|
29519
|
-
/* @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* () {
|
|
29520
29553
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
|
29521
29554
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
|
29522
29555
|
// callAgent if the createCallAgent succeeds.
|
|
@@ -29529,7 +29562,7 @@ class ProxyCallClient {
|
|
|
29529
29562
|
}), 'CallClient.createTeamsCallAgent');
|
|
29530
29563
|
}
|
|
29531
29564
|
case 'getDeviceManager': {
|
|
29532
|
-
return this._context.withAsyncErrorTeedToState(() => __awaiter$
|
|
29565
|
+
return this._context.withAsyncErrorTeedToState(() => __awaiter$u(this, void 0, void 0, function* () {
|
|
29533
29566
|
// As of writing, the SDK always returns the same instance of DeviceManager so we keep a reference of
|
|
29534
29567
|
// DeviceManager and if it does not change we return the cached DeclarativeDeviceManager. If it does not we'll
|
|
29535
29568
|
// throw an error that indicate we need to fix this issue as our implementation has diverged from the SDK.
|
|
@@ -29558,7 +29591,7 @@ class ProxyCallClient {
|
|
|
29558
29591
|
/**
|
|
29559
29592
|
* add to this object if we want to proxy anything else off the DebugInfo feature object.
|
|
29560
29593
|
*/
|
|
29561
|
-
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$
|
|
29594
|
+
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$u(this, void 0, void 0, function* () {
|
|
29562
29595
|
const environmentInfo = yield feature.getEnvironmentInfo();
|
|
29563
29596
|
this._context.setEnvironmentInfo(environmentInfo);
|
|
29564
29597
|
return environmentInfo;
|
|
@@ -29596,8 +29629,7 @@ const createStatefulCallClient = (args, options) => {
|
|
|
29596
29629
|
*/
|
|
29597
29630
|
const _createStatefulCallClientInner = (args, options, telemetryImplementationHint = 'StatefulComponents') => {
|
|
29598
29631
|
callingStatefulLogger.info(`Creating calling stateful client using library version: ${_getApplicationId(telemetryImplementationHint)}`);
|
|
29599
|
-
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,
|
|
29600
|
-
/* @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());
|
|
29601
29633
|
};
|
|
29602
29634
|
/**
|
|
29603
29635
|
* Package-internal version of createStatefulCallClient that allows dependency injection.
|
|
@@ -29619,7 +29651,7 @@ const createStatefulCallClientWithDeps = (callClient, context, internalContext)
|
|
|
29619
29651
|
});
|
|
29620
29652
|
Object.defineProperty(callClient, 'createView', {
|
|
29621
29653
|
configurable: false,
|
|
29622
|
-
value: (callId, participantId, stream, options) => __awaiter$
|
|
29654
|
+
value: (callId, participantId, stream, options) => __awaiter$u(void 0, void 0, void 0, function* () {
|
|
29623
29655
|
const participantIdKind = participantId ? communicationCommon.getIdentifierKind(participantId) : undefined;
|
|
29624
29656
|
const result = yield createView(context, internalContext, callId, participantIdKind, stream, options);
|
|
29625
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.
|
|
@@ -30673,7 +30705,7 @@ const END_CALL_PAGES = [
|
|
|
30673
30705
|
|
|
30674
30706
|
// Copyright (c) Microsoft Corporation.
|
|
30675
30707
|
// Licensed under the MIT License.
|
|
30676
|
-
var __awaiter$
|
|
30708
|
+
var __awaiter$t = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30677
30709
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30678
30710
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
30679
30711
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -31040,7 +31072,7 @@ const isDisabled$4 = (option) => {
|
|
|
31040
31072
|
/**
|
|
31041
31073
|
* @returns Permissions state for the camera.
|
|
31042
31074
|
*/
|
|
31043
|
-
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$
|
|
31075
|
+
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$t(void 0, void 0, void 0, function* () {
|
|
31044
31076
|
try {
|
|
31045
31077
|
return (yield navigator.permissions.query({ name: 'camera' })).state;
|
|
31046
31078
|
}
|
|
@@ -31053,7 +31085,7 @@ const queryCameraPermissionFromPermissionsAPI = () => __awaiter$r(void 0, void 0
|
|
|
31053
31085
|
/**
|
|
31054
31086
|
* @returns Permissions state for the microphone.
|
|
31055
31087
|
*/
|
|
31056
|
-
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$
|
|
31088
|
+
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$t(void 0, void 0, void 0, function* () {
|
|
31057
31089
|
try {
|
|
31058
31090
|
return (yield navigator.permissions.query({ name: 'microphone' })).state;
|
|
31059
31091
|
}
|
|
@@ -31070,7 +31102,7 @@ const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$r(void 0, vo
|
|
|
31070
31102
|
* If permission API is not supported on this browser, permission state is set to unsupported.
|
|
31071
31103
|
* @private
|
|
31072
31104
|
*/
|
|
31073
|
-
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$
|
|
31105
|
+
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$t(void 0, void 0, void 0, function* () {
|
|
31074
31106
|
const [cameraResult, microphoneResult] = yield Promise.all([
|
|
31075
31107
|
queryCameraPermissionFromPermissionsAPI(),
|
|
31076
31108
|
queryMicrophonePermissionFromPermissionsAPI()
|
|
@@ -31257,7 +31289,7 @@ function computeComplianceNotification(complianceProps, cachedProps) {
|
|
|
31257
31289
|
|
|
31258
31290
|
// Copyright (c) Microsoft Corporation.
|
|
31259
31291
|
// Licensed under the MIT License.
|
|
31260
|
-
var __awaiter$
|
|
31292
|
+
var __awaiter$s = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31261
31293
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31262
31294
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31263
31295
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -31280,22 +31312,22 @@ _component) => {
|
|
|
31280
31312
|
};
|
|
31281
31313
|
const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
31282
31314
|
return {
|
|
31283
|
-
onCreateLocalStreamView: (options) => __awaiter$
|
|
31315
|
+
onCreateLocalStreamView: (options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31284
31316
|
return yield adapter.createStreamView(undefined, options);
|
|
31285
31317
|
}),
|
|
31286
|
-
onCreateRemoteStreamView: (userId, options) => __awaiter$
|
|
31318
|
+
onCreateRemoteStreamView: (userId, options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31287
31319
|
return yield adapter.createStreamView(userId, options);
|
|
31288
31320
|
}),
|
|
31289
|
-
onHangUp: (forEveryone) => __awaiter$
|
|
31321
|
+
onHangUp: (forEveryone) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31290
31322
|
yield adapter.leaveCall(forEveryone);
|
|
31291
31323
|
}),
|
|
31292
31324
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
31293
|
-
onToggleHold: () => __awaiter$
|
|
31325
|
+
onToggleHold: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31294
31326
|
var _a;
|
|
31295
31327
|
return ((_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold' ? yield adapter.resumeCall() : yield adapter.holdCall();
|
|
31296
31328
|
}),
|
|
31297
31329
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
31298
|
-
onAddParticipant: (participant, options) => __awaiter$
|
|
31330
|
+
onAddParticipant: (participant, options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31299
31331
|
if ('communicationUserId' in participant) {
|
|
31300
31332
|
return yield adapter.addParticipant(participant);
|
|
31301
31333
|
}
|
|
@@ -31303,10 +31335,10 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
|
31303
31335
|
return yield adapter.addParticipant(participant, options);
|
|
31304
31336
|
}
|
|
31305
31337
|
}),
|
|
31306
|
-
onSendDtmfTone: (dtmfTone) => __awaiter$
|
|
31338
|
+
onSendDtmfTone: (dtmfTone) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31307
31339
|
yield adapter.sendDtmfTone(dtmfTone);
|
|
31308
31340
|
}),
|
|
31309
|
-
onRemoveParticipant: (userId) => __awaiter$
|
|
31341
|
+
onRemoveParticipant: (userId) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31310
31342
|
if (typeof userId === 'string') {
|
|
31311
31343
|
yield adapter.removeParticipant(userId);
|
|
31312
31344
|
}
|
|
@@ -31315,136 +31347,144 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
|
31315
31347
|
yield adapter.removeParticipant(_toCommunicationIdentifier(userId));
|
|
31316
31348
|
}
|
|
31317
31349
|
}),
|
|
31318
|
-
onRaiseHand: () => __awaiter$
|
|
31350
|
+
onRaiseHand: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31319
31351
|
yield adapter.raiseHand();
|
|
31320
31352
|
}),
|
|
31321
|
-
onLowerHand: () => __awaiter$
|
|
31353
|
+
onLowerHand: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31322
31354
|
yield adapter.lowerHand();
|
|
31323
31355
|
}),
|
|
31324
|
-
onToggleRaiseHand: () => __awaiter$
|
|
31356
|
+
onToggleRaiseHand: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31325
31357
|
var _b;
|
|
31326
31358
|
((_b = adapter.getState().call) === null || _b === void 0 ? void 0 : _b.raiseHand.localParticipantRaisedHand)
|
|
31327
31359
|
? yield adapter.lowerHand()
|
|
31328
31360
|
: yield adapter.raiseHand();
|
|
31329
31361
|
}),
|
|
31330
|
-
onReactionClick: (reaction) => __awaiter$
|
|
31362
|
+
onReactionClick: (reaction) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31331
31363
|
yield adapter.onReactionClick(reaction);
|
|
31332
31364
|
}),
|
|
31333
|
-
onSelectCamera: (deviceInfo, options) => __awaiter$
|
|
31365
|
+
onSelectCamera: (deviceInfo, options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31334
31366
|
yield adapter.setCamera(deviceInfo, options);
|
|
31335
31367
|
}),
|
|
31336
|
-
onSelectMicrophone: (deviceInfo) => __awaiter$
|
|
31368
|
+
onSelectMicrophone: (deviceInfo) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31337
31369
|
yield adapter.setMicrophone(deviceInfo);
|
|
31338
31370
|
}),
|
|
31339
|
-
onSelectSpeaker: (deviceInfo) => __awaiter$
|
|
31371
|
+
onSelectSpeaker: (deviceInfo) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31340
31372
|
yield adapter.setSpeaker(deviceInfo);
|
|
31341
31373
|
}),
|
|
31342
31374
|
onStartCall: (participants, options) => {
|
|
31343
31375
|
const rawIds = participants.map((participant) => toFlatCommunicationIdentifier(participant));
|
|
31344
31376
|
return adapter.startCall(rawIds, options);
|
|
31345
31377
|
},
|
|
31346
|
-
onStartScreenShare: () => __awaiter$
|
|
31378
|
+
onStartScreenShare: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31347
31379
|
yield adapter.startScreenShare();
|
|
31348
31380
|
}),
|
|
31349
|
-
onStopScreenShare: () => __awaiter$
|
|
31381
|
+
onStopScreenShare: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31350
31382
|
yield adapter.stopScreenShare();
|
|
31351
31383
|
}),
|
|
31352
|
-
onToggleCamera: (options) => __awaiter$
|
|
31384
|
+
onToggleCamera: (options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31353
31385
|
isCameraOn(adapter.getState()) ? yield adapter.stopCamera() : yield adapter.startCamera(options);
|
|
31354
31386
|
}),
|
|
31355
|
-
onToggleMicrophone: () => __awaiter$
|
|
31387
|
+
onToggleMicrophone: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31356
31388
|
var _c;
|
|
31357
31389
|
return ((_c = adapter.getState().call) === null || _c === void 0 ? void 0 : _c.isMuted) ? yield adapter.unmute() : yield adapter.mute();
|
|
31358
31390
|
}),
|
|
31359
|
-
onToggleScreenShare: () => __awaiter$
|
|
31391
|
+
onToggleScreenShare: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31360
31392
|
var _d;
|
|
31361
31393
|
return ((_d = adapter.getState().call) === null || _d === void 0 ? void 0 : _d.isScreenSharingOn)
|
|
31362
31394
|
? yield adapter.stopScreenShare()
|
|
31363
31395
|
: yield adapter.startScreenShare();
|
|
31364
31396
|
}),
|
|
31365
|
-
onStartLocalVideo: () => __awaiter$
|
|
31397
|
+
onStartLocalVideo: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31366
31398
|
if (adapter.getState().call) {
|
|
31367
31399
|
return adapter.startCamera();
|
|
31368
31400
|
}
|
|
31369
31401
|
}),
|
|
31370
|
-
onDisposeLocalStreamView: () => __awaiter$
|
|
31402
|
+
onDisposeLocalStreamView: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31371
31403
|
return adapter.disposeLocalVideoStreamView();
|
|
31372
31404
|
}),
|
|
31373
|
-
onDisposeRemoteStreamView: (userId) => __awaiter$
|
|
31405
|
+
onDisposeRemoteStreamView: (userId) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31374
31406
|
return adapter.disposeStreamView(userId);
|
|
31375
31407
|
}),
|
|
31376
|
-
onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$
|
|
31408
|
+
onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31377
31409
|
return adapter.disposeScreenShareStreamView(userId);
|
|
31378
31410
|
}),
|
|
31379
|
-
onDisposeLocalScreenShareStreamView: () => __awaiter$
|
|
31411
|
+
onDisposeLocalScreenShareStreamView: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31380
31412
|
return adapter.disposeScreenShareStreamView('');
|
|
31381
31413
|
}),
|
|
31382
|
-
onDisposeRemoteVideoStreamView: (userId) => __awaiter$
|
|
31414
|
+
onDisposeRemoteVideoStreamView: (userId) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31383
31415
|
return adapter.disposeRemoteVideoStreamView(userId);
|
|
31384
31416
|
}),
|
|
31385
31417
|
/* @conditional-compile-remove(call-readiness) */
|
|
31386
|
-
askDevicePermission: (constrain) => __awaiter$
|
|
31418
|
+
askDevicePermission: (constrain) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31387
31419
|
return adapter.askDevicePermission(constrain);
|
|
31388
31420
|
}),
|
|
31389
|
-
onRemoveVideoBackgroundEffects: () => __awaiter$
|
|
31421
|
+
onRemoveVideoBackgroundEffects: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31390
31422
|
return yield adapter.stopVideoBackgroundEffects();
|
|
31391
31423
|
}),
|
|
31392
|
-
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$
|
|
31424
|
+
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31393
31425
|
const blurConfig = Object.assign({ effectName: 'blur' }, backgroundBlurConfig);
|
|
31394
31426
|
return yield adapter.startVideoBackgroundEffect(blurConfig);
|
|
31395
31427
|
}),
|
|
31396
|
-
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$
|
|
31428
|
+
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31397
31429
|
const replacementConfig = Object.assign({ effectName: 'replacement' }, backgroundReplacementConfig);
|
|
31398
31430
|
return yield adapter.startVideoBackgroundEffect(replacementConfig);
|
|
31399
31431
|
}),
|
|
31400
|
-
|
|
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* () {
|
|
31401
31441
|
yield adapter.startCaptions(options);
|
|
31402
31442
|
}),
|
|
31403
|
-
onStopCaptions: () => __awaiter$
|
|
31443
|
+
onStopCaptions: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31404
31444
|
yield adapter.stopCaptions();
|
|
31405
31445
|
}),
|
|
31406
|
-
onSetSpokenLanguage: (language) => __awaiter$
|
|
31446
|
+
onSetSpokenLanguage: (language) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31407
31447
|
yield adapter.setSpokenLanguage(language);
|
|
31408
31448
|
}),
|
|
31409
|
-
onSetCaptionLanguage: (language) => __awaiter$
|
|
31449
|
+
onSetCaptionLanguage: (language) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31410
31450
|
yield adapter.setCaptionLanguage(language);
|
|
31411
31451
|
}),
|
|
31412
|
-
onSubmitSurvey: (survey) => __awaiter$
|
|
31452
|
+
onSubmitSurvey: (survey) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31413
31453
|
return yield adapter.submitSurvey(survey);
|
|
31414
31454
|
}),
|
|
31415
|
-
onStartSpotlight: (userIds) => __awaiter$
|
|
31455
|
+
onStartSpotlight: (userIds) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31416
31456
|
yield adapter.startSpotlight(userIds);
|
|
31417
31457
|
}),
|
|
31418
|
-
onStopSpotlight: (userIds) => __awaiter$
|
|
31458
|
+
onStopSpotlight: (userIds) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31419
31459
|
yield adapter.stopSpotlight(userIds);
|
|
31420
31460
|
}),
|
|
31421
|
-
onStopAllSpotlight: () => __awaiter$
|
|
31461
|
+
onStopAllSpotlight: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31422
31462
|
yield adapter.stopAllSpotlight();
|
|
31423
31463
|
}),
|
|
31424
31464
|
onStartLocalSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.spotlightParticipant.isPresent)
|
|
31425
|
-
? () => __awaiter$
|
|
31465
|
+
? () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31426
31466
|
yield adapter.startSpotlight();
|
|
31427
31467
|
})
|
|
31428
31468
|
: undefined,
|
|
31429
|
-
onStopLocalSpotlight: () => __awaiter$
|
|
31469
|
+
onStopLocalSpotlight: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31430
31470
|
yield adapter.stopSpotlight();
|
|
31431
31471
|
}),
|
|
31432
31472
|
onStartRemoteSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.spotlightParticipant.isPresent)
|
|
31433
|
-
? (userIds) => __awaiter$
|
|
31473
|
+
? (userIds) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31434
31474
|
yield adapter.startSpotlight(userIds);
|
|
31435
31475
|
})
|
|
31436
31476
|
: undefined,
|
|
31437
31477
|
onStopRemoteSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.removeParticipantsSpotlight.isPresent)
|
|
31438
|
-
? (userIds) => __awaiter$
|
|
31478
|
+
? (userIds) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31439
31479
|
yield adapter.stopSpotlight(userIds);
|
|
31440
31480
|
})
|
|
31441
31481
|
: undefined,
|
|
31442
31482
|
/* @conditional-compile-remove(soft-mute) */
|
|
31443
|
-
onMuteParticipant: (userId) => __awaiter$
|
|
31483
|
+
onMuteParticipant: (userId) => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31444
31484
|
yield adapter.muteParticipant(userId);
|
|
31445
31485
|
}),
|
|
31446
31486
|
/* @conditional-compile-remove(soft-mute) */
|
|
31447
|
-
onMuteAllRemoteParticipants: () => __awaiter$
|
|
31487
|
+
onMuteAllRemoteParticipants: () => __awaiter$s(void 0, void 0, void 0, function* () {
|
|
31448
31488
|
yield adapter.muteAllRemoteParticipants();
|
|
31449
31489
|
})
|
|
31450
31490
|
};
|
|
@@ -31582,7 +31622,7 @@ const MoreButton = (props) => {
|
|
|
31582
31622
|
|
|
31583
31623
|
// Copyright (c) Microsoft Corporation.
|
|
31584
31624
|
// Licensed under the MIT License.
|
|
31585
|
-
var __awaiter$
|
|
31625
|
+
var __awaiter$r = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31586
31626
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31587
31627
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31588
31628
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -31604,7 +31644,7 @@ const CaptionsBannerMoreButton = (props) => {
|
|
|
31604
31644
|
tooltipOffContent: localeStrings.strings.call.captionsBannerMoreButtonTooltip
|
|
31605
31645
|
}), [localeStrings]);
|
|
31606
31646
|
const moreButtonContextualMenuItems = [];
|
|
31607
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
|
31647
|
+
const startCaptions = React.useCallback(() => __awaiter$r(void 0, void 0, void 0, function* () {
|
|
31608
31648
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
|
31609
31649
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
|
31610
31650
|
});
|
|
@@ -31813,7 +31853,7 @@ const buttonTextStyles = { label: { fontSize: '0.875rem' } };
|
|
|
31813
31853
|
|
|
31814
31854
|
// Copyright (c) Microsoft Corporation.
|
|
31815
31855
|
// Licensed under the MIT License.
|
|
31816
|
-
var __awaiter$
|
|
31856
|
+
var __awaiter$q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31817
31857
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31818
31858
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31819
31859
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -31865,7 +31905,7 @@ const EndCall = (props) => {
|
|
|
31865
31905
|
toggleConfirm();
|
|
31866
31906
|
}, [onHangUp, toggleConfirm]);
|
|
31867
31907
|
/* @conditional-compile-remove(end-call-options) */
|
|
31868
|
-
const hangUpOverride = React.useCallback((forEveryone) => __awaiter$
|
|
31908
|
+
const hangUpOverride = React.useCallback((forEveryone) => __awaiter$q(void 0, void 0, void 0, function* () {
|
|
31869
31909
|
if (props.mobileView ||
|
|
31870
31910
|
forEveryone === false /* value being false(not undefined) because it comes from endCall option */) {
|
|
31871
31911
|
onHangUp();
|
|
@@ -32826,7 +32866,7 @@ const showDtmfDialer = (callees, remoteParticipants) => {
|
|
|
32826
32866
|
|
|
32827
32867
|
// Copyright (c) Microsoft Corporation.
|
|
32828
32868
|
// Licensed under the MIT License.
|
|
32829
|
-
var __awaiter$
|
|
32869
|
+
var __awaiter$p = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32830
32870
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32831
32871
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32832
32872
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -32846,7 +32886,7 @@ const DesktopMoreButton = (props) => {
|
|
|
32846
32886
|
const holdButtonProps = usePropsFor$1(HoldButton);
|
|
32847
32887
|
const startCaptionsButtonProps = useAdaptedSelector(_startCaptionsButtonSelector);
|
|
32848
32888
|
const startCaptionsButtonHandlers = useHandlers();
|
|
32849
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
|
32889
|
+
const startCaptions = React.useCallback(() => __awaiter$p(void 0, void 0, void 0, function* () {
|
|
32850
32890
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
|
32851
32891
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
|
32852
32892
|
});
|
|
@@ -33333,7 +33373,7 @@ const modalLayerHostStyle = {
|
|
|
33333
33373
|
|
|
33334
33374
|
// Copyright (c) Microsoft Corporation.
|
|
33335
33375
|
// Licensed under the MIT License.
|
|
33336
|
-
var __awaiter$
|
|
33376
|
+
var __awaiter$o = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33337
33377
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33338
33378
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33339
33379
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -33378,7 +33418,7 @@ const useMinMaxDragPosition = (modalLayerHostId, rtl) => {
|
|
|
33378
33418
|
/**
|
|
33379
33419
|
* @private
|
|
33380
33420
|
*/
|
|
33381
|
-
const busyWait = (checkCondition, retryLimit) => __awaiter$
|
|
33421
|
+
const busyWait = (checkCondition, retryLimit) => __awaiter$o(void 0, void 0, void 0, function* () {
|
|
33382
33422
|
const delayMs = 500;
|
|
33383
33423
|
let retryCount = 0;
|
|
33384
33424
|
while (!checkCondition()) {
|
|
@@ -33467,7 +33507,7 @@ const timerTextStyle = {
|
|
|
33467
33507
|
|
|
33468
33508
|
// Copyright (c) Microsoft Corporation.
|
|
33469
33509
|
// Licensed under the MIT License.
|
|
33470
|
-
var __awaiter$
|
|
33510
|
+
var __awaiter$n = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33471
33511
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33472
33512
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33473
33513
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -33642,7 +33682,7 @@ const CommonCallControlBar = (props) => {
|
|
|
33642
33682
|
!props.mobileView &&
|
|
33643
33683
|
assignedBreakoutRoom &&
|
|
33644
33684
|
assignedBreakoutRoom.state === 'open' &&
|
|
33645
|
-
!movingToBreakoutRoomAutomatically && (React.createElement(react.PrimaryButton, { text: callStrings.joinBreakoutRoomButtonLabel, onClick: () => __awaiter$
|
|
33685
|
+
!movingToBreakoutRoomAutomatically && (React.createElement(react.PrimaryButton, { text: callStrings.joinBreakoutRoomButtonLabel, onClick: () => __awaiter$n(void 0, void 0, void 0, function* () {
|
|
33646
33686
|
assignedBreakoutRoom.join();
|
|
33647
33687
|
}), styles: commonButtonStyles })),
|
|
33648
33688
|
microphoneButtonIsEnabled && (React.createElement(Microphone, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
|
|
@@ -33931,7 +33971,7 @@ const SpokenLanguageSettingsDrawer = (props) => {
|
|
|
33931
33971
|
|
|
33932
33972
|
// Copyright (c) Microsoft Corporation.
|
|
33933
33973
|
// Licensed under the MIT License.
|
|
33934
|
-
var __awaiter$
|
|
33974
|
+
var __awaiter$m = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33935
33975
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33936
33976
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33937
33977
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -33977,7 +34017,7 @@ const MoreDrawer = (props) => {
|
|
|
33977
34017
|
if (props.reactionResources !== undefined) {
|
|
33978
34018
|
drawerMenuItems.push({
|
|
33979
34019
|
itemKey: 'reactions',
|
|
33980
|
-
onRendererContent: () => (React.createElement(_ReactionDrawerMenuItem, { onReactionClick: (reaction) => __awaiter$
|
|
34020
|
+
onRendererContent: () => (React.createElement(_ReactionDrawerMenuItem, { onReactionClick: (reaction) => __awaiter$m(void 0, void 0, void 0, function* () {
|
|
33981
34021
|
var _h;
|
|
33982
34022
|
(_h = props.onReactionClick) === null || _h === void 0 ? void 0 : _h.call(props, reaction);
|
|
33983
34023
|
onLightDismiss();
|
|
@@ -34198,7 +34238,7 @@ const MoreDrawer = (props) => {
|
|
|
34198
34238
|
const [isCaptionLanguageDrawerOpen, setIsCaptionLanguageDrawerOpen] = React.useState(false);
|
|
34199
34239
|
const [currentSpokenLanguage, setCurrentSpokenLanguage] = React.useState((_f = captionSettingsProp.currentSpokenLanguage) !== null && _f !== void 0 ? _f : 'en-us');
|
|
34200
34240
|
const [currentCaptionLanguage, setCurrentCaptionLanguage] = React.useState((_g = captionSettingsProp.currentCaptionLanguage) !== null && _g !== void 0 ? _g : _spokenLanguageToCaptionLanguage[currentSpokenLanguage]);
|
|
34201
|
-
const onToggleChange = React.useCallback(() => __awaiter$
|
|
34241
|
+
const onToggleChange = React.useCallback(() => __awaiter$m(void 0, void 0, void 0, function* () {
|
|
34202
34242
|
if (!captionSettingsProp.isCaptionsFeatureActive) {
|
|
34203
34243
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
|
34204
34244
|
spokenLanguage: currentSpokenLanguage
|
|
@@ -34890,6 +34930,7 @@ const iconClass = react.mergeStyles({
|
|
|
34890
34930
|
// Licensed under the MIT License.
|
|
34891
34931
|
/** @private */
|
|
34892
34932
|
const AddPeopleDropdown = (props) => {
|
|
34933
|
+
var _a, _b;
|
|
34893
34934
|
const theme = react.useTheme();
|
|
34894
34935
|
const { inviteLink, strings, mobileView, onAddParticipant, alternateCallerId, onCopyInviteLink, inviteLinkCopiedRecently } = props;
|
|
34895
34936
|
const [showDialpad, setShowDialpad] = React.useState(false);
|
|
@@ -34960,7 +35001,7 @@ const AddPeopleDropdown = (props) => {
|
|
|
34960
35001
|
React.createElement(Announcer$1, { ariaLive: 'assertive', announcementString: announcerStrings }),
|
|
34961
35002
|
defaultMenuProps.items.length > 0 && (React.createElement(react.Stack.Item, { styles: copyLinkButtonContainerStyles },
|
|
34962
35003
|
React.createElement(react.PrimaryButton, { id: calloutButtonId, onClick: setDrawerMenuItemsForAddPeople, styles: copyLinkButtonStylesThemed, onRenderIcon: () => PeoplePaneAddPersonIconTrampoline(), text: strings.peoplePaneAddPeopleButtonLabel, "data-ui-id": "call-add-people-button" }),
|
|
34963
|
-
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 })))),
|
|
34964
35005
|
addPeopleDrawerMenuItems.length > 0 && (React.createElement(react.Stack, { styles: drawerContainerStyles(), "data-ui-id": "call-add-people-dropdown" },
|
|
34965
35006
|
React.createElement(_DrawerMenu, { disableMaxHeight: true, onLightDismiss: () => setAddPeopleDrawerMenuItems([]), items: addPeopleDrawerMenuItems }))),
|
|
34966
35007
|
alternateCallerId && (React.createElement(CallingDialpad, { isMobile: true, strings: strings, showDialpad: showDialpad, onDismissDialpad: onDismissDialpad, onAddParticipant: onAddParticipant, alternateCallerId: alternateCallerId }))));
|
|
@@ -34970,7 +35011,7 @@ const AddPeopleDropdown = (props) => {
|
|
|
34970
35011
|
alternateCallerId && (React.createElement(CallingDialpad, { isMobile: false, strings: strings, showDialpad: showDialpad, onDismissDialpad: onDismissDialpad, onAddParticipant: onAddParticipant, alternateCallerId: alternateCallerId })),
|
|
34971
35012
|
defaultMenuProps.items.length > 0 && (React.createElement(react.Stack, { styles: copyLinkButtonStackStyles },
|
|
34972
35013
|
React.createElement(react.DefaultButton, { id: calloutButtonId, onRenderIcon: () => PeoplePaneAddPersonIconTrampoline(), text: strings.peoplePaneAddPeopleButtonLabel, menuProps: defaultMenuProps, styles: copyLinkButtonStylesThemed, "data-ui-id": "call-add-people-button" }),
|
|
34973
|
-
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 : '' })))))));
|
|
34974
35015
|
};
|
|
34975
35016
|
function PeoplePaneOpenDialpadIconNameTrampoline() {
|
|
34976
35017
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
@@ -35016,7 +35057,7 @@ const AddPeopleButton = (props) => {
|
|
|
35016
35057
|
reactHooks.useId('callout-button');
|
|
35017
35058
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
35018
35059
|
if (mobileView) {
|
|
35019
|
-
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 }));
|
|
35020
35061
|
}
|
|
35021
35062
|
else {
|
|
35022
35063
|
return (React.createElement(react.Stack, { tokens: peoplePaneContainerTokens, "data-ui-id": "people-pane-content", verticalFill: true },
|
|
@@ -35027,7 +35068,7 @@ const AddPeopleButton = (props) => {
|
|
|
35027
35068
|
|
|
35028
35069
|
// Copyright (c) Microsoft Corporation.
|
|
35029
35070
|
// Licensed under the MIT License.
|
|
35030
|
-
var __awaiter$
|
|
35071
|
+
var __awaiter$l = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35031
35072
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35032
35073
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
35033
35074
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -35049,11 +35090,11 @@ const PeoplePaneContent = (props) => {
|
|
|
35049
35090
|
return localeStrings.strings.call;
|
|
35050
35091
|
};
|
|
35051
35092
|
const strings = getStrings();
|
|
35052
|
-
const removeParticipantFromCall = React.useCallback((participantId) => __awaiter$
|
|
35093
|
+
const removeParticipantFromCall = React.useCallback((participantId) => __awaiter$l(void 0, void 0, void 0, function* () {
|
|
35053
35094
|
yield adapter.removeParticipant(participantId);
|
|
35054
35095
|
}), [adapter]);
|
|
35055
35096
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
35056
|
-
const addParticipantToCall = React.useCallback((participant, options) => __awaiter$
|
|
35097
|
+
const addParticipantToCall = React.useCallback((participant, options) => __awaiter$l(void 0, void 0, void 0, function* () {
|
|
35057
35098
|
yield adapter.addParticipant(participant, options);
|
|
35058
35099
|
}), [adapter]);
|
|
35059
35100
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
@@ -35086,7 +35127,7 @@ const PeoplePaneContent = (props) => {
|
|
|
35086
35127
|
return drawerMenuItems && drawerMenuItems.length > 0 ? () => setDrawerMenuItems(drawerMenuItems) : undefined;
|
|
35087
35128
|
}, [participantListHeadingMoreButtonProps === null || participantListHeadingMoreButtonProps === void 0 ? void 0 : participantListHeadingMoreButtonProps.items, setDrawerMenuItems]);
|
|
35088
35129
|
const participantListProps = React.useMemo(() => {
|
|
35089
|
-
const onRemoveAParticipant = (participantId) => __awaiter$
|
|
35130
|
+
const onRemoveAParticipant = (participantId) => __awaiter$l(void 0, void 0, void 0, function* () { return removeParticipantFromCall(participantId); });
|
|
35090
35131
|
return Object.assign(Object.assign({}, participantListDefaultProps), {
|
|
35091
35132
|
// Passing undefined callback for mobile to avoid context menus for participants in ParticipantList are clicked
|
|
35092
35133
|
onRemoveParticipant: props.mobileView ? undefined : onRemoveAParticipant,
|
|
@@ -35656,7 +35697,7 @@ const localVideoSelector = reselect__namespace.createSelector([callStatusSelecto
|
|
|
35656
35697
|
|
|
35657
35698
|
// Copyright (c) Microsoft Corporation.
|
|
35658
35699
|
// Licensed under the MIT License.
|
|
35659
|
-
var __awaiter$
|
|
35700
|
+
var __awaiter$k = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35660
35701
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35661
35702
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
35662
35703
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -35717,7 +35758,7 @@ const VideoEffectsPaneContent = (props) => {
|
|
|
35717
35758
|
}
|
|
35718
35759
|
return videoEffects;
|
|
35719
35760
|
}, [strings, adapter]);
|
|
35720
|
-
const onEffectChange = React.useCallback((effectKey) => __awaiter$
|
|
35761
|
+
const onEffectChange = React.useCallback((effectKey) => __awaiter$k(void 0, void 0, void 0, function* () {
|
|
35721
35762
|
if (effectKey === 'blur') {
|
|
35722
35763
|
const blurEffect = {
|
|
35723
35764
|
effectName: effectKey
|
|
@@ -36177,7 +36218,7 @@ const messageBarStyles = {
|
|
|
36177
36218
|
|
|
36178
36219
|
// Copyright (c) Microsoft Corporation.
|
|
36179
36220
|
// Licensed under the MIT License.
|
|
36180
|
-
var __awaiter$
|
|
36221
|
+
var __awaiter$j = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36181
36222
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36182
36223
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36183
36224
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -36209,7 +36250,7 @@ const useLocalSpotlightCallbacksWithPrompt = (onStartLocalSpotlight, onStopLocal
|
|
|
36209
36250
|
}, [onStartLocalSpotlight, onStopLocalSpotlight, setIsPromptOpen, setPromptProps, strings]);
|
|
36210
36251
|
};
|
|
36211
36252
|
const getStartLocalSpotlightWithPromptCallback = (onStartSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
|
36212
|
-
return () => __awaiter$
|
|
36253
|
+
return () => __awaiter$j(void 0, void 0, void 0, function* () {
|
|
36213
36254
|
setPromptProps({
|
|
36214
36255
|
heading: strings.spotlightPrompt.startSpotlightHeading,
|
|
36215
36256
|
text: strings.spotlightPrompt.startSpotlightOnSelfText,
|
|
@@ -36225,7 +36266,7 @@ const getStartLocalSpotlightWithPromptCallback = (onStartSpotlight, setIsPromptO
|
|
|
36225
36266
|
});
|
|
36226
36267
|
};
|
|
36227
36268
|
const getStopLocalSpotlightWithPromptCallback = (onStopSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
|
36228
|
-
return () => __awaiter$
|
|
36269
|
+
return () => __awaiter$j(void 0, void 0, void 0, function* () {
|
|
36229
36270
|
setPromptProps({
|
|
36230
36271
|
heading: strings.spotlightPrompt.stopSpotlightOnSelfHeading,
|
|
36231
36272
|
text: strings.spotlightPrompt.stopSpotlightOnSelfText,
|
|
@@ -36263,7 +36304,7 @@ const useRemoteSpotlightCallbacksWithPrompt = (onStartRemoteSpotlight, onStopRem
|
|
|
36263
36304
|
}, [onStartRemoteSpotlight, onStopRemoteSpotlight, setIsPromptOpen, setPromptProps, strings]);
|
|
36264
36305
|
};
|
|
36265
36306
|
const getStartRemoteSpotlightWithPromptCallback = (onStartSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
|
36266
|
-
return (userIds) => __awaiter$
|
|
36307
|
+
return (userIds) => __awaiter$j(void 0, void 0, void 0, function* () {
|
|
36267
36308
|
if (userIds.length > 1) {
|
|
36268
36309
|
onStartSpotlight(userIds);
|
|
36269
36310
|
}
|
|
@@ -36282,7 +36323,7 @@ const getStartRemoteSpotlightWithPromptCallback = (onStartSpotlight, setIsPrompt
|
|
|
36282
36323
|
});
|
|
36283
36324
|
};
|
|
36284
36325
|
const getStopRemoteSpotlightWithPromptCallback = (onStopSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
|
36285
|
-
return (userIds) => __awaiter$
|
|
36326
|
+
return (userIds) => __awaiter$j(void 0, void 0, void 0, function* () {
|
|
36286
36327
|
if (userIds.length > 1) {
|
|
36287
36328
|
onStopSpotlight(userIds);
|
|
36288
36329
|
}
|
|
@@ -36319,7 +36360,7 @@ const useStopAllSpotlightCallbackWithPrompt = (stopAllSpotlight, setIsPromptOpen
|
|
|
36319
36360
|
}, [stopAllSpotlight, setIsPromptOpen, setPromptProps, strings]);
|
|
36320
36361
|
};
|
|
36321
36362
|
const getStopAllSpotlightCallbackWithPromptCallback = (stopAllSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
|
36322
|
-
return () => __awaiter$
|
|
36363
|
+
return () => __awaiter$j(void 0, void 0, void 0, function* () {
|
|
36323
36364
|
setPromptProps({
|
|
36324
36365
|
heading: strings.spotlightPrompt.stopAllSpotlightHeading,
|
|
36325
36366
|
text: strings.spotlightPrompt.stopAllSpotlightText,
|
|
@@ -37140,7 +37181,7 @@ const DtmfDialpadContentTimerStyles = {
|
|
|
37140
37181
|
|
|
37141
37182
|
// Copyright (c) Microsoft Corporation.
|
|
37142
37183
|
// Licensed under the MIT License.
|
|
37143
|
-
var __awaiter$
|
|
37184
|
+
var __awaiter$i = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37144
37185
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37145
37186
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
37146
37187
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -37170,7 +37211,7 @@ const DtmfDialpadPageContent = (props) => {
|
|
|
37170
37211
|
React.createElement(react.Stack, { verticalAlign: 'center', style: { margin: 'auto' } },
|
|
37171
37212
|
React.createElement(DtmfDialerContentTimer, null),
|
|
37172
37213
|
React.createElement(react.Text, { style: { margin: 'auto' } }, calleeName && calleeName !== 'Unnamed participant' ? calleeName === null || calleeName === void 0 ? void 0 : calleeName.toString() : ''),
|
|
37173
|
-
React.createElement(Dialpad, { onSendDtmfTone: (tone) => __awaiter$
|
|
37214
|
+
React.createElement(Dialpad, { onSendDtmfTone: (tone) => __awaiter$i(void 0, void 0, void 0, function* () {
|
|
37174
37215
|
yield adapter.sendDtmfTone(tone);
|
|
37175
37216
|
}), longPressTrigger: props.mobileView ? 'touch' : 'mouseAndTouch', dialpadMode: 'dtmf', dtmfAudioContext: props.compositeAudioContext }))));
|
|
37176
37217
|
};
|
|
@@ -37942,7 +37983,7 @@ const localPreviewButtonStyle = (isMobile) => {
|
|
|
37942
37983
|
|
|
37943
37984
|
// Copyright (c) Microsoft Corporation.
|
|
37944
37985
|
// Licensed under the MIT License.
|
|
37945
|
-
var __awaiter$
|
|
37986
|
+
var __awaiter$h = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37946
37987
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37947
37988
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
37948
37989
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -37962,7 +38003,7 @@ const LocalPreview = (props) => {
|
|
|
37962
38003
|
const { audio: microphonePermissionGranted, video: cameraPermissionGranted } = useSelector$1(devicePermissionSelector);
|
|
37963
38004
|
const isLocalMicrophoneEnabled = useSelector$1(getLocalMicrophoneEnabled);
|
|
37964
38005
|
const adapter = useAdapter();
|
|
37965
|
-
const onToggleMic = React.useCallback(() => __awaiter$
|
|
38006
|
+
const onToggleMic = React.useCallback(() => __awaiter$h(void 0, void 0, void 0, function* () {
|
|
37966
38007
|
isLocalMicrophoneEnabled ? adapter.mute() : adapter.unmute();
|
|
37967
38008
|
}), [adapter, isLocalMicrophoneEnabled]);
|
|
37968
38009
|
const hasNoSpeakers = !devicesButtonProps.speakers.length;
|
|
@@ -38326,7 +38367,7 @@ const constructTSpanLine = (line, lineHeightPx) => {
|
|
|
38326
38367
|
|
|
38327
38368
|
// Copyright (c) Microsoft Corporation.
|
|
38328
38369
|
// Licensed under the MIT License.
|
|
38329
|
-
var __awaiter$
|
|
38370
|
+
var __awaiter$g = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
38330
38371
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38331
38372
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38332
38373
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -38429,7 +38470,7 @@ const ConfigurationPage = (props) => {
|
|
|
38429
38470
|
/* @conditional-compile-remove(call-readiness) */
|
|
38430
38471
|
const forceShowingCheckPermissions = !minimumFallbackTimerElapsed;
|
|
38431
38472
|
const { toggleVideoEffectsPane, closeVideoEffectsPane, isVideoEffectsPaneOpen } = useVideoEffectsPane(props.updateSidePaneRenderer, mobileView, props.latestErrors, props.onDismissError);
|
|
38432
|
-
const startCall = React.useCallback(() => __awaiter$
|
|
38473
|
+
const startCall = React.useCallback(() => __awaiter$g(void 0, void 0, void 0, function* () {
|
|
38433
38474
|
closeVideoEffectsPane();
|
|
38434
38475
|
startCallHandler();
|
|
38435
38476
|
}), [startCallHandler, closeVideoEffectsPane]);
|
|
@@ -38931,7 +38972,7 @@ const holdPaneContentStyles = {
|
|
|
38931
38972
|
|
|
38932
38973
|
// Copyright (c) Microsoft Corporation.
|
|
38933
38974
|
// Licensed under the MIT License.
|
|
38934
|
-
var __awaiter$
|
|
38975
|
+
var __awaiter$f = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
38935
38976
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38936
38977
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38937
38978
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -38966,7 +39007,7 @@ const HoldPane = () => {
|
|
|
38966
39007
|
React.createElement(react.Stack, { horizontal: true, styles: holdPaneContentStyles },
|
|
38967
39008
|
React.createElement(react.Text, { styles: holdPaneTimerStyles }, elapsedTime),
|
|
38968
39009
|
React.createElement(react.Text, { styles: holdPaneLabelStyles, role: "status", "aria-live": "assertive" }, strings.holdScreenLabel),
|
|
38969
|
-
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* () {
|
|
38970
39011
|
setResumingCall(true);
|
|
38971
39012
|
try {
|
|
38972
39013
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
|
@@ -38997,13 +39038,14 @@ const getReadableTime = (time) => {
|
|
|
38997
39038
|
return `${hours > 0 ? hours + ':' : ''}${readableMinutes}:${readableSeconds}`;
|
|
38998
39039
|
};
|
|
38999
39040
|
const stringsTrampoline = (locale) => {
|
|
39041
|
+
var _a, _b, _c, _d, _e;
|
|
39000
39042
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
|
39001
39043
|
return {
|
|
39002
|
-
holdScreenLabel: locale.strings.call.holdScreenLabel,
|
|
39003
|
-
resumeCallButtonLabel: locale.strings.call.resumeCallButtonLabel,
|
|
39004
|
-
resumeCallButtonAriaLabel: locale.strings.call.resumeCallButtonAriaLabel,
|
|
39005
|
-
resumingCallButtonLabel: locale.strings.call.resumingCallButtonLabel,
|
|
39006
|
-
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 : ''
|
|
39007
39049
|
};
|
|
39008
39050
|
};
|
|
39009
39051
|
|
|
@@ -39348,7 +39390,7 @@ const surveyContainerStyle = (isMobile) => react.mergeStyles(isMobile
|
|
|
39348
39390
|
|
|
39349
39391
|
// Copyright (c) Microsoft Corporation.
|
|
39350
39392
|
// Licensed under the MIT License.
|
|
39351
|
-
var __awaiter$
|
|
39393
|
+
var __awaiter$e = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39352
39394
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39353
39395
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39354
39396
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -39394,7 +39436,7 @@ const Survey = (props) => {
|
|
|
39394
39436
|
setShowDefaultAfterDismissedScreen(true);
|
|
39395
39437
|
}
|
|
39396
39438
|
} }, strings.surveySkipButtonLabel),
|
|
39397
|
-
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* () {
|
|
39398
39440
|
const surveyResults = { overallRating: { score: ratings } };
|
|
39399
39441
|
if (issuesSelected === null || issuesSelected === void 0 ? void 0 : issuesSelected.overallRating) {
|
|
39400
39442
|
surveyResults.overallRating = { score: ratings, issues: issuesSelected.overallRating.issues };
|
|
@@ -39465,7 +39507,7 @@ function SurveyPage(props) {
|
|
|
39465
39507
|
|
|
39466
39508
|
// Copyright (c) Microsoft Corporation.
|
|
39467
39509
|
// Licensed under the MIT License.
|
|
39468
|
-
var __awaiter$
|
|
39510
|
+
var __awaiter$d = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39469
39511
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39470
39512
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39471
39513
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -39484,7 +39526,7 @@ const MainScreen = (props) => {
|
|
|
39484
39526
|
const hasCameras = camerasCount > 0;
|
|
39485
39527
|
const hasMicrophones = microphonesCount > 0;
|
|
39486
39528
|
React.useEffect(() => {
|
|
39487
|
-
(() => __awaiter$
|
|
39529
|
+
(() => __awaiter$d(void 0, void 0, void 0, function* () {
|
|
39488
39530
|
var _a, _b, _c, _d, _e;
|
|
39489
39531
|
const constrain = getQueryOptions({
|
|
39490
39532
|
role: (_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.role
|
|
@@ -39835,7 +39877,7 @@ function createHandlers(callClient, callAgent, deviceManager, call, options) {
|
|
|
39835
39877
|
|
|
39836
39878
|
// Copyright (c) Microsoft Corporation.
|
|
39837
39879
|
// Licensed under the MIT License.
|
|
39838
|
-
var __awaiter$
|
|
39880
|
+
var __awaiter$c = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39839
39881
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39840
39882
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39841
39883
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -39852,7 +39894,7 @@ const createProfileStateModifier = (onFetchProfile, notifyUpdate) => {
|
|
|
39852
39894
|
return (state) => {
|
|
39853
39895
|
var _a;
|
|
39854
39896
|
const originalParticipants = (_a = state.call) === null || _a === void 0 ? void 0 : _a.remoteParticipants;
|
|
39855
|
-
(() => __awaiter$
|
|
39897
|
+
(() => __awaiter$c(void 0, void 0, void 0, function* () {
|
|
39856
39898
|
let shouldNotifyUpdates = false;
|
|
39857
39899
|
for (const key in originalParticipants) {
|
|
39858
39900
|
if (cachedDisplayName[key]) {
|
|
@@ -39994,7 +40036,7 @@ const shouldPlayRinging = (call, callee) => {
|
|
|
39994
40036
|
|
|
39995
40037
|
// Copyright (c) Microsoft Corporation.
|
|
39996
40038
|
// Licensed under the MIT License.
|
|
39997
|
-
var __awaiter$
|
|
40039
|
+
var __awaiter$b = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39998
40040
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39999
40041
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
40000
40042
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -40006,7 +40048,7 @@ var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
|
40006
40048
|
/** Context of call, which is a centralized context for all state updates */
|
|
40007
40049
|
class CallContext {
|
|
40008
40050
|
constructor(clientState, isTeamsCall, isTeamsMeeting, isRoomsCall, options, targetCallees) {
|
|
40009
|
-
var _a, _b, _c, _d;
|
|
40051
|
+
var _a, _b, _c, _d, _e;
|
|
40010
40052
|
this.emitter = new EventEmitter.EventEmitter();
|
|
40011
40053
|
this.state = {
|
|
40012
40054
|
isLocalPreviewMicrophoneEnabled: false,
|
|
@@ -40021,17 +40063,19 @@ class CallContext {
|
|
|
40021
40063
|
isTeamsCall,
|
|
40022
40064
|
isTeamsMeeting,
|
|
40023
40065
|
isRoomsCall,
|
|
40024
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId:
|
|
40066
|
+
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: options === null || options === void 0 ? void 0 : options.alternateCallerId,
|
|
40025
40067
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo: clientState.environmentInfo,
|
|
40026
40068
|
/* @conditional-compile-remove(unsupported-browser) */ unsupportedBrowserVersionsAllowed: false,
|
|
40027
40069
|
videoBackgroundImages: (_b = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _b === void 0 ? void 0 : _b.videoBackgroundImages,
|
|
40028
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,
|
|
40029
40073
|
selectedVideoBackgroundEffect: undefined,
|
|
40030
40074
|
cameraStatus: undefined,
|
|
40031
40075
|
sounds: options === null || options === void 0 ? void 0 : options.callingSounds,
|
|
40032
40076
|
reactions: options === null || options === void 0 ? void 0 : options.reactionResources
|
|
40033
40077
|
};
|
|
40034
|
-
this.emitter.setMaxListeners((
|
|
40078
|
+
this.emitter.setMaxListeners((_e = options === null || options === void 0 ? void 0 : options.maxListeners) !== null && _e !== void 0 ? _e : 50);
|
|
40035
40079
|
this.bindPublicMethods();
|
|
40036
40080
|
this.displayNameModifier = (options === null || options === void 0 ? void 0 : options.onFetchProfile)
|
|
40037
40081
|
? createProfileStateModifier(options.onFetchProfile, () => {
|
|
@@ -40165,7 +40209,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40165
40209
|
this._call = newCall;
|
|
40166
40210
|
}
|
|
40167
40211
|
constructor(callClient, locatorOrTargetCalless, callAgent, deviceManager, options) {
|
|
40168
|
-
var _a, _b;
|
|
40212
|
+
var _a, _b, _c;
|
|
40169
40213
|
this.participantSubscribers = new Map();
|
|
40170
40214
|
this.emitter = new EventEmitter.EventEmitter();
|
|
40171
40215
|
this.isMyMutedChanged = () => {
|
|
@@ -40196,6 +40240,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40196
40240
|
});
|
|
40197
40241
|
const isRoomsCall = this.locator ? 'roomId' in this.locator : false;
|
|
40198
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;
|
|
40199
40245
|
this.context = new CallContext(callClient.getState(), !!isTeamsCall, isTeamsMeeting, isRoomsCall, options, this.targetCallees);
|
|
40200
40246
|
this.context.onCallEnded((endCallData) => this.emitter.emit('callEnded', endCallData));
|
|
40201
40247
|
const onStateChange = (clientState) => {
|
|
@@ -40227,7 +40273,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40227
40273
|
this.context.updateClientState(clientState);
|
|
40228
40274
|
};
|
|
40229
40275
|
this.handlers = createHandlers(callClient, callAgent, deviceManager, undefined, {
|
|
40230
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
|
40276
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
|
40277
|
+
/* @conditional-compile-remove(DNS) */
|
|
40278
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
|
40231
40279
|
});
|
|
40232
40280
|
this.onClientStateChange = onStateChange;
|
|
40233
40281
|
this.subscribeDeviceManagerEvents();
|
|
@@ -40328,6 +40376,10 @@ class AzureCommunicationCallAdapter {
|
|
|
40328
40376
|
this.startVideoBackgroundEffect.bind(this);
|
|
40329
40377
|
this.stopVideoBackgroundEffects.bind(this);
|
|
40330
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);
|
|
40331
40383
|
this.submitSurvey.bind(this);
|
|
40332
40384
|
this.startSpotlight.bind(this);
|
|
40333
40385
|
this.stopSpotlight.bind(this);
|
|
@@ -40343,9 +40395,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40343
40395
|
this.callAgent.dispose();
|
|
40344
40396
|
}
|
|
40345
40397
|
queryCameras() {
|
|
40346
|
-
return __awaiter$
|
|
40398
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40347
40399
|
const startTime = new Date().getTime();
|
|
40348
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40400
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40349
40401
|
const cameras = yield this.deviceManager.getCameras();
|
|
40350
40402
|
const endTime = new Date().getTime();
|
|
40351
40403
|
compositeLogger.info('time to query cameras', endTime - startTime, 'ms');
|
|
@@ -40354,9 +40406,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40354
40406
|
});
|
|
40355
40407
|
}
|
|
40356
40408
|
queryMicrophones() {
|
|
40357
|
-
return __awaiter$
|
|
40409
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40358
40410
|
const startTime = new Date().getTime();
|
|
40359
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40411
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40360
40412
|
const microphones = yield this.deviceManager.getMicrophones();
|
|
40361
40413
|
const endTime = new Date().getTime();
|
|
40362
40414
|
compositeLogger.info('time to query microphones', endTime - startTime, 'ms');
|
|
@@ -40365,9 +40417,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40365
40417
|
});
|
|
40366
40418
|
}
|
|
40367
40419
|
querySpeakers() {
|
|
40368
|
-
return __awaiter$
|
|
40420
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40369
40421
|
const startTime = new Date().getTime();
|
|
40370
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40422
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40371
40423
|
const speakers = (yield this.deviceManager.isSpeakerSelectionAvailable) ? this.deviceManager.getSpeakers() : [];
|
|
40372
40424
|
const endTime = new Date().getTime();
|
|
40373
40425
|
compositeLogger.info('time to query speakers', endTime - startTime, 'ms');
|
|
@@ -40376,9 +40428,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40376
40428
|
});
|
|
40377
40429
|
}
|
|
40378
40430
|
askDevicePermission(constrain) {
|
|
40379
|
-
return __awaiter$
|
|
40431
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40380
40432
|
const startTime = new Date().getTime();
|
|
40381
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
|
40433
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
40382
40434
|
yield this.deviceManager.askDevicePermission(constrain);
|
|
40383
40435
|
const endTime = new Date().getTime();
|
|
40384
40436
|
compositeLogger.info('time to query askDevicePermissions', endTime - startTime, 'ms');
|
|
@@ -40467,7 +40519,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40467
40519
|
});
|
|
40468
40520
|
}
|
|
40469
40521
|
createStreamView(remoteUserId, options) {
|
|
40470
|
-
return __awaiter$
|
|
40522
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40471
40523
|
if (remoteUserId === undefined) {
|
|
40472
40524
|
return yield this.handlers.onCreateLocalStreamView(options);
|
|
40473
40525
|
}
|
|
@@ -40477,7 +40529,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40477
40529
|
});
|
|
40478
40530
|
}
|
|
40479
40531
|
disposeStreamView(remoteUserId) {
|
|
40480
|
-
return __awaiter$
|
|
40532
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40481
40533
|
if (remoteUserId === undefined) {
|
|
40482
40534
|
yield this.handlers.onDisposeLocalStreamView();
|
|
40483
40535
|
}
|
|
@@ -40487,7 +40539,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40487
40539
|
});
|
|
40488
40540
|
}
|
|
40489
40541
|
disposeScreenShareStreamView(remoteUserId) {
|
|
40490
|
-
return __awaiter$
|
|
40542
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40491
40543
|
if (remoteUserId !== '') {
|
|
40492
40544
|
yield this.handlers.onDisposeRemoteScreenShareStreamView(remoteUserId);
|
|
40493
40545
|
}
|
|
@@ -40497,17 +40549,17 @@ class AzureCommunicationCallAdapter {
|
|
|
40497
40549
|
});
|
|
40498
40550
|
}
|
|
40499
40551
|
disposeRemoteVideoStreamView(remoteUserId) {
|
|
40500
|
-
return __awaiter$
|
|
40552
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40501
40553
|
yield this.handlers.onDisposeRemoteVideoStreamView(remoteUserId);
|
|
40502
40554
|
});
|
|
40503
40555
|
}
|
|
40504
40556
|
disposeLocalVideoStreamView() {
|
|
40505
|
-
return __awaiter$
|
|
40557
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40506
40558
|
yield this.handlers.onDisposeLocalStreamView();
|
|
40507
40559
|
});
|
|
40508
40560
|
}
|
|
40509
40561
|
leaveCall(forEveryone) {
|
|
40510
|
-
return __awaiter$
|
|
40562
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40511
40563
|
if (this.getState().page === 'transferring') {
|
|
40512
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];
|
|
40513
40565
|
transferCall === null || transferCall === void 0 ? void 0 : transferCall.hangUp();
|
|
@@ -40515,7 +40567,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40515
40567
|
yield this.handlers.onHangUp(forEveryone);
|
|
40516
40568
|
this.unsubscribeCallEvents();
|
|
40517
40569
|
this.handlers = createHandlers(this.callClient, this.callAgent, this.deviceManager, this.call, {
|
|
40518
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
|
40570
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
|
40571
|
+
/* @conditional-compile-remove(DNS) */
|
|
40572
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
|
40519
40573
|
});
|
|
40520
40574
|
// We set the adapter.call object to undefined immediately when a call is ended.
|
|
40521
40575
|
// We do not set the context.callId to undefined because it is a part of the immutable data flow loop.
|
|
@@ -40525,29 +40579,29 @@ class AzureCommunicationCallAdapter {
|
|
|
40525
40579
|
});
|
|
40526
40580
|
}
|
|
40527
40581
|
setCamera(device, options) {
|
|
40528
|
-
return __awaiter$
|
|
40529
|
-
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* () {
|
|
40530
40584
|
yield this.handlers.onSelectCamera(device, options);
|
|
40531
40585
|
}));
|
|
40532
40586
|
});
|
|
40533
40587
|
}
|
|
40534
40588
|
setMicrophone(device) {
|
|
40535
|
-
return __awaiter$
|
|
40536
|
-
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* () {
|
|
40537
40591
|
yield this.handlers.onSelectMicrophone(device);
|
|
40538
40592
|
}));
|
|
40539
40593
|
});
|
|
40540
40594
|
}
|
|
40541
40595
|
setSpeaker(device) {
|
|
40542
|
-
return __awaiter$
|
|
40543
|
-
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* () {
|
|
40544
40598
|
yield this.handlers.onSelectSpeaker(device);
|
|
40545
40599
|
}));
|
|
40546
40600
|
});
|
|
40547
40601
|
}
|
|
40548
40602
|
startCamera(options) {
|
|
40549
|
-
return __awaiter$
|
|
40550
|
-
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* () {
|
|
40551
40605
|
if (!isCameraOn(this.getState())) {
|
|
40552
40606
|
// First kick off the effect on the local device before starting the camera in the call.
|
|
40553
40607
|
// This prevents the effect not being applied for a brief moment when the camera is started.
|
|
@@ -40571,8 +40625,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40571
40625
|
});
|
|
40572
40626
|
}
|
|
40573
40627
|
stopCamera() {
|
|
40574
|
-
return __awaiter$
|
|
40575
|
-
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* () {
|
|
40576
40630
|
if (isCameraOn(this.getState())) {
|
|
40577
40631
|
yield this.handlers.onToggleCamera();
|
|
40578
40632
|
}
|
|
@@ -40580,8 +40634,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40580
40634
|
});
|
|
40581
40635
|
}
|
|
40582
40636
|
mute() {
|
|
40583
|
-
return __awaiter$
|
|
40584
|
-
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* () {
|
|
40585
40639
|
var _a, _b;
|
|
40586
40640
|
this.context.setIsLocalMicrophoneEnabled(false);
|
|
40587
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)) {
|
|
@@ -40591,8 +40645,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40591
40645
|
});
|
|
40592
40646
|
}
|
|
40593
40647
|
unmute() {
|
|
40594
|
-
return __awaiter$
|
|
40595
|
-
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* () {
|
|
40596
40650
|
var _a, _b, _c;
|
|
40597
40651
|
this.context.setIsLocalMicrophoneEnabled(true);
|
|
40598
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)) {
|
|
@@ -40602,8 +40656,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40602
40656
|
});
|
|
40603
40657
|
}
|
|
40604
40658
|
startScreenShare() {
|
|
40605
|
-
return __awaiter$
|
|
40606
|
-
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* () {
|
|
40607
40661
|
var _a;
|
|
40608
40662
|
if (!((_a = this.call) === null || _a === void 0 ? void 0 : _a.isScreenSharingOn)) {
|
|
40609
40663
|
yield this.handlers.onToggleScreenShare();
|
|
@@ -40612,8 +40666,8 @@ class AzureCommunicationCallAdapter {
|
|
|
40612
40666
|
});
|
|
40613
40667
|
}
|
|
40614
40668
|
stopScreenShare() {
|
|
40615
|
-
return __awaiter$
|
|
40616
|
-
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* () {
|
|
40617
40671
|
var _a;
|
|
40618
40672
|
if ((_a = this.call) === null || _a === void 0 ? void 0 : _a.isScreenSharingOn) {
|
|
40619
40673
|
yield this.handlers.onToggleScreenShare();
|
|
@@ -40622,22 +40676,22 @@ class AzureCommunicationCallAdapter {
|
|
|
40622
40676
|
});
|
|
40623
40677
|
}
|
|
40624
40678
|
raiseHand() {
|
|
40625
|
-
return __awaiter$
|
|
40626
|
-
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* () {
|
|
40627
40681
|
yield this.handlers.onToggleRaiseHand();
|
|
40628
40682
|
}));
|
|
40629
40683
|
});
|
|
40630
40684
|
}
|
|
40631
40685
|
lowerHand() {
|
|
40632
|
-
return __awaiter$
|
|
40633
|
-
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* () {
|
|
40634
40688
|
yield this.handlers.onToggleRaiseHand();
|
|
40635
40689
|
}));
|
|
40636
40690
|
});
|
|
40637
40691
|
}
|
|
40638
40692
|
onReactionClick(reaction) {
|
|
40639
|
-
return __awaiter$
|
|
40640
|
-
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* () {
|
|
40641
40695
|
yield this.handlers.onReactionClick(reaction);
|
|
40642
40696
|
}));
|
|
40643
40697
|
});
|
|
@@ -40648,7 +40702,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40648
40702
|
this.context.updateClientState(this.callClient.getState());
|
|
40649
40703
|
}
|
|
40650
40704
|
startVideoBackgroundEffect(videoBackgroundEffect) {
|
|
40651
|
-
return __awaiter$
|
|
40705
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40652
40706
|
if (this.isBlurEffect(videoBackgroundEffect)) {
|
|
40653
40707
|
const blurConfig = videoBackgroundEffect;
|
|
40654
40708
|
yield this.handlers.onBlurVideoBackground(blurConfig);
|
|
@@ -40660,7 +40714,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40660
40714
|
});
|
|
40661
40715
|
}
|
|
40662
40716
|
stopVideoBackgroundEffects() {
|
|
40663
|
-
return __awaiter$
|
|
40717
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40664
40718
|
yield this.handlers.onRemoveVideoBackgroundEffects();
|
|
40665
40719
|
});
|
|
40666
40720
|
}
|
|
@@ -40670,6 +40724,18 @@ class AzureCommunicationCallAdapter {
|
|
|
40670
40724
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground) {
|
|
40671
40725
|
this.context.setSelectedVideoBackgroundEffect(selectedVideoBackground);
|
|
40672
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
|
+
}
|
|
40673
40739
|
startCall(participants, options) {
|
|
40674
40740
|
var _a, _b;
|
|
40675
40741
|
if (_isInCall((_b = (_a = this.getState().call) === null || _a === void 0 ? void 0 : _a.state) !== null && _b !== void 0 ? _b : 'None')) {
|
|
@@ -40707,7 +40773,9 @@ class AzureCommunicationCallAdapter {
|
|
|
40707
40773
|
// Resync state after callId is set
|
|
40708
40774
|
this.context.updateClientState(this.callClient.getState());
|
|
40709
40775
|
this.handlers = createHandlers(this.callClient, this.callAgent, this.deviceManager, this.call, {
|
|
40710
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
|
40776
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
|
40777
|
+
/* @conditional-compile-remove(DNS) */
|
|
40778
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
|
40711
40779
|
});
|
|
40712
40780
|
this.subscribeCallEvents();
|
|
40713
40781
|
}
|
|
@@ -40718,7 +40786,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40718
40786
|
return effect.effectName === 'replacement';
|
|
40719
40787
|
}
|
|
40720
40788
|
removeParticipant(userId) {
|
|
40721
|
-
return __awaiter$
|
|
40789
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40722
40790
|
let participant = userId;
|
|
40723
40791
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
40724
40792
|
participant = _toCommunicationIdentifier(userId);
|
|
@@ -40727,7 +40795,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40727
40795
|
}
|
|
40728
40796
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
40729
40797
|
addParticipant(participant, options) {
|
|
40730
|
-
return __awaiter$
|
|
40798
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40731
40799
|
if (communicationCommon.isPhoneNumberIdentifier(participant) && options) {
|
|
40732
40800
|
this.handlers.onAddParticipant(participant, options);
|
|
40733
40801
|
}
|
|
@@ -40738,7 +40806,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40738
40806
|
}
|
|
40739
40807
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
40740
40808
|
holdCall() {
|
|
40741
|
-
return __awaiter$
|
|
40809
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40742
40810
|
var _a, _b;
|
|
40743
40811
|
if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) !== 'LocalHold') {
|
|
40744
40812
|
if ((_b = this.call) === null || _b === void 0 ? void 0 : _b.isLocalVideoStarted) {
|
|
@@ -40754,7 +40822,7 @@ class AzureCommunicationCallAdapter {
|
|
|
40754
40822
|
}
|
|
40755
40823
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
40756
40824
|
resumeCall() {
|
|
40757
|
-
return __awaiter$
|
|
40825
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40758
40826
|
var _a;
|
|
40759
40827
|
if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold') {
|
|
40760
40828
|
this.handlers.onToggleHold().then(() => {
|
|
@@ -40767,65 +40835,65 @@ class AzureCommunicationCallAdapter {
|
|
|
40767
40835
|
});
|
|
40768
40836
|
}
|
|
40769
40837
|
sendDtmfTone(dtmfTone) {
|
|
40770
|
-
return __awaiter$
|
|
40838
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40771
40839
|
this.handlers.onSendDtmfTone(dtmfTone);
|
|
40772
40840
|
});
|
|
40773
40841
|
}
|
|
40774
40842
|
startCaptions(options) {
|
|
40775
|
-
return __awaiter$
|
|
40843
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40776
40844
|
this.handlers.onStartCaptions(options);
|
|
40777
40845
|
});
|
|
40778
40846
|
}
|
|
40779
40847
|
stopCaptions() {
|
|
40780
|
-
return __awaiter$
|
|
40848
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40781
40849
|
this.handlers.onStopCaptions();
|
|
40782
40850
|
});
|
|
40783
40851
|
}
|
|
40784
40852
|
setCaptionLanguage(language) {
|
|
40785
|
-
return __awaiter$
|
|
40853
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40786
40854
|
this.handlers.onSetCaptionLanguage(language);
|
|
40787
40855
|
});
|
|
40788
40856
|
}
|
|
40789
40857
|
setSpokenLanguage(language) {
|
|
40790
|
-
return __awaiter$
|
|
40858
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40791
40859
|
this.handlers.onSetSpokenLanguage(language);
|
|
40792
40860
|
});
|
|
40793
40861
|
}
|
|
40794
40862
|
submitSurvey(survey) {
|
|
40795
|
-
return __awaiter$
|
|
40863
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40796
40864
|
return this.handlers.onSubmitSurvey(survey);
|
|
40797
40865
|
});
|
|
40798
40866
|
}
|
|
40799
40867
|
/* @conditional-compile-remove(soft-mute) */
|
|
40800
40868
|
muteParticipant(userId) {
|
|
40801
|
-
return __awaiter$
|
|
40869
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40802
40870
|
this.handlers.onMuteParticipant(userId);
|
|
40803
40871
|
});
|
|
40804
40872
|
}
|
|
40805
40873
|
/* @conditional-compile-remove(soft-mute) */
|
|
40806
40874
|
muteAllRemoteParticipants() {
|
|
40807
|
-
return __awaiter$
|
|
40875
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40808
40876
|
this.handlers.onMuteAllRemoteParticipants();
|
|
40809
40877
|
});
|
|
40810
40878
|
}
|
|
40811
40879
|
startSpotlight(userIds) {
|
|
40812
|
-
return __awaiter$
|
|
40880
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40813
40881
|
this.handlers.onStartSpotlight(userIds);
|
|
40814
40882
|
});
|
|
40815
40883
|
}
|
|
40816
40884
|
stopSpotlight(userIds) {
|
|
40817
|
-
return __awaiter$
|
|
40885
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40818
40886
|
this.handlers.onStopSpotlight(userIds);
|
|
40819
40887
|
});
|
|
40820
40888
|
}
|
|
40821
40889
|
stopAllSpotlight() {
|
|
40822
|
-
return __awaiter$
|
|
40890
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40823
40891
|
this.handlers.onStopAllSpotlight();
|
|
40824
40892
|
});
|
|
40825
40893
|
}
|
|
40826
40894
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
40827
40895
|
returnFromBreakoutRoom() {
|
|
40828
|
-
return __awaiter$
|
|
40896
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
40829
40897
|
var _a;
|
|
40830
40898
|
if (!this.originCall) {
|
|
40831
40899
|
throw new Error('Could not return from breakout room because the origin call could not be retrieved.');
|
|
@@ -41100,7 +41168,7 @@ class AzureCommunicationCallAdapter {
|
|
|
41100
41168
|
this.emitter.off(event, listener);
|
|
41101
41169
|
}
|
|
41102
41170
|
asyncTeeErrorToEventEmitter(f) {
|
|
41103
|
-
return __awaiter$
|
|
41171
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
41104
41172
|
try {
|
|
41105
41173
|
return yield f();
|
|
41106
41174
|
}
|
|
@@ -41137,7 +41205,7 @@ class AzureCommunicationCallAdapter {
|
|
|
41137
41205
|
* @public
|
|
41138
41206
|
*/
|
|
41139
41207
|
function createAzureCommunicationCallAdapter(args) {
|
|
41140
|
-
return __awaiter$
|
|
41208
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
41141
41209
|
if (communicationCommon.isMicrosoftTeamsUserIdentifier(args.userId)) {
|
|
41142
41210
|
throw new Error('Microsoft Teams user identifier is not supported by AzureCommunicationCallAdapter. Instead use TeamsCallAdapter.');
|
|
41143
41211
|
}
|
|
@@ -41147,8 +41215,6 @@ function createAzureCommunicationCallAdapter(args) {
|
|
|
41147
41215
|
credential: args.credential,
|
|
41148
41216
|
locator: args.locator,
|
|
41149
41217
|
targetCallees: args.targetCallees,
|
|
41150
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
41151
|
-
alternateCallerId: args.alternateCallerId,
|
|
41152
41218
|
options: args.options
|
|
41153
41219
|
});
|
|
41154
41220
|
});
|
|
@@ -41158,15 +41224,12 @@ function createAzureCommunicationCallAdapter(args) {
|
|
|
41158
41224
|
*
|
|
41159
41225
|
* @internal
|
|
41160
41226
|
*/
|
|
41161
|
-
const _createAzureCommunicationCallAdapterInner = (_a) => __awaiter$
|
|
41162
|
-
/* @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' }) {
|
|
41163
41228
|
if (!_isValidIdentifier(userId)) {
|
|
41164
41229
|
throw new Error('Invalid identifier. Please provide valid identifier object.');
|
|
41165
41230
|
}
|
|
41166
41231
|
const callClient = _createStatefulCallClientInner({
|
|
41167
|
-
userId
|
|
41168
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
41169
|
-
alternateCallerId
|
|
41232
|
+
userId
|
|
41170
41233
|
}, undefined, telemetryImplementationHint);
|
|
41171
41234
|
const callAgent = yield callClient.createCallAgent(credential, {
|
|
41172
41235
|
displayName
|
|
@@ -41184,7 +41247,7 @@ const _createAzureCommunicationCallAdapterInner = (_a) => __awaiter$9(void 0, [_
|
|
|
41184
41247
|
/**
|
|
41185
41248
|
* @public
|
|
41186
41249
|
*/
|
|
41187
|
-
const createTeamsCallAdapter = (args) => __awaiter$
|
|
41250
|
+
const createTeamsCallAdapter = (args) => __awaiter$b(void 0, void 0, void 0, function* () {
|
|
41188
41251
|
const { userId, credential, options } = args;
|
|
41189
41252
|
if (communicationCommon.isCommunicationUserIdentifier(userId)) {
|
|
41190
41253
|
throw new Error('Communication User identifier is not supported by TeamsCallAdapter, please use our AzureCommunicationCallAdapter.');
|
|
@@ -41210,8 +41273,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
41210
41273
|
const locator = 'locator' in args ? args.locator : undefined;
|
|
41211
41274
|
const targetCallees = 'targetCallees' in args ? args.targetCallees : undefined;
|
|
41212
41275
|
const displayName = 'displayName' in args ? args.displayName : undefined;
|
|
41213
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
41214
|
-
const alternateCallerId = 'alternateCallerId' in args ? args.alternateCallerId : undefined;
|
|
41215
41276
|
const options = 'options' in args ? args.options : undefined;
|
|
41216
41277
|
// State update needed to rerender the parent component when a new adapter is created.
|
|
41217
41278
|
const [adapter, setAdapter] = React.useState(undefined);
|
|
@@ -41233,7 +41294,7 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
41233
41294
|
if (adapterKind === 'AzureCommunication' && !displayName) {
|
|
41234
41295
|
return;
|
|
41235
41296
|
}
|
|
41236
|
-
(() => __awaiter$
|
|
41297
|
+
(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
41237
41298
|
if (adapterRef.current) {
|
|
41238
41299
|
// Dispose the old adapter when a new one is created.
|
|
41239
41300
|
//
|
|
@@ -41263,7 +41324,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
41263
41324
|
displayName: displayName,
|
|
41264
41325
|
locator,
|
|
41265
41326
|
userId: userId,
|
|
41266
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
|
|
41267
41327
|
options
|
|
41268
41328
|
}));
|
|
41269
41329
|
}
|
|
@@ -41273,7 +41333,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
41273
41333
|
displayName: displayName,
|
|
41274
41334
|
targetCallees,
|
|
41275
41335
|
userId: userId,
|
|
41276
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
|
|
41277
41336
|
options
|
|
41278
41337
|
}));
|
|
41279
41338
|
}
|
|
@@ -41327,15 +41386,13 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
|
41327
41386
|
locator,
|
|
41328
41387
|
userId,
|
|
41329
41388
|
displayName,
|
|
41330
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
|
41331
|
-
alternateCallerId,
|
|
41332
41389
|
options,
|
|
41333
41390
|
targetCallees
|
|
41334
41391
|
]);
|
|
41335
41392
|
// Dispose any existing adapter when the component unmounts.
|
|
41336
41393
|
React.useEffect(() => {
|
|
41337
41394
|
return () => {
|
|
41338
|
-
(() => __awaiter$
|
|
41395
|
+
(() => __awaiter$b(this, void 0, void 0, function* () {
|
|
41339
41396
|
if (adapterRef.current) {
|
|
41340
41397
|
if (beforeDisposeRef.current) {
|
|
41341
41398
|
yield beforeDisposeRef.current(adapterRef.current);
|
|
@@ -41430,7 +41487,7 @@ beforeDispose) => {
|
|
|
41430
41487
|
* @public
|
|
41431
41488
|
*/
|
|
41432
41489
|
function createAzureCommunicationCallAdapterFromClient(callClient, callAgent, locatorOrtargetCallees, options) {
|
|
41433
|
-
return __awaiter$
|
|
41490
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
|
41434
41491
|
const deviceManager = (yield callClient.getDeviceManager());
|
|
41435
41492
|
yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones()]);
|
|
41436
41493
|
if (deviceManager.isSpeakerSelectionAvailable) {
|
|
@@ -41455,7 +41512,7 @@ function createAzureCommunicationCallAdapterFromClient(callClient, callAgent, lo
|
|
|
41455
41512
|
*
|
|
41456
41513
|
* @public
|
|
41457
41514
|
*/
|
|
41458
|
-
const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$
|
|
41515
|
+
const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$b(void 0, void 0, void 0, function* () {
|
|
41459
41516
|
const deviceManager = (yield callClient.getDeviceManager());
|
|
41460
41517
|
yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones()]);
|
|
41461
41518
|
if (deviceManager.isSpeakerSelectionAvailable) {
|
|
@@ -41513,7 +41570,7 @@ const chatSpinnerContainerStyles = {
|
|
|
41513
41570
|
|
|
41514
41571
|
// Copyright (c) Microsoft Corporation.
|
|
41515
41572
|
// Licensed under the MIT License.
|
|
41516
|
-
var __awaiter$
|
|
41573
|
+
var __awaiter$a = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41517
41574
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
41518
41575
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41519
41576
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -41579,7 +41636,7 @@ class CallWithChatBackedCallAdapter {
|
|
|
41579
41636
|
return this.callWithChatAdapter.joinCall(options);
|
|
41580
41637
|
}
|
|
41581
41638
|
};
|
|
41582
|
-
this.leaveCall = (forEveryone) => __awaiter$
|
|
41639
|
+
this.leaveCall = (forEveryone) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.leaveCall(forEveryone); });
|
|
41583
41640
|
this.startCall = (participants, options) => {
|
|
41584
41641
|
if (participants.every((participant) => typeof participant === 'string')) {
|
|
41585
41642
|
return this.callWithChatAdapter.startCall(participants, options);
|
|
@@ -41588,39 +41645,39 @@ class CallWithChatBackedCallAdapter {
|
|
|
41588
41645
|
return this.callWithChatAdapter.startCall(participants, options);
|
|
41589
41646
|
}
|
|
41590
41647
|
};
|
|
41591
|
-
this.setCamera = (sourceId, options) => __awaiter$
|
|
41592
|
-
this.setMicrophone = (sourceId) => __awaiter$
|
|
41593
|
-
this.setSpeaker = (sourceId) => __awaiter$
|
|
41594
|
-
this.askDevicePermission = (constraints) => __awaiter$
|
|
41595
|
-
this.queryCameras = () => __awaiter$
|
|
41596
|
-
this.queryMicrophones = () => __awaiter$
|
|
41597
|
-
this.querySpeakers = () => __awaiter$
|
|
41598
|
-
this.startCamera = (options) => __awaiter$
|
|
41599
|
-
this.stopCamera = () => __awaiter$
|
|
41600
|
-
this.mute = () => __awaiter$
|
|
41601
|
-
this.unmute = () => __awaiter$
|
|
41602
|
-
this.startScreenShare = () => __awaiter$
|
|
41603
|
-
this.stopScreenShare = () => __awaiter$
|
|
41604
|
-
this.raiseHand = () => __awaiter$
|
|
41605
|
-
this.lowerHand = () => __awaiter$
|
|
41606
|
-
this.onReactionClick = (reaction) => __awaiter$
|
|
41607
|
-
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* () {
|
|
41608
41665
|
let participant = userId;
|
|
41609
41666
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
41610
41667
|
participant = _toCommunicationIdentifier(userId);
|
|
41611
41668
|
yield this.callWithChatAdapter.removeParticipant(participant);
|
|
41612
41669
|
});
|
|
41613
|
-
this.createStreamView = (remoteUserId, options) => __awaiter$
|
|
41614
|
-
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); });
|
|
41615
41672
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
41616
|
-
this.holdCall = () => __awaiter$
|
|
41673
|
+
this.holdCall = () => __awaiter$a(this, void 0, void 0, function* () {
|
|
41617
41674
|
yield this.callWithChatAdapter.holdCall();
|
|
41618
41675
|
});
|
|
41619
41676
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
41620
|
-
this.resumeCall = () => __awaiter$
|
|
41677
|
+
this.resumeCall = () => __awaiter$a(this, void 0, void 0, function* () {
|
|
41621
41678
|
yield this.callWithChatAdapter.resumeCall();
|
|
41622
41679
|
});
|
|
41623
|
-
this.sendDtmfTone = (dtmfTone) => __awaiter$
|
|
41680
|
+
this.sendDtmfTone = (dtmfTone) => __awaiter$a(this, void 0, void 0, function* () {
|
|
41624
41681
|
yield this.callWithChatAdapter.sendDtmfTone(dtmfTone);
|
|
41625
41682
|
});
|
|
41626
41683
|
this.callWithChatAdapter = callWithChatAdapter;
|
|
@@ -41636,7 +41693,7 @@ class CallWithChatBackedCallAdapter {
|
|
|
41636
41693
|
}
|
|
41637
41694
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
41638
41695
|
addParticipant(participant, options) {
|
|
41639
|
-
return __awaiter$
|
|
41696
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41640
41697
|
if (communicationCommon.isPhoneNumberIdentifier(participant) && options) {
|
|
41641
41698
|
return this.callWithChatAdapter.addParticipant(participant, options);
|
|
41642
41699
|
}
|
|
@@ -41650,32 +41707,32 @@ class CallWithChatBackedCallAdapter {
|
|
|
41650
41707
|
return this.callWithChatAdapter.allowUnsupportedBrowserVersion();
|
|
41651
41708
|
}
|
|
41652
41709
|
startCaptions(options) {
|
|
41653
|
-
return __awaiter$
|
|
41710
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41654
41711
|
this.callWithChatAdapter.startCaptions(options);
|
|
41655
41712
|
});
|
|
41656
41713
|
}
|
|
41657
41714
|
stopCaptions() {
|
|
41658
|
-
return __awaiter$
|
|
41715
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41659
41716
|
this.callWithChatAdapter.stopCaptions();
|
|
41660
41717
|
});
|
|
41661
41718
|
}
|
|
41662
41719
|
setCaptionLanguage(language) {
|
|
41663
|
-
return __awaiter$
|
|
41720
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41664
41721
|
this.callWithChatAdapter.setCaptionLanguage(language);
|
|
41665
41722
|
});
|
|
41666
41723
|
}
|
|
41667
41724
|
setSpokenLanguage(language) {
|
|
41668
|
-
return __awaiter$
|
|
41725
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41669
41726
|
this.callWithChatAdapter.setSpokenLanguage(language);
|
|
41670
41727
|
});
|
|
41671
41728
|
}
|
|
41672
41729
|
startVideoBackgroundEffect(videoBackgroundEffect) {
|
|
41673
|
-
return __awaiter$
|
|
41730
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41674
41731
|
yield this.callWithChatAdapter.startVideoBackgroundEffect(videoBackgroundEffect);
|
|
41675
41732
|
});
|
|
41676
41733
|
}
|
|
41677
41734
|
stopVideoBackgroundEffects() {
|
|
41678
|
-
return __awaiter$
|
|
41735
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41679
41736
|
yield this.callWithChatAdapter.stopVideoBackgroundEffects();
|
|
41680
41737
|
});
|
|
41681
41738
|
}
|
|
@@ -41685,41 +41742,53 @@ class CallWithChatBackedCallAdapter {
|
|
|
41685
41742
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground) {
|
|
41686
41743
|
return this.callWithChatAdapter.updateSelectedVideoBackgroundEffect(selectedVideoBackground);
|
|
41687
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
|
+
}
|
|
41688
41757
|
submitSurvey(survey) {
|
|
41689
|
-
return __awaiter$
|
|
41758
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41690
41759
|
return this.callWithChatAdapter.submitSurvey(survey);
|
|
41691
41760
|
});
|
|
41692
41761
|
}
|
|
41693
41762
|
startSpotlight(userIds) {
|
|
41694
|
-
return __awaiter$
|
|
41763
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41695
41764
|
return this.callWithChatAdapter.startSpotlight(userIds);
|
|
41696
41765
|
});
|
|
41697
41766
|
}
|
|
41698
41767
|
stopSpotlight(userIds) {
|
|
41699
|
-
return __awaiter$
|
|
41768
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41700
41769
|
return this.callWithChatAdapter.stopSpotlight(userIds);
|
|
41701
41770
|
});
|
|
41702
41771
|
}
|
|
41703
41772
|
stopAllSpotlight() {
|
|
41704
|
-
return __awaiter$
|
|
41773
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41705
41774
|
return this.callWithChatAdapter.stopAllSpotlight();
|
|
41706
41775
|
});
|
|
41707
41776
|
}
|
|
41708
41777
|
/* @conditional-compile-remove(soft-mute) */
|
|
41709
41778
|
muteParticipant(userId) {
|
|
41710
|
-
return __awaiter$
|
|
41779
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41711
41780
|
return this.callWithChatAdapter.muteParticipant(userId);
|
|
41712
41781
|
});
|
|
41713
41782
|
}
|
|
41714
41783
|
/* @conditional-compile-remove(soft-mute) */
|
|
41715
41784
|
muteAllRemoteParticipants() {
|
|
41716
|
-
return __awaiter$
|
|
41785
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41717
41786
|
return this.callWithChatAdapter.muteAllRemoteParticipants();
|
|
41718
41787
|
});
|
|
41719
41788
|
}
|
|
41720
41789
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
41721
41790
|
returnFromBreakoutRoom() {
|
|
41722
|
-
return __awaiter$
|
|
41791
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
|
41723
41792
|
return this.callWithChatAdapter.returnFromBreakoutRoom();
|
|
41724
41793
|
});
|
|
41725
41794
|
}
|
|
@@ -41744,6 +41813,8 @@ function callAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState)
|
|
|
41744
41813
|
environmentInfo: callWithChatAdapterState.environmentInfo,
|
|
41745
41814
|
videoBackgroundImages: callWithChatAdapterState.videoBackgroundImages,
|
|
41746
41815
|
onResolveVideoEffectDependency: callWithChatAdapterState.onResolveVideoEffectDependency,
|
|
41816
|
+
/* @conditional-compile-remove(DNS) */
|
|
41817
|
+
onResolveDeepNoiseSuppressionDependency: callWithChatAdapterState.onResolveDeepNoiseSuppressionDependency,
|
|
41747
41818
|
selectedVideoBackgroundEffect: callWithChatAdapterState.selectedVideoBackgroundEffect,
|
|
41748
41819
|
reactions: callWithChatAdapterState.reactions
|
|
41749
41820
|
};
|
|
@@ -41751,7 +41822,7 @@ function callAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState)
|
|
|
41751
41822
|
|
|
41752
41823
|
// Copyright (c) Microsoft Corporation.
|
|
41753
41824
|
// Licensed under the MIT License.
|
|
41754
|
-
var __awaiter$
|
|
41825
|
+
var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41755
41826
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
41756
41827
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41757
41828
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -41772,26 +41843,26 @@ class CallWithChatBackedChatAdapter {
|
|
|
41772
41843
|
// For onStateChange we must convert CallWithChat state to chat state. This involves creating a new handler to be passed into the onStateChange.
|
|
41773
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.
|
|
41774
41845
|
this.eventStore = new Map();
|
|
41775
|
-
this.fetchInitialData = () => __awaiter$
|
|
41846
|
+
this.fetchInitialData = () => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.fetchInitialData(); });
|
|
41776
41847
|
// due to a bug in babel, we can't use arrow function here
|
|
41777
41848
|
// affecting conditional-compile-remove(attachment-upload)
|
|
41778
41849
|
// have to bind this since the scope of 'this' is lost when the function is passed as a callback
|
|
41779
41850
|
this.sendMessageHandler = function (content,
|
|
41780
41851
|
/* @conditional-compile-remove(file-sharing-acs) */
|
|
41781
41852
|
options) {
|
|
41782
|
-
return __awaiter$
|
|
41853
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
|
41783
41854
|
yield this.callWithChatAdapter.sendMessage(content, /* @conditional-compile-remove(file-sharing-acs) */ options);
|
|
41784
41855
|
});
|
|
41785
41856
|
};
|
|
41786
41857
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
41787
41858
|
this.uploadImageHandler = function (image, fileName) {
|
|
41788
|
-
return __awaiter$
|
|
41859
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
|
41789
41860
|
return yield this.callWithChatAdapter.uploadImage(image, fileName);
|
|
41790
41861
|
});
|
|
41791
41862
|
};
|
|
41792
41863
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
41793
41864
|
this.deleteImageHandler = function (imageId) {
|
|
41794
|
-
return __awaiter$
|
|
41865
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
|
41795
41866
|
return yield this.callWithChatAdapter.deleteImage(imageId);
|
|
41796
41867
|
});
|
|
41797
41868
|
};
|
|
@@ -41800,10 +41871,10 @@ class CallWithChatBackedChatAdapter {
|
|
|
41800
41871
|
this.uploadImage = this.uploadImageHandler.bind(this);
|
|
41801
41872
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
41802
41873
|
this.deleteImage = this.deleteImageHandler.bind(this);
|
|
41803
|
-
this.sendReadReceipt = (chatMessageId) => __awaiter$
|
|
41804
|
-
this.sendTypingIndicator = () => __awaiter$
|
|
41805
|
-
this.removeParticipant = (userId) => __awaiter$
|
|
41806
|
-
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); });
|
|
41807
41878
|
this.dispose = () => this.callWithChatAdapter.dispose();
|
|
41808
41879
|
this.onStateChange = (handler) => {
|
|
41809
41880
|
const convertedHandler = (state) => {
|
|
@@ -41846,22 +41917,22 @@ class CallWithChatBackedChatAdapter {
|
|
|
41846
41917
|
// affecting conditional-compile-remove(attachment-upload)
|
|
41847
41918
|
// have to bind this since the scope of 'this' is lost when the function is passed as a callback
|
|
41848
41919
|
this.updateMessageHandler = function (messageId, content, options) {
|
|
41849
|
-
return __awaiter$
|
|
41920
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
|
41850
41921
|
yield this.callWithChatAdapter.updateMessage(messageId, content, options);
|
|
41851
41922
|
});
|
|
41852
41923
|
};
|
|
41853
41924
|
this.updateMessage = this.updateMessageHandler.bind(this);
|
|
41854
|
-
this.deleteMessage = (messageId) => __awaiter$
|
|
41925
|
+
this.deleteMessage = (messageId) => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.deleteMessage(messageId); });
|
|
41855
41926
|
this.clearErrors = (errorTypes) => {
|
|
41856
41927
|
throw new Error(`Method not supported in CallWithChatComposite.`);
|
|
41857
41928
|
};
|
|
41858
|
-
this.setTopic = (topicName) => __awaiter$
|
|
41929
|
+
this.setTopic = (topicName) => __awaiter$9(this, void 0, void 0, function* () {
|
|
41859
41930
|
throw new Error(`Chat Topics are not supported in CallWithChatComposite.`);
|
|
41860
41931
|
});
|
|
41861
41932
|
this.callWithChatAdapter = callWithChatAdapter;
|
|
41862
41933
|
}
|
|
41863
41934
|
downloadResourceToCache(resourceDetails) {
|
|
41864
|
-
return __awaiter$
|
|
41935
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
|
41865
41936
|
this.callWithChatAdapter.downloadResourceToCache(resourceDetails);
|
|
41866
41937
|
});
|
|
41867
41938
|
}
|
|
@@ -42334,6 +42405,8 @@ function callWithChatAdapterStateFromBackingStates(callAdapter) {
|
|
|
42334
42405
|
environmentInfo: callAdapterState.environmentInfo,
|
|
42335
42406
|
videoBackgroundImages: callAdapterState.videoBackgroundImages,
|
|
42336
42407
|
onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency,
|
|
42408
|
+
/* @conditional-compile-remove(DNS) */
|
|
42409
|
+
onResolveDeepNoiseSuppressionDependency: callAdapterState.onResolveDeepNoiseSuppressionDependency,
|
|
42337
42410
|
selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect,
|
|
42338
42411
|
/* @conditional-compile-remove(hide-attendee-name) */
|
|
42339
42412
|
/** Hide attendee names in teams meeting */
|
|
@@ -42353,12 +42426,14 @@ function mergeChatAdapterStateIntoCallWithChatAdapterState(existingCallWithChatA
|
|
|
42353
42426
|
function mergeCallAdapterStateIntoCallWithChatAdapterState(existingCallWithChatAdapterState, callAdapterState) {
|
|
42354
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,
|
|
42355
42428
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
42356
|
-
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 });
|
|
42357
42432
|
}
|
|
42358
42433
|
|
|
42359
42434
|
// Copyright (c) Microsoft Corporation.
|
|
42360
42435
|
// Licensed under the MIT License.
|
|
42361
|
-
var __awaiter$
|
|
42436
|
+
var __awaiter$8 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42362
42437
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42363
42438
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
42364
42439
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -42426,7 +42501,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42426
42501
|
};
|
|
42427
42502
|
this.callAdapter.onStateChange(onCallStateChange);
|
|
42428
42503
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
42429
|
-
this.callAdapter.on('breakoutRoomsUpdated', (eventData) => __awaiter$
|
|
42504
|
+
this.callAdapter.on('breakoutRoomsUpdated', (eventData) => __awaiter$8(this, void 0, void 0, function* () {
|
|
42430
42505
|
if (eventData.type === 'join') {
|
|
42431
42506
|
yield this.breakoutRoomJoined(eventData.data);
|
|
42432
42507
|
}
|
|
@@ -42450,7 +42525,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42450
42525
|
}
|
|
42451
42526
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
42452
42527
|
breakoutRoomJoined(call) {
|
|
42453
|
-
return __awaiter$
|
|
42528
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42454
42529
|
var _a;
|
|
42455
42530
|
const targetThreadId = call.info.threadId;
|
|
42456
42531
|
// If the chat adapter is not on the target thread then we need to switch to the breakout room chat adapter
|
|
@@ -42485,7 +42560,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42485
42560
|
}
|
|
42486
42561
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
42487
42562
|
setBreakoutRoomChatAdapterToThread(targetThreadId) {
|
|
42488
|
-
return __awaiter$
|
|
42563
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42489
42564
|
if (this.breakoutRoomChatAdapter) {
|
|
42490
42565
|
// If the breakout room chat adapter is not set on the target thread then unsubscribe, dispose, and
|
|
42491
42566
|
// reinitialize the chat adapter for the target thread
|
|
@@ -42593,6 +42668,10 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42593
42668
|
this.startVideoBackgroundEffect.bind(this);
|
|
42594
42669
|
this.stopVideoBackgroundEffects.bind(this);
|
|
42595
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);
|
|
42596
42675
|
}
|
|
42597
42676
|
/** Join existing Call. */
|
|
42598
42677
|
joinCall(options) {
|
|
@@ -42605,7 +42684,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42605
42684
|
}
|
|
42606
42685
|
/** Leave current Call. */
|
|
42607
42686
|
leaveCall(forEveryone) {
|
|
42608
|
-
return __awaiter$
|
|
42687
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42609
42688
|
// Only remove self from the GroupCall. Contoso must manage access to Chat.
|
|
42610
42689
|
yield this.callAdapter.leaveCall(forEveryone);
|
|
42611
42690
|
});
|
|
@@ -42652,7 +42731,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42652
42731
|
}
|
|
42653
42732
|
/** Remove a participant from the Call only. */
|
|
42654
42733
|
removeParticipant(userId) {
|
|
42655
|
-
return __awaiter$
|
|
42734
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42656
42735
|
let participant = userId;
|
|
42657
42736
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
42658
42737
|
participant = _toCommunicationIdentifier(userId);
|
|
@@ -42660,132 +42739,132 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42660
42739
|
});
|
|
42661
42740
|
}
|
|
42662
42741
|
setCamera(device, options) {
|
|
42663
|
-
return __awaiter$
|
|
42742
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42664
42743
|
yield this.callAdapter.setCamera(device, options);
|
|
42665
42744
|
});
|
|
42666
42745
|
}
|
|
42667
42746
|
/** Set the microphone to be used in the Call. */
|
|
42668
42747
|
setMicrophone(device) {
|
|
42669
|
-
return __awaiter$
|
|
42748
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42670
42749
|
yield this.callAdapter.setMicrophone(device);
|
|
42671
42750
|
});
|
|
42672
42751
|
}
|
|
42673
42752
|
/** Set the speaker to be used in the Call. */
|
|
42674
42753
|
setSpeaker(device) {
|
|
42675
|
-
return __awaiter$
|
|
42754
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42676
42755
|
yield this.callAdapter.setSpeaker(device);
|
|
42677
42756
|
});
|
|
42678
42757
|
}
|
|
42679
42758
|
askDevicePermission(constraints) {
|
|
42680
|
-
return __awaiter$
|
|
42759
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42681
42760
|
yield this.callAdapter.askDevicePermission(constraints);
|
|
42682
42761
|
});
|
|
42683
42762
|
}
|
|
42684
42763
|
/** Query for available cameras. */
|
|
42685
42764
|
queryCameras() {
|
|
42686
|
-
return __awaiter$
|
|
42765
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42687
42766
|
return yield this.callAdapter.queryCameras();
|
|
42688
42767
|
});
|
|
42689
42768
|
}
|
|
42690
42769
|
/** Query for available microphones. */
|
|
42691
42770
|
queryMicrophones() {
|
|
42692
|
-
return __awaiter$
|
|
42771
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42693
42772
|
return yield this.callAdapter.queryMicrophones();
|
|
42694
42773
|
});
|
|
42695
42774
|
}
|
|
42696
42775
|
/** Query for available speakers. */
|
|
42697
42776
|
querySpeakers() {
|
|
42698
|
-
return __awaiter$
|
|
42777
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42699
42778
|
return yield this.callAdapter.querySpeakers();
|
|
42700
42779
|
});
|
|
42701
42780
|
}
|
|
42702
42781
|
/** Start the camera for the user in the Call. */
|
|
42703
42782
|
startCamera(options) {
|
|
42704
|
-
return __awaiter$
|
|
42783
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42705
42784
|
yield this.callAdapter.startCamera(options);
|
|
42706
42785
|
});
|
|
42707
42786
|
}
|
|
42708
42787
|
/** Stop the camera for the user in the Call. */
|
|
42709
42788
|
stopCamera() {
|
|
42710
|
-
return __awaiter$
|
|
42789
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42711
42790
|
yield this.callAdapter.stopCamera();
|
|
42712
42791
|
});
|
|
42713
42792
|
}
|
|
42714
42793
|
/** Mute the user in the Call. */
|
|
42715
42794
|
mute() {
|
|
42716
|
-
return __awaiter$
|
|
42795
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42717
42796
|
yield this.callAdapter.mute();
|
|
42718
42797
|
});
|
|
42719
42798
|
}
|
|
42720
42799
|
/** Unmute the user in the Call. */
|
|
42721
42800
|
unmute() {
|
|
42722
|
-
return __awaiter$
|
|
42801
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42723
42802
|
yield this.callAdapter.unmute();
|
|
42724
42803
|
});
|
|
42725
42804
|
}
|
|
42726
42805
|
/** Trigger the user to start screen share. */
|
|
42727
42806
|
startScreenShare() {
|
|
42728
|
-
return __awaiter$
|
|
42807
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42729
42808
|
yield this.callAdapter.startScreenShare();
|
|
42730
42809
|
});
|
|
42731
42810
|
}
|
|
42732
42811
|
/** Stop the current active screen share. */
|
|
42733
42812
|
stopScreenShare() {
|
|
42734
|
-
return __awaiter$
|
|
42813
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42735
42814
|
yield this.callAdapter.stopScreenShare();
|
|
42736
42815
|
});
|
|
42737
42816
|
}
|
|
42738
42817
|
/** Raise hand for local user. */
|
|
42739
42818
|
raiseHand() {
|
|
42740
|
-
return __awaiter$
|
|
42819
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42741
42820
|
yield this.callAdapter.raiseHand();
|
|
42742
42821
|
});
|
|
42743
42822
|
}
|
|
42744
42823
|
/** Lower hand for local user. */
|
|
42745
42824
|
lowerHand() {
|
|
42746
|
-
return __awaiter$
|
|
42825
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42747
42826
|
yield this.callAdapter.lowerHand();
|
|
42748
42827
|
});
|
|
42749
42828
|
}
|
|
42750
42829
|
/** Reaction clicked by the local user. */
|
|
42751
42830
|
onReactionClick(reaction) {
|
|
42752
|
-
return __awaiter$
|
|
42831
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42753
42832
|
yield this.callAdapter.onReactionClick(reaction);
|
|
42754
42833
|
});
|
|
42755
42834
|
}
|
|
42756
42835
|
/** Create a stream view for a remote participants video feed. */
|
|
42757
42836
|
createStreamView(remoteUserId, options) {
|
|
42758
|
-
return __awaiter$
|
|
42837
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42759
42838
|
return yield this.callAdapter.createStreamView(remoteUserId, options);
|
|
42760
42839
|
});
|
|
42761
42840
|
}
|
|
42762
42841
|
/** Dispose of a created stream view of a remote participants video feed. */
|
|
42763
42842
|
disposeStreamView(remoteUserId, options) {
|
|
42764
|
-
return __awaiter$
|
|
42843
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42765
42844
|
yield this.callAdapter.disposeStreamView(remoteUserId, options);
|
|
42766
42845
|
});
|
|
42767
42846
|
}
|
|
42768
42847
|
/** Dispose of a remote screen share */
|
|
42769
42848
|
disposeScreenShareStreamView(remoteUserId) {
|
|
42770
|
-
return __awaiter$
|
|
42849
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42771
42850
|
yield this.callAdapter.disposeScreenShareStreamView(remoteUserId);
|
|
42772
42851
|
});
|
|
42773
42852
|
}
|
|
42774
42853
|
/** Dispose of a remote video stream */
|
|
42775
42854
|
disposeRemoteVideoStreamView(remoteUserId) {
|
|
42776
|
-
return __awaiter$
|
|
42855
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42777
42856
|
yield this.callAdapter.disposeRemoteVideoStreamView(remoteUserId);
|
|
42778
42857
|
});
|
|
42779
42858
|
}
|
|
42780
42859
|
/** Dispose of the local video stream */
|
|
42781
42860
|
disposeLocalVideoStreamView() {
|
|
42782
|
-
return __awaiter$
|
|
42861
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42783
42862
|
yield this.callAdapter.disposeLocalVideoStreamView();
|
|
42784
42863
|
});
|
|
42785
42864
|
}
|
|
42786
42865
|
/** Fetch initial Call and Chat data such as chat messages. */
|
|
42787
42866
|
fetchInitialData() {
|
|
42788
|
-
return __awaiter$
|
|
42867
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42789
42868
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42790
42869
|
return adapter.fetchInitialData();
|
|
42791
42870
|
});
|
|
@@ -42795,7 +42874,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42795
42874
|
sendMessage(content,
|
|
42796
42875
|
/* @conditional-compile-remove(file-sharing-acs) */
|
|
42797
42876
|
options) {
|
|
42798
|
-
return __awaiter$
|
|
42877
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42799
42878
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42800
42879
|
return adapter.sendMessage(content, /* @conditional-compile-remove(file-sharing-acs) */ options);
|
|
42801
42880
|
});
|
|
@@ -42804,7 +42883,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42804
42883
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
42805
42884
|
/** Upload a chat image. */
|
|
42806
42885
|
uploadImage(image, imageFileName) {
|
|
42807
|
-
return __awaiter$
|
|
42886
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42808
42887
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42809
42888
|
return adapter.uploadImage(image, imageFileName);
|
|
42810
42889
|
});
|
|
@@ -42813,7 +42892,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42813
42892
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
|
42814
42893
|
/** Delete a chat image. */
|
|
42815
42894
|
deleteImage(imageId) {
|
|
42816
|
-
return __awaiter$
|
|
42895
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42817
42896
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42818
42897
|
return adapter.deleteImage(imageId);
|
|
42819
42898
|
});
|
|
@@ -42821,7 +42900,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42821
42900
|
}
|
|
42822
42901
|
/** Send a chat read receipt. */
|
|
42823
42902
|
sendReadReceipt(chatMessageId) {
|
|
42824
|
-
return __awaiter$
|
|
42903
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42825
42904
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42826
42905
|
return adapter.sendReadReceipt(chatMessageId);
|
|
42827
42906
|
});
|
|
@@ -42829,7 +42908,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42829
42908
|
}
|
|
42830
42909
|
/** Send an isTyping indicator. */
|
|
42831
42910
|
sendTypingIndicator() {
|
|
42832
|
-
return __awaiter$
|
|
42911
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42833
42912
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42834
42913
|
return adapter.sendTypingIndicator();
|
|
42835
42914
|
});
|
|
@@ -42837,7 +42916,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42837
42916
|
}
|
|
42838
42917
|
/** Load previous Chat messages. */
|
|
42839
42918
|
loadPreviousChatMessages(messagesToLoad) {
|
|
42840
|
-
return __awaiter$
|
|
42919
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42841
42920
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42842
42921
|
return adapter.loadPreviousChatMessages(messagesToLoad);
|
|
42843
42922
|
});
|
|
@@ -42845,7 +42924,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42845
42924
|
}
|
|
42846
42925
|
/** Update an existing message. */
|
|
42847
42926
|
updateMessage(messageId, content, options) {
|
|
42848
|
-
return __awaiter$
|
|
42927
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42849
42928
|
return this.executeWithResolvedChatAdapter((adapter) => {
|
|
42850
42929
|
return adapter.updateMessage(messageId, content, options);
|
|
42851
42930
|
});
|
|
@@ -42853,14 +42932,14 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42853
42932
|
}
|
|
42854
42933
|
/** Delete an existing message. */
|
|
42855
42934
|
deleteMessage(messageId) {
|
|
42856
|
-
return __awaiter$
|
|
42935
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42857
42936
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
|
42858
42937
|
return adapter.deleteMessage(messageId);
|
|
42859
42938
|
});
|
|
42860
42939
|
});
|
|
42861
42940
|
}
|
|
42862
42941
|
downloadResourceToCache(resourceDetails) {
|
|
42863
|
-
return __awaiter$
|
|
42942
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42864
42943
|
this.executeWithResolvedChatAdapter((adapter) => {
|
|
42865
42944
|
adapter.downloadResourceToCache(resourceDetails);
|
|
42866
42945
|
});
|
|
@@ -42873,19 +42952,19 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42873
42952
|
}
|
|
42874
42953
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
42875
42954
|
holdCall() {
|
|
42876
|
-
return __awaiter$
|
|
42955
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42877
42956
|
return yield this.callAdapter.holdCall();
|
|
42878
42957
|
});
|
|
42879
42958
|
}
|
|
42880
42959
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
42881
42960
|
resumeCall() {
|
|
42882
|
-
return __awaiter$
|
|
42961
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42883
42962
|
return yield this.callAdapter.resumeCall();
|
|
42884
42963
|
});
|
|
42885
42964
|
}
|
|
42886
42965
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
42887
42966
|
addParticipant(participant, options) {
|
|
42888
|
-
return __awaiter$
|
|
42967
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42889
42968
|
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
|
42890
42969
|
return yield this.callAdapter.addParticipant(participant);
|
|
42891
42970
|
}
|
|
@@ -42895,7 +42974,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42895
42974
|
});
|
|
42896
42975
|
}
|
|
42897
42976
|
sendDtmfTone(dtmfTone) {
|
|
42898
|
-
return __awaiter$
|
|
42977
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42899
42978
|
return yield this.callAdapter.sendDtmfTone(dtmfTone);
|
|
42900
42979
|
});
|
|
42901
42980
|
}
|
|
@@ -42904,32 +42983,32 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42904
42983
|
return this.callAdapter.allowUnsupportedBrowserVersion();
|
|
42905
42984
|
}
|
|
42906
42985
|
startCaptions(options) {
|
|
42907
|
-
return __awaiter$
|
|
42986
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42908
42987
|
yield this.callAdapter.startCaptions(options);
|
|
42909
42988
|
});
|
|
42910
42989
|
}
|
|
42911
42990
|
stopCaptions() {
|
|
42912
|
-
return __awaiter$
|
|
42991
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42913
42992
|
yield this.callAdapter.stopCaptions();
|
|
42914
42993
|
});
|
|
42915
42994
|
}
|
|
42916
42995
|
setCaptionLanguage(language) {
|
|
42917
|
-
return __awaiter$
|
|
42996
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42918
42997
|
yield this.callAdapter.setCaptionLanguage(language);
|
|
42919
42998
|
});
|
|
42920
42999
|
}
|
|
42921
43000
|
setSpokenLanguage(language) {
|
|
42922
|
-
return __awaiter$
|
|
43001
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42923
43002
|
yield this.callAdapter.setSpokenLanguage(language);
|
|
42924
43003
|
});
|
|
42925
43004
|
}
|
|
42926
43005
|
startVideoBackgroundEffect(videoBackgroundEffect) {
|
|
42927
|
-
return __awaiter$
|
|
43006
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42928
43007
|
yield this.callAdapter.startVideoBackgroundEffect(videoBackgroundEffect);
|
|
42929
43008
|
});
|
|
42930
43009
|
}
|
|
42931
43010
|
stopVideoBackgroundEffects() {
|
|
42932
|
-
return __awaiter$
|
|
43011
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42933
43012
|
return yield this.callAdapter.stopVideoBackgroundEffects();
|
|
42934
43013
|
});
|
|
42935
43014
|
}
|
|
@@ -42939,41 +43018,53 @@ class AzureCommunicationCallWithChatAdapter {
|
|
|
42939
43018
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground) {
|
|
42940
43019
|
return this.callAdapter.updateSelectedVideoBackgroundEffect(selectedVideoBackground);
|
|
42941
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
|
+
}
|
|
42942
43033
|
submitSurvey(survey) {
|
|
42943
|
-
return __awaiter$
|
|
43034
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42944
43035
|
return this.callAdapter.submitSurvey(survey);
|
|
42945
43036
|
});
|
|
42946
43037
|
}
|
|
42947
43038
|
startSpotlight(userIds) {
|
|
42948
|
-
return __awaiter$
|
|
43039
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42949
43040
|
return this.callAdapter.startSpotlight(userIds);
|
|
42950
43041
|
});
|
|
42951
43042
|
}
|
|
42952
43043
|
stopSpotlight(userIds) {
|
|
42953
|
-
return __awaiter$
|
|
43044
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42954
43045
|
return this.callAdapter.stopSpotlight(userIds);
|
|
42955
43046
|
});
|
|
42956
43047
|
}
|
|
42957
43048
|
stopAllSpotlight() {
|
|
42958
|
-
return __awaiter$
|
|
43049
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42959
43050
|
return this.callAdapter.stopAllSpotlight();
|
|
42960
43051
|
});
|
|
42961
43052
|
}
|
|
42962
43053
|
/* @conditional-compile-remove(soft-mute) */
|
|
42963
43054
|
muteParticipant(userId) {
|
|
42964
|
-
return __awaiter$
|
|
43055
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42965
43056
|
return this.callAdapter.muteParticipant(userId);
|
|
42966
43057
|
});
|
|
42967
43058
|
}
|
|
42968
43059
|
/* @conditional-compile-remove(soft-mute) */
|
|
42969
43060
|
muteAllRemoteParticipants() {
|
|
42970
|
-
return __awaiter$
|
|
43061
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42971
43062
|
return this.callAdapter.muteAllRemoteParticipants();
|
|
42972
43063
|
});
|
|
42973
43064
|
}
|
|
42974
43065
|
/* @conditional-compile-remove(breakout-rooms) */
|
|
42975
43066
|
returnFromBreakoutRoom() {
|
|
42976
|
-
return __awaiter$
|
|
43067
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
42977
43068
|
var _a, _b, _c, _d;
|
|
42978
43069
|
if (this.originCallChatAdapter &&
|
|
42979
43070
|
((_a = this.context.getState().chat) === null || _a === void 0 ? void 0 : _a.threadId) !== this.originCallChatAdapter.getState().thread.threadId) {
|
|
@@ -43218,7 +43309,7 @@ class CallAndChatProvider {
|
|
|
43218
43309
|
return false;
|
|
43219
43310
|
}
|
|
43220
43311
|
getChatThreadPromise() {
|
|
43221
|
-
return __awaiter$
|
|
43312
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
43222
43313
|
return this.getChatThread();
|
|
43223
43314
|
});
|
|
43224
43315
|
}
|
|
@@ -43243,7 +43334,7 @@ class TeamsMeetingLinkProvider {
|
|
|
43243
43334
|
throw new Error('Chat thread ID should be retrieved from call.callInfo using method getChatThreadPromise');
|
|
43244
43335
|
}
|
|
43245
43336
|
getChatThreadPromise() {
|
|
43246
|
-
return __awaiter$
|
|
43337
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
43247
43338
|
{
|
|
43248
43339
|
// Wait for the call to be connected and get the chat thread ID from `call.callInfo`.
|
|
43249
43340
|
const chatThreadPromise = new Promise((resolve) => {
|
|
@@ -43287,7 +43378,7 @@ class TeamsMeetingIdProvider {
|
|
|
43287
43378
|
* @returns the chat thread ID for the given meeting ID.
|
|
43288
43379
|
*/
|
|
43289
43380
|
getChatThreadPromise() {
|
|
43290
|
-
return __awaiter$
|
|
43381
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
43291
43382
|
return new Promise((resolve) => {
|
|
43292
43383
|
const stateChangeListener = (state) => {
|
|
43293
43384
|
var _a, _b, _c;
|
|
@@ -43319,7 +43410,7 @@ class TeamsMeetingIdProvider {
|
|
|
43319
43410
|
*
|
|
43320
43411
|
* @public
|
|
43321
43412
|
*/
|
|
43322
|
-
const createAzureCommunicationCallWithChatAdapter = (_a) => __awaiter$
|
|
43413
|
+
const createAzureCommunicationCallWithChatAdapter = (_a) => __awaiter$8(void 0, [_a], void 0, function* ({ userId, displayName, credential, endpoint, locator,
|
|
43323
43414
|
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId, callAdapterOptions }) {
|
|
43324
43415
|
const callAdapterLocator = isTeamsMeetingLocator(locator) ? locator : locator.callLocator;
|
|
43325
43416
|
const callAdapter = _createAzureCommunicationCallAdapterInner({
|
|
@@ -43401,7 +43492,7 @@ beforeDispose) => {
|
|
|
43401
43492
|
if (!credential || !displayName || !endpoint || !locator || !userId) {
|
|
43402
43493
|
return;
|
|
43403
43494
|
}
|
|
43404
|
-
(() => __awaiter$
|
|
43495
|
+
(() => __awaiter$8(void 0, void 0, void 0, function* () {
|
|
43405
43496
|
if (adapterRef.current) {
|
|
43406
43497
|
// Dispose the old adapter when a new one is created.
|
|
43407
43498
|
//
|
|
@@ -43452,7 +43543,7 @@ beforeDispose) => {
|
|
|
43452
43543
|
// Dispose any existing adapter when the component unmounts.
|
|
43453
43544
|
React.useEffect(() => {
|
|
43454
43545
|
return () => {
|
|
43455
|
-
(() => __awaiter$
|
|
43546
|
+
(() => __awaiter$8(void 0, void 0, void 0, function* () {
|
|
43456
43547
|
if (adapterRef.current) {
|
|
43457
43548
|
if (beforeDisposeRef.current) {
|
|
43458
43549
|
yield beforeDisposeRef.current(adapterRef.current);
|
|
@@ -43474,7 +43565,7 @@ beforeDispose) => {
|
|
|
43474
43565
|
*
|
|
43475
43566
|
* @public
|
|
43476
43567
|
*/
|
|
43477
|
-
const createAzureCommunicationCallWithChatAdapterFromClients = (_b) => __awaiter$
|
|
43568
|
+
const createAzureCommunicationCallWithChatAdapterFromClients = (_b) => __awaiter$8(void 0, [_b], void 0, function* ({ callClient, callAgent, callLocator, chatClient, chatThreadClient, callAdapterOptions }) {
|
|
43478
43569
|
const callAdapter = yield createAzureCommunicationCallAdapterFromClient(callClient, callAgent, callLocator, callAdapterOptions);
|
|
43479
43570
|
const chatAdapter = yield createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient);
|
|
43480
43571
|
return new AzureCommunicationCallWithChatAdapter(callAdapter, chatAdapter);
|
|
@@ -43791,7 +43882,7 @@ const COMPOSITE_LOCALE_ZH_TW = {
|
|
|
43791
43882
|
|
|
43792
43883
|
// Copyright (c) Microsoft Corporation.
|
|
43793
43884
|
// Licensed under the MIT License.
|
|
43794
|
-
var __awaiter$
|
|
43885
|
+
var __awaiter$7 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
43795
43886
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43796
43887
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43797
43888
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -43805,7 +43896,7 @@ var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
|
43805
43896
|
* Dependency resolution for video background effects using lazy loading.
|
|
43806
43897
|
* @public
|
|
43807
43898
|
*/
|
|
43808
|
-
const onResolveVideoEffectDependencyLazy = () => __awaiter$
|
|
43899
|
+
const onResolveVideoEffectDependencyLazy = () => __awaiter$7(void 0, void 0, void 0, function* () {
|
|
43809
43900
|
const module = yield import('@azure/communication-calling-effects');
|
|
43810
43901
|
const createBackgroundBlurEffect = (config) => {
|
|
43811
43902
|
return new module.BackgroundBlurEffect(config);
|
|
@@ -43822,7 +43913,7 @@ const onResolveVideoEffectDependencyLazy = () => __awaiter$5(void 0, void 0, voi
|
|
|
43822
43913
|
|
|
43823
43914
|
// Copyright (c) Microsoft Corporation.
|
|
43824
43915
|
// Licensed under the MIT License.
|
|
43825
|
-
var __awaiter$
|
|
43916
|
+
var __awaiter$6 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
43826
43917
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43827
43918
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43828
43919
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -43836,7 +43927,7 @@ var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
|
43836
43927
|
*
|
|
43837
43928
|
* @public
|
|
43838
43929
|
*/
|
|
43839
|
-
const onResolveVideoEffectDependency = () => __awaiter$
|
|
43930
|
+
const onResolveVideoEffectDependency = () => __awaiter$6(void 0, void 0, void 0, function* () {
|
|
43840
43931
|
const createBackgroundBlurEffect = (config) => {
|
|
43841
43932
|
return new communicationCallingEffects.BackgroundBlurEffect(config);
|
|
43842
43933
|
};
|
|
@@ -43850,6 +43941,55 @@ const onResolveVideoEffectDependency = () => __awaiter$4(void 0, void 0, void 0,
|
|
|
43850
43941
|
return VideoBackgroundEffectsDependency;
|
|
43851
43942
|
});
|
|
43852
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
|
+
|
|
43853
43993
|
// Copyright (c) Microsoft Corporation.
|
|
43854
43994
|
// Licensed under the MIT License.
|
|
43855
43995
|
var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -44209,6 +44349,8 @@ exports.loadOutboundCallComposite = loadOutboundCallComposite;
|
|
|
44209
44349
|
exports.modifyInlineImagesInContentString = modifyInlineImagesInContentString;
|
|
44210
44350
|
exports.onRenderCancelIcon = onRenderCancelIcon;
|
|
44211
44351
|
exports.onRenderSubmitIcon = onRenderSubmitIcon;
|
|
44352
|
+
exports.onResolveDeepNoiseSuppressionDependency = onResolveDeepNoiseSuppressionDependency;
|
|
44353
|
+
exports.onResolveDeepNoiseSuppressionDependencyLazy = onResolveDeepNoiseSuppressionDependencyLazy;
|
|
44212
44354
|
exports.onResolveVideoEffectDependency = onResolveVideoEffectDependency;
|
|
44213
44355
|
exports.onResolveVideoEffectDependencyLazy = onResolveVideoEffectDependencyLazy;
|
|
44214
44356
|
exports.removeBrokenImageContentAndClearImageSizeStyles = removeBrokenImageContentAndClearImageSizeStyles;
|
|
@@ -44234,4 +44376,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
|
44234
44376
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
|
44235
44377
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
|
44236
44378
|
exports.useTheme = useTheme;
|
|
44237
|
-
//# sourceMappingURL=index-
|
|
44379
|
+
//# sourceMappingURL=index-D_pIA4Nc.js.map
|