@azure/communication-react 1.28.0-alpha-202505280019 → 1.28.0-alpha-202505300019

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 (71) hide show
  1. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-C3-bBRPP.js → ChatMessageComponentAsRichTextEditBox-BKu5oTzG.js} +2 -2
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-C3-bBRPP.js.map → ChatMessageComponentAsRichTextEditBox-BKu5oTzG.js.map} +1 -1
  3. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-zXI9oQk8.js → RichTextSendBoxWrapper-DGHJOy5l.js} +2 -2
  4. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-zXI9oQk8.js.map → RichTextSendBoxWrapper-DGHJOy5l.js.map} +1 -1
  5. package/dist/dist-cjs/communication-react/{index-MirQ5T4i.js → index-ITd2ru2_.js} +93 -83
  6. package/dist/dist-cjs/communication-react/index-ITd2ru2_.js.map +1 -0
  7. package/dist/dist-cjs/communication-react/index.js +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/safeStringify.d.ts +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/safeStringify.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  12. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +1 -2
  13. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +7 -4
  15. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  16. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js +1 -1
  17. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
  18. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -1
  19. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  20. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +7 -4
  21. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  22. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +18 -10
  23. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  24. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +4 -4
  25. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  26. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js +1 -1
  27. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
  28. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js +1 -1
  29. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js.map +1 -1
  30. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js +3 -1
  31. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
  32. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js +3 -1
  33. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
  34. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +0 -1
  35. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +2 -7
  37. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  38. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +1 -1
  39. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
  40. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js +2 -2
  41. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js +4 -4
  43. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js.map +1 -1
  44. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +15 -13
  45. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  46. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +2 -2
  47. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  48. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +3 -1
  49. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  50. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +1 -0
  51. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +7 -4
  52. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  53. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.d.ts +1 -0
  54. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js +1 -1
  55. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
  56. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js +1 -1
  57. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js.map +1 -1
  58. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +0 -3
  59. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  60. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  61. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  62. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +0 -1
  63. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  64. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +0 -2
  65. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +1 -1
  66. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +0 -1
  67. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  68. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +1 -5
  69. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  70. package/package.json +1 -1
  71. package/dist/dist-cjs/communication-react/index-MirQ5T4i.js.map +0 -1
@@ -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-202505280019';
190
+ var telemetryVersion = '1.28.0-alpha-202505300019';
191
191
 
192
192
 
193
193
  var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
