@azure/communication-react 1.14.1-alpha-202403270012 → 1.14.1-alpha-202403290012
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.
- package/dist/communication-react.d.ts +203 -63
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-Yty3fOoA.js → RichTextSendBoxWrapper-CH6WvEGZ.js} +7 -4
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-Yty3fOoA.js.map → RichTextSendBoxWrapper-CH6WvEGZ.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-BEomNZbT.js → index-qxnuqL7s.js} +1017 -321
- package/dist/dist-cjs/communication-react/index-qxnuqL7s.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +6 -3
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +5 -0
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +2 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +6 -2
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +1 -2
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +1 -1
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/AttachmentCard.d.ts +11 -15
- package/dist/dist-esm/react-components/src/components/AttachmentCard.js +25 -41
- package/dist/dist-esm/react-components/src/components/AttachmentCard.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/AttachmentDownloadCards.d.ts +18 -11
- package/dist/dist-esm/react-components/src/components/AttachmentDownloadCards.js +74 -62
- package/dist/dist-esm/react-components/src/components/AttachmentDownloadCards.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js +37 -4
- package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.d.ts +6 -3
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.d.ts +5 -5
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js +7 -7
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js +13 -18
- package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.d.ts +9 -9
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.d.ts +9 -9
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js +10 -10
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js +12 -10
- package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +2 -2
- package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageStatusIcon.js +1 -1
- package/dist/dist-esm/react-components/src/components/MessageStatusIcon.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +10 -9
- package/dist/dist-esm/react-components/src/components/MessageThread.js +17 -13
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/RichTextRibbonButtons.d.ts +7 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/{RichTextRibbonButtons.js → Buttons/RichTextRibbonButtons.js} +16 -20
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/RichTextRibbonButtons.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTableButton.d.ts +7 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTableButton.js +56 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTableButton.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.d.ts +16 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.js +62 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.d.ts +8 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.js +57 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.d.ts +9 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.js +34 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +23 -11
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +44 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +16 -6
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +2 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js +5 -3
- package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/index.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js +1 -1
- package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.d.ts +25 -1
- package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +132 -2
- package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +10 -2
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js +20 -14
- package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils/RichTextEditorStringsUtils.d.ts +15 -0
- package/dist/dist-esm/react-components/src/components/utils/RichTextEditorStringsUtils.js +39 -0
- package/dist/dist-esm/react-components/src/components/utils/RichTextEditorStringsUtils.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.d.ts +22 -0
- package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js +29 -0
- package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js.map +1 -0
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +13 -1
- package/dist/dist-esm/react-components/src/theming/icons.d.ts +7 -2
- package/dist/dist-esm/react-components/src/theming/icons.js +15 -5
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/Attachment.d.ts +97 -37
- package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +22 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +32 -17
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.d.ts +5 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.d.ts +2 -14
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +14 -10
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +13 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +53 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +196 -57
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +4 -5
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.d.ts +15 -0
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/{FileDownloadErrorBar.js → AttachmentDownloadErrorBar.js} +5 -5
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +4 -5
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +10 -7
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +6 -0
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +22 -0
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +11 -2
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +7 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +2 -1
- package/package.json +2 -1
- package/dist/dist-cjs/communication-react/index-BEomNZbT.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextRibbonButtons.d.ts +0 -12
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextRibbonButtons.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +0 -15
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +0 -1
@@ -30,6 +30,7 @@ import { CallClientOptions } from '@azure/communication-calling';
|
|
30
30
|
import { CallDirection } from '@azure/communication-calling';
|
31
31
|
import { CallEndReason } from '@azure/communication-calling';
|
32
32
|
import { CallerInfo } from '@azure/communication-calling';
|
33
|
+
import { CallInfo } from '@azure/communication-calling';
|
33
34
|
import { CallKind } from '@azure/communication-calling';
|
34
35
|
import { CallState as CallState_2 } from '@azure/communication-calling';
|
35
36
|
import { CallSurvey } from '@azure/communication-calling';
|
@@ -102,6 +103,8 @@ import { StartCallOptions } from '@azure/communication-calling';
|
|
102
103
|
import { StartCaptionsOptions } from '@azure/communication-calling';
|
103
104
|
import { TeamsCall } from '@azure/communication-calling';
|
104
105
|
import { TeamsCallAgent } from '@azure/communication-calling';
|
106
|
+
import { TeamsCallInfo } from '@azure/communication-calling';
|
107
|
+
import { TeamsMeetingIdLocator } from '@azure/communication-calling';
|
105
108
|
import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
|
106
109
|
import { Theme } from '@fluentui/react';
|
107
110
|
import { TransferEventArgs } from '@azure/communication-calling';
|
@@ -245,6 +248,27 @@ export declare type AreParamEqual<A extends (props: any) => JSX.Element | undefi
|
|
245
248
|
*/
|
246
249
|
export declare type AreTypeEqual<A, B> = A extends B ? (B extends A ? true : false) : false;
|
247
250
|
|
251
|
+
/**
|
252
|
+
* @beta
|
253
|
+
*
|
254
|
+
* Attachment download options defines the list of actions that can be performed on an attachment.
|
255
|
+
*/
|
256
|
+
export declare interface AttachmentDownloadOptions {
|
257
|
+
actionsForAttachment: (attachment: AttachmentMetadata, message?: ChatMessage) => AttachmentMenuAction[];
|
258
|
+
}
|
259
|
+
|
260
|
+
/**
|
261
|
+
* @beta
|
262
|
+
*
|
263
|
+
* Attachment menu action defines buttons that can be shown on the attachment card.
|
264
|
+
* If there's one action, it will be shown as a button, if there are multiple actions, it will be shown as a dropdown.
|
265
|
+
*/
|
266
|
+
export declare interface AttachmentMenuAction {
|
267
|
+
name: string;
|
268
|
+
icon: JSX.Element;
|
269
|
+
onClick: (attachment: AttachmentMetadata) => Promise<void>;
|
270
|
+
}
|
271
|
+
|
248
272
|
/**
|
249
273
|
* Metadata containing basic information about the uploaded attachment.
|
250
274
|
*
|
@@ -256,7 +280,7 @@ export declare interface AttachmentMetadata {
|
|
256
280
|
* An unknown or empty extension will be rendered as a generic icon.
|
257
281
|
* Example: `pdf`
|
258
282
|
*/
|
259
|
-
extension
|
283
|
+
extension?: string;
|
260
284
|
/**
|
261
285
|
* Unique ID of the attachment.
|
262
286
|
*/
|
@@ -268,8 +292,101 @@ export declare interface AttachmentMetadata {
|
|
268
292
|
/**
|
269
293
|
* Download URL for the attachment.
|
270
294
|
*/
|
271
|
-
url
|
272
|
-
|
295
|
+
url?: string;
|
296
|
+
/**
|
297
|
+
* A number between 0 and 1 indicating the progress of the upload.
|
298
|
+
*/
|
299
|
+
progress?: number;
|
300
|
+
/**
|
301
|
+
* A object contains status message would be shown to the user.
|
302
|
+
*/
|
303
|
+
uploadStatus?: AttachmentUploadStatus;
|
304
|
+
}
|
305
|
+
|
306
|
+
/**
|
307
|
+
* @beta
|
308
|
+
*
|
309
|
+
* Attachment Options that defines behaviour for uploading and downloading attachments.
|
310
|
+
*/
|
311
|
+
export declare interface AttachmentOptions {
|
312
|
+
uploadOptions?: AttachmentUploadOptions;
|
313
|
+
downloadOptions?: AttachmentDownloadOptions;
|
314
|
+
}
|
315
|
+
|
316
|
+
/**
|
317
|
+
* @beta
|
318
|
+
* A callback function for handling file uploads.
|
319
|
+
*
|
320
|
+
* @param AttachmentUploads - The list of uploaded files. Each file is represented by an {@link AttachmentUpload} object.
|
321
|
+
*/
|
322
|
+
export declare type AttachmentUploadHandler = (attachmentUploads: AttachmentUploadManager[]) => void;
|
323
|
+
|
324
|
+
/**
|
325
|
+
* A wrapper object for a file that is being uploaded.
|
326
|
+
* Allows managing file uploads by providing common functions for updating the
|
327
|
+
* upload progress, canceling an upload, completing an upload etc.
|
328
|
+
* @beta
|
329
|
+
*/
|
330
|
+
export declare interface AttachmentUploadManager {
|
331
|
+
/**
|
332
|
+
* Unique identifier for the file upload.
|
333
|
+
*/
|
334
|
+
id: string;
|
335
|
+
/**
|
336
|
+
* HTML {@link File} object for the uploaded file.
|
337
|
+
*/
|
338
|
+
file?: File;
|
339
|
+
/**
|
340
|
+
* Update the progress of the upload.
|
341
|
+
* @param value - number between 0 and 1
|
342
|
+
*/
|
343
|
+
notifyUploadProgressChanged: (value: number) => void;
|
344
|
+
/**
|
345
|
+
* Mark the upload as complete.
|
346
|
+
* Requires the `metadata` param containing uploaded file information.
|
347
|
+
* @param metadata - {@link AttachmentMetadata}
|
348
|
+
*/
|
349
|
+
notifyUploadCompleted: (metadata: AttachmentMetadata) => void;
|
350
|
+
/**
|
351
|
+
* Mark the upload as failed.
|
352
|
+
* @param message - An error message that can be displayed to the user.
|
353
|
+
*/
|
354
|
+
notifyUploadFailed: (message: string) => void;
|
355
|
+
}
|
356
|
+
|
357
|
+
/**
|
358
|
+
* @beta
|
359
|
+
*/
|
360
|
+
export declare interface AttachmentUploadOptions {
|
361
|
+
/**
|
362
|
+
* A string containing the comma separated list of accepted file types.
|
363
|
+
* Similar to the `accept` attribute of the `<input type="file" />` element.
|
364
|
+
* Accepts any type of file if not specified.
|
365
|
+
* @beta
|
366
|
+
*/
|
367
|
+
supportedMediaTypes?: string[];
|
368
|
+
/**
|
369
|
+
* Allows multiple files to be selected if set to `true`.
|
370
|
+
* Similar to the `multiple` attribute of the `<input type="file" />` element.
|
371
|
+
* @defaultValue false
|
372
|
+
* @beta
|
373
|
+
*/
|
374
|
+
disableMultipleUploads?: boolean;
|
375
|
+
/**
|
376
|
+
* A function of type {@link AttachmentUploadHandler} for handling file uploads.
|
377
|
+
* @beta
|
378
|
+
*/
|
379
|
+
handler: AttachmentUploadHandler;
|
380
|
+
}
|
381
|
+
|
382
|
+
/**
|
383
|
+
* @beta
|
384
|
+
* A attachment upload status object that contains message to be shown to
|
385
|
+
* the user and a timestamp.
|
386
|
+
*/
|
387
|
+
export declare interface AttachmentUploadStatus {
|
388
|
+
message: string;
|
389
|
+
timestamp: number;
|
273
390
|
}
|
274
391
|
|
275
392
|
/**
|
@@ -355,7 +472,7 @@ export declare type AzureCommunicationCallWithChatAdapterArgs = {
|
|
355
472
|
userId: CommunicationUserIdentifier;
|
356
473
|
displayName: string;
|
357
474
|
credential: CommunicationTokenCredential;
|
358
|
-
locator: CallAndChatLocator | TeamsMeetingLinkLocator;
|
475
|
+
locator: CallAndChatLocator | TeamsMeetingLinkLocator | /** @conditional-compile-remove(meeting-id) */ TeamsMeetingIdLocator;
|
359
476
|
alternateCallerId?: string;
|
360
477
|
callAdapterOptions?: AzureCommunicationCallAdapterOptions;
|
361
478
|
};
|
@@ -1090,7 +1207,7 @@ export declare interface CallAdapterDeviceManagement {
|
|
1090
1207
|
*
|
1091
1208
|
* @public
|
1092
1209
|
*/
|
1093
|
-
export declare type CallAdapterLocator = TeamsMeetingLinkLocator | GroupCallLocator | RoomCallLocator | /* @conditional-compile-remove(teams-adhoc-call) */ /* @conditional-compile-remove(PSTN-calls) */ CallParticipantsLocator;
|
1210
|
+
export declare type CallAdapterLocator = TeamsMeetingLinkLocator | GroupCallLocator | RoomCallLocator | /* @conditional-compile-remove(teams-adhoc-call) */ /* @conditional-compile-remove(PSTN-calls) */ CallParticipantsLocator | /* @conditional-compile-remove(meeting-id) */ TeamsMeetingIdLocator;
|
1094
1211
|
|
1095
1212
|
/**
|
1096
1213
|
* {@link CommonCallAdapter} state.
|
@@ -2466,6 +2583,10 @@ export declare interface CallCompositeStrings {
|
|
2466
2583
|
* Tooltip for button to exit spotlight
|
2467
2584
|
*/
|
2468
2585
|
exitSpotlightButtonTooltip: string;
|
2586
|
+
/**
|
2587
|
+
* Error message when the meeting identifier or passcode is invalid
|
2588
|
+
*/
|
2589
|
+
invalidMeetingIdentifier: string;
|
2469
2590
|
}
|
2470
2591
|
|
2471
2592
|
/**
|
@@ -2854,6 +2975,10 @@ export declare interface CallState {
|
|
2854
2975
|
* Proxy of {@link @azure/communication-calling#SpotlightCallFeature}.
|
2855
2976
|
*/
|
2856
2977
|
spotlight?: SpotlightCallFeatureState;
|
2978
|
+
/**
|
2979
|
+
* Proxy of {@link @azure/communication-calling#Call.info}.
|
2980
|
+
*/
|
2981
|
+
info?: CallInfo | TeamsCallInfo;
|
2857
2982
|
}
|
2858
2983
|
|
2859
2984
|
/**
|
@@ -6215,8 +6340,9 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
6215
6340
|
RaiseHandContextualMenuItem: React_2.JSX.Element;
|
6216
6341
|
LowerHandContextualMenuItem: React_2.JSX.Element;
|
6217
6342
|
ReactionButtonIcon: React_2.JSX.Element;
|
6218
|
-
|
6219
|
-
|
6343
|
+
CancelAttachmentUpload: React_2.JSX.Element;
|
6344
|
+
DownloadAttachment: React_2.JSX.Element;
|
6345
|
+
OpenAttachment: React_2.JSX.Element;
|
6220
6346
|
DataLossPreventionProhibited: React_2.JSX.Element;
|
6221
6347
|
EditBoxCancel: React_2.JSX.Element;
|
6222
6348
|
EditBoxSubmit: React_2.JSX.Element;
|
@@ -6302,6 +6428,10 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
6302
6428
|
RichTextDividerIcon: React_2.JSX.Element;
|
6303
6429
|
RichTextEditorButtonIcon: React_2.JSX.Element;
|
6304
6430
|
RichTextEditorButtonIconFilled: React_2.JSX.Element;
|
6431
|
+
RichTextInsertTableRegularIcon: React_2.JSX.Element;
|
6432
|
+
RichTextInsertTableFilledIcon: React_2.JSX.Element;
|
6433
|
+
RichTextTableInsertMenuIcon: React_2.JSX.Element;
|
6434
|
+
RichTextTableDeleteMenuIcon: React_2.JSX.Element;
|
6305
6435
|
};
|
6306
6436
|
|
6307
6437
|
/**
|
@@ -6408,8 +6538,9 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
6408
6538
|
MoreDrawerSpeakers?: JSX.Element | undefined;
|
6409
6539
|
ChatMessageOptions: React_2.JSX.Element;
|
6410
6540
|
ControlButtonParticipantsContextualMenuItem: React_2.JSX.Element;
|
6411
|
-
|
6412
|
-
|
6541
|
+
CancelAttachmentUpload: React_2.JSX.Element;
|
6542
|
+
DownloadAttachment: React_2.JSX.Element;
|
6543
|
+
OpenAttachment: React_2.JSX.Element;
|
6413
6544
|
DataLossPreventionProhibited: React_2.JSX.Element;
|
6414
6545
|
ErrorBarCallVideoRecoveredBySystem: React_2.JSX.Element;
|
6415
6546
|
ErrorBarCallVideoStoppedBySystem: React_2.JSX.Element;
|
@@ -6463,6 +6594,10 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
6463
6594
|
RichTextDividerIcon: React_2.JSX.Element;
|
6464
6595
|
RichTextEditorButtonIcon: React_2.JSX.Element;
|
6465
6596
|
RichTextEditorButtonIconFilled: React_2.JSX.Element;
|
6597
|
+
RichTextInsertTableRegularIcon: React_2.JSX.Element;
|
6598
|
+
RichTextInsertTableFilledIcon: React_2.JSX.Element;
|
6599
|
+
RichTextTableInsertMenuIcon: React_2.JSX.Element;
|
6600
|
+
RichTextTableDeleteMenuIcon: React_2.JSX.Element;
|
6466
6601
|
};
|
6467
6602
|
|
6468
6603
|
/**
|
@@ -6767,6 +6902,10 @@ export declare interface DialpadProps {
|
|
6767
6902
|
* and can be edited to change the number being dialed.
|
6768
6903
|
*/
|
6769
6904
|
dialpadMode?: DialpadMode;
|
6905
|
+
/**
|
6906
|
+
* Audio context for generating DTMF tones. If this if not provided the dialpad will create one iteslf.
|
6907
|
+
*/
|
6908
|
+
dtmfAudioContext?: AudioContext;
|
6770
6909
|
}
|
6771
6910
|
|
6772
6911
|
/**
|
@@ -7078,48 +7217,6 @@ export declare interface ErrorBarStrings {
|
|
7078
7217
|
*/
|
7079
7218
|
export declare type ErrorType = keyof ErrorBarStrings;
|
7080
7219
|
|
7081
|
-
/**
|
7082
|
-
* @beta
|
7083
|
-
* A attachment download error returned via a {@link FileDownloadHandler}.
|
7084
|
-
* This error message is used to render an error message in the UI.
|
7085
|
-
*/
|
7086
|
-
export declare interface FileDownloadError {
|
7087
|
-
/** The error message to display in the UI */
|
7088
|
-
errorMessage: string;
|
7089
|
-
}
|
7090
|
-
|
7091
|
-
/**
|
7092
|
-
* @beta
|
7093
|
-
*
|
7094
|
-
* A callback function for handling attachment downloads.
|
7095
|
-
* The function needs to return a promise that resolves to a attachment download URL.
|
7096
|
-
* If the promise is rejected, the {@link Error.message} will be used to display an error message to the user.
|
7097
|
-
*
|
7098
|
-
* @example
|
7099
|
-
* ```ts
|
7100
|
-
* const attachmentDownloadHandler: FileDownloadHandler = async (userId, attachmentData) => {
|
7101
|
-
* if (isUnauthorizedUser(userId)) {
|
7102
|
-
* return { errorMessage: 'You don’t have permission to download this attachment.' };
|
7103
|
-
* } else {
|
7104
|
-
* return new URL(attachmentData.url);
|
7105
|
-
* }
|
7106
|
-
* }
|
7107
|
-
*
|
7108
|
-
* const App = () => (
|
7109
|
-
* <ChatComposite
|
7110
|
-
* ...
|
7111
|
-
* fileSharing={{
|
7112
|
-
* fileDownloadHandler: fileDownloadHandler
|
7113
|
-
* }}
|
7114
|
-
* />
|
7115
|
-
* )
|
7116
|
-
*
|
7117
|
-
* ```
|
7118
|
-
* @param userId - The user ID of the user downloading the attachment.
|
7119
|
-
* @param fileMetadata - The {@link AttachmentMetadata} containing file `url`, `extension` and `name`.
|
7120
|
-
*/
|
7121
|
-
export declare type FileDownloadHandler = (userId: string, fileMetadata: AttachmentMetadata) => Promise<URL | FileDownloadError>;
|
7122
|
-
|
7123
7220
|
/**
|
7124
7221
|
* Properties for configuring the File Sharing feature.
|
7125
7222
|
* @beta
|
@@ -7145,11 +7242,9 @@ export declare interface FileSharingOptions {
|
|
7145
7242
|
*/
|
7146
7243
|
uploadHandler: FileUploadHandler;
|
7147
7244
|
/**
|
7148
|
-
* A function
|
7149
|
-
* If the function is not specified, the file's `url` will be opened in a new tab to
|
7150
|
-
* initiate the download.
|
7245
|
+
* A temp function until this interface is deprecated
|
7151
7246
|
*/
|
7152
|
-
|
7247
|
+
actionsForAttachment?: (attachment: AttachmentMetadata, message?: ChatMessage) => AttachmentMenuAction[];
|
7153
7248
|
}
|
7154
7249
|
|
7155
7250
|
/**
|
@@ -8284,10 +8379,10 @@ export declare type MessageThreadProps = {
|
|
8284
8379
|
*/
|
8285
8380
|
onRenderMessage?: (messageProps: MessageProps, messageRenderer?: MessageRenderer) => JSX.Element;
|
8286
8381
|
/**
|
8287
|
-
* Optional callback to render
|
8382
|
+
* Optional callback to render attachments in the message component.
|
8288
8383
|
* @beta
|
8289
8384
|
*/
|
8290
|
-
|
8385
|
+
onRenderAttachmentDownloads?: (userId: string, message: ChatMessage) => JSX.Element;
|
8291
8386
|
/**
|
8292
8387
|
* Optional callback to edit a message.
|
8293
8388
|
*
|
@@ -8331,11 +8426,10 @@ export declare type MessageThreadProps = {
|
|
8331
8426
|
strings?: Partial<MessageThreadStrings>;
|
8332
8427
|
/**
|
8333
8428
|
* @beta
|
8334
|
-
* Optional
|
8335
|
-
*
|
8336
|
-
* this function will be called with the data inside `fileSharingMetadata` key.
|
8429
|
+
* Optional attachment options, which defines behvaiour for uploading and downloading attachments.
|
8430
|
+
* As this moment, the uploadOptions would be ignored and this option is intended for download only.
|
8337
8431
|
*/
|
8338
|
-
|
8432
|
+
attachmentOptions?: AttachmentOptions;
|
8339
8433
|
/**
|
8340
8434
|
* Optional function to provide customized date format.
|
8341
8435
|
* @beta
|
@@ -8424,13 +8518,15 @@ export declare interface MessageThreadStrings {
|
|
8424
8518
|
actionMenuMoreOptions?: string;
|
8425
8519
|
/** Aria label to announce when a message is deleted */
|
8426
8520
|
messageDeletedAnnouncementAriaLabel: string;
|
8427
|
-
/** String for download
|
8521
|
+
/** String for download attachment button in attachment card */
|
8428
8522
|
downloadAttachment: string;
|
8523
|
+
/** String for open attachment button in attachment card */
|
8524
|
+
openAttachment: string;
|
8429
8525
|
/** String for policy violation message removal */
|
8430
8526
|
blockedWarningText: string;
|
8431
8527
|
/** String for policy violation message removal details link */
|
8432
8528
|
blockedWarningLinkText: string;
|
8433
|
-
/** String for aria text in
|
8529
|
+
/** String for aria text in attachment card group*/
|
8434
8530
|
attachmentCardGroupMessage: string;
|
8435
8531
|
}
|
8436
8532
|
|
@@ -9659,10 +9755,54 @@ export declare interface RichTextSendBoxStrings extends SendBoxStrings {
|
|
9659
9755
|
* Tooltip text for the decrease indent button.
|
9660
9756
|
*/
|
9661
9757
|
decreaseIndentTooltip: string;
|
9758
|
+
/**
|
9759
|
+
* Tooltip text insert table button.
|
9760
|
+
*/
|
9761
|
+
insertTableTooltip: string;
|
9662
9762
|
/**
|
9663
9763
|
* Tooltip text for the rich text format button button.
|
9664
9764
|
*/
|
9665
9765
|
richTextFormatButtonTooltip: string;
|
9766
|
+
/**
|
9767
|
+
* Text for the insert menu item.
|
9768
|
+
*/
|
9769
|
+
insertRowOrColumnMenu: string;
|
9770
|
+
/**
|
9771
|
+
* Title for the insert table menu.
|
9772
|
+
*/
|
9773
|
+
insertTableMenuTitle: string;
|
9774
|
+
/**
|
9775
|
+
* Text for the insert menu item to insert row above the current selection.
|
9776
|
+
*/
|
9777
|
+
insertRowAboveMenu: string;
|
9778
|
+
/**
|
9779
|
+
* Text for the insert menu item to insert row below the current selection.
|
9780
|
+
*/
|
9781
|
+
insertRowBelowMenu: string;
|
9782
|
+
/**
|
9783
|
+
* Text for the insert menu item to insert column to the left from the current selection.
|
9784
|
+
*/
|
9785
|
+
insertColumnLeftMenu: string;
|
9786
|
+
/**
|
9787
|
+
* Text for the insert menu item to insert column to the right from the current selection.
|
9788
|
+
*/
|
9789
|
+
insertColumnRightMenu: string;
|
9790
|
+
/**
|
9791
|
+
* Text for the delete row or column menu.
|
9792
|
+
*/
|
9793
|
+
deleteRowOrColumnMenu: string;
|
9794
|
+
/**
|
9795
|
+
* Text for the delete column menu.
|
9796
|
+
*/
|
9797
|
+
deleteColumnMenu: string;
|
9798
|
+
/**
|
9799
|
+
* Text for the delete row menu.
|
9800
|
+
*/
|
9801
|
+
deleteRowMenu: string;
|
9802
|
+
/**
|
9803
|
+
* Text for the delete table menu.
|
9804
|
+
*/
|
9805
|
+
deleteTableMenu: string;
|
9666
9806
|
}
|
9667
9807
|
|
9668
9808
|
/**
|
@@ -1,11 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
var React = require('react');
|
4
|
-
var index = require('./index-
|
4
|
+
var index = require('./index-qxnuqL7s.js');
|
5
5
|
require('@fluentui/react');
|
6
6
|
require('@fluentui/react-components');
|
7
|
-
require('@fluentui/react-file-type-icons');
|
8
|
-
require('@fluentui/react-icons');
|
9
7
|
require('@fluentui-contrib/react-chat');
|
10
8
|
require('@azure/communication-common');
|
11
9
|
require('@fluentui/react-hooks');
|
@@ -17,12 +15,17 @@ require('memoize-one');
|
|
17
15
|
require('@azure/logger');
|
18
16
|
require('events');
|
19
17
|
require('immer');
|
18
|
+
require('@fluentui/react-icons');
|
20
19
|
require('textarea-caret-ts');
|
21
20
|
require('use-debounce');
|
21
|
+
require('@fluentui/react-file-type-icons');
|
22
22
|
require('@griffel/react');
|
23
23
|
require('roosterjs-editor-plugins');
|
24
24
|
require('roosterjs-editor-core');
|
25
25
|
require('roosterjs-react');
|
26
|
+
require('roosterjs-editor-dom');
|
27
|
+
require('roosterjs-editor-types-compatible');
|
28
|
+
require('roosterjs-editor-api');
|
26
29
|
require('uuid');
|
27
30
|
require('html-react-parser');
|
28
31
|
require('react-linkify');
|
@@ -48,4 +51,4 @@ const RichTextSendBoxWrapper = () => {
|
|
48
51
|
};
|
49
52
|
|
50
53
|
exports.RichTextSendBoxWrapper = RichTextSendBoxWrapper;
|
51
|
-
//# sourceMappingURL=RichTextSendBoxWrapper-
|
54
|
+
//# sourceMappingURL=RichTextSendBoxWrapper-CH6WvEGZ.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RichTextSendBoxWrapper-
|
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;;;;"}
|