@azure/communication-react 1.10.0-alpha-202311060013 → 1.10.0-alpha-202311080012
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 +17 -3
- 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/ChatMessage/ChatMessageActionMenu.js +6 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +10 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/package.json +1 -1
@@ -177,7 +177,7 @@ const _isValidIdentifier = (identifier) => {
|
|
177
177
|
// Copyright (c) Microsoft Corporation.
|
178
178
|
// Licensed under the MIT License.
|
179
179
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
180
|
-
var telemetryVersion = '1.10.0-alpha-
|
180
|
+
var telemetryVersion = '1.10.0-alpha-202311080012';
|
181
181
|
|
182
182
|
// Copyright (c) Microsoft Corporation.
|
183
183
|
/**
|
@@ -9711,7 +9711,12 @@ const chatMessageActionMenuProps = (menuProps) => {
|
|
9711
9711
|
// Show the action button while the flyout is open (otherwise this will dismiss when the pointer is hovered over the flyout)
|
9712
9712
|
const showActionMenu = enabled || menuExpanded;
|
9713
9713
|
const actionMenuProps = {
|
9714
|
-
children: (React__default["default"].createElement("div", { tabIndex: showActionMenu ? 0 : undefined, key: "menuButton", "data-ui-id": "chat-composite-message-action-icon", ref: menuProps.menuButtonRef, onClick: showActionMenu ? () => menuProps.onActionButtonClick() : undefined, style: { margin: showActionMenu ? '1px' : 0, minHeight: showActionMenu ? undefined : '30px' }, role: "button", "aria-label": showActionMenu ? ariaLabel : undefined, "aria-haspopup": showActionMenu, "aria-expanded": menuExpanded
|
9714
|
+
children: (React__default["default"].createElement("div", { tabIndex: showActionMenu ? 0 : undefined, key: "menuButton", "data-ui-id": "chat-composite-message-action-icon", ref: menuProps.menuButtonRef, onClick: showActionMenu ? () => menuProps.onActionButtonClick() : undefined, style: { margin: showActionMenu ? '1px' : 0, minHeight: showActionMenu ? undefined : '30px' }, role: "button", "aria-label": showActionMenu ? ariaLabel : undefined, "aria-haspopup": showActionMenu, "aria-expanded": menuExpanded, onKeyDown: (e) => {
|
9715
|
+
// simulate <button> tag behavior
|
9716
|
+
if (showActionMenu && (e.key === 'Enter' || e.key === ' ')) {
|
9717
|
+
menuProps.onActionButtonClick();
|
9718
|
+
}
|
9719
|
+
} }, showActionMenu ? (React__default["default"].createElement(react.Icon, { iconName: "ChatMessageOptions", "aria-label": ariaLabel, styles: iconWrapperStyle(theme, menuExpanded) })) : undefined))
|
9715
9720
|
};
|
9716
9721
|
return actionMenuProps;
|
9717
9722
|
};
|
@@ -27205,6 +27210,15 @@ const CallArrangement = (props) => {
|
|
27205
27210
|
}
|
27206
27211
|
}, [closePeoplePane, isPeoplePaneOpen, openPeoplePane]);
|
27207
27212
|
const isSidePaneOpen = useIsSidePaneOpen();
|
27213
|
+
const [renderGallery, setRenderGallery] = React.useState(!isSidePaneOpen && props.mobileView);
|
27214
|
+
React.useEffect(() => {
|
27215
|
+
if (isSidePaneOpen && props.mobileView) {
|
27216
|
+
setRenderGallery(false);
|
27217
|
+
}
|
27218
|
+
else {
|
27219
|
+
setRenderGallery(true);
|
27220
|
+
}
|
27221
|
+
}, [props.mobileView, isSidePaneOpen]);
|
27208
27222
|
const locale = useLocale();
|
27209
27223
|
const modalStrings = { dismissModalAriaLabel: locale.strings.call.dismissModalAriaLabel };
|
27210
27224
|
const isMobileWithActivePane = props.mobileView && isSidePaneOpen;
|
@@ -27342,7 +27356,7 @@ const CallArrangement = (props) => {
|
|
27342
27356
|
props.capabilitiesChangedNotificationBarProps.capabilitiesChangedNotifications.length > 0 && (React__default["default"].createElement(react.Stack, { styles: bannerNotificationStyles },
|
27343
27357
|
React__default["default"].createElement(CapabilitiesChangedNotificationBar, Object.assign({}, props.capabilitiesChangedNotificationBarProps, { capabilitiesChangedNotifications: filteredCapabilitesChangedNotifications !== null && filteredCapabilitesChangedNotifications !== void 0 ? filteredCapabilitesChangedNotifications : [] })))),
|
27344
27358
|
canUnmute && !!props.mutedNotificationProps && (React__default["default"].createElement(MutedNotification, Object.assign({}, props.mutedNotificationProps)))),
|
27345
|
-
props.onRenderGalleryContent && props.onRenderGalleryContent(),
|
27359
|
+
renderGallery && props.onRenderGalleryContent && props.onRenderGalleryContent(),
|
27346
27360
|
/* @conditional-compile-remove(close-captions) */
|
27347
27361
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ !isInLocalHold && (React__default["default"].createElement(CaptionsBanner, { isMobile: props.mobileView, onFetchAvatarPersonaData: props.onFetchAvatarPersonaData }))))),
|
27348
27362
|
React__default["default"].createElement(SidePane, { mobileView: props.mobileView,
|