@gengage/assistant-fe 0.4.21 → 0.5.1

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 (34) hide show
  1. package/README.md +1 -1
  2. package/dist/{api-paths-Bg6iwO5w.js → api-paths-XNsAaP_N.js} +1 -1
  3. package/dist/chat-runtime.js +1 -1
  4. package/dist/chat.iife.js +43 -43
  5. package/dist/chat.js +1 -1
  6. package/dist/common-Cb5WKXue.js +324 -0
  7. package/dist/common.js +64 -81
  8. package/dist/{connection-warning-BeD-B0Ec.js → connection-warning-BjfQKyV7.js} +1 -1
  9. package/dist/{fastIntent-BeeDIwd2.js → fastIntent-DxSSvrgK.js} +2 -2
  10. package/dist/index.js +49 -52
  11. package/dist/{native-webview-Bbcvvi_5.js → native-webview-BQPhKMli.js} +1 -1
  12. package/dist/native.iife.js +23 -23
  13. package/dist/native.js +1 -1
  14. package/dist/{overlay-O4nlUrzw.js → overlay-C0NSAZoL.js} +3 -6
  15. package/dist/overlay.js +2 -2
  16. package/dist/qna-runtime.js +1 -1
  17. package/dist/qna.iife.js +36 -36
  18. package/dist/qna.js +1 -1
  19. package/dist/{runtime-C8ZBidd2.js → runtime-B8Y5j1Xu.js} +176 -196
  20. package/dist/runtime-Bso-rbzX.js +654 -0
  21. package/dist/{runtime-Ct1qOl8V.js → runtime-CatBpqEd.js} +2194 -2225
  22. package/dist/{simbut-BrAeZ6SH.js → simbut-D2WpS0Y8.js} +7 -7
  23. package/dist/simbut.iife.js +12 -12
  24. package/dist/simbut.js +1 -1
  25. package/dist/{simrel-Cha5de6P.js → simrel-CNfVfah6.js} +2 -2
  26. package/dist/simrel-runtime.js +1 -1
  27. package/dist/simrel.iife.js +35 -35
  28. package/dist/simrel.js +2 -2
  29. package/dist/widget-base-CcNNPfdn.js +362 -0
  30. package/package.json +1 -2
  31. package/dist/common-DDJSeQhg.js +0 -491
  32. package/dist/runtime-CRSFPLku.js +0 -688
  33. package/dist/widget-base-BtBl_PCR.js +0 -589
  34. /package/dist/{context-DGz5F81j.js → context-BBuSsXZ9.js} +0 -0
