@ws-ui/store 0.3.1 → 0.3.4
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/hooks/store.d.ts +9 -60
- package/dist/index.cjs.js +47 -60
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6718 -6727
- package/dist/index.es.js.map +1 -1
- package/dist/modules/catalog/index.d.ts +1 -1
- package/dist/modules/catalog/reducer.d.ts +4 -5
- package/dist/modules/catalog/thunks.d.ts +8 -2
- package/dist/modules/debugger/index.d.ts +1 -1
- package/dist/modules/debugger/reducer.d.ts +72 -71
- package/dist/modules/debugger/thunks.d.ts +18 -3
- package/dist/modules/debugger/types.d.ts +1 -0
- package/dist/modules/debugger/utils.d.ts +1 -0
- package/dist/modules/explorer/index.d.ts +1 -1
- package/dist/modules/explorer/reducer.d.ts +17 -16
- package/dist/modules/explorer/thunks.d.ts +211 -60
- package/dist/modules/explorer/types.d.ts +1 -0
- package/dist/modules/explorer/utils.d.ts +1 -0
- package/dist/modules/index.d.ts +15 -30
- package/dist/modules/modals/index.d.ts +1 -1
- package/dist/modules/modals/reducer.d.ts +10 -9
- package/dist/modules/modals/thunks.d.ts +11 -1
- package/dist/modules/modals/types.d.ts +1 -0
- package/dist/modules/model/helpers.d.ts +3 -3
- package/dist/modules/model/index.d.ts +1 -1
- package/dist/modules/model/reducer.d.ts +7 -10
- package/dist/modules/model/selectors.d.ts +6 -2
- package/dist/modules/model/subjects.d.ts +2 -1
- package/dist/modules/model/thunks.d.ts +56 -24
- package/dist/modules/model/types.d.ts +1 -1
- package/dist/modules/model/utils.d.ts +4 -3
- package/dist/modules/roles/adapter.d.ts +7 -1
- package/dist/modules/roles/index.d.ts +1 -16
- package/dist/modules/roles/reducer.d.ts +17 -39
- package/dist/modules/roles/thunks.d.ts +24 -5
- package/dist/modules/roles/types.d.ts +10 -5
- package/dist/modules/root/index.d.ts +1 -1
- package/dist/modules/root/reducer.d.ts +92 -100
- package/dist/modules/root/thunks.d.ts +162 -44
- package/dist/modules/root/types.d.ts +1 -2
- package/dist/modules/settings/index.d.ts +1 -1
- package/dist/modules/settings/reducer.d.ts +11 -13
- package/dist/modules/settings/thunks.d.ts +18 -2
- package/dist/modules/settings/types.d.ts +1 -0
- package/dist/modules/settings/utils.d.ts +2 -1
- package/dist/modules/shared-conditions/index.d.ts +1 -1
- package/dist/modules/shared-conditions/reducer.d.ts +18 -17
- package/dist/modules/shared-conditions/thunks.d.ts +8 -1
- package/dist/modules/shared-conditions/utils.d.ts +1 -0
- package/dist/modules/shared-css/index.d.ts +1 -1
- package/dist/modules/shared-css/reducer.d.ts +9 -8
- package/dist/modules/shared-css/thunks.d.ts +8 -1
- package/dist/modules/shared-datasources/index.d.ts +1 -1
- package/dist/modules/shared-datasources/reducer.d.ts +5 -5
- package/dist/modules/shared-datasources/thunks.d.ts +50 -9
- package/dist/modules/tabs/index.d.ts +1 -1
- package/dist/modules/tabs/reducer.d.ts +1 -1
- package/dist/modules/tabs/selectors.d.ts +24 -40
- package/dist/modules/webforms/datasources.adapter.d.ts +12 -29
- package/dist/modules/webforms/index.d.ts +1 -1
- package/dist/modules/webforms/reducer.d.ts +20 -22
- package/dist/modules/webforms/thunks.d.ts +99 -17
- package/dist/modules/webforms/types.d.ts +1 -0
- package/dist/provider.d.ts +1 -0
- package/dist/selectors/catalog.d.ts +52 -174
- package/dist/selectors/common.d.ts +48 -109
- package/dist/selectors/components.d.ts +23 -39
- package/dist/selectors/datasources.d.ts +74 -165
- package/dist/selectors/debugger.d.ts +163 -493
- package/dist/selectors/explorer.d.ts +485 -875
- package/dist/selectors/modals.d.ts +13 -29
- package/dist/selectors/roles.d.ts +126 -367
- package/dist/selectors/settings.d.ts +156 -337
- package/dist/selectors/states.d.ts +63 -153
- package/dist/selectors/styles.d.ts +78 -154
- package/dist/selectors/tabs.d.ts +64 -110
- package/dist/selectors/webforms.d.ts +177 -373
- package/dist/store.d.ts +44 -1
- package/dist/utils.d.ts +1 -0
- package/package.json +3 -3
package/dist/store.d.ts
CHANGED
|
@@ -1,10 +1,53 @@
|
|
|
1
1
|
import { AnyAction, EnhancedStore } from '@reduxjs/toolkit';
|
|
2
2
|
import { AppState } from './modules';
|
|
3
3
|
import { ThunkMiddlewareFor } from '@reduxjs/toolkit/dist/getDefaultMiddleware';
|
|
4
|
+
|
|
4
5
|
export type Store = EnhancedStore<AppState, AnyAction, [
|
|
5
6
|
ThunkMiddlewareFor<AppState>
|
|
6
7
|
]>;
|
|
7
8
|
declare let store: Store;
|
|
8
|
-
export declare const getStore: () =>
|
|
9
|
+
export declare const getStore: () => import('@reduxjs/toolkit/dist/configureStore').ToolkitStore<import('redux').EmptyObject & {
|
|
10
|
+
root: import('./modules').IRootState;
|
|
11
|
+
explorer: import('./modules').ITreeItem[];
|
|
12
|
+
debugger: import('./modules').IDebuggerState;
|
|
13
|
+
settings: import('./modules').ISettingsState;
|
|
14
|
+
catalog: {
|
|
15
|
+
state: "loading";
|
|
16
|
+
} | {
|
|
17
|
+
state: "loaded";
|
|
18
|
+
model: datasources.IEnhancedCatalog;
|
|
19
|
+
} | {
|
|
20
|
+
state: "error";
|
|
21
|
+
error: string;
|
|
22
|
+
};
|
|
23
|
+
roles: import('./modules').IRolesState;
|
|
24
|
+
sharedDatasources: import('./modules').ISharedDatasourcesState;
|
|
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
|
+
}, AnyAction, [import('redux-thunk').ThunkMiddleware<import('redux').CombinedState<{
|
|
31
|
+
root: import('./modules').IRootState;
|
|
32
|
+
explorer: import('./modules').ITreeItem[];
|
|
33
|
+
debugger: import('./modules').IDebuggerState;
|
|
34
|
+
settings: import('./modules').ISettingsState;
|
|
35
|
+
catalog: {
|
|
36
|
+
state: "loading";
|
|
37
|
+
} | {
|
|
38
|
+
state: "loaded";
|
|
39
|
+
model: datasources.IEnhancedCatalog;
|
|
40
|
+
} | {
|
|
41
|
+
state: "error";
|
|
42
|
+
error: string;
|
|
43
|
+
};
|
|
44
|
+
roles: import('./modules').IRolesState;
|
|
45
|
+
sharedDatasources: import('./modules').ISharedDatasourcesState;
|
|
46
|
+
savedConditions: import('./modules').ISavedConditionsState;
|
|
47
|
+
webforms: import('./modules').IWebformEditorState;
|
|
48
|
+
modals: import('./modules').IModalsState;
|
|
49
|
+
sharedCSS: import('./modules').ISharedCSSState;
|
|
50
|
+
model: import('./modules').IModelState;
|
|
51
|
+
}>, AnyAction>]>;
|
|
9
52
|
export type AppDispatch = typeof store.dispatch;
|
|
10
53
|
export {};
|
package/dist/utils.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ITab, WebformState, WebformStateCondition } from '@ws-ui/shared';
|
|
|
2
2
|
import { AppState } from './modules';
|
|
3
3
|
import { IRootState } from './modules/root/types';
|
|
4
4
|
import { ModelNode, ServerModel } from './modules/model/types';
|
|
5
|
+
|
|
5
6
|
export declare const CATALOG_REFRESH_DELAY = 2000;
|
|
6
7
|
export declare const DEFAULT_CACHE: TCachedState;
|
|
7
8
|
export type TCachedState = Pick<IRootState, 'tabs' | 'activeTab' | 'recent'> & Pick<AppState, 'roles' | 'debugger' | 'webforms' | 'sharedCSS'>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@reduxjs/toolkit": "^1.7.1",
|
|
29
|
+
"@ws-ui/shared": "^0.3.3",
|
|
29
30
|
"react-redux": "^7.2.6"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
|
-
"@ws-ui/icons": "^0.2.
|
|
33
|
-
"@ws-ui/shared": "^0.2.33",
|
|
33
|
+
"@ws-ui/icons": "^0.2.2",
|
|
34
34
|
"lodash": "^4.17.21",
|
|
35
35
|
"minimatch": "^5.1.0",
|
|
36
36
|
"react": "^17.0.2",
|