@azure/communication-react 1.5.1-alpha-202305060013 → 1.5.1-alpha-202305090013
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/dist-cjs/communication-react/index.js +248 -216
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +1 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +30 -13
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +5 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +16 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
- package/package.json +8 -8
@@ -164,7 +164,7 @@ const _toCommunicationIdentifier = (id) => {
|
|
164
164
|
// Copyright (c) Microsoft Corporation.
|
165
165
|
// Licensed under the MIT license.
|
166
166
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
167
|
-
var telemetryVersion = '1.5.1-alpha-
|
167
|
+
var telemetryVersion = '1.5.1-alpha-202305090013';
|
168
168
|
|
169
169
|
// Copyright (c) Microsoft Corporation.
|
170
170
|
/**
|
@@ -410,7 +410,7 @@ const getSupportedSpokenLanguages = (state, props) => {
|
|
410
410
|
|
411
411
|
// Copyright (c) Microsoft Corporation.
|
412
412
|
// Licensed under the MIT license.
|
413
|
-
var __awaiter$
|
413
|
+
var __awaiter$J = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
414
414
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
415
415
|
return new (P || (P = Promise))(function (resolve, reject) {
|
416
416
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -448,7 +448,7 @@ const _isPreviewOn = (deviceManager) => {
|
|
448
448
|
*
|
449
449
|
* @private
|
450
450
|
*/
|
451
|
-
const disposeAllLocalPreviewViews = (callClient) => __awaiter$
|
451
|
+
const disposeAllLocalPreviewViews = (callClient) => __awaiter$J(void 0, void 0, void 0, function* () {
|
452
452
|
const unparentedViews = callClient.getState().deviceManager.unparentedViews;
|
453
453
|
for (const view of unparentedViews) {
|
454
454
|
yield callClient.disposeView(undefined, undefined, view);
|
@@ -574,7 +574,7 @@ const holdButtonSelector = reselect__namespace.createSelector([getCallState], (c
|
|
574
574
|
|
575
575
|
// Copyright (c) Microsoft Corporation.
|
576
576
|
// Licensed under the MIT license.
|
577
|
-
var __awaiter$
|
577
|
+
var __awaiter$I = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
578
578
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
579
579
|
return new (P || (P = Promise))(function (resolve, reject) {
|
580
580
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -595,7 +595,7 @@ const areStreamsEqual = (prevStream, newStream) => {
|
|
595
595
|
* @private
|
596
596
|
*/
|
597
597
|
const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callClient, deviceManager, call) => {
|
598
|
-
const onStartLocalVideo = () => __awaiter$
|
598
|
+
const onStartLocalVideo = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
599
599
|
// Before the call object creates a stream, dispose of any local preview streams.
|
600
600
|
// @TODO: is there any way to parent the unparented view to the call object instead
|
601
601
|
// of disposing and creating a new stream?
|
@@ -615,7 +615,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
615
615
|
yield call.startVideo(stream);
|
616
616
|
}
|
617
617
|
});
|
618
|
-
const onStopLocalVideo = (stream) => __awaiter$
|
618
|
+
const onStopLocalVideo = (stream) => __awaiter$I(void 0, void 0, void 0, function* () {
|
619
619
|
const callId = call === null || call === void 0 ? void 0 : call.id;
|
620
620
|
if (!callId) {
|
621
621
|
return;
|
@@ -624,7 +624,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
624
624
|
yield call.stopVideo(stream);
|
625
625
|
}
|
626
626
|
});
|
627
|
-
const onToggleCamera = (options) => __awaiter$
|
627
|
+
const onToggleCamera = (options) => __awaiter$I(void 0, void 0, void 0, function* () {
|
628
628
|
const previewOn = _isPreviewOn(callClient.getState().deviceManager);
|
629
629
|
if (previewOn && call && call.state === 'Connecting') {
|
630
630
|
// This is to workaround: https://skype.visualstudio.com/SPOOL/_workitems/edit/3030558.
|
@@ -672,19 +672,19 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
672
672
|
}
|
673
673
|
}
|
674
674
|
});
|
675
|
-
const onSelectMicrophone = (device) => __awaiter$
|
675
|
+
const onSelectMicrophone = (device) => __awaiter$I(void 0, void 0, void 0, function* () {
|
676
676
|
if (!deviceManager) {
|
677
677
|
return;
|
678
678
|
}
|
679
679
|
return deviceManager.selectMicrophone(device);
|
680
680
|
});
|
681
|
-
const onSelectSpeaker = (device) => __awaiter$
|
681
|
+
const onSelectSpeaker = (device) => __awaiter$I(void 0, void 0, void 0, function* () {
|
682
682
|
if (!deviceManager) {
|
683
683
|
return;
|
684
684
|
}
|
685
685
|
return deviceManager.selectSpeaker(device);
|
686
686
|
});
|
687
|
-
const onSelectCamera = (device, options) => __awaiter$
|
687
|
+
const onSelectCamera = (device, options) => __awaiter$I(void 0, void 0, void 0, function* () {
|
688
688
|
if (!deviceManager) {
|
689
689
|
return;
|
690
690
|
}
|
@@ -707,19 +707,19 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
707
707
|
}, options);
|
708
708
|
}
|
709
709
|
});
|
710
|
-
const onToggleMicrophone = () => __awaiter$
|
710
|
+
const onToggleMicrophone = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
711
711
|
if (!call || !_isInCall(call.state)) {
|
712
712
|
throw new Error(`Please invoke onToggleMicrophone after call is started`);
|
713
713
|
}
|
714
714
|
return call.isMuted ? yield call.unmute() : yield call.mute();
|
715
715
|
});
|
716
|
-
const onStartScreenShare = () => __awaiter$
|
717
|
-
const onStopScreenShare = () => __awaiter$
|
718
|
-
const onToggleScreenShare = () => __awaiter$
|
719
|
-
const onHangUp = (forEveryone) => __awaiter$
|
716
|
+
const onStartScreenShare = () => __awaiter$I(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.startScreenSharing()); });
|
717
|
+
const onStopScreenShare = () => __awaiter$I(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.stopScreenSharing()); });
|
718
|
+
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(); });
|
719
|
+
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 })); });
|
720
720
|
/* @conditional-compile-remove(PSTN-calls) */
|
721
|
-
const onToggleHold = () => __awaiter$
|
722
|
-
const onCreateLocalStreamView = (options = { scalingMode: 'Crop', isMirrored: true }) => __awaiter$
|
721
|
+
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()); });
|
722
|
+
const onCreateLocalStreamView = (options = { scalingMode: 'Crop', isMirrored: true }) => __awaiter$I(void 0, void 0, void 0, function* () {
|
723
723
|
var _a;
|
724
724
|
if (!call || call.localVideoStreams.length === 0) {
|
725
725
|
return;
|
@@ -735,7 +735,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
735
735
|
const { view } = (_a = (yield callClient.createView(call.id, undefined, localStream, options))) !== null && _a !== void 0 ? _a : {};
|
736
736
|
return view ? { view } : undefined;
|
737
737
|
});
|
738
|
-
const onCreateRemoteStreamView = (userId, options = { scalingMode: 'Crop' }) => __awaiter$
|
738
|
+
const onCreateRemoteStreamView = (userId, options = { scalingMode: 'Crop' }) => __awaiter$I(void 0, void 0, void 0, function* () {
|
739
739
|
if (!call) {
|
740
740
|
return;
|
741
741
|
}
|
@@ -766,7 +766,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
766
766
|
}
|
767
767
|
return (createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view) ? { view: createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view } : undefined;
|
768
768
|
});
|
769
|
-
const onDisposeRemoteStreamView = (userId) => __awaiter$
|
769
|
+
const onDisposeRemoteStreamView = (userId) => __awaiter$I(void 0, void 0, void 0, function* () {
|
770
770
|
if (!call) {
|
771
771
|
return;
|
772
772
|
}
|
@@ -787,7 +787,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
787
787
|
callClient.disposeView(call.id, participant.identifier, screenShareStream);
|
788
788
|
}
|
789
789
|
});
|
790
|
-
const onDisposeLocalStreamView = () => __awaiter$
|
790
|
+
const onDisposeLocalStreamView = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
791
791
|
// If the user is currently in a call, dispose of the local stream view attached to that call.
|
792
792
|
const callState = call && callClient.getState().calls[call.id];
|
793
793
|
const localStream = callState === null || callState === void 0 ? void 0 : callState.localVideoStreams.find((item) => item.mediaStreamType === 'Video');
|
@@ -800,18 +800,18 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
800
800
|
yield disposeAllLocalPreviewViews(callClient);
|
801
801
|
});
|
802
802
|
/* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */
|
803
|
-
const onSendDtmfTone = (dtmfTone) => __awaiter$
|
803
|
+
const onSendDtmfTone = (dtmfTone) => __awaiter$I(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.sendDtmf(dtmfTone)); });
|
804
804
|
const notImplemented = () => {
|
805
805
|
throw new Error('Not implemented, cannot call a method from an abstract object');
|
806
806
|
};
|
807
807
|
/* @conditional-compile-remove(call-readiness) */
|
808
|
-
const askDevicePermission = (constrain) => __awaiter$
|
808
|
+
const askDevicePermission = (constrain) => __awaiter$I(void 0, void 0, void 0, function* () {
|
809
809
|
if (deviceManager) {
|
810
810
|
yield (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.askDevicePermission(constrain));
|
811
811
|
}
|
812
812
|
});
|
813
813
|
/* @conditional-compile-remove(video-background-effects) */
|
814
|
-
const onRemoveVideoBackgroundEffects = () => __awaiter$
|
814
|
+
const onRemoveVideoBackgroundEffects = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
815
815
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
816
816
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
817
817
|
if (stream) {
|
@@ -819,7 +819,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
819
819
|
}
|
820
820
|
});
|
821
821
|
/* @conditional-compile-remove(video-background-effects) */
|
822
|
-
const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$
|
822
|
+
const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$I(void 0, void 0, void 0, function* () {
|
823
823
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
824
824
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
825
825
|
if (stream) {
|
@@ -827,7 +827,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
827
827
|
}
|
828
828
|
});
|
829
829
|
/* @conditional-compile-remove(video-background-effects) */
|
830
|
-
const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$
|
830
|
+
const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$I(void 0, void 0, void 0, function* () {
|
831
831
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
832
832
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
833
833
|
if (stream) {
|
@@ -837,19 +837,19 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
837
837
|
}
|
838
838
|
});
|
839
839
|
/* @conditional-compile-remove(close-captions) */
|
840
|
-
const onStartCaptions = (options) => __awaiter$
|
840
|
+
const onStartCaptions = (options) => __awaiter$I(void 0, void 0, void 0, function* () {
|
841
841
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.TeamsCaptions).startCaptions(options));
|
842
842
|
});
|
843
843
|
/* @conditional-compile-remove(close-captions) */
|
844
|
-
const onStopCaptions = () => __awaiter$
|
844
|
+
const onStopCaptions = () => __awaiter$I(void 0, void 0, void 0, function* () {
|
845
845
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.TeamsCaptions).stopCaptions());
|
846
846
|
});
|
847
847
|
/* @conditional-compile-remove(close-captions) */
|
848
|
-
const onSetSpokenLanguage = (language) => __awaiter$
|
848
|
+
const onSetSpokenLanguage = (language) => __awaiter$I(void 0, void 0, void 0, function* () {
|
849
849
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.TeamsCaptions).setSpokenLanguage(language));
|
850
850
|
});
|
851
851
|
/* @conditional-compile-remove(close-captions) */
|
852
|
-
const onSetCaptionLanguage = (language) => __awaiter$
|
852
|
+
const onSetCaptionLanguage = (language) => __awaiter$I(void 0, void 0, void 0, function* () {
|
853
853
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.TeamsCaptions).setCaptionLanguage(language));
|
854
854
|
});
|
855
855
|
return {
|
@@ -895,7 +895,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
895
895
|
|
896
896
|
// Copyright (c) Microsoft Corporation.
|
897
897
|
// Licensed under the MIT license.
|
898
|
-
var __awaiter$
|
898
|
+
var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
899
899
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
900
900
|
return new (P || (P = Promise))(function (resolve, reject) {
|
901
901
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -920,7 +920,7 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
|
|
920
920
|
return callAgent === null || callAgent === void 0 ? void 0 : callAgent.startCall(participants, options);
|
921
921
|
},
|
922
922
|
/* @conditional-compile-remove(PSTN-calls) */
|
923
|
-
onAddParticipant: (userId, options) => __awaiter$
|
923
|
+
onAddParticipant: (userId, options) => __awaiter$H(void 0, void 0, void 0, function* () {
|
924
924
|
const participant = _toCommunicationIdentifier(userId);
|
925
925
|
if (communicationCommon.isPhoneNumberIdentifier(participant)) {
|
926
926
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant, options);
|
@@ -928,7 +928,7 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
|
|
928
928
|
else if (communicationCommon.isCommunicationUserIdentifier(participant) || communicationCommon.isMicrosoftTeamsUserIdentifier(participant)) {
|
929
929
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant);
|
930
930
|
}
|
931
|
-
}), onRemoveParticipant: (userId) => __awaiter$
|
931
|
+
}), onRemoveParticipant: (userId) => __awaiter$H(void 0, void 0, void 0, function* () {
|
932
932
|
const participant = _toCommunicationIdentifier(userId);
|
933
933
|
yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
|
934
934
|
}) });
|
@@ -936,7 +936,7 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
|
|
936
936
|
|
937
937
|
// Copyright (c) Microsoft Corporation.
|
938
938
|
// Licensed under the MIT license.
|
939
|
-
var __awaiter$
|
939
|
+
var __awaiter$G = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
940
940
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
941
941
|
return new (P || (P = Promise))(function (resolve, reject) {
|
942
942
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -968,7 +968,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne__default['default']((callCl
|
|
968
968
|
},
|
969
969
|
/* @conditional-compile-remove(teams-identity-support) */
|
970
970
|
/* @conditional-compile-remove(PSTN-calls) */
|
971
|
-
onAddParticipant: (userId, options) => __awaiter$
|
971
|
+
onAddParticipant: (userId, options) => __awaiter$G(void 0, void 0, void 0, function* () {
|
972
972
|
const participant = _toCommunicationIdentifier(userId);
|
973
973
|
/* @conditional-compile-remove(teams-identity-support) */
|
974
974
|
const threadId = options === null || options === void 0 ? void 0 : options.threadId;
|
@@ -981,7 +981,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne__default['default']((callCl
|
|
981
981
|
}
|
982
982
|
/* @conditional-compile-remove(teams-identity-support) */
|
983
983
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant);
|
984
|
-
}), onRemoveParticipant: (userId) => __awaiter$
|
984
|
+
}), onRemoveParticipant: (userId) => __awaiter$G(void 0, void 0, void 0, function* () {
|
985
985
|
const participant = _toCommunicationIdentifier(userId);
|
986
986
|
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
987
987
|
throw new Error('CommunicationIdentifier in Teams call is not supported!');
|
@@ -1043,7 +1043,7 @@ const _captionsBannerSelector = reselect__namespace.createSelector([getCaptions,
|
|
1043
1043
|
|
1044
1044
|
// Copyright (c) Microsoft Corporation.
|
1045
1045
|
// Licensed under the MIT license.
|
1046
|
-
var __awaiter$
|
1046
|
+
var __awaiter$F = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
1047
1047
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
1048
1048
|
return new (P || (P = Promise))(function (resolve, reject) {
|
1049
1049
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -1092,13 +1092,13 @@ class ProxyDeviceManager {
|
|
1092
1092
|
this.selectCamera = (videoDeviceInfo) => {
|
1093
1093
|
this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);
|
1094
1094
|
};
|
1095
|
-
this.videoDevicesUpdated = () => __awaiter$
|
1095
|
+
this.videoDevicesUpdated = () => __awaiter$F(this, void 0, void 0, function* () {
|
1096
1096
|
// Device Manager always has a camera with '' name if there are no real camera devices available.
|
1097
1097
|
// We don't want to show that in the UI.
|
1098
1098
|
const realCameras = (yield this._deviceManager.getCameras()).filter((c) => !!c.name);
|
1099
1099
|
this._context.setDeviceManagerCameras(dedupeById(realCameras));
|
1100
1100
|
});
|
1101
|
-
this.audioDevicesUpdated = () => __awaiter$
|
1101
|
+
this.audioDevicesUpdated = () => __awaiter$F(this, void 0, void 0, function* () {
|
1102
1102
|
this._context.setDeviceManagerMicrophones(dedupeById(yield this._deviceManager.getMicrophones()));
|
1103
1103
|
this._context.setDeviceManagerSpeakers(dedupeById(yield this._deviceManager.getSpeakers()));
|
1104
1104
|
});
|
@@ -1464,7 +1464,7 @@ function convertFromSDKToCaptionInfoState(caption) {
|
|
1464
1464
|
|
1465
1465
|
// Copyright (c) Microsoft Corporation.
|
1466
1466
|
// Licensed under the MIT license.
|
1467
|
-
var __awaiter$
|
1467
|
+
var __awaiter$E = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
1468
1468
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
1469
1469
|
return new (P || (P = Promise))(function (resolve, reject) {
|
1470
1470
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -2127,7 +2127,7 @@ class CallContext$2 {
|
|
2127
2127
|
* @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.
|
2128
2128
|
*/
|
2129
2129
|
withAsyncErrorTeedToState(action, target) {
|
2130
|
-
return (...args) => __awaiter$
|
2130
|
+
return (...args) => __awaiter$E(this, void 0, void 0, function* () {
|
2131
2131
|
try {
|
2132
2132
|
return yield action(...args);
|
2133
2133
|
}
|
@@ -2555,7 +2555,7 @@ function _logStreamEvent(eventName, streamLogInfo, error) {
|
|
2555
2555
|
|
2556
2556
|
// Copyright (c) Microsoft Corporation.
|
2557
2557
|
// Licensed under the MIT license.
|
2558
|
-
var __awaiter$
|
2558
|
+
var __awaiter$D = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2559
2559
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
2560
2560
|
return new (P || (P = Promise))(function (resolve, reject) {
|
2561
2561
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -2565,7 +2565,7 @@ var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
2565
2565
|
});
|
2566
2566
|
};
|
2567
2567
|
function createViewVideo(context, internalContext, callId, stream, participantId, options) {
|
2568
|
-
return __awaiter$
|
2568
|
+
return __awaiter$D(this, void 0, void 0, function* () {
|
2569
2569
|
// we can only have 3 types of createView
|
2570
2570
|
let streamEventType;
|
2571
2571
|
// we will reuse these for local as well but we need to make sure the remote stream is passed in like before.
|
@@ -2687,7 +2687,7 @@ function createViewVideo(context, internalContext, callId, stream, participantId
|
|
2687
2687
|
});
|
2688
2688
|
}
|
2689
2689
|
function createViewUnparentedVideo(context, internalContext, stream, options) {
|
2690
|
-
return __awaiter$
|
2690
|
+
return __awaiter$D(this, void 0, void 0, function* () {
|
2691
2691
|
const renderInfo = internalContext.getUnparentedRenderInfo(stream);
|
2692
2692
|
if (renderInfo && renderInfo.status === 'Rendered') {
|
2693
2693
|
console.warn('Unparented LocalVideoStream is already rendered');
|
@@ -2855,7 +2855,7 @@ function createView(context, internalContext, callId, participantId, stream, opt
|
|
2855
2855
|
// Render LocalVideoStream that is not part of a Call
|
2856
2856
|
// 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).
|
2857
2857
|
// We do not have a startLocalPreviewVideo function, so as a workaround we ensure any errors are propagated here.
|
2858
|
-
return context.withAsyncErrorTeedToState(() => __awaiter$
|
2858
|
+
return context.withAsyncErrorTeedToState(() => __awaiter$D(this, void 0, void 0, function* () { return yield createViewUnparentedVideo(context, internalContext, stream, options); }), 'Call.startVideo')();
|
2859
2859
|
}
|
2860
2860
|
else {
|
2861
2861
|
_logStreamEvent(EventNames.CREATE_STREAM_INVALID_PARAMS, { streamType });
|
@@ -3304,7 +3304,7 @@ class CallSubscriber {
|
|
3304
3304
|
|
3305
3305
|
// Copyright (c) Microsoft Corporation.
|
3306
3306
|
// Licensed under the MIT license.
|
3307
|
-
var __awaiter$
|
3307
|
+
var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3308
3308
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3309
3309
|
return new (P || (P = Promise))(function (resolve, reject) {
|
3310
3310
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -3324,14 +3324,14 @@ class ProxyIncomingCall {
|
|
3324
3324
|
switch (prop) {
|
3325
3325
|
case 'accept': {
|
3326
3326
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
3327
|
-
return __awaiter$
|
3327
|
+
return __awaiter$C(this, void 0, void 0, function* () {
|
3328
3328
|
return yield target.accept(...args);
|
3329
3329
|
});
|
3330
3330
|
}, 'IncomingCall.accept');
|
3331
3331
|
}
|
3332
3332
|
case 'reject': {
|
3333
3333
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
3334
|
-
return __awaiter$
|
3334
|
+
return __awaiter$C(this, void 0, void 0, function* () {
|
3335
3335
|
return yield target.reject(...args);
|
3336
3336
|
});
|
3337
3337
|
}, 'IncomingCall.reject');
|
@@ -3568,7 +3568,7 @@ const clearCallRelatedState = (context, internalContext) => {
|
|
3568
3568
|
|
3569
3569
|
// Copyright (c) Microsoft Corporation.
|
3570
3570
|
// Licensed under the MIT license.
|
3571
|
-
var __awaiter$
|
3571
|
+
var __awaiter$B = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3572
3572
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3573
3573
|
return new (P || (P = Promise))(function (resolve, reject) {
|
3574
3574
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -3594,56 +3594,56 @@ class ProxyCallCommon {
|
|
3594
3594
|
switch (prop) {
|
3595
3595
|
case 'mute': {
|
3596
3596
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
3597
|
-
return __awaiter$
|
3597
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
3598
3598
|
return yield target.mute(...args);
|
3599
3599
|
});
|
3600
3600
|
}, 'Call.mute');
|
3601
3601
|
}
|
3602
3602
|
case 'unmute': {
|
3603
3603
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
3604
|
-
return __awaiter$
|
3604
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
3605
3605
|
return yield target.unmute(...args);
|
3606
3606
|
});
|
3607
3607
|
}, 'Call.unmute');
|
3608
3608
|
}
|
3609
3609
|
case 'startVideo': {
|
3610
3610
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
3611
|
-
return __awaiter$
|
3611
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
3612
3612
|
return yield target.startVideo(...args);
|
3613
3613
|
});
|
3614
3614
|
}, 'Call.startVideo');
|
3615
3615
|
}
|
3616
3616
|
case 'stopVideo': {
|
3617
3617
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
3618
|
-
return __awaiter$
|
3618
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
3619
3619
|
return yield target.stopVideo(...args);
|
3620
3620
|
});
|
3621
3621
|
}, 'Call.stopVideo');
|
3622
3622
|
}
|
3623
3623
|
case 'startScreenSharing': {
|
3624
3624
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
3625
|
-
return __awaiter$
|
3625
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
3626
3626
|
return yield target.startScreenSharing(...args);
|
3627
3627
|
});
|
3628
3628
|
}, 'Call.startScreenSharing');
|
3629
3629
|
}
|
3630
3630
|
case 'stopScreenSharing': {
|
3631
3631
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
3632
|
-
return __awaiter$
|
3632
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
3633
3633
|
return yield target.stopScreenSharing(...args);
|
3634
3634
|
});
|
3635
3635
|
}, 'Call.stopScreenSharing');
|
3636
3636
|
}
|
3637
3637
|
case 'hold': {
|
3638
3638
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
3639
|
-
return __awaiter$
|
3639
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
3640
3640
|
return yield target.hold(...args);
|
3641
3641
|
});
|
3642
3642
|
}, 'Call.hold');
|
3643
3643
|
}
|
3644
3644
|
case 'resume': {
|
3645
3645
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
3646
|
-
return __awaiter$
|
3646
|
+
return __awaiter$B(this, void 0, void 0, function* () {
|
3647
3647
|
return yield target.resume(...args);
|
3648
3648
|
});
|
3649
3649
|
}, 'Call.resume');
|
@@ -3677,7 +3677,7 @@ class ProxyTeamsCaptionsFeature {
|
|
3677
3677
|
get(target, prop) {
|
3678
3678
|
switch (prop) {
|
3679
3679
|
case 'startCaptions':
|
3680
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
3680
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$B(this, void 0, void 0, function* () {
|
3681
3681
|
var _a, _b;
|
3682
3682
|
const ret = yield target.startCaptions(...args);
|
3683
3683
|
this._context.setIsCaptionActive(this._call.id, true);
|
@@ -3685,19 +3685,19 @@ class ProxyTeamsCaptionsFeature {
|
|
3685
3685
|
return ret;
|
3686
3686
|
}), 'Call.feature');
|
3687
3687
|
case 'stopCaptions':
|
3688
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
3688
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$B(this, void 0, void 0, function* () {
|
3689
3689
|
const ret = yield target.stopCaptions(...args);
|
3690
3690
|
this._context.setIsCaptionActive(this._call.id, false);
|
3691
3691
|
return ret;
|
3692
3692
|
}), 'Call.feature');
|
3693
3693
|
case 'setSpokenLanguage':
|
3694
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
3694
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$B(this, void 0, void 0, function* () {
|
3695
3695
|
const ret = yield target.setSpokenLanguage(...args);
|
3696
3696
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
3697
3697
|
return ret;
|
3698
3698
|
}), 'Call.feature');
|
3699
3699
|
case 'setCaptionLanguage':
|
3700
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
3700
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$B(this, void 0, void 0, function* () {
|
3701
3701
|
const ret = yield target.setCaptionLanguage(...args);
|
3702
3702
|
this._context.setSelectedCaptionLanguage(this._call.id, args[0]);
|
3703
3703
|
return ret;
|
@@ -3710,7 +3710,7 @@ class ProxyTeamsCaptionsFeature {
|
|
3710
3710
|
|
3711
3711
|
// Copyright (c) Microsoft Corporation.
|
3712
3712
|
// Licensed under the MIT license.
|
3713
|
-
var __awaiter$
|
3713
|
+
var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3714
3714
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3715
3715
|
return new (P || (P = Promise))(function (resolve, reject) {
|
3716
3716
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -3724,7 +3724,7 @@ class ProxyCall extends ProxyCallCommon {
|
|
3724
3724
|
switch (prop) {
|
3725
3725
|
case 'addParticipant': {
|
3726
3726
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
3727
|
-
return __awaiter$
|
3727
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
3728
3728
|
return yield target.addParticipant(...args);
|
3729
3729
|
});
|
3730
3730
|
}, 'Call.addParticipant');
|
@@ -3945,7 +3945,7 @@ class InternalCallContext {
|
|
3945
3945
|
|
3946
3946
|
// Copyright (c) Microsoft Corporation.
|
3947
3947
|
// Licensed under the MIT license.
|
3948
|
-
var __awaiter$
|
3948
|
+
var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3949
3949
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3950
3950
|
return new (P || (P = Promise))(function (resolve, reject) {
|
3951
3951
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -3960,7 +3960,7 @@ class ProxyTeamsCall extends ProxyCallCommon {
|
|
3960
3960
|
switch (prop) {
|
3961
3961
|
case 'addParticipant': {
|
3962
3962
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
3963
|
-
return __awaiter$
|
3963
|
+
return __awaiter$z(this, void 0, void 0, function* () {
|
3964
3964
|
return yield target.addParticipant(...args);
|
3965
3965
|
});
|
3966
3966
|
}, 'TeamsCall.addParticipant');
|
@@ -4075,7 +4075,7 @@ const teamsCallAgentDeclaratify = (callAgent, context, internalContext) => {
|
|
4075
4075
|
|
4076
4076
|
// Copyright (c) Microsoft Corporation.
|
4077
4077
|
// Licensed under the MIT license.
|
4078
|
-
var __awaiter$
|
4078
|
+
var __awaiter$y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
4079
4079
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4080
4080
|
return new (P || (P = Promise))(function (resolve, reject) {
|
4081
4081
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -4097,7 +4097,7 @@ class ProxyVideoStreamRendererView {
|
|
4097
4097
|
get(target, prop) {
|
4098
4098
|
switch (prop) {
|
4099
4099
|
case 'updateScalingMode': {
|
4100
|
-
return (...args) => __awaiter$
|
4100
|
+
return (...args) => __awaiter$y(this, void 0, void 0, function* () {
|
4101
4101
|
yield target.updateScalingMode(...args);
|
4102
4102
|
this._context.setRemoteVideoStreamViewScalingMode(this._callId, this._participantId, this._streamId, args[0]);
|
4103
4103
|
});
|
@@ -4118,7 +4118,7 @@ const videoStreamRendererViewDeclaratify = (view, context, callId, participantId
|
|
4118
4118
|
|
4119
4119
|
// Copyright (c) Microsoft Corporation.
|
4120
4120
|
// Licensed under the MIT license.
|
4121
|
-
var __awaiter$
|
4121
|
+
var __awaiter$x = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
4122
4122
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4123
4123
|
return new (P || (P = Promise))(function (resolve, reject) {
|
4124
4124
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -4140,7 +4140,7 @@ class ProxyCallClient {
|
|
4140
4140
|
get(target, prop) {
|
4141
4141
|
switch (prop) {
|
4142
4142
|
case 'createCallAgent': {
|
4143
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
4143
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, void 0, void 0, function* () {
|
4144
4144
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
4145
4145
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
4146
4146
|
// callAgent if the createCallAgent succeeds.
|
@@ -4153,7 +4153,7 @@ class ProxyCallClient {
|
|
4153
4153
|
}), 'CallClient.createCallAgent');
|
4154
4154
|
}
|
4155
4155
|
case 'createTeamsCallAgent': {
|
4156
|
-
/* @conditional-compile-remove(teams-identity-support) */ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
4156
|
+
/* @conditional-compile-remove(teams-identity-support) */ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, void 0, void 0, function* () {
|
4157
4157
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
4158
4158
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
4159
4159
|
// callAgent if the createCallAgent succeeds.
|
@@ -4166,7 +4166,7 @@ class ProxyCallClient {
|
|
4166
4166
|
}), 'CallClient.createTeamsCallAgent');
|
4167
4167
|
}
|
4168
4168
|
case 'getDeviceManager': {
|
4169
|
-
return this._context.withAsyncErrorTeedToState(() => __awaiter$
|
4169
|
+
return this._context.withAsyncErrorTeedToState(() => __awaiter$x(this, void 0, void 0, function* () {
|
4170
4170
|
// As of writing, the SDK always returns the same instance of DeviceManager so we keep a reference of
|
4171
4171
|
// DeviceManager and if it does not change we return the cached DeclarativeDeviceManager. If it does not we'll
|
4172
4172
|
// throw an error that indicate we need to fix this issue as our implementation has diverged from the SDK.
|
@@ -4195,7 +4195,7 @@ class ProxyCallClient {
|
|
4195
4195
|
/**
|
4196
4196
|
* add to this object if we want to proxy anything else off the DebugInfo feature object.
|
4197
4197
|
*/
|
4198
|
-
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$
|
4198
|
+
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$x(this, void 0, void 0, function* () {
|
4199
4199
|
const environmentInfo = yield feature.getEnvironmentInfo();
|
4200
4200
|
this._context.setEnvironmentInfo(environmentInfo);
|
4201
4201
|
return environmentInfo;
|
@@ -4248,7 +4248,7 @@ const createStatefulCallClientWithDeps = (callClient, context, internalContext)
|
|
4248
4248
|
});
|
4249
4249
|
Object.defineProperty(callClient, 'createView', {
|
4250
4250
|
configurable: false,
|
4251
|
-
value: (callId, participantId, stream, options) => __awaiter$
|
4251
|
+
value: (callId, participantId, stream, options) => __awaiter$x(void 0, void 0, void 0, function* () {
|
4252
4252
|
const participantIdKind = participantId ? communicationCommon.getIdentifierKind(participantId) : undefined;
|
4253
4253
|
const result = yield createView(context, internalContext, callId, participantIdKind, stream, options);
|
4254
4254
|
// We only need to declaratify the VideoStreamRendererView object for remote participants. Because the updateScalingMode only needs to be called on remote participant stream views.
|
@@ -6021,7 +6021,7 @@ const _MentionPopover = (props) => {
|
|
6021
6021
|
|
6022
6022
|
// Copyright (c) Microsoft Corporation.
|
6023
6023
|
// Licensed under the MIT license.
|
6024
|
-
var __awaiter$
|
6024
|
+
var __awaiter$w = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
6025
6025
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
6026
6026
|
return new (P || (P = Promise))(function (resolve, reject) {
|
6027
6027
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -6179,7 +6179,7 @@ const InputBoxComponent = (props) => {
|
|
6179
6179
|
onSuggestionSelected
|
6180
6180
|
]);
|
6181
6181
|
/* @conditional-compile-remove(mention) */
|
6182
|
-
const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$
|
6182
|
+
const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$w(void 0, void 0, void 0, function* () {
|
6183
6183
|
var _a;
|
6184
6184
|
const suggestions = (_a = (yield (mentionLookupOptions === null || mentionLookupOptions === void 0 ? void 0 : mentionLookupOptions.onQueryUpdated(query)))) !== null && _a !== void 0 ? _a : [];
|
6185
6185
|
if (suggestions.length === 0) {
|
@@ -6197,7 +6197,7 @@ const InputBoxComponent = (props) => {
|
|
6197
6197
|
};
|
6198
6198
|
}, [debouncedQueryUpdate]);
|
6199
6199
|
/* @conditional-compile-remove(mention) */
|
6200
|
-
const handleOnChange = React.useCallback((event, updatedValue) => __awaiter$
|
6200
|
+
const handleOnChange = React.useCallback((event, updatedValue) => __awaiter$w(void 0, void 0, void 0, function* () {
|
6201
6201
|
var _b, _c;
|
6202
6202
|
const newValue = updatedValue !== null && updatedValue !== void 0 ? updatedValue : '';
|
6203
6203
|
const triggerText = (_b = mentionLookupOptions === null || mentionLookupOptions === void 0 ? void 0 : mentionLookupOptions.trigger) !== null && _b !== void 0 ? _b : defaultMentionTrigger;
|
@@ -8523,7 +8523,7 @@ const chatMessageActionMenuProps = (menuProps) => {
|
|
8523
8523
|
return actionMenuProps;
|
8524
8524
|
};
|
8525
8525
|
|
8526
|
-
var __awaiter$
|
8526
|
+
var __awaiter$v = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8527
8527
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
8528
8528
|
return new (P || (P = Promise))(function (resolve, reject) {
|
8529
8529
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -8548,7 +8548,7 @@ const _FileDownloadCards = (props) => {
|
|
8548
8548
|
var _a, _b;
|
8549
8549
|
return (_b = (_a = props.strings) === null || _a === void 0 ? void 0 : _a.downloadFile) !== null && _b !== void 0 ? _b : localeStrings.downloadFile;
|
8550
8550
|
}, [(_a = props.strings) === null || _a === void 0 ? void 0 : _a.downloadFile, localeStrings.downloadFile]);
|
8551
|
-
const fileDownloadHandler = React.useCallback((userId, file) => __awaiter$
|
8551
|
+
const fileDownloadHandler = React.useCallback((userId, file) => __awaiter$v(void 0, void 0, void 0, function* () {
|
8552
8552
|
if (!props.downloadHandler) {
|
8553
8553
|
window.open(file.url, '_blank', 'noopener,noreferrer');
|
8554
8554
|
}
|
@@ -8719,7 +8719,7 @@ const ChatMessageComponentAsMessageBubble = React__default['default'].memo(Messa
|
|
8719
8719
|
|
8720
8720
|
// Copyright (c) Microsoft Corporation.
|
8721
8721
|
// Licensed under the MIT license.
|
8722
|
-
var __awaiter$
|
8722
|
+
var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8723
8723
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
8724
8724
|
return new (P || (P = Promise))(function (resolve, reject) {
|
8725
8725
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -8752,7 +8752,7 @@ const ChatMessageComponent = (props) => {
|
|
8752
8752
|
onSendMessage && onSendMessage(content !== undefined ? content : '');
|
8753
8753
|
}, [clientMessageId, content, onSendMessage, onDeleteMessage]);
|
8754
8754
|
if (isEditing && message.messageType === 'chat') {
|
8755
|
-
return (React__default['default'].createElement(ChatMessageComponentAsEditBox, { message: message, inlineEditButtons: props.inlineAcceptRejectEditButtons, strings: props.strings, onSubmit: (text, metadata, options) => __awaiter$
|
8755
|
+
return (React__default['default'].createElement(ChatMessageComponentAsEditBox, { message: message, inlineEditButtons: props.inlineAcceptRejectEditButtons, strings: props.strings, onSubmit: (text, metadata, options) => __awaiter$u(void 0, void 0, void 0, function* () {
|
8756
8756
|
props.onUpdateMessage &&
|
8757
8757
|
message.messageId &&
|
8758
8758
|
(yield props.onUpdateMessage(message.messageId, text, metadata, options));
|
@@ -8867,7 +8867,7 @@ var getParticipantsWhoHaveReadMessage = (message, readReceiptsBySenderId) => {
|
|
8867
8867
|
|
8868
8868
|
// Copyright (c) Microsoft Corporation.
|
8869
8869
|
// Licensed under the MIT license.
|
8870
|
-
var __awaiter$
|
8870
|
+
var __awaiter$t = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8871
8871
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
8872
8872
|
return new (P || (P = Promise))(function (resolve, reject) {
|
8873
8873
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -9089,7 +9089,7 @@ const MessageThread = (props) => {
|
|
9089
9089
|
/* @conditional-compile-remove(teams-inline-images) */
|
9090
9090
|
const [inlineAttachments, setInlineAttachments] = React.useState({});
|
9091
9091
|
/* @conditional-compile-remove(teams-inline-images) */
|
9092
|
-
const onFetchInlineAttachment = React.useCallback((attachment) => __awaiter$
|
9092
|
+
const onFetchInlineAttachment = React.useCallback((attachment) => __awaiter$t(void 0, void 0, void 0, function* () {
|
9093
9093
|
if (!onFetchAttachments || attachment.id in inlineAttachments) {
|
9094
9094
|
return;
|
9095
9095
|
}
|
@@ -9134,7 +9134,7 @@ const MessageThread = (props) => {
|
|
9134
9134
|
setChatMessagesInitialized(chatMessagesInitialized);
|
9135
9135
|
};
|
9136
9136
|
// we try to only send those message status if user is scrolled to the bottom.
|
9137
|
-
const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$
|
9137
|
+
const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$t(void 0, void 0, void 0, function* () {
|
9138
9138
|
if (!isAtBottomOfScrollRef.current ||
|
9139
9139
|
!document.hasFocus() ||
|
9140
9140
|
!messagesRef.current ||
|
@@ -9185,7 +9185,7 @@ const MessageThread = (props) => {
|
|
9185
9185
|
setIsAtBottomOfScrollRef(atBottom);
|
9186
9186
|
}, [scrollToBottom, sendMessageStatusIfAtBottom]);
|
9187
9187
|
// Infinite scrolling + threadInitialize function
|
9188
|
-
const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$
|
9188
|
+
const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$t(void 0, void 0, void 0, function* () {
|
9189
9189
|
if (!isLoadingChatMessagesRef.current) {
|
9190
9190
|
if (onLoadPreviousChatMessages) {
|
9191
9191
|
isLoadingChatMessagesRef.current = true;
|
@@ -13521,7 +13521,7 @@ const DevicesButton = (props) => {
|
|
13521
13521
|
|
13522
13522
|
// Copyright (c) Microsoft Corporation.
|
13523
13523
|
// Licensed under the MIT license.
|
13524
|
-
var __awaiter$
|
13524
|
+
var __awaiter$s = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
13525
13525
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
13526
13526
|
return new (P || (P = Promise))(function (resolve, reject) {
|
13527
13527
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -13559,7 +13559,7 @@ const CameraButton = (props) => {
|
|
13559
13559
|
const toggleAnnouncerString = React.useCallback((isCameraOn) => {
|
13560
13560
|
setAnnouncerString(!isCameraOn ? strings.cameraActionTurnedOffAnnouncement : strings.cameraActionTurnedOnAnnouncement);
|
13561
13561
|
}, [strings.cameraActionTurnedOffAnnouncement, strings.cameraActionTurnedOnAnnouncement]);
|
13562
|
-
const onToggleClick = React.useCallback(() => __awaiter$
|
13562
|
+
const onToggleClick = React.useCallback(() => __awaiter$s(void 0, void 0, void 0, function* () {
|
13563
13563
|
// Throttle click on camera, need to await onToggleCamera then allow another click
|
13564
13564
|
if (onToggleCamera) {
|
13565
13565
|
setWaitForCamera(true);
|
@@ -13727,7 +13727,7 @@ const lightThemeCallButtonStyles = {
|
|
13727
13727
|
|
13728
13728
|
// Copyright (c) Microsoft Corporation.
|
13729
13729
|
// Licensed under the MIT license.
|
13730
|
-
var __awaiter$
|
13730
|
+
var __awaiter$r = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
13731
13731
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
13732
13732
|
return new (P || (P = Promise))(function (resolve, reject) {
|
13733
13733
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -13768,7 +13768,7 @@ const MicrophoneButton = (props) => {
|
|
13768
13768
|
const toggleAnnouncerString = React.useCallback((isMicOn) => {
|
13769
13769
|
setAnnouncerString(!isMicOn ? strings.microphoneActionTurnedOffAnnouncement : strings.microphoneActionTurnedOnAnnouncement);
|
13770
13770
|
}, [strings.microphoneActionTurnedOffAnnouncement, strings.microphoneActionTurnedOnAnnouncement]);
|
13771
|
-
const onToggleClick = React.useCallback(() => __awaiter$
|
13771
|
+
const onToggleClick = React.useCallback(() => __awaiter$r(void 0, void 0, void 0, function* () {
|
13772
13772
|
if (onToggleMicrophone) {
|
13773
13773
|
try {
|
13774
13774
|
yield onToggleMicrophone();
|
@@ -14664,7 +14664,7 @@ const formatPhoneNumber = (phoneNumber) => {
|
|
14664
14664
|
|
14665
14665
|
// Copyright (c) Microsoft Corporation.
|
14666
14666
|
// Licensed under the MIT license.
|
14667
|
-
var __awaiter$
|
14667
|
+
var __awaiter$q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
14668
14668
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
14669
14669
|
return new (P || (P = Promise))(function (resolve, reject) {
|
14670
14670
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -14706,10 +14706,10 @@ const DialpadButton = (props) => {
|
|
14706
14706
|
const theme = react.useTheme();
|
14707
14707
|
const { digit, index, onClick, onLongPress, isMobile = false } = props;
|
14708
14708
|
const useLongPressProps = React__default['default'].useMemo(() => ({
|
14709
|
-
onClick: () => __awaiter$
|
14709
|
+
onClick: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
14710
14710
|
onClick(digit, index);
|
14711
14711
|
}),
|
14712
|
-
onLongPress: () => __awaiter$
|
14712
|
+
onLongPress: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
14713
14713
|
onLongPress(digit, index);
|
14714
14714
|
}),
|
14715
14715
|
touchEventsOnly: isMobile
|
@@ -15447,7 +15447,7 @@ const dropdownStyles = {
|
|
15447
15447
|
callout: Object.assign({ height: _pxToRem(300), overflow: 'auto' }, scrollbarStyles)
|
15448
15448
|
};
|
15449
15449
|
|
15450
|
-
var __awaiter$
|
15450
|
+
var __awaiter$p = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
15451
15451
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
15452
15452
|
return new (P || (P = Promise))(function (resolve, reject) {
|
15453
15453
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -15472,7 +15472,7 @@ const _CaptionsSettingsModal = (props) => {
|
|
15472
15472
|
onDismissCaptionsSettings();
|
15473
15473
|
}
|
15474
15474
|
}, [onDismissCaptionsSettings]);
|
15475
|
-
const onConfirm = React.useCallback(() => __awaiter$
|
15475
|
+
const onConfirm = React.useCallback(() => __awaiter$p(void 0, void 0, void 0, function* () {
|
15476
15476
|
const languageCode = selectedItem.key.toString();
|
15477
15477
|
if (isCaptionsFeatureActive) {
|
15478
15478
|
onSetSpokenLanguage(languageCode);
|
@@ -16069,7 +16069,7 @@ const findConditionalCompiledSelector = (component) => {
|
|
16069
16069
|
|
16070
16070
|
// Copyright (c) Microsoft Corporation.
|
16071
16071
|
// Licensed under the MIT license.
|
16072
|
-
var __awaiter$
|
16072
|
+
var __awaiter$o = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
16073
16073
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
16074
16074
|
return new (P || (P = Promise))(function (resolve, reject) {
|
16075
16075
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -16092,35 +16092,35 @@ const createDefaultChatHandlers = memoizeOne__default['default']((chatClient, ch
|
|
16092
16092
|
let messageIterator = undefined;
|
16093
16093
|
let readReceiptIterator = undefined;
|
16094
16094
|
return {
|
16095
|
-
onSendMessage: (content, options) => __awaiter$
|
16095
|
+
onSendMessage: (content, options) => __awaiter$o(void 0, void 0, void 0, function* () {
|
16096
16096
|
const sendMessageRequest = {
|
16097
16097
|
content,
|
16098
16098
|
senderDisplayName: chatClient.getState().displayName
|
16099
16099
|
};
|
16100
16100
|
yield chatThreadClient.sendMessage(sendMessageRequest, options);
|
16101
16101
|
}),
|
16102
|
-
onUpdateMessage: (messageId, content, metadata, options) => __awaiter$
|
16102
|
+
onUpdateMessage: (messageId, content, metadata, options) => __awaiter$o(void 0, void 0, void 0, function* () {
|
16103
16103
|
const updatedMetadata = metadata ? Object.assign({}, metadata) : {};
|
16104
16104
|
updatedMetadata['fileSharingMetadata'] = JSON.stringify((options === null || options === void 0 ? void 0 : options.attachedFilesMetadata) || []);
|
16105
16105
|
yield chatThreadClient.updateMessage(messageId, { content, metadata: updatedMetadata });
|
16106
16106
|
}),
|
16107
|
-
onDeleteMessage: (messageId) => __awaiter$
|
16107
|
+
onDeleteMessage: (messageId) => __awaiter$o(void 0, void 0, void 0, function* () {
|
16108
16108
|
yield chatThreadClient.deleteMessage(messageId);
|
16109
16109
|
}),
|
16110
16110
|
// This handler is designed for chatThread to consume
|
16111
|
-
onMessageSeen: (chatMessageId) => __awaiter$
|
16111
|
+
onMessageSeen: (chatMessageId) => __awaiter$o(void 0, void 0, void 0, function* () {
|
16112
16112
|
yield chatThreadClient.sendReadReceipt({ chatMessageId });
|
16113
16113
|
}),
|
16114
|
-
onTyping: () => __awaiter$
|
16114
|
+
onTyping: () => __awaiter$o(void 0, void 0, void 0, function* () {
|
16115
16115
|
yield chatThreadClient.sendTypingNotification();
|
16116
16116
|
}),
|
16117
|
-
onRemoveParticipant: (userId) => __awaiter$
|
16117
|
+
onRemoveParticipant: (userId) => __awaiter$o(void 0, void 0, void 0, function* () {
|
16118
16118
|
yield chatThreadClient.removeParticipant(fromFlatCommunicationIdentifier(userId));
|
16119
16119
|
}),
|
16120
|
-
updateThreadTopicName: (topicName) => __awaiter$
|
16120
|
+
updateThreadTopicName: (topicName) => __awaiter$o(void 0, void 0, void 0, function* () {
|
16121
16121
|
yield chatThreadClient.updateTopic(topicName);
|
16122
16122
|
}),
|
16123
|
-
onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$
|
16123
|
+
onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$o(void 0, void 0, void 0, function* () {
|
16124
16124
|
var _a, _b, _c;
|
16125
16125
|
if (messageIterator === undefined) {
|
16126
16126
|
// Lazy definition so that errors in the method call are reported correctly.
|
@@ -16919,7 +16919,7 @@ const chatStatefulLogger = logger.createClientLogger('communication-react:chat-s
|
|
16919
16919
|
|
16920
16920
|
// Copyright (c) Microsoft Corporation.
|
16921
16921
|
// Licensed under the MIT license.
|
16922
|
-
var __awaiter$
|
16922
|
+
var __awaiter$n = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
16923
16923
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
16924
16924
|
return new (P || (P = Promise))(function (resolve, reject) {
|
16925
16925
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -17194,7 +17194,7 @@ class ChatContext$1 {
|
|
17194
17194
|
* @throws ChatError. Exceptions thrown from `f` are tagged with the failed `target.
|
17195
17195
|
*/
|
17196
17196
|
withAsyncErrorTeedToState(f, target) {
|
17197
|
-
return (...args) => __awaiter$
|
17197
|
+
return (...args) => __awaiter$n(this, void 0, void 0, function* () {
|
17198
17198
|
try {
|
17199
17199
|
return yield f(...args);
|
17200
17200
|
}
|
@@ -17306,7 +17306,7 @@ const convertChatMessage = (message, status = 'delivered', clientMessageId) => {
|
|
17306
17306
|
|
17307
17307
|
// Copyright (c) Microsoft Corporation.
|
17308
17308
|
// Licensed under the MIT license.
|
17309
|
-
var __awaiter$
|
17309
|
+
var __awaiter$m = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
17310
17310
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
17311
17311
|
return new (P || (P = Promise))(function (resolve, reject) {
|
17312
17312
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -17395,7 +17395,7 @@ class EventSubscriber {
|
|
17395
17395
|
};
|
17396
17396
|
// This is a temporary fix that no participant message is received for onChatMessageReceived event, which should be handled by JS SDK.
|
17397
17397
|
// Without the temporary fix, there are missing 'participant joined' and 'participant left' system messages in the chat thread.
|
17398
|
-
this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$
|
17398
|
+
this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$m(this, void 0, void 0, function* () {
|
17399
17399
|
var e_1, _a;
|
17400
17400
|
try {
|
17401
17401
|
for (var _b = __asyncValues$1(this.chatClient
|
@@ -17487,7 +17487,7 @@ class EventSubscriber {
|
|
17487
17487
|
|
17488
17488
|
// Copyright (c) Microsoft Corporation.
|
17489
17489
|
// Licensed under the MIT license.
|
17490
|
-
var __awaiter$
|
17490
|
+
var __awaiter$l = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
17491
17491
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
17492
17492
|
return new (P || (P = Promise))(function (resolve, reject) {
|
17493
17493
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -17509,7 +17509,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
|
|
17509
17509
|
const threadsIterator = iteratorCreator(...args);
|
17510
17510
|
return {
|
17511
17511
|
next() {
|
17512
|
-
return __awaiter$
|
17512
|
+
return __awaiter$l(this, void 0, void 0, function* () {
|
17513
17513
|
const result = yield threadsIterator.next();
|
17514
17514
|
if (!result.done && result.value) {
|
17515
17515
|
decorateFn(result.value, context);
|
@@ -17524,7 +17524,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
|
|
17524
17524
|
const pages = threadsIterator.byPage(settings);
|
17525
17525
|
return {
|
17526
17526
|
next() {
|
17527
|
-
return __awaiter$
|
17527
|
+
return __awaiter$l(this, void 0, void 0, function* () {
|
17528
17528
|
const result = yield pages.next();
|
17529
17529
|
const page = result.value;
|
17530
17530
|
if (!result.done && result.value) {
|
@@ -17608,7 +17608,7 @@ const createDecoratedListParticipants = (chatThreadClient, context) => {
|
|
17608
17608
|
|
17609
17609
|
// Copyright (c) Microsoft Corporation.
|
17610
17610
|
// Licensed under the MIT license.
|
17611
|
-
var __awaiter$
|
17611
|
+
var __awaiter$k = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
17612
17612
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
17613
17613
|
return new (P || (P = Promise))(function (resolve, reject) {
|
17614
17614
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -17627,14 +17627,14 @@ class ProxyChatThreadClient {
|
|
17627
17627
|
return createDecoratedListMessages(chatThreadClient, this._context);
|
17628
17628
|
}
|
17629
17629
|
case 'getMessage': {
|
17630
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
17630
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$k(this, void 0, void 0, function* () {
|
17631
17631
|
const message = yield chatThreadClient.getMessage(...args);
|
17632
17632
|
this._context.setChatMessage(chatThreadClient.threadId, convertChatMessage(message));
|
17633
17633
|
return message;
|
17634
17634
|
}), 'ChatThreadClient.getMessage');
|
17635
17635
|
}
|
17636
17636
|
case 'sendMessage': {
|
17637
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
17637
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$k(this, void 0, void 0, function* () {
|
17638
17638
|
// Retry logic?
|
17639
17639
|
const [request, options] = args;
|
17640
17640
|
const { content } = request;
|
@@ -17674,7 +17674,7 @@ class ProxyChatThreadClient {
|
|
17674
17674
|
}), 'ChatThreadClient.sendMessage');
|
17675
17675
|
}
|
17676
17676
|
case 'addParticipants': {
|
17677
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
17677
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$k(this, void 0, void 0, function* () {
|
17678
17678
|
const result = yield chatThreadClient.addParticipants(...args);
|
17679
17679
|
const [addRequest] = args;
|
17680
17680
|
const participantsToAdd = addRequest.participants;
|
@@ -17683,7 +17683,7 @@ class ProxyChatThreadClient {
|
|
17683
17683
|
}), 'ChatThreadClient.addParticipants');
|
17684
17684
|
}
|
17685
17685
|
case 'deleteMessage': {
|
17686
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
17686
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$k(this, void 0, void 0, function* () {
|
17687
17687
|
// DeleteMessage is able to either delete local one(for failed message) or synced message
|
17688
17688
|
const [messageId] = args;
|
17689
17689
|
if (this._context.deleteLocalMessage(chatThreadClient.threadId, messageId)) {
|
@@ -17701,12 +17701,12 @@ class ProxyChatThreadClient {
|
|
17701
17701
|
return createDecoratedListReadReceipts(chatThreadClient, this._context);
|
17702
17702
|
}
|
17703
17703
|
case 'sendTypingNotification': {
|
17704
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
17704
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$k(this, void 0, void 0, function* () {
|
17705
17705
|
return yield chatThreadClient.sendTypingNotification(...args);
|
17706
17706
|
}), 'ChatThreadClient.sendTypingNotification');
|
17707
17707
|
}
|
17708
17708
|
case 'removeParticipant': {
|
17709
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
17709
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$k(this, void 0, void 0, function* () {
|
17710
17710
|
const result = yield chatThreadClient.removeParticipant(...args);
|
17711
17711
|
const [removeIdentifier] = args;
|
17712
17712
|
this._context.deleteParticipant(chatThreadClient.threadId, communicationCommon.getIdentifierKind(removeIdentifier));
|
@@ -17714,7 +17714,7 @@ class ProxyChatThreadClient {
|
|
17714
17714
|
}), 'ChatThreadClient.removeParticipant');
|
17715
17715
|
}
|
17716
17716
|
case 'updateMessage': {
|
17717
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
17717
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$k(this, void 0, void 0, function* () {
|
17718
17718
|
const result = yield chatThreadClient.updateMessage(...args);
|
17719
17719
|
const [messageId, updateOption] = args;
|
17720
17720
|
this._context.updateChatMessageContent(chatThreadClient.threadId, messageId, updateOption === null || updateOption === void 0 ? void 0 : updateOption.content);
|
@@ -17722,7 +17722,7 @@ class ProxyChatThreadClient {
|
|
17722
17722
|
}), 'ChatThreadClient.updateMessage');
|
17723
17723
|
}
|
17724
17724
|
case 'updateTopic': {
|
17725
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
17725
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$k(this, void 0, void 0, function* () {
|
17726
17726
|
const result = yield chatThreadClient.updateTopic(...args);
|
17727
17727
|
const [topic] = args;
|
17728
17728
|
this._context.updateThreadTopic(chatThreadClient.threadId, topic);
|
@@ -17730,7 +17730,7 @@ class ProxyChatThreadClient {
|
|
17730
17730
|
}), 'ChatThreadClient.updateTopic');
|
17731
17731
|
}
|
17732
17732
|
case 'getProperties': {
|
17733
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
17733
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$k(this, void 0, void 0, function* () {
|
17734
17734
|
const result = yield chatThreadClient.getProperties(...args);
|
17735
17735
|
this._context.updateThread(chatThreadClient.threadId, result);
|
17736
17736
|
return result;
|
@@ -17767,7 +17767,7 @@ const createDecoratedListThreads = (chatClient, context) => {
|
|
17767
17767
|
|
17768
17768
|
// Copyright (c) Microsoft Corporation.
|
17769
17769
|
// Licensed under the MIT license.
|
17770
|
-
var __awaiter$
|
17770
|
+
var __awaiter$j = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
17771
17771
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
17772
17772
|
return new (P || (P = Promise))(function (resolve, reject) {
|
17773
17773
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -17786,7 +17786,7 @@ const proxyChatClient = {
|
|
17786
17786
|
switch (prop) {
|
17787
17787
|
case 'createChatThread': {
|
17788
17788
|
return context.withAsyncErrorTeedToState(function (...args) {
|
17789
|
-
return __awaiter$
|
17789
|
+
return __awaiter$j(this, void 0, void 0, function* () {
|
17790
17790
|
const result = yield chatClient.createChatThread(...args);
|
17791
17791
|
const thread = result.chatThread;
|
17792
17792
|
if (thread) {
|
@@ -17799,7 +17799,7 @@ const proxyChatClient = {
|
|
17799
17799
|
}
|
17800
17800
|
case 'deleteChatThread': {
|
17801
17801
|
return context.withAsyncErrorTeedToState(function (...args) {
|
17802
|
-
return __awaiter$
|
17802
|
+
return __awaiter$j(this, void 0, void 0, function* () {
|
17803
17803
|
const result = yield chatClient.deleteChatThread(...args);
|
17804
17804
|
context.deleteThread(args[0]);
|
17805
17805
|
return result;
|
@@ -17819,7 +17819,7 @@ const proxyChatClient = {
|
|
17819
17819
|
}
|
17820
17820
|
case 'startRealtimeNotifications': {
|
17821
17821
|
return context.withAsyncErrorTeedToState(function (...args) {
|
17822
|
-
return __awaiter$
|
17822
|
+
return __awaiter$j(this, void 0, void 0, function* () {
|
17823
17823
|
const ret = yield chatClient.startRealtimeNotifications(...args);
|
17824
17824
|
if (!receiver.eventSubscriber) {
|
17825
17825
|
receiver.eventSubscriber = new EventSubscriber(chatClient, context);
|
@@ -17830,7 +17830,7 @@ const proxyChatClient = {
|
|
17830
17830
|
}
|
17831
17831
|
case 'stopRealtimeNotifications': {
|
17832
17832
|
return context.withAsyncErrorTeedToState(function (...args) {
|
17833
|
-
return __awaiter$
|
17833
|
+
return __awaiter$j(this, void 0, void 0, function* () {
|
17834
17834
|
const ret = yield chatClient.stopRealtimeNotifications(...args);
|
17835
17835
|
if (receiver.eventSubscriber) {
|
17836
17836
|
receiver.eventSubscriber.unsubscribe();
|
@@ -18435,7 +18435,7 @@ const END_CALL_PAGES = [
|
|
18435
18435
|
|
18436
18436
|
// Copyright (c) Microsoft Corporation.
|
18437
18437
|
// Licensed under the MIT license.
|
18438
|
-
var __awaiter$
|
18438
|
+
var __awaiter$i = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
18439
18439
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
18440
18440
|
return new (P || (P = Promise))(function (resolve, reject) {
|
18441
18441
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -18471,7 +18471,7 @@ const isCameraOn = (state) => {
|
|
18471
18471
|
/**
|
18472
18472
|
* @private
|
18473
18473
|
*/
|
18474
|
-
const startSelectedVideoEffect = (adapter) => __awaiter$
|
18474
|
+
const startSelectedVideoEffect = (adapter) => __awaiter$i(void 0, void 0, void 0, function* () {
|
18475
18475
|
if (adapter.getState().selectedVideoBackgroundEffect) {
|
18476
18476
|
const selectedVideoBackgroundEffect = adapter.getState().selectedVideoBackgroundEffect;
|
18477
18477
|
if ((selectedVideoBackgroundEffect === null || selectedVideoBackgroundEffect === void 0 ? void 0 : selectedVideoBackgroundEffect.effectName) === 'blur') {
|
@@ -18676,7 +18676,7 @@ const isDisabled$2 = (option) => {
|
|
18676
18676
|
/**
|
18677
18677
|
* @returns Permissions state for the camera.
|
18678
18678
|
*/
|
18679
|
-
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$
|
18679
|
+
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$i(void 0, void 0, void 0, function* () {
|
18680
18680
|
try {
|
18681
18681
|
return (yield navigator.permissions.query({ name: 'camera' })).state;
|
18682
18682
|
}
|
@@ -18689,7 +18689,7 @@ const queryCameraPermissionFromPermissionsAPI = () => __awaiter$h(void 0, void 0
|
|
18689
18689
|
/**
|
18690
18690
|
* @returns Permissions state for the microphone.
|
18691
18691
|
*/
|
18692
|
-
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$
|
18692
|
+
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$i(void 0, void 0, void 0, function* () {
|
18693
18693
|
try {
|
18694
18694
|
return (yield navigator.permissions.query({ name: 'microphone' })).state;
|
18695
18695
|
}
|
@@ -18706,7 +18706,7 @@ const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$h(void 0, vo
|
|
18706
18706
|
* If permission API is not supported on this browser, permission state is set to unsupported.
|
18707
18707
|
* @private
|
18708
18708
|
*/
|
18709
|
-
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$
|
18709
|
+
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$i(void 0, void 0, void 0, function* () {
|
18710
18710
|
const [cameraResult, microphoneResult] = yield Promise.all([
|
18711
18711
|
queryCameraPermissionFromPermissionsAPI(),
|
18712
18712
|
queryMicrophonePermissionFromPermissionsAPI()
|
@@ -18796,7 +18796,7 @@ const dismissVideoEffectsError = (toDismiss) => {
|
|
18796
18796
|
|
18797
18797
|
// Copyright (c) Microsoft Corporation.
|
18798
18798
|
// Licensed under the MIT license.
|
18799
|
-
var __awaiter$
|
18799
|
+
var __awaiter$h = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
18800
18800
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
18801
18801
|
return new (P || (P = Promise))(function (resolve, reject) {
|
18802
18802
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -18931,9 +18931,9 @@ class AzureCommunicationChatAdapter {
|
|
18931
18931
|
this.unsubscribeAllEvents();
|
18932
18932
|
}
|
18933
18933
|
fetchInitialData() {
|
18934
|
-
return __awaiter$
|
18934
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
18935
18935
|
// If get properties fails we dont want to try to get the participants after.
|
18936
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
18936
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$h(this, void 0, void 0, function* () {
|
18937
18937
|
var e_1, _a;
|
18938
18938
|
yield this.chatThreadClient.getProperties();
|
18939
18939
|
try {
|
@@ -18967,8 +18967,8 @@ class AzureCommunicationChatAdapter {
|
|
18967
18967
|
this.context.offStateChange(handler);
|
18968
18968
|
}
|
18969
18969
|
sendMessage(content, options = {}) {
|
18970
|
-
return __awaiter$
|
18971
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
18970
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
18971
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$h(this, void 0, void 0, function* () {
|
18972
18972
|
/* @conditional-compile-remove(file-sharing) */
|
18973
18973
|
options.metadata = Object.assign(Object.assign({}, options.metadata), convertFileUploadsUiStateToMessageMetadata(this.context.getState().fileUploads));
|
18974
18974
|
/* @conditional-compile-remove(file-sharing) */
|
@@ -18985,51 +18985,51 @@ class AzureCommunicationChatAdapter {
|
|
18985
18985
|
});
|
18986
18986
|
}
|
18987
18987
|
sendReadReceipt(chatMessageId) {
|
18988
|
-
return __awaiter$
|
18989
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
18988
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
18989
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$h(this, void 0, void 0, function* () {
|
18990
18990
|
yield this.handlers.onMessageSeen(chatMessageId);
|
18991
18991
|
}));
|
18992
18992
|
});
|
18993
18993
|
}
|
18994
18994
|
sendTypingIndicator() {
|
18995
|
-
return __awaiter$
|
18996
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
18995
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
18996
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$h(this, void 0, void 0, function* () {
|
18997
18997
|
yield this.handlers.onTyping();
|
18998
18998
|
}));
|
18999
18999
|
});
|
19000
19000
|
}
|
19001
19001
|
removeParticipant(userId) {
|
19002
|
-
return __awaiter$
|
19003
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
19002
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
19003
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$h(this, void 0, void 0, function* () {
|
19004
19004
|
yield this.handlers.onRemoveParticipant(userId);
|
19005
19005
|
}));
|
19006
19006
|
});
|
19007
19007
|
}
|
19008
19008
|
setTopic(topicName) {
|
19009
|
-
return __awaiter$
|
19010
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
19009
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
19010
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$h(this, void 0, void 0, function* () {
|
19011
19011
|
yield this.handlers.updateThreadTopicName(topicName);
|
19012
19012
|
}));
|
19013
19013
|
});
|
19014
19014
|
}
|
19015
19015
|
loadPreviousChatMessages(messagesToLoad) {
|
19016
|
-
return __awaiter$
|
19017
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
19016
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
19017
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$h(this, void 0, void 0, function* () {
|
19018
19018
|
return yield this.handlers.onLoadPreviousChatMessages(messagesToLoad);
|
19019
19019
|
}));
|
19020
19020
|
});
|
19021
19021
|
}
|
19022
19022
|
updateMessage(messageId, content, metadata, options) {
|
19023
|
-
return __awaiter$
|
19024
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
19023
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
19024
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$h(this, void 0, void 0, function* () {
|
19025
19025
|
/* @conditional-compile-remove(file-sharing) */
|
19026
19026
|
return yield this.handlers.onUpdateMessage(messageId, content, metadata, options);
|
19027
19027
|
}));
|
19028
19028
|
});
|
19029
19029
|
}
|
19030
19030
|
deleteMessage(messageId) {
|
19031
|
-
return __awaiter$
|
19032
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
19031
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
19032
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$h(this, void 0, void 0, function* () {
|
19033
19033
|
return yield this.handlers.onDeleteMessage(messageId);
|
19034
19034
|
}));
|
19035
19035
|
});
|
@@ -19064,8 +19064,8 @@ class AzureCommunicationChatAdapter {
|
|
19064
19064
|
}
|
19065
19065
|
/* @conditional-compile-remove(teams-inline-images) */
|
19066
19066
|
downloadAttachments(options) {
|
19067
|
-
return __awaiter$
|
19068
|
-
return this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
19067
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
19068
|
+
return this.asyncTeeErrorToEventEmitter(() => __awaiter$h(this, void 0, void 0, function* () {
|
19069
19069
|
if (this.credential === undefined) {
|
19070
19070
|
const e = new Error();
|
19071
19071
|
e['target'] = 'ChatThreadClient.getMessage';
|
@@ -19085,9 +19085,9 @@ class AzureCommunicationChatAdapter {
|
|
19085
19085
|
}
|
19086
19086
|
/* @conditional-compile-remove(teams-inline-images) */
|
19087
19087
|
downloadAuthenticatedFile(accessToken, options) {
|
19088
|
-
return __awaiter$
|
19088
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
19089
19089
|
function fetchWithAuthentication(url, token) {
|
19090
|
-
return __awaiter$
|
19090
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
19091
19091
|
const headers = new Headers();
|
19092
19092
|
headers.append('Authorization', `Bearer ${token}`);
|
19093
19093
|
try {
|
@@ -19155,7 +19155,7 @@ class AzureCommunicationChatAdapter {
|
|
19155
19155
|
this.emitter.off(event, listener);
|
19156
19156
|
}
|
19157
19157
|
asyncTeeErrorToEventEmitter(f) {
|
19158
|
-
return __awaiter$
|
19158
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
19159
19159
|
try {
|
19160
19160
|
return yield f();
|
19161
19161
|
}
|
@@ -19197,7 +19197,7 @@ const convertEventType = (type) => {
|
|
19197
19197
|
*
|
19198
19198
|
* @public
|
19199
19199
|
*/
|
19200
|
-
const createAzureCommunicationChatAdapter = ({ endpoint: endpointUrl, userId, displayName, credential, threadId }) => __awaiter$
|
19200
|
+
const createAzureCommunicationChatAdapter = ({ endpoint: endpointUrl, userId, displayName, credential, threadId }) => __awaiter$h(void 0, void 0, void 0, function* () {
|
19201
19201
|
if (!isValidIdentifier(userId)) {
|
19202
19202
|
throw new Error('Provided userId is invalid. Please provide valid identifier object.');
|
19203
19203
|
}
|
@@ -19266,7 +19266,7 @@ beforeDispose) => {
|
|
19266
19266
|
if (!credential || !displayName || !endpoint || !threadId || !userId) {
|
19267
19267
|
return;
|
19268
19268
|
}
|
19269
|
-
(() => __awaiter$
|
19269
|
+
(() => __awaiter$h(void 0, void 0, void 0, function* () {
|
19270
19270
|
if (adapterRef.current) {
|
19271
19271
|
// Dispose the old adapter when a new one is created.
|
19272
19272
|
//
|
@@ -19298,7 +19298,7 @@ beforeDispose) => {
|
|
19298
19298
|
// Dispose any existing adapter when the component unmounts.
|
19299
19299
|
React.useEffect(() => {
|
19300
19300
|
return () => {
|
19301
|
-
(() => __awaiter$
|
19301
|
+
(() => __awaiter$h(void 0, void 0, void 0, function* () {
|
19302
19302
|
if (adapterRef.current) {
|
19303
19303
|
if (beforeDisposeRef.current) {
|
19304
19304
|
yield beforeDisposeRef.current(adapterRef.current);
|
@@ -19322,7 +19322,7 @@ beforeDispose) => {
|
|
19322
19322
|
function createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient,
|
19323
19323
|
/* @conditional-compile-remove(teams-inline-images) */
|
19324
19324
|
options) {
|
19325
|
-
return __awaiter$
|
19325
|
+
return __awaiter$h(this, void 0, void 0, function* () {
|
19326
19326
|
return new AzureCommunicationChatAdapter(chatClient, chatThreadClient,
|
19327
19327
|
/* @conditional-compile-remove(teams-inline-images) */ options);
|
19328
19328
|
});
|
@@ -19535,7 +19535,7 @@ const sendboxContainerStyles = {
|
|
19535
19535
|
|
19536
19536
|
// Copyright (c) Microsoft Corporation.
|
19537
19537
|
// Licensed under the MIT license.
|
19538
|
-
var __awaiter$
|
19538
|
+
var __awaiter$g = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
19539
19539
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
19540
19540
|
return new (P || (P = Promise))(function (resolve, reject) {
|
19541
19541
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -19556,7 +19556,7 @@ const AvatarPersona = (props) => {
|
|
19556
19556
|
const { userId, dataProvider, text, imageUrl, imageInitials, initialsColor, initialsTextColor, showOverflowTooltip } = props;
|
19557
19557
|
const [data, setData] = React.useState();
|
19558
19558
|
React.useEffect(() => {
|
19559
|
-
(() => __awaiter$
|
19559
|
+
(() => __awaiter$g(void 0, void 0, void 0, function* () {
|
19560
19560
|
if (dataProvider && userId) {
|
19561
19561
|
const newData = yield dataProvider(userId);
|
19562
19562
|
if (avatarDeepDifferenceCheck(data, newData)) {
|
@@ -19920,7 +19920,7 @@ const FileDownloadErrorBar = (props) => {
|
|
19920
19920
|
|
19921
19921
|
// Copyright (c) Microsoft Corporation.
|
19922
19922
|
// Licensed under the MIT license.
|
19923
|
-
var __awaiter$
|
19923
|
+
var __awaiter$f = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
19924
19924
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
19925
19925
|
return new (P || (P = Promise))(function (resolve, reject) {
|
19926
19926
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -19941,7 +19941,7 @@ const ChatScreen = (props) => {
|
|
19941
19941
|
const theme = useTheme();
|
19942
19942
|
React.useEffect(() => {
|
19943
19943
|
// Initial data should be always fetched by the composite(or external caller) instead of the adapter
|
19944
|
-
const fetchData = () => __awaiter$
|
19944
|
+
const fetchData = () => __awaiter$f(void 0, void 0, void 0, function* () {
|
19945
19945
|
// Fetch initial data for adapter
|
19946
19946
|
yield adapter.fetchInitialData();
|
19947
19947
|
// Fetch initial set of messages. Without fetching messages here, if the Composite's adapter is changed the message thread does not load new messages.
|
@@ -19975,7 +19975,7 @@ const ChatScreen = (props) => {
|
|
19975
19975
|
setDownloadErrorMessage(errorMessage);
|
19976
19976
|
} })), [fileSharing === null || fileSharing === void 0 ? void 0 : fileSharing.downloadHandler]);
|
19977
19977
|
/* @conditional-compile-remove(teams-inline-images) */
|
19978
|
-
const onRenderInlineAttachment = React.useCallback((attachment) => __awaiter$
|
19978
|
+
const onRenderInlineAttachment = React.useCallback((attachment) => __awaiter$f(void 0, void 0, void 0, function* () {
|
19979
19979
|
if (attachment.previewUrl) {
|
19980
19980
|
const blob = yield adapter.downloadAttachments({ attachmentUrls: [attachment.previewUrl] });
|
19981
19981
|
return blob;
|
@@ -20151,7 +20151,7 @@ const adaptCompositeState = (compositeState) => {
|
|
20151
20151
|
|
20152
20152
|
// Copyright (c) Microsoft Corporation.
|
20153
20153
|
// Licensed under the MIT license.
|
20154
|
-
var __awaiter$
|
20154
|
+
var __awaiter$e = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
20155
20155
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
20156
20156
|
return new (P || (P = Promise))(function (resolve, reject) {
|
20157
20157
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -20170,104 +20170,104 @@ _component) => {
|
|
20170
20170
|
return createCompositeHandlers(useAdapter());
|
20171
20171
|
};
|
20172
20172
|
const createCompositeHandlers = memoizeOne__default['default']((adapter) => ({
|
20173
|
-
onCreateLocalStreamView: (options) => __awaiter$
|
20173
|
+
onCreateLocalStreamView: (options) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20174
20174
|
return yield adapter.createStreamView(undefined, options);
|
20175
20175
|
}),
|
20176
|
-
onCreateRemoteStreamView: (userId, options) => __awaiter$
|
20176
|
+
onCreateRemoteStreamView: (userId, options) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20177
20177
|
return yield adapter.createStreamView(userId, options);
|
20178
20178
|
}),
|
20179
|
-
onHangUp: (forEveryone) => __awaiter$
|
20179
|
+
onHangUp: (forEveryone) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20180
20180
|
yield adapter.leaveCall(forEveryone);
|
20181
20181
|
}),
|
20182
20182
|
/* @conditional-compile-remove(PSTN-calls) */
|
20183
|
-
onToggleHold: () => __awaiter$
|
20183
|
+
onToggleHold: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
20184
20184
|
var _a;
|
20185
20185
|
return ((_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold' ? yield adapter.resumeCall() : yield adapter.holdCall();
|
20186
20186
|
}),
|
20187
20187
|
/* @conditional-compile-remove(PSTN-calls) */
|
20188
|
-
onAddParticipant: (participant, options) => __awaiter$
|
20188
|
+
onAddParticipant: (participant, options) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20189
20189
|
return yield adapter.addParticipant(participant, options);
|
20190
20190
|
}),
|
20191
20191
|
/* @conditional-compile-remove(PSTN-calls) */
|
20192
|
-
onSendDtmfTone: (dtmfTone) => __awaiter$
|
20192
|
+
onSendDtmfTone: (dtmfTone) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20193
20193
|
yield adapter.sendDtmfTone(dtmfTone);
|
20194
20194
|
}),
|
20195
|
-
onRemoveParticipant: (userId) => __awaiter$
|
20195
|
+
onRemoveParticipant: (userId) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20196
20196
|
yield adapter.removeParticipant(userId);
|
20197
20197
|
}),
|
20198
|
-
onSelectCamera: (deviceInfo, options) => __awaiter$
|
20198
|
+
onSelectCamera: (deviceInfo, options) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20199
20199
|
yield adapter.setCamera(deviceInfo, options);
|
20200
20200
|
}),
|
20201
|
-
onSelectMicrophone: (deviceInfo) => __awaiter$
|
20201
|
+
onSelectMicrophone: (deviceInfo) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20202
20202
|
yield adapter.setMicrophone(deviceInfo);
|
20203
20203
|
}),
|
20204
|
-
onSelectSpeaker: (deviceInfo) => __awaiter$
|
20204
|
+
onSelectSpeaker: (deviceInfo) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20205
20205
|
yield adapter.setSpeaker(deviceInfo);
|
20206
20206
|
}),
|
20207
20207
|
onStartCall: (participants, options) => {
|
20208
20208
|
const rawIds = participants.map((participant) => toFlatCommunicationIdentifier(participant));
|
20209
20209
|
return adapter.startCall(rawIds, options);
|
20210
20210
|
},
|
20211
|
-
onStartScreenShare: () => __awaiter$
|
20211
|
+
onStartScreenShare: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
20212
20212
|
yield adapter.startScreenShare();
|
20213
20213
|
}),
|
20214
|
-
onStopScreenShare: () => __awaiter$
|
20214
|
+
onStopScreenShare: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
20215
20215
|
yield adapter.stopScreenShare();
|
20216
20216
|
}),
|
20217
|
-
onToggleCamera: (options) => __awaiter$
|
20217
|
+
onToggleCamera: (options) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20218
20218
|
isCameraOn(adapter.getState()) ? yield adapter.stopCamera() : yield adapter.startCamera(options);
|
20219
20219
|
}),
|
20220
|
-
onToggleMicrophone: () => __awaiter$
|
20220
|
+
onToggleMicrophone: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
20221
20221
|
var _b;
|
20222
20222
|
return ((_b = adapter.getState().call) === null || _b === void 0 ? void 0 : _b.isMuted) ? yield adapter.unmute() : yield adapter.mute();
|
20223
20223
|
}),
|
20224
|
-
onToggleScreenShare: () => __awaiter$
|
20224
|
+
onToggleScreenShare: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
20225
20225
|
var _c;
|
20226
20226
|
return ((_c = adapter.getState().call) === null || _c === void 0 ? void 0 : _c.isScreenSharingOn)
|
20227
20227
|
? yield adapter.stopScreenShare()
|
20228
20228
|
: yield adapter.startScreenShare();
|
20229
20229
|
}),
|
20230
|
-
onStartLocalVideo: () => __awaiter$
|
20230
|
+
onStartLocalVideo: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
20231
20231
|
if (adapter.getState().call) {
|
20232
20232
|
return adapter.startCamera();
|
20233
20233
|
}
|
20234
20234
|
}),
|
20235
|
-
onDisposeLocalStreamView: () => __awaiter$
|
20235
|
+
onDisposeLocalStreamView: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
20236
20236
|
return adapter.disposeStreamView();
|
20237
20237
|
}),
|
20238
|
-
onDisposeRemoteStreamView: (userId) => __awaiter$
|
20238
|
+
onDisposeRemoteStreamView: (userId) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20239
20239
|
return adapter.disposeStreamView(userId);
|
20240
20240
|
}),
|
20241
20241
|
/* @conditional-compile-remove(call-readiness) */
|
20242
|
-
askDevicePermission: (constrain) => __awaiter$
|
20242
|
+
askDevicePermission: (constrain) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20243
20243
|
return adapter.askDevicePermission(constrain);
|
20244
20244
|
}),
|
20245
20245
|
/* @conditional-compile-remove(video-background-effects) */
|
20246
|
-
onRemoveVideoBackgroundEffects: () => __awaiter$
|
20246
|
+
onRemoveVideoBackgroundEffects: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
20247
20247
|
return yield adapter.stopVideoBackgroundEffect();
|
20248
20248
|
}),
|
20249
20249
|
/* @conditional-compile-remove(video-background-effects) */
|
20250
|
-
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$
|
20250
|
+
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20251
20251
|
return yield adapter.blurVideoBackground(backgroundBlurConfig);
|
20252
20252
|
}),
|
20253
20253
|
/* @conditional-compile-remove(video-background-effects) */
|
20254
|
-
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$
|
20254
|
+
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20255
20255
|
return yield adapter.replaceVideoBackground(backgroundReplacementConfig);
|
20256
20256
|
}),
|
20257
20257
|
/* @conditional-compile-remove(close-captions) */
|
20258
|
-
onStartCaptions: (options) => __awaiter$
|
20258
|
+
onStartCaptions: (options) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20259
20259
|
yield adapter.startCaptions(options);
|
20260
20260
|
}),
|
20261
20261
|
/* @conditional-compile-remove(close-captions) */
|
20262
|
-
onStopCaptions: () => __awaiter$
|
20262
|
+
onStopCaptions: () => __awaiter$e(void 0, void 0, void 0, function* () {
|
20263
20263
|
yield adapter.stopCaptions();
|
20264
20264
|
}),
|
20265
20265
|
/* @conditional-compile-remove(close-captions) */
|
20266
|
-
onSetSpokenLanguage: (language) => __awaiter$
|
20266
|
+
onSetSpokenLanguage: (language) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20267
20267
|
yield adapter.setSpokenLanguage(language);
|
20268
20268
|
}),
|
20269
20269
|
/* @conditional-compile-remove(close-captions) */
|
20270
|
-
onSetCaptionLanguage: (language) => __awaiter$
|
20270
|
+
onSetCaptionLanguage: (language) => __awaiter$e(void 0, void 0, void 0, function* () {
|
20271
20271
|
yield adapter.setCaptionLanguage(language);
|
20272
20272
|
})
|
20273
20273
|
}));
|
@@ -20398,7 +20398,7 @@ const MoreButton = (props) => {
|
|
20398
20398
|
return (React__default['default'].createElement(ControlBarButton, Object.assign({}, props, { labelKey: 'optionsButtonLabelKey', showLabel: props.showLabel, onRenderOnIcon: icon$2, onRenderOffIcon: icon$2, onClick: props.onClick, "data-ui-id": props['data-ui-id'] })));
|
20399
20399
|
};
|
20400
20400
|
|
20401
|
-
var __awaiter$
|
20401
|
+
var __awaiter$d = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
20402
20402
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
20403
20403
|
return new (P || (P = Promise))(function (resolve, reject) {
|
20404
20404
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -20426,7 +20426,7 @@ const CaptionsBannerMoreButton = (props) => {
|
|
20426
20426
|
/* @conditional-compile-remove(close-captions) */
|
20427
20427
|
const moreButtonContextualMenuItems = [];
|
20428
20428
|
/* @conditional-compile-remove(close-captions) */
|
20429
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
20429
|
+
const startCaptions = React.useCallback(() => __awaiter$d(void 0, void 0, void 0, function* () {
|
20430
20430
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
20431
20431
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
20432
20432
|
});
|
@@ -21266,7 +21266,7 @@ const onFetchCustomButtonPropsTrampoline = (options) => {
|
|
21266
21266
|
|
21267
21267
|
// Copyright (c) Microsoft Corporation.
|
21268
21268
|
// Licensed under the MIT license.
|
21269
|
-
var __awaiter$
|
21269
|
+
var __awaiter$c = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
21270
21270
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
21271
21271
|
return new (P || (P = Promise))(function (resolve, reject) {
|
21272
21272
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -21289,7 +21289,7 @@ const DesktopMoreButton = (props) => {
|
|
21289
21289
|
/* @conditional-compile-remove(close-captions) */
|
21290
21290
|
const startCaptionsButtonHandlers = useHandlers();
|
21291
21291
|
/* @conditional-compile-remove(close-captions) */
|
21292
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
21292
|
+
const startCaptions = React.useCallback(() => __awaiter$c(void 0, void 0, void 0, function* () {
|
21293
21293
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
21294
21294
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
21295
21295
|
});
|
@@ -21965,7 +21965,7 @@ const themedToggleButtonStyle = (theme, checked) => {
|
|
21965
21965
|
|
21966
21966
|
// Copyright (c) Microsoft Corporation.
|
21967
21967
|
// Licensed under the MIT license.
|
21968
|
-
var __awaiter$
|
21968
|
+
var __awaiter$b = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
21969
21969
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
21970
21970
|
return new (P || (P = Promise))(function (resolve, reject) {
|
21971
21971
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -22107,7 +22107,7 @@ const MoreDrawer = (props) => {
|
|
22107
22107
|
? defaultSpokenLanguage
|
22108
22108
|
: startCaptionsButtonProps.currentSpokenLanguage);
|
22109
22109
|
/* @conditional-compile-remove(close-captions) */
|
22110
|
-
const onToggleChange = React.useCallback(() => __awaiter$
|
22110
|
+
const onToggleChange = React.useCallback(() => __awaiter$b(void 0, void 0, void 0, function* () {
|
22111
22111
|
if (!startCaptionsButtonProps.checked) {
|
22112
22112
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
22113
22113
|
spokenLanguage: currentSpokenLanguage
|
@@ -22410,7 +22410,7 @@ const SidePane = (props) => {
|
|
22410
22410
|
return (React__default['default'].createElement(react.Stack, { verticalFill: true, grow: true, styles: paneStyles, "data-ui-id": "SidePane", tokens: props.mobileView ? {} : sidePaneTokens },
|
22411
22411
|
React__default['default'].createElement(Header, null),
|
22412
22412
|
React__default['default'].createElement(react.Stack.Item, { verticalFill: true, grow: true, styles: paneBodyContainer },
|
22413
|
-
React__default['default'].createElement(react.Stack, {
|
22413
|
+
React__default['default'].createElement(react.Stack, { verticalFill: true, styles: scrollableContainer },
|
22414
22414
|
ContentRender && (React__default['default'].createElement(react.Stack.Item, { verticalFill: true, styles: scrollableContainerContents },
|
22415
22415
|
React__default['default'].createElement(ContentRender, null))),
|
22416
22416
|
OverrideContentRender && (React__default['default'].createElement(react.Stack.Item, { verticalFill: true, styles: !(overrideSidePane === null || overrideSidePane === void 0 ? void 0 : overrideSidePane.isActive) && (overrideSidePane === null || overrideSidePane === void 0 ? void 0 : overrideSidePane.persistRenderingWhenClosed)
|
@@ -22790,7 +22790,7 @@ const AddPeopleButton = (props) => {
|
|
22790
22790
|
|
22791
22791
|
// Copyright (c) Microsoft Corporation.
|
22792
22792
|
// Licensed under the MIT license.
|
22793
|
-
var __awaiter$
|
22793
|
+
var __awaiter$a = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
22794
22794
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
22795
22795
|
return new (P || (P = Promise))(function (resolve, reject) {
|
22796
22796
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -22812,11 +22812,11 @@ const PeoplePaneContent = (props) => {
|
|
22812
22812
|
return localeStrings.strings.call;
|
22813
22813
|
};
|
22814
22814
|
const strings = getStrings();
|
22815
|
-
const removeParticipantFromCall = React.useCallback((participantId) => __awaiter$
|
22815
|
+
const removeParticipantFromCall = React.useCallback((participantId) => __awaiter$a(void 0, void 0, void 0, function* () {
|
22816
22816
|
yield adapter.removeParticipant(participantId);
|
22817
22817
|
}), [adapter]);
|
22818
22818
|
/* @conditional-compile-remove(PSTN-calls) */
|
22819
|
-
const addParticipantToCall = React.useCallback((participant, options) => __awaiter$
|
22819
|
+
const addParticipantToCall = React.useCallback((participant, options) => __awaiter$a(void 0, void 0, void 0, function* () {
|
22820
22820
|
yield adapter.addParticipant(participant, options);
|
22821
22821
|
}), [adapter]);
|
22822
22822
|
/* @conditional-compile-remove(PSTN-calls) */
|
@@ -22843,7 +22843,7 @@ const PeoplePaneContent = (props) => {
|
|
22843
22843
|
setDrawerMenuItems
|
22844
22844
|
]);
|
22845
22845
|
const participantListProps = React.useMemo(() => {
|
22846
|
-
const onRemoveAParticipant = (participantId) => __awaiter$
|
22846
|
+
const onRemoveAParticipant = (participantId) => __awaiter$a(void 0, void 0, void 0, function* () { return removeParticipantFromCall(participantId); });
|
22847
22847
|
return Object.assign(Object.assign({}, participantListDefaultProps), {
|
22848
22848
|
// Passing undefined callback for mobile to avoid context menus for participants in ParticipantList are clicked
|
22849
22849
|
onRemoveParticipant: props.mobileView ? undefined : onRemoveAParticipant,
|
@@ -22974,7 +22974,7 @@ const localVideoSelector = reselect__namespace.createSelector([callStatusSelecto
|
|
22974
22974
|
};
|
22975
22975
|
});
|
22976
22976
|
|
22977
|
-
var __awaiter$
|
22977
|
+
var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
22978
22978
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
22979
22979
|
return new (P || (P = Promise))(function (resolve, reject) {
|
22980
22980
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -23037,7 +23037,7 @@ const VideoEffectsPaneContent = (props) => {
|
|
23037
23037
|
return videoEffects;
|
23038
23038
|
}, [strings, adapter]);
|
23039
23039
|
/* @conditional-compile-remove(video-background-effects) */
|
23040
|
-
const onEffectChange = React.useCallback((effectKey) => __awaiter$
|
23040
|
+
const onEffectChange = React.useCallback((effectKey) => __awaiter$9(void 0, void 0, void 0, function* () {
|
23041
23041
|
if (effectKey === 'blur') {
|
23042
23042
|
const blurEffect = {
|
23043
23043
|
effectName: effectKey
|
@@ -24375,6 +24375,22 @@ const effectsButtonStyles = (theme) => {
|
|
24375
24375
|
const fillWidth = react.mergeStyles({
|
24376
24376
|
width: '100%'
|
24377
24377
|
});
|
24378
|
+
/** @private */
|
24379
|
+
const panelStyles = {
|
24380
|
+
content: {
|
24381
|
+
display: 'flex',
|
24382
|
+
flexBasis: '100%'
|
24383
|
+
},
|
24384
|
+
scrollableContent: {
|
24385
|
+
display: 'flex',
|
24386
|
+
flexDirection: 'column',
|
24387
|
+
height: '100%'
|
24388
|
+
}
|
24389
|
+
};
|
24390
|
+
/** @private */
|
24391
|
+
const panelFocusProps = {
|
24392
|
+
forceFocusInsideTrap: false
|
24393
|
+
};
|
24378
24394
|
|
24379
24395
|
// Copyright (c) Microsoft Corporation.
|
24380
24396
|
/**
|
@@ -24440,7 +24456,7 @@ const localPreviewButtonStyle = {
|
|
24440
24456
|
|
24441
24457
|
// Copyright (c) Microsoft Corporation.
|
24442
24458
|
// Licensed under the MIT license.
|
24443
|
-
var __awaiter$
|
24459
|
+
var __awaiter$8 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24444
24460
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24445
24461
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24446
24462
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24460,7 +24476,7 @@ const LocalPreview = (props) => {
|
|
24460
24476
|
const { audio: microphonePermissionGranted, video: cameraPermissionGranted } = useSelector$1(devicePermissionSelector);
|
24461
24477
|
const isLocalMicrophoneEnabled = useSelector$1(getLocalMicrophoneEnabled);
|
24462
24478
|
const adapter = useAdapter();
|
24463
|
-
const onToggleMic = React.useCallback(() => __awaiter$
|
24479
|
+
const onToggleMic = React.useCallback(() => __awaiter$8(void 0, void 0, void 0, function* () {
|
24464
24480
|
isLocalMicrophoneEnabled ? adapter.mute() : adapter.unmute();
|
24465
24481
|
}), [adapter, isLocalMicrophoneEnabled]);
|
24466
24482
|
const hasNoDevices = devicesButtonProps.cameras.length === 0 &&
|
@@ -24727,13 +24743,22 @@ const CallReadinessModalFallBack = (props) => {
|
|
24727
24743
|
};
|
24728
24744
|
|
24729
24745
|
// Copyright (c) Microsoft Corporation.
|
24746
|
+
// Licensed under the MIT license.
|
24747
|
+
var __awaiter$7 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24748
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24749
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
24750
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
24751
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
24752
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
24753
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
24754
|
+
});
|
24755
|
+
};
|
24730
24756
|
/**
|
24731
24757
|
* @private
|
24732
24758
|
*/
|
24733
24759
|
const ConfigurationPage = (props) => {
|
24734
24760
|
var _a, _b;
|
24735
|
-
const { startCallHandler, mobileView,
|
24736
|
-
/* @conditional-compile-remove(call-readiness) */ modalLayerHostId,
|
24761
|
+
const { startCallHandler, mobileView, modalLayerHostId,
|
24737
24762
|
/* @conditional-compile-remove(call-readiness) */ deviceChecks,
|
24738
24763
|
/* @conditional-compile-remove(call-readiness) */ onPermissionsTroubleshootingClick,
|
24739
24764
|
/* @conditional-compile-remove(call-readiness) */ onNetworkingTroubleShootingClick } = props;
|
@@ -24826,7 +24851,15 @@ const ConfigurationPage = (props) => {
|
|
24826
24851
|
/* @conditional-compile-remove(call-readiness) */
|
24827
24852
|
const forceShowingCheckPermissions = !minimumFallbackTimerElapsed;
|
24828
24853
|
/* @conditional-compile-remove(video-background-effects) */
|
24829
|
-
const { toggleVideoEffectsPane } = useVideoEffectsPane(props.updateSidePaneRenderer, mobileView);
|
24854
|
+
const { toggleVideoEffectsPane, closeVideoEffectsPane, isVideoEffectsPaneOpen } = useVideoEffectsPane(props.updateSidePaneRenderer, mobileView);
|
24855
|
+
const startCall = React.useCallback(() => __awaiter$7(void 0, void 0, void 0, function* () {
|
24856
|
+
/* @conditional-compile-remove(video-background-effects) */
|
24857
|
+
closeVideoEffectsPane();
|
24858
|
+
startCallHandler();
|
24859
|
+
}), [startCallHandler, /* @conditional-compile-remove(video-background-effects) */ closeVideoEffectsPane]);
|
24860
|
+
const panelLayerProps = React.useMemo(() => ({
|
24861
|
+
hostId: modalLayerHostId
|
24862
|
+
}), [modalLayerHostId]);
|
24830
24863
|
return (React__default['default'].createElement(react.Stack, { className: mobileView ? configurationContainerStyleMobile : configurationContainerStyleDesktop },
|
24831
24864
|
React__default['default'].createElement(react.Stack, { styles: bannerNotificationStyles },
|
24832
24865
|
React__default['default'].createElement(ConfigurationPageErrorBar
|
@@ -24844,11 +24877,7 @@ const ConfigurationPage = (props) => {
|
|
24844
24877
|
onPermissionsTroubleshootingClick: onPermissionsTroubleshootingClick, errorBarProps: errorBarProps })),
|
24845
24878
|
/* @conditional-compile-remove(call-readiness) */
|
24846
24879
|
// show the following screen if permission API is availible (not unsupported) and videoState, audioState is assigned values
|
24847
|
-
videoState && videoState !== 'unsupported' && audioState && audioState !== 'unsupported' && (React__default['default'].createElement(CallReadinessModal
|
24848
|
-
/* @conditional-compile-remove(call-readiness) */
|
24849
|
-
, {
|
24850
|
-
/* @conditional-compile-remove(call-readiness) */
|
24851
|
-
modalLayerHostId: modalLayerHostId, mobileView: mobileView,
|
24880
|
+
videoState && videoState !== 'unsupported' && audioState && audioState !== 'unsupported' && (React__default['default'].createElement(CallReadinessModal, { modalLayerHostId: modalLayerHostId, mobileView: mobileView,
|
24852
24881
|
/* @conditional-compile-remove(unsupported-browser) */
|
24853
24882
|
environmentInfo: environmentInfo, permissionsState: permissionsState, isPermissionsModalDismissed: isPermissionsModalDismissed, setIsPermissionsModalDismissed: setIsPermissionsModalDismissed, onPermissionsTroubleshootingClick: onPermissionsTroubleshootingClick })),
|
24854
24883
|
/* @conditional-compile-remove(call-readiness) */
|
@@ -24882,8 +24911,13 @@ const ConfigurationPage = (props) => {
|
|
24882
24911
|
setIsPermissionsModalDismissed(true);
|
24883
24912
|
} })))),
|
24884
24913
|
React__default['default'].createElement(react.Stack, { styles: mobileWithPreview ? startCallButtonContainerStyleMobile : startCallButtonContainerStyleDesktop },
|
24885
|
-
React__default['default'].createElement(StartCallButton, { className: mobileWithPreview ? startCallButtonStyleMobile : undefined, onClick:
|
24886
|
-
React__default['default'].createElement(
|
24914
|
+
React__default['default'].createElement(StartCallButton, { className: mobileWithPreview ? startCallButtonStyleMobile : undefined, onClick: startCall, disabled: disableStartCallButton })))),
|
24915
|
+
React__default['default'].createElement(react.Panel
|
24916
|
+
/* @conditional-compile-remove(video-background-effects) */
|
24917
|
+
, {
|
24918
|
+
/* @conditional-compile-remove(video-background-effects) */
|
24919
|
+
isOpen: isVideoEffectsPaneOpen, hasCloseButton: false, isBlocking: false, isHiddenOnDismiss: false, styles: panelStyles, focusTrapZoneProps: panelFocusProps, layerProps: panelLayerProps },
|
24920
|
+
React__default['default'].createElement(SidePane, { mobileView: props.mobileView, updateSidePaneRenderer: props.updateSidePaneRenderer })))));
|
24887
24921
|
};
|
24888
24922
|
const localPreviewTrampoline = (mobileView, doNotShow) => {
|
24889
24923
|
/* @conditional-compile-remove(rooms) */
|
@@ -25356,9 +25390,7 @@ const MainScreen = (props) => {
|
|
25356
25390
|
case 'configuration':
|
25357
25391
|
pageElement = (React__default['default'].createElement(ConfigurationPage, { mobileView: props.mobileView, startCallHandler: () => {
|
25358
25392
|
adapter.joinCall();
|
25359
|
-
}, updateSidePaneRenderer: setSidePaneRenderer,
|
25360
|
-
/* @conditional-compile-remove(call-readiness) */
|
25361
|
-
modalLayerHostId: props.modalLayerHostId,
|
25393
|
+
}, updateSidePaneRenderer: setSidePaneRenderer, modalLayerHostId: props.modalLayerHostId,
|
25362
25394
|
/* @conditional-compile-remove(call-readiness) */
|
25363
25395
|
deviceChecks: (_a = props.options) === null || _a === void 0 ? void 0 : _a.deviceChecks,
|
25364
25396
|
/* @conditional-compile-remove(call-readiness) */
|