@azure/communication-react 1.2.3-alpha-202205030013.0 → 1.2.3-alpha-202205040013.0

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.
@@ -191,7 +191,7 @@ const fromFlatCommunicationIdentifier = (id) => {
191
191
  // Copyright (c) Microsoft Corporation.
192
192
  // Licensed under the MIT license.
193
193
  // GENERATED FILE. DO NOT EDIT MANUALLY.
194
- var telemetryVersion = '1.2.3-alpha-202205030013.0';
194
+ var telemetryVersion = '1.2.3-alpha-202205040013.0';
195
195
 
196
196
  // Copyright (c) Microsoft Corporation.
197
197
  /**
@@ -5511,7 +5511,7 @@ const modalMaxDragPosition = { x: localVideoTileOuterPaddingPX, y: localVideoTil
5511
5511
  * @public
5512
5512
  */
5513
5513
  const VideoGallery = (props) => {
5514
- var _a, _b, _c, _d;
5514
+ var _a, _b, _c;
5515
5515
  const { localParticipant, remoteParticipants = [], localVideoViewOptions, remoteVideoViewOptions, dominantSpeakers, onRenderLocalVideoTile, onRenderRemoteVideoTile, onCreateLocalStreamView, onCreateRemoteStreamView, onDisposeRemoteStreamView, styles, layout, onRenderAvatar, showMuteIndicator, maxRemoteVideoStreams = DEFAULT_MAX_REMOTE_VIDEO_STREAMS,
5516
5516
  /* @conditional-compile-remove(call-with-chat-composite) @conditional-compile-remove(local-camera-switcher) */
5517
5517
  showCameraSwitcherInLocalPreview,
@@ -5556,16 +5556,23 @@ const VideoGallery = (props) => {
5556
5556
  lastVisibleParticipants: visibleAudioParticipants.current,
5557
5557
  maxDominantSpeakers: MAX_AUDIO_DOMINANT_SPEAKERS
5558
5558
  });
5559
- /* @conditional-compile-remove(call-with-chat-composite) @conditional-compile-remove(local-camera-switcher) */
5560
- const localCameraCycleButton = (localVideoCameraCycleButtonProps) => {
5561
- const ariaDescription = _formatString(strings.localVideoSelectedDescription, {
5562
- cameraName: localVideoCameraCycleButtonProps.selectedCamera.name
5563
- });
5559
+ const LocalCameraCycleButton = React.useCallback(() => {
5560
+ const ariaDescription = (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.selectedCamera) &&
5561
+ _formatString(strings.localVideoSelectedDescription, {
5562
+ cameraName: localVideoCameraCycleButtonProps.selectedCamera.name
5563
+ });
5564
5564
  return (React__default['default'].createElement(react.Stack, { horizontalAlign: "end" }, showCameraSwitcherInLocalPreview &&
5565
5565
  (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.cameras) !== undefined &&
5566
5566
  (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.selectedCamera) !== undefined &&
5567
5567
  (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.onSelectCamera) !== undefined && (React__default['default'].createElement(LocalVideoCameraCycleButton, { cameras: localVideoCameraCycleButtonProps.cameras, selectedCamera: localVideoCameraCycleButtonProps.selectedCamera, onSelectCamera: localVideoCameraCycleButtonProps.onSelectCamera, label: strings.localVideoCameraSwitcherLabel, ariaDescription: ariaDescription }))));
5568
- };
5568
+ }, [
5569
+ localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.cameras,
5570
+ localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.onSelectCamera,
5571
+ localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.selectedCamera,
5572
+ showCameraSwitcherInLocalPreview,
5573
+ strings.localVideoCameraSwitcherLabel,
5574
+ strings.localVideoSelectedDescription
5575
+ ]);
5569
5576
  /**
5570
5577
  * Utility function for memoized rendering of LocalParticipant.
5571
5578
  */
@@ -5583,18 +5590,20 @@ const VideoGallery = (props) => {
5583
5590
  }
5584
5591
  return (React__default['default'].createElement(react.Stack, { tabIndex: 0, "aria-label": strings.localVideoMovementLabel, role: 'dialog' },
5585
5592
  React__default['default'].createElement(VideoTile, { key: localParticipant.userId, userId: localParticipant.userId, renderElement: (localVideoStream === null || localVideoStream === void 0 ? void 0 : localVideoStream.renderElement) ? (React__default['default'].createElement(React__default['default'].Fragment, null,
5586
- /* @conditional-compile-remove(call-with-chat-composite) @conditional-compile-remove(local-camera-switcher) */
5587
- localCameraCycleButton(localVideoCameraCycleButtonProps),
5593
+ React__default['default'].createElement(LocalCameraCycleButton, null),
5588
5594
  React__default['default'].createElement(StreamMedia, { videoStreamElement: localVideoStream.renderElement }))) : undefined, showLabel: !(shouldFloatLocalVideo && isNarrow), displayName: isNarrow ? '' : strings.localVideoLabel, initialsName: localParticipant.displayName, styles: localVideoTileStylesThemed, onRenderPlaceholder: onRenderAvatar, isMuted: localParticipant.isMuted, showMuteIndicator: showMuteIndicator })));
5589
- // eslint-disable-next-line react-hooks/exhaustive-deps
5590
5595
  }, [
5591
5596
  localParticipant,
5592
- localParticipant.isScreenSharingOn,
5593
- localParticipant.videoStream,
5594
- (_c = localParticipant.videoStream) === null || _c === void 0 ? void 0 : _c.renderElement,
5595
5597
  isNarrow,
5596
5598
  onCreateLocalStreamView,
5597
5599
  onRenderLocalVideoTile,
5600
+ theme.effects.roundedCorner4,
5601
+ styles === null || styles === void 0 ? void 0 : styles.localVideo,
5602
+ strings.localVideoMovementLabel,
5603
+ strings.localVideoLabel,
5604
+ LocalCameraCycleButton,
5605
+ showMuteIndicator,
5606
+ localVideoViewOptions,
5598
5607
  onRenderAvatar,
5599
5608
  shouldFloatLocalVideo
5600
5609
  ]);
