@azure/communication-react 1.16.0-alpha-202404180013 → 1.16.0-alpha-202404190012

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 (108) hide show
  1. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-C3t87AZz.js → ChatMessageComponentAsRichTextEditBox-WGqg2woK.js} +2 -2
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-C3t87AZz.js.map → ChatMessageComponentAsRichTextEditBox-WGqg2woK.js.map} +1 -1
  3. package/dist/dist-cjs/communication-react/{index-BP7335hI.js → index-oaEwmItW.js} +62 -221
  4. package/dist/dist-cjs/communication-react/index-oaEwmItW.js.map +1 -0
  5. package/dist/dist-cjs/communication-react/index.js +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  8. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -1
  9. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  10. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +0 -2
  11. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  12. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +0 -2
  13. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -2
  15. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  16. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +3 -13
  17. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  18. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +1 -3
  19. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  20. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +2 -1
  21. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +6 -13
  22. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  23. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +2 -10
  24. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  25. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  26. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +0 -4
  27. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  28. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +0 -3
  29. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  30. package/dist/dist-esm/calling-stateful-client/src/Converter.js +0 -1
  31. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  32. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js +0 -1
  33. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js.map +1 -1
  34. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  35. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js +0 -8
  37. package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js.map +1 -1
  38. package/dist/dist-esm/react-components/src/components/Drawer/index.js +0 -1
  39. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  40. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +3 -11
  41. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js +0 -7
  43. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/components/ReactionButton.js +0 -10
  45. package/dist/dist-esm/react-components/src/components/ReactionButton.js.map +1 -1
  46. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +2 -7
  47. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  48. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js +0 -6
  49. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js.map +1 -1
  50. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js +0 -10
  51. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js.map +1 -1
  52. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +3 -14
  53. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  54. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/reactionUtils.js +0 -6
  55. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/reactionUtils.js.map +1 -1
  56. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +0 -2
  57. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  58. package/dist/dist-esm/react-components/src/components/VideoGallery.js +6 -21
  59. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  60. package/dist/dist-esm/react-components/src/components/VideoTile.js +1 -4
  61. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  62. package/dist/dist-esm/react-components/src/components/index.js +0 -1
  63. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  64. package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js +0 -7
  65. package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js.map +1 -1
  66. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js +0 -17
  67. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js.map +1 -1
  68. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +2 -1
  69. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
  70. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +0 -4
  71. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  72. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  73. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  74. package/dist/dist-esm/react-components/src/theming/icons.js +1 -7
  75. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  76. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  77. package/dist/dist-esm/react-components/src/types/ReactionTypes.js.map +1 -1
  78. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  79. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +1 -3
  80. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  81. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  82. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +1 -3
  83. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  84. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +0 -11
  85. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  86. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +1 -5
  87. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  88. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Reaction.js +0 -6
  89. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Reaction.js.map +1 -1
  90. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +0 -1
  91. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  92. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +7 -1
  93. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +26 -4
  94. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  95. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  96. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +0 -2
  97. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  98. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +0 -1
  99. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  100. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +0 -9
  101. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  102. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +0 -2
  103. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  104. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  105. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  106. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  107. package/package.json +1 -1
  108. package/dist/dist-cjs/communication-react/index-BP7335hI.js.map +0 -1
@@ -176,7 +176,7 @@ function getDefaultExportFromCjs (x) {
176
176
  // Copyright (c) Microsoft Corporation.
177
177
  // Licensed under the MIT License.
178
178
  // GENERATED FILE. DO NOT EDIT MANUALLY.
179
- var telemetryVersion = '1.16.0-alpha-202404180013';
179
+ var telemetryVersion = '1.16.0-alpha-202404190012';
180
180
 
181
181
 
182
182
  var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
@@ -424,7 +424,6 @@ const getSpotlightCallFeature = (state, props) => {
424
424
  var _a;
425
425
  return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.spotlight;
426
426
  };
427
- /* @conditional-compile-remove(reaction) */
428
427
  /**
429
428
  * @private
430
429
  */
@@ -685,7 +684,6 @@ const raiseHandButtonSelector = reselect__namespace.createSelector([getLocalPart
685
684
  disabled: callState === 'InLobby' ? true : (_a = callState === 'Connecting') !== null && _a !== void 0 ? _a : false
686
685
  };
687
686
  });
