@webiny/app-security-access-management 0.0.0-mt-3 → 0.0.0-unstable.06b2ede40f

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.
Files changed (119) hide show
  1. package/README.md +6 -4
  2. package/components/GroupAutocomplete/graphql.d.ts +1 -1
  3. package/components/GroupAutocomplete/graphql.js +17 -5
  4. package/components/GroupAutocomplete/graphql.js.map +1 -0
  5. package/components/GroupAutocomplete/index.d.ts +5 -2
  6. package/components/GroupAutocomplete/index.js +10 -8
  7. package/components/GroupAutocomplete/index.js.map +1 -0
  8. package/components/GroupsMultiAutocomplete/graphql.d.ts +1 -0
  9. package/components/GroupsMultiAutocomplete/graphql.js +23 -0
  10. package/components/GroupsMultiAutocomplete/graphql.js.map +1 -0
  11. package/components/GroupsMultiAutocomplete/index.d.ts +5 -0
  12. package/components/GroupsMultiAutocomplete/index.js +19 -0
  13. package/components/GroupsMultiAutocomplete/index.js.map +1 -0
  14. package/components/NotAuthorizedError/NotAuthorizedError.d.ts +2 -2
  15. package/components/NotAuthorizedError/NotAuthorizedError.js +17 -44
  16. package/components/NotAuthorizedError/NotAuthorizedError.js.map +1 -0
  17. package/components/NotAuthorizedError/index.js +3 -1
  18. package/components/NotAuthorizedError/index.js.map +1 -0
  19. package/components/TeamAutocomplete/graphql.d.ts +1 -0
  20. package/components/TeamAutocomplete/graphql.js +18 -0
  21. package/components/TeamAutocomplete/graphql.js.map +1 -0
  22. package/components/TeamAutocomplete/index.d.ts +5 -0
  23. package/components/TeamAutocomplete/index.js +18 -0
  24. package/components/TeamAutocomplete/index.js.map +1 -0
  25. package/components/TeamsMultiAutocomplete/graphql.d.ts +1 -0
  26. package/components/TeamsMultiAutocomplete/graphql.js +23 -0
  27. package/components/TeamsMultiAutocomplete/graphql.js.map +1 -0
  28. package/components/TeamsMultiAutocomplete/index.d.ts +5 -0
  29. package/components/TeamsMultiAutocomplete/index.js +19 -0
  30. package/components/TeamsMultiAutocomplete/index.js.map +1 -0
  31. package/index.d.ts +2 -2
  32. package/index.js +83 -4
  33. package/index.js.map +1 -0
  34. package/package.json +24 -37
  35. package/plugins/constants.d.ts +1 -0
  36. package/plugins/constants.js +6 -4
  37. package/plugins/constants.js.map +1 -0
  38. package/plugins/index.d.ts +1 -1
  39. package/plugins/index.js +3 -5
  40. package/plugins/index.js.map +1 -0
  41. package/plugins/installation.d.ts +1 -1
  42. package/plugins/installation.js +68 -67
  43. package/plugins/installation.js.map +1 -0
  44. package/plugins/permissionRenderer/SecurityPermissions.d.ts +8 -5
  45. package/plugins/permissionRenderer/SecurityPermissions.js +93 -94
  46. package/plugins/permissionRenderer/SecurityPermissions.js.map +1 -0
  47. package/plugins/permissionRenderer/index.js +14 -13
  48. package/plugins/permissionRenderer/index.js.map +1 -0
  49. package/plugins/routes.d.ts +1 -1
  50. package/plugins/routes.js +14 -16
  51. package/plugins/routes.js.map +1 -0
  52. package/plugins/secureRouteError.d.ts +2 -2
  53. package/plugins/secureRouteError.js +5 -3
  54. package/plugins/secureRouteError.js.map +1 -0
  55. package/types.d.ts +28 -0
  56. package/types.js +3 -0
  57. package/types.js.map +1 -0
  58. package/ui/elements/GroupAutocompleteElement.d.ts +2 -1
  59. package/ui/elements/GroupAutocompleteElement.js +27 -30
  60. package/ui/elements/GroupAutocompleteElement.js.map +1 -0
  61. package/ui/elements/GroupsMultiAutocompleteElement.d.ts +6 -0
  62. package/ui/elements/GroupsMultiAutocompleteElement.js +32 -0
  63. package/ui/elements/GroupsMultiAutocompleteElement.js.map +1 -0
  64. package/ui/elements/TeamAutocompleteElement.d.ts +6 -0
  65. package/ui/elements/TeamAutocompleteElement.js +32 -0
  66. package/ui/elements/TeamAutocompleteElement.js.map +1 -0
  67. package/ui/views/ApiKeys/ApiKeyForm.d.ts +5 -3
  68. package/ui/views/ApiKeys/ApiKeyForm.js +125 -183
  69. package/ui/views/ApiKeys/ApiKeyForm.js.map +1 -0
  70. package/ui/views/ApiKeys/ApiKeys.d.ts +8 -3
  71. package/ui/views/ApiKeys/ApiKeys.js +7 -7
  72. package/ui/views/ApiKeys/ApiKeys.js.map +1 -0
  73. package/ui/views/ApiKeys/ApiKeysDataList.d.ts +5 -3
  74. package/ui/views/ApiKeys/ApiKeysDataList.js +105 -169
  75. package/ui/views/ApiKeys/ApiKeysDataList.js.map +1 -0
  76. package/ui/views/ApiKeys/graphql.d.ts +13 -5
  77. package/ui/views/ApiKeys/graphql.js +81 -10
  78. package/ui/views/ApiKeys/graphql.js.map +1 -0
  79. package/ui/views/ApiKeys/index.d.ts +1 -1
  80. package/ui/views/ApiKeys/index.js +3 -1
  81. package/ui/views/ApiKeys/index.js.map +1 -0
  82. package/ui/views/ApiKeys/utils.d.ts +2 -1
  83. package/ui/views/ApiKeys/utils.js +6 -5
  84. package/ui/views/ApiKeys/utils.js.map +1 -0
  85. package/ui/views/Groups/Groups.d.ts +8 -3
  86. package/ui/views/Groups/Groups.js +8 -8
  87. package/ui/views/Groups/Groups.js.map +1 -0
  88. package/ui/views/Groups/GroupsDataList.d.ts +5 -3
  89. package/ui/views/Groups/GroupsDataList.js +110 -176
  90. package/ui/views/Groups/GroupsDataList.js.map +1 -0
  91. package/ui/views/Groups/GroupsForm.d.ts +5 -3
  92. package/ui/views/Groups/GroupsForm.js +150 -170
  93. package/ui/views/Groups/GroupsForm.js.map +1 -0
  94. package/ui/views/Groups/graphql.d.ts +13 -5
  95. package/ui/views/Groups/graphql.js +84 -10
  96. package/ui/views/Groups/graphql.js.map +1 -0
  97. package/ui/views/Groups/index.d.ts +1 -1
  98. package/ui/views/Groups/index.js +3 -1
  99. package/ui/views/Groups/index.js.map +1 -0
  100. package/ui/views/Teams/Teams.d.ts +8 -0
  101. package/ui/views/Teams/Teams.js +12 -0
  102. package/ui/views/Teams/Teams.js.map +1 -0
  103. package/ui/views/Teams/TeamsDataList.d.ts +5 -0
  104. package/ui/views/Teams/TeamsDataList.js +151 -0
  105. package/ui/views/Teams/TeamsDataList.js.map +1 -0
  106. package/ui/views/Teams/TeamsForm.d.ts +5 -0
  107. package/ui/views/Teams/TeamsForm.js +173 -0
  108. package/ui/views/Teams/TeamsForm.js.map +1 -0
  109. package/ui/views/Teams/graphql.d.ts +13 -0
  110. package/ui/views/Teams/graphql.js +89 -0
  111. package/ui/views/Teams/graphql.js.map +1 -0
  112. package/ui/views/Teams/index.d.ts +1 -0
  113. package/ui/views/Teams/index.js +3 -0
  114. package/ui/views/Teams/index.js.map +1 -0
  115. package/ui/views/utils.d.ts +3 -2
  116. package/ui/views/utils.js +6 -23
  117. package/ui/views/utils.js.map +1 -0
  118. package/plugins/menus.d.ts +0 -4
  119. package/plugins/menus.js +0 -61
