@azure/communication-react 1.12.1-alpha-202401200012 → 1.12.1-alpha-202401230013

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.
Files changed (23) hide show
  1. package/dist/communication-react.d.ts +20 -0
  2. package/dist/dist-cjs/communication-react/index.js +36 -12
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  6. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +22 -6
  7. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  8. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.d.ts +7 -1
  9. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +15 -4
  10. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  11. package/dist/dist-esm/communication-react/src/index.d.ts +1 -0
  12. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  13. package/dist/dist-esm/react-components/src/components/ParticipantList.js +2 -1
  14. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  15. package/dist/dist-esm/react-components/src/index.d.ts +1 -0
  16. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  17. package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
  18. package/dist/dist-esm/react-components/src/theming/icons.js +2 -0
  19. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  20. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +17 -0
  21. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  22. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -0
  23. package/package.json +1 -1
@@ -2528,6 +2528,12 @@ export declare type CallParticipantListParticipant = ParticipantListParticipant
2528
2528
  * @beta
2529
2529
  * */
2530
2530
  reaction?: Reaction;
2531
+ /**
2532
+ * Whether calling participant is spotlighted
2533
+ *
2534
+ * @beta
2535
+ * */
2536
+ isSpotlighted?: Spotlight;
2531
2537
  };
2532
2538
 
2533
2539
  /**
@@ -6047,6 +6053,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
6047
6053
  ParticipantItemOptions: React_2.JSX.Element;
6048
6054
  ParticipantItemOptionsHovered: React_2.JSX.Element;
6049
6055
  ParticipantItemScreenShareStart: React_2.JSX.Element;
6056
+ ParticipantItemSpotlighted: React_2.JSX.Element;
6050
6057
  HoldCallContextualMenuItem: React_2.JSX.Element;
6051
6058
  HoldCallButton: React_2.JSX.Element;
6052
6059
  ResumeCall: React_2.JSX.Element;
@@ -6194,6 +6201,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
6194
6201
  ErrorBarCallVideoRecoveredBySystem: React_2.JSX.Element;
6195
6202
  ErrorBarCallVideoStoppedBySystem: React_2.JSX.Element;
6196
6203
  MessageResend: React_2.JSX.Element;
6204
+ ParticipantItemSpotlighted: React_2.JSX.Element;
6197
6205
  HoldCallContextualMenuItem: React_2.JSX.Element;
6198
6206
  HoldCallButton: React_2.JSX.Element;
6199
6207
  ResumeCall: React_2.JSX.Element;
@@ -9561,6 +9569,18 @@ export declare interface SpokenLanguageStrings {
9561
9569
  'zh-tw': string;
9562
9570
  }
9563
9571
 
9572
+ /**
9573
+ * Spotlight state with order
9574
+ *
9575
+ * @beta
9576
+ */
9577
+ export declare type Spotlight = {
9578
+ /**
9579
+ * Specifies the order position of the spotlight
9580
+ */
9581
+ spotlightOrderPosition?: number;
9582
+ };
9583
+
9564
9584
  /**
9565
9585
  * State only version of {@link @azure/communication-calling#SpotlightCallFeature}
9566
9586
  *
@@ -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.12.1-alpha-202401200012';
173
+ var telemetryVersion = '1.12.1-alpha-202401230013';
174
174
 
175
175
 
176
176
  var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
@@ -6408,6 +6408,8 @@ const DEFAULT_COMPONENT_ICONS = {
6408
6408
  ParticipantItemOptions: React.createElement(React.Fragment, null),
6409
6409
  ParticipantItemOptionsHovered: React.createElement(reactIcons.MoreHorizontal20Filled, null),
6410
6410
  ParticipantItemScreenShareStart: React.createElement(reactIcons.ShareScreenStart20Filled, null),
6411
+ /* @conditional-compile-remove(spotlight) */
6412
+ ParticipantItemSpotlighted: React.createElement(reactIcons.VideoPersonStar20Filled, null),
6411
6413
  /* @conditional-compile-remove(PSTN-calls) */
6412
6414
  HoldCallContextualMenuItem: React.createElement(reactIcons.CallPause20Regular, null),
6413
6415
  /* @conditional-compile-remove(PSTN-calls) */
@@ -12343,7 +12345,8 @@ const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvat
12343
12345
  React.createElement(react.Stack.Item, null,
12344
12346
  React.createElement(RaisedHandIcon, null)))),
