@azure/communication-react 1.5.1-alpha-202302010014 → 1.5.1-alpha-202302020013

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 (19) hide show
  1. package/dist/communication-react.d.ts +39 -2
  2. package/dist/dist-cjs/communication-react/index.js +274 -174
  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-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +25 -3
  7. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +24 -6
  8. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  9. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.d.ts +23 -0
  10. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js +45 -0
  11. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js.map +1 -0
  12. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +2 -1
  13. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  14. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -1
  15. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  16. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +9 -1
  17. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +39 -0
  18. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  19. package/package.json +8 -8
@@ -4275,7 +4275,7 @@ export declare const createStatefulChatClient: (args: StatefulChatClientArgs, op
4275
4275
  /**
4276
4276
  * @beta
4277
4277
  */
4278
- export declare const createTeamsCallAdapter: ({ userId, credential, locator }: TeamsCallAdapterArgs) => Promise<TeamsCallAdapter>;
4278
+ export declare const createTeamsCallAdapter: ({ userId, credential, locator, options }: TeamsCallAdapterArgs) => Promise<TeamsCallAdapter>;
4279
4279
 
4280
4280
  /**
4281
4281
  * Create a {@link TeamsCallAdapter} using the provided {@link StatefulCallClient}.
@@ -4285,7 +4285,7 @@ export declare const createTeamsCallAdapter: ({ userId, credential, locator }: T
4285
4285
  *
4286
4286
  * @beta
4287
4287
  */
4288
- export declare const createTeamsCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: TeamsCallAgent, locator: CallAdapterLocator) => Promise<TeamsCallAdapter>;
4288
+ export declare const createTeamsCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: TeamsCallAgent, locator: CallAdapterLocator, options?: TeamsAdapterOptions | undefined) => Promise<TeamsCallAdapter>;
4289
4289
 
4290
4290
  /**
4291
4291
  * Object returned after creating a local or remote VideoStream.
@@ -6526,6 +6526,13 @@ export declare interface NetworkDiagnosticsState {
6526
6526
  latest: LatestNetworkDiagnostics;
6527
6527
  }
6528
6528
 
6529
+ /**
6530
+ * Callback function used to provide custom data to build profile for a user.
6531
+ *
6532
+ * @beta
6533
+ */
6534
+ export declare type OnFetchProfileCallback = (userId: string) => Promise<Profile | undefined>;
6535
+
6529
6536
  /**
6530
6537
  * A custom rendered callback that allows users to customize the rendering of a Persona Component.
6531
6538
  *
@@ -6954,6 +6961,18 @@ export declare type ParticipantsRemovedListener = (event: {
6954
6961
  */
6955
6962
  export declare type ParticipantState = 'Idle' | 'Connecting' | 'Ringing' | 'Connected' | 'Hold' | 'InLobby' | 'EarlyMedia' | 'Disconnected';
6956
6963
 
6964
+ /**
6965
+ * The profile of a user.
6966
+ *
6967
+ * @beta
6968
+ */
6969
+ export declare type Profile = {
6970
+ /**
6971
+ * Primary text to display, usually the name of the person.
6972
+ */
6973
+ displayName?: string;
6974
+ };
6975
+
6957
6976
  /**
6958
6977
  * An array of key value pairs that stores each sender's display name and last read message
6959
6978
  *
@@ -7616,6 +7635,20 @@ export declare interface SystemMessageCommon extends MessageCommon {
7616
7635
  iconName: string;
7617
7636
  }
7618
7637
 
7638
+ /**
7639
+ * Optional parameters to create {@link AzureCommunicationCallAdapter}
7640
+ *
7641
+ * @beta
7642
+ */
7643
+ export declare type TeamsAdapterOptions = {
7644
+ /**
7645
+ * Use this to fetch profile information which will override data in {@link CallAdapterState} like display name
7646
+ * The onFetchProfile is fetch-and-forget one time action for each user, once a user profile is updated, the value will be cached
7647
+ * and would not be updated again within the lifecycle of adapter.
7648
+ */
7649
+ onFetchProfile?: OnFetchProfileCallback;
7650
+ };
7651
+
7619
7652
  /**
7620
7653
  * An Adapter interface specific for Teams identity which extends {@link CommonCallAdapter}.
7621
7654
  *
@@ -7655,6 +7688,10 @@ export declare type TeamsCallAdapterArgs = {
7655
7688
  userId: MicrosoftTeamsUserIdentifier;
7656
7689
  credential: CommunicationTokenCredential;
7657
7690
  locator: TeamsMeetingLinkLocator;
7691
+ /**
7692
+ * Optional parameters for the {@link TeamsCallAdapter} created
7693
+ */
7694
+ options?: TeamsAdapterOptions;
7658
7695
  };
7659
7696
 
7660
7697
  /**