@azure/communication-react 1.8.1-alpha-202309280013 → 1.8.1-alpha-202309300012
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 +51 -25
- 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-components/src/components/Drawer/DrawerSurface.js +1 -2
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/TypingIndicator.js +5 -1
- package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js +9 -5
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.d.ts +9 -3
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +16 -7
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +2 -2
- 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 +4 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +10 -3
- 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.js +4 -2
- 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/NoticePage.styles.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
- package/package.json +8 -8
@@ -176,7 +176,7 @@ const _isValidIdentifier = (identifier) => {
|
|
176
176
|
// Copyright (c) Microsoft Corporation.
|
177
177
|
// Licensed under the MIT License.
|
178
178
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
179
|
-
var telemetryVersion = '1.8.1-alpha-
|
179
|
+
var telemetryVersion = '1.8.1-alpha-202309300012';
|
180
180
|
|
181
181
|
// Copyright (c) Microsoft Corporation.
|
182
182
|
/**
|
@@ -5085,7 +5085,11 @@ const MAXIMUM_LENGTH_OF_TYPING_USERS = 35;
|
|
5085
5085
|
const getUsersElement = (typingUsers, delimiter, onRenderUser, userDisplayNameStyles) => {
|
5086
5086
|
const userElements = [];
|
5087
5087
|
typingUsers.forEach((user, index) => {
|
5088
|
-
|
5088
|
+
let truncatedDisplayName = user.displayName;
|
5089
|
+
if (truncatedDisplayName && truncatedDisplayName.length > 50) {
|
5090
|
+
truncatedDisplayName = truncatedDisplayName.substring(0, 50) + '...';
|
5091
|
+
}
|
5092
|
+
userElements.push(onRenderUser ? (onRenderUser(user)) : (React__default["default"].createElement(react.Text, { className: react.mergeStyles(userDisplayNameStyles), key: `user-${index}` }, truncatedDisplayName)));
|
5089
5093
|
userElements.push(React__default["default"].createElement(react.Text, { key: `comma-${index}` }, `${delimiter}`));
|
5090
5094
|
});
|
5091
5095
|
// pop last comma
|
@@ -11555,8 +11559,7 @@ const focusTrapZoneStyles = {
|
|
11555
11559
|
};
|
11556
11560
|
const drawerContentContainerStyles = {
|
11557
11561
|
root: {
|
11558
|
-
|
11559
|
-
height: '100%'
|
11562
|
+
height: 'auto'
|
11560
11563
|
}
|
11561
11564
|
};
|
11562
11565
|
|
@@ -13003,11 +13006,11 @@ const localVideoTileContainerStyle = (theme, localVideoTileSizeRem, screenShareP
|
|
13003
13006
|
minWidth: screenSharePresent ? '' : `${localVideoTileSizeRem.width}rem`,
|
13004
13007
|
minHeight: screenSharePresent ? '' : `${localVideoTileSizeRem.height}rem`,
|
13005
13008
|
position: 'absolute',
|
13006
|
-
bottom: overflowGalleryPosition !== 'HorizontalTop' ? `${
|
13007
|
-
top: overflowGalleryPosition === 'HorizontalTop' ? `${
|
13009
|
+
bottom: overflowGalleryPosition !== 'HorizontalTop' ? `${dockedlocalVideoTileContainerPaddingRem}rem` : 'unset',
|
13010
|
+
top: overflowGalleryPosition === 'HorizontalTop' ? `${dockedlocalVideoTileContainerPaddingRem}rem` : 'unset',
|
13008
13011
|
borderRadius: theme.effects.roundedCorner4,
|
13009
13012
|
overflow: 'hidden',
|
13010
|
-
right: `${
|
13013
|
+
right: `${dockedlocalVideoTileContainerPaddingRem}rem`
|
13011
13014
|
};
|
13012
13015
|
};
|
13013
13016
|
/**
|
@@ -13023,7 +13026,10 @@ const localVideoTileWithControlsContainerStyle = (theme, localVideoTileSizeRem)
|
|
13023
13026
|
*/
|
13024
13027
|
const floatingLocalVideoModalStyle = (theme, modalSizeRem) => {
|
13025
13028
|
return react.concatStyleSets({
|
13026
|
-
main: localVideoTileContainerStyle(theme, modalSizeRem)
|
13029
|
+
main: react.mergeStyles(localVideoTileContainerStyle(theme, modalSizeRem), {
|
13030
|
+
bottom: `${floatinglocalVideoModalInitialPositionGapRem}rem`,
|
13031
|
+
right: `${floatinglocalVideoModalInitialPositionGapRem}rem`
|
13032
|
+
})
|
13027
13033
|
}, {
|
13028
13034
|
main: {
|
13029
13035
|
boxShadow: theme.effects.elevation8,
|
@@ -13035,11 +13041,17 @@ const floatingLocalVideoModalStyle = (theme, modalSizeRem) => {
|
|
13035
13041
|
}, localVideoModalStyles);
|
13036
13042
|
};
|
13037
13043
|
/**
|
13038
|
-
*
|
13039
|
-
*
|
13044
|
+
* Initial position gap of the floating local video modal.
|
13045
|
+
* ie. if this is 1rem, then floating local video modal would initially be positioned 1rem from
|
13046
|
+
* the bottom and 1rem from the right.
|
13047
|
+
* @private
|
13048
|
+
*/
|
13049
|
+
const floatinglocalVideoModalInitialPositionGapRem = 1;
|
13050
|
+
/**
|
13051
|
+
* Padding of the docked local video tile container.
|
13040
13052
|
* @private
|
13041
13053
|
*/
|
13042
|
-
const
|
13054
|
+
const dockedlocalVideoTileContainerPaddingRem = 0.5;
|
13043
13055
|
/**
|
13044
13056
|
* @private
|
13045
13057
|
*/
|
@@ -14386,8 +14398,8 @@ const DRAG_OPTIONS$1 = {
|
|
14386
14398
|
// Because our modal starts in the bottom right corner, we can say that this is the max (i.e. rightmost and bottomost)
|
14387
14399
|
// position the modal can be dragged to.
|
14388
14400
|
const modalMaxDragPosition = {
|
14389
|
-
x: _convertRemToPx(
|
14390
|
-
y: _convertRemToPx(
|
14401
|
+
x: _convertRemToPx(floatinglocalVideoModalInitialPositionGapRem),
|
14402
|
+
y: _convertRemToPx(floatinglocalVideoModalInitialPositionGapRem)
|
14391
14403
|
};
|
14392
14404
|
/**
|
14393
14405
|
* @private
|
@@ -14401,8 +14413,12 @@ const FloatingLocalVideo = (props) => {
|
|
14401
14413
|
? {
|
14402
14414
|
// We use -parentWidth/Height because our modal is positioned to start in the bottom right,
|
14403
14415
|
// hence (0,0) is the bottom right of the video gallery.
|
14404
|
-
x: -parentWidth +
|
14405
|
-
|
14416
|
+
x: -parentWidth +
|
14417
|
+
_convertRemToPx(localVideoSizeRem.width) +
|
14418
|
+
_convertRemToPx(floatinglocalVideoModalInitialPositionGapRem),
|
14419
|
+
y: -parentHeight +
|
14420
|
+
_convertRemToPx(localVideoSizeRem.height) +
|
14421
|
+
_convertRemToPx(floatinglocalVideoModalInitialPositionGapRem)
|
14406
14422
|
}
|
14407
14423
|
: undefined, [parentHeight, parentWidth, localVideoSizeRem.width, localVideoSizeRem.height]);
|
14408
14424
|
const modalStyles = React.useMemo(() => floatingLocalVideoModalStyle(theme, localVideoSizeRem), [theme, localVideoSizeRem]);
|
@@ -27239,7 +27255,7 @@ const dropDownStyles = (theme) => ({
|
|
27239
27255
|
dropdownItem: {
|
27240
27256
|
fontSize: '0.875rem',
|
27241
27257
|
height: '2.5rem',
|
27242
|
-
background: theme.palette.
|
27258
|
+
background: theme.palette.white
|
27243
27259
|
},
|
27244
27260
|
dropdown: {
|
27245
27261
|
height: '2.5rem',
|
@@ -27251,7 +27267,9 @@ const dropDownStyles = (theme) => ({
|
|
27251
27267
|
title: {
|
27252
27268
|
fontSize: '0.875rem',
|
27253
27269
|
height: '2.5rem',
|
27254
|
-
lineHeight: '2.3125rem'
|
27270
|
+
lineHeight: '2.3125rem',
|
27271
|
+
borderRadius: '0.25rem',
|
27272
|
+
border: `1px solid ${theme.palette.neutralQuaternaryAlt}`
|
27255
27273
|
},
|
27256
27274
|
label: {
|
27257
27275
|
fontWeight: 600,
|
@@ -27327,12 +27345,12 @@ const configurationStackTokensDesktop = {
|
|
27327
27345
|
* @private
|
27328
27346
|
*/
|
27329
27347
|
const configurationStackTokensMobile = {
|
27330
|
-
childrenGap: '
|
27348
|
+
childrenGap: '1.5rem'
|
27331
27349
|
};
|
27332
27350
|
const configurationContainerStyle = {
|
27333
27351
|
height: '100%',
|
27334
27352
|
width: '100%',
|
27335
|
-
padding: '
|
27353
|
+
padding: '2rem 1rem 2rem 1rem'
|
27336
27354
|
};
|
27337
27355
|
/**
|
27338
27356
|
* @private
|
@@ -27411,7 +27429,14 @@ const startCallButtonContainerStyleMobile = {
|
|
27411
27429
|
*/
|
27412
27430
|
const startCallButtonStyleMobile = react.mergeStyles({
|
27413
27431
|
width: '100%',
|
27414
|
-
maxWidth: 'unset'
|
27432
|
+
maxWidth: 'unset',
|
27433
|
+
borderRadius: '0.25rem'
|
27434
|
+
});
|
27435
|
+
/**
|
27436
|
+
* @private
|
27437
|
+
*/
|
27438
|
+
const startCallButtonStyleDesktop = react.mergeStyles({
|
27439
|
+
borderRadius: '0.25rem'
|
27415
27440
|
});
|
27416
27441
|
/** @private */
|
27417
27442
|
const cameraAndVideoEffectsContainerStyleDesktop = {
|
@@ -27919,7 +27944,7 @@ const CallReadinessModal = (props) => {
|
|
27919
27944
|
main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
|
27920
27945
|
}, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
27921
27946
|
setIsPermissionsModalDismissed(false);
|
27922
|
-
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.
|
27947
|
+
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.4)' } } } }, modal()));
|
27923
27948
|
}
|
27924
27949
|
else {
|
27925
27950
|
return React__default["default"].createElement(React__default["default"].Fragment, null);
|
@@ -27997,7 +28022,7 @@ const CallReadinessModalFallBack = (props) => {
|
|
27997
28022
|
main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
|
27998
28023
|
}, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
27999
28024
|
setIsPermissionsModalDismissed(false);
|
28000
|
-
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.
|
28025
|
+
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.4)' } } } },
|
28001
28026
|
React__default["default"].createElement(CameraAndMicrophoneSitePermissions, { appName: 'app',
|
28002
28027
|
/* @conditional-compile-remove(unsupported-browser) */
|
28003
28028
|
browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick
|
@@ -28010,7 +28035,7 @@ const CallReadinessModalFallBack = (props) => {
|
|
28010
28035
|
main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
|
28011
28036
|
}, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
28012
28037
|
setIsPermissionsModalDismissed(false);
|
28013
|
-
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.
|
28038
|
+
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.4)' } } } }, modal()))));
|
28014
28039
|
}
|
28015
28040
|
};
|
28016
28041
|
|
@@ -28184,7 +28209,7 @@ const ConfigurationPage = (props) => {
|
|
28184
28209
|
/* @conditional-compile-remove(video-background-effects) */
|
28185
28210
|
onClickVideoEffects: toggleVideoEffectsPane })))),
|
28186
28211
|
React__default["default"].createElement(react.Stack, { styles: mobileWithPreview ? startCallButtonContainerStyleMobile : startCallButtonContainerStyleDesktop },
|
28187
|
-
React__default["default"].createElement(StartCallButton, { className: mobileWithPreview ? startCallButtonStyleMobile :
|
28212
|
+
React__default["default"].createElement(StartCallButton, { className: mobileWithPreview ? startCallButtonStyleMobile : startCallButtonStyleDesktop, onClick: startCall, disabled: disableStartCallButton })))),
|
28188
28213
|
React__default["default"].createElement(react.Panel
|
28189
28214
|
/* @conditional-compile-remove(video-background-effects) */
|
28190
28215
|
, {
|
@@ -28231,7 +28256,8 @@ const containerItemGap = {
|
|
28231
28256
|
*/
|
28232
28257
|
const rejoinCallButtonContainerStyles = {
|
28233
28258
|
root: {
|
28234
|
-
paddingTop: '1.125rem'
|
28259
|
+
paddingTop: '1.125rem',
|
28260
|
+
borderRadius: '0.25rem'
|
28235
28261
|
}
|
28236
28262
|
};
|
28237
28263
|
/**
|