@akemona-org/strapi-plugin-i18n 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 (30) hide show
  1. package/LICENSE +1 -7
  2. package/README.md +1 -1
  3. package/admin/src/components/CMEditViewCopyLocale/index.js +1 -1
  4. package/admin/src/components/CMEditViewCopyLocale/utils/cleanData.js +1 -1
  5. package/admin/src/components/CMEditViewCopyLocale/utils/removePasswordAndRelationsFieldFromData.js +1 -1
  6. package/admin/src/components/CMEditViewInjectedComponents/index.js +4 -1
  7. package/admin/src/components/CMEditViewLocalePicker/Option.js +1 -1
  8. package/admin/src/components/CMEditViewLocalePicker/index.js +5 -1
  9. package/admin/src/components/CheckboxConfirmation/index.js +1 -1
  10. package/admin/src/components/LocaleList/index.js +1 -1
  11. package/admin/src/components/LocalePicker/index.js +1 -1
  12. package/admin/src/components/ModalCreate/AdvancedForm.js +1 -1
  13. package/admin/src/components/ModalCreate/BaseForm.js +5 -1
  14. package/admin/src/components/ModalCreate/index.js +1 -1
  15. package/admin/src/components/ModalDelete/index.js +1 -1
  16. package/admin/src/components/ModalEdit/AdvancedForm.js +1 -1
  17. package/admin/src/components/ModalEdit/BaseForm.js +5 -1
  18. package/admin/src/components/ModalEdit/index.js +1 -1
  19. package/admin/src/components/SettingsModal.js +1 -1
  20. package/admin/src/containers/SettingsPage/LocaleSettingsPage.js +1 -1
  21. package/admin/src/containers/SettingsPage/index.js +1 -1
  22. package/admin/src/containers/SettingsPage/tests/SettingsPage.test.js +2 -2
  23. package/admin/src/hooks/useAddLocale/index.js +1 -1
  24. package/admin/src/hooks/useDefaultLocales/index.js +1 -1
  25. package/admin/src/hooks/useDeleteLocale/index.js +1 -1
  26. package/admin/src/hooks/useEditLocale/index.js +1 -1
  27. package/admin/src/hooks/useLocales/index.js +1 -1
  28. package/admin/src/middlewares/addCommonFieldsToInitialDataMiddleware.js +1 -1
  29. package/admin/src/middlewares/tests/addCommonFieldsToInitialDataMiddleware.test.js +1 -1
  30. package/package.json +3 -3
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-i18n`
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-i18n` 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/i18n) and with the following name on NPM: `@strapi/plugin-i18n`.
13
+ If you’ve been using `strapi-plugin-i18n` 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/i18n) and with the following name on NPM: `@strapi/plugin-i18n`.
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
 
@@ -13,7 +13,7 @@ import {
13
13
  selectStyles,
14
14
  useContentManagerEditViewDataManager,
15
15
  request,
16
- } from 'strapi-helper-plugin';
16
+ } from '@akemona-org/strapi-helper-plugin';
17
17
  import { getTrad } from '../../utils';
18
18
  import { cleanData, generateOptions } from './utils';
19
19
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  contentManagementUtilRemoveFieldsFromData,
3
3
  formatComponentData,
4
- } from 'strapi-helper-plugin';
4
+ } from '@akemona-org/strapi-helper-plugin';
5
5
  import removePasswordAndRelationsFieldFromData from './removePasswordAndRelationsFieldFromData';
6
6
 
