@akemona-org/strapi-plugin-content-manager 3.7.0 → 3.7.1
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/ContentTypeBuilder/ConfigureViewButton/index.js +2 -5
- package/admin/src/components/AddDropdown/index.js +5 -12
- package/admin/src/components/Block/index.js +2 -4
- package/admin/src/components/ComponentInitializer/index.js +1 -1
- package/admin/src/components/CustomTable/ActionCollapse/index.js +2 -2
- package/admin/src/components/CustomTable/Row/Cell.js +1 -1
- package/admin/src/components/CustomTable/Row/index.js +6 -6
- package/admin/src/components/CustomTable/index.js +5 -5
- package/admin/src/components/CustomTable/styledComponents.js +2 -2
- package/admin/src/components/DragLayer/index.js +1 -1
- package/admin/src/components/DraggedField/Wrapper.js +2 -7
- package/admin/src/components/DraggedField/index.js +3 -3
- package/admin/src/components/DraggedField/utils/getHeight.js +1 -1
- package/admin/src/components/DraggedFieldWithPreview/DynamicComponent.js +2 -2
- package/admin/src/components/DraggedFieldWithPreview/Wrapper.js +1 -2
- package/admin/src/components/DraggedFieldWithPreview/index.js +4 -4
- package/admin/src/components/DynamicComponentCard/index.js +2 -8
- package/admin/src/components/DynamicZone/Picker/index.js +3 -3
- package/admin/src/components/DynamicZone/index.js +4 -4
- package/admin/src/components/DynamicZone/utils/select.js +1 -1
- package/admin/src/components/FieldComponent/index.js +1 -1
- package/admin/src/components/FieldComponent/utils/select.js +6 -6
- package/admin/src/components/FieldsReorder/Item.js +6 -9
- package/admin/src/components/FieldsReorder/index.js +6 -17
- package/admin/src/components/FilterOptionsCTA/index.js +1 -1
- package/admin/src/components/FilterPicker/components.js +2 -2
- package/admin/src/components/FilterPicker/index.js +7 -7
- package/admin/src/components/FilterPicker/reducer.js +2 -2
- package/admin/src/components/FilterPickerOption/Input.js +1 -1
- package/admin/src/components/FilterPickerOption/Option.js +1 -3
- package/admin/src/components/FilterPickerOption/components.js +2 -2
- package/admin/src/components/FilterPickerOption/index.js +4 -4
- package/admin/src/components/FormTitle/index.js +1 -5
- package/admin/src/components/InputJSON/index.js +3 -3
- package/admin/src/components/InputJSON/jsonlint.js +639 -383
- package/admin/src/components/InputJSONWithErrors/index.js +2 -2
- package/admin/src/components/InputUID/Options/index.js +2 -2
- package/admin/src/components/InputUID/Options/wrapper.js +1 -1
- package/admin/src/components/InputUID/index.js +2 -2
- package/admin/src/components/Inputs/index.js +4 -4
- package/admin/src/components/Inputs/utils/generateOptions.js +2 -2
- package/admin/src/components/Inputs/utils/getStep.js +1 -1
- package/admin/src/components/MediaPreviewList/index.js +5 -5
- package/admin/src/components/NonRepeatableComponent/index.js +4 -4
- package/admin/src/components/PreviewWysiwyg/Wrapper.js +1 -1
- package/admin/src/components/PreviewWysiwyg/utils/satinizeHtml.js +1 -1
- package/admin/src/components/RelationPreviewList/RelationPreviewTooltip.js +3 -3
- package/admin/src/components/RelationPreviewList/index.js +1 -1
- package/admin/src/components/RepeatableComponent/Banner.js +2 -2
- package/admin/src/components/RepeatableComponent/BannerWrapper.js +1 -2
- package/admin/src/components/RepeatableComponent/DraggedItem/index.js +3 -9
- package/admin/src/components/RepeatableComponent/index.js +8 -8
- package/admin/src/components/RepeatableComponent/reducer.js +9 -9
- package/admin/src/components/Search/index.js +2 -2
- package/admin/src/components/SectionTitle/index.js +1 -3
- package/admin/src/components/SelectMany/ListItem.js +2 -2
- package/admin/src/components/SelectMany/index.js +3 -3
- package/admin/src/components/SelectOne/SingleValue.js +1 -1
- package/admin/src/components/SelectWrapper/ClearIndicator.js +1 -1
- package/admin/src/components/SelectWrapper/Option.js +1 -1
- package/admin/src/components/SelectWrapper/index.js +17 -27
- package/admin/src/components/SelectWrapper/utils/styles.js +6 -6
- package/admin/src/components/SettingsViewWrapper/index.js +9 -9
- package/admin/src/components/SortableList/Item.js +5 -11
- package/admin/src/components/Wysiwyg/MediaLib.js +1 -1
- package/admin/src/components/Wysiwyg/index.js +17 -25
- package/admin/src/components/Wysiwyg/toggleMode.js +3 -7
- package/admin/src/components/Wysiwyg/utils.js +2 -10
- package/admin/src/components/WysiwygDropUpload/index.js +1 -1
- package/admin/src/components/WysiwygInlineControls/Button.js +1 -1
- package/admin/src/components/WysiwygInlineControls/index.js +1 -1
- package/admin/src/components/WysiwygWithErrors/index.js +1 -1
- package/admin/src/containers/CollectionTypeFormWrapper/index.js +7 -12
- package/admin/src/containers/CollectionTypeFormWrapper/utils/getRequestUrl.js +1 -1
- package/admin/src/containers/CollectionTypeRecursivePath/index.js +1 -1
- package/admin/src/containers/ComponentSetttingsView/index.js +2 -2
- package/admin/src/containers/EditSettingsView/index.js +17 -17
- package/admin/src/containers/EditSettingsView/reducer.js +10 -10
- package/admin/src/containers/EditSettingsView/utils/createPossibleMainFieldsForModelsAndComponents.js +2 -2
- package/admin/src/containers/EditSettingsView/utils/getInputProps.js +1 -1
- package/admin/src/containers/EditSettingsView/utils/layout.js +9 -9
- package/admin/src/containers/EditView/DeleteLink/index.js +1 -1
- package/admin/src/containers/EditView/Header/index.js +10 -9
- package/admin/src/containers/EditView/Header/utils/getDraftRelations.js +3 -3
- package/admin/src/containers/EditView/index.js +7 -10
- package/admin/src/containers/EditView/utils/createAttributesLayout.js +4 -9
- package/admin/src/containers/EditView/utils/getFieldsActionMatchingPermissions.js +1 -1
- package/admin/src/containers/EditViewDataManagerProvider/index.js +7 -12
- package/admin/src/containers/EditViewDataManagerProvider/reducer.js +14 -14
- package/admin/src/containers/EditViewDataManagerProvider/utils/cleanData.js +4 -4
- package/admin/src/containers/EditViewDataManagerProvider/utils/getYupInnerErrors.js +2 -8
- package/admin/src/containers/EditViewDataManagerProvider/utils/schema.js +12 -12
- package/admin/src/containers/EditViewLayoutManager/Permissions.js +1 -1
- package/admin/src/containers/EditViewLayoutManager/reducer.js +1 -1
- package/admin/src/containers/EditViewLayoutManager/selectors.js +1 -1
- package/admin/src/containers/ListSettingsView/Label.js +2 -11
- package/admin/src/containers/ListSettingsView/index.js +9 -9
- package/admin/src/containers/ListSettingsView/reducer.js +2 -2
- package/admin/src/containers/ListView/FieldPicker/Fields/Wrapper.js +1 -1
- package/admin/src/containers/ListView/FieldPicker/Fields/index.js +2 -2
- package/admin/src/containers/ListView/FieldPicker/index.js +2 -2
- package/admin/src/containers/ListView/Filter.js +1 -4
- package/admin/src/containers/ListView/actions.js +2 -2
- package/admin/src/containers/ListView/index.js +8 -7
- package/admin/src/containers/ListView/reducer.js +5 -5
- package/admin/src/containers/ListView/selectors.js +2 -2
- package/admin/src/containers/ListView/utils/createPluginsFilter.js +1 -1
- package/admin/src/containers/ListView/utils/getAllAllowedHeaders.js +1 -1
- package/admin/src/containers/ListView/utils/getFirstSortableHeader.js +2 -2
- package/admin/src/containers/ListViewLayoutManager/Permissions.js +1 -1
- package/admin/src/containers/ListViewProvider/index.js +1 -3
- package/admin/src/containers/Main/index.js +2 -2
- package/admin/src/containers/Main/reducer.js +1 -1
- package/admin/src/containers/Main/selectors.js +2 -2
- package/admin/src/containers/RBACManager/reducer.js +1 -1
- package/admin/src/containers/SingleTypeFormWrapper/index.js +6 -11
- package/admin/src/containers/SingleTypeFormWrapper/utils/getRequestUrl.js +1 -1
- package/admin/src/containers/WysiwygProvider/index.js +1 -3
- package/admin/src/hooks/useContentTypeLayout/index.js +1 -1
- package/admin/src/hooks/useFetchContentTypeLayout/index.js +3 -3
- package/admin/src/hooks/useFetchContentTypeLayout/reducer.js +1 -1
- package/admin/src/hooks/useFetchContentTypeLayout/utils/formatLayouts.js +8 -8
- package/admin/src/hooks/useFindRedirectionLink/index.js +1 -1
- package/admin/src/hooks/useFindRedirectionLink/selectors.js +1 -1
- package/admin/src/icons/Cross/index.js +1 -6
- package/admin/src/icons/Na/index.js +3 -22
- package/admin/src/index.js +1 -1
- package/admin/src/pluginId.js +1 -1
- package/admin/src/selectors.js +2 -2
- package/admin/src/sharedReducers/crudReducer/actions.js +3 -3
- package/admin/src/sharedReducers/crudReducer/reducer.js +1 -1
- package/admin/src/sharedReducers/crudReducer/selectors.js +1 -1
- package/admin/src/utils/checkIfAttributeIsDisplayable.js +1 -1
- package/admin/src/utils/formatFiltersFromQuery.js +2 -2
- package/admin/src/utils/formatLayoutToApi.js +2 -2
- package/admin/src/utils/generatePermissionsObject.js +3 -2
- package/admin/src/utils/getComponents.js +3 -5
- package/admin/src/utils/getFieldName.js +2 -2
- package/admin/src/utils/getMaxTempKey.js +2 -2
- package/admin/src/utils/getRequestUrl.js +1 -1
- package/admin/src/utils/getTrad.js +1 -1
- package/admin/src/utils/mergeMetasWithSchema.js +2 -2
- package/admin/src/utils/removeKeyInObject.js +1 -1
- package/admin/src/utils/removePasswordFieldsFromData.js +2 -2
- package/controllers/content-types.js +4 -4
- package/package.json +4 -4
- package/services/components.js +1 -1
- package/services/configuration.js +9 -9
- package/services/permission-checker.js +6 -6
- package/services/uid.js +1 -1
- package/services/utils/configuration/layouts.js +14 -35
- package/services/utils/configuration/metadatas.js +1 -1
- package/services/utils/store.js +9 -9
- package/utils/index.js +1 -1
- package/utils/wrap-bad-request.js +14 -12
|
@@ -9,7 +9,7 @@ const initialState = fromJS({
|
|
|
9
9
|
function reducer(state, action) {
|
|
10
10
|
switch (action.type) {
|
|
11
11
|
case 'ADD_FILTER':
|
|
12
|
-
return state.update('modifiedData', list => list.push(fromJS(action.filter)));
|
|
12
|
+
return state.update('modifiedData', (list) => list.push(fromJS(action.filter)));
|
|
13
13
|
case 'ON_CHANGE': {
|
|
14
14
|
const [index, key] = action.keys;
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ function reducer(state, action) {
|
|
|
21
21
|
|
|
22
22
|
return action.value;
|
|
23
23
|
})
|
|
24
|
-
.updateIn(['modifiedData', index, 'value'], value => {
|
|
24
|
+
.updateIn(['modifiedData', index, 'value'], (value) => {
|
|
25
25
|
if (key === 'name') {
|
|
26
26
|
const attribute = state.getIn(['attributes', action.value]);
|
|
27
27
|
const attributeType = attribute.get('type');
|
|
@@ -10,7 +10,7 @@ import { DateTime } from '@buffetjs/custom';
|
|
|
10
10
|
import { DatePicker, InputText, InputNumber, Select, TimePicker } from '@buffetjs/core';
|
|
11
11
|
import { InputWrapperDate } from './components';
|
|
12
12
|
|
|
13
|
-
const getInputType = attrType => {
|
|
13
|
+
const getInputType = (attrType) => {
|
|
14
14
|
switch (attrType) {
|
|
15
15
|
case 'boolean':
|
|
16
16
|
return Select;
|
|
@@ -4,9 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
|
|
5
5
|
const Option = ({ id, value }) => {
|
|
6
6
|
return (
|
|
7
|
-
<FormattedMessage id={id}>
|
|
8
|
-
{msg => <option value={value}>{msg}</option>}
|
|
9
|
-
</FormattedMessage>
|
|
7
|
+
<FormattedMessage id={id}>{(msg) => <option value={value}>{msg}</option>}</FormattedMessage>
|
|
10
8
|
);
|
|
11
9
|
};
|
|
12
10
|
|
|
@@ -4,8 +4,8 @@ import styled from 'styled-components';
|
|
|
4
4
|
|
|
5
5
|
const Wrapper = styled.div`
|
|
6
6
|
min-height: 38px;
|
|
7
|
-
border-left: ${props => props.borderLeft && '3px solid #007EFF'};
|
|
8
|
-
padding-left: ${props => (props.borderLeft ? '10px' : '13px')};
|
|
7
|
+
border-left: ${(props) => props.borderLeft && '3px solid #007EFF'};
|
|
8
|
+
padding-left: ${(props) => (props.borderLeft ? '10px' : '13px')};
|
|
9
9
|
margin-bottom: 0px !important;
|
|
10
10
|
`;
|
|
11
11
|
|
|
@@ -34,7 +34,7 @@ function FilterPickerOption({
|
|
|
34
34
|
}) {
|
|
35
35
|
const filtersOptions = getFilterType(type);
|
|
36
36
|
const currentFilterName = get(modifiedData, [index, 'name'], '');
|
|
37
|
-
const currentFilterData = allowedAttributes.find(attr => attr.name === currentFilterName);
|
|
37
|
+
const currentFilterData = allowedAttributes.find((attr) => attr.name === currentFilterName);
|
|
38
38
|
const options = get(currentFilterData, ['options'], null) || ['true', 'false'];
|
|
39
39
|
|
|
40
40
|
return (
|
|
@@ -42,7 +42,7 @@ function FilterPickerOption({
|
|
|
42
42
|
<InputWrapper>
|
|
43
43
|
<CircleButton type="button" isRemoveButton onClick={() => onRemoveFilter(index)} />
|
|
44
44
|
<Select
|
|
45
|
-
onChange={e => {
|
|
45
|
+
onChange={(e) => {
|
|
46
46
|
// Change the attribute
|
|
47
47
|
onChange(e);
|
|
48
48
|
// Change the default filter so it reset to the common one which is '='
|
|
@@ -50,13 +50,13 @@ function FilterPickerOption({
|
|
|
50
50
|
}}
|
|
51
51
|
name={`${index}.name`}
|
|
52
52
|
value={currentFilterName}
|
|
53
|
-
options={allowedAttributes.map(attr => attr.name)}
|
|
53
|
+
options={allowedAttributes.map((attr) => attr.name)}
|
|
54
54
|
style={styles.select}
|
|
55
55
|
/>
|
|
56
56
|
<Select
|
|
57
57
|
onChange={onChange}
|
|
58
58
|
name={`${index}.filter`}
|
|
59
|
-
options={filtersOptions.map(option => (
|
|
59
|
+
options={filtersOptions.map((option) => (
|
|
60
60
|
<Option {...option} key={option.value} />
|
|
61
61
|
))}
|
|
62
62
|
style={styles.selectMiddle}
|
|
@@ -5,11 +5,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
5
5
|
const FormTitle = ({ description, title }) => (
|
|
6
6
|
<>
|
|
7
7
|
{!!title && <FormattedMessage id={title} />}
|
|
8
|
-
{!!description && (
|
|
9
|
-
<FormattedMessage id={description}>
|
|
10
|
-
{msg => <p>{msg}</p>}
|
|
11
|
-
</FormattedMessage>
|
|
12
|
-
)}
|
|
8
|
+
{!!description && <FormattedMessage id={description}>{(msg) => <p>{msg}</p>}</FormattedMessage>}
|
|
13
9
|
</>
|
|
14
10
|
);
|
|
15
11
|
|
|
@@ -75,9 +75,9 @@ class InputJSON extends React.Component {
|
|
|
75
75
|
|
|
76
76
|
setSize = () => this.codeMirror.setSize('100%', 'auto');
|
|
77
77
|
|
|
78
|
-
getContentAtLine = line => this.codeMirror.getLine(line);
|
|
78
|
+
getContentAtLine = (line) => this.codeMirror.getLine(line);
|
|
79
79
|
|
|
80
|
-
getEditorOption = opt => this.codeMirror.getOption(opt);
|
|
80
|
+
getEditorOption = (opt) => this.codeMirror.getOption(opt);
|
|
81
81
|
|
|
82
82
|
getValue = () => this.codeMirror.getValue();
|
|
83
83
|
|
|
@@ -145,7 +145,7 @@ class InputJSON extends React.Component {
|
|
|
145
145
|
this.timer = setTimeout(() => this.testJSON(doc.getValue()), WAIT);
|
|
146
146
|
};
|
|
147
147
|
|
|
148
|
-
testJSON = value => {
|
|
148
|
+
testJSON = (value) => {
|
|
149
149
|
try {
|
|
150
150
|
jsonlint.parse(value);
|
|
151
151
|
} catch (err) {
|