@azure/communication-react 1.28.0-alpha-202506110019 → 1.28.0-alpha-202506120019

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 (43) hide show
  1. package/README.md +2 -2
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-0CJ2pkhy.js → ChatMessageComponentAsRichTextEditBox-ngP-K5bA.js} +2 -2
  3. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-0CJ2pkhy.js.map → ChatMessageComponentAsRichTextEditBox-ngP-K5bA.js.map} +1 -1
  4. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-8-rNMb_Z.js → RichTextSendBoxWrapper-CsGkX3is.js} +2 -2
  5. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-8-rNMb_Z.js.map → RichTextSendBoxWrapper-CsGkX3is.js.map} +1 -1
  6. package/dist/dist-cjs/communication-react/{index-NXI7aNBc.js → index-rf3tf-XH.js} +114 -61
  7. package/dist/dist-cjs/communication-react/{index-NXI7aNBc.js.map → index-rf3tf-XH.js.map} +1 -1
  8. package/dist/dist-cjs/communication-react/index.js +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  11. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +4 -2
  12. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  13. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +2 -2
  14. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
  15. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +6 -1
  16. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  17. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +13 -13
  18. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  19. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +3 -1
  20. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +1 -1
  21. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +1 -1
  22. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  23. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +6 -1
  24. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  25. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +6 -1
  26. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  27. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +6 -2
  28. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  29. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +3 -1
  30. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  31. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +6 -2
  32. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  33. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.js +3 -1
  34. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.js.map +1 -1
  35. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +1 -1
  36. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +1 -1
  37. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +9 -5
  38. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -1
  39. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +31 -17
  40. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  41. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +8 -4
  42. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  43. package/package.json +4 -4
@@ -187,7 +187,7 @@ function getDefaultExportFromCjs (x) {
187
187
  // Copyright (c) Microsoft Corporation.
188
188
  // Licensed under the MIT License.
189
189
  // GENERATED FILE. DO NOT EDIT MANUALLY.
190
- var telemetryVersion = '1.28.0-alpha-202506110019';
190
+ var telemetryVersion = '1.28.0-alpha-202506120019';
191
191
 
192
192
 
193
193
  var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
@@ -16409,7 +16409,7 @@ class _ErrorBoundary extends React.Component {
16409
16409
  // Copyright (c) Microsoft Corporation.
16410
16410
  // Licensed under the MIT License.
16411
16411
  /* @conditional-compile-remove(rich-text-editor) */
16412
- const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-0CJ2pkhy.js'); }));
16412
+ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-ngP-K5bA.js'); }));
16413
16413
  /**
16414
16414
  * @private
16415
16415
  * Use this function to load RoosterJS dependencies early in the lifecycle.
@@ -16417,7 +16417,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
16417
16417
  *
16418
16418
  * @conditional-compile-remove(rich-text-editor)
16419
16419
  */
16420
- const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-0CJ2pkhy.js'); });
16420
+ const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-ngP-K5bA.js'); });
16421
16421
  /**
16422
16422
  * @private
16423
16423
  */
@@ -31859,7 +31859,7 @@ const AttachmentUploadButton = (props) => {
31859
31859
  // To ensure that `onChange` is fired even if the same file is picked again.
31860
31860
  e.currentTarget.value = '';
31861
31861
  }, onChange: (e) => {
31862
- onChange && onChange(e.currentTarget.files);
31862
+ onChange === null || onChange === void 0 ? void 0 : onChange(e.currentTarget.files);
31863
31863
  } })));
31864
31864
  };
31865
31865
  /* @conditional-compile-remove(file-sharing-acs) */
