@gengage/assistant-fe 0.6.42 → 0.6.45

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 (38) hide show
  1. package/dist/chat/components/ChatDrawer.d.ts +5 -1
  2. package/dist/chat/components/productMentionLinker.d.ts +5 -5
  3. package/dist/chat/runtime.d.ts +4 -1
  4. package/dist/chat/types.d.ts +18 -0
  5. package/dist/chat-runtime.js +1 -1
  6. package/dist/chat.iife.js +12 -12
  7. package/dist/chat.js +1 -1
  8. package/dist/common/overlay.d.ts +1 -0
  9. package/dist/common/transport.d.ts +1 -0
  10. package/dist/common/types.d.ts +1 -0
  11. package/dist/{common-B9n_o9ki.js → common-BqApfsJV.js} +2 -2
  12. package/dist/common.js +7 -7
  13. package/dist/{connection-warning-ByY3TKaG.js → connection-warning-B829KlSR.js} +1 -1
  14. package/dist/{fastIntent-BaNC2CJz.js → fastIntent-DtopsdAD.js} +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +12 -12
  17. package/dist/{native-webview-Ch9lsx7E.js → native-webview-CYX30O3Q.js} +1 -1
  18. package/dist/native.iife.js +8 -8
  19. package/dist/native.js +1 -1
  20. package/dist/{overlay-CPLLn1eK.js → overlay-BPZEIyo_.js} +1 -1
  21. package/dist/overlay.js +1 -1
  22. package/dist/qna-runtime.js +1 -1
  23. package/dist/qna.iife.js +8 -8
  24. package/dist/qna.js +1 -1
  25. package/dist/request-response-cache-DIu22gmN.js +1491 -0
  26. package/dist/{runtime-_ly8XVXC.js → runtime-5Iu4s-BA.js} +1206 -1153
  27. package/dist/{runtime-CmpEARET.js → runtime-BmIfwBR6.js} +3 -3
  28. package/dist/{runtime-BkqUiRUi.js → runtime-Dly7YrGI.js} +3 -3
  29. package/dist/{simbut-CltMk2OF.js → simbut-DN8UCH7t.js} +1 -1
  30. package/dist/simbut.iife.js +2 -2
  31. package/dist/simbut.js +1 -1
  32. package/dist/{simrel-BuCc53Pw.js → simrel-DGfunNnJ.js} +1 -1
  33. package/dist/simrel-runtime.js +1 -1
  34. package/dist/simrel.iife.js +3 -3
  35. package/dist/simrel.js +2 -2
  36. package/dist/{widget-base-vDXD27_n.js → widget-base-DH9dsYIO.js} +4 -1
  37. package/package.json +1 -1
  38. package/dist/request-response-cache-DkilqELR.js +0 -1475
package/dist/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, d as r, f as s, i as n, l as c, n as i, o as l, r as o, s as h, t as C, u as d } from "./runtime-_ly8XVXC.js";
1
+ import { a as e, c as t, d as r, f as s, i as n, l as c, n as i, o as l, r as o, s as h, t as C, u as d } from "./runtime-5Iu4s-BA.js";
2
2
  import { t as S } from "./chat-CJzuUZxy.js";
