@ngxs/store 19.0.0-dev.master-2b2355c → 19.0.0-dev.master-7f34db4

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.
Files changed (54) hide show
  1. package/fesm2022/ngxs-store-internals-testing.mjs +3 -5
  2. package/fesm2022/ngxs-store-internals-testing.mjs.map +1 -1
  3. package/fesm2022/ngxs-store.mjs +126 -173
  4. package/fesm2022/ngxs-store.mjs.map +1 -1
  5. package/index.d.ts +6 -42
  6. package/internals/testing/index.d.ts +1 -1
  7. package/package.json +5 -9
  8. package/schematics/src/actions/actions.factory.js +3 -3
  9. package/schematics/src/actions/actions.factory.js.map +1 -1
  10. package/schematics/src/ng-add/add-declaration.js +1 -1
  11. package/schematics/src/ng-add/add-declaration.js.map +1 -1
  12. package/schematics/src/ng-add/ng-add.factory.js +4 -4
  13. package/schematics/src/ng-add/ng-add.factory.js.map +1 -1
  14. package/schematics/src/starter-kit/starter-kit.factory.js +3 -3
  15. package/schematics/src/starter-kit/starter-kit.factory.js.map +1 -1
  16. package/schematics/src/state/state.factory.js +4 -4
  17. package/schematics/src/state/state.factory.js.map +1 -1
  18. package/schematics/src/store/store.factory.js +4 -4
  19. package/schematics/src/store/store.factory.js.map +1 -1
  20. package/schematics/src/utils/common/lib.config.js.map +1 -0
  21. package/schematics/src/utils/common/project-files.config.js +7 -0
  22. package/schematics/src/utils/common/project-files.config.js.map +1 -0
  23. package/schematics/src/utils/common/properties.js.map +1 -0
  24. package/schematics/src/utils/config.js.map +1 -0
  25. package/schematics/src/utils/generate-utils.js.map +1 -0
  26. package/schematics/src/utils/interfaces/package.interface.js +3 -0
  27. package/schematics/src/utils/interfaces/package.interface.js.map +1 -0
  28. package/schematics/src/utils/normalize-options.js.map +1 -0
  29. package/schematics/src/utils/project.js.map +1 -0
  30. package/schematics/src/utils/versions.json +3 -0
  31. package/migrations/migrations.json +0 -11
  32. package/migrations/src/19_1_0/__snapshots__/index.spec.ts.snap +0 -151
  33. package/migrations/src/19_1_0/index.js +0 -213
  34. package/migrations/src/19_1_0/index.js.map +0 -1
  35. package/migrations/src/19_1_0/index.spec.js +0 -220
  36. package/migrations/src/19_1_0/index.spec.js.map +0 -1
  37. package/schematics-utils/_testing/index.js +0 -18
  38. package/schematics-utils/_testing/index.js.map +0 -1
  39. package/schematics-utils/_testing/schematics.js +0 -70
  40. package/schematics-utils/_testing/schematics.js.map +0 -1
  41. package/schematics-utils/src/common/lib.config.js.map +0 -1
  42. package/schematics-utils/src/common/properties.js.map +0 -1
  43. package/schematics-utils/src/config.js.map +0 -1
  44. package/schematics-utils/src/file-utils.js +0 -26
  45. package/schematics-utils/src/file-utils.js.map +0 -1
  46. package/schematics-utils/src/generate-utils.js.map +0 -1
  47. package/schematics-utils/src/normalize-options.js.map +0 -1
  48. package/schematics-utils/src/project.js.map +0 -1
  49. /package/{schematics-utils/src → schematics/src/utils}/common/lib.config.js +0 -0
  50. /package/{schematics-utils/src → schematics/src/utils}/common/properties.js +0 -0
  51. /package/{schematics-utils/src → schematics/src/utils}/config.js +0 -0
  52. /package/{schematics-utils/src → schematics/src/utils}/generate-utils.js +0 -0
  53. /package/{schematics-utils/src → schematics/src/utils}/normalize-options.js +0 -0
  54. /package/{schematics-utils/src → schematics/src/utils}/project.js +0 -0
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Type, ModuleWithProviders, Signal, EnvironmentProviders } from '@angular/core';
2
+ import { ModuleWithProviders, Signal, EnvironmentProviders, Type } from '@angular/core';
3
3
  import { ɵSharedSelectorOptions as _SharedSelectorOptions, ɵStateClass as _StateClass, ɵActionOptions as _ActionOptions, StateToken, ɵStoreOptions as _StoreOptions } from '@ngxs/store/internals';
4
4
  export { ɵActionOptions as ActionOptions, StateToken } from '@ngxs/store/internals';
5
5
  import * as rxjs from 'rxjs';
@@ -9,11 +9,6 @@ export { StateOperator } from '@ngxs/store/operators';
9
9
  import { NgxsPlugin, NgxsPluginFn } from '@ngxs/store/plugins';
