@diffsome/react 1.2.18 → 1.3.1
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/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3000,11 +3000,13 @@ var ChatBubble = ({
|
|
|
3000
3000
|
const response = await conn.send(content);
|
|
3001
3001
|
if (response) {
|
|
3002
3002
|
seenMessageIds.current.add(response.id);
|
|
3003
|
+
if (response.bot_response) {
|
|
3004
|
+
seenMessageIds.current.add(response.bot_response.id);
|
|
3005
|
+
}
|
|
3003
3006
|
setMessages(
|
|
3004
3007
|
(prev) => prev.map((m) => m.id === tempId ? { ...response, is_pending: false } : m)
|
|
3005
3008
|
);
|
|
3006
3009
|
if (response.bot_response) {
|
|
3007
|
-
seenMessageIds.current.add(response.bot_response.id);
|
|
3008
3010
|
setMessages((prev) => [...prev, response.bot_response]);
|
|
3009
3011
|
}
|
|
3010
3012
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2908,11 +2908,13 @@ var ChatBubble = ({
|
|
|
2908
2908
|
const response = await conn.send(content);
|
|
2909
2909
|
if (response) {
|
|
2910
2910
|
seenMessageIds.current.add(response.id);
|
|
2911
|
+
if (response.bot_response) {
|
|
2912
|
+
seenMessageIds.current.add(response.bot_response.id);
|
|
2913
|
+
}
|
|
2911
2914
|
setMessages(
|
|
2912
2915
|
(prev) => prev.map((m) => m.id === tempId ? { ...response, is_pending: false } : m)
|
|
2913
2916
|
);
|
|
2914
2917
|
if (response.bot_response) {
|
|
2915
|
-
seenMessageIds.current.add(response.bot_response.id);
|
|
2916
2918
|
setMessages((prev) => [...prev, response.bot_response]);
|
|
2917
2919
|
}
|
|
2918
2920
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diffsome/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "React hooks and providers for Diffsome SDK - Headless e-commerce & CMS",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"url": "https://github.com/diffsome/diffsome-react.git"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@diffsome/sdk": ">=3.
|
|
42
|
+
"@diffsome/sdk": ">=3.3.0",
|
|
43
43
|
"react": ">=18.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@diffsome/sdk": "^3.
|
|
46
|
+
"@diffsome/sdk": "^3.3.0",
|
|
47
47
|
"@types/node": "^25.0.10",
|
|
48
48
|
"@types/react": "^18.2.0",
|
|
49
49
|
"react": "^18.2.0",
|