@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 +6 -0
- package/package.json +2 -2
- package/src/lib/resolve-image.ts +4 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe-commerce/elsie",
|
|
3
|
-
"version": "1.8.
|
|
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": "
|
|
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",
|
package/src/lib/resolve-image.ts
CHANGED
|
@@ -89,13 +89,14 @@ export const generateSrcset = (
|
|
|
89
89
|
|
|
90
90
|
return Object.entries(BREAKPOINTS)
|
|
91
91
|
.map(([, value]) => {
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
})} ${
|
|
99
|
+
})} ${relativeWidth}w`;
|
|
99
100
|
})
|
|
100
101
|
.join(',\n');
|
|
101
102
|
};
|