@azure/communication-react 1.4.3-alpha-202301110013.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.
Files changed (22) hide show
  1. package/dist/dist-cjs/communication-react/index.js +33 -10
  2. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  3. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  5. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.d.ts +1 -0
  6. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js +18 -2
  7. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
  8. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.d.ts +4 -0
  9. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +1 -1
  10. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  11. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.d.ts +4 -0
  12. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +1 -1
  13. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  14. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +1 -1
  15. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  16. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +4 -2
  17. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  18. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +2 -1
  19. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
  20. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +6 -2
  21. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  22. 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-202301110013.0';
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 }, props.children);
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);
@@ -8156,7 +8172,8 @@ const useVideoTileContextualMenuProps = (props) => {
8156
8172
  },
8157
8173
  onClick: () => {
8158
8174
  view === null || view === void 0 ? void 0 : view.updateScalingMode('Fit');
8159
- }
8175
+ },
8176
+ 'data-ui-id': 'video-tile-fit-to-frame'
8160
8177
  });
8161
8178
  }
8162
8179
  else if (scalingMode === 'Fit' && (strings === null || strings === void 0 ? void 0 : strings.fillRemoteParticipantFrame)) {
@@ -8170,7 +8187,8 @@ const useVideoTileContextualMenuProps = (props) => {
8170
8187
  },
8171
8188
  onClick: () => {
8172
8189
  view === null || view === void 0 ? void 0 : view.updateScalingMode('Crop');
8173
- }
8190
+ },
8191
+ 'data-ui-id': 'video-tile-fill-frame'
8174
8192
  });
8175
8193
  }
8176
8194
  }
@@ -8634,7 +8652,7 @@ const _RemoteVideoTile = React__default['default'].memo((props) => {
8634
8652
  onLongTouch: () => setDrawerMenuItemProps(convertContextualMenuItemsToDrawerMenuItemProps(contextualMenuProps, () => setDrawerMenuItemProps([]))) })),
8635
8653
  drawerMenuItemProps.length > 0 && (React__default['default'].createElement(react.Layer, { hostId: props.drawerMenuHostId },
8636
8654
  React__default['default'].createElement(react.Stack, { styles: drawerMenuWrapperStyles },
8637
- React__default['default'].createElement(_DrawerMenu, { onLightDismiss: () => setDrawerMenuItemProps([]), items: drawerMenuItemProps }))))));
8655
+ React__default['default'].createElement(_DrawerMenu, { onLightDismiss: () => setDrawerMenuItemProps([]), items: drawerMenuItemProps, heading: remoteParticipant.displayName }))))));
8638
8656
  });
8639
8657
  const videoTileContextualMenuPropsTrampoline = (contextualMenuProps) => {
8640
8658
  if (!contextualMenuProps) {
@@ -12193,7 +12211,8 @@ const messageBarStyle = (theme, errorType) => ({
12193
12211
  },
12194
12212
  icon: {
12195
12213
  marginTop: '0.375rem',
12196
- marginBottom: '0.375rem'
12214
+ marginBottom: '0.375rem',
12215
+ paddingTop: '0.25rem'
12197
12216
  },
12198
12217
  content: {
12199
12218
  lineHeight: 'inherit'
@@ -15326,8 +15345,12 @@ const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$d(void 0, vo
15326
15345
  * @private
15327
15346
  */
15328
15347
  const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$d(void 0, void 0, void 0, function* () {
15329
- setVideoState(yield queryCameraPermissionFromPermissionsAPI());
15330
- setAudioState(yield queryMicrophonePermissionFromPermissionsAPI());
15348
+ const [cameraResult, microphoneResult] = yield Promise.all([
15349
+ queryCameraPermissionFromPermissionsAPI(),
15350
+ queryMicrophonePermissionFromPermissionsAPI()
15351
+ ]);
15352
+ setVideoState(cameraResult);
15353
+ setAudioState(microphoneResult);
15331
15354
  });
15332
15355
  /* @conditional-compile-remove(unsupported-browser) */
15333
15356
  const isUnsupportedEnvironment = (environmentInfo, unsupportedBrowserVersionOptedIn) => {