@eeacms/volto-hero-block 3.0.0 → 3.0.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,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
|
-
### [3.0.
|
|
7
|
+
### [3.0.1](https://github.com/eea/volto-hero-block/compare/3.0.0...3.0.1) - 27 January 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat(hero): added background position styling option [David Ichim - [`8d933f6`](https://github.com/eea/volto-hero-block/commit/8d933f6e03a495b055d81923a37b0affd769c770)]
|
|
12
|
+
|
|
13
|
+
#### :nail_care: Enhancements
|
|
14
|
+
|
|
15
|
+
- change(hero): bg class setting to ensure it's set on the hero-image section [David Ichim - [`ce0305f`](https://github.com/eea/volto-hero-block/commit/ce0305feed18e6ca5f22ee7786db93283944484a)]
|
|
16
|
+
|
|
17
|
+
#### :hammer_and_wrench: Others
|
|
18
|
+
|
|
19
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`ab85c7b`](https://github.com/eea/volto-hero-block/commit/ab85c7bd5bd1e3aec95e02f9b4d026b1203d5739)]
|
|
20
|
+
## [3.0.0](https://github.com/eea/volto-hero-block/compare/2.1.0...3.0.0) - 22 December 2022
|
|
8
21
|
|
|
9
22
|
#### :rocket: New Features
|
|
10
23
|
|
|
@@ -12,8 +25,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
12
25
|
|
|
13
26
|
#### :hammer_and_wrench: Others
|
|
14
27
|
|
|
28
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f06f58c`](https://github.com/eea/volto-hero-block/commit/f06f58c7cd4cfc15a03208e9c7a4e31fe2eba2f6)]
|
|
29
|
+
- Add Sonarqube tag using climate-energy-frontend addons list [EEA Jenkins - [`20e5bcb`](https://github.com/eea/volto-hero-block/commit/20e5bcb3c4dd538595741928319c3204c5d18f8c)]
|
|
15
30
|
- Cosmetics [Alin Voinea - [`9dac70c`](https://github.com/eea/volto-hero-block/commit/9dac70c0a3bea8e188ede9123f4f99de8e0f6987)]
|
|
16
31
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`2d4005f`](https://github.com/eea/volto-hero-block/commit/2d4005f0f31b121e1b7d2e94414f3dff92ec1a16)]
|
|
32
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`2931fcc`](https://github.com/eea/volto-hero-block/commit/2931fccbee5f8e117e5ae9095ba57e63e465ddb3)]
|
|
17
33
|
### [2.1.0](https://github.com/eea/volto-hero-block/compare/2.0.0...2.1.0) - 12 December 2022
|
|
18
34
|
|
|
19
35
|
#### :bug: Bug Fixes
|
|
@@ -22,6 +38,12 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
22
38
|
|
|
23
39
|
#### :hammer_and_wrench: Others
|
|
24
40
|
|
|
41
|
+
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`93be4f9`](https://github.com/eea/volto-hero-block/commit/93be4f96fb72cacfc25f9b058cb379d80060ee13)]
|
|
42
|
+
- yarn 3 [Alin Voinea - [`8e2dccd`](https://github.com/eea/volto-hero-block/commit/8e2dccd47cbef3c0871407baa376ce61c540c754)]
|
|
43
|
+
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`6bc3af3`](https://github.com/eea/volto-hero-block/commit/6bc3af35b4edf07971d1b0ce1648965e8d6e3bc0)]
|
|
44
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`d7dbbd2`](https://github.com/eea/volto-hero-block/commit/d7dbbd21277dd76bf59d91a4dc8e022b2a6ff99c)]
|
|
45
|
+
- Add Sonarqube tag using demo-kitkat-frontend addons list [EEA Jenkins - [`3c1f0d6`](https://github.com/eea/volto-hero-block/commit/3c1f0d6e7f8e5318aee3413ec3687d8492376f9d)]
|
|
46
|
+
- Add Sonarqube tag using forests-frontend addons list [EEA Jenkins - [`843017a`](https://github.com/eea/volto-hero-block/commit/843017aa7dbea71cc7888663496e352d287440b4)]
|
|
25
47
|
## [2.0.0](https://github.com/eea/volto-hero-block/compare/1.0.0...2.0.0) - 16 November 2022
|
|
26
48
|
|
|
27
49
|
#### :nail_care: Enhancements
|
|
@@ -31,6 +53,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
31
53
|
#### :hammer_and_wrench: Others
|
|
32
54
|
|
|
33
55
|
- test(estlint): Fix .project.eslintrc.js [Alin Voinea - [`b8f0971`](https://github.com/eea/volto-hero-block/commit/b8f0971b21a5334d40c1b8f5103cea61d9ffe6f1)]
|
|
56
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`581dedf`](https://github.com/eea/volto-hero-block/commit/581dedf07410ef2ca09e6ddaa05fbf176400adbb)]
|
|
34
57
|
## [1.0.0](https://github.com/eea/volto-hero-block/compare/0.2.0...1.0.0) - 28 October 2022
|
|
35
58
|
|
|
36
59
|
#### :nail_care: Enhancements
|
|
@@ -42,6 +65,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
42
65
|
- Remove cypress.json [Alin Voinea - [`593bdf2`](https://github.com/eea/volto-hero-block/commit/593bdf207ca4fd3f2393117b6f64a44727881ad0)]
|
|
43
66
|
- test(cypress): Upgrade to Cypress 10 / Razzle 4 [Alin Voinea - [`edd48a5`](https://github.com/eea/volto-hero-block/commit/edd48a5c13824bce5e03e46790f1890656b340d8)]
|
|
44
67
|
- Cleanup [Alin Voinea - [`9d72ee7`](https://github.com/eea/volto-hero-block/commit/9d72ee7a06d1c6fed46586d30bb85eae39e670bf)]
|
|
68
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`95986d0`](https://github.com/eea/volto-hero-block/commit/95986d0b8fd5c3cbb9e6da9059f71e066a8e171b)]
|
|
45
69
|
### [0.2.0](https://github.com/eea/volto-hero-block/compare/0.1.4...0.2.0) - 6 July 2022
|
|
46
70
|
|
|
47
71
|
#### :bug: Bug Fixes
|
|
@@ -80,6 +104,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
80
104
|
- Update slate footnote support [Miu Razvan - [`c1522b4`](https://github.com/eea/volto-hero-block/commit/c1522b4164dbe6de01771d211d7e0bf3009f44d4)]
|
|
81
105
|
- Use justify content for text and button as well [Miu Razvan - [`08599cc`](https://github.com/eea/volto-hero-block/commit/08599cc45546d9b349128c4f8ce9c01318385811)]
|
|
82
106
|
- Add dependencies [Miu Razvan - [`30e2881`](https://github.com/eea/volto-hero-block/commit/30e2881a2a97a899e7f4cc614a0405c300ac6fee)]
|
|
107
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b415422`](https://github.com/eea/volto-hero-block/commit/b41542285edd29440a324b101a4dbae9334830bf)]
|
|
83
108
|
### 0.1.0 - 10 June 2022
|
|
84
109
|
|
|
85
110
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { addStyling } from '@plone/volto/helpers';
|
|
2
2
|
|
|
3
|
+
import alignTopSVG from '@plone/volto/icons/move-up.svg';
|
|
4
|
+
import alignCenterSVG from '@plone/volto/icons/row.svg';
|
|
5
|
+
import alignBottomSVG from '@plone/volto/icons/move-down.svg';
|
|
6
|
+
|
|
7
|
+
const ALIGN_INFO_MAP = {
|
|
8
|
+
'has--bg--top': [alignTopSVG, 'Top'],
|
|
9
|
+
'has--bg--center': [alignCenterSVG, 'Center'],
|
|
10
|
+
'has--bg--bottom': [alignBottomSVG, 'Bottom'],
|
|
11
|
+
};
|
|
12
|
+
|
|
3
13
|
export default () => {
|
|
4
14
|
return {
|
|
5
15
|
title: 'Hero',
|
|
@@ -97,6 +107,7 @@ export const stylingSchema = (props) => {
|
|
|
97
107
|
title: 'Default',
|
|
98
108
|
fields: [
|
|
99
109
|
'backgroundVariant',
|
|
110
|
+
'bg',
|
|
100
111
|
'alignContent',
|
|
101
112
|
'textAlign',
|
|
102
113
|
'textVariant',
|
|
@@ -106,6 +117,13 @@ export const stylingSchema = (props) => {
|
|
|
106
117
|
},
|
|
107
118
|
],
|
|
108
119
|
properties: {
|
|
120
|
+
bg: {
|
|
121
|
+
title: 'Background image position',
|
|
122
|
+
widget: 'align',
|
|
123
|
+
actions: Object.keys(ALIGN_INFO_MAP),
|
|
124
|
+
actionsInfoMap: ALIGN_INFO_MAP,
|
|
125
|
+
defaultValue: 'has--bg--center',
|
|
126
|
+
},
|
|
109
127
|
backgroundVariant: {
|
|
110
128
|
title: 'Background theme',
|
|
111
129
|
choices: [
|