package/dist/native.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, i, n as t, r, t as s } from "./native-webview-Bbcvvi_5.js";
1
+ import { a, i, n as t, r, t as s } from "./native-webview-BQPhKMli.js";
2
2
  export {
3
3
  s as DEFAULT_NATIVE_TRACKED_EVENTS,
4
4
  t as applyNativeSession,
@@ -1,4 +1,4 @@
1
- import { j as g, r as m, s as f, y as _ } from "./context-DGz5F81j.js";
1
+ import { j as g, r as m, s as f, y as _ } from "./context-BBuSsXZ9.js";
2
2
  var v = "__gengageWidgetsInit", l = `${v}_overlay_`, y = "#gengage-qna", w = "#gengage-simrel", C = "#gengage-simbut";
3
3
  function d() {
4
4
  const i = window;
@@ -27,7 +27,7 @@ function p(i) {
27
27
  }
28
28
  var q = class {
29
29
  constructor(i, e) {
30
- this.options = i, this.onDestroy = e, this._chat = null, this._qna = null, this._simrel = null, this._simbut = null, this._analyticsClient = null, this._offQnaWire = null, this._destroyed = !1, this._queue = Promise.resolve(), this._warnedQnaMountMissing = !1, this._warnedSimRelMountMissing = !1, this._warnedSimButMountMissing = !1, this._warnedSimButNoChat = !1, this.idempotencyKey = p(i), this.session = m(i.session), this._pageContext = T(i);
30
+ this.options = i, this.onDestroy = e, this._chat = null, this._qna = null, this._simrel = null, this._simbut = null, this._offQnaWire = null, this._destroyed = !1, this._queue = Promise.resolve(), this._warnedQnaMountMissing = !1, this._warnedSimRelMountMissing = !1, this._warnedSimButMountMissing = !1, this._warnedSimButNoChat = !1, this.idempotencyKey = p(i), this.session = m(i.session), this._pageContext = T(i);
31
31
  }
32
32
  get chat() {
33
33
  return this._chat;
@@ -41,9 +41,6 @@ var q = class {
41
41
  get simbut() {
42
42
  return this._simbut;
43
43
  }
44
- get analyticsClient() {
45
- return this._analyticsClient;
46
- }
47
44
  async init() {
48
45
  window.gengage || (window.gengage = {}), window.gengage.sessionId = this.session.sessionId, window.gengage.pageContext = this._pageContext, await this._initChat(), this.options.wireQnaToChat !== !1 && (this._offQnaWire = f()), await this._syncPdpWidgets(), window.gengage.overlay = this;
49
46
  }
@@ -137,7 +134,7 @@ var q = class {
137
134
  sku: i,
138
135
  mountTarget: t
139
136
  };
140
- this.options.theme !== void 0 && (o.theme = this.options.theme), this.options.pricing !== void 0 && (o.pricing = this.options.pricing), this.options.simrel?.discountType !== void 0 && (o.discountType = this.options.simrel.discountType), this.options.simrel?.gridColumns !== void 0 && (o.gridColumns = this.options.simrel.gridColumns), this.options.simrel?.renderCardElement !== void 0 && (o.renderCardElement = this.options.simrel.renderCardElement), this.options.simrel?.renderer !== void 0 && (o.renderer = this.options.simrel.renderer), this.options.onAddToCart !== void 0 && (o.onAddToCart = this.options.onAddToCart), this.options.onProductNavigate !== void 0 ? o.onProductNavigate = this.options.onProductNavigate : o.onProductNavigate = (n, u, c) => {
137
+ this.options.theme !== void 0 && (o.theme = this.options.theme), this.options.pricing !== void 0 && (o.pricing = this.options.pricing), this.options.simrel?.discountType !== void 0 && (o.discountType = this.options.simrel.discountType), this.options.simrel?.gridColumns !== void 0 && (o.gridColumns = this.options.simrel.gridColumns), this.options.simrel?.enableProductGroupings !== void 0 && (o.enableProductGroupings = this.options.simrel.enableProductGroupings), this.options.simrel?.renderCardElement !== void 0 && (o.renderCardElement = this.options.simrel.renderCardElement), this.options.simrel?.renderer !== void 0 && (o.renderer = this.options.simrel.renderer), this.options.onAddToCart !== void 0 && (o.onAddToCart = this.options.onAddToCart), this.options.onProductNavigate !== void 0 ? o.onProductNavigate = this.options.onProductNavigate : o.onProductNavigate = (n, u, c) => {
141
138
  g(n) && (this._chat?.saveSession(c ?? this.session.sessionId, u), window.location.href = n);
142
139
  }, await h.init(o), this._simrel = h;
143
140
  }
package/dist/overlay.js CHANGED
@@ -1,5 +1,5 @@
1
- import { i as t, t as a } from "./context-DGz5F81j.js";
2
- import { i as r, n as i, r as o, t as d } from "./overlay-O4nlUrzw.js";
1
+ import { i as t, t as a } from "./context-BBuSsXZ9.js";
2
+ import { i as r, n as i, r as o, t as d } from "./overlay-C0NSAZoL.js";
3
3
  export {
4
4
  a as bootstrapSession,
5
5
  d as buildOverlayIdempotencyKey,
@@ -1,4 +1,4 @@
1
- import { a, i as r, n, r as t, t as s } from "./runtime-C8ZBidd2.js";
1
+ import { a, i as r, n, r as t, t as s } from "./runtime-B8Y5j1Xu.js";
2
2
  export {
3
3
  s as GengageQNA,
4
4
  t as createDefaultQnaUISpecRegistry,