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

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 (180) hide show
  1. package/dist/communication-react.d.ts +145 -82
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-WGqg2woK.js → ChatMessageComponentAsRichTextEditBox-DpYUiI1l.js} +3 -3
  3. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-WGqg2woK.js.map → ChatMessageComponentAsRichTextEditBox-DpYUiI1l.js.map} +1 -1
  4. package/dist/dist-cjs/communication-react/{index-oaEwmItW.js → index-C2GfkUGz.js} +255 -365
  5. package/dist/dist-cjs/communication-react/index-C2GfkUGz.js.map +1 -0
  6. package/dist/dist-cjs/communication-react/index.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  9. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -7
  10. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  11. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +5 -32
  12. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -1
  13. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +0 -8
  14. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  15. package/dist/dist-esm/calling-component-bindings/src/index.js +0 -1
  16. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  17. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  18. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +22 -24
  19. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  20. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +0 -2
  21. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  22. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +0 -4
  23. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  24. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.d.ts +0 -1
  25. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js +0 -1
  26. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -1
  27. package/dist/dist-esm/calling-stateful-client/src/Converter.js +0 -2
  28. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  29. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  30. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.d.ts +1 -1
  31. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  32. package/dist/dist-esm/communication-react/src/index.d.ts +2 -2
  33. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  34. package/dist/dist-esm/react-components/src/components/AttachmentCard.d.ts +2 -2
  35. package/dist/dist-esm/react-components/src/components/AttachmentCard.js +2 -2
  36. package/dist/dist-esm/react-components/src/components/AttachmentCard.js.map +1 -1
  37. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.d.ts +3 -4
  38. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js +2 -2
  39. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js.map +1 -1
  40. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js +4 -4
  41. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js +1 -1
  43. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +1 -1
  45. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +1 -1
  46. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js +1 -1
  47. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
  48. package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +1 -0
  49. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +2 -2
  50. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  51. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +1 -0
  52. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +1 -1
  53. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  54. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +11 -4
  55. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
  56. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +4 -4
  57. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +20 -13
  58. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
  59. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.d.ts +1 -1
  60. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js +4 -4
  61. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js.map +1 -1
  62. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +4 -4
  63. package/dist/dist-esm/react-components/src/components/SendBox.js +20 -14
  64. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  65. package/dist/dist-esm/react-components/src/components/SendBoxErrors.d.ts +1 -1
  66. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js +6 -6
  67. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +1 -1
  68. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +0 -4
  69. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +1 -1
  70. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +15 -0
  71. package/dist/dist-esm/react-components/src/components/VideoGallery.js +7 -5
  72. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  73. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +5 -0
  74. package/dist/dist-esm/react-components/src/components/VideoTile.js +7 -5
  75. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  76. package/dist/dist-esm/react-components/src/components/index.d.ts +2 -2
  77. package/dist/dist-esm/react-components/src/components/index.js +0 -4
  78. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  79. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +1 -1
  80. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +4 -1
  81. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  82. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.d.ts +0 -4
  83. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +0 -7
  84. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  85. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +3 -3
  86. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +6 -6
  87. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  88. package/dist/dist-esm/react-components/src/index.js +0 -1
  89. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  90. package/dist/dist-esm/react-components/src/theming/icons.js +0 -6
  91. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  92. package/dist/dist-esm/react-components/src/theming/themes.d.ts +1 -0
  93. package/dist/dist-esm/react-components/src/theming/themes.js +4 -2
  94. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  95. package/dist/dist-esm/react-components/src/types/Attachment.d.ts +48 -24
  96. package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
  97. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +5 -0
  98. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  99. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  100. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +4 -19
  101. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  102. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  103. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.d.ts +4 -4
  104. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js.map +1 -1
  105. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  106. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +5 -23
  107. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  108. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +2 -0
  109. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +4 -3
  110. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  111. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +0 -4
  112. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  113. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +2 -1
  114. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  115. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +1 -1
  116. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  117. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -7
  118. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  119. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  120. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +5 -3
  121. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +20 -18
  122. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  123. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +17 -11
  124. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  125. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +0 -4
  126. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  127. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +4 -3
  128. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +5 -1
  129. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  130. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +4 -4
  131. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +2 -2
  132. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  133. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +11 -7
  134. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  135. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.d.ts +14 -13
  136. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.js +30 -21
  137. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.js.map +1 -1
  138. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +5 -3
  139. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +26 -2
  140. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  141. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +10 -5
  142. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  143. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.d.ts +2 -2
  144. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  145. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.d.ts +10 -10
  146. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js +7 -7
  147. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js.map +1 -1
  148. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +1 -1
  149. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +1 -1
  150. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.d.ts +1 -1
  151. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  152. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +2 -2
  153. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  154. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.d.ts +5 -5
  155. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +2 -2
  156. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +1 -1
  157. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +1 -1
  158. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +2 -27
  159. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -1
  160. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +0 -20
  161. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -1
  162. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +0 -13
  163. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +1 -1
  164. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +4 -15
  165. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  166. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +1 -17
  167. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  168. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.js +0 -9
  169. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.js.map +1 -1
  170. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +0 -23
  171. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  172. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js +0 -3
  173. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  174. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.js +0 -9
  175. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.js.map +1 -1
  176. package/package.json +3 -3
  177. package/dist/dist-cjs/communication-react/index-oaEwmItW.js.map +0 -1
  178. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.d.ts +0 -6
  179. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js +0 -11
  180. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js.map +0 -1
