@elevenlabs/convai-widget-core 0.8.2 → 0.9.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.
@@ -24,6 +24,7 @@ export declare const AGENTS: {
24
24
  readonly default_expanded: boolean;
25
25
  readonly always_expanded: boolean;
26
26
  readonly dismissible: boolean;
27
+ readonly strip_audio_tags?: boolean;
27
28
  readonly text_contents: Partial<import("../types/config").TextContents>;
28
29
  readonly styles?: Partial<import("../types/config").Styles>;
29
30
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
@@ -40,6 +41,7 @@ export declare const AGENTS: {
40
41
  readonly use_rtc?: boolean;
41
42
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
42
43
  readonly conversation_mode_toggle_enabled?: boolean;
44
+ readonly show_agent_status?: boolean;
43
45
  };
44
46
  readonly webrtc: {
45
47
  readonly use_rtc: true;
@@ -64,6 +66,7 @@ export declare const AGENTS: {
64
66
  readonly default_expanded: boolean;
65
67
  readonly always_expanded: boolean;
66
68
  readonly dismissible: boolean;
69
+ readonly strip_audio_tags?: boolean;
67
70
  readonly text_contents: Partial<import("../types/config").TextContents>;
68
71
  readonly styles?: Partial<import("../types/config").Styles>;
69
72
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
@@ -80,6 +83,7 @@ export declare const AGENTS: {
80
83
  readonly first_message?: string;
81
84
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
82
85
  readonly conversation_mode_toggle_enabled?: boolean;
86
+ readonly show_agent_status?: boolean;
83
87
  };
84
88
  readonly fail: WidgetConfig;
85
89
  readonly end_call_test: {
@@ -106,6 +110,7 @@ export declare const AGENTS: {
106
110
  readonly default_expanded: boolean;
107
111
  readonly always_expanded: boolean;
108
112
  readonly dismissible: boolean;
113
+ readonly strip_audio_tags?: boolean;
109
114
  readonly text_contents: Partial<import("../types/config").TextContents>;
110
115
  readonly styles?: Partial<import("../types/config").Styles>;
111
116
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
@@ -121,6 +126,7 @@ export declare const AGENTS: {
121
126
  readonly use_rtc?: boolean;
122
127
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
123
128
  readonly conversation_mode_toggle_enabled?: boolean;
129
+ readonly show_agent_status?: boolean;
124
130
  };
125
131
  readonly localized: {
126
132
  readonly terms_html: "<p>Default Terms in English</p>";
@@ -162,6 +168,7 @@ export declare const AGENTS: {
162
168
  readonly default_expanded: boolean;
163
169
  readonly always_expanded: boolean;
164
170
  readonly dismissible: boolean;
171
+ readonly strip_audio_tags?: boolean;
165
172
  readonly text_contents: Partial<import("../types/config").TextContents>;
166
173
  readonly styles?: Partial<import("../types/config").Styles>;
167
174
  readonly disable_banner: boolean;
@@ -172,6 +179,7 @@ export declare const AGENTS: {
172
179
  readonly use_rtc?: boolean;
173
180
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
174
181
  readonly conversation_mode_toggle_enabled?: boolean;
182
+ readonly show_agent_status?: boolean;
175
183
  };
176
184
  readonly markdown: {
177
185
  readonly text_only: true;
@@ -199,6 +207,7 @@ export declare const AGENTS: {
199
207
  readonly text_input_enabled: boolean;
200
208
  readonly always_expanded: boolean;
201
209
  readonly dismissible: boolean;
210
+ readonly strip_audio_tags?: boolean;
202
211
  readonly text_contents: Partial<import("../types/config").TextContents>;
203
212
  readonly styles?: Partial<import("../types/config").Styles>;
204
213
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
@@ -214,6 +223,7 @@ export declare const AGENTS: {
214
223
  readonly use_rtc?: boolean;
215
224
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
216
225
  readonly conversation_mode_toggle_enabled?: boolean;
226
+ readonly show_agent_status?: boolean;
217
227
  };
218
228
  readonly markdown_no_links: {
219
229
  readonly text_only: true;
@@ -239,6 +249,7 @@ export declare const AGENTS: {
239
249
  readonly text_input_enabled: boolean;
240
250
  readonly always_expanded: boolean;
241
251
  readonly dismissible: boolean;
252
+ readonly strip_audio_tags?: boolean;
242
253
  readonly text_contents: Partial<import("../types/config").TextContents>;
243
254
  readonly styles?: Partial<import("../types/config").Styles>;
244
255
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
@@ -254,6 +265,7 @@ export declare const AGENTS: {
254
265
  readonly use_rtc?: boolean;
255
266
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
256
267
  readonly conversation_mode_toggle_enabled?: boolean;
268
+ readonly show_agent_status?: boolean;
257
269
  };
258
270
  readonly markdown_domain_allowlist: {
259
271
  readonly text_only: true;
@@ -281,6 +293,7 @@ export declare const AGENTS: {
281
293
  readonly text_input_enabled: boolean;
282
294
  readonly always_expanded: boolean;
283
295
  readonly dismissible: boolean;
296
+ readonly strip_audio_tags?: boolean;
284
297
  readonly text_contents: Partial<import("../types/config").TextContents>;
285
298
  readonly styles?: Partial<import("../types/config").Styles>;
286
299
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
@@ -296,6 +309,7 @@ export declare const AGENTS: {
296
309
  readonly use_rtc?: boolean;
297
310
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
298
311
  readonly conversation_mode_toggle_enabled?: boolean;
312
+ readonly show_agent_status?: boolean;
299
313
  };
300
314
  readonly markdown_default_domain: {
301
315
  readonly text_only: true;
@@ -321,6 +335,7 @@ export declare const AGENTS: {
321
335
  readonly text_input_enabled: boolean;
322
336
  readonly always_expanded: boolean;
323
337
  readonly dismissible: boolean;
338
+ readonly strip_audio_tags?: boolean;
324
339
  readonly text_contents: Partial<import("../types/config").TextContents>;
325
340
  readonly styles?: Partial<import("../types/config").Styles>;
326
341
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
@@ -336,6 +351,133 @@ export declare const AGENTS: {
336
351
  readonly use_rtc?: boolean;
337
352
  readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
338
353
  readonly conversation_mode_toggle_enabled?: boolean;
354
+ readonly show_agent_status?: boolean;
355
+ };
356
+ readonly tool_call: {
357
+ readonly text_only: true;
358
+ readonly transcript_enabled: true;
359
+ readonly text_input_enabled: true;
360
+ readonly show_agent_status: true;
361
+ readonly terms_html: undefined;
362
+ readonly default_expanded: true;
363
+ readonly first_message: "";
364
+ readonly variant: import("../types/config").Variant;
365
+ readonly placement: import("../types/config").Placement;
366
+ readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
367
+ readonly markdown_link_include_www?: boolean;
368
+ readonly markdown_link_allow_http?: boolean;
369
+ readonly avatar: import("../types/config").AvatarConfig;
370
+ readonly feedback_mode: import("../types/config").FeedbackMode;
371
+ readonly end_feedback?: {
372
+ type: import("../types/config").FeedbackType;
373
+ } | null;
374
+ readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
375
+ readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
376
+ readonly terms_text?: string;
377
+ readonly terms_key?: string;
378
+ readonly mic_muting_enabled: boolean;
379
+ readonly always_expanded: boolean;
380
+ readonly dismissible: boolean;
381
+ readonly strip_audio_tags?: boolean;
382
+ readonly text_contents: Partial<import("../types/config").TextContents>;
383
+ readonly styles?: Partial<import("../types/config").Styles>;
384
+ readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
385
+ text_contents?: Partial<import("../types/config").TextContents>;
386
+ first_message?: string;
387
+ terms_html?: string;
388
+ terms_text?: string;
389
+ terms_key?: string;
390
+ }>>;
391
+ readonly disable_banner: boolean;
392
+ readonly override_link?: string;
393
+ readonly supports_text_only: boolean;
394
+ readonly use_rtc?: boolean;
395
+ readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
396
+ readonly conversation_mode_toggle_enabled?: boolean;
397
+ };
398
+ readonly audio_tags_strip: {
399
+ readonly text_only: true;
400
+ readonly default_expanded: true;
401
+ readonly terms_html: undefined;
402
+ readonly strip_audio_tags: true;
403
+ readonly first_message: "[happy] Hello there! [excited] How can I help you today?";
404
+ readonly variant: import("../types/config").Variant;
405
+ readonly placement: import("../types/config").Placement;
406
+ readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
407
+ readonly markdown_link_include_www?: boolean;
408
+ readonly markdown_link_allow_http?: boolean;
409
+ readonly avatar: import("../types/config").AvatarConfig;
410
+ readonly feedback_mode: import("../types/config").FeedbackMode;
411
+ readonly end_feedback?: {
412
+ type: import("../types/config").FeedbackType;
413
+ } | null;
414
+ readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
415
+ readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
416
+ readonly terms_text?: string;
417
+ readonly terms_key?: string;
418
+ readonly mic_muting_enabled: boolean;
419
+ readonly transcript_enabled: boolean;
420
+ readonly text_input_enabled: boolean;
421
+ readonly always_expanded: boolean;
422
+ readonly dismissible: boolean;
423
+ readonly text_contents: Partial<import("../types/config").TextContents>;
424
+ readonly styles?: Partial<import("../types/config").Styles>;
425
+ readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
426
+ text_contents?: Partial<import("../types/config").TextContents>;
427
+ first_message?: string;
428
+ terms_html?: string;
429
+ terms_text?: string;
430
+ terms_key?: string;
431
+ }>>;
432
+ readonly disable_banner: boolean;
433
+ readonly override_link?: string;
434
+ readonly supports_text_only: boolean;
435
+ readonly use_rtc?: boolean;
436
+ readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
437
+ readonly conversation_mode_toggle_enabled?: boolean;
438
+ readonly show_agent_status?: boolean;
439
+ };
440
+ readonly audio_tags_no_strip: {
441
+ readonly text_only: true;
442
+ readonly default_expanded: true;
443
+ readonly terms_html: undefined;
444
+ readonly strip_audio_tags: false;
445
+ readonly first_message: "[happy] Hello there! [excited] How can I help you today?";
446
+ readonly variant: import("../types/config").Variant;
447
+ readonly placement: import("../types/config").Placement;
448
+ readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
449
+ readonly markdown_link_include_www?: boolean;
450
+ readonly markdown_link_allow_http?: boolean;
451
+ readonly avatar: import("../types/config").AvatarConfig;
452
+ readonly feedback_mode: import("../types/config").FeedbackMode;
453
+ readonly end_feedback?: {
454
+ type: import("../types/config").FeedbackType;
455
+ } | null;
456
+ readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
457
+ readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
458
+ readonly terms_text?: string;
459
+ readonly terms_key?: string;
460
+ readonly mic_muting_enabled: boolean;
461
+ readonly transcript_enabled: boolean;
462
+ readonly text_input_enabled: boolean;
463
+ readonly always_expanded: boolean;
464
+ readonly dismissible: boolean;
465
+ readonly text_contents: Partial<import("../types/config").TextContents>;
466
+ readonly styles?: Partial<import("../types/config").Styles>;
467
+ readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
468
+ text_contents?: Partial<import("../types/config").TextContents>;
469
+ first_message?: string;
470
+ terms_html?: string;
471
+ terms_text?: string;
472
+ terms_key?: string;
473
+ }>>;
474
+ readonly disable_banner: boolean;
475
+ readonly override_link?: string;
476
+ readonly supports_text_only: boolean;
477
+ readonly use_rtc?: boolean;
478
+ readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
479
+ readonly conversation_mode_toggle_enabled?: boolean;
480
+ readonly show_agent_status?: boolean;
339
481
  };
340
482
  };
341
483
  export declare const Worker: import("msw/browser").SetupWorker;
@@ -0,0 +1 @@
1
+ import "./playground.css";
@@ -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-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", "dismissible", "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"];
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", "dismissible", "strip-audio-tags", "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", "show-agent-status"];
3
3
  export type CustomAttributes = {
4
4
  [key in (typeof CustomAttributeList)[number]]?: string;
5
5
  };
@@ -33,6 +33,7 @@ export interface WidgetConfig {
33
33
  default_expanded: boolean;
34
34
  always_expanded: boolean;
35
35
  dismissible: boolean;
36
+ strip_audio_tags?: boolean;
36
37
  text_contents: Partial<TextContents>;
37
38
  styles?: Partial<Styles>;
38
39
  language_presets: Partial<Record<Language, {
@@ -50,6 +51,7 @@ export interface WidgetConfig {
50
51
  use_rtc?: boolean;
51
52
  syntax_highlight_theme?: SyntaxHighlightTheme;
52
53
  conversation_mode_toggle_enabled?: boolean;
54
+ show_agent_status?: boolean;
53
55
  }
54
56
  export type AvatarConfig = {
55
57
  type: "orb";
@@ -103,6 +105,9 @@ export declare const DefaultTextContents: {
103
105
  copy: string;
104
106
  download: string;
105
107
  wrap: string;
108
+ agent_working: string;
109
+ agent_done: string;
110
+ agent_error: string;
106
111
  };
107
112
  export declare const TextKeys: (keyof typeof DefaultTextContents)[];
108
113
  export type TextContents = typeof DefaultTextContents;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Strips TTS emotional tags from text.
3
+ * Tags are in format [word word] (e.g., [happy], [excited], [sad tone])
4
+ * Does NOT strip markdown links like [text](url)
5
+ */
6
+ export declare function stripAudioTags(text: string): string;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "0.8.2";
1
+ export declare const PACKAGE_VERSION = "0.9.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevenlabs/convai-widget-core",
3
- "version": "0.8.2",
3
+ "version": "0.9.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",
@@ -26,8 +26,8 @@
26
26
  "tailwindcss": "^4.1.18",
27
27
  "typescript": "^5.5.4",
28
28
  "unified": "^11.0.5",
29
- "vite": "^6.4.1",
30
- "vite-bundle-analyzer": "^1.2.3",
29
+ "vite": "^7.3.1",
30
+ "vite-bundle-analyzer": "^1.3.2",
31
31
  "vitest": "^3.1.2"
32
32
  },
33
33
  "dependencies": {