@voxket-ai/voxket-live 1.0.152 → 1.0.154
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/common-popup-trigger.d.ts +21 -0
- package/dist/core/client.d.ts +9 -0
- package/dist/index.cjs +47 -47
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +229 -195
- package/dist/logo.png +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type CommonPopupPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
3
|
+
export interface CommonPopupTriggerProps {
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
position?: CommonPopupPosition;
|
|
6
|
+
size?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Scale of the logo inside the circle (0 to 1). Default is 0.75 (75%).
|
|
12
|
+
*/
|
|
13
|
+
logoScale?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* CommonPopupTrigger
|
|
17
|
+
* A theme-agnostic popup trigger: black circular button with logo.png centered.
|
|
18
|
+
* Uses assets from public/logo.png, positioned in any corner.
|
|
19
|
+
*/
|
|
20
|
+
export declare const CommonPopupTrigger: React.FC<CommonPopupTriggerProps>;
|
|
21
|
+
export default CommonPopupTrigger;
|
package/dist/core/client.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export declare class VoxketClient extends VoxketEventEmitter<VoxketEvents & RpcE
|
|
|
71
71
|
private activeTranscriptions;
|
|
72
72
|
private isAgentConnected;
|
|
73
73
|
private agentState;
|
|
74
|
+
private _eventEmitters;
|
|
74
75
|
constructor(config: VoxketClientConfig);
|
|
75
76
|
private setupEventListeners;
|
|
76
77
|
private setupRpcEventForwarding;
|
|
@@ -251,6 +252,14 @@ export declare class VoxketClient extends VoxketEventEmitter<VoxketEvents & RpcE
|
|
|
251
252
|
* client.registerEventEmitter('custom_event', (data) => { ... });
|
|
252
253
|
*/
|
|
253
254
|
registerEventEmitter(topic: string, handler: (data: string) => void): void;
|
|
255
|
+
/**
|
|
256
|
+
* Get the list of registered custom event emitters (for debugging)
|
|
257
|
+
*/
|
|
258
|
+
getRegisteredEventEmitters(): string[];
|
|
259
|
+
/**
|
|
260
|
+
* Check if a custom event emitter is registered for a topic
|
|
261
|
+
*/
|
|
262
|
+
hasEventEmitter(topic: string): boolean;
|
|
254
263
|
/**
|
|
255
264
|
* Convert markdown text to plain text by removing common markdown formatting
|
|
256
265
|
* @param markdownText The markdown text to convert
|