@ws-ui/store 1.7.1 → 1.7.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 +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1085 -1073
- package/dist/index.es.js.map +1 -1
- package/dist/modules/roles/reducer.d.ts +3 -1
- package/dist/modules/roles/types.d.ts +2 -0
- package/dist/selectors/roles.d.ts +30 -0
- package/package.json +3 -3
|
@@ -9,6 +9,7 @@ declare const stateSlice: import('@reduxjs/toolkit').Slice<IRolesState, {
|
|
|
9
9
|
}>) => void;
|
|
10
10
|
toggleTab: (state: import('immer/dist/internal').WritableDraft<IRolesState>, action: PayloadAction<"privileges" | "roles">) => void;
|
|
11
11
|
toggleForceLogin: (state: import('immer/dist/internal').WritableDraft<IRolesState>, action: PayloadAction<boolean>) => void;
|
|
12
|
+
toggleRestrictedByDefault: (state: import('immer/dist/internal').WritableDraft<IRolesState>, action: PayloadAction<boolean>) => void;
|
|
12
13
|
setRolesContent(state: import('immer/dist/internal').WritableDraft<IRolesState>, action: PayloadAction<{
|
|
13
14
|
content: TRawData;
|
|
14
15
|
date?: string;
|
|
@@ -28,6 +29,7 @@ declare const stateSlice: import('@reduxjs/toolkit').Slice<IRolesState, {
|
|
|
28
29
|
privileges: TById;
|
|
29
30
|
roles: TRolesDict;
|
|
30
31
|
forceLogin?: boolean;
|
|
32
|
+
restrictedByDefault?: boolean;
|
|
31
33
|
selectedTab: "privileges" | "roles";
|
|
32
34
|
};
|
|
33
35
|
}, "roles">;
|
|
@@ -35,7 +37,7 @@ export declare const updatePrivileges: import('@reduxjs/toolkit').ActionCreatorW
|
|
|
35
37
|
content: TRawData;
|
|
36
38
|
date?: string;
|
|
37
39
|
flags?: IRolesState["flags"];
|
|
38
|
-
}, "roles/setRolesContent">, toggleTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<"roles" | "privileges", "roles/toggleTab">, toggleForceLogin: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "roles/toggleForceLogin">, updateRolesAndPrivileges: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
40
|
+
}, "roles/setRolesContent">, toggleTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<"roles" | "privileges", "roles/toggleTab">, toggleForceLogin: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "roles/toggleForceLogin">, toggleRestrictedByDefault: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "roles/toggleRestrictedByDefault">, updateRolesAndPrivileges: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
39
41
|
roles: TRolesDict;
|
|
40
42
|
privileges: TById;
|
|
41
43
|
}, "roles/updateRolesAndPrivileges">;
|
|
@@ -6,6 +6,7 @@ export type TRawData = Partial<{
|
|
|
6
6
|
allowed: IPermission[];
|
|
7
7
|
}>;
|
|
8
8
|
forceLogin: boolean;
|
|
9
|
+
restrictedByDefault: boolean;
|
|
9
10
|
}>;
|
|
10
11
|
export type TPermissionOption = Pick<IPermission, 'applyTo' | 'type' | 'subType'>;
|
|
11
12
|
export type TAction = 'read' | 'create' | 'update' | 'drop' | 'execute' | 'promote';
|
|
@@ -64,6 +65,7 @@ export interface ISanitized {
|
|
|
64
65
|
privileges: TById;
|
|
65
66
|
roles: TRolesDict;
|
|
66
67
|
forceLogin?: boolean;
|
|
68
|
+
restrictedByDefault?: boolean;
|
|
67
69
|
}
|
|
68
70
|
export interface IResourcePermission {
|
|
69
71
|
name: TAction;
|
|
@@ -28,6 +28,7 @@ export declare const selectRolesAndPrivileges: ((state: import('redux').EmptyObj
|
|
|
28
28
|
allowed: import('../modules').IPermission[];
|
|
29
29
|
}>;
|
|
30
30
|
forceLogin: boolean;
|
|
31
|
+
restrictedByDefault: boolean;
|
|
31
32
|
}>) & import('reselect').OutputSelectorFields<(args_0: import('../modules').IRolesState) => Partial<{
|
|
32
33
|
privileges: import('../modules').IPrivilege[];
|
|
33
34
|
roles: import('../modules').IRole[];
|
|
@@ -35,6 +36,7 @@ export declare const selectRolesAndPrivileges: ((state: import('redux').EmptyObj
|
|
|
35
36
|
allowed: import('../modules').IPermission[];
|
|
36
37
|
}>;
|
|
37
38
|
forceLogin: boolean;
|
|
39
|
+
restrictedByDefault: boolean;
|
|
38
40
|
}>, {
|
|
39
41
|
clearCache: () => void;
|
|
40
42
|
}> & {
|
|
@@ -226,6 +228,34 @@ export declare const selectForceLogin: ((state: import('redux').EmptyObject & {
|
|
|
226
228
|
}> & {
|
|
227
229
|
clearCache: () => void;
|
|
228
230
|
};
|
|
231
|
+
export declare const selectRestrictedByDefault: ((state: import('redux').EmptyObject & {
|
|
232
|
+
root: import('../modules').IRootState;
|
|
233
|
+
explorer: import('../modules').ITreeItem[];
|
|
234
|
+
debugger: import('../modules').IDebuggerState;
|
|
235
|
+
settings: import('../modules').ISettingsState;
|
|
236
|
+
catalog: {
|
|
237
|
+
state: "loading";
|
|
238
|
+
} | {
|
|
239
|
+
state: "loaded";
|
|
240
|
+
model: datasources.IEnhancedCatalog;
|
|
241
|
+
} | {
|
|
242
|
+
state: "error";
|
|
243
|
+
error: string;
|
|
244
|
+
};
|
|
245
|
+
roles: import('../modules').IRolesState;
|
|
246
|
+
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
247
|
+
sharedAppEvents: import('../modules').ISharedAppEventsState;
|
|
248
|
+
savedConditions: import('../modules').ISavedConditionsState;
|
|
249
|
+
webforms: import('../modules').IWebformEditorState;
|
|
250
|
+
modals: import('../modules').IModalsState;
|
|
251
|
+
sharedCSS: import('../modules').ISharedCSSState;
|
|
252
|
+
model: import('../modules').IModelState;
|
|
253
|
+
tasks: import('@ws-ui/shared').ISingleTask[];
|
|
254
|
+
}) => boolean | undefined) & import('reselect').OutputSelectorFields<(args_0: import('../modules').IRolesState) => boolean | undefined, {
|
|
255
|
+
clearCache: () => void;
|
|
256
|
+
}> & {
|
|
257
|
+
clearCache: () => void;
|
|
258
|
+
};
|
|
229
259
|
export declare const selectRolesDate: ((state: import('redux').EmptyObject & {
|
|
230
260
|
root: import('../modules').IRootState;
|
|
231
261
|
explorer: import('../modules').ITreeItem[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
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.7.
|
|
25
|
-
"@ws-ui/shared": "1.7.
|
|
24
|
+
"@ws-ui/icons": "1.7.2",
|
|
25
|
+
"@ws-ui/shared": "1.7.2",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"minimatch": "^10.0.1",
|
|
28
28
|
"react": "^17.0.2",
|