@azure/communication-react 1.14.0-alpha-202403050012 → 1.14.0-alpha-202403060013

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 (56) hide show
  1. package/dist/communication-react.d.ts +3 -31
  2. package/dist/dist-cjs/communication-react/index.js +54 -170
  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/chat-component-bindings/src/messageThreadSelector.js +12 -34
  7. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  8. package/dist/dist-esm/communication-react/src/index.d.ts +1 -1
  9. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  10. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +3 -9
  11. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  12. package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +1 -22
  13. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  14. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +3 -5
  15. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  16. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +4 -7
  17. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  18. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js +5 -17
  19. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js.map +1 -1
  20. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +0 -1
  21. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  22. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js +4 -7
  23. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js.map +1 -1
  24. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +1 -8
  25. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  26. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +2 -2
  27. package/dist/dist-esm/react-components/src/components/VideoGallery.js +3 -10
  28. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  29. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +0 -7
  30. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  31. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +1 -11
  32. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  33. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  34. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +2 -12
  35. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  36. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +2 -4
  37. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  38. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +4 -26
  39. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  40. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +1 -5
  41. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  42. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  43. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +6 -0
  44. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  45. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +2 -2
  46. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +2 -8
  47. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  48. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +1 -6
  49. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  50. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +0 -2
  51. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  52. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js +0 -1
  53. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  54. package/dist/dist-esm/react-composites/src/composites/common/icons.js +0 -9
  55. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  56. package/package.json +2 -2
