@azure/communication-react 1.14.1-alpha-202403290012 → 1.14.1-alpha-202404020012

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 (150) hide show
  1. package/dist/communication-react.d.ts +111 -204
  2. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-CH6WvEGZ.js → RichTextSendBoxWrapper-BTyywbnH.js} +2 -2
  3. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-CH6WvEGZ.js.map → RichTextSendBoxWrapper-BTyywbnH.js.map} +1 -1
  4. package/dist/dist-cjs/communication-react/{index-qxnuqL7s.js → index-Bj9ORqhl.js} +920 -779
  5. package/dist/dist-cjs/communication-react/index-Bj9ORqhl.js.map +1 -0
  6. package/dist/dist-cjs/communication-react/index.js +2 -1
  7. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  10. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +4 -4
  11. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  12. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +4 -0
  13. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +6 -1
  14. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  15. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.d.ts +1 -1
  16. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js +2 -2
  17. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js.map +1 -1
  18. package/dist/dist-esm/communication-react/src/index.d.ts +2 -2
  19. package/dist/dist-esm/communication-react/src/index.js +2 -0
  20. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  21. package/dist/dist-esm/react-components/src/components/AttachmentCard.d.ts +0 -4
  22. package/dist/dist-esm/react-components/src/components/AttachmentCard.js +4 -1
  23. package/dist/dist-esm/react-components/src/components/AttachmentCard.js.map +1 -1
  24. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.d.ts +5 -36
  25. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js +15 -24
  26. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js.map +1 -1
  27. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +4 -8
  28. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  29. package/dist/dist-esm/react-components/src/components/EndCallButton.d.ts +10 -1
  30. package/dist/dist-esm/react-components/src/components/EndCallButton.js +93 -51
  31. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  32. package/dist/dist-esm/react-components/src/components/ReactionButton.d.ts +2 -2
  33. package/dist/dist-esm/react-components/src/components/ReactionButton.js +8 -5
  34. package/dist/dist-esm/react-components/src/components/ReactionButton.js.map +1 -1
  35. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +1 -1
  36. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +3 -3
  37. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
  38. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +6 -6
  39. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +23 -23
  40. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
  41. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +5 -5
  42. package/dist/dist-esm/react-components/src/components/SendBox.js +16 -16
  43. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.d.ts +8 -0
  45. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +1 -1
  46. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  47. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js +8 -4
  48. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js.map +1 -1
  49. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js +4 -4
  50. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js.map +1 -1
  51. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.d.ts +4 -0
  52. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +22 -1
  53. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  54. package/dist/dist-esm/react-components/src/components/index.d.ts +1 -2
  55. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  56. package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.d.ts +1 -1
  57. package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js +3 -2
  58. package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js.map +1 -1
  59. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.d.ts +2 -1
  60. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js +10 -12
  61. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js.map +1 -1
  62. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.d.ts +1 -0
  63. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +3 -1
  64. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  65. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +3 -3
  66. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +7 -7
  67. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  68. package/dist/dist-esm/react-components/src/components/utils/common.d.ts +1 -1
  69. package/dist/dist-esm/react-components/src/components/utils/common.js +1 -1
  70. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  71. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  72. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +3 -1
  73. package/dist/dist-esm/react-components/src/types/Attachment.d.ts +15 -88
  74. package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
  75. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +24 -0
  76. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  77. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js +0 -7
  78. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js.map +1 -1
  79. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +2 -0
  80. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +66 -1
  81. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  82. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +2 -2
  83. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +3 -3
  84. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  85. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +8 -8
  86. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +21 -21
  87. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  88. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +8 -8
  89. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  90. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +8 -8
  91. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +15 -15
  92. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  93. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +3 -3
  94. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +2 -2
  95. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  96. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +2 -2
  97. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +1 -1
  98. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  99. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +2 -33
  100. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +23 -15
  101. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  102. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.d.ts +47 -0
  103. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.js +179 -0
  104. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.js.map +1 -0
  105. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +9 -9
  106. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +29 -29
  107. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  108. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +4 -4
  109. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  110. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.d.ts +2 -2
  111. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +8 -8
  112. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  113. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/{FileUpload.d.ts → AttachmentUpload.d.ts} +10 -10
  114. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/{FileUpload.js → AttachmentUpload.js} +12 -12
  115. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js.map +1 -0
  116. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.d.ts +38 -0
  117. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/{FileUploadButton.js → AttachmentUploadButton.js} +11 -9
  118. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +1 -0
  119. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.d.ts +3 -3
  120. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js +2 -2
  121. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  122. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +2 -3
  123. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  124. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.d.ts +29 -0
  125. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.js +12 -0
  126. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.js.map +1 -0
  127. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +2 -2
  128. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +2 -2
  129. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +1 -1
  130. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +24 -8
  131. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  132. package/dist/dist-esm/react-composites/src/composites/common/SendBox.js +5 -5
  133. package/dist/dist-esm/react-composites/src/composites/common/SendBox.js.map +1 -1
  134. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +7 -1
  135. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  136. package/dist/dist-esm/react-composites/src/composites/common/utils.d.ts +4 -0
  137. package/dist/dist-esm/react-composites/src/composites/common/utils.js +6 -0
  138. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  139. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +6 -0
  140. package/package.json +7 -7
  141. package/dist/dist-cjs/communication-react/index-qxnuqL7s.js.map +0 -1
  142. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +0 -48
  143. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +0 -160
  144. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +0 -1
  145. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUpload.js.map +0 -1
  146. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.d.ts +0 -36
  147. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +0 -1
  148. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +0 -27
  149. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +0 -12
  150. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +0 -1
