@eeacms/volto-eea-website-theme 1.6.2 → 1.6.4
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/CHANGELOG.md
CHANGED
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
4
4
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
6
6
|
|
7
|
+
### [1.6.4](https://github.com/eea/volto-eea-website-theme/compare/1.6.3...1.6.4) - 31 January 2023
|
8
|
+
|
9
|
+
#### :bug: Bug Fixes
|
10
|
+
|
11
|
+
- fix(diff): Fix history diff - refs #159677 [Alin Voinea - [`0188cf4`](https://github.com/eea/volto-eea-website-theme/commit/0188cf4e40ee314920f9ba33423d409a39f21cae)]
|
12
|
+
|
13
|
+
### [1.6.3](https://github.com/eea/volto-eea-website-theme/compare/1.6.2...1.6.3) - 30 January 2023
|
14
|
+
|
15
|
+
#### :nail_care: Enhancements
|
16
|
+
|
17
|
+
- change(menu): use nav title if found for menu items #90 from eea/develop [ichim-david - [`f5ff1a1`](https://github.com/eea/volto-eea-website-theme/commit/f5ff1a1b017a515f997455ef564e4562e73e587a)]
|
18
|
+
- change(menu): use nav title if found for menu items otherwise fallback to normal item title [David Ichim - [`77fd15a`](https://github.com/eea/volto-eea-website-theme/commit/77fd15aadec86831f6192ae86b4291fd903e1b1a)]
|
19
|
+
|
7
20
|
### [1.6.2](https://github.com/eea/volto-eea-website-theme/compare/1.6.1...1.6.2) - 27 January 2023
|
8
21
|
|
9
22
|
#### :bug: Bug Fixes
|
@@ -14,6 +27,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
14
27
|
|
15
28
|
#### :nail_care: Enhancements
|
16
29
|
|
30
|
+
- change(header): page header import from eea-design-system #89 from eea/develop [ichim-david - [`d168209`](https://github.com/eea/volto-eea-website-theme/commit/d16820910eb9f8cdb32784eb1206bb2cddbb3992)]
|
17
31
|
- refactor(banner): sync storybook and Volto component #76 from eea/sync-page-banner-theme [ichim-david - [`fad29fb`](https://github.com/eea/volto-eea-website-theme/commit/fad29fb4581c640a27e14743803eadb63ff67334)]
|
18
32
|
- change(banner): removed container wrapper since it was moved inside banner component [David Ichim - [`5cf9c3b`](https://github.com/eea/volto-eea-website-theme/commit/5cf9c3bc9f443ee45f234744a1a4c589420e3815)]
|
19
33
|
- refactor(banner): sync storybook and Volto component [nileshgulia1 - [`d2d6a61`](https://github.com/eea/volto-eea-website-theme/commit/d2d6a617f5d270768448bc3f0637c5aea60d70f2)]
|
package/package.json
CHANGED
@@ -9,19 +9,27 @@ import PropTypes from 'prop-types';
|
|
9
9
|
|
10
10
|
import BannerView from '@eeacms/volto-eea-website-theme/components/theme/Banner/View';
|
11
11
|
|
12
|
+
function IsomorphicPortal({ children }) {
|
13
|
+
const [isClient, setIsClient] = React.useState();
|
14
|
+
React.useEffect(() => setIsClient(true), []);
|
15
|
+
|
16
|
+
return isClient ? (
|
17
|
+
<Portal node={document.getElementById('page-header')}>{children}</Portal>
|
18
|
+
) : (
|
19
|
+
children
|
20
|
+
);
|
21
|
+
}
|
22
|
+
|
12
23
|
/**
|
13
24
|
* View title block class.
|
14
25
|
* @class View
|
15
26
|
* @extends Component
|
16
27
|
*/
|
17
|
-
const View = (props) =>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
</Portal>
|
23
|
-
);
|
24
|
-
};
|
28
|
+
const View = (props) => (
|
29
|
+
<IsomorphicPortal>
|
30
|
+
<BannerView {...props} />
|
31
|
+
</IsomorphicPortal>
|
32
|
+
);
|
25
33
|
|
26
34
|
/**
|
27
35
|
* Property types.
|
@@ -231,14 +231,14 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
|
|
231
231
|
renderMenuItem={(item, options, props) => (
|
232
232
|
<UniversalLink
|
233
233
|
href={item.url || '/'}
|
234
|
-
title={item.title}
|
234
|
+
title={item.nav_title || item.title}
|
235
235
|
{...(options || {})}
|
236
236
|
className={cx(options?.className, {
|
237
237
|
active: item.url === router_pathname,
|
238
238
|
})}
|
239
239
|
>
|
240
240
|
{props?.iconPosition !== 'right' && props?.children}
|
241
|
-
<span>{item.title}</span>
|
241
|
+
<span>{item.nav_title || item.title}</span>
|
242
242
|
{props?.iconPosition === 'right' && props?.children}
|
243
243
|
</UniversalLink>
|
244
244
|
)}
|