@gengage/assistant-fe 0.3.7 → 0.3.9
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/chat/components/ComparisonTable.d.ts +4 -1
- package/dist/chat/components/ComparisonTable.d.ts.map +1 -1
- package/dist/chat/index.d.ts.map +1 -1
- package/dist/chat/types.d.ts +1 -0
- package/dist/chat/types.d.ts.map +1 -1
- package/dist/chat-I2L3FYhp.cjs +13 -0
- package/dist/chat-I2L3FYhp.cjs.map +1 -0
- package/dist/{chat-D_OIWCbN.js → chat-IvWeYroj.js} +22 -11
- package/dist/chat-IvWeYroj.js.map +1 -0
- package/dist/chat.cjs +1 -1
- package/dist/chat.iife.js +3 -3
- package/dist/chat.iife.js.map +1 -1
- package/dist/chat.js +1 -1
- package/dist/{common-D1T9i8YW.cjs → common-BLyMfELB.cjs} +2 -2
- package/dist/{common-D1T9i8YW.cjs.map → common-BLyMfELB.cjs.map} +1 -1
- package/dist/{common-Ceb-JCvj.js → common-Jnb9ZjUD.js} +2 -2
- package/dist/{common-Ceb-JCvj.js.map → common-Jnb9ZjUD.js.map} +1 -1
- package/dist/common.cjs +1 -1
- package/dist/common.js +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/{native-webview-BWSJqFL8.cjs → native-webview-6_EBnR71.cjs} +2 -2
- package/dist/{native-webview-BWSJqFL8.cjs.map → native-webview-6_EBnR71.cjs.map} +1 -1
- package/dist/{native-webview-iVzu40B0.js → native-webview-Def62IBR.js} +2 -2
- package/dist/{native-webview-iVzu40B0.js.map → native-webview-Def62IBR.js.map} +1 -1
- package/dist/native.cjs +1 -1
- package/dist/native.iife.js +3 -3
- package/dist/native.iife.js.map +1 -1
- package/dist/native.js +1 -1
- package/package.json +1 -1
- package/dist/chat-7RDofXq2.cjs +0 -13
- package/dist/chat-7RDofXq2.cjs.map +0 -1
- package/dist/chat-D_OIWCbN.js.map +0 -1
|
@@ -1856,7 +1856,10 @@ function rt(e) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
a.appendChild(u);
|
|
1858
1858
|
let p = () => {
|
|
1859
|
-
o(
|
|
1859
|
+
o({
|
|
1860
|
+
sku: t.sku,
|
|
1861
|
+
name: t.name
|
|
1862
|
+
});
|
|
1860
1863
|
};
|
|
1861
1864
|
if (a.addEventListener("click", p), a.addEventListener("keydown", (e) => {
|
|
1862
1865
|
e.key !== "Enter" && e.key !== " " || (e.preventDefault(), p());
|
|
@@ -1906,7 +1909,10 @@ function rt(e) {
|
|
|
1906
1909
|
let i = document.createElement("div");
|
|
1907
1910
|
i.className = "gengage-chat-comparison-table-header-cell gengage-chat-comparison-table-header-cell--clickable gds-clickable", i.tabIndex = 0, i.setAttribute("role", "button"), i.setAttribute("aria-label", r.name), i.title = r.name;
|
|
1908
1911
|
let a = () => {
|
|
1909
|
-
o(
|
|
1912
|
+
o({
|
|
1913
|
+
sku: r.sku,
|
|
1914
|
+
name: r.name
|
|
1915
|
+
});
|
|
1910
1916
|
};
|
|
1911
1917
|
if (i.addEventListener("click", a), i.addEventListener("keydown", (e) => {
|
|
1912
1918
|
e.key !== "Enter" && e.key !== " " || (e.preventDefault(), a());
|
|
@@ -3547,10 +3553,11 @@ function Fn(e, t) {
|
|
|
3547
3553
|
attributes: o,
|
|
3548
3554
|
highlights: s,
|
|
3549
3555
|
specialCases: c,
|
|
3550
|
-
onProductClick: (e) => {
|
|
3556
|
+
onProductClick: ({ sku: e, name: n }) => {
|
|
3551
3557
|
t.onProductClick?.({
|
|
3552
3558
|
sku: e,
|
|
3553
|
-
url: ""
|
|
3559
|
+
url: "",
|
|
3560
|
+
name: n
|
|
3554
3561
|
});
|
|
3555
3562
|
},
|
|
3556
3563
|
pricing: t.pricing
|
|
@@ -5799,15 +5806,19 @@ var qr = class e extends V {
|
|
|
5799
5806
|
this._sendAction(e, t ? { preservePanel: !0 } : void 0);
|
|
5800
5807
|
},
|
|
5801
5808
|
onProductClick: (e) => {
|
|
5802
|
-
I(e.sku), this.config.isDemoWebsite !== !0 && this._isSameOriginUrl(e.url)
|
|
5809
|
+
if (I(e.sku), this.config.isDemoWebsite !== !0 && this._isSameOriginUrl(e.url)) y("gengage:similar:product-click", {
|
|
5803
5810
|
sku: e.sku,
|
|
5804
5811
|
url: e.url,
|
|
5805
5812
|
sessionId: this.config.session?.sessionId ?? null
|
|
5806
|
-
}), this._saveSessionAndOpenURL(e.url)
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5813
|
+
}), this._saveSessionAndOpenURL(e.url);
|
|
5814
|
+
else {
|
|
5815
|
+
let t = e.name?.trim() ? e.name.trim() : e.sku;
|
|
5816
|
+
this._sendAction({
|
|
5817
|
+
title: t,
|
|
5818
|
+
type: "launchSingleProduct",
|
|
5819
|
+
payload: { sku: e.sku }
|
|
5820
|
+
});
|
|
5821
|
+
}
|
|
5811
5822
|
},
|
|
5812
5823
|
onAddToCart: (e) => {
|
|
5813
5824
|
this._runChatAddToCartFlow(e);
|
|
@@ -6043,4 +6054,4 @@ function Jr() {
|
|
|
6043
6054
|
//#endregion
|
|
6044
6055
|
export { Vt as a, Ie as c, Oe as d, ke as f, dr as i, Pe as l, Jr as n, Bt as o, pe as p, Wr as r, Ht as s, qr as t, Ee as u };
|
|
6045
6056
|
|
|
6046
|
-
//# sourceMappingURL=chat-
|
|
6057
|
+
//# sourceMappingURL=chat-IvWeYroj.js.map
|