@webiny/app-security-access-management 5.21.0 → 5.22.0-beta.3
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/package.json +20 -26
- package/plugins/permissionRenderer/index.js +1 -1
- package/ui/views/ApiKeys/ApiKeyForm.js +1 -1
- package/ui/views/ApiKeys/ApiKeysDataList.js +2 -2
- package/ui/views/Groups/GroupsDataList.js +3 -3
- package/ui/views/Groups/GroupsForm.js +1 -1
- package/ui/views/Groups/graphql.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-security-access-management",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.22.0-beta.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,34 +14,33 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@apollo/react-hooks": "3.1.5",
|
|
17
|
-
"@emotion/styled": "10.0
|
|
18
|
-
"@webiny/app": "5.
|
|
19
|
-
"@webiny/app-admin": "5.
|
|
20
|
-
"@webiny/app-security": "5.
|
|
21
|
-
"@webiny/form": "5.
|
|
22
|
-
"@webiny/plugins": "5.
|
|
23
|
-
"@webiny/react-router": "5.
|
|
24
|
-
"@webiny/ui": "5.
|
|
25
|
-
"@webiny/validation": "5.
|
|
17
|
+
"@emotion/styled": "10.3.0",
|
|
18
|
+
"@webiny/app": "5.22.0-beta.3",
|
|
19
|
+
"@webiny/app-admin": "5.22.0-beta.3",
|
|
20
|
+
"@webiny/app-security": "5.22.0-beta.3",
|
|
21
|
+
"@webiny/form": "5.22.0-beta.3",
|
|
22
|
+
"@webiny/plugins": "5.22.0-beta.3",
|
|
23
|
+
"@webiny/react-router": "5.22.0-beta.3",
|
|
24
|
+
"@webiny/ui": "5.22.0-beta.3",
|
|
25
|
+
"@webiny/validation": "5.22.0-beta.3",
|
|
26
26
|
"emotion": "10.0.27",
|
|
27
27
|
"graphql-tag": "2.12.6",
|
|
28
28
|
"lodash": "4.17.21",
|
|
29
29
|
"react": "16.14.0",
|
|
30
30
|
"react-dom": "16.14.0",
|
|
31
|
-
"react-helmet": "
|
|
31
|
+
"react-helmet": "6.1.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@babel/cli": "^7.
|
|
35
|
-
"@babel/core": "^7.
|
|
36
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
37
|
-
"@babel/preset-env": "^7.
|
|
38
|
-
"@babel/preset-react": "^7.
|
|
39
|
-
"@babel/preset-typescript": "^7.
|
|
40
|
-
"@webiny/cli": "^5.
|
|
41
|
-
"@webiny/project-utils": "^5.
|
|
34
|
+
"@babel/cli": "^7.16.0",
|
|
35
|
+
"@babel/core": "^7.16.0",
|
|
36
|
+
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
37
|
+
"@babel/preset-env": "^7.16.4",
|
|
38
|
+
"@babel/preset-react": "^7.16.0",
|
|
39
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
40
|
+
"@webiny/cli": "^5.22.0-beta.3",
|
|
41
|
+
"@webiny/project-utils": "^5.22.0-beta.3",
|
|
42
42
|
"babel-plugin-emotion": "^9.2.8",
|
|
43
43
|
"babel-plugin-lodash": "^3.3.4",
|
|
44
|
-
"babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
|
|
45
44
|
"rimraf": "^3.0.2",
|
|
46
45
|
"ttypescript": "^1.5.12",
|
|
47
46
|
"typescript": "^4.1.3"
|
|
@@ -54,11 +53,6 @@
|
|
|
54
53
|
"build": "yarn webiny run build",
|
|
55
54
|
"watch": "yarn webiny run watch"
|
|
56
55
|
},
|
|
57
|
-
"svgo": {
|
|
58
|
-
"plugins": {
|
|
59
|
-
"removeViewBox": false
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
56
|
"adio": {
|
|
63
57
|
"ignore": {
|
|
64
58
|
"peerDependencies": [
|
|
@@ -66,5 +60,5 @@
|
|
|
66
60
|
]
|
|
67
61
|
}
|
|
68
62
|
},
|
|
69
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "7a6b4ce3b9f31fe0702fffd28b7959c637e9a20b"
|
|
70
64
|
}
|
|
@@ -5,7 +5,7 @@ var _templateObject, _templateObject2;
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { i18n } from "@webiny/app/i18n";
|
|
7
7
|
import { AccordionItem } from "@webiny/ui/Accordion";
|
|
8
|
-
import { ReactComponent as SecurityIcon } from "@
|
|
8
|
+
import { ReactComponent as SecurityIcon } from "@webiny/app-admin/assets/icons/baseline-security-24px.svg";
|
|
9
9
|
import { SecurityPermissions } from "./SecurityPermissions";
|
|
10
10
|
import { PermissionRendererPlugin } from "@webiny/app-admin/plugins/PermissionRendererPlugin";
|
|
11
11
|
var t = i18n.ns("app-security-admin-users/plugins/permissionRenderer");
|
|
@@ -26,7 +26,7 @@ import * as GQL from "./graphql";
|
|
|
26
26
|
import { SnackbarAction } from "@webiny/ui/Snackbar";
|
|
27
27
|
import isEmpty from "lodash/isEmpty";
|
|
28
28
|
import EmptyView from "@webiny/app-admin/components/EmptyView";
|
|
29
|
-
import { ReactComponent as AddIcon } from "@
|
|
29
|
+
import { ReactComponent as AddIcon } from "@webiny/app-admin/assets/icons/add-18px.svg";
|
|
30
30
|
import styled from "@emotion/styled";
|
|
31
31
|
var t = i18n.ns("app-security-admin-users/admin/api-keys/form");
|
|
32
32
|
var ButtonWrapper = /*#__PURE__*/styled("div", {
|
|
@@ -19,8 +19,8 @@ import { useSnackbar } from "@webiny/app-admin/hooks/useSnackbar";
|
|
|
19
19
|
import { useQuery, useMutation } from "@apollo/react-hooks";
|
|
20
20
|
import { useConfirmationDialog } from "@webiny/app-admin/hooks/useConfirmationDialog";
|
|
21
21
|
import * as GQL from "./graphql";
|
|
22
|
-
import { ReactComponent as AddIcon } from "@
|
|
23
|
-
import { ReactComponent as FilterIcon } from "@
|
|
22
|
+
import { ReactComponent as AddIcon } from "@webiny/app-admin/assets/icons/add-18px.svg";
|
|
23
|
+
import { ReactComponent as FilterIcon } from "@webiny/app-admin/assets/icons/filter-24px.svg";
|
|
24
24
|
import { serializeSorters, deserializeSorters } from "../utils";
|
|
25
25
|
var t = i18n.ns("app-security/admin/groups/data-list");
|
|
26
26
|
var SORTERS = [{
|
|
@@ -20,8 +20,8 @@ import { ButtonIcon, ButtonSecondary } from "@webiny/ui/Button";
|
|
|
20
20
|
import { Cell, Grid } from "@webiny/ui/Grid";
|
|
21
21
|
import { Select } from "@webiny/ui/Select";
|
|
22
22
|
import SearchUI from "@webiny/app-admin/components/SearchUI";
|
|
23
|
-
import { ReactComponent as AddIcon } from "@
|
|
24
|
-
import { ReactComponent as FilterIcon } from "@
|
|
23
|
+
import { ReactComponent as AddIcon } from "@webiny/app-admin/assets/icons/add-18px.svg";
|
|
24
|
+
import { ReactComponent as FilterIcon } from "@webiny/app-admin/assets/icons/filter-24px.svg";
|
|
25
25
|
import { deserializeSorters, serializeSorters } from "../utils";
|
|
26
26
|
var t = i18n.ns("app-security/admin/groups/data-list");
|
|
27
27
|
var SORTERS = [{
|
|
@@ -197,7 +197,7 @@ var GroupsDataList = function GroupsDataList() {
|
|
|
197
197
|
onClick: function onClick() {
|
|
198
198
|
return history.push("/access-management/groups?id=".concat(item.id));
|
|
199
199
|
}
|
|
200
|
-
}, item.name, /*#__PURE__*/React.createElement(ListItemTextSecondary, null, item.description)), /*#__PURE__*/React.createElement(ListItemMeta, null, /*#__PURE__*/React.createElement(ListActions, null, item.
|
|
200
|
+
}, item.name, /*#__PURE__*/React.createElement(ListItemTextSecondary, null, item.description)), /*#__PURE__*/React.createElement(ListItemMeta, null, /*#__PURE__*/React.createElement(ListActions, null, !item.system ? /*#__PURE__*/React.createElement(DeleteIcon, {
|
|
201
201
|
onClick: function onClick() {
|
|
202
202
|
return deleteItem(item);
|
|
203
203
|
},
|
|
@@ -27,7 +27,7 @@ import { CREATE_GROUP, LIST_GROUPS, READ_GROUP, UPDATE_GROUP } from "./graphql";
|
|
|
27
27
|
import { SnackbarAction } from "@webiny/ui/Snackbar";
|
|
28
28
|
import isEmpty from "lodash/isEmpty";
|
|
29
29
|
import EmptyView from "@webiny/app-admin/components/EmptyView";
|
|
30
|
-
import { ReactComponent as AddIcon } from "@
|
|
30
|
+
import { ReactComponent as AddIcon } from "@webiny/app-admin/assets/icons/add-18px.svg";
|
|
31
31
|
var t = i18n.ns("app-security/admin/groups/form");
|
|
32
32
|
var ButtonWrapper = /*#__PURE__*/styled("div", {
|
|
33
33
|
target: "euuiyav0",
|
|
@@ -3,8 +3,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
4
|
|
|
5
5
|
import gql from "graphql-tag";
|
|
6
|
-
var fields = "\n id\n name\n slug\n description\n permissions\n createdOn\n";
|
|
7
|
-
export var LIST_GROUPS = gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n query listGroups {\n security {\n groups: listGroups {\n data {\n
|
|
6
|
+
var fields = "\n id\n name\n slug\n description\n permissions\n system\n createdOn\n";
|
|
7
|
+
export var LIST_GROUPS = gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n query listGroups {\n security {\n groups: listGroups {\n data {\n ", "\n }\n }\n }\n }\n"])), fields);
|
|
8
8
|
export var READ_GROUP = gql(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n query getGroup($id: ID!) {\n security {\n group: getGroup(where: { id: $id }){\n data {\n ", "\n }\n error {\n code\n message\n }\n }\n }\n }\n"])), fields);
|
|
9
9
|
export var CREATE_GROUP = gql(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n mutation createGroup($data: SecurityGroupCreateInput!){\n security {\n group: createGroup(data: $data) {\n data {\n ", "\n }\n error {\n code\n message\n data\n }\n }\n }\n }\n"])), fields);
|
|
10
10
|
export var UPDATE_GROUP = gql(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n mutation updateGroup($id: ID!, $data: SecurityGroupUpdateInput!){\n security {\n group: updateGroup(id: $id, data: $data) {\n data {\n ", "\n }\n error {\n code\n message\n data\n }\n }\n }\n }\n"])), fields);
|