688
- /* @conditional-compile-remove(reaction) */
689
687
  /**
690
688
  * Selector for {@link ReactionButton} component.
691
689
  *
@@ -909,7 +907,6 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
909
907
  yield (raiseHandFeature === null || raiseHandFeature === void 0 ? void 0 : raiseHandFeature.raiseHand());
910
908
  }
911
909
  });
912
- /* @conditional-compile-remove(reaction) */
913
910
  const onReactionClick = (reaction) => __awaiter$R(void 0, void 0, void 0, function* () {
914
911
  var _c;
915
912
  if (reaction === 'like' ||
@@ -1190,7 +1187,6 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1190
1187
  onRaiseHand,
1191
1188
  onLowerHand,
1192
1189
  onToggleRaiseHand,
1193
- /* @conditional-compile-remove(reaction) */
1194
1190
  onReactionClick: onReactionClick,
1195
1191
  /* @conditional-compile-remove(PSTN-calls) */
1196
1192
  onAddParticipant: notImplemented,
@@ -1860,7 +1856,6 @@ function convertSdkCallToDeclarativeCall(call) {
1860
1856
  /* @conditional-compile-remove(ppt-live) */
1861
1857
  pptLive: { isActive: false },
1862
1858
  raiseHand: { raisedHands: [] },
1863
- /* @conditional-compile-remove(reaction) */
1864
1859
  localParticipantReaction: undefined,
1865
1860
  transcription: { isTranscriptionActive: false },
1866
1861
  screenShareRemoteParticipant: undefined,
@@ -1961,7 +1956,6 @@ immer.enablePatches();
1961
1956
  * @private
1962
1957
  */
1963
1958
  const MAX_CALL_HISTORY_LENGTH = 10;
1964
- /* @conditional-compile-remove(reaction) */
1965
1959
  /**
1966
1960
  * @private
1967
1961
  */
@@ -1973,7 +1967,6 @@ let CallContext$2 = class CallContext {
1973
1967
  constructor(userId, maxListeners = 50,
1974
1968
  /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId) {
1975
1969
  this._callIdHistory = new CallIdHistory();
1976
- /* @conditional-compile-remove(reaction) */
1977
1970
  this._timeOutId = {};
1978
1971
  /**
1979
1972
  * Tees direct errors to state.
@@ -2325,7 +2318,6 @@ let CallContext$2 = class CallContext {
2325
2318
  }
2326
2319
  });
2327
2320
  }
2328
- /* @conditional-compile-remove(reaction) */
2329
2321
  setReceivedReactionFromParticipant(callId, participantKey, reactionMessage) {
2330
2322
  this.modifyState((draft) => {
2331
2323
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -2915,7 +2907,6 @@ const findOldestCallEnded = (calls) => {
2915
2907
  }
2916
2908
  return oldestCallId;
2917
2909
  };
2918
- /* @conditional-compile-remove(reaction) */
2919
2910
  function clearParticipantReactionState(callContext, callId, participantKey) {
2920
2911
  callContext.setReceivedReactionFromParticipant(callId, participantKey, null);
2921
2912
  }
@@ -4106,7 +4097,6 @@ class CapabilitiesSubscriber {
4106
4097
 
4107
4098
  // Copyright (c) Microsoft Corporation.
4108
4099
  // Licensed under the MIT License.
4109
- /* @conditional-compile-remove(reaction) */
4110
4100
  /**
4111
4101
  * @private
4112
4102
  */
@@ -4265,7 +4255,6 @@ class CallSubscriber {
4265
4255
  (_b = this._CaptionsFeatureSubscriber) === null || _b === void 0 ? void 0 : _b.unsubscribe();
4266
4256
  (_c = this._raiseHandSubscriber) === null || _c === void 0 ? void 0 : _c.unsubscribe();
4267
4257
  this._capabilitiesSubscriber.unsubscribe();
4268
- /* @conditional-compile-remove(reaction) */
4269
4258
  (_d = this._reactionSubscriber) === null || _d === void 0 ? void 0 : _d.unsubscribe();
4270
4259
  /* @conditional-compile-remove(spotlight) */
4271
4260
  this._spotlightSubscriber.unsubscribe();
@@ -4364,7 +4353,6 @@ class CallSubscriber {
4364
4353
  this._pptLiveSubscriber = new PPTLiveSubscriber(this._callIdRef, this._context, this._call);
4365
4354
  this._transcriptionSubscriber = new TranscriptionSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Transcription));
4366
4355
  this._raiseHandSubscriber = new RaiseHandSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.RaiseHand));
4367
- /* @conditional-compile-remove(reaction) */
4368
4356
  this._reactionSubscriber = new ReactionSubscriber(this._callIdRef, this._context, this._call.feature(communicationCalling.Features.Reaction));
4369
4357
  this._optimalVideoCountSubscriber = new OptimalVideoCountSubscriber({
4370
4358
  callIdRef: this._callIdRef,
@@ -6748,11 +6736,9 @@ const GalleryRightButton = () => {
6748
6736
  return rtl ? React.createElement(reactIcons.ChevronLeft20Regular, null) : React.createElement(reactIcons.ChevronRight20Regular, null);
6749
6737
  };
6750
6738
  const ControlButtonRaiseHandIcon = () => {
6751
- /* @conditional-compile-remove(reaction) */
6752
6739
  return React.createElement(reactIcons.HandRight20Regular, null);
6753
6740
  };
6754
6741
  const ControlButtonLowerHandIcon = () => {
6755
- /* @conditional-compile-remove(reaction) */
6756
6742
  return React.createElement(reactIcons.HandRightOff20Regular, null);
6757
6743
  };
6758
6744
  /**
@@ -6778,7 +6764,6 @@ const DEFAULT_COMPONENT_ICONS = {
6778
6764
  ControlButtonLowerHand: React.createElement(ControlButtonLowerHandIcon, null),
6779
6765
  RaiseHandContextualMenuItem: React.createElement(reactIcons.HandRight20Regular, null),
6780
6766
  LowerHandContextualMenuItem: React.createElement(reactIcons.HandRightOff20Regular, null),
6781
- /* @conditional-compile-remove(reaction) */
6782
6767
  ReactionButtonIcon: React.createElement(reactIcons.Emoji20Regular, null),
6783
6768
  /* @conditional-compile-remove(attachment-upload) */
6784
6769
  CancelAttachmentUpload: React.createElement(reactIcons.Dismiss16Regular, null),
@@ -10072,7 +10057,8 @@ const insertTableMenuFocusZone = (theme) => {
10072
10057
  return react.mergeStyles({
10073
10058
  lineHeight: '12px',
10074
10059
  width: '5.125rem',
10075
- border: `solid 0.0625rem ${theme.palette.neutralTertiaryAlt}`
10060
+ border: `solid 0.0625rem ${theme.palette.neutralTertiaryAlt}`,
10061
+ boxSizing: 'border-box'
10076
10062
  });
10077
10063
  };
10078
10064
  /**
@@ -12827,7 +12813,7 @@ class ErrorBoundary extends React.Component {
12827
12813
  // Copyright (c) Microsoft Corporation.
12828
12814
  // Licensed under the MIT License.
12829
12815
  /* @conditional-compile-remove(rich-text-editor) */
12830
- const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-C3t87AZz.js'); }));
12816
+ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-WGqg2woK.js'); }));
12831
12817
  /**
12832
12818
  * @private
12833
12819
  * Use this function to load RoosterJS dependencies early in the lifecycle.
@@ -12835,7 +12821,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
12835
12821
  *
12836
12822
  * @conditional-compile-remove(rich-text-editor)
12837
12823
  */
12838
- const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-C3t87AZz.js'); });
12824
+ const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-WGqg2woK.js'); });
12839
12825
  /**
12840
12826
  * @private
12841
12827
  */
@@ -14686,8 +14672,6 @@ const _DrawerMenu = (props) => {
14686
14672
 
14687
14673
  // Copyright (c) Microsoft Corporation.
14688
14674
  // Licensed under the MIT License.
14689
- /* @conditional-compile-remove(reaction) */
14690
- /* @conditional-compile-remove(reaction) */
14691
14675
  /**
14692
14676
  * @private
14693
14677
  */
@@ -14699,7 +14683,6 @@ const playFrames$1 = react.memoizeFunction(() => react.keyframes({
14699
14683
  backgroundPosition: '0px 0px'
14700
14684
  }
14701
14685
  }));
14702
- /* @conditional-compile-remove(reaction) */
14703
14686
  /**
14704
14687
  * @param backgroundImage - the uri for the reaction emoji resource
14705
14688
  * @param animationPlayState - the value is either 'running' or 'paused' based on the mouse hover event
@@ -14734,7 +14717,6 @@ const emojiStyles = (backgroundImage, frameCount) => {
14734
14717
  }
14735
14718
  };
14736
14719
  };
14737
- /* @conditional-compile-remove(reaction) */
14738
14720
  /**
14739
14721
  *
14740
14722
  * @private
@@ -14753,7 +14735,6 @@ const reactionEmojiMenuStyles = () => {
14753
14735
  }
14754
14736
  };
14755
14737
  };
14756
- /* @conditional-compile-remove(reaction) */
14757
14738
  /**
14758
14739
  *
14759
14740
  * @private
@@ -14768,7 +14749,6 @@ const reactionToolTipHostStyle = () => {
14768
14749
  }
14769
14750
  };
14770
14751
  };
14771
- /* @conditional-compile-remove(reaction) */
14772
14752
  /**
14773
14753
  *
14774
14754
  * @private
@@ -14783,7 +14763,6 @@ const mobileViewMenuItemStyle = () => {
14783
14763
  height: '2.625rem'
14784
14764
  };
14785
14765
  };
14786
- /* @conditional-compile-remove(reaction) */
14787
14766
  /**
14788
14767
  * @param backgroundImage - the uri for the reaction emoji resource
14789
14768
  * @param animationPlayState - the value is either 'running' or 'paused' based on the mouse hover event
@@ -14815,8 +14794,6 @@ const mobileViewEmojiStyles = (backgroundImage, animationPlayState) => {
14815
14794
 
14816
14795
  // Copyright (c) Microsoft Corporation.
14817
14796
  // Licensed under the MIT License.
14818
- /* @conditional-compile-remove(reaction) */
14819
- /* @conditional-compile-remove(reaction) */
14820
14797
  /**
14821
14798
  * Maps the individual item in menuProps.items passed in the {@link DrawerMenu} into a UI component.
14822
14799
  *
@@ -14851,11 +14828,9 @@ const _ReactionDrawerMenuItem = (props) => {
14851
14828
  }, style: mobileViewEmojiStyles(resourceUrl ? resourceUrl : '', 'running') }));
14852
14829
  }))));
14853
14830
  };
14854
- /* @conditional-compile-remove(reaction) */
14855
14831
  const drawerMenuItemRootStyles = (hoverBackground, fontSize) => (Object.assign(Object.assign({}, fontSize), { height: '3rem', lineHeight: '3rem', padding: '0rem 0.75rem', cursor: 'pointer', ':hover, :focus': {
14856
14832
  background: hoverBackground
14857
14833
  } }));
14858
- /* @conditional-compile-remove(reaction) */
14859
14834
  const disabledDrawerMenuItemRootStyles = (background) => ({
14860
14835
  pointerEvents: 'none',
14861
14836
  background: background,
@@ -15155,25 +15130,19 @@ const useVideoTileContextualMenuProps = (props) => {
15155
15130
 
15156
15131
  // Copyright (c) Microsoft Corporation.
15157
15132
  // Licensed under the MIT License.
15158
- /* @conditional-compile-remove(reaction) */
15159
15133
  /** @private */
15160
15134
  const REACTION_START_DISPLAY_SIZE = 44;
15161
- /* @conditional-compile-remove(reaction) */
15162
15135
  /** @private */
15163
15136
  const REACTION_NUMBER_OF_ANIMATION_FRAMES = 51;
15164
- /* @conditional-compile-remove(reaction) */
15165
15137
  /** @private */
15166
15138
  const REACTION_SCREEN_SHARE_ANIMATION_TIME_MS = 4133;
15167
- /* @conditional-compile-remove(reaction) */
15168
15139
  /** @private */
15169
15140
  const REACTION_DEFAULT_RESOURCE_FRAME_SIZE_PX = 128;
15170
- /* @conditional-compile-remove(reaction) */
15171
15141
  /** @private */
15172
15142
  const getCombinedKey = (userId, reactionType, receivedAt) => {
15173
15143
  const receivedTime = receivedAt.toISOString();
15174
15144
  return userId + reactionType + receivedTime;
15175
15145
  };
15176
- /* @conditional-compile-remove(reaction) */
15177
15146
  /** @private */
15178
15147
  const getReceivedUnixTime = (receivedTime) => {
15179
15148
  return receivedTime.getTime();
@@ -15336,7 +15305,6 @@ const raiseHandLimitedSpaceStyles = {
15336
15305
  // position at the bottom
15337
15306
  bottom: 0
15338
15307
  };
15339
- /* @conditional-compile-remove(reaction) */
15340
15308
  /**
15341
15309
  * @private
15342
15310
  */
@@ -15348,7 +15316,6 @@ const playFrames = react.memoizeFunction((frameHightPx, frameCount) => react.key
15348
15316
  backgroundPosition: `0px ${frameCount * -frameHightPx}px`
15349
15317
  }
15350
15318
  }));
15351
- /* @conditional-compile-remove(reaction) */
15352
15319
  /**
15353
15320
  * @private
15354
15321
  */
@@ -15515,9 +15482,7 @@ const VideoTileMoreOptionsButton = (props) => {
15515
15482
  const VideoTile = (props) => {
15516
15483
  const { children, displayName, initialsName, isMirrored, isMuted,
15517
15484
  /* @conditional-compile-remove(spotlight) */
15518
- isSpotlighted, isPinned, onRenderPlaceholder, renderElement,
15519
- /* @conditional-compile-remove(reaction) */
15520
- overlay: reactionOverlay, showLabel = true, showMuteIndicator = true, styles, userId, noVideoAvailableAriaLabel, isSpeaking, raisedHand, personaMinSize = DEFAULT_PERSONA_MIN_SIZE_PX, personaMaxSize = DEFAULT_PERSONA_MAX_SIZE_PX, contextualMenu } = props;
15485
+ isSpotlighted, isPinned, onRenderPlaceholder, renderElement, overlay: reactionOverlay, showLabel = true, showMuteIndicator = true, styles, userId, noVideoAvailableAriaLabel, isSpeaking, raisedHand, personaMinSize = DEFAULT_PERSONA_MIN_SIZE_PX, personaMaxSize = DEFAULT_PERSONA_MAX_SIZE_PX, contextualMenu } = props;
15521
15486
  const [isHovered, setIsHovered] = React.useState(false);
15522
15487
  const [isFocused, setIsFocused] = React.useState(false);
15523
15488
  // need to set a default otherwise the resizeObserver will get stuck in an infinite loop.
@@ -15625,7 +15590,6 @@ const VideoTile = (props) => {
15625
15590
  ? 0.4
15626
15591
  : 1
15627
15592
  }) }, onRenderPlaceholder ? (onRenderPlaceholder(userId !== null && userId !== void 0 ? userId : '', placeholderOptions, DefaultPlaceholder)) : (React.createElement(DefaultPlaceholder, Object.assign({}, placeholderOptions))))),
15628
- /* @conditional-compile-remove(reaction) */
15629
15593
  reactionOverlay,
15630
15594
  (canShowLabel || participantStateString) && (React.createElement(react.Stack, { horizontal: true, className: tileInfoContainerStyle, tokens: tileInfoContainerTokens },
15631
15595
  React.createElement(react.Stack, { horizontal: true, className: tileInfoStyle },
@@ -15854,7 +15818,6 @@ const putVideoParticipantsFirst = (remoteParticipants) => {
15854
15818
  const remoteParticipantSortedByVideo = videoParticipants.concat(audioParticipants);
15855
15819
  return remoteParticipantSortedByVideo;
15856
15820
  };
15857
- /* @conditional-compile-remove(reaction) */
15858
15821
  /**
15859
15822
  * @private
15860
15823
  */
@@ -15874,7 +15837,6 @@ const getEmojiResource = (reactionName, reactionResources) => {
15874
15837
  }
15875
15838
  return undefined;
15876
15839
  };
15877
- /* @conditional-compile-remove(reaction) */
15878
15840
  /**
15879
15841
  * @private
15880
15842
  */
@@ -15898,8 +15860,6 @@ const getEmojiFrameCount = (reactionName, reactionResources) => {
15898
15860
 
15899
15861
  // Copyright (c) Microsoft Corporation.
15900
15862
  // Licensed under the MIT License.
15901
- /* @conditional-compile-remove(reaction) */
15902
- /* @conditional-compile-remove(reaction) */
15903
15863
  /**
15904
15864
  * Reaction overlay component for Grid
15905
15865
  *
@@ -15957,8 +15917,6 @@ const ParticipantVideoTileOverlay = React.memo((props) => {
15957
15917
 
15958
15918
  // Copyright (c) Microsoft Corporation.
15959
15919
  // Licensed under the MIT License.
15960
- /* @conditional-compile-remove(reaction) */
15961
- /* @conditional-compile-remove(reaction) */
15962
15920
  /**
15963
15921
  * Calculate the start position for a new reaction in the prescriptive wave pattern
15964
15922
  * @private
@@ -15977,7 +15935,6 @@ function generateStartPositionWave(index, halfCanvasWidth, isOriginAtCanvasCente
15977
15935
  const adjustment = scaleStartPos(index);
15978
15936
  return midPointCoordinate + direction * adjustment * halfCanvasWidth;
15979
15937
  }
15980
- /* @conditional-compile-remove(reaction) */
15981
15938
  /**
15982
15939
  * @private
15983
15940
  */
@@ -15988,7 +15945,6 @@ const reactionOverlayStyle = {
15988
15945
  position: 'absolute',
15989
15946
  width: '100%'
15990
15947
  };
15991
- /* @conditional-compile-remove(reaction) */
15992
15948
  /**
15993
15949
  * @private
15994
15950
  */
@@ -15998,7 +15954,6 @@ function getReactionMovementStyle(reactionXPoint) {
15998
15954
  left: `${reactionXPoint}px`
15999
15955
  };
16000
15956
  }
16001
- /* @conditional-compile-remove(reaction) */
16002
15957
  /**
16003
15958
  * Scale metric to determine the start position of a reaction in presentation mode to avoid overlap.
16004
15959
  * @private
@@ -16045,7 +16000,6 @@ function scaleStartPos(index) {
16045
16000
  return 0;
16046
16001
  }
16047
16002
  }
16048
- /* @conditional-compile-remove(reaction) */
16049
16003
  /**
16050
16004
  * We have only one bucket item for presentation style of the reaction animation.
16051
16005
  * We are choosing to keep the array so that, in future, with styles needed to get updated, one
@@ -16061,7 +16015,6 @@ const ReactionStyleBuckets = [
16061
16015
  opacityMax: 0.9
16062
16016
  }
16063
16017
  ];
16064
- /* @conditional-compile-remove(reaction) */
16065
16018
  /**
16066
16019
  * Return a style bucket based on the number of active sprites.
16067
16020
  * For example, the first three reactions should appear at maximum
@@ -16074,7 +16027,6 @@ function getReactionStyleBucket() {
16074
16027
  const index = 0;
16075
16028
  return ReactionStyleBuckets[index];
16076
16029
  }
16077
- /* @conditional-compile-remove(reaction) */
16078
16030
  /**
16079
16031
  * @private
16080
16032
  */
@@ -16086,7 +16038,6 @@ const moveFrames = react.memoizeFunction((maxHeight, travelHeight) => react.keyf
16086
16038
  transform: `translateY(${travelHeight}px)`
16087
16039
  }
16088
16040
  }));
16089
- /* @conditional-compile-remove(reaction) */
16090
16041
  /**
16091
16042
  * @private
16092
16043
  */
@@ -16098,7 +16049,6 @@ const moveAnimationStyles = (maxHeight, travelHeight) => {
16098
16049
  animationTimingFunction: 'cubic-bezier(0, 0.83, 0.19, 1.09)'
16099
16050
  };
16100
16051
  };
16101
- /* @conditional-compile-remove(reaction) */
16102
16052
  /**
16103
16053
  * @private
16104
16054
  */
@@ -16118,7 +16068,6 @@ const opacityTransition = react.memoizeFunction((maxOpacity) => react.keyframes(
16118
16068
  visibility: 'hidden'
16119
16069
  }
16120
16070
  }));
16121
- /* @conditional-compile-remove(reaction) */
16122
16071
  /**
16123
16072
  * @private
16124
16073
  */
@@ -16129,7 +16078,6 @@ const opacityAnimationStyles = (maxOpacity) => {
16129
16078
  animationDuration: `4.133s`
16130
16079
  };
16131
16080
  };
16132
- /* @conditional-compile-remove(reaction) */
16133
16081
  /**
16134
16082
  * @private
16135
16083
  */
@@ -16141,7 +16089,6 @@ const spriteFrames = react.memoizeFunction((numOfFrames, displaySizePx) => react
16141
16089
  backgroundPosition: `0px -${numOfFrames * displaySizePx}px`
16142
16090
  }
16143
16091
  }));
