@eeacms/volto-eea-website-theme 1.16.0 → 1.17.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,6 +4,31 @@ 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.17.1](https://github.com/eea/volto-eea-website-theme/compare/1.17.0...1.17.1) - 12 June 2023
8
+
9
+ #### :nail_care: Enhancements
10
+
11
+ - change(footer): add managed logos header if logosHeader value is present [David Ichim - [`e8c8180`](https://github.com/eea/volto-eea-website-theme/commit/e8c818097529b90c03da46d8aafa01cfbc90c6c4)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`bc8862c`](https://github.com/eea/volto-eea-website-theme/commit/bc8862c616aaf463344871fa5dead8563b9590bc)]
16
+ ### [1.17.0](https://github.com/eea/volto-eea-website-theme/compare/1.16.0...1.17.0) - 8 June 2023
17
+
18
+ #### :bug: Bug Fixes
19
+
20
+ - fix(breadcrumbs): update issue by forcing info to load on page load #145 from eea/breadcrumbs [ichim-david - [`aed0979`](https://github.com/eea/volto-eea-website-theme/commit/aed0979aa786ce6a788eb76041c09d190339e304)]
21
+ - fix: cypress [tedw87 - [`5d71a72`](https://github.com/eea/volto-eea-website-theme/commit/5d71a7287f5fd53ec555eb2932a1f76804718f7a)]
22
+ - fix:breadcrumbs update [tedw87 - [`22303c5`](https://github.com/eea/volto-eea-website-theme/commit/22303c5f6193bb698bfaf5488137433f3077ab15)]
23
+
24
+ #### :nail_care: Enhancements
25
+
26
+ - change(footer): add sites logo classes for easier logo sizing tweaks [David Ichim - [`4956438`](https://github.com/eea/volto-eea-website-theme/commit/49564383ac5ae6243fe341fdc73ae660df59948d)]
27
+ - change(footer): use url instead of link to reference footer action links [David Ichim - [`a288ee7`](https://github.com/eea/volto-eea-website-theme/commit/a288ee7083de5af6a59a9a29340df75f1f019c20)]
28
+
29
+ #### :hammer_and_wrench: Others
30
+
31
+ - test: Fix test config, coverage Refs #253277 [valentinab25 - [`be66cab`](https://github.com/eea/volto-eea-website-theme/commit/be66cab44b38908f2ab0ccf7af2393a2269b827e)]
7
32
  ### [1.16.0](https://github.com/eea/volto-eea-website-theme/compare/1.15.0...1.16.0) - 8 June 2023
8
33
 
9
34
  #### :bug: Bug Fixes
@@ -31,6 +56,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
31
56
 
32
57
  #### :house: Internal changes
33
58
 
59
+ - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
34
60
 
35
61
  #### :hammer_and_wrench: Others
36
62
 
@@ -186,6 +212,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
186
212
 
187
213
  #### :hammer_and_wrench: Others
188
214
 
215
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
189
216
  ### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
190
217
 
191
218
  #### :bug: Bug Fixes
@@ -332,6 +359,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
332
359
 
333
360
  - For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
334
361
  - Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
362
+ - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
335
363
  ### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
336
364
 
337
365
  #### :hammer_and_wrench: Others
@@ -365,6 +393,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
365
393
 
366
394
  - Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
367
395
  - bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
396
+ - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
368
397
  - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
369
398
  ### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
370
399
 
@@ -374,6 +403,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
374
403
 
375
404
  #### :hammer_and_wrench: Others
376
405
 
406
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
377
407
  - Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
378
408
  - Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
379
409
  ### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
@@ -384,6 +414,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
384
414
 
385
415
  #### :hammer_and_wrench: Others
386
416
 
417
+ - yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
387
418
  ### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
388
419
 
389
420
  #### :rocket: New Features
@@ -424,6 +455,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
424
455
  - Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
425
456
  - Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
426
457
  - fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
458
+ - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
427
459
  ### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
428
460
 
429
461
  #### :nail_care: Enhancements
@@ -471,6 +503,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
471
503
 
472
504
  #### :hammer_and_wrench: Others
473
505
 
506
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
474
507
  ### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
475
508
 
476
509
  #### :hammer_and_wrench: Others
@@ -738,6 +771,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
738
771
  - Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
739
772
  - Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
740
773
  - 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)]
774
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
741
775
  - use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
742
776
  - Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
743
777
  - Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
@@ -779,4 +813,5 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
779
813
 
780
814
  #### :hammer_and_wrench: Others
781
815
 
816
+ - yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
782
817
  - Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
@@ -5,19 +5,19 @@ module.exports = {
5
5
  '!src/**/*.d.ts',
6
6
  ],
7
7
  moduleNameMapper: {
8
+ '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
8
9
  '@plone/volto/cypress': '<rootDir>/node_modules/@plone/volto/cypress',
9
10
  '@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
10
11
  '@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
11
12
  '@package/(.*)$': '<rootDir>/src/$1',
12
13
  '@root/(.*)$': '<rootDir>/src/$1',
13
14
  '@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
14
- '@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
15
+ '@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
15
16
  '@plone/volto-slate':
16
17
  '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
17
18
  '~/(.*)$': '<rootDir>/src/$1',
18
19
  'load-volto-addons':
19
20
  '<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
20
- '\\.(css|less|scss|sass)$': 'identity-obj-proxy',
21
21
  },
22
22
  transform: {
23
23
  '^.+\\.js(x)?$': 'babel-jest',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "1.16.0",
3
+ "version": "1.17.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",
package/src/config.js CHANGED
@@ -16,83 +16,93 @@ import climateLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/ass
16
16
  // Footer.jsx config options
17
17
  export const footerOpts = {
18
18
  header: 'Environmental information systems',
19
- logosHeader: 'Managed by',
19
+ logosHeader: '',
20
20
  contactHeader: 'Contact Us',
21
21
  actions: [
22
22
  {
23
23
  title: 'Privacy',
24
- link: '/privacy',
24
+ url: '/privacy',
25
25
  },
26
26
  {
27
- link: '/sitemap',
27
+ url: '/sitemap',
28
28
  title: 'Sitemap',
29
29
  },
30
30
  {
31
- link: '/login',
31
+ url: '/login',
32
32
  title: 'CMS Login',
33
33
  },
34
34
  ],
35
35
  copyright: [
36
36
  {
37
- link: '/copyright',
37
+ url: '/copyright',
38
38
  site: 'EEA',
39
39
  },
40
40
  ],
41
41
  sites: [
42
42
  {
43
- link: 'https://water.europa.eu/marine',
43
+ url: 'https://water.europa.eu/marine',
44
44
  src: marineLogo,
45
45
  alt: 'WISE marine',
46
+ className: 'marine logo',
46
47
  },
47
48
  {
48
- link: 'https://water.europa.eu/freshwater',
49
+ url: 'https://water.europa.eu/freshwater',
49
50
  src: freshwaterLogo,
50
51
  alt: 'WISE freshwater',
52
+ className: 'freshwater logo',
51
53
  },
52
54
  {
53
- link: 'https://biodiversity.europa.eu/',
55
+ url: 'https://biodiversity.europa.eu/',
54
56
  src: biseLogo,
55
57
  alt: 'Biodiversity',
58
+ className: 'biodiversity logo',
56
59
  },
57
60
  {
58
- link: 'https://forest.eea.europa.eu/',
61
+ url: 'https://forest.eea.europa.eu/',
59
62
  src: fiseLogo,
60
63
  alt: 'Forest information system for europe',
64
+ className: 'fise logo',
61
65
  },
62
66
  {
63
- link: 'https://climate-adapt.eea.europa.eu/observatory',
67
+ url: 'https://climate-adapt.eea.europa.eu/observatory',
64
68
  src: climateLogo,
65
69
  alt: 'European Climate and Health Observatory',
70
+ className: 'climate logo',
66
71
  },
67
72
  {
68
- link: 'https://climate-adapt.eea.europa.eu/',
73
+ url: 'https://climate-adapt.eea.europa.eu/',
69
74
  src: ccaLogo,
70
75
  alt: 'Climate adapt',
76
+ className: 'cca logo',
71
77
  },
72
78
  {
73
- link: 'https://industry.eea.europa.eu/',
79
+ url: 'https://industry.eea.europa.eu/',
74
80
  src: industryLogo,
75
81
  alt: 'European industrial emissions portal',
82
+ className: 'industry logo',
76
83
  },
77
84
  {
78
- link: 'https://climate-energy.eea.europa.eu/',
85
+ url: 'https://climate-energy.eea.europa.eu/',
79
86
  src: energyLogo,
80
87
  alt: 'Climate and energy in the EU',
88
+ className: 'energy logo',
81
89
  },
82
90
  {
83
- link: 'https://land.copernicus.eu/',
91
+ url: 'https://land.copernicus.eu/',
84
92
  src: copernicusLogo,
85
93
  alt: 'Copernicus land monitoring service',
94
+ className: 'copernicus logo',
86
95
  },
87
96
  {
88
- link: 'https://insitu.copernicus.eu/',
97
+ url: 'https://insitu.copernicus.eu/',
89
98
  src: insituLogo,
90
99
  alt: 'Copernicus in situ',
100
+ className: 'insitu logo',
91
101
  },
92
102
  ],
93
103
  managedBy: [
94
104
  {
95
- link: 'https://www.eea.europa.eu/',
105
+ url: 'https://www.eea.europa.eu/',
96
106
  src: eeaWhiteLogo,
97
107
  alt: 'EEA Logo',
98
108
  className: 'site logo',
@@ -103,7 +113,7 @@ export const footerOpts = {
103
113
  },
104
114
  },
105
115
  {
106
- link: 'https://www.eionet.europa.eu/',
116
+ url: 'https://www.eionet.europa.eu/',
107
117
  src: eionetLogo,
108
118
  alt: 'EIONET Logo',
109
119
  className: 'eionet logo',
@@ -118,46 +128,46 @@ export const footerOpts = {
118
128
  {
119
129
  name: 'twitter',
120
130
  icon: 'ri-twitter-fill',
121
- link: 'https://twitter.com/euenvironment',
131
+ url: 'https://twitter.com/euenvironment',
122
132
  },
123
133
  {
124
134
  name: 'facebook',
125
135
  icon: 'ri-facebook-box-fill',
126
- link: 'https://www.facebook.com/European.Environment.Agency',
136
+ url: 'https://www.facebook.com/European.Environment.Agency',
127
137
  },
128
138
  {
129
139
  name: 'linkedin',
130
140
  icon: 'ri-linkedin-fill',
131
- link: 'https://www.linkedin.com/company/european-environment-agency',
141
+ url: 'https://www.linkedin.com/company/european-environment-agency',
132
142
  },
133
143
  {
134
144
  name: 'youtube',
135
145
  icon: 'ri-youtube-fill',
136
- link: 'https://www.youtube.com/user/EEAvideos',
146
+ url: 'https://www.youtube.com/user/EEAvideos',
137
147
  },
138
148
  {
139
149
  name: 'instagram',
140
150
  icon: 'ri-instagram-fill',
141
- link: 'https://www.instagram.com/ourplanet_eu',
151
+ url: 'https://www.instagram.com/ourplanet_eu',
142
152
  },
143
153
  {
144
154
  name: 'rss',
145
155
  icon: 'ri-rss-fill',
146
- link: '/subscription/news-feeds',
156
+ url: '/subscription/news-feeds',
147
157
  },
148
158
  ],
149
159
  contacts: [
150
160
  {
151
161
  icon: 'comment outline',
152
162
  text: 'About us',
153
- link: '/about',
163
+ url: '/about',
154
164
  children: [
155
165
  {
156
- link: '/faq',
166
+ url: '/faq',
157
167
  text: 'FAQs',
158
168
  },
159
169
  {
160
- link: '/careers',
170
+ url: '/careers',
161
171
  text: 'Careers',
162
172
  },
163
173
  ],
@@ -165,12 +175,12 @@ export const footerOpts = {
165
175
  {
166
176
  icon: 'comment outline',
167
177
  text: 'Contact us',
168
- link: '/contact-us',
178
+ url: '/contact-us',
169
179
  },
170
180
  {
171
181
  icon: 'envelope outline',
172
182
  text: 'Sign up to our newsletter',
173
- link: '/newsletter',
183
+ url: '/newsletter',
174
184
  },
175
185
  ],
176
186
  address: 'Kongens Nytorv 6 1050 Copenhagen K (+45) 33 36 71 00',
@@ -32,7 +32,7 @@ const Footer = () => {
32
32
  const actions = isArray(footerActions)
33
33
  ? footerActions.map((action) => ({
34
34
  title: action.title,
35
- link: flattenToAppURL(action.url),
35
+ url: flattenToAppURL(action.url),
36
36
  }))
37
37
  : eea.footerOpts.actions;
38
38
 
@@ -41,7 +41,7 @@ const Footer = () => {
41
41
  ? copyrightActions.map((action) => ({
42
42
  title: action.title,
43
43
  site: action.title,
44
- link: flattenToAppURL(action.url),
44
+ url: flattenToAppURL(action.url),
45
45
  }))
46
46
  : eea.footerOpts.copyright;
47
47
 
@@ -50,7 +50,7 @@ const Footer = () => {
50
50
  ? socialActions.map((action) => ({
51
51
  name: action.id,
52
52
  icon: action.icon,
53
- link: action.url,
53
+ url: action.url,
54
54
  }))
55
55
  : eea.footerOpts.social;
56
56
 
@@ -59,13 +59,13 @@ const Footer = () => {
59
59
  ? contactActions.map((action, idx) => ({
60
60
  text: action.title,
61
61
  icon: action.icon,
62
- link: flattenToAppURL(action.url),
62
+ url: flattenToAppURL(action.url),
63
63
  children:
64
64
  idx === 0
65
65
  ? contactExtraActions.map((child) => ({
66
66
  text: child.title,
67
67
  icon: child.icon,
68
- link: flattenToAppURL(child.url),
68
+ url: flattenToAppURL(child.url),
69
69
  }))
70
70
  : [],
71
71
  }))
@@ -80,6 +80,7 @@ const Footer = () => {
80
80
 
81
81
  return (
82
82
  <EEAFooter>
83
+ <EEAFooter.Header>{eea.footerOpts.logosHeader}</EEAFooter.Header>
83
84
  <EEAFooter.SubFooter {...options} />
84
85
  <EEAFooter.Header>{eea.footerOpts.header}</EEAFooter.Header>
85
86
  <EEAFooter.Sites sites={eea.footerOpts.sites} />
package/src/index.js CHANGED
@@ -261,6 +261,12 @@ const applyConfig = (config) => {
261
261
  config.blocks.blocksConfig.accordion.mostUsed = true;
262
262
  }
263
263
 
264
+ // Breadcrumbs
265
+ config.settings.apiExpanders.push({
266
+ match: '',
267
+ GET_CONTENT: ['breadcrumbs'], // 'navigation', 'actions', 'types'],
268
+ });
269
+
264
270
  // Custom blocks: Title
265
271
  return [installCustomTitle].reduce((acc, apply) => apply(acc), config);
266
272
  };