@gengage/assistant-fe 0.6.34 → 0.6.36

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 (100) hide show
  1. package/dist/chat/components/ChatDrawer.d.ts +2 -2
  2. package/dist/chat/components/KvkkBanner.d.ts +0 -2
  3. package/dist/chat/kvkk.d.ts +11 -5
  4. package/dist/chat-runtime.js +1 -1
  5. package/dist/chat.iife.js +11 -11
  6. package/dist/chat.js +1 -1
  7. package/dist/common/index.d.ts +2 -1
  8. package/dist/{common-CB1Vjd-T.js → common-ByXFSuDh.js} +1 -1
  9. package/dist/common.js +68 -67
  10. package/dist/{connection-warning-DBE8pkFv.js → connection-warning-ChSjBT_4.js} +1 -1
  11. package/dist/{fastIntent-D9jYpC8V.js → fastIntent-B9AE8K30.js} +1 -1
  12. package/dist/index.js +21 -21
  13. package/dist/native.iife.js +9 -9
  14. package/dist/qna-runtime.js +1 -1
  15. package/dist/qna.iife.js +1 -1
  16. package/dist/qna.js +1 -1
  17. package/dist/request-response-cache-D6O2m-O-.js +1426 -0
  18. package/dist/{runtime-By-msZ8j.js → runtime-CCQGaWOq.js} +198 -199
  19. package/dist/{runtime-DyG44pqo.js → runtime-YKSfwMAr.js} +415 -422
  20. package/dist/{runtime-CABcQc-L.js → runtime-aR-A6Jh2.js} +8 -9
  21. package/dist/{simbut-CsQSH5vN.js → simbut-BCKrXmkh.js} +1 -1
  22. package/dist/simbut.iife.js +1 -1
  23. package/dist/simbut.js +1 -1
  24. package/dist/{simrel-bxdmsMmZ.js → simrel-CSlprSEe.js} +1 -1
  25. package/dist/simrel-runtime.js +1 -1
  26. package/dist/simrel.iife.js +1 -1
  27. package/dist/simrel.js +2 -2
  28. package/dist/{widget-base-C_RZ-VIr.js → widget-base-CmxCHKJi.js} +1 -1
  29. package/package.json +3 -19
  30. package/dist/agent-ui-steps-DIWmTMuV.js +0 -3199
  31. package/dist/agentic/adaptor/create-adaptor.d.ts +0 -22
  32. package/dist/agentic/adaptor/fetch-bridge.d.ts +0 -31
  33. package/dist/agentic/adaptor/mount.d.ts +0 -45
  34. package/dist/agentic/algos/similarity.d.ts +0 -86
  35. package/dist/agentic/algos/similarity.js +0 -261
  36. package/dist/agentic/context/chat-context.d.ts +0 -17
  37. package/dist/agentic/context/context-store.d.ts +0 -57
  38. package/dist/agentic/context/persistence.d.ts +0 -14
  39. package/dist/agentic/contracts/agentic-contracts.d.ts +0 -133
  40. package/dist/agentic/debug/activity-collector.d.ts +0 -15
  41. package/dist/agentic/debug/activity-instrumentation.d.ts +0 -22
  42. package/dist/agentic/debug/activity-overlay.d.ts +0 -3
  43. package/dist/agentic/debug/activity-state.d.ts +0 -37
  44. package/dist/agentic/debug/local-dev.d.ts +0 -18
  45. package/dist/agentic/events/builders.d.ts +0 -10
  46. package/dist/agentic/events/comparison.d.ts +0 -6
  47. package/dist/agentic/events/context-products.d.ts +0 -6
  48. package/dist/agentic/events/error-taxonomy.d.ts +0 -27
  49. package/dist/agentic/events/product-normalize.d.ts +0 -50
  50. package/dist/agentic/events/ui-specs.d.ts +0 -41
  51. package/dist/agentic/flow/create-flow.d.ts +0 -2
  52. package/dist/agentic/flow/dispatch.d.ts +0 -3
  53. package/dist/agentic/index.d.ts +0 -65
  54. package/dist/agentic/index.js +0 -3493
  55. package/dist/agentic/types.d.ts +0 -360
  56. package/dist/agentic/util/account-config.d.ts +0 -8
  57. package/dist/agentic/util/assistant-host.d.ts +0 -11
  58. package/dist/agentic/util/be-url.d.ts +0 -4
  59. package/dist/agentic/util/browser-memory.d.ts +0 -13
  60. package/dist/agentic/util/browser-tools.d.ts +0 -31
  61. package/dist/agentic/util/cache-key.d.ts +0 -15
  62. package/dist/agentic/util/common/declarative-cache.d.ts +0 -21
  63. package/dist/agentic/util/common/fallback-status.d.ts +0 -10
  64. package/dist/agentic/util/common/flow-steps.d.ts +0 -8
  65. package/dist/agentic/util/common/gss-tool-aliases.d.ts +0 -66
  66. package/dist/agentic/util/common/iframe-scraper.d.ts +0 -22
  67. package/dist/agentic/util/common/llm-routing.d.ts +0 -50
  68. package/dist/agentic/util/common/object.d.ts +0 -1
  69. package/dist/agentic/util/common/open-product-page.d.ts +0 -30
  70. package/dist/agentic/util/common/panel-context.d.ts +0 -3
  71. package/dist/agentic/util/common/privacy.d.ts +0 -14
  72. package/dist/agentic/util/common/product-resolver.d.ts +0 -20
  73. package/dist/agentic/util/common/product-surface.d.ts +0 -24
  74. package/dist/agentic/util/common/ref-store.d.ts +0 -15
  75. package/dist/agentic/util/common/retail-privacy.d.ts +0 -4
  76. package/dist/agentic/util/common/route-params.d.ts +0 -3
  77. package/dist/agentic/util/common/similarity-ranking.d.ts +0 -2
  78. package/dist/agentic/util/common/site-awareness.d.ts +0 -130
  79. package/dist/agentic/util/lazy-runtime-loader.d.ts +0 -10
  80. package/dist/agentic/util/privacy.d.ts +0 -12
  81. package/dist/agentic/util/request-text.d.ts +0 -3
  82. package/dist/agentic/util/time.d.ts +0 -2
  83. package/dist/agentic/widgets/endpoints.d.ts +0 -12
  84. package/dist/agentic/worker/agent-ui-steps.d.ts +0 -43
  85. package/dist/agentic/worker/agent-ui.d.ts +0 -44
  86. package/dist/agentic/worker/be-client.d.ts +0 -32
  87. package/dist/agentic/worker/coalesce.d.ts +0 -25
  88. package/dist/agentic/worker/compaction.d.ts +0 -12
  89. package/dist/agentic/worker/entry.d.ts +0 -2
  90. package/dist/agentic/worker/flow-runner.d.ts +0 -24
  91. package/dist/agentic/worker/jwt-mint.d.ts +0 -21
  92. package/dist/agentic/worker/pdp-hydrate.d.ts +0 -30
  93. package/dist/agentic/worker/rpc.d.ts +0 -47
  94. package/dist/agentic/worker/tool-bridge.d.ts +0 -2
  95. package/dist/agentic/worker/tool-schema.d.ts +0 -19
  96. package/dist/agentic/worker.d.ts +0 -52
  97. package/dist/agentic/worker.js +0 -432
  98. package/dist/agentic.iife.js +0 -445
  99. package/dist/api-paths-DZQ4Xx7u.js +0 -1274
  100. package/dist/request-response-cache-BxRsKGJ0.js +0 -154
