@strapi/plugin-users-permissions 4.6.1 → 4.6.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/admin/src/components/BoundRoute/index.js +1 -3
- package/admin/src/components/FormModal/Input/index.js +1 -2
- package/admin/src/components/FormModal/index.js +7 -5
- package/admin/src/components/Permissions/PermissionRow/CheckboxWrapper.js +1 -1
- package/admin/src/components/Permissions/PermissionRow/SubCategory.js +2 -6
- package/admin/src/components/Permissions/PermissionRow/index.js +1 -1
- package/admin/src/components/Permissions/index.js +1 -3
- package/admin/src/components/Policies/index.js +1 -3
- package/admin/src/components/UsersPermissions/index.js +1 -3
- package/admin/src/pages/AdvancedSettings/index.js +15 -10
- package/admin/src/pages/EmailTemplates/components/EmailForm.js +7 -5
- package/admin/src/pages/EmailTemplates/components/EmailTable.js +14 -9
- package/admin/src/pages/EmailTemplates/index.js +1 -3
- package/admin/src/pages/Providers/index.js +17 -8
- package/admin/src/pages/Roles/CreatePage/index.js +14 -10
- package/admin/src/pages/Roles/EditPage/index.js +14 -11
- package/admin/src/pages/Roles/ListPage/components/TableBody.js +2 -6
- package/admin/src/pages/Roles/ListPage/index.js +16 -8
- package/package.json +7 -8
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { Stack } from '@strapi/design-system
|
|
4
|
-
import { Box } from '@strapi/design-system/Box';
|
|
5
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
3
|
+
import { Stack, Box, Typography } from '@strapi/design-system';
|
|
6
4
|
import map from 'lodash/map';
|
|
7
5
|
import tail from 'lodash/tail';
|
|
8
6
|
import { useIntl } from 'react-intl';
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
|
-
import { ToggleInput } from '@strapi/design-system
|
|
10
|
-
import { TextInput } from '@strapi/design-system/TextInput';
|
|
9
|
+
import { ToggleInput, TextInput } from '@strapi/design-system';
|
|
11
10
|
import PropTypes from 'prop-types';
|
|
12
11
|
|
|
13
12
|
const Input = ({
|
|
@@ -6,16 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
|
-
import { Button } from '@strapi/design-system/Button';
|
|
10
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
11
|
-
import { Breadcrumbs, Crumb } from '@strapi/design-system/Breadcrumbs';
|
|
12
|
-
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
|
13
9
|
import {
|
|
10
|
+
Button,
|
|
11
|
+
Stack,
|
|
12
|
+
Breadcrumbs,
|
|
13
|
+
Crumb,
|
|
14
|
+
Grid,
|
|
15
|
+
GridItem,
|
|
14
16
|
ModalLayout,
|
|
15
17
|
ModalHeader,
|
|
16
18
|
ModalFooter,
|
|
17
19
|
ModalBody,
|
|
18
|
-
} from '@strapi/design-system
|
|
20
|
+
} from '@strapi/design-system';
|
|
19
21
|
import PropTypes from 'prop-types';
|
|
20
22
|
import { Formik } from 'formik';
|
|
21
23
|
import { Form } from '@strapi/helper-plugin';
|
|
@@ -2,12 +2,8 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
2
2
|
import { get } from 'lodash';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import { Box } from '@strapi/design-system
|
|
6
|
-
import {
|
|
7
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
8
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
9
|
-
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
|
10
|
-
import CogIcon from '@strapi/icons/Cog';
|
|
5
|
+
import { Box, Checkbox, Flex, Typography, Grid, GridItem } from '@strapi/design-system';
|
|
6
|
+
import { Cog as CogIcon } from '@strapi/icons';
|
|
11
7
|
import { useIntl } from 'react-intl';
|
|
12
8
|
import CheckboxWrapper from './CheckboxWrapper';
|
|
13
9
|
import { useUsersPermissions } from '../../../contexts/UsersPermissionsContext';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import sortBy from 'lodash/sortBy';
|
|
4
|
-
import { Box } from '@strapi/design-system
|
|
4
|
+
import { Box } from '@strapi/design-system';
|
|
5
5
|
import SubCategory from './SubCategory';
|
|
6
6
|
|
|
7
7
|
const PermissionRow = ({ name, permissions }) => {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { useReducer } from 'react';
|
|
2
|
-
import { Accordion, AccordionToggle, AccordionContent } from '@strapi/design-system
|
|
2
|
+
import { Accordion, AccordionToggle, AccordionContent, Box, Stack } from '@strapi/design-system';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { Box } from '@strapi/design-system/Box';
|
|
5
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
6
4
|
import { useUsersPermissions } from '../../contexts/UsersPermissionsContext';
|
|
7
5
|
import formatPluginName from '../../utils/formatPluginName';
|
|
8
6
|
import PermissionRow from './PermissionRow';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { Typography } from '@strapi/design-system
|
|
4
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
5
|
-
import { GridItem } from '@strapi/design-system/Grid';
|
|
3
|
+
import { Typography, Stack, GridItem } from '@strapi/design-system';
|
|
6
4
|
import { get, isEmpty, without } from 'lodash';
|
|
7
5
|
import { useUsersPermissions } from '../../contexts/UsersPermissionsContext';
|
|
8
6
|
import BoundRoute from '../BoundRoute';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { memo, useReducer, forwardRef, useImperativeHandle } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { Typography } from '@strapi/design-system
|
|
4
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
5
|
-
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
|
3
|
+
import { Typography, Stack, Grid, GridItem } from '@strapi/design-system';
|
|
6
4
|
import { useIntl } from 'react-intl';
|
|
7
5
|
import getTrad from '../../utils/getTrad';
|
|
8
6
|
import Policies from '../Policies';
|
|
@@ -13,16 +13,21 @@ import {
|
|
|
13
13
|
useOverlayBlocker,
|
|
14
14
|
useRBAC,
|
|
15
15
|
} from '@strapi/helper-plugin';
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
import {
|
|
17
|
+
useNotifyAT,
|
|
18
|
+
Main,
|
|
19
|
+
HeaderLayout,
|
|
20
|
+
ContentLayout,
|
|
21
|
+
Button,
|
|
22
|
+
Box,
|
|
23
|
+
Stack,
|
|
24
|
+
Select,
|
|
25
|
+
Option,
|
|
26
|
+
Typography,
|
|
27
|
+
Grid,
|
|
28
|
+
GridItem,
|
|
29
|
+
} from '@strapi/design-system';
|
|
30
|
+
import { Check } from '@strapi/icons';
|
|
26
31
|
import pluginPermissions from '../../permissions';
|
|
27
32
|
import { getTrad } from '../../utils';
|
|
28
33
|
import layout from './utils/layout';
|
|
@@ -8,11 +8,13 @@ import {
|
|
|
8
8
|
ModalHeader,
|
|
9
9
|
ModalFooter,
|
|
10
10
|
ModalBody,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
Grid,
|
|
12
|
+
GridItem,
|
|
13
|
+
Button,
|
|
14
|
+
Breadcrumbs,
|
|
15
|
+
Crumb,
|
|
16
|
+
Textarea,
|
|
17
|
+
} from '@strapi/design-system';
|
|
16
18
|
import { getTrad } from '../../../utils';
|
|
17
19
|
import schema from '../utils/schema';
|
|
18
20
|
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
import {
|
|
5
|
+
Table,
|
|
6
|
+
Thead,
|
|
7
|
+
Tbody,
|
|
8
|
+
Tr,
|
|
9
|
+
Td,
|
|
10
|
+
Th,
|
|
11
|
+
Typography,
|
|
12
|
+
IconButton,
|
|
13
|
+
Icon,
|
|
14
|
+
VisuallyHidden,
|
|
15
|
+
} from '@strapi/design-system';
|
|
16
|
+
import { Pencil, Refresh, Check } from '@strapi/icons';
|
|
11
17
|
import { onRowClick, stopPropagation } from '@strapi/helper-plugin';
|
|
12
|
-
import Check from '@strapi/icons/Check';
|
|
13
18
|
import { getTrad } from '../../../utils';
|
|
14
19
|
|
|
15
20
|
const EmailTable = ({ canUpdate, onEditClick }) => {
|
|
@@ -49,7 +54,7 @@ const EmailTable = ({ canUpdate, onEditClick }) => {
|
|
|
49
54
|
<Tr {...onRowClick({ fn: () => onEditClick('reset_password') })}>
|
|
50
55
|
<Td>
|
|
51
56
|
<Icon>
|
|
52
|
-
<
|
|
57
|
+
<Refresh
|
|
53
58
|
aria-label={formatMessage({
|
|
54
59
|
id: 'global.reset-password',
|
|
55
60
|
defaultMessage: 'Reset password',
|
|
@@ -11,9 +11,7 @@ import {
|
|
|
11
11
|
useFocusWhenNavigate,
|
|
12
12
|
LoadingIndicatorPage,
|
|
13
13
|
} from '@strapi/helper-plugin';
|
|
14
|
-
import { useNotifyAT } from '@strapi/design-system
|
|
15
|
-
import { Main } from '@strapi/design-system/Main';
|
|
16
|
-
import { ContentLayout, HeaderLayout } from '@strapi/design-system/Layout';
|
|
14
|
+
import { useNotifyAT, Main, ContentLayout, HeaderLayout } from '@strapi/design-system';
|
|
17
15
|
import pluginPermissions from '../../permissions';
|
|
18
16
|
import { getTrad } from '../../utils';
|
|
19
17
|
import { fetchData, putEmailTemplate } from './utils/api';
|
|
@@ -14,14 +14,23 @@ import {
|
|
|
14
14
|
} from '@strapi/helper-plugin';
|
|
15
15
|
import has from 'lodash/has';
|
|
16
16
|
import upperFirst from 'lodash/upperFirst';
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
import {
|
|
18
|
+
HeaderLayout,
|
|
19
|
+
Layout,
|
|
20
|
+
ContentLayout,
|
|
21
|
+
Main,
|
|
22
|
+
useNotifyAT,
|
|
23
|
+
Table,
|
|
24
|
+
Thead,
|
|
25
|
+
Tr,
|
|
26
|
+
Th,
|
|
27
|
+
Tbody,
|
|
28
|
+
Td,
|
|
29
|
+
Typography,
|
|
30
|
+
IconButton,
|
|
31
|
+
VisuallyHidden,
|
|
32
|
+
} from '@strapi/design-system';
|
|
33
|
+
import { Pencil } from '@strapi/icons';
|
|
25
34
|
import { useQuery, useMutation, useQueryClient } from 'react-query';
|
|
26
35
|
import forms from './utils/forms';
|
|
27
36
|
import { fetchData, putProvider } from './utils/api';
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import React, { useState, useRef } from 'react';
|
|
2
2
|
import { useHistory } from 'react-router-dom';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import {
|
|
4
|
+
ContentLayout,
|
|
5
|
+
HeaderLayout,
|
|
6
|
+
Main,
|
|
7
|
+
Button,
|
|
8
|
+
Stack,
|
|
9
|
+
Box,
|
|
10
|
+
TextInput,
|
|
11
|
+
Textarea,
|
|
12
|
+
Typography,
|
|
13
|
+
GridItem,
|
|
14
|
+
Grid,
|
|
15
|
+
} from '@strapi/design-system';
|
|
16
|
+
import { Check } from '@strapi/icons';
|
|
13
17
|
import { Formik } from 'formik';
|
|
14
18
|
import { useIntl } from 'react-intl';
|
|
15
19
|
import {
|
|
@@ -11,17 +11,20 @@ import {
|
|
|
11
11
|
useNotification,
|
|
12
12
|
Link,
|
|
13
13
|
} from '@strapi/helper-plugin';
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
import {
|
|
15
|
+
ContentLayout,
|
|
16
|
+
HeaderLayout,
|
|
17
|
+
Main,
|
|
18
|
+
Button,
|
|
19
|
+
Stack,
|
|
20
|
+
Box,
|
|
21
|
+
TextInput,
|
|
22
|
+
Textarea,
|
|
23
|
+
Typography,
|
|
24
|
+
GridItem,
|
|
25
|
+
Grid,
|
|
26
|
+
} from '@strapi/design-system';
|
|
27
|
+
import { ArrowLeft, Check } from '@strapi/icons';
|
|
25
28
|
import UsersPermissions from '../../../components/UsersPermissions';
|
|
26
29
|
import getTrad from '../../../utils/getTrad';
|
|
27
30
|
import pluginId from '../../../pluginId';
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { IconButton } from '@strapi/design-system
|
|
4
|
-
import {
|
|
5
|
-
import { Flex } from '@strapi/design-system/Flex';
|
|
6
|
-
import { Tbody, Tr, Td } from '@strapi/design-system/Table';
|
|
7
|
-
import Pencil from '@strapi/icons/Pencil';
|
|
8
|
-
import Trash from '@strapi/icons/Trash';
|
|
3
|
+
import { IconButton, Typography, Flex, Tbody, Tr, Td } from '@strapi/design-system';
|
|
4
|
+
import { Pencil, Trash } from '@strapi/icons';
|
|
9
5
|
import { CheckPermissions, onRowClick, stopPropagation } from '@strapi/helper-plugin';
|
|
10
6
|
import { useIntl } from 'react-intl';
|
|
11
7
|
import { useHistory } from 'react-router-dom';
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import React, { useMemo, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
HeaderLayout,
|
|
5
|
+
Layout,
|
|
6
|
+
ContentLayout,
|
|
7
|
+
ActionLayout,
|
|
8
|
+
Main,
|
|
9
|
+
Table,
|
|
10
|
+
Tr,
|
|
11
|
+
Thead,
|
|
12
|
+
Th,
|
|
13
|
+
Typography,
|
|
14
|
+
useNotifyAT,
|
|
15
|
+
VisuallyHidden,
|
|
16
|
+
} from '@strapi/design-system';
|
|
17
|
+
import { Plus } from '@strapi/icons';
|
|
10
18
|
import {
|
|
11
19
|
useTracking,
|
|
12
20
|
SettingsPageTitle,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-users-permissions",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.2",
|
|
4
4
|
"description": "Protect your API with a full-authentication process based on JWT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"test:front:watch:ce": "cross-env IS_EE=false jest --config ./jest.config.front.js --watchAll"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@strapi/helper-plugin": "4.6.
|
|
31
|
-
"@strapi/utils": "4.6.
|
|
30
|
+
"@strapi/helper-plugin": "4.6.2",
|
|
31
|
+
"@strapi/utils": "4.6.2",
|
|
32
32
|
"bcryptjs": "2.4.3",
|
|
33
33
|
"grant-koa": "5.4.8",
|
|
34
34
|
"jsonwebtoken": "9.0.0",
|
|
@@ -39,11 +39,10 @@
|
|
|
39
39
|
"purest": "4.0.2",
|
|
40
40
|
"react": "^17.0.2",
|
|
41
41
|
"react-dom": "^17.0.2",
|
|
42
|
-
"react-intl": "6.2.
|
|
43
|
-
"react-redux": "
|
|
42
|
+
"react-intl": "6.2.8",
|
|
43
|
+
"react-redux": "8.0.5",
|
|
44
44
|
"react-router": "^5.2.0",
|
|
45
45
|
"react-router-dom": "5.3.4",
|
|
46
|
-
"request": "^2.83.0",
|
|
47
46
|
"url-join": "4.0.1"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
"@testing-library/react": "12.1.4",
|
|
52
51
|
"@testing-library/react-hooks": "8.0.1",
|
|
53
52
|
"@testing-library/user-event": "14.4.3",
|
|
54
|
-
"msw": "0.
|
|
53
|
+
"msw": "1.0.1",
|
|
55
54
|
"react-test-renderer": "^17.0.2"
|
|
56
55
|
},
|
|
57
56
|
"engines": {
|
|
@@ -65,5 +64,5 @@
|
|
|
65
64
|
"required": true,
|
|
66
65
|
"kind": "plugin"
|
|
67
66
|
},
|
|
68
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "bae505f44c3a779905f6b8dbc0c497e24d9eabfb"
|
|
69
68
|
}
|