@voxket-ai/voxket-live 1.0.63 → 1.0.64
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/error-boundary.d.ts +18 -0
- 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/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/core/client.d.ts +4 -4
- package/dist/core/rpc-manager.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 +49 -49
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +152 -95
- package/dist/lib/react-utils.d.ts +9 -0
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/utils.d.ts +2 -2
- package/dist/types/core.d.ts +1 -1
- package/package.json +12 -6
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
fallback?: React.ComponentType<{
|
|
5
|
+
error: Error;
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
interface State {
|
|
9
|
+
hasError: boolean;
|
|
10
|
+
error?: Error;
|
|
11
|
+
}
|
|
12
|
+
export declare class VoxketErrorBoundary extends React.Component<Props, State> {
|
|
13
|
+
constructor(props: Props);
|
|
14
|
+
static getDerivedStateFromError(error: Error): State;
|
|
15
|
+
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
16
|
+
render(): React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Track } from 'livekit-client';
|
|
1
|
+
import { Track } from '../../../../node_modules/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 'livekit-client';
|
|
2
|
-
import { TrackReferenceOrPlaceholder } from '
|
|
1
|
+
import { Track } from '../../../../../node_modules/livekit-client';
|
|
2
|
+
import { TrackReferenceOrPlaceholder } from '../../../../../node_modules/@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 '../../../../node_modules/@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 { MessageFormatter, ReceivedChatMessage } from '
|
|
1
|
+
import { MessageFormatter, ReceivedChatMessage } from '../../../../../node_modules/@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 'livekit-client';
|
|
1
|
+
import { LocalAudioTrack, LocalVideoTrack } from '../../../node_modules/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 'livekit-client';
|
|
2
|
-
import { TrackReference } from '
|
|
1
|
+
import { Track } from '../../../node_modules/livekit-client';
|
|
2
|
+
import { TrackReference } from '../../../node_modules/@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 '../../../node_modules/@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,4 +1,4 @@
|
|
|
1
|
-
import { Room, RemoteParticipant, LocalParticipant, ConnectionState, Track } from 'livekit-client';
|
|
1
|
+
import { Room, RemoteParticipant, LocalParticipant, ConnectionState, Track } from '../../node_modules/livekit-client';
|
|
2
2
|
import { VoxketEventEmitter } from './event-emitter';
|
|
3
3
|
import { PluginManager } from '../plugins/plugin-system';
|
|
4
4
|
import { VoxketConfig, SessionConfig, VoxketSession, VoxketEvents, SessionState, SessionMetrics, AgentInfo, ParticipantInfo, ChatMessage, TranscriptionSegment, SessionModality } from '../types/core';
|
|
@@ -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('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;
|
|
124
|
+
getMicrophoneTrack(): import('../../node_modules/livekit-client').LocalTrack<Track.Kind> | null | undefined;
|
|
125
|
+
getCameraTrack(): import('../../node_modules/livekit-client').LocalTrack<Track.Kind> | null | undefined;
|
|
126
|
+
getScreenShareTrack(): import('../../node_modules/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 'livekit-client';
|
|
1
|
+
import { Room } from '../../node_modules/livekit-client';
|
|
2
2
|
import { VoxketEventEmitter } from '../core/event-emitter';
|
|
3
3
|
import { VoxketInteractiveView, ViewPresentationMode, InteractiveUIState, RpcEvents } from '../types/rpc';
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReceivedChatMessage } from '
|
|
1
|
+
import { ReceivedChatMessage } from '../../node_modules/@livekit/components-react';
|
|
2
2
|
export default function useChatAndTranscription(): {
|
|
3
3
|
messages: ReceivedChatMessage[];
|
|
4
|
-
send: (message: string, options?: import('livekit-client').SendTextOptions) => Promise<ReceivedChatMessage>;
|
|
4
|
+
send: (message: string, options?: import('../../node_modules/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('livekit-client').LocalParticipant | null;
|
|
21
|
-
microphoneTrack: import('livekit-client').LocalTrack<import("livekit-client").Track.Kind> | null | undefined;
|
|
20
|
+
localParticipant: import('../../node_modules/livekit-client').LocalParticipant | null;
|
|
21
|
+
microphoneTrack: import('../../node_modules/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('livekit-client').Room | null;
|
|
38
|
+
export declare function useVoxketRoom(client: VoxketClient): import('../../node_modules/livekit-client').Room | null;
|
|
39
39
|
/**
|
|
40
40
|
* Hook for device selection
|
|
41
41
|
* Replaces useMediaDeviceSelect from LiveKit
|