@akemona-org/strapi-plugin-content-type-builder 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/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 +1 -1
- 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/services/ContentTypes.js +1 -2
|
@@ -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';
|
|
@@ -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.5",
|
|
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.5",
|
|
15
|
+
"@akemona-org/strapi-generate-api": "3.7.5",
|
|
16
|
+
"@akemona-org/strapi-helper-plugin": "3.7.5",
|
|
17
|
+
"@akemona-org/strapi-utils": "3.7.5",
|
|
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": "c248936761bebd2fe75189c248a761c95a091fe0"
|
|
63
63
|
}
|
package/services/ContentTypes.js
CHANGED
|
@@ -4,8 +4,7 @@ const _ = require('lodash');
|
|
|
4
4
|
const { getOr } = require('lodash/fp');
|
|
5
5
|
const pluralize = require('pluralize');
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
const generator = require('strapi-generate');
|
|
7
|
+
const generator = require('@akemona-org/strapi-generate');
|
|
9
8
|
const { nameToSlug, contentTypes: contentTypesUtils } = require('@akemona-org/strapi-utils');
|
|
10
9
|
const { formatAttributes, replaceTemporaryUIDs } = require('../utils/attributes');
|
|
11
10
|
const createBuilder = require('./schema-builder');
|