@snf/qa-bot-core 0.2.36 → 0.2.38
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 +8 -0
- package/dist/qa-bot-core.js +1 -1
- package/dist/qa-bot-core.js.map +1 -1
- package/dist/qa-bot-core.standalone.js +4 -4
- 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/components/TurnstileWidget.d.ts +2 -1
- package/dist/types/components/icons/BaseIcon.d.ts +8 -8
- package/dist/types/components/icons/HomeIcon.d.ts +3 -0
- package/dist/types/components/icons/RefreshIcon.d.ts +2 -2
- package/dist/types/components/icons/UploadIcon.d.ts +2 -2
- package/dist/types/config.d.ts +7 -1
- package/dist/types/hooks/useTurnstile.d.ts +9 -1
- package/dist/types/utils/flows/qa-flow.d.ts +4 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -428,9 +428,17 @@ The bot fires analytics events via an optional callback prop, allowing you to wi
|
|
|
428
428
|
| `chatbot_answer_error` | API call fails | `sessionId`, `queryId`, `errorType` |
|
|
429
429
|
| `chatbot_rating_sent` | User rates response | `sessionId`, `queryId`, `rating` |
|
|
430
430
|
| `chatbot_login_prompt_shown` | Login gate displayed | `sessionId` |
|
|
431
|
+
| `chatbot_login_clicked` | User clicks login link | `sessionId`, `loginUrl` |
|
|
432
|
+
| `chatbot_link_clicked` | User clicks a link in a bot message | `sessionId`, `linkUrl`, `linkText` |
|
|
433
|
+
| `chatbot_turnstile_shown` | Visible Turnstile challenge displayed | `sessionId`, `queryId` |
|
|
434
|
+
| `chatbot_turnstile_completed` | User solved visible challenge | `sessionId` |
|
|
435
|
+
| `chatbot_turnstile_error` | Visible challenge failed or was cancelled | `sessionId`, `queryId`, `failureReason`, `cloudflareErrorCode` |
|
|
436
|
+
| `chatbot_turnstile_silent_failed` | Silent verification failed on page load | `sessionId`, `failureReason`, `cloudflareErrorCode` |
|
|
431
437
|
|
|
432
438
|
All events include `type` and `timestamp`. The `sessionId` is auto-injected when available.
|
|
433
439
|
|
|
440
|
+
See **[docs/analytics.md](docs/analytics.md)** for the full event reference, wiring examples, and monitoring guidance.
|
|
441
|
+
|
|
434
442
|
**TypeScript:**
|
|
435
443
|
|
|
436
444
|
```typescript
|