instantsearch.js 4.56.6 → 4.56.8
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/README.md +9 -5
- package/cjs/lib/version.js +1 -1
- package/dist/instantsearch.development.js +2973 -1963
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -67,7 +67,11 @@ search.addWidgets([
|
|
|
67
67
|
instantsearch.widgets.hits({
|
|
68
68
|
container: '#products',
|
|
69
69
|
templates: {
|
|
70
|
-
item:
|
|
70
|
+
item: (hit, { html, components }) =>
|
|
71
|
+
html`
|
|
72
|
+
<h3>${components.Highlight({ attribute: 'name', hit })}</h3>
|
|
73
|
+
<p>${components.Snippet({ attribute: 'description', hit })}</p>
|
|
74
|
+
`,
|
|
71
75
|
},
|
|
72
76
|
}),
|
|
73
77
|
|
|
@@ -102,7 +106,7 @@ yarn add instantsearch.js algoliasearch
|
|
|
102
106
|
|
|
103
107
|
To use InstantSearch.js in a TypeScript environment, depending on your [`algoliasearch`](https://github.com/algolia/algoliasearch-client-javascript) version, you need to import different types.
|
|
104
108
|
|
|
105
|
-
>You still need to import these types even if you don't use InstantSearch.js with [`algoliasearch`](https://github.com/algolia/algoliasearch-client-javascript).
|
|
109
|
+
> You still need to import these types even if you don't use InstantSearch.js with [`algoliasearch`](https://github.com/algolia/algoliasearch-client-javascript).
|
|
106
110
|
|
|
107
111
|
#### `algoliasearch` v4.x
|
|
108
112
|
|
|
@@ -118,7 +122,7 @@ yarn add algoliasearch@4 @algolia/client-search
|
|
|
118
122
|
yarn add @types/algoliasearch@3
|
|
119
123
|
```
|
|
120
124
|
|
|
121
|
-
>v3.x is deprecated and will soon no longer be supported.
|
|
125
|
+
> v3.x is deprecated and will soon no longer be supported.
|
|
122
126
|
|
|
123
127
|
## Documentation
|
|
124
128
|
|
|
@@ -126,8 +130,8 @@ The documentation is available on the [Algolia website](https://www.algolia.com/
|
|
|
126
130
|
|
|
127
131
|
## Demos
|
|
128
132
|
|
|
129
|
-
| E-commerce
|
|
130
|
-
|
|
|
133
|
+
| E-commerce | Media | Travel |
|
|
134
|
+
| --- | --- | --- |
|
|
131
135
|
| <a href="https://instantsearchjs.netlify.com/examples/e-commerce/"><img src="https://www.algolia.com/doc/assets/images/build-search-ui/demos/e-commerce-2c7ed6b6.png" width="250" alt="E-commerce demo preview"></a> | <a href="https://instantsearchjs.netlify.com/examples/media/"><img src="https://www.algolia.com/doc/assets/images/build-search-ui/demos/media-articles-abc153ab.png" width="250" alt="Media demo preview"></a> | <a href="https://instantsearchjs.netlify.com/examples/tourism/"><img src="https://instantsearchjs.netlify.com/examples/tourism/capture.png" width="250" alt="Tourism demo preview"></a> |
|
|
132
136
|
|
|
133
137
|
See more demos [on the website](https://www.algolia.com/doc/guides/building-search-ui/resources/demos/js/).
|
package/cjs/lib/version.js
CHANGED