@ngxs/store 18.1.1-dev.master-76347ef → 18.1.1-dev.master-e935e57

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-76347ef",
3
+ "version": "18.1.1-dev.master-e935e57",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -32,18 +32,18 @@
32
32
  "esm": "./esm2022/internals/ngxs-store-internals.mjs",
33
33
  "default": "./fesm2022/ngxs-store-internals.mjs"
34
34
  },
35
- "./plugins": {
36
- "types": "./plugins/index.d.ts",
37
- "esm2022": "./esm2022/plugins/ngxs-store-plugins.mjs",
38
- "esm": "./esm2022/plugins/ngxs-store-plugins.mjs",
39
- "default": "./fesm2022/ngxs-store-plugins.mjs"
40
- },
41
35
  "./operators": {
42
36
  "types": "./operators/index.d.ts",
43
37
  "esm2022": "./esm2022/operators/ngxs-store-operators.mjs",
44
38
  "esm": "./esm2022/operators/ngxs-store-operators.mjs",
45
39
  "default": "./fesm2022/ngxs-store-operators.mjs"
46
40
  },
41
+ "./plugins": {
42
+ "types": "./plugins/index.d.ts",
43
+ "esm2022": "./esm2022/plugins/ngxs-store-plugins.mjs",
44
+ "esm": "./esm2022/plugins/ngxs-store-plugins.mjs",
45
+ "default": "./fesm2022/ngxs-store-plugins.mjs"
46
+ },
47
47
  "./internals/testing": {
48
48
  "types": "./internals/testing/index.d.ts",
49
49
  "esm2022": "./esm2022/internals/testing/ngxs-store-internals-testing.mjs",
@@ -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 {};