@gengage/assistant-fe 0.5.7 → 0.6.0

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 (190) hide show
  1. package/dist/agentic/adaptor/create-adaptor.d.ts +19 -0
  2. package/dist/agentic/adaptor/fetch-bridge.d.ts +11 -0
  3. package/dist/agentic/adaptor/mount.d.ts +38 -0
  4. package/dist/agentic/context/chat-context.d.ts +15 -0
  5. package/dist/agentic/context/context-store.d.ts +20 -0
  6. package/dist/agentic/context/persistence.d.ts +12 -0
  7. package/dist/agentic/events/builders.d.ts +10 -0
  8. package/dist/agentic/events/error-taxonomy.d.ts +27 -0
  9. package/dist/agentic/events/product-normalize.d.ts +47 -0
  10. package/dist/agentic/events/ui-specs.d.ts +37 -0
  11. package/dist/agentic/flow/beauty-consulting-turn.d.ts +1 -0
  12. package/dist/agentic/flow/create-flow.d.ts +2 -0
  13. package/dist/agentic/flow/dispatch.d.ts +3 -0
  14. package/dist/agentic/index.d.ts +18 -0
  15. package/dist/agentic/index.js +620 -0
  16. package/dist/agentic/types.d.ts +212 -0
  17. package/dist/agentic/util/assistant-host.d.ts +11 -0
  18. package/dist/agentic/util/be-url.d.ts +4 -0
  19. package/dist/agentic/util/browser-memory.d.ts +13 -0
  20. package/dist/agentic/util/browser-tools.d.ts +31 -0
  21. package/dist/agentic/util/lazy-runtime-loader.d.ts +9 -0
  22. package/dist/agentic/util/request-text.d.ts +3 -0
  23. package/dist/agentic/util/time.d.ts +2 -0
  24. package/dist/agentic/worker/be-client.d.ts +15 -0
  25. package/dist/agentic/worker/entry.d.ts +2 -0
  26. package/dist/agentic/worker/flow-runner.d.ts +24 -0
  27. package/dist/agentic/worker/jwt-mint.d.ts +21 -0
  28. package/dist/agentic/worker/rpc.d.ts +24 -0
  29. package/dist/agentic/worker/tool-bridge.d.ts +2 -0
  30. package/dist/agentic/worker.d.ts +16 -0
  31. package/dist/agentic/worker.js +119 -0
  32. package/dist/agentic.iife.js +5 -0
  33. package/dist/{api-paths-CwzwbgQZ.js → api-paths-DJFF9RuZ.js} +1 -1
  34. package/dist/beauty-consulting-turn-BmPXbkQg.js +1019 -0
  35. package/dist/chat/api.d.ts +17 -0
  36. package/dist/chat/assistant-mode.d.ts +20 -0
  37. package/dist/chat/attachment-utils.d.ts +9 -0
  38. package/dist/chat/catalog.d.ts +455 -0
  39. package/dist/chat/chat-presentation-state.d.ts +53 -0
  40. package/dist/chat/components/AIGroupingCards.d.ts +15 -0
  41. package/dist/chat/components/AISuggestedSearchCards.d.ts +13 -0
  42. package/dist/chat/components/AITopPicks.d.ts +9 -0
  43. package/dist/chat/components/BeautyPhotoStep.d.ts +31 -0
  44. package/dist/chat/components/CategoriesContainer.d.ts +11 -0
  45. package/dist/chat/components/ChatDrawer.d.ts +362 -0
  46. package/dist/chat/components/ChoicePrompter.d.ts +21 -0
  47. package/dist/chat/components/ComparisonTable.d.ts +66 -0
  48. package/dist/chat/components/ConsultingStylePicker.d.ts +40 -0
  49. package/dist/chat/components/FloatingComparisonButton.d.ts +7 -0
  50. package/dist/chat/components/FloatingLauncher.d.ts +79 -0
  51. package/dist/chat/components/GroundingReviewCard.d.ts +11 -0
  52. package/dist/chat/components/HandoffNotice.d.ts +9 -0
  53. package/dist/chat/components/KvkkBanner.d.ts +6 -0
  54. package/dist/chat/components/Launcher.d.ts +28 -0
  55. package/dist/chat/components/PanelRestoreCard.d.ts +4 -0
  56. package/dist/chat/components/PanelTopBar.d.ts +32 -0
  57. package/dist/chat/components/PhotoAnalysisCard.d.ts +27 -0
  58. package/dist/chat/components/ProductSummaryCard.d.ts +12 -0
  59. package/dist/chat/components/ProsAndCons.d.ts +8 -0
  60. package/dist/chat/components/ReviewHighlights.d.ts +16 -0
  61. package/dist/chat/components/actionClassifier.d.ts +12 -0
  62. package/dist/chat/components/product-price-layout.d.ts +17 -0
  63. package/dist/chat/components/productMentionLinker.d.ts +26 -0
  64. package/dist/chat/components/renderUISpec.d.ts +15 -0
  65. package/dist/chat/components/typewriter.d.ts +24 -0
  66. package/dist/chat/extendedModeManager.d.ts +32 -0
  67. package/dist/chat/features/beauty-consulting/consulting-grid.d.ts +38 -0
  68. package/dist/chat/features/beauty-consulting/drawer-extensions.d.ts +22 -0
  69. package/dist/chat/features/beauty-consulting/mode-controller.d.ts +59 -0
  70. package/dist/chat/features/beauty-consulting/registry.d.ts +9 -0
  71. package/dist/chat/features/beauty-consulting/stream-handler.d.ts +45 -0
  72. package/dist/chat/history-storage.d.ts +85 -0
  73. package/dist/chat/index.d.ts +6 -0
  74. package/dist/chat/kvkk.d.ts +20 -0
  75. package/dist/chat/locales/en.d.ts +2 -0
  76. package/dist/chat/locales/index.d.ts +5 -0
  77. package/dist/chat/locales/tr.d.ts +2 -0
  78. package/dist/chat/panel-manager.d.ts +142 -0
  79. package/dist/chat/runtime.d.ts +416 -0
  80. package/dist/chat/session-persistence.d.ts +73 -0
  81. package/dist/chat/stream-error-display.d.ts +6 -0
  82. package/dist/chat/types.d.ts +547 -0
  83. package/dist/chat/utils/chat-presentation-debug.d.ts +18 -0
  84. package/dist/chat/utils/get-chat-scroll-element.d.ts +10 -0
  85. package/dist/chat/utils/ui.d.ts +10 -0
  86. package/dist/chat-runtime.js +1 -1
  87. package/dist/chat.iife.js +12 -12
  88. package/dist/chat.js +1 -1
  89. package/dist/common/action-router.d.ts +26 -0
  90. package/dist/common/api-paths.d.ts +23 -0
  91. package/dist/common/client.d.ts +27 -0
  92. package/dist/common/communication-bridge.d.ts +51 -0
  93. package/dist/common/config-constants.d.ts +1 -0
  94. package/dist/common/config-schema.d.ts +54 -0
  95. package/dist/common/connection-warning.d.ts +8 -0
  96. package/dist/common/consulting-sources.d.ts +8 -0
  97. package/dist/common/context.d.ts +64 -0
  98. package/dist/common/css-escape.d.ts +1 -0
  99. package/dist/common/customization-factories.d.ts +59 -0
  100. package/dist/common/debug.d.ts +13 -0
  101. package/dist/common/events.d.ts +55 -0
  102. package/dist/common/fastIntent.d.ts +1 -0
  103. package/dist/common/find-similar-payload.d.ts +3 -0
  104. package/dist/common/ga-datalayer.d.ts +80 -0
  105. package/dist/common/global-error-toast.d.ts +6 -0
  106. package/dist/common/index.d.ts +47 -0
  107. package/dist/common/indexed-db.d.ts +89 -0
  108. package/dist/common/locale.d.ts +1 -0
  109. package/dist/common/native-webview.d.ts +60 -0
  110. package/dist/common/navigation.d.ts +1 -0
  111. package/dist/common/overlay.d.ts +172 -0
  112. package/dist/common/page-detect.d.ts +36 -0
  113. package/dist/common/pill-launcher.d.ts +51 -0
  114. package/dist/common/preflight.d.ts +13 -0
  115. package/dist/common/price-formatter.d.ts +35 -0
  116. package/dist/common/product-utils.d.ts +35 -0
  117. package/dist/common/protocol-adapter.d.ts +108 -0
  118. package/dist/common/renderer/dom.d.ts +3 -0
  119. package/dist/common/renderer/index.d.ts +4 -0
  120. package/dist/common/renderer/overrides.d.ts +23 -0
  121. package/dist/common/renderer/registry.d.ts +2 -0
  122. package/dist/common/renderer/types.d.ts +19 -0
  123. package/dist/common/safe-html.d.ts +22 -0
  124. package/dist/common/sdk-version.d.ts +3 -0
  125. package/dist/common/streaming.d.ts +52 -0
  126. package/dist/common/suggested-search-keywords.d.ts +18 -0
  127. package/dist/common/theme-utils.d.ts +15 -0
  128. package/dist/common/transport.d.ts +75 -0
  129. package/dist/common/tts-player.d.ts +13 -0
  130. package/dist/common/types.d.ts +379 -0
  131. package/dist/common/ui-theme.d.ts +9 -0
  132. package/dist/common/uuidv7.d.ts +7 -0
  133. package/dist/common/voice-input.d.ts +74 -0
  134. package/dist/common/widget-base.d.ts +82 -0
  135. package/dist/{common-KpJP1YwP.js → common-BydCGBNn.js} +90 -139
  136. package/dist/common.js +41 -41
  137. package/dist/{connection-warning-B5T_1oBn.js → connection-warning-Pbvk3J8k.js} +1 -1
  138. package/dist/{fastIntent--Ukm2nOh.js → fastIntent-CkYN2UOl.js} +199 -137
  139. package/dist/index.d.ts +25 -0
  140. package/dist/index.js +50 -50
  141. package/dist/native/index.d.ts +2 -0
  142. package/dist/{native-webview-qfjm4SHx.js → native-webview-JDC1vtde.js} +1 -1
  143. package/dist/native.iife.js +14 -14
  144. package/dist/native.js +1 -1
  145. package/dist/{overlay-CP5A0Hhf.js → overlay-BetAvpVZ.js} +19 -19
  146. package/dist/overlay.d.ts +4 -0
  147. package/dist/overlay.js +1 -1
  148. package/dist/qna/api.d.ts +23 -0
  149. package/dist/qna/catalog.d.ts +60 -0
  150. package/dist/qna/components/ButtonRow.d.ts +15 -0
  151. package/dist/qna/components/TextInput.d.ts +11 -0
  152. package/dist/qna/components/renderUISpec.d.ts +7 -0
  153. package/dist/qna/index.d.ts +3 -0
  154. package/dist/qna/locales/en.d.ts +2 -0
  155. package/dist/qna/locales/index.d.ts +4 -0
  156. package/dist/qna/locales/tr.d.ts +2 -0
  157. package/dist/qna/normalize-ui-specs.d.ts +15 -0
  158. package/dist/qna/runtime.d.ts +73 -0
  159. package/dist/qna/types.d.ts +98 -0
  160. package/dist/qna-runtime.js +1 -1
  161. package/dist/qna.iife.js +1 -1
  162. package/dist/qna.js +1 -1
  163. package/dist/{runtime-BPyXOyyp.js → runtime-DbZO1qG5.js} +3 -3
  164. package/dist/{runtime-G3idwfkM.js → runtime-OpNoB3cu.js} +894 -853
  165. package/dist/{runtime-C3yOvNFK.js → runtime-iCLkUjI3.js} +3 -3
  166. package/dist/simbut/index.d.ts +31 -0
  167. package/dist/simbut/locales.d.ts +3 -0
  168. package/dist/simbut/types.d.ts +43 -0
  169. package/dist/{simbut-CiknJI6-.js → simbut-FyXolmZY.js} +1 -1
  170. package/dist/simbut.iife.js +1 -1
  171. package/dist/simbut.js +1 -1
  172. package/dist/simrel/api.d.ts +25 -0
  173. package/dist/simrel/catalog.d.ts +77 -0
  174. package/dist/simrel/components/GroupTabs.d.ts +24 -0
  175. package/dist/simrel/components/ProductCard.d.ts +19 -0
  176. package/dist/simrel/components/ProductGrid.d.ts +17 -0
  177. package/dist/simrel/components/renderUISpec.d.ts +7 -0
  178. package/dist/simrel/index.d.ts +5 -0
  179. package/dist/simrel/locales/en.d.ts +2 -0
  180. package/dist/simrel/locales/index.d.ts +4 -0
  181. package/dist/simrel/locales/tr.d.ts +2 -0
  182. package/dist/simrel/renderers/default.d.ts +41 -0
  183. package/dist/simrel/runtime.d.ts +68 -0
  184. package/dist/simrel/types.d.ts +145 -0
  185. package/dist/{simrel-C1YN71aW.js → simrel-CbLe5OAr.js} +1 -1
  186. package/dist/simrel-runtime.js +1 -1
  187. package/dist/simrel.iife.js +1 -1
  188. package/dist/simrel.js +2 -2
  189. package/dist/{widget-base-UmvgIqDk.js → widget-base-COP8QwU3.js} +1 -1
  190. package/package.json +20 -6