@@ -150,38 +150,6 @@ export declare interface ActiveErrorMessage {
150
150
  timestamp?: Date;
151
151
  }
152
152
 
153
- /**
154
- * Attributes required for SendBox to show attachment uploads like name, progress etc.
155
- * @beta
156
- */
157
- export declare interface ActiveFileUpload {
158
- /**
159
- * Unique identifier for the file upload.
160
- */
161
- id: string;
162
- /**
163
- * File name to be rendered for uploaded file.
164
- */
165
- filename: string;
166
- /**
167
- * A number between 0 and 1 indicating the progress of the upload.
168
- * This is unrelated to the `uploadComplete` property.
169
- * It is only used to show the progress of the upload.
170
- * Progress of 1 doesn't mark the upload as complete, set the `uploadComplete`
171
- * property to true to mark the upload as complete.
172
- */
173
- progress: number;
174
- /**
175
- * Error to be displayed to the user if the upload fails.
176
- */
177
- error?: SendBoxErrorBarError;
178
- /**
179
- * `true` means that the upload is completed.
180
- * This is independent of the upload `progress`.
181
- */
182
- uploadComplete?: boolean;
183
- }
184
-
185
153
  /**
186
154
  * Error reported via error events and stored in adapter state.
187
155
  *
@@ -300,7 +268,7 @@ export declare interface AttachmentMetadata {
300
268
  /**
301
269
  * A object contains status message would be shown to the user.
302
270
  */
303
- uploadStatus?: AttachmentUploadStatus;
271
+ uploadError?: AttachmentUploadStatus;
304
272
  }
305
273
 
306
274
  /**
@@ -315,7 +283,20 @@ export declare interface AttachmentOptions {
315
283
 
316
284
  /**
317
285
  * @beta
318
- * A callback function for handling file uploads.
286
+ */
287
+ export declare interface AttachmentUploadAdapter {
288
+ registerActiveUploads: (files: File[]) => AttachmentUploadManager[];
289
+ registerCompletedUploads: (metadata: AttachmentMetadata[]) => AttachmentUploadManager[];
290
+ clearUploads: () => void;
291
+ cancelUpload: (id: string) => void;
292
+ updateUploadProgress: (id: string, progress: number) => void;
293
+ updateUploadStatusMessage: (id: string, errorMessage: string) => void;
294
+ updateUploadMetadata: (id: string, metadata: AttachmentMetadata) => void;
295
+ }
296
+
297
+ /**
298
+ * @beta
299
+ * A callback function for handling attachment uploads.
319
300
  *
320
301
  * @param AttachmentUploads - The list of uploaded files. Each file is represented by an {@link AttachmentUpload} object.
321
302
  */
