@graphcommerce/magento-wishlist 1.2.2 → 1.3.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,53 @@
1
1
  # @graphcommerce/magento-wishlist
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1505](https://github.com/graphcommerce-org/graphcommerce/pull/1505) [`d5d9550fe`](https://github.com/graphcommerce-org/graphcommerce/commit/d5d9550fe8991a90e432d8c3bd6e1be117acd18f) Thanks [@timhofman](https://github.com/timhofman)! - enable to pass through button props for iconButton
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`de6781908`](https://github.com/graphcommerce-org/graphcommerce/commit/de6781908cbf514b9fd225aa1407fa1385c8e53b), [`0ab7c5465`](https://github.com/graphcommerce-org/graphcommerce/commit/0ab7c5465441cba9bf8cd185a6790ce2f443f4ed), [`711fa6e04`](https://github.com/graphcommerce-org/graphcommerce/commit/711fa6e04519bbe91825fec7e1714277c1a8fa68)]:
12
+ - @graphcommerce/magento-product-configurable@4.1.13
13
+ - @graphcommerce/magento-product@4.4.6
14
+ - @graphcommerce/next-ui@4.8.4
15
+ - @graphcommerce/magento-customer@4.5.2
16
+ - @graphcommerce/magento-cart@4.4.2
17
+ - @graphcommerce/magento-store@4.2.9
18
+
19
+ ## 1.2.5
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`d205b037f`](https://github.com/graphcommerce-org/graphcommerce/commit/d205b037fee82b8c03993f2c586f477e826093bf)]:
24
+ - @graphcommerce/magento-cart@4.4.1
25
+ - @graphcommerce/magento-customer@4.5.1
26
+ - @graphcommerce/magento-product@4.4.5
27
+ - @graphcommerce/magento-product-configurable@4.1.12
28
+
29
+ ## 1.2.4
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [[`bed806ddd`](https://github.com/graphcommerce-org/graphcommerce/commit/bed806dddd7e025806a69798ef9587aa165d392f)]:
34
+ - @graphcommerce/graphql@3.2.0
35
+ - @graphcommerce/magento-cart@4.4.0
36
+ - @graphcommerce/magento-customer@4.5.0
37
+ - @graphcommerce/magento-product-configurable@4.1.11
38
+ - @graphcommerce/magento-product@4.4.4
39
+ - @graphcommerce/magento-store@4.2.8
40
+
41
+ ## 1.2.3
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies []:
46
+ - @graphcommerce/magento-cart@4.3.4
47
+ - @graphcommerce/magento-customer@4.4.2
48
+ - @graphcommerce/magento-product-configurable@4.1.10
49
+ - @graphcommerce/magento-product@4.4.3
50
+
3
51
  ## 1.2.2
4
52
 
5
53
  ### Patch Changes
@@ -14,7 +14,7 @@ import {
14
14
  } from '@graphcommerce/next-ui'
15
15
  import { i18n } from '@lingui/core'
16
16
  import { Trans } from '@lingui/react'
17
- import { SxProps, Theme, IconButton, Box } from '@mui/material'
17
+ import { SxProps, Theme, IconButton, Box, IconButtonProps } from '@mui/material'
18
18
  import PageLink from 'next/link'
19
19
  import { useState, useEffect } from 'react'
20
20
  import { useWishlistEnabled } from '../../hooks'
@@ -31,6 +31,7 @@ const ignoreProductWishlistStatus =
31
31
  export type ProductWishlistChipProps = ProductWishlistChipFragment & { sx?: SxProps<Theme> } & {
32
32
  selectedOptions?: string[]
33
33
  showFeedbackMessage?: boolean
34
+ buttonProps?: IconButtonProps
34
35
  }
35
36
 
36
37
  const compName = 'ProductWishlistChipBase' as const
@@ -38,7 +39,7 @@ const parts = ['root', 'wishlistIcon', 'wishlistIconActive', 'wishlistButton'] a
38
39
  const { classes } = extendableComponent(compName, parts)
39
40
 
40
41
  export function ProductWishlistChipBase(props: ProductWishlistChipProps) {
41
- const { name, sku, showFeedbackMessage, selectedOptions = [], sx = [] } = props
42
+ const { name, sku, showFeedbackMessage, selectedOptions = [], buttonProps, sx = [] } = props
42
43
 
43
44
  const [inWishlist, setInWishlist] = useState(false)
44
45
  const [displayMessageBar, setDisplayMessageBar] = useState(false)
@@ -170,6 +171,7 @@ export function ProductWishlistChipBase(props: ProductWishlistChipProps) {
170
171
  onMouseDown={preventAnimationBubble}
171
172
  size='small'
172
173
  className={classes.wishlistButton}
174
+ {...buttonProps}
173
175
  sx={[
174
176
  (theme) => ({
175
177
  padding: theme.spacings.xxs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-wishlist",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -19,15 +19,15 @@
19
19
  "@playwright/test": "^1.21.1"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/graphql": "3.1.3",
22
+ "@graphcommerce/graphql": "3.2.0",
23
23
  "@graphcommerce/graphql-mesh": "4.1.3",
24
24
  "@graphcommerce/image": "3.1.6",
25
- "@graphcommerce/magento-cart": "4.3.3",
26
- "@graphcommerce/magento-customer": "4.4.1",
27
- "@graphcommerce/magento-product": "4.4.2",
28
- "@graphcommerce/magento-product-configurable": "4.1.9",
29
- "@graphcommerce/magento-store": "4.2.7",
30
- "@graphcommerce/next-ui": "4.8.3"
25
+ "@graphcommerce/magento-cart": "4.4.2",
26
+ "@graphcommerce/magento-customer": "4.5.2",
27
+ "@graphcommerce/magento-product": "4.4.6",
28
+ "@graphcommerce/magento-product-configurable": "4.1.13",
29
+ "@graphcommerce/magento-store": "4.2.9",
30
+ "@graphcommerce/next-ui": "4.8.4"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@lingui/react": "^3.13.2",