@ws-ui/store 1.6.2 → 1.6.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 +26 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4241 -4198
- package/dist/index.es.js.map +1 -1
- package/dist/modules/explorer/thunks.d.ts +11 -1
- package/dist/modules/explorer/types.d.ts +1 -0
- package/dist/modules/explorer/utils.d.ts +2 -1
- package/dist/modules/index.d.ts +0 -1
- package/dist/modules/root/reducer.d.ts +1 -2
- package/dist/selectors/tabs.d.ts +54 -0
- package/dist/utils.d.ts +7 -0
- package/package.json +3 -3
- package/dist/modules/tabs/index.d.ts +0 -5
- package/dist/modules/tabs/reducer.d.ts +0 -4
- package/dist/modules/tabs/selectors.d.ts +0 -54
- package/dist/modules/tabs/types.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileFolderType, IFileInfo, ISaveFileResponse, ISetFileContentResponse,
|
|
1
|
+
import { FileFolderType, IFileInfo, ISaveFileResponse, ISetFileContentResponse, ITab, ITextEditorSelection } from '@ws-ui/shared';
|
|
2
2
|
import { ClassFileTypes } from '../root/types';
|
|
3
3
|
import { AppState } from '..';
|
|
4
4
|
import { ISettingsState } from '../settings';
|
|
@@ -250,6 +250,16 @@ export declare const fetchHTTPHandlers: import('@reduxjs/toolkit').AsyncThunk<vo
|
|
|
250
250
|
fulfilledMeta?: unknown;
|
|
251
251
|
rejectedMeta?: unknown;
|
|
252
252
|
}>;
|
|
253
|
+
export declare const openFileFromLocation: import('@reduxjs/toolkit').AsyncThunk<void, void, {
|
|
254
|
+
state: AppState;
|
|
255
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
256
|
+
extra?: unknown;
|
|
257
|
+
rejectValue?: unknown;
|
|
258
|
+
serializedErrorType?: unknown;
|
|
259
|
+
pendingMeta?: unknown;
|
|
260
|
+
fulfilledMeta?: unknown;
|
|
261
|
+
rejectedMeta?: unknown;
|
|
262
|
+
}>;
|
|
253
263
|
export declare const openFile: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
254
264
|
initialLineInfo: {
|
|
255
265
|
line: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IEditors, ITreeItem } from './types';
|
|
2
2
|
import { AppState } from '..';
|
|
3
|
-
import { INodeInfo } from '@ws-ui/shared';
|
|
3
|
+
import { INodeInfo, IEditor } from '@ws-ui/shared';
|
|
4
4
|
export declare function getNodeRelativePath(nodePath: string): string;
|
|
5
|
+
export declare function parseEditor(path: string, key: string | null, fallbackEditor?: IEditor): IEditor;
|
|
5
6
|
export declare function getEditors(path: string): IEditors;
|
|
6
7
|
export declare function getExtension(path: string): "json" | "text";
|
|
7
8
|
type TGetContentParams = {
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export declare const stateSlice: import('@reduxjs/toolkit').Slice<IRootState, {
|
|
|
10
10
|
setPanelState(state: import('immer/dist/internal').WritableDraft<IRootState>, action: PayloadAction<Partial<ITab["view"]["panel"]> & {
|
|
11
11
|
path: string;
|
|
12
12
|
}>): void;
|
|
13
|
-
openSettingsTab(state: import('immer/dist/internal').WritableDraft<IRootState>): void;
|
|
14
13
|
addDataSource(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TActionAddDataSource): void;
|
|
15
14
|
addWebformState(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TActionAddWebformState): void;
|
|
16
15
|
removeWebformState(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TActionRemoveWebformState): void;
|
|
@@ -158,7 +157,7 @@ export declare const copyToClipBoard: import('@reduxjs/toolkit').ActionCreatorWi
|
|
|
158
157
|
editor: import('@ws-ui/shared').IEditor;
|
|
159
158
|
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
160
159
|
kind: string;
|
|
161
|
-
}>>, "root/changeTabEditor">,
|
|
160
|
+
}>>, "root/changeTabEditor">, setWebformState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
162
161
|
currentState: WebformState;
|
|
163
162
|
path: string;
|
|
164
163
|
}, "root/setWebformState">, setPanelState: import('@reduxjs/toolkit').ActionCreatorWithPayload<Partial<{
|
package/dist/selectors/tabs.d.ts
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
+
export declare const selectPanelByPath: (path: string) => ((state: import('redux').EmptyObject & {
|
|
2
|
+
root: import('..').IRootState;
|
|
3
|
+
explorer: import('..').ITreeItem[];
|
|
4
|
+
debugger: import('..').IDebuggerState;
|
|
5
|
+
settings: import('..').ISettingsState;
|
|
6
|
+
catalog: {
|
|
7
|
+
state: "loading";
|
|
8
|
+
} | {
|
|
9
|
+
state: "loaded";
|
|
10
|
+
model: datasources.IEnhancedCatalog;
|
|
11
|
+
} | {
|
|
12
|
+
state: "error";
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
roles: import('..').IRolesState;
|
|
16
|
+
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
17
|
+
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
18
|
+
savedConditions: import('..').ISavedConditionsState;
|
|
19
|
+
webforms: import('..').IWebformEditorState;
|
|
20
|
+
modals: import('..').IModalsState;
|
|
21
|
+
sharedCSS: import('..').ISharedCSSState;
|
|
22
|
+
model: import('..').IModelState;
|
|
23
|
+
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
24
|
+
}) => {
|
|
25
|
+
isOpen: boolean;
|
|
26
|
+
type: string;
|
|
27
|
+
current: string;
|
|
28
|
+
lastSelected?: string;
|
|
29
|
+
} | undefined) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').ITab<any, Partial<{
|
|
30
|
+
initialLineInfo: {
|
|
31
|
+
line: number;
|
|
32
|
+
offset?: number;
|
|
33
|
+
lastModification: number;
|
|
34
|
+
};
|
|
35
|
+
initialSelectionInfo: {
|
|
36
|
+
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
37
|
+
lastModification: number;
|
|
38
|
+
};
|
|
39
|
+
diffContent: string;
|
|
40
|
+
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
41
|
+
source: import('@ws-ui/shared').ISource;
|
|
42
|
+
editor: import('@ws-ui/shared').IEditor;
|
|
43
|
+
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
44
|
+
kind: string;
|
|
45
|
+
}>>[]) => {
|
|
46
|
+
isOpen: boolean;
|
|
47
|
+
type: string;
|
|
48
|
+
current: string;
|
|
49
|
+
lastSelected?: string;
|
|
50
|
+
} | undefined, {
|
|
51
|
+
clearCache: () => void;
|
|
52
|
+
}> & {
|
|
53
|
+
clearCache: () => void;
|
|
54
|
+
};
|
|
1
55
|
export declare const selectFlagsByPath: (path: string) => ((state: import('redux').EmptyObject & {
|
|
2
56
|
root: import('..').IRootState;
|
|
3
57
|
explorer: import('..').ITreeItem[];
|
package/dist/utils.d.ts
CHANGED
|
@@ -17,3 +17,10 @@ export declare function isJSON(extension?: string): boolean;
|
|
|
17
17
|
export declare const refactorConditions: (condition: WebformStateCondition, stateLabel: string | undefined, newValue?: string) => WebformStateCondition;
|
|
18
18
|
export declare function refactorWebform(content: ITab['content'], state: WebformState): any;
|
|
19
19
|
export declare const selectorEqualityFn: (left: unknown, right: unknown) => boolean;
|
|
20
|
+
export declare const updateLocationQuery: (tab: ITab) => void;
|
|
21
|
+
export declare const clearLocationQuery: () => void;
|
|
22
|
+
export declare const parseLocationQuery: () => {
|
|
23
|
+
page: string | null;
|
|
24
|
+
path: string | null;
|
|
25
|
+
editor: string | null;
|
|
26
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.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.6.
|
|
25
|
-
"@ws-ui/shared": "1.6.
|
|
24
|
+
"@ws-ui/icons": "1.6.5",
|
|
25
|
+
"@ws-ui/shared": "1.6.5",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"minimatch": "^10.0.1",
|
|
28
28
|
"react": "^17.0.2",
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export declare const selectPanelByPath: (path: string) => ((state: import('redux').EmptyObject & {
|
|
2
|
-
root: import('..').IRootState;
|
|
3
|
-
explorer: import('..').ITreeItem[];
|
|
4
|
-
debugger: import('..').IDebuggerState;
|
|
5
|
-
settings: import('..').ISettingsState;
|
|
6
|
-
catalog: {
|
|
7
|
-
state: "loading";
|
|
8
|
-
} | {
|
|
9
|
-
state: "loaded";
|
|
10
|
-
model: datasources.IEnhancedCatalog;
|
|
11
|
-
} | {
|
|
12
|
-
state: "error";
|
|
13
|
-
error: string;
|
|
14
|
-
};
|
|
15
|
-
roles: import('..').IRolesState;
|
|
16
|
-
sharedDatasources: import('..').ISharedDatasourcesState;
|
|
17
|
-
sharedAppEvents: import('..').ISharedAppEventsState;
|
|
18
|
-
savedConditions: import('..').ISavedConditionsState;
|
|
19
|
-
webforms: import('..').IWebformEditorState;
|
|
20
|
-
modals: import('..').IModalsState;
|
|
21
|
-
sharedCSS: import('..').ISharedCSSState;
|
|
22
|
-
model: import('..').IModelState;
|
|
23
|
-
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
24
|
-
}) => {
|
|
25
|
-
isOpen: boolean;
|
|
26
|
-
type: string;
|
|
27
|
-
current: string;
|
|
28
|
-
lastSelected?: string;
|
|
29
|
-
} | undefined) & import('reselect').OutputSelectorFields<(args_0: import('@ws-ui/shared').ITab<any, Partial<{
|
|
30
|
-
initialLineInfo: {
|
|
31
|
-
line: number;
|
|
32
|
-
offset?: number;
|
|
33
|
-
lastModification: number;
|
|
34
|
-
};
|
|
35
|
-
initialSelectionInfo: {
|
|
36
|
-
selection: import('@ws-ui/shared').ITextEditorSelection;
|
|
37
|
-
lastModification: number;
|
|
38
|
-
};
|
|
39
|
-
diffContent: string;
|
|
40
|
-
attributes: import('@ws-ui/shared').IMethodAttributes;
|
|
41
|
-
source: import('@ws-ui/shared').ISource;
|
|
42
|
-
editor: import('@ws-ui/shared').IEditor;
|
|
43
|
-
ext: import('@ws-ui/shared').DebuggerFileExtension;
|
|
44
|
-
kind: string;
|
|
45
|
-
}>>[]) => {
|
|
46
|
-
isOpen: boolean;
|
|
47
|
-
type: string;
|
|
48
|
-
current: string;
|
|
49
|
-
lastSelected?: string;
|
|
50
|
-
} | undefined, {
|
|
51
|
-
clearCache: () => void;
|
|
52
|
-
}> & {
|
|
53
|
-
clearCache: () => void;
|
|
54
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|