@strapi/plugin-users-permissions 4.7.0-beta.0 → 4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d

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.
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { Stack } from '@strapi/design-system/Stack';
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/ToggleInput';
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/ModalLayout';
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';
@@ -1,5 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { Box } from '@strapi/design-system/Box';
2
+ import { Box } from '@strapi/design-system';
3
3
 
4
4
  const activeCheckboxWrapperStyles = css`
5
5
  background: ${(props) => props.theme.colors.primary100};
@@ -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/Box';
6
- import { Checkbox } from '@strapi/design-system/Checkbox';
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/Box';
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/Accordion';
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/Typography';
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/Typography';
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 { useNotifyAT } from '@strapi/design-system/LiveRegions';
17
- import { Main } from '@strapi/design-system/Main';
18
- import { HeaderLayout, ContentLayout } from '@strapi/design-system/Layout';
19
- import { Button } from '@strapi/design-system/Button';
20
- import { Box } from '@strapi/design-system/Box';
21
- import { Stack } from '@strapi/design-system/Stack';
22
- import { Select, Option } from '@strapi/design-system/Select';
23
- import { Typography } from '@strapi/design-system/Typography';
24
- import { Grid, GridItem } from '@strapi/design-system/Grid';
25
- import Check from '@strapi/icons/Check';
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
- } from '@strapi/design-system/ModalLayout';
12
- import { Grid, GridItem } from '@strapi/design-system/Grid';
13
- import { Button } from '@strapi/design-system/Button';
14
- import { Breadcrumbs, Crumb } from '@strapi/design-system/Breadcrumbs';
15
- import { Textarea } from '@strapi/design-system/Textarea';
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 { Table, Thead, Tbody, Tr, Td, Th } from '@strapi/design-system/Table';
5
- import { VisuallyHidden } from '@strapi/design-system/VisuallyHidden';
6
- import { Typography } from '@strapi/design-system/Typography';
7
- import { IconButton } from '@strapi/design-system/IconButton';
8
- import { Icon } from '@strapi/design-system/Icon';
9
- import Pencil from '@strapi/icons/Pencil';
10
- import Reload from '@strapi/icons/Refresh';
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
- <Reload
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/LiveRegions';
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 { HeaderLayout, Layout, ContentLayout } from '@strapi/design-system/Layout';
18
- import { Main } from '@strapi/design-system/Main';
19
- import { useNotifyAT } from '@strapi/design-system/LiveRegions';
20
- import { Table, Thead, Tr, Th, Tbody, Td } from '@strapi/design-system/Table';
21
- import { Typography } from '@strapi/design-system/Typography';
22
- import { VisuallyHidden } from '@strapi/design-system/VisuallyHidden';
23
- import { IconButton } from '@strapi/design-system/IconButton';
24
- import Pencil from '@strapi/icons/Pencil';
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 { ContentLayout, HeaderLayout } from '@strapi/design-system/Layout';
4
- import { Main } from '@strapi/design-system/Main';
5
- import { Button } from '@strapi/design-system/Button';
6
- import { Stack } from '@strapi/design-system/Stack';
7
- import { Box } from '@strapi/design-system/Box';
8
- import { TextInput } from '@strapi/design-system/TextInput';
9
- import { Textarea } from '@strapi/design-system/Textarea';
10
- import { Typography } from '@strapi/design-system/Typography';
11
- import Check from '@strapi/icons/Check';
12
- import { GridItem, Grid } from '@strapi/design-system/Grid';
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 { ContentLayout, HeaderLayout } from '@strapi/design-system/Layout';
15
- import { Main } from '@strapi/design-system/Main';
16
- import { Button } from '@strapi/design-system/Button';
17
- import { Stack } from '@strapi/design-system/Stack';
18
- import { Box } from '@strapi/design-system/Box';
19
- import { TextInput } from '@strapi/design-system/TextInput';
20
- import { Textarea } from '@strapi/design-system/Textarea';
21
- import { Typography } from '@strapi/design-system/Typography';
22
- import ArrowLeft from '@strapi/icons/ArrowLeft';
23
- import Check from '@strapi/icons/Check';
24
- import { GridItem, Grid } from '@strapi/design-system/Grid';
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/IconButton';
4
- import { Typography } from '@strapi/design-system/Typography';
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 { Button } from '@strapi/design-system/Button';
3
- import { HeaderLayout, Layout, ContentLayout, ActionLayout } from '@strapi/design-system/Layout';
4
- import { Main } from '@strapi/design-system/Main';
5
- import { Table, Tr, Thead, Th } from '@strapi/design-system/Table';
6
- import { VisuallyHidden } from '@strapi/design-system/VisuallyHidden';
7
- import { Typography } from '@strapi/design-system/Typography';
8
- import { useNotifyAT } from '@strapi/design-system/LiveRegions';
9
- import Plus from '@strapi/icons/Plus';
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.7.0-beta.0",
3
+ "version": "4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d",
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.7.0-beta.0",
31
- "@strapi/utils": "4.7.0-beta.0",
30
+ "@strapi/helper-plugin": "4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d",
31
+ "@strapi/utils": "4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d",
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.7",
42
+ "react-intl": "6.2.8",
43
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": "1.0.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": "880ba7af867ad43c4cc45b47467b76a9b5606b6e"
67
+ "gitHead": "117579f4c13806c2cd518e7d7d2f9d0c8a20107d"
69
68
  }