strapi-plugin-navigation 2.0.5 → 2.0.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/README.md CHANGED
@@ -81,7 +81,7 @@ Complete installation requirements are exact same as for Strapi itself and can b
81
81
 
82
82
  **Supported Strapi versions**:
83
83
 
84
- - Strapi v4.1.0 (recently tested)
84
+ - Strapi v4.1.5 (recently tested)
85
85
  - Strapi v4.x
86
86
 
87
87
  > This plugin is designed for **Strapi v4** and is not working with v3.x. To get version for **Strapi v3** install version [v1.x](https://github.com/VirtusLab-Open-Source/strapi-plugin-navigation/tree/strapi-v3).
@@ -55,7 +55,7 @@ const SettingsPage = () => {
55
55
  additionalFields: audienceFieldChecked ? [navigationItemAdditionalFields.AUDIENCE] : [],
56
56
  allowedLevels: allowedLevels,
57
57
  gql: {
58
- navigationItemRelated: selectedContentTypes.map(uid => allContentTypes.find(ct => ct.uid === uid).info.displayName)
58
+ navigationItemRelated: selectedContentTypes.map(uid => allContentTypes.find(ct => ct.uid === uid).info.displayName.replace(/\s+/g, ''))
59
59
  }
60
60
  });
61
61
 
@@ -292,4 +292,4 @@ const SettingsPage = () => {
292
292
  }
293
293
 
294
294
 
295
- export default SettingsPage;
295
+ export default SettingsPage;
@@ -1,16 +1,16 @@
1
1
 
2
2
 
3
3
  import React from 'react';
4
- import { ButtonText } from '@strapi/design-system/Text';
4
+ import { Typography } from '@strapi/design-system/Typography';
5
5
  import { ModalHeader } from '@strapi/design-system/ModalLayout';
6
6
  import { getMessage } from '../../../../utils';
7
7
 
8
8
  export const NavigationItemPopupHeader = ({isNewItem}) => {
9
9
  return (
10
10
  <ModalHeader>
11
- <ButtonText textColor="neutral800" as="h2" id="asset-dialog-title">
11
+ <Typography variant="omega" fontWeight="bold" textColor="neutral800" as="h2" id="asset-dialog-title">
12
12
  {getMessage(`popup.item.header.${isNewItem ? 'new' : 'edit'}`)}
13
- </ButtonText>
13
+ </Typography>
14
14
  </ModalHeader>
15
15
  );
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-navigation",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Strapi - Navigation plugin",
5
5
  "strapi": {
6
6
  "name": "navigation",
@@ -17,9 +17,8 @@
17
17
  "test:unit": "jest --verbose --coverage"
18
18
  },
19
19
  "dependencies": {
20
- "@strapi/utils": "^4.1.0",
20
+ "@strapi/utils": "^4.1.5",
21
21
  "uuid": "^8.3.0",
22
- "bad-words": "^3.0.3",
23
22
  "lodash": "^4.17.11",
24
23
  "react": "^16.9.0",
25
24
  "react-dom": "^16.9.0",