@kitconcept/volto-light-theme 7.3.0 → 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,13 +1,11 @@
1
- ## 7.3.0 (2025-10-07)
1
+ ## 7.4.0 (2025-10-28)
2
2
 
3
- ### Bugfix
3
+ ### Feature
4
4
 
5
- - Pass down items to `Card` component, so it can pass it down to `UniversalLink`. @sneridagh [#684](https://github.com/kitconcept/volto-light-theme/pull/684)
6
- - Added addressable classNames to FileSummary headline. @sneridagh [#686](https://github.com/kitconcept/volto-light-theme/pull/686)
7
- - Update socialmedia add-on to 2.0.0a10 and Volto to 18.27.3. @sneridagh
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)
8
6
 
9
- ### Internal
7
+ ### Bugfix
10
8
 
11
- - Replace "head title" with "kicker" in example content. @davisagli
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)
12
10
 
13
11
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,22 @@
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
+
21
+ ## 7.3.1 (2025-10-08)
22
+
23
+ ### Bugfix
24
+
25
+ - Several fixes. Update to use Volto 18.28.0. @sneridagh
26
+
11
27
  ## 7.3.0 (2025-10-07)
12
28
 
13
29
  ### Bugfix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/volto-light-theme",
3
- "version": "7.3.0",
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" />