@azure/communication-react 1.11.1-alpha-202312240013 → 1.11.1-alpha-202312280012
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 +3 -2
- 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/components/LocalPreview.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
- package/package.json +1 -1
@@ -170,7 +170,7 @@ function getDefaultExportFromCjs (x) {
|
|
170
170
|
// Copyright (c) Microsoft Corporation.
|
171
171
|
// Licensed under the MIT License.
|
172
172
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
173
|
-
var telemetryVersion = '1.11.1-alpha-
|
173
|
+
var telemetryVersion = '1.11.1-alpha-202312280012';
|
174
174
|
|
175
175
|
|
176
176
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -29490,6 +29490,7 @@ const LocalPreview = (props) => {
|
|
29490
29490
|
const onToggleMic = React.useCallback(() => __awaiter$a(void 0, void 0, void 0, function* () {
|
29491
29491
|
isLocalMicrophoneEnabled ? adapter.mute() : adapter.unmute();
|
29492
29492
|
}), [adapter, isLocalMicrophoneEnabled]);
|
29493
|
+
const hasNoSpeakers = !devicesButtonProps.speakers.length;
|
29493
29494
|
const hasNoDevices = devicesButtonProps.cameras.length === 0 &&
|
29494
29495
|
devicesButtonProps.microphones.length === 0 &&
|
29495
29496
|
devicesButtonProps.speakers.length === 0;
|
@@ -29535,7 +29536,7 @@ const LocalPreview = (props) => {
|
|
29535
29536
|
: {}, styles: localPreviewButtonStyle })),
|
29536
29537
|
props.showDevicesButton && (React.createElement(DevicesButton, Object.assign({ "data-ui-id": "call-composite-local-device-settings-options-button" }, devicesButtonProps, {
|
29537
29538
|
// disable button whilst all other buttons are disabled
|
29538
|
-
disabled: !microphonePermissionGranted
|
29539
|
+
disabled: (!microphonePermissionGranted && !cameraPermissionGranted && hasNoSpeakers) || hasNoDevices, showLabel: true,
|
29539
29540
|
// disable tooltip as it obscures list of devices on mobile
|
29540
29541
|
strings: props.mobileView ? { tooltipContent: '' } : {}, styles: devicesButtonStyles })))))));
|
29541
29542
|
};
|