@graphcommerce/image 5.2.0-canary.6 → 5.2.0-canary.8
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 +4 -0
- package/components/Image.tsx +2 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/components/Image.tsx
CHANGED
|
@@ -247,7 +247,7 @@ const Image = React.forwardRef<HTMLImageElement, ImageProps>(
|
|
|
247
247
|
(
|
|
248
248
|
{
|
|
249
249
|
src,
|
|
250
|
-
sizes:
|
|
250
|
+
sizes: sizesincoming,
|
|
251
251
|
unoptimized = false,
|
|
252
252
|
loading,
|
|
253
253
|
layout = 'responsive',
|
|
@@ -277,9 +277,7 @@ const Image = React.forwardRef<HTMLImageElement, ImageProps>(
|
|
|
277
277
|
}, [configContext])
|
|
278
278
|
|
|
279
279
|
const sizesOrig =
|
|
280
|
-
layout === 'fixed' && width && !
|
|
281
|
-
? (`${width}px` as SizesString)
|
|
282
|
-
: sizesIncomming
|
|
280
|
+
layout === 'fixed' && width && !sizesincoming ? (`${width}px` as SizesString) : sizesincoming
|
|
283
281
|
|
|
284
282
|
const sizes = generateSizesString(sizesOrig) || generateSizesString(DEFAULT_SIZES)
|
|
285
283
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/image",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "5.2.0-canary.
|
|
5
|
+
"version": "5.2.0-canary.8",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "tsc -W"
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@graphcommerce/framer-utils": "5.2.0-canary.
|
|
18
|
+
"@graphcommerce/framer-utils": "5.2.0-canary.8"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@graphcommerce/eslint-config-pwa": "5.2.0-canary.
|
|
22
|
-
"@graphcommerce/prettier-config-pwa": "5.2.0-canary.
|
|
23
|
-
"@graphcommerce/typescript-config-pwa": "5.2.0-canary.
|
|
21
|
+
"@graphcommerce/eslint-config-pwa": "5.2.0-canary.8",
|
|
22
|
+
"@graphcommerce/prettier-config-pwa": "5.2.0-canary.8",
|
|
23
|
+
"@graphcommerce/typescript-config-pwa": "5.2.0-canary.8"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@mui/material": "^5.10.16",
|