@eeacms/volto-clms-theme 1.1.50 → 1.1.51

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,11 +4,13 @@ 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
- ### [1.1.50](https://github.com/eea/volto-clms-theme/compare/1.1.49...1.1.50) - 26 September 2023
7
+ ### [1.1.51](https://github.com/eea/volto-clms-theme/compare/1.1.50...1.1.51) - 26 September 2023
8
8
 
9
9
  #### :hammer_and_wrench: Others
10
10
 
11
- - add flattenToAppURL to card images [Ion Lizarazu - [`5982aed`](https://github.com/eea/volto-clms-theme/commit/5982aed9e4d9f481c7bc283e5f82b65f9b8fc8bb)]
11
+ - add flattenToAppURL [Mikel Larreategi - [`b438793`](https://github.com/eea/volto-clms-theme/commit/b438793b0db200bc874a0275d8dd323c38332ef8)]
12
+ ### [1.1.50](https://github.com/eea/volto-clms-theme/compare/1.1.49...1.1.50) - 26 September 2023
13
+
12
14
  ### [1.1.49](https://github.com/eea/volto-clms-theme/compare/1.1.48...1.1.49) - 25 September 2023
13
15
 
14
16
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.1.50",
3
+ "version": "1.1.51",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -5,6 +5,7 @@ import 'slick-carousel/slick/slick.css';
5
5
  import 'slick-carousel/slick/slick-theme.css';
6
6
  import './styles.less';
7
7
  import { ConditionalLink } from '@plone/volto/components';
8
+ import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
8
9
 
9
10
  const CclHomeUsersBlockView = (props) => {
10
11
  const settings = {
@@ -55,7 +56,9 @@ const CclHomeUsersBlockView = (props) => {
55
56
  <div className="ccl-list-item-image">
56
57
  {card?.image?.url ? (
57
58
  <img
58
- src={`${card.image.url}/@@images/image/teaser`}
59
+ src={flattenToAppURL(
60
+ `${card.image.url}/@@images/image/teaser`,
61
+ )}
59
62
  alt={card.image.alt}
60
63
  {...loading}
61
64
  />
@@ -63,7 +66,9 @@ const CclHomeUsersBlockView = (props) => {
63
66
  card.productUrl.length > 0 &&
64
67
  card.productUrl[0].image_field ? (
65
68
  <img
66
- src={`${card.productUrl[0]['@id']}/@@images/${card.productUrl[0].image_field}/preview`}
69
+ src={flattenToAppURL(
70
+ `${card.productUrl[0]['@id']}/@@images/${card.productUrl[0].image_field}/preview`,
71
+ )}
67
72
  alt={card?.productUrl[0].title || 'Placeholder'}
68
73
  {...loading}
69
74
  />