@azure/communication-react 1.11.0-alpha-202312090012 → 1.11.0-alpha-202312100013
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 +29 -4
- 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/ParticipantList.js +7 -1
- package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +20 -1
- package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +3 -1
- package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
- package/package.json +1 -1
@@ -170,7 +170,7 @@ function getDefaultExportFromCjs (x) {
|
|
170
170
|
// Copyright (c) Microsoft Corporation.
|
171
171
|
// Licensed under the MIT License.
|
172
172
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
173
|
-
var telemetryVersion = '1.11.0-alpha-
|
173
|
+
var telemetryVersion = '1.11.0-alpha-202312100013';
|
174
174
|
|
175
175
|
|
176
176
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -12080,6 +12080,8 @@ const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvat
|
|
12080
12080
|
};
|
12081
12081
|
/* @conditional-compile-remove(hide-attendee-name) */
|
12082
12082
|
displayName = formatDisplayName();
|
12083
|
+
/* @conditional-compile-remove(raise-hand) */
|
12084
|
+
const callingPalette = theme.callingPalette;
|
12083
12085
|
const onRenderIcon = (callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.isScreenSharing) ||
|
12084
12086
|
(callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.isMuted) ||
|
12085
12087
|
(
|
@@ -12101,7 +12103,11 @@ const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvat
|
|
12101
12103
|
callingParticipant.isMuted && (React.createElement(react.Icon, { iconName: "ParticipantItemMicOff", className: iconStyles$2, ariaLabel: strings.mutedIconLabel }))));
|
12102
12104
|
}
|
12103
12105
|
: () => null;
|
12104
|
-
|
12106
|
+
/* @conditional-compile-remove(raise-hand) */
|
12107
|
+
const onRenderAvatarWithRaiseHand = (callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.raisedHand) && onRenderAvatar
|
12108
|
+
? (userId, options, defaultOnRender) => onRenderAvatar(userId, Object.assign(Object.assign({}, options), { styles: { root: { border: callingPalette.raiseHandGold } } }), defaultOnRender)
|
12109
|
+
: onRenderAvatar;
|
12110
|
+
return (React.createElement(ParticipantItem, { styles: styles, key: participant.userId, userId: participant.userId, displayName: displayName, me: myUserId ? participant.userId === myUserId : false, menuItems: menuItems, presence: presence, onRenderIcon: onRenderIcon, onRenderAvatar: onRenderAvatarWithRaiseHand, onClick: () => onParticipantClick === null || onParticipantClick === void 0 ? void 0 : onParticipantClick(participant), showParticipantOverflowTooltip: showParticipantOverflowTooltip,
|
12105
12111
|
/* @conditional-compile-remove(one-to-n-calling) */
|
12106
12112
|
/* @conditional-compile-remove(PSTN-calls) */
|
12107
12113
|
participantState: callingParticipant.state, ariaLabelledBy: participantAriaLabelledBy }));
|
@@ -22711,7 +22717,24 @@ const AvatarPersona = (props) => {
|
|
22711
22717
|
}
|
22712
22718
|
}))();
|
22713
22719
|
}, [data, dataProvider, userId]);
|
22714
|
-
|
22720
|
+
/* @conditional-compile-remove(raise-hand) */
|
22721
|
+
let activePersona = '';
|
22722
|
+
/* @conditional-compile-remove(raise-hand) */
|
22723
|
+
if (props.allowActiveBorder) {
|
22724
|
+
// Display a border for raised handed participants in participant list
|
22725
|
+
activePersona = react.mergeStyles({
|
22726
|
+
border: 'solid 2px',
|
22727
|
+
borderColor: 'transparent',
|
22728
|
+
borderRadius: '50%',
|
22729
|
+
padding: '2px',
|
22730
|
+
boxSizing: 'content-box',
|
22731
|
+
margin: '-4px'
|
22732
|
+
});
|
22733
|
+
react.mergeStyles(activePersona, props.styles);
|
22734
|
+
}
|
22735
|
+
return (React.createElement(react.Persona, Object.assign({}, props, {
|
22736
|
+
/* @conditional-compile-remove(raise-hand) */
|
22737
|
+
className: activePersona, text: (_a = data === null || data === void 0 ? void 0 : data.text) !== null && _a !== void 0 ? _a : text, imageUrl: (_b = data === null || data === void 0 ? void 0 : data.imageUrl) !== null && _b !== void 0 ? _b : imageUrl, imageInitials: (_c = data === null || data === void 0 ? void 0 : data.imageInitials) !== null && _c !== void 0 ? _c : imageInitials, initialsColor: (_d = data === null || data === void 0 ? void 0 : data.initialsColor) !== null && _d !== void 0 ? _d : initialsColor, initialsTextColor: (_f = (_e = data === null || data === void 0 ? void 0 : data.initialsTextColor) !== null && _e !== void 0 ? _e : initialsTextColor) !== null && _f !== void 0 ? _f : 'white',
|
22715
22738
|
// default disable tooltip unless specified
|
22716
22739
|
showOverflowTooltip: showOverflowTooltip !== null && showOverflowTooltip !== void 0 ? showOverflowTooltip : false,
|
22717
22740
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
@@ -23023,7 +23046,9 @@ const ParticipantListWithHeading = (props) => {
|
|
23023
23046
|
/* @conditional-compile-remove(total-participant-count) */ totalParticipantCount)),
|
23024
23047
|
React.createElement(react.FocusZone, { className: participantListContainerStyle, shouldFocusOnMount: true },
|
23025
23048
|
React.createElement(ParticipantList$k, Object.assign({}, participantListProps, { styles: props.isMobile ? participantListMobileStyle : participantListStyle, onRenderAvatar: (userId, options) => (React.createElement(React.Fragment, null,
|
23026
|
-
React.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
|
23049
|
+
React.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,
|
23050
|
+
/* @conditional-compile-remove(raise-hand) */
|
23051
|
+
allowActiveBorder: true })),
|
23027
23052
|
(options === null || options === void 0 ? void 0 : options.text) && (React.createElement(react.Text, { nowrap: true, styles: displayNameStyles$1 }, options === null || options === void 0 ? void 0 : options.text)))), onFetchParticipantMenuItems: onFetchParticipantMenuItems, showParticipantOverflowTooltip: !props.isMobile, participantAriaLabelledBy: subheadingUniqueId })))));
|
23028
23053
|
};
|
23029
23054
|
const paneTitleTrampoline = (paneTitle, totalParticipantCount) => {
|