@graphcommerce/magento-product 11.0.0-canary.68 → 11.0.0-canary.70

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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.0.0-canary.70
4
+
5
+ ## 11.0.0-canary.69
6
+
7
+ ### Patch Changes
8
+
9
+ - [#2732](https://github.com/graphcommerce-org/graphcommerce/pull/2732) [`cba75a0`](https://github.com/graphcommerce-org/graphcommerce/commit/cba75a006d4efface5d1149e9cc6ebe3a9b5b9f8) - Added `imageQuality` to `graphcommerce.config.ts`. Choose the kind (`content` or `product`) with `quality` on `<Image>` or `imageUrl()`. `quality='content'` is for content images, such as CMS images, and is the default when no quality is given, with quality 75 in place of the previous 52. `quality='product'` is for product images from the Magento catalog, with quality 52. ([@bramvanderholst](https://github.com/bramvanderholst))
10
+
3
11
  ## 11.0.0-canary.68
4
12
 
5
13
  ## 11.0.0-canary.67
@@ -65,6 +65,7 @@ export function ProductListItemImage(props: ImageOrPlaceholderProps) {
65
65
  width={1}
66
66
  height={1}
67
67
  src={src}
68
+ quality='product'
68
69
  alt={alt ?? ''}
69
70
  {...image}
70
71
  className={classes?.image}
@@ -23,10 +23,11 @@ export function ProductPageGallery(props: ProductPageGalleryProps) {
23
23
  .map<MotionImageAspectProps<ProductVideoProps>>((item) => {
24
24
  const src = item.url ?? ''
25
25
  const alt = item.label || undefined
26
- if (item.__typename === 'ProductImage') return { src, alt, width, height }
26
+ if (item.__typename === 'ProductImage') return { src, alt, width, height, quality: 'product' }
27
27
  return {
28
28
  src,
29
29
  alt,
30
+ quality: 'product',
30
31
  width: 1280,
31
32
  height: 720,
32
33
  sx: { objectFit: 'cover' },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "11.0.0-canary.68",
5
+ "version": "11.0.0-canary.70",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,18 +18,18 @@
18
18
  "typescript": "6.0.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/ecommerce-ui": "^11.0.0-canary.68",
22
- "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.68",
23
- "@graphcommerce/framer-next-pages": "^11.0.0-canary.68",
24
- "@graphcommerce/framer-scroller": "^11.0.0-canary.68",
25
- "@graphcommerce/graphql": "^11.0.0-canary.68",
26
- "@graphcommerce/graphql-mesh": "^11.0.0-canary.68",
27
- "@graphcommerce/image": "^11.0.0-canary.68",
28
- "@graphcommerce/magento-cart": "^11.0.0-canary.68",
29
- "@graphcommerce/magento-store": "^11.0.0-canary.68",
30
- "@graphcommerce/next-ui": "^11.0.0-canary.68",
31
- "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.68",
32
- "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.68",
21
+ "@graphcommerce/ecommerce-ui": "^11.0.0-canary.70",
22
+ "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.70",
23
+ "@graphcommerce/framer-next-pages": "^11.0.0-canary.70",
24
+ "@graphcommerce/framer-scroller": "^11.0.0-canary.70",
25
+ "@graphcommerce/graphql": "^11.0.0-canary.70",
26
+ "@graphcommerce/graphql-mesh": "^11.0.0-canary.70",
27
+ "@graphcommerce/image": "^11.0.0-canary.70",
28
+ "@graphcommerce/magento-cart": "^11.0.0-canary.70",
29
+ "@graphcommerce/magento-store": "^11.0.0-canary.70",
30
+ "@graphcommerce/next-ui": "^11.0.0-canary.70",
31
+ "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.70",
32
+ "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.70",
33
33
  "@lingui/core": "^6",
34
34
  "@lingui/react": "^6",
35
35
  "@mui/material": "^7.0.0",