@@ -239,7 +239,7 @@ export declare interface AttachmentMenuAction {
239
239
  }
240
240
 
241
241
  /**
242
- * Metadata containing basic information about the uploaded attachment.
242
+ * Metadata containing basic information about the attachment.
243
243
  *
244
244
  * @beta
245
245
  */
@@ -262,14 +262,22 @@ export declare interface AttachmentMetadata {
262
262
  * Download URL for the attachment.
263
263
  */
264
264
  url?: string;
265
+ }
266
+
267
+ /**
268
+ * Metadata containing basic information about the uploading attachment.
269
+ *
270
+ * @beta
271
+ */
272
+ export declare interface AttachmentMetadataWithProgress extends AttachmentMetadata {
265
273
  /**
266
274
  * A number between 0 and 1 indicating the progress of the upload.
267
275
  */
268
276
  progress?: number;
269
277
  /**
270
- * A object contains status message would be shown to the user.
278
+ * A object contains error message would be shown to the user.
271
279
  */
272
- uploadError?: AttachmentUploadStatus;
280
+ error?: AttachmentProgressError;
273
281
  }
274
282
 
275
283
  /**
@@ -284,57 +292,40 @@ export declare interface AttachmentOptions {
284
292
 
285
293
  /**
286
294
  * @beta
295
+ * A attachment progress error object that contains message to be shown to
296
+ * the user when upload fails.
287
297
  */
