@snf/qa-bot-core 0.2.18 → 0.2.19
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/build/static/js/main.js +1 -1
- package/build/static/js/main.js.map +1 -1
- package/dist/qa-bot-core.js +1 -1
- package/dist/qa-bot-core.js.map +1 -1
- package/dist/qa-bot-core.standalone.js +1 -1
- package/dist/qa-bot-core.standalone.js.map +1 -1
- package/dist/qa-bot-core.umd.cjs +1 -1
- package/dist/qa-bot-core.umd.cjs.map +1 -1
- package/dist/types/utils/logger.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,7 @@ Customize appearance and behavior:
|
|
|
45
45
|
// Authentication (required)
|
|
46
46
|
isLoggedIn={true}
|
|
47
47
|
allowAnonAccess={false}
|
|
48
|
+
actingUser="user@example.com"
|
|
48
49
|
loginUrl="/login"
|
|
49
50
|
|
|
50
51
|
// Window control
|
|
@@ -129,13 +130,14 @@ bot.destroy();
|
|
|
129
130
|
| `isLoggedIn` | boolean | ✅ | Whether the user is logged in. Controls header icon and Q&A access gating |
|
|
130
131
|
| `ratingEndpoint` | string | ❌ | Rating API endpoint URL (enables thumbs up/down) |
|
|
131
132
|
| `allowAnonAccess` | boolean | ❌ | Allow Q&A access even when not logged in (default: `false`) |
|
|
133
|
+
| `actingUser` | string | ❌ | Acting user identifier sent to backend as `X-Acting-User` header and `acting_user` body field |
|
|
132
134
|
| `loginUrl` | string | ❌ | Login URL for the login button when not logged in (default: `/login`) |
|
|
133
135
|
| `open` | boolean | ❌ | Control chat window open/closed state |
|
|
134
136
|
| `onOpenChange` | function | ❌ | Callback when chat window state changes: `(open: boolean) => void` |
|
|
135
137
|
| `primaryColor` | string | ❌ | Main theme color (default: `#1a5b6e`) |
|
|
136
138
|
| `secondaryColor` | string | ❌ | Secondary theme color (default: `#107180`) |
|
|
137
139
|
| `botName` | string | ❌ | Bot display name (default: `Q&A Bot`) |
|
|
138
|
-
| `logo` | string | ❌ | Bot avatar URL (default: `/
|
|
140
|
+
| `logo` | string | ❌ | Bot avatar URL (default: `/chat-icon.svg`) |
|
|
139
141
|
| `placeholder` | string | ❌ | Input placeholder text |
|
|
140
142
|
| `errorMessage` | string | ❌ | Error state message |
|
|
141
143
|
| `tooltipText` | string | ❌ | Tooltip text for chat toggle |
|