@graphcommerce/magento-cart-coupon 3.0.5 → 3.0.8
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,42 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5), [`22ff9df16`](https://github.com/graphcommerce-org/graphcommerce/commit/22ff9df1677742ae8e07d9b7e5b12fbb487580dc)]:
|
|
10
|
+
- @graphcommerce/graphql@3.0.7
|
|
11
|
+
- @graphcommerce/image@3.1.3
|
|
12
|
+
- @graphcommerce/magento-cart@4.2.3
|
|
13
|
+
- @graphcommerce/magento-store@4.1.5
|
|
14
|
+
- @graphcommerce/next-ui@4.5.1
|
|
15
|
+
- @graphcommerce/react-hook-form@3.0.7
|
|
16
|
+
|
|
17
|
+
## 3.0.7
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a)]:
|
|
24
|
+
- @graphcommerce/graphql@3.0.6
|
|
25
|
+
- @graphcommerce/next-ui@4.5.0
|
|
26
|
+
- @graphcommerce/image@3.1.2
|
|
27
|
+
- @graphcommerce/magento-cart@4.2.2
|
|
28
|
+
- @graphcommerce/magento-store@4.1.4
|
|
29
|
+
- @graphcommerce/react-hook-form@3.0.6
|
|
30
|
+
|
|
31
|
+
## 3.0.6
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- [#1345](https://github.com/graphcommerce-org/graphcommerce/pull/1345) [`eee3c867d`](https://github.com/graphcommerce-org/graphcommerce/commit/eee3c867d0c56401b4290862917a2e34cea92ffe) Thanks [@NickdeK](https://github.com/NickdeK)! - Changed active coupon element to Chip and fixed alignment.
|
|
36
|
+
|
|
37
|
+
- Updated dependencies [[`b76d0892a`](https://github.com/graphcommerce-org/graphcommerce/commit/b76d0892a11bd916aefd46ba72c2da00e38ce45b)]:
|
|
38
|
+
- @graphcommerce/next-ui@4.3.2
|
|
39
|
+
|
|
3
40
|
## 3.0.5
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
|
@@ -62,6 +62,7 @@ export function CouponAccordion(props: CouponAccordionProps) {
|
|
|
62
62
|
className={classes.button}
|
|
63
63
|
sx={(theme) => ({
|
|
64
64
|
justifyContent: 'space-between',
|
|
65
|
+
gap: theme.spacings.sm,
|
|
65
66
|
padding: `${theme.spacings.xs} ${theme.spacings.sm}`,
|
|
66
67
|
width: '100%',
|
|
67
68
|
borderRadius: responsiveVal(theme.shape.borderRadius * 3, theme.shape.borderRadius * 4),
|
|
@@ -88,6 +89,7 @@ export function CouponAccordion(props: CouponAccordionProps) {
|
|
|
88
89
|
},
|
|
89
90
|
'&.disabled': {
|
|
90
91
|
cursor: 'default',
|
|
92
|
+
justifyContent: 'flex-start',
|
|
91
93
|
'&:hover': {
|
|
92
94
|
background: 'transparent',
|
|
93
95
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useFormGqlMutationCart, ApolloCartErrorAlert } from '@graphcommerce/magento-cart'
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { extendableComponent } from '@graphcommerce/next-ui'
|
|
3
|
+
import { Box, SxProps, Theme, Chip } from '@mui/material'
|
|
4
4
|
import { CouponFragment } from '../Api/Coupon.gql'
|
|
5
5
|
import { RemoveCouponFormDocument } from './RemoveCouponForm.gql'
|
|
6
6
|
|
|
@@ -18,24 +18,15 @@ export function RemoveCouponForm(props: RemoveCouponFormProps) {
|
|
|
18
18
|
const submitHandler = handleSubmit(() => {})
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<Box
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
className={classes.button}
|
|
27
|
-
endIcon={<IconSvg src={iconCancelAlt} />}
|
|
21
|
+
<Box className={classes.root} sx={sx}>
|
|
22
|
+
<Chip
|
|
23
|
+
label={applied_coupons?.[0]?.code}
|
|
24
|
+
onDelete={submitHandler}
|
|
25
|
+
size='responsive'
|
|
28
26
|
sx={(theme) => ({
|
|
29
|
-
|
|
30
|
-
background: lighten(theme.palette.secondary.light, theme.palette.action.hoverOpacity),
|
|
31
|
-
'& svg': {
|
|
32
|
-
stroke: 'transparent',
|
|
33
|
-
fill: theme.palette.secondary.main,
|
|
34
|
-
},
|
|
27
|
+
...theme.typography.overline,
|
|
35
28
|
})}
|
|
36
|
-
|
|
37
|
-
{applied_coupons?.[0]?.code}
|
|
38
|
-
</Button>
|
|
29
|
+
/>
|
|
39
30
|
<ApolloCartErrorAlert error={error} />
|
|
40
31
|
</Box>
|
|
41
32
|
)
|
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": "3.0.
|
|
5
|
+
"version": "3.0.8",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,24 +12,24 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.4",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.5",
|
|
17
17
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
18
|
-
"@playwright/test": "^1.
|
|
18
|
+
"@playwright/test": "^1.20.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/graphql": "
|
|
22
|
-
"@graphcommerce/image": "
|
|
23
|
-
"@graphcommerce/magento-cart": "
|
|
24
|
-
"@graphcommerce/magento-store": "
|
|
25
|
-
"@graphcommerce/next-ui": "
|
|
26
|
-
"@graphcommerce/react-hook-form": "
|
|
21
|
+
"@graphcommerce/graphql": "3.0.7",
|
|
22
|
+
"@graphcommerce/image": "3.1.3",
|
|
23
|
+
"@graphcommerce/magento-cart": "4.2.3",
|
|
24
|
+
"@graphcommerce/magento-store": "4.1.5",
|
|
25
|
+
"@graphcommerce/next-ui": "4.5.1",
|
|
26
|
+
"@graphcommerce/react-hook-form": "3.0.7"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@lingui/macro": "^3.13.2",
|
|
30
|
-
"@mui/material": "
|
|
30
|
+
"@mui/material": "5.5.3",
|
|
31
31
|
"framer-motion": "^6.2.4",
|
|
32
|
-
"next": "
|
|
32
|
+
"next": "12.1.2",
|
|
33
33
|
"react": "^17.0.2",
|
|
34
34
|
"react-dom": "^17.0.2"
|
|
35
35
|
}
|