@ngxs/store 3.8.2-dev.master-0947c22 → 3.8.2-dev.master-0497fe4
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/esm2022/internals/initial-state.mjs +2 -2
- package/esm2022/internals/internal-tokens.mjs +2 -2
- package/esm2022/internals/symbols.mjs +1 -1
- package/esm2022/plugins/symbols.mjs +2 -2
- package/esm2022/src/decorators/action.mjs +2 -4
- package/esm2022/src/decorators/selector/selector.mjs +2 -4
- package/esm2022/src/decorators/state.mjs +2 -2
- package/esm2022/src/dev-features/symbols.mjs +2 -2
- package/esm2022/src/execution/dispatch-outside-zone-ngxs-execution-strategy.mjs +2 -4
- package/esm2022/src/execution/symbols.mjs +2 -2
- package/esm2022/src/internal/dispatcher.mjs +2 -2
- package/esm2022/src/internal/internals.mjs +4 -8
- package/esm2022/src/internal/lifecycle-state-manager.mjs +2 -2
- package/esm2022/src/internal/state-factory.mjs +2 -2
- package/esm2022/src/internal/state-operations.mjs +2 -2
- package/esm2022/src/internal/state-operators.mjs +2 -2
- package/esm2022/src/selectors/create-model-selector.mjs +2 -2
- package/esm2022/src/selectors/create-pick-selector.mjs +2 -2
- package/esm2022/src/selectors/create-property-selectors.mjs +2 -2
- package/esm2022/src/standalone-features/initializers.mjs +2 -2
- package/esm2022/src/symbols.mjs +2 -2
- package/fesm2022/ngxs-store-internals.mjs +2 -2
- package/fesm2022/ngxs-store-internals.mjs.map +1 -1
- package/fesm2022/ngxs-store-plugins.mjs +1 -1
- package/fesm2022/ngxs-store-plugins.mjs.map +1 -1
- package/fesm2022/ngxs-store.mjs +19 -29
- package/fesm2022/ngxs-store.mjs.map +1 -1
- package/internals/index.d.ts +4 -0
- package/package.json +1 -1
- package/schematics/src/starter-kit/files/store/dashboard/index.ts__template__ +0 -7
- package/schematics/src/starter-kit/files/store/store.config.ts__template__ +2 -2
package/internals/index.d.ts
CHANGED
|
@@ -41,6 +41,9 @@ interface ɵStoreOptions<T> {
|
|
|
41
41
|
defaults?: T;
|
|
42
42
|
/**
|
|
43
43
|
* Sub states for the given state.
|
|
44
|
+
*
|
|
45
|
+
* @deprecated
|
|
46
|
+
* Read the deprecation notice at this link: https://ngxs.io/recipes/sub-states-deprecation.
|
|
44
47
|
*/
|
|
45
48
|
children?: ɵStateClass[];
|
|
46
49
|
}
|
|
@@ -54,6 +57,7 @@ interface ɵMetaDataModel {
|
|
|
54
57
|
defaults: any;
|
|
55
58
|
path: string | null;
|
|
56
59
|
makeRootSelector: ɵSelectorFactory | null;
|
|
60
|
+
/** @deprecated */
|
|
57
61
|
children?: ɵStateClassInternal[];
|
|
58
62
|
}
|
|
59
63
|
interface ɵSelectorMetaDataModel {
|
package/package.json
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { State } from '@ngxs/store';
|
|
2
1
|
import { DictionaryState } from './states/dictionary/dictionary.state';
|
|
3
2
|
import { UserState } from './states/user/user.state';
|
|
4
3
|
|
|
5
4
|
export const DashboardStates = [DictionaryState, UserState];
|
|
6
|
-
|
|
7
|
-
@State({
|
|
8
|
-
name: 'dashboardState',
|
|
9
|
-
children: DashboardStates
|
|
10
|
-
})
|
|
11
|
-
export class DashboardState {}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AuthState } from './auth/auth.state';
|
|
2
|
-
import { DashboardStates
|
|
2
|
+
import { DashboardStates } from './dashboard';
|
|
3
3
|
import { NgxsConfig } from '@ngxs/store/src/symbols';
|
|
4
4
|
import { NgxsDevtoolsOptions } from '@ngxs/devtools-plugin/src/symbols';
|
|
5
5
|
import { NgxsLoggerPluginOptions } from '@ngxs/logger-plugin/src/symbols';
|
|
6
6
|
|
|
7
|
-
export const STATES_MODULES = [AuthState,
|
|
7
|
+
export const STATES_MODULES = [AuthState, ...DashboardStates];
|
|
8
8
|
|
|
9
9
|
export const OPTIONS_CONFIG: Partial<NgxsConfig> = {
|
|
10
10
|
/**
|