@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.
Files changed (65) hide show
  1. package/dist/communication-react.d.ts +59 -7
  2. package/dist/dist-cjs/communication-react/index.js +524 -385
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  6. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +34 -8
  7. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  8. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +13 -3
  9. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +21 -8
  10. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  11. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +15 -1
  12. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +5 -2
  13. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +4 -2
  15. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +2 -2
  16. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
  17. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +3 -1
  18. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  19. package/dist/dist-esm/communication-react/src/index.d.ts +2 -1
  20. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  21. package/dist/dist-esm/react-components/src/components/ImageGallery.d.ts +92 -0
  22. package/dist/dist-esm/react-components/src/components/ImageGallery.js +38 -0
  23. package/dist/dist-esm/react-components/src/components/ImageGallery.js.map +1 -0
  24. package/dist/dist-esm/react-components/src/components/index.d.ts +2 -0
  25. package/dist/dist-esm/react-components/src/components/index.js +2 -0
  26. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  27. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.d.ts +62 -0
  28. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js +179 -0
  29. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js.map +1 -0
  30. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +2 -2
  31. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  32. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +7 -2
  33. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +22 -8
  34. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  35. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +6 -1
  36. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  37. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +4 -1
  38. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +10 -4
  39. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  40. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +3 -1
  41. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  42. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +4 -2
  43. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  44. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  45. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +2 -1
  46. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +5 -5
  47. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  48. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +2 -0
  49. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  50. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +3 -0
  51. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +4 -0
  52. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  53. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -2
  54. package/dist/dist-esm/react-composites/src/composites/common/icons.js +1 -1
  55. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  56. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.d.ts +8 -0
  57. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js +33 -0
  58. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js.map +1 -0
  59. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.d.ts +8 -0
  60. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js +32 -0
  61. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js.map +1 -0
  62. package/dist/dist-esm/react-composites/src/composites/index.d.ts +2 -0
  63. package/dist/dist-esm/react-composites/src/composites/index.js +4 -0
  64. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  65. 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-effects';
21
- import { BackgroundReplacementConfig } from '@azure/communication-calling-effects';
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
- NoticePageInvalidRoom?: JSX.Element;
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
- videoBackgroundImages?: VideoBackgroundImage[];
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: (callClient: StatefulCallClient, callAgent: CallAgent | undefined, deviceManager: StatefulDeviceManager | undefined, call: Call | undefined) => CallingHandlers;
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) => never | TeamsCallingHandlers;
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
- NoticePageInvalidRoom?: JSX.Element | undefined;
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
  *