@graphcommerce/magento-cart-coupon 9.0.4-canary.9 → 9.0.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,28 +1,18 @@
1
1
  # Change Log
2
2
 
3
- ## 9.0.4-canary.9
3
+ ## 9.0.4
4
4
 
5
- ### Patch Changes
6
-
7
- - [`3b45e14`](https://github.com/graphcommerce-org/graphcommerce/commit/3b45e1426da4dd4caf1cc76f0707af07474ffd2e) - Forward props to CouponAccordion ([@paales](https://github.com/paales))
8
-
9
- ## 9.0.4-canary.8
10
-
11
- ## 9.0.4-canary.7
12
-
13
- ## 9.0.4-canary.6
14
-
15
- ## 9.0.4-canary.5
5
+ ## 9.0.3
16
6
 
17
- ## 9.0.4-canary.4
7
+ ## 9.0.3-canary.0
18
8
 
19
- ## 9.0.4-canary.3
9
+ ## 9.0.2
20
10
 
21
- ## 9.0.4-canary.2
11
+ ## 9.0.2-canary.0
22
12
 
23
- ## 9.0.4-canary.1
13
+ ## 9.0.1
24
14
 
25
- ## 9.0.4-canary.0
15
+ ## 9.0.1-canary.1
26
16
 
27
17
  ## 9.0.0
28
18
 
@@ -1,19 +1,19 @@
1
1
  import { useCartQuery } from '@graphcommerce/magento-cart'
2
2
  import {
3
+ IconSvg,
3
4
  breakpointVal,
4
5
  extendableComponent,
5
6
  iconChevronDown,
6
- IconSvg,
7
7
  } from '@graphcommerce/next-ui'
8
8
  import { Trans } from '@lingui/react'
9
- import type { AccordionProps, SxProps, Theme } from '@mui/material'
9
+ import type { SxProps, Theme } from '@mui/material'
10
10
  import { Accordion, AccordionDetails, AccordionSummary } from '@mui/material'
11
11
  import { useState } from 'react'
12
12
  import { ApplyCouponForm } from '../ApplyCouponForm/ApplyCouponForm'
13
13
  import { RemoveCouponForm } from '../RemoveCouponForm/RemoveCouponForm'
14
14
  import { GetCouponDocument } from './GetCoupon.gql'
15
15
 
16
- export type CouponAccordionProps = Omit<AccordionProps, 'expanded' | 'onChange' | 'children'>
16
+ export type CouponAccordionProps = { sx?: SxProps<Theme> }
17
17
 
18
18
  type OwnerState = { open: boolean; disabled: boolean }
19
19
  const name = 'CouponAccordion'
@@ -21,7 +21,7 @@ const parts = ['accordion', 'button', 'couponFormWrap'] as const
21
21
  const { withState } = extendableComponent<OwnerState, typeof name, typeof parts>(name, parts)
22
22
 
23
23
  export function CouponAccordion(props: CouponAccordionProps) {
24
- const { sx = [], ...rest } = props
24
+ const { sx = [] } = props
25
25
  const { data } = useCartQuery(GetCouponDocument)
26
26
  const [open, setOpen] = useState<boolean>(false)
27
27
 
@@ -53,7 +53,6 @@ export function CouponAccordion(props: CouponAccordionProps) {
53
53
  }),
54
54
  ...(Array.isArray(sx) ? sx : [sx]),
55
55
  ]}
56
- {...rest}
57
56
  >
58
57
  <AccordionSummary
59
58
  onClick={(e) => e.preventDefault()}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-coupon",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.4-canary.9",
5
+ "version": "9.0.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,16 +12,16 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.4-canary.9",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.9",
17
- "@graphcommerce/graphql": "^9.0.4-canary.9",
18
- "@graphcommerce/image": "^9.0.4-canary.9",
19
- "@graphcommerce/magento-cart": "^9.0.4-canary.9",
20
- "@graphcommerce/magento-store": "^9.0.4-canary.9",
21
- "@graphcommerce/next-ui": "^9.0.4-canary.9",
22
- "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.9",
23
- "@graphcommerce/react-hook-form": "^9.0.4-canary.9",
24
- "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.9",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.4",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.4",
17
+ "@graphcommerce/graphql": "^9.0.4",
18
+ "@graphcommerce/image": "^9.0.4",
19
+ "@graphcommerce/magento-cart": "^9.0.4",
20
+ "@graphcommerce/magento-store": "^9.0.4",
21
+ "@graphcommerce/next-ui": "^9.0.4",
22
+ "@graphcommerce/prettier-config-pwa": "^9.0.4",
23
+ "@graphcommerce/react-hook-form": "^9.0.4",
24
+ "@graphcommerce/typescript-config-pwa": "^9.0.4",
25
25
  "@lingui/core": "^4.2.1",
26
26
  "@lingui/macro": "^4.2.1",
27
27
  "@lingui/react": "^4.2.1",