@eeacms/volto-eea-map 3.0.2 → 3.0.3

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,11 +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
- ### [3.0.2](https://github.com/eea/volto-eea-map/compare/3.0.1...3.0.2) - 28 November 2023
7
+ ### [3.0.3](https://github.com/eea/volto-eea-map/compare/3.0.2...3.0.3) - 29 November 2023
8
8
 
9
- #### :bug: Bug Fixes
9
+ #### :hammer_and_wrench: Others
10
10
 
11
- - fix: handle error when map_layers has no value [laszlocseh - [`0412974`](https://github.com/eea/volto-eea-map/commit/041297417dc1f1fd077983faedba90260e1616d7)]
11
+ - update [Miu Razvan - [`b299f0e`](https://github.com/eea/volto-eea-map/commit/b299f0e24a43c00228c605cae603f2be7bf94b3b)]
12
+ ### [3.0.2](https://github.com/eea/volto-eea-map/compare/3.0.1...3.0.2) - 28 November 2023
12
13
 
13
14
  ### [3.0.1](https://github.com/eea/volto-eea-map/compare/3.0.0...3.0.1) - 24 November 2023
14
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-map",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
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",
@@ -75,7 +75,7 @@ export const Schema = (props) => {
75
75
 
76
76
  deepUpdateDataQueryParams(block, data, dataQuery, onChangeBlock);
77
77
  return {
78
- title: 'Embed EEA Map Block',
78
+ title: 'Embed Map layers (ArcGis)',
79
79
  fieldsets: [
80
80
  {
81
81
  id: 'default',
package/src/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ import { uniqBy } from 'lodash';
2
+
1
3
  import EmbedMapView from './components/Blocks/EmbedEEAMap/View';
2
4
  import EmbedMapEdit from './components/Blocks/EmbedEEAMap/Edit';
3
5
 
@@ -34,9 +36,9 @@ export default (config) => {
34
36
 
35
37
  config.blocks.blocksConfig.embed_eea_map_block = {
36
38
  id: 'embed_eea_map_block', // The name (id) of the block
37
- title: 'Embed EEA Map', // The display name of the block
39
+ title: 'Embed Map layers (ArcGis)', // The display name of the block
38
40
  icon: world, // The icon used in the block chooser
39
- group: 'common', // The group (blocks can be grouped, displayed in the chooser)
41
+ group: 'data_visualizations', // The group (blocks can be grouped, displayed in the chooser)
40
42
  view: EmbedMapView, // The view mode component
41
43
  edit: EmbedMapEdit, // The edit mode component
42
44
  sidebarTab: 1, // The sidebar tab you want to be selected when selecting the block
@@ -54,6 +56,14 @@ export default (config) => {
54
56
  ],
55
57
  };
56
58
 
59
+ config.blocks.groupBlocksOrder = uniqBy(
60
+ [
61
+ ...config.blocks.groupBlocksOrder,
62
+ { id: 'data_visualizations', title: 'Data Visualizations' },
63
+ ],
64
+ 'id',
65
+ );
66
+
57
67
  config.widgets.widget.map_layers_widget = LayerSelectWidget;
58
68
  config.widgets.widget.data_query_widget = DataQueryWidget;
59
69
  config.widgets.widget.simple_color_picker_widget = SimpleColorPickerWidget;