@graphcommerce/magento-cart-coupon 7.0.0-canary.21 → 7.0.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useFormGqlMutationCart, ApolloCartErrorAlert } from '@graphcommerce/magento-cart'
|
|
2
2
|
import { responsiveVal, Button, extendableComponent } from '@graphcommerce/next-ui'
|
|
3
3
|
import { Trans } from '@lingui/react'
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
4
5
|
import { Box, FormControl, SxProps, TextField, Theme } from '@mui/material'
|
|
5
6
|
import { ApplyCouponFormDocument } from './ApplyCouponForm.gql'
|
|
6
7
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,170 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 7.0.0
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2031](https://github.com/graphcommerce-org/graphcommerce/pull/2031) [`4d8fc9e99`](https://github.com/graphcommerce-org/graphcommerce/commit/4d8fc9e998fc9361282833316ec9564da0644ed6) - Eslint fixes and suppress accepted warnings ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
9
|
+
## 6.2.0-canary.98
|
|
10
|
+
|
|
11
|
+
## 6.2.0-canary.97
|
|
12
|
+
|
|
13
|
+
## 6.2.0-canary.96
|
|
14
|
+
|
|
15
|
+
## 6.2.0-canary.95
|
|
16
|
+
|
|
17
|
+
## 6.2.0-canary.94
|
|
18
|
+
|
|
19
|
+
## 6.2.0-canary.93
|
|
20
|
+
|
|
21
|
+
## 6.2.0-canary.92
|
|
22
|
+
|
|
23
|
+
## 6.2.0-canary.91
|
|
24
|
+
|
|
25
|
+
## 6.2.0-canary.90
|
|
26
|
+
|
|
27
|
+
## 6.2.0-canary.89
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#2031](https://github.com/graphcommerce-org/graphcommerce/pull/2031) [`4d8fc9e99`](https://github.com/graphcommerce-org/graphcommerce/commit/4d8fc9e998fc9361282833316ec9564da0644ed6) - Eslint fixes and suppress accepted warnings ([@paales](https://github.com/paales))
|
|
32
|
+
|
|
33
|
+
## 6.2.0-canary.88
|
|
34
|
+
|
|
35
|
+
## 6.2.0-canary.87
|
|
36
|
+
|
|
37
|
+
## 6.2.0-canary.86
|
|
38
|
+
|
|
39
|
+
## 6.2.0-canary.85
|
|
40
|
+
|
|
41
|
+
## 6.2.0-canary.84
|
|
42
|
+
|
|
43
|
+
## 6.2.0-canary.83
|
|
44
|
+
|
|
45
|
+
## 6.2.0-canary.82
|
|
46
|
+
|
|
47
|
+
## 6.2.0-canary.81
|
|
48
|
+
|
|
49
|
+
## 6.2.0-canary.80
|
|
50
|
+
|
|
51
|
+
## 6.2.0-canary.79
|
|
52
|
+
|
|
53
|
+
## 6.2.0-canary.78
|
|
54
|
+
|
|
55
|
+
## 6.2.0-canary.77
|
|
56
|
+
|
|
57
|
+
## 6.2.0-canary.76
|
|
58
|
+
|
|
59
|
+
## 6.2.0-canary.75
|
|
60
|
+
|
|
61
|
+
## 6.2.0-canary.74
|
|
62
|
+
|
|
63
|
+
## 6.2.0-canary.73
|
|
64
|
+
|
|
65
|
+
## 6.2.0-canary.72
|
|
66
|
+
|
|
67
|
+
## 6.2.0-canary.71
|
|
68
|
+
|
|
69
|
+
## 6.2.0-canary.70
|
|
70
|
+
|
|
71
|
+
## 6.2.0-canary.69
|
|
72
|
+
|
|
73
|
+
## 6.2.0-canary.68
|
|
74
|
+
|
|
75
|
+
## 6.2.0-canary.67
|
|
76
|
+
|
|
77
|
+
## 6.2.0-canary.66
|
|
78
|
+
|
|
79
|
+
## 6.2.0-canary.65
|
|
80
|
+
|
|
81
|
+
## 6.2.0-canary.64
|
|
82
|
+
|
|
83
|
+
## 6.2.0-canary.63
|
|
84
|
+
|
|
85
|
+
## 6.2.0-canary.62
|
|
86
|
+
|
|
87
|
+
## 6.2.0-canary.61
|
|
88
|
+
|
|
89
|
+
## 6.2.0-canary.60
|
|
90
|
+
|
|
91
|
+
## 6.2.0-canary.59
|
|
92
|
+
|
|
93
|
+
## 6.2.0-canary.58
|
|
94
|
+
|
|
95
|
+
## 6.2.0-canary.57
|
|
96
|
+
|
|
97
|
+
## 6.2.0-canary.56
|
|
98
|
+
|
|
99
|
+
## 6.2.0-canary.55
|
|
100
|
+
|
|
101
|
+
## 6.2.0-canary.54
|
|
102
|
+
|
|
103
|
+
## 6.2.0-canary.53
|
|
104
|
+
|
|
105
|
+
## 6.2.0-canary.52
|
|
106
|
+
|
|
107
|
+
## 6.2.0-canary.51
|
|
108
|
+
|
|
109
|
+
## 6.2.0-canary.50
|
|
110
|
+
|
|
111
|
+
## 6.2.0-canary.49
|
|
112
|
+
|
|
113
|
+
## 6.2.0-canary.48
|
|
114
|
+
|
|
115
|
+
## 6.2.0-canary.47
|
|
116
|
+
|
|
117
|
+
## 6.2.0-canary.46
|
|
118
|
+
|
|
119
|
+
## 6.2.0-canary.45
|
|
120
|
+
|
|
121
|
+
## 6.2.0-canary.44
|
|
122
|
+
|
|
123
|
+
## 6.2.0-canary.43
|
|
124
|
+
|
|
125
|
+
## 6.2.0-canary.42
|
|
126
|
+
|
|
127
|
+
## 6.2.0-canary.41
|
|
128
|
+
|
|
129
|
+
## 6.2.0-canary.40
|
|
130
|
+
|
|
131
|
+
## 6.2.0-canary.39
|
|
132
|
+
|
|
133
|
+
## 6.2.0-canary.38
|
|
134
|
+
|
|
135
|
+
## 6.2.0-canary.37
|
|
136
|
+
|
|
137
|
+
## 6.2.0-canary.36
|
|
138
|
+
|
|
139
|
+
## 6.2.0-canary.35
|
|
140
|
+
|
|
141
|
+
## 6.2.0-canary.34
|
|
142
|
+
|
|
143
|
+
## 6.2.0-canary.33
|
|
144
|
+
|
|
145
|
+
## 6.2.0-canary.32
|
|
146
|
+
|
|
147
|
+
## 6.2.0-canary.31
|
|
148
|
+
|
|
149
|
+
## 6.2.0-canary.30
|
|
150
|
+
|
|
151
|
+
## 6.2.0-canary.29
|
|
152
|
+
|
|
153
|
+
## 6.2.0-canary.28
|
|
154
|
+
|
|
155
|
+
## 6.2.0-canary.27
|
|
156
|
+
|
|
157
|
+
## 6.2.0-canary.26
|
|
158
|
+
|
|
159
|
+
## 6.2.0-canary.25
|
|
160
|
+
|
|
161
|
+
## 6.2.0-canary.24
|
|
162
|
+
|
|
163
|
+
## 6.2.0-canary.23
|
|
164
|
+
|
|
165
|
+
## 6.2.0-canary.22
|
|
166
|
+
|
|
167
|
+
## 6.2.0-canary.21
|
|
4
168
|
|
|
5
169
|
## 6.2.0-canary.20
|
|
6
170
|
|
|
@@ -58,7 +58,7 @@ export function CouponAccordion(props: CouponAccordionProps) {
|
|
|
58
58
|
expandIcon={!coupon && <IconSvg src={iconChevronDown} />}
|
|
59
59
|
sx={[
|
|
60
60
|
(theme) => ({
|
|
61
|
-
px: theme.spacings.
|
|
61
|
+
px: theme.spacings.xs,
|
|
62
62
|
'& .MuiAccordionSummary-content': {
|
|
63
63
|
alignItems: 'center',
|
|
64
64
|
columnGap: 2,
|
|
@@ -75,7 +75,7 @@ export function CouponAccordion(props: CouponAccordionProps) {
|
|
|
75
75
|
<Trans id='Discount code' />
|
|
76
76
|
<RemoveCouponForm {...data.cart} />
|
|
77
77
|
</AccordionSummary>
|
|
78
|
-
<AccordionDetails sx={(theme) => ({ px: theme.spacings.
|
|
78
|
+
<AccordionDetails sx={(theme) => ({ px: theme.spacings.xs })}>
|
|
79
79
|
<ApplyCouponForm />
|
|
80
80
|
</AccordionDetails>
|
|
81
81
|
</Accordion>
|
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": "7.0.0
|
|
5
|
+
"version": "7.0.0",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,21 +12,22 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "7.0.0
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "7.0.0
|
|
17
|
-
"@graphcommerce/typescript-config-pwa": "7.0.0
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "7.0.0",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "7.0.0",
|
|
17
|
+
"@graphcommerce/typescript-config-pwa": "7.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@graphcommerce/graphql": "7.0.0
|
|
21
|
-
"@graphcommerce/image": "7.0.0
|
|
22
|
-
"@graphcommerce/magento-cart": "7.0.0
|
|
23
|
-
"@graphcommerce/magento-store": "7.0.0
|
|
24
|
-
"@graphcommerce/next-ui": "7.0.0
|
|
25
|
-
"@graphcommerce/react-hook-form": "7.0.0
|
|
20
|
+
"@graphcommerce/graphql": "7.0.0",
|
|
21
|
+
"@graphcommerce/image": "7.0.0",
|
|
22
|
+
"@graphcommerce/magento-cart": "7.0.0",
|
|
23
|
+
"@graphcommerce/magento-store": "7.0.0",
|
|
24
|
+
"@graphcommerce/next-ui": "7.0.0",
|
|
25
|
+
"@graphcommerce/react-hook-form": "7.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@lingui/react": "^
|
|
29
|
-
"@lingui/core": "^
|
|
28
|
+
"@lingui/react": "^4.2.1",
|
|
29
|
+
"@lingui/core": "^4.2.1",
|
|
30
|
+
"@lingui/macro": "^4.2.1",
|
|
30
31
|
"@mui/material": "^5.10.16",
|
|
31
32
|
"framer-motion": "^10.0.0",
|
|
32
33
|
"next": "^13.2.0",
|