@elevenlabs/convai-widget-core 0.6.0-beta.4 → 0.6.0-beta.6

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.
@@ -31,6 +31,7 @@ export declare const AGENTS: {
31
31
  readonly first_message?: string;
32
32
  readonly use_rtc?: boolean;
33
33
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
34
+ readonly conversation_mode_toggle_enabled?: boolean;
34
35
  };
35
36
  readonly webrtc: {
36
37
  readonly use_rtc: true;
@@ -62,6 +63,7 @@ export declare const AGENTS: {
62
63
  readonly supports_text_only: boolean;
63
64
  readonly first_message?: string;
64
65
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
66
+ readonly conversation_mode_toggle_enabled?: boolean;
65
67
  };
66
68
  readonly fail: WidgetConfig;
67
69
  readonly markdown: {
@@ -94,6 +96,7 @@ export declare const AGENTS: {
94
96
  readonly supports_text_only: boolean;
95
97
  readonly use_rtc?: boolean;
96
98
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
99
+ readonly conversation_mode_toggle_enabled?: boolean;
97
100
  };
98
101
  };
99
102
  export declare const Worker: import("msw/browser").SetupWorker;
@@ -38,6 +38,7 @@ export interface WidgetConfig {
38
38
  first_message?: string;
39
39
  use_rtc?: boolean;
40
40
  syntax_highlight_theme?: SyntaxHighlightTheme;
41
+ conversation_mode_toggle_enabled?: boolean;
41
42
  }
42
43
  export type AvatarConfig = {
43
44
  type: "orb";
@@ -58,6 +59,10 @@ export declare const DefaultTextContents: {
58
59
  new_call: string;
59
60
  end_call: string;
60
61
  mute_microphone: string;
62
+ text_mode: string;
63
+ voice_mode: string;
64
+ switched_to_text_mode: string;
65
+ switched_to_voice_mode: string;
61
66
  change_language: string;
62
67
  collapse: string;
63
68
  expand: string;
@@ -1,13 +1,12 @@
1
- import { ReadonlySignal, Signal } from "@preact/signals";
2
- import { TranscriptEntry } from "../contexts/conversation";
3
- interface UseStickToBottomOptions {
1
+ import { Signal } from "@preact/signals";
2
+ export declare function useStickToBottom({ scrollPinned, }: {
4
3
  scrollPinned: Signal<boolean>;
5
- transcript: ReadonlySignal<TranscriptEntry[]>;
6
- }
7
- export declare function useStickToBottom({ scrollPinned, transcript, }: UseStickToBottomOptions): {
4
+ }): {
8
5
  scrollContainer: import("preact").RefObject<HTMLDivElement>;
6
+ contentRef: import("preact").RefObject<HTMLDivElement>;
9
7
  handleScroll: () => void;
10
- handleUserInteraction: () => void;
8
+ handleWheel: (e: WheelEvent) => void;
9
+ handleTouchStart: (e: TouchEvent) => void;
10
+ handleTouchMove: (e: TouchEvent) => void;
11
11
  firstRender: import("preact/hooks").MutableRef<boolean>;
12
12
  };
13
- export {};
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "0.6.0-beta.4";
1
+ export declare const PACKAGE_VERSION = "0.6.0-beta.6";
@@ -0,0 +1,2 @@
1
+ import { ButtonProps } from "../components/Button";
2
+ export declare function ConversationModeToggleButton(props: Omit<ButtonProps, "icon" | "onClick" | "aria-label" | "aria-pressed">): import("preact").JSX.Element;
@@ -4,7 +4,8 @@ interface SheetHeaderProps {
4
4
  onBackClick?: () => void;
5
5
  showStatusLabel: ReadonlySignal<boolean>;
6
6
  showLanguageSelector: ReadonlySignal<boolean>;
7
+ showConversationModeToggle: ReadonlySignal<boolean>;
7
8
  showExpandButton: ReadonlySignal<boolean>;
8
9
  }
9
- export declare function SheetHeader({ showBackButton, onBackClick, showStatusLabel, showLanguageSelector, showExpandButton, }: SheetHeaderProps): import("preact").JSX.Element;
10
+ export declare function SheetHeader({ showBackButton, onBackClick, showStatusLabel, showLanguageSelector, showConversationModeToggle, showExpandButton, }: SheetHeaderProps): import("preact").JSX.Element;
10
11
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevenlabs/convai-widget-core",
3
- "version": "0.6.0-beta.4",
3
+ "version": "0.6.0-beta.6",
4
4
  "description": "The common library for the Conversational AI Widget.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",