@azure/communication-react 1.9.0-alpha-202311010014 → 1.9.0-alpha-202311020014
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 +69 -22
- 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 +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +8 -7
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +12 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +42 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js +13 -10
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
- package/package.json +1 -1
@@ -177,7 +177,7 @@ const _isValidIdentifier = (identifier) => {
|
|
177
177
|
// Copyright (c) Microsoft Corporation.
|
178
178
|
// Licensed under the MIT License.
|
179
179
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
180
|
-
var telemetryVersion = '1.9.0-alpha-
|
180
|
+
var telemetryVersion = '1.9.0-alpha-202311020014';
|
181
181
|
|
182
182
|
// Copyright (c) Microsoft Corporation.
|
183
183
|
/**
|
@@ -27786,27 +27786,34 @@ const isNetworkHealthy = (value) => {
|
|
27786
27786
|
};
|
27787
27787
|
|
27788
27788
|
// Copyright (c) Microsoft Corporation.
|
27789
|
+
const DROPDOWN_HEIGHT_REM = 2.25;
|
27789
27790
|
/**
|
27790
27791
|
* @private
|
27791
27792
|
*/
|
27792
27793
|
const mainStackTokens = {
|
27793
|
-
childrenGap: '
|
27794
|
+
childrenGap: '0.5rem'
|
27795
|
+
};
|
27796
|
+
/**
|
27797
|
+
* @private
|
27798
|
+
*/
|
27799
|
+
const soundStackTokens = {
|
27800
|
+
childrenGap: '0.5rem'
|
27794
27801
|
};
|
27795
27802
|
/**
|
27796
27803
|
* @private
|
27797
27804
|
*/
|
27798
27805
|
const dropDownStyles = (theme) => ({
|
27799
27806
|
caretDownWrapper: {
|
27800
|
-
height:
|
27801
|
-
lineHeight:
|
27807
|
+
height: `${DROPDOWN_HEIGHT_REM}rem`,
|
27808
|
+
lineHeight: `${DROPDOWN_HEIGHT_REM}rem`
|
27802
27809
|
},
|
27803
27810
|
dropdownItem: {
|
27804
27811
|
fontSize: '0.875rem',
|
27805
|
-
height:
|
27812
|
+
height: `${DROPDOWN_HEIGHT_REM}rem`,
|
27806
27813
|
background: theme.palette.white
|
27807
27814
|
},
|
27808
27815
|
dropdown: {
|
27809
|
-
height:
|
27816
|
+
height: `${DROPDOWN_HEIGHT_REM}rem`,
|
27810
27817
|
width: '100%',
|
27811
27818
|
svg: {
|
27812
27819
|
verticalAlign: 'top'
|
@@ -27814,14 +27821,16 @@ const dropDownStyles = (theme) => ({
|
|
27814
27821
|
},
|
27815
27822
|
title: {
|
27816
27823
|
fontSize: '0.875rem',
|
27817
|
-
height:
|
27818
|
-
lineHeight: '
|
27824
|
+
height: `${DROPDOWN_HEIGHT_REM}rem`,
|
27825
|
+
lineHeight: '2rem',
|
27819
27826
|
borderRadius: '0.25rem',
|
27820
27827
|
border: `1px solid ${theme.palette.neutralQuaternaryAlt}`
|
27821
27828
|
},
|
27822
27829
|
label: {
|
27823
27830
|
fontWeight: 600,
|
27824
|
-
fontSize: '0.875rem'
|
27831
|
+
fontSize: '0.875rem',
|
27832
|
+
// Add z-index to ensure labels are rendered above the configuration section background
|
27833
|
+
zIndex: 1
|
27825
27834
|
},
|
27826
27835
|
errorMessage: {
|
27827
27836
|
fontSize: '0.875rem'
|
@@ -27883,6 +27892,12 @@ const ConfigurationPageMicDropdown = (props) => {
|
|
27883
27892
|
};
|
27884
27893
|
|
27885
27894
|
// Copyright (c) Microsoft Corporation.
|
27895
|
+
/** @private */
|
27896
|
+
const CONFIGURATION_PAGE_SECTION_MIN_WIDTH_REM = 11;
|
27897
|
+
/** @private */
|
27898
|
+
const CONFIGURATION_PAGE_SECTION_MAX_WIDTH_REM = 20.625;
|
27899
|
+
/** @private */
|
27900
|
+
const CONFIGURATION_PAGE_SECTION_HEIGHT_REM = 13.625;
|
27886
27901
|
/**
|
27887
27902
|
* @private
|
27888
27903
|
*/
|
@@ -27915,11 +27930,40 @@ const configurationContainerStyle = (desktop, backgroundImageUrl) => ({
|
|
27915
27930
|
/**
|
27916
27931
|
* @private
|
27917
27932
|
*/
|
27918
|
-
const
|
27933
|
+
const configurationSectionStyle = {
|
27934
|
+
root: {
|
27935
|
+
width: '100%',
|
27936
|
+
minWidth: `${CONFIGURATION_PAGE_SECTION_MIN_WIDTH_REM}rem`,
|
27937
|
+
maxWidth: `${CONFIGURATION_PAGE_SECTION_MAX_WIDTH_REM}rem`
|
27938
|
+
}
|
27939
|
+
};
|
27940
|
+
/**
|
27941
|
+
* @private
|
27942
|
+
*/
|
27943
|
+
const selectionContainerStyle = (theme) => react.mergeStyles({
|
27919
27944
|
width: '100%',
|
27920
|
-
|
27921
|
-
|
27922
|
-
|
27945
|
+
height: `${CONFIGURATION_PAGE_SECTION_HEIGHT_REM}rem`,
|
27946
|
+
padding: '1rem',
|
27947
|
+
borderRadius: theme.effects.roundedCorner6,
|
27948
|
+
border: `0.0625rem solid ${theme.palette.neutralLight}`,
|
27949
|
+
boxShadow: theme.effects.elevation4,
|
27950
|
+
// Style the background of the container to have partial transparency.
|
27951
|
+
// Using `before:` pseudo-element to avoid having to wrap the content in an extra div.
|
27952
|
+
// Ideally rgba would be used but we cannot garauntee the format of theme.palette.white
|
27953
|
+
// to parse it correctly.
|
27954
|
+
position: 'relative',
|
27955
|
+
':before': {
|
27956
|
+
content: '""',
|
27957
|
+
position: 'absolute',
|
27958
|
+
top: 0,
|
27959
|
+
bottom: 0,
|
27960
|
+
left: 0,
|
27961
|
+
right: 0,
|
27962
|
+
zIndex: 0,
|
27963
|
+
background: theme.palette.white,
|
27964
|
+
opacity: 0.9,
|
27965
|
+
borderRadius: theme.effects.roundedCorner4
|
27966
|
+
}
|
27923
27967
|
});
|
27924
27968
|
/**
|
27925
27969
|
* @private
|
@@ -27989,7 +28033,9 @@ const startCallButtonStyleMobile = react.mergeStyles({
|
|
27989
28033
|
* @private
|
27990
28034
|
*/
|
27991
28035
|
const startCallButtonStyleDesktop = react.mergeStyles({
|
27992
|
-
borderRadius: '0.25rem'
|
28036
|
+
borderRadius: '0.25rem',
|
28037
|
+
width: 'auto',
|
28038
|
+
height: '2.25rem'
|
27993
28039
|
});
|
27994
28040
|
/** @private */
|
27995
28041
|
const cameraAndVideoEffectsContainerStyleDesktop = {
|
@@ -28187,7 +28233,7 @@ const LocalDeviceSettings = (props) => {
|
|
28187
28233
|
onClickEnableDevicePermission: props.onClickEnableDevicePermission }))),
|
28188
28234
|
React__default["default"].createElement(react.Stack, null,
|
28189
28235
|
React__default["default"].createElement(react.Label, { id: 'call-composite-local-sound-settings-label', className: react.mergeStyles(dropDownStyles(theme).label), disabled: !micPermissionGranted }, soundLabel),
|
28190
|
-
React__default["default"].createElement(react.Stack, { "data-ui-id": "call-composite-sound-settings", tokens:
|
28236
|
+
React__default["default"].createElement(react.Stack, { "data-ui-id": "call-composite-sound-settings", tokens: soundStackTokens },
|
28191
28237
|
React__default["default"].createElement(ConfigurationPageMicDropdown, { micGrantedDropdown: micGrantedDropdown, micPermissionGranted: micPermissionGranted !== null && micPermissionGranted !== void 0 ? micPermissionGranted : false,
|
28192
28238
|
/* @conditional-compile-remove(call-readiness) */
|
28193
28239
|
dropdownProps: dropdownProps,
|
@@ -28241,7 +28287,7 @@ const buttonWithIconStyles = {
|
|
28241
28287
|
const StartCallButton = (props) => {
|
28242
28288
|
const { rejoinCall } = props;
|
28243
28289
|
const locale = useLocale();
|
28244
|
-
return (React__default["default"].createElement(react.PrimaryButton, Object.assign({}, props, { "data-ui-id": "call-composite-start-call-button", className: react.mergeStyles(buttonStyle, props.className), styles: buttonWithIconStyles, text: rejoinCall ? locale.strings.call.rejoinCallButtonLabel : locale.strings.call.startCallButtonLabel, onRenderIcon: () => React__default["default"].createElement(reactIcons.Video20Filled, { className: videoCameraIconStyle }) })));
|
28290
|
+
return (React__default["default"].createElement(react.PrimaryButton, Object.assign({}, props, { "data-ui-id": "call-composite-start-call-button", className: react.mergeStyles(buttonStyle, props.className), styles: buttonWithIconStyles, text: rejoinCall ? locale.strings.call.rejoinCallButtonLabel : locale.strings.call.startCallButtonLabel, onRenderIcon: props.hideIcon ? undefined : () => React__default["default"].createElement(reactIcons.Video20Filled, { className: videoCameraIconStyle }) })));
|
28245
28291
|
};
|
28246
28292
|
|
28247
28293
|
// Copyright (c) Microsoft Corporation.
|
@@ -28277,7 +28323,7 @@ const localPreviewContainerStyle = {
|
|
28277
28323
|
/**
|
28278
28324
|
* @private
|
28279
28325
|
*/
|
28280
|
-
const localPreviewContainerStyleDesktop = react.mergeStyles(Object.assign(Object.assign({}, localPreviewContainerStyle), { width: '
|
28326
|
+
const localPreviewContainerStyleDesktop = react.mergeStyles(Object.assign(Object.assign({}, localPreviewContainerStyle), { width: '100%', height: `${CONFIGURATION_PAGE_SECTION_HEIGHT_REM}rem`, minWidth: `${CONFIGURATION_PAGE_SECTION_MIN_WIDTH_REM}rem`, maxWidth: `${CONFIGURATION_PAGE_SECTION_MAX_WIDTH_REM}rem` }));
|
28281
28327
|
/**
|
28282
28328
|
* @private
|
28283
28329
|
*/
|
@@ -28625,6 +28671,7 @@ const ConfigurationPage = (props) => {
|
|
28625
28671
|
/* @conditional-compile-remove(call-readiness) */ deviceChecks,
|
28626
28672
|
/* @conditional-compile-remove(call-readiness) */ onPermissionsTroubleshootingClick,
|
28627
28673
|
/* @conditional-compile-remove(call-readiness) */ onNetworkingTroubleShootingClick } = props;
|
28674
|
+
const theme = useTheme();
|
28628
28675
|
const options = useAdaptedSelector(getSelector$1(DevicesButton));
|
28629
28676
|
const localDeviceSettingsHandlers = useHandlers();
|
28630
28677
|
const { video: cameraPermissionGranted, audio: microphonePermissionGranted } = useSelector$1(devicePermissionSelector);
|
@@ -28770,11 +28817,11 @@ const ConfigurationPage = (props) => {
|
|
28770
28817
|
logo: props.logo }),
|
28771
28818
|
title,
|
28772
28819
|
callDescription),
|
28773
|
-
React__default["default"].createElement(react.Stack, { horizontal: !mobileWithPreview, horizontalAlign: mobileWithPreview ? 'stretch' : 'center', verticalFill: mobileWithPreview, tokens:
|
28820
|
+
React__default["default"].createElement(react.Stack, { horizontal: !mobileWithPreview, horizontalAlign: mobileWithPreview ? 'stretch' : 'center', verticalFill: mobileWithPreview, tokens: configurationStackTokensMobile },
|
28774
28821
|
localPreviewTrampoline(mobileWithPreview,
|
28775
28822
|
/* @conditional-compile-remove(rooms) */ !!(role === 'Consumer')),
|
28776
|
-
React__default["default"].createElement(react.Stack, {
|
28777
|
-
!mobileWithPreview && (React__default["default"].createElement(
|
28823
|
+
React__default["default"].createElement(react.Stack, { styles: mobileView ? undefined : configurationSectionStyle },
|
28824
|
+
!mobileWithPreview && (React__default["default"].createElement(react.Stack, { className: mobileView ? undefined : selectionContainerStyle(theme) },
|
28778
28825
|
React__default["default"].createElement(LocalDeviceSettings, Object.assign({}, options, localDeviceSettingsHandlers, { cameraPermissionGranted: cameraPermissionGrantedTrampoline(cameraPermissionGranted,
|
28779
28826
|
/* @conditional-compile-remove(call-readiness) */ videoState), microphonePermissionGranted: micPermissionGrantedTrampoline(microphonePermissionGranted,
|
28780
28827
|
/* @conditional-compile-remove(call-readiness) */ audioState),
|
@@ -28784,8 +28831,8 @@ const ConfigurationPage = (props) => {
|
|
28784
28831
|
},
|
28785
28832
|
/* @conditional-compile-remove(video-background-effects) */
|
28786
28833
|
onClickVideoEffects: toggleVideoEffectsPane })))),
|
28787
|
-
React__default["default"].createElement(react.Stack, { styles: mobileWithPreview ? startCallButtonContainerStyleMobile : startCallButtonContainerStyleDesktop },
|
28788
|
-
React__default["default"].createElement(StartCallButton, { className: mobileWithPreview ? startCallButtonStyleMobile : startCallButtonStyleDesktop, onClick: startCall, disabled: disableStartCallButton }))))),
|
28834
|
+
React__default["default"].createElement(react.Stack, { styles: mobileWithPreview ? startCallButtonContainerStyleMobile : startCallButtonContainerStyleDesktop, horizontalAlign: mobileWithPreview ? 'stretch' : 'end' },
|
28835
|
+
React__default["default"].createElement(StartCallButton, { className: mobileWithPreview ? startCallButtonStyleMobile : startCallButtonStyleDesktop, onClick: startCall, disabled: disableStartCallButton, hideIcon: true }))))),
|
28789
28836
|
React__default["default"].createElement(react.Panel
|
28790
28837
|
/* @conditional-compile-remove(video-background-effects) */
|
28791
28838
|
, {
|