@akemona-org/strapi-admin 3.7.2 → 3.7.5

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 (90) hide show
  1. package/admin/src/app.js +1 -1
  2. package/admin/src/components/FormBloc/index.js +1 -1
  3. package/admin/src/components/HeaderSearch/HeaderSearch.js +1 -1
  4. package/admin/src/components/HeaderSearch/index.js +1 -1
  5. package/admin/src/components/IntlInput/index.js +1 -1
  6. package/admin/src/components/Notifications/Notification/Li.js +1 -1
  7. package/admin/src/components/Roles/ConditionsModal/index.js +1 -1
  8. package/admin/src/components/Roles/EmptyRole/index.js +1 -1
  9. package/admin/src/components/Roles/Permissions/index.js +1 -1
  10. package/admin/src/components/Roles/PluginsAndSettings/Row/index.js +1 -1
  11. package/admin/src/components/Roles/PluginsAndSettings/SubCategory/index.js +1 -1
  12. package/admin/src/components/Roles/Tabs/index.js +1 -1
  13. package/admin/src/components/UpgradePlanModal/index.js +1 -1
  14. package/admin/src/components/Users/FilterPicker/Button.js +1 -1
  15. package/admin/src/components/Users/Footer/index.js +1 -1
  16. package/admin/src/components/Users/List/index.js +1 -1
  17. package/admin/src/components/Users/ModalCreateBody/index.js +1 -1
  18. package/admin/src/components/Users/ModalCreateBody/utils/schema.js +1 -1
  19. package/admin/src/components/Users/RoleSettingsModalSection/index.js +1 -1
  20. package/admin/src/components/Users/SelectRoles/index.js +1 -1
  21. package/admin/src/components/Users/SortPicker/Button.js +1 -1
  22. package/admin/src/components/Users/SortPicker/ListWrapper.js +1 -1
  23. package/admin/src/components/Users/SortPicker/StyledListItem.js +1 -1
  24. package/admin/src/components/Webhooks/HeadersInput/index.js +1 -1
  25. package/admin/src/components/Webhooks/ListRow/StyledListRow.js +1 -1
  26. package/admin/src/components/Webhooks/Switch/index.js +1 -1
  27. package/admin/src/containers/Admin/Logout/index.js +1 -1
  28. package/admin/src/containers/Admin/index.js +1 -1
  29. package/admin/src/containers/App/index.js +1 -1
  30. package/admin/src/containers/ApplicationInfosPage/components/Link/index.js +1 -1
  31. package/admin/src/containers/ApplicationInfosPage/index.js +1 -1
  32. package/admin/src/containers/AuthPage/components/AuthLink/index.js +1 -1
  33. package/admin/src/containers/AuthPage/components/ForgotPassword/index.js +1 -1
  34. package/admin/src/containers/AuthPage/components/ForgotPasswordSuccess/index.js +1 -1
  35. package/admin/src/containers/AuthPage/components/Login/BaseLogin.js +1 -1
  36. package/admin/src/containers/AuthPage/components/Oops/index.js +1 -1
  37. package/admin/src/containers/AuthPage/components/ResetPassword/index.js +1 -1
  38. package/admin/src/containers/AuthPage/index.js +1 -1
  39. package/admin/src/containers/AuthPage/utils/forms.js +1 -1
  40. package/admin/src/containers/HomePage/BlogPost.js +1 -1
  41. package/admin/src/containers/HomePage/index.js +1 -1
  42. package/admin/src/containers/InstalledPluginsPage/Row.js +5 -1
  43. package/admin/src/containers/InstalledPluginsPage/index.js +1 -1
  44. package/admin/src/containers/LeftMenu/Loader.js +1 -1
  45. package/admin/src/containers/LeftMenu/useMenuSections.js +1 -1
  46. package/admin/src/containers/LeftMenu/utils/checkPermissions.js +1 -1
  47. package/admin/src/containers/LeftMenu/utils/getCtOrStLinks.js +1 -1
  48. package/admin/src/containers/MarketplacePage/MarketplaceBanner/index.js +1 -1
  49. package/admin/src/containers/MarketplacePage/PluginCard/index.js +1 -1
  50. package/admin/src/containers/MarketplacePage/index.js +1 -1
  51. package/admin/src/containers/NotFoundPage/index.js +1 -1
  52. package/admin/src/containers/Onboarding/index.js +1 -1
  53. package/admin/src/containers/PermissionsManager/index.js +1 -1
  54. package/admin/src/containers/PluginDispatcher/index.js +1 -1
  55. package/admin/src/containers/PrivateRoute/index.js +1 -1
  56. package/admin/src/containers/ProfilePage/index.js +1 -1
  57. package/admin/src/containers/ProfilePage/utils/schema.js +1 -1
  58. package/admin/src/containers/Roles/EditPage/index.js +1 -1
  59. package/admin/src/containers/Roles/EditPage/utils/schema.js +1 -1
  60. package/admin/src/containers/Roles/ListPage/index.js +6 -1
  61. package/admin/src/containers/Roles/ProtectedEditPage/index.js +1 -1
  62. package/admin/src/containers/Roles/ProtectedListPage/index.js +1 -1
  63. package/admin/src/containers/SettingsPage/components/ApplicationDetailLink/index.js +1 -1
  64. package/admin/src/containers/SettingsPage/components/SettingDispatcher/index.js +1 -1
  65. package/admin/src/containers/SettingsPage/components/StyledLeftMenu/index.js +1 -1
  66. package/admin/src/containers/SettingsPage/index.js +1 -1
  67. package/admin/src/containers/Users/EditPage/index.js +6 -1
  68. package/admin/src/containers/Users/ListPage/Header.js +1 -1
  69. package/admin/src/containers/Users/ListPage/ModalForm.js +6 -1
  70. package/admin/src/containers/Users/ListPage/index.js +1 -1
  71. package/admin/src/containers/Users/ProtectedEditPage/index.js +1 -1
  72. package/admin/src/containers/Users/ProtectedListPage/index.js +1 -1
  73. package/admin/src/containers/Webhooks/EditView/index.js +1 -1
  74. package/admin/src/containers/Webhooks/EditView/utils/schema.js +1 -1
  75. package/admin/src/containers/Webhooks/ListView/index.js +1 -1
  76. package/admin/src/containers/Webhooks/ProtectedCreateView/index.js +1 -1
  77. package/admin/src/containers/Webhooks/ProtectedEditView/index.js +1 -1
  78. package/admin/src/containers/Webhooks/ProtectedListView/index.js +1 -1
  79. package/admin/src/hooks/useFetchPermissionsLayout/index.js +1 -1
  80. package/admin/src/hooks/useFetchPluginsFromMarketPlace/index.js +1 -1
  81. package/admin/src/hooks/useFetchRole/index.js +1 -1
  82. package/admin/src/hooks/useModels/index.js +1 -1
  83. package/admin/src/hooks/useRolesList/index.js +1 -1
  84. package/admin/src/hooks/useSettingsForm/index.js +1 -1
  85. package/admin/src/hooks/useSettingsMenu/index.js +1 -1
  86. package/admin/src/utils/checkFormValidity.js +1 -1
  87. package/admin/src/validations/users/profile.js +1 -1
  88. package/admin/src/validations/users/roles.js +1 -1
  89. package/index.js +1 -1
  90. package/package.json +4 -4
