@adminforth/agent 1.52.1 → 1.52.2

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/build.log CHANGED
@@ -63,5 +63,5 @@ custom/speech_recognition_frontend/voiceActivityDetection.ts
63
63
  custom/speech_recognition_frontend/types/
64
64
  custom/speech_recognition_frontend/types/voice-activity-detection.d.ts
65
65
 
66
- sent 1,682,812 bytes received 940 bytes 3,367,504.00 bytes/sec
67
- total size is 1,678,584 speedup is 1.00
66
+ sent 1,682,869 bytes received 940 bytes 3,367,618.00 bytes/sec
67
+ total size is 1,678,641 speedup is 1.00
@@ -6,7 +6,7 @@ import { PRE_SESSION_ID } from './constants';
6
6
  import { i18nInstance } from '@/i18n';
7
7
 
8
8
  type AdminforthLike = {
9
- confirm(options: { message: string; yes: string; no: string }): Promise<boolean>;
9
+ confirm(options: { title?: string; message?: string; yes?: string; no?: string; dangerous?: boolean }): Promise<boolean>;
10
10
  };
11
11
 
12
12
  type CreateAgentSessionManagerOptions = {
@@ -177,7 +177,7 @@ export function createAgentSessionManager({
177
177
  return;
178
178
  }
179
179
  blockCloseOfChat.value = true;
180
- const isConfirmed = await adminforth.confirm({title: t('Are you sure, that you want to delete this session?'), message: t('This process is irreversible.'), yes: 'Yes', no: 'No'});
180
+ const isConfirmed = await adminforth.confirm({title: t('Are you sure, that you want to delete this session?'), message: t('This process is irreversible.'), yes: 'Yes', no: 'No', dangerous: true});
181
181
  blockCloseOfChat.value = false;
182
182
  if (!isConfirmed) {
183
183
  return;
@@ -6,7 +6,7 @@ import { PRE_SESSION_ID } from './constants';
6
6
  import { i18nInstance } from '@/i18n';
7
7
 
8
8
  type AdminforthLike = {
9
- confirm(options: { message: string; yes: string; no: string }): Promise<boolean>;
9
+ confirm(options: { title?: string; message?: string; yes?: string; no?: string; dangerous?: boolean }): Promise<boolean>;
10
10
  };
11
11
 
12
12
  type CreateAgentSessionManagerOptions = {
@@ -177,7 +177,7 @@ export function createAgentSessionManager({
177
177
  return;
178
178
  }
179
179
  blockCloseOfChat.value = true;
180
- const isConfirmed = await adminforth.confirm({title: t('Are you sure, that you want to delete this session?'), message: t('This process is irreversible.'), yes: 'Yes', no: 'No'});
180
+ const isConfirmed = await adminforth.confirm({title: t('Are you sure, that you want to delete this session?'), message: t('This process is irreversible.'), yes: 'Yes', no: 'No', dangerous: true});
181
181
  blockCloseOfChat.value = false;
182
182
  if (!isConfirmed) {
183
183
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/agent",
3
- "version": "1.52.1",
3
+ "version": "1.52.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",