@elevenlabs/convai-widget-core 0.12.7 → 0.12.9

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,8 +15,8 @@ export declare const AGENTS: {
15
15
  } | null;
16
16
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
17
17
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
18
- readonly terms_html?: string;
19
- readonly terms_text?: string;
18
+ readonly terms_html?: string | null;
19
+ readonly terms_text?: string | null;
20
20
  readonly terms_key?: string;
21
21
  readonly mic_muting_enabled: boolean;
22
22
  readonly transcript_enabled: boolean;
@@ -30,8 +30,8 @@ export declare const AGENTS: {
30
30
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
31
31
  text_contents?: Partial<import("../types/config").TextContents>;
32
32
  first_message?: string;
33
- terms_html?: string;
34
- terms_text?: string;
33
+ terms_html?: string | null;
34
+ terms_text?: string | null;
35
35
  terms_key?: string;
36
36
  }>>;
37
37
  readonly disable_banner: boolean;
@@ -62,8 +62,8 @@ export declare const AGENTS: {
62
62
  } | null;
63
63
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
64
64
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
65
- readonly terms_html?: string;
66
- readonly terms_text?: string;
65
+ readonly terms_html?: string | null;
66
+ readonly terms_text?: string | null;
67
67
  readonly terms_key?: string;
68
68
  readonly mic_muting_enabled: boolean;
69
69
  readonly transcript_enabled: boolean;
@@ -77,8 +77,8 @@ export declare const AGENTS: {
77
77
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
78
78
  text_contents?: Partial<import("../types/config").TextContents>;
79
79
  first_message?: string;
80
- terms_html?: string;
81
- terms_text?: string;
80
+ terms_html?: string | null;
81
+ terms_text?: string | null;
82
82
  terms_key?: string;
83
83
  }>>;
84
84
  readonly disable_banner: boolean;
@@ -113,8 +113,8 @@ export declare const AGENTS: {
113
113
  } | null;
114
114
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
115
115
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
116
- readonly terms_html?: string;
117
- readonly terms_text?: string;
116
+ readonly terms_html?: string | null;
117
+ readonly terms_text?: string | null;
118
118
  readonly terms_key?: string;
119
119
  readonly mic_muting_enabled: boolean;
120
120
  readonly default_expanded: boolean;
@@ -126,8 +126,8 @@ export declare const AGENTS: {
126
126
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
127
127
  text_contents?: Partial<import("../types/config").TextContents>;
128
128
  first_message?: string;
129
- terms_html?: string;
130
- terms_text?: string;
129
+ terms_html?: string | null;
130
+ terms_text?: string | null;
131
131
  terms_key?: string;
132
132
  }>>;
133
133
  readonly disable_banner: boolean;
@@ -176,7 +176,7 @@ export declare const AGENTS: {
176
176
  type: import("../types/config").FeedbackType;
177
177
  } | null;
178
178
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
179
- readonly terms_text?: string;
179
+ readonly terms_text?: string | null;
180
180
  readonly mic_muting_enabled: boolean;
181
181
  readonly transcript_enabled: boolean;
182
182
  readonly text_input_enabled: boolean;
@@ -201,6 +201,52 @@ export declare const AGENTS: {
201
201
  max_files_per_conversation?: number;
202
202
  };
203
203
  };
