@snf/qa-bot-core 0.2.11-debug.2 → 0.2.11-debug.3
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/dist/qa-bot-core.js +2 -2
- 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 +2 -2
- package/dist/qa-bot-core.umd.cjs.map +1 -1
- package/dist/types/components/SessionMessageTracker.d.ts +4 -5
- package/dist/types/utils/logger.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
* which messages belong to which conversation. Also, RCB's history storage
|
|
7
7
|
* is opaque and unreliable for session restore.
|
|
8
8
|
*
|
|
9
|
-
* Solution: This component
|
|
10
|
-
*
|
|
9
|
+
* Solution: This component watches the messages array via useMessages hook
|
|
10
|
+
* and stores new messages in our own localStorage. The history dropdown
|
|
11
11
|
* restores sessions directly from our storage, not RCB's.
|
|
12
12
|
*
|
|
13
|
-
* Note: react-chatbotify wraps all messages (including plain strings) in JSX
|
|
14
|
-
*
|
|
15
|
-
* from bot messages so they appear in restored sessions.
|
|
13
|
+
* Note: react-chatbotify wraps all messages (including plain strings) in JSX.
|
|
14
|
+
* We use extractTextFromJsx() to recover the text content from bot messages.
|
|
16
15
|
*
|
|
17
16
|
* Deduplication is handled by session-utils (checks message ID).
|
|
18
17
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Usage for consumers:
|
|
8
8
|
* localStorage.setItem('QA_BOT_DEBUG', 'true'); // Enable debug logs + version
|
|
9
9
|
*/
|
|
10
|
-
export declare const LIB_VERSION = "0.2.11-debug.
|
|
10
|
+
export declare const LIB_VERSION = "0.2.11-debug.3";
|
|
11
11
|
export declare const logger: {
|
|
12
12
|
version: () => void;
|
|
13
13
|
session: (action: string, ...args: unknown[]) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snf/qa-bot-core",
|
|
3
|
-
"version": "0.2.11-debug.
|
|
3
|
+
"version": "0.2.11-debug.3",
|
|
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",
|