@usereactify/search 4.2.0 → 4.2.3

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 ADDED
@@ -0,0 +1,548 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ### [4.2.3](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.2.2...v4.2.3) (2022-06-23)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * include sorting by collection position when using global curation ([141c463](https://bitbucket.org/usereactify/reactify-search-ui/commit/141c46351711c3cff65275e47fdf8e9ed64b0ad8))
11
+
12
+ ### [4.2.2](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.2.1...v4.2.2) (2022-06-21)
13
+
14
+
15
+ ### Features
16
+
17
+ * merge global boosting rules with curation when empty ([248cbdd](https://bitbucket.org/usereactify/reactify-search-ui/commit/248cbdda01864c0d536f5e971f81e331de4c827d))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * pass on nocache url param to config endpoint to bust caching on worker side ([51b9dcf](https://bitbucket.org/usereactify/reactify-search-ui/commit/51b9dcf0b8145691a2dd00aedbe951f71bbc04b3))
23
+
24
+ ### [4.2.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.2.0...v4.2.1) (2022-06-14)
25
+
26
+ ## [4.2.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.1.0...v4.2.0) (2022-06-14)
27
+
28
+
29
+ ### Features
30
+
31
+ * allow custom grid styles to be provided and override defaults ([25ce405](https://bitbucket.org/usereactify/reactify-search-ui/commit/25ce405300777b9d55a0e806672787bd552438a6))
32
+
33
+ ## [4.1.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.1.0-beta.6...v4.1.0) (2022-06-09)
34
+
35
+ ## [4.1.0-beta.6](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.1.0-beta.5...v4.1.0-beta.6) (2022-06-08)
36
+
37
+ ## [4.1.0-beta.5](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.1.0-beta.4...v4.1.0-beta.5) (2022-06-08)
38
+
39
+ ## [4.1.0-beta.4](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.1.0-beta.3...v4.1.0-beta.4) (2022-06-08)
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * only request live config if shop is present ([a9ab343](https://bitbucket.org/usereactify/reactify-search-ui/commit/a9ab343aef7790650635517a83fe4889e87427a3))
45
+ * remove console error for range filter ([9eeeb5d](https://bitbucket.org/usereactify/reactify-search-ui/commit/9eeeb5df6b1e71ce1d9ce784259b141988c450fb))
46
+
47
+ ## [4.1.0-beta.3](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.1.0-beta.2...v4.1.0-beta.3) (2022-06-08)
48
+
49
+ ## [4.1.0-beta.2](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.1.0-beta.1...v4.1.0-beta.2) (2022-06-08)
50
+
51
+
52
+ ### Bug Fixes
53
+
54
+ * only run tracking event when data exists ([a768c19](https://bitbucket.org/usereactify/reactify-search-ui/commit/a768c1931fd52e69d5538760547c50d610bcb8cf))
55
+
56
+ ## [4.1.0-beta.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.1.0-beta.0...v4.1.0-beta.1) (2022-06-08)
57
+
58
+
59
+ ### Features
60
+
61
+ * add sentry release tracking to ci ([67c813d](https://bitbucket.org/usereactify/reactify-search-ui/commit/67c813d2c8812cf1b6c4e2ad1ce9b0a38ebce24b))
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * update provider props to suit merged changes ([f014e87](https://bitbucket.org/usereactify/reactify-search-ui/commit/f014e87e14776577d0f83d24a5c94aa6d3b15818))
67
+
68
+ ## [4.1.0-beta.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v5.0.0-beta.0...v4.1.0-beta.0) (2022-06-08)
69
+
70
+ ## [4.0.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.11.0...v4.0.0) (2022-06-08)
71
+
72
+
73
+ ### ⚠ BREAKING CHANGES
74
+
75
+ * switch to using "handle" instead of "id" for sort option
76
+ * switch to using "handle" instead of "id" for filter and filter option
77
+
78
+ ### Features
79
+
80
+ * switch to using "handle" instead of "id" for filter and filter option ([a92bdd7](https://bitbucket.org/usereactify/reactify-search-ui/commit/a92bdd75e68c6291b9f321cec5e77f3934152a9a))
81
+ * switch to using "handle" instead of "id" for sort option ([c2be1fa](https://bitbucket.org/usereactify/reactify-search-ui/commit/c2be1fabd4ba1634e47715393c2065a1ca2ba9e7))
82
+
83
+ ## [3.11.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.10.4...v3.11.0) (2022-06-06)
84
+
85
+
86
+ ### Features
87
+
88
+ * **app:** add provider prop "configId" to support multi-config shops ([2ef6af5](https://bitbucket.org/usereactify/reactify-search-ui/commit/2ef6af5a6d46331690bdd3c35ee72193dca8f587))
89
+
90
+ ### [3.10.4](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.10.3...v3.10.4) (2022-06-02)
91
+
92
+
93
+ ### Bug Fixes
94
+
95
+ * **app:** fix access to undefined sort option ID ([f93bbce](https://bitbucket.org/usereactify/reactify-search-ui/commit/f93bbcec82ee61d4a0bf19d7ab18894339f8a27c))
96
+
97
+ ### [3.10.3](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.10.2...v3.10.3) (2022-06-02)
98
+
99
+
100
+ ### Features
101
+
102
+ * add support for collections assigned to filter groups ([afe0711](https://bitbucket.org/usereactify/reactify-search-ui/commit/afe071115aa7633f49d5f95673c544989e80f011))
103
+
104
+ ### [3.10.2](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.10.1...v3.10.2) (2022-06-02)
105
+
106
+
107
+ ### Features
108
+
109
+ * add sort option into url params ([f78ec9b](https://bitbucket.org/usereactify/reactify-search-ui/commit/f78ec9b69555df9cb297d818a06d08d6587889c3))
110
+
111
+ ### [3.10.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.10.0...v3.10.1) (2022-06-02)
112
+
113
+
114
+ ### Features
115
+
116
+ * add onRedirect prop + fix caching issue when searching from search page ([59b32f6](https://bitbucket.org/usereactify/reactify-search-ui/commit/59b32f65c8ede64cbd42d297ed7a4e131b8650eb))
117
+
118
+ ## [3.10.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.9.1...v3.10.0) (2022-06-01)
119
+
120
+
121
+ ### Features
122
+
123
+ * add pagination, sort, filter and promotion analytics events ([5968814](https://bitbucket.org/usereactify/reactify-search-ui/commit/596881486f05189d90823f0ec1b093580d79a786))
124
+
125
+
126
+ ### Bug Fixes
127
+
128
+ * add missing next/prev pagination export ([6b13902](https://bitbucket.org/usereactify/reactify-search-ui/commit/6b139027cc1b5038add4d688a9301add2f6e75ee))
129
+
130
+ ### [3.9.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.9.0...v3.9.1) (2022-06-01)
131
+
132
+
133
+ ### Bug Fixes
134
+
135
+ * re-pin @appbaseio/reactivesearch at ^3.14.0 to match advice given to delivery teams ([77bbe4c](https://bitbucket.org/usereactify/reactify-search-ui/commit/77bbe4cb340d0afc2e76c6f584675db5322fee29))
136
+
137
+ ## [3.9.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.8.1...v3.9.0) (2022-06-01)
138
+
139
+
140
+ ### Features
141
+
142
+ * pin @appbaseio/reactivesearch at ^3.14.0 to match advice given to delivery teams ([fb93473](https://bitbucket.org/usereactify/reactify-search-ui/commit/fb93473fa5723a71cfad264f4c4fd09c541ea278))
143
+
144
+ ### [3.8.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.8.0...v3.8.1) (2022-05-31)
145
+
146
+
147
+ ### Bug Fixes
148
+
149
+ * add timeout to blur event so results remain clickable ([fe98040](https://bitbucket.org/usereactify/reactify-search-ui/commit/fe980407427256246051bee8be152048ae841cf2))
150
+
151
+ ## [3.8.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.7.0...v3.8.0) (2022-05-30)
152
+
153
+
154
+ ### Features
155
+
156
+ * add grid gap to result list component props ([0d65bd0](https://bitbucket.org/usereactify/reactify-search-ui/commit/0d65bd032cc834060fca5702195566a36ef8fb33))
157
+
158
+ ## [3.7.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.6.0...v3.7.0) (2022-05-30)
159
+
160
+
161
+ ### Features
162
+
163
+ * add support for additional datasearch input props ([a6c6382](https://bitbucket.org/usereactify/reactify-search-ui/commit/a6c63825f6d3e616d57dc0f0af91895475175cc0))
164
+
165
+ ## [3.6.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.5.0...v3.6.0) (2022-05-28)
166
+
167
+
168
+ ### Features
169
+
170
+ * add support for global curation / default boosting rules ([b476e75](https://bitbucket.org/usereactify/reactify-search-ui/commit/b476e75233202bd3ab190d7806cad0b8077463a8))
171
+
172
+ ## [3.5.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.4.4...v3.5.0) (2022-05-27)
173
+
174
+
175
+ ### Features
176
+
177
+ * add zero results and view product (impressions) events ([db4f310](https://bitbucket.org/usereactify/reactify-search-ui/commit/db4f3102c592bc295534bcb5de9523d1f0b26557))
178
+
179
+ ### [3.4.4](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.4.3...v3.4.4) (2022-05-19)
180
+
181
+
182
+ ### Bug Fixes
183
+
184
+ * render issues with expired config cache ([2c408ad](https://bitbucket.org/usereactify/reactify-search-ui/commit/2c408adce950da369db77ff8ece5a8d08cd92d5f))
185
+
186
+ ### [3.4.3](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.4.2...v3.4.3) (2022-04-11)
187
+
188
+
189
+ ### Bug Fixes
190
+
191
+ * check for existence of window before using (node render) ([df7f9b0](https://bitbucket.org/usereactify/reactify-search-ui/commit/df7f9b0c0c29d561e69107c8086a5d0fa023aaee))
192
+
193
+ ### [3.4.2](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.4.1...v3.4.2) (2022-04-11)
194
+
195
+
196
+ ### Bug Fixes
197
+
198
+ * correct logic for calculating search fields when config is empty or updates ([ae67498](https://bitbucket.org/usereactify/reactify-search-ui/commit/ae6749875f295db99f012b54cc06e10346f702d0))
199
+
200
+ ### [3.4.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.4.0...v3.4.1) (2022-04-11)
201
+
202
+
203
+ ### Bug Fixes
204
+
205
+ * correct typings for selected sort option within context ([f363fc2](https://bitbucket.org/usereactify/reactify-search-ui/commit/f363fc2c8ea1ad88e65844c382620b927614c403))
206
+
207
+ ## [3.4.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v3.3.0...v3.4.0) (2022-04-11)
208
+
209
+
210
+ ### Features
211
+
212
+ * add hook to get cached or remote config ([cb77750](https://bitbucket.org/usereactify/reactify-search-ui/commit/cb77750f4839134e65afb2eee685755169bfcd5d))
213
+ * add renderBooting prop for rendering while config is loading ([3da876e](https://bitbucket.org/usereactify/reactify-search-ui/commit/3da876e5a87ecd98f2abe462994461b7cd39acda))
214
+ * ignore cached config if "nocache" url search param is set ([38823c2](https://bitbucket.org/usereactify/reactify-search-ui/commit/38823c2272fd0a2ae6d45401df35a2148107fe8e))
215
+ * update provider to use live config hook ([d898df0](https://bitbucket.org/usereactify/reactify-search-ui/commit/d898df01cb21538d9cd5dada9d343967ad91cdd6))
216
+
217
+ ## [3.3.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v2.1.1...v3.3.0) (2022-03-28)
218
+
219
+
220
+ ### Features
221
+
222
+ * add shop name in context, ([13b54e2](https://bitbucket.org/usereactify/reactify-search-ui/commit/13b54e28715b7789cc5cf47d82cc205d175ce1ee))
223
+ * add warning and prevent tracking request if "shopifyPermanentDomain" is missing ([bcbf378](https://bitbucket.org/usereactify/reactify-search-ui/commit/bcbf378ac057755347556a60bae58684df8f65c1))
224
+ * additional result props in ResultList ([821b022](https://bitbucket.org/usereactify/reactify-search-ui/commit/821b02281baa07b844ce3c6dbba1f8a1ef42dee7))
225
+ * call track after trigger query in SearhInput ([8a09111](https://bitbucket.org/usereactify/reactify-search-ui/commit/8a0911165ea4484bf7bcf65b12c687a0d8b674ca))
226
+ * remove combined results logic, discriminate product and callout ([ee1b38e](https://bitbucket.org/usereactify/reactify-search-ui/commit/ee1b38eeddad8eedec473c5b49364b67fa6ae311))
227
+ * remove event handling overrides in useAnalytics track function ([3cb1bc5](https://bitbucket.org/usereactify/reactify-search-ui/commit/3cb1bc50318f64c2d11013697152d187108d603c))
228
+ * update callout card for new ElasticCallout type ([8db23b5](https://bitbucket.org/usereactify/reactify-search-ui/commit/8db23b5e5b240b45ada520b30a43ff988bcff9d5))
229
+ * useAnalytics hook ([17fb749](https://bitbucket.org/usereactify/reactify-search-ui/commit/17fb749e763870a2888c3cf68ceeff3cd0d8fc21))
230
+
231
+
232
+ ### Bug Fixes
233
+
234
+ * add missing package "axios" ([eaa4763](https://bitbucket.org/usereactify/reactify-search-ui/commit/eaa476367ef0947b20c24fe4001efb4550184516))
235
+ * fix request payload ([aa33e95](https://bitbucket.org/usereactify/reactify-search-ui/commit/aa33e95ba1162ec0bbb84cd25c2e4483f3822455))
236
+ * fix search event payload ([5bd8c03](https://bitbucket.org/usereactify/reactify-search-ui/commit/5bd8c03e024f3ff0fb14135b9dbc60a9c709fb38))
237
+ * match useAnalytics endpoint signature ([b94a70c](https://bitbucket.org/usereactify/reactify-search-ui/commit/b94a70c9b1a1f8acc9a11bbff8e6414e77d34657))
238
+ * only record select event when link clicked ([ba95992](https://bitbucket.org/usereactify/reactify-search-ui/commit/ba959923785837ed54053257012a1cfdcc69be59))
239
+ * remove name and variant from select_item event ([a87037d](https://bitbucket.org/usereactify/reactify-search-ui/commit/a87037d493a269fd402f68431fa4fd0c90911f70))
240
+ * select_item event, add questions in comments ([8693a78](https://bitbucket.org/usereactify/reactify-search-ui/commit/8693a781049ee44d429f4bf6149532737d9ccbb8))
241
+ * support v1 indexes in ResultList component ([4c23ef3](https://bitbucket.org/usereactify/reactify-search-ui/commit/4c23ef3757daeb505823f4af6399746a29404f7a))
242
+ * white line ([2a5a191](https://bitbucket.org/usereactify/reactify-search-ui/commit/2a5a191872531e8ccdd63ff0135d6474324f3f43))
243
+
244
+ ### [2.1.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v2.1.0...v2.1.1) (2022-03-01)
245
+
246
+
247
+ ### Bug Fixes
248
+
249
+ * add nested attribute to collection position sort clause (RS-124) ([0932b3e](https://bitbucket.org/usereactify/reactify-search-ui/commit/0932b3e6e64dd2a0ef9df592c431f0dc5340fcc1))
250
+
251
+ ## [2.1.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v2.0.2...v2.1.0) (2022-02-28)
252
+
253
+
254
+ ### Features
255
+
256
+ * add image to default result card render ([c50319e](https://bitbucket.org/usereactify/reactify-search-ui/commit/c50319e1011a7465c07b509b5164ea04b9f38684))
257
+ * sort of _score always be desc ([f51e75c](https://bitbucket.org/usereactify/reactify-search-ui/commit/f51e75c4f21acb54fbe64e444b26dd02f452c6ac))
258
+
259
+ ### [2.0.2](https://bitbucket.org/usereactify/reactify-search-ui/compare/v2.0.1...v2.0.2) (2021-12-15)
260
+
261
+
262
+ ### Bug Fixes
263
+
264
+ * support missing compare_at_price on price sets ([dbe3fc2](https://bitbucket.org/usereactify/reactify-search-ui/commit/dbe3fc20db23e1969f0d0c9ee75e646cce3f1858))
265
+
266
+ ### [2.0.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v2.0.0...v2.0.1) (2021-12-15)
267
+
268
+
269
+ ### Bug Fixes
270
+
271
+ * check compare_at_price exists before formatting in useProductPrice ([acba76c](https://bitbucket.org/usereactify/reactify-search-ui/commit/acba76c6d8e0c5ba1482fe230e20fcd286f11e69))
272
+
273
+ ## [2.0.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v1.3.0...v2.0.0) (2021-11-18)
274
+
275
+
276
+ ### ⚠ BREAKING CHANGES
277
+
278
+ * move index to a dedicated prop, make credentials optional and set default
279
+
280
+ ### Features
281
+
282
+ * move index to a dedicated prop, make credentials optional and set default ([a0696ba](https://bitbucket.org/usereactify/reactify-search-ui/commit/a0696ba239b7b036b37a2764a939ce2f26e992b4))
283
+
284
+ ## [1.3.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v1.2.0...v1.3.0) (2021-11-18)
285
+
286
+
287
+ ### Features
288
+
289
+ * add support for valuesManual in filter option filtering ([c2cef69](https://bitbucket.org/usereactify/reactify-search-ui/commit/c2cef69e491f9852a1250e7218550ac6c1e1671e))
290
+ * add totalSelected to filter render props (RS-16) ([7949200](https://bitbucket.org/usereactify/reactify-search-ui/commit/7949200f0307637dda424875e7ca394aa179cdb6))
291
+
292
+ ## [1.2.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v1.1.1...v1.2.0) (2021-10-19)
293
+
294
+
295
+ ### Features
296
+
297
+ * adjust page size to accommodate callouts ([0365896](https://bitbucket.org/usereactify/reactify-search-ui/commit/03658965e65ba451a5c419b14599a71296e589c3))
298
+
299
+ ### [1.1.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v1.1.0...v1.1.1) (2021-10-15)
300
+
301
+
302
+ ### Bug Fixes
303
+
304
+ * pass render prop to ResultCardCalloutInner, add pagePosition prop ([3983db4](https://bitbucket.org/usereactify/reactify-search-ui/commit/3983db4c471a3172259662f03e400c3f8ed14b0d))
305
+
306
+ ## [1.1.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v1.0.1...v1.1.0) (2021-10-13)
307
+
308
+
309
+ ### Features
310
+
311
+ * disable callouts unless enableCallouts prop is set ([c2ac79a](https://bitbucket.org/usereactify/reactify-search-ui/commit/c2ac79abffc87d050b766b6786977de43920af17))
312
+
313
+ ### [1.0.1](https://bitbucket.org/usereactify/reactify-search-ui/compare/v1.0.0...v1.0.1) (2021-10-13)
314
+
315
+
316
+ ### Bug Fixes
317
+
318
+ * filter currentId from all filters in useReactiveReactProp ([645fe73](https://bitbucket.org/usereactify/reactify-search-ui/commit/645fe7373f469255d15bbe12c05d478193053ac6))
319
+
320
+ ## [1.0.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v0.2.0-beta.0...v1.0.0) (2021-10-13)
321
+
322
+
323
+ ### Features
324
+
325
+ * add additionalComponentIds prop to provider ([1db51a0](https://bitbucket.org/usereactify/reactify-search-ui/commit/1db51a0f905475d2d3399f9de7ff6f025860dce5))
326
+
327
+ ## [0.2.0-beta.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/v0.1.29...v0.2.0-beta.0) (2021-10-08)
328
+
329
+
330
+ ### Features
331
+
332
+ * combined results in result list ([a85f39e](https://bitbucket.org/usereactify/reactify-search-ui/commit/a85f39e8d425c51b8108df488145ade8eec1cdf5))
333
+ * render callouts in result list, implement grid ([e8cbaad](https://bitbucket.org/usereactify/reactify-search-ui/commit/e8cbaad07db3daf2c4a59a2de565774db213d0c6))
334
+
335
+ ### [0.1.29](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.28...v0.1.29) (2021-08-05)
336
+
337
+
338
+ ### Features
339
+
340
+ * apply defaultQuery to nested variant filters to check inventory available ([a348522](https://gitlab.com/reactifyapps/reactify-search-ui/commit/a3485220bb3c682d70a6efcd9b520972430a00d7))
341
+
342
+
343
+ ### Bug Fixes
344
+
345
+ * size and colour filter targets in docs ([735c12e](https://gitlab.com/reactifyapps/reactify-search-ui/commit/735c12ed29683d324651382f4fad55c16941e716))
346
+
347
+ ### [0.1.28](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.24...v0.1.28) (2021-07-23)
348
+
349
+ ### Features
350
+
351
+ - allow provider theme to be configured ([33eb10f](https://gitlab.com/reactifyapps/reactify-search-ui/commit/33eb10f50dbdaaf2f399ea0e95b673222da868b1))
352
+ - set default reset theme ([0661294](https://gitlab.com/reactifyapps/reactify-search-ui/commit/0661294a03eae7e70d29a2415df968da38bb0bf8))
353
+
354
+ ### Bug Fixes
355
+
356
+ - instant search sorting ([b6ce036](https://gitlab.com/reactifyapps/reactify-search-ui/commit/b6ce036d06d72dbbe28fb1892537ee399ee77c0c))
357
+
358
+ ### [0.1.27](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.25...v0.1.27) (2021-07-01)
359
+
360
+ ### Features
361
+
362
+ - set default reset theme ([0661294](https://gitlab.com/reactifyapps/reactify-search-ui/commit/0661294a03eae7e70d29a2415df968da38bb0bf8))
363
+
364
+ ### [0.1.26](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.25...v0.1.26) (2021-06-28)
365
+
366
+ ### Features
367
+
368
+ - allow provider theme to be configured ([33eb10f](https://gitlab.com/reactifyapps/reactify-search-ui/commit/33eb10f50dbdaaf2f399ea0e95b673222da868b1))
369
+
370
+ ### [0.1.25](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.24...v0.1.25) (2021-06-28)
371
+
372
+ ### [0.1.24](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.23...v0.1.24) (2021-06-25)
373
+
374
+ ### Bug Fixes
375
+
376
+ - add missing lower case to existing sort sensor ([c7099a0](https://gitlab.com/reactifyapps/reactify-search-ui/commit/c7099a0edf57658fa006ac018b017807891a44dd))
377
+
378
+ ### [0.1.23](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.22...v0.1.23) (2021-06-25)
379
+
380
+ ### Bug Fixes
381
+
382
+ - force lower case curation search term ([09d73bf](https://gitlab.com/reactifyapps/reactify-search-ui/commit/09d73bf8b86942f8fb67d9283e55bee6e99ae963))
383
+
384
+ ### [0.1.22](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.21...v0.1.22) (2021-06-24)
385
+
386
+ ### Features
387
+
388
+ - add support for pinning products in curations that don't exist within the resultset ([3ceadf6](https://gitlab.com/reactifyapps/reactify-search-ui/commit/3ceadf621ab78b216bf355d3e2ec648a6d9fee44))
389
+
390
+ ### [0.1.21](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.20...v0.1.21) (2021-06-18)
391
+
392
+ ### Bug Fixes
393
+
394
+ - normalise collection handle and search term when resolving curation ([6bd1aec](https://gitlab.com/reactifyapps/reactify-search-ui/commit/6bd1aecd163743bdcfc9582389f35a4dc579930c))
395
+
396
+ ### [0.1.20](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.19...v0.1.20) (2021-06-17)
397
+
398
+ ### Features
399
+
400
+ - support hidden curation products in SensorSort ([c80a52f](https://gitlab.com/reactifyapps/reactify-search-ui/commit/c80a52f6e515bb023dd99caedc20ace38444b725))
401
+
402
+ ### Bug Fixes
403
+
404
+ - regenerate yarn.lock in release script ([b97ddef](https://gitlab.com/reactifyapps/reactify-search-ui/commit/b97ddefae363a25303afc90042044f0692fac3c5))
405
+ - use yarn to fix monorepo issues, upgrade docusaurus ([aa4ee48](https://gitlab.com/reactifyapps/reactify-search-ui/commit/aa4ee4851b72acc30718974b3642c0932aa56f35))
406
+
407
+ ### [0.1.19](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.18...v0.1.19) (2021-06-14)
408
+
409
+ ### Bug Fixes
410
+
411
+ - **search:** ssr build issue due to window ([aada68a](https://gitlab.com/reactifyapps/reactify-search-ui/commit/aada68a20cdb8cffe43abbde487229819fdd39e3))
412
+
413
+ ### [0.1.18](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.17...v0.1.18) (2021-06-04)
414
+
415
+ ### Bug Fixes
416
+
417
+ - use variants.available in SensorInventoryAvailable ([ffaa237](https://gitlab.com/reactifyapps/reactify-search-ui/commit/ffaa237663ad3a44ed798539c5c5306f11533ec8))
418
+
419
+ ### [0.1.17](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.16...v0.1.17) (2021-06-01)
420
+
421
+ ### Bug Fixes
422
+
423
+ - case insensitive redirect match ([#11](https://gitlab.com/reactifyapps/reactify-search-ui/issues/11)) ([096c7fb](https://gitlab.com/reactifyapps/reactify-search-ui/commit/096c7fb84d77ae0d985b2e7cf4ade6c80e3171e7))
424
+
425
+ ### [0.1.16](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.15...v0.1.16) (2021-05-10)
426
+
427
+ ### Bug Fixes
428
+
429
+ - **search:** include \_score in sort state eligible for curations ([2839929](https://gitlab.com/reactifyapps/reactify-search-ui/commit/2839929be960aabd0b45e4aad0ce6a5abdc776e6))
430
+
431
+ ### [0.1.15](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.14...v0.1.15) (2021-05-10)
432
+
433
+ ### Bug Fixes
434
+
435
+ - **search:** correct type for context submitSearch ([8b3e647](https://gitlab.com/reactifyapps/reactify-search-ui/commit/8b3e64716b6d82e14efc8abb88ff1f6013d5c182))
436
+
437
+ ### [0.1.14](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.13...v0.1.14) (2021-05-10)
438
+
439
+ ### Features
440
+
441
+ - **search:** allow searchQuery to be provided to submitSearch ([116e5d6](https://gitlab.com/reactifyapps/reactify-search-ui/commit/116e5d60084ae20ccac3bb07d9e17d2158888479))
442
+ - **search:** onBlur, onFocus events in SearchInput component ([c6799be](https://gitlab.com/reactifyapps/reactify-search-ui/commit/c6799be75c667a47c9c6aac84696040ff0f12acc))
443
+
444
+ ### [0.1.13](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.12...v0.1.13) (2021-05-09)
445
+
446
+ ### Features
447
+
448
+ - drop SensorStackInstantsearch in favor of single SensorStack with context ([f31a60b](https://gitlab.com/reactifyapps/reactify-search-ui/commit/f31a60b9ba6bf2c61d88529b3ceec0b5aa188e1f))
449
+
450
+ ### [0.1.12](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.11...v0.1.12) (2021-05-07)
451
+
452
+ ### Features
453
+
454
+ - add SearchInput component and associated instant search support ([98a8af7](https://gitlab.com/reactifyapps/reactify-search-ui/commit/98a8af726f9e781bd03c5ed2dd815c0976b19f21))
455
+ - add SensorStackInstantSearch ([e93308f](https://gitlab.com/reactifyapps/reactify-search-ui/commit/e93308f06532e7877300c84820e5019b152c895b))
456
+ - **theme-debut:** add instant search component ([3017fb2](https://gitlab.com/reactifyapps/reactify-search-ui/commit/3017fb2d2b2da6413d148e7853e47f7cdf30e3e2))
457
+
458
+ ### [0.1.11](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.10...v0.1.11) (2021-05-07)
459
+
460
+ ### Features
461
+
462
+ - add debug output to provider ([c45de1a](https://gitlab.com/reactifyapps/reactify-search-ui/commit/c45de1ae681ede827ae899252758171309bac09b))
463
+
464
+ ### Bug Fixes
465
+
466
+ - add missing sensors to result list react prop ([2293c43](https://gitlab.com/reactifyapps/reactify-search-ui/commit/2293c4391917a536e31fc3f3fce08703ab134e6b))
467
+
468
+ ### [0.1.10](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.9...v0.1.10) (2021-05-07)
469
+
470
+ ### Features
471
+
472
+ - add debug output to SensorSort ([0b3d125](https://gitlab.com/reactifyapps/reactify-search-ui/commit/0b3d125f29dfe678318d91390d3fbfd13a932947))
473
+
474
+ ### [0.1.9](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.8...v0.1.9) (2021-05-05)
475
+
476
+ ### Bug Fixes
477
+
478
+ - force value to be an array in filter customQuery ([454c110](https://gitlab.com/reactifyapps/reactify-search-ui/commit/454c11023a3386c00ad4bcec33ba04d94c86c330))
479
+
480
+ ### [0.1.8](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.7...v0.1.8) (2021-05-04)
481
+
482
+ ### Bug Fixes
483
+
484
+ - **theme-debut:** fix flex width on results grid ([049da94](https://gitlab.com/reactifyapps/reactify-search-ui/commit/049da942aa87c7a887d689f78f77da02b9b63422))
485
+
486
+ ### [0.1.7](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.6...v0.1.7) (2021-05-04)
487
+
488
+ ### Features
489
+
490
+ - add filterStackId prop to provider ([#2](https://gitlab.com/reactifyapps/reactify-search-ui/issues/2)) ([043e9f0](https://gitlab.com/reactifyapps/reactify-search-ui/commit/043e9f0745ad1d6e15ec99400df099320fecf7cf))
491
+ - add ResultPagination component and usePages hook ([#4](https://gitlab.com/reactifyapps/reactify-search-ui/issues/4)) ([e8dcf61](https://gitlab.com/reactifyapps/reactify-search-ui/commit/e8dcf610ec1eac9b328935a713732284a1f4d7f8))
492
+ - add ResultStateProvider component for accessing page state ([ec4cc6f](https://gitlab.com/reactifyapps/reactify-search-ui/commit/ec4cc6f08ef2aeae46fe864e61d71ec36e50a0e3))
493
+ - add SensorInventoryAvailable and rename SensorStack ([18d7aaa](https://gitlab.com/reactifyapps/reactify-search-ui/commit/18d7aaa4a2d7e82d34014ccc888c624cffba4f03))
494
+ - add support for settingsHideUnavailable at filter level for variant nested fields ([5ca63e1](https://gitlab.com/reactifyapps/reactify-search-ui/commit/5ca63e1dcd35c9f6f80c83d49ab6f8bb87ecaa7d))
495
+ - rename FilterMatrix to FilterStack ([62788cd](https://gitlab.com/reactifyapps/reactify-search-ui/commit/62788cd135e424ab81426ad7e1ae7a3d825d4e28))
496
+ - renderAfter, renderBefore and renderPagination props on ResultList ([05d2203](https://gitlab.com/reactifyapps/reactify-search-ui/commit/05d2203447d4ca9fb7843dc3ad0b8b8f111b67e6))
497
+ - renderError prop on ResultList component ([d95d6df](https://gitlab.com/reactifyapps/reactify-search-ui/commit/d95d6df10059badc661eeb1041db76531e44231c))
498
+ - renderLoading prop on ResultList component with initial search logic ([1568d2e](https://gitlab.com/reactifyapps/reactify-search-ui/commit/1568d2e8729b455b50d42c532cb3bcb91c4e4130))
499
+ - renderLoadMoreButton prop on ResultList with default button ([bd5af24](https://gitlab.com/reactifyapps/reactify-search-ui/commit/bd5af24daf4fe1e3c41afa5749f10df0d8b64bb2))
500
+ - renderPaginationNextPrev prop on ResultList with default component ([d587303](https://gitlab.com/reactifyapps/reactify-search-ui/commit/d58730367916629770240c8e85549003ce8ddc28))
501
+
502
+ ### Bug Fixes
503
+
504
+ - **theme-debut:** browser warning for svg property ([4fd7948](https://gitlab.com/reactifyapps/reactify-search-ui/commit/4fd794848b4b15becb601718f635005407db6d79))
505
+ - **theme-debut:** use new SensorStack component ([da59639](https://gitlab.com/reactifyapps/reactify-search-ui/commit/da5963989b5012a231df3ea572f02095c4cc8489))
506
+
507
+ ### [0.1.6](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.5...v0.1.6) (2021-04-28)
508
+
509
+ ### Features
510
+
511
+ - **theme-debut:** add styling for product cards ([1397aa1](https://gitlab.com/reactifyapps/reactify-search-ui/commit/1397aa193eec73592e17b32a5a12d4806a7f808b))
512
+ - add listClassName prop to ResultList component ([f28be3e](https://gitlab.com/reactifyapps/reactify-search-ui/commit/f28be3e4d0f8c74d5e7e20e214aec0ee7867ce7c))
513
+ - add renderResultCard prop to ResultList component ([889255f](https://gitlab.com/reactifyapps/reactify-search-ui/commit/889255fc8cb2f1db0a6d86be2159276a0da384b7))
514
+
515
+ ### [0.1.5](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.4...v0.1.5) (2021-04-28)
516
+
517
+ ### Features
518
+
519
+ - **theme-debut:** add styled filters ([467b255](https://gitlab.com/reactifyapps/reactify-search-ui/commit/467b2551723aa413696f4060d9b20777a40298e4))
520
+ - **theme-debut:** add tailwind jit styles ([6e28c52](https://gitlab.com/reactifyapps/reactify-search-ui/commit/6e28c520a2113f68fb0fc37bbedd2083c39ad39f))
521
+
522
+ ### Bug Fixes
523
+
524
+ - show all filter options unless displaySize is defined ([6887ed7](https://gitlab.com/reactifyapps/reactify-search-ui/commit/6887ed70737b864cf87cf97433626b9e5ecb7c98))
525
+
526
+ ### [0.1.4](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.3...v0.1.4) (2021-04-28)
527
+
528
+ ### Bug Fixes
529
+
530
+ - export Filter and FilterList components ([7a297dd](https://gitlab.com/reactifyapps/reactify-search-ui/commit/7a297dd630c3582d5bf9ae32eb6d31663ee2654d))
531
+
532
+ ### [0.1.3](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.2...v0.1.3) (2021-04-28)
533
+
534
+ ### Bug Fixes
535
+
536
+ - define nested field prop for variants ([2af7ebe](https://gitlab.com/reactifyapps/reactify-search-ui/commit/2af7ebe6b33c1ca19faf27ca0f525fe1f1669ced))
537
+
538
+ ### [0.1.2](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.1...v0.1.2) (2021-04-27)
539
+
540
+ ### Bug Fixes
541
+
542
+ - use commonjs ([b742b8b](https://gitlab.com/reactifyapps/reactify-search-ui/commit/b742b8b268c0a663361147efb93bf120a208a708))
543
+
544
+ ### [0.1.1](https://gitlab.com/reactifyapps/reactify-search-ui/compare/v0.1.0...v0.1.1) (2021-04-27)
545
+
546
+ ## 0.1.0 (2021-04-27)
547
+
548
+ Initial release.
@@ -54,10 +54,15 @@ const useLiveConfig = (shopifyPermanentDomain, configId) => {
54
54
  if (configId) {
55
55
  searchParams.set("id", configId);
56
56
  }
57
+ const skipCache = new URLSearchParams(window.location.href.split("?")[1]).get("nocache") !== null;
58
+ if (skipCache) {
59
+ searchParams.set("nocache", "true");
60
+ }
57
61
  const json = yield fetch(`https://config.search.reactify.app/?${searchParams.toString()}`).then((response) => response.json());
58
62
  setConfig(json.body);
59
63
  window.sessionStorage.setItem("reactify-search:config", JSON.stringify({
60
64
  expiresAt: new Date().getTime() + CACHE_EXPIRY,
65
+ noCache: skipCache,
61
66
  config: json.body,
62
67
  }));
63
68
  }))();
package/dist/provider.js CHANGED
@@ -275,5 +275,20 @@ const useCuration = (config, collection, searchQuery) => react_1.default.useMemo
275
275
  normalisedHandleOrSearchTerm === normalisedCollectionHandle);
276
276
  return false;
277
277
  });
278
- return curation ? curation : globalCuration ? globalCuration : undefined;
278
+ const addGlobalBoosting = (curation) => {
279
+ const curationIsCollection = curation.type === "collection";
280
+ if (!curationIsCollection)
281
+ return curation;
282
+ const curationHasRules = !!curation.boosting.groupings.length ||
283
+ !!curation.boosting.sortings.length;
284
+ if (curationHasRules || !globalCuration)
285
+ return curation;
286
+ const curationWithGlobalBoosting = Object.assign(Object.assign({}, curation), { boosting: globalCuration.boosting });
287
+ return curationWithGlobalBoosting;
288
+ };
289
+ return curation
290
+ ? addGlobalBoosting(curation)
291
+ : globalCuration
292
+ ? globalCuration
293
+ : undefined;
279
294
  }, [config, collection, searchQuery]);
@@ -70,7 +70,10 @@ const buildSort = (args) => {
70
70
  }
71
71
  const sorts = [];
72
72
  // show pins first
73
- if (!globalCuration)
73
+ if (globalCuration && collection) {
74
+ sorts.push(mapCollectionPositionSortClause(collection));
75
+ }
76
+ else {
74
77
  sorts.push({
75
78
  "curations.position": {
76
79
  unmapped_type: "long",
@@ -89,6 +92,7 @@ const buildSort = (args) => {
89
92
  },
90
93
  },
91
94
  });
95
+ }
92
96
  if (0 < curation.boosting.groupings.length) {
93
97
  const groupings = curation.boosting.groupings.sort((a, b) => a.position > b.position ? 1 : -1);
94
98
  for (const grouping of groupings) {
@@ -115,16 +119,15 @@ const buildSort = (args) => {
115
119
  }
116
120
  }
117
121
  }
118
- // finally, sort by elastic score or index order
119
- // using index order ensures a consistent output order for queries which don't really
120
- // use a relevance score like collections
121
- if ("collection" === curation.type)
122
+ // finally, for collections, if no other sorting is defined, sort by index order to provide
123
+ // a consistent order
124
+ if ("collection" === curation.type && sorts.length === 0) {
122
125
  sorts.push("_doc");
123
- else
126
+ }
127
+ // finally, for search, sort by score
128
+ if ("search" === curation.type) {
124
129
  sorts.push("_score");
125
- // @todo ideally, once pins are extinguished and there are no boost rules, the rest of the
126
- // result should be ordered by the shopify collection position rather than the index order,
127
- // but this will need some proper testing to ensure it does not break curations
130
+ }
128
131
  return sorts;
129
132
  };
130
133
  /**
package/package.json CHANGED
@@ -1,19 +1,21 @@
1
1
  {
2
2
  "name": "@usereactify/search",
3
3
  "description": "React UI library for Reactify Search",
4
- "version": "4.2.0",
4
+ "version": "4.2.3",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [
9
9
  "dist",
10
- "README.md"
10
+ "README.md",
11
+ "CHANGELOG.md"
11
12
  ],
12
13
  "scripts": {
13
14
  "watch": "tsc --watch",
14
15
  "release": "standard-version",
15
16
  "release:patch": "standard-version --release-as patch",
16
17
  "release:beta": "standard-version --release-as minor --prerelease beta",
18
+ "release:local": "yalc publish",
17
19
  "build": "rimraf dist && tsc",
18
20
  "prettier": "prettier --write .",
19
21
  "storybook": "start-storybook -p 6006",