@azure/communication-react 1.8.1-alpha-202309270012 → 1.8.1-alpha-202309290012

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 (23) hide show
  1. package/dist/dist-cjs/communication-react/index.js +51 -34
  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/ParticipantList.js +1 -6
  6. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  7. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +17 -7
  8. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  9. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +3 -0
  10. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +11 -11
  11. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  12. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +2 -2
  13. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  14. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +4 -0
  15. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +10 -3
  16. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  17. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js +4 -2
  18. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
  19. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js +2 -1
  20. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
  21. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +4 -4
  22. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  23. 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-202309270012';
179
+ var telemetryVersion = '1.8.1-alpha-202309290012';
180
180
 
181
181
  // Copyright (c) Microsoft Corporation.
182
182
  /**
@@ -11259,12 +11259,7 @@ const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvat
11259
11259
  const callingParticipant = participant;
11260
11260
  let presence = undefined;
11261
11261
  if (callingParticipant) {
11262
- if (callingParticipant.state === 'Connected') {
11263
- presence = react.PersonaPresence.online;
11264
- }
11265
- else if (callingParticipant.state === 'Idle') {
11266
- presence = react.PersonaPresence.away;
11267
- }
11262
+ presence = react.PersonaPresence.none;
11268
11263
  }
11269
11264
  const menuItems = createParticipantMenuItems && createParticipantMenuItems(participant);
11270
11265
  const onRenderIcon = (callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.isScreenSharing) ||
@@ -24256,7 +24251,7 @@ const DesktopMoreButton = (props) => {
24256
24251
  }
24257
24252
  };
24258
24253
  /* @conditional-compile-remove(large-gallery) */
24259
- const largeGalleryOptions = {
24254
+ const largeGalleryOption = {
24260
24255
  key: 'largeGallerySelectionKey',
24261
24256
  text: localeStrings.strings.call.moreButtonLargeGalleryDefaultLayoutLabel,
24262
24257
  canCheck: true,
@@ -24274,7 +24269,7 @@ const DesktopMoreButton = (props) => {
24274
24269
  }
24275
24270
  };
24276
24271
  /* @conditional-compile-remove(gallery-layouts) */
24277
- const overflowGalleryOptions = {
24272
+ const overflowGalleryOption = {
24278
24273
  key: 'topKey',
24279
24274
  text: localeStrings.strings.call.moreButtonGalleryPositionToggleLabel,
24280
24275
  canCheck: true,
@@ -24299,9 +24294,9 @@ const DesktopMoreButton = (props) => {
24299
24294
  }
24300
24295
  };
24301
24296
  /* @conditional-compile-remove(large-gallery) */
24302
- (_c = (_b = galleryOptions.subMenuProps) === null || _b === void 0 ? void 0 : _b.items) === null || _c === void 0 ? void 0 : _c.push(largeGalleryOptions);
24297
+ (_c = (_b = galleryOptions.subMenuProps) === null || _b === void 0 ? void 0 : _b.items) === null || _c === void 0 ? void 0 : _c.push(largeGalleryOption);
24303
24298
  /* @conditional-compile-remove(gallery-layouts) */
24304
- (_e = (_d = galleryOptions.subMenuProps) === null || _d === void 0 ? void 0 : _d.items) === null || _e === void 0 ? void 0 : _e.push(overflowGalleryOptions);
24299
+ (_e = (_d = galleryOptions.subMenuProps) === null || _d === void 0 ? void 0 : _d.items) === null || _e === void 0 ? void 0 : _e.push(overflowGalleryOption);
24305
24300
  /* @conditional-compile-remove(gallery-layouts) */
24306
24301
  moreButtonContextualMenuItems.push(galleryOptions);
24307
24302
  }
@@ -27171,7 +27166,13 @@ const networkReconnectTileSelector = reselect__namespace.createSelector([getUser
27171
27166
  const CallPage = (props) => {
27172
27167
  const { callInvitationURL, onRenderAvatar, onFetchAvatarPersonaData, onFetchParticipantMenuItems, options, mobileView,
27173
27168
  /* @conditional-compile-remove(gallery-layouts) */
27174
- galleryLayout = 'floatingLocalVideo' } = props;
27169
+ galleryLayout = 'floatingLocalVideo',
27170
+ /* @conditional-compile-remove(gallery-layouts) */
27171
+ onUserSetGalleryLayoutChange,
27172
+ /* @conditional-compile-remove(gallery-layouts) */
27173
+ userSetOverflowGalleryPosition = 'Responsive',
27174
+ /* @conditional-compile-remove(gallery-layouts) */
27175
+ onSetUserSetOverflowGalleryPosition } = props;
27175
27176
  // To use useProps to get these states, we need to create another file wrapping Call,
27176
27177
  // It seems unnecessary in this case, so we get the updated states using this approach.
27177
27178
  const { callStatus } = useSelector$1(callStatusSelector);
@@ -27185,10 +27186,6 @@ const CallPage = (props) => {
27185
27186
  // Reduce the controls shown when mobile view is enabled.
27186
27187
  const callControlOptions = mobileView ? reduceCallControlsForMobile(options === null || options === void 0 ? void 0 : options.callControls) : options === null || options === void 0 ? void 0 : options.callControls;
27187
27188
  const drawerMenuHostId = reactHooks.useId('drawerMenuHost');
27188
- /* @conditional-compile-remove(gallery-layouts) */
27189
- const [userSetOverflowGalleryPosition, setUserSetOverflowGalleryPosition] = React.useState('Responsive');
27190
- /* @conditional-compile-remove(gallery-layouts) */
27191
- const [userSetGalleryLayout, setUserSetGalleryLayout] = React.useState(galleryLayout);
27192
27189
  return (React__default["default"].createElement(CallArrangement, { id: drawerMenuHostId, complianceBannerProps: Object.assign(Object.assign({}, complianceBannerProps), { strings }), errorBarProps: (options === null || options === void 0 ? void 0 : options.errorBar) !== false && errorBarProps, mutedNotificationProps: mutedNotificationProps, callControlProps: {
27193
27190
  callInvitationURL: callInvitationURL,
27194
27191
  onFetchParticipantMenuItems: onFetchParticipantMenuItems,
@@ -27204,13 +27201,13 @@ const CallPage = (props) => {
27204
27201
  /* @conditional-compile-remove(gallery-layouts) */
27205
27202
  userSetOverflowGalleryPosition: userSetOverflowGalleryPosition,
27206
27203
  /* @conditional-compile-remove(gallery-layouts) */
27207
- userSetGalleryLayout: userSetGalleryLayout }))) : (React__default["default"].createElement(NetworkReconnectTile, Object.assign({}, networkReconnectTileProps)))) : (React__default["default"].createElement(React__default["default"].Fragment, null)), updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, dataUiId: 'call-page', latestErrors: props.latestErrors, onDismissError: props.onDismissError,
27204
+ userSetGalleryLayout: galleryLayout }))) : (React__default["default"].createElement(NetworkReconnectTile, Object.assign({}, networkReconnectTileProps)))) : (React__default["default"].createElement(React__default["default"].Fragment, null)), updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, dataUiId: 'call-page', latestErrors: props.latestErrors, onDismissError: props.onDismissError,
27208
27205
  /* @conditional-compile-remove(gallery-layouts) */
