@voxket-ai/voxket-live 1.0.35 → 1.0.36

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.
Files changed (62) hide show
  1. package/dist/components/chat-view.d.ts +13 -0
  2. package/dist/components/compound/index.d.ts +11 -0
  3. package/dist/components/compound/session-content.d.ts +8 -0
  4. package/dist/components/compound/session-controls.d.ts +10 -0
  5. package/dist/components/compound/session-footer.d.ts +9 -0
  6. package/dist/components/compound/session-header.d.ts +11 -0
  7. package/dist/components/compound/types.d.ts +28 -0
  8. package/dist/components/compound/voxket-session.d.ts +12 -0
  9. package/dist/components/interactive-component.d.ts +11 -0
  10. package/dist/components/livekit/agent-control-bar/agent-control-bar.d.ts +2 -1
  11. package/dist/components/livekit/agent-control-bar/hooks/use-agent-control-bar.d.ts +17 -4
  12. package/dist/components/livekit/agent-control-bar/hooks/use-publish-permissions.d.ts +1 -1
  13. package/dist/components/livekit/device-select.d.ts +2 -1
  14. package/dist/components/livekit/track-toggle.d.ts +2 -2
  15. package/dist/components/session-view.d.ts +5 -1
  16. package/dist/components/video/index.d.ts +8 -0
  17. package/dist/components/video/video-controls.d.ts +2 -0
  18. package/dist/components/video/video-grid.d.ts +2 -0
  19. package/dist/components/video/video-tile.d.ts +2 -0
  20. package/dist/components/video-view.d.ts +13 -0
  21. package/dist/components/welcome.d.ts +5 -1
  22. package/dist/components/widget.d.ts +11 -0
  23. package/dist/core/client.d.ts +183 -0
  24. package/dist/core/event-emitter.d.ts +35 -0
  25. package/dist/core/index.d.ts +9 -0
  26. package/dist/core/rpc-manager.d.ts +46 -0
  27. package/dist/core/sdk.d.ts +0 -0
  28. package/dist/examples/agent-rpc-example.d.ts +38 -0
  29. package/dist/examples/assignment-view.d.ts +11 -0
  30. package/dist/examples/refactored-usage-examples.d.ts +0 -0
  31. package/dist/examples/rpc-examples.d.ts +5 -0
  32. package/dist/hooks/sdk/index.d.ts +10 -0
  33. package/dist/hooks/sdk/use-chat.d.ts +24 -0
  34. package/dist/hooks/sdk/use-connection.d.ts +24 -0
  35. package/dist/hooks/sdk/use-media.d.ts +33 -0
  36. package/dist/hooks/sdk/use-session.d.ts +26 -0
  37. package/dist/hooks/sdk/use-video.d.ts +2 -0
  38. package/dist/hooks/useVoxketClient.d.ts +59 -0
  39. package/dist/index.cjs +394 -132
  40. package/dist/index.css +1 -1
  41. package/dist/index.d.ts +19 -3
  42. package/dist/index.js +46232 -33965
  43. package/dist/plugins/index.d.ts +7 -0
  44. package/dist/plugins/modalities/chat-plugin.d.ts +31 -0
  45. package/dist/plugins/modalities/voice-plugin.d.ts +8 -0
  46. package/dist/plugins/plugin-system.d.ts +64 -0
  47. package/dist/providers/voxket-provider.d.ts +33 -0
  48. package/dist/styles.d.ts +36 -1
  49. package/dist/themes/index.d.ts +5 -0
  50. package/dist/themes/theme-system.d.ts +89 -0
  51. package/dist/types/chat.d.ts +0 -0
  52. package/dist/types/client.d.ts +0 -0
  53. package/dist/types/connection.d.ts +0 -0
  54. package/dist/types/core.d.ts +186 -0
  55. package/dist/types/events.d.ts +0 -0
  56. package/dist/types/media.d.ts +0 -0
  57. package/dist/types/recording.d.ts +0 -0
  58. package/dist/types/rpc.d.ts +143 -0
  59. package/dist/types/session.d.ts +0 -0
  60. package/dist/types/ui.d.ts +0 -0
  61. package/dist/types/video.d.ts +92 -0
  62. package/package.json +19 -9
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Video Component Types
3
+ * Core types for video functionality in the Voxket SDK
4
+ */
5
+ export interface VideoTrack {
6
+ id: string;
7
+ participantId: string;
8
+ isLocal: boolean;
9
+ isEnabled: boolean;
10
+ isScreenShare: boolean;
11
+ dimensions?: {
12
+ width: number;
13
+ height: number;
14
+ };
15
+ source?: 'camera' | 'screen' | 'app';
16
+ }
17
+ export interface VideoLayout {
18
+ type: 'grid' | 'speaker' | 'sidebar' | 'picture-in-picture' | 'gallery';
19
+ maxParticipants?: number;
20
+ showLocalVideo?: boolean;
21
+ aspectRatio?: '16:9' | '4:3' | '1:1' | 'auto';
22
+ }
23
+ export interface VideoTileProps {
24
+ track: VideoTrack;
25
+ participantName?: string;
26
+ showControls?: boolean;
27
+ showName?: boolean;
28
+ showMuteIndicator?: boolean;
29
+ isPinned?: boolean;
30
+ className?: string;
31
+ onClick?: (track: VideoTrack) => void;
32
+ onPin?: (track: VideoTrack) => void;
33
+ onUnpin?: (track: VideoTrack) => void;
34
+ }
35
+ export interface VideoGridProps {
36
+ tracks: VideoTrack[];
37
+ layout: VideoLayout;
38
+ className?: string;
39
+ onLayoutChange?: (layout: VideoLayout) => void;
40
+ onTrackClick?: (track: VideoTrack) => void;
41
+ maxVisibleTracks?: number;
42
+ showPagination?: boolean;
43
+ }
44
+ export interface VideoControlsProps {
45
+ localTrack?: VideoTrack;
46
+ onToggleCamera?: () => void;
47
+ onToggleScreenShare?: () => void;
48
+ onLayoutChange?: (layout: VideoLayout) => void;
49
+ showLayoutControls?: boolean;
50
+ showCameraControls?: boolean;
51
+ showScreenShareControls?: boolean;
52
+ className?: string;
53
+ }
54
+ export interface PictureInPictureProps {
55
+ primaryTrack: VideoTrack;
56
+ secondaryTrack?: VideoTrack;
57
+ position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
58
+ size?: 'small' | 'medium' | 'large';
59
+ showControls?: boolean;
60
+ draggable?: boolean;
61
+ onSwap?: () => void;
62
+ className?: string;
63
+ }
64
+ export interface VideoState {
65
+ tracks: VideoTrack[];
66
+ layout: VideoLayout;
67
+ pinnedTrack?: VideoTrack;
68
+ isRecording: boolean;
69
+ pictureInPicture?: {
70
+ enabled: boolean;
71
+ primaryTrack?: VideoTrack;
72
+ secondaryTrack?: VideoTrack;
73
+ };
74
+ }
75
+ export interface VideoHookReturn {
76
+ tracks: VideoTrack[];
77
+ localTrack?: VideoTrack;
78
+ remoteTraracks: VideoTrack[];
79
+ pinnedTrack?: VideoTrack;
80
+ layout: VideoLayout;
81
+ isRecording: boolean;
82
+ toggleCamera: () => Promise<void>;
83
+ toggleScreenShare: () => Promise<void>;
84
+ setLayout: (layout: VideoLayout) => void;
85
+ pinTrack: (track: VideoTrack) => void;
86
+ unpinTrack: () => void;
87
+ startRecording: () => Promise<void>;
88
+ stopRecording: () => Promise<void>;
89
+ getTrackById: (id: string) => VideoTrack | undefined;
90
+ getTracksByParticipant: (participantId: string) => VideoTrack[];
91
+ isTrackActive: (track: VideoTrack) => boolean;
92
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@voxket-ai/voxket-live",
3
- "version": "1.0.35",
4
- "description": "A React widget for embedding Voxket-powered audio/video/chat experiences.",
3
+ "version": "1.0.36",
4
+ "description": "A scalable React SDK for embedding Voxket-powered AI agent experiences with complete customization options.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -25,23 +25,32 @@
25
25
  },
