@ngrx/store-devtools 20.1.0 → 21.0.0-beta.0

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 (55) hide show
  1. package/fesm2022/ngrx-store-devtools.mjs +13 -13
  2. package/migrations/17_0_0-beta/index.js +11 -14
  3. package/migrations/17_0_0-beta/index.js.map +1 -1
  4. package/migrations/6_0_0/index.js +3 -6
  5. package/migrations/6_0_0/index.js.map +1 -1
  6. package/package.json +5 -5
  7. package/schematics/ng-add/index.js +30 -33
  8. package/schematics/ng-add/index.js.map +1 -1
  9. package/schematics/ng-add/schema.js +0 -2
  10. package/schematics-core/index.js +24 -75
  11. package/schematics-core/index.js.map +1 -1
  12. package/schematics-core/utility/ast-utils.js +28 -44
  13. package/schematics-core/utility/ast-utils.js.map +1 -1
  14. package/schematics-core/utility/change.js +8 -15
  15. package/schematics-core/utility/change.js.map +1 -1
  16. package/schematics-core/utility/config.js +4 -8
  17. package/schematics-core/utility/config.js.map +1 -1
  18. package/schematics-core/utility/find-component.js +17 -22
  19. package/schematics-core/utility/find-component.js.map +1 -1
  20. package/schematics-core/utility/find-module.js +19 -24
  21. package/schematics-core/utility/find-module.js.map +1 -1
  22. package/schematics-core/utility/json-utilts.js +1 -4
  23. package/schematics-core/utility/json-utilts.js.map +1 -1
  24. package/schematics-core/utility/libs-version.js +1 -4
  25. package/schematics-core/utility/libs-version.js.map +1 -1
  26. package/schematics-core/utility/ngrx-utils.js +28 -36
  27. package/schematics-core/utility/ngrx-utils.js.map +1 -1
  28. package/schematics-core/utility/package.js +1 -4
  29. package/schematics-core/utility/package.js.map +1 -1
  30. package/schematics-core/utility/parse-name.js +5 -8
  31. package/schematics-core/utility/parse-name.js.map +1 -1
  32. package/schematics-core/utility/project.js +9 -15
  33. package/schematics-core/utility/project.js.map +1 -1
  34. package/schematics-core/utility/standalone.js +13 -18
  35. package/schematics-core/utility/standalone.js.map +1 -1
  36. package/schematics-core/utility/strings.js +9 -20
  37. package/schematics-core/utility/strings.js.map +1 -1
  38. package/schematics-core/utility/update.js +4 -7
  39. package/schematics-core/utility/update.js.map +1 -1
  40. package/schematics-core/utility/visitors.js +16 -30
  41. package/schematics-core/utility/visitors.js.map +1 -1
  42. package/types/ngrx-store-devtools.d.ts +252 -0
  43. package/index.d.ts +0 -6
  44. package/public_api.d.ts +0 -1
  45. package/src/actions.d.ts +0 -79
  46. package/src/config.d.ts +0 -126
  47. package/src/devtools-dispatcher.d.ts +0 -6
  48. package/src/devtools.d.ts +0 -35
  49. package/src/extension.d.ts +0 -52
  50. package/src/index.d.ts +0 -6
  51. package/src/instrument.d.ts +0 -9
  52. package/src/provide-store-devtools.d.ts +0 -26
  53. package/src/reducer.d.ts +0 -47
  54. package/src/utils.d.ts +0 -42
  55. package/src/zone-config.d.ts +0 -9