@@ -323,13 +304,13 @@ export declare type AttachmentUploadHandler = (attachmentUploads: AttachmentUplo
323
304
 
324
305
  /**
325
306
  * A wrapper object for a file that is being uploaded.
326
- * Allows managing file uploads by providing common functions for updating the
307
+ * Allows managing attachment uploads by providing common functions for updating the
327
308
  * upload progress, canceling an upload, completing an upload etc.
328
309
  * @beta
329
310
  */
330
311
  export declare interface AttachmentUploadManager {
331
312
  /**
332
- * Unique identifier for the file upload.
313
+ * Unique identifier for the attachment upload.
333
314
  */
334
315
  id: string;
335
316
  /**
@@ -337,21 +318,22 @@ export declare interface AttachmentUploadManager {
337
318
  */
338
319
  file?: File;
339
320
  /**
340
- * Update the progress of the upload.
321
+ * Update the progress of the upload changed.
322
+ * A upload is considered complete when the progress reaches 1.
341
323
  * @param value - number between 0 and 1
342
324
  */
343
- notifyUploadProgressChanged: (value: number) => void;
325
+ notifyProgressChanged: (value: number) => void;
344
326
  /**
345
327
  * Mark the upload as complete.
346
328
  * Requires the `metadata` param containing uploaded file information.
347
329
  * @param metadata - {@link AttachmentMetadata}
348
330
  */
349
- notifyUploadCompleted: (metadata: AttachmentMetadata) => void;
331
+ notifyCompleted: (metadata: AttachmentMetadata) => void;
350
332
  /**
351
333
  * Mark the upload as failed.
352
334
  * @param message - An error message that can be displayed to the user.
353
335
  */
354
- notifyUploadFailed: (message: string) => void;
336
+ notifyFailed: (message: string) => void;
355
337
  }
356
338
 
357
339
  /**
@@ -359,21 +341,22 @@ export declare interface AttachmentUploadManager {
359
341
  */
360
342
  export declare interface AttachmentUploadOptions {
361
343
  /**
362
- * A string containing the comma separated list of accepted file types.
344
+ * A list of strings containing the comma separated list of supported media (aka. mime) types.
345
+ * i.e. ['image/*', 'video/*', 'audio/*']
346
+ * Default value is `['*']`, meaning all media types are supported.
363
347
  * Similar to the `accept` attribute of the `<input type="file" />` element.
364
- * Accepts any type of file if not specified.
365
348
  * @beta
366
349
  */
367
350
  supportedMediaTypes?: string[];
368
351
  /**
369
- * Allows multiple files to be selected if set to `true`.
352
+ * Disable multiple files to be selected if set to `true`.
353
+ * Default value is `false`, meaning multiple files can be selected.
370
354
  * Similar to the `multiple` attribute of the `<input type="file" />` element.
371
- * @defaultValue false
372
355
  * @beta
373
356
  */
374
357
  disableMultipleUploads?: boolean;
375
358
  /**
376
- * A function of type {@link AttachmentUploadHandler} for handling file uploads.
359
+ * A function of type {@link AttachmentUploadHandler} for handling attachment uploads.
377
360
  * @beta
378
361
  */
379
362
  handler: AttachmentUploadHandler;
@@ -389,6 +372,12 @@ export declare interface AttachmentUploadStatus {
389
372
  timestamp: number;
390
373
  }
391
374
 
375
+ /**
376
+ * A record containing {@link AttachmentMetadata} mapped to unique ids.
377
+ * @beta
378
+ */
379
+ export declare type AttachmentUploadsUiState = Record<string, AttachmentMetadata>;
380
+
392
381
  /**
393
382
  * Custom data attributes for displaying avatar for a user.
394
383
  *
@@ -2583,6 +2572,30 @@ export declare interface CallCompositeStrings {
2583
2572
  * Tooltip for button to exit spotlight
2584
2573
  */
2585
2574
  exitSpotlightButtonTooltip: string;
2575
+ /**
2576
+ * Label for confirm button in hang up confirm dialog
2577
+ */
2578
+ hangUpConfirmButtonLabel?: string;
2579
+ /**
2580
+ * Label for cancel button in hang up confirm dialog
2581
+ */
2582
+ hangUpCancelButtonLabel?: string;
2583
+ /**
2584
+ * Title of confirm dialog when leaving
2585
+ */
2586
+ leaveConfirmDialogTitle?: string;
2587
+ /**
2588
+ * Content of confirm dialog when leaving
2589
+ */
2590
+ leaveConfirmDialogContent?: string;
2591
+ /**
2592
+ * Title of confirm dialog when leaving
2593
+ */
2594
+ endCallConfirmDialogTitle?: string;
2595
+ /**
2596
+ * Content of confirm dialog when leaving
2597
+ */
2598
+ endCallConfirmDialogContent?: string;
2586
2599
  /**
2587
2600
  * Error message when the meeting identifier or passcode is invalid
2588
2601
  */
@@ -2902,7 +2915,7 @@ export declare interface CallState {
2902
2915
  /**
2903
2916
  * Proxy of {@link @azure/communication-calling#PPTLiveCallFeature}.
2904
2917
  *
2905
- *@public
2918
+ *@beta
2906
2919
  */
2907
2920
  pptLive: PPTLiveCallFeatureState;
2908
2921
  /**
@@ -2934,7 +2947,7 @@ export declare interface CallState {
2934
2947
  *
2935
2948
  * This property is added by the stateful layer and is not a proxy of SDK state
2936
2949
  *
2937
- *@public
2950
+ *@beta
2938
2951
  */
2939
2952
  contentSharingRemoteParticipant?: string;
2940
2953
  /**
@@ -3299,19 +3312,19 @@ export declare interface CallWithChatAdapterManagement {
3299
3312
  */
3300
3313
  loadPreviousChatMessages(messagesToLoad: number): Promise<boolean>;
3301
3314
  /** @beta */
3302
- registerActiveFileUploads: (files: File[]) => FileUploadManager[];
3315
+ registerActiveUploads: (files: File[]) => AttachmentUploadManager[];
3303
3316
  /** @beta */
3304
- registerCompletedFileUploads: (metadata: AttachmentMetadata[]) => FileUploadManager[];
3317
+ registerCompletedUploads: (metadata: AttachmentMetadata[]) => AttachmentUploadManager[];
3305
3318
  /** @beta */
3306
- clearFileUploads: () => void;
3319
+ clearUploads: () => void;
3307
3320
  /** @beta */
3308
- cancelFileUpload: (id: string) => void;
3321
+ cancelUpload: (id: string) => void;
3309
3322
  /** @beta */
3310
- updateFileUploadProgress: (id: string, progress: number) => void;
3323
+ updateUploadProgress: (id: string, progress: number) => void;
3311
3324
  /** @beta */
3312
- updateFileUploadErrorMessage: (id: string, errorMessage: string) => void;
3325
+ updateUploadStatusMessage: (id: string, errorMessage: string) => void;
3313
3326
  /** @beta */
3314
- updateFileUploadMetadata: (id: string, metadata: AttachmentMetadata) => void;
3327
+ updateUploadMetadata: (id: string, metadata: AttachmentMetadata) => void;
3315
3328
  /** @public */
3316
3329
  downloadResourceToCache(resourceDetails: ResourceDetails): Promise<void>;
3317
3330
  /** @public */
@@ -3497,11 +3510,11 @@ export declare interface CallWithChatAdapterUiState {
3497
3510
  /**
3498
3511
  * Files being uploaded by a user in the current thread.
3499
3512
  * Should be set to null once the upload is complete.
3500
- * Array of type {@link FileUploadsUiState}
3513
+ * Array of type {@link AttachmentUploadsUiState}
3501
3514
  *
3502
3515
  * @beta
3503
3516
  */
3504
- fileUploads?: FileUploadsUiState;
3517
+ attachmentUploads?: AttachmentUploadsUiState;
3505
3518
  /**
3506
3519
  * State to track whether the end user has opted in to using a
3507
3520
  * out of date version of a supported browser. Allows the user
@@ -3657,7 +3670,7 @@ export declare type CallWithChatCompositeOptions = {
3657
3670
  * If undefined, file sharing feature will be disabled.
3658
3671
  * @beta
3659
3672
  */
3660
- fileSharing?: FileSharingOptions;
3673
+ attachmentOptions?: AttachmentOptions;
3661
3674
  /**
3662
3675
  * Device permissions check options for your call.
3663
3676
  * Here you can choose what device permissions you prompt the user for,
@@ -4448,7 +4461,7 @@ export declare type CaptionsReceivedListener = (event: {
4448
4461
  *
4449
4462
  * @public
4450
4463
  */
4451
- export declare type ChatAdapter = ChatAdapterThreadManagement & AdapterState<ChatAdapterState> & Disposable_2 & ChatAdapterSubscribers & FileUploadAdapter;
4464
+ export declare type ChatAdapter = ChatAdapterThreadManagement & AdapterState<ChatAdapterState> & Disposable_2 & ChatAdapterSubscribers & AttachmentUploadAdapter;
4452
4465
 
4453
4466
  /**
4454
4467
  * {@link ChatAdapter} state.
@@ -4607,10 +4620,10 @@ export declare type ChatAdapterUiState = {
4607
4620
  /**
4608
4621
  * Files being uploaded by a user in the current thread.
4609
4622
  * Should be set to null once the upload is complete.
4610
- * Array of type {@link FileUploadsUiState}
4623
+ * Array of type {@link AttachmentUploadsUiState}
4611
4624
  * @beta
4612
4625
  */
4613
- fileUploads?: FileUploadsUiState;
4626
+ attachmentUploads?: AttachmentUploadsUiState;
4614
4627
  };
4615
4628
 
4616
4629
  /**
@@ -4756,7 +4769,7 @@ export declare type ChatCompositeOptions = {
4756
4769
  * If undefined, file sharing feature will be disabled.
4757
4770
  * @beta
4758
4771
  */
4759
- fileSharing?: FileSharingOptions;
4772
+ attachmentOptions?: AttachmentOptions;
4760
4773
  /**
4761
4774
  * Properties for configuring the richTextEditor feature.
4762
4775
  * @defaultValue false
@@ -5140,7 +5153,13 @@ export declare type CommonCallControlOptions = {
5140
5153
  * Show or Hide EndCall button during a call.
5141
5154
  * @defaultValue true
5142
5155
  */
5143
- endCallButton?: boolean;
5156
+ endCallButton?: boolean | /* @conditional-compile-remove(end-call-options) */ {
5157
+ /**
5158
+ * whether to make end call button to trigger a menu, which will enable end call for everybody functionality.
5159
+ * @defaultValue false
5160
+ */
5161
+ hangUpForEveryone?: false | 'endCallOptions';
5162
+ };
5144
5163
  /**
5145
5164
  * Show or Hide Microphone button during a call.
5146
5165
  * @defaultValue true
@@ -6600,6 +6619,13 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
6600
6619
  RichTextTableDeleteMenuIcon: React_2.JSX.Element;
6601
6620
  };
6602
6621
 
6622
+ /**
6623
+ * @beta
6624
+ *
6625
+ * The default menu action for downloading attachments. This action will open the attachment's URL in a new tab.
6626
+ */
6627
+ export declare const defaultAttachmentMenuAction: AttachmentMenuAction;
6628
+
6603
6629
  /**
6604
6630
  * Device Checks.
6605
6631
  * Choose whether or not to block starting a call depending on camera and microphone permission options.
@@ -6988,7 +7014,12 @@ export declare interface EndCallButtonProps extends ControlBarButtonProps {
6988
7014
  * Utility property for using this component with `communication react eventHandlers`.
6989
7015
  * Maps directly to the `onClick` property.
6990
7016
  */
6991
- onHangUp?: () => Promise<void>;
7017
+ onHangUp?: (forEveryone?: boolean) => Promise<void>;
7018
+ /**
7019
+ * Set this to true to make it a split button.
7020
+ * The split arrow will trigger a contextual menu to allow end for everyone or just for the user.
7021
+ */
7022
+ enableEndCallMenu?: boolean;
6992
7023
  /**
6993
7024
  * Optional strings to override in component
6994
7025
  */
@@ -7007,6 +7038,10 @@ export declare interface EndCallButtonStrings {
7007
7038
  label: string;
7008
7039
  /** Tooltip content. */
7009
7040
  tooltipContent?: string;
7041
+ /** Label for leave option when ending call */
7042
+ leaveOption?: string;
7043
+ /** Label for end the whole call option when ending call */
7044
+ endCallOption?: string;
7010
7045
  }
7011
7046
 
7012
7047
  /**
@@ -7217,134 +7252,6 @@ export declare interface ErrorBarStrings {
7217
7252
  */
7218
7253
  export declare type ErrorType = keyof ErrorBarStrings;
7219
7254
 
7220
- /**
7221
- * Properties for configuring the File Sharing feature.
7222
- * @beta
7223
- */
7224
- export declare interface FileSharingOptions {
7225
- /**
7226
- * A string containing the comma separated list of accepted file types.
7227
- * Similar to the `accept` attribute of the `<input type="file" />` element.
7228
- * Accepts any type of file if not specified.
7229
- * @beta
7230
- */
7231
- accept?: string;
7232
- /**
7233
- * Allows multiple files to be selected if set to `true`.
7234
- * Similar to the `multiple` attribute of the `<input type="file" />` element.
7235
- * @defaultValue false
7236
- * @beta
7237
- */
7238
- multiple?: boolean;
7239
- /**
7240
- * A function of type {@link FileUploadHandler} for handling file uploads.
7241
- * @beta
7242
- */
7243
- uploadHandler: FileUploadHandler;
7244
- /**
7245
- * A temp function until this interface is deprecated
7246
- */
7247
- actionsForAttachment?: (attachment: AttachmentMetadata, message?: ChatMessage) => AttachmentMenuAction[];
7248
- }
7249
-
7250
- /**
7251
- * @beta
7252
- */
7253
- export declare interface FileUploadAdapter {
7254
- registerActiveFileUploads: (files: File[]) => FileUploadManager[];
7255
- registerCompletedFileUploads: (metadata: AttachmentMetadata[]) => FileUploadManager[];
7256
- clearFileUploads: () => void;
7257
- cancelFileUpload: (id: string) => void;
7258
- updateFileUploadProgress: (id: string, progress: number) => void;
7259
- updateFileUploadErrorMessage: (id: string, errorMessage: string) => void;
7260
- updateFileUploadMetadata: (id: string, metadata: AttachmentMetadata) => void;
7261
- }
7262
-
7263
- /**
7264
- * @beta
7265
- * Error message to be displayed to the user if the upload fails.
7266
- */
7267
- export declare type FileUploadError = {
7268
- message: string;
7269
- timestamp: number;
7270
- };
7271
-
7272
- /**
7273
- * @beta
7274
- * A callback function for handling file uploads.
7275
- *
7276
- * @param userId - The user ID of the user uploading the file.
7277
- * @param fileUploads - The list of uploaded files. Each file is represented by an {@link FileUpload} object.
7278
- */
7279
- export declare type FileUploadHandler = (userId: string, fileUploads: FileUploadManager[]) => void;
7280
-
7281
- /**
7282
- * A wrapper object for a file that is being uploaded.
7283
- * Allows managing file uploads by providing common functions for updating the
7284
- * upload progress, canceling an upload, completing an upload etc.
7285
- * @beta
7286
- */
7287
- export declare interface FileUploadManager {
7288
- /**
7289
- * Unique identifier for the file upload.
7290
- */
7291
- id: string;
7292
- /**
7293
- * HTML {@link File} object for the uploaded file.
7294
- */
7295
- file?: File;
7296
- /**
7297
- * Update the progress of the upload.
7298
- * @param value - number between 0 and 1
7299
- */
7300
- notifyUploadProgressChanged: (value: number) => void;
7301
- /**
7302
- * Mark the upload as complete.
7303
- * Requires the `metadata` param containing uploaded file information.
7304
- * @param metadata - {@link AttachmentMetadata}
7305
- */
7306
- notifyUploadCompleted: (metadata: AttachmentMetadata) => void;
7307
- /**
7308
- * Mark the upload as failed.
7309
- * @param message - An error message that can be displayed to the user.
7310
- */
7311
- notifyUploadFailed: (message: string) => void;
7312
- }
7313
-
7314
- /**
7315
- * Contains the state attributes of a file upload like name, progress etc.
7316
- * @beta
7317
- */
7318
- export declare interface FileUploadState {
7319
- /**
7320
- * Unique identifier for the file upload.
7321
- */
7322
- id: string;
7323
- /**
7324
- * Filename extracted from the {@link File} object.
7325
- * This attribute is used to render the filename if `metadata.name` is not available.
7326
- */
7327
- filename: string;
7328
- /**
7329
- * A number between 0 and 1 indicating the progress of the upload.
7330
- */
7331
- progress: number;
7332
- /**
7333
- * Metadata {@link AttachmentMetadata} containing information about the uploaded file.
7334
- */
7335
- metadata?: AttachmentMetadata;
7336
- /**
7337
- * Error message to be displayed to the user if the upload fails.
7338
- */
7339
- error?: FileUploadError;
7340
- }
7341
-
7342
- /**
7343
- * A record containing {@link FileUploadState} mapped to unique ids.
7344
- * @beta
7345
- */
7346
- export declare type FileUploadsUiState = Record<string, FileUploadState>;
7347
-
7348
7255
  /**
7349
7256
  * Provider to apply a Fluent theme across this library's react components.
7350
7257
  *
@@ -9264,7 +9171,7 @@ export declare type ParticipantState = 'Idle' | 'Connecting' | 'Ringing' | 'Conn
9264
9171
  * State only version of {@link @azure/communication-calling#PPTLiveCallFeature}. {@link StatefulCallClient} will
9265
9172
  * automatically listen for pptLive on the call and update the state exposed by {@link StatefulCallClient} accordingly.
9266
9173
  *
9267
- * @public
9174
+ * @beta
9268
9175
  */
9269
9176
  export declare interface PPTLiveCallFeatureState {
9270
9177
  /**
@@ -9428,10 +9335,10 @@ export declare interface ReactionButtonStrings {
9428
9335
  likeReactionTooltipContent?: string;
9429
9336
  /** Tooltip content of heart reaction button. */
9430
9337
  heartReactionTooltipContent?: string;
9431
- /** Tooltip content of laugh reaction button. */
9432
- laughReactionTooltipContent?: string;
9433
9338
  /** Tooltip content of clap reaction button. */
9434
9339
  applauseReactionTooltipContent?: string;
9340
+ /** Tooltip content of laugh reaction button. */
9341
+ laughReactionTooltipContent?: string;
9435
9342
  /** Tooltip content of surprised reaction button. */
9436
9343
  surprisedReactionTooltipContent?: string;
9437
9344
  }
@@ -9582,7 +9489,7 @@ export declare interface RemoteParticipantState {
9582
9489
  /**
9583
9490
  * Proxy of {@link @azure/communication-calling#Call.PPTLive.target}.
9584
9491
  *
9585
- * @public
9492
+ * @beta
9586
9493
  */
9587
9494
  contentSharingStream?: HTMLElement;
9588
9495
  /**
@@ -9704,17 +9611,17 @@ export declare interface RichTextSendBoxProps {
9704
9611
  */
9705
9612
  systemMessage?: string;
9706
9613
  /**
9707
- * Optional array of active file uploads where each object has attributes
9708
- * of a file upload like name, progress, errorMessage etc.
9614
+ * Optional array of active attachment uploads where each object has attributes
9615
+ * of a attachment upload like name, progress, errorMessage etc.
9709
9616
  * @beta
9710
9617
  */
9711
- activeFileUploads?: ActiveFileUpload[];
9618
+ activeAttachmentUploads?: AttachmentMetadata[];
9712
9619
  /**
9713
- * Optional callback to remove the file upload before sending by clicking on
9620
+ * Optional callback to remove the attachment upload before sending by clicking on
9714
9621
  * cancel icon.
9715
9622
  * @beta
9716
9623
  */
9717
- onCancelFileUpload?: (fileId: string) => void;
9624
+ onCancelAttachmentUpload?: (fileId: string) => void;
9718
9625
  /**
9719
9626
  * Callback function used when the send button is clicked.
9720
9627
  */
@@ -9951,23 +9858,23 @@ export declare interface SendBoxProps {
9951
9858
  autoFocus?: 'sendBoxTextField';
9952
9859
  /**
9953
9860
  * Optional callback to render uploaded files in the SendBox. The sendBox will expand
9954
- * vertically to accommodate the uploaded files. File uploads will
9861
+ * vertically to accommodate the uploaded files. Attachment uploads will
9955
9862
  * be rendered below the text area in sendBox.
9956
9863
  * @beta
9957
9864
  */
9958
- onRenderFileUploads?: () => JSX.Element;
9865
+ onRenderAttachmentUploads?: () => JSX.Element;
9959
9866
  /**
9960
9867
  * Optional array of active attachment uploads where each object has attributes
9961
9868
  * of a attachment upload like name, progress, errorMessage etc.
9962
9869
  * @beta
9963
9870
  */
9964
- activeFileUploads?: ActiveFileUpload[];
9871
+ activeAttachmentUploads?: AttachmentMetadata[];
9965
9872
  /**
9966
9873
  * Optional callback to remove the attachment upload before sending by clicking on
9967
9874
  * cancel icon.
9968
9875
  * @beta
9969
9876
  */
9970
- onCancelFileUpload?: (fileId: string) => void;
9877
+ onCancelAttachmentUpload?: (fileId: string) => void;
9971
9878
  }
9972
9879
 
9973
9880
  /**
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var index = require('./index-qxnuqL7s.js');
4
+ var index = require('./index-Bj9ORqhl.js');
5
5
  require('@fluentui/react');
6
6
  require('@fluentui/react-components');
7
7
  require('@fluentui-contrib/react-chat');
@@ -51,4 +51,4 @@ const RichTextSendBoxWrapper = () => {
51
51
  };
52
52
 
53
53
  exports.RichTextSendBoxWrapper = RichTextSendBoxWrapper;
54
- //# sourceMappingURL=RichTextSendBoxWrapper-CH6WvEGZ.js.map
54
+ //# sourceMappingURL=RichTextSendBoxWrapper-BTyywbnH.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextSendBoxWrapper-CH6WvEGZ.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) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor) */\nimport { RichTextSendBox } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor) */\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 = (): JSX.Element => {\n const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n return <RichTextSendBox {...richTextSendBoxProps} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACI,MAAM,sBAAsB,GAAG,MAAkB;AACtD,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,KAAC,CAAA,aAAA,CAAAA,qBAAe,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,oBAAoB,EAAI,CAAC;AACvD;;;;"}
1
+ {"version":3,"file":"RichTextSendBoxWrapper-BTyywbnH.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) */\nimport React from 'react';\n/* @conditional-compile-remove(rich-text-editor) */\nimport { usePropsFor } from '../ChatComposite/hooks/usePropsFor';\n/* @conditional-compile-remove(rich-text-editor) */\nimport { RichTextSendBox } from '@internal/react-components';\n\n/* @conditional-compile-remove(rich-text-editor) */\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 = (): JSX.Element => {\n const richTextSendBoxProps = usePropsFor(RichTextSendBox);\n\n return <RichTextSendBox {...richTextSendBoxProps} />;\n};\n"],"names":["usePropsFor","RichTextSendBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AAOA;AACA;;;;;AAKG;AACI,MAAM,sBAAsB,GAAG,MAAkB;AACtD,IAAA,MAAM,oBAAoB,GAAGA,iBAAW,CAACC,qBAAe,CAAC,CAAC;AAE1D,IAAA,OAAO,KAAC,CAAA,aAAA,CAAAA,qBAAe,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,oBAAoB,EAAI,CAAC;AACvD;;;;"}