@flowengage/react-chatbot 8.0.74 → 8.0.76
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.
|
@@ -2913,7 +2913,7 @@ function Mr({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2913
2913
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
2914
2914
|
}]);
|
|
2915
2915
|
}, []), w = o(() => {
|
|
2916
|
-
S((e) => [...e, {
|
|
2916
|
+
S((e) => e.slice(-3).some((e) => (e.sender === "bot" || e.sender === "assistant") && /already on (that|this|the)\b/i.test(String(e.message || ""))) ? e : [...e, {
|
|
2917
2917
|
id: `nav-already-${e.length}-${Math.random().toString(36).slice(2, 8)}`,
|
|
2918
2918
|
sender: "bot",
|
|
2919
2919
|
message: "Looks like you're already on this page!",
|
|
@@ -3326,7 +3326,7 @@ function Mr({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
3326
3326
|
return;
|
|
3327
3327
|
}
|
|
3328
3328
|
let i = t || n;
|
|
3329
|
-
|
|
3329
|
+
i && setTimeout(() => {
|
|
3330
3330
|
let e = cr(null, i);
|
|
3331
3331
|
e && lr(e);
|
|
3332
3332
|
}, 300);
|
|
@@ -3669,13 +3669,19 @@ function Mr({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
3669
3669
|
n === "not-found" ? C() : n === "already-on-page" && w();
|
|
3670
3670
|
return;
|
|
3671
3671
|
}
|
|
3672
|
-
|
|
3672
|
+
t && setTimeout(() => {
|
|
3673
3673
|
let e = cr(null, t);
|
|
3674
3674
|
e && lr(e);
|
|
3675
3675
|
}, 300);
|
|
3676
3676
|
});
|
|
3677
3677
|
}
|
|
3678
|
-
else {
|
|
3678
|
+
else if (o.highlight?.section) {
|
|
3679
|
+
let e = o.highlight.section;
|
|
3680
|
+
setTimeout(() => {
|
|
3681
|
+
let t = cr(null, e);
|
|
3682
|
+
t && lr(t);
|
|
3683
|
+
}, 150);
|
|
3684
|
+
} else {
|
|
3679
3685
|
let e = [...s].reverse().find((e) => e.sender === "bot" || e.sender === "assistant");
|
|
3680
3686
|
if (e?.message) {
|
|
3681
3687
|
let t = Dr(e.message);
|