package/admin/src/app.js CHANGED
@@ -28,7 +28,7 @@ import ReactDOM from 'react-dom';
28
28
  import { Provider } from 'react-redux';
29
29
  import { BrowserRouter } from 'react-router-dom';
30
30
  // Strapi provider with the internal APIs
31
- import { StrapiProvider } from 'strapi-helper-plugin';
31
+ import { StrapiProvider } from '@akemona-org/strapi-helper-plugin';
32
32
  import { merge } from 'lodash';
33
33
  import Fonts from './components/Fonts';
34
34
  import { freezeApp, pluginLoaded, unfreezeApp, updatePlugin } from './containers/App/actions';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Flex, Padded, Text } from '@buffetjs/core';
3
- import { BaselineAlignment, LoadingIndicator, Row } from 'strapi-helper-plugin';
3
+ import { BaselineAlignment, LoadingIndicator, Row } from '@akemona-org/strapi-helper-plugin';
4
4
  import PropTypes from 'prop-types';
5
5
  import Bloc from '../Bloc';
6
6
 
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import { HeaderSearch as Base } from 'strapi-helper-plugin';
2
+ import { HeaderSearch as Base } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  const HeaderSearch = styled(Base)`
5
5
  left: 32rem;
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { upperFirst } from 'lodash';
4
4
  import { useHistory } from 'react-router-dom';
5
5
  import { useIntl } from 'react-intl';
6
- import { useQuery } from 'strapi-helper-plugin';
6
+ import { useQuery } from '@akemona-org/strapi-helper-plugin';
7
7
  import StyledHeaderSearch from './HeaderSearch';
8
8
 
9
9
  const HeaderSearch = ({ label, queryParameter }) => {
@@ -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 styled, { createGlobalStyle } from 'styled-components';
2
- import { themePropTypes } from 'strapi-helper-plugin';
2
+ import { themePropTypes } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  const GlobalNotification = createGlobalStyle`
5
5
  .notificationIcon {
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo, useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { cloneDeep, get, groupBy, set } from 'lodash';
4
- import { Modal, ModalHeader, ModalFooter } from 'strapi-helper-plugin';
4
+ import { Modal, ModalHeader, ModalFooter } from '@akemona-org/strapi-helper-plugin';
5
5
  import { Button, Text, Padded } from '@buffetjs/core';
6
6
  import { useIntl } from 'react-intl';
7
7
  import { usePermissionsDataManager } from '../../../hooks';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Flex, Padded, Text } from '@buffetjs/core';
3
3
  import { useIntl } from 'react-intl';
