create-instantsearch-app 5.0.1 → 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
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# [5.1.0](https://github.com/algolia/create-instantsearch-app/compare/5.0.1...5.1.0) (2021-12-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **templates:** use non-experimental dynamic widgets ([#544](https://github.com/algolia/create-instantsearch-app/issues/544)) ([efda539](https://github.com/algolia/create-instantsearch-app/commit/efda5395cef7865c7b4cebe741e7ab5e8ea4b2f8))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [5.0.1](https://github.com/algolia/create-instantsearch-app/compare/5.0.0...5.0.1) (2021-12-02)
|
|
2
11
|
|
|
3
12
|
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
SearchBox,
|
|
7
7
|
{{#if flags.dynamicWidgets}}
|
|
8
8
|
Configure,
|
|
9
|
-
|
|
9
|
+
DynamicWidgets,
|
|
10
10
|
{{/if}}
|
|
11
11
|
{{#if attributesForFaceting}}
|
|
12
12
|
RefinementList,
|
|
@@ -42,11 +42,11 @@ function App() {
|
|
|
42
42
|
<div className="search-panel__filters">
|
|
43
43
|
{{#if flags.dynamicWidgets}}
|
|
44
44
|
<Configure facets={['*']} maxValuesPerFacet={20} />
|
|
45
|
-
<
|
|
45
|
+
<DynamicWidgets fallbackWidget={RefinementList}>
|
|
46
46
|
{{#each attributesForFaceting}}
|
|
47
47
|
<RefinementList attribute="{{this}}" />
|
|
48
48
|
{{/each}}
|
|
49
|
-
</
|
|
49
|
+
</DynamicWidgets>
|
|
50
50
|
{{else}}
|
|
51
51
|
{{#each attributesForFaceting}}
|
|
52
52
|
<RefinementList attribute="{{this}}" />
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
<div class="search-panel__filters">
|
|
21
21
|
{{#if flags.dynamicWidgets}}
|
|
22
22
|
<ais-configure :facets="['*']" :max-values-per-facet.camel="20" />
|
|
23
|
-
<ais-
|
|
23
|
+
<ais-dynamic-widgets>
|
|
24
24
|
{{#each attributesForFaceting}}
|
|
25
25
|
<ais-refinement-list attribute="{{this}}" />
|
|
26
26
|
{{/each}}
|
|
27
|
-
</ais-
|
|
27
|
+
</ais-dynamic-widgets>
|
|
28
28
|
{{else}}
|
|
29
29
|
{{#each attributesForFaceting}}
|
|
30
30
|
<ais-refinement-list attribute="{{this}}" />
|