@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.
@@ -1235,8 +1235,8 @@ declare function expectOutputFilterEnabled(scope: Page | Locator, enabled: boole
1235
1235
  * Three surfaces, three groups of helpers:
1236
1236
  *
1237
1237
  * 1. **Header toggle** — the nav-bar `ChatPrivacyToggle` (`<HatGlasses />`
1238
- * icon-button that morphs into the "Private Mode" pill).
1239
- * 2. **User profile** — the "Private Mode" tab in `UserProfileModal`
1238
+ * icon-button that morphs into the "Incognito" pill).
1239
+ * 2. **User profile** — the "Privacy" tab in `UserProfileModal`
1240
1240
  * (three radio-card options: Normal / Anonymized / Disabled).
1241
1241
  * 3. **Tenant admin** — the "Allow users to control chat privacy" row in
1242
1242
  * the Advanced settings tab (`<Switch>`).
@@ -1250,21 +1250,21 @@ declare function expectOutputFilterEnabled(scope: Page | Locator, enabled: boole
1250
1250
  declare const CHAT_PRIVACY_LABELS: {
1251
1251
  readonly toggle: {
1252
1252
  /** Title of the mid-session confirmation dialog. */
1253
- readonly dialogTitle: "Enable Private Mode for this chat?";
1253
+ readonly dialogTitle: "Enable Incognito for this chat?";
1254
1254
  /** Label on the dialog's confirm button (matches both idle + busy state via regex). */
1255
1255
  readonly dialogConfirm: RegExp;
1256
1256
  };
1257
1257
  readonly profileTab: {
1258
- /** Tab name in the user profile modal sidebar. */
1259
- readonly tabName: "Private Mode";
1258
+ /** Rail entry in the user profile modal (the feature inside is called Incognito). */
1259
+ readonly tabName: "Privacy";
1260
1260
  /** Section heading inside the tab body. */
1261
- readonly sectionHeading: "Default Private Mode";
1261
+ readonly sectionHeading: "Default Incognito Setting";
1262
1262
  /** Label text on each radio card. Kept in case the test wants to assert
1263
1263
  * copy explicitly — the click + read paths use the testid instead. */
1264
1264
  readonly cards: {
1265
1265
  readonly normal: "Normal";
1266
1266
  readonly anonymized: "Anonymized";
1267
- readonly disabled: "Disabled";
1267
+ readonly disabled: "Incognito";
1268
1268
  };
1269
1269
  };
1270
1270
  readonly tenantToggle: {
@@ -1315,7 +1315,7 @@ declare function expectChatPrivacyConfirmDialogOpen(scope: Page | Locator, open:
1315
1315
  /**
1316
1316
  * Mid-conversation enable flow:
1317
1317
  * 1. Click the toggle (opens the confirm dialog).
1318
- * 2. Click the "Enable Private Mode" action.
1318
+ * 2. Click the "Enable Incognito" action.
1319
1319
  * The session-level disable-chathistory POST is one-way per spec; the
1320
1320
  * helper resolves once the dialog closes after a successful confirm.
1321
1321
  */
@@ -1323,7 +1323,7 @@ declare function confirmEnableChatPrivacyMidSession(scope: Page | Locator): Prom
1323
1323
  /** Cancel the confirm dialog without enabling. */
1324
1324
  declare function cancelEnableChatPrivacyMidSession(scope: Page | Locator): Promise<void>;
1325
1325
  /**
1326
- * Switch to the Private Mode tab inside the user profile modal. Assumes
1326
+ * Switch to the Privacy tab inside the user profile modal. Assumes
1327
1327
  * the modal is already open. The tab only appears when the tenant has
1328
1328
  * `allow_user_chat_privacy_control` on, so a `false` return from
1329
1329
  * `isPrivateModeTabVisible` is a meaningful state, not an error.
@@ -4068,8 +4068,8 @@ async function expectOutputFilterEnabled(scope, enabled) {
4068
4068
  * Three surfaces, three groups of helpers:
4069
4069
  *
4070
4070
  * 1. **Header toggle** — the nav-bar `ChatPrivacyToggle` (`<HatGlasses />`
4071
- * icon-button that morphs into the "Private Mode" pill).
4072
- * 2. **User profile** — the "Private Mode" tab in `UserProfileModal`
4071
+ * icon-button that morphs into the "Incognito" pill).
4072
+ * 2. **User profile** — the "Privacy" tab in `UserProfileModal`
4073
4073
  * (three radio-card options: Normal / Anonymized / Disabled).
4074
4074
  * 3. **Tenant admin** — the "Allow users to control chat privacy" row in
4075
4075
  * the Advanced settings tab (`<Switch>`).
@@ -4083,21 +4083,21 @@ async function expectOutputFilterEnabled(scope, enabled) {
4083
4083
  const CHAT_PRIVACY_LABELS = {
4084
4084
  toggle: {
4085
4085
  /** Title of the mid-session confirmation dialog. */
4086
- dialogTitle: 'Enable Private Mode for this chat?',
4086
+ dialogTitle: 'Enable Incognito for this chat?',
4087
4087
  /** Label on the dialog's confirm button (matches both idle + busy state via regex). */
4088
- dialogConfirm: /Enable Private Mode|Enabling…/,
4088
+ dialogConfirm: /Enable Incognito|Enabling…/,
4089
4089
  },
4090
4090
  profileTab: {
4091
- /** Tab name in the user profile modal sidebar. */
4092
- tabName: 'Private Mode',
4091
+ /** Rail entry in the user profile modal (the feature inside is called Incognito). */
4092
+ tabName: 'Privacy',
4093
4093
  /** Section heading inside the tab body. */
4094
- sectionHeading: 'Default Private Mode',
4094
+ sectionHeading: 'Default Incognito Setting',
4095
4095
  /** Label text on each radio card. Kept in case the test wants to assert
4096
4096
  * copy explicitly — the click + read paths use the testid instead. */
4097
4097
  cards: {
4098
4098
  normal: 'Normal',
4099
4099
  anonymized: 'Anonymized',
4100
- disabled: 'Disabled',
4100
+ disabled: 'Incognito',
4101
4101
  },
4102
4102
  },
4103
4103
  tenantToggle: {
@@ -4190,7 +4190,7 @@ async function expectChatPrivacyConfirmDialogOpen(scope, open) {
4190
4190
  /**
4191
4191
  * Mid-conversation enable flow:
4192
4192
  * 1. Click the toggle (opens the confirm dialog).
4193
- * 2. Click the "Enable Private Mode" action.
4193
+ * 2. Click the "Enable Incognito" action.
4194
4194
  * The session-level disable-chathistory POST is one-way per spec; the
4195
4195
  * helper resolves once the dialog closes after a successful confirm.
4196
4196
  */
@@ -4203,7 +4203,7 @@ async function confirmEnableChatPrivacyMidSession(scope) {
4203
4203
  await expect(action).toBeEnabled({ timeout: 10000 });
4204
4204
  await action.click();
4205
4205
  await expectChatPrivacyConfirmDialogOpen(page, false);
4206
- logger.info('Confirmed mid-session Private Mode enable');
4206
+ logger.info('Confirmed mid-session Incognito enable');
4207
4207
  }
4208
4208
  /** Cancel the confirm dialog without enabling. */
4209
4209
  async function cancelEnableChatPrivacyMidSession(scope) {
@@ -4212,13 +4212,13 @@ async function cancelEnableChatPrivacyMidSession(scope) {
4212
4212
  await expect(cancel).toBeVisible({ timeout: 10000 });
4213
4213
  await cancel.click();
4214
4214
  await expectChatPrivacyConfirmDialogOpen(page, false);
4215
- logger.info('Cancelled mid-session Private Mode dialog');
4215
+ logger.info('Cancelled mid-session Incognito dialog');
4216
4216
  }
4217
4217
  // ──────────────────────────────────────────────────────────────────────
4218
- // 2. User profile — Private Mode tab
4218
+ // 2. User profile — Privacy tab
4219
4219
  // ──────────────────────────────────────────────────────────────────────
4220
4220
  /**
4221
- * Switch to the Private Mode tab inside the user profile modal. Assumes
4221
+ * Switch to the Privacy tab inside the user profile modal. Assumes
4222
4222
  * the modal is already open. The tab only appears when the tenant has
4223
4223
  * `allow_user_chat_privacy_control` on, so a `false` return from
4224
4224
  * `isPrivateModeTabVisible` is a meaningful state, not an error.
@@ -4244,7 +4244,7 @@ async function switchToPrivateModeTab(page) {
4244
4244
  await expect(tab).toBeVisible({ timeout: 10000 });
4245
4245
  await tab.click();
4246
4246
  await expect(page.getByTestId('chat-privacy-tab-body')).toBeVisible({ timeout: 10000 });
4247
- logger.info('Switched to Private Mode tab');
4247
+ logger.info('Switched to Privacy tab');
4248
4248
  }
4249
4249
  /** Locator for one of the three radio cards. */
4250
4250
  function getPrivateModeCard(scope, mode) {
@@ -4261,7 +4261,7 @@ async function selectPrivateMode(scope, mode) {
4261
4261
  await expect(card).toBeEnabled({ timeout: 10000 });
4262
4262
  await card.click();
4263
4263
  await expect(card).toHaveAttribute('aria-pressed', 'true', { timeout: 10000 });
4264
- logger.info(`Selected Private Mode "${mode}"`);
4264
+ logger.info(`Selected Incognito "${mode}"`);
4265
4265
  }
4266
4266
  /** Assert which mode is currently selected. Uses `aria-pressed` + `data-state`. */
4267
4267
  async function expectPrivateModeSelected(scope, mode) {