holostaff-widget 3.0.9 → 3.0.11

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.
Files changed (24) hide show
  1. package/dist/{CanvasRenderer-BbLcmUrB.js → CanvasRenderer-Bs-lFIBH.js} +5 -5
  2. package/dist/{CanvasRenderer-BbLcmUrB.js.map → CanvasRenderer-Bs-lFIBH.js.map} +1 -1
  3. package/dist/{Filter-c3b_NGGq.js → Filter-u3cO1RLf.js} +2 -2
  4. package/dist/{Filter-c3b_NGGq.js.map → Filter-u3cO1RLf.js.map} +1 -1
  5. package/dist/{GpuStencilModesToPixi-m2FwdmOS.js → GpuStencilModesToPixi-CvK8tsvK.js} +3 -3
  6. package/dist/{GpuStencilModesToPixi-m2FwdmOS.js.map → GpuStencilModesToPixi-CvK8tsvK.js.map} +1 -1
  7. package/dist/{RenderTargetSystem-Djlsv2av.js → RenderTargetSystem-D0UXSH3i.js} +3 -3
  8. package/dist/{RenderTargetSystem-Djlsv2av.js.map → RenderTargetSystem-D0UXSH3i.js.map} +1 -1
  9. package/dist/{WebGLRenderer-0ORJ9PSM.js → WebGLRenderer-C4i0snFE.js} +5 -5
  10. package/dist/{WebGLRenderer-0ORJ9PSM.js.map → WebGLRenderer-C4i0snFE.js.map} +1 -1
  11. package/dist/{WebGPURenderer-IkacCxg7.js → WebGPURenderer-5XhUvJYL.js} +6 -6
  12. package/dist/{WebGPURenderer-IkacCxg7.js.map → WebGPURenderer-5XhUvJYL.js.map} +1 -1
  13. package/dist/{browserAll-zkM6prpX.js → browserAll-C8-HGWQr.js} +3 -3
  14. package/dist/{browserAll-zkM6prpX.js.map → browserAll-C8-HGWQr.js.map} +1 -1
  15. package/dist/{getTextureBatchBindGroup-DVwotFiU.js → getTextureBatchBindGroup-Drt1kYWV.js} +3 -3
  16. package/dist/{getTextureBatchBindGroup-DVwotFiU.js.map → getTextureBatchBindGroup-Drt1kYWV.js.map} +1 -1
  17. package/dist/hs-widget.es.js +1 -1
  18. package/dist/hs-widget.umd.js +2 -2
  19. package/dist/hs-widget.umd.js.map +1 -1
  20. package/dist/{index-Glf3TIbT.js → index-Bh9xbhFo.js} +18 -10
  21. package/dist/{index-Glf3TIbT.js.map → index-Bh9xbhFo.js.map} +1 -1
  22. package/dist/{webworkerAll-C7jo9o_4.js → webworkerAll-D2tTDfqq.js} +3 -3
  23. package/dist/{webworkerAll-C7jo9o_4.js.map → webworkerAll-D2tTDfqq.js.map} +1 -1
  24. package/package.json +1 -1
@@ -8151,7 +8151,7 @@ const pc = {
8151
8151
  },
8152
8152
  test: () => !0,
8153
8153
  load: async () => {
8154
- await import("./browserAll-zkM6prpX.js");
8154
+ await import("./browserAll-C8-HGWQr.js");
8155
8155
  }