288
- export declare interface AttachmentUploadAdapter {
289
- registerActiveUploads: (files: File[]) => AttachmentUploadManager[];
290
- registerCompletedUploads: (metadata: AttachmentMetadata[]) => AttachmentUploadManager[];
291
- clearUploads: () => void;
292
- cancelUpload: (id: string) => void;
293
- updateUploadProgress: (id: string, progress: number) => void;
294
- updateUploadStatusMessage: (id: string, errorMessage: string) => void;
295
- updateUploadMetadata: (id: string, metadata: AttachmentMetadata) => void;
298
+ export declare interface AttachmentProgressError {
299
+ message: string;
296
300
  }
297
301
 
298
302
  /**
299
303
  * @beta
300
- * A callback function for handling attachment uploads.
304
+ * A callback function for handling attachment removed by the user in send box.
301
305
  *
302
- * @param AttachmentUploads - The list of uploaded attachments. Each attachment is represented by an {@link AttachmentUpload} object.
306
+ * @param attachmentId - The ID of uploaded attachments.
303
307
  */
304
- export declare type AttachmentUploadHandler = (attachmentUploads: AttachmentUploadManager[]) => void;
308
+ export declare type AttachmentRemovalHandler = (attachmentId: string) => void;
305
309
 
306
310
  /**
307
- * A wrapper object for a attachment that is being uploaded.
308
- * Allows managing attachment uploads by providing common functions for updating the
309
- * upload progress, canceling an upload, completing an upload etc.
310
311
  * @beta
312
+ * A callback function for handling list of upload tasks that contains files selected by user to upload.
313
+ *
314
+ * @param AttachmentUploads - The list of uploaded attachments. Each attachment is represented by an {@link AttachmentUpload} object.
311
315
  */
312
- export declare interface AttachmentUploadManager {
313
- /**
314
- * Unique identifier for the attachment upload.
315
- */
316
- id: string;
317
- /**
318
- * HTML {@link File} object for the uploaded attachment.
319
- */
320
- file?: File;
321
- /**
322
- * Update the progress of the upload changed.
323
- * A upload is considered complete when the progress reaches 1.
324
- * @param value - number between 0 and 1
325
- */
326
- notifyProgressChanged: (value: number) => void;
327
- /**
328
- * Mark the upload as complete.
329
- * Requires the `metadata` param containing uploaded attachment information.
330
- * @param metadata - {@link AttachmentMetadata}
331
- */
332
- notifyCompleted: (metadata: AttachmentMetadata) => void;
333
- /**
334
- * Mark the upload as failed.
335
- * @param message - An error message that can be displayed to the user.
336
- */
337
- notifyFailed: (message: string) => void;
316
+ export declare type AttachmentSelectionHandler = (attachmentUploads: AttachmentUploadTask[]) => void;
317
+
318
+ /**
319
+ * @internal
320
+ */
321
+ export declare interface _AttachmentUploadAdapter {
322
+ registerActiveUploads: (files: File[]) => AttachmentUploadTask[];
323
+ registerCompletedUploads: (metadata: AttachmentMetadata[]) => AttachmentUploadTask[];
324
+ clearUploads: () => void;
325
+ cancelUpload: (id: string) => void;
326
+ updateUploadProgress: (id: string, progress: number) => void;
327
+ updateUploadStatusMessage: (id: string, errorMessage: string) => void;
328
+ updateUploadMetadata: (id: string, metadata: AttachmentMetadata) => void;
338
329
  }
339
330
 
340
331
  /**
@@ -357,27 +348,62 @@ export declare interface AttachmentUploadOptions {
357
348
  */
358
349
  disableMultipleUploads?: boolean;
359
350
  /**
360
- * A function of type {@link AttachmentUploadHandler} for handling attachment uploads.
351
+ * A callback function of type {@link AttachmentSelectionHandler} that will be called
352
+ * when user finishes selecting files in browser's file picker. This function is required since
353
+ * this would be where upload logic is implemented to your own storage.
361
354
  * @beta
362
355
  */
363
- handler: AttachmentUploadHandler;
356
+ handleAttachmentSelection: AttachmentSelectionHandler;
357
+ /**
358
+ * A optional callback function that will be called
359
+ * when user removing files before clicking send message button. This function will be
360
+ * where you can remove the file from your storage.
361
+ * @beta
362
+ */
363
+ handleAttachmentRemoval?: AttachmentRemovalHandler;
364
364
  }
365
365
 
366
366
  /**
367
- * @beta
368
- * A attachment upload status object that contains message to be shown to
369
- * the user and a timestamp.
367
+ * A record containing {@link AttachmentMetadata} mapped to unique attachment upload task ids.
368
+ * @internal
370
369
  */
371
- export declare interface AttachmentUploadStatus {
372
- message: string;
373
- timestamp: number;
374
- }
370
+ export declare type _AttachmentUploadsUiState = Record<string, AttachmentMetadataWithProgress>;
375
371
 
376
372
  /**
377
- * A record containing {@link AttachmentMetadata} mapped to unique ids.
373
+ * A upload task represents and manages an attachment that is being uploaded.
374
+ * When using the Composite, an attachment upload task is created for each file user is selected to upload.
375
+ * A upload task is complete when notifyUploadCompleted is called.
376
+ * A upload task is failed when notifyUploadFailed is called.
378
377
  * @beta
379
378
  */
380
- export declare type AttachmentUploadsUiState = Record<string, AttachmentMetadata>;
379
+ export declare interface AttachmentUploadTask {
380
+ /**
381
+ * Unique identifier for the attachment upload task.
382
+ */
383
+ taskId: string;
384
+ /**
385
+ * HTML {@link File} object for the uploaded attachment.
386
+ */
387
+ file?: File;
388
+ /**
389
+ * Update the progress of the upload changed.
390
+ * A upload is considered complete when the progress reaches 1.
391
+ * @param value - number between 0 and 1
392
+ */
393
+ notifyUploadProgressChanged: (value: number) => void;
394
+ /**
395
+ * Mark the upload task as complete.
396
+ * An attachment is considered completed uploading when ID and URL are provided.
397
+ * @param id - the unique identifier of the attachment.
398
+ * @param url - the download URL of the attachment.
399
+ */
400
+ notifyUploadCompleted: (id: string, url: string) => void;
401
+ /**
402
+ * Mark the upload task as failed.
403
+ * @param message - An error message that can be displayed to the user.
404
+ */
405
+ notifyUploadFailed: (message: string) => void;
406
+ }
381
407
 
382
408
  /**
383
409
  * Custom data attributes for displaying avatar for a user.
@@ -1714,6 +1740,10 @@ export declare type CallCompositeOptions = {
1714
1740
  * @remarks if 'false' the local video tile will not be rendered.
1715
1741
  */
1716
1742
  localVideoTile?: boolean | LocalVideoTileOptions;
1743
+ /**
1744
+ * Options for controlling video tile.
1745
+ */
1746
+ videoTilesOptions?: VideoTilesOptions;
1717
1747
  /**
1718
1748
  * Options for controlling the starting layout of the composite's video gallery
1719
1749
  */
@@ -2765,6 +2795,7 @@ export declare interface CallingTheme {
2765
2795
  callRedDarker: string;
2766
2796
  iconWhite: string;
2767
2797
  raiseHandGold: string;
2798
+ videoTileLabelBackgroundLight: string;
2768
2799
  };
2769
2800
  }
