@akemona-org/strapi-plugin-i18n 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.
- package/admin/src/components/CMEditViewCopyLocale/index.js +1 -1
- package/admin/src/components/CMEditViewCopyLocale/utils/cleanData.js +1 -1
- package/admin/src/components/CMEditViewCopyLocale/utils/removePasswordAndRelationsFieldFromData.js +1 -1
- package/admin/src/components/CMEditViewInjectedComponents/index.js +4 -1
- package/admin/src/components/CMEditViewLocalePicker/Option.js +1 -1
- package/admin/src/components/CMEditViewLocalePicker/index.js +5 -1
- package/admin/src/components/CheckboxConfirmation/index.js +1 -1
- package/admin/src/components/LocaleList/index.js +1 -1
- package/admin/src/components/LocalePicker/index.js +1 -1
- package/admin/src/components/ModalCreate/AdvancedForm.js +1 -1
- package/admin/src/components/ModalCreate/BaseForm.js +5 -1
- package/admin/src/components/ModalCreate/index.js +1 -1
- package/admin/src/components/ModalDelete/index.js +1 -1
- package/admin/src/components/ModalEdit/AdvancedForm.js +1 -1
- package/admin/src/components/ModalEdit/BaseForm.js +5 -1
- package/admin/src/components/ModalEdit/index.js +1 -1
- package/admin/src/components/SettingsModal.js +1 -1
- package/admin/src/containers/SettingsPage/LocaleSettingsPage.js +1 -1
- package/admin/src/containers/SettingsPage/index.js +1 -1
- package/admin/src/containers/SettingsPage/tests/SettingsPage.test.js +2 -2
- package/admin/src/hooks/useAddLocale/index.js +1 -1
- package/admin/src/hooks/useDefaultLocales/index.js +1 -1
- package/admin/src/hooks/useDeleteLocale/index.js +1 -1
- package/admin/src/hooks/useEditLocale/index.js +1 -1
- package/admin/src/hooks/useLocales/index.js +1 -1
- package/admin/src/middlewares/addCommonFieldsToInitialDataMiddleware.js +1 -1
- package/admin/src/middlewares/tests/addCommonFieldsToInitialDataMiddleware.test.js +1 -1
- package/package.json +3 -3
|
@@ -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) => {
|
package/admin/src/components/CMEditViewCopyLocale/utils/removePasswordAndRelationsFieldFromData.js
CHANGED
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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';
|
|
@@ -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 { 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,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.
|
|
6
|
+
"version": "3.7.5",
|
|
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.
|
|
15
|
+
"@akemona-org/strapi-utils": "3.7.5",
|
|
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": "
|
|
30
|
+
"gitHead": "c248936761bebd2fe75189c248a761c95a091fe0"
|
|
31
31
|
}
|