@gengage/assistant-fe 0.6.36 → 0.6.37

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 (36) hide show
  1. package/dist/chat/catalog.d.ts +13 -0
  2. package/dist/chat/components/InlineQuestionButtons.d.ts +3 -0
  3. package/dist/chat/runtime.d.ts +2 -0
  4. package/dist/chat/types.d.ts +14 -0
  5. package/dist/{chat-CIfQyuBl.js → chat-CJzuUZxy.js} +42 -38
  6. package/dist/chat-runtime.js +1 -1
  7. package/dist/chat.iife.js +21 -21
  8. package/dist/chat.js +2 -2
  9. package/dist/common/overlay.d.ts +2 -0
  10. package/dist/common/transport.d.ts +1 -0
  11. package/dist/{common-ByXFSuDh.js → common-CvcP5qMC.js} +2 -2
  12. package/dist/common.js +7 -7
  13. package/dist/{connection-warning-ChSjBT_4.js → connection-warning-DuejADTP.js} +1 -1
  14. package/dist/{fastIntent-B9AE8K30.js → fastIntent-DpWJneEN.js} +1 -1
  15. package/dist/index.js +12 -12
  16. package/dist/{native-webview-BcwGKkDe.js → native-webview-Ch9lsx7E.js} +1 -1
  17. package/dist/native.iife.js +18 -18
  18. package/dist/native.js +1 -1
  19. package/dist/{overlay-cF2SjxYU.js → overlay-CPLLn1eK.js} +7 -7
  20. package/dist/overlay.js +1 -1
  21. package/dist/qna-runtime.js +1 -1
  22. package/dist/qna.iife.js +8 -8
  23. package/dist/qna.js +1 -1
  24. package/dist/{request-response-cache-D6O2m-O-.js → request-response-cache-Cv8CiBwQ.js} +240 -214
  25. package/dist/{runtime-YKSfwMAr.js → runtime-BVd67coj.js} +1053 -1013
  26. package/dist/{runtime-CCQGaWOq.js → runtime-Bq0nExwG.js} +3 -3
  27. package/dist/{runtime-aR-A6Jh2.js → runtime-i_FHHBlZ.js} +3 -3
  28. package/dist/{simbut-BCKrXmkh.js → simbut-BzrDBfBk.js} +1 -1
  29. package/dist/simbut.iife.js +1 -1
  30. package/dist/simbut.js +1 -1
  31. package/dist/{simrel-CSlprSEe.js → simrel-DUVViZ9p.js} +1 -1
  32. package/dist/simrel-runtime.js +1 -1
  33. package/dist/simrel.iife.js +9 -9
  34. package/dist/simrel.js +2 -2
  35. package/dist/{widget-base-CmxCHKJi.js → widget-base-EWFE_HAI.js} +1 -1
  36. package/package.json +1 -1
