@graphcommerce/magento-cart-pickup 8.1.0-canary.9 → 9.0.0-canary.101
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.101
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.100
|
|
6
|
+
|
|
7
|
+
## 9.0.0-canary.99
|
|
8
|
+
|
|
9
|
+
## 9.0.0-canary.98
|
|
10
|
+
|
|
11
|
+
## 9.0.0-canary.97
|
|
12
|
+
|
|
13
|
+
## 9.0.0-canary.96
|
|
14
|
+
|
|
15
|
+
## 9.0.0-canary.95
|
|
16
|
+
|
|
17
|
+
## 9.0.0-canary.94
|
|
18
|
+
|
|
19
|
+
## 9.0.0-canary.93
|
|
20
|
+
|
|
21
|
+
## 9.0.0-canary.92
|
|
22
|
+
|
|
23
|
+
## 9.0.0-canary.91
|
|
24
|
+
|
|
25
|
+
## 9.0.0-canary.90
|
|
26
|
+
|
|
27
|
+
## 9.0.0-canary.89
|
|
28
|
+
|
|
29
|
+
## 9.0.0-canary.88
|
|
30
|
+
|
|
31
|
+
## 9.0.0-canary.87
|
|
32
|
+
|
|
33
|
+
## 9.0.0-canary.86
|
|
34
|
+
|
|
35
|
+
## 9.0.0-canary.85
|
|
36
|
+
|
|
37
|
+
## 9.0.0-canary.84
|
|
38
|
+
|
|
39
|
+
## 9.0.0-canary.83
|
|
40
|
+
|
|
41
|
+
## 9.0.0-canary.82
|
|
42
|
+
|
|
43
|
+
## 9.0.0-canary.81
|
|
44
|
+
|
|
45
|
+
## 9.0.0-canary.80
|
|
46
|
+
|
|
47
|
+
## 9.0.0-canary.79
|
|
48
|
+
|
|
49
|
+
## 9.0.0-canary.78
|
|
50
|
+
|
|
51
|
+
## 9.0.0-canary.77
|
|
52
|
+
|
|
53
|
+
## 9.0.0-canary.76
|
|
54
|
+
|
|
55
|
+
## 9.0.0-canary.75
|
|
56
|
+
|
|
57
|
+
## 9.0.0-canary.74
|
|
58
|
+
|
|
59
|
+
## 9.0.0-canary.73
|
|
60
|
+
|
|
61
|
+
## 9.0.0-canary.72
|
|
62
|
+
|
|
63
|
+
## 9.0.0-canary.71
|
|
64
|
+
|
|
65
|
+
## 9.0.0-canary.70
|
|
66
|
+
|
|
67
|
+
## 9.0.0-canary.69
|
|
68
|
+
|
|
69
|
+
## 9.0.0-canary.68
|
|
70
|
+
|
|
71
|
+
## 9.0.0-canary.67
|
|
72
|
+
|
|
73
|
+
## 9.0.0-canary.66
|
|
74
|
+
|
|
75
|
+
## 9.0.0-canary.65
|
|
76
|
+
|
|
77
|
+
## 9.0.0-canary.64
|
|
78
|
+
|
|
79
|
+
## 9.0.0-canary.63
|
|
80
|
+
|
|
81
|
+
## 9.0.0-canary.62
|
|
82
|
+
|
|
83
|
+
## 9.0.0-canary.61
|
|
84
|
+
|
|
85
|
+
## 9.0.0-canary.60
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- [#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))
|
|
90
|
+
|
|
91
|
+
## 9.0.0-canary.59
|
|
92
|
+
|
|
93
|
+
## 9.0.0-canary.58
|
|
94
|
+
|
|
95
|
+
## 9.0.0-canary.57
|
|
96
|
+
|
|
97
|
+
## 9.0.0-canary.56
|
|
98
|
+
|
|
99
|
+
## 9.0.0-canary.55
|
|
100
|
+
|
|
101
|
+
## 9.0.0-canary.54
|
|
102
|
+
|
|
103
|
+
## 8.1.0-canary.53
|
|
104
|
+
|
|
105
|
+
## 8.1.0-canary.52
|
|
106
|
+
|
|
107
|
+
## 8.1.0-canary.51
|
|
108
|
+
|
|
109
|
+
## 8.1.0-canary.50
|
|
110
|
+
|
|
111
|
+
## 8.1.0-canary.49
|
|
112
|
+
|
|
113
|
+
## 8.1.0-canary.48
|
|
114
|
+
|
|
115
|
+
## 8.1.0-canary.47
|
|
116
|
+
|
|
117
|
+
## 8.1.0-canary.46
|
|
118
|
+
|
|
119
|
+
## 8.1.0-canary.45
|
|
120
|
+
|
|
121
|
+
## 8.1.0-canary.44
|
|
122
|
+
|
|
123
|
+
## 8.1.0-canary.43
|
|
124
|
+
|
|
125
|
+
## 8.1.0-canary.42
|
|
126
|
+
|
|
127
|
+
## 8.1.0-canary.41
|
|
128
|
+
|
|
129
|
+
## 8.1.0-canary.40
|
|
130
|
+
|
|
131
|
+
## 8.1.0-canary.39
|
|
132
|
+
|
|
133
|
+
## 8.1.0-canary.38
|
|
134
|
+
|
|
135
|
+
## 8.1.0-canary.37
|
|
136
|
+
|
|
137
|
+
## 8.1.0-canary.36
|
|
138
|
+
|
|
139
|
+
## 8.1.0-canary.35
|
|
140
|
+
|
|
141
|
+
## 8.1.0-canary.34
|
|
142
|
+
|
|
143
|
+
## 8.1.0-canary.33
|
|
144
|
+
|
|
145
|
+
## 8.1.0-canary.32
|
|
146
|
+
|
|
147
|
+
## 8.1.0-canary.31
|
|
148
|
+
|
|
149
|
+
## 8.1.0-canary.30
|
|
150
|
+
|
|
151
|
+
## 8.1.0-canary.29
|
|
152
|
+
|
|
153
|
+
## 8.1.0-canary.28
|
|
154
|
+
|
|
155
|
+
## 8.1.0-canary.27
|
|
156
|
+
|
|
157
|
+
## 8.1.0-canary.26
|
|
158
|
+
|
|
159
|
+
## 8.1.0-canary.25
|
|
160
|
+
|
|
161
|
+
## 8.1.0-canary.24
|
|
162
|
+
|
|
163
|
+
## 8.1.0-canary.23
|
|
164
|
+
|
|
165
|
+
## 8.1.0-canary.22
|
|
166
|
+
|
|
167
|
+
## 8.1.0-canary.21
|
|
168
|
+
|
|
169
|
+
## 8.1.0-canary.20
|
|
170
|
+
|
|
171
|
+
## 8.1.0-canary.19
|
|
172
|
+
|
|
173
|
+
## 8.1.0-canary.18
|
|
174
|
+
|
|
175
|
+
## 8.1.0-canary.17
|
|
176
|
+
|
|
177
|
+
## 8.1.0-canary.16
|
|
178
|
+
|
|
179
|
+
## 8.1.0-canary.15
|
|
180
|
+
|
|
181
|
+
## 8.1.0-canary.14
|
|
182
|
+
|
|
183
|
+
## 8.1.0-canary.13
|
|
184
|
+
|
|
185
|
+
## 8.1.0-canary.12
|
|
186
|
+
|
|
187
|
+
## 8.1.0-canary.11
|
|
188
|
+
|
|
189
|
+
## 8.1.0-canary.10
|
|
190
|
+
|
|
3
191
|
## 8.1.0-canary.9
|
|
4
192
|
|
|
5
193
|
## 8.1.0-canary.8
|
|
@@ -92,8 +280,7 @@
|
|
|
92
280
|
|
|
93
281
|
### Patch Changes
|
|
94
282
|
|
|
95
|
-
- [#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.
|
|
96
|
-
([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
283
|
+
- [#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))
|
|
97
284
|
|
|
98
285
|
## 8.0.0-canary.100
|
|
99
286
|
|
|
@@ -1330,31 +1517,31 @@
|
|
|
1330
1517
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
1331
1518
|
|
|
1332
1519
|
```tsx
|
|
1333
|
-
import { Trans, t } from
|
|
1520
|
+
import { Trans, t } from '@lingui/macro'
|
|
1334
1521
|
|
|
1335
1522
|
function MyComponent() {
|
|
1336
|
-
const foo =
|
|
1523
|
+
const foo = 'bar'
|
|
1337
1524
|
return (
|
|
1338
1525
|
<div aria-label={t`Account ${foo}`}>
|
|
1339
1526
|
<Trans>My Translation {foo}</Trans>
|
|
1340
1527
|
</div>
|
|
1341
|
-
)
|
|
1528
|
+
)
|
|
1342
1529
|
}
|
|
1343
1530
|
```
|
|
1344
1531
|
|
|
1345
1532
|
Needs to be replaced with:
|
|
1346
1533
|
|
|
1347
1534
|
```tsx
|
|
1348
|
-
import { Trans } from
|
|
1349
|
-
import { i18n } from
|
|
1535
|
+
import { Trans } from '@lingui/react'
|
|
1536
|
+
import { i18n } from '@lingui/core'
|
|
1350
1537
|
|
|
1351
1538
|
function MyComponent() {
|
|
1352
|
-
const foo =
|
|
1539
|
+
const foo = 'bar'
|
|
1353
1540
|
return (
|
|
1354
1541
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
1355
|
-
<Trans key=
|
|
1542
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
1356
1543
|
</div>
|
|
1357
|
-
)
|
|
1544
|
+
)
|
|
1358
1545
|
}
|
|
1359
1546
|
```
|
|
1360
1547
|
|
|
@@ -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.101",
|
|
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.101",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.101",
|
|
17
|
+
"@graphcommerce/graphql": "^9.0.0-canary.101",
|
|
18
|
+
"@graphcommerce/graphql-mesh": "^9.0.0-canary.101",
|
|
19
|
+
"@graphcommerce/image": "^9.0.0-canary.101",
|
|
20
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.101",
|
|
21
|
+
"@graphcommerce/magento-cart-shipping-method": "^9.0.0-canary.101",
|
|
22
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.101",
|
|
23
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.101",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.101",
|
|
25
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.101",
|
|
26
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.101",
|
|
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
|