@ngxs/store 3.7.6-dev.master-fb318b1 → 3.7.6-dev.master-40a2210
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/bundles/ngxs-store-internals-testing.umd.js +409 -420
- package/bundles/ngxs-store-internals-testing.umd.js.map +1 -1
- package/bundles/ngxs-store-internals.umd.js +48 -117
- package/bundles/ngxs-store-internals.umd.js.map +1 -1
- package/bundles/ngxs-store-operators.umd.js +61 -402
- package/bundles/ngxs-store-operators.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.js +1041 -3269
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/esm2015/index.js +7 -7
- package/esm2015/internals/angular.js +1 -8
- package/esm2015/internals/index.js +2 -6
- package/esm2015/internals/initial-state.js +1 -21
- package/esm2015/internals/internal-tokens.js +4 -15
- package/esm2015/internals/memoize.js +8 -33
- package/esm2015/internals/ngxs-bootstrapper.js +7 -20
- package/esm2015/internals/ngxs-store-internals.js +2 -6
- package/esm2015/internals/src/symbols.js +2 -14
- package/esm2015/internals/symbols.js +2 -14
- package/esm2015/internals/testing/fresh-platform.js +13 -53
- package/esm2015/internals/testing/helpers/ngxs-test.component.js +11 -17
- package/esm2015/internals/testing/helpers/ngxs-test.module.js +13 -16
- package/esm2015/internals/testing/index.js +1 -5
- package/esm2015/internals/testing/ngxs-store-internals-testing.js +2 -6
- package/esm2015/internals/testing/ngxs.setup.js +1 -31
- package/esm2015/internals/testing/skip-console-logging.js +7 -42
- package/esm2015/internals/testing/symbol.js +2 -29
- package/esm2015/ngxs-store.js +2 -23
- package/esm2015/operators/append.js +7 -18
- package/esm2015/operators/compose.js +4 -22
- package/esm2015/operators/iif.js +12 -30
- package/esm2015/operators/index.js +2 -6
- package/esm2015/operators/insert-item.js +10 -22
- package/esm2015/operators/ngxs-store-operators.js +2 -6
- package/esm2015/operators/patch.js +5 -22
- package/esm2015/operators/remove-item.js +5 -17
- package/esm2015/operators/types.js +2 -5
- package/esm2015/operators/update-item.js +12 -26
- package/esm2015/operators/utils.js +1 -32
- package/esm2015/src/actions/actions.js +1 -18
- package/esm2015/src/actions/symbols.js +2 -39
- package/esm2015/src/actions-stream.js +24 -90
- package/esm2015/src/configs/messages.config.js +1 -44
- package/esm2015/src/decorators/action.js +3 -18
- package/esm2015/src/decorators/select/select-factory.js +10 -27
- package/esm2015/src/decorators/select/select.js +3 -22
- package/esm2015/src/decorators/select/symbols.js +4 -25
- package/esm2015/src/decorators/selector/selector.js +5 -29
- package/esm2015/src/decorators/selector/symbols.js +2 -5
- package/esm2015/src/decorators/selector-options.js +4 -18
- package/esm2015/src/decorators/state.js +5 -44
- package/esm2015/src/dev-features/ngxs-development.module.js +8 -12
- package/esm2015/src/dev-features/ngxs-unhandled-actions-logger.js +12 -37
- package/esm2015/src/dev-features/symbols.js +2 -18
- package/esm2015/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +10 -56
- package/esm2015/src/execution/internal-ngxs-execution-strategy.js +10 -32
- package/esm2015/src/execution/noop-ngxs-execution-strategy.js +7 -19
- package/esm2015/src/execution/symbols.js +3 -32
- package/esm2015/src/internal/dispatcher.js +26 -121
- package/esm2015/src/internal/error-handler.js +18 -72
- package/esm2015/src/internal/internals.js +24 -244
- package/esm2015/src/internal/lifecycle-state-manager.js +19 -117
- package/esm2015/src/internal/state-context-factory.js +9 -67
- package/esm2015/src/internal/state-factory.js +42 -225
- package/esm2015/src/internal/state-operations.js +19 -80
- package/esm2015/src/internal/state-operators.js +6 -20
- package/esm2015/src/internal/state-stream.js +7 -13
- package/esm2015/src/ivy/ivy-enabled-in-dev-mode.js +7 -17
- package/esm2015/src/module.js +12 -47
- package/esm2015/src/modules/ngxs-feature.module.js +18 -36
- package/esm2015/src/modules/ngxs-root.module.js +18 -26
- package/esm2015/src/operators/leave-ngxs.js +8 -43
- package/esm2015/src/operators/of-action.js +16 -111
- package/esm2015/src/plugin-manager.js +17 -50
- package/esm2015/src/plugin_api.js +1 -5
- package/esm2015/src/private_api.js +3 -0
- package/esm2015/src/public_api.js +1 -5
- package/esm2015/src/public_to_deprecate.js +1 -51
- package/esm2015/src/state-token/state-token.js +4 -32
- package/esm2015/src/state-token/symbols.js +2 -5
- package/esm2015/src/store.js +20 -104
- package/esm2015/src/symbols.js +7 -177
- package/esm2015/src/utils/compose.js +5 -23
- package/esm2015/src/utils/freeze.js +5 -20
- package/esm2015/src/utils/selector-utils.js +23 -136
- package/esm2015/src/utils/store-validators.js +3 -36
- package/esm2015/src/utils/utils.js +13 -64
- package/fesm2015/ngxs-store-internals-testing.js +38 -159
- package/fesm2015/ngxs-store-internals-testing.js.map +1 -1
- package/fesm2015/ngxs-store-internals.js +18 -100
- package/fesm2015/ngxs-store-internals.js.map +1 -1
- package/fesm2015/ngxs-store-operators.js +53 -186
- package/fesm2015/ngxs-store-operators.js.map +1 -1
- package/fesm2015/ngxs-store.js +400 -2473
- package/fesm2015/ngxs-store.js.map +1 -1
- package/index.d.ts +4 -0
- package/internals/index.d.ts +1 -1
- package/internals/internal-tokens.d.ts +2 -8
- package/internals/ngxs-bootstrapper.d.ts +4 -1
- package/internals/ngxs-store-internals.d.ts +1 -0
- package/internals/package.json +2 -5
- package/internals/testing/helpers/ngxs-test.component.d.ts +3 -0
- package/internals/testing/helpers/ngxs-test.module.d.ts +6 -0
- package/internals/testing/ngxs-store-internals-testing.d.ts +1 -0
- package/internals/testing/package.json +2 -5
- package/ngxs-store.d.ts +1 -18
- package/operators/index.d.ts +2 -2
- package/operators/ngxs-store-operators.d.ts +1 -0
- package/operators/package.json +2 -5
- package/operators/patch.d.ts +2 -2
- package/operators/types.d.ts +6 -3
- package/package.json +3 -6
- package/src/actions/actions.d.ts +2 -2
- package/src/actions-stream.d.ts +5 -0
- package/src/decorators/select/select-factory.d.ts +3 -0
- package/src/decorators/state.d.ts +1 -1
- package/src/dev-features/ngxs-development.module.d.ts +4 -0
- package/src/dev-features/ngxs-unhandled-actions-logger.d.ts +3 -0
- package/src/execution/dispatch-outside-zone-ngxs-execution-strategy.d.ts +3 -0
- package/src/execution/internal-ngxs-execution-strategy.d.ts +3 -0
- package/src/execution/noop-ngxs-execution-strategy.d.ts +3 -0
- package/src/internal/dispatcher.d.ts +5 -0
- package/src/internal/error-handler.d.ts +4 -1
- package/src/internal/lifecycle-state-manager.d.ts +3 -0
- package/src/internal/state-context-factory.d.ts +3 -0
- package/src/internal/state-factory.d.ts +7 -4
- package/src/internal/state-operations.d.ts +3 -0
- package/src/internal/state-stream.d.ts +3 -0
- package/src/module.d.ts +4 -0
- package/src/modules/ngxs-feature.module.d.ts +4 -0
- package/src/modules/ngxs-root.module.d.ts +4 -0
- package/src/plugin-manager.d.ts +4 -1
- package/src/private_api.d.ts +2 -0
- package/src/store.d.ts +3 -0
- package/src/symbols.d.ts +4 -1
- package/src/utils/utils.d.ts +1 -1
- package/bundles/ngxs-store-internals-testing.umd.min.js +0 -16
- package/bundles/ngxs-store-internals-testing.umd.min.js.map +0 -1
- package/bundles/ngxs-store-internals.umd.min.js +0 -2
- package/bundles/ngxs-store-internals.umd.min.js.map +0 -1
- package/bundles/ngxs-store-operators.umd.min.js +0 -16
- package/bundles/ngxs-store-operators.umd.min.js.map +0 -1
- package/bundles/ngxs-store.umd.min.js +0 -16
- package/bundles/ngxs-store.umd.min.js.map +0 -1
- package/esm5/index.js +0 -13
- package/esm5/internals/angular.js +0 -20
- package/esm5/internals/index.js +0 -10
- package/esm5/internals/initial-state.js +0 -45
- package/esm5/internals/internal-tokens.js +0 -16
- package/esm5/internals/memoize.js +0 -71
- package/esm5/internals/ngxs-bootstrapper.js +0 -56
- package/esm5/internals/ngxs-store-internals.js +0 -9
- package/esm5/internals/src/symbols.js +0 -14
- package/esm5/internals/symbols.js +0 -14
- package/esm5/internals/testing/fresh-platform.js +0 -121
- package/esm5/internals/testing/helpers/ngxs-test.component.js +0 -32
- package/esm5/internals/testing/helpers/ngxs-test.module.js +0 -32
- package/esm5/internals/testing/index.js +0 -8
- package/esm5/internals/testing/ngxs-store-internals-testing.js +0 -9
- package/esm5/internals/testing/ngxs.setup.js +0 -98
- package/esm5/internals/testing/skip-console-logging.js +0 -62
- package/esm5/internals/testing/symbol.js +0 -29
- package/esm5/ngxs-store.js +0 -26
- package/esm5/operators/append.js +0 -31
- package/esm5/operators/compose.js +0 -28
- package/esm5/operators/iif.js +0 -56
- package/esm5/operators/index.js +0 -18
- package/esm5/operators/insert-item.js +0 -41
- package/esm5/operators/ngxs-store-operators.js +0 -9
- package/esm5/operators/patch.js +0 -39
- package/esm5/operators/remove-item.js +0 -34
- package/esm5/operators/types.js +0 -5
- package/esm5/operators/update-item.js +0 -54
- package/esm5/operators/utils.js +0 -50
- package/esm5/src/actions/actions.js +0 -62
- package/esm5/src/actions/symbols.js +0 -39
- package/esm5/src/actions-stream.js +0 -201
- package/esm5/src/configs/messages.config.js +0 -79
- package/esm5/src/decorators/action.js +0 -60
- package/esm5/src/decorators/select/select-factory.js +0 -46
- package/esm5/src/decorators/select/select.js +0 -50
- package/esm5/src/decorators/select/symbols.js +0 -51
- package/esm5/src/decorators/selector/selector.js +0 -59
- package/esm5/src/decorators/selector/symbols.js +0 -5
- package/esm5/src/decorators/selector-options.js +0 -34
- package/esm5/src/decorators/state.js +0 -78
- package/esm5/src/dev-features/ngxs-development.module.js +0 -34
- package/esm5/src/dev-features/ngxs-unhandled-actions-logger.js +0 -100
- package/esm5/src/dev-features/symbols.js +0 -22
- package/esm5/src/execution/dispatch-outside-zone-ngxs-execution-strategy.js +0 -123
- package/esm5/src/execution/internal-ngxs-execution-strategy.js +0 -54
- package/esm5/src/execution/noop-ngxs-execution-strategy.js +0 -43
- package/esm5/src/execution/symbols.js +0 -52
- package/esm5/src/internal/dispatcher.js +0 -231
- package/esm5/src/internal/error-handler.js +0 -125
- package/esm5/src/internal/internals.js +0 -470
- package/esm5/src/internal/lifecycle-state-manager.js +0 -224
- package/esm5/src/internal/state-context-factory.js +0 -135
- package/esm5/src/internal/state-factory.js +0 -599
- package/esm5/src/internal/state-operations.js +0 -134
- package/esm5/src/internal/state-operators.js +0 -34
- package/esm5/src/internal/state-stream.js +0 -37
- package/esm5/src/ivy/ivy-enabled-in-dev-mode.js +0 -28
- package/esm5/src/module.js +0 -202
- package/esm5/src/modules/ngxs-feature.module.js +0 -65
- package/esm5/src/modules/ngxs-root.module.js +0 -44
- package/esm5/src/operators/leave-ngxs.js +0 -58
- package/esm5/src/operators/of-action.js +0 -223
- package/esm5/src/plugin-manager.js +0 -82
- package/esm5/src/plugin_api.js +0 -10
- package/esm5/src/public_api.js +0 -31
- package/esm5/src/public_to_deprecate.js +0 -64
- package/esm5/src/state-token/state-token.js +0 -57
- package/esm5/src/state-token/symbols.js +0 -5
- package/esm5/src/store.js +0 -241
- package/esm5/src/symbols.js +0 -230
- package/esm5/src/utils/compose.js +0 -55
- package/esm5/src/utils/freeze.js +0 -35
- package/esm5/src/utils/selector-utils.js +0 -230
- package/esm5/src/utils/store-validators.js +0 -78
- package/esm5/src/utils/utils.js +0 -151
- package/fesm5/ngxs-store-internals-testing.js +0 -345
- package/fesm5/ngxs-store-internals-testing.js.map +0 -1
- package/fesm5/ngxs-store-internals.js +0 -217
- package/fesm5/ngxs-store-internals.js.map +0 -1
- package/fesm5/ngxs-store-operators.js +0 -341
- package/fesm5/ngxs-store-operators.js.map +0 -1
- package/fesm5/ngxs-store.js +0 -4783
- package/fesm5/ngxs-store.js.map +0 -1
- package/internals/ngxs-store-internals.metadata.json +0 -1
- package/internals/testing/ngxs-store-internals-testing.metadata.json +0 -1
- package/ngxs-store.metadata.json +0 -1
- package/operators/ngxs-store-operators.metadata.json +0 -1
- package/types/index.d.ts +0 -2
package/index.d.ts
CHANGED
package/internals/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { NgxsBootstrapper } from './ngxs-bootstrapper';
|
|
|
3
3
|
export { memoize } from './memoize';
|
|
4
4
|
export { INITIAL_STATE_TOKEN, InitialState } from './initial-state';
|
|
5
5
|
export { PlainObjectOf, PlainObject, StateClass } from './symbols';
|
|
6
|
-
export { NGXS_STATE_CONTEXT_FACTORY, NGXS_STATE_FACTORY } from './internal-tokens';
|
|
6
|
+
export { ɵNGXS_STATE_CONTEXT_FACTORY, ɵNGXS_STATE_FACTORY } from './internal-tokens';
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export declare const NGXS_STATE_CONTEXT_FACTORY: InjectionToken<any>;
|
|
6
|
-
/**
|
|
7
|
-
* @see StateFactory as it's referenced by this token to be accessed by plugins internally
|
|
8
|
-
*/
|
|
9
|
-
export declare const NGXS_STATE_FACTORY: InjectionToken<any>;
|
|
2
|
+
export declare const ɵNGXS_STATE_FACTORY: InjectionToken<any>;
|
|
3
|
+
export declare const ɵNGXS_STATE_CONTEXT_FACTORY: InjectionToken<any>;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class NgxsBootstrapper {
|
|
3
4
|
/**
|
|
4
5
|
* Use `ReplaySubject`, thus we can get cached value even if the stream is completed
|
|
5
6
|
*/
|
|
6
7
|
private bootstrap$;
|
|
7
|
-
|
|
8
|
+
get appBootstrapped$(): Observable<boolean>;
|
|
8
9
|
/**
|
|
9
10
|
* This event will be emitted after attaching `ComponentRef` of the root component
|
|
10
11
|
* to the tree of views, that's a signal that application has been fully rendered
|
|
11
12
|
*/
|
|
12
13
|
bootstrap(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsBootstrapper, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgxsBootstrapper>;
|
|
13
16
|
}
|
package/internals/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"main": "../bundles/ngxs-store-internals.umd.js",
|
|
3
|
-
"module": "../
|
|
3
|
+
"module": "../fesm2015/ngxs-store-internals.js",
|
|
4
4
|
"es2015": "../fesm2015/ngxs-store-internals.js",
|
|
5
|
-
"esm5": "../esm5/internals/ngxs-store-internals.js",
|
|
6
5
|
"esm2015": "../esm2015/internals/ngxs-store-internals.js",
|
|
7
|
-
"fesm5": "../fesm5/ngxs-store-internals.js",
|
|
8
6
|
"fesm2015": "../fesm2015/ngxs-store-internals.js",
|
|
9
7
|
"typings": "ngxs-store-internals.d.ts",
|
|
10
|
-
"metadata": "ngxs-store-internals.metadata.json",
|
|
11
8
|
"sideEffects": false,
|
|
12
9
|
"name": "@ngxs/store/internals"
|
|
13
|
-
}
|
|
10
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class NgxsTestComponent implements OnInit, AfterViewInit {
|
|
3
4
|
ngOnInit(): void;
|
|
4
5
|
ngAfterViewInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsTestComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxsTestComponent, "app-root", never, {}, {}, never, never>;
|
|
5
8
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ApplicationRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./ngxs-test.component";
|
|
4
|
+
import * as i2 from "@angular/platform-browser";
|
|
2
5
|
export declare class NgxsTestModule {
|
|
3
6
|
static ngDoBootstrap(app: ApplicationRef): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsTestModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsTestModule, [typeof i1.NgxsTestComponent], [typeof i2.BrowserModule], never>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxsTestModule>;
|
|
4
10
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"main": "../../bundles/ngxs-store-internals-testing.umd.js",
|
|
3
|
-
"module": "../../
|
|
3
|
+
"module": "../../fesm2015/ngxs-store-internals-testing.js",
|
|
4
4
|
"es2015": "../../fesm2015/ngxs-store-internals-testing.js",
|
|
5
|
-
"esm5": "../../esm5/internals/testing/ngxs-store-internals-testing.js",
|
|
6
5
|
"esm2015": "../../esm2015/internals/testing/ngxs-store-internals-testing.js",
|
|
7
|
-
"fesm5": "../../fesm5/ngxs-store-internals-testing.js",
|
|
8
6
|
"fesm2015": "../../fesm2015/ngxs-store-internals-testing.js",
|
|
9
7
|
"typings": "ngxs-store-internals-testing.d.ts",
|
|
10
|
-
"metadata": "ngxs-store-internals-testing.metadata.json",
|
|
11
8
|
"sideEffects": false,
|
|
12
9
|
"name": "@ngxs/store/internals/testing"
|
|
13
|
-
}
|
|
10
|
+
}
|
package/ngxs-store.d.ts
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
|
+
/// <amd-module name="@ngxs/store" />
|
|
4
5
|
export * from './index';
|
|
5
|
-
export { InternalActions as ɵb, OrderedSubject as ɵa } from './src/actions-stream';
|
|
6
|
-
export { SelectFactory as ɵt } from './src/decorators/select/select-factory';
|
|
7
|
-
export { NGXS_DEVELOPMENT_OPTIONS as ɵj } from './src/dev-features/symbols';
|
|
8
|
-
export { InternalNgxsExecutionStrategy as ɵr } from './src/execution/internal-ngxs-execution-strategy';
|
|
9
|
-
export { NGXS_EXECUTION_STRATEGY as ɵi, USER_PROVIDED_NGXS_EXECUTION_STRATEGY as ɵh } from './src/execution/symbols';
|
|
10
|
-
export { InternalDispatchedActionResults as ɵm, InternalDispatcher as ɵn } from './src/internal/dispatcher';
|
|
11
|
-
export { InternalErrorReporter as ɵs } from './src/internal/error-handler';
|
|
12
|
-
export { StateClassInternal as ɵu, ensureSelectorMetadata as ɵx, ensureStoreMetadata as ɵv, getSelectorMetadata as ɵy, getStoreMetadata as ɵw } from './src/internal/internals';
|
|
13
|
-
export { LifecycleStateManager as ɵz } from './src/internal/lifecycle-state-manager';
|
|
14
|
-
export { StateContextFactory as ɵo } from './src/internal/state-context-factory';
|
|
15
|
-
export { StateFactory as ɵl } from './src/internal/state-factory';
|
|
16
|
-
export { InternalStateOperations as ɵp } from './src/internal/state-operations';
|
|
17
|
-
export { NgxsFeatureModule as ɵba } from './src/modules/ngxs-feature.module';
|
|
18
|
-
export { NgxsRootModule as ɵk } from './src/modules/ngxs-root.module';
|
|
19
|
-
export { PluginManager as ɵq } from './src/plugin-manager';
|
|
20
|
-
export { TokenName as ɵbb } from './src/state-token/symbols';
|
|
21
|
-
export { FEATURE_STATE_TOKEN as ɵd, NgxsConfig as ɵf, ROOT_STATE_TOKEN as ɵc, SELECTOR_META_KEY as ɵe } from './src/symbols';
|
|
22
|
-
export { mergeDeep as ɵg } from './src/utils/utils';
|
package/operators/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export { append } from './append';
|
|
|
7
7
|
export { compose } from './compose';
|
|
8
8
|
export { iif } from './iif';
|
|
9
9
|
export { insertItem } from './insert-item';
|
|
10
|
-
export { patch } from './patch';
|
|
11
|
-
export { isStateOperator } from './utils';
|
|
10
|
+
export { patch, ɵPatchSpec } from './patch';
|
|
11
|
+
export { isStateOperator, isPredicate, Predicate } from './utils';
|
|
12
12
|
export { updateItem } from './update-item';
|
|
13
13
|
export { removeItem } from './remove-item';
|
|
14
14
|
export { ExistingState, NoInfer, StateOperator } from './types';
|
package/operators/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"main": "../bundles/ngxs-store-operators.umd.js",
|
|
3
|
-
"module": "../
|
|
3
|
+
"module": "../fesm2015/ngxs-store-operators.js",
|
|
4
4
|
"es2015": "../fesm2015/ngxs-store-operators.js",
|
|
5
|
-
"esm5": "../esm5/operators/ngxs-store-operators.js",
|
|
6
5
|
"esm2015": "../esm2015/operators/ngxs-store-operators.js",
|
|
7
|
-
"fesm5": "../fesm5/ngxs-store-operators.js",
|
|
8
6
|
"fesm2015": "../fesm2015/ngxs-store-operators.js",
|
|
9
7
|
"typings": "ngxs-store-operators.d.ts",
|
|
10
|
-
"metadata": "ngxs-store-operators.metadata.json",
|
|
11
8
|
"sideEffects": false,
|
|
12
9
|
"name": "@ngxs/store/operators"
|
|
13
|
-
}
|
|
10
|
+
}
|
package/operators/patch.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NoInfer, StateOperator } from './types';
|
|
2
2
|
declare type NotUndefined<T> = T extends undefined ? never : T;
|
|
3
|
-
export declare type
|
|
3
|
+
export declare type ɵPatchSpec<T> = {
|
|
4
4
|
[P in keyof T]?: T[P] | StateOperator<NotUndefined<T[P]>>;
|
|
5
5
|
};
|
|
6
|
-
export declare function patch<T extends Record<string, any>>(patchObject: NoInfer
|
|
6
|
+
export declare function patch<T extends Record<string, any>>(patchObject: NoInfer<ɵPatchSpec<T>>): StateOperator<T>;
|
|
7
7
|
export {};
|
package/operators/types.d.ts
CHANGED
|
@@ -31,16 +31,19 @@ declare type _NoInfer<T> = T extends infer S ? S : never;
|
|
|
31
31
|
*/
|
|
32
32
|
export declare type NoInfer<T> = T extends (infer O)[] ? _NoInfer<O>[] : _NoInfer<T>;
|
|
33
33
|
/**
|
|
34
|
+
* IMPORTANT NOTE: This should not be used externally to the library, rather
|
|
35
|
+
* the exported type `ExistingState<T>` should be used instead.
|
|
36
|
+
*
|
|
34
37
|
* Used to convert a type to its readonly form. This can be given any type, from
|
|
35
38
|
* primitives to objects or arrays that could already be readonly or not.
|
|
36
|
-
* This does not apply the readonly construct to nested objects, but only to the top level type
|
|
39
|
+
* This does not apply the readonly construct to nested objects, but only to the top level type.
|
|
37
40
|
*/
|
|
38
|
-
|
|
41
|
+
declare type ɵAsReadonly<T> = T extends Readonly<infer O> ? (O extends T ? Readonly<T> : T) : T;
|
|
39
42
|
/**
|
|
40
43
|
* Represents the existing state that is passed into a `StateOperator` which should
|
|
41
44
|
* not be modified but will be used to build the new state returned by the `StateOperator`.
|
|
42
45
|
*/
|
|
43
|
-
export declare type ExistingState<T> =
|
|
46
|
+
export declare type ExistingState<T> = T extends any ? ɵAsReadonly<T> : never;
|
|
44
47
|
/**
|
|
45
48
|
* This is a monotype unary function that is used to create a new state from an existing state.
|
|
46
49
|
* A state operator is usually created by a function that is given some data
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../../node_modules/ng-packagr/package.schema.json",
|
|
3
3
|
"name": "@ngxs/store",
|
|
4
|
-
"version": "3.7.6-dev.master-
|
|
4
|
+
"version": "3.7.6-dev.master-40a2210",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"peerDependencies": {
|
|
@@ -9,16 +9,13 @@
|
|
|
9
9
|
"rxjs": ">=6.5.5"
|
|
10
10
|
},
|
|
11
11
|
"main": "bundles/ngxs-store.umd.js",
|
|
12
|
-
"module": "
|
|
12
|
+
"module": "fesm2015/ngxs-store.js",
|
|
13
13
|
"es2015": "fesm2015/ngxs-store.js",
|
|
14
|
-
"esm5": "esm5/ngxs-store.js",
|
|
15
14
|
"esm2015": "esm2015/ngxs-store.js",
|
|
16
|
-
"fesm5": "fesm5/ngxs-store.js",
|
|
17
15
|
"fesm2015": "fesm2015/ngxs-store.js",
|
|
18
16
|
"typings": "ngxs-store.d.ts",
|
|
19
|
-
"metadata": "ngxs-store.metadata.json",
|
|
20
17
|
"dependencies": {
|
|
21
|
-
"tslib": "^
|
|
18
|
+
"tslib": "^2.2.0"
|
|
22
19
|
},
|
|
23
20
|
"repository": {
|
|
24
21
|
"type": "git",
|
package/src/actions/actions.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { PlainObject } from '@ngxs/store/internals';
|
|
|
3
3
|
* Init action
|
|
4
4
|
*/
|
|
5
5
|
export declare class InitState {
|
|
6
|
-
static
|
|
6
|
+
static get type(): string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Update action
|
|
10
10
|
*/
|
|
11
11
|
export declare class UpdateState {
|
|
12
12
|
addedStates?: PlainObject | undefined;
|
|
13
|
-
static
|
|
13
|
+
static get type(): string;
|
|
14
14
|
constructor(addedStates?: PlainObject | undefined);
|
|
15
15
|
}
|
package/src/actions-stream.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Subject, Observable } from 'rxjs';
|
|
3
3
|
import { InternalNgxsExecutionStrategy } from './execution/internal-ngxs-execution-strategy';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Status of a dispatched action
|
|
6
7
|
*/
|
|
@@ -40,6 +41,8 @@ export declare class OrderedSubject<T> extends Subject<T> {
|
|
|
40
41
|
*/
|
|
41
42
|
export declare class InternalActions extends OrderedSubject<ActionContext> implements OnDestroy {
|
|
42
43
|
ngOnDestroy(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InternalActions, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InternalActions>;
|
|
43
46
|
}
|
|
44
47
|
/**
|
|
45
48
|
* Action stream that is emitted anytime an action is dispatched.
|
|
@@ -48,4 +51,6 @@ export declare class InternalActions extends OrderedSubject<ActionContext> imple
|
|
|
48
51
|
*/
|
|
49
52
|
export declare class Actions extends Observable<ActionContext> {
|
|
50
53
|
constructor(internalActions$: InternalActions, internalExecutionStrategy: InternalNgxsExecutionStrategy);
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Actions, never>;
|
|
55
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Actions>;
|
|
51
56
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Store } from '../../store';
|
|
3
3
|
import { NgxsConfig } from '../../symbols';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Allows the select decorator to get access to the DI store, this is used internally
|
|
6
7
|
* in `@Select` decorator.
|
|
@@ -10,4 +11,6 @@ export declare class SelectFactory implements OnDestroy {
|
|
|
10
11
|
static config: NgxsConfig | null;
|
|
11
12
|
constructor(store: Store, config: NgxsConfig);
|
|
12
13
|
ngOnDestroy(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectFactory, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SelectFactory>;
|
|
13
16
|
}
|
|
@@ -3,4 +3,4 @@ import { StoreOptions } from '../symbols';
|
|
|
3
3
|
/**
|
|
4
4
|
* Decorates a class with ngxs state information.
|
|
5
5
|
*/
|
|
6
|
-
export declare function State<T>(options: StoreOptions<T>): (target: StateClass
|
|
6
|
+
export declare function State<T>(options: StoreOptions<T>): (target: StateClass) => void;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import { NgxsDevelopmentOptions } from './symbols';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class NgxsDevelopmentModule {
|
|
4
5
|
static forRoot(options: NgxsDevelopmentOptions): ModuleWithProviders<NgxsDevelopmentModule>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsDevelopmentModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsDevelopmentModule, never, never, never>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxsDevelopmentModule>;
|
|
5
9
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActionType } from '../actions/symbols';
|
|
2
2
|
import { NgxsDevelopmentOptions } from './symbols';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class NgxsUnhandledActionsLogger {
|
|
4
5
|
/**
|
|
5
6
|
* These actions should be ignored by default; the user can increase this
|
|
@@ -11,4 +12,6 @@ export declare class NgxsUnhandledActionsLogger {
|
|
|
11
12
|
* Adds actions to the internal list of actions that should be ignored.
|
|
12
13
|
*/
|
|
13
14
|
ignoreActions(...actions: ActionType[]): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsUnhandledActionsLogger, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgxsUnhandledActionsLogger>;
|
|
14
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
2
|
import { NgxsExecutionStrategy } from './symbols';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class DispatchOutsideZoneNgxsExecutionStrategy implements NgxsExecutionStrategy {
|
|
4
5
|
private _ngZone;
|
|
5
6
|
private _platformId;
|
|
@@ -8,4 +9,6 @@ export declare class DispatchOutsideZoneNgxsExecutionStrategy implements NgxsExe
|
|
|
8
9
|
leave<T>(func: () => T): T;
|
|
9
10
|
private runInsideAngular;
|
|
10
11
|
private runOutsideAngular;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DispatchOutsideZoneNgxsExecutionStrategy, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DispatchOutsideZoneNgxsExecutionStrategy>;
|
|
11
14
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { NgxsExecutionStrategy } from './symbols';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class InternalNgxsExecutionStrategy implements NgxsExecutionStrategy {
|
|
3
4
|
private _executionStrategy;
|
|
4
5
|
constructor(_executionStrategy: NgxsExecutionStrategy);
|
|
5
6
|
enter<T>(func: () => T): T;
|
|
6
7
|
leave<T>(func: () => T): T;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InternalNgxsExecutionStrategy, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InternalNgxsExecutionStrategy>;
|
|
7
10
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { NgxsExecutionStrategy } from './symbols';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class NoopNgxsExecutionStrategy implements NgxsExecutionStrategy {
|
|
3
4
|
enter<T>(func: () => T): T;
|
|
4
5
|
leave<T>(func: () => T): T;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoopNgxsExecutionStrategy, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NoopNgxsExecutionStrategy>;
|
|
5
8
|
}
|
|
@@ -4,6 +4,7 @@ import { ActionContext, InternalActions } from '../actions-stream';
|
|
|
4
4
|
import { StateStream } from './state-stream';
|
|
5
5
|
import { PluginManager } from '../plugin-manager';
|
|
6
6
|
import { InternalNgxsExecutionStrategy } from '../execution/internal-ngxs-execution-strategy';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Internal Action result stream that is emitted when an action is completed.
|
|
9
10
|
* This is used as a method of returning the action result to the dispatcher
|
|
@@ -11,6 +12,8 @@ import { InternalNgxsExecutionStrategy } from '../execution/internal-ngxs-execut
|
|
|
11
12
|
* The dispatcher then asynchronously pushes the result from this stream onto the main action stream as a result.
|
|
12
13
|
*/
|
|
13
14
|
export declare class InternalDispatchedActionResults extends Subject<ActionContext> {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InternalDispatchedActionResults, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InternalDispatchedActionResults>;
|
|
14
17
|
}
|
|
15
18
|
export declare class InternalDispatcher {
|
|
16
19
|
private _actions;
|
|
@@ -28,4 +31,6 @@ export declare class InternalDispatcher {
|
|
|
28
31
|
private dispatchSingle;
|
|
29
32
|
private getActionResultStream;
|
|
30
33
|
private createDispatchObservable;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InternalDispatcher, never>;
|
|
35
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InternalDispatcher>;
|
|
31
36
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { NgxsExecutionStrategy } from '../execution/symbols';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* This operator is used for piping the observable result
|
|
6
7
|
* from the `dispatch()`. It has a "smart" error handling
|
|
@@ -13,11 +14,13 @@ import { NgxsExecutionStrategy } from '../execution/symbols';
|
|
|
13
14
|
* 4) `toPromise()` without `catch` -> do `handleError()`
|
|
14
15
|
* 5) `toPromise()` with `catch` -> don't `handleError()`
|
|
15
16
|
*/
|
|
16
|
-
export declare function ngxsErrorHandler<T>(internalErrorReporter: InternalErrorReporter, ngxsExecutionStrategy: NgxsExecutionStrategy): (source: Observable<T>) => Observable<
|
|
17
|
+
export declare function ngxsErrorHandler<T>(internalErrorReporter: InternalErrorReporter, ngxsExecutionStrategy: NgxsExecutionStrategy): (source: Observable<T>) => Observable<unknown>;
|
|
17
18
|
export declare class InternalErrorReporter {
|
|
18
19
|
private _injector;
|
|
19
20
|
/** Will be set lazily to be backward compatible. */
|
|
20
21
|
private _errorHandler;
|
|
21
22
|
constructor(_injector: Injector);
|
|
22
23
|
reportErrorSafely(error: any): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InternalErrorReporter, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InternalErrorReporter>;
|
|
23
26
|
}
|
|
@@ -5,6 +5,7 @@ import { InternalErrorReporter } from './error-handler';
|
|
|
5
5
|
import { StateContextFactory } from './state-context-factory';
|
|
6
6
|
import { InternalStateOperations } from './state-operations';
|
|
7
7
|
import { StatesAndDefaults } from './internals';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class LifecycleStateManager implements OnDestroy {
|
|
9
10
|
private _store;
|
|
10
11
|
private _internalErrorReporter;
|
|
@@ -18,4 +19,6 @@ export declare class LifecycleStateManager implements OnDestroy {
|
|
|
18
19
|
private _invokeInitOnStates;
|
|
19
20
|
private _invokeBootstrapOnStates;
|
|
20
21
|
private _getStateContext;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LifecycleStateManager, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LifecycleStateManager>;
|
|
21
24
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StateContext } from '../symbols';
|
|
2
2
|
import { MappedStore } from '../internal/internals';
|
|
3
3
|
import { InternalStateOperations } from '../internal/state-operations';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* State Context factory class
|
|
6
7
|
* @ignore
|
|
@@ -12,4 +13,6 @@ export declare class StateContextFactory {
|
|
|
12
13
|
* Create the state context
|
|
13
14
|
*/
|
|
14
15
|
createStateContext<T>(mappedStore: MappedStore): StateContext<T>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StateContextFactory, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StateContextFactory>;
|
|
15
18
|
}
|
|
@@ -5,6 +5,7 @@ import { MappedStore, StateClassInternal, StatesAndDefaults, StatesByName, Runti
|
|
|
5
5
|
import { ActionContext, InternalActions } from '../actions-stream';
|
|
6
6
|
import { InternalDispatchedActionResults } from '../internal/dispatcher';
|
|
7
7
|
import { StateContextFactory } from '../internal/state-context-factory';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* State factory class
|
|
10
11
|
* @ignore
|
|
@@ -20,11 +21,11 @@ export declare class StateFactory implements OnDestroy {
|
|
|
20
21
|
private _actionsSubscription;
|
|
21
22
|
constructor(_injector: Injector, _config: NgxsConfig, _parentFactory: StateFactory, _actions: InternalActions, _actionResults: InternalDispatchedActionResults, _stateContextFactory: StateContextFactory, _initialState: any);
|
|
22
23
|
private _states;
|
|
23
|
-
|
|
24
|
+
get states(): MappedStore[];
|
|
24
25
|
private _statesByName;
|
|
25
|
-
|
|
26
|
+
get statesByName(): StatesByName;
|
|
26
27
|
private _statePaths;
|
|
27
|
-
private
|
|
28
|
+
private get statePaths();
|
|
28
29
|
getRuntimeSelectorContext: () => RuntimeSelectorContext;
|
|
29
30
|
private static cloneDefaults;
|
|
30
31
|
ngOnDestroy(): void;
|
|
@@ -43,7 +44,7 @@ export declare class StateFactory implements OnDestroy {
|
|
|
43
44
|
/**
|
|
44
45
|
* Invoke actions on the states.
|
|
45
46
|
*/
|
|
46
|
-
invokeActions(dispatched$: Observable<ActionContext>, action: any): Observable<
|
|
47
|
+
invokeActions(dispatched$: Observable<ActionContext>, action: any): Observable<unknown[]>;
|
|
47
48
|
private addToStatesMap;
|
|
48
49
|
private addRuntimeInfoToMeta;
|
|
49
50
|
/**
|
|
@@ -54,4 +55,6 @@ export declare class StateFactory implements OnDestroy {
|
|
|
54
55
|
* @param path
|
|
55
56
|
*/
|
|
56
57
|
private hasBeenMountedAndBootstrapped;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StateFactory, [null, null, { optional: true; skipSelf: true; }, null, null, null, { optional: true; }]>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StateFactory>;
|
|
57
60
|
}
|
|
@@ -2,6 +2,7 @@ import { StateOperations, StatesAndDefaults } from '../internal/internals';
|
|
|
2
2
|
import { InternalDispatcher } from '../internal/dispatcher';
|
|
3
3
|
import { StateStream } from './state-stream';
|
|
4
4
|
import { NgxsConfig } from '../symbols';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* State Context factory class
|
|
7
8
|
* @ignore
|
|
@@ -16,4 +17,6 @@ export declare class InternalStateOperations {
|
|
|
16
17
|
*/
|
|
17
18
|
getRootStateOperations(): StateOperations<any>;
|
|
18
19
|
setStateToTheCurrentWithNew(results: StatesAndDefaults): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InternalStateOperations, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InternalStateOperations>;
|
|
19
22
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { PlainObject } from '@ngxs/store/internals';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* BehaviorSubject of the entire state.
|
|
6
7
|
* @ignore
|
|
@@ -8,4 +9,6 @@ import { PlainObject } from '@ngxs/store/internals';
|
|
|
8
9
|
export declare class StateStream extends BehaviorSubject<PlainObject> implements OnDestroy {
|
|
9
10
|
constructor();
|
|
10
11
|
ngOnDestroy(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StateStream, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StateStream>;
|
|
11
14
|
}
|
package/src/module.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { StateClass } from '@ngxs/store/internals';
|
|
|
3
3
|
import { NgxsModuleOptions } from './symbols';
|
|
4
4
|
import { NgxsRootModule } from './modules/ngxs-root.module';
|
|
5
5
|
import { NgxsFeatureModule } from './modules/ngxs-feature.module';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Ngxs Module
|
|
8
9
|
*/
|
|
@@ -20,4 +21,7 @@ export declare class NgxsModule {
|
|
|
20
21
|
private static ngxsConfigFactory;
|
|
21
22
|
private static appBootstrapListenerFactory;
|
|
22
23
|
private static getInitialState;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsModule, never>;
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsModule, never, never, never>;
|
|
26
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxsModule>;
|
|
23
27
|
}
|
|
@@ -3,6 +3,7 @@ import { InternalStateOperations } from '../internal/state-operations';
|
|
|
3
3
|
import { StateFactory } from '../internal/state-factory';
|
|
4
4
|
import { LifecycleStateManager } from '../internal/lifecycle-state-manager';
|
|
5
5
|
import { StateClassInternal } from '../internal/internals';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Feature module
|
|
8
9
|
* @ignore
|
|
@@ -10,4 +11,7 @@ import { StateClassInternal } from '../internal/internals';
|
|
|
10
11
|
export declare class NgxsFeatureModule {
|
|
11
12
|
constructor(_store: Store, internalStateOperations: InternalStateOperations, factory: StateFactory, states: StateClassInternal<any, any>[][] | undefined, lifecycleStateManager: LifecycleStateManager);
|
|
12
13
|
private static flattenStates;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsFeatureModule, [null, null, null, { optional: true; }, null]>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsFeatureModule, never, never, never>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxsFeatureModule>;
|
|
13
17
|
}
|
|
@@ -4,10 +4,14 @@ import { Store } from '../store';
|
|
|
4
4
|
import { SelectFactory } from '../decorators/select/select-factory';
|
|
5
5
|
import { StateClassInternal } from '../internal/internals';
|
|
6
6
|
import { LifecycleStateManager } from '../internal/lifecycle-state-manager';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Root module
|
|
9
10
|
* @ignore
|
|
10
11
|
*/
|
|
11
12
|
export declare class NgxsRootModule {
|
|
12
13
|
constructor(factory: StateFactory, internalStateOperations: InternalStateOperations, _store: Store, _select: SelectFactory, states: StateClassInternal<any, any>[] | undefined, lifecycleStateManager: LifecycleStateManager);
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsRootModule, [null, null, null, null, { optional: true; }, null]>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsRootModule, never, never, never>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxsRootModule>;
|
|
13
17
|
}
|
package/src/plugin-manager.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { NgxsPlugin, NgxsPluginFn } from './symbols';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class PluginManager {
|
|
3
4
|
private _parentManager;
|
|
4
5
|
private _pluginHandlers;
|
|
5
6
|
plugins: NgxsPluginFn[];
|
|
6
7
|
constructor(_parentManager: PluginManager, _pluginHandlers: NgxsPlugin[]);
|
|
7
|
-
private
|
|
8
|
+
private get rootPlugins();
|
|
8
9
|
private registerHandlers;
|
|
9
10
|
private getPluginHandlers;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PluginManager, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PluginManager>;
|
|
10
13
|
}
|
package/src/store.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { StateStream } from './internal/state-stream';
|
|
|
6
6
|
import { NgxsConfig } from './symbols';
|
|
7
7
|
import { StateToken } from './state-token/state-token';
|
|
8
8
|
import { StateFactory } from './internal/state-factory';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class Store {
|
|
10
11
|
private _stateStream;
|
|
11
12
|
private _internalStateOperations;
|
|
@@ -56,4 +57,6 @@ export declare class Store {
|
|
|
56
57
|
reset(state: any): any;
|
|
57
58
|
private getStoreBoundSelectorFn;
|
|
58
59
|
private initStateStream;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Store, [null, null, null, null, null, { optional: true; }]>;
|
|
61
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Store>;
|
|
59
62
|
}
|
package/src/symbols.d.ts
CHANGED
|
@@ -5,9 +5,10 @@ import { StateOperator } from '@ngxs/store/operators';
|
|
|
5
5
|
import { NgxsExecutionStrategy } from './execution/symbols';
|
|
6
6
|
import { SharedSelectorOptions } from './internal/internals';
|
|
7
7
|
import { StateToken } from './state-token/state-token';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare const ROOT_STATE_TOKEN: InjectionToken<any>;
|
|
9
10
|
export declare const FEATURE_STATE_TOKEN: InjectionToken<any>;
|
|
10
|
-
export declare const NGXS_PLUGINS: InjectionToken<
|
|
11
|
+
export declare const NGXS_PLUGINS: InjectionToken<unknown>;
|
|
11
12
|
export declare const META_KEY = "NGXS_META";
|
|
12
13
|
export declare const META_OPTIONS_KEY = "NGXS_OPTIONS_META";
|
|
13
14
|
export declare const SELECTOR_META_KEY = "NGXS_SELECTOR_META";
|
|
@@ -59,6 +60,8 @@ export declare class NgxsConfig {
|
|
|
59
60
|
*/
|
|
60
61
|
selectorOptions: SharedSelectorOptions;
|
|
61
62
|
constructor();
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsConfig, never>;
|
|
64
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgxsConfig>;
|
|
62
65
|
}
|
|
63
66
|
export { StateOperator };
|
|
64
67
|
/**
|