@snf/qa-bot-core 0.2.24 → 0.2.26

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.
@@ -2,7 +2,7 @@ import type { Settings, Flow } from 'react-chatbotify';
2
2
  /**
3
3
  * Analytics event types fired by qa-bot-core
4
4
  */
5
- export type QABotAnalyticsEventType = 'chatbot_open' | 'chatbot_close' | 'chatbot_new_chat' | 'chatbot_question_sent' | 'chatbot_answer_received' | 'chatbot_answer_error' | 'chatbot_rating_sent' | 'chatbot_login_prompt_shown';
5
+ export type QABotAnalyticsEventType = 'chatbot_open' | 'chatbot_close' | 'chatbot_new_chat' | 'chatbot_question_sent' | 'chatbot_answer_received' | 'chatbot_answer_error' | 'chatbot_rating_sent' | 'chatbot_login_prompt_shown' | 'chatbot_login_clicked' | 'chatbot_link_clicked';
6
6
  /**
7
7
  * Analytics event payload
8
8
  *
@@ -21,6 +21,8 @@ export type QABotAnalyticsEventType = 'chatbot_open' | 'chatbot_close' | 'chatbo
21
21
  * - chatbot_answer_error: queryId, errorType
22
22
  * - chatbot_rating_sent: queryId, rating
23
23
  * - chatbot_login_prompt_shown: (common fields only)
24
+ * - chatbot_login_clicked: loginUrl
25
+ * - chatbot_link_clicked: linkUrl, linkText
24
26
  */
25
27
  export interface QABotAnalyticsEvent {
26
28
  type: QABotAnalyticsEventType;
@@ -39,6 +41,9 @@ export interface QABotAnalyticsEvent {
39
41
  messageCount?: number;
40
42
  durationMs?: number;
41
43
  previousMessageCount?: number;
44
+ loginUrl?: string;
45
+ linkUrl?: string;
46
+ linkText?: string;
42
47
  }
43
48
  export interface QABotProps {
44
49
  apiKey: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snf/qa-bot-core",
3
- "version": "0.2.24",
3
+ "version": "0.2.26",
4
4
  "description": "A configurable chatbot setup for quick integration of RAG-powered Q&A and rating system",
5
5
  "main": "./dist/qa-bot-core.umd.cjs",
6
6
  "module": "./dist/qa-bot-core.js",
@@ -21,7 +21,7 @@
21
21
  "@rcb-plugins/html-renderer": "^0.3.1",
22
22
  "@rcb-plugins/markdown-renderer": "^0.3.1",
23
23
  "@rcb-plugins/input-validator": "^0.3.0",
24
- "react-chatbotify": "^2.2.0",
24
+ "react-chatbotify": "^2.5.0",
25
25
  "uuid": "^11.1.0"
26
26
  },
27
27
  "peerDependencies": {