@ngrx/store-devtools 12.2.0 → 12.5.1
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/bundles/ngrx-store-devtools.umd.js +31 -3
- package/bundles/ngrx-store-devtools.umd.js.map +1 -1
- package/esm2015/src/config.js +14 -2
- package/esm2015/src/devtools-dispatcher.js +2 -1
- package/esm2015/src/devtools.js +9 -2
- package/esm2015/src/extension.js +9 -2
- package/esm2015/src/instrument.js +2 -1
- package/fesm2015/ngrx-store-devtools.js +31 -3
- package/fesm2015/ngrx-store-devtools.js.map +1 -1
- package/ngrx-store-devtools.metadata.json +1 -1
- package/package.json +3 -3
- package/schematics-core/index.js +2 -1
- package/schematics-core/index.js.map +1 -1
- package/schematics-core/utility/libs-version.js +1 -1
- package/schematics-core/utility/libs-version.js.map +1 -1
- package/schematics-core/utility/ngrx-utils.js +7 -1
- package/schematics-core/utility/ngrx-utils.js.map +1 -1
- package/src/config.d.ts +69 -0
package/src/config.d.ts
CHANGED
|
@@ -10,33 +10,102 @@ export declare type SerializationOptions = {
|
|
|
10
10
|
refs?: Array<any>;
|
|
11
11
|
};
|
|
12
12
|
export declare type Predicate = (state: any, action: Action) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Chrome extension documentation
|
|
15
|
+
* @see https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/API/Arguments.md#features
|
|
16
|
+
* Firefox extension documentation
|
|
17
|
+
* @see https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md#features
|
|
18
|
+
*/
|
|
13
19
|
export interface DevToolsFeatureOptions {
|
|
20
|
+
/**
|
|
21
|
+
* Start/pause recording of dispatched actions
|
|
22
|
+
*/
|
|
14
23
|
pause?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Lock/unlock dispatching actions and side effects
|
|
26
|
+
*/
|
|
15
27
|
lock?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Persist states on page reloading
|
|
30
|
+
*/
|
|
16
31
|
persist?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Export history of actions in a file
|
|
34
|
+
*/
|
|
17
35
|
export?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Import history of actions from a file
|
|
38
|
+
*/
|
|
18
39
|
import?: 'custom' | boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Jump back and forth (time travelling)
|
|
42
|
+
*/
|
|
19
43
|
jump?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Skip (cancel) actions
|
|
46
|
+
*/
|
|
20
47
|
skip?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Drag and drop actions in the history list
|
|
50
|
+
*/
|
|
21
51
|
reorder?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Dispatch custom actions or action creators
|
|
54
|
+
*/
|
|
22
55
|
dispatch?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Generate tests for the selected actions
|
|
58
|
+
*/
|
|
23
59
|
test?: boolean;
|
|
24
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Chrome extension documentation
|
|
63
|
+
* @see https://github.com/reduxjs/redux-devtools/blob/main/extension/docs/API/Arguments.md
|
|
64
|
+
* Firefox extension documentation
|
|
65
|
+
* @see https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md
|
|
66
|
+
*/
|
|
25
67
|
export declare class StoreDevtoolsConfig {
|
|
68
|
+
/**
|
|
69
|
+
* Maximum allowed actions to be stored in the history tree (default: `false`)
|
|
70
|
+
*/
|
|
26
71
|
maxAge: number | false;
|
|
27
72
|
monitor?: ActionReducer<any, any>;
|
|
73
|
+
/**
|
|
74
|
+
* Function which takes `action` object and id number as arguments, and should return `action` object back.
|
|
75
|
+
*/
|
|
28
76
|
actionSanitizer?: ActionSanitizer;
|
|
77
|
+
/**
|
|
78
|
+
* Function which takes `state` object and index as arguments, and should return `state` object back.
|
|
79
|
+
*/
|
|
29
80
|
stateSanitizer?: StateSanitizer;
|
|
81
|
+
/**
|
|
82
|
+
* The instance name to be shown on the monitor page (default: `document.title`)
|
|
83
|
+
*/
|
|
30
84
|
name?: string;
|
|
31
85
|
serialize?: boolean | SerializationOptions;
|
|
32
86
|
logOnly?: boolean;
|
|
33
87
|
features?: DevToolsFeatureOptions;
|
|
88
|
+
/**
|
|
89
|
+
* Action types to be hidden in the monitors. If `actionsSafelist` specified, `actionsBlocklist` is ignored.
|
|
90
|
+
*/
|
|
34
91
|
actionsBlocklist?: string[];
|
|
92
|
+
/**
|
|
93
|
+
* Action types to be shown in the monitors
|
|
94
|
+
*/
|
|
35
95
|
actionsSafelist?: string[];
|
|
96
|
+
/**
|
|
97
|
+
* Called for every action before sending, takes state and action object, and returns true in case it allows sending the current data to the monitor.
|
|
98
|
+
*/
|
|
36
99
|
predicate?: Predicate;
|
|
100
|
+
/**
|
|
101
|
+
* Auto pauses when the extension’s window is not opened, and so has zero impact on your app when not in use.
|
|
102
|
+
*/
|
|
37
103
|
autoPause?: boolean;
|
|
38
104
|
}
|
|
39
105
|
export declare const STORE_DEVTOOLS_CONFIG: InjectionToken<StoreDevtoolsConfig>;
|
|
106
|
+
/**
|
|
107
|
+
* Used to provide a `StoreDevtoolsConfig` for the store-devtools.
|
|
108
|
+
*/
|
|
40
109
|
export declare const INITIAL_OPTIONS: InjectionToken<StoreDevtoolsConfig>;
|
|
41
110
|
export declare type StoreDevtoolsOptions = Partial<StoreDevtoolsConfig> | (() => Partial<StoreDevtoolsConfig>);
|
|
42
111
|
export declare function noMonitor(): null;
|