@@ -178,9 +178,9 @@ export declare class ChatDrawer {
178
178
  description?: string;
179
179
  }>): void;
180
180
  focusInput(): void;
181
- showKvkkBanner(html: string, onDismiss: () => void): void;
181
+ showKvkkBanner(html: string): void;
182
182
  hideKvkkBanner(): void;
183
- /** True when the KVKK banner is mounted (user has not dismissed it yet). */
183
+ /** True when the KVKK notice is mounted above the transcript. */
184
184
  isKvkkBannerVisible(): boolean;
185
185
  getElement(): HTMLElement;
186
186
  /** Opens the hidden file picker used by the attachment flow. */
@@ -1,6 +1,4 @@
1
1
  export interface KvkkBannerOptions {
2
2
  htmlContent: string;
3
- onDismiss: () => void;
4
- closeAriaLabel?: string;
5
3
  }
6
4
  export declare function createKvkkBanner(options: KvkkBannerOptions): HTMLElement;
@@ -4,17 +4,23 @@
4
4
  * KVKK (Kişisel Verilerin Korunması Kanunu) is Turkey's data protection law.
5
5
  * When the backend streams a response containing a KVKK notice, we:
6
6
  * 1. Strip the KVKK block from the visible bot text
7
- * 2. Show a banner on first encounter (per account)
8
- * 3. Mark it as shown in localStorage to avoid repeat banners
7
+ * 2. Show a lightweight notice on first encounter (per account)
8
+ * 3. Mark it as shown in localStorage to avoid repeat notices
9
9
  */
10
+ interface KvkkBlockOptions {
11
+ fallbackToFirstBlock?: boolean;
12
+ }
10
13
  export declare function containsKvkk(html: string): boolean;
11
14
  export declare function isKvkkShown(accountId: string): boolean;
12
15
  export declare function markKvkkShown(accountId: string): void;
13
16
  /**
14
17
  * Strip the KVKK portion from bot HTML.
15
- * KVKK is typically wrapped in a `<div style="...">` at the start.
18
+ * KVKK is typically wrapped in a leading block element.
16
19
  * We remove the first block-level element that contains a KVKK marker.
20
+ * Explicit backend KVKK events may omit marker words, so callers can fall
21
+ * back to the leading block while marker fallback remains strict.
17
22
  */
18
- export declare function stripKvkkBlock(html: string): string;
19
- export declare function extractKvkkBlock(html: string): string | null;
23
+ export declare function stripKvkkBlock(html: string, options?: KvkkBlockOptions): string;
24
+ export declare function extractKvkkBlock(html: string, options?: KvkkBlockOptions): string | null;
20
25
  export declare function localeToOutputLanguage(locale?: string): string;
26
+ export {};
@@ -1,4 +1,4 @@
1
- import { c as e, d as t, f as r, i as s, l as n, n as i, r as l, s as C, t as c, u as d } from "./runtime-DyG44pqo.js";
1
+ import { c as e, d as t, f as r, i as s, l as n, n as i, r as l, s as C, t as c, u as d } from "./runtime-YKSfwMAr.js";
2
2
  export {
3
3
  d as CHAT_SCROLL_ELEMENT_ID,
4
4
  s as ChatPresentationState,