3
3
  export {
4
4
  d as CHAT_SCROLL_ELEMENT_ID,
@@ -24,6 +24,7 @@ export interface OverlayChatOptions {
24
24
  headerFavoritesToggle?: boolean;
25
25
  /** Opens merchant favorites page (passed to chat `onFavoritesClick`). */
26
26
  onFavoritesClick?: () => void;
27
+ footerAttribution?: ChatWidgetConfig['footerAttribution'];
27
28
  hideMobileLauncher?: boolean;
28
29
  mobileBreakpoint?: number;
29
30
  mobileInitialState?: 'half' | 'full';
@@ -68,6 +68,7 @@ export interface StreamCallbacks {
68
68
  productMentions?: Array<{
69
69
  sku: string;
70
70
  short_name: string;
71
+ url?: string;
71
72
  }> | undefined;
72
73
  skuToProductItem?: Record<string, Record<string, unknown>> | undefined;
73
74
  conversationMode?: string | undefined;
@@ -132,6 +132,7 @@ export interface StreamEventTextChunk {
132
132
  productMentions?: Array<{
133
133
  sku: string;
134
134
  short_name: string;
135
+ url?: string;
135
136
  }>;
136
137
  /** Map from SKU to full product data (for enriching product mention links). */
137
138
  skuToProductItem?: Record<string, Record<string, unknown>>;
@@ -1,6 +1,6 @@
1
- import { i as g } from "./widget-base-vDXD27_n.js";
1
+ import { i as g } from "./widget-base-DH9dsYIO.js";
2
2
  import { c as l, i as p, o as u, r as c, t as y } from "./schemas-BnYUhYSy.js";
3
- import { a as w, i as v } from "./overlay-CPLLn1eK.js";
3
+ import { a as w, i as v } from "./overlay-BPZEIyo_.js";
4
4
  var d = u({ enabled: c().default(!0) }), h = u({
5
5
  chat: l().optional(),
6
6
  qna: l().optional(),
package/dist/common.js CHANGED
@@ -1,11 +1,11 @@
1
- import { a, d as t, f as s, g as r, h as i, i as o, m as n, n as c, o as m, p as g, r as l, s as d, t as p, u } from "./request-response-cache-DkilqELR.js";
1
+ import { a, d as t, f as s, g as r, h as i, i as o, m as n, n as c, o as m, p as g, r as l, s as d, t as p, u } from "./request-response-cache-DIu22gmN.js";
2
2
  import { N as E, a as S, c as h, i as C, k as T, n as y, o as A, r as G, s as I, t as w } from "./context-UTzCGyR9.js";
3
- import { a as W, c as v, d as N, f as P, l as U, n as O, o as D, p as _, r as L, t as b, u as k } from "./widget-base-vDXD27_n.js";
4
- import { a as x, c as B, f as z, i as M, l as V, n as K, o as H, r as Q, s as q, t as Z } from "./fastIntent-BaNC2CJz.js";
5
- import { n as J, t as X } from "./connection-warning-ByY3TKaG.js";
6
- import { i as $, n as ee, r as ae, t as te } from "./overlay-CPLLn1eK.js";
7
- import { a as re, i as ie, n as oe, r as ne } from "./native-webview-Ch9lsx7E.js";
8
- import { a as me, c as ge, i as le, l as de, n as pe, o as ue, r as fe, s as Ee, t as Se, u as he } from "./common-B9n_o9ki.js";
3
+ import { a as W, c as v, d as N, f as P, l as U, n as O, o as D, p as _, r as L, t as b, u as k } from "./widget-base-DH9dsYIO.js";
4
+ import { a as x, c as B, f as z, i as M, l as V, n as K, o as H, r as Q, s as q, t as Z } from "./fastIntent-DtopsdAD.js";
5
+ import { n as J, t as X } from "./connection-warning-B829KlSR.js";
6
+ import { i as $, n as ee, r as ae, t as te } from "./overlay-BPZEIyo_.js";
7
+ import { a as re, i as ie, n as oe, r as ne } from "./native-webview-CYX30O3Q.js";
8
+ import { a as me, c as ge, i as le, l as de, n as pe, o as ue, r as fe, s as Ee, t as Se, u as he } from "./common-BqApfsJV.js";
9
9
  export {
10
10
  ue as AccountRuntimeConfigSchema,
11
11
  k as BASE_WIDGET_THEME,
@@ -1,4 +1,4 @@
1
- import { a as y, l as d } from "./widget-base-vDXD27_n.js";
1
+ import { a as y, l as d } from "./widget-base-DH9dsYIO.js";
2
2
  var h = 8e3, m = 5e3, g = "https://www.google.com/favicon.ico";
3
3
  function b(e) {
4
4
  e.probeUrl && (g = e.probeUrl);
@@ -1,5 +1,5 @@
1
1
  import { j as S } from "./context-UTzCGyR9.js";
2
- import { i as E } from "./widget-base-vDXD27_n.js";
2
+ import { i as E } from "./widget-base-DH9dsYIO.js";
3
3
  function $(t, r) {
4
4
  if (typeof window > "u" || !S(t)) return !1;
5
5
  const e = new CustomEvent("gengage:navigate", {
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ export { renderQnaUISpec, createDefaultQnaUISpecRegistry, defaultQnaUnknownUISpe
18
18
  export { renderSimRelUISpec, createDefaultSimRelUISpecRegistry, defaultSimRelUnknownUISpecRenderer, } from './simrel/index.js';
19
19
  export { GENGAGE_VERSION, GENGAGE_BUILD_FLAVOR, bootstrapSession, updatePageContext, initOverlayWidgets, getOverlayWidgets, destroyOverlayWidgets, buildOverlayIdempotencyKey, detectNativeEnvironment, applyNativeSession, createNativeWebViewBridge, initNativeOverlayWidgets, wireQNAToChat, wireSimilarToChat, dispatch, listen, consumeStream, streamPost, buildChatEndpointUrl, normalizeMiddlewareUrl, routeStreamAction, renderUISpecWithRegistry, defaultUnknownUISpecRenderer, BASE_WIDGET_THEME, withBaseTheme, DEFAULT_WIDGET_THEME_TOKENS, withDefaultWidgetTheme, DEFAULT_CUSTOMIZATION_LOCALE, createAccountIdentity, createFloatingChatConfig, createPdpQnaConfig, createPdpSimRelConfig, parseAccountRuntimeConfig, safeParseAccountRuntimeConfig, createDefaultAccountRuntimeConfig, AccountRuntimeConfigSchema, UnknownActionPolicySchema, initGengageClient, preflightDiagnostics, wireGADataLayer, isVoiceInputSupported, VoiceInput, detectPageType, extractSkuFromUrl, autoDetectPageContext, configureConnectionWarning, makePillLauncher, } from './common/index.js';
20
20
  export type { PageContext, SessionContext, BaseWidgetConfig, GengageWidget, StreamEvent, UISpec, UIElement, ActionPayload, GengageEventName, ChatPublicAPI, ChatTransportConfig, ChatEndpointName, ActionEnrichmentContext, BackendRequestMeta, InjectorAdapter, ProcessActionRequest, StreamCallbacks, AccountRuntimeConfig, UnknownActionPolicy, HostActionHandlers, ActionRouterOptions, UISpecDomComponentRenderParams, UISpecDomComponentRenderer, UISpecDomRegistry, UISpecDomUnknownRendererParams, UISpecDomUnknownRenderer, RenderUISpecWithRegistryOptions, OverlayWidgetsController, OverlayWidgetsOptions, OverlayChatOptions, OverlayQNAOptions, OverlaySimRelOptions, OverlaySimButOptions, NativeBridgeEnvironment, NativeSessionPayload, NativeBridgeMessage, NativeWebViewBridgeOptions, NativeWebViewBridge, NativeOverlayInitOptions, NativeOverlayInitResult, AccountIdentityConfig, AccountIdentity, GengageClientOptions, HostActions, PreflightResult, PreflightWarning, WireQNAToChatOptions, VoiceInputState, VoiceInputErrorCode, VoiceInputCallbacks, VoiceInputOptions, DetectablePageType, PageDetectionRule, PillLauncherOptions, PillLauncherKit, } from './common/index.js';
21
- export type { ChatWidgetConfig, ChatMessage, ChatSession, ChatI18n, ChatRendererConfig, FloatingLauncherOptions, InlineLauncherOptions, InlineLauncherSizeOptions, InlineLauncherMobileHostOptions, } from './chat/index.js';
21
+ export type { ChatFooterAttribution, ChatWidgetConfig, ChatMessage, ChatSession, ChatI18n, ChatRendererConfig, FloatingLauncherOptions, InlineLauncherOptions, InlineLauncherSizeOptions, InlineLauncherMobileHostOptions, } from './chat/index.js';
22
22
  export type { ChatUISpecRegistry, UISpecRenderContext as ChatUISpecRenderContext } from './chat/index.js';
23
23
  export type { QNAWidgetConfig, QNAI18n, QNAChromeLayout, QNAChromeConfig, QNAUISpecRenderContext, QNAUISpecRegistry, QNARendererConfig, } from './qna/index.js';
24
24
  export type { SimRelWidgetConfig, SimilarProduct, SimRelI18n, SimRelUISpecRenderContext, SimRelUISpecRegistry, SimRelRendererConfig, SimRelFieldPath, SimRelRendererFields, SimRelRendererLabels, SimRelRendererMedia, SimRelRendererOptions, } from './simrel/index.js';
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { f as a, g as t, h as r, n as i, p as s, r as n } from "./request-response-cache-DkilqELR.js";
1
+ import { f as a, g as t, h as r, n as i, p as s, r as n } from "./request-response-cache-DIu22gmN.js";
2
2
  import { a as c, c as m, i as p, k as g, o as d, s as l, t as f } from "./context-UTzCGyR9.js";
3
- import { d as S, f as U, n as C, p as I, r as R, u as h } from "./widget-base-vDXD27_n.js";
4
- import { c as E, l as y, n as G, s as T, t as W } from "./runtime-_ly8XVXC.js";
5
- import { a as w, c as N, f as O, i as v, l as _, n as P, o as k, r as L, s as Q } from "./fastIntent-BaNC2CJz.js";
6
- import { t as F } from "./connection-warning-ByY3TKaG.js";
7
- import { a as b, i as x, n as M, r as H, t as K } from "./runtime-BkqUiRUi.js";
8
- import { a as Z, i as j, n as q, r as J, t as X } from "./runtime-CmpEARET.js";
9
- import { n as $ } from "./simrel-BuCc53Pw.js";
10
- import { n as ae, t as te } from "./simbut-CltMk2OF.js";
11
- import { i as ie, n as se, r as ne, t as oe } from "./overlay-CPLLn1eK.js";
12
- import { a as me, i as pe, n as ge, r as de } from "./native-webview-Ch9lsx7E.js";
13
- import { a as fe, c as ue, i as Se, l as Ue, n as Ce, o as Ie, r as Re, s as he, t as Ae, u as Ee } from "./common-B9n_o9ki.js";
3
+ import { d as S, f as U, n as C, p as I, r as R, u as h } from "./widget-base-DH9dsYIO.js";
4
+ import { c as E, l as y, n as G, s as T, t as W } from "./runtime-5Iu4s-BA.js";
5
+ import { a as w, c as N, f as O, i as v, l as _, n as P, o as k, r as L, s as Q } from "./fastIntent-DtopsdAD.js";
6
+ import { t as F } from "./connection-warning-B829KlSR.js";
7
+ import { a as b, i as x, n as M, r as H, t as K } from "./runtime-Dly7YrGI.js";
8
+ import { a as Z, i as j, n as q, r as J, t as X } from "./runtime-BmIfwBR6.js";
9
+ import { n as $ } from "./simrel-DGfunNnJ.js";
10
+ import { n as ae, t as te } from "./simbut-DN8UCH7t.js";
11
+ import { i as ie, n as se, r as ne, t as oe } from "./overlay-BPZEIyo_.js";
12
+ import { a as me, i as pe, n as ge, r as de } from "./native-webview-CYX30O3Q.js";
13
+ import { a as fe, c as ue, i as Se, l as Ue, n as Ce, o as Ie, r as Re, s as he, t as Ae, u as Ee } from "./common-BqApfsJV.js";
14
14
  export {
15
15
  Ie as AccountRuntimeConfigSchema,
16
16
  h as BASE_WIDGET_THEME,
@@ -1,4 +1,4 @@
1
- import { i as k } from "./overlay-CPLLn1eK.js";
1
+ import { i as k } from "./overlay-BPZEIyo_.js";
2
2
  var _ = [
3
3
  "gengage:chat:open",
4
4
  "gengage:chat:close",