@aakash58/chatbot 1.0.82 → 1.0.84

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/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnDestroy, RendererFactory2, InjectionToken, ElementRef, Renderer2, SimpleChanges } from '@angular/core';
3
- import { OverlayContainer } from '@angular/cdk/overlay';
2
+ import { InjectionToken, ElementRef, Renderer2, OnDestroy, SimpleChanges, RendererFactory2, TrackByFunction, EventEmitter, AfterViewInit } from '@angular/core';
4
3
  import { Observable } from 'rxjs';
5
4
  import { HttpClient } from '@angular/common/http';
6
5
  import { JwtHelperService } from '@auth0/angular-jwt';
7
6
  import { Router } from '@angular/router';
7
+ import { OverlayContainer } from '@angular/cdk/overlay';
8
+ import { MatDialogRef, MatDialog } from '@angular/material/dialog';
8
9
 
9
10
  interface Message {
10
11
  id: string;
@@ -18,56 +19,6 @@ interface Message {
18
19
  agent?: string;
19
20
  }
20
21
 
21
- interface DoohbotThemeConfig {
22
- fontFamily?: string;
23
- primaryColor?: string;
24
- secondaryColor?: string;
25
- backgroundColor?: string;
26
- chatInputColor?: string;
27
- textAltColor?: string;
28
- textColor?: string;
29
- secondaryTextColor?: string;
30
- hintTextColor?: string;
31
- buttonColor?: string;
32
- userMessageColor?: string;
33
- botMessageColor?: string;
34
- userTextColor?: string;
35
- botTextColor?: string;
36
- borderColor?: string;
37
- borderShadowColor?: string;
38
- borderTopColor?: string;
39
- typingIndicatorColor?: string;
40
- white?: string;
41
- black?: string;
42
- grey?: string;
43
- red?: string;
44
- lightRed?: string;
45
- }
46
-
47
- type ThemeMode = 'light' | 'dark' | 'auto';
48
- declare class ThemeService implements OnDestroy {
49
- private overlay;
50
- private renderer;
51
- private _theme;
52
- theme: i0.Signal<ThemeMode>;
53
- private _activeTheme;
54
- activeTheme: i0.Signal<"light-theme" | "dark-theme">;
55
- private observer;
56
- constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer);
57
- setTheme(mode: ThemeMode): void;
58
- private updateActiveTheme;
59
- private handleAutoTheme;
60
- private detectAndApplyParentTheme;
61
- private isParentDark;
62
- private applyThemeToGlobal;
63
- private cleanupObservers;
64
- ngOnDestroy(): void;
65
- applyCssVariables(element: HTMLElement, config: DoohbotThemeConfig | undefined): void;
66
- private parseColor;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
68
- static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
69
- }
70
-
71
22
  declare class DoohbotInput {
72
23
  username: string;
73
24
  password: string;
@@ -152,89 +103,6 @@ interface DoohbotApiConfig {
152
103
  */
153
104
  declare const DOOHBOT_API_CONFIG: InjectionToken<DoohbotApiConfig>;
154
105
 
155
- declare class HttpService {
156
- private http;
157
- apiUrl: string;
158
- constructor(http: HttpClient);
159
- get(url: string, param?: object, nestedParam?: boolean, showLoader?: boolean, refresh?: boolean): Observable<any>;
160
- private buildHttpParams;
161
- post(url: string, param?: object, showLoader?: boolean): Observable<any>;
162
- private returnResponse;
163
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
164
- static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
165
- }
166
-
167
- declare class AuthResult {
168
- access_token: string;
169
- refresh_token: string;
170
- }
171
-
172
- declare class ApiResponse<T> {
173
- success: boolean;
174
- message: string;
175
- data?: T;
176
- constructor(success: boolean, message: string, data?: T);
177
- }
178
-
179
- declare class LoginRequest {
180
- username: string;
181
- password: string;
182
- }
183
-
184
- declare class AccountService {
185
- private http;
186
- constructor(http: HttpService);
187
- login(param?: LoginRequest, showLoader?: boolean): Observable<ApiResponse<AuthResult>>;
188
- static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
189
- static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
190
- }
191
-
192
- declare class CryptoHelperService {
193
- private encoder;
194
- private decoder;
195
- private secretKey;
196
- setSecretKey(key: string): void;
197
- private getKey;
198
- encrypt(value: string): Promise<string | null>;
199
- decrypt(value: string): Promise<string | null>;
200
- static ɵfac: i0.ɵɵFactoryDeclaration<CryptoHelperService, never>;
201
- static ɵprov: i0.ɵɵInjectableDeclaration<CryptoHelperService>;
202
- }
203
-
204
- declare global {
205
- interface Window {
206
- storageEventAdded?: boolean;
207
- tabCLoseEventAdded?: boolean;
208
- }
209
- }
210
- declare class AuthService {
211
- private router;
212
- private http;
213
- private cryptoHelper;
214
- apiUrl: string;
215
- storageKey: string;
216
- secretKey: string;
217
- companyCode: string;
218
- jwtHelper: JwtHelperService;
219
- constructor(router: Router, http: HttpClient, cryptoHelper: CryptoHelperService);
220
- logout(): Observable<boolean>;
221
- setSession(session: AuthResult): void;
222
- setLocalStorage(key: string, value: any): void;
223
- getLocalStorage(key: string): any;
224
- isAuthenticated(): boolean;
225
- isTokenExpired(): boolean;
226
- encrypt(value: string): any;
227
- decrypt(value: string): string | null;
228
- clearAuth(): void;
229
- clearSession(): void;
230
- clearTabInfo(): void;
231
- clearStorage(): void;
232
- clearCache(): void;
233
- getUserId(): any;
234
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
235
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
236
- }
237
-
238
106
  interface UserContext {
239
107
  userId: string;
240
108
  userName: string;
@@ -242,6 +110,32 @@ interface UserContext {
242
110
  metadata?: Record<string, any>;
243
111
  }
244
112
 
113
+ interface DoohbotThemeConfig {
114
+ fontFamily?: string;
115
+ primaryColor?: string;
116
+ secondaryColor?: string;
117
+ backgroundColor?: string;
118
+ chatInputColor?: string;
119
+ textAltColor?: string;
120
+ textColor?: string;
121
+ secondaryTextColor?: string;
122
+ hintTextColor?: string;
123
+ buttonColor?: string;
124
+ userMessageColor?: string;
125
+ botMessageColor?: string;
126
+ userTextColor?: string;
127
+ botTextColor?: string;
128
+ borderColor?: string;
129
+ borderShadowColor?: string;
130
+ borderTopColor?: string;
131
+ typingIndicatorColor?: string;
132
+ white?: string;
133
+ black?: string;
134
+ grey?: string;
135
+ red?: string;
136
+ lightRed?: string;
137
+ }
138
+
245
139
  declare class FullscreenDirective {
246
140
  private el;
247
141
  private renderer;
@@ -255,11 +149,22 @@ declare class FullscreenDirective {
255
149
  static ɵdir: i0.ɵɵDirectiveDeclaration<FullscreenDirective, "[appFullscreen]", never, { "fullscreenTarget": { "alias": "fullscreenTarget"; "required": false; }; }, {}, never, never, true, never>;
256
150
  }
257
151
 
152
+ interface ChatSession {
153
+ id: string;
154
+ timestamp: Date;
155
+ title: string;
156
+ messages: Message[];
157
+ contextKey: string;
158
+ userId: string;
159
+ }
160
+ interface ChatSessionGroup {
161
+ label: string;
162
+ sessions: ChatSession[];
163
+ }
164
+
258
165
  declare class Doohbot extends DoohbotInput implements OnDestroy {
259
166
  private elementRef;
260
167
  private renderer;
261
- private accountService;
262
- private authService;
263
168
  config: DoohbotInput;
264
169
  platformTenant: string;
265
170
  subTenant: string;
@@ -270,51 +175,57 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
270
175
  apiConfig?: DoohbotApiConfig;
271
176
  userContext?: UserContext;
272
177
  themeConfig: DoohbotThemeConfig | undefined;
273
- isFullScreen: boolean;
178
+ appEmoji: {
179
+ waveHand: string;
180
+ robotFace: string;
181
+ partyPopper: string;
182
+ thinkingFace: string;
183
+ thumbsUp: string;
184
+ thumbsDown: string;
185
+ redHeart: string;
186
+ };
187
+ private chatFacade;
188
+ private uiState;
189
+ private themeService;
274
190
  isChatOpen: i0.WritableSignal<boolean>;
191
+ isHistorySidebarOpen: i0.WritableSignal<boolean>;
192
+ unreadCount: i0.Signal<number>;
193
+ isFullScreen: i0.WritableSignal<boolean>;
275
194
  isAuthenticated: i0.WritableSignal<boolean>;
276
- private messageService;
277
- isBotTyping: i0.WritableSignal<boolean>;
278
195
  messages: i0.WritableSignal<Message[]>;
279
- private lastReadMessageId;
280
- themeService: ThemeService;
281
- private tenantContextService;
282
- private contextSubscription?;
283
- maxMessageLength: number;
196
+ isBotTyping: i0.WritableSignal<boolean>;
197
+ chatSessions: i0.WritableSignal<ChatSession[]>;
284
198
  messageError: i0.WritableSignal<string | null>;
285
- dismissTimeout: number | null;
199
+ showSuggestionChips: i0.Signal<boolean>;
200
+ userName: string;
286
201
  predefinedMessages: string[];
287
- trackByMessageId(index: number, item: any): string;
202
+ maxMessageLength: number;
203
+ private contextCleanup?;
204
+ /**
205
+ * Check if current user is a guest user
206
+ */
207
+ isGuestUser: i0.Signal<boolean>;
208
+ /**
209
+ * Helper method to check if a user ID belongs to a guest user
210
+ */
211
+ private checkIfGuestUser;
288
212
  chatWindowRef: ElementRef;
289
213
  fullscreenDirective: FullscreenDirective;
290
- constructor(elementRef: ElementRef, renderer: Renderer2, accountService: AccountService, authService: AuthService);
214
+ constructor(elementRef: ElementRef, renderer: Renderer2);
291
215
  ngOnChanges(changes: SimpleChanges): void;
292
216
  ngOnInit(): void;
293
217
  ngOnDestroy(): void;
294
- private loginUser;
295
- private updateCssVariables;
296
- /**
297
- * Update context when tenant or agent inputs change
298
- */
299
- private updateContext;
300
- /**
301
- * Update API configuration
302
- */
303
- private updateApiConfig;
218
+ private performLogin;
304
219
  toggleChat(): void;
305
- clearChat(): void;
306
220
  sendMessage(text: string): Promise<void>;
221
+ clearChat(): void;
307
222
  clearMessageError(): void;
308
- showSuggestionChips: i0.Signal<boolean>;
309
- markAsReadEffect: i0.EffectRef;
310
- unreadCount: i0.Signal<number>;
311
- preFullscreenState: {
312
- width: string;
313
- height: string;
314
- left: string;
315
- top: string;
316
- } | null;
223
+ toggleHistorySidebar(): void;
224
+ loadChatSession(session: ChatSession): void;
225
+ deleteSession(sessionId: string): void;
226
+ private loadUserSessions;
317
227
  toggleFullScreen(): void;
228
+ trackByMessageId(index: number, item: any): string;
318
229
  static ɵfac: i0.ɵɵFactoryDeclaration<Doohbot, never>;
319
230
  static ɵcmp: i0.ɵɵComponentDeclaration<Doohbot, "app-doohbot", never, { "config": { "alias": "config"; "required": false; }; "platformTenant": { "alias": "platformTenant"; "required": false; }; "subTenant": { "alias": "subTenant"; "required": false; }; "agent": { "alias": "agent"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; "userContext": { "alias": "userContext"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; }, {}, never, never, true, never>;
320
231
  }
@@ -396,6 +307,89 @@ declare class ChatbotApiService {
396
307
  static ɵprov: i0.ɵɵInjectableDeclaration<ChatbotApiService>;
397
308
  }
398
309
 
310
+ declare class AuthResult {
311
+ access_token: string;
312
+ refresh_token: string;
313
+ }
314
+
315
+ declare class CryptoHelperService {
316
+ private encoder;
317
+ private decoder;
318
+ private secretKey;
319
+ setSecretKey(key: string): void;
320
+ private getKey;
321
+ encrypt(value: string): Promise<string | null>;
322
+ decrypt(value: string): Promise<string | null>;
323
+ static ɵfac: i0.ɵɵFactoryDeclaration<CryptoHelperService, never>;
324
+ static ɵprov: i0.ɵɵInjectableDeclaration<CryptoHelperService>;
325
+ }
326
+
327
+ declare global {
328
+ interface Window {
329
+ storageEventAdded?: boolean;
330
+ tabCLoseEventAdded?: boolean;
331
+ }
332
+ }
333
+ declare class AuthService {
334
+ private router;
335
+ private http;
336
+ private cryptoHelper;
337
+ apiUrl: string;
338
+ storageKey: string;
339
+ secretKey: string;
340
+ companyCode: string;
341
+ jwtHelper: JwtHelperService;
342
+ constructor(router: Router, http: HttpClient, cryptoHelper: CryptoHelperService);
343
+ logout(): Observable<boolean>;
344
+ setSession(session: AuthResult): void;
345
+ setLocalStorage(key: string, value: any): void;
346
+ getLocalStorage(key: string): any;
347
+ isAuthenticated(): boolean;
348
+ isTokenExpired(): boolean;
349
+ encrypt(value: string): any;
350
+ decrypt(value: string): string | null;
351
+ clearAuth(): void;
352
+ clearSession(): void;
353
+ clearTabInfo(): void;
354
+ clearStorage(): void;
355
+ clearCache(): void;
356
+ getUserId(): any;
357
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
358
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
359
+ }
360
+
361
+ declare class HttpService {
362
+ private http;
363
+ apiUrl: string;
364
+ constructor(http: HttpClient);
365
+ get(url: string, param?: object, nestedParam?: boolean, showLoader?: boolean, refresh?: boolean): Observable<any>;
366
+ private buildHttpParams;
367
+ post(url: string, param?: object, showLoader?: boolean): Observable<any>;
368
+ private returnResponse;
369
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
370
+ static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
371
+ }
372
+
373
+ declare class ApiResponse<T> {
374
+ success: boolean;
375
+ message: string;
376
+ data?: T;
377
+ constructor(success: boolean, message: string, data?: T);
378
+ }
379
+
380
+ declare class LoginRequest {
381
+ username: string;
382
+ password: string;
383
+ }
384
+
385
+ declare class AccountService {
386
+ private http;
387
+ constructor(http: HttpService);
388
+ login(param?: LoginRequest, showLoader?: boolean): Observable<ApiResponse<AuthResult>>;
389
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
390
+ static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
391
+ }
392
+
399
393
  declare const appConst: {
400
394
  APP_LOGO: string;
401
395
  APP_TEXT_LOGO: string;
@@ -406,5 +400,161 @@ declare const appConst: {
406
400
 
407
401
  declare const DOOHBOT_API_URL: InjectionToken<string>;
408
402
 
409
- export { AccountService, AuthService, ChatbotApiService, DOOHBOT_API_CONFIG, DOOHBOT_API_URL, Doohbot, DoohbotInput, appConst };
410
- export type { DoohbotApiConfig, UserContext };
403
+ interface ChatContext {
404
+ platformTenant: string;
405
+ subTenant: string;
406
+ agent: string;
407
+ }
408
+
409
+ interface TenantConfig extends ChatContext {
410
+ id: string;
411
+ displayName: string;
412
+ config?: Partial<DoohbotInput>;
413
+ userContext?: UserContext;
414
+ }
415
+
416
+ type ThemeMode = 'light' | 'dark' | 'auto';
417
+ declare class ThemeService implements OnDestroy {
418
+ private overlay;
419
+ private renderer;
420
+ private _theme;
421
+ theme: i0.Signal<ThemeMode>;
422
+ private _activeTheme;
423
+ activeTheme: i0.Signal<"light-theme" | "dark-theme">;
424
+ private observer;
425
+ constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer);
426
+ setTheme(mode: ThemeMode): void;
427
+ private updateActiveTheme;
428
+ private handleAutoTheme;
429
+ private detectAndApplyParentTheme;
430
+ private isParentDark;
431
+ private applyThemeToGlobal;
432
+ private cleanupObservers;
433
+ ngOnDestroy(): void;
434
+ applyCssVariables(element: HTMLElement, config: DoohbotThemeConfig | undefined): void;
435
+ private parseColor;
436
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
437
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
438
+ }
439
+
440
+ declare class ChatWindowComponent {
441
+ isChatOpen: boolean;
442
+ enableDrag: boolean;
443
+ enableResize: boolean;
444
+ isFullScreen: boolean;
445
+ isAuthenticated: boolean;
446
+ appTitle: string;
447
+ appLogoUrl: string;
448
+ appTextLogoUrl: string;
449
+ appHeaderLogoUrl: string;
450
+ moreIcon: string;
451
+ minimizeIcon: string;
452
+ messages: Message[];
453
+ isBotTyping: boolean;
454
+ appSubtitle: string;
455
+ welcomeDesc: string;
456
+ predefinedMessages: string[];
457
+ botAvatarUrl: string;
458
+ userAvatarUrl: string;
459
+ userName: string;
460
+ trackByMessageId: TrackByFunction<Message>;
461
+ hintText: string;
462
+ sendIcon: string;
463
+ messageError: string | null;
464
+ showSuggestionChips: boolean;
465
+ isHistorySidebarOpen: boolean;
466
+ chatSessions: ChatSession[];
467
+ chatHistoryUserName: string;
468
+ isGuestUser: boolean;
469
+ themeConfig: DoohbotThemeConfig | undefined;
470
+ toggleChat: EventEmitter<void>;
471
+ toggleFullScreen: EventEmitter<void>;
472
+ toggleHistorySidebar: EventEmitter<void>;
473
+ openSettings: EventEmitter<void>;
474
+ suggestionClick: EventEmitter<string>;
475
+ send: EventEmitter<string>;
476
+ clearMessageError: EventEmitter<void>;
477
+ clearChat: EventEmitter<void>;
478
+ sessionSelected: EventEmitter<ChatSession>;
479
+ sessionDeleted: EventEmitter<string>;
480
+ themeService: ThemeService;
481
+ onToggleChat(): void;
482
+ onToggleHistorySidebar(): void;
483
+ onToggleFullScreen(): void;
484
+ onOpenSettings(): void;
485
+ onSuggestionClick(text: string): void;
486
+ onSend(text: string): void;
487
+ onClearMessageError(): void;
488
+ onClearChat(): void;
489
+ onSessionSelected(session: ChatSession): void;
490
+ onSessionDeleted(sessionId: string): void;
491
+ onPopoutShown(win: Window): void;
492
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChatWindowComponent, never>;
493
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChatWindowComponent, "app-chat-window", never, { "isChatOpen": { "alias": "isChatOpen"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "isFullScreen": { "alias": "isFullScreen"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "appTitle": { "alias": "appTitle"; "required": false; }; "appLogoUrl": { "alias": "appLogoUrl"; "required": false; }; "appTextLogoUrl": { "alias": "appTextLogoUrl"; "required": false; }; "appHeaderLogoUrl": { "alias": "appHeaderLogoUrl"; "required": false; }; "moreIcon": { "alias": "moreIcon"; "required": false; }; "minimizeIcon": { "alias": "minimizeIcon"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "isBotTyping": { "alias": "isBotTyping"; "required": false; }; "appSubtitle": { "alias": "appSubtitle"; "required": false; }; "welcomeDesc": { "alias": "welcomeDesc"; "required": false; }; "predefinedMessages": { "alias": "predefinedMessages"; "required": false; }; "botAvatarUrl": { "alias": "botAvatarUrl"; "required": false; }; "userAvatarUrl": { "alias": "userAvatarUrl"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "trackByMessageId": { "alias": "trackByMessageId"; "required": false; }; "hintText": { "alias": "hintText"; "required": false; }; "sendIcon": { "alias": "sendIcon"; "required": false; }; "messageError": { "alias": "messageError"; "required": false; }; "showSuggestionChips": { "alias": "showSuggestionChips"; "required": false; }; "isHistorySidebarOpen": { "alias": "isHistorySidebarOpen"; "required": false; }; "chatSessions": { "alias": "chatSessions"; "required": false; }; "chatHistoryUserName": { "alias": "chatHistoryUserName"; "required": false; }; "isGuestUser": { "alias": "isGuestUser"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; }, { "toggleChat": "toggleChat"; "toggleFullScreen": "toggleFullScreen"; "toggleHistorySidebar": "toggleHistorySidebar"; "openSettings": "openSettings"; "suggestionClick": "suggestionClick"; "send": "send"; "clearMessageError": "clearMessageError"; "clearChat": "clearChat"; "sessionSelected": "sessionSelected"; "sessionDeleted": "sessionDeleted"; }, never, never, true, never>;
494
+ }
495
+
496
+ declare class MessageListComponent implements AfterViewInit, OnDestroy {
497
+ messages: Message[];
498
+ isBotTyping: boolean;
499
+ appLogoUrl: string;
500
+ appSubtitle: string;
501
+ welcomeDesc: string;
502
+ predefinedMessages: string[];
503
+ botAvatarUrl: string;
504
+ userAvatarUrl: string;
505
+ userName: string;
506
+ isAuthenticated: boolean;
507
+ trackByMessageId: TrackByFunction<Message>;
508
+ suggestionClick: EventEmitter<string>;
509
+ private chatMessagesContainer;
510
+ private mutationObserver;
511
+ appEmoji: {
512
+ waveHand: string;
513
+ };
514
+ ngAfterViewInit(): void;
515
+ private scrollToBottom;
516
+ ngOnDestroy(): void;
517
+ onPredefinedClick(text: string): void;
518
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
519
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "app-message-list", never, { "messages": { "alias": "messages"; "required": false; }; "isBotTyping": { "alias": "isBotTyping"; "required": false; }; "appLogoUrl": { "alias": "appLogoUrl"; "required": false; }; "appSubtitle": { "alias": "appSubtitle"; "required": false; }; "welcomeDesc": { "alias": "welcomeDesc"; "required": false; }; "predefinedMessages": { "alias": "predefinedMessages"; "required": false; }; "botAvatarUrl": { "alias": "botAvatarUrl"; "required": false; }; "userAvatarUrl": { "alias": "userAvatarUrl"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "isAuthenticated": { "alias": "isAuthenticated"; "required": false; }; "trackByMessageId": { "alias": "trackByMessageId"; "required": false; }; }, { "suggestionClick": "suggestionClick"; }, never, never, true, never>;
520
+ }
521
+
522
+ interface DialogData {
523
+ title: string;
524
+ message: string;
525
+ confirmText?: string;
526
+ cancelText?: string;
527
+ confirmButtonColor?: 'primary' | 'accent' | 'warn';
528
+ icon?: string;
529
+ }
530
+ declare class DialogComponent {
531
+ dialogRef: MatDialogRef<DialogComponent>;
532
+ data: DialogData;
533
+ constructor(dialogRef: MatDialogRef<DialogComponent>, data: DialogData);
534
+ onCancel(): void;
535
+ onConfirm(): void;
536
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
537
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "app-dialog", never, {}, {}, never, never, true, never>;
538
+ }
539
+
540
+ declare class DialogService {
541
+ private dialog;
542
+ constructor(dialog: MatDialog);
543
+ /**
544
+ * Opens a confirmation dialog with customizable options
545
+ * @param data Configuration for the dialog
546
+ * @returns Observable that emits true if confirmed, false if cancelled
547
+ */
548
+ open(data: DialogData): Observable<boolean>;
549
+ /**
550
+ * Convenience method for delete confirmation dialogs
551
+ * @param itemName Name of the item being deleted
552
+ * @returns Observable that emits true if confirmed, false if cancelled
553
+ */
554
+ confirmDelete(itemName?: string): Observable<boolean>;
555
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
556
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
557
+ }
558
+
559
+ export { AccountService, AuthService, ChatWindowComponent, ChatbotApiService, DOOHBOT_API_CONFIG, DOOHBOT_API_URL, DialogComponent, DialogService, Doohbot, DoohbotInput, MessageListComponent, appConst };
560
+ export type { ChatContext, ChatSession, ChatSessionGroup, DialogData, DoohbotApiConfig, DoohbotThemeConfig, TenantConfig, UserContext };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aakash58/chatbot",
3
- "version": "1.0.82",
4
- "description": "theme config",
3
+ "version": "1.0.84",
4
+ "description": "directves added",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.0",
7
7
  "@angular/core": "^20.3.0"