4
- import { BaselineAlignment, useQuery } from 'strapi-helper-plugin';
4
+ import { BaselineAlignment, useQuery } from '@akemona-org/strapi-helper-plugin';
5
5
 
6
6
  const EmptyRole = () => {
7
7
  const { formatMessage } = useIntl();
@@ -1,6 +1,6 @@
1
1
  import React, { forwardRef, memo, useCallback, useImperativeHandle, useReducer } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { difference } from 'strapi-helper-plugin';
3
+ import { difference } from '@akemona-org/strapi-helper-plugin';
4
4
  import { has, isEmpty } from 'lodash';
5
5
  import Tabs from '../Tabs';
6
6
  import PermissionsDataManagerProvider from '../PermissionsDataManagerProvider';
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { Flex, Text } from '@buffetjs/core';
3
3
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
- import { PermissionsWrapper, RowContainer } from 'strapi-helper-plugin';
4
+ import { PermissionsWrapper, RowContainer } from '@akemona-org/strapi-helper-plugin';
5
5
  import PropTypes from 'prop-types';
6
6
  import { useIntl } from 'react-intl';
7
7
  import SubCategory from '../SubCategory';
@@ -3,7 +3,7 @@ import styled from 'styled-components';
3
3
  import PropTypes from 'prop-types';
4
4
  import { Flex, Padded, Text, Checkbox } from '@buffetjs/core';
5
5
  import { useIntl } from 'react-intl';
6
- import { BaselineAlignment } from 'strapi-helper-plugin';
6
+ import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
7
7
  import { get } from 'lodash';
8
8
  import IS_DISABLED from 'ee_else_ce/components/Roles/PluginsAndSettings/SubCategory/utils/constants';
9
9
  import { usePermissionsDataManager } from '../../../../hooks';
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import { Flex, Text, Padded } from '@buffetjs/core';
3
3
  import PropTypes from 'prop-types';
4
- import { LoadingIndicator } from 'strapi-helper-plugin';
4
+ import { LoadingIndicator } from '@akemona-org/strapi-helper-plugin';
5
5
  import { useIntl } from 'react-intl';
6
6
 
7
7
  import TabsWrapper from './TabsWrapper';
@@ -3,7 +3,7 @@
3
3
  import React, { useRef } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Button, Padded, Text } from '@buffetjs/core';
6
- import { Modal } from 'strapi-helper-plugin';
6
+ import { Modal } from '@akemona-org/strapi-helper-plugin';
7
7
  import { useIntl } from 'react-intl';
8
8
  import { Arrow, Download, Option, Wrapper } from './components';
9
9
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FormattedMessage } from 'react-intl';
3
- import { FilterIcon } from 'strapi-helper-plugin';
3
+ import { FilterIcon } from '@akemona-org/strapi-helper-plugin';
4
4
 
