@azure/communication-react 1.19.0-alpha-202408270015 → 1.19.0-alpha-202408290015
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 +197 -79
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-qEJmtx93.js → ChatMessageComponentAsRichTextEditBox-K_vrVBbn.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-qEJmtx93.js.map → ChatMessageComponentAsRichTextEditBox-K_vrVBbn.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BgnerjU-.js → RichTextSendBoxWrapper-Ct-gMKVg.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BgnerjU-.js.map → RichTextSendBoxWrapper-Ct-gMKVg.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-DejG4i9h.js → index-CLXDq-Ko.js} +827 -564
- package/dist/dist-cjs/communication-react/index-CLXDq-Ko.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +3 -1
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +14 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +36 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/incomingCallStackSelector.d.ts +3 -3
- package/dist/dist-esm/calling-component-bindings/src/incomingCallStackSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/index.d.ts +1 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/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/CameraButton.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/CameraButton.js +1 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.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/IncomingCallNotification.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/IncomingCallNotification.js +13 -10
- package/dist/dist-esm/react-components/src/components/IncomingCallNotification.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/IncomingCallStack.d.ts +9 -12
- package/dist/dist-esm/react-components/src/components/IncomingCallStack.js +3 -2
- package/dist/dist-esm/react-components/src/components/IncomingCallStack.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +28 -0
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +29 -1
- package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +10 -5
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +16 -9
- 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 +19 -10
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +76 -22
- 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 +49 -2
- 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/adapter/index.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +29 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.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/components/buttons/Microphone.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +5 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +8 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +5 -4
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +18 -2
- 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 +15 -4
- 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 +5 -4
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +19 -5
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +5 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +5 -5
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +3 -2
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +4 -4
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +18 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependency.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependency.js +26 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependency.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependencyLazy.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependencyLazy.js +25 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveDeepNoiseSuppressionDependencyLazy.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/index.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/index.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/dist-cjs/communication-react/index-DejG4i9h.js.map +0 -1
@@ -189,7 +189,7 @@ function getDefaultExportFromCjs (x) {
|
|
189
189
|
// Copyright (c) Microsoft Corporation.
|
190
190
|
// Licensed under the MIT License.
|
191
191
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
192
|
-
var telemetryVersion = '1.19.0-alpha-
|
192
|
+
var telemetryVersion = '1.19.0-alpha-202408290015';
|
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$13 = (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$13(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$13(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$13(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$13(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$13(void 0, void 0, void 0, function* () {
|
621
621
|
function fetchWithAuthentication(url, token, options) {
|
622
|
-
return __awaiter$
|
622
|
+
return __awaiter$13(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$13(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$12 = (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$12(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$12(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$11 = (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$11(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$10 = (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$10(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$10(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$_ = (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$_(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$_(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$_(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$_(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$Z = (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$Z(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$Z(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$Z(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$Z(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$Z(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$Z(void 0, void 0, void 0, function* () {
|
1865
1865
|
yield chatThreadClient.sendReadReceipt({ chatMessageId });
|
1866
1866
|
}),
|
1867
|
-
onTyping: () => __awaiter$
|
1867
|
+
onTyping: () => __awaiter$Z(void 0, void 0, void 0, function* () {
|
1868
1868
|
yield chatThreadClient.sendTypingNotification();
|
1869
1869
|
}),
|
1870
|
-
onRemoveParticipant: (userId) => __awaiter$
|
1870
|
+
onRemoveParticipant: (userId) => __awaiter$Z(void 0, void 0, void 0, function* () {
|
1871
1871
|
yield chatThreadClient.removeParticipant(fromFlatCommunicationIdentifier(userId));
|
1872
1872
|
}),
|
1873
|
-
updateThreadTopicName: (topicName) => __awaiter$
|
1873
|
+
updateThreadTopicName: (topicName) => __awaiter$Z(void 0, void 0, void 0, function* () {
|
1874
1874
|
yield chatThreadClient.updateTopic(topicName);
|
1875
1875
|
}),
|
1876
|
-
onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$
|
1876
|
+
onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$Z(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.
|
@@ -2008,7 +2008,7 @@ const typingIndicatorStringStyle = react.mergeStyles({
|
|
2008
2008
|
wordBreak: 'break-word'
|
2009
2009
|
});
|
2010
2010
|
|
2011
|
-
var participantItem$k={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed participant",participantStateRinging:"Calling...",participantStateHold:"On hold",attendeeRole:"Attendee"};var ParticipantList$l={overflowParticipantCount:"+{overflowCount} more"};var typingIndicator$k={singleUser:"{user} is typing ...",multipleUsers:"{users} are typing ...",multipleUsersAbbreviateOne:"{users} and 1 other are typing ...",multipleUsersAbbreviateMany:"{users} and {numOthers} others are typing ...",delimiter:", "};var sendBox$k={placeholderText:"Enter a message",textTooLong:"Your message length is over the maximum limit.",sendButtonAriaLabel:"Send message",attachmentUploadsPendingError:"File is uploading, please wait.",removeAttachment:"Remove file",uploading:"Uploading",uploadCompleted:"Upload completed",attachmentMoreMenu:"More Options"};var richTextSendBox$k={placeholderText:"Enter a message",textTooLong:"Your message length is over the maximum limit.",sendButtonAriaLabel:"Send message",attachmentUploadsPendingError:"File is uploading, please wait.",imageUploadsPendingError:"Image is uploading, please wait.",removeAttachment:"Remove file",uploading:"Uploading",uploadCompleted:"Upload completed",richTextBoldTooltip:"Bold",richTextItalicTooltip:"Italic",richTextUnderlineTooltip:"Underline",richTextBulletListTooltip:"Bulleted list",richTextNumberListTooltip:"Numbered list",richTextIncreaseIndentTooltip:"Increase indent",richTextDecreaseIndentTooltip:"Decrease indent",richTextInsertTableTooltip:"Insert table",richTextFormatButtonTooltip:"Format",richTextInsertRowOrColumnMenu:"Insert",richTextInsertTableMenuTitle:"Insert {column} x {row} table",richTextInsertRowAboveMenu:"Insert above",richTextInsertRowBelowMenu:"Insert below",richTextInsertColumnLeftMenu:"Insert left",richTextInsertColumnRightMenu:"Insert right",richTextDeleteRowOrColumnMenu:"Delete",richTextDeleteColumnMenu:"Delete column",richTextDeleteRowMenu:"Delete row",richTextDeleteTableMenu:"Delete table",richTextToolbarMoreButtonAriaLabel:"More options",attachmentMoreMenu:"More Options",richTextNewBulletedListItemAnnouncement:"Bullet, new line",richTextNewNumberedListItemAnnouncement:"{0}, new line",richTextBulletedListAppliedAnnouncement:"Bulleted list applied",richTextNumberedListAppliedAnnouncement:"Numbered list applied"};var mentionPopover$k={mentionPopoverHeader:"Suggestions"};var imageOverlay$k={downloadButtonLabel:"Download",dismissButtonAriaLabel:"Close"};var messageStatusIndicator$k={deliveredAriaLabel:"Message sent",deliveredTooltipText:"Sent",seenAriaLabel:"Message seen by others",seenTooltipText:"Seen",readByTooltipText:"Read by {messageThreadReadCount} of {remoteParticipantsCount}",sendingAriaLabel:"Message sending",sendingTooltipText:"Sending",failedToSendAriaLabel:"Message failed to send",failedToSendTooltipText:"Failed to send"};var endCallButton$k={label:"Leave",tooltipContent:"Leave call",leaveOption:"Leave",endCallOption:"End call for everyone"};var cameraButton$k={onLabel:"Camera",offLabel:"Camera",tooltipDisabledContent:"Camera is disabled",tooltipOnContent:"Turn off camera",tooltipOffContent:"Turn on camera",tooltipVideoLoadingContent:"Video is loading",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose camera",cameraButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Turn off camera and camera options",offSplitButtonAriaLabel:"Turn on camera and camera options",cameraActionTurnedOnAnnouncement:"Your camera has been turned on",cameraActionTurnedOffAnnouncement:"Your camera has been turned off",onSplitButtonPrimaryActionCamera:"Turn off camera",offSplitButtonPrimaryActionCamera:"Turn on camera",cameraPrimaryActionSplitButtonTitle:"Use camera",videoEffectsMenuItemTitle:"Effects"};var microphoneButton$k={onLabel:"Mic",offLabel:"Mic",tooltipDisabledContent:"Microphone is disabled",tooltipOnContent:"Mute microphone",tooltipOffContent:"Unmute microphone",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose speaker",microphoneButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Mute microphone and audio options",offSplitButtonAriaLabel:"Unmute microphone and audio options",microphoneActionTurnedOnAnnouncement:"Your microphone has been turned on",microphoneActionTurnedOffAnnouncement:"Your microphone has been turned off",offSplitButtonMicrophonePrimaryAction:"Unmute microphone",onSplitButtonMicrophonePrimaryAction:"Mute microphone",microphonePrimaryActionSplitButtonTitle:"Use microphone"};var devicesButton$k={label:"Devices",tooltipContent:"Manage devices",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose camera",audioDeviceMenuTitle:"Audio Device",audioDeviceMenuTooltip:"Choose audio device",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose speaker"};var participantsButton$k={label:"People",tooltipContent:"Show participants",menuHeader:"In this call",participantsListButtonLabel:"{numParticipants} people",muteAllButtonLabel:"Mute all",copyInviteLinkButtonLabel:"Copy invite link",copyInviteLinkActionedAriaLabel:"Invite link copied"};var screenShareButton$k={onLabel:"Stop presenting",offLabel:"Present",tooltipDisabledContent:"Presenting is disabled",tooltipOnContent:"Presenting your screen",tooltipOffContent:"Present your screen"};var raiseHandButton$k={offLabel:"Raise",onLabel:"Lower",tooltipDisabledContent:"Raise Hand action is disabled",tooltipOnContent:"Lower Hand",tooltipOffContent:"Raise Hand"};var reactionButton$k={label:"React",ariaLabel:"React Button, Send a reaction",tooltipDisabledContent:"Reaction action is disabled",tooltipContent:"Send a reaction",likeReactionTooltipContent:"Like",heartReactionTooltipContent:"Love",laughReactionTooltipContent:"Laugh",applauseReactionTooltipContent:"Applause",surprisedReactionTooltipContent:"Surprised"};var messageThread$k={yesterday:"Yesterday",sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",participantJoined:"joined the chat.",participantLeft:"left the chat.",editMessage:"Edit",removeMessage:"Delete",resendMessage:"Try sending again",failToSendTag:"Failed to send",editedTag:"Edited",liveAuthorIntro:"{author} says",messageContentAriaText:"{status} {author} said {message}",messageContentMineAriaText:"{status} You said {message}",editBoxTextLimit:"Your message is over the limit of {limitNumber} characters",editBoxPlaceholderText:"Edit your message",newMessagesIndicator:"New messages",noDisplayNameSub:"No name",editBoxCancelButton:"Cancel",editBoxSubmitButton:"Done",messageReadCount:"Read by {messageReadByCount} of {remoteParticipantsCount}",actionMenuMoreOptions:"More Options",downloadAttachment:"Download file",openAttachment:"Open file",blockedWarningText:"This message was deleted due to organizational policy.",blockedWarningLinkText:"Details",attachmentCardGroupMessage:"The message has {attachmentCount} attachment",messageDeletedAnnouncementAriaLabel:"The message is deleted",richTextBoldTooltip:"Bold",richTextItalicTooltip:"Italic",richTextUnderlineTooltip:"Underline",richTextBulletListTooltip:"Bulleted list",richTextNumberListTooltip:"Numbered list",richTextIncreaseIndentTooltip:"Increase indent",richTextDecreaseIndentTooltip:"Decrease indent",richTextInsertTableTooltip:"Insert table",richTextFormatButtonTooltip:"Format",richTextInsertRowOrColumnMenu:"Insert",richTextInsertTableMenuTitle:"Insert {column} x {row} table",richTextInsertRowAboveMenu:"Insert above",richTextInsertRowBelowMenu:"Insert below",richTextInsertColumnLeftMenu:"Insert left",richTextInsertColumnRightMenu:"Insert right",richTextDeleteRowOrColumnMenu:"Delete",richTextDeleteColumnMenu:"Delete column",richTextDeleteRowMenu:"Delete row",richTextDeleteTableMenu:"Delete table",richTextToolbarMoreButtonAriaLabel:"More options",attachmentUploadsPendingError:"File is uploading, please wait.",imageUploadsPendingError:"Image is uploading, please wait.",richTextNewBulletedListItemAnnouncement:"Bullet, new line",richTextNewNumberedListItemAnnouncement:"{0}, new line",richTextBulletedListAppliedAnnouncement:"Bulleted list applied",richTextNumberedListAppliedAnnouncement:"Numbered list applied"};var errorBar$k={unableToReachChatService:"You are offline",accessDenied:"Unable to access chat services - please check the user credentials provided",userNotInChatThread:"You are no longer in this chat thread",sendMessageNotInChatThread:"Failed to send message because you are no longer in this chat thread",sendMessageGeneric:"Failed to send message",callingNetworkFailure:"Troubling connecting call - you seem to be offline",startVideoGeneric:"Failed to start video",stopVideoGeneric:"Failed to stop video",muteGeneric:"Failed to mute microphone",unmuteGeneric:"Failed to unmute microphone",speakingWhileMuted:"Your microphone is muted",startScreenShareGeneric:"There was an issue starting screen share.",stopScreenShareGeneric:"Failed to stop screen sharing",callNetworkQualityLow:"Network quality is low.",teamsMeetingCallNetworkQualityLow:"Network quality is low.",callNoSpeakerFound:"No speakers or headphones found. Connect an audio device to hear the call.",callNoMicrophoneFound:"No microphones found. Connect an audio input device.",callMicrophoneAccessDenied:"Unable to access microphone. Click the lock in the address bar to grant permission to this webpage.",callMicrophoneAccessDeniedSafari:"Unable to access microphone. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",callMicrophoneMutedBySystem:"You are muted by your system.",callMicrophoneUnmutedBySystem:"Your microphone recovered and you were unmuted by your system.",callMacOsMicrophoneAccessDenied:"Unable to access microphone. Grant microphone permission in your macOS privacy settings.",callLocalVideoFreeze:"Network bandwidth is poor. Your video may appear paused for others on the call.",callCameraAccessDenied:"Unable to access camera. Click the lock in the address bar to grant permission to this webpage.",callCameraAccessDeniedSafari:"Unable to access camera. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",callCameraAlreadyInUse:"Unable to access camera. It may already be in use by another application.",callVideoStoppedBySystem:"Your video has been stopped by your system.",callVideoRecoveredBySystem:"Your video has resumed.",callMacOsCameraAccessDenied:"MacOS is blocking access to your camera. Update your privacy settings to allow this browser to access your camera.",callMacOsScreenShareAccessDenied:"MacOS is blocking screen sharing. Update your privacy settings to allow this browser to record your screen.",dismissButtonAriaLabel:"Close",failedToJoinCallGeneric:"Failed to join call.",failedToJoinCallInvalidMeetingLink:"Unable to join Meeting. Invalid Link.",cameraFrozenForRemoteParticipants:"Users in the call are having issues seeing your video. Please check your devices and network.",unableToStartVideoEffect:"Unable to apply video effect.",startSpotlightWhileMaxParticipantsAreSpotlighted:"Cannot start spotlight on participant(s) because the maximum number of participants are already spotlighted.",mutedByRemoteParticipant:"You were muted by another participant."};var notificationStack$k={callingNetworkFailure:{title:"Troubling connecting call",message:"You seem to be offline. Please check your network connection and try again.",dismissButtonAriaLabel:"Close"},startVideoGeneric:{title:"Failed to start video.",dismissButtonAriaLabel:"Close"},stopVideoGeneric:{title:"Failed to stop video.",dismissButtonAriaLabel:"Close"},muteGeneric:{title:"Failed to mute microphone.",dismissButtonAriaLabel:"Close"},unmuteGeneric:{title:"Failed to unmute microphone.",dismissButtonAriaLabel:"Close"},speakingWhileMuted:{title:"You're muted.",dismissButtonAriaLabel:"Close"},startScreenShareGeneric:{title:"There was an issue starting screen share.",dismissButtonAriaLabel:"Close"},stopScreenShareGeneric:{title:"Failed to stop screen sharing.",dismissButtonAriaLabel:"Close"},callNetworkQualityLow:{title:"Network quality is low.",dismissButtonAriaLabel:"Close"},teamsMeetingCallNetworkQualityLow:{title:"Network quality is low.",dismissButtonAriaLabel:"Close",message:"Join this call from your phone for better sound. You can continue viewing the meeting on this device.",primaryButtonLabel:"Join by Phone"},callNoSpeakerFound:{title:"No speakers or headphones found",message:"Connect an audio device to hear the call.",dismissButtonAriaLabel:"Close"},callNoMicrophoneFound:{title:"No microphones found",message:"Connect an audio input device.",dismissButtonAriaLabel:"Close"},callMicrophoneAccessDenied:{title:"Unable to access microphone",message:"Click the lock in the address bar to grant permission to this webpage.",dismissButtonAriaLabel:"Close"},callMicrophoneAccessDeniedSafari:{title:"Unable to access microphone",message:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",dismissButtonAriaLabel:"Close"},callMicrophoneMutedBySystem:{title:"You are muted by your system.",dismissButtonAriaLabel:"Close"},callMicrophoneUnmutedBySystem:{title:"Your microphone recovered and you were unmuted by your system.",dismissButtonAriaLabel:"Close"},callMacOsMicrophoneAccessDenied:{title:"Unable to access microphone",message:"Grant microphone permission in your macOS privacy settings.",dismissButtonAriaLabel:"Close"},callLocalVideoFreeze:{title:"Network bandwidth is poor",message:"Your video may appear paused for others on the call.",dismissButtonAriaLabel:"Close"},callCameraAccessDenied:{title:"Unable to access camera",message:"Click the lock in the address bar to grant permission to this webpage.",dismissButtonAriaLabel:"Close"},callCameraAccessDeniedSafari:{title:"Unable to access camera",message:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",dismissButtonAriaLabel:"Close"},callCameraAlreadyInUse:{title:"Unable to access camera",message:"It may already be in use by another application.",dismissButtonAriaLabel:"Close"},callVideoStoppedBySystem:{title:"Your video has been stopped by your system.",dismissButtonAriaLabel:"Close"},callVideoRecoveredBySystem:{title:"Your video has resumed.",dismissButtonAriaLabel:"Close"},callMacOsCameraAccessDenied:{title:"MacOS is blocking access to your camera",message:"Update your privacy settings to allow this browser to access your camera.",dismissButtonAriaLabel:"Close"},callMacOsScreenShareAccessDenied:{title:"MacOS is blocking screen sharing",message:"Update your privacy settings to allow this browser to record your screen.",dismissButtonAriaLabel:"Close"},failedToJoinCallGeneric:{title:"Failed to join call.",dismissButtonAriaLabel:"Close"},failedToJoinCallInvalidMeetingLink:{title:"Unable to join Meeting. Invalid Link.",dismissButtonAriaLabel:"Close"},cameraFrozenForRemoteParticipants:{title:"Users in the call are having issues seeing your video",message:"Please check your devices and network.",dismissButtonAriaLabel:"Close"},unableToStartVideoEffect:{title:"Unable to apply video effect.",dismissButtonAriaLabel:"Close"},startSpotlightWhileMaxParticipantsAreSpotlighted:{title:"Cannot start spotlight on participant(s)",message:"The maximum number of participants are already spotlighted.",dismissButtonAriaLabel:"Close"},mutedByRemoteParticipant:{title:"You were muted by another participant.",dismissButtonAriaLabel:"Close"},recordingStarted:{title:"Recording has started.",message:"By joining, you are giving consent for this meeting to be transcribed.",dismissButtonAriaLabel:"Close"},transcriptionStarted:{title:"Transcription has started.",message:"By joining, you are giving consent for this meeting to be transcribed.",dismissButtonAriaLabel:"Close"},recordingStopped:{title:"Recording is being saved.",message:"Recording has stopped.",dismissButtonAriaLabel:"Close"},transcriptionStopped:{title:"Transcription is being saved.",message:"Transcription has stopped.",dismissButtonAriaLabel:"Close"},recordingAndTranscriptionStarted:{title:"Recording and transcription have started.",message:"By joining, you are giving consent for this meeting to be transcribed.",dismissButtonAriaLabel:"Close"},recordingAndTranscriptionStopped:{title:"Recording and transcription are being saved.",message:"Recording and transcription have stopped.",dismissButtonAriaLabel:"Close"},recordingStoppedStillTranscribing:{title:"Recording has stopped.",message:"You are now only transcribing this meeting.",dismissButtonAriaLabel:"Close"},transcriptionStoppedStillRecording:{title:"Transcription has stopped.",message:"You are now only recording this meeting.",dismissButtonAriaLabel:"Close"},assignedBreakoutRoomOpened:{title:"We'll move you to your assigned room in 5 seconds.",dismissButtonAriaLabel:"Close"},assignedBreakoutRoomChanged:{title:"Your breakout room has changed",message:"We'll move you to your assigned room in 5 seconds.",dismissButtonAriaLabel:"Close"},assignedBreakoutRoomOpenedPromptJoin:{title:"Join breakout room?",message:"You've been assigned to a breakout room.",dismissButtonAriaLabel:"Close",primaryButtonLabel:"Join room",secondaryButtonLabel:"Later"},breakoutRoomJoined:{title:"You have joined a breakout room.",dismissButtonAriaLabel:"Close"},breakoutRoomClosingSoon:{title:"Room time limit about to expire.",message:"This room will close in 30 seconds",dismissButtonAriaLabel:"Close"}};var videoGallery$k={screenIsBeingSharedMessage:"You are sharing your screen",screenShareLoadingMessage:"Loading {participant}'s screen",localScreenShareLoadingMessage:"Loading your screen",localVideoLabel:"You",localVideoCameraSwitcherLabel:"Switch camera",localVideoMovementLabel:"Movable Local Video Tile",localVideoMovementAriaLabel:"Movable Local Video Tile",localVideoSelectedDescription:"{cameraName} selected",displayNamePlaceholder:"Unnamed participant",fitRemoteParticipantToFrame:"Fit to frame",fillRemoteParticipantFrame:"Fill frame",pinParticipantForMe:"Pin for me",pinParticipantForMeLimitReached:"Pin (limit reached)",unpinParticipantForMe:"Unpin",pinParticipantMenuItemAriaLabel:"Pin {participantName}",unpinParticipantMenuItemAriaLabel:"Unpin {participantName}",pinnedParticipantAnnouncementAriaLabel:"Pinned {participantName}",unpinnedParticipantAnnouncementAriaLabel:"Unpinned {participantName}",startSpotlightVideoTileMenuLabel:"Spotlight for everyone",addSpotlightVideoTileMenuLabel:"Add spotlight",spotlightLimitReachedMenuTitle:"Spotlight limit reached",stopSpotlightVideoTileMenuLabel:"Stop spotlighting",stopSpotlightOnSelfVideoTileMenuLabel:"Exit spotlight",attendeeRole:"Attendee",muteParticipantMenuItemLabel:"Mute"};var dialpad$k={placeholderText:"Enter phone number",deleteButtonAriaLabel:"Delete"};var holdButton$k={onLabel:"Resume",offLabel:"Hold",tooltipOnContent:"Resume call",tooltipOffContent:"Hold call"};var videoTile$k={participantStateRinging:"Calling...",participantStateHold:"On hold",moreOptionsButtonAriaLabel:"More Options"};var CameraAndMicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera and microphone",secondaryText:"This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Allow camera and microphone access"};var CameraSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera",secondaryText:"This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Allow camera access"};var MicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your microphone",secondaryText:"This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Allow microphone access"};var CameraAndMicrophoneSitePermissionsCheck$k={primaryText:"Checking for camera and microphone access",secondaryText:"Allow access if prompted. This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Checking for camera and microphone access. Allow access if prompted."};var CameraSitePermissionsCheck$k={primaryText:"Checking for camera access",secondaryText:"Allow access if prompted. This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Checking for camera access. Allow access if prompted."};var MicrophoneSitePermissionsCheck$k={primaryText:"Checking for microphone access",secondaryText:"Allow access if prompted. This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Checking for microphone access. Allow access if prompted."};var CameraAndMicrophoneSitePermissionsDenied$k={primaryText:"Unable to access camera and microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraAndMicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera and microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDenied$k={primaryText:"Unable to access camera",secondaryText:"Click the lock icon in the address bar to grant camera permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDenied$k={primaryText:"Unable to access microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var UnsupportedBrowser$l={primaryText:"Browser not supported",secondaryText:"Please join this call using a compatible browser.",moreHelpLinkText:"See compatibility requirements"};var UnsupportedBrowserVersion$l={primaryText:"Browser update needed",secondaryText:"To ensure the best call possible, please update your browser and then try joining the call again.",moreHelpLinkText:"See compatibility requirements",continueAnywayButtonText:"Start call without updating"};var UnsupportedOperatingSystem$l={primaryText:"Operating system not supported",secondaryText:"Please join this call using a device with a compatible operating system.",moreHelpLinkText:"See compatibility requirements"};var BrowserPermissionDenied$k={primaryText:"Can't use your camera or microphone",secondaryText:"Your browser might not have access to your camera or microphone. To fix this, open System Preferences.",primaryButtonText:"Try again",linkText:"Need help? Get troubleshooting help"};var BrowserPermissionDeniedIOS$k={primaryText:"Allow microphone access to continue",secondaryText:"So other participants can hear you.",primaryButtonText:"Try again",imageAltText:"Microphone and camera device permission location for iOS",linkText:"Need help? Get troubleshooting help",step1Text:"Go to the Settings app",step2Text:"Scroll down to settings for this browser",step3Text:"Turn on Microphone (Camera optional)",step4Text:"Try joining the call again",step1DigitText:"1",step2DigitText:"2",step3DigitText:"3",step4DigitText:"4"};var verticalGallery$k={leftNavButtonAriaLabel:"previous page",rightNavButtonAriaLabel:"next page"};var meetingConferencePhoneInfo$k={meetingConferencePhoneInfoModalTitle:"Join call from your phone",meetingConferencePhoneInfoModalDialIn:"Dial number",meetingConferencePhoneInfoModalMeetingId:"Enter meeting ID",meetingConferencePhoneInfoModalWait:"Wait to be admitted by organizer",meetingConferencePhoneInfoModalNoPhoneAvailable:"No phone available",meetingConferencePhoneInfoModalTollGeoData:"{country}, {city}",meetingConferencePhoneInfoModalTollFree:"(Toll-free)",meetingConferencePhoneInfoModalToll:"(Toll)"};var IncomingCallNotification$l={incomingCallNotificationPlaceholderId:"Unknown User",incomingCallNotificationPlaceholderAlert:"{callerName} is calling",incomingCallNoticicationAcceptWithAudioAriaLabel:"Accept with audio",incomingCallNoticicationAcceptWithVideoAriaLabel:"Accept with video",incomingCallNoticicationRejectAriaLabel:"Reject",incomingCallNotificationAcceptButtonLabel:"Accept",incomingCallNotificationRejectButtonLabel:"Decline",incomingCallNotificationAccceptWithVideoButtonLabel:"Accept with Video"};var en_US$1 = {participantItem:participantItem$k,ParticipantList:ParticipantList$l,typingIndicator:typingIndicator$k,sendBox:sendBox$k,richTextSendBox:richTextSendBox$k,mentionPopover:mentionPopover$k,imageOverlay:imageOverlay$k,messageStatusIndicator:messageStatusIndicator$k,endCallButton:endCallButton$k,cameraButton:cameraButton$k,microphoneButton:microphoneButton$k,devicesButton:devicesButton$k,participantsButton:participantsButton$k,screenShareButton:screenShareButton$k,raiseHandButton:raiseHandButton$k,reactionButton:reactionButton$k,messageThread:messageThread$k,errorBar:errorBar$k,notificationStack:notificationStack$k,videoGallery:videoGallery$k,dialpad:dialpad$k,holdButton:holdButton$k,videoTile:videoTile$k,CameraAndMicrophoneSitePermissionsRequest:CameraAndMicrophoneSitePermissionsRequest$k,CameraSitePermissionsRequest:CameraSitePermissionsRequest$k,MicrophoneSitePermissionsRequest:MicrophoneSitePermissionsRequest$k,CameraAndMicrophoneSitePermissionsCheck:CameraAndMicrophoneSitePermissionsCheck$k,CameraSitePermissionsCheck:CameraSitePermissionsCheck$k,MicrophoneSitePermissionsCheck:MicrophoneSitePermissionsCheck$k,CameraAndMicrophoneSitePermissionsDenied:CameraAndMicrophoneSitePermissionsDenied$k,CameraAndMicrophoneSitePermissionsDeniedSafari:CameraAndMicrophoneSitePermissionsDeniedSafari$k,CameraSitePermissionsDenied:CameraSitePermissionsDenied$k,MicrophoneSitePermissionsDenied:MicrophoneSitePermissionsDenied$k,CameraSitePermissionsDeniedSafari:CameraSitePermissionsDeniedSafari$k,MicrophoneSitePermissionsDeniedSafari:MicrophoneSitePermissionsDeniedSafari$k,UnsupportedBrowser:UnsupportedBrowser$l,UnsupportedBrowserVersion:UnsupportedBrowserVersion$l,UnsupportedOperatingSystem:UnsupportedOperatingSystem$l,BrowserPermissionDenied:BrowserPermissionDenied$k,BrowserPermissionDeniedIOS:BrowserPermissionDeniedIOS$k,verticalGallery:verticalGallery$k,meetingConferencePhoneInfo:meetingConferencePhoneInfo$k,IncomingCallNotification:IncomingCallNotification$l};
|
2011
|
+
var participantItem$k={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed participant",participantStateRinging:"Calling...",participantStateHold:"On hold",attendeeRole:"Attendee"};var ParticipantList$l={overflowParticipantCount:"+{overflowCount} more"};var typingIndicator$k={singleUser:"{user} is typing ...",multipleUsers:"{users} are typing ...",multipleUsersAbbreviateOne:"{users} and 1 other are typing ...",multipleUsersAbbreviateMany:"{users} and {numOthers} others are typing ...",delimiter:", "};var sendBox$k={placeholderText:"Enter a message",textTooLong:"Your message length is over the maximum limit.",sendButtonAriaLabel:"Send message",attachmentUploadsPendingError:"File is uploading, please wait.",removeAttachment:"Remove file",uploading:"Uploading",uploadCompleted:"Upload completed",attachmentMoreMenu:"More Options"};var richTextSendBox$k={placeholderText:"Enter a message",textTooLong:"Your message length is over the maximum limit.",sendButtonAriaLabel:"Send message",attachmentUploadsPendingError:"File is uploading, please wait.",imageUploadsPendingError:"Image is uploading, please wait.",removeAttachment:"Remove file",uploading:"Uploading",uploadCompleted:"Upload completed",richTextBoldTooltip:"Bold",richTextItalicTooltip:"Italic",richTextUnderlineTooltip:"Underline",richTextBulletListTooltip:"Bulleted list",richTextNumberListTooltip:"Numbered list",richTextIncreaseIndentTooltip:"Increase indent",richTextDecreaseIndentTooltip:"Decrease indent",richTextInsertTableTooltip:"Insert table",richTextFormatButtonTooltip:"Format",richTextInsertRowOrColumnMenu:"Insert",richTextInsertTableMenuTitle:"Insert {column} x {row} table",richTextInsertRowAboveMenu:"Insert above",richTextInsertRowBelowMenu:"Insert below",richTextInsertColumnLeftMenu:"Insert left",richTextInsertColumnRightMenu:"Insert right",richTextDeleteRowOrColumnMenu:"Delete",richTextDeleteColumnMenu:"Delete column",richTextDeleteRowMenu:"Delete row",richTextDeleteTableMenu:"Delete table",richTextToolbarMoreButtonAriaLabel:"More options",attachmentMoreMenu:"More Options",richTextNewBulletedListItemAnnouncement:"Bullet, new line",richTextNewNumberedListItemAnnouncement:"{0}, new line",richTextBulletedListAppliedAnnouncement:"Bulleted list applied",richTextNumberedListAppliedAnnouncement:"Numbered list applied"};var mentionPopover$k={mentionPopoverHeader:"Suggestions"};var imageOverlay$k={downloadButtonLabel:"Download",dismissButtonAriaLabel:"Close"};var messageStatusIndicator$k={deliveredAriaLabel:"Message sent",deliveredTooltipText:"Sent",seenAriaLabel:"Message seen by others",seenTooltipText:"Seen",readByTooltipText:"Read by {messageThreadReadCount} of {remoteParticipantsCount}",sendingAriaLabel:"Message sending",sendingTooltipText:"Sending",failedToSendAriaLabel:"Message failed to send",failedToSendTooltipText:"Failed to send"};var endCallButton$k={label:"Leave",tooltipContent:"Leave call",leaveOption:"Leave",endCallOption:"End call for everyone"};var cameraButton$k={onLabel:"Camera",offLabel:"Camera",tooltipDisabledContent:"Camera is disabled",tooltipOnContent:"Turn off camera",tooltipOffContent:"Turn on camera",tooltipVideoLoadingContent:"Video is loading",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose camera",cameraButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Turn off camera",offSplitButtonAriaLabel:"Turn on camera",cameraActionTurnedOnAnnouncement:"Your camera has been turned on",cameraActionTurnedOffAnnouncement:"Your camera has been turned off",onSplitButtonPrimaryActionCamera:"Turn off camera",offSplitButtonPrimaryActionCamera:"Turn on camera",cameraPrimaryActionSplitButtonTitle:"Use camera",videoEffectsMenuItemTitle:"Effects",cameraButtonAriaDescription:"camera options"};var microphoneButton$k={onLabel:"Mic",offLabel:"Mic",tooltipDisabledContent:"Microphone is disabled",tooltipOnContent:"Mute microphone",tooltipOffContent:"Unmute microphone",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose speaker",microphoneButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Mute mic",offSplitButtonAriaLabel:"Unmute mic",microphoneActionTurnedOnAnnouncement:"Your microphone has been turned on",microphoneActionTurnedOffAnnouncement:"Your microphone has been turned off",offSplitButtonMicrophonePrimaryAction:"Unmute mic",onSplitButtonMicrophonePrimaryAction:"Mute mic",microphonePrimaryActionSplitButtonTitle:"Use microphone",microphoneAriaDescription:"Audio options",deepNoiseSuppresionOnTitle:"Noise Suppression On",deepNoiseSuppresionOffTitle:"Noise Suppression Off",deepNoiseSuppresionOnAnnouncement:"Deep noise suppression has been turned on",deepNoiseSuppresionOffAnnouncement:"Deep noise suppression has been turned off"};var devicesButton$k={label:"Devices",tooltipContent:"Manage devices",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose camera",audioDeviceMenuTitle:"Audio Device",audioDeviceMenuTooltip:"Choose audio device",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose speaker"};var participantsButton$k={label:"People",tooltipContent:"Show participants",menuHeader:"In this call",participantsListButtonLabel:"{numParticipants} people",muteAllButtonLabel:"Mute all",copyInviteLinkButtonLabel:"Copy invite link",copyInviteLinkActionedAriaLabel:"Invite link copied"};var screenShareButton$k={onLabel:"Stop presenting",offLabel:"Present",tooltipDisabledContent:"Presenting is disabled",tooltipOnContent:"Presenting your screen",tooltipOffContent:"Present your screen"};var raiseHandButton$k={offLabel:"Raise",onLabel:"Lower",tooltipDisabledContent:"Raise Hand action is disabled",tooltipOnContent:"Lower Hand",tooltipOffContent:"Raise Hand"};var reactionButton$k={label:"React",ariaLabel:"React Button, Send a reaction",tooltipDisabledContent:"Reaction action is disabled",tooltipContent:"Send a reaction",likeReactionTooltipContent:"Like",heartReactionTooltipContent:"Love",laughReactionTooltipContent:"Laugh",applauseReactionTooltipContent:"Applause",surprisedReactionTooltipContent:"Surprised"};var messageThread$k={yesterday:"Yesterday",sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",participantJoined:"joined the chat.",participantLeft:"left the chat.",editMessage:"Edit",removeMessage:"Delete",resendMessage:"Try sending again",failToSendTag:"Failed to send",editedTag:"Edited",liveAuthorIntro:"{author} says",messageContentAriaText:"{status} {author} said {message}",messageContentMineAriaText:"{status} You said {message}",editBoxTextLimit:"Your message is over the limit of {limitNumber} characters",editBoxPlaceholderText:"Edit your message",newMessagesIndicator:"New messages",noDisplayNameSub:"No name",editBoxCancelButton:"Cancel",editBoxSubmitButton:"Done",messageReadCount:"Read by {messageReadByCount} of {remoteParticipantsCount}",actionMenuMoreOptions:"More Options",downloadAttachment:"Download file",openAttachment:"Open file",blockedWarningText:"This message was deleted due to organizational policy.",blockedWarningLinkText:"Details",attachmentCardGroupMessage:"The message has {attachmentCount} attachment",messageDeletedAnnouncementAriaLabel:"The message is deleted",richTextBoldTooltip:"Bold",richTextItalicTooltip:"Italic",richTextUnderlineTooltip:"Underline",richTextBulletListTooltip:"Bulleted list",richTextNumberListTooltip:"Numbered list",richTextIncreaseIndentTooltip:"Increase indent",richTextDecreaseIndentTooltip:"Decrease indent",richTextInsertTableTooltip:"Insert table",richTextFormatButtonTooltip:"Format",richTextInsertRowOrColumnMenu:"Insert",richTextInsertTableMenuTitle:"Insert {column} x {row} table",richTextInsertRowAboveMenu:"Insert above",richTextInsertRowBelowMenu:"Insert below",richTextInsertColumnLeftMenu:"Insert left",richTextInsertColumnRightMenu:"Insert right",richTextDeleteRowOrColumnMenu:"Delete",richTextDeleteColumnMenu:"Delete column",richTextDeleteRowMenu:"Delete row",richTextDeleteTableMenu:"Delete table",richTextToolbarMoreButtonAriaLabel:"More options",attachmentUploadsPendingError:"File is uploading, please wait.",imageUploadsPendingError:"Image is uploading, please wait.",richTextNewBulletedListItemAnnouncement:"Bullet, new line",richTextNewNumberedListItemAnnouncement:"{0}, new line",richTextBulletedListAppliedAnnouncement:"Bulleted list applied",richTextNumberedListAppliedAnnouncement:"Numbered list applied"};var errorBar$k={unableToReachChatService:"You are offline",accessDenied:"Unable to access chat services - please check the user credentials provided",userNotInChatThread:"You are no longer in this chat thread",sendMessageNotInChatThread:"Failed to send message because you are no longer in this chat thread",sendMessageGeneric:"Failed to send message",callingNetworkFailure:"Troubling connecting call - you seem to be offline",startVideoGeneric:"Failed to start video",stopVideoGeneric:"Failed to stop video",muteGeneric:"Failed to mute microphone",unmuteGeneric:"Failed to unmute microphone",speakingWhileMuted:"Your microphone is muted",startScreenShareGeneric:"There was an issue starting screen share.",stopScreenShareGeneric:"Failed to stop screen sharing",callNetworkQualityLow:"Network quality is low.",teamsMeetingCallNetworkQualityLow:"Network quality is low.",callNoSpeakerFound:"No speakers or headphones found. Connect an audio device to hear the call.",callNoMicrophoneFound:"No microphones found. Connect an audio input device.",callMicrophoneAccessDenied:"Unable to access microphone. Click the lock in the address bar to grant permission to this webpage.",callMicrophoneAccessDeniedSafari:"Unable to access microphone. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",callMicrophoneMutedBySystem:"You are muted by your system.",callMicrophoneUnmutedBySystem:"Your microphone recovered and you were unmuted by your system.",callMacOsMicrophoneAccessDenied:"Unable to access microphone. Grant microphone permission in your macOS privacy settings.",callLocalVideoFreeze:"Network bandwidth is poor. Your video may appear paused for others on the call.",callCameraAccessDenied:"Unable to access camera. Click the lock in the address bar to grant permission to this webpage.",callCameraAccessDeniedSafari:"Unable to access camera. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",callCameraAlreadyInUse:"Unable to access camera. It may already be in use by another application.",callVideoStoppedBySystem:"Your video has been stopped by your system.",callVideoRecoveredBySystem:"Your video has resumed.",callMacOsCameraAccessDenied:"MacOS is blocking access to your camera. Update your privacy settings to allow this browser to access your camera.",callMacOsScreenShareAccessDenied:"MacOS is blocking screen sharing. Update your privacy settings to allow this browser to record your screen.",dismissButtonAriaLabel:"Close",failedToJoinCallGeneric:"Failed to join call.",failedToJoinCallInvalidMeetingLink:"Unable to join Meeting. Invalid Link.",cameraFrozenForRemoteParticipants:"Users in the call are having issues seeing your video. Please check your devices and network.",unableToStartVideoEffect:"Unable to apply video effect.",startSpotlightWhileMaxParticipantsAreSpotlighted:"Cannot start spotlight on participant(s) because the maximum number of participants are already spotlighted.",mutedByRemoteParticipant:"You were muted by another participant."};var notificationStack$k={callingNetworkFailure:{title:"Troubling connecting call",message:"You seem to be offline. Please check your network connection and try again.",dismissButtonAriaLabel:"Close"},startVideoGeneric:{title:"Failed to start video.",dismissButtonAriaLabel:"Close"},stopVideoGeneric:{title:"Failed to stop video.",dismissButtonAriaLabel:"Close"},muteGeneric:{title:"Failed to mute microphone.",dismissButtonAriaLabel:"Close"},unmuteGeneric:{title:"Failed to unmute microphone.",dismissButtonAriaLabel:"Close"},speakingWhileMuted:{title:"You're muted.",dismissButtonAriaLabel:"Close"},startScreenShareGeneric:{title:"There was an issue starting screen share.",dismissButtonAriaLabel:"Close"},stopScreenShareGeneric:{title:"Failed to stop screen sharing.",dismissButtonAriaLabel:"Close"},callNetworkQualityLow:{title:"Network quality is low.",dismissButtonAriaLabel:"Close"},teamsMeetingCallNetworkQualityLow:{title:"Network quality is low.",dismissButtonAriaLabel:"Close",message:"Join this call from your phone for better sound. You can continue viewing the meeting on this device.",primaryButtonLabel:"Join by Phone"},callNoSpeakerFound:{title:"No speakers or headphones found",message:"Connect an audio device to hear the call.",dismissButtonAriaLabel:"Close"},callNoMicrophoneFound:{title:"No microphones found",message:"Connect an audio input device.",dismissButtonAriaLabel:"Close"},callMicrophoneAccessDenied:{title:"Unable to access microphone",message:"Click the lock in the address bar to grant permission to this webpage.",dismissButtonAriaLabel:"Close"},callMicrophoneAccessDeniedSafari:{title:"Unable to access microphone",message:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",dismissButtonAriaLabel:"Close"},callMicrophoneMutedBySystem:{title:"You are muted by your system.",dismissButtonAriaLabel:"Close"},callMicrophoneUnmutedBySystem:{title:"Your microphone recovered and you were unmuted by your system.",dismissButtonAriaLabel:"Close"},callMacOsMicrophoneAccessDenied:{title:"Unable to access microphone",message:"Grant microphone permission in your macOS privacy settings.",dismissButtonAriaLabel:"Close"},callLocalVideoFreeze:{title:"Network bandwidth is poor",message:"Your video may appear paused for others on the call.",dismissButtonAriaLabel:"Close"},callCameraAccessDenied:{title:"Unable to access camera",message:"Click the lock in the address bar to grant permission to this webpage.",dismissButtonAriaLabel:"Close"},callCameraAccessDeniedSafari:{title:"Unable to access camera",message:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",dismissButtonAriaLabel:"Close"},callCameraAlreadyInUse:{title:"Unable to access camera",message:"It may already be in use by another application.",dismissButtonAriaLabel:"Close"},callVideoStoppedBySystem:{title:"Your video has been stopped by your system.",dismissButtonAriaLabel:"Close"},callVideoRecoveredBySystem:{title:"Your video has resumed.",dismissButtonAriaLabel:"Close"},callMacOsCameraAccessDenied:{title:"MacOS is blocking access to your camera",message:"Update your privacy settings to allow this browser to access your camera.",dismissButtonAriaLabel:"Close"},callMacOsScreenShareAccessDenied:{title:"MacOS is blocking screen sharing",message:"Update your privacy settings to allow this browser to record your screen.",dismissButtonAriaLabel:"Close"},failedToJoinCallGeneric:{title:"Failed to join call.",dismissButtonAriaLabel:"Close"},failedToJoinCallInvalidMeetingLink:{title:"Unable to join Meeting. Invalid Link.",dismissButtonAriaLabel:"Close"},cameraFrozenForRemoteParticipants:{title:"Users in the call are having issues seeing your video",message:"Please check your devices and network.",dismissButtonAriaLabel:"Close"},unableToStartVideoEffect:{title:"Unable to apply video effect.",dismissButtonAriaLabel:"Close"},startSpotlightWhileMaxParticipantsAreSpotlighted:{title:"Cannot start spotlight on participant(s)",message:"The maximum number of participants are already spotlighted.",dismissButtonAriaLabel:"Close"},mutedByRemoteParticipant:{title:"You were muted by another participant.",dismissButtonAriaLabel:"Close"},recordingStarted:{title:"Recording has started.",message:"By joining, you are giving consent for this meeting to be transcribed.",dismissButtonAriaLabel:"Close"},transcriptionStarted:{title:"Transcription has started.",message:"By joining, you are giving consent for this meeting to be transcribed.",dismissButtonAriaLabel:"Close"},recordingStopped:{title:"Recording is being saved.",message:"Recording has stopped.",dismissButtonAriaLabel:"Close"},transcriptionStopped:{title:"Transcription is being saved.",message:"Transcription has stopped.",dismissButtonAriaLabel:"Close"},recordingAndTranscriptionStarted:{title:"Recording and transcription have started.",message:"By joining, you are giving consent for this meeting to be transcribed.",dismissButtonAriaLabel:"Close"},recordingAndTranscriptionStopped:{title:"Recording and transcription are being saved.",message:"Recording and transcription have stopped.",dismissButtonAriaLabel:"Close"},recordingStoppedStillTranscribing:{title:"Recording has stopped.",message:"You are now only transcribing this meeting.",dismissButtonAriaLabel:"Close"},transcriptionStoppedStillRecording:{title:"Transcription has stopped.",message:"You are now only recording this meeting.",dismissButtonAriaLabel:"Close"},assignedBreakoutRoomOpened:{title:"We'll move you to your assigned room in 5 seconds.",dismissButtonAriaLabel:"Close"},assignedBreakoutRoomChanged:{title:"Your breakout room has changed",message:"We'll move you to your assigned room in 5 seconds.",dismissButtonAriaLabel:"Close"},assignedBreakoutRoomOpenedPromptJoin:{title:"Join breakout room?",message:"You've been assigned to a breakout room.",dismissButtonAriaLabel:"Close",primaryButtonLabel:"Join room",secondaryButtonLabel:"Later"},breakoutRoomJoined:{title:"You have joined a breakout room.",dismissButtonAriaLabel:"Close"},breakoutRoomClosingSoon:{title:"Room time limit about to expire.",message:"This room will close in 30 seconds",dismissButtonAriaLabel:"Close"}};var videoGallery$k={screenIsBeingSharedMessage:"You are sharing your screen",screenShareLoadingMessage:"Loading {participant}'s screen",localScreenShareLoadingMessage:"Loading your screen",localVideoLabel:"You",localVideoCameraSwitcherLabel:"Switch camera",localVideoMovementLabel:"Movable Local Video Tile",localVideoMovementAriaLabel:"Movable Local Video Tile",localVideoSelectedDescription:"{cameraName} selected",displayNamePlaceholder:"Unnamed participant",fitRemoteParticipantToFrame:"Fit to frame",fillRemoteParticipantFrame:"Fill frame",pinParticipantForMe:"Pin for me",pinParticipantForMeLimitReached:"Pin (limit reached)",unpinParticipantForMe:"Unpin",pinParticipantMenuItemAriaLabel:"Pin {participantName}",unpinParticipantMenuItemAriaLabel:"Unpin {participantName}",pinnedParticipantAnnouncementAriaLabel:"Pinned {participantName}",unpinnedParticipantAnnouncementAriaLabel:"Unpinned {participantName}",startSpotlightVideoTileMenuLabel:"Spotlight for everyone",addSpotlightVideoTileMenuLabel:"Add spotlight",spotlightLimitReachedMenuTitle:"Spotlight limit reached",stopSpotlightVideoTileMenuLabel:"Stop spotlighting",stopSpotlightOnSelfVideoTileMenuLabel:"Exit spotlight",attendeeRole:"Attendee",muteParticipantMenuItemLabel:"Mute"};var dialpad$k={placeholderText:"Enter phone number",deleteButtonAriaLabel:"Delete"};var holdButton$k={onLabel:"Resume",offLabel:"Hold",tooltipOnContent:"Resume call",tooltipOffContent:"Hold call"};var videoTile$k={participantStateRinging:"Calling...",participantStateHold:"On hold",moreOptionsButtonAriaLabel:"More Options"};var CameraAndMicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera and microphone",secondaryText:"This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Allow camera and microphone access"};var CameraSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera",secondaryText:"This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Allow camera access"};var MicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your microphone",secondaryText:"This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Allow microphone access"};var CameraAndMicrophoneSitePermissionsCheck$k={primaryText:"Checking for camera and microphone access",secondaryText:"Allow access if prompted. This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Checking for camera and microphone access. Allow access if prompted."};var CameraSitePermissionsCheck$k={primaryText:"Checking for camera access",secondaryText:"Allow access if prompted. This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Checking for camera access. Allow access if prompted."};var MicrophoneSitePermissionsCheck$k={primaryText:"Checking for microphone access",secondaryText:"Allow access if prompted. This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Checking for microphone access. Allow access if prompted."};var CameraAndMicrophoneSitePermissionsDenied$k={primaryText:"Unable to access camera and microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraAndMicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera and microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDenied$k={primaryText:"Unable to access camera",secondaryText:"Click the lock icon in the address bar to grant camera permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDenied$k={primaryText:"Unable to access microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var UnsupportedBrowser$l={primaryText:"Browser not supported",secondaryText:"Please join this call using a compatible browser.",moreHelpLinkText:"See compatibility requirements"};var UnsupportedBrowserVersion$l={primaryText:"Browser update needed",secondaryText:"To ensure the best call possible, please update your browser and then try joining the call again.",moreHelpLinkText:"See compatibility requirements",continueAnywayButtonText:"Start call without updating"};var UnsupportedOperatingSystem$l={primaryText:"Operating system not supported",secondaryText:"Please join this call using a device with a compatible operating system.",moreHelpLinkText:"See compatibility requirements"};var BrowserPermissionDenied$k={primaryText:"Can't use your camera or microphone",secondaryText:"Your browser might not have access to your camera or microphone. To fix this, open System Preferences.",primaryButtonText:"Try again",linkText:"Need help? Get troubleshooting help"};var BrowserPermissionDeniedIOS$k={primaryText:"Allow microphone access to continue",secondaryText:"So other participants can hear you.",primaryButtonText:"Try again",imageAltText:"Microphone and camera device permission location for iOS",linkText:"Need help? Get troubleshooting help",step1Text:"Go to the Settings app",step2Text:"Scroll down to settings for this browser",step3Text:"Turn on Microphone (Camera optional)",step4Text:"Try joining the call again",step1DigitText:"1",step2DigitText:"2",step3DigitText:"3",step4DigitText:"4"};var verticalGallery$k={leftNavButtonAriaLabel:"previous page",rightNavButtonAriaLabel:"next page"};var meetingConferencePhoneInfo$k={meetingConferencePhoneInfoModalTitle:"Join call from your phone",meetingConferencePhoneInfoModalDialIn:"Dial number",meetingConferencePhoneInfoModalMeetingId:"Enter meeting ID",meetingConferencePhoneInfoModalWait:"Wait to be admitted by organizer",meetingConferencePhoneInfoModalNoPhoneAvailable:"No phone available",meetingConferencePhoneInfoModalTollGeoData:"{country}, {city}",meetingConferencePhoneInfoModalTollFree:"(Toll-free)",meetingConferencePhoneInfoModalToll:"(Toll)"};var IncomingCallNotification$l={incomingCallNotificationPlaceholderId:"Unknown User",incomingCallNotificationPlaceholderAlert:"{callerName} is calling",incomingCallNoticicationAcceptWithAudioAriaLabel:"Accept with audio",incomingCallNoticicationAcceptWithVideoAriaLabel:"Accept with video",incomingCallNoticicationRejectAriaLabel:"Reject",incomingCallNotificationAcceptButtonLabel:"Accept",incomingCallNotificationRejectButtonLabel:"Decline",incomingCallNotificationAccceptWithVideoButtonLabel:"Accept with Video",incomingCallNotificationDismissButtonAriaLabel:"Dismiss"};var en_US$1 = {participantItem:participantItem$k,ParticipantList:ParticipantList$l,typingIndicator:typingIndicator$k,sendBox:sendBox$k,richTextSendBox:richTextSendBox$k,mentionPopover:mentionPopover$k,imageOverlay:imageOverlay$k,messageStatusIndicator:messageStatusIndicator$k,endCallButton:endCallButton$k,cameraButton:cameraButton$k,microphoneButton:microphoneButton$k,devicesButton:devicesButton$k,participantsButton:participantsButton$k,screenShareButton:screenShareButton$k,raiseHandButton:raiseHandButton$k,reactionButton:reactionButton$k,messageThread:messageThread$k,errorBar:errorBar$k,notificationStack:notificationStack$k,videoGallery:videoGallery$k,dialpad:dialpad$k,holdButton:holdButton$k,videoTile:videoTile$k,CameraAndMicrophoneSitePermissionsRequest:CameraAndMicrophoneSitePermissionsRequest$k,CameraSitePermissionsRequest:CameraSitePermissionsRequest$k,MicrophoneSitePermissionsRequest:MicrophoneSitePermissionsRequest$k,CameraAndMicrophoneSitePermissionsCheck:CameraAndMicrophoneSitePermissionsCheck$k,CameraSitePermissionsCheck:CameraSitePermissionsCheck$k,MicrophoneSitePermissionsCheck:MicrophoneSitePermissionsCheck$k,CameraAndMicrophoneSitePermissionsDenied:CameraAndMicrophoneSitePermissionsDenied$k,CameraAndMicrophoneSitePermissionsDeniedSafari:CameraAndMicrophoneSitePermissionsDeniedSafari$k,CameraSitePermissionsDenied:CameraSitePermissionsDenied$k,MicrophoneSitePermissionsDenied:MicrophoneSitePermissionsDenied$k,CameraSitePermissionsDeniedSafari:CameraSitePermissionsDeniedSafari$k,MicrophoneSitePermissionsDeniedSafari:MicrophoneSitePermissionsDeniedSafari$k,UnsupportedBrowser:UnsupportedBrowser$l,UnsupportedBrowserVersion:UnsupportedBrowserVersion$l,UnsupportedOperatingSystem:UnsupportedOperatingSystem$l,BrowserPermissionDenied:BrowserPermissionDenied$k,BrowserPermissionDeniedIOS:BrowserPermissionDeniedIOS$k,verticalGallery:verticalGallery$k,meetingConferencePhoneInfo:meetingConferencePhoneInfo$k,IncomingCallNotification:IncomingCallNotification$l};
|
2012
2012
|
|
2013
2013
|
// Copyright (c) Microsoft Corporation.
|
2014
2014
|
// Licensed under the MIT License.
|
@@ -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$Y = (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$Y(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$Y(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$X = (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$X(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$W = (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$W(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$W(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$V = (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$V(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;
|
@@ -8108,11 +8108,16 @@ const RichTextEditor = React.forwardRef((props, ref) => {
|
|
8108
8108
|
}, []);
|
8109
8109
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
8110
8110
|
React.useEffect(() => {
|
8111
|
-
|
8112
|
-
|
8113
|
-
|
8114
|
-
|
8115
|
-
|
8111
|
+
if (onInsertInlineImage) {
|
8112
|
+
copyPastePlugin.onInsertInlineImage = (imageAttributes) => {
|
8113
|
+
const { id, src } = imageAttributes;
|
8114
|
+
setInlineImageLocalBlobs(Object.assign(Object.assign({}, inlineImageLocalBlobs), { [id]: src }));
|
8115
|
+
onInsertInlineImage(imageAttributes);
|
8116
|
+
};
|
8117
|
+
}
|
8118
|
+
else {
|
8119
|
+
copyPastePlugin.onInsertInlineImage = undefined;
|
8120
|
+
}
|
8116
8121
|
undoRedoPlugin.onInsertInlineImage = onInsertInlineImage;
|
8117
8122
|
}, [copyPastePlugin, inlineImageLocalBlobs, onInsertInlineImage, undoRedoPlugin]);
|
8118
8123
|
React.useEffect(() => {
|
@@ -10753,7 +10758,7 @@ class _ErrorBoundary extends React.Component {
|
|
10753
10758
|
// Copyright (c) Microsoft Corporation.
|
10754
10759
|
// Licensed under the MIT License.
|
10755
10760
|
/* @conditional-compile-remove(rich-text-editor) */
|
10756
|
-
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
10761
|
+
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-K_vrVBbn.js'); }));
|
10757
10762
|
/**
|
10758
10763
|
* @private
|
10759
10764
|
* Use this function to load RoosterJS dependencies early in the lifecycle.
|
@@ -10761,7 +10766,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
|
|
10761
10766
|
*
|
10762
10767
|
* @conditional-compile-remove(rich-text-editor)
|
10763
10768
|
*/
|
10764
|
-
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
10769
|
+
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-K_vrVBbn.js'); });
|
10765
10770
|
/**
|
10766
10771
|
* @private
|
10767
10772
|
*/
|
@@ -10780,7 +10785,7 @@ const ChatMessageComponentAsEditBoxPicker = (props) => {
|
|
10780
10785
|
|
10781
10786
|
// Copyright (c) Microsoft Corporation.
|
10782
10787
|
// Licensed under the MIT License.
|
10783
|
-
var __awaiter$
|
10788
|
+
var __awaiter$U = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
10784
10789
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
10785
10790
|
return new (P || (P = Promise))(function (resolve, reject) {
|
10786
10791
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -10836,7 +10841,7 @@ const ChatMyMessageComponent = (props) => {
|
|
10836
10841
|
function (text,
|
10837
10842
|
/* @conditional-compile-remove(file-sharing-acs) */
|
10838
10843
|
attachments) {
|
10839
|
-
return __awaiter$
|
10844
|
+
return __awaiter$U(this, void 0, void 0, function* () {
|
10840
10845
|
/* @conditional-compile-remove(file-sharing-acs) */
|
10841
10846
|
if (`attachments` in message && attachments) {
|
10842
10847
|
message.attachments = attachments;
|
@@ -11274,7 +11279,7 @@ const fluentChatComponent = (props) => {
|
|
11274
11279
|
|
11275
11280
|
// Copyright (c) Microsoft Corporation.
|
11276
11281
|
// Licensed under the MIT License.
|
11277
|
-
var __awaiter$
|
11282
|
+
var __awaiter$T = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
11278
11283
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
11279
11284
|
return new (P || (P = Promise))(function (resolve, reject) {
|
11280
11285
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -11470,7 +11475,7 @@ const MessageThreadWrapper = (props) => {
|
|
11470
11475
|
loadChatMessageComponentAsRichTextEditBox();
|
11471
11476
|
}
|
11472
11477
|
}, [richTextEditorOptions]);
|
11473
|
-
const onDeleteMessageCallback = React.useCallback((messageId) => __awaiter$
|
11478
|
+
const onDeleteMessageCallback = React.useCallback((messageId) => __awaiter$T(void 0, void 0, void 0, function* () {
|
11474
11479
|
if (!onDeleteMessage) {
|
11475
11480
|
return;
|
11476
11481
|
}
|
@@ -11551,7 +11556,7 @@ const MessageThreadWrapper = (props) => {
|
|
11551
11556
|
*/
|
11552
11557
|
const clientHeight = (_a = chatThreadRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight;
|
11553
11558
|
// we try to only send those message status if user is scrolled to the bottom.
|
11554
|
-
const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$
|
11559
|
+
const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$T(void 0, void 0, void 0, function* () {
|
11555
11560
|
if (!isAtBottomOfScrollRef.current ||
|
11556
11561
|
!document.hasFocus() ||
|
11557
11562
|
!messagesRef.current ||
|
@@ -11602,7 +11607,7 @@ const MessageThreadWrapper = (props) => {
|
|
11602
11607
|
setIsAtBottomOfScrollRef(atBottom);
|
11603
11608
|
}, [scrollToBottom, sendMessageStatusIfAtBottom]);
|
11604
11609
|
// Infinite scrolling + threadInitialize function
|
11605
|
-
const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$
|
11610
|
+
const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$T(void 0, void 0, void 0, function* () {
|
11606
11611
|
if (!isLoadingChatMessagesRef.current) {
|
11607
11612
|
if (onLoadPreviousChatMessages) {
|
11608
11613
|
isLoadingChatMessagesRef.current = true;
|
@@ -13072,7 +13077,7 @@ const useVideoTileContextualMenuProps = (props) => {
|
|
13072
13077
|
},
|
13073
13078
|
'data-ui-id': 'video-tile-pin-participant-button',
|
13074
13079
|
disabled: disablePinMenuItem || isSpotlighted,
|
13075
|
-
ariaLabel:
|
13080
|
+
ariaLabel: strings.pinParticipantForMe
|
13076
13081
|
});
|
13077
13082
|
}
|
13078
13083
|
}
|
@@ -14607,7 +14612,7 @@ const localVideoTileContainerStyles = {
|
|
14607
14612
|
|
14608
14613
|
// Copyright (c) Microsoft Corporation.
|
14609
14614
|
// Licensed under the MIT License.
|
14610
|
-
var __awaiter$
|
14615
|
+
var __awaiter$S = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
14611
14616
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
14612
14617
|
return new (P || (P = Promise))(function (resolve, reject) {
|
14613
14618
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -14624,7 +14629,7 @@ const LocalVideoCameraCycleButton = (props) => {
|
|
14624
14629
|
const { cameras, selectedCamera, onSelectCamera, label, ariaDescription, size } = props;
|
14625
14630
|
const theme = react.useTheme();
|
14626
14631
|
const [waitForCamera, setWaitForCamera] = React.useState(false);
|
14627
|
-
const onChangeCameraClick = React.useCallback((device) => __awaiter$
|
14632
|
+
const onChangeCameraClick = React.useCallback((device) => __awaiter$S(void 0, void 0, void 0, function* () {
|
14628
14633
|
// Throttle changing camera to prevent too many callbacks
|
14629
14634
|
if (onSelectCamera) {
|
14630
14635
|
setWaitForCamera(true);
|
@@ -17408,7 +17413,7 @@ const DevicesButton = (props) => {
|
|
17408
17413
|
|
17409
17414
|
// Copyright (c) Microsoft Corporation.
|
17410
17415
|
// Licensed under the MIT License.
|
17411
|
-
var __awaiter$
|
17416
|
+
var __awaiter$R = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
17412
17417
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
17413
17418
|
return new (P || (P = Promise))(function (resolve, reject) {
|
17414
17419
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -17446,7 +17451,7 @@ const CameraButton = (props) => {
|
|
17446
17451
|
const toggleAnnouncerString = React.useCallback((isCameraOn) => {
|
17447
17452
|
setAnnouncerString(!isCameraOn ? strings.cameraActionTurnedOffAnnouncement : strings.cameraActionTurnedOnAnnouncement);
|
17448
17453
|
}, [strings.cameraActionTurnedOffAnnouncement, strings.cameraActionTurnedOnAnnouncement]);
|
17449
|
-
const onToggleClick = React.useCallback(() => __awaiter$
|
17454
|
+
const onToggleClick = React.useCallback(() => __awaiter$R(void 0, void 0, void 0, function* () {
|
17450
17455
|
// Throttle click on camera, need to await onToggleCamera then allow another click
|
17451
17456
|
if (onToggleCamera) {
|
17452
17457
|
setWaitForCamera(true);
|
@@ -17460,7 +17465,7 @@ const CameraButton = (props) => {
|
|
17460
17465
|
}
|
17461
17466
|
}
|
17462
17467
|
}), [cameraOn, localVideoViewOptions, onToggleCamera, toggleAnnouncerString]);
|
17463
|
-
const onChangeCameraClick = React.useCallback((device) => __awaiter$
|
17468
|
+
const onChangeCameraClick = React.useCallback((device) => __awaiter$R(void 0, void 0, void 0, function* () {
|
17464
17469
|
// Throttle changing camera to prevent too many callbacks
|
17465
17470
|
if (onSelectCamera) {
|
17466
17471
|
setWaitForCamera(true);
|
@@ -17511,7 +17516,7 @@ const CameraButton = (props) => {
|
|
17511
17516
|
React.createElement(Announcer$1, { announcementString: announcerString, ariaLive: 'polite' }),
|
17512
17517
|
React.createElement(ControlBarButton, Object.assign({}, props, { disabled: disabled, onClick: onToggleCamera ? onToggleClick : props.onClick, onRenderOnIcon: (_a = props.onRenderOnIcon) !== null && _a !== void 0 ? _a : onRenderCameraOnIcon, onRenderOffIcon: (_b = props.onRenderOffIcon) !== null && _b !== void 0 ? _b : onRenderCameraOffIcon, strings: strings, labelKey: (_c = props.labelKey) !== null && _c !== void 0 ? _c : 'cameraButtonLabel', menuProps: (_d = props.menuProps) !== null && _d !== void 0 ? _d : (props.enableDeviceSelectionMenu
|
17513
17518
|
? generateDefaultDeviceMenuProps(Object.assign(Object.assign({}, props), { onSelectCamera: onChangeCameraClick, styles: (_e = props.styles) === null || _e === void 0 ? void 0 : _e.menuStyles }), strings, splitButtonPrimaryAction)
|
17514
|
-
: undefined), menuIconProps: ((_f = props.menuIconProps) !== null && _f !== void 0 ? _f : !props.enableDeviceSelectionMenu) ? { hidden: true } : undefined, split: (_g = props.split) !== null && _g !== void 0 ? _g : props.enableDeviceSelectionMenu, "aria-roledescription": props.enableDeviceSelectionMenu ? strings.cameraButtonSplitRoleDescription : undefined, splitButtonAriaLabel: props.enableDeviceSelectionMenu ? splitButtonAriaString : undefined, splitButtonMenuProps: splitButtonMenuProps }))));
|
17519
|
+
: undefined), menuIconProps: ((_f = props.menuIconProps) !== null && _f !== void 0 ? _f : !props.enableDeviceSelectionMenu) ? { hidden: true } : undefined, split: (_g = props.split) !== null && _g !== void 0 ? _g : props.enableDeviceSelectionMenu, "aria-description": strings.cameraButtonAriaDescription, "aria-roledescription": props.enableDeviceSelectionMenu ? strings.cameraButtonSplitRoleDescription : undefined, splitButtonAriaLabel: props.enableDeviceSelectionMenu ? splitButtonAriaString : undefined, splitButtonMenuProps: splitButtonMenuProps }))));
|
17515
17520
|
};
|
17516
17521
|
|
17517
17522
|
// Copyright (c) Microsoft Corporation.
|
@@ -17681,7 +17686,7 @@ const menupButtonPadding = {
|
|
17681
17686
|
|
17682
17687
|
// Copyright (c) Microsoft Corporation.
|
17683
17688
|
// Licensed under the MIT License.
|
17684
|
-
var __awaiter$
|
17689
|
+
var __awaiter$Q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
17685
17690
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
17686
17691
|
return new (P || (P = Promise))(function (resolve, reject) {
|
17687
17692
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -17722,7 +17727,7 @@ const MicrophoneButton = (props) => {
|
|
17722
17727
|
const toggleAnnouncerString = React.useCallback((isMicOn) => {
|
17723
17728
|
setAnnouncerString(!isMicOn ? strings.microphoneActionTurnedOffAnnouncement : strings.microphoneActionTurnedOnAnnouncement);
|
17724
17729
|
}, [strings.microphoneActionTurnedOffAnnouncement, strings.microphoneActionTurnedOnAnnouncement]);
|
17725
|
-
const onToggleClick = React.useCallback(() => __awaiter$
|
17730
|
+
const onToggleClick = React.useCallback(() => __awaiter$Q(void 0, void 0, void 0, function* () {
|
17726
17731
|
if (onToggleMicrophone) {
|
17727
17732
|
try {
|
17728
17733
|
yield onToggleMicrophone();
|
@@ -17734,6 +17739,16 @@ const MicrophoneButton = (props) => {
|
|
17734
17739
|
}
|
17735
17740
|
}
|
17736
17741
|
}), [isMicOn, onToggleMicrophone, toggleAnnouncerString]);
|
17742
|
+
/* @conditional-compile-remove(DNS) */
|
17743
|
+
const deepNoiseSuppressionToggleStyles = {
|
17744
|
+
root: {
|
17745
|
+
margin: '4px',
|
17746
|
+
padding: '0px 12px',
|
17747
|
+
flexFlow: 'row-reverse',
|
17748
|
+
justifyContent: 'space-between'
|
17749
|
+
},
|
17750
|
+
label: { fontWeight: 400 }
|
17751
|
+
};
|
17737
17752
|
/**
|
17738
17753
|
* We need to also include the primary action of the button to the
|
17739
17754
|
* split button for mobile devices.
|
@@ -17757,6 +17772,22 @@ const MicrophoneButton = (props) => {
|
|
17757
17772
|
iconName: props.checked ? 'SplitButtonPrimaryActionMicUnmuted' : 'SplitButtonPrimaryActionMicMuted',
|
17758
17773
|
styles: { root: { lineHeight: 0 } }
|
17759
17774
|
}
|
17775
|
+
},
|
17776
|
+
/* @conditional-compile-remove(DNS) */
|
17777
|
+
{
|
17778
|
+
key: 'microphoneDNSToggle',
|
17779
|
+
onRender: () => {
|
17780
|
+
return (React.createElement(react.Stack, { onClick: () => __awaiter$Q(void 0, void 0, void 0, function* () {
|
17781
|
+
var _a;
|
17782
|
+
yield ((_a = props.onClickNoiseSuppression) === null || _a === void 0 ? void 0 : _a.call(props));
|
17783
|
+
setAnnouncerString(props.isDeepNoiseSuppressionOn
|
17784
|
+
? strings.deepNoiseSuppresionOnAnnouncement
|
17785
|
+
: strings.deepNoiseSuppresionOffAnnouncement);
|
17786
|
+
}) },
|
17787
|
+
React.createElement(react.Toggle, { label: props.isDeepNoiseSuppressionOn
|
17788
|
+
? strings.deepNoiseSuppresionOnTitle
|
17789
|
+
: strings.deepNoiseSuppresionOffTitle, checked: props.isDeepNoiseSuppressionOn, inlineLabel: true, styles: deepNoiseSuppressionToggleStyles })));
|
17790
|
+
}
|
17760
17791
|
}
|
17761
17792
|
]
|
17762
17793
|
}
|
@@ -17765,7 +17796,7 @@ const MicrophoneButton = (props) => {
|
|
17765
17796
|
React.createElement(Announcer$1, { announcementString: announcerString, ariaLive: 'polite' }),
|
17766
17797
|
React.createElement(ControlBarButton, Object.assign({}, props, { onClick: props.onToggleMicrophone ? onToggleClick : props.onClick, onRenderOnIcon: (_f = props.onRenderOnIcon) !== null && _f !== void 0 ? _f : onRenderMicOnIcon, onRenderOffIcon: (_g = props.onRenderOffIcon) !== null && _g !== void 0 ? _g : onRenderMicOffIcon, strings: strings, labelKey: (_h = props.labelKey) !== null && _h !== void 0 ? _h : 'microphoneButtonLabel', menuProps: (_j = props.menuProps) !== null && _j !== void 0 ? _j : (props.enableDeviceSelectionMenu
|
17767
17798
|
? generateDefaultDeviceMenuProps(Object.assign(Object.assign({}, props), { styles: (_k = props.styles) === null || _k === void 0 ? void 0 : _k.menuStyles }), strings, splitButtonPrimaryAction)
|
17768
|
-
: undefined), menuIconProps: ((_l = props.menuIconProps) !== null && _l !== void 0 ? _l : !props.enableDeviceSelectionMenu) ? { hidden: true } : undefined, split: (_m = props.split) !== null && _m !== void 0 ? _m : props.enableDeviceSelectionMenu, "aria-roledescription": props.enableDeviceSelectionMenu ? strings.microphoneButtonSplitRoleDescription : undefined, splitButtonAriaLabel: props.enableDeviceSelectionMenu ? splitButtonAriaString : undefined, disabled: disabled, primaryDisabled: primaryDisabled }))));
|
17799
|
+
: undefined), menuIconProps: ((_l = props.menuIconProps) !== null && _l !== void 0 ? _l : !props.enableDeviceSelectionMenu) ? { hidden: true } : undefined, split: (_m = props.split) !== null && _m !== void 0 ? _m : props.enableDeviceSelectionMenu, "aria-roledescription": props.enableDeviceSelectionMenu ? strings.microphoneButtonSplitRoleDescription : undefined, "aria-description": strings.microphoneAriaDescription, splitButtonAriaLabel: props.enableDeviceSelectionMenu ? splitButtonAriaString : undefined, disabled: disabled, primaryDisabled: primaryDisabled }))));
|
17769
17800
|
};
|
17770
17801
|
|
17771
17802
|
// Copyright (c) Microsoft Corporation.
|
@@ -18588,7 +18619,7 @@ const dtmfFrequencies = {
|
|
18588
18619
|
|
18589
18620
|
// Copyright (c) Microsoft Corporation.
|
18590
18621
|
// Licensed under the MIT License.
|
18591
|
-
var __awaiter$
|
18622
|
+
var __awaiter$P = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
18592
18623
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
18593
18624
|
return new (P || (P = Promise))(function (resolve, reject) {
|
18594
18625
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -18632,10 +18663,10 @@ const DialpadButton = (props) => {
|
|
18632
18663
|
const [buttonPressed, setButtonPressed] = React.useState(false);
|
18633
18664
|
const dtmfToneSound = React.useRef(new Tone(dtmfToneAudioContext, dtmfFrequencies[digit].f1, dtmfFrequencies[digit].f2));
|
18634
18665
|
const useLongPressProps = React.useMemo(() => ({
|
18635
|
-
onClick: () => __awaiter$
|
18666
|
+
onClick: () => __awaiter$P(void 0, void 0, void 0, function* () {
|
18636
18667
|
onClick(digit, index);
|
18637
18668
|
}),
|
18638
|
-
onLongPress: () => __awaiter$
|
18669
|
+
onLongPress: () => __awaiter$P(void 0, void 0, void 0, function* () {
|
18639
18670
|
onLongPress(digit, index);
|
18640
18671
|
}),
|
18641
18672
|
touchEventsOnly: longPressTrigger === 'touch'
|
@@ -19773,7 +19804,7 @@ const _spokenLanguageToCaptionLanguage = {
|
|
19773
19804
|
|
19774
19805
|
// Copyright (c) Microsoft Corporation.
|
19775
19806
|
// Licensed under the MIT License.
|
19776
|
-
var __awaiter$
|
19807
|
+
var __awaiter$O = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
19777
19808
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
19778
19809
|
return new (P || (P = Promise))(function (resolve, reject) {
|
19779
19810
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -19812,7 +19843,7 @@ const _CaptionsSettingsModal = (props) => {
|
|
19812
19843
|
onDismissCaptionsSettings();
|
19813
19844
|
}
|
19814
19845
|
}, [onDismissCaptionsSettings]);
|
19815
|
-
const onConfirm = React.useCallback(() => __awaiter$
|
19846
|
+
const onConfirm = React.useCallback(() => __awaiter$O(void 0, void 0, void 0, function* () {
|
19816
19847
|
const spokenLanguageCode = selectedSpokenLanguage.key;
|
19817
19848
|
const captionLanguageCode = selectedCaptionLanguage.key;
|
19818
19849
|
if (isCaptionsFeatureActive) {
|
@@ -20253,7 +20284,7 @@ const NotificationStack = (props) => {
|
|
20253
20284
|
* @beta
|
20254
20285
|
*/
|
20255
20286
|
const IncomingCallNotification$k = (props) => {
|
20256
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
20287
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
20257
20288
|
const { callerName, alertText, avatarImage, onAcceptWithAudio,
|
20258
20289
|
/* @conditional-compile-remove(one-to-n-calling) */
|
20259
20290
|
onAcceptWithVideo, onReject, onDismiss, personaSize, styles, strings,
|
@@ -20290,21 +20321,24 @@ const IncomingCallNotification$k = (props) => {
|
|
20290
20321
|
React.createElement(react.Stack, { horizontalAlign: "start", styles: (styles === null || styles === void 0 ? void 0 : styles.avatarContainer) ? styles.avatarContainer : incomingCallToastAvatarContainerStyle },
|
20291
20322
|
React.createElement(react.Persona, { imageUrl: avatarImage, text: callerName, size: react.PersonaSize.size24, coinSize: personaSize, hidePersonaDetails: true, "aria-label": callerName })),
|
20292
20323
|
React.createElement(react.Stack, { grow: true, horizontalAlign: "center", style: { alignItems: 'flex-start', fontFamily: 'Segoe UI' } },
|
20293
|
-
React.createElement(react.
|
20294
|
-
|
20295
|
-
|
20296
|
-
|
20324
|
+
React.createElement(react.Text, { tabIndex: 0, "aria-live": 'assertive', "aria-label": alertText !== null && alertText !== void 0 ? alertText : formattedMessageString }, (_c = alertText !== null && alertText !== void 0 ? alertText : strings === null || strings === void 0 ? void 0 : strings.incomingCallNotificationPlaceholderAlert) !== null && _c !== void 0 ? _c :
|
20325
|
+
/* @conditional-compile-remove(one-to-n-calling) */ formattedMessageString)),
|
20326
|
+
React.createElement(react.IconButton
|
20327
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
20328
|
+
, {
|
20329
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
20330
|
+
ariaLabel: (_d = strings === null || strings === void 0 ? void 0 : strings.incomingCallNotificationDismissButtonAriaLabel) !== null && _d !== void 0 ? _d : localeStrings.incomingCallNotificationDismissButtonAriaLabel, iconProps: { iconName: 'cancel' }, onClick: onDismiss, styles: dismissButtonStyle(theme) })),
|
20297
20331
|
React.createElement(react.Stack, { horizontal: true, horizontalAlign: 'center', tokens: { childrenGap: '0.5rem' } },
|
20298
20332
|
React.createElement(react.PrimaryButton, { styles: (styles === null || styles === void 0 ? void 0 : styles.acceptButton) ? styles.acceptButton : incomingCallAcceptButtonStyle(theme), onClick: () => onAcceptWithAudio(), iconProps: { iconName: 'IncomingCallNotificationAcceptIcon', style: { lineHeight: '1rem' } },
|
20299
20333
|
/* @conditional-compile-remove(one-to-n-calling) */
|
20300
|
-
ariaLabel: (
|
20334
|
+
ariaLabel: (_e = strings === null || strings === void 0 ? void 0 : strings.incomingCallNoticicationAcceptWithAudioAriaLabel) !== null && _e !== void 0 ? _e : localeStrings.incomingCallNoticicationAcceptWithAudioAriaLabel,
|
20301
20335
|
/* @conditional-compile-remove(one-to-n-calling) */
|
20302
20336
|
menuProps: acceptManuOptions },
|
20303
|
-
/* @conditional-compile-remove(one-to-n-calling) */ (
|
20304
|
-
React.createElement(react.DefaultButton, { styles: (styles === null || styles === void 0 ? void 0 : styles.rejectButton) ? styles.rejectButton : incomingCallRejectButtonStyle(theme), onClick: () => onReject(),
|
20337
|
+
/* @conditional-compile-remove(one-to-n-calling) */ (_f = strings === null || strings === void 0 ? void 0 : strings.incomingCallNotificationAcceptButtonLabel) !== null && _f !== void 0 ? _f : localeStrings.incomingCallNotificationAcceptButtonLabel),
|
20338
|
+
React.createElement(react.DefaultButton, { styles: (styles === null || styles === void 0 ? void 0 : styles.rejectButton) ? styles.rejectButton : incomingCallRejectButtonStyle(theme), onClick: () => onReject(), iconProps: { iconName: 'IncomingCallNotificationRejectIcon' },
|
20305
20339
|
/* @conditional-compile-remove(one-to-n-calling) */
|
20306
|
-
ariaLabel: (
|
20307
|
-
/* @conditional-compile-remove(one-to-n-calling) */ (
|
20340
|
+
ariaLabel: (_g = strings === null || strings === void 0 ? void 0 : strings.incomingCallNoticicationRejectAriaLabel) !== null && _g !== void 0 ? _g : localeStrings.incomingCallNoticicationRejectAriaLabel },
|
20341
|
+
/* @conditional-compile-remove(one-to-n-calling) */ (_h = strings === null || strings === void 0 ? void 0 : strings.incomingCallNotificationRejectButtonLabel) !== null && _h !== void 0 ? _h : localeStrings.incomingCallNotificationRejectButtonLabel))));
|
20308
20342
|
};
|
20309
20343
|
const incomingCallToastStyle = (theme) => {
|
20310
20344
|
return {
|
@@ -20376,8 +20410,9 @@ const incomingCallRejectButtonStyle = (theme) => {
|
|
20376
20410
|
*/
|
20377
20411
|
const IncomingCallStack = (props) => {
|
20378
20412
|
/* @conditional-compile-remove(one-to-n-calling) */
|
20379
|
-
const { activeIncomingCalls, removedIncomingCalls, onAcceptCall, onRejectCall, styles, strings } = props;
|
20380
|
-
return (React.createElement(react.Stack, { tokens: { childrenGap: '0.25rem' }
|
20413
|
+
const { activeIncomingCalls, removedIncomingCalls, onAcceptCall, onRejectCall, styles, strings, tabIndex } = props;
|
20414
|
+
return (React.createElement(react.Stack, { tokens: { childrenGap: '0.25rem' }, role: 'group',
|
20415
|
+
/* @conditional-compile-remove(one-to-n-calling) */ tabIndex: tabIndex },
|
20381
20416
|
/* @conditional-compile-remove(one-to-n-calling) */ activeIncomingCalls
|
20382
20417
|
.filter((incomingCall) => !removedIncomingCalls.some((call) => call.id === incomingCall.id))
|
20383
20418
|
.map((incomingCall) => {
|
@@ -21486,7 +21521,7 @@ const _DEFAULT_INLINE_IMAGE_FILE_NAME = 'image.png';
|
|
21486
21521
|
|
21487
21522
|
// Copyright (c) Microsoft Corporation.
|
21488
21523
|
// Licensed under the MIT License.
|
21489
|
-
var __awaiter$
|
21524
|
+
var __awaiter$N = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
21490
21525
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
21491
21526
|
return new (P || (P = Promise))(function (resolve, reject) {
|
21492
21527
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -21603,9 +21638,9 @@ class AzureCommunicationChatAdapter {
|
|
21603
21638
|
this.chatClient.dispose();
|
21604
21639
|
}
|
21605
21640
|
fetchInitialData() {
|
21606
|
-
return __awaiter$
|
21641
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21607
21642
|
// If get properties fails we dont want to try to get the participants after.
|
21608
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21643
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21609
21644
|
var _a, e_1, _b, _c;
|
21610
21645
|
yield this.chatThreadClient.getProperties();
|
21611
21646
|
try {
|
@@ -21641,66 +21676,66 @@ class AzureCommunicationChatAdapter {
|
|
21641
21676
|
this.context.offStateChange(handler);
|
21642
21677
|
}
|
21643
21678
|
sendMessage(content, options) {
|
21644
|
-
return __awaiter$
|
21645
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21679
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21680
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21646
21681
|
return yield this.handlers.onSendMessage(content, options);
|
21647
21682
|
}));
|
21648
21683
|
});
|
21649
21684
|
}
|
21650
21685
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
21651
21686
|
uploadImage(image, imageFilename) {
|
21652
|
-
return __awaiter$
|
21653
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21687
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21688
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21654
21689
|
return yield this.handlers.onUploadImage(image, imageFilename);
|
21655
21690
|
}));
|
21656
21691
|
});
|
21657
21692
|
}
|
21658
21693
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
21659
21694
|
deleteImage(imageId) {
|
21660
|
-
return __awaiter$
|
21661
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21695
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21696
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21662
21697
|
return yield this.handlers.onDeleteImage(imageId);
|
21663
21698
|
}));
|
21664
21699
|
});
|
21665
21700
|
}
|
21666
21701
|
sendReadReceipt(chatMessageId) {
|
21667
|
-
return __awaiter$
|
21668
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21702
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21703
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21669
21704
|
yield this.handlers.onMessageSeen(chatMessageId);
|
21670
21705
|
}));
|
21671
21706
|
});
|
21672
21707
|
}
|
21673
21708
|
sendTypingIndicator() {
|
21674
|
-
return __awaiter$
|
21675
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21709
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21710
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21676
21711
|
yield this.handlers.onTyping();
|
21677
21712
|
}));
|
21678
21713
|
});
|
21679
21714
|
}
|
21680
21715
|
removeParticipant(userId) {
|
21681
|
-
return __awaiter$
|
21682
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21716
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21717
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21683
21718
|
yield this.handlers.onRemoveParticipant(userId);
|
21684
21719
|
}));
|
21685
21720
|
});
|
21686
21721
|
}
|
21687
21722
|
setTopic(topicName) {
|
21688
|
-
return __awaiter$
|
21689
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21723
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21724
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21690
21725
|
yield this.handlers.updateThreadTopicName(topicName);
|
21691
21726
|
}));
|
21692
21727
|
});
|
21693
21728
|
}
|
21694
21729
|
loadPreviousChatMessages(messagesToLoad) {
|
21695
|
-
return __awaiter$
|
21696
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21730
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21731
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21697
21732
|
return yield this.handlers.onLoadPreviousChatMessages(messagesToLoad);
|
21698
21733
|
}));
|
21699
21734
|
});
|
21700
21735
|
}
|
21701
21736
|
updateMessage(messageId, content, options) {
|
21702
|
-
return __awaiter$
|
21703
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21737
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21738
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21704
21739
|
var _a;
|
21705
21740
|
/* @conditional-compile-remove(file-sharing-acs) */
|
21706
21741
|
const messageOptions = {};
|
@@ -21731,14 +21766,14 @@ class AzureCommunicationChatAdapter {
|
|
21731
21766
|
});
|
21732
21767
|
}
|
21733
21768
|
deleteMessage(messageId) {
|
21734
|
-
return __awaiter$
|
21735
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21769
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21770
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$N(this, void 0, void 0, function* () {
|
21736
21771
|
return yield this.handlers.onDeleteMessage(messageId);
|
21737
21772
|
}));
|
21738
21773
|
});
|
21739
21774
|
}
|
21740
21775
|
downloadResourceToCache(resourceDetails) {
|
21741
|
-
return __awaiter$
|
21776
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21742
21777
|
this.chatClient.downloadResourceToCache(resourceDetails.threadId, resourceDetails.messageId, resourceDetails.resourceUrl);
|
21743
21778
|
});
|
21744
21779
|
}
|
@@ -21817,7 +21852,7 @@ class AzureCommunicationChatAdapter {
|
|
21817
21852
|
this.emitter.off(event, listener);
|
21818
21853
|
}
|
21819
21854
|
asyncTeeErrorToEventEmitter(f) {
|
21820
|
-
return __awaiter$
|
21855
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
21821
21856
|
try {
|
21822
21857
|
return yield f();
|
21823
21858
|
}
|
@@ -21867,7 +21902,7 @@ const convertEventType = (type) => {
|
|
21867
21902
|
*
|
21868
21903
|
* @public
|
21869
21904
|
*/
|
21870
|
-
const createAzureCommunicationChatAdapter = (_a) => __awaiter$
|
21905
|
+
const createAzureCommunicationChatAdapter = (_a) => __awaiter$N(void 0, [_a], void 0, function* ({ endpoint: endpointUrl, userId, displayName, credential, threadId }) {
|
21871
21906
|
return _createAzureCommunicationChatAdapterInner(endpointUrl, userId, displayName, credential, threadId);
|
21872
21907
|
});
|
21873
21908
|
/**
|
@@ -21875,7 +21910,7 @@ const createAzureCommunicationChatAdapter = (_a) => __awaiter$K(void 0, [_a], vo
|
|
21875
21910
|
*
|
21876
21911
|
* @internal
|
21877
21912
|
*/
|
21878
|
-
const _createAzureCommunicationChatAdapterInner = (endpoint_1, userId_1, displayName_1, credential_1, threadId_1, ...args_1) => __awaiter$
|
21913
|
+
const _createAzureCommunicationChatAdapterInner = (endpoint_1, userId_1, displayName_1, credential_1, threadId_1, ...args_1) => __awaiter$N(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
21914
|
if (!_isValidIdentifier(userId)) {
|
21880
21915
|
throw new Error('Provided userId is invalid. Please provide valid identifier object.');
|
21881
21916
|
}
|
@@ -21895,7 +21930,7 @@ const _createAzureCommunicationChatAdapterInner = (endpoint_1, userId_1, display
|
|
21895
21930
|
* ThreadId is a promise to allow for lazy initialization of the adapter.
|
21896
21931
|
* @internal
|
21897
21932
|
*/
|
21898
|
-
const _createLazyAzureCommunicationChatAdapterInner = (endpoint_2, userId_2, displayName_2, credential_2, threadId_2, ...args_2) => __awaiter$
|
21933
|
+
const _createLazyAzureCommunicationChatAdapterInner = (endpoint_2, userId_2, displayName_2, credential_2, threadId_2, ...args_2) => __awaiter$N(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
21934
|
if (!_isValidIdentifier(userId)) {
|
21900
21935
|
throw new Error('Provided userId is invalid. Please provide valid identifier object.');
|
21901
21936
|
}
|
@@ -21905,7 +21940,7 @@ const _createLazyAzureCommunicationChatAdapterInner = (endpoint_2, userId_2, dis
|
|
21905
21940
|
endpoint,
|
21906
21941
|
credential
|
21907
21942
|
}, undefined, telemetryImplementationHint);
|
21908
|
-
return threadId.then((threadId) => __awaiter$
|
21943
|
+
return threadId.then((threadId) => __awaiter$N(void 0, void 0, void 0, function* () {
|
21909
21944
|
if (UNSUPPORTED_CHAT_THREAD_TYPE.some((t) => threadId.includes(t))) {
|
21910
21945
|
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
21946
|
}
|
@@ -21966,7 +22001,7 @@ beforeDispose) => {
|
|
21966
22001
|
if (!credential || !displayName || !endpoint || !threadId || !userId) {
|
21967
22002
|
return;
|
21968
22003
|
}
|
21969
|
-
(() => __awaiter$
|
22004
|
+
(() => __awaiter$N(void 0, void 0, void 0, function* () {
|
21970
22005
|
if (adapterRef.current) {
|
21971
22006
|
// Dispose the old adapter when a new one is created.
|
21972
22007
|
//
|
@@ -21998,7 +22033,7 @@ beforeDispose) => {
|
|
21998
22033
|
// Dispose any existing adapter when the component unmounts.
|
21999
22034
|
React.useEffect(() => {
|
22000
22035
|
return () => {
|
22001
|
-
(() => __awaiter$
|
22036
|
+
(() => __awaiter$N(void 0, void 0, void 0, function* () {
|
22002
22037
|
if (adapterRef.current) {
|
22003
22038
|
if (beforeDisposeRef.current) {
|
22004
22039
|
yield beforeDisposeRef.current(adapterRef.current);
|
@@ -22020,7 +22055,7 @@ beforeDispose) => {
|
|
22020
22055
|
* @public
|
22021
22056
|
*/
|
22022
22057
|
function createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient) {
|
22023
|
-
return __awaiter$
|
22058
|
+
return __awaiter$N(this, void 0, void 0, function* () {
|
22024
22059
|
return new AzureCommunicationChatAdapter(chatClient, chatThreadClient);
|
22025
22060
|
});
|
22026
22061
|
}
|
@@ -22405,7 +22440,7 @@ const sendboxContainerStyles = {
|
|
22405
22440
|
|
22406
22441
|
// Copyright (c) Microsoft Corporation.
|
22407
22442
|
// Licensed under the MIT License.
|
22408
|
-
var __awaiter$
|
22443
|
+
var __awaiter$M = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
22409
22444
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
22410
22445
|
return new (P || (P = Promise))(function (resolve, reject) {
|
22411
22446
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -22426,7 +22461,7 @@ const AvatarPersona = (props) => {
|
|
22426
22461
|
const { userId, dataProvider, text, imageUrl, imageInitials, initialsColor, initialsTextColor, showOverflowTooltip } = props;
|
22427
22462
|
const [data, setData] = React.useState();
|
22428
22463
|
React.useEffect(() => {
|
22429
|
-
(() => __awaiter$
|
22464
|
+
(() => __awaiter$M(void 0, void 0, void 0, function* () {
|
22430
22465
|
if (dataProvider && userId) {
|
22431
22466
|
const newData = yield dataProvider(userId);
|
22432
22467
|
if (avatarDeepDifferenceCheck(data, newData)) {
|
@@ -22982,7 +23017,7 @@ const AttachmentDownloadErrorBar = (props) => {
|
|
22982
23017
|
/**
|
22983
23018
|
* Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox with lazy loading
|
22984
23019
|
*/
|
22985
|
-
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-
|
23020
|
+
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-Ct-gMKVg.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
|
22986
23021
|
/**
|
22987
23022
|
* @private
|
22988
23023
|
* Use this function to load RoosterJS dependencies early in the lifecycle.
|
@@ -22990,7 +23025,7 @@ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function
|
|
22990
23025
|
*
|
22991
23026
|
/* @conditional-compile-remove(rich-text-editor-composite-support)
|
22992
23027
|
*/
|
22993
|
-
const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-
|
23028
|
+
const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-Ct-gMKVg.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
|
22994
23029
|
/**
|
22995
23030
|
* @private
|
22996
23031
|
*/
|
@@ -23024,7 +23059,7 @@ const SendBoxPicker = (props) => {
|
|
23024
23059
|
|
23025
23060
|
// Copyright (c) Microsoft Corporation.
|
23026
23061
|
// Licensed under the MIT License.
|
23027
|
-
var __awaiter$
|
23062
|
+
var __awaiter$L = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
23028
23063
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
23029
23064
|
return new (P || (P = Promise))(function (resolve, reject) {
|
23030
23065
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -23036,7 +23071,7 @@ var __awaiter$I = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
23036
23071
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23037
23072
|
const MAX_INLINE_IMAGE_UPLOAD_SIZE_MB = 20;
|
23038
23073
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23039
|
-
const fetchBlobData = (resource, options) => __awaiter$
|
23074
|
+
const fetchBlobData = (resource, options) => __awaiter$L(void 0, void 0, void 0, function* () {
|
23040
23075
|
// default timeout is 30 seconds
|
23041
23076
|
const { timeout = 30000, abortController } = options;
|
23042
23077
|
const id = setTimeout(() => {
|
@@ -23050,7 +23085,7 @@ const fetchBlobData = (resource, options) => __awaiter$I(void 0, void 0, void 0,
|
|
23050
23085
|
/**
|
23051
23086
|
* @private
|
23052
23087
|
*/
|
23053
|
-
const getInlineImageData = (image) => __awaiter$
|
23088
|
+
const getInlineImageData = (image) => __awaiter$L(void 0, void 0, void 0, function* () {
|
23054
23089
|
if (image.startsWith('blob') || image.startsWith('http')) {
|
23055
23090
|
try {
|
23056
23091
|
const res = yield fetchBlobData(image, { abortController: new AbortController() });
|
@@ -23094,7 +23129,7 @@ const getSendBoxInlineImages = (sendBoxInlineImageUploads) => {
|
|
23094
23129
|
return (_a = sendBoxInlineImageUploads[SEND_BOX_UPLOADS_KEY_VALUE]) === null || _a === void 0 ? void 0 : _a.map((upload) => upload.metadata);
|
23095
23130
|
};
|
23096
23131
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23097
|
-
const inlineImageUploadHandler = (uploadTasks, adapter, strings) => __awaiter$
|
23132
|
+
const inlineImageUploadHandler = (uploadTasks, adapter, strings) => __awaiter$L(void 0, void 0, void 0, function* () {
|
23098
23133
|
var _a, _b, _c;
|
23099
23134
|
for (const task of uploadTasks) {
|
23100
23135
|
const uploadTask = task;
|
@@ -23127,7 +23162,7 @@ const inlineImageUploadHandler = (uploadTasks, adapter, strings) => __awaiter$I(
|
|
23127
23162
|
}
|
23128
23163
|
});
|
23129
23164
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23130
|
-
const generateUploadTask = (imageAttributes, fileName, messageId, inlineImageUploadActionHandler) => __awaiter$
|
23165
|
+
const generateUploadTask = (imageAttributes, fileName, messageId, inlineImageUploadActionHandler) => __awaiter$L(void 0, void 0, void 0, function* () {
|
23131
23166
|
const imageData = yield getInlineImageData(imageAttributes.src);
|
23132
23167
|
if (!imageData) {
|
23133
23168
|
return;
|
@@ -23174,7 +23209,7 @@ const generateUploadTask = (imageAttributes, fileName, messageId, inlineImageUpl
|
|
23174
23209
|
/**
|
23175
23210
|
* @internal
|
23176
23211
|
*/
|
23177
|
-
const onInsertInlineImageForEditBox = (imageAttributes, fileName, messageId, adapter, handleEditBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$
|
23212
|
+
const onInsertInlineImageForEditBox = (imageAttributes, fileName, messageId, adapter, handleEditBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$L(void 0, void 0, void 0, function* () {
|
23178
23213
|
const uploadTask = yield generateUploadTask(imageAttributes, fileName, messageId, handleEditBoxInlineImageUploadAction);
|
23179
23214
|
if (!uploadTask) {
|
23180
23215
|
return;
|
@@ -23190,7 +23225,7 @@ const onInsertInlineImageForEditBox = (imageAttributes, fileName, messageId, ada
|
|
23190
23225
|
/**
|
23191
23226
|
* @internal
|
23192
23227
|
*/
|
23193
|
-
const onInsertInlineImageForSendBox = (imageAttributes, fileName, adapter, handleSendBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$
|
23228
|
+
const onInsertInlineImageForSendBox = (imageAttributes, fileName, adapter, handleSendBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$L(void 0, void 0, void 0, function* () {
|
23194
23229
|
const uploadTask = yield generateUploadTask(imageAttributes, fileName, SEND_BOX_UPLOADS_KEY_VALUE, handleSendBoxInlineImageUploadAction);
|
23195
23230
|
if (!uploadTask) {
|
23196
23231
|
return;
|
@@ -23324,7 +23359,7 @@ const ImageUploadReducer = (state, action) => {
|
|
23324
23359
|
|
23325
23360
|
// Copyright (c) Microsoft Corporation.
|
23326
23361
|
// Licensed under the MIT License.
|
23327
|
-
var __awaiter$
|
23362
|
+
var __awaiter$K = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
23328
23363
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
23329
23364
|
return new (P || (P = Promise))(function (resolve, reject) {
|
23330
23365
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -23378,7 +23413,7 @@ const ChatScreen = (props) => {
|
|
23378
23413
|
}, [adapter]);
|
23379
23414
|
React.useEffect(() => {
|
23380
23415
|
// Initial data should be always fetched by the composite(or external caller) instead of the adapter
|
23381
|
-
const fetchData = () => __awaiter$
|
23416
|
+
const fetchData = () => __awaiter$K(void 0, void 0, void 0, function* () {
|
23382
23417
|
// Fetch initial data for adapter
|
23383
23418
|
yield adapter.fetchInitialData();
|
23384
23419
|
// 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 +23650,7 @@ const ChatScreen = (props) => {
|
|
23615
23650
|
}, [uploads]);
|
23616
23651
|
const onSendMessageHandler = React.useCallback(function (content,
|
23617
23652
|
/* @conditional-compile-remove(file-sharing-acs) */ /* @conditional-compile-remove(rich-text-editor-composite-support) */ options) {
|
23618
|
-
return __awaiter$
|
23653
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
23619
23654
|
var _a;
|
23620
23655
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23621
23656
|
content = updateContentStringWithUploadedInlineImages(content, sendBoxInlineImageUploads);
|
@@ -23644,7 +23679,7 @@ const ChatScreen = (props) => {
|
|
23644
23679
|
]);
|
23645
23680
|
const onUpdateMessageHandler = React.useCallback(function (messageId, content,
|
23646
23681
|
/* @conditional-compile-remove(file-sharing-acs) */ options) {
|
23647
|
-
return __awaiter$
|
23682
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
23648
23683
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23649
23684
|
content = updateContentStringWithUploadedInlineImages(content, editBoxInlineImageUploads, messageId);
|
23650
23685
|
yield messageThreadProps.onUpdateMessage(messageId, content,
|
@@ -24003,7 +24038,7 @@ const getAssignedBreakoutRoom$1 = (state, props) => {
|
|
24003
24038
|
|
24004
24039
|
// Copyright (c) Microsoft Corporation.
|
24005
24040
|
// Licensed under the MIT License.
|
24006
|
-
var __awaiter$
|
24041
|
+
var __awaiter$J = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24007
24042
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24008
24043
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24009
24044
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24042,7 +24077,7 @@ const _isPreviewOn = (deviceManager) => {
|
|
24042
24077
|
*
|
24043
24078
|
* @private
|
24044
24079
|
*/
|
24045
|
-
const disposeAllLocalPreviewViews = (callClient) => __awaiter$
|
24080
|
+
const disposeAllLocalPreviewViews = (callClient) => __awaiter$J(void 0, void 0, void 0, function* () {
|
24046
24081
|
const unparentedViews = callClient.getState().deviceManager.unparentedViews;
|
24047
24082
|
for (const view of unparentedViews) {
|
24048
24083
|
yield callClient.disposeView(undefined, undefined, view);
|
@@ -24111,7 +24146,7 @@ const maskDisplayNameWithRole = (displayName, localUserRole, participantRole, is
|
|
24111
24146
|
* Helper to create a local video stream from the selected camera.
|
24112
24147
|
* @private
|
24113
24148
|
*/
|
24114
|
-
const createLocalVideoStream = (callClient) => __awaiter$
|
24149
|
+
const createLocalVideoStream = (callClient) => __awaiter$J(void 0, void 0, void 0, function* () {
|
24115
24150
|
const camera = yield (callClient === null || callClient === void 0 ? void 0 : callClient.getState().deviceManager.selectedCamera);
|
24116
24151
|
if (camera) {
|
24117
24152
|
return new communicationCalling.LocalVideoStream(camera);
|
@@ -24230,7 +24265,7 @@ const holdButtonSelector = reselect__namespace.createSelector([getCallState], (c
|
|
24230
24265
|
|
24231
24266
|
// Copyright (c) Microsoft Corporation.
|
24232
24267
|
// Licensed under the MIT License.
|
24233
|
-
var __awaiter$
|
24268
|
+
var __awaiter$I = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24234
24269
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24235
24270
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24236
24271
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24251,7 +24286,7 @@ const areStreamsEqual = (prevStream, newStream) => {
|
|
24251
24286
|
* @private
|
24252
24287
|
*/
|
24253
24288
|
const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager, call, options) => {
|
24254
|
-
const onStartLocalVideo = () => __awaiter$
|
24289
|
+
const onStartLocalVideo = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24255
24290
|
// Before the call object creates a stream, dispose of any local preview streams.
|
24256
24291
|
// @TODO: is there any way to parent the unparented view to the call object instead
|
24257
24292
|
// of disposing and creating a new stream?
|
@@ -24271,7 +24306,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24271
24306
|
yield call.startVideo(stream);
|
24272
24307
|
}
|
24273
24308
|
});
|
24274
|
-
const onStopLocalVideo = (stream) => __awaiter$
|
24309
|
+
const onStopLocalVideo = (stream) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24275
24310
|
const callId = call === null || call === void 0 ? void 0 : call.id;
|
24276
24311
|
if (!callId) {
|
24277
24312
|
return;
|
@@ -24280,7 +24315,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24280
24315
|
yield call.stopVideo(stream);
|
24281
24316
|
}
|
24282
24317
|
});
|
24283
|
-
const onToggleCamera = (options) => __awaiter$
|
24318
|
+
const onToggleCamera = (options) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24284
24319
|
const previewOn = _isPreviewOn(callClient.getState().deviceManager);
|
24285
24320
|
// the disposal of the unparented views is to workaround: https://skype.visualstudio.com/SPOOL/_workitems/edit/3030558.
|
24286
24321
|
// The root cause of the issue is caused by never transitioning the unparented view to the
|
@@ -24337,19 +24372,19 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24337
24372
|
}
|
24338
24373
|
}
|
24339
24374
|
});
|
24340
|
-
const onSelectMicrophone = (device) => __awaiter$
|
24375
|
+
const onSelectMicrophone = (device) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24341
24376
|
if (!deviceManager) {
|
24342
24377
|
return;
|
24343
24378
|
}
|
24344
24379
|
return deviceManager.selectMicrophone(device);
|
24345
24380
|
});
|
24346
|
-
const onSelectSpeaker = (device) => __awaiter$
|
24381
|
+
const onSelectSpeaker = (device) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24347
24382
|
if (!deviceManager) {
|
24348
24383
|
return;
|
24349
24384
|
}
|
24350
24385
|
return deviceManager.selectSpeaker(device);
|
24351
24386
|
});
|
24352
|
-
const onSelectCamera = (device, options) => __awaiter$
|
24387
|
+
const onSelectCamera = (device, options) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24353
24388
|
if (!deviceManager) {
|
24354
24389
|
return;
|
24355
24390
|
}
|
@@ -24379,9 +24414,9 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24379
24414
|
}, options);
|
24380
24415
|
}
|
24381
24416
|
});
|
24382
|
-
const onRaiseHand = () => __awaiter$
|
24383
|
-
const onLowerHand = () => __awaiter$
|
24384
|
-
const onToggleRaiseHand = () => __awaiter$
|
24417
|
+
const onRaiseHand = () => __awaiter$I(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()); });
|
24418
|
+
const onLowerHand = () => __awaiter$I(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()); });
|
24419
|
+
const onToggleRaiseHand = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24385
24420
|
const raiseHandFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand);
|
24386
24421
|
const localUserId = callClient.getState().userId;
|
24387
24422
|
const isLocalRaisedHand = raiseHandFeature === null || raiseHandFeature === void 0 ? void 0 : raiseHandFeature.getRaisedHands().find((publishedState) => toFlatCommunicationIdentifier(publishedState.identifier) === toFlatCommunicationIdentifier(localUserId));
|
@@ -24392,7 +24427,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24392
24427
|
yield (raiseHandFeature === null || raiseHandFeature === void 0 ? void 0 : raiseHandFeature.raiseHand());
|
24393
24428
|
}
|
24394
24429
|
});
|
24395
|
-
const onReactionClick = (reaction) => __awaiter$
|
24430
|
+
const onReactionClick = (reaction) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24396
24431
|
var _c;
|
24397
24432
|
if (reaction === 'like' ||
|
24398
24433
|
reaction === 'applause' ||
|
@@ -24406,19 +24441,19 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24406
24441
|
}
|
24407
24442
|
return;
|
24408
24443
|
});
|
24409
|
-
const onToggleMicrophone = () => __awaiter$
|
24444
|
+
const onToggleMicrophone = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24410
24445
|
if (!call || !(_isInCall(call.state) || _isInLobbyOrConnecting(call.state))) {
|
24411
24446
|
throw new Error(`Please invoke onToggleMicrophone after call is started`);
|
24412
24447
|
}
|
24413
24448
|
return call.isMuted ? yield call.unmute() : yield call.mute();
|
24414
24449
|
});
|
24415
|
-
const onStartScreenShare = () => __awaiter$
|
24416
|
-
const onStopScreenShare = () => __awaiter$
|
24417
|
-
const onToggleScreenShare = () => __awaiter$
|
24418
|
-
const onHangUp = (forEveryone) => __awaiter$
|
24450
|
+
const onStartScreenShare = () => __awaiter$I(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.startScreenSharing()); });
|
24451
|
+
const onStopScreenShare = () => __awaiter$I(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.stopScreenSharing()); });
|
24452
|
+
const onToggleScreenShare = () => __awaiter$I(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.isScreenSharingOn) ? yield onStopScreenShare() : yield onStartScreenShare(); });
|
24453
|
+
const onHangUp = (forEveryone) => __awaiter$I(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.hangUp({ forEveryone: forEveryone === true ? true : false })); });
|
24419
24454
|
/* @conditional-compile-remove(PSTN-calls) */
|
24420
|
-
const onToggleHold = () => __awaiter$
|
24421
|
-
const onCreateLocalStreamView = (...args_1) => __awaiter$
|
24455
|
+
const onToggleHold = () => __awaiter$I(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()); });
|
24456
|
+
const onCreateLocalStreamView = (...args_1) => __awaiter$I(void 0, [...args_1], void 0, function* (options = { scalingMode: 'Crop', isMirrored: true }) {
|
24422
24457
|
if (!call || call.localVideoStreams.length === 0) {
|
24423
24458
|
return;
|
24424
24459
|
}
|
@@ -24442,7 +24477,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24442
24477
|
}
|
24443
24478
|
return (createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view) ? { view: createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view } : undefined;
|
24444
24479
|
});
|
24445
|
-
const onCreateRemoteStreamView = (userId_1, ...args_2) => __awaiter$
|
24480
|
+
const onCreateRemoteStreamView = (userId_1, ...args_2) => __awaiter$I(void 0, [userId_1, ...args_2], void 0, function* (userId, options = { scalingMode: 'Crop' }) {
|
24446
24481
|
if (!call) {
|
24447
24482
|
return;
|
24448
24483
|
}
|
@@ -24479,7 +24514,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24479
24514
|
}
|
24480
24515
|
return (createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view) ? { view: createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view } : undefined;
|
24481
24516
|
});
|
24482
|
-
const onDisposeRemoteStreamView = (userId) => __awaiter$
|
24517
|
+
const onDisposeRemoteStreamView = (userId) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24483
24518
|
if (!call) {
|
24484
24519
|
return;
|
24485
24520
|
}
|
@@ -24500,7 +24535,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24500
24535
|
callClient.disposeView(call.id, participant.identifier, screenShareStream);
|
24501
24536
|
}
|
24502
24537
|
});
|
24503
|
-
const onDisposeRemoteVideoStreamView = (userId) => __awaiter$
|
24538
|
+
const onDisposeRemoteVideoStreamView = (userId) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24504
24539
|
if (!call) {
|
24505
24540
|
return;
|
24506
24541
|
}
|
@@ -24517,7 +24552,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24517
24552
|
callClient.disposeView(call.id, participant.identifier, remoteVideoStream);
|
24518
24553
|
}
|
24519
24554
|
});
|
24520
|
-
const onDisposeRemoteScreenShareStreamView = (userId) => __awaiter$
|
24555
|
+
const onDisposeRemoteScreenShareStreamView = (userId) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24521
24556
|
if (!call) {
|
24522
24557
|
return;
|
24523
24558
|
}
|
@@ -24534,7 +24569,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24534
24569
|
callClient.disposeView(call.id, participant.identifier, screenShareStream);
|
24535
24570
|
}
|
24536
24571
|
});
|
24537
|
-
const onDisposeLocalScreenShareStreamView = () => __awaiter$
|
24572
|
+
const onDisposeLocalScreenShareStreamView = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24538
24573
|
if (!call) {
|
24539
24574
|
return;
|
24540
24575
|
}
|
@@ -24547,7 +24582,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24547
24582
|
callClient.disposeView(call.id, undefined, screenShareStream);
|
24548
24583
|
}
|
24549
24584
|
});
|
24550
|
-
const onDisposeLocalStreamView = () => __awaiter$
|
24585
|
+
const onDisposeLocalStreamView = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24551
24586
|
// If the user is currently in a call, dispose of the local stream view attached to that call.
|
24552
24587
|
const callState = call && callClient.getState().calls[call.id];
|
24553
24588
|
const localStream = callState === null || callState === void 0 ? void 0 : callState.localVideoStreams.find((item) => item.mediaStreamType === 'Video');
|
@@ -24559,17 +24594,17 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24559
24594
|
// TODO: we need to remember which LocalVideoStream was used for LocalPreview and dispose that one.
|
24560
24595
|
yield disposeAllLocalPreviewViews(callClient);
|
24561
24596
|
});
|
24562
|
-
const onSendDtmfTone = (dtmfTone) => __awaiter$
|
24597
|
+
const onSendDtmfTone = (dtmfTone) => __awaiter$I(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.sendDtmf(dtmfTone)); });
|
24563
24598
|
const notImplemented = () => {
|
24564
24599
|
throw new Error('Not implemented, cannot call a method from an abstract object');
|
24565
24600
|
};
|
24566
24601
|
/* @conditional-compile-remove(call-readiness) */
|
24567
|
-
const askDevicePermission = (constrain) => __awaiter$
|
24602
|
+
const askDevicePermission = (constrain) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24568
24603
|
if (deviceManager) {
|
24569
24604
|
yield (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.askDevicePermission(constrain));
|
24570
24605
|
}
|
24571
24606
|
});
|
24572
|
-
const onRemoveVideoBackgroundEffects = () => __awaiter$
|
24607
|
+
const onRemoveVideoBackgroundEffects = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24573
24608
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
24574
24609
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
24575
24610
|
if (stream) {
|
@@ -24581,7 +24616,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24581
24616
|
}
|
24582
24617
|
}
|
24583
24618
|
});
|
24584
|
-
const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$
|
24619
|
+
const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24585
24620
|
var _d;
|
24586
24621
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
24587
24622
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
@@ -24594,7 +24629,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24594
24629
|
return createEffect && stream.feature(communicationCalling.Features.VideoEffects).startEffects(createEffect(backgroundBlurConfig));
|
24595
24630
|
}
|
24596
24631
|
});
|
24597
|
-
const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$
|
24632
|
+
const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24598
24633
|
var _e;
|
24599
24634
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
24600
24635
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
@@ -24607,38 +24642,65 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24607
24642
|
return (createEffect && stream.feature(communicationCalling.Features.VideoEffects).startEffects(createEffect(backgroundReplacementConfig)));
|
24608
24643
|
}
|
24609
24644
|
});
|
24610
|
-
|
24645
|
+
/* @conditional-compile-remove(DNS) */
|
24646
|
+
const onStartNoiseSuppressionEffect = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24647
|
+
var _f;
|
24648
|
+
const audioEffects = (options === null || options === void 0 ? void 0 : options.onResolveDeepNoiseSuppressionDependency) &&
|
24649
|
+
((_f = (yield options.onResolveDeepNoiseSuppressionDependency())) === null || _f === void 0 ? void 0 : _f.deepNoiseSuppressionEffect);
|
24650
|
+
const stream = call === null || call === void 0 ? void 0 : call.localAudioStreams.find((stream) => stream.mediaStreamType === 'Audio');
|
24651
|
+
if (stream && audioEffects && audioEffects.noiseSuppression) {
|
24652
|
+
const audioEffectsFeature = stream.feature(communicationCalling.Features.AudioEffects);
|
24653
|
+
const isNoiseSuppressionSupported = yield audioEffectsFeature.isSupported(audioEffects.noiseSuppression);
|
24654
|
+
if (isNoiseSuppressionSupported) {
|
24655
|
+
return yield audioEffectsFeature.startEffects(audioEffects);
|
24656
|
+
}
|
24657
|
+
else {
|
24658
|
+
throw new Error('Deep Noise Suppression is not supported on this platform.');
|
24659
|
+
}
|
24660
|
+
}
|
24661
|
+
});
|
24662
|
+
/* @conditional-compile-remove(DNS) */
|
24663
|
+
const onStopNoiseSuppressionEffect = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24664
|
+
const stream = call === null || call === void 0 ? void 0 : call.localAudioStreams.find((stream) => stream.mediaStreamType === 'Audio');
|
24665
|
+
if (stream && (options === null || options === void 0 ? void 0 : options.onResolveDeepNoiseSuppressionDependency)) {
|
24666
|
+
const audioEffects = {
|
24667
|
+
noiseSuppression: true
|
24668
|
+
};
|
24669
|
+
return yield stream.feature(communicationCalling.Features.AudioEffects).stopEffects(audioEffects);
|
24670
|
+
}
|
24671
|
+
});
|
24672
|
+
const onStartCaptions = (options) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24611
24673
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24612
24674
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.startCaptions(options));
|
24613
24675
|
});
|
24614
|
-
const onStopCaptions = () => __awaiter$
|
24676
|
+
const onStopCaptions = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24615
24677
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24616
24678
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.stopCaptions());
|
24617
24679
|
});
|
24618
|
-
const onSetSpokenLanguage = (language) => __awaiter$
|
24680
|
+
const onSetSpokenLanguage = (language) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24619
24681
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24620
24682
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.setSpokenLanguage(language));
|
24621
24683
|
});
|
24622
|
-
const onSetCaptionLanguage = (language) => __awaiter$
|
24684
|
+
const onSetCaptionLanguage = (language) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24623
24685
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24624
24686
|
yield captionsFeature.setCaptionLanguage(language);
|
24625
24687
|
});
|
24626
|
-
const onSubmitSurvey = (survey) => __awaiter$
|
24627
|
-
const onStartSpotlight = (userIds) => __awaiter$
|
24688
|
+
const onSubmitSurvey = (survey) => __awaiter$I(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.CallSurvey).submitSurvey(survey)); });
|
24689
|
+
const onStartSpotlight = (userIds) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24628
24690
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24629
24691
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight(participants));
|
24630
24692
|
});
|
24631
|
-
const onStopSpotlight = (userIds) => __awaiter$
|
24693
|
+
const onStopSpotlight = (userIds) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24632
24694
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24633
24695
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight(participants));
|
24634
24696
|
});
|
24635
|
-
const onStopAllSpotlight = () => __awaiter$
|
24697
|
+
const onStopAllSpotlight = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24636
24698
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopAllSpotlight());
|
24637
24699
|
});
|
24638
24700
|
/* @conditional-compile-remove(soft-mute) */
|
24639
|
-
const onMuteParticipant = (userId) => __awaiter$
|
24701
|
+
const onMuteParticipant = (userId) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24640
24702
|
if (call === null || call === void 0 ? void 0 : call.remoteParticipants) {
|
24641
|
-
call === null || call === void 0 ? void 0 : call.remoteParticipants.forEach((participant) => __awaiter$
|
24703
|
+
call === null || call === void 0 ? void 0 : call.remoteParticipants.forEach((participant) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24642
24704
|
// Using toFlatCommunicationIdentifier to convert the CommunicationIdentifier to string
|
24643
24705
|
// as _toCommunicationIdentifier(userId) comparison to participant.identifier did not work for this case
|
24644
24706
|
if (toFlatCommunicationIdentifier(participant.identifier) === userId) {
|
@@ -24648,27 +24710,27 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24648
24710
|
}
|
24649
24711
|
});
|
24650
24712
|
/* @conditional-compile-remove(soft-mute) */
|
24651
|
-
const onMuteAllRemoteParticipants = () => __awaiter$
|
24713
|
+
const onMuteAllRemoteParticipants = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24652
24714
|
call === null || call === void 0 ? void 0 : call.muteAllRemoteParticipants();
|
24653
24715
|
});
|
24654
24716
|
const canStartSpotlight = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Capabilities).capabilities.spotlightParticipant.isPresent;
|
24655
24717
|
const canRemoveSpotlight = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Capabilities).capabilities.removeParticipantsSpotlight.isPresent;
|
24656
24718
|
const onStartLocalSpotlight = canStartSpotlight
|
24657
|
-
? () => __awaiter$
|
24719
|
+
? () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24658
24720
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight());
|
24659
24721
|
})
|
24660
24722
|
: undefined;
|
24661
|
-
const onStopLocalSpotlight = () => __awaiter$
|
24723
|
+
const onStopLocalSpotlight = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24662
24724
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight());
|
24663
24725
|
});
|
24664
24726
|
const onStartRemoteSpotlight = canStartSpotlight
|
24665
|
-
? (userIds) => __awaiter$
|
24727
|
+
? (userIds) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24666
24728
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24667
24729
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight(participants));
|
24668
24730
|
})
|
24669
24731
|
: undefined;
|
24670
24732
|
const onStopRemoteSpotlight = canRemoveSpotlight
|
24671
|
-
? (userIds) => __awaiter$
|
24733
|
+
? (userIds) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24672
24734
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24673
24735
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight(participants));
|
24674
24736
|
})
|
@@ -24707,6 +24769,10 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24707
24769
|
onRemoveVideoBackgroundEffects,
|
24708
24770
|
onBlurVideoBackground,
|
24709
24771
|
onReplaceVideoBackground,
|
24772
|
+
/* @conditional-compile-remove(DNS) */
|
24773
|
+
onStartNoiseSuppressionEffect,
|
24774
|
+
/* @conditional-compile-remove(DNS) */
|
24775
|
+
onStopNoiseSuppressionEffect,
|
24710
24776
|
onStartCaptions,
|
24711
24777
|
onStopCaptions,
|
24712
24778
|
onSetCaptionLanguage,
|
@@ -24722,13 +24788,17 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24722
24788
|
/* @conditional-compile-remove(soft-mute) */
|
24723
24789
|
onMuteParticipant,
|
24724
24790
|
/* @conditional-compile-remove(soft-mute) */
|
24725
|
-
onMuteAllRemoteParticipants
|
24791
|
+
onMuteAllRemoteParticipants,
|
24792
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
24793
|
+
onAcceptCall: notImplemented,
|
24794
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
24795
|
+
onRejectCall: notImplemented
|
24726
24796
|
};
|
24727
24797
|
});
|
24728
24798
|
|
24729
24799
|
// Copyright (c) Microsoft Corporation.
|
24730
24800
|
// Licensed under the MIT License.
|
24731
|
-
var __awaiter$
|
24801
|
+
var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24732
24802
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24733
24803
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24734
24804
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24762,7 +24832,7 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24762
24832
|
return callAgent === null || callAgent === void 0 ? void 0 : callAgent.startCall(participants, options);
|
24763
24833
|
},
|
24764
24834
|
/* @conditional-compile-remove(PSTN-calls) */
|
24765
|
-
onAddParticipant: (userId, options) => __awaiter$
|
24835
|
+
onAddParticipant: (userId, options) => __awaiter$H(void 0, void 0, void 0, function* () {
|
24766
24836
|
const participant = _toCommunicationIdentifier(userId);
|
24767
24837
|
if (communicationCommon.isPhoneNumberIdentifier(participant)) {
|
24768
24838
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant, options);
|
@@ -24770,12 +24840,12 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24770
24840
|
else if (communicationCommon.isCommunicationUserIdentifier(participant) || communicationCommon.isMicrosoftTeamsUserIdentifier(participant)) {
|
24771
24841
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant);
|
24772
24842
|
}
|
24773
|
-
}), onRemoveParticipant: (userId) => __awaiter$
|
24843
|
+
}), onRemoveParticipant: (userId) => __awaiter$H(void 0, void 0, void 0, function* () {
|
24774
24844
|
const participant = _toCommunicationIdentifier(userId);
|
24775
24845
|
yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
|
24776
24846
|
}),
|
24777
24847
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24778
|
-
onAcceptCall: (incomingCallId, useVideo) => __awaiter$
|
24848
|
+
onAcceptCall: (incomingCallId, useVideo) => __awaiter$H(void 0, void 0, void 0, function* () {
|
24779
24849
|
const localVideoStream = useVideo ? yield createLocalVideoStream(callClient) : undefined;
|
24780
24850
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24781
24851
|
if (incomingCall) {
|
@@ -24783,7 +24853,7 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24783
24853
|
}
|
24784
24854
|
}),
|
24785
24855
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24786
|
-
onRejectCall: (incomingCallId) => __awaiter$
|
24856
|
+
onRejectCall: (incomingCallId) => __awaiter$H(void 0, void 0, void 0, function* () {
|
24787
24857
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24788
24858
|
if (incomingCall) {
|
24789
24859
|
yield incomingCall.reject();
|
@@ -24791,13 +24861,13 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24791
24861
|
}),
|
24792
24862
|
/* @conditional-compile-remove(breakout-rooms) */
|
24793
24863
|
onHangUp: breakoutRoomOriginCall
|
24794
|
-
? () => __awaiter$
|
24864
|
+
? () => __awaiter$H(void 0, void 0, void 0, function* () { return breakoutRoomOriginCall.hangUp().then(() => commonCallingHandlers.onHangUp()); })
|
24795
24865
|
: commonCallingHandlers.onHangUp });
|
24796
24866
|
});
|
24797
24867
|
|
24798
24868
|
// Copyright (c) Microsoft Corporation.
|
24799
24869
|
// Licensed under the MIT License.
|
24800
|
-
var __awaiter$
|
24870
|
+
var __awaiter$G = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24801
24871
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24802
24872
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24803
24873
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24828,7 +24898,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24828
24898
|
return undefined;
|
24829
24899
|
},
|
24830
24900
|
/* @conditional-compile-remove(PSTN-calls) */
|
24831
|
-
onAddParticipant: (userId, options) => __awaiter$
|
24901
|
+
onAddParticipant: (userId, options) => __awaiter$G(void 0, void 0, void 0, function* () {
|
24832
24902
|
const participant = _toCommunicationIdentifier(userId);
|
24833
24903
|
/* @conditional-compile-remove(teams-identity-support) */
|
24834
24904
|
const threadId = options === null || options === void 0 ? void 0 : options.threadId;
|
@@ -24844,7 +24914,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24844
24914
|
}
|
24845
24915
|
/* @conditional-compile-remove(teams-identity-support) */
|
24846
24916
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant);
|
24847
|
-
}), onRemoveParticipant: (userId) => __awaiter$
|
24917
|
+
}), onRemoveParticipant: (userId) => __awaiter$G(void 0, void 0, void 0, function* () {
|
24848
24918
|
const participant = _toCommunicationIdentifier(userId);
|
24849
24919
|
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
24850
24920
|
throw new Error('CommunicationIdentifier in Teams call is not supported!');
|
@@ -24856,7 +24926,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24856
24926
|
yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
|
24857
24927
|
}),
|
24858
24928
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24859
|
-
onAcceptCall: (incomingCallId, useVideo) => __awaiter$
|
24929
|
+
onAcceptCall: (incomingCallId, useVideo) => __awaiter$G(void 0, void 0, void 0, function* () {
|
24860
24930
|
const localVideoStream = useVideo ? yield createLocalVideoStream(callClient) : undefined;
|
24861
24931
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24862
24932
|
if (incomingCall) {
|
@@ -24864,7 +24934,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24864
24934
|
}
|
24865
24935
|
}),
|
24866
24936
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24867
|
-
onRejectCall: (incomingCallId) => __awaiter$
|
24937
|
+
onRejectCall: (incomingCallId) => __awaiter$G(void 0, void 0, void 0, function* () {
|
24868
24938
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24869
24939
|
if (incomingCall) {
|
24870
24940
|
yield incomingCall.reject();
|
@@ -25174,7 +25244,7 @@ const getCaptionsSpeakerIdentifier = (captions) => {
|
|
25174
25244
|
|
25175
25245
|
// Copyright (c) Microsoft Corporation.
|
25176
25246
|
// Licensed under the MIT License.
|
25177
|
-
var __awaiter$
|
25247
|
+
var __awaiter$F = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
25178
25248
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
25179
25249
|
return new (P || (P = Promise))(function (resolve, reject) {
|
25180
25250
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -25251,7 +25321,7 @@ class ProxyDeviceManager {
|
|
25251
25321
|
console.info('Could not Unsubscribe to Permissions API Camera changed events, API is not supported by browser', e);
|
25252
25322
|
}
|
25253
25323
|
};
|
25254
|
-
this.permissionsApiStateChangeHandler = () => __awaiter$
|
25324
|
+
this.permissionsApiStateChangeHandler = () => __awaiter$F(this, void 0, void 0, function* () {
|
25255
25325
|
yield this.updateDevicePermissionState();
|
25256
25326
|
});
|
25257
25327
|
/**
|
@@ -25262,13 +25332,13 @@ class ProxyDeviceManager {
|
|
25262
25332
|
this.selectCamera = (videoDeviceInfo) => {
|
25263
25333
|
this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);
|
25264
25334
|
};
|
25265
|
-
this.videoDevicesUpdated = () => __awaiter$
|
25335
|
+
this.videoDevicesUpdated = () => __awaiter$F(this, void 0, void 0, function* () {
|
25266
25336
|
// Device Manager always has a camera with '' name if there are no real camera devices available.
|
25267
25337
|
// We don't want to show that in the UI.
|
25268
25338
|
const realCameras = (yield this._deviceManager.getCameras()).filter((c) => !!c.name);
|
25269
25339
|
this._context.setDeviceManagerCameras(dedupeById(realCameras));
|
25270
25340
|
});
|
25271
|
-
this.audioDevicesUpdated = () => __awaiter$
|
25341
|
+
this.audioDevicesUpdated = () => __awaiter$F(this, void 0, void 0, function* () {
|
25272
25342
|
this._context.setDeviceManagerMicrophones(dedupeById(yield this._deviceManager.getMicrophones()));
|
25273
25343
|
if (this._deviceManager.isSpeakerSelectionAvailable) {
|
25274
25344
|
this._context.setDeviceManagerSpeakers(dedupeById(yield this._deviceManager.getSpeakers()));
|
@@ -25280,7 +25350,7 @@ class ProxyDeviceManager {
|
|
25280
25350
|
this.selectedSpeakerChanged = () => {
|
25281
25351
|
this._context.setDeviceManagerSelectedSpeaker(this._deviceManager.selectedSpeaker);
|
25282
25352
|
};
|
25283
|
-
this.updateDevicePermissionState = (sdkDeviceAccessState) => __awaiter$
|
25353
|
+
this.updateDevicePermissionState = (sdkDeviceAccessState) => __awaiter$F(this, void 0, void 0, function* () {
|
25284
25354
|
let hasCameraPermission = !!(sdkDeviceAccessState === null || sdkDeviceAccessState === void 0 ? void 0 : sdkDeviceAccessState.video);
|
25285
25355
|
let hasMicPermission = !!(sdkDeviceAccessState === null || sdkDeviceAccessState === void 0 ? void 0 : sdkDeviceAccessState.audio);
|
25286
25356
|
// Supplement the SDK values with values from the Permissions API to get a better understanding of the device
|
@@ -25356,7 +25426,7 @@ class ProxyDeviceManager {
|
|
25356
25426
|
}
|
25357
25427
|
case 'askDevicePermission': {
|
25358
25428
|
return this._context.withAsyncErrorTeedToState((...args) => {
|
25359
|
-
return target.askDevicePermission(...args).then((deviceAccess) => __awaiter$
|
25429
|
+
return target.askDevicePermission(...args).then((deviceAccess) => __awaiter$F(this, void 0, void 0, function* () {
|
25360
25430
|
yield this.updateDevicePermissionState(deviceAccess);
|
25361
25431
|
return deviceAccess;
|
25362
25432
|
}));
|
@@ -25753,7 +25823,7 @@ class CallIdHistory {
|
|
25753
25823
|
|
25754
25824
|
// Copyright (c) Microsoft Corporation.
|
25755
25825
|
// Licensed under the MIT License.
|
25756
|
-
var __awaiter$
|
25826
|
+
var __awaiter$E = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
25757
25827
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
25758
25828
|
return new (P || (P = Promise))(function (resolve, reject) {
|
25759
25829
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -25778,8 +25848,7 @@ const REACTION_ANIMATION_TIME_MS = 4133;
|
|
25778
25848
|
* @private
|
25779
25849
|
*/
|
25780
25850
|
let CallContext$2 = class CallContext {
|
25781
|
-
constructor(userId, maxListeners = 50
|
25782
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId) {
|
25851
|
+
constructor(userId, maxListeners = 50) {
|
25783
25852
|
this._callIdHistory = new CallIdHistory();
|
25784
25853
|
this._timeOutId = {};
|
25785
25854
|
/* @conditional-compile-remove(breakout-rooms) */
|
@@ -25814,7 +25883,6 @@ let CallContext$2 = class CallContext {
|
|
25814
25883
|
callAgent: undefined,
|
25815
25884
|
userId: userId,
|
25816
25885
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo: undefined,
|
25817
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: alternateCallerId,
|
25818
25886
|
latestErrors: {},
|
25819
25887
|
/* @conditional-compile-remove(breakout-rooms) */ latestNotifications: {}
|
25820
25888
|
};
|
@@ -26726,7 +26794,7 @@ let CallContext$2 = class CallContext {
|
|
26726
26794
|
* @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.
|
26727
26795
|
*/
|
26728
26796
|
withAsyncErrorTeedToState(action, target) {
|
26729
|
-
return (...args) => __awaiter$
|
26797
|
+
return (...args) => __awaiter$E(this, void 0, void 0, function* () {
|
26730
26798
|
try {
|
26731
26799
|
return yield action(...args);
|
26732
26800
|
}
|
@@ -27270,7 +27338,7 @@ function _logStreamEvent(eventName, streamLogInfo, error) {
|
|
27270
27338
|
|
27271
27339
|
// Copyright (c) Microsoft Corporation.
|
27272
27340
|
// Licensed under the MIT License.
|
27273
|
-
var __awaiter$
|
27341
|
+
var __awaiter$D = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
27274
27342
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
27275
27343
|
return new (P || (P = Promise))(function (resolve, reject) {
|
27276
27344
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -27280,7 +27348,7 @@ var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
27280
27348
|
});
|
27281
27349
|
};
|
27282
27350
|
function createViewVideo(context, internalContext, callId, stream, participantId, options) {
|
27283
|
-
return __awaiter$
|
27351
|
+
return __awaiter$D(this, void 0, void 0, function* () {
|
27284
27352
|
// we can only have 3 types of createView
|
27285
27353
|
let streamEventType;
|
27286
27354
|
// we will reuse these for local as well but we need to make sure the remote stream is passed in like before.
|
@@ -27409,7 +27477,7 @@ function createViewVideo(context, internalContext, callId, stream, participantId
|
|
27409
27477
|
});
|
27410
27478
|
}
|
27411
27479
|
function createViewUnparentedVideo(context, internalContext, stream, options) {
|
27412
|
-
return __awaiter$
|
27480
|
+
return __awaiter$D(this, void 0, void 0, function* () {
|
27413
27481
|
const renderInfo = internalContext.getUnparentedRenderInfo(stream);
|
27414
27482
|
if (renderInfo && renderInfo.status === 'Rendered') {
|
27415
27483
|
console.warn('Unparented LocalVideoStream is already rendered');
|
@@ -27578,7 +27646,7 @@ function createView(context, internalContext, callId, participantId, stream, opt
|
|
27578
27646
|
// Render LocalVideoStream that is not part of a Call
|
27579
27647
|
// 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
27648
|
// We do not have a startLocalPreviewVideo function, so as a workaround we ensure any errors are propagated here.
|
27581
|
-
return context.withAsyncErrorTeedToState(() => __awaiter$
|
27649
|
+
return context.withAsyncErrorTeedToState(() => __awaiter$D(this, void 0, void 0, function* () { return yield createViewUnparentedVideo(context, internalContext, stream, options); }), 'Call.startVideo')();
|
27582
27650
|
}
|
27583
27651
|
else {
|
27584
27652
|
_logStreamEvent(EventNames.CREATE_STREAM_INVALID_PARAMS, { streamType });
|
@@ -27764,7 +27832,7 @@ class RecordingSubscriber {
|
|
27764
27832
|
|
27765
27833
|
// Copyright (c) Microsoft Corporation.
|
27766
27834
|
// Licensed under the MIT License.
|
27767
|
-
var __awaiter$
|
27835
|
+
var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
27768
27836
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
27769
27837
|
return new (P || (P = Promise))(function (resolve, reject) {
|
27770
27838
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -27788,7 +27856,7 @@ class PPTLiveSubscriber {
|
|
27788
27856
|
this._context.setCallPPTLiveActive(this._callIdRef.callId, this._pptLive.isActive);
|
27789
27857
|
this.checkAndUpdatePPTLiveParticipant();
|
27790
27858
|
};
|
27791
|
-
this.checkAndUpdatePPTLiveParticipant = () => __awaiter$
|
27859
|
+
this.checkAndUpdatePPTLiveParticipant = () => __awaiter$C(this, void 0, void 0, function* () {
|
27792
27860
|
if (!this._pptLive.activePresenterId) {
|
27793
27861
|
return;
|
27794
27862
|
}
|
@@ -28477,7 +28545,7 @@ class IncomingCallSubscriber {
|
|
28477
28545
|
|
28478
28546
|
// Copyright (c) Microsoft Corporation.
|
28479
28547
|
// Licensed under the MIT License.
|
28480
|
-
var __awaiter$
|
28548
|
+
var __awaiter$B = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
28481
28549
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
28482
28550
|
return new (P || (P = Promise))(function (resolve, reject) {
|
28483
28551
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -28497,14 +28565,14 @@ class ProxyIncomingCall {
|
|
28497
28565
|
switch (prop) {
|
28498
28566
|
case 'accept': {
|
28499
28567
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28500
|
-
return __awaiter$
|
28568
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
28501
28569
|
return yield target.accept(...args);
|
28502
28570
|
});
|
28503
28571
|
}, 'IncomingCall.accept');
|
28504
28572
|
}
|
28505
28573
|
case 'reject': {
|
28506
28574
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28507
|
-
return __awaiter$
|
28575
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
28508
28576
|
return yield target.reject(...args);
|
28509
28577
|
});
|
28510
28578
|
}, 'IncomingCall.reject');
|
@@ -28526,7 +28594,7 @@ const incomingCallDeclaratify = (incomingCall, context) => {
|
|
28526
28594
|
|
28527
28595
|
// Copyright (c) Microsoft Corporation.
|
28528
28596
|
// Licensed under the MIT License.
|
28529
|
-
var __awaiter$
|
28597
|
+
var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
28530
28598
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
28531
28599
|
return new (P || (P = Promise))(function (resolve, reject) {
|
28532
28600
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -28546,14 +28614,14 @@ class ProxyTeamsIncomingCall {
|
|
28546
28614
|
switch (prop) {
|
28547
28615
|
case 'accept': {
|
28548
28616
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28549
|
-
return __awaiter$
|
28617
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
28550
28618
|
return yield target.accept(...args);
|
28551
28619
|
});
|
28552
28620
|
}, 'IncomingCall.accept');
|
28553
28621
|
}
|
28554
28622
|
case 'reject': {
|
28555
28623
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28556
|
-
return __awaiter$
|
28624
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
28557
28625
|
return yield target.reject(...args);
|
28558
28626
|
});
|
28559
28627
|
}, 'IncomingCall.reject');
|
@@ -28772,7 +28840,7 @@ const clearCallRelatedState = (context, internalContext) => {
|
|
28772
28840
|
|
28773
28841
|
// Copyright (c) Microsoft Corporation.
|
28774
28842
|
// Licensed under the MIT License.
|
28775
|
-
var __awaiter$
|
28843
|
+
var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
28776
28844
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
28777
28845
|
return new (P || (P = Promise))(function (resolve, reject) {
|
28778
28846
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -28798,56 +28866,56 @@ class ProxyCallCommon {
|
|
28798
28866
|
switch (prop) {
|
28799
28867
|
case 'mute': {
|
28800
28868
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28801
|
-
return __awaiter$
|
28869
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28802
28870
|
return yield target.mute(...args);
|
28803
28871
|
});
|
28804
28872
|
}, 'Call.mute');
|
28805
28873
|
}
|
28806
28874
|
case 'unmute': {
|
28807
28875
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28808
|
-
return __awaiter$
|
28876
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28809
28877
|
return yield target.unmute(...args);
|
28810
28878
|
});
|
28811
28879
|
}, 'Call.unmute');
|
28812
28880
|
}
|
28813
28881
|
case 'startVideo': {
|
28814
28882
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28815
|
-
return __awaiter$
|
28883
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28816
28884
|
return yield target.startVideo(...args);
|
28817
28885
|
});
|
28818
28886
|
}, 'Call.startVideo');
|
28819
28887
|
}
|
28820
28888
|
case 'stopVideo': {
|
28821
28889
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28822
|
-
return __awaiter$
|
28890
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28823
28891
|
return yield target.stopVideo(...args);
|
28824
28892
|
});
|
28825
28893
|
}, 'Call.stopVideo');
|
28826
28894
|
}
|
28827
28895
|
case 'startScreenSharing': {
|
28828
28896
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28829
|
-
return __awaiter$
|
28897
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28830
28898
|
return yield target.startScreenSharing(...args);
|
28831
28899
|
});
|
28832
28900
|
}, 'Call.startScreenSharing');
|
28833
28901
|
}
|
28834
28902
|
case 'stopScreenSharing': {
|
28835
28903
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28836
|
-
return __awaiter$
|
28904
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28837
28905
|
return yield target.stopScreenSharing(...args);
|
28838
28906
|
});
|
28839
28907
|
}, 'Call.stopScreenSharing');
|
28840
28908
|
}
|
28841
28909
|
case 'hold': {
|
28842
28910
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28843
|
-
return __awaiter$
|
28911
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28844
28912
|
return yield target.hold(...args);
|
28845
28913
|
});
|
28846
28914
|
}, 'Call.hold');
|
28847
28915
|
}
|
28848
28916
|
case 'resume': {
|
28849
28917
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28850
|
-
return __awaiter$
|
28918
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28851
28919
|
return yield target.resume(...args);
|
28852
28920
|
});
|
28853
28921
|
}, 'Call.resume');
|
@@ -28915,7 +28983,7 @@ class ProxyTeamsCaptions {
|
|
28915
28983
|
get(target, prop) {
|
28916
28984
|
switch (prop) {
|
28917
28985
|
case 'startCaptions':
|
28918
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
28986
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28919
28987
|
var _a, _b;
|
28920
28988
|
this._context.setStartCaptionsInProgress(this._call.id, true);
|
28921
28989
|
try {
|
@@ -28929,7 +28997,7 @@ class ProxyTeamsCaptions {
|
|
28929
28997
|
}
|
28930
28998
|
}), 'Call.feature');
|
28931
28999
|
case 'stopCaptions':
|
28932
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29000
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28933
29001
|
const ret = yield target.stopCaptions(...args);
|
28934
29002
|
this._context.setIsCaptionActive(this._call.id, false);
|
28935
29003
|
this._context.setStartCaptionsInProgress(this._call.id, false);
|
@@ -28937,13 +29005,13 @@ class ProxyTeamsCaptions {
|
|
28937
29005
|
return ret;
|
28938
29006
|
}), 'Call.feature');
|
28939
29007
|
case 'setSpokenLanguage':
|
28940
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29008
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28941
29009
|
const ret = yield target.setSpokenLanguage(...args);
|
28942
29010
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
28943
29011
|
return ret;
|
28944
29012
|
}), 'Call.feature');
|
28945
29013
|
case 'setCaptionLanguage':
|
28946
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29014
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28947
29015
|
const ret = yield target.setCaptionLanguage(...args);
|
28948
29016
|
this._context.setSelectedCaptionLanguage(this._call.id, args[0]);
|
28949
29017
|
return ret;
|
@@ -28965,7 +29033,7 @@ class ProxyCaptions {
|
|
28965
29033
|
get(target, prop) {
|
28966
29034
|
switch (prop) {
|
28967
29035
|
case 'startCaptions':
|
28968
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29036
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28969
29037
|
var _a, _b;
|
28970
29038
|
this._context.setStartCaptionsInProgress(this._call.id, true);
|
28971
29039
|
try {
|
@@ -28979,7 +29047,7 @@ class ProxyCaptions {
|
|
28979
29047
|
}
|
28980
29048
|
}), 'Call.feature');
|
28981
29049
|
case 'stopCaptions':
|
28982
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29050
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28983
29051
|
const ret = yield target.stopCaptions(...args);
|
28984
29052
|
this._context.setIsCaptionActive(this._call.id, false);
|
28985
29053
|
this._context.setStartCaptionsInProgress(this._call.id, false);
|
@@ -28987,7 +29055,7 @@ class ProxyCaptions {
|
|
28987
29055
|
return ret;
|
28988
29056
|
}), 'Call.feature');
|
28989
29057
|
case 'setSpokenLanguage':
|
28990
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29058
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28991
29059
|
const ret = yield target.setSpokenLanguage(...args);
|
28992
29060
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
28993
29061
|
return ret;
|
@@ -29007,12 +29075,12 @@ class ProxySpotlightCallFeature {
|
|
29007
29075
|
get(target, prop) {
|
29008
29076
|
switch (prop) {
|
29009
29077
|
case 'startSpotlight':
|
29010
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29078
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
29011
29079
|
const ret = yield target.startSpotlight(...args);
|
29012
29080
|
return ret;
|
29013
29081
|
}), 'Call.feature');
|
29014
29082
|
case 'stopSpotlight':
|
29015
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29083
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
29016
29084
|
const ret = yield target.stopSpotlight(...args);
|
29017
29085
|
return ret;
|
29018
29086
|
}), 'Call.feature');
|
@@ -29054,7 +29122,7 @@ class ProxyTransferCallFeature {
|
|
29054
29122
|
|
29055
29123
|
// Copyright (c) Microsoft Corporation.
|
29056
29124
|
// Licensed under the MIT License.
|
29057
|
-
var __awaiter$
|
29125
|
+
var __awaiter$y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29058
29126
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29059
29127
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29060
29128
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29068,7 +29136,7 @@ class ProxyCall extends ProxyCallCommon {
|
|
29068
29136
|
switch (prop) {
|
29069
29137
|
case 'addParticipant': {
|
29070
29138
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
29071
|
-
return __awaiter$
|
29139
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
29072
29140
|
return yield target.addParticipant(...args);
|
29073
29141
|
});
|
29074
29142
|
}, 'Call.addParticipant');
|
@@ -29303,7 +29371,7 @@ class InternalCallContext {
|
|
29303
29371
|
|
29304
29372
|
// Copyright (c) Microsoft Corporation.
|
29305
29373
|
// Licensed under the MIT License.
|
29306
|
-
var __awaiter$
|
29374
|
+
var __awaiter$x = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29307
29375
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29308
29376
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29309
29377
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29319,7 +29387,7 @@ class ProxyTeamsCall extends ProxyCallCommon {
|
|
29319
29387
|
/* @conditional-compile-remove(PSTN-calls) */
|
29320
29388
|
case 'addParticipant': {
|
29321
29389
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
29322
|
-
return __awaiter$
|
29390
|
+
return __awaiter$x(this, void 0, void 0, function* () {
|
29323
29391
|
return yield target.addParticipant(...args);
|
29324
29392
|
});
|
29325
29393
|
}, 'TeamsCall.addParticipant');
|
@@ -29438,7 +29506,7 @@ const teamsCallAgentDeclaratify = (callAgent, context, internalContext) => {
|
|
29438
29506
|
|
29439
29507
|
// Copyright (c) Microsoft Corporation.
|
29440
29508
|
// Licensed under the MIT License.
|
29441
|
-
var __awaiter$
|
29509
|
+
var __awaiter$w = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29442
29510
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29443
29511
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29444
29512
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29460,7 +29528,7 @@ class ProxyVideoStreamRendererView {
|
|
29460
29528
|
get(target, prop) {
|
29461
29529
|
switch (prop) {
|
29462
29530
|
case 'updateScalingMode': {
|
29463
|
-
return (...args) => __awaiter$
|
29531
|
+
return (...args) => __awaiter$w(this, void 0, void 0, function* () {
|
29464
29532
|
yield target.updateScalingMode(...args);
|
29465
29533
|
this._context.setRemoteVideoStreamViewScalingMode(this._callId, this._participantId, this._streamId, args[0]);
|
29466
29534
|
});
|
@@ -29481,7 +29549,7 @@ const videoStreamRendererViewDeclaratify = (view, context, callId, participantId
|
|
29481
29549
|
|
29482
29550
|
// Copyright (c) Microsoft Corporation.
|
29483
29551
|
// Licensed under the MIT License.
|
29484
|
-
var __awaiter$
|
29552
|
+
var __awaiter$v = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29485
29553
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29486
29554
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29487
29555
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29503,7 +29571,7 @@ class ProxyCallClient {
|
|
29503
29571
|
get(target, prop) {
|
29504
29572
|
switch (prop) {
|
29505
29573
|
case 'createCallAgent': {
|
29506
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29574
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$v(this, void 0, void 0, function* () {
|
29507
29575
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
29508
29576
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
29509
29577
|
// callAgent if the createCallAgent succeeds.
|
@@ -29516,7 +29584,7 @@ class ProxyCallClient {
|
|
29516
29584
|
}), 'CallClient.createCallAgent');
|
29517
29585
|
}
|
29518
29586
|
case 'createTeamsCallAgent': {
|
29519
|
-
/* @conditional-compile-remove(teams-identity-support) */ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29587
|
+
/* @conditional-compile-remove(teams-identity-support) */ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$v(this, void 0, void 0, function* () {
|
29520
29588
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
29521
29589
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
29522
29590
|
// callAgent if the createCallAgent succeeds.
|
@@ -29529,7 +29597,7 @@ class ProxyCallClient {
|
|
29529
29597
|
}), 'CallClient.createTeamsCallAgent');
|
29530
29598
|
}
|
29531
29599
|
case 'getDeviceManager': {
|
29532
|
-
return this._context.withAsyncErrorTeedToState(() => __awaiter$
|
29600
|
+
return this._context.withAsyncErrorTeedToState(() => __awaiter$v(this, void 0, void 0, function* () {
|
29533
29601
|
// As of writing, the SDK always returns the same instance of DeviceManager so we keep a reference of
|
29534
29602
|
// DeviceManager and if it does not change we return the cached DeclarativeDeviceManager. If it does not we'll
|
29535
29603
|
// throw an error that indicate we need to fix this issue as our implementation has diverged from the SDK.
|
@@ -29558,7 +29626,7 @@ class ProxyCallClient {
|
|
29558
29626
|
/**
|
29559
29627
|
* add to this object if we want to proxy anything else off the DebugInfo feature object.
|
29560
29628
|
*/
|
29561
|
-
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$
|
29629
|
+
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$v(this, void 0, void 0, function* () {
|
29562
29630
|
const environmentInfo = yield feature.getEnvironmentInfo();
|
29563
29631
|
this._context.setEnvironmentInfo(environmentInfo);
|
29564
29632
|
return environmentInfo;
|
@@ -29596,8 +29664,7 @@ const createStatefulCallClient = (args, options) => {
|
|
29596
29664
|
*/
|
29597
29665
|
const _createStatefulCallClientInner = (args, options, telemetryImplementationHint = 'StatefulComponents') => {
|
29598
29666
|
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());
|
29667
|
+
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
29668
|
};
|
29602
29669
|
/**
|
29603
29670
|
* Package-internal version of createStatefulCallClient that allows dependency injection.
|
@@ -29619,7 +29686,7 @@ const createStatefulCallClientWithDeps = (callClient, context, internalContext)
|
|
29619
29686
|
});
|
29620
29687
|
Object.defineProperty(callClient, 'createView', {
|
29621
29688
|
configurable: false,
|
29622
|
-
value: (callId, participantId, stream, options) => __awaiter$
|
29689
|
+
value: (callId, participantId, stream, options) => __awaiter$v(void 0, void 0, void 0, function* () {
|
29623
29690
|
const participantIdKind = participantId ? communicationCommon.getIdentifierKind(participantId) : undefined;
|
29624
29691
|
const result = yield createView(context, internalContext, callId, participantIdKind, stream, options);
|
29625
29692
|
// 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 +30740,7 @@ const END_CALL_PAGES = [
|
|
30673
30740
|
|
30674
30741
|
// Copyright (c) Microsoft Corporation.
|
30675
30742
|
// Licensed under the MIT License.
|
30676
|
-
var __awaiter$
|
30743
|
+
var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
30677
30744
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30678
30745
|
return new (P || (P = Promise))(function (resolve, reject) {
|
30679
30746
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31040,7 +31107,7 @@ const isDisabled$4 = (option) => {
|
|
31040
31107
|
/**
|
31041
31108
|
* @returns Permissions state for the camera.
|
31042
31109
|
*/
|
31043
|
-
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$
|
31110
|
+
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$u(void 0, void 0, void 0, function* () {
|
31044
31111
|
try {
|
31045
31112
|
return (yield navigator.permissions.query({ name: 'camera' })).state;
|
31046
31113
|
}
|
@@ -31053,7 +31120,7 @@ const queryCameraPermissionFromPermissionsAPI = () => __awaiter$r(void 0, void 0
|
|
31053
31120
|
/**
|
31054
31121
|
* @returns Permissions state for the microphone.
|
31055
31122
|
*/
|
31056
|
-
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$
|
31123
|
+
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$u(void 0, void 0, void 0, function* () {
|
31057
31124
|
try {
|
31058
31125
|
return (yield navigator.permissions.query({ name: 'microphone' })).state;
|
31059
31126
|
}
|
@@ -31070,7 +31137,7 @@ const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$r(void 0, vo
|
|
31070
31137
|
* If permission API is not supported on this browser, permission state is set to unsupported.
|
31071
31138
|
* @private
|
31072
31139
|
*/
|
31073
|
-
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$
|
31140
|
+
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$u(void 0, void 0, void 0, function* () {
|
31074
31141
|
const [cameraResult, microphoneResult] = yield Promise.all([
|
31075
31142
|
queryCameraPermissionFromPermissionsAPI(),
|
31076
31143
|
queryMicrophonePermissionFromPermissionsAPI()
|
@@ -31257,7 +31324,7 @@ function computeComplianceNotification(complianceProps, cachedProps) {
|
|
31257
31324
|
|
31258
31325
|
// Copyright (c) Microsoft Corporation.
|
31259
31326
|
// Licensed under the MIT License.
|
31260
|
-
var __awaiter$
|
31327
|
+
var __awaiter$t = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
31261
31328
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
31262
31329
|
return new (P || (P = Promise))(function (resolve, reject) {
|
31263
31330
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31280,22 +31347,22 @@ _component) => {
|
|
31280
31347
|
};
|
31281
31348
|
const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
31282
31349
|
return {
|
31283
|
-
onCreateLocalStreamView: (options) => __awaiter$
|
31350
|
+
onCreateLocalStreamView: (options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31284
31351
|
return yield adapter.createStreamView(undefined, options);
|
31285
31352
|
}),
|
31286
|
-
onCreateRemoteStreamView: (userId, options) => __awaiter$
|
31353
|
+
onCreateRemoteStreamView: (userId, options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31287
31354
|
return yield adapter.createStreamView(userId, options);
|
31288
31355
|
}),
|
31289
|
-
onHangUp: (forEveryone) => __awaiter$
|
31356
|
+
onHangUp: (forEveryone) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31290
31357
|
yield adapter.leaveCall(forEveryone);
|
31291
31358
|
}),
|
31292
31359
|
/* @conditional-compile-remove(PSTN-calls) */
|
31293
|
-
onToggleHold: () => __awaiter$
|
31360
|
+
onToggleHold: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31294
31361
|
var _a;
|
31295
31362
|
return ((_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold' ? yield adapter.resumeCall() : yield adapter.holdCall();
|
31296
31363
|
}),
|
31297
31364
|
/* @conditional-compile-remove(PSTN-calls) */
|
31298
|
-
onAddParticipant: (participant, options) => __awaiter$
|
31365
|
+
onAddParticipant: (participant, options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31299
31366
|
if ('communicationUserId' in participant) {
|
31300
31367
|
return yield adapter.addParticipant(participant);
|
31301
31368
|
}
|
@@ -31303,10 +31370,10 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
31303
31370
|
return yield adapter.addParticipant(participant, options);
|
31304
31371
|
}
|
31305
31372
|
}),
|
31306
|
-
onSendDtmfTone: (dtmfTone) => __awaiter$
|
31373
|
+
onSendDtmfTone: (dtmfTone) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31307
31374
|
yield adapter.sendDtmfTone(dtmfTone);
|
31308
31375
|
}),
|
31309
|
-
onRemoveParticipant: (userId) => __awaiter$
|
31376
|
+
onRemoveParticipant: (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31310
31377
|
if (typeof userId === 'string') {
|
31311
31378
|
yield adapter.removeParticipant(userId);
|
31312
31379
|
}
|
@@ -31315,136 +31382,144 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
31315
31382
|
yield adapter.removeParticipant(_toCommunicationIdentifier(userId));
|
31316
31383
|
}
|
31317
31384
|
}),
|
31318
|
-
onRaiseHand: () => __awaiter$
|
31385
|
+
onRaiseHand: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31319
31386
|
yield adapter.raiseHand();
|
31320
31387
|
}),
|
31321
|
-
onLowerHand: () => __awaiter$
|
31388
|
+
onLowerHand: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31322
31389
|
yield adapter.lowerHand();
|
31323
31390
|
}),
|
31324
|
-
onToggleRaiseHand: () => __awaiter$
|
31391
|
+
onToggleRaiseHand: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31325
31392
|
var _b;
|
31326
31393
|
((_b = adapter.getState().call) === null || _b === void 0 ? void 0 : _b.raiseHand.localParticipantRaisedHand)
|
31327
31394
|
? yield adapter.lowerHand()
|
31328
31395
|
: yield adapter.raiseHand();
|
31329
31396
|
}),
|
31330
|
-
onReactionClick: (reaction) => __awaiter$
|
31397
|
+
onReactionClick: (reaction) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31331
31398
|
yield adapter.onReactionClick(reaction);
|
31332
31399
|
}),
|
31333
|
-
onSelectCamera: (deviceInfo, options) => __awaiter$
|
31400
|
+
onSelectCamera: (deviceInfo, options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31334
31401
|
yield adapter.setCamera(deviceInfo, options);
|
31335
31402
|
}),
|
31336
|
-
onSelectMicrophone: (deviceInfo) => __awaiter$
|
31403
|
+
onSelectMicrophone: (deviceInfo) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31337
31404
|
yield adapter.setMicrophone(deviceInfo);
|
31338
31405
|
}),
|
31339
|
-
onSelectSpeaker: (deviceInfo) => __awaiter$
|
31406
|
+
onSelectSpeaker: (deviceInfo) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31340
31407
|
yield adapter.setSpeaker(deviceInfo);
|
31341
31408
|
}),
|
31342
31409
|
onStartCall: (participants, options) => {
|
31343
31410
|
const rawIds = participants.map((participant) => toFlatCommunicationIdentifier(participant));
|
31344
31411
|
return adapter.startCall(rawIds, options);
|
31345
31412
|
},
|
31346
|
-
onStartScreenShare: () => __awaiter$
|
31413
|
+
onStartScreenShare: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31347
31414
|
yield adapter.startScreenShare();
|
31348
31415
|
}),
|
31349
|
-
onStopScreenShare: () => __awaiter$
|
31416
|
+
onStopScreenShare: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31350
31417
|
yield adapter.stopScreenShare();
|
31351
31418
|
}),
|
31352
|
-
onToggleCamera: (options) => __awaiter$
|
31419
|
+
onToggleCamera: (options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31353
31420
|
isCameraOn(adapter.getState()) ? yield adapter.stopCamera() : yield adapter.startCamera(options);
|
31354
31421
|
}),
|
31355
|
-
onToggleMicrophone: () => __awaiter$
|
31422
|
+
onToggleMicrophone: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31356
31423
|
var _c;
|
31357
31424
|
return ((_c = adapter.getState().call) === null || _c === void 0 ? void 0 : _c.isMuted) ? yield adapter.unmute() : yield adapter.mute();
|
31358
31425
|
}),
|
31359
|
-
onToggleScreenShare: () => __awaiter$
|
31426
|
+
onToggleScreenShare: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31360
31427
|
var _d;
|
31361
31428
|
return ((_d = adapter.getState().call) === null || _d === void 0 ? void 0 : _d.isScreenSharingOn)
|
31362
31429
|
? yield adapter.stopScreenShare()
|
31363
31430
|
: yield adapter.startScreenShare();
|
31364
31431
|
}),
|
31365
|
-
onStartLocalVideo: () => __awaiter$
|
31432
|
+
onStartLocalVideo: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31366
31433
|
if (adapter.getState().call) {
|
31367
31434
|
return adapter.startCamera();
|
31368
31435
|
}
|
31369
31436
|
}),
|
31370
|
-
onDisposeLocalStreamView: () => __awaiter$
|
31437
|
+
onDisposeLocalStreamView: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31371
31438
|
return adapter.disposeLocalVideoStreamView();
|
31372
31439
|
}),
|
31373
|
-
onDisposeRemoteStreamView: (userId) => __awaiter$
|
31440
|
+
onDisposeRemoteStreamView: (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31374
31441
|
return adapter.disposeStreamView(userId);
|
31375
31442
|
}),
|
31376
|
-
onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$
|
31443
|
+
onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31377
31444
|
return adapter.disposeScreenShareStreamView(userId);
|
31378
31445
|
}),
|
31379
|
-
onDisposeLocalScreenShareStreamView: () => __awaiter$
|
31446
|
+
onDisposeLocalScreenShareStreamView: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31380
31447
|
return adapter.disposeScreenShareStreamView('');
|
31381
31448
|
}),
|
31382
|
-
onDisposeRemoteVideoStreamView: (userId) => __awaiter$
|
31449
|
+
onDisposeRemoteVideoStreamView: (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31383
31450
|
return adapter.disposeRemoteVideoStreamView(userId);
|
31384
31451
|
}),
|
31385
31452
|
/* @conditional-compile-remove(call-readiness) */
|
31386
|
-
askDevicePermission: (constrain) => __awaiter$
|
31453
|
+
askDevicePermission: (constrain) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31387
31454
|
return adapter.askDevicePermission(constrain);
|
31388
31455
|
}),
|
31389
|
-
onRemoveVideoBackgroundEffects: () => __awaiter$
|
31456
|
+
onRemoveVideoBackgroundEffects: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31390
31457
|
return yield adapter.stopVideoBackgroundEffects();
|
31391
31458
|
}),
|
31392
|
-
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$
|
31459
|
+
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31393
31460
|
const blurConfig = Object.assign({ effectName: 'blur' }, backgroundBlurConfig);
|
31394
31461
|
return yield adapter.startVideoBackgroundEffect(blurConfig);
|
31395
31462
|
}),
|
31396
|
-
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$
|
31463
|
+
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31397
31464
|
const replacementConfig = Object.assign({ effectName: 'replacement' }, backgroundReplacementConfig);
|
31398
31465
|
return yield adapter.startVideoBackgroundEffect(replacementConfig);
|
31399
31466
|
}),
|
31400
|
-
|
31467
|
+
/* @conditional-compile-remove(DNS) */
|
31468
|
+
onStartNoiseSuppressionEffect: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31469
|
+
return yield adapter.startNoiseSuppressionEffect();
|
31470
|
+
}),
|
31471
|
+
/* @conditional-compile-remove(DNS) */
|
31472
|
+
onStopNoiseSuppressionEffect: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31473
|
+
return yield adapter.stopNoiseSuppressionEffect();
|
31474
|
+
}),
|
31475
|
+
onStartCaptions: (options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31401
31476
|
yield adapter.startCaptions(options);
|
31402
31477
|
}),
|
31403
|
-
onStopCaptions: () => __awaiter$
|
31478
|
+
onStopCaptions: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31404
31479
|
yield adapter.stopCaptions();
|
31405
31480
|
}),
|
31406
|
-
onSetSpokenLanguage: (language) => __awaiter$
|
31481
|
+
onSetSpokenLanguage: (language) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31407
31482
|
yield adapter.setSpokenLanguage(language);
|
31408
31483
|
}),
|
31409
|
-
onSetCaptionLanguage: (language) => __awaiter$
|
31484
|
+
onSetCaptionLanguage: (language) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31410
31485
|
yield adapter.setCaptionLanguage(language);
|
31411
31486
|
}),
|
31412
|
-
onSubmitSurvey: (survey) => __awaiter$
|
31487
|
+
onSubmitSurvey: (survey) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31413
31488
|
return yield adapter.submitSurvey(survey);
|
31414
31489
|
}),
|
31415
|
-
onStartSpotlight: (userIds) => __awaiter$
|
31490
|
+
onStartSpotlight: (userIds) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31416
31491
|
yield adapter.startSpotlight(userIds);
|
31417
31492
|
}),
|
31418
|
-
onStopSpotlight: (userIds) => __awaiter$
|
31493
|
+
onStopSpotlight: (userIds) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31419
31494
|
yield adapter.stopSpotlight(userIds);
|
31420
31495
|
}),
|
31421
|
-
onStopAllSpotlight: () => __awaiter$
|
31496
|
+
onStopAllSpotlight: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31422
31497
|
yield adapter.stopAllSpotlight();
|
31423
31498
|
}),
|
31424
31499
|
onStartLocalSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.spotlightParticipant.isPresent)
|
31425
|
-
? () => __awaiter$
|
31500
|
+
? () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31426
31501
|
yield adapter.startSpotlight();
|
31427
31502
|
})
|
31428
31503
|
: undefined,
|
31429
|
-
onStopLocalSpotlight: () => __awaiter$
|
31504
|
+
onStopLocalSpotlight: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31430
31505
|
yield adapter.stopSpotlight();
|
31431
31506
|
}),
|
31432
31507
|
onStartRemoteSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.spotlightParticipant.isPresent)
|
31433
|
-
? (userIds) => __awaiter$
|
31508
|
+
? (userIds) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31434
31509
|
yield adapter.startSpotlight(userIds);
|
31435
31510
|
})
|
31436
31511
|
: undefined,
|
31437
31512
|
onStopRemoteSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.removeParticipantsSpotlight.isPresent)
|
31438
|
-
? (userIds) => __awaiter$
|
31513
|
+
? (userIds) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31439
31514
|
yield adapter.stopSpotlight(userIds);
|
31440
31515
|
})
|
31441
31516
|
: undefined,
|
31442
31517
|
/* @conditional-compile-remove(soft-mute) */
|
31443
|
-
onMuteParticipant: (userId) => __awaiter$
|
31518
|
+
onMuteParticipant: (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31444
31519
|
yield adapter.muteParticipant(userId);
|
31445
31520
|
}),
|
31446
31521
|
/* @conditional-compile-remove(soft-mute) */
|
31447
|
-
onMuteAllRemoteParticipants: () => __awaiter$
|
31522
|
+
onMuteAllRemoteParticipants: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31448
31523
|
yield adapter.muteAllRemoteParticipants();
|
31449
31524
|
})
|
31450
31525
|
};
|
@@ -31582,7 +31657,7 @@ const MoreButton = (props) => {
|
|
31582
31657
|
|
31583
31658
|
// Copyright (c) Microsoft Corporation.
|
31584
31659
|
// Licensed under the MIT License.
|
31585
|
-
var __awaiter$
|
31660
|
+
var __awaiter$s = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
31586
31661
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
31587
31662
|
return new (P || (P = Promise))(function (resolve, reject) {
|
31588
31663
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31604,7 +31679,7 @@ const CaptionsBannerMoreButton = (props) => {
|
|
31604
31679
|
tooltipOffContent: localeStrings.strings.call.captionsBannerMoreButtonTooltip
|
31605
31680
|
}), [localeStrings]);
|
31606
31681
|
const moreButtonContextualMenuItems = [];
|
31607
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
31682
|
+
const startCaptions = React.useCallback(() => __awaiter$s(void 0, void 0, void 0, function* () {
|
31608
31683
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
31609
31684
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
31610
31685
|
});
|
@@ -31813,7 +31888,7 @@ const buttonTextStyles = { label: { fontSize: '0.875rem' } };
|
|
31813
31888
|
|
31814
31889
|
// Copyright (c) Microsoft Corporation.
|
31815
31890
|
// Licensed under the MIT License.
|
31816
|
-
var __awaiter$
|
31891
|
+
var __awaiter$r = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
31817
31892
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
31818
31893
|
return new (P || (P = Promise))(function (resolve, reject) {
|
31819
31894
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31865,7 +31940,7 @@ const EndCall = (props) => {
|
|
31865
31940
|
toggleConfirm();
|
31866
31941
|
}, [onHangUp, toggleConfirm]);
|
31867
31942
|
/* @conditional-compile-remove(end-call-options) */
|
31868
|
-
const hangUpOverride = React.useCallback((forEveryone) => __awaiter$
|
31943
|
+
const hangUpOverride = React.useCallback((forEveryone) => __awaiter$r(void 0, void 0, void 0, function* () {
|
31869
31944
|
if (props.mobileView ||
|
31870
31945
|
forEveryone === false /* value being false(not undefined) because it comes from endCall option */) {
|
31871
31946
|
onHangUp();
|
@@ -32093,7 +32168,11 @@ const Microphone = (props) => {
|
|
32093
32168
|
}
|
32094
32169
|
const styles = React.useMemo(() => { var _a; return concatButtonBaseStyles((_a = props.styles) !== null && _a !== void 0 ? _a : {}); }, [props.styles]);
|
32095
32170
|
// tab focus on MicrophoneButton on page load
|
32096
|
-
return (React.createElement(MicrophoneButton, Object.assign({ "data-ui-id": "call-composite-microphone-button" }, microphoneButtonProps, {
|
32171
|
+
return (React.createElement(MicrophoneButton, Object.assign({ "data-ui-id": "call-composite-microphone-button" }, microphoneButtonProps, {
|
32172
|
+
/* @conditional-compile-remove(DNS) */
|
32173
|
+
isDeepNoiseSuppressionOn: props.isDeepNoiseSuppressionOn,
|
32174
|
+
/* @conditional-compile-remove(DNS) */
|
32175
|
+
onClickNoiseSuppression: props.onClickNoiseSuppression, showLabel: props.displayType !== 'compact', disableTooltip: props.disableTooltip, styles: styles, enableDeviceSelectionMenu: props.splitButtonsForDeviceSelection, disabled: microphoneButtonProps.disabled || props.disabled || (isRoomsCall && ((_c = adapter.getState().call) === null || _c === void 0 ? void 0 : _c.role) === 'Unknown'), onRenderOffIcon: unmuteMicCapability && !unmuteMicCapability.isPresent
|
32097
32176
|
? () => React.createElement(_HighContrastAwareIcon, { disabled: true, iconName: 'ControlButtonMicProhibited' })
|
32098
32177
|
: undefined })));
|
32099
32178
|
};
|
@@ -32408,6 +32487,15 @@ const callStatusSelector = reselect.createSelector([getCallStatus, getIsScreenSh
|
|
32408
32487
|
|
32409
32488
|
// Copyright (c) Microsoft Corporation.
|
32410
32489
|
// Licensed under the MIT License.
|
32490
|
+
var __awaiter$q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
32491
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
32492
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
32493
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32494
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
32495
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
32496
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
32497
|
+
});
|
32498
|
+
};
|
32411
32499
|
// Enforce a background color on control bar to ensure it matches the composite background color.
|
32412
32500
|
const controlBarStyles = react.memoizeFunction((background) => ({ root: { background: background } }));
|
32413
32501
|
const inferCallControlOptions = (mobileView, callControlOptions) => {
|
@@ -32429,6 +32517,19 @@ const CallControls = (props) => {
|
|
32429
32517
|
const options = React.useMemo(() => inferCallControlOptions(!!props.isMobile, props.options), [props.isMobile, props.options]);
|
32430
32518
|
const adapter = useAdapter();
|
32431
32519
|
const localeStrings = useLocale();
|
32520
|
+
/* @conditional-compile-remove(DNS) */
|
32521
|
+
const [isDeepNoiseSuppressionOn, setDeepNoiseSuppressionOn] = React.useState(false);
|
32522
|
+
/* @conditional-compile-remove(DNS) */
|
32523
|
+
const onClickNoiseSuppression = React.useCallback(() => __awaiter$q(void 0, void 0, void 0, function* () {
|
32524
|
+
if (isDeepNoiseSuppressionOn) {
|
32525
|
+
yield adapter.stopNoiseSuppressionEffect();
|
32526
|
+
setDeepNoiseSuppressionOn(false);
|
32527
|
+
}
|
32528
|
+
else {
|
32529
|
+
yield adapter.startNoiseSuppressionEffect();
|
32530
|
+
setDeepNoiseSuppressionOn(true);
|
32531
|
+
}
|
32532
|
+
}), [adapter, isDeepNoiseSuppressionOn]);
|
32432
32533
|
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
32433
32534
|
const peopleButtonStrings = React.useMemo(() => ({
|
32434
32535
|
label: localeStrings.strings.call.peopleButtonLabel,
|
@@ -32606,7 +32707,11 @@ const CallControls = (props) => {
|
|
32606
32707
|
return (React.createElement(react.Stack, { horizontalAlign: "center", className: callControlsContainerStyles },
|
32607
32708
|
React.createElement(react.Stack.Item, null,
|
32608
32709
|
React.createElement(ControlBar, { layout: props.displayVertical ? 'vertical' : 'horizontal', styles: controlBarStyles(theme.semanticColors.bodyBackground) },
|
32609
|
-
microphoneButtonIsEnabled && (React.createElement(Microphone, { displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$4(options === null || options === void 0 ? void 0 : options.microphoneButton)
|
32710
|
+
microphoneButtonIsEnabled && (React.createElement(Microphone, { displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$4(options === null || options === void 0 ? void 0 : options.microphoneButton),
|
32711
|
+
/* @conditional-compile-remove(DNS) */
|
32712
|
+
onClickNoiseSuppression: onClickNoiseSuppression,
|
32713
|
+
/* @conditional-compile-remove(DNS) */
|
32714
|
+
isDeepNoiseSuppressionOn: isDeepNoiseSuppressionOn })),
|
32610
32715
|
cameraButtonIsEnabled && (React.createElement(Camera, { displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$4(options === null || options === void 0 ? void 0 : options.cameraButton) })),
|
32611
32716
|
showReactionButtonInControlBar && reactionResources && (React.createElement(Reaction, { displayType: options === null || options === void 0 ? void 0 : options.displayType, reactionResource: reactionResources })),
|
32612
32717
|
showRaiseHandButtonInControlBar && !hideRaiseHandButtonInRoomsCall && (React.createElement(RaiseHand, { displayType: options === null || options === void 0 ? void 0 : options.displayType })),
|
@@ -32826,7 +32931,7 @@ const showDtmfDialer = (callees, remoteParticipants) => {
|
|
32826
32931
|
|
32827
32932
|
// Copyright (c) Microsoft Corporation.
|
32828
32933
|
// Licensed under the MIT License.
|
32829
|
-
var __awaiter$
|
32934
|
+
var __awaiter$p = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
32830
32935
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
32831
32936
|
return new (P || (P = Promise))(function (resolve, reject) {
|
32832
32937
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -32846,7 +32951,7 @@ const DesktopMoreButton = (props) => {
|
|
32846
32951
|
const holdButtonProps = usePropsFor$1(HoldButton);
|
32847
32952
|
const startCaptionsButtonProps = useAdaptedSelector(_startCaptionsButtonSelector);
|
32848
32953
|
const startCaptionsButtonHandlers = useHandlers();
|
32849
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
32954
|
+
const startCaptions = React.useCallback(() => __awaiter$p(void 0, void 0, void 0, function* () {
|
32850
32955
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
32851
32956
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
32852
32957
|
});
|
@@ -33333,7 +33438,7 @@ const modalLayerHostStyle = {
|
|
33333
33438
|
|
33334
33439
|
// Copyright (c) Microsoft Corporation.
|
33335
33440
|
// Licensed under the MIT License.
|
33336
|
-
var __awaiter$
|
33441
|
+
var __awaiter$o = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
33337
33442
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
33338
33443
|
return new (P || (P = Promise))(function (resolve, reject) {
|
33339
33444
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -33378,7 +33483,7 @@ const useMinMaxDragPosition = (modalLayerHostId, rtl) => {
|
|
33378
33483
|
/**
|
33379
33484
|
* @private
|
33380
33485
|
*/
|
33381
|
-
const busyWait = (checkCondition, retryLimit) => __awaiter$
|
33486
|
+
const busyWait = (checkCondition, retryLimit) => __awaiter$o(void 0, void 0, void 0, function* () {
|
33382
33487
|
const delayMs = 500;
|
33383
33488
|
let retryCount = 0;
|
33384
33489
|
while (!checkCondition()) {
|
@@ -33467,7 +33572,7 @@ const timerTextStyle = {
|
|
33467
33572
|
|
33468
33573
|
// Copyright (c) Microsoft Corporation.
|
33469
33574
|
// Licensed under the MIT License.
|
33470
|
-
var __awaiter$
|
33575
|
+
var __awaiter$n = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
33471
33576
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
33472
33577
|
return new (P || (P = Promise))(function (resolve, reject) {
|
33473
33578
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -33570,6 +33675,19 @@ const CommonCallControlBar = (props) => {
|
|
33570
33675
|
label: callStrings.exitSpotlightButtonLabel,
|
33571
33676
|
tooltipContent: callStrings.exitSpotlightButtonTooltip
|
33572
33677
|
}), [callStrings]);
|
33678
|
+
/* @conditional-compile-remove(DNS) */
|
33679
|
+
const [isDeepNoiseSuppressionOn, setDeepNoiseSuppressionOn] = React.useState(false);
|
33680
|
+
/* @conditional-compile-remove(DNS) */
|
33681
|
+
const onClickNoiseSuppression = React.useCallback(() => __awaiter$n(void 0, void 0, void 0, function* () {
|
33682
|
+
if (isDeepNoiseSuppressionOn) {
|
33683
|
+
yield props.callAdapter.stopNoiseSuppressionEffect();
|
33684
|
+
setDeepNoiseSuppressionOn(false);
|
33685
|
+
}
|
33686
|
+
else {
|
33687
|
+
yield props.callAdapter.startNoiseSuppressionEffect();
|
33688
|
+
setDeepNoiseSuppressionOn(true);
|
33689
|
+
}
|
33690
|
+
}), [props.callAdapter, isDeepNoiseSuppressionOn]);
|
33573
33691
|
const centerContainerStyles = React.useMemo(() => {
|
33574
33692
|
const styles = !props.mobileView ? desktopControlBarStyles : {};
|
33575
33693
|
return react.mergeStyleSets(styles, {
|
@@ -33642,12 +33760,16 @@ const CommonCallControlBar = (props) => {
|
|
33642
33760
|
!props.mobileView &&
|
33643
33761
|
assignedBreakoutRoom &&
|
33644
33762
|
assignedBreakoutRoom.state === 'open' &&
|
33645
|
-
!movingToBreakoutRoomAutomatically && (React.createElement(react.PrimaryButton, { text: callStrings.joinBreakoutRoomButtonLabel, onClick: () => __awaiter$
|
33763
|
+
!movingToBreakoutRoomAutomatically && (React.createElement(react.PrimaryButton, { text: callStrings.joinBreakoutRoomButtonLabel, onClick: () => __awaiter$n(void 0, void 0, void 0, function* () {
|
33646
33764
|
assignedBreakoutRoom.join();
|
33647
33765
|
}), styles: commonButtonStyles })),
|
33648
33766
|
microphoneButtonIsEnabled && (React.createElement(Microphone, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
|
33649
33767
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
33650
|
-
disabled: props.disableButtonsForHoldScreen || isDisabled$4(options.microphoneButton), disableTooltip: props.mobileView
|
33768
|
+
disabled: props.disableButtonsForHoldScreen || isDisabled$4(options.microphoneButton), disableTooltip: props.mobileView,
|
33769
|
+
/* @conditional-compile-remove(DNS) */
|
33770
|
+
onClickNoiseSuppression: onClickNoiseSuppression,
|
33771
|
+
/* @conditional-compile-remove(DNS) */
|
33772
|
+
isDeepNoiseSuppressionOn: isDeepNoiseSuppressionOn })),
|
33651
33773
|
cameraButtonIsEnabled && (React.createElement(Camera, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
|
33652
33774
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
33653
33775
|
disabled: props.disableButtonsForHoldScreen || isDisabled$4(options.cameraButton), onClickVideoEffects: props.onClickVideoEffects, componentRef: props.cameraButtonRef, disableTooltip: props.mobileView })),
|
@@ -33931,7 +34053,7 @@ const SpokenLanguageSettingsDrawer = (props) => {
|
|
33931
34053
|
|
33932
34054
|
// Copyright (c) Microsoft Corporation.
|
33933
34055
|
// Licensed under the MIT License.
|
33934
|
-
var __awaiter$
|
34056
|
+
var __awaiter$m = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
33935
34057
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
33936
34058
|
return new (P || (P = Promise))(function (resolve, reject) {
|
33937
34059
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -33977,7 +34099,7 @@ const MoreDrawer = (props) => {
|
|
33977
34099
|
if (props.reactionResources !== undefined) {
|
33978
34100
|
drawerMenuItems.push({
|
33979
34101
|
itemKey: 'reactions',
|
33980
|
-
onRendererContent: () => (React.createElement(_ReactionDrawerMenuItem, { onReactionClick: (reaction) => __awaiter$
|
34102
|
+
onRendererContent: () => (React.createElement(_ReactionDrawerMenuItem, { onReactionClick: (reaction) => __awaiter$m(void 0, void 0, void 0, function* () {
|
33981
34103
|
var _h;
|
33982
34104
|
(_h = props.onReactionClick) === null || _h === void 0 ? void 0 : _h.call(props, reaction);
|
33983
34105
|
onLightDismiss();
|
@@ -34198,7 +34320,7 @@ const MoreDrawer = (props) => {
|
|
34198
34320
|
const [isCaptionLanguageDrawerOpen, setIsCaptionLanguageDrawerOpen] = React.useState(false);
|
34199
34321
|
const [currentSpokenLanguage, setCurrentSpokenLanguage] = React.useState((_f = captionSettingsProp.currentSpokenLanguage) !== null && _f !== void 0 ? _f : 'en-us');
|
34200
34322
|
const [currentCaptionLanguage, setCurrentCaptionLanguage] = React.useState((_g = captionSettingsProp.currentCaptionLanguage) !== null && _g !== void 0 ? _g : _spokenLanguageToCaptionLanguage[currentSpokenLanguage]);
|
34201
|
-
const onToggleChange = React.useCallback(() => __awaiter$
|
34323
|
+
const onToggleChange = React.useCallback(() => __awaiter$m(void 0, void 0, void 0, function* () {
|
34202
34324
|
if (!captionSettingsProp.isCaptionsFeatureActive) {
|
34203
34325
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
34204
34326
|
spokenLanguage: currentSpokenLanguage
|
@@ -34890,6 +35012,7 @@ const iconClass = react.mergeStyles({
|
|
34890
35012
|
// Licensed under the MIT License.
|
34891
35013
|
/** @private */
|
34892
35014
|
const AddPeopleDropdown = (props) => {
|
35015
|
+
var _a, _b;
|
34893
35016
|
const theme = react.useTheme();
|
34894
35017
|
const { inviteLink, strings, mobileView, onAddParticipant, alternateCallerId, onCopyInviteLink, inviteLinkCopiedRecently } = props;
|
34895
35018
|
const [showDialpad, setShowDialpad] = React.useState(false);
|
@@ -34960,7 +35083,7 @@ const AddPeopleDropdown = (props) => {
|
|
34960
35083
|
React.createElement(Announcer$1, { ariaLive: 'assertive', announcementString: announcerStrings }),
|
34961
35084
|
defaultMenuProps.items.length > 0 && (React.createElement(react.Stack.Item, { styles: copyLinkButtonContainerStyles },
|
34962
35085
|
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 })))),
|
35086
|
+
inviteLinkCopiedRecently && (React.createElement(CalloutWithIcon, { targetId: calloutButtonId, text: (_a = strings.copyInviteLinkButtonActionedLabel) !== null && _a !== void 0 ? _a : '', doNotLayer: true })))),
|
34964
35087
|
addPeopleDrawerMenuItems.length > 0 && (React.createElement(react.Stack, { styles: drawerContainerStyles(), "data-ui-id": "call-add-people-dropdown" },
|
34965
35088
|
React.createElement(_DrawerMenu, { disableMaxHeight: true, onLightDismiss: () => setAddPeopleDrawerMenuItems([]), items: addPeopleDrawerMenuItems }))),
|
34966
35089
|
alternateCallerId && (React.createElement(CallingDialpad, { isMobile: true, strings: strings, showDialpad: showDialpad, onDismissDialpad: onDismissDialpad, onAddParticipant: onAddParticipant, alternateCallerId: alternateCallerId }))));
|
@@ -34970,7 +35093,7 @@ const AddPeopleDropdown = (props) => {
|
|
34970
35093
|
alternateCallerId && (React.createElement(CallingDialpad, { isMobile: false, strings: strings, showDialpad: showDialpad, onDismissDialpad: onDismissDialpad, onAddParticipant: onAddParticipant, alternateCallerId: alternateCallerId })),
|
34971
35094
|
defaultMenuProps.items.length > 0 && (React.createElement(react.Stack, { styles: copyLinkButtonStackStyles },
|
34972
35095
|
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 })))))));
|
35096
|
+
inviteLinkCopiedRecently && (React.createElement(CalloutWithIcon, { targetId: calloutButtonId, text: (_b = strings.copyInviteLinkButtonActionedLabel) !== null && _b !== void 0 ? _b : '' })))))));
|
34974
35097
|
};
|
34975
35098
|
function PeoplePaneOpenDialpadIconNameTrampoline() {
|
34976
35099
|
/* @conditional-compile-remove(PSTN-calls) */
|
@@ -35016,7 +35139,7 @@ const AddPeopleButton = (props) => {
|
|
35016
35139
|
reactHooks.useId('callout-button');
|
35017
35140
|
/* @conditional-compile-remove(PSTN-calls) */
|
35018
35141
|
if (mobileView) {
|
35019
|
-
return (React.createElement(AddPeopleDropdown, { strings: strings, mobileView: mobileView, inviteLink: inviteLink, onAddParticipant: props.onAddParticipant, alternateCallerId: props.alternateCallerId, onCopyInviteLink: onCopyInviteLink, inviteLinkCopiedRecently: inviteLinkCopiedRecently }));
|
35142
|
+
return (React.createElement(AddPeopleDropdown, { strings: Object.assign({}, strings), mobileView: mobileView, inviteLink: inviteLink, onAddParticipant: props.onAddParticipant, alternateCallerId: props.alternateCallerId, onCopyInviteLink: onCopyInviteLink, inviteLinkCopiedRecently: inviteLinkCopiedRecently }));
|
35020
35143
|
}
|
35021
35144
|
else {
|
35022
35145
|
return (React.createElement(react.Stack, { tokens: peoplePaneContainerTokens, "data-ui-id": "people-pane-content", verticalFill: true },
|
@@ -35027,7 +35150,7 @@ const AddPeopleButton = (props) => {
|
|
35027
35150
|
|
35028
35151
|
// Copyright (c) Microsoft Corporation.
|
35029
35152
|
// Licensed under the MIT License.
|
35030
|
-
var __awaiter$
|
35153
|
+
var __awaiter$l = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
35031
35154
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
35032
35155
|
return new (P || (P = Promise))(function (resolve, reject) {
|
35033
35156
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -35049,11 +35172,11 @@ const PeoplePaneContent = (props) => {
|
|
35049
35172
|
return localeStrings.strings.call;
|
35050
35173
|
};
|
35051
35174
|
const strings = getStrings();
|
35052
|
-
const removeParticipantFromCall = React.useCallback((participantId) => __awaiter$
|
35175
|
+
const removeParticipantFromCall = React.useCallback((participantId) => __awaiter$l(void 0, void 0, void 0, function* () {
|
35053
35176
|
yield adapter.removeParticipant(participantId);
|
35054
35177
|
}), [adapter]);
|
35055
35178
|
/* @conditional-compile-remove(PSTN-calls) */
|
35056
|
-
const addParticipantToCall = React.useCallback((participant, options) => __awaiter$
|
35179
|
+
const addParticipantToCall = React.useCallback((participant, options) => __awaiter$l(void 0, void 0, void 0, function* () {
|
35057
35180
|
yield adapter.addParticipant(participant, options);
|
35058
35181
|
}), [adapter]);
|
35059
35182
|
/* @conditional-compile-remove(PSTN-calls) */
|
@@ -35086,7 +35209,7 @@ const PeoplePaneContent = (props) => {
|
|
35086
35209
|
return drawerMenuItems && drawerMenuItems.length > 0 ? () => setDrawerMenuItems(drawerMenuItems) : undefined;
|
35087
35210
|
}, [participantListHeadingMoreButtonProps === null || participantListHeadingMoreButtonProps === void 0 ? void 0 : participantListHeadingMoreButtonProps.items, setDrawerMenuItems]);
|
35088
35211
|
const participantListProps = React.useMemo(() => {
|
35089
|
-
const onRemoveAParticipant = (participantId) => __awaiter$
|
35212
|
+
const onRemoveAParticipant = (participantId) => __awaiter$l(void 0, void 0, void 0, function* () { return removeParticipantFromCall(participantId); });
|
35090
35213
|
return Object.assign(Object.assign({}, participantListDefaultProps), {
|
35091
35214
|
// Passing undefined callback for mobile to avoid context menus for participants in ParticipantList are clicked
|
35092
35215
|
onRemoveParticipant: props.mobileView ? undefined : onRemoveAParticipant,
|
@@ -35656,7 +35779,7 @@ const localVideoSelector = reselect__namespace.createSelector([callStatusSelecto
|
|
35656
35779
|
|
35657
35780
|
// Copyright (c) Microsoft Corporation.
|
35658
35781
|
// Licensed under the MIT License.
|
35659
|
-
var __awaiter$
|
35782
|
+
var __awaiter$k = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
35660
35783
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
35661
35784
|
return new (P || (P = Promise))(function (resolve, reject) {
|
35662
35785
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -35717,7 +35840,7 @@ const VideoEffectsPaneContent = (props) => {
|
|
35717
35840
|
}
|
35718
35841
|
return videoEffects;
|
35719
35842
|
}, [strings, adapter]);
|
35720
|
-
const onEffectChange = React.useCallback((effectKey) => __awaiter$
|
35843
|
+
const onEffectChange = React.useCallback((effectKey) => __awaiter$k(void 0, void 0, void 0, function* () {
|
35721
35844
|
if (effectKey === 'blur') {
|
35722
35845
|
const blurEffect = {
|
35723
35846
|
effectName: effectKey
|
@@ -36177,7 +36300,7 @@ const messageBarStyles = {
|
|
36177
36300
|
|
36178
36301
|
// Copyright (c) Microsoft Corporation.
|
36179
36302
|
// Licensed under the MIT License.
|
36180
|
-
var __awaiter$
|
36303
|
+
var __awaiter$j = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
36181
36304
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
36182
36305
|
return new (P || (P = Promise))(function (resolve, reject) {
|
36183
36306
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -36209,7 +36332,7 @@ const useLocalSpotlightCallbacksWithPrompt = (onStartLocalSpotlight, onStopLocal
|
|
36209
36332
|
}, [onStartLocalSpotlight, onStopLocalSpotlight, setIsPromptOpen, setPromptProps, strings]);
|
36210
36333
|
};
|
36211
36334
|
const getStartLocalSpotlightWithPromptCallback = (onStartSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
36212
|
-
return () => __awaiter$
|
36335
|
+
return () => __awaiter$j(void 0, void 0, void 0, function* () {
|
36213
36336
|
setPromptProps({
|
36214
36337
|
heading: strings.spotlightPrompt.startSpotlightHeading,
|
36215
36338
|
text: strings.spotlightPrompt.startSpotlightOnSelfText,
|
@@ -36225,7 +36348,7 @@ const getStartLocalSpotlightWithPromptCallback = (onStartSpotlight, setIsPromptO
|
|
36225
36348
|
});
|
36226
36349
|
};
|
36227
36350
|
const getStopLocalSpotlightWithPromptCallback = (onStopSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
36228
|
-
return () => __awaiter$
|
36351
|
+
return () => __awaiter$j(void 0, void 0, void 0, function* () {
|
36229
36352
|
setPromptProps({
|
36230
36353
|
heading: strings.spotlightPrompt.stopSpotlightOnSelfHeading,
|
36231
36354
|
text: strings.spotlightPrompt.stopSpotlightOnSelfText,
|
@@ -36263,7 +36386,7 @@ const useRemoteSpotlightCallbacksWithPrompt = (onStartRemoteSpotlight, onStopRem
|
|
36263
36386
|
}, [onStartRemoteSpotlight, onStopRemoteSpotlight, setIsPromptOpen, setPromptProps, strings]);
|
36264
36387
|
};
|
36265
36388
|
const getStartRemoteSpotlightWithPromptCallback = (onStartSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
36266
|
-
return (userIds) => __awaiter$
|
36389
|
+
return (userIds) => __awaiter$j(void 0, void 0, void 0, function* () {
|
36267
36390
|
if (userIds.length > 1) {
|
36268
36391
|
onStartSpotlight(userIds);
|
36269
36392
|
}
|
@@ -36282,7 +36405,7 @@ const getStartRemoteSpotlightWithPromptCallback = (onStartSpotlight, setIsPrompt
|
|
36282
36405
|
});
|
36283
36406
|
};
|
36284
36407
|
const getStopRemoteSpotlightWithPromptCallback = (onStopSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
36285
|
-
return (userIds) => __awaiter$
|
36408
|
+
return (userIds) => __awaiter$j(void 0, void 0, void 0, function* () {
|
36286
36409
|
if (userIds.length > 1) {
|
36287
36410
|
onStopSpotlight(userIds);
|
36288
36411
|
}
|
@@ -36319,7 +36442,7 @@ const useStopAllSpotlightCallbackWithPrompt = (stopAllSpotlight, setIsPromptOpen
|
|
36319
36442
|
}, [stopAllSpotlight, setIsPromptOpen, setPromptProps, strings]);
|
36320
36443
|
};
|
36321
36444
|
const getStopAllSpotlightCallbackWithPromptCallback = (stopAllSpotlight, setIsPromptOpen, setPromptProps, strings) => {
|
36322
|
-
return () => __awaiter$
|
36445
|
+
return () => __awaiter$j(void 0, void 0, void 0, function* () {
|
36323
36446
|
setPromptProps({
|
36324
36447
|
heading: strings.spotlightPrompt.stopAllSpotlightHeading,
|
36325
36448
|
text: strings.spotlightPrompt.stopAllSpotlightText,
|
@@ -37140,7 +37263,7 @@ const DtmfDialpadContentTimerStyles = {
|
|
37140
37263
|
|
37141
37264
|
// Copyright (c) Microsoft Corporation.
|
37142
37265
|
// Licensed under the MIT License.
|
37143
|
-
var __awaiter$
|
37266
|
+
var __awaiter$i = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
37144
37267
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
37145
37268
|
return new (P || (P = Promise))(function (resolve, reject) {
|
37146
37269
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -37170,7 +37293,7 @@ const DtmfDialpadPageContent = (props) => {
|
|
37170
37293
|
React.createElement(react.Stack, { verticalAlign: 'center', style: { margin: 'auto' } },
|
37171
37294
|
React.createElement(DtmfDialerContentTimer, null),
|
37172
37295
|
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$
|
37296
|
+
React.createElement(Dialpad, { onSendDtmfTone: (tone) => __awaiter$i(void 0, void 0, void 0, function* () {
|
37174
37297
|
yield adapter.sendDtmfTone(tone);
|
37175
37298
|
}), longPressTrigger: props.mobileView ? 'touch' : 'mouseAndTouch', dialpadMode: 'dtmf', dtmfAudioContext: props.compositeAudioContext }))));
|
37176
37299
|
};
|
@@ -37942,7 +38065,7 @@ const localPreviewButtonStyle = (isMobile) => {
|
|
37942
38065
|
|
37943
38066
|
// Copyright (c) Microsoft Corporation.
|
37944
38067
|
// Licensed under the MIT License.
|
37945
|
-
var __awaiter$
|
38068
|
+
var __awaiter$h = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
37946
38069
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
37947
38070
|
return new (P || (P = Promise))(function (resolve, reject) {
|
37948
38071
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -37962,7 +38085,7 @@ const LocalPreview = (props) => {
|
|
37962
38085
|
const { audio: microphonePermissionGranted, video: cameraPermissionGranted } = useSelector$1(devicePermissionSelector);
|
37963
38086
|
const isLocalMicrophoneEnabled = useSelector$1(getLocalMicrophoneEnabled);
|
37964
38087
|
const adapter = useAdapter();
|
37965
|
-
const onToggleMic = React.useCallback(() => __awaiter$
|
38088
|
+
const onToggleMic = React.useCallback(() => __awaiter$h(void 0, void 0, void 0, function* () {
|
37966
38089
|
isLocalMicrophoneEnabled ? adapter.mute() : adapter.unmute();
|
37967
38090
|
}), [adapter, isLocalMicrophoneEnabled]);
|
37968
38091
|
const hasNoSpeakers = !devicesButtonProps.speakers.length;
|
@@ -38326,7 +38449,7 @@ const constructTSpanLine = (line, lineHeightPx) => {
|
|
38326
38449
|
|
38327
38450
|
// Copyright (c) Microsoft Corporation.
|
38328
38451
|
// Licensed under the MIT License.
|
38329
|
-
var __awaiter$
|
38452
|
+
var __awaiter$g = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
38330
38453
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
38331
38454
|
return new (P || (P = Promise))(function (resolve, reject) {
|
38332
38455
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -38429,7 +38552,7 @@ const ConfigurationPage = (props) => {
|
|
38429
38552
|
/* @conditional-compile-remove(call-readiness) */
|
38430
38553
|
const forceShowingCheckPermissions = !minimumFallbackTimerElapsed;
|
38431
38554
|
const { toggleVideoEffectsPane, closeVideoEffectsPane, isVideoEffectsPaneOpen } = useVideoEffectsPane(props.updateSidePaneRenderer, mobileView, props.latestErrors, props.onDismissError);
|
38432
|
-
const startCall = React.useCallback(() => __awaiter$
|
38555
|
+
const startCall = React.useCallback(() => __awaiter$g(void 0, void 0, void 0, function* () {
|
38433
38556
|
closeVideoEffectsPane();
|
38434
38557
|
startCallHandler();
|
38435
38558
|
}), [startCallHandler, closeVideoEffectsPane]);
|
@@ -38931,7 +39054,7 @@ const holdPaneContentStyles = {
|
|
38931
39054
|
|
38932
39055
|
// Copyright (c) Microsoft Corporation.
|
38933
39056
|
// Licensed under the MIT License.
|
38934
|
-
var __awaiter$
|
39057
|
+
var __awaiter$f = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
38935
39058
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
38936
39059
|
return new (P || (P = Promise))(function (resolve, reject) {
|
38937
39060
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -38966,7 +39089,7 @@ const HoldPane = () => {
|
|
38966
39089
|
React.createElement(react.Stack, { horizontal: true, styles: holdPaneContentStyles },
|
38967
39090
|
React.createElement(react.Text, { styles: holdPaneTimerStyles }, elapsedTime),
|
38968
39091
|
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$
|
39092
|
+
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
39093
|
setResumingCall(true);
|
38971
39094
|
try {
|
38972
39095
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
@@ -38997,13 +39120,14 @@ const getReadableTime = (time) => {
|
|
38997
39120
|
return `${hours > 0 ? hours + ':' : ''}${readableMinutes}:${readableSeconds}`;
|
38998
39121
|
};
|
38999
39122
|
const stringsTrampoline = (locale) => {
|
39123
|
+
var _a, _b, _c, _d, _e;
|
39000
39124
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
39001
39125
|
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
|
39126
|
+
holdScreenLabel: (_a = locale.strings.call.holdScreenLabel) !== null && _a !== void 0 ? _a : '',
|
39127
|
+
resumeCallButtonLabel: (_b = locale.strings.call.resumeCallButtonLabel) !== null && _b !== void 0 ? _b : '',
|
39128
|
+
resumeCallButtonAriaLabel: (_c = locale.strings.call.resumeCallButtonAriaLabel) !== null && _c !== void 0 ? _c : '',
|
39129
|
+
resumingCallButtonLabel: (_d = locale.strings.call.resumingCallButtonLabel) !== null && _d !== void 0 ? _d : '',
|
39130
|
+
resumingCallButtonAriaLabel: (_e = locale.strings.call.resumingCallButtonAriaLabel) !== null && _e !== void 0 ? _e : ''
|
39007
39131
|
};
|
39008
39132
|
};
|
39009
39133
|
|
@@ -39348,7 +39472,7 @@ const surveyContainerStyle = (isMobile) => react.mergeStyles(isMobile
|
|
39348
39472
|
|
39349
39473
|
// Copyright (c) Microsoft Corporation.
|
39350
39474
|
// Licensed under the MIT License.
|
39351
|
-
var __awaiter$
|
39475
|
+
var __awaiter$e = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
39352
39476
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
39353
39477
|
return new (P || (P = Promise))(function (resolve, reject) {
|
39354
39478
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -39394,7 +39518,7 @@ const Survey = (props) => {
|
|
39394
39518
|
setShowDefaultAfterDismissedScreen(true);
|
39395
39519
|
}
|
39396
39520
|
} }, strings.surveySkipButtonLabel),
|
39397
|
-
showSubmitFeedbackButton && (React.createElement(react.PrimaryButton, { disabled: submitButtonDisabled, style: { marginTop: '1rem', marginLeft: '0.5rem' }, onClick: () => __awaiter$
|
39521
|
+
showSubmitFeedbackButton && (React.createElement(react.PrimaryButton, { disabled: submitButtonDisabled, style: { marginTop: '1rem', marginLeft: '0.5rem' }, onClick: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
39398
39522
|
const surveyResults = { overallRating: { score: ratings } };
|
39399
39523
|
if (issuesSelected === null || issuesSelected === void 0 ? void 0 : issuesSelected.overallRating) {
|
39400
39524
|
surveyResults.overallRating = { score: ratings, issues: issuesSelected.overallRating.issues };
|
@@ -39465,7 +39589,7 @@ function SurveyPage(props) {
|
|
39465
39589
|
|
39466
39590
|
// Copyright (c) Microsoft Corporation.
|
39467
39591
|
// Licensed under the MIT License.
|
39468
|
-
var __awaiter$
|
39592
|
+
var __awaiter$d = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
39469
39593
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
39470
39594
|
return new (P || (P = Promise))(function (resolve, reject) {
|
39471
39595
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -39484,7 +39608,7 @@ const MainScreen = (props) => {
|
|
39484
39608
|
const hasCameras = camerasCount > 0;
|
39485
39609
|
const hasMicrophones = microphonesCount > 0;
|
39486
39610
|
React.useEffect(() => {
|
39487
|
-
(() => __awaiter$
|
39611
|
+
(() => __awaiter$d(void 0, void 0, void 0, function* () {
|
39488
39612
|
var _a, _b, _c, _d, _e;
|
39489
39613
|
const constrain = getQueryOptions({
|
39490
39614
|
role: (_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.role
|
@@ -39835,7 +39959,7 @@ function createHandlers(callClient, callAgent, deviceManager, call, options) {
|
|
39835
39959
|
|
39836
39960
|
// Copyright (c) Microsoft Corporation.
|
39837
39961
|
// Licensed under the MIT License.
|
39838
|
-
var __awaiter$
|
39962
|
+
var __awaiter$c = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
39839
39963
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
39840
39964
|
return new (P || (P = Promise))(function (resolve, reject) {
|
39841
39965
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -39852,7 +39976,7 @@ const createProfileStateModifier = (onFetchProfile, notifyUpdate) => {
|
|
39852
39976
|
return (state) => {
|
39853
39977
|
var _a;
|
39854
39978
|
const originalParticipants = (_a = state.call) === null || _a === void 0 ? void 0 : _a.remoteParticipants;
|
39855
|
-
(() => __awaiter$
|
39979
|
+
(() => __awaiter$c(void 0, void 0, void 0, function* () {
|
39856
39980
|
let shouldNotifyUpdates = false;
|
39857
39981
|
for (const key in originalParticipants) {
|
39858
39982
|
if (cachedDisplayName[key]) {
|
@@ -39994,7 +40118,7 @@ const shouldPlayRinging = (call, callee) => {
|
|
39994
40118
|
|
39995
40119
|
// Copyright (c) Microsoft Corporation.
|
39996
40120
|
// Licensed under the MIT License.
|
39997
|
-
var __awaiter$
|
40121
|
+
var __awaiter$b = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
39998
40122
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
39999
40123
|
return new (P || (P = Promise))(function (resolve, reject) {
|
40000
40124
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -40006,7 +40130,7 @@ var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
40006
40130
|
/** Context of call, which is a centralized context for all state updates */
|
40007
40131
|
class CallContext {
|
40008
40132
|
constructor(clientState, isTeamsCall, isTeamsMeeting, isRoomsCall, options, targetCallees) {
|
40009
|
-
var _a, _b, _c, _d;
|
40133
|
+
var _a, _b, _c, _d, _e;
|
40010
40134
|
this.emitter = new EventEmitter.EventEmitter();
|
40011
40135
|
this.state = {
|
40012
40136
|
isLocalPreviewMicrophoneEnabled: false,
|
@@ -40021,17 +40145,19 @@ class CallContext {
|
|
40021
40145
|
isTeamsCall,
|
40022
40146
|
isTeamsMeeting,
|
40023
40147
|
isRoomsCall,
|
40024
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId:
|
40148
|
+
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: options === null || options === void 0 ? void 0 : options.alternateCallerId,
|
40025
40149
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo: clientState.environmentInfo,
|
40026
40150
|
/* @conditional-compile-remove(unsupported-browser) */ unsupportedBrowserVersionsAllowed: false,
|
40027
40151
|
videoBackgroundImages: (_b = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _b === void 0 ? void 0 : _b.videoBackgroundImages,
|
40028
40152
|
onResolveVideoEffectDependency: (_c = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _c === void 0 ? void 0 : _c.onResolveDependency,
|
40153
|
+
/* @conditional-compile-remove(DNS) */
|
40154
|
+
onResolveDeepNoiseSuppressionDependency: (_d = options === null || options === void 0 ? void 0 : options.deepNoiseSuppressionOptions) === null || _d === void 0 ? void 0 : _d.onResolveDependency,
|
40029
40155
|
selectedVideoBackgroundEffect: undefined,
|
40030
40156
|
cameraStatus: undefined,
|
40031
40157
|
sounds: options === null || options === void 0 ? void 0 : options.callingSounds,
|
40032
40158
|
reactions: options === null || options === void 0 ? void 0 : options.reactionResources
|
40033
40159
|
};
|
40034
|
-
this.emitter.setMaxListeners((
|
40160
|
+
this.emitter.setMaxListeners((_e = options === null || options === void 0 ? void 0 : options.maxListeners) !== null && _e !== void 0 ? _e : 50);
|
40035
40161
|
this.bindPublicMethods();
|
40036
40162
|
this.displayNameModifier = (options === null || options === void 0 ? void 0 : options.onFetchProfile)
|
40037
40163
|
? createProfileStateModifier(options.onFetchProfile, () => {
|
@@ -40051,8 +40177,23 @@ class CallContext {
|
|
40051
40177
|
}
|
40052
40178
|
setState(state) {
|
40053
40179
|
this.state = this.displayNameModifier ? this.displayNameModifier(state) : state;
|
40180
|
+
// This context privately tracks how captions was started to determine if captions is running only in the background.
|
40181
|
+
// If so we should not show the UI.
|
40182
|
+
this.state = captionsUIVisibilityModifier(this.state);
|
40054
40183
|
this.emitter.emit('stateChanged', this.state);
|
40055
40184
|
}
|
40185
|
+
updateCaptionsStartedInBackground(captionsStartedInBackground) {
|
40186
|
+
var _a;
|
40187
|
+
const captionsTriggers = (_a = this.state.captionsTriggers) !== null && _a !== void 0 ? _a : {};
|
40188
|
+
captionsTriggers.captionsStartedInBackground = captionsStartedInBackground;
|
40189
|
+
this.setState(Object.assign(Object.assign({}, this.state), { captionsTriggers }));
|
40190
|
+
}
|
40191
|
+
updateCaptionsStartedWithUI(captionsStartedWithUI) {
|
40192
|
+
var _a;
|
40193
|
+
const captionsTriggers = (_a = this.state.captionsTriggers) !== null && _a !== void 0 ? _a : {};
|
40194
|
+
captionsTriggers.captionsStartedWithUI = captionsStartedWithUI;
|
40195
|
+
this.setState(Object.assign(Object.assign({}, this.state), { captionsTriggers }));
|
40196
|
+
}
|
40056
40197
|
getState() {
|
40057
40198
|
return this.state;
|
40058
40199
|
}
|
@@ -40165,7 +40306,7 @@ class AzureCommunicationCallAdapter {
|
|
40165
40306
|
this._call = newCall;
|
40166
40307
|
}
|
40167
40308
|
constructor(callClient, locatorOrTargetCalless, callAgent, deviceManager, options) {
|
40168
|
-
var _a, _b;
|
40309
|
+
var _a, _b, _c;
|
40169
40310
|
this.participantSubscribers = new Map();
|
40170
40311
|
this.emitter = new EventEmitter.EventEmitter();
|
40171
40312
|
this.isMyMutedChanged = () => {
|
@@ -40196,6 +40337,8 @@ class AzureCommunicationCallAdapter {
|
|
40196
40337
|
});
|
40197
40338
|
const isRoomsCall = this.locator ? 'roomId' in this.locator : false;
|
40198
40339
|
this.onResolveVideoBackgroundEffectsDependency = (_b = options === null || options === void 0 ? void 0 : options.videoBackgroundOptions) === null || _b === void 0 ? void 0 : _b.onResolveDependency;
|
40340
|
+
/* @conditional-compile-remove(DNS) */
|
40341
|
+
this.onResolveDeepNoiseSuppressionDependency = (_c = options === null || options === void 0 ? void 0 : options.deepNoiseSuppressionOptions) === null || _c === void 0 ? void 0 : _c.onResolveDependency;
|
40199
40342
|
this.context = new CallContext(callClient.getState(), !!isTeamsCall, isTeamsMeeting, isRoomsCall, options, this.targetCallees);
|
40200
40343
|
this.context.onCallEnded((endCallData) => this.emitter.emit('callEnded', endCallData));
|
40201
40344
|
const onStateChange = (clientState) => {
|
@@ -40227,7 +40370,9 @@ class AzureCommunicationCallAdapter {
|
|
40227
40370
|
this.context.updateClientState(clientState);
|
40228
40371
|
};
|
40229
40372
|
this.handlers = createHandlers(callClient, callAgent, deviceManager, undefined, {
|
40230
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
40373
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
40374
|
+
/* @conditional-compile-remove(DNS) */
|
40375
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
40231
40376
|
});
|
40232
40377
|
this.onClientStateChange = onStateChange;
|
40233
40378
|
this.subscribeDeviceManagerEvents();
|
@@ -40328,6 +40473,10 @@ class AzureCommunicationCallAdapter {
|
|
40328
40473
|
this.startVideoBackgroundEffect.bind(this);
|
40329
40474
|
this.stopVideoBackgroundEffects.bind(this);
|
40330
40475
|
this.updateBackgroundPickerImages.bind(this);
|
40476
|
+
/* @conditional-compile-remove(DNS) */
|
40477
|
+
this.startNoiseSuppressionEffect.bind(this);
|
40478
|
+
/* @conditional-compile-remove(DNS) */
|
40479
|
+
this.stopNoiseSuppressionEffect.bind(this);
|
40331
40480
|
this.submitSurvey.bind(this);
|
40332
40481
|
this.startSpotlight.bind(this);
|
40333
40482
|
this.stopSpotlight.bind(this);
|
@@ -40343,9 +40492,9 @@ class AzureCommunicationCallAdapter {
|
|
40343
40492
|
this.callAgent.dispose();
|
40344
40493
|
}
|
40345
40494
|
queryCameras() {
|
40346
|
-
return __awaiter$
|
40495
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40347
40496
|
const startTime = new Date().getTime();
|
40348
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40497
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40349
40498
|
const cameras = yield this.deviceManager.getCameras();
|
40350
40499
|
const endTime = new Date().getTime();
|
40351
40500
|
compositeLogger.info('time to query cameras', endTime - startTime, 'ms');
|
@@ -40354,9 +40503,9 @@ class AzureCommunicationCallAdapter {
|
|
40354
40503
|
});
|
40355
40504
|
}
|
40356
40505
|
queryMicrophones() {
|
40357
|
-
return __awaiter$
|
40506
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40358
40507
|
const startTime = new Date().getTime();
|
40359
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40508
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40360
40509
|
const microphones = yield this.deviceManager.getMicrophones();
|
40361
40510
|
const endTime = new Date().getTime();
|
40362
40511
|
compositeLogger.info('time to query microphones', endTime - startTime, 'ms');
|
@@ -40365,9 +40514,9 @@ class AzureCommunicationCallAdapter {
|
|
40365
40514
|
});
|
40366
40515
|
}
|
40367
40516
|
querySpeakers() {
|
40368
|
-
return __awaiter$
|
40517
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40369
40518
|
const startTime = new Date().getTime();
|
40370
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40519
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40371
40520
|
const speakers = (yield this.deviceManager.isSpeakerSelectionAvailable) ? this.deviceManager.getSpeakers() : [];
|
40372
40521
|
const endTime = new Date().getTime();
|
40373
40522
|
compositeLogger.info('time to query speakers', endTime - startTime, 'ms');
|
@@ -40376,9 +40525,9 @@ class AzureCommunicationCallAdapter {
|
|
40376
40525
|
});
|
40377
40526
|
}
|
40378
40527
|
askDevicePermission(constrain) {
|
40379
|
-
return __awaiter$
|
40528
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40380
40529
|
const startTime = new Date().getTime();
|
40381
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40530
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40382
40531
|
yield this.deviceManager.askDevicePermission(constrain);
|
40383
40532
|
const endTime = new Date().getTime();
|
40384
40533
|
compositeLogger.info('time to query askDevicePermissions', endTime - startTime, 'ms');
|
@@ -40467,7 +40616,7 @@ class AzureCommunicationCallAdapter {
|
|
40467
40616
|
});
|
40468
40617
|
}
|
40469
40618
|
createStreamView(remoteUserId, options) {
|
40470
|
-
return __awaiter$
|
40619
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40471
40620
|
if (remoteUserId === undefined) {
|
40472
40621
|
return yield this.handlers.onCreateLocalStreamView(options);
|
40473
40622
|
}
|
@@ -40477,7 +40626,7 @@ class AzureCommunicationCallAdapter {
|
|
40477
40626
|
});
|
40478
40627
|
}
|
40479
40628
|
disposeStreamView(remoteUserId) {
|
40480
|
-
return __awaiter$
|
40629
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40481
40630
|
if (remoteUserId === undefined) {
|
40482
40631
|
yield this.handlers.onDisposeLocalStreamView();
|
40483
40632
|
}
|
@@ -40487,7 +40636,7 @@ class AzureCommunicationCallAdapter {
|
|
40487
40636
|
});
|
40488
40637
|
}
|
40489
40638
|
disposeScreenShareStreamView(remoteUserId) {
|
40490
|
-
return __awaiter$
|
40639
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40491
40640
|
if (remoteUserId !== '') {
|
40492
40641
|
yield this.handlers.onDisposeRemoteScreenShareStreamView(remoteUserId);
|
40493
40642
|
}
|
@@ -40497,17 +40646,17 @@ class AzureCommunicationCallAdapter {
|
|
40497
40646
|
});
|
40498
40647
|
}
|
40499
40648
|
disposeRemoteVideoStreamView(remoteUserId) {
|
40500
|
-
return __awaiter$
|
40649
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40501
40650
|
yield this.handlers.onDisposeRemoteVideoStreamView(remoteUserId);
|
40502
40651
|
});
|
40503
40652
|
}
|
40504
40653
|
disposeLocalVideoStreamView() {
|
40505
|
-
return __awaiter$
|
40654
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40506
40655
|
yield this.handlers.onDisposeLocalStreamView();
|
40507
40656
|
});
|
40508
40657
|
}
|
40509
40658
|
leaveCall(forEveryone) {
|
40510
|
-
return __awaiter$
|
40659
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40511
40660
|
if (this.getState().page === 'transferring') {
|
40512
40661
|
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
40662
|
transferCall === null || transferCall === void 0 ? void 0 : transferCall.hangUp();
|
@@ -40515,7 +40664,9 @@ class AzureCommunicationCallAdapter {
|
|
40515
40664
|
yield this.handlers.onHangUp(forEveryone);
|
40516
40665
|
this.unsubscribeCallEvents();
|
40517
40666
|
this.handlers = createHandlers(this.callClient, this.callAgent, this.deviceManager, this.call, {
|
40518
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
40667
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
40668
|
+
/* @conditional-compile-remove(DNS) */
|
40669
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
40519
40670
|
});
|
40520
40671
|
// We set the adapter.call object to undefined immediately when a call is ended.
|
40521
40672
|
// We do not set the context.callId to undefined because it is a part of the immutable data flow loop.
|
@@ -40525,29 +40676,29 @@ class AzureCommunicationCallAdapter {
|
|
40525
40676
|
});
|
40526
40677
|
}
|
40527
40678
|
setCamera(device, options) {
|
40528
|
-
return __awaiter$
|
40529
|
-
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* () {
|
40530
40681
|
yield this.handlers.onSelectCamera(device, options);
|
40531
40682
|
}));
|
40532
40683
|
});
|
40533
40684
|
}
|
40534
40685
|
setMicrophone(device) {
|
40535
|
-
return __awaiter$
|
40536
|
-
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* () {
|
40537
40688
|
yield this.handlers.onSelectMicrophone(device);
|
40538
40689
|
}));
|
40539
40690
|
});
|
40540
40691
|
}
|
40541
40692
|
setSpeaker(device) {
|
40542
|
-
return __awaiter$
|
40543
|
-
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* () {
|
40544
40695
|
yield this.handlers.onSelectSpeaker(device);
|
40545
40696
|
}));
|
40546
40697
|
});
|
40547
40698
|
}
|
40548
40699
|
startCamera(options) {
|
40549
|
-
return __awaiter$
|
40550
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40700
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40701
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40551
40702
|
if (!isCameraOn(this.getState())) {
|
40552
40703
|
// First kick off the effect on the local device before starting the camera in the call.
|
40553
40704
|
// This prevents the effect not being applied for a brief moment when the camera is started.
|
@@ -40571,8 +40722,8 @@ class AzureCommunicationCallAdapter {
|
|
40571
40722
|
});
|
40572
40723
|
}
|
40573
40724
|
stopCamera() {
|
40574
|
-
return __awaiter$
|
40575
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40725
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40726
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40576
40727
|
if (isCameraOn(this.getState())) {
|
40577
40728
|
yield this.handlers.onToggleCamera();
|
40578
40729
|
}
|
@@ -40580,8 +40731,8 @@ class AzureCommunicationCallAdapter {
|
|
40580
40731
|
});
|
40581
40732
|
}
|
40582
40733
|
mute() {
|
40583
|
-
return __awaiter$
|
40584
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40734
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40735
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40585
40736
|
var _a, _b;
|
40586
40737
|
this.context.setIsLocalMicrophoneEnabled(false);
|
40587
40738
|
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 +40742,8 @@ class AzureCommunicationCallAdapter {
|
|
40591
40742
|
});
|
40592
40743
|
}
|
40593
40744
|
unmute() {
|
40594
|
-
return __awaiter$
|
40595
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40745
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40746
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40596
40747
|
var _a, _b, _c;
|
40597
40748
|
this.context.setIsLocalMicrophoneEnabled(true);
|
40598
40749
|
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 +40753,8 @@ class AzureCommunicationCallAdapter {
|
|
40602
40753
|
});
|
40603
40754
|
}
|
40604
40755
|
startScreenShare() {
|
40605
|
-
return __awaiter$
|
40606
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40756
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40757
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40607
40758
|
var _a;
|
40608
40759
|
if (!((_a = this.call) === null || _a === void 0 ? void 0 : _a.isScreenSharingOn)) {
|
40609
40760
|
yield this.handlers.onToggleScreenShare();
|
@@ -40612,8 +40763,8 @@ class AzureCommunicationCallAdapter {
|
|
40612
40763
|
});
|
40613
40764
|
}
|
40614
40765
|
stopScreenShare() {
|
40615
|
-
return __awaiter$
|
40616
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40766
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40767
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40617
40768
|
var _a;
|
40618
40769
|
if ((_a = this.call) === null || _a === void 0 ? void 0 : _a.isScreenSharingOn) {
|
40619
40770
|
yield this.handlers.onToggleScreenShare();
|
@@ -40622,22 +40773,22 @@ class AzureCommunicationCallAdapter {
|
|
40622
40773
|
});
|
40623
40774
|
}
|
40624
40775
|
raiseHand() {
|
40625
|
-
return __awaiter$
|
40626
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40776
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40777
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40627
40778
|
yield this.handlers.onToggleRaiseHand();
|
40628
40779
|
}));
|
40629
40780
|
});
|
40630
40781
|
}
|
40631
40782
|
lowerHand() {
|
40632
|
-
return __awaiter$
|
40633
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40783
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40784
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40634
40785
|
yield this.handlers.onToggleRaiseHand();
|
40635
40786
|
}));
|
40636
40787
|
});
|
40637
40788
|
}
|
40638
40789
|
onReactionClick(reaction) {
|
40639
|
-
return __awaiter$
|
40640
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
40790
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40791
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
|
40641
40792
|
yield this.handlers.onReactionClick(reaction);
|
40642
40793
|
}));
|
40643
40794
|
});
|
@@ -40648,7 +40799,7 @@ class AzureCommunicationCallAdapter {
|
|
40648
40799
|
this.context.updateClientState(this.callClient.getState());
|
40649
40800
|
}
|
40650
40801
|
startVideoBackgroundEffect(videoBackgroundEffect) {
|
40651
|
-
return __awaiter$
|
40802
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40652
40803
|
if (this.isBlurEffect(videoBackgroundEffect)) {
|
40653
40804
|
const blurConfig = videoBackgroundEffect;
|
40654
40805
|
yield this.handlers.onBlurVideoBackground(blurConfig);
|
@@ -40660,7 +40811,7 @@ class AzureCommunicationCallAdapter {
|
|
40660
40811
|
});
|
40661
40812
|
}
|
40662
40813
|
stopVideoBackgroundEffects() {
|
40663
|
-
return __awaiter$
|
40814
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40664
40815
|
yield this.handlers.onRemoveVideoBackgroundEffects();
|
40665
40816
|
});
|
40666
40817
|
}
|
@@ -40670,6 +40821,18 @@ class AzureCommunicationCallAdapter {
|
|
40670
40821
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground) {
|
40671
40822
|
this.context.setSelectedVideoBackgroundEffect(selectedVideoBackground);
|
40672
40823
|
}
|
40824
|
+
/* @conditional-compile-remove(DNS) */
|
40825
|
+
startNoiseSuppressionEffect() {
|
40826
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40827
|
+
yield this.handlers.onStartNoiseSuppressionEffect();
|
40828
|
+
});
|
40829
|
+
}
|
40830
|
+
/* @conditional-compile-remove(DNS) */
|
40831
|
+
stopNoiseSuppressionEffect() {
|
40832
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40833
|
+
yield this.handlers.onStopNoiseSuppressionEffect();
|
40834
|
+
});
|
40835
|
+
}
|
40673
40836
|
startCall(participants, options) {
|
40674
40837
|
var _a, _b;
|
40675
40838
|
if (_isInCall((_b = (_a = this.getState().call) === null || _a === void 0 ? void 0 : _a.state) !== null && _b !== void 0 ? _b : 'None')) {
|
@@ -40707,7 +40870,9 @@ class AzureCommunicationCallAdapter {
|
|
40707
40870
|
// Resync state after callId is set
|
40708
40871
|
this.context.updateClientState(this.callClient.getState());
|
40709
40872
|
this.handlers = createHandlers(this.callClient, this.callAgent, this.deviceManager, this.call, {
|
40710
|
-
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency
|
40873
|
+
onResolveVideoBackgroundEffectsDependency: this.onResolveVideoBackgroundEffectsDependency,
|
40874
|
+
/* @conditional-compile-remove(DNS) */
|
40875
|
+
onResolveDeepNoiseSuppressionDependency: this.onResolveDeepNoiseSuppressionDependency
|
40711
40876
|
});
|
40712
40877
|
this.subscribeCallEvents();
|
40713
40878
|
}
|
@@ -40718,7 +40883,7 @@ class AzureCommunicationCallAdapter {
|
|
40718
40883
|
return effect.effectName === 'replacement';
|
40719
40884
|
}
|
40720
40885
|
removeParticipant(userId) {
|
40721
|
-
return __awaiter$
|
40886
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40722
40887
|
let participant = userId;
|
40723
40888
|
/* @conditional-compile-remove(PSTN-calls) */
|
40724
40889
|
participant = _toCommunicationIdentifier(userId);
|
@@ -40727,7 +40892,7 @@ class AzureCommunicationCallAdapter {
|
|
40727
40892
|
}
|
40728
40893
|
/* @conditional-compile-remove(PSTN-calls) */
|
40729
40894
|
addParticipant(participant, options) {
|
40730
|
-
return __awaiter$
|
40895
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40731
40896
|
if (communicationCommon.isPhoneNumberIdentifier(participant) && options) {
|
40732
40897
|
this.handlers.onAddParticipant(participant, options);
|
40733
40898
|
}
|
@@ -40738,7 +40903,7 @@ class AzureCommunicationCallAdapter {
|
|
40738
40903
|
}
|
40739
40904
|
/* @conditional-compile-remove(PSTN-calls) */
|
40740
40905
|
holdCall() {
|
40741
|
-
return __awaiter$
|
40906
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40742
40907
|
var _a, _b;
|
40743
40908
|
if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) !== 'LocalHold') {
|
40744
40909
|
if ((_b = this.call) === null || _b === void 0 ? void 0 : _b.isLocalVideoStarted) {
|
@@ -40754,7 +40919,7 @@ class AzureCommunicationCallAdapter {
|
|
40754
40919
|
}
|
40755
40920
|
/* @conditional-compile-remove(PSTN-calls) */
|
40756
40921
|
resumeCall() {
|
40757
|
-
return __awaiter$
|
40922
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40758
40923
|
var _a;
|
40759
40924
|
if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold') {
|
40760
40925
|
this.handlers.onToggleHold().then(() => {
|
@@ -40767,65 +40932,79 @@ class AzureCommunicationCallAdapter {
|
|
40767
40932
|
});
|
40768
40933
|
}
|
40769
40934
|
sendDtmfTone(dtmfTone) {
|
40770
|
-
return __awaiter$
|
40935
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40771
40936
|
this.handlers.onSendDtmfTone(dtmfTone);
|
40772
40937
|
});
|
40773
40938
|
}
|
40774
40939
|
startCaptions(options) {
|
40775
|
-
return __awaiter$
|
40940
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40941
|
+
if (options === null || options === void 0 ? void 0 : options.startInBackground) {
|
40942
|
+
this.context.updateCaptionsStartedInBackground(true);
|
40943
|
+
}
|
40944
|
+
else {
|
40945
|
+
this.context.updateCaptionsStartedWithUI(true);
|
40946
|
+
}
|
40776
40947
|
this.handlers.onStartCaptions(options);
|
40777
40948
|
});
|
40778
40949
|
}
|
40779
|
-
stopCaptions() {
|
40780
|
-
return __awaiter$
|
40781
|
-
|
40950
|
+
stopCaptions(options) {
|
40951
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40952
|
+
var _a;
|
40953
|
+
if (options === null || options === void 0 ? void 0 : options.stopInBackground) {
|
40954
|
+
this.context.updateCaptionsStartedInBackground(false);
|
40955
|
+
}
|
40956
|
+
this.context.updateCaptionsStartedWithUI(false);
|
40957
|
+
// Only stop captions if they are not still running in the background
|
40958
|
+
if (!((_a = this.context.getState().captionsTriggers) === null || _a === void 0 ? void 0 : _a.captionsStartedInBackground)) {
|
40959
|
+
this.handlers.onStopCaptions();
|
40960
|
+
}
|
40782
40961
|
});
|
40783
40962
|
}
|
40784
40963
|
setCaptionLanguage(language) {
|
40785
|
-
return __awaiter$
|
40964
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40786
40965
|
this.handlers.onSetCaptionLanguage(language);
|
40787
40966
|
});
|
40788
40967
|
}
|
40789
40968
|
setSpokenLanguage(language) {
|
40790
|
-
return __awaiter$
|
40969
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40791
40970
|
this.handlers.onSetSpokenLanguage(language);
|
40792
40971
|
});
|
40793
40972
|
}
|
40794
40973
|
submitSurvey(survey) {
|
40795
|
-
return __awaiter$
|
40974
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40796
40975
|
return this.handlers.onSubmitSurvey(survey);
|
40797
40976
|
});
|
40798
40977
|
}
|
40799
40978
|
/* @conditional-compile-remove(soft-mute) */
|
40800
40979
|
muteParticipant(userId) {
|
40801
|
-
return __awaiter$
|
40980
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40802
40981
|
this.handlers.onMuteParticipant(userId);
|
40803
40982
|
});
|
40804
40983
|
}
|
40805
40984
|
/* @conditional-compile-remove(soft-mute) */
|
40806
40985
|
muteAllRemoteParticipants() {
|
40807
|
-
return __awaiter$
|
40986
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40808
40987
|
this.handlers.onMuteAllRemoteParticipants();
|
40809
40988
|
});
|
40810
40989
|
}
|
40811
40990
|
startSpotlight(userIds) {
|
40812
|
-
return __awaiter$
|
40991
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40813
40992
|
this.handlers.onStartSpotlight(userIds);
|
40814
40993
|
});
|
40815
40994
|
}
|
40816
40995
|
stopSpotlight(userIds) {
|
40817
|
-
return __awaiter$
|
40996
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40818
40997
|
this.handlers.onStopSpotlight(userIds);
|
40819
40998
|
});
|
40820
40999
|
}
|
40821
41000
|
stopAllSpotlight() {
|
40822
|
-
return __awaiter$
|
41001
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40823
41002
|
this.handlers.onStopAllSpotlight();
|
40824
41003
|
});
|
40825
41004
|
}
|
40826
41005
|
/* @conditional-compile-remove(breakout-rooms) */
|
40827
41006
|
returnFromBreakoutRoom() {
|
40828
|
-
return __awaiter$
|
41007
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
40829
41008
|
var _a;
|
40830
41009
|
if (!this.originCall) {
|
40831
41010
|
throw new Error('Could not return from breakout room because the origin call could not be retrieved.');
|
@@ -41100,7 +41279,7 @@ class AzureCommunicationCallAdapter {
|
|
41100
41279
|
this.emitter.off(event, listener);
|
41101
41280
|
}
|
41102
41281
|
asyncTeeErrorToEventEmitter(f) {
|
41103
|
-
return __awaiter$
|
41282
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
41104
41283
|
try {
|
41105
41284
|
return yield f();
|
41106
41285
|
}
|
@@ -41137,7 +41316,7 @@ class AzureCommunicationCallAdapter {
|
|
41137
41316
|
* @public
|
41138
41317
|
*/
|
41139
41318
|
function createAzureCommunicationCallAdapter(args) {
|
41140
|
-
return __awaiter$
|
41319
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
41141
41320
|
if (communicationCommon.isMicrosoftTeamsUserIdentifier(args.userId)) {
|
41142
41321
|
throw new Error('Microsoft Teams user identifier is not supported by AzureCommunicationCallAdapter. Instead use TeamsCallAdapter.');
|
41143
41322
|
}
|
@@ -41147,8 +41326,6 @@ function createAzureCommunicationCallAdapter(args) {
|
|
41147
41326
|
credential: args.credential,
|
41148
41327
|
locator: args.locator,
|
41149
41328
|
targetCallees: args.targetCallees,
|
41150
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
41151
|
-
alternateCallerId: args.alternateCallerId,
|
41152
41329
|
options: args.options
|
41153
41330
|
});
|
41154
41331
|
});
|
@@ -41158,15 +41335,12 @@ function createAzureCommunicationCallAdapter(args) {
|
|
41158
41335
|
*
|
41159
41336
|
* @internal
|
41160
41337
|
*/
|
41161
|
-
const _createAzureCommunicationCallAdapterInner = (_a) => __awaiter$
|
41162
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId, options, telemetryImplementationHint = 'Call' }) {
|
41338
|
+
const _createAzureCommunicationCallAdapterInner = (_a) => __awaiter$b(void 0, [_a], void 0, function* ({ userId, displayName, credential, locator, targetCallees, options, telemetryImplementationHint = 'Call' }) {
|
41163
41339
|
if (!_isValidIdentifier(userId)) {
|
41164
41340
|
throw new Error('Invalid identifier. Please provide valid identifier object.');
|
41165
41341
|
}
|
41166
41342
|
const callClient = _createStatefulCallClientInner({
|
41167
|
-
userId
|
41168
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
41169
|
-
alternateCallerId
|
41343
|
+
userId
|
41170
41344
|
}, undefined, telemetryImplementationHint);
|
41171
41345
|
const callAgent = yield callClient.createCallAgent(credential, {
|
41172
41346
|
displayName
|
@@ -41184,7 +41358,7 @@ const _createAzureCommunicationCallAdapterInner = (_a) => __awaiter$9(void 0, [_
|
|
41184
41358
|
/**
|
41185
41359
|
* @public
|
41186
41360
|
*/
|
41187
|
-
const createTeamsCallAdapter = (args) => __awaiter$
|
41361
|
+
const createTeamsCallAdapter = (args) => __awaiter$b(void 0, void 0, void 0, function* () {
|
41188
41362
|
const { userId, credential, options } = args;
|
41189
41363
|
if (communicationCommon.isCommunicationUserIdentifier(userId)) {
|
41190
41364
|
throw new Error('Communication User identifier is not supported by TeamsCallAdapter, please use our AzureCommunicationCallAdapter.');
|
@@ -41210,8 +41384,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
41210
41384
|
const locator = 'locator' in args ? args.locator : undefined;
|
41211
41385
|
const targetCallees = 'targetCallees' in args ? args.targetCallees : undefined;
|
41212
41386
|
const displayName = 'displayName' in args ? args.displayName : undefined;
|
41213
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
41214
|
-
const alternateCallerId = 'alternateCallerId' in args ? args.alternateCallerId : undefined;
|
41215
41387
|
const options = 'options' in args ? args.options : undefined;
|
41216
41388
|
// State update needed to rerender the parent component when a new adapter is created.
|
41217
41389
|
const [adapter, setAdapter] = React.useState(undefined);
|
@@ -41233,7 +41405,7 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
41233
41405
|
if (adapterKind === 'AzureCommunication' && !displayName) {
|
41234
41406
|
return;
|
41235
41407
|
}
|
41236
|
-
(() => __awaiter$
|
41408
|
+
(() => __awaiter$b(this, void 0, void 0, function* () {
|
41237
41409
|
if (adapterRef.current) {
|
41238
41410
|
// Dispose the old adapter when a new one is created.
|
41239
41411
|
//
|
@@ -41263,7 +41435,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
41263
41435
|
displayName: displayName,
|
41264
41436
|
locator,
|
41265
41437
|
userId: userId,
|
41266
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
|
41267
41438
|
options
|
41268
41439
|
}));
|
41269
41440
|
}
|
@@ -41273,7 +41444,6 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
41273
41444
|
displayName: displayName,
|
41274
41445
|
targetCallees,
|
41275
41446
|
userId: userId,
|
41276
|
-
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
|
41277
41447
|
options
|
41278
41448
|
}));
|
41279
41449
|
}
|
@@ -41327,15 +41497,13 @@ function useAzureCommunicationCallAdapterGeneric(args, adapterKind = 'AzureCommu
|
|
41327
41497
|
locator,
|
41328
41498
|
userId,
|
41329
41499
|
displayName,
|
41330
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
41331
|
-
alternateCallerId,
|
41332
41500
|
options,
|
41333
41501
|
targetCallees
|
41334
41502
|
]);
|
41335
41503
|
// Dispose any existing adapter when the component unmounts.
|
41336
41504
|
React.useEffect(() => {
|
41337
41505
|
return () => {
|
41338
|
-
(() => __awaiter$
|
41506
|
+
(() => __awaiter$b(this, void 0, void 0, function* () {
|
41339
41507
|
if (adapterRef.current) {
|
41340
41508
|
if (beforeDisposeRef.current) {
|
41341
41509
|
yield beforeDisposeRef.current(adapterRef.current);
|
@@ -41430,7 +41598,7 @@ beforeDispose) => {
|
|
41430
41598
|
* @public
|
41431
41599
|
*/
|
41432
41600
|
function createAzureCommunicationCallAdapterFromClient(callClient, callAgent, locatorOrtargetCallees, options) {
|
41433
|
-
return __awaiter$
|
41601
|
+
return __awaiter$b(this, void 0, void 0, function* () {
|
41434
41602
|
const deviceManager = (yield callClient.getDeviceManager());
|
41435
41603
|
yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones()]);
|
41436
41604
|
if (deviceManager.isSpeakerSelectionAvailable) {
|
@@ -41455,7 +41623,7 @@ function createAzureCommunicationCallAdapterFromClient(callClient, callAgent, lo
|
|
41455
41623
|
*
|
41456
41624
|
* @public
|
41457
41625
|
*/
|
41458
|
-
const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$
|
41626
|
+
const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$b(void 0, void 0, void 0, function* () {
|
41459
41627
|
const deviceManager = (yield callClient.getDeviceManager());
|
41460
41628
|
yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones()]);
|
41461
41629
|
if (deviceManager.isSpeakerSelectionAvailable) {
|
@@ -41470,6 +41638,16 @@ const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, option
|
|
41470
41638
|
return new AzureCommunicationCallAdapter(callClient, locator, callAgent, deviceManager, options);
|
41471
41639
|
}
|
41472
41640
|
});
|
41641
|
+
const captionsUIVisibilityModifier = (state) => {
|
41642
|
+
var _a, _b, _c;
|
41643
|
+
// To hide captions to the UI, set isCaptionsFeatureActive to false and startCaptionsInProgress to false
|
41644
|
+
if (((_a = state.call) === null || _a === void 0 ? void 0 : _a.captionsFeature) &&
|
41645
|
+
((_b = state.captionsTriggers) === null || _b === void 0 ? void 0 : _b.captionsStartedInBackground) &&
|
41646
|
+
!((_c = state.captionsTriggers) === null || _c === void 0 ? void 0 : _c.captionsStartedWithUI)) {
|
41647
|
+
return Object.assign(Object.assign({}, state), { call: Object.assign(Object.assign({}, state.call), { captionsFeature: Object.assign(Object.assign({}, state.call.captionsFeature), { isCaptionsFeatureActive: false, startCaptionsInProgress: false }) }) });
|
41648
|
+
}
|
41649
|
+
return state;
|
41650
|
+
};
|
41473
41651
|
const isCallError = (e) => {
|
41474
41652
|
return 'target' in e && 'innerError' in e;
|
41475
41653
|
};
|
@@ -41513,7 +41691,7 @@ const chatSpinnerContainerStyles = {
|
|
41513
41691
|
|
41514
41692
|
// Copyright (c) Microsoft Corporation.
|
41515
41693
|
// Licensed under the MIT License.
|
41516
|
-
var __awaiter$
|
41694
|
+
var __awaiter$a = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
41517
41695
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
41518
41696
|
return new (P || (P = Promise))(function (resolve, reject) {
|
41519
41697
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -41579,7 +41757,7 @@ class CallWithChatBackedCallAdapter {
|
|
41579
41757
|
return this.callWithChatAdapter.joinCall(options);
|
41580
41758
|
}
|
41581
41759
|
};
|
41582
|
-
this.leaveCall = (forEveryone) => __awaiter$
|
41760
|
+
this.leaveCall = (forEveryone) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.leaveCall(forEveryone); });
|
41583
41761
|
this.startCall = (participants, options) => {
|
41584
41762
|
if (participants.every((participant) => typeof participant === 'string')) {
|
41585
41763
|
return this.callWithChatAdapter.startCall(participants, options);
|
@@ -41588,39 +41766,39 @@ class CallWithChatBackedCallAdapter {
|
|
41588
41766
|
return this.callWithChatAdapter.startCall(participants, options);
|
41589
41767
|
}
|
41590
41768
|
};
|
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$
|
41769
|
+
this.setCamera = (sourceId, options) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.setCamera(sourceId, options); });
|
41770
|
+
this.setMicrophone = (sourceId) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.setMicrophone(sourceId); });
|
41771
|
+
this.setSpeaker = (sourceId) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.setSpeaker(sourceId); });
|
41772
|
+
this.askDevicePermission = (constraints) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.askDevicePermission(constraints); });
|
41773
|
+
this.queryCameras = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.queryCameras(); });
|
41774
|
+
this.queryMicrophones = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.queryMicrophones(); });
|
41775
|
+
this.querySpeakers = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.querySpeakers(); });
|
41776
|
+
this.startCamera = (options) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.startCamera(options); });
|
41777
|
+
this.stopCamera = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.stopCamera(); });
|
41778
|
+
this.mute = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.mute(); });
|
41779
|
+
this.unmute = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.unmute(); });
|
41780
|
+
this.startScreenShare = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.startScreenShare(); });
|
41781
|
+
this.stopScreenShare = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.stopScreenShare(); });
|
41782
|
+
this.raiseHand = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.raiseHand(); });
|
41783
|
+
this.lowerHand = () => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.lowerHand(); });
|
41784
|
+
this.onReactionClick = (reaction) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.onReactionClick(reaction); });
|
41785
|
+
this.removeParticipant = (userId) => __awaiter$a(this, void 0, void 0, function* () {
|
41608
41786
|
let participant = userId;
|
41609
41787
|
/* @conditional-compile-remove(PSTN-calls) */
|
41610
41788
|
participant = _toCommunicationIdentifier(userId);
|
41611
41789
|
yield this.callWithChatAdapter.removeParticipant(participant);
|
41612
41790
|
});
|
41613
|
-
this.createStreamView = (remoteUserId, options) => __awaiter$
|
41614
|
-
this.disposeStreamView = (remoteUserId, options) => __awaiter$
|
41791
|
+
this.createStreamView = (remoteUserId, options) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.createStreamView(remoteUserId, options); });
|
41792
|
+
this.disposeStreamView = (remoteUserId, options) => __awaiter$a(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.disposeStreamView(remoteUserId, options); });
|
41615
41793
|
/* @conditional-compile-remove(PSTN-calls) */
|
41616
|
-
this.holdCall = () => __awaiter$
|
41794
|
+
this.holdCall = () => __awaiter$a(this, void 0, void 0, function* () {
|
41617
41795
|
yield this.callWithChatAdapter.holdCall();
|
41618
41796
|
});
|
41619
41797
|
/* @conditional-compile-remove(PSTN-calls) */
|
41620
|
-
this.resumeCall = () => __awaiter$
|
41798
|
+
this.resumeCall = () => __awaiter$a(this, void 0, void 0, function* () {
|
41621
41799
|
yield this.callWithChatAdapter.resumeCall();
|
41622
41800
|
});
|
41623
|
-
this.sendDtmfTone = (dtmfTone) => __awaiter$
|
41801
|
+
this.sendDtmfTone = (dtmfTone) => __awaiter$a(this, void 0, void 0, function* () {
|
41624
41802
|
yield this.callWithChatAdapter.sendDtmfTone(dtmfTone);
|
41625
41803
|
});
|
41626
41804
|
this.callWithChatAdapter = callWithChatAdapter;
|
@@ -41636,7 +41814,7 @@ class CallWithChatBackedCallAdapter {
|
|
41636
41814
|
}
|
41637
41815
|
/* @conditional-compile-remove(PSTN-calls) */
|
41638
41816
|
addParticipant(participant, options) {
|
41639
|
-
return __awaiter$
|
41817
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41640
41818
|
if (communicationCommon.isPhoneNumberIdentifier(participant) && options) {
|
41641
41819
|
return this.callWithChatAdapter.addParticipant(participant, options);
|
41642
41820
|
}
|
@@ -41650,32 +41828,32 @@ class CallWithChatBackedCallAdapter {
|
|
41650
41828
|
return this.callWithChatAdapter.allowUnsupportedBrowserVersion();
|
41651
41829
|
}
|
41652
41830
|
startCaptions(options) {
|
41653
|
-
return __awaiter$
|
41654
|
-
this.callWithChatAdapter.startCaptions(options);
|
41831
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41832
|
+
yield this.callWithChatAdapter.startCaptions(options);
|
41655
41833
|
});
|
41656
41834
|
}
|
41657
|
-
stopCaptions() {
|
41658
|
-
return __awaiter$
|
41659
|
-
this.callWithChatAdapter.stopCaptions();
|
41835
|
+
stopCaptions(options) {
|
41836
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41837
|
+
yield this.callWithChatAdapter.stopCaptions(options);
|
41660
41838
|
});
|
41661
41839
|
}
|
41662
41840
|
setCaptionLanguage(language) {
|
41663
|
-
return __awaiter$
|
41664
|
-
this.callWithChatAdapter.setCaptionLanguage(language);
|
41841
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41842
|
+
yield this.callWithChatAdapter.setCaptionLanguage(language);
|
41665
41843
|
});
|
41666
41844
|
}
|
41667
41845
|
setSpokenLanguage(language) {
|
41668
|
-
return __awaiter$
|
41669
|
-
this.callWithChatAdapter.setSpokenLanguage(language);
|
41846
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41847
|
+
yield this.callWithChatAdapter.setSpokenLanguage(language);
|
41670
41848
|
});
|
41671
41849
|
}
|
41672
41850
|
startVideoBackgroundEffect(videoBackgroundEffect) {
|
41673
|
-
return __awaiter$
|
41851
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41674
41852
|
yield this.callWithChatAdapter.startVideoBackgroundEffect(videoBackgroundEffect);
|
41675
41853
|
});
|
41676
41854
|
}
|
41677
41855
|
stopVideoBackgroundEffects() {
|
41678
|
-
return __awaiter$
|
41856
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41679
41857
|
yield this.callWithChatAdapter.stopVideoBackgroundEffects();
|
41680
41858
|
});
|
41681
41859
|
}
|
@@ -41685,41 +41863,53 @@ class CallWithChatBackedCallAdapter {
|
|
41685
41863
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground) {
|
41686
41864
|
return this.callWithChatAdapter.updateSelectedVideoBackgroundEffect(selectedVideoBackground);
|
41687
41865
|
}
|
41866
|
+
/* @conditional-compile-remove(DNS) */
|
41867
|
+
startNoiseSuppressionEffect() {
|
41868
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41869
|
+
return this.callWithChatAdapter.startNoiseSuppressionEffect();
|
41870
|
+
});
|
41871
|
+
}
|
41872
|
+
/* @conditional-compile-remove(DNS) */
|
41873
|
+
stopNoiseSuppressionEffect() {
|
41874
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41875
|
+
return this.callWithChatAdapter.stopNoiseSuppressionEffect();
|
41876
|
+
});
|
41877
|
+
}
|
41688
41878
|
submitSurvey(survey) {
|
41689
|
-
return __awaiter$
|
41879
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41690
41880
|
return this.callWithChatAdapter.submitSurvey(survey);
|
41691
41881
|
});
|
41692
41882
|
}
|
41693
41883
|
startSpotlight(userIds) {
|
41694
|
-
return __awaiter$
|
41884
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41695
41885
|
return this.callWithChatAdapter.startSpotlight(userIds);
|
41696
41886
|
});
|
41697
41887
|
}
|
41698
41888
|
stopSpotlight(userIds) {
|
41699
|
-
return __awaiter$
|
41889
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41700
41890
|
return this.callWithChatAdapter.stopSpotlight(userIds);
|
41701
41891
|
});
|
41702
41892
|
}
|
41703
41893
|
stopAllSpotlight() {
|
41704
|
-
return __awaiter$
|
41894
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41705
41895
|
return this.callWithChatAdapter.stopAllSpotlight();
|
41706
41896
|
});
|
41707
41897
|
}
|
41708
41898
|
/* @conditional-compile-remove(soft-mute) */
|
41709
41899
|
muteParticipant(userId) {
|
41710
|
-
return __awaiter$
|
41900
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41711
41901
|
return this.callWithChatAdapter.muteParticipant(userId);
|
41712
41902
|
});
|
41713
41903
|
}
|
41714
41904
|
/* @conditional-compile-remove(soft-mute) */
|
41715
41905
|
muteAllRemoteParticipants() {
|
41716
|
-
return __awaiter$
|
41906
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41717
41907
|
return this.callWithChatAdapter.muteAllRemoteParticipants();
|
41718
41908
|
});
|
41719
41909
|
}
|
41720
41910
|
/* @conditional-compile-remove(breakout-rooms) */
|
41721
41911
|
returnFromBreakoutRoom() {
|
41722
|
-
return __awaiter$
|
41912
|
+
return __awaiter$a(this, void 0, void 0, function* () {
|
41723
41913
|
return this.callWithChatAdapter.returnFromBreakoutRoom();
|
41724
41914
|
});
|
41725
41915
|
}
|
@@ -41744,6 +41934,8 @@ function callAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState)
|
|
41744
41934
|
environmentInfo: callWithChatAdapterState.environmentInfo,
|
41745
41935
|
videoBackgroundImages: callWithChatAdapterState.videoBackgroundImages,
|
41746
41936
|
onResolveVideoEffectDependency: callWithChatAdapterState.onResolveVideoEffectDependency,
|
41937
|
+
/* @conditional-compile-remove(DNS) */
|
41938
|
+
onResolveDeepNoiseSuppressionDependency: callWithChatAdapterState.onResolveDeepNoiseSuppressionDependency,
|
41747
41939
|
selectedVideoBackgroundEffect: callWithChatAdapterState.selectedVideoBackgroundEffect,
|
41748
41940
|
reactions: callWithChatAdapterState.reactions
|
41749
41941
|
};
|
@@ -41751,7 +41943,7 @@ function callAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState)
|
|
41751
41943
|
|
41752
41944
|
// Copyright (c) Microsoft Corporation.
|
41753
41945
|
// Licensed under the MIT License.
|
41754
|
-
var __awaiter$
|
41946
|
+
var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
41755
41947
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
41756
41948
|
return new (P || (P = Promise))(function (resolve, reject) {
|
41757
41949
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -41772,26 +41964,26 @@ class CallWithChatBackedChatAdapter {
|
|
41772
41964
|
// For onStateChange we must convert CallWithChat state to chat state. This involves creating a new handler to be passed into the onStateChange.
|
41773
41965
|
// 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
41966
|
this.eventStore = new Map();
|
41775
|
-
this.fetchInitialData = () => __awaiter$
|
41967
|
+
this.fetchInitialData = () => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.fetchInitialData(); });
|
41776
41968
|
// due to a bug in babel, we can't use arrow function here
|
41777
41969
|
// affecting conditional-compile-remove(attachment-upload)
|
41778
41970
|
// have to bind this since the scope of 'this' is lost when the function is passed as a callback
|
41779
41971
|
this.sendMessageHandler = function (content,
|
41780
41972
|
/* @conditional-compile-remove(file-sharing-acs) */
|
41781
41973
|
options) {
|
41782
|
-
return __awaiter$
|
41974
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
41783
41975
|
yield this.callWithChatAdapter.sendMessage(content, /* @conditional-compile-remove(file-sharing-acs) */ options);
|
41784
41976
|
});
|
41785
41977
|
};
|
41786
41978
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
41787
41979
|
this.uploadImageHandler = function (image, fileName) {
|
41788
|
-
return __awaiter$
|
41980
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
41789
41981
|
return yield this.callWithChatAdapter.uploadImage(image, fileName);
|
41790
41982
|
});
|
41791
41983
|
};
|
41792
41984
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
41793
41985
|
this.deleteImageHandler = function (imageId) {
|
41794
|
-
return __awaiter$
|
41986
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
41795
41987
|
return yield this.callWithChatAdapter.deleteImage(imageId);
|
41796
41988
|
});
|
41797
41989
|
};
|
@@ -41800,10 +41992,10 @@ class CallWithChatBackedChatAdapter {
|
|
41800
41992
|
this.uploadImage = this.uploadImageHandler.bind(this);
|
41801
41993
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
41802
41994
|
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$
|
41995
|
+
this.sendReadReceipt = (chatMessageId) => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.sendReadReceipt(chatMessageId); });
|
41996
|
+
this.sendTypingIndicator = () => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.sendTypingIndicator(); });
|
41997
|
+
this.removeParticipant = (userId) => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.removeParticipant(userId); });
|
41998
|
+
this.loadPreviousChatMessages = (messagesToLoad) => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.loadPreviousChatMessages(messagesToLoad); });
|
41807
41999
|
this.dispose = () => this.callWithChatAdapter.dispose();
|
41808
42000
|
this.onStateChange = (handler) => {
|
41809
42001
|
const convertedHandler = (state) => {
|
@@ -41846,22 +42038,22 @@ class CallWithChatBackedChatAdapter {
|
|
41846
42038
|
// affecting conditional-compile-remove(attachment-upload)
|
41847
42039
|
// have to bind this since the scope of 'this' is lost when the function is passed as a callback
|
41848
42040
|
this.updateMessageHandler = function (messageId, content, options) {
|
41849
|
-
return __awaiter$
|
42041
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
41850
42042
|
yield this.callWithChatAdapter.updateMessage(messageId, content, options);
|
41851
42043
|
});
|
41852
42044
|
};
|
41853
42045
|
this.updateMessage = this.updateMessageHandler.bind(this);
|
41854
|
-
this.deleteMessage = (messageId) => __awaiter$
|
42046
|
+
this.deleteMessage = (messageId) => __awaiter$9(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.deleteMessage(messageId); });
|
41855
42047
|
this.clearErrors = (errorTypes) => {
|
41856
42048
|
throw new Error(`Method not supported in CallWithChatComposite.`);
|
41857
42049
|
};
|
41858
|
-
this.setTopic = (topicName) => __awaiter$
|
42050
|
+
this.setTopic = (topicName) => __awaiter$9(this, void 0, void 0, function* () {
|
41859
42051
|
throw new Error(`Chat Topics are not supported in CallWithChatComposite.`);
|
41860
42052
|
});
|
41861
42053
|
this.callWithChatAdapter = callWithChatAdapter;
|
41862
42054
|
}
|
41863
42055
|
downloadResourceToCache(resourceDetails) {
|
41864
|
-
return __awaiter$
|
42056
|
+
return __awaiter$9(this, void 0, void 0, function* () {
|
41865
42057
|
this.callWithChatAdapter.downloadResourceToCache(resourceDetails);
|
41866
42058
|
});
|
41867
42059
|
}
|
@@ -42334,6 +42526,8 @@ function callWithChatAdapterStateFromBackingStates(callAdapter) {
|
|
42334
42526
|
environmentInfo: callAdapterState.environmentInfo,
|
42335
42527
|
videoBackgroundImages: callAdapterState.videoBackgroundImages,
|
42336
42528
|
onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency,
|
42529
|
+
/* @conditional-compile-remove(DNS) */
|
42530
|
+
onResolveDeepNoiseSuppressionDependency: callAdapterState.onResolveDeepNoiseSuppressionDependency,
|
42337
42531
|
selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect,
|
42338
42532
|
/* @conditional-compile-remove(hide-attendee-name) */
|
42339
42533
|
/** Hide attendee names in teams meeting */
|
@@ -42353,12 +42547,14 @@ function mergeChatAdapterStateIntoCallWithChatAdapterState(existingCallWithChatA
|
|
42353
42547
|
function mergeCallAdapterStateIntoCallWithChatAdapterState(existingCallWithChatAdapterState, callAdapterState) {
|
42354
42548
|
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
42549
|
/* @conditional-compile-remove(breakout-rooms) */
|
42356
|
-
latestCallNotifications: callAdapterState.latestNotifications, videoBackgroundImages: callAdapterState.videoBackgroundImages, onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency,
|
42550
|
+
latestCallNotifications: callAdapterState.latestNotifications, videoBackgroundImages: callAdapterState.videoBackgroundImages, onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency,
|
42551
|
+
/* @conditional-compile-remove(DNS) */
|
42552
|
+
onResolveDeepNoiseSuppressionDependency: callAdapterState.onResolveDeepNoiseSuppressionDependency, selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect });
|
42357
42553
|
}
|
42358
42554
|
|
42359
42555
|
// Copyright (c) Microsoft Corporation.
|
42360
42556
|
// Licensed under the MIT License.
|
42361
|
-
var __awaiter$
|
42557
|
+
var __awaiter$8 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
42362
42558
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
42363
42559
|
return new (P || (P = Promise))(function (resolve, reject) {
|
42364
42560
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -42426,7 +42622,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42426
42622
|
};
|
42427
42623
|
this.callAdapter.onStateChange(onCallStateChange);
|
42428
42624
|
/* @conditional-compile-remove(breakout-rooms) */
|
42429
|
-
this.callAdapter.on('breakoutRoomsUpdated', (eventData) => __awaiter$
|
42625
|
+
this.callAdapter.on('breakoutRoomsUpdated', (eventData) => __awaiter$8(this, void 0, void 0, function* () {
|
42430
42626
|
if (eventData.type === 'join') {
|
42431
42627
|
yield this.breakoutRoomJoined(eventData.data);
|
42432
42628
|
}
|
@@ -42450,7 +42646,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42450
42646
|
}
|
42451
42647
|
/* @conditional-compile-remove(breakout-rooms) */
|
42452
42648
|
breakoutRoomJoined(call) {
|
42453
|
-
return __awaiter$
|
42649
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42454
42650
|
var _a;
|
42455
42651
|
const targetThreadId = call.info.threadId;
|
42456
42652
|
// If the chat adapter is not on the target thread then we need to switch to the breakout room chat adapter
|
@@ -42485,7 +42681,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42485
42681
|
}
|
42486
42682
|
/* @conditional-compile-remove(breakout-rooms) */
|
42487
42683
|
setBreakoutRoomChatAdapterToThread(targetThreadId) {
|
42488
|
-
return __awaiter$
|
42684
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42489
42685
|
if (this.breakoutRoomChatAdapter) {
|
42490
42686
|
// If the breakout room chat adapter is not set on the target thread then unsubscribe, dispose, and
|
42491
42687
|
// reinitialize the chat adapter for the target thread
|
@@ -42593,6 +42789,10 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42593
42789
|
this.startVideoBackgroundEffect.bind(this);
|
42594
42790
|
this.stopVideoBackgroundEffects.bind(this);
|
42595
42791
|
this.updateBackgroundPickerImages.bind(this);
|
42792
|
+
/* @conditional-compile-remove(DNS) */
|
42793
|
+
this.startNoiseSuppressionEffect.bind(this);
|
42794
|
+
/* @conditional-compile-remove(DNS) */
|
42795
|
+
this.stopNoiseSuppressionEffect.bind(this);
|
42596
42796
|
}
|
42597
42797
|
/** Join existing Call. */
|
42598
42798
|
joinCall(options) {
|
@@ -42605,7 +42805,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42605
42805
|
}
|
42606
42806
|
/** Leave current Call. */
|
42607
42807
|
leaveCall(forEveryone) {
|
42608
|
-
return __awaiter$
|
42808
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42609
42809
|
// Only remove self from the GroupCall. Contoso must manage access to Chat.
|
42610
42810
|
yield this.callAdapter.leaveCall(forEveryone);
|
42611
42811
|
});
|
@@ -42652,7 +42852,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42652
42852
|
}
|
42653
42853
|
/** Remove a participant from the Call only. */
|
42654
42854
|
removeParticipant(userId) {
|
42655
|
-
return __awaiter$
|
42855
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42656
42856
|
let participant = userId;
|
42657
42857
|
/* @conditional-compile-remove(PSTN-calls) */
|
42658
42858
|
participant = _toCommunicationIdentifier(userId);
|
@@ -42660,132 +42860,132 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42660
42860
|
});
|
42661
42861
|
}
|
42662
42862
|
setCamera(device, options) {
|
42663
|
-
return __awaiter$
|
42863
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42664
42864
|
yield this.callAdapter.setCamera(device, options);
|
42665
42865
|
});
|
42666
42866
|
}
|
42667
42867
|
/** Set the microphone to be used in the Call. */
|
42668
42868
|
setMicrophone(device) {
|
42669
|
-
return __awaiter$
|
42869
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42670
42870
|
yield this.callAdapter.setMicrophone(device);
|
42671
42871
|
});
|
42672
42872
|
}
|
42673
42873
|
/** Set the speaker to be used in the Call. */
|
42674
42874
|
setSpeaker(device) {
|
42675
|
-
return __awaiter$
|
42875
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42676
42876
|
yield this.callAdapter.setSpeaker(device);
|
42677
42877
|
});
|
42678
42878
|
}
|
42679
42879
|
askDevicePermission(constraints) {
|
42680
|
-
return __awaiter$
|
42880
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42681
42881
|
yield this.callAdapter.askDevicePermission(constraints);
|
42682
42882
|
});
|
42683
42883
|
}
|
42684
42884
|
/** Query for available cameras. */
|
42685
42885
|
queryCameras() {
|
42686
|
-
return __awaiter$
|
42886
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42687
42887
|
return yield this.callAdapter.queryCameras();
|
42688
42888
|
});
|
42689
42889
|
}
|
42690
42890
|
/** Query for available microphones. */
|
42691
42891
|
queryMicrophones() {
|
42692
|
-
return __awaiter$
|
42892
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42693
42893
|
return yield this.callAdapter.queryMicrophones();
|
42694
42894
|
});
|
42695
42895
|
}
|
42696
42896
|
/** Query for available speakers. */
|
42697
42897
|
querySpeakers() {
|
42698
|
-
return __awaiter$
|
42898
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42699
42899
|
return yield this.callAdapter.querySpeakers();
|
42700
42900
|
});
|
42701
42901
|
}
|
42702
42902
|
/** Start the camera for the user in the Call. */
|
42703
42903
|
startCamera(options) {
|
42704
|
-
return __awaiter$
|
42904
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42705
42905
|
yield this.callAdapter.startCamera(options);
|
42706
42906
|
});
|
42707
42907
|
}
|
42708
42908
|
/** Stop the camera for the user in the Call. */
|
42709
42909
|
stopCamera() {
|
42710
|
-
return __awaiter$
|
42910
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42711
42911
|
yield this.callAdapter.stopCamera();
|
42712
42912
|
});
|
42713
42913
|
}
|
42714
42914
|
/** Mute the user in the Call. */
|
42715
42915
|
mute() {
|
42716
|
-
return __awaiter$
|
42916
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42717
42917
|
yield this.callAdapter.mute();
|
42718
42918
|
});
|
42719
42919
|
}
|
42720
42920
|
/** Unmute the user in the Call. */
|
42721
42921
|
unmute() {
|
42722
|
-
return __awaiter$
|
42922
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42723
42923
|
yield this.callAdapter.unmute();
|
42724
42924
|
});
|
42725
42925
|
}
|
42726
42926
|
/** Trigger the user to start screen share. */
|
42727
42927
|
startScreenShare() {
|
42728
|
-
return __awaiter$
|
42928
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42729
42929
|
yield this.callAdapter.startScreenShare();
|
42730
42930
|
});
|
42731
42931
|
}
|
42732
42932
|
/** Stop the current active screen share. */
|
42733
42933
|
stopScreenShare() {
|
42734
|
-
return __awaiter$
|
42934
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42735
42935
|
yield this.callAdapter.stopScreenShare();
|
42736
42936
|
});
|
42737
42937
|
}
|
42738
42938
|
/** Raise hand for local user. */
|
42739
42939
|
raiseHand() {
|
42740
|
-
return __awaiter$
|
42940
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42741
42941
|
yield this.callAdapter.raiseHand();
|
42742
42942
|
});
|
42743
42943
|
}
|
42744
42944
|
/** Lower hand for local user. */
|
42745
42945
|
lowerHand() {
|
42746
|
-
return __awaiter$
|
42946
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42747
42947
|
yield this.callAdapter.lowerHand();
|
42748
42948
|
});
|
42749
42949
|
}
|
42750
42950
|
/** Reaction clicked by the local user. */
|
42751
42951
|
onReactionClick(reaction) {
|
42752
|
-
return __awaiter$
|
42952
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42753
42953
|
yield this.callAdapter.onReactionClick(reaction);
|
42754
42954
|
});
|
42755
42955
|
}
|
42756
42956
|
/** Create a stream view for a remote participants video feed. */
|
42757
42957
|
createStreamView(remoteUserId, options) {
|
42758
|
-
return __awaiter$
|
42958
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42759
42959
|
return yield this.callAdapter.createStreamView(remoteUserId, options);
|
42760
42960
|
});
|
42761
42961
|
}
|
42762
42962
|
/** Dispose of a created stream view of a remote participants video feed. */
|
42763
42963
|
disposeStreamView(remoteUserId, options) {
|
42764
|
-
return __awaiter$
|
42964
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42765
42965
|
yield this.callAdapter.disposeStreamView(remoteUserId, options);
|
42766
42966
|
});
|
42767
42967
|
}
|
42768
42968
|
/** Dispose of a remote screen share */
|
42769
42969
|
disposeScreenShareStreamView(remoteUserId) {
|
42770
|
-
return __awaiter$
|
42970
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42771
42971
|
yield this.callAdapter.disposeScreenShareStreamView(remoteUserId);
|
42772
42972
|
});
|
42773
42973
|
}
|
42774
42974
|
/** Dispose of a remote video stream */
|
42775
42975
|
disposeRemoteVideoStreamView(remoteUserId) {
|
42776
|
-
return __awaiter$
|
42976
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42777
42977
|
yield this.callAdapter.disposeRemoteVideoStreamView(remoteUserId);
|
42778
42978
|
});
|
42779
42979
|
}
|
42780
42980
|
/** Dispose of the local video stream */
|
42781
42981
|
disposeLocalVideoStreamView() {
|
42782
|
-
return __awaiter$
|
42982
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42783
42983
|
yield this.callAdapter.disposeLocalVideoStreamView();
|
42784
42984
|
});
|
42785
42985
|
}
|
42786
42986
|
/** Fetch initial Call and Chat data such as chat messages. */
|
42787
42987
|
fetchInitialData() {
|
42788
|
-
return __awaiter$
|
42988
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42789
42989
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
42790
42990
|
return adapter.fetchInitialData();
|
42791
42991
|
});
|
@@ -42795,7 +42995,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42795
42995
|
sendMessage(content,
|
42796
42996
|
/* @conditional-compile-remove(file-sharing-acs) */
|
42797
42997
|
options) {
|
42798
|
-
return __awaiter$
|
42998
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42799
42999
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
42800
43000
|
return adapter.sendMessage(content, /* @conditional-compile-remove(file-sharing-acs) */ options);
|
42801
43001
|
});
|
@@ -42804,7 +43004,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42804
43004
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
42805
43005
|
/** Upload a chat image. */
|
42806
43006
|
uploadImage(image, imageFileName) {
|
42807
|
-
return __awaiter$
|
43007
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42808
43008
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
42809
43009
|
return adapter.uploadImage(image, imageFileName);
|
42810
43010
|
});
|
@@ -42813,7 +43013,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42813
43013
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
42814
43014
|
/** Delete a chat image. */
|
42815
43015
|
deleteImage(imageId) {
|
42816
|
-
return __awaiter$
|
43016
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42817
43017
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
42818
43018
|
return adapter.deleteImage(imageId);
|
42819
43019
|
});
|
@@ -42821,7 +43021,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42821
43021
|
}
|
42822
43022
|
/** Send a chat read receipt. */
|
42823
43023
|
sendReadReceipt(chatMessageId) {
|
42824
|
-
return __awaiter$
|
43024
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42825
43025
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
42826
43026
|
return adapter.sendReadReceipt(chatMessageId);
|
42827
43027
|
});
|
@@ -42829,7 +43029,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42829
43029
|
}
|
42830
43030
|
/** Send an isTyping indicator. */
|
42831
43031
|
sendTypingIndicator() {
|
42832
|
-
return __awaiter$
|
43032
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42833
43033
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
42834
43034
|
return adapter.sendTypingIndicator();
|
42835
43035
|
});
|
@@ -42837,7 +43037,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42837
43037
|
}
|
42838
43038
|
/** Load previous Chat messages. */
|
42839
43039
|
loadPreviousChatMessages(messagesToLoad) {
|
42840
|
-
return __awaiter$
|
43040
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42841
43041
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
42842
43042
|
return adapter.loadPreviousChatMessages(messagesToLoad);
|
42843
43043
|
});
|
@@ -42845,7 +43045,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42845
43045
|
}
|
42846
43046
|
/** Update an existing message. */
|
42847
43047
|
updateMessage(messageId, content, options) {
|
42848
|
-
return __awaiter$
|
43048
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42849
43049
|
return this.executeWithResolvedChatAdapter((adapter) => {
|
42850
43050
|
return adapter.updateMessage(messageId, content, options);
|
42851
43051
|
});
|
@@ -42853,14 +43053,14 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42853
43053
|
}
|
42854
43054
|
/** Delete an existing message. */
|
42855
43055
|
deleteMessage(messageId) {
|
42856
|
-
return __awaiter$
|
43056
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42857
43057
|
return yield this.executeWithResolvedChatAdapter((adapter) => {
|
42858
43058
|
return adapter.deleteMessage(messageId);
|
42859
43059
|
});
|
42860
43060
|
});
|
42861
43061
|
}
|
42862
43062
|
downloadResourceToCache(resourceDetails) {
|
42863
|
-
return __awaiter$
|
43063
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42864
43064
|
this.executeWithResolvedChatAdapter((adapter) => {
|
42865
43065
|
adapter.downloadResourceToCache(resourceDetails);
|
42866
43066
|
});
|
@@ -42873,19 +43073,19 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42873
43073
|
}
|
42874
43074
|
/* @conditional-compile-remove(PSTN-calls) */
|
42875
43075
|
holdCall() {
|
42876
|
-
return __awaiter$
|
43076
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42877
43077
|
return yield this.callAdapter.holdCall();
|
42878
43078
|
});
|
42879
43079
|
}
|
42880
43080
|
/* @conditional-compile-remove(PSTN-calls) */
|
42881
43081
|
resumeCall() {
|
42882
|
-
return __awaiter$
|
43082
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42883
43083
|
return yield this.callAdapter.resumeCall();
|
42884
43084
|
});
|
42885
43085
|
}
|
42886
43086
|
/* @conditional-compile-remove(PSTN-calls) */
|
42887
43087
|
addParticipant(participant, options) {
|
42888
|
-
return __awaiter$
|
43088
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42889
43089
|
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
42890
43090
|
return yield this.callAdapter.addParticipant(participant);
|
42891
43091
|
}
|
@@ -42895,7 +43095,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42895
43095
|
});
|
42896
43096
|
}
|
42897
43097
|
sendDtmfTone(dtmfTone) {
|
42898
|
-
return __awaiter$
|
43098
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42899
43099
|
return yield this.callAdapter.sendDtmfTone(dtmfTone);
|
42900
43100
|
});
|
42901
43101
|
}
|
@@ -42904,32 +43104,32 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42904
43104
|
return this.callAdapter.allowUnsupportedBrowserVersion();
|
42905
43105
|
}
|
42906
43106
|
startCaptions(options) {
|
42907
|
-
return __awaiter$
|
43107
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42908
43108
|
yield this.callAdapter.startCaptions(options);
|
42909
43109
|
});
|
42910
43110
|
}
|
42911
|
-
stopCaptions() {
|
42912
|
-
return __awaiter$
|
42913
|
-
yield this.callAdapter.stopCaptions();
|
43111
|
+
stopCaptions(options) {
|
43112
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
43113
|
+
yield this.callAdapter.stopCaptions(options);
|
42914
43114
|
});
|
42915
43115
|
}
|
42916
43116
|
setCaptionLanguage(language) {
|
42917
|
-
return __awaiter$
|
43117
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42918
43118
|
yield this.callAdapter.setCaptionLanguage(language);
|
42919
43119
|
});
|
42920
43120
|
}
|
42921
43121
|
setSpokenLanguage(language) {
|
42922
|
-
return __awaiter$
|
43122
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42923
43123
|
yield this.callAdapter.setSpokenLanguage(language);
|
42924
43124
|
});
|
42925
43125
|
}
|
42926
43126
|
startVideoBackgroundEffect(videoBackgroundEffect) {
|
42927
|
-
return __awaiter$
|
43127
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42928
43128
|
yield this.callAdapter.startVideoBackgroundEffect(videoBackgroundEffect);
|
42929
43129
|
});
|
42930
43130
|
}
|
42931
43131
|
stopVideoBackgroundEffects() {
|
42932
|
-
return __awaiter$
|
43132
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42933
43133
|
return yield this.callAdapter.stopVideoBackgroundEffects();
|
42934
43134
|
});
|
42935
43135
|
}
|
@@ -42939,41 +43139,53 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42939
43139
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground) {
|
42940
43140
|
return this.callAdapter.updateSelectedVideoBackgroundEffect(selectedVideoBackground);
|
42941
43141
|
}
|
43142
|
+
/* @conditional-compile-remove(DNS) */
|
43143
|
+
startNoiseSuppressionEffect() {
|
43144
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
43145
|
+
return yield this.callAdapter.startNoiseSuppressionEffect();
|
43146
|
+
});
|
43147
|
+
}
|
43148
|
+
/* @conditional-compile-remove(DNS) */
|
43149
|
+
stopNoiseSuppressionEffect() {
|
43150
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
43151
|
+
return yield this.callAdapter.stopNoiseSuppressionEffect();
|
43152
|
+
});
|
43153
|
+
}
|
42942
43154
|
submitSurvey(survey) {
|
42943
|
-
return __awaiter$
|
43155
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42944
43156
|
return this.callAdapter.submitSurvey(survey);
|
42945
43157
|
});
|
42946
43158
|
}
|
42947
43159
|
startSpotlight(userIds) {
|
42948
|
-
return __awaiter$
|
43160
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42949
43161
|
return this.callAdapter.startSpotlight(userIds);
|
42950
43162
|
});
|
42951
43163
|
}
|
42952
43164
|
stopSpotlight(userIds) {
|
42953
|
-
return __awaiter$
|
43165
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42954
43166
|
return this.callAdapter.stopSpotlight(userIds);
|
42955
43167
|
});
|
42956
43168
|
}
|
42957
43169
|
stopAllSpotlight() {
|
42958
|
-
return __awaiter$
|
43170
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42959
43171
|
return this.callAdapter.stopAllSpotlight();
|
42960
43172
|
});
|
42961
43173
|
}
|
42962
43174
|
/* @conditional-compile-remove(soft-mute) */
|
42963
43175
|
muteParticipant(userId) {
|
42964
|
-
return __awaiter$
|
43176
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42965
43177
|
return this.callAdapter.muteParticipant(userId);
|
42966
43178
|
});
|
42967
43179
|
}
|
42968
43180
|
/* @conditional-compile-remove(soft-mute) */
|
42969
43181
|
muteAllRemoteParticipants() {
|
42970
|
-
return __awaiter$
|
43182
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42971
43183
|
return this.callAdapter.muteAllRemoteParticipants();
|
42972
43184
|
});
|
42973
43185
|
}
|
42974
43186
|
/* @conditional-compile-remove(breakout-rooms) */
|
42975
43187
|
returnFromBreakoutRoom() {
|
42976
|
-
return __awaiter$
|
43188
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
42977
43189
|
var _a, _b, _c, _d;
|
42978
43190
|
if (this.originCallChatAdapter &&
|
42979
43191
|
((_a = this.context.getState().chat) === null || _a === void 0 ? void 0 : _a.threadId) !== this.originCallChatAdapter.getState().thread.threadId) {
|
@@ -43218,7 +43430,7 @@ class CallAndChatProvider {
|
|
43218
43430
|
return false;
|
43219
43431
|
}
|
43220
43432
|
getChatThreadPromise() {
|
43221
|
-
return __awaiter$
|
43433
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
43222
43434
|
return this.getChatThread();
|
43223
43435
|
});
|
43224
43436
|
}
|
@@ -43243,7 +43455,7 @@ class TeamsMeetingLinkProvider {
|
|
43243
43455
|
throw new Error('Chat thread ID should be retrieved from call.callInfo using method getChatThreadPromise');
|
43244
43456
|
}
|
43245
43457
|
getChatThreadPromise() {
|
43246
|
-
return __awaiter$
|
43458
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
43247
43459
|
{
|
43248
43460
|
// Wait for the call to be connected and get the chat thread ID from `call.callInfo`.
|
43249
43461
|
const chatThreadPromise = new Promise((resolve) => {
|
@@ -43287,7 +43499,7 @@ class TeamsMeetingIdProvider {
|
|
43287
43499
|
* @returns the chat thread ID for the given meeting ID.
|
43288
43500
|
*/
|
43289
43501
|
getChatThreadPromise() {
|
43290
|
-
return __awaiter$
|
43502
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
43291
43503
|
return new Promise((resolve) => {
|
43292
43504
|
const stateChangeListener = (state) => {
|
43293
43505
|
var _a, _b, _c;
|
@@ -43319,7 +43531,7 @@ class TeamsMeetingIdProvider {
|
|
43319
43531
|
*
|
43320
43532
|
* @public
|
43321
43533
|
*/
|
43322
|
-
const createAzureCommunicationCallWithChatAdapter = (_a) => __awaiter$
|
43534
|
+
const createAzureCommunicationCallWithChatAdapter = (_a) => __awaiter$8(void 0, [_a], void 0, function* ({ userId, displayName, credential, endpoint, locator,
|
43323
43535
|
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId, callAdapterOptions }) {
|
43324
43536
|
const callAdapterLocator = isTeamsMeetingLocator(locator) ? locator : locator.callLocator;
|
43325
43537
|
const callAdapter = _createAzureCommunicationCallAdapterInner({
|
@@ -43401,7 +43613,7 @@ beforeDispose) => {
|
|
43401
43613
|
if (!credential || !displayName || !endpoint || !locator || !userId) {
|
43402
43614
|
return;
|
43403
43615
|
}
|
43404
|
-
(() => __awaiter$
|
43616
|
+
(() => __awaiter$8(void 0, void 0, void 0, function* () {
|
43405
43617
|
if (adapterRef.current) {
|
43406
43618
|
// Dispose the old adapter when a new one is created.
|
43407
43619
|
//
|
@@ -43452,7 +43664,7 @@ beforeDispose) => {
|
|
43452
43664
|
// Dispose any existing adapter when the component unmounts.
|
43453
43665
|
React.useEffect(() => {
|
43454
43666
|
return () => {
|
43455
|
-
(() => __awaiter$
|
43667
|
+
(() => __awaiter$8(void 0, void 0, void 0, function* () {
|
43456
43668
|
if (adapterRef.current) {
|
43457
43669
|
if (beforeDisposeRef.current) {
|
43458
43670
|
yield beforeDisposeRef.current(adapterRef.current);
|
@@ -43474,7 +43686,7 @@ beforeDispose) => {
|
|
43474
43686
|
*
|
43475
43687
|
* @public
|
43476
43688
|
*/
|
43477
|
-
const createAzureCommunicationCallWithChatAdapterFromClients = (_b) => __awaiter$
|
43689
|
+
const createAzureCommunicationCallWithChatAdapterFromClients = (_b) => __awaiter$8(void 0, [_b], void 0, function* ({ callClient, callAgent, callLocator, chatClient, chatThreadClient, callAdapterOptions }) {
|
43478
43690
|
const callAdapter = yield createAzureCommunicationCallAdapterFromClient(callClient, callAgent, callLocator, callAdapterOptions);
|
43479
43691
|
const chatAdapter = yield createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient);
|
43480
43692
|
return new AzureCommunicationCallWithChatAdapter(callAdapter, chatAdapter);
|
@@ -43791,7 +44003,7 @@ const COMPOSITE_LOCALE_ZH_TW = {
|
|
43791
44003
|
|
43792
44004
|
// Copyright (c) Microsoft Corporation.
|
43793
44005
|
// Licensed under the MIT License.
|
43794
|
-
var __awaiter$
|
44006
|
+
var __awaiter$7 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
43795
44007
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
43796
44008
|
return new (P || (P = Promise))(function (resolve, reject) {
|
43797
44009
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -43805,7 +44017,7 @@ var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
43805
44017
|
* Dependency resolution for video background effects using lazy loading.
|
43806
44018
|
* @public
|
43807
44019
|
*/
|
43808
|
-
const onResolveVideoEffectDependencyLazy = () => __awaiter$
|
44020
|
+
const onResolveVideoEffectDependencyLazy = () => __awaiter$7(void 0, void 0, void 0, function* () {
|
43809
44021
|
const module = yield import('@azure/communication-calling-effects');
|
43810
44022
|
const createBackgroundBlurEffect = (config) => {
|
43811
44023
|
return new module.BackgroundBlurEffect(config);
|
@@ -43822,7 +44034,7 @@ const onResolveVideoEffectDependencyLazy = () => __awaiter$5(void 0, void 0, voi
|
|
43822
44034
|
|
43823
44035
|
// Copyright (c) Microsoft Corporation.
|
43824
44036
|
// Licensed under the MIT License.
|
43825
|
-
var __awaiter$
|
44037
|
+
var __awaiter$6 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
43826
44038
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
43827
44039
|
return new (P || (P = Promise))(function (resolve, reject) {
|
43828
44040
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -43836,7 +44048,7 @@ var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
43836
44048
|
*
|
43837
44049
|
* @public
|
43838
44050
|
*/
|
43839
|
-
const onResolveVideoEffectDependency = () => __awaiter$
|
44051
|
+
const onResolveVideoEffectDependency = () => __awaiter$6(void 0, void 0, void 0, function* () {
|
43840
44052
|
const createBackgroundBlurEffect = (config) => {
|
43841
44053
|
return new communicationCallingEffects.BackgroundBlurEffect(config);
|
43842
44054
|
};
|
@@ -43850,6 +44062,55 @@ const onResolveVideoEffectDependency = () => __awaiter$4(void 0, void 0, void 0,
|
|
43850
44062
|
return VideoBackgroundEffectsDependency;
|
43851
44063
|
});
|
43852
44064
|
|
44065
|
+
// Copyright (c) Microsoft Corporation.
|
44066
|
+
// Licensed under the MIT License.
|
44067
|
+
var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
44068
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
44069
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
44070
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
44071
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
44072
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
44073
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
44074
|
+
});
|
44075
|
+
};
|
44076
|
+
/* @conditional-compile-remove(DNS) */
|
44077
|
+
/**
|
44078
|
+
*
|
44079
|
+
* Dependency resolution for video background effects using lazy loading.
|
44080
|
+
* @beta
|
44081
|
+
*/
|
44082
|
+
const onResolveDeepNoiseSuppressionDependencyLazy = () => __awaiter$5(void 0, void 0, void 0, function* () {
|
44083
|
+
const module = yield import('@azure/communication-calling-effects');
|
44084
|
+
const audioEffect = {
|
44085
|
+
noiseSuppression: new module.DeepNoiseSuppressionEffect()
|
44086
|
+
};
|
44087
|
+
return { deepNoiseSuppressionEffect: audioEffect };
|
44088
|
+
});
|
44089
|
+
|
44090
|
+
// Copyright (c) Microsoft Corporation.
|
44091
|
+
// Licensed under the MIT License.
|
44092
|
+
var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
44093
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
44094
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
44095
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
44096
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
44097
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
44098
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
44099
|
+
});
|
44100
|
+
};
|
44101
|
+
/* @conditional-compile-remove(DNS) */
|
44102
|
+
/**
|
44103
|
+
*
|
44104
|
+
* Dependency resolution for video background effects using lazy loading.
|
44105
|
+
* @beta
|
44106
|
+
*/
|
44107
|
+
const onResolveDeepNoiseSuppressionDependency = () => __awaiter$4(void 0, void 0, void 0, function* () {
|
44108
|
+
const audioEffect = {
|
44109
|
+
noiseSuppression: new communicationCallingEffects.DeepNoiseSuppressionEffect()
|
44110
|
+
};
|
44111
|
+
return { deepNoiseSuppressionEffect: audioEffect };
|
44112
|
+
});
|
44113
|
+
|
43853
44114
|
// Copyright (c) Microsoft Corporation.
|
43854
44115
|
// Licensed under the MIT License.
|
43855
44116
|
var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
@@ -44209,6 +44470,8 @@ exports.loadOutboundCallComposite = loadOutboundCallComposite;
|
|
44209
44470
|
exports.modifyInlineImagesInContentString = modifyInlineImagesInContentString;
|
44210
44471
|
exports.onRenderCancelIcon = onRenderCancelIcon;
|
44211
44472
|
exports.onRenderSubmitIcon = onRenderSubmitIcon;
|
44473
|
+
exports.onResolveDeepNoiseSuppressionDependency = onResolveDeepNoiseSuppressionDependency;
|
44474
|
+
exports.onResolveDeepNoiseSuppressionDependencyLazy = onResolveDeepNoiseSuppressionDependencyLazy;
|
44212
44475
|
exports.onResolveVideoEffectDependency = onResolveVideoEffectDependency;
|
44213
44476
|
exports.onResolveVideoEffectDependencyLazy = onResolveVideoEffectDependencyLazy;
|
44214
44477
|
exports.removeBrokenImageContentAndClearImageSizeStyles = removeBrokenImageContentAndClearImageSizeStyles;
|
@@ -44234,4 +44497,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
44234
44497
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
44235
44498
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
44236
44499
|
exports.useTheme = useTheme;
|
44237
|
-
//# sourceMappingURL=index-
|
44500
|
+
//# sourceMappingURL=index-CLXDq-Ko.js.map
|