@flowengage/react-chatbot 8.0.3 → 8.0.5
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.
|
@@ -2113,7 +2113,7 @@ function er(e) {
|
|
|
2113
2113
|
$n = e === "spa" || e === "traditional" ? e : null;
|
|
2114
2114
|
}
|
|
2115
2115
|
function tr() {
|
|
2116
|
-
if (typeof window > "u") return null;
|
|
2116
|
+
if (typeof window > "u" || $n === "traditional") return null;
|
|
2117
2117
|
if (window.next?.router || window.__NEXT_ROUTER__) return "nextjs";
|
|
2118
2118
|
if (window.__remixRouter || window.__staticRouterHydrationData) return "react-router";
|
|
2119
2119
|
if (window.___gatsby || window.___navigate) return "gatsby";
|
|
@@ -2123,13 +2123,7 @@ function tr() {
|
|
|
2123
2123
|
if (window[Symbol.for("wouter_v3")]) return "wouter";
|
|
2124
2124
|
if (window.__sveltekit_data || document.querySelector("[data-sveltekit-hydrate]")) return "sveltekit";
|
|
2125
2125
|
if (document.querySelector("[data-astro-transition]")) return "astro";
|
|
2126
|
-
for (let e of document.body.children) if (e.tagName?.toUpperCase() === "DIV" && e.id !== "flowengage-root")
|
|
2127
|
-
if (e.querySelector("[data-reactroot]") || e._reactRootContainer || e.__vue_app__) return "generic-spa";
|
|
2128
|
-
try {
|
|
2129
|
-
if (Object.getOwnPropertyNames(e).some((e) => e.startsWith("__reactFiber") || e.startsWith("__reactContainer"))) return "generic-spa";
|
|
2130
|
-
} catch {}
|
|
2131
|
-
if ((e.id === "root" || e.id === "app") && e.children.length > 0) return "generic-spa";
|
|
2132
|
-
}
|
|
2126
|
+
for (let e of document.body.children) if (e.tagName?.toUpperCase() === "DIV" && e.id !== "flowengage-root" && (e.id === "root" || e.id === "app") && e.children.length > 0) return "generic-spa";
|
|
2133
2127
|
return $n === "spa" ? "backend-spa" : null;
|
|
2134
2128
|
}
|
|
2135
2129
|
var nr = "data-fe-swap-css";
|
|
@@ -29685,7 +29679,7 @@ function wk(e) {
|
|
|
29685
29679
|
title: n
|
|
29686
29680
|
}), $("fwh-get-current-page-mvp → page headings collected:", r), !r.length) return `CURRENT_PAGE. URL: ${e} | Title: ${n} | No headings found on this page. Describe the page from your knowledge without calling this tool again.`;
|
|
29687
29681
|
let i = r.map((e) => `"${e}"`).join(" | ");
|
|
29688
|
-
return `CURRENT_PAGE. URL: ${e} | Title: ${n} | Page sections (${r.length} total): ${i}. *** IMPORTANT: For fwh-highlight-mvp, pass the heading text EXACTLY as shown above — no numbers, no extra punctuation, no paraphrasing.
|
|
29682
|
+
return `CURRENT_PAGE. URL: ${e} | Title: ${n} | Page sections (${r.length} total): ${i}. *** IMPORTANT: For fwh-highlight-mvp, pass the heading text EXACTLY as shown above — no numbers, no extra punctuation, no paraphrasing. DO NOT call this tool again. If the visitor requested a walkthrough: START IT NOW. For every section: speak a short transition sentence, INVOKE the fwh-highlight-mvp tool with the exact heading text (do not speak the tool name — call it silently as a tool), then speak 3-4 sentences about that section. Cover ALL ${r.length} sections without pausing between them. ***`;
|
|
29689
29683
|
},
|
|
29690
29684
|
"fwh-list-forms-mvp": async () => {
|
|
29691
29685
|
let e = QO(), t = $O();
|