@eeacms/volto-eea-map 1.0.1 → 2.0.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
CHANGED
|
@@ -4,7 +4,21 @@ 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
|
-
### [
|
|
7
|
+
### [2.0.0](https://github.com/eea/volto-eea-map/compare/1.0.2...2.0.0) - 25 July 2023
|
|
8
|
+
|
|
9
|
+
#### :nail_care: Enhancements
|
|
10
|
+
|
|
11
|
+
- refactor: remove countup - refs #254634 [dobri1408 - [`7763f61`](https://github.com/eea/volto-eea-map/commit/7763f612221210283c9c5dc3e15ede991c78f393)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- Release 2.0.0 [Alin Voinea - [`7be280d`](https://github.com/eea/volto-eea-map/commit/7be280d4809186e663f422687aca3c33dd732904)]
|
|
16
|
+
### [1.0.2](https://github.com/eea/volto-eea-map/compare/1.0.1...1.0.2) - 21 July 2023
|
|
17
|
+
|
|
18
|
+
#### :hammer_and_wrench: Others
|
|
19
|
+
|
|
20
|
+
- Allow blocks in content type [Tiberiu Ichim - [`2ac09a6`](https://github.com/eea/volto-eea-map/commit/2ac09a613aba07f6cbaf42c386660f2d7d09bd13)]
|
|
21
|
+
### [1.0.1](https://github.com/eea/volto-eea-map/compare/1.0.0...1.0.1) - 22 June 2023
|
|
8
22
|
|
|
9
23
|
#### :rocket: New Features
|
|
10
24
|
|
|
@@ -64,7 +78,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
64
78
|
|
|
65
79
|
- chore: clear unused #254131 [andreiggr - [`ccec2ea`](https://github.com/eea/volto-eea-map/commit/ccec2eaab173c905cd4ea0190a9c6cfd630250f9)]
|
|
66
80
|
- chore: clear block style #254131 [andreiggr - [`af500bc`](https://github.com/eea/volto-eea-map/commit/af500bc10a5f280eff0335f45bae1596d66a7e6b)]
|
|
67
|
-
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`76b29e5`](https://github.com/eea/volto-eea-map/commit/76b29e510f5156590723831a524bc39dfba6deba)]
|
|
68
81
|
|
|
69
82
|
#### :hammer_and_wrench: Others
|
|
70
83
|
|
|
@@ -74,7 +87,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
74
87
|
- * versions [andreiggr - [`6d9ff2b`](https://github.com/eea/volto-eea-map/commit/6d9ff2b26a236b6445678e3d84698d1c3c0826f4)]
|
|
75
88
|
- add razzle-plugin-scss dep [andreiggr - [`d74cee5`](https://github.com/eea/volto-eea-map/commit/d74cee51d30c866afe55730e5b25e0bf11d2caea)]
|
|
76
89
|
- volto-object-widget [andreiggr - [`18d0ed7`](https://github.com/eea/volto-eea-map/commit/18d0ed72c1ba7b0f7159a0eefc09ccea9acee5cb)]
|
|
77
|
-
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`5911d01`](https://github.com/eea/volto-eea-map/commit/5911d01f7f3bc79a2c834fab75a9a4ac05d2d042)]
|
|
78
90
|
### [0.1.32](https://github.com/eea/volto-eea-map/compare/0.1.31...0.1.32) - 20 February 2023
|
|
79
91
|
|
|
80
92
|
#### :hammer_and_wrench: Others
|
|
@@ -82,7 +94,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
82
94
|
- remove console.log [tedw87 - [`3aeb3e8`](https://github.com/eea/volto-eea-map/commit/3aeb3e8ec5474387f3cd22eb9b387c6681e17120)]
|
|
83
95
|
- refactor code [tedw87 - [`6d7830e`](https://github.com/eea/volto-eea-map/commit/6d7830eb934f56c255eea5642bdefba30d892946)]
|
|
84
96
|
- add Blossom basemap layer [tedw87 - [`5226ee2`](https://github.com/eea/volto-eea-map/commit/5226ee218df3401cf467afbc7a4d720dc30719e1)]
|
|
85
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`1dad5c6`](https://github.com/eea/volto-eea-map/commit/1dad5c6617096ff85223165a6dd2b1d5d7deea6a)]
|
|
86
97
|
### [0.1.31](https://github.com/eea/volto-eea-map/compare/0.1.30...0.1.31) - 11 November 2022
|
|
87
98
|
|
|
88
99
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-eea-map",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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",
|
|
@@ -38,9 +38,6 @@
|
|
|
38
38
|
"cypress-fail-fast": "^5.0.1",
|
|
39
39
|
"md5": "^2.3.0"
|
|
40
40
|
},
|
|
41
|
-
"resolutions": {
|
|
42
|
-
"react-countup/countup.js": "2.5.0"
|
|
43
|
-
},
|
|
44
41
|
"scripts": {
|
|
45
42
|
"release": "release-it",
|
|
46
43
|
"bootstrap": "npm install -g ejs; npm link ejs; node bootstrap",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Webmap from '../Webmap';
|
|
3
|
+
import { hasBlocksData } from '@plone/volto/helpers';
|
|
4
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
3
5
|
|
|
4
6
|
const VisualizationView = (props) => {
|
|
5
7
|
const { content = {} } = props;
|
|
@@ -7,8 +9,12 @@ const VisualizationView = (props) => {
|
|
|
7
9
|
const { map_visualization_data = {} } = content;
|
|
8
10
|
|
|
9
11
|
return (
|
|
10
|
-
<div>
|
|
11
|
-
|
|
12
|
+
<div id="page-document" className="view-viewarcgismap">
|
|
13
|
+
{hasBlocksData(content) ? (
|
|
14
|
+
<RenderBlocks {...props} />
|
|
15
|
+
) : (
|
|
16
|
+
<Webmap data={map_visualization_data} />
|
|
17
|
+
)}
|
|
12
18
|
</div>
|
|
13
19
|
);
|
|
14
20
|
};
|
package/src/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import DataQueryWidget from './components/widgets/DataQueryWidget';
|
|
|
7
7
|
import LayerSelectWidget from './components/widgets/LayerSelectWidget';
|
|
8
8
|
|
|
9
9
|
import VisualizationEditorWidget from './components/visualization/VisualizationEditorWidget';
|
|
10
|
+
import VisualizationViewWidget from './components/visualization/VisualizationViewWidget';
|
|
10
11
|
import VisualizationView from './components/visualization/VisualizationView';
|
|
11
12
|
|
|
12
13
|
import SimpleColorPickerWidget from './components/widgets/SimpleColorPickerWidget';
|
|
@@ -61,6 +62,7 @@ export default (config) => {
|
|
|
61
62
|
|
|
62
63
|
//map editor for the visualization(content-type)
|
|
63
64
|
config.widgets.id.map_visualization_data = VisualizationEditorWidget;
|
|
65
|
+
config.widgets.views.id.map_visualization_data = VisualizationViewWidget;
|
|
64
66
|
//map viewer for the visualization(content-type)
|
|
65
67
|
config.views.contentTypesViews.map_visualization = VisualizationView;
|
|
66
68
|
|