7
7
  const cleanData = (data, { contentType, components }, initialLocalizations) => {
@@ -1,5 +1,5 @@
1
1
  import { get } from 'lodash';
2
- import { getType, getOtherInfos } from 'strapi-helper-plugin';
2
+ import { getType, getOtherInfos } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  const removePasswordAndRelationsFieldFromData = (data, contentTypeSchema, componentSchema) => {
5
5
  const recursiveCleanData = (data, schema) => {
@@ -2,7 +2,10 @@ import React, { useMemo } from 'react';
2
2
  import get from 'lodash/get';
3
3
  import { useSelector } from 'react-redux';
4
4
  import { useParams } from 'react-router-dom';
5
- import { useContentManagerEditViewDataManager, useQueryParams } from 'strapi-helper-plugin';
5
+ import {
6
+ useContentManagerEditViewDataManager,
7
+ useQueryParams,
8
+ } from '@akemona-org/strapi-helper-plugin';
6
9
  import selectI18NLocales from '../../selectors/selectI18nLocales';
7
10
  import useContentTypePermissions from '../../hooks/useContentTypePermissions';
8
11
  import CMEditViewLocalePicker from '../CMEditViewLocalePicker';
@@ -5,7 +5,7 @@ import { useIntl } from 'react-intl';
5
5
  import PropTypes from 'prop-types';
6
6
  import get from 'lodash/get';
7
7
  import { Flex, Text } from '@buffetjs/core';
8
- import { RelationDPState } from 'strapi-helper-plugin';
8
+ import { RelationDPState } from '@akemona-org/strapi-helper-plugin';
9
9
  import { getTrad } from '../../utils';
10
10
 
11
11
  const TextGrow = styled(Text)`
@@ -5,7 +5,11 @@ import get from 'lodash/get';
5
5
  import Select, { components } from 'react-select';
6
6
  import { useIntl } from 'react-intl';
7
7
  import { useTheme } from 'styled-components';
8
- import { DropdownIndicator, BaselineAlignment, selectStyles } from 'strapi-helper-plugin';
8
+ import {
9
+ DropdownIndicator,
10
+ BaselineAlignment,
11
+ selectStyles,
12
+ } from '@akemona-org/strapi-helper-plugin';
9
13
  import { useHistory } from 'react-router-dom';
10
14
  import { stringify } from 'qs';
11
15
  import { getTrad } from '../../utils';
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { useIntl } from 'react-intl';
4
4
  import { Checkbox, Text } from '@buffetjs/core';
5
- import { ModalConfirm } from 'strapi-helper-plugin';
5
+ import { ModalConfirm } from '@akemona-org/strapi-helper-plugin';
6
6
  import { getTrad } from '../../utils';
7
7
  import Wrapper from './Wrapper';
8
8
 
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { EmptyState, ListButton } from 'strapi-helper-plugin';
3
+ import { EmptyState, ListButton } from '@akemona-org/strapi-helper-plugin';
4
4
  import { List } from '@buffetjs/custom';
5
5
  import { Button } from '@buffetjs/core';
6
6
  import { Plus } from '@buffetjs/icons';
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import { useSelector, useDispatch } from 'react-redux';
3
3
  import { Picker, Padded, Text, Flex } from '@buffetjs/core';
4
- import { Carret, useQueryParams } from 'strapi-helper-plugin';
4
+ import { Carret, useQueryParams } from '@akemona-org/strapi-helper-plugin';
5
5
  import { useRouteMatch } from 'react-router-dom';
6
6
  import styled from 'styled-components';
7
7
  import get from 'lodash/get';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Text, Checkbox, Padded } from '@buffetjs/core';
3
3
  import { useFormikContext } from 'formik';
4
4
  import { useIntl } from 'react-intl';
5
- import { BaselineAlignment } from 'strapi-helper-plugin';
5
+ import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
6
6
  import { getTrad } from '../../utils';
7
7
 
8
8
  const AdvancedForm = () => {
@@ -6,7 +6,11 @@ import Select, { createFilter } from 'react-select';
6
6
  import { Col, Row } from 'reactstrap';
7
7
  import { useIntl } from 'react-intl';
8
8
  import { useTheme } from 'styled-components';
9
- import { BaselineAlignment, selectStyles, DropdownIndicator } from 'strapi-helper-plugin';
9
+ import {
10
+ BaselineAlignment,
11
+ selectStyles,
12
+ DropdownIndicator,
13
+ } from '@akemona-org/strapi-helper-plugin';
10
14
  import { useFormikContext } from 'formik';
11
15
  import { getTrad } from '../../utils';
12
16
 
@@ -1,6 +1,6 @@
1
1
  import React, { useRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Modal, ModalFooter, TabPanel, useUser } from 'strapi-helper-plugin';
3
+ import { Modal, ModalFooter, TabPanel, useUser } from '@akemona-org/strapi-helper-plugin';
4
4
  import { useIntl } from 'react-intl';
5
5
  import { Button } from '@buffetjs/core';
6
6
  import { Formik } from 'formik';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Text } from '@buffetjs/core';
4
- import { ModalConfirm } from 'strapi-helper-plugin';
4
+ import { ModalConfirm } from '@akemona-org/strapi-helper-plugin';
5
5
  import { useIntl } from 'react-intl';
6
6
  import useDeleteLocale from '../../hooks/useDeleteLocale';
7
7
  import { getTrad } from '../../utils';
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { Text, Checkbox, Padded } from '@buffetjs/core';
4
4
  import { useFormikContext } from 'formik';
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 { getTrad } from '../../utils';
8
8
 
9
9
  const AdvancedForm = ({ isDefaultLocale }) => {
@@ -6,7 +6,11 @@ import Select from 'react-select';
6
6
  import { Col, Row } from 'reactstrap';
7
7
  import { useIntl } from 'react-intl';
8
8
  import { useTheme } from 'styled-components';
9
- import { BaselineAlignment, selectStyles, DropdownIndicator } from 'strapi-helper-plugin';
9
+ import {
10
+ BaselineAlignment,
11
+ selectStyles,
12
+ DropdownIndicator,
13
+ } from '@akemona-org/strapi-helper-plugin';
10
14
  import { useFormikContext } from 'formik';
11
15
  import { getTrad } from '../../utils';
12
16
 
@@ -1,6 +1,6 @@
1
1
  import React, { useRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Modal, ModalFooter, TabPanel, useGlobalContext } from 'strapi-helper-plugin';
3
+ import { Modal, ModalFooter, TabPanel, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
4
4
  import { useIntl } from 'react-intl';
5
5
  import { Button } from '@buffetjs/core';
6
6
  import { Formik } from 'formik';
@@ -9,7 +9,7 @@ import {
9
9
  TabsNav,
10
10
  Tab,
11
11
  TabsPanel,
12
- } from 'strapi-helper-plugin';
12
+ } from '@akemona-org/strapi-helper-plugin';
13
13
  import { useIntl } from 'react-intl';
14
14
  import { getTrad } from '../utils';
15
15
 
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { useIntl } from 'react-intl';
4
- import { BaselineAlignment } from 'strapi-helper-plugin';
4
+ import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
5
5
  import { Header } from '@buffetjs/custom';
6
6
  import { Button } from '@buffetjs/core';
7
7
  import { getTrad } from '../../utils';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useUserPermissions } from 'strapi-helper-plugin';
2
+ import { useUserPermissions } from '@akemona-org/strapi-helper-plugin';
3
3
  import { useIntl } from 'react-intl';
4
4
  import LocaleSettingsPage from './LocaleSettingsPage';
5
5
  import i18nPermissions from '../../permissions';
@@ -6,7 +6,7 @@ import { combineReducers } from 'redux-immutable';
6
6
  import { fromJS } from 'immutable';
7
7
 
8
8
  import { Provider } from 'react-redux';
9
- import { request, useUserPermissions } from 'strapi-helper-plugin';
9
+ import { request, useUserPermissions } from '@akemona-org/strapi-helper-plugin';
10
10
  import { fireEvent, render, screen, within, waitFor } from '@testing-library/react';
11
11
  import { ThemeProvider } from 'styled-components';
12
12
  import { QueryClient, QueryClientProvider } from 'react-query';
@@ -32,7 +32,7 @@ const TestWrapper = ({ children }) => {
32
32
 
33
33
  // TODO: we should not be forced to mock this module
34
34
  // but it bugs somehow when run with jest
35
- jest.mock('strapi-helper-plugin', () => ({
35
+ jest.mock('@akemona-org/strapi-helper-plugin', () => ({
36
36
  EmptyState: ({ title, description }) => (
37
37
  <div data-testid="empty-list">
38
38
  <p>{title}</p>
@@ -1,5 +1,5 @@
1
1
  import { useState } from 'react';
2
- import { request } from 'strapi-helper-plugin';
2
+ import { request } from '@akemona-org/strapi-helper-plugin';
3
3
  import { useDispatch } from 'react-redux';
4
4
  import get from 'lodash/get';
5
5
  import { getTrad } from '../../utils';
@@ -1,5 +1,5 @@
1
1
  import { useQuery } from 'react-query';
2
- import { request } from 'strapi-helper-plugin';
2
+ import { request } from '@akemona-org/strapi-helper-plugin';
3
3
 
4
4
  const fetchDefaultLocalesList = async () => {
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { useState } from 'react';
2
- import { request } from 'strapi-helper-plugin';
2
+ import { request } from '@akemona-org/strapi-helper-plugin';
3
3
  import { useDispatch } from 'react-redux';
4
4
  import { getTrad } from '../../utils';
5
5
  import { DELETE_LOCALE } from '../constants';
@@ -1,5 +1,5 @@
1
1
  import { useState } from 'react';
2
- import { request } from 'strapi-helper-plugin';
2
+ import { request } from '@akemona-org/strapi-helper-plugin';
3
3
  import { useDispatch } from 'react-redux';
4
4
  import { getTrad } from '../../utils';
5
5
  import { UPDATE_LOCALE } from '../constants';
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from 'react';
2
- import { request } from 'strapi-helper-plugin';
2
+ import { request } from '@akemona-org/strapi-helper-plugin';
3
3
  import { useSelector, useDispatch } from 'react-redux';
4
4
  import { RESOLVE_LOCALES } from '../constants';
5
5
 
@@ -6,7 +6,7 @@ import {
6
6
  request,
7
7
  formatComponentData,
8
8
  contentManagementUtilRemoveFieldsFromData,
9
- } from 'strapi-helper-plugin';
9
+ } from '@akemona-org/strapi-helper-plugin';
10
10
  import pluginId from '../pluginId';
11
11
 
12
12
  const addCommonFieldsToInitialDataMiddleware =
@@ -1,6 +1,6 @@
1
1
  import addCommonFieldsToInitialDataMiddleware from '../addCommonFieldsToInitialDataMiddleware';
2
2
 
3
- jest.mock('strapi-helper-plugin', () => ({
3
+ jest.mock('@akemona-org/strapi-helper-plugin', () => ({
4
4
  request: () => ({
5
5
  nonLocalizedFields: { common: 'test' },
6
6
  localizations: ['test'],
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": "This plugin enables to create, to read and to update content in different languages, both from the Admin Panel and from the API",
8
8
  "strapi": {
9
9
  "name": "Internationalization",
@@ -12,7 +12,7 @@
12
12
  "required": false
13
13
  },
14
14
  "dependencies": {
15
- "@akemona-org/strapi-utils": "3.7.4",
15
+ "@akemona-org/strapi-utils": "3.7.6",
16
16
  "lodash": "4.17.21",
17
17
  "p-map": "4.0.0",
18
18
  "pluralize": "8.0.0"
@@ -27,5 +27,5 @@
27
27
  "npm": ">=6.0.0"
28
28
  },
29
29
  "license": "SEE LICENSE IN LICENSE",
30
- "gitHead": "a627972678ce3f460d6b1786adb976f1d3a7c35d"
30
+ "gitHead": "3e3580e11b6ab7771c367cbc018d49ba0c2208df"
31
31
  }