@azure/communication-react 1.5.1-alpha-202302010014 → 1.5.1-alpha-202302030014
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.
- package/dist/communication-react.d.ts +43 -2
- package/dist/dist-cjs/communication-react/index.js +306 -189
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +28 -11
- package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/utils.js +1 -0
- package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +25 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +24 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.d.ts +23 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js +45 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +9 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +39 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- 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.
|
@@ -5255,6 +5255,10 @@ export declare interface ErrorBarStrings {
|
|
5255
5255
|
* An error message when joining a call fails specifically due to an invalid meeting link.
|
5256
5256
|
*/
|
5257
5257
|
failedToJoinCallInvalidMeetingLink?: string;
|
5258
|
+
/**
|
5259
|
+
* Generic message for when screen sharing fails
|
5260
|
+
*/
|
5261
|
+
startScreenSharingGeneric?: string;
|
5258
5262
|
}
|
5259
5263
|
|
5260
5264
|
/**
|
@@ -6526,6 +6530,13 @@ export declare interface NetworkDiagnosticsState {
|
|
6526
6530
|
latest: LatestNetworkDiagnostics;
|
6527
6531
|
}
|
6528
6532
|
|
6533
|
+
/**
|
6534
|
+
* Callback function used to provide custom data to build profile for a user.
|
6535
|
+
*
|
6536
|
+
* @beta
|
6537
|
+
*/
|
6538
|
+
export declare type OnFetchProfileCallback = (userId: string) => Promise<Profile | undefined>;
|
6539
|
+
|
6529
6540
|
/**
|
6530
6541
|
* A custom rendered callback that allows users to customize the rendering of a Persona Component.
|
6531
6542
|
*
|
@@ -6954,6 +6965,18 @@ export declare type ParticipantsRemovedListener = (event: {
|
|
6954
6965
|
*/
|
6955
6966
|
export declare type ParticipantState = 'Idle' | 'Connecting' | 'Ringing' | 'Connected' | 'Hold' | 'InLobby' | 'EarlyMedia' | 'Disconnected';
|
6956
6967
|
|
6968
|
+
/**
|
6969
|
+
* The profile of a user.
|
6970
|
+
*
|
6971
|
+
* @beta
|
6972
|
+
*/
|
6973
|
+
export declare type Profile = {
|
6974
|
+
/**
|
6975
|
+
* Primary text to display, usually the name of the person.
|
6976
|
+
*/
|
6977
|
+
displayName?: string;
|
6978
|
+
};
|
6979
|
+
|
6957
6980
|
/**
|
6958
6981
|
* An array of key value pairs that stores each sender's display name and last read message
|
6959
6982
|
*
|
@@ -7616,6 +7639,20 @@ export declare interface SystemMessageCommon extends MessageCommon {
|
|
7616
7639
|
iconName: string;
|
7617
7640
|
}
|
7618
7641
|
|
7642
|
+
/**
|
7643
|
+
* Optional parameters to create {@link AzureCommunicationCallAdapter}
|
7644
|
+
*
|
7645
|
+
* @beta
|
7646
|
+
*/
|
7647
|
+
export declare type TeamsAdapterOptions = {
|
7648
|
+
/**
|
7649
|
+
* Use this to fetch profile information which will override data in {@link CallAdapterState} like display name
|
7650
|
+
* The onFetchProfile is fetch-and-forget one time action for each user, once a user profile is updated, the value will be cached
|
7651
|
+
* and would not be updated again within the lifecycle of adapter.
|
7652
|
+
*/
|
7653
|
+
onFetchProfile?: OnFetchProfileCallback;
|
7654
|
+
};
|
7655
|
+
|
7619
7656
|
/**
|
7620
7657
|
* An Adapter interface specific for Teams identity which extends {@link CommonCallAdapter}.
|
7621
7658
|
*
|
@@ -7655,6 +7692,10 @@ export declare type TeamsCallAdapterArgs = {
|
|
7655
7692
|
userId: MicrosoftTeamsUserIdentifier;
|
7656
7693
|
credential: CommunicationTokenCredential;
|
7657
7694
|
locator: TeamsMeetingLinkLocator;
|
7695
|
+
/**
|
7696
|
+
* Optional parameters for the {@link TeamsCallAdapter} created
|
7697
|
+
*/
|
7698
|
+
options?: TeamsAdapterOptions;
|
7658
7699
|
};
|
7659
7700
|
|
7660
7701
|
/**
|