@@ -174,7 +174,7 @@ function getDefaultExportFromCjs (x) {
174
174
  // Copyright (c) Microsoft Corporation.
175
175
  // Licensed under the MIT License.
176
176
  // GENERATED FILE. DO NOT EDIT MANUALLY.
177
- var telemetryVersion = '1.14.0-alpha-202403050012';
177
+ var telemetryVersion = '1.14.0-alpha-202403060013';
178
178
 
179
179
 
180
180
  var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
@@ -11037,7 +11037,7 @@ const processHtmlToReact = (props) => {
11037
11037
  var _a;
11038
11038
  const options = {
11039
11039
  transform(reactNode, domNode) {
11040
- var _a, _b, _c, _d;
11040
+ var _a, _b, _c;
11041
11041
  if (domNode instanceof parse.Element && domNode.attribs) {
11042
11042
  // Transform custom rendering of mentions
11043
11043
  /* @conditional-compile-remove(mention) */
@@ -11054,19 +11054,13 @@ const processHtmlToReact = (props) => {
11054
11054
  }
11055
11055
  // Transform inline images
11056
11056
  /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
11057
- if (domNode.name &&
11058
- domNode.name === 'img' &&
11059
- domNode.attribs &&
11060
- domNode.attribs.id &&
11061
- ((_c = props.message.inlineImages) === null || _c === void 0 ? void 0 : _c.find((metadata) => {
11062
- return metadata.id === domNode.attribs.id;
11063
- }))) {
11057
+ if (domNode.name && domNode.name === 'img' && domNode.attribs && domNode.attribs.id) {
11064
11058
  domNode.attribs['aria-label'] = domNode.attribs.name;
11065
11059
  const imgProps = parse.attributesToProps(domNode.attribs);
11066
11060
  /* @conditional-compile-remove(image-overlay) */
11067
11061
  const inlineImageProps = { messageId: props.message.messageId, imgAttrs: imgProps };
11068
11062
  /* @conditional-compile-remove(image-overlay) */
11069
- return ((_d = props.inlineImageOptions) === null || _d === void 0 ? void 0 : _d.onRenderInlineImage)
11063
+ return ((_c = props.inlineImageOptions) === null || _c === void 0 ? void 0 : _c.onRenderInlineImage)
11070
11064
  ? props.inlineImageOptions.onRenderInlineImage(inlineImageProps, defaultOnRenderInlineImage)
11071
11065
  : defaultOnRenderInlineImage(inlineImageProps);
11072
11066
  }
@@ -13753,16 +13747,12 @@ const participantsById = (participants) => {
13753
13747
  // Licensed under the MIT License.
13754
13748
  const DEFAULT_MAX_OVERFLOW_GALLERY_DOMINANT_SPEAKERS = 6;
13755
13749
  const DEFAULT_MAX_VIDEO_SREAMS = 4;
13756
- /* @conditional-compile-remove(gallery-layouts) */
13757
13750
  const MAX_GRID_PARTICIPANTS_NOT_LARGE_GALLERY = 9;
13758
13751
  const _useOrganizedParticipants = (props) => {
13759
13752
  const visibleGridParticipants = React.useRef([]);
13760
13753
  const visibleOverflowGalleryParticipants = React.useRef([]);
13761
- const { remoteParticipants = [], dominantSpeakers = [], maxRemoteVideoStreams = DEFAULT_MAX_VIDEO_SREAMS, maxOverflowGalleryDominantSpeakers = DEFAULT_MAX_OVERFLOW_GALLERY_DOMINANT_SPEAKERS, isScreenShareActive = false, pinnedParticipantUserIds = [],
13762
- /* @conditional-compile-remove(gallery-layouts) */
13763
- layout } = props;
13754
+ const { remoteParticipants = [], dominantSpeakers = [], maxRemoteVideoStreams = DEFAULT_MAX_VIDEO_SREAMS, maxOverflowGalleryDominantSpeakers = DEFAULT_MAX_OVERFLOW_GALLERY_DOMINANT_SPEAKERS, isScreenShareActive = false, pinnedParticipantUserIds = [], layout } = props;
13764
13755
  const calculateMaxRemoteVideoStreams = () => {
13765
- /* @conditional-compile-remove(gallery-layouts) */
13766
13756
  if (maxRemoteVideoStreams > MAX_GRID_PARTICIPANTS_NOT_LARGE_GALLERY) {
13767
13757
  return MAX_GRID_PARTICIPANTS_NOT_LARGE_GALLERY;
13768
13758
  }
@@ -13773,7 +13763,6 @@ const _useOrganizedParticipants = (props) => {
13773
13763
  const maxRemoteVideoStreamsToUse = calculateMaxRemoteVideoStreams();
13774
13764
  const videoParticipants = remoteParticipants.filter((p) => { var _a; return (_a = p.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable; });
13775
13765
  const participantsToSortTrampoline = () => {
13776
- /* @conditional-compile-remove(gallery-layouts) */
13777
13766
  return layout !== 'floatingLocalVideo' ? putVideoParticipantsFirst(remoteParticipants) : videoParticipants;
13778
13767
  };
13779
13768
  visibleGridParticipants.current =
@@ -13785,13 +13774,11 @@ const _useOrganizedParticipants = (props) => {
13785
13774
  lastVisibleParticipants: visibleGridParticipants.current,
13786
13775
  maxDominantSpeakers: maxRemoteVideoStreamsToUse
13787
13776
  }).slice(0, maxRemoteVideoStreamsToUse);
13788
- /* @conditional-compile-remove(gallery-layouts) */
13789
13777
  const dominantSpeakerToGrid = layout === 'speaker'
13790
13778
  ? dominantSpeakers && dominantSpeakers[0]
13791
13779
  ? visibleGridParticipants.current.filter((p) => p.userId === dominantSpeakers[0])
13792
13780
  : [visibleGridParticipants.current[0]]
13793
13781
  : [];
13794
- /* @conditional-compile-remove(gallery-layouts) */
13795
13782
  if (dominantSpeakerToGrid[0]) {
13796
13783
  visibleGridParticipants.current = dominantSpeakerToGrid;
13797
13784
  }
@@ -15474,7 +15461,7 @@ const DefaultLayout = (props) => {
15474
15461
  ? childrenPerPage.current - ((pinnedParticipantUserIds.length + 1) % childrenPerPage.current)
15475
15462
  : childrenPerPage.current,
15476
15463
  pinnedParticipantUserIds,
15477
- /* @conditional-compile-remove(gallery-layouts) */ layout: 'default',
15464
+ layout: 'default',
15478
15465
  /* @conditional-compile-remove(spotlight) */ spotlightedParticipantUserIds
15479
15466
  });
15480
15467
  let activeVideoStreams = 0;
@@ -15534,13 +15521,11 @@ const DefaultLayout = (props) => {
15534
15521
  , {
15535
15522
  /* @conditional-compile-remove(vertical-gallery) */
15536
15523
  horizontal: overflowGalleryPosition === 'verticalRight', styles: rootLayoutStyle$1, tokens: videoGalleryLayoutGap },
15537
- /* @conditional-compile-remove(gallery-layouts) */ props.overflowGalleryPosition === 'horizontalTop' ? (overflowGallery) : (React.createElement(React.Fragment, null)),
15524
+ props.overflowGalleryPosition === 'horizontalTop' ? overflowGallery : React.createElement(React.Fragment, null),
15538
15525
  screenShareComponent ? (screenShareComponent) : (React.createElement(GridLayout, { key: "grid-layout", styles: styles === null || styles === void 0 ? void 0 : styles.gridLayout }, gridTiles)),
15539
- overflowGalleryTrampoline$3(overflowGallery,
15540
- /* @conditional-compile-remove(gallery-layouts) */ props.overflowGalleryPosition)));
15526
+ overflowGalleryTrampoline$3(overflowGallery, props.overflowGalleryPosition)));
15541
15527
  };
15542
15528
  const overflowGalleryTrampoline$3 = (gallery, galleryPosition) => {
15543
- /* @conditional-compile-remove(gallery-layouts) */
15544
15529
  return galleryPosition !== 'horizontalTop' ? gallery : React.createElement(React.Fragment, null);
15545
15530
  };
15546
15531
 
@@ -16320,7 +16305,7 @@ const FloatingLocalVideoLayout = (props) => {
16320
16305
  ? childrenPerPage.current - (pinnedParticipantUserIds.length % childrenPerPage.current)
16321
16306
  : childrenPerPage.current,
16322
16307
  pinnedParticipantUserIds,
16323
- /* @conditional-compile-remove(gallery-layouts) */ layout: 'floatingLocalVideo',
16308
+ layout: 'floatingLocalVideo',
16324
16309
  /* @conditional-compile-remove(spotlight) */ spotlightedParticipantUserIds
16325
16310
  });
16326
16311
  let activeVideoStreams = 0;
@@ -16382,8 +16367,7 @@ const FloatingLocalVideoLayout = (props) => {
16382
16367
  showCameraSwitcherInLocalPreview ? (React.createElement(react.Stack, { className: react.mergeStyles(localVideoTileWithControlsContainerStyle(theme, localVideoSizeRem), {
16383
16368
  boxShadow: theme.effects.elevation8,
16384
16369
  zIndex: LOCAL_VIDEO_TILE_ZINDEX
16385
- }) }, localVideoComponent)) : overflowGalleryTiles.length > 0 || screenShareComponent ? (React.createElement(react.Stack, { className: react.mergeStyles(localVideoTileContainerStyle(theme, localVideoSizeRem, !!screenShareComponent,
16386
- /* @conditional-compile-remove(gallery-layouts) */ overflowGalleryPosition)) }, localVideoComponent)) : (React.createElement(FloatingLocalVideo, { localVideoComponent: localVideoComponent, layerHostId: layerHostId, localVideoSizeRem: localVideoSizeRem, parentWidth: parentWidth, parentHeight: parentHeight }))) : undefined;
16370
+ }) }, localVideoComponent)) : overflowGalleryTiles.length > 0 || screenShareComponent ? (React.createElement(react.Stack, { className: react.mergeStyles(localVideoTileContainerStyle(theme, localVideoSizeRem, !!screenShareComponent, overflowGalleryPosition)) }, localVideoComponent)) : (React.createElement(FloatingLocalVideo, { localVideoComponent: localVideoComponent, layerHostId: layerHostId, localVideoSizeRem: localVideoSizeRem, parentWidth: parentWidth, parentHeight: parentHeight }))) : undefined;
16387
16371
  const overflowGallery = React.useMemo(() => {
16388
16372
  if (overflowGalleryTiles.length === 0 && !screenShareComponent) {
16389
16373
  return null;
@@ -16419,13 +16403,11 @@ const FloatingLocalVideoLayout = (props) => {
16419
16403
  , {
16420
16404
  /* @conditional-compile-remove(vertical-gallery) */
16421
16405
  horizontal: overflowGalleryPosition === 'verticalRight', styles: innerLayoutStyle, tokens: videoGalleryLayoutGap },
16422
- /* @conditional-compile-remove(gallery-layouts) */ props.overflowGalleryPosition === 'horizontalTop' ? (overflowGallery) : (React.createElement(React.Fragment, null)),
16406
+ props.overflowGalleryPosition === 'horizontalTop' ? overflowGallery : React.createElement(React.Fragment, null),
16423
16407
  screenShareComponent ? (screenShareComponent) : (React.createElement(GridLayout, { key: "grid-layout", styles: styles === null || styles === void 0 ? void 0 : styles.gridLayout }, gridTiles)),
16424
- overflowGalleryTrampoline$2(overflowGallery,
16425
- /* @conditional-compile-remove(gallery-layouts) */ props.overflowGalleryPosition))));
16408
+ overflowGalleryTrampoline$2(overflowGallery, props.overflowGalleryPosition))));
16426
16409
  };
16427
16410
  const overflowGalleryTrampoline$2 = (gallery, galleryPosition) => {
16428
- /* @conditional-compile-remove(gallery-layouts) */
16429
16411
  return galleryPosition !== 'horizontalTop' ? gallery : React.createElement(React.Fragment, null);
16430
16412
  };
16431
16413
 
@@ -16457,7 +16439,7 @@ const SpeakerVideoLayout = (props) => {
16457
16439
  ? childrenPerPage.current - (pinnedParticipantUserIds.length % childrenPerPage.current)
16458
16440
  : childrenPerPage.current,
16459
16441
  pinnedParticipantUserIds,
16460
- /* @conditional-compile-remove(gallery-layouts) */ layout: 'speaker'
16442
+ layout: 'speaker'
16461
16443
  });
16462
16444
  let activeVideoStreams = 0;
