@searchspring/snap-preact-components 0.34.4 → 0.34.7
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.
|
@@ -126,13 +126,13 @@ exports.Recommendation = (0, mobx_react_lite_1.observer)(function (properties) {
|
|
|
126
126
|
title && (0, react_1.jsx)("h3", { className: "ss__recommendation__title" }, title),
|
|
127
127
|
(0, react_1.jsx)(Carousel_1.Carousel, __assign({ onInit: function (swiper) {
|
|
128
128
|
//@ts-ignore
|
|
129
|
-
setInitialIndexes([swiper.realIndex, swiper.
|
|
129
|
+
setInitialIndexes([swiper.realIndex, swiper.passedParams.slidesPerView]);
|
|
130
130
|
}, onBreakpoint: function (swiper) {
|
|
131
131
|
//@ts-ignore
|
|
132
|
-
sendProductImpression(swiper.realIndex, swiper.
|
|
132
|
+
sendProductImpression(swiper.realIndex, swiper.passedParams.slidesPerView);
|
|
133
133
|
}, onSlideChange: function (swiper) {
|
|
134
134
|
//@ts-ignore
|
|
135
|
-
sendProductImpression(swiper.realIndex, swiper.
|
|
135
|
+
sendProductImpression(swiper.realIndex, swiper.passedParams.slidesPerView);
|
|
136
136
|
}, prevButton: prevButton, nextButton: nextButton, hideButtons: hideButtons, onNextButtonClick: function (e) { return controller.track.click(e); }, onPrevButtonClick: function (e) { return controller.track.click(e); }, onClick: function (swiper, e) {
|
|
137
137
|
var clickedIndex = swiper.realIndex + (swiper.clickedIndex - swiper.activeIndex);
|
|
138
138
|
controller.track.click(e);
|
|
@@ -116,13 +116,13 @@ export const Recommendation = observer((properties) => {
|
|
|
116
116
|
title && jsx("h3", { className: "ss__recommendation__title" }, title),
|
|
117
117
|
jsx(Carousel, { onInit: (swiper) => {
|
|
118
118
|
//@ts-ignore
|
|
119
|
-
setInitialIndexes([swiper.realIndex, swiper.
|
|
119
|
+
setInitialIndexes([swiper.realIndex, swiper.passedParams.slidesPerView]);
|
|
120
120
|
}, onBreakpoint: (swiper) => {
|
|
121
121
|
//@ts-ignore
|
|
122
|
-
sendProductImpression(swiper.realIndex, swiper.
|
|
122
|
+
sendProductImpression(swiper.realIndex, swiper.passedParams.slidesPerView);
|
|
123
123
|
}, onSlideChange: (swiper) => {
|
|
124
124
|
//@ts-ignore
|
|
125
|
-
sendProductImpression(swiper.realIndex, swiper.
|
|
125
|
+
sendProductImpression(swiper.realIndex, swiper.passedParams.slidesPerView);
|
|
126
126
|
}, prevButton: prevButton, nextButton: nextButton, hideButtons: hideButtons, onNextButtonClick: (e) => controller.track.click(e), onPrevButtonClick: (e) => controller.track.click(e), onClick: (swiper, e) => {
|
|
127
127
|
const clickedIndex = swiper.realIndex + (swiper.clickedIndex - swiper.activeIndex);
|
|
128
128
|
controller.track.click(e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-preact-components",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.7",
|
|
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.34.
|
|
29
|
+
"@searchspring/snap-toolbox": "^0.34.7",
|
|
30
30
|
"classnames": "2.3.1",
|
|
31
31
|
"deepmerge": "4.2.2",
|
|
32
32
|
"mobx-react-lite": "3.4.0",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"preact": "10.9.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@searchspring/snap-client": "^0.34.
|
|
41
|
-
"@searchspring/snap-controller": "^0.34.
|
|
42
|
-
"@searchspring/snap-event-manager": "^0.34.
|
|
43
|
-
"@searchspring/snap-logger": "^0.34.
|
|
44
|
-
"@searchspring/snap-profiler": "^0.34.
|
|
45
|
-
"@searchspring/snap-store-mobx": "^0.34.
|
|
46
|
-
"@searchspring/snap-tracker": "^0.34.
|
|
47
|
-
"@searchspring/snap-url-manager": "^0.34.
|
|
40
|
+
"@searchspring/snap-client": "^0.34.7",
|
|
41
|
+
"@searchspring/snap-controller": "^0.34.7",
|
|
42
|
+
"@searchspring/snap-event-manager": "^0.34.7",
|
|
43
|
+
"@searchspring/snap-logger": "^0.34.7",
|
|
44
|
+
"@searchspring/snap-profiler": "^0.34.7",
|
|
45
|
+
"@searchspring/snap-store-mobx": "^0.34.7",
|
|
46
|
+
"@searchspring/snap-tracker": "^0.34.7",
|
|
47
|
+
"@searchspring/snap-url-manager": "^0.34.7",
|
|
48
48
|
"@storybook/addon-actions": "6.4.22",
|
|
49
49
|
"@storybook/addon-controls": "6.4.22",
|
|
50
50
|
"@storybook/addon-docs": "6.4.22",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"ts-loader": "9.3.0"
|
|
67
67
|
},
|
|
68
68
|
"sideEffects": false,
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "943f6a43f44b64e6ca91cdd095575a0cae21d94e"
|
|
70
70
|
}
|