10
10
  export { InitState, NGXS_PLUGINS, NgxsNextPluginFn, NgxsPlugin, NgxsPluginFn, UpdateState, actionMatcher, getActionTypeFromInstance, getValue, setValue } from '@ngxs/store/plugins';
11
11
 
12
- interface NgxsExecutionStrategy {
13
- enter<T>(func: () => T): T;
14
- leave<T>(func: () => T): T;
15
- }
16
-
17
12
  /**
18
13
  * The NGXS config settings.
19
14
  */
@@ -36,18 +31,6 @@ declare class NgxsConfig {
36
31
  */
37
32
  strictContentSecurityPolicy: boolean;
38
33
  };
39
- /**
40
- * Determines the execution context to perform async operations inside. An implementation can be
41
- * provided to override the default behaviour where the async operations are run
42
- * outside Angular's zone but all observable behaviours of NGXS are run back inside Angular's zone.
43
- * These observable behaviours are from:
44
- * `store.selectSignal(...)`, `store.select(...)`, `actions.subscribe(...)` or `store.dispatch(...).subscribe(...)`
45
- * Every `zone.run` causes Angular to run change detection on the whole tree (`app.tick()`) so of your
46
- * application doesn't rely on zone.js running change detection then you can switch to the
47
- * `NoopNgxsExecutionStrategy` that doesn't interact with zones.
48
- * (default: null)
49
- */
50
- executionStrategy: Type<NgxsExecutionStrategy>;
51
34
  /**
52
35
  * Defining shared selector options
53
36
  */
@@ -105,9 +88,7 @@ interface NgxsOnChanges {
105
88
  interface NgxsAfterBootstrap {
106
89
  ngxsAfterBootstrap(ctx: StateContext<any>): void;
107
90
  }
108
- type NgxsModuleOptions = Partial<NgxsConfig> & {
109
- executionStrategy: Type<NgxsExecutionStrategy>;
110
- };
91
+ type NgxsModuleOptions = Partial<NgxsConfig>;
111
92
 
112
93
  /**
113
94
  * @ignore
@@ -130,7 +111,7 @@ declare class NgxsFeatureModule {
130
111
  }
131
112
 
132
113
  declare class NgxsModule {
133
- static forRoot(states: _StateClass[] | undefined, options: NgxsModuleOptions): ModuleWithProviders<NgxsRootModule>;
114
+ static forRoot(states?: _StateClass[], options?: NgxsModuleOptions): ModuleWithProviders<NgxsRootModule>;
134
115
  static forFeature(states?: _StateClass[]): ModuleWithProviders<NgxsFeatureModule>;
135
116
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxsModule, never>;
136
117
  static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsModule, never, never, never>;
@@ -450,24 +431,6 @@ declare function Selector(): SelectorType<unknown>;
450
431
  */
451
432
  declare function Selector<T extends SelectorDefTuple>(selectors: T): SelectorType<T>;
452
433
 
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
- declare class NoopNgxsExecutionStrategy implements NgxsExecutionStrategy {
465
- enter<T>(func: () => T): T;
466
- leave<T>(func: () => T): T;
467
- static ɵfac: i0.ɵɵFactoryDeclaration<NoopNgxsExecutionStrategy, never>;
468
- static ɵprov: i0.ɵɵInjectableDeclaration<NoopNgxsExecutionStrategy>;
469
- }
470
-
471
434
  interface NgxsUnhandledErrorContext {
472
435
  action: any;
473
436
  }
@@ -540,7 +503,8 @@ declare function withNgxsPendingTasks(): i0.EnvironmentProviders;
540
503
  * });
