@graphcommerce/algolia-search 9.0.0-canary.99 → 9.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 CHANGED
@@ -1,272 +1,48 @@
1
1
  # @graphcommerce/algolia-search
2
2
 
3
- ## 9.0.0-canary.99
3
+ ## 9.0.1-canary.0
4
4
 
5
- ## 9.0.0-canary.98
5
+ ## 9.0.0
6
6
 
7
- ## 9.0.0-canary.97
8
-
9
- ## 9.0.0-canary.96
10
-
11
- ## 9.0.0-canary.95
12
-
13
- ## 9.0.0-canary.94
14
-
15
- ## 9.0.0-canary.93
16
-
17
- ## 9.0.0-canary.92
18
-
19
- ## 9.0.0-canary.91
20
-
21
- ## 9.0.0-canary.90
22
-
23
- ## 9.0.0-canary.89
24
-
25
- ## 9.0.0-canary.88
26
-
27
- ## 9.0.0-canary.87
28
-
29
- ## 9.0.0-canary.86
30
-
31
- ## 9.0.0-canary.85
32
-
33
- ## 9.0.0-canary.84
34
-
35
- ## 9.0.0-canary.83
36
-
37
- ## 9.0.0-canary.82
38
-
39
- ## 9.0.0-canary.81
40
-
41
- ## 9.0.0-canary.80
42
-
43
- ## 9.0.0-canary.79
44
-
45
- ## 9.0.0-canary.78
46
-
47
- ## 9.0.0-canary.77
48
-
49
- ## 9.0.0-canary.76
50
-
51
- ## 9.0.0-canary.75
52
-
53
- ## 9.0.0-canary.74
54
-
55
- ## 9.0.0-canary.73
56
-
57
- ## 9.0.0-canary.72
58
-
59
- ## 9.0.0-canary.71
60
-
61
- ## 9.0.0-canary.70
62
-
63
- ## 9.0.0-canary.69
64
-
65
- ## 9.0.0-canary.68
66
-
67
- ## 9.0.0-canary.67
68
-
69
- ## 9.0.0-canary.66
70
-
71
- ## 9.0.0-canary.65
72
-
73
- ## 9.0.0-canary.64
74
-
75
- ## 9.0.0-canary.63
76
-
77
- ## 9.0.0-canary.62
78
-
79
- ## 9.0.0-canary.61
80
-
81
- ## 9.0.0-canary.60
82
-
83
- ## 9.0.0-canary.59
84
-
85
- ## 9.0.0-canary.58
86
-
87
- ## 9.0.0-canary.57
88
-
89
- ## 9.0.0-canary.56
90
-
91
- ## 9.0.0-canary.55
92
-
93
- ## 9.0.0-canary.54
94
-
95
- ## 8.1.0-canary.53
96
-
97
- ## 8.1.0-canary.52
98
-
99
- ## 8.1.0-canary.51
100
-
101
- ## 8.1.0-canary.50
102
-
103
- ## 8.1.0-canary.49
104
-
105
- ## 8.1.0-canary.48
106
-
107
- ## 8.1.0-canary.47
108
-
109
- ## 8.1.0-canary.46
110
-
111
- ## 8.1.0-canary.45
112
-
113
- ## 8.1.0-canary.44
114
-
115
- ## 8.1.0-canary.43
116
-
117
- ## 8.1.0-canary.42
118
-
119
- ## 8.1.0-canary.41
120
-
121
- ## 8.1.0-canary.40
122
-
123
- ## 8.1.0-canary.39
124
-
125
- ## 8.1.0-canary.38
126
-
127
- ## 8.1.0-canary.37
128
-
129
- ## 8.1.0-canary.36
130
-
131
- ## 8.1.0-canary.35
132
-
133
- ## 8.1.0-canary.34
134
-
135
- ## 8.1.0-canary.33
136
-
137
- ## 8.1.0-canary.32
138
-
139
- ## 8.1.0-canary.31
140
-
141
- ## 8.1.0-canary.30
142
-
143
- ## 8.1.0-canary.29
144
-
145
- ## 8.1.0-canary.28
146
-
147
- ## 8.1.0-canary.27
148
-
149
- ## 8.1.0-canary.26
150
-
151
- ## 8.1.0-canary.25
152
-
153
- ## 8.1.0-canary.24
154
-
155
- ## 8.1.0-canary.23
156
-
157
- ## 8.1.0-canary.22
158
-
159
- ## 8.1.0-canary.21
160
-
161
- ## 8.1.0-canary.20
162
-
163
- ## 8.1.0-canary.19
164
-
165
- ## 8.1.0-canary.18
166
-
167
- ## 8.1.0-canary.17
168
-
169
- ## 8.1.0-canary.16
170
-
171
- ## 8.1.0-canary.15
172
-
173
- ## 8.1.0-canary.14
174
-
175
- ## 8.1.0-canary.13
176
-
177
- ## 8.1.0-canary.12
178
-
179
- ## 8.1.0-canary.11
180
-
181
- ## 8.1.0-canary.10
182
-
183
- ## 8.1.0-canary.9
184
-
185
- ## 8.1.0-canary.8
186
-
187
- ## 8.1.0-canary.7
188
-
189
- ## 8.1.0-canary.6
190
-
191
- ## 8.1.0-canary.5
192
-
193
- ## 8.0.6-canary.4
194
-
195
- ## 8.0.6-canary.3
196
-
197
- ## 8.0.6-canary.2
198
-
199
- ## 8.0.6-canary.1
200
-
201
- ## 8.0.6-canary.0
202
-
203
- ## 8.0.5
204
-
205
- ## 8.0.5-canary.10
206
-
207
- ## 8.0.5-canary.9
208
-
209
- ## 8.0.5-canary.8
210
-
211
- ## 8.0.5-canary.7
212
-
213
- ## 8.0.5-canary.6
214
-
215
- ## 8.0.5-canary.5
216
-
217
- ## 8.0.5-canary.4
218
-
219
- ## 8.0.5-canary.3
220
-
221
- ## 8.0.5-canary.2
222
-
223
- ## 8.0.5-canary.1
224
-
225
- ## 8.0.5-canary.0
226
-
227
- ## 8.0.4
228
-
229
- ## 8.0.4-canary.1
230
-
231
- ## 8.0.4-canary.0
7
+ ### Patch Changes
232
8
 
