@voxket-ai/voxket-live 1.0.17
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/LICENSE +21 -0
- package/README.md +54 -0
- package/dist/App.d.ts +21 -0
- package/dist/components/alert-toast.d.ts +7 -0
- package/dist/components/livekit/agent-control-bar/agent-control-bar.d.ts +18 -0
- package/dist/components/livekit/agent-control-bar/hooks/use-agent-control-bar.d.ts +28 -0
- package/dist/components/livekit/agent-control-bar/hooks/use-publish-permissions.d.ts +7 -0
- package/dist/components/livekit/agent-tile.d.ts +8 -0
- package/dist/components/livekit/avatar-tile.d.ts +7 -0
- package/dist/components/livekit/chat/chat-entry.d.ts +9 -0
- package/dist/components/livekit/chat/chat-input.d.ts +6 -0
- package/dist/components/livekit/chat/chat-message-view.d.ts +8 -0
- package/dist/components/livekit/chat/hooks/utils.d.ts +9 -0
- package/dist/components/livekit/device-select.d.ts +14 -0
- package/dist/components/livekit/media-tiles.d.ts +8 -0
- package/dist/components/livekit/track-toggle.d.ts +8 -0
- package/dist/components/livekit/video-tile.d.ts +3 -0
- package/dist/components/session-view.d.ts +14 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/welcome.d.ts +14 -0
- package/dist/components/widget.d.ts +24 -0
- package/dist/hooks/useChatAndTranscription.d.ts +5 -0
- package/dist/hooks/useConnectionDetails.d.ts +22 -0
- package/dist/hooks/useDebug.d.ts +4 -0
- package/dist/index.cjs +188 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +36620 -0
- package/dist/lib/types.d.ts +32 -0
- package/dist/lib/utils.d.ts +7 -0
- package/dist/main.d.ts +1 -0
- package/dist/styles.d.ts +10 -0
- package/dist/vite.svg +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TranscriptionSegment } from 'livekit-client';
|
|
2
|
+
export interface CombinedTranscription extends TranscriptionSegment {
|
|
3
|
+
role: 'assistant' | 'user';
|
|
4
|
+
receivedAtMediaTimestamp: number;
|
|
5
|
+
receivedAt: number;
|
|
6
|
+
}
|
|
7
|
+
export type ThemeMode = 'dark';
|
|
8
|
+
export interface AppConfig {
|
|
9
|
+
pageTitle: string;
|
|
10
|
+
pageDescription: string;
|
|
11
|
+
companyName: string;
|
|
12
|
+
suportsChatInput: boolean;
|
|
13
|
+
suportsVideoInput: boolean;
|
|
14
|
+
suportsScreenShare: boolean;
|
|
15
|
+
logo: string;
|
|
16
|
+
startButtonText: string;
|
|
17
|
+
accent?: string;
|
|
18
|
+
logoDark?: string;
|
|
19
|
+
accentDark?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface SandboxConfig {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
type: 'string';
|
|
24
|
+
value: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'number';
|
|
27
|
+
value: number;
|
|
28
|
+
} | {
|
|
29
|
+
type: 'boolean';
|
|
30
|
+
value: boolean;
|
|
31
|
+
} | null;
|
|
32
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import { Room } from 'livekit-client';
|
|
3
|
+
import { ReceivedChatMessage, TextStreamData } from '@livekit/components-react';
|
|
4
|
+
export declare const THEME_STORAGE_KEY = "theme-mode";
|
|
5
|
+
export declare const THEME_MEDIA_QUERY = "(prefers-color-scheme: dark)";
|
|
6
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
7
|
+
export declare function transcriptionToChatMessage(textStream: TextStreamData, room: Room): ReceivedChatMessage;
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/styles.d.ts
ADDED
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@voxket-ai/voxket-live",
|
|
3
|
+
"version": "1.0.17",
|
|
4
|
+
"description": "A React widget for embedding Voxket-powered audio/video/chat experiences.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/voxket-ai/voxket-web-sdk.git"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./dist/index.js",
|
|
19
|
+
"require": "./dist/index.cjs",
|
|
20
|
+
"types": "./dist/index.d.ts"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"registry": "https://registry.npmjs.org/"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"react",
|
|
28
|
+
"component",
|
|
29
|
+
"livekit",
|
|
30
|
+
"widget",
|
|
31
|
+
"audio",
|
|
32
|
+
"video",
|
|
33
|
+
"chat"
|
|
34
|
+
],
|
|
35
|
+
"author": "Shashank Sanket",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"scripts": {
|
|
38
|
+
"dev": "vite",
|
|
39
|
+
"build": "vite build",
|
|
40
|
+
"lint": "eslint .",
|
|
41
|
+
"preview": "vite preview",
|
|
42
|
+
"prepublish": "rm -rf ./dist && npm run build"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@emotion/react": "~11.14.0",
|
|
46
|
+
"@emotion/styled": "~11.14.0",
|
|
47
|
+
"@livekit/components-react": "~2.9.10",
|
|
48
|
+
"@mui/icons-material": "~7.1.2",
|
|
49
|
+
"@mui/material": "~7.1.2",
|
|
50
|
+
"@phosphor-icons/react": "~2.1.10",
|
|
51
|
+
"@radix-ui/react-select": "~2.2.5",
|
|
52
|
+
"@radix-ui/react-toggle": "~1.1.9",
|
|
53
|
+
"@tailwindcss/vite": "~4.1.10",
|
|
54
|
+
"ajv": "~8.17.1",
|
|
55
|
+
"ajv-draft-04": "~1.0.0",
|
|
56
|
+
"class-variance-authority": "~0.7.1",
|
|
57
|
+
"clsx": "~2.1.1",
|
|
58
|
+
"livekit-client": "~2.13.8",
|
|
59
|
+
"lucide-react": "~0.522.0",
|
|
60
|
+
"motion": "~12.18.1",
|
|
61
|
+
"path": "~0.12.7",
|
|
62
|
+
"react": "^19.1.0",
|
|
63
|
+
"react-dom": "^19.1.0",
|
|
64
|
+
"sonner": "~2.0.5",
|
|
65
|
+
"tailwind-merge": "~3.3.1",
|
|
66
|
+
"url": "~0.11.4"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@eslint/js": "^9.25.0",
|
|
70
|
+
"@types/node": "~24.0.3",
|
|
71
|
+
"@types/react": "^19.1.2",
|
|
72
|
+
"@types/react-dom": "^19.1.2",
|
|
73
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
74
|
+
"autoprefixer": "~10.4.21",
|
|
75
|
+
"eslint": "^9.25.0",
|
|
76
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
77
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
78
|
+
"globals": "^16.0.0",
|
|
79
|
+
"postcss": "~8.5.6",
|
|
80
|
+
"tailwindcss": "~4.1.10",
|
|
81
|
+
"typescript": "~5.8.3",
|
|
82
|
+
"typescript-eslint": "^8.30.1",
|
|
83
|
+
"vite": "^6.3.5",
|
|
84
|
+
"vite-plugin-dts": "~4.5.4"
|
|
85
|
+
}
|
|
86
|
+
}
|