@ecodev/natural 45.4.0 → 45.4.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.
@@ -43,11 +43,11 @@ export declare class NaturalSidenavService extends NaturalAbstractController {
43
43
  /**
44
44
  * LocalStorage key that stores the minimized status
45
45
  */
46
- private minimizedStorageKey;
46
+ private readonly minimizedStorageKey;
47
47
  /**
48
48
  * LocalStorage key that stores the opened status
49
49
  */
50
- private openedStorageKey;
50
+ private readonly openedStorageKey;
51
51
  private minimizedStorageKeyWithName;
52
52
  private openedStorageKeyWithName;
53
53
  constructor(mediaObserver: MediaObserver, router: Router, sessionStorage: NaturalStorage, naturalSidenavStackService: NaturalSidenavStackService);
@@ -8,8 +8,8 @@ import * as i0 from "@angular/core";
8
8
  *
9
9
  * `storageKey` is only given if the value is coming from session storage (and not from URL).
10
10
  */
11
- declare type PersistenceValidator = (key: string, storageKey: string | null, value: unknown) => boolean;
12
- export declare const PERSISTENCE_VALIDATOR: InjectionToken<PersistenceValidator>;
11
+ export declare type PersistenceValidator = (key: string, storageKey: string | null, value: unknown) => boolean;
12
+ export declare const NATURAL_PERSISTENCE_VALIDATOR: InjectionToken<PersistenceValidator>;
13
13
  export declare class NaturalPersistenceService {
14
14
  private readonly router;
15
15
  private readonly sessionStorage;
@@ -50,4 +50,3 @@ export declare class NaturalPersistenceService {
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<NaturalPersistenceService, [null, null, { optional: true; }]>;
51
51
  static ɵprov: i0.ɵɵInjectableDeclaration<NaturalPersistenceService>;
52
52
  }
53
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "45.4.0",
3
+ "version": "45.4.2",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,
package/public-api.d.ts CHANGED
@@ -15,7 +15,7 @@ export * from './lib/services/abstract-model.service';
15
15
  export { NaturalDebounceService } from './lib/services/debounce.service';
16
16
  export * from './lib/services/enum.service';
17
17
  export * from './lib/services/link-mutation.service';
18
- export { NaturalPersistenceService, PERSISTENCE_VALIDATOR } from './lib/services/persistence.service';
18
+ export { NaturalPersistenceService, NATURAL_PERSISTENCE_VALIDATOR } from './lib/services/persistence.service';
19
19
  export * from './lib/services/swiss-parsing-date-adapter.service';
20
20
  export * from './lib/types/types';
21
21
  export * from './lib/modules/alert/public-api';