package/README.md CHANGED
@@ -51,7 +51,7 @@ A simple `Authenticator` React component (uses Amazon Cognito and AWS Amplify's
51
51
 
52
52
  ```tsx
53
53
  import React, { useEffect } from "react";
54
- import Auth from "@aws-amplify/auth";
54
+ import { Auth } from "@aws-amplify/auth";
55
55
  import { useSecurity, SecurityIdentity } from "@webiny/app-security";
56
56
 
57
57
  // Apart from the React component, we also configure the Auth class here.
@@ -66,9 +66,11 @@ Auth.configure({
66
66
  responseType: "token"
67
67
  }
68
68
  });
69
-
69
+ interface AuthenticatorProps {
70
+ children: React.ReactNode;
71
+ }
70
72
  // The `Authenticator` component.
71
- const Authenticator: React.FC = props => {
73
+ const Authenticator = (props: AuthenticatorProps) => {
72
74
  const { setIdentity } = useSecurity();
73
75
 
74
76
  useEffect(() => {
@@ -101,7 +103,7 @@ Finally, use the `useSecurity` React hook in any of your components:
101
103
  import React from "react";
102
104
  import { useSecurity } from "@webiny/app-security";
103
105
 
104
- const MyComponent: React.FC = () => {
106
+ const MyComponent = () => {
105
107
  const { identity } = useSecurity();
106
108
 
107
109
  if (identity) {
@@ -1 +1 @@
1
- export declare const LIST_GROUPS: any;
1
+ export declare const LIST_GROUPS: import("graphql").DocumentNode;
@@ -1,6 +1,18 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
-
3
- var _templateObject;
4
-
5
1
  import gql from "graphql-tag";
6
- export var LIST_GROUPS = gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n query listGroups {\n security {\n groups: listGroups {\n data {\n id\n slug\n name\n description\n createdOn\n }\n }\n }\n }\n"])));
2
+ export const LIST_GROUPS = gql`
3
+ query listGroups {
4
+ security {
5
+ groups: listGroups {
6
+ data {
7
+ id
8
+ slug
9
+ name
10
+ description
11
+ createdOn
12
+ }
13
+ }
14
+ }
15
+ }
16
+ `;
17
+
18
+ //# sourceMappingURL=graphql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["gql","LIST_GROUPS"],"sources":["graphql.ts"],"sourcesContent":["import gql from \"graphql-tag\";\n\nexport const LIST_GROUPS = gql`\n query listGroups {\n security {\n groups: listGroups {\n data {\n id\n slug\n name\n description\n createdOn\n }\n }\n }\n }\n`;\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,aAAa;AAE7B,OAAO,MAAMC,WAAW,GAAGD,GAAG;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
@@ -1,2 +1,5 @@
1
- /// <reference types="react" />
2
- export declare const GroupAutocomplete: (props: any) => JSX.Element;
1
+ import React from "react";
2
+ import type { AutoCompleteProps } from "@webiny/ui/AutoComplete";
3
+ type GroupAutocompleteProps = Partial<AutoCompleteProps>;
4
+ export declare const GroupAutocomplete: (props: GroupAutocompleteProps) => React.JSX.Element;
5
+ export {};
@@ -2,15 +2,17 @@ import React from "react";
2
2
  import { AutoComplete } from "@webiny/ui/AutoComplete";
3
3
  import { LIST_GROUPS } from "./graphql";
4
4
  import { useQuery } from "@apollo/react-hooks";
5
- export var GroupAutocomplete = function GroupAutocomplete(props) {
6
- var _useQuery = useQuery(LIST_GROUPS),
7
- data = _useQuery.data,
8
- loading = _useQuery.loading;
9
-
10
- var options = loading && !data ? [] : data.security.groups.data;
5
+ export const GroupAutocomplete = props => {
6
+ const {
7
+ data,
8
+ loading
9
+ } = useQuery(LIST_GROUPS);
10
+ const options = loading || !data ? [] : data.security.groups.data;
11
11
  return /*#__PURE__*/React.createElement(AutoComplete, Object.assign({}, props, {
12
12
  options: options,
13
13
  valueProp: "id",
14
- value: loading ? null : props.value
14
+ value: loading ? undefined : props.value
15
15
  }));
16
- };
16
+ };
17
+
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","AutoComplete","LIST_GROUPS","useQuery","GroupAutocomplete","props","data","loading","options","security","groups","createElement","Object","assign","valueProp","value","undefined"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\nimport type { AutoCompleteProps } from \"@webiny/ui/AutoComplete\";\nimport { AutoComplete } from \"@webiny/ui/AutoComplete\";\nimport { LIST_GROUPS } from \"./graphql\";\nimport { useQuery } from \"@apollo/react-hooks\";\n\ntype GroupAutocompleteProps = Partial<AutoCompleteProps>;\nexport const GroupAutocomplete = (props: GroupAutocompleteProps) => {\n const { data, loading } = useQuery(LIST_GROUPS);\n\n const options = loading || !data ? [] : data.security.groups.data;\n\n return (\n <AutoComplete\n {...props}\n options={options}\n valueProp={\"id\"}\n value={loading ? undefined : props.value}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,WAAW;AACpB,SAASC,QAAQ,QAAQ,qBAAqB;AAG9C,OAAO,MAAMC,iBAAiB,GAAIC,KAA6B,IAAK;EAChE,MAAM;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAGJ,QAAQ,CAACD,WAAW,CAAC;EAE/C,MAAMM,OAAO,GAAGD,OAAO,IAAI,CAACD,IAAI,GAAG,EAAE,GAAGA,IAAI,CAACG,QAAQ,CAACC,MAAM,CAACJ,IAAI;EAEjE,oBACIN,KAAA,CAAAW,aAAA,CAACV,YAAY,EAAAW,MAAA,CAAAC,MAAA,KACLR,KAAK;IACTG,OAAO,EAAEA,OAAQ;IACjBM,SAAS,EAAE,IAAK;IAChBC,KAAK,EAAER,OAAO,GAAGS,SAAS,GAAGX,KAAK,CAACU;EAAM,EAC5C,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export declare const LIST_GROUPS: import("graphql").DocumentNode;
@@ -0,0 +1,23 @@
1
+ import gql from "graphql-tag";
2
+ export const LIST_GROUPS = gql`
3
+ query listGroups {
4
+ security {
5
+ groups: listGroups {
6
+ data {
7
+ id
8
+ slug
9
+ name
10
+ description
11
+ createdOn
12
+ }
13
+ error {
14
+ data
15
+ message
16
+ code
17
+ }
18
+ }
19
+ }
20
+ }
21
+ `;
22
+
23
+ //# sourceMappingURL=graphql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["gql","LIST_GROUPS"],"sources":["graphql.ts"],"sourcesContent":["import gql from \"graphql-tag\";\n\nexport const LIST_GROUPS = gql`\n query listGroups {\n security {\n groups: listGroups {\n data {\n id\n slug\n name\n description\n createdOn\n }\n error {\n data\n message\n code\n }\n }\n }\n }\n`;\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,aAAa;AAE7B,OAAO,MAAMC,WAAW,GAAGD,GAAG;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import type { MultiAutoCompleteProps } from "@webiny/ui/AutoComplete";
3
+ type GroupsMultiAutocompleteProps = Partial<MultiAutoCompleteProps>;
4
+ export declare const GroupsMultiAutocomplete: (props: GroupsMultiAutocompleteProps) => React.JSX.Element;
5
+ export {};
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { MultiAutoComplete } from "@webiny/ui/AutoComplete";
3
+ import { LIST_GROUPS } from "./graphql";
4
+ import { useQuery } from "@apollo/react-hooks";
5
+ export const GroupsMultiAutocomplete = props => {
6
+ const {
7
+ data,
8
+ loading
9
+ } = useQuery(LIST_GROUPS);
10
+ const options = loading || !data ? [] : data.security.groups.data;
11
+ return /*#__PURE__*/React.createElement(MultiAutoComplete, Object.assign({}, props, {
12
+ options: options,
13
+ valueProp: "id",
14
+ unique: true,
15
+ value: loading ? undefined : props.value
16
+ }));
17
+ };
18
+
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","MultiAutoComplete","LIST_GROUPS","useQuery","GroupsMultiAutocomplete","props","data","loading","options","security","groups","createElement","Object","assign","valueProp","unique","value","undefined"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\nimport type { MultiAutoCompleteProps } from \"@webiny/ui/AutoComplete\";\nimport { MultiAutoComplete } from \"@webiny/ui/AutoComplete\";\nimport { LIST_GROUPS } from \"./graphql\";\nimport { useQuery } from \"@apollo/react-hooks\";\n\ntype GroupsMultiAutocompleteProps = Partial<MultiAutoCompleteProps>;\n\nexport const GroupsMultiAutocomplete = (props: GroupsMultiAutocompleteProps) => {\n const { data, loading } = useQuery(LIST_GROUPS);\n\n const options = loading || !data ? [] : data.security.groups.data;\n\n return (\n <MultiAutoComplete\n {...props}\n options={options}\n valueProp={\"id\"}\n unique={true}\n value={loading ? undefined : props.value}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,WAAW;AACpB,SAASC,QAAQ,QAAQ,qBAAqB;AAI9C,OAAO,MAAMC,uBAAuB,GAAIC,KAAmC,IAAK;EAC5E,MAAM;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAGJ,QAAQ,CAACD,WAAW,CAAC;EAE/C,MAAMM,OAAO,GAAGD,OAAO,IAAI,CAACD,IAAI,GAAG,EAAE,GAAGA,IAAI,CAACG,QAAQ,CAACC,MAAM,CAACJ,IAAI;EAEjE,oBACIN,KAAA,CAAAW,aAAA,CAACV,iBAAiB,EAAAW,MAAA,CAAAC,MAAA,KACVR,KAAK;IACTG,OAAO,EAAEA,OAAQ;IACjBM,SAAS,EAAE,IAAK;IAChBC,MAAM,EAAE,IAAK;IACbC,KAAK,EAAET,OAAO,GAAGU,SAAS,GAAGZ,KAAK,CAACW;EAAM,EAC5C,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const NotAuthorizedError: () => JSX.Element;
1
+ import * as React from "react";
2
+ export declare const NotAuthorizedError: () => React.JSX.Element;
@@ -1,50 +1,23 @@
1
1
  import * as React from "react";
2
- import { Link } from "@webiny/react-router";
3
- import { css } from "emotion";
4
- import styled from "@emotion/styled";
5
2
  import Helmet from "react-helmet";
6
3
  import authErrorImg from "./SecureRouteError.svg";
7
- import { Typography } from "@webiny/ui/Typography";
8
- var ContentWrapper = /*#__PURE__*/styled("div", {
9
- target: "e18nns4o0",
10
- label: "ContentWrapper"
11
- })({
12
- display: "block",
13
- paddingTop: "15%",
14
- textAlign: "center",
15
- margin: "auto"
16
- });
17
- var styles = {
18
- authErrorImgStyle: /*#__PURE__*/css({
19
- width: "192px",
20
- paddingBottom: "24px"
21
- }, "label:authErrorImgStyle;"),
22
- bodyStyle: /*#__PURE__*/css({
23
- color: "var(--mdc-theme-text-primary-on-background)",
24
- display: "block"
25
- }, "label:bodyStyle;"),
26
- linkStyle: /*#__PURE__*/css({
27
- textDecoration: "none",
28
- "&:hover": {
29
- textDecoration: "none"
30
- }
31
- }, "label:linkStyle;")
32
- };
33
- export var NotAuthorizedError = function NotAuthorizedError() {
34
- return /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement(Helmet, {
4
+ import { Link, Text } from "@webiny/admin-ui";
5
+ export const NotAuthorizedError = () => {
6
+ return /*#__PURE__*/React.createElement("div", {
7
+ className: "wby-flex-1"
8
+ }, /*#__PURE__*/React.createElement("div", {
9
+ className: "wby-h-full wby-flex wby-flex-col wby-items-center wby-justify-center wby-text-center wby-gap-xs"
10
+ }, /*#__PURE__*/React.createElement(Helmet, {
35
11
  title: "Not authorized"
36
12
  }), /*#__PURE__*/React.createElement("img", {
37
- className: styles.authErrorImgStyle,
13
+ width: 200,
14
+ height: 200,
38
15
  src: authErrorImg,
39
- alt: "Not Authorized"
40
- }), /*#__PURE__*/React.createElement(Typography, {
41
- use: "body1",
42
- className: styles.bodyStyle
43
- }, "You are not authorized to view this route."), /*#__PURE__*/React.createElement(Typography, {
44
- use: "body1",
45
- className: styles.bodyStyle
46
- }, "Please contact your administrator to request access."), /*#__PURE__*/React.createElement(Link, {
47
- to: "/",
48
- className: styles.linkStyle
49
- }, "Take me back."));
50
- };
16
+ alt: "Not Authorized",
17
+ className: "wby-mb-xl"
18
+ }), /*#__PURE__*/React.createElement(Text, null, "You are not authorized to view this route."), /*#__PURE__*/React.createElement(Text, null, "Please contact your administrator to request access."), /*#__PURE__*/React.createElement(Link, {
19
+ to: "/"
20
+ }, "Take me back.")));
21
+ };
22
+
23
+ //# sourceMappingURL=NotAuthorizedError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Helmet","authErrorImg","Link","Text","NotAuthorizedError","createElement","className","title","width","height","src","alt","to"],"sources":["NotAuthorizedError.tsx"],"sourcesContent":["import * as React from \"react\";\nimport Helmet from \"react-helmet\";\nimport authErrorImg from \"./SecureRouteError.svg\";\nimport { Link, Text } from \"@webiny/admin-ui\";\n\nexport const NotAuthorizedError = () => {\n return (\n <div className={\"wby-flex-1\"}>\n <div\n className={\n \"wby-h-full wby-flex wby-flex-col wby-items-center wby-justify-center wby-text-center wby-gap-xs\"\n }\n >\n <Helmet title={\"Not authorized\"} />\n\n <img\n width={200}\n height={200}\n src={authErrorImg}\n alt=\"Not Authorized\"\n className={\"wby-mb-xl\"}\n />\n <Text>You are not authorized to view this route.</Text>\n <Text>Please contact your administrator to request access.</Text>\n <Link to=\"/\">Take me back.</Link>\n </div>\n </div>\n );\n};\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,MAAM,cAAc;AACjC,OAAOC,YAAY;AACnB,SAASC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AAE7C,OAAO,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EACpC,oBACIL,KAAA,CAAAM,aAAA;IAAKC,SAAS,EAAE;EAAa,gBACzBP,KAAA,CAAAM,aAAA;IACIC,SAAS,EACL;EACH,gBAEDP,KAAA,CAAAM,aAAA,CAACL,MAAM;IAACO,KAAK,EAAE;EAAiB,CAAE,CAAC,eAEnCR,KAAA,CAAAM,aAAA;IACIG,KAAK,EAAE,GAAI;IACXC,MAAM,EAAE,GAAI;IACZC,GAAG,EAAET,YAAa;IAClBU,GAAG,EAAC,gBAAgB;IACpBL,SAAS,EAAE;EAAY,CAC1B,CAAC,eACFP,KAAA,CAAAM,aAAA,CAACF,IAAI,QAAC,4CAAgD,CAAC,eACvDJ,KAAA,CAAAM,aAAA,CAACF,IAAI,QAAC,sDAA0D,CAAC,eACjEJ,KAAA,CAAAM,aAAA,CAACH,IAAI;IAACU,EAAE,EAAC;EAAG,GAAC,eAAmB,CAC/B,CACJ,CAAC;AAEd,CAAC","ignoreList":[]}
@@ -1 +1,3 @@
1
- export { NotAuthorizedError } from "./NotAuthorizedError";
1
+ export { NotAuthorizedError } from "./NotAuthorizedError";
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NotAuthorizedError"],"sources":["index.ts"],"sourcesContent":["export { NotAuthorizedError } from \"./NotAuthorizedError\";\n"],"mappings":"AAAA,SAASA,kBAAkB","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export declare const LIST_TEAMS: import("graphql").DocumentNode;
@@ -0,0 +1,18 @@
1
+ import gql from "graphql-tag";
2
+ export const LIST_TEAMS = gql`
3
+ query listTeams {
4
+ security {
5
+ teams: listTeams {
6
+ data {
7
+ id
8
+ slug
9
+ name
10
+ description
11
+ createdOn
12
+ }
13
+ }
14
+ }
15
+ }
16
+ `;
17
+
18
+ //# sourceMappingURL=graphql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["gql","LIST_TEAMS"],"sources":["graphql.ts"],"sourcesContent":["import gql from \"graphql-tag\";\n\nexport const LIST_TEAMS = gql`\n query listTeams {\n security {\n teams: listTeams {\n data {\n id\n slug\n name\n description\n createdOn\n }\n }\n }\n }\n`;\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,aAAa;AAE7B,OAAO,MAAMC,UAAU,GAAGD,GAAG;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import type { AutoCompleteProps } from "@webiny/ui/AutoComplete";
3
+ type TeamAutocompleteProps = Partial<AutoCompleteProps>;
4
+ export declare const TeamAutocomplete: (props: TeamAutocompleteProps) => React.JSX.Element;
5
+ export {};
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { AutoComplete } from "@webiny/ui/AutoComplete";
3
+ import { LIST_TEAMS } from "./graphql";
4
+ import { useQuery } from "@apollo/react-hooks";
5
+ export const TeamAutocomplete = props => {
6
+ const {
7
+ data,
8
+ loading
9
+ } = useQuery(LIST_TEAMS);
10
+ const options = loading || !data ? [] : data.security.teams.data;
11
+ return /*#__PURE__*/React.createElement(AutoComplete, Object.assign({}, props, {
12
+ options: options,
13
+ valueProp: "id",
14
+ value: loading ? undefined : props.value
15
+ }));
16
+ };
17
+
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","AutoComplete","LIST_TEAMS","useQuery","TeamAutocomplete","props","data","loading","options","security","teams","createElement","Object","assign","valueProp","value","undefined"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\nimport type { AutoCompleteProps } from \"@webiny/ui/AutoComplete\";\nimport { AutoComplete } from \"@webiny/ui/AutoComplete\";\nimport { LIST_TEAMS } from \"./graphql\";\nimport { useQuery } from \"@apollo/react-hooks\";\n\ntype TeamAutocompleteProps = Partial<AutoCompleteProps>;\nexport const TeamAutocomplete = (props: TeamAutocompleteProps) => {\n const { data, loading } = useQuery(LIST_TEAMS);\n\n const options = loading || !data ? [] : data.security.teams.data;\n\n return (\n <AutoComplete\n {...props}\n options={options}\n valueProp={\"id\"}\n value={loading ? undefined : props.value}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,UAAU;AACnB,SAASC,QAAQ,QAAQ,qBAAqB;AAG9C,OAAO,MAAMC,gBAAgB,GAAIC,KAA4B,IAAK;EAC9D,MAAM;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAGJ,QAAQ,CAACD,UAAU,CAAC;EAE9C,MAAMM,OAAO,GAAGD,OAAO,IAAI,CAACD,IAAI,GAAG,EAAE,GAAGA,IAAI,CAACG,QAAQ,CAACC,KAAK,CAACJ,IAAI;EAEhE,oBACIN,KAAA,CAAAW,aAAA,CAACV,YAAY,EAAAW,MAAA,CAAAC,MAAA,KACLR,KAAK;IACTG,OAAO,EAAEA,OAAQ;IACjBM,SAAS,EAAE,IAAK;IAChBC,KAAK,EAAER,OAAO,GAAGS,SAAS,GAAGX,KAAK,CAACU;EAAM,EAC5C,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export declare const LIST_TEAMS: import("graphql").DocumentNode;
@@ -0,0 +1,23 @@
1
+ import gql from "graphql-tag";
2
+ export const LIST_TEAMS = gql`
3
+ query listTeams {
4
+ security {
5
+ teams: listTeams {
6
+ data {
7
+ id
8
+ slug
9
+ name
10
+ description
11
+ createdOn
12
+ }
13
+ error {
14
+ data
15
+ message
16
+ code
17
+ }
18
+ }
19
+ }
20
+ }
21
+ `;
22
+
23
+ //# sourceMappingURL=graphql.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["gql","LIST_TEAMS"],"sources":["graphql.ts"],"sourcesContent":["import gql from \"graphql-tag\";\n\nexport const LIST_TEAMS = gql`\n query listTeams {\n security {\n teams: listTeams {\n data {\n id\n slug\n name\n description\n createdOn\n }\n error {\n data\n message\n code\n }\n }\n }\n }\n`;\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,aAAa;AAE7B,OAAO,MAAMC,UAAU,GAAGD,GAAG;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import type { MultiAutoCompleteProps } from "@webiny/ui/AutoComplete";
3
+ type TeamsMultiAutocompleteProps = Partial<MultiAutoCompleteProps>;
4
+ export declare const TeamsMultiAutocomplete: (props: TeamsMultiAutocompleteProps) => React.JSX.Element;
5
+ export {};
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { MultiAutoComplete } from "@webiny/ui/AutoComplete";
3
+ import { LIST_TEAMS } from "./graphql";
4
+ import { useQuery } from "@apollo/react-hooks";
5
+ export const TeamsMultiAutocomplete = props => {
6
+ const {
7
+ data,
8
+ loading
9
+ } = useQuery(LIST_TEAMS);
10
+ const options = loading || !data ? [] : data.security.teams.data;
11
+ return /*#__PURE__*/React.createElement(MultiAutoComplete, Object.assign({}, props, {
12
+ options: options,
13
+ valueProp: "id",
14
+ unique: true,
15
+ value: loading ? undefined : props.value
16
+ }));
17
+ };
18
+
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","MultiAutoComplete","LIST_TEAMS","useQuery","TeamsMultiAutocomplete","props","data","loading","options","security","teams","createElement","Object","assign","valueProp","unique","value","undefined"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\nimport type { MultiAutoCompleteProps } from \"@webiny/ui/AutoComplete\";\nimport { MultiAutoComplete } from \"@webiny/ui/AutoComplete\";\nimport { LIST_TEAMS } from \"./graphql\";\nimport { useQuery } from \"@apollo/react-hooks\";\n\ntype TeamsMultiAutocompleteProps = Partial<MultiAutoCompleteProps>;\n\nexport const TeamsMultiAutocomplete = (props: TeamsMultiAutocompleteProps) => {\n const { data, loading } = useQuery(LIST_TEAMS);\n\n const options = loading || !data ? [] : data.security.teams.data;\n\n return (\n <MultiAutoComplete\n {...props}\n options={options}\n valueProp={\"id\"}\n unique={true}\n value={loading ? undefined : props.value}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,UAAU;AACnB,SAASC,QAAQ,QAAQ,qBAAqB;AAI9C,OAAO,MAAMC,sBAAsB,GAAIC,KAAkC,IAAK;EAC1E,MAAM;IAAEC,IAAI;IAAEC;EAAQ,CAAC,GAAGJ,QAAQ,CAACD,UAAU,CAAC;EAE9C,MAAMM,OAAO,GAAGD,OAAO,IAAI,CAACD,IAAI,GAAG,EAAE,GAAGA,IAAI,CAACG,QAAQ,CAACC,KAAK,CAACJ,IAAI;EAEhE,oBACIN,KAAA,CAAAW,aAAA,CAACV,iBAAiB,EAAAW,MAAA,CAAAC,MAAA,KACVR,KAAK;IACTG,OAAO,EAAEA,OAAQ;IACjBM,SAAS,EAAE,IAAK;IAChBC,MAAM,EAAE,IAAK;IACbC,KAAK,EAAET,OAAO,GAAGU,SAAS,GAAGZ,KAAK,CAACW;EAAM,EAC5C,CAAC;AAEV,CAAC","ignoreList":[]}
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: () => import("@webiny/plugins/types").PluginCollection;
2
- export default _default;
1
+ import React from "react";
2
+ export declare const AccessManagement: React.MemoExoticComponent<() => React.JSX.Element>;
package/index.js CHANGED
@@ -1,4 +1,83 @@
1
- import plugins from "./plugins";
2
- export default (function () {
3
- return plugins();
4
- });
1
+ import React, { memo } from "react";
2
+ import { plugins } from "@webiny/plugins";
3
+ import { Layout, Wcp } from "@webiny/app-admin";
4
+ import { HasPermission } from "@webiny/app-security";
5
+ import { Permission } from "./plugins/constants";
6
+ import { Groups } from "./ui/views/Groups";
7
+ import { Teams } from "./ui/views/Teams";
8
+ import { ApiKeys } from "./ui/views/ApiKeys";
9
+ import accessManagementPlugins from "./plugins";
10
+ import { AdminConfig } from "@webiny/app-admin";
11
+ const {
12
+ Menu,
13
+ Route
14
+ } = AdminConfig;
15
+ const AccessManagementExtension = () => {
16
+ plugins.register(accessManagementPlugins());
17
+ return /*#__PURE__*/React.createElement(AdminConfig, null, /*#__PURE__*/React.createElement(HasPermission, {
18
+ name: Permission.Groups
19
+ }, /*#__PURE__*/React.createElement(Route, {
20
+ name: "security.groups",
21
+ exact: true,
22
+ path: "/access-management/roles",
23
+ element: /*#__PURE__*/React.createElement(Layout, {
24
+ title: "Access Management - Roles"
25
+ }, /*#__PURE__*/React.createElement(Groups, null))
26
+ })), /*#__PURE__*/React.createElement(Wcp.CanUseTeams, null, /*#__PURE__*/React.createElement(HasPermission, {
27
+ name: Permission.Teams
28
+ }, /*#__PURE__*/React.createElement(Route, {
29
+ name: "security.teams",
30
+ exact: true,
31
+ path: "/access-management/teams",
32
+ element: /*#__PURE__*/React.createElement(Layout, {
33
+ title: "Access Management - Teams"
34
+ }, /*#__PURE__*/React.createElement(Teams, null))
35
+ }))), /*#__PURE__*/React.createElement(HasPermission, {
36
+ name: Permission.ApiKeys
37
+ }, /*#__PURE__*/React.createElement(Route, {
38
+ name: "security.apiKeys",
39
+ exact: true,
40
+ path: "/access-management/api-keys",
41
+ element: /*#__PURE__*/React.createElement(Layout, {
42
+ title: "Access Management - API Keys"
43
+ }, /*#__PURE__*/React.createElement(ApiKeys, null))
44
+ })), /*#__PURE__*/React.createElement(HasPermission, {
45
+ any: [Permission.Groups, Permission.ApiKeys, Permission.Teams]
46
+ }, /*#__PURE__*/React.createElement(Menu, {
47
+ name: "security.settings",
48
+ parent: "settings",
49
+ element: /*#__PURE__*/React.createElement(Menu.Group, {
50
+ text: "Access Management"
51
+ })
52
+ })), /*#__PURE__*/React.createElement(HasPermission, {
53
+ name: Permission.Groups
54
+ }, /*#__PURE__*/React.createElement(Menu, {
55
+ name: "security.roles",
56
+ parent: "settings",
57
+ element: /*#__PURE__*/React.createElement(Menu.Link, {
58
+ text: "Roles",
59
+ to: "/access-management/roles"
60
+ })
61
+ })), /*#__PURE__*/React.createElement(Wcp.CanUseTeams, null, /*#__PURE__*/React.createElement(HasPermission, {
62
+ name: Permission.Teams
63
+ }, /*#__PURE__*/React.createElement(Menu, {
64
+ name: "security.teams",
65
+ parent: "settings",
66
+ element: /*#__PURE__*/React.createElement(Menu.Link, {
67
+ text: "Teams",
68
+ to: "/access-management/teams"
69
+ })
70
+ }))), /*#__PURE__*/React.createElement(HasPermission, {
71
+ name: Permission.ApiKeys
72
+ }, /*#__PURE__*/React.createElement(Menu, {
73
+ name: "security.apiKeys",
74
+ parent: "settings",
75
+ element: /*#__PURE__*/React.createElement(Menu.Link, {
76
+ text: "API Keys",
77
+ to: "/access-management/api-keys"
78
+ })
79
+ })));
80
+ };
81
+ export const AccessManagement = /*#__PURE__*/memo(AccessManagementExtension);
82
+
83
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","plugins","Layout","Wcp","HasPermission","Permission","Groups","Teams","ApiKeys","accessManagementPlugins","AdminConfig","Menu","Route","AccessManagementExtension","register","createElement","name","exact","path","element","title","CanUseTeams","any","parent","Group","text","Link","to","AccessManagement"],"sources":["index.tsx"],"sourcesContent":["import React, { memo } from \"react\";\nimport { plugins } from \"@webiny/plugins\";\nimport { Layout, Wcp } from \"@webiny/app-admin\";\nimport { HasPermission } from \"@webiny/app-security\";\nimport { Permission } from \"~/plugins/constants\";\nimport { Groups } from \"~/ui/views/Groups\";\nimport { Teams } from \"~/ui/views/Teams\";\nimport { ApiKeys } from \"~/ui/views/ApiKeys\";\nimport accessManagementPlugins from \"./plugins\";\nimport { AdminConfig } from \"@webiny/app-admin\";\n\nconst { Menu, Route } = AdminConfig;\n\nconst AccessManagementExtension = () => {\n plugins.register(accessManagementPlugins());\n\n return (\n <AdminConfig>\n <HasPermission name={Permission.Groups}>\n <Route\n name={\"security.groups\"}\n exact\n path={\"/access-management/roles\"}\n element={\n <Layout title={\"Access Management - Roles\"}>\n <Groups />\n </Layout>\n }\n />\n </HasPermission>\n <Wcp.CanUseTeams>\n <HasPermission name={Permission.Teams}>\n <Route\n name={\"security.teams\"}\n exact\n path={\"/access-management/teams\"}\n element={\n <Layout title={\"Access Management - Teams\"}>\n <Teams />\n </Layout>\n }\n />\n </HasPermission>\n </Wcp.CanUseTeams>\n <HasPermission name={Permission.ApiKeys}>\n <Route\n name={\"security.apiKeys\"}\n exact\n path={\"/access-management/api-keys\"}\n element={\n <Layout title={\"Access Management - API Keys\"}>\n <ApiKeys />\n </Layout>\n }\n />\n </HasPermission>\n\n <HasPermission any={[Permission.Groups, Permission.ApiKeys, Permission.Teams]}>\n <Menu\n name={\"security.settings\"}\n parent={\"settings\"}\n element={<Menu.Group text={\"Access Management\"} />}\n />\n </HasPermission>\n <HasPermission name={Permission.Groups}>\n <Menu\n name={\"security.roles\"}\n parent={\"settings\"}\n element={<Menu.Link text={\"Roles\"} to={\"/access-management/roles\"} />}\n />\n </HasPermission>\n <Wcp.CanUseTeams>\n <HasPermission name={Permission.Teams}>\n <Menu\n name={\"security.teams\"}\n parent={\"settings\"}\n element={<Menu.Link text={\"Teams\"} to={\"/access-management/teams\"} />}\n />\n </HasPermission>\n </Wcp.CanUseTeams>\n\n <HasPermission name={Permission.ApiKeys}>\n <Menu\n name={\"security.apiKeys\"}\n parent={\"settings\"}\n element={<Menu.Link text={\"API Keys\"} to={\"/access-management/api-keys\"} />}\n />\n </HasPermission>\n </AdminConfig>\n );\n};\n\nexport const AccessManagement = memo(AccessManagementExtension);\n"],"mappings":"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","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-security-access-management",
3
- "version": "0.0.0-mt-3",
3
+ "version": "0.0.0-unstable.06b2ede40f",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,50 +14,37 @@
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
16
  "@apollo/react-hooks": "3.1.5",
17
- "@emotion/styled": "10.0.27",
18
- "@webiny/app": "0.0.0-mt-3",
19
- "@webiny/app-admin": "0.0.0-mt-3",
20
- "@webiny/app-security": "0.0.0-mt-3",
21
- "@webiny/form": "0.0.0-mt-3",
22
- "@webiny/plugins": "0.0.0-mt-3",
23
- "@webiny/react-router": "0.0.0-mt-3",
24
- "@webiny/ui": "0.0.0-mt-3",
25
- "@webiny/validation": "0.0.0-mt-3",
26
- "emotion": "10.0.27",
27
- "graphql-tag": "2.12.5",
17
+ "@emotion/styled": "11.10.6",
18
+ "@webiny/admin-ui": "0.0.0-unstable.06b2ede40f",
19
+ "@webiny/app": "0.0.0-unstable.06b2ede40f",
20
+ "@webiny/app-admin": "0.0.0-unstable.06b2ede40f",
21
+ "@webiny/app-security": "0.0.0-unstable.06b2ede40f",
22
+ "@webiny/form": "0.0.0-unstable.06b2ede40f",
23
+ "@webiny/icons": "0.0.0-unstable.06b2ede40f",
24
+ "@webiny/plugins": "0.0.0-unstable.06b2ede40f",
25
+ "@webiny/react-router": "0.0.0-unstable.06b2ede40f",
26
+ "@webiny/ui": "0.0.0-unstable.06b2ede40f",
27
+ "@webiny/validation": "0.0.0-unstable.06b2ede40f",
28
+ "graphql-tag": "2.12.6",
28
29
  "lodash": "4.17.21",
29
- "react": "16.14.0",
30
- "react-dom": "16.14.0",
31
- "react-helmet": "5.2.1"
30
+ "react": "18.2.0",
31
+ "react-dom": "18.2.0",
32
+ "react-helmet": "6.1.0"
32
33
  },
33
34
  "devDependencies": {
34
- "@babel/cli": "^7.5.5",
35
- "@babel/core": "^7.5.5",
36
- "@babel/plugin-proposal-class-properties": "^7.5.5",
37
- "@babel/preset-env": "^7.5.5",
38
- "@babel/preset-react": "^7.0.0",
39
- "@babel/preset-typescript": "^7.8.3",
40
- "@webiny/cli": "^0.0.0-mt-3",
41
- "@webiny/project-utils": "^0.0.0-mt-3",
42
- "babel-plugin-emotion": "^9.2.8",
43
- "babel-plugin-lodash": "^3.3.4",
44
- "babel-plugin-named-asset-import": "^1.0.0-next.3e165448",
45
- "rimraf": "^3.0.2",
46
- "ttypescript": "^1.5.12",
47
- "typescript": "^4.1.3"
35
+ "@emotion/babel-plugin": "11.11.0",
36
+ "@types/react-helmet": "6.1.11",
37
+ "@webiny/project-utils": "0.0.0-unstable.06b2ede40f",
38
+ "rimraf": "6.0.1",
39
+ "typescript": "5.3.3"
48
40
  },
49
41
  "publishConfig": {
50
42
  "access": "public",
51
43
  "directory": "dist"
52
44
  },
53
45
  "scripts": {
54
- "build": "yarn webiny run build",
55
- "watch": "yarn webiny run watch"
56
- },
57
- "svgo": {
58
- "plugins": {
59
- "removeViewBox": false
60
- }
46
+ "build": "node ../cli/bin.js run build",
47
+ "watch": "node ../cli/bin.js run watch"
61
48
  },
62
49
  "adio": {
63
50
  "ignore": {
@@ -66,5 +53,5 @@
66
53
  ]
67
54
  }
68
55
  },
69
- "gitHead": "ebea815be2be99404591cba465cc1fe88355bd48"
56
+ "gitHead": "06b2ede40fc2212a70eeafd74afd50b56fb0ce82"
70
57
  }
@@ -1,4 +1,5 @@
1
1
  export declare enum Permission {
2
2
  Groups = "security.group",
3
+ Teams = "security.team",
3
4
  ApiKeys = "security.apiKey"
4
5
  }
@@ -1,6 +1,8 @@
1
- export var Permission;
2
-
3
- (function (Permission) {
1
+ export let Permission = /*#__PURE__*/function (Permission) {
4
2
  Permission["Groups"] = "security.group";
3
+ Permission["Teams"] = "security.team";
5
4
  Permission["ApiKeys"] = "security.apiKey";
6
- })(Permission || (Permission = {}));
5
+ return Permission;
6
+ }({});
7
+
8
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Permission"],"sources":["constants.ts"],"sourcesContent":["export enum Permission {\n Groups = \"security.group\",\n Teams = \"security.team\",\n ApiKeys = \"security.apiKey\"\n}\n"],"mappings":"AAAA,WAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
@@ -1,3 +1,3 @@
1
- import { PluginCollection } from "@webiny/plugins/types";
1
+ import type { PluginCollection } from "@webiny/plugins/types";
2
2
  declare const _default: () => PluginCollection;
3
3
  export default _default;