@eeacms/volto-widget-geolocation 7.0.1 → 7.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,7 +4,15 @@ 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.
|
|
7
|
+
### [7.0.3](https://github.com/eea/volto-widget-geolocation/compare/7.0.2...7.0.3) - 16 April 2026
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: SSR/HMR crash by loading i18n-iso-countries browser entry [Alin Voinea - [`42faa61`](https://github.com/eea/volto-widget-geolocation/commit/42faa61fbc9e9e27ca7a2370d5ccb3774b616918)]
|
|
12
|
+
|
|
13
|
+
### [7.0.2](https://github.com/eea/volto-widget-geolocation/compare/7.0.1...7.0.2) - 16 April 2026
|
|
14
|
+
|
|
15
|
+
### [7.0.1](https://github.com/eea/volto-widget-geolocation/compare/7.0.0...7.0.1) - 9 April 2026
|
|
8
16
|
|
|
9
17
|
#### :hammer_and_wrench: Others
|
|
10
18
|
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ import Icon from '@plone/volto/components/theme/Icon/Icon';
|
|
|
12
12
|
import FormFieldWrapper from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
13
13
|
import { getProxiedExternalContent } from '@eeacms/volto-corsproxy/actions';
|
|
14
14
|
import { getCountryCode, makeSearchUrl } from './util';
|
|
15
|
-
import countries from 'i18n-iso-countries';
|
|
15
|
+
import countries from 'i18n-iso-countries/index';
|
|
16
16
|
import zoomSVG from '@plone/volto/icons/zoom.svg';
|
|
17
17
|
import locales from 'i18n-iso-countries/langs/en.json';
|
|
18
18
|
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import countries from 'i18n-iso-countries';
|
|
1
|
+
import countries from 'i18n-iso-countries/index';
|
|
2
|
+
import en from 'i18n-iso-countries/langs/en.json';
|
|
2
3
|
import assign from 'lodash/assign';
|
|
3
4
|
import values from 'lodash/values';
|
|
4
5
|
import keys from 'lodash/keys';
|
|
6
|
+
|
|
7
|
+
countries.registerLocale(en);
|
|
8
|
+
|
|
5
9
|
export function getCountryCode(countryName = '') {
|
|
6
10
|
return countries.getAlpha2Code(countryName, 'en');
|
|
7
11
|
}
|