@elevenlabs/convai-widget-core 0.6.0-beta.8 → 0.6.1

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.
@@ -80,16 +80,14 @@ export declare const AGENTS: {
80
80
  readonly conversation_mode_toggle_enabled?: boolean;
81
81
  };
82
82
  readonly fail: WidgetConfig;
83
- readonly markdown: {
83
+ readonly end_call_test: {
84
84
  readonly text_only: true;
85
- readonly terms_html: undefined;
86
- readonly default_expanded: true;
87
- readonly markdown_link_allowed_hosts: [{
88
- readonly hostname: "*";
89
- }];
90
- readonly first_message: "# Heading 1\n\nThis is **bold** and *italic* text.\n\n- List item 1\n- List item 2\n\n1. Ordered item 1\n2. Ordered item 2\n\n`inline code`\n\n```javascript\nconst codeBlock = true;\n```\n\n[Link text](https://example.com)\n\n![Alt text](data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=)\n\n> Blockquote text\n\n| Header 1 | Header 2 |\n| -------- | -------- |\n| Cell 1 | Cell 2 |\n\n---\n";
85
+ readonly transcript_enabled: true;
86
+ readonly text_input_enabled: true;
87
+ readonly first_message: "";
91
88
  readonly variant: import("../types/config").Variant;
92
89
  readonly placement: import("../types/config").Placement;
90
+ readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
93
91
  readonly markdown_link_include_www?: boolean;
94
92
  readonly markdown_link_allow_http?: boolean;
95
93
  readonly avatar: import("../types/config").AvatarConfig;
@@ -99,11 +97,11 @@ export declare const AGENTS: {
99
97
  } | null;
100
98
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
101
99
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
100
+ readonly terms_html?: string;
102
101
  readonly terms_text?: string;
103
102
  readonly terms_key?: string;
104
103
  readonly mic_muting_enabled: boolean;
105
- readonly transcript_enabled: boolean;
106
- readonly text_input_enabled: boolean;
104
+ readonly default_expanded: boolean;
107
105
  readonly always_expanded: boolean;
108
106
  readonly text_contents: Partial<import("../types/config").TextContents>;
109
107
  readonly styles?: Partial<import("../types/config").Styles>;
@@ -121,14 +119,31 @@ export declare const AGENTS: {
121
119
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
122
120
  readonly conversation_mode_toggle_enabled?: boolean;
123
121
  };
124
- readonly markdown_no_links: {
125
- readonly text_only: true;
126
- readonly terms_html: undefined;
127
- readonly default_expanded: true;
128
- readonly markdown_link_allowed_hosts: [];
129
- readonly first_message: "No links should be clickable: [Link text](https://example.com/allowed)";
122
+ readonly localized: {
123
+ readonly terms_html: "<p>Default Terms in English</p>";
124
+ readonly terms_key: "terms_default";
125
+ readonly supported_language_overrides: ["es", "fr"];
126
+ readonly language_presets: {
127
+ readonly es: {
128
+ readonly text_contents: {
129
+ readonly start_chat: "Iniciar una llamada";
130
+ };
131
+ readonly first_message: "¡Hola! ¿Cómo puedo ayudarte?";
132
+ readonly terms_html: "<p>Términos en Español</p>";
133
+ readonly terms_key: "terms_es";
134
+ };
135
+ readonly fr: {
136
+ readonly text_contents: {
137
+ readonly start_chat: "Commencer un appel";
138
+ };
139
+ readonly first_message: "Bonjour! Comment puis-je vous aider?";
140
+ readonly terms_html: "<p>Termes en Français</p>";
141
+ readonly terms_key: "terms_fr";
142
+ };
143
+ };
130
144
  readonly variant: import("../types/config").Variant;
131
145
  readonly placement: import("../types/config").Placement;
146
+ readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
132
147
  readonly markdown_link_include_www?: boolean;
133
148
  readonly markdown_link_allow_http?: boolean;
134
149
  readonly avatar: import("../types/config").AvatarConfig;
@@ -137,37 +152,31 @@ export declare const AGENTS: {
137
152
  type: import("../types/config").FeedbackType;
138
153
  } | null;
139
154
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
140
- readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
141
155
  readonly terms_text?: string;
142
- readonly terms_key?: string;
143
156
  readonly mic_muting_enabled: boolean;
144
157
  readonly transcript_enabled: boolean;
145
158
  readonly text_input_enabled: boolean;
159
+ readonly default_expanded: boolean;
146
160
  readonly always_expanded: boolean;
147
161
  readonly text_contents: Partial<import("../types/config").TextContents>;
148
162
  readonly styles?: Partial<import("../types/config").Styles>;
149
- readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
150
- text_contents?: Partial<import("../types/config").TextContents>;
151
- first_message?: string;
152
- terms_html?: string;
153
- terms_text?: string;
154
- terms_key?: string;
155
- }>>;
156
163
  readonly disable_banner: boolean;
157
164
  readonly override_link?: string;
165
+ readonly text_only: boolean;
158
166
  readonly supports_text_only: boolean;
167
+ readonly first_message?: string;
159
168
  readonly use_rtc?: boolean;
160
169
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
161
170
  readonly conversation_mode_toggle_enabled?: boolean;
162
171
  };
163
- readonly markdown_domain_allowlist: {
172
+ readonly markdown: {
164
173
  readonly text_only: true;
165
174
  readonly terms_html: undefined;
166
175
  readonly default_expanded: true;
167
176
  readonly markdown_link_allowed_hosts: [{
168
- readonly hostname: "example.com";
177
+ readonly hostname: "*";
169
178
  }];
170
- readonly first_message: "[Allowed https link](https://example.com/allowed)\n\n[Allowed http link](http://example.com/http-allowed)\n\n[Blocked link](https://evil.com/blocked)\n";
179
+ readonly first_message: "# Heading 1\n\nThis is **bold** and *italic* text.\n\n- List item 1\n- List item 2\n\n1. Ordered item 1\n2. Ordered item 2\n\n`inline code`\n\n```javascript\nconst codeBlock = true;\n```\n\n[Link text](https://example.com)\n\n![Alt text](data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=)\n\n> Blockquote text\n\n| Header 1 | Header 2 |\n| -------- | -------- |\n| Cell 1 | Cell 2 |\n\n---\n";
171
180
  readonly variant: import("../types/config").Variant;
172
181
  readonly placement: import("../types/config").Placement;
173
182
  readonly markdown_link_include_www?: boolean;
@@ -201,14 +210,14 @@ export declare const AGENTS: {
201
210
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
202
211
  readonly conversation_mode_toggle_enabled?: boolean;
203
212
  };
204
- readonly markdown_default_domain: {
213
+ readonly markdown_no_links: {
205
214
  readonly text_only: true;
206
215
  readonly terms_html: undefined;
207
216
  readonly default_expanded: true;
208
- readonly first_message: "[Relative link](/relative)";
217
+ readonly markdown_link_allowed_hosts: [];
218
+ readonly first_message: "No links should be clickable: [Link text](https://example.com/allowed)";
209
219
  readonly variant: import("../types/config").Variant;
210
220
  readonly placement: import("../types/config").Placement;
211
- readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
212
221
  readonly markdown_link_include_www?: boolean;
213
222
  readonly markdown_link_allow_http?: boolean;
214
223
  readonly avatar: import("../types/config").AvatarConfig;
@@ -240,14 +249,16 @@ export declare const AGENTS: {
240
249
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
241
250
  readonly conversation_mode_toggle_enabled?: boolean;
242
251
  };
243
- readonly end_call_test: {
252
+ readonly markdown_domain_allowlist: {
244
253
  readonly text_only: true;
245
- readonly transcript_enabled: true;
246
- readonly text_input_enabled: true;
247
- readonly first_message: "";
254
+ readonly terms_html: undefined;
255
+ readonly default_expanded: true;
256
+ readonly markdown_link_allowed_hosts: [{
257
+ readonly hostname: "example.com";
258
+ }];
259
+ readonly first_message: "[Allowed https link](https://example.com/allowed)\n\n[Allowed http link](http://example.com/http-allowed)\n\n[Blocked link](https://evil.com/blocked)\n";
248
260
  readonly variant: import("../types/config").Variant;
249
261
  readonly placement: import("../types/config").Placement;
250
- readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
251
262
  readonly markdown_link_include_www?: boolean;
252
263
  readonly markdown_link_allow_http?: boolean;
253
264
  readonly avatar: import("../types/config").AvatarConfig;
@@ -257,11 +268,11 @@ export declare const AGENTS: {
257
268
  } | null;
258
269
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
259
270
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
260
- readonly terms_html?: string;
261
271
  readonly terms_text?: string;
262
272
  readonly terms_key?: string;
263
273
  readonly mic_muting_enabled: boolean;
264
- readonly default_expanded: boolean;
274
+ readonly transcript_enabled: boolean;
275
+ readonly text_input_enabled: boolean;
265
276
  readonly always_expanded: boolean;
266
277
  readonly text_contents: Partial<import("../types/config").TextContents>;
267
278
  readonly styles?: Partial<import("../types/config").Styles>;
@@ -279,28 +290,11 @@ export declare const AGENTS: {
279
290
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
280
291
  readonly conversation_mode_toggle_enabled?: boolean;
281
292
  };
282
- readonly localized: {
283
- readonly terms_html: "<p>Default Terms in English</p>";
284
- readonly terms_key: "terms_default";
285
- readonly supported_language_overrides: ["es", "fr"];
286
- readonly language_presets: {
287
- readonly es: {
288
- readonly text_contents: {
289
- readonly start_chat: "Iniciar una llamada";
290
- };
291
- readonly first_message: "¡Hola! ¿Cómo puedo ayudarte?";
292
- readonly terms_html: "<p>Términos en Español</p>";
293
- readonly terms_key: "terms_es";
294
- };
295
- readonly fr: {
296
- readonly text_contents: {
297
- readonly start_chat: "Commencer un appel";
298
- };
299
- readonly first_message: "Bonjour! Comment puis-je vous aider?";
300
- readonly terms_html: "<p>Termes en Français</p>";
301
- readonly terms_key: "terms_fr";
302
- };
303
- };
293
+ readonly markdown_default_domain: {
294
+ readonly text_only: true;
295
+ readonly terms_html: undefined;
296
+ readonly default_expanded: true;
297
+ readonly first_message: "[Relative link](/relative)";
304
298
  readonly variant: import("../types/config").Variant;
305
299
  readonly placement: import("../types/config").Placement;
306
300
  readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
@@ -312,19 +306,25 @@ export declare const AGENTS: {
312
306
  type: import("../types/config").FeedbackType;
313
307
  } | null;
314
308
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
309
+ readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
315
310
  readonly terms_text?: string;
311
+ readonly terms_key?: string;
316
312
  readonly mic_muting_enabled: boolean;
317
313
  readonly transcript_enabled: boolean;
318
314
  readonly text_input_enabled: boolean;
319
- readonly default_expanded: boolean;
320
315
  readonly always_expanded: boolean;
321
316
  readonly text_contents: Partial<import("../types/config").TextContents>;
322
317
  readonly styles?: Partial<import("../types/config").Styles>;
318
+ readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
319
+ text_contents?: Partial<import("../types/config").TextContents>;
320
+ first_message?: string;
321
+ terms_html?: string;
322
+ terms_text?: string;
323
+ terms_key?: string;
324
+ }>>;
323
325
  readonly disable_banner: boolean;
324
326
  readonly override_link?: string;
325
- readonly text_only: boolean;
326
327
  readonly supports_text_only: boolean;
327
- readonly first_message?: string;
328
328
  readonly use_rtc?: boolean;
329
329
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
330
330
  readonly conversation_mode_toggle_enabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  export declare function parseBoolAttribute(value: string | undefined): boolean | null;
2
- export declare const CustomAttributeList: readonly ["variant", "placement", "override-config", "avatar-image-url", "avatar-orb-color-1", "avatar-orb-color-2", "agent-id", "signed-url", "terms-key", "server-location", "language", "dynamic-variables", "show-avatar-when-collapsed", "override-prompt", "override-first-message", "override-language", "override-voice-id", "override-text-only", "mic-muting", "transcript", "text-input", "text-contents", "default-expanded", "always-expanded", "user-id", "use-rtc", "collect-feedback", "syntax-highlight-theme", "markdown-link-allowed-hosts", "markdown-link-include-www", "markdown-link-allow-http", "worklet-path-raw-audio-processor", "worklet-path-audio-concat-processor", "worklet-path-libsamplerate"];
2
+ export declare const CustomAttributeList: readonly ["variant", "placement", "override-config", "avatar-image-url", "avatar-orb-color-1", "avatar-orb-color-2", "agent-id", "signed-url", "terms-key", "server-location", "language", "dynamic-variables", "show-avatar-when-collapsed", "override-prompt", "override-llm", "override-speed", "override-stability", "override-similarity-boost", "override-first-message", "override-language", "override-voice-id", "override-text-only", "mic-muting", "transcript", "text-input", "text-contents", "default-expanded", "always-expanded", "user-id", "use-rtc", "collect-feedback", "worklet-path-raw-audio-processor", "worklet-path-audio-concat-processor", "worklet-path-libsamplerate", "syntax-highlight-theme", "markdown-link-allowed-hosts", "markdown-link-include-www", "markdown-link-allow-http"];
3
3
  export type CustomAttributes = {
4
4
  [key in (typeof CustomAttributeList)[number]]?: string;
5
5
  };
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "0.6.0-beta.8";
1
+ export declare const PACKAGE_VERSION = "0.6.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevenlabs/convai-widget-core",
3
- "version": "0.6.0-beta.8",
3
+ "version": "0.6.1",
4
4
  "description": "The common library for the Conversational AI Widget.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -57,7 +57,7 @@
57
57
  "remark-parse": "^11.0.0",
58
58
  "remark-rehype": "^11.1.2",
59
59
  "tailwind-merge": "^3.4.0",
60
- "@elevenlabs/client": "0.12.2"
60
+ "@elevenlabs/client": "0.13.0"
61
61
  },
62
62
  "publishConfig": {
63
63
  "access": "public"