@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.
Files changed (38) hide show
  1. package/README.md +3 -23
  2. package/dist/components/compound/session-content.d.ts +1 -1
  3. package/dist/components/compound/session-controls.d.ts +1 -1
  4. package/dist/components/compound/session-footer.d.ts +1 -1
  5. package/dist/components/compound/types.d.ts +1 -1
  6. package/dist/components/compound/voxket-session.d.ts +1 -1
  7. package/dist/components/livekit/agent-control-bar/agent-control-bar.d.ts +1 -1
  8. package/dist/components/livekit/agent-control-bar/hooks/use-agent-control-bar.d.ts +2 -2
  9. package/dist/components/livekit/agent-tile.d.ts +1 -1
  10. package/dist/components/livekit/avatar-tile.d.ts +1 -1
  11. package/dist/components/livekit/chat/chat-entry.d.ts +1 -1
  12. package/dist/components/livekit/chat/chat-message-view.d.ts +1 -1
  13. package/dist/components/livekit/chat/hooks/utils.d.ts +1 -1
  14. package/dist/components/livekit/device-select.d.ts +1 -1
  15. package/dist/components/livekit/media-tiles.d.ts +2 -2
  16. package/dist/components/livekit/track-toggle.d.ts +1 -1
  17. package/dist/components/livekit/video-tile.d.ts +1 -1
  18. package/dist/components/session-view.d.ts +1 -1
  19. package/dist/core/client.d.ts +5 -5
  20. package/dist/core/rpc-manager.d.ts +1 -1
  21. package/dist/hooks/sdk/use-chat.d.ts +1 -1
  22. package/dist/hooks/useChatAndTranscription.d.ts +2 -2
  23. package/dist/hooks/useDebug.d.ts +1 -1
  24. package/dist/hooks/useSessionLogging.d.ts +1 -1
  25. package/dist/hooks/useVoxketClient.d.ts +3 -3
  26. package/dist/index.cjs +199 -90
  27. package/dist/index.css +1 -0
  28. package/dist/index.d.ts +0 -1
  29. package/dist/index.js +30944 -11016
  30. package/dist/lib/types.d.ts +1 -1
  31. package/dist/lib/utils.d.ts +2 -2
  32. package/dist/providers/voxket-provider.d.ts +1 -6
  33. package/dist/themes/theme-system.d.ts +1 -1
  34. package/dist/types/core.d.ts +1 -1
  35. package/package.json +5 -12
  36. package/dist/components/scoped-widget-wrapper.d.ts +0 -0
  37. package/dist/lib/react-utils.d.ts +0 -9
  38. 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. **Styles are automatically included**, but you can also import them manually if needed:
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
- ### ✅ Flexible Style Loading
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
- **Troubleshooting Style Issues:**
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 { ReactNode } from '../../../node_modules/react';
1
+ import { ReactNode } from 'react';
2
2
  export interface SessionContentProps {
3
3
  showChat?: boolean;
4
4
  showTranscriptions?: boolean;
@@ -1,4 +1,4 @@
1
- import { default as React } from '../../../node_modules/react';
1
+ import { default as React } from 'react';
2
2
  export interface SessionControlsProps {
3
3
  showMicrophoneControl?: boolean;
4
4
  showCameraControl?: boolean;
@@ -1,4 +1,4 @@
1
- import { default as React } from '../../../node_modules/react';
1
+ import { default as React } from 'react';
2
2
  export interface SessionFooterProps {
3
3
  showMetrics?: boolean;
4
4
  showParticipants?: boolean;
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from '../../../node_modules/react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  export interface CompoundComponentContext {
3
3
  variant?: 'default' | 'minimal' | 'enterprise';
4
4
  size?: 'sm' | 'md' | 'lg';
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from '../../../node_modules/react';
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 '../../../../node_modules/livekit-client';
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 '../../../../../node_modules/livekit-client';
2
- import { TrackReferenceOrPlaceholder } from '../../../../../node_modules/@livekit/components-react';
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 { AgentState, TrackReference } from '../../../node_modules/@livekit/components-react';
1
+ import { AgentState, TrackReference } from '@livekit/components-react';
2
2
  interface AgentAudioTileProps {
3
3
  state: AgentState;
4
4
  audioTrack: TrackReference;
@@ -1,4 +1,4 @@
1
- import { TrackReference } from '../../../node_modules/@livekit/components-react';
1
+ import { TrackReference } from '@livekit/components-react';
2
2
  interface AgentAudioTileProps {
3
3
  videoTrack: TrackReference;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import { MessageFormatter, ReceivedChatMessage } from '../../../../node_modules/@livekit/components-react';
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 '../../../../node_modules/react';
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 '../../../../../node_modules/@livekit/components-react';
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 '../../../node_modules/livekit-client';
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 '../../../node_modules/livekit-client';
2
- import { TrackReference } from '../../../node_modules/@livekit/components-react';
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,4 +1,4 @@
1
- import { Track } from '../../../node_modules/livekit-client';
1
+ import { Track } from 'livekit-client';
2
2
  import { Toggle } from '../../components/ui/toggle';
3
3
  import * as React from 'react';
4
4
  export type TrackToggleProps = React.ComponentProps<typeof Toggle> & {
@@ -1,3 +1,3 @@
1
- import { VideoTrack } from '../../../node_modules/@livekit/components-react';
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;
@@ -1,4 +1,4 @@
1
- import { default as React } from '../../node_modules/react';
1
+ import { default as React } from 'react';
2
2
  import { ThemeType } from '../styles';
3
3
  import { DisplayType } from './widget';
4
4
  interface SessionViewProps {
@@ -1,11 +1,11 @@
1
- import { Room, RemoteParticipant, LocalParticipant, ConnectionState, Track } from '../../node_modules/livekit-client';
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('../../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;
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 '../../node_modules/livekit-client';
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: React.Dispatch<React.SetStateAction<string>>;
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 '../../node_modules/@livekit/components-react';
1
+ import { ReceivedChatMessage } from '@livekit/components-react';
2
2
  export default function useChatAndTranscription(): {
3
3
  messages: ReceivedChatMessage[];
4
- send: (message: string, options?: import('../../node_modules/livekit-client').SendTextOptions) => Promise<ReceivedChatMessage>;
4
+ send: (message: string, options?: import('livekit-client').SendTextOptions) => Promise<ReceivedChatMessage>;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { LogLevel } from '../../node_modules/livekit-client';
1
+ import { LogLevel } from 'livekit-client';
2
2
  export declare const useDebugMode: ({ logLevel }?: {
3
3
  logLevel?: LogLevel;
4
4
  }) => void;
@@ -1,4 +1,4 @@
1
- import { Room } from '../../node_modules/livekit-client';
1
+ import { Room } from 'livekit-client';
2
2
  export interface SessionLog {
3
3
  timestamp: Date;
4
4
  event: string;
@@ -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('../../node_modules/livekit-client').LocalParticipant | null;
21
- microphoneTrack: import('../../node_modules/livekit-client').LocalTrack<import("livekit-client").Track.Kind> | null | undefined;
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('../../node_modules/livekit-client').Room | null;
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