Skip to content

Commit bb4c7df

Browse files
committed
Merge remote-tracking branch 'origin/main' into prabhjot/move-unsupported-version-test
2 parents cfda0fa + db87253 commit bb4c7df

4 files changed

Lines changed: 36 additions & 4 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "minor",
3+
"area": "feature",
4+
"workstream": "OnFetchProfile",
5+
"comment": "move onfetchProfile to stable",
6+
"packageName": "@azure/communication-react",
7+
"email": "97124699+prabhjot-msft@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "minor",
3+
"area": "feature",
4+
"workstream": "OnFetchProfile",
5+
"comment": "move onfetchProfile to stable",
6+
"packageName": "@azure/communication-react",
7+
"email": "97124699+prabhjot-msft@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}

common/config/babel/features.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ module.exports = {
2121
"in-progress-beta-feature-demo",
2222
// Feature for remote UFD
2323
"remote-ufd",
24-
// Feature for on fetch profile
25-
"on-fetch-profile",
2624
// Block joining calls if the user is on an unsupported browser
2725
"unsupported-browser",
2826
],
@@ -78,5 +76,7 @@ module.exports = {
7876
"stabilizedDemo",
7977
// Feature for RTT
8078
"rtt",
79+
// Feature for on fetch profile
80+
"on-fetch-profile"
8181
]
8282
}

packages/communication-react/review/stable/communication-react.api.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export type AzureCommunicationChatAdapterArgs = {
235235
displayName: string;
236236
credential: CommunicationTokenCredential;
237237
threadId: string;
238+
chatAdapterOptions?: ChatAdapterOptions;
238239
};
239240

240241
// @public
@@ -1812,6 +1813,11 @@ export interface CaptionsSettingsModalStrings {
18121813
// @public
18131814
export type ChatAdapter = ChatAdapterThreadManagement & AdapterState<ChatAdapterState> & Disposable_2 & ChatAdapterSubscribers;
18141815

1816+
// @public
1817+
export type ChatAdapterOptions = {
1818+
onFetchProfile?: OnFetchChatProfileCallback;
1819+
};
1820+
18151821
// @public
18161822
export type ChatAdapterState = ChatAdapterUiState & ChatCompositeClientState;
18171823

@@ -2022,6 +2028,11 @@ export type ChatParticipantListSelector = (state: ChatClientState, props: ChatBa
20222028
participants: ParticipantListParticipant[];
20232029
};
20242030

2031+
// @public
2032+
export type ChatProfile = {
2033+
displayName?: string;
2034+
};
2035+
20252036
// @public
20262037
export type ChatReturnProps<Component extends (props: any) => JSX.Element> = GetChatSelector<Component> extends ((state: ChatClientState, props: any) => any) ? ReturnType<GetChatSelector<Component>> & Common<ChatHandlers, Parameters<Component>[0]> : never;
20272038

@@ -2537,10 +2548,10 @@ export const createAzureCommunicationCallWithChatAdapter: ({ userId, displayName
25372548
export const createAzureCommunicationCallWithChatAdapterFromClients: ({ callClient, callAgent, callLocator, chatClient, chatThreadClient, callAdapterOptions }: AzureCommunicationCallWithChatAdapterFromClientArgs) => Promise<CallWithChatAdapter>;
25382549

25392550
// @public
2540-
export const createAzureCommunicationChatAdapter: ({ endpoint: endpointUrl, userId, displayName, credential, threadId }: AzureCommunicationChatAdapterArgs) => Promise<ChatAdapter>;
2551+
export const createAzureCommunicationChatAdapter: ({ endpoint: endpointUrl, userId, displayName, credential, threadId, chatAdapterOptions }: AzureCommunicationChatAdapterArgs) => Promise<ChatAdapter>;
25412552

25422553
// @public
2543-
export function createAzureCommunicationChatAdapterFromClient(chatClient: StatefulChatClient, chatThreadClient: ChatThreadClient): Promise<ChatAdapter>;
2554+
export function createAzureCommunicationChatAdapterFromClient(chatClient: StatefulChatClient, chatThreadClient: ChatThreadClient, chatAdapterOptions?: ChatAdapterOptions): Promise<ChatAdapter>;
25442555

25452556
// @public
25462557
export type CreateDefaultCallingHandlers = (callClient: StatefulCallClient, callAgent: CallAgent | undefined, deviceManager: StatefulDeviceManager | undefined, call: Call | undefined, options?: CallingHandlersOptions) => CallingHandlers;
@@ -3869,6 +3880,9 @@ export type NotificationTarget = 'assignedBreakoutRoomOpened' | 'assignedBreakou
38693880
// @public
38703881
export type NotificationType = keyof NotificationStackStrings;
38713882

3883+
// @public
3884+
export type OnFetchChatProfileCallback = (userId: string, defaultProfile?: ChatProfile) => Promise<ChatProfile | undefined>;
3885+
38723886
// @public
38733887
export type OnFetchProfileCallback = (userId: string, defaultProfile?: Profile) => Promise<Profile | undefined>;
38743888

0 commit comments

Comments
 (0)