@eeacms/volto-n2k 1.2.0 → 1.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 +13 -0
- package/package.json +1 -1
- package/src/components/manage/Blocks/TilesImages/schema.js +11 -6
- package/src/components/manage/Blocks/TilesImages/variations/ImageGallery/ImageGallery.jsx +4 -2
- package/src/components/manage/Blocks/TilesImages/variations/ImageGallery/styles.less +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ 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.2.1](https://github.com/eea/volto-n2k/compare/1.2.0...1.2.1) - 3 February 2026
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: edit style [nileshgulia1 - [`a823420`](https://github.com/eea/volto-n2k/commit/a823420dfc8cd6fc4421d2888028faaf25d2fffa)]
|
|
12
|
+
|
|
7
13
|
### [1.2.0](https://github.com/eea/volto-n2k/compare/1.1.12...1.2.0) - 3 February 2026
|
|
8
14
|
|
|
9
15
|
#### :rocket: New Features
|
|
@@ -151,6 +157,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
151
157
|
|
|
152
158
|
#### :house: Internal changes
|
|
153
159
|
|
|
160
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`e4f9fc8`](https://github.com/eea/volto-n2k/commit/e4f9fc800b753b97cca7c685bc47dd48804276f0)]
|
|
154
161
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`647d621`](https://github.com/eea/volto-n2k/commit/647d621d52400c50f5bc629b3ddc4f2121f14ffa)]
|
|
155
162
|
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`60d94b6`](https://github.com/eea/volto-n2k/commit/60d94b61ff8826abc57af9616793a1a247f585b5)]
|
|
156
163
|
|
|
@@ -165,6 +172,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
165
172
|
- try to use volto-spotlight theme in jenkins [Miu Razvan - [`ec0b952`](https://github.com/eea/volto-n2k/commit/ec0b9525b967f907922ae660bd9f520119cd80c1)]
|
|
166
173
|
- remove waitForResourceToLoad [ana-oprea - [`eaded9b`](https://github.com/eea/volto-n2k/commit/eaded9b9ecd1ca2eb78aa8dd65838c063d95db85)]
|
|
167
174
|
- update image size from 300 to 800 px [Claudia Ifrim - [`8d9270a`](https://github.com/eea/volto-n2k/commit/8d9270a09506278ceaea25e8a72abdf5b22fcc78)]
|
|
175
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`350f8a6`](https://github.com/eea/volto-n2k/commit/350f8a6928aafbf168472b572f8041a79f71f577)]
|
|
176
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`99b3a84`](https://github.com/eea/volto-n2k/commit/99b3a84a266710fadf7d430117359b741cadede8)]
|
|
177
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`050ac98`](https://github.com/eea/volto-n2k/commit/050ac982ec39e9a1b4885b665cdc118fca7b1283)]
|
|
178
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`3546040`](https://github.com/eea/volto-n2k/commit/35460409817f496fc752ab34e37d6d33a069b2e9)]
|
|
179
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`06a4ab1`](https://github.com/eea/volto-n2k/commit/06a4ab151799b8cdf4a316dbcb0c323e0f568e30)]
|
|
168
180
|
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`4850d6a`](https://github.com/eea/volto-n2k/commit/4850d6a65349fe49dbe9244c30592ae38c9aeaba)]
|
|
169
181
|
- test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`2c91856`](https://github.com/eea/volto-n2k/commit/2c9185688a2fe6b36e5eeb2963f6c8676e3c5628)]
|
|
170
182
|
### [1.0.33](https://github.com/eea/volto-n2k/compare/1.0.32...1.0.33) - 3 July 2023
|
|
@@ -421,6 +433,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
421
433
|
- Update [razvanMiu - [`42ab50e`](https://github.com/eea/volto-n2k/commit/42ab50e6681a47251d15ac06b836c6f8c27157fa)]
|
|
422
434
|
- Added bubble chart [razvanMiu - [`89fba5e`](https://github.com/eea/volto-n2k/commit/89fba5e5db41aa955ba2d0ed58c9f0042c461504)]
|
|
423
435
|
- Group species by id_eunis in species list [razvanMiu - [`543c957`](https://github.com/eea/volto-n2k/commit/543c9573b53acd8eecc9afbb6ae7beeddba53966)]
|
|
436
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`2ca3e4c`](https://github.com/eea/volto-n2k/commit/2ca3e4c092211f92339791d71db81f5b4ca2d562)]
|
|
424
437
|
- update maps - species and habitats distribution maps [Claudia Ifrim - [`ad12eb1`](https://github.com/eea/volto-n2k/commit/ad12eb141907d6f28444f1eafc3f687735d2a68d)]
|
|
425
438
|
- update format for common name and author [Claudia Ifrim - [`26b7a2f`](https://github.com/eea/volto-n2k/commit/26b7a2f3d20c7701b57fb24f39fc7dfeceec3ce8)]
|
|
426
439
|
- update format for species name (common / scientific) [Claudia Ifrim - [`abdedcf`](https://github.com/eea/volto-n2k/commit/abdedcfe645665031dedf050fd2c5cdde8c14a50)]
|
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
const imageSchema = {
|
|
1
|
+
const imageSchema = ({ formData }) => ({
|
|
2
2
|
title: 'Image',
|
|
3
3
|
fieldsets: [
|
|
4
4
|
{
|
|
5
5
|
id: 'default',
|
|
6
6
|
title: 'Default',
|
|
7
|
-
fields: [
|
|
7
|
+
fields: [
|
|
8
|
+
'image',
|
|
9
|
+
...(formData?.variation !== 'imageGallery' ? ['link'] : []),
|
|
10
|
+
'title',
|
|
11
|
+
'copyright',
|
|
12
|
+
],
|
|
8
13
|
},
|
|
9
14
|
],
|
|
10
15
|
properties: {
|
|
11
16
|
image: {
|
|
12
|
-
title: '
|
|
17
|
+
title: 'Image',
|
|
13
18
|
widget: 'object_by_path',
|
|
14
19
|
},
|
|
15
20
|
link: {
|
|
@@ -23,8 +28,8 @@ const imageSchema = {
|
|
|
23
28
|
title: 'Copyright',
|
|
24
29
|
},
|
|
25
30
|
},
|
|
26
|
-
required: [
|
|
27
|
-
};
|
|
31
|
+
required: [],
|
|
32
|
+
});
|
|
28
33
|
|
|
29
34
|
export default function getSchema({ formData }) {
|
|
30
35
|
return {
|
|
@@ -72,7 +77,7 @@ export default function getSchema({ formData }) {
|
|
|
72
77
|
images: {
|
|
73
78
|
title: 'Images',
|
|
74
79
|
widget: 'object_list',
|
|
75
|
-
schema: imageSchema,
|
|
80
|
+
schema: imageSchema({ formData }),
|
|
76
81
|
},
|
|
77
82
|
},
|
|
78
83
|
required: [],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import loadable from '@loadable/component';
|
|
3
3
|
import { Modal, Image } from 'semantic-ui-react';
|
|
4
|
-
|
|
4
|
+
import cx from 'classnames';
|
|
5
5
|
import 'slick-carousel/slick/slick.css';
|
|
6
6
|
import 'slick-carousel/slick/slick-theme.css';
|
|
7
7
|
|
|
@@ -56,7 +56,9 @@ const ImageGallery = (props) => {
|
|
|
56
56
|
<Image
|
|
57
57
|
src={`${items[0]?.image}/@@images/image/preview`}
|
|
58
58
|
alt={items[0]?.title}
|
|
59
|
-
className=
|
|
59
|
+
className={cx('preview-image', {
|
|
60
|
+
'image-gallery-preview': mode === 'edit',
|
|
61
|
+
})}
|
|
60
62
|
/>
|
|
61
63
|
</div>
|
|
62
64
|
{mode === 'view' ? (
|