Skip to content

Commit 10c2380

Browse files
committed
docs
1 parent 4f8fbac commit 10c2380

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

packages/core/etc/components-core.api.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@ export type ChatOptions = {
8686
};
8787

8888
// @public (undocumented)
89-
export function computeMenuPosition(button: HTMLElement, menu: HTMLElement): Promise<{
90-
x: number;
91-
y: number;
92-
}>;
89+
export function computeMenuPosition(button: HTMLElement, menu: HTMLElement, onUpdate?: (x: number, y: number) => void): () => void;
9390

9491
// @public (undocumented)
9592
export function connectedParticipantObserver(room: Room, identity: string, options?: ConnectedParticipantObserverOptions): Observable<RemoteParticipant | undefined>;

packages/react/etc/components-react.api.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,16 +1256,12 @@ export interface VideoTrackProps extends React_2.VideoHTMLAttributes<HTMLVideoEl
12561256

12571257
// @beta (undocumented)
12581258
export interface VoiceAssistant {
1259-
// (undocumented)
12601259
agent: RemoteParticipant | undefined;
1261-
// (undocumented)
12621260
agentAttributes: RemoteParticipant['attributes'] | undefined;
1263-
// (undocumented)
12641261
agentTranscriptions: ReceivedTranscriptionSegment[];
1265-
// (undocumented)
12661262
audioTrack: TrackReference_3 | undefined;
1267-
// (undocumented)
12681263
state: AgentState;
1264+
videoTrack: TrackReference_3 | undefined;
12691265
}
12701266

12711267
// @beta (undocumented)

packages/react/src/hooks/useVoiceAssistant.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,29 @@ export type AgentState =
2323
* @beta
2424
*/
2525
export interface VoiceAssistant {
26+
/**
27+
* The agent participant.
28+
*/
2629
agent: RemoteParticipant | undefined;
30+
/**
31+
* The current state of the agent.
32+
*/
2733
state: AgentState;
34+
/**
35+
* The microphone track published by the agent or associated avatar worker (if any).
36+
*/
2837
audioTrack: TrackReference | undefined;
38+
/**
39+
* The camera track published by the agent or associated avatar worker (if any).
40+
*/
2941
videoTrack: TrackReference | undefined;
42+
/**
43+
* The transcriptions of the agent's microphone track (if any).
44+
*/
3045
agentTranscriptions: ReceivedTranscriptionSegment[];
46+
/**
47+
* The agent's participant attributes.
48+
*/
3149
agentAttributes: RemoteParticipant['attributes'] | undefined;
3250
}
3351

0 commit comments

Comments
 (0)