@graphcommerce/algolia-search 9.0.0-canary.98 → 9.0.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,270 +1,46 @@
1
1
  # @graphcommerce/algolia-search
2
2
 
3
- ## 9.0.0-canary.98
3
+ ## 9.0.0
4
4
 
5
- ## 9.0.0-canary.97
6
-
7
- ## 9.0.0-canary.96
8
-
9
- ## 9.0.0-canary.95
10
-
11
- ## 9.0.0-canary.94
12
-
13
- ## 9.0.0-canary.93
14
-
15
- ## 9.0.0-canary.92
16
-
17
- ## 9.0.0-canary.91
18
-
19
- ## 9.0.0-canary.90
20
-
21
- ## 9.0.0-canary.89
22
-
23
- ## 9.0.0-canary.88
24
-
25
- ## 9.0.0-canary.87
26
-
27
- ## 9.0.0-canary.86
28
-
29
- ## 9.0.0-canary.85
30
-
31
- ## 9.0.0-canary.84
32
-
33
- ## 9.0.0-canary.83
34
-
35
- ## 9.0.0-canary.82
36
-
37
- ## 9.0.0-canary.81
38
-
39
- ## 9.0.0-canary.80
40
-
41
- ## 9.0.0-canary.79
42
-
43
- ## 9.0.0-canary.78
44
-
45
- ## 9.0.0-canary.77
46
-
47
- ## 9.0.0-canary.76
48
-
49
- ## 9.0.0-canary.75
50
-
51
- ## 9.0.0-canary.74
52
-
53
- ## 9.0.0-canary.73
54
-
55
- ## 9.0.0-canary.72
56
-
57
- ## 9.0.0-canary.71
58
-
59
- ## 9.0.0-canary.70
60
-
61
- ## 9.0.0-canary.69
62
-
63
- ## 9.0.0-canary.68
64
-
65
- ## 9.0.0-canary.67
66
-
67
- ## 9.0.0-canary.66
68
-
69
- ## 9.0.0-canary.65
70
-
71
- ## 9.0.0-canary.64
72
-
73
- ## 9.0.0-canary.63
74
-
75
- ## 9.0.0-canary.62
76
-
77
- ## 9.0.0-canary.61
78
-
79
- ## 9.0.0-canary.60
80
-
81
- ## 9.0.0-canary.59
82
-
83
- ## 9.0.0-canary.58
84
-
85
- ## 9.0.0-canary.57
86
-
87
- ## 9.0.0-canary.56
88
-
89
- ## 9.0.0-canary.55
90
-
91
- ## 9.0.0-canary.54
92
-
93
- ## 8.1.0-canary.53
94
-
95
- ## 8.1.0-canary.52
96
-
97
- ## 8.1.0-canary.51
98
-
99
- ## 8.1.0-canary.50
100
-
101
- ## 8.1.0-canary.49
102
-
103
- ## 8.1.0-canary.48
104
-
105
- ## 8.1.0-canary.47
106
-
107
- ## 8.1.0-canary.46
108
-
109
- ## 8.1.0-canary.45
110
-
111
- ## 8.1.0-canary.44
112
-
113
- ## 8.1.0-canary.43
114
-
115
- ## 8.1.0-canary.42
116
-
117
- ## 8.1.0-canary.41
118
-
119
- ## 8.1.0-canary.40
120
-
121
- ## 8.1.0-canary.39
122
-
123
- ## 8.1.0-canary.38
124
-
125
- ## 8.1.0-canary.37
126
-
127
- ## 8.1.0-canary.36
128
-
129
- ## 8.1.0-canary.35
130
-
131
- ## 8.1.0-canary.34
132
-
133
- ## 8.1.0-canary.33
134
-
135
- ## 8.1.0-canary.32
136
-
137
- ## 8.1.0-canary.31
138
-
139
- ## 8.1.0-canary.30
140
-
141
- ## 8.1.0-canary.29
142
-
143
- ## 8.1.0-canary.28
144
-
145
- ## 8.1.0-canary.27
146
-
147
- ## 8.1.0-canary.26
148
-
149
- ## 8.1.0-canary.25
150
-
151
- ## 8.1.0-canary.24
152
-
153
- ## 8.1.0-canary.23
154
-
155
- ## 8.1.0-canary.22
156
-
157
- ## 8.1.0-canary.21
158
-
159
- ## 8.1.0-canary.20
160
-
161
- ## 8.1.0-canary.19
162
-
163
- ## 8.1.0-canary.18
164
-
165
- ## 8.1.0-canary.17
166
-
167
- ## 8.1.0-canary.16
168
-
169
- ## 8.1.0-canary.15
170
-
171
- ## 8.1.0-canary.14
172
-
173
- ## 8.1.0-canary.13
174
-
175
- ## 8.1.0-canary.12
176
-
177
- ## 8.1.0-canary.11
178
-
179
- ## 8.1.0-canary.10
180
-
181
- ## 8.1.0-canary.9
182
-
183
- ## 8.1.0-canary.8
184
-
185
- ## 8.1.0-canary.7
186
-
187
- ## 8.1.0-canary.6
188
-
189
- ## 8.1.0-canary.5
190
-
191
- ## 8.0.6-canary.4
192
-
193
- ## 8.0.6-canary.3
194
-
195
- ## 8.0.6-canary.2
196
-
197
- ## 8.0.6-canary.1
198
-
199
- ## 8.0.6-canary.0
200
-
201
- ## 8.0.5
202
-
203
- ## 8.0.5-canary.10
204
-
205
- ## 8.0.5-canary.9
206
-
207
- ## 8.0.5-canary.8
208
-
209
- ## 8.0.5-canary.7
210
-
211
- ## 8.0.5-canary.6
212
-
213
- ## 8.0.5-canary.5
214
-
215
- ## 8.0.5-canary.4
216
-
217
- ## 8.0.5-canary.3
218
-
219
- ## 8.0.5-canary.2
220
-
221
- ## 8.0.5-canary.1
222
-
223
- ## 8.0.5-canary.0
224
-
225
- ## 8.0.4
226
-
227
- ## 8.0.4-canary.1
228
-
229
- ## 8.0.4-canary.0
5
+ ### Patch Changes
230
6
 
