@azure/communication-react 1.27.0 → 1.27.1
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 +4 -15
- 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/LocalDeviceSettings.js +3 -14
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
- package/package.json +1 -1
@@ -178,7 +178,7 @@ function getDefaultExportFromCjs (x) {
|
|
178
178
|
// Copyright (c) Microsoft Corporation.
|
179
179
|
// Licensed under the MIT License.
|
180
180
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
181
|
-
var telemetryVersion = '1.27.
|
181
|
+
var telemetryVersion = '1.27.1';
|
182
182
|
|
183
183
|
|
184
184
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -33839,17 +33839,6 @@ const getDropDownList = (list) => {
|
|
33839
33839
|
}
|
33840
33840
|
return dropdownList;
|
33841
33841
|
};
|
33842
|
-
// This helper function is used to prepend a header item to the dropdown list.
|
33843
|
-
// Allows Dropdowns to have a name for the list of options when first being actioned (a11y requirement).
|
33844
|
-
const prependHeaderDropdownItem = (list, headerTitle) => {
|
33845
|
-
const headerItem = {
|
33846
|
-
key: headerTitle,
|
33847
|
-
text: headerTitle,
|
33848
|
-
itemType: 2,
|
33849
|
-
hidden: true
|
33850
|
-
};
|
33851
|
-
return [headerItem, ...list];
|
33852
|
-
};
|
33853
33842
|
const getOptionIcon = (type) => {
|
33854
33843
|
if (type === 'Camera') {
|
33855
33844
|
return React.createElement(CallCompositeIcon, { iconName: "LocalDeviceSettingsCamera", className: optionIconStyles });
|
@@ -33913,7 +33902,7 @@ const LocalDeviceSettings = (props) => {
|
|
33913
33902
|
const isSafariWithNoSpeakers = _isSafari(environmentInfo) && !hasSpeakers;
|
33914
33903
|
const cameraLabelId = reactHooks.useId('camera-label');
|
33915
33904
|
const soundLabelId = reactHooks.useId('sound-label');
|
33916
|
-
const cameraGrantedDropdown = React.createElement(react.Dropdown, { "data-ui-id": "call-composite-local-camera-settings", "aria-labelledby": cameraLabelId, placeholder: hasCameras ? defaultPlaceHolder : noCameraLabel, options: cameraPermissionGranted ?
|
33905
|
+
const cameraGrantedDropdown = React.createElement(react.Dropdown, { "data-ui-id": "call-composite-local-camera-settings", "aria-labelledby": cameraLabelId, placeholder: hasCameras ? defaultPlaceHolder : noCameraLabel, options: cameraPermissionGranted ? getDropDownList(props.cameras) : [{
|
33917
33906
|
key: 'deniedOrUnknown',
|
33918
33907
|
text: ''
|
33919
33908
|
}], styles: dropDownStyles(theme), disabled: !cameraPermissionGranted || !hasCameras, errorMessage: props.cameraPermissionGranted === undefined || props.cameraPermissionGranted ? undefined : locale.strings.call.cameraPermissionDenied, defaultSelectedKey: micPermissionGranted ? props.selectedCamera ? props.selectedCamera.id : props.cameras ? (_a = props.cameras[0]) === null || _a === void 0 ? void 0 : _a.id : '' : 'deniedOrUnknown', onChange: (event, option, index) => __awaiter$e(void 0, void 0, void 0, function* () {
|
@@ -33925,7 +33914,7 @@ const LocalDeviceSettings = (props) => {
|
|
33925
33914
|
console.error('No cameras available');
|
33926
33915
|
}
|
33927
33916
|
}), onRenderTitle: (props) => onRenderTitle('Camera', props) });
|
33928
|
-
const micGrantedDropdown = React.createElement(React.Fragment, null, roleCanUseMic && React.createElement(react.Dropdown, { "aria-labelledby": soundLabelId, placeholder: hasMicrophones ? defaultPlaceHolder : noMicLabel, styles: dropDownStyles(theme), disabled: !micPermissionGranted || !hasMicrophones, errorMessage: props.microphonePermissionGranted === undefined || props.microphonePermissionGranted ? undefined : locale.strings.call.microphonePermissionDenied, options: micPermissionGranted ?
|
33917
|
+
const micGrantedDropdown = React.createElement(React.Fragment, null, roleCanUseMic && React.createElement(react.Dropdown, { "aria-labelledby": soundLabelId, placeholder: hasMicrophones ? defaultPlaceHolder : noMicLabel, styles: dropDownStyles(theme), disabled: !micPermissionGranted || !hasMicrophones, errorMessage: props.microphonePermissionGranted === undefined || props.microphonePermissionGranted ? undefined : locale.strings.call.microphonePermissionDenied, options: micPermissionGranted ? getDropDownList(props.microphones) : [{
|
33929
33918
|
key: 'deniedOrUnknown',
|
33930
33919
|
text: ''
|
33931
33920
|
}], defaultSelectedKey: micPermissionGranted ? props.selectedMicrophone ? props.selectedMicrophone.id : defaultDeviceId(props.microphones) : 'deniedOrUnknown', onChange: (event, option, index) => {
|
@@ -33937,7 +33926,7 @@ const LocalDeviceSettings = (props) => {
|
|
33937
33926
|
console.error('No microphones available');
|
33938
33927
|
}
|
33939
33928
|
}, onRenderTitle: (props) => onRenderTitle('Microphone', props) }));
|
33940
|
-
const speakerDropdown = React.createElement(react.Dropdown, { "aria-labelledby": soundLabelId, placeholder: hasSpeakers ? defaultPlaceHolder : noSpeakersLabel, styles: dropDownStyles(theme), disabled: props.speakers.length === 0, options:
|
33929
|
+
const speakerDropdown = React.createElement(react.Dropdown, { "aria-labelledby": soundLabelId, placeholder: hasSpeakers ? defaultPlaceHolder : noSpeakersLabel, styles: dropDownStyles(theme), disabled: props.speakers.length === 0, options: getDropDownList(props.speakers), defaultSelectedKey: props.selectedSpeaker ? props.selectedSpeaker.id : defaultDeviceId(props.speakers), onChange: (event, option, index) => {
|
33941
33930
|
const speaker = props.speakers[index !== null && index !== void 0 ? index : 0];
|
33942
33931
|
if (speaker) {
|
33943
33932
|
props.onSelectSpeaker(speaker);
|