8156
8156
  }, mc = {
8157
8157
  extension: {
@@ -8161,7 +8161,7 @@ const pc = {
8161
8161
  },
8162
8162
  test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
8163
8163
  load: async () => {
8164
- await import("./webworkerAll-C7jo9o_4.js");
8164
+ await import("./webworkerAll-D2tTDfqq.js");
8165
8165
  }
8166
8166
  };
8167
8167
  function gc(i, e, t) {
@@ -10602,17 +10602,17 @@ async function Dc(i) {
10602
10602
  for (let r = 0; r < e.length; r++) {
10603
10603
  const o = e[r];
10604
10604
  if (o === "webgpu" && await Nc()) {
10605
- const { WebGPURenderer: a } = await import("./WebGPURenderer-IkacCxg7.js");
10605
+ const { WebGPURenderer: a } = await import("./WebGPURenderer-5XhUvJYL.js");
10606
10606
  t = a, s = { ...i, ...i.webgpu };
10607
10607
  break;
10608
10608
  } else if (o === "webgl" && Mc(
10609
10609
  i.failIfMajorPerformanceCaveat ?? Ys.defaultOptions.failIfMajorPerformanceCaveat
10610
10610
  )) {
10611
- const { WebGLRenderer: a } = await import("./WebGLRenderer-0ORJ9PSM.js");
10611
+ const { WebGLRenderer: a } = await import("./WebGLRenderer-C4i0snFE.js");
10612
10612
  t = a, s = { ...i, ...i.webgl };
10613
10613
  break;
10614
10614
  } else if (o === "canvas") {
10615
- const { CanvasRenderer: a } = await import("./CanvasRenderer-BbLcmUrB.js");
10615
+ const { CanvasRenderer: a } = await import("./CanvasRenderer-Bs-lFIBH.js");
10616
10616
  t = a, s = { ...i, ...i.canvasOptions };
10617
10617
  break;
10618
10618
  }
@@ -18251,7 +18251,7 @@ function Ze() {
18251
18251
  const Qu = 15e3;
18252
18252
  class ef {
18253
18253
  constructor(e) {
18254
- this.currentIntervention = null, this.autoDismissTimer = null, this._active = !1, this.cardOverlay = null, this.cardOverlayAnim = null, this.onInterventionShown = null, this.onAccept = null, this.wsClient = e.wsClient, this.getWidgetState = e.getWidgetState, this.getHomeVisible = e.getHomeVisible, this.inlineTarget = e.inlineTarget ?? null, this.pill = e.pill ?? null, this.wsClient.onIntervention = (t) => this.handleIntervention(t);
18254
+ this.currentIntervention = null, this.autoDismissTimer = null, this._active = !1, this.cardOverlay = null, this.cardOverlayAnim = null, this.onInterventionShown = null, this.onAccept = null, this.wsClient = e.wsClient, this.getWidgetState = e.getWidgetState, this.getHomeVisible = e.getHomeVisible, this.inlineTarget = e.inlineTarget ?? null, this.pill = e.pill ?? null, this.disableAutoDismiss = e.disableAutoDismiss ?? !1, this.wsClient.onIntervention = (t) => this.handleIntervention(t);
18255
18255
  }
18256
18256
  get isActive() {
18257
18257
  return this._active;
@@ -18272,7 +18272,7 @@ class ef {
18272
18272
  if (this._active) return;
18273
18273
  console.log(`[ActionExecutor] Showing suggestion: "${e.message}"`), this.currentIntervention = e, this._active = !0, (n = this.onInterventionShown) == null || n.call(this, e.goalId, e.message);
18274
18274
  const s = this.getHomeVisible();
18275
- this.inlineTarget && s ? this.showCardOverlay(e.message) : this.pill && this.showInPill(e.message), this.autoDismissTimer = setTimeout(() => this.handleIgnore(), Qu);
18275
+ this.inlineTarget && s ? this.showCardOverlay(e.message) : this.pill && this.showInPill(e.message), this.disableAutoDismiss || (this.autoDismissTimer = setTimeout(() => this.handleIgnore(), Qu));
18276
18276
  }
18277
18277
  // -----------------------------------------------------------------------
18278
18278
  // Display mode A: Card overlay (inline home is visible)
@@ -18334,6 +18334,10 @@ class ef {
18334
18334
  // -----------------------------------------------------------------------
18335
18335
  // Response handlers
18336
18336
  // -----------------------------------------------------------------------
18337
+ /** Public method for programmatic acceptance (used in eval mode). */
18338
+ accept() {
18339
+ this.handleAccept();
18340
+ }
18337
18341
  handleAccept() {
18338
18342
  var n;
18339
18343
  if (!this._active || !this.currentIntervention) return;
@@ -19899,9 +19903,13 @@ All actions except form filling require the visitor to confirm before executing.
19899
19903
  getWidgetState: () => this.state,
19900
19904
  getHomeVisible: () => this.homeVisible,
19901
19905
  inlineTarget: ((e = this.stage) == null ? void 0 : e.inlineTarget) ?? null,
19902
- pill: this.chatPill
19906
+ pill: this.chatPill,
19907
+ disableAutoDismiss: this.evalMode
19903
19908
  }), this.actionExecutor.onInterventionShown = (t, s) => {
19904
- this.updateEvalState({ interventionFired: !0, skillId: t, openingMessage: s });
19909
+ this.updateEvalState({ interventionFired: !0, skillId: t, openingMessage: s }), this.evalMode && (window.__HS_EVAL_ACCEPT__ = () => {
19910
+ var n;
19911
+ (n = this.actionExecutor) == null || n.accept();
19912
+ });
19905
19913
  }, this.actionExecutor.onAccept = (t) => {
19906
19914
  console.log("[HolostaffWidget] Suggestion accepted — starting conversation with vision context"), this.visionContext = t, this.onAvatarClick();
19907
19915
  });
@@ -20140,4 +20148,4 @@ export {
20140
20148
  st as y,
20141
20149
  Gr as z
20142
20150
  };
20143
- //# sourceMappingURL=index-Glf3TIbT.js.map
20151
+ //# sourceMappingURL=index-Bh9xbhFo.js.map