16463
16445
  const gridTiles = gridParticipants.map((p) => {
@@ -16513,8 +16495,7 @@ const SpeakerVideoLayout = (props) => {
16513
16495
  /* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
16514
16496
  /* @conditional-compile-remove(click-to-call) */ localVideoTileSize
16515
16497
  ]);
16516
- const wrappedLocalVideoComponent = localVideoComponent || (screenShareComponent && localVideoComponent) ? (React.createElement(react.Stack, { className: react.mergeStyles(localVideoTileContainerStyle(theme, localVideoSizeRem, !!screenShareComponent,
16517
- /* @conditional-compile-remove(gallery-layouts) */ overflowGalleryPosition)) }, localVideoComponent)) : undefined;
16498
+ const wrappedLocalVideoComponent = localVideoComponent || (screenShareComponent && localVideoComponent) ? (React.createElement(react.Stack, { className: react.mergeStyles(localVideoTileContainerStyle(theme, localVideoSizeRem, !!screenShareComponent, overflowGalleryPosition)) }, localVideoComponent)) : undefined;
16518
16499
  const overflowGallery = React.useMemo(() => {
16519
16500
  if (overflowGalleryTiles.length === 0 && !screenShareComponent) {
16520
16501
  return null;
@@ -16550,13 +16531,11 @@ const SpeakerVideoLayout = (props) => {
16550
16531
  , {
16551
16532
  /* @conditional-compile-remove(vertical-gallery) */
16552
16533
  horizontal: overflowGalleryPosition === 'verticalRight', styles: innerLayoutStyle, tokens: videoGalleryLayoutGap },
16553
- /* @conditional-compile-remove(gallery-layouts) */ props.overflowGalleryPosition === 'horizontalTop' ? (overflowGallery) : (React.createElement(React.Fragment, null)),
16534
+ props.overflowGalleryPosition === 'horizontalTop' ? overflowGallery : React.createElement(React.Fragment, null),
16554
16535
  screenShareComponent ? (screenShareComponent) : (React.createElement(GridLayout, { key: "grid-layout", styles: styles === null || styles === void 0 ? void 0 : styles.gridLayout }, gridTiles)),
16555
- overflowGalleryTrampoline$1(overflowGallery,
16556
- /* @conditional-compile-remove(gallery-layouts) */ props.overflowGalleryPosition))));
16536
+ overflowGalleryTrampoline$1(overflowGallery, props.overflowGalleryPosition))));
16557
16537
  };
16558
16538
  const overflowGalleryTrampoline$1 = (gallery, galleryPosition) => {
16559
- /* @conditional-compile-remove(gallery-layouts) */
16560
16539
  return galleryPosition !== 'horizontalTop' ? gallery : React.createElement(React.Fragment, null);
16561
16540
  };
16562
16541
 
