@flowengage/react-chatbot 8.0.86 → 8.0.87

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.
@@ -0,0 +1,35 @@
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>