@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 +1 -1
- package/dist/assets/avatars/index.d.ts +6 -1
- package/dist/chatui.iife.js +7 -7
- package/dist/chunks/{i18n-5KV_0_J2.js → i18n-i-innm6M.js} +3 -3
- package/dist/chunks/{settingsStore-863nT7r2.js → settingsStore-ReOi8RP1.js} +27 -3
- package/dist/chunks/{translation-CfAg14N6.js → translation-8S88rsh2.js} +2 -4
- package/dist/chunks/{translation-BWX2qtSY.js → translation-B2rvHkw2.js} +2 -4
- package/dist/index.js +238 -138
- package/dist/store.js +1 -1
- package/package.json +1 -1
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
|
-
- **
|
|
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
|
-
/**
|
|
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;
|