@flowengage/react-chatbot 7.0.14 → 7.0.15

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.
@@ -3485,19 +3485,14 @@ function Br({ siteId: e, config: t, children: n, language: r = "en" }) {
3485
3485
  let o = typeof e == "string" ? e.trim() : "";
3486
3486
  if (!o || !k.current || !y || l !== "ready" || Ve) return;
3487
3487
  Xt();
3488
- let s = /^\s*(yes|yeah|sure|ok|okay|go ahead|take me(?: there)?|navigate(?: me)?|yep|absolutely|please do|do it|let'?s go|go there|show me|go to it|bring me there|navigate me there)\b/i;
3488
+ let s = /^\s*(yes|yeah|sure|ok|okay|go ahead|take me(?: there)?(?!\s+to\s+(?!there\b|it\b))|navigate(?: me)?(?!\s+to\s+\w)|yep|absolutely|please do|do it|let'?s go|go there|show me(?!\s+(?:the|a|an)\s+\w)|go to it|bring me there|navigate me there)\b/i;
3489
3489
  if (pt.current && s.test(o)) {
3490
3490
  let { url: e, section: t } = pt.current;
3491
- pt.current = null, console.log("[FWH Nav] Client-side nav firing →", e), Sr(e, {
3492
- siteId: i?.siteId,
3493
- apiBaseUrl: i?.apiBaseUrl
3494
- }).then((n) => {
3495
- n && Or(e, { voiceActive: Dt.current }).then((e) => {
3496
- t && setTimeout(() => {
3497
- let e = _r(null, t);
3498
- e && vr(e);
3499
- }, e ? 300 : 150);
3500
- });
3491
+ pt.current = null, console.log("[FWH Nav] Client-side nav firing →", e), Or(e, { voiceActive: Dt.current }).then((e) => {
3492
+ t && setTimeout(() => {
3493
+ let e = _r(null, t);
3494
+ e && vr(e);
3495
+ }, e ? 300 : 150);
3501
3496
  });
3502
3497
  } else s.test(o) || (pt.current = null);
3503
3498
  let c = `pending-user-${Date.now()}`, u = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowengage/react-chatbot",
3
- "version": "7.0.14",
3
+ "version": "7.0.15",
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",