@@ -16576,9 +16555,7 @@ const FocusedContentLayout = (props) => {
16576
16555
  // Copyright (c) Microsoft Corporation.
16577
16556
  // Licensed under the MIT License.
16578
16557
  const DEFAULT_CHILDREN_PER_PAGE = 5;
16579
- /* @conditional-compile-remove(gallery-layouts) */
16580
16558
  const REM_TO_PIXEL = 16;
16581
- /* @conditional-compile-remove(gallery-layouts) */
16582
16559
  const LARGE_GALLERY_PARTICIPANT_CAP = 48;
16583
16560
  /**
16584
16561
  * VideoGallery Layout for when user is in a large meeting and wants to see more participants
@@ -16588,14 +16565,11 @@ const LARGE_GALLERY_PARTICIPANT_CAP = 48;
16588
16565
  * @private
16589
16566
  */
16590
16567
  const LargeGalleryLayout = (props) => {
16591
- const { remoteParticipants = [], localParticipant, dominantSpeakers, localVideoComponent, screenShareComponent, onRenderRemoteParticipant, styles, maxRemoteVideoStreams, parentWidth,
16592
- /* @conditional-compile-remove(gallery-layouts) */ parentHeight, pinnedParticipantUserIds = [],
16568
+ const { remoteParticipants = [], localParticipant, dominantSpeakers, localVideoComponent, screenShareComponent, onRenderRemoteParticipant, styles, maxRemoteVideoStreams, parentWidth, parentHeight, pinnedParticipantUserIds = [],
16593
16569
  /* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition = 'horizontalBottom' } = props;
16594
16570
  const isNarrow = parentWidth ? isNarrowWidth(parentWidth) : false;
16595
- /* @conditional-compile-remove(gallery-layouts) */
16596
16571
  const isShort = parentHeight ? isShortHeight(parentHeight) : false;
16597
16572
  const maxStreamsTrampoline = () => {
16598
- /* @conditional-compile-remove(gallery-layouts) */
16599
16573
  return parentWidth && parentHeight
16600
16574
  ? calculateMaxTilesInLargeGrid(parentWidth, parentHeight)
16601
16575
  : maxRemoteVideoStreams;
@@ -16649,9 +16623,7 @@ const LargeGalleryLayout = (props) => {
16649
16623
  if (overflowGalleryTiles.length === 0) {
16650
16624
  return null;
16651
16625
  }
16652
- return (React.createElement(OverflowGallery, { isNarrow: isNarrow,
16653
- /* @conditional-compile-remove(gallery-layouts) */
16654
- isShort: isShort, shouldFloatLocalVideo: false, overflowGalleryElements: overflowGalleryTiles, horizontalGalleryStyles: styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
16626
+ return (React.createElement(OverflowGallery, { isNarrow: isNarrow, isShort: isShort, shouldFloatLocalVideo: false, overflowGalleryElements: overflowGalleryTiles, horizontalGalleryStyles: styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
16655
16627
  /* @conditional-compile-remove(vertical-gallery) */
16656
16628
  verticalGalleryStyles: styles === null || styles === void 0 ? void 0 : styles.verticalGallery,
16657
16629
  /* @conditional-compile-remove(vertical-gallery) */
@@ -16660,7 +16632,7 @@ const LargeGalleryLayout = (props) => {
16660
16632
  }, parentWidth: parentWidth }));
16661
16633
  }, [
16662
16634
  isNarrow,
16663
- /* @conditional-compile-remove(gallery-layouts) */ isShort,
16635
+ isShort,
16664
16636
  overflowGalleryTiles,
16665
16637
  styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
16666
16638
  /* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
@@ -16673,16 +16645,13 @@ const LargeGalleryLayout = (props) => {
16673
16645
  , {
16674
16646
  /* @conditional-compile-remove(vertical-gallery) */
16675
16647
  horizontal: overflowGalleryPosition === 'verticalRight', styles: rootLayoutStyle$1, tokens: videoGalleryLayoutGap },
16676
- /* @conditional-compile-remove(gallery-layouts) */ props.overflowGalleryPosition === 'horizontalTop' ? (overflowGallery) : (React.createElement(React.Fragment, null)),
16648
+ props.overflowGalleryPosition === 'horizontalTop' ? overflowGallery : React.createElement(React.Fragment, null),
16677
16649
  screenShareComponent ? (screenShareComponent) : (React.createElement(GridLayout, { key: "grid-layout", styles: styles === null || styles === void 0 ? void 0 : styles.gridLayout }, gridTiles)),
16678
- overflowGalleryTrampoline(overflowGallery,
16679
- /* @conditional-compile-remove(gallery-layouts) */ props.overflowGalleryPosition)));
16650
+ overflowGalleryTrampoline(overflowGallery, props.overflowGalleryPosition)));
16680
16651
  };
16681
16652
  const overflowGalleryTrampoline = (gallery, galleryPosition) => {
16682
- /* @conditional-compile-remove(gallery-layouts) */
16683
16653
  return galleryPosition !== 'horizontalTop' ? gallery : React.createElement(React.Fragment, null);
16684
16654
  };
16685
- /* @conditional-compile-remove(gallery-layouts) */
16686
16655
  const calculateMaxTilesInLargeGrid = (parentWidth, parentHeight) => {
16687
16656
  const xAxisTiles = Math.floor(parentWidth / (VERTICAL_GALLERY_TILE_SIZE_REM.width * REM_TO_PIXEL));
16688
16657
  const yAxisTiles = Math.floor(parentHeight / (VERTICAL_GALLERY_TILE_SIZE_REM.minHeight * REM_TO_PIXEL));
@@ -16756,8 +16725,7 @@ const VideoGallery = (props) => {
16756
16725
  ? remoteVideoTileMenu.hostId
16757
16726
  : undefined;
16758
16727
  const drawerMenuHostId = reactHooks.useId('drawerMenuHost', drawerMenuHostIdFromProp);
16759
- const localTileNotInGrid = (layout === 'floatingLocalVideo' || /* @conditional-compile-remove(gallery-layouts) */ layout === 'speaker') &&
16760
- remoteParticipants.length > 0;
16728
+ const localTileNotInGrid = (layout === 'floatingLocalVideo' || layout === 'speaker') && remoteParticipants.length > 0;
16761
16729
  const containerRef = React.useRef(null);
16762
16730
  const containerWidth = _useContainerWidth(containerRef);
16763
16731
  const containerHeight = _useContainerHeight(containerRef);
@@ -16784,7 +16752,7 @@ const VideoGallery = (props) => {
16784
16752
  const pinnedParticipants = (_a = props.pinnedParticipants) !== null && _a !== void 0 ? _a : pinnedParticipantsState;
16785
16753
  const showLocalVideoTileLabel = !((localTileNotInGrid && isNarrow) ||
16786
16754
  /*@conditional-compile-remove(click-to-call) */ /* @conditional-compile-remove(rooms) */ localVideoTileSize ===
16787
- '9:16') || /* @conditional-compile-remove(gallery-layouts) */ layout === 'default';
16755
+ '9:16') || layout === 'default';
16788
16756
  /**
16789
16757
  * Utility function for memoized rendering of LocalParticipant.
16790
16758
  */
@@ -16804,7 +16772,6 @@ const VideoGallery = (props) => {
16804
16772
  }, styles === null || styles === void 0 ? void 0 : styles.localVideo);
16805
16773
  const initialsName = !localParticipant.displayName ? '' : localParticipant.displayName;
16806
16774
  const showDisplayNameTrampoline = () => {
16807
- /* @conditional-compile-remove(gallery-layouts) */
16808
16775
  return layout === 'default' ? strings.localVideoLabel : isNarrow ? '' : strings.localVideoLabel;
16809
16776
  };
16810
16777
  return (React.createElement(react.Stack, { styles: localVideoTileContainerStyles, key: "local-video-tile-key", tabIndex: 0, "aria-label": strings.localVideoMovementLabel, role: 'dialog' },
@@ -16847,7 +16814,6 @@ const VideoGallery = (props) => {
16847
16814
  theme.effects.roundedCorner4,
16848
16815
  /*@conditional-compile-remove(click-to-call) */
16849
16816
  localVideoTileSize,
16850
- /* @conditional-compile-remove(gallery-layouts) */
16851
16817
  layout,
16852
16818
  showLocalVideoTileLabel,
16853
16819
  /* @conditional-compile-remove(spotlight) */
@@ -17000,14 +16966,12 @@ const VideoGallery = (props) => {
17000
16966
  /* @conditional-compile-remove(spotlight) */ spotlightedParticipants
17001
16967
  ]);
17002
16968
  const videoGalleryLayout = React.useMemo(() => {
17003
- /* @conditional-compile-remove(gallery-layouts) */
17004
16969
  if (screenShareParticipant && layout === 'focusedContent') {
17005
16970
  return React.createElement(FocusedContentLayout, Object.assign({}, layoutProps));
17006
16971
  }
17007
16972
  if (layout === 'floatingLocalVideo') {
17008
16973
  return React.createElement(FloatingLocalVideoLayout, Object.assign({}, layoutProps));
17009
16974
  }
17010
- /* @conditional-compile-remove(gallery-layouts) */
17011
16975
  if (layout === 'speaker') {
17012
16976
  return React.createElement(SpeakerVideoLayout, Object.assign({}, layoutProps));
17013
16977
  }
@@ -17016,7 +16980,7 @@ const VideoGallery = (props) => {
17016
16980
  return React.createElement(LargeGalleryLayout, Object.assign({}, layoutProps));
17017
16981
  }
17018
16982
  return React.createElement(DefaultLayout, Object.assign({}, layoutProps));
17019
- }, [layout, layoutProps, /* @conditional-compile-remove(gallery-layouts) */ screenShareParticipant]);
16983
+ }, [layout, layoutProps, screenShareParticipant]);
17020
16984
  return (React.createElement("div", {
17021
16985
  // We don't assign an drawer menu host id to the VideoGallery when a drawerMenuHostId is assigned from props
17022
16986
  id: drawerMenuHostIdFromProp ? undefined : drawerMenuHostId, "data-ui-id": ids.videoGallery, ref: containerRef, className: react.mergeStyles(videoGalleryOuterDivStyle, styles === null || styles === void 0 ? void 0 : styles.root, unselectable) },
@@ -21696,33 +21660,21 @@ const extractAttachedFilesMetadata = (metadata) => {
21696
21660
  return [];
21697
21661
  }
21698
21662
  };
21699
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21700
- const extractTeamsAttachmentsMetadata = (attachments, resourceCache) => {
21663
+ /* @conditional-compile-remove(file-sharing) */
21664
+ const extractTeamsAttachmentsMetadata = (attachments) => {
21701
21665
  /* @conditional-compile-remove(file-sharing) */
21702
21666
  const files = [];
21703
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21704
- const inlineImages = [];
21705
21667
  attachments.forEach((attachment) => {
21706
- var _a, _b, _c;
21668
+ var _a;
21707
21669
  const attachmentType = mapAttachmentType(attachment.attachmentType);
21708
21670
  /* @conditional-compile-remove(file-sharing) */
21709
21671
  const contentType = extractAttachmentContentTypeFromName(attachment.name);
21710
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21711
- if (attachmentType === 'inlineImage') {
21712
- inlineImages.push({
21713
- attachmentType: attachmentType,
21714
- id: attachment.id,
21715
- url: extractAttachmentUrl(attachment),
21716
- previewUrl: attachment.previewUrl,
21717
- fullSizeImageSrc: (_b = resourceCache === null || resourceCache === void 0 ? void 0 : resourceCache[(_a = attachment.url) !== null && _a !== void 0 ? _a : '']) !== null && _b !== void 0 ? _b : ''
21718
- });
21719
- }
21720
21672
  /* @conditional-compile-remove(file-sharing) */
21721
21673
  if (attachmentType === 'file') {
21722
21674
  files.push({
21723
21675
  attachmentType: attachmentType,
21724
21676
  id: attachment.id,
21725
- name: (_c = attachment.name) !== null && _c !== void 0 ? _c : '',
21677
+ name: (_a = attachment.name) !== null && _a !== void 0 ? _a : '',
21726
21678
  extension: contentType !== null && contentType !== void 0 ? contentType : '',
21727
21679
  url: extractAttachmentUrl(attachment),
21728
21680
  payload: { teamsFileAttachment: 'true' }
@@ -21730,8 +21682,7 @@ const extractTeamsAttachmentsMetadata = (attachments, resourceCache) => {
21730
21682
  }
21731
21683
  });
21732
21684
  return {
21733
- /* @conditional-compile-remove(file-sharing) */ files,
21734
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */ inlineImages
21685
+ /* @conditional-compile-remove(file-sharing) */ files
21735
21686
  };
21736
21687
  };
21737
21688
  /* @conditional-compile-remove(data-loss-prevention) */
@@ -21750,7 +21701,7 @@ const convertToUiBlockedMessage = (message, userId, isSeen, isLargeGroup) => {
21750
21701
  link: DEFAULT_DATA_LOSS_PREVENTION_POLICY_URL
21751
21702
  };
21752
21703
  };
21753
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21704
+ /* @conditional-compile-remove(file-sharing) */
21754
21705
  const mapAttachmentType = (attachmentType) => {
21755
21706
  if (attachmentType === 'image') {
21756
21707
  return 'inlineImage';
@@ -21761,7 +21712,7 @@ const mapAttachmentType = (attachmentType) => {
21761
21712
  }
21762
21713
  return 'unknown';
21763
21714
  };
21764
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21715
+ /* @conditional-compile-remove(file-sharing) */
21765
21716
  const extractAttachmentUrl = (attachment) => {
21766
21717
  /* @conditional-compile-remove(file-sharing) */
21767
21718
  return attachment.attachmentType === 'file' && attachment.previewUrl ? attachment.previewUrl : attachment.url || '';
@@ -21830,31 +21781,24 @@ const extractAttachmentsMetadata = (message) => {
21830
21781
  var _a, _b;
21831
21782
  /* @conditional-compile-remove(file-sharing) */
21832
21783
  let files = [];
21833
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21834
- let inlineImages = [];
21835
21784
  /* @conditional-compile-remove(file-sharing) */
21836
21785
  if (message.metadata) {
21837
21786
  files = files.concat(extractAttachedFilesMetadata(message.metadata));
21838
21787
  }
21839
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21788
+ /* @conditional-compile-remove(file-sharing) */
21840
21789
  if ((_a = message.content) === null || _a === void 0 ? void 0 : _a.attachments) {
21841
- const teamsAttachments = extractTeamsAttachmentsMetadata((_b = message.content) === null || _b === void 0 ? void 0 : _b.attachments, message.resourceCache);
21790
+ const teamsAttachments = extractTeamsAttachmentsMetadata((_b = message.content) === null || _b === void 0 ? void 0 : _b.attachments);
21842
21791
  /* @conditional-compile-remove(file-sharing) */
21843
21792
  files = files.concat(teamsAttachments.files);
21844
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21845
- inlineImages = inlineImages.concat(teamsAttachments.inlineImages);
21846
21793
  }
21847
21794
  return {
21848
- /* @conditional-compile-remove(file-sharing) */ files,
21849
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */ inlineImages
21795
+ /* @conditional-compile-remove(file-sharing) */ files
21850
21796
  };
21851
21797
  };
21852
21798
  const convertToUiChatMessage = (message, userId, isSeen, isLargeGroup) => {
21853
21799
  const messageSenderId = message.sender !== undefined ? toFlatCommunicationIdentifier(message.sender) : userId;
21854
21800
  /* @conditional-compile-remove(file-sharing) @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21855
- const {
21856
- /* @conditional-compile-remove(file-sharing) */ files,
21857
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */ inlineImages } = extractAttachmentsMetadata(message);
21801
+ const { /* @conditional-compile-remove(file-sharing) */ files } = extractAttachmentsMetadata(message);
21858
21802
  return {
21859
21803
  messageType: 'chat',
21860
21804
  createdOn: message.createdOn,
@@ -21870,9 +21814,7 @@ const convertToUiChatMessage = (message, userId, isSeen, isLargeGroup) => {
21870
21814
  mine: messageSenderId === userId,
21871
21815
  metadata: message.metadata,
21872
21816
  /* @conditional-compile-remove(file-sharing) */
21873
- files,
21874
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21875
- inlineImages
21817
+ files
21876
21818
  };
21877
21819
  };
21878
21820
  const convertToUiSystemMessage = (message) => {
@@ -23598,19 +23540,12 @@ const COMPOSITE_ONLY_ICONS = {
23598
23540
  BlurVideoBackground: React.createElement(reactIcons.VideoBackgroundEffect20Regular, null),
23599
23541
  /* @conditional-compile-remove(video-background-effects) */
23600
23542
  RemoveVideoBackgroundEffect: React.createElement(reactIcons.VideoPerson20Filled, null),
23601
- /* @conditional-compile-remove(gallery-layouts) */
23602
23543
  GalleryOptions: React.createElement(reactIcons.Grid20Regular, null),
23603
- /* @conditional-compile-remove(gallery-layouts) */
23604
23544
  OverflowGalleryTop: React.createElement(reactIcons.WindowHeaderHorizontal20Regular, null),
23605
- /* @conditional-compile-remove(gallery-layouts) */
23606
23545
  SpeakerGalleryLayout: React.createElement(reactIcons.PersonSquare20Regular, null),
23607
- /* @conditional-compile-remove(gallery-layouts) */
23608
23546
  DefaultGalleryLayout: React.createElement(reactIcons.TableSimple20Regular, null),
23609
- /* @conditional-compile-remove(gallery-layouts) */
23610
23547
  FloatingLocalVideoGalleryLayout: React.createElement(reactIcons.BoardSplit20Regular, null),
23611
- /* @conditional-compile-remove(gallery-layouts) */
23612
23548
  FocusedContentGalleryLayout: React.createElement(reactIcons.ContentView20Regular, null),
23613
- /* @conditional-compile-remove(gallery-layouts) */
23614
23549
  LargeGalleryLayout: React.createElement(reactIcons.Table20Regular, null),
23615
23550
  /* @conditional-compile-remove(control-bar-button-injection) */
23616
23551
  DefaultCustomButton: React.createElement(reactIcons.Circle20Regular, null),
@@ -25237,6 +25172,12 @@ const ChatScreen = (props) => {
25237
25172
  /* @conditional-compile-remove(image-overlay) */
25238
25173
  const inlineImageOptions = {
25239
25174
  onRenderInlineImage: (inlineImage, defaultOnRender) => {
25175
+ var _a, _b;
25176
+ const message = adapter.getState().thread.chatMessages[inlineImage.messageId];
25177
+ const attachments = (_b = (_a = message === null || message === void 0 ? void 0 : message.content) === null || _a === void 0 ? void 0 : _a.attachments) === null || _b === void 0 ? void 0 : _b.find((attachment) => attachment.id === inlineImage.imgAttrs.id);
25178
+ if (attachments === undefined) {
25179
+ return defaultOnRender(inlineImage);
25180
+ }
25240
25181
  return (React.createElement("span", { key: inlineImage.imgAttrs.id, onClick: () => onInlineImageClicked(inlineImage.imgAttrs.id || '', inlineImage.messageId), tabIndex: 0, role: "button", onKeyDown: (e) => {
25241
25182
  if (e.key === 'Enter') {
25242
25183
  onInlineImageClicked(inlineImage.imgAttrs.id || '', inlineImage.messageId);
@@ -27494,9 +27435,7 @@ const DesktopMoreButton = (props) => {
27494
27435
  }), [startCaptionsButtonHandlers, startCaptionsButtonProps.currentSpokenLanguage]);
27495
27436
  /* @conditional-compile-remove(overflow-top-composite) */
27496
27437
  const [galleryPositionTop, setGalleryPositionTop] = React.useState(false);
27497
- /* @conditional-compile-remove(gallery-layouts) */
27498
27438
  const [focusedContentOn, setFocusedContentOn] = React.useState(false);
27499
- /* @conditional-compile-remove(gallery-layouts) */
27500
27439
  const [previousLayout, setPreviousLayout] = React.useState((_a = props.userSetGalleryLayout) !== null && _a !== void 0 ? _a : 'floatingLocalVideo');
27501
27440
  /* @conditional-compile-remove(dtmf-dialer) */
27502
27441
  const callees = useSelector$1(getTargetCallees);
@@ -27510,7 +27449,7 @@ const DesktopMoreButton = (props) => {
27510
27449
  tooltipOffContent: localeStrings.strings.callWithChat.moreDrawerButtonTooltip
27511
27450
  }), [localeStrings]);
27512
27451
  const moreButtonContextualMenuItems = [];
27513
- /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(gallery-layouts) */
27452
+ /* @conditional-compile-remove(close-captions) */
27514
27453
  const menuSubIconStyleSet = {
27515
27454
  root: {
27516
27455
  height: 'unset',
@@ -27620,7 +27559,6 @@ const DesktopMoreButton = (props) => {
27620
27559
  if (props.onSetDialpadPage && allowDtmfDialer) {
27621
27560
  moreButtonContextualMenuItems.push(dtmfDialerScreenOption);
27622
27561
  }
27623
- /* @conditional-compile-remove(gallery-layouts) */
27624
27562
  if (props.onUserSetOverflowGalleryPositionChange) {
27625
27563
  const galleryOptions = {
27626
27564
  key: 'overflowGalleryPositionKey',
@@ -27770,7 +27708,6 @@ const DesktopMoreButton = (props) => {
27770
27708
  (_f = (_e = galleryOptions.subMenuProps) === null || _e === void 0 ? void 0 : _e.items) === null || _f === void 0 ? void 0 : _f.push(galleryOption);
27771
27709
  /* @conditional-compile-remove(overflow-top-composite) */
27772
27710
  (_h = (_g = galleryOptions.subMenuProps) === null || _g === void 0 ? void 0 : _g.items) === null || _h === void 0 ? void 0 : _h.push(overflowGalleryOption);
27773
- /* @conditional-compile-remove(gallery-layouts) */
27774
27711
  moreButtonContextualMenuItems.push(galleryOptions);
27775
27712
  }
27776
27713
  /* @conditional-compile-remove(control-bar-button-injection) */
@@ -28006,7 +27943,7 @@ const CommonCallControlBar = (props) => {
28006
27943
  /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ isEnabled$1(options === null || options === void 0 ? void 0 : options.moreButton) &&
28007
27944
  (/*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ isEnabled$1(options === null || options === void 0 ? void 0 : options.holdButton) ||
28008
27945
  /* @conditional-compile-remove(close-captions) */ props.isCaptionsSupported ||
28009
- /* @conditional-compile-remove(gallery-layouts) */ props.onUserSetGalleryLayout);
27946
+ props.onUserSetGalleryLayout);
28010
27947
  /*@conditional-compile-remove(rooms) */
28011
27948
  const role = (_a = props.callAdapter.getState().call) === null || _a === void 0 ? void 0 : _a.role;
28012
27949
  /*@conditional-compile-remove(rooms) */
@@ -28067,13 +28004,7 @@ const CommonCallControlBar = (props) => {
28067
28004
  /* @conditional-compile-remove(close-captions) */
28068
28005
  isCaptionsSupported: props.isCaptionsSupported,
28069
28006
  /* @conditional-compile-remove(close-captions) */
28070
- onCaptionsSettingsClick: openCaptionsSettingsModal,
28071
- /* @conditional-compile-remove(gallery-layouts) */
28072
- onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange,
28073
- /* @conditional-compile-remove(gallery-layouts) */
28074
- onUserSetGalleryLayout: props.onUserSetGalleryLayout,
28075
- /* @conditional-compile-remove(gallery-layouts) */
28076
- userSetGalleryLayout: props.userSetGalleryLayout,
28007
+ onCaptionsSettingsClick: openCaptionsSettingsModal, onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange, onUserSetGalleryLayout: props.onUserSetGalleryLayout, userSetGalleryLayout: props.userSetGalleryLayout,
28077
28008
  /* @conditional-compile-remove(dtmf-dialer) */
28078
28009
  dtmfDialerPresent: props.dtmfDialerPresent,
28079
28010
  /* @conditional-compile-remove(dtmf-dialer) */
@@ -28494,7 +28425,6 @@ const MoreDrawer = (props) => {
28494
28425
  if (props.onSetDialpadPage && allowDtmfDialer) {
28495
28426
  drawerMenuItems.push(dtmfDialerScreenOption);
28496
28427
  }
28497
- /* @conditional-compile-remove(gallery-layouts) */
28498
28428
  const galleryLayoutOptions = {
28499
28429
  itemKey: 'galleryPositionKey',
28500
28430
  iconProps: {
@@ -28548,7 +28478,6 @@ const MoreDrawer = (props) => {
28548
28478
  };
28549
28479
  /* @conditional-compile-remove(gallery-layout-composite) */
28550
28480
  (_d = galleryLayoutOptions.subMenuProps) === null || _d === void 0 ? void 0 : _d.push(galleryOption);
28551
- /* @conditional-compile-remove(gallery-layouts) */
28552
28481
  drawerMenuItems.push(galleryLayoutOptions);
28553
28482
  if (drawerSelectionOptions !== false && isEnabled(drawerSelectionOptions === null || drawerSelectionOptions === void 0 ? void 0 : drawerSelectionOptions.peopleButton)) {
28554
28483
  drawerMenuItems.push({
@@ -28752,7 +28681,6 @@ const PreparedMoreDrawer = (props) => {
28752
28681
  spokenLanguageMenuTitle: strings.moreDrawerSpokenLanguageMenuTitle,
28753
28682
  /* @conditional-compile-remove(close-captions) */
28754
28683
  captionLanguageMenuTitle: strings.moreDrawerCaptionLanguageMenuTitle,
28755
- /* @conditional-compile-remove(gallery-layouts) */
28756
28684
  galleryOptionsMenuTitle: strings.moreDrawerGalleryOptionsMenuTitle
28757
28685
  }), [strings]);
28758
28686
  const deviceProps = useSelector$1(moreDrawerSelector);
@@ -30716,13 +30644,7 @@ const CallArrangement = (props) => {
30716
30644
  /* @conditional-compile-remove(close-captions) */
30717
30645
  isCaptionsOn: isCaptionsOn,
30718
30646
  /* @conditional-compile-remove(video-background-effects) */
30719
- onClickVideoEffects: onResolveVideoEffectDependency ? openVideoEffectsPane : undefined, displayVertical: verticalControlBar,
30720
- /* @conditional-compile-remove(gallery-layouts) */
30721
- onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange,
30722
- /* @conditional-compile-remove(gallery-layouts) */
30723
- onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange,
30724
- /* @conditional-compile-remove(gallery-layouts) */
30725
- userSetGalleryLayout: props.userSetGalleryLayout,
30647
+ onClickVideoEffects: onResolveVideoEffectDependency ? openVideoEffectsPane : undefined, displayVertical: verticalControlBar, onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout,
30726
30648
  /* @conditional-compile-remove(dtmf-dialer) */
30727
30649
  onSetDialpadPage: props.onSetDialpadPage,
30728
30650
  /* @conditional-compile-remove(dtmf-dialer) */
@@ -30734,11 +30656,7 @@ const CallArrangement = (props) => {
30734
30656
  /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
30735
30657
  disableButtonsForHoldScreen: isInLocalHold,
30736
30658
  /* @conditional-compile-remove(close-captions) */
30737
- isCaptionsSupported: isTeamsCall && hasJoinedCall,
30738
- /* @conditional-compile-remove(gallery-layouts) */
30739
- onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange,
30740
- /* @conditional-compile-remove(gallery-layouts) */
30741
- userSetGalleryLayout: props.userSetGalleryLayout,
30659
+ isCaptionsSupported: isTeamsCall && hasJoinedCall, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout,
30742
30660
  /* @conditional-compile-remove(dtmf-dialer) */
30743
30661
  onSetDialpadPage: props.onSetDialpadPage,
30744
30662
  /* @conditional-compile-remove(dtmf-dialer) */
@@ -30865,7 +30783,7 @@ const MediaGallery = (props) => {
30865
30783
  }, [(_c = props.remoteVideoTileMenuOptions) === null || _c === void 0 ? void 0 : _c.isHidden, props.isMobile, props.drawerMenuHostId]);
30866
30784
  /* @conditional-compile-remove(vertical-gallery) */
30867
30785
  const overflowGalleryPosition = React.useMemo(() => {
30868
- /* @conditional-compile-remove(gallery-layouts) */
30786
+ /* @conditional-compile-remove(overflow-top-composite) */
30869
30787
  if (props.userSetOverflowGalleryPosition === 'horizontalTop') {
30870
30788
  return props.userSetOverflowGalleryPosition;
30871
30789
  }
@@ -30873,7 +30791,7 @@ const MediaGallery = (props) => {
30873
30791
  ? 'verticalRight'
30874
30792
  : 'horizontalBottom';
30875
30793
  }, [
30876
- /* @conditional-compile-remove(gallery-layouts) */ props.userSetOverflowGalleryPosition,
30794
+ /* @conditional-compile-remove(overflow-top-composite) */ props.userSetOverflowGalleryPosition,
30877
30795
  containerWidth,
30878
30796
  containerHeight
30879
30797
  ]);
@@ -30885,7 +30803,6 @@ const MediaGallery = (props) => {
30885
30803
  const { onStartRemoteSpotlightWithPrompt, onStopRemoteSpotlightWithPrompt } = useRemoteSpotlightCallbacksWithPrompt(onStartRemoteSpotlight, onStopRemoteSpotlight, setIsPromptOpen, setPromptProps);
30886
30804
  const VideoGalleryMemoized = React.useMemo(() => {
30887
30805
  const layoutBasedOnUserSelection = () => {
30888
- /* @conditional-compile-remove(gallery-layouts) */
30889
30806
  return props.localVideoTileOptions ? layoutBasedOnTilePosition : props.userSetGalleryLayout;
30890
30807
  };
30891
30808
  return (React.createElement(VideoGallery, Object.assign({}, videoGalleryProps, { localVideoViewOptions: localVideoViewOptions$2, remoteVideoViewOptions: remoteVideoViewOptions, styles: VideoGalleryStyles, layout: layoutBasedOnUserSelection(), showCameraSwitcherInLocalPreview: props.isMobile, localVideoCameraCycleButtonProps: cameraSwitcherProps, onRenderAvatar: onRenderAvatar, remoteVideoTileMenu: remoteVideoTileMenuOptions,
@@ -30923,7 +30840,6 @@ const MediaGallery = (props) => {
30923
30840
  isRoomsCall,
30924
30841
  /* @conditional-compile-remove(vertical-gallery) */
30925
30842
  containerAspectRatio,
30926
- /* @conditional-compile-remove(gallery-layouts) */
30927
30843
  props.userSetGalleryLayout,
30928
30844
  layoutBasedOnTilePosition,
30929
30845
  /* @conditional-compile-remove(reaction) */
@@ -31276,15 +31192,7 @@ const buttonTextStyles = { label: { fontSize: '0.875rem' } };
31276
31192
  */
31277
31193
  const CallPage = (props) => {
31278
31194
  var _a;
31279
- const { callInvitationURL, onFetchAvatarPersonaData, onFetchParticipantMenuItems, options, mobileView,
31280
- /* @conditional-compile-remove(gallery-layouts) */
31281
- galleryLayout = 'floatingLocalVideo',
31282
- /* @conditional-compile-remove(gallery-layouts) */
31283
- onUserSetGalleryLayoutChange,
31284
- /* @conditional-compile-remove(gallery-layouts) */
31285
- userSetOverflowGalleryPosition = 'Responsive',
31286
- /* @conditional-compile-remove(gallery-layouts) */
31287
- onSetUserSetOverflowGalleryPosition, onCloseChatPane } = props;
31195
+ const { callInvitationURL, onFetchAvatarPersonaData, onFetchParticipantMenuItems, options, mobileView, galleryLayout = 'floatingLocalVideo', onUserSetGalleryLayoutChange, userSetOverflowGalleryPosition = 'Responsive', onSetUserSetOverflowGalleryPosition, onCloseChatPane } = props;
31288
31196
  // To use useProps to get these states, we need to create another file wrapping Call,
31289
31197
  // It seems unnecessary in this case, so we get the updated states using this approach.
31290
31198
  const { callStatus } = useSelector$1(callStatusSelector);
@@ -31321,11 +31229,7 @@ const CallPage = (props) => {
31321
31229
  else {
31322
31230
  return (React.createElement(MediaGallery, Object.assign({ isMobile: mobileView }, mediaGalleryProps, mediaGalleryHandlers, { onFetchAvatarPersonaData: onFetchAvatarPersonaData, remoteVideoTileMenuOptions: options === null || options === void 0 ? void 0 : options.remoteVideoTileMenuOptions, drawerMenuHostId: drawerMenuHostId,
31323
31231
  /* @conditional-compile-remove(click-to-call) */
31324
- localVideoTileOptions: options === null || options === void 0 ? void 0 : options.localVideoTile,
31325
- /* @conditional-compile-remove(gallery-layouts) */
31326
- userSetOverflowGalleryPosition: userSetOverflowGalleryPosition,
31327
- /* @conditional-compile-remove(gallery-layouts) */
31328
- userSetGalleryLayout: galleryLayout,
31232
+ localVideoTileOptions: options === null || options === void 0 ? void 0 : options.localVideoTile, userSetOverflowGalleryPosition: userSetOverflowGalleryPosition, userSetGalleryLayout: galleryLayout,
31329
31233
  /* @conditional-compile-remove(spotlight) */
31330
31234
  setIsPromptOpen: setIsPromptOpen,
31331
31235
  /* @conditional-compile-remove(spotlight) */
@@ -31342,13 +31246,7 @@ const CallPage = (props) => {
31342
31246
  increaseFlyoutItemSize: mobileView
31343
31247
  },
31344
31248
  /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
31345
- onFetchAvatarPersonaData: onFetchAvatarPersonaData, mobileView: mobileView, modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => _isInCall(callStatus) ? (isNetworkHealthy(networkReconnectTileProps.networkReconnectValue) ? (onRenderGalleryContentTrampoline()) : (React.createElement(NetworkReconnectTile, Object.assign({}, networkReconnectTileProps)))) : (React.createElement(React.Fragment, null)), updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onCloseChatPane: onCloseChatPane, dataUiId: 'call-page', latestErrors: props.latestErrors, onDismissError: props.onDismissError,
31346
- /* @conditional-compile-remove(gallery-layouts) */
31347
- onUserSetOverflowGalleryPositionChange: onSetUserSetOverflowGalleryPosition,
31348
- /* @conditional-compile-remove(gallery-layouts) */
31349
- onUserSetGalleryLayoutChange: onUserSetGalleryLayoutChange,
31350
- /* @conditional-compile-remove(gallery-layouts) */
31351
- userSetGalleryLayout: galleryLayout,
31249
+ onFetchAvatarPersonaData: onFetchAvatarPersonaData, mobileView: mobileView, modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => _isInCall(callStatus) ? (isNetworkHealthy(networkReconnectTileProps.networkReconnectValue) ? (onRenderGalleryContentTrampoline()) : (React.createElement(NetworkReconnectTile, Object.assign({}, networkReconnectTileProps)))) : (React.createElement(React.Fragment, null)), updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onCloseChatPane: onCloseChatPane, dataUiId: 'call-page', latestErrors: props.latestErrors, onDismissError: props.onDismissError, onUserSetOverflowGalleryPositionChange: onSetUserSetOverflowGalleryPosition, onUserSetGalleryLayoutChange: onUserSetGalleryLayoutChange, userSetGalleryLayout: galleryLayout,
31352
31250
  /* @conditional-compile-remove(capabilities) */
31353
31251
  capabilitiesChangedNotificationBarProps: props.capabilitiesChangedNotificationBarProps,
31354
31252
  /* @conditional-compile-remove(dtmf-dialer) */
@@ -33662,9 +33560,7 @@ const MainScreen = (props) => {
33662
33560
  const endedCall = useSelector$1(getEndedCall);
33663
33561
  const [sidePaneRenderer, setSidePaneRenderer] = React.useState();
33664
33562
  const [injectedSidePaneProps, setInjectedSidePaneProps] = React.useState();
33665
- /* @conditional-compile-remove(gallery-layouts) */
33666
33563
  const [userSetGalleryLayout, setUserSetGalleryLayout] = React.useState((_c = (_b = (_a = props.options) === null || _a === void 0 ? void 0 : _a.galleryOptions) === null || _b === void 0 ? void 0 : _b.layout) !== null && _c !== void 0 ? _c : 'floatingLocalVideo');
33667
- /* @conditional-compile-remove(gallery-layouts) */
33668
33564
  const [userSetOverflowGalleryPosition, setUserSetOverflowGalleryPosition] = React.useState('Responsive');
33669
33565
  const overridePropsRef = React.useRef(props.overrideSidePane);
33670
33566
  React.useEffect(() => {
@@ -33771,15 +33667,7 @@ const MainScreen = (props) => {
33771
33667
  capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps }));
33772
33668
  break;
33773
33669
  case 'call':
33774
- pageElement = (React.createElement(CallPage, { callInvitationURL: callInvitationUrl, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onCloseChatPane: props.onCloseChatPane, latestErrors: latestErrors, onDismissError: onDismissError,
33775
- /* @conditional-compile-remove(gallery-layouts) */
33776
- galleryLayout: userSetGalleryLayout,
33777
- /* @conditional-compile-remove(gallery-layouts) */
33778
- onUserSetGalleryLayoutChange: setUserSetGalleryLayout,
33779
- /* @conditional-compile-remove(gallery-layouts) */
33780
- onSetUserSetOverflowGalleryPosition: setUserSetOverflowGalleryPosition,
33781
- /* @conditional-compile-remove(gallery-layouts) */
33782
- userSetOverflowGalleryPosition: userSetOverflowGalleryPosition,
33670
+ pageElement = (React.createElement(CallPage, { callInvitationURL: callInvitationUrl, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: setSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onCloseChatPane: props.onCloseChatPane, latestErrors: latestErrors, onDismissError: onDismissError, galleryLayout: userSetGalleryLayout, onUserSetGalleryLayoutChange: setUserSetGalleryLayout, onSetUserSetOverflowGalleryPosition: setUserSetOverflowGalleryPosition, userSetOverflowGalleryPosition: userSetOverflowGalleryPosition,
33783
33671
  /* @conditional-compile-remove(capabilities) */
33784
33672
  capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps }));
33785
33673
  break;
@@ -36122,7 +36010,6 @@ const CallWithChatScreen = (props) => {
36122
36010
  /* @conditional-compile-remove(unsupported-browser) */
36123
36011
  onEnvironmentInfoTroubleshootingClick: props.onEnvironmentInfoTroubleshootingClick,
36124
36012
  remoteVideoTileMenuOptions: props.remoteVideoTileMenuOptions,
36125
- /* @conditional-compile-remove(gallery-layouts) */
36126
36013
  galleryOptions: props.galleryOptions,
36127
36014
  /* @conditional-compile-remove(click-to-call) */
36128
36015
  localVideoTile: props.localVideoTile,
@@ -36149,7 +36036,6 @@ const CallWithChatScreen = (props) => {
36149
36036
  props.onNetworkingTroubleShootingClick,
36150
36037
  /* @conditional-compile-remove(call-readiness) */
36151
36038
  props.onPermissionsTroubleshootingClick,
36152
- /* @conditional-compile-remove(gallery-layouts) */
36153
36039
  props.galleryOptions,
36154
36040
  /* @conditional-compile-remove(click-to-call) */
36155
36041
  props.localVideoTile,
@@ -36224,9 +36110,7 @@ const CallWithChatComposite = (props) => {
36224
36110
  /* @conditional-compile-remove(file-sharing) */
36225
36111
  fileSharing: options === null || options === void 0 ? void 0 : options.fileSharing,
36226
36112
  /* @conditional-compile-remove(click-to-call) */
36227
- localVideoTile: options === null || options === void 0 ? void 0 : options.localVideoTile,
36228
- /* @conditional-compile-remove(gallery-layouts) */
36229
- galleryOptions: options === null || options === void 0 ? void 0 : options.galleryOptions,
36113
+ localVideoTile: options === null || options === void 0 ? void 0 : options.localVideoTile, galleryOptions: options === null || options === void 0 ? void 0 : options.galleryOptions,
36230
36114
  /* @conditional-compile-remove(custom-branding) */
36231
36115
  logo: (_a = options === null || options === void 0 ? void 0 : options.branding) === null || _a === void 0 ? void 0 : _a.logo,
36232
36116
  /* @conditional-compile-remove(custom-branding) */