@azure/communication-react 1.18.0-alpha-202406260014 → 1.18.0-alpha-202406280014

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 (124) hide show
  1. package/dist/communication-react.d.ts +98 -106
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-_hqOwT_h.js → ChatMessageComponentAsRichTextEditBox-Bl9FzI6X.js} +2 -2
  3. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-_hqOwT_h.js.map → ChatMessageComponentAsRichTextEditBox-Bl9FzI6X.js.map} +1 -1
  4. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-D-KYGmZ9.js → RichTextSendBoxWrapper-G-04IaQB.js} +2 -2
  5. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-D-KYGmZ9.js.map → RichTextSendBoxWrapper-G-04IaQB.js.map} +1 -1
  6. package/dist/dist-cjs/communication-react/{index-DCf8u3Nr.js → index-CWs0GTYF.js} +75 -158
  7. package/dist/dist-cjs/communication-react/index-CWs0GTYF.js.map +1 -0
  8. package/dist/dist-cjs/communication-react/index.js +3 -3
  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/calling-component-bindings/src/errorBarSelector.js +5 -20
  12. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  13. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +2 -2
  15. package/dist/dist-esm/calling-component-bindings/src/index.js +1 -1
  16. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  17. package/dist/dist-esm/calling-component-bindings/src/{errorNotificationsSelector.d.ts → notificationStackSelector.d.ts} +4 -3
  18. package/dist/dist-esm/calling-component-bindings/src/{errorNotificationsSelector.js → notificationStackSelector.js} +7 -3
  19. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js.map +1 -0
  20. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +1 -1
  21. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  22. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
  23. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  24. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +1 -0
  25. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +9 -0
  26. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  27. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -1
  28. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  29. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  30. package/dist/dist-esm/communication-react/src/index.d.ts +2 -2
  31. package/dist/dist-esm/communication-react/src/index.js +1 -1
  32. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  33. package/dist/dist-esm/communication-react/src/mergedHooks.js.map +1 -1
  34. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
  35. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
  37. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +1 -1
  38. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +4 -0
  39. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  40. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.d.ts +1 -21
  41. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js +8 -8
  42. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js.map +1 -1
  43. package/dist/dist-esm/react-components/src/components/{NotificationBar.d.ts → Notification.d.ts} +8 -8
  44. package/dist/dist-esm/react-components/src/components/{NotificationBar.js → Notification.js} +5 -5
  45. package/dist/dist-esm/react-components/src/components/Notification.js.map +1 -0
  46. package/dist/dist-esm/react-components/src/components/{Notifications.d.ts → NotificationStack.d.ts} +46 -42
  47. package/dist/dist-esm/react-components/src/components/{Notifications.js → NotificationStack.js} +7 -7
  48. package/dist/dist-esm/react-components/src/components/NotificationStack.js.map +1 -0
  49. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  50. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
  51. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +1 -1
  52. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  53. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  54. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js.map +1 -1
  55. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js.map +1 -1
  56. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  57. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  58. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  59. package/dist/dist-esm/react-components/src/components/index.d.ts +2 -2
  60. package/dist/dist-esm/react-components/src/components/index.js +2 -2
  61. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  62. package/dist/dist-esm/react-components/src/components/styles/{NotificationBar.styles.d.ts → Notification.styles.d.ts} +1 -1
  63. package/dist/dist-esm/react-components/src/components/styles/{NotificationBar.styles.js → Notification.styles.js} +1 -1
  64. package/dist/dist-esm/react-components/src/components/styles/Notification.styles.js.map +1 -0
  65. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js.map +1 -1
  66. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js.map +1 -1
  67. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +1 -1
  68. package/dist/dist-esm/react-components/src/components/utils.d.ts +1 -1
  69. package/dist/dist-esm/react-components/src/components/utils.js +3 -1
  70. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  71. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +4 -4
  72. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  73. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +10 -10
  74. package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
  75. package/dist/dist-esm/react-components/src/theming/icons.js +4 -0
  76. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  77. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +3 -13
  78. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  79. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +2 -0
  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.d.ts +9 -1
  82. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  83. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +0 -2
  84. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +3 -9
  85. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  86. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  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/NetworkReconnectTile.d.ts +1 -0
  89. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +12 -3
  90. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  91. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -1
  92. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  93. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.d.ts +2 -3
  94. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +1 -1
  95. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +1 -1
  96. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +0 -2
  97. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +2 -3
  98. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  99. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  100. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  101. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  102. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  103. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -1
  104. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.d.ts +1 -1
  105. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
  106. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  107. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.js +6 -0
  108. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.js.map +1 -1
  109. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +2 -3
  110. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +2 -40
  111. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
  112. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -7
  113. package/package.json +2 -2
  114. package/dist/dist-cjs/communication-react/index-DCf8u3Nr.js.map +0 -1
  115. package/dist/dist-esm/calling-component-bindings/src/errorNotificationsSelector.js.map +0 -1
  116. package/dist/dist-esm/react-components/src/components/NotificationBar.js.map +0 -1
  117. package/dist/dist-esm/react-components/src/components/Notifications.js.map +0 -1
  118. package/dist/dist-esm/react-components/src/components/styles/NotificationBar.styles.js.map +0 -1
  119. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/BadNetworkQualityNotificationBar.d.ts +0 -22
  120. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/BadNetworkQualityNotificationBar.js +0 -40
  121. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/BadNetworkQualityNotificationBar.js.map +0 -1
  122. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/badNetworkQualitySelector.d.ts +0 -19
  123. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/badNetworkQualitySelector.js +0 -26
  124. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/badNetworkQualitySelector.js.map +0 -1
@@ -153,7 +153,7 @@ export declare interface ActiveErrorMessage {
153
153
  }
154
154
 
155
155
  /**
156
- * Active notifications to be shown via {@link Notifications}.
156
+ * Active notifications to be shown via {@link NotificationStack}.
157
157
  *
158
158
  * @beta
159
159
  */