204
+ readonly terms_disabled_with_stale_presets: {
205
+ readonly text_only: true;
206
+ readonly default_expanded: true;
207
+ readonly terms_html: null;
208
+ readonly terms_text: null;
209
+ readonly supported_language_overrides: ["en"];
210
+ readonly language_presets: {
211
+ readonly en: {
212
+ readonly terms_html: "<p>Stale preset terms</p>";
213
+ readonly terms_text: "Stale preset terms";
214
+ };
215
+ };
216
+ readonly variant: import("../types/config").Variant;
217
+ readonly placement: import("../types/config").Placement;
218
+ readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
219
+ readonly markdown_link_include_www?: boolean;
220
+ readonly markdown_link_allow_http?: boolean;
221
+ readonly avatar: import("../types/config").AvatarConfig;
222
+ readonly feedback_mode: import("../types/config").FeedbackMode;
223
+ readonly end_feedback?: {
224
+ type: import("../types/config").FeedbackType;
225
+ } | null;
226
+ readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
227
+ readonly terms_key?: string;
228
+ readonly mic_muting_enabled: boolean;
229
+ readonly transcript_enabled: boolean;
230
+ readonly text_input_enabled: boolean;
231
+ readonly always_expanded: boolean;
232
+ readonly dismissible: boolean;
233
+ readonly strip_audio_tags?: boolean;
234
+ readonly text_contents: Partial<import("../types/config").TextContents>;
235
+ readonly styles?: Partial<import("../types/config").Styles>;
236
+ readonly disable_banner: boolean;
237
+ readonly override_link?: string;
238
+ readonly supports_text_only: boolean;
239
+ readonly first_message?: string;
240
+ readonly use_rtc?: boolean;
241
+ readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
242
+ readonly conversation_mode_toggle_enabled?: boolean;
243
+ readonly show_agent_status?: boolean;
244
+ readonly show_conversation_id?: boolean;
245
+ readonly file_input_config?: {
246
+ enabled?: boolean;
247
+ max_files_per_conversation?: number;
248
+ };
249
+ };
204
250
  readonly markdown: {
205
251
  readonly text_only: true;
206
252
  readonly terms_html: undefined;
@@ -220,7 +266,7 @@ export declare const AGENTS: {
220
266
  } | null;
221
267
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
222
268
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
223
- readonly terms_text?: string;
269
+ readonly terms_text?: string | null;
224
270
  readonly terms_key?: string;
225
271
  readonly mic_muting_enabled: boolean;
226
272
  readonly transcript_enabled: boolean;
@@ -233,8 +279,8 @@ export declare const AGENTS: {
233
279
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
234
280
  text_contents?: Partial<import("../types/config").TextContents>;
235
281
  first_message?: string;
236
- terms_html?: string;
237
- terms_text?: string;
282
+ terms_html?: string | null;
283
+ terms_text?: string | null;
238
284
  terms_key?: string;
239
285
  }>>;
240
286
  readonly disable_banner: boolean;
@@ -267,7 +313,7 @@ export declare const AGENTS: {
267
313
  } | null;
268
314
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
269
315
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
270
- readonly terms_text?: string;
316
+ readonly terms_text?: string | null;
271
317
  readonly terms_key?: string;
272
318
  readonly mic_muting_enabled: boolean;
273
319
  readonly transcript_enabled: boolean;
@@ -280,8 +326,8 @@ export declare const AGENTS: {
280
326
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
281
327
  text_contents?: Partial<import("../types/config").TextContents>;
282
328
  first_message?: string;
283
- terms_html?: string;
284
- terms_text?: string;
329
+ terms_html?: string | null;
330
+ terms_text?: string | null;
285
331
  terms_key?: string;
286
332
  }>>;
287
333
  readonly disable_banner: boolean;
@@ -316,7 +362,7 @@ export declare const AGENTS: {
316
362
  } | null;
317
363
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
318
364
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
319
- readonly terms_text?: string;
365
+ readonly terms_text?: string | null;
320
366
  readonly terms_key?: string;
321
367
  readonly mic_muting_enabled: boolean;
322
368
  readonly transcript_enabled: boolean;
@@ -329,8 +375,8 @@ export declare const AGENTS: {
329
375
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
330
376
  text_contents?: Partial<import("../types/config").TextContents>;
331
377
  first_message?: string;
332
- terms_html?: string;
333
- terms_text?: string;
378
+ terms_html?: string | null;
379
+ terms_text?: string | null;
334
380
  terms_key?: string;
335
381
  }>>;
336
382
  readonly disable_banner: boolean;
@@ -363,7 +409,7 @@ export declare const AGENTS: {
363
409
  } | null;
364
410
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
365
411
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
366
- readonly terms_text?: string;
412
+ readonly terms_text?: string | null;
367
413
  readonly terms_key?: string;
368
414
  readonly mic_muting_enabled: boolean;
369
415
  readonly transcript_enabled: boolean;
@@ -376,8 +422,8 @@ export declare const AGENTS: {
376
422
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
377
423
  text_contents?: Partial<import("../types/config").TextContents>;
378
424
  first_message?: string;
379
- terms_html?: string;
380
- terms_text?: string;
425
+ terms_html?: string | null;
426
+ terms_text?: string | null;
381
427
  terms_key?: string;
382
428
  }>>;
383
429
  readonly disable_banner: boolean;
@@ -413,7 +459,7 @@ export declare const AGENTS: {
413
459
  } | null;
414
460
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
415
461
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
416
- readonly terms_text?: string;
462
+ readonly terms_text?: string | null;
417
463
  readonly terms_key?: string;
418
464
  readonly mic_muting_enabled: boolean;
419
465
  readonly always_expanded: boolean;
@@ -424,8 +470,8 @@ export declare const AGENTS: {
424
470
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
425
471
  text_contents?: Partial<import("../types/config").TextContents>;
426
472
  first_message?: string;
427
- terms_html?: string;
428
- terms_text?: string;
473
+ terms_html?: string | null;
474
+ terms_text?: string | null;
429
475
  terms_key?: string;
430
476
  }>>;
431
477
  readonly disable_banner: boolean;
@@ -458,7 +504,7 @@ export declare const AGENTS: {
458
504
  } | null;
459
505
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
460
506
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
461
- readonly terms_text?: string;
507
+ readonly terms_text?: string | null;
462
508
  readonly terms_key?: string;
463
509
  readonly mic_muting_enabled: boolean;
464
510
  readonly transcript_enabled: boolean;
@@ -470,8 +516,8 @@ export declare const AGENTS: {
470
516
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
471
517
  text_contents?: Partial<import("../types/config").TextContents>;
472
518
  first_message?: string;
473
- terms_html?: string;
474
- terms_text?: string;
519
+ terms_html?: string | null;
520
+ terms_text?: string | null;
475
521
  terms_key?: string;
476
522
  }>>;
477
523
  readonly disable_banner: boolean;
@@ -505,7 +551,7 @@ export declare const AGENTS: {
505
551
  } | null;
506
552
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
507
553
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
508
- readonly terms_text?: string;
554
+ readonly terms_text?: string | null;
509
555
  readonly terms_key?: string;
510
556
  readonly mic_muting_enabled: boolean;
511
557
  readonly transcript_enabled: boolean;
@@ -517,8 +563,102 @@ export declare const AGENTS: {
517
563
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
518
564
  text_contents?: Partial<import("../types/config").TextContents>;
519
565
  first_message?: string;
520
- terms_html?: string;
521
- terms_text?: string;
566
+ terms_html?: string | null;
567
+ terms_text?: string | null;
568
+ terms_key?: string;
569
+ }>>;
570
+ readonly disable_banner: boolean;
571
+ readonly override_link?: string;
572
+ readonly supports_text_only: boolean;
573
+ readonly use_rtc?: boolean;
574
+ readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
575
+ readonly conversation_mode_toggle_enabled?: boolean;
576
+ readonly show_agent_status?: boolean;
577
+ readonly show_conversation_id?: boolean;
578
+ readonly file_input_config?: {
579
+ enabled?: boolean;
580
+ max_files_per_conversation?: number;
581
+ };
582
+ };
583
+ readonly audio_tags_voice_strip: {
584
+ readonly text_only: false;
585
+ readonly transcript_enabled: true;
586
+ readonly default_expanded: true;
587
+ readonly terms_html: undefined;
588
+ readonly strip_audio_tags: true;
589
+ readonly first_message: "[happy] Hello there! [excited] How can I help you today?";
590
+ readonly variant: import("../types/config").Variant;
591
+ readonly placement: import("../types/config").Placement;
592
+ readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
593
+ readonly markdown_link_include_www?: boolean;
594
+ readonly markdown_link_allow_http?: boolean;
595
+ readonly avatar: import("../types/config").AvatarConfig;
596
+ readonly feedback_mode: import("../types/config").FeedbackMode;
597
+ readonly end_feedback?: {
598
+ type: import("../types/config").FeedbackType;
599
+ } | null;
600
+ readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
601
+ readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
602
+ readonly terms_text?: string | null;
603
+ readonly terms_key?: string;
604
+ readonly mic_muting_enabled: boolean;
605
+ readonly text_input_enabled: boolean;
606
+ readonly always_expanded: boolean;
607
+ readonly dismissible: boolean;
608
+ readonly text_contents: Partial<import("../types/config").TextContents>;
609
+ readonly styles?: Partial<import("../types/config").Styles>;
610
+ readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
611
+ text_contents?: Partial<import("../types/config").TextContents>;
612
+ first_message?: string;
613
+ terms_html?: string | null;
614
+ terms_text?: string | null;
615
+ terms_key?: string;
616
+ }>>;
617
+ readonly disable_banner: boolean;
618
+ readonly override_link?: string;
619
+ readonly supports_text_only: boolean;
620
+ readonly use_rtc?: boolean;
621
+ readonly syntax_highlight_theme?: import("../types/config").SyntaxHighlightTheme;
622
+ readonly conversation_mode_toggle_enabled?: boolean;
623
+ readonly show_agent_status?: boolean;
624
+ readonly show_conversation_id?: boolean;
625
+ readonly file_input_config?: {
626
+ enabled?: boolean;
627
+ max_files_per_conversation?: number;
628
+ };
629
+ };
630
+ readonly audio_tags_voice_style: {
631
+ readonly text_only: false;
632
+ readonly transcript_enabled: true;
633
+ readonly default_expanded: true;
634
+ readonly terms_html: undefined;
635
+ readonly strip_audio_tags: false;
636
+ readonly first_message: "[happy] Hello there! [excited] How can I help you today?";
637
+ readonly variant: import("../types/config").Variant;
638
+ readonly placement: import("../types/config").Placement;
639
+ readonly markdown_link_allowed_hosts?: import("../types/config").AllowlistItem[];
640
+ readonly markdown_link_include_www?: boolean;
641
+ readonly markdown_link_allow_http?: boolean;
642
+ readonly avatar: import("../types/config").AvatarConfig;
643
+ readonly feedback_mode: import("../types/config").FeedbackMode;
644
+ readonly end_feedback?: {
645
+ type: import("../types/config").FeedbackType;
646
+ } | null;
647
+ readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
648
+ readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
649
+ readonly terms_text?: string | null;
650
+ readonly terms_key?: string;
651
+ readonly mic_muting_enabled: boolean;
652
+ readonly text_input_enabled: boolean;
653
+ readonly always_expanded: boolean;
654
+ readonly dismissible: boolean;
655
+ readonly text_contents: Partial<import("../types/config").TextContents>;
656
+ readonly styles?: Partial<import("../types/config").Styles>;
657
+ readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
658
+ text_contents?: Partial<import("../types/config").TextContents>;
659
+ first_message?: string;
660
+ terms_html?: string | null;
661
+ terms_text?: string | null;
522
662
  terms_key?: string;
523
663
  }>>;
