@brainfish-ai/widgets-initiator 1.5.1 → 1.5.2
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/web.cjs.js +3 -3
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.js +4 -4
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/web.js
CHANGED
|
@@ -31,10 +31,10 @@ var k, z;
|
|
|
31
31
|
(function() {
|
|
32
32
|
try {
|
|
33
33
|
var a = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, t = new a.Error().stack;
|
|
34
|
-
t && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[t] = "
|
|
34
|
+
t && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[t] = "3f03cfaa-f399-4f03-926b-3cd5c4aabd37", a._sentryDebugIdIdentifier = "sentry-dbid-3f03cfaa-f399-4f03-926b-3cd5c4aabd37");
|
|
35
35
|
} catch (n) {
|
|
36
36
|
}
|
|
37
|
-
})(), (typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}).SENTRY_RELEASE = { id: "
|
|
37
|
+
})(), (typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}).SENTRY_RELEASE = { id: "8e419dad60578a85eb8137655ef2251f84590af4" }, function(a) {
|
|
38
38
|
a.Sidebar = "sidebar", a.Searchbar = "searchbar";
|
|
39
39
|
}(k || (k = {})), k.Sidebar, k.Searchbar;
|
|
40
40
|
class ie extends Error {
|
|
@@ -62,7 +62,7 @@ const x = (a, t, n, i) => {
|
|
|
62
62
|
((e, l, s) => {
|
|
63
63
|
if (!navigator || navigator.userAgent.toLowerCase().includes("headless")) return;
|
|
64
64
|
const u = l.toJSON();
|
|
65
|
-
fetch(`${e || "https://app.brainfi.sh"}/api/trackError.widget.create`, { method: "POST", headers: { "Content-Type": "application/json", "api-key": s }, body: JSON.stringify({ error: `WebWidgetVersion: 1.5.
|
|
65
|
+
fetch(`${e || "https://app.brainfi.sh"}/api/trackError.widget.create`, { method: "POST", headers: { "Content-Type": "application/json", "api-key": s }, body: JSON.stringify({ error: `WebWidgetVersion: 1.5.2. ${l.message}`, stack: l.stack, cause: { message: u.message, stack: u.stack, cause: u.cause } }) });
|
|
66
66
|
})(a, new ie(o, { cause: r }), i);
|
|
67
67
|
}, Ke = (a) => m(void 0, null, function* () {
|
|
68
68
|
let { widgetKey: t, apiHost: n } = a;
|
|
@@ -782,7 +782,7 @@ function nt(a, t) {
|
|
|
782
782
|
</svg>
|
|
783
783
|
`, l.setAttribute("aria-label", "Open Brainfish widget"), l.appendChild(s), v.initialize(l, s), l;
|
|
784
784
|
}(a), { iframeContainer: o, iframe: r } = function(e) {
|
|
785
|
-
const l = M("div", j, { id: j, "aria-live": "polite", "aria-hidden": "true" }), s = M("iframe", "trigger-iframe", { src: e, sandbox: "allow-scripts allow-same-origin allow-popups", allow: "clipboard-write", role: "dialog" });
|
|
785
|
+
const l = M("div", j, { id: j, "aria-live": "polite", "aria-hidden": "true" }), s = M("iframe", "trigger-iframe", { src: e, sandbox: "allow-scripts allow-same-origin allow-popups allow-forms", allow: "clipboard-write", role: "dialog" });
|
|
786
786
|
return l.appendChild(s), { iframeContainer: l, iframe: s };
|
|
787
787
|
}(t);
|
|
788
788
|
return n.appendChild(i), n.appendChild(o), { fragment: n, iframe: r };
|