@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.
- package/README.md +1 -1
- package/dist/{api-paths-Bg6iwO5w.js → api-paths-XNsAaP_N.js} +1 -1
- package/dist/chat-runtime.js +1 -1
- package/dist/chat.iife.js +43 -43
- package/dist/chat.js +1 -1
- package/dist/common-Cb5WKXue.js +324 -0
- package/dist/common.js +64 -81
- package/dist/{connection-warning-BeD-B0Ec.js → connection-warning-BjfQKyV7.js} +1 -1
- package/dist/{fastIntent-BeeDIwd2.js → fastIntent-DxSSvrgK.js} +2 -2
- package/dist/index.js +49 -52
- package/dist/{native-webview-Bbcvvi_5.js → native-webview-BQPhKMli.js} +1 -1
- package/dist/native.iife.js +23 -23
- package/dist/native.js +1 -1
- package/dist/{overlay-O4nlUrzw.js → overlay-C0NSAZoL.js} +3 -6
- package/dist/overlay.js +2 -2
- package/dist/qna-runtime.js +1 -1
- package/dist/qna.iife.js +36 -36
- package/dist/qna.js +1 -1
- package/dist/{runtime-C8ZBidd2.js → runtime-B8Y5j1Xu.js} +176 -196
- package/dist/runtime-Bso-rbzX.js +654 -0
- package/dist/{runtime-Ct1qOl8V.js → runtime-CatBpqEd.js} +2194 -2225
- package/dist/{simbut-BrAeZ6SH.js → simbut-D2WpS0Y8.js} +7 -7
- package/dist/simbut.iife.js +12 -12
- package/dist/simbut.js +1 -1
- package/dist/{simrel-Cha5de6P.js → simrel-CNfVfah6.js} +2 -2
- package/dist/simrel-runtime.js +1 -1
- package/dist/simrel.iife.js +35 -35
- package/dist/simrel.js +2 -2
- package/dist/widget-base-CcNNPfdn.js +362 -0
- package/package.json +1 -2
- package/dist/common-DDJSeQhg.js +0 -491
- package/dist/runtime-CRSFPLku.js +0 -688
- package/dist/widget-base-BtBl_PCR.js +0 -589
- /package/dist/{context-DGz5F81j.js → context-BBuSsXZ9.js} +0 -0
package/dist/native.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as g, r as m, s as f, y as _ } from "./context-
|
|
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.
|
|
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-
|
|
2
|
-
import { i as r, n as i, r as o, t as d } from "./overlay-
|
|
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,
|
package/dist/qna-runtime.js
CHANGED