@voxket-ai/voxket-live 1.1.53 → 1.1.55

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.
@@ -15,4 +15,13 @@ export declare class VoxketErrorBoundary extends React.Component<Props, State> {
15
15
  componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
16
16
  render(): React.ReactNode;
17
17
  }
18
+ export declare const FallbackUI: () => React.DetailedReactHTMLElement<{
19
+ style: {
20
+ padding: string;
21
+ border: string;
22
+ borderRadius: string;
23
+ background: string;
24
+ color: "#cc0000";
25
+ };
26
+ }, HTMLElement>;
18
27
  export {};
@@ -9,6 +9,7 @@ interface ChatViewProps {
9
9
  displayType?: DisplayType;
10
10
  onEndChat?: () => void;
11
11
  showTimer?: boolean;
12
+ isTranscriptionMode?: boolean;
12
13
  }
13
- export declare function ChatView({ client, theme, onBack, disabled, displayType, onEndChat, showTimer, }: ChatViewProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function ChatView({ client, theme, onBack, disabled, displayType, onEndChat, showTimer, isTranscriptionMode, }: ChatViewProps): import("react/jsx-runtime").JSX.Element;
14
15
  export {};
@@ -38,7 +38,7 @@ export interface VoxketWidgetProps {
38
38
  onDisplayTypeChange?: (displayType: DisplayType) => void;
39
39
  voxketClient?: VoxketClient;
40
40
  participantMetadata?: Record<string, any>;
41
- popupModalityMode?: 'all' | 'voice' | 'chat' | 'video';
41
+ popupModalityMode?: 'all' | 'voice' | 'chat';
42
42
  popupTriggerLogoUrl?: string;
43
43
  }
44
44
  declare function WrappedWidget(props: VoxketWidgetProps & {
@@ -2,7 +2,7 @@ import { Room, ConnectionState } from 'livekit-client';
2
2
  import { VoxketEventEmitter } from './event-emitter';
3
3
  import { PluginManager } from '../plugins/plugin-system';
4
4
  import { RenderUIOptions } from './ui-renderer';
5
- import { VoxketConfig, SessionConfig, VoxketSession, VoxketEvents, SessionState, SessionMetrics, AgentInfo, ParticipantInfo, ChatMessage, TranscriptionSegment, SessionModality } from '../types/core';
5
+ import { VoxketConfig, SessionConfig, VoxketSession, VoxketEvents, SessionState, SessionMetrics, AgentInfo, ParticipantInfo, ChatMessage, TranscriptionSegment, SessionModality, VoxketError } from '../types/core';
6
6
  import { VoxketInteractiveView, ViewPresentationMode, InteractiveUIState, RpcEvents } from '../types/rpc';
7
7
  export interface VoxketClientConfig extends VoxketConfig {
8
8
  agentId?: string;
@@ -11,7 +11,7 @@ export interface VoxketClientConfig extends VoxketConfig {
11
11
  participantMetadata?: Record<string, any>;
12
12
  onConnected?: () => void;
13
13
  onDisconnected?: (reason?: string) => void;
14
- onError?: (error: Error) => void;
14
+ onError?: (error: VoxketError) => void;
15
15
  onMessageReceived?: (message: ChatMessage) => void;
16
16
  onTranscriptionReceived?: (transcription: TranscriptionSegment) => void;
17
17
  onSessionStateChanged?: (state: SessionState) => void;
@@ -1,6 +1,3 @@
1
- /**
2
- * Type-safe event emitter for Voxket SDK
3
- */
4
1
  export type EventMap = Record<string, (...args: any[]) => void>;
5
2
  export declare class VoxketEventEmitter<T extends EventMap> {
6
3
  private listeners;
@@ -1,6 +1,7 @@
1
1
  import { Room } from 'livekit-client';
2
2
  import { VoxketEventEmitter } from '../core/event-emitter';
3
3
  import { VoxketInteractiveView, ViewPresentationMode, InteractiveUIState, RpcEvents } from '../types/rpc';
4
+ import { VoxketEvents } from '../types/core';
4
5
  /**
5
6
  * Manager for Frontend RPC functionality
6
7
  */
@@ -8,8 +9,9 @@ export declare class RpcManager extends VoxketEventEmitter<RpcEvents> {
8
9
  private room;
9
10
  private registeredMethods;
10
11
  private activeInteractions;
12
+ private eventEmitter;
11
13
  private currentInteraction;
12
- constructor(room?: Room);
14
+ constructor(eventEmitter: VoxketEventEmitter<VoxketEvents>, room?: Room);
13
15
  /**
14
16
  * Set the LiveKit room instance
15
17
  */
@@ -11,8 +11,10 @@ export interface RenderUIOptions {
11
11
  style?: React.CSSProperties;
12
12
  autoStart?: boolean;
13
13
  agentId?: string;
14
+ popupBgColor?: string;
14
15
  participantName?: string;
15
16
  displayType?: DisplayType;
17
+ popupTriggerBgColor?: string;
16
18
  popupPosition?: PopupPosition;
17
19
  popupTriggerText?: string;
18
20
  popupModalityMode?: 'all' | 'voice' | 'chat' | 'video';