@flowengage/react-chatbot 5.0.48 → 5.0.51
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.
|
@@ -29499,6 +29499,15 @@ function Ck(e) {
|
|
|
29499
29499
|
}
|
|
29500
29500
|
},
|
|
29501
29501
|
flowengage_end_session: async () => ($("flowengage_end_session ▶"), typeof e.requestEndSession == "function" && e.requestEndSession(), "Voice session is ending."),
|
|
29502
|
+
flowengage_get_current_page: async () => {
|
|
29503
|
+
if ($("flowengage_get_current_page ▶"), typeof window > "u") return "Cannot determine current page (no browser context).";
|
|
29504
|
+
let e = window.location.href, t = window.location.pathname, n = document.title || "";
|
|
29505
|
+
return $("flowengage_get_current_page ✓", {
|
|
29506
|
+
url: e,
|
|
29507
|
+
path: t,
|
|
29508
|
+
title: n
|
|
29509
|
+
}), `CURRENT_PAGE. URL: ${e} | Path: ${t} | Title: ${n}. Use THIS as the definitive current page — not any previously navigated URL.`;
|
|
29510
|
+
},
|
|
29502
29511
|
flowengage_list_forms: async () => {
|
|
29503
29512
|
let e = ZO(), t = QO();
|
|
29504
29513
|
return $("flowengage_list_forms ✓", `${e.length} field(s)`, `${t.length} button(s)`), JSON.stringify({
|
|
@@ -29997,6 +30006,9 @@ function Pk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, voiceId: i
|
|
|
29997
30006
|
try {
|
|
29998
30007
|
CD();
|
|
29999
30008
|
} catch {}
|
|
30009
|
+
if (a) try {
|
|
30010
|
+
Ve(a);
|
|
30011
|
+
} catch {}
|
|
30000
30012
|
try {
|
|
30001
30013
|
await C.current?.endSession?.();
|
|
30002
30014
|
} catch {}
|
|
@@ -30216,7 +30228,14 @@ function Pk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, voiceId: i
|
|
|
30216
30228
|
}, 0)));
|
|
30217
30229
|
}
|
|
30218
30230
|
})(), () => {
|
|
30219
|
-
e = !0, re.current = !0
|
|
30231
|
+
e = !0, re.current = !0;
|
|
30232
|
+
try {
|
|
30233
|
+
CD();
|
|
30234
|
+
} catch {}
|
|
30235
|
+
if (a) try {
|
|
30236
|
+
Ve(a);
|
|
30237
|
+
} catch {}
|
|
30238
|
+
kr(), ue.current &&= (clearTimeout(ue.current), null), de.current &&= (clearTimeout(de.current), null), le.current = !1, fe.current = !1, ce.current = "idle", o && typeof window < "u" && (window.history.pushState = o), c && typeof window < "u" && window.removeEventListener("popstate", c);
|
|
30220
30239
|
let t = i || C.current, n = ie.current, r = ae.current;
|
|
30221
30240
|
if (t?.endSession?.().catch(() => {}), n && l && s) {
|
|
30222
30241
|
let e = r ? Math.round((Date.now() - r) / 1e3) : 0, t = JSON.stringify({
|