26
26
  "keywords": [
27
27
  "react",
28
- "component",
28
+ "sdk",
29
+ "voxket",
30
+ "ai-agent",
31
+ "voice-ai",
29
32
  "livekit",
30
33
  "widget",
31
34
  "audio",
32
35
  "video",
33
- "chat"
36
+ "chat",
37
+ "typescript",
38
+ "customizable",
39
+ "enterprise",
40
+ "headless-ui",
41
+ "hooks"
34
42
  ],
35
43
  "author": "Shashank Sanket",
36
44
  "license": "MIT",
37
45
  "scripts": {
38
- "dev": "vite",
39
- "build": "vite build && node inline-css.mjs",
46
+ "dev": "vite --config vite.config.app.ts",
47
+ "build": "vite build --config vite.config.app.ts",
40
48
  "build:lib": "vite build",
41
49
  "inline-css": "node inline-css.mjs",
42
50
  "lint": "eslint .",
43
- "preview": "vite preview",
44
- "prepublish": "rm -rf ./dist && npm run build"
51
+ "preview": "vite preview --config vite.config.app.ts --host 0.0.0.0 --port $PORT",
52
+ "start": "vite preview --config vite.config.app.ts --host 0.0.0.0 --port $PORT",
53
+ "prepublish": "rm -rf ./dist && npm run build:lib"
45
54
  },
46
55
  "dependencies": {
47
56
  "@emotion/react": "~11.14.0",
@@ -69,6 +78,7 @@
69
78
  },
70
79
  "devDependencies": {
71
80
  "@eslint/js": "^9.25.0",
81
+ "@tailwindcss/postcss": "~4.1.11",
72
82
  "@types/node": "~24.0.3",
73
83
  "@types/react": "^19.1.2",
74
84
  "@types/react-dom": "^19.1.2",
@@ -85,4 +95,4 @@
85
95
  "vite": "^6.3.5",
86
96
  "vite-plugin-dts": "~4.5.4"
87
97
  }
88
- }
98
+ }