@voxket-ai/voxket-live 1.0.71 → 1.0.73
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/README.md +3 -23
- package/dist/components/compound/session-content.d.ts +1 -1
- package/dist/components/compound/session-controls.d.ts +1 -1
- package/dist/components/compound/session-footer.d.ts +1 -1
- package/dist/components/compound/types.d.ts +1 -1
- package/dist/components/compound/voxket-session.d.ts +1 -1
- package/dist/components/livekit/agent-control-bar/agent-control-bar.d.ts +1 -1
- package/dist/components/livekit/agent-control-bar/hooks/use-agent-control-bar.d.ts +2 -2
- package/dist/components/livekit/agent-tile.d.ts +1 -1
- package/dist/components/livekit/avatar-tile.d.ts +1 -1
- package/dist/components/livekit/chat/chat-entry.d.ts +1 -1
- package/dist/components/livekit/chat/chat-message-view.d.ts +1 -1
- package/dist/components/livekit/chat/hooks/utils.d.ts +1 -1
- package/dist/components/livekit/device-select.d.ts +1 -1
- package/dist/components/livekit/media-tiles.d.ts +2 -2
- package/dist/components/livekit/track-toggle.d.ts +1 -1
- package/dist/components/livekit/video-tile.d.ts +1 -1
- package/dist/components/session-view.d.ts +1 -1
- package/dist/core/client.d.ts +5 -5
- package/dist/core/rpc-manager.d.ts +1 -1
- package/dist/hooks/sdk/use-chat.d.ts +1 -1
- package/dist/hooks/useChatAndTranscription.d.ts +2 -2
- package/dist/hooks/useDebug.d.ts +1 -1
- package/dist/hooks/useSessionLogging.d.ts +1 -1
- package/dist/hooks/useVoxketClient.d.ts +3 -3
- package/dist/index.cjs +199 -90
- package/dist/index.css +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +30944 -11016
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/utils.d.ts +2 -2
- package/dist/providers/voxket-provider.d.ts +1 -6
- package/dist/themes/theme-system.d.ts +1 -1
- package/dist/types/core.d.ts +1 -1
- package/package.json +5 -12
- package/dist/components/scoped-widget-wrapper.d.ts +0 -0
- package/dist/lib/react-utils.d.ts +0 -9
- package/dist/style.css +0 -1
package/README.md
CHANGED
|
@@ -29,26 +29,11 @@ npm install @voxket-ai/voxket-live@latest
|
|
|
29
29
|
|
|
30
30
|
## Usage
|
|
31
31
|
|
|
32
|
-
To use the Voxket Live widget in your React application, simply import and use the component. **
|
|
32
|
+
To use the Voxket Live widget in your React application, simply import and use the component. **No separate CSS import is required** - styles are automatically included:
|
|
33
33
|
|
|
34
|
-
### Automatic Styles (Recommended)
|
|
35
34
|
```tsx
|
|
36
35
|
import React from 'react';
|
|
37
36
|
import VoxketWidget, { VoxketWidgetProps } from '@voxket-ai/voxket-live';
|
|
38
|
-
// Styles are automatically injected - no manual import needed!
|
|
39
|
-
|
|
40
|
-
const MyCustomApp = () => {
|
|
41
|
-
// ... component code
|
|
42
|
-
};
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Manual CSS Import (If needed)
|
|
46
|
-
If automatic style injection doesn't work in your setup, you can manually import the CSS:
|
|
47
|
-
|
|
48
|
-
```tsx
|
|
49
|
-
import React from 'react';
|
|
50
|
-
import VoxketWidget, { VoxketWidgetProps } from '@voxket-ai/voxket-live';
|
|
51
|
-
import '@voxket-ai/voxket-live/style.css'; // Manual CSS import
|
|
52
37
|
|
|
53
38
|
const MyCustomApp = () => {
|
|
54
39
|
const widgetProps: VoxketWidgetProps = {
|
|
@@ -76,14 +61,9 @@ const MyCustomApp = () => {
|
|
|
76
61
|
export default MyCustomApp;
|
|
77
62
|
```
|
|
78
63
|
|
|
79
|
-
### ✅
|
|
80
|
-
|
|
81
|
-
As of version 1.0.70+, **CSS styles are automatically injected** when you import any component. If automatic injection doesn't work in your environment, you can manually import the CSS file as shown above.
|
|
64
|
+
### ✅ Auto-Included Styles
|
|
82
65
|
|
|
83
|
-
**
|
|
84
|
-
- For Next.js apps, see our [Next.js Troubleshooting Guide](./NEXT_JS_TROUBLESHOOTING.md)
|
|
85
|
-
- For React conflicts, see our [React Conflict Prevention Guide](./REACT_CONFLICTS.md)
|
|
86
|
-
- If styles don't load automatically, use the manual CSS import method above
|
|
66
|
+
As of version 1.0.22+, **CSS styles are automatically injected** when you import the component. You don't need to manually import any CSS files!
|
|
87
67
|
|
|
88
68
|
## Props
|
|
89
69
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, ReactNode } from '
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { CompoundComponentProps } from './types';
|
|
3
3
|
import { SessionConfig } from '../../types/core';
|
|
4
4
|
export interface VoxketSessionProps extends CompoundComponentProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Track } from '
|
|
1
|
+
import { Track } from 'livekit-client';
|
|
2
2
|
import { AppConfig } from '../../../lib/types';
|
|
3
3
|
import { UseAgentControlBarProps } from './hooks/use-agent-control-bar';
|
|
4
4
|
import { ThemeType } from '../../../styles';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Track } from '
|
|
2
|
-
import { TrackReferenceOrPlaceholder } from '
|
|
1
|
+
import { Track } from 'livekit-client';
|
|
2
|
+
import { TrackReferenceOrPlaceholder } from '@livekit/components-react';
|
|
3
3
|
export interface ControlBarControls {
|
|
4
4
|
microphone?: boolean;
|
|
5
5
|
screenShare?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MessageFormatter, ReceivedChatMessage } from '
|
|
1
|
+
import { MessageFormatter, ReceivedChatMessage } from '@livekit/components-react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export interface ChatEntryProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
4
4
|
entry: ReceivedChatMessage;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RefObject } from '
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
2
|
export declare function useAutoScroll(scrollContentContainerRef: RefObject<Element | null>): void;
|
|
3
3
|
interface ChatProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
children?: React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MessageFormatter, ReceivedChatMessage } from '
|
|
1
|
+
import { MessageFormatter, ReceivedChatMessage } from '@livekit/components-react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export declare const useChatMessage: (entry: ReceivedChatMessage, messageFormatter?: MessageFormatter) => {
|
|
4
4
|
message: React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LocalAudioTrack, LocalVideoTrack } from '
|
|
1
|
+
import { LocalAudioTrack, LocalVideoTrack } from 'livekit-client';
|
|
2
2
|
import { SelectTrigger } from '../../components/ui/select';
|
|
3
3
|
type DeviceSelectProps = React.ComponentProps<typeof SelectTrigger> & {
|
|
4
4
|
kind: MediaDeviceKind;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Track } from '
|
|
2
|
-
import { TrackReference } from '
|
|
1
|
+
import { Track } from 'livekit-client';
|
|
2
|
+
import { TrackReference } from '@livekit/components-react';
|
|
3
3
|
export declare function useLocalTrackRef(source: Track.Source): TrackReference | undefined;
|
|
4
4
|
interface MediaTilesProps {
|
|
5
5
|
chatOpen: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { VideoTrack } from '
|
|
1
|
+
import { VideoTrack } from '@livekit/components-react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export declare const VideoTile: ({ trackRef, className, ref, }: React.ComponentProps<typeof VideoTrack>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/core/client.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Room, RemoteParticipant, LocalParticipant, ConnectionState, Track } from 'livekit-client';
|
|
2
3
|
import { VoxketEventEmitter } from './event-emitter';
|
|
3
4
|
import { PluginManager } from '../plugins/plugin-system';
|
|
4
5
|
import { VoxketConfig, SessionConfig, VoxketSession, VoxketEvents, SessionState, SessionMetrics, AgentInfo, ParticipantInfo, ChatMessage, TranscriptionSegment, SessionModality } from '../types/core';
|
|
5
6
|
import { VoxketInteractiveView, ViewPresentationMode, InteractiveUIState, RpcEvents } from '../types/rpc';
|
|
6
7
|
import { WidgetTheme } from '../styles';
|
|
7
8
|
import { DisplayType, PopupPosition } from '../components/widget';
|
|
8
|
-
import * as React from 'react';
|
|
9
9
|
export interface RenderUIOptions {
|
|
10
10
|
target?: string | HTMLElement;
|
|
11
11
|
modality?: SessionModality[];
|
|
@@ -121,9 +121,9 @@ export declare class VoxketClient extends VoxketEventEmitter<VoxketEvents & RpcE
|
|
|
121
121
|
getRoom(): Room | null;
|
|
122
122
|
getConnectionState(): ConnectionState;
|
|
123
123
|
get connected(): boolean;
|
|
124
|
-
getMicrophoneTrack(): import('
|
|
125
|
-
getCameraTrack(): import('
|
|
126
|
-
getScreenShareTrack(): import('
|
|
124
|
+
getMicrophoneTrack(): import('livekit-client').LocalTrack<Track.Kind> | null | undefined;
|
|
125
|
+
getCameraTrack(): import('livekit-client').LocalTrack<Track.Kind> | null | undefined;
|
|
126
|
+
getScreenShareTrack(): import('livekit-client').LocalTrack<Track.Kind> | null | undefined;
|
|
127
127
|
get isMicrophoneEnabled(): boolean;
|
|
128
128
|
get isCameraEnabled(): boolean;
|
|
129
129
|
get isScreenShareEnabled(): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Room } from '
|
|
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
4
|
/**
|
|
@@ -16,7 +16,7 @@ export declare function useVoxketChat(): {
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function useVoxketChatInput(): {
|
|
18
18
|
value: string;
|
|
19
|
-
setValue:
|
|
19
|
+
setValue: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
20
20
|
send: () => Promise<void>;
|
|
21
21
|
handleKeyPress: (event: React.KeyboardEvent) => void;
|
|
22
22
|
isSending: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReceivedChatMessage } from '
|
|
1
|
+
import { ReceivedChatMessage } from '@livekit/components-react';
|
|
2
2
|
export default function useChatAndTranscription(): {
|
|
3
3
|
messages: ReceivedChatMessage[];
|
|
4
|
-
send: (message: string, options?: import('
|
|
4
|
+
send: (message: string, options?: import('livekit-client').SendTextOptions) => Promise<ReceivedChatMessage>;
|
|
5
5
|
};
|
package/dist/hooks/useDebug.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export declare function useVoxketPublishPermissions(client: VoxketClient): {
|
|
|
17
17
|
* Replaces useLocalParticipant from LiveKit
|
|
18
18
|
*/
|
|
19
19
|
export declare function useVoxketLocalParticipant(client: VoxketClient): {
|
|
20
|
-
localParticipant: import('
|
|
21
|
-
microphoneTrack: import('
|
|
20
|
+
localParticipant: import('livekit-client').LocalParticipant | null;
|
|
21
|
+
microphoneTrack: import('livekit-client').LocalTrack<import("livekit-client").Track.Kind> | null | undefined;
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Hook for track toggle functionality
|
|
@@ -35,7 +35,7 @@ export declare function useVoxketTrackToggle(client: VoxketClient, source: 'micr
|
|
|
35
35
|
* Hook for room context
|
|
36
36
|
* Replaces useRoomContext from LiveKit
|
|
37
37
|
*/
|
|
38
|
-
export declare function useVoxketRoom(client: VoxketClient): import('
|
|
38
|
+
export declare function useVoxketRoom(client: VoxketClient): import('livekit-client').Room | null;
|
|
39
39
|
/**
|
|
40
40
|
* Hook for device selection
|
|
41
41
|
* Replaces useMediaDeviceSelect from LiveKit
|