@graphcommerce/magento-cart-pickup 8.1.0-canary.8 → 9.0.0-canary.100
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,193 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.100
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.99
|
|
6
|
+
|
|
7
|
+
## 9.0.0-canary.98
|
|
8
|
+
|
|
9
|
+
## 9.0.0-canary.97
|
|
10
|
+
|
|
11
|
+
## 9.0.0-canary.96
|
|
12
|
+
|
|
13
|
+
## 9.0.0-canary.95
|
|
14
|
+
|
|
15
|
+
## 9.0.0-canary.94
|
|
16
|
+
|
|
17
|
+
## 9.0.0-canary.93
|
|
18
|
+
|
|
19
|
+
## 9.0.0-canary.92
|
|
20
|
+
|
|
21
|
+
## 9.0.0-canary.91
|
|
22
|
+
|
|
23
|
+
## 9.0.0-canary.90
|
|
24
|
+
|
|
25
|
+
## 9.0.0-canary.89
|
|
26
|
+
|
|
27
|
+
## 9.0.0-canary.88
|
|
28
|
+
|
|
29
|
+
## 9.0.0-canary.87
|
|
30
|
+
|
|
31
|
+
## 9.0.0-canary.86
|
|
32
|
+
|
|
33
|
+
## 9.0.0-canary.85
|
|
34
|
+
|
|
35
|
+
## 9.0.0-canary.84
|
|
36
|
+
|
|
37
|
+
## 9.0.0-canary.83
|
|
38
|
+
|
|
39
|
+
## 9.0.0-canary.82
|
|
40
|
+
|
|
41
|
+
## 9.0.0-canary.81
|
|
42
|
+
|
|
43
|
+
## 9.0.0-canary.80
|
|
44
|
+
|
|
45
|
+
## 9.0.0-canary.79
|
|
46
|
+
|
|
47
|
+
## 9.0.0-canary.78
|
|
48
|
+
|
|
49
|
+
## 9.0.0-canary.77
|
|
50
|
+
|
|
51
|
+
## 9.0.0-canary.76
|
|
52
|
+
|
|
53
|
+
## 9.0.0-canary.75
|
|
54
|
+
|
|
55
|
+
## 9.0.0-canary.74
|
|
56
|
+
|
|
57
|
+
## 9.0.0-canary.73
|
|
58
|
+
|
|
59
|
+
## 9.0.0-canary.72
|
|
60
|
+
|
|
61
|
+
## 9.0.0-canary.71
|
|
62
|
+
|
|
63
|
+
## 9.0.0-canary.70
|
|
64
|
+
|
|
65
|
+
## 9.0.0-canary.69
|
|
66
|
+
|
|
67
|
+
## 9.0.0-canary.68
|
|
68
|
+
|
|
69
|
+
## 9.0.0-canary.67
|
|
70
|
+
|
|
71
|
+
## 9.0.0-canary.66
|
|
72
|
+
|
|
73
|
+
## 9.0.0-canary.65
|
|
74
|
+
|
|
75
|
+
## 9.0.0-canary.64
|
|
76
|
+
|
|
77
|
+
## 9.0.0-canary.63
|
|
78
|
+
|
|
79
|
+
## 9.0.0-canary.62
|
|
80
|
+
|
|
81
|
+
## 9.0.0-canary.61
|
|
82
|
+
|
|
83
|
+
## 9.0.0-canary.60
|
|
84
|
+
|
|
85
|
+
### Patch Changes
|
|
86
|
+
|
|
87
|
+
- [#2331](https://github.com/graphcommerce-org/graphcommerce/pull/2331) [`702bfc9`](https://github.com/graphcommerce-org/graphcommerce/commit/702bfc93566c9745546988e57988431d5d4d8cb0) - Moved plugins to new format ([@paales](https://github.com/paales))
|
|
88
|
+
|
|
89
|
+
## 9.0.0-canary.59
|
|
90
|
+
|
|
91
|
+
## 9.0.0-canary.58
|
|
92
|
+
|
|
93
|
+
## 9.0.0-canary.57
|
|
94
|
+
|
|
95
|
+
## 9.0.0-canary.56
|
|
96
|
+
|
|
97
|
+
## 9.0.0-canary.55
|
|
98
|
+
|
|
99
|
+
## 9.0.0-canary.54
|
|
100
|
+
|
|
101
|
+
## 8.1.0-canary.53
|
|
102
|
+
|
|
103
|
+
## 8.1.0-canary.52
|
|
104
|
+
|
|
105
|
+
## 8.1.0-canary.51
|
|
106
|
+
|
|
107
|
+
## 8.1.0-canary.50
|
|
108
|
+
|
|
109
|
+
## 8.1.0-canary.49
|
|
110
|
+
|
|
111
|
+
## 8.1.0-canary.48
|
|
112
|
+
|
|
113
|
+
## 8.1.0-canary.47
|
|
114
|
+
|
|
115
|
+
## 8.1.0-canary.46
|
|
116
|
+
|
|
117
|
+
## 8.1.0-canary.45
|
|
118
|
+
|
|
119
|
+
## 8.1.0-canary.44
|
|
120
|
+
|
|
121
|
+
## 8.1.0-canary.43
|
|
122
|
+
|
|
123
|
+
## 8.1.0-canary.42
|
|
124
|
+
|
|
125
|
+
## 8.1.0-canary.41
|
|
126
|
+
|
|
127
|
+
## 8.1.0-canary.40
|
|
128
|
+
|
|
129
|
+
## 8.1.0-canary.39
|
|
130
|
+
|
|
131
|
+
## 8.1.0-canary.38
|
|
132
|
+
|
|
133
|
+
## 8.1.0-canary.37
|
|
134
|
+
|
|
135
|
+
## 8.1.0-canary.36
|
|
136
|
+
|
|
137
|
+
## 8.1.0-canary.35
|
|
138
|
+
|
|
139
|
+
## 8.1.0-canary.34
|
|
140
|
+
|
|
141
|
+
## 8.1.0-canary.33
|
|
142
|
+
|
|
143
|
+
## 8.1.0-canary.32
|
|
144
|
+
|
|
145
|
+
## 8.1.0-canary.31
|
|
146
|
+
|
|
147
|
+
## 8.1.0-canary.30
|
|
148
|
+
|
|
149
|
+
## 8.1.0-canary.29
|
|
150
|
+
|
|
151
|
+
## 8.1.0-canary.28
|
|
152
|
+
|
|
153
|
+
## 8.1.0-canary.27
|
|
154
|
+
|
|
155
|
+
## 8.1.0-canary.26
|
|
156
|
+
|
|
157
|
+
## 8.1.0-canary.25
|
|
158
|
+
|
|
159
|
+
## 8.1.0-canary.24
|
|
160
|
+
|
|
161
|
+
## 8.1.0-canary.23
|
|
162
|
+
|
|
163
|
+
## 8.1.0-canary.22
|
|
164
|
+
|
|
165
|
+
## 8.1.0-canary.21
|
|
166
|
+
|
|
167
|
+
## 8.1.0-canary.20
|
|
168
|
+
|
|
169
|
+
## 8.1.0-canary.19
|
|
170
|
+
|
|
171
|
+
## 8.1.0-canary.18
|
|
172
|
+
|
|
173
|
+
## 8.1.0-canary.17
|
|
174
|
+
|
|
175
|
+
## 8.1.0-canary.16
|
|
176
|
+
|
|
177
|
+
## 8.1.0-canary.15
|
|
178
|
+
|
|
179
|
+
## 8.1.0-canary.14
|
|
180
|
+
|
|
181
|
+
## 8.1.0-canary.13
|
|
182
|
+
|
|
183
|
+
## 8.1.0-canary.12
|
|
184
|
+
|
|
185
|
+
## 8.1.0-canary.11
|
|
186
|
+
|
|
187
|
+
## 8.1.0-canary.10
|
|
188
|
+
|
|
189
|
+
## 8.1.0-canary.9
|
|
190
|
+
|
|
3
191
|
## 8.1.0-canary.8
|
|
4
192
|
|
|
5
193
|
## 8.1.0-canary.7
|
|
@@ -90,8 +278,7 @@
|
|
|
90
278
|
|
|
91
279
|
### Patch Changes
|
|
92
280
|
|
|
93
|
-
- [#2115](https://github.com/graphcommerce-org/graphcommerce/pull/2115) [`105a1af`](https://github.com/graphcommerce-org/graphcommerce/commit/105a1af8b820de8873e430ae398f1922d39a9110) - Disabled ripple animations on all ActionCard ‘Select’ and ‘Change’ so the rendering is more subtle during checkout.
|
|
94
|
-
([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
281
|
+
- [#2115](https://github.com/graphcommerce-org/graphcommerce/pull/2115) [`105a1af`](https://github.com/graphcommerce-org/graphcommerce/commit/105a1af8b820de8873e430ae398f1922d39a9110) - Disabled ripple animations on all ActionCard ‘Select’ and ‘Change’ so the rendering is more subtle during checkout. ([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
95
282
|
|
|
96
283
|
## 8.0.0-canary.100
|
|
97
284
|
|
|
@@ -1328,31 +1515,31 @@
|
|
|
1328
1515
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
1329
1516
|
|
|
1330
1517
|
```tsx
|
|
1331
|
-
import { Trans, t } from
|
|
1518
|
+
import { Trans, t } from '@lingui/macro'
|
|
1332
1519
|
|
|
1333
1520
|
function MyComponent() {
|
|
1334
|
-
const foo =
|
|
1521
|
+
const foo = 'bar'
|
|
1335
1522
|
return (
|
|
1336
1523
|
<div aria-label={t`Account ${foo}`}>
|
|
1337
1524
|
<Trans>My Translation {foo}</Trans>
|
|
1338
1525
|
</div>
|
|
1339
|
-
)
|
|
1526
|
+
)
|
|
1340
1527
|
}
|
|
1341
1528
|
```
|
|
1342
1529
|
|
|
1343
1530
|
Needs to be replaced with:
|
|
1344
1531
|
|
|
1345
1532
|
```tsx
|
|
1346
|
-
import { Trans } from
|
|
1347
|
-
import { i18n } from
|
|
1533
|
+
import { Trans } from '@lingui/react'
|
|
1534
|
+
import { i18n } from '@lingui/core'
|
|
1348
1535
|
|
|
1349
1536
|
function MyComponent() {
|
|
1350
|
-
const foo =
|
|
1537
|
+
const foo = 'bar'
|
|
1351
1538
|
return (
|
|
1352
1539
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
1353
|
-
<Trans key=
|
|
1540
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
1354
1541
|
</div>
|
|
1355
|
-
)
|
|
1542
|
+
)
|
|
1356
1543
|
}
|
|
1357
1544
|
```
|
|
1358
1545
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ActionCardItemRenderProps } from '@graphcommerce/ecommerce-ui'
|
|
2
|
+
import { ActionCard } from '@graphcommerce/next-ui'
|
|
2
3
|
import { Trans } from '@lingui/react'
|
|
3
4
|
import { Box, Button } from '@mui/material'
|
|
4
5
|
import { GetPickupLocationsForProductsQuery } from '../graphql/GetPickupLocationsForProducts.gql'
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ActionCardItemBase,
|
|
3
|
+
ActionCardListForm,
|
|
2
4
|
ApolloErrorAlert,
|
|
3
5
|
TextFieldElement,
|
|
4
6
|
useFormCompose,
|
|
@@ -9,16 +11,16 @@ import { ProductInfoInput } from '@graphcommerce/graphql-mesh'
|
|
|
9
11
|
import { useCartQuery, useFormGqlMutationCart } from '@graphcommerce/magento-cart'
|
|
10
12
|
import { useShippingMethod } from '@graphcommerce/magento-cart-shipping-method'
|
|
11
13
|
import { GetShippingMethodsDocument } from '@graphcommerce/magento-cart-shipping-method/components/ShippingMethodForm/GetShippingMethods.gql'
|
|
12
|
-
import {
|
|
14
|
+
import { FormRow } from '@graphcommerce/next-ui'
|
|
13
15
|
import { Trans } from '@lingui/react'
|
|
14
|
-
import {
|
|
16
|
+
import { useDeferredValue, useMemo } from 'react'
|
|
15
17
|
import { GetPickupLocationsForProductsDocument } from '../graphql/GetPickupLocationsForProducts.gql'
|
|
16
18
|
import {
|
|
17
19
|
SetPickupLocationOnCartDocument,
|
|
18
20
|
SetPickupLocationOnCartMutation,
|
|
19
21
|
SetPickupLocationOnCartMutationVariables,
|
|
20
22
|
} from '../graphql/SetPickupLocationOnCart.gql'
|
|
21
|
-
import {
|
|
23
|
+
import { Location, PickupLocationActionCard } from './PickupLocationActionCard'
|
|
22
24
|
|
|
23
25
|
export type PickupLocationFormProps = Pick<UseFormComposeOptions, 'step'>
|
|
24
26
|
|
|
@@ -42,7 +44,7 @@ export function PickupLocationForm(props: PickupLocationFormProps) {
|
|
|
42
44
|
|
|
43
45
|
const defaultSearchTerm = shippingAddress?.pickup_location_code
|
|
44
46
|
? undefined
|
|
45
|
-
: shippingAddress?.postcode ?? undefined
|
|
47
|
+
: (shippingAddress?.postcode ?? undefined)
|
|
46
48
|
|
|
47
49
|
const form = useFormGqlMutationCart<
|
|
48
50
|
SetPickupLocationOnCartMutation,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-pickup",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "9.0.0-canary.100",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^
|
|
17
|
-
"@graphcommerce/graphql": "^
|
|
18
|
-
"@graphcommerce/graphql-mesh": "^
|
|
19
|
-
"@graphcommerce/image": "^
|
|
20
|
-
"@graphcommerce/magento-cart": "^
|
|
21
|
-
"@graphcommerce/magento-cart-shipping-method": "^
|
|
22
|
-
"@graphcommerce/magento-store": "^
|
|
23
|
-
"@graphcommerce/next-ui": "^
|
|
24
|
-
"@graphcommerce/prettier-config-pwa": "^
|
|
25
|
-
"@graphcommerce/react-hook-form": "^
|
|
26
|
-
"@graphcommerce/typescript-config-pwa": "^
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.100",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.100",
|
|
17
|
+
"@graphcommerce/graphql": "^9.0.0-canary.100",
|
|
18
|
+
"@graphcommerce/graphql-mesh": "^9.0.0-canary.100",
|
|
19
|
+
"@graphcommerce/image": "^9.0.0-canary.100",
|
|
20
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.100",
|
|
21
|
+
"@graphcommerce/magento-cart-shipping-method": "^9.0.0-canary.100",
|
|
22
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.100",
|
|
23
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.100",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.100",
|
|
25
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.100",
|
|
26
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.100",
|
|
27
27
|
"@lingui/core": "^4.2.1",
|
|
28
28
|
"@lingui/macro": "^4.2.1",
|
|
29
29
|
"@lingui/react": "^4.2.1",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ShippingMethodFormProps } from '@graphcommerce/magento-cart-shipping-method'
|
|
2
|
-
import type { PluginProps } from '@graphcommerce/next-config'
|
|
2
|
+
import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
|
|
3
3
|
import { PickupLocationSelector } from '../components/PickupLocationSelector'
|
|
4
4
|
|
|
5
|
-
export const
|
|
6
|
-
|
|
5
|
+
export const config: PluginConfig = {
|
|
6
|
+
type: 'component',
|
|
7
|
+
module: '@graphcommerce/magento-cart-shipping-method',
|
|
8
|
+
}
|
|
7
9
|
|
|
8
|
-
function
|
|
10
|
+
export function ShippingMethodForm(props: PluginProps<ShippingMethodFormProps>) {
|
|
9
11
|
const { Prev, children, step, ...rest } = props
|
|
10
12
|
return (
|
|
11
13
|
<Prev {...rest} step={step}>
|
|
@@ -14,5 +16,3 @@ function AddPickupInStore(props: PluginProps<ShippingMethodFormProps>) {
|
|
|
14
16
|
</Prev>
|
|
15
17
|
)
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
export const Plugin = AddPickupInStore
|