@gengage/assistant-fe 0.6.35 → 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.
- package/dist/chat/components/ChatDrawer.d.ts +2 -2
- package/dist/chat/components/KvkkBanner.d.ts +0 -2
- package/dist/chat/kvkk.d.ts +11 -5
- package/dist/chat-runtime.js +1 -1
- package/dist/chat.iife.js +11 -11
- package/dist/chat.js +1 -1
- package/dist/{common-C-lXfS-s.js → common-ByXFSuDh.js} +1 -1
- package/dist/common.js +5 -5
- package/dist/{connection-warning-DrXU9qN9.js → connection-warning-ChSjBT_4.js} +1 -1
- package/dist/{fastIntent-Diz6Vo0W.js → fastIntent-B9AE8K30.js} +1 -1
- package/dist/index.js +10 -10
- package/dist/native.iife.js +9 -9
- package/dist/qna-runtime.js +1 -1
- package/dist/qna.iife.js +1 -1
- package/dist/qna.js +1 -1
- package/dist/{request-response-cache-DmnzO4Hu.js → request-response-cache-D6O2m-O-.js} +1 -1
- package/dist/{runtime-CiO-HX8B.js → runtime-CCQGaWOq.js} +3 -3
- package/dist/{runtime-D0v-KyzN.js → runtime-YKSfwMAr.js} +386 -392
- package/dist/{runtime-hci1VRsa.js → runtime-aR-A6Jh2.js} +3 -3
- package/dist/{simbut-D-IPkTT8.js → simbut-BCKrXmkh.js} +1 -1
- package/dist/simbut.iife.js +1 -1
- package/dist/simbut.js +1 -1
- package/dist/{simrel-BjMCvCdo.js → simrel-CSlprSEe.js} +1 -1
- package/dist/simrel-runtime.js +1 -1
- package/dist/simrel.iife.js +1 -1
- package/dist/simrel.js +2 -2
- package/dist/{widget-base-_HBDf5VH.js → widget-base-CmxCHKJi.js} +1 -1
- package/package.json +1 -1
|
@@ -178,9 +178,9 @@ export declare class ChatDrawer {
|
|
|
178
178
|
description?: string;
|
|
179
179
|
}>): void;
|
|
180
180
|
focusInput(): void;
|
|
181
|
-
showKvkkBanner(html: string
|
|
181
|
+
showKvkkBanner(html: string): void;
|
|
182
182
|
hideKvkkBanner(): void;
|
|
183
|
-
/** True when the KVKK
|
|
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. */
|
package/dist/chat/kvkk.d.ts
CHANGED
|
@@ -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
|
|
8
|
-
* 3. Mark it as shown in localStorage to avoid repeat
|
|
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
|
|
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 {};
|
package/dist/chat-runtime.js
CHANGED
|
@@ -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-
|
|
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,
|