asksuite-citrus 3.15.1 → 3.15.2

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.
@@ -1,13 +1,17 @@
1
1
  import { StorageUtilService } from "../storage/storage-util.service";
2
+ import { BehaviorSubject } from 'rxjs';
2
3
  import * as i0 from "@angular/core";
4
+ type Theme = 'dark' | 'light';
3
5
  export declare class ThemeService {
4
6
  private readonly storageUtilService;
5
- theme: 'dark' | 'light';
6
7
  themeKey: string;
7
- constructor(storageUtilService: StorageUtilService<'dark' | 'light'>);
8
- getTheme(): "dark" | "light";
9
- setTheme(theme: 'dark' | 'light'): void;
8
+ theme$: BehaviorSubject<Theme>;
9
+ constructor(storageUtilService: StorageUtilService<Theme>);
10
+ getTheme(): Theme;
11
+ setTheme(theme: Theme): void;
12
+ listenThemeChange(): import("rxjs").Observable<Theme>;
10
13
  private saveTheme;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
12
15
  static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
13
16
  }
17
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asksuite-citrus",
3
- "version": "3.15.1",
3
+ "version": "3.15.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.7",
6
6
  "@angular/core": "^17.3.7",