@azure/communication-react 1.4.3-alpha-202301120014.0 → 1.4.3-alpha-202301130014.0
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 +29 -8
- 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/DrawerContentContainer.d.ts +1 -0
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js +18 -2
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +1 -1
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +1 -1
- package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +2 -1
- package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/package.json +8 -8
@@ -158,7 +158,7 @@ const _toCommunicationIdentifier = (id) => {
|
|
158
158
|
// Copyright (c) Microsoft Corporation.
|
159
159
|
// Licensed under the MIT license.
|
160
160
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
161
|
-
var telemetryVersion = '1.4.3-alpha-
|
161
|
+
var telemetryVersion = '1.4.3-alpha-202301130014.0';
|
162
162
|
|
163
163
|
// Copyright (c) Microsoft Corporation.
|
164
164
|
/**
|
@@ -7893,9 +7893,25 @@ const DrawerContentContainer = (props) => {
|
|
7893
7893
|
const backgroundColor = theme.palette.white;
|
7894
7894
|
const borderRadius = theme.effects.roundedCorner4;
|
7895
7895
|
const rootStyles = react.mergeStyles(containerStyles$4(backgroundColor, borderRadius), (_a = props.styles) === null || _a === void 0 ? void 0 : _a.root);
|
7896
|
-
return React__default['default'].createElement(react.Stack, { className: rootStyles },
|
7896
|
+
return (React__default['default'].createElement(react.Stack, { className: rootStyles },
|
7897
|
+
props.heading && (React__default['default'].createElement(react.Stack, { className: react.mergeStyles(headingContainerStyles) },
|
7898
|
+
React__default['default'].createElement(react.Text, { className: react.mergeStyles(headingStyles(theme)) }, props.heading))),
|
7899
|
+
props.children));
|
7897
7900
|
};
|
7898
7901
|
const containerStyles$4 = (backgroundColor, borderRadius) => (Object.assign({ background: backgroundColor, borderTopRightRadius: borderRadius, borderTopLeftRadius: borderRadius }, react.AnimationStyles.slideUpIn10));
|
7902
|
+
const headingContainerStyles = {
|
7903
|
+
textAlign: 'center',
|
7904
|
+
width: '100%',
|
7905
|
+
padding: '0.5rem'
|
7906
|
+
};
|
7907
|
+
const headingStyles = (theme) => ({
|
7908
|
+
color: theme.palette.neutralSecondary,
|
7909
|
+
fontSize: theme.fonts.smallPlus.fontSize,
|
7910
|
+
lineHeight: '1rem',
|
7911
|
+
whiteSpace: 'nowrap',
|
7912
|
+
overflow: 'hidden',
|
7913
|
+
textOverflow: 'ellipsis'
|
7914
|
+
});
|
7899
7915
|
|
7900
7916
|
// Copyright (c) Microsoft Corporation.
|
7901
7917
|
/**
|
@@ -7929,7 +7945,7 @@ const _DrawerSurface = (props) => {
|
|
7929
7945
|
// Ensure when the focus trap has focus, the light dismiss area can still be clicked with mouse to dismiss.
|
7930
7946
|
// Note: this still correctly captures keyboard focus, this just allows mouse click outside of the focus trap.
|
7931
7947
|
isClickableOutsideFocusTrap: true },
|
7932
|
-
React__default['default'].createElement(DrawerContentContainer, { styles: (_c = props.styles) === null || _c === void 0 ? void 0 : _c.drawerContentContainer }, props.children))));
|
7948
|
+
React__default['default'].createElement(DrawerContentContainer, { styles: (_c = props.styles) === null || _c === void 0 ? void 0 : _c.drawerContentContainer, heading: props.heading }, props.children))));
|
7933
7949
|
};
|
7934
7950
|
const drawerSurfaceStyles = {
|
7935
7951
|
width: '100%',
|
@@ -7976,7 +7992,7 @@ const _DrawerMenu = (props) => {
|
|
7976
7992
|
borderTopLeftRadius: borderRadius
|
7977
7993
|
}
|
7978
7994
|
}), [firstItemStyle, borderRadius]);
|
7979
|
-
return (React__default['default'].createElement(_DrawerSurface, { styles: (_b = props.styles) === null || _b === void 0 ? void 0 : _b.drawerSurfaceStyles, onLightDismiss: props.onLightDismiss },
|
7995
|
+
return (React__default['default'].createElement(_DrawerSurface, { styles: (_b = props.styles) === null || _b === void 0 ? void 0 : _b.drawerSurfaceStyles, onLightDismiss: props.onLightDismiss, heading: props.heading },
|
7980
7996
|
React__default['default'].createElement(react.Stack, { styles: props.styles, role: "menu", "data-ui-id": "drawer-menu" }, menuItemsToRender === null || menuItemsToRender === void 0 ? void 0 :
|
7981
7997
|
menuItemsToRender.slice(0, 1).map((item) => (React__default['default'].createElement(DrawerMenuItem, Object.assign({}, item, { key: '0', styles: modifiedFirstItemStyle, onItemClick: (ev, itemKey) => {
|
7982
7998
|
onItemClick(item, ev, itemKey);
|
@@ -8636,7 +8652,7 @@ const _RemoteVideoTile = React__default['default'].memo((props) => {
|
|
8636
8652
|
onLongTouch: () => setDrawerMenuItemProps(convertContextualMenuItemsToDrawerMenuItemProps(contextualMenuProps, () => setDrawerMenuItemProps([]))) })),
|
8637
8653
|
drawerMenuItemProps.length > 0 && (React__default['default'].createElement(react.Layer, { hostId: props.drawerMenuHostId },
|
8638
8654
|
React__default['default'].createElement(react.Stack, { styles: drawerMenuWrapperStyles },
|
8639
|
-
React__default['default'].createElement(_DrawerMenu, { onLightDismiss: () => setDrawerMenuItemProps([]), items: drawerMenuItemProps }))))));
|
8655
|
+
React__default['default'].createElement(_DrawerMenu, { onLightDismiss: () => setDrawerMenuItemProps([]), items: drawerMenuItemProps, heading: remoteParticipant.displayName }))))));
|
8640
8656
|
});
|
8641
8657
|
const videoTileContextualMenuPropsTrampoline = (contextualMenuProps) => {
|
8642
8658
|
if (!contextualMenuProps) {
|
@@ -12195,7 +12211,8 @@ const messageBarStyle = (theme, errorType) => ({
|
|
12195
12211
|
},
|
12196
12212
|
icon: {
|
12197
12213
|
marginTop: '0.375rem',
|
12198
|
-
marginBottom: '0.375rem'
|
12214
|
+
marginBottom: '0.375rem',
|
12215
|
+
paddingTop: '0.25rem'
|
12199
12216
|
},
|
12200
12217
|
content: {
|
12201
12218
|
lineHeight: 'inherit'
|
@@ -15328,8 +15345,12 @@ const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$d(void 0, vo
|
|
15328
15345
|
* @private
|
15329
15346
|
*/
|
15330
15347
|
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$d(void 0, void 0, void 0, function* () {
|
15331
|
-
|
15332
|
-
|
15348
|
+
const [cameraResult, microphoneResult] = yield Promise.all([
|
15349
|
+
queryCameraPermissionFromPermissionsAPI(),
|
15350
|
+
queryMicrophonePermissionFromPermissionsAPI()
|
15351
|
+
]);
|
15352
|
+
setVideoState(cameraResult);
|
15353
|
+
setAudioState(microphoneResult);
|
15333
15354
|
});
|
15334
15355
|
/* @conditional-compile-remove(unsupported-browser) */
|
15335
15356
|
const isUnsupportedEnvironment = (environmentInfo, unsupportedBrowserVersionOptedIn) => {
|