@elia-assistant/chatui 1.0.21 → 1.0.24

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.
package/README.md CHANGED
@@ -69,7 +69,7 @@ const instance = createChat({
69
69
  - **Optional tabs** — surface a Notifications feed (URL or inline JSON) and a searchable FAQ alongside the chat
70
70
  - **SSE streaming** — optional word-by-word bot responses
71
71
  - **10 built-in themes** — Midnight, Ivory, Sunrise, Cosmos, Forest, Ocean, Cherry, Navy, Lavender, Amber; switch at runtime
72
- - **12 built-in avatars** + file upload (max 500 KB) or URL — same picker for the floating button icon
72
+ - **30 built-in avatars** + file upload (max 500 KB) or URL — same picker for the floating button icon
73
73
  - **CTA popup** — timed speech-bubble with optional Web Audio notification, window mode only
74
74
  - **Conversation history** — optional sidebar with persistent multi-session history
75
75
  - **Per-language content** — initial messages, bot name, CTA text, welcome subtitle, tab titles, all configurable per language
@@ -1,4 +1,9 @@
1
1
  export declare const builtInAvatars: Record<string, string>;
2
2
  export declare const builtInAvatarIds: string[];
3
- /** Resolve a user-supplied value to a URL suitable for <img src>. */
3
+ /** Returns the effective avatar key after resolving fallbacks.
4
+ * Unknown built-in IDs (e.g. a removed avatar) normalise to 'bubble'.
5
+ * External URLs are returned as-is. */
6
+ export declare function effectiveAvatarKey(value: string | undefined): string | undefined;
7
+ /** Resolve a user-supplied value to a URL suitable for <img src>.
8
+ * Unknown built-in IDs fall back to the 'bubble' icon. */
4
9
  export declare function resolveAvatarUrl(value: string | undefined): string | undefined;