@plone/volto 17.15.3 → 17.15.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
@@ -17,6 +17,12 @@ myst:
17
17
 
18
18
  <!-- towncrier release notes start -->
19
19
 
20
+ ## 17.15.4 (2024-03-06)
21
+
22
+ ### Bugfix
23
+
24
+ - Fix the introduction of a mutable (referenced) object when assigning the default inner `blocksConfig` object for the `grid` block, pass by value instead. sneridagh [#5850](https://github.com/plone/volto/issues/5850)
25
+
20
26
  ## 17.15.3 (2024-03-04)
21
27
 
22
28
  ### Bugfix
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "17.15.3",
12
+ "version": "17.15.4",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plone/volto-slate",
3
- "version": "17.15.3",
3
+ "version": "17.15.4",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -1,4 +1,5 @@
1
1
  import { defineMessages } from 'react-intl';
2
+ import { cloneDeep } from 'lodash';
2
3
 
3
4
  import ViewTitleBlock from '@plone/volto/components/manage/Blocks/Title/View';
4
5
  import ViewDescriptionBlock from '@plone/volto/components/manage/Blocks/Description/View';
@@ -519,7 +520,7 @@ const blocksConfig = {
519
520
  // for the grid block, since we need to modify how the inner teaser
520
521
  // block behave in it (= no schemaEnhancer fields for teasers inside a grid)
521
522
  // Afterwards, it can be further customized in add-ons using the same technique.
522
- blocksConfig.gridBlock.blocksConfig = { ...blocksConfig };
523
+ blocksConfig.gridBlock.blocksConfig = cloneDeep(blocksConfig);
523
524
  blocksConfig.gridBlock.blocksConfig.teaser = {
524
525
  ...blocksConfig.teaser,
525
526
  schemaEnhancer: gridTeaserDisableStylingSchema,