@elevenlabs/convai-widget-core 0.0.8 → 0.0.10

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.
@@ -15,6 +15,7 @@ export declare const AGENTS: {
15
15
  readonly transcript_enabled: boolean;
16
16
  readonly text_input_enabled: boolean;
17
17
  readonly text_contents: Partial<import("../types/config").TextContents>;
18
+ readonly styles?: Partial<import("../types/config").Styles>;
18
19
  readonly language_presets: Partial<Record<import("@elevenlabs/client").Language, {
19
20
  text_contents?: Partial<import("../types/config").TextContents>;
20
21
  first_message?: string;
@@ -19,6 +19,7 @@ export interface WidgetConfig {
19
19
  transcript_enabled: boolean;
20
20
  text_input_enabled: boolean;
21
21
  text_contents: Partial<TextContents>;
22
+ styles?: Partial<Styles>;
22
23
  language_presets: Partial<Record<Language, {
23
24
  text_contents?: Partial<TextContents>;
24
25
  first_message?: string;
@@ -69,3 +70,29 @@ export declare const DefaultTextContents: {
69
70
  };
70
71
  export declare const TextKeys: (keyof typeof DefaultTextContents)[];
71
72
  export type TextContents = typeof DefaultTextContents;
73
+ export declare const DefaultStyles: {
74
+ base: string;
75
+ base_hover: string;
76
+ base_active: string;
77
+ base_border: string;
78
+ base_subtle: string;
79
+ base_primary: string;
80
+ base_error: string;
81
+ accent: string;
82
+ accent_hover: string;
83
+ accent_active: string;
84
+ accent_border: string;
85
+ accent_subtle: string;
86
+ accent_primary: string;
87
+ overlay_padding: number;
88
+ button_radius: number;
89
+ input_radius: number;
90
+ bubble_radius: number;
91
+ sheet_radius: string;
92
+ compact_sheet_radius: string;
93
+ dropdown_sheet_radius: string;
94
+ };
95
+ export declare const StyleKeys: (keyof typeof DefaultStyles)[];
96
+ export type Styles = typeof DefaultStyles;
97
+ export declare function parseLocation(location?: string): Location;
98
+ export type Location = "us" | "global" | "eu-residency";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevenlabs/convai-widget-core",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "The common library for the Conversational AI Widget.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "clsx": "^2.1.1",
32
32
  "preact": "^10.26.5",
33
33
  "preact-custom-element": "^4.3.0",
34
- "@elevenlabs/client": "0.1.6"
34
+ "@elevenlabs/client": "0.1.7"
35
35
  },
36
36
  "repository": {
37
37
  "type": "git",