@adobe-commerce/elsie 1.8.0 → 1.8.1-alpha-20260331163906

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
@@ -1,5 +1,11 @@
1
1
  # @adobe-commerce/elsie
2
2
 
3
+ ## 1.8.1-alpha-20260331163906
4
+
5
+ ### Patch Changes
6
+
7
+ - e44f618: Fixed `srcset w` descriptors to use actual image widths instead of viewport breakpoints, preventing blurry product images.
8
+
3
9
  ## 1.8.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe-commerce/elsie",
3
- "version": "1.8.0",
3
+ "version": "1.8.1-alpha-20260331163906",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "description": "Domain Package SDK",
6
6
  "engines": {
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@adobe-commerce/event-bus": "~1.0.1",
32
32
  "@adobe-commerce/fetch-graphql": "~1.2.3",
33
- "@adobe-commerce/recaptcha": "~1.0.3",
33
+ "@adobe-commerce/recaptcha": "1.1.0-alpha-202603181630",
34
34
  "@adobe-commerce/storefront-design": "~1.0.0",
35
35
  "@dropins/build-tools": "~1.1.0",
36
36
  "preact": "~10.22.1",
@@ -89,13 +89,14 @@ export const generateSrcset = (
89
89
 
90
90
  return Object.entries(BREAKPOINTS)
91
91
  .map(([, value]) => {
92
- // calculate breakpoints width
93
- const relativeWidth = (options.width * value) / BREAKPOINTS.xxlarge;
92
+ const relativeWidth = Math.round(
93
+ (options.width * value) / BREAKPOINTS.xxlarge
94
+ );
94
95
 
95
96
  return `${generateSrcsetUrl({
96
97
  ...options,
97
98
  width: relativeWidth,
98
- })} ${value}w`;
99
+ })} ${relativeWidth}w`;
99
100
  })
100
101
  .join(',\n');
101
102
  };