541
504
  * ```
542
505
  */
543
- declare function provideStore(states: _StateClass[] | undefined, options: NgxsModuleOptions, ...features: EnvironmentProviders[]): EnvironmentProviders;
506
+ declare function provideStore(states?: _StateClass[], ...features: EnvironmentProviders[]): EnvironmentProviders;
507
+ declare function provideStore(states?: _StateClass[], options?: NgxsModuleOptions, ...features: EnvironmentProviders[]): EnvironmentProviders;
544
508
 
545
509
  /**
546
510
  * This version serves as a standalone alternative to `NgxsModule.forFeature`.
@@ -622,4 +586,4 @@ declare function createDispatchMap<T extends ActionMap>(actionMap: T): { readonl
622
586
 
623
587
  declare function ɵprovideNgxsInternalStateTokens(): i0.EnvironmentProviders;
624
588
 
625
- export { Action, type ActionCompletion, type ActionContext, type ActionDef, type ActionMap, ActionStatus, type ActionType, Actions, DispatchOutsideZoneNgxsExecutionStrategy, 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 };
589
+ export { Action, type ActionCompletion, type ActionContext, type ActionDef, type ActionMap, ActionStatus, type ActionType, Actions, type NgxsAfterBootstrap, NgxsConfig, NgxsDevelopmentModule, type NgxsDevelopmentOptions, NgxsModule, type NgxsModuleOptions, type NgxsOnChanges, type NgxsOnInit, NgxsSimpleChange, NgxsUnhandledActionsLogger, type NgxsUnhandledErrorContext, NgxsUnhandledErrorHandler, 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 };
@@ -39,7 +39,7 @@ declare class NgxsActionCollector {
39
39
  * {
40
40
  * providers: [
41
41
  * NgxsActionCollector.collectActions(),
42
- * provideStore([MyState], { executionStrategy: ... }),
42
+ * provideStore([MyState]),
43
43
  * ],
44
44
  * // ...
45
45
  * }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "19.0.0-dev.master-2b2355c",
3
+ "version": "19.0.0-dev.master-7f34db4",
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": {
@@ -30,14 +26,14 @@
30
26
  "types": "./internals/index.d.ts",
31
27
  "default": "./fesm2022/ngxs-store-internals.mjs"
32
28
  },
33
- "./operators": {
34
- "types": "./operators/index.d.ts",
35
- "default": "./fesm2022/ngxs-store-operators.mjs"
36
- },
37
29
  "./plugins": {
38
30
  "types": "./plugins/index.d.ts",
39
31
  "default": "./fesm2022/ngxs-store-plugins.mjs"
40
32
  },
33
+ "./operators": {
34
+ "types": "./operators/index.d.ts",
35
+ "default": "./fesm2022/ngxs-store-operators.mjs"
36
+ },
41
37
  "./internals/testing": {
42
38
  "types": "./internals/testing/index.d.ts",
43
39
  "default": "./fesm2022/ngxs-store-internals-testing.mjs"
@@ -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("../../../schematics-utils/src/generate-utils");
6
- const properties_1 = require("../../../schematics-utils/src/common/properties");
7
- const normalize_options_1 = require("../../../schematics-utils/src/normalize-options");
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,iFAA6E;AAC7E,gFAA0E;AAC1E,uFAAuF;AACvF,+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"}
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("../../../schematics-utils/src/common/lib.config");
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,gFAA4E;AAG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,CAAC,QAAQ;QAClB;YACE,MAAM,EAAE,+BAA+B;YACvC,UAAU,EAAE,6BAA6B;SAC1C;KACF;IACD;QACE,sBAAS,CAAC,IAAI;QACd;YACE,MAAM,EAAE,sBAAsB;YAC9B,UAAU,EAAE,oBAAoB;SACjC;KACF;IACD;QACE,sBAAS,CAAC,MAAM;QAChB;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"}
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,EAAE,YAAY,CAAC,CAAC;QACvE,MAAM,iBAAiB,GACrB,CAAA,MAAA,IAAA,0BAAa,EAAC,aAAa,EAAE,IAAI,EAAE,YAAY,CAAC,0CAAE,QAAQ,KAAI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U,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("../../../schematics-utils/src/common/lib.config");
17
- const project_1 = require("../../../schematics-utils/src/project");
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("../../../schematics-utils/src/project");
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('../../../schematics-utils/src/versions.json');
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,gFAA4E;AAG5E,mEAA2E;AAC3E,uDAG2B;AAC3B,mEAAmE;AACnE,2EAA2E;AAE3E,MAAM,QAAQ,GAAG,OAAO,CAAC,6CAA6C,CAAC,CAAC;AAQxE,SAAgB,KAAK,CAAC,OAA0B;IAC9C,OAAO,CAAC,IAAU,EAAE,EAA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IAC3D,IAAI,CAAC,WAAW,EAAE,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("../../../schematics-utils/src/generate-utils");
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("../../../schematics-utils/src/project");
8
- const normalize_options_1 = require("../../../schematics-utils/src/normalize-options");
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,iFAA6E;AAC7E,2EAA2E;AAC3E,mEAA2E;AAC3E,uFAAgF;AAGhF,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"}
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("../../../schematics-utils/src/common/properties");
7
- const generate_utils_1 = require("../../../schematics-utils/src/generate-utils");
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("../../../schematics-utils/src/project");
10
- const normalize_options_1 = require("../../../schematics-utils/src/normalize-options");
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,gFAA0E;AAC1E,iFAA6E;AAC7E,2EAA2E;AAC3E,mEAA2E;AAC3E,uFAAuF;AAGvF,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"}
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("../../../schematics-utils/src/common/properties");
7
- const generate_utils_1 = require("../../../schematics-utils/src/generate-utils");
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("../../../schematics-utils/src/project");
10
- const normalize_options_1 = require("../../../schematics-utils/src/normalize-options");
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,gFAA0E;AAC1E,iFAA6E;AAC7E,2EAA2E;AAC3E,mEAA2E;AAC3E,uFAAuF;AAGvF,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"}
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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=package.interface.js.map
@@ -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,CAAC,CAAC,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;IACH,CA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D,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"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "@ngxs/store": "19.0.0"
3
+ }
@@ -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
- `;