@azure/communication-react 1.11.1-alpha-202312210012 → 1.11.1-alpha-202312220012
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 +31 -24
- package/dist/dist-cjs/communication-react/index.js +131 -229
- 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 +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +1 -1
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +34 -38
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +0 -1
- package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +2 -2
- package/dist/dist-esm/communication-react/src/index.js +0 -1
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +1 -7
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +25 -8
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +15 -31
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.d.ts +2 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +1 -14
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/FluentChatMessageComponentWrapper.js +2 -17
- package/dist/dist-esm/react-components/src/components/ChatMessage/FluentChatMessageComponentWrapper.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +12 -6
- package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +9 -13
- package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ImageGallery.d.ts +4 -4
- package/dist/dist-esm/react-components/src/components/ImageGallery.js +3 -14
- package/dist/dist-esm/react-components/src/components/ImageGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/MessageThread.js +4 -18
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/index.js +0 -1
- package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js +19 -25
- package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/theming/themes.d.ts +9 -9
- package/dist/dist-esm/react-components/src/theming/themes.js +10 -12
- package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +3 -2
- package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +2 -8
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +1 -16
- 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 +2 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +8 -17
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUpload.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUpload.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUpload.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
- package/package.json +1 -1
@@ -241,18 +241,24 @@ export declare type AreTypeEqual<A, B> = A extends B ? (B extends A ? true : fal
|
|
241
241
|
|
242
242
|
/**
|
243
243
|
* Metadata of the attachment object returned by the ACS SDK.
|
244
|
-
* @
|
244
|
+
* @public
|
245
245
|
*/
|
246
246
|
export declare interface AttachmentDownloadResult {
|
247
|
+
/**
|
248
|
+
* Unique ID of the attachment.
|
249
|
+
*/
|
247
250
|
attachmentId: string;
|
251
|
+
/**
|
252
|
+
* Blob URL for the attachment.
|
253
|
+
*/
|
248
254
|
blobUrl: string;
|
249
255
|
}
|
250
256
|
|
251
257
|
/**
|
252
258
|
* Metadata containing information about the uploaded file.
|
253
|
-
* @
|
259
|
+
* @public
|
254
260
|
*/
|
255
|
-
export declare type AttachmentMetadata =
|
261
|
+
export declare type AttachmentMetadata = InlineImageMetadata | /* @conditional-compile-remove(file-sharing) */ FileMetadata;
|
256
262
|
|
257
263
|
/**
|
258
264
|
* Custom data attributes for displaying avatar for a user.
|
@@ -372,7 +378,8 @@ export declare type AzureCommunicationChatAdapterArgs = {
|
|
372
378
|
|
373
379
|
/**
|
374
380
|
* Configuration options to include when creating AzureCommunicationChatAdapter.
|
375
|
-
*
|
381
|
+
*
|
382
|
+
* @public
|
376
383
|
*/
|
377
384
|
export declare type AzureCommunicationChatAdapterOptions = {
|
378
385
|
credential?: CommunicationTokenCredential;
|
@@ -2392,7 +2399,7 @@ export declare type CallErrors = {
|
|
2392
2399
|
*
|
2393
2400
|
* @public
|
2394
2401
|
*/
|
2395
|
-
export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admit' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.rejectParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admitAll' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteAllRemoteParticipants' |
|
2402
|
+
export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admit' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.rejectParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admitAll' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteAllRemoteParticipants' | 'Call.setConstraints';
|
2396
2403
|
|
2397
2404
|
/**
|
2398
2405
|
* Callback for {@link CallAdapterSubscribers} 'callIdChanged' event.
|
@@ -4222,9 +4229,9 @@ export declare type ChatAdapterUiState = {
|
|
4222
4229
|
|
4223
4230
|
/**
|
4224
4231
|
* Represents the type of attachment
|
4225
|
-
* @
|
4232
|
+
* @public
|
4226
4233
|
*/
|
4227
|
-
export declare type ChatAttachmentType = '
|
4234
|
+
export declare type ChatAttachmentType = 'inlineImage' | /* @conditional-compile-remove(file-sharing) */ 'file' | 'unknown';
|
4228
4235
|
|
4229
4236
|
/**
|
4230
4237
|
* Common props for selectors for {@link ChatClientState}.
|
@@ -4517,7 +4524,7 @@ export declare interface ChatMessage extends MessageCommon {
|
|
4517
4524
|
*/
|
4518
4525
|
files?: FileMetadata[];
|
4519
4526
|
/**
|
4520
|
-
* @
|
4527
|
+
* @public
|
4521
4528
|
* A list of inline images embedded in the message.
|
4522
4529
|
* {@link InlineImageMetadata}
|
4523
4530
|
*/
|
@@ -4558,20 +4565,20 @@ export declare type ChatReturnProps<Component extends (props: any) => JSX.Elemen
|
|
4558
4565
|
/**
|
4559
4566
|
* Custom Fluent theme palette used by chat related components in this library.
|
4560
4567
|
*
|
4561
|
-
* @
|
4568
|
+
* @public
|
4562
4569
|
*/
|
4563
4570
|
export declare interface ChatTheme {
|
4564
4571
|
/**
|
4565
4572
|
* Custom Fluent theme palette used by chat related components in this library.
|
4566
4573
|
*
|
4567
|
-
* @
|
4574
|
+
* @public
|
4568
4575
|
*/
|
4569
4576
|
chatPalette: {
|
4570
|
-
|
4571
|
-
|
4572
|
-
|
4573
|
-
|
4574
|
-
|
4577
|
+
imageGalleryOverlayBlack: string;
|
4578
|
+
imageGalleryTitleWhite: string;
|
4579
|
+
imageGalleryDefaultButtonBackground: string;
|
4580
|
+
imageGalleryButtonBackgroundHover: string;
|
4581
|
+
imageGalleryButtonBackgroundActive: string;
|
4575
4582
|
};
|
4576
4583
|
}
|
4577
4584
|
|
@@ -5869,7 +5876,7 @@ export declare interface CustomMessage extends MessageCommon {
|
|
5869
5876
|
*
|
5870
5877
|
* @public
|
5871
5878
|
*/
|
5872
|
-
export declare const darkTheme: PartialTheme & CallingTheme &
|
5879
|
+
export declare const darkTheme: PartialTheme & CallingTheme & ChatTheme;
|
5873
5880
|
|
5874
5881
|
/**
|
5875
5882
|
* @beta
|
@@ -7149,14 +7156,14 @@ export declare interface _Identifiers {
|
|
7149
7156
|
/**
|
7150
7157
|
* Component to render a fullscreen modal for a selected image.
|
7151
7158
|
*
|
7152
|
-
* @
|
7159
|
+
* @public
|
7153
7160
|
*/
|
7154
7161
|
export declare const ImageGallery: (props: ImageGalleryProps) => JSX.Element;
|
7155
7162
|
|
7156
7163
|
/**
|
7157
7164
|
* Props for {@link ImageGallery}.
|
7158
7165
|
*
|
7159
|
-
* @
|
7166
|
+
* @public
|
7160
7167
|
*/
|
7161
7168
|
export declare interface ImageGalleryImageProps {
|
7162
7169
|
/** Image Url used to display the image in a large scale. */
|
@@ -7174,7 +7181,7 @@ export declare interface ImageGalleryImageProps {
|
|
7174
7181
|
/**
|
7175
7182
|
* Props for {@link ImageGallery}.
|
7176
7183
|
*
|
7177
|
-
* @
|
7184
|
+
* @public
|
7178
7185
|
*/
|
7179
7186
|
export declare interface ImageGalleryProps {
|
7180
7187
|
/**
|
@@ -7206,7 +7213,7 @@ export declare interface ImageGalleryProps {
|
|
7206
7213
|
/**
|
7207
7214
|
* Strings of {@link ImageGallery} that can be overridden.
|
7208
7215
|
*
|
7209
|
-
* @
|
7216
|
+
* @public
|
7210
7217
|
*/
|
7211
7218
|
export declare interface ImageGalleryStrings {
|
7212
7219
|
/**
|
@@ -7268,7 +7275,7 @@ export declare interface IncomingCallState {
|
|
7268
7275
|
/**
|
7269
7276
|
* Metadata for rendering images inline with a message.
|
7270
7277
|
* This does not include images attached as files.
|
7271
|
-
* @
|
7278
|
+
* @public
|
7272
7279
|
*/
|
7273
7280
|
export declare interface InlineImageMetadata {
|
7274
7281
|
attachmentType: 'inlineImage';
|
@@ -7381,7 +7388,7 @@ export declare interface JumpToNewMessageButtonProps {
|
|
7381
7388
|
*
|
7382
7389
|
* @public
|
7383
7390
|
*/
|
7384
|
-
export declare const lightTheme: PartialTheme & CallingTheme &
|
7391
|
+
export declare const lightTheme: PartialTheme & CallingTheme & ChatTheme;
|
7385
7392
|
|
7386
7393
|
/**
|
7387
7394
|
* Whether the stream is loading or not.
|
@@ -7896,7 +7903,7 @@ export declare type MessageThreadProps = {
|
|
7896
7903
|
/**
|
7897
7904
|
* Optional callback to retrieve the inline image in a message.
|
7898
7905
|
* @param attachment - AttachmentMetadata object we want to render
|
7899
|
-
* @
|
7906
|
+
* @public
|
7900
7907
|
*/
|
7901
7908
|
onFetchAttachments?: (attachments: AttachmentMetadata[]) => Promise<AttachmentDownloadResult[]>;
|
7902
7909
|
/**
|
@@ -7959,7 +7966,7 @@ export declare type MessageThreadProps = {
|
|
7959
7966
|
mentionOptions?: MentionOptions;
|
7960
7967
|
/**
|
7961
7968
|
* Optional callback called when an inline image is clicked.
|
7962
|
-
* @
|
7969
|
+
* @public
|
7963
7970
|
*/
|
7964
7971
|
onInlineImageClicked?: (attachmentId: string, messageId: string) => Promise<void>;
|
7965
7972
|
};
|