package/dist/native.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, i, n as t, r, t as s } from "./native-webview-BcwGKkDe.js";
1
+ import { a, i, n as t, r, t as s } from "./native-webview-Ch9lsx7E.js";
2
2
  export {
3
3
  s as DEFAULT_NATIVE_TRACKED_EVENTS,
4
4
  t as applyNativeSession,
@@ -79,7 +79,7 @@ var q = class {
79
79
  pageContext: this._pageContext,
80
80
  variant: this.options.chat?.variant ?? "floating"
81
81
  };
82
- this.options.theme !== void 0 && (t.theme = this.options.theme), a !== void 0 && (t.injectorAdapter = a), this.options.locale !== void 0 && (t.locale = this.options.locale), this.options.pricing !== void 0 && (t.pricing = this.options.pricing), this.options.chat?.mountTarget !== void 0 && (t.mountTarget = this.options.chat.mountTarget), this.options.chat?.pillLauncher !== void 0 && (t.pillLauncher = this.options.chat.pillLauncher), this.options.chat?.floatingLauncher !== void 0 && (t.floatingLauncher = this.options.chat.floatingLauncher), this.options.chat?.inlineLauncher !== void 0 && (t.inlineLauncher = this.options.chat.inlineLauncher), this.options.chat?.launcherAnchor !== void 0 && (t.launcherAnchor = this.options.chat.launcherAnchor), this.options.chat?.launcherImageUrl !== void 0 ? t.launcherImageUrl = this.options.chat.launcherImageUrl : this.options.chat?.launcherSvg !== void 0 && (t.launcherSvg = this.options.chat.launcherSvg), this.options.chat?.mobileLauncherImageUrl !== void 0 && (t.mobileLauncherImageUrl = this.options.chat.mobileLauncherImageUrl), this.options.chat?.headerTitle !== void 0 && (t.headerTitle = this.options.chat.headerTitle), this.options.chat?.headerAvatarUrl !== void 0 && (t.headerAvatarUrl = this.options.chat.headerAvatarUrl), this.options.chat?.headerBadge !== void 0 && (t.headerBadge = this.options.chat.headerBadge), this.options.chat?.headerCartUrl !== void 0 && (t.headerCartUrl = this.options.chat.headerCartUrl), this.options.chat?.headerFavoritesToggle !== void 0 && (t.headerFavoritesToggle = this.options.chat.headerFavoritesToggle), this.options.chat?.onFavoritesClick !== void 0 && (t.onFavoritesClick = this.options.chat.onFavoritesClick), this.options.chat?.hideMobileLauncher !== void 0 && (t.hideMobileLauncher = this.options.chat.hideMobileLauncher), this.options.chat?.mobileBreakpoint !== void 0 && (t.mobileBreakpoint = this.options.chat.mobileBreakpoint), this.options.chat?.mobileInitialState !== void 0 && (t.mobileInitialState = this.options.chat.mobileInitialState), this.options.chat?.i18n !== void 0 && (t.i18n = this.options.chat.i18n), this.options.chat?.actionHandling !== void 0 && (t.actionHandling = this.options.chat.actionHandling), this.options.chat?.renderer !== void 0 && (t.renderer = this.options.chat.renderer), e !== void 0 && (t.productDetailsExtended = e), s !== void 0 && (t.isDemoWebsite = s), this.options.chat?.productPriceUi !== void 0 && (t.productPriceUi = this.options.chat.productPriceUi), this.options.chat?.hideProductDiscountBadge !== void 0 && (t.hideProductDiscountBadge = this.options.chat.hideProductDiscountBadge), this.options.chat?.hideUserReviews !== void 0 && (t.hideUserReviews = this.options.chat.hideUserReviews), this.options.chat?.hideStockStatus !== void 0 && (t.hideStockStatus = this.options.chat.hideStockStatus), this.options.onScriptCall !== void 0 && (t.onScriptCall = this.options.onScriptCall), this.options.onAddToCart !== void 0 && (t.onAddToCart = this.options.onAddToCart), this.options.onProductNavigate !== void 0 && (t.onProductNavigate = this.options.onProductNavigate), this.options.chat?.onOpen !== void 0 && (t.onOpen = this.options.chat.onOpen), this.options.chat?.onClose !== void 0 && (t.onClose = this.options.chat.onClose);
82
+ this.options.theme !== void 0 && (t.theme = this.options.theme), a !== void 0 && (t.injectorAdapter = a), this.options.locale !== void 0 && (t.locale = this.options.locale), this.options.pricing !== void 0 && (t.pricing = this.options.pricing), this.options.chat?.mountTarget !== void 0 && (t.mountTarget = this.options.chat.mountTarget), this.options.chat?.pillLauncher !== void 0 && (t.pillLauncher = this.options.chat.pillLauncher), this.options.chat?.floatingLauncher !== void 0 && (t.floatingLauncher = this.options.chat.floatingLauncher), this.options.chat?.inlineLauncher !== void 0 && (t.inlineLauncher = this.options.chat.inlineLauncher), this.options.chat?.launcherAnchor !== void 0 && (t.launcherAnchor = this.options.chat.launcherAnchor), this.options.chat?.genericNonPdpLaunch !== void 0 && (t.genericNonPdpLaunch = this.options.chat.genericNonPdpLaunch), this.options.chat?.launcherImageUrl !== void 0 ? t.launcherImageUrl = this.options.chat.launcherImageUrl : this.options.chat?.launcherSvg !== void 0 && (t.launcherSvg = this.options.chat.launcherSvg), this.options.chat?.mobileLauncherImageUrl !== void 0 && (t.mobileLauncherImageUrl = this.options.chat.mobileLauncherImageUrl), this.options.chat?.headerTitle !== void 0 && (t.headerTitle = this.options.chat.headerTitle), this.options.chat?.headerAvatarUrl !== void 0 && (t.headerAvatarUrl = this.options.chat.headerAvatarUrl), this.options.chat?.headerBadge !== void 0 && (t.headerBadge = this.options.chat.headerBadge), this.options.chat?.headerCartUrl !== void 0 && (t.headerCartUrl = this.options.chat.headerCartUrl), this.options.chat?.headerFavoritesToggle !== void 0 && (t.headerFavoritesToggle = this.options.chat.headerFavoritesToggle), this.options.chat?.onFavoritesClick !== void 0 && (t.onFavoritesClick = this.options.chat.onFavoritesClick), this.options.chat?.hideMobileLauncher !== void 0 && (t.hideMobileLauncher = this.options.chat.hideMobileLauncher), this.options.chat?.mobileBreakpoint !== void 0 && (t.mobileBreakpoint = this.options.chat.mobileBreakpoint), this.options.chat?.mobileInitialState !== void 0 && (t.mobileInitialState = this.options.chat.mobileInitialState), this.options.chat?.i18n !== void 0 && (t.i18n = this.options.chat.i18n), this.options.chat?.actionHandling !== void 0 && (t.actionHandling = this.options.chat.actionHandling), this.options.chat?.renderer !== void 0 && (t.renderer = this.options.chat.renderer), e !== void 0 && (t.productDetailsExtended = e), s !== void 0 && (t.isDemoWebsite = s), this.options.chat?.productPriceUi !== void 0 && (t.productPriceUi = this.options.chat.productPriceUi), this.options.chat?.hideProductDiscountBadge !== void 0 && (t.hideProductDiscountBadge = this.options.chat.hideProductDiscountBadge), this.options.chat?.hideUserReviews !== void 0 && (t.hideUserReviews = this.options.chat.hideUserReviews), this.options.chat?.hideStockStatus !== void 0 && (t.hideStockStatus = this.options.chat.hideStockStatus), this.options.onScriptCall !== void 0 && (t.onScriptCall = this.options.onScriptCall), this.options.onAddToCart !== void 0 && (t.onAddToCart = this.options.onAddToCart), this.options.onProductNavigate !== void 0 && (t.onProductNavigate = this.options.onProductNavigate), this.options.chat?.onOpen !== void 0 && (t.onOpen = this.options.chat.onOpen), this.options.chat?.onClose !== void 0 && (t.onClose = this.options.chat.onClose);
83
83
  const { GengageChat: h } = await import("./chat-runtime.js");
84
84
  this._chat = new h(), await this._chat.init(t);
85
85
  }