@@ -5632,7 +5641,7 @@ const VideoGallery = (props) => {
5632
5641
  gridTiles.push(localVideoTile);
5633
5642
  }
5634
5643
  const localScreenShareStreamComponent = React__default['default'].createElement(LocalScreenShare, { localParticipant: localParticipant });
5635
- const remoteScreenShareComponent = screenShareParticipant && (React__default['default'].createElement(RemoteScreenShare, Object.assign({}, screenShareParticipant, { renderElement: (_d = screenShareParticipant.screenShareStream) === null || _d === void 0 ? void 0 : _d.renderElement, onCreateRemoteStreamView: onCreateRemoteStreamView, onDisposeRemoteStreamView: onDisposeRemoteStreamView })));
5644
+ const remoteScreenShareComponent = screenShareParticipant && (React__default['default'].createElement(RemoteScreenShare, Object.assign({}, screenShareParticipant, { renderElement: (_c = screenShareParticipant.screenShareStream) === null || _c === void 0 ? void 0 : _c.renderElement, onCreateRemoteStreamView: onCreateRemoteStreamView, onDisposeRemoteStreamView: onDisposeRemoteStreamView })));
5636
5645
  const horizontalGalleryPresent = horizontalGalleryTiles && horizontalGalleryTiles.length > 0;
5637
5646
  const layerHostId = reactHooks.useId('layerhost');
5638
5647
  return (React__default['default'].createElement("div", { "data-ui-id": ids.videoGallery, ref: containerRef, className: react.mergeStyles(videoGalleryOuterDivStyle, styles === null || styles === void 0 ? void 0 : styles.root) },