@elia-assistant/chatui 1.0.24 → 1.0.25
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 +3 -1
- package/dist/assets/avatars/index.d.ts +4 -0
- package/dist/chatui.iife.js +24 -24
- package/dist/chunks/{i18n-i-innm6M.js → i18n-Vi-f1TFq.js} +3 -3
- package/dist/chunks/{settingsStore-ReOi8RP1.js → settingsStore-yU8h8KVJ.js} +2 -2
- package/dist/chunks/{translation-8S88rsh2.js → translation-B0QPZgVW.js} +4 -1
- package/dist/chunks/{translation-B2rvHkw2.js → translation-BYSHywcB.js} +4 -1
- package/dist/components/ChatView.d.ts +3 -1
- package/dist/components/CtaPopup.d.ts +2 -1
- package/dist/index.js +944 -836
- package/dist/store.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,6 +65,7 @@ const instance = createChat({
|
|
|
65
65
|
|
|
66
66
|
- **n8n webhook compatible** — same parameters as `@n8n/chat`; works with any Chat Trigger out of the box
|
|
67
67
|
- **Three display modes** — `fullscreen`, `window` (floating button + popup), or `mixed` (window on desktop, fullscreen on mobile)
|
|
68
|
+
- **Left/right positioning** — `position: 'left'` anchors the floating button and chat window to the left side of the screen
|
|
68
69
|
- **Bottom-sheet style** — opt-in `fullscreenSheet` mode covers ~3/4 of the screen with a rounded top instead of going edge-to-edge
|
|
69
70
|
- **Optional tabs** — surface a Notifications feed (URL or inline JSON) and a searchable FAQ alongside the chat
|
|
70
71
|
- **SSE streaming** — optional word-by-word bot responses
|
|
@@ -107,7 +108,8 @@ All options live on `ChatConfig`. Set them once at boot via `setConfig()` (or pa
|
|
|
107
108
|
|
|
108
109
|
| Parameter | Type | Default | Description |
|
|
109
110
|
|---|---|---|---|
|
|
110
|
-
| `mode` | `'fullscreen' \| 'window' \| 'mixed'` | `'
|
|
111
|
+
| `mode` | `'fullscreen' \| 'window' \| 'mixed'` | `'window'` | Display mode |
|
|
112
|
+
| `position` | `'right' \| 'left'` | `'right'` | Side of the screen the floating widget is anchored to (window / mixed mode) |
|
|
111
113
|
| `fullscreenSheet` | `boolean` | `false` | Render fullscreen as a bottom sheet (rounded top, dimmed backdrop) |
|
|
112
114
|
| `fullscreenSheetHeight` | `string` | `'75vh'` | Sheet height as any CSS length |
|
|
113
115
|
| `showWelcomeScreen` | `boolean` | `true` | Show welcome screen when no messages |
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare const builtInAvatars: Record<string, string>;
|
|
2
2
|
export declare const builtInAvatarIds: string[];
|
|
3
|
+
export declare const WHITE_BG_AVATARS: Set<string>;
|
|
4
|
+
export declare const THEME_BG_AVATARS: Set<string>;
|
|
5
|
+
/** Returns the CSS background value for an avatar container based on the avatar type. */
|
|
6
|
+
export declare function avatarContainerBg(key: string | undefined): string;
|
|
3
7
|
/** Returns the effective avatar key after resolving fallbacks.
|
|
4
8
|
* Unknown built-in IDs (e.g. a removed avatar) normalise to 'bubble'.
|
|
5
9
|
* External URLs are returned as-is. */
|