@eeacms/volto-eea-website-theme 1.2.0 → 1.3.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/CHANGELOG.md CHANGED
@@ -4,12 +4,33 @@ 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.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 25 November 2022
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat(Footer): Bring back footer contacts extra actions - refs #151856 [Alin Voinea - [`6c19413`](https://github.com/eea/volto-eea-website-theme/commit/6c194139420c9fd847692d180db1c1593e2483de)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
16
+ ### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
17
+
18
+ #### :rocket: New Features
19
+
20
+ - feat(footer): Get footer, copyright, social and contact actions from backend - refs #151856 [Alin Voinea - [`2560a5f`](https://github.com/eea/volto-eea-website-theme/commit/2560a5f57262999b1aa0bd3fa949cc33dd85bd31)]
21
+
22
+ #### :bug: Bug Fixes
23
+
24
+ - fix(header): removed capitalization of Know from header dropdown section [David Ichim - [`14b45a3`](https://github.com/eea/volto-eea-website-theme/commit/14b45a391abf039357f8f19e64b9b04402e8ba4c)]
25
+
26
+ #### :hammer_and_wrench: Others
27
+
28
+ - Release 1.3.0 [Alin Voinea - [`082f468`](https://github.com/eea/volto-eea-website-theme/commit/082f468fd56a37063b7d80fcfc6f5f599b74e7c4)]
7
29
  ### [1.2.0](https://github.com/eea/volto-eea-website-theme/compare/1.1.0...1.2.0) - 16 November 2022
8
30
 
9
31
  #### :rocket: New Features
10
32
 
11
33
  - feat(dependencies): volto-subsites [Alin Voinea - [`7e196b3`](https://github.com/eea/volto-eea-website-theme/commit/7e196b3ba0ffdae32d15fc1a9a020a7f760461ac)]
12
- - feat(header): customization of logo + check if multilingual [Miu Razvan - [`cc5bb39`](https://github.com/eea/volto-eea-website-theme/commit/cc5bb3927b79b87f269c8a2a77b1913785892658)]
13
34
 
14
35
  #### :bug: Bug Fixes
15
36
 
@@ -32,6 +53,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
32
53
  - Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
33
54
  - Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
34
55
  - fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
56
+ - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
35
57
  ### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
36
58
 
37
59
  #### :nail_care: Enhancements
@@ -79,6 +101,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
79
101
 
80
102
  #### :hammer_and_wrench: Others
81
103
 
104
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
82
105
  ### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
83
106
 
84
107
  #### :hammer_and_wrench: Others
@@ -346,6 +369,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
346
369
  - Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
347
370
  - Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
348
371
  - feature(breadcrumbs): implement eea-design-system breadcrumb as Volto component #32 #7 [ichim-david - [`181af41`](https://github.com/eea/volto-eea-website-theme/commit/181af4125ce2b9ddac56dab4723cb11c26633221)]
372
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
349
373
  - use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
350
374
  - Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
351
375
  - Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
@@ -387,4 +411,5 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
387
411
 
388
412
  #### :hammer_and_wrench: Others
389
413
 
414
+ - yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
390
415
  - Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "@eeacms/volto-eea-website-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -26,8 +26,8 @@
26
26
  "volto-subsites": "*"
27
27
  },
28
28
  "devDependencies": {
29
- "@plone/scripts": "*",
30
29
  "@cypress/code-coverage": "^3.10.0",
30
+ "@plone/scripts": "*",
31
31
  "babel-plugin-transform-class-properties": "^6.24.1",
32
32
  "md5": "^2.3.0"
33
33
  },
@@ -4,20 +4,85 @@
4
4
  */
5
5
 
6
6
  import React from 'react';
7
+ import { useSelector, shallowEqual } from 'react-redux';
8
+ import { flattenToAppURL } from '@plone/volto/helpers';
7
9
  import EEAFooter from '@eeacms/volto-eea-design-system/ui/Footer/Footer';
8
10
  import config from '@plone/volto/registry';
9
11
 
10
- const Footer = (props) => {
12
+ const Footer = () => {
11
13
  const { eea } = config.settings;
14
+ const {
15
+ footerActions = [],
16
+ copyrightActions = [],
17
+ socialActions = [],
18
+ contactActions = [],
19
+ contactExtraActions = [],
20
+ } = useSelector(
21
+ (state) => ({
22
+ footerActions: state.actions?.actions?.footer_actions,
23
+ copyrightActions: state.actions?.actions?.copyright_actions,
24
+ socialActions: state.actions?.actions?.social_actions,
25
+ contactActions: state.actions?.actions?.contact_actions,
26
+ contactExtraActions: state.actions?.actions?.contact_extra_actions,
27
+ }),
28
+ shallowEqual,
29
+ );
30
+ // ZMI > portal_actions > footer_actions
31
+ const actions = footerActions.length
32
+ ? footerActions.map((action) => ({
33
+ title: action.title,
34
+ link: flattenToAppURL(action.url),
35
+ }))
36
+ : eea.footerOpts.actions;
37
+
38
+ // ZMI > portal_actions > copyright_actions
39
+ const copyright = copyrightActions.length
40
+ ? copyrightActions.map((action) => ({
41
+ title: action.title,
42
+ site: action.title,
43
+ link: flattenToAppURL(action.url),
44
+ }))
45
+ : eea.footerOpts.copyright;
46
+
47
+ // ZMI > portal_actions > social_actions
48
+ const social = socialActions.length
49
+ ? socialActions.map((action) => ({
50
+ name: action.id,
51
+ icon: action.icon,
52
+ link: action.url,
53
+ }))
54
+ : eea.footerOpts.social;
55
+
56
+ // ZMI > portal_actions > contact_actions
57
+ const contacts = contactActions.length
58
+ ? contactActions.map((action, idx) => ({
59
+ text: action.title,
60
+ icon: action.icon,
61
+ link: flattenToAppURL(action.url),
62
+ children:
63
+ idx === 0
64
+ ? contactExtraActions.map((child) => ({
65
+ text: child.title,
66
+ icon: child.icon,
67
+ link: flattenToAppURL(child.url),
68
+ }))
69
+ : [],
70
+ }))
71
+ : eea.footerOpts.contacts;
72
+
73
+ // Update options with actions from backend
74
+ const options = {
75
+ ...eea.footerOpts,
76
+ social,
77
+ contacts,
78
+ };
79
+
12
80
  return (
13
81
  <EEAFooter>
14
- <EEAFooter.SubFooter {...eea.footerOpts} />
82
+ <EEAFooter.SubFooter {...options} />
15
83
  <EEAFooter.Header>{eea.footerOpts.header}</EEAFooter.Header>
16
84
  <EEAFooter.Sites sites={eea.footerOpts.sites} />
17
- <EEAFooter.Actions
18
- actions={eea.footerOpts.actions}
19
- copyright={eea.footerOpts.copyright}
20
- />
85
+ <EEAFooter.Actions actions={actions} copyright={copyright} />
21
86
  </EEAFooter>
22
87
  );
23
88
  };
@@ -92,7 +92,7 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
92
92
  <Header.TopItem className="official-union">
93
93
  <Image src={eeaFlag} alt="eea flag"></Image>
94
94
  <Header.TopDropdownMenu
95
- text="An official website of the European Union | How do you Know?"
95
+ text="An official website of the European Union | How do you know?"
96
96
  tabletText="EEA information systems"
97
97
  mobileText=" "
98
98
  icon="chevron down"