@ngxs/store 19.0.0-dev.master-b836d8e → 19.0.0-dev.master-5bb8fb6

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/index.d.ts CHANGED
@@ -105,7 +105,9 @@ interface NgxsOnChanges {
105
105
  interface NgxsAfterBootstrap {
106
106
  ngxsAfterBootstrap(ctx: StateContext<any>): void;
107
107
  }
108
- type NgxsModuleOptions = Partial<NgxsConfig>;
108
+ type NgxsModuleOptions = Partial<NgxsConfig> & {
109
+ executionStrategy: Type<NgxsExecutionStrategy>;
110
+ };
109
111
 
110
112
  /**
111
113
  * @ignore
@@ -128,7 +130,7 @@ declare class NgxsFeatureModule {
128
130
  }
129
131
 
130
132
  declare class NgxsModule {
131
- static forRoot(states?: _StateClass[], options?: NgxsModuleOptions): ModuleWithProviders<NgxsRootModule>;
133
+ static forRoot(states: _StateClass[] | undefined, options: NgxsModuleOptions): ModuleWithProviders<NgxsRootModule>;
132
134
  static forFeature(states?: _StateClass[]): ModuleWithProviders<NgxsFeatureModule>;
133
135
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxsModule, never>;
134
136
  static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsModule, never, never, never>;
@@ -448,6 +450,17 @@ declare function Selector(): SelectorType<unknown>;
448
450
  */
449
451
  declare function Selector<T extends SelectorDefTuple>(selectors: T): SelectorType<T>;
450
452
 
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
+
451
464
  declare class NoopNgxsExecutionStrategy implements NgxsExecutionStrategy {
452
465
  enter<T>(func: () => T): T;
453
466
  leave<T>(func: () => T): T;
@@ -527,8 +540,7 @@ declare function withNgxsPendingTasks(): i0.EnvironmentProviders;
527
540
  * });
528
541
  * ```
529
542
  */
530
- declare function provideStore(states?: _StateClass[], ...features: EnvironmentProviders[]): EnvironmentProviders;
531
- declare function provideStore(states?: _StateClass[], options?: NgxsModuleOptions, ...features: EnvironmentProviders[]): EnvironmentProviders;
543
+ declare function provideStore(states: _StateClass[] | undefined, options: NgxsModuleOptions, ...features: EnvironmentProviders[]): EnvironmentProviders;
532
544
 
533
545
  /**
534
546
  * This version serves as a standalone alternative to `NgxsModule.forFeature`.
@@ -610,4 +622,4 @@ declare function createDispatchMap<T extends ActionMap>(actionMap: T): { readonl
610
622
 
611
623
  declare function ɵprovideNgxsInternalStateTokens(): i0.EnvironmentProviders;
612
624
 
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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxs/store",
3
- "version": "19.0.0-dev.master-b836d8e",
3
+ "version": "19.0.0-dev.master-5bb8fb6",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -26,14 +26,14 @@
26
26
  "types": "./internals/index.d.ts",
27
27
  "default": "./fesm2022/ngxs-store-internals.mjs"
28
28
  },
29
- "./plugins": {
30
- "types": "./plugins/index.d.ts",
31
- "default": "./fesm2022/ngxs-store-plugins.mjs"
32
- },
33
29
  "./operators": {
34
30
  "types": "./operators/index.d.ts",
35
31
  "default": "./fesm2022/ngxs-store-operators.mjs"
36
32
  },
33
+ "./plugins": {
34
+ "types": "./plugins/index.d.ts",
35
+ "default": "./fesm2022/ngxs-store-plugins.mjs"
36
+ },
37
37
  "./internals/testing": {
38
38
  "types": "./internals/testing/index.d.ts",
39
39
  "default": "./fesm2022/ngxs-store-internals-testing.mjs"