holostaff-widget 3.0.3 → 3.0.5
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/{CanvasRenderer-J_XwG2_5.js → CanvasRenderer-Cvzvuw_n.js} +5 -5
- package/dist/{CanvasRenderer-J_XwG2_5.js.map → CanvasRenderer-Cvzvuw_n.js.map} +1 -1
- package/dist/{Filter-GqToX76B.js → Filter-B12vZysJ.js} +2 -2
- package/dist/{Filter-GqToX76B.js.map → Filter-B12vZysJ.js.map} +1 -1
- package/dist/{GpuStencilModesToPixi-Cc8Nerk4.js → GpuStencilModesToPixi-BTCb-hJl.js} +3 -3
- package/dist/{GpuStencilModesToPixi-Cc8Nerk4.js.map → GpuStencilModesToPixi-BTCb-hJl.js.map} +1 -1
- package/dist/{RenderTargetSystem-Bl4mRBf3.js → RenderTargetSystem-BST_Il7Z.js} +3 -3
- package/dist/{RenderTargetSystem-Bl4mRBf3.js.map → RenderTargetSystem-BST_Il7Z.js.map} +1 -1
- package/dist/{WebGLRenderer-BtNMOOvs.js → WebGLRenderer-DeH8DHPV.js} +5 -5
- package/dist/{WebGLRenderer-BtNMOOvs.js.map → WebGLRenderer-DeH8DHPV.js.map} +1 -1
- package/dist/{WebGPURenderer-89fMKfXn.js → WebGPURenderer-DbVqU5ig.js} +6 -6
- package/dist/{WebGPURenderer-89fMKfXn.js.map → WebGPURenderer-DbVqU5ig.js.map} +1 -1
- package/dist/{browserAll-B7LFPR0f.js → browserAll-CTsPT1oC.js} +3 -3
- package/dist/{browserAll-B7LFPR0f.js.map → browserAll-CTsPT1oC.js.map} +1 -1
- package/dist/{getTextureBatchBindGroup-CMmHwizJ.js → getTextureBatchBindGroup-CvtFkiCg.js} +3 -3
- package/dist/{getTextureBatchBindGroup-CMmHwizJ.js.map → getTextureBatchBindGroup-CvtFkiCg.js.map} +1 -1
- package/dist/hs-widget.es.js +1 -1
- package/dist/hs-widget.umd.js +3 -3
- package/dist/hs-widget.umd.js.map +1 -1
- package/dist/{index-BpOQ7Z5z.js → index-BI6e3Gpf.js} +15 -11
- package/dist/{index-BpOQ7Z5z.js.map → index-BI6e3Gpf.js.map} +1 -1
- package/dist/{webworkerAll-CAG5YOrW.js → webworkerAll-tY-BahNg.js} +3 -3
- package/dist/{webworkerAll-CAG5YOrW.js.map → webworkerAll-tY-BahNg.js.map} +1 -1
- package/package.json +1 -1
|
@@ -8140,7 +8140,7 @@ const fc = {
|
|
|
8140
8140
|
},
|
|
8141
8141
|
test: () => !0,
|
|
8142
8142
|
load: async () => {
|
|
8143
|
-
await import("./browserAll-
|
|
8143
|
+
await import("./browserAll-CTsPT1oC.js");
|
|
8144
8144
|
}
|
|
8145
8145
|
}, pc = {
|
|
8146
8146
|
extension: {
|
|
@@ -8150,7 +8150,7 @@ const fc = {
|
|
|
8150
8150
|
},
|
|
8151
8151
|
test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
|
|
8152
8152
|
load: async () => {
|
|
8153
|
-
await import("./webworkerAll-
|
|
8153
|
+
await import("./webworkerAll-tY-BahNg.js");
|
|
8154
8154
|
}
|
|
8155
8155
|
};
|
|
8156
8156
|
function mc(i, e, t) {
|
|
@@ -10591,17 +10591,17 @@ async function Nc(i) {
|
|
|
10591
10591
|
for (let r = 0; r < e.length; r++) {
|
|
10592
10592
|
const o = e[r];
|
|
10593
10593
|
if (o === "webgpu" && await Mc()) {
|
|
10594
|
-
const { WebGPURenderer: a } = await import("./WebGPURenderer-
|
|
10594
|
+
const { WebGPURenderer: a } = await import("./WebGPURenderer-DbVqU5ig.js");
|
|
10595
10595
|
t = a, s = { ...i, ...i.webgpu };
|
|
10596
10596
|
break;
|
|
10597
10597
|
} else if (o === "webgl" && kc(
|
|
10598
10598
|
i.failIfMajorPerformanceCaveat ?? Ys.defaultOptions.failIfMajorPerformanceCaveat
|
|
10599
10599
|
)) {
|
|
10600
|
-
const { WebGLRenderer: a } = await import("./WebGLRenderer-
|
|
10600
|
+
const { WebGLRenderer: a } = await import("./WebGLRenderer-DeH8DHPV.js");
|
|
10601
10601
|
t = a, s = { ...i, ...i.webgl };
|
|
10602
10602
|
break;
|
|
10603
10603
|
} else if (o === "canvas") {
|
|
10604
|
-
const { CanvasRenderer: a } = await import("./CanvasRenderer-
|
|
10604
|
+
const { CanvasRenderer: a } = await import("./CanvasRenderer-Cvzvuw_n.js");
|
|
10605
10605
|
t = a, s = { ...i, ...i.canvasOptions };
|
|
10606
10606
|
break;
|
|
10607
10607
|
}
|
|
@@ -10913,7 +10913,11 @@ class Lc {
|
|
|
10913
10913
|
backgroundAlpha: 0,
|
|
10914
10914
|
antialias: !0,
|
|
10915
10915
|
resolution: window.devicePixelRatio || 1,
|
|
10916
|
-
autoDensity: !0
|
|
10916
|
+
autoDensity: !0,
|
|
10917
|
+
// Force WebGL — pixi.js/unsafe-eval patches the WebGL renderer's eval check.
|
|
10918
|
+
// Without this, PixiJS v8 tries WebGPU first, whose eval check is unpatched
|
|
10919
|
+
// and throws in CSP-restricted environments (e.g. browser extension injection).
|
|
10920
|
+
preference: "webgl"
|
|
10917
10921
|
}), this.container = document.createElement("div"), this.container.id = "holostaff-widget-root", this.mode === "inline" && this.targetEl ? (Object.assign(this.container.style, {
|
|
10918
10922
|
position: "relative",
|
|
10919
10923
|
width: "100%",
|
|
@@ -10930,7 +10934,7 @@ class Lc {
|
|
|
10930
10934
|
zIndex: "2147483646",
|
|
10931
10935
|
pointerEvents: "none",
|
|
10932
10936
|
overflow: "visible"
|
|
10933
|
-
}), document.
|
|
10937
|
+
}), document.documentElement.appendChild(this.container));
|
|
10934
10938
|
const s = this.app.canvas;
|
|
10935
10939
|
return Object.assign(s.style, {
|
|
10936
10940
|
width: "100%",
|
|
@@ -18782,7 +18786,7 @@ class hr {
|
|
|
18782
18786
|
}), this.suggestionArea.appendChild(o), this.el.appendChild(this.suggestionArea), this.el.addEventListener("click", (a) => {
|
|
18783
18787
|
var l;
|
|
18784
18788
|
a.target.closest("button") || (l = this.onClick) == null || l.call(this);
|
|
18785
|
-
}), document.
|
|
18789
|
+
}), document.documentElement.appendChild(this.el);
|
|
18786
18790
|
}
|
|
18787
18791
|
// -----------------------------------------------------------------------
|
|
18788
18792
|
// State transitions
|
|
@@ -19338,10 +19342,10 @@ class Tf {
|
|
|
19338
19342
|
return this.config.container;
|
|
19339
19343
|
}
|
|
19340
19344
|
async init() {
|
|
19341
|
-
Ze(), this.stage = new Lc(), await this.stage.init(this.config.mode, this.config.container), this.avatar = new Fc(this.stage.stageWidth, this.stage.stageHeight), this.stage.app.stage.addChild(this.avatar.container), await this.loadIdleAsset(), this.avatarFrame = new af(), this.stage.rootElement && jt(this.stage.rootElement), this.bubble = new hf(this.widgetPrompts ?? void 0), this.bubble.onClick = () => this.onAvatarClick(), this.stage.rootElement && (this.stage.rootElement.style.position = "relative", this.stage.rootElement.appendChild(this.bubble.el)), this.avatar.setInteractive(() => this.onAvatarClick()), this.
|
|
19345
|
+
Ze(), this.stage = new Lc(), await this.stage.init(this.config.mode, this.config.container), this.avatar = new Fc(this.stage.stageWidth, this.stage.stageHeight), this.stage.app.stage.addChild(this.avatar.container), await this.loadIdleAsset(), this.avatarFrame = new af(), this.stage.rootElement && jt(this.stage.rootElement), this.bubble = new hf(this.widgetPrompts ?? void 0), this.bubble.onClick = () => this.onAvatarClick(), this.stage.rootElement && (this.stage.rootElement.style.position = "relative", this.stage.rootElement.appendChild(this.bubble.el)), this.avatar.setInteractive(() => this.onAvatarClick()), this.chatPill = new hr(), this.chatPill.init(this.staffAvatarUrl, this.idleVideoUrl, this.staffDisplayName), this.chatPill.onClick = () => this.onAvatarClick(), this.isInline ? (setTimeout(() => {
|
|
19342
19346
|
var t;
|
|
19343
19347
|
(this.state === "idle" || this.state === "teasing") && !this.homeVisible && ((t = this.chatPill) == null ? void 0 : t.state) === "hidden" && this.chatPill.showNamed();
|
|
19344
|
-
}, 5e3), this.startHomeObserver()), this.setupTrigger(), this.startVisionLoop(), window.addEventListener("beforeunload", () => {
|
|
19348
|
+
}, 5e3), this.startHomeObserver()) : this.homeVisible = !1, this.setupTrigger(), this.startVisionLoop(), window.addEventListener("beforeunload", () => {
|
|
19345
19349
|
var e;
|
|
19346
19350
|
(this.state === "active" || this.state === "connecting") && ((e = this.logger) == null || e.flush());
|
|
19347
19351
|
}), console.log("[HolostaffWidget] Initialized", {
|
|
@@ -20035,4 +20039,4 @@ export {
|
|
|
20035
20039
|
st as y,
|
|
20036
20040
|
Gr as z
|
|
20037
20041
|
};
|
|
20038
|
-
//# sourceMappingURL=index-
|
|
20042
|
+
//# sourceMappingURL=index-BI6e3Gpf.js.map
|