@@ -1,26 +0,0 @@
1
- import { EnvironmentProviders, InjectionToken } from '@angular/core';
2
- import { ReduxDevtoolsExtension } from './extension';
3
- import { StoreDevtoolsConfig, StoreDevtoolsOptions } from './config';
4
- import { StateObservable } from '@ngrx/store';
5
- import { StoreDevtools } from './devtools';
6
- export declare const IS_EXTENSION_OR_MONITOR_PRESENT: InjectionToken<boolean>;
7
- export declare function createIsExtensionOrMonitorPresent(extension: ReduxDevtoolsExtension | null, config: StoreDevtoolsConfig): boolean;
8
- export declare function createReduxDevtoolsExtension(): any;
9
- export declare function createStateObservable(devtools: StoreDevtools): StateObservable;
10
- /**
11
- * Provides developer tools and instrumentation for `Store`.
12
- *
13
- * @usageNotes
14
- *
15
- * ```ts
16
- * bootstrapApplication(AppComponent, {
17
- * providers: [
18
- * provideStoreDevtools({
19
- * maxAge: 25,
20
- * logOnly: !isDevMode(),
21
- * }),
22
- * ],
23
- * });
24
- * ```
25
- */
26
- export declare function provideStoreDevtools(options?: StoreDevtoolsOptions): EnvironmentProviders;
package/src/reducer.d.ts DELETED
@@ -1,47 +0,0 @@
1
- import { ErrorHandler } from '@angular/core';
2
- import { Action, ActionReducer, UPDATE, INIT } from '@ngrx/store';
3
- import * as DevtoolsActions from './actions';
4
- import { StoreDevtoolsConfig } from './config';
5
- export type InitAction = {
6
- readonly type: typeof INIT;
7
- };
8
- export type UpdateReducerAction = {
9
- readonly type: typeof UPDATE;
10
- };
11
- export type CoreActions = InitAction | UpdateReducerAction;
12
- export type Actions = DevtoolsActions.All | CoreActions;
13
- export declare const INIT_ACTION: {
14
- type: "@ngrx/store/init";
15
- };
16
- export declare const RECOMPUTE: "@ngrx/store-devtools/recompute";
17
- export declare const RECOMPUTE_ACTION: {
18
- type: "@ngrx/store-devtools/recompute";
19
- };
20
- export interface ComputedState {
21
- state: any;
22
- error: any;
23
- }
24
- export interface LiftedAction {
25
- type: string;
26
- action: Action;
27
- }
28
- export interface LiftedActions {
29
- [id: number]: LiftedAction;
30
- }
31
- export interface LiftedState {
32
- monitorState: any;
33
- nextActionId: number;
34
- actionsById: LiftedActions;
35
- stagedActionIds: number[];
36
- skippedActionIds: number[];
37
- committedState: any;
38
- currentStateIndex: number;
39
- computedStates: ComputedState[];
40
- isLocked: boolean;
41
- isPaused: boolean;
42
- }
43
- export declare function liftInitialState(initialCommittedState?: any, monitorReducer?: any): LiftedState;
44
- /**
45
- * Creates a history state reducer from an app's reducer.
46
- */
47
- export declare function liftReducerWith(initialCommittedState: any, initialLiftedState: LiftedState, errorHandler: ErrorHandler, monitorReducer?: any, options?: Partial<StoreDevtoolsConfig>): (reducer: ActionReducer<any, any>) => ActionReducer<LiftedState, Actions>;
package/src/utils.d.ts DELETED
@@ -1,42 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import * as Actions from './actions';
3
- import { ActionSanitizer, StateSanitizer, Predicate, StoreDevtoolsConfig } from './config';
4
- import { ComputedState, LiftedAction, LiftedActions, LiftedState } from './reducer';
5
- export declare function difference(first: any[], second: any[]): any[];
6
- /**
7
- * Provides an app's view into the state of the lifted store.
8
- */
9
- export declare function unliftState(liftedState: LiftedState): any;
10
- export declare function unliftAction(liftedState: LiftedState): LiftedAction;
11
- /**
12
- * Lifts an app's action into an action on the lifted store.
13
- */
14
- export declare function liftAction(action: Action): Actions.PerformAction;
15
- /**
16
- * Sanitizes given actions with given function.
17
- */
18
- export declare function sanitizeActions(actionSanitizer: ActionSanitizer, actions: LiftedActions): LiftedActions;
19
- /**
20
- * Sanitizes given action with given function.
21
- */
22
- export declare function sanitizeAction(actionSanitizer: ActionSanitizer, action: LiftedAction, actionIdx: number): LiftedAction;
23
- /**
24
- * Sanitizes given states with given function.
25
- */
26
- export declare function sanitizeStates(stateSanitizer: StateSanitizer, states: ComputedState[]): ComputedState[];
27
- /**
28
- * Sanitizes given state with given function.
29
- */
30
- export declare function sanitizeState(stateSanitizer: StateSanitizer, state: any, stateIdx: number): any;
31
- /**
32
- * Read the config and tell if actions should be filtered
33
- */
34
- export declare function shouldFilterActions(config: StoreDevtoolsConfig): string[] | Predicate;
35
- /**
36
- * Return a full filtered lifted state
37
- */
38
- export declare function filterLiftedState(liftedState: LiftedState, predicate?: Predicate, safelist?: string[], blocklist?: string[]): LiftedState;
39
- /**
40
- * Return true is the action should be ignored
41
- */
42
- export declare function isActionFiltered(state: any, action: LiftedAction, predicate?: Predicate, safelist?: string[], blockedlist?: string[]): true | RegExpMatchArray;
@@ -1,9 +0,0 @@
1
- import { NgZone } from '@angular/core';
2
- export type ZoneConfig = {
3
- connectInZone: true;
4
- ngZone: NgZone;
5
- } | {
6
- connectInZone: false;
7
- ngZone: null;
8
- };
9
- export declare function injectZoneConfig(connectInZone: boolean): ZoneConfig;