@eeacms/volto-eea-map 2.0.3 → 2.0.5

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,15 +4,26 @@ 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.0.3](https://github.com/eea/volto-eea-map/compare/2.0.2...2.0.3) - 16 August 2023
7
+ ### [2.0.5](https://github.com/eea/volto-eea-map/compare/2.0.4...2.0.5) - 23 August 2023
8
8
 
9
9
  #### :bug: Bug Fixes
10
10
 
11
- - fix: fullscreen changes parent height #256519 [andreiggr - [`f4c4183`](https://github.com/eea/volto-eea-map/commit/f4c4183a2f7523dd2fc6957e4cc967d100be2b45)]
11
+ - fix: remove height on PP [Andrei Grigore - [`9039dd5`](https://github.com/eea/volto-eea-map/commit/9039dd5b037c0f3dcdf44bc74f2b58bbb525f0e4)]
12
12
 
13
- #### :house: Internal changes
13
+ ### [2.0.4](https://github.com/eea/volto-eea-map/compare/2.0.3...2.0.4) - 23 August 2023
14
14
 
15
- - chore: add map fullscreen widget #256519 [andreiggr - [`f9a2d63`](https://github.com/eea/volto-eea-map/commit/f9a2d63ddd7e09187874339f90fb18833d3f0230)]
15
+ #### :bug: Bug Fixes
16
+
17
+ - fix: remove height on PP [Andrei Grigore - [`ee786bf`](https://github.com/eea/volto-eea-map/commit/ee786bf82281acac87050916992fe4735b2e94a7)]
18
+
19
+ #### :hammer_and_wrench: Others
20
+
21
+ - test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`ce5c385`](https://github.com/eea/volto-eea-map/commit/ce5c3857ebbeac1d3e9e53dbbcd432a796bdee9c)]
22
+ ### [2.0.3](https://github.com/eea/volto-eea-map/compare/2.0.2...2.0.3) - 16 August 2023
23
+
24
+ #### :bug: Bug Fixes
25
+
26
+ - fix: fullscreen changes parent height #256519 [andreiggr - [`f4c4183`](https://github.com/eea/volto-eea-map/commit/f4c4183a2f7523dd2fc6957e4cc967d100be2b45)]
16
27
 
17
28
  ### [2.0.2](https://github.com/eea/volto-eea-map/compare/2.0.1...2.0.2) - 14 August 2023
18
29
 
@@ -48,11 +59,14 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
48
59
  #### :hammer_and_wrench: Others
49
60
 
50
61
  - Release 2.0.0 [Alin Voinea - [`7be280d`](https://github.com/eea/volto-eea-map/commit/7be280d4809186e663f422687aca3c33dd732904)]
62
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`ba6ed22`](https://github.com/eea/volto-eea-map/commit/ba6ed22118406db979457384d4739cced2096137)]
51
63
  ### [1.0.2](https://github.com/eea/volto-eea-map/compare/1.0.1...1.0.2) - 21 July 2023
52
64
 
53
65
  #### :hammer_and_wrench: Others
54
66
 
55
67
  - Allow blocks in content type [Tiberiu Ichim - [`2ac09a6`](https://github.com/eea/volto-eea-map/commit/2ac09a613aba07f6cbaf42c386660f2d7d09bd13)]
68
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`403b4c0`](https://github.com/eea/volto-eea-map/commit/403b4c009e5aaded58203bc292ba3baa4631488b)]
69
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`aedb654`](https://github.com/eea/volto-eea-map/commit/aedb6544fd45b147a3385425aba46ffba108f5ca)]
56
70
  ### [1.0.1](https://github.com/eea/volto-eea-map/compare/1.0.0...1.0.1) - 22 June 2023
57
71
 
58
72
  #### :rocket: New Features
@@ -113,6 +127,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
113
127
 
114
128
  - chore: clear unused #254131 [andreiggr - [`ccec2ea`](https://github.com/eea/volto-eea-map/commit/ccec2eaab173c905cd4ea0190a9c6cfd630250f9)]
115
129
  - chore: clear block style #254131 [andreiggr - [`af500bc`](https://github.com/eea/volto-eea-map/commit/af500bc10a5f280eff0335f45bae1596d66a7e6b)]
130
+ - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`76b29e5`](https://github.com/eea/volto-eea-map/commit/76b29e510f5156590723831a524bc39dfba6deba)]
116
131
 
117
132
  #### :hammer_and_wrench: Others
118
133
 
@@ -122,6 +137,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
122
137
  - * versions [andreiggr - [`6d9ff2b`](https://github.com/eea/volto-eea-map/commit/6d9ff2b26a236b6445678e3d84698d1c3c0826f4)]
123
138
  - add razzle-plugin-scss dep [andreiggr - [`d74cee5`](https://github.com/eea/volto-eea-map/commit/d74cee51d30c866afe55730e5b25e0bf11d2caea)]
124
139
  - volto-object-widget [andreiggr - [`18d0ed7`](https://github.com/eea/volto-eea-map/commit/18d0ed72c1ba7b0f7159a0eefc09ccea9acee5cb)]
140
+ - Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`5911d01`](https://github.com/eea/volto-eea-map/commit/5911d01f7f3bc79a2c834fab75a9a4ac05d2d042)]
125
141
  ### [0.1.32](https://github.com/eea/volto-eea-map/compare/0.1.31...0.1.32) - 20 February 2023
126
142
 
127
143
  #### :hammer_and_wrench: Others
@@ -129,6 +145,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
129
145
  - remove console.log [tedw87 - [`3aeb3e8`](https://github.com/eea/volto-eea-map/commit/3aeb3e8ec5474387f3cd22eb9b387c6681e17120)]
130
146
  - refactor code [tedw87 - [`6d7830e`](https://github.com/eea/volto-eea-map/commit/6d7830eb934f56c255eea5642bdefba30d892946)]
131
147
  - add Blossom basemap layer [tedw87 - [`5226ee2`](https://github.com/eea/volto-eea-map/commit/5226ee218df3401cf467afbc7a4d720dc30719e1)]
148
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`1dad5c6`](https://github.com/eea/volto-eea-map/commit/1dad5c6617096ff85223165a6dd2b1d5d7deea6a)]
132
149
  ### [0.1.31](https://github.com/eea/volto-eea-map/compare/0.1.30...0.1.31) - 11 November 2022
133
150
 
134
151
  #### :hammer_and_wrench: Others
@@ -1,11 +1,12 @@
1
1
  version: "3"
2
2
  services:
3
3
  backend:
4
- image: plone/plone-backend:${PLONE_VERSION:-6}
4
+ image: eeacms/plone-backend
5
5
  ports:
6
6
  - "8080:8080"
7
7
  environment:
8
8
  SITE: "Plone"
9
+ PROFILES: "eea.kitkat:testing"
9
10
 
10
11
  frontend:
11
12
  build:
@@ -23,6 +24,9 @@ services:
23
24
  volumes:
24
25
  - ./:/app/src/addons/${ADDON_PATH}
25
26
  environment:
27
+ CI: "true"
28
+ NODE_ENV: "development"
29
+ RAZZLE_JEST_CONFIG: "src/addons/${ADDON_PATH}/jest-addon.config.js"
26
30
  RAZZLE_INTERNAL_API_PATH: "http://backend:8080/Plone"
27
31
  RAZZLE_DEV_PROXY_API_PATH: "http://backend:8080/Plone"
28
32
  HOST: "0.0.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-map",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "@eeacms/volto-eea-map: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -21,6 +21,29 @@ const Edit = (props) => {
21
21
  const [mapData, setMapData] = React.useState('');
22
22
  const data = React.useMemo(() => props.data, [props.data]);
23
23
  const { height = '' } = data;
24
+
25
+ React.useEffect(() => {
26
+ if (!Object.hasOwn(data, 'show_legend')) {
27
+ onChangeBlock(block, {
28
+ ...data,
29
+ show_legend: true,
30
+ });
31
+ }
32
+ if (!Object.hasOwn(data, 'show_sources')) {
33
+ onChangeBlock(block, {
34
+ ...data,
35
+ show_sources: true,
36
+ });
37
+ }
38
+ if (!Object.hasOwn(data, 'dataprotection')) {
39
+ onChangeBlock(block, {
40
+ ...data,
41
+ dataprotection: { enabled: true },
42
+ });
43
+ }
44
+ // eslint-disable-next-line react-hooks/exhaustive-deps
45
+ }, [data.show_legend, data.show_sources, data.dataprotection]);
46
+
24
47
  React.useEffect(() => {
25
48
  if (props.data.vis_url) {
26
49
  props.getVisualization(expandToBackendURL(props.data.vis_url));
@@ -111,12 +111,10 @@ export const Schema = (props) => {
111
111
  title: 'Show sources',
112
112
  description: 'Will show sources set in this page Data provenance',
113
113
  type: 'boolean',
114
- defaultValue: true,
115
114
  },
116
115
  show_legend: {
117
116
  title: 'Show legend',
118
117
  type: 'boolean',
119
- defaultValue: true,
120
118
  },
121
119
  show_viewer: {
122
120
  title: 'Show API link',
@@ -44,7 +44,7 @@ const View = (props) => {
44
44
  ]);
45
45
 
46
46
  return (
47
- <PrivacyProtection data={data} height={height} {...props}>
47
+ <PrivacyProtection data={data} {...props}>
48
48
  {mapData && (
49
49
  <div>
50
50
  <Webmap data={mapData} height={height} />