@ngxs/store 18.1.1-dev.master-2833d17 → 18.1.1-dev.master-a8f62df

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "18.1.1-dev.master-2833d17",
3
+ "version": "18.1.1-dev.master-a8f62df",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -1,5 +1,4 @@
1
1
  import { StateContext } from '../symbols';
2
- import { MappedStore } from '../internal/internals';
3
2
  import { InternalStateOperations } from '../internal/state-operations';
4
3
  import * as i0 from "@angular/core";
5
4
  /**
@@ -12,7 +11,7 @@ export declare class StateContextFactory {
12
11
  /**
13
12
  * Create the state context
14
13
  */
15
- createStateContext<T>(mappedStore: MappedStore): StateContext<T>;
14
+ createStateContext<T>(path: string): StateContext<T>;
16
15
  static ɵfac: i0.ɵɵFactoryDeclaration<StateContextFactory, never>;
17
16
  static ɵprov: i0.ɵɵInjectableDeclaration<StateContextFactory>;
18
17
  }
@@ -1,5 +1,5 @@
1
1
  import { Injector, OnDestroy } from '@angular/core';
2
- import { ɵStateClassInternal, ɵRuntimeSelectorContext } from '@ngxs/store/internals';
2
+ import { ɵStateClassInternal, ɵRuntimeSelectorContext, ɵActionHandlerMetaData } from '@ngxs/store/internals';
3
3
  import { Observable } from 'rxjs';
4
4
  import { NgxsConfig } from '../symbols';
5
5
  import { MappedStore, StatesAndDefaults, StatesByName } from './internals';
@@ -7,6 +7,10 @@ import { ActionContext, InternalActions } from '../actions-stream';
7
7
  import { InternalDispatchedActionResults } from '../internal/dispatcher';
8
8
  import { StateContextFactory } from '../internal/state-context-factory';
9
9
  import * as i0 from "@angular/core";
10
+ interface InvokableActionHandlerMetaData extends ɵActionHandlerMetaData {
11
+ path: string;
12
+ instance: any;
13
+ }
10
14
  /**
11
15
  * The `StateFactory` class adds root and feature states to the graph.
12
16
  * This extracts state names from state classes, checks if they already
@@ -32,6 +36,8 @@ export declare class StateFactory implements OnDestroy {
32
36
  private _propGetter;
33
37
  private _ngxsUnhandledErrorHandler;
34
38
  constructor(_injector: Injector, _config: NgxsConfig, _parentFactory: StateFactory, _actions: InternalActions, _actionResults: InternalDispatchedActionResults, _stateContextFactory: StateContextFactory, _initialState: any);
39
+ private _actionTypeToMetasMap;
40
+ get actionTypeToMetasMap(): Map<string, InvokableActionHandlerMetaData[]>;
35
41
  private _states;
36
42
  get states(): MappedStore[];
37
43
  private _statesByName;
@@ -52,10 +58,12 @@ export declare class StateFactory implements OnDestroy {
52
58
  /**
53
59
  * Invoke actions on the states.
54
60
  */
55
- invokeActions(dispatched$: Observable<ActionContext>, action: any): Observable<[any]>;
61
+ invokeActions(dispatched$: Observable<ActionContext>, action: any): Observable<any[]>;
56
62
  private addToStatesMap;
57
63
  private addRuntimeInfoToMeta;
58
64
  private hasBeenMountedAndBootstrapped;
65
+ private hydrateActionMetasMap;
59
66
  static ɵfac: i0.ɵɵFactoryDeclaration<StateFactory, [null, null, { optional: true; skipSelf: true; }, null, null, null, { optional: true; }]>;
60
67
  static ɵprov: i0.ɵɵInjectableDeclaration<StateFactory>;
61
68
  }
69
+ export {};
@@ -1,13 +1,13 @@
1
- import { NgxsPlugin, NgxsPluginFn } from '@ngxs/store/plugins';
1
+ import { NgxsPluginFn } from '@ngxs/store/plugins';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class PluginManager {
4
- private _parentManager;
5
- private _pluginHandlers;
6
- plugins: NgxsPluginFn[];
7
- constructor(_parentManager: PluginManager, _pluginHandlers: NgxsPlugin[]);
8
- private get rootPlugins();
4
+ readonly plugins: NgxsPluginFn[];
5
+ private readonly _parentManager;
6
+ private readonly _pluginHandlers;
7
+ constructor();
8
+ private get _rootPlugins();
9
9
  private registerHandlers;
10
10
  private getPluginHandlers;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<PluginManager, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<PluginManager, never>;
12
12
  static ɵprov: i0.ɵɵInjectableDeclaration<PluginManager>;
13
13
  }