@snf/access-qa-bot 3.0.4 → 3.1.0-rc.2
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 +96 -0
- package/dist/access-qa-bot.js +8521 -8085
- package/dist/access-qa-bot.js.map +1 -1
- package/dist/access-qa-bot.standalone.js +63 -59
- package/dist/access-qa-bot.standalone.js.map +1 -1
- package/dist/access-qa-bot.umd.cjs +119 -115
- package/dist/access-qa-bot.umd.cjs.map +1 -1
- package/dist/index.d.ts +17 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,17 @@ declare const AccessQABot: ForwardRefExoticComponent<QABotProps & RefAttributes<
|
|
|
15
15
|
export { AccessQABot }
|
|
16
16
|
export { AccessQABot as QABot }
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Analytics event from AccessQABot
|
|
20
|
+
* Includes both core events (from qa-bot-core) and Layer 2 events (ACCESS-specific)
|
|
21
|
+
*/
|
|
22
|
+
declare interface AccessQABotAnalyticsEvent {
|
|
23
|
+
type: string;
|
|
24
|
+
sessionId?: string;
|
|
25
|
+
timestamp: number;
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
|
|
18
29
|
export declare const API_CONFIG: {
|
|
19
30
|
QA_ENDPOINT: string;
|
|
20
31
|
RATING_ENDPOINT: string;
|
|
@@ -66,6 +77,12 @@ export declare interface QABotProps {
|
|
|
66
77
|
ringEffect?: boolean;
|
|
67
78
|
defaultOpen?: boolean;
|
|
68
79
|
onClose?: () => void;
|
|
80
|
+
/**
|
|
81
|
+
* Callback for analytics events.
|
|
82
|
+
* Receives both core events (qa_bot_opened, qa_question_asked, etc.)
|
|
83
|
+
* and Layer 2 events (chatbot_menu_selected, chatbot_ticket_submitted, etc.)
|
|
84
|
+
*/
|
|
85
|
+
onAnalyticsEvent?: (event: AccessQABotAnalyticsEvent) => void;
|
|
69
86
|
}
|
|
70
87
|
|
|
71
88
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snf/access-qa-bot",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.1.0-rc.2",
|
|
4
4
|
"description": "ACCESS-specific wrapper around @snf/qa-bot-core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/access-qa-bot.umd.cjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react-dom": "^18.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@snf/qa-bot-core": "^0.2.
|
|
33
|
+
"@snf/qa-bot-core": "^0.2.14",
|
|
34
34
|
"react-chatbotify": "^2.0.0",
|
|
35
35
|
"uuid": "^11.1.0"
|
|
36
36
|
},
|