@aakash58/chatbot 1.0.80 → 1.0.82

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
@@ -18,6 +18,32 @@ interface Message {
18
18
  agent?: string;
19
19
  }
20
20
 
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
+
21
47
  type ThemeMode = 'light' | 'dark' | 'auto';
22
48
  declare class ThemeService implements OnDestroy {
23
49
  private overlay;
@@ -36,6 +62,8 @@ declare class ThemeService implements OnDestroy {
36
62
  private applyThemeToGlobal;
37
63
  private cleanupObservers;
38
64
  ngOnDestroy(): void;
65
+ applyCssVariables(element: HTMLElement, config: DoohbotThemeConfig | undefined): void;
66
+ private parseColor;
39
67
  static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
40
68
  static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
41
69
  }
@@ -214,6 +242,19 @@ interface UserContext {
214
242
  metadata?: Record<string, any>;
215
243
  }
216
244
 
245
+ declare class FullscreenDirective {
246
+ private el;
247
+ private renderer;
248
+ private isFullScreen;
249
+ private preFullscreenState;
250
+ fullscreenTarget: string;
251
+ constructor(el: ElementRef, renderer: Renderer2);
252
+ toggle(): void;
253
+ getFullscreenState(): boolean;
254
+ static ɵfac: i0.ɵɵFactoryDeclaration<FullscreenDirective, never>;
255
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FullscreenDirective, "[appFullscreen]", never, { "fullscreenTarget": { "alias": "fullscreenTarget"; "required": false; }; }, {}, never, never, true, never>;
256
+ }
257
+
217
258
  declare class Doohbot extends DoohbotInput implements OnDestroy {
218
259
  private elementRef;
219
260
  private renderer;
@@ -226,14 +267,14 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
226
267
  buttonStyle: 'fab' | 'sidebar' | 'sidebar-top' | 'sidebar-bottom';
227
268
  enableDrag: boolean;
228
269
  enableResize: boolean;
229
- primaryColor: string | undefined;
230
270
  apiConfig?: DoohbotApiConfig;
231
271
  userContext?: UserContext;
272
+ themeConfig: DoohbotThemeConfig | undefined;
232
273
  isFullScreen: boolean;
233
274
  isChatOpen: i0.WritableSignal<boolean>;
234
- isBotTyping: i0.WritableSignal<boolean>;
235
275
  isAuthenticated: i0.WritableSignal<boolean>;
236
276
  private messageService;
277
+ isBotTyping: i0.WritableSignal<boolean>;
237
278
  messages: i0.WritableSignal<Message[]>;
238
279
  private lastReadMessageId;
239
280
  themeService: ThemeService;
@@ -245,6 +286,7 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
245
286
  predefinedMessages: string[];
246
287
  trackByMessageId(index: number, item: any): string;
247
288
  chatWindowRef: ElementRef;
289
+ fullscreenDirective: FullscreenDirective;
248
290
  constructor(elementRef: ElementRef, renderer: Renderer2, accountService: AccountService, authService: AuthService);
249
291
  ngOnChanges(changes: SimpleChanges): void;
250
292
  ngOnInit(): void;
@@ -274,7 +316,7 @@ declare class Doohbot extends DoohbotInput implements OnDestroy {
274
316
  } | null;
275
317
  toggleFullScreen(): void;
276
318
  static ɵfac: i0.ɵɵFactoryDeclaration<Doohbot, never>;
277
- 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; }; "primaryColor": { "alias": "primaryColor"; "required": false; }; "apiConfig": { "alias": "apiConfig"; "required": false; }; "userContext": { "alias": "userContext"; "required": false; }; }, {}, never, never, true, never>;
319
+ 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>;
278
320
  }
279
321
 
280
322
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aakash58/chatbot",
3
- "version": "1.0.80",
4
- "description": "theme overide",
3
+ "version": "1.0.82",
4
+ "description": "theme config",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.0",
7
7
  "@angular/core": "^20.3.0"