27209
- onUserSetOverflowGalleryPositionChange: setUserSetOverflowGalleryPosition,
27206
+ onUserSetOverflowGalleryPositionChange: onSetUserSetOverflowGalleryPosition,
27210
27207
  /* @conditional-compile-remove(gallery-layouts) */
27211
- onUserSetGalleryLayoutChange: setUserSetGalleryLayout,
27208
+ onUserSetGalleryLayoutChange: onUserSetGalleryLayoutChange,
27212
27209
  /* @conditional-compile-remove(gallery-layouts) */
27213
- userSetGalleryLayout: userSetGalleryLayout,
27210
+ userSetGalleryLayout: galleryLayout,
27214
27211
  /* @conditional-compile-remove(capabilities) */
27215
27212
  capabilitiesChangedNotificationBarProps: props.capabilitiesChangedNotificationBarProps }));
27216
27213
  };
@@ -27242,7 +27239,7 @@ const dropDownStyles = (theme) => ({
27242
27239
  dropdownItem: {
27243
27240
  fontSize: '0.875rem',
27244
27241
  height: '2.5rem',
27245
- background: theme.palette.neutralQuaternaryAlt
27242
+ background: theme.palette.white
27246
27243
  },
27247
27244
  dropdown: {
27248
27245
  height: '2.5rem',
@@ -27254,7 +27251,9 @@ const dropDownStyles = (theme) => ({
27254
27251
  title: {
27255
27252
  fontSize: '0.875rem',
27256
27253
  height: '2.5rem',
27257
- lineHeight: '2.3125rem'
27254
+ lineHeight: '2.3125rem',
27255
+ borderRadius: '0.25rem',
27256
+ border: `1px solid ${theme.palette.neutralQuaternaryAlt}`
27258
27257
  },
27259
27258
  label: {
27260
27259
  fontWeight: 600,
@@ -27330,12 +27329,12 @@ const configurationStackTokensDesktop = {
27330
27329
  * @private
27331
27330
  */
27332
27331
  const configurationStackTokensMobile = {
27333
- childrenGap: '1rem'
27332
+ childrenGap: '1.5rem'
27334
27333
  };
27335
27334
  const configurationContainerStyle = {
27336
27335
  height: '100%',
27337
27336
  width: '100%',
27338
- padding: '0.5rem'
27337
+ padding: '2rem 1rem 2rem 1rem'
27339
27338
  };
27340
27339
  /**
27341
27340
  * @private
@@ -27414,7 +27413,14 @@ const startCallButtonContainerStyleMobile = {
27414
27413
  */
27415
27414
  const startCallButtonStyleMobile = react.mergeStyles({
27416
27415
  width: '100%',
27417
- maxWidth: 'unset'
27416
+ maxWidth: 'unset',
27417
+ borderRadius: '0.25rem'
27418
+ });
27419
+ /**
27420
+ * @private
27421
+ */
27422
+ const startCallButtonStyleDesktop = react.mergeStyles({
27423
+ borderRadius: '0.25rem'
27418
27424
  });
27419
27425
  /** @private */
27420
27426
  const cameraAndVideoEffectsContainerStyleDesktop = {
@@ -28187,7 +28193,7 @@ const ConfigurationPage = (props) => {
28187
28193
  /* @conditional-compile-remove(video-background-effects) */
28188
28194
  onClickVideoEffects: toggleVideoEffectsPane })))),
28189
28195
  React__default["default"].createElement(react.Stack, { styles: mobileWithPreview ? startCallButtonContainerStyleMobile : startCallButtonContainerStyleDesktop },
28190
- React__default["default"].createElement(StartCallButton, { className: mobileWithPreview ? startCallButtonStyleMobile : undefined, onClick: startCall, disabled: disableStartCallButton })))),
28196
+ React__default["default"].createElement(StartCallButton, { className: mobileWithPreview ? startCallButtonStyleMobile : startCallButtonStyleDesktop, onClick: startCall, disabled: disableStartCallButton })))),
28191
28197
  React__default["default"].createElement(react.Panel
28192
28198
  /* @conditional-compile-remove(video-background-effects) */
28193
28199
  , {
@@ -28234,7 +28240,8 @@ const containerItemGap = {
28234
28240
  */
28235
28241
  const rejoinCallButtonContainerStyles = {
28236
28242
  root: {
28237
- paddingTop: '1.125rem'
28243
+ paddingTop: '1.125rem',
28244
+ borderRadius: '0.25rem'
28238
28245
  }
28239
28246
  };
28240
28247
  /**
@@ -28894,7 +28901,7 @@ const isShowing = (overrideSidePane) => {
28894
28901
  return !!(overrideSidePane === null || overrideSidePane === void 0 ? void 0 : overrideSidePane.isActive);
28895
28902
  };
28896
28903
  const MainScreen = (props) => {
28897
- var _a, _b, _c, _d, _e, _f, _g;
28904
+ var _a, _b, _c, _d, _e, _f, _g, _h;
28898
28905
  const adapter = useAdapter();
28899
28906
  const { camerasCount, microphonesCount } = useSelector$1(deviceCountSelector);
28900
28907
  const hasCameras = camerasCount > 0;
@@ -28922,6 +28929,10 @@ const MainScreen = (props) => {
28922
28929
  const endedCall = useSelector$1(getEndedCall);
28923
28930
  const [sidePaneRenderer, setSidePaneRenderer] = React__default["default"].useState();
28924
28931
  const [injectedSidePaneProps, setInjectedSidePaneProps] = React__default["default"].useState();
28932
+ /* @conditional-compile-remove(gallery-layouts) */
28933
+ const [userSetGalleryLayout, setUserSetGalleryLayout] = React.useState((_c = (_b = (_a = props.options) === null || _a === void 0 ? void 0 : _a.galleryOptions) === null || _b === void 0 ? void 0 : _b.layout) !== null && _c !== void 0 ? _c : 'floatingLocalVideo');
28934
+ /* @conditional-compile-remove(gallery-layouts) */
28935
+ const [userSetOverflowGalleryPosition, setUserSetOverflowGalleryPosition] = React.useState('Responsive');
28925
28936
  const overridePropsRef = React.useRef(props.overrideSidePane);
28926
28937
  React.useEffect(() => {
28927
28938
  setInjectedSidePaneProps(props.overrideSidePane);
@@ -28971,11 +28982,11 @@ const MainScreen = (props) => {
28971
28982
  adapter.joinCall();
28972
28983
  }, updateSidePaneRenderer: setSidePaneRenderer, latestErrors: latestErrors, onDismissError: onDismissError, modalLayerHostId: props.modalLayerHostId,
28973
28984
  /* @conditional-compile-remove(call-readiness) */
28974
- deviceChecks: (_a = props.options) === null || _a === void 0 ? void 0 : _a.deviceChecks,
28985
+ deviceChecks: (_d = props.options) === null || _d === void 0 ? void 0 : _d.deviceChecks,
28975
28986
  /* @conditional-compile-remove(call-readiness) */
28976
- onPermissionsTroubleshootingClick: (_b = props.options) === null || _b === void 0 ? void 0 : _b.onPermissionsTroubleshootingClick,
28987
+ onPermissionsTroubleshootingClick: (_e = props.options) === null || _e === void 0 ? void 0 : _e.onPermissionsTroubleshootingClick,
28977
28988
  /* @conditional-compile-remove(call-readiness) */
28978
- onNetworkingTroubleShootingClick: (_c = props.options) === null || _c === void 0 ? void 0 : _c.onNetworkingTroubleShootingClick,
28989
+ onNetworkingTroubleShootingClick: (_f = props.options) === null || _f === void 0 ? void 0 : _f.onNetworkingTroubleShootingClick,
28979
28990
  /* @conditional-compile-remove(capabilities) */
28980
28991
  capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps }));
28981
28992
  break;
@@ -28989,7 +29000,7 @@ const MainScreen = (props) => {
28989
29000
  pageElement = (React__default["default"].createElement(NoticePage, { iconName: "NoticePageJoinCallFailedDueToNoNetwork", title: locale.strings.call.failedToJoinCallDueToNoNetworkTitle, moreDetails: locale.strings.call.failedToJoinCallDueToNoNetworkMoreDetails, dataUiId: 'join-call-failed-due-to-no-network-page' }));
28990
29001
  break;
28991
29002
  case 'leaving':
28992
- pageElement = (React__default["default"].createElement(NoticePage, { title: (_d = locale.strings.call.leavingCallTitle) !== null && _d !== void 0 ? _d : 'Leaving...', dataUiId: 'leaving-page', pageStyle: leavePageStyle, disableStartCallButton: true }));
29003
+ pageElement = (React__default["default"].createElement(NoticePage, { title: (_g = locale.strings.call.leavingCallTitle) !== null && _g !== void 0 ? _g : 'Leaving...', dataUiId: 'leaving-page', pageStyle: leavePageStyle, disableStartCallButton: true }));
28993
29004
  break;
28994
29005
  case 'leftCall': {
28995
29006
  const { title, moreDetails, disableStartCallButton } = getEndedCallStrings(locale, endedCall);
@@ -29010,7 +29021,13 @@ const MainScreen = (props) => {
29010
29021
  case 'call':
29011
29022
  pageElement = (React__default["default"].createElement(CallPage, { onRenderAvatar: onRenderAvatar, callInvitationURL: callInvitationUrl, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: latestErrors, onDismissError: onDismissError,
29012
29023
  /* @conditional-compile-remove(gallery-layouts) */
29013
- galleryLayout: ((_f = (_e = props.options) === null || _e === void 0 ? void 0 : _e.galleryOptions) === null || _f === void 0 ? void 0 : _f.layout) ? props.options.galleryOptions.layout : 'floatingLocalVideo',
29024
+ galleryLayout: userSetGalleryLayout,
29025
+ /* @conditional-compile-remove(gallery-layouts) */
29026
+ onUserSetGalleryLayoutChange: setUserSetGalleryLayout,
29027
+ /* @conditional-compile-remove(gallery-layouts) */
29028
+ onSetUserSetOverflowGalleryPosition: setUserSetOverflowGalleryPosition,
29029
+ /* @conditional-compile-remove(gallery-layouts) */
29030
+ userSetOverflowGalleryPosition: userSetOverflowGalleryPosition,
29014
29031
  /* @conditional-compile-remove(capabilities) */
29015
29032
  capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps }));
29016
29033
  break;
@@ -29026,7 +29043,7 @@ const MainScreen = (props) => {
29026
29043
  case 'unsupportedEnvironment':
29027
29044
  pageElement = (React__default["default"].createElement(React__default["default"].Fragment, null,
29028
29045
  /* @conditional-compile-remove(unsupported-browser) */
29029
- React__default["default"].createElement(UnsupportedBrowserPage, { onTroubleshootingClick: (_g = props.options) === null || _g === void 0 ? void 0 : _g.onEnvironmentInfoTroubleshootingClick, environmentInfo: adapter.getState().environmentInfo })));
29046
+ React__default["default"].createElement(UnsupportedBrowserPage, { onTroubleshootingClick: (_h = props.options) === null || _h === void 0 ? void 0 : _h.onEnvironmentInfoTroubleshootingClick, environmentInfo: adapter.getState().environmentInfo })));
29030
29047
  break;
29031
29048
  }
29032
29049
  if (!pageElement) {