@azure/communication-react 1.5.1-alpha-202303250012 → 1.5.1-alpha-202303280014

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 (37) hide show
  1. package/dist/communication-react.d.ts +62 -0
  2. package/dist/dist-cjs/communication-react/index.js +258 -122
  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/react-components/src/components/MessageThread.js +5 -4
  7. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  8. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +2 -2
  9. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +30 -2
  10. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  11. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  12. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +4 -0
  13. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +25 -0
  14. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  15. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +42 -0
  16. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  17. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +5 -5
  18. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  19. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -0
  20. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  21. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +1 -1
  22. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  23. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +4 -0
  24. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +24 -0
  25. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  26. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +20 -0
  27. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  28. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +4 -0
  29. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +18 -0
  30. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  31. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +1 -0
  32. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +11 -0
  33. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  34. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +4 -1
  35. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +29 -1
  36. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  37. package/package.json +8 -8
@@ -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
  /**
@@ -2247,6 +2269,7 @@ export declare interface CallWithChatAdapterManagement {
2247
2269
  updateFileUploadErrorMessage: (id: string, errorMessage: string) => void;
2248
2270
  /** @beta */
2249
2271
  updateFileUploadMetadata: (id: string, metadata: FileMetadata) => void;
2272
+ downloadAuthenticatedAttachment?: (attachmentUrl: string) => Promise<string>;
2250
2273
  /**
2251
2274
  * Puts the Call in a Localhold.
2252
2275
  *
@@ -2276,6 +2299,24 @@ export declare interface CallWithChatAdapterManagement {
2276
2299
  * Continues into a call when the browser version is not supported.
2277
2300
  */
2278
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>;
2279
2320
  }
2280
2321
 
2281
2322
  /**
@@ -5419,6 +5460,7 @@ export declare interface FileUploadAdapter {
5419
5460
  updateFileUploadProgress: (id: string, progress: number) => void;
5420
5461
  updateFileUploadErrorMessage: (id: string, errorMessage: string) => void;
5421
5462
  updateFileUploadMetadata: (id: string, metadata: FileMetadata) => void;
5463
+ downloadAuthenticatedAttachment?: (attachmentUrl: string) => Promise<string>;
5422
5464
  }
5423
5465
 
5424
5466
  /**
@@ -8335,6 +8377,26 @@ export declare interface VerticalGalleryStyles extends BaseCustomStyles {
8335
8377
  controlBar?: VerticalGalleryControlBarStyles;
8336
8378
  }
8337
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
+
8338
8400
  /**
8339
8401
  * VideoGallery represents a layout of video tiles for a specific call.
8340
8402
  * It displays a {@link VideoTile} for the local user as well as for each remote participant who has joined the call.