@eeacms/volto-group-block 4.3.6 → 4.3.7

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,8 +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
+ #### [4.3.7](https://github.com/eea/volto-group-block/compare/4.3.6...4.3.7)
8
+
9
+ - fix(countTextInBlocks): Don't count text if maxChars is not set - refs #153110 [`230298a`](https://github.com/eea/volto-group-block/commit/230298a23f9f67d76721b201cafdfd60c8be0f17)
10
+
7
11
  #### [4.3.6](https://github.com/eea/volto-group-block/compare/4.3.5...4.3.6)
8
12
 
13
+ > 30 June 2022
14
+
15
+ - develop [`#20`](https://github.com/eea/volto-group-block/pull/20)
9
16
 
10
17
  #### [4.3.5](https://github.com/eea/volto-group-block/compare/4.3.4...4.3.5)
11
18
 
package/Jenkinsfile CHANGED
@@ -6,7 +6,7 @@ pipeline {
6
6
  NAMESPACE = "@eeacms"
7
7
  SONARQUBE_TAGS = "volto.eea.europa.eu,forest.eea.europa.eu,www.eea.europa.eu-ims,climate-energy.eea.europa.eu,sustainability.eionet.europa.eu,biodiversity.europa.eu,clms.land.copernicus.eu,industry.eea.europa.eu,water.europa.eu-freshwater,demo-www.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu,circularity.eea.europa.eu"
8
8
  DEPENDENCIES = ""
9
- VOLTO = "alpha"
9
+ VOLTO = "16.0.0-alpha.14"
10
10
  }
11
11
 
12
12
  stages {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-group-block",
3
- "version": "4.3.6",
3
+ "version": "4.3.7",
4
4
  "description": "volto-group-block: Volto block to be used to group other blocks",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -80,6 +80,9 @@ const Edit = (props) => {
80
80
  */
81
81
  const countTextInBlocks = (blocksObject) => {
82
82
  let groupCharCount = 0;
83
+ if (!props.data.maxChars) {
84
+ return groupCharCount;
85
+ }
83
86
 
84
87
  Object.keys(blocksObject).forEach((blockId) => {
85
88
  const foundText = blocksObject[blockId]?.plaintext