@gengage/assistant-fe 0.6.14 → 0.6.17

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 (40) hide show
  1. package/dist/agentic/adaptor/fetch-bridge.d.ts +20 -1
  2. package/dist/agentic/index.js +517 -367
  3. package/dist/agentic/worker.js +18 -18
  4. package/dist/agentic.iife.js +5 -5
  5. package/dist/{api-paths-kwROurUu.js → api-paths-xsHH9jtm.js} +1 -1
  6. package/dist/chat/components/InlineLauncher.d.ts +152 -0
  7. package/dist/chat/index.d.ts +2 -0
  8. package/dist/chat/runtime.d.ts +3 -0
  9. package/dist/chat/types.d.ts +6 -0
  10. package/dist/chat-runtime.js +9 -9
  11. package/dist/chat.iife.js +160 -35
  12. package/dist/chat.js +13 -12
  13. package/dist/common/overlay.d.ts +2 -0
  14. package/dist/{common-DZuPNgWh.js → common-O0BUdXOn.js} +2 -2
  15. package/dist/common.js +7 -7
  16. package/dist/{connection-warning-Bg4gn-cq.js → connection-warning-DWMfjv0Y.js} +1 -1
  17. package/dist/{fastIntent-BSgLJDlW.js → fastIntent-RTSVRJhw.js} +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +16 -16
  20. package/dist/{native-webview-DbKq9lN8.js → native-webview-U9HtGabb.js} +1 -1
  21. package/dist/native.iife.js +140 -15
  22. package/dist/native.js +1 -1
  23. package/dist/{overlay-CyoB1K0w.js → overlay-ClYgI2Kl.js} +5 -5
  24. package/dist/overlay.js +1 -1
  25. package/dist/qna-runtime.js +1 -1
  26. package/dist/qna.iife.js +1 -1
  27. package/dist/qna.js +1 -1
  28. package/dist/{request-text-su3Vlhrs.js → request-text-DThlE-Xd.js} +106 -106
  29. package/dist/{runtime-CAJp9Ehc.js → runtime-BKU-NQXf.js} +2101 -1745
  30. package/dist/{runtime-KV5wCTc-.js → runtime-COh3CwNU.js} +3 -3
  31. package/dist/{runtime-DwQSV54I.js → runtime-n7fEJGDt.js} +3 -3
  32. package/dist/{simbut-Bm96zEAo.js → simbut-DaFCfvp7.js} +1 -1
  33. package/dist/simbut.iife.js +1 -1
  34. package/dist/simbut.js +1 -1
  35. package/dist/{simrel-C9sM9CCV.js → simrel-CX1JBDa5.js} +1 -1
  36. package/dist/simrel-runtime.js +1 -1
  37. package/dist/simrel.iife.js +1 -1
  38. package/dist/simrel.js +2 -2
  39. package/dist/{widget-base-TZjXRr3u.js → widget-base-DoZrhVze.js} +1 -1
  40. package/package.json +1 -1
package/dist/chat.js CHANGED
@@ -1,16 +1,17 @@
1
- import { a as e, c as t, d as r, i as s, l as n, n as i, o as c, r as l, s as o, t as C, u as h } from "./runtime-CAJp9Ehc.js";
2
- import { t as p } from "./chat-BP-yXukW.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-BKU-NQXf.js";
2
+ import { t as S } from "./chat-BP-yXukW.js";
3
3
  export {
4
- n as CHAT_SCROLL_ELEMENT_ID,
5
- s as ChatPresentationState,
4
+ d as CHAT_SCROLL_ELEMENT_ID,
5
+ n as ChatPresentationState,
6
6
  C as GengageChat,
7
- p as chatCatalog,
7
+ S as chatCatalog,
8
8
  i as createChatWidget,
9
- c as createDefaultChatUISpecRegistry,
10
- e as createFloatingLauncher,
11
- o as defaultChatUnknownUISpecRenderer,
12
- h as getChatScrollElement,
13
- r as invalidateChatScrollCache,
14
- l as isSimilarsAppendGrid,
15
- t as renderUISpec
9
+ h as createDefaultChatUISpecRegistry,
10
+ l as createFloatingLauncher,
11
+ e as createInlineLauncher,
12
+ t as defaultChatUnknownUISpecRenderer,
13
+ r as getChatScrollElement,
14
+ s as invalidateChatScrollCache,
15
+ o as isSimilarsAppendGrid,
16
+ c as renderUISpec
16
17
  };
