@eshal-bot/chat-widget 0.2.11 → 0.2.12
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-DJIte38L.esm.js → chat-widget-MarkdownRenderer-CBSXpNd6.esm.js} +1 -1
- package/dist/{chat-widget-index-BIs09ktJ.esm.js → chat-widget-index-DqpnMEPr.esm.js} +1 -1
- package/dist/chat-widget.esm.js +1 -1
- package/dist/chat-widget.js +10 -3
- package/dist/chat-widget.min.js +1 -1
- package/dist/chat-widget.umd.js +1 -1
- 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-DqpnMEPr.esm.js";import"react";import"react-dom/client";import"react/jsx-runtime";import"react-dom";
|
package/dist/chat-widget.js
CHANGED
|
@@ -18402,7 +18402,14 @@
|
|
|
18402
18402
|
const handleKeyPress = event => {
|
|
18403
18403
|
if (event.key === "Enter" && !event.shiftKey) {
|
|
18404
18404
|
event.preventDefault();
|
|
18405
|
-
|
|
18405
|
+
// EV-4179: the voice WS only carries text, so a file attached during a
|
|
18406
|
+
// live voice session can't ride it. When there's a ready attachment we
|
|
18407
|
+
// fall through to the normal text send (sendWithAttachments) instead,
|
|
18408
|
+
// which POSTs to /support with the SAME conversationId as the voice
|
|
18409
|
+
// session - so the file is ingested into the shared session store and
|
|
18410
|
+
// answered, and later spoken turns in the same session see it too. A
|
|
18411
|
+
// plain voice turn (no attachment) still goes over the WS.
|
|
18412
|
+
if (isVoiceSessionActive && onBidiSubmit && !hasReadyAttachment) {
|
|
18406
18413
|
onBidiSubmit();
|
|
18407
18414
|
return;
|
|
18408
18415
|
}
|
|
@@ -18784,7 +18791,7 @@
|
|
|
18784
18791
|
fill: "currentColor"
|
|
18785
18792
|
})
|
|
18786
18793
|
}) : /*#__PURE__*/jsxRuntimeExports.jsx("button", {
|
|
18787
|
-
onClick: isVoiceSessionActive && onBidiSubmit ? onBidiSubmit : sendWithAttachments,
|
|
18794
|
+
onClick: isVoiceSessionActive && onBidiSubmit && !hasReadyAttachment ? onBidiSubmit : sendWithAttachments,
|
|
18788
18795
|
disabled: csatVisible || isDisabled || isVoiceSessionActive && voiceStatus !== "connected",
|
|
18789
18796
|
className: `h-10 w-10 flex-shrink-0 rounded-xl transition-all duration-200 flex items-center justify-center shadow-md disabled:opacity-40 disabled:cursor-not-allowed disabled:shadow-none ${inputValue.trim() ? "scale-100" : "scale-95"}`,
|
|
18790
18797
|
style: {
|
|
@@ -21122,7 +21129,7 @@
|
|
|
21122
21129
|
* value by its own test (that constant sat at 0.1.113 while this package was
|
|
21123
21130
|
* at 0.2.2 precisely because nothing enforced it - EV-2431).
|
|
21124
21131
|
*/
|
|
21125
|
-
const WIDGET_VERSION = '0.2.
|
|
21132
|
+
const WIDGET_VERSION = '0.2.12';
|
|
21126
21133
|
|
|
21127
21134
|
/**
|
|
21128
21135
|
* API utility functions
|