@eeacms/volto-widget-geolocation 5.3.1 → 7.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,6 +4,25 @@ 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.0.0](https://github.com/eea/volto-widget-geolocation/compare/6.0.0...7.0.0) - 25 March 2026
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: Volto 18 support - refs #287700 [Alin Voinea - [`4f189b9`](https://github.com/eea/volto-widget-geolocation/commit/4f189b93f60a69bdbaba792058f7d7de1c274cdc)]
12
+
13
+ #### :house: Internal changes
14
+
15
+
16
+ #### :hammer_and_wrench: Others
17
+
18
+ - tests: Fix Sonar Qube tags - refs #297339 [Alin Voinea - [`67965ac`](https://github.com/eea/volto-widget-geolocation/commit/67965ac1bee2cf70b1bc22af35c901dc13af9945)]
19
+ ## [6.0.0](https://github.com/eea/volto-widget-geolocation/compare/5.3.1...6.0.0) - 22 April 2024
20
+
21
+ #### :rocket: New Features
22
+
23
+ - feat: Release 6.0.0 - Volto 17 support [alin - [`e3d1ad8`](https://github.com/eea/volto-widget-geolocation/commit/e3d1ad86c9d9852bb2f84bb06c684902cafecbee)]
24
+ - feat: Volto 17 support - refs #264527 [EEA Jenkins - [`c38d92d`](https://github.com/eea/volto-widget-geolocation/commit/c38d92dbd4fbac9b0c846641124dfe59449e7d70)]
25
+
7
26
  ### [5.3.1](https://github.com/eea/volto-widget-geolocation/compare/5.3.0...5.3.1) - 16 April 2024
8
27
 
9
28
  #### :bug: Bug Fixes
@@ -12,8 +31,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
12
31
 
13
32
  #### :hammer_and_wrench: Others
14
33
 
15
- - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`a14b70c`](https://github.com/eea/volto-widget-geolocation/commit/a14b70c1d9fe082759b14f6c6cee1683e0cfec07)]
16
- - Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`81b65a2`](https://github.com/eea/volto-widget-geolocation/commit/81b65a292d6bf3b9a98f566c451b95644a44bfa4)]
17
34
  ### [5.3.0](https://github.com/eea/volto-widget-geolocation/compare/5.2.0...5.3.0) - 13 March 2024
18
35
 
19
36
  #### :bug: Bug Fixes
@@ -38,7 +55,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
38
55
  #### :hammer_and_wrench: Others
39
56
 
40
57
  - Updated package version [David Ichim - [`65b98d1`](https://github.com/eea/volto-widget-geolocation/commit/65b98d1067fde38c3208775be637a3038f64ab34)]
41
- - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`e8523d2`](https://github.com/eea/volto-widget-geolocation/commit/e8523d2c7416bcbf0102b63f41e71433c9c435fd)]
42
58
  - test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`93df3b7`](https://github.com/eea/volto-widget-geolocation/commit/93df3b7b12b5f17416c95ca1824d51570e04524e)]
43
59
  - fix search button in metadata section [Teodor - [`3645338`](https://github.com/eea/volto-widget-geolocation/commit/3645338ddaab8ca8965cdfae4f2ba79837b88fec)]
44
60
  - change UI for advanced search button [Teodor - [`1532b13`](https://github.com/eea/volto-widget-geolocation/commit/1532b131b1a4560ebe919252db31f7bb586792ab)]
@@ -50,15 +66,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
50
66
 
51
67
  #### :house: Internal changes
52
68
 
53
- - chore: [JENKINS] Refactor automated testing [valentinab25 - [`f922cca`](https://github.com/eea/volto-widget-geolocation/commit/f922ccab5b9aaafb4a339ba946d91ee5f20329c9)]
54
69
 
55
70
  #### :hammer_and_wrench: Others
56
71
 
57
- - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`82bcb17`](https://github.com/eea/volto-widget-geolocation/commit/82bcb1797f3345148c6a603f2e3cc33baf264989)]
58
- - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`b85472a`](https://github.com/eea/volto-widget-geolocation/commit/b85472ab313d3f93c4e270817a96596ffcd0f544)]
59
- - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`997043c`](https://github.com/eea/volto-widget-geolocation/commit/997043c4c14b77b2d99c83518843a42c93343075)]
60
- - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`af80bd8`](https://github.com/eea/volto-widget-geolocation/commit/af80bd8a135ff8cdc7f988ff7392c1612e4383cb)]
61
- - test: [JENKINS] Improve cypress time [valentinab25 - [`886d02a`](https://github.com/eea/volto-widget-geolocation/commit/886d02a83c00a2cac1ee1f878d5d036e2c28d0fd)]
62
72
  ### [5.1.6](https://github.com/eea/volto-widget-geolocation/compare/5.1.5...5.1.6) - 22 October 2023
63
73
 
64
74
  ### [5.1.5](https://github.com/eea/volto-widget-geolocation/compare/5.1.4...5.1.5) - 17 October 2023
@@ -85,7 +95,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
85
95
 
86
96
  - test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`8bf8acb`](https://github.com/eea/volto-widget-geolocation/commit/8bf8acbca8df069456df12f1b4397cc7f19ebcdb)]
87
97
  - test: Fix package.json scripts to use makefile [Alin Voinea - [`b01f153`](https://github.com/eea/volto-widget-geolocation/commit/b01f1535b57cb0c0a4e17c3b8e82e260635719df)]
88
- - test: Fix eslint and yarn i18n [Alin Voinea - [`136fd03`](https://github.com/eea/volto-widget-geolocation/commit/136fd039d82952d5eb5481117d19715310b006a4)]
89
98
  - i18n: Add en [Alin Voinea - [`05a2dc9`](https://github.com/eea/volto-widget-geolocation/commit/05a2dc91a4fa487d828586cc909d9d343c3d1506)]
90
99
  - test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`0fce8cc`](https://github.com/eea/volto-widget-geolocation/commit/0fce8ccbcefc5f1b12b4248e962ce7ec1c822b5d)]
91
100
  ### [5.1.3](https://github.com/eea/volto-widget-geolocation/compare/5.1.2...5.1.3) - 10 August 2023
@@ -117,18 +126,15 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
117
126
  - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`97afdc6`](https://github.com/eea/volto-widget-geolocation/commit/97afdc64e77ba6ed56a252dd425b13c0a9900601)]
118
127
  - test: add unit tests for util - refs #253277 [ana-oprea - [`5904795`](https://github.com/eea/volto-widget-geolocation/commit/5904795ce51f8c5fc3a8e5cf6812a72b284586b0)]
119
128
  - test: Fix test config, coverage Refs #253277 [valentinab25 - [`ae96b0a`](https://github.com/eea/volto-widget-geolocation/commit/ae96b0a75fb6c418281a83fe45901d68b88c08f2)]
120
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`e46d9a3`](https://github.com/eea/volto-widget-geolocation/commit/e46d9a3378b8991c38308bf820c85cb292628dc1)]
121
129
  ### [5.1.0](https://github.com/eea/volto-widget-geolocation/compare/5.0.3...5.1.0) - 27 March 2023
122
130
 
123
131
  #### :hammer_and_wrench: Others
124
132
 
125
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`7155a34`](https://github.com/eea/volto-widget-geolocation/commit/7155a34e46cefc066790fa0d638be14e86e390c8)]
126
133
  ### [5.0.3](https://github.com/eea/volto-widget-geolocation/compare/5.0.2...5.0.3) - 2 March 2023
127
134
 
128
135
  #### :hammer_and_wrench: Others
129
136
 
130
137
  - map countrynames from taxonomy in geonames results [nileshgulia1 - [`444f50f`](https://github.com/eea/volto-widget-geolocation/commit/444f50fa31ac50f0e37675db80eceae0538f27d5)]
131
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`9cb2f2a`](https://github.com/eea/volto-widget-geolocation/commit/9cb2f2a7556d5688018cd148ef6957c6b904b6a3)]
132
138
  ### [5.0.2](https://github.com/eea/volto-widget-geolocation/compare/5.0.1...5.0.2) - 27 February 2023
133
139
 
134
140
  #### :hammer_and_wrench: Others
@@ -136,12 +142,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
136
142
  - fix proptype warning [nileshgulia1 - [`c9cc7c5`](https://github.com/eea/volto-widget-geolocation/commit/c9cc7c510d69fd980d6b8190144afdc3b1c3b594)]
137
143
  - Merge pull request #49 from eea/country_mapping_fix [Nilesh - [`27f7405`](https://github.com/eea/volto-widget-geolocation/commit/27f7405212bc77bdeef2b12398cba9ccbfbcf3d4)]
138
144
  - consume country names from country_mapping from backend if present [nileshgulia1 - [`ab91c4a`](https://github.com/eea/volto-widget-geolocation/commit/ab91c4a8bc5a80ee3d68f45194aaabfcf94394d5)]
139
- - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`df6a218`](https://github.com/eea/volto-widget-geolocation/commit/df6a218ce262fdec9d9733dfd924c60cdefca9b1)]
140
- - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`748246c`](https://github.com/eea/volto-widget-geolocation/commit/748246c00f5f10e1e1ddba7cebaa5bde289432e5)]
141
145
  - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`ee943bd`](https://github.com/eea/volto-widget-geolocation/commit/ee943bd7fb8c6e0e37114c3c7be70158973f1d7b)]
142
- - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`745dede`](https://github.com/eea/volto-widget-geolocation/commit/745dede703c8c625be24feb97fe8af156235cc60)]
143
- - yarn 3 [Alin Voinea - [`71a7571`](https://github.com/eea/volto-widget-geolocation/commit/71a7571adcbc81480589ccce3959120d565e7015)]
144
- - Add Sonarqube tag using demo-kitkat-frontend addons list [EEA Jenkins - [`5dff0ab`](https://github.com/eea/volto-widget-geolocation/commit/5dff0abc11b5397ac1ca85897a46bc37d0732c92)]
145
146
  ### [5.0.1](https://github.com/eea/volto-widget-geolocation/compare/5.0.0...5.0.1) - 16 November 2022
146
147
 
147
148
  #### :hammer_and_wrench: Others
@@ -152,14 +153,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
152
153
  #### :hammer_and_wrench: Others
153
154
 
154
155
  - Cleanup [Alin Voinea - [`2b53756`](https://github.com/eea/volto-widget-geolocation/commit/2b5375660e6184a5875b7ac87eb17902cc7bfab9)]
155
- - Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`24fc1be`](https://github.com/eea/volto-widget-geolocation/commit/24fc1be54e9b5f52473a704928e9770df981894a)]
156
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`41b6a2c`](https://github.com/eea/volto-widget-geolocation/commit/41b6a2cccb276db1e6f57bd4d28318628ef87a08)]
157
156
  - update(jest): add @plone/volto-slate resolver refs- #153447 [nileshgulia1 - [`404894f`](https://github.com/eea/volto-widget-geolocation/commit/404894fcf6b5227a19f8292f881ce66476ce5e16)]
158
157
  ### [4.0.6](https://github.com/eea/volto-widget-geolocation/compare/4.0.5...4.0.6) - 30 June 2022
159
158
 
160
159
  #### :hammer_and_wrench: Others
161
160
 
162
- - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`c706ec9`](https://github.com/eea/volto-widget-geolocation/commit/c706ec94c0d51443d81a788c1c100e6cc268b034)]
163
161
  ### [4.0.5](https://github.com/eea/volto-widget-geolocation/compare/4.0.4...4.0.5) - 20 June 2022
164
162
 
165
163
  #### :hammer_and_wrench: Others
@@ -175,40 +173,30 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
175
173
  - eslint [nileshgulia1 - [`c91d86c`](https://github.com/eea/volto-widget-geolocation/commit/c91d86c33a4756373294d1779d01f19775b8363d)]
176
174
  - fix filters [nileshgulia1 - [`9822e51`](https://github.com/eea/volto-widget-geolocation/commit/9822e5127bf0fb7e0a9957c63d78e7460d53cb5b)]
177
175
  - fix searchWidget for coremetadata behaviour [nileshgulia1 - [`3e28cc7`](https://github.com/eea/volto-widget-geolocation/commit/3e28cc74195851ebc0537abb021032fc8429ab06)]
178
- - Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`54c8b1c`](https://github.com/eea/volto-widget-geolocation/commit/54c8b1c85acdda12b1f026f8fa80fb63db7c9f9d)]
179
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`bc64abe`](https://github.com/eea/volto-widget-geolocation/commit/bc64abe6c60580fe7e99545f75e552e8b9af4975)]
180
176
  ### [4.0.3](https://github.com/eea/volto-widget-geolocation/compare/4.0.2...4.0.3) - 3 January 2022
181
177
 
182
178
  ### [4.0.2](https://github.com/eea/volto-widget-geolocation/compare/4.0.1...4.0.2) - 18 December 2021
183
179
 
184
180
  #### :hammer_and_wrench: Others
185
181
 
186
- - Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`22b1599`](https://github.com/eea/volto-widget-geolocation/commit/22b1599e3c0a9ea6848bbf13b6447e54987c5ac3)]
187
182
  ### [4.0.1](https://github.com/eea/volto-widget-geolocation/compare/4.0.0...4.0.1) - 10 December 2021
188
183
 
189
184
  #### :hammer_and_wrench: Others
190
185
 
191
186
  - Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`acaedb9`](https://github.com/eea/volto-widget-geolocation/commit/acaedb9198fac529c8db6c1dc744730d90abc4b5)]
192
- - Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`150d263`](https://github.com/eea/volto-widget-geolocation/commit/150d263758c9651eba879292d92edd10efa0d864)]
193
- - Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`d19460f`](https://github.com/eea/volto-widget-geolocation/commit/d19460f1beb0f9275220ade75bc5bb9d58571951)]
194
- - Add Sonarqube tag using forests-frontend addons list [EEA Jenkins - [`d77d8cf`](https://github.com/eea/volto-widget-geolocation/commit/d77d8cf8d04177df6f4564a78804b7a7e1ca5f67)]
195
- - Add Sonarqube tag using sustainability-frontend addons list [EEA Jenkins - [`1d5a574`](https://github.com/eea/volto-widget-geolocation/commit/1d5a5744b2bca35cd2a6d6ffe76c24a573cac62b)]
196
187
  ## [4.0.0](https://github.com/eea/volto-widget-geolocation/compare/3.0.3...4.0.0) - 24 September 2021
197
188
 
198
189
  #### :hammer_and_wrench: Others
199
190
 
200
- - Add Sonarqube tag using climate-energy-frontend addons list [EEA Jenkins - [`c374d87`](https://github.com/eea/volto-widget-geolocation/commit/c374d87267b340ba40cd61b53b24e8b9f135c974)]
201
191
  ### [3.0.3](https://github.com/eea/volto-widget-geolocation/compare/3.0.2...3.0.3) - 16 September 2021
202
192
 
203
193
  #### :hammer_and_wrench: Others
204
194
 
205
- - Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`f28a503`](https://github.com/eea/volto-widget-geolocation/commit/f28a503ea7ed70a857a1556d71ec50138086494b)]
206
195
  ### [3.0.2](https://github.com/eea/volto-widget-geolocation/compare/3.0.1...3.0.2) - 9 September 2021
207
196
 
208
197
  #### :hammer_and_wrench: Others
209
198
 
210
199
  - Fix volto-corsproxy dependency pin [Alin Voinea - [`ded8151`](https://github.com/eea/volto-widget-geolocation/commit/ded8151484d2d2406fafe3a3bfe3548a2d38b06a)]
211
- - Add Sonarqube tag using frontend addons list [EEA Jenkins - [`045c761`](https://github.com/eea/volto-widget-geolocation/commit/045c761ff0958adea7ac2da3c28cbbf3dd6fcedb)]
212
200
  ### [3.0.1](https://github.com/eea/volto-widget-geolocation/compare/3.0.0...3.0.1) - 18 June 2021
213
201
 
214
202
  ## [3.0.0](https://github.com/eea/volto-widget-geolocation/compare/2.3.0...3.0.0) - 9 June 2021
package/DEVELOP.md CHANGED
@@ -26,21 +26,20 @@
26
26
 
27
27
  ### Or add @eeacms/volto-widget-geolocation to your Volto project
28
28
 
29
- Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
29
+ Before starting make sure your development environment is properly set. See the official Plone documentation for [creating a project with Cookieplone](https://6.docs.plone.org/install/create-project-cookieplone.html) and [installing an add-on in development mode in Volto 18 and 19](https://6.docs.plone.org/volto/development/add-ons/install-an-add-on-dev-18.html).
30
30
 
31
- 1. Make sure you have installed `yo`, `@plone/generator-volto` and `mrs-developer`
31
+ For new Volto 18+ projects, use Cookieplone. It includes `mrs-developer` by default.
32
32
 
33
- npm install -g yo @plone/generator-volto mrs-developer
33
+ 1. Create a new Volto project with Cookieplone
34
34
 
35
- 1. Create new volto app
36
-
37
- yo @plone/volto my-volto-project --addon @eeacms/volto-widget-geolocation --skip-install
38
- cd my-volto-project
35
+ uvx cookieplone project
36
+ cd project-title
39
37
 
40
38
  1. Add the following to `mrs.developer.json`:
41
39
 
42
40
  {
43
41
  "volto-widget-geolocation": {
42
+ "output": "packages",
44
43
  "url": "https://github.com/eea/volto-widget-geolocation.git",
45
44
  "package": "@eeacms/volto-widget-geolocation",
46
45
  "branch": "develop",
@@ -48,28 +47,31 @@ Before starting make sure your development environment is properly set. See [Vol
48
47
  }
49
48
  }
50
49
 
51
- 1. Install
50
+ 1. Add `@eeacms/volto-widget-geolocation` to the `addons` key in your project `volto.config.js`
51
+
52
+ 1. Install or refresh the project setup
52
53
 
53
- make develop
54
- yarn
54
+ make install
55
55
 
56
- 1. Start backend
56
+ 1. Start backend in one terminal
57
57
 
58
- docker run --pull always -it --rm --name plone -p 8080:8080 -e SITE=Plone plone/plone-backend
58
+ make backend-start
59
59
 
60
- ...wait for backend to setup and start - `Ready to handle requests`:
60
+ ...wait for backend to setup and start, ending with `Ready to handle requests`
61
61
 
62
62
  ...you can also check http://localhost:8080/Plone
63
63
 
64
- 1. Start frontend
64
+ 1. Start frontend in a second terminal
65
65
 
66
- yarn start
66
+ make frontend-start
67
67
 
68
68
  1. Go to http://localhost:3000
69
69
 
70
70
  1. Happy hacking!
71
71
 
72
- cd src/addons/volto-widget-geolocation/
72
+ cd packages/volto-widget-geolocation
73
+
74
+ For legacy Volto 17 projects, keep using the yarn-based workflow from the Volto 17 documentation.
73
75
 
74
76
  ## Cypress
75
77
 
@@ -81,7 +83,7 @@ project where you added `volto-widget-geolocation` to `mrs.developer.json`
81
83
  Go to:
82
84
 
83
85
  ```BASH
84
- cd src/addons/volto-widget-geolocation/
86
+ cd packages/volto-widget-geolocation/
85
87
  ```
86
88
 
87
89
  Start:
package/README.md CHANGED
@@ -3,16 +3,16 @@
3
3
  [![Releases](https://img.shields.io/github/v/release/eea/volto-widget-geolocation)](https://github.com/eea/volto-widget-geolocation/releases)
4
4
 
5
5
  [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-widget-geolocation%2Fmaster&subject=master)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-widget-geolocation/job/master/display/redirect)
6
- [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation-master&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation-master)
7
- [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation-master&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation-master)
8
- [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation-master&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation-master)
9
- [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation-master&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation-master)
6
+ [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation)
7
+ [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation)
8
+ [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation)
9
+ [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation)
10
10
 
11
11
  [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-widget-geolocation%2Fdevelop&subject=develop)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-widget-geolocation/job/develop/display/redirect)
12
- [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation-develop&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation-develop)
13
- [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation-develop&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation-develop)
14
- [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation-develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation-develop)
15
- [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation-develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation-develop)
12
+ [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation&branch=develop&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation&branch=develop)
13
+ [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation&branch=develop&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation&branch=develop)
14
+ [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation&branch=develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation&branch=develop)
15
+ [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-widget-geolocation&branch=develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-widget-geolocation&branch=develop)
16
16
 
17
17
  [Volto](https://github.com/plone/volto) Widget: Geolocation with [GeoNames](https://www.geonames.org/) integration
18
18
 
@@ -33,6 +33,11 @@
33
33
 
34
34
  Go to http://localhost:3000
35
35
 
36
+ `make start` now defaults to Volto 18. To run the same setup against Volto 17, use:
37
+
38
+ VOLTO_VERSION=17 make
39
+ VOLTO_VERSION=17 make start
40
+
36
41
  ### Add volto-widget-geolocation to your Volto project
37
42
 
38
43
  1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
@@ -46,30 +51,39 @@ Go to http://localhost:3000
46
51
  * If you already have a volto project, just update `package.json`:
47
52
 
48
53
  ```JSON
49
- "addons": [
50
- "@eeacms/volto-widget-geolocation"
51
- ],
52
-
53
54
  "dependencies": {
54
55
  "@eeacms/volto-widget-geolocation": "*"
55
56
  }
56
57
  ```
57
58
 
58
- * If not, create one:
59
+ and `volto.config.js`:
60
+
61
+ ```JavaScript
62
+ const addons = ['@eeacms/volto-widget-geolocation'];
63
+ ```
64
+
65
+ * If not, create one with Cookieplone, as recommended by the official Plone documentation for Volto 18+:
59
66
 
60
67
  ```
61
- npm install -g yo @plone/generator-volto
62
- yo @plone/volto my-volto-project --canary --addon @eeacms/volto-widget-geolocation
63
- cd my-volto-project
68
+ uvx cookieplone project
69
+ cd project-title
64
70
  ```
65
71
 
66
- 1. Install new add-ons and restart Volto:
72
+ 1. Install or update dependencies, then start the project:
67
73
 
68
74
  ```
69
- yarn
70
- yarn start
75
+ make install
71
76
  ```
72
77
 
78
+ For a Cookieplone project, start the backend and frontend in separate terminals:
79
+
80
+ ```
81
+ make backend-start
82
+ make frontend-start
83
+ ```
84
+
85
+ For a legacy Volto 17 project, install the package with `yarn` and restart the frontend as usual.
86
+
73
87
  1. Go to http://localhost:3000
74
88
 
75
89
  1. Happy editing!
@@ -15,7 +15,7 @@ services:
15
15
  args:
16
16
  ADDON_NAME: "${ADDON_NAME}"
17
17
  ADDON_PATH: "${ADDON_PATH}"
18
- VOLTO_VERSION: ${VOLTO_VERSION:-16}
18
+ VOLTO_VERSION: ${VOLTO_VERSION:-18-yarn}
19
19
  ports:
20
20
  - "3000:3000"
21
21
  - "3001:3001"
@@ -1,5 +1,14 @@
1
1
  require('dotenv').config({ path: __dirname + '/.env' })
2
2
 
3
+ const fs = require('fs')
4
+ const path = require('path')
5
+
6
+ const voltoSlatePath = fs.existsSync(
7
+ path.join(__dirname, '../../../node_modules/@plone/volto-slate/src'),
8
+ )
9
+ ? '<rootDir>/node_modules/@plone/volto-slate/src'
10
+ : '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src'
11
+
3
12
  module.exports = {
4
13
  testMatch: ['**/src/addons/**/?(*.)+(spec|test).[jt]s?(x)'],
5
14
  collectCoverageFrom: [
@@ -14,11 +23,11 @@ module.exports = {
14
23
  '@package/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
15
24
  '@root/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
16
25
  '@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
26
+ '@eeacms/search/(.*)$': '<rootDir>/src/addons/volto-searchlib/searchlib/$1',
27
+ '@eeacms/search': '<rootDir>/src/addons/volto-searchlib/searchlib',
17
28
  '@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
18
- '@plone/volto-slate$':
19
- '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
20
- '@plone/volto-slate/(.*)$':
21
- '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src/$1',
29
+ '@plone/volto-slate$': voltoSlatePath,
30
+ '@plone/volto-slate/(.*)$': `${voltoSlatePath}/$1`,
22
31
  '~/(.*)$': '<rootDir>/src/$1',
23
32
  'load-volto-addons':
24
33
  '<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
@@ -28,6 +37,7 @@ module.exports = {
28
37
  ],
29
38
  transform: {
30
39
  '^.+\\.js(x)?$': 'babel-jest',
40
+ '^.+\\.ts(x)?$': 'babel-jest',
31
41
  '^.+\\.(png)$': 'jest-file',
32
42
  '^.+\\.(jpg)$': 'jest-file',
33
43
  '^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-widget-geolocation",
3
- "version": "5.3.1",
3
+ "version": "7.0.0",
4
4
  "description": "volto-widget-geolocation: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -11,7 +11,7 @@ import worldSVG from '@plone/volto/icons/world.svg';
11
11
  import clearSVG from '@plone/volto/icons/clear.svg';
12
12
  import checkSVG from '@plone/volto/icons/check.svg';
13
13
 
14
- export default (props) => {
14
+ const SearchGeoName = (props) => {
15
15
  const { id, data, block, setPopup, onChange, onChangeSchema } = props;
16
16
  const [resultsValue, setResultsValue] = React.useState(data.geolocation);
17
17
  const InlineFormSchema = schema(props);
@@ -119,3 +119,5 @@ export default (props) => {
119
119
  />
120
120
  );
121
121
  };
122
+
123
+ export default SearchGeoName;