@aakash58/chatbot 1.1.26 → 1.1.28

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,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { InjectionToken, ElementRef, Renderer2, OnInit, OnDestroy, SimpleChanges, EventEmitter, AfterContentInit, QueryList } from '@angular/core';
3
+ import { ReplaySubject, Observable } from 'rxjs';
3
4
  import { MatDialogRef, MatDialog } from '@angular/material/dialog';
4
- import { Observable } from 'rxjs';
5
5
 
6
6
  /**
7
7
  * Message role types for chat messages
@@ -49,6 +49,7 @@ declare class DoohbotInput {
49
49
  buttonStyle?: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom';
50
50
  primaryColor?: string;
51
51
  accentColor?: string;
52
+ useStandardApi?: boolean;
52
53
  }
53
54
 
54
55
  /**
@@ -164,6 +165,16 @@ interface ChatSession {
164
165
  */
165
166
  type AuthStatus = 'authenticated' | 'unauthenticated' | 'expired';
166
167
 
168
+ declare class AppConst {
169
+ static appBaseUrl: string;
170
+ static data: any;
171
+ config$: ReplaySubject<any>;
172
+ constructor();
173
+ load(): Promise<any>;
174
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppConst, never>;
175
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<AppConst>;
176
+ }
177
+
167
178
  declare class Doohbot extends DoohbotInput implements OnInit, OnDestroy {
168
179
  private elementRef;
169
180
  private renderer;
@@ -188,7 +199,7 @@ declare class Doohbot extends DoohbotInput implements OnInit, OnDestroy {
188
199
  unreadCount: _angular_core.Signal<number>;
189
200
  messages: _angular_core.WritableSignal<Message[]>;
190
201
  isBotTyping: _angular_core.WritableSignal<boolean>;
191
- isStreaming: _angular_core.WritableSignal<boolean>;
202
+ isStreaming: _angular_core.Signal<boolean>;
192
203
  messageError: _angular_core.Signal<string | null>;
193
204
  showSuggestionChips: _angular_core.Signal<boolean>;
194
205
  chatSessions: _angular_core.WritableSignal<ChatSession[]>;
@@ -263,6 +274,8 @@ declare class Doohbot extends DoohbotInput implements OnInit, OnDestroy {
263
274
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<Doohbot, "app-doohbot", never, { "config": { "alias": "config"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "enableDrag": { "alias": "enableDrag"; "required": false; }; "enableResize": { "alias": "enableResize"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; "themeConfig": { "alias": "themeConfig"; "required": false; }; }, {}, never, never, true, never>;
264
275
  }
265
276
  declare function initializeApp(): () => Promise<any>;
277
+ declare function initializeAppConst(appConst: AppConst): () => Promise<any>;
278
+ declare function provideDoohbot(): _angular_core.EnvironmentProviders;
266
279
 
267
280
  declare const DoohbotConst: {
268
281
  appTitle: string;
@@ -372,5 +385,5 @@ declare class DropdownMenu implements AfterContentInit {
372
385
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownMenu, "app-dropdown-menu", never, {}, {}, ["menuItems"], ["[trigger]", "*"], true, never>;
373
386
  }
374
387
 
375
- export { Chips, DOOHBOT_API_CONFIG, DialogComponent, DialogService, Doohbot, DoohbotConst, DoohbotInput, DropdownMenu, MenuItem, SnackBar, initializeApp };
388
+ export { Chips, DOOHBOT_API_CONFIG, DialogComponent, DialogService, Doohbot, DoohbotConst, DoohbotInput, DropdownMenu, MenuItem, SnackBar, initializeApp, initializeAppConst, provideDoohbot };
376
389
  export type { DialogData, DoohbotApiConfig, DoohbotThemeConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aakash58/chatbot",
3
- "version": "1.1.26",
3
+ "version": "1.1.28",
4
4
  "description": "multi tenancy chatbot",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=17.0.0",
@@ -10,7 +10,6 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "crypto-js": "^4.2.0",
13
- "@auth0/angular-jwt": "^5.2.0",
14
13
  "tslib": "^2.3.0"
15
14
  },
16
15
  "sideEffects": false,