@graphcommerce/magento-search 9.0.0-canary.100 → 9.0.0-canary.103
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 -983
- package/components/CategorySearchResult/CategorySearchResult.tsx +4 -3
- package/components/CategorySearchResult/CategorySearchResults.tsx +2 -1
- package/components/NoSearchResults/NoSearchResults.tsx +3 -2
- package/components/ProductFiltersPro/ProductFiltersProCategorySectionSearch.tsx +4 -4
- package/components/ProductFiltersPro/ProductFiltersProSearchField.tsx +3 -2
- package/components/ProductFiltersPro/ProductFiltersProSearchHeader.tsx +2 -1
- package/components/ProductFiltersPro/ProductFiltersProSearchInput.tsx +2 -5
- package/components/ProductFiltersPro/useSearchPageAndParam.ts +1 -1
- package/components/SearchButton/SearchButton.tsx +3 -2
- package/components/SearchForm/SearchForm.tsx +4 -2
- package/components/SearchForm/SearchFormAdornment.tsx +2 -1
- package/components/SearchLink/SearchLink.tsx +4 -3
- package/hooks/useProductList.ts +5 -3
- package/package.json +11 -11
- package/utils/productListApplySearchDefaults.ts +3 -2
package/CHANGELOG.md
CHANGED
@@ -1,86 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## 9.0.0-canary.
|
3
|
+
## 9.0.0-canary.103
|
4
4
|
|
5
|
-
## 9.0.0-canary.
|
5
|
+
## 9.0.0-canary.101
|
6
6
|
|
7
|
-
|
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
|
7
|
+
### Patch Changes
|
82
8
|
|
83
|
-
|
9
|
+
- [#2380](https://github.com/graphcommerce-org/graphcommerce/pull/2380) [`c17e5f1`](https://github.com/graphcommerce-org/graphcommerce/commit/c17e5f1cf9fb291b9bbf1fca0620c2721dceb331) - Solve issue: Warning: Cannot update a component (`FormAutoSubmitBase`) while rendering a different component (`ActionCardListForm`). ([@paales](https://github.com/paales))
|
84
10
|
|
85
11
|
## 9.0.0-canary.59
|
86
12
|
|
@@ -94,190 +20,6 @@
|
|
94
20
|
|
95
21
|
- [#2328](https://github.com/graphcommerce-org/graphcommerce/pull/2328) [`ee04368`](https://github.com/graphcommerce-org/graphcommerce/commit/ee04368444f732e5541a595db6e2ef66d15add68) - Move to attributesList to get a list of filterable attributes instead of using an introspection query. `productFiltersProSectionRenderer` and `productFiltersProChipRenderer` keys now now one of `AttributeFrontendInputEnum`. ([@paales](https://github.com/paales))
|
96
22
|
|
97
|
-
## 9.0.0-canary.57
|
98
|
-
|
99
|
-
## 9.0.0-canary.56
|
100
|
-
|
101
|
-
## 9.0.0-canary.55
|
102
|
-
|
103
|
-
## 9.0.0-canary.54
|
104
|
-
|
105
|
-
## 8.1.0-canary.53
|
106
|
-
|
107
|
-
## 8.1.0-canary.52
|
108
|
-
|
109
|
-
## 8.1.0-canary.51
|
110
|
-
|
111
|
-
## 8.1.0-canary.50
|
112
|
-
|
113
|
-
## 8.1.0-canary.49
|
114
|
-
|
115
|
-
## 8.1.0-canary.48
|
116
|
-
|
117
|
-
## 8.1.0-canary.47
|
118
|
-
|
119
|
-
## 8.1.0-canary.46
|
120
|
-
|
121
|
-
## 8.1.0-canary.45
|
122
|
-
|
123
|
-
## 8.1.0-canary.44
|
124
|
-
|
125
|
-
## 8.1.0-canary.43
|
126
|
-
|
127
|
-
## 8.1.0-canary.42
|
128
|
-
|
129
|
-
## 8.1.0-canary.41
|
130
|
-
|
131
|
-
## 8.1.0-canary.40
|
132
|
-
|
133
|
-
## 8.1.0-canary.39
|
134
|
-
|
135
|
-
## 8.1.0-canary.38
|
136
|
-
|
137
|
-
## 8.1.0-canary.37
|
138
|
-
|
139
|
-
## 8.1.0-canary.36
|
140
|
-
|
141
|
-
## 8.1.0-canary.35
|
142
|
-
|
143
|
-
## 8.1.0-canary.34
|
144
|
-
|
145
|
-
## 8.1.0-canary.33
|
146
|
-
|
147
|
-
## 8.1.0-canary.32
|
148
|
-
|
149
|
-
## 8.1.0-canary.31
|
150
|
-
|
151
|
-
## 8.1.0-canary.30
|
152
|
-
|
153
|
-
## 8.1.0-canary.29
|
154
|
-
|
155
|
-
## 8.1.0-canary.28
|
156
|
-
|
157
|
-
## 8.1.0-canary.27
|
158
|
-
|
159
|
-
## 8.1.0-canary.26
|
160
|
-
|
161
|
-
## 8.1.0-canary.25
|
162
|
-
|
163
|
-
## 8.1.0-canary.24
|
164
|
-
|
165
|
-
## 8.1.0-canary.23
|
166
|
-
|
167
|
-
## 8.1.0-canary.22
|
168
|
-
|
169
|
-
## 8.1.0-canary.21
|
170
|
-
|
171
|
-
## 8.1.0-canary.20
|
172
|
-
|
173
|
-
## 8.1.0-canary.19
|
174
|
-
|
175
|
-
## 8.1.0-canary.18
|
176
|
-
|
177
|
-
## 8.1.0-canary.17
|
178
|
-
|
179
|
-
## 8.1.0-canary.16
|
180
|
-
|
181
|
-
## 8.1.0-canary.15
|
182
|
-
|
183
|
-
## 8.1.0-canary.14
|
184
|
-
|
185
|
-
## 8.1.0-canary.13
|
186
|
-
|
187
|
-
## 8.1.0-canary.12
|
188
|
-
|
189
|
-
## 8.1.0-canary.11
|
190
|
-
|
191
|
-
## 8.1.0-canary.10
|
192
|
-
|
193
|
-
## 8.1.0-canary.9
|
194
|
-
|
195
|
-
## 8.1.0-canary.8
|
196
|
-
|
197
|
-
## 8.1.0-canary.7
|
198
|
-
|
199
|
-
## 8.1.0-canary.6
|
200
|
-
|
201
|
-
## 8.1.0-canary.5
|
202
|
-
|
203
|
-
## 8.0.6-canary.4
|
204
|
-
|
205
|
-
## 8.0.6-canary.3
|
206
|
-
|
207
|
-
## 8.0.6-canary.2
|
208
|
-
|
209
|
-
## 8.0.6-canary.1
|
210
|
-
|
211
|
-
## 8.0.6-canary.0
|
212
|
-
|
213
|
-
## 8.0.5
|
214
|
-
|
215
|
-
## 8.0.5-canary.10
|
216
|
-
|
217
|
-
## 8.0.5-canary.9
|
218
|
-
|
219
|
-
## 8.0.5-canary.8
|
220
|
-
|
221
|
-
## 8.0.5-canary.7
|
222
|
-
|
223
|
-
## 8.0.5-canary.6
|
224
|
-
|
225
|
-
## 8.0.5-canary.5
|
226
|
-
|
227
|
-
## 8.0.5-canary.4
|
228
|
-
|
229
|
-
## 8.0.5-canary.3
|
230
|
-
|
231
|
-
## 8.0.5-canary.2
|
232
|
-
|
233
|
-
## 8.0.5-canary.1
|
234
|
-
|
235
|
-
## 8.0.5-canary.0
|
236
|
-
|
237
|
-
## 8.0.4
|
238
|
-
|
239
|
-
## 8.0.4-canary.1
|
240
|
-
|
241
|
-
## 8.0.4-canary.0
|
242
|
-
|
243
|
-
## 8.0.3
|
244
|
-
|
245
|
-
## 8.0.3-canary.6
|
246
|
-
|
247
|
-
## 8.0.3-canary.5
|
248
|
-
|
249
|
-
## 8.0.3-canary.4
|
250
|
-
|
251
|
-
## 8.0.3-canary.3
|
252
|
-
|
253
|
-
## 8.0.3-canary.2
|
254
|
-
|
255
|
-
## 8.0.3-canary.1
|
256
|
-
|
257
|
-
## 8.0.3-canary.0
|
258
|
-
|
259
|
-
## 8.0.2
|
260
|
-
|
261
|
-
## 8.0.2-canary.3
|
262
|
-
|
263
|
-
## 8.0.2-canary.2
|
264
|
-
|
265
|
-
## 8.0.2-canary.1
|
266
|
-
|
267
|
-
## 8.0.2-canary.0
|
268
|
-
|
269
|
-
## 8.0.1
|
270
|
-
|
271
|
-
## 8.0.1-canary.4
|
272
|
-
|
273
|
-
## 8.0.1-canary.3
|
274
|
-
|
275
|
-
## 8.0.1-canary.2
|
276
|
-
|
277
|
-
## 8.0.1-canary.1
|
278
|
-
|
279
|
-
## 8.0.1-canary.0
|
280
|
-
|
281
23
|
## 8.0.0
|
282
24
|
|
283
25
|
### Patch Changes
|
@@ -288,230 +30,6 @@
|
|
288
30
|
|
289
31
|
- [#2160](https://github.com/graphcommerce-org/graphcommerce/pull/2160) [`fe37229`](https://github.com/graphcommerce-org/graphcommerce/commit/fe372294d6a42b1108e0fcef306b297baed5eb71) - Take the `per_page` configuration in account for the search results ([@paales](https://github.com/paales))
|
290
32
|
|
291
|
-
## 8.0.0-canary.100
|
292
|
-
|
293
|
-
## 8.0.0-canary.99
|
294
|
-
|
295
|
-
## 8.0.0-canary.98
|
296
|
-
|
297
|
-
## 8.0.0-canary.97
|
298
|
-
|
299
|
-
## 8.0.0-canary.96
|
300
|
-
|
301
|
-
## 8.0.0-canary.95
|
302
|
-
|
303
|
-
## 8.0.0-canary.94
|
304
|
-
|
305
|
-
## 8.0.0-canary.93
|
306
|
-
|
307
|
-
## 8.0.0-canary.92
|
308
|
-
|
309
|
-
## 8.0.0-canary.91
|
310
|
-
|
311
|
-
## 8.0.0-canary.90
|
312
|
-
|
313
|
-
## 8.0.0-canary.89
|
314
|
-
|
315
|
-
## 8.0.0-canary.88
|
316
|
-
|
317
|
-
## 8.0.0-canary.87
|
318
|
-
|
319
|
-
## 8.0.0-canary.86
|
320
|
-
|
321
|
-
## 8.0.0-canary.85
|
322
|
-
|
323
|
-
## 8.0.0-canary.84
|
324
|
-
|
325
|
-
## 8.0.0-canary.83
|
326
|
-
|
327
|
-
## 8.0.0-canary.82
|
328
|
-
|
329
|
-
## 8.0.0-canary.81
|
330
|
-
|
331
|
-
## 8.0.0-canary.80
|
332
|
-
|
333
|
-
## 8.0.0-canary.79
|
334
|
-
|
335
|
-
## 8.0.0-canary.78
|
336
|
-
|
337
|
-
## 8.0.0-canary.77
|
338
|
-
|
339
|
-
### Patch Changes
|
340
|
-
|
341
|
-
- [`e33660f`](https://github.com/graphcommerce-org/graphcommerce/commit/e33660f172466dcfa0ab7262cee612d9a3e47776) - a11y improvements (see https://github.com/graphcommerce-org/graphcommerce/issues/1995 for more info) ([@FrankHarland](https://github.com/FrankHarland))
|
342
|
-
|
343
|
-
## 8.0.0-canary.76
|
344
|
-
|
345
|
-
## 8.0.0-canary.75
|
346
|
-
|
347
|
-
### Patch Changes
|
348
|
-
|
349
|
-
- [#2160](https://github.com/graphcommerce-org/graphcommerce/pull/2160) [`9091dbb`](https://github.com/graphcommerce-org/graphcommerce/commit/9091dbb01a47aa6ba40932a66ed055b7f07c1cec) - Make sure the search link in the header is a nextjs navigation ([@paales](https://github.com/paales))
|
350
|
-
|
351
|
-
- [#2160](https://github.com/graphcommerce-org/graphcommerce/pull/2160) [`fe37229`](https://github.com/graphcommerce-org/graphcommerce/commit/fe372294d6a42b1108e0fcef306b297baed5eb71) - Take the per_page configuration in account for the search results ([@paales](https://github.com/paales))
|
352
|
-
|
353
|
-
## 8.0.0-canary.74
|
354
|
-
|
355
|
-
## 8.0.0-canary.73
|
356
|
-
|
357
|
-
## 8.0.0-canary.72
|
358
|
-
|
359
|
-
## 8.0.0-canary.71
|
360
|
-
|
361
|
-
## 8.0.0-canary.70
|
362
|
-
|
363
|
-
## 8.0.0-canary.69
|
364
|
-
|
365
|
-
## 7.1.0-canary.68
|
366
|
-
|
367
|
-
## 7.1.0-canary.67
|
368
|
-
|
369
|
-
## 7.1.0-canary.66
|
370
|
-
|
371
|
-
## 7.1.0-canary.65
|
372
|
-
|
373
|
-
## 7.1.0-canary.64
|
374
|
-
|
375
|
-
## 7.1.0-canary.63
|
376
|
-
|
377
|
-
## 7.1.0-canary.62
|
378
|
-
|
379
|
-
## 7.1.0-canary.61
|
380
|
-
|
381
|
-
## 7.1.0-canary.60
|
382
|
-
|
383
|
-
## 7.1.0-canary.59
|
384
|
-
|
385
|
-
## 7.1.0-canary.58
|
386
|
-
|
387
|
-
## 7.1.0-canary.57
|
388
|
-
|
389
|
-
## 7.1.0-canary.56
|
390
|
-
|
391
|
-
## 7.1.0-canary.55
|
392
|
-
|
393
|
-
## 7.1.0-canary.54
|
394
|
-
|
395
|
-
## 7.1.0-canary.53
|
396
|
-
|
397
|
-
## 7.1.0-canary.52
|
398
|
-
|
399
|
-
## 7.1.0-canary.51
|
400
|
-
|
401
|
-
## 7.1.0-canary.50
|
402
|
-
|
403
|
-
## 7.1.0-canary.49
|
404
|
-
|
405
|
-
## 7.1.0-canary.48
|
406
|
-
|
407
|
-
## 7.1.0-canary.47
|
408
|
-
|
409
|
-
## 7.1.0-canary.46
|
410
|
-
|
411
|
-
## 7.1.0-canary.45
|
412
|
-
|
413
|
-
## 7.1.0-canary.38
|
414
|
-
|
415
|
-
## 7.1.0-canary.37
|
416
|
-
|
417
|
-
## 7.1.0-canary.36
|
418
|
-
|
419
|
-
## 7.1.0-canary.35
|
420
|
-
|
421
|
-
## 7.1.0-canary.34
|
422
|
-
|
423
|
-
## 7.1.0-canary.33
|
424
|
-
|
425
|
-
## 7.1.0-canary.32
|
426
|
-
|
427
|
-
## 7.1.0-canary.31
|
428
|
-
|
429
|
-
## 7.1.0-canary.30
|
430
|
-
|
431
|
-
## 7.1.0-canary.29
|
432
|
-
|
433
|
-
## 7.1.0-canary.28
|
434
|
-
|
435
|
-
## 7.1.0-canary.27
|
436
|
-
|
437
|
-
## 7.1.0-canary.26
|
438
|
-
|
439
|
-
## 7.1.0-canary.25
|
440
|
-
|
441
|
-
## 7.1.0-canary.24
|
442
|
-
|
443
|
-
## 7.1.0-canary.23
|
444
|
-
|
445
|
-
## 7.1.0-canary.22
|
446
|
-
|
447
|
-
## 7.1.0-canary.21
|
448
|
-
|
449
|
-
## 7.1.0-canary.20
|
450
|
-
|
451
|
-
## 7.1.0-canary.19
|
452
|
-
|
453
|
-
## 7.1.0-canary.18
|
454
|
-
|
455
|
-
## 7.1.0-canary.17
|
456
|
-
|
457
|
-
## 7.1.0-canary.16
|
458
|
-
|
459
|
-
## 7.1.0-canary.15
|
460
|
-
|
461
|
-
## 7.1.0-canary.14
|
462
|
-
|
463
|
-
## 7.1.0-canary.13
|
464
|
-
|
465
|
-
## 7.1.0-canary.12
|
466
|
-
|
467
|
-
## 7.1.0-canary.11
|
468
|
-
|
469
|
-
## 7.1.0-canary.10
|
470
|
-
|
471
|
-
## 7.1.0-canary.9
|
472
|
-
|
473
|
-
## 7.1.0-canary.8
|
474
|
-
|
475
|
-
## 7.0.2-canary.7
|
476
|
-
|
477
|
-
## 7.0.2-canary.6
|
478
|
-
|
479
|
-
## 7.0.2-canary.5
|
480
|
-
|
481
|
-
## 7.0.1
|
482
|
-
|
483
|
-
## 7.0.1-canary.15
|
484
|
-
|
485
|
-
## 7.0.1-canary.14
|
486
|
-
|
487
|
-
## 7.0.1-canary.13
|
488
|
-
|
489
|
-
## 7.0.1-canary.12
|
490
|
-
|
491
|
-
## 7.0.1-canary.11
|
492
|
-
|
493
|
-
## 7.0.1-canary.10
|
494
|
-
|
495
|
-
## 7.0.1-canary.9
|
496
|
-
|
497
|
-
## 7.0.1-canary.8
|
498
|
-
|
499
|
-
## 7.0.1-canary.7
|
500
|
-
|
501
|
-
## 7.0.1-canary.6
|
502
|
-
|
503
|
-
## 7.0.1-canary.5
|
504
|
-
|
505
|
-
## 7.0.1-canary.4
|
506
|
-
|
507
|
-
## 7.0.1-canary.3
|
508
|
-
|
509
|
-
## 7.0.1-canary.2
|
510
|
-
|
511
|
-
## 7.0.1-canary.1
|
512
|
-
|
513
|
-
## 7.0.1-canary.0
|
514
|
-
|
515
33
|
## 7.0.0
|
516
34
|
|
517
35
|
### Major Changes
|
@@ -526,424 +44,18 @@
|
|
526
44
|
|
527
45
|
- [#1930](https://github.com/graphcommerce-org/graphcommerce/pull/1930) [`c8d023e9e`](https://github.com/graphcommerce-org/graphcommerce/commit/c8d023e9e874131cd9f8fe192b1fca5fe1a26ee3) - Fix the 'close menu' on search and add the option to secondary menu items ([@StefanAngenent](https://github.com/StefanAngenent))
|
528
46
|
|
529
|
-
## 6.2.0-canary.98
|
530
|
-
|
531
|
-
## 6.2.0-canary.97
|
532
|
-
|
533
|
-
## 6.2.0-canary.96
|
534
|
-
|
535
|
-
## 6.2.0-canary.95
|
536
|
-
|
537
|
-
## 6.2.0-canary.94
|
538
|
-
|
539
|
-
## 6.2.0-canary.93
|
540
|
-
|
541
|
-
## 6.2.0-canary.92
|
542
|
-
|
543
|
-
## 6.2.0-canary.91
|
544
|
-
|
545
|
-
## 6.2.0-canary.90
|
546
|
-
|
547
|
-
## 6.2.0-canary.89
|
548
|
-
|
549
|
-
## 6.2.0-canary.88
|
550
|
-
|
551
|
-
## 6.2.0-canary.87
|
552
|
-
|
553
|
-
## 6.2.0-canary.86
|
554
|
-
|
555
|
-
## 6.2.0-canary.85
|
556
|
-
|
557
|
-
## 6.2.0-canary.84
|
558
|
-
|
559
|
-
## 6.2.0-canary.83
|
560
|
-
|
561
|
-
## 6.2.0-canary.82
|
562
|
-
|
563
|
-
## 6.2.0-canary.81
|
564
|
-
|
565
|
-
## 6.2.0-canary.80
|
566
|
-
|
567
|
-
## 6.2.0-canary.79
|
568
|
-
|
569
|
-
### Patch Changes
|
570
|
-
|
571
|
-
- [#2013](https://github.com/graphcommerce-org/graphcommerce/pull/2013) [`c57bdf8a4`](https://github.com/graphcommerce-org/graphcommerce/commit/c57bdf8a4ce936c3eedc4dfada3a464a113ac68a) - Updated @mui and framer-motion packages to latest versions ([@paales](https://github.com/paales))
|
572
|
-
|
573
|
-
## 6.2.0-canary.78
|
574
|
-
|
575
|
-
## 6.2.0-canary.77
|
576
|
-
|
577
|
-
## 6.2.0-canary.76
|
578
|
-
|
579
|
-
## 6.2.0-canary.75
|
580
|
-
|
581
|
-
## 6.2.0-canary.74
|
582
|
-
|
583
|
-
## 6.2.0-canary.73
|
584
|
-
|
585
|
-
## 6.2.0-canary.72
|
586
|
-
|
587
|
-
## 6.2.0-canary.71
|
588
|
-
|
589
|
-
## 6.2.0-canary.70
|
590
|
-
|
591
|
-
## 6.2.0-canary.69
|
592
|
-
|
593
|
-
## 6.2.0-canary.68
|
594
|
-
|
595
|
-
### Minor Changes
|
596
|
-
|
597
|
-
- [#1990](https://github.com/graphcommerce-org/graphcommerce/pull/1990) [`0729105cd`](https://github.com/graphcommerce-org/graphcommerce/commit/0729105cdb84b9f73d1fda7dac7daf867f4e0b9b) - Add CategorySearchResults component that can be injected with a plugin instead of SearchForm, fix various styling issues with search ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
598
|
-
|
599
|
-
## 6.2.0-canary.67
|
600
|
-
|
601
|
-
## 6.2.0-canary.66
|
602
|
-
|
603
|
-
## 6.2.0-canary.65
|
604
|
-
|
605
|
-
## 6.2.0-canary.64
|
606
|
-
|
607
|
-
## 6.2.0-canary.63
|
608
|
-
|
609
|
-
## 6.2.0-canary.62
|
610
|
-
|
611
|
-
## 6.2.0-canary.61
|
612
|
-
|
613
|
-
## 6.2.0-canary.60
|
614
|
-
|
615
|
-
## 6.2.0-canary.59
|
616
|
-
|
617
|
-
## 6.2.0-canary.58
|
618
|
-
|
619
|
-
## 6.2.0-canary.57
|
620
|
-
|
621
|
-
## 6.2.0-canary.56
|
622
|
-
|
623
|
-
## 6.2.0-canary.55
|
624
|
-
|
625
|
-
## 6.2.0-canary.54
|
626
|
-
|
627
|
-
## 6.2.0-canary.53
|
628
|
-
|
629
|
-
## 6.2.0-canary.52
|
630
|
-
|
631
|
-
## 6.2.0-canary.51
|
632
|
-
|
633
|
-
## 6.2.0-canary.50
|
634
|
-
|
635
|
-
### Minor Changes
|
636
|
-
|
637
|
-
- [`e55d8c390`](https://github.com/graphcommerce-org/graphcommerce/commit/e55d8c390d90b4bb7bab11c6a99027ac72bd7e3e) - Created a new sidebar layout system, can be configured with productFiltersLayout in the graphcommerce.config.js ([@paales](https://github.com/paales))
|
638
|
-
|
639
|
-
## 6.2.0-canary.49
|
640
|
-
|
641
|
-
## 6.2.0-canary.48
|
642
|
-
|
643
|
-
## 6.2.0-canary.47
|
644
|
-
|
645
|
-
## 6.2.0-canary.46
|
646
|
-
|
647
|
-
## 6.2.0-canary.45
|
648
|
-
|
649
|
-
### Minor Changes
|
650
|
-
|
651
|
-
- [#1962](https://github.com/graphcommerce-org/graphcommerce/pull/1962) [`518b6ca24`](https://github.com/graphcommerce-org/graphcommerce/commit/518b6ca248fc94624dc06eb02de5b3eac0fc9483) - Created a new `<ValidatedPasswordElement/>` which validates according to Magento's validation groups and implement on all locations. Move remaining password fields to `<PasswordElement />` ([@carlocarels90](https://github.com/carlocarels90))
|
652
|
-
|
653
|
-
## 6.2.0-canary.44
|
654
|
-
|
655
|
-
## 6.2.0-canary.43
|
656
|
-
|
657
|
-
## 6.2.0-canary.42
|
658
|
-
|
659
|
-
## 6.2.0-canary.41
|
660
|
-
|
661
|
-
## 6.2.0-canary.40
|
662
|
-
|
663
|
-
## 6.2.0-canary.39
|
664
|
-
|
665
|
-
## 6.2.0-canary.38
|
666
|
-
|
667
|
-
## 6.2.0-canary.37
|
668
|
-
|
669
|
-
## 6.2.0-canary.36
|
670
|
-
|
671
|
-
## 6.2.0-canary.35
|
672
|
-
|
673
|
-
## 6.2.0-canary.34
|
674
|
-
|
675
|
-
## 6.2.0-canary.33
|
676
|
-
|
677
|
-
## 6.2.0-canary.32
|
678
|
-
|
679
|
-
## 6.2.0-canary.31
|
680
|
-
|
681
|
-
## 6.2.0-canary.30
|
682
|
-
|
683
|
-
## 6.2.0-canary.29
|
684
|
-
|
685
|
-
## 6.2.0-canary.28
|
686
|
-
|
687
|
-
## 6.2.0-canary.27
|
688
|
-
|
689
|
-
## 6.2.0-canary.26
|
690
|
-
|
691
|
-
## 6.2.0-canary.25
|
692
|
-
|
693
|
-
## 6.2.0-canary.24
|
694
|
-
|
695
|
-
## 6.2.0-canary.23
|
696
|
-
|
697
|
-
## 6.2.0-canary.22
|
698
|
-
|
699
|
-
## 6.2.0-canary.21
|
700
|
-
|
701
|
-
## 6.2.0-canary.20
|
702
|
-
|
703
|
-
## 6.2.0-canary.19
|
704
|
-
|
705
|
-
## 6.2.0-canary.18
|
706
|
-
|
707
|
-
## 6.2.0-canary.17
|
708
|
-
|
709
|
-
## 6.2.0-canary.16
|
710
|
-
|
711
|
-
### Patch Changes
|
712
|
-
|
713
|
-
- [#1930](https://github.com/graphcommerce-org/graphcommerce/pull/1930) [`c8d023e9e`](https://github.com/graphcommerce-org/graphcommerce/commit/c8d023e9e874131cd9f8fe192b1fca5fe1a26ee3) - Fix the close menu on search and add the option to secondary menu items ([@StefanAngenent](https://github.com/StefanAngenent))
|
714
|
-
|
715
|
-
## 6.2.0-canary.15
|
716
|
-
|
717
|
-
## 6.2.0-canary.14
|
718
|
-
|
719
|
-
## 6.2.0-canary.13
|
720
|
-
|
721
|
-
## 6.2.0-canary.12
|
722
|
-
|
723
|
-
## 6.2.0-canary.11
|
724
|
-
|
725
|
-
## 6.2.0-canary.10
|
726
|
-
|
727
|
-
## 6.2.0-canary.9
|
728
|
-
|
729
|
-
## 6.2.0-canary.8
|
730
|
-
|
731
|
-
## 6.2.0-canary.7
|
732
|
-
|
733
|
-
## 6.2.0-canary.6
|
734
|
-
|
735
|
-
## 6.1.1-canary.5
|
736
|
-
|
737
|
-
## 6.1.1-canary.4
|
738
|
-
|
739
|
-
## 6.1.1-canary.3
|
740
|
-
|
741
|
-
## 6.1.1-canary.2
|
742
|
-
|
743
|
-
## 6.1.1-canary.1
|
744
|
-
|
745
|
-
## 6.1.1-canary.0
|
746
|
-
|
747
|
-
## 6.1.0
|
748
|
-
|
749
|
-
## 6.0.2-canary.22
|
750
|
-
|
751
|
-
## 6.0.2-canary.21
|
752
|
-
|
753
|
-
## 6.0.2-canary.20
|
754
|
-
|
755
|
-
## 6.0.2-canary.19
|
756
|
-
|
757
|
-
## 6.0.2-canary.18
|
758
|
-
|
759
|
-
## 6.0.2-canary.17
|
760
|
-
|
761
|
-
## 6.0.2-canary.16
|
762
|
-
|
763
|
-
## 6.0.2-canary.15
|
764
|
-
|
765
|
-
## 6.0.2-canary.14
|
766
|
-
|
767
|
-
## 6.0.2-canary.13
|
768
|
-
|
769
|
-
## 6.0.2-canary.12
|
770
|
-
|
771
|
-
## 6.0.2-canary.11
|
772
|
-
|
773
|
-
## 6.0.2-canary.10
|
774
|
-
|
775
|
-
## 6.0.2-canary.9
|
776
|
-
|
777
|
-
## 6.0.2-canary.8
|
778
|
-
|
779
|
-
## 6.0.2-canary.7
|
780
|
-
|
781
|
-
## 6.0.2-canary.6
|
782
|
-
|
783
|
-
## 6.0.2-canary.5
|
784
|
-
|
785
|
-
## 6.0.2-canary.4
|
786
|
-
|
787
|
-
## 6.0.2-canary.3
|
788
|
-
|
789
|
-
## 6.0.2-canary.2
|
790
|
-
|
791
|
-
## 6.0.2-canary.1
|
792
|
-
|
793
|
-
## 6.0.2-canary.0
|
794
|
-
|
795
47
|
## 6.0.1
|
796
48
|
|
797
49
|
### Patch Changes
|
798
50
|
|
799
51
|
- [#1858](https://github.com/graphcommerce-org/graphcommerce/pull/1858) [`68ea507ba`](https://github.com/graphcommerce-org/graphcommerce/commit/68ea507baf4023f5d5a13ed50b5b53930e9fc405) - show search fab instead of SearchLink below lg breakpoint ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
800
52
|
|
801
|
-
## 6.0.1-canary.7
|
802
|
-
|
803
|
-
## 6.0.1-canary.6
|
804
|
-
|
805
|
-
### Patch Changes
|
806
|
-
|
807
|
-
- [#1858](https://github.com/graphcommerce-org/graphcommerce/pull/1858) [`68ea507ba`](https://github.com/graphcommerce-org/graphcommerce/commit/68ea507baf4023f5d5a13ed50b5b53930e9fc405) - show search fab instead of SearchLink below lg breakpoint ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
808
|
-
|
809
|
-
## 6.0.1-canary.5
|
810
|
-
|
811
|
-
## 6.0.1-canary.4
|
812
|
-
|
813
|
-
## 6.0.1-canary.3
|
814
|
-
|
815
|
-
## 6.0.1-canary.2
|
816
|
-
|
817
|
-
## 6.0.1-canary.1
|
818
|
-
|
819
|
-
## 6.0.1-canary.0
|
820
|
-
|
821
53
|
## 6.0.0
|
822
54
|
|
823
55
|
### Patch Changes
|
824
56
|
|
825
57
|
- [#1797](https://github.com/graphcommerce-org/graphcommerce/pull/1797) [`b3962828a`](https://github.com/graphcommerce-org/graphcommerce/commit/b3962828a2918e29391d16c9e2f457ea4669c3f6) - Search now uses `TextFieldElement` instead of `Textfield` which fixes the search. ([@carlocarels90](https://github.com/carlocarels90))
|
826
58
|
|
827
|
-
## 6.0.0-canary.54
|
828
|
-
|
829
|
-
## 6.0.0-canary.53
|
830
|
-
|
831
|
-
## 6.0.0-canary.52
|
832
|
-
|
833
|
-
## 6.0.0-canary.51
|
834
|
-
|
835
|
-
## 6.0.0-canary.50
|
836
|
-
|
837
|
-
## 6.0.0-canary.49
|
838
|
-
|
839
|
-
## 6.0.0-canary.48
|
840
|
-
|
841
|
-
## 6.0.0-canary.47
|
842
|
-
|
843
|
-
## 6.0.0-canary.46
|
844
|
-
|
845
|
-
## 6.0.0-canary.45
|
846
|
-
|
847
|
-
## 6.0.0-canary.44
|
848
|
-
|
849
|
-
## 6.0.0-canary.43
|
850
|
-
|
851
|
-
## 6.0.0-canary.42
|
852
|
-
|
853
|
-
## 6.0.0-canary.41
|
854
|
-
|
855
|
-
## 6.0.0-canary.40
|
856
|
-
|
857
|
-
## 6.0.0-canary.39
|
858
|
-
|
859
|
-
## 6.0.0-canary.38
|
860
|
-
|
861
|
-
## 6.0.0-canary.37
|
862
|
-
|
863
|
-
## 6.0.0-canary.36
|
864
|
-
|
865
|
-
## 6.0.0-canary.35
|
866
|
-
|
867
|
-
## 6.0.0-canary.34
|
868
|
-
|
869
|
-
## 6.0.0-canary.33
|
870
|
-
|
871
|
-
## 6.0.0-canary.32
|
872
|
-
|
873
|
-
## 6.0.0-canary.31
|
874
|
-
|
875
|
-
## 6.0.0-canary.30
|
876
|
-
|
877
|
-
## 6.0.0-canary.29
|
878
|
-
|
879
|
-
## 6.0.0-canary.28
|
880
|
-
|
881
|
-
## 6.0.0-canary.27
|
882
|
-
|
883
|
-
## 6.0.0-canary.26
|
884
|
-
|
885
|
-
## 6.0.0-canary.25
|
886
|
-
|
887
|
-
## 6.0.0-canary.24
|
888
|
-
|
889
|
-
## 6.0.0-canary.23
|
890
|
-
|
891
|
-
## 6.0.0-canary.22
|
892
|
-
|
893
|
-
## 6.0.0-canary.21
|
894
|
-
|
895
|
-
## 6.0.0-canary.20
|
896
|
-
|
897
|
-
## 5.2.0-canary.19
|
898
|
-
|
899
|
-
## 5.2.0-canary.18
|
900
|
-
|
901
|
-
## 5.2.0-canary.17
|
902
|
-
|
903
|
-
## 5.2.0-canary.16
|
904
|
-
|
905
|
-
## 5.2.0-canary.15
|
906
|
-
|
907
|
-
## 5.2.0-canary.14
|
908
|
-
|
909
|
-
## 5.2.0-canary.13
|
910
|
-
|
911
|
-
## 5.2.0-canary.12
|
912
|
-
|
913
|
-
### Patch Changes
|
914
|
-
|
915
|
-
- [#1797](https://github.com/graphcommerce-org/graphcommerce/pull/1797) [`b3962828a`](https://github.com/graphcommerce-org/graphcommerce/commit/b3962828a2918e29391d16c9e2f457ea4669c3f6) - replace 'Textfield' for 'TextFieldElement' and remove muiRegister to make the search work again. ([@carlocarels90](https://github.com/carlocarels90))
|
916
|
-
|
917
|
-
## 5.2.0-canary.11
|
918
|
-
|
919
|
-
## 5.2.0-canary.10
|
920
|
-
|
921
|
-
## 5.2.0-canary.9
|
922
|
-
|
923
|
-
## 5.2.0-canary.8
|
924
|
-
|
925
|
-
## 5.2.0-canary.7
|
926
|
-
|
927
|
-
## 5.2.0-canary.6
|
928
|
-
|
929
|
-
## 5.2.0-canary.5
|
930
|
-
|
931
|
-
## 5.2.0-canary.4
|
932
|
-
|
933
|
-
## 5.2.0-canary.3
|
934
|
-
|
935
|
-
## 5.2.0-canary.2
|
936
|
-
|
937
|
-
## 5.2.0-canary.1
|
938
|
-
|
939
|
-
## 5.2.0-canary.0
|
940
|
-
|
941
|
-
## 5.1.1
|
942
|
-
|
943
|
-
## 5.1.1-canary.1
|
944
|
-
|
945
|
-
## 5.1.1-canary.0
|
946
|
-
|
947
59
|
## 5.1.0
|
948
60
|
|
949
61
|
### Patch Changes
|
@@ -957,109 +69,18 @@
|
|
957
69
|
- Upgraded dependencies including type-fest and graphql-mesh
|
958
70
|
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
959
71
|
|
960
|
-
## 5.1.0-canary.11
|
961
|
-
|
962
|
-
## 5.1.0-canary.10
|
963
|
-
|
964
|
-
## 5.1.0-canary.9
|
965
|
-
|
966
|
-
### Patch Changes
|
967
|
-
|
968
|
-
- [#1759](https://github.com/graphcommerce-org/graphcommerce/pull/1759) [`d88e2e827`](https://github.com/graphcommerce-org/graphcommerce/commit/d88e2e8278df354946bf99119fb14b9ebf1cb94d) - Automatiically set focus on search input when loading search page (on Android) ([@bramvanderholst](https://github.com/bramvanderholst))
|
969
|
-
|
970
|
-
## 5.1.0-canary.8
|
971
|
-
|
972
|
-
## 5.1.0-canary.7
|
973
|
-
|
974
|
-
## 5.1.0-canary.6
|
975
|
-
|
976
|
-
## 5.1.0-canary.5
|
977
|
-
|
978
|
-
## 5.1.0-canary.4
|
979
|
-
|
980
|
-
## 5.1.0-canary.3
|
981
|
-
|
982
|
-
### Patch Changes
|
983
|
-
|
984
|
-
- [#1752](https://github.com/graphcommerce-org/graphcommerce/pull/1752) [`2a6a4d9ec`](https://github.com/graphcommerce-org/graphcommerce/commit/2a6a4d9ecfa1b58a66ba9b9d00016d6feda9aa95) - Updated dependencies to latest versions, except for nextjs; Solve tons of peer dependency issues.
|
985
|
-
|
986
|
-
- Updated the @mui/material package
|
987
|
-
- Removed dependencies on react-hook-form-mui and @playwright/test
|
988
|
-
- Upgraded dependencies including type-fest and graphql-mesh
|
989
|
-
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
990
|
-
|
991
|
-
## 5.1.0-canary.2
|
992
|
-
|
993
|
-
## 5.1.0-canary.1
|
994
|
-
|
995
|
-
## 5.1.0-canary.0
|
996
|
-
|
997
72
|
## 5.0.0
|
998
73
|
|
999
74
|
### Major Changes
|
1000
75
|
|
1001
76
|
- [#1734](https://github.com/graphcommerce-org/graphcommerce/pull/1734) [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@github-actions](https://github.com/apps/github-actions))
|
1002
77
|
|
1003
|
-
## 5.0.0-canary.14
|
1004
|
-
|
1005
|
-
## 5.0.0-canary.13
|
1006
|
-
|
1007
|
-
### Major Changes
|
1008
|
-
|
1009
|
-
- [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@paales](https://github.com/paales))
|
1010
|
-
|
1011
|
-
## 4.14.0-canary.12
|
1012
|
-
|
1013
|
-
## 4.14.0-canary.11
|
1014
|
-
|
1015
|
-
## 4.14.0-canary.10
|
1016
|
-
|
1017
|
-
## 4.14.0-canary.9
|
1018
|
-
|
1019
|
-
## 4.14.0-canary.8
|
1020
|
-
|
1021
|
-
## 4.14.0-canary.7
|
1022
|
-
|
1023
|
-
## 4.14.0-canary.6
|
1024
|
-
|
1025
|
-
## 4.14.0-canary.5
|
1026
|
-
|
1027
|
-
## 4.14.0-canary.4
|
1028
|
-
|
1029
|
-
## 4.14.0-canary.3
|
1030
|
-
|
1031
|
-
## 4.14.0-canary.2
|
1032
|
-
|
1033
|
-
## 4.13.2-canary.1
|
1034
|
-
|
1035
|
-
## 4.13.2-canary.0
|
1036
|
-
|
1037
|
-
## 4.13.3
|
1038
|
-
|
1039
|
-
## 4.13.2
|
1040
|
-
|
1041
|
-
## 4.13.1
|
1042
|
-
|
1043
|
-
## 4.13.1-canary.2
|
1044
|
-
|
1045
|
-
## 4.13.1-canary.1
|
1046
|
-
|
1047
|
-
## 4.13.1-canary.0
|
1048
|
-
|
1049
78
|
## 4.13.0
|
1050
79
|
|
1051
80
|
### Patch Changes
|
1052
81
|
|
1053
82
|
- [#1702](https://github.com/graphcommerce-org/graphcommerce/pull/1702) [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
1054
83
|
|
1055
|
-
## 4.13.0-canary.1
|
1056
|
-
|
1057
|
-
### Patch Changes
|
1058
|
-
|
1059
|
-
- [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
1060
|
-
|
1061
|
-
## 4.13.0-canary.0
|
1062
|
-
|
1063
84
|
## 4.2.16
|
1064
85
|
|
1065
86
|
### Patch Changes
|
@@ -1,14 +1,15 @@
|
|
1
1
|
import { Highlight, iconChevronRight, IconSvg, extendableComponent } from '@graphcommerce/next-ui'
|
2
|
-
import {
|
2
|
+
import type { SxProps, Theme } from '@mui/material'
|
3
|
+
import { Button } from '@mui/material'
|
3
4
|
import React from 'react'
|
4
|
-
import { CategorySearchResultFragment } from './CategorySearchResult.gql'
|
5
|
+
import type { CategorySearchResultFragment } from './CategorySearchResult.gql'
|
5
6
|
|
6
7
|
export type CategorySearchResultProps = Omit<CategorySearchResultFragment, 'uid'> & {
|
7
8
|
search?: string
|
8
9
|
sx?: SxProps<Theme>
|
9
10
|
}
|
10
11
|
|
11
|
-
const name = 'CategorySearchResult'
|
12
|
+
const name = 'CategorySearchResult'
|
12
13
|
const parts = ['root'] as const
|
13
14
|
const { classes } = extendableComponent(name, parts)
|
14
15
|
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { extendableComponent } from '@graphcommerce/next-ui'
|
2
2
|
import { Trans } from '@lingui/react'
|
3
|
-
import {
|
3
|
+
import type { SxProps, Theme } from '@mui/material'
|
4
|
+
import { Box, Typography } from '@mui/material'
|
4
5
|
|
5
6
|
export type NoSearchResultsProps = { sx?: SxProps<Theme> }
|
6
7
|
|
7
|
-
const name = 'NoSearchResults'
|
8
|
+
const name = 'NoSearchResults'
|
8
9
|
const parts = ['root'] as const
|
9
10
|
const { classes } = extendableComponent(name, parts)
|
10
11
|
|
@@ -3,9 +3,9 @@ import type {
|
|
3
3
|
CategoryTreeItem,
|
4
4
|
NavigationItemFragment,
|
5
5
|
} from '@graphcommerce/magento-category'
|
6
|
+
import type { ProductFiltersProCategoryAccordionProps } from '@graphcommerce/magento-product'
|
6
7
|
import {
|
7
8
|
ProductFiltersProCategoryAccordion,
|
8
|
-
ProductFiltersProCategoryAccordionProps,
|
9
9
|
useProductFiltersPro,
|
10
10
|
} from '@graphcommerce/magento-product'
|
11
11
|
import { filterNonNullableKeys } from '@graphcommerce/next-ui'
|
@@ -90,7 +90,7 @@ export function ProductFiltersProCategorySectionSearch(
|
|
90
90
|
props: ProductFiltersProCategorySectionSearchProps,
|
91
91
|
) {
|
92
92
|
const { menu } = props
|
93
|
-
const { form, submit, params, aggregations
|
93
|
+
const { form, submit, params, aggregations } = useProductFiltersPro()
|
94
94
|
const currentFilter = params.filters.category_uid?.in
|
95
95
|
|
96
96
|
const categoryTree = useMemo(() => {
|
@@ -148,9 +148,9 @@ export function ProductFiltersProCategorySectionSearch(
|
|
148
148
|
})
|
149
149
|
.slice(1)
|
150
150
|
.filter((c) => c.visible)
|
151
|
-
}, [
|
151
|
+
}, [aggregations, currentFilter, menu?.items])
|
152
152
|
|
153
|
-
if (!categoryTree) return null
|
153
|
+
if (!categoryTree.length) return null
|
154
154
|
|
155
155
|
return (
|
156
156
|
<ProductFiltersProCategoryAccordion
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { IconSvg, iconSearch, showPageLoadIndicator } from '@graphcommerce/next-ui'
|
2
|
-
import {
|
2
|
+
import type { FabProps } from '@mui/material'
|
3
|
+
import { Fab } from '@mui/material'
|
3
4
|
import dynamic from 'next/dynamic'
|
4
5
|
import { useMemo, useState } from 'react'
|
5
|
-
import { ProductFiltersProSearchInputProps } from './ProductFiltersProSearchInput'
|
6
|
+
import type { ProductFiltersProSearchInputProps } from './ProductFiltersProSearchInput'
|
6
7
|
import { useSearchPageAndParam } from './useSearchPageAndParam'
|
7
8
|
|
8
9
|
type ProductFiltersProSearchFieldProps = ProductFiltersProSearchInputProps & {
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ProductListParams
|
1
|
+
import type { ProductListParams } from '@graphcommerce/magento-product'
|
2
|
+
import { useProductFiltersPro } from '@graphcommerce/magento-product'
|
2
3
|
import { useWatch } from '@graphcommerce/react-hook-form'
|
3
4
|
import { Trans } from '@lingui/macro'
|
4
5
|
import { Box } from '@mui/material'
|
@@ -1,17 +1,14 @@
|
|
1
1
|
import { globalFormContextRef } from '@graphcommerce/magento-product'
|
2
2
|
import { IconSvg, iconClose } from '@graphcommerce/next-ui'
|
3
3
|
import { t } from '@lingui/macro'
|
4
|
-
import {
|
4
|
+
import type {
|
5
5
|
ButtonBaseProps,
|
6
|
-
FormControl,
|
7
6
|
FormControlProps,
|
8
|
-
IconButton,
|
9
7
|
IconButtonProps,
|
10
8
|
InputBaseProps,
|
11
|
-
OutlinedInput,
|
12
9
|
OutlinedInputProps,
|
13
|
-
useForkRef,
|
14
10
|
} from '@mui/material'
|
11
|
+
import { FormControl, IconButton, OutlinedInput, useForkRef } from '@mui/material'
|
15
12
|
import { useRouter } from 'next/router'
|
16
13
|
import { useEffect, useRef } from 'react'
|
17
14
|
import { useSearchPageAndParam } from './useSearchPageAndParam'
|
@@ -5,7 +5,7 @@ export function useSearchPageAndParam() {
|
|
5
5
|
const router = useRouter()
|
6
6
|
|
7
7
|
const path = router.asPath.startsWith('/c/') ? router.asPath.slice(3) : router.asPath.slice(1)
|
8
|
-
const [url
|
8
|
+
const [url] = extractUrlQuery({ url: path.split('#')[0].split('/') })
|
9
9
|
const searchParam = url?.startsWith('search') ? decodeURI(url.split('/')[1] ?? '') : null
|
10
10
|
const searchPage = router.asPath.startsWith('/search')
|
11
11
|
return [searchPage, searchParam] as const
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { iconSearch, responsiveVal, IconSvg, extendableComponent } from '@graphcommerce/next-ui'
|
2
2
|
import { Trans } from '@lingui/react'
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
4
|
-
import {
|
4
|
+
import type { TextFieldProps } from '@mui/material'
|
5
|
+
import { TextField } from '@mui/material'
|
5
6
|
|
6
7
|
export type SearchButtonProps = TextFieldProps
|
7
8
|
|
8
9
|
type OwnerState = { fullWidth?: boolean }
|
9
|
-
const name = 'SearchButton'
|
10
|
+
const name = 'SearchButton'
|
10
11
|
const parts = ['root', 'inputRoot'] as const
|
11
12
|
const { withState } = extendableComponent<OwnerState, typeof name, typeof parts>(name, parts)
|
12
13
|
|
@@ -1,7 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import type { TextFieldElementProps } from '@graphcommerce/ecommerce-ui'
|
2
|
+
import { TextFieldElement } from '@graphcommerce/ecommerce-ui'
|
2
3
|
import { extendableComponent } from '@graphcommerce/next-ui'
|
3
4
|
import { FormAutoSubmit, useForm } from '@graphcommerce/react-hook-form'
|
4
|
-
import {
|
5
|
+
import type { SxProps, Theme } from '@mui/material'
|
6
|
+
import { Box } from '@mui/material'
|
5
7
|
import { useRouter } from 'next/router'
|
6
8
|
import { useEffect, useRef } from 'react'
|
7
9
|
import { SearchFormAdornment } from './SearchFormAdornment'
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { IconSvg, iconSearch, iconClose } from '@graphcommerce/next-ui'
|
2
|
-
import { Control, FieldPath, FieldValues
|
2
|
+
import type { Control, FieldPath, FieldValues } from '@graphcommerce/react-hook-form'
|
3
|
+
import { useWatch } from '@graphcommerce/react-hook-form'
|
3
4
|
import { i18n } from '@lingui/core'
|
4
5
|
import { IconButton } from '@mui/material'
|
5
6
|
|
@@ -6,9 +6,10 @@ import {
|
|
6
6
|
useFabSize,
|
7
7
|
useIconSvgSize,
|
8
8
|
} from '@graphcommerce/next-ui'
|
9
|
-
import { Breakpoint,
|
9
|
+
import type { Breakpoint, FabProps, LinkProps } from '@mui/material'
|
10
|
+
import { Fab, Link } from '@mui/material'
|
10
11
|
import { useRouter } from 'next/router'
|
11
|
-
import { KeyboardEventHandler, MouseEventHandler } from 'react'
|
12
|
+
import type { KeyboardEventHandler, MouseEventHandler } from 'react'
|
12
13
|
import type { SetRequired } from 'type-fest'
|
13
14
|
|
14
15
|
export type SearchLinkProps = {
|
@@ -16,7 +17,7 @@ export type SearchLinkProps = {
|
|
16
17
|
fab?: FabProps
|
17
18
|
} & SetRequired<Pick<LinkProps<'a'>, 'href' | 'sx' | 'children' | 'onClick'>, 'href'>
|
18
19
|
|
19
|
-
const name = 'SearchLink'
|
20
|
+
const name = 'SearchLink'
|
20
21
|
const parts = ['root', 'text', 'svg'] as const
|
21
22
|
const { classes } = extendableComponent(name, parts)
|
22
23
|
|
package/hooks/useProductList.ts
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
import { useInContextQuery, useQuery } from '@graphcommerce/graphql'
|
2
|
-
import {
|
2
|
+
import type {
|
3
3
|
FilterFormProviderProps,
|
4
|
-
ProductFiltersDocument,
|
5
4
|
ProductFiltersQuery,
|
6
|
-
ProductListDocument,
|
7
5
|
ProductListParams,
|
8
6
|
ProductListQuery,
|
7
|
+
} from '@graphcommerce/magento-product'
|
8
|
+
import {
|
9
|
+
ProductFiltersDocument,
|
10
|
+
ProductListDocument,
|
9
11
|
prefetchProductList,
|
10
12
|
toProductListParams,
|
11
13
|
useRouterFilterParams,
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/magento-search",
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
5
|
-
"version": "9.0.0-canary.
|
5
|
+
"version": "9.0.0-canary.103",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -12,16 +12,16 @@
|
|
12
12
|
}
|
13
13
|
},
|
14
14
|
"peerDependencies": {
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
17
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
18
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
19
|
-
"@graphcommerce/magento-product": "^9.0.0-canary.
|
20
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
21
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
22
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
23
|
-
"@graphcommerce/react-hook-form": "^9.0.0-canary.
|
24
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.103",
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.103",
|
17
|
+
"@graphcommerce/graphql": "^9.0.0-canary.103",
|
18
|
+
"@graphcommerce/image": "^9.0.0-canary.103",
|
19
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.103",
|
20
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.103",
|
21
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.103",
|
22
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.103",
|
23
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.103",
|
24
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.103",
|
25
25
|
"@lingui/core": "^4.2.1",
|
26
26
|
"@lingui/macro": "^4.2.1",
|
27
27
|
"@lingui/react": "^4.2.1",
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { cloneDeep, useQuery } from '@graphcommerce/graphql'
|
2
|
-
import { ProductListParams, ProductListQueryVariables } from '@graphcommerce/magento-product'
|
3
|
-
import {
|
2
|
+
import type { ProductListParams, ProductListQueryVariables } from '@graphcommerce/magento-product'
|
3
|
+
import type { StoreConfigQuery } from '@graphcommerce/magento-store'
|
4
|
+
import { StoreConfigDocument } from '@graphcommerce/magento-store'
|
4
5
|
|
5
6
|
export function useProductListApplySearchDefaults(
|
6
7
|
params: ProductListParams | undefined,
|