@azure/communication-react 1.7.0-alpha-202308020013 → 1.7.0-alpha-202308030014
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 +59 -7
- package/dist/dist-cjs/communication-react/index.js +524 -385
- 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/callControlSelectors.js +34 -8
- 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 +13 -3
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +21 -8
- 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 +15 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +5 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +4 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +2 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/index.d.ts +3 -1
- package/dist/dist-esm/calling-component-bindings/src/index.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.map +1 -1
- package/dist/dist-esm/react-components/src/components/ImageGallery.d.ts +92 -0
- package/dist/dist-esm/react-components/src/components/ImageGallery.js +38 -0
- package/dist/dist-esm/react-components/src/components/ImageGallery.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/index.d.ts +2 -0
- package/dist/dist-esm/react-components/src/components/index.js +2 -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.d.ts +62 -0
- package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js +179 -0
- package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +7 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +22 -8
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +6 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +4 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +10 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +3 -1
- 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/LocalDeviceSettings.js +4 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +5 -5
- 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/CallWithChatBackedCallAdapter.js +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/icons.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js +33 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js +32 -0
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/index.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/index.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
- package/package.json +8 -8
@@ -17,8 +17,10 @@
|
|
17
17
|
|
18
18
|
import { AddPhoneNumberOptions } from '@azure/communication-calling';
|
19
19
|
import { AudioDeviceInfo } from '@azure/communication-calling';
|
20
|
-
import { BackgroundBlurConfig } from '@azure/communication-calling
|
21
|
-
import {
|
20
|
+
import { BackgroundBlurConfig } from '@azure/communication-calling';
|
21
|
+
import { BackgroundBlurEffect } from '@azure/communication-calling';
|
22
|
+
import { BackgroundReplacementConfig } from '@azure/communication-calling';
|
23
|
+
import { BackgroundReplacementEffect } from '@azure/communication-calling';
|
22
24
|
import { Call } from '@azure/communication-calling';
|
23
25
|
import { CallAgent } from '@azure/communication-calling';
|
24
26
|
import { CallClient } from '@azure/communication-calling';
|
@@ -925,6 +927,10 @@ export declare type CallAdapterClientState = {
|
|
925
927
|
* Default set of background images for background replacement effect.
|
926
928
|
*/
|
927
929
|
videoBackgroundImages?: VideoBackgroundImage[];
|
930
|
+
/**
|
931
|
+
* Dependency to be injected for video background effect.
|
932
|
+
*/
|
933
|
+
onResolveVideoEffectDependency?: () => Promise<VideoBackgroundEffectsDependency>;
|
928
934
|
/**
|
929
935
|
* State to track the selected video background effect.
|
930
936
|
*/
|
@@ -1384,7 +1390,7 @@ export declare type CallCompositeIcons = {
|
|
1384
1390
|
PeoplePaneAddPerson?: JSX.Element;
|
1385
1391
|
PeoplePaneOpenDialpad?: JSX.Element;
|
1386
1392
|
DialpadStartCall?: JSX.Element;
|
1387
|
-
|
1393
|
+
NoticePageAccessDeniedRoomsCall?: JSX.Element;
|
1388
1394
|
BlurVideoBackground?: JSX.Element;
|
1389
1395
|
RemoveVideoBackgroundEffect?: JSX.Element;
|
1390
1396
|
};
|
@@ -2132,6 +2138,14 @@ export declare interface CallingHandlers extends CommonCallingHandlers {
|
|
2132
2138
|
onStartCall: (participants: CommunicationIdentifier[], options?: StartCallOptions) => Call | undefined;
|
2133
2139
|
}
|
2134
2140
|
|
2141
|
+
/**
|
2142
|
+
* Configuration options to include video effect background dependency.
|
2143
|
+
* @beta
|
2144
|
+
*/
|
2145
|
+
export declare type CallingHandlersOptions = {
|
2146
|
+
onResolveVideoBackgroundEffectsDependency?: () => Promise<VideoBackgroundEffectsDependency>;
|
2147
|
+
};
|
2148
|
+
|
2135
2149
|
/**
|
2136
2150
|
* Helper type for {@link usePropsFor}.
|
2137
2151
|
*
|
@@ -2820,6 +2834,8 @@ export declare interface CallWithChatClientState {
|
|
2820
2834
|
environmentInfo?: EnvironmentInfo;
|
2821
2835
|
/** Default set of background images for background replacement effect */
|
2822
2836
|
videoBackgroundImages?: VideoBackgroundImage[];
|
2837
|
+
/** Dependency to be injected for video background effects */
|
2838
|
+
onResolveVideoEffectDependency?: () => Promise<VideoBackgroundEffectsDependency>;
|
2823
2839
|
/** State to track the selected video background effect */
|
2824
2840
|
selectedVideoBackgroundEffect?: VideoBackgroundEffect;
|
2825
2841
|
}
|
@@ -4157,7 +4173,10 @@ export declare type CommonCallAdapterOptions = {
|
|
4157
4173
|
/**
|
4158
4174
|
* Default set of background images for background image picker.
|
4159
4175
|
*/
|
4160
|
-
|
4176
|
+
videoBackgroundOptions?: {
|
4177
|
+
videoBackgroundImages?: VideoBackgroundImage[];
|
4178
|
+
onResolveDependency?: () => Promise<VideoBackgroundEffectsDependency>;
|
4179
|
+
};
|
4161
4180
|
/**
|
4162
4181
|
* Use this to fetch profile information which will override data in {@link CallAdapterState} like display name
|
4163
4182
|
* The onFetchProfile is fetch-and-forget one time action for each user, once a user profile is updated, the value will be cached
|
@@ -5017,6 +5036,13 @@ export declare function createAzureCommunicationChatAdapterFromClient(chatClient
|
|
5017
5036
|
credential?: CommunicationTokenCredential;
|
5018
5037
|
}): Promise<ChatAdapter>;
|
5019
5038
|
|
5039
|
+
/**
|
5040
|
+
* Type of {@link createDefaultCallingHandlers}.
|
5041
|
+
*
|
5042
|
+
* @public
|
5043
|
+
*/
|
5044
|
+
export declare type CreateDefaultCallingHandlers = (callClient: StatefulCallClient, callAgent: CallAgent | undefined, deviceManager: StatefulDeviceManager | undefined, call: Call | undefined, options?: CallingHandlersOptions) => CallingHandlers;
|
5045
|
+
|
5020
5046
|
/**
|
5021
5047
|
* Create the default implementation of {@link CallingHandlers} for teams call.
|
5022
5048
|
*
|
@@ -5025,7 +5051,7 @@ export declare function createAzureCommunicationChatAdapterFromClient(chatClient
|
|
5025
5051
|
*
|
5026
5052
|
* @public
|
5027
5053
|
*/
|
5028
|
-
export declare const createDefaultCallingHandlers:
|
5054
|
+
export declare const createDefaultCallingHandlers: CreateDefaultCallingHandlers;
|
5029
5055
|
|
5030
5056
|
/**
|
5031
5057
|
* Create the default implementation of {@link ChatHandlers}.
|
@@ -5047,7 +5073,9 @@ export declare const createDefaultChatHandlers: (chatClient: StatefulChatClient,
|
|
5047
5073
|
*
|
5048
5074
|
* @beta
|
5049
5075
|
*/
|
5050
|
-
export declare const createDefaultTeamsCallingHandlers: (callClient: StatefulCallClient, callAgent: undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCallAgent, deviceManager: StatefulDeviceManager | undefined, call: undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCall
|
5076
|
+
export declare const createDefaultTeamsCallingHandlers: (callClient: StatefulCallClient, callAgent: undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCallAgent, deviceManager: StatefulDeviceManager | undefined, call: undefined | /* @conditional-compile-remove(teams-identity-support) */ TeamsCall, options?: {
|
5077
|
+
onResolveVideoBackgroundEffectsDependency?: (() => Promise<VideoBackgroundEffectsDependency>) | undefined;
|
5078
|
+
} | undefined) => never | TeamsCallingHandlers;
|
5051
5079
|
|
5052
5080
|
/**
|
5053
5081
|
* Creates a StatefulCallClient {@link StatefulCallClient} by proxying CallClient
|
@@ -5466,7 +5494,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
5466
5494
|
PeoplePaneAddPerson?: JSX.Element | undefined;
|
5467
5495
|
PeoplePaneOpenDialpad?: JSX.Element | undefined;
|
5468
5496
|
DialpadStartCall?: JSX.Element | undefined;
|
5469
|
-
|
5497
|
+
NoticePageAccessDeniedRoomsCall?: JSX.Element | undefined;
|
5470
5498
|
BlurVideoBackground?: JSX.Element | undefined;
|
5471
5499
|
RemoveVideoBackgroundEffect?: JSX.Element | undefined;
|
5472
5500
|
ChevronLeft?: JSX.Element | undefined;
|
@@ -7589,6 +7617,20 @@ userId?: string, options?: CustomAvatarOptions,
|
|
7589
7617
|
*/
|
7590
7618
|
defaultOnRender?: (props: CustomAvatarOptions) => JSX.Element) => JSX.Element;
|
7591
7619
|
|
7620
|
+
/**
|
7621
|
+
* Dependency resolution for video background effects.
|
7622
|
+
*
|
7623
|
+
* @beta
|
7624
|
+
*/
|
7625
|
+
export declare const onResolveVideoEffectDependency: () => Promise<VideoBackgroundEffectsDependency>;
|
7626
|
+
|
7627
|
+
/**
|
7628
|
+
*
|
7629
|
+
* Dependency resolution for video background effects using lazy loading.
|
7630
|
+
* @beta
|
7631
|
+
*/
|
7632
|
+
export declare const onResolveVideoEffectDependencyLazy: () => Promise<VideoBackgroundEffectsDependency>;
|
7633
|
+
|
7592
7634
|
/**
|
7593
7635
|
* State only version of Optimal Video Count Feature {@link @azure/communication-calling#OptimalVideoCountCallFeature}.
|
7594
7636
|
*
|
@@ -9389,6 +9431,16 @@ export declare interface VideoBackgroundBlurEffect extends BackgroundBlurConfig
|
|
9389
9431
|
*/
|
9390
9432
|
export declare type VideoBackgroundEffect = VideoBackgroundNoEffect | VideoBackgroundBlurEffect | VideoBackgroundReplacementEffect;
|
9391
9433
|
|
9434
|
+
/**
|
9435
|
+
* Dependency type to be injected for video background effects
|
9436
|
+
*
|
9437
|
+
* @beta
|
9438
|
+
*/
|
9439
|
+
export declare type VideoBackgroundEffectsDependency = {
|
9440
|
+
createBackgroundBlurEffect: (config?: BackgroundBlurConfig) => BackgroundBlurEffect;
|
9441
|
+
createBackgroundReplacementEffect: (config: BackgroundReplacementConfig) => BackgroundReplacementEffect;
|
9442
|
+
};
|
9443
|
+
|
9392
9444
|
/**
|
9393
9445
|
* Contains the attibutes of a background image like url, name etc.
|
9394
9446
|
*
|