@azure/communication-react 1.5.1-alpha-202304220013 → 1.5.1-alpha-202304250012

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.
@@ -162,7 +162,7 @@ const _toCommunicationIdentifier = (id) => {
162
162
  // Copyright (c) Microsoft Corporation.
163
163
  // Licensed under the MIT license.
164
164
  // GENERATED FILE. DO NOT EDIT MANUALLY.
165
- var telemetryVersion = '1.5.1-alpha-202304220013';
165
+ var telemetryVersion = '1.5.1-alpha-202304250012';
166
166
 
167
167
  // Copyright (c) Microsoft Corporation.
168
168
  /**
@@ -20414,6 +20414,17 @@ const CommonCallControlBar = (props) => {
20414
20414
  return React__default['default'].createElement(React__default['default'].Fragment, null);
20415
20415
  }
20416
20416
  const chatButton = props.chatAdapter ? (React__default['default'].createElement(ChatButtonWithUnreadMessagesBadge, { chatAdapter: props.chatAdapter, checked: props.chatButtonChecked, showLabel: options.displayType !== 'compact', isChatPaneVisible: (_a = props.chatButtonChecked) !== null && _a !== void 0 ? _a : false, onClick: props.onChatButtonClicked, disabled: props.disableButtonsForLobbyPage || isDisabled$2(options.chatButton), strings: chatButtonStrings, styles: commonButtonStyles, newMessageLabel: callWithChatStrings.chatButtonNewMessageNotificationLabel })) : (React__default['default'].createElement(React__default['default'].Fragment, null));
20417
+ /* @conditional-compile-remove(rooms) */
20418
+ const rolePermissions = _usePermissions();
20419
+ let screenShareButtonIsEnabled = isEnabled$1(options === null || options === void 0 ? void 0 : options.screenShareButton);
20420
+ /* @conditional-compile-remove(rooms) */
20421
+ screenShareButtonIsEnabled = rolePermissions.screenShare && screenShareButtonIsEnabled;
20422
+ let microphoneButtonIsEnabled = isEnabled$1(options === null || options === void 0 ? void 0 : options.microphoneButton);
20423
+ /* @conditional-compile-remove(rooms) */
20424
+ microphoneButtonIsEnabled = rolePermissions.microphoneButton && microphoneButtonIsEnabled;
20425
+ let cameraButtonIsEnabled = isEnabled$1(options === null || options === void 0 ? void 0 : options.cameraButton);
20426
+ /* @conditional-compile-remove(rooms) */
20427
+ cameraButtonIsEnabled = rolePermissions.cameraButton && cameraButtonIsEnabled;
20417
20428
  return (React__default['default'].createElement("div", { ref: controlBarSizeRef },
20418
20429
  React__default['default'].createElement(CallAdapterProvider, { adapter: props.callAdapter },
20419
20430
  /* @conditional-compile-remove(close-captions) */ showCaptionsSettingsModal && (React__default['default'].createElement(CaptionsSettingsModal, { showCaptionsSettingsModal: showCaptionsSettingsModal, onDismissCaptionsSettings: onDismissCaptionsSettings }))),
@@ -20425,16 +20436,16 @@ const CommonCallControlBar = (props) => {
20425
20436
  React__default['default'].createElement(react.Stack.Item, null,
20426
20437
  React__default['default'].createElement("div", { ref: controlBarContainerRef },
20427
20438
  React__default['default'].createElement(ControlBar, { layout: "horizontal", styles: centerContainerStyles },
20428
- isEnabled$1(options.microphoneButton) && (React__default['default'].createElement(Microphone, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
20439
+ microphoneButtonIsEnabled && (React__default['default'].createElement(Microphone, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
20429
20440
  /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
20430
20441
  disabled: props.disableButtonsForHoldScreen || isDisabled$2(options.microphoneButton) })),
20431
- isEnabled$1(options.cameraButton) && (React__default['default'].createElement(Camera, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
20442
+ cameraButtonIsEnabled && (React__default['default'].createElement(Camera, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
20432
20443
  /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
20433
20444
  disabled: props.disableButtonsForHoldScreen || isDisabled$2(options.cameraButton),
20434
20445
  /* @conditional-compile-remove(video-background-effects) */
20435
20446
  onShowVideoEffectsPicker: props.onShowVideoEffectsPicker })),
20436
20447
  props.mobileView && isEnabled$1(options === null || options === void 0 ? void 0 : options.chatButton) && chatButton,
20437
- isEnabled$1(options.screenShareButton) && (React__default['default'].createElement(ScreenShare, { option: options.screenShareButton, displayType: options.displayType, styles: screenShareButtonStyles,
20448
+ screenShareButtonIsEnabled && (React__default['default'].createElement(ScreenShare, { option: options.screenShareButton, displayType: options.displayType, styles: screenShareButtonStyles,
20438
20449
  /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
20439
20450
  disabled: props.disableButtonsForHoldScreen || isDisabled$2(options.screenShareButton) })),
20440
20451
  /* @conditional-compile-remove(control-bar-button-injection) */
@@ -22011,7 +22022,11 @@ const VideoEffectsPaneTrampoline = (showVideoEffectsOptions, setshowVideoEffects
22011
22022
  /* @conditional-compile-remove(video-background-effects) */
22012
22023
  const selectedEffect = useSelector$1(activeVideoBackgroundEffectSelector);
22013
22024
  /* @conditional-compile-remove(video-background-effects) */
22014
- return (React__default['default'].createElement(react.Panel, { headerText: locale.strings.call.effects, isOpen: showVideoEffectsOptions, onDismiss: () => setshowVideoEffectsOptions(false), hasCloseButton: true, closeButtonAriaLabel: "Close", isLightDismiss: true }, selectableVideoEffects && (React__default['default'].createElement(_VideoBackgroundEffectsPicker, { options: selectableVideoEffects, onChange: onEffectChange, selectedEffectKey: selectedEffect }))));
22025
+ const headerStyles = {
22026
+ zIndex: 0
22027
+ };
22028
+ /* @conditional-compile-remove(video-background-effects) */
22029
+ return (React__default['default'].createElement(react.Panel, { headerText: locale.strings.call.effects, isOpen: showVideoEffectsOptions, onDismiss: () => setshowVideoEffectsOptions(false), hasCloseButton: true, closeButtonAriaLabel: "Close", isLightDismiss: true, className: react.mergeStyles(headerStyles) }, selectableVideoEffects && (React__default['default'].createElement(_VideoBackgroundEffectsPicker, { options: selectableVideoEffects, onChange: onEffectChange, selectedEffectKey: selectedEffect }))));
22015
22030
  };
22016
22031
 
22017
22032
  // Copyright (c) Microsoft Corporation.