@ws-ui/store 0.1.36 → 0.1.38-20240628
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/README.md +0 -0
- package/dist/hooks/index.d.ts +0 -0
- package/dist/hooks/store.d.ts +0 -0
- package/dist/index.cjs.js +27 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.es.js +4177 -4155
- package/dist/index.es.js.map +1 -1
- package/dist/modules/catalog/index.d.ts +0 -0
- package/dist/modules/catalog/reducer.d.ts +0 -0
- package/dist/modules/catalog/thunks.d.ts +0 -0
- package/dist/modules/catalog/types.d.ts +0 -0
- package/dist/modules/debugger/index.d.ts +0 -0
- package/dist/modules/debugger/reducer.d.ts +0 -0
- package/dist/modules/debugger/thunks.d.ts +0 -0
- package/dist/modules/debugger/types.d.ts +0 -0
- package/dist/modules/debugger/utils.d.ts +0 -0
- package/dist/modules/explorer/index.d.ts +0 -0
- package/dist/modules/explorer/reducer.d.ts +0 -0
- package/dist/modules/explorer/thunks.d.ts +1 -1
- package/dist/modules/explorer/types.d.ts +0 -0
- package/dist/modules/explorer/utils.d.ts +0 -0
- package/dist/modules/index.d.ts +0 -0
- package/dist/modules/modals/index.d.ts +0 -0
- package/dist/modules/modals/reducer.d.ts +0 -0
- package/dist/modules/modals/thunks.d.ts +0 -0
- package/dist/modules/modals/types.d.ts +0 -0
- package/dist/modules/model/helpers.d.ts +0 -0
- package/dist/modules/model/index.d.ts +0 -0
- package/dist/modules/model/reducer.d.ts +0 -0
- package/dist/modules/model/selectors.d.ts +0 -0
- package/dist/modules/model/subjects.d.ts +0 -0
- package/dist/modules/model/thunks.d.ts +0 -0
- package/dist/modules/model/types.d.ts +0 -0
- package/dist/modules/model/utils.d.ts +0 -0
- package/dist/modules/roles/__tests__/adapter.test.d.ts +0 -0
- package/dist/modules/roles/adapter.d.ts +0 -0
- package/dist/modules/roles/index.d.ts +0 -0
- package/dist/modules/roles/reducer.d.ts +0 -0
- package/dist/modules/roles/thunks.d.ts +0 -0
- package/dist/modules/roles/types.d.ts +0 -0
- package/dist/modules/root/index.d.ts +0 -0
- package/dist/modules/root/reducer.d.ts +0 -0
- package/dist/modules/root/thunks.d.ts +2 -2
- package/dist/modules/root/types.d.ts +0 -0
- package/dist/modules/settings/index.d.ts +0 -0
- package/dist/modules/settings/reducer.d.ts +5 -5
- package/dist/modules/settings/thunks.d.ts +0 -0
- package/dist/modules/settings/types.d.ts +0 -0
- package/dist/modules/settings/utils.d.ts +0 -0
- package/dist/modules/shared-conditions/index.d.ts +0 -0
- package/dist/modules/shared-conditions/reducer.d.ts +0 -0
- package/dist/modules/shared-conditions/thunks.d.ts +0 -0
- package/dist/modules/shared-conditions/types.d.ts +0 -0
- package/dist/modules/shared-css/index.d.ts +0 -0
- package/dist/modules/shared-css/reducer.d.ts +0 -0
- package/dist/modules/shared-css/thunks.d.ts +0 -0
- package/dist/modules/shared-css/types.d.ts +0 -0
- package/dist/modules/shared-datasources/index.d.ts +0 -0
- package/dist/modules/shared-datasources/reducer.d.ts +0 -0
- package/dist/modules/shared-datasources/thunks.d.ts +1 -0
- package/dist/modules/shared-datasources/types.d.ts +0 -0
- package/dist/modules/tabs/index.d.ts +0 -0
- package/dist/modules/tabs/reducer.d.ts +0 -0
- package/dist/modules/tabs/selectors.d.ts +0 -0
- package/dist/modules/tabs/types.d.ts +0 -0
- package/dist/modules/webforms/datasources.adapter.d.ts +0 -0
- package/dist/modules/webforms/index.d.ts +0 -0
- package/dist/modules/webforms/private.d.ts +0 -0
- package/dist/modules/webforms/reducer.d.ts +33 -6
- package/dist/modules/webforms/thunks.d.ts +23 -6
- package/dist/modules/webforms/types.d.ts +21 -6
- package/dist/provider.d.ts +0 -0
- package/dist/selectors/catalog.d.ts +0 -0
- package/dist/selectors/common.d.ts +0 -0
- package/dist/selectors/components.d.ts +0 -0
- package/dist/selectors/datasources.d.ts +0 -0
- package/dist/selectors/debugger.d.ts +0 -0
- package/dist/selectors/explorer.d.ts +0 -0
- package/dist/selectors/index.d.ts +0 -0
- package/dist/selectors/modals.d.ts +0 -0
- package/dist/selectors/roles.d.ts +0 -0
- package/dist/selectors/settings.d.ts +16 -16
- package/dist/selectors/states.d.ts +0 -0
- package/dist/selectors/styles.d.ts +0 -0
- package/dist/selectors/tabs.d.ts +0 -0
- package/dist/selectors/webforms.d.ts +13 -4
- package/dist/store.d.ts +0 -0
- package/dist/utils.d.ts +1 -1
- package/package.json +4 -3
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -111,7 +111,7 @@ export declare const fetchFolderContent: import("@reduxjs/toolkit").AsyncThunk<I
|
|
|
111
111
|
export declare const fetchFolderContentWithoutExpanding: import("@reduxjs/toolkit").AsyncThunk<ITreeItem[], string, {}>;
|
|
112
112
|
export declare const uploadFileAndGetResponse: import("@reduxjs/toolkit").AsyncThunk<{
|
|
113
113
|
status: number;
|
|
114
|
-
data:
|
|
114
|
+
data: unknown;
|
|
115
115
|
}, File, {}>;
|
|
116
116
|
export declare const uploadFile: import("@reduxjs/toolkit").AsyncThunk<{
|
|
117
117
|
status: number;
|
|
File without changes
|
|
File without changes
|
package/dist/modules/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="@ws-ui/shared/dist/declarations/datasources/datasource" />
|
|
2
|
-
import {
|
|
2
|
+
import { IFileInfoResponse, IMultilineMessage, INodeInfo, ITab } from '@ws-ui/shared';
|
|
3
3
|
import { AppState } from '..';
|
|
4
4
|
import { ClassFileTypes, TActionRenameDataSource } from './types';
|
|
5
5
|
export declare const fetchFiles: import("@reduxjs/toolkit").AsyncThunk<{
|
|
6
6
|
name: string;
|
|
7
|
-
type: FileFolderTypeWithContent;
|
|
7
|
+
type: import("@ws-ui/shared").FileFolderTypeWithContent;
|
|
8
8
|
date: string;
|
|
9
9
|
path: string;
|
|
10
10
|
}[], void, {}>;
|
|
File without changes
|
|
File without changes
|
|
@@ -3,14 +3,14 @@ import { IAppSettingsResponse } from '@ws-ui/shared';
|
|
|
3
3
|
import { TSetSettingPayload, TSettingPath } from './types';
|
|
4
4
|
export interface ISettingsState {
|
|
5
5
|
session: {
|
|
6
|
-
[key: string]:
|
|
6
|
+
[key: string]: unknown;
|
|
7
7
|
};
|
|
8
8
|
project: {
|
|
9
|
-
[key: string]:
|
|
9
|
+
[key: string]: unknown;
|
|
10
10
|
};
|
|
11
11
|
server: IAppSettingsResponse;
|
|
12
12
|
welcometour: {
|
|
13
|
-
[key: string]:
|
|
13
|
+
[key: string]: unknown;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
declare const stateSlice: import("@reduxjs/toolkit").Slice<ISettingsState, {
|
|
@@ -23,7 +23,7 @@ declare const stateSlice: import("@reduxjs/toolkit").Slice<ISettingsState, {
|
|
|
23
23
|
payload: {
|
|
24
24
|
path: TSettingPath;
|
|
25
25
|
settings: {
|
|
26
|
-
[key: string]:
|
|
26
|
+
[key: string]: unknown;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
type: string;
|
|
@@ -39,7 +39,7 @@ export declare const setSetting: import("@reduxjs/toolkit").ActionCreatorWithPay
|
|
|
39
39
|
}, string>, setSettingsAsText: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
40
40
|
path: TSettingPath;
|
|
41
41
|
settings: {
|
|
42
|
-
[key: string]:
|
|
42
|
+
[key: string]: unknown;
|
|
43
43
|
};
|
|
44
44
|
}, string>;
|
|
45
45
|
export default stateSlice;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,6 +3,7 @@ import { ISharedDatasourcesResponse } from '@ws-ui/shared';
|
|
|
3
3
|
import { AppState } from '../../modules';
|
|
4
4
|
export declare const fetchSharedDatasources: import("@reduxjs/toolkit").AsyncThunk<ISharedDatasourcesResponse, void, {
|
|
5
5
|
rejectValue: string;
|
|
6
|
+
state: AppState;
|
|
6
7
|
}>;
|
|
7
8
|
export declare const addSharedSource: import("@reduxjs/toolkit").AsyncThunk<ISharedDatasourcesResponse, datasources.ICreateDataSource, {
|
|
8
9
|
rejectValue: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,20 +11,26 @@ declare const stateSlice: import("@reduxjs/toolkit").Slice<IWebformEditorState,
|
|
|
11
11
|
editComponent: (state: import("immer/dist/internal.js").WritableDraft<IWebformEditorState>, action: PayloadAction<{
|
|
12
12
|
id: string;
|
|
13
13
|
changes: Partial<IComponentTemplate>;
|
|
14
|
+
type: 'webform' | 'report';
|
|
14
15
|
}>) => void;
|
|
15
16
|
removeComponent: (state: import("immer/dist/internal.js").WritableDraft<IWebformEditorState>, action: TRemoveComponentAction) => void;
|
|
16
17
|
setSelectedGroup: (state: import("immer/dist/internal.js").WritableDraft<IWebformEditorState>, action: {
|
|
17
18
|
payload: {
|
|
18
19
|
selectedGroup: string;
|
|
20
|
+
type: 'webform' | 'report';
|
|
19
21
|
};
|
|
20
22
|
}) => void;
|
|
21
23
|
setTemplatesData: (state: import("immer/dist/internal.js").WritableDraft<IWebformEditorState>, action: {
|
|
22
|
-
payload:
|
|
24
|
+
payload: {
|
|
25
|
+
webformTemplates: ITemplatedGroup[];
|
|
26
|
+
reportTemplates: ITemplatedGroup[];
|
|
27
|
+
};
|
|
23
28
|
}) => void;
|
|
24
29
|
setTemplateData: (state: import("immer/dist/internal.js").WritableDraft<IWebformEditorState>, action: {
|
|
25
30
|
payload: {
|
|
26
31
|
group: string;
|
|
27
32
|
components: ITemplatedGroupItem[];
|
|
33
|
+
type: 'webform' | 'report';
|
|
28
34
|
};
|
|
29
35
|
}) => void;
|
|
30
36
|
setDatasourcesTheme: (state: import("immer/dist/internal.js").WritableDraft<IWebformEditorState>, action: {
|
|
@@ -32,22 +38,43 @@ declare const stateSlice: import("@reduxjs/toolkit").Slice<IWebformEditorState,
|
|
|
32
38
|
}) => void;
|
|
33
39
|
setWebformsFlag(state: import("immer/dist/internal.js").WritableDraft<IWebformEditorState>, action: {
|
|
34
40
|
payload: {
|
|
35
|
-
[key: string]:
|
|
41
|
+
[key: string]: boolean;
|
|
36
42
|
};
|
|
37
43
|
type: string;
|
|
38
44
|
}): void;
|
|
45
|
+
setCraftedComponentData(state: import("immer/dist/internal.js").WritableDraft<IWebformEditorState>, action: {
|
|
46
|
+
payload: {
|
|
47
|
+
webform: IComponentTemplate[];
|
|
48
|
+
report: IComponentTemplate[];
|
|
49
|
+
};
|
|
50
|
+
}): void;
|
|
39
51
|
}, "webforms">;
|
|
40
52
|
export declare const toggleInspector: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
41
53
|
type: "css" | "datasource";
|
|
42
|
-
}, string>, inspect: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").TToggleInspectorPayload, string>, addComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
54
|
+
}, string>, inspect: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").TToggleInspectorPayload, string>, addComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
55
|
+
component: IComponentTemplate;
|
|
56
|
+
type: "webform" | "report";
|
|
57
|
+
}, string>, editComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
43
58
|
id: string;
|
|
44
59
|
changes: Partial<IComponentTemplate>;
|
|
45
|
-
|
|
60
|
+
type: 'webform' | 'report';
|
|
61
|
+
}, string>, removeComponent: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
62
|
+
id: string;
|
|
63
|
+
type: "webform" | "report";
|
|
64
|
+
}, string>, setSelectedGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
46
65
|
selectedGroup: string;
|
|
47
|
-
|
|
66
|
+
type: 'webform' | 'report';
|
|
67
|
+
}, string>, setTemplatesData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
68
|
+
webformTemplates: ITemplatedGroup[];
|
|
69
|
+
reportTemplates: ITemplatedGroup[];
|
|
70
|
+
}, string>, setTemplateData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
48
71
|
group: string;
|
|
49
72
|
components: ITemplatedGroupItem[];
|
|
73
|
+
type: 'webform' | 'report';
|
|
50
74
|
}, string>, setDatasourcesTheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | number, string>, setWebformsFlag: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
51
|
-
[key: string]:
|
|
75
|
+
[key: string]: boolean;
|
|
76
|
+
}, string>, setCraftedComponentData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
77
|
+
webform: IComponentTemplate[];
|
|
78
|
+
report: IComponentTemplate[];
|
|
52
79
|
}, string>;
|
|
53
80
|
export default stateSlice;
|
|
@@ -4,21 +4,38 @@ import { IComponentTemplate, OrNull } from '@ws-ui/shared';
|
|
|
4
4
|
import { AsyncThunkConfig } from '../../hooks/store';
|
|
5
5
|
import { AppState } from '..';
|
|
6
6
|
import { ITemplatedGroup, ITemplatedGroupItem } from './types';
|
|
7
|
-
export declare const fetchTemplates: import("@reduxjs/toolkit").AsyncThunk<
|
|
7
|
+
export declare const fetchTemplates: import("@reduxjs/toolkit").AsyncThunk<{
|
|
8
|
+
webform: {
|
|
9
|
+
data: ITemplatedGroup[];
|
|
10
|
+
selectedGroup: string;
|
|
11
|
+
};
|
|
12
|
+
report: {
|
|
13
|
+
data: ITemplatedGroup[];
|
|
14
|
+
selectedGroup: string;
|
|
15
|
+
};
|
|
16
|
+
}, void, {
|
|
8
17
|
state: AppState;
|
|
9
18
|
}>;
|
|
10
19
|
export declare const fetchTemplate: import("@reduxjs/toolkit").AsyncThunk<ITemplatedGroupItem[], {
|
|
11
20
|
name: string;
|
|
21
|
+
type: 'webform' | 'report';
|
|
12
22
|
}, {
|
|
13
23
|
state: AppState;
|
|
14
24
|
}>;
|
|
15
|
-
export declare const fetchCraftedComponents: import("@reduxjs/toolkit").AsyncThunk<
|
|
16
|
-
export declare const addCraftedComponent: import("@reduxjs/toolkit").AsyncThunk<undefined,
|
|
25
|
+
export declare const fetchCraftedComponents: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
|
|
26
|
+
export declare const addCraftedComponent: import("@reduxjs/toolkit").AsyncThunk<undefined, {
|
|
27
|
+
component: IComponentTemplate;
|
|
28
|
+
type: 'webform' | 'report';
|
|
29
|
+
}, {}>;
|
|
17
30
|
export declare const editCraftedComponent: import("@reduxjs/toolkit").AsyncThunk<undefined, {
|
|
18
31
|
id: string;
|
|
19
32
|
changes: Partial<IComponentTemplate>;
|
|
33
|
+
type: 'webform' | 'report';
|
|
34
|
+
}, {}>;
|
|
35
|
+
export declare const removeCraftedComponent: import("@reduxjs/toolkit").AsyncThunk<undefined, {
|
|
36
|
+
id: string;
|
|
37
|
+
type: 'webform' | 'report';
|
|
20
38
|
}, {}>;
|
|
21
|
-
export declare const removeCraftedComponent: import("@reduxjs/toolkit").AsyncThunk<undefined, string, {}>;
|
|
22
39
|
type TDatasourcesReturnType = {
|
|
23
40
|
path: string;
|
|
24
41
|
namespace: string;
|
|
@@ -32,12 +49,12 @@ export declare const addDatasource: import("@reduxjs/toolkit").AsyncThunk<TDatas
|
|
|
32
49
|
type TEditDatasource = {
|
|
33
50
|
id: string;
|
|
34
51
|
path: string;
|
|
35
|
-
value:
|
|
52
|
+
value: unknown;
|
|
36
53
|
property: string;
|
|
37
54
|
namespace: string;
|
|
38
55
|
};
|
|
39
56
|
export declare const editDatasource: import("@reduxjs/toolkit").AsyncThunk<TDatasourcesReturnType | undefined, TEditDatasource, AsyncThunkConfig>;
|
|
40
|
-
export declare const isRenameDatasource: (action: PayloadAction<
|
|
57
|
+
export declare const isRenameDatasource: (action: PayloadAction<unknown>) => action is {
|
|
41
58
|
payload: TRenameDatasource;
|
|
42
59
|
type: string;
|
|
43
60
|
};
|
|
@@ -18,18 +18,27 @@ export type ITemplateList = Record<string, {
|
|
|
18
18
|
hide: boolean;
|
|
19
19
|
}>;
|
|
20
20
|
export interface ITemplatedComponent {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
webform: {
|
|
22
|
+
selectedGroup: string;
|
|
23
|
+
data: ITemplatedGroup[];
|
|
24
|
+
};
|
|
25
|
+
report: {
|
|
26
|
+
selectedGroup: string;
|
|
27
|
+
data: ITemplatedGroup[];
|
|
28
|
+
};
|
|
23
29
|
}
|
|
24
30
|
export interface IWebformEditorState {
|
|
25
31
|
inspector: IInspectorState;
|
|
26
|
-
components:
|
|
32
|
+
components: {
|
|
33
|
+
webform: IComponentTemplate[];
|
|
34
|
+
report: IComponentTemplate[];
|
|
35
|
+
};
|
|
27
36
|
templates: ITemplatedComponent;
|
|
28
37
|
datasources: {
|
|
29
38
|
theme: TDatasourceTheme;
|
|
30
39
|
};
|
|
31
40
|
flags: {
|
|
32
|
-
[key: string]:
|
|
41
|
+
[key: string]: boolean;
|
|
33
42
|
};
|
|
34
43
|
}
|
|
35
44
|
/**
|
|
@@ -67,5 +76,11 @@ export type TInspectAction = PayloadAction<TToggleInspectorPayload>;
|
|
|
67
76
|
/**
|
|
68
77
|
* Components actions
|
|
69
78
|
*/
|
|
70
|
-
export type TAddComponentAction = PayloadAction<
|
|
71
|
-
|
|
79
|
+
export type TAddComponentAction = PayloadAction<{
|
|
80
|
+
component: IComponentTemplate;
|
|
81
|
+
type: 'webform' | 'report';
|
|
82
|
+
}>;
|
|
83
|
+
export type TRemoveComponentAction = PayloadAction<{
|
|
84
|
+
id: string;
|
|
85
|
+
type: 'webform' | 'report';
|
|
86
|
+
}>;
|
package/dist/provider.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -36,9 +36,9 @@ export declare const selectSessionSettings: ((state: import("redux").EmptyObject
|
|
|
36
36
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
37
37
|
model: import("../modules").IModelState;
|
|
38
38
|
}) => {
|
|
39
|
-
[key: string]:
|
|
39
|
+
[key: string]: unknown;
|
|
40
40
|
}) & import("reselect").OutputSelectorFields<(args_0: import("../modules").ISettingsState) => {
|
|
41
|
-
[key: string]:
|
|
41
|
+
[key: string]: unknown;
|
|
42
42
|
}, {
|
|
43
43
|
clearCache: () => void;
|
|
44
44
|
}> & {
|
|
@@ -81,7 +81,7 @@ export declare const selectPartialSessionSettings: <T extends string[]>(...keys:
|
|
|
81
81
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
82
82
|
model: import("../modules").IModelState;
|
|
83
83
|
}) => { [K in T[number]]: unknown; }) & import("reselect").OutputSelectorFields<(args_0: {
|
|
84
|
-
[key: string]:
|
|
84
|
+
[key: string]: unknown;
|
|
85
85
|
}) => { [K in T[number]]: unknown; }, {
|
|
86
86
|
clearCache: () => void;
|
|
87
87
|
}> & {
|
|
@@ -124,7 +124,7 @@ export declare const selectSessionSetting: <T = string>(key: string) => ((state:
|
|
|
124
124
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
125
125
|
model: import("../modules").IModelState;
|
|
126
126
|
}) => T) & import("reselect").OutputSelectorFields<(args_0: {
|
|
127
|
-
[key: string]:
|
|
127
|
+
[key: string]: unknown;
|
|
128
128
|
}) => T, {
|
|
129
129
|
clearCache: () => void;
|
|
130
130
|
}> & {
|
|
@@ -167,7 +167,7 @@ export declare const selectFeatureFlag: (key: string) => ((state: import("redux"
|
|
|
167
167
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
168
168
|
model: import("../modules").IModelState;
|
|
169
169
|
}) => boolean) & import("reselect").OutputSelectorFields<(args_0: {
|
|
170
|
-
[key: string]:
|
|
170
|
+
[key: string]: unknown;
|
|
171
171
|
}) => boolean, {
|
|
172
172
|
clearCache: () => void;
|
|
173
173
|
}> & {
|
|
@@ -210,9 +210,9 @@ export declare const selectProjectSettings: ((state: import("redux").EmptyObject
|
|
|
210
210
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
211
211
|
model: import("../modules").IModelState;
|
|
212
212
|
}) => {
|
|
213
|
-
[key: string]:
|
|
213
|
+
[key: string]: unknown;
|
|
214
214
|
}) & import("reselect").OutputSelectorFields<(args_0: import("../modules").ISettingsState) => {
|
|
215
|
-
[key: string]:
|
|
215
|
+
[key: string]: unknown;
|
|
216
216
|
}, {
|
|
217
217
|
clearCache: () => void;
|
|
218
218
|
}> & {
|
|
@@ -418,9 +418,9 @@ export declare const selectMonacoZoom: ((state: import("redux").EmptyObject & {
|
|
|
418
418
|
modals: import("../modules").IModalsState;
|
|
419
419
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
420
420
|
model: import("../modules").IModelState;
|
|
421
|
-
}) =>
|
|
422
|
-
[key: string]:
|
|
423
|
-
}) =>
|
|
421
|
+
}) => unknown) & import("reselect").OutputSelectorFields<(args_0: {
|
|
422
|
+
[key: string]: unknown;
|
|
423
|
+
}) => unknown, {
|
|
424
424
|
clearCache: () => void;
|
|
425
425
|
}> & {
|
|
426
426
|
clearCache: () => void;
|
|
@@ -461,9 +461,9 @@ export declare const selectI18nSetting: ((state: import("redux").EmptyObject & {
|
|
|
461
461
|
modals: import("../modules").IModalsState;
|
|
462
462
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
463
463
|
model: import("../modules").IModelState;
|
|
464
|
-
}) =>
|
|
465
|
-
[key: string]:
|
|
466
|
-
}) =>
|
|
464
|
+
}) => unknown) & import("reselect").OutputSelectorFields<(args_0: {
|
|
465
|
+
[key: string]: unknown;
|
|
466
|
+
}) => unknown, {
|
|
467
467
|
clearCache: () => void;
|
|
468
468
|
}> & {
|
|
469
469
|
clearCache: () => void;
|
|
@@ -504,9 +504,9 @@ export declare const selectI18nCurrent: ((state: import("redux").EmptyObject & {
|
|
|
504
504
|
modals: import("../modules").IModalsState;
|
|
505
505
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
506
506
|
model: import("../modules").IModelState;
|
|
507
|
-
}) =>
|
|
508
|
-
[key: string]:
|
|
509
|
-
}) =>
|
|
507
|
+
}) => unknown) & import("reselect").OutputSelectorFields<(args_0: {
|
|
508
|
+
[key: string]: unknown;
|
|
509
|
+
}) => unknown, {
|
|
510
510
|
clearCache: () => void;
|
|
511
511
|
}> & {
|
|
512
512
|
clearCache: () => void;
|
|
File without changes
|
|
File without changes
|
package/dist/selectors/tabs.d.ts
CHANGED
|
File without changes
|
|
@@ -77,7 +77,13 @@ export declare const selectComponents: ((state: import("redux").EmptyObject & {
|
|
|
77
77
|
modals: import("../modules").IModalsState;
|
|
78
78
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
79
79
|
model: import("../modules").IModelState;
|
|
80
|
-
}) =>
|
|
80
|
+
}) => {
|
|
81
|
+
webform: import("@ws-ui/shared").IComponentTemplate[];
|
|
82
|
+
report: import("@ws-ui/shared").IComponentTemplate[];
|
|
83
|
+
}) & import("reselect").OutputSelectorFields<(args_0: import("../modules").IWebformEditorState) => {
|
|
84
|
+
webform: import("@ws-ui/shared").IComponentTemplate[];
|
|
85
|
+
report: import("@ws-ui/shared").IComponentTemplate[];
|
|
86
|
+
}, {
|
|
81
87
|
clearCache: () => void;
|
|
82
88
|
}> & {
|
|
83
89
|
clearCache: () => void;
|
|
@@ -282,12 +288,12 @@ export declare const selectTemplatesData: ((state: import("redux").EmptyObject &
|
|
|
282
288
|
modals: import("../modules").IModalsState;
|
|
283
289
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
284
290
|
model: import("../modules").IModelState;
|
|
285
|
-
}) => import("../modules").
|
|
291
|
+
}) => import("../modules").ITemplatedComponent) & import("reselect").OutputSelectorFields<(args_0: import("../modules").ITemplatedComponent) => import("../modules").ITemplatedComponent, {
|
|
286
292
|
clearCache: () => void;
|
|
287
293
|
}> & {
|
|
288
294
|
clearCache: () => void;
|
|
289
295
|
};
|
|
290
|
-
export declare const selectCraftedComponent: (id: string) => ((state: import("redux").EmptyObject & {
|
|
296
|
+
export declare const selectCraftedComponent: (id: string, type: 'webform' | 'report') => ((state: import("redux").EmptyObject & {
|
|
291
297
|
root: import("immer/dist/internal.js").WritableDraft<import("../modules").IRootState>;
|
|
292
298
|
explorer: import("immer/dist/internal.js").WritableDraft<import("../modules").ITreeItem>[];
|
|
293
299
|
debugger: import("../modules").IDebuggerState;
|
|
@@ -323,7 +329,10 @@ export declare const selectCraftedComponent: (id: string) => ((state: import("re
|
|
|
323
329
|
modals: import("../modules").IModalsState;
|
|
324
330
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
325
331
|
model: import("../modules").IModelState;
|
|
326
|
-
}) => import("@ws-ui/shared").IComponentTemplate | undefined) & import("reselect").OutputSelectorFields<(args_0:
|
|
332
|
+
}) => import("@ws-ui/shared").IComponentTemplate | undefined) & import("reselect").OutputSelectorFields<(args_0: {
|
|
333
|
+
webform: import("@ws-ui/shared").IComponentTemplate[];
|
|
334
|
+
report: import("@ws-ui/shared").IComponentTemplate[];
|
|
335
|
+
}) => import("@ws-ui/shared").IComponentTemplate | undefined, {
|
|
327
336
|
clearCache: () => void;
|
|
328
337
|
}> & {
|
|
329
338
|
clearCache: () => void;
|
package/dist/store.d.ts
CHANGED
|
File without changes
|
package/dist/utils.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const DEFAULT_CACHE: TCachedState;
|
|
|
7
7
|
export type TCachedState = Pick<IRootState, 'tabs' | 'activeTab' | 'recent'> & Pick<AppState, 'roles' | 'debugger' | 'webforms' | 'sharedCSS'>;
|
|
8
8
|
export declare function saveState(state: TCachedState): void;
|
|
9
9
|
export declare function savePrefrences(state: {
|
|
10
|
-
[key: string]:
|
|
10
|
+
[key: string]: boolean | number | string;
|
|
11
11
|
}): void;
|
|
12
12
|
export declare function getCashedPrefrences(): any;
|
|
13
13
|
export declare function getCachedState(): TCachedState;
|
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.38-20240628",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"dev": "vite",
|
|
14
14
|
"prepack": "npm run build",
|
|
15
15
|
"build": "tsc && vite build",
|
|
16
|
+
"format": "prettier --write src",
|
|
16
17
|
"postbuild": "yalc push --changed",
|
|
17
18
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
18
19
|
"preview": "vite preview"
|
|
@@ -27,8 +28,8 @@
|
|
|
27
28
|
"react-redux": "^7.2.6"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
30
|
-
"@ws-ui/icons": "^0.0.
|
|
31
|
-
"@ws-ui/shared": "^0.1.
|
|
31
|
+
"@ws-ui/icons": "^0.0.21",
|
|
32
|
+
"@ws-ui/shared": "^0.1.30",
|
|
32
33
|
"lodash": "^4.17.21",
|
|
33
34
|
"minimatch": "^5.1.0",
|
|
34
35
|
"react": "^17.0.2",
|