@searchspring/snap-preact-components 0.43.0 → 0.43.1
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.
|
@@ -290,8 +290,10 @@ exports.Autocomplete = (0, mobx_react_lite_1.observer)(function (properties) {
|
|
|
290
290
|
showHistory = true;
|
|
291
291
|
}
|
|
292
292
|
if (!state.input && (historyActive || trendingActive)) {
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
if (history === null || history === void 0 ? void 0 : history.length)
|
|
294
|
+
showHistory = true;
|
|
295
|
+
if (trending === null || trending === void 0 ? void 0 : trending.length)
|
|
296
|
+
showTrending = true;
|
|
295
297
|
}
|
|
296
298
|
var facetsToShow = facets.length ? facets.filter(function (facet) { return facet.display !== types_1.FacetDisplay.SLIDER; }) : [];
|
|
297
299
|
var onlyTerms = ((trending === null || trending === void 0 ? void 0 : trending.length) || history.length) && !loaded && !loading;
|
|
@@ -307,8 +307,10 @@ export const Autocomplete = observer((properties) => {
|
|
|
307
307
|
showHistory = true;
|
|
308
308
|
}
|
|
309
309
|
if (!state.input && (historyActive || trendingActive)) {
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
if (history?.length)
|
|
311
|
+
showHistory = true;
|
|
312
|
+
if (trending?.length)
|
|
313
|
+
showTrending = true;
|
|
312
314
|
}
|
|
313
315
|
const facetsToShow = facets.length ? facets.filter((facet) => facet.display !== FacetDisplay.SLIDER) : [];
|
|
314
316
|
const onlyTerms = (trending?.length || history.length) && !loaded && !loading;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-preact-components",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.1",
|
|
4
4
|
"description": "Snap Preact Component Library",
|
|
5
5
|
"author": "Searchspring",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@emotion/react": "11.9.0",
|
|
29
|
-
"@searchspring/snap-toolbox": "^0.43.
|
|
29
|
+
"@searchspring/snap-toolbox": "^0.43.1",
|
|
30
30
|
"classnames": "^2.3.2",
|
|
31
31
|
"deepmerge": "4.3.1",
|
|
32
32
|
"dequal": "2.0.3",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"preact": "10.9.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@searchspring/snap-client": "^0.43.
|
|
42
|
-
"@searchspring/snap-controller": "^0.43.
|
|
43
|
-
"@searchspring/snap-event-manager": "^0.43.
|
|
44
|
-
"@searchspring/snap-logger": "^0.43.
|
|
45
|
-
"@searchspring/snap-profiler": "^0.43.
|
|
46
|
-
"@searchspring/snap-store-mobx": "^0.43.
|
|
47
|
-
"@searchspring/snap-tracker": "^0.43.
|
|
48
|
-
"@searchspring/snap-url-manager": "^0.43.
|
|
41
|
+
"@searchspring/snap-client": "^0.43.1",
|
|
42
|
+
"@searchspring/snap-controller": "^0.43.1",
|
|
43
|
+
"@searchspring/snap-event-manager": "^0.43.1",
|
|
44
|
+
"@searchspring/snap-logger": "^0.43.1",
|
|
45
|
+
"@searchspring/snap-profiler": "^0.43.1",
|
|
46
|
+
"@searchspring/snap-store-mobx": "^0.43.1",
|
|
47
|
+
"@searchspring/snap-tracker": "^0.43.1",
|
|
48
|
+
"@searchspring/snap-url-manager": "^0.43.1",
|
|
49
49
|
"@storybook/addon-actions": "6.4.22",
|
|
50
50
|
"@storybook/addon-controls": "6.4.22",
|
|
51
51
|
"@storybook/addon-docs": "6.4.22",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"ts-loader": "9.3.0"
|
|
68
68
|
},
|
|
69
69
|
"sideEffects": false,
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "45b2fd3657b3d4dddf4256657d18baa4be0647f8"
|
|
71
71
|
}
|