@akemona-org/strapi-plugin-users-permissions 3.7.4 → 3.7.6

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 (28) hide show
  1. package/LICENSE +1 -7
  2. package/README.md +1 -1
  3. package/admin/src/components/BoundRoute/Components.js +1 -1
  4. package/admin/src/components/FormBloc/index.js +1 -1
  5. package/admin/src/components/IntlInput/index.js +1 -1
  6. package/admin/src/components/ModalForm/index.js +1 -1
  7. package/admin/src/components/Permissions/PermissionRow/index.js +1 -1
  8. package/admin/src/components/Policies/Components.js +1 -1
  9. package/admin/src/containers/AdvancedSettings/index.js +1 -1
  10. package/admin/src/containers/EmailTemplates/index.js +1 -1
  11. package/admin/src/containers/EmailTemplates/utils/schema.js +1 -1
  12. package/admin/src/containers/Providers/index.js +1 -1
  13. package/admin/src/containers/Providers/utils/forms.js +1 -1
  14. package/admin/src/containers/Roles/CreatePage/index.js +1 -1
  15. package/admin/src/containers/Roles/CreatePage/utils/schema.js +1 -1
  16. package/admin/src/containers/Roles/EditPage/index.js +1 -1
  17. package/admin/src/containers/Roles/EditPage/utils/schema.js +1 -1
  18. package/admin/src/containers/Roles/ListPage/index.js +6 -1
  19. package/admin/src/containers/Roles/ProtectedCreatePage/index.js +1 -1
  20. package/admin/src/containers/Roles/ProtectedEditPage/index.js +1 -1
  21. package/admin/src/containers/Roles/ProtectedListPage/index.js +1 -1
  22. package/admin/src/containers/Roles/index.js +1 -1
  23. package/admin/src/hooks/useFetchRole/index.js +1 -1
  24. package/admin/src/hooks/useForm/index.js +1 -1
  25. package/admin/src/hooks/usePlugins/index.js +1 -1
  26. package/admin/src/hooks/useRolesList/index.js +1 -1
  27. package/admin/src/index.js +1 -1
  28. package/package.json +4 -4
package/LICENSE CHANGED
@@ -1,11 +1,5 @@
1
1
  Copyright (c) 2015-present Strapi Solutions SAS
2
2
 
3
- Portions of the Strapi software are licensed as follows:
4
-
5
- * All software that resides under an "ee/" directory (the “EE Software”), if that directory exists, is licensed under the license defined in "ee/LICENSE".
6
-
7
- * All software outside of the above-mentioned directories or restrictions above is available under the "MIT Expat" license as set forth below.
8
-
9
3
  MIT Expat License
10
4
 
11
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -19,4 +13,4 @@ The above copyright notice and this permission notice shall be included in all
19
13
  copies or substantial portions of the Software.
20
14
 
21
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
16
+ SOFTWARE.
package/README.md CHANGED
@@ -10,7 +10,7 @@ We’ve decided it’ll soon be time to end the support for `strapi-plugin-users
10
10
 
11
11
  After years of iterations, Strapi is going to V4 and we won’t maintain V3 packages when it’ll reach its end-of-support milestone (~end of Q3 2022).
12
12
 
13
- If you’ve been using `strapi-plugin-users-permissions` and have migrated to V4 (or if you want to), you can find the equivalent and updated version of this package at this [URL](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and with the following name on NPM: `@strapi/plugin-users-permissions`.
13
+ If you’ve been using `strapi-plugin-users-permissions` and have migrated to V4 (or if you want to), you can find the equivalent and updated version of this package at this [URL](https://github.com/akemona/strapi/tree/master/packages/plugins/users-permissions) and with the following name on NPM: `@strapi/plugin-users-permissions`.
14
14
 
15
15
  If you’ve contributed to the development of this package, thank you again for that! We hope to see you on the V4 soon.
16
16
 
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import { themePropTypes } from 'strapi-helper-plugin';
2
+ import { themePropTypes } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  const Wrapper = styled.div`
5
5
  display: flex;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Flex, Padded, Text } from '@buffetjs/core';
3
- import { LoadingIndicator } from 'strapi-helper-plugin';
3
+ import { LoadingIndicator } from '@akemona-org/strapi-helper-plugin';
4
4
  import PropTypes from 'prop-types';
5
5
  import BaselineAlignement from '../BaselineAlignement';
6
6
  import Bloc from '../Bloc';
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } from 'react';
2
- import { translatedErrors } from 'strapi-helper-plugin';
2
+ import { translatedErrors } from '@akemona-org/strapi-helper-plugin';
3
3
  import { useIntl } from 'react-intl';
