@eeacms/volto-n2k 1.0.29 → 1.0.31

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 (33) hide show
  1. package/CHANGELOG.md +16 -2
  2. package/jest-addon.config.js +2 -2
  3. package/package.json +1 -1
  4. package/src/components/manage/Blocks/BubbleChart/Chart.jsx +0 -5
  5. package/src/components/manage/Blocks/CDDACountryProfileMap/Edit.jsx +34 -0
  6. package/src/components/manage/Blocks/CDDACountryProfileMap/View.jsx +208 -0
  7. package/src/components/manage/Blocks/CDDACountryProfileMap/index.js +24 -0
  8. package/src/components/manage/Blocks/CDDACountryProfileMap/schema.js +19 -0
  9. package/src/components/manage/Blocks/CDDACountryProfileMap/style.less +240 -0
  10. package/src/components/manage/Blocks/CddaShape/View.jsx +1 -2
  11. package/src/components/manage/Blocks/ExploreHabitats/View.jsx +1 -2
  12. package/src/components/manage/Blocks/ExploreSites/View.jsx +1 -1
  13. package/src/components/manage/Blocks/ExploreSpecies/View.jsx +1 -1
  14. package/src/components/manage/Blocks/HabitatDistribution/View.jsx +1 -1
  15. package/src/components/manage/Blocks/HabitatProtectedSites/View.jsx +1 -1
  16. package/src/components/manage/Blocks/HabitatsBanner/View.jsx +3 -0
  17. package/src/components/manage/Blocks/Landing/Edit.jsx +6 -2
  18. package/src/components/manage/Blocks/N2KCountryProfileMap/Edit.jsx +34 -0
  19. package/src/components/manage/Blocks/N2KCountryProfileMap/View.jsx +165 -0
  20. package/src/components/manage/Blocks/N2KCountryProfileMap/index.js +24 -0
  21. package/src/components/manage/Blocks/N2KCountryProfileMap/schema.js +19 -0
  22. package/src/components/manage/Blocks/N2KCountryProfileMap/style.less +240 -0
  23. package/src/components/manage/Blocks/SiteProtectedSpecies/style.less +1 -1
  24. package/src/components/manage/Blocks/SiteShape/View.jsx +1 -2
  25. package/src/components/manage/Blocks/SiteSpeciesList/View.jsx +1 -2
  26. package/src/components/manage/Blocks/SpeciesBanner/View.jsx +3 -0
  27. package/src/components/manage/Blocks/SpeciesClassification/View.jsx +0 -2
  28. package/src/components/manage/Blocks/SpeciesDistribution/View.jsx +1 -1
  29. package/src/components/manage/Blocks/SpeciesProtectedSites/View.jsx +1 -1
  30. package/src/components/manage/Blocks/StackedBarChart/Chart.jsx +0 -6
  31. package/src/components/theme/Sitemap/Sitemap.jsx +1 -2
  32. package/src/helpers.js +3 -3
  33. package/src/index.js +4 -2
package/src/index.js CHANGED
@@ -42,13 +42,13 @@ import installSpeciesDistribution from './components/manage/Blocks/SpeciesDistri
42
42
  import installSpeciesProtectedSites from './components/manage/Blocks/SpeciesProtectedSites';
43
43
  import installStackedBarChart from './components/manage/Blocks/StackedBarChart';
44
44
  import installTilesImages from './components/manage/Blocks/TilesImages';
45
+ import installN2KCountryProfileMap from './components/manage/Blocks/N2KCountryProfileMap';
46
+ import installCDDACountryProfileMap from './components/manage/Blocks/CDDACountryProfileMap';
45
47
 
46
48
  import { LINK } from '@plone/volto-slate/constants';
47
49
 
48
50
  import { gridSizes, variants } from './grid';
49
51
 
50
- // import './less/styles.less';
51
-
52
52
  Array.prototype.sortByProperty = function (property, order = 'ASC') {
53
53
  return this.sort((a, b) => {
54
54
  if (a[property] < b[property]) return order === 'ASC' ? -1 : 1;
@@ -158,6 +158,8 @@ const applyConfig = (config) => {
158
158
  installSpeciesProtectedSites,
159
159
  installStackedBarChart,
160
160
  installTilesImages,
161
+ installN2KCountryProfileMap,
162
+ installCDDACountryProfileMap,
161
163
  ].reduce((acc, apply) => apply(acc), config);
162
164
  };
163
165