@gengage/assistant-fe 0.4.7 → 0.4.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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, i as r, l as s, n as i, o as n, r as l, s as o, t as C, u as c } from "./runtime-DNbjpTCh.js";
1
+ import { a as e, c as t, i as r, l as s, n as i, o as n, r as l, s as o, t as C, u as c } from "./runtime-Dznok-9r.js";
2
2
  import { t as p } from "./chat-BRKK63lt.js";
3
3
  export {
4
4
  t as CHAT_SCROLL_ELEMENT_ID,
@@ -38,6 +38,8 @@ export interface OverlayChatOptions {
38
38
  isDemoWebsite?: ChatWidgetConfig['isDemoWebsite'];
39
39
  /** Pill launcher — forwarded to `chat.pillLauncher` (applied inside GengageChat). */
40
40
  pillLauncher?: ChatWidgetConfig['pillLauncher'];
41
+ /** Search-bar style floating launcher — forwarded to `chat.floatingLauncher`. */
42
+ floatingLauncher?: ChatWidgetConfig['floatingLauncher'];
41
43
  /** Called when the chat panel opens. */
42
44
  onOpen?: () => void;
43
45
  /** Called when the chat panel closes. */
@@ -1,7 +1,7 @@
1
1
  import { n as w } from "./api-paths-DR5bPNhi.js";
2
2
  import { n as f } from "./widget-base-2-B1Ch5I.js";
3
3
  import { a as h, c as s, i as b, o as d, r as u, t as p } from "./schemas-CLo8wCjs.js";
4
- import { a as T, i as k } from "./overlay-DJ1ZRMfI.js";
4
+ import { a as T, i as k } from "./overlay-DXdWi-GM.js";
5
5
  var c = d({ enabled: u().default(!0) }), S = d({
6
6
  chat: s().optional(),
7
7
  qna: s().optional(),
package/dist/common.js CHANGED
@@ -3,9 +3,9 @@ import { C as E, S, _ as h, b as v, c as f, d as y, f as C, g as A, h as T, i as
3
3
  import { N as L, a as M, c as z, i as B, k as H, n as F, o as K, r as V, s as Q, t as q } from "./context-DGz5F81j.js";
4
4
  import { a as j, n as J, r as X, t as Y } from "./pill-launcher-DSEeJT9h.js";
5
5
  import { n as ee, t as ae } from "./connection-warning-ecZqpczd.js";
6
- import { i as se, n as re, r as ie, t as ne } from "./overlay-DJ1ZRMfI.js";
7
- import { a as ce, i as me, n as le, r as ge } from "./native-webview-C_PmKnzm.js";
8
- import { _ as pe, a as ue, c as Ee, d as Se, f as he, g as ve, h as fe, i as ye, l as Ce, m as Ae, n as Te, o as we, p as Ue, r as We, s as Ie, t as Pe, u as ke, v as De, y as Re } from "./common-c-awF96O.js";
6
+ import { i as se, n as re, r as ie, t as ne } from "./overlay-DXdWi-GM.js";
7
+ import { a as ce, i as me, n as le, r as ge } from "./native-webview-BGpkM3T9.js";
8
+ import { _ as pe, a as ue, c as Ee, d as Se, f as he, g as ve, h as fe, i as ye, l as Ce, m as Ae, n as Te, o as we, p as Ue, r as We, s as Ie, t as Pe, u as ke, v as De, y as Re } from "./common-CKbrDUKx.js";
9
9
  export {
10
10
  Ae as AccountRuntimeConfigSchema,
11
11
  fe as AnalyticsAuthModeSchema,
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 { bootstrapSession, updatePageContext, initOverlayWidgets, getOverlayWidgets, destroyOverlayWidgets, buildOverlayIdempotencyKey, detectNativeEnvironment, applyNativeSession, createNativeWebViewBridge, initNativeOverlayWidgets, wireQNAToChat, wireSimilarToChat, dispatch, listen, consumeStream, streamPost, buildChatEndpointUrl, normalizeMiddlewareUrl, routeStreamAction, createAnalyticsClient, renderUISpecWithRegistry, defaultUnknownUISpecRenderer, BASE_WIDGET_THEME, withBaseTheme, DEFAULT_WIDGET_THEME_TOKENS, withDefaultWidgetTheme, DEFAULT_CUSTOMIZATION_LOCALE, createAccountIdentity, createFloatingChatConfig, createPdpQnaConfig, createPdpSimRelConfig, createDefaultAnalyticsConfig, parseAccountRuntimeConfig, safeParseAccountRuntimeConfig, createDefaultAccountRuntimeConfig, AccountRuntimeConfigSchema, AnalyticsAuthModeSchema, 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, AccountRuntimeConfig, AnalyticsAuthMode, UnknownActionPolicy, HostActionHandlers, ActionRouterOptions, AnalyticsEnvelope, AnalyticsInput, AnalyticsAuthConfig, AnalyticsClientConfig, 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 } from './chat/index.js';
21
+ export type { ChatWidgetConfig, ChatMessage, ChatSession, ChatI18n, ChatRendererConfig, FloatingLauncherOptions, } 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
1
  import { d as a, m as t, n as r, p as i, t as s, u as n } from "./api-paths-DR5bPNhi.js";
2
2
  import { c, d as m, l, u as p } from "./widget-base-2-B1Ch5I.js";
3
3
  import { a as g, c as u, i as f, k as S, o as C, s as U, t as h } from "./context-DGz5F81j.js";
4
- import { a as A, n as I, o as R, s as T, t as W } from "./runtime-DNbjpTCh.js";
4
+ import { a as A, n as I, o as R, s as T, t as W } from "./runtime-Dznok-9r.js";
5
5
  import { a as E, n as w, r as v, t as N } from "./pill-launcher-DSEeJT9h.js";
6
6
  import { t as P } from "./connection-warning-ecZqpczd.js";
7
7
  import { a as G, i as _, n as Q, r as L, t as B } from "./runtime-SKDvc0Xc.js";
8
8
  import { a as b, i as x, n as F, r as V, t as H } from "./runtime-BsZZ8zTg.js";
9
9
  import { n as z } from "./simrel-DJZ983BF.js";
10
10
  import { n as j, t as q } from "./simbut-Bw3vBFtW.js";
11
- import { i as X, n as Y, r as $, t as ee } from "./overlay-DJ1ZRMfI.js";
12
- import { a as te, i as re, n as ie, r as se } from "./native-webview-C_PmKnzm.js";
13
- import { _ as oe, a as ce, c as me, d as le, g as pe, h as de, i as ge, l as ue, m as fe, n as Se, o as Ce, p as Ue, r as he, s as ye, t as Ae, u as Ie, v as Re, y as Te } from "./common-c-awF96O.js";
11
+ import { i as X, n as Y, r as $, t as ee } from "./overlay-DXdWi-GM.js";
12
+ import { a as te, i as re, n as ie, r as se } from "./native-webview-BGpkM3T9.js";
13
+ import { _ as oe, a as ce, c as me, d as le, g as pe, h as de, i as ge, l as ue, m as fe, n as Se, o as Ce, p as Ue, r as he, s as ye, t as Ae, u as Ie, v as Re, y as Te } from "./common-CKbrDUKx.js";
14
14
  export {
15
15
  fe as AccountRuntimeConfigSchema,
16
16
  de as AnalyticsAuthModeSchema,
@@ -1,4 +1,4 @@
1
- import { i as k } from "./overlay-DJ1ZRMfI.js";
1
+ import { i as k } from "./overlay-DXdWi-GM.js";
2
2
  var _ = [
3
3
  "gengage:chat:open",
4
4
  "gengage:chat:close",