@voxket-ai/voxket-live 1.0.158 → 1.1.0
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/components/{deep-analysis.d.ts → common/deep-analysis.d.ts} +2 -2
- package/dist/components/common/index.d.ts +12 -0
- package/dist/components/{interactive-component.d.ts → common/interactive-component.d.ts} +2 -2
- package/dist/components/{session-timer.d.ts → common/session-timer.d.ts} +1 -1
- package/dist/components/common/unified-control-bar.d.ts +58 -0
- package/dist/components/{welcome.d.ts → common/welcome.d.ts} +2 -2
- package/dist/components/{chat-view.d.ts → modalities/chat/chat-view.d.ts} +3 -3
- package/dist/components/{chat → modalities/chat/components}/attachment-message.d.ts +2 -2
- package/dist/components/{chat → modalities/chat/components}/chat-message.d.ts +2 -2
- package/dist/components/modalities/chat/components/index.d.ts +10 -0
- package/dist/components/{chat → modalities/chat/components}/markdown-utils.d.ts +1 -1
- package/dist/components/{chat → modalities/chat/components}/thinking-indicator.d.ts +1 -1
- package/dist/components/{chat → modalities/chat/components}/tool-execution-indicator.d.ts +2 -2
- package/dist/components/modalities/chat/index.d.ts +5 -0
- package/dist/components/modalities/index.d.ts +6 -0
- package/dist/components/{video → modalities/video/components}/index.d.ts +1 -1
- package/dist/components/{video → modalities/video/components}/video-controls.d.ts +1 -1
- package/dist/components/{video → modalities/video/components}/video-grid.d.ts +1 -1
- package/dist/components/{video → modalities/video/components}/video-tile.d.ts +1 -1
- package/dist/components/modalities/video/index.d.ts +5 -0
- package/dist/components/{video-view.d.ts → modalities/video/video-view.d.ts} +3 -3
- package/dist/components/modalities/voice/index.d.ts +4 -0
- package/dist/components/{session-view.d.ts → modalities/voice/session-view.d.ts} +2 -2
- package/dist/core/agent-manager.d.ts +50 -0
- package/dist/core/chat-manager.d.ts +72 -0
- package/dist/core/client.d.ts +80 -190
- package/dist/core/connection-manager.d.ts +81 -0
- package/dist/core/index.d.ts +9 -1
- package/dist/core/media-manager.d.ts +177 -0
- package/dist/core/stream-handler-manager.d.ts +91 -0
- package/dist/core/ui-renderer.d.ts +76 -0
- package/dist/index.cjs +54 -54
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.js +10265 -9714
- package/package.json +1 -1
- package/dist/components/chat/chat-input-panel.d.ts +0 -11
- /package/dist/components/{alert-toast.d.ts → common/alert-toast.d.ts} +0 -0
- /package/dist/components/{common-popup-trigger.d.ts → common/common-popup-trigger.d.ts} +0 -0
- /package/dist/components/{error-boundary.d.ts → common/error-boundary.d.ts} +0 -0
- /package/dist/components/{session-logger.d.ts → common/session-logger.d.ts} +0 -0
- /package/dist/components/{chat → modalities/chat/components}/default-views.d.ts +0 -0
- /package/dist/components/{chat → modalities/chat/components}/streaming-text.d.ts +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DisplayType, PopupPosition } from '../components/widget';
|
|
3
|
+
import { WidgetTheme } from '../styles';
|
|
4
|
+
import { SessionModality, VoxketConfig } from '../types/core';
|
|
5
|
+
export interface RenderUIOptions {
|
|
6
|
+
target?: string | HTMLElement;
|
|
7
|
+
modality?: SessionModality[];
|
|
8
|
+
theme?: WidgetTheme | 'dark' | 'light' | 'vox';
|
|
9
|
+
component?: 'widget' | 'session' | 'chat-only' | 'voice-only';
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
autoStart?: boolean;
|
|
13
|
+
agentId?: string;
|
|
14
|
+
participantName?: string;
|
|
15
|
+
displayType?: DisplayType;
|
|
16
|
+
popupPosition?: PopupPosition;
|
|
17
|
+
popupTriggerText?: string;
|
|
18
|
+
popupModalityMode?: 'all' | 'voice' | 'chat' | 'video';
|
|
19
|
+
width?: string;
|
|
20
|
+
height?: string;
|
|
21
|
+
onDisplayTypeChange?: (displayType: DisplayType) => void;
|
|
22
|
+
prompts?: string[];
|
|
23
|
+
statusMessage?: string;
|
|
24
|
+
welcomeTitle?: string;
|
|
25
|
+
welcomeSubTitle?: string;
|
|
26
|
+
loadingText?: string;
|
|
27
|
+
participantMetadata?: Record<string, any>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* UIRenderer
|
|
31
|
+
*
|
|
32
|
+
* Manages all UI rendering functionality including:
|
|
33
|
+
* - React component rendering
|
|
34
|
+
* - DOM management
|
|
35
|
+
* - React root lifecycle
|
|
36
|
+
* - Target element resolution
|
|
37
|
+
* - Component cleanup
|
|
38
|
+
*/
|
|
39
|
+
export declare class UIRenderer {
|
|
40
|
+
private renderedComponents;
|
|
41
|
+
private config;
|
|
42
|
+
private voxketClient;
|
|
43
|
+
constructor(config: VoxketConfig, voxketClient: any);
|
|
44
|
+
/**
|
|
45
|
+
* Render UI component
|
|
46
|
+
*/
|
|
47
|
+
renderUI(options?: RenderUIOptions): void;
|
|
48
|
+
/**
|
|
49
|
+
* Remove UI component from a specific target
|
|
50
|
+
*/
|
|
51
|
+
removeUI(target?: string | HTMLElement): void;
|
|
52
|
+
/**
|
|
53
|
+
* Remove all UI components
|
|
54
|
+
*/
|
|
55
|
+
removeAllUI(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Force cleanup of fullscreen overlays
|
|
58
|
+
*/
|
|
59
|
+
private forceCleanupFullscreenOverlays;
|
|
60
|
+
/**
|
|
61
|
+
* Resolve target element from string selector or HTMLElement
|
|
62
|
+
*/
|
|
63
|
+
private resolveTarget;
|
|
64
|
+
/**
|
|
65
|
+
* Get a stable key for a target element
|
|
66
|
+
*/
|
|
67
|
+
private getTargetKey;
|
|
68
|
+
/**
|
|
69
|
+
* Build widget props from render options
|
|
70
|
+
*/
|
|
71
|
+
private buildWidgetProps;
|
|
72
|
+
/**
|
|
73
|
+
* Update configuration
|
|
74
|
+
*/
|
|
75
|
+
updateConfig(config: VoxketConfig): void;
|
|
76
|
+
}
|