@@ -844,10 +844,9 @@ const cameraButtonSelector = reselect__namespace.createSelector([getLocalVideoSt
844
844
  * @public
845
845
  */
846
846
  const raiseHandButtonSelector = reselect__namespace.createSelector([getLocalParticipantRaisedHand$1, getCallState], (raisedHand, callState) => {
847
- var _a;
848
847
  return {
849
848
  checked: raisedHand ? true : false,
850
- disabled: callState === 'InLobby' ? true : (_a = callState === 'Connecting') !== null && _a !== void 0 ? _a : false
849
+ disabled: callState === 'InLobby' ? true : callState === 'Connecting'
851
850
  };
852
851
  });
853
852
  /**
@@ -940,7 +939,9 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
940
939
  if (!videoDeviceInfo) {
941
940
  const cameras = yield (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getCameras());
942
941
  videoDeviceInfo = cameras && cameras.length > 0 ? cameras[0] : undefined;
943
- videoDeviceInfo && (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.selectCamera(videoDeviceInfo));
942
+ if (videoDeviceInfo) {
943
+ deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.selectCamera(videoDeviceInfo);
944
+ }
944
945
  }
945
946
  if (!callId || !videoDeviceInfo) {
946
947
  return;
@@ -983,9 +984,10 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
983
984
  const stream = call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video');
984
985
  const unparentedViews = callClient.getState().deviceManager.unparentedViews;
985
986
  if (stream || unparentedViews.length > 0) {
986
- unparentedViews &&
987
- (yield unparentedViews.forEach((view) => view.mediaStreamType === 'Video' && callClient.disposeView(undefined, undefined, view)));
988
- stream && (yield onStopLocalVideo(stream));
987
+ unparentedViews.forEach((view) => view.mediaStreamType === 'Video' && callClient.disposeView(undefined, undefined, view));
988
+ if (stream) {
989
+ yield onStopLocalVideo(stream);
990
+ }
989
991
  }
990
992
  else {
991
993
  yield onStartLocalVideo();
@@ -3700,16 +3702,19 @@ let CallContext$2 = class CallContext {
3700
3702
  // if inProgressRealTimeTexts is an array
3701
3703
  if (inProgressRealTimeTexts && Array.isArray(inProgressRealTimeTexts)) {
3702
3704
  // find the in progress real time text that has not been updated for 5 seconds
3703
- inProgressRealTimeTexts.forEach((realTimeText, index) => {
3704
- if (realTimeText.updatedTimestamp && Date.now() - realTimeText.updatedTimestamp.getTime() > 5000) {
3705
+ for (let i = inProgressRealTimeTexts.length - 1; i >= 0; i--) {
3706
+ const realTimeText = inProgressRealTimeTexts[i];
3707
+ if ((realTimeText === null || realTimeText === void 0 ? void 0 : realTimeText.updatedTimestamp) && Date.now() - (realTimeText === null || realTimeText === void 0 ? void 0 : realTimeText.updatedTimestamp.getTime()) > 5000) {
3705
3708
  // turn the in progress real time text to final
3706
3709
  realTimeText.resultType = 'Final';
3707
3710
  // move the in progress real time text to completed
3708
3711
  completedRealTimeTexts.push(realTimeText);
3709
3712
  // remove the in progress real time text from in progress
3710
- inProgressRealTimeTexts && inProgressRealTimeTexts.splice(index, 1);
3713
+ if (inProgressRealTimeTexts) {
3714
+ inProgressRealTimeTexts.splice(i, 1);
3715
+ }
3711
3716
  }
3712
- });
3717
+ }
3713
3718
  }
3714
3719
  else {
3715
3720
  // if inProgressRealTimeTexts is a single object
@@ -4521,9 +4526,12 @@ function createViewVideo(context, internalContext, callId, stream, participantId
4521
4526
  return;
4522
4527
  }
4523
4528
  const renderer = new communicationCalling.VideoStreamRenderer(renderInfo.stream);
4524
- streamEventType === 'createViewRemote' && participantKey
4525
- ? internalContext.setRemoteRenderInfo(callId, participantKey, remoteStreamId, renderInfo.stream, 'Rendering', undefined)
4526
- : internalContext.setLocalRenderInfo(callId, localStreamKey, renderInfo.stream, 'Rendering', renderer);
4529
+ if (streamEventType === 'createViewRemote' && participantKey) {
4530
+ internalContext.setRemoteRenderInfo(callId, participantKey, remoteStreamId, renderInfo.stream, 'Rendering', undefined);
4531
+ }
4532
+ else {
4533
+ internalContext.setLocalRenderInfo(callId, localStreamKey, renderInfo.stream, 'Rendering', renderer);
4534
+ }
4527
4535
  let view;
4528
4536
  try {
4529
4537
  view = yield renderer.createView(options);
@@ -4549,12 +4557,17 @@ function createViewVideo(context, internalContext, callId, stream, participantId
4549
4557
  // and clean up the state.
4550
4558
  _logStreamEvent(EventNames.RENDER_INFO_NOT_FOUND, streamLogInfo);
4551
4559
  renderer.dispose();
4552
- streamEventType === 'createViewRemote' && participantKey
4553
- ? context.setRemoteVideoStreamRendererView(callId, participantKey, remoteStreamId, undefined)
4554
- : context.setLocalVideoStreamRendererView(callId, localStreamKey, undefined);
4560
+ if (streamEventType === 'createViewRemote' && participantKey) {
4561
+ context.setRemoteVideoStreamRendererView(callId, participantKey, remoteStreamId, undefined);
4562
+ }
4563
+ else {
4564
+ context.setLocalVideoStreamRendererView(callId, localStreamKey, undefined);
4565
+ }
4555
4566
  return;
4556
4567
  }
4557
4568
  if (refreshedRenderInfo.status === 'Stopping') {
4569
+ // Stop render was called on this stream after we had started rendering. We will dispose this view and do not
4570
+ // put the view into the state.
4558
4571
  _logStreamEvent(EventNames.CREATED_STREAM_STOPPING, streamLogInfo);
4559
4572
  renderer.dispose();
4560
4573
  if (streamEventType === 'createViewRemote' && participantKey) {
@@ -4697,9 +4710,12 @@ function disposeViewVideo(context, internalContext, callId, stream, participantI
4697
4710
  // rendering and clean up the state once the view has finished being created.
4698
4711
  if (renderInfo.status === 'Rendering') {
4699
4712
  _logStreamEvent(EventNames.STREAM_STOPPING, streamLogInfo);
4700
- streamEventType === 'disposeViewRemote' && participantKey
4701
- ? internalContext.setRemoteRenderInfo(callId, participantKey, remoteStreamId, renderInfo.stream, 'Stopping', undefined)
4702
- : internalContext.setLocalRenderInfo(callId, localStreamKey, renderInfo.stream, 'Stopping', renderInfo.renderer);
4713
+ if (streamEventType === 'disposeViewRemote' && participantKey) {
4714
+ internalContext.setRemoteRenderInfo(callId, participantKey, remoteStreamId, renderInfo.stream, 'Stopping', undefined);
4715
+ }
4716
+ else {
4717
+ internalContext.setLocalRenderInfo(callId, localStreamKey, renderInfo.stream, 'Stopping', renderInfo.renderer);
4718
+ }
4703
4719
  return;
4704
4720
  }
4705
4721
  if (renderInfo.renderer) {
@@ -13943,7 +13959,7 @@ const RichTextInputBoxComponent = (props) => {
13943
13959
  const isRichTextEditorToolbarShown = showRichTextEditorFormatting === true;
13944
13960
  if (ev.key === 'Enter' && ev.shiftKey === false && !isRichTextEditorToolbarShown) {
13945
13961
  ev.preventDefault();
13946
- onEnterKeyDown && onEnterKeyDown();
13962
+ onEnterKeyDown === null || onEnterKeyDown === void 0 ? void 0 : onEnterKeyDown();
13947
13963
  }
13948
13964
  else {
13949
13965
  onTyping === null || onTyping === void 0 ? void 0 : onTyping();
@@ -15830,7 +15846,7 @@ const _AttachmentDownloadCards = (props) => {
15830
15846
  return defaultMenuActions;
15831
15847
  }
15832
15848
  }
15833
- catch (error) {
15849
+ catch (_a) {
15834
15850
  return defaultMenuActions;
15835
15851
  }
15836
15852
  }, []);
@@ -16151,7 +16167,9 @@ const MessageBubble$1 = (props) => {
16151
16167
  return getMessageEditedDetails(message, theme, strings.editedTag);
16152
16168
  }
16153
16169
  }, [message, messageStatus, strings.editedTag, strings.failToSendTag, theme]);
16154
- const isBlockedMessage = /* @conditional-compile-remove(data-loss-prevention) */ message.messageType === 'blocked';
16170
+ const isBlockedMessage =
16171
+ // eslint-disable-next-line no-constant-binary-expression
16172
+ /* @conditional-compile-remove(data-loss-prevention) */ message.messageType === 'blocked';
16155
16173
  const chatMyMessageStyles = useChatMyMessageStyles();
16156
16174
  const chatMessageCommonStyles = useChatMessageCommonStyles();
16157
16175
  const attached = message.attached === true ? 'center' : message.attached === 'bottom' ? 'bottom' : 'top';
@@ -16373,7 +16391,7 @@ class _ErrorBoundary extends React.Component {
16373
16391
  // Copyright (c) Microsoft Corporation.
16374
16392
  // Licensed under the MIT License.
16375
16393
  /* @conditional-compile-remove(rich-text-editor) */
16376
- const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-C3-bBRPP.js'); }));
16394
+ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-BKu5oTzG.js'); }));
16377
16395
  /**
16378
16396
  * @private
16379
16397
  * Use this function to load RoosterJS dependencies early in the lifecycle.
@@ -16381,7 +16399,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
16381
16399
  *
16382
16400
  * @conditional-compile-remove(rich-text-editor)
16383
16401
  */
16384
- const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-C3-bBRPP.js'); });
16402
+ const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-BKu5oTzG.js'); });
16385
16403
  /**
16386
16404
  * @private
16387
16405
  */
@@ -16665,7 +16683,9 @@ const MessageBubble = (props) => {
16665
16683
  strings,
16666
16684
  userId
16667
16685
  ]);
16668
- const isBlockedMessage = /* @conditional-compile-remove(data-loss-prevention) */ message.messageType === 'blocked';
16686
+ const isBlockedMessage =
16687
+ // eslint-disable-next-line no-constant-binary-expression
16688
+ /* @conditional-compile-remove(data-loss-prevention) */ message.messageType === 'blocked';
16669
16689
  const chatMessageCommonStyles = useChatMessageCommonStyles();
16670
16690
  /* @conditional-compile-remove(file-sharing-acs) */
16671
16691
  const hasMultipleAttachments = React.useMemo(() => {
@@ -19235,7 +19255,7 @@ function useLongPress(props) {
19235
19255
  return;
19236
19256
  }
19237
19257
  setAction(true);
19238
- timerRef.current && clearTimeout(timerRef.current);
19258
+ clearTimeout(timerRef.current);
19239
19259
  }, [touchEventsOnly]);
19240
19260
  const handleOnMouseDown = React.useCallback(() => {
19241
19261
  if (touchEventsOnly) {
@@ -19247,7 +19267,7 @@ function useLongPress(props) {
19247
19267
  if (touchEventsOnly) {
19248
19268
  return;
19249
19269
  }
19250
- timerRef.current && clearTimeout(timerRef.current);
19270
+ clearTimeout(timerRef.current);
19251
19271
  }, [touchEventsOnly]);
19252
19272
  const handleOnTouchStart = React.useCallback(() => {
19253
19273
  startPressTimer();
@@ -19256,10 +19276,10 @@ function useLongPress(props) {
19256
19276
  if (!isLongPress && onClick) {
19257
19277
  onClick();
19258
19278
  }
19259
- timerRef.current && clearTimeout(timerRef.current);
19279
+ clearTimeout(timerRef.current);
19260
19280
  }, [onClick, isLongPress]);
19261
19281
  const handleOnTouchMove = React.useCallback(() => {
19262
- timerRef.current && clearTimeout(timerRef.current);
19282
+ clearTimeout(timerRef.current);
19263
19283
  }, []);
19264
19284
  return React.useMemo(() => ({
19265
19285
  onClick: handleOnClick,
@@ -21811,10 +21831,7 @@ const overflowGalleryTrampoline$3 = (gallery, galleryPosition) => {
21811
21831
 
21812
21832
  // Copyright (c) Microsoft Corporation.
21813
21833
  // Licensed under the MIT License.
21814
- /* eslint-disable react/prop-types */
21815
- /* eslint-disable @typescript-eslint/no-unused-vars */
21816
21834
  /* eslint-disable @typescript-eslint/explicit-function-return-type */
21817
- /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
21818
21835
  /* eslint-disable @typescript-eslint/no-explicit-any */
21819
21836
  const animationDuration = react.AnimationVariables.durationValue2;
21820
21837
  const ZERO = { x: 0, y: 0 };
@@ -21954,9 +21971,7 @@ const ModalBase = React__namespace.forwardRef((propsWithoutDefaults, ref) => {
21954
21971
  setModalMenuClose();
21955
21972
  internalState.isInKeyboardMoveMode = false;
21956
21973
  }, [internalState, setModalMenuClose]);
21957
- const handleDrag = React__namespace.useCallback(
21958
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
21959
- (ev, dragData) => {
21974
+ const handleDrag = React__namespace.useCallback((ev, dragData) => {
21960
21975
  setCoordinates((prevValue) => ({
21961
21976
  x: getClampedAxis('x', prevValue.x + dragData.delta.x),
21962
21977
  y: getClampedAxis('y', prevValue.y + dragData.delta.y)
@@ -22321,7 +22336,7 @@ class DraggableZone extends React__namespace.Component {
22321
22336
  if (!element || element === document.body) {
22322
22337
  return false;
22323
22338
  }
22324
- // eslint-disable-next-line @typescript-eslint/ban-types
22339
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
22325
22340
  const matchesSelectorFn = element.matches || element.webkitMatchesSelector || element.msMatchesSelector; /* for IE */
22326
22341
  if (!matchesSelectorFn) {
22327
22342
  return false;
@@ -25013,7 +25028,6 @@ const DialpadContainer = (props) => {
25013
25028
  onClickDialpadButton(input, index);
25014
25029
  }
25015
25030
  };
25016
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
25017
25031
  const setText = (input) => {
25018
25032
  // remove non-valid characters from input: letters,special characters excluding +, *,#
25019
25033
  const plainInput = sanitizeInput(input);
@@ -25738,7 +25752,7 @@ const videoEffectsItemContainerStyles = (args) => {
25738
25752
  * @internal
25739
25753
  */
25740
25754
  const _VideoEffectsItem = (props) => {
25741
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
25755
+ var _a, _b, _c, _d, _e, _f, _g, _h;
25742
25756
  const theme = react.useTheme();
25743
25757
  const isSelected = (_a = props.isSelected) !== null && _a !== void 0 ? _a : false;
25744
25758
  const disabled = (_b = props.disabled) !== null && _b !== void 0 ? _b : false;
@@ -25753,7 +25767,7 @@ const _VideoEffectsItem = (props) => {
25753
25767
  }), [backgroundImage, disabled, isSelected, theme]);
25754
25768
  return (React.createElement(react.TooltipHost, Object.assign({}, props.tooltipProps),
25755
25769
  React.createElement(react.Stack, { key: props.itemKey, className: react.mergeStyles((_f = props.styles) === null || _f === void 0 ? void 0 : _f.root), verticalAlign: "center", horizontalAlign: "center", "data-ui-id": `video-effects-item` },
25756
- React.createElement(react.DefaultButton, { styles: containerStyles(), onClick: disabled ? undefined : () => { var _a; return (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, props.itemKey); }, componentRef: props.componentRef, ariaLabel: (_j = (_g = props.ariaLabel) !== null && _g !== void 0 ? _g : `${props.title}, ${(_h = props.tooltipProps) === null || _h === void 0 ? void 0 : _h.content}`) !== null && _j !== void 0 ? _j : props.itemKey, "aria-disabled": props.disabled, role: "radio", "aria-checked": isSelected },
25770
+ React.createElement(react.DefaultButton, { styles: containerStyles(), onClick: disabled ? undefined : () => { var _a; return (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, props.itemKey); }, componentRef: props.componentRef, ariaLabel: (_g = props.ariaLabel) !== null && _g !== void 0 ? _g : `${props.title}, ${(_h = props.tooltipProps) === null || _h === void 0 ? void 0 : _h.content}`, "aria-disabled": props.disabled, role: "radio", "aria-checked": isSelected },
25757
25771
  React.createElement(react.Stack, { horizontalAlign: 'center', className: react.mergeStyles({ width: '100%' }) },
25758
25772
  props.iconProps && (React.createElement(react.Stack.Item, { className: iconContainerStyles },
25759
25773
  React.createElement(react.Icon, Object.assign({}, props.iconProps)))),
@@ -27862,7 +27876,7 @@ const createDefaultCallingHandlersForComponent = (callClient, callAgent, deviceM
27862
27876
  *
27863
27877
  * @public
27864
27878
  */
27865
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
27879
+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
27866
27880
  const useHandlers$3 = (component) => {
27867
27881
  var _a, _b, _c;
27868
27882
  const callClient = (_a = React.useContext(CallClientContext)) === null || _a === void 0 ? void 0 : _a.callClient;
@@ -28085,7 +28099,6 @@ const emptySelector = () => ({});
28085
28099
  *
28086
28100
  * @public
28087
28101
  */
28088
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
28089
28102
  const getSelector$1 = (component) => {
28090
28103
  return findSelector$1(component);
28091
28104
  };
@@ -28193,8 +28206,7 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
28193
28206
  onSendMessage: function (content, options) {
28194
28207
  return __awaiter$D(this, void 0, void 0, function* () {
28195
28208
  const sendMessageRequest = {
28196
- content,
28197
- senderDisplayName: chatClient.getState().displayName
28209
+ content
28198
28210
  };
28199
28211
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
28200
28212
  const imageAttachments = getImageAttachmentsFromHTMLContent(content);
@@ -28217,12 +28229,13 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
28217
28229
  fileSharingMetadata: JSON.stringify(options === null || options === void 0 ? void 0 : options.attachments) }),
28218
28230
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
28219
28231
  attachments: imageAttachments,
28220
- type: options === null || options === void 0 ? void 0 : options.type
28232
+ type: options === null || options === void 0 ? void 0 : options.type,
28233
+ senderDisplayName: chatClient.getState().displayName
28221
28234
  };
28222
28235
  yield chatThreadClient.sendMessage(sendMessageRequest, chatSDKOptions);
28223
28236
  return;
28224
28237
  }
28225
- yield chatThreadClient.sendMessage(sendMessageRequest, options);
28238
+ yield chatThreadClient.sendMessage(sendMessageRequest, Object.assign(Object.assign({}, options), { senderDisplayName: chatClient.getState().displayName }));
28226
28239
  });
28227
28240
  },
28228
28241
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
@@ -28456,7 +28469,7 @@ const useSelector$3 = (selector, selectorProps) => {
28456
28469
  chatClient.offStateChange(onStateChange);
28457
28470
  };
28458
28471
  }, [chatClient, selector, selectorProps, threadConfigProps]);
28459
- return selector ? props : undefined;
28472
+ return (selector ? props : undefined);
28460
28473
  };
28461
28474
 
28462
28475
  // Copyright (c) Microsoft Corporation.
@@ -30830,7 +30843,6 @@ class AzureCommunicationChatAdapter {
30830
30843
  for (var _d = true, _e = __asyncValues(this.chatThreadClient.listParticipants().byPage({
30831
30844
  // Fetch 100 participants per page by default.
30832
30845
  maxPageSize: 100
30833
- // eslint-disable-next-line curly
30834
30846
  })), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
30835
30847
  _c = _f.value;
30836
30848
  _d = false;
@@ -31812,7 +31824,6 @@ const SendBoxAttachFileIconTrampoline = () => {
31812
31824
  */
31813
31825
  const AttachmentUploadButtonWrapper = (
31814
31826
  // To make conditional compilation not throw errors.
31815
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
31816
31827
  props) => {
31817
31828
  return (React.createElement(React.Fragment, null,
31818
31829
  /* @conditional-compile-remove(file-sharing-acs) */
@@ -31821,7 +31832,6 @@ props) => {
31821
31832
  /* @conditional-compile-remove(file-sharing-acs) */
31822
31833
  const uploadAttachmentButtonStringTrampoline = () => {
31823
31834
  /* @conditional-compile-remove(file-sharing-acs) */
31824
- //eslint-disable-next-line react-hooks/rules-of-hooks
31825
31835
  return useLocale().strings.chat.uploadAttachment;
31826
31836
  };
31827
31837
 
@@ -31901,7 +31911,6 @@ const adaptCompositeState$1 = (compositeState) => {
31901
31911
  /**
31902
31912
  * @private
31903
31913
  */
31904
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
31905
31914
  const useHandlers$1 = (
31906
31915
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
31907
31916
  _component) => {
@@ -32211,7 +32220,7 @@ const AttachmentDownloadErrorBar = (props) => {
32211
32220
  /**
32212
32221
  * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox with lazy loading
32213
32222
  */
32214
- const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-zXI9oQk8.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
32223
+ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-DGHJOy5l.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
32215
32224
  /**
32216
32225
  * @private
32217
32226
  * Use this function to load RoosterJS dependencies early in the lifecycle.
@@ -32219,7 +32228,7 @@ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function
32219
32228
  *
32220
32229
  /* @conditional-compile-remove(rich-text-editor-composite-support)
32221
32230
  */
32222
- const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-zXI9oQk8.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
32231
+ const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-DGHJOy5l.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
32223
32232
  /**
32224
32233
  * @private
32225
32234
  */
@@ -33545,7 +33554,6 @@ const disableCallControls = (callControlOptions, disabledControls) => {
33545
33554
  let newOptions = (_a = (callControlOptions instanceof Object ? Object.assign({}, callControlOptions) : callControlOptions)) !== null && _a !== void 0 ? _a : {};
33546
33555
  if (newOptions === true || newOptions === undefined) {
33547
33556
  newOptions = disabledControls.reduce((acc, key) => {
33548
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
33549
33557
  // @ts-expect-error TODO: fix noImplicitAny error here
33550
33558
  // Not solveable at this time due to typescript limitations. The typing is too complex for typescript to
33551
33559
  // understand. Will need to revisit when either typescript or the calling component bindings are updated.
@@ -33555,10 +33563,8 @@ const disableCallControls = (callControlOptions, disabledControls) => {
33555
33563
  }
33556
33564
  else {
33557
33565
  disabledControls.forEach((key) => {
33558
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
33559
33566
  // @ts-expect-error refer to above comment
33560
33567
  if (newOptions[key] !== false) {
33561
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
33562
33568
  // @ts-expect-error refer to above comment
33563
33569
  newOptions[key] = { disabled: true };
33564
33570
  }
@@ -34002,9 +34008,9 @@ var __awaiter$q = (window && window.__awaiter) || function (thisArg, _arguments,
34002
34008
  });
34003
34009
  };
34004
34010
  /**
34011
+ * Private implementation of the hook
34005
34012
  * @private
34006
34013
  */
34007
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
34008
34014
  const useHandlers = (
34009
34015
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
34010
34016
  _component) => {
@@ -34055,9 +34061,12 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
34055
34061
  }),
34056
34062
  onToggleRaiseHand: () => __awaiter$q(void 0, void 0, void 0, function* () {
34057
34063
  var _k;
34058
- ((_k = adapter.getState().call) === null || _k === void 0 ? void 0 : _k.raiseHand.localParticipantRaisedHand)
34059
- ? yield adapter.lowerHand()
34060
- : yield adapter.raiseHand();
34064
+ if ((_k = adapter.getState().call) === null || _k === void 0 ? void 0 : _k.raiseHand.localParticipantRaisedHand) {
34065
+ yield adapter.lowerHand();
34066
+ }
34067
+ else {
34068
+ yield adapter.raiseHand();
34069
+ }
34061
34070
  }),
34062
34071
  onReactionClick: (reaction) => __awaiter$q(void 0, void 0, void 0, function* () {
34063
34072
  yield adapter.onReactionClick(reaction);
@@ -34244,9 +34253,9 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
34244
34253
  // Copyright (c) Microsoft Corporation.
34245
34254
  // Licensed under the MIT License.
34246
34255
  /**
34256
+ * Private implementation of the hook
34247
34257
  * @private
34248
34258
  */
34249
- // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
34250
34259
  const usePropsFor$1 = (component) => {
34251
34260
  const selector = getSelector$1(component);
34252
34261
  if (!selector) {
@@ -36378,10 +36387,7 @@ const CommonCallControlBar = (props) => {
36378
36387
  const showRealTimeTextButton = props.isRealTimeTextSupported && isEnabled$1(options.realTimeTextButton);
36379
36388
  const showTeamsMeetingPhoneCallButton = isEnabled$1(options === null || options === void 0 ? void 0 : options.teamsMeetingPhoneCallButton);
36380
36389
  const showDesktopMoreButton = isEnabled$1(options === null || options === void 0 ? void 0 : options.moreButton) &&
36381
- (isEnabled$1(options === null || options === void 0 ? void 0 : options.holdButton) ||
36382
- showCaptionsButton ||
36383
- props.onUserSetGalleryLayout ||
36384
- showRealTimeTextButton);
36390
+ (isEnabled$1(options === null || options === void 0 ? void 0 : options.holdButton) || showCaptionsButton || props.onUserSetGalleryLayout || showRealTimeTextButton);
36385
36391
  const role = (_b = props.callAdapter.getState().call) === null || _b === void 0 ? void 0 : _b.role;
36386
36392
  const hideRaiseHandButtonInRoomsCall = props.callAdapter.getState().isRoomsCall && role && ['Consumer', 'Unknown'].includes(role);
36387
36393
  const reactionResources = props.callAdapter.getState().reactions;
@@ -38930,7 +38936,9 @@ const LocalAndRemotePIP = (props) => {
38930
38936
  }), [ariaLabel]);
38931
38937
  // If there are no remote participants, show the local participant as the primary tile
38932
38938
  const primaryTileProps = React.useMemo(() => ({
38933
- children: remoteVideoTileProps ? (React.createElement(_RemoteVideoTile, Object.assign({}, remoteVideoTileProps, { strings: locale.component.strings.videoGallery, onLongTouch: () => { } }))) : (React.createElement(_LocalVideoTile, Object.assign({}, localVideoTileProps))),
38939
+ children: remoteVideoTileProps ? (React.createElement(_RemoteVideoTile, Object.assign({}, remoteVideoTileProps, { strings: locale.component.strings.videoGallery, onLongTouch: () => {
38940
+ /* Add to disable scaling */
38941
+ } }))) : (React.createElement(_LocalVideoTile, Object.assign({}, localVideoTileProps))),
38934
38942
  // TODO: when the calling SDK provides height/width stream information - update this to reflect the stream orientation.
38935
38943
  orientation: 'portrait'
38936
38944
  }), [localVideoTileProps, remoteVideoTileProps, locale.component.strings.videoGallery]);
@@ -40212,7 +40220,7 @@ const DtmfDialerContentTimer = () => {
40212
40220
  React.useEffect(() => {
40213
40221
  const interval = setInterval(() => {
40214
40222
  var _a;
40215
- setTime((_a = new Date(Date.now()).getTime() - (startTime === null || startTime === void 0 ? void 0 : startTime.getTime())) !== null && _a !== void 0 ? _a : 0);
40223
+ setTime(new Date(Date.now()).getTime() - ((_a = startTime === null || startTime === void 0 ? void 0 : startTime.getTime()) !== null && _a !== void 0 ? _a : 0));
40216
40224
  }, 10);
40217
40225
  return () => {
40218
40226
  clearInterval(interval);
@@ -42702,20 +42710,22 @@ const MainScreen = (props) => {
42702
42710
  }, [complianceProps, cachedProps]);
42703
42711
  React.useEffect(() => {
42704
42712
  if (complianceNotification) {
42705
- activeNotifications.forEach((notification, index) => {
42706
- if ([
42707
- 'recordingStarted',
42708
- 'transcriptionStarted',
42709
- 'recordingStopped',
42710
- 'transcriptionStopped',
42711
- 'recordingAndTranscriptionStarted',
42712
- 'recordingAndTranscriptionStopped',
42713
- 'recordingStoppedStillTranscribing',
42714
- 'transcriptionStoppedStillRecording'
42715
- ].includes(notification.type)) {
42716
- activeNotifications.splice(index, 1);
42713
+ for (let i = activeNotifications.length - 1; i >= 0; i--) {
42714
+ const notification = activeNotifications[i];
42715
+ if (notification &&
42716
+ [
42717
+ 'recordingStarted',
42718
+ 'transcriptionStarted',
42719
+ 'recordingStopped',
42720
+ 'transcriptionStopped',
42721
+ 'recordingAndTranscriptionStarted',
42722
+ 'recordingAndTranscriptionStopped',
42723
+ 'recordingStoppedStillTranscribing',
42724
+ 'transcriptionStoppedStillRecording'
42725
+ ].includes(notification.type)) {
42726
+ activeNotifications.splice(i, 1);
42717
42727
  }
42718
- });
42728
+ }
42719
42729
  activeNotifications.push(complianceNotification);
42720
42730
  }
42721
42731
  setTrackedNotifications((prev) => updateTrackedNotificationsWithActiveNotifications(prev, activeNotifications));
@@ -44196,7 +44206,7 @@ class AzureCommunicationCallAdapter {
44196
44206
  try {
44197
44207
  (_j = this.call) === null || _j === void 0 ? void 0 : _j.feature(communicationCalling.Features.RealTimeText).on('realTimeTextReceived', this.realTimeTextReceived.bind(this));
44198
44208
  }
44199
- catch (e) {
44209
+ catch (_l) {
44200
44210
  console.log('RealTimeText feature is not supported');
44201
44211
  }
44202
44212
  const breakoutRoomsFeature = (_k = this.call) === null || _k === void 0 ? void 0 : _k.feature(communicationCalling.Features.BreakoutRooms);
@@ -44219,7 +44229,7 @@ class AzureCommunicationCallAdapter {
44219
44229
  try {
44220
44230
  (_f = this.call) === null || _f === void 0 ? void 0 : _f.feature(communicationCalling.Features.RealTimeText).off('realTimeTextReceived', this.realTimeTextReceived.bind(this));
44221
44231
  }
44222
- catch (e) {
44232
+ catch (_h) {
44223
44233
  console.log('RealTimeText feature is not supported');
44224
44234
  }
44225
44235
  if (this.callingSoundSubscriber) {
@@ -47630,4 +47640,4 @@ exports.useTeamsCall = useTeamsCall;
47630
47640
  exports.useTeamsCallAdapter = useTeamsCallAdapter;
47631
47641
  exports.useTeamsCallAgent = useTeamsCallAgent;
47632
47642
  exports.useTheme = useTheme;
47633
- //# sourceMappingURL=index-MirQ5T4i.js.map
47643
+ //# sourceMappingURL=index-ITd2ru2_.js.map