@azure/communication-react 1.11.1-alpha-202401160013 → 1.11.1-alpha-202401170012
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 +23 -24
- package/dist/dist-cjs/communication-react/index.js +235 -106
- 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/chat-component-bindings/src/messageThreadSelector.js +17 -3
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +1 -0
- package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +2 -1
- package/dist/dist-esm/communication-react/src/index.js +1 -0
- 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 +7 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.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 +34 -11
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -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 +17 -2
- 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 +17 -2
- 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 +6 -6
- package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +8 -5
- 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 +14 -3
- 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 +15 -3
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/index.js +1 -0
- 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 +25 -19
- 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/localization/locales/ar-SA/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +5 -0
- package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +5 -0
- package/dist/dist-esm/react-components/src/theming/themes.d.ts +9 -9
- package/dist/dist-esm/react-components/src/theming/themes.js +12 -10
- package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -1
- 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 +8 -2
- 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 +1 -0
- 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 +16 -1
- 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 +1 -2
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +16 -5
- 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 +1 -2
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +64 -2
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +62 -0
- package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +62 -0
- package/package.json +1 -1
@@ -244,7 +244,7 @@ export declare type AreTypeEqual<A, B> = A extends B ? (B extends A ? true : fal
|
|
244
244
|
|
245
245
|
/**
|
246
246
|
* Metadata of the attachment object returned by the ACS SDK.
|
247
|
-
* @
|
247
|
+
* @beta
|
248
248
|
*/
|
249
249
|
export declare interface AttachmentDownloadResult {
|
250
250
|
/**
|
@@ -259,9 +259,9 @@ export declare interface AttachmentDownloadResult {
|
|
259
259
|
|
260
260
|
/**
|
261
261
|
* Metadata containing information about the uploaded file.
|
262
|
-
* @
|
262
|
+
* @beta
|
263
263
|
*/
|
264
|
-
export declare type AttachmentMetadata =
|
264
|
+
export declare type AttachmentMetadata = FileMetadata | /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */ InlineImageMetadata;
|
265
265
|
|
266
266
|
/**
|
267
267
|
* Custom data attributes for displaying avatar for a user.
|
@@ -381,8 +381,7 @@ export declare type AzureCommunicationChatAdapterArgs = {
|
|
381
381
|
|
382
382
|
/**
|
383
383
|
* Configuration options to include when creating AzureCommunicationChatAdapter.
|
384
|
-
*
|
385
|
-
* @public
|
384
|
+
* @beta
|
386
385
|
*/
|
387
386
|
export declare type AzureCommunicationChatAdapterOptions = {
|
388
387
|
credential?: CommunicationTokenCredential;
|
@@ -4316,9 +4315,9 @@ export declare type ChatAdapterUiState = {
|
|
4316
4315
|
|
4317
4316
|
/**
|
4318
4317
|
* Represents the type of attachment
|
4319
|
-
* @
|
4318
|
+
* @beta
|
4320
4319
|
*/
|
4321
|
-
export declare type ChatAttachmentType = '
|
4320
|
+
export declare type ChatAttachmentType = 'unknown' | /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */ 'inlineImage' | /* @conditional-compile-remove(file-sharing) */ 'file';
|
4322
4321
|
|
4323
4322
|
/**
|
4324
4323
|
* Common props for selectors for {@link ChatClientState}.
|
@@ -4611,7 +4610,7 @@ export declare interface ChatMessage extends MessageCommon {
|
|
4611
4610
|
*/
|
4612
4611
|
files?: FileMetadata[];
|
4613
4612
|
/**
|
4614
|
-
* @
|
4613
|
+
* @beta
|
4615
4614
|
* A list of inline images embedded in the message.
|
4616
4615
|
* {@link InlineImageMetadata}
|
4617
4616
|
*/
|
@@ -4652,20 +4651,20 @@ export declare type ChatReturnProps<Component extends (props: any) => JSX.Elemen
|
|
4652
4651
|
/**
|
4653
4652
|
* Custom Fluent theme palette used by chat related components in this library.
|
4654
4653
|
*
|
4655
|
-
* @
|
4654
|
+
* @beta
|
4656
4655
|
*/
|
4657
4656
|
export declare interface ChatTheme {
|
4658
4657
|
/**
|
4659
4658
|
* Custom Fluent theme palette used by chat related components in this library.
|
4660
4659
|
*
|
4661
|
-
* @
|
4660
|
+
* @beta
|
4662
4661
|
*/
|
4663
4662
|
chatPalette: {
|
4664
|
-
|
4665
|
-
|
4666
|
-
|
4667
|
-
|
4668
|
-
|
4663
|
+
modalOverlayBlack: string;
|
4664
|
+
modalTitleWhite: string;
|
4665
|
+
modalButtonBackground: string;
|
4666
|
+
modalButtonBackgroundHover: string;
|
4667
|
+
modalButtonBackgroundActive: string;
|
4669
4668
|
};
|
4670
4669
|
}
|
4671
4670
|
|
@@ -5975,7 +5974,7 @@ export declare interface CustomMessage extends MessageCommon {
|
|
5975
5974
|
*
|
5976
5975
|
* @public
|
5977
5976
|
*/
|
5978
|
-
export declare const darkTheme: PartialTheme & CallingTheme & ChatTheme;
|
5977
|
+
export declare const darkTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-gallery) */ ChatTheme;
|
5979
5978
|
|
5980
5979
|
/**
|
5981
5980
|
* @beta
|
@@ -7285,14 +7284,14 @@ export declare interface _Identifiers {
|
|
7285
7284
|
/**
|
7286
7285
|
* Component to render a fullscreen modal for a selected image.
|
7287
7286
|
*
|
7288
|
-
* @
|
7287
|
+
* @beta
|
7289
7288
|
*/
|
7290
7289
|
export declare const ImageGallery: (props: ImageGalleryProps) => JSX.Element;
|
7291
7290
|
|
7292
7291
|
/**
|
7293
7292
|
* Props for {@link ImageGallery}.
|
7294
7293
|
*
|
7295
|
-
* @
|
7294
|
+
* @beta
|
7296
7295
|
*/
|
7297
7296
|
export declare interface ImageGalleryImageProps {
|
7298
7297
|
/** Image Url used to display the image in a large scale. */
|
@@ -7310,7 +7309,7 @@ export declare interface ImageGalleryImageProps {
|
|
7310
7309
|
/**
|
7311
7310
|
* Props for {@link ImageGallery}.
|
7312
7311
|
*
|
7313
|
-
* @
|
7312
|
+
* @beta
|
7314
7313
|
*/
|
7315
7314
|
export declare interface ImageGalleryProps {
|
7316
7315
|
/**
|
@@ -7342,7 +7341,7 @@ export declare interface ImageGalleryProps {
|
|
7342
7341
|
/**
|
7343
7342
|
* Strings of {@link ImageGallery} that can be overridden.
|
7344
7343
|
*
|
7345
|
-
* @
|
7344
|
+
* @beta
|
7346
7345
|
*/
|
7347
7346
|
export declare interface ImageGalleryStrings {
|
7348
7347
|
/**
|
@@ -7404,7 +7403,7 @@ export declare interface IncomingCallState {
|
|
7404
7403
|
/**
|
7405
7404
|
* Metadata for rendering images inline with a message.
|
7406
7405
|
* This does not include images attached as files.
|
7407
|
-
* @
|
7406
|
+
* @beta
|
7408
7407
|
*/
|
7409
7408
|
export declare interface InlineImageMetadata {
|
7410
7409
|
attachmentType: 'inlineImage';
|
@@ -7517,7 +7516,7 @@ export declare interface JumpToNewMessageButtonProps {
|
|
7517
7516
|
*
|
7518
7517
|
* @public
|
7519
7518
|
*/
|
7520
|
-
export declare const lightTheme: PartialTheme & CallingTheme & ChatTheme;
|
7519
|
+
export declare const lightTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-gallery) */ ChatTheme;
|
7521
7520
|
|
7522
7521
|
/**
|
7523
7522
|
* Whether the stream is loading or not.
|
@@ -8046,7 +8045,7 @@ export declare type MessageThreadProps = {
|
|
8046
8045
|
/**
|
8047
8046
|
* Optional callback to retrieve the inline image in a message.
|
8048
8047
|
* @param attachment - AttachmentMetadata object we want to render
|
8049
|
-
* @
|
8048
|
+
* @beta
|
8050
8049
|
*/
|
8051
8050
|
onFetchAttachments?: (attachments: AttachmentMetadata[]) => Promise<AttachmentDownloadResult[]>;
|
8052
8051
|
/**
|
@@ -8109,7 +8108,7 @@ export declare type MessageThreadProps = {
|
|
8109
8108
|
mentionOptions?: MentionOptions;
|
8110
8109
|
/**
|
8111
8110
|
* Optional callback called when an inline image is clicked.
|
8112
|
-
* @
|
8111
|
+
* @beta
|
8113
8112
|
*/
|
8114
8113
|
onInlineImageClicked?: (attachmentId: string, messageId: string) => Promise<void>;
|
8115
8114
|
};
|