@akemona-org/strapi-plugin-content-type-builder 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.
- package/LICENSE +1 -7
- package/README.md +1 -1
- package/admin/src/InjectedComponents/ContentManager/EditSettingViewButton.js +1 -1
- package/admin/src/InjectedComponents/ContentManager/EditViewLink.js +1 -1
- package/admin/src/components/AllowedTypesSelect/MenuList.js +1 -1
- package/admin/src/components/AllowedTypesSelect/index.js +1 -1
- package/admin/src/components/AttributeOption/index.js +1 -1
- package/admin/src/components/BooleanBox/index.js +1 -1
- package/admin/src/components/ComponentIconPicker/Search.js +1 -1
- package/admin/src/components/ComponentIconPicker/SearchWrapper.js +1 -1
- package/admin/src/components/ComponentSelect/MenuList.js +1 -1
- package/admin/src/components/ComponentSelect/MultipleMenuList.js +1 -1
- package/admin/src/components/CustomLink/P.js +1 -1
- package/admin/src/components/List/index.js +1 -1
- package/admin/src/components/ListHeader/Title.js +1 -1
- package/admin/src/components/ListRow/Wrapper.js +1 -1
- package/admin/src/components/ModalHeader/index.js +1 -1
- package/admin/src/components/RelationForm/index.js +1 -1
- package/admin/src/components/RelationFormBox/Wrapper.js +1 -1
- package/admin/src/components/RelationFormBox/index.js +1 -1
- package/admin/src/components/RelationFormNaturePicker/Wrapper.js +1 -1
- package/admin/src/components/WrapperSelect/index.js +1 -1
- package/admin/src/containers/App/Wrapper.js +1 -1
- package/admin/src/containers/App/index.js +1 -1
- package/admin/src/containers/DataManagerProvider/index.js +1 -1
- package/admin/src/containers/FormModal/attributes/types.js +1 -1
- package/admin/src/containers/FormModal/attributes/validation/common.js +1 -1
- package/admin/src/containers/FormModal/category/createCategorySchema.js +1 -1
- package/admin/src/containers/FormModal/component/createComponentSchema.js +1 -1
- package/admin/src/containers/FormModal/contentType/createContentTypeSchema.js +1 -1
- package/admin/src/containers/FormModal/index.js +2 -2
- package/admin/src/containers/LeftMenu/Wrapper.js +1 -1
- package/admin/src/containers/LeftMenu/index.js +1 -1
- package/admin/src/containers/ListView/Wrapper.js +1 -1
- package/admin/src/containers/ListView/index.js +1 -1
- package/admin/src/containers/NotFoundPage/index.js +1 -1
- package/admin/src/containers/RecursivePath/index.js +1 -1
- package/package.json +6 -6
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-conte
|
|
|
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-content-type-builder` 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/
|
|
13
|
+
If you’ve been using `strapi-plugin-content-type-builder` 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/core/content-type-builder) and with the following name on NPM: `@strapi/plugin-content-type-builder`.
|
|
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
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
-
import { useGlobalContext, CheckPermissions } from 'strapi-helper-plugin';
|
|
9
|
+
import { useGlobalContext, CheckPermissions } from '@akemona-org/strapi-helper-plugin';
|
|
10
10
|
import { get } from 'lodash';
|
|
11
11
|
import { Button } from '@buffetjs/core';
|
|
12
12
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
-
import { LiLink, useGlobalContext, CheckPermissions } from 'strapi-helper-plugin';
|
|
9
|
+
import { LiLink, useGlobalContext, CheckPermissions } from '@akemona-org/strapi-helper-plugin';
|
|
10
10
|
import pluginPermissions from '../../permissions';
|
|
11
11
|
|
|
12
12
|
// Create link from content-type-builder to content-manager
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { components } from 'react-select';
|
|
4
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { CheckboxWrapper, Label } from '@buffetjs/styles';
|
|
6
6
|
import getTrad from '../../utils/getTrad';
|
|
7
7
|
import SelectCheckbox from '../SelectCheckbox';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Select from 'react-select';
|
|
4
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { upperFirst } from 'lodash';
|
|
6
6
|
import MenuList from './MenuList';
|
|
7
7
|
import getTrad from '../../utils/getTrad';
|
|
@@ -9,7 +9,7 @@ import { AttributeIcon } from '@buffetjs/core';
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import { FormattedMessage } from 'react-intl';
|
|
11
11
|
import { useHistory } from 'react-router-dom';
|
|
12
|
-
import { useGlobalContext, useQuery } from 'strapi-helper-plugin';
|
|
12
|
+
import { useGlobalContext, useQuery } from '@akemona-org/strapi-helper-plugin';
|
|
13
13
|
import getTrad from '../../utils/getTrad';
|
|
14
14
|
import makeSearch from '../../utils/makeSearch';
|
|
15
15
|
import Button from './Button';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React 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 { Flex } from '@buffetjs/core';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import CTIcon from './CT';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { components } from 'react-select';
|
|
4
4
|
import { upperFirst } from 'lodash';
|
|
5
|
-
import { useQuery } from 'strapi-helper-plugin';
|
|
5
|
+
import { useQuery } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import useDataManager from '../../hooks/useDataManager';
|
|
7
7
|
import Ul from '../SelectMenuUl';
|
|
8
8
|
import Category from './Category';
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { components } from 'react-select';
|
|
4
4
|
import { FormattedMessage } from 'react-intl';
|
|
5
5
|
import { get } from 'lodash';
|
|
6
|
-
import { useQuery } from 'strapi-helper-plugin';
|
|
6
|
+
import { useQuery } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import { CheckboxWrapper, Label } from '@buffetjs/styles';
|
|
8
8
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
9
9
|
import useDataManager from '../../hooks/useDataManager';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import { get } from 'lodash';
|
|
11
|
-
import { useGlobalContext, ListButton } from 'strapi-helper-plugin';
|
|
11
|
+
import { useGlobalContext, ListButton } from '@akemona-org/strapi-helper-plugin';
|
|
12
12
|
import { Button } from '@buffetjs/core';
|
|
13
13
|
import { Plus } from '@buffetjs/icons';
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { HeaderModalTitle } from 'strapi-helper-plugin';
|
|
3
|
+
import { HeaderModalTitle } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { get } from 'lodash';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { get, isEmpty } from 'lodash';
|
|
4
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import RelationFormBox from '../RelationFormBox';
|
|
6
6
|
import RelationFormNaturePicker from '../RelationFormNaturePicker';
|
|
7
7
|
import Wrapper from './Wrapper';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Inputs } from '@buffetjs/custom';
|
|
4
4
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
5
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
5
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import getTrad from '../../utils/getTrad';
|
|
7
7
|
import RelationTargetPicker from '../RelationTargetPicker';
|
|
8
8
|
import Wrapper from './Wrapper';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { SelectWrapper, SelectNav } from 'strapi-helper-plugin';
|
|
3
|
+
import { SelectWrapper, SelectNav } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { ErrorMessage } from '@buffetjs/styles';
|
|
5
5
|
import AllowedTypesSelect from '../AllowedTypesSelect';
|
|
6
6
|
import ComponentSelect from '../ComponentSelect';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import React, { Suspense, lazy } from 'react';
|
|
8
8
|
import { Switch, Route } from 'react-router-dom';
|
|
9
|
-
import { LoadingIndicatorPage, CheckPagePermissions } from 'strapi-helper-plugin';
|
|
9
|
+
import { LoadingIndicatorPage, CheckPagePermissions } from '@akemona-org/strapi-helper-plugin';
|
|
10
10
|
import pluginPermissions from '../../permissions';
|
|
11
11
|
import pluginId from '../../pluginId';
|
|
12
12
|
import DataManagerProvider from '../DataManagerProvider';
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
PopUpWarning,
|
|
9
9
|
useStrapi,
|
|
10
10
|
useUser,
|
|
11
|
-
} from 'strapi-helper-plugin';
|
|
11
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
12
12
|
import { useHistory, useLocation, useRouteMatch, Redirect } from 'react-router-dom';
|
|
13
13
|
import { connect, useDispatch } from 'react-redux';
|
|
14
14
|
import { compose } from 'redux';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
|
-
import { translatedErrors as errorsTrads } from 'strapi-helper-plugin';
|
|
2
|
+
import { translatedErrors as errorsTrads } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import getTrad from '../../../utils/getTrad';
|
|
4
4
|
import {
|
|
5
5
|
alreadyUsedAttributeNames,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
import { get, toNumber } from 'lodash';
|
|
3
|
-
import { translatedErrors as errorsTrads } from 'strapi-helper-plugin';
|
|
3
|
+
import { translatedErrors as errorsTrads } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import getTrad from '../../../../utils/getTrad';
|
|
5
5
|
|
|
6
6
|
const NAME_REGEX = new RegExp('^[A-Za-z][_0-9A-Za-z]*$');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
import { toLower } from 'lodash';
|
|
3
|
-
import { translatedErrors as errorsTrads } from 'strapi-helper-plugin';
|
|
3
|
+
import { translatedErrors as errorsTrads } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import CATEGORY_NAME_REGEX from './regex';
|
|
5
5
|
|
|
6
6
|
const createCategorySchema = (usedCategoryNames) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
import { toLower, trim } from 'lodash';
|
|
3
|
-
import { translatedErrors as errorsTrads } from 'strapi-helper-plugin';
|
|
3
|
+
import { translatedErrors as errorsTrads } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import getTrad from '../../../utils/getTrad';
|
|
5
5
|
import { createComponentUid } from '../utils/createUid';
|
|
6
6
|
import { CATEGORY_NAME_REGEX } from '../category';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
import { toLower, trim } from 'lodash';
|
|
3
|
-
import { translatedErrors as errorsTrads } from 'strapi-helper-plugin';
|
|
3
|
+
import { translatedErrors as errorsTrads } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import getTrad from '../../../utils/getTrad';
|
|
5
5
|
import { createUid } from '../utils/createUid';
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
useQuery,
|
|
13
13
|
useStrapi,
|
|
14
14
|
InputsIndex,
|
|
15
|
-
} from 'strapi-helper-plugin';
|
|
15
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
16
16
|
import { Button, Text, Padded } from '@buffetjs/core';
|
|
17
17
|
import { Inputs } from '@buffetjs/custom';
|
|
18
18
|
import { useHistory, useLocation } from 'react-router-dom';
|
|
@@ -1287,7 +1287,7 @@ const FormModal = () => {
|
|
|
1287
1287
|
);
|
|
1288
1288
|
}
|
|
1289
1289
|
|
|
1290
|
-
// When extending the yup schema of an existing field (like in https://github.com/
|
|
1290
|
+
// When extending the yup schema of an existing field (like in https://github.com/akemona/strapi/blob/293ff3b8f9559236609d123a2774e3be05ce8274/packages/strapi-plugin-i18n/admin/src/index.js#L52)
|
|
1291
1291
|
// and triggering a yup validation error in the UI (missing a required field for example)
|
|
1292
1292
|
// We got an object that looks like: formErrors = { "pluginOptions.i18n.localized": {...} }
|
|
1293
1293
|
// In order to deal with this error, we can't rely on lodash.get to resolve this key
|
|
@@ -8,7 +8,7 @@ import React, { useMemo } from 'react';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { sortBy, camelCase, upperFirst } from 'lodash';
|
|
10
10
|
import { useHistory } from 'react-router-dom';
|
|
11
|
-
import { LeftMenuList, useGlobalContext } from 'strapi-helper-plugin';
|
|
11
|
+
import { LeftMenuList, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
12
12
|
import { Text } from '@buffetjs/core';
|
|
13
13
|
import pluginId from '../../pluginId';
|
|
14
14
|
import getTrad from '../../utils/getTrad';
|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|
|
2
2
|
import { Prompt, useHistory, useLocation } from 'react-router-dom';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { get, has, isEqual } from 'lodash';
|
|
5
|
-
import { BackHeader, ListWrapper, useGlobalContext } from 'strapi-helper-plugin';
|
|
5
|
+
import { BackHeader, ListWrapper, useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import { Header } from '@buffetjs/custom';
|
|
7
7
|
import ListViewContext from '../../contexts/ListViewContext';
|
|
8
8
|
import convertAttrObjToArray from '../../utils/convertAttrObjToArray';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Suspense, lazy } from 'react';
|
|
2
2
|
import { Switch, Route, useRouteMatch, useParams } from 'react-router-dom';
|
|
3
|
-
import { LoadingIndicatorPage } from 'strapi-helper-plugin';
|
|
3
|
+
import { LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
|
|
5
5
|
const ListView = lazy(() => import('../ListView'));
|
|
6
6
|
|
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.6",
|
|
7
7
|
"description": "Strapi plugin to create content type (API).",
|
|
8
8
|
"strapi": {
|
|
9
9
|
"name": "Content Type Builder",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"description": "content-type-builder.plugin.description"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@akemona-org/strapi-generate": "3.7.
|
|
15
|
-
"@akemona-org/strapi-generate-api": "3.7.
|
|
16
|
-
"@akemona-org/strapi-helper-plugin": "3.7.
|
|
17
|
-
"@akemona-org/strapi-utils": "3.7.
|
|
14
|
+
"@akemona-org/strapi-generate": "3.7.6",
|
|
15
|
+
"@akemona-org/strapi-generate-api": "3.7.6",
|
|
16
|
+
"@akemona-org/strapi-helper-plugin": "3.7.6",
|
|
17
|
+
"@akemona-org/strapi-utils": "3.7.6",
|
|
18
18
|
"@buffetjs/core": "3.3.8",
|
|
19
19
|
"@buffetjs/custom": "3.3.8",
|
|
20
20
|
"@buffetjs/hooks": "3.3.8",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"npm": ">=6.0.0"
|
|
60
60
|
},
|
|
61
61
|
"license": "SEE LICENSE IN LICENSE",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "3e3580e11b6ab7771c367cbc018d49ba0c2208df"
|
|
63
63
|
}
|