@ngxs/store 19.0.0-dev.master-2b2355c → 19.0.0-dev.master-235f969
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/fesm2022/ngxs-store-internals-testing.mjs +2 -4
- package/fesm2022/ngxs-store-internals-testing.mjs.map +1 -1
- package/fesm2022/ngxs-store.mjs +262 -216
- package/fesm2022/ngxs-store.mjs.map +1 -1
- package/index.d.ts +5 -17
- package/package.json +1 -5
- package/schematics/src/actions/actions.factory.js +3 -3
- package/schematics/src/actions/actions.factory.js.map +1 -1
- package/schematics/src/ng-add/add-declaration.js +1 -1
- package/schematics/src/ng-add/add-declaration.js.map +1 -1
- package/schematics/src/ng-add/ng-add.factory.js +4 -4
- package/schematics/src/ng-add/ng-add.factory.js.map +1 -1
- package/schematics/src/starter-kit/starter-kit.factory.js +3 -3
- package/schematics/src/starter-kit/starter-kit.factory.js.map +1 -1
- package/schematics/src/state/state.factory.js +4 -4
- package/schematics/src/state/state.factory.js.map +1 -1
- package/schematics/src/store/store.factory.js +4 -4
- package/schematics/src/store/store.factory.js.map +1 -1
- package/schematics/src/utils/common/lib.config.js.map +1 -0
- package/schematics/src/utils/common/project-files.config.js +7 -0
- package/schematics/src/utils/common/project-files.config.js.map +1 -0
- package/schematics/src/utils/common/properties.js.map +1 -0
- package/schematics/src/utils/config.js.map +1 -0
- package/schematics/src/utils/generate-utils.js.map +1 -0
- package/schematics/src/utils/interfaces/package.interface.js +3 -0
- package/schematics/src/utils/interfaces/package.interface.js.map +1 -0
- package/schematics/src/utils/normalize-options.js.map +1 -0
- package/schematics/src/utils/project.js.map +1 -0
- package/schematics/src/utils/versions.json +3 -0
- package/migrations/migrations.json +0 -11
- package/migrations/src/19_1_0/__snapshots__/index.spec.ts.snap +0 -151
- package/migrations/src/19_1_0/index.js +0 -213
- package/migrations/src/19_1_0/index.js.map +0 -1
- package/migrations/src/19_1_0/index.spec.js +0 -220
- package/migrations/src/19_1_0/index.spec.js.map +0 -1
- package/schematics-utils/_testing/index.js +0 -18
- package/schematics-utils/_testing/index.js.map +0 -1
- package/schematics-utils/_testing/schematics.js +0 -70
- package/schematics-utils/_testing/schematics.js.map +0 -1
- package/schematics-utils/src/common/lib.config.js.map +0 -1
- package/schematics-utils/src/common/properties.js.map +0 -1
- package/schematics-utils/src/config.js.map +0 -1
- package/schematics-utils/src/file-utils.js +0 -26
- package/schematics-utils/src/file-utils.js.map +0 -1
- package/schematics-utils/src/generate-utils.js.map +0 -1
- package/schematics-utils/src/normalize-options.js.map +0 -1
- package/schematics-utils/src/project.js.map +0 -1
- /package/{schematics-utils/src → schematics/src/utils}/common/lib.config.js +0 -0
- /package/{schematics-utils/src → schematics/src/utils}/common/properties.js +0 -0
- /package/{schematics-utils/src → schematics/src/utils}/config.js +0 -0
- /package/{schematics-utils/src → schematics/src/utils}/generate-utils.js +0 -0
- /package/{schematics-utils/src → schematics/src/utils}/normalize-options.js +0 -0
- /package/{schematics-utils/src → schematics/src/utils}/project.js +0 -0
package/index.d.ts
CHANGED
|
@@ -105,9 +105,7 @@ interface NgxsOnChanges {
|
|
|
105
105
|
interface NgxsAfterBootstrap {
|
|
106
106
|
ngxsAfterBootstrap(ctx: StateContext<any>): void;
|
|
107
107
|
}
|
|
108
|
-
type NgxsModuleOptions = Partial<NgxsConfig
|
|
109
|
-
executionStrategy: Type<NgxsExecutionStrategy>;
|
|
110
|
-
};
|
|
108
|
+
type NgxsModuleOptions = Partial<NgxsConfig>;
|
|
111
109
|
|
|
112
110
|
/**
|
|
113
111
|
* @ignore
|
|
@@ -130,7 +128,7 @@ declare class NgxsFeatureModule {
|
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
declare class NgxsModule {
|
|
133
|
-
static forRoot(states
|
|
131
|
+
static forRoot(states?: _StateClass[], options?: NgxsModuleOptions): ModuleWithProviders<NgxsRootModule>;
|
|
134
132
|
static forFeature(states?: _StateClass[]): ModuleWithProviders<NgxsFeatureModule>;
|
|
135
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsModule, never>;
|
|
136
134
|
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsModule, never, never, never>;
|
|
@@ -450,17 +448,6 @@ declare function Selector(): SelectorType<unknown>;
|
|
|
450
448
|
*/
|
|
451
449
|
declare function Selector<T extends SelectorDefTuple>(selectors: T): SelectorType<T>;
|
|
452
450
|
|
|
453
|
-
declare class DispatchOutsideZoneNgxsExecutionStrategy implements NgxsExecutionStrategy {
|
|
454
|
-
private _ngZone;
|
|
455
|
-
constructor();
|
|
456
|
-
enter<T>(func: () => T): T;
|
|
457
|
-
leave<T>(func: () => T): T;
|
|
458
|
-
private runInsideAngular;
|
|
459
|
-
private runOutsideAngular;
|
|
460
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DispatchOutsideZoneNgxsExecutionStrategy, never>;
|
|
461
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DispatchOutsideZoneNgxsExecutionStrategy>;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
451
|
declare class NoopNgxsExecutionStrategy implements NgxsExecutionStrategy {
|
|
465
452
|
enter<T>(func: () => T): T;
|
|
466
453
|
leave<T>(func: () => T): T;
|
|
@@ -540,7 +527,8 @@ declare function withNgxsPendingTasks(): i0.EnvironmentProviders;
|
|
|
540
527
|
* });
|
|
541
528
|
* ```
|
|
542
529
|
*/
|
|
543
|
-
declare function provideStore(states
|
|
530
|
+
declare function provideStore(states?: _StateClass[], ...features: EnvironmentProviders[]): EnvironmentProviders;
|
|
531
|
+
declare function provideStore(states?: _StateClass[], options?: NgxsModuleOptions, ...features: EnvironmentProviders[]): EnvironmentProviders;
|
|
544
532
|
|
|
545
533
|
/**
|
|
546
534
|
* This version serves as a standalone alternative to `NgxsModule.forFeature`.
|
|
@@ -622,4 +610,4 @@ declare function createDispatchMap<T extends ActionMap>(actionMap: T): { readonl
|
|
|
622
610
|
|
|
623
611
|
declare function ɵprovideNgxsInternalStateTokens(): i0.EnvironmentProviders;
|
|
624
612
|
|
|
625
|
-
export { Action, type ActionCompletion, type ActionContext, type ActionDef, type ActionMap, ActionStatus, type ActionType, Actions,
|
|
613
|
+
export { Action, type ActionCompletion, type ActionContext, type ActionDef, type ActionMap, ActionStatus, type ActionType, Actions, type NgxsAfterBootstrap, NgxsConfig, NgxsDevelopmentModule, type NgxsDevelopmentOptions, type NgxsExecutionStrategy, NgxsModule, type NgxsModuleOptions, type NgxsOnChanges, type NgxsOnInit, NgxsSimpleChange, NgxsUnhandledActionsLogger, type NgxsUnhandledErrorContext, NgxsUnhandledErrorHandler, NoopNgxsExecutionStrategy, type PropertySelectors, Select, Selector, type SelectorMap, SelectorOptions, State, type StateContext, Store, type TypedSelector, createDispatchMap, createModelSelector, createPickSelector, createPropertySelectors, createSelectMap, createSelector, dispatch, ofAction, ofActionCanceled, ofActionCompleted, ofActionDispatched, ofActionErrored, ofActionSuccessful, provideStates, provideStore, select, withNgxsDevelopmentOptions, withNgxsPendingTasks, withNgxsPlugin, withNgxsPreboot, NgxsFeatureModule as ɵNgxsFeatureModule, NgxsRootModule as ɵNgxsRootModule, type ɵSelectorDef, type ɵSelectorFunc, type ɵSelectorReturnType, type ɵStateSelector, ɵprovideNgxsInternalStateTokens };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngxs/store",
|
|
3
|
-
"version": "19.0.0-dev.master-
|
|
3
|
+
"version": "19.0.0-dev.master-235f969",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,10 +8,6 @@
|
|
|
8
8
|
"rxjs": ">=7.0.0"
|
|
9
9
|
},
|
|
10
10
|
"schematics": "./schematics/collection.json",
|
|
11
|
-
"ng-update": {
|
|
12
|
-
"packageGroupName": "@ngxs/store",
|
|
13
|
-
"migrations": "./migrations/migrations.json"
|
|
14
|
-
},
|
|
15
11
|
"module": "fesm2022/ngxs-store.mjs",
|
|
16
12
|
"typings": "index.d.ts",
|
|
17
13
|
"exports": {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.actions = actions;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const generate_utils_1 = require("
|
|
6
|
-
const properties_1 = require("
|
|
7
|
-
const normalize_options_1 = require("
|
|
5
|
+
const generate_utils_1 = require("../utils/generate-utils");
|
|
6
|
+
const properties_1 = require("../utils/common/properties");
|
|
7
|
+
const normalize_options_1 = require("../utils/normalize-options");
|
|
8
8
|
const path_1 = require("path");
|
|
9
9
|
function actions(options) {
|
|
10
10
|
return (host) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/actions/actions.factory.ts"],"names":[],"mappings":";;AAOA,0BAeC;AAtBD,2DAAkF;AAElF,
|
|
1
|
+
{"version":3,"file":"actions.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/actions/actions.factory.ts"],"names":[],"mappings":";;AAOA,0BAeC;AAtBD,2DAAkF;AAElF,4DAAwD;AACxD,2DAAqD;AACrD,kEAAkE;AAClE,+BAA4B;AAE5B,SAAgB,OAAO,CAAC,OAAsB;IAC5C,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,IAAI,IAAA,oBAAO,EAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,gCAAmB,CAAC,sCAAsC,CAAC,CAAC;QACxE,CAAC;QAED,MAAM,iBAAiB,GAAG,IAAA,wCAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC9D,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI;YACvB,CAAC,CAAC,iBAAiB,CAAC,IAAI;YACxB,CAAC,CAAC,IAAA,WAAI,EAAC,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAEzD,OAAO,IAAA,8BAAa,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE,IAAI,EAAE;YACzC,IAAI,EAAE,iBAAiB,CAAC,IAAI;SAC7B,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -16,7 +16,7 @@ const rules_1 = require("@schematics/angular/utility/standalone/rules");
|
|
|
16
16
|
const util_1 = require("@schematics/angular/utility/standalone/util");
|
|
17
17
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
18
18
|
const app_config_1 = require("@schematics/angular/utility/standalone/app_config");
|
|
19
|
-
const lib_config_1 = require("
|
|
19
|
+
const lib_config_1 = require("../utils/common/lib.config");
|
|
20
20
|
function addDeclarationToStandaloneApp(options) {
|
|
21
21
|
return (host) => __awaiter(this, void 0, void 0, function* () {
|
|
22
22
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-declaration.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/ng-add/add-declaration.ts"],"names":[],"mappings":";;;;;;;;;;;AAaA,sEAkCC;AAED,4EAuBC;AAxED,2DAAyD;AACzD,wEAA8F;AAC9F,sEAKqD;AACrD,qEAAqE;AACrE,kFAAkF;AAClF,
|
|
1
|
+
{"version":3,"file":"add-declaration.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/ng-add/add-declaration.ts"],"names":[],"mappings":";;;;;;;;;;;AAaA,sEAkCC;AAED,4EAuBC;AAxED,2DAAyD;AACzD,wEAA8F;AAC9F,sEAKqD;AACrD,qEAAqE;AACrE,kFAAkF;AAClF,2DAAuD;AAGvD,SAAgB,6BAA6B,CAAC,OAAoC;IAChF,OAAO,CAAM,IAAI,EAAC,EAAE;;QAClB,MAAM,YAAY,GAAG,MAAM,IAAA,sBAAe,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAClE,MAAM,aAAa,GAAG,IAAA,mCAA4B,EAAC,IAAI,EA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B;YACE,MAAM,EAAE,wBAAwB;YAChC,UAAU,EAAE,sBAAsB;SACnC;KACF;IACD;QACE,sBAAS,CAAC,MAAM;QAChB;YACE,MAAM,EAAE,wBAAwB;YAChC,UAAU,EAAE,sBAAsB;SACnC;KACF;IACD;QACE,sBAAS,CAAC,OAAO;QACjB;YACE,MAAM,EAAE,yBAAyB;YACjC,UAAU,EAAE,uBAAuB;SACpC;KACF;IACD;QACE,sBAAS,CAAC,KAAK;QACf;YACE,UAAU,EAAE,cAAc;SAC3B;KACF;IACD;QACE,sBAAS,CAAC,SAAS;QACnB;YACE,MAAM,EAAE,2BAA2B;YACnC,UAAU,EAAE,yBAAyB;SACtC;KACF;CACF,CAAC,CAAC"}
|
|
@@ -13,12 +13,12 @@ exports.ngAdd = ngAdd;
|
|
|
13
13
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
14
14
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
15
15
|
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
16
|
-
const lib_config_1 = require("
|
|
17
|
-
const project_1 = require("
|
|
16
|
+
const lib_config_1 = require("../utils/common/lib.config");
|
|
17
|
+
const project_1 = require("../utils/project");
|
|
18
18
|
const add_declaration_1 = require("./add-declaration");
|
|
19
|
-
const project_2 = require("
|
|
19
|
+
const project_2 = require("../utils/project");
|
|
20
20
|
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils");
|
|
21
|
-
const versions = require('
|
|
21
|
+
const versions = require('./../utils/versions.json');
|
|
22
22
|
function ngAdd(options) {
|
|
23
23
|
return (host) => {
|
|
24
24
|
const normalizedSchema = normalizeSchema(host, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-add.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/ng-add/ng-add.factory.ts"],"names":[],"mappings":";;;;;;;;;;;AAkCA,sBAUC;AA5CD,2DAOoC;AACpC,4DAA0E;AAC1E,2EAIkD;AAElD,
|
|
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AE,CAAC;QACjB,MAAM,IAAI,gCAAmB,CAAC,YAAY,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAC/E,CAAC;IACD,OAAO;QACL,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,WAAW;QACjC,OAAO,EAAE,MAAA,MAAM,CAAC,MAAM,CAAC,sBAAS,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,WAAC,OAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,QAAQ,CAAC,GAAG,CAAC,CAAA,EAAA,CAAC,mCAAI,EAAE;QACpF,OAAO,EAAE,WAAW;KACrB,CAAC;AACJ,CAAC"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.starterKit = starterKit;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const generate_utils_1 = require("
|
|
5
|
+
const generate_utils_1 = require("../utils/generate-utils");
|
|
6
6
|
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils");
|
|
7
|
-
const project_1 = require("
|
|
8
|
-
const normalize_options_1 = require("
|
|
7
|
+
const project_1 = require("../utils/project");
|
|
8
|
+
const normalize_options_1 = require("../utils/normalize-options");
|
|
9
9
|
function starterKit(options) {
|
|
10
10
|
return (host) => {
|
|
11
11
|
let isStandalone = options.standalone;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"starter-kit.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/starter-kit/starter-kit.factory.ts"],"names":[],"mappings":";;AAOA,gCAiBC;AAxBD,2DAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"starter-kit.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/starter-kit/starter-kit.factory.ts"],"names":[],"mappings":";;AAOA,gCAiBC;AAxBD,2DAA6D;AAC7D,4DAAwD;AACxD,2EAA2E;AAC3E,8CAAsD;AACtD,kEAA2D;AAG3D,SAAgB,UAAU,CAAC,OAAyB;IAClD,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,IAAI,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC;QACtC,IAAI,OAAO,YAAY,KAAK,SAAS,EAAE,CAAC;YACtC,MAAM,QAAQ,GAAG,IAAA,4BAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YAC3D,YAAY,GAAG,CAAC,CAAC,QAAQ,IAAI,IAAA,8BAAe,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC/D,CAAC;QAED,MAAM,cAAc,GAAG,IAAA,iCAAa,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEnD,OAAO,IAAA,8BAAa,EAClB,IAAA,gBAAG,EAAC,SAAS,CAAC,EACd,cAAc,kCACT,OAAO,KAAE,YAAY,KAC1B,OAAO,CAAC,IAAI,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.state = state;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
5
|
const path_1 = require("path");
|
|
6
|
-
const properties_1 = require("
|
|
7
|
-
const generate_utils_1 = require("
|
|
6
|
+
const properties_1 = require("../utils/common/properties");
|
|
7
|
+
const generate_utils_1 = require("../utils/generate-utils");
|
|
8
8
|
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils");
|
|
9
|
-
const project_1 = require("
|
|
10
|
-
const normalize_options_1 = require("
|
|
9
|
+
const project_1 = require("../utils/project");
|
|
10
|
+
const normalize_options_1 = require("../utils/normalize-options");
|
|
11
11
|
function state(options) {
|
|
12
12
|
return (host) => {
|
|
13
13
|
if ((0, properties_1.isEmpty)(options.name)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/state/state.factory.ts"],"names":[],"mappings":";;AASA,sBAwBC;AAjCD,2DAAkF;AAClF,+BAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"state.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/state/state.factory.ts"],"names":[],"mappings":";;AASA,sBAwBC;AAjCD,2DAAkF;AAClF,+BAA4B;AAC5B,2DAAqD;AACrD,4DAAwD;AACxD,2EAA2E;AAC3E,8CAAsD;AACtD,kEAAkE;AAGlE,SAAgB,KAAK,CAAC,OAAoB;IACxC,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,IAAI,IAAA,oBAAO,EAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,gCAAmB,CAAC,sCAAsC,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC;QACtC,IAAI,OAAO,YAAY,KAAK,SAAS,EAAE,CAAC;YACtC,MAAM,QAAQ,GAAG,IAAA,4BAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YAC3D,YAAY,GAAG,CAAC,CAAC,QAAQ,IAAI,IAAA,8BAAe,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC/D,CAAC;QAED,MAAM,iBAAiB,GAAG,IAAA,wCAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC9D,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI;YACvB,CAAC,CAAC,iBAAiB,CAAC,IAAI;YACxB,CAAC,CAAC,IAAA,WAAI,EAAC,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAEzD,OAAO,IAAA,8BAAa,EAClB,IAAA,gBAAG,EAAC,SAAS,CAAC,EACd,IAAI,kCACC,iBAAiB,KAAE,YAAY,KACpC,OAAO,CAAC,IAAI,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.store = store;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
5
|
const path_1 = require("path");
|
|
6
|
-
const properties_1 = require("
|
|
7
|
-
const generate_utils_1 = require("
|
|
6
|
+
const properties_1 = require("../utils/common/properties");
|
|
7
|
+
const generate_utils_1 = require("../utils/generate-utils");
|
|
8
8
|
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils");
|
|
9
|
-
const project_1 = require("
|
|
10
|
-
const normalize_options_1 = require("
|
|
9
|
+
const project_1 = require("../utils/project");
|
|
10
|
+
const normalize_options_1 = require("../utils/normalize-options");
|
|
11
11
|
function store(options) {
|
|
12
12
|
return (host) => {
|
|
13
13
|
if ((0, properties_1.isEmpty)(options.name)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/store/store.factory.ts"],"names":[],"mappings":";;AASA,sBAwBC;AAjCD,2DAAkF;AAClF,+BAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"store.factory.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/store/store.factory.ts"],"names":[],"mappings":";;AASA,sBAwBC;AAjCD,2DAAkF;AAClF,+BAA4B;AAC5B,2DAAqD;AACrD,4DAAwD;AACxD,2EAA2E;AAC3E,8CAAsD;AACtD,kEAAkE;AAGlE,SAAgB,KAAK,CAAC,OAAoB;IACxC,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,IAAI,IAAA,oBAAO,EAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,gCAAmB,CAAC,sCAAsC,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC;QACtC,IAAI,OAAO,YAAY,KAAK,SAAS,EAAE,CAAC;YACtC,MAAM,QAAQ,GAAG,IAAA,4BAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YAC3D,YAAY,GAAG,CAAC,CAAC,QAAQ,IAAI,IAAA,8BAAe,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC/D,CAAC;QAED,MAAM,iBAAiB,GAAG,IAAA,wCAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC9D,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI;YACvB,CAAC,CAAC,iBAAiB,CAAC,IAAI;YACxB,CAAC,CAAC,IAAA,WAAI,EAAC,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAEzD,OAAO,IAAA,8BAAa,EAClB,IAAA,gBAAG,EAAC,SAAS,CAAC,EACd,IAAI,kCACC,iBAAiB,KAAE,YAAY,KACpC,OAAO,CAAC,IAAI,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.config.js","sourceRoot":"","sources":["../../../../../../packages/store/schematics/src/utils/common/lib.config.ts"],"names":[],"mappings":";;;AAAA,IAAY,SASX;AATD,WAAY,SAAS;IACnB,+CAAkC,CAAA;IAClC,uCAA0B,CAAA;IAC1B,qCAAwB,CAAA;IACxB,2CAA8B,CAAA;IAC9B,2CAA8B,CAAA;IAC9B,6CAAgC,CAAA;IAChC,kCAAqB,CAAA;IACrB,iDAAoC,CAAA;AACtC,CAAC,EATW,SAAS,yBAAT,SAAS,QASpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TSCONFIG_SPEC_JSON = exports.ANGULAR_JSON = exports.PACKAGE_JSON = void 0;
|
|
4
|
+
exports.PACKAGE_JSON = 'package.json';
|
|
5
|
+
exports.ANGULAR_JSON = 'angular.json';
|
|
6
|
+
exports.TSCONFIG_SPEC_JSON = 'src/tsconfig.spec.json';
|
|
7
|
+
//# sourceMappingURL=project-files.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-files.config.js","sourceRoot":"","sources":["../../../../../../packages/store/schematics/src/utils/common/project-files.config.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,kBAAkB,GAAG,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../../../../packages/store/schematics/src/utils/common/properties.ts"],"names":[],"mappings":";;AAAA,0BAEC;AAFD,SAAgB,OAAO,CAAC,KAAyB;IAC/C,OAAO,OAAO,KAAK,KAAK,WAAW,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;AAC9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/utils/config.ts"],"names":[],"mappings":";;AAkIA,4CAKC;AAED,oCASC;AAlJD,2DAAuE;AAkIvE,SAAgB,gBAAgB,CAAC,IAAU;IACzC,MAAM,aAAa,GAAG,CAAC,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAC7E,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAE3D,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,YAAY,CAAC,IAAU;IACrC,MAAM,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACpC,MAAM,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACnD,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;QAC1B,MAAM,IAAI,gCAAmB,CAAC,mBAAmB,IAAI,GAAG,CAAC,CAAC;IAC5D,CAAC;IACD,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC;IAEvC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-utils.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/utils/generate-utils.ts"],"names":[],"mappings":";;AAYA,sCAmBC;AA/BD,+CAA+C;AAC/C,2DASoC;AAEpC,SAAgB,aAAa,CAC3B,SAAiB,EACjB,MAAc,EACd,aAEC,EACD,aAAuB;IAEvB,OAAO,IAAA,sBAAS,EACd,IAAA,kBAAK,EAAC,SAAS,EAAE;QACf,aAAa,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC,CAAC,IAAA,mBAAM,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAChE,IAAA,qBAAQ,gCACN,QAAQ,EAAE,EAAE,IACT,cAAO,GACP,aAAa,EAChB;QACF,IAAA,iBAAI,EAAC,MAAM,CAAC;KACb,CAAC,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.interface.js","sourceRoot":"","sources":["../../../../../../packages/store/schematics/src/utils/interfaces/package.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/utils/normalize-options.ts"],"names":[],"mappings":";;AAUA,oDAiBC;AAED,sCAEC;AAGD,4DAQC;AA1CD,+CAA0D;AAC1D,uCAA2C;AAS3C,SAAgB,oBAAoB,CAClC,IAAU,EACV,OAAU;IAEV,MAAM,IAAI,GAAW,cAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,IAAI,GAAG,IAAA,wBAAc,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE3C,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC7D,CAAC;IAED,uCACK,OAAO,KACV,IAAI,EACJ,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,IACrB;AACJ,CAAC;AAED,SAAgB,aAAa,CAAC,IAAwB;IACpD,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACnD,CAAC;AAED,2EAA2E;AAC3E,SAAgB,wBAAwB,CACtC,KAA0B,EAC1B,YAAqB;IAErB,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,EAAE,CAAC;QACtC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../../../../packages/store/schematics/src/utils/project.ts"],"names":[],"mappings":";;AAcA,gCAoBC;AAED,wCAoBC;AAED,sBAIC;AAED,gDAsBC;AArFD,qCAAwC;AACxC,2DAAuE;AACvE,+BAA4B;AAW5B,SAAgB,UAAU,CAAC,IAAU,EAAE,OAAgB;IACrD,MAAM,SAAS,GAAG,IAAA,qBAAY,EAAC,IAAI,CAAC,CAAC;IAErC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,cAAc,GAAI,SAAyC,CAAC,cAAc,CAAC;QACjF,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YACrD,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9B,OAAO,GAAG,YAAY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CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAU,EAAE,OAAgB;IAC7D,MAAM,eAAe,GAAG,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClD,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,gCAAmB,CAC3B,2FAA2F,CAC5F,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,gCAAmB,CAAC,YAAY,OAAO,mBAAmB,CAAC,CAAC;IACxE,CAAC;IACD,IAAI,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,cAAc,GAAG,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;IAElE,IAAI,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,IAAI,EAAE,CAAC;QACzB,OAAO,cAAc,CAAC,IAAc,CAAC;IACvC,CAAC;SAAM,IAAI,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,OAAO,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,OAAiB,CAAC;IAC1C,CAAC;IAED,MAAM,IAAI,gCAAmB,CAAC,+CAA+C,CAAC,CAAC;AACjF,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["@schematics/angular"],
|
|
3
|
-
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
4
|
-
"schematics": {
|
|
5
|
-
"ngxs-store-migration-19-1-0": {
|
|
6
|
-
"description": "Migrate to NGXS v19.1.0",
|
|
7
|
-
"version": "19.1.0",
|
|
8
|
-
"factory": "./src/19_1_0/index"
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Migrate to 19.1.0 NgxsModule.forRoot migrate empty forRoot 1`] = `
|
|
4
|
-
"
|
|
5
|
-
import { NgxsModule, DispatchOutsideZoneNgxsExecutionStrategy } from '@ngxs/store';
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
8
|
-
|
|
9
|
-
import { AppRoutingModule } from './app-routing.module';
|
|
10
|
-
import { AppComponent } from './app.component';
|
|
11
|
-
|
|
12
|
-
@NgModule({
|
|
13
|
-
declarations: [
|
|
14
|
-
AppComponent
|
|
15
|
-
],
|
|
16
|
-
imports: [
|
|
17
|
-
BrowserModule,
|
|
18
|
-
AppRoutingModule,
|
|
19
|
-
NgxsModule.forRoot([], { executionStrategy: DispatchOutsideZoneNgxsExecutionStrategy })
|
|
20
|
-
],
|
|
21
|
-
bootstrap: [AppComponent]
|
|
22
|
-
})
|
|
23
|
-
export class AppModule { }
|
|
24
|
-
"
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
exports[`Migrate to 19.1.0 NgxsModule.forRoot migrate forRoot from a constant array 1`] = `
|
|
28
|
-
"
|
|
29
|
-
import { NgxsModule, DispatchOutsideZoneNgxsExecutionStrategy } from '@ngxs/store';
|
|
30
|
-
import { NgModule } from '@angular/core';
|
|
31
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
32
|
-
|
|
33
|
-
import { AppRoutingModule } from './app-routing.module';
|
|
34
|
-
import { AppComponent } from './app.component';
|
|
35
|
-
|
|
36
|
-
const imports = [
|
|
37
|
-
BrowserModule,
|
|
38
|
-
AppRoutingModule,
|
|
39
|
-
NgxsModule.forRoot(states, {foo:'bar', executionStrategy: DispatchOutsideZoneNgxsExecutionStrategy})
|
|
40
|
-
];
|
|
41
|
-
|
|
42
|
-
@NgModule({
|
|
43
|
-
declarations: [
|
|
44
|
-
AppComponent
|
|
45
|
-
],
|
|
46
|
-
imports,
|
|
47
|
-
bootstrap: [AppComponent]
|
|
48
|
-
})
|
|
49
|
-
export class AppModule { }
|
|
50
|
-
"
|
|
51
|
-
`;
|
|
52
|
-
|
|
53
|
-
exports[`Migrate to 19.1.0 NgxsModule.forRoot migrate forRoot with states 1`] = `
|
|
54
|
-
"
|
|
55
|
-
import { NgxsModule, DispatchOutsideZoneNgxsExecutionStrategy } from '@ngxs/store';
|
|
56
|
-
import { NgModule } from '@angular/core';
|
|
57
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
58
|
-
|
|
59
|
-
import { AppRoutingModule } from './app-routing.module';
|
|
60
|
-
import { AppComponent } from './app.component';
|
|
61
|
-
|
|
62
|
-
@NgModule({
|
|
63
|
-
declarations: [
|
|
64
|
-
AppComponent
|
|
65
|
-
],
|
|
66
|
-
imports: [
|
|
67
|
-
BrowserModule,
|
|
68
|
-
AppRoutingModule,
|
|
69
|
-
NgxsModule.forRoot(states, { executionStrategy: DispatchOutsideZoneNgxsExecutionStrategy })
|
|
70
|
-
],
|
|
71
|
-
bootstrap: [AppComponent]
|
|
72
|
-
})
|
|
73
|
-
export class AppModule { }
|
|
74
|
-
"
|
|
75
|
-
`;
|
|
76
|
-
|
|
77
|
-
exports[`Migrate to 19.1.0 NgxsModule.forRoot migrate forRoot with states and existing options 1`] = `
|
|
78
|
-
"
|
|
79
|
-
import { NgxsModule, DispatchOutsideZoneNgxsExecutionStrategy } from '@ngxs/store';
|
|
80
|
-
import { NgModule } from '@angular/core';
|
|
81
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
82
|
-
|
|
83
|
-
import { AppRoutingModule } from './app-routing.module';
|
|
84
|
-
import { AppComponent } from './app.component';
|
|
85
|
-
|
|
86
|
-
@NgModule({
|
|
87
|
-
declarations: [
|
|
88
|
-
AppComponent
|
|
89
|
-
],
|
|
90
|
-
imports: [
|
|
91
|
-
BrowserModule,
|
|
92
|
-
AppRoutingModule,
|
|
93
|
-
NgxsModule.forRoot(states, {foo:'bar', executionStrategy: DispatchOutsideZoneNgxsExecutionStrategy})
|
|
94
|
-
],
|
|
95
|
-
bootstrap: [AppComponent]
|
|
96
|
-
})
|
|
97
|
-
export class AppModule { }
|
|
98
|
-
"
|
|
99
|
-
`;
|
|
100
|
-
|
|
101
|
-
exports[`Migrate to 19.1.0 provideStore migrate provideStore with states and existing options 1`] = `
|
|
102
|
-
"
|
|
103
|
-
import { bootstrapApplication } from '@angular/platform-browser';
|
|
104
|
-
import { AppComponent } from './app/app.component';
|
|
105
|
-
import { provideStore, DispatchOutsideZoneNgxsExecutionStrategy } from '@ngxs/store';
|
|
106
|
-
|
|
107
|
-
bootstrapApplication(AppComponent, {
|
|
108
|
-
providers: [provideStore([], {foo:'bar', executionStrategy: DispatchOutsideZoneNgxsExecutionStrategy})],
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
`;
|
|
113
|
-
|
|
114
|
-
exports[`Migrate to 19.1.0 provideStore migrate provideStore with states and plugins 1`] = `
|
|
115
|
-
"
|
|
116
|
-
import { bootstrapApplication } from '@angular/platform-browser';
|
|
117
|
-
import { AppComponent } from './app/app.component';
|
|
118
|
-
import { provideStore, DispatchOutsideZoneNgxsExecutionStrategy } from '@ngxs/store';
|
|
119
|
-
|
|
120
|
-
bootstrapApplication(AppComponent, {
|
|
121
|
-
providers: [provideStore([], { executionStrategy: DispatchOutsideZoneNgxsExecutionStrategy }, withNgxsRouterPlugin(), withNgxsStoragePlugin())],
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
`;
|
|
126
|
-
|
|
127
|
-
exports[`Migrate to 19.1.0 provideStore migrate provideStore with states without options 1`] = `
|
|
128
|
-
"
|
|
129
|
-
import { bootstrapApplication } from '@angular/platform-browser';
|
|
130
|
-
import { AppComponent } from './app/app.component';
|
|
131
|
-
import { provideStore, DispatchOutsideZoneNgxsExecutionStrategy } from '@ngxs/store';
|
|
132
|
-
|
|
133
|
-
bootstrapApplication(AppComponent, {
|
|
134
|
-
providers: [provideStore([], { executionStrategy: DispatchOutsideZoneNgxsExecutionStrategy })],
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
"
|
|
138
|
-
`;
|
|
139
|
-
|
|
140
|
-
exports[`Migrate to 19.1.0 provideStore migrate provideStore with states, options and plugins 1`] = `
|
|
141
|
-
"
|
|
142
|
-
import { bootstrapApplication } from '@angular/platform-browser';
|
|
143
|
-
import { AppComponent } from './app/app.component';
|
|
144
|
-
import { provideStore, DispatchOutsideZoneNgxsExecutionStrategy } from '@ngxs/store';
|
|
145
|
-
|
|
146
|
-
bootstrapApplication(AppComponent, {
|
|
147
|
-
providers: [provideStore([], {foo:'bar', executionStrategy: DispatchOutsideZoneNgxsExecutionStrategy}, withNgxsRouterPlugin(), withNgxsStoragePlugin())],
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
"
|
|
151
|
-
`;
|