@eshal-bot/chat-widget 0.2.29 → 0.2.30
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/{chat-widget-MarkdownRenderer-DIuz0Tg3.esm.js → chat-widget-MarkdownRenderer-7uG4QL4-.esm.js} +1 -1
- package/dist/{chat-widget-index-BDWmiQ3W.esm.js → chat-widget-index-BOTASvJq.esm.js} +3 -3
- package/dist/chat-widget.esm.js +1 -1
- package/dist/chat-widget.js +5 -1
- package/dist/chat-widget.min.js +2 -2
- package/dist/chat-widget.umd.js +2 -2
- package/package.json +1 -1
package/dist/chat-widget.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{S as default}from"./chat-widget-index-
|
|
1
|
+
export{S as default}from"./chat-widget-index-BOTASvJq.esm.js";import"react";import"react-dom/client";import"react/jsx-runtime";import"react-dom";
|
package/dist/chat-widget.js
CHANGED
|
@@ -13164,6 +13164,10 @@
|
|
|
13164
13164
|
const data = await res.json();
|
|
13165
13165
|
const serverMsgs = Array.isArray(data?.messages) ? data.messages : [];
|
|
13166
13166
|
mergeAgentMessages(serverMsgs.filter(isRepliedOutsideStream));
|
|
13167
|
+
// EV-4823: a rating the agent requested while no stream was open (the
|
|
13168
|
+
// Inbox took the conversation over without telling the widget) was
|
|
13169
|
+
// pushed to no one and lost. The history carries it, as on mount.
|
|
13170
|
+
if (data?.csatRequest) setCsatRequest(data.csatRequest);
|
|
13167
13171
|
} catch {
|
|
13168
13172
|
/* network/parse failure - the live stream still carries new messages */
|
|
13169
13173
|
}
|
|
@@ -22833,7 +22837,7 @@
|
|
|
22833
22837
|
* value by its own test (that constant sat at 0.1.113 while this package was
|
|
22834
22838
|
* at 0.2.2 precisely because nothing enforced it - EV-2431).
|
|
22835
22839
|
*/
|
|
22836
|
-
const WIDGET_VERSION = '0.2.
|
|
22840
|
+
const WIDGET_VERSION = '0.2.30';
|
|
22837
22841
|
|
|
22838
22842
|
/**
|
|
22839
22843
|
* API utility functions
|