package/dist/index.js CHANGED
@@ -1,75 +1,75 @@
1
- import { d as a, f as t, h as r, m as i, n as s, t as n } from "./api-paths-CwzwbgQZ.js";
1
+ import { d as a, f as t, h as r, m as i, n as s, t as n } from "./api-paths-DJFF9RuZ.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-UmvgIqDk.js";
4
- import { c as E, n as y, o as G, s as T, t as W } from "./runtime-G3idwfkM.js";
5
- import { i as w, n as N, o as O, r as v } from "./fastIntent--Ukm2nOh.js";
6
- import { t as P } from "./connection-warning-B5T_1oBn.js";
7
- import { a as L, i as Q, n as B, r as F, t as V } from "./runtime-BPyXOyyp.js";
8
- import { a as x, i as M, n as H, r as K, t as z } from "./runtime-C3yOvNFK.js";
9
- import { n as j } from "./simrel-C1YN71aW.js";
10
- import { n as J, t as X } from "./simbut-CiknJI6-.js";
11
- import { i as $, n as ee, r as ae, t as te } from "./overlay-CP5A0Hhf.js";
12
- import { a as ie, i as se, n as ne, r as oe } from "./native-webview-qfjm4SHx.js";
13
- import { a as me, c as pe, d as de, f as ge, h as le, i as fe, l as ue, m as Se, n as Ue, o as Ce, p as Ie, r as Re, s as he, t as Ae, u as Ee } from "./common-KpJP1YwP.js";
3
+ import { d as S, f as U, n as C, p as I, r as R, u as h } from "./widget-base-COP8QwU3.js";
4
+ import { c as E, n as y, o as G, s as T, t as W } from "./runtime-OpNoB3cu.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-CkYN2UOl.js";
6
+ import { t as F } from "./connection-warning-Pbvk3J8k.js";
7
+ import { a as b, i as x, n as M, r as H, t as K } from "./runtime-DbZO1qG5.js";
8
+ import { a as Z, i as j, n as q, r as J, t as X } from "./runtime-iCLkUjI3.js";
9
+ import { n as $ } from "./simrel-CbLe5OAr.js";
10
+ import { n as ae, t as te } from "./simbut-FyXolmZY.js";
11
+ import { i as ie, n as se, r as ne, t as oe } from "./overlay-BetAvpVZ.js";
12
+ import { a as me, i as pe, n as de, r as ge } from "./native-webview-JDC1vtde.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-BydCGBNn.js";
14
14
  export {
15
- de as AccountRuntimeConfigSchema,
15
+ Ie as AccountRuntimeConfigSchema,
16
16
  h as BASE_WIDGET_THEME,
17
- Ce as DEFAULT_CUSTOMIZATION_LOCALE,
17
+ w as DEFAULT_CUSTOMIZATION_LOCALE,
18
18
  U as DEFAULT_WIDGET_THEME_TOKENS,
19
19
  C as GENGAGE_BUILD_FLAVOR,
20
20
  R as GENGAGE_VERSION,
21
21
  W as GengageChat,
22
- V as GengageQNA,
23
- X as GengageSimBut,
24
- z as GengageSimRel,
25
- ge as UnknownActionPolicySchema,
26
- v as VoiceInput,
27
- ne as applyNativeSession,
22
+ K as GengageQNA,
23
+ te as GengageSimBut,
24
+ X as GengageSimRel,
25
+ he as UnknownActionPolicySchema,
26
+ L as VoiceInput,
27
+ de as applyNativeSession,
28
28
  Ae as autoDetectPageContext,
29
29
  f as bootstrapSession,
30
30
  n as buildChatEndpointUrl,
31
- te as buildOverlayIdempotencyKey,
32
- P as configureConnectionWarning,
31
+ oe as buildOverlayIdempotencyKey,
32
+ F as configureConnectionWarning,
33
33
  a as consumeStream,
34
- he as createAccountIdentity,
34
+ k as createAccountIdentity,
35
35
  y as createChatWidget,
36
- Ie as createDefaultAccountRuntimeConfig,
36
+ ue as createDefaultAccountRuntimeConfig,
37
37
  G as createDefaultChatUISpecRegistry,
38
- F as createDefaultQnaUISpecRegistry,
39
- K as createDefaultSimRelUISpecRegistry,
40
- pe as createFloatingChatConfig,
41
- oe as createNativeWebViewBridge,
42
- ue as createPdpQnaConfig,
43
- Ee as createPdpSimRelConfig,
44
- B as createQNAWidget,
45
- J as createSimButWidget,
46
- j as createSimRelRenderer,
47
- H as createSimRelWidget,
38
+ H as createDefaultQnaUISpecRegistry,
39
+ J as createDefaultSimRelUISpecRegistry,
40
+ Q as createFloatingChatConfig,
41
+ ge as createNativeWebViewBridge,
42
+ N as createPdpQnaConfig,
43
+ _ as createPdpSimRelConfig,
44
+ M as createQNAWidget,
45
+ ae as createSimButWidget,
46
+ $ as createSimRelRenderer,
47
+ q as createSimRelWidget,
48
48
  T as defaultChatUnknownUISpecRenderer,
49
- Q as defaultQnaUnknownUISpecRenderer,
50
- M as defaultSimRelUnknownUISpecRenderer,
49
+ x as defaultQnaUnknownUISpecRenderer,
50
+ j as defaultSimRelUnknownUISpecRenderer,
51
51
  i as defaultUnknownUISpecRenderer,
52
- ee as destroyOverlayWidgets,
53
- se as detectNativeEnvironment,
54
- Ue as detectPageType,
52
+ se as destroyOverlayWidgets,
53
+ pe as detectNativeEnvironment,
54
+ Ce as detectPageType,
55
55
  c as dispatch,
56
56
  Re as extractSkuFromUrl,
57
- ae as getOverlayWidgets,
58
- fe as initGengageClient,
59
- ie as initNativeOverlayWidgets,
60
- $ as initOverlayWidgets,
61
- w as isVoiceInputSupported,
57
+ ne as getOverlayWidgets,
58
+ Se as initGengageClient,
59
+ me as initNativeOverlayWidgets,
60
+ ie as initOverlayWidgets,
61
+ v as isVoiceInputSupported,
62
62
  g as listen,
63
- N as makePillLauncher,
63
+ P as makePillLauncher,
64
64
  s as normalizeMiddlewareUrl,
65
- Se as parseAccountRuntimeConfig,
66
- me as preflightDiagnostics,
65
+ Ue as parseAccountRuntimeConfig,
66
+ fe as preflightDiagnostics,
67
67
  E as renderChatUISpec,
68
- L as renderQnaUISpec,
69
- x as renderSimRelUISpec,
68
+ b as renderQnaUISpec,
69
+ Z as renderSimRelUISpec,
70
70
  r as renderUISpecWithRegistry,
71
71
  O as routeStreamAction,
72
- le as safeParseAccountRuntimeConfig,
72
+ Ee as safeParseAccountRuntimeConfig,
73
73
  t as streamPost,
74
74
  p as updatePageContext,
75
75
  d as wireGADataLayer,
@@ -0,0 +1,2 @@
1
+ export { DEFAULT_NATIVE_TRACKED_EVENTS, detectNativeEnvironment, applyNativeSession, createNativeWebViewBridge, initNativeOverlayWidgets, } from '../common/native-webview.js';
2
+ export type { NativeBridgeEnvironment, NativeSessionPayload, NativeBridgeMessage, NativeInboundMessage, NativeTrackedEvent, NativeWebViewBridgeOptions, NativeWebViewBridge, NativeOverlayInitOptions, NativeOverlayInitResult, } from '../common/native-webview.js';
@@ -1,4 +1,4 @@
1
- import { i as k } from "./overlay-CP5A0Hhf.js";
1
+ import { i as k } from "./overlay-BetAvpVZ.js";
2
2
  var _ = [
3
3
  "gengage:chat:open",
4
4
  "gengage:chat:close",