@kitconcept/volto-light-theme 7.0.0-beta.7 → 7.0.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,8 @@
1
- ## 7.0.0-beta.7 (2025-09-24)
2
-
3
- ### Feature
4
-
5
- - Make it possible for custom Summary components to disable being linked. @davisagli
1
+ ## 7.0.0 (2025-09-25)
6
2
 
7
3
  ### Bugfix
8
4
 
9
- - Enable add block button in accordion block @iRohitSingh [#668](https://github.com/kitconcept/volto-light-theme/pull/668)
10
- - Safely check for `voltolighttheme.theme` behavior on Theming component. @ericof [#671](https://github.com/kitconcept/volto-light-theme/pull/671)
11
- - Fix styles for person listing in Search block grid variation. @danalvrz
5
+ - Ensure the Refresh Content button correctly loads the preview image when using preview_image_link for Slider block. @iFlameing
6
+ - Last german literal fix: ALT-Text. @sneridagh
12
7
 
13
8
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,13 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 7.0.0 (2025-09-25)
12
+
13
+ ### Bugfix
14
+
15
+ - Ensure the Refresh Content button correctly loads the preview image when using preview_image_link for Slider block. @iFlameing
16
+ - Last german literal fix: ALT-Text. @sneridagh
17
+
11
18
  ## 7.0.0-beta.7 (2025-09-24)
12
19
 
13
20
  ### Feature
@@ -67,7 +67,7 @@ msgstr "Ausrichtung"
67
67
  #: components/Widgets/schema/footerLogosSchema
68
68
  #: components/Widgets/schema/iconLinkListSchema
69
69
  msgid "Alt text"
70
- msgstr "Alternative Text"
70
+ msgstr "ALT-Text"
71
71
 
72
72
  #. Default: "Ascending"
73
73
  #: components/Blocks/EventCalendar/Search/components/SortOn
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitconcept/volto-light-theme",
3
- "version": "7.0.0-beta.7",
3
+ "version": "7.0.0",
4
4
  "description": "Volto Light Theme by kitconcept",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -28,6 +28,16 @@ const messages = defineMessages({
28
28
  },
29
29
  });
30
30
 
31
+ function getImageField(resp) {
32
+ if (!resp) return null;
33
+
34
+ if (resp.preview_image_link) return 'preview_image_link';
35
+ if (resp.preview_image) return 'preview_image';
36
+ if (resp.image) return 'image';
37
+
38
+ return null;
39
+ }
40
+
31
41
  const SliderData = (props) => {
32
42
  const {
33
43
  block,
@@ -48,16 +58,20 @@ const SliderData = (props) => {
48
58
  '@type': resp?.['@type'],
49
59
  Description: resp?.description,
50
60
  Title: resp.title,
51
- hasPreviewImage: resp?.preview_image ? true : false,
61
+ hasPreviewImage: getImageField(resp) ? true : false,
52
62
  head_title: resp.head_title ?? null,
53
- image_field: resp?.preview_image
54
- ? 'preview_image'
55
- : resp?.image
56
- ? 'image'
57
- : null,
63
+ image_field: getImageField(resp),
58
64
  image_scales: {
59
65
  preview_image: [resp?.preview_image],
60
66
  image: [resp?.image],
67
+ preview_image_link: resp?.preview_image_link
68
+ ? [
69
+ {
70
+ ...resp?.preview_image_link?.['image_scales']?.image?.[0],
71
+ base_path: resp?.preview_image_link?.['@id'],
72
+ },
73
+ ]
74
+ : [],
61
75
  },
62
76
  title: resp.title,
63
77
  };