@azure/communication-react 1.7.0-alpha-202307110015 → 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.
@@ -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-202307110015';
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({ left: 0 });
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
- React__default['default'].createElement(react.Stack, { "data-testid": 'mention-suggestion-list-container', className: react.mergeStyles({
7124
- maxHeight: 212,
7125
- maxWidth: position.maxWidth
7126
- }, mentionPopoverContainerStyle(theme), Object.assign(Object.assign({}, position), { position: 'absolute' })) },
7127
- React__default['default'].createElement(react.Stack.Item, { styles: headerStyleThemed(theme), "aria-label": title }, getHeaderTitle()),
7128
- React__default['default'].createElement(react.Stack
7129
- /* @conditional-compile-remove(mention) */
7130
- , { "data-ui-id": ids.mentionSuggestionList, className: suggestionListStyle }, suggestions.map((suggestion, index) => {
7131
- const active = index === activeSuggestionIndex;
7132
- return onRenderSuggestionItem
7133
- ? onRenderSuggestionItem(suggestion, onSuggestionSelected, active)
7134
- : defaultOnRenderSuggestionItem(suggestion, onSuggestionSelected, active);
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.
@@ -28135,7 +28134,10 @@ beforeDispose) => {
28135
28134
  */
28136
28135
  const createAzureCommunicationCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$3(void 0, void 0, void 0, function* () {
28137
28136
  const deviceManager = (yield callClient.getDeviceManager());
28138
- yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones(), deviceManager.getSpeakers()]);
28137
+ yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones()]);
28138
+ if (deviceManager.isSpeakerSelectionAvailable) {
28139
+ yield deviceManager.getSpeakers();
28140
+ }
28139
28141
  /* @conditional-compile-remove(unsupported-browser) */
28140
28142
  yield callClient.feature(communicationCalling.Features.DebugInfo).getEnvironmentInfo();
28141
28143
  return new AzureCommunicationCallAdapter(callClient, locator, callAgent, deviceManager,
@@ -28152,7 +28154,10 @@ const createAzureCommunicationCallAdapterFromClient = (callClient, callAgent, lo
28152
28154
  */
28153
28155
  const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$3(void 0, void 0, void 0, function* () {
28154
28156
  const deviceManager = (yield callClient.getDeviceManager());
28155
- yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones(), deviceManager.getSpeakers()]);
28157
+ yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones()]);
28158
+ if (deviceManager.isSpeakerSelectionAvailable) {
28159
+ yield deviceManager.getSpeakers();
28160
+ }
28156
28161
  /* @conditional-compile-remove(unsupported-browser) */
28157
28162
  yield callClient.feature(communicationCalling.Features.DebugInfo).getEnvironmentInfo();
28158
28163
  return new AzureCommunicationCallAdapter(callClient, locator, callAgent, deviceManager, options);