2770
2801
 
@@ -3281,6 +3312,12 @@ export declare interface CallWithChatAdapterManagement {
3281
3312
  * @public
3282
3313
  */
3283
3314
  sendMessage(content: string, options?: SendMessageOptions): Promise<void>;
3315
+ /**
3316
+ * Send a message with attachments in the chat thread.
3317
+ *
3318
+ * @beta
3319
+ */
3320
+ sendMessageWithAttachments(content: string, attachments: AttachmentMetadata[]): Promise<void>;
3284
3321
  /**
3285
3322
  * Send a read receipt for a message.
3286
3323
  *
@@ -3314,19 +3351,19 @@ export declare interface CallWithChatAdapterManagement {
3314
3351
  * @public
3315
3352
  */
3316
3353
  loadPreviousChatMessages(messagesToLoad: number): Promise<boolean>;
3317
- /** @beta */
3318
- registerActiveUploads: (files: File[]) => AttachmentUploadManager[];
3319
- /** @beta */
3320
- registerCompletedUploads: (metadata: AttachmentMetadata[]) => AttachmentUploadManager[];
3321
- /** @beta */
3354
+ /** @internal */
3355
+ registerActiveUploads: (files: File[]) => AttachmentUploadTask[];
3356
+ /** @internal */
3357
+ registerCompletedUploads: (metadata: AttachmentMetadata[]) => AttachmentUploadTask[];
3358
+ /** @internal */
3322
3359
  clearUploads: () => void;
3323
- /** @beta */
3360
+ /** @internal */
3324
3361
  cancelUpload: (id: string) => void;
3325
- /** @beta */
3362
+ /** @internal */
3326
3363
  updateUploadProgress: (id: string, progress: number) => void;
3327
- /** @beta */
3364
+ /** @internal */
3328
3365
  updateUploadStatusMessage: (id: string, errorMessage: string) => void;
3329
- /** @beta */
3366
+ /** @internal */
3330
3367
  updateUploadMetadata: (id: string, metadata: AttachmentMetadata) => void;
3331
3368
  /** @public */
3332
3369
  downloadResourceToCache(resourceDetails: ResourceDetails): Promise<void>;
@@ -3513,11 +3550,11 @@ export declare interface CallWithChatAdapterUiState {
3513
3550
  /**
3514
3551
  * Files being uploaded by a user in the current thread.
3515
3552
  * Should be set to null once the upload is complete.
3516
- * Array of type {@link AttachmentUploadsUiState}
3553
+ * Array of type {@link _AttachmentUploadsUiState}
3517
3554
  *
3518
- * @beta
3555
+ * @internal
3519
3556
  */
3520
- attachmentUploads?: AttachmentUploadsUiState;
3557
+ _attachmentUploads?: _AttachmentUploadsUiState;
3521
3558
  /**
3522
3559
  * State to track whether the end user has opted in to using a
3523
3560
  * out of date version of a supported browser. Allows the user
@@ -4046,7 +4083,7 @@ export declare interface CallWithChatControlOptions extends CommonCallControlOpt
4046
4083
  *
4047
4084
  * @public
4048
4085
  */
4049
- export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | /* @conditional-compile-remove(close-captions) */ 'isCaptionsActiveChanged' | /* @conditional-compile-remove(close-captions) */ 'captionsReceived' | /* @conditional-compile-remove(close-captions) */ 'isCaptionLanguageChanged' | /* @conditional-compile-remove(close-captions) */ 'isSpokenLanguageChanged' | 'capabilitiesChanged' | /* @conditional-compile-remove(spotlight) */ 'spotlightChanged' | 'messageReceived' | 'messageEdited' | 'messageDeleted' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
4086
+ export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | 'isCaptionsActiveChanged' | 'captionsReceived' | 'isCaptionLanguageChanged' | 'isSpokenLanguageChanged' | 'capabilitiesChanged' | /* @conditional-compile-remove(spotlight) */ 'spotlightChanged' | 'messageReceived' | 'messageEdited' | 'messageDeleted' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
4050
4087
 
4051
4088
  /**
4052
4089
  * @beta
@@ -4467,7 +4504,7 @@ export declare type CaptionsReceivedListener = (event: {
4467
4504
  *
4468
4505
  * @public
4469
4506
  */
4470
- export declare type ChatAdapter = ChatAdapterThreadManagement & AdapterState<ChatAdapterState> & Disposable_2 & ChatAdapterSubscribers & AttachmentUploadAdapter;
4507
+ export declare type ChatAdapter = ChatAdapterThreadManagement & AdapterState<ChatAdapterState> & Disposable_2 & ChatAdapterSubscribers & _AttachmentUploadAdapter;
4471
4508
 
4472
4509
  /**
4473
4510
  * {@link ChatAdapter} state.
@@ -4572,6 +4609,10 @@ export declare interface ChatAdapterThreadManagement {
4572
4609
  * Send a message in the thread.
4573
4610
  */
4574
4611
  sendMessage(content: string, options?: SendMessageOptions): Promise<void>;
4612
+ /**
4613
+ * Send a message with attachments in the chat thread.
4614
+ */
4615
+ sendMessageWithAttachments(content: string, attachments: AttachmentMetadata[]): Promise<void>;
4575
4616
  /**
4576
4617
  * Send a read receipt for a message.
4577
4618
  */
@@ -4626,10 +4667,11 @@ export declare type ChatAdapterUiState = {
4626
4667
  /**
4627
4668
  * Attachments being uploaded by a user in the current thread.
4628
4669
  * Should be set to null once the upload is complete.
4629
- * Array of type {@link AttachmentUploadsUiState}
4630
- * @beta
4670
+ * Array of type {@link _AttachmentUploadsUiState}
4671
+ *
4672
+ * @internal
4631
4673
  */
4632
- attachmentUploads?: AttachmentUploadsUiState;
4674
+ _attachmentUploads?: _AttachmentUploadsUiState;
4633
4675
  };
4634
4676
 
4635
4677
  /**
@@ -4875,7 +4917,7 @@ export declare type ChatErrors = {
4875
4917
  *
4876
4918
  * @public
4877
4919
  */
4878
- export declare type ChatErrorTarget = 'ChatClient.createChatThread' | 'ChatClient.deleteChatThread' | 'ChatClient.getChatThreadClient' | 'ChatClient.listChatThreads' | 'ChatClient.off' | 'ChatClient.on' | 'ChatClient.startRealtimeNotifications' | 'ChatClient.stopRealtimeNotifications' | 'ChatThreadClient.addParticipants' | 'ChatThreadClient.deleteMessage' | 'ChatThreadClient.getMessage' | 'ChatThreadClient.getProperties' | 'ChatThreadClient.listMessages' | 'ChatThreadClient.listParticipants' | 'ChatThreadClient.listReadReceipts' | 'ChatThreadClient.removeParticipant' | 'ChatThreadClient.sendMessage' | 'ChatThreadClient.sendReadReceipt' | 'ChatThreadClient.sendTypingNotification' | 'ChatThreadClient.updateMessage' | /* @conditional-compile-remove(chat-beta-sdk) */ 'ChatThreadClient.updateProperties' | 'ChatThreadClient.updateTopic';
4920
+ export declare type ChatErrorTarget = 'ChatClient.createChatThread' | 'ChatClient.deleteChatThread' | 'ChatClient.getChatThreadClient' | 'ChatClient.listChatThreads' | 'ChatClient.off' | 'ChatClient.on' | 'ChatClient.startRealtimeNotifications' | 'ChatClient.stopRealtimeNotifications' | 'ChatThreadClient.addParticipants' | 'ChatThreadClient.deleteMessage' | 'ChatThreadClient.getMessage' | 'ChatThreadClient.getProperties' | 'ChatThreadClient.listMessages' | 'ChatThreadClient.listParticipants' | 'ChatThreadClient.listReadReceipts' | 'ChatThreadClient.removeParticipant' | 'ChatThreadClient.sendMessage' | 'ChatThreadClient.sendReadReceipt' | 'ChatThreadClient.sendTypingNotification' | 'ChatThreadClient.updateMessage' | /* @conditional-compile-remove(chat-beta-sdk) */ 'ChatThreadClient.updateProperties' | 'ChatThreadClient.updateTopic' | /* @conditional-compile-remove(chat-beta-sdk) */ 'ChatThreadClient.uploadImage' | /* @conditional-compile-remove(chat-beta-sdk) */ 'ChatThreadClient.deleteImage';
4879
4921
 
4880
4922
  /**
4881
4923
  * Object containing all the handlers required for chat components.
@@ -8678,9 +8720,9 @@ export declare interface NetworkDiagnosticsState {
8678
8720
  }
8679
8721
 
8680
8722
  /**
8681
- * Callback function used to provide custom data to build profile for a user.
8723
+ * Callback function used to provide custom data to build profile for a user or bot.
8682
8724
  *
8683
- * @beta
8725
+ * @public
8684
8726
  */
8685
8727
  export declare type OnFetchProfileCallback = (userId: string, defaultProfile?: Profile) => Promise<Profile | undefined>;
8686
8728
 
@@ -9184,9 +9226,9 @@ export declare interface PPTLiveCallFeatureState {
9184
9226
  }
9185
9227
 
9186
9228
  /**
9187
- * The profile of a user.
9229
+ * The profile of a user or bot.
9188
9230
  *
9189
- * @beta
9231
+ * @public
9190
9232
  */
9191
9233
  export declare type Profile = {
9192
9234
  /**
@@ -9602,11 +9644,11 @@ export declare interface RichTextSendBoxProps {
9602
9644
  */
9603
9645
  systemMessage?: string;
9604
9646
  /**
9605
- * Optional array of active attachment uploads where each object has attributes
9606
- * of a attachment upload like name, progress, errorMessage etc.
9647
+ * Optional array of type {@link AttachmentMetadataWithProgress}
9648
+ * to render attachments being uploaded in the SendBox.
9607
9649
  * @beta
9608
9650
  */
9609
- activeAttachmentUploads?: AttachmentMetadata[];
9651
+ attachmentsWithProgress?: AttachmentMetadataWithProgress[];
9610
9652
  /**
9611
9653
  * enumerable to determine if the input box has focus on render or not.
9612
9654
  * When undefined nothing has focus on render
@@ -9864,11 +9906,11 @@ export declare interface SendBoxProps {
9864
9906
  */
9865
9907
  onRenderAttachmentUploads?: () => JSX.Element;
9866
9908
  /**
9867
- * Optional array of active attachment uploads where each object has attributes
9868
- * of a attachment upload like name, progress, errorMessage etc.
9909
+ * Optional array of type {@link AttachmentMetadataWithProgress}
9910
+ * to render attachments being uploaded in the SendBox.
9869
9911
  * @beta
9870
9912
  */
9871
- activeAttachmentUploads?: AttachmentMetadata[];
9913
+ attachmentsWithProgress?: AttachmentMetadataWithProgress[];
9872
9914
  /**
9873
9915
  * Optional callback to remove the attachment upload before sending by clicking on
9874
9916
  * cancel icon.
@@ -11410,6 +11452,10 @@ export declare interface VideoGalleryProps {
11410
11452
  * Reaction resources for like, heart, laugh, applause and surprised.
11411
11453
  */
11412
11454
  reactionResources?: ReactionResources;
11455
+ /**
11456
+ * Additional Options for Video Tiles
11457
+ */
11458
+ videoTilesOptions?: VideoTilesOptions;
11413
11459
  }
11414
11460
 
11415
11461
  /**
@@ -11647,6 +11693,11 @@ export declare interface VideoTileProps {
11647
11693
  * @defaultValue true
11648
11694
  */
11649
11695
  showLabel?: boolean;
11696
+ /**
11697
+ * Show label background on the VideoTile
11698
+ * @defaultValue false
11699
+ */
11700
+ alwaysShowLabelBackground?: boolean;
11650
11701
  /**
11651
11702
  * Whether to display a mute icon beside the user's display name.
11652
11703
  * @defaultValue true
@@ -11716,6 +11767,18 @@ export declare interface VideoTileProps {
11716
11767
  reactionResources?: ReactionResources;
11717
11768
  }
11718
11769
 
11770
+ /**
11771
+ * Options that apply to all Video Tiles in the {@link VideoGallery}
11772
+ *
11773
+ * @public
11774
+ */
11775
+ export declare interface VideoTilesOptions {
11776
+ /**
11777
+ * Whether to always show the label background for the video tile
11778
+ */
11779
+ alwaysShowLabelBackground?: boolean;
11780
+ }
11781
+
11719
11782
  /**
11720
11783
  * Strings of {@link VideoTile} that can be overridden.
11721
11784
  * @beta
@@ -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-oaEwmItW.js');
7
+ var index = require('./index-C2GfkUGz.js');
8
8
  var React = require('react');
9
9
  require('reselect');
10
10
  require('@azure/communication-calling');
@@ -107,7 +107,7 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
107
107
  const onRenderAttachmentUploads = React.useCallback(() => {
108
108
  return (React.createElement(react.Stack, { className: index.attachmentUploadCardsStyles },
109
109
  React.createElement(index.FluentV9ThemeProvider, { v8Theme: theme },
110
- React.createElement(index._AttachmentUploadCards, { activeAttachmentUploads: attachmentMetadata, onCancelAttachmentUpload: onCancelAttachmentUpload }))));
110
+ React.createElement(index._AttachmentUploadCards, { attachmentsWithProgress: attachmentMetadata, onCancelAttachmentUpload: onCancelAttachmentUpload }))));
111
111
  }, [attachmentMetadata, onCancelAttachmentUpload, theme]);
112
112
  const getContent = () => {
113
113
  return (React.createElement(react.Stack, { className: react.mergeStyles(index.editBoxWidthStyles) },
@@ -126,4 +126,4 @@ const ChatMessageComponentAsRichTextEditBox = (props) => {
126
126
 
127
127
  exports.ChatMessageComponentAsRichTextEditBox = ChatMessageComponentAsRichTextEditBox;
128
128
  exports.default = ChatMessageComponentAsRichTextEditBox;
129
- //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-WGqg2woK.js.map
129
+ //# sourceMappingURL=ChatMessageComponentAsRichTextEditBox-DpYUiI1l.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-WGqg2woK.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, useMemo, useState } 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 '../../AttachmentUploadCards';\n/* @conditional-compile-remove(attachment-upload) */\nimport { AttachmentMetadata } from '../../../types/Attachment';\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(attachment-upload) */\nimport { getMessageWithAttachmentMetadata } 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(attachment-download) @conditional-compile-remove(attachment-upload) */\nimport { FluentV9ThemeProvider } from '../../../theming/FluentV9ThemeProvider';\n/* @conditional-compile-remove(attachment-upload) */\nimport { attachmentUploadCardsStyles } from '../../styles/SendBox.styles';\n\n/** @private */\nexport type ChatMessageComponentAsRichTextEditBoxProps = {\n onCancel?: (messageId: string) => void;\n onSubmit: (\n text: string,\n metadata?: Record<string, string>,\n options?: {\n /* @conditional-compile-remove(attachment-upload) */\n attachmentMetadata?: AttachmentMetadata[];\n }\n ) => void;\n message: ChatMessage;\n strings: MessageThreadStrings;\n};\n\n/**\n * @private\n */\nexport const ChatMessageComponentAsRichTextEditBox = (\n props: ChatMessageComponentAsRichTextEditBoxProps\n): JSX.Element => {\n const { onCancel, onSubmit, strings, message } = props;\n\n const [textValue, setTextValue] = useState<string>(message.content || '');\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n const [attachmentMetadata, setAttachmentMetadata] = useState(getMessageWithAttachmentMetadata(message));\n const editTextFieldRef = React.useRef<RichTextEditorComponentRef>(null);\n const theme = useTheme();\n const messageState = getMessageState(\n textValue,\n /* @conditional-compile-remove(attachment-upload) */ attachmentMetadata ?? []\n );\n const submitEnabled = messageState === 'OK';\n\n const editContainerStyles = useChatMessageRichTextEditContainerStyles();\n const chatMyMessageStyles = useChatMyMessageStyles();\n const locale = useLocale().strings;\n\n const setText = (newValue?: string): void => {\n setTextValue(newValue ?? '');\n };\n\n const textTooLongMessage =\n messageState === 'too long'\n ? _formatString(strings.editBoxTextLimit, { limitNumber: `${MAXIMUM_LENGTH_OF_MESSAGE}` })\n : undefined;\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 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 />\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxSubmitButton}\n tooltipContent={strings.editBoxSubmitButton}\n onRenderIcon={onRenderThemedSubmitIcon}\n onClick={(e) => {\n submitEnabled &&\n onSubmit(\n textValue,\n message.metadata,\n /* @conditional-compile-remove(attachment-upload) */ {\n attachmentMetadata\n }\n );\n e.stopPropagation();\n }}\n id={'submitIconWrapper'}\n />\n </Stack>\n );\n }, [\n /* @conditional-compile-remove(attachment-upload) */ attachmentMetadata,\n message.messageId,\n message.metadata,\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;\n return locale.sendBox;\n }, [/* @conditional-compile-remove(rich-text-editor) */ locale.richTextSendBox, locale.sendBox]);\n\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n const onCancelAttachmentUpload = useCallback(\n (attachmentId: string) => {\n setAttachmentMetadata(attachmentMetadata?.filter((attachment) => attachment.id !== attachmentId));\n },\n [attachmentMetadata]\n );\n\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n const onRenderAttachmentUploads = useCallback(() => {\n return (\n <Stack className={attachmentUploadCardsStyles}>\n <FluentV9ThemeProvider v8Theme={theme}>\n <_AttachmentUploadCards\n activeAttachmentUploads={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 content={textValue}\n strings={richTextLocaleStrings}\n disabled={false}\n actionComponents={actionButtons}\n richTextEditorStyleProps={editBoxRichTextEditorStyle}\n isHorizontalLayoutDisabled={true}\n /* @conditional-compile-remove(attachment-upload) */\n onRenderAttachmentUploads={onRenderAttachmentUploads}\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: chatMyMessageStyles.root\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","getMessageWithAttachmentMetadata","useTheme","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","useCallback","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","useMemo","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAkDA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,KAAiD,KAClC;IACf,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAA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AEA,UAAU,EAAE,CACC,EAChB;AACJ;;;;;"}
1
+ {"version":3,"file":"ChatMessageComponentAsRichTextEditBox-DpYUiI1l.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, useMemo, useState } 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 '../../AttachmentUploadCards';\n/* @conditional-compile-remove(attachment-upload) */\nimport { AttachmentMetadata } from '../../../types/Attachment';\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(attachment-upload) */\nimport { getMessageWithAttachmentMetadata } 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(attachment-download) @conditional-compile-remove(attachment-upload) */\nimport { FluentV9ThemeProvider } from '../../../theming/FluentV9ThemeProvider';\n/* @conditional-compile-remove(attachment-upload) */\nimport { attachmentUploadCardsStyles } from '../../styles/SendBox.styles';\n\n/** @private */\nexport type ChatMessageComponentAsRichTextEditBoxProps = {\n onCancel?: (messageId: string) => void;\n onSubmit: (\n text: string,\n metadata?: Record<string, string>,\n options?: {\n /* @conditional-compile-remove(attachment-upload) */\n attachmentMetadata?: AttachmentMetadata[];\n }\n ) => void;\n message: ChatMessage;\n strings: MessageThreadStrings;\n};\n\n/**\n * @private\n */\nexport const ChatMessageComponentAsRichTextEditBox = (\n props: ChatMessageComponentAsRichTextEditBoxProps\n): JSX.Element => {\n const { onCancel, onSubmit, strings, message } = props;\n\n const [textValue, setTextValue] = useState<string>(message.content || '');\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n const [attachmentMetadata, setAttachmentMetadata] = useState(getMessageWithAttachmentMetadata(message));\n const editTextFieldRef = React.useRef<RichTextEditorComponentRef>(null);\n const theme = useTheme();\n const messageState = getMessageState(\n textValue,\n /* @conditional-compile-remove(attachment-upload) */ attachmentMetadata ?? []\n );\n const submitEnabled = messageState === 'OK';\n\n const editContainerStyles = useChatMessageRichTextEditContainerStyles();\n const chatMyMessageStyles = useChatMyMessageStyles();\n const locale = useLocale().strings;\n\n const setText = (newValue?: string): void => {\n setTextValue(newValue ?? '');\n };\n\n const textTooLongMessage =\n messageState === 'too long'\n ? _formatString(strings.editBoxTextLimit, { limitNumber: `${MAXIMUM_LENGTH_OF_MESSAGE}` })\n : undefined;\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 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 />\n <InputBoxButton\n className={richTextActionButtonsStyle}\n ariaLabel={strings.editBoxSubmitButton}\n tooltipContent={strings.editBoxSubmitButton}\n onRenderIcon={onRenderThemedSubmitIcon}\n onClick={(e) => {\n submitEnabled &&\n onSubmit(\n textValue,\n message.metadata,\n /* @conditional-compile-remove(attachment-upload) */ {\n attachmentMetadata\n }\n );\n e.stopPropagation();\n }}\n id={'submitIconWrapper'}\n />\n </Stack>\n );\n }, [\n /* @conditional-compile-remove(attachment-upload) */ attachmentMetadata,\n message.messageId,\n message.metadata,\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;\n return locale.sendBox;\n }, [/* @conditional-compile-remove(rich-text-editor) */ locale.richTextSendBox, locale.sendBox]);\n\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n const onCancelAttachmentUpload = useCallback(\n (attachmentId: string) => {\n setAttachmentMetadata(attachmentMetadata?.filter((attachment) => attachment.id !== attachmentId));\n },\n [attachmentMetadata]\n );\n\n /* @conditional-compile-remove(attachment-download) @conditional-compile-remove(attachment-upload) */\n const onRenderAttachmentUploads = useCallback(() => {\n return (\n <Stack className={attachmentUploadCardsStyles}>\n <FluentV9ThemeProvider v8Theme={theme}>\n <_AttachmentUploadCards\n attachmentsWithProgress={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 content={textValue}\n strings={richTextLocaleStrings}\n disabled={false}\n actionComponents={actionButtons}\n richTextEditorStyleProps={editBoxRichTextEditorStyle}\n isHorizontalLayoutDisabled={true}\n /* @conditional-compile-remove(attachment-upload) */\n onRenderAttachmentUploads={onRenderAttachmentUploads}\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: chatMyMessageStyles.root\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","getMessageWithAttachmentMetadata","useTheme","getMessageState","useChatMessageRichTextEditContainerStyles","useChatMyMessageStyles","useLocale","_formatString","MAXIMUM_LENGTH_OF_MESSAGE","useCallback","mergeStyles","richTextEditBoxActionButtonIcon","onRenderCancelIcon","onRenderSubmitIcon","useMemo","Stack","InputBoxButton","richTextActionButtonsStyle","attachmentUploadCardsStyles","FluentV9ThemeProvider","_AttachmentUploadCards","editBoxWidthStyles","RichTextSendBoxErrors","RichTextInputBoxComponent","editBoxRichTextEditorStyle","ChatMyMessage","mergeClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAkDA;;AAEG;AACU,MAAA,qCAAqC,GAAG,CACnD,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