@azure/communication-react 1.5.1-alpha-202303260014 → 1.5.1-alpha-202303290014

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 (64) hide show
  1. package/dist/communication-react.d.ts +63 -3
  2. package/dist/dist-cjs/communication-react/index.js +209 -81
  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-stateful-client/src/CallClientState.d.ts +1 -1
  7. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  8. package/dist/dist-esm/communication-react/src/index.d.ts +1 -1
  9. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  10. package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +3 -3
  11. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +6 -27
  12. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  13. package/dist/dist-esm/react-components/src/components/MessageThread.js +5 -4
  14. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  15. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.d.ts +1 -1
  16. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +14 -14
  17. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  18. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.d.ts +1 -1
  19. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +19 -19
  20. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  21. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.d.ts +2 -2
  22. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  23. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +3 -3
  24. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +9 -9
  25. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  26. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.d.ts +4 -4
  27. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +20 -20
  28. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  29. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +2 -2
  30. package/dist/dist-esm/react-components/src/components/VideoGallery.js +3 -3
  31. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  32. package/dist/dist-esm/react-components/src/components/index.d.ts +1 -1
  33. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  34. package/dist/dist-esm/react-components/src/components/styles/CaptionsBanner.style.d.ts +13 -0
  35. package/dist/dist-esm/react-components/src/components/styles/CaptionsBanner.style.js +35 -0
  36. package/dist/dist-esm/react-components/src/components/styles/CaptionsBanner.style.js.map +1 -0
  37. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +2 -2
  38. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +30 -2
  39. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  40. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  41. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +4 -0
  42. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +27 -2
  43. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  44. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +42 -0
  45. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  46. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +1 -1
  47. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  48. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +3 -3
  49. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  50. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +5 -5
  51. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  52. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -0
  53. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  54. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +1 -1
  55. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  56. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +4 -0
  57. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +24 -0
  58. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  59. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +19 -0
  60. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  61. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +4 -0
  62. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +18 -0
  63. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  64. package/package.json +10 -10
@@ -713,6 +713,24 @@ export declare interface CallAdapterCallOperations {
713
713
  * Continues into a call when the browser version is not supported.
714
714
  */
715
715
  allowUnsupportedBrowserVersion(): void;
716
+ /**
717
+ * Start the blur video background effect.
718
+ *
719
+ * @beta
720
+ */
721
+ blurVideoBackground(bgBlurConfig?: BackgroundBlurConfig): Promise<void>;
722
+ /**
723
+ * Start the video background replacement effect.
724
+ *
725
+ * @beta
726
+ */
727
+ replaceVideoBackground(bgReplacementConfig: BackgroundReplacementConfig): Promise<void>;
728
+ /**
729
+ * Stop the video background effect.
730
+ *
731
+ * @beta
732
+ */
733
+ stopVideoBackgroundEffect(): Promise<void>;
716
734
  }
717
735
 
718
736
  /**
@@ -750,6 +768,10 @@ export declare type CallAdapterClientState = {
750
768
  * control bar with the CallComposite.
751
769
  */
752
770
  cameraStatus?: 'On' | 'Off';
771
+ /**
772
+ * Default set of background images for background replacement effect.
773
+ */
774
+ videoBackgroundImages?: VideoBackgroundImage[];
753
775
  };
754
776
 
755
777
  /**
@@ -1780,7 +1802,7 @@ export declare type CallErrors = {
1780
1802
  *
1781
1803
  * @public
1782
1804
  */
1783
- export declare type CallErrorTarget = 'Call.addParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ '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' | /* @conditional-compile-remove(video-background-effects) */ 'VideoEffectsFeature.startEffects';
1805
+ export declare type CallErrorTarget = 'Call.addParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ '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' | /* @conditional-compile-remove(video-background-effects) */ 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification';
1784
1806
 
1785
1807
  /**
1786
1808
  * Callback for {@link CallAdapterSubscribers} 'callIdChanged' event.
@@ -2277,6 +2299,24 @@ export declare interface CallWithChatAdapterManagement {
2277
2299
  * Continues into a call when the browser version is not supported.
2278
2300
  */
2279
2301
  allowUnsupportedBrowserVersion(): void;
2302
+ /**
2303
+ * Start the blur video background effect.
2304
+ *
2305
+ * @beta
2306
+ */
2307
+ blurVideoBackground(bgBlurConfig?: BackgroundBlurConfig): Promise<void>;
2308
+ /**
2309
+ * Start the video background replacement effect.
2310
+ *
2311
+ * @beta
2312
+ */
2313
+ replaceVideoBackground(bgReplacementConfig: BackgroundReplacementConfig): Promise<void>;
2314
+ /**
2315
+ * Stop the video background effect.
2316
+ *
2317
+ * @beta
2318
+ */
2319
+ stopVideoBackgroundEffect(): Promise<void>;
2280
2320
  }
2281
2321
 
2282
2322
  /**
@@ -6660,7 +6700,7 @@ export declare interface OptionsDevice {
6660
6700
  *
6661
6701
  * @beta
6662
6702
  */
6663
- export declare type OverflowGalleryLayout = 'HorizontalBottom' | 'VerticalRight';
6703
+ export declare type OverflowGalleryPosition = 'HorizontalBottom' | 'VerticalRight';
6664
6704
 
6665
6705
  /**
6666
6706
  * A system message notifying that a participant was added to the chat thread.
@@ -8337,6 +8377,26 @@ export declare interface VerticalGalleryStyles extends BaseCustomStyles {
8337
8377
  controlBar?: VerticalGalleryControlBarStyles;
8338
8378
  }
8339
8379
 
8380
+ /**
8381
+ * Contains the attibutes of a background image like url, name etc.
8382
+ *
8383
+ * @beta
8384
+ */
8385
+ export declare interface VideoBackgroundImage {
8386
+ /**
8387
+ * key for unique identification of the custom background
8388
+ */
8389
+ key: string;
8390
+ /**
8391
+ * URL of the uploaded background image.
8392
+ */
8393
+ url: string;
8394
+ /**
8395
+ * Image name to be displayed.
8396
+ */
8397
+ tooltipText?: string;
8398
+ }
8399
+
8340
8400
  /**
8341
8401
  * VideoGallery represents a layout of video tiles for a specific call.
8342
8402
  * It displays a {@link VideoTile} for the local user as well as for each remote participant who has joined the call.
@@ -8458,7 +8518,7 @@ export declare interface VideoGalleryProps {
8458
8518
  * Determines the layout of the overflowGallery inside the VideoGallery.
8459
8519
  * @defaultValue 'HorizontalBottom'
8460
8520
  */
8461
- overflowGalleryLayout?: OverflowGalleryLayout;
8521
+ overflowGalleryPosition?: OverflowGalleryPosition;
8462
8522
  }
8463
8523
 
8464
8524
  /**