@searchspring/snap-preact-components 0.60.0 → 0.60.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.
|
@@ -105,7 +105,7 @@ exports.Recommendation = (0, mobx_react_1.observer)(function (properties) {
|
|
|
105
105
|
if (inView) {
|
|
106
106
|
setIsVisible(true);
|
|
107
107
|
}
|
|
108
|
-
return children || (resultsToRender === null || resultsToRender === void 0 ? void 0 : resultsToRender.length) ? ((0, react_1.jsx)(providers_1.CacheProvider, null,
|
|
108
|
+
return (Array.isArray(children) && children.length) || (resultsToRender === null || resultsToRender === void 0 ? void 0 : resultsToRender.length) ? ((0, react_1.jsx)(providers_1.CacheProvider, null,
|
|
109
109
|
(0, react_1.jsx)("div", __assign({}, styling, { className: (0, classnames_1.default)('ss__recommendation', className), ref: recsRef }), isVisible ? ((0, react_1.jsx)(ProfileTracker_1.RecommendationProfileTracker, { controller: controller },
|
|
110
110
|
title && (0, react_1.jsx)("h3", { className: "ss__recommendation__title" }, title),
|
|
111
111
|
(0, react_1.jsx)(Carousel_1.Carousel, __assign({ prevButton: prevButton, nextButton: nextButton, hideButtons: hideButtons, loop: loop, pagination: pagination, breakpoints: breakpoints }, subProps.carousel, additionalProps, displaySettings), Array.isArray(children) && children.length
|
|
@@ -99,7 +99,7 @@ export const Recommendation = observer((properties) => {
|
|
|
99
99
|
if (inView) {
|
|
100
100
|
setIsVisible(true);
|
|
101
101
|
}
|
|
102
|
-
return children || resultsToRender?.length ? (jsx(CacheProvider, null,
|
|
102
|
+
return (Array.isArray(children) && children.length) || resultsToRender?.length ? (jsx(CacheProvider, null,
|
|
103
103
|
jsx("div", { ...styling, className: classnames('ss__recommendation', className), ref: recsRef }, isVisible ? (jsx(RecommendationProfileTracker, { controller: controller },
|
|
104
104
|
title && jsx("h3", { className: "ss__recommendation__title" }, title),
|
|
105
105
|
jsx(Carousel, { prevButton: prevButton, nextButton: nextButton, hideButtons: hideButtons, loop: loop, pagination: pagination, breakpoints: breakpoints, ...subProps.carousel, ...additionalProps, ...displaySettings }, Array.isArray(children) && children.length
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-preact-components",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.1",
|
|
4
4
|
"description": "Snap Preact Component Library",
|
|
5
5
|
"author": "Searchspring",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@cypress/react": "^8.0.0",
|
|
31
31
|
"@emotion/react": "11.9.0",
|
|
32
|
-
"@searchspring/snap-toolbox": "^0.60.
|
|
32
|
+
"@searchspring/snap-toolbox": "^0.60.1",
|
|
33
33
|
"classnames": "^2.3.2",
|
|
34
34
|
"cypress": "^13.7.1",
|
|
35
35
|
"cypress-wait-until": "^1.7.2",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@babel/preset-env": "^7.21.4",
|
|
53
53
|
"@babel/preset-react": "^7.18.6",
|
|
54
54
|
"@babel/runtime": "^7.21.0",
|
|
55
|
-
"@searchspring/snap-client": "^0.60.
|
|
56
|
-
"@searchspring/snap-controller": "^0.60.
|
|
57
|
-
"@searchspring/snap-event-manager": "^0.60.
|
|
58
|
-
"@searchspring/snap-logger": "^0.60.
|
|
59
|
-
"@searchspring/snap-profiler": "^0.60.
|
|
60
|
-
"@searchspring/snap-store-mobx": "^0.60.
|
|
61
|
-
"@searchspring/snap-tracker": "^0.60.
|
|
62
|
-
"@searchspring/snap-url-manager": "^0.60.
|
|
55
|
+
"@searchspring/snap-client": "^0.60.1",
|
|
56
|
+
"@searchspring/snap-controller": "^0.60.1",
|
|
57
|
+
"@searchspring/snap-event-manager": "^0.60.1",
|
|
58
|
+
"@searchspring/snap-logger": "^0.60.1",
|
|
59
|
+
"@searchspring/snap-profiler": "^0.60.1",
|
|
60
|
+
"@searchspring/snap-store-mobx": "^0.60.1",
|
|
61
|
+
"@searchspring/snap-tracker": "^0.60.1",
|
|
62
|
+
"@searchspring/snap-url-manager": "^0.60.1",
|
|
63
63
|
"@storybook/addon-actions": "6.4.22",
|
|
64
64
|
"@storybook/addon-controls": "6.4.22",
|
|
65
65
|
"@storybook/addon-docs": "6.4.22",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"webpack-merge": "^5.8.0"
|
|
85
85
|
},
|
|
86
86
|
"sideEffects": false,
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "94761345dd36b121494c165d9844a27086085dc9"
|
|
88
88
|
}
|