@eeacms/volto-cca-policy 0.1.3 → 0.1.4

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,14 @@ 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
- ### [0.1.3](https://github.com/eea/volto-cca-policy/compare/0.1.2...0.1.3) - 22 December 2022
7
+ ### [0.1.4](https://github.com/eea/volto-cca-policy/compare/0.1.3...0.1.4) - 13 January 2023
8
8
 
9
9
  #### :hammer_and_wrench: Others
10
10
 
11
- - Refs #158294 - Fix languages list. [GhitaB - [`a2386cd`](https://github.com/eea/volto-cca-policy/commit/a2386cd2ca7ba8bdbcc778223516927bf96b0b74)]
11
+ - Refs #158294 - Enable volto-embed (index.js is used, not policy.js). [GhitaB - [`55eecd1`](https://github.com/eea/volto-cca-policy/commit/55eecd1e58f9c9e987cb90eed4b0d02e7f22d3f9)]
12
+ - Refs #158294 - Enable volto-embed. [GhitaB - [`873ed39`](https://github.com/eea/volto-cca-policy/commit/873ed399cd02bd8c11b2006ea13d6dfc854c3395)]
13
+ ### [0.1.3](https://github.com/eea/volto-cca-policy/compare/0.1.2...0.1.3) - 22 December 2022
14
+
12
15
  ### [0.1.2](https://github.com/eea/volto-cca-policy/compare/0.1.1...0.1.2) - 16 December 2022
13
16
 
14
17
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -8,6 +8,11 @@ const applyConfig = (config) => {
8
8
  // ) || ['en'];
9
9
  config.settings.supportedLanguages = ['en', 'de', 'fr', 'es', 'it'];
10
10
 
11
+ // Enable volto-embed
12
+ if (config.blocks.blocksConfig.maps) {
13
+ config.blocks.blocksConfig.maps.restricted = false;
14
+ }
15
+
11
16
  return config;
12
17
  };
13
18
 
package/src/policy.js CHANGED
@@ -85,6 +85,11 @@ const applyConfig = (config) => {
85
85
  config.blocks.blocksConfig.dividerBlock.mostUsed = true;
86
86
  }
87
87
 
88
+ // Enable volto-embed
89
+ if (config.blocks.blocksConfig.maps) {
90
+ config.blocks.blocksConfig.maps.restricted = false;
91
+ }
92
+
88
93
  // Call to Action
89
94
  if (config.blocks.blocksConfig.callToActionBlock) {
90
95
  config.blocks.blocksConfig.callToActionBlock.mostUsed = true;