@azure/communication-react 1.13.0-alpha-202402170012 → 1.13.0-alpha-202402220012
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 +40 -36
- package/dist/dist-cjs/communication-react/index.js +657 -415
- 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-component-bindings/src/baseSelectors.d.ts +3 -7
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +4 -12
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +4 -4
- package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +2 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +35 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +14 -0
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +2 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/index.d.ts +1 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +5 -5
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +3 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +9 -3
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +12 -8
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +4 -0
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +11 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +6 -5
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/ChatContext.d.ts +1 -1
- package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +7 -5
- package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js +4 -5
- package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.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/ChatMessage/ChatMessageContent.js +2 -2
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +4 -10
- package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +8 -0
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +101 -19
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +8 -3
- 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 +8 -3
- package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.d.ts +4 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +25 -20
- package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +2 -10
- package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +12 -4
- package/dist/dist-esm/react-components/src/components/VideoGallery.js +38 -10
- package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +20 -15
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +16 -10
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +4 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +29 -15
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +168 -141
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.d.ts +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.d.ts +10 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.js +77 -27
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +2 -8
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +4 -15
- 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.d.ts +3 -5
- 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.d.ts +1 -5
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +2 -7
- 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 +41 -19
- 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 +3 -20
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +7 -57
- 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 -5
- 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.d.ts +0 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +15 -0
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ExitSpotlightButton.d.ts +14 -0
- package/dist/dist-esm/react-composites/src/composites/common/ExitSpotlightButton.js +16 -0
- package/dist/dist-esm/react-composites/src/composites/common/ExitSpotlightButton.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/common/icons.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +4 -2
- package/package.json +1 -1
@@ -243,17 +243,6 @@ export declare type AreParamEqual<A extends (props: any) => JSX.Element | undefi
|
|
243
243
|
*/
|
244
244
|
export declare type AreTypeEqual<A, B> = A extends B ? (B extends A ? true : false) : false;
|
245
245
|
|
246
|
-
/**
|
247
|
-
* Metadata of the attachment object returned by the ACS SDK.
|
248
|
-
* @beta
|
249
|
-
*/
|
250
|
-
export declare interface AttachmentDownloadResult {
|
251
|
-
/**
|
252
|
-
* Blob URL for the attachment.
|
253
|
-
*/
|
254
|
-
blobUrl: string;
|
255
|
-
}
|
256
|
-
|
257
246
|
/**
|
258
247
|
* Metadata containing information about the uploaded file.
|
259
248
|
* @beta
|
@@ -360,7 +349,6 @@ export declare type AzureCommunicationCallWithChatAdapterFromClientArgs = {
|
|
360
349
|
chatClient: StatefulChatClient;
|
361
350
|
chatThreadClient: ChatThreadClient;
|
362
351
|
callAdapterOptions?: AzureCommunicationCallAdapterOptions;
|
363
|
-
chatAdapterOptions?: AzureCommunicationChatAdapterOptions;
|
364
352
|
};
|
365
353
|
|
366
354
|
/**
|
@@ -376,14 +364,6 @@ export declare type AzureCommunicationChatAdapterArgs = {
|
|
376
364
|
threadId: string;
|
377
365
|
};
|
378
366
|
|
379
|
-
/**
|
380
|
-
* Configuration options to include when creating AzureCommunicationChatAdapter.
|
381
|
-
* @beta
|
382
|
-
*/
|
383
|
-
export declare type AzureCommunicationChatAdapterOptions = {
|
384
|
-
credential?: CommunicationTokenCredential;
|
385
|
-
};
|
386
|
-
|
387
367
|
/**
|
388
368
|
* Arguments for creating the Azure Communication Services implementation of {@link CallAdapter}.
|
389
369
|
*
|
@@ -1456,6 +1436,7 @@ export declare type CallCompositeIcons = {
|
|
1456
1436
|
ControlButtonMicProhibited?: JSX.Element;
|
1457
1437
|
ControlButtonRaiseHand?: JSX.Element;
|
1458
1438
|
ControlButtonLowerHand?: JSX.Element;
|
1439
|
+
ControlButtonExitSpotlight?: JSX.Element;
|
1459
1440
|
RaiseHandContextualMenuItem?: JSX.Element;
|
1460
1441
|
ReactionContextualMenuItem?: JSX.Element;
|
1461
1442
|
LowerHandContextualMenuItem?: JSX.Element;
|
@@ -2430,6 +2411,14 @@ export declare interface CallCompositeStrings {
|
|
2430
2411
|
* Strings for spotlight prompt
|
2431
2412
|
*/
|
2432
2413
|
spotlightPrompt: SpotlightPromptStrings;
|
2414
|
+
/**
|
2415
|
+
* Label for button to exit spotlight
|
2416
|
+
*/
|
2417
|
+
exitSpotlightButtonLabel: string;
|
2418
|
+
/**
|
2419
|
+
* Tooltip for button to exit spotlight
|
2420
|
+
*/
|
2421
|
+
exitSpotlightButtonTooltip: string;
|
2433
2422
|
}
|
2434
2423
|
|
2435
2424
|
/**
|
@@ -3130,10 +3119,9 @@ export declare interface CallWithChatAdapterManagement {
|
|
3130
3119
|
updateFileUploadErrorMessage: (id: string, errorMessage: string) => void;
|
3131
3120
|
/** @beta */
|
3132
3121
|
updateFileUploadMetadata: (id: string, metadata: AttachmentMetadata) => void;
|
3133
|
-
|
3134
|
-
|
3135
|
-
|
3136
|
-
downloadResourceToCache(resourceDetails: ResourceDetails): void;
|
3122
|
+
/** @beta */
|
3123
|
+
downloadResourceToCache(resourceDetails: ResourceDetails): Promise<void>;
|
3124
|
+
/** @beta */
|
3137
3125
|
removeResourceFromCache(resourceDetails: ResourceDetails): void;
|
3138
3126
|
/**
|
3139
3127
|
* Puts the Call in a Localhold.
|
@@ -4390,13 +4378,10 @@ export declare interface ChatAdapterThreadManagement {
|
|
4390
4378
|
*
|
4391
4379
|
*/
|
4392
4380
|
loadPreviousChatMessages(messagesToLoad: number): Promise<boolean>;
|
4393
|
-
downloadAttachment: (options: {
|
4394
|
-
attachmentUrl: string;
|
4395
|
-
}) => Promise<AttachmentDownloadResult>;
|
4396
4381
|
/**
|
4397
4382
|
* Downloads a resource into the cache for the given message.
|
4398
4383
|
*/
|
4399
|
-
downloadResourceToCache(resourceDetails: ResourceDetails): void
|
4384
|
+
downloadResourceToCache(resourceDetails: ResourceDetails): Promise<void>;
|
4400
4385
|
/**
|
4401
4386
|
* Removes a resource from the cache for the given message.
|
4402
4387
|
*/
|
@@ -5013,6 +4998,10 @@ export declare type CommonCallControlOptions = {
|
|
5013
4998
|
dtmfDialerButton?: boolean | {
|
5014
4999
|
disabled: boolean;
|
5015
5000
|
};
|
5001
|
+
/**
|
5002
|
+
* Show or hide the exit spotlight button in the composite control bar when local participant is spotlighted.
|
5003
|
+
*/
|
5004
|
+
exitSpotlightButton?: boolean;
|
5016
5005
|
};
|
5017
5006
|
|
5018
5007
|
/**
|
@@ -5813,7 +5802,7 @@ export declare const createAzureCommunicationCallWithChatAdapter: ({ userId, dis
|
|
5813
5802
|
*
|
5814
5803
|
* @public
|
5815
5804
|
*/
|
5816
|
-
export declare const createAzureCommunicationCallWithChatAdapterFromClients: ({ callClient, callAgent, callLocator, chatClient, chatThreadClient, callAdapterOptions
|
5805
|
+
export declare const createAzureCommunicationCallWithChatAdapterFromClients: ({ callClient, callAgent, callLocator, chatClient, chatThreadClient, callAdapterOptions }: AzureCommunicationCallWithChatAdapterFromClientArgs) => Promise<CallWithChatAdapter>;
|
5817
5806
|
|
5818
5807
|
/**
|
5819
5808
|
* Create a {@link ChatAdapter} backed by Azure Communication Services.
|
@@ -5832,9 +5821,7 @@ export declare const createAzureCommunicationChatAdapter: ({ endpoint: endpointU
|
|
5832
5821
|
*
|
5833
5822
|
* @public
|
5834
5823
|
*/
|
5835
|
-
export declare function createAzureCommunicationChatAdapterFromClient(chatClient: StatefulChatClient, chatThreadClient: ChatThreadClient
|
5836
|
-
credential?: CommunicationTokenCredential;
|
5837
|
-
}): Promise<ChatAdapter>;
|
5824
|
+
export declare function createAzureCommunicationChatAdapterFromClient(chatClient: StatefulChatClient, chatThreadClient: ChatThreadClient): Promise<ChatAdapter>;
|
5838
5825
|
|
5839
5826
|
/**
|
5840
5827
|
* Type of {@link createDefaultCallingHandlers}.
|
@@ -6249,6 +6236,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
6249
6236
|
ControlButtonMicProhibited?: JSX.Element | undefined;
|
6250
6237
|
ControlButtonRaiseHand: JSX.Element;
|
6251
6238
|
ControlButtonLowerHand: JSX.Element;
|
6239
|
+
ControlButtonExitSpotlight?: JSX.Element | undefined;
|
6252
6240
|
RaiseHandContextualMenuItem: JSX.Element;
|
6253
6241
|
ReactionContextualMenuItem?: JSX.Element | undefined;
|
6254
6242
|
LowerHandContextualMenuItem: JSX.Element;
|
@@ -7567,6 +7555,10 @@ export declare interface InlineImageMetadata {
|
|
7567
7555
|
* Download URL for the full resolution version.
|
7568
7556
|
*/
|
7569
7557
|
url: string;
|
7558
|
+
/**
|
7559
|
+
* Optional fetched Image source fot the full resolution version.
|
7560
|
+
*/
|
7561
|
+
fullSizeImageSrc?: string;
|
7570
7562
|
}
|
7571
7563
|
|
7572
7564
|
/**
|
@@ -9804,6 +9796,10 @@ export declare interface SpotlightCallFeatureState {
|
|
9804
9796
|
* Ordered array of spotlighted participants in call
|
9805
9797
|
*/
|
9806
9798
|
spotlightedParticipants: SpotlightedParticipant[];
|
9799
|
+
/**
|
9800
|
+
* Local participant spotlight
|
9801
|
+
*/
|
9802
|
+
localParticipantSpotlight?: SpotlightState;
|
9807
9803
|
/**
|
9808
9804
|
* Proxy of {@link @azure/communication-calling#SpotlightCallFeature.maxParticipantsToSpotlight}.
|
9809
9805
|
*/
|
@@ -11095,13 +11091,21 @@ export declare interface VideoGalleryProps {
|
|
11095
11091
|
*/
|
11096
11092
|
spotlightedParticipants?: string[];
|
11097
11093
|
/**
|
11098
|
-
* This callback will be called when spotlight is started for participant video
|
11094
|
+
* This callback will be called when spotlight is started for the local participant video tile.
|
11095
|
+
*/
|
11096
|
+
onStartLocalSpotlight?: () => Promise<void>;
|
11097
|
+
/**
|
11098
|
+
* This callback will be called when spotlight is started for the local participant video tile.
|
11099
|
+
*/
|
11100
|
+
onStartRemoteSpotlight?: (userIds?: string[]) => Promise<void>;
|
11101
|
+
/**
|
11102
|
+
* This callback will be called when spotlight is stopped for remote participant video tiles.
|
11099
11103
|
*/
|
11100
|
-
|
11104
|
+
onStopLocalSpotlight?: () => Promise<void>;
|
11101
11105
|
/**
|
11102
|
-
* This callback will be called when spotlight is stopped for participant video tiles.
|
11106
|
+
* This callback will be called when spotlight is stopped for remote participant video tiles.
|
11103
11107
|
*/
|
11104
|
-
|
11108
|
+
onStopRemoteSpotlight?: (userIds?: string[]) => Promise<void>;
|
11105
11109
|
/**
|
11106
11110
|
* Maximum participants that can be spotlighted
|
11107
11111
|
*/
|