@ws-ui/store 0.1.0 → 0.1.2
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 +3 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/store.d.ts +94 -0
- package/dist/index.cjs.js +157 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +6 -86
- package/dist/index.es.js +15729 -0
- package/dist/index.es.js.map +1 -0
- package/dist/modules/catalog/index.d.ts +13 -0
- package/dist/modules/catalog/reducer.d.ts +20 -0
- package/dist/modules/catalog/thunks.d.ts +4 -0
- package/dist/modules/catalog/types.d.ts +1 -0
- package/dist/modules/debugger/index.d.ts +6 -0
- package/dist/modules/debugger/reducer.d.ts +121 -0
- package/dist/modules/debugger/thunks.d.ts +11 -0
- package/dist/modules/debugger/types.d.ts +226 -0
- package/dist/modules/debugger/utils.d.ts +3 -0
- package/dist/modules/explorer/index.d.ts +6 -0
- package/dist/modules/explorer/reducer.d.ts +38 -0
- package/dist/modules/explorer/thunks.d.ts +263 -0
- package/dist/modules/explorer/types.d.ts +56 -0
- package/dist/modules/explorer/utils.d.ts +4 -0
- package/dist/modules/index.d.ts +52 -0
- package/dist/modules/modals/index.d.ts +5 -0
- package/dist/modules/modals/reducer.d.ts +17 -0
- package/dist/modules/modals/thunks.d.ts +12 -0
- package/dist/modules/modals/types.d.ts +69 -0
- package/dist/modules/model/helpers.d.ts +12 -0
- package/dist/modules/model/index.d.ts +8 -0
- package/dist/modules/model/reducer.d.ts +33 -0
- package/dist/modules/model/selectors.d.ts +12 -0
- package/dist/modules/model/subjects.d.ts +6 -0
- package/dist/modules/model/thunks.d.ts +55 -0
- package/dist/modules/model/types.d.ts +97 -0
- package/dist/modules/roles/__tests__/adapter.test.d.ts +1 -0
- package/dist/modules/roles/adapter.d.ts +179 -0
- package/dist/modules/roles/index.d.ts +21 -0
- package/dist/modules/roles/reducer.d.ts +64 -0
- package/dist/modules/roles/thunks.d.ts +24 -0
- package/dist/modules/roles/types.d.ts +86 -0
- package/dist/modules/root/index.d.ts +5 -0
- package/dist/modules/root/reducer.d.ts +153 -0
- package/dist/modules/root/thunks.d.ts +117 -0
- package/dist/modules/root/types.d.ts +59 -0
- package/dist/modules/settings/index.d.ts +5 -0
- package/dist/modules/settings/reducer.d.ts +45 -0
- package/dist/modules/settings/thunks.d.ts +7 -0
- package/dist/modules/settings/types.d.ts +7 -0
- package/dist/modules/settings/utils.d.ts +2 -0
- package/dist/modules/shared-css/index.d.ts +5 -0
- package/dist/modules/shared-css/reducer.d.ts +21 -0
- package/dist/modules/shared-css/thunks.d.ts +6 -0
- package/dist/modules/shared-css/types.d.ts +1 -0
- package/dist/modules/shared-datasources/index.d.ts +5 -0
- package/dist/modules/shared-datasources/reducer.d.ts +18 -0
- package/dist/modules/shared-datasources/thunks.d.ts +32 -0
- package/dist/modules/shared-datasources/types.d.ts +1 -0
- package/dist/modules/tabs/index.d.ts +5 -0
- package/dist/modules/tabs/reducer.d.ts +4 -0
- package/dist/modules/tabs/selectors.d.ts +64 -0
- package/dist/modules/tabs/types.d.ts +1 -0
- package/dist/modules/webforms/datasources.adapter.d.ts +40 -0
- package/dist/modules/webforms/index.d.ts +6 -0
- package/dist/modules/webforms/private.d.ts +3 -0
- package/dist/modules/webforms/reducer.d.ts +53 -0
- package/dist/modules/webforms/thunks.d.ts +58 -0
- package/dist/modules/webforms/types.d.ts +71 -0
- package/dist/provider.d.ts +5 -0
- package/dist/selectors/catalog.d.ts +234 -0
- package/dist/selectors/common.d.ts +146 -0
- package/dist/selectors/components.d.ts +70 -0
- package/dist/selectors/datasources.d.ts +262 -0
- package/dist/selectors/debugger.d.ts +922 -0
- package/dist/selectors/explorer.d.ts +1352 -0
- package/dist/selectors/index.d.ts +12 -0
- package/dist/selectors/modals.d.ts +41 -0
- package/dist/selectors/roles.d.ts +471 -0
- package/dist/selectors/settings.d.ts +337 -0
- package/dist/selectors/styles.d.ts +234 -0
- package/dist/selectors/tabs.d.ts +72 -0
- package/dist/selectors/webforms.d.ts +450 -0
- package/dist/store.d.ts +10 -0
- package/dist/utils.d.ts +16 -0
- package/package.json +46 -20
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -168
- package/dist/index.js.map +0 -1
- package/dist/index.module.js +0 -167
- package/dist/index.module.js.map +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("redux").Reducer<{
|
|
2
|
+
state: "loading";
|
|
3
|
+
} | {
|
|
4
|
+
state: "loaded";
|
|
5
|
+
model: datasources.IEnhancedCatalog;
|
|
6
|
+
} | {
|
|
7
|
+
state: "error";
|
|
8
|
+
error: string;
|
|
9
|
+
}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
export * from './reducer';
|
|
12
|
+
export * from './thunks';
|
|
13
|
+
export * from './types';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="@ws-ui/shared/dist/declarations/datasources/datasource" />
|
|
2
|
+
export type ICatalogState = {
|
|
3
|
+
state: 'loading';
|
|
4
|
+
} | {
|
|
5
|
+
state: 'loaded';
|
|
6
|
+
model: datasources.IEnhancedCatalog;
|
|
7
|
+
} | {
|
|
8
|
+
state: 'error';
|
|
9
|
+
error: string;
|
|
10
|
+
};
|
|
11
|
+
declare const stateSlice: import("@reduxjs/toolkit").Slice<{
|
|
12
|
+
state: 'loading';
|
|
13
|
+
} | {
|
|
14
|
+
state: 'loaded';
|
|
15
|
+
model: datasources.IEnhancedCatalog;
|
|
16
|
+
} | {
|
|
17
|
+
state: 'error';
|
|
18
|
+
error: string;
|
|
19
|
+
}, {}, "catalog">;
|
|
20
|
+
export default stateSlice;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,121 @@
|
|
|
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 } from './types';
|
|
3
|
+
export interface IDebuggerState {
|
|
4
|
+
meta: IDebuggerMeta;
|
|
5
|
+
list: IDebuggerData[];
|
|
6
|
+
sessions: IDebuggerSession[];
|
|
7
|
+
expressions: IExpression[];
|
|
8
|
+
}
|
|
9
|
+
declare const stateSlice: import("@reduxjs/toolkit").Slice<IDebuggerState, {
|
|
10
|
+
addBreakpointDecoration(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IAddBreakpointAction): void;
|
|
11
|
+
removeBreakpointDecoration(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IRemoveBreakpointAction): void;
|
|
12
|
+
setBreakpointsDecoration(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: ISetBreakpointsAction): void;
|
|
13
|
+
clearBreakpoints(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IClearBreakpointsAction): void;
|
|
14
|
+
setActiveLine(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: ISetActiveLineAction): void;
|
|
15
|
+
addExpression(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IAddExpressionAction): void;
|
|
16
|
+
removeExpression(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IRemoveExpressionAction): void;
|
|
17
|
+
removeAllExpressions(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IRemoveAllExpressionsAction): void;
|
|
18
|
+
renameExpression(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IRenameExpressionAction): void;
|
|
19
|
+
setExpression(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: ISetExpressionAction): void;
|
|
20
|
+
updateExpressionAt(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IUpdateExpressionAtAction): void;
|
|
21
|
+
saveExpressions(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: ISaveExpressionsAction): void;
|
|
22
|
+
addSession(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IAddSessionAction): void;
|
|
23
|
+
updateSession(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IUpdateSessionAction): void;
|
|
24
|
+
removeSession(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: IRemoveSessionAction): void;
|
|
25
|
+
removeSessionByIndex(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: PayloadAction<number>): void;
|
|
26
|
+
setSessions(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: PayloadAction<IDebuggerSession[]>): void;
|
|
27
|
+
setCallChainVariables(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: ISetCallChainVariablesAction): void;
|
|
28
|
+
setExpressionVariables(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: ISetExpressionVariablesAction): void;
|
|
29
|
+
setSourceContent(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: ISetSourceContentAction): void;
|
|
30
|
+
setDebuggerMeta(state: import("immer/dist/internal.js").WritableDraft<IDebuggerState>, action: ISetDebuggerMetaAction): void;
|
|
31
|
+
}, "debugger">;
|
|
32
|
+
export declare const addBreakpointDecoration: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
33
|
+
filePath: string;
|
|
34
|
+
fileType: import("./types").IDebuggerFileType;
|
|
35
|
+
methodName: string;
|
|
36
|
+
className?: string | undefined;
|
|
37
|
+
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
38
|
+
source: import("@ws-ui/shared").ISource;
|
|
39
|
+
breakpoint: IBreakpointDecoration;
|
|
40
|
+
}, string>, removeBreakpointDecoration: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
41
|
+
filePath: string;
|
|
42
|
+
methodName: string;
|
|
43
|
+
line: number;
|
|
44
|
+
offset?: number | undefined;
|
|
45
|
+
type?: "draft" | "saved" | undefined;
|
|
46
|
+
}, string>, setBreakpointsDecoration: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
47
|
+
filePath: string;
|
|
48
|
+
fileType: import("./types").IDebuggerFileType;
|
|
49
|
+
methodName: string;
|
|
50
|
+
className?: string | undefined;
|
|
51
|
+
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
52
|
+
source: import("@ws-ui/shared").ISource;
|
|
53
|
+
breakpoints: IBreakpoint[];
|
|
54
|
+
offset?: number | undefined;
|
|
55
|
+
type?: "draft" | "saved" | undefined;
|
|
56
|
+
clearDraft?: boolean | undefined;
|
|
57
|
+
}, string>, clearBreakpoints: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
58
|
+
filePath: string;
|
|
59
|
+
type?: "draft" | "saved" | undefined;
|
|
60
|
+
}, string>, setActiveLine: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
61
|
+
threadId: number;
|
|
62
|
+
line: number;
|
|
63
|
+
highlight?: boolean | undefined;
|
|
64
|
+
}, string>, addExpression: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
65
|
+
threadId: number;
|
|
66
|
+
label: string;
|
|
67
|
+
save?: boolean | undefined;
|
|
68
|
+
}, string>, renameExpression: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
69
|
+
threadId: number;
|
|
70
|
+
index: number;
|
|
71
|
+
replacement: string;
|
|
72
|
+
save?: boolean | undefined;
|
|
73
|
+
}, string>, removeExpression: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
74
|
+
threadId: number;
|
|
75
|
+
index: number;
|
|
76
|
+
save?: boolean | undefined;
|
|
77
|
+
}, string>, removeAllExpressions: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
78
|
+
threadId: number;
|
|
79
|
+
save?: boolean | undefined;
|
|
80
|
+
}, string>, setExpression: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
81
|
+
threadId: number;
|
|
82
|
+
expression: IExpression & {
|
|
83
|
+
index: number;
|
|
84
|
+
};
|
|
85
|
+
}, string>, updateExpressionAt: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
86
|
+
threadId: number;
|
|
87
|
+
index: number;
|
|
88
|
+
value: string | undefined;
|
|
89
|
+
}, string>, saveExpressions: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
90
|
+
expressions: IExpression[];
|
|
91
|
+
}, string>, addSession: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
92
|
+
threadId: number;
|
|
93
|
+
channelId: number;
|
|
94
|
+
stackFrames: import("./types").IStackFrame[];
|
|
95
|
+
exceptions?: import("./types").IException[] | undefined;
|
|
96
|
+
}, string>, updateSession: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
97
|
+
threadId: number;
|
|
98
|
+
changes: Partial<IDebuggerSession>;
|
|
99
|
+
}, string>, removeSession: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
100
|
+
threadId: number;
|
|
101
|
+
}, string>, removeSessionByIndex: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>, setSessions: import("@reduxjs/toolkit").ActionCreatorWithPayload<IDebuggerSession[], string>, setCallChainVariables: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
102
|
+
threadId: number;
|
|
103
|
+
frameId: number;
|
|
104
|
+
variables: import("./types").IVariable[];
|
|
105
|
+
}, string>, setExpressionVariables: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
106
|
+
threadId: number;
|
|
107
|
+
variablesReference: number;
|
|
108
|
+
variables: import("./types").IVariable[];
|
|
109
|
+
}, string>, setSourceContent: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
110
|
+
threadId: number;
|
|
111
|
+
content: string;
|
|
112
|
+
}, string>, setDebuggerMeta: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
113
|
+
state: EDebuggerState;
|
|
114
|
+
error?: Partial<{
|
|
115
|
+
code: number | null;
|
|
116
|
+
reason: string;
|
|
117
|
+
type: EDebuggerErrorType;
|
|
118
|
+
}> | undefined;
|
|
119
|
+
override?: boolean | undefined;
|
|
120
|
+
}, string>;
|
|
121
|
+
export default stateSlice;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AppState } from '../../modules';
|
|
2
|
+
export declare const wipeDebuggerSessions: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
3
|
+
state: AppState;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const removeDebuggerSessionsNotIn: import("@reduxjs/toolkit").AsyncThunk<{
|
|
6
|
+
staleThreadIds: number[];
|
|
7
|
+
}, {
|
|
8
|
+
threadIds: number[];
|
|
9
|
+
}, {
|
|
10
|
+
state: AppState;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { DebugProtocol } from 'vscode-debugprotocol';
|
|
3
|
+
import { DebuggerFileExtension, FileFolderType, ICodeDescriptor, ISource } from '@ws-ui/shared';
|
|
4
|
+
export interface IExpression {
|
|
5
|
+
label: string;
|
|
6
|
+
result?: string;
|
|
7
|
+
nakedResult?: string;
|
|
8
|
+
variablesReference?: number;
|
|
9
|
+
presentationHint?: IVariablePresentationHint;
|
|
10
|
+
}
|
|
11
|
+
export interface IBreakpoint extends DebugProtocol.SourceBreakpoint {
|
|
12
|
+
verified?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type IDebuggerFileType = FileFolderType.METHOD | FileFolderType.CLASS;
|
|
15
|
+
interface IBreakpointsData {
|
|
16
|
+
locations: IBreakpoint[];
|
|
17
|
+
offset?: number;
|
|
18
|
+
}
|
|
19
|
+
export type IDebuggerData = {
|
|
20
|
+
filePath: string;
|
|
21
|
+
fileType: IDebuggerFileType;
|
|
22
|
+
methodName: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
ext: DebuggerFileExtension;
|
|
25
|
+
source: ISource;
|
|
26
|
+
breakpoints: {
|
|
27
|
+
draft: IBreakpointsData;
|
|
28
|
+
saved: IBreakpointsData;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type BreakpointType = keyof IDebuggerData['breakpoints'];
|
|
32
|
+
export interface IVariablePresentationHint extends DebugProtocol.VariablePresentationHint {
|
|
33
|
+
iconID: number;
|
|
34
|
+
}
|
|
35
|
+
export interface IVariable extends DebugProtocol.Variable {
|
|
36
|
+
nakedValue: string;
|
|
37
|
+
presentationHint?: IVariablePresentationHint;
|
|
38
|
+
}
|
|
39
|
+
export interface IStackFrame extends DebugProtocol.StackFrame {
|
|
40
|
+
source: DebugProtocol.Source & {
|
|
41
|
+
codeDescriptorInfo?: ICodeDescriptor;
|
|
42
|
+
content?: string;
|
|
43
|
+
};
|
|
44
|
+
offset: number;
|
|
45
|
+
lineIndex: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ICallChainVariable {
|
|
48
|
+
frameId: number;
|
|
49
|
+
items: IVariable[];
|
|
50
|
+
}
|
|
51
|
+
export interface IExpressionVariable {
|
|
52
|
+
variablesReference: number;
|
|
53
|
+
items: IVariable[];
|
|
54
|
+
}
|
|
55
|
+
export type ISessionVariable = ICallChainVariable | IExpressionVariable;
|
|
56
|
+
export interface IException {
|
|
57
|
+
errMess: string;
|
|
58
|
+
location: string;
|
|
59
|
+
locationLine: number;
|
|
60
|
+
formula: string;
|
|
61
|
+
formulaError_begin: number;
|
|
62
|
+
formulaError_end: number;
|
|
63
|
+
formulaError_indent?: number;
|
|
64
|
+
errorIdentifier: string;
|
|
65
|
+
}
|
|
66
|
+
export interface IFdException extends IException {
|
|
67
|
+
locationLineIndex: number;
|
|
68
|
+
}
|
|
69
|
+
export interface IDebuggerSession {
|
|
70
|
+
tabPath: string;
|
|
71
|
+
threadId: number;
|
|
72
|
+
channelId: number;
|
|
73
|
+
stackFrames: IStackFrame[];
|
|
74
|
+
currentStackFrame: IStackFrame;
|
|
75
|
+
exceptions: IException[];
|
|
76
|
+
expressions: IExpression[];
|
|
77
|
+
highlightedLines: {
|
|
78
|
+
start: number;
|
|
79
|
+
end?: number;
|
|
80
|
+
} | null;
|
|
81
|
+
activeLine: number | null;
|
|
82
|
+
variables: {
|
|
83
|
+
callchain: ICallChainVariable[];
|
|
84
|
+
expressions: IExpressionVariable[];
|
|
85
|
+
};
|
|
86
|
+
stopped?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export type DebuggerVariablesKey = keyof IDebuggerSession['variables'];
|
|
89
|
+
export interface IBreakpointDecoration {
|
|
90
|
+
line: number;
|
|
91
|
+
offset?: number;
|
|
92
|
+
type?: BreakpointType;
|
|
93
|
+
}
|
|
94
|
+
export type IAddBreakpointAction = PayloadAction<{
|
|
95
|
+
filePath: string;
|
|
96
|
+
fileType: IDebuggerFileType;
|
|
97
|
+
methodName: string;
|
|
98
|
+
className?: string;
|
|
99
|
+
ext: DebuggerFileExtension;
|
|
100
|
+
source: ISource;
|
|
101
|
+
breakpoint: IBreakpointDecoration;
|
|
102
|
+
}>;
|
|
103
|
+
export type IRemoveBreakpointAction = PayloadAction<{
|
|
104
|
+
filePath: string;
|
|
105
|
+
methodName: string;
|
|
106
|
+
line: number;
|
|
107
|
+
offset?: number;
|
|
108
|
+
type?: BreakpointType;
|
|
109
|
+
}>;
|
|
110
|
+
export type ISetBreakpointsAction = PayloadAction<{
|
|
111
|
+
filePath: string;
|
|
112
|
+
fileType: IDebuggerFileType;
|
|
113
|
+
methodName: string;
|
|
114
|
+
className?: string;
|
|
115
|
+
ext: DebuggerFileExtension;
|
|
116
|
+
source: ISource;
|
|
117
|
+
breakpoints: IBreakpoint[];
|
|
118
|
+
offset?: number;
|
|
119
|
+
type?: BreakpointType;
|
|
120
|
+
clearDraft?: boolean;
|
|
121
|
+
}>;
|
|
122
|
+
export type IClearBreakpointsAction = PayloadAction<{
|
|
123
|
+
filePath: string;
|
|
124
|
+
type?: BreakpointType;
|
|
125
|
+
}>;
|
|
126
|
+
export type ISetActiveLineAction = PayloadAction<{
|
|
127
|
+
threadId: number;
|
|
128
|
+
line: number;
|
|
129
|
+
highlight?: boolean;
|
|
130
|
+
}>;
|
|
131
|
+
export type IAddExpressionAction = PayloadAction<{
|
|
132
|
+
threadId: number;
|
|
133
|
+
label: string;
|
|
134
|
+
save?: boolean;
|
|
135
|
+
}>;
|
|
136
|
+
export type IRemoveExpressionAction = PayloadAction<{
|
|
137
|
+
threadId: number;
|
|
138
|
+
index: number;
|
|
139
|
+
save?: boolean;
|
|
140
|
+
}>;
|
|
141
|
+
export type IRemoveAllExpressionsAction = PayloadAction<{
|
|
142
|
+
threadId: number;
|
|
143
|
+
save?: boolean;
|
|
144
|
+
}>;
|
|
145
|
+
export type IRenameExpressionAction = PayloadAction<{
|
|
146
|
+
threadId: number;
|
|
147
|
+
index: number;
|
|
148
|
+
replacement: string;
|
|
149
|
+
save?: boolean;
|
|
150
|
+
}>;
|
|
151
|
+
export type ISetExpressionAction = PayloadAction<{
|
|
152
|
+
threadId: number;
|
|
153
|
+
expression: IExpression & {
|
|
154
|
+
index: number;
|
|
155
|
+
};
|
|
156
|
+
}>;
|
|
157
|
+
export type IUpdateExpressionAtAction = PayloadAction<{
|
|
158
|
+
threadId: number;
|
|
159
|
+
index: number;
|
|
160
|
+
value: IExpression['result'];
|
|
161
|
+
}>;
|
|
162
|
+
export type ISaveExpressionsAction = PayloadAction<{
|
|
163
|
+
expressions: IExpression[];
|
|
164
|
+
}>;
|
|
165
|
+
export type IAddSessionAction = PayloadAction<{
|
|
166
|
+
threadId: number;
|
|
167
|
+
channelId: number;
|
|
168
|
+
stackFrames: IStackFrame[];
|
|
169
|
+
exceptions?: IException[];
|
|
170
|
+
}>;
|
|
171
|
+
export type IUpdateSessionAction = PayloadAction<{
|
|
172
|
+
threadId: number;
|
|
173
|
+
changes: Partial<IDebuggerSession>;
|
|
174
|
+
}>;
|
|
175
|
+
export type IRemoveSessionAction = PayloadAction<{
|
|
176
|
+
threadId: number;
|
|
177
|
+
}>;
|
|
178
|
+
export type ISetCallChainVariablesAction = PayloadAction<{
|
|
179
|
+
threadId: number;
|
|
180
|
+
frameId: number;
|
|
181
|
+
variables: IVariable[];
|
|
182
|
+
}>;
|
|
183
|
+
export type ISetExpressionVariablesAction = PayloadAction<{
|
|
184
|
+
threadId: number;
|
|
185
|
+
variablesReference: number;
|
|
186
|
+
variables: IVariable[];
|
|
187
|
+
}>;
|
|
188
|
+
export type ISetSourceContentAction = PayloadAction<{
|
|
189
|
+
threadId: number;
|
|
190
|
+
content: string;
|
|
191
|
+
}>;
|
|
192
|
+
export declare enum ExpressionIndex {
|
|
193
|
+
First = 0,
|
|
194
|
+
Last = -1
|
|
195
|
+
}
|
|
196
|
+
export declare enum EDebuggerState {
|
|
197
|
+
ATTACHED = "attached",
|
|
198
|
+
DETACHED = "detached",
|
|
199
|
+
ERROR = "error"
|
|
200
|
+
}
|
|
201
|
+
export declare enum EDebuggerErrorType {
|
|
202
|
+
SOCKET_ERROR = "socket-error",
|
|
203
|
+
SOCKET_CLOSURE = "socket-closure"
|
|
204
|
+
}
|
|
205
|
+
export declare enum EDebuggerErrorReason {
|
|
206
|
+
NOT_STARTED = "remote debugger not started",
|
|
207
|
+
ALREADY_IN_USE = "already in use",
|
|
208
|
+
TIMEOUT = "timeout"
|
|
209
|
+
}
|
|
210
|
+
type IDebuggerError = Partial<{
|
|
211
|
+
code: number | null;
|
|
212
|
+
reason: string;
|
|
213
|
+
type: EDebuggerErrorType;
|
|
214
|
+
}>;
|
|
215
|
+
export interface IDebuggerMeta {
|
|
216
|
+
state: EDebuggerState;
|
|
217
|
+
error?: IDebuggerError & {
|
|
218
|
+
time: number;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
export type ISetDebuggerMetaAction = PayloadAction<{
|
|
222
|
+
state: EDebuggerState;
|
|
223
|
+
error?: IDebuggerError;
|
|
224
|
+
override?: boolean;
|
|
225
|
+
}>;
|
|
226
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { ITreeItem } from './types';
|
|
3
|
+
export declare const findNodeByPath: (tree: ITreeItem[], path: string) => ITreeItem | null;
|
|
4
|
+
declare const stateSlice: import("@reduxjs/toolkit").Slice<import("immer/dist/internal.js").WritableDraft<ITreeItem>[], {
|
|
5
|
+
toggleExpandFolder: (state: import("immer/dist/internal.js").WritableDraft<ITreeItem>[], action: PayloadAction<ITreeItem>) => import("immer/dist/internal.js").WritableDraft<ITreeItem>[];
|
|
6
|
+
expandFolder: (state: import("immer/dist/internal.js").WritableDraft<ITreeItem>[], action: PayloadAction<ITreeItem>) => import("immer/dist/internal.js").WritableDraft<ITreeItem>[];
|
|
7
|
+
openAddFileInput: (state: import("immer/dist/internal.js").WritableDraft<ITreeItem>[], action: PayloadAction<ITreeItem>) => ITreeItem[];
|
|
8
|
+
addNewFile: (state: import("immer/dist/internal.js").WritableDraft<ITreeItem>[], action: PayloadAction<{
|
|
9
|
+
parent: ITreeItem;
|
|
10
|
+
child: ITreeItem;
|
|
11
|
+
}>) => ITreeItem[];
|
|
12
|
+
removeFile: (state: import("immer/dist/internal.js").WritableDraft<ITreeItem>[], action: PayloadAction<{
|
|
13
|
+
parent: ITreeItem;
|
|
14
|
+
child: ITreeItem;
|
|
15
|
+
}>) => ITreeItem[];
|
|
16
|
+
refreshFile: (state: import("immer/dist/internal.js").WritableDraft<ITreeItem>[], action: PayloadAction<{
|
|
17
|
+
parent: ITreeItem;
|
|
18
|
+
child: ITreeItem;
|
|
19
|
+
}>) => ITreeItem[];
|
|
20
|
+
setFolderChildren: (state: import("immer/dist/internal.js").WritableDraft<ITreeItem>[], action: PayloadAction<{
|
|
21
|
+
parentPath: string;
|
|
22
|
+
children: ITreeItem[];
|
|
23
|
+
}>) => ITreeItem[];
|
|
24
|
+
}, "explorer">;
|
|
25
|
+
export declare const toggleExpandFolder: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITreeItem, string>, expandFolder: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITreeItem, string>, openAddFileInput: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITreeItem, string>, addNewFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
26
|
+
parent: ITreeItem;
|
|
27
|
+
child: ITreeItem;
|
|
28
|
+
}, string>, refreshFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
29
|
+
parent: ITreeItem;
|
|
30
|
+
child: ITreeItem;
|
|
31
|
+
}, string>, removeFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
32
|
+
parent: ITreeItem;
|
|
33
|
+
child: ITreeItem;
|
|
34
|
+
}, string>, setFolderChildren: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
35
|
+
parentPath: string;
|
|
36
|
+
children: ITreeItem[];
|
|
37
|
+
}, string>;
|
|
38
|
+
export default stateSlice;
|