524
664
  readonly disable_banner: boolean;
@@ -557,7 +697,7 @@ export declare const AGENTS: {
557
697
  } | null;
558
698
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
559
699
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
560
- readonly terms_text?: string;
700
+ readonly terms_text?: string | null;
561
701
  readonly terms_key?: string;
562
702
  readonly mic_muting_enabled: boolean;
563
703
  readonly always_expanded: boolean;
@@ -568,8 +708,8 @@ export declare const AGENTS: {
568
708
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
569
709
  text_contents?: Partial<import("../types/config").TextContents>;
570
710
  first_message?: string;
571
- terms_html?: string;
572
- terms_text?: string;
711
+ terms_html?: string | null;
712
+ terms_text?: string | null;
573
713
  terms_key?: string;
574
714
  }>>;
575
715
  readonly disable_banner: boolean;
@@ -603,7 +743,7 @@ export declare const AGENTS: {
603
743
  } | null;
604
744
  readonly language: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage;
605
745
  readonly supported_language_overrides?: import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage[];
606
- readonly terms_text?: string;
746
+ readonly terms_text?: string | null;
607
747
  readonly terms_key?: string;
608
748
  readonly mic_muting_enabled: boolean;
609
749
  readonly always_expanded: boolean;
@@ -614,8 +754,8 @@ export declare const AGENTS: {
614
754
  readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
615
755
  text_contents?: Partial<import("../types/config").TextContents>;
616
756
  first_message?: string;
617
- terms_html?: string;
618
- terms_text?: string;
757
+ terms_html?: string | null;
758
+ terms_text?: string | null;
619
759
  terms_key?: string;
620
760
  }>>;
