@flowengage/react-chatbot 8.0.139 → 8.0.140

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.
@@ -9645,7 +9645,7 @@ async function cg(e) {
9645
9645
  type: "VisitorSpeech",
9646
9646
  active: u
9647
9647
  }))), a ? ve = !1 : !ve && ae >= Kh ? (ve = !0, l?.({ mode: "user-speaking" })) : ve && ae === 0 && (ve = !1), a && !oe && !ue && ae >= c) {
9648
- oe = !0, re = !1, ae = 0;
9648
+ oe = !0, re = !1;
9649
9649
  let e = pe.playedMs();
9650
9650
  pe.stop(), ie = !1, se = !1, le && !ue && (clearTimeout(le), le = null), de = !1, E.send(JSON.stringify({
9651
9651
  type: "VisitorInterrupted",
@@ -9722,7 +9722,7 @@ async function cg(e) {
9722
9722
  ne && !oe && console.log(`[FlowEngage] interrupted by the server, not the widget: loudest speech ${F.toFixed(3)} (needs ${P}), longest run ${ce} frames, echo cancellation ${me ? "on" : "off"}, speech model ${I ? "on" : "off"}`), A(), pe.stop(), se = !1, ie = !1, ne = !1, re = !1, le && !ue && (clearTimeout(le), le = null), de = !1, l?.({ mode: "listening" });
9723
9723
  break;
9724
9724
  case "AgentStartedSpeaking":
9725
- ie = !0, ne = !0, oe = !1, ae = 0, F = 0, ce = 0, l?.({ mode: "speaking" });
9725
+ ie = !0, ne = !0, oe = !1, F = 0, ce = 0, l?.({ mode: "speaking" });
9726
9726
  break;
9727
9727
  case "AgentAudioDone":
9728
9728
  se = !1, A(), fe(), pe.isPlaying() || (ne = !1, l?.({ mode: re ? "thinking" : "listening" }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowengage/react-chatbot",
3
- "version": "8.0.139",
3
+ "version": "8.0.140",
4
4
  "description": "Embeddable AI chat widget for React — powered by FlowEngage. Drop it in with a single siteId.",
5
5
  "keywords": [
6
6
  "chatbot",