@kitconcept/volto-light-theme 7.3.1 → 7.4.0

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.draft CHANGED
@@ -1,7 +1,11 @@
1
- ## 7.3.1 (2025-10-08)
1
+ ## 7.4.0 (2025-10-28)
2
+
3
+ ### Feature
4
+
5
+ - To reduce the size of the main VLT repository, snapshots for visual regression testing are now stored in a separate repository (kitconcept/vlt-visual-regression). @sneridagh [#690](https://github.com/kitconcept/volto-light-theme/pull/690)
2
6
 
3
7
  ### Bugfix
4
8
 
5
- - Several fixes. Update to use Volto 18.28.0. @sneridagh
9
+ - Fixed corner case when creating an element in the ObjectList widget the element was not being syncronized with the view part. @sneridagh [#696](https://github.com/kitconcept/volto-light-theme/pull/696)
6
10
 
7
11
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,16 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 7.4.0 (2025-10-28)
12
+
13
+ ### Feature
14
+
15
+ - To reduce the size of the main VLT repository, snapshots for visual regression testing are now stored in a separate repository (kitconcept/vlt-visual-regression). @sneridagh [#690](https://github.com/kitconcept/volto-light-theme/pull/690)
16
+
17
+ ### Bugfix
18
+
19
+ - Fixed corner case when creating an element in the ObjectList widget the element was not being syncronized with the view part. @sneridagh [#696](https://github.com/kitconcept/volto-light-theme/pull/696)
20
+
11
21
  ## 7.3.1 (2025-10-08)
12
22
 
13
23
  ### Bugfix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/volto-light-theme",
3
- "version": "7.3.1",
3
+ "version": "7.4.0",
4
4
  "description": "Volto Light Theme by kitconcept",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -45,7 +45,7 @@
45
45
  "release-it": "^19.0.3",
46
46
  "typescript": "^5.7.3",
47
47
  "vitest": "^3.1.2",
48
- "@plone/types": "1.4.5"
48
+ "@plone/types": "2.0.0-alpha.7"
49
49
  },
50
50
  "dependencies": {
51
51
  "@dnd-kit/core": "6.0.8",
@@ -57,7 +57,7 @@
57
57
  "react-aria-components": "^1.7.0",
58
58
  "react-colorful": "^5.6.1",
59
59
  "uuid": "^11.0.0",
60
- "@plone/components": "^3.0.2"
60
+ "@plone/components": "^4.0.0-alpha.1"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@eeacms/volto-accordion-block": "^10.4.6",
@@ -215,8 +215,14 @@ const ObjectListWidget = (props: ObjectListWidgetProps) => {
215
215
  intl,
216
216
  });
217
217
 
218
- onChange(id, [...(value || []), dataWithDefaults]);
219
- setActiveObject(value?.length || 0);
218
+ const newValue = [...(value || []), dataWithDefaults];
219
+
220
+ onChange(id, newValue);
221
+
222
+ // Set active the new object ensuring the state is updated after adding the new item
223
+ setTimeout(() => {
224
+ setActiveObject(newValue.length - 1);
225
+ }, 0);
220
226
  }}
221
227
  >
222
228
  <Icon name={addSVG} size="18px" />