@aakash58/chatbot 1.1.22 → 1.1.25

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.
Files changed (168) hide show
  1. package/fesm2022/aakash58-chatbot.mjs +684 -654
  2. package/fesm2022/aakash58-chatbot.mjs.map +1 -1
  3. package/index.d.ts +374 -3
  4. package/package.json +2 -4
  5. package/esm2022/aakash58-chatbot.mjs +0 -5
  6. package/esm2022/lib/app/chat/chat-ui-state.service.mjs +0 -170
  7. package/esm2022/lib/app/chat/chat.service.mjs +0 -445
  8. package/esm2022/lib/app/chat/components/chat-button/chat-button.component.mjs +0 -50
  9. package/esm2022/lib/app/chat/components/chat-footer/chat-footer.component.mjs +0 -12
  10. package/esm2022/lib/app/chat/components/chat-header/chat-header.component.mjs +0 -66
  11. package/esm2022/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.mjs +0 -186
  12. package/esm2022/lib/app/chat/components/chat-window/chat-window.component.mjs +0 -312
  13. package/esm2022/lib/app/chat/components/message-input/message-input.component.mjs +0 -36
  14. package/esm2022/lib/app/chat/components/message-list/message-list.component.mjs +0 -115
  15. package/esm2022/lib/app/chat/model/chat-history.model.mjs +0 -2
  16. package/esm2022/lib/app/chat/model/chat-request.model.mjs +0 -2
  17. package/esm2022/lib/app/chat/model/chat-response.model.mjs +0 -2
  18. package/esm2022/lib/app/chat/model/chat-session.model.mjs +0 -2
  19. package/esm2022/lib/app/chat/model/chat-stream-message.model.mjs +0 -2
  20. package/esm2022/lib/app/chat/model/chat-stream-response.model.mjs +0 -2
  21. package/esm2022/lib/app/chat/services/chat-api.service.mjs +0 -61
  22. package/esm2022/lib/app/chat/services/chat-audio.service.mjs +0 -50
  23. package/esm2022/lib/app/chat/services/chat-history.service.mjs +0 -252
  24. package/esm2022/lib/app/login/login-form.component.mjs +0 -46
  25. package/esm2022/lib/app/personalization/personalization-dialog.component.mjs +0 -194
  26. package/esm2022/lib/app/personalization/personalization.service.mjs +0 -149
  27. package/esm2022/lib/app/personalization/sections/account/account-section.component.mjs +0 -122
  28. package/esm2022/lib/app/personalization/sections/preferences/color-picker-dialog.component.mjs +0 -86
  29. package/esm2022/lib/app/personalization/sections/preferences/preferences-section.component.mjs +0 -115
  30. package/esm2022/lib/app/personalization/sections/profile/profile-section.component.mjs +0 -29
  31. package/esm2022/lib/app/personalization/sections/settings/setting-section.component.mjs +0 -30
  32. package/esm2022/lib/app/personalization/sections/terms/terms-section.component.mjs +0 -12
  33. package/esm2022/lib/constant/doohbot-constant.mjs +0 -28
  34. package/esm2022/lib/constant/html-entities.mjs +0 -9
  35. package/esm2022/lib/constant/utf8.mjs +0 -10
  36. package/esm2022/lib/core/app-const.mjs +0 -61
  37. package/esm2022/lib/core/auth/account-api.service.mjs +0 -40
  38. package/esm2022/lib/core/auth/auth.service.mjs +0 -391
  39. package/esm2022/lib/core/auth/models/auth-result.model.mjs +0 -3
  40. package/esm2022/lib/core/auth/models/federated-login-request.model.mjs +0 -6
  41. package/esm2022/lib/core/auth/models/login-request.model.mjs +0 -6
  42. package/esm2022/lib/core/auth/storage.service.mjs +0 -110
  43. package/esm2022/lib/core/directives/draggable/draggable-dialog.directive.mjs +0 -112
  44. package/esm2022/lib/core/directives/fullscreen/fullscreen.directive.mjs +0 -55
  45. package/esm2022/lib/core/directives/resizable/resizable-dialog.directive.mjs +0 -179
  46. package/esm2022/lib/core/environments/environment.mjs +0 -15
  47. package/esm2022/lib/core/environments/environment.prod.mjs +0 -15
  48. package/esm2022/lib/core/helpers/crypto-helper.service.mjs +0 -52
  49. package/esm2022/lib/core/http/http-stream.service.mjs +0 -97
  50. package/esm2022/lib/core/http/http.service.mjs +0 -103
  51. package/esm2022/lib/core/interceptors/auth.interceptor.mjs +0 -96
  52. package/esm2022/lib/core/interceptors/license.interceptor.mjs +0 -44
  53. package/esm2022/lib/core/models/api-config.model.mjs +0 -18
  54. package/esm2022/lib/core/models/api-request.model.mjs +0 -2
  55. package/esm2022/lib/core/models/api-response.model.mjs +0 -8
  56. package/esm2022/lib/core/models/doohbot-config.model.mjs +0 -18
  57. package/esm2022/lib/core/models/license.model.mjs +0 -2
  58. package/esm2022/lib/core/models/message.mjs +0 -2
  59. package/esm2022/lib/core/models/theme-config.model.mjs +0 -2
  60. package/esm2022/lib/core/services/core-config.service.mjs +0 -52
  61. package/esm2022/lib/core/services/license.service.mjs +0 -145
  62. package/esm2022/lib/core/services/markdown.service.mjs +0 -64
  63. package/esm2022/lib/core/services/theme.service.mjs +0 -248
  64. package/esm2022/lib/core/types/auth-mode.type.mjs +0 -2
  65. package/esm2022/lib/core/types/auth-status.type.mjs +0 -5
  66. package/esm2022/lib/core/types/chat-stream.type.mjs +0 -2
  67. package/esm2022/lib/core/types/message-role.type.mjs +0 -2
  68. package/esm2022/lib/core/types/prompt-mode.type.mjs +0 -5
  69. package/esm2022/lib/core/types/snackbar-error.type.mjs +0 -5
  70. package/esm2022/lib/core/types/tenant-resolution-strategy.type.mjs +0 -2
  71. package/esm2022/lib/core/utils/logger.service.mjs +0 -42
  72. package/esm2022/lib/doohbot-input.mjs +0 -20
  73. package/esm2022/lib/doohbot.component.mjs +0 -444
  74. package/esm2022/lib/predefined_messages.mjs +0 -15
  75. package/esm2022/lib/shared/chips/chips.component.mjs +0 -28
  76. package/esm2022/lib/shared/dialog/dialog.component.mjs +0 -36
  77. package/esm2022/lib/shared/dialog/dialog.service.mjs +0 -64
  78. package/esm2022/lib/shared/dialog/dialog.utils.mjs +0 -85
  79. package/esm2022/lib/shared/dropdown-menu/dropdown-menu.component.mjs +0 -29
  80. package/esm2022/lib/shared/input-dialog/input-dialog.component.mjs +0 -38
  81. package/esm2022/lib/shared/menu-item/menu-item.component.mjs +0 -24
  82. package/esm2022/lib/shared/pipes/simple-markdown.pipe.mjs +0 -27
  83. package/esm2022/lib/shared/snackbar/snackbar.component.mjs +0 -43
  84. package/esm2022/lib/shared/snackbar/snackbar.service.mjs +0 -46
  85. package/esm2022/lib/shared/snackbar/snackbar.utils.mjs +0 -43
  86. package/esm2022/public-api.mjs +0 -37
  87. package/lib/app/chat/chat-ui-state.service.d.ts +0 -96
  88. package/lib/app/chat/chat.service.d.ts +0 -88
  89. package/lib/app/chat/components/chat-button/chat-button.component.d.ts +0 -16
  90. package/lib/app/chat/components/chat-footer/chat-footer.component.d.ts +0 -5
  91. package/lib/app/chat/components/chat-header/chat-header.component.d.ts +0 -24
  92. package/lib/app/chat/components/chat-history-sidebar/chat-history-sidebar.component.d.ts +0 -49
  93. package/lib/app/chat/components/chat-window/chat-window.component.d.ts +0 -107
  94. package/lib/app/chat/components/message-input/message-input.component.d.ts +0 -12
  95. package/lib/app/chat/components/message-list/message-list.component.d.ts +0 -40
  96. package/lib/app/chat/model/chat-history.model.d.ts +0 -51
  97. package/lib/app/chat/model/chat-request.model.d.ts +0 -10
  98. package/lib/app/chat/model/chat-response.model.d.ts +0 -9
  99. package/lib/app/chat/model/chat-session.model.d.ts +0 -12
  100. package/lib/app/chat/model/chat-stream-message.model.d.ts +0 -5
  101. package/lib/app/chat/model/chat-stream-response.model.d.ts +0 -10
  102. package/lib/app/chat/services/chat-api.service.d.ts +0 -30
  103. package/lib/app/chat/services/chat-audio.service.d.ts +0 -19
  104. package/lib/app/chat/services/chat-history.service.d.ts +0 -53
  105. package/lib/app/login/login-form.component.d.ts +0 -20
  106. package/lib/app/personalization/personalization-dialog.component.d.ts +0 -53
  107. package/lib/app/personalization/personalization.service.d.ts +0 -66
  108. package/lib/app/personalization/sections/account/account-section.component.d.ts +0 -30
  109. package/lib/app/personalization/sections/preferences/color-picker-dialog.component.d.ts +0 -17
  110. package/lib/app/personalization/sections/preferences/preferences-section.component.d.ts +0 -27
  111. package/lib/app/personalization/sections/profile/profile-section.component.d.ts +0 -17
  112. package/lib/app/personalization/sections/settings/setting-section.component.d.ts +0 -10
  113. package/lib/app/personalization/sections/terms/terms-section.component.d.ts +0 -5
  114. package/lib/constant/doohbot-constant.d.ts +0 -12
  115. package/lib/constant/html-entities.d.ts +0 -8
  116. package/lib/constant/utf8.d.ts +0 -9
  117. package/lib/core/app-const.d.ts +0 -11
  118. package/lib/core/auth/account-api.service.d.ts +0 -20
  119. package/lib/core/auth/auth.service.d.ts +0 -90
  120. package/lib/core/auth/models/auth-result.model.d.ts +0 -4
  121. package/lib/core/auth/models/federated-login-request.model.d.ts +0 -5
  122. package/lib/core/auth/models/login-request.model.d.ts +0 -6
  123. package/lib/core/auth/storage.service.d.ts +0 -21
  124. package/lib/core/directives/draggable/draggable-dialog.directive.d.ts +0 -23
  125. package/lib/core/directives/fullscreen/fullscreen.directive.d.ts +0 -14
  126. package/lib/core/directives/resizable/resizable-dialog.directive.d.ts +0 -30
  127. package/lib/core/environments/environment.d.ts +0 -7
  128. package/lib/core/environments/environment.prod.d.ts +0 -7
  129. package/lib/core/helpers/crypto-helper.service.d.ts +0 -12
  130. package/lib/core/http/http-stream.service.d.ts +0 -18
  131. package/lib/core/http/http.service.d.ts +0 -20
  132. package/lib/core/interceptors/auth.interceptor.d.ts +0 -18
  133. package/lib/core/interceptors/license.interceptor.d.ts +0 -11
  134. package/lib/core/models/api-config.model.d.ts +0 -58
  135. package/lib/core/models/api-request.model.d.ts +0 -77
  136. package/lib/core/models/api-response.model.d.ts +0 -6
  137. package/lib/core/models/doohbot-config.model.d.ts +0 -81
  138. package/lib/core/models/license.model.d.ts +0 -23
  139. package/lib/core/models/message.d.ts +0 -16
  140. package/lib/core/models/theme-config.model.d.ts +0 -28
  141. package/lib/core/services/core-config.service.d.ts +0 -23
  142. package/lib/core/services/license.service.d.ts +0 -33
  143. package/lib/core/services/markdown.service.d.ts +0 -8
  144. package/lib/core/services/theme.service.d.ts +0 -40
  145. package/lib/core/types/auth-mode.type.d.ts +0 -4
  146. package/lib/core/types/auth-status.type.d.ts +0 -4
  147. package/lib/core/types/chat-stream.type.d.ts +0 -4
  148. package/lib/core/types/message-role.type.d.ts +0 -4
  149. package/lib/core/types/prompt-mode.type.d.ts +0 -4
  150. package/lib/core/types/snackbar-error.type.d.ts +0 -4
  151. package/lib/core/types/tenant-resolution-strategy.type.d.ts +0 -4
  152. package/lib/core/utils/logger.service.d.ts +0 -11
  153. package/lib/doohbot-input.d.ts +0 -19
  154. package/lib/doohbot.component.d.ts +0 -108
  155. package/lib/predefined_messages.d.ts +0 -2
  156. package/lib/shared/chips/chips.component.d.ts +0 -10
  157. package/lib/shared/dialog/dialog.component.d.ts +0 -19
  158. package/lib/shared/dialog/dialog.service.d.ts +0 -29
  159. package/lib/shared/dialog/dialog.utils.d.ts +0 -41
  160. package/lib/shared/dropdown-menu/dropdown-menu.component.d.ts +0 -11
  161. package/lib/shared/input-dialog/input-dialog.component.d.ts +0 -20
  162. package/lib/shared/menu-item/menu-item.component.d.ts +0 -9
  163. package/lib/shared/pipes/simple-markdown.pipe.d.ts +0 -10
  164. package/lib/shared/snackbar/snackbar.component.d.ts +0 -14
  165. package/lib/shared/snackbar/snackbar.service.d.ts +0 -19
  166. package/lib/shared/snackbar/snackbar.utils.d.ts +0 -33
  167. package/public-api.d.ts +0 -11
  168. package/src/assets/bot.mp3 +0 -0
