@ws-ui/store 1.5.7 → 1.5.9
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/dist/hooks/store.d.ts +0 -1
- package/dist/index.cjs.js +44 -44
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +11993 -10904
- 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 +22 -23
- package/dist/modules/debugger/thunks.d.ts +2 -3
- package/dist/modules/debugger/types.d.ts +0 -1
- package/dist/modules/debugger/utils.d.ts +0 -1
- package/dist/modules/explorer/reducer.d.ts +0 -1
- package/dist/modules/explorer/thunks.d.ts +38 -39
- package/dist/modules/explorer/types.d.ts +0 -1
- package/dist/modules/explorer/utils.d.ts +0 -1
- package/dist/modules/index.d.ts +0 -1
- package/dist/modules/modals/reducer.d.ts +1 -2
- package/dist/modules/modals/thunks.d.ts +1 -2
- package/dist/modules/modals/types.d.ts +0 -1
- package/dist/modules/model/helpers.d.ts +1 -2
- package/dist/modules/model/reducer.d.ts +0 -1
- package/dist/modules/model/selectors.d.ts +0 -1
- package/dist/modules/model/subjects.d.ts +1 -2
- package/dist/modules/model/thunks.d.ts +6 -7
- package/dist/modules/model/types.d.ts +0 -1
- package/dist/modules/model/utils.d.ts +3 -4
- package/dist/modules/roles/adapter.d.ts +1 -2
- package/dist/modules/roles/reducer.d.ts +7 -17
- package/dist/modules/roles/thunks.d.ts +3 -4
- package/dist/modules/roles/types.d.ts +0 -1
- package/dist/modules/root/reducer.d.ts +11 -21
- package/dist/modules/root/thunks.d.ts +25 -31
- package/dist/modules/root/types.d.ts +0 -1
- package/dist/modules/settings/reducer.d.ts +0 -1
- package/dist/modules/settings/thunks.d.ts +2 -3
- package/dist/modules/settings/types.d.ts +0 -1
- package/dist/modules/settings/utils.d.ts +0 -1
- package/dist/modules/shared-conditions/reducer.d.ts +0 -1
- package/dist/modules/shared-conditions/thunks.d.ts +1 -2
- package/dist/modules/shared-conditions/utils.d.ts +0 -1
- package/dist/modules/shared-css/reducer.d.ts +0 -1
- package/dist/modules/shared-css/thunks.d.ts +1 -2
- package/dist/modules/shared-datasources/reducer.d.ts +0 -1
- package/dist/modules/shared-datasources/thunks.d.ts +6 -7
- package/dist/modules/shared-datasources/utils.d.ts +0 -1
- package/dist/modules/tabs/selectors.d.ts +3 -3
- package/dist/modules/tasks/reducer.d.ts +0 -1
- package/dist/modules/webforms/datasources.adapter.d.ts +1 -2
- package/dist/modules/webforms/reducer.d.ts +2 -2
- package/dist/modules/webforms/thunks.d.ts +15 -107
- package/dist/modules/webforms/types.d.ts +0 -1
- package/dist/provider.d.ts +0 -1
- package/dist/selectors/catalog.d.ts +0 -1
- package/dist/selectors/components.d.ts +8 -8
- package/dist/selectors/datasources.d.ts +1 -2
- package/dist/selectors/debugger.d.ts +12 -13
- package/dist/selectors/explorer.d.ts +21 -22
- package/dist/selectors/states.d.ts +3 -4
- package/dist/selectors/styles.d.ts +5 -6
- package/dist/selectors/tabs.d.ts +6 -6
- package/dist/selectors/webforms.d.ts +0 -1
- package/dist/store.d.ts +0 -1
- package/dist/utils.d.ts +0 -1
- package/package.json +15 -22
- package/dist/package.json +0 -61
|
@@ -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
|
|
4
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
5
5
|
extra?: unknown;
|
|
6
6
|
serializedErrorType?: unknown;
|
|
7
7
|
pendingMeta?: unknown;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
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
|
-
|
|
4
3
|
export interface IDebuggerState {
|
|
5
4
|
meta: IDebuggerMeta;
|
|
6
5
|
list: IDebuggerData[];
|
|
@@ -42,7 +41,7 @@ export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionC
|
|
|
42
41
|
filePath: string;
|
|
43
42
|
fileType: import('./types').IDebuggerFileType;
|
|
44
43
|
methodName: string;
|
|
45
|
-
className?: string
|
|
44
|
+
className?: string;
|
|
46
45
|
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
47
46
|
source: import('@ws-ui/shared').ISource;
|
|
48
47
|
breakpoint: IBreakpointDecoration;
|
|
@@ -50,39 +49,39 @@ export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionC
|
|
|
50
49
|
filePath: string;
|
|
51
50
|
methodName: string;
|
|
52
51
|
line: number;
|
|
53
|
-
offset?: number
|
|
54
|
-
type?:
|
|
52
|
+
offset?: number;
|
|
53
|
+
type?: import('./types').BreakpointType;
|
|
55
54
|
}, "debugger/removeBreakpointDecoration">, setBreakpointsDecoration: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
56
55
|
filePath: string;
|
|
57
56
|
fileType: import('./types').IDebuggerFileType;
|
|
58
57
|
methodName: string;
|
|
59
|
-
className?: string
|
|
58
|
+
className?: string;
|
|
60
59
|
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
61
60
|
source: import('@ws-ui/shared').ISource;
|
|
62
61
|
breakpoints: IBreakpoint[];
|
|
63
|
-
offset?: number
|
|
64
|
-
type?:
|
|
65
|
-
clearDraft?: boolean
|
|
66
|
-
merge?: boolean
|
|
62
|
+
offset?: number;
|
|
63
|
+
type?: import('./types').BreakpointType;
|
|
64
|
+
clearDraft?: boolean;
|
|
65
|
+
merge?: boolean;
|
|
67
66
|
}, "debugger/setBreakpointsDecoration">, updateBreakpointsDecoration: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
68
67
|
filePath: string;
|
|
69
68
|
fileType: import('./types').IDebuggerFileType;
|
|
70
69
|
methodName: string;
|
|
71
|
-
className?: string
|
|
70
|
+
className?: string;
|
|
72
71
|
breakpoints: IBreakpoint[];
|
|
73
|
-
type?:
|
|
74
|
-
merge?: boolean
|
|
72
|
+
type?: import('./types').BreakpointType;
|
|
73
|
+
merge?: boolean;
|
|
75
74
|
}, "debugger/updateBreakpointsDecoration">, clearBreakpoints: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
76
75
|
filePath: string;
|
|
77
|
-
type?:
|
|
76
|
+
type?: import('./types').BreakpointType | "any";
|
|
78
77
|
}, "debugger/clearBreakpoints">, clearBreakpointsExcept: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
79
78
|
exceptedFilePath: string;
|
|
80
|
-
type?:
|
|
79
|
+
type?: import('./types').BreakpointType | "any";
|
|
81
80
|
}, "debugger/clearBreakpointsExcept">, clearAllBreakpoints: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"debugger/clearAllBreakpoints">, toggleBreakpoint: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
82
81
|
filePath: string;
|
|
83
82
|
methodName: string;
|
|
84
83
|
line: number;
|
|
85
|
-
offset?: number
|
|
84
|
+
offset?: number;
|
|
86
85
|
disabled: boolean;
|
|
87
86
|
}, "debugger/toggleBreakpoint">, toggleBreakpointsInFile: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
88
87
|
filePath: string;
|
|
@@ -91,23 +90,23 @@ export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionC
|
|
|
91
90
|
}, "debugger/toggleBreakpointsInFile">, disableAllBreakpoints: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"debugger/disableAllBreakpoints">, enableAllBreakpoints: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"debugger/enableAllBreakpoints">, setActiveLine: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
92
91
|
threadId: number;
|
|
93
92
|
line: number;
|
|
94
|
-
highlight?: boolean
|
|
93
|
+
highlight?: boolean;
|
|
95
94
|
}, "debugger/setActiveLine">, addExpression: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
96
95
|
threadId: number;
|
|
97
96
|
label: string;
|
|
98
|
-
save?: boolean
|
|
97
|
+
save?: boolean;
|
|
99
98
|
}, "debugger/addExpression">, renameExpression: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
100
99
|
threadId: number;
|
|
101
100
|
index: number;
|
|
102
101
|
replacement: string;
|
|
103
|
-
save?: boolean
|
|
102
|
+
save?: boolean;
|
|
104
103
|
}, "debugger/renameExpression">, removeExpression: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
105
104
|
threadId: number;
|
|
106
105
|
index: number;
|
|
107
|
-
save?: boolean
|
|
106
|
+
save?: boolean;
|
|
108
107
|
}, "debugger/removeExpression">, removeAllExpressions: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
109
108
|
threadId: number;
|
|
110
|
-
save?: boolean
|
|
109
|
+
save?: boolean;
|
|
111
110
|
}, "debugger/removeAllExpressions">, setExpression: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
112
111
|
threadId: number;
|
|
113
112
|
expression: IExpression & {
|
|
@@ -116,14 +115,14 @@ export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionC
|
|
|
116
115
|
}, "debugger/setExpression">, updateExpressionAt: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
117
116
|
threadId: number;
|
|
118
117
|
index: number;
|
|
119
|
-
value:
|
|
118
|
+
value: IExpression["result"];
|
|
120
119
|
}, "debugger/updateExpressionAt">, saveExpressions: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
121
120
|
expressions: IExpression[];
|
|
122
121
|
}, "debugger/saveExpressions">, addSession: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
123
122
|
threadId: number;
|
|
124
123
|
channelId: number;
|
|
125
124
|
stackFrames: import('./types').IStackFrame[];
|
|
126
|
-
exceptions?: import('./types').IException[]
|
|
125
|
+
exceptions?: import('./types').IException[];
|
|
127
126
|
}, "debugger/addSession">, updateSession: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
128
127
|
threadId: number;
|
|
129
128
|
changes: Partial<IDebuggerSession>;
|
|
@@ -153,6 +152,6 @@ export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionC
|
|
|
153
152
|
code: number | null;
|
|
154
153
|
reason: string;
|
|
155
154
|
type: EDebuggerErrorType;
|
|
156
|
-
}
|
|
155
|
+
}>;
|
|
157
156
|
}, "debugger/setDebuggerMeta">;
|
|
158
157
|
export default stateSlice;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { AppState } from '..';
|
|
2
|
-
|
|
3
2
|
export declare const wipeDebuggerSessions: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
4
3
|
state: AppState;
|
|
5
|
-
dispatch?: import('redux').Dispatch
|
|
4
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
6
5
|
extra?: unknown;
|
|
7
6
|
rejectValue?: unknown;
|
|
8
7
|
serializedErrorType?: unknown;
|
|
@@ -16,7 +15,7 @@ export declare const removeDebuggerSessionsNotIn: import('@reduxjs/toolkit').Asy
|
|
|
16
15
|
threadIds: number[];
|
|
17
16
|
}, {
|
|
18
17
|
state: AppState;
|
|
19
|
-
dispatch?: import('redux').Dispatch
|
|
18
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
20
19
|
extra?: unknown;
|
|
21
20
|
rejectValue?: unknown;
|
|
22
21
|
serializedErrorType?: unknown;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { DebugProtocol } from 'vscode-debugprotocol';
|
|
3
3
|
import { DebuggerFileExtension, FileFolderType, ICodeDescriptor, ISource } from '@ws-ui/shared';
|
|
4
|
-
|
|
5
4
|
export interface IExpression {
|
|
6
5
|
label: string;
|
|
7
6
|
result?: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { ITreeItem } from './types';
|
|
3
|
-
|
|
4
3
|
export declare const findNodeByPath: (tree: ITreeItem[], path: string) => ITreeItem | null;
|
|
5
4
|
declare const stateSlice: import('@reduxjs/toolkit').Slice<ITreeItem[], {
|
|
6
5
|
renameClassesFolder: (state: ITreeItem[], action: PayloadAction<{
|
|
@@ -3,7 +3,6 @@ import { ClassFileTypes } from '../root/types';
|
|
|
3
3
|
import { AppState } from '..';
|
|
4
4
|
import { ISettingsState } from '../settings';
|
|
5
5
|
import { IOpenFilePayload, ITreeItem } from './types';
|
|
6
|
-
|
|
7
6
|
interface ICreateNewFilePayload {
|
|
8
7
|
fileName: string;
|
|
9
8
|
type: FileFolderType;
|
|
@@ -75,7 +74,7 @@ export declare function getFileType(root: FileFolderType): FileFolderType;
|
|
|
75
74
|
export declare const tryEditMethod: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
76
75
|
initialLineInfo: {
|
|
77
76
|
line: number;
|
|
78
|
-
offset?: number
|
|
77
|
+
offset?: number;
|
|
79
78
|
lastModification: number;
|
|
80
79
|
};
|
|
81
80
|
initialSelectionInfo: {
|
|
@@ -92,7 +91,7 @@ export declare const tryEditMethod: import('@reduxjs/toolkit').AsyncThunk<ITab<a
|
|
|
92
91
|
method: catalog.IMethod;
|
|
93
92
|
}, {
|
|
94
93
|
state: AppState;
|
|
95
|
-
dispatch?: import('redux').Dispatch
|
|
94
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
96
95
|
extra?: unknown;
|
|
97
96
|
rejectValue?: unknown;
|
|
98
97
|
serializedErrorType?: unknown;
|
|
@@ -112,7 +111,7 @@ export type TCreateModelFilesPayload = TCreateModelFilesPayloadDataclass | {
|
|
|
112
111
|
};
|
|
113
112
|
export declare const createModelFiles: import('@reduxjs/toolkit').AsyncThunk<void, TCreateModelFilesPayload, {
|
|
114
113
|
state: AppState;
|
|
115
|
-
dispatch?: import('redux').Dispatch
|
|
114
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
116
115
|
extra?: unknown;
|
|
117
116
|
rejectValue?: unknown;
|
|
118
117
|
serializedErrorType?: unknown;
|
|
@@ -122,10 +121,10 @@ export declare const createModelFiles: import('@reduxjs/toolkit').AsyncThunk<voi
|
|
|
122
121
|
}>;
|
|
123
122
|
export declare const fetchFolderContent: import('@reduxjs/toolkit').AsyncThunk<ITreeItem[], string | {
|
|
124
123
|
nodePath: string;
|
|
125
|
-
expandDataclass?: string
|
|
124
|
+
expandDataclass?: string;
|
|
126
125
|
}, {
|
|
127
126
|
state: AppState;
|
|
128
|
-
dispatch?: import('redux').Dispatch
|
|
127
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
129
128
|
extra?: unknown;
|
|
130
129
|
rejectValue?: unknown;
|
|
131
130
|
serializedErrorType?: unknown;
|
|
@@ -135,7 +134,7 @@ export declare const fetchFolderContent: import('@reduxjs/toolkit').AsyncThunk<I
|
|
|
135
134
|
}>;
|
|
136
135
|
export declare const fetchClassesFolderContent: import('@reduxjs/toolkit').AsyncThunk<ITreeItem[], void, {
|
|
137
136
|
state?: unknown;
|
|
138
|
-
dispatch?: import('redux').Dispatch
|
|
137
|
+
dispatch?: import('redux').Dispatch;
|
|
139
138
|
extra?: unknown;
|
|
140
139
|
rejectValue?: unknown;
|
|
141
140
|
serializedErrorType?: unknown;
|
|
@@ -145,10 +144,10 @@ export declare const fetchClassesFolderContent: import('@reduxjs/toolkit').Async
|
|
|
145
144
|
}>;
|
|
146
145
|
export declare const fetchFolderContentWithoutExpanding: import('@reduxjs/toolkit').AsyncThunk<ITreeItem[], string | {
|
|
147
146
|
nodePath: string;
|
|
148
|
-
collapseIfExpanded?: boolean
|
|
147
|
+
collapseIfExpanded?: boolean;
|
|
149
148
|
}, {
|
|
150
149
|
state: AppState;
|
|
151
|
-
dispatch?: import('redux').Dispatch
|
|
150
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
152
151
|
extra?: unknown;
|
|
153
152
|
rejectValue?: unknown;
|
|
154
153
|
serializedErrorType?: unknown;
|
|
@@ -161,7 +160,7 @@ export declare const uploadFileAndGetResponse: import('@reduxjs/toolkit').AsyncT
|
|
|
161
160
|
data: unknown;
|
|
162
161
|
}, File, {
|
|
163
162
|
state?: unknown;
|
|
164
|
-
dispatch?: import('redux').Dispatch
|
|
163
|
+
dispatch?: import('redux').Dispatch;
|
|
165
164
|
extra?: unknown;
|
|
166
165
|
rejectValue?: unknown;
|
|
167
166
|
serializedErrorType?: unknown;
|
|
@@ -178,7 +177,7 @@ export declare const uploadFile: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
178
177
|
parentNode: ITreeItem;
|
|
179
178
|
}, {
|
|
180
179
|
state: AppState;
|
|
181
|
-
dispatch?: import('redux').Dispatch
|
|
180
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
182
181
|
extra?: unknown;
|
|
183
182
|
rejectValue?: unknown;
|
|
184
183
|
serializedErrorType?: unknown;
|
|
@@ -193,7 +192,7 @@ export declare const createNewFile: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
193
192
|
}, ICreateNewFilePayload, {
|
|
194
193
|
state: AppState;
|
|
195
194
|
rejectValue: string;
|
|
196
|
-
dispatch?: import('redux').Dispatch
|
|
195
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
197
196
|
extra?: unknown;
|
|
198
197
|
serializedErrorType?: unknown;
|
|
199
198
|
pendingMeta?: unknown;
|
|
@@ -215,7 +214,7 @@ export declare function getFilePath(file: ISaveFileResponse, options?: Partial<{
|
|
|
215
214
|
}>): string;
|
|
216
215
|
export declare const createNewFileAndOpen: import('@reduxjs/toolkit').AsyncThunk<void, ICreateNewFilePayload, {
|
|
217
216
|
state: AppState;
|
|
218
|
-
dispatch?: import('redux').Dispatch
|
|
217
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
219
218
|
extra?: unknown;
|
|
220
219
|
rejectValue?: unknown;
|
|
221
220
|
serializedErrorType?: unknown;
|
|
@@ -224,7 +223,7 @@ export declare const createNewFileAndOpen: import('@reduxjs/toolkit').AsyncThunk
|
|
|
224
223
|
rejectedMeta?: unknown;
|
|
225
224
|
}>;
|
|
226
225
|
export declare const createNewNode: import('@reduxjs/toolkit').AsyncThunk<{
|
|
227
|
-
file:
|
|
226
|
+
file: IAddFolderResponse;
|
|
228
227
|
parentNode: ITreeItem;
|
|
229
228
|
}, {
|
|
230
229
|
fileName: string;
|
|
@@ -233,7 +232,7 @@ export declare const createNewNode: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
233
232
|
parentNode: ITreeItem;
|
|
234
233
|
}, {
|
|
235
234
|
state?: unknown;
|
|
236
|
-
dispatch?: import('redux').Dispatch
|
|
235
|
+
dispatch?: import('redux').Dispatch;
|
|
237
236
|
extra?: unknown;
|
|
238
237
|
rejectValue?: unknown;
|
|
239
238
|
serializedErrorType?: unknown;
|
|
@@ -244,7 +243,7 @@ export declare const createNewNode: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
244
243
|
export declare const fetchHTTPHandlers: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
245
244
|
state: AppState;
|
|
246
245
|
rejectValue: string;
|
|
247
|
-
dispatch?: import('redux').Dispatch
|
|
246
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
248
247
|
extra?: unknown;
|
|
249
248
|
serializedErrorType?: unknown;
|
|
250
249
|
pendingMeta?: unknown;
|
|
@@ -254,7 +253,7 @@ export declare const fetchHTTPHandlers: import('@reduxjs/toolkit').AsyncThunk<vo
|
|
|
254
253
|
export declare const openFile: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
255
254
|
initialLineInfo: {
|
|
256
255
|
line: number;
|
|
257
|
-
offset?: number
|
|
256
|
+
offset?: number;
|
|
258
257
|
lastModification: number;
|
|
259
258
|
};
|
|
260
259
|
initialSelectionInfo: {
|
|
@@ -269,7 +268,7 @@ export declare const openFile: import('@reduxjs/toolkit').AsyncThunk<ITab<any, P
|
|
|
269
268
|
kind: string;
|
|
270
269
|
}>> | null, IOpenFilePayload, {
|
|
271
270
|
state: AppState;
|
|
272
|
-
dispatch?: import('redux').Dispatch
|
|
271
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
273
272
|
extra?: unknown;
|
|
274
273
|
rejectValue?: unknown;
|
|
275
274
|
serializedErrorType?: unknown;
|
|
@@ -280,7 +279,7 @@ export declare const openFile: import('@reduxjs/toolkit').AsyncThunk<ITab<any, P
|
|
|
280
279
|
export declare const openFileAtLine: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
281
280
|
initialLineInfo: {
|
|
282
281
|
line: number;
|
|
283
|
-
offset?: number
|
|
282
|
+
offset?: number;
|
|
284
283
|
lastModification: number;
|
|
285
284
|
};
|
|
286
285
|
initialSelectionInfo: {
|
|
@@ -296,10 +295,10 @@ export declare const openFileAtLine: import('@reduxjs/toolkit').AsyncThunk<ITab<
|
|
|
296
295
|
}>>, {
|
|
297
296
|
file: IFileInfo;
|
|
298
297
|
line: number;
|
|
299
|
-
offset?: number
|
|
298
|
+
offset?: number;
|
|
300
299
|
}, {
|
|
301
300
|
state: AppState;
|
|
302
|
-
dispatch?: import('redux').Dispatch
|
|
301
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
303
302
|
extra?: unknown;
|
|
304
303
|
rejectValue?: unknown;
|
|
305
304
|
serializedErrorType?: unknown;
|
|
@@ -317,7 +316,7 @@ export declare const injectContentAtLine: import('@reduxjs/toolkit').AsyncThunk<
|
|
|
317
316
|
line: number;
|
|
318
317
|
}, {
|
|
319
318
|
state?: unknown;
|
|
320
|
-
dispatch?: import('redux').Dispatch
|
|
319
|
+
dispatch?: import('redux').Dispatch;
|
|
321
320
|
extra?: unknown;
|
|
322
321
|
rejectValue?: unknown;
|
|
323
322
|
serializedErrorType?: unknown;
|
|
@@ -332,7 +331,7 @@ export interface IOpenFileAtSelectionPayload {
|
|
|
332
331
|
export declare const openFileAtSelection: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
333
332
|
initialLineInfo: {
|
|
334
333
|
line: number;
|
|
335
|
-
offset?: number
|
|
334
|
+
offset?: number;
|
|
336
335
|
lastModification: number;
|
|
337
336
|
};
|
|
338
337
|
initialSelectionInfo: {
|
|
@@ -347,7 +346,7 @@ export declare const openFileAtSelection: import('@reduxjs/toolkit').AsyncThunk<
|
|
|
347
346
|
kind: string;
|
|
348
347
|
}>>, IOpenFileAtSelectionPayload, {
|
|
349
348
|
state: AppState;
|
|
350
|
-
dispatch?: import('redux').Dispatch
|
|
349
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
351
350
|
extra?: unknown;
|
|
352
351
|
rejectValue?: unknown;
|
|
353
352
|
serializedErrorType?: unknown;
|
|
@@ -360,7 +359,7 @@ export declare const deleteFile: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
360
359
|
node: ITreeItem;
|
|
361
360
|
}, ITreeItem, {
|
|
362
361
|
state: AppState;
|
|
363
|
-
dispatch?: import('redux').Dispatch
|
|
362
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
364
363
|
extra?: unknown;
|
|
365
364
|
rejectValue?: unknown;
|
|
366
365
|
serializedErrorType?: unknown;
|
|
@@ -373,7 +372,7 @@ export declare const deleteFolder: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
373
372
|
node: ITreeItem;
|
|
374
373
|
}, ITreeItem, {
|
|
375
374
|
state: AppState;
|
|
376
|
-
dispatch?: import('redux').Dispatch
|
|
375
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
377
376
|
extra?: unknown;
|
|
378
377
|
rejectValue?: unknown;
|
|
379
378
|
serializedErrorType?: unknown;
|
|
@@ -386,7 +385,7 @@ export declare const removeFileNode: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
386
385
|
node: ITreeItem;
|
|
387
386
|
}, ITreeItem, {
|
|
388
387
|
state: AppState;
|
|
389
|
-
dispatch?: import('redux').Dispatch
|
|
388
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
390
389
|
extra?: unknown;
|
|
391
390
|
rejectValue?: unknown;
|
|
392
391
|
serializedErrorType?: unknown;
|
|
@@ -402,7 +401,7 @@ export declare const renameFile: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
402
401
|
newname: string;
|
|
403
402
|
}, {
|
|
404
403
|
state: AppState;
|
|
405
|
-
dispatch?: import('redux').Dispatch
|
|
404
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
406
405
|
extra?: unknown;
|
|
407
406
|
rejectValue?: unknown;
|
|
408
407
|
serializedErrorType?: unknown;
|
|
@@ -415,7 +414,7 @@ export declare const relocateNode: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
|
415
414
|
newLocation: ITreeItem;
|
|
416
415
|
}, {
|
|
417
416
|
state: AppState;
|
|
418
|
-
dispatch?: import('redux').Dispatch
|
|
417
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
419
418
|
extra?: unknown;
|
|
420
419
|
rejectValue?: unknown;
|
|
421
420
|
serializedErrorType?: unknown;
|
|
@@ -425,7 +424,7 @@ export declare const relocateNode: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
|
425
424
|
}>;
|
|
426
425
|
export declare const duplicateNode: import('@reduxjs/toolkit').AsyncThunk<any, any, {
|
|
427
426
|
state: AppState;
|
|
428
|
-
dispatch?: import('redux').Dispatch
|
|
427
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
429
428
|
extra?: unknown;
|
|
430
429
|
rejectValue?: unknown;
|
|
431
430
|
serializedErrorType?: unknown;
|
|
@@ -437,20 +436,20 @@ export declare const executeMethod: import('@reduxjs/toolkit').AsyncThunk<void |
|
|
|
437
436
|
[refName: string]: datasources.IComponentAction;
|
|
438
437
|
}, {
|
|
439
438
|
methodName: string;
|
|
440
|
-
namespace?: string
|
|
439
|
+
namespace?: string;
|
|
441
440
|
params?: {
|
|
442
441
|
name: string;
|
|
443
|
-
namespace?: string
|
|
444
|
-
isHardCoded?: boolean
|
|
445
|
-
type?:
|
|
446
|
-
}[]
|
|
442
|
+
namespace?: string;
|
|
443
|
+
isHardCoded?: boolean;
|
|
444
|
+
type?: "string" | "number" | "object" | "date" | "array" | "bool" | undefined;
|
|
445
|
+
}[];
|
|
447
446
|
resultingDataSource?: {
|
|
448
|
-
id?: string
|
|
449
|
-
namespace?: string
|
|
450
|
-
}
|
|
447
|
+
id?: string;
|
|
448
|
+
namespace?: string;
|
|
449
|
+
};
|
|
451
450
|
}, {
|
|
452
451
|
state: AppState;
|
|
453
|
-
dispatch?: import('redux').Dispatch
|
|
452
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
454
453
|
extra?: unknown;
|
|
455
454
|
rejectValue?: unknown;
|
|
456
455
|
serializedErrorType?: unknown;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IEditors, ITreeItem } from './types';
|
|
2
2
|
import { AppState } from '..';
|
|
3
3
|
import { INodeInfo } from '@ws-ui/shared';
|
|
4
|
-
|
|
5
4
|
export declare function getNodeRelativePath(nodePath: string): string;
|
|
6
5
|
export declare function getEditors(path: string): IEditors;
|
|
7
6
|
export declare function getExtension(path: string): "json" | "text";
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IModal } from '@ws-ui/shared';
|
|
2
2
|
import { ICloseModalAction, ICreateModalAction, IEditModalAction, IRemoveModalAction } from './types';
|
|
3
|
-
|
|
4
3
|
export interface IModalsState {
|
|
5
4
|
list: IModal[];
|
|
6
5
|
}
|
|
@@ -12,7 +11,7 @@ declare const stateSlice: import('@reduxjs/toolkit').Slice<IModalsState, {
|
|
|
12
11
|
}, "modals">;
|
|
13
12
|
export declare const createModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<IModal, "modals/createModal">, removeModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "modals/removeModal">, closeModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
14
13
|
id: string;
|
|
15
|
-
reason?: import('@ws-ui/shared').ModalCloseReason
|
|
14
|
+
reason?: import('@ws-ui/shared').ModalCloseReason;
|
|
16
15
|
}, "modals/closeModal">, editModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
17
16
|
id: string;
|
|
18
17
|
} & Partial<Pick<IModal, "views" | "title">>, "modals/editModal">;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IModal, ModalType } from '@ws-ui/shared';
|
|
2
|
-
|
|
3
2
|
interface IOpenModalPayload extends Omit<IModal, 'id' | 'isOpen' | 'type'> {
|
|
4
3
|
type?: ModalType;
|
|
5
4
|
}
|
|
@@ -9,7 +8,7 @@ interface IOpenModalReturnValue {
|
|
|
9
8
|
}
|
|
10
9
|
export declare const openModal: import('@reduxjs/toolkit').AsyncThunk<IOpenModalReturnValue, IOpenModalPayload, {
|
|
11
10
|
state?: unknown;
|
|
12
|
-
dispatch?: import('redux').Dispatch
|
|
11
|
+
dispatch?: import('redux').Dispatch;
|
|
13
12
|
extra?: unknown;
|
|
14
13
|
rejectValue?: unknown;
|
|
15
14
|
serializedErrorType?: unknown;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ServerModel, ModelNode } from './types';
|
|
2
|
-
|
|
3
2
|
export declare const serializeModel: (nodes: ModelNode[], modelProps: Partial<{
|
|
4
3
|
version: string;
|
|
5
4
|
backgroundColor: string;
|
|
6
5
|
backgroundImage: string;
|
|
7
|
-
backgroundVariant:
|
|
6
|
+
backgroundVariant: "dotted" | "grid" | "none";
|
|
8
7
|
}>) => ServerModel;
|
|
9
8
|
export declare function getDefaultName(prefix: string, _propertyKey: string, items: Record<string, any>): string;
|
|
10
9
|
export declare const isRelatedEntityAttr: (attribute: catalog.IAttribute) => boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@ws-ui/shared/dist/declarations/datasources/interfaces/catalog" />
|
|
2
1
|
export declare const useModelSelector: () => import('./reducer').IModelState;
|
|
3
2
|
export declare const useDataclasses: () => Record<string, catalog.IDataClass>;
|
|
4
3
|
export declare const useCollections: () => Record<string, catalog.IDataClass>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ITab } from '@ws-ui/shared';
|
|
2
2
|
import { ServerModel } from './types';
|
|
3
3
|
import { AppState } from '..';
|
|
4
|
-
|
|
5
4
|
export declare const fetchModel: import('@reduxjs/toolkit').AsyncThunk<ServerModel, void, {
|
|
6
5
|
state: AppState;
|
|
7
6
|
rejectValue: string;
|
|
8
|
-
dispatch?: import('redux').Dispatch
|
|
7
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
9
8
|
extra?: unknown;
|
|
10
9
|
serializedErrorType?: unknown;
|
|
11
10
|
pendingMeta?: unknown;
|
|
@@ -24,7 +23,7 @@ export declare const saveModel: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
24
23
|
}, ITab<ServerModel, Partial<{
|
|
25
24
|
initialLineInfo: {
|
|
26
25
|
line: number;
|
|
27
|
-
offset?: number
|
|
26
|
+
offset?: number;
|
|
28
27
|
lastModification: number;
|
|
29
28
|
};
|
|
30
29
|
initialSelectionInfo: {
|
|
@@ -40,7 +39,7 @@ export declare const saveModel: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
40
39
|
}>>, {
|
|
41
40
|
state: AppState;
|
|
42
41
|
rejectValue: string;
|
|
43
|
-
dispatch?: import('redux').Dispatch
|
|
42
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
44
43
|
extra?: unknown;
|
|
45
44
|
serializedErrorType?: unknown;
|
|
46
45
|
pendingMeta?: unknown;
|
|
@@ -50,7 +49,7 @@ export declare const saveModel: import('@reduxjs/toolkit').AsyncThunk<{
|
|
|
50
49
|
export declare const openModel: import('@reduxjs/toolkit').AsyncThunk<void | ITab<any, Partial<{
|
|
51
50
|
initialLineInfo: {
|
|
52
51
|
line: number;
|
|
53
|
-
offset?: number
|
|
52
|
+
offset?: number;
|
|
54
53
|
lastModification: number;
|
|
55
54
|
};
|
|
56
55
|
initialSelectionInfo: {
|
|
@@ -66,7 +65,7 @@ export declare const openModel: import('@reduxjs/toolkit').AsyncThunk<void | ITa
|
|
|
66
65
|
}>>, {}, {
|
|
67
66
|
state: AppState;
|
|
68
67
|
rejectValue: string;
|
|
69
|
-
dispatch?: import('redux').Dispatch
|
|
68
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
70
69
|
extra?: unknown;
|
|
71
70
|
serializedErrorType?: unknown;
|
|
72
71
|
pendingMeta?: unknown;
|
|
@@ -80,7 +79,7 @@ export declare const tryRenameDataclass: import('@reduxjs/toolkit').AsyncThunk<v
|
|
|
80
79
|
}, {
|
|
81
80
|
state: AppState;
|
|
82
81
|
rejectValue: string;
|
|
83
|
-
dispatch?: import('redux').Dispatch
|
|
82
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
84
83
|
extra?: unknown;
|
|
85
84
|
serializedErrorType?: unknown;
|
|
86
85
|
pendingMeta?: unknown;
|