@aakash58/chatbot 1.0.44 → 1.0.45

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
@@ -13,9 +13,18 @@ declare class ThemeService {
13
13
  theme: _angular_core.Signal<ThemeMode>;
14
14
  private _activeTheme;
15
15
  activeTheme: _angular_core.Signal<"light-theme" | "dark-theme">;
16
+ private themeObserver?;
16
17
  constructor(rendererFactory: RendererFactory2, overlay: OverlayContainer);
17
18
  /**
18
- * Set theme from parent application
19
+ * Detect theme from parent app's body/html classes
20
+ */
21
+ private detectParentTheme;
22
+ /**
23
+ * Watch for theme changes in parent app using MutationObserver
24
+ */
25
+ private watchParentTheme;
26
+ /**
27
+ * Set theme (can be called manually or from parent app input)
19
28
  * @param mode 'light' or 'dark'
20
29
  */
21
30
  setTheme(mode: ThemeMode): void;
@@ -24,6 +33,10 @@ declare class ThemeService {
24
33
  */
25
34
  getTheme(): ThemeMode;
26
35
  private applyThemeToGlobal;
36
+ /**
37
+ * Clean up observer on destroy
38
+ */
39
+ ngOnDestroy(): void;
27
40
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeService, never>;
28
41
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
29
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aakash58/chatbot",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "description": "Apptheme support",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.3.0",