@aakash58/chatbot 1.0.72 → 1.0.74

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,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { RendererFactory2, InjectionToken, OnDestroy, ElementRef, Renderer2, SimpleChanges } from '@angular/core';
2
+ import { OnDestroy, RendererFactory2, InjectionToken, ElementRef, Renderer2, SimpleChanges } from '@angular/core';
3
3
  import { OverlayContainer } from '@angular/cdk/overlay';
4
4
  import { Observable } from 'rxjs';
5
5
  import { HttpClient } from '@angular/common/http';
@@ -18,18 +18,25 @@ interface Message {
18
18
  agent?: string;
19
19
  }
20
20
 
21
- type ThemeMode = 'light' | 'dark' | 'system';
22
- declare class ThemeService {
21
+ type ThemeMode = 'light' | 'dark' | 'auto';
22
+ declare class ThemeService implements OnDestroy {
23
23
  private overlay;
24
24
  private renderer;
25
25
  private _theme;
26
26
  theme: i0.Signal<ThemeMode>;
27
27
  private _activeTheme;
28
28
  activeTheme: i0.Signal<"light-theme" | "dark-theme">;
29
+ private observer;
30
+ private mediaQueryListener;
29
31
  constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer);
30
32
  setTheme(mode: ThemeMode): void;
31
33
  private updateActiveTheme;
34
+ private handleAutoTheme;
35
+ private detectAndApplyParentTheme;
36
+ private isParentDark;
32
37
  private applyThemeToGlobal;
38
+ private cleanupObservers;
39
+ ngOnDestroy(): void;
33
40
  static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
34
41
  static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
35
42
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aakash58/chatbot",
3
- "version": "1.0.72",
4
- "description": "Angular chatbot package",
3
+ "version": "1.0.74",
4
+ "description": "theme overide",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.0",
7
7
  "@angular/core": "^20.3.0"
@@ -0,0 +1,9 @@
1
+ <svg width="250" height="250" viewBox="0 0 250 250" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M50 51.9014C81.7317 47.423 115.038 50.9292 142.593 61.6494C170.147 72.3696 189.692 89.4255 196.928 109.064C204.164 128.703 198.498 149.317 181.177 166.371C163.856 183.425 136.298 195.522 104.566 200L78.7197 129.85C98.4298 134.164 112.917 147.168 113.764 162.754L113.853 164.381L113.94 162.754C114.956 144.069 135.576 129.09 161.299 128.353L163.539 128.288L161.299 128.224C135.576 127.486 114.954 112.507 113.94 93.8213L113.853 92.1943L113.764 93.8213C112.903 109.687 97.9049 122.878 77.6514 126.95L77.2832 125.95L50 51.9014Z" fill="url(#paint0_linear_2341_5844)"/>
3
+ <defs>
4
+ <linearGradient id="paint0_linear_2341_5844" x1="50" y1="51.208" x2="200" y2="198.792" gradientUnits="userSpaceOnUse">
5
+ <stop stop-color="#4F46E5"/>
6
+ <stop offset="1" stop-color="#8878FF"/>
7
+ </linearGradient>
8
+ </defs>
9
+ </svg>
@@ -0,0 +1,17 @@
1
+ <svg width="644" height="208" viewBox="0 0 644 208" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M552.783 88.2587H567.365V58.6621H574.583V88.2587H589.165V95.4774H574.583V157.991H567.365V95.4774H552.783V88.2587Z" fill="#4F46E5"/>
3
+ <path d="M486.008 157.992C478.5 157.992 472.87 152.362 472.87 144.854V101.687C472.87 94.3235 478.789 88.2598 486.008 88.2598H529.609C536.972 88.2598 542.747 94.3235 542.747 101.687V144.854C542.747 152.362 537.116 157.992 529.609 157.992H486.008ZM485.863 95.4784C482.543 95.4784 480.088 98.3659 480.088 101.542V144.854C480.088 148.03 482.687 150.774 485.863 150.774H529.609C532.929 150.774 535.528 148.175 535.528 144.854V101.542C535.528 98.2215 533.218 95.4784 529.609 95.4784H485.863Z" fill="#4F46E5"/>
4
+ <path d="M446.74 157.991H390.001V58.6621H397.22V88.2587H446.74C454.248 88.2587 459.878 93.8893 459.878 101.541V144.709C459.878 152.072 454.103 157.991 446.74 157.991ZM397.22 95.4774V150.772H446.74C450.349 150.772 452.659 147.885 452.659 144.709V101.397C452.659 98.0761 450.061 95.4774 446.74 95.4774H397.22Z" fill="#4F46E5"/>
5
+ <path d="M307.133 58.6621H314.352V88.2587H363.728C371.091 88.2587 377.01 94.178 377.01 101.541V157.991H369.791V101.397C369.791 97.9317 366.904 95.4774 363.728 95.4774H314.352V157.991H307.133V58.6621Z" fill="#4F46E5"/>
6
+ <path d="M234.583 157.992C227.075 157.992 221.445 152.362 221.445 144.854V101.687C221.445 94.3235 227.364 88.2598 234.583 88.2598H278.184C285.547 88.2598 291.322 94.3235 291.322 101.687V144.854C291.322 152.362 285.691 157.992 278.184 157.992H234.583ZM234.438 95.4784C231.118 95.4784 228.663 98.3659 228.663 101.542V144.854C228.663 148.03 231.262 150.774 234.438 150.774H278.184C281.504 150.774 284.103 148.175 284.103 144.854V101.542C284.103 98.2215 281.793 95.4784 278.184 95.4784H234.438Z" fill="#4F46E5"/>
7
+ <path d="M148.894 157.992C141.387 157.992 135.756 152.362 135.756 144.854V101.687C135.756 94.3235 141.676 88.2598 148.894 88.2598H192.495C199.858 88.2598 205.633 94.3235 205.633 101.687V144.854C205.633 152.362 200.003 157.992 192.495 157.992H148.894ZM148.75 95.4784C145.429 95.4784 142.975 98.3659 142.975 101.542V144.854C142.975 148.03 145.574 150.774 148.75 150.774H192.495C195.816 150.774 198.415 148.175 198.415 144.854V101.542C198.415 98.2215 196.105 95.4784 192.495 95.4784H148.75Z" fill="#4F46E5"/>
8
+ <path d="M50 101.541C50 93.8893 55.6306 88.2587 63.1381 88.2587H112.658V58.6621H119.877V157.991H63.1381C55.9193 157.991 50 152.072 50 144.709V101.541ZM57.2187 101.397V144.709C57.2187 147.885 59.5287 150.772 62.9937 150.772H112.658V95.4774H62.9937C59.6731 95.4774 57.2187 98.0761 57.2187 101.397Z" fill="#4F46E5"/>
9
+ <path d="M67.3248 119.299H74.5435V126.518H67.3248V119.299Z" fill="#4F46E5"/>
10
+ <path d="M80.3186 119.299H87.5373V126.518H80.3186V119.299Z" fill="#4F46E5"/>
11
+ <path d="M93.3124 119.299H100.531V126.518H93.3124V119.299Z" fill="#4F46E5"/>
12
+ <ellipse cx="497.56" cy="122.187" rx="5.77497" ry="5.77494" fill="#4F46E5"/>
13
+ <ellipse cx="517.772" cy="122.187" rx="5.77497" ry="5.77494" fill="#4F46E5"/>
14
+ <ellipse cx="507.667" cy="56.3524" rx="6.35246" ry="6.35244" fill="#4F46E5"/>
15
+ <path d="M491.785 83.2071C491.785 81.2926 493.458 79.4565 496.437 78.1027C499.415 76.749 503.454 75.9884 507.666 75.9884C511.878 75.9884 515.918 76.749 518.896 78.1027C521.874 79.4565 523.547 81.2926 523.547 83.2071L507.666 83.2071H491.785Z" fill="#4F46E5"/>
16
+ <rect x="504.49" y="58.6621" width="6.35246" height="20.2123" fill="#4F46E5"/>
17
+ </svg>