@graphcommerce/magento-cart-pickup 10.0.0-canary.72 → 10.0.1-canary.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.
- package/CHANGELOG.md +4 -142
- package/components/PickupLocationForm.tsx +4 -2
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,38 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 10.0.
|
|
3
|
+
## 10.0.1-canary.0
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## 10.0.0-canary.70
|
|
8
|
-
|
|
9
|
-
## 10.0.0-canary.69
|
|
10
|
-
|
|
11
|
-
## 10.0.0-canary.68
|
|
12
|
-
|
|
13
|
-
## 10.0.0-canary.67
|
|
14
|
-
|
|
15
|
-
## 10.0.0-canary.66
|
|
16
|
-
|
|
17
|
-
## 10.0.0-canary.65
|
|
18
|
-
|
|
19
|
-
## 10.0.0-canary.64
|
|
20
|
-
|
|
21
|
-
## 10.0.0-canary.63
|
|
22
|
-
|
|
23
|
-
## 10.0.0-canary.62
|
|
24
|
-
|
|
25
|
-
## 10.0.0-canary.61
|
|
26
|
-
|
|
27
|
-
## 10.0.0-canary.60
|
|
28
|
-
|
|
29
|
-
## 10.0.0-canary.59
|
|
30
|
-
|
|
31
|
-
## 10.0.0-canary.58
|
|
5
|
+
### Patch Changes
|
|
32
6
|
|
|
33
|
-
|
|
7
|
+
- [#2568](https://github.com/graphcommerce-org/graphcommerce/pull/2568) [`dc57da4`](https://github.com/graphcommerce-org/graphcommerce/commit/dc57da4897365ddb2b779eab3ad2b3a350ed115c) - Moved from form.watch to useWatch everywhere which works even if the fields are later initialized. ([@paales](https://github.com/paales))
|
|
34
8
|
|
|
35
|
-
## 10.0.0
|
|
9
|
+
## 10.0.0
|
|
36
10
|
|
|
37
11
|
### Major Changes
|
|
38
12
|
|
|
@@ -112,118 +86,6 @@
|
|
|
112
86
|
- `@mui/*` modern alias rewrites
|
|
113
87
|
- Debug plugins (`CircularDependencyPlugin`, `DuplicatesPlugin`) ([@paales](https://github.com/paales))
|
|
114
88
|
|
|
115
|
-
## 9.1.0-canary.55
|
|
116
|
-
|
|
117
|
-
## 9.1.0-canary.54
|
|
118
|
-
|
|
119
|
-
## 9.1.0-canary.53
|
|
120
|
-
|
|
121
|
-
## 9.1.0-canary.52
|
|
122
|
-
|
|
123
|
-
## 9.1.0-canary.51
|
|
124
|
-
|
|
125
|
-
## 9.1.0-canary.50
|
|
126
|
-
|
|
127
|
-
## 9.1.0-canary.49
|
|
128
|
-
|
|
129
|
-
## 9.1.0-canary.48
|
|
130
|
-
|
|
131
|
-
## 9.1.0-canary.47
|
|
132
|
-
|
|
133
|
-
## 9.1.0-canary.46
|
|
134
|
-
|
|
135
|
-
## 9.1.0-canary.45
|
|
136
|
-
|
|
137
|
-
## 9.1.0-canary.44
|
|
138
|
-
|
|
139
|
-
## 9.1.0-canary.43
|
|
140
|
-
|
|
141
|
-
## 9.1.0-canary.42
|
|
142
|
-
|
|
143
|
-
## 9.1.0-canary.41
|
|
144
|
-
|
|
145
|
-
## 9.1.0-canary.40
|
|
146
|
-
|
|
147
|
-
## 9.1.0-canary.39
|
|
148
|
-
|
|
149
|
-
## 9.1.0-canary.38
|
|
150
|
-
|
|
151
|
-
## 9.1.0-canary.37
|
|
152
|
-
|
|
153
|
-
## 9.1.0-canary.36
|
|
154
|
-
|
|
155
|
-
## 9.1.0-canary.35
|
|
156
|
-
|
|
157
|
-
## 9.1.0-canary.34
|
|
158
|
-
|
|
159
|
-
## 9.1.0-canary.33
|
|
160
|
-
|
|
161
|
-
## 9.1.0-canary.32
|
|
162
|
-
|
|
163
|
-
## 9.1.0-canary.31
|
|
164
|
-
|
|
165
|
-
## 9.1.0-canary.30
|
|
166
|
-
|
|
167
|
-
## 9.1.0-canary.29
|
|
168
|
-
|
|
169
|
-
## 9.1.0-canary.28
|
|
170
|
-
|
|
171
|
-
## 9.1.0-canary.27
|
|
172
|
-
|
|
173
|
-
## 9.1.0-canary.26
|
|
174
|
-
|
|
175
|
-
## 9.1.0-canary.25
|
|
176
|
-
|
|
177
|
-
## 9.1.0-canary.24
|
|
178
|
-
|
|
179
|
-
## 9.1.0-canary.23
|
|
180
|
-
|
|
181
|
-
## 9.1.0-canary.22
|
|
182
|
-
|
|
183
|
-
## 9.1.0-canary.21
|
|
184
|
-
|
|
185
|
-
## 9.1.0-canary.20
|
|
186
|
-
|
|
187
|
-
## 9.1.0-canary.19
|
|
188
|
-
|
|
189
|
-
## 9.1.0-canary.18
|
|
190
|
-
|
|
191
|
-
## 9.1.0-canary.17
|
|
192
|
-
|
|
193
|
-
## 9.1.0-canary.16
|
|
194
|
-
|
|
195
|
-
## 9.1.0-canary.15
|
|
196
|
-
|
|
197
|
-
## 9.0.4-canary.14
|
|
198
|
-
|
|
199
|
-
## 9.0.4-canary.13
|
|
200
|
-
|
|
201
|
-
## 9.0.4-canary.12
|
|
202
|
-
|
|
203
|
-
## 9.0.4-canary.11
|
|
204
|
-
|
|
205
|
-
## 9.0.4-canary.10
|
|
206
|
-
|
|
207
|
-
## 9.0.4-canary.9
|
|
208
|
-
|
|
209
|
-
## 9.0.4-canary.8
|
|
210
|
-
|
|
211
|
-
## 9.0.4-canary.7
|
|
212
|
-
|
|
213
|
-
## 9.0.4-canary.6
|
|
214
|
-
|
|
215
|
-
## 9.0.4-canary.5
|
|
216
|
-
|
|
217
|
-
## 9.0.4-canary.4
|
|
218
|
-
|
|
219
|
-
## 9.0.4-canary.3
|
|
220
|
-
|
|
221
|
-
## 9.0.4-canary.2
|
|
222
|
-
|
|
223
|
-
## 9.0.4-canary.1
|
|
224
|
-
|
|
225
|
-
## 9.0.4-canary.0
|
|
226
|
-
|
|
227
89
|
## 9.0.0
|
|
228
90
|
|
|
229
91
|
### Patch Changes
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
ApolloErrorAlert,
|
|
5
5
|
TextFieldElement,
|
|
6
6
|
useFormCompose,
|
|
7
|
+
useWatch,
|
|
7
8
|
} from '@graphcommerce/ecommerce-ui'
|
|
8
9
|
import { useQuery } from '@graphcommerce/graphql'
|
|
9
10
|
import type { ProductInfoInput } from '@graphcommerce/graphql-mesh'
|
|
@@ -77,7 +78,8 @@ export function PickupLocationForm(props: PickupLocationFormProps) {
|
|
|
77
78
|
|
|
78
79
|
useFormCompose({ form, step, submit, key: 'PickupLocationForm' })
|
|
79
80
|
|
|
80
|
-
const
|
|
81
|
+
const watchedSearchTerm = useWatch({ control, name: 'searchTerm' })
|
|
82
|
+
const searchTerm = useDeferredValue((watchedSearchTerm || defaultSearchTerm) ?? '')
|
|
81
83
|
const locationsQuery = useQuery(GetPickupLocationsForProductsDocument, {
|
|
82
84
|
variables: {
|
|
83
85
|
productInput,
|
|
@@ -92,7 +94,7 @@ export function PickupLocationForm(props: PickupLocationFormProps) {
|
|
|
92
94
|
[locationData?.pickupLocations?.items],
|
|
93
95
|
)
|
|
94
96
|
|
|
95
|
-
const selected =
|
|
97
|
+
const selected = useWatch({ control, name: 'pickupLocationCode' })
|
|
96
98
|
|
|
97
99
|
// What to do when shippingForm is pickup but there aren't any available pickup locations?
|
|
98
100
|
if (!isAvailable) return null
|
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": "10.0.
|
|
5
|
+
"version": "10.0.1-canary.0",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
"./plugins/AddPickupInStore": "./plugins/AddPickupInStore.tsx"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@graphcommerce/ecommerce-ui": "^10.0.
|
|
20
|
-
"@graphcommerce/eslint-config-pwa": "^10.0.
|
|
21
|
-
"@graphcommerce/graphql": "^10.0.
|
|
22
|
-
"@graphcommerce/graphql-mesh": "^10.0.
|
|
23
|
-
"@graphcommerce/image": "^10.0.
|
|
24
|
-
"@graphcommerce/magento-cart": "^10.0.
|
|
25
|
-
"@graphcommerce/magento-cart-shipping-method": "^10.0.
|
|
26
|
-
"@graphcommerce/magento-store": "^10.0.
|
|
27
|
-
"@graphcommerce/next-ui": "^10.0.
|
|
28
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.
|
|
29
|
-
"@graphcommerce/react-hook-form": "^10.0.
|
|
30
|
-
"@graphcommerce/typescript-config-pwa": "^10.0.
|
|
19
|
+
"@graphcommerce/ecommerce-ui": "^10.0.1-canary.0",
|
|
20
|
+
"@graphcommerce/eslint-config-pwa": "^10.0.1-canary.0",
|
|
21
|
+
"@graphcommerce/graphql": "^10.0.1-canary.0",
|
|
22
|
+
"@graphcommerce/graphql-mesh": "^10.0.1-canary.0",
|
|
23
|
+
"@graphcommerce/image": "^10.0.1-canary.0",
|
|
24
|
+
"@graphcommerce/magento-cart": "^10.0.1-canary.0",
|
|
25
|
+
"@graphcommerce/magento-cart-shipping-method": "^10.0.1-canary.0",
|
|
26
|
+
"@graphcommerce/magento-store": "^10.0.1-canary.0",
|
|
27
|
+
"@graphcommerce/next-ui": "^10.0.1-canary.0",
|
|
28
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.1-canary.0",
|
|
29
|
+
"@graphcommerce/react-hook-form": "^10.0.1-canary.0",
|
|
30
|
+
"@graphcommerce/typescript-config-pwa": "^10.0.1-canary.0",
|
|
31
31
|
"@lingui/core": "^5",
|
|
32
32
|
"@lingui/macro": "^5",
|
|
33
33
|
"@lingui/react": "^5",
|