@ws-ui/store 0.2.0 → 0.2.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/dist/index.cjs.js +33 -33
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3564 -3560
- package/dist/index.es.js.map +1 -1
- package/dist/modules/explorer/utils.d.ts +4 -1
- package/dist/modules/webforms/thunks.d.ts +8 -1
- package/dist/selectors/components.d.ts +2 -2
- package/dist/selectors/states.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { IEditors } from './types';
|
|
1
|
+
import { IEditors, ITreeItem } from './types';
|
|
2
|
+
import { AppState } from '..';
|
|
3
|
+
import { INodeInfo } from '@ws-ui/shared';
|
|
2
4
|
export declare function getNodeRelativePath(nodePath: string): string;
|
|
3
5
|
export declare function getEditors(path: string): IEditors;
|
|
4
6
|
export declare function getExtension(path: string): "json" | "text";
|
|
@@ -13,4 +15,5 @@ type TGetContentReturnValue = {
|
|
|
13
15
|
};
|
|
14
16
|
};
|
|
15
17
|
export declare const getContent: () => TGetContentReturnValue;
|
|
18
|
+
export declare const createClassesFolderContent: (state: AppState, children: INodeInfo[]) => ITreeItem[];
|
|
16
19
|
export {};
|
|
@@ -29,13 +29,20 @@ type TAddDatasource = {
|
|
|
29
29
|
path: string;
|
|
30
30
|
};
|
|
31
31
|
export declare const addDatasource: import("@reduxjs/toolkit").AsyncThunk<TDatasourcesReturnType | undefined, TAddDatasource, AsyncThunkConfig>;
|
|
32
|
-
type
|
|
32
|
+
type TEditDatasourceProperty = {
|
|
33
33
|
id: string;
|
|
34
34
|
path: string;
|
|
35
35
|
value: any;
|
|
36
36
|
property: string;
|
|
37
37
|
namespace: string;
|
|
38
38
|
};
|
|
39
|
+
type TEditDatasourceProperties = {
|
|
40
|
+
id: string;
|
|
41
|
+
path: string;
|
|
42
|
+
changes: Record<string, any>;
|
|
43
|
+
namespace: string;
|
|
44
|
+
};
|
|
45
|
+
type TEditDatasource = TEditDatasourceProperty | TEditDatasourceProperties;
|
|
39
46
|
export declare const editDatasource: import("@reduxjs/toolkit").AsyncThunk<TDatasourcesReturnType | undefined, TEditDatasource, AsyncThunkConfig>;
|
|
40
47
|
export declare const isRenameDatasource: (action: PayloadAction<any>) => action is {
|
|
41
48
|
payload: TRenameDatasource;
|
|
@@ -41,8 +41,8 @@ export declare const selectComponentsByPath: (tabPath: string) => ((state: impor
|
|
|
41
41
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("..").ISharedCSSState>;
|
|
42
42
|
model: import("..").IModelState;
|
|
43
43
|
}) => {
|
|
44
|
-
hidden: boolean;
|
|
45
44
|
parent: string | null;
|
|
45
|
+
hidden: boolean;
|
|
46
46
|
props: any;
|
|
47
47
|
displayName: string;
|
|
48
48
|
isCanvas: boolean;
|
|
@@ -53,8 +53,8 @@ export declare const selectComponentsByPath: (tabPath: string) => ((state: impor
|
|
|
53
53
|
type: import("@ws-ui/craftjs-core").ReduceCompType;
|
|
54
54
|
id: string;
|
|
55
55
|
}[]) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<import("..").IRootState>) => {
|
|
56
|
-
hidden: boolean;
|
|
57
56
|
parent: string | null;
|
|
57
|
+
hidden: boolean;
|
|
58
58
|
props: any;
|
|
59
59
|
displayName: string;
|
|
60
60
|
isCanvas: boolean;
|