@pluno/product-agent-web 0.1.303 → 0.1.305
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.
|
@@ -76,7 +76,7 @@ function ih(t, e, n, i) {
|
|
|
76
76
|
function sh(t) {
|
|
77
77
|
return Vr(t) > 0.5 ? [24, 24, 27] : [250, 250, 249];
|
|
78
78
|
}
|
|
79
|
-
const oh = "0.1.
|
|
79
|
+
const oh = "0.1.305", ci = {
|
|
80
80
|
version: oh
|
|
81
81
|
}, fe = (t) => typeof t == "string" && /^[a-zA-Z0-9:_.-]{1,160}$/.test(t) ? t : null;
|
|
82
82
|
function Ld(t) {
|
|
@@ -11312,10 +11312,7 @@ class Qa {
|
|
|
11312
11312
|
startedAtOrigin: location.origin
|
|
11313
11313
|
}), this.installSessionBrowserApis();
|
|
11314
11314
|
let u = null, d;
|
|
11315
|
-
u = await this.executeRuntimeHelper(), d = await Vl(
|
|
11316
|
-
a,
|
|
11317
|
-
vy(e.runtimeContext, this.options.backendUrl)
|
|
11318
|
-
).catch((p) => ({
|
|
11315
|
+
u = await this.executeRuntimeHelper({ callId: i, sessionId: n }), d = await (this.options.runtimeAdapters?.executeBrowserCode ? this.options.runtimeAdapters.executeBrowserCode({ ...a, callId: i, sessionId: n }) : Vl(a, vy(e.runtimeContext, this.options.backendUrl))).catch((p) => ({
|
|
11319
11316
|
ok: !1,
|
|
11320
11317
|
exception: {
|
|
11321
11318
|
message: p instanceof Error ? p.message : String(p)
|
|
@@ -11346,16 +11343,14 @@ class Qa {
|
|
|
11346
11343
|
cleanupSessionBrowserApis() {
|
|
11347
11344
|
this.sessionBrowserApisCleanup && (wy(this.sessionBrowserApisCleanup), this.sessionBrowserApisCleanup = null);
|
|
11348
11345
|
}
|
|
11349
|
-
async executeRuntimeHelper() {
|
|
11346
|
+
async executeRuntimeHelper(e) {
|
|
11350
11347
|
if (!this.runtimeHelperJavascript?.trim())
|
|
11351
11348
|
return null;
|
|
11352
|
-
const
|
|
11353
|
-
|
|
11354
|
-
});
|
|
11355
|
-
return e.ok === !1 ? jy(e) : null;
|
|
11349
|
+
const n = { javascript: this.runtimeHelperJavascript }, i = await (this.options.runtimeAdapters?.executeBrowserCode ? this.options.runtimeAdapters.executeBrowserCode({ ...n, sessionId: e.sessionId, callId: `${e.callId}:helper` }) : Vl(n)).catch((s) => ({ ok: !1, exception: { message: s instanceof Error ? s.message : String(s) } }));
|
|
11350
|
+
return i.ok === !1 ? jy(i) : null;
|
|
11356
11351
|
}
|
|
11357
11352
|
enableNetworkCapture() {
|
|
11358
|
-
this.networkCaptureCleanup || (this.networkCaptureCleanup = ay((e) => {
|
|
11353
|
+
this.networkCaptureCleanup || (this.networkCaptureCleanup = (this.options.runtimeAdapters?.subscribeNetworkCapture ?? ay)((e) => {
|
|
11359
11354
|
hb(e.url, this.options.backendUrl) || this.enqueueNetworkEvent(e);
|
|
11360
11355
|
}));
|
|
11361
11356
|
}
|
|
@@ -15272,7 +15267,7 @@ async function Cw(t = {}) {
|
|
|
15272
15267
|
}), Gp = Gb(
|
|
15273
15268
|
r,
|
|
15274
15269
|
l,
|
|
15275
|
-
e.extensionRuntime ? "extension_widget" : e.entrySurface === "main_web_chat" ? "main_web_chat" : "embedded_widget",
|
|
15270
|
+
e.extensionRuntime || e.entrySurface === "extension_widget" ? "extension_widget" : e.entrySurface === "main_web_chat" ? "main_web_chat" : "embedded_widget",
|
|
15276
15271
|
O
|
|
15277
15272
|
), Jp = cg(l, Oo);
|
|
15278
15273
|
return {
|
package/package.json
CHANGED