@ws-ui/store 1.8.3 → 1.8.5
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/index.cjs.js +29 -29
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3810 -3785
- package/dist/index.es.js.map +1 -1
- package/dist/modules/debugger/reducer.d.ts +2 -9
- package/dist/modules/debugger/types.d.ts +8 -7
- package/dist/modules/root/reducer.d.ts +2 -1
- package/dist/store.d.ts +6 -47
- package/package.json +3 -3
- package/README.md +0 -7
|
@@ -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,
|
|
2
|
+
import { IAddBreakpointAction, IAddExpressionAction, IAddSessionAction, IBreakpointDecoration, IClearBreakpointsAction, IDebuggerData, IDebuggerSession, IRemoveBreakpointAction, IRemoveExpressionAction, IRemoveSessionAction, IRenameExpressionAction, ISaveExpressionsAction, ISetActiveLineAction, ISetBreakpointsAction, ISetExpressionAction, ISetSourceContentAction, ISetCallChainVariablesAction, IUpdateSessionAction, ISetExpressionVariablesAction, IDebuggerMeta, ISetDebuggerMetaAction, IExpression, IBreakpoint, IRemoveAllExpressionsAction, IUpdateExpressionAtAction, IClearBreakpointsExceptAction, IToggleBreakpointAction, ISetCommonVariablesAction, IToggleBreakpointsInFileAction, IUpdateBreakpointsAction } from './types';
|
|
3
3
|
export interface IDebuggerState {
|
|
4
4
|
meta: IDebuggerMeta;
|
|
5
5
|
list: IDebuggerData[];
|
|
@@ -146,12 +146,5 @@ export declare const addBreakpointDecoration: import('@reduxjs/toolkit').ActionC
|
|
|
146
146
|
}, "debugger/setCommonVariables">, setSourceContent: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
147
147
|
threadId: number;
|
|
148
148
|
content: string;
|
|
149
|
-
}, "debugger/setSourceContent">, setDebuggerMeta: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
150
|
-
state: EDebuggerState;
|
|
151
|
-
error?: Partial<{
|
|
152
|
-
code: number | null;
|
|
153
|
-
reason: string;
|
|
154
|
-
type: EDebuggerErrorType;
|
|
155
|
-
}>;
|
|
156
|
-
}, "debugger/setDebuggerMeta">;
|
|
149
|
+
}, "debugger/setSourceContent">, setDebuggerMeta: import('@reduxjs/toolkit').ActionCreatorWithPayload<IDebuggerMeta, "debugger/setDebuggerMeta">;
|
|
157
150
|
export default stateSlice;
|
|
@@ -250,6 +250,10 @@ export declare enum EDebuggerState {
|
|
|
250
250
|
DETACHED = "detached",
|
|
251
251
|
ERROR = "error"
|
|
252
252
|
}
|
|
253
|
+
export declare enum EDetachReason {
|
|
254
|
+
USER_REQUEST = "user-request",
|
|
255
|
+
PAGE_REFRESH = "page-refresh"
|
|
256
|
+
}
|
|
253
257
|
export declare enum EDebuggerErrorType {
|
|
254
258
|
SOCKET_ERROR = "socket-error",
|
|
255
259
|
SOCKET_CLOSURE = "socket-closure"
|
|
@@ -263,17 +267,14 @@ type IDebuggerError = Partial<{
|
|
|
263
267
|
code: number | null;
|
|
264
268
|
reason: string;
|
|
265
269
|
type: EDebuggerErrorType;
|
|
270
|
+
time: number;
|
|
266
271
|
}>;
|
|
267
272
|
export interface IDebuggerMeta {
|
|
268
273
|
state: EDebuggerState;
|
|
269
|
-
|
|
270
|
-
time: number;
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
export type ISetDebuggerMetaAction = PayloadAction<{
|
|
274
|
-
state: EDebuggerState;
|
|
274
|
+
shouldAutoReattach?: boolean;
|
|
275
275
|
error?: IDebuggerError;
|
|
276
|
-
}
|
|
276
|
+
}
|
|
277
|
+
export type ISetDebuggerMetaAction = PayloadAction<IDebuggerMeta>;
|
|
277
278
|
export interface IEnhancedBreakpoint extends IBreakpoint {
|
|
278
279
|
offset?: number;
|
|
279
280
|
fileType: IDebuggerFileType;
|
|
@@ -23,6 +23,7 @@ export declare const stateSlice: import('@reduxjs/toolkit').Slice<IRootState, {
|
|
|
23
23
|
removeDataSource(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TActionRemoveDataSource): void;
|
|
24
24
|
setDataSources(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TActionSetDataSources): void;
|
|
25
25
|
setTabs(state: import('immer/dist/internal').WritableDraft<IRootState>, action: PayloadAction<ITab[]>): void;
|
|
26
|
+
closeDebuggerTabs(state: import('immer/dist/internal').WritableDraft<IRootState>): void;
|
|
26
27
|
closeTab(state: import('immer/dist/internal').WritableDraft<IRootState>, action: PayloadAction<number>): void;
|
|
27
28
|
closeOthers(state: import('immer/dist/internal').WritableDraft<IRootState>, action: PayloadAction<string>): void;
|
|
28
29
|
closeAllTabs(state: import('immer/dist/internal').WritableDraft<IRootState>): void;
|
|
@@ -83,7 +84,7 @@ export declare const copyToClipBoard: import('@reduxjs/toolkit').ActionCreatorWi
|
|
|
83
84
|
editor: import('@ws-ui/shared').IEditor;
|
|
84
85
|
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
85
86
|
kind: string;
|
|
86
|
-
}>>[], "root/setTabs">, closeTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "root/closeTab">, setContent: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
87
|
+
}>>[], "root/setTabs">, closeDebuggerTabs: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"root/closeDebuggerTabs">, closeTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "root/closeTab">, setContent: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
87
88
|
path: string;
|
|
88
89
|
content: any;
|
|
89
90
|
contentPath?: string;
|
package/dist/store.d.ts
CHANGED
|
@@ -5,52 +5,11 @@ export type Store = EnhancedStore<AppState, AnyAction, [
|
|
|
5
5
|
ThunkMiddlewareFor<AppState>
|
|
6
6
|
]>;
|
|
7
7
|
declare let store: Store;
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
state: "loading";
|
|
15
|
-
} | {
|
|
16
|
-
state: "loaded";
|
|
17
|
-
model: datasources.IEnhancedCatalog;
|
|
18
|
-
} | {
|
|
19
|
-
state: "error";
|
|
20
|
-
error: string;
|
|
21
|
-
};
|
|
22
|
-
roles: import('./modules').IRolesState;
|
|
23
|
-
sharedDatasources: import('./modules').ISharedDatasourcesState;
|
|
24
|
-
sharedAppEvents: import('./modules').ISharedAppEventsState;
|
|
25
|
-
savedConditions: import('./modules').ISavedConditionsState;
|
|
26
|
-
webforms: import('./modules').IWebformEditorState;
|
|
27
|
-
modals: import('./modules').IModalsState;
|
|
28
|
-
sharedCSS: import('./modules').ISharedCSSState;
|
|
29
|
-
model: import('./modules').IModelState;
|
|
30
|
-
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
31
|
-
}, AnyAction, [import('@reduxjs/toolkit').ThunkMiddleware<import('redux').CombinedState<{
|
|
32
|
-
root: import('./modules').IRootState;
|
|
33
|
-
explorer: import('./modules').ITreeItem[];
|
|
34
|
-
debugger: import('./modules').IDebuggerState;
|
|
35
|
-
settings: import('./modules').ISettingsState;
|
|
36
|
-
catalog: {
|
|
37
|
-
state: "loading";
|
|
38
|
-
} | {
|
|
39
|
-
state: "loaded";
|
|
40
|
-
model: datasources.IEnhancedCatalog;
|
|
41
|
-
} | {
|
|
42
|
-
state: "error";
|
|
43
|
-
error: string;
|
|
44
|
-
};
|
|
45
|
-
roles: import('./modules').IRolesState;
|
|
46
|
-
sharedDatasources: import('./modules').ISharedDatasourcesState;
|
|
47
|
-
sharedAppEvents: import('./modules').ISharedAppEventsState;
|
|
48
|
-
savedConditions: import('./modules').ISavedConditionsState;
|
|
49
|
-
webforms: import('./modules').IWebformEditorState;
|
|
50
|
-
modals: import('./modules').IModalsState;
|
|
51
|
-
sharedCSS: import('./modules').ISharedCSSState;
|
|
52
|
-
model: import('./modules').IModelState;
|
|
53
|
-
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
54
|
-
}>, AnyAction>]>;
|
|
8
|
+
export declare const persistStore: ({ ignorePreferences, }?: Partial<{
|
|
9
|
+
ignorePreferences: boolean;
|
|
10
|
+
}>) => void;
|
|
11
|
+
export declare const addStoreListeners: (...listeners: string[]) => void;
|
|
12
|
+
export declare const disposeStoreListeners: (...listeners: string[]) => void;
|
|
13
|
+
export declare const getStore: () => Store;
|
|
55
14
|
export type AppDispatch = typeof store.dispatch;
|
|
56
15
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@reduxjs/toolkit": "^1.7.1",
|
|
24
|
-
"@ws-ui/icons": "1.8.
|
|
25
|
-
"@ws-ui/shared": "1.8.
|
|
24
|
+
"@ws-ui/icons": "1.8.5",
|
|
25
|
+
"@ws-ui/shared": "1.8.5",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"minimatch": "^10.0.1",
|
|
28
28
|
"react": "^17.0.2",
|