@azure/communication-react 1.8.1-alpha-202309290012 → 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 +34 -18
- 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/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]);
|
@@ -27928,7 +27944,7 @@ const CallReadinessModal = (props) => {
|
|
27928
27944
|
main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
|
27929
27945
|
}, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
27930
27946
|
setIsPermissionsModalDismissed(false);
|
27931
|
-
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.
|
27947
|
+
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.4)' } } } }, modal()));
|
27932
27948
|
}
|
27933
27949
|
else {
|
27934
27950
|
return React__default["default"].createElement(React__default["default"].Fragment, null);
|
@@ -28006,7 +28022,7 @@ const CallReadinessModalFallBack = (props) => {
|
|
28006
28022
|
main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
|
28007
28023
|
}, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
28008
28024
|
setIsPermissionsModalDismissed(false);
|
28009
|
-
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.
|
28025
|
+
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.4)' } } } },
|
28010
28026
|
React__default["default"].createElement(CameraAndMicrophoneSitePermissions, { appName: 'app',
|
28011
28027
|
/* @conditional-compile-remove(unsupported-browser) */
|
28012
28028
|
browserHint: isSafari ? 'safari' : 'unset', onTroubleshootingClick: onPermissionsTroubleshootingClick
|
@@ -28019,7 +28035,7 @@ const CallReadinessModalFallBack = (props) => {
|
|
28019
28035
|
main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
|
28020
28036
|
}, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
28021
28037
|
setIsPermissionsModalDismissed(false);
|
28022
|
-
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.
|
28038
|
+
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.4)' } } } }, modal()))));
|
28023
28039
|
}
|
28024
28040
|
};
|
28025
28041
|
|