@flowengage/react-chatbot 8.0.88 → 8.0.91
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.
- package/dist/flowengage-embed.js +20 -21
- package/dist/flowengage-react-chatbot.cjs +16 -16
- package/dist/flowengage-react-chatbot.mjs +1868 -1911
- package/package.json +2 -2
- package/dist/agent-shell.html +0 -35
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowengage/react-chatbot",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.91",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"dev": "vite",
|
|
33
33
|
"build": "vite build",
|
|
34
|
-
"build:embed": "vite build --config vite.embed.config.js
|
|
34
|
+
"build:embed": "vite build --config vite.embed.config.js",
|
|
35
35
|
"build:all": "npm run build && npm run build:embed",
|
|
36
36
|
"prepublishOnly": "npm run build:all",
|
|
37
37
|
"lint": "eslint .",
|
package/dist/agent-shell.html
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>FlowEngage Voice Agent</title>
|
|
7
|
-
<style>
|
|
8
|
-
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
9
|
-
html, body { width: 100%; height: 100%; overflow: hidden; background: transparent; }
|
|
10
|
-
</style>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<script>
|
|
14
|
-
// Suppress any uncaught error so the shell page never reloads or navigates.
|
|
15
|
-
// A React crash must be contained here — the iframe must stay alive.
|
|
16
|
-
window.onerror = function (msg, src, line, col, err) {
|
|
17
|
-
console.error('[FlowEngage shell] uncaught error suppressed:', msg, err);
|
|
18
|
-
return true;
|
|
19
|
-
};
|
|
20
|
-
window.onunhandledrejection = function (event) {
|
|
21
|
-
console.error('[FlowEngage shell] unhandled rejection suppressed:', event.reason);
|
|
22
|
-
event.preventDefault();
|
|
23
|
-
};
|
|
24
|
-
</script>
|
|
25
|
-
<!--
|
|
26
|
-
Loads the same flowengage-embed.js bundle.
|
|
27
|
-
When embed.js detects window.top !== window.self it enters "iframe mode":
|
|
28
|
-
reads siteId from ?siteId= and mounts React directly (no iframe injection).
|
|
29
|
-
-->
|
|
30
|
-
<script
|
|
31
|
-
src="https://be-flowengage-stage.oslabs.app/flowengage-embed.js"
|
|
32
|
-
defer
|
|
33
|
-
></script>
|
|
34
|
-
</body>
|
|
35
|
-
</html>
|