5
5
  const Button = () => {
6
6
  return (
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { PageFooter } from 'strapi-helper-plugin';
3
+ import { PageFooter } from '@akemona-org/strapi-helper-plugin';
4
4
  import { Padded } from '@buffetjs/core';
5
5
  import Wrapper from './Wrapper';
6
6
 
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
4
  import { faTrashAlt, faPencilAlt } from '@fortawesome/free-solid-svg-icons';
5
5
  import { Table } from '@buffetjs/core';
6
- import { useGlobalContext } from 'strapi-helper-plugin';
6
+ import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
7
7
  import { useHistory } from 'react-router-dom';
8
8
  import { SETTINGS_BASE_URL } from '../../../config';
9
9
  import { checkIfAllEntriesAreSelected, getSelectedIds, headers } from './utils';
@@ -1,6 +1,6 @@
1
1
  import React, { forwardRef, useReducer, useImperativeHandle, useRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { BaselineAlignment, ModalSection, request } from 'strapi-helper-plugin';
3
+ import { BaselineAlignment, ModalSection, request } from '@akemona-org/strapi-helper-plugin';
4
4
  import { useIntl } from 'react-intl';
5
5
  import { get } from 'lodash';
6
6
  import { Padded, Text } from '@buffetjs/core';
@@ -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
  firstname: yup.string().required(translatedErrors.required),
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { ModalSection } from 'strapi-helper-plugin';
3
+ import { ModalSection } from '@akemona-org/strapi-helper-plugin';
4
4
  import { Padded } from '@buffetjs/core';
5
5
  import { Row } from 'reactstrap';
6
6
  import { useIntl } from 'react-intl';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import Select from 'react-select';
4
4
  import { Padded } from '@buffetjs/core';
5
- import { useGlobalContext } from 'strapi-helper-plugin';
5
+ import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
6
6
  import { useRolesList } from '../../../hooks';
7
7
  import styles from './utils/styles';
8
8
  import ClearIndicator from './ClearIndicator';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FormattedMessage } from 'react-intl';
3
- import { Carret } from 'strapi-helper-plugin';
3
+ import { Carret } from '@akemona-org/strapi-helper-plugin';
4
4
 
5
5
  const Button = (isOpen) => {
6
6
  return (
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { themePropTypes } from 'strapi-helper-plugin';
3
+ import { themePropTypes } from '@akemona-org/strapi-helper-plugin';
4
4
  import { Text } from '@buffetjs/core';
5
5
 
6
6
  const ListWrapper = styled((props) => <Text as="ul" fontSize="md" {...props} />)`
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import PropTypes from 'prop-types';
3
- import { themePropTypes } from 'strapi-helper-plugin';
3
+ import { themePropTypes } from '@akemona-org/strapi-helper-plugin';
4
4
 
5
5
  /* eslint-disable indent */
6
6
 
@@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
3
3
  import CreatableSelect from 'react-select/creatable';
4
4
  import PropTypes from 'prop-types';
5
5
  import { get } from 'lodash';
6
- import { CircleButton } from 'strapi-helper-plugin';
6
+ import { CircleButton } from '@akemona-org/strapi-helper-plugin';
7
7
  import { InputText } from '@buffetjs/core';
8
8
  import { Plus } from '@buffetjs/icons';
9
9
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  import styled from 'styled-components';
8
8
  import { CustomRow as Row } from '@buffetjs/styles';
9
- import { sizes } from 'strapi-helper-plugin';
9
+ import { sizes } from '@akemona-org/strapi-helper-plugin';
10
10
 
11
11
  const StyledListRow = styled(Row)`
12
12
  cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')};
@@ -6,7 +6,7 @@
6
6
 
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
- import { useGlobalContext } from 'strapi-helper-plugin';
9
+ import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
10
10
 
11
11
  import Toggle from './Toggle';
12
12
  import Wrapper from './Wrapper';
@@ -11,7 +11,7 @@ import { withRouter } from 'react-router-dom';
11
11
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
12
12
  import { ButtonDropdown, DropdownItem, DropdownMenu, DropdownToggle } from 'reactstrap';
13
13
  import { get } from 'lodash';
14
- import { auth } from 'strapi-helper-plugin';
14
+ import { auth } from '@akemona-org/strapi-helper-plugin';
15
15
  import Wrapper from './components';
16
16
 
17
17
  const Logout = ({ history: { push } }) => {
@@ -21,7 +21,7 @@ import {
21
21
  OverlayBlocker,
22
22
  CheckPagePermissions,
23
23
  request,
24
- } from 'strapi-helper-plugin';
24
+ } from '@akemona-org/strapi-helper-plugin';
25
25
  import { SETTINGS_BASE_URL, SHOW_TUTORIALS, STRAPI_UPDATE_NOTIF } from '../../config';
26
26
  import { checkLatestStrapiVersion } from '../../utils';
27
27
 
@@ -16,7 +16,7 @@ import PropTypes from 'prop-types';
16
16
  import { Switch, Route } from 'react-router-dom';
17
17
  import { connect } from 'react-redux';
18
18
  import { bindActionCreators, compose } from 'redux';
19
- import { LoadingIndicatorPage, auth, request } from 'strapi-helper-plugin';
19
+ import { LoadingIndicatorPage, auth, request } from '@akemona-org/strapi-helper-plugin';
20
20
  import { QueryClientProvider, QueryClient } from 'react-query';
21
21
 
22
22
  import GlobalStyle from '../../components/GlobalStyle';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Padded } from '@buffetjs/core';
3
3
  import PropTypes from 'prop-types';
4
- import { BaselineAlignment } from 'strapi-helper-plugin';
4
+ import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
5
5
  import LinkText, { LinkArrow } from './components';
6
6
 
7
7
  const Link = ({ href, label }) => {
@@ -4,7 +4,7 @@ import { Flex, Padded, Text } from '@buffetjs/core';
4
4
  import { useSelector } from 'react-redux';
5
5
  import { createSelector } from 'reselect';
6
6
  import { useIntl } from 'react-intl';
7
- import { BaselineAlignment } from 'strapi-helper-plugin';
7
+ import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
8
8
  import Bloc from '../../components/Bloc';
9
9
  import PageTitle from '../../components/SettingsPageTitle';
10
10
  import makeSelectApp from '../App/selectors';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Text } from '@buffetjs/core';
3
3
  import { useIntl } from 'react-intl';
4
4
  import PropTypes from 'prop-types';
5
- import { BaselineAlignment } from 'strapi-helper-plugin';
5
+ import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
6
6
  import Section from '../Section';
7
7
  import Link from './Link';
8
8
  import Wrapper from './Wrapper';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
3
  import { Padded } from '@buffetjs/core';
4
4
  import PropTypes from 'prop-types';
5
- import { BaselineAlignment } from 'strapi-helper-plugin';
5
+ import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
6
6
  import Button from '../../../../components/FullWidthButton';
7
7
  import AuthLink from '../AuthLink';
8
8
  import Input from '../Input';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Padded, Text } from '@buffetjs/core';
3
3
  import { useIntl } from 'react-intl';
4
4
  import { useHistory } from 'react-router-dom';
5
- import { BaselineAlignment } from 'strapi-helper-plugin';
5
+ import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
6
6
  import Button from '../../../../components/FullWidthButton';
7
7
  import Box from '../Box';
8
8
  import Logo from '../Logo';
@@ -3,7 +3,7 @@ import { Checkbox } from '@buffetjs/core';
3
3
  import { useIntl } from 'react-intl';
4
4
  import { get } from 'lodash';
5
5
  import PropTypes from 'prop-types';
6
- import { BaselineAlignment } from 'strapi-helper-plugin';
6
+ import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
7
7
 
8
8
  import Button from '../../../../components/FullWidthButton';
9
9
  import AuthLink from '../AuthLink';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Text, Padded } from '@buffetjs/core';
3
3
  import { useHistory } from 'react-router-dom';
4
4
  import { useIntl } from 'react-intl';
5
- import { BaselineAlignment, useQuery } from 'strapi-helper-plugin';
5
+ import { BaselineAlignment, useQuery } from '@akemona-org/strapi-helper-plugin';
6
6
  import Button from '../../../../components/FullWidthButton';
7
7
  import OopsLogo from '../../../../assets/images/oops.png';
8
8
  import Box from '../Box';
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
3
3
  import { Padded } from '@buffetjs/core';
4
4
  import { get } from 'lodash';
5
5
  import PropTypes from 'prop-types';
6
- import { BaselineAlignment } from 'strapi-helper-plugin';
6
+ import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
7
7
  import Button from '../../../../components/FullWidthButton';
8
8
  import AuthLink from '../AuthLink';
9
9
  import Input from '../Input';
@@ -2,7 +2,7 @@ import React, { useEffect, useReducer } from 'react';
2
2
  import axios from 'axios';
3
3
  import { camelCase, get, omit, upperFirst } from 'lodash';
4
4
  import { Redirect, useRouteMatch, useHistory } from 'react-router-dom';
5
- import { BaselineAlignment, auth, useQuery } from 'strapi-helper-plugin';
5
+ import { BaselineAlignment, auth, useQuery } from '@akemona-org/strapi-helper-plugin';
6
6
  import { Padded } from '@buffetjs/core';
7
7
  import PropTypes from 'prop-types';
8
8
  import forms from 'ee_else_ce/containers/AuthPage/utils/forms';
@@ -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
  import Login from 'ee_else_ce/containers/AuthPage/components/Login';
4
4
  import ForgotPassword from '../components/ForgotPassword';
5
5
  import ForgotPasswordSuccess from '../components/ForgotPasswordSuccess';
@@ -1,6 +1,6 @@
1
1
  import React, { memo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { LoadingBar } from 'strapi-helper-plugin';
3
+ import { LoadingBar } from '@akemona-org/strapi-helper-plugin';
4
4
 
5
5
  const BlogPost = ({ error, isFirst, isLoading, title, content, link }) => {
6
6
  if (isLoading) {
@@ -7,7 +7,7 @@
7
7
  import React, { memo, useMemo } from 'react';
8
8
  import { FormattedMessage } from 'react-intl';
9
9
  import { get, upperFirst } from 'lodash';
10
- import { auth, LoadingIndicatorPage } from 'strapi-helper-plugin';
10
+ import { auth, LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
11
11
  import PageTitle from '../../components/PageTitle';
12
12
  import { useModels } from '../../hooks';
13
13
 
@@ -2,7 +2,11 @@ import React, { useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { IconLinks, Text } from '@buffetjs/core';
4
4
  import { CustomRow } from '@buffetjs/styles';
5
- import { useGlobalContext, PopUpWarning, CheckPermissions } from 'strapi-helper-plugin';
5
+ import {
6
+ useGlobalContext,
7
+ PopUpWarning,
8
+ CheckPermissions,
9
+ } from '@akemona-org/strapi-helper-plugin';
6
10
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
7
11
  import { faTrashAlt } from '@fortawesome/free-solid-svg-icons';
8
12
  import adminPermissions from '../../permissions';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useGlobalContext, request } from 'strapi-helper-plugin';
2
+ import { useGlobalContext, request } from '@akemona-org/strapi-helper-plugin';
3
3
  import { Header, List } from '@buffetjs/custom';
4
4
  import PageTitle from '../../components/PageTitle';
5
5
  import ContainerFluid from '../../components/ContainerFluid';
@@ -8,7 +8,7 @@
8
8
 
9
9
  import React from 'react';
10
10
  import { createPortal } from 'react-dom';
11
- import { LoadingIndicatorPage } from 'strapi-helper-plugin';
11
+ import { LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
12
12
  import PropTypes from 'prop-types';
13
13
  import LoaderWrapper from './LoaderWrapper';
14
14
 
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef } from 'react';
2
- import { useUser } from 'strapi-helper-plugin';
2
+ import { useUser } from '@akemona-org/strapi-helper-plugin';
3
3
  import { useSelector, useDispatch } from 'react-redux';
4
4
  import getCtOrStLinks from './utils/getCtOrStLinks';
5
5
  import getPluginSectionLinks from './utils/getPluginSectionLinks';
@@ -1,4 +1,4 @@
1
- import { hasPermissions } from 'strapi-helper-plugin';
1
+ import { hasPermissions } from '@akemona-org/strapi-helper-plugin';
2
2
 
3
3
  /**
4
4
  * This function resolves an array of Promises<boolean>
@@ -1,4 +1,4 @@
1
- import { request } from 'strapi-helper-plugin';
1
+ import { request } from '@akemona-org/strapi-helper-plugin';
2
2
  import generateModelsLinks from './generateModelsLinks';
3
3
  import checkPermissions from './checkPermissions';
4
4
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FormattedMessage, useIntl } from 'react-intl';
3
- import { useGlobalContext } from 'strapi-helper-plugin';
3
+ import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
4
4
  import Wrapper from './Wrapper';
5
5
  import LogoStrapi from '../../../assets/images/banner_strapi-rocket.png';
6
6
 
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import { FormattedMessage } from 'react-intl';
10
- import { Button, PopUpWarning, CheckPermissions } from 'strapi-helper-plugin';
10
+ import { Button, PopUpWarning, CheckPermissions } from '@akemona-org/strapi-helper-plugin';
11
11
  import adminPermissions from '../../../permissions';
12
12
  import Wrapper from './Wrapper';
13
13
 
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
- import { LoadingIndicatorPage, useGlobalContext, request } from 'strapi-helper-plugin';
2
+ import { LoadingIndicatorPage, useGlobalContext, request } from '@akemona-org/strapi-helper-plugin';
3
3
  import { Header } from '@buffetjs/custom';
4
4
  import { useHistory } from 'react-router-dom';
5
5
 
@@ -11,7 +11,7 @@
11
11
 
12
12
  import React from 'react';
13
13
  import PropTypes from 'prop-types';
14
- import { NotFound } from 'strapi-helper-plugin';
14
+ import { NotFound } from '@akemona-org/strapi-helper-plugin';
15
15
 
16
16
  const NotFoundPage = (props) => <NotFound {...props} />;
17
17
 
@@ -4,7 +4,7 @@ import axios from 'axios';
4
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
5
  import { faQuestion, faTimes } from '@fortawesome/free-solid-svg-icons';
6
6
  import cn from 'classnames';
7
- import { useGlobalContext } from 'strapi-helper-plugin';
7
+ import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
8
8
 
9
9
  import formatVideoArray from './utils/formatAndStoreVideoArray';
10
10
 
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { useSelector, useDispatch } from 'react-redux';
4
- import { LoadingIndicatorPage, UserProvider, request } from 'strapi-helper-plugin';
4
+ import { LoadingIndicatorPage, UserProvider, request } from '@akemona-org/strapi-helper-plugin';
5
5
  import {
6
6
  getUserPermissions,
7
7
  getUserPermissionsError,
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
9
9
  import { Redirect } from 'react-router-dom';
10
10
  import { get } from 'lodash';
11
11
  import { ErrorBoundary } from 'react-error-boundary';
12
- import { BlockerComponent, ErrorFallback } from 'strapi-helper-plugin';
12
+ import { BlockerComponent, ErrorFallback } from '@akemona-org/strapi-helper-plugin';
13
13
  import PageTitle from '../../components/PageTitle';
14
14
  import { LOGIN_LOGO } from '../../config';
15
15
 
@@ -10,7 +10,7 @@
10
10
  import React, { memo } from 'react';
11
11
  import { Redirect, Route } from 'react-router-dom';
12
12
  import PropTypes from 'prop-types';
13
- import { auth } from 'strapi-helper-plugin';
13
+ import { auth } from '@akemona-org/strapi-helper-plugin';
14
14
 
15
15
  /* eslint-disable react/jsx-curly-newline */
16
16
 
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } from 'react';
2
- import { BaselineAlignment, auth, Select, Option } from 'strapi-helper-plugin';
2
+ import { BaselineAlignment, auth, Select, Option } from '@akemona-org/strapi-helper-plugin';
3
3
  import { Padded, Text } from '@buffetjs/core';
4
4
  import { Col } from 'reactstrap';
5
5
  import { get } from 'lodash';
@@ -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
  import { profileValidation } from '../../../validations/users';
4
4
 
5
5
  const schema = yup.object().shape({
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useRef } from 'react';
2
2
  import { useRouteMatch } from 'react-router-dom';
3
3
  import get from 'lodash/get';
4
- import { BaselineAlignment, useGlobalContext, request } from 'strapi-helper-plugin';
4
+ import { BaselineAlignment, useGlobalContext, request } from '@akemona-org/strapi-helper-plugin';
5
5
  import { Header } from '@buffetjs/custom';
6
6
  import { Padded } from '@buffetjs/core';
7
7
  import { Formik } from 'formik';
@@ -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),
@@ -6,7 +6,12 @@ import matchSorter from 'match-sorter';
6
6
  import { useIntl } from 'react-intl';
7
7
  import { useHistory } from 'react-router-dom';
8
8
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
9
- import { ListButton, useGlobalContext, useQuery, useUserPermissions } from 'strapi-helper-plugin';
9
+ import {
10
+ ListButton,
11
+ useGlobalContext,
12
+ useQuery,
13
+ useUserPermissions,
14
+ } from '@akemona-org/strapi-helper-plugin';
10
15
  import adminPermissions from '../../../permissions';
11
16
  import PageTitle from '../../../components/SettingsPageTitle';
12
17
  import { EmptyRole, RoleListWrapper, RoleRow } from '../../../components/Roles';
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } from 'react';
2
- import { useUserPermissions, LoadingIndicatorPage } from 'strapi-helper-plugin';
2
+ import { useUserPermissions, LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
3
3
  import { Redirect } from 'react-router-dom';
4
4
  import adminPermissions from '../../../permissions';
5
5
  import EditPage from '../EditPage';
@@ -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 adminPermissions from '../../../permissions';
4
4
  import ListPage from '../ListPage';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import React, { memo } from 'react';
2
2
  import { Text } from '@buffetjs/core';
3
3
  import { FormattedMessage } from 'react-intl';
4
- import { useGlobalContext } from 'strapi-helper-plugin';
4
+ import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
5
5
  import Icon from './Icon';
6
6
  import Link from './Link';
7
7
  import Notif from './Notif';
@@ -1,5 +1,5 @@
1
1
  import React, { memo } from 'react';
2
- import { useGlobalContext } from 'strapi-helper-plugin';
2
+ import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
3
3
  import { get } from 'lodash';
4
4
  import { useParams } from 'react-router-dom';
5
5
  import PageTitle from '../../../../components/SettingsPageTitle';
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import { LeftMenu } from 'strapi-helper-plugin';
2
+ import { LeftMenu } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  // Min height and height need to be unset to avoid the double overflow on the settings page.
5
5
  const StyledLeftMenu = styled(LeftMenu)`
@@ -15,7 +15,7 @@ import {
15
15
  useGlobalContext,
16
16
  LeftMenuList,
17
17
  LoadingIndicatorPage,
18
- } from 'strapi-helper-plugin';
18
+ } from '@akemona-org/strapi-helper-plugin';
19
19
  import { Switch, Redirect, Route, useParams, useHistory } from 'react-router-dom';
20
20
  import { useIntl } from 'react-intl';
21
21
  import HeaderSearch from '../../components/HeaderSearch';
@@ -2,7 +2,12 @@ import React from 'react';
2
2
  import { useRouteMatch } from 'react-router-dom';
3
3
  import { useIntl } from 'react-intl';
4
4
  import { get, isEmpty } from 'lodash';
5
- import { BaselineAlignment, useGlobalContext, SizedInput, auth } from 'strapi-helper-plugin';
5
+ import {
6
+ BaselineAlignment,
7
+ useGlobalContext,
8
+ SizedInput,
9
+ auth,
10
+ } from '@akemona-org/strapi-helper-plugin';
6
11
  import { Col } from 'reactstrap';
7
12
  import { Padded } from '@buffetjs/core';
8
13
  import PropTypes from 'prop-types';
@@ -1,6 +1,6 @@
1
1
  import React, { memo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { useGlobalContext } from 'strapi-helper-plugin';
3
+ import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
4
4
  import { Button } from '@buffetjs/core';
5
5
  import { Header as HeaderCompo } from '@buffetjs/custom';
6
6
  import { Envelope } from '@buffetjs/icons';
@@ -1,7 +1,12 @@
1
1
  import React, { useRef, useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Button } from '@buffetjs/core';
4
- import { Modal, ModalFooter, ModalHeader, useGlobalContext } from 'strapi-helper-plugin';
4
+ import {
5
+ Modal,
6
+ ModalFooter,
7
+ ModalHeader,
8
+ useGlobalContext,
9
+ } from '@akemona-org/strapi-helper-plugin';
5
10
  import stepper from './stepper';
6
11
 
7
12
  const ModalForm = ({ isOpen, onClosed, onToggle }) => {
@@ -6,7 +6,7 @@ import {
6
6
  useUserPermissions,
7
7
  LoadingIndicatorPage,
8
8
  PopUpWarning,
9
- } from 'strapi-helper-plugin';
9
+ } from '@akemona-org/strapi-helper-plugin';
10
10
  import { get } from 'lodash';
11
11
  import { useHistory, useLocation } from 'react-router-dom';
12
12
  import { Flex, Padded } from '@buffetjs/core';
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useMemo } from 'react';
2
- import { useUserPermissions, LoadingIndicatorPage } from 'strapi-helper-plugin';
2
+ import { useUserPermissions, LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
3
3
  import { Redirect, useLocation } from 'react-router-dom';
4
4
  import { get } from 'lodash';
5
5
  import adminPermissions from '../../../permissions';
@@ -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 adminPermissions from '../../../permissions';
4
4
  import ListPage from '../ListPage';
5
5
 
@@ -15,7 +15,7 @@ import {
15
15
  getYupInnerErrors,
16
16
  BackHeader,
17
17
  LoadingIndicatorPage,
18
- } from 'strapi-helper-plugin';
18
+ } from '@akemona-org/strapi-helper-plugin';
19
19
  import { useModels } from '../../../hooks';
20
20
  import PageTitle from '../../../components/SettingsPageTitle';
21
21
  import { Inputs, TriggerContainer } from '../../../components/Webhooks';
@@ -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
  import { NAME_REGEX, URL_REGEX } from './fieldsRegex';
4
4
 
5
5
  const schema = yup.object().shape({
@@ -18,7 +18,7 @@ import {
18
18
  useUserPermissions,
19
19
  LoadingIndicatorPage,
20
20
  EmptyState,
21
- } from 'strapi-helper-plugin';
21
+ } from '@akemona-org/strapi-helper-plugin';
22
22
  import adminPermissions from '../../../permissions';
23
23
  import PageTitle from '../../../components/SettingsPageTitle';
24
24
  import { ListRow } from '../../../components/Webhooks';
@@ -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 adminPermissions from '../../../permissions';
4
4
  import EditView from '../EditView';
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 adminPermissions from '../../../permissions';
4
4
  import EditView from '../EditView';
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 adminPermissions from '../../../permissions';
4
4
  import ListView from '../ListView';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useReducer } 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,6 +1,6 @@
1
1
  import { useEffect, useState } from 'react';
2
2
  import axios from 'axios';
3
- import { useGlobalContext } from 'strapi-helper-plugin';
3
+ import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
4
4
 
5
5
  const useFetchPluginsFromMarketPlace = () => {
6
6
  const { currentLocale } = useGlobalContext();
@@ -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
  import reducer, { initialState } from './reducer';
4
4
 
5
5
  const useFetchRole = (id) => {
@@ -1,5 +1,5 @@
1
1
  import { 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 { useEffect, useReducer } 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 reducer, { initialState } from './reducer';
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useReducer } from 'react';
2
- import { request } from 'strapi-helper-plugin';
2
+ import { request } from '@akemona-org/strapi-helper-plugin';
3
3
  import { get, has, omit } from 'lodash';
4
4
  import { checkFormValidity, formatAPIErrors } from '../../utils';
5
5
  import { initialState, reducer } from './reducer';
@@ -1,5 +1,5 @@
1
1
  import { useContext, useEffect, useReducer } from 'react';
2
- import { useGlobalContext, hasPermissions, UserContext } from 'strapi-helper-plugin';
2
+ import { useGlobalContext, hasPermissions, UserContext } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  import reducer, { initialState } from './reducer';
5
5
  import init from './init';
@@ -1,4 +1,4 @@
1
- import { getYupInnerErrors } from 'strapi-helper-plugin';
1
+ import { getYupInnerErrors } from '@akemona-org/strapi-helper-plugin';
2
2
 
3
3
  const checkFormValidity = async (data, schema) => {
4
4
  let errors = null;
@@ -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 = {
5
5
  firstname: yup.mixed().required(translatedErrors.required),
@@ -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 = {
5
5
  roles: yup.array().min(1).required(translatedErrors.required),
package/index.js CHANGED
@@ -8,7 +8,7 @@ const WebpackDevServer = require('webpack-dev-server');
8
8
  const chalk = require('chalk');
9
9
  const chokidar = require('chokidar');
10
10
  // eslint-disable-next-line node/no-extraneous-require
11
- const hasEE = require('strapi/lib/utils/ee');
11
+ const hasEE = false;
12
12
  const getWebpackConfig = require('./webpack.config');
13
13
 
14
14
  const getPkgPath = (name) => path.dirname(require.resolve(`${name}/package.json`));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.7.2",
6
+ "version": "3.7.5",
7
7
  "description": "Strapi Admin",
8
8
  "repository": {
9
9
  "type": "git",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "main": "index.js",
19
19
  "dependencies": {
20
- "@akemona-org/strapi-helper-plugin": "3.7.2",
21
- "@akemona-org/strapi-utils": "3.7.2",
20
+ "@akemona-org/strapi-helper-plugin": "3.7.5",
21
+ "@akemona-org/strapi-utils": "3.7.5",
22
22
  "@babel/core": "^7.14.0",
23
23
  "@babel/plugin-proposal-async-generator-functions": "^7.13.15",
24
24
  "@babel/plugin-proposal-class-properties": "^7.12.1",
@@ -125,5 +125,5 @@
125
125
  "devDependencies": {
126
126
  "webpack-bundle-analyzer": "4.4.0"
127
127
  },
128
- "gitHead": "4ab59dbae5135819558c6ae27b45a556ff27cf55"
128
+ "gitHead": "c248936761bebd2fe75189c248a761c95a091fe0"
129
129
  }