@@ -1,29 +0,0 @@
1
- import { MatDialog } from '@angular/material/dialog';
2
- import { Observable } from 'rxjs';
3
- import { DialogData } from './dialog.component';
4
- import { InputDialogData } from '../input-dialog/input-dialog.component';
5
- import * as i0 from "@angular/core";
6
- export declare class DialogService {
7
- private dialog;
8
- constructor(dialog: MatDialog);
9
- /**
10
- * Opens a confirmation dialog with customizable options
11
- * @param data Configuration for the dialog
12
- * @returns Observable that emits true if confirmed, false if cancelled
13
- */
14
- open(data: DialogData): Observable<boolean>;
15
- /**
16
- * Convenience method for delete confirmation dialogs
17
- * @param itemName Name of the item being deleted
18
- * @returns Observable that emits true if confirmed, false if cancelled
19
- */
20
- confirmDelete(itemName?: string): Observable<boolean>;
21
- /**
22
- * Opens a dialog with an input field
23
- * @param data Configuration for the input dialog
24
- * @returns Observable that emits the input value if confirmed, null if cancelled
25
- */
26
- openInput(data: InputDialogData): Observable<string | null>;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
29
- }
@@ -1,41 +0,0 @@
1
- import { DialogService } from './dialog.service';
2
- import { Observable } from 'rxjs';
3
- /**
4
- * Utility class for common dialog operations
5
- * Provides reusable dialog configurations for consistency across the application
6
- */
7
- export declare class DialogUtils {
8
- /**
9
- * Show a logout confirmation dialog
10
- * @param dialogService The DialogService instance
11
- * @returns Observable that emits true if confirmed, false if cancelled
12
- */
13
- static confirmLogout(dialogService: DialogService): Observable<boolean>;
14
- /**
15
- * Show a reset confirmation dialog
16
- * @param dialogService The DialogService instance
17
- * @param itemName Optional name of what is being reset (default: 'preferences')
18
- * @returns Observable that emits true if confirmed, false if cancelled
19
- */
20
- static confirmReset(dialogService: DialogService, itemName?: string): Observable<boolean>;
21
- /**
22
- * Show a delete confirmation dialog
23
- * @param dialogService The DialogService instance
24
- * @param itemName Name of the item being deleted
25
- * @returns Observable that emits true if confirmed, false if cancelled
26
- */
27
- static confirmDelete(dialogService: DialogService, itemName?: string): Observable<boolean>;
28
- /**
29
- * Show a clear all confirmation dialog
30
- * @param dialogService The DialogService instance
31
- * @param itemName Name of what is being cleared (e.g., 'chat history', 'all sessions')
32
- * @returns Observable that emits true if confirmed, false if cancelled
33
- */
34
- static confirmClearAll(dialogService: DialogService, itemName?: string): Observable<boolean>;
35
- /**
36
- * Show a discard changes confirmation dialog
37
- * @param dialogService The DialogService instance
38
- * @returns Observable that emits true if confirmed, false if cancelled
39
- */
40
- static confirmDiscardChanges(dialogService: DialogService): Observable<boolean>;
41
- }
@@ -1,11 +0,0 @@
1
- import { AfterContentInit, ElementRef, QueryList } from '@angular/core';
2
- import { MenuItem } from '../menu-item/menu-item.component';
3
- import * as i0 from "@angular/core";
4
- export declare class DropdownMenu implements AfterContentInit {
5
- detailsRef: ElementRef<HTMLDetailsElement>;
6
- menuItems: QueryList<MenuItem>;
7
- ngAfterContentInit(): void;
8
- close(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenu, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenu, "app-dropdown-menu", never, {}, {}, ["menuItems"], ["[trigger]", "*"], true, never>;
11
- }
@@ -1,20 +0,0 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- import * as i0 from "@angular/core";
3
- export interface InputDialogData {
4
- title: string;
5
- message: string;
6
- initialValue: string;
7
- placeholder?: string;
8
- confirmText?: string;
9
- cancelText?: string;
10
- }
11
- export declare class InputDialogComponent {
12
- dialogRef: MatDialogRef<InputDialogComponent>;
13
- data: InputDialogData;
14
- value: string;
15
- constructor(dialogRef: MatDialogRef<InputDialogComponent>, data: InputDialogData);
16
- onCancel(): void;
17
- onConfirm(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<InputDialogComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<InputDialogComponent, "app-input-dialog", never, {}, {}, never, never, true, never>;
20
- }
@@ -1,9 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class MenuItem {
4
- href: string;
5
- selected: EventEmitter<void>;
6
- onClick(event: Event): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuItem, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuItem, "app-menu-item", never, { "href": { "alias": "href"; "required": false; }; }, { "selected": "selected"; }, never, ["*"], true, never>;
9
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { SafeHtml } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class MarkdownPipe implements PipeTransform {
5
- private markdownService;
6
- private sanitizer;
7
- transform(value: string | undefined | null): SafeHtml;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<MarkdownPipe, "Markdown", true>;
10
- }
@@ -1,14 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { SnackBarError } from '../../core/types/snackbar-error.type';
3
- import * as i0 from "@angular/core";
4
- export declare class SnackBar implements OnInit {
5
- private snackBarRef;
6
- private data;
7
- message: string | null;
8
- type: SnackBarError;
9
- ngOnInit(): void;
10
- close(): void;
11
- get icon(): string;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<SnackBar, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<SnackBar, "app-snackbar", never, {}, {}, never, never, true, never>;
14
- }
@@ -1,19 +0,0 @@
1
- import { SnackBarError } from '../../core/types/snackbar-error.type';
2
- import * as i0 from "@angular/core";
3
- export interface SnackbarConfig {
4
- message: string;
5
- duration?: number;
6
- type: SnackBarError;
7
- }
8
- export declare class SnackbarService {
9
- private snackBar;
10
- constructor();
11
- private show;
12
- success(message: string, duration?: number): void;
13
- warn(message: string, duration?: number): void;
14
- error(message: string, duration?: number): void;
15
- info(message: string, duration?: number): void;
16
- clear(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<SnackbarService>;
19
- }
@@ -1,33 +0,0 @@
1
- import { SnackbarService } from './snackbar.service';
2
- /**
3
- * Utility class for common snackbar operations
4
- * Provides reusable snackbar configurations for consistency across the application
5
- */
6
- export declare class SnackbarUtils {
7
- private static service;
8
- /**
9
- * Initialize the utility with a SnackbarService instance
10
- * @param service The SnackbarService instance
11
- */
12
- static init(service: SnackbarService): void;
13
- /**
14
- * Show a success snackbar
15
- * @param message The message to show
16
- */
17
- static success(message: string): void;
18
- /**
19
- * Show an error snackbar
20
- * @param message The message to show
21
- */
22
- static error(message: string): void;
23
- /**
24
- * Show a warning snackbar
25
- * @param message The message to show
26
- */
27
- static warn(message: string): void;
28
- /**
29
- * Show an info snackbar
30
- * @param message The message to show
31
- */
32
- static info(message: string): void;
33
- }
package/public-api.d.ts DELETED
@@ -1,11 +0,0 @@
1
- export * from './lib/doohbot.component';
2
- export * from './lib/doohbot-input';
3
- export * from './lib/core/models/api-config.model';
4
- export * from './lib/constant/doohbot-constant';
5
- export * from './lib/core/models/theme-config.model';
6
- export * from './lib/shared/dialog/dialog.component';
7
- export * from './lib/shared/dialog/dialog.service';
8
- export * from './lib/shared/chips/chips.component';
9
- export * from './lib/shared/snackbar/snackbar.component';
10
- export * from './lib/shared/dropdown-menu/dropdown-menu.component';
11
- export * from './lib/shared/menu-item/menu-item.component';
Binary file