621
761
  readonly disable_banner: boolean;
@@ -24,8 +24,8 @@ export interface WidgetConfig {
24
24
  } | null;
25
25
  language: Language;
26
26
  supported_language_overrides?: Language[];
27
- terms_html?: string;
28
- terms_text?: string;
27
+ terms_html?: string | null;
28
+ terms_text?: string | null;
29
29
  terms_key?: string;
30
30
  mic_muting_enabled: boolean;
31
31
  transcript_enabled: boolean;
@@ -39,8 +39,8 @@ export interface WidgetConfig {
39
39
  language_presets: Partial<Record<Language, {
40
40
  text_contents?: Partial<TextContents>;
41
41
  first_message?: string;
42
- terms_html?: string;
43
- terms_text?: string;
42
+ terms_html?: string | null;
43
+ terms_text?: string | null;
44
44
  terms_key?: string;
45
45
  }>>;
46
46
  disable_banner: boolean;
@@ -0,0 +1,7 @@
1
+ export declare const AUDIO_TAG_PATTERN: RegExp;
2
+ export declare const AUDIO_TAG_CLASSNAME = "font-medium py-px px-1 border border-audio-tag/20 rounded-button whitespace-nowrap text-audio-tag";
3
+ export interface ParsedTextPart {
4
+ type: "text" | "audioTag";
5
+ content: string;
6
+ }
7
+ export declare function parseTextWithAudioTags(text: string): ParsedTextPart[];
@@ -0,0 +1 @@
1
+ export {};
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "0.12.7";
1
+ export declare const PACKAGE_VERSION = "0.12.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevenlabs/convai-widget-core",
3
- "version": "0.12.7",
3
+ "version": "0.12.9",
4
4
  "description": "The common library for the Conversational AI Widget.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -60,7 +60,7 @@
60
60
  "remark-parse": "^11.0.0",
61
61
  "remark-rehype": "^11.1.2",
62
62
  "tailwind-merge": "^3.4.0",
63
- "@elevenlabs/client": "1.8.1"
63
+ "@elevenlabs/client": "1.9.0"
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "public"