@graphcommerce/magento-product-configurable 4.2.1 → 4.2.4

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,39 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`396b5de5d`](https://github.com/graphcommerce-org/graphcommerce/commit/396b5de5d50c7b8f59bf636807e7a4b50f14e0b2)]:
8
+ - @graphcommerce/graphql@3.4.8
9
+ - @graphcommerce/magento-cart@4.7.3
10
+ - @graphcommerce/magento-cart-items@3.1.3
11
+ - @graphcommerce/magento-category@4.5.3
12
+ - @graphcommerce/magento-customer@4.10.3
13
+ - @graphcommerce/magento-product@4.5.3
14
+ - @graphcommerce/magento-product-simple@4.0.51
15
+ - @graphcommerce/magento-store@4.2.31
16
+
17
+ ## 4.2.3
18
+
19
+ ### Patch Changes
20
+
21
+ - [#1617](https://github.com/graphcommerce-org/graphcommerce/pull/1617) [`b6427e375`](https://github.com/graphcommerce-org/graphcommerce/commit/b6427e37597b2d0970cc0a14556d8517f2754b73) Thanks [@paales](https://github.com/paales)! - Solve issue where the ProductListItemConfigurable would result in a wrong URL
22
+
23
+ ## 4.2.2
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [[`755d2cf83`](https://github.com/graphcommerce-org/graphcommerce/commit/755d2cf83343a5ad3d61063eff595d821de360aa), [`dc7f2dda4`](https://github.com/graphcommerce-org/graphcommerce/commit/dc7f2dda40ff8572fc11161de6eb62ca13e720dd)]:
28
+ - @graphcommerce/next-ui@4.23.0
29
+ - @graphcommerce/magento-cart@4.7.2
30
+ - @graphcommerce/magento-cart-items@3.1.2
31
+ - @graphcommerce/magento-category@4.5.2
32
+ - @graphcommerce/magento-customer@4.10.2
33
+ - @graphcommerce/magento-product@4.5.2
34
+ - @graphcommerce/magento-store@4.2.30
35
+ - @graphcommerce/magento-product-simple@4.0.50
36
+
3
37
  ## 4.2.1
4
38
 
5
39
  ### Patch Changes
@@ -9,7 +9,7 @@ import {
9
9
  TextInputNumber,
10
10
  } from '@graphcommerce/next-ui'
11
11
  import { Trans } from '@lingui/react'
12
- import { Divider, Typography, Alert, Box, SxProps, Theme, useMediaQuery } from '@mui/material'
12
+ import { Divider, Typography, Alert, Box, SxProps, Theme } from '@mui/material'
13
13
  import PageLink from 'next/link'
14
14
  import React from 'react'
15
15
  import { Selected, useConfigurableContext } from '../ConfigurableContext/ConfigurableContext'
@@ -62,13 +62,10 @@ export function ProductListItemConfigurable(props: ProdustListItemConfigurablePr
62
62
  ).length,
63
63
  )
64
64
 
65
- const productProps = matchingVariants?.[0]?.product
66
- ? { ...configurableProduct, ...matchingVariants?.[0]?.product }
67
- : configurableProduct
68
-
69
65
  return (
70
66
  <ProductListItem
71
- {...productProps}
67
+ {...configurableProduct}
68
+ small_image={matchingVariants?.[0]?.product?.small_image ?? configurableProduct.small_image}
72
69
  topLeft={
73
70
  <>
74
71
  {topLeft}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product-configurable",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.2.1",
5
+ "version": "4.2.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,17 +19,17 @@
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/graphql": "3.4.7",
22
+ "@graphcommerce/graphql": "3.4.8",
23
23
  "@graphcommerce/graphql-mesh": "4.1.9",
24
24
  "@graphcommerce/image": "3.1.9",
25
- "@graphcommerce/magento-cart": "4.7.1",
26
- "@graphcommerce/magento-cart-items": "3.1.1",
27
- "@graphcommerce/magento-category": "4.5.1",
28
- "@graphcommerce/magento-customer": "4.10.1",
29
- "@graphcommerce/magento-product": "4.5.1",
30
- "@graphcommerce/magento-product-simple": "4.0.49",
31
- "@graphcommerce/magento-store": "4.2.29",
32
- "@graphcommerce/next-ui": "4.22.0",
25
+ "@graphcommerce/magento-cart": "4.7.3",
26
+ "@graphcommerce/magento-cart-items": "3.1.3",
27
+ "@graphcommerce/magento-category": "4.5.3",
28
+ "@graphcommerce/magento-customer": "4.10.3",
29
+ "@graphcommerce/magento-product": "4.5.3",
30
+ "@graphcommerce/magento-product-simple": "4.0.51",
31
+ "@graphcommerce/magento-store": "4.2.31",
32
+ "@graphcommerce/next-ui": "4.23.0",
33
33
  "@graphcommerce/react-hook-form": "3.3.2"
34
34
  },
35
35
  "peerDependencies": {