16144
- /* @conditional-compile-remove(reaction) */
16145
16092
  /**
16146
16093
  * @private
16147
16094
  */
@@ -16163,14 +16110,9 @@ const spriteAnimationStyles = (numOfFrames, displaySizePx, imageUrl) => {
16163
16110
 
16164
16111
  // Copyright (c) Microsoft Corporation.
16165
16112
  // Licensed under the MIT License.
16166
- /* @conditional-compile-remove(reaction) */
16167
- /* @conditional-compile-remove(reaction) */
16168
16113
  const MAX_NUMBER_OF_EMOJIS = 50;
16169
- /* @conditional-compile-remove(reaction) */
16170
16114
  const NUMBER_OF_EMOJI_TYPES = 5;
16171
- /* @conditional-compile-remove(reaction) */
16172
16115
  const REACTION_POSITION_ARRAY_SIZE = 55;
16173
- /* @conditional-compile-remove(reaction) */
16174
16116
  /**
16175
16117
  * The overlay responsible for rendering multiple reactions all at once in presentation mode
16176
16118
  * @internal
@@ -16301,26 +16243,21 @@ const RemoteContentShareReactionOverlay = React.memo((props) => {
16301
16243
 
16302
16244
  // Copyright (c) Microsoft Corporation.
16303
16245
  // Licensed under the MIT License.
16304
- /* @conditional-compile-remove(reaction) */
16305
- /* @conditional-compile-remove(reaction) */
16306
16246
  /**
16307
16247
  * Emoji max size
16308
16248
  * @internal
16309
16249
  */
16310
16250
  const DEFAULT_EMOJI_MAX_SIZE_PX = 70;
16311
- /* @conditional-compile-remove(reaction) */
16312
16251
  /**
16313
16252
  * Emoji min size
16314
16253
  * @internal
16315
16254
  */
16316
16255
  const DEFAULT_EMOJI_MIN_SIZE_PX = 32;
16317
- /* @conditional-compile-remove(reaction) */
16318
16256
  /**
16319
16257
  * Emoji resize scale constant
16320
16258
  * @internal
16321
16259
  */
16322
16260
  const REACTION_EMOJI_RESIZE_SCALE_CONSTANT = 3;
16323
- /* @conditional-compile-remove(reaction) */
16324
16261
  /**
16325
16262
  * Reaction overlay component
16326
16263
  *
@@ -16388,8 +16325,7 @@ const _RemoteVideoTile = React.memo((props) => {
16388
16325
  /* @conditional-compile-remove(spotlight) */ isSpotlighted,
16389
16326
  /* @conditional-compile-remove(spotlight) */ onStartSpotlight,
16390
16327
  /* @conditional-compile-remove(spotlight) */ onStopSpotlight,
16391
- /* @conditional-compile-remove(spotlight) */ maxParticipantsToSpotlight, onUpdateScalingMode, disablePinMenuItem, toggleAnnouncerString, strings,
16392
- /* @conditional-compile-remove(reaction) */ reactionResources, streamId } = props;
16328
+ /* @conditional-compile-remove(spotlight) */ maxParticipantsToSpotlight, onUpdateScalingMode, disablePinMenuItem, toggleAnnouncerString, strings, reactionResources, streamId } = props;
16393
16329
  const remoteVideoStreamProps = React.useMemo(() => ({
16394
16330
  isMirrored: remoteVideoViewOptions === null || remoteVideoViewOptions === void 0 ? void 0 : remoteVideoViewOptions.isMirrored,
16395
16331
  isScreenSharingOn,
@@ -16465,7 +16401,6 @@ const _RemoteVideoTile = React.memo((props) => {
16465
16401
  }
16466
16402
  return displayName;
16467
16403
  };
16468
- /* @conditional-compile-remove(reaction) */
16469
16404
  const reactionOverlay = (React.createElement(MeetingReactionOverlay, { overlayMode: "grid-tiles", reaction: remoteParticipant.reaction, reactionResources: reactionResources }));
16470
16405
  /* @conditional-compile-remove(hide-attendee-name) */
16471
16406
  displayName = formatDisplayName();
@@ -16475,9 +16410,7 @@ const _RemoteVideoTile = React.memo((props) => {
16475
16410
  /* @conditional-compile-remove(PSTN-calls) */
16476
16411
  participantState: participantState }, videoTileContextualMenuProps, { isPinned: props.isPinned, onLongTouch: () => setDrawerMenuItemProps(convertContextualMenuItemsToDrawerMenuItemProps$1(contextualMenuProps, () => setDrawerMenuItemProps([]))),
16477
16412
  /* @conditional-compile-remove(spotlight) */
16478
- isSpotlighted: isSpotlighted,
16479
- /* @conditional-compile-remove(reaction) */
16480
- overlay: reactionOverlay })),
16413
+ isSpotlighted: isSpotlighted, overlay: reactionOverlay })),
16481
16414
  drawerMenuItemProps.length > 0 && (React.createElement(react.Layer, { hostId: props.drawerMenuHostId },
16482
16415
  React.createElement(react.Stack, { styles: drawerMenuWrapperStyles },
16483
16416
  React.createElement(_DrawerMenu, { onLightDismiss: () => setDrawerMenuItemProps([]), items: drawerMenuItemProps, heading: remoteParticipant.displayName }))))));