@@ -1396,6 +1396,10 @@ export declare interface CallAdapterSubscribers {
1396
1396
  * Subscribe function for 'spotlightChanged' event.
1397
1397
  */
1398
1398
  on(event: 'spotlightChanged', listener: SpotlightChangedListener): void;
1399
+ /**
1400
+ * Subscribe function for 'mutedByOthers' event.
1401
+ */
1402
+ on(event: 'mutedByOthers', listener: PropertyChangedEvent): void;
1399
1403
  /**
1400
1404
  * Unsubscribe function for 'participantsJoined' event.
1401
1405
  */
@@ -1473,9 +1477,13 @@ export declare interface CallAdapterSubscribers {
1473
1477
  */
1474
1478
  off(event: 'roleChanged', listener: PropertyChangedEvent): void;
1475
1479
  /**
1476
- * Subscribe function for 'spotlightChanged' event.
1480
+ * Unsubscribe function for 'spotlightChanged' event.
1477
1481
  */
1478
1482
  off(event: 'spotlightChanged', listener: SpotlightChangedListener): void;
1483
+ /**
1484
+ * Unsubscribe function for 'mutedByOthers' event.
1485
+ */
1486
+ off(event: 'mutedByOthers', listener: PropertyChangedEvent): void;
1479
1487
  }
1480
1488
 
1481
1489
  /**
@@ -2839,7 +2847,7 @@ export declare type CallErrors = {
2839
2847
  *
2840
2848
  * @public
2841
2849
  */
2842
- export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admit' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.rejectParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admitAll' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteAllRemoteParticipants' | 'Call.setConstraints';
2850
+ export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admit' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.rejectParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admitAll' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteAllRemoteParticipants' | /* @conditional-compile-remove(soft-mute) */ 'Call.mutedByOthers' | 'Call.setConstraints';
2843
2851
 
2844
2852
  /**
2845
2853
  * Callback for {@link CallAdapterSubscribers} 'callIdChanged' event.
@@ -5771,10 +5779,10 @@ export declare interface ComponentStrings {
5771
5779
  imageOverlay: ImageOverlayStrings;
5772
5780
  /** Strings for MessageStatusIndicator */
5773
5781
  messageStatusIndicator: MessageStatusIndicatorStrings;
5774
- /** Strings for ErroBar */
5782
+ /** Strings for ErrorBar */
5775
5783
  errorBar: ErrorBarStrings;
5776
- /** Strings for Notifications */
5777
- notifications: NotificationsStrings;
5784
+ /** Strings for NotificationStack */
5785
+ notificationStack: NotificationStackStrings;
5778
5786
  /** Strings for VideoGallery */
5779
5787
  videoGallery: VideoGalleryStrings;
5780
5788
  /** Strings for Dialpad */
@@ -6598,6 +6606,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
6598
6606
  ErrorBarClear: React_2.JSX.Element;
6599
6607
  ErrorBarCallVideoRecoveredBySystem: React_2.JSX.Element;
6600
6608
  ErrorBarCallVideoStoppedBySystem: React_2.JSX.Element;
6609
+ ErrorBarMutedByRemoteParticipant: React_2.JSX.Element;
6601
6610
  HorizontalGalleryLeftButton: React_2.JSX.Element;
6602
6611
  HorizontalGalleryRightButton: React_2.JSX.Element;
6603
6612
  MessageDelivered: React_2.JSX.Element;
@@ -6788,6 +6797,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
6788
6797
  DataLossPreventionProhibited: React_2.JSX.Element;
6789
6798
  ErrorBarCallVideoRecoveredBySystem: React_2.JSX.Element;
6790
6799
  ErrorBarCallVideoStoppedBySystem: React_2.JSX.Element;
6800
+ ErrorBarMutedByRemoteParticipant: React_2.JSX.Element;
6791
6801
  MessageResend: React_2.JSX.Element;
6792
6802
  ParticipantItemSpotlighted: React_2.JSX.Element;
6793
6803
  HoldCallContextualMenuItem: React_2.JSX.Element;
@@ -6824,13 +6834,6 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
6824
6834
  ContextMenuCameraIcon: React_2.JSX.Element;
6825
6835
  ContextMenuMicIcon: React_2.JSX.Element;
6826
6836
  ContextMenuSpeakerIcon: React_2.JSX.Element;
6827
- /**
6828
- * Icon wrapper to use when including customizable icons inside the CallWithChatComposite.
6829
- * This wrapper ensures the icon name is being type-checked helping ensure no typos
6830
- * and ensure that icon is customizable through the composite API.
6831
- *
6832
- * @private
6833
- */
6834
6837
  ContextMenuRemoveParticipant: React_2.JSX.Element;
6835
6838
  SurveyStarIcon: React_2.JSX.Element;
6836
6839
  SurveyStarIconFilled: React_2.JSX.Element;
@@ -7478,6 +7481,10 @@ export declare interface ErrorBarStrings {
7478
7481
  * An error message when starting spotlight while max participants are spotlighted
7479
7482
  */
7480
7483
  startSpotlightWhileMaxParticipantsAreSpotlighted: string;
7484
+ /**
7485
+ * An error message when local user is muted by a remote participant
7486
+ */
7487
+ mutedByRemoteParticipant: string;
7481
7488
  }
7482
7489
 
7483
7490
  /**
@@ -8153,10 +8160,6 @@ export declare interface MeetingConferencePhoneInfoModalStrings {
8153
8160
  * Toll Free Phone Label
8154
8161
  */
8155
8162
  meetingConferencePhoneInfoModalTollFree?: string;
8156
- /**
8157
- * Toll Free Phone Label without geo data
8158
- */
8159
- meetingConferencePhoneInfoModalTollFreeWithoutGeoData?: string;
8160
8163
  /**
8161
8164
  * Toll Phone Label
8162
8165
  */
@@ -8164,27 +8167,11 @@ export declare interface MeetingConferencePhoneInfoModalStrings {
8164
8167
  /**
8165
8168
  * Toll Phone Label without geo data
8166
8169
  */
8167
- meetingConferencePhoneInfoModalTollWithoutGeoData?: string;
8170
+ meetingConferencePhoneInfoModalTollGeoData?: string;
8168
8171
  /**
8169
8172
  * No phone number available message
8170
8173
  */
8171
8174
  meetingConferencePhoneInfoModalNoPhoneAvailable?: string;
8172
- /**
8173
- * Bad quality bar title
8174
- */
8175
- badQualityBarTitle?: string;
8176
- /**
8177
- * Bad quality bar message
8178
- */
8179
- badQualityBarMessage?: string;
8180
- /**
8181
- * Bad quality bar close button aria label
8182
- */
8183
- badQualityBarClose?: string;
8184
- /**
8185
- * Bad quality bar join button label
8186
- */
8187
- badQualityBarJoin?: string;
8188
8175
  }
8189
8176
 
8190
8177
  /**
@@ -8994,22 +8981,23 @@ export declare interface NetworkDiagnosticsState {
8994
8981
  *
8995
8982
  * @beta
8996
8983
  */
8997
- export declare const NotificationBar: (props: NotificationBarProps) => JSX.Element;
8984
+ declare const Notification_2: (props: NotificationProps) => JSX.Element;
8985
+ export { Notification_2 as Notification }
8998
8986
 
8999
8987
  /**
9000
- * Props for {@link NotificationBar}.
8988
+ * Props for {@link Notification}.
9001
8989
  *
9002
8990
  * @beta
9003
8991
  */
9004
- export declare interface NotificationBarProps {
8992
+ export declare interface NotificationProps {
9005
8993
  /**
9006
8994
  * Notification bar strings;
9007
8995
  */
9008
- notificationBarStrings?: NotificationBarStrings;
8996
+ notificationStrings?: NotificationStrings;
9009
8997
  /**
9010
8998
  * Notification bar icon;
9011
8999
  */
9012
- notificationBarIconProps?: IIconProps;
9000
+ notificationIconProps?: IIconProps;
9013
9001
  /**
9014
9002
  * If set, notifications will automatically dismiss after 5 seconds
9015
9003
  * @defaultValue false
@@ -9034,38 +9022,10 @@ export declare interface NotificationBarProps {
9034
9022
  onDismiss?: () => void;
9035
9023
  }
9036
9024
 
9037
- /**
9038
- * All strings that may be shown on the UI in the {@link NotificationBar}.
9039
- *
9040
- * @beta
9041
- */
9042
- export declare interface NotificationBarStrings {
9043
- /**
9044
- * Notification bar title.
9045
- */
9046
- title: string;
9047
- /**
9048
- * Notification bar close button aria label
9049
- */
9050
- closeButtonAriaLabel: string;
9051
- /**
9052
- * Notification bar message.
9053
- */
9054
- message?: string;
9055
- /**
9056
- * Notification bar primary button label
9057
- */
9058
- primaryButtonLabel?: string;
9059
- /**
9060
- * Notification bar secondary button label
9061
- */
9062
- secondaryButtonLabel?: string;
9063
- }
9064
-
9065
9025
  /**
9066
9026
  * A component to show notifications on the UI.
9067
- * All strings that can be shown are accepted as the {@link NotificationsProps.strings} so that they can be localized.
9068
- * Active notifications are selected by {@link NotificationsProps.activeNotifications}.
9027
+ * All strings that can be shown are accepted as the {@link NotificationStackProps.strings} so that they can be localized.
9028
+ * Active notifications are selected by {@link NotificationStackProps.activeNotifications}.
9069
9029
  *
9070
9030
  * This component internally tracks dismissed by the user.
9071
9031
  * * Notifications that have an associated timestamp: The notification is shown on the UI again if it occurs after being dismissed.
@@ -9075,17 +9035,17 @@ export declare interface NotificationBarStrings {
9075
9035
  *
9076
9036
  * @beta
9077
9037
  */
9078
- export declare const Notifications: (props: NotificationsProps) => JSX.Element;
9038
+ export declare const NotificationStack: (props: NotificationStackProps) => JSX.Element;
9079
9039
 
9080
9040
  /**
9081
- * Props for {@link Notifications}.
9041
+ * Props for {@link NotificationStack}.
9082
9042
  * @beta
9083
9043
  */
9084
- export declare interface NotificationsProps {
9044
+ export declare interface NotificationStackProps {
9085
9045
  /**
9086
9046
  * Strings shown on the UI on errors.
9087
9047
  */
9088
- strings?: NotificationsStrings;
9048
+ strings?: NotificationStackStrings;
9089
9049
  /**
9090
9050
  * Currently active notifications.
9091
9051
  */
@@ -9105,7 +9065,7 @@ export declare interface NotificationsProps {
9105
9065
  * If set, notifications with {@link ActiveNotification.timestamp} older than the time this component is mounted
9106
9066
  * are not shown.
9107
9067
  *
9108
- * This is useful when using the {@link Notifications} with a stateful client that handles more than one call
9068
+ * This is useful when using the {@link NotificationStack} with a stateful client that handles more than one call
9109
9069
  * or chat thread. Set this prop to ignore notifications from previous call or chat.
9110
9070
  *
9111
9071
  * @defaultValue false
@@ -9114,134 +9074,166 @@ export declare interface NotificationsProps {
9114
9074
  }
9115
9075
 
9116
9076
  /**
9117
- * All strings that may be shown on the UI in the {@link Notifications}.
9077
+ * All strings that may be shown on the UI in the {@link NotificationStack}.
9118
9078
  *
9119
9079
  * @beta
9120
9080
  */
9121
- export declare interface NotificationsStrings {
9081
+ export declare interface NotificationStackStrings {
9122
9082
  /**
9123
9083
  * A generic message when starting video fails.
9124
9084
  */
9125
- startVideoGeneric: NotificationBarStrings;
9085
+ startVideoGeneric: NotificationStrings;
9126
9086
  /**
9127
9087
  * A generic message when starting video fails.
9128
9088
  */
9129
- stopVideoGeneric: NotificationBarStrings;
9089
+ stopVideoGeneric: NotificationStrings;
9130
9090
  /**
9131
9091
  * A generic message when muting microphone fails.
9132
9092
  */
9133
- muteGeneric: NotificationBarStrings;
9093
+ muteGeneric: NotificationStrings;
9134
9094
  /**
9135
9095
  * A generic message when unmuting microphone fails.
9136
9096
  */
9137
- unmuteGeneric: NotificationBarStrings;
9097
+ unmuteGeneric: NotificationStrings;
9138
9098
  /**
9139
9099
  * A generic message when starting screenshare fails.
9140
9100
  */
9141
- startScreenShareGeneric: NotificationBarStrings;
9101
+ startScreenShareGeneric: NotificationStrings;
9142
9102
  /**
9143
9103
  * A generic message when stopping screenshare fails.
9144
9104
  */
9145
- stopScreenShareGeneric: NotificationBarStrings;
9105
+ stopScreenShareGeneric: NotificationStrings;
9146
9106
  /**
9147
9107
  * Message shown when poor network quality is detected during a call.
9148
9108
  */
9149
- callNetworkQualityLow: NotificationBarStrings;
9109
+ callNetworkQualityLow: NotificationStrings;
9150
9110
  /**
9151
9111
  * Message shown on failure to detect audio output devices.
9152
9112
  */
9153
- callNoSpeakerFound: NotificationBarStrings;
9113
+ callNoSpeakerFound: NotificationStrings;
9154
9114
  /**
9155
9115
  * Message shown on failure to detect audio input devices.
9156
9116
  */
9157
- callNoMicrophoneFound: NotificationBarStrings;
9117
+ callNoMicrophoneFound: NotificationStrings;
9158
9118
  /**
9159
9119
  * Message shown when microphone can be enumerated but access is blocked by the system.
9160
9120
  */
9161
- callMicrophoneAccessDenied: NotificationBarStrings;
9121
+ callMicrophoneAccessDenied: NotificationStrings;
9162
9122
  /**
9163
9123
  * Message shown when microphone can be enumerated but access is blocked by the system, for safari browsers
9164
9124
  */
9165
- callMicrophoneAccessDeniedSafari: NotificationBarStrings;
9125
+ callMicrophoneAccessDeniedSafari: NotificationStrings;
9166
9126
  /**
9167
9127
  * Message shown when microphone is muted by the system (not by local or remote participants)
9168
9128
  */
9169
- callMicrophoneMutedBySystem: NotificationBarStrings;
9129
+ callMicrophoneMutedBySystem: NotificationStrings;
9170
9130
  /**
9171
9131
  * Message shown when microphone is unmuted by the system (not by local or remote participants).
9172
9132
  * This typically occurs if the system recovers from an unexpected mute.
9173
9133
  */
9174
- callMicrophoneUnmutedBySystem: NotificationBarStrings;
9134
+ callMicrophoneUnmutedBySystem: NotificationStrings;
9175
9135
  /**
9176
9136
  * Mac OS specific message shown when microphone can be enumerated but access is
9177
9137
  * blocked by the system.
9178
9138
  */
9179
- callMacOsMicrophoneAccessDenied: NotificationBarStrings;
9139
+ callMacOsMicrophoneAccessDenied: NotificationStrings;
9180
9140
  /**
9181
9141
  * Message shown when poor network causes local video stream to be frozen.
9182
9142
  */
9183
- callLocalVideoFreeze: NotificationBarStrings;
9143
+ callLocalVideoFreeze: NotificationStrings;
9184
9144
  /**
9185
9145
  * Message shown when camera can be enumerated but access is blocked by the system.
9186
9146
  */
9187
- callCameraAccessDenied: NotificationBarStrings;
9147
+ callCameraAccessDenied: NotificationStrings;
9188
9148
  /**
9189
9149
  * Message shown when camera can be enumerated but access is blocked by the system, for safari browsers
9190
9150
  */
9191
- callCameraAccessDeniedSafari: NotificationBarStrings;
9151
+ callCameraAccessDeniedSafari: NotificationStrings;
9192
9152
  /**
9193
9153
  * Message shown when local video fails to start because camera is already in use by
9194
9154
  * another applciation.
9195
9155
  */
9196
- callCameraAlreadyInUse: NotificationBarStrings;
9156
+ callCameraAlreadyInUse: NotificationStrings;
9197
9157
  /**
9198
9158
  * Message shown when local video is stopped by the system (not by local or remote participants)
9199
9159
  */
9200
- callVideoStoppedBySystem: NotificationBarStrings;
9160
+ callVideoStoppedBySystem: NotificationStrings;
9201
9161
  /**
9202
9162
  * Message shown when local video was recovered by the system (not by the local participant)
9203
9163
  */
9204
- callVideoRecoveredBySystem: NotificationBarStrings;
9164
+ callVideoRecoveredBySystem: NotificationStrings;
9205
9165
  /**
9206
9166
  * Mac OS specific message shown when system denies access to camera.
9207
9167
  */
9208
- callMacOsCameraAccessDenied: NotificationBarStrings;
9168
+ callMacOsCameraAccessDenied: NotificationStrings;
9209
9169
  /**
9210
9170
  * Mac OS specific message shown when system denies sharing local screen on a call.
9211
9171
  */
9212
- callMacOsScreenShareAccessDenied: NotificationBarStrings;
9172
+ callMacOsScreenShareAccessDenied: NotificationStrings;
9213
9173
  /**
9214
9174
  * Dimiss Notifications button aria label read by screen reader accessibility tools
9215
9175
  */
9216
- dismissButtonAriaLabel?: NotificationBarStrings;
9176
+ dismissButtonAriaLabel?: NotificationStrings;
9217
9177
  /**
9218
9178
  * An error message when joining a call fails.
9219
9179
  */
9220
- failedToJoinCallGeneric?: NotificationBarStrings;
9180
+ failedToJoinCallGeneric?: NotificationStrings;
9221
9181
  /**
9222
9182
  * An error message when joining a call fails specifically due to an invalid meeting link.
9223
9183
  */
9224
- failedToJoinCallInvalidMeetingLink?: NotificationBarStrings;
9184
+ failedToJoinCallInvalidMeetingLink?: NotificationStrings;
9225
9185
  /**
9226
9186
  * Error string letting you know remote participants see a frozen stream for you.
9227
9187
  */
9228
- cameraFrozenForRemoteParticipants?: NotificationBarStrings;
9188
+ cameraFrozenForRemoteParticipants?: NotificationStrings;
9229
9189
  /**
9230
9190
  * Unable to start effect
9231
9191
  */
9232
- unableToStartVideoEffect?: NotificationBarStrings;
9192
+ unableToStartVideoEffect?: NotificationStrings;
9233
9193
  /**
9234
9194
  * An error message when starting spotlight while max participants are spotlighted
9235
9195
  */
9236
- startSpotlightWhileMaxParticipantsAreSpotlighted: NotificationBarStrings;
9196
+ startSpotlightWhileMaxParticipantsAreSpotlighted: NotificationStrings;
9197
+ /**
9198
+ * Muted by a remote participant message
9199
+ */
9200
+ mutedByRemoteParticipant: NotificationStrings;
9201
+ }
9202
+
9203
+ /**
9204
+ * All strings that may be shown on the UI in the {@link Notification}.
9205
+ *
9206
+ * @beta
9207
+ */
9208
+ export declare interface NotificationStrings {
9209
+ /**
9210
+ * Notification bar title.
9211
+ */
9212
+ title: string;
9213
+ /**
9214
+ * Notification bar close button aria label
9215
+ */
9216
+ closeButtonAriaLabel: string;
9217
+ /**
9218
+ * Notification bar message.
9219
+ */
9220
+ message?: string;
9221
+ /**
9222
+ * Notification bar primary button label
9223
+ */
9224
+ primaryButtonLabel?: string;
9225
+ /**
9226
+ * Notification bar secondary button label
9227
+ */
9228
+ secondaryButtonLabel?: string;
9237
9229
  }
9238
9230
 
9239
9231
  /**
9240
- * All notifications that can be shown in the {@link Notifications}.
9232
+ * All notifications that can be shown in the {@link NotificationStack}.
9241
9233
  *
9242
9234
  * @beta
9243
9235
  */
9244
- export declare type NotificationType = keyof NotificationsStrings;
9236
+ export declare type NotificationType = keyof NotificationStackStrings;
9245
9237
 
9246
9238
  /**
9247
9239
  * Callback function used to provide custom data to build profile for a user or bot.
@@ -4,7 +4,7 @@ var react = require('@fluentui/react');
4
4
  var reactChat = require('@fluentui-contrib/react-chat');
5
5
  var reactComponents = require('@fluentui/react-components');
6
6
  require('@azure/communication-common');
7
- var index = require('./index-DCf8u3Nr.js');
7
+ var index = require('./index-CWs0GTYF.js');
8
8
  var React = require('react');
9
9
  require('reselect');
10
10
  require('@azure/communication-calling');
@@ -151,4 +151,4 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
151
151
 
152
152
  exports.ChatMessageComponentAsRichTextEditBox = ChatMessageComponentAsRichTextEditBox;
153
153
  exports.default = ChatMessageComponentAsRichTextEditBox;
154
- //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-_hqOwT_h.js.map
154
+ //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-Bl9FzI6X.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-_hqOwT_h.js","sources":["../../../../react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { mergeStyles, Stack } from '@fluentui/react';\nimport { ChatMyMessage } from '@fluentui-contrib/react-chat';\nimport { mergeClasses } from '@fluentui/react-components';\nimport { _formatString } from '@internal/acs-ui-common';\nimport { useTheme } from '../../../theming';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { useReducer } from 'react';\nimport { editBoxWidthStyles, richTextEditBoxActionButtonIcon } from '../../styles/EditBox.styles';\nimport { InputBoxButton } from '../../InputBoxButton';\nimport { MessageThreadStrings } from '../../MessageThread';\nimport { useChatMyMessageStyles } from '../../styles/MessageThread.styles';\nimport { ChatMessage } from '../../../types';\nimport { _AttachmentUploadCards } from '../../Attachment/AttachmentUploadCards';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { AttachmentMetadata } from '@internal/acs-ui-common';\nimport { useChatMessageRichTextEditContainerStyles } from '../../styles/ChatMessageComponent.styles';\nimport { MAXIMUM_LENGTH_OF_MESSAGE } from '../../utils/SendBoxUtils';\nimport {\n getMessageState,\n onRenderCancelIcon,\n onRenderSubmitIcon\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport {\n attachmentMetadataReducer,\n getMessageWithAttachmentMetadata,\n doesMessageContainMultipleAttachments\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\nimport { RichTextEditorComponentRef } from '../../RichTextEditor/RichTextEditor';\nimport { RichTextInputBoxComponent } from '../../RichTextEditor/RichTextInputBoxComponent';\nimport { editBoxRichTextEditorStyle, richTextActionButtonsStyle } from '../../styles/RichTextEditor.styles';\nimport { RichTextSendBoxErrors } from '../../RichTextEditor/RichTextSendBoxErrors';\nimport { useLocale } from '../../../localization';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { FluentV9ThemeProvider } from '../../../theming/FluentV9ThemeProvider';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { attachmentUploadCardsStyles } from '../../styles/SendBox.styles';\n\n/** @private */\nexport type ChatMessageComponentAsRichTextEditBoxProps = {\n onCancel?: (messageId: string) => void;\n onSubmit: (\n text: string,\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentMetadata?: AttachmentMetadata[]\n ) => void;\n message: ChatMessage;\n strings: MessageThreadStrings;\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste?: (event: { content: DocumentFragment }) => void;\n};\n\n/**\n * @private\n */\nexport const ChatMessageComponentAsRichTextEditBox = (\n props: ChatMessageComponentAsRichTextEditBoxProps\n): JSX.Element => {\n const {\n onCancel,\n onSubmit,\n strings,\n message,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste\n } = props;\n\n const [textValue, setTextValue] = useState<string>(message.content || '');\n /* @conditional-compile-remove(file-sharing-acs) */\n const [attachmentMetadata, handleAttachmentAction] = useReducer(\n attachmentMetadataReducer,\n getMessageWithAttachmentMetadata(message) ?? []\n );\n const editTextFieldRef = React.useRef<RichTextEditorComponentRef>(null);\n const theme = useTheme();\n const messageState = useMemo(() => {\n return getMessageState(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata ?? []);\n }, [/* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata, textValue]);\n\n const submitEnabled = messageState === 'OK';\n\n const editContainerStyles = useChatMessageRichTextEditContainerStyles();\n const chatMyMessageStyles = useChatMyMessageStyles();\n const locale = useLocale().strings;\n\n const setText = useCallback((newValue?: string): void => {\n setTextValue(newValue ?? '');\n }, []);\n\n useEffect(() => {\n editTextFieldRef.current?.focus();\n }, []);\n\n const textTooLongMessage = useMemo(() => {\n return messageState === 'too long'\n ? _formatString(strings.editBoxTextLimit, { limitNumber: `${MAXIMUM_LENGTH_OF_MESSAGE}` })\n : undefined;\n }, [messageState, strings.editBoxTextLimit]);\n\n const iconClassName = useCallback(\n (isHover: boolean) => {\n const color = isHover ? theme.palette.accent : theme.palette.neutralSecondary;\n return mergeStyles(richTextEditBoxActionButtonIcon, { color });\n },\n [theme.palette.accent, theme.palette.neutralSecondary]\n );\n\n const onRenderThemedCancelIcon = useCallback(\n (isHover: boolean) => {\n return onRenderCancelIcon(iconClassName(isHover));\n },\n [iconClassName]\n );\n\n const onRenderThemedSubmitIcon = useCallback(\n (isHover: boolean) => {\n return onRenderSubmitIcon(iconClassName(isHover));\n },\n [iconClassName]\n );\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const hasMultipleAttachments = useMemo(() => {\n return doesMessageContainMultipleAttachments(message);\n }, [message]);\n\n const actionButtons = useMemo(() => {\n return (\n <Stack horizontal>\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxCancelButton}\n tooltipContent={strings.editBoxCancelButton}\n onRenderIcon={onRenderThemedCancelIcon}\n onClick={() => {\n onCancel && onCancel(message.messageId);\n }}\n id={'dismissIconWrapper'}\n data-testId={strings.editBoxCancelButton}\n />\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxSubmitButton}\n tooltipContent={strings.editBoxSubmitButton}\n onRenderIcon={onRenderThemedSubmitIcon}\n onClick={(e) => {\n // it's very important to pass an empty attachment here\n // so when user removes all attachments, UI can reflect it instantly\n // if you set it to undefined, the attachments pre-edited would still be there\n // until edit message event is received\n submitEnabled &&\n onSubmit(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata);\n e.stopPropagation();\n }}\n id={'submitIconWrapper'}\n data-testId={strings.editBoxSubmitButton}\n />\n </Stack>\n );\n }, [\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentMetadata,\n message.messageId,\n onCancel,\n onRenderThemedCancelIcon,\n onRenderThemedSubmitIcon,\n onSubmit,\n strings.editBoxCancelButton,\n strings.editBoxSubmitButton,\n submitEnabled,\n textValue\n ]);\n const richTextLocaleStrings = useMemo(() => {\n /* @conditional-compile-remove(rich-text-editor) */\n return { ...locale.richTextSendBox, ...strings };\n return locale.sendBox;\n }, [\n /* @conditional-compile-remove(rich-text-editor) */ locale.richTextSendBox,\n /* @conditional-compile-remove(rich-text-editor) */ strings,\n locale.sendBox\n ]);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const onCancelAttachmentUpload = useCallback((attachmentId: string) => {\n // edit box only capable of removing attachments\n // we need to expand attachment actions\n // if we want to support more actions e.g. add\n handleAttachmentAction({ type: 'remove', id: attachmentId });\n }, []);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const onRenderAttachmentUploads = useCallback(() => {\n return (\n <Stack className={attachmentUploadCardsStyles}>\n <FluentV9ThemeProvider v8Theme={theme}>\n <_AttachmentUploadCards\n attachments={attachmentMetadata}\n onCancelAttachmentUpload={onCancelAttachmentUpload}\n />\n </FluentV9ThemeProvider>\n </Stack>\n );\n }, [attachmentMetadata, onCancelAttachmentUpload, theme]);\n\n const getContent = (): JSX.Element => {\n return (\n <Stack className={mergeStyles(editBoxWidthStyles)}>\n <RichTextSendBoxErrors textTooLongMessage={textTooLongMessage} systemMessage={message.failureReason} />\n <RichTextInputBoxComponent\n placeholderText={strings.editBoxPlaceholderText}\n onChange={setText}\n editorComponentRef={editTextFieldRef}\n initialContent={message.content}\n strings={richTextLocaleStrings}\n disabled={false}\n actionComponents={actionButtons}\n richTextEditorStyleProps={editBoxRichTextEditorStyle}\n isHorizontalLayoutDisabled={true}\n /* @conditional-compile-remove(file-sharing-acs) */\n onRenderAttachmentUploads={onRenderAttachmentUploads}\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste={onPaste}\n />\n </Stack>\n );\n };\n\n const attached = message.attached === true ? 'center' : message.attached === 'bottom' ? 'bottom' : 'top';\n return (\n <ChatMyMessage\n attached={attached}\n root={{\n className: mergeClasses(\n chatMyMessageStyles.root,\n /* @conditional-compile-remove(file-sharing-acs) */\n hasMultipleAttachments ? chatMyMessageStyles.multipleAttachments : undefined\n )\n }}\n body={{\n className: mergeClasses(\n editContainerStyles.body,\n attached !== 'top' ? editContainerStyles.bodyAttached : undefined\n )\n }}\n >\n {getContent()}\n </ChatMyMessage>\n );\n};\n\nexport default ChatMessageComponentAsRichTextEditBox;\n"],"names":["useState","useReducer","attachmentMetadataReducer","getMessageWithAttachmentMetadata","useTheme","useMemo","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","useCallback","useEffect","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","doesMessageContainMultipleAttachments","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAuDA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,KAAiD,KAClC;;AACf,IAAA,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO;;IAEP,OAAO,EACR,GAAG,KAAK,CAAC;AAEV,IAAA,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAGA,cAAQ,CAAS,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;;AAE1E,IAAA,MAAM,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,GAAGC,gBAAU,CAC7DC,+BAAyB,EACzB,CAAA,EAAA,GAAAC,sCAAgC,CAAC,OAAO,CAAC,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,EAAE,CAChD,CAAC;IACF,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,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AAG,QAAQ,GAAG,KAAK,CAAC;IACzG,QACE,oBAACC,uBAAa,EAAA,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;AACJ,YAAA,SAAS,EAAEC,4BAAY,CACrB,mBAAmB,CAAC,IAAI;;YAExB,sBAAsB,GAAG,mBAAmB,CAAC,mBAAmB,GAAG,SAAS,CAC7E;AACF,SAAA,EACD,IAAI,EAAE;YACJ,SAAS,EAAEA,4BAAY,CACrB,mBAAmB,CAAC,IAAI,EACxB,QAAQ,KAAK,KAAK,GAAG,mBAAmB,CAAC,YAAY,GAAG,SAAS,CAClE;AACF,SAAA,EAAA,EAEA,UAAU,EAAE,CACC,EAChB;AACJ;;;;;"}
1
+ {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-Bl9FzI6X.js","sources":["../../../../react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { mergeStyles, Stack } from '@fluentui/react';\nimport { ChatMyMessage } from '@fluentui-contrib/react-chat';\nimport { mergeClasses } from '@fluentui/react-components';\nimport { _formatString } from '@internal/acs-ui-common';\nimport { useTheme } from '../../../theming';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { useReducer } from 'react';\nimport { editBoxWidthStyles, richTextEditBoxActionButtonIcon } from '../../styles/EditBox.styles';\nimport { InputBoxButton } from '../../InputBoxButton';\nimport { MessageThreadStrings } from '../../MessageThread';\nimport { useChatMyMessageStyles } from '../../styles/MessageThread.styles';\nimport { ChatMessage } from '../../../types';\nimport { _AttachmentUploadCards } from '../../Attachment/AttachmentUploadCards';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { AttachmentMetadata } from '@internal/acs-ui-common';\nimport { useChatMessageRichTextEditContainerStyles } from '../../styles/ChatMessageComponent.styles';\nimport { MAXIMUM_LENGTH_OF_MESSAGE } from '../../utils/SendBoxUtils';\nimport {\n getMessageState,\n onRenderCancelIcon,\n onRenderSubmitIcon\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport {\n attachmentMetadataReducer,\n getMessageWithAttachmentMetadata,\n doesMessageContainMultipleAttachments\n} from '../../utils/ChatMessageComponentAsEditBoxUtils';\nimport { RichTextEditorComponentRef } from '../../RichTextEditor/RichTextEditor';\nimport { RichTextInputBoxComponent } from '../../RichTextEditor/RichTextInputBoxComponent';\nimport { editBoxRichTextEditorStyle, richTextActionButtonsStyle } from '../../styles/RichTextEditor.styles';\nimport { RichTextSendBoxErrors } from '../../RichTextEditor/RichTextSendBoxErrors';\nimport { useLocale } from '../../../localization';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { FluentV9ThemeProvider } from '../../../theming/FluentV9ThemeProvider';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { attachmentUploadCardsStyles } from '../../styles/SendBox.styles';\n\n/** @private */\nexport type ChatMessageComponentAsRichTextEditBoxProps = {\n onCancel?: (messageId: string) => void;\n onSubmit: (\n text: string,\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentMetadata?: AttachmentMetadata[]\n ) => void;\n message: ChatMessage;\n strings: MessageThreadStrings;\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste?: (event: { content: DocumentFragment }) => void;\n};\n\n/**\n * @private\n */\nexport const ChatMessageComponentAsRichTextEditBox = (\n props: ChatMessageComponentAsRichTextEditBoxProps\n): JSX.Element => {\n const {\n onCancel,\n onSubmit,\n strings,\n message,\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste\n } = props;\n\n const [textValue, setTextValue] = useState<string>(message.content || '');\n /* @conditional-compile-remove(file-sharing-acs) */\n const [attachmentMetadata, handleAttachmentAction] = useReducer(\n attachmentMetadataReducer,\n getMessageWithAttachmentMetadata(message) ?? []\n );\n const editTextFieldRef = React.useRef<RichTextEditorComponentRef>(null);\n const theme = useTheme();\n const messageState = useMemo(() => {\n return getMessageState(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata ?? []);\n }, [/* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata, textValue]);\n\n const submitEnabled = messageState === 'OK';\n\n const editContainerStyles = useChatMessageRichTextEditContainerStyles();\n const chatMyMessageStyles = useChatMyMessageStyles();\n const locale = useLocale().strings;\n\n const setText = useCallback((newValue?: string): void => {\n setTextValue(newValue ?? '');\n }, []);\n\n useEffect(() => {\n editTextFieldRef.current?.focus();\n }, []);\n\n const textTooLongMessage = useMemo(() => {\n return messageState === 'too long'\n ? _formatString(strings.editBoxTextLimit, { limitNumber: `${MAXIMUM_LENGTH_OF_MESSAGE}` })\n : undefined;\n }, [messageState, strings.editBoxTextLimit]);\n\n const iconClassName = useCallback(\n (isHover: boolean) => {\n const color = isHover ? theme.palette.accent : theme.palette.neutralSecondary;\n return mergeStyles(richTextEditBoxActionButtonIcon, { color });\n },\n [theme.palette.accent, theme.palette.neutralSecondary]\n );\n\n const onRenderThemedCancelIcon = useCallback(\n (isHover: boolean) => {\n return onRenderCancelIcon(iconClassName(isHover));\n },\n [iconClassName]\n );\n\n const onRenderThemedSubmitIcon = useCallback(\n (isHover: boolean) => {\n return onRenderSubmitIcon(iconClassName(isHover));\n },\n [iconClassName]\n );\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const hasMultipleAttachments = useMemo(() => {\n return doesMessageContainMultipleAttachments(message);\n }, [message]);\n\n const actionButtons = useMemo(() => {\n return (\n <Stack horizontal>\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxCancelButton}\n tooltipContent={strings.editBoxCancelButton}\n onRenderIcon={onRenderThemedCancelIcon}\n onClick={() => {\n onCancel && onCancel(message.messageId);\n }}\n id={'dismissIconWrapper'}\n data-testId={strings.editBoxCancelButton}\n />\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxSubmitButton}\n tooltipContent={strings.editBoxSubmitButton}\n onRenderIcon={onRenderThemedSubmitIcon}\n onClick={(e) => {\n // it's very important to pass an empty attachment here\n // so when user removes all attachments, UI can reflect it instantly\n // if you set it to undefined, the attachments pre-edited would still be there\n // until edit message event is received\n submitEnabled &&\n onSubmit(textValue, /* @conditional-compile-remove(file-sharing-acs) */ attachmentMetadata);\n e.stopPropagation();\n }}\n id={'submitIconWrapper'}\n data-testId={strings.editBoxSubmitButton}\n />\n </Stack>\n );\n }, [\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentMetadata,\n message.messageId,\n onCancel,\n onRenderThemedCancelIcon,\n onRenderThemedSubmitIcon,\n onSubmit,\n strings.editBoxCancelButton,\n strings.editBoxSubmitButton,\n submitEnabled,\n textValue\n ]);\n const richTextLocaleStrings = useMemo(() => {\n /* @conditional-compile-remove(rich-text-editor) */\n return { ...locale.richTextSendBox, ...strings };\n return locale.sendBox;\n }, [\n /* @conditional-compile-remove(rich-text-editor) */ locale.richTextSendBox,\n /* @conditional-compile-remove(rich-text-editor) */ strings,\n locale.sendBox\n ]);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const onCancelAttachmentUpload = useCallback((attachmentId: string) => {\n // edit box only capable of removing attachments\n // we need to expand attachment actions\n // if we want to support more actions e.g. add\n handleAttachmentAction({ type: 'remove', id: attachmentId });\n }, []);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const onRenderAttachmentUploads = useCallback(() => {\n return (\n <Stack className={attachmentUploadCardsStyles}>\n <FluentV9ThemeProvider v8Theme={theme}>\n <_AttachmentUploadCards\n attachments={attachmentMetadata}\n onCancelAttachmentUpload={onCancelAttachmentUpload}\n />\n </FluentV9ThemeProvider>\n </Stack>\n );\n }, [attachmentMetadata, onCancelAttachmentUpload, theme]);\n\n const getContent = (): JSX.Element => {\n return (\n <Stack className={mergeStyles(editBoxWidthStyles)}>\n <RichTextSendBoxErrors textTooLongMessage={textTooLongMessage} systemMessage={message.failureReason} />\n <RichTextInputBoxComponent\n placeholderText={strings.editBoxPlaceholderText}\n onChange={setText}\n editorComponentRef={editTextFieldRef}\n initialContent={message.content}\n strings={richTextLocaleStrings}\n disabled={false}\n actionComponents={actionButtons}\n richTextEditorStyleProps={editBoxRichTextEditorStyle}\n isHorizontalLayoutDisabled={true}\n /* @conditional-compile-remove(file-sharing-acs) */\n onRenderAttachmentUploads={onRenderAttachmentUploads}\n /* @conditional-compile-remove(rich-text-editor-image-upload) */\n onPaste={onPaste}\n />\n </Stack>\n );\n };\n\n const attached = message.attached === true ? 'center' : message.attached === 'bottom' ? 'bottom' : 'top';\n return (\n <ChatMyMessage\n attached={attached}\n root={{\n className: mergeClasses(\n chatMyMessageStyles.root,\n /* @conditional-compile-remove(file-sharing-acs) */\n hasMultipleAttachments ? chatMyMessageStyles.multipleAttachments : undefined\n )\n }}\n body={{\n className: mergeClasses(\n editContainerStyles.body,\n attached !== 'top' ? editContainerStyles.bodyAttached : undefined\n )\n }}\n >\n {getContent()}\n </ChatMyMessage>\n );\n};\n\nexport default ChatMessageComponentAsRichTextEditBox;\n"],"names":["useState","useReducer","attachmentMetadataReducer","getMessageWithAttachmentMetadata","useTheme","useMemo","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","useCallback","useEffect","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","doesMessageContainMultipleAttachments","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAuDA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,KAAiD,KAClC;;AACf,IAAA,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO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AAE,gBAAgB,EACpC,cAAc,EAAE,OAAO,CAAC,OAAO,EAC/B,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,KAAK,EACf,gBAAgB,EAAE,aAAa,EAC/B,wBAAwB,EAAEC,gCAA0B,EACpD,0BAA0B,EAAE,IAAI;;AAEhC,gBAAA,yBAAyB,EAAE,yBAAyB;;AAEpD,gBAAA,OAAO,EAAE,OAAO,EAChB,CAAA,CACI,EACR;AACJ,KAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;IACzG,QACE,oBAACC,uBAAa,EAAA,EACZ,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;AACJ,YAAA,SAAS,EAAEC,4BAAY,CACrB,mBAAmB,CAAC,IAAI;;YAExB,sBAAsB,GAAG,mBAAmB,CAAC,mBAAmB,GAAG,SAAS,CAC7E;AACF,SAAA,EACD,IAAI,EAAE;YACJ,SAAS,EAAEA,4BAAY,CACrB,mBAAmB,CAAC,IAAI,EACxB,QAAQ,KAAK,KAAK,GAAG,mBAAmB,CAAC,YAAY,GAAG,SAAS,CAClE;AACF,SAAA,EAAA,EAEA,UAAU,EAAE,CACC,EAChB;AACJ;;;;;"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var index = require('./index-DCf8u3Nr.js');
4
+ var index = require('./index-CWs0GTYF.js');
5
5
  require('@fluentui/react');
6
6
  require('@fluentui/react-components');
7
7
  require('@fluentui-contrib/react-chat');
@@ -50,4 +50,4 @@ const RichTextSendBoxWrapper = (props) => {
50
50
  };
51
51
 
52
52
  exports.RichTextSendBoxWrapper = RichTextSendBoxWrapper;
53
- //# sourceMappingURL=RichTextSendBoxWrapper-D-KYGmZ9.js.map
53
+ //# sourceMappingURL=RichTextSendBoxWrapper-G-04IaQB.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextSendBoxWrapper-D-KYGmZ9.js","sources":["../../../../react-composites/src/composites/common/RichTextSendBoxWrapper.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { RichTextSendBox, RichTextSendBoxProps } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\n/**\n * @private\n *\n * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox\n * before lazyLoading is done\n */\nexport const RichTextSendBoxWrapper = (props: RichTextSendBoxProps): JSX.Element => {\n const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n return <RichTextSendBox {...richTextSendBoxProps} {...props} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACU,MAAA,sBAAsB,GAAG,CAAC,KAA2B,KAAiB;AACjF,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,oBAACA,qBAAe,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,oBAAoB,EAAM,KAAK,EAAI,CAAC;AAClE;;;;"}
1
+ {"version":3,"file":"RichTextSendBoxWrapper-G-04IaQB.js","sources":["../../../../react-composites/src/composites/common/RichTextSendBoxWrapper.tsx"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\nimport { RichTextSendBox, RichTextSendBoxProps } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor-composite-support) */\n/**\n * @private\n *\n * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox\n * before lazyLoading is done\n */\nexport const RichTextSendBoxWrapper = (props: RichTextSendBoxProps): JSX.Element => {\n const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n return <RichTextSendBox {...richTextSendBoxProps} {...props} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACU,MAAA,sBAAsB,GAAG,CAAC,KAA2B,KAAiB;AACjF,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,oBAACA,qBAAe,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,oBAAoB,EAAM,KAAK,EAAI,CAAC;AAClE;;;;"}