@voxket-ai/voxket-live 1.0.119 → 1.0.121

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/App.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { defaultWidgetStyles } from './styles';
2
2
  declare function App({ agentId, participantName, baseUrl, appSecret, appId, className, styles, prompts, statusMessage, welcomeTitle, welcomeSubTitle }: {
3
- agentId: string;
4
- participantName: string;
5
- baseUrl: string;
6
- appSecret: string;
7
- appId: string;
3
+ agentId?: string;
4
+ participantName?: string;
5
+ baseUrl?: string;
6
+ appSecret?: string;
7
+ appId?: string;
8
8
  className?: string;
9
9
  styles?: typeof defaultWidgetStyles;
10
10
  prompts?: string[];
@@ -16,5 +16,5 @@ interface SessionViewProps {
16
16
  displayType?: DisplayType;
17
17
  onBack?: () => void;
18
18
  }
19
- export declare const SessionView: ({ disabled, capabilities, sessionStarted, ref, participantName, loadingText, theme, client, displayType, onBack, }: React.ComponentProps<"div"> & SessionViewProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const SessionView: React.ForwardRefExoticComponent<SessionViewProps & React.RefAttributes<HTMLElement>>;
20
20
  export {};
@@ -1,8 +1,9 @@
1
+ import { default as React } from 'react';
1
2
  import { AgentState, TrackReference } from '@livekit/components-react';
2
3
  interface AgentAudioTileProps {
3
4
  state: AgentState;
4
5
  audioTrack?: TrackReference;
5
6
  className?: string;
6
7
  }
7
- export declare const AgentTile: ({ state, audioTrack, className, ref, }: React.ComponentProps<"div"> & AgentAudioTileProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const AgentTile: React.ForwardRefExoticComponent<AgentAudioTileProps & React.RefAttributes<HTMLDivElement>>;
8
9
  export {};
@@ -1,5 +1,5 @@
1
1
  import { LocalAudioTrack, LocalVideoTrack } from 'livekit-client';
2
- import { SelectTrigger } from '../../components/ui/select';
2
+ import { SelectTrigger } from '../ui/select';
3
3
  type DeviceSelectProps = React.ComponentProps<typeof SelectTrigger> & {
4
4
  kind: MediaDeviceKind;
5
5
  track?: LocalAudioTrack | LocalVideoTrack | undefined;
@@ -1,5 +1,5 @@
1
1
  import { Track } from 'livekit-client';
2
- import { Toggle } from '../../components/ui/toggle';
2
+ import { Toggle } from '../ui/toggle';
3
3
  import * as React from 'react';
4
4
  export type TrackToggleProps = React.ComponentProps<typeof Toggle> & {
5
5
  source: Track.Source;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { ThemeType } from '../styles';
2
3
  import { SessionModality } from '../types/core';
3
4
  interface WelcomeProps {
@@ -16,5 +17,5 @@ interface WelcomeProps {
16
17
  theme?: ThemeType;
17
18
  modalities?: SessionModality[];
18
19
  }
19
- export declare const Welcome: ({ disabled, onStartCall, onStartChat, onStartVideo, prompts, statusMessage, title, subTitle, theme, modalities, }: WelcomeProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const Welcome: React.ForwardRefExoticComponent<WelcomeProps & React.RefAttributes<HTMLDivElement>>;
20
21
  export {};
@@ -34,9 +34,10 @@ export interface VoxketWidgetProps {
34
34
  onDisplayTypeChange?: (displayType: DisplayType) => void;
35
35
  voxketClient?: VoxketClient;
36
36
  }
37
- export default function Widget(props: VoxketWidgetProps & {
37
+ declare function WrappedWidget(props: VoxketWidgetProps & {
38
38
  prompts?: string[];
39
39
  statusMessage?: string;
40
40
  welcomeTitle?: string;
41
41
  welcomeSubTitle?: string;
42
- }): import("react/jsx-runtime").JSX.Element | null;
42
+ }): import("react/jsx-runtime").JSX.Element;
43
+ export default WrappedWidget;
@@ -65,6 +65,7 @@ export declare class VoxketClient extends VoxketEventEmitter<VoxketEvents & RpcE
65
65
  private textStreamHandlersRegistered;
66
66
  private currentAgentInfo;
67
67
  private chatMessages;
68
+ private activeTranscriptions;
68
69
  private isAgentConnected;
69
70
  private agentState;
70
71
  constructor(config: VoxketClientConfig);
@@ -1,5 +1,5 @@
1
1
  import { ReceivedChatMessage } from '@livekit/components-react';
2
2
  export default function useChatAndTranscription(): {
3
3
  messages: ReceivedChatMessage[];
4
- send: (message: string, options?: import('livekit-client').SendTextOptions) => Promise<ReceivedChatMessage>;
4
+ send: (message: string) => Promise<void>;
5
5
  };