12345
12347
  callingParticipant.isScreenSharing && (React.createElement(react.Icon, { iconName: "ParticipantItemScreenShareStart", className: iconStyles$2, ariaLabel: strings.sharingIconLabel })),
12346
- callingParticipant.isMuted && (React.createElement(react.Icon, { iconName: "ParticipantItemMicOff", className: iconStyles$2, ariaLabel: strings.mutedIconLabel }))));
12348
+ callingParticipant.isMuted && (React.createElement(react.Icon, { iconName: "ParticipantItemMicOff", className: iconStyles$2, ariaLabel: strings.mutedIconLabel })),
12349
+ /* @conditional-compile-remove(spotlight) */ callingParticipant.isSpotlighted && (React.createElement(react.Icon, { iconName: "ParticipantItemSpotlighted", className: iconStyles$2 }))));
12347
12350
  }
12348
12351
  : () => null;
12349
12352
  /* @conditional-compile-remove(raise-hand) */
@@ -19902,8 +19905,8 @@ const convertRemoteParticipantToParticipantListParticipant = (userId, displayNam
19902
19905
  /**
19903
19906
  * @private
19904
19907
  */
19905
- const memoizedConvertAllremoteParticipantsBeta = memoizeFnAll((userId, displayName, state, isMuted, isScreenSharing, isSpeaking, raisedHand, localUserCanRemoveOthers, reaction) => {
19906
- return convertRemoteParticipantToParticipantListParticipantBeta(userId, displayName, state, isMuted, isScreenSharing, isSpeaking, raisedHand, localUserCanRemoveOthers, reaction);
19908
+ const memoizedConvertAllremoteParticipantsBeta = memoizeFnAll((userId, displayName, state, isMuted, isScreenSharing, isSpeaking, raisedHand, localUserCanRemoveOthers, reaction, isSpotlighted) => {
19909
+ return convertRemoteParticipantToParticipantListParticipantBeta(userId, displayName, state, isMuted, isScreenSharing, isSpeaking, raisedHand, localUserCanRemoveOthers, reaction, isSpotlighted);
19907
19910
  });
19908
19911
  /* @conditional-compile-remove(reaction) */
19909
19912
  /**
@@ -19918,8 +19921,17 @@ const memoizedConvertToVideoTileReaction = memoizeOne((reactionState) => {
19918
19921
  : undefined;
19919
19922
  });
19920
19923
  /* @conditional-compile-remove(reaction) */
19921
- const convertRemoteParticipantToParticipantListParticipantBeta = (userId, displayName, state, isMuted, isScreenSharing, isSpeaking, raisedHand, localUserCanRemoveOthers, reaction) => {
19922
- return Object.assign(Object.assign({}, convertRemoteParticipantToParticipantListParticipant(userId, displayName, state, isMuted, isScreenSharing, isSpeaking, raisedHand, localUserCanRemoveOthers)), { reaction });
19924
+ /**
19925
+ * @private
19926
+ */
19927
+ const memoizedSpotlight = memoizeOne((spotlightedParticipants, userId) => {
19928
+ const spotlightOrder = spotlightedParticipants === null || spotlightedParticipants === void 0 ? void 0 : spotlightedParticipants.find((spotlightedParticipant) => toFlatCommunicationIdentifier(spotlightedParticipant.identifier) === userId);
19929
+ return spotlightOrder ? { spotlightOrderPosition: spotlightOrder.order } : undefined;
19930
+ });
19931
+ /* @conditional-compile-remove(reaction) */
19932
+ const convertRemoteParticipantToParticipantListParticipantBeta = (userId, displayName, state, isMuted, isScreenSharing, isSpeaking, raisedHand, localUserCanRemoveOthers, reaction, isSpotlighted) => {
19933
+ return Object.assign(Object.assign({}, convertRemoteParticipantToParticipantListParticipant(userId, displayName, state, isMuted, isScreenSharing, isSpeaking, raisedHand, localUserCanRemoveOthers)), { reaction,
19934
+ isSpotlighted });
19923
19935
  };
19924
19936
 
19925
19937
  // Copyright (c) Microsoft Corporation.
@@ -20152,7 +20164,7 @@ const updateUserDisplayNamesTrampoline$2 = (remoteParticipants) => {
20152
20164
 
20153
20165
  // Copyright (c) Microsoft Corporation.
20154
20166
  // Licensed under the MIT License.
20155
- const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipants, localUserCanRemoveOthers, isHideAttendeeNamesEnabled, localUserRole) => {
20167
+ const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipants, localUserCanRemoveOthers, isHideAttendeeNamesEnabled, localUserRole, spotlightedParticipants) => {
20156
20168
  const conversionCallback = (memoizeFn) => {
20157
20169
  return (remoteParticipants
20158
20170
  // Filter out MicrosoftBot participants
@@ -20179,11 +20191,15 @@ const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipan
20179
20191
  displayName = maskDisplayNameWithRole(displayName, localUserRole, participant.role, isHideAttendeeNamesEnabled);
20180
20192
  /* @conditional-compile-remove(reaction) */
20181
20193
  const remoteParticipantReaction = memoizedConvertToVideoTileReaction(participant.reactionState);
20194
+ /* @conditional-compile-remove(spotlight) */
20195
+ const spotlight = memoizedSpotlight(spotlightedParticipants, toFlatCommunicationIdentifier(participant.identifier));
20182
20196
  return memoizeFn(toFlatCommunicationIdentifier(participant.identifier), displayName, state, participant.isMuted, isScreenSharing, participant.isSpeaking,
20183
20197
  /* @conditional-compile-remove(raise-hand) */
20184
20198
  participant.raisedHand, localUserCanRemoveOthers,
20185
20199
  /* @conditional-compile-remove(reaction) */
20186
- remoteParticipantReaction);
20200
+ remoteParticipantReaction,
20201
+ /* @conditional-compile-remove(spotlight) */
20202
+ spotlight);
20187
20203
  })
20188
20204
  .sort((a, b) => {
20189
20205
  var _a, _b;
@@ -20220,21 +20236,27 @@ const participantListSelector = reselect.createSelector([
20220
20236
  /* @conditional-compile-remove(hide-attendee-name) */
20221
20237
  isHideAttendeeNamesEnabled,
20222
20238
  /* @conditional-compile-remove(reaction) */
20223
- getLocalParticipantReactionState
20239
+ getLocalParticipantReactionState,
20240
+ /* @conditional-compile-remove(spotlight) */
20241
+ getSpotlightedParticipants
20224
20242
  ], (userId, displayName, remoteParticipants, isScreenSharingOn, isMuted,
20225
20243
  /* @conditional-compile-remove(raise-hand) */
20226
20244
  raisedHand, role, partitipantCount,
20227
20245
  /* @conditional-compile-remove(hide-attendee-name) */
20228
20246
  isHideAttendeeNamesEnabled,
20229
20247
  /* @conditional-compile-remove(reaction) */
20230
- localParticipantReactionState) => {
20248
+ localParticipantReactionState,
20249
+ /* @conditional-compile-remove(spotlight) */
20250
+ spotlightedParticipants) => {
20231
20251
  const localUserCanRemoveOthers = localUserCanRemoveOthersTrampoline(role);
20232
20252
  const participants = remoteParticipants
20233
20253
  ? convertRemoteParticipantsToParticipantListParticipants(updateUserDisplayNamesTrampoline$1(Object.values(remoteParticipants)), localUserCanRemoveOthers,
20234
20254
  /* @conditional-compile-remove(hide-attendee-name) */
20235
20255
  isHideAttendeeNamesEnabled,
20236
20256
  /* @conditional-compile-remove(hide-attendee-name) */
20237
- role)
20257
+ role,
20258
+ /* @conditional-compile-remove(spotlight) */
20259
+ spotlightedParticipants)
20238
20260
  : [];
20239
20261
  /* @conditional-compile-remove(reaction) */
20240
20262
  const localParticipantReaction = memoizedConvertToVideoTileReaction(localParticipantReactionState);
@@ -20249,7 +20271,9 @@ localParticipantReactionState) => {
20249
20271
  // Local participant can never remove themselves.
20250
20272
  isRemovable: false,
20251
20273
  /* @conditional-compile-remove(reaction) */
20252
- reaction: localParticipantReaction
20274
+ reaction: localParticipantReaction,
20275
+ /* @conditional-compile-remove(spotlight) */
20276
+ isSpotlighted: memoizedSpotlight(spotlightedParticipants, userId)
20253
20277
  });
20254
20278
  /* @conditional-compile-remove(total-participant-count) */
20255
20279
  const totalParticipantCount = partitipantCount;