@@ -16587,13 +16520,7 @@ const loadingStyle = react.mergeStyles({
16587
16520
  * https://reactjs.org/docs/react-api.html#reactmemo
16588
16521
  */
16589
16522
  const RemoteScreenShare = React.memo((props) => {
16590
- const { userId, displayName, isMuted, renderElement, onCreateRemoteStreamView, onDisposeRemoteStreamView, isReceiving, participantVideoScalingMode,
16591
- /* @conditional-compile-remove(reaction) */
16592
- reactionResources,
16593
- /* @conditional-compile-remove(reaction) */
16594
- localParticipant,
16595
- /* @conditional-compile-remove(reaction) */
16596
- remoteParticipants,
16523
+ const { userId, displayName, isMuted, renderElement, onCreateRemoteStreamView, onDisposeRemoteStreamView, isReceiving, participantVideoScalingMode, reactionResources, localParticipant, remoteParticipants,
16597
16524
  /* @conditional-compile-remove(ppt-live) */
16598
16525
  isPPTLive } = props;
16599
16526
  const locale = useLocale$1();
@@ -16621,13 +16548,9 @@ const RemoteScreenShare = React.memo((props) => {
16621
16548
  : '';
16622
16549
  /* @conditional-compile-remove(ppt-live) */
16623
16550
  if (isPPTLive) {
16624
- return (React.createElement(VideoTile, { renderElement: renderElement ? (React.createElement(StreamMedia, { videoStreamElement: renderElement, loadingState: isReceiving === false ? 'loading' : 'none' })) : undefined, onRenderPlaceholder: () => React.createElement(LoadingSpinner, { loadingMessage: loadingMessage }),
16625
- /* @conditional-compile-remove(reaction) */
16626
- overlay: React.createElement(MeetingReactionOverlay, { reactionResources: reactionResources, localParticipant: localParticipant, remoteParticipants: remoteParticipants, overlayMode: "screen-share" }) }));
16551
+ return (React.createElement(VideoTile, { renderElement: renderElement ? (React.createElement(StreamMedia, { videoStreamElement: renderElement, loadingState: isReceiving === false ? 'loading' : 'none' })) : undefined, onRenderPlaceholder: () => React.createElement(LoadingSpinner, { loadingMessage: loadingMessage }), overlay: React.createElement(MeetingReactionOverlay, { reactionResources: reactionResources, localParticipant: localParticipant, remoteParticipants: remoteParticipants, overlayMode: "screen-share" }) }));
16627
16552
  }
16628
- return (React.createElement(VideoTile, { displayName: displayName, isMuted: isMuted, renderElement: renderElement ? (React.createElement(StreamMedia, { videoStreamElement: renderElement, loadingState: isReceiving === false ? 'loading' : 'none' })) : undefined, onRenderPlaceholder: () => React.createElement(LoadingSpinner, { loadingMessage: loadingMessage }),
16629
- /* @conditional-compile-remove(reaction) */
16630
- overlay: React.createElement(MeetingReactionOverlay, { reactionResources: reactionResources, localParticipant: localParticipant, remoteParticipants: remoteParticipants, overlayMode: "screen-share" }) }));
16553
+ return (React.createElement(VideoTile, { displayName: displayName, isMuted: isMuted, renderElement: renderElement ? (React.createElement(StreamMedia, { videoStreamElement: renderElement, loadingState: isReceiving === false ? 'loading' : 'none' })) : undefined, onRenderPlaceholder: () => React.createElement(LoadingSpinner, { loadingMessage: loadingMessage }), overlay: React.createElement(MeetingReactionOverlay, { reactionResources: reactionResources, localParticipant: localParticipant, remoteParticipants: remoteParticipants, overlayMode: "screen-share" }) }));
16631
16554
  });
16632
16555
  const LoadingSpinner = (props) => {
16633
16556
  return (React.createElement(react.Stack, { verticalAlign: "center", className: loadingStyle },
@@ -16733,9 +16656,7 @@ const LocalVideoCameraCycleButton = (props) => {
16733
16656
  * @internal
16734
16657
  */
16735
16658
  const _LocalVideoTile = React.memo((props) => {
16736
- const { isAvailable, isMuted, onCreateLocalStreamView, onDisposeLocalStreamView, localVideoViewOptions, renderElement, userId, showLabel, displayName, initialsName, onRenderAvatar, showMuteIndicator, styles, showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel, localVideoSelectedDescription, raisedHand,
16737
- /* @conditional-compile-remove(reaction) */
16738
- reaction,
16659
+ const { isAvailable, isMuted, onCreateLocalStreamView, onDisposeLocalStreamView, localVideoViewOptions, renderElement, userId, showLabel, displayName, initialsName, onRenderAvatar, showMuteIndicator, styles, showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel, localVideoSelectedDescription, raisedHand, reaction,
16739
16660
  /* @conditional-compile-remove(spotlight) */
16740
16661
  isSpotlighted,
16741
16662
  /* @conditional-compile-remove(spotlight) */
@@ -16749,9 +16670,7 @@ const _LocalVideoTile = React.memo((props) => {
16749
16670
  /* @conditional-compile-remove(spotlight) */
16750
16671
  menuKind,
16751
16672
  /* @conditional-compile-remove(spotlight) */
16752
- strings,
16753
- /* @conditional-compile-remove(reaction) */
16754
- reactionResources } = props;
16673
+ strings, reactionResources } = props;
16755
16674
  /* @conditional-compile-remove(spotlight) */
16756
16675
  const theme = useTheme();
16757
16676
  const localVideoStreamProps = React.useMemo(() => ({
@@ -16836,7 +16755,6 @@ const _LocalVideoTile = React.memo((props) => {
16836
16755
  renderElement,
16837
16756
  showCameraSwitcherInLocalPreview
16838
16757
  ]);
16839
- /* @conditional-compile-remove(reaction) */
16840
16758
  const reactionOverlay = reactionResources !== undefined ? (React.createElement(MeetingReactionOverlay, { overlayMode: "grid-tiles", reaction: reaction, reactionResources: reactionResources })) : undefined;
16841
16759
  return (React.createElement(react.Stack, { className: react.mergeStyles({ width: '100%', height: '100%' }),
16842
16760
  /* @conditional-compile-remove(spotlight) */ onKeyDown: menuKind === 'drawer' ? onKeyDown : undefined },
@@ -16844,9 +16762,7 @@ const _LocalVideoTile = React.memo((props) => {
16844
16762
  /* @conditional-compile-remove(spotlight) */
16845
16763
  isSpotlighted: isSpotlighted }, videoTileContextualMenuProps, {
16846
16764
  /* @conditional-compile-remove(spotlight) */
16847
- onLongTouch: () => setDrawerMenuItemProps(convertContextualMenuItemsToDrawerMenuItemProps(contextualMenuProps, () => setDrawerMenuItemProps([]))),
16848
- /* @conditional-compile-remove(reaction) */
16849
- overlay: reactionOverlay }),
16765
+ onLongTouch: () => setDrawerMenuItemProps(convertContextualMenuItemsToDrawerMenuItemProps(contextualMenuProps, () => setDrawerMenuItemProps([]))), overlay: reactionOverlay }),
16850
16766
  /* @conditional-compile-remove(spotlight) */ drawerMenuItemProps.length > 0 && (React.createElement(react.Layer, { hostId: props.drawerMenuHostId },
16851
16767
  React.createElement(react.Stack, { styles: drawerMenuWrapperStyles },
16852
16768
  React.createElement(_DrawerMenu, { onLightDismiss: () => setDrawerMenuItemProps([]), items: drawerMenuItemProps })))))));
@@ -18884,9 +18800,7 @@ const VideoGallery = (props) => {
18884
18800
  /* @conditional-compile-remove(spotlight) */
18885
18801
  onStopRemoteSpotlight,
18886
18802
  /* @conditional-compile-remove(spotlight) */
18887
- maxParticipantsToSpotlight,
18888
- /* @conditional-compile-remove(reaction) */
18889
- reactionResources } = props;
18803
+ maxParticipantsToSpotlight, reactionResources } = props;
18890
18804
  const ids = useIdentifiers();
18891
18805
  const theme = useTheme();
18892
18806
  const localeStrings = useLocale$1().strings.videoGallery;
@@ -18942,9 +18856,7 @@ const VideoGallery = (props) => {
18942
18856
  return layout === 'default' ? strings.localVideoLabel : isNarrow ? '' : strings.localVideoLabel;
18943
18857
  };
18944
18858
  return (React.createElement(react.Stack, { styles: localVideoTileContainerStyles, key: "local-video-tile-key", tabIndex: 0, "aria-label": strings.localVideoMovementLabel, role: 'dialog' },
18945
- React.createElement(_LocalVideoTile, { userId: localParticipant.userId, onCreateLocalStreamView: onCreateLocalStreamView, onDisposeLocalStreamView: onDisposeLocalStreamView, isAvailable: (_a = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable, isMuted: localParticipant.isMuted, renderElement: (_b = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement, displayName: showDisplayNameTrampoline(), initialsName: initialsName, localVideoViewOptions: localVideoViewOptions, onRenderAvatar: onRenderAvatar, showLabel: showLocalVideoTileLabel, showMuteIndicator: showMuteIndicator, showCameraSwitcherInLocalPreview: showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps: localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel: strings.localVideoCameraSwitcherLabel, localVideoSelectedDescription: strings.localVideoSelectedDescription, styles: localVideoTileStyles, raisedHand: localParticipant.raisedHand,
18946
- /* @conditional-compile-remove(reaction) */
18947
- reaction: localParticipant.reaction,
18859
+ React.createElement(_LocalVideoTile, { userId: localParticipant.userId, onCreateLocalStreamView: onCreateLocalStreamView, onDisposeLocalStreamView: onDisposeLocalStreamView, isAvailable: (_a = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable, isMuted: localParticipant.isMuted, renderElement: (_b = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement, displayName: showDisplayNameTrampoline(), initialsName: initialsName, localVideoViewOptions: localVideoViewOptions, onRenderAvatar: onRenderAvatar, showLabel: showLocalVideoTileLabel, showMuteIndicator: showMuteIndicator, showCameraSwitcherInLocalPreview: showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps: localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel: strings.localVideoCameraSwitcherLabel, localVideoSelectedDescription: strings.localVideoSelectedDescription, styles: localVideoTileStyles, raisedHand: localParticipant.raisedHand, reaction: localParticipant.reaction,
18948
18860
  /* @conditional-compile-remove(spotlight) */
18949
18861
  spotlightedParticipantUserIds: spotlightedParticipants,
18950
18862
  /* @conditional-compile-remove(spotlight) */
@@ -18960,9 +18872,7 @@ const VideoGallery = (props) => {
18960
18872
  /* @conditional-compile-remove(spotlight) */
18961
18873
  drawerMenuHostId: drawerMenuHostId,
18962
18874
  /* @conditional-compile-remove(spotlight) */
18963
- strings: strings,
18964
- /* @conditional-compile-remove(reaction) */
18965
- reactionResources: reactionResources })));
18875
+ strings: strings, reactionResources: reactionResources })));
18966
18876
  }, [
18967
18877
  isNarrow,
18968
18878
  localParticipant,
@@ -18994,7 +18904,6 @@ const VideoGallery = (props) => {
18994
18904
  strings,
18995
18905
  /* @conditional-compile-remove(spotlight) */
18996
18906
  drawerMenuHostId,
18997
- /* @conditional-compile-remove(reaction) */
18998
18907
  reactionResources
18999
18908
  ]);
19000
18909
  const onPinParticipant = React.useCallback((userId) => {
@@ -19062,9 +18971,7 @@ const VideoGallery = (props) => {
19062
18971
  /* @conditional-compile-remove(spotlight) */
19063
18972
  onStopSpotlight: onStopRemoteSpotlight,
19064
18973
  /* @conditional-compile-remove(spotlight) */
19065
- maxParticipantsToSpotlight: maxParticipantsToSpotlight,
19066
- /* @conditional-compile-remove(reaction) */
19067
- reactionResources: reactionResources }));
18974
+ maxParticipantsToSpotlight: maxParticipantsToSpotlight, reactionResources: reactionResources }));
19068
18975
  }, [
19069
18976
  onCreateRemoteStreamView,
19070
18977
  onDisposeRemoteVideoStreamView,
@@ -19085,17 +18992,11 @@ const VideoGallery = (props) => {
19085
18992
  /* @conditional-compile-remove(spotlight) */ onStartRemoteSpotlight,
19086
18993
  /* @conditional-compile-remove(spotlight) */ onStopRemoteSpotlight,
19087
18994
  /* @conditional-compile-remove(spotlight) */ maxParticipantsToSpotlight,
19088
- /* @conditional-compile-remove(reaction) */ reactionResources
18995
+ reactionResources
19089
18996
  ]);
19090
18997
  const screenShareParticipant = remoteParticipants.find((participant) => { var _a; return (_a = participant.screenShareStream) === null || _a === void 0 ? void 0 : _a.isAvailable; });
19091
18998
  const localScreenShareStreamComponent = React.createElement(LocalScreenShare, { localParticipant: localParticipant });
19092
- const remoteScreenShareComponent = screenShareParticipant && (React.createElement(RemoteScreenShare, Object.assign({}, screenShareParticipant, { renderElement: (_b = screenShareParticipant.screenShareStream) === null || _b === void 0 ? void 0 : _b.renderElement, onCreateRemoteStreamView: onCreateRemoteStreamView, onDisposeRemoteStreamView: onDisposeRemoteScreenShareStreamView, isReceiving: (_c = screenShareParticipant.screenShareStream) === null || _c === void 0 ? void 0 : _c.isReceiving, participantVideoScalingMode: selectedScalingModeState[screenShareParticipant.userId],
19093
- /* @conditional-compile-remove(reaction) */
19094
- localParticipant: localParticipant,
19095
- /* @conditional-compile-remove(reaction) */
19096
- remoteParticipants: remoteParticipants,
19097
- /* @conditional-compile-remove(reaction) */
19098
- reactionResources: reactionResources,
18999
+ const remoteScreenShareComponent = screenShareParticipant && (React.createElement(RemoteScreenShare, Object.assign({}, screenShareParticipant, { renderElement: (_b = screenShareParticipant.screenShareStream) === null || _b === void 0 ? void 0 : _b.renderElement, onCreateRemoteStreamView: onCreateRemoteStreamView, onDisposeRemoteStreamView: onDisposeRemoteScreenShareStreamView, isReceiving: (_c = screenShareParticipant.screenShareStream) === null || _c === void 0 ? void 0 : _c.isReceiving, participantVideoScalingMode: selectedScalingModeState[screenShareParticipant.userId], localParticipant: localParticipant, remoteParticipants: remoteParticipants, reactionResources: reactionResources,
19099
19000
  /* @conditional-compile-remove(ppt-live) */
19100
19001
  isPPTLive: !((_d = screenShareParticipant.screenShareStream) === null || _d === void 0 ? void 0 : _d.id) })));
19101
19002
  const screenShareComponent = remoteScreenShareComponent
@@ -20385,8 +20286,6 @@ const raiseHandButtonStyles = (theme) => ({
20385
20286
 
20386
20287
  // Copyright (c) Microsoft Corporation.
20387
20288
  // Licensed under the MIT License.
20388
- /* @conditional-compile-remove(reaction) */
20389
- /* @conditional-compile-remove(reaction) */
20390
20289
  /**
20391
20290
  * A button to send reactions.
20392
20291
  *
@@ -20441,7 +20340,6 @@ const ReactionButton = (props) => {
20441
20340
  items: emojiList
20442
20341
  }, onRenderIcon: (_f = props.onRenderIcon) !== null && _f !== void 0 ? _f : onRenderIcon, strings: strings, labelKey: (_g = props.labelKey) !== null && _g !== void 0 ? _g : 'reactionButtonLabel', onRenderMenuIcon: () => React.createElement("div", null), disabled: props.disabled, ariaLabel: strings.ariaLabel })));
20443
20342
  };
20444
- /* @conditional-compile-remove(reaction) */
20445
20343
  const reactionButtonStyles = (theme) => ({
20446
20344
  rootChecked: {
20447
20345
  background: theme.palette.themePrimary,
@@ -22591,7 +22489,7 @@ const convertRemoteParticipantToParticipantListParticipant = (userId, displayNam
22591
22489
  isRemovable: (communicationCommon.getIdentifierKind(identifier).kind === 'communicationUser' ||
22592
22490
  communicationCommon.getIdentifierKind(identifier).kind === 'phoneNumber') &&
22593
22491
  localUserCanRemoveOthers,
22594
- /* @conditional-compile-remove(reaction) */ reaction,
22492
+ reaction,
22595
22493
  /* @conditional-compile-remove(spotlight) */ spotlight
22596
22494
  };
22597
22495
  };
@@ -22601,7 +22499,6 @@ const convertRemoteParticipantToParticipantListParticipant = (userId, displayNam
22601
22499
  const memoizedConvertAllremoteParticipants = memoizeFnAll((userId, displayName, state, isMuted, isScreenSharing, isSpeaking, raisedHand, localUserCanRemoveOthers, reaction, spotlight) => {
22602
22500
  return convertRemoteParticipantToParticipantListParticipant(userId, displayName, state, isMuted, isScreenSharing, isSpeaking, raisedHand, localUserCanRemoveOthers, reaction, spotlight);
22603
22501
  });
22604
- /* @conditional-compile-remove(reaction) */
22605
22502
  /**
22606
22503
  * @private
22607
22504
  */
@@ -22653,22 +22550,19 @@ const _videoGalleryRemoteParticipantsMemo = (remoteParticipants, isHideAttendeeN
22653
22550
  let contentSharingStream = undefined;
22654
22551
  /* @conditional-compile-remove(ppt-live) */
22655
22552
  contentSharingStream = participant.contentSharingStream;
22656
- let remoteParticipantReaction = undefined;
22657
- /* @conditional-compile-remove(reaction) */ remoteParticipantReaction = memoizedConvertToVideoTileReaction(participant.reactionState);
22553
+ const remoteParticipantReaction = memoizedConvertToVideoTileReaction(participant.reactionState);
22658
22554
  let spotlight = undefined;
22659
22555
  /* @conditional-compile-remove(spotlight) */ spotlight = participant.spotlight;
22660
22556
  return memoizedFn(toFlatCommunicationIdentifier(participant.identifier), participant.isMuted, checkIsSpeaking(participant), participant.videoStreams, state, displayName, participant.raisedHand, contentSharingStream, remoteParticipantReaction, spotlight);
22661
22557
  }));
22662
22558
  });
22663
22559
  };
22664
- const memoizedAllConvertRemoteParticipant = memoizeFnAll((userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand, contentSharingStream, reaction, // temp unknown type to build stable
22665
- spotlight // temp unknown type to build stable
22560
+ const memoizedAllConvertRemoteParticipant = memoizeFnAll((userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand, contentSharingStream, reaction, spotlight // temp unknown type to build stable
22666
22561
  ) => {
22667
22562
  return convertRemoteParticipantToVideoGalleryRemoteParticipant(userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand, contentSharingStream, reaction, spotlight);
22668
22563
  });
22669
22564
  /** @private */
22670
- const convertRemoteParticipantToVideoGalleryRemoteParticipant = (userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand, contentSharingStream, reaction, // temp unknown type to build stable
22671
- spotlight // temp unknown type to build stable
22565
+ const convertRemoteParticipantToVideoGalleryRemoteParticipant = (userId, isMuted, isSpeaking, videoStreams, state, displayName, raisedHand, contentSharingStream, reaction, spotlight // temp unknown type to build stable
22672
22566
  ) => {
22673
22567
  const rawVideoStreamsArray = Object.values(videoStreams);
22674
22568
  let videoStream = undefined;
@@ -22706,8 +22600,7 @@ spotlight // temp unknown type to build stable
22706
22600
  /* @conditional-compile-remove(PSTN-calls) */
22707
22601
  state,
22708
22602
  raisedHand,
22709
- /* @conditional-compile-remove(reaction) */
22710
- reaction: reaction,
22603
+ reaction,
22711
22604
  /* @conditional-compile-remove(spotlight) */
22712
22605
  spotlight: spotlight
22713
22606
  };
@@ -22735,8 +22628,7 @@ const convertRemoteContentSharingStreamToVideoGalleryStream = (stream) => {
22735
22628
  };
22736
22629
  };
22737
22630
  /** @private */
22738
- const memoizeLocalParticipant = memoizeOne((identifier, displayName, isMuted, isScreenSharingOn, localVideoStream, role, raisedHand,
22739
- /* @conditional-compile-remove(reaction) */ reaction,
22631
+ const memoizeLocalParticipant = memoizeOne((identifier, displayName, isMuted, isScreenSharingOn, localVideoStream, role, raisedHand, reaction,
22740
22632
  /* @conditional-compile-remove(spotlight) */ localSpotlight,
22741
22633
  /* @conditional-compile-remove(spotlight) */ capabilities) => {
22742
22634
  var _a, _b;
@@ -22752,8 +22644,7 @@ const memoizeLocalParticipant = memoizeOne((identifier, displayName, isMuted, is
22752
22644
  },
22753
22645
  role,
22754
22646
  raisedHand: raisedHand,
22755
- /* @conditional-compile-remove(reaction) */
22756
- reaction: reaction,
22647
+ reaction,
22757
22648
  /* @conditional-compile-remove(spotlight) */
22758
22649
  spotlight: localSpotlight,
22759
22650
  /* @conditional-compile-remove(spotlight) */
@@ -22801,7 +22692,6 @@ const videoGallerySelector = reselect.createSelector([
22801
22692
  getLocalParticipantRaisedHand$1,
22802
22693
  /* @conditional-compile-remove(hide-attendee-name) */
22803
22694
  isHideAttendeeNamesEnabled,
22804
- /* @conditional-compile-remove(reaction) */
22805
22695
  getLocalParticipantReactionState,
22806
22696
  /* @conditional-compile-remove(spotlight) */
22807
22697
  getSpotlightCallFeature,
@@ -22809,9 +22699,7 @@ const videoGallerySelector = reselect.createSelector([
22809
22699
  getCapabilities
22810
22700
  ], (screenShareRemoteParticipantId, remoteParticipants, localVideoStreams, isMuted, isScreenSharingOn, displayName, identifier, dominantSpeakers, optimalVideoCount, role, raisedHand,
22811
22701
  /* @conditional-compile-remove(hide-attendee-name) */
22812
- isHideAttendeeNamesEnabled,
22813
- /* @conditional-compile-remove(reaction) */
22814
- localParticipantReaction,
22702
+ isHideAttendeeNamesEnabled, localParticipantReaction,
22815
22703
  /* @conditional-compile-remove(spotlight) */
22816
22704
  spotlightCallFeature,
22817
22705
  /* @conditional-compile-remove(spotlight) */
@@ -22823,7 +22711,6 @@ capabilities) => {
22823
22711
  const dominantSpeakerIds = _dominantSpeakersWithFlatId(dominantSpeakers);
22824
22712
  dominantSpeakerIds === null || dominantSpeakerIds === void 0 ? void 0 : dominantSpeakerIds.forEach((speaker, idx) => (idx));
22825
22713
  const noRemoteParticipants = [];
22826
- /* @conditional-compile-remove(reaction) */
22827
22714
  const localParticipantReactionState = memoizedConvertToVideoTileReaction(localParticipantReaction);
22828
22715
  /* @conditional-compile-remove(spotlight) */
22829
22716
  const spotlightedParticipantIds = memoizeSpotlightedParticipantIds(spotlightCallFeature === null || spotlightCallFeature === void 0 ? void 0 : spotlightCallFeature.spotlightedParticipants);
@@ -22831,9 +22718,7 @@ capabilities) => {
22831
22718
  screenShareParticipant: screenShareRemoteParticipant
22832
22719
  ? convertRemoteParticipantToVideoGalleryRemoteParticipant(toFlatCommunicationIdentifier(screenShareRemoteParticipant.identifier), screenShareRemoteParticipant.isMuted, checkIsSpeaking(screenShareRemoteParticipant), screenShareRemoteParticipant.videoStreams, screenShareRemoteParticipant.state, screenShareRemoteParticipant.displayName, screenShareRemoteParticipant.raisedHand, /* @conditional-compile-remove(ppt-live) */ screenShareRemoteParticipant.contentSharingStream, undefined, /* @conditional-compile-remove(spotlight) */ screenShareRemoteParticipant.spotlight)
22833
22720
  : undefined,
22834
- localParticipant: memoizeLocalParticipant(identifier, displayName, isMuted, isScreenSharingOn, localVideoStream, role, raisedHand,
22835
- /* @conditional-compile-remove(reaction) */
22836
- localParticipantReactionState,
22721
+ localParticipant: memoizeLocalParticipant(identifier, displayName, isMuted, isScreenSharingOn, localVideoStream, role, raisedHand, localParticipantReactionState,
22837
22722
  /* @conditional-compile-remove(spotlight) */
22838
22723
  spotlightCallFeature === null || spotlightCallFeature === void 0 ? void 0 : spotlightCallFeature.localParticipantSpotlight,
22839
22724
  /* @conditional-compile-remove(spotlight) */
@@ -22883,9 +22768,7 @@ const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipan
22883
22768
  let displayName = participant.displayName;
22884
22769
  /* @conditional-compile-remove(hide-attendee-name) */
22885
22770
  displayName = maskDisplayNameWithRole(displayName, localUserRole, participant.role, isHideAttendeeNamesEnabled);
22886
- let remoteParticipantReaction = undefined;
22887
- /* @conditional-compile-remove(reaction) */
22888
- remoteParticipantReaction = memoizedConvertToVideoTileReaction(participant.reactionState);
22771
+ const remoteParticipantReaction = memoizedConvertToVideoTileReaction(participant.reactionState);
22889
22772
  let spotlight = undefined;
22890
22773
  /* @conditional-compile-remove(spotlight) */
22891
22774
  spotlight = memoizedSpotlight(spotlightedParticipants, toFlatCommunicationIdentifier(participant.identifier));
@@ -22924,15 +22807,12 @@ const participantListSelector = reselect.createSelector([
22924
22807
  getParticipantCount,
22925
22808
  /* @conditional-compile-remove(hide-attendee-name) */
22926
22809
  isHideAttendeeNamesEnabled,
22927
- /* @conditional-compile-remove(reaction) */
22928
22810
  getLocalParticipantReactionState,
22929
22811
  /* @conditional-compile-remove(spotlight) */
22930
22812
  getSpotlightCallFeature
22931
22813
  ], (userId, displayName, remoteParticipants, isScreenSharingOn, isMuted, raisedHand, role, partitipantCount,
22932
22814
  /* @conditional-compile-remove(hide-attendee-name) */
22933
- isHideAttendeeNamesEnabled,
22934
- /* @conditional-compile-remove(reaction) */
22935
- localParticipantReactionState,
22815
+ isHideAttendeeNamesEnabled, localParticipantReactionState,
22936
22816
  /* @conditional-compile-remove(spotlight) */
22937
22817
  spotlightCallFeature) => {
22938
22818
  const localUserCanRemoveOthers = localUserCanRemoveOthersTrampoline(role);
@@ -22941,8 +22821,6 @@ spotlightCallFeature) => {
22941
22821
  /* @conditional-compile-remove(spotlight) */
22942
22822
  spotlightCallFeature === null || spotlightCallFeature === void 0 ? void 0 : spotlightCallFeature.spotlightedParticipants)
22943
22823
  : [];
22944
- /* @conditional-compile-remove(reaction) */
22945
- const localParticipantReaction = memoizedConvertToVideoTileReaction(localParticipantReactionState);
22946
22824
  participants.push({
22947
22825
  userId: userId,
22948
22826
  displayName: displayName,
@@ -22952,8 +22830,7 @@ spotlightCallFeature) => {
22952
22830
  state: 'Connected',
22953
22831
  // Local participant can never remove themselves.
22954
22832
  isRemovable: false,
22955
- /* @conditional-compile-remove(reaction) */
22956
- reaction: localParticipantReaction,
22833
+ reaction: memoizedConvertToVideoTileReaction(localParticipantReactionState),
22957
22834
  /* @conditional-compile-remove(spotlight) */
22958
22835
  spotlight: memoizedSpotlight(spotlightCallFeature === null || spotlightCallFeature === void 0 ? void 0 : spotlightCallFeature.spotlightedParticipants, userId)
22959
22836
  });
@@ -26615,11 +26492,6 @@ const useAdapter$1 = () => {
26615
26492
  /**
26616
26493
  * @private
26617
26494
  */
26618
- const UNSUPPORTED_CHAT_THREAD_TYPE = ['@thread.tacv2', '@thread.skype'];
26619
- /**
26620
- * @private
26621
- */
26622
- const TEAMS_LIMITATION_LEARN_MORE = 'https://learn.microsoft.com/en-us/azure/communication-services/concepts/join-teams-meeting#limitations-and-known-issues';
26623
26495
  /**
26624
26496
  * @remarks
26625
26497
  * This value is publicly documented in the ChatComposite API documentation.
@@ -28164,7 +28036,6 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
28164
28036
  ? yield adapter.lowerHand()
28165
28037
  : yield adapter.raiseHand();
28166
28038
  }),
28167
- /* @conditional-compile-remove(reaction) */
28168
28039
  onReactionClick: (reaction) => __awaiter$k(void 0, void 0, void 0, function* () {
28169
28040
  yield adapter.onReactionClick(reaction);
28170
28041
  }),
@@ -29178,8 +29049,6 @@ const onFetchCustomButtonPropsTrampoline = (options) => {
29178
29049
 
29179
29050
  // Copyright (c) Microsoft Corporation.
29180
29051
  // Licensed under the MIT License.
29181
- /* @conditional-compile-remove(reaction) */
29182
- /* @conditional-compile-remove(reaction) */
29183
29052
  /** @private */
29184
29053
  const Reaction = (props) => {
29185
29054
  const reactionButtonProps = usePropsFor$1(ReactionButton);
@@ -29187,7 +29056,6 @@ const Reaction = (props) => {
29187
29056
  const reactionButtonDisabled = isDisabled(props.option) || reactionButtonProps.disabled;
29188
29057
  return (React.createElement(ReactionButton, Object.assign({ "data-ui-id": "call-composite-reaction-button" }, reactionButtonProps, { showLabel: props.displayType !== 'compact', disabled: reactionButtonDisabled || props.disabled, styles: styles, disableTooltip: props.disableTooltip, persistMenu: true, reactionResources: props.reactionResource })));
29189
29058
  };
29190
- /* @conditional-compile-remove(reaction) */
29191
29059
  const isDisabled = (option) => {
29192
29060
  if (option === undefined || option === true || option === false) {
29193
29061
  return false;
@@ -29254,11 +29122,8 @@ const CallControls = (props) => {
29254
29122
  /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
29255
29123
  const holdButtonProps = usePropsFor$1(HoldButton);
29256
29124
  const raiseHandButtonProps = usePropsFor$1(RaiseHandButton);
29257
- /* @conditional-compile-remove(reaction) */
29258
29125
  const capabilitiesSelector = useSelector$1(capabilitySelector);
29259
- /* @conditional-compile-remove(reaction) */
29260
29126
  const callState = useSelector$1(callStatusSelector);
29261
- /* @conditional-compile-remove(reaction) */
29262
29127
  const isReactionAllowed = callState.callStatus !== 'Connected' ||
29263
29128
  !(capabilitiesSelector === null || capabilitiesSelector === void 0 ? void 0 : capabilitiesSelector.capabilities) ||
29264
29129
  capabilitiesSelector.capabilities.useReactions.isPresent;
@@ -29285,9 +29150,7 @@ const CallControls = (props) => {
29285
29150
  if (showParticipantsButtonInControlBar) {
29286
29151
  numberOfButtons++;
29287
29152
  }
29288
- /* @conditional-compile-remove(reaction) */
29289
29153
  const showReactionButtonInControlBar = isEnabled$2(options === null || options === void 0 ? void 0 : options.reactionButton) && isReactionAllowed && !props.isMobile;
29290
- /* @conditional-compile-remove(reaction) */
29291
29154
  if (showReactionButtonInControlBar) {
29292
29155
  numberOfButtons++;
29293
29156
  }
@@ -29344,7 +29207,6 @@ const CallControls = (props) => {
29344
29207
  showDevicesButtonInControlBar = false;
29345
29208
  showMoreButton = isEnabled$2(options === null || options === void 0 ? void 0 : options.moreButton);
29346
29209
  }
29347
- /* @conditional-compile-remove(reaction) */
29348
29210
  const reactionResources = adapter.getState().reactions;
29349
29211
  const raiseHandButtonIsEnabled = isEnabled$2(options === null || options === void 0 ? void 0 : options.raiseHandButton);
29350
29212
  let showRaiseHandButtonInControlBar = raiseHandButtonIsEnabled;
@@ -29426,7 +29288,6 @@ const CallControls = (props) => {
29426
29288
  React.createElement(ControlBar, { layout: props.displayVertical ? 'vertical' : 'horizontal', styles: controlBarStyles(theme.semanticColors.bodyBackground) },
29427
29289
  microphoneButtonIsEnabled && (React.createElement(Microphone, { displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$4(options === null || options === void 0 ? void 0 : options.microphoneButton) })),
29428
29290
  cameraButtonIsEnabled && (React.createElement(Camera, { displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$4(options === null || options === void 0 ? void 0 : options.cameraButton) })),
29429
- /* @conditional-compile-remove(reaction) */
29430
29291
  showReactionButtonInControlBar && reactionResources && (React.createElement(Reaction, { displayType: options === null || options === void 0 ? void 0 : options.displayType, reactionResource: reactionResources })),
29431
29292
  showRaiseHandButtonInControlBar && !hideRaiseHandButtonInRoomsCall && (React.createElement(RaiseHand, { displayType: options === null || options === void 0 ? void 0 : options.displayType })),
29432
29293
  screenShareButtonIsEnabled && (React.createElement(ScreenShare, { option: options === null || options === void 0 ? void 0 : options.screenShareButton, displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$4(options === null || options === void 0 ? void 0 : options.screenShareButton) })),
@@ -30276,11 +30137,8 @@ const CommonCallControlBar = (props) => {
30276
30137
  // only center control bar buttons based on parent container if there are enough space on the screen and not mobile
30277
30138
  const controlBarDesktopContainerStyles = React.useMemo(() => (!props.mobileView && !isOutOfSpace ? { position: 'relative', minHeight: '4.5rem', width: '100%' } : {}), [props.mobileView, isOutOfSpace]);
30278
30139
  const customButtons = React.useMemo(() => generateCustomCallControlBarButton(onFetchCustomButtonPropsTrampoline(options !== false ? options : undefined), options !== false ? options === null || options === void 0 ? void 0 : options.displayType : undefined), [options]);
30279
- /* @conditional-compile-remove(reaction) */
30280
30140
  const capabilitiesSelector = useSelector$1(capabilitySelector);
30281
- /* @conditional-compile-remove(reaction) */
30282
30141
  const callState = useSelector$1(callStatusSelector);
30283
- /* @conditional-compile-remove(reaction) */
30284
30142
  const isReactionAllowed = callState.callStatus !== 'Connected' ||
30285
30143
  !(capabilitiesSelector === null || capabilitiesSelector === void 0 ? void 0 : capabilitiesSelector.capabilities) ||
30286
30144
  capabilitiesSelector.capabilities.useReactions.isPresent;
@@ -30303,7 +30161,6 @@ const CommonCallControlBar = (props) => {
30303
30161
  props.onUserSetGalleryLayout);
30304
30162
  const role = (_b = props.callAdapter.getState().call) === null || _b === void 0 ? void 0 : _b.role;
30305
30163
  const hideRaiseHandButtonInRoomsCall = props.callAdapter.getState().isRoomsCall && role && ['Consumer', 'Unknown'].includes(role);
30306
- /*@conditional-compile-remove(reaction) */
30307
30164
  const reactionResources = props.callAdapter.getState().reactions;
30308
30165
  return (React.createElement("div", { ref: controlBarSizeRef },
30309
30166
  React.createElement(CallAdapterProvider, { adapter: props.callAdapter },
@@ -30322,7 +30179,6 @@ const CommonCallControlBar = (props) => {
30322
30179
  cameraButtonIsEnabled && (React.createElement(Camera, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
30323
30180
  /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
30324
30181
  disabled: props.disableButtonsForHoldScreen || isDisabled$4(options.cameraButton), onClickVideoEffects: props.onClickVideoEffects, componentRef: props.cameraButtonRef, disableTooltip: props.mobileView })),
30325
- /* @conditional-compile-remove(reaction) */
30326
30182
  !props.mobileView &&
30327
30183
  isReactionAllowed &&
30328
30184
  isEnabled$1(options.reactionButton) &&
@@ -30680,7 +30536,6 @@ const MoreDrawer = (props) => {
30680
30536
  const showCaptionsButton = props.isCaptionsSupported &&
30681
30537
  /* @conditional-compile-remove(acs-close-captions) */ drawerSelectionOptions !== false &&
30682
30538
  /* @conditional-compile-remove(acs-close-captions) */ isEnabled(drawerSelectionOptions.captionsButton);
30683
- /* @conditional-compile-remove(reaction) */
30684
30539
  if (props.reactionResources !== undefined) {
30685
30540
  drawerMenuItems.push({
30686
30541
  itemKey: 'reactions',
@@ -32865,9 +32720,7 @@ const CallArrangement = (props) => {
32865
32720
  isCaptionsSupported: (useTeamsCaptions && hasJoinedCall) ||
32866
32721
  /* @conditional-compile-remove(acs-close-captions) */ hasJoinedCall,
32867
32722
  /* @conditional-compile-remove(close-captions) */
32868
- useTeamsCaptions: useTeamsCaptions, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout, onSetDialpadPage: props.onSetDialpadPage, dtmfDialerPresent: props.dtmfDialerPresent,
32869
- /* @conditional-compile-remove(reaction) */
32870
- reactionResources: adapter.getState().reactions }))),
32723
+ useTeamsCaptions: useTeamsCaptions, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout, onSetDialpadPage: props.onSetDialpadPage, dtmfDialerPresent: props.dtmfDialerPresent, reactionResources: adapter.getState().reactions }))),
32871
32724
  React.createElement(react.Stack, { horizontal: true, grow: true },
32872
32725
  React.createElement(react.Stack.Item, { style: callCompositeContainerCSS },
32873
32726
  React.createElement(react.Stack.Item, { styles: callGalleryStyles, grow: true },
@@ -32961,7 +32814,6 @@ const MediaGallery = (props) => {
32961
32814
  const containerWidth = _useContainerWidth(containerRef);
32962
32815
  const containerHeight = _useContainerHeight(containerRef);
32963
32816
  const containerAspectRatio = containerWidth && containerHeight ? containerWidth / containerHeight : 0;
32964
- /* @conditional-compile-remove(reaction) */
32965
32817
  const reactionResources = adapter.getState().reactions;
32966
32818
  const layoutBasedOnTilePosition = getVideoGalleryLayoutBasedOnLocalOptions((_b = props.localVideoTileOptions) === null || _b === void 0 ? void 0 : _b.position);
32967
32819
  const cameraSwitcherProps = React.useMemo(() => {
@@ -33022,9 +32874,7 @@ const MediaGallery = (props) => {
33022
32874
  ? 'hidden'
33023
32875
  : props.isMobile && containerAspectRatio < 1
33024
32876
  ? '9:16'
33025
- : '16:9', pinnedParticipants: pinnedParticipants, onPinParticipant: onPinParticipant, onUnpinParticipant: onUnpinParticipant,
33026
- /* @conditional-compile-remove(reaction) */
33027
- reactionResources: reactionResources,
32877
+ : '16:9', pinnedParticipants: pinnedParticipants, onPinParticipant: onPinParticipant, onUnpinParticipant: onUnpinParticipant, reactionResources: reactionResources,
33028
32878
  /* @conditional-compile-remove(spotlight) */
33029
32879
  onStartLocalSpotlight: hideSpotlightButtons ? undefined : onStartLocalSpotlightWithPrompt,
33030
32880
  /* @conditional-compile-remove(spotlight) */
@@ -33049,7 +32899,6 @@ const MediaGallery = (props) => {
33049
32899
  onPinParticipant,
33050
32900
  onUnpinParticipant,
33051
32901
  layoutBasedOnTilePosition,
33052
- /* @conditional-compile-remove(reaction) */
33053
32902
  reactionResources,
33054
32903
  /* @conditional-compile-remove(spotlight) */
33055
32904
  onStartLocalSpotlightWithPrompt,
@@ -36120,7 +35969,7 @@ class CallContext {
36120
35969
  selectedVideoBackgroundEffect: undefined,
36121
35970
  cameraStatus: undefined,
36122
35971
  sounds: options === null || options === void 0 ? void 0 : options.callingSounds,
36123
- /* @conditional-compile-remove(reaction) */ reactions: options === null || options === void 0 ? void 0 : options.reactionResources
35972
+ reactions: options === null || options === void 0 ? void 0 : options.reactionResources
36124
35973
  };
36125
35974
  this.emitter.setMaxListeners((_d = options === null || options === void 0 ? void 0 : options.maxListeners) !== null && _d !== void 0 ? _d : 50);
36126
35975
  this.bindPublicMethods();
@@ -36376,7 +36225,6 @@ class AzureCommunicationCallAdapter {
36376
36225
  this.startScreenShare.bind(this);
36377
36226
  this.stopScreenShare.bind(this);
36378
36227
  this.raiseHand.bind(this);
36379
- /* @conditional-compile-remove(reaction) */
36380
36228
  this.onReactionClick.bind(this);
36381
36229
  this.lowerHand.bind(this);
36382
36230
  this.removeParticipant.bind(this);
@@ -36710,7 +36558,6 @@ class AzureCommunicationCallAdapter {
36710
36558
  }));
36711
36559
  });
36712
36560
  }
36713
- /* @conditional-compile-remove(reaction) */
36714
36561
  onReactionClick(reaction) {
36715
36562
  return __awaiter$5(this, void 0, void 0, function* () {
36716
36563
  return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
@@ -37558,7 +37405,6 @@ class CallWithChatBackedCallAdapter {
37558
37405
  this.stopScreenShare = () => __awaiter$4(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.stopScreenShare(); });
37559
37406
  this.raiseHand = () => __awaiter$4(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.raiseHand(); });
37560
37407
  this.lowerHand = () => __awaiter$4(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.lowerHand(); });
37561
- /* @conditional-compile-remove(reaction) */
37562
37408
  this.onReactionClick = (reaction) => __awaiter$4(this, void 0, void 0, function* () { return yield this.callWithChatAdapter.onReactionClick(reaction); });
37563
37409
  this.removeParticipant = (userId) => __awaiter$4(this, void 0, void 0, function* () {
37564
37410
  let participant = userId;
@@ -37688,7 +37534,6 @@ function callAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState)
37688
37534
  videoBackgroundImages: callWithChatAdapterState.videoBackgroundImages,
37689
37535
  onResolveVideoEffectDependency: callWithChatAdapterState.onResolveVideoEffectDependency,
37690
37536
  selectedVideoBackgroundEffect: callWithChatAdapterState.selectedVideoBackgroundEffect,
37691
- /* @conditional-compile-remove(reaction) */
37692
37537
  reactions: callWithChatAdapterState.reactions
37693
37538
  };
37694
37539
  }
@@ -38240,7 +38085,6 @@ function callWithChatAdapterStateFromBackingStates(callAdapter) {
38240
38085
  /* @conditional-compile-remove(hide-attendee-name) */
38241
38086
  /** Hide attendee names in teams meeting */
38242
38087
  hideAttendeeNames: callAdapterState.hideAttendeeNames,
38243
- /* @conditional-compile-remove(reaction) */
38244
38088
  reactions: callAdapterState.reactions
38245
38089
  };
38246
38090
  }
@@ -38259,30 +38103,6 @@ function mergeCallAdapterStateIntoCallWithChatAdapterState(existingCallWithChatA
38259
38103
  return Object.assign(Object.assign({}, existingCallWithChatAdapterState), { userId: callAdapterState.userId, page: callAdapterState.page, displayName: callAdapterState.displayName, devices: callAdapterState.devices, call: callAdapterState.call, isLocalPreviewMicrophoneEnabled: callAdapterState.isLocalPreviewMicrophoneEnabled, isTeamsCall: callAdapterState.isTeamsCall, latestCallErrors: callAdapterState.latestErrors, videoBackgroundImages: callAdapterState.videoBackgroundImages, onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency, selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect });
38260
38104
  }
38261
38105
 
38262
- // Copyright (c) Microsoft Corporation.
38263
- // Licensed under the MIT License.
38264
- /**
38265
- * Get chat thread from a teams url.
38266
- * As per documented on the Chat SDK: https://docs.microsoft.com/en-us/azure/communication-services/quickstarts/chat/meeting-interop?pivots=platform-web#get-a-teams-meeting-chat-thread-for-a-communication-services-user
38267
- *
38268
- * @private
38269
- */
38270
- const getChatThreadFromTeamsLink = (teamsMeetingLink) => {
38271
- // Get the threadId from the url - this also contains the call locator ID that will be removed in the threadId.split
38272
- let threadId = teamsMeetingLink.replace('https://teams.microsoft.com/l/meetup-join/', '');
38273
- // Unescape characters that applications like Outlook encode when creating joinable links
38274
- threadId = decodeURIComponent(threadId);
38275
- // Extract just the chat guid from the link, stripping away the call locator ID
38276
- threadId = threadId.split(/^(.*?@thread\.v2)/gm)[1];
38277
- if (!threadId || threadId.length === 0) {
38278
- if (UNSUPPORTED_CHAT_THREAD_TYPE.some((t) => teamsMeetingLink.includes(t))) {
38279
- throw new Error(`Teams Channel Meetings are not currently supported, read more ${TEAMS_LIMITATION_LEARN_MORE}`);
38280
- }
38281
- throw new Error('Could not get chat thread from teams link');
38282
- }
38283
- return threadId;
38284
- };
38285
-
38286
38106
  // Copyright (c) Microsoft Corporation.
38287
38107
  // Licensed under the MIT License.
38288
38108
  var __awaiter$2 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
@@ -38413,7 +38233,6 @@ class AzureCommunicationCallWithChatAdapter {
38413
38233
  this.stopScreenShare.bind(this);
38414
38234
  this.raiseHand.bind(this);
38415
38235
  this.lowerHand.bind(this);
38416
- /* @conditional-compile-remove(reaction) */
38417
38236
  this.onReactionClick.bind(this);
38418
38237
  this.removeParticipant.bind(this);
38419
38238
  this.createStreamView.bind(this);
@@ -38619,7 +38438,7 @@ class AzureCommunicationCallWithChatAdapter {
38619
38438
  yield this.callAdapter.lowerHand();
38620
38439
  });
38621
38440
  }
38622
- /* @conditional-compile-remove(reaction) */
38441
+ /** Reaction clicked by the local user. */
38623
38442
  onReactionClick(reaction) {
38624
38443
  return __awaiter$2(this, void 0, void 0, function* () {
38625
38444
  yield this.callAdapter.onReactionClick(reaction);
@@ -39033,12 +38852,34 @@ class CallAndChatProvider {
39033
38852
  * @public
39034
38853
  */
39035
38854
  class TeamsMeetingLinkProvider {
39036
- constructor(locator) {
38855
+ constructor(locator,
38856
+ /** @conditional-compile-remove(meeting-id) */ callAdapterPromise) {
39037
38857
  this.locator = locator;
38858
+ /** @conditional-compile-remove(meeting-id) */
38859
+ this.callAdapterPromise = callAdapterPromise;
39038
38860
  }
39039
38861
  getChatThread() {
39040
38862
  return __awaiter$2(this, void 0, void 0, function* () {
39041
- return getChatThreadFromTeamsLink(this.locator.meetingLink);
38863
+ /** @conditional-compile-remove(meeting-id) */
38864
+ {
38865
+ // Wait for the call to be connected and get the chat thread ID from `call.callInfo`.
38866
+ const chatThreadPromise = new Promise((resolve) => {
38867
+ this.callAdapterPromise.then((callAdapter) => {
38868
+ // Ensure function is idempotent by removing any existing subscription.
38869
+ this.callAdapterSubscription && callAdapter.offStateChange(this.callAdapterSubscription);
38870
+ this.callAdapterSubscription = (state) => {
38871
+ var _a, _b, _c;
38872
+ if (((_a = state.call) === null || _a === void 0 ? void 0 : _a.state) === 'Connected' && ((_b = state.call.info) === null || _b === void 0 ? void 0 : _b.threadId)) {
38873
+ this.callAdapterSubscription && callAdapter.offStateChange(this.callAdapterSubscription);
38874
+ this.callAdapterSubscription = undefined;
38875
+ resolve((_c = state.call.info) === null || _c === void 0 ? void 0 : _c.threadId);
38876
+ }
38877
+ };
38878
+ callAdapter.onStateChange(this.callAdapterSubscription);
38879
+ });
38880
+ });
38881
+ return chatThreadPromise;
38882
+ }
39042
38883
  });
39043
38884
  }
39044
38885
  }
@@ -39230,7 +39071,7 @@ const isTeamsMeetingLocator = (locator) => {
39230
39071
  };
39231
39072
  const _createChatThreadAdapterInner = (locator, adapter) => {
39232
39073
  if ('meetingLink' in locator) {
39233
- return new TeamsMeetingLinkProvider(locator);
39074
+ return new TeamsMeetingLinkProvider(locator, /** @conditional-compile-remove(meeting-id) */ adapter);
39234
39075
  }
39235
39076
  /** @conditional-compile-remove(meeting-id) */
39236
39077
  if ('meetingId' in locator) {
@@ -39811,4 +39652,4 @@ exports.useTeamsCall = useTeamsCall;
39811
39652
  exports.useTeamsCallAdapter = useTeamsCallAdapter;
39812
39653
  exports.useTeamsCallAgent = useTeamsCallAgent;
39813
39654
  exports.useTheme = useTheme;
39814
- //# sourceMappingURL=index-BP7335hI.js.map
39655
+ //# sourceMappingURL=index-oaEwmItW.js.map