@@ -44,6 +44,8 @@ export interface OverlayChatOptions {
44
44
  pillLauncher?: ChatWidgetConfig['pillLauncher'];
45
45
  /** Search-bar style floating launcher — forwarded to `chat.floatingLauncher`. */
46
46
  floatingLauncher?: ChatWidgetConfig['floatingLauncher'];
47
+ /** Header-embedded inline launcher — forwarded to `chat.inlineLauncher`. */
48
+ inlineLauncher?: ChatWidgetConfig['inlineLauncher'];
47
49
  /** Dynamic launcher positioning relative to page elements. */
48
50
  launcherAnchor?: ChatWidgetConfig['launcherAnchor'];
49
51
  /** Called when the chat panel opens. */
@@ -1,6 +1,6 @@
1
- import { i as g } from "./widget-base-TZjXRr3u.js";
1
+ import { i as g } from "./widget-base-DoZrhVze.js";
2
2
  import { c as l, i as p, o as u, r as c, t as y } from "./schemas-Cq2blsO_.js";
3
- import { a as w, i as v } from "./overlay-CyoB1K0w.js";
3
+ import { a as w, i as v } from "./overlay-ClYgI2Kl.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, h as r, i, l as o, m as n, n as c, o as l, p as m, r as g, t as d, u as p } from "./api-paths-kwROurUu.js";
1
+ import { a, d as t, f as s, h as r, i, l as o, m as n, n as c, o as l, p as m, r as g, t as d, u as p } from "./api-paths-xsHH9jtm.js";
2
2
  import { N as f, a as E, c as S, i as C, k as T, n as h, o as y, r as A, s as G, t as I } from "./context-BBuSsXZ9.js";
3
- import { a as R, c as W, d as v, f as N, l as P, n as U, o as O, p as D, r as _, t as L, u as b } from "./widget-base-TZjXRr3u.js";
4
- import { a as x, c as B, f as F, i as z, l as M, n as V, o as K, r as H, s as Q, t as q } from "./fastIntent-BSgLJDlW.js";
5
- import { n as j, t as J } from "./connection-warning-Bg4gn-cq.js";
6
- import { i as Y, n as $, r as ee, t as ae } from "./overlay-CyoB1K0w.js";
7
- import { a as se, i as re, n as ie, r as oe } from "./native-webview-DbKq9lN8.js";
8
- import { a as ce, c as le, i as me, l as ge, n as de, o as pe, r as ue, s as fe, t as Ee, u as Se } from "./common-DZuPNgWh.js";
3
+ import { a as R, c as W, d as v, f as N, l as P, n as U, o as O, p as D, r as _, t as L, u as b } from "./widget-base-DoZrhVze.js";
4
+ import { a as x, c as B, f as F, i as z, l as M, n as V, o as K, r as H, s as Q, t as q } from "./fastIntent-RTSVRJhw.js";
5
+ import { n as j, t as J } from "./connection-warning-DWMfjv0Y.js";
6
+ import { i as Y, n as $, r as ee, t as ae } from "./overlay-ClYgI2Kl.js";
7
+ import { a as se, i as re, n as ie, r as oe } from "./native-webview-U9HtGabb.js";
8
+ import { a as ce, c as le, i as me, l as ge, n as de, o as pe, r as ue, s as fe, t as Ee, u as Se } from "./common-O0BUdXOn.js";
9
9
  export {
10
10
  pe as AccountRuntimeConfigSchema,
11
11
  b as BASE_WIDGET_THEME,
@@ -1,4 +1,4 @@
1
- import { a as y, l as d } from "./widget-base-TZjXRr3u.js";
1
+ import { a as y, l as d } from "./widget-base-DoZrhVze.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-BBuSsXZ9.js";
2
- import { i as E } from "./widget-base-TZjXRr3u.js";
2
+ import { i as E } from "./widget-base-DoZrhVze.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, } from './chat/index.js';
21
+ export type { 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 { d as a, f as t, h as r, m as i, n as s, t as n } from "./api-paths-kwROurUu.js";
1
+ import { d as a, f as t, h as r, m as i, n as s, t as n } from "./api-paths-xsHH9jtm.js";
2
2
  import { a as c, c as m, i as p, k as d, o as g, s as l, t as f } from "./context-BBuSsXZ9.js";
3
- import { d as S, f as U, n as C, p as I, r as R, u as h } from "./widget-base-TZjXRr3u.js";
4
- import { c as E, n as y, o as G, s as T, t as W } from "./runtime-CAJp9Ehc.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-BSgLJDlW.js";
6
- import { t as F } from "./connection-warning-Bg4gn-cq.js";
7
- import { a as b, i as x, n as M, r as H, t as K } from "./runtime-DwQSV54I.js";
8
- import { a as Z, i as j, n as q, r as J, t as X } from "./runtime-KV5wCTc-.js";
9
- import { n as $ } from "./simrel-C9sM9CCV.js";
10
- import { n as ae, t as te } from "./simbut-Bm96zEAo.js";
11
- import { i as ie, n as se, r as ne, t as oe } from "./overlay-CyoB1K0w.js";
12
- import { a as me, i as pe, n as de, r as ge } from "./native-webview-DbKq9lN8.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-DZuPNgWh.js";
3
+ import { d as S, f as U, n as C, p as I, r as R, u as h } from "./widget-base-DoZrhVze.js";
4
+ import { c as E, l as y, n as G, s as T, t as W } from "./runtime-BKU-NQXf.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-RTSVRJhw.js";
6
+ import { t as F } from "./connection-warning-DWMfjv0Y.js";
7
+ import { a as b, i as x, n as M, r as H, t as K } from "./runtime-n7fEJGDt.js";
8
+ import { a as Z, i as j, n as q, r as J, t as X } from "./runtime-COh3CwNU.js";
9
+ import { n as $ } from "./simrel-CX1JBDa5.js";
10
+ import { n as ae, t as te } from "./simbut-DaFCfvp7.js";
11
+ import { i as ie, n as se, r as ne, t as oe } from "./overlay-ClYgI2Kl.js";
12
+ import { a as me, i as pe, n as de, r as ge } from "./native-webview-U9HtGabb.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-O0BUdXOn.js";
14
14
  export {
15
15
  Ie as AccountRuntimeConfigSchema,
16
16
  h as BASE_WIDGET_THEME,
@@ -32,9 +32,9 @@ export {
32
32
  F as configureConnectionWarning,
33
33
  a as consumeStream,
34
34
  k as createAccountIdentity,
35
- y as createChatWidget,
35
+ G as createChatWidget,
36
36
  ue as createDefaultAccountRuntimeConfig,
37
- G as createDefaultChatUISpecRegistry,
37
+ T as createDefaultChatUISpecRegistry,
38
38
  H as createDefaultQnaUISpecRegistry,
39
39
  J as createDefaultSimRelUISpecRegistry,
40
40
  Q as createFloatingChatConfig,
@@ -45,7 +45,7 @@ export {
45
45
  ae as createSimButWidget,
46
46
  $ as createSimRelRenderer,
47
47
  q as createSimRelWidget,
48
- T as defaultChatUnknownUISpecRenderer,
48
+ E as defaultChatUnknownUISpecRenderer,
49
49
  x as defaultQnaUnknownUISpecRenderer,
50
50
  j as defaultSimRelUnknownUISpecRenderer,
51
51
  i as defaultUnknownUISpecRenderer,
@@ -64,7 +64,7 @@ export {
64
64
  s as normalizeMiddlewareUrl,
65
65
  Ue as parseAccountRuntimeConfig,
66
66
  fe as preflightDiagnostics,
67
- E as renderChatUISpec,
67
+ y as renderChatUISpec,
68
68
  b as renderQnaUISpec,
69
69
  Z as renderSimRelUISpec,
70
70
  r as renderUISpecWithRegistry,
@@ -1,4 +1,4 @@
1
- import { i as k } from "./overlay-CyoB1K0w.js";
1
+ import { i as k } from "./overlay-ClYgI2Kl.js";
2
2
  var _ = [
3
3
  "gengage:chat:open",
4
4
  "gengage:chat:close",