@azure/communication-react 1.7.0-alpha-202307120016 → 1.7.0-alpha-202307130015
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 +15 -16
- 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/MentionPopover.js +14 -15
- package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +1 -1
- package/package.json +8 -8
@@ -178,7 +178,7 @@ const _isValidIdentifier = (identifier) => {
|
|
178
178
|
// Copyright (c) Microsoft Corporation.
|
179
179
|
// Licensed under the MIT license.
|
180
180
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
181
|
-
var telemetryVersion = '1.7.0-alpha-
|
181
|
+
var telemetryVersion = '1.7.0-alpha-202307130015';
|
182
182
|
|
183
183
|
// Copyright (c) Microsoft Corporation.
|
184
184
|
/**
|
@@ -7032,7 +7032,7 @@ const _MentionPopover = (props) => {
|
|
7032
7032
|
const ids = useIdentifiers();
|
7033
7033
|
const localeStrings = useLocale$1().strings;
|
7034
7034
|
const popoverRef = React.useRef();
|
7035
|
-
const [position, setPosition] = React.useState(
|
7035
|
+
const [position, setPosition] = React.useState();
|
7036
7036
|
const [hoveredSuggestion, setHoveredSuggestion] = React.useState(undefined);
|
7037
7037
|
const [changedSelection, setChangedSelection] = React.useState(undefined); // Selection UI as per teams
|
7038
7038
|
const dismissPopoverWhenClickingOutside = React.useCallback((e) => {
|
@@ -7119,20 +7119,19 @@ const _MentionPopover = (props) => {
|
|
7119
7119
|
/* @conditional-compile-remove(mention) */
|
7120
7120
|
return localeStrings.mentionPopover.mentionPopoverHeader;
|
7121
7121
|
}, [localeStrings, title]);
|
7122
|
-
return (React__default['default'].createElement("div", { ref: popoverRef },
|
7123
|
-
|
7124
|
-
|
7125
|
-
|
7126
|
-
|
7127
|
-
|
7128
|
-
|
7129
|
-
|
7130
|
-
|
7131
|
-
|
7132
|
-
|
7133
|
-
|
7134
|
-
|
7135
|
-
})))));
|
7122
|
+
return (React__default['default'].createElement("div", { ref: popoverRef }, position && (React__default['default'].createElement(react.Stack, { "data-testid": 'mention-suggestion-list-container', className: react.mergeStyles({
|
7123
|
+
maxHeight: 212,
|
7124
|
+
maxWidth: position.maxWidth
|
7125
|
+
}, mentionPopoverContainerStyle(theme), Object.assign(Object.assign({}, position), { position: 'absolute' })) },
|
7126
|
+
React__default['default'].createElement(react.Stack.Item, { styles: headerStyleThemed(theme), "aria-label": title }, getHeaderTitle()),
|
7127
|
+
React__default['default'].createElement(react.Stack
|
7128
|
+
/* @conditional-compile-remove(mention) */
|
7129
|
+
, { "data-ui-id": ids.mentionSuggestionList, className: suggestionListStyle }, suggestions.map((suggestion, index) => {
|
7130
|
+
const active = index === activeSuggestionIndex;
|
7131
|
+
return onRenderSuggestionItem
|
7132
|
+
? onRenderSuggestionItem(suggestion, onSuggestionSelected, active)
|
7133
|
+
: defaultOnRenderSuggestionItem(suggestion, onSuggestionSelected, active);
|
7134
|
+
}))))));
|
7136
7135
|
};
|
7137
7136
|
|
7138
7137
|
// Copyright (c) Microsoft Corporation.
|