@ngxs/router-plugin 3.8.1-dev.master-b5c0348 → 3.8.1-dev.master-22b962e

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.
@@ -7,7 +7,7 @@ export declare class Navigate {
7
7
  path: any[];
8
8
  queryParams?: Params | undefined;
9
9
  extras?: NavigationExtras | undefined;
10
- static get type(): string;
10
+ static readonly type = "[Router] Navigate";
11
11
  constructor(path: any[], queryParams?: Params | undefined, extras?: NavigationExtras | undefined);
12
12
  }
13
13
  /**
@@ -22,7 +22,7 @@ export declare class RouterRequest<T = RouterStateSnapshot> {
22
22
  routerState: T;
23
23
  event: NavigationStart;
24
24
  trigger: RouterTrigger;
25
- static get type(): string;
25
+ static readonly type = "[Router] RouterRequest";
26
26
  constructor(routerState: T, event: NavigationStart, trigger?: RouterTrigger);
27
27
  }
28
28
  /**
@@ -32,7 +32,7 @@ export declare class RouterNavigation<T = RouterStateSnapshot> {
32
32
  routerState: T;
33
33
  event: RoutesRecognized;
34
34
  trigger: RouterTrigger;
35
- static get type(): string;
35
+ static readonly type = "[Router] RouterNavigation";
36
36
  constructor(routerState: T, event: RoutesRecognized, trigger?: RouterTrigger);
37
37
  }
38
38
  /**
@@ -43,7 +43,7 @@ export declare class RouterCancel<T, V = RouterStateSnapshot> {
43
43
  storeState: T;
44
44
  event: NavigationCancel;
45
45
  trigger: RouterTrigger;
46
- static get type(): string;
46
+ static readonly type = "[Router] RouterCancel";
47
47
  constructor(routerState: V, storeState: T, event: NavigationCancel, trigger?: RouterTrigger);
48
48
  }
49
49
  /**
@@ -54,7 +54,7 @@ export declare class RouterError<T, V = RouterStateSnapshot> {
54
54
  storeState: T;
55
55
  event: NavigationError;
56
56
  trigger: RouterTrigger;
57
- static get type(): string;
57
+ static readonly type = "[Router] RouterError";
58
58
  constructor(routerState: V, storeState: T, event: NavigationError, trigger?: RouterTrigger);
59
59
  }
60
60
  /**
@@ -64,7 +64,7 @@ export declare class RouterDataResolved<T = RouterStateSnapshot> {
64
64
  routerState: T;
65
65
  event: ResolveEnd;
66
66
  trigger: RouterTrigger;
67
- static get type(): string;
67
+ static readonly type = "[Router] RouterDataResolved";
68
68
  constructor(routerState: T, event: ResolveEnd, trigger?: RouterTrigger);
69
69
  }
70
70
  /**
@@ -74,7 +74,7 @@ export declare class RouterNavigated<T = RouterStateSnapshot> {
74
74
  routerState: T;
75
75
  event: NavigationEnd;
76
76
  trigger: RouterTrigger;
77
- static get type(): string;
77
+ static readonly type = "[Router] RouterNavigated";
78
78
  constructor(routerState: T, event: NavigationEnd, trigger?: RouterTrigger);
79
79
  }
80
80
  /**
@@ -1,5 +1,5 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
- import { NgxsRouterPluginOptions } from './symbols';
2
+ import { NgxsRouterPluginOptions } from '@ngxs/router-plugin/internals';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "@ngxs/store";
5
5
  export declare class NgxsRouterPluginModule {
@@ -1,9 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export const USER_OPTIONS = new InjectionToken('USER_OPTIONS', { providedIn: 'root', factory: () => undefined });
3
- export const NGXS_ROUTER_PLUGIN_OPTIONS = new InjectionToken('NGXS_ROUTER_PLUGIN_OPTIONS', { providedIn: 'root', factory: () => ({}) });
4
- export function createRouterPluginOptions(options) {
5
- return {
6
- navigationActionTiming: (options && options.navigationActionTiming) || 1 /* PreActivation */
7
- };
8
- }
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ltYm9scy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL3JvdXRlci1wbHVnaW4vc3JjL3N5bWJvbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQVcvQyxNQUFNLENBQUM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mluZWQgfVxuKTtcblxuZXhwb3J0IGNvbnN0IE5HWFNfUk9VVEVSX1BMVUdJTl9PUFRJT05TID0gbmV3IEluamVjdGlvblRva2VuPE5neHNSb3V0ZXJQbHVnaW5PcHRpb25zPihcbiAgJ05HWFNfUk9VVEVSX1BMVUdJTl9PUFRJT05TJyxcbiAgeyBwcm92aWRlZEluOiAncm9vdCcsIGZhY3Rvcnk6ICgpID0+ICh7fSkgfVxuKTtcblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZVJvdXRlclBsdWdpbk9wdGlvbnMoXG4gIG9wdGlvbnM6IE5neHNSb3V0ZXJQbHVnaW5PcHRpb25zIHwgdW5kZWZpbmVkXG4pOiBOZ3hzUm91dGVyUGx1Z2luT3B0aW9ucyB7XG4gIHJldHVybiB7XG4gICAgbmF2aWdhdGlvbkFjdGlvblRpbWluZzpcbiAgICAgIChvcHRpb25zICYmIG9wdGlvbnMubmF2aWdhdGlvbkFjdGlvblRpbWluZykgfHwgTmF2aWdhdGlvbkFjdGlvblRpbWluZy5QcmVBY3RpdmF0aW9uXG4gIH07XG59XG4iXX0=
package/src/symbols.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const enum NavigationActionTiming {
3
- PreActivation = 1,
4
- PostActivation = 2
5
- }
6
- export interface NgxsRouterPluginOptions {
7
- navigationActionTiming?: NavigationActionTiming;
8
- }
9
- export declare const USER_OPTIONS: InjectionToken<NgxsRouterPluginOptions | undefined>;
10
- export declare const NGXS_ROUTER_PLUGIN_OPTIONS: InjectionToken<NgxsRouterPluginOptions>;
11
- export declare function createRouterPluginOptions(options: NgxsRouterPluginOptions | undefined): NgxsRouterPluginOptions;