@akemona-org/strapi-plugin-content-manager 3.12.3 → 3.13.0

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 (86) hide show
  1. package/admin/src/InjectedComponents/ContentTypeBuilder/ConfigureViewButton/index.js +2 -2
  2. package/admin/src/components/Block/index.js +3 -3
  3. package/admin/src/components/ComponentInitializer/index.js +2 -2
  4. package/admin/src/components/CustomTable/Headers/Header.js +2 -2
  5. package/admin/src/components/CustomTable/Row/Cell.js +2 -2
  6. package/admin/src/components/CustomTable/index.js +3 -3
  7. package/admin/src/components/DragLayer/index.js +2 -2
  8. package/admin/src/components/DraggedFieldWithPreview/DynamicComponent.js +2 -2
  9. package/admin/src/components/DynamicComponentCard/index.js +2 -2
  10. package/admin/src/components/DynamicZone/Component/index.js +3 -3
  11. package/admin/src/components/DynamicZone/Picker/Category/Banner/index.js +2 -2
  12. package/admin/src/components/DynamicZone/Picker/Category/index.js +2 -2
  13. package/admin/src/components/DynamicZone/Picker/index.js +2 -2
  14. package/admin/src/components/DynamicZone/index.js +3 -3
  15. package/admin/src/components/FieldComponent/index.js +3 -3
  16. package/admin/src/components/FieldsReorder/Item.js +3 -3
  17. package/admin/src/components/FieldsReorder/index.js +2 -2
  18. package/admin/src/components/FilterPickerOption/Option.js +2 -2
  19. package/admin/src/components/FormTitle/index.js +3 -3
  20. package/admin/src/components/InputUID/Options/index.js +3 -3
  21. package/admin/src/components/InputUID/RightLabel.js +2 -2
  22. package/admin/src/components/InputUID/index.js +3 -3
  23. package/admin/src/components/NonRepeatableComponent/index.js +2 -2
  24. package/admin/src/components/PopupForm/index.js +3 -3
  25. package/admin/src/components/PreviewCarret/index.js +3 -3
  26. package/admin/src/components/PreviewWysiwyg/index.js +2 -2
  27. package/admin/src/components/RelationPreviewList/RelationPreviewTooltip.js +3 -3
  28. package/admin/src/components/RelationPreviewList/index.js +3 -3
  29. package/admin/src/components/RepeatableComponent/CarretTop.js +2 -2
  30. package/admin/src/components/RepeatableComponent/DraggedItem/index.js +3 -3
  31. package/admin/src/components/RepeatableComponent/index.js +3 -3
  32. package/admin/src/components/SectionTitle/index.js +2 -2
  33. package/admin/src/components/SelectMany/Relation.js +3 -3
  34. package/admin/src/components/SelectOne/SingleValue.js +2 -2
  35. package/admin/src/components/SelectWrapper/ClearIndicator.js +2 -2
  36. package/admin/src/components/SelectWrapper/IndicatorSeparator.js +3 -1
  37. package/admin/src/components/SelectWrapper/Option.js +2 -2
  38. package/admin/src/components/SettingsViewWrapper/index.js +3 -3
  39. package/admin/src/components/SortableList/Item.js +2 -2
  40. package/admin/src/components/SortableList/index.js +2 -2
  41. package/admin/src/components/State/index.js +2 -2
  42. package/admin/src/components/Wysiwyg/MediaLib.js +2 -2
  43. package/admin/src/components/Wysiwyg/customSelect.js +2 -2
  44. package/admin/src/components/Wysiwyg/previewControl.js +3 -3
  45. package/admin/src/components/Wysiwyg/toggleMode.js +2 -2
  46. package/admin/src/components/WysiwygBottomControls/index.js +2 -2
  47. package/admin/src/components/WysiwygDropUpload/index.js +2 -2
  48. package/admin/src/components/WysiwygInlineControls/Button.js +3 -3
  49. package/admin/src/components/WysiwygInlineControls/StyledButton.js +3 -1
  50. package/admin/src/components/WysiwygInlineControls/index.js +3 -3
  51. package/admin/src/containers/CollectionTypeFormWrapper/index.js +2 -2
  52. package/admin/src/containers/CollectionTypeRecursivePath/index.js +3 -3
  53. package/admin/src/containers/ComponentSetttingsView/index.js +2 -2
  54. package/admin/src/containers/EditSettingsView/index.js +2 -2
  55. package/admin/src/containers/EditView/DeleteLink/index.js +2 -2
  56. package/admin/src/containers/EditView/Header/index.js +3 -3
  57. package/admin/src/containers/EditView/InformationCard.js +2 -2
  58. package/admin/src/containers/EditView/index.js +3 -3
  59. package/admin/src/containers/EditViewDataManagerProvider/index.js +3 -3
  60. package/admin/src/containers/EditViewLayoutManager/Permissions.js +2 -2
  61. package/admin/src/containers/EditViewLayoutManager/index.js +2 -2
  62. package/admin/src/containers/ListSettingsView/Label.js +2 -2
  63. package/admin/src/containers/ListSettingsView/index.js +2 -2
  64. package/admin/src/containers/ListView/FieldPicker/ConfigureLink/index.js +2 -2
  65. package/admin/src/containers/ListView/FieldPicker/Field/index.js +2 -2
  66. package/admin/src/containers/ListView/FieldPicker/Fields/index.js +2 -2
  67. package/admin/src/containers/ListView/FieldPicker/Header/index.js +2 -2
  68. package/admin/src/containers/ListView/FieldPicker/index.js +2 -2
  69. package/admin/src/containers/ListView/index.js +1 -3
  70. package/admin/src/containers/ListViewLayoutManager/Permissions.js +2 -2
  71. package/admin/src/containers/ListViewLayoutManager/index.js +2 -2
  72. package/admin/src/containers/SingleTypeFormWrapper/index.js +2 -2
  73. package/admin/src/containers/SingleTypeRecursivePath/index.js +3 -3
  74. package/admin/src/icons/Bold/index.js +2 -2
  75. package/admin/src/icons/Code/index.js +2 -2
  76. package/admin/src/icons/Cross/index.js +2 -2
  77. package/admin/src/icons/Italic/index.js +2 -2
  78. package/admin/src/icons/Link/index.js +2 -2
  79. package/admin/src/icons/Media/index.js +2 -2
  80. package/admin/src/icons/Na/index.js +2 -2
  81. package/admin/src/icons/Ol/index.js +2 -2
  82. package/admin/src/icons/Quote/index.js +2 -2
  83. package/admin/src/icons/Striked/index.js +2 -2
  84. package/admin/src/icons/Ul/index.js +2 -2
  85. package/admin/src/icons/Underline/index.js +2 -2
  86. package/package.json +4 -4
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { Checkbox } from '@buffetjs/core';
4
4
  import Wrapper from './Wrapper';
