@usereactify/search 5.0.0 → 5.1.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 +234 -0
- package/dist/package.json +2 -2
- package/dist/src/components/Example/ExampleCustomComponent.d.ts +1 -1
- package/dist/src/components/Example/ExampleCustomComponent.js +5 -21
- package/dist/src/components/Example/ExampleCustomComponent.js.map +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderCollection.d.ts +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderCollection.js +4 -20
- package/dist/src/components/Example/ExampleReactiveSearchProviderCollection.js.map +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderInstantSearch.d.ts +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderInstantSearch.js +4 -20
- package/dist/src/components/Example/ExampleReactiveSearchProviderInstantSearch.js.map +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderSearch.d.ts +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderSearch.js +4 -20
- package/dist/src/components/Example/ExampleReactiveSearchProviderSearch.js.map +1 -1
- package/dist/src/components/Example/ExampleResults.d.ts +1 -1
- package/dist/src/components/Example/ExampleResults.js +4 -20
- package/dist/src/components/Example/ExampleResults.js.map +1 -1
- package/dist/src/components/Sensor/SensorInstantSearch.d.ts +2 -0
- package/dist/src/components/Sensor/SensorInstantSearch.js +73 -0
- package/dist/src/components/Sensor/SensorInstantSearch.js.map +1 -0
- package/dist/src/components/Sensor/SensorSearch.js +1 -5
- package/dist/src/components/Sensor/SensorSearch.js.map +1 -1
- package/dist/src/components/Sensor/Sensors.js +2 -0
- package/dist/src/components/Sensor/Sensors.js.map +1 -1
- package/dist/src/components/Sensor/index.d.ts +1 -0
- package/dist/src/components/Sensor/index.js +2 -0
- package/dist/src/components/Sensor/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,240 @@
|
|
|
2
2
|
|
|
3
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
4
|
|
|
5
|
+
## [5.1.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/release-v5.0.1...release-v5.1.0) (2022-08-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* separate searchTerm sensor for instant-search and search ([37a767a](https://bitbucket.org/usereactify/reactify-search-ui/commit/37a767a8b90d89ca9f7b16cce9783ce045671882))
|
|
11
|
+
|
|
12
|
+
## [5.1.0-beta.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/beta-v5.0.0-beta.16...beta-v5.1.0-beta.0) (2022-08-07)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* separate searchTerm sensor for instant-search and search ([37a767a](https://bitbucket.org/usereactify/reactify-search-ui/commit/37a767a8b90d89ca9f7b16cce9783ce045671882))
|
|
18
|
+
|
|
19
|
+
### 5.0.1 (2022-08-05)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### ⚠ BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* separate monolith provider into hooks and context
|
|
25
|
+
* align code and docs for v5
|
|
26
|
+
* switch to using "handle" instead of "id" for sort option
|
|
27
|
+
* switch to using "handle" instead of "id" for filter and filter option
|
|
28
|
+
* move index to a dedicated prop, make credentials optional and set default
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* add additionalComponentIds prop to provider ([1db51a0](https://bitbucket.org/usereactify/reactify-search-ui/commit/1db51a0f905475d2d3399f9de7ff6f025860dce5))
|
|
33
|
+
* add breadcrumb for ES search result errors ([22ae301](https://bitbucket.org/usereactify/reactify-search-ui/commit/22ae301bbb7618aec14499970ffd2578ab569a7a))
|
|
34
|
+
* add breadcrumb for search query update ([6a2e442](https://bitbucket.org/usereactify/reactify-search-ui/commit/6a2e44269396353fced1d597d48502ef5b1a6bb2))
|
|
35
|
+
* add classnames for styling to default components ([75997e2](https://bitbucket.org/usereactify/reactify-search-ui/commit/75997e25756595401401de42e9aa29b235581645))
|
|
36
|
+
* add debug output to provider ([c45de1a](https://bitbucket.org/usereactify/reactify-search-ui/commit/c45de1ae681ede827ae899252758171309bac09b))
|
|
37
|
+
* add debug output to SensorSort ([0b3d125](https://bitbucket.org/usereactify/reactify-search-ui/commit/0b3d125f29dfe678318d91390d3fbfd13a932947))
|
|
38
|
+
* add esbuild for production builds ([9b0a8d5](https://bitbucket.org/usereactify/reactify-search-ui/commit/9b0a8d5daa4a90b96f8760e083431da7e44f6ab5))
|
|
39
|
+
* add example components for filter range, filter slider, custom, stats, clear all, filters active ([d5e56fb](https://bitbucket.org/usereactify/reactify-search-ui/commit/d5e56fb114edc3e134c3ce2e90f7f2df67c5d097))
|
|
40
|
+
* add example filter list unstyled, radio, checkbox, swatch and box ([a6ebcd0](https://bitbucket.org/usereactify/reactify-search-ui/commit/a6ebcd0b606f9a8381d1e082dd4935e4a4d83c2f))
|
|
41
|
+
* add Filter and FilterList components with hooks ([9cd1be1](https://bitbucket.org/usereactify/reactify-search-ui/commit/9cd1be1b1796962be340fd4a119e21d7d0a04e0e))
|
|
42
|
+
* add filterStackId prop to provider ([#2](https://bitbucket.org/usereactify/reactify-search-ui/issues/2)) ([043e9f0](https://bitbucket.org/usereactify/reactify-search-ui/commit/043e9f0745ad1d6e15ec99400df099320fecf7cf))
|
|
43
|
+
* add grid gap to result list component props ([0d65bd0](https://bitbucket.org/usereactify/reactify-search-ui/commit/0d65bd032cc834060fca5702195566a36ef8fb33))
|
|
44
|
+
* add hook to get cached or remote config ([cb77750](https://bitbucket.org/usereactify/reactify-search-ui/commit/cb77750f4839134e65afb2eee685755169bfcd5d))
|
|
45
|
+
* add image to default result card render ([c50319e](https://bitbucket.org/usereactify/reactify-search-ui/commit/c50319e1011a7465c07b509b5164ea04b9f38684))
|
|
46
|
+
* add listClassName prop to ResultList component ([f28be3e](https://bitbucket.org/usereactify/reactify-search-ui/commit/f28be3e4d0f8c74d5e7e20e214aec0ee7867ce7c))
|
|
47
|
+
* add local bundle serve ([318443e](https://bitbucket.org/usereactify/reactify-search-ui/commit/318443efc082a5714e99221d4647a91f60d9ac91))
|
|
48
|
+
* add onRedirect prop + fix caching issue when searching from search page ([59b32f6](https://bitbucket.org/usereactify/reactify-search-ui/commit/59b32f65c8ede64cbd42d297ed7a4e131b8650eb))
|
|
49
|
+
* add pagination, sort, filter and promotion analytics events ([5968814](https://bitbucket.org/usereactify/reactify-search-ui/commit/596881486f05189d90823f0ec1b093580d79a786))
|
|
50
|
+
* add renderBooting prop for rendering while config is loading ([3da876e](https://bitbucket.org/usereactify/reactify-search-ui/commit/3da876e5a87ecd98f2abe462994461b7cd39acda))
|
|
51
|
+
* add renderResultCard prop to ResultList component ([889255f](https://bitbucket.org/usereactify/reactify-search-ui/commit/889255fc8cb2f1db0a6d86be2159276a0da384b7))
|
|
52
|
+
* add ResultPagination component and usePages hook ([#4](https://bitbucket.org/usereactify/reactify-search-ui/issues/4)) ([e8dcf61](https://bitbucket.org/usereactify/reactify-search-ui/commit/e8dcf610ec1eac9b328935a713732284a1f4d7f8))
|
|
53
|
+
* add ResultStateProvider component for accessing page state ([ec4cc6f](https://bitbucket.org/usereactify/reactify-search-ui/commit/ec4cc6f08ef2aeae46fe864e61d71ec36e50a0e3))
|
|
54
|
+
* add SearchInput component and associated instant search support ([98a8af7](https://bitbucket.org/usereactify/reactify-search-ui/commit/98a8af726f9e781bd03c5ed2dd815c0976b19f21))
|
|
55
|
+
* add SensorInventoryAvailable and rename SensorStack ([18d7aaa](https://bitbucket.org/usereactify/reactify-search-ui/commit/18d7aaa4a2d7e82d34014ccc888c624cffba4f03))
|
|
56
|
+
* add SensorStackInstantSearch ([e93308f](https://bitbucket.org/usereactify/reactify-search-ui/commit/e93308f06532e7877300c84820e5019b152c895b))
|
|
57
|
+
* add sentry error boundary ([c6dbbab](https://bitbucket.org/usereactify/reactify-search-ui/commit/c6dbbabb6e130eb395cf984df655951981ef7496))
|
|
58
|
+
* add sentry release tracking to ci ([67c813d](https://bitbucket.org/usereactify/reactify-search-ui/commit/67c813d2c8812cf1b6c4e2ad1ce9b0a38ebce24b))
|
|
59
|
+
* add shop name in context, ([13b54e2](https://bitbucket.org/usereactify/reactify-search-ui/commit/13b54e28715b7789cc5cf47d82cc205d175ce1ee))
|
|
60
|
+
* add sort option into url params ([f78ec9b](https://bitbucket.org/usereactify/reactify-search-ui/commit/f78ec9b69555df9cb297d818a06d08d6587889c3))
|
|
61
|
+
* add support for additional datasearch input props ([a6c6382](https://bitbucket.org/usereactify/reactify-search-ui/commit/a6c63825f6d3e616d57dc0f0af91895475175cc0))
|
|
62
|
+
* add support for collections assigned to filter groups ([afe0711](https://bitbucket.org/usereactify/reactify-search-ui/commit/afe071115aa7633f49d5f95673c544989e80f011))
|
|
63
|
+
* add support for filter option settingsUppercase ([99d822b](https://bitbucket.org/usereactify/reactify-search-ui/commit/99d822b611ec0302fe314cbe0b1c24653b1ae72c))
|
|
64
|
+
* add support for global curation / default boosting rules ([b476e75](https://bitbucket.org/usereactify/reactify-search-ui/commit/b476e75233202bd3ab190d7806cad0b8077463a8))
|
|
65
|
+
* add support for pinning products in curations that don't exist within the resultset ([3ceadf6](https://bitbucket.org/usereactify/reactify-search-ui/commit/3ceadf621ab78b216bf355d3e2ec648a6d9fee44))
|
|
66
|
+
* add support for settingsHideUnavailable at filter level for variant nested fields ([5ca63e1](https://bitbucket.org/usereactify/reactify-search-ui/commit/5ca63e1dcd35c9f6f80c83d49ab6f8bb87ecaa7d))
|
|
67
|
+
* add support for valuesManual in filter option filtering ([c2cef69](https://bitbucket.org/usereactify/reactify-search-ui/commit/c2cef69e491f9852a1250e7218550ac6c1e1671e))
|
|
68
|
+
* add totalSelected to filter render props (RS-16) ([7949200](https://bitbucket.org/usereactify/reactify-search-ui/commit/7949200f0307637dda424875e7ca394aa179cdb6))
|
|
69
|
+
* add warning and prevent tracking request if "shopifyPermanentDomain" is missing ([bcbf378](https://bitbucket.org/usereactify/reactify-search-ui/commit/bcbf378ac057755347556a60bae58684df8f65c1))
|
|
70
|
+
* add zero results and view product (impressions) events ([db4f310](https://bitbucket.org/usereactify/reactify-search-ui/commit/db4f3102c592bc295534bcb5de9523d1f0b26557))
|
|
71
|
+
* additional result props in ResultList ([821b022](https://bitbucket.org/usereactify/reactify-search-ui/commit/821b02281baa07b844ce3c6dbba1f8a1ef42dee7))
|
|
72
|
+
* adjust page size to accommodate callouts ([0365896](https://bitbucket.org/usereactify/reactify-search-ui/commit/03658965e65ba451a5c419b14599a71296e589c3))
|
|
73
|
+
* allow custom grid styles to be provided and override defaults ([25ce405](https://bitbucket.org/usereactify/reactify-search-ui/commit/25ce405300777b9d55a0e806672787bd552438a6))
|
|
74
|
+
* allow provider theme to be configured ([33eb10f](https://bitbucket.org/usereactify/reactify-search-ui/commit/33eb10f50dbdaaf2f399ea0e95b673222da868b1))
|
|
75
|
+
* **app:** add provider prop "configId" to support multi-config shops ([2ef6af5](https://bitbucket.org/usereactify/reactify-search-ui/commit/2ef6af5a6d46331690bdd3c35ee72193dca8f587))
|
|
76
|
+
* apply defaultQuery to nested variant filters to check inventory available ([a348522](https://bitbucket.org/usereactify/reactify-search-ui/commit/a3485220bb3c682d70a6efcd9b520972430a00d7))
|
|
77
|
+
* call track after trigger query in SearhInput ([8a09111](https://bitbucket.org/usereactify/reactify-search-ui/commit/8a0911165ea4484bf7bcf65b12c687a0d8b674ca))
|
|
78
|
+
* collapse state optional in renderFilterList, rename filterListProps ([9eef3d3](https://bitbucket.org/usereactify/reactify-search-ui/commit/9eef3d35ffeaefd568a1d1839bc13b87705e7cb1))
|
|
79
|
+
* collection default query ([154e3d2](https://bitbucket.org/usereactify/reactify-search-ui/commit/154e3d2ceadce6625427aa6d7d0cd98ac671a6d2))
|
|
80
|
+
* combined results in result list ([a85f39e](https://bitbucket.org/usereactify/reactify-search-ui/commit/a85f39e8d425c51b8108df488145ade8eec1cdf5))
|
|
81
|
+
* currency formatting, brand logos and hover image improvements ([9c63fe3](https://bitbucket.org/usereactify/reactify-search-ui/commit/9c63fe33b3d67b2507e2c6f05d7a5450c88132f2))
|
|
82
|
+
* default query and sort state ([f20dc5c](https://bitbucket.org/usereactify/reactify-search-ui/commit/f20dc5cf5751ce106bb5fce821e648d1cd1a10c0))
|
|
83
|
+
* disable callouts unless enableCallouts prop is set ([c2ac79a](https://bitbucket.org/usereactify/reactify-search-ui/commit/c2ac79abffc87d050b766b6786977de43920af17))
|
|
84
|
+
* drop SensorStackInstantsearch in favor of single SensorStack with context ([f31a60b](https://bitbucket.org/usereactify/reactify-search-ui/commit/f31a60b9ba6bf2c61d88529b3ceec0b5aa188e1f))
|
|
85
|
+
* enable url params for filters ([6f2675f](https://bitbucket.org/usereactify/reactify-search-ui/commit/6f2675f0328de1e3c0cd20172d2053b2776dfb0f))
|
|
86
|
+
* filter column titles ([05c41ba](https://bitbucket.org/usereactify/reactify-search-ui/commit/05c41ba8985f2de317fffd9fafc3d883c6dced0c))
|
|
87
|
+
* filter matrix and hook ([278d8ad](https://bitbucket.org/usereactify/reactify-search-ui/commit/278d8adfcce10575b90a8b8c16797f167961843b))
|
|
88
|
+
* filter options ([106387a](https://bitbucket.org/usereactify/reactify-search-ui/commit/106387aeb38cafa1fdb7132b4c5cf97d08949a5c))
|
|
89
|
+
* filter titles and collapse logic ([5469941](https://bitbucket.org/usereactify/reactify-search-ui/commit/546994160fb291b1e15c522730d72d895216033f))
|
|
90
|
+
* firebase config ([1038df0](https://bitbucket.org/usereactify/reactify-search-ui/commit/1038df0bbc729ca268c715a0c8de6d4667adb4c6))
|
|
91
|
+
* hide callouts when not sorting by "_score" or "collections.position" ([bf2d57a](https://bitbucket.org/usereactify/reactify-search-ui/commit/bf2d57aa5b682375dc06995bb54d90ece330f5e3))
|
|
92
|
+
* ignore cached config if "nocache" url search param is set ([38823c2](https://bitbucket.org/usereactify/reactify-search-ui/commit/38823c2272fd0a2ae6d45401df35a2148107fe8e))
|
|
93
|
+
* import debut theme collection to playground page ([c137569](https://bitbucket.org/usereactify/reactify-search-ui/commit/c137569902b69636e53c6f9cdf297088e18c548a))
|
|
94
|
+
* improve classnames ([19fcfa1](https://bitbucket.org/usereactify/reactify-search-ui/commit/19fcfa152c555cb2e78ec62371f1758e2d244557))
|
|
95
|
+
* improve default components ([81bb427](https://bitbucket.org/usereactify/reactify-search-ui/commit/81bb427367987125eeea352189dd9f411cb4850f))
|
|
96
|
+
* improve dx for filter wrapper, map checked in hook ([3873238](https://bitbucket.org/usereactify/reactify-search-ui/commit/38732380e0a790c92709308b30815d6c0170b27d))
|
|
97
|
+
* improve performance when debugging by reusing debugger instances ([aa88917](https://bitbucket.org/usereactify/reactify-search-ui/commit/aa88917b0aedf2abe66439d430587f18dcb72aae))
|
|
98
|
+
* improve sentry release process ([4237771](https://bitbucket.org/usereactify/reactify-search-ui/commit/423777120041228dcb6f819f71a00abd08d43987))
|
|
99
|
+
* improve sentry stacktraces and logging ([7f34b30](https://bitbucket.org/usereactify/reactify-search-ui/commit/7f34b3064f41ad9a0e5a3ddc3fa071e5981d0141))
|
|
100
|
+
* improve sorting of filter list options ([c41eedc](https://bitbucket.org/usereactify/reactify-search-ui/commit/c41eedc900f500d3ddf9434cb14a7397c6385707))
|
|
101
|
+
* initial docs ([016fd2b](https://bitbucket.org/usereactify/reactify-search-ui/commit/016fd2ba36d7992bc6c63f9c75315befbfddd625))
|
|
102
|
+
* initial ui library components ([803d586](https://bitbucket.org/usereactify/reactify-search-ui/commit/803d586af75217401c34f7df1b2613eb9944c710))
|
|
103
|
+
* instant search redirects and sort score ([55d85cc](https://bitbucket.org/usereactify/reactify-search-ui/commit/55d85cc7e60803825a338008c52da95b6d035ab8))
|
|
104
|
+
* instantsearch component ([8256cdc](https://bitbucket.org/usereactify/reactify-search-ui/commit/8256cdc9ba0b281bd4135d62240c93180cca8210))
|
|
105
|
+
* instantsearch with reactivelist component ([1564b0d](https://bitbucket.org/usereactify/reactify-search-ui/commit/1564b0dd21b25244c635ea1ac903b177aad3bc29))
|
|
106
|
+
* merge global boosting rules with curation when empty ([248cbdd](https://bitbucket.org/usereactify/reactify-search-ui/commit/248cbdda01864c0d536f5e971f81e331de4c827d))
|
|
107
|
+
* move filter logic to hook, add render props ([333da46](https://bitbucket.org/usereactify/reactify-search-ui/commit/333da4683d93bfeec2c683a43e094179ce5cc39d))
|
|
108
|
+
* move index to a dedicated prop, make credentials optional and set default ([a0696ba](https://bitbucket.org/usereactify/reactify-search-ui/commit/a0696ba239b7b036b37a2764a939ce2f26e992b4))
|
|
109
|
+
* multilist filter ([34be9bf](https://bitbucket.org/usereactify/reactify-search-ui/commit/34be9bf081c0f24520e634ae2ada863deb8f238b))
|
|
110
|
+
* optional collapse state in filter wrapper, add noWrapper prop ([2ea7d1f](https://bitbucket.org/usereactify/reactify-search-ui/commit/2ea7d1feabe26d2c70826b517b94ddac9a972e87))
|
|
111
|
+
* pagination ([e50965a](https://bitbucket.org/usereactify/reactify-search-ui/commit/e50965a1cba32ae30bc1545789d551ce94ba4556))
|
|
112
|
+
* pin @appbaseio/reactivesearch at ^3.14.0 to match advice given to delivery teams ([fb93473](https://bitbucket.org/usereactify/reactify-search-ui/commit/fb93473fa5723a71cfad264f4c4fd09c541ea278))
|
|
113
|
+
* product card breakpoints ([657d1b1](https://bitbucket.org/usereactify/reactify-search-ui/commit/657d1b1452f81898552133732086d7e7938f16ca))
|
|
114
|
+
* remove combined results logic, discriminate product and callout ([ee1b38e](https://bitbucket.org/usereactify/reactify-search-ui/commit/ee1b38eeddad8eedec473c5b49364b67fa6ae311))
|
|
115
|
+
* remove defaultQuery in favor of SensorCollection ([f33c1b2](https://bitbucket.org/usereactify/reactify-search-ui/commit/f33c1b2d1eaf3dfbccd6b8a786e70a56a788bb3e))
|
|
116
|
+
* remove event handling overrides in useAnalytics track function ([3cb1bc5](https://bitbucket.org/usereactify/reactify-search-ui/commit/3cb1bc50318f64c2d11013697152d187108d603c))
|
|
117
|
+
* rename FilterMatrix to FilterStack ([62788cd](https://bitbucket.org/usereactify/reactify-search-ui/commit/62788cd135e424ab81426ad7e1ae7a3d825d4e28))
|
|
118
|
+
* render callouts in result list, implement grid ([e8cbaad](https://bitbucket.org/usereactify/reactify-search-ui/commit/e8cbaad07db3daf2c4a59a2de565774db213d0c6))
|
|
119
|
+
* renderAfter, renderBefore and renderPagination props on ResultList ([05d2203](https://bitbucket.org/usereactify/reactify-search-ui/commit/05d2203447d4ca9fb7843dc3ad0b8b8f111b67e6))
|
|
120
|
+
* renderError prop on ResultList component ([d95d6df](https://bitbucket.org/usereactify/reactify-search-ui/commit/d95d6df10059badc661eeb1041db76531e44231c))
|
|
121
|
+
* renderLoading prop on ResultList component with initial search logic ([1568d2e](https://bitbucket.org/usereactify/reactify-search-ui/commit/1568d2e8729b455b50d42c532cb3bcb91c4e4130))
|
|
122
|
+
* renderLoadMoreButton prop on ResultList with default button ([bd5af24](https://bitbucket.org/usereactify/reactify-search-ui/commit/bd5af24daf4fe1e3c41afa5749f10df0d8b64bb2))
|
|
123
|
+
* renderPaginationNextPrev prop on ResultList with default component ([d587303](https://bitbucket.org/usereactify/reactify-search-ui/commit/d58730367916629770240c8e85549003ce8ddc28))
|
|
124
|
+
* result card component, list logic and hooks ([7c419e9](https://bitbucket.org/usereactify/reactify-search-ui/commit/7c419e9fd1a5fdcdb00ed3289fbcf069d3646710))
|
|
125
|
+
* result card promo component ([357e228](https://bitbucket.org/usereactify/reactify-search-ui/commit/357e2281b8fa2d3ace97c3ab8e90e55de87e0e02))
|
|
126
|
+
* result list component and hook ([78834ce](https://bitbucket.org/usereactify/reactify-search-ui/commit/78834ce65eb804395c3ea303d3e00f4364c0cdfc))
|
|
127
|
+
* search components ([e744e5a](https://bitbucket.org/usereactify/reactify-search-ui/commit/e744e5ae38dfb8bc54603eadf9443c0aaddb1f1e))
|
|
128
|
+
* search fields from reactify config, redirect to search page on enter ([dc47d45](https://bitbucket.org/usereactify/reactify-search-ui/commit/dc47d45f39f49bdc386006c238fa823c6fc07cbb))
|
|
129
|
+
* **search:** allow searchQuery to be provided to submitSearch ([116e5d6](https://bitbucket.org/usereactify/reactify-search-ui/commit/116e5d60084ae20ccac3bb07d9e17d2158888479))
|
|
130
|
+
* **search:** onBlur, onFocus events in SearchInput component ([c6799be](https://bitbucket.org/usereactify/reactify-search-ui/commit/c6799be75c667a47c9c6aac84696040ff0f12acc))
|
|
131
|
+
* see all results button in instant search results ([90c6596](https://bitbucket.org/usereactify/reactify-search-ui/commit/90c659646423bc871e37f071682c6e5569cb13f9))
|
|
132
|
+
* SensorPublished and SensorSearch ([6c735c1](https://bitbucket.org/usereactify/reactify-search-ui/commit/6c735c11525b4d33e9bca611e82b97ec37ec0b8c))
|
|
133
|
+
* SensorSortScore component ([a3050f6](https://bitbucket.org/usereactify/reactify-search-ui/commit/a3050f6a7c9f1c727ad920c2b68d8e4fbdf933d9))
|
|
134
|
+
* set default reset theme ([0661294](https://bitbucket.org/usereactify/reactify-search-ui/commit/0661294a03eae7e70d29a2415df968da38bb0bf8))
|
|
135
|
+
* sort context and sensor ([8dde395](https://bitbucket.org/usereactify/reactify-search-ui/commit/8dde3953cc022723fbc58e67d75cdcf3da95d023))
|
|
136
|
+
* sort of _score always be desc ([f51e75c](https://bitbucket.org/usereactify/reactify-search-ui/commit/f51e75c4f21acb54fbe64e444b26dd02f452c6ac))
|
|
137
|
+
* sort sensor and selector component ([b52bcfa](https://bitbucket.org/usereactify/reactify-search-ui/commit/b52bcfa0e796ed8ed5e7e81a068100162243932e))
|
|
138
|
+
* support hidden curation products in SensorSort ([c80a52f](https://bitbucket.org/usereactify/reactify-search-ui/commit/c80a52f6e515bb023dd99caedc20ace38444b725))
|
|
139
|
+
* switch to using "handle" instead of "id" for filter and filter option ([a92bdd7](https://bitbucket.org/usereactify/reactify-search-ui/commit/a92bdd75e68c6291b9f321cec5e77f3934152a9a))
|
|
140
|
+
* switch to using "handle" instead of "id" for sort option ([c2be1fa](https://bitbucket.org/usereactify/reactify-search-ui/commit/c2be1fabd4ba1634e47715393c2065a1ca2ba9e7))
|
|
141
|
+
* **theme-debut:** add instant search component ([3017fb2](https://bitbucket.org/usereactify/reactify-search-ui/commit/3017fb2d2b2da6413d148e7853e47f7cdf30e3e2))
|
|
142
|
+
* **theme-debut:** add styled filters ([467b255](https://bitbucket.org/usereactify/reactify-search-ui/commit/467b2551723aa413696f4060d9b20777a40298e4))
|
|
143
|
+
* **theme-debut:** add styling for product cards ([1397aa1](https://bitbucket.org/usereactify/reactify-search-ui/commit/1397aa193eec73592e17b32a5a12d4806a7f808b))
|
|
144
|
+
* **theme-debut:** add tailwind jit styles ([6e28c52](https://bitbucket.org/usereactify/reactify-search-ui/commit/6e28c520a2113f68fb0fc37bbedd2083c39ad39f))
|
|
145
|
+
* update build commands ([b084e0c](https://bitbucket.org/usereactify/reactify-search-ui/commit/b084e0cf5574e65d0aa3263ddb862901e0a63a06))
|
|
146
|
+
* update callout card for new ElasticCallout type ([8db23b5](https://bitbucket.org/usereactify/reactify-search-ui/commit/8db23b5e5b240b45ada520b30a43ff988bcff9d5))
|
|
147
|
+
* update provider to use live config hook ([d898df0](https://bitbucket.org/usereactify/reactify-search-ui/commit/d898df01cb21538d9cd5dada9d343967ad91cdd6))
|
|
148
|
+
* use emotion cache key to support multiple apps in page ([07a5067](https://bitbucket.org/usereactify/reactify-search-ui/commit/07a5067b339b7c555e3b939b09758df00598698f))
|
|
149
|
+
* useAnalytics hook ([17fb749](https://bitbucket.org/usereactify/reactify-search-ui/commit/17fb749e763870a2888c3cf68ceeff3cd0d8fc21))
|
|
150
|
+
* useReactiveBaseProps hook and restructure ReactiveBase inclusion ([51873b3](https://bitbucket.org/usereactify/reactify-search-ui/commit/51873b39abe927115487d24c6140be21a2b82c8a))
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Bug Fixes
|
|
154
|
+
|
|
155
|
+
* add missing lower case to existing sort sensor ([c7099a0](https://bitbucket.org/usereactify/reactify-search-ui/commit/c7099a0edf57658fa006ac018b017807891a44dd))
|
|
156
|
+
* add missing next/prev pagination export ([6b13902](https://bitbucket.org/usereactify/reactify-search-ui/commit/6b139027cc1b5038add4d688a9301add2f6e75ee))
|
|
157
|
+
* add missing package "axios" ([eaa4763](https://bitbucket.org/usereactify/reactify-search-ui/commit/eaa476367ef0947b20c24fe4001efb4550184516))
|
|
158
|
+
* add missing sensors to result list react prop ([2293c43](https://bitbucket.org/usereactify/reactify-search-ui/commit/2293c4391917a536e31fc3f3fce08703ab134e6b))
|
|
159
|
+
* add missing spread operator ([acc51cb](https://bitbucket.org/usereactify/reactify-search-ui/commit/acc51cb5c414831e3d0e919185d076895903d837))
|
|
160
|
+
* add nested attribute to collection position sort clause (RS-124) ([0932b3e](https://bitbucket.org/usereactify/reactify-search-ui/commit/0932b3e6e64dd2a0ef9df592c431f0dc5340fcc1))
|
|
161
|
+
* add timeout to blur event so results remain clickable ([fe98040](https://bitbucket.org/usereactify/reactify-search-ui/commit/fe980407427256246051bee8be152048ae841cf2))
|
|
162
|
+
* **app:** fix access to undefined sort option ID ([f93bbce](https://bitbucket.org/usereactify/reactify-search-ui/commit/f93bbcec82ee61d4a0bf19d7ab18894339f8a27c))
|
|
163
|
+
* case insensitive redirect match ([#11](https://bitbucket.org/usereactify/reactify-search-ui/issues/11)) ([096c7fb](https://bitbucket.org/usereactify/reactify-search-ui/commit/096c7fb84d77ae0d985b2e7cf4ade6c80e3171e7))
|
|
164
|
+
* check compare_at_price exists before formatting in useProductPrice ([acba76c](https://bitbucket.org/usereactify/reactify-search-ui/commit/acba76c6d8e0c5ba1482fe230e20fcd286f11e69))
|
|
165
|
+
* check for existence of window before using (node render) ([df7f9b0](https://bitbucket.org/usereactify/reactify-search-ui/commit/df7f9b0c0c29d561e69107c8086a5d0fa023aaee))
|
|
166
|
+
* check that window is defined before accessing ([e1ec0aa](https://bitbucket.org/usereactify/reactify-search-ui/commit/e1ec0aae22cab7eb86363ed09d47e422d08ff5c1))
|
|
167
|
+
* correct logic for calculating search fields when config is empty or updates ([ae67498](https://bitbucket.org/usereactify/reactify-search-ui/commit/ae6749875f295db99f012b54cc06e10346f702d0))
|
|
168
|
+
* correct tsconfig ([e82defa](https://bitbucket.org/usereactify/reactify-search-ui/commit/e82defac47d754df543fc276319ba759de607507))
|
|
169
|
+
* correct tsconfig ([01a796b](https://bitbucket.org/usereactify/reactify-search-ui/commit/01a796bfc03f4153d8fbbea86a0597ee3c665a94))
|
|
170
|
+
* correct typings for selected sort option within context ([f363fc2](https://bitbucket.org/usereactify/reactify-search-ui/commit/f363fc2c8ea1ad88e65844c382620b927614c403))
|
|
171
|
+
* define nested field prop for variants ([2af7ebe](https://bitbucket.org/usereactify/reactify-search-ui/commit/2af7ebe6b33c1ca19faf27ca0f525fe1f1669ced))
|
|
172
|
+
* disable scrollOnChange prop ([50592e0](https://bitbucket.org/usereactify/reactify-search-ui/commit/50592e0db250bfae5809b0a92e9c5f72e43b4d88))
|
|
173
|
+
* dom warnings ([555fb78](https://bitbucket.org/usereactify/reactify-search-ui/commit/555fb783e44d28261c701e2b5896533b5b2f6743))
|
|
174
|
+
* enable typescript inlinesources ([6998e8e](https://bitbucket.org/usereactify/reactify-search-ui/commit/6998e8e3e884d62cf08b08c43ae7dbc73db7f471))
|
|
175
|
+
* export Filter and FilterList components ([7a297dd](https://bitbucket.org/usereactify/reactify-search-ui/commit/7a297dd630c3582d5bf9ae32eb6d31663ee2654d))
|
|
176
|
+
* filter currentId from all filters in useReactiveReactProp ([645fe73](https://bitbucket.org/usereactify/reactify-search-ui/commit/645fe7373f469255d15bbe12c05d478193053ac6))
|
|
177
|
+
* filter styling updates ([c5c3b8f](https://bitbucket.org/usereactify/reactify-search-ui/commit/c5c3b8f9e4fa349fac05e288bd146053802396a1))
|
|
178
|
+
* fix request payload ([aa33e95](https://bitbucket.org/usereactify/reactify-search-ui/commit/aa33e95ba1162ec0bbb84cd25c2e4483f3822455))
|
|
179
|
+
* fix search event payload ([5bd8c03](https://bitbucket.org/usereactify/reactify-search-ui/commit/5bd8c03e024f3ff0fb14135b9dbc60a9c709fb38))
|
|
180
|
+
* force lower case curation search term ([09d73bf](https://bitbucket.org/usereactify/reactify-search-ui/commit/09d73bf8b86942f8fb67d9283e55bee6e99ae963))
|
|
181
|
+
* force value to be an array in filter customQuery ([454c110](https://bitbucket.org/usereactify/reactify-search-ui/commit/454c11023a3386c00ad4bcec33ba04d94c86c330))
|
|
182
|
+
* include sorting by collection position when using global curation ([141c463](https://bitbucket.org/usereactify/reactify-search-ui/commit/141c46351711c3cff65275e47fdf8e9ed64b0ad8))
|
|
183
|
+
* incorrect hasSelected calculation from filter value ([bf1e8c8](https://bitbucket.org/usereactify/reactify-search-ui/commit/bf1e8c84a54164bd905931743356d301b3b2b5d6))
|
|
184
|
+
* instant search sorting ([b6ce036](https://bitbucket.org/usereactify/reactify-search-ui/commit/b6ce036d06d72dbbe28fb1892537ee399ee77c0c))
|
|
185
|
+
* make collection nodes optional ([3b2afe5](https://bitbucket.org/usereactify/reactify-search-ui/commit/3b2afe5432d50ba2f8ee57f62478708e113d11d1))
|
|
186
|
+
* match useAnalytics endpoint signature ([b94a70c](https://bitbucket.org/usereactify/reactify-search-ui/commit/b94a70c9b1a1f8acc9a11bbff8e6414e77d34657))
|
|
187
|
+
* normalise collection handle and search term when resolving curation ([6bd1aec](https://bitbucket.org/usereactify/reactify-search-ui/commit/6bd1aecd163743bdcfc9582389f35a4dc579930c))
|
|
188
|
+
* only apply inventory sensor to products, not callouts ([7c186b8](https://bitbucket.org/usereactify/reactify-search-ui/commit/7c186b83c9f403f0987ef088714db1438f27cd84))
|
|
189
|
+
* only record select event when link clicked ([ba95992](https://bitbucket.org/usereactify/reactify-search-ui/commit/ba959923785837ed54053257012a1cfdcc69be59))
|
|
190
|
+
* only request live config if shop is present ([a9ab343](https://bitbucket.org/usereactify/reactify-search-ui/commit/a9ab343aef7790650635517a83fe4889e87427a3))
|
|
191
|
+
* only run tracking event when data exists ([a768c19](https://bitbucket.org/usereactify/reactify-search-ui/commit/a768c1931fd52e69d5538760547c50d610bcb8cf))
|
|
192
|
+
* pagination spacing ([945f23a](https://bitbucket.org/usereactify/reactify-search-ui/commit/945f23acfb9e9f39b343b51cad53bf57c8df8522))
|
|
193
|
+
* pass on nocache url param to config endpoint to bust caching on worker side ([51b9dcf](https://bitbucket.org/usereactify/reactify-search-ui/commit/51b9dcf0b8145691a2dd00aedbe951f71bbc04b3))
|
|
194
|
+
* pass render prop to ResultCardCalloutInner, add pagePosition prop ([3983db4](https://bitbucket.org/usereactify/reactify-search-ui/commit/3983db4c471a3172259662f03e400c3f8ed14b0d))
|
|
195
|
+
* product card image margins ([8417270](https://bitbucket.org/usereactify/reactify-search-ui/commit/8417270a3a829e525c6d4b330018f893dbe4fb01))
|
|
196
|
+
* product card negative margin ([0573eb0](https://bitbucket.org/usereactify/reactify-search-ui/commit/0573eb02b9bdac3ada0c9ad6f58d91980cba4ef2))
|
|
197
|
+
* product card text styling and alignment ([ef16770](https://bitbucket.org/usereactify/reactify-search-ui/commit/ef167700cccf3f094fed8329a6c3471f9af54c6a))
|
|
198
|
+
* 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))
|
|
199
|
+
* react results component to SensorCollection ([c2833e6](https://bitbucket.org/usereactify/reactify-search-ui/commit/c2833e6188958b054c39fce7cceefc154cc3e66c))
|
|
200
|
+
* regenerate yarn.lock in release script ([b97ddef](https://bitbucket.org/usereactify/reactify-search-ui/commit/b97ddefae363a25303afc90042044f0692fac3c5))
|
|
201
|
+
* remove console error for range filter ([9eeeb5d](https://bitbucket.org/usereactify/reactify-search-ui/commit/9eeeb5df6b1e71ce1d9ce784259b141988c450fb))
|
|
202
|
+
* remove name and variant from select_item event ([a87037d](https://bitbucket.org/usereactify/reactify-search-ui/commit/a87037d493a269fd402f68431fa4fd0c90911f70))
|
|
203
|
+
* remove problematic css color "inherit" ([aa304bd](https://bitbucket.org/usereactify/reactify-search-ui/commit/aa304bde76528d54722255b0e38ef732f58218b6))
|
|
204
|
+
* render issues with expired config cache ([2c408ad](https://bitbucket.org/usereactify/reactify-search-ui/commit/2c408adce950da369db77ff8ece5a8d08cd92d5f))
|
|
205
|
+
* result card image alignment ([46aedd0](https://bitbucket.org/usereactify/reactify-search-ui/commit/46aedd030f4e623bee3d28647f97c100648cd8ef))
|
|
206
|
+
* **search:** correct type for context submitSearch ([8b3e647](https://bitbucket.org/usereactify/reactify-search-ui/commit/8b3e64716b6d82e14efc8abb88ff1f6013d5c182))
|
|
207
|
+
* **search:** include _score in sort state eligible for curations ([2839929](https://bitbucket.org/usereactify/reactify-search-ui/commit/2839929be960aabd0b45e4aad0ce6a5abdc776e6))
|
|
208
|
+
* **search:** ssr build issue due to window ([aada68a](https://bitbucket.org/usereactify/reactify-search-ui/commit/aada68a20cdb8cffe43abbde487229819fdd39e3))
|
|
209
|
+
* select_item event, add questions in comments ([8693a78](https://bitbucket.org/usereactify/reactify-search-ui/commit/8693a781049ee44d429f4bf6149532737d9ccbb8))
|
|
210
|
+
* set base url for docs ([11fca33](https://bitbucket.org/usereactify/reactify-search-ui/commit/11fca33ea6e9a2b137b758f67206194b9b4e574b))
|
|
211
|
+
* set product images to large via cdn ([d1c311f](https://bitbucket.org/usereactify/reactify-search-ui/commit/d1c311fcb093b2ba0ec31adf3677da079328c833))
|
|
212
|
+
* show all filter options unless displaySize is defined ([6887ed7](https://bitbucket.org/usereactify/reactify-search-ui/commit/6887ed70737b864cf87cf97433626b9e5ecb7c98))
|
|
213
|
+
* size and colour filter targets in docs ([735c12e](https://bitbucket.org/usereactify/reactify-search-ui/commit/735c12ed29683d324651382f4fad55c16941e716))
|
|
214
|
+
* ssr playground issues ([5cdb445](https://bitbucket.org/usereactify/reactify-search-ui/commit/5cdb4458ca5db1526a3e00eeff99b7e071dd3ae2))
|
|
215
|
+
* support missing compare_at_price on price sets ([dbe3fc2](https://bitbucket.org/usereactify/reactify-search-ui/commit/dbe3fc20db23e1969f0d0c9ee75e646cce3f1858))
|
|
216
|
+
* support v1 indexes in ResultList component ([4c23ef3](https://bitbucket.org/usereactify/reactify-search-ui/commit/4c23ef3757daeb505823f4af6399746a29404f7a))
|
|
217
|
+
* switch to reactify sentry org dsn ([cae3cf0](https://bitbucket.org/usereactify/reactify-search-ui/commit/cae3cf02721ee8b40ddf13854e7aa3cea88034f4))
|
|
218
|
+
* text styling for filter titles ([7c0d15c](https://bitbucket.org/usereactify/reactify-search-ui/commit/7c0d15cbd05ace9df056b260c2978146109270a7))
|
|
219
|
+
* **theme-debut:** browser warning for svg property ([4fd7948](https://bitbucket.org/usereactify/reactify-search-ui/commit/4fd794848b4b15becb601718f635005407db6d79))
|
|
220
|
+
* **theme-debut:** fix flex width on results grid ([049da94](https://bitbucket.org/usereactify/reactify-search-ui/commit/049da942aa87c7a887d689f78f77da02b9b63422))
|
|
221
|
+
* **theme-debut:** use new SensorStack component ([da59639](https://bitbucket.org/usereactify/reactify-search-ui/commit/da5963989b5012a231df3ea572f02095c4cc8489))
|
|
222
|
+
* tighten up instantsearch debounce solution ([6f811ca](https://bitbucket.org/usereactify/reactify-search-ui/commit/6f811ca9350165c8858ae3388eac09af56a32cfd))
|
|
223
|
+
* update filter resolution to return first filter if none found with type ([e7990d1](https://bitbucket.org/usereactify/reactify-search-ui/commit/e7990d1727dd019fba19f9a8132109c992a9a57e))
|
|
224
|
+
* update provider props to suit merged changes ([f014e87](https://bitbucket.org/usereactify/reactify-search-ui/commit/f014e87e14776577d0f83d24a5c94aa6d3b15818))
|
|
225
|
+
* use american color variation ([57f9b0e](https://bitbucket.org/usereactify/reactify-search-ui/commit/57f9b0e6de4482fd451bd36a1b49e47bb8d28f8e))
|
|
226
|
+
* use collection for filter for both filter and search until configurable ([007def5](https://bitbucket.org/usereactify/reactify-search-ui/commit/007def512972b88ae1750157184436e11aca2691))
|
|
227
|
+
* use commonjs ([b742b8b](https://bitbucket.org/usereactify/reactify-search-ui/commit/b742b8b268c0a663361147efb93bf120a208a708))
|
|
228
|
+
* use correct glob pattern for artifacts ([9f35c7c](https://bitbucket.org/usereactify/reactify-search-ui/commit/9f35c7ccea4f957a94b172fe7ac62b53faf73b32))
|
|
229
|
+
* use correct names of components and imports ([e180a75](https://bitbucket.org/usereactify/reactify-search-ui/commit/e180a75b0c4be555a61d72e48a54434b7aa27960))
|
|
230
|
+
* use docusaurus router for index docs redirect ([167403b](https://bitbucket.org/usereactify/reactify-search-ui/commit/167403b4aa2f53c57f4cbc69c0a00f78fb46afd2))
|
|
231
|
+
* use variants.available in SensorInventoryAvailable ([ffaa237](https://bitbucket.org/usereactify/reactify-search-ui/commit/ffaa237663ad3a44ed798539c5c5306f11533ec8))
|
|
232
|
+
* use yarn to fix monorepo issues, upgrade docusaurus ([aa4ee48](https://bitbucket.org/usereactify/reactify-search-ui/commit/aa4ee4851b72acc30718974b3642c0932aa56f35))
|
|
233
|
+
* white line ([2a5a191](https://bitbucket.org/usereactify/reactify-search-ui/commit/2a5a191872531e8ccdd63ff0135d6474324f3f43))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
* align code and docs for v5 ([e1823a5](https://bitbucket.org/usereactify/reactify-search-ui/commit/e1823a5ab06dcea89b848bde4156f488241dea01))
|
|
237
|
+
* separate monolith provider into hooks and context ([4a85878](https://bitbucket.org/usereactify/reactify-search-ui/commit/4a858787ad547e87e10d3c3859ce41f87a4c3bbe))
|
|
238
|
+
|
|
5
239
|
## 5.0.0 (2022-08-05)
|
|
6
240
|
|
|
7
241
|
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usereactify/search",
|
|
3
3
|
"description": "React UI library for Reactify Search",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"types": "dist/src/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"watch": "tsc --watch",
|
|
15
|
-
"release": "standard-version --tag-prefix
|
|
15
|
+
"release": "standard-version --tag-prefix release-v",
|
|
16
16
|
"release:beta": "standard-version --tag-prefix beta-v --prerelease beta",
|
|
17
17
|
"prebuild": "rimraf dist",
|
|
18
18
|
"build": "tsc",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare const ExampleCustomComponent: React.FC;
|
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20
4
|
};
|
|
21
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
6
|
exports.ExampleCustomComponent = void 0;
|
|
23
|
-
const
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
24
8
|
const components_1 = require("../../components");
|
|
25
9
|
const ExampleCustomComponent = () => {
|
|
26
|
-
return (
|
|
27
|
-
|
|
10
|
+
return (react_1.default.createElement(components_1.ReactifySearchProvider, { mode: "search", shopifyPermanentDomain: "reactify-apps.myshopify.com", additionalComponentHandles: ["SensorSpecialProduct"] },
|
|
11
|
+
react_1.default.createElement(components_1.CustomComponent, { componentId: "SensorSpecialProduct", customQuery: () => ({
|
|
28
12
|
query: {
|
|
29
13
|
match: {
|
|
30
14
|
product_type: "Special Product",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleCustomComponent.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleCustomComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleCustomComponent.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleCustomComponent.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAA2E;AAEpE,MAAM,sBAAsB,GAAa,GAAG,EAAE;IACnD,OAAO,CACL,8BAAC,mCAAsB,IACrB,IAAI,EAAC,QAAQ,EACb,sBAAsB,EAAC,6BAA6B,EACpD,0BAA0B,EAAE,CAAC,sBAAsB,CAAC;QAEpD,8BAAC,4BAAe,IACd,WAAW,EAAC,sBAAsB,EAClC,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC;gBAClB,KAAK,EAAE;oBACL,KAAK,EAAE;wBACL,YAAY,EAAE,iBAAiB;qBAChC;iBACF;aACF,CAAC,GACF,CACqB,CAC1B,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,sBAAsB,0BAmBjC","sourcesContent":["import React from \"react\";\n\nimport { ReactifySearchProvider, CustomComponent } from \"../../components\";\n\nexport const ExampleCustomComponent: React.FC = () => {\n return (\n <ReactifySearchProvider\n mode=\"search\"\n shopifyPermanentDomain=\"reactify-apps.myshopify.com\"\n additionalComponentHandles={[\"SensorSpecialProduct\"]}\n >\n <CustomComponent\n componentId=\"SensorSpecialProduct\"\n customQuery={() => ({\n query: {\n match: {\n product_type: \"Special Product\",\n },\n },\n })}\n />\n </ReactifySearchProvider>\n );\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare const ExampleReactiveSearchProviderCollection: React.FC;
|
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20
4
|
};
|
|
21
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
6
|
exports.ExampleReactiveSearchProviderCollection = void 0;
|
|
23
|
-
const
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
24
8
|
const components_1 = require("../../components");
|
|
25
|
-
const ExampleReactiveSearchProviderCollection = () => (
|
|
9
|
+
const ExampleReactiveSearchProviderCollection = () => (react_1.default.createElement(components_1.ReactifySearchProvider, { mode: "collection", shopifyPermanentDomain: "reactify-apps.myshopify.com", collectionHandle: "example-collection" }, "..."));
|
|
26
10
|
exports.ExampleReactiveSearchProviderCollection = ExampleReactiveSearchProviderCollection;
|
|
27
11
|
//# sourceMappingURL=ExampleReactiveSearchProviderCollection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleReactiveSearchProviderCollection.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleReactiveSearchProviderCollection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleReactiveSearchProviderCollection.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleReactiveSearchProviderCollection.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAA0D;AAEnD,MAAM,uCAAuC,GAAa,GAAG,EAAE,CAAC,CACrE,8BAAC,mCAAsB,IACrB,IAAI,EAAC,YAAY,EACjB,sBAAsB,EAAC,6BAA6B,EACpD,gBAAgB,EAAC,oBAAoB,UAGd,CAC1B,CAAC;AARW,QAAA,uCAAuC,2CAQlD","sourcesContent":["import React from \"react\";\n\nimport { ReactifySearchProvider } from \"../../components\";\n\nexport const ExampleReactiveSearchProviderCollection: React.FC = () => (\n <ReactifySearchProvider\n mode=\"collection\"\n shopifyPermanentDomain=\"reactify-apps.myshopify.com\"\n collectionHandle=\"example-collection\"\n >\n ...\n </ReactifySearchProvider>\n);\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare const ExampleReactiveSearchProviderInstantSearch: React.FC;
|
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20
4
|
};
|
|
21
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
6
|
exports.ExampleReactiveSearchProviderInstantSearch = void 0;
|
|
23
|
-
const
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
24
8
|
const components_1 = require("../../components");
|
|
25
|
-
const ExampleReactiveSearchProviderInstantSearch = () => (
|
|
9
|
+
const ExampleReactiveSearchProviderInstantSearch = () => (react_1.default.createElement(components_1.ReactifySearchProvider, { mode: "instant-search", shopifyPermanentDomain: "reactify-apps.myshopify.com" }, "..."));
|
|
26
10
|
exports.ExampleReactiveSearchProviderInstantSearch = ExampleReactiveSearchProviderInstantSearch;
|
|
27
11
|
//# sourceMappingURL=ExampleReactiveSearchProviderInstantSearch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleReactiveSearchProviderInstantSearch.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleReactiveSearchProviderInstantSearch.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleReactiveSearchProviderInstantSearch.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleReactiveSearchProviderInstantSearch.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAA0D;AAEnD,MAAM,0CAA0C,GAAa,GAAG,EAAE,CAAC,CACxE,8BAAC,mCAAsB,IACrB,IAAI,EAAC,gBAAgB,EACrB,sBAAsB,EAAC,6BAA6B,UAG7B,CAC1B,CAAC;AAPW,QAAA,0CAA0C,8CAOrD","sourcesContent":["import React from \"react\";\n\nimport { ReactifySearchProvider } from \"../../components\";\n\nexport const ExampleReactiveSearchProviderInstantSearch: React.FC = () => (\n <ReactifySearchProvider\n mode=\"instant-search\"\n shopifyPermanentDomain=\"reactify-apps.myshopify.com\"\n >\n ...\n </ReactifySearchProvider>\n);\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare const ExampleReactiveSearchProviderSearch: React.FC;
|
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20
4
|
};
|
|
21
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
6
|
exports.ExampleReactiveSearchProviderSearch = void 0;
|
|
23
|
-
const
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
24
8
|
const components_1 = require("../../components");
|
|
25
|
-
const ExampleReactiveSearchProviderSearch = () => (
|
|
9
|
+
const ExampleReactiveSearchProviderSearch = () => (react_1.default.createElement(components_1.ReactifySearchProvider, { mode: "search", shopifyPermanentDomain: "reactify-apps.myshopify.com" }, "..."));
|
|
26
10
|
exports.ExampleReactiveSearchProviderSearch = ExampleReactiveSearchProviderSearch;
|
|
27
11
|
//# sourceMappingURL=ExampleReactiveSearchProviderSearch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleReactiveSearchProviderSearch.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleReactiveSearchProviderSearch.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleReactiveSearchProviderSearch.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleReactiveSearchProviderSearch.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAA0D;AAEnD,MAAM,mCAAmC,GAAa,GAAG,EAAE,CAAC,CACjE,8BAAC,mCAAsB,IACrB,IAAI,EAAC,QAAQ,EACb,sBAAsB,EAAC,6BAA6B,UAG7B,CAC1B,CAAC;AAPW,QAAA,mCAAmC,uCAO9C","sourcesContent":["import React from \"react\";\n\nimport { ReactifySearchProvider } from \"../../components\";\n\nexport const ExampleReactiveSearchProviderSearch: React.FC = () => (\n <ReactifySearchProvider\n mode=\"search\"\n shopifyPermanentDomain=\"reactify-apps.myshopify.com\"\n >\n ...\n </ReactifySearchProvider>\n);\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare const Component: React.FC;
|
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20
4
|
};
|
|
21
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
6
|
exports.Component = void 0;
|
|
23
|
-
const
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
24
8
|
const components_1 = require("../../components");
|
|
25
9
|
const ExampleResultCardProduct_1 = require("./ExampleResultCardProduct");
|
|
26
10
|
const ExampleResultCardCallout_1 = require("./ExampleResultCardCallout");
|
|
@@ -28,7 +12,7 @@ const ExampleResultPaginationNumbered_1 = require("./ExampleResultPaginationNumb
|
|
|
28
12
|
const ExampleResultPaginationLoadMore_1 = require("./ExampleResultPaginationLoadMore");
|
|
29
13
|
const ExampleResultPaginationNextPrev_1 = require("./ExampleResultPaginationNextPrev");
|
|
30
14
|
const Component = () => {
|
|
31
|
-
return (
|
|
15
|
+
return (react_1.default.createElement(components_1.Results, { listStyle: {
|
|
32
16
|
display: "grid",
|
|
33
17
|
gap: "10px",
|
|
34
18
|
gridTemplateColumns: "repeat(4, minmax(0, 1fr))",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResults.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResults.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResults.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResults.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,iDAA2C;AAE3C,yEAAsE;AACtE,yEAAsE;AACtE,uFAAoF;AACpF,uFAAoF;AACpF,uFAAoF;AAE7E,MAAM,SAAS,GAAa,GAAG,EAAE;IACtC,OAAO,CACL,8BAAC,oBAAO,IACN,SAAS,EAAE;YACT,OAAO,EAAE,MAAM;YACf,GAAG,EAAE,MAAM;YACX,mBAAmB,EAAE,2BAA2B;SACjD,EACD,uBAAuB,EAAE,mDAAwB,EACjD,uBAAuB,EAAE,mDAAwB,EACjD,wBAAwB,EAAE,iEAA+B,EACzD,wBAAwB,EAAE,iEAA+B,EACzD,wBAAwB,EAAE,iEAA+B,GACzD,CACH,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,SAAS,aAepB","sourcesContent":["import React from \"react\";\n\nimport { Results } from \"../../components\";\n\nimport { ExampleResultCardProduct } from \"./ExampleResultCardProduct\";\nimport { ExampleResultCardCallout } from \"./ExampleResultCardCallout\";\nimport { ExampleResultPaginationNumbered } from \"./ExampleResultPaginationNumbered\";\nimport { ExampleResultPaginationLoadMore } from \"./ExampleResultPaginationLoadMore\";\nimport { ExampleResultPaginationNextPrev } from \"./ExampleResultPaginationNextPrev\";\n\nexport const Component: React.FC = () => {\n return (\n <Results\n listStyle={{\n display: \"grid\",\n gap: \"10px\",\n gridTemplateColumns: \"repeat(4, minmax(0, 1fr))\",\n }}\n renderResultCardProduct={ExampleResultCardProduct}\n renderResultCardCallout={ExampleResultCardCallout}\n renderPaginationNumbered={ExampleResultPaginationNumbered}\n renderPaginationLoadMore={ExampleResultPaginationLoadMore}\n renderPaginationNextPrev={ExampleResultPaginationNextPrev}\n />\n );\n};\n"]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SensorInstantSearch = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const DataSearch_1 = __importDefault(require("@appbaseio/reactivesearch/lib/components/search/DataSearch"));
|
|
9
|
+
const hooks_1 = require("../../hooks");
|
|
10
|
+
const SensorInstantSearch = () => {
|
|
11
|
+
const { config } = (0, hooks_1.useReactifySearchContext)();
|
|
12
|
+
const { searchTerm } = (0, hooks_1.useSearch)();
|
|
13
|
+
// ignore search fields only set for instant search
|
|
14
|
+
const searchFields = react_1.default.useMemo(() => config.fields.filter((field) => ["always_search", "instant_search"].includes(field.searchType)), [config.fields]);
|
|
15
|
+
if (!searchTerm || !searchFields.length) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
19
|
+
react_1.default.createElement(DataSearch_1.default, { fuzziness: 1, queryFormat: "and", autosuggest: false, value: searchTerm, componentId: "SensorInstantSearch", style: { display: "none" }, dataField: searchFields.map((field) => field.field), fieldWeights: searchFields.map((field) => field.importance), customQuery: (value, props) => {
|
|
20
|
+
const { dataField, fieldWeights } = props;
|
|
21
|
+
const fieldsCrossFields = dataField.map((field, index) => `${field}^${fieldWeights[index]}`);
|
|
22
|
+
const fieldsPhrase = dataField.map((field, index) => `${field}^${fieldWeights[index]}`);
|
|
23
|
+
const fieldsPhrasePrefix = dataField
|
|
24
|
+
.filter((field) => !field.includes("."))
|
|
25
|
+
.map((field, index) => `${field}^${fieldWeights[index]}`);
|
|
26
|
+
const query = {
|
|
27
|
+
bool: {
|
|
28
|
+
should: [
|
|
29
|
+
...(fieldsCrossFields.length > 0
|
|
30
|
+
? [
|
|
31
|
+
{
|
|
32
|
+
multi_match: {
|
|
33
|
+
query: value,
|
|
34
|
+
fields: fieldsCrossFields,
|
|
35
|
+
type: "cross_fields",
|
|
36
|
+
operator: "and",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
]
|
|
40
|
+
: []),
|
|
41
|
+
...(fieldsPhrase.length > 0
|
|
42
|
+
? [
|
|
43
|
+
{
|
|
44
|
+
multi_match: {
|
|
45
|
+
query: value,
|
|
46
|
+
fields: fieldsPhrase,
|
|
47
|
+
type: "phrase",
|
|
48
|
+
operator: "and",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
]
|
|
52
|
+
: []),
|
|
53
|
+
...(fieldsPhrasePrefix.length > 0
|
|
54
|
+
? [
|
|
55
|
+
{
|
|
56
|
+
multi_match: {
|
|
57
|
+
query: value,
|
|
58
|
+
fields: fieldsPhrasePrefix,
|
|
59
|
+
type: "phrase_prefix",
|
|
60
|
+
operator: "and",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
]
|
|
64
|
+
: []),
|
|
65
|
+
],
|
|
66
|
+
minimum_should_match: "1",
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
return { query };
|
|
70
|
+
} })));
|
|
71
|
+
};
|
|
72
|
+
exports.SensorInstantSearch = SensorInstantSearch;
|
|
73
|
+
//# sourceMappingURL=SensorInstantSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SensorInstantSearch.js","sourceRoot":"","sources":["../../../../src/components/Sensor/SensorInstantSearch.tsx"],"names":[],"mappings":"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","sourcesContent":["import React from \"react\";\nimport DataSearch from \"@appbaseio/reactivesearch/lib/components/search/DataSearch\";\n\nimport { useReactifySearchContext, useSearch } from \"../../hooks\";\n\nexport const SensorInstantSearch: React.FC = () => {\n const { config } = useReactifySearchContext();\n const { searchTerm } = useSearch();\n\n // ignore search fields only set for instant search\n const searchFields = React.useMemo(\n () =>\n config.fields.filter((field) =>\n [\"always_search\", \"instant_search\"].includes(field.searchType)\n ),\n [config.fields]\n );\n\n if (!searchTerm || !searchFields.length) {\n return null;\n }\n\n return (\n <>\n <DataSearch\n fuzziness={1}\n queryFormat=\"and\"\n autosuggest={false}\n value={searchTerm}\n componentId=\"SensorInstantSearch\"\n style={{ display: \"none\" }}\n dataField={searchFields.map((field) => field.field)}\n fieldWeights={searchFields.map((field) => field.importance)}\n customQuery={(value, props) => {\n const { dataField, fieldWeights } = props;\n\n const fieldsCrossFields = dataField.map(\n (field: string, index: number) => `${field}^${fieldWeights[index]}`\n );\n const fieldsPhrase = dataField.map(\n (field: string, index: number) => `${field}^${fieldWeights[index]}`\n );\n const fieldsPhrasePrefix = dataField\n .filter((field: string) => !field.includes(\".\"))\n .map(\n (field: string, index: number) =>\n `${field}^${fieldWeights[index]}`\n );\n\n const query = {\n bool: {\n should: [\n ...(fieldsCrossFields.length > 0\n ? [\n {\n multi_match: {\n query: value,\n fields: fieldsCrossFields,\n type: \"cross_fields\",\n operator: \"and\",\n },\n },\n ]\n : []),\n ...(fieldsPhrase.length > 0\n ? [\n {\n multi_match: {\n query: value,\n fields: fieldsPhrase,\n type: \"phrase\",\n operator: \"and\",\n },\n },\n ]\n : []),\n ...(fieldsPhrasePrefix.length > 0\n ? [\n {\n multi_match: {\n query: value,\n fields: fieldsPhrasePrefix,\n type: \"phrase_prefix\",\n operator: \"and\",\n },\n },\n ]\n : []),\n ],\n minimum_should_match: \"1\",\n },\n };\n return { query };\n }}\n />\n </>\n );\n};\n"]}
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SensorSearch = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const ahooks_1 = require("ahooks");
|
|
9
8
|
const DataSearch_1 = __importDefault(require("@appbaseio/reactivesearch/lib/components/search/DataSearch"));
|
|
10
9
|
const hooks_1 = require("../../hooks");
|
|
11
10
|
const SensorSearch = () => {
|
|
@@ -13,14 +12,11 @@ const SensorSearch = () => {
|
|
|
13
12
|
const { searchTerm } = (0, hooks_1.useSearch)();
|
|
14
13
|
// ignore search fields only set for instant search
|
|
15
14
|
const searchFields = react_1.default.useMemo(() => config.fields.filter((field) => ["always_search", "search_page"].includes(field.searchType)), [config.fields]);
|
|
16
|
-
const debouncedSearchTerm = (0, ahooks_1.useDebounce)(searchTerm, {
|
|
17
|
-
wait: 300,
|
|
18
|
-
});
|
|
19
15
|
if (!searchTerm || !searchFields.length) {
|
|
20
16
|
return null;
|
|
21
17
|
}
|
|
22
18
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
23
|
-
react_1.default.createElement(DataSearch_1.default, { fuzziness: 1, queryFormat: "and", autosuggest: false, value:
|
|
19
|
+
react_1.default.createElement(DataSearch_1.default, { fuzziness: 1, queryFormat: "and", autosuggest: false, value: searchTerm, componentId: "SensorSearch", style: { display: "none" }, dataField: searchFields.map((field) => field.field), fieldWeights: searchFields.map((field) => field.importance), customQuery: (value, props) => {
|
|
24
20
|
const { dataField, fieldWeights } = props;
|
|
25
21
|
const fieldsCrossFields = dataField.map((field, index) => `${field}^${fieldWeights[index]}`);
|
|
26
22
|
const fieldsPhrase = dataField.map((field, index) => `${field}^${fieldWeights[index]}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SensorSearch.js","sourceRoot":"","sources":["../../../../src/components/Sensor/SensorSearch.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"SensorSearch.js","sourceRoot":"","sources":["../../../../src/components/Sensor/SensorSearch.tsx"],"names":[],"mappings":"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","sourcesContent":["import React from \"react\";\nimport DataSearch from \"@appbaseio/reactivesearch/lib/components/search/DataSearch\";\n\nimport { useReactifySearchContext, useSearch } from \"../../hooks\";\n\nexport const SensorSearch: React.FC = () => {\n const { config } = useReactifySearchContext();\n const { searchTerm } = useSearch();\n\n // ignore search fields only set for instant search\n const searchFields = React.useMemo(\n () =>\n config.fields.filter((field) =>\n [\"always_search\", \"search_page\"].includes(field.searchType)\n ),\n [config.fields]\n );\n\n if (!searchTerm || !searchFields.length) {\n return null;\n }\n\n return (\n <>\n <DataSearch\n fuzziness={1}\n queryFormat=\"and\"\n autosuggest={false}\n value={searchTerm}\n componentId=\"SensorSearch\"\n style={{ display: \"none\" }}\n dataField={searchFields.map((field) => field.field)}\n fieldWeights={searchFields.map((field) => field.importance)}\n customQuery={(value, props) => {\n const { dataField, fieldWeights } = props;\n\n const fieldsCrossFields = dataField.map(\n (field: string, index: number) => `${field}^${fieldWeights[index]}`\n );\n const fieldsPhrase = dataField.map(\n (field: string, index: number) => `${field}^${fieldWeights[index]}`\n );\n const fieldsPhrasePrefix = dataField\n .filter((field: string) => !field.includes(\".\"))\n .map(\n (field: string, index: number) =>\n `${field}^${fieldWeights[index]}`\n );\n\n const query = {\n bool: {\n should: [\n {\n nested: {\n path: \"curations\",\n query: {\n term: {\n \"curations.searchTerm.keyword\": value?.toLowerCase(),\n },\n },\n },\n },\n ...(fieldsCrossFields.length > 0\n ? [\n {\n multi_match: {\n query: value,\n fields: fieldsCrossFields,\n type: \"cross_fields\",\n operator: \"and\",\n },\n },\n ]\n : []),\n ...(fieldsPhrase.length > 0\n ? [\n {\n multi_match: {\n query: value,\n fields: fieldsPhrase,\n type: \"phrase\",\n operator: \"and\",\n },\n },\n ]\n : []),\n ...(fieldsPhrasePrefix.length > 0\n ? [\n {\n multi_match: {\n query: value,\n fields: fieldsPhrasePrefix,\n type: \"phrase_prefix\",\n operator: \"and\",\n },\n },\n ]\n : []),\n ],\n minimum_should_match: \"1\",\n },\n };\n return { query };\n }}\n />\n </>\n );\n};\n"]}
|
|
@@ -8,6 +8,7 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const hooks_1 = require("../../hooks");
|
|
9
9
|
const SensorSort_1 = require("./SensorSort");
|
|
10
10
|
const SensorSearch_1 = require("./SensorSearch");
|
|
11
|
+
const SensorInstantSearch_1 = require("./SensorInstantSearch");
|
|
11
12
|
const SensorSortScore_1 = require("./SensorSortScore");
|
|
12
13
|
const SensorPublished_1 = require("./SensorPublished");
|
|
13
14
|
const SensorCollection_1 = require("./SensorCollection");
|
|
@@ -17,6 +18,7 @@ const Sensors = () => {
|
|
|
17
18
|
// instant search mode
|
|
18
19
|
if (options.mode === "instant-search") {
|
|
19
20
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
21
|
+
react_1.default.createElement(SensorInstantSearch_1.SensorInstantSearch, null),
|
|
20
22
|
react_1.default.createElement(SensorPublished_1.SensorPublished, null),
|
|
21
23
|
react_1.default.createElement(SensorSortScore_1.SensorSortScore, null)));
|
|
22
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sensors.js","sourceRoot":"","sources":["../../../../src/components/Sensor/Sensors.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,uCAAuD;AAEvD,6CAA0C;AAC1C,iDAA8C;AAC9C,uDAAoD;AACpD,uDAAoD;AACpD,yDAAsD;AACtD,yEAAsE;AAM/D,MAAM,OAAO,GAA2B,GAAG,EAAE;IAClD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,gCAAwB,GAAE,CAAC;IAE/C,sBAAsB;IACtB,IAAI,OAAO,CAAC,IAAI,KAAK,gBAAgB,EAAE;QACrC,OAAO,CACL;YACE,8BAAC,iCAAe,OAAG;YACnB,8BAAC,iCAAe,OAAG,CAClB,CACJ,CAAC;KACH;IAED,mBAAmB;IACnB,OAAO,CACL;QACE,8BAAC,uBAAU,OAAG;QACd,8BAAC,2BAAY,OAAG;QAChB,8BAAC,iCAAe,OAAG;QACnB,8BAAC,mCAAgB,OAAG;QACpB,8BAAC,mDAAwB,OAAG,CAC3B,CACJ,CAAC;AACJ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Sensors.js","sourceRoot":"","sources":["../../../../src/components/Sensor/Sensors.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,uCAAuD;AAEvD,6CAA0C;AAC1C,iDAA8C;AAC9C,+DAA4D;AAC5D,uDAAoD;AACpD,uDAAoD;AACpD,yDAAsD;AACtD,yEAAsE;AAM/D,MAAM,OAAO,GAA2B,GAAG,EAAE;IAClD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,gCAAwB,GAAE,CAAC;IAE/C,sBAAsB;IACtB,IAAI,OAAO,CAAC,IAAI,KAAK,gBAAgB,EAAE;QACrC,OAAO,CACL;YACE,8BAAC,yCAAmB,OAAG;YACvB,8BAAC,iCAAe,OAAG;YACnB,8BAAC,iCAAe,OAAG,CAClB,CACJ,CAAC;KACH;IAED,mBAAmB;IACnB,OAAO,CACL;QACE,8BAAC,uBAAU,OAAG;QACd,8BAAC,2BAAY,OAAG;QAChB,8BAAC,iCAAe,OAAG;QACnB,8BAAC,mCAAgB,OAAG;QACpB,8BAAC,mDAAwB,OAAG,CAC3B,CACJ,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,OAAO,WAwBlB","sourcesContent":["import React from \"react\";\n\nimport { useReactifySearchContext } from \"../../hooks\";\n\nimport { SensorSort } from \"./SensorSort\";\nimport { SensorSearch } from \"./SensorSearch\";\nimport { SensorInstantSearch } from \"./SensorInstantSearch\";\nimport { SensorSortScore } from \"./SensorSortScore\";\nimport { SensorPublished } from \"./SensorPublished\";\nimport { SensorCollection } from \"./SensorCollection\";\nimport { SensorInventoryAvailable } from \"./SensorInventoryAvailable\";\n\nexport type SensorsProps = {\n /** This component does not support any props */\n};\n\nexport const Sensors: React.FC<SensorsProps> = () => {\n const { options } = useReactifySearchContext();\n\n // instant search mode\n if (options.mode === \"instant-search\") {\n return (\n <>\n <SensorInstantSearch />\n <SensorPublished />\n <SensorSortScore />\n </>\n );\n }\n\n // result grid mode\n return (\n <>\n <SensorSort />\n <SensorSearch />\n <SensorPublished />\n <SensorCollection />\n <SensorInventoryAvailable />\n </>\n );\n};\n"]}
|
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.SENSOR_IDS = void 0;
|
|
14
14
|
__exportStar(require("./SensorSort"), exports);
|
|
15
15
|
__exportStar(require("./SensorSearch"), exports);
|
|
16
|
+
__exportStar(require("./SensorInstantSearch"), exports);
|
|
16
17
|
__exportStar(require("./SensorPublished"), exports);
|
|
17
18
|
__exportStar(require("./SensorSortScore"), exports);
|
|
18
19
|
__exportStar(require("./SensorCollection"), exports);
|
|
@@ -22,6 +23,7 @@ __exportStar(require("./Sensors"), exports);
|
|
|
22
23
|
exports.SENSOR_IDS = [
|
|
23
24
|
"SensorSort",
|
|
24
25
|
"SensorSearch",
|
|
26
|
+
"SensorInstantSearch",
|
|
25
27
|
"SensorSortScore",
|
|
26
28
|
"SensorPublished",
|
|
27
29
|
"SensorCollection",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Sensor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B;AAC/B,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,6DAA2C;AAE3C,4CAA0B;AAE1B,2DAA2D;AAC9C,QAAA,UAAU,GAAG;IACxB,YAAY;IACZ,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,kBAAkB;IAClB,0BAA0B;CAC3B,CAAC","sourcesContent":["export * from \"./SensorSort\";\nexport * from \"./SensorSearch\";\nexport * from \"./SensorPublished\";\nexport * from \"./SensorSortScore\";\nexport * from \"./SensorCollection\";\nexport * from \"./SensorInventoryAvailable\";\n\nexport * from \"./Sensors\";\n\n// this is consumed by the react prop in various components\nexport const SENSOR_IDS = [\n \"SensorSort\",\n \"SensorSearch\",\n \"SensorSortScore\",\n \"SensorPublished\",\n \"SensorCollection\",\n \"SensorInventoryAvailable\",\n];\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Sensor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B;AAC/B,wDAAsC;AACtC,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,6DAA2C;AAE3C,4CAA0B;AAE1B,2DAA2D;AAC9C,QAAA,UAAU,GAAG;IACxB,YAAY;IACZ,cAAc;IACd,qBAAqB;IACrB,iBAAiB;IACjB,iBAAiB;IACjB,kBAAkB;IAClB,0BAA0B;CAC3B,CAAC","sourcesContent":["export * from \"./SensorSort\";\nexport * from \"./SensorSearch\";\nexport * from \"./SensorInstantSearch\";\nexport * from \"./SensorPublished\";\nexport * from \"./SensorSortScore\";\nexport * from \"./SensorCollection\";\nexport * from \"./SensorInventoryAvailable\";\n\nexport * from \"./Sensors\";\n\n// this is consumed by the react prop in various components\nexport const SENSOR_IDS = [\n \"SensorSort\",\n \"SensorSearch\",\n \"SensorInstantSearch\",\n \"SensorSortScore\",\n \"SensorPublished\",\n \"SensorCollection\",\n \"SensorInventoryAvailable\",\n];\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usereactify/search",
|
|
3
3
|
"description": "React UI library for Reactify Search",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"types": "dist/src/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"watch": "tsc --watch",
|
|
15
|
-
"release": "standard-version --tag-prefix
|
|
15
|
+
"release": "standard-version --tag-prefix release-v",
|
|
16
16
|
"release:beta": "standard-version --tag-prefix beta-v --prerelease beta",
|
|
17
17
|
"prebuild": "rimraf dist",
|
|
18
18
|
"build": "tsc",
|