@ws-ui/store 0.1.28-feat.2737 → 0.1.29
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 +27 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1706 -1617
- package/dist/index.es.js.map +1 -1
- package/dist/modules/explorer/reducer.d.ts +8 -1
- package/dist/modules/explorer/utils.d.ts +4 -15
- package/package.json +3 -2
|
@@ -2,6 +2,10 @@ import { PayloadAction } from '@reduxjs/toolkit';
|
|
|
2
2
|
import { ITreeItem } from './types';
|
|
3
3
|
export declare const findNodeByPath: (tree: ITreeItem[], path: string) => ITreeItem | null;
|
|
4
4
|
declare const stateSlice: import("@reduxjs/toolkit").Slice<import("immer/dist/internal.js").WritableDraft<ITreeItem>[], {
|
|
5
|
+
renameClassesFolder: (state: ITreeItem[], action: PayloadAction<{
|
|
6
|
+
newName: string;
|
|
7
|
+
prevName: string;
|
|
8
|
+
}[]>) => ITreeItem[];
|
|
5
9
|
removeClassesFolder: (state: import("immer/dist/internal.js").WritableDraft<ITreeItem>[], action: PayloadAction<string[]>) => import("immer/dist/internal.js").WritableDraft<ITreeItem>[];
|
|
6
10
|
addClassesFolder: (state: import("immer/dist/internal.js").WritableDraft<ITreeItem>[], action: PayloadAction<ITreeItem[]>) => import("immer/dist/internal.js").WritableDraft<ITreeItem>[];
|
|
7
11
|
toggleExpandFolder: (state: import("immer/dist/internal.js").WritableDraft<ITreeItem>[], action: PayloadAction<ITreeItem>) => import("immer/dist/internal.js").WritableDraft<ITreeItem>[];
|
|
@@ -36,5 +40,8 @@ export declare const toggleExpandFolder: import("@reduxjs/toolkit").ActionCreato
|
|
|
36
40
|
}, string>, setFolderChildren: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
41
|
parentPath: string;
|
|
38
42
|
children: ITreeItem[];
|
|
39
|
-
}, string>, addClassesFolder: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITreeItem[], string>, removeClassesFolder: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], string
|
|
43
|
+
}, string>, addClassesFolder: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITreeItem[], string>, removeClassesFolder: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], string>, renameClassesFolder: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
44
|
+
newName: string;
|
|
45
|
+
prevName: string;
|
|
46
|
+
}[], string>;
|
|
40
47
|
export default stateSlice;
|
|
@@ -2,26 +2,15 @@ import { IEditors } from './types';
|
|
|
2
2
|
export declare function getNodeRelativePath(nodePath: string): string;
|
|
3
3
|
export declare function getEditors(path: string): IEditors;
|
|
4
4
|
export declare function getExtension(path: string): "json" | "text";
|
|
5
|
-
type
|
|
5
|
+
type TGetContentParams = {
|
|
6
6
|
name: string;
|
|
7
7
|
qodly: boolean;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
name: string;
|
|
12
|
-
content: string;
|
|
13
|
-
};
|
|
14
|
-
collection: ({ name, qodly }: TgetContent) => {
|
|
15
|
-
name: string;
|
|
16
|
-
content: string;
|
|
17
|
-
};
|
|
18
|
-
entity: ({ name, qodly }: TgetContent) => {
|
|
19
|
-
name: string;
|
|
20
|
-
content: string;
|
|
21
|
-
};
|
|
22
|
-
model: ({ name, qodly }: TgetContent) => {
|
|
9
|
+
type TGetContentReturnValue = {
|
|
10
|
+
[key: string]: (params: TGetContentParams) => {
|
|
23
11
|
name: string;
|
|
24
12
|
content: string;
|
|
25
13
|
};
|
|
26
14
|
};
|
|
15
|
+
export declare const getContent: () => TGetContentReturnValue;
|
|
27
16
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.29",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@reduxjs/toolkit": "^1.7.1",
|
|
27
|
-
"@ws-ui/shared": "^0.1.23",
|
|
28
27
|
"react-redux": "^7.2.6"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
30
|
"@ws-ui/icons": "^0.0.17",
|
|
31
|
+
"@ws-ui/shared": "^0.1.24",
|
|
32
32
|
"lodash": "^4.17.21",
|
|
33
33
|
"minimatch": "^5.1.0",
|
|
34
34
|
"react": "^17.0.2",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"vscode-debugprotocol": "^1.51.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
+
"@esbuild/darwin-arm64": "^0.21.4",
|
|
41
42
|
"@jest/globals": "^29.7.0",
|
|
42
43
|
"@types/jest": "^29.5.5",
|
|
43
44
|
"@types/lodash": "^4.14.199",
|