@ws-ui/store 0.3.13 → 1.1.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/README.md +6 -2
- package/dist/index.cjs.js +57 -68
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7252 -7011
- package/dist/index.es.js.map +1 -1
- package/dist/modules/catalog/reducer.d.ts +3 -3
- package/dist/modules/catalog/thunks.d.ts +1 -1
- package/dist/modules/debugger/reducer.d.ts +76 -44
- package/dist/modules/debugger/thunks.d.ts +2 -2
- package/dist/modules/debugger/types.d.ts +68 -7
- package/dist/modules/explorer/reducer.d.ts +9 -9
- package/dist/modules/explorer/thunks.d.ts +49 -36
- package/dist/modules/modals/reducer.d.ts +5 -5
- package/dist/modules/modals/thunks.d.ts +1 -1
- package/dist/modules/model/helpers.d.ts +1 -1
- package/dist/modules/model/selectors.d.ts +1 -0
- package/dist/modules/model/subjects.d.ts +1 -1
- package/dist/modules/model/thunks.d.ts +8 -8
- package/dist/modules/model/utils.d.ts +3 -3
- package/dist/modules/roles/reducer.d.ts +22 -12
- package/dist/modules/roles/thunks.d.ts +4 -3
- package/dist/modules/root/reducer.d.ts +56 -47
- package/dist/modules/root/thunks.d.ts +27 -27
- package/dist/modules/settings/thunks.d.ts +2 -2
- package/dist/modules/shared-conditions/reducer.d.ts +10 -10
- package/dist/modules/shared-conditions/thunks.d.ts +1 -1
- package/dist/modules/shared-css/reducer.d.ts +4 -4
- package/dist/modules/shared-css/thunks.d.ts +1 -1
- package/dist/modules/shared-datasources/index.d.ts +1 -0
- package/dist/modules/shared-datasources/reducer.d.ts +1 -1
- package/dist/modules/shared-datasources/thunks.d.ts +10 -10
- package/dist/modules/shared-datasources/utils.d.ts +6 -0
- package/dist/modules/tabs/selectors.d.ts +3 -3
- package/dist/modules/webforms/datasources.adapter.d.ts +1 -1
- package/dist/modules/webforms/reducer.d.ts +10 -10
- package/dist/modules/webforms/thunks.d.ts +102 -15
- package/dist/package.json +61 -0
- package/dist/selectors/catalog.d.ts +1 -0
- package/dist/selectors/common.d.ts +44 -44
- package/dist/selectors/components.d.ts +8 -8
- package/dist/selectors/datasources.d.ts +123 -75
- package/dist/selectors/debugger.d.ts +199 -11
- package/dist/selectors/explorer.d.ts +355 -371
- package/dist/selectors/modals.d.ts +12 -12
- package/dist/selectors/roles.d.ts +104 -102
- package/dist/selectors/settings.d.ts +136 -136
- package/dist/selectors/states.d.ts +3 -3
- package/dist/selectors/styles.d.ts +60 -60
- package/dist/selectors/tabs.d.ts +5 -3
- package/dist/selectors/webforms.d.ts +157 -157
- package/dist/store.d.ts +1 -1
- package/package.json +10 -17
|
@@ -8,12 +8,12 @@ export type ICatalogState = {
|
|
|
8
8
|
error: string;
|
|
9
9
|
};
|
|
10
10
|
declare const stateSlice: import('@reduxjs/toolkit').Slice<{
|
|
11
|
-
state:
|
|
11
|
+
state: 'loading';
|
|
12
12
|
} | {
|
|
13
|
-
state:
|
|
13
|
+
state: 'loaded';
|
|
14
14
|
model: datasources.IEnhancedCatalog;
|
|
15
15
|
} | {
|
|
16
|
-
state:
|
|
16
|
+
state: 'error';
|
|
17
17
|
error: string;
|
|
18
18
|
}, {}, "catalog">;
|
|
19
19
|
export default stateSlice;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const fetchCatalog: import('@reduxjs/toolkit').AsyncThunk<datasources.IEnhancedCatalog, void, {
|
|
2
2
|
rejectValue: string;
|
|
3
3
|
state?: unknown;
|
|
4
|
-
dispatch?: import('redux').Dispatch | undefined;
|
|
4
|
+
dispatch?: import('redux').Dispatch<import('redux').AnyAction> | undefined;
|
|
5
5
|
extra?: unknown;
|
|
6
6
|
serializedErrorType?: unknown;
|
|
7
7
|
pendingMeta?: unknown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { IAddBreakpointAction, IAddExpressionAction, IAddSessionAction, IBreakpointDecoration, IClearBreakpointsAction, IDebuggerData, IDebuggerSession, IRemoveBreakpointAction, IRemoveExpressionAction, IRemoveSessionAction, IRenameExpressionAction, ISaveExpressionsAction, ISetActiveLineAction, ISetBreakpointsAction, ISetExpressionAction, ISetSourceContentAction, ISetCallChainVariablesAction, IUpdateSessionAction, ISetExpressionVariablesAction, EDebuggerState, IDebuggerMeta, ISetDebuggerMetaAction, EDebuggerErrorType, IExpression, IBreakpoint, IRemoveAllExpressionsAction, IUpdateExpressionAtAction, IClearBreakpointsExceptAction } from './types';
|
|
2
|
+
import { IAddBreakpointAction, IAddExpressionAction, IAddSessionAction, IBreakpointDecoration, IClearBreakpointsAction, IDebuggerData, IDebuggerSession, IRemoveBreakpointAction, IRemoveExpressionAction, IRemoveSessionAction, IRenameExpressionAction, ISaveExpressionsAction, ISetActiveLineAction, ISetBreakpointsAction, ISetExpressionAction, ISetSourceContentAction, ISetCallChainVariablesAction, IUpdateSessionAction, ISetExpressionVariablesAction, EDebuggerState, IDebuggerMeta, ISetDebuggerMetaAction, EDebuggerErrorType, IExpression, IBreakpoint, IRemoveAllExpressionsAction, IUpdateExpressionAtAction, IClearBreakpointsExceptAction, IToggleBreakpointAction, ISetCommonVariablesAction, IToggleBreakpointsInFileAction, IUpdateBreakpointsAction } from './types';
|
|
3
3
|
|
|
4
4
|
export interface IDebuggerState {
|
|
5
5
|
meta: IDebuggerMeta;
|
|
@@ -8,35 +8,41 @@ export interface IDebuggerState {
|
|
|
8
8
|
expressions: IExpression[];
|
|
9
9
|
}
|
|
10
10
|
declare const stateSlice: import('@reduxjs/toolkit').Slice<IDebuggerState, {
|
|
11
|
-
addBreakpointDecoration(state: import('immer/dist/internal
|
|
12
|
-
removeBreakpointDecoration(state: import('immer/dist/internal
|
|
13
|
-
setBreakpointsDecoration(state: import('immer/dist/internal
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
11
|
+
addBreakpointDecoration(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IAddBreakpointAction): void;
|
|
12
|
+
removeBreakpointDecoration(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IRemoveBreakpointAction): void;
|
|
13
|
+
setBreakpointsDecoration(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: ISetBreakpointsAction): void;
|
|
14
|
+
updateBreakpointsDecoration(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IUpdateBreakpointsAction): void;
|
|
15
|
+
clearBreakpoints(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IClearBreakpointsAction): void;
|
|
16
|
+
clearBreakpointsExcept(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IClearBreakpointsExceptAction): void;
|
|
17
|
+
clearAllBreakpoints(state: import('immer/dist/internal').WritableDraft<IDebuggerState>): void;
|
|
18
|
+
toggleBreakpoint(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IToggleBreakpointAction): void;
|
|
19
|
+
toggleBreakpointsInFile(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IToggleBreakpointsInFileAction): void;
|
|
20
|
+
disableAllBreakpoints(state: import('immer/dist/internal').WritableDraft<IDebuggerState>): void;
|
|
21
|
+
enableAllBreakpoints(state: import('immer/dist/internal').WritableDraft<IDebuggerState>): void;
|
|
22
|
+
setActiveLine(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: ISetActiveLineAction): void;
|
|
23
|
+
addExpression(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IAddExpressionAction): void;
|
|
24
|
+
removeExpression(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IRemoveExpressionAction): void;
|
|
25
|
+
removeAllExpressions(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IRemoveAllExpressionsAction): void;
|
|
26
|
+
renameExpression(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IRenameExpressionAction): void;
|
|
27
|
+
setExpression(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: ISetExpressionAction): void;
|
|
28
|
+
updateExpressionAt(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IUpdateExpressionAtAction): void;
|
|
29
|
+
saveExpressions(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: ISaveExpressionsAction): void;
|
|
30
|
+
addSession(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IAddSessionAction): void;
|
|
31
|
+
updateSession(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IUpdateSessionAction): void;
|
|
32
|
+
removeSession(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: IRemoveSessionAction): void;
|
|
33
|
+
removeSessionByIndex(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: PayloadAction<number>): void;
|
|
34
|
+
setSessions(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: PayloadAction<IDebuggerSession[]>): void;
|
|
35
|
+
setCommonVariables(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: ISetCommonVariablesAction): void;
|
|
36
|
+
setCallChainVariables(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: ISetCallChainVariablesAction): void;
|
|
37
|
+
setExpressionVariables(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: ISetExpressionVariablesAction): void;
|
|
38
|
+
setSourceContent(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: ISetSourceContentAction): void;
|
|
39
|
+
setDebuggerMeta(state: import('immer/dist/internal').WritableDraft<IDebuggerState>, action: ISetDebuggerMetaAction): void;
|
|
34
40
|
}, "debugger">;
|
|
35
41
|
export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
36
42
|
filePath: string;
|
|
37
43
|
fileType: import('./types').IDebuggerFileType;
|
|
38
44
|
methodName: string;
|
|
39
|
-
className?: string;
|
|
45
|
+
className?: string | undefined;
|
|
40
46
|
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
41
47
|
source: import('@ws-ui/shared').ISource;
|
|
42
48
|
breakpoint: IBreakpointDecoration;
|
|
@@ -44,45 +50,64 @@ export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionC
|
|
|
44
50
|
filePath: string;
|
|
45
51
|
methodName: string;
|
|
46
52
|
line: number;
|
|
47
|
-
offset?: number;
|
|
48
|
-
type?:
|
|
53
|
+
offset?: number | undefined;
|
|
54
|
+
type?: "draft" | "saved" | undefined;
|
|
49
55
|
}, "debugger/removeBreakpointDecoration">, setBreakpointsDecoration: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
50
56
|
filePath: string;
|
|
51
57
|
fileType: import('./types').IDebuggerFileType;
|
|
52
58
|
methodName: string;
|
|
53
|
-
className?: string;
|
|
59
|
+
className?: string | undefined;
|
|
54
60
|
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
55
61
|
source: import('@ws-ui/shared').ISource;
|
|
56
62
|
breakpoints: IBreakpoint[];
|
|
57
|
-
offset?: number;
|
|
58
|
-
type?:
|
|
59
|
-
clearDraft?: boolean;
|
|
60
|
-
|
|
63
|
+
offset?: number | undefined;
|
|
64
|
+
type?: "draft" | "saved" | undefined;
|
|
65
|
+
clearDraft?: boolean | undefined;
|
|
66
|
+
merge?: boolean | undefined;
|
|
67
|
+
}, "debugger/setBreakpointsDecoration">, updateBreakpointsDecoration: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
61
68
|
filePath: string;
|
|
62
|
-
|
|
69
|
+
fileType: import('./types').IDebuggerFileType;
|
|
70
|
+
methodName: string;
|
|
71
|
+
className?: string | undefined;
|
|
72
|
+
breakpoints: IBreakpoint[];
|
|
73
|
+
type?: "draft" | "saved" | undefined;
|
|
74
|
+
merge?: boolean | undefined;
|
|
75
|
+
}, "debugger/updateBreakpointsDecoration">, clearBreakpoints: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
76
|
+
filePath: string;
|
|
77
|
+
type?: "draft" | "saved" | "any" | undefined;
|
|
63
78
|
}, "debugger/clearBreakpoints">, clearBreakpointsExcept: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
64
79
|
exceptedFilePath: string;
|
|
65
|
-
type?:
|
|
66
|
-
}, "debugger/clearBreakpointsExcept">, clearAllBreakpoints: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"debugger/clearAllBreakpoints">,
|
|
80
|
+
type?: "draft" | "saved" | "any" | undefined;
|
|
81
|
+
}, "debugger/clearBreakpointsExcept">, clearAllBreakpoints: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"debugger/clearAllBreakpoints">, toggleBreakpoint: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
82
|
+
filePath: string;
|
|
83
|
+
methodName: string;
|
|
84
|
+
line: number;
|
|
85
|
+
offset?: number | undefined;
|
|
86
|
+
disabled: boolean;
|
|
87
|
+
}, "debugger/toggleBreakpoint">, toggleBreakpointsInFile: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
88
|
+
filePath: string;
|
|
89
|
+
methodName: string;
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
}, "debugger/toggleBreakpointsInFile">, disableAllBreakpoints: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"debugger/disableAllBreakpoints">, enableAllBreakpoints: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"debugger/enableAllBreakpoints">, setActiveLine: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
67
92
|
threadId: number;
|
|
68
93
|
line: number;
|
|
69
|
-
highlight?: boolean;
|
|
94
|
+
highlight?: boolean | undefined;
|
|
70
95
|
}, "debugger/setActiveLine">, addExpression: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
71
96
|
threadId: number;
|
|
72
97
|
label: string;
|
|
73
|
-
save?: boolean;
|
|
98
|
+
save?: boolean | undefined;
|
|
74
99
|
}, "debugger/addExpression">, renameExpression: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
75
100
|
threadId: number;
|
|
76
101
|
index: number;
|
|
77
102
|
replacement: string;
|
|
78
|
-
save?: boolean;
|
|
103
|
+
save?: boolean | undefined;
|
|
79
104
|
}, "debugger/renameExpression">, removeExpression: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
80
105
|
threadId: number;
|
|
81
106
|
index: number;
|
|
82
|
-
save?: boolean;
|
|
107
|
+
save?: boolean | undefined;
|
|
83
108
|
}, "debugger/removeExpression">, removeAllExpressions: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
84
109
|
threadId: number;
|
|
85
|
-
save?: boolean;
|
|
110
|
+
save?: boolean | undefined;
|
|
86
111
|
}, "debugger/removeAllExpressions">, setExpression: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
87
112
|
threadId: number;
|
|
88
113
|
expression: IExpression & {
|
|
@@ -91,14 +116,14 @@ export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionC
|
|
|
91
116
|
}, "debugger/setExpression">, updateExpressionAt: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
92
117
|
threadId: number;
|
|
93
118
|
index: number;
|
|
94
|
-
value:
|
|
119
|
+
value: string | undefined;
|
|
95
120
|
}, "debugger/updateExpressionAt">, saveExpressions: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
96
121
|
expressions: IExpression[];
|
|
97
122
|
}, "debugger/saveExpressions">, addSession: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
98
123
|
threadId: number;
|
|
99
124
|
channelId: number;
|
|
100
125
|
stackFrames: import('./types').IStackFrame[];
|
|
101
|
-
exceptions?: import('./types').IException[];
|
|
126
|
+
exceptions?: import('./types').IException[] | undefined;
|
|
102
127
|
}, "debugger/addSession">, updateSession: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
103
128
|
threadId: number;
|
|
104
129
|
changes: Partial<IDebuggerSession>;
|
|
@@ -107,12 +132,19 @@ export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionC
|
|
|
107
132
|
}, "debugger/removeSession">, removeSessionByIndex: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "debugger/removeSessionByIndex">, setSessions: import('@reduxjs/toolkit').ActionCreatorWithPayload<IDebuggerSession[], "debugger/setSessions">, setCallChainVariables: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
108
133
|
threadId: number;
|
|
109
134
|
frameId: number;
|
|
135
|
+
variablesReference: number;
|
|
110
136
|
variables: import('./types').IVariable[];
|
|
111
137
|
}, "debugger/setCallChainVariables">, setExpressionVariables: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
112
138
|
threadId: number;
|
|
113
139
|
variablesReference: number;
|
|
114
140
|
variables: import('./types').IVariable[];
|
|
115
|
-
}, "debugger/setExpressionVariables">,
|
|
141
|
+
}, "debugger/setExpressionVariables">, setCommonVariables: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
142
|
+
key: import('./types').CommonDebuggerVariablesKey;
|
|
143
|
+
threadId: number;
|
|
144
|
+
frameId: number;
|
|
145
|
+
variablesReference: number;
|
|
146
|
+
variables: import('./types').IVariable[];
|
|
147
|
+
}, "debugger/setCommonVariables">, setSourceContent: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
116
148
|
threadId: number;
|
|
117
149
|
content: string;
|
|
118
150
|
}, "debugger/setSourceContent">, setDebuggerMeta: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
@@ -121,6 +153,6 @@ export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionC
|
|
|
121
153
|
code: number | null;
|
|
122
154
|
reason: string;
|
|
123
155
|
type: EDebuggerErrorType;
|
|
124
|
-
}
|
|
156
|
+
}> | undefined;
|
|
125
157
|
}, "debugger/setDebuggerMeta">;
|
|
126
158
|
export default stateSlice;
|
|
@@ -2,7 +2,7 @@ import { AppState } from '..';
|
|
|
2
2
|
|
|
3
3
|
export declare const wipeDebuggerSessions: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
4
4
|
state: AppState;
|
|
5
|
-
dispatch?: import('redux').Dispatch | undefined;
|
|
5
|
+
dispatch?: import('redux').Dispatch<import('redux').AnyAction> | undefined;
|
|
6
6
|
extra?: unknown;
|
|
7
7
|
rejectValue?: unknown;
|
|
8
8
|
serializedErrorType?: unknown;
|
|
@@ -16,7 +16,7 @@ export declare const removeDebuggerSessionsNotIn: import('@reduxjs/toolkit').Asy
|
|
|
16
16
|
threadIds: number[];
|
|
17
17
|
}, {
|
|
18
18
|
state: AppState;
|
|
19
|
-
dispatch?: import('redux').Dispatch | undefined;
|
|
19
|
+
dispatch?: import('redux').Dispatch<import('redux').AnyAction> | undefined;
|
|
20
20
|
extra?: unknown;
|
|
21
21
|
rejectValue?: unknown;
|
|
22
22
|
serializedErrorType?: unknown;
|
|
@@ -10,7 +10,9 @@ export interface IExpression {
|
|
|
10
10
|
presentationHint?: IVariablePresentationHint;
|
|
11
11
|
}
|
|
12
12
|
export interface IBreakpoint extends DebugProtocol.SourceBreakpoint {
|
|
13
|
+
lineInEditor?: number;
|
|
13
14
|
verified?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
14
16
|
}
|
|
15
17
|
export type IDebuggerFileType = FileFolderType.METHOD | FileFolderType.CLASS;
|
|
16
18
|
interface IBreakpointsData {
|
|
@@ -45,15 +47,22 @@ export interface IStackFrame extends DebugProtocol.StackFrame {
|
|
|
45
47
|
offset: number;
|
|
46
48
|
lineIndex: number;
|
|
47
49
|
}
|
|
48
|
-
export interface
|
|
49
|
-
frameId: number;
|
|
50
|
-
items: IVariable[];
|
|
51
|
-
}
|
|
52
|
-
export interface IExpressionVariable {
|
|
50
|
+
export interface ICommonVariable {
|
|
53
51
|
variablesReference: number;
|
|
54
52
|
items: IVariable[];
|
|
55
53
|
}
|
|
56
|
-
export
|
|
54
|
+
export interface ICallChainVariable extends ICommonVariable {
|
|
55
|
+
frameId: number;
|
|
56
|
+
}
|
|
57
|
+
export interface ILocalVariable extends ICommonVariable {
|
|
58
|
+
frameId: number;
|
|
59
|
+
}
|
|
60
|
+
export interface ICurrentLineVariable extends ICommonVariable {
|
|
61
|
+
frameId: number;
|
|
62
|
+
}
|
|
63
|
+
export interface IExpressionVariable extends ICommonVariable {
|
|
64
|
+
}
|
|
65
|
+
export type ISessionVariable = ICallChainVariable | ILocalVariable | ICurrentLineVariable | IExpressionVariable;
|
|
57
66
|
export interface IException {
|
|
58
67
|
errMess: string;
|
|
59
68
|
location: string;
|
|
@@ -83,12 +92,16 @@ export interface IDebuggerSession {
|
|
|
83
92
|
variables: {
|
|
84
93
|
callchain: ICallChainVariable[];
|
|
85
94
|
expressions: IExpressionVariable[];
|
|
95
|
+
local: ILocalVariable[];
|
|
96
|
+
currentLine: ICurrentLineVariable[];
|
|
86
97
|
};
|
|
87
98
|
stopped?: boolean;
|
|
88
99
|
}
|
|
89
|
-
export type DebuggerVariablesKey = keyof IDebuggerSession['variables']
|
|
100
|
+
export type DebuggerVariablesKey<K extends string = ''> = keyof Omit<IDebuggerSession['variables'], K>;
|
|
101
|
+
export type CommonDebuggerVariablesKey = DebuggerVariablesKey<'expressions' | 'callchain'>;
|
|
90
102
|
export interface IBreakpointDecoration {
|
|
91
103
|
line: number;
|
|
104
|
+
lineInEditor?: number;
|
|
92
105
|
offset?: number;
|
|
93
106
|
type?: BreakpointType;
|
|
94
107
|
}
|
|
@@ -119,6 +132,28 @@ export type ISetBreakpointsAction = PayloadAction<{
|
|
|
119
132
|
offset?: number;
|
|
120
133
|
type?: BreakpointType;
|
|
121
134
|
clearDraft?: boolean;
|
|
135
|
+
merge?: boolean;
|
|
136
|
+
}>;
|
|
137
|
+
export type IUpdateBreakpointsAction = PayloadAction<{
|
|
138
|
+
filePath: string;
|
|
139
|
+
fileType: IDebuggerFileType;
|
|
140
|
+
methodName: string;
|
|
141
|
+
className?: string;
|
|
142
|
+
breakpoints: IBreakpoint[];
|
|
143
|
+
type?: BreakpointType;
|
|
144
|
+
merge?: boolean;
|
|
145
|
+
}>;
|
|
146
|
+
export type IToggleBreakpointAction = PayloadAction<{
|
|
147
|
+
filePath: string;
|
|
148
|
+
methodName: string;
|
|
149
|
+
line: number;
|
|
150
|
+
offset?: number;
|
|
151
|
+
disabled: boolean;
|
|
152
|
+
}>;
|
|
153
|
+
export type IToggleBreakpointsInFileAction = PayloadAction<{
|
|
154
|
+
filePath: string;
|
|
155
|
+
methodName: string;
|
|
156
|
+
disabled: boolean;
|
|
122
157
|
}>;
|
|
123
158
|
export type IClearBreakpointsAction = PayloadAction<{
|
|
124
159
|
filePath: string;
|
|
@@ -180,9 +215,17 @@ export type IUpdateSessionAction = PayloadAction<{
|
|
|
180
215
|
export type IRemoveSessionAction = PayloadAction<{
|
|
181
216
|
threadId: number;
|
|
182
217
|
}>;
|
|
218
|
+
export type ISetCommonVariablesAction = PayloadAction<{
|
|
219
|
+
key: CommonDebuggerVariablesKey;
|
|
220
|
+
threadId: number;
|
|
221
|
+
frameId: number;
|
|
222
|
+
variablesReference: number;
|
|
223
|
+
variables: IVariable[];
|
|
224
|
+
}>;
|
|
183
225
|
export type ISetCallChainVariablesAction = PayloadAction<{
|
|
184
226
|
threadId: number;
|
|
185
227
|
frameId: number;
|
|
228
|
+
variablesReference: number;
|
|
186
229
|
variables: IVariable[];
|
|
187
230
|
}>;
|
|
188
231
|
export type ISetExpressionVariablesAction = PayloadAction<{
|
|
@@ -227,4 +270,22 @@ export type ISetDebuggerMetaAction = PayloadAction<{
|
|
|
227
270
|
state: EDebuggerState;
|
|
228
271
|
error?: IDebuggerError;
|
|
229
272
|
}>;
|
|
273
|
+
export interface IEnhancedBreakpoint extends IBreakpoint {
|
|
274
|
+
offset?: number;
|
|
275
|
+
fileType: IDebuggerFileType;
|
|
276
|
+
filePath: string;
|
|
277
|
+
methodName: string;
|
|
278
|
+
className?: string;
|
|
279
|
+
ext: DebuggerFileExtension;
|
|
280
|
+
}
|
|
281
|
+
export interface IBreakpointsByFile {
|
|
282
|
+
file: {
|
|
283
|
+
path: string;
|
|
284
|
+
type: IDebuggerFileType;
|
|
285
|
+
methodName: string;
|
|
286
|
+
className?: string;
|
|
287
|
+
ext: DebuggerFileExtension;
|
|
288
|
+
};
|
|
289
|
+
breakpoints: IEnhancedBreakpoint[];
|
|
290
|
+
}
|
|
230
291
|
export {};
|
|
@@ -7,24 +7,24 @@ declare const stateSlice: import('@reduxjs/toolkit').Slice<ITreeItem[], {
|
|
|
7
7
|
newName: string;
|
|
8
8
|
prevName: string;
|
|
9
9
|
}[]>) => ITreeItem[];
|
|
10
|
-
removeClassesFolder: (state: import('immer/dist/internal
|
|
11
|
-
addClassesFolder: (state: import('immer/dist/internal
|
|
12
|
-
toggleExpandFolder: (state: import('immer/dist/internal
|
|
13
|
-
expandFolder: (state: import('immer/dist/internal
|
|
14
|
-
openAddFileInput: (state: import('immer/dist/internal
|
|
15
|
-
addNewFile: (state: import('immer/dist/internal
|
|
10
|
+
removeClassesFolder: (state: import('immer/dist/internal').WritableDraft<ITreeItem>[], action: PayloadAction<string[]>) => import('immer/dist/internal').WritableDraft<ITreeItem>[];
|
|
11
|
+
addClassesFolder: (state: import('immer/dist/internal').WritableDraft<ITreeItem>[], action: PayloadAction<ITreeItem[]>) => import('immer/dist/internal').WritableDraft<ITreeItem>[];
|
|
12
|
+
toggleExpandFolder: (state: import('immer/dist/internal').WritableDraft<ITreeItem>[], action: PayloadAction<ITreeItem>) => import('immer/dist/internal').WritableDraft<ITreeItem>[];
|
|
13
|
+
expandFolder: (state: import('immer/dist/internal').WritableDraft<ITreeItem>[], action: PayloadAction<ITreeItem>) => import('immer/dist/internal').WritableDraft<ITreeItem>[];
|
|
14
|
+
openAddFileInput: (state: import('immer/dist/internal').WritableDraft<ITreeItem>[], action: PayloadAction<ITreeItem>) => ITreeItem[];
|
|
15
|
+
addNewFile: (state: import('immer/dist/internal').WritableDraft<ITreeItem>[], action: PayloadAction<{
|
|
16
16
|
parent: ITreeItem;
|
|
17
17
|
child: ITreeItem;
|
|
18
18
|
}>) => ITreeItem[];
|
|
19
|
-
removeFile: (state: import('immer/dist/internal
|
|
19
|
+
removeFile: (state: import('immer/dist/internal').WritableDraft<ITreeItem>[], action: PayloadAction<{
|
|
20
20
|
parent: ITreeItem;
|
|
21
21
|
child: ITreeItem;
|
|
22
22
|
}>) => ITreeItem[];
|
|
23
|
-
refreshFile: (state: import('immer/dist/internal
|
|
23
|
+
refreshFile: (state: import('immer/dist/internal').WritableDraft<ITreeItem>[], action: PayloadAction<{
|
|
24
24
|
parent: ITreeItem;
|
|
25
25
|
child: ITreeItem;
|
|
26
26
|
}>) => ITreeItem[];
|
|
27
|
-
setFolderChildren: (state: import('immer/dist/internal
|
|
27
|
+
setFolderChildren: (state: import('immer/dist/internal').WritableDraft<ITreeItem>[], action: PayloadAction<{
|
|
28
28
|
parentPath: string;
|
|
29
29
|
children: ITreeItem[];
|
|
30
30
|
}>) => ITreeItem[];
|