233
- ## 8.0.3
9
+ - [#2438](https://github.com/graphcommerce-org/graphcommerce/pull/2438) [`cb8d2f0`](https://github.com/graphcommerce-org/graphcommerce/commit/cb8d2f0059d64242260e30ce34655868f204ef4c) - Made all component prop types exported ([@bramvanderholst](https://github.com/bramvanderholst))
234
10
 
235
- ## 8.0.3-canary.6
11
+ ## 9.0.0-canary.118
236
12
 
237
- ## 8.0.3-canary.5
13
+ ## 9.0.0-canary.117
238
14
 
239
- ## 8.0.3-canary.4
15
+ ## 9.0.0-canary.116
240
16
 
241
- ## 8.0.3-canary.3
17
+ ## 9.0.0-canary.115
242
18
 
243
- ## 8.0.3-canary.2
19
+ ## 9.0.0-canary.114
244
20
 
245
- ## 8.0.3-canary.1
21
+ ## 9.0.0-canary.113
246
22
 
247
- ## 8.0.3-canary.0
23
+ ## 9.0.0-canary.112
248
24
 
249
- ## 8.0.2
25
+ ## 9.0.0-canary.111
250
26
 
251
- ## 8.0.2-canary.3
27
+ ## 9.0.0-canary.110
252
28
 
253
- ## 8.0.2-canary.2
29
+ ## 9.0.0-canary.109
254
30
 
255
- ## 8.0.2-canary.1
31
+ ## 9.0.0-canary.108
256
32
 
257
- ## 8.0.2-canary.0
33
+ ### Patch Changes
258
34
 
259
- ## 8.0.1
35
+ - [#2438](https://github.com/graphcommerce-org/graphcommerce/pull/2438) [`cb8d2f0`](https://github.com/graphcommerce-org/graphcommerce/commit/cb8d2f0059d64242260e30ce34655868f204ef4c) - Made all component prop types exported ([@bramvanderholst](https://github.com/bramvanderholst))
260
36
 
261
- ## 8.0.1-canary.4
37
+ ## 9.0.0-canary.107
262
38
 
263
- ## 8.0.1-canary.3
39
+ ## 9.0.0-canary.106
264
40
 
265
- ## 8.0.1-canary.2
41
+ ## 9.0.0-canary.105
266
42
 
267
- ## 8.0.1-canary.1
43
+ ## 9.0.0-canary.104
268
44
 
269
- ## 8.0.1-canary.0
45
+ ## 9.0.0-canary.103
270
46
 
271
47
  ## 8.0.0
272
48
 
@@ -274,224 +50,6 @@
274
50
 
275
51
  - [#2172](https://github.com/graphcommerce-org/graphcommerce/pull/2172) [`279599e`](https://github.com/graphcommerce-org/graphcommerce/commit/279599e7a86bd96ea9e36065af3c367df9e02a63) - Updated examples in the documentation to reflect the changes made in GraphCommerce. ([@paales](https://github.com/paales))
276
52
 
277
- ## 8.0.0-canary.100
278
-
279
- ## 8.0.0-canary.99
280
-
281
- ## 8.0.0-canary.98
282
-
283
- ## 8.0.0-canary.97
284
-
285
- ## 8.0.0-canary.96
286
-
287
- ## 8.0.0-canary.95
288
-
289
- ## 8.0.0-canary.94
290
-
291
- ## 8.0.0-canary.93
292
-
293
- ## 8.0.0-canary.92
294
-
295
- ## 8.0.0-canary.91
296
-
297
- ### Patch Changes
298
-
299
- - [#2172](https://github.com/graphcommerce-org/graphcommerce/pull/2172) [`279599e`](https://github.com/graphcommerce-org/graphcommerce/commit/279599e7a86bd96ea9e36065af3c367df9e02a63) - Updated documentation to reflect recent code changes ([@paales](https://github.com/paales))
300
-
301
- ## 8.0.0-canary.90
302
-
303
- ## 8.0.0-canary.89
304
-
305
- ## 8.0.0-canary.88
306
-
307
- ## 8.0.0-canary.87
308
-
309
- ## 8.0.0-canary.86
310
-
311
- ## 8.0.0-canary.85
312
-
313
- ## 8.0.0-canary.84
314
-
315
- ## 8.0.0-canary.83
316
-
317
- ## 8.0.0-canary.82
318
-
319
- ## 8.0.0-canary.81
320
-
321
- ## 8.0.0-canary.80
322
-
323
- ## 8.0.0-canary.79
324
-
325
- ## 8.0.0-canary.78
326
-
327
- ## 8.0.0-canary.77
328
-
329
- ## 8.0.0-canary.76
330
-
331
- ## 8.0.0-canary.75
332
-
333
- ## 8.0.0-canary.74
334
-
335
- ## 8.0.0-canary.73
336
-
337
- ## 8.0.0-canary.72
338
-
339
- ## 8.0.0-canary.71
340
-
341
- ## 8.0.0-canary.70
342
-
343
- ## 8.0.0-canary.69
344
-
345
- ## 7.1.0-canary.68
346
-
347
- ## 7.1.0-canary.67
348
-
349
- ## 7.1.0-canary.66
350
-
351
- ## 7.1.0-canary.65
352
-
353
- ## 7.1.0-canary.64
354
-
355
- ## 7.1.0-canary.63
356
-
357
- ## 7.1.0-canary.62
358
-
359
- ## 7.1.0-canary.61
360
-
361
- ## 7.1.0-canary.60
362
-
363
- ## 7.1.0-canary.59
364
-
365
- ## 7.1.0-canary.58
366
-
367
- ## 7.1.0-canary.57
368
-
369
- ## 7.1.0-canary.56
370
-
371
- ## 7.1.0-canary.55
372
-
373
- ## 7.1.0-canary.54
374
-
375
- ## 7.1.0-canary.53
376
-
377
- ## 7.1.0-canary.52
378
-
379
- ## 7.1.0-canary.51
380
-
381
- ## 7.1.0-canary.50
382
-
383
- ## 7.1.0-canary.49
384
-
385
- ## 7.1.0-canary.48
386
-
387
- ## 7.1.0-canary.47
388
-
389
- ## 7.1.0-canary.46
390
-
391
- ## 7.1.0-canary.45
392
-
393
- ## 7.1.0-canary.38
394
-
395
- ## 7.1.0-canary.37
396
-
397
- ## 7.1.0-canary.36
398
-
399
- ## 7.1.0-canary.35
400
-
401
- ## 7.1.0-canary.34
402
-
403
- ## 7.1.0-canary.33
404
-
405
- ## 7.1.0-canary.32
406
-
407
- ## 7.1.0-canary.31
408
-
409
- ## 7.1.0-canary.30
410
-
411
- ## 7.1.0-canary.29
412
-
413
- ## 7.1.0-canary.28
414
-
415
- ## 7.1.0-canary.27
416
-
417
- ## 7.1.0-canary.26
418
-
419
- ## 7.1.0-canary.25
420
-
421
- ## 7.1.0-canary.24
422
-
423
- ## 7.1.0-canary.23
424
-
425
- ## 7.1.0-canary.22
426
-
427
- ## 7.1.0-canary.21
428
-
429
- ## 7.1.0-canary.20
430
-
431
- ## 7.1.0-canary.19
432
-
433
- ## 7.1.0-canary.18
434
-
435
- ## 7.1.0-canary.17
436
-
437
- ## 7.1.0-canary.16
438
-
439
- ## 7.1.0-canary.15
440
-
441
- ## 7.1.0-canary.14
442
-
443
- ## 7.1.0-canary.13
444
-
445
- ## 7.1.0-canary.12
446
-
447
- ## 7.1.0-canary.11
448
-
449
- ## 7.1.0-canary.10
450
-
451
- ## 7.1.0-canary.9
452
-
453
- ## 7.1.0-canary.8
454
-
455
- ## 7.0.2-canary.7
456
-
457
- ## 7.0.2-canary.6
458
-
459
- ## 7.0.2-canary.5
460
-
461
- ## 7.0.1
462
-
463
- ## 7.0.1-canary.15
464
-
465
- ## 7.0.1-canary.14
466
-
467
- ## 7.0.1-canary.13
468
-
469
- ## 7.0.1-canary.12
470
-
471
- ## 7.0.1-canary.11
472
-
473
- ## 7.0.1-canary.10
474
-
475
- ## 7.0.1-canary.9
476
-
477
- ## 7.0.1-canary.8
478
-
479
- ## 7.0.1-canary.7
480
-
481
- ## 7.0.1-canary.6
482
-
483
- ## 7.0.1-canary.5
484
-
485
- ## 7.0.1-canary.4
486
-
487
- ## 7.0.1-canary.3
488
-
489
- ## 7.0.1-canary.2
490
-
491
- ## 7.0.1-canary.1
492
-
493
- ## 7.0.1-canary.0
494
-
495
53
  ## 7.0.0
496
54
 
497
55
  ### Major Changes
@@ -505,205 +63,3 @@
505
63
  ### Patch Changes
506
64
 
507
65
  - [#2026](https://github.com/graphcommerce-org/graphcommerce/pull/2026) [`c1b76eb4d`](https://github.com/graphcommerce-org/graphcommerce/commit/c1b76eb4d70cf5cef9f768bb1f4986e639b31932) - Improved documentation @graphcommerce/algolia-search ([@mikekeehnen](https://github.com/mikekeehnen))
508
-
509
- ## 6.2.0-canary.98
510
-
511
- ## 6.2.0-canary.97
512
-
513
- ## 6.2.0-canary.96
514
-
515
- ## 6.2.0-canary.95
516
-
517
- ## 6.2.0-canary.94
518
-
519
- ## 6.2.0-canary.93
520
-
521
- ## 6.2.0-canary.92
522
-
523
- ### Patch Changes
524
-
525
- - [#2026](https://github.com/graphcommerce-org/graphcommerce/pull/2026) [`c1b76eb4d`](https://github.com/graphcommerce-org/graphcommerce/commit/c1b76eb4d70cf5cef9f768bb1f4986e639b31932) - Improved documentation @graphcommerce/algolia-search ([@mikekeehnen](https://github.com/mikekeehnen))
526
-
527
- ## 6.2.0-canary.91
528
-
529
- ## 6.2.0-canary.90
530
-
531
- ## 6.2.0-canary.89
532
-
533
- ## 6.2.0-canary.88
534
-
535
- ## 6.2.0-canary.87
536
-
537
- ## 6.2.0-canary.86
538
-
539
- ## 6.2.0-canary.85
540
-
541
- ## 6.2.0-canary.84
542
-
543
- ## 6.2.0-canary.83
544
-
545
- ## 6.2.0-canary.82
546
-
547
- ## 6.2.0-canary.81
548
-
549
- ## 6.2.0-canary.80
550
-
551
- ## 6.2.0-canary.79
552
-
553
- ## 6.2.0-canary.78
554
-
555
- ### Minor Changes
556
-
557
- - [#1988](https://github.com/graphcommerce-org/graphcommerce/pull/1988) [`af8e0d176`](https://github.com/graphcommerce-org/graphcommerce/commit/af8e0d176af8197a0c13b9a29b438cb54cc29ce4) - Multi website with multiple duplicates locales support. Use `en-us-website1`, `en-us-website2` as the locale declaration. ([@hnsr](https://github.com/hnsr))
558
-
559
- ## 6.2.0-canary.77
560
-
561
- ## 6.2.0-canary.76
562
-
563
- ## 6.2.0-canary.75
564
-
565
- ## 6.2.0-canary.74
566
-
567
- ## 6.2.0-canary.73
568
-
569
- ## 6.2.0-canary.72
570
-
571
- ## 6.2.0-canary.71
572
-
573
- ## 6.2.0-canary.70
574
-
575
- ## 6.2.0-canary.69
576
-
577
- ## 6.2.0-canary.68
578
-
579
- ### Minor Changes
580
-
581
- - [#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))
582
-
583
- ## 6.2.0-canary.67
584
-
585
- ## 6.2.0-canary.66
586
-
587
- ## 6.2.0-canary.65
588
-
589
- ## 6.2.0-canary.64
590
-
591
- ## 6.2.0-canary.63
592
-
593
- ## 6.2.0-canary.62
594
-
595
- ## 6.2.0-canary.61
596
-
597
- ## 6.2.0-canary.60
598
-
599
- ## 6.2.0-canary.59
600
-
601
- ## 6.2.0-canary.58
602
-
603
- ### Patch Changes
604
-
605
- - [#1981](https://github.com/graphcommerce-org/graphcommerce/pull/1981) [`5936ea5f3`](https://github.com/graphcommerce-org/graphcommerce/commit/5936ea5f3f77fa303ca6d57187cb921dafeffb4d) - Fix algolia autofocus ([@StefanAngenent](https://github.com/StefanAngenent))
606
-
607
- ## 6.2.0-canary.57
608
-
609
- ## 6.2.0-canary.56
610
-
611
- ### Patch Changes
612
-
613
- - [#1971](https://github.com/graphcommerce-org/graphcommerce/pull/1971) [`1c77da7f9`](https://github.com/graphcommerce-org/graphcommerce/commit/1c77da7f951e34a28df586fcaedf7a0a2c97ba60) - Bug fixes for Algolia Search. Linking via indexed categories is now possible, Mobile Header wil now render results correctly and server side data hydration will no longer be reliant on the locale provided by Lingui. ([@mikekeehnen](https://github.com/mikekeehnen))
614
-
615
- ## 6.2.0-canary.55
616
-
617
- ## 6.2.0-canary.54
618
-
619
- ## 6.2.0-canary.53
620
-
621
- ## 6.2.0-canary.52
622
-
623
- ## 6.2.0-canary.51
624
-
625
- ## 6.2.0-canary.50
626
-
627
- ### Minor Changes
628
-
629
- - [`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))
630
-
631
- ## 6.2.0-canary.49
632
-
633
- ## 6.2.0-canary.48
634
-
635
- ## 6.2.0-canary.47
636
-
637
- ## 6.2.0-canary.46
638
-
639
- ## 6.2.0-canary.45
640
-
641
- ## 6.2.0-canary.44
642
-
643
- ## 6.2.0-canary.43
644
-
645
- ## 6.2.0-canary.42
646
-
647
- ## 6.2.0-canary.41
648
-
649
- ## 6.2.0-canary.40
650
-
651
- ## 6.2.0-canary.39
652
-
653
- ## 6.2.0-canary.38
654
-
655
- ## 6.2.0-canary.37
656
-
657
- ## 6.2.0-canary.36
658
-
659
- ## 6.2.0-canary.35
660
-
661
- ## 6.2.0-canary.34
662
-
663
- ## 6.2.0-canary.33
664
-
665
- ## 6.2.0-canary.32
666
-
667
- ## 6.2.0-canary.31
668
-
669
- ## 6.2.0-canary.30
670
-
671
- ## 6.2.0-canary.29
672
-
673
- ## 6.2.0-canary.28
674
-
675
- ## 6.2.0-canary.27
676
-
677
- ## 6.2.0-canary.26
678
-
679
- ## 6.2.0-canary.25
680
-
681
- ## 6.2.0-canary.24
682
-
683
- ## 6.2.0-canary.23
684
-
685
- ## 6.2.0-canary.22
686
-
687
- ## 6.2.0-canary.21
688
-
689
- ## 6.2.0-canary.20
690
-
691
- ## 6.2.0-canary.19
692
-
693
- ## 6.2.0-canary.18
694
-
695
- ## 6.2.0-canary.17
696
-
697
- ## 6.2.0-canary.16
698
-
699
- ## 6.2.0-canary.15
700
-
701
- ## 6.2.0-canary.14
702
-
703
- ## 6.2.0-canary.13
704
-
705
- ## 6.2.0-canary.12
706
-
707
- ### Minor Changes
708
-
709
- - [#1909](https://github.com/graphcommerce-org/graphcommerce/pull/1909) [`7a1f1bb38`](https://github.com/graphcommerce-org/graphcommerce/commit/7a1f1bb382ece4167bd3816d6f2cc41ffae56710) - New Algolia search package! ([@mikekeehnen](https://github.com/mikekeehnen))
@@ -1,7 +1,7 @@
1
- import { Page } from '@graphcommerce/graphql-mesh'
1
+ import type { Page } from '@graphcommerce/graphql-mesh'
2
2
  import { verifyWebhookSignature } from '@hygraph/utils'
3
3
  import algoliasearch from 'algoliasearch'
4
- import { NextApiRequest, NextApiResponse } from 'next'
4
+ import type { NextApiRequest, NextApiResponse } from 'next'
5
5
 
6
6
  type AlgoliaResult = {
7
7
  objectID: string
@@ -1,6 +1,6 @@
1
1
  import { verifyWebhookSignature } from '@hygraph/utils'
2
2
  import algoliasearch from 'algoliasearch'
3
- import { NextApiRequest, NextApiResponse } from 'next'
3
+ import type { NextApiRequest, NextApiResponse } from 'next'
4
4
 
5
5
  const algolia = algoliasearch(
6
6
  import.meta.graphCommerce.algoliaApplicationId,
@@ -1,17 +1,16 @@
1
1
  import { ChipMenu, extendableComponent, responsiveVal } from '@graphcommerce/next-ui'
2
- import { SxProps, Theme } from '@mui/material'
2
+ import type { SxProps, Theme } from '@mui/material'
3
3
  import Box from '@mui/material/Box'
4
4
  import Checkbox from '@mui/material/Checkbox'
5
5
  import ListItem from '@mui/material/ListItem'
6
6
  import ListItemText from '@mui/material/ListItemText'
7
- import {
8
- useClearRefinements,
7
+ import type {
9
8
  UseClearRefinementsProps,
10
- useRefinementList,
11
9
  UseRefinementListProps,
12
10
  } from 'react-instantsearch-hooks-web'
11
+ import { useClearRefinements, useRefinementList } from 'react-instantsearch-hooks-web'
13
12
 
14
- const name = 'RefinementFilterChip' as const
13
+ const name = 'RefinementFilterChip'
15
14
  const parts = ['menu', 'item'] as const
16
15
  const { classes } = extendableComponent(name, parts)
17
16
 
@@ -3,7 +3,8 @@ import { ChipMenu, extendableComponent } from '@graphcommerce/next-ui'
3
3
  import Box from '@mui/material/Box'
4
4
  import Slider from '@mui/material/Slider'
5
5
  import { useEffect, useState } from 'react'
6
- import { useRange, UseRangeProps } from 'react-instantsearch-hooks-web'
6
+ import type { UseRangeProps } from 'react-instantsearch-hooks-web'
7
+ import { useRange } from 'react-instantsearch-hooks-web'
7
8
 
8
9
  export interface RefinementRangeChipProps extends UseRangeProps {
9
10
  attribute: string
@@ -1,8 +1,12 @@
1
- import { RenderType, TypeRenderer } from '@graphcommerce/next-ui'
1
+ import type { TypeRenderer } from '@graphcommerce/next-ui'
2
+ import { RenderType } from '@graphcommerce/next-ui'
2
3
  import React from 'react'
3
- import { RefinementFilterChip, RefinementFilterChipProps } from './FilterChip/RefinementFilterChip'
4
- import { RefinementRangeChip, RefinementRangeChipProps } from './FilterChip/RefinementRangeChip'
5
- import { SortChip, SortChipProps } from './SortChip/SortChip'
4
+ import type { RefinementFilterChipProps } from './FilterChip/RefinementFilterChip'
5
+ import { RefinementFilterChip } from './FilterChip/RefinementFilterChip'
6
+ import type { RefinementRangeChipProps } from './FilterChip/RefinementRangeChip'
7
+ import { RefinementRangeChip } from './FilterChip/RefinementRangeChip'
8
+ import type { SortChipProps } from './SortChip/SortChip'
9
+ import { SortChip } from './SortChip/SortChip'
6
10
 
7
11
  interface RenderChipProps
8
12
  extends RefinementFilterChipProps,
@@ -4,14 +4,14 @@ import {
4
4
  responsiveVal,
5
5
  useStorefrontConfig,
6
6
  } from '@graphcommerce/next-ui'
7
- import { SxProps, Theme } from '@mui/material'
7
+ import type { SxProps, Theme } from '@mui/material'
8
8
  import Box from '@mui/material/Box'
9
9
  import Checkbox from '@mui/material/Checkbox'
10
10
  import ListItem from '@mui/material/ListItem'
11
11
  import ListItemText from '@mui/material/ListItemText'
12
12
  import { useSortBy } from 'react-instantsearch-hooks-web'
13
13
 
14
- const name = 'SortChip' as const
14
+ const name = 'SortChip'
15
15
  const parts = ['menu', 'item'] as const
16
16
  const { classes } = extendableComponent(name, parts)
17
17
 
@@ -1,5 +1,5 @@
1
- import { AlgoliaFilterAttribute } from '@graphcommerce/graphql-mesh'
2
- import { FilterTypes, ProductFiltersProps } from '@graphcommerce/magento-product'
1
+ import type { AlgoliaFilterAttribute } from '@graphcommerce/graphql-mesh'
2
+ import type { FilterTypes, ProductFiltersProps } from '@graphcommerce/magento-product'
3
3
  import { useMemo } from 'react'
4
4
  import { useAlgoliaSearchIndexConfig } from '../../hooks/useAlgoliaSearchIndexConfig'
5
5
  import { RenderChip } from '../Chip/RenderChip'
@@ -1,4 +1,4 @@
1
- import { ProductPaginationProps } from '@graphcommerce/magento-product'
1
+ import type { ProductPaginationProps } from '@graphcommerce/magento-product'
2
2
  import { Pagination } from '@graphcommerce/next-ui'
3
3
  import { Box } from '@mui/material'
4
4
  import { usePagination } from 'react-instantsearch-hooks-web'
@@ -1,11 +1,13 @@
1
- import { SearchFormProps } from '@graphcommerce/magento-search'
1
+ import type { SearchFormProps } from '@graphcommerce/magento-search'
2
2
  import { Trans } from '@lingui/react'
3
3
  import { Box, debounce } from '@mui/material'
4
4
  import TextField from '@mui/material/TextField'
5
- import { ChangeEvent, useCallback, useEffect, useRef } from 'react'
6
- import { useHits, useSearchBox, UseSearchBoxProps } from 'react-instantsearch-hooks-web'
5
+ import type { ChangeEvent } from 'react'
6
+ import { useCallback, useEffect, useRef } from 'react'
7
+ import type { UseSearchBoxProps } from 'react-instantsearch-hooks-web'
8
+ import { useHits, useSearchBox } from 'react-instantsearch-hooks-web'
7
9
 
8
- type SearchBoxProps = UseSearchBoxProps & SearchFormProps
10
+ export type SearchBoxProps = UseSearchBoxProps & SearchFormProps
9
11
 
10
12
  export function SearchBox(props: SearchBoxProps) {
11
13
  const { search, textFieldProps, sx = [] } = props
@@ -1,7 +1,7 @@
1
1
  import { useQuery } from '@graphcommerce/graphql'
2
2
  import { StoreConfigDocument } from '@graphcommerce/magento-store'
3
3
  import { useHits } from 'react-instantsearch-hooks-web'
4
- import { AlgoliaCategoryHit } from '../lib/types'
4
+ import type { AlgoliaCategoryHit } from '../lib/types'
5
5
 
6
6
  function hitToCategory(hits: AlgoliaCategoryHit[], categoryUrlSuffix?: string | null) {
7
7
  return hits.map((h) => {
@@ -1,5 +1,5 @@
1
1
  import { useHits } from 'react-instantsearch-hooks-web'
2
- import { AlgoliaPageHit } from '../lib/types'
2
+ import type { AlgoliaPageHit } from '../lib/types'
3
3
 
4
4
  function hitToPage(hits: AlgoliaPageHit[]) {
5
5
  return hits.map((h) => {
@@ -1,9 +1,9 @@
1
1
  import { useQuery } from '@graphcommerce/graphql'
2
- import { CurrencyEnum } from '@graphcommerce/graphql-mesh'
3
- import { ProductListItemFragment, ProductListItemProps } from '@graphcommerce/magento-product'
2
+ import type { CurrencyEnum } from '@graphcommerce/graphql-mesh'
3
+ import type { ProductListItemFragment, ProductListItemProps } from '@graphcommerce/magento-product'
4
4
  import { StoreConfigDocument } from '@graphcommerce/magento-store'
5
5
  import { useHits } from 'react-instantsearch-hooks-web'
6
- import { AlgoliaProductHit } from '../lib/types'
6
+ import type { AlgoliaProductHit } from '../lib/types'
7
7
 
8
8
  function hitsToProduct(
9
9
  items: AlgoliaProductHit[],
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/algolia-search",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.99",
5
+ "version": "9.0.1-canary.0",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,27 +12,26 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "algoliasearch": "^4.24.0",
16
- "react-instantsearch-hooks-web": "^6.47.3"
15
+ "algoliasearch": "^4.24.0"
17
16
  },
18
17
  "peerDependencies": {
19
- "@graphcommerce/ecommerce-ui": "^9.0.0-canary.99",
20
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.99",
21
- "@graphcommerce/graphql": "^9.0.0-canary.99",
22
- "@graphcommerce/graphql-mesh": "^9.0.0-canary.99",
23
- "@graphcommerce/magento-product": "^9.0.0-canary.99",
24
- "@graphcommerce/magento-search": "^9.0.0-canary.99",
25
- "@graphcommerce/magento-store": "^9.0.0-canary.99",
26
- "@graphcommerce/next-config": "^9.0.0-canary.99",
27
- "@graphcommerce/next-ui": "^9.0.0-canary.99",
28
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.99",
29
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.99",
18
+ "@graphcommerce/ecommerce-ui": "^9.0.1-canary.0",
19
+ "@graphcommerce/eslint-config-pwa": "^9.0.1-canary.0",
20
+ "@graphcommerce/graphql": "^9.0.1-canary.0",
21
+ "@graphcommerce/graphql-mesh": "^9.0.1-canary.0",
22
+ "@graphcommerce/magento-product": "^9.0.1-canary.0",
23
+ "@graphcommerce/magento-search": "^9.0.1-canary.0",
24
+ "@graphcommerce/magento-store": "^9.0.1-canary.0",
25
+ "@graphcommerce/next-config": "^9.0.1-canary.0",
26
+ "@graphcommerce/next-ui": "^9.0.1-canary.0",
27
+ "@graphcommerce/prettier-config-pwa": "^9.0.1-canary.0",
28
+ "@graphcommerce/typescript-config-pwa": "^9.0.1-canary.0",
30
29
  "@lingui/core": "^4.2.1",
31
30
  "@lingui/macro": "^4.2.1",
32
31
  "@lingui/react": "^4.2.1",
33
32
  "@mui/material": "^5.10.16",
34
33
  "next": "*",
35
- "react": "^18.2.0",
36
- "react-dom": "^18.2.0"
34
+ "react": "^18.3.1",
35
+ "react-instantsearch-hooks-web": "^6.47.3"
37
36
  }
38
37
  }
@@ -1,5 +1,6 @@
1
- import { CategorySearchResult, CategorySearchResultsProps } from '@graphcommerce/magento-search'
2
- import { IfConfig, PluginProps } from '@graphcommerce/next-config'
1
+ import type { CategorySearchResultsProps } from '@graphcommerce/magento-search'
2
+ import { CategorySearchResult } from '@graphcommerce/magento-search'
3
+ import type { IfConfig, PluginProps } from '@graphcommerce/next-config'
3
4
  import { Index } from 'react-instantsearch-hooks-web'
4
5
  import { useAlgoliaCategoryResults } from '../hooks/useAlgoliaCategoryResults'
5
6
  import { useAlgoliaSearchIndexConfig } from '../hooks/useAlgoliaSearchIndexConfig'
@@ -1,5 +1,5 @@
1
- import { ProductFiltersProps } from '@graphcommerce/magento-product'
2
- import { IfConfig, PluginProps } from '@graphcommerce/next-config'
1
+ import type { ProductFiltersProps } from '@graphcommerce/magento-product'
2
+ import type { IfConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import { AlgoliaFilters } from '../components/Filters/AlgoliaFilters'
4
4
 
5
5
  export const component = 'ProductListFilters'
@@ -1,5 +1,6 @@
1
- import { CategorySearchResult, CategorySearchResultsProps } from '@graphcommerce/magento-search'
2
- import { IfConfig, PluginProps } from '@graphcommerce/next-config'
1
+ import type { CategorySearchResultsProps } from '@graphcommerce/magento-search'
2
+ import { CategorySearchResult } from '@graphcommerce/magento-search'
3
+ import type { IfConfig, PluginProps } from '@graphcommerce/next-config'
3
4
  import { Index } from 'react-instantsearch-hooks-web'
4
5
  import { useAlgoliaPageResults } from '../hooks/useAlgoliaPageResults'
5
6
  import { useAlgoliaSearchIndexConfig } from '../hooks/useAlgoliaSearchIndexConfig'
@@ -1,5 +1,5 @@
1
- import { ProductPaginationProps } from '@graphcommerce/magento-product'
2
- import { IfConfig, PluginProps } from '@graphcommerce/next-config'
1
+ import type { ProductPaginationProps } from '@graphcommerce/magento-product'
2
+ import type { IfConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import { useRouter } from 'next/router'
4
4
  import { AlgoliaPagination } from '../components/Pagination/AlgoliaPagination'
5
5
 
@@ -1,5 +1,5 @@
1
- import { ProductCountProps } from '@graphcommerce/magento-product'
2
- import { IfConfig, PluginProps } from '@graphcommerce/next-config'
1
+ import type { ProductCountProps } from '@graphcommerce/magento-product'
2
+ import type { IfConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import { Index, usePagination } from 'react-instantsearch-hooks-web'
4
4
  import { useAlgoliaSearchIndexConfig } from '../hooks/useAlgoliaSearchIndexConfig'
5
5
 
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line import/no-extraneous-dependencies
2
- import { ProductItemsGridProps } from '@graphcommerce/magento-product'
3
- import { IfConfig, PluginProps } from '@graphcommerce/next-config'
2
+ import type { ProductItemsGridProps } from '@graphcommerce/magento-product'
3
+ import type { IfConfig, PluginProps } from '@graphcommerce/next-config'
4
4
  import { Index } from 'react-instantsearch-hooks-web'
5
5
  import { useAlgoliaProductResults } from '../hooks/useAlgoliaProductResults'
6
6
  import { useAlgoliaSearchIndexConfig } from '../hooks/useAlgoliaSearchIndexConfig'
@@ -1,5 +1,5 @@
1
- import { ProductFiltersProps } from '@graphcommerce/magento-product'
2
- import { IfConfig, PluginProps } from '@graphcommerce/next-config'
1
+ import type { ProductFiltersProps } from '@graphcommerce/magento-product'
2
+ import type { IfConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import { storefrontConfig } from '@graphcommerce/next-ui'
4
4
  import { i18n } from '@lingui/core'
5
5
  import { useRouter } from 'next/router'
@@ -1,5 +1,5 @@
1
- import { SearchContextProps } from '@graphcommerce/magento-search'
2
- import { IfConfig, PluginProps } from '@graphcommerce/next-config'
1
+ import type { SearchContextProps } from '@graphcommerce/magento-search'
2
+ import type { IfConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import algoliasearch from 'algoliasearch/lite'
4
4
  import { InstantSearch, InstantSearchSSRProvider } from 'react-instantsearch-hooks-web'
5
5
  import { useAlgoliaSearchIndexConfig } from '../hooks/useAlgoliaSearchIndexConfig'
@@ -1,5 +1,5 @@
1
- import { SearchFormProps } from '@graphcommerce/magento-search'
2
- import { IfConfig, PluginProps } from '@graphcommerce/next-config'
1
+ import type { SearchFormProps } from '@graphcommerce/magento-search'
2
+ import type { IfConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import { SearchBox } from '../components/SearchBox/SearchBox'
4
4
 
5
5
  export const component = 'SearchForm'
@@ -1,6 +0,0 @@
1
- import { useRouter } from 'next/router'
2
-
3
- export function useSearchRoute() {
4
- const router = useRouter()
5
- return router.asPath.includes('/search')
6
- }