@azure/communication-react 1.5.1-alpha-202302030014 → 1.5.1-alpha-202302050015

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.
@@ -159,7 +159,7 @@ const _toCommunicationIdentifier = (id) => {
159
159
  // Copyright (c) Microsoft Corporation.
160
160
  // Licensed under the MIT license.
161
161
  // GENERATED FILE. DO NOT EDIT MANUALLY.
162
- var telemetryVersion = '1.5.1-alpha-202302030014';
162
+ var telemetryVersion = '1.5.1-alpha-202302050015';
163
163
 
164
164
  // Copyright (c) Microsoft Corporation.
165
165
  /**
@@ -8705,7 +8705,7 @@ const bracketedParticipantString = (participantString, withBrackets) => {
8705
8705
  */
8706
8706
  const _RemoteVideoTile = React__default['default'].memo((props) => {
8707
8707
  const { isAvailable, isReceiving = true, // default to true to prevent any breaking change
8708
- isScreenSharingOn, onCreateRemoteStreamView, onDisposeRemoteStreamView, remoteVideoViewOptions, renderElement, userId, onRenderAvatar, showMuteIndicator, remoteParticipant, participantState, menuKind = 'contextual', isPinned, onPinParticipant, onUnpinParticipant, disablePinMenuItem, toggleAnnouncerString } = props;
8708
+ isScreenSharingOn, onCreateRemoteStreamView, onDisposeRemoteStreamView, remoteVideoViewOptions, renderElement, userId, onRenderAvatar, showMuteIndicator, remoteParticipant, participantState, menuKind, isPinned, onPinParticipant, onUnpinParticipant, disablePinMenuItem, toggleAnnouncerString } = props;
8709
8709
  const remoteVideoStreamProps = React.useMemo(() => ({
8710
8710
  isMirrored: remoteVideoViewOptions === null || remoteVideoViewOptions === void 0 ? void 0 : remoteVideoViewOptions.isMirrored,
8711
8711
  isScreenSharingOn,
@@ -10438,6 +10438,17 @@ const VideoGallery = (props) => {
10438
10438
  /* @conditional-compile-remove(pinned-participants) */
10439
10439
  const [pinnedParticipantsState, setPinnedParticipantsState] = React__default['default'].useState([]);
10440
10440
  /* @conditional-compile-remove(pinned-participants) */
10441
+ React.useEffect(() => {
10442
+ var _a;
10443
+ (_a = props.pinnedParticipants) === null || _a === void 0 ? void 0 : _a.forEach((pinParticipant) => {
10444
+ var _a;
10445
+ if (!((_a = props.remoteParticipants) === null || _a === void 0 ? void 0 : _a.find((t) => t.userId === pinParticipant))) {
10446
+ // warning will be logged in the console when invalid participant id is passed in pinned participants
10447
+ console.warn('Invalid pinned participant UserId :' + pinParticipant);
10448
+ }
10449
+ });
10450
+ }, [props.pinnedParticipants, props.remoteParticipants]);
10451
+ /* @conditional-compile-remove(pinned-participants) */
10441
10452
  // Use pinnedParticipants from props but if it is not defined use the maintained state of pinned participants
10442
10453
  const pinnedParticipants = (_a = props.pinnedParticipants) !== null && _a !== void 0 ? _a : pinnedParticipantsState;
10443
10454
  /* @conditional-compile-remove(rooms) */
@@ -19120,7 +19131,7 @@ const NetworkReconnectTile = (props) => {
19120
19131
  useLocalVideoStartTrigger(!!props.localParticipantVideoStream.isAvailable);
19121
19132
  return (React__default['default'].createElement(ExpandedLocalVideoTile, Object.assign({ localParticipantVideoStream: props.localParticipantVideoStream, overlayContent: React__default['default'].createElement(react.Stack, { verticalFill: true, horizontalAlign: "center", verticalAlign: "center", className: react.mergeStyles(containerStyle$1), "aria-atomic": true },
19122
19133
  React__default['default'].createElement(react.Stack, { horizontal: true, className: react.mergeStyles(titleContainerStyle) },
19123
- React__default['default'].createElement(CallCompositeIcon, { iconName: "NetworkReconnectIcon", className: react.mergeStyles(titleStyle$1) }),
19134
+ React__default['default'].createElement(CallCompositeIcon, { iconName: "NetworkReconnectIcon", className: react.mergeStyles(titleStyle$1(palette, isVideoReady)) }),
19124
19135
  React__default['default'].createElement(react.Text, { className: react.mergeStyles(titleStyle$1(palette, isVideoReady)), "aria-live": 'assertive' }, strings.networkReconnectTitle)),
19125
19136
  React__default['default'].createElement(react.Text, { className: react.mergeStyles(moreDetailsStyle$1(palette, isVideoReady)), "aria-live": 'assertive' }, strings.networkReconnectMoreDetails)) }, handlers)));
19126
19137
  };