@azure/communication-react 1.14.0-alpha-202403150012 → 1.14.0-alpha-202403160012
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/communication-react.d.ts +38 -0
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-UUKnVH43.js → RichTextSendBoxWrapper-BCdGFyar.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-UUKnVH43.js.map → RichTextSendBoxWrapper-BCdGFyar.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-Db9LOYoW.js → index-BfFCLrEO.js} +116 -182
- package/dist/dist-cjs/communication-react/index-BfFCLrEO.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -3
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +0 -3
- package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +0 -7
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +3 -11
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +3 -9
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +5 -16
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +4 -17
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +35 -0
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +5 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +29 -7
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +6 -6
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +3 -5
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.d.ts +17 -0
- package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js +36 -0
- package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js.map +1 -0
- package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js +0 -1
- package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/RaiseHandSubscriber.js +0 -2
- package/dist/dist-esm/calling-stateful-client/src/RaiseHandSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js +11 -0
- package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.js +0 -1
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +2 -6
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantList.js +3 -17
- package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RaiseHandButton.js +0 -7
- package/dist/dist-esm/react-components/src/components/RaiseHandButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +1 -3
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.js +1 -3
- package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoTile.js +3 -9
- package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js +0 -2
- package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/index.js +0 -1
- package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/theming/icons.js +0 -5
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-components/src/theming/themes.js +0 -2
- package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +0 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +1 -15
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +0 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.js +0 -8
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +0 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js +1 -9
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +0 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +0 -4
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +0 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +1 -6
- package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +2 -5
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +0 -5
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +0 -12
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +1 -3
- package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.js +0 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/dist-cjs/communication-react/index-Db9LOYoW.js.map +0 -1
@@ -173,7 +173,7 @@ function getDefaultExportFromCjs (x) {
|
|
173
173
|
// Copyright (c) Microsoft Corporation.
|
174
174
|
// Licensed under the MIT License.
|
175
175
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
176
|
-
var telemetryVersion = '1.14.0-alpha-
|
176
|
+
var telemetryVersion = '1.14.0-alpha-202403160012';
|
177
177
|
|
178
178
|
|
179
179
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -408,7 +408,6 @@ const getRemoteParticipants$1 = (state, props) => {
|
|
408
408
|
var _a;
|
409
409
|
return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.remoteParticipants;
|
410
410
|
};
|
411
|
-
/* @conditional-compile-remove(raise-hand) */
|
412
411
|
/**
|
413
412
|
* @private
|
414
413
|
*/
|
@@ -440,7 +439,6 @@ const getIsScreenSharingOn = (state, props) => { var _a; return (_a = state.call
|
|
440
439
|
* @private
|
441
440
|
*/
|
442
441
|
const getIsMuted = (state, props) => { var _a; return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.isMuted; };
|
443
|
-
/* @conditional-compile-remove(optimal-video-count) */
|
444
442
|
/**
|
445
443
|
* @private
|
446
444
|
*/
|
@@ -469,7 +467,6 @@ const getLatestErrors$1 = (state) => state.latestErrors;
|
|
469
467
|
* @private
|
470
468
|
*/
|
471
469
|
const getDiagnostics = (state, props) => { var _a; return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.diagnostics; };
|
472
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(raise-hand) */
|
473
470
|
/**
|
474
471
|
* @private
|
475
472
|
*/
|
@@ -695,7 +692,6 @@ const cameraButtonSelector = reselect__namespace.createSelector([
|
|
695
692
|
selectedCamera: deviceManager.selectedCamera
|
696
693
|
};
|
697
694
|
});
|
698
|
-
/* @conditional-compile-remove(raise-hand) */
|
699
695
|
/**
|
700
696
|
* Selector for {@link RaiseHandButton} component.
|
701
697
|
*
|
@@ -928,11 +924,8 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
928
924
|
}, options);
|
929
925
|
}
|
930
926
|
});
|
931
|
-
/* @conditional-compile-remove(raise-hand) */
|
932
927
|
const onRaiseHand = () => __awaiter$Q(void 0, void 0, void 0, function* () { var _a; return yield ((_a = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand)) === null || _a === void 0 ? void 0 : _a.raiseHand()); });
|
933
|
-
/* @conditional-compile-remove(raise-hand) */
|
934
928
|
const onLowerHand = () => __awaiter$Q(void 0, void 0, void 0, function* () { var _b; return yield ((_b = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand)) === null || _b === void 0 ? void 0 : _b.lowerHand()); });
|
935
|
-
/* @conditional-compile-remove(raise-hand) */
|
936
929
|
const onToggleRaiseHand = () => __awaiter$Q(void 0, void 0, void 0, function* () {
|
937
930
|
const raiseHandFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand);
|
938
931
|
const localUserId = callClient.getState().userId;
|
@@ -1218,11 +1211,8 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
1218
1211
|
onDisposeLocalStreamView,
|
1219
1212
|
onDisposeRemoteScreenShareStreamView,
|
1220
1213
|
onDisposeRemoteVideoStreamView,
|
1221
|
-
/* @conditional-compile-remove(raise-hand) */
|
1222
1214
|
onRaiseHand,
|
1223
|
-
/* @conditional-compile-remove(raise-hand) */
|
1224
1215
|
onLowerHand,
|
1225
|
-
/* @conditional-compile-remove(raise-hand) */
|
1226
1216
|
onToggleRaiseHand,
|
1227
1217
|
/* @conditional-compile-remove(reaction) */
|
1228
1218
|
onReactionClick: onReactionClick,
|
@@ -1785,7 +1775,6 @@ function convertSdkParticipantToDeclarativeParticipant(participant) {
|
|
1785
1775
|
videoStreams: declarativeVideoStreams,
|
1786
1776
|
isMuted: participant.isMuted,
|
1787
1777
|
isSpeaking: participant.isSpeaking,
|
1788
|
-
/* @conditional-compile-remove(raise-hand) */
|
1789
1778
|
raisedHand: undefined,
|
1790
1779
|
/* @conditional-compile-remove(hide-attendee-name) */
|
1791
1780
|
role: participant.role,
|
@@ -1826,9 +1815,10 @@ function convertSdkCallToDeclarativeCall(call) {
|
|
1826
1815
|
remoteParticipants: declarativeRemoteParticipants,
|
1827
1816
|
remoteParticipantsEnded: {},
|
1828
1817
|
recording: { isRecordingActive: false },
|
1818
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
1819
|
+
localRecording: { isLocalRecordingActive: false },
|
1829
1820
|
/* @conditional-compile-remove(ppt-live) */
|
1830
1821
|
pptLive: { isActive: false },
|
1831
|
-
/* @conditional-compile-remove(raise-hand) */
|
1832
1822
|
raiseHand: { raisedHands: [] },
|
1833
1823
|
/* @conditional-compile-remove(reaction) */
|
1834
1824
|
localParticipantReaction: undefined,
|
@@ -1852,7 +1842,6 @@ function convertSdkCallToDeclarativeCall(call) {
|
|
1852
1842
|
transfer: {
|
1853
1843
|
acceptedTransfers: {}
|
1854
1844
|
},
|
1855
|
-
/* @conditional-compile-remove(optimal-video-count) */
|
1856
1845
|
optimalVideoCount: {
|
1857
1846
|
maxRemoteVideoStreams: call.feature(communicationCalling.Features.OptimalVideoCount).optimalVideoCount
|
1858
1847
|
},
|
@@ -1903,7 +1892,6 @@ function convertFromSDKToDeclarativeVideoStreamVideoEffects(videoEffects) {
|
|
1903
1892
|
activeEffects: videoEffects
|
1904
1893
|
};
|
1905
1894
|
}
|
1906
|
-
/* @conditional-compile-remove(raise-hand) */
|
1907
1895
|
/**
|
1908
1896
|
* @private
|
1909
1897
|
*/
|
@@ -2029,14 +2017,11 @@ let CallContext$2 = class CallContext {
|
|
2029
2017
|
existingCall.localVideoStreams = call.localVideoStreams;
|
2030
2018
|
existingCall.remoteParticipants = call.remoteParticipants;
|
2031
2019
|
existingCall.transcription.isTranscriptionActive = call.transcription.isTranscriptionActive;
|
2032
|
-
/* @conditional-compile-remove(optimal-video-count) */
|
2033
2020
|
existingCall.optimalVideoCount.maxRemoteVideoStreams = call.optimalVideoCount.maxRemoteVideoStreams;
|
2034
2021
|
existingCall.recording.isRecordingActive = call.recording.isRecordingActive;
|
2035
|
-
/* @conditional-compile-remove(raise-hand) */
|
2036
2022
|
existingCall.raiseHand.raisedHands = call.raiseHand.raisedHands;
|
2037
2023
|
/* @conditional-compile-remove(ppt-live) */
|
2038
2024
|
existingCall.pptLive.isActive = call.pptLive.isActive;
|
2039
|
-
/* @conditional-compile-remove(raise-hand) */
|
2040
2025
|
existingCall.raiseHand.localParticipantRaisedHand = call.raiseHand.localParticipantRaisedHand;
|
2041
2026
|
/* @conditional-compile-remove(rooms) */
|
2042
2027
|
existingCall.role = call.role;
|
@@ -2216,6 +2201,35 @@ let CallContext$2 = class CallContext {
|
|
2216
2201
|
}
|
2217
2202
|
});
|
2218
2203
|
}
|
2204
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
2205
|
+
setCallRecordingInfos(callId, recordingInfosAdded, lastStoppedRecording) {
|
2206
|
+
this.modifyState((draft) => {
|
2207
|
+
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
2208
|
+
if (call) {
|
2209
|
+
call.recording.activeRecordings = recordingInfosAdded;
|
2210
|
+
call.recording.lastStoppedRecording = lastStoppedRecording;
|
2211
|
+
}
|
2212
|
+
});
|
2213
|
+
}
|
2214
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
2215
|
+
setCallLocalRecordingActive(callId, isRecordingActive) {
|
2216
|
+
this.modifyState((draft) => {
|
2217
|
+
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
2218
|
+
if (call) {
|
2219
|
+
call.localRecording.isLocalRecordingActive = isRecordingActive;
|
2220
|
+
}
|
2221
|
+
});
|
2222
|
+
}
|
2223
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
2224
|
+
setCallLocalRecordingInfos(callId, localRecordingInfosAdded, lastStoppedRecording) {
|
2225
|
+
this.modifyState((draft) => {
|
2226
|
+
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
2227
|
+
if (call) {
|
2228
|
+
call.localRecording.activeLocalRecordings = localRecordingInfosAdded;
|
2229
|
+
call.localRecording.lastStoppedLocalRecording = lastStoppedRecording;
|
2230
|
+
}
|
2231
|
+
});
|
2232
|
+
}
|
2219
2233
|
/* @conditional-compile-remove(ppt-live) */
|
2220
2234
|
setCallPPTLiveActive(callId, isActive) {
|
2221
2235
|
this.modifyState((draft) => {
|
@@ -2238,7 +2252,6 @@ let CallContext$2 = class CallContext {
|
|
2238
2252
|
}
|
2239
2253
|
});
|
2240
2254
|
}
|
2241
|
-
/* @conditional-compile-remove(raise-hand) */
|
2242
2255
|
setCallRaisedHands(callId, raisedHands) {
|
2243
2256
|
this.modifyState((draft) => {
|
2244
2257
|
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
@@ -2256,7 +2269,6 @@ let CallContext$2 = class CallContext {
|
|
2256
2269
|
}
|
2257
2270
|
});
|
2258
2271
|
}
|
2259
|
-
/* @conditional-compile-remove(raise-hand) */
|
2260
2272
|
setParticipantIsRaisedHand(callId, participantKey, raisedHand) {
|
2261
2273
|
this.modifyState((draft) => {
|
2262
2274
|
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
@@ -2394,7 +2406,6 @@ let CallContext$2 = class CallContext {
|
|
2394
2406
|
}
|
2395
2407
|
});
|
2396
2408
|
}
|
2397
|
-
/* @conditional-compile-remove(optimal-video-count) */
|
2398
2409
|
setOptimalVideoCount(callId, optimalVideoCount) {
|
2399
2410
|
this.modifyState((draft) => {
|
2400
2411
|
const call = draft.calls[this._callIdHistory.latestCallId(callId)];
|
@@ -3745,13 +3756,21 @@ class RecordingSubscriber {
|
|
3745
3756
|
constructor(callIdRef, context, recording) {
|
3746
3757
|
this.subscribe = () => {
|
3747
3758
|
this._recording.on('isRecordingActiveChanged', this.isAvailableChanged);
|
3759
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
3760
|
+
this._recording.on('recordingsUpdated', this.isRecordingsUpdated);
|
3748
3761
|
};
|
3749
3762
|
this.unsubscribe = () => {
|
3750
3763
|
this._recording.off('isRecordingActiveChanged', this.isAvailableChanged);
|
3764
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
3765
|
+
this._recording.off('recordingsUpdated', this.isRecordingsUpdated);
|
3751
3766
|
};
|
3752
3767
|
this.isAvailableChanged = () => {
|
3753
3768
|
this._context.setCallRecordingActive(this._callIdRef.callId, this._recording.isRecordingActive);
|
3754
3769
|
};
|
3770
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
3771
|
+
this.isRecordingsUpdated = (data) => {
|
3772
|
+
this._context.setCallRecordingInfos(this._callIdRef.callId, this._recording.recordings, data.removed);
|
3773
|
+
};
|
3755
3774
|
this._callIdRef = callIdRef;
|
3756
3775
|
this._context = context;
|
3757
3776
|
this._recording = recording;
|
@@ -3759,6 +3778,9 @@ class RecordingSubscriber {
|
|
3759
3778
|
// be an event for it.
|
3760
3779
|
if (this._recording.isRecordingActive) {
|
3761
3780
|
this._context.setCallRecordingActive(this._callIdRef.callId, this._recording.isRecordingActive);
|
3781
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
3782
|
+
// recordings getter only returns a list of active recordings, so we can set the list of recordings here
|
3783
|
+
this._context.setCallRecordingInfos(this._callIdRef.callId, this._recording.recordings, []);
|
3762
3784
|
}
|
3763
3785
|
this.subscribe();
|
3764
3786
|
}
|
@@ -3915,8 +3937,6 @@ const latestFromEvent = (args) => ({
|
|
3915
3937
|
|
3916
3938
|
// Copyright (c) Microsoft Corporation.
|
3917
3939
|
// Licensed under the MIT License.
|
3918
|
-
/* @conditional-compile-remove(raise-hand) */
|
3919
|
-
/* @conditional-compile-remove(raise-hand) */
|
3920
3940
|
/**
|
3921
3941
|
* @private
|
3922
3942
|
*/
|
@@ -3949,7 +3969,6 @@ class RaiseHandSubscriber {
|
|
3949
3969
|
|
3950
3970
|
// Copyright (c) Microsoft Corporation.
|
3951
3971
|
// Licensed under the MIT License.
|
3952
|
-
/* @conditional-compile-remove(optimal-video-count) */
|
3953
3972
|
/**
|
3954
3973
|
* Subscribes to a Optimal Video Count Feature events and updates the call context appropriately.
|
3955
3974
|
* @private
|
@@ -4053,6 +4072,42 @@ class SpotlightSubscriber {
|
|
4053
4072
|
}
|
4054
4073
|
}
|
4055
4074
|
|
4075
|
+
// Copyright (c) Microsoft Corporation.
|
4076
|
+
// Licensed under the MIT License.
|
4077
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
4078
|
+
/**
|
4079
|
+
* @private
|
4080
|
+
*/
|
4081
|
+
class LocalRecordingSubscriber {
|
4082
|
+
constructor(callIdRef, context, recording) {
|
4083
|
+
this.subscribe = () => {
|
4084
|
+
this._recording.on('isLocalRecordingActiveChanged', this.isAvailableChanged);
|
4085
|
+
this._recording.on('localRecordingsUpdated', this.isRecordingsUpdated);
|
4086
|
+
};
|
4087
|
+
this.unsubscribe = () => {
|
4088
|
+
this._recording.off('isLocalRecordingActiveChanged', this.isAvailableChanged);
|
4089
|
+
this._recording.off('localRecordingsUpdated', this.isRecordingsUpdated);
|
4090
|
+
};
|
4091
|
+
this.isAvailableChanged = () => {
|
4092
|
+
this._context.setCallLocalRecordingActive(this._callIdRef.callId, this._recording.isRecordingActive);
|
4093
|
+
};
|
4094
|
+
this.isRecordingsUpdated = (data) => {
|
4095
|
+
this._context.setCallLocalRecordingInfos(this._callIdRef.callId, this._recording.recordings, data.removed);
|
4096
|
+
};
|
4097
|
+
this._callIdRef = callIdRef;
|
4098
|
+
this._context = context;
|
4099
|
+
this._recording = recording;
|
4100
|
+
// If recording as already started when we joined the call, make sure it is reflected in state as there may not
|
4101
|
+
// be an event for it.
|
4102
|
+
if (this._recording.isRecordingActive) {
|
4103
|
+
this._context.setCallLocalRecordingActive(this._callIdRef.callId, this._recording.isRecordingActive);
|
4104
|
+
// recordings getter only returns a list of active recordings, so we can set the list of recordings here
|
4105
|
+
this._context.setCallLocalRecordingInfos(this._callIdRef.callId, this._recording.recordings, []);
|
4106
|
+
}
|
4107
|
+
this.subscribe();
|
4108
|
+
}
|
4109
|
+
}
|
4110
|
+
|
4056
4111
|
// Copyright (c) Microsoft Corporation.
|
4057
4112
|
// Licensed under the MIT License.
|
4058
4113
|
/**
|
@@ -4114,7 +4169,8 @@ class CallSubscriber {
|
|
4114
4169
|
this._diagnosticsSubscriber.unsubscribe();
|
4115
4170
|
this._recordingSubscriber.unsubscribe();
|
4116
4171
|
this._transcriptionSubscriber.unsubscribe();
|
4117
|
-
/* @conditional-compile-remove(
|
4172
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
4173
|
+
this._localRecordingSubscriber.unsubscribe();
|
4118
4174
|
this._optimalVideoCountSubscriber.unsubscribe();
|
4119
4175
|
/* @conditional-compile-remove(ppt-live) */
|
4120
4176
|
this._pptLiveSubscriber.unsubscribe();
|
@@ -4122,7 +4178,6 @@ class CallSubscriber {
|
|
4122
4178
|
(_a = this._TeamsCaptionsSubscriber) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
4123
4179
|
/* @conditional-compile-remove(acs-close-captions) */
|
4124
4180
|
(_b = this._CaptionsSubscriber) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
4125
|
-
/* @conditional-compile-remove(raise-hand) */
|
4126
4181
|
(_c = this._raiseHandSubscriber) === null || _c === void 0 ? void 0 : _c.unsubscribe();
|
4127
4182
|
/* @conditional-compile-remove(capabilities) */
|
4128
4183
|
this._capabilitiesSubscriber.unsubscribe();
|
@@ -4221,14 +4276,14 @@ class CallSubscriber {
|
|
4221
4276
|
this._diagnosticsSubscriber = new UserFacingDiagnosticsSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.UserFacingDiagnostics));
|
4222
4277
|
this._participantSubscribers = new Map();
|
4223
4278
|
this._recordingSubscriber = new RecordingSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Recording));
|
4279
|
+
/* @conditional-compile-remove(local-recording-notification) */
|
4280
|
+
this._localRecordingSubscriber = new LocalRecordingSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.LocalRecording));
|
4224
4281
|
/* @conditional-compile-remove(ppt-live) */
|
4225
4282
|
this._pptLiveSubscriber = new PPTLiveSubscriber(this._callIdRef, this._context, this._call);
|
4226
4283
|
this._transcriptionSubscriber = new TranscriptionSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Transcription));
|
4227
|
-
/* @conditional-compile-remove(raise-hand) */
|
4228
4284
|
this._raiseHandSubscriber = new RaiseHandSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.RaiseHand));
|
4229
4285
|
/* @conditional-compile-remove(reaction) */
|
4230
4286
|
this._reactionSubscriber = new ReactionSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Reaction));
|
4231
|
-
/* @conditional-compile-remove(optimal-video-count) */
|
4232
4287
|
this._optimalVideoCountSubscriber = new OptimalVideoCountSubscriber({
|
4233
4288
|
callIdRef: this._callIdRef,
|
4234
4289
|
context: this._context,
|
@@ -6417,7 +6472,6 @@ const lightTheme = {
|
|
6417
6472
|
callRedDark: '#8b2c3d',
|
6418
6473
|
callRedDarker: '#772a38',
|
6419
6474
|
iconWhite: '#ffffff',
|
6420
|
-
/* @conditional-compile-remove(raise-hand) */
|
6421
6475
|
raiseHandGold: '#eaa300'
|
6422
6476
|
},
|
6423
6477
|
semanticColors: {
|
@@ -6460,7 +6514,6 @@ const darkTheme = {
|
|
6460
6514
|
callRedDark: '#a42e43',
|
6461
6515
|
callRedDarker: '#8b2c3d',
|
6462
6516
|
iconWhite: '#ffffff',
|
6463
|
-
/* @conditional-compile-remove(raise-hand) */
|
6464
6517
|
raiseHandGold: '#eaa300'
|
6465
6518
|
},
|
6466
6519
|
semanticColors: {
|
@@ -6655,13 +6708,9 @@ const DEFAULT_COMPONENT_ICONS = {
|
|
6655
6708
|
ControlButtonParticipantsContextualMenuItem: React.createElement(reactIcons.People20Regular, null),
|
6656
6709
|
ControlButtonScreenShareStart: React.createElement(reactIcons.ShareScreenStart20Filled, null),
|
6657
6710
|
ControlButtonScreenShareStop: React.createElement(reactIcons.ShareScreenStop20Filled, null),
|
6658
|
-
/* @conditional-compile-remove(raise-hand) */
|
6659
6711
|
ControlButtonRaiseHand: React.createElement(ControlButtonRaiseHandIcon, null),
|
6660
|
-
/* @conditional-compile-remove(raise-hand) */
|
6661
6712
|
ControlButtonLowerHand: React.createElement(ControlButtonLowerHandIcon, null),
|
6662
|
-
/* @conditional-compile-remove(raise-hand) */
|
6663
6713
|
RaiseHandContextualMenuItem: React.createElement(reactIcons.HandRight20Regular, null),
|
6664
|
-
/* @conditional-compile-remove(raise-hand) */
|
6665
6714
|
LowerHandContextualMenuItem: React.createElement(reactIcons.HandRightOff20Regular, null),
|
6666
6715
|
/* @conditional-compile-remove(reaction) */
|
6667
6716
|
ReactionButtonIcon: React.createElement(reactIcons.Emoji20Regular, null),
|
@@ -12970,8 +13019,6 @@ const participantStateStringTrampoline$1 = (props, strings) => {
|
|
12970
13019
|
|
12971
13020
|
// Copyright (c) Microsoft Corporation.
|
12972
13021
|
// Licensed under the MIT License.
|
12973
|
-
/* @conditional-compile-remove(raise-hand) */
|
12974
|
-
/* @conditional-compile-remove(raise-hand) */
|
12975
13022
|
/**
|
12976
13023
|
* Raised hand icon for ParticipantList and VideoTitle.
|
12977
13024
|
*
|
@@ -13240,16 +13287,12 @@ const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvat
|
|
13240
13287
|
};
|
13241
13288
|
/* @conditional-compile-remove(hide-attendee-name) */
|
13242
13289
|
displayName = formatDisplayName();
|
13243
|
-
/* @conditional-compile-remove(raise-hand) */
|
13244
13290
|
const callingPalette = theme.callingPalette;
|
13245
|
-
const onRenderIcon = (callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.isScreenSharing) ||
|
13246
|
-
(callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.isMuted) ||
|
13247
|
-
(
|
13248
|
-
/* @conditional-compile-remove(raise-hand) */ callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.raisedHand)
|
13291
|
+
const onRenderIcon = (callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.isScreenSharing) || (callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.isMuted) || (callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.raisedHand)
|
13249
13292
|
? () => {
|
13250
13293
|
var _a;
|
13251
13294
|
return (React.createElement(react.Stack, { horizontal: true, tokens: { childrenGap: '0.5rem' } },
|
13252
|
-
|
13295
|
+
callingParticipant.raisedHand && (React.createElement(react.Stack, { horizontal: true, tokens: { childrenGap: '0.2rem' }, style: {
|
13253
13296
|
alignItems: 'center',
|
13254
13297
|
padding: '0.1rem 0.2rem',
|
13255
13298
|
backgroundColor: theme === null || theme === void 0 ? void 0 : theme.palette.neutralLighter,
|
@@ -13264,7 +13307,6 @@ const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvat
|
|
13264
13307
|
/* @conditional-compile-remove(spotlight) */ callingParticipant.spotlight && (React.createElement(react.Icon, { iconName: "ParticipantItemSpotlighted", className: iconStyles$2 }))));
|
13265
13308
|
}
|
13266
13309
|
: () => null;
|
13267
|
-
/* @conditional-compile-remove(raise-hand) */
|
13268
13310
|
const onRenderAvatarWithRaiseHand = (callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.raisedHand) && onRenderAvatar
|
13269
13311
|
? (userId, options, defaultOnRender) => onRenderAvatar(userId, Object.assign(Object.assign({}, options), { styles: { root: { border: callingPalette.raiseHandGold } } }), defaultOnRender)
|
13270
13312
|
: onRenderAvatar;
|
@@ -13277,11 +13319,9 @@ const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvat
|
|
13277
13319
|
* Sort participants by raised hand order position
|
13278
13320
|
*/
|
13279
13321
|
const sortParticipants = (participants) => {
|
13280
|
-
/* @conditional-compile-remove(raise-hand) */
|
13281
13322
|
const isParticipantListCallParticipant = function (participant) {
|
13282
13323
|
return 'raisedHand' in participant;
|
13283
13324
|
};
|
13284
|
-
/* @conditional-compile-remove(raise-hand) */
|
13285
13325
|
participants.sort((a, b) => {
|
13286
13326
|
if (!isParticipantListCallParticipant(a) || !isParticipantListCallParticipant(b)) {
|
13287
13327
|
return 0;
|
@@ -13327,7 +13367,6 @@ const ParticipantList$k = (props) => {
|
|
13327
13367
|
totalParticipantCount,
|
13328
13368
|
/* @conditional-compile-remove(total-participant-count) */
|
13329
13369
|
strings, participantAriaLabelledBy } = props;
|
13330
|
-
/* @conditional-compile-remove(raise-hand) */
|
13331
13370
|
const theme = useTheme();
|
13332
13371
|
const ids = useIdentifiers();
|
13333
13372
|
const participantItemStrings = useLocale$1().strings.participantItem;
|
@@ -13362,7 +13401,6 @@ const ParticipantList$k = (props) => {
|
|
13362
13401
|
onFetchParticipantMenuItems,
|
13363
13402
|
onRemoveParticipant,
|
13364
13403
|
(_b = (_a = props.styles) === null || _a === void 0 ? void 0 : _a.participantItemStyles) === null || _b === void 0 ? void 0 : _b.participantSubMenuItemsStyles,
|
13365
|
-
/* @conditional-compile-remove(raise-hand) */
|
13366
13404
|
participantItemStrings.removeButtonLabel
|
13367
13405
|
]);
|
13368
13406
|
const participantItemStyles = React.useMemo(() => { var _a; return react.merge(participantListItemStyle, (_a = props.styles) === null || _a === void 0 ? void 0 : _a.participantItemStyles); }, [(_c = props.styles) === null || _c === void 0 ? void 0 : _c.participantItemStyles]);
|
@@ -13371,9 +13409,7 @@ const ParticipantList$k = (props) => {
|
|
13371
13409
|
return (React.createElement(react.Stack, { "data-ui-id": ids.participantList, className: react.mergeStyles(participantListStyle$1, (_e = props.styles) === null || _e === void 0 ? void 0 : _e.root), role: 'menu' },
|
13372
13410
|
displayedParticipants.map((participant) => onRenderParticipant
|
13373
13411
|
? onRenderParticipant(participant)
|
13374
|
-
: onRenderParticipantDefault(participant, participantItemStrings, myUserId, onRenderAvatar, createParticipantMenuItems, participantItemStyles, props.onParticipantClick, showParticipantOverflowTooltip, participantAriaLabelledBy,
|
13375
|
-
/* @conditional-compile-remove(raise-hand) */
|
13376
|
-
theme)),
|
13412
|
+
: onRenderParticipantDefault(participant, participantItemStrings, myUserId, onRenderAvatar, createParticipantMenuItems, participantItemStyles, props.onParticipantClick, showParticipantOverflowTooltip, participantAriaLabelledBy, theme)),
|
13377
13413
|
/* @conditional-compile-remove(total-participant-count) */ overflowParticipantCountString &&
|
13378
13414
|
totalParticipantCount &&
|
13379
13415
|
totalParticipantCount > displayedParticipants.length && (React.createElement(react.Text, { style: { fontWeight: 400, margin: '0.5rem' } }, _formatString(overflowParticipantCountString, {
|
@@ -14623,9 +14659,7 @@ const VideoTileMoreOptionsButton = (props) => {
|
|
14623
14659
|
const VideoTile = (props) => {
|
14624
14660
|
const { children, displayName, initialsName, isMirrored, isMuted,
|
14625
14661
|
/* @conditional-compile-remove(spotlight) */
|
14626
|
-
isSpotlighted, isPinned, onRenderPlaceholder, renderElement, showLabel = true, showMuteIndicator = true, styles, userId, noVideoAvailableAriaLabel, isSpeaking,
|
14627
|
-
/* @conditional-compile-remove(raise-hand) */
|
14628
|
-
raisedHand,
|
14662
|
+
isSpotlighted, isPinned, onRenderPlaceholder, renderElement, showLabel = true, showMuteIndicator = true, styles, userId, noVideoAvailableAriaLabel, isSpeaking, raisedHand,
|
14629
14663
|
/* @conditional-compile-remove(reaction) */
|
14630
14664
|
reaction, personaMinSize = DEFAULT_PERSONA_MIN_SIZE_PX, personaMaxSize = DEFAULT_PERSONA_MAX_SIZE_PX, contextualMenu,
|
14631
14665
|
/* @conditional-compile-remove(reaction) */
|
@@ -14689,9 +14723,7 @@ const VideoTile = (props) => {
|
|
14689
14723
|
const participantStateString = participantStateStringTrampoline(props, locale);
|
14690
14724
|
const canShowContextMenuButton = isHovered || isFocused;
|
14691
14725
|
let raisedHandBackgroundColor = '';
|
14692
|
-
/* @conditional-compile-remove(raise-hand) */
|
14693
14726
|
const callingPalette = theme.callingPalette;
|
14694
|
-
/* @conditional-compile-remove(raise-hand) */
|
14695
14727
|
raisedHandBackgroundColor = callingPalette.raiseHandGold;
|
14696
14728
|
/* @conditional-compile-remove(reaction) */
|
14697
14729
|
const backgroundImageUrl = reaction !== undefined && reactionResources !== undefined
|
@@ -14726,7 +14758,7 @@ const VideoTile = (props) => {
|
|
14726
14758
|
return (React.createElement(react.Stack, Object.assign({ "data-ui-id": ids.videoTile, className: react.mergeStyles(rootStyles, {
|
14727
14759
|
background: theme.palette.neutralLighter,
|
14728
14760
|
borderRadius: theme.effects.roundedCorner4
|
14729
|
-
}, (isSpeaking ||
|
14761
|
+
}, (isSpeaking || raisedHand) && {
|
14730
14762
|
'&::after': {
|
14731
14763
|
content: `''`,
|
14732
14764
|
position: 'absolute',
|
@@ -14767,7 +14799,7 @@ const VideoTile = (props) => {
|
|
14767
14799
|
React.createElement(react.Icon, { iconName: "VideoTilePinned", className: react.mergeStyles(pinIconStyle) }))),
|
14768
14800
|
React.createElement(VideoTileMoreOptionsButton, { contextualMenu: contextualMenu, canShowContextMenuButton: canShowContextMenuButton })))),
|
14769
14801
|
children && (React.createElement(react.Stack, { className: react.mergeStyles(overlayContainerStyles, styles === null || styles === void 0 ? void 0 : styles.overlayContainer) }, children)),
|
14770
|
-
|
14802
|
+
raisedHand && (React.createElement(react.Stack, { horizontal: true, tokens: { childrenGap: '0.2rem' }, className: raiseHandContainerStyles(theme, !canShowLabel) },
|
14771
14803
|
React.createElement(react.Stack.Item, null,
|
14772
14804
|
React.createElement(react.Text, null, raisedHand.raisedHandOrderPosition)),
|
14773
14805
|
React.createElement(react.Stack.Item, null,
|
@@ -14889,9 +14921,7 @@ const _RemoteVideoTile = React.memo((props) => {
|
|
14889
14921
|
/* @conditional-compile-remove(hide-attendee-name) */
|
14890
14922
|
displayName = formatDisplayName();
|
14891
14923
|
return (React.createElement(react.Stack, { tabIndex: menuKind === 'drawer' ? 0 : undefined, onKeyDown: menuKind === 'drawer' ? onKeyDown : undefined, style: remoteVideoTileWrapperStyle },
|
14892
|
-
React.createElement(VideoTile, Object.assign({ key: userId, userId: userId, initialsName: (_b = remoteParticipant.displayName) !== null && _b !== void 0 ? _b : '', renderElement: renderVideoStreamElement, displayName: displayName, onRenderPlaceholder: onRenderAvatar, isMuted: remoteParticipant.isMuted,
|
14893
|
-
/* @conditional-compile-remove(raise-hand) */
|
14894
|
-
raisedHand: remoteParticipant.raisedHand,
|
14924
|
+
React.createElement(VideoTile, Object.assign({ key: userId, userId: userId, initialsName: (_b = remoteParticipant.displayName) !== null && _b !== void 0 ? _b : '', renderElement: renderVideoStreamElement, displayName: displayName, onRenderPlaceholder: onRenderAvatar, isMuted: remoteParticipant.isMuted, raisedHand: remoteParticipant.raisedHand,
|
14895
14925
|
/* @conditional-compile-remove(reaction) */
|
14896
14926
|
reaction: remoteParticipant.reaction, isSpeaking: remoteParticipant.isSpeaking, showMuteIndicator: showMuteIndicator, personaMinSize: props.personaMinSize, showLabel: props.showLabel,
|
14897
14927
|
/* @conditional-compile-remove(one-to-n-calling) */
|
@@ -15146,9 +15176,7 @@ const LocalVideoCameraCycleButton = (props) => {
|
|
15146
15176
|
* @internal
|
15147
15177
|
*/
|
15148
15178
|
const _LocalVideoTile = React.memo((props) => {
|
15149
|
-
const { isAvailable, isMuted, onCreateLocalStreamView, onDisposeLocalStreamView, localVideoViewOptions, renderElement, userId, showLabel, displayName, initialsName, onRenderAvatar, showMuteIndicator, styles, showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel, localVideoSelectedDescription,
|
15150
|
-
/* @conditional-compile-remove(raise-hand) */
|
15151
|
-
raisedHand,
|
15179
|
+
const { isAvailable, isMuted, onCreateLocalStreamView, onDisposeLocalStreamView, localVideoViewOptions, renderElement, userId, showLabel, displayName, initialsName, onRenderAvatar, showMuteIndicator, styles, showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel, localVideoSelectedDescription, raisedHand,
|
15152
15180
|
/* @conditional-compile-remove(reaction) */
|
15153
15181
|
reaction,
|
15154
15182
|
/* @conditional-compile-remove(spotlight) */
|
@@ -15253,9 +15281,7 @@ const _LocalVideoTile = React.memo((props) => {
|
|
15253
15281
|
]);
|
15254
15282
|
return (React.createElement(react.Stack, { className: react.mergeStyles({ width: '100%', height: '100%' }),
|
15255
15283
|
/* @conditional-compile-remove(spotlight) */ onKeyDown: menuKind === 'drawer' ? onKeyDown : undefined },
|
15256
|
-
React.createElement(VideoTile, Object.assign({ key: userId !== null && userId !== void 0 ? userId : 'local-video-tile', userId: userId, renderElement: renderVideoStreamElement, showLabel: showLabel, displayName: displayName, initialsName: initialsName, styles: videoTileStyles, onRenderPlaceholder: onRenderAvatar, isMuted: isMuted, showMuteIndicator: showMuteIndicator, personaMinSize: props.personaMinSize,
|
15257
|
-
/* @conditional-compile-remove(raise-hand) */
|
15258
|
-
raisedHand: raisedHand,
|
15284
|
+
React.createElement(VideoTile, Object.assign({ key: userId !== null && userId !== void 0 ? userId : 'local-video-tile', userId: userId, renderElement: renderVideoStreamElement, showLabel: showLabel, displayName: displayName, initialsName: initialsName, styles: videoTileStyles, onRenderPlaceholder: onRenderAvatar, isMuted: isMuted, showMuteIndicator: showMuteIndicator, personaMinSize: props.personaMinSize, raisedHand: raisedHand,
|
15259
15285
|
/* @conditional-compile-remove(reaction) */
|
15260
15286
|
reaction: reaction,
|
15261
15287
|
/* @conditional-compile-remove(spotlight) */
|
@@ -17447,9 +17473,7 @@ const VideoGallery = (props) => {
|
|
17447
17473
|
return layout === 'default' ? strings.localVideoLabel : isNarrow ? '' : strings.localVideoLabel;
|
17448
17474
|
};
|
17449
17475
|
return (React.createElement(react.Stack, { styles: localVideoTileContainerStyles, key: "local-video-tile-key", tabIndex: 0, "aria-label": strings.localVideoMovementLabel, role: 'dialog' },
|
17450
|
-
React.createElement(_LocalVideoTile, { userId: localParticipant.userId, onCreateLocalStreamView: onCreateLocalStreamView, onDisposeLocalStreamView: onDisposeLocalStreamView, isAvailable: (_a = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable, isMuted: localParticipant.isMuted, renderElement: (_b = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement, displayName: showDisplayNameTrampoline(), initialsName: initialsName, localVideoViewOptions: localVideoViewOptions, onRenderAvatar: onRenderAvatar, showLabel: showLocalVideoTileLabel, showMuteIndicator: showMuteIndicator, showCameraSwitcherInLocalPreview: showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps: localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel: strings.localVideoCameraSwitcherLabel, localVideoSelectedDescription: strings.localVideoSelectedDescription, styles: localVideoTileStyles,
|
17451
|
-
/* @conditional-compile-remove(raise-hand) */
|
17452
|
-
raisedHand: localParticipant.raisedHand,
|
17476
|
+
React.createElement(_LocalVideoTile, { userId: localParticipant.userId, onCreateLocalStreamView: onCreateLocalStreamView, onDisposeLocalStreamView: onDisposeLocalStreamView, isAvailable: (_a = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable, isMuted: localParticipant.isMuted, renderElement: (_b = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement, displayName: showDisplayNameTrampoline(), initialsName: initialsName, localVideoViewOptions: localVideoViewOptions, onRenderAvatar: onRenderAvatar, showLabel: showLocalVideoTileLabel, showMuteIndicator: showMuteIndicator, showCameraSwitcherInLocalPreview: showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps: localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel: strings.localVideoCameraSwitcherLabel, localVideoSelectedDescription: strings.localVideoSelectedDescription, styles: localVideoTileStyles, raisedHand: localParticipant.raisedHand,
|
17453
17477
|
/* @conditional-compile-remove(reaction) */
|
17454
17478
|
reaction: localParticipant.reaction,
|
17455
17479
|
/* @conditional-compile-remove(spotlight) */
|
@@ -18804,8 +18828,6 @@ const screenshareButtonStyles = (theme) => ({
|
|
18804
18828
|
|
18805
18829
|
// Copyright (c) Microsoft Corporation.
|
18806
18830
|
// Licensed under the MIT License.
|
18807
|
-
/* @conditional-compile-remove(raise-hand) */
|
18808
|
-
/* @conditional-compile-remove(raise-hand) */
|
18809
18831
|
/**
|
18810
18832
|
* A button to start / stop screen sharing.
|
18811
18833
|
*
|
@@ -18823,7 +18845,6 @@ const RaiseHandButton = (props) => {
|
|
18823
18845
|
const onRenderLowerHandIcon = () => (React.createElement(_HighContrastAwareIcon, { disabled: props.disabled, iconName: "ControlButtonLowerHand" }));
|
18824
18846
|
return (React.createElement(ControlBarButton, Object.assign({}, props, { className: react.mergeStyles(styles, props.styles), onClick: (_a = props.onToggleRaiseHand) !== null && _a !== void 0 ? _a : props.onClick, onRenderOnIcon: (_b = props.onRenderOnIcon) !== null && _b !== void 0 ? _b : onRenderLowerHandIcon, onRenderOffIcon: (_c = props.onRenderOffIcon) !== null && _c !== void 0 ? _c : onRenderRaiseHandIcon, strings: strings, labelKey: (_d = props.labelKey) !== null && _d !== void 0 ? _d : 'raiseHandButtonLabel', disabled: props.disabled })));
|
18825
18847
|
};
|
18826
|
-
/* @conditional-compile-remove(raise-hand) */
|
18827
18848
|
const raiseHandButtonStyles = (theme) => ({
|
18828
18849
|
rootChecked: {
|
18829
18850
|
background: theme.palette.themePrimary,
|
@@ -21120,9 +21141,7 @@ const _videoGalleryRemoteParticipantsMemo = (remoteParticipants, isHideAttendeeN
|
|
21120
21141
|
displayName = maskDisplayNameWithRole(displayName, localUserRole, participant.role, isHideAttendeeNamesEnabled);
|
21121
21142
|
/* @conditional-compile-remove(reaction) */
|
21122
21143
|
const remoteParticipantReaction = memoizedConvertToVideoTileReaction(participant.reactionState);
|
21123
|
-
return memoizedFn(toFlatCommunicationIdentifier(participant.identifier), participant.isMuted, checkIsSpeaking(participant), participant.videoStreams, state, displayName,
|
21124
|
-
/* @conditional-compile-remove(raise-hand) */
|
21125
|
-
participant.raisedHand,
|
21144
|
+
return memoizedFn(toFlatCommunicationIdentifier(participant.identifier), participant.isMuted, checkIsSpeaking(participant), participant.videoStreams, state, displayName, participant.raisedHand,
|
21126
21145
|
/* @conditional-compile-remove(reaction) */
|
21127
21146
|
remoteParticipantReaction,
|
21128
21147
|
/* @conditional-compile-remove(spotlight) */
|
@@ -21132,18 +21151,14 @@ const _videoGalleryRemoteParticipantsMemo = (remoteParticipants, isHideAttendeeN
|
|
21132
21151
|
}));
|
21133
21152
|
});
|
21134
21153
|
};
|
21135
|
-
const memoizedAllConvertRemoteParticipant = memoizeFnAll((userId, isMuted, isSpeaking, videoStreams, state, displayName,
|
21136
|
-
/* @conditional-compile-remove(raise-hand) */
|
21137
|
-
raisedHand, // temp unknown type to build stable
|
21154
|
+
const memoizedAllConvertRemoteParticipant = memoizeFnAll((userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand, // temp unknown type to build stable
|
21138
21155
|
/* @conditional-compile-remove(reaction) */
|
21139
21156
|
reaction, // temp unknown type to build stable
|
21140
21157
|
/* @conditional-compile-remove(spotlight) */
|
21141
21158
|
spotlight, // temp unknown type to build stable
|
21142
21159
|
/* @conditional-compile-remove(ppt-live) */
|
21143
21160
|
contentSharingStream) => {
|
21144
|
-
return convertRemoteParticipantToVideoGalleryRemoteParticipant(userId, isMuted, isSpeaking, videoStreams, state, displayName,
|
21145
|
-
/* @conditional-compile-remove(raise-hand) */
|
21146
|
-
raisedHand,
|
21161
|
+
return convertRemoteParticipantToVideoGalleryRemoteParticipant(userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand,
|
21147
21162
|
/* @conditional-compile-remove(reaction) */
|
21148
21163
|
reaction,
|
21149
21164
|
/* @conditional-compile-remove(spotlight) */
|
@@ -21152,9 +21167,7 @@ contentSharingStream) => {
|
|
21152
21167
|
contentSharingStream);
|
21153
21168
|
});
|
21154
21169
|
/** @private */
|
21155
|
-
const convertRemoteParticipantToVideoGalleryRemoteParticipant = (userId, isMuted, isSpeaking, videoStreams, state, displayName,
|
21156
|
-
/* @conditional-compile-remove(raise-hand) */
|
21157
|
-
raisedHand, // temp unknown type to build stable
|
21170
|
+
const convertRemoteParticipantToVideoGalleryRemoteParticipant = (userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand, // temp unknown type to build stable
|
21158
21171
|
/* @conditional-compile-remove(reaction) */
|
21159
21172
|
reaction, // temp unknown type to build stable
|
21160
21173
|
/* @conditional-compile-remove(spotlight) */
|
@@ -21189,7 +21202,6 @@ contentSharingStream) => {
|
|
21189
21202
|
/* @conditional-compile-remove(one-to-n-calling) */
|
21190
21203
|
/* @conditional-compile-remove(PSTN-calls) */
|
21191
21204
|
state,
|
21192
|
-
/* @conditional-compile-remove(raise-hand) */
|
21193
21205
|
raisedHand: raisedHand,
|
21194
21206
|
/* @conditional-compile-remove(reaction) */
|
21195
21207
|
reaction: reaction,
|
@@ -21221,8 +21233,7 @@ const convertRemoteContentSharingStreamToVideoGalleryStream = (stream) => {
|
|
21221
21233
|
};
|
21222
21234
|
/** @private */
|
21223
21235
|
const memoizeLocalParticipant = memoizeOne((identifier, displayName, isMuted, isScreenSharingOn, localVideoStream,
|
21224
|
-
/* @conditional-compile-remove(rooms) */ role,
|
21225
|
-
/* @conditional-compile-remove(raise-hand) */ raisedHand,
|
21236
|
+
/* @conditional-compile-remove(rooms) */ role, raisedHand,
|
21226
21237
|
/* @conditional-compile-remove(reaction) */ reaction,
|
21227
21238
|
/* @conditional-compile-remove(spotlight) */ localSpotlight,
|
21228
21239
|
/* @conditional-compile-remove(spotlight) */ capabilities) => {
|
@@ -21239,7 +21250,6 @@ const memoizeLocalParticipant = memoizeOne((identifier, displayName, isMuted, is
|
|
21239
21250
|
},
|
21240
21251
|
/* @conditional-compile-remove(rooms) */
|
21241
21252
|
role,
|
21242
|
-
/* @conditional-compile-remove(raise-hand) */
|
21243
21253
|
raisedHand: raisedHand,
|
21244
21254
|
/* @conditional-compile-remove(reaction) */
|
21245
21255
|
reaction: reaction,
|
@@ -21286,11 +21296,9 @@ const videoGallerySelector = reselect.createSelector([
|
|
21286
21296
|
getDisplayName$2,
|
21287
21297
|
getIdentifier,
|
21288
21298
|
getDominantSpeakers,
|
21289
|
-
/* @conditional-compile-remove(optimal-video-count) */
|
21290
21299
|
getOptimalVideoCount,
|
21291
21300
|
/* @conditional-compile-remove(rooms) */
|
21292
21301
|
getRole$1,
|
21293
|
-
/* @conditional-compile-remove(raise-hand) */
|
21294
21302
|
getLocalParticipantRaisedHand$1,
|
21295
21303
|
/* @conditional-compile-remove(hide-attendee-name) */
|
21296
21304
|
isHideAttendeeNamesEnabled,
|
@@ -21300,13 +21308,9 @@ const videoGallerySelector = reselect.createSelector([
|
|
21300
21308
|
getSpotlightCallFeature,
|
21301
21309
|
/* @conditional-compile-remove(spotlight) */
|
21302
21310
|
getCapabilities
|
21303
|
-
], (screenShareRemoteParticipantId, remoteParticipants, localVideoStreams, isMuted, isScreenSharingOn, displayName, identifier, dominantSpeakers,
|
21304
|
-
/* @conditional-compile-remove(optimal-video-count) */
|
21305
|
-
optimalVideoCount,
|
21311
|
+
], (screenShareRemoteParticipantId, remoteParticipants, localVideoStreams, isMuted, isScreenSharingOn, displayName, identifier, dominantSpeakers, optimalVideoCount,
|
21306
21312
|
/* @conditional-compile-remove(rooms) */
|
21307
|
-
role,
|
21308
|
-
/* @conditional-compile-remove(raise-hand) */
|
21309
|
-
raisedHand,
|
21313
|
+
role, raisedHand,
|
21310
21314
|
/* @conditional-compile-remove(hide-attendee-name) */
|
21311
21315
|
isHideAttendeeNamesEnabled,
|
21312
21316
|
/* @conditional-compile-remove(reaction) */
|
@@ -21328,17 +21332,13 @@ capabilities) => {
|
|
21328
21332
|
const spotlightedParticipantIds = memoizeSpotlightedParticipantIds(spotlightCallFeature === null || spotlightCallFeature === void 0 ? void 0 : spotlightCallFeature.spotlightedParticipants);
|
21329
21333
|
return {
|
21330
21334
|
screenShareParticipant: screenShareRemoteParticipant
|
21331
|
-
? convertRemoteParticipantToVideoGalleryRemoteParticipant(toFlatCommunicationIdentifier(screenShareRemoteParticipant.identifier), screenShareRemoteParticipant.isMuted, checkIsSpeaking(screenShareRemoteParticipant), screenShareRemoteParticipant.videoStreams, screenShareRemoteParticipant.state, screenShareRemoteParticipant.displayName,
|
21332
|
-
/* @conditional-compile-remove(raise-hand) */
|
21333
|
-
screenShareRemoteParticipant.raisedHand,
|
21335
|
+
? convertRemoteParticipantToVideoGalleryRemoteParticipant(toFlatCommunicationIdentifier(screenShareRemoteParticipant.identifier), screenShareRemoteParticipant.isMuted, checkIsSpeaking(screenShareRemoteParticipant), screenShareRemoteParticipant.videoStreams, screenShareRemoteParticipant.state, screenShareRemoteParticipant.displayName, screenShareRemoteParticipant.raisedHand,
|
21334
21336
|
/* @conditional-compile-remove(spotlight) */
|
21335
21337
|
screenShareRemoteParticipant.spotlight)
|
21336
21338
|
: undefined,
|
21337
21339
|
localParticipant: memoizeLocalParticipant(identifier, displayName, isMuted, isScreenSharingOn, localVideoStream,
|
21338
21340
|
/* @conditional-compile-remove(rooms) */
|
21339
|
-
role,
|
21340
|
-
/* @conditional-compile-remove(raise-hand) */
|
21341
|
-
raisedHand,
|
21341
|
+
role, raisedHand,
|
21342
21342
|
/* @conditional-compile-remove(reaction) */
|
21343
21343
|
localParticipantReactionState,
|
21344
21344
|
/* @conditional-compile-remove(spotlight) */
|
@@ -21351,7 +21351,6 @@ capabilities) => {
|
|
21351
21351
|
/* @conditional-compile-remove(hide-attendee-name) */
|
21352
21352
|
role),
|
21353
21353
|
dominantSpeakers: dominantSpeakerIds,
|
21354
|
-
/* @conditional-compile-remove(optimal-video-count) */
|
21355
21354
|
maxRemoteVideoStreams: optimalVideoCount,
|
21356
21355
|
/* @conditional-compile-remove(spotlight) */
|
21357
21356
|
spotlightedParticipants: spotlightedParticipantIds,
|
@@ -21395,9 +21394,7 @@ const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipan
|
|
21395
21394
|
const remoteParticipantReaction = memoizedConvertToVideoTileReaction(participant.reactionState);
|
21396
21395
|
/* @conditional-compile-remove(spotlight) */
|
21397
21396
|
const spotlight = memoizedSpotlight(spotlightedParticipants, toFlatCommunicationIdentifier(participant.identifier));
|
21398
|
-
return memoizeFn(toFlatCommunicationIdentifier(participant.identifier), displayName, state, participant.isMuted, isScreenSharing, participant.isSpeaking,
|
21399
|
-
/* @conditional-compile-remove(raise-hand) */
|
21400
|
-
participant.raisedHand, localUserCanRemoveOthers,
|
21397
|
+
return memoizeFn(toFlatCommunicationIdentifier(participant.identifier), displayName, state, participant.isMuted, isScreenSharing, participant.isSpeaking, participant.raisedHand, localUserCanRemoveOthers,
|
21401
21398
|
/* @conditional-compile-remove(reaction) */
|
21402
21399
|
remoteParticipantReaction,
|
21403
21400
|
/* @conditional-compile-remove(spotlight) */
|
@@ -21432,7 +21429,7 @@ const participantListSelector = reselect.createSelector([
|
|
21432
21429
|
getRemoteParticipantsExcludingConsumers,
|
21433
21430
|
getIsScreenSharingOn,
|
21434
21431
|
getIsMuted,
|
21435
|
-
|
21432
|
+
getLocalParticipantRaisedHand$1,
|
21436
21433
|
getRole$1,
|
21437
21434
|
getParticipantCount,
|
21438
21435
|
/* @conditional-compile-remove(hide-attendee-name) */
|
@@ -21441,9 +21438,7 @@ const participantListSelector = reselect.createSelector([
|
|
21441
21438
|
getLocalParticipantReactionState,
|
21442
21439
|
/* @conditional-compile-remove(spotlight) */
|
21443
21440
|
getSpotlightCallFeature
|
21444
|
-
], (userId, displayName, remoteParticipants, isScreenSharingOn, isMuted,
|
21445
|
-
/* @conditional-compile-remove(raise-hand) */
|
21446
|
-
raisedHand, role, partitipantCount,
|
21441
|
+
], (userId, displayName, remoteParticipants, isScreenSharingOn, isMuted, raisedHand, role, partitipantCount,
|
21447
21442
|
/* @conditional-compile-remove(hide-attendee-name) */
|
21448
21443
|
isHideAttendeeNamesEnabled,
|
21449
21444
|
/* @conditional-compile-remove(reaction) */
|
@@ -21467,7 +21462,6 @@ spotlightCallFeature) => {
|
|
21467
21462
|
displayName: displayName,
|
21468
21463
|
isScreenSharing: isScreenSharingOn,
|
21469
21464
|
isMuted: isMuted,
|
21470
|
-
/* @conditional-compile-remove(raise-hand) */
|
21471
21465
|
raisedHand: raisedHand,
|
21472
21466
|
state: 'Connected',
|
21473
21467
|
// Local participant can never remove themselves.
|
@@ -21782,10 +21776,6 @@ const getSelector$1 = (component) => {
|
|
21782
21776
|
if (component === HoldButton) {
|
21783
21777
|
return findConditionalCompiledSelector(component);
|
21784
21778
|
}
|
21785
|
-
/* @conditional-compile-remove(raise-hand) */
|
21786
|
-
if (component === RaiseHandButton) {
|
21787
|
-
return findConditionalCompiledSelector(component);
|
21788
|
-
}
|
21789
21779
|
/* @conditional-compile-remove(reaction) */
|
21790
21780
|
if (component === ReactionButton) {
|
21791
21781
|
return findConditionalCompiledSelector(component);
|
@@ -21817,20 +21807,18 @@ const findSelector$1 = (component) => {
|
|
21817
21807
|
return emptySelector;
|
21818
21808
|
case ErrorBar:
|
21819
21809
|
return errorBarSelector$1;
|
21810
|
+
case RaiseHandButton:
|
21811
|
+
return raiseHandButtonSelector;
|
21820
21812
|
}
|
21821
21813
|
return undefined;
|
21822
21814
|
};
|
21823
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
21815
|
+
/* @conditional-compile-remove(PSTN-calls) */
|
21824
21816
|
const findConditionalCompiledSelector = (component) => {
|
21825
21817
|
switch (component) {
|
21826
21818
|
/* @conditional-compile-remove(PSTN-calls) */
|
21827
21819
|
case HoldButton:
|
21828
21820
|
/* @conditional-compile-remove(PSTN-calls) */
|
21829
21821
|
return holdButtonSelector;
|
21830
|
-
/* @conditional-compile-remove(raise-hand) */
|
21831
|
-
case RaiseHandButton:
|
21832
|
-
/* @conditional-compile-remove(raise-hand) */
|
21833
|
-
return raiseHandButtonSelector;
|
21834
21822
|
/* @conditional-compile-remove(reaction) */
|
21835
21823
|
case ReactionButton:
|
21836
21824
|
/* @conditional-compile-remove(reaction) */
|
@@ -24198,7 +24186,6 @@ const COMPOSITE_ONLY_ICONS = {
|
|
24198
24186
|
FloatingLocalVideoGalleryLayout: React.createElement(reactIcons.BoardSplit20Regular, null),
|
24199
24187
|
FocusedContentGalleryLayout: React.createElement(reactIcons.ContentView20Regular, null),
|
24200
24188
|
LargeGalleryLayout: React.createElement(reactIcons.Table20Regular, null),
|
24201
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
24202
24189
|
DefaultCustomButton: React.createElement(reactIcons.Circle20Regular, null),
|
24203
24190
|
DtmfDialpadButton: React.createElement(reactIcons.Dialpad20Regular, null),
|
24204
24191
|
/* @conditional-compile-remove(spotlight) */
|
@@ -25284,9 +25271,7 @@ const AvatarPersona = (props) => {
|
|
25284
25271
|
}
|
25285
25272
|
}))();
|
25286
25273
|
}, [data, dataProvider, userId]);
|
25287
|
-
/* @conditional-compile-remove(raise-hand) */
|
25288
25274
|
let activePersona = '';
|
25289
|
-
/* @conditional-compile-remove(raise-hand) */
|
25290
25275
|
if (props.allowActiveBorder) {
|
25291
25276
|
// Display a border for raised handed participants in participant list
|
25292
25277
|
activePersona = react.mergeStyles({
|
@@ -25299,9 +25284,7 @@ const AvatarPersona = (props) => {
|
|
25299
25284
|
});
|
25300
25285
|
react.mergeStyles(activePersona, props.styles);
|
25301
25286
|
}
|
25302
|
-
return (React.createElement(react.Persona, Object.assign({}, props, {
|
25303
|
-
/* @conditional-compile-remove(raise-hand) */
|
25304
|
-
className: activePersona, text: (_a = data === null || data === void 0 ? void 0 : data.text) !== null && _a !== void 0 ? _a : text, imageUrl: (_b = data === null || data === void 0 ? void 0 : data.imageUrl) !== null && _b !== void 0 ? _b : imageUrl, imageInitials: (_c = data === null || data === void 0 ? void 0 : data.imageInitials) !== null && _c !== void 0 ? _c : imageInitials, initialsColor: (_d = data === null || data === void 0 ? void 0 : data.initialsColor) !== null && _d !== void 0 ? _d : initialsColor, initialsTextColor: (_f = (_e = data === null || data === void 0 ? void 0 : data.initialsTextColor) !== null && _e !== void 0 ? _e : initialsTextColor) !== null && _f !== void 0 ? _f : 'white',
|
25287
|
+
return (React.createElement(react.Persona, Object.assign({}, props, { className: activePersona, text: (_a = data === null || data === void 0 ? void 0 : data.text) !== null && _a !== void 0 ? _a : text, imageUrl: (_b = data === null || data === void 0 ? void 0 : data.imageUrl) !== null && _b !== void 0 ? _b : imageUrl, imageInitials: (_c = data === null || data === void 0 ? void 0 : data.imageInitials) !== null && _c !== void 0 ? _c : imageInitials, initialsColor: (_d = data === null || data === void 0 ? void 0 : data.initialsColor) !== null && _d !== void 0 ? _d : initialsColor, initialsTextColor: (_f = (_e = data === null || data === void 0 ? void 0 : data.initialsTextColor) !== null && _e !== void 0 ? _e : initialsTextColor) !== null && _f !== void 0 ? _f : 'white',
|
25305
25288
|
// default disable tooltip unless specified
|
25306
25289
|
showOverflowTooltip: showOverflowTooltip !== null && showOverflowTooltip !== void 0 ? showOverflowTooltip : false,
|
25307
25290
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
@@ -25615,9 +25598,7 @@ const ParticipantListWithHeading = (props) => {
|
|
25615
25598
|
/* @conditional-compile-remove(total-participant-count) */ totalParticipantCount)),
|
25616
25599
|
React.createElement(react.FocusZone, { className: participantListContainerStyle, shouldFocusOnMount: true },
|
25617
25600
|
React.createElement(ParticipantList$k, Object.assign({}, participantListProps, { styles: props.isMobile ? participantListMobileStyle : participantListStyle, onRenderAvatar: (userId, options) => (React.createElement(React.Fragment, null,
|
25618
|
-
React.createElement(AvatarPersona, Object.assign({ "data-ui-id": "chat-composite-participant-custom-avatar", userId: userId }, options, { hidePersonaDetails: !!(options === null || options === void 0 ? void 0 : options.text), dataProvider: onFetchAvatarPersonaData,
|
25619
|
-
/* @conditional-compile-remove(raise-hand) */
|
25620
|
-
allowActiveBorder: true })),
|
25601
|
+
React.createElement(AvatarPersona, Object.assign({ "data-ui-id": "chat-composite-participant-custom-avatar", userId: userId }, options, { hidePersonaDetails: !!(options === null || options === void 0 ? void 0 : options.text), dataProvider: onFetchAvatarPersonaData, allowActiveBorder: true })),
|
25621
25602
|
(options === null || options === void 0 ? void 0 : options.text) && (React.createElement(react.Text, { nowrap: true, styles: displayNameStyles$1 }, options === null || options === void 0 ? void 0 : options.text)))), onFetchParticipantMenuItems: onFetchParticipantMenuItems, showParticipantOverflowTooltip: !props.isMobile, participantAriaLabelledBy: subheadingUniqueId })))));
|
25622
25603
|
};
|
25623
25604
|
const paneTitleTrampoline = (paneTitle, totalParticipantCount) => {
|
@@ -25695,7 +25676,7 @@ const useSelector$2 = (selector, selectorProps) => {
|
|
25695
25676
|
// Copyright (c) Microsoft Corporation.
|
25696
25677
|
// Licensed under the MIT License.
|
25697
25678
|
/* @conditional-compile-remove(rich-text-editor) */
|
25698
|
-
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-
|
25679
|
+
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-BCdGFyar.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
|
25699
25680
|
/**
|
25700
25681
|
* @private
|
25701
25682
|
*/
|
@@ -26668,15 +26649,12 @@ const createCompositeHandlers = memoizeOne((adapter) => {
|
|
26668
26649
|
yield adapter.removeParticipant(_toCommunicationIdentifier(userId));
|
26669
26650
|
}
|
26670
26651
|
}),
|
26671
|
-
/* @conditional-compile-remove(raise-hand) */
|
26672
26652
|
onRaiseHand: () => __awaiter$j(void 0, void 0, void 0, function* () {
|
26673
26653
|
yield adapter.raiseHand();
|
26674
26654
|
}),
|
26675
|
-
/* @conditional-compile-remove(raise-hand) */
|
26676
26655
|
onLowerHand: () => __awaiter$j(void 0, void 0, void 0, function* () {
|
26677
26656
|
yield adapter.lowerHand();
|
26678
26657
|
}),
|
26679
|
-
/* @conditional-compile-remove(raise-hand) */
|
26680
26658
|
onToggleRaiseHand: () => __awaiter$j(void 0, void 0, void 0, function* () {
|
26681
26659
|
var _b;
|
26682
26660
|
((_b = adapter.getState().call) === null || _b === void 0 ? void 0 : _b.raiseHand.localParticipantRaisedHand)
|
@@ -27236,7 +27214,6 @@ const getDeviceManager = (state) => state.devices;
|
|
27236
27214
|
* @private
|
27237
27215
|
*/
|
27238
27216
|
const getIsScreenShareOn = (state) => { var _a, _b; return (_b = (_a = state.call) === null || _a === void 0 ? void 0 : _a.isScreenSharingOn) !== null && _b !== void 0 ? _b : false; };
|
27239
|
-
/* @conditional-compile-remove(raise-hand) */
|
27240
27217
|
/**
|
27241
27218
|
* @private
|
27242
27219
|
*/
|
@@ -27523,7 +27500,6 @@ const callArrangementContainerStyles = (verticalControlBar) => {
|
|
27523
27500
|
|
27524
27501
|
// Copyright (c) Microsoft Corporation.
|
27525
27502
|
// Licensed under the MIT License.
|
27526
|
-
/* @conditional-compile-remove(raise-hand) */
|
27527
27503
|
/** @private */
|
27528
27504
|
const RaiseHand = (props) => {
|
27529
27505
|
const raiseHandButtonProps = usePropsFor$1(RaiseHandButton);
|
@@ -27535,7 +27511,6 @@ const RaiseHand = (props) => {
|
|
27535
27511
|
}
|
27536
27512
|
return (React.createElement(RaiseHandButton, Object.assign({ "data-ui-id": "call-composite-raisehand-button" }, raiseHandButtonProps, { showLabel: props.displayType !== 'compact', disabled: raiseHandButtonDisabled || props.disabled, styles: styles })));
|
27537
27513
|
};
|
27538
|
-
/* @conditional-compile-remove(raise-hand) */
|
27539
27514
|
const isDisabled$1 = (option) => {
|
27540
27515
|
if (option === undefined || option === true || option === false) {
|
27541
27516
|
return false;
|
@@ -27683,7 +27658,6 @@ const CallControls = (props) => {
|
|
27683
27658
|
const options = React.useMemo(() => inferCallControlOptions(!!props.isMobile, props.options), [props.isMobile, props.options]);
|
27684
27659
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(rooms) */
|
27685
27660
|
const adapter = useAdapter();
|
27686
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
|
27687
27661
|
const localeStrings = useLocale();
|
27688
27662
|
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
27689
27663
|
const peopleButtonStrings = React.useMemo(() => ({
|
@@ -27691,14 +27665,12 @@ const CallControls = (props) => {
|
|
27691
27665
|
tooltipOffContent: localeStrings.strings.call.peopleButtonTooltipOpen,
|
27692
27666
|
tooltipOnContent: localeStrings.strings.call.peopleButtonTooltipClose
|
27693
27667
|
}), [localeStrings]);
|
27694
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
|
27695
27668
|
const moreButtonStrings = React.useMemo(() => ({
|
27696
27669
|
label: localeStrings.strings.call.moreButtonCallingLabel,
|
27697
27670
|
tooltipOffContent: localeStrings.strings.callWithChat.moreDrawerButtonTooltip
|
27698
27671
|
}), [localeStrings]);
|
27699
27672
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
27700
27673
|
const holdButtonProps = usePropsFor$1(HoldButton);
|
27701
|
-
/* @conditional-compile-remove(raise-hand) */
|
27702
27674
|
const raiseHandButtonProps = usePropsFor$1(RaiseHandButton);
|
27703
27675
|
/* @conditional-compile-remove(reaction) */
|
27704
27676
|
const capabilitiesSelector = useSelector$1(capabilitySelector);
|
@@ -27788,15 +27760,12 @@ const CallControls = (props) => {
|
|
27788
27760
|
}
|
27789
27761
|
/* @conditional-compile-remove(reaction) */
|
27790
27762
|
const reactionResources = adapter.getState().reactions;
|
27791
|
-
/* @conditional-compile-remove(raise-hand) */
|
27792
27763
|
const raiseHandButtonIsEnabled = isEnabled$2(options === null || options === void 0 ? void 0 : options.raiseHandButton);
|
27793
|
-
/* @conditional-compile-remove(raise-hand) */
|
27794
27764
|
let showRaiseHandButtonInControlBar = raiseHandButtonIsEnabled;
|
27795
27765
|
/* @conditional-compile-remove(rooms) */
|
27796
27766
|
const role = (_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.role;
|
27797
27767
|
/* @conditional-compile-remove(rooms) */
|
27798
27768
|
const hideRaiseHandButtonInRoomsCall = adapter.getState().isRoomsCall && role && ['Consumer', 'Unknown'].includes(role);
|
27799
|
-
/* @conditional-compile-remove(raise-hand) */
|
27800
27769
|
if (showRaiseHandButtonInControlBar && (props.isMobile ? numberOfButtons < 5 : true)) {
|
27801
27770
|
numberOfButtons++;
|
27802
27771
|
}
|
@@ -27818,7 +27787,6 @@ const CallControls = (props) => {
|
|
27818
27787
|
['data-ui-id']: 'call-composite-more-menu-devices-button'
|
27819
27788
|
});
|
27820
27789
|
}
|
27821
|
-
/* @conditional-compile-remove(raise-hand) */
|
27822
27790
|
if (!showRaiseHandButtonInControlBar && /* @conditional-compile-remove(rooms) */ !hideRaiseHandButtonInRoomsCall) {
|
27823
27791
|
moreButtonMenuItems.push({
|
27824
27792
|
key: 'raiseHandButtonKey',
|
@@ -27876,7 +27844,7 @@ const CallControls = (props) => {
|
|
27876
27844
|
cameraButtonIsEnabled && (React.createElement(Camera, { displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$4(options === null || options === void 0 ? void 0 : options.cameraButton) })),
|
27877
27845
|
/* @conditional-compile-remove(reaction) */
|
27878
27846
|
showReactionButtonInControlBar && reactionResources && (React.createElement(Reaction, { displayType: options === null || options === void 0 ? void 0 : options.displayType, reactionResource: reactionResources })),
|
27879
|
-
|
27847
|
+
showRaiseHandButtonInControlBar &&
|
27880
27848
|
/* @conditional-compile-remove(rooms) */ !hideRaiseHandButtonInRoomsCall && (React.createElement(RaiseHand, { displayType: options === null || options === void 0 ? void 0 : options.displayType })),
|
27881
27849
|
screenShareButtonIsEnabled && (React.createElement(ScreenShare, { option: options === null || options === void 0 ? void 0 : options.screenShareButton, displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$4(options === null || options === void 0 ? void 0 : options.screenShareButton) })),
|
27882
27850
|
showParticipantsButtonInControlBar && (React.createElement(Participants, { option: options === null || options === void 0 ? void 0 : options.participantsButton, callInvitationURL: props.callInvitationURL, onFetchParticipantMenuItems: props.onFetchParticipantMenuItems, displayType: options === null || options === void 0 ? void 0 : options.displayType, increaseFlyoutItemSize: props.increaseFlyoutItemSize, isMobile: props.isMobile, disabled: isDisabled$4(options === null || options === void 0 ? void 0 : options.participantsButton) })) && (
|
@@ -27890,7 +27858,6 @@ const CallControls = (props) => {
|
|
27890
27858
|
// styles={commonButtonStyles}
|
27891
27859
|
showLabel: (options === null || options === void 0 ? void 0 : options.displayType) !== 'compact', disableTooltip: props.isMobile }));
|
27892
27860
|
}),
|
27893
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
|
27894
27861
|
showMoreButton && (React.createElement(MoreButton, { disableTooltip: props.isMobile, "data-ui-id": "common-call-composite-more-button", strings: moreButtonStrings, menuIconProps: { hidden: true }, menuProps: { items: moreButtonMenuItems }, showLabel: (options === null || options === void 0 ? void 0 : options.displayType) !== 'compact' })),
|
27895
27862
|
isEnabled$2(options === null || options === void 0 ? void 0 : options.endCallButton) && React.createElement(EndCall, { displayType: options === null || options === void 0 ? void 0 : options.displayType })))));
|
27896
27863
|
};
|
@@ -28395,15 +28362,12 @@ const DesktopMoreButton = (props) => {
|
|
28395
28362
|
(_h = (_g = galleryOptions.subMenuProps) === null || _g === void 0 ? void 0 : _g.items) === null || _h === void 0 ? void 0 : _h.push(overflowGalleryOption);
|
28396
28363
|
moreButtonContextualMenuItems.push(galleryOptions);
|
28397
28364
|
}
|
28398
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
28399
28365
|
const customDrawerButtons = React.useMemo(() => generateCustomCallDesktopOverflowButtons(onFetchCustomButtonPropsTrampoline(typeof props.callControls === 'object' ? props.callControls : undefined), typeof props.callControls === 'object' ? props.callControls.displayType : undefined), [props.callControls]);
|
28400
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
28401
28366
|
customDrawerButtons['primary'].slice(CUSTOM_BUTTON_OPTIONS.MAX_PRIMARY_DESKTOP_CUSTOM_BUTTONS).forEach((element) => {
|
28402
28367
|
moreButtonContextualMenuItems.push(Object.assign({ itemProps: {
|
28403
28368
|
styles: buttonFlyoutIncreasedSizeStyles
|
28404
28369
|
} }, element));
|
28405
28370
|
});
|
28406
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
28407
28371
|
customDrawerButtons['secondary']
|
28408
28372
|
.slice(CUSTOM_BUTTON_OPTIONS.MAX_SECONDARY_DESKTOP_CUSTOM_BUTTONS)
|
28409
28373
|
.forEach((element) => {
|
@@ -28411,7 +28375,6 @@ const DesktopMoreButton = (props) => {
|
|
28411
28375
|
styles: buttonFlyoutIncreasedSizeStyles
|
28412
28376
|
} }, element));
|
28413
28377
|
});
|
28414
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
28415
28378
|
customDrawerButtons['overflow'].forEach((element) => {
|
28416
28379
|
moreButtonContextualMenuItems.push(Object.assign({ itemProps: {
|
28417
28380
|
styles: buttonFlyoutIncreasedSizeStyles
|
@@ -28656,7 +28619,7 @@ const CommonCallControlBar = (props) => {
|
|
28656
28619
|
isReactionAllowed &&
|
28657
28620
|
isEnabled$1(options.reactionButton) &&
|
28658
28621
|
reactionResources && (React.createElement(Reaction, { displayType: options.displayType, styles: commonButtonStyles, disabled: props.disableButtonsForHoldScreen, reactionResource: reactionResources })),
|
28659
|
-
|
28622
|
+
!props.mobileView &&
|
28660
28623
|
isEnabled$1(options.raiseHandButton) &&
|
28661
28624
|
/* @conditional-compile-remove(rooms) */ !hideRaiseHandButtonInRoomsCall && (React.createElement(RaiseHand, { displayType: options.displayType, styles: commonButtonStyles,
|
28662
28625
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
@@ -28679,9 +28642,7 @@ const CommonCallControlBar = (props) => {
|
|
28679
28642
|
props.mobileView && (React.createElement(MoreButton, { "data-ui-id": "common-call-composite-more-button", strings: moreButtonStrings, onClick: props.onMoreButtonClicked, disabled: props.disableButtonsForLobbyPage, disableTooltip: props.mobileView })),
|
28680
28643
|
!props.mobileView && showDesktopMoreButton && (React.createElement(DesktopMoreButton, { disableButtonsForHoldScreen: props.disableButtonsForHoldScreen, styles: commonButtonStyles,
|
28681
28644
|
/*@conditional-compile-remove(PSTN-calls) */
|
28682
|
-
onClickShowDialpad: props.onClickShowDialpad,
|
28683
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
28684
|
-
callControls: props.callControls,
|
28645
|
+
onClickShowDialpad: props.onClickShowDialpad, callControls: props.callControls,
|
28685
28646
|
/* @conditional-compile-remove(close-captions) */
|
28686
28647
|
isCaptionsSupported: props.isCaptionsSupported,
|
28687
28648
|
/* @conditional-compile-remove(close-captions) */
|
@@ -28999,14 +28960,12 @@ const MoreDrawer = (props) => {
|
|
28999
28960
|
const callAdapter = useAdapter();
|
29000
28961
|
const drawerMenuItems = [];
|
29001
28962
|
const { speakers, onSelectSpeaker, onLightDismiss } = props;
|
29002
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
|
29003
28963
|
const localeStrings = useLocale();
|
29004
28964
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
29005
28965
|
const holdButtonProps = usePropsFor$1(HoldButton);
|
29006
28966
|
const callees = useSelector$1(getTargetCallees);
|
29007
28967
|
const allowDtmfDialer = showDtmfDialer(callees);
|
29008
28968
|
const [dtmfDialerChecked, setDtmfDialerChecked] = React.useState((_a = props.dtmfDialerPresent) !== null && _a !== void 0 ? _a : false);
|
29009
|
-
/* @conditional-compile-remove(raise-hand) */
|
29010
28969
|
const raiseHandButtonProps = usePropsFor$1(RaiseHandButton);
|
29011
28970
|
const onSpeakerItemClick = React.useCallback((_ev, itemKey) => {
|
29012
28971
|
const selected = speakers === null || speakers === void 0 ? void 0 : speakers.find((speaker) => speaker.id === itemKey);
|
@@ -29184,7 +29143,6 @@ const MoreDrawer = (props) => {
|
|
29184
29143
|
const role = (_e = callAdapter.getState().call) === null || _e === void 0 ? void 0 : _e.role;
|
29185
29144
|
/*@conditional-compile-remove(rooms) */
|
29186
29145
|
const hideRaiseHandButtonInRoomsCall = callAdapter.getState().isRoomsCall && role && ['Consumer', 'Unknown'].includes(role);
|
29187
|
-
/* @conditional-compile-remove(raise-hand) */
|
29188
29146
|
if (drawerSelectionOptions !== false &&
|
29189
29147
|
isEnabled(drawerSelectionOptions === null || drawerSelectionOptions === void 0 ? void 0 : drawerSelectionOptions.raiseHandButton) &&
|
29190
29148
|
/*@conditional-compile-remove(rooms) */ !hideRaiseHandButtonInRoomsCall) {
|
@@ -29308,17 +29266,13 @@ const MoreDrawer = (props) => {
|
|
29308
29266
|
});
|
29309
29267
|
}
|
29310
29268
|
}
|
29311
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
29312
29269
|
const customDrawerButtons = React.useMemo(() => generateCustomCallDrawerButtons(onFetchCustomButtonPropsTrampoline(drawerSelectionOptions !== false ? drawerSelectionOptions : undefined), drawerSelectionOptions !== false ? drawerSelectionOptions === null || drawerSelectionOptions === void 0 ? void 0 : drawerSelectionOptions.displayType : undefined), [drawerSelectionOptions]);
|
29313
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
29314
29270
|
customDrawerButtons['primary'].slice(CUSTOM_BUTTON_OPTIONS.MAX_PRIMARY_MOBILE_CUSTOM_BUTTONS).forEach((element) => {
|
29315
29271
|
drawerMenuItems.push(element);
|
29316
29272
|
});
|
29317
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
29318
29273
|
customDrawerButtons['secondary'].forEach((element) => {
|
29319
29274
|
drawerMenuItems.push(element);
|
29320
29275
|
});
|
29321
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
29322
29276
|
customDrawerButtons['overflow'].forEach((element) => {
|
29323
29277
|
drawerMenuItems.push(element);
|
29324
29278
|
});
|
@@ -30573,7 +30527,6 @@ const LocalAndRemotePIP = (props) => {
|
|
30573
30527
|
showCameraSwitcherInLocalPreview: false,
|
30574
30528
|
isAvailable: (_a = localParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable,
|
30575
30529
|
renderElement: (_b = localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement,
|
30576
|
-
/* @conditional-compile-remove(raise-hand) */
|
30577
30530
|
raisedHand: localParticipant.raisedHand
|
30578
30531
|
});
|
30579
30532
|
}, [
|
@@ -30582,7 +30535,6 @@ const LocalAndRemotePIP = (props) => {
|
|
30582
30535
|
(_b = localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement,
|
30583
30536
|
onCreateLocalStreamView,
|
30584
30537
|
onDisposeLocalStreamView,
|
30585
|
-
/* @conditional-compile-remove(raise-hand) */
|
30586
30538
|
localParticipant.raisedHand
|
30587
30539
|
]);
|
30588
30540
|
const remoteVideoTileProps = React.useMemo(() => {
|
@@ -30672,18 +30624,11 @@ const updateUserDisplayNamesTrampoline = (remoteParticipants) => {
|
|
30672
30624
|
* Picture in picture in picture needs to display the most-dominant remote speaker, as well as the local participant video.
|
30673
30625
|
* @private
|
30674
30626
|
*/
|
30675
|
-
const localAndRemotePIPSelector = reselect__namespace.createSelector([
|
30676
|
-
getDisplayName,
|
30677
|
-
dominantRemoteParticipantSelector,
|
30678
|
-
localVideoSelector,
|
30679
|
-
/* @conditional-compile-remove(raise-hand) */ getLocalParticipantRaisedHand
|
30680
|
-
], (displayName, dominantRemoteParticipant, localVideoStreamInfo,
|
30681
|
-
/* @conditional-compile-remove(raise-hand) */ raisedHand) => {
|
30627
|
+
const localAndRemotePIPSelector = reselect__namespace.createSelector([getDisplayName, dominantRemoteParticipantSelector, localVideoSelector, getLocalParticipantRaisedHand], (displayName, dominantRemoteParticipant, localVideoStreamInfo, raisedHand) => {
|
30682
30628
|
return {
|
30683
30629
|
localParticipant: {
|
30684
30630
|
displayName,
|
30685
30631
|
videoStream: localVideoStreamInfo,
|
30686
|
-
/* @conditional-compile-remove(raise-hand) */
|
30687
30632
|
raisedHand: raisedHand
|
30688
30633
|
},
|
30689
30634
|
dominantRemoteParticipant
|
@@ -34964,7 +34909,6 @@ class AzureCommunicationCallAdapter {
|
|
34964
34909
|
this.startCall.bind(this);
|
34965
34910
|
this.startScreenShare.bind(this);
|
34966
34911
|
this.stopScreenShare.bind(this);
|
34967
|
-
/* @conditional-compile-remove(raise-hand) */
|
34968
34912
|
this.raiseHand.bind(this);
|
34969
34913
|
/* @conditional-compile-remove(reaction) */
|
34970
34914
|
this.onReactionClick.bind(this);
|
@@ -35277,7 +35221,6 @@ class AzureCommunicationCallAdapter {
|
|
35277
35221
|
}));
|
35278
35222
|
});
|
35279
35223
|
}
|
35280
|
-
/* @conditional-compile-remove(raise-hand) */
|
35281
35224
|
raiseHand() {
|
35282
35225
|
return __awaiter$5(this, void 0, void 0, function* () {
|
35283
35226
|
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
|
@@ -35285,7 +35228,6 @@ class AzureCommunicationCallAdapter {
|
|
35285
35228
|
}));
|
35286
35229
|
});
|
35287
35230
|
}
|
35288
|
-
/* @conditional-compile-remove(raise-hand) */
|
35289
35231
|
lowerHand() {
|
35290
35232
|
return __awaiter$5(this, void 0, void 0, function* () {
|
35291
35233
|
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
|
@@ -36164,9 +36106,7 @@ class CallWithChatBackedCallAdapter {
|
|
36164
36106
|
this.unmute = () => __awaiter$4(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.unmute(); });
|
36165
36107
|
this.startScreenShare = () => __awaiter$4(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.startScreenShare(); });
|
36166
36108
|
this.stopScreenShare = () => __awaiter$4(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.stopScreenShare(); });
|
36167
|
-
/* @conditional-compile-remove(raise-hand) */
|
36168
36109
|
this.raiseHand = () => __awaiter$4(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.raiseHand(); });
|
36169
|
-
/* @conditional-compile-remove(raise-hand) */
|
36170
36110
|
this.lowerHand = () => __awaiter$4(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.lowerHand(); });
|
36171
36111
|
/* @conditional-compile-remove(reaction) */
|
36172
36112
|
this.onReactionClick = (reaction) => __awaiter$4(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.onReactionClick(reaction); });
|
@@ -36690,7 +36630,6 @@ const CallWithChatScreen = (props) => {
|
|
36690
36630
|
const callControlOptionsFromProps = React.useMemo(() => (Object.assign({}, (typeof props.callControls === 'object' ? props.callControls : {}))), [props.callControls]);
|
36691
36631
|
const injectedCustomButtonsFromProps = React.useMemo(() => {
|
36692
36632
|
var _a;
|
36693
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
36694
36633
|
return [...((_a = callControlOptionsFromProps.onFetchCustomButtonProps) !== null && _a !== void 0 ? _a : [])];
|
36695
36634
|
}, [callControlOptionsFromProps]);
|
36696
36635
|
const callCompositeOptions = React.useMemo(() => ({
|
@@ -36698,7 +36637,6 @@ const CallWithChatScreen = (props) => {
|
|
36698
36637
|
? false
|
36699
36638
|
: Object.assign(Object.assign({}, callControlOptionsFromProps), { onFetchCustomButtonProps: [
|
36700
36639
|
...(showChatButton ? [customChatButton] : []),
|
36701
|
-
/* @conditional-compile-remove(control-bar-button-injection) */
|
36702
36640
|
...injectedCustomButtonsFromProps
|
36703
36641
|
], legacyControlBarExperience: false }),
|
36704
36642
|
/* @conditional-compile-remove(call-readiness) */
|
@@ -37037,9 +36975,7 @@ class AzureCommunicationCallWithChatAdapter {
|
|
37037
36975
|
this.unmute.bind(this);
|
37038
36976
|
this.startScreenShare.bind(this);
|
37039
36977
|
this.stopScreenShare.bind(this);
|
37040
|
-
/* @conditional-compile-remove(raise-hand) */
|
37041
36978
|
this.raiseHand.bind(this);
|
37042
|
-
/* @conditional-compile-remove(raise-hand) */
|
37043
36979
|
this.lowerHand.bind(this);
|
37044
36980
|
/* @conditional-compile-remove(reaction) */
|
37045
36981
|
this.onReactionClick.bind(this);
|
@@ -37234,14 +37170,12 @@ class AzureCommunicationCallWithChatAdapter {
|
|
37234
37170
|
yield this.callAdapter.stopScreenShare();
|
37235
37171
|
});
|
37236
37172
|
}
|
37237
|
-
/* @conditional-compile-remove(raise-hand) */
|
37238
37173
|
/** Raise hand for local user. */
|
37239
37174
|
raiseHand() {
|
37240
37175
|
return __awaiter$2(this, void 0, void 0, function* () {
|
37241
37176
|
yield this.callAdapter.raiseHand();
|
37242
37177
|
});
|
37243
37178
|
}
|
37244
|
-
/* @conditional-compile-remove(raise-hand) */
|
37245
37179
|
/** Lower hand for local user. */
|
37246
37180
|
lowerHand() {
|
37247
37181
|
return __awaiter$2(this, void 0, void 0, function* () {
|
@@ -38319,4 +38253,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
38319
38253
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
38320
38254
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
38321
38255
|
exports.useTheme = useTheme;
|
38322
|
-
//# sourceMappingURL=index-
|
38256
|
+
//# sourceMappingURL=index-BfFCLrEO.js.map
|