@azure/communication-react 1.5.1-alpha-202302180014 → 1.5.1-alpha-202302230015
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/communication-react.d.ts +1 -1
- package/dist/dist-cjs/communication-react/index.js +3 -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-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
- package/package.json +8 -8
@@ -6558,7 +6558,7 @@ export declare interface NetworkDiagnosticsState {
|
|
6558
6558
|
*
|
6559
6559
|
* @beta
|
6560
6560
|
*/
|
6561
|
-
export declare type OnFetchProfileCallback = (userId: string) => Promise<Profile | undefined>;
|
6561
|
+
export declare type OnFetchProfileCallback = (userId: string, defaultProfile?: Profile) => Promise<Profile | undefined>;
|
6562
6562
|
|
6563
6563
|
/**
|
6564
6564
|
* A custom rendered callback that allows users to customize the rendering of a Persona Component.
|
@@ -161,7 +161,7 @@ const _toCommunicationIdentifier = (id) => {
|
|
161
161
|
// Copyright (c) Microsoft Corporation.
|
162
162
|
// Licensed under the MIT license.
|
163
163
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
164
|
-
var telemetryVersion = '1.5.1-alpha-
|
164
|
+
var telemetryVersion = '1.5.1-alpha-202302230015';
|
165
165
|
|
166
166
|
// Copyright (c) Microsoft Corporation.
|
167
167
|
/**
|
@@ -16800,7 +16800,7 @@ const ParticipantListWithHeading = (props) => {
|
|
16800
16800
|
}
|
16801
16801
|
}), [theme.palette.neutralSecondary, theme.fonts.smallPlus.fontSize, props.isMobile]);
|
16802
16802
|
return (React__default['default'].createElement(react.Stack, { className: participantListStack },
|
16803
|
-
React__default['default'].createElement(react.Stack.Item, { styles: subheadingStyleThemed, "aria-
|
16803
|
+
React__default['default'].createElement(react.Stack.Item, { styles: subheadingStyleThemed, "aria-label": title }, title),
|
16804
16804
|
React__default['default'].createElement(react.FocusZone, { className: participantListContainerStyle, shouldFocusOnMount: true },
|
16805
16805
|
React__default['default'].createElement(ParticipantList, Object.assign({}, participantListProps, { styles: props.isMobile ? participantListMobileStyle : participantListStyle, onRenderAvatar: (userId, options) => (React__default['default'].createElement(React__default['default'].Fragment, null,
|
16806
16806
|
React__default['default'].createElement(AvatarPersona, Object.assign({ "data-ui-id": "chat-composite-participant-custom-avatar", userId: userId }, options, { hidePersonaDetails: !!(options === null || options === void 0 ? void 0 : options.text) }, { dataProvider: onFetchAvatarPersonaData })),
|
@@ -20914,7 +20914,7 @@ const createProfileStateModifier = (onFetchProfile, notifyUpdate) => {
|
|
20914
20914
|
if (cachedDisplayName[key]) {
|
20915
20915
|
continue;
|
20916
20916
|
}
|
20917
|
-
const profile = yield onFetchProfile(key);
|
20917
|
+
const profile = yield onFetchProfile(key, { displayName: originalParticipants[key].displayName });
|
20918
20918
|
if ((profile === null || profile === void 0 ? void 0 : profile.displayName) && originalParticipants[key].displayName !== (profile === null || profile === void 0 ? void 0 : profile.displayName)) {
|
20919
20919
|
cachedDisplayName[key] = profile === null || profile === void 0 ? void 0 : profile.displayName;
|
20920
20920
|
}
|