@azure/communication-react 1.5.1-alpha-202305200012 → 1.5.1-alpha-202305210014

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.
@@ -304,11 +304,7 @@ export declare type AzureCommunicationCallAdapterOptions = {
304
304
  * {@link CallComposite}. The true role of the user will be synced with ACS services when a Rooms call starts.
305
305
  */
306
306
  roleHint?: Role;
307
- /**
308
- * Default set of background images for background image picker.
309
- */
310
- videoBackgroundImages?: VideoBackgroundImage[];
311
- };
307
+ } & CommonCallAdapterOptions;
312
308
 
313
309
  /**
314
310
  * Arguments for {@link createAzureCommunicationCallWithChatAdapter}
@@ -3919,6 +3915,18 @@ export declare interface CommonCallAdapter extends AdapterState<CallAdapterState
3919
3915
  startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): void;
3920
3916
  }
3921
3917
 
3918
+ /**
3919
+ * Common optional parameters to create {@link AzureCommunicationCallAdapter} or {@link TeamsCallAdapter}
3920
+ *
3921
+ * @beta
3922
+ */
3923
+ export declare type CommonCallAdapterOptions = {
3924
+ /**
3925
+ * Default set of background images for background image picker.
3926
+ */
3927
+ videoBackgroundImages?: VideoBackgroundImage[];
3928
+ };
3929
+
3922
3930
  /**
3923
3931
  * Customization options for the control bar in calling experience.
3924
3932
  *
@@ -8297,7 +8305,7 @@ export declare interface SystemMessageCommon extends MessageCommon {
8297
8305
  }
8298
8306
 
8299
8307
  /**
8300
- * Optional parameters to create {@link AzureCommunicationCallAdapter}
8308
+ * Optional parameters to create {@link TeamsCallAdapter}
8301
8309
  *
8302
8310
  * @beta
8303
8311
  */
@@ -8308,7 +8316,7 @@ export declare type TeamsAdapterOptions = {
8308
8316
  * and would not be updated again within the lifecycle of adapter.
8309
8317
  */
8310
8318
  onFetchProfile?: OnFetchProfileCallback;
8311
- };
8319
+ } & CommonCallAdapterOptions;
8312
8320
 
8313
8321
  /**
8314
8322
  * An Adapter interface specific for Teams identity which extends {@link CommonCallAdapter}.
@@ -164,7 +164,7 @@ const _toCommunicationIdentifier = (id) => {
164
164
  // Copyright (c) Microsoft Corporation.
165
165
  // Licensed under the MIT license.
166
166
  // GENERATED FILE. DO NOT EDIT MANUALLY.
167
- var telemetryVersion = '1.5.1-alpha-202305200012';
167
+ var telemetryVersion = '1.5.1-alpha-202305210014';
168
168
 
169
169
  // Copyright (c) Microsoft Corporation.
170
170
  /**
@@ -26673,11 +26673,6 @@ const useAzureCommunicationCallAdapterGeneric = (args, afterCreate, beforeDispos
26673
26673
  }));
26674
26674
  }
26675
26675
  else if (adapterKind === 'Teams') {
26676
- // This is just the type check to ensure that roleHint is defined.
26677
- /* @conditional-compile-remove(teams-identity-support)) */
26678
- if (options && !('onFetchProfile' in options)) {
26679
- throw new Error('Unreachable code, provided a options without roleHint.');
26680
- }
26681
26676
  /* @conditional-compile-remove(teams-identity-support) */
26682
26677
  newAdapter = (yield createTeamsCallAdapter({
26683
26678
  credential,