231
- ## 8.0.3
7
+ - [#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))
232
8
 
233
- ## 8.0.3-canary.6
9
+ ## 9.0.0-canary.118
234
10
 
235
- ## 8.0.3-canary.5
11
+ ## 9.0.0-canary.117
236
12
 
237
- ## 8.0.3-canary.4
13
+ ## 9.0.0-canary.116
238
14
 
239
- ## 8.0.3-canary.3
15
+ ## 9.0.0-canary.115
240
16
 
241
- ## 8.0.3-canary.2
17
+ ## 9.0.0-canary.114
242
18
 
243
- ## 8.0.3-canary.1
19
+ ## 9.0.0-canary.113
244
20
 
245
- ## 8.0.3-canary.0
21
+ ## 9.0.0-canary.112
246
22
 
247
- ## 8.0.2
23
+ ## 9.0.0-canary.111
248
24
 
249
- ## 8.0.2-canary.3
25
+ ## 9.0.0-canary.110
250
26
 
251
- ## 8.0.2-canary.2
27
+ ## 9.0.0-canary.109
252
28
 
253
- ## 8.0.2-canary.1
29
+ ## 9.0.0-canary.108
254
30
 
255
- ## 8.0.2-canary.0
31
+ ### Patch Changes
256
32
 
257
- ## 8.0.1
33
+ - [#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))
258
34
 
259
- ## 8.0.1-canary.4
35
+ ## 9.0.0-canary.107
260
36
 
261
- ## 8.0.1-canary.3
37
+ ## 9.0.0-canary.106
262
38
 
263
- ## 8.0.1-canary.2
39
+ ## 9.0.0-canary.105
264
40
 
265
- ## 8.0.1-canary.1
41
+ ## 9.0.0-canary.104
266
42
 
267
- ## 8.0.1-canary.0
43
+ ## 9.0.0-canary.103
268
44
 
269
45
  ## 8.0.0
270
46
 
@@ -272,224 +48,6 @@
272
48
 
273
49
  - [#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))
274
50
 
275
- ## 8.0.0-canary.100
276
-
277
- ## 8.0.0-canary.99
278
-
279
- ## 8.0.0-canary.98
280
-
281
- ## 8.0.0-canary.97
282
-
283
- ## 8.0.0-canary.96
284
-
285
- ## 8.0.0-canary.95
286
-
287
- ## 8.0.0-canary.94
288
-
289
- ## 8.0.0-canary.93
290
-
291
- ## 8.0.0-canary.92
292
-
293
- ## 8.0.0-canary.91
294
-
295
- ### Patch Changes
296
-
297
- - [#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))
298
-
299
- ## 8.0.0-canary.90
300
-
301
- ## 8.0.0-canary.89
302
-
303
- ## 8.0.0-canary.88
304
-
305
- ## 8.0.0-canary.87
306
-
307
- ## 8.0.0-canary.86
308
-
309
- ## 8.0.0-canary.85
310
-
311
- ## 8.0.0-canary.84
312
-
313
- ## 8.0.0-canary.83
314
-
315
- ## 8.0.0-canary.82
316
-
317
- ## 8.0.0-canary.81
318
-
319
- ## 8.0.0-canary.80
320
-
321
- ## 8.0.0-canary.79
322
-
323
- ## 8.0.0-canary.78
324
-
325
- ## 8.0.0-canary.77
326
-
327
- ## 8.0.0-canary.76
328
-
329
- ## 8.0.0-canary.75
330
-
331
- ## 8.0.0-canary.74
332
-
333
- ## 8.0.0-canary.73
334
-
335
- ## 8.0.0-canary.72
336
-
337
- ## 8.0.0-canary.71
338
-
339
- ## 8.0.0-canary.70
340
-
341
- ## 8.0.0-canary.69
342
-
343
- ## 7.1.0-canary.68
344
-
345
- ## 7.1.0-canary.67
346
-
347
- ## 7.1.0-canary.66
348
-
349
- ## 7.1.0-canary.65
350
-
351
- ## 7.1.0-canary.64
352
-
353
- ## 7.1.0-canary.63
354
-
355
- ## 7.1.0-canary.62
356
-
357
- ## 7.1.0-canary.61
358
-
359
- ## 7.1.0-canary.60
360
-
361
- ## 7.1.0-canary.59
362
-
363
- ## 7.1.0-canary.58
364
-
365
- ## 7.1.0-canary.57
366
-
367
- ## 7.1.0-canary.56
368
-
369
- ## 7.1.0-canary.55
370
-
371
- ## 7.1.0-canary.54
372
-
373
- ## 7.1.0-canary.53
374
-
375
- ## 7.1.0-canary.52
376
-
377
- ## 7.1.0-canary.51
378
-
379
- ## 7.1.0-canary.50
380
-
381
- ## 7.1.0-canary.49
382
-
383
- ## 7.1.0-canary.48
384
-
385
- ## 7.1.0-canary.47
386
-
387
- ## 7.1.0-canary.46
388
-
389
- ## 7.1.0-canary.45
390
-
391
- ## 7.1.0-canary.38
392
-
393
- ## 7.1.0-canary.37
394
-
395
- ## 7.1.0-canary.36
396
-
397
- ## 7.1.0-canary.35
398
-
399
- ## 7.1.0-canary.34
400
-
401
- ## 7.1.0-canary.33
402
-
403
- ## 7.1.0-canary.32
404
-
405
- ## 7.1.0-canary.31
406
-
407
- ## 7.1.0-canary.30
408
-
409
- ## 7.1.0-canary.29
410
-
411
- ## 7.1.0-canary.28
412
-
413
- ## 7.1.0-canary.27
414
-
415
- ## 7.1.0-canary.26
416
-
417
- ## 7.1.0-canary.25
418
-
419
- ## 7.1.0-canary.24
420
-
421
- ## 7.1.0-canary.23
422
-
423
- ## 7.1.0-canary.22
424
-
425
- ## 7.1.0-canary.21
426
-
427
- ## 7.1.0-canary.20
428
-
429
- ## 7.1.0-canary.19
430
-
431
- ## 7.1.0-canary.18
432
-
433
- ## 7.1.0-canary.17
434
-
435
- ## 7.1.0-canary.16
436
-
437
- ## 7.1.0-canary.15
438
-
439
- ## 7.1.0-canary.14
440
-
441
- ## 7.1.0-canary.13
442
-
443
- ## 7.1.0-canary.12
444
-
445
- ## 7.1.0-canary.11
446
-
447
- ## 7.1.0-canary.10
448
-
449
- ## 7.1.0-canary.9
450
-
451
- ## 7.1.0-canary.8
452
-
453
- ## 7.0.2-canary.7
454
-
455
- ## 7.0.2-canary.6
456
-
457
- ## 7.0.2-canary.5
458
-
459
- ## 7.0.1
460
-
461
- ## 7.0.1-canary.15
462
-
463
- ## 7.0.1-canary.14
464
-
465
- ## 7.0.1-canary.13
466
-
467
- ## 7.0.1-canary.12
468
-
469
- ## 7.0.1-canary.11
470
-
471
- ## 7.0.1-canary.10
472
-
473
- ## 7.0.1-canary.9
474
-
475
- ## 7.0.1-canary.8
476
-
477
- ## 7.0.1-canary.7
478
-
479
- ## 7.0.1-canary.6
480
-
481
- ## 7.0.1-canary.5
482
-
483
- ## 7.0.1-canary.4
484
-
485
- ## 7.0.1-canary.3
486
-
487
- ## 7.0.1-canary.2
488
-
489
- ## 7.0.1-canary.1
490
-
491
- ## 7.0.1-canary.0
492
-
493
51
  ## 7.0.0
494
52
 
495
53
  ### Major Changes
@@ -503,205 +61,3 @@
503
61
  ### Patch Changes
504
62
 
505
63
  - [#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))
506
-
507
- ## 6.2.0-canary.98
508
-
509
- ## 6.2.0-canary.97
510
-
511
- ## 6.2.0-canary.96
512
-
513
- ## 6.2.0-canary.95
514
-
515
- ## 6.2.0-canary.94
516
-
517
- ## 6.2.0-canary.93
518
-
519
- ## 6.2.0-canary.92
520
-
521
- ### Patch Changes
522
-
523
- - [#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))
524
-
525
- ## 6.2.0-canary.91
526
-
527
- ## 6.2.0-canary.90
528
-
529
- ## 6.2.0-canary.89
530
-
531
- ## 6.2.0-canary.88
532
-
533
- ## 6.2.0-canary.87
534
-
535
- ## 6.2.0-canary.86
536
-
537
- ## 6.2.0-canary.85
538
-
539
- ## 6.2.0-canary.84
540
-
541
- ## 6.2.0-canary.83
542
-
543
- ## 6.2.0-canary.82
544
-
545
- ## 6.2.0-canary.81
546
-
547
- ## 6.2.0-canary.80
548
-
549
- ## 6.2.0-canary.79
550
-
551
- ## 6.2.0-canary.78
552
-
553
- ### Minor Changes
554
-
555
- - [#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))
556
-
557
- ## 6.2.0-canary.77
558
-
559
- ## 6.2.0-canary.76
560
-
561
- ## 6.2.0-canary.75
562
-
563
- ## 6.2.0-canary.74
564
-
565
- ## 6.2.0-canary.73
566
-
567
- ## 6.2.0-canary.72
568
-
569
- ## 6.2.0-canary.71
570
-
571
- ## 6.2.0-canary.70
572
-
573
- ## 6.2.0-canary.69
574
-
575
- ## 6.2.0-canary.68
576
-
577
- ### Minor Changes
578
-
579
- - [#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))
580
-
581
- ## 6.2.0-canary.67
582
-
583
- ## 6.2.0-canary.66
584
-
585
- ## 6.2.0-canary.65
586
-
587
- ## 6.2.0-canary.64
588
-
589
- ## 6.2.0-canary.63
590
-
591
- ## 6.2.0-canary.62
592
-
593
- ## 6.2.0-canary.61
594
-
595
- ## 6.2.0-canary.60
596
-
597
- ## 6.2.0-canary.59
598
-
599
- ## 6.2.0-canary.58
600
-
601
- ### Patch Changes
602
-
603
- - [#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))
604
-
605
- ## 6.2.0-canary.57
606
-
607
- ## 6.2.0-canary.56
608
-
609
- ### Patch Changes
610
-
611
- - [#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))
612
-
613
- ## 6.2.0-canary.55
614
-
615
- ## 6.2.0-canary.54
616
-
617
- ## 6.2.0-canary.53
618
-
619
- ## 6.2.0-canary.52
620
-
621
- ## 6.2.0-canary.51
622
-
623
- ## 6.2.0-canary.50
624
-
625
- ### Minor Changes
626
-
627
- - [`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))
628
-
629
- ## 6.2.0-canary.49
630
-
631
- ## 6.2.0-canary.48
632
-
633
- ## 6.2.0-canary.47
634
-
635
- ## 6.2.0-canary.46
636
-
637
- ## 6.2.0-canary.45
638
-
639
- ## 6.2.0-canary.44
640
-
641
- ## 6.2.0-canary.43
642
-
643
- ## 6.2.0-canary.42
644
-
645
- ## 6.2.0-canary.41
646
-
647
- ## 6.2.0-canary.40
648
-
649
- ## 6.2.0-canary.39
650
-
651
- ## 6.2.0-canary.38
652
-
653
- ## 6.2.0-canary.37
654
-
655
- ## 6.2.0-canary.36
656
-
657
- ## 6.2.0-canary.35
658
-
659
- ## 6.2.0-canary.34
660
-
661
- ## 6.2.0-canary.33
662
-
663
- ## 6.2.0-canary.32
664
-
665
- ## 6.2.0-canary.31
666
-
667
- ## 6.2.0-canary.30
668
-
669
- ## 6.2.0-canary.29
670
-
671
- ## 6.2.0-canary.28
672
-
673
- ## 6.2.0-canary.27
674
-
675
- ## 6.2.0-canary.26
676
-
677
- ## 6.2.0-canary.25
678
-
679
- ## 6.2.0-canary.24
680
-
681
- ## 6.2.0-canary.23
682
-
683
- ## 6.2.0-canary.22
684
-
685
- ## 6.2.0-canary.21
686
-
687
- ## 6.2.0-canary.20
688
-
689
- ## 6.2.0-canary.19
690
-
691
- ## 6.2.0-canary.18
692
-
693
- ## 6.2.0-canary.17
694
-
695
- ## 6.2.0-canary.16
696
-
697
- ## 6.2.0-canary.15
698
-
699
- ## 6.2.0-canary.14
700
-
701
- ## 6.2.0-canary.13
702
-
703
- ## 6.2.0-canary.12
704
-
705
- ### Minor Changes
706
-
707
- - [#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.98",
5
+ "version": "9.0.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.98",
20
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.98",
21
- "@graphcommerce/graphql": "^9.0.0-canary.98",
22
- "@graphcommerce/graphql-mesh": "^9.0.0-canary.98",
23
- "@graphcommerce/magento-product": "^9.0.0-canary.98",
24
- "@graphcommerce/magento-search": "^9.0.0-canary.98",
25
- "@graphcommerce/magento-store": "^9.0.0-canary.98",
26
- "@graphcommerce/next-config": "^9.0.0-canary.98",
27
- "@graphcommerce/next-ui": "^9.0.0-canary.98",
28
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.98",
29
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.98",
18
+ "@graphcommerce/ecommerce-ui": "^9.0.0",
19
+ "@graphcommerce/eslint-config-pwa": "^9.0.0",
20
+ "@graphcommerce/graphql": "^9.0.0",
21
+ "@graphcommerce/graphql-mesh": "^9.0.0",
22
+ "@graphcommerce/magento-product": "^9.0.0",
23
+ "@graphcommerce/magento-search": "^9.0.0",
24
+ "@graphcommerce/magento-store": "^9.0.0",
25
+ "@graphcommerce/next-config": "^9.0.0",
26
+ "@graphcommerce/next-ui": "^9.0.0",
27
+ "@graphcommerce/prettier-config-pwa": "^9.0.0",
28
+ "@graphcommerce/typescript-config-pwa": "^9.0.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
- }