@@ -134,8 +134,8 @@ var q = class {
134
134
  sku: i,
135
135
  mountTarget: a
136
136
  };
137
- this.options.locale !== void 0 && (o.locale = this.options.locale), 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) => {
138
- g(n) && (this._chat?.saveSession(c ?? this.session.sessionId, u), window.location.href = n);
137
+ this.options.locale !== void 0 && (o.locale = this.options.locale), 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, c, u) => {
138
+ g(n) && (this._chat?.saveSession(u ?? this.session.sessionId, c), window.location.href = n);
139
139
  }, await h.init(o), this._simrel = h;
140
140
  }
141
141
  else
@@ -194,16 +194,16 @@ async function k(i) {
194
194
  function S(i) {
195
195
  return d().instances[i] ?? null;
196
196
  }
197
- function M(i) {
197
+ function L(i) {
198
198
  S(i)?.destroy();
199
199
  }
200
- function U(i) {
200
+ function M(i) {
201
201
  return `${l}${i}`;
202
202
  }
203
203
  export {
204
204
  _ as a,
205
205
  k as i,
206
- M as n,
206
+ L as n,
207
207
  S as r,
208
- U as t
208
+ M as t
209
209
  };
package/dist/overlay.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as t, t as a } from "./context-UTzCGyR9.js";
2
- import { i as r, n as i, r as o, t as d } from "./overlay-cF2SjxYU.js";
2
+ import { i as r, n as i, r as o, t as d } from "./overlay-CPLLn1eK.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-CCQGaWOq.js";
1
+ import { a, i as r, n, r as t, t as s } from "./runtime-Bq0nExwG.js";
2
2
  export {
3
3
  s as GengageQNA,
4
4
  t as createDefaultQnaUISpecRegistry,