@iblai/iblai-js 2.30.0 → 2.32.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.
- package/dist/data-layer/playwright/chat-privacy-helpers.d.ts +9 -9
- package/dist/playwright/index.cjs +15 -15
- package/dist/playwright/index.cjs.map +1 -1
- package/dist/playwright/index.d.ts +9 -9
- package/dist/playwright/index.esm.js +15 -15
- package/dist/playwright/index.esm.js.map +1 -1
- package/dist/playwright/playwright/chat-privacy-helpers.d.ts +9 -9
- package/dist/security/playwright/chat-privacy-helpers.d.ts +9 -9
- package/dist/web-containers/playwright/chat-privacy-helpers.d.ts +9 -9
- package/dist/web-containers/source/index.esm.js +1474 -407
- package/dist/web-containers/source/next/index.esm.js +1208 -252
- package/dist/web-utils/playwright/chat-privacy-helpers.d.ts +9 -9
- package/package.json +4 -4
|
@@ -5,8 +5,8 @@ import { Locator, Page } from '@playwright/test';
|
|
|
5
5
|
* Three surfaces, three groups of helpers:
|
|
6
6
|
*
|
|
7
7
|
* 1. **Header toggle** — the nav-bar `ChatPrivacyToggle` (`<HatGlasses />`
|
|
8
|
-
* icon-button that morphs into the "
|
|
9
|
-
* 2. **User profile** — the "
|
|
8
|
+
* icon-button that morphs into the "Incognito" pill).
|
|
9
|
+
* 2. **User profile** — the "Privacy" tab in `UserProfileModal`
|
|
10
10
|
* (three radio-card options: Normal / Anonymized / Disabled).
|
|
11
11
|
* 3. **Tenant admin** — the "Allow users to control chat privacy" row in
|
|
12
12
|
* the Advanced settings tab (`<Switch>`).
|
|
@@ -20,21 +20,21 @@ import { Locator, Page } from '@playwright/test';
|
|
|
20
20
|
export declare const CHAT_PRIVACY_LABELS: {
|
|
21
21
|
readonly toggle: {
|
|
22
22
|
/** Title of the mid-session confirmation dialog. */
|
|
23
|
-
readonly dialogTitle: "Enable
|
|
23
|
+
readonly dialogTitle: "Enable Incognito for this chat?";
|
|
24
24
|
/** Label on the dialog's confirm button (matches both idle + busy state via regex). */
|
|
25
25
|
readonly dialogConfirm: RegExp;
|
|
26
26
|
};
|
|
27
27
|
readonly profileTab: {
|
|
28
|
-
/**
|
|
29
|
-
readonly tabName: "
|
|
28
|
+
/** Rail entry in the user profile modal (the feature inside is called Incognito). */
|
|
29
|
+
readonly tabName: "Privacy";
|
|
30
30
|
/** Section heading inside the tab body. */
|
|
31
|
-
readonly sectionHeading: "Default
|
|
31
|
+
readonly sectionHeading: "Default Incognito Setting";
|
|
32
32
|
/** Label text on each radio card. Kept in case the test wants to assert
|
|
33
33
|
* copy explicitly — the click + read paths use the testid instead. */
|
|
34
34
|
readonly cards: {
|
|
35
35
|
readonly normal: "Normal";
|
|
36
36
|
readonly anonymized: "Anonymized";
|
|
37
|
-
readonly disabled: "
|
|
37
|
+
readonly disabled: "Incognito";
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
readonly tenantToggle: {
|
|
@@ -85,7 +85,7 @@ export declare function expectChatPrivacyConfirmDialogOpen(scope: Page | Locator
|
|
|
85
85
|
/**
|
|
86
86
|
* Mid-conversation enable flow:
|
|
87
87
|
* 1. Click the toggle (opens the confirm dialog).
|
|
88
|
-
* 2. Click the "Enable
|
|
88
|
+
* 2. Click the "Enable Incognito" action.
|
|
89
89
|
* The session-level disable-chathistory POST is one-way per spec; the
|
|
90
90
|
* helper resolves once the dialog closes after a successful confirm.
|
|
91
91
|
*/
|
|
@@ -93,7 +93,7 @@ export declare function confirmEnableChatPrivacyMidSession(scope: Page | Locator
|
|
|
93
93
|
/** Cancel the confirm dialog without enabling. */
|
|
94
94
|
export declare function cancelEnableChatPrivacyMidSession(scope: Page | Locator): Promise<void>;
|
|
95
95
|
/**
|
|
96
|
-
* Switch to the
|
|
96
|
+
* Switch to the Privacy tab inside the user profile modal. Assumes
|
|
97
97
|
* the modal is already open. The tab only appears when the tenant has
|
|
98
98
|
* `allow_user_chat_privacy_control` on, so a `false` return from
|
|
99
99
|
* `isPrivateModeTabVisible` is a meaningful state, not an error.
|
|
@@ -5,8 +5,8 @@ import { Locator, Page } from '@playwright/test';
|
|
|
5
5
|
* Three surfaces, three groups of helpers:
|
|
6
6
|
*
|
|
7
7
|
* 1. **Header toggle** — the nav-bar `ChatPrivacyToggle` (`<HatGlasses />`
|
|
8
|
-
* icon-button that morphs into the "
|
|
9
|
-
* 2. **User profile** — the "
|
|
8
|
+
* icon-button that morphs into the "Incognito" pill).
|
|
9
|
+
* 2. **User profile** — the "Privacy" tab in `UserProfileModal`
|
|
10
10
|
* (three radio-card options: Normal / Anonymized / Disabled).
|
|
11
11
|
* 3. **Tenant admin** — the "Allow users to control chat privacy" row in
|
|
12
12
|
* the Advanced settings tab (`<Switch>`).
|
|
@@ -20,21 +20,21 @@ import { Locator, Page } from '@playwright/test';
|
|
|
20
20
|
export declare const CHAT_PRIVACY_LABELS: {
|
|
21
21
|
readonly toggle: {
|
|
22
22
|
/** Title of the mid-session confirmation dialog. */
|
|
23
|
-
readonly dialogTitle: "Enable
|
|
23
|
+
readonly dialogTitle: "Enable Incognito for this chat?";
|
|
24
24
|
/** Label on the dialog's confirm button (matches both idle + busy state via regex). */
|
|
25
25
|
readonly dialogConfirm: RegExp;
|
|
26
26
|
};
|
|
27
27
|
readonly profileTab: {
|
|
28
|
-
/**
|
|
29
|
-
readonly tabName: "
|
|
28
|
+
/** Rail entry in the user profile modal (the feature inside is called Incognito). */
|
|
29
|
+
readonly tabName: "Privacy";
|
|
30
30
|
/** Section heading inside the tab body. */
|
|
31
|
-
readonly sectionHeading: "Default
|
|
31
|
+
readonly sectionHeading: "Default Incognito Setting";
|
|
32
32
|
/** Label text on each radio card. Kept in case the test wants to assert
|
|
33
33
|
* copy explicitly — the click + read paths use the testid instead. */
|
|
34
34
|
readonly cards: {
|
|
35
35
|
readonly normal: "Normal";
|
|
36
36
|
readonly anonymized: "Anonymized";
|
|
37
|
-
readonly disabled: "
|
|
37
|
+
readonly disabled: "Incognito";
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
readonly tenantToggle: {
|
|
@@ -85,7 +85,7 @@ export declare function expectChatPrivacyConfirmDialogOpen(scope: Page | Locator
|
|
|
85
85
|
/**
|
|
86
86
|
* Mid-conversation enable flow:
|
|
87
87
|
* 1. Click the toggle (opens the confirm dialog).
|
|
88
|
-
* 2. Click the "Enable
|
|
88
|
+
* 2. Click the "Enable Incognito" action.
|
|
89
89
|
* The session-level disable-chathistory POST is one-way per spec; the
|
|
90
90
|
* helper resolves once the dialog closes after a successful confirm.
|
|
91
91
|
*/
|
|
@@ -93,7 +93,7 @@ export declare function confirmEnableChatPrivacyMidSession(scope: Page | Locator
|
|
|
93
93
|
/** Cancel the confirm dialog without enabling. */
|
|
94
94
|
export declare function cancelEnableChatPrivacyMidSession(scope: Page | Locator): Promise<void>;
|
|
95
95
|
/**
|
|
96
|
-
* Switch to the
|
|
96
|
+
* Switch to the Privacy tab inside the user profile modal. Assumes
|
|
97
97
|
* the modal is already open. The tab only appears when the tenant has
|
|
98
98
|
* `allow_user_chat_privacy_control` on, so a `false` return from
|
|
99
99
|
* `isPrivateModeTabVisible` is a meaningful state, not an error.
|
|
@@ -5,8 +5,8 @@ import { Locator, Page } from '@playwright/test';
|
|
|
5
5
|
* Three surfaces, three groups of helpers:
|
|
6
6
|
*
|
|
7
7
|
* 1. **Header toggle** — the nav-bar `ChatPrivacyToggle` (`<HatGlasses />`
|
|
8
|
-
* icon-button that morphs into the "
|
|
9
|
-
* 2. **User profile** — the "
|
|
8
|
+
* icon-button that morphs into the "Incognito" pill).
|
|
9
|
+
* 2. **User profile** — the "Privacy" tab in `UserProfileModal`
|
|
10
10
|
* (three radio-card options: Normal / Anonymized / Disabled).
|
|
11
11
|
* 3. **Tenant admin** — the "Allow users to control chat privacy" row in
|
|
12
12
|
* the Advanced settings tab (`<Switch>`).
|
|
@@ -20,21 +20,21 @@ import { Locator, Page } from '@playwright/test';
|
|
|
20
20
|
export declare const CHAT_PRIVACY_LABELS: {
|
|
21
21
|
readonly toggle: {
|
|
22
22
|
/** Title of the mid-session confirmation dialog. */
|
|
23
|
-
readonly dialogTitle: "Enable
|
|
23
|
+
readonly dialogTitle: "Enable Incognito for this chat?";
|
|
24
24
|
/** Label on the dialog's confirm button (matches both idle + busy state via regex). */
|
|
25
25
|
readonly dialogConfirm: RegExp;
|
|
26
26
|
};
|
|
27
27
|
readonly profileTab: {
|
|
28
|
-
/**
|
|
29
|
-
readonly tabName: "
|
|
28
|
+
/** Rail entry in the user profile modal (the feature inside is called Incognito). */
|
|
29
|
+
readonly tabName: "Privacy";
|
|
30
30
|
/** Section heading inside the tab body. */
|
|
31
|
-
readonly sectionHeading: "Default
|
|
31
|
+
readonly sectionHeading: "Default Incognito Setting";
|
|
32
32
|
/** Label text on each radio card. Kept in case the test wants to assert
|
|
33
33
|
* copy explicitly — the click + read paths use the testid instead. */
|
|
34
34
|
readonly cards: {
|
|
35
35
|
readonly normal: "Normal";
|
|
36
36
|
readonly anonymized: "Anonymized";
|
|
37
|
-
readonly disabled: "
|
|
37
|
+
readonly disabled: "Incognito";
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
readonly tenantToggle: {
|
|
@@ -85,7 +85,7 @@ export declare function expectChatPrivacyConfirmDialogOpen(scope: Page | Locator
|
|
|
85
85
|
/**
|
|
86
86
|
* Mid-conversation enable flow:
|
|
87
87
|
* 1. Click the toggle (opens the confirm dialog).
|
|
88
|
-
* 2. Click the "Enable
|
|
88
|
+
* 2. Click the "Enable Incognito" action.
|
|
89
89
|
* The session-level disable-chathistory POST is one-way per spec; the
|
|
90
90
|
* helper resolves once the dialog closes after a successful confirm.
|
|
91
91
|
*/
|
|
@@ -93,7 +93,7 @@ export declare function confirmEnableChatPrivacyMidSession(scope: Page | Locator
|
|
|
93
93
|
/** Cancel the confirm dialog without enabling. */
|
|
94
94
|
export declare function cancelEnableChatPrivacyMidSession(scope: Page | Locator): Promise<void>;
|
|
95
95
|
/**
|
|
96
|
-
* Switch to the
|
|
96
|
+
* Switch to the Privacy tab inside the user profile modal. Assumes
|
|
97
97
|
* the modal is already open. The tab only appears when the tenant has
|
|
98
98
|
* `allow_user_chat_privacy_control` on, so a `false` return from
|
|
99
99
|
* `isPrivateModeTabVisible` is a meaningful state, not an error.
|