@@ -32271,7 +32271,7 @@ const AttachmentDownloadErrorBar = (props) => {
32271
32271
  /**
32272
32272
  * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox with lazy loading
32273
32273
  */
32274
- const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-8-rNMb_Z.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
32274
+ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-CsGkX3is.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
32275
32275
  /**
32276
32276
  * @private
32277
32277
  * Use this function to load RoosterJS dependencies early in the lifecycle.
@@ -32279,7 +32279,7 @@ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function
32279
32279
  *
32280
32280
  /* @conditional-compile-remove(rich-text-editor-composite-support)
32281
32281
  */
32282
- const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-8-rNMb_Z.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
32282
+ const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-CsGkX3is.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
32283
32283
  /**
32284
32284
  * @private
32285
32285
  */
@@ -32544,7 +32544,9 @@ const deleteInlineImageFromServer = (imageId, adapter) => {
32544
32544
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
32545
32545
  // This function is used to delete the inline image that existed before editing starts
32546
32546
  const deleteExistingInlineImageForEditBox = (imageId, messageId, adapter) => {
32547
- messageId !== SEND_BOX_UPLOADS_KEY_VALUE && deleteInlineImageFromServer(imageId, adapter);
32547
+ if (messageId !== SEND_BOX_UPLOADS_KEY_VALUE) {
32548
+ deleteInlineImageFromServer(imageId, adapter);
32549
+ }
32548
32550
  };
32549
32551
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
32550
32552
  /**
@@ -34163,7 +34165,12 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
34163
34165
  yield adapter.stopScreenShare();
34164
34166
  }),
34165
34167
  onToggleCamera: (options) => __awaiter$q(void 0, void 0, void 0, function* () {
34166
- isCameraOn(adapter.getState()) ? yield adapter.stopCamera() : yield adapter.startCamera(options);
34168
+ if (isCameraOn(adapter.getState())) {
34169
+ yield adapter.stopCamera();
34170
+ }
34171
+ else {
34172
+ yield adapter.startCamera(options);
34173
+ }
34167
34174
  }),
34168
34175
  onToggleMicrophone: () => __awaiter$q(void 0, void 0, void 0, function* () {
34169
34176
  var _l;
@@ -34501,11 +34508,15 @@ const CaptionsBannerMoreButton = (props) => {
34501
34508
  ? localeStrings.strings.call.startCaptionsButtonTooltipOnContent
34502
34509
  : localeStrings.strings.call.startCaptionsButtonTooltipOffContent,
34503
34510
  onClick: () => {
34504
- startCaptionsButtonProps.checked
34505
- ? stopCaptions()
34506
- : startCaptionsButtonProps.currentSpokenLanguage !== ''
34507
- ? startCaptions()
34508
- : props.onCaptionsSettingsClick && props.onCaptionsSettingsClick();
34511
+ if (startCaptionsButtonProps.checked) {
34512
+ stopCaptions();
34513
+ }
34514
+ else if (startCaptionsButtonProps.currentSpokenLanguage !== '') {
34515
+ startCaptions();
34516
+ }
34517
+ else if (props.onCaptionsSettingsClick) {
34518
+ props.onCaptionsSettingsClick();
34519
+ }
34509
34520
  },
34510
34521
  iconProps: {
34511
34522
  iconName: startCaptionsButtonProps.checked ? 'CaptionsOffIcon' : 'CaptionsIcon',
@@ -34742,7 +34753,7 @@ const EndCall = (props) => {
34742
34753
  setShowHangUpConfirm(!showHangUpConfirm);
34743
34754
  }, [showHangUpConfirm]);
34744
34755
  const onHangUpConfirm = React.useCallback((hangUpForEveryone) => {
34745
- onHangUp && onHangUp(hangUpForEveryone);
34756
+ onHangUp === null || onHangUp === void 0 ? void 0 : onHangUp(hangUpForEveryone);
34746
34757
  toggleConfirm();
34747
34758
  }, [onHangUp, toggleConfirm]);
34748
34759
  const hangUpOverride = React.useCallback((forEveryone) => __awaiter$o(void 0, void 0, void 0, function* () {
@@ -35692,11 +35703,17 @@ const DesktopMoreButton = (props) => {
35692
35703
  ? localeStrings.strings.call.startCaptionsButtonTooltipOnContent
35693
35704
  : localeStrings.strings.call.startCaptionsButtonTooltipOffContent,
35694
35705
  onClick: () => {
35695
- startCaptionsButtonProps.checked
35696
- ? startCaptionsButtonProps.onStopCaptions()
35697
- : startCaptionsButtonProps.currentSpokenLanguage !== ''
35698
- ? startCaptions()
35699
- : props.onCaptionsSettingsClick && props.onCaptionsSettingsClick();
35706
+ if (startCaptionsButtonProps.checked) {
35707
+ startCaptionsButtonProps.onStopCaptions();
35708
+ }
35709
+ else {
35710
+ if (startCaptionsButtonProps.currentSpokenLanguage !== '') {
35711
+ startCaptions();
35712
+ }
35713
+ else if (props.onCaptionsSettingsClick) {
35714
+ props.onCaptionsSettingsClick();
35715
+ }
35716
+ }
35700
35717
  },
35701
35718
  iconProps: {
35702
35719
  iconName: startCaptionsButtonProps.checked ? 'CaptionsOffIcon' : 'CaptionsIcon',
@@ -35776,7 +35793,8 @@ const DesktopMoreButton = (props) => {
35776
35793
  ? localeStrings.strings.call.dtmfDialerMoreButtonLabelOn
35777
35794
  : localeStrings.strings.call.dtmfDialerMoreButtonLabelOff,
35778
35795
  onClick: () => {
35779
- props.onSetDialpadPage && props.onSetDialpadPage();
35796
+ var _a;
35797
+ (_a = props.onSetDialpadPage) === null || _a === void 0 ? void 0 : _a.call(props);
35780
35798
  setDtmfDialerChecked(!dtmfDialerChecked);
35781
35799
  },
35782
35800
  iconProps: {
@@ -35799,7 +35817,8 @@ const DesktopMoreButton = (props) => {
35799
35817
  },
35800
35818
  text: localeStrings.strings.call.phoneCallMoreButtonLabel,
35801
35819
  onClick: () => {
35802
- props.onMeetingPhoneInfoClick && props.onMeetingPhoneInfoClick();
35820
+ var _a;
35821
+ (_a = props.onMeetingPhoneInfoClick) === null || _a === void 0 ? void 0 : _a.call(props);
35803
35822
  },
35804
35823
  iconProps: {
35805
35824
  iconName: 'PhoneNumberButton',
@@ -35838,7 +35857,8 @@ const DesktopMoreButton = (props) => {
35838
35857
  },
35839
35858
  isChecked: props.userSetGalleryLayout === 'floatingLocalVideo',
35840
35859
  onClick: () => {
35841
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('floatingLocalVideo');
35860
+ var _a;
35861
+ (_a = props.onUserSetGalleryLayout) === null || _a === void 0 ? void 0 : _a.call(props, 'floatingLocalVideo');
35842
35862
  setFocusedContentOn(false);
35843
35863
  },
35844
35864
  iconProps: {
@@ -35855,7 +35875,8 @@ const DesktopMoreButton = (props) => {
35855
35875
  },
35856
35876
  isChecked: props.userSetGalleryLayout === 'speaker',
35857
35877
  onClick: () => {
35858
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('speaker');
35878
+ var _a;
35879
+ (_a = props.onUserSetGalleryLayout) === null || _a === void 0 ? void 0 : _a.call(props, 'speaker');
35859
35880
  setFocusedContentOn(false);
35860
35881
  },
35861
35882
  iconProps: {
@@ -35872,14 +35893,14 @@ const DesktopMoreButton = (props) => {
35872
35893
  },
35873
35894
  isChecked: focusedContentOn,
35874
35895
  onClick: () => {
35875
- var _a;
35896
+ var _a, _b, _c;
35876
35897
  if (focusedContentOn === false) {
35877
35898
  setPreviousLayout((_a = props.userSetGalleryLayout) !== null && _a !== void 0 ? _a : 'floatingLocalVideo');
35878
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('focusedContent');
35899
+ (_b = props.onUserSetGalleryLayout) === null || _b === void 0 ? void 0 : _b.call(props, 'focusedContent');
35879
35900
  setFocusedContentOn(true);
35880
35901
  }
35881
35902
  else {
35882
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout(previousLayout);
35903
+ (_c = props.onUserSetGalleryLayout) === null || _c === void 0 ? void 0 : _c.call(props, previousLayout);
35883
35904
  setFocusedContentOn(false);
35884
35905
  }
35885
35906
  },
@@ -35904,7 +35925,8 @@ const DesktopMoreButton = (props) => {
35904
35925
  },
35905
35926
  isChecked: props.userSetGalleryLayout === 'default',
35906
35927
  onClick: () => {
35907
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('default');
35928
+ var _a;
35929
+ (_a = props.onUserSetGalleryLayout) === null || _a === void 0 ? void 0 : _a.call(props, 'default');
35908
35930
  setFocusedContentOn(false);
35909
35931
  },
35910
35932
  iconProps: {
@@ -35922,7 +35944,8 @@ const DesktopMoreButton = (props) => {
35922
35944
  },
35923
35945
  isChecked: props.userSetGalleryLayout === 'largeGallery',
35924
35946
  onClick: () => {
35925
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('largeGallery');
35947
+ var _a;
35948
+ (_a = props.onUserSetGalleryLayout) === null || _a === void 0 ? void 0 : _a.call(props, 'largeGallery');
35926
35949
  setFocusedContentOn(false);
35927
35950
  },
35928
35951
  iconProps: {
@@ -35939,7 +35962,8 @@ const DesktopMoreButton = (props) => {
35939
35962
  },
35940
35963
  isChecked: props.userSetGalleryLayout === 'togetherMode',
35941
35964
  onClick: () => {
35942
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('togetherMode');
35965
+ var _a;
35966
+ (_a = props.onUserSetGalleryLayout) === null || _a === void 0 ? void 0 : _a.call(props, 'togetherMode');
35943
35967
  setFocusedContentOn(false);
35944
35968
  },
35945
35969
  disabled: !(((participantId === null || participantId === void 0 ? void 0 : participantId.kind) === 'microsoftTeamsUser' && ((_e = participantCapability === null || participantCapability === void 0 ? void 0 : participantCapability.startTogetherMode) === null || _e === void 0 ? void 0 : _e.isPresent)) ||
@@ -35964,12 +35988,13 @@ const DesktopMoreButton = (props) => {
35964
35988
  },
35965
35989
  isChecked: galleryPositionTop,
35966
35990
  onClick: () => {
35991
+ var _a, _b;
35967
35992
  if (galleryPositionTop === false) {
35968
- props.onUserSetOverflowGalleryPositionChange && props.onUserSetOverflowGalleryPositionChange('horizontalTop');
35993
+ (_a = props.onUserSetOverflowGalleryPositionChange) === null || _a === void 0 ? void 0 : _a.call(props, 'horizontalTop');
35969
35994
  setGalleryPositionTop(true);
35970
35995
  }
35971
35996
  else {
35972
- props.onUserSetOverflowGalleryPositionChange && props.onUserSetOverflowGalleryPositionChange('Responsive');
35997
+ (_b = props.onUserSetOverflowGalleryPositionChange) === null || _b === void 0 ? void 0 : _b.call(props, 'Responsive');
35973
35998
  setGalleryPositionTop(false);
35974
35999
  }
35975
36000
  }
@@ -36908,7 +36933,8 @@ const MoreDrawer = (props) => {
36908
36933
  itemKey: 'dynamicSelectionKey',
36909
36934
  text: localeStrings.strings.call.moreButtonGalleryFloatingLocalLayoutLabel,
36910
36935
  onItemClick: () => {
36911
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('floatingLocalVideo');
36936
+ var _a;
36937
+ (_a = props.onUserSetGalleryLayout) === null || _a === void 0 ? void 0 : _a.call(props, 'floatingLocalVideo');
36912
36938
  onLightDismiss();
36913
36939
  },
36914
36940
  iconProps: {
@@ -36921,7 +36947,8 @@ const MoreDrawer = (props) => {
36921
36947
  itemKey: 'focusedContentSelectionKey',
36922
36948
  text: localeStrings.strings.call.moreButtonGalleryFocusedContentLayoutLabel,
36923
36949
  onItemClick: () => {
36924
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('focusedContent');
36950
+ var _a;
36951
+ (_a = props.onUserSetGalleryLayout) === null || _a === void 0 ? void 0 : _a.call(props, 'focusedContent');
36925
36952
  onLightDismiss();
36926
36953
  },
36927
36954
  iconProps: {
@@ -36937,7 +36964,8 @@ const MoreDrawer = (props) => {
36937
36964
  itemKey: 'defaultSelectionKey',
36938
36965
  text: localeStrings.strings.call.moreButtonGalleryDefaultLayoutLabel,
36939
36966
  onItemClick: () => {
36940
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('default');
36967
+ var _a;
36968
+ (_a = props.onUserSetGalleryLayout) === null || _a === void 0 ? void 0 : _a.call(props, 'default');
36941
36969
  onLightDismiss();
36942
36970
  },
36943
36971
  iconProps: {
@@ -36950,7 +36978,8 @@ const MoreDrawer = (props) => {
36950
36978
  itemKey: 'togetherModeSelectionKey',
36951
36979
  text: localeStrings.strings.call.moreButtonTogetherModeLayoutLabel,
36952
36980
  onItemClick: () => {
36953
- props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('togetherMode');
36981
+ var _a;
36982
+ (_a = props.onUserSetGalleryLayout) === null || _a === void 0 ? void 0 : _a.call(props, 'togetherMode');
36954
36983
  onLightDismiss();
36955
36984
  },
36956
36985
  iconProps: {
@@ -38063,7 +38092,7 @@ const usePeoplePane = (props) => {
38063
38092
  localeStrings.muteAllCancelButtonLabel
38064
38093
  ]);
38065
38094
  const onMuteAllPromptConfirm = React.useCallback(() => {
38066
- onMuteAllRemoteParticipants && onMuteAllRemoteParticipants();
38095
+ onMuteAllRemoteParticipants === null || onMuteAllRemoteParticipants === void 0 ? void 0 : onMuteAllRemoteParticipants();
38067
38096
  setShowMuteAllPrompt(false);
38068
38097
  }, [onMuteAllRemoteParticipants, setShowMuteAllPrompt]);
38069
38098
  const [showForbidOthersAudioPrompt, setShowForbidOthersAudioPrompt] = React.useState(false);
@@ -38071,19 +38100,19 @@ const usePeoplePane = (props) => {
38071
38100
  const [showForbidOthersVideoPrompt, setShowForbidOthersVideoPrompt] = React.useState(false);
38072
38101
  const [showPermitOthersVideoPrompt, setShowPermitOthersVideoPrompt] = React.useState(false);
38073
38102
  const onForbidAllAttendeesPromptConfirm = React.useCallback(() => {
38074
- onForbidOthersAudio && onForbidOthersAudio();
38103
+ onForbidOthersAudio === null || onForbidOthersAudio === void 0 ? void 0 : onForbidOthersAudio();
38075
38104
  setShowForbidOthersAudioPrompt(false);
38076
38105
  }, [onForbidOthersAudio, setShowForbidOthersAudioPrompt]);
38077
38106
  const onPermitAllAttendeesPromptConfirm = React.useCallback(() => {
38078
- onPermitOthersAudio && onPermitOthersAudio();
38107
+ onPermitOthersAudio === null || onPermitOthersAudio === void 0 ? void 0 : onPermitOthersAudio();
38079
38108
  setShowPermitOthersAudioPrompt(false);
38080
38109
  }, [onPermitOthersAudio, setShowPermitOthersAudioPrompt]);
38081
38110
  const onForbidOthersVideoPromptConfirm = React.useCallback(() => {
38082
- onForbidOthersVideo && onForbidOthersVideo();
38111
+ onForbidOthersVideo === null || onForbidOthersVideo === void 0 ? void 0 : onForbidOthersVideo();
38083
38112
  setShowForbidOthersVideoPrompt(false);
38084
38113
  }, [onForbidOthersVideo, setShowForbidOthersVideoPrompt]);
38085
38114
  const onPermitOthersVideoPromptConfirm = React.useCallback(() => {
38086
- onPermitOthersVideo && onPermitOthersVideo();
38115
+ onPermitOthersVideo === null || onPermitOthersVideo === void 0 ? void 0 : onPermitOthersVideo();
38087
38116
  setShowPermitOthersVideoPrompt(false);
38088
38117
  }, [onPermitOthersVideo, setShowPermitOthersVideoPrompt]);
38089
38118
  const sidePaneHeaderMenuProps = React.useMemo(() => {
@@ -38125,8 +38154,7 @@ const usePeoplePane = (props) => {
38125
38154
  const isMeetingAudioPermitted = meetingMediaAccess ? meetingMediaAccess.isAudioPermitted : true;
38126
38155
  const isMeetingVideoPermitted = meetingMediaAccess ? meetingMediaAccess.isVideoPermitted : true;
38127
38156
  if (onForbidOthersAudio && remoteParticipants) {
38128
- hasAttendee &&
38129
- isMeetingAudioPermitted &&
38157
+ if (hasAttendee && isMeetingAudioPermitted) {
38130
38158
  menuItems.push({
38131
38159
  ['data-ui-id']: 'people-pane-forbid-all-attendees-audio',
38132
38160
  key: 'forbidOthersAudio',
@@ -38141,10 +38169,10 @@ const usePeoplePane = (props) => {
38141
38169
  ariaLabel: localeStrings.forbidOthersAudioMenuLabel,
38142
38170
  disabled: !hasAttendee
38143
38171
  });
38172
+ }
38144
38173
  }
38145
38174
  if (onPermitOthersAudio && remoteParticipants) {
38146
- hasAttendee &&
38147
- !isMeetingAudioPermitted &&
38175
+ if (hasAttendee && !isMeetingAudioPermitted) {
38148
38176
  menuItems.push({
38149
38177
  ['data-ui-id']: 'people-pane-permit-all-attendees-audio',
38150
38178
  key: 'permitOthersAudio',
@@ -38159,10 +38187,10 @@ const usePeoplePane = (props) => {
38159
38187
  ariaLabel: localeStrings.permitOthersAudioMenuLabel,
38160
38188
  disabled: !hasAttendee
38161
38189
  });
38190
+ }
38162
38191
  }
38163
38192
  if (onForbidOthersVideo && remoteParticipants) {
38164
- hasAttendee &&
38165
- isMeetingVideoPermitted &&
38193
+ if (hasAttendee && isMeetingVideoPermitted) {
38166
38194
  menuItems.push({
38167
38195
  ['data-ui-id']: 'people-pane-forbid-all-attendees-video',
38168
38196
  key: 'forbidOthersVideo',
@@ -38177,10 +38205,10 @@ const usePeoplePane = (props) => {
38177
38205
  ariaLabel: localeStrings.forbidOthersVideoMenuLabel,
38178
38206
  disabled: !hasAttendee
38179
38207
  });
38208
+ }
38180
38209
  }
38181
38210
  if (onPermitOthersVideo && remoteParticipants) {
38182
- hasAttendee &&
38183
- !isMeetingVideoPermitted &&
38211
+ if (hasAttendee && !isMeetingVideoPermitted) {
38184
38212
  menuItems.push({
38185
38213
  ['data-ui-id']: 'people-pane-permit-all-attendees-video',
38186
38214
  key: 'permitOthersVideo',
@@ -38195,6 +38223,7 @@ const usePeoplePane = (props) => {
38195
38223
  ariaLabel: localeStrings.permitOthersVideoMenuLabel,
38196
38224
  disabled: !hasAttendee
38197
38225
  });
38226
+ }
38198
38227
  }
38199
38228
  if (onStopAllSpotlight && spotlightedParticipantUserIds && spotlightedParticipantUserIds.length > 0) {
38200
38229
  menuItems.push({
@@ -38916,7 +38945,9 @@ const useVideoEffectsPane = (updateSidePaneRenderer, mobileView, latestErrors, o
38916
38945
  const onRenderContent = React.useCallback(() => {
38917
38946
  return (React.createElement(VideoEffectsPaneContent, { onDismissError: onDismissError, activeVideoEffectError: latestVideoEffectError, activeVideoEffectChange: () => {
38918
38947
  // Clear any existing video effects error when the user clicks on a new video effect
38919
- latestVideoEffectError && (onDismissError === null || onDismissError === void 0 ? void 0 : onDismissError(latestVideoEffectError));
38948
+ if (latestVideoEffectError) {
38949
+ onDismissError === null || onDismissError === void 0 ? void 0 : onDismissError(latestVideoEffectError);
38950
+ }
38920
38951
  }, updateFocusHandle: updateFocusHandle, backgroundImages: backgroundImages }));
38921
38952
  }, [latestVideoEffectError, onDismissError, updateFocusHandle, backgroundImages]);
38922
38953
  const sidePaneRenderer = React.useMemo(() => ({
@@ -40065,9 +40096,9 @@ const ExpandedLocalVideoTile = (props) => {
40065
40096
  const isVideoReady = (_a = videoStream === null || videoStream === void 0 ? void 0 : videoStream.isAvailable) !== null && _a !== void 0 ? _a : false;
40066
40097
  const renderElement = videoStream === null || videoStream === void 0 ? void 0 : videoStream.renderElement;
40067
40098
  React.useEffect(() => {
40099
+ var _a;
40068
40100
  if (videoStream && isVideoReady) {
40069
- props.onCreateLocalStreamView &&
40070
- props.onCreateLocalStreamView(localVideoViewOptions$1).catch((err) => console.log('Can not render video', err));
40101
+ (_a = props.onCreateLocalStreamView) === null || _a === void 0 ? void 0 : _a.call(props, localVideoViewOptions$1).catch((err) => console.log('Can not render video', err));
40071
40102
  }
40072
40103
  }, [isVideoReady, videoStream, props, renderElement]);
40073
40104
  return (React.createElement(react.Stack, { horizontalAlign: "center", verticalAlign: "center", styles: containerStyles$1, grow: true },
@@ -41131,7 +41162,12 @@ const LocalPreview = (props) => {
41131
41162
  const isLocalMicrophoneEnabled = useSelector$1(getLocalMicrophoneEnabled);
41132
41163
  const adapter = useAdapter();
41133
41164
  const onToggleMic = React.useCallback(() => __awaiter$d(void 0, void 0, void 0, function* () {
41134
- isLocalMicrophoneEnabled ? adapter.mute() : adapter.unmute();
41165
+ if (isLocalMicrophoneEnabled) {
41166
+ adapter.mute();
41167
+ }
41168
+ else {
41169
+ adapter.unmute();
41170
+ }
41135
41171
  }), [adapter, isLocalMicrophoneEnabled]);
41136
41172
  const hasNoSpeakers = !devicesButtonProps.speakers.length;
41137
41173
  const hasNoDevices = devicesButtonProps.cameras.length === 0 &&
@@ -44335,7 +44371,7 @@ class AzureCommunicationCallAdapter {
44335
44371
  });
44336
44372
  removed.forEach((participant) => {
44337
44373
  const subscriber = this.participantSubscribers.get(toFlatCommunicationIdentifier(participant.identifier));
44338
- subscriber && subscriber.unsubscribeAll();
44374
+ subscriber === null || subscriber === void 0 ? void 0 : subscriber.unsubscribeAll();
44339
44375
  this.participantSubscribers.delete(toFlatCommunicationIdentifier(participant.identifier));
44340
44376
  });
44341
44377
  }
@@ -44443,7 +44479,9 @@ class AzureCommunicationCallAdapter {
44443
44479
  }
44444
44480
  callIdChanged() {
44445
44481
  var _a;
44446
- ((_a = this.call) === null || _a === void 0 ? void 0 : _a.id) && this.emitter.emit('callIdChanged', { callId: this.call.id });
44482
+ if ((_a = this.call) === null || _a === void 0 ? void 0 : _a.id) {
44483
+ this.emitter.emit('callIdChanged', { callId: this.call.id });
44484
+ }
44447
44485
  }
44448
44486
  resetDiagnosticsForwarder(newCall) {
44449
44487
  if (this.diagnosticsForwarder) {
@@ -44915,7 +44953,9 @@ class CallWithChatBackedCallAdapter {
44915
44953
  };
44916
44954
  this.offStateChange = (handler) => {
44917
44955
  const convertedHandler = this.eventStore.get(handler);
44918
- convertedHandler && this.callWithChatAdapter.offStateChange(convertedHandler);
44956
+ if (convertedHandler) {
44957
+ this.callWithChatAdapter.offStateChange(convertedHandler);
44958
+ }
44919
44959
  };
44920
44960
  this.getState = () => callAdapterStateFromCallWithChatAdapterState(this.callWithChatAdapter.getState());
44921
44961
  this.dispose = () => this.callWithChatAdapter.dispose();
@@ -45207,14 +45247,18 @@ class CallWithChatBackedChatAdapter {
45207
45247
  this.dispose = () => this.callWithChatAdapter.dispose();
45208
45248
  this.onStateChange = (handler) => {
45209
45249
  const convertedHandler = (state) => {
45210
- !!state.chat && handler(chatAdapterStateFromCallWithChatAdapterState(state));
45250
+ if (state.chat) {
45251
+ handler(chatAdapterStateFromCallWithChatAdapterState(state));
45252
+ }
45211
45253
  };
45212
45254
  this.callWithChatAdapter.onStateChange(convertedHandler);
45213
45255
  this.eventStore.set(handler, convertedHandler);
45214
45256
  };
45215
45257
  this.offStateChange = (handler) => {
45216
45258
  const convertedHandler = this.eventStore.get(handler);
45217
- convertedHandler && this.callWithChatAdapter.offStateChange(convertedHandler);
45259
+ if (convertedHandler) {
45260
+ this.callWithChatAdapter.offStateChange(convertedHandler);
45261
+ }
45218
45262
  };
45219
45263
  this.getState = () => chatAdapterStateFromCallWithChatAdapterState(this.callWithChatAdapter.getState());
45220
45264
  /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
@@ -45511,7 +45555,12 @@ const CallWithChatScreen = (props) => {
45511
45555
  }, [closeChat, isOnHold]);
45512
45556
  const hasJoinedCall = !!(currentPage && hasJoinedCallFn(currentPage, currentCallState !== null && currentCallState !== void 0 ? currentCallState : 'None'));
45513
45557
  const toggleChat = React.useCallback(() => {
45514
- isChatOpen || !hasJoinedCall ? closeChat() : openChat();
45558
+ if (isChatOpen || !hasJoinedCall) {
45559
+ closeChat();
45560
+ }
45561
+ else {
45562
+ openChat();
45563
+ }
45515
45564
  }, [closeChat, hasJoinedCall, isChatOpen, openChat]);
45516
45565
  const callWithChatStrings = useCallWithChatCompositeStrings();
45517
45566
  const chatButtonStrings = React.useMemo(() => ({
@@ -46770,11 +46819,15 @@ class TeamsMeetingLinkProvider {
46770
46819
  const chatThreadPromise = new Promise((resolve) => {
46771
46820
  this.callAdapterPromise.then((callAdapter) => {
46772
46821
  // Ensure function is idempotent by removing any existing subscription.
46773
- this.callAdapterSubscription && callAdapter.offStateChange(this.callAdapterSubscription);
46822
+ if (this.callAdapterSubscription) {
46823
+ callAdapter.offStateChange(this.callAdapterSubscription);
46824
+ }
46774
46825
  this.callAdapterSubscription = (state) => {
46775
46826
  var _a, _b, _c;
46776
46827
  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)) {
46777
- this.callAdapterSubscription && callAdapter.offStateChange(this.callAdapterSubscription);
46828
+ if (this.callAdapterSubscription) {
46829
+ callAdapter.offStateChange(this.callAdapterSubscription);
46830
+ }
46778
46831
  this.callAdapterSubscription = undefined;
46779
46832
  resolve((_c = state.call.info) === null || _c === void 0 ? void 0 : _c.threadId);
46780
46833
  }
@@ -47704,4 +47757,4 @@ exports.useTeamsCall = useTeamsCall;
47704
47757
  exports.useTeamsCallAdapter = useTeamsCallAdapter;
47705
47758
  exports.useTeamsCallAgent = useTeamsCallAgent;
47706
47759
  exports.useTheme = useTheme;
47707
- //# sourceMappingURL=index-NXI7aNBc.js.map
47760
+ //# sourceMappingURL=index-rf3tf-XH.js.map