@eeacms/volto-eea-website-theme 1.22.1 → 1.24.0
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 +42 -10
- package/RELEASE.md +14 -14
- package/cypress.config.js +3 -3
- package/jest-addon.config.js +3 -0
- package/package.json +4 -3
- package/src/components/manage/Blocks/Title/schema.js +40 -1
- package/src/components/theme/Banner/View.jsx +2 -1
- package/src/config.js +27 -15
- package/src/customizations/@plone/volto-slate/editor/extensions/normalizeExternalData.js +9 -0
- package/src/customizations/volto/components/manage/Blocks/Image/Edit.jsx +9 -6
- package/src/customizations/volto/components/manage/Blocks/Image/Edit.test.jsx +312 -0
- package/src/customizations/volto/components/manage/Blocks/Image/View.jsx +9 -6
- package/src/customizations/volto/components/manage/Blocks/LeadImage/Edit.jsx +8 -4
- package/src/customizations/volto/components/manage/Blocks/LeadImage/View.jsx +8 -5
- package/src/customizations/volto/components/manage/Blocks/LeadImage/schema.js +0 -1
- package/src/customizations/volto/components/manage/Form/Form.test.jsx +1124 -0
- package/src/customizations/volto/components/manage/Widgets/ObjectBrowserWidget.test.jsx +193 -0
- package/src/customizations/volto/components/theme/Comments/Comments.test.jsx +407 -0
- package/src/customizations/volto/components/theme/Header/Header.jsx +53 -50
- package/src/customizations/volto/components/theme/Header/Header.test.jsx +326 -0
- package/src/helpers/schema-utils.js +40 -34
- package/src/index.js +122 -15
- package/src/index.test.js +343 -0
- package/src/customizations/@eeacms/volto-tabs-block/components/templates/default/schema.js +0 -109
- package/src/customizations/@eeacms/volto-tabs-block/components/templates/horizontal-responsive/schema.js +0 -109
package/CHANGELOG.md
CHANGED
@@ -4,6 +4,48 @@ 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.24.0](https://github.com/eea/volto-eea-website-theme/compare/1.23.0...1.24.0) - 22 November 2023
|
8
|
+
|
9
|
+
#### :bug: Bug Fixes
|
10
|
+
|
11
|
+
- fix(tabs): check if schema has properties, data and schemaExtender when trying to modify the tab schema [David Ichim - [`93edc3f`](https://github.com/eea/volto-eea-website-theme/commit/93edc3f8db0cd09f3aa63a12ef881326e9b676af)]
|
12
|
+
- fix(header): updated tests snapshot after latest changes [David Ichim - [`3143810`](https://github.com/eea/volto-eea-website-theme/commit/3143810fe3f4c439261f47b1360f4f570a8670c8)]
|
13
|
+
- fix(header): eu logo alt text and text top menu dropdowns are now read by screen readers [David Ichim - [`6ed4642`](https://github.com/eea/volto-eea-website-theme/commit/6ed4642819e7d2aa8c2a1d5d4e34e42dbef3a652)]
|
14
|
+
|
15
|
+
#### :nail_care: Enhancements
|
16
|
+
|
17
|
+
- change(tests): commented out rss test since title block config is missing [David Ichim - [`85cc1e4`](https://github.com/eea/volto-eea-website-theme/commit/85cc1e4662e6df8a73a6fa7fd06b6d555c04327c)]
|
18
|
+
- change(card): added aria-label for tag Search for content tagged with *tag* [David Ichim - [`c40eb1a`](https://github.com/eea/volto-eea-website-theme/commit/c40eb1ae91c6e7509d0e0fe647b413136b67b7b4)]
|
19
|
+
- change(card): render listing card tags using our Tag component instead of label #256134 [David Ichim - [`13994e8`](https://github.com/eea/volto-eea-website-theme/commit/13994e866068673329082c2f33f9d565d3a4cbf7)]
|
20
|
+
- change(header): add language top menu only if condition for multilingual or hasLanguageDropdown is set [David Ichim - [`7649bd3`](https://github.com/eea/volto-eea-website-theme/commit/7649bd3781dbf71fc4992d48cfd90654117bb19a)]
|
21
|
+
|
22
|
+
#### :hammer_and_wrench: Others
|
23
|
+
|
24
|
+
- test: Temp bypass sonarqube coverage in order to release [Alin Voinea - [`f23b1e0`](https://github.com/eea/volto-eea-website-theme/commit/f23b1e06f7ea5d7c8ec71d1229bb2fdb3016ee00)]
|
25
|
+
- test: Add real image to cypress test [Alin Voinea - [`4ff591a`](https://github.com/eea/volto-eea-website-theme/commit/4ff591ae3318c9588b4e2114582c0fa6cfdf31ae)]
|
26
|
+
- test: Add cypress tests for Image block styling position and align [Alin Voinea - [`7341ef7`](https://github.com/eea/volto-eea-website-theme/commit/7341ef7b92714fc0cc3ab0c31c39033e7b3e19e7)]
|
27
|
+
- 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)]
|
28
|
+
### [1.23.0](https://github.com/eea/volto-eea-website-theme/compare/1.22.1...1.23.0) - 2 November 2023
|
29
|
+
|
30
|
+
#### :rocket: New Features
|
31
|
+
|
32
|
+
- feat(header): updated environmental information systems websites #251860 [David Ichim - [`647a818`](https://github.com/eea/volto-eea-website-theme/commit/647a818cefc9b24464e282e1ff31b9bc56a01d55)]
|
33
|
+
|
34
|
+
#### :bug: Bug Fixes
|
35
|
+
|
36
|
+
- fix: customize normalizeExternalData until the #5347 is merged in volto core - refs #259857 [dobri1408 - [`19c88a9`](https://github.com/eea/volto-eea-website-theme/commit/19c88a9910646f166e6317a86c6b0ad759b1bd12)]
|
37
|
+
|
38
|
+
#### :house: Internal changes
|
39
|
+
|
40
|
+
- chore: husky, lint-staged use fixed versions [valentinab25 - [`6d15088`](https://github.com/eea/volto-eea-website-theme/commit/6d150886c5aeb2ca0b569270486e60f7cc274e2c)]
|
41
|
+
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`20c0323`](https://github.com/eea/volto-eea-website-theme/commit/20c032380b33c0077c869a05136f93e2fb68e5d4)]
|
42
|
+
|
43
|
+
#### :hammer_and_wrench: Others
|
44
|
+
|
45
|
+
- bump package version preparing for release [David Ichim - [`cb88e7c`](https://github.com/eea/volto-eea-website-theme/commit/cb88e7c64bb5ac307504e80203ef03dde9420922)]
|
46
|
+
- Moved function to top and added jsdoc [David Ichim - [`2fe74e3`](https://github.com/eea/volto-eea-website-theme/commit/2fe74e332c51caf6f2571b19a75c74174925a3e4)]
|
47
|
+
- Tab variations only if we have variation support [David Ichim - [`f086102`](https://github.com/eea/volto-eea-website-theme/commit/f086102fce8ef103e5d18907a58c1b84f9b7f4e8)]
|
48
|
+
- * test: add unit tests - refs #254313 [ana-oprea - [`a14ecb4`](https://github.com/eea/volto-eea-website-theme/commit/a14ecb4f1b40fad88787041658a126a4a2bb69f9)]
|
7
49
|
### [1.22.1](https://github.com/eea/volto-eea-website-theme/compare/1.22.0...1.22.1) - 29 September 2023
|
8
50
|
|
9
51
|
#### :house: Documentation changes
|
@@ -180,7 +222,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
180
222
|
|
181
223
|
#### :house: Internal changes
|
182
224
|
|
183
|
-
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
|
184
225
|
|
185
226
|
#### :hammer_and_wrench: Others
|
186
227
|
|
@@ -336,7 +377,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
336
377
|
|
337
378
|
#### :hammer_and_wrench: Others
|
338
379
|
|
339
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
|
340
380
|
### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
|
341
381
|
|
342
382
|
#### :bug: Bug Fixes
|
@@ -483,7 +523,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
483
523
|
|
484
524
|
- For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
|
485
525
|
- Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
|
486
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
|
487
526
|
### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
|
488
527
|
|
489
528
|
#### :hammer_and_wrench: Others
|
@@ -517,7 +556,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
517
556
|
|
518
557
|
- Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
|
519
558
|
- bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
|
520
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
|
521
559
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
|
522
560
|
### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
|
523
561
|
|
@@ -527,7 +565,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
527
565
|
|
528
566
|
#### :hammer_and_wrench: Others
|
529
567
|
|
530
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
|
531
568
|
- Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
|
532
569
|
- Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
|
533
570
|
### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
|
@@ -538,7 +575,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
538
575
|
|
539
576
|
#### :hammer_and_wrench: Others
|
540
577
|
|
541
|
-
- yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
|
542
578
|
### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
|
543
579
|
|
544
580
|
#### :rocket: New Features
|
@@ -579,7 +615,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
579
615
|
- Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
|
580
616
|
- Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
|
581
617
|
- fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
|
582
|
-
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
|
583
618
|
### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
|
584
619
|
|
585
620
|
#### :nail_care: Enhancements
|
@@ -627,7 +662,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
627
662
|
|
628
663
|
#### :hammer_and_wrench: Others
|
629
664
|
|
630
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
|
631
665
|
### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
|
632
666
|
|
633
667
|
#### :hammer_and_wrench: Others
|
@@ -895,7 +929,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
895
929
|
- Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
|
896
930
|
- Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
|
897
931
|
- 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)]
|
898
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
|
899
932
|
- use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
|
900
933
|
- Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
|
901
934
|
- Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
|
@@ -937,5 +970,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
937
970
|
|
938
971
|
#### :hammer_and_wrench: Others
|
939
972
|
|
940
|
-
- yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
|
941
973
|
- Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
|
package/RELEASE.md
CHANGED
@@ -20,9 +20,9 @@ You need to first install the [release-it](https://github.com/release-it/release
|
|
20
20
|
```
|
21
21
|
npm install -g release-it
|
22
22
|
```
|
23
|
-
|
23
|
+
|
24
24
|
Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.
|
25
|
-
|
25
|
+
|
26
26
|
Release-it is a tool that automates 4 important steps in the release process:
|
27
27
|
|
28
28
|
1. Version increase in `package.json` ( increased from the current version in `package.json`)
|
@@ -30,45 +30,45 @@ Release-it is a tool that automates 4 important steps in the release process:
|
|
30
30
|
3. GitHub release on the commit with the changelog and package.json modification on the develop branch
|
31
31
|
4. NPM release ( by default it's disabled, but can be enabled in the configuration file )
|
32
32
|
|
33
|
-
To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
|
33
|
+
To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
|
34
34
|
|
35
35
|
```
|
36
36
|
export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
|
37
37
|
```
|
38
|
-
|
38
|
+
|
39
39
|
To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :
|
40
|
-
|
40
|
+
|
41
41
|
```
|
42
42
|
echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
|
43
43
|
```
|
44
44
|
|
45
45
|
#### Using release-it tool
|
46
|
-
|
46
|
+
|
47
47
|
There are 3 yarn scripts that can be run to do the release
|
48
48
|
|
49
49
|
##### yarn release-beta
|
50
50
|
|
51
|
-
Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
|
51
|
+
Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
|
52
52
|
|
53
53
|
```
|
54
|
-
? Select increment (next version):
|
55
|
-
❯ prepatch (0.1.1-beta.0)
|
56
|
-
preminor (0.2.0-beta.0)
|
57
|
-
premajor (1.0.0-beta.0)
|
58
|
-
Other, please specify...
|
54
|
+
? Select increment (next version):
|
55
|
+
❯ prepatch (0.1.1-beta.0)
|
56
|
+
preminor (0.2.0-beta.0)
|
57
|
+
premajor (1.0.0-beta.0)
|
58
|
+
Other, please specify...
|
59
59
|
```
|
60
60
|
|
61
61
|
##### yarn release-major-beta
|
62
62
|
|
63
63
|
Same as `yarn release-beta`, but with premajor version pre-selected.
|
64
|
-
|
64
|
+
|
65
65
|
##### yarn release
|
66
66
|
|
67
67
|
Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.
|
68
68
|
|
69
69
|
#### Important notes
|
70
70
|
|
71
|
-
> Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
|
71
|
+
> Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
|
72
72
|
|
73
73
|
> Do not keep Pull Requests from develop to master branches open when you are doing beta releases from the develop branch. As long as a PR to master is open, an automatic script will run on every commit and will update both the version and the changelog to a production-ready state - ( MAJOR.MINOR.PATCH mandatory format for version).
|
74
74
|
|
package/cypress.config.js
CHANGED
@@ -2,12 +2,12 @@ const { defineConfig } = require('cypress');
|
|
2
2
|
|
3
3
|
module.exports = defineConfig({
|
4
4
|
viewportWidth: 1280,
|
5
|
-
defaultCommandTimeout:
|
5
|
+
defaultCommandTimeout: 8888,
|
6
6
|
chromeWebSecurity: false,
|
7
7
|
reporter: 'junit',
|
8
|
-
video:
|
8
|
+
video: false,
|
9
9
|
retries: {
|
10
|
-
runMode:
|
10
|
+
runMode: 2,
|
11
11
|
openMode: 0,
|
12
12
|
},
|
13
13
|
reporterOptions: {
|
package/jest-addon.config.js
CHANGED
@@ -25,6 +25,9 @@ module.exports = {
|
|
25
25
|
'^.+\\.(jpg)$': 'jest-file',
|
26
26
|
'^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js',
|
27
27
|
},
|
28
|
+
transformIgnorePatterns: [
|
29
|
+
'node_modules/(?!@eeacms)/volto-eea-design-system/ui',
|
30
|
+
],
|
28
31
|
coverageThreshold: {
|
29
32
|
global: {
|
30
33
|
branches: 0,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@eeacms/volto-eea-website-theme",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.24.0",
|
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",
|
@@ -23,6 +23,7 @@
|
|
23
23
|
"url": "git@github.com:eea/volto-eea-website-theme.git"
|
24
24
|
},
|
25
25
|
"dependencies": {
|
26
|
+
"@eeacms/volto-block-style": "*",
|
26
27
|
"@eeacms/volto-eea-design-system": "*",
|
27
28
|
"@eeacms/volto-group-block": "*",
|
28
29
|
"volto-subsites": "*"
|
@@ -31,8 +32,8 @@
|
|
31
32
|
"@cypress/code-coverage": "^3.10.0",
|
32
33
|
"@plone/scripts": "*",
|
33
34
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
34
|
-
"husky": "
|
35
|
-
"lint-staged": "
|
35
|
+
"husky": "^8.0.3",
|
36
|
+
"lint-staged": "^14.0.1",
|
36
37
|
"md5": "^2.3.0",
|
37
38
|
"postcss-less": "6.0.0"
|
38
39
|
},
|
@@ -1,3 +1,13 @@
|
|
1
|
+
import alignTopSVG from '@plone/volto/icons/move-up.svg';
|
2
|
+
import alignCenterSVG from '@plone/volto/icons/row.svg';
|
3
|
+
import alignBottomSVG from '@plone/volto/icons/move-down.svg';
|
4
|
+
|
5
|
+
const ALIGN_INFO_MAP_IMAGE_POSITION = {
|
6
|
+
'has--bg--top': [alignTopSVG, 'Top'],
|
7
|
+
'has--bg--center': [alignCenterSVG, 'Center'],
|
8
|
+
'has--bg--bottom': [alignBottomSVG, 'Bottom'],
|
9
|
+
};
|
10
|
+
|
1
11
|
const infoSchema = {
|
2
12
|
title: 'Info',
|
3
13
|
fieldsets: [
|
@@ -69,6 +79,11 @@ export default {
|
|
69
79
|
title: 'Copyright',
|
70
80
|
fields: ['copyright', 'copyrightIcon', 'copyrightPosition'],
|
71
81
|
},
|
82
|
+
{
|
83
|
+
id: 'styling',
|
84
|
+
title: 'Styles',
|
85
|
+
fields: ['styles'],
|
86
|
+
},
|
72
87
|
],
|
73
88
|
properties: {
|
74
89
|
hideContentType: {
|
@@ -129,10 +144,34 @@ export default {
|
|
129
144
|
},
|
130
145
|
copyrightPosition: {
|
131
146
|
title: 'Align',
|
132
|
-
widget: '
|
147
|
+
widget: 'style_align',
|
133
148
|
actions: ['left', 'right'],
|
134
149
|
defaultValue: 'left',
|
135
150
|
},
|
151
|
+
styles: {
|
152
|
+
widget: 'object',
|
153
|
+
title: 'Styling',
|
154
|
+
schema: {
|
155
|
+
fieldsets: [
|
156
|
+
{
|
157
|
+
id: 'default',
|
158
|
+
title: 'Default',
|
159
|
+
fields: ['bg'],
|
160
|
+
},
|
161
|
+
],
|
162
|
+
properties: {
|
163
|
+
bg: {
|
164
|
+
title: 'Image position',
|
165
|
+
widget: 'style_align',
|
166
|
+
actions: Object.keys(ALIGN_INFO_MAP_IMAGE_POSITION),
|
167
|
+
actionsInfoMap: ALIGN_INFO_MAP_IMAGE_POSITION,
|
168
|
+
defaultValue: 'has--bg--center',
|
169
|
+
},
|
170
|
+
},
|
171
|
+
required: [],
|
172
|
+
},
|
173
|
+
},
|
136
174
|
},
|
175
|
+
|
137
176
|
required: [],
|
138
177
|
};
|
@@ -81,6 +81,7 @@ const View = (props) => {
|
|
81
81
|
copyrightPosition,
|
82
82
|
rssLinks,
|
83
83
|
subtitle,
|
84
|
+
styles,
|
84
85
|
// contentType,
|
85
86
|
} = props.data;
|
86
87
|
const copyrightPrefix =
|
@@ -112,7 +113,7 @@ const View = (props) => {
|
|
112
113
|
const type = metadata.type_title || friendlyId(metadata['@type']);
|
113
114
|
|
114
115
|
return (
|
115
|
-
<Banner {...props} image={image}>
|
116
|
+
<Banner {...props} image={image} styles={styles}>
|
116
117
|
<Banner.Content
|
117
118
|
actions={
|
118
119
|
<>
|
package/src/config.js
CHANGED
@@ -194,36 +194,48 @@ export const headerOpts = {
|
|
194
194
|
title: 'Environmental information systems',
|
195
195
|
links: [
|
196
196
|
{
|
197
|
-
title: '
|
198
|
-
href: 'https://
|
197
|
+
title: 'European Environment Agency website',
|
198
|
+
href: 'https://www.eea.europa.eu',
|
199
199
|
},
|
200
200
|
{
|
201
|
-
title: '
|
202
|
-
href: 'https://
|
201
|
+
title: 'WISE marine - Marine information system for Europe',
|
202
|
+
href: 'https://water.europa.eu/marine',
|
203
203
|
},
|
204
204
|
{
|
205
|
-
title: '
|
206
|
-
href: 'https://
|
205
|
+
title: 'WISE freshwater - Freshwater information system for Europe',
|
206
|
+
href: 'https://water.europa.eu/freshwater',
|
207
207
|
},
|
208
208
|
{
|
209
|
-
title: '
|
210
|
-
href: 'https://
|
209
|
+
title: 'BISE - Biodiversity information system for Europe',
|
210
|
+
href: 'https://biodiversity.europa.eu',
|
211
211
|
},
|
212
212
|
{
|
213
|
-
title: 'Forest
|
213
|
+
title: 'FISE - Forest information system for Europe',
|
214
214
|
href: 'https://forest.eea.europa.eu/',
|
215
215
|
},
|
216
216
|
{
|
217
|
-
title: '
|
218
|
-
href: 'https://
|
217
|
+
title: 'European Climate and health observatory',
|
218
|
+
href: 'https://climate-adapt.eea.europa.eu/en/observatory',
|
219
219
|
},
|
220
220
|
{
|
221
|
-
title: '
|
222
|
-
href: 'https://
|
221
|
+
title: 'ClimateADAPT',
|
222
|
+
href: 'https://climate-adapt.eea.europa.eu/',
|
223
223
|
},
|
224
224
|
{
|
225
|
-
title: '
|
226
|
-
href: 'https://
|
225
|
+
title: 'European Industrial Emissions Portal',
|
226
|
+
href: 'https://industry.eea.europa.eu',
|
227
|
+
},
|
228
|
+
{
|
229
|
+
title: 'Climate and energy in the EU',
|
230
|
+
href: 'https://climate-energy.eea.europa.eu',
|
231
|
+
},
|
232
|
+
{
|
233
|
+
title: 'Copernicus Land Monitoring Service',
|
234
|
+
href: 'https://land.copernicus.eu/en',
|
235
|
+
},
|
236
|
+
{
|
237
|
+
title: 'Copernicus InSitu',
|
238
|
+
href: 'https://insitu.copernicus.eu',
|
227
239
|
},
|
228
240
|
],
|
229
241
|
},
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// To be removed when https://github.com/plone/volto/pull/5347 is merged and released in Volto 16.x
|
2
|
+
import { normalizeExternalData as normalize } from '@plone/volto-slate/utils';
|
3
|
+
|
4
|
+
export function normalizeExternalData(editor) {
|
5
|
+
editor.normalizeExternalData = (fragment) => {
|
6
|
+
return normalize(editor, fragment);
|
7
|
+
};
|
8
|
+
return editor;
|
9
|
+
}
|
@@ -266,12 +266,15 @@ class Edit extends Component {
|
|
266
266
|
{data.url ? (
|
267
267
|
<>
|
268
268
|
<img
|
269
|
-
className={cx(
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
269
|
+
className={cx(
|
270
|
+
{
|
271
|
+
'full-width': data.align === 'full',
|
272
|
+
large: data.size === 'l',
|
273
|
+
medium: data.size === 'm',
|
274
|
+
small: data.size === 's',
|
275
|
+
},
|
276
|
+
data?.styles?.objectPosition,
|
277
|
+
)}
|
275
278
|
src={
|
276
279
|
isInternalURL(data.url)
|
277
280
|
? // Backwards compat in the case that the block is storing the full server URL
|