@graphcommerce/magento-wishlist 1.1.1 → 1.2.0

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,22 @@
1
1
  # @graphcommerce/magento-wishlist
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1482](https://github.com/graphcommerce-org/graphcommerce/pull/1482) [`b359fe252`](https://github.com/graphcommerce-org/graphcommerce/commit/b359fe252a50bb8195601ba97c3eef6a7be146ba) Thanks [@mikekeehnen](https://github.com/mikekeehnen)! - Added selectedOptions to AddToCart mutation
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`a9df81310`](https://github.com/graphcommerce-org/graphcommerce/commit/a9df81310c051876dd82fb2819105dece47cc213), [`b359fe252`](https://github.com/graphcommerce-org/graphcommerce/commit/b359fe252a50bb8195601ba97c3eef6a7be146ba), [`f167f9963`](https://github.com/graphcommerce-org/graphcommerce/commit/f167f99630966a7de43717937d43669e66132494)]:
12
+ - @graphcommerce/next-ui@4.8.1
13
+ - @graphcommerce/magento-product@4.4.0
14
+ - @graphcommerce/magento-cart@4.3.1
15
+ - @graphcommerce/magento-customer@4.3.2
16
+ - @graphcommerce/magento-product-configurable@4.1.7
17
+ - @graphcommerce/magento-store@4.2.5
18
+ - @graphcommerce/image@3.1.6
19
+
3
20
  ## 1.1.1
4
21
 
5
22
  ### Patch Changes
@@ -51,9 +51,9 @@ export function ProductAddToCart(
51
51
  return (
52
52
  <Box component='form' onSubmit={submitHandler} noValidate className={classes.root}>
53
53
  <Box
54
- sx={(theme) => ({
54
+ sx={{
55
55
  gridArea: 'itemQuantity',
56
- })}
56
+ }}
57
57
  >
58
58
  <TextInputNumber
59
59
  variant='outlined'
@@ -64,21 +64,21 @@ export function ProductAddToCart(
64
64
  helperText={formState.isSubmitted && formState.errors.quantity}
65
65
  disabled={formState.isSubmitting}
66
66
  size='small'
67
- sx={(theme) => ({
67
+ sx={{
68
68
  alignSelf: 'flex-start',
69
- })}
69
+ }}
70
70
  />
71
71
  </Box>
72
72
  {children}
73
73
  <Box
74
74
  className={classes.buttonWrapper}
75
- sx={(theme) => ({
75
+ sx={{
76
76
  gridArea: 'itemCartButton',
77
77
  alignSelf: 'flex-start',
78
78
  position: 'absolute',
79
79
  left: '0',
80
80
  bottom: '-35px',
81
- })}
81
+ }}
82
82
  >
83
83
  <Button
84
84
  type='submit'
@@ -1,3 +1,4 @@
1
+ import { InputMaybe } from '@graphcommerce/graphql-mesh'
1
2
  import { SxProps, Theme } from '@mui/material'
2
3
  import { PropsWithChildren } from 'react'
3
4
  import { ProductAddToCart } from './ProductAddToCart'
@@ -10,15 +11,16 @@ type OptionalProductWishlistParent = {
10
11
 
11
12
  export type WishlistItemProps = PropsWithChildren<WishlistItemProductFragment> & {
12
13
  sx?: SxProps<Theme>
14
+ selectedOptions?: InputMaybe<InputMaybe<string> | InputMaybe<string>[]> | undefined
13
15
  } & OptionalProductWishlistParent
14
16
 
15
17
  export function WishlistItem(props: WishlistItemProps) {
16
- const { sku, name, price_range } = props
18
+ const { sku, name, price_range, selectedOptions } = props
17
19
 
18
20
  return (
19
21
  <WishlistItemBase {...props}>
20
22
  <ProductAddToCart
21
- variables={{ sku: sku ?? '', quantity: 1 }}
23
+ variables={{ sku: sku ?? '', quantity: 1, selectedOptions }}
22
24
  name={name ?? ''}
23
25
  price={price_range.minimum_price.final_price}
24
26
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-wishlist",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -21,13 +21,13 @@
21
21
  "dependencies": {
22
22
  "@graphcommerce/graphql": "3.1.3",
23
23
  "@graphcommerce/graphql-mesh": "4.1.3",
24
- "@graphcommerce/image": "3.1.5",
25
- "@graphcommerce/magento-cart": "4.3.0",
26
- "@graphcommerce/magento-customer": "4.3.1",
27
- "@graphcommerce/magento-product": "4.3.6",
28
- "@graphcommerce/magento-product-configurable": "4.1.6",
29
- "@graphcommerce/magento-store": "4.2.4",
30
- "@graphcommerce/next-ui": "4.8.0"
24
+ "@graphcommerce/image": "3.1.6",
25
+ "@graphcommerce/magento-cart": "4.3.1",
26
+ "@graphcommerce/magento-customer": "4.3.2",
27
+ "@graphcommerce/magento-product": "4.4.0",
28
+ "@graphcommerce/magento-product-configurable": "4.1.7",
29
+ "@graphcommerce/magento-store": "4.2.5",
30
+ "@graphcommerce/next-ui": "4.8.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@lingui/react": "^3.13.2",