@eeacms/volto-cca-policy 0.3.79 → 0.3.81

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +18 -3
  2. package/locales/bg/LC_MESSAGES/volto.po +96 -32
  3. package/locales/cs/LC_MESSAGES/volto.po +96 -32
  4. package/locales/da/LC_MESSAGES/volto.po +96 -32
  5. package/locales/de/LC_MESSAGES/volto.po +96 -32
  6. package/locales/eea.cca.pot +53 -0
  7. package/locales/el/LC_MESSAGES/volto.po +96 -32
  8. package/locales/en/LC_MESSAGES/volto.po +95 -32
  9. package/locales/es/LC_MESSAGES/volto.po +96 -32
  10. package/locales/et/LC_MESSAGES/volto.po +96 -32
  11. package/locales/fi/LC_MESSAGES/volto.po +96 -32
  12. package/locales/fr/LC_MESSAGES/volto.po +96 -32
  13. package/locales/ga/LC_MESSAGES/volto.po +96 -32
  14. package/locales/hr/LC_MESSAGES/volto.po +96 -32
  15. package/locales/hu/LC_MESSAGES/volto.po +96 -32
  16. package/locales/is/LC_MESSAGES/volto.po +96 -32
  17. package/locales/it/LC_MESSAGES/volto.po +96 -32
  18. package/locales/lt/LC_MESSAGES/volto.po +96 -32
  19. package/locales/lv/LC_MESSAGES/volto.po +95 -32
  20. package/locales/mt/LC_MESSAGES/volto.po +96 -32
  21. package/locales/nl/LC_MESSAGES/volto.po +96 -32
  22. package/locales/nn/LC_MESSAGES/volto.po +96 -32
  23. package/locales/pl/LC_MESSAGES/volto.po +96 -32
  24. package/locales/pt/LC_MESSAGES/volto.po +96 -32
  25. package/locales/ro/LC_MESSAGES/volto.po +96 -32
  26. package/locales/sk/LC_MESSAGES/volto.po +96 -32
  27. package/locales/sl/LC_MESSAGES/volto.po +96 -32
  28. package/locales/sv/LC_MESSAGES/volto.po +96 -32
  29. package/locales/tr/LC_MESSAGES/volto.po +96 -32
  30. package/locales/volto.pot +124 -5
  31. package/package.json +1 -1
  32. package/src/components/manage/Blocks/CountryMapHeatIndex/View.js +1 -1
  33. package/src/components/manage/Blocks/CountryMapObservatory/CountryMapObservatoryOLView.jsx +1 -1
  34. package/src/components/manage/Blocks/CountryMapProfile/OLView.jsx +2 -2
  35. package/src/components/theme/MissionSignatoryProfile/MissionSignatoryProfileView.jsx +1 -1
  36. package/src/helpers/country_map/countryMap.js +18 -10
  37. package/src/helpers/country_map/hocs.jsx +4 -4
  38. package/src/index.js +1 -0
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import geoJsonUrl from '@eeacms/volto-cca-policy/cntrg.data';
3
3
 
4
- // const projection = 'EPSG:4326';
5
- const projection = 'EPSG:3857';
4
+ const projection = 'EPSG:4326';
5
+ const projectionFlat = 'EPSG:3857';
6
6
 
7
- export const withGeoJsonData = (WrappedComponent) => {
7
+ export const withGeoJsonData = (showFlatMap) => (WrappedComponent) => {
8
8
  function Wrapper(props) {
9
9
  const [geofeatures, setGeofeatures] = React.useState();
10
10
  React.useEffect(() => {
@@ -20,7 +20,7 @@ export const withGeoJsonData = (WrappedComponent) => {
20
20
  <WrappedComponent
21
21
  {...props}
22
22
  geofeatures={geofeatures}
23
- projection={projection}
23
+ projection={showFlatMap ? projectionFlat : projection}
24
24
  />
25
25
  ) : null;
26
26
  }
package/src/index.js CHANGED
@@ -554,6 +554,7 @@ const applyConfig = (config) => {
554
554
  config.settings.initialReducersBlacklist = [
555
555
  ...config.settings.initialReducersBlacklist,
556
556
  'intl',
557
+ 'reduxAsyncConnect',
557
558
  // 'router',
558
559
  // 'content',
559
560
  ];