@flowengage/react-chatbot 8.0.106 → 8.0.107

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.
@@ -13565,7 +13565,7 @@ function y_({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i,
13565
13565
  return;
13566
13566
  }
13567
13567
  if (t === "user-speaking") {
13568
- if (Pe.current &&= (clearTimeout(Pe.current), null), R.current === "speaking") return;
13568
+ if (ae.current && !ie.current && Re(), Pe.current &&= (clearTimeout(Pe.current), null), R.current === "speaking") return;
13569
13569
  try {
13570
13570
  On();
13571
13571
  } catch {}
@@ -13586,7 +13586,7 @@ function y_({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i,
13586
13586
  if (Oe && !Ce && !ie.current && !fe.current) {
13587
13587
  Ce = !0, A = !0, ne = !0;
13588
13588
  try {
13589
- P.current?.sendContextualUpdate?.("CRITICAL — EMAIL REQUIRED BEFORE ANYTHING ELSE. The visitor has not provided their email. Do NOT speak right now. Wait silently for the visitor to speak first. The MOMENT the visitor says ANYTHING — a question, a request, or just a greeting your ENTIRE next response must be EXACTLY this one sentence: \"Before I answer that, could you please enter your email in the text box below?\" Do NOT answer their question. Do NOT say anything about the topic. Do NOT begin an answer and then switch your first word must be \"Before\". After you say that sentence, stay completely silent until you receive an EMAIL_SAVED message, then thank them briefly and answer their question in full.");
13589
+ P.current?.sendContextualUpdate?.("CRITICAL — EMAIL REQUIRED BEFORE ANYTHING ELSE. The visitor has not provided their email. The app itself speaks the email request out loudyou must NOT say it, and you must NOT answer. Stay completely silent from now until you receive an EMAIL_SAVED message: produce no speech and call no tools, no matter what the visitor says. Remember their question. On EMAIL_SAVED, thank them briefly and answer that remembered question in full.");
13590
13590
  } catch {}
13591
13591
  }
13592
13592
  if (ee && !A) {
@@ -15451,7 +15451,7 @@ function C_() {
15451
15451
  voiceFirstMessage: F.voiceFirstMessage || null,
15452
15452
  captureVisitorEmail: ie,
15453
15453
  emailRequired: !h,
15454
- emailCaptureEnabled: I.disableEmailCapture !== !0,
15454
+ emailCaptureEnabled: we.emailCapture !== !1 && I.disableEmailCapture !== !0,
15455
15455
  listeningLabel: I.voiceListeningLabel || "Listening...",
15456
15456
  thinkingLabel: I.voiceThinkingLabel || "Thinking...",
15457
15457
  enterChatModeLabel: I.voiceEnterChatLabel || "Enter Chat Mode",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowengage/react-chatbot",
3
- "version": "8.0.106",
3
+ "version": "8.0.107",
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",