@azure/communication-react 1.19.0-alpha-202408280014 → 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 +76 -4
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-JpEHAh2h.js → ChatMessageComponentAsRichTextEditBox-K_vrVBbn.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-JpEHAh2h.js.map → ChatMessageComponentAsRichTextEditBox-K_vrVBbn.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-ujBB-J3D.js → RichTextSendBoxWrapper-Ct-gMKVg.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-ujBB-J3D.js.map → RichTextSendBoxWrapper-Ct-gMKVg.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-D_pIA4Nc.js → index-CLXDq-Ko.js} +439 -318
- package/dist/dist-cjs/communication-react/index-CLXDq-Ko.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/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/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 +5 -0
- 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/adapter/AzureCommunicationCallAdapter.d.ts +3 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +41 -2
- 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 +31 -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/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/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/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 +3 -4
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +2 -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 +3 -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 +3 -4
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +5 -5
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.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/package.json +1 -1
- package/dist/dist-cjs/communication-react/index-D_pIA4Nc.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$12(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$12(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$M(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$K = (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$K(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$K(
|
|
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'));
|
@@ -24608,7 +24643,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24608
24643
|
}
|
24609
24644
|
});
|
24610
24645
|
/* @conditional-compile-remove(DNS) */
|
24611
|
-
const onStartNoiseSuppressionEffect = () => __awaiter$
|
24646
|
+
const onStartNoiseSuppressionEffect = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24612
24647
|
var _f;
|
24613
24648
|
const audioEffects = (options === null || options === void 0 ? void 0 : options.onResolveDeepNoiseSuppressionDependency) &&
|
24614
24649
|
((_f = (yield options.onResolveDeepNoiseSuppressionDependency())) === null || _f === void 0 ? void 0 : _f.deepNoiseSuppressionEffect);
|
@@ -24625,7 +24660,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24625
24660
|
}
|
24626
24661
|
});
|
24627
24662
|
/* @conditional-compile-remove(DNS) */
|
24628
|
-
const onStopNoiseSuppressionEffect = () => __awaiter$
|
24663
|
+
const onStopNoiseSuppressionEffect = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24629
24664
|
const stream = call === null || call === void 0 ? void 0 : call.localAudioStreams.find((stream) => stream.mediaStreamType === 'Audio');
|
24630
24665
|
if (stream && (options === null || options === void 0 ? void 0 : options.onResolveDeepNoiseSuppressionDependency)) {
|
24631
24666
|
const audioEffects = {
|
@@ -24634,38 +24669,38 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24634
24669
|
return yield stream.feature(communicationCalling.Features.AudioEffects).stopEffects(audioEffects);
|
24635
24670
|
}
|
24636
24671
|
});
|
24637
|
-
const onStartCaptions = (options) => __awaiter$
|
24672
|
+
const onStartCaptions = (options) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24638
24673
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24639
24674
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.startCaptions(options));
|
24640
24675
|
});
|
24641
|
-
const onStopCaptions = () => __awaiter$
|
24676
|
+
const onStopCaptions = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24642
24677
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24643
24678
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.stopCaptions());
|
24644
24679
|
});
|
24645
|
-
const onSetSpokenLanguage = (language) => __awaiter$
|
24680
|
+
const onSetSpokenLanguage = (language) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24646
24681
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24647
24682
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.setSpokenLanguage(language));
|
24648
24683
|
});
|
24649
|
-
const onSetCaptionLanguage = (language) => __awaiter$
|
24684
|
+
const onSetCaptionLanguage = (language) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24650
24685
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24651
24686
|
yield captionsFeature.setCaptionLanguage(language);
|
24652
24687
|
});
|
24653
|
-
const onSubmitSurvey = (survey) => __awaiter$
|
24654
|
-
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* () {
|
24655
24690
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24656
24691
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight(participants));
|
24657
24692
|
});
|
24658
|
-
const onStopSpotlight = (userIds) => __awaiter$
|
24693
|
+
const onStopSpotlight = (userIds) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24659
24694
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24660
24695
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight(participants));
|
24661
24696
|
});
|
24662
|
-
const onStopAllSpotlight = () => __awaiter$
|
24697
|
+
const onStopAllSpotlight = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24663
24698
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopAllSpotlight());
|
24664
24699
|
});
|
24665
24700
|
/* @conditional-compile-remove(soft-mute) */
|
24666
|
-
const onMuteParticipant = (userId) => __awaiter$
|
24701
|
+
const onMuteParticipant = (userId) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24667
24702
|
if (call === null || call === void 0 ? void 0 : call.remoteParticipants) {
|
24668
|
-
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* () {
|
24669
24704
|
// Using toFlatCommunicationIdentifier to convert the CommunicationIdentifier to string
|
24670
24705
|
// as _toCommunicationIdentifier(userId) comparison to participant.identifier did not work for this case
|
24671
24706
|
if (toFlatCommunicationIdentifier(participant.identifier) === userId) {
|
@@ -24675,27 +24710,27 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24675
24710
|
}
|
24676
24711
|
});
|
24677
24712
|
/* @conditional-compile-remove(soft-mute) */
|
24678
|
-
const onMuteAllRemoteParticipants = () => __awaiter$
|
24713
|
+
const onMuteAllRemoteParticipants = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24679
24714
|
call === null || call === void 0 ? void 0 : call.muteAllRemoteParticipants();
|
24680
24715
|
});
|
24681
24716
|
const canStartSpotlight = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Capabilities).capabilities.spotlightParticipant.isPresent;
|
24682
24717
|
const canRemoveSpotlight = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Capabilities).capabilities.removeParticipantsSpotlight.isPresent;
|
24683
24718
|
const onStartLocalSpotlight = canStartSpotlight
|
24684
|
-
? () => __awaiter$
|
24719
|
+
? () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24685
24720
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight());
|
24686
24721
|
})
|
24687
24722
|
: undefined;
|
24688
|
-
const onStopLocalSpotlight = () => __awaiter$
|
24723
|
+
const onStopLocalSpotlight = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
24689
24724
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight());
|
24690
24725
|
});
|
24691
24726
|
const onStartRemoteSpotlight = canStartSpotlight
|
24692
|
-
? (userIds) => __awaiter$
|
24727
|
+
? (userIds) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24693
24728
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24694
24729
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight(participants));
|
24695
24730
|
})
|
24696
24731
|
: undefined;
|
24697
24732
|
const onStopRemoteSpotlight = canRemoveSpotlight
|
24698
|
-
? (userIds) => __awaiter$
|
24733
|
+
? (userIds) => __awaiter$I(void 0, void 0, void 0, function* () {
|
24699
24734
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24700
24735
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight(participants));
|
24701
24736
|
})
|
@@ -24763,7 +24798,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24763
24798
|
|
24764
24799
|
// Copyright (c) Microsoft Corporation.
|
24765
24800
|
// Licensed under the MIT License.
|
24766
|
-
var __awaiter$
|
24801
|
+
var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24767
24802
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24768
24803
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24769
24804
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24797,7 +24832,7 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24797
24832
|
return callAgent === null || callAgent === void 0 ? void 0 : callAgent.startCall(participants, options);
|
24798
24833
|
},
|
24799
24834
|
/* @conditional-compile-remove(PSTN-calls) */
|
24800
|
-
onAddParticipant: (userId, options) => __awaiter$
|
24835
|
+
onAddParticipant: (userId, options) => __awaiter$H(void 0, void 0, void 0, function* () {
|
24801
24836
|
const participant = _toCommunicationIdentifier(userId);
|
24802
24837
|
if (communicationCommon.isPhoneNumberIdentifier(participant)) {
|
24803
24838
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant, options);
|
@@ -24805,12 +24840,12 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24805
24840
|
else if (communicationCommon.isCommunicationUserIdentifier(participant) || communicationCommon.isMicrosoftTeamsUserIdentifier(participant)) {
|
24806
24841
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant);
|
24807
24842
|
}
|
24808
|
-
}), onRemoveParticipant: (userId) => __awaiter$
|
24843
|
+
}), onRemoveParticipant: (userId) => __awaiter$H(void 0, void 0, void 0, function* () {
|
24809
24844
|
const participant = _toCommunicationIdentifier(userId);
|
24810
24845
|
yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
|
24811
24846
|
}),
|
24812
24847
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24813
|
-
onAcceptCall: (incomingCallId, useVideo) => __awaiter$
|
24848
|
+
onAcceptCall: (incomingCallId, useVideo) => __awaiter$H(void 0, void 0, void 0, function* () {
|
24814
24849
|
const localVideoStream = useVideo ? yield createLocalVideoStream(callClient) : undefined;
|
24815
24850
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24816
24851
|
if (incomingCall) {
|
@@ -24818,7 +24853,7 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24818
24853
|
}
|
24819
24854
|
}),
|
24820
24855
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24821
|
-
onRejectCall: (incomingCallId) => __awaiter$
|
24856
|
+
onRejectCall: (incomingCallId) => __awaiter$H(void 0, void 0, void 0, function* () {
|
24822
24857
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24823
24858
|
if (incomingCall) {
|
24824
24859
|
yield incomingCall.reject();
|
@@ -24826,13 +24861,13 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24826
24861
|
}),
|
24827
24862
|
/* @conditional-compile-remove(breakout-rooms) */
|
24828
24863
|
onHangUp: breakoutRoomOriginCall
|
24829
|
-
? () => __awaiter$
|
24864
|
+
? () => __awaiter$H(void 0, void 0, void 0, function* () { return breakoutRoomOriginCall.hangUp().then(() => commonCallingHandlers.onHangUp()); })
|
24830
24865
|
: commonCallingHandlers.onHangUp });
|
24831
24866
|
});
|
24832
24867
|
|
24833
24868
|
// Copyright (c) Microsoft Corporation.
|
24834
24869
|
// Licensed under the MIT License.
|
24835
|
-
var __awaiter$
|
24870
|
+
var __awaiter$G = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24836
24871
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24837
24872
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24838
24873
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24863,7 +24898,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24863
24898
|
return undefined;
|
24864
24899
|
},
|
24865
24900
|
/* @conditional-compile-remove(PSTN-calls) */
|
24866
|
-
onAddParticipant: (userId, options) => __awaiter$
|
24901
|
+
onAddParticipant: (userId, options) => __awaiter$G(void 0, void 0, void 0, function* () {
|
24867
24902
|
const participant = _toCommunicationIdentifier(userId);
|
24868
24903
|
/* @conditional-compile-remove(teams-identity-support) */
|
24869
24904
|
const threadId = options === null || options === void 0 ? void 0 : options.threadId;
|
@@ -24879,7 +24914,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24879
24914
|
}
|
24880
24915
|
/* @conditional-compile-remove(teams-identity-support) */
|
24881
24916
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant);
|
24882
|
-
}), onRemoveParticipant: (userId) => __awaiter$
|
24917
|
+
}), onRemoveParticipant: (userId) => __awaiter$G(void 0, void 0, void 0, function* () {
|
24883
24918
|
const participant = _toCommunicationIdentifier(userId);
|
24884
24919
|
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
24885
24920
|
throw new Error('CommunicationIdentifier in Teams call is not supported!');
|
@@ -24891,7 +24926,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24891
24926
|
yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
|
24892
24927
|
}),
|
24893
24928
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24894
|
-
onAcceptCall: (incomingCallId, useVideo) => __awaiter$
|
24929
|
+
onAcceptCall: (incomingCallId, useVideo) => __awaiter$G(void 0, void 0, void 0, function* () {
|
24895
24930
|
const localVideoStream = useVideo ? yield createLocalVideoStream(callClient) : undefined;
|
24896
24931
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24897
24932
|
if (incomingCall) {
|
@@ -24899,7 +24934,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24899
24934
|
}
|
24900
24935
|
}),
|
24901
24936
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24902
|
-
onRejectCall: (incomingCallId) => __awaiter$
|
24937
|
+
onRejectCall: (incomingCallId) => __awaiter$G(void 0, void 0, void 0, function* () {
|
24903
24938
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24904
24939
|
if (incomingCall) {
|
24905
24940
|
yield incomingCall.reject();
|
@@ -25209,7 +25244,7 @@ const getCaptionsSpeakerIdentifier = (captions) => {
|
|
25209
25244
|
|
25210
25245
|
// Copyright (c) Microsoft Corporation.
|
25211
25246
|
// Licensed under the MIT License.
|
25212
|
-
var __awaiter$
|
25247
|
+
var __awaiter$F = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
25213
25248
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
25214
25249
|
return new (P || (P = Promise))(function (resolve, reject) {
|
25215
25250
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -25286,7 +25321,7 @@ class ProxyDeviceManager {
|
|
25286
25321
|
console.info('Could not Unsubscribe to Permissions API Camera changed events, API is not supported by browser', e);
|
25287
25322
|
}
|
25288
25323
|
};
|
25289
|
-
this.permissionsApiStateChangeHandler = () => __awaiter$
|
25324
|
+
this.permissionsApiStateChangeHandler = () => __awaiter$F(this, void 0, void 0, function* () {
|
25290
25325
|
yield this.updateDevicePermissionState();
|
25291
25326
|
});
|
25292
25327
|
/**
|
@@ -25297,13 +25332,13 @@ class ProxyDeviceManager {
|
|
25297
25332
|
this.selectCamera = (videoDeviceInfo) => {
|
25298
25333
|
this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);
|
25299
25334
|
};
|
25300
|
-
this.videoDevicesUpdated = () => __awaiter$
|
25335
|
+
this.videoDevicesUpdated = () => __awaiter$F(this, void 0, void 0, function* () {
|
25301
25336
|
// Device Manager always has a camera with '' name if there are no real camera devices available.
|
25302
25337
|
// We don't want to show that in the UI.
|
25303
25338
|
const realCameras = (yield this._deviceManager.getCameras()).filter((c) => !!c.name);
|
25304
25339
|
this._context.setDeviceManagerCameras(dedupeById(realCameras));
|
25305
25340
|
});
|
25306
|
-
this.audioDevicesUpdated = () => __awaiter$
|
25341
|
+
this.audioDevicesUpdated = () => __awaiter$F(this, void 0, void 0, function* () {
|
25307
25342
|
this._context.setDeviceManagerMicrophones(dedupeById(yield this._deviceManager.getMicrophones()));
|
25308
25343
|
if (this._deviceManager.isSpeakerSelectionAvailable) {
|
25309
25344
|
this._context.setDeviceManagerSpeakers(dedupeById(yield this._deviceManager.getSpeakers()));
|
@@ -25315,7 +25350,7 @@ class ProxyDeviceManager {
|
|
25315
25350
|
this.selectedSpeakerChanged = () => {
|
25316
25351
|
this._context.setDeviceManagerSelectedSpeaker(this._deviceManager.selectedSpeaker);
|
25317
25352
|
};
|
25318
|
-
this.updateDevicePermissionState = (sdkDeviceAccessState) => __awaiter$
|
25353
|
+
this.updateDevicePermissionState = (sdkDeviceAccessState) => __awaiter$F(this, void 0, void 0, function* () {
|
25319
25354
|
let hasCameraPermission = !!(sdkDeviceAccessState === null || sdkDeviceAccessState === void 0 ? void 0 : sdkDeviceAccessState.video);
|
25320
25355
|
let hasMicPermission = !!(sdkDeviceAccessState === null || sdkDeviceAccessState === void 0 ? void 0 : sdkDeviceAccessState.audio);
|
25321
25356
|
// Supplement the SDK values with values from the Permissions API to get a better understanding of the device
|
@@ -25391,7 +25426,7 @@ class ProxyDeviceManager {
|
|
25391
25426
|
}
|
25392
25427
|
case 'askDevicePermission': {
|
25393
25428
|
return this._context.withAsyncErrorTeedToState((...args) => {
|
25394
|
-
return target.askDevicePermission(...args).then((deviceAccess) => __awaiter$
|
25429
|
+
return target.askDevicePermission(...args).then((deviceAccess) => __awaiter$F(this, void 0, void 0, function* () {
|
25395
25430
|
yield this.updateDevicePermissionState(deviceAccess);
|
25396
25431
|
return deviceAccess;
|
25397
25432
|
}));
|
@@ -25788,7 +25823,7 @@ class CallIdHistory {
|
|
25788
25823
|
|
25789
25824
|
// Copyright (c) Microsoft Corporation.
|
25790
25825
|
// Licensed under the MIT License.
|
25791
|
-
var __awaiter$
|
25826
|
+
var __awaiter$E = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
25792
25827
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
25793
25828
|
return new (P || (P = Promise))(function (resolve, reject) {
|
25794
25829
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -26759,7 +26794,7 @@ let CallContext$2 = class CallContext {
|
|
26759
26794
|
* @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.
|
26760
26795
|
*/
|
26761
26796
|
withAsyncErrorTeedToState(action, target) {
|
26762
|
-
return (...args) => __awaiter$
|
26797
|
+
return (...args) => __awaiter$E(this, void 0, void 0, function* () {
|
26763
26798
|
try {
|
26764
26799
|
return yield action(...args);
|
26765
26800
|
}
|
@@ -27303,7 +27338,7 @@ function _logStreamEvent(eventName, streamLogInfo, error) {
|
|
27303
27338
|
|
27304
27339
|
// Copyright (c) Microsoft Corporation.
|
27305
27340
|
// Licensed under the MIT License.
|
27306
|
-
var __awaiter$
|
27341
|
+
var __awaiter$D = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
27307
27342
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
27308
27343
|
return new (P || (P = Promise))(function (resolve, reject) {
|
27309
27344
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -27313,7 +27348,7 @@ var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
27313
27348
|
});
|
27314
27349
|
};
|
27315
27350
|
function createViewVideo(context, internalContext, callId, stream, participantId, options) {
|
27316
|
-
return __awaiter$
|
27351
|
+
return __awaiter$D(this, void 0, void 0, function* () {
|
27317
27352
|
// we can only have 3 types of createView
|
27318
27353
|
let streamEventType;
|
27319
27354
|
// we will reuse these for local as well but we need to make sure the remote stream is passed in like before.
|
@@ -27442,7 +27477,7 @@ function createViewVideo(context, internalContext, callId, stream, participantId
|
|
27442
27477
|
});
|
27443
27478
|
}
|
27444
27479
|
function createViewUnparentedVideo(context, internalContext, stream, options) {
|
27445
|
-
return __awaiter$
|
27480
|
+
return __awaiter$D(this, void 0, void 0, function* () {
|
27446
27481
|
const renderInfo = internalContext.getUnparentedRenderInfo(stream);
|
27447
27482
|
if (renderInfo && renderInfo.status === 'Rendered') {
|
27448
27483
|
console.warn('Unparented LocalVideoStream is already rendered');
|
@@ -27611,7 +27646,7 @@ function createView(context, internalContext, callId, participantId, stream, opt
|
|
27611
27646
|
// Render LocalVideoStream that is not part of a Call
|
27612
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).
|
27613
27648
|
// We do not have a startLocalPreviewVideo function, so as a workaround we ensure any errors are propagated here.
|
27614
|
-
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')();
|
27615
27650
|
}
|
27616
27651
|
else {
|
27617
27652
|
_logStreamEvent(EventNames.CREATE_STREAM_INVALID_PARAMS, { streamType });
|
@@ -27797,7 +27832,7 @@ class RecordingSubscriber {
|
|
27797
27832
|
|
27798
27833
|
// Copyright (c) Microsoft Corporation.
|
27799
27834
|
// Licensed under the MIT License.
|
27800
|
-
var __awaiter$
|
27835
|
+
var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
27801
27836
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
27802
27837
|
return new (P || (P = Promise))(function (resolve, reject) {
|
27803
27838
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -27821,7 +27856,7 @@ class PPTLiveSubscriber {
|
|
27821
27856
|
this._context.setCallPPTLiveActive(this._callIdRef.callId, this._pptLive.isActive);
|
27822
27857
|
this.checkAndUpdatePPTLiveParticipant();
|
27823
27858
|
};
|
27824
|
-
this.checkAndUpdatePPTLiveParticipant = () => __awaiter$
|
27859
|
+
this.checkAndUpdatePPTLiveParticipant = () => __awaiter$C(this, void 0, void 0, function* () {
|
27825
27860
|
if (!this._pptLive.activePresenterId) {
|
27826
27861
|
return;
|
27827
27862
|
}
|
@@ -28510,7 +28545,7 @@ class IncomingCallSubscriber {
|
|
28510
28545
|
|
28511
28546
|
// Copyright (c) Microsoft Corporation.
|
28512
28547
|
// Licensed under the MIT License.
|
28513
|
-
var __awaiter$
|
28548
|
+
var __awaiter$B = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
28514
28549
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
28515
28550
|
return new (P || (P = Promise))(function (resolve, reject) {
|
28516
28551
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -28530,14 +28565,14 @@ class ProxyIncomingCall {
|
|
28530
28565
|
switch (prop) {
|
28531
28566
|
case 'accept': {
|
28532
28567
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28533
|
-
return __awaiter$
|
28568
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
28534
28569
|
return yield target.accept(...args);
|
28535
28570
|
});
|
28536
28571
|
}, 'IncomingCall.accept');
|
28537
28572
|
}
|
28538
28573
|
case 'reject': {
|
28539
28574
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28540
|
-
return __awaiter$
|
28575
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
28541
28576
|
return yield target.reject(...args);
|
28542
28577
|
});
|
28543
28578
|
}, 'IncomingCall.reject');
|
@@ -28559,7 +28594,7 @@ const incomingCallDeclaratify = (incomingCall, context) => {
|
|
28559
28594
|
|
28560
28595
|
// Copyright (c) Microsoft Corporation.
|
28561
28596
|
// Licensed under the MIT License.
|
28562
|
-
var __awaiter$
|
28597
|
+
var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
28563
28598
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
28564
28599
|
return new (P || (P = Promise))(function (resolve, reject) {
|
28565
28600
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -28579,14 +28614,14 @@ class ProxyTeamsIncomingCall {
|
|
28579
28614
|
switch (prop) {
|
28580
28615
|
case 'accept': {
|
28581
28616
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28582
|
-
return __awaiter$
|
28617
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
28583
28618
|
return yield target.accept(...args);
|
28584
28619
|
});
|
28585
28620
|
}, 'IncomingCall.accept');
|
28586
28621
|
}
|
28587
28622
|
case 'reject': {
|
28588
28623
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28589
|
-
return __awaiter$
|
28624
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
28590
28625
|
return yield target.reject(...args);
|
28591
28626
|
});
|
28592
28627
|
}, 'IncomingCall.reject');
|
@@ -28805,7 +28840,7 @@ const clearCallRelatedState = (context, internalContext) => {
|
|
28805
28840
|
|
28806
28841
|
// Copyright (c) Microsoft Corporation.
|
28807
28842
|
// Licensed under the MIT License.
|
28808
|
-
var __awaiter$
|
28843
|
+
var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
28809
28844
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
28810
28845
|
return new (P || (P = Promise))(function (resolve, reject) {
|
28811
28846
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -28831,56 +28866,56 @@ class ProxyCallCommon {
|
|
28831
28866
|
switch (prop) {
|
28832
28867
|
case 'mute': {
|
28833
28868
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28834
|
-
return __awaiter$
|
28869
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28835
28870
|
return yield target.mute(...args);
|
28836
28871
|
});
|
28837
28872
|
}, 'Call.mute');
|
28838
28873
|
}
|
28839
28874
|
case 'unmute': {
|
28840
28875
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28841
|
-
return __awaiter$
|
28876
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28842
28877
|
return yield target.unmute(...args);
|
28843
28878
|
});
|
28844
28879
|
}, 'Call.unmute');
|
28845
28880
|
}
|
28846
28881
|
case 'startVideo': {
|
28847
28882
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28848
|
-
return __awaiter$
|
28883
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28849
28884
|
return yield target.startVideo(...args);
|
28850
28885
|
});
|
28851
28886
|
}, 'Call.startVideo');
|
28852
28887
|
}
|
28853
28888
|
case 'stopVideo': {
|
28854
28889
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28855
|
-
return __awaiter$
|
28890
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28856
28891
|
return yield target.stopVideo(...args);
|
28857
28892
|
});
|
28858
28893
|
}, 'Call.stopVideo');
|
28859
28894
|
}
|
28860
28895
|
case 'startScreenSharing': {
|
28861
28896
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28862
|
-
return __awaiter$
|
28897
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28863
28898
|
return yield target.startScreenSharing(...args);
|
28864
28899
|
});
|
28865
28900
|
}, 'Call.startScreenSharing');
|
28866
28901
|
}
|
28867
28902
|
case 'stopScreenSharing': {
|
28868
28903
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28869
|
-
return __awaiter$
|
28904
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28870
28905
|
return yield target.stopScreenSharing(...args);
|
28871
28906
|
});
|
28872
28907
|
}, 'Call.stopScreenSharing');
|
28873
28908
|
}
|
28874
28909
|
case 'hold': {
|
28875
28910
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28876
|
-
return __awaiter$
|
28911
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28877
28912
|
return yield target.hold(...args);
|
28878
28913
|
});
|
28879
28914
|
}, 'Call.hold');
|
28880
28915
|
}
|
28881
28916
|
case 'resume': {
|
28882
28917
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28883
|
-
return __awaiter$
|
28918
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
28884
28919
|
return yield target.resume(...args);
|
28885
28920
|
});
|
28886
28921
|
}, 'Call.resume');
|
@@ -28948,7 +28983,7 @@ class ProxyTeamsCaptions {
|
|
28948
28983
|
get(target, prop) {
|
28949
28984
|
switch (prop) {
|
28950
28985
|
case 'startCaptions':
|
28951
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
28986
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28952
28987
|
var _a, _b;
|
28953
28988
|
this._context.setStartCaptionsInProgress(this._call.id, true);
|
28954
28989
|
try {
|
@@ -28962,7 +28997,7 @@ class ProxyTeamsCaptions {
|
|
28962
28997
|
}
|
28963
28998
|
}), 'Call.feature');
|
28964
28999
|
case 'stopCaptions':
|
28965
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29000
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28966
29001
|
const ret = yield target.stopCaptions(...args);
|
28967
29002
|
this._context.setIsCaptionActive(this._call.id, false);
|
28968
29003
|
this._context.setStartCaptionsInProgress(this._call.id, false);
|
@@ -28970,13 +29005,13 @@ class ProxyTeamsCaptions {
|
|
28970
29005
|
return ret;
|
28971
29006
|
}), 'Call.feature');
|
28972
29007
|
case 'setSpokenLanguage':
|
28973
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29008
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28974
29009
|
const ret = yield target.setSpokenLanguage(...args);
|
28975
29010
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
28976
29011
|
return ret;
|
28977
29012
|
}), 'Call.feature');
|
28978
29013
|
case 'setCaptionLanguage':
|
28979
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29014
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
28980
29015
|
const ret = yield target.setCaptionLanguage(...args);
|
28981
29016
|
this._context.setSelectedCaptionLanguage(this._call.id, args[0]);
|
28982
29017
|
return ret;
|
@@ -28998,7 +29033,7 @@ class ProxyCaptions {
|
|
28998
29033
|
get(target, prop) {
|
28999
29034
|
switch (prop) {
|
29000
29035
|
case 'startCaptions':
|
29001
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29036
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
29002
29037
|
var _a, _b;
|
29003
29038
|
this._context.setStartCaptionsInProgress(this._call.id, true);
|
29004
29039
|
try {
|
@@ -29012,7 +29047,7 @@ class ProxyCaptions {
|
|
29012
29047
|
}
|
29013
29048
|
}), 'Call.feature');
|
29014
29049
|
case 'stopCaptions':
|
29015
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29050
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
29016
29051
|
const ret = yield target.stopCaptions(...args);
|
29017
29052
|
this._context.setIsCaptionActive(this._call.id, false);
|
29018
29053
|
this._context.setStartCaptionsInProgress(this._call.id, false);
|
@@ -29020,7 +29055,7 @@ class ProxyCaptions {
|
|
29020
29055
|
return ret;
|
29021
29056
|
}), 'Call.feature');
|
29022
29057
|
case 'setSpokenLanguage':
|
29023
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29058
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
29024
29059
|
const ret = yield target.setSpokenLanguage(...args);
|
29025
29060
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
29026
29061
|
return ret;
|
@@ -29040,12 +29075,12 @@ class ProxySpotlightCallFeature {
|
|
29040
29075
|
get(target, prop) {
|
29041
29076
|
switch (prop) {
|
29042
29077
|
case 'startSpotlight':
|
29043
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29078
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
29044
29079
|
const ret = yield target.startSpotlight(...args);
|
29045
29080
|
return ret;
|
29046
29081
|
}), 'Call.feature');
|
29047
29082
|
case 'stopSpotlight':
|
29048
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29083
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$z(this, void 0, void 0, function* () {
|
29049
29084
|
const ret = yield target.stopSpotlight(...args);
|
29050
29085
|
return ret;
|
29051
29086
|
}), 'Call.feature');
|
@@ -29087,7 +29122,7 @@ class ProxyTransferCallFeature {
|
|
29087
29122
|
|
29088
29123
|
// Copyright (c) Microsoft Corporation.
|
29089
29124
|
// Licensed under the MIT License.
|
29090
|
-
var __awaiter$
|
29125
|
+
var __awaiter$y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29091
29126
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29092
29127
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29093
29128
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29101,7 +29136,7 @@ class ProxyCall extends ProxyCallCommon {
|
|
29101
29136
|
switch (prop) {
|
29102
29137
|
case 'addParticipant': {
|
29103
29138
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
29104
|
-
return __awaiter$
|
29139
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
29105
29140
|
return yield target.addParticipant(...args);
|
29106
29141
|
});
|
29107
29142
|
}, 'Call.addParticipant');
|
@@ -29336,7 +29371,7 @@ class InternalCallContext {
|
|
29336
29371
|
|
29337
29372
|
// Copyright (c) Microsoft Corporation.
|
29338
29373
|
// Licensed under the MIT License.
|
29339
|
-
var __awaiter$
|
29374
|
+
var __awaiter$x = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29340
29375
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29341
29376
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29342
29377
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29352,7 +29387,7 @@ class ProxyTeamsCall extends ProxyCallCommon {
|
|
29352
29387
|
/* @conditional-compile-remove(PSTN-calls) */
|
29353
29388
|
case 'addParticipant': {
|
29354
29389
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
29355
|
-
return __awaiter$
|
29390
|
+
return __awaiter$x(this, void 0, void 0, function* () {
|
29356
29391
|
return yield target.addParticipant(...args);
|
29357
29392
|
});
|
29358
29393
|
}, 'TeamsCall.addParticipant');
|
@@ -29471,7 +29506,7 @@ const teamsCallAgentDeclaratify = (callAgent, context, internalContext) => {
|
|
29471
29506
|
|
29472
29507
|
// Copyright (c) Microsoft Corporation.
|
29473
29508
|
// Licensed under the MIT License.
|
29474
|
-
var __awaiter$
|
29509
|
+
var __awaiter$w = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29475
29510
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29476
29511
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29477
29512
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29493,7 +29528,7 @@ class ProxyVideoStreamRendererView {
|
|
29493
29528
|
get(target, prop) {
|
29494
29529
|
switch (prop) {
|
29495
29530
|
case 'updateScalingMode': {
|
29496
|
-
return (...args) => __awaiter$
|
29531
|
+
return (...args) => __awaiter$w(this, void 0, void 0, function* () {
|
29497
29532
|
yield target.updateScalingMode(...args);
|
29498
29533
|
this._context.setRemoteVideoStreamViewScalingMode(this._callId, this._participantId, this._streamId, args[0]);
|
29499
29534
|
});
|
@@ -29514,7 +29549,7 @@ const videoStreamRendererViewDeclaratify = (view, context, callId, participantId
|
|
29514
29549
|
|
29515
29550
|
// Copyright (c) Microsoft Corporation.
|
29516
29551
|
// Licensed under the MIT License.
|
29517
|
-
var __awaiter$
|
29552
|
+
var __awaiter$v = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29518
29553
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29519
29554
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29520
29555
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29536,7 +29571,7 @@ class ProxyCallClient {
|
|
29536
29571
|
get(target, prop) {
|
29537
29572
|
switch (prop) {
|
29538
29573
|
case 'createCallAgent': {
|
29539
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29574
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$v(this, void 0, void 0, function* () {
|
29540
29575
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
29541
29576
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
29542
29577
|
// callAgent if the createCallAgent succeeds.
|
@@ -29549,7 +29584,7 @@ class ProxyCallClient {
|
|
29549
29584
|
}), 'CallClient.createCallAgent');
|
29550
29585
|
}
|
29551
29586
|
case 'createTeamsCallAgent': {
|
29552
|
-
/* @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* () {
|
29553
29588
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
29554
29589
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
29555
29590
|
// callAgent if the createCallAgent succeeds.
|
@@ -29562,7 +29597,7 @@ class ProxyCallClient {
|
|
29562
29597
|
}), 'CallClient.createTeamsCallAgent');
|
29563
29598
|
}
|
29564
29599
|
case 'getDeviceManager': {
|
29565
|
-
return this._context.withAsyncErrorTeedToState(() => __awaiter$
|
29600
|
+
return this._context.withAsyncErrorTeedToState(() => __awaiter$v(this, void 0, void 0, function* () {
|
29566
29601
|
// As of writing, the SDK always returns the same instance of DeviceManager so we keep a reference of
|
29567
29602
|
// DeviceManager and if it does not change we return the cached DeclarativeDeviceManager. If it does not we'll
|
29568
29603
|
// throw an error that indicate we need to fix this issue as our implementation has diverged from the SDK.
|
@@ -29591,7 +29626,7 @@ class ProxyCallClient {
|
|
29591
29626
|
/**
|
29592
29627
|
* add to this object if we want to proxy anything else off the DebugInfo feature object.
|
29593
29628
|
*/
|
29594
|
-
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$
|
29629
|
+
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$v(this, void 0, void 0, function* () {
|
29595
29630
|
const environmentInfo = yield feature.getEnvironmentInfo();
|
29596
29631
|
this._context.setEnvironmentInfo(environmentInfo);
|
29597
29632
|
return environmentInfo;
|
@@ -29651,7 +29686,7 @@ const createStatefulCallClientWithDeps = (callClient, context, internalContext)
|
|
29651
29686
|
});
|
29652
29687
|
Object.defineProperty(callClient, 'createView', {
|
29653
29688
|
configurable: false,
|
29654
|
-
value: (callId, participantId, stream, options) => __awaiter$
|
29689
|
+
value: (callId, participantId, stream, options) => __awaiter$v(void 0, void 0, void 0, function* () {
|
29655
29690
|
const participantIdKind = participantId ? communicationCommon.getIdentifierKind(participantId) : undefined;
|
29656
29691
|
const result = yield createView(context, internalContext, callId, participantIdKind, stream, options);
|
29657
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.
|
@@ -30705,7 +30740,7 @@ const END_CALL_PAGES = [
|
|
30705
30740
|
|
30706
30741
|
// Copyright (c) Microsoft Corporation.
|
30707
30742
|
// Licensed under the MIT License.
|
30708
|
-
var __awaiter$
|
30743
|
+
var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
30709
30744
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30710
30745
|
return new (P || (P = Promise))(function (resolve, reject) {
|
30711
30746
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31072,7 +31107,7 @@ const isDisabled$4 = (option) => {
|
|
31072
31107
|
/**
|
31073
31108
|
* @returns Permissions state for the camera.
|
31074
31109
|
*/
|
31075
|
-
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$
|
31110
|
+
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$u(void 0, void 0, void 0, function* () {
|
31076
31111
|
try {
|
31077
31112
|
return (yield navigator.permissions.query({ name: 'camera' })).state;
|
31078
31113
|
}
|
@@ -31085,7 +31120,7 @@ const queryCameraPermissionFromPermissionsAPI = () => __awaiter$t(void 0, void 0
|
|
31085
31120
|
/**
|
31086
31121
|
* @returns Permissions state for the microphone.
|
31087
31122
|
*/
|
31088
|
-
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$
|
31123
|
+
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$u(void 0, void 0, void 0, function* () {
|
31089
31124
|
try {
|
31090
31125
|
return (yield navigator.permissions.query({ name: 'microphone' })).state;
|
31091
31126
|
}
|
@@ -31102,7 +31137,7 @@ const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$t(void 0, vo
|
|
31102
31137
|
* If permission API is not supported on this browser, permission state is set to unsupported.
|
31103
31138
|
* @private
|
31104
31139
|
*/
|
31105
|
-
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$
|
31140
|
+
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$u(void 0, void 0, void 0, function* () {
|
31106
31141
|
const [cameraResult, microphoneResult] = yield Promise.all([
|
31107
31142
|
queryCameraPermissionFromPermissionsAPI(),
|
31108
31143
|
queryMicrophonePermissionFromPermissionsAPI()
|
@@ -31289,7 +31324,7 @@ function computeComplianceNotification(complianceProps, cachedProps) {
|
|
31289
31324
|
|
31290
31325
|
// Copyright (c) Microsoft Corporation.
|
31291
31326
|
// Licensed under the MIT License.
|
31292
|
-
var __awaiter$
|
31327
|
+
var __awaiter$t = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
31293
31328
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
31294
31329
|
return new (P || (P = Promise))(function (resolve, reject) {
|
31295
31330
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31312,22 +31347,22 @@ _component) => {
|
|
31312
31347
|
};
|
31313
31348
|
const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
31314
31349
|
return {
|
31315
|
-
onCreateLocalStreamView: (options) => __awaiter$
|
31350
|
+
onCreateLocalStreamView: (options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31316
31351
|
return yield adapter.createStreamView(undefined, options);
|
31317
31352
|
}),
|
31318
|
-
onCreateRemoteStreamView: (userId, options) => __awaiter$
|
31353
|
+
onCreateRemoteStreamView: (userId, options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31319
31354
|
return yield adapter.createStreamView(userId, options);
|
31320
31355
|
}),
|
31321
|
-
onHangUp: (forEveryone) => __awaiter$
|
31356
|
+
onHangUp: (forEveryone) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31322
31357
|
yield adapter.leaveCall(forEveryone);
|
31323
31358
|
}),
|
31324
31359
|
/* @conditional-compile-remove(PSTN-calls) */
|
31325
|
-
onToggleHold: () => __awaiter$
|
31360
|
+
onToggleHold: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31326
31361
|
var _a;
|
31327
31362
|
return ((_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold' ? yield adapter.resumeCall() : yield adapter.holdCall();
|
31328
31363
|
}),
|
31329
31364
|
/* @conditional-compile-remove(PSTN-calls) */
|
31330
|
-
onAddParticipant: (participant, options) => __awaiter$
|
31365
|
+
onAddParticipant: (participant, options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31331
31366
|
if ('communicationUserId' in participant) {
|
31332
31367
|
return yield adapter.addParticipant(participant);
|
31333
31368
|
}
|
@@ -31335,10 +31370,10 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
31335
31370
|
return yield adapter.addParticipant(participant, options);
|
31336
31371
|
}
|
31337
31372
|
}),
|
31338
|
-
onSendDtmfTone: (dtmfTone) => __awaiter$
|
31373
|
+
onSendDtmfTone: (dtmfTone) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31339
31374
|
yield adapter.sendDtmfTone(dtmfTone);
|
31340
31375
|
}),
|
31341
|
-
onRemoveParticipant: (userId) => __awaiter$
|
31376
|
+
onRemoveParticipant: (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31342
31377
|
if (typeof userId === 'string') {
|
31343
31378
|
yield adapter.removeParticipant(userId);
|
31344
31379
|
}
|
@@ -31347,144 +31382,144 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
31347
31382
|
yield adapter.removeParticipant(_toCommunicationIdentifier(userId));
|
31348
31383
|
}
|
31349
31384
|
}),
|
31350
|
-
onRaiseHand: () => __awaiter$
|
31385
|
+
onRaiseHand: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31351
31386
|
yield adapter.raiseHand();
|
31352
31387
|
}),
|
31353
|
-
onLowerHand: () => __awaiter$
|
31388
|
+
onLowerHand: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31354
31389
|
yield adapter.lowerHand();
|
31355
31390
|
}),
|
31356
|
-
onToggleRaiseHand: () => __awaiter$
|
31391
|
+
onToggleRaiseHand: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31357
31392
|
var _b;
|
31358
31393
|
((_b = adapter.getState().call) === null || _b === void 0 ? void 0 : _b.raiseHand.localParticipantRaisedHand)
|
31359
31394
|
? yield adapter.lowerHand()
|
31360
31395
|
: yield adapter.raiseHand();
|
31361
31396
|
}),
|
31362
|
-
onReactionClick: (reaction) => __awaiter$
|
31397
|
+
onReactionClick: (reaction) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31363
31398
|
yield adapter.onReactionClick(reaction);
|
31364
31399
|
}),
|
31365
|
-
onSelectCamera: (deviceInfo, options) => __awaiter$
|
31400
|
+
onSelectCamera: (deviceInfo, options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31366
31401
|
yield adapter.setCamera(deviceInfo, options);
|
31367
31402
|
}),
|
31368
|
-
onSelectMicrophone: (deviceInfo) => __awaiter$
|
31403
|
+
onSelectMicrophone: (deviceInfo) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31369
31404
|
yield adapter.setMicrophone(deviceInfo);
|
31370
31405
|
}),
|
31371
|
-
onSelectSpeaker: (deviceInfo) => __awaiter$
|
31406
|
+
onSelectSpeaker: (deviceInfo) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31372
31407
|
yield adapter.setSpeaker(deviceInfo);
|
31373
31408
|
}),
|
31374
31409
|
onStartCall: (participants, options) => {
|
31375
31410
|
const rawIds = participants.map((participant) => toFlatCommunicationIdentifier(participant));
|
31376
31411
|
return adapter.startCall(rawIds, options);
|
31377
31412
|
},
|
31378
|
-
onStartScreenShare: () => __awaiter$
|
31413
|
+
onStartScreenShare: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31379
31414
|
yield adapter.startScreenShare();
|
31380
31415
|
}),
|
31381
|
-
onStopScreenShare: () => __awaiter$
|
31416
|
+
onStopScreenShare: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31382
31417
|
yield adapter.stopScreenShare();
|
31383
31418
|
}),
|
31384
|
-
onToggleCamera: (options) => __awaiter$
|
31419
|
+
onToggleCamera: (options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31385
31420
|
isCameraOn(adapter.getState()) ? yield adapter.stopCamera() : yield adapter.startCamera(options);
|
31386
31421
|
}),
|
31387
|
-
onToggleMicrophone: () => __awaiter$
|
31422
|
+
onToggleMicrophone: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31388
31423
|
var _c;
|
31389
31424
|
return ((_c = adapter.getState().call) === null || _c === void 0 ? void 0 : _c.isMuted) ? yield adapter.unmute() : yield adapter.mute();
|
31390
31425
|
}),
|
31391
|
-
onToggleScreenShare: () => __awaiter$
|
31426
|
+
onToggleScreenShare: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31392
31427
|
var _d;
|
31393
31428
|
return ((_d = adapter.getState().call) === null || _d === void 0 ? void 0 : _d.isScreenSharingOn)
|
31394
31429
|
? yield adapter.stopScreenShare()
|
31395
31430
|
: yield adapter.startScreenShare();
|
31396
31431
|
}),
|
31397
|
-
onStartLocalVideo: () => __awaiter$
|
31432
|
+
onStartLocalVideo: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31398
31433
|
if (adapter.getState().call) {
|
31399
31434
|
return adapter.startCamera();
|
31400
31435
|
}
|
31401
31436
|
}),
|
31402
|
-
onDisposeLocalStreamView: () => __awaiter$
|
31437
|
+
onDisposeLocalStreamView: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31403
31438
|
return adapter.disposeLocalVideoStreamView();
|
31404
31439
|
}),
|
31405
|
-
onDisposeRemoteStreamView: (userId) => __awaiter$
|
31440
|
+
onDisposeRemoteStreamView: (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31406
31441
|
return adapter.disposeStreamView(userId);
|
31407
31442
|
}),
|
31408
|
-
onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$
|
31443
|
+
onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31409
31444
|
return adapter.disposeScreenShareStreamView(userId);
|
31410
31445
|
}),
|
31411
|
-
onDisposeLocalScreenShareStreamView: () => __awaiter$
|
31446
|
+
onDisposeLocalScreenShareStreamView: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31412
31447
|
return adapter.disposeScreenShareStreamView('');
|
31413
31448
|
}),
|
31414
|
-
onDisposeRemoteVideoStreamView: (userId) => __awaiter$
|
31449
|
+
onDisposeRemoteVideoStreamView: (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31415
31450
|
return adapter.disposeRemoteVideoStreamView(userId);
|
31416
31451
|
}),
|
31417
31452
|
/* @conditional-compile-remove(call-readiness) */
|
31418
|
-
askDevicePermission: (constrain) => __awaiter$
|
31453
|
+
askDevicePermission: (constrain) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31419
31454
|
return adapter.askDevicePermission(constrain);
|
31420
31455
|
}),
|
31421
|
-
onRemoveVideoBackgroundEffects: () => __awaiter$
|
31456
|
+
onRemoveVideoBackgroundEffects: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31422
31457
|
return yield adapter.stopVideoBackgroundEffects();
|
31423
31458
|
}),
|
31424
|
-
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$
|
31459
|
+
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31425
31460
|
const blurConfig = Object.assign({ effectName: 'blur' }, backgroundBlurConfig);
|
31426
31461
|
return yield adapter.startVideoBackgroundEffect(blurConfig);
|
31427
31462
|
}),
|
31428
|
-
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$
|
31463
|
+
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31429
31464
|
const replacementConfig = Object.assign({ effectName: 'replacement' }, backgroundReplacementConfig);
|
31430
31465
|
return yield adapter.startVideoBackgroundEffect(replacementConfig);
|
31431
31466
|
}),
|
31432
31467
|
/* @conditional-compile-remove(DNS) */
|
31433
|
-
onStartNoiseSuppressionEffect: () => __awaiter$
|
31468
|
+
onStartNoiseSuppressionEffect: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31434
31469
|
return yield adapter.startNoiseSuppressionEffect();
|
31435
31470
|
}),
|
31436
31471
|
/* @conditional-compile-remove(DNS) */
|
31437
|
-
onStopNoiseSuppressionEffect: () => __awaiter$
|
31472
|
+
onStopNoiseSuppressionEffect: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31438
31473
|
return yield adapter.stopNoiseSuppressionEffect();
|
31439
31474
|
}),
|
31440
|
-
onStartCaptions: (options) => __awaiter$
|
31475
|
+
onStartCaptions: (options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31441
31476
|
yield adapter.startCaptions(options);
|
31442
31477
|
}),
|
31443
|
-
onStopCaptions: () => __awaiter$
|
31478
|
+
onStopCaptions: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31444
31479
|
yield adapter.stopCaptions();
|
31445
31480
|
}),
|
31446
|
-
onSetSpokenLanguage: (language) => __awaiter$
|
31481
|
+
onSetSpokenLanguage: (language) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31447
31482
|
yield adapter.setSpokenLanguage(language);
|
31448
31483
|
}),
|
31449
|
-
onSetCaptionLanguage: (language) => __awaiter$
|
31484
|
+
onSetCaptionLanguage: (language) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31450
31485
|
yield adapter.setCaptionLanguage(language);
|
31451
31486
|
}),
|
31452
|
-
onSubmitSurvey: (survey) => __awaiter$
|
31487
|
+
onSubmitSurvey: (survey) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31453
31488
|
return yield adapter.submitSurvey(survey);
|
31454
31489
|
}),
|
31455
|
-
onStartSpotlight: (userIds) => __awaiter$
|
31490
|
+
onStartSpotlight: (userIds) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31456
31491
|
yield adapter.startSpotlight(userIds);
|
31457
31492
|
}),
|
31458
|
-
onStopSpotlight: (userIds) => __awaiter$
|
31493
|
+
onStopSpotlight: (userIds) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31459
31494
|
yield adapter.stopSpotlight(userIds);
|
31460
31495
|
}),
|
31461
|
-
onStopAllSpotlight: () => __awaiter$
|
31496
|
+
onStopAllSpotlight: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31462
31497
|
yield adapter.stopAllSpotlight();
|
31463
31498
|
}),
|
31464
31499
|
onStartLocalSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.spotlightParticipant.isPresent)
|
31465
|
-
? () => __awaiter$
|
31500
|
+
? () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31466
31501
|
yield adapter.startSpotlight();
|
31467
31502
|
})
|
31468
31503
|
: undefined,
|
31469
|
-
onStopLocalSpotlight: () => __awaiter$
|
31504
|
+
onStopLocalSpotlight: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31470
31505
|
yield adapter.stopSpotlight();
|
31471
31506
|
}),
|
31472
31507
|
onStartRemoteSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.spotlightParticipant.isPresent)
|
31473
|
-
? (userIds) => __awaiter$
|
31508
|
+
? (userIds) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31474
31509
|
yield adapter.startSpotlight(userIds);
|
31475
31510
|
})
|
31476
31511
|
: undefined,
|
31477
31512
|
onStopRemoteSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.removeParticipantsSpotlight.isPresent)
|
31478
|
-
? (userIds) => __awaiter$
|
31513
|
+
? (userIds) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31479
31514
|
yield adapter.stopSpotlight(userIds);
|
31480
31515
|
})
|
31481
31516
|
: undefined,
|
31482
31517
|
/* @conditional-compile-remove(soft-mute) */
|
31483
|
-
onMuteParticipant: (userId) => __awaiter$
|
31518
|
+
onMuteParticipant: (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
|
31484
31519
|
yield adapter.muteParticipant(userId);
|
31485
31520
|
}),
|
31486
31521
|
/* @conditional-compile-remove(soft-mute) */
|
31487
|
-
onMuteAllRemoteParticipants: () => __awaiter$
|
31522
|
+
onMuteAllRemoteParticipants: () => __awaiter$t(void 0, void 0, void 0, function* () {
|
31488
31523
|
yield adapter.muteAllRemoteParticipants();
|
31489
31524
|
})
|
31490
31525
|
};
|
@@ -31622,7 +31657,7 @@ const MoreButton = (props) => {
|
|
31622
31657
|
|
31623
31658
|
// Copyright (c) Microsoft Corporation.
|
31624
31659
|
// Licensed under the MIT License.
|
31625
|
-
var __awaiter$
|
31660
|
+
var __awaiter$s = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
31626
31661
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
31627
31662
|
return new (P || (P = Promise))(function (resolve, reject) {
|
31628
31663
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31644,7 +31679,7 @@ const CaptionsBannerMoreButton = (props) => {
|
|
31644
31679
|
tooltipOffContent: localeStrings.strings.call.captionsBannerMoreButtonTooltip
|
31645
31680
|
}), [localeStrings]);
|
31646
31681
|
const moreButtonContextualMenuItems = [];
|
31647
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
31682
|
+
const startCaptions = React.useCallback(() => __awaiter$s(void 0, void 0, void 0, function* () {
|
31648
31683
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
31649
31684
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
31650
31685
|
});
|
@@ -31853,7 +31888,7 @@ const buttonTextStyles = { label: { fontSize: '0.875rem' } };
|
|
31853
31888
|
|
31854
31889
|
// Copyright (c) Microsoft Corporation.
|
31855
31890
|
// Licensed under the MIT License.
|
31856
|
-
var __awaiter$
|
31891
|
+
var __awaiter$r = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
31857
31892
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
31858
31893
|
return new (P || (P = Promise))(function (resolve, reject) {
|
31859
31894
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31905,7 +31940,7 @@ const EndCall = (props) => {
|
|
31905
31940
|
toggleConfirm();
|
31906
31941
|
}, [onHangUp, toggleConfirm]);
|
31907
31942
|
/* @conditional-compile-remove(end-call-options) */
|
31908
|
-
const hangUpOverride = React.useCallback((forEveryone) => __awaiter$
|
31943
|
+
const hangUpOverride = React.useCallback((forEveryone) => __awaiter$r(void 0, void 0, void 0, function* () {
|
31909
31944
|
if (props.mobileView ||
|
31910
31945
|
forEveryone === false /* value being false(not undefined) because it comes from endCall option */) {
|
31911
31946
|
onHangUp();
|
@@ -32133,7 +32168,11 @@ const Microphone = (props) => {
|
|
32133
32168
|
}
|
32134
32169
|
const styles = React.useMemo(() => { var _a; return concatButtonBaseStyles((_a = props.styles) !== null && _a !== void 0 ? _a : {}); }, [props.styles]);
|
32135
32170
|
// tab focus on MicrophoneButton on page load
|
32136
|
-
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
|
32137
32176
|
? () => React.createElement(_HighContrastAwareIcon, { disabled: true, iconName: 'ControlButtonMicProhibited' })
|
32138
32177
|
: undefined })));
|
32139
32178
|
};
|
@@ -32448,6 +32487,15 @@ const callStatusSelector = reselect.createSelector([getCallStatus, getIsScreenSh
|
|
32448
32487
|
|
32449
32488
|
// Copyright (c) Microsoft Corporation.
|
32450
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
|
+
};
|
32451
32499
|
// Enforce a background color on control bar to ensure it matches the composite background color.
|
32452
32500
|
const controlBarStyles = react.memoizeFunction((background) => ({ root: { background: background } }));
|
32453
32501
|
const inferCallControlOptions = (mobileView, callControlOptions) => {
|
@@ -32469,6 +32517,19 @@ const CallControls = (props) => {
|
|
32469
32517
|
const options = React.useMemo(() => inferCallControlOptions(!!props.isMobile, props.options), [props.isMobile, props.options]);
|
32470
32518
|
const adapter = useAdapter();
|
32471
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]);
|
32472
32533
|
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
32473
32534
|
const peopleButtonStrings = React.useMemo(() => ({
|
32474
32535
|
label: localeStrings.strings.call.peopleButtonLabel,
|
@@ -32646,7 +32707,11 @@ const CallControls = (props) => {
|
|
32646
32707
|
return (React.createElement(react.Stack, { horizontalAlign: "center", className: callControlsContainerStyles },
|
32647
32708
|
React.createElement(react.Stack.Item, null,
|
32648
32709
|
React.createElement(ControlBar, { layout: props.displayVertical ? 'vertical' : 'horizontal', styles: controlBarStyles(theme.semanticColors.bodyBackground) },
|
32649
|
-
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 })),
|
32650
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) })),
|
32651
32716
|
showReactionButtonInControlBar && reactionResources && (React.createElement(Reaction, { displayType: options === null || options === void 0 ? void 0 : options.displayType, reactionResource: reactionResources })),
|
32652
32717
|
showRaiseHandButtonInControlBar && !hideRaiseHandButtonInRoomsCall && (React.createElement(RaiseHand, { displayType: options === null || options === void 0 ? void 0 : options.displayType })),
|
@@ -33610,6 +33675,19 @@ const CommonCallControlBar = (props) => {
|
|
33610
33675
|
label: callStrings.exitSpotlightButtonLabel,
|
33611
33676
|
tooltipContent: callStrings.exitSpotlightButtonTooltip
|
33612
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]);
|
33613
33691
|
const centerContainerStyles = React.useMemo(() => {
|
33614
33692
|
const styles = !props.mobileView ? desktopControlBarStyles : {};
|
33615
33693
|
return react.mergeStyleSets(styles, {
|
@@ -33687,7 +33765,11 @@ const CommonCallControlBar = (props) => {
|
|
33687
33765
|
}), styles: commonButtonStyles })),
|
33688
33766
|
microphoneButtonIsEnabled && (React.createElement(Microphone, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
|
33689
33767
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
33690
|
-
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 })),
|
33691
33773
|
cameraButtonIsEnabled && (React.createElement(Camera, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
|
33692
33774
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
33693
33775
|
disabled: props.disableButtonsForHoldScreen || isDisabled$4(options.cameraButton), onClickVideoEffects: props.onClickVideoEffects, componentRef: props.cameraButtonRef, disableTooltip: props.mobileView })),
|
@@ -40095,8 +40177,23 @@ class CallContext {
|
|
40095
40177
|
}
|
40096
40178
|
setState(state) {
|
40097
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);
|
40098
40183
|
this.emitter.emit('stateChanged', this.state);
|
40099
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
|
+
}
|
40100
40197
|
getState() {
|
40101
40198
|
return this.state;
|
40102
40199
|
}
|
@@ -40841,12 +40938,26 @@ class AzureCommunicationCallAdapter {
|
|
40841
40938
|
}
|
40842
40939
|
startCaptions(options) {
|
40843
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
|
+
}
|
40844
40947
|
this.handlers.onStartCaptions(options);
|
40845
40948
|
});
|
40846
40949
|
}
|
40847
|
-
stopCaptions() {
|
40950
|
+
stopCaptions(options) {
|
40848
40951
|
return __awaiter$b(this, void 0, void 0, function* () {
|
40849
|
-
|
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
|
+
}
|
40850
40961
|
});
|
40851
40962
|
}
|
40852
40963
|
setCaptionLanguage(language) {
|
@@ -41527,6 +41638,16 @@ const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, option
|
|
41527
41638
|
return new AzureCommunicationCallAdapter(callClient, locator, callAgent, deviceManager, options);
|
41528
41639
|
}
|
41529
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
|
+
};
|
41530
41651
|
const isCallError = (e) => {
|
41531
41652
|
return 'target' in e && 'innerError' in e;
|
41532
41653
|
};
|
@@ -41708,22 +41829,22 @@ class CallWithChatBackedCallAdapter {
|
|
41708
41829
|
}
|
41709
41830
|
startCaptions(options) {
|
41710
41831
|
return __awaiter$a(this, void 0, void 0, function* () {
|
41711
|
-
this.callWithChatAdapter.startCaptions(options);
|
41832
|
+
yield this.callWithChatAdapter.startCaptions(options);
|
41712
41833
|
});
|
41713
41834
|
}
|
41714
|
-
stopCaptions() {
|
41835
|
+
stopCaptions(options) {
|
41715
41836
|
return __awaiter$a(this, void 0, void 0, function* () {
|
41716
|
-
this.callWithChatAdapter.stopCaptions();
|
41837
|
+
yield this.callWithChatAdapter.stopCaptions(options);
|
41717
41838
|
});
|
41718
41839
|
}
|
41719
41840
|
setCaptionLanguage(language) {
|
41720
41841
|
return __awaiter$a(this, void 0, void 0, function* () {
|
41721
|
-
this.callWithChatAdapter.setCaptionLanguage(language);
|
41842
|
+
yield this.callWithChatAdapter.setCaptionLanguage(language);
|
41722
41843
|
});
|
41723
41844
|
}
|
41724
41845
|
setSpokenLanguage(language) {
|
41725
41846
|
return __awaiter$a(this, void 0, void 0, function* () {
|
41726
|
-
this.callWithChatAdapter.setSpokenLanguage(language);
|
41847
|
+
yield this.callWithChatAdapter.setSpokenLanguage(language);
|
41727
41848
|
});
|
41728
41849
|
}
|
41729
41850
|
startVideoBackgroundEffect(videoBackgroundEffect) {
|
@@ -42987,9 +43108,9 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42987
43108
|
yield this.callAdapter.startCaptions(options);
|
42988
43109
|
});
|
42989
43110
|
}
|
42990
|
-
stopCaptions() {
|
43111
|
+
stopCaptions(options) {
|
42991
43112
|
return __awaiter$8(this, void 0, void 0, function* () {
|
42992
|
-
yield this.callAdapter.stopCaptions();
|
43113
|
+
yield this.callAdapter.stopCaptions(options);
|
42993
43114
|
});
|
42994
43115
|
}
|
42995
43116
|
setCaptionLanguage(language) {
|
@@ -44376,4 +44497,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
44376
44497
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
44377
44498
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
44378
44499
|
exports.useTheme = useTheme;
|
44379
|
-
//# sourceMappingURL=index-
|
44500
|
+
//# sourceMappingURL=index-CLXDq-Ko.js.map
|