@eeacms/volto-eea-website-theme 2.1.6 → 2.2.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 +14 -21
- package/package.json +1 -1
- package/src/config.js +4 -3
- package/src/customizations/volto/components/manage/Blocks/Grid/View.jsx +19 -4
- package/src/customizations/volto/components/manage/Blocks/Grid/readme.md +1 -0
- package/src/customizations/volto/components/theme/Footer/Footer.jsx +5 -1
package/CHANGELOG.md
CHANGED
@@ -4,7 +4,20 @@ 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
|
-
### [2.1
|
7
|
+
### [2.2.1](https://github.com/eea/volto-eea-website-theme/compare/2.2.0...2.2.1) - 28 August 2024
|
8
|
+
|
9
|
+
#### :bug: Bug Fixes
|
10
|
+
|
11
|
+
- fix: transform empty blocks to slate - refs #273976 [dobri1408 - [`0925e79`](https://github.com/eea/volto-eea-website-theme/commit/0925e79e2bb4a1e378a90299274777a3866fade7)]
|
12
|
+
- fix: Footer explore our env label - refs #265857 [Alin Voinea - [`a98304a`](https://github.com/eea/volto-eea-website-theme/commit/a98304a6904e0524611d5abdf768bdf5e584cb15)]
|
13
|
+
|
14
|
+
### [2.2.0](https://github.com/eea/volto-eea-website-theme/compare/2.1.6...2.2.0) - 26 August 2024
|
15
|
+
|
16
|
+
#### :nail_care: Enhancements
|
17
|
+
|
18
|
+
- refactor: Simplify footer according to the #265857 [dobri1408 - [`27d0393`](https://github.com/eea/volto-eea-website-theme/commit/27d0393fdf84230f8e77a3f851b09befc882dafa)]
|
19
|
+
|
20
|
+
### [2.1.6](https://github.com/eea/volto-eea-website-theme/compare/2.1.5...2.1.6) - 21 August 2024
|
8
21
|
|
9
22
|
### [2.1.5](https://github.com/eea/volto-eea-website-theme/compare/2.1.4...2.1.5) - 5 August 2024
|
10
23
|
|
@@ -33,7 +46,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
33
46
|
- Refs #269520 - other_organisation test [Tripon Eugen - [`7558b27`](https://github.com/eea/volto-eea-website-theme/commit/7558b27a9d1cd6d3480a32b296c7325c796006c9)]
|
34
47
|
- Refs #269520 - other_organisation token widget edit mode [Tripon Eugen - [`b6df127`](https://github.com/eea/volto-eea-website-theme/commit/b6df127bd91b6f55dda8f468e1107037d43752ff)]
|
35
48
|
- Refs #269520 - other_organisation token widget [Tripon Eugen - [`6fd7543`](https://github.com/eea/volto-eea-website-theme/commit/6fd7543894bd2c593a1729116befd95c82ea3c8f)]
|
36
|
-
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`cbc36c7`](https://github.com/eea/volto-eea-website-theme/commit/cbc36c74dfcd5f7cb1013a4c673d9c02e0023766)]
|
37
49
|
### [2.1.1](https://github.com/eea/volto-eea-website-theme/compare/2.1.0...2.1.1) - 28 May 2024
|
38
50
|
|
39
51
|
#### :bug: Bug Fixes
|
@@ -106,7 +118,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
106
118
|
|
107
119
|
#### :hammer_and_wrench: Others
|
108
120
|
|
109
|
-
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`adc6730`](https://github.com/eea/volto-eea-website-theme/commit/adc6730e21a37afb865b842182624401de6a29f5)]
|
110
121
|
### [1.33.1](https://github.com/eea/volto-eea-website-theme/compare/1.33.0...1.33.1) - 4 April 2024
|
111
122
|
|
112
123
|
#### :bug: Bug Fixes
|
@@ -240,8 +251,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
240
251
|
|
241
252
|
- bump version [Razvan - [`721e939`](https://github.com/eea/volto-eea-website-theme/commit/721e939d12e324b459ebfa78a2e656ee7142a3d6)]
|
242
253
|
- merge master into this branch [Razvan - [`586c8f9`](https://github.com/eea/volto-eea-website-theme/commit/586c8f910bac55a043bd8dda60e9444bd2ae1663)]
|
243
|
-
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`fd90044`](https://github.com/eea/volto-eea-website-theme/commit/fd9004442a9d1d465f7601ecdefe3e23c61e6a9c)]
|
244
|
-
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`4bc3dd3`](https://github.com/eea/volto-eea-website-theme/commit/4bc3dd3ae412a66befd04b5b80fab3716c929240)]
|
245
254
|
- test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`c4dbd28`](https://github.com/eea/volto-eea-website-theme/commit/c4dbd289358205bc2d849aab7edb11ccf3b89cee)]
|
246
255
|
- fix tests [Razvan - [`042330b`](https://github.com/eea/volto-eea-website-theme/commit/042330bc97d32ffe7ba769b4f2453f71cffed706)]
|
247
256
|
- remove RemoveSchema logic [Razvan - [`08d10f8`](https://github.com/eea/volto-eea-website-theme/commit/08d10f8bf6f75478260e4e4c66d7316ba87b907a)]
|
@@ -336,11 +345,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
336
345
|
- test: Add real image to cypress test [Alin Voinea - [`4ff591a`](https://github.com/eea/volto-eea-website-theme/commit/4ff591ae3318c9588b4e2114582c0fa6cfdf31ae)]
|
337
346
|
- test: Add cypress tests for Image block styling position and align [Alin Voinea - [`7341ef7`](https://github.com/eea/volto-eea-website-theme/commit/7341ef7b92714fc0cc3ab0c31c39033e7b3e19e7)]
|
338
347
|
- Revert "change(tests): commented out rss test since title block config is missing" [Alin Voinea - [`fb61191`](https://github.com/eea/volto-eea-website-theme/commit/fb611918d6ca380b89b594f283dcf9f685a4b294)]
|
339
|
-
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`6a3be30`](https://github.com/eea/volto-eea-website-theme/commit/6a3be3092589411af7808a235f76de5222fd3868)]
|
340
|
-
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`c3978f2`](https://github.com/eea/volto-eea-website-theme/commit/c3978f23375ef066e9fd6f6c2e34ba6c1c058f69)]
|
341
|
-
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`f672779`](https://github.com/eea/volto-eea-website-theme/commit/f672779e845bec9240ccc901e9f53ec80c5a1819)]
|
342
|
-
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`ae5d8e3`](https://github.com/eea/volto-eea-website-theme/commit/ae5d8e3f4e04dc2808d47ce2ee886e1b23b528da)]
|
343
|
-
- test: [JENKINS] Improve cypress time [valentinab25 - [`170ff0c`](https://github.com/eea/volto-eea-website-theme/commit/170ff0c8e3b30e69479bdf1117e811fea94f1027)]
|
344
348
|
### [1.23.0](https://github.com/eea/volto-eea-website-theme/compare/1.22.1...1.23.0) - 2 November 2023
|
345
349
|
|
346
350
|
#### :rocket: New Features
|
@@ -353,7 +357,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
353
357
|
|
354
358
|
#### :house: Internal changes
|
355
359
|
|
356
|
-
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`f28fce3`](https://github.com/eea/volto-eea-website-theme/commit/f28fce3d1eb815f95fb9aa40de42b10b7e8e30c5)]
|
357
360
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`6d15088`](https://github.com/eea/volto-eea-website-theme/commit/6d150886c5aeb2ca0b569270486e60f7cc274e2c)]
|
358
361
|
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`20c0323`](https://github.com/eea/volto-eea-website-theme/commit/20c032380b33c0077c869a05136f93e2fb68e5d4)]
|
359
362
|
|
@@ -539,7 +542,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
539
542
|
|
540
543
|
#### :house: Internal changes
|
541
544
|
|
542
|
-
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
|
543
545
|
|
544
546
|
#### :hammer_and_wrench: Others
|
545
547
|
|
@@ -695,7 +697,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
695
697
|
|
696
698
|
#### :hammer_and_wrench: Others
|
697
699
|
|
698
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
|
699
700
|
### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
|
700
701
|
|
701
702
|
#### :bug: Bug Fixes
|
@@ -842,7 +843,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
842
843
|
|
843
844
|
- For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
|
844
845
|
- Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
|
845
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
|
846
846
|
### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
|
847
847
|
|
848
848
|
#### :hammer_and_wrench: Others
|
@@ -876,7 +876,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
876
876
|
|
877
877
|
- Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
|
878
878
|
- bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
|
879
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
|
880
879
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
|
881
880
|
### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
|
882
881
|
|
@@ -886,7 +885,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
886
885
|
|
887
886
|
#### :hammer_and_wrench: Others
|
888
887
|
|
889
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
|
890
888
|
- Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
|
891
889
|
- Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
|
892
890
|
### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
|
@@ -897,7 +895,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
897
895
|
|
898
896
|
#### :hammer_and_wrench: Others
|
899
897
|
|
900
|
-
- yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
|
901
898
|
### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
|
902
899
|
|
903
900
|
#### :rocket: New Features
|
@@ -938,7 +935,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
938
935
|
- Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
|
939
936
|
- Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
|
940
937
|
- fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
|
941
|
-
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
|
942
938
|
### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
|
943
939
|
|
944
940
|
#### :nail_care: Enhancements
|
@@ -986,7 +982,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
986
982
|
|
987
983
|
#### :hammer_and_wrench: Others
|
988
984
|
|
989
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
|
990
985
|
### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
|
991
986
|
|
992
987
|
#### :hammer_and_wrench: Others
|
@@ -1254,7 +1249,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
1254
1249
|
- Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
|
1255
1250
|
- Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
|
1256
1251
|
- 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)]
|
1257
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
|
1258
1252
|
- use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
|
1259
1253
|
- Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
|
1260
1254
|
- Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
|
@@ -1296,5 +1290,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
1296
1290
|
|
1297
1291
|
#### :hammer_and_wrench: Others
|
1298
1292
|
|
1299
|
-
- yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
|
1300
1293
|
- Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
|
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -15,7 +15,8 @@ import climateLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/ass
|
|
15
15
|
// TODO: to be consolidated with headerLinks
|
16
16
|
// Footer.jsx config options
|
17
17
|
export const footerOpts = {
|
18
|
-
|
18
|
+
buttonName: 'Explore our environmental information systems',
|
19
|
+
hrefButton: 'https://www.eea.europa.eu/en/information-systems',
|
19
20
|
logosHeader: '',
|
20
21
|
contactHeader: 'Contact Us',
|
21
22
|
actions: [
|
@@ -108,7 +109,7 @@ export const footerOpts = {
|
|
108
109
|
className: 'site logo',
|
109
110
|
columnSize: {
|
110
111
|
mobile: 6,
|
111
|
-
tablet:
|
112
|
+
tablet: 6,
|
112
113
|
computer: 4,
|
113
114
|
},
|
114
115
|
},
|
@@ -119,7 +120,7 @@ export const footerOpts = {
|
|
119
120
|
className: 'eionet logo',
|
120
121
|
columnSize: {
|
121
122
|
mobile: 6,
|
122
|
-
tablet:
|
123
|
+
tablet: 6,
|
123
124
|
computer: 4,
|
124
125
|
},
|
125
126
|
},
|
@@ -4,7 +4,7 @@ import { RenderBlocks } from '@plone/volto/components';
|
|
4
4
|
import { withBlockExtensions } from '@plone/volto/helpers';
|
5
5
|
import config from '@plone/volto/registry';
|
6
6
|
|
7
|
-
const
|
7
|
+
const convertTeaserToGridIfNecessaryAndTransformEmptyBlocksToSlate = (data) => {
|
8
8
|
if (data?.['@type'] === 'teaserGrid')
|
9
9
|
return {
|
10
10
|
...data,
|
@@ -13,11 +13,24 @@ const convertTeaserToGridIfNecessary = (data) => {
|
|
13
13
|
blocks: data?.columns?.reduce((acc, current) => {
|
14
14
|
return {
|
15
15
|
...acc,
|
16
|
-
[current?.id]: current,
|
16
|
+
[current?.id]: { current, '@type': current['@type'] || 'slate' },
|
17
17
|
};
|
18
18
|
}, {}),
|
19
19
|
};
|
20
|
-
|
20
|
+
if (data.blocks)
|
21
|
+
return {
|
22
|
+
...data,
|
23
|
+
blocks: Object.keys(data.blocks).reduce((acc, current) => {
|
24
|
+
return {
|
25
|
+
...acc,
|
26
|
+
[current]: {
|
27
|
+
...data.blocks[current],
|
28
|
+
'@type': data.blocks[current]?.['@type'] || 'slate',
|
29
|
+
},
|
30
|
+
};
|
31
|
+
}, {}),
|
32
|
+
};
|
33
|
+
else return data;
|
21
34
|
};
|
22
35
|
|
23
36
|
const GridBlockView = (props) => {
|
@@ -48,7 +61,9 @@ const GridBlockView = (props) => {
|
|
48
61
|
{...props}
|
49
62
|
blockWrapperTag={Grid.Column}
|
50
63
|
metadata={metadata}
|
51
|
-
content={
|
64
|
+
content={convertTeaserToGridIfNecessaryAndTransformEmptyBlocksToSlate(
|
65
|
+
data,
|
66
|
+
)}
|
52
67
|
location={location}
|
53
68
|
blocksConfig={blocksConfig}
|
54
69
|
isContainer
|
@@ -1 +1,2 @@
|
|
1
1
|
These two customizations ensure backward compatibility with the legacy @kitconcept/volto-blocks-grid. For more details, refer to the ticket here: https://taskman.eionet.europa.eu/issues/265726.
|
2
|
+
Also, if there is an empty block, it will convert to slate, so the "Unkown block" message will not appear
|
@@ -83,7 +83,11 @@ const Footer = () => {
|
|
83
83
|
<EEAFooter.Header>{eea.footerOpts.logosHeader}</EEAFooter.Header>
|
84
84
|
<EEAFooter.SubFooter {...options} />
|
85
85
|
<EEAFooter.Header>{eea.footerOpts.header}</EEAFooter.Header>
|
86
|
-
<EEAFooter.
|
86
|
+
<EEAFooter.SitesButton
|
87
|
+
buttonName={eea.footerOpts.buttonName}
|
88
|
+
hrefButton={eea.footerOpts.hrefButton}
|
89
|
+
/>
|
90
|
+
<EEAFooter.Social {...options} />
|
87
91
|
<EEAFooter.Actions actions={actions} copyright={copyright} />
|
88
92
|
</EEAFooter>
|
89
93
|
);
|