4
4
  import { Inputs } from '@buffetjs/custom';
5
5
  import PropTypes from 'prop-types';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Modal, ModalHeader, ModalSection, ModalFooter } from 'strapi-helper-plugin';
2
+ import { Modal, ModalHeader, ModalSection, ModalFooter } from '@akemona-org/strapi-helper-plugin';
3
3
  import { useIntl } from 'react-intl';
4
4
  import { Button, Padded } from '@buffetjs/core';
5
5
  import PropTypes from 'prop-types';
@@ -4,7 +4,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
4
  import PropTypes from 'prop-types';
5
5
  import { useIntl } from 'react-intl';
6
6
  import { sortBy } from 'lodash';
7
- import { PermissionsWrapper, RowContainer } from 'strapi-helper-plugin';
7
+ import { PermissionsWrapper, RowContainer } from '@akemona-org/strapi-helper-plugin';
8
8
 
9
9
  import getTrad from '../../../utils/getTrad';
10
10
  import SubCategory from './SubCategory';
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import { themePropTypes } from 'strapi-helper-plugin';
2
+ import { themePropTypes } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  const Wrapper = styled.div`
5
5
  min-height: 100%;
@@ -9,7 +9,7 @@ import {
9
9
  SizedInput,
10
10
  useUserPermissions,
11
11
  request,
12
- } from 'strapi-helper-plugin';
12
+ } from '@akemona-org/strapi-helper-plugin';
13
13
  import pluginPermissions from '../../permissions';
14
14
  import { getTrad, getRequestURL } from '../../utils';
15
15
  import ListBaselineAlignment from '../../components/ListBaselineAlignment';
@@ -9,7 +9,7 @@ import {
9
9
  useGlobalContext,
10
10
  request,
11
11
  getYupInnerErrors,
12
- } from 'strapi-helper-plugin';
12
+ } from '@akemona-org/strapi-helper-plugin';
13
13
  import { Row } from 'reactstrap';
14
14
  import pluginPermissions from '../../permissions';
15
15
  import { useForm } from '../../hooks';
@@ -1,5 +1,5 @@
1
1
  import * as yup from 'yup';
2
- import { translatedErrors } from 'strapi-helper-plugin';
2
+ import { translatedErrors } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  const schema = yup.object().shape({
5
5
  options: yup
@@ -9,7 +9,7 @@ import {
9
9
  useGlobalContext,
10
10
  getYupInnerErrors,
11
11
  request,
12
- } from 'strapi-helper-plugin';
12
+ } from '@akemona-org/strapi-helper-plugin';
13
13
  import { get, upperFirst, has } from 'lodash';
14
14
  import { Row } from 'reactstrap';
15
15
  import pluginPermissions from '../../permissions';
@@ -1,5 +1,5 @@
1
1
  import * as yup from 'yup';
2
- import { translatedErrors } from 'strapi-helper-plugin';
2
+ import { translatedErrors } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  import { getTrad } from '../../../utils';
5
5
 
@@ -4,7 +4,7 @@ import { Header } from '@buffetjs/custom';
4
4
  import { Padded } from '@buffetjs/core';
5
5
  import { Formik } from 'formik';
6
6
  import { useIntl } from 'react-intl';
7
- import { request, useGlobalContext } from 'strapi-helper-plugin';
7
+ import { request, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
8
8
  import BaselineAlignement from '../../../components/BaselineAlignement';
9
9
  import ContainerFluid from '../../../components/ContainerFluid';
10
10
  import FormCard from '../../../components/FormBloc';
@@ -1,5 +1,5 @@
1
1
  import * as yup from 'yup';
2
- import { translatedErrors } from 'strapi-helper-plugin';
2
+ import { translatedErrors } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  const schema = yup.object().shape({
5
5
  name: yup.string().required(translatedErrors.required),
@@ -4,7 +4,7 @@ import { Padded } from '@buffetjs/core';
4
4
  import { Formik } from 'formik';
5
5
  import { useIntl } from 'react-intl';
6
6
  import { useRouteMatch } from 'react-router-dom';
7
- import { request, useGlobalContext } from 'strapi-helper-plugin';
7
+ import { request, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
8
8
 
9
9
  import BaselineAlignement from '../../../components/BaselineAlignement';
10
10
  import ContainerFluid from '../../../components/ContainerFluid';
@@ -1,5 +1,5 @@
1
1
  import * as yup from 'yup';
2
- import { translatedErrors } from 'strapi-helper-plugin';
2
+ import { translatedErrors } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  const schema = yup.object().shape({
5
5
  name: yup.string().required(translatedErrors.required),
@@ -4,7 +4,12 @@ import { Helmet } from 'react-helmet';
4
4
  import { useIntl } from 'react-intl';
5
5
  import { useHistory } from 'react-router-dom';
6
6
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
7
- import { useUserPermissions, PopUpWarning, request, useGlobalContext } from 'strapi-helper-plugin';
7
+ import {
8
+ useUserPermissions,
9
+ PopUpWarning,
10
+ request,
11
+ useGlobalContext,
12
+ } from '@akemona-org/strapi-helper-plugin';
8
13
 
9
14
  import permissions from '../../../permissions';
10
15
  import { EmptyRole, RoleListWrapper, RoleRow } from '../../../components/Roles';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CheckPagePermissions } from 'strapi-helper-plugin';
2
+ import { CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
3
3
  import pluginPermissions from '../../../permissions';
4
4
  import RolesCreatePage from '../CreatePage';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CheckPagePermissions } from 'strapi-helper-plugin';
2
+ import { CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
3
3
  import pluginPermissions from '../../../permissions';
4
4
  import RolesEditPage from '../EditPage';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { CheckPagePermissions } from 'strapi-helper-plugin';
2
+ import { CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
3
3
  import pluginPermissions from '../../../permissions';
4
4
 
5
5
  import RolesListPage from '../ListPage';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Switch, Route } from 'react-router-dom';
3
- import { useGlobalContext, NotFound } from 'strapi-helper-plugin';
3
+ import { useGlobalContext, NotFound } from '@akemona-org/strapi-helper-plugin';
4
4
  import pluginId from '../../pluginId';
5
5
 
6
6
  import ProtectedRolesListPage from './ProtectedListPage';
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useReducer, useEffect } from 'react';
2
- import { request } from 'strapi-helper-plugin';
2
+ import { request } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  import reducer, { initialState } from './reducer';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useEffect, useReducer, useRef } from 'react';
2
- import { useUserPermissions, request } from 'strapi-helper-plugin';
2
+ import { useUserPermissions, request } from '@akemona-org/strapi-helper-plugin';
3
3
  import { getRequestURL } from '../../utils';
4
4
  import reducer, { initialState } from './reducer';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useEffect, useReducer } from 'react';
2
- import { request } from 'strapi-helper-plugin';
2
+ import { request } from '@akemona-org/strapi-helper-plugin';
3
3
  import { useIntl } from 'react-intl';
4
4
  import { get } from 'lodash';
5
5
  import init from './init';
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useReducer, useRef } from 'react';
2
- import { request } from 'strapi-helper-plugin';
2
+ import { request } from '@akemona-org/strapi-helper-plugin';
3
3
  import { get } from 'lodash';
4
4
  import init from './init';
5
5
  import pluginId from '../../pluginId';
@@ -5,7 +5,7 @@
5
5
  // Also the strapi-generate-plugins/files/admin/src/index.js needs to be updated
6
6
  // IF THE DOC IS NOT UPDATED THE PULL REQUEST WILL NOT BE MERGED
7
7
  import React from 'react';
8
- import { CheckPagePermissions } from 'strapi-helper-plugin';
8
+ import { CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
9
9
  import pluginPkg from '../../package.json';
10
10
  import pluginLogo from './assets/images/logo.svg';
11
11
  import pluginPermissions from './permissions';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.7.4",
6
+ "version": "3.7.6",
7
7
  "description": "Protect your API with a full-authentication process based on JWT",
8
8
  "strapi": {
9
9
  "name": "Roles & Permissions",
@@ -15,8 +15,8 @@
15
15
  "test": "echo \"no tests yet\""
16
16
  },
17
17
  "dependencies": {
18
- "@akemona-org/strapi-helper-plugin": "3.7.4",
19
- "@akemona-org/strapi-utils": "3.7.4",
18
+ "@akemona-org/strapi-helper-plugin": "3.7.6",
19
+ "@akemona-org/strapi-utils": "3.7.6",
20
20
  "@buffetjs/core": "3.3.8",
21
21
  "@buffetjs/custom": "3.3.8",
22
22
  "@buffetjs/hooks": "3.3.8",
@@ -66,5 +66,5 @@
66
66
  "npm": ">=6.0.0"
67
67
  },
68
68
  "license": "SEE LICENSE IN LICENSE",
69
- "gitHead": "a627972678ce3f460d6b1786adb976f1d3a7c35d"
69
+ "gitHead": "3e3580e11b6ab7771c367cbc018d49ba0c2208df"
70
70
  }