5
5
 
6
- const Field = ({ name, onChange, value }) => {
6
+ function Field({ name, onChange, value }) {
7
7
  const handleChange = ({ target: { name, value } }) => {
8
8
  onChange({ name, value: !value });
9
9
  };
@@ -13,7 +13,7 @@ const Field = ({ name, onChange, value }) => {
13
13
  <Checkbox name={name} message={name} onChange={handleChange} value={value} />
14
14
  </Wrapper>
15
15
  );
16
- };
16
+ }
17
17
 
18
18
  Field.propTypes = {
19
19
  name: PropTypes.string.isRequired,
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import Field from '../Field';
4
4
  import Wrapper from './Wrapper';
5
5
 
6
- const Fields = ({ displayedHeaders, items, onChange }) => {
6
+ function Fields({ displayedHeaders, items, onChange }) {
7
7
  const getInputValue = useCallback(
8
8
  (headerName) => displayedHeaders.findIndex(({ name }) => name === headerName) !== -1,
9
9
  [displayedHeaders]
@@ -16,7 +16,7 @@ const Fields = ({ displayedHeaders, items, onChange }) => {
16
16
  ))}
17
17
  </Wrapper>
18
18
  );
19
- };
19
+ }
20
20
 
21
21
  Fields.propTypes = {
22
22
  displayedHeaders: PropTypes.array.isRequired,
@@ -6,7 +6,7 @@ import { BaselineAlignment, useGlobalContext } from '@akemona-org/strapi-helper-
6
6
  import { getTrad } from '../../../../utils';
7
7
  import Reset from './Reset';
8
8
 
9
- const Header = ({ onClick, onToggle }) => {
9
+ function Header({ onClick, onToggle }) {
10
10
  const { emitEvent } = useGlobalContext();
11
11
 
12
12
  const handleClick = () => {
@@ -32,7 +32,7 @@ const Header = ({ onClick, onToggle }) => {
32
32
  </Padded>
33
33
  </BaselineAlignment>
34
34
  );
35
- };
35
+ }
36
36
 
37
37
  Header.propTypes = {
38
38
  onClick: PropTypes.func.isRequired,
@@ -8,7 +8,7 @@ import Header from './Header';
8
8
  import Wrapper from './Wrapper';
9
9
  import ConfigureLink from './ConfigureLink';
10
10
 
11
- const FieldPicker = ({ displayedHeaders, items, onChange, onClickReset, slug }) => {
11
+ function FieldPicker({ displayedHeaders, items, onChange, onClickReset, slug }) {
12
12
  return (
13
13
  <Wrapper>
14
14
  <Picker
@@ -33,7 +33,7 @@ const FieldPicker = ({ displayedHeaders, items, onChange, onClickReset, slug })
33
33
  />
34
34
  </Wrapper>
35
35
  );
36
- };
36
+ }
37
37
 
38
38
  FieldPicker.propTypes = {
39
39
  displayedHeaders: PropTypes.array.isRequired,
@@ -348,8 +348,7 @@ function ListView({
348
348
  };
349
349
 
350
350
  return (
351
- <>
352
- <ListViewProvider
351
+ <ListViewProvider
353
352
  _q={_q}
354
353
  _sort={_sort}
355
354
  data={data}
@@ -487,7 +486,6 @@ function ListView({
487
486
  <InjectionZoneList area={`${pluginId}.listView.deleteModalAdditionalInfos`} />
488
487
  </PopUpWarning>
489
488
  </ListViewProvider>
490
- </>
491
489
  );
492
490
  }
493
491
 
@@ -5,7 +5,7 @@ import isEqual from 'react-fast-compare';
5
5
  import ListView from '../ListView';
6
6
  import { generatePermissionsObject } from '../../utils';
7
7
 
8
- const Permissions = (props) => {
8
+ function Permissions(props) {
9
9
  const viewPermissions = useMemo(() => generatePermissionsObject(props.slug), [props.slug]);
10
10
  const { isLoading, allowedActions } = useUserPermissions(viewPermissions, props.permissions);
11
11
 
@@ -14,7 +14,7 @@ const Permissions = (props) => {
14
14
  }
15
15
 
16
16
  return <ListView {...props} {...allowedActions} />;
17
- };
17
+ }
18
18
 
19
19
  Permissions.defaultProps = {
20
20
  permissions: [],
@@ -8,7 +8,7 @@ import { resetProps, setLayout } from '../ListView/actions';
8
8
  import useSyncRbac from '../RBACManager/useSyncRbac';
9
9
  import Permissions from './Permissions';
10
10
 
11
- const ListViewLayout = ({ layout, ...props }) => {
11
+ function ListViewLayout({ layout, ...props }) {
12
12
  const dispatch = useDispatch();
13
13
  const { replace } = useHistory();
14
14
  const [{ query, rawQuery }] = useQueryParams();
@@ -36,7 +36,7 @@ const ListViewLayout = ({ layout, ...props }) => {
36
36
  }
37
37
 
38
38
  return <Permissions {...props} layout={layout} permissions={permissions} />;
39
- };
39
+ }
40
40
 
41
41
  ListViewLayout.propTypes = {
42
42
  layout: PropTypes.exact({
@@ -24,7 +24,7 @@ import { getRequestUrl } from './utils';
24
24
  import buildQueryString from '../ListView/utils/buildQueryString';
25
25
 
26
26
  // This container is used to handle the CRUD
27
- const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
27
+ function SingleTypeFormWrapper({ allLayoutData, children, slug }) {
28
28
  const { emitEvent } = useGlobalContext();
29
29
  const { push } = useHistory();
30
30
  const emitEventRef = useRef(emitEvent);
@@ -298,7 +298,7 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
298
298
  redirectionLink: '/',
299
299
  status,
300
300
  });
301
- };
301
+ }
302
302
 
303
303
  SingleTypeFormWrapper.propTypes = {
304
304
  allLayoutData: PropTypes.shape({
@@ -9,12 +9,12 @@ import { formatLayoutToApi } from '../../utils';
9
9
  import EditViewLayoutManager from '../EditViewLayoutManager';
10
10
  import EditSettingsView from '../EditSettingsView';
11
11
 
12
- const SingleTypeRecursivePath = ({
12
+ function SingleTypeRecursivePath({
13
13
  match: {
14
14
  params: { slug },
15
15
  url,
16
16
  },
17
- }) => {
17
+ }) {
18
18
  const { isLoading, layout, updateLayout } = useFetchContentTypeLayout(slug);
19
19
 
20
20
  const { rawContentTypeLayout, rawComponentsLayouts } = useMemo(() => {
@@ -71,7 +71,7 @@ const SingleTypeRecursivePath = ({
71
71
  </Switch>
72
72
  </ContentTypeLayoutContext.Provider>
73
73
  );
74
- };
74
+ }
75
75
 
76
76
  SingleTypeRecursivePath.propTypes = {
77
77
  match: PropTypes.shape({
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const Bold = () => {
3
+ function Bold() {
4
4
  return (
5
5
  <svg width="9" height="10" xmlns="http://www.w3.org/2000/svg">
6
6
  <text
@@ -17,6 +17,6 @@ const Bold = () => {
17
17
  </text>
18
18
  </svg>
19
19
  );
20
- };
20
+ }
21
21
 
22
22
  export default Bold;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const Code = () => {
3
+ function Code() {
4
4
  return (
5
5
  <svg width="12" height="8" xmlns="http://www.w3.org/2000/svg">
6
6
  <g fill="#333740" fillRule="evenodd">
@@ -8,6 +8,6 @@ const Code = () => {
8
8
  </g>
9
9
  </svg>
10
10
  );
11
- };
11
+ }
12
12
 
13
13
  export default Code;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
 
4
- const Cross = ({ fill, height, width, ...rest }) => {
4
+ function Cross({ fill, height, width, ...rest }) {
5
5
  return (
6
6
  <svg {...rest} width={width} height={height} xmlns="http://www.w3.org/2000/svg">
7
7
  <path
@@ -11,7 +11,7 @@ const Cross = ({ fill, height, width, ...rest }) => {
11
11
  />
12
12
  </svg>
13
13
  );
14
- };
14
+ }
15
15
 
16
16
  Cross.defaultProps = {
17
17
  fill: '#b3b5b9',
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const Italic = () => {
3
+ function Italic() {
4
4
  return (
5
5
  <svg width="6" height="9" xmlns="http://www.w3.org/2000/svg">
6
6
  <text
@@ -18,6 +18,6 @@ const Italic = () => {
18
18
  </text>
19
19
  </svg>
20
20
  );
21
- };
21
+ }
22
22
 
23
23
  export default Italic;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const Link = () => {
3
+ function Link() {
4
4
  return (
5
5
  <svg width="12" height="6" xmlns="http://www.w3.org/2000/svg">
6
6
  <g fill="none" fillRule="evenodd">
@@ -16,6 +16,6 @@ const Link = () => {
16
16
  </g>
17
17
  </svg>
18
18
  );
19
- };
19
+ }
20
20
 
21
21
  export default Link;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const Media = () => {
3
+ function Media() {
4
4
  return (
5
5
  <svg width="12" height="11" xmlns="http://www.w3.org/2000/svg">
6
6
  <g fill="#333740" fillRule="evenodd">
@@ -9,6 +9,6 @@ const Media = () => {
9
9
  </g>
10
10
  </svg>
11
11
  );
12
- };
12
+ }
13
13
 
14
14
  export default Media;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
 
4
- const Na = ({ fill, fontFamily, fontSize, fontWeight, height, textFill, width, ...rest }) => {
4
+ function Na({ fill, fontFamily, fontSize, fontWeight, height, textFill, width, ...rest }) {
5
5
  return (
6
6
  <svg {...rest} width={width} height={height} xmlns="http://www.w3.org/2000/svg">
7
7
  <g fill="none" fillRule="evenodd">
@@ -14,7 +14,7 @@ const Na = ({ fill, fontFamily, fontSize, fontWeight, height, textFill, width, .
14
14
  </g>
15
15
  </svg>
16
16
  );
17
- };
17
+ }
18
18
 
19
19
  Na.defaultProps = {
20
20
  fill: '#fafafb',
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const Ol = () => {
3
+ function Ol() {
4
4
  return (
5
5
  <svg width="12" height="8" xmlns="http://www.w3.org/2000/svg">
6
6
  <g fill="#333740" fillRule="evenodd">
@@ -8,6 +8,6 @@ const Ol = () => {
8
8
  </g>
9
9
  </svg>
10
10
  );
11
- };
11
+ }
12
12
 
13
13
  export default Ol;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const Quote = () => {
3
+ function Quote() {
4
4
  return (
5
5
  <svg width="9" height="9" xmlns="http://www.w3.org/2000/svg">
6
6
  <g fill="#333740" fillRule="evenodd">
@@ -8,6 +8,6 @@ const Quote = () => {
8
8
  </g>
9
9
  </svg>
10
10
  );
11
- };
11
+ }
12
12
 
13
13
  export default Quote;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const Striked = () => {
3
+ function Striked() {
4
4
  return (
5
5
  <svg width="19" height="10" xmlns="http://www.w3.org/2000/svg">
6
6
  <g fill="none" fillRule="evenodd">
@@ -19,6 +19,6 @@ const Striked = () => {
19
19
  </g>
20
20
  </svg>
21
21
  );
22
- };
22
+ }
23
23
 
24
24
  export default Striked;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const Ul = () => {
3
+ function Ul() {
4
4
  return (
5
5
  <svg width="13" height="7" xmlns="http://www.w3.org/2000/svg">
6
6
  <g fill="none" fillRule="evenodd">
@@ -10,6 +10,6 @@ const Ul = () => {
10
10
  </g>
11
11
  </svg>
12
12
  );
13
- };
13
+ }
14
14
 
15
15
  export default Ul;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- const Underline = () => {
3
+ function Underline() {
4
4
  return (
5
5
  <svg width="10" height="10" xmlns="http://www.w3.org/2000/svg">
6
6
  <text
@@ -17,6 +17,6 @@ const Underline = () => {
17
17
  </text>
18
18
  </svg>
19
19
  );
20
- };
20
+ }
21
21
 
22
22
  export default Underline;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.12.3",
6
+ "version": "3.13.0",
7
7
  "description": "A powerful UI to easily manage your data.",
8
8
  "strapi": {
9
9
  "name": "Content Manager",
@@ -12,8 +12,8 @@
12
12
  "required": true
13
13
  },
14
14
  "dependencies": {
15
- "@akemona-org/strapi-helper-plugin": "3.12.3",
16
- "@akemona-org/strapi-utils": "3.12.3",
15
+ "@akemona-org/strapi-helper-plugin": "3.13.0",
16
+ "@akemona-org/strapi-utils": "3.13.0",
17
17
  "@buffetjs/core": "3.3.8",
18
18
  "@buffetjs/custom": "3.3.8",
19
19
  "@buffetjs/hooks": "3.3.8",
@@ -73,5 +73,5 @@
73
73
  "npm": ">=6.0.0"
74
74
  },
75
75
  "license": "SEE LICENSE IN LICENSE",
76
- "gitHead": "3bfc6b17b14507d445020f846054a0beb0d21c86"
76
+ "gitHead": "8bb7b41ae9cc2110f94b9338f0ec2df437e49161"
77
77
  }