wickes-css2 2.106.0-develop.10 → 2.106.0-develop.12
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/build/css/main.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/js/kitchen/kitchen-plp.min.js +1 -1
- package/build/js/page/kitchen/card-carousel.js +3 -2
- package/build/js/page/kitchen/colour-swatches.js +8 -3
- package/package.json +8 -22
- package/src/components/.DS_Store +0 -0
- package/src/components/kitchen/slide.hbs +8 -6
- package/src/img/.DS_Store +0 -0
- package/src/img/placeholders/.DS_Store +0 -0
- package/src/js/page/.DS_Store +0 -0
- package/src/js/page/kitchen/card-carousel.js +3 -2
- package/src/js/page/kitchen/colour-swatches.js +8 -3
- package/src/scss/.DS_Store +0 -0
- package/src/scss/components/_search-filter.scss +3 -0
- package/src/scss/pages/.DS_Store +0 -0
|
@@ -21,9 +21,10 @@ $(document).ready(function () {
|
|
|
21
21
|
const swiper = new Swiper(sliderElement, {
|
|
22
22
|
speed: 400,
|
|
23
23
|
navigation: {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
nextEl: nextButtonElement,
|
|
25
|
+
prevEl: prevButtonElement,
|
|
26
26
|
},
|
|
27
|
+
simulateTouch: false,
|
|
27
28
|
});
|
|
28
29
|
|
|
29
30
|
Wick.PLPCardSwiper[id] = swiper;
|
|
@@ -82,9 +82,9 @@ import infoIcon from '../../../components/info-icon.hbs';
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
function updateSwiperView($cardSwiper, images, sticker) {
|
|
85
|
+
function updateSwiperView($cardSwiper, images, sticker, pdpUrl) {
|
|
86
86
|
$cardSwiper.removeAllSlides();
|
|
87
|
-
const newSlidesHtml = slide({ images, sticker });
|
|
87
|
+
const newSlidesHtml = slide({ images, sticker, pdpUrl });
|
|
88
88
|
$cardSwiper.appendSlide(newSlidesHtml);
|
|
89
89
|
$cardSwiper.slideTo(0, 0);
|
|
90
90
|
}
|
|
@@ -139,7 +139,12 @@ import infoIcon from '../../../components/info-icon.hbs';
|
|
|
139
139
|
updatePriceView($cardContainer, colourData.priceData);
|
|
140
140
|
updateStickersView($cardContainer, colourData.stickers);
|
|
141
141
|
updateSwatchesTextView($cardContainer, colourData.colourSwatch.colourName);
|
|
142
|
-
updateSwiperView(
|
|
142
|
+
updateSwiperView(
|
|
143
|
+
$cardSwiper,
|
|
144
|
+
colourData.images,
|
|
145
|
+
currentKitchenData.rangeStickers[0],
|
|
146
|
+
colourData.pdpUrl
|
|
147
|
+
);
|
|
143
148
|
updateParametersView($cardContainer, colourData.design, colourData.finishes);
|
|
144
149
|
updateCTALink($cardContainer, colourData.pdpUrl);
|
|
145
150
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wickes-css2",
|
|
3
|
-
"version": "2.106.0-develop.
|
|
3
|
+
"version": "2.106.0-develop.12",
|
|
4
4
|
"description": "CSS and JS and page templates in use by Wickes",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -126,6 +126,10 @@
|
|
|
126
126
|
"alt-master",
|
|
127
127
|
{
|
|
128
128
|
"name": "develop",
|
|
129
|
+
"prerelease": true
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "custom-tag/*",
|
|
129
133
|
"prerelease": "${name.replace(/^custom-tag\\//g, '')}"
|
|
130
134
|
}
|
|
131
135
|
],
|
|
@@ -136,27 +140,9 @@
|
|
|
136
140
|
"@semantic-release/gitlab",
|
|
137
141
|
{
|
|
138
142
|
"gitlabUrl": "https://gitlab.com",
|
|
139
|
-
"
|
|
140
|
-
{
|
|
141
|
-
"path": "build/css/*",
|
|
142
|
-
"label": "CSS distribution"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"path": "build/img/*",
|
|
146
|
-
"label": "IMG distribution"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"path": "build/js/*",
|
|
150
|
-
"label": "JS distribution"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"path": "src/*",
|
|
154
|
-
"label": "Template distribution"
|
|
155
|
-
}
|
|
156
|
-
]
|
|
143
|
+
"successComment": false
|
|
157
144
|
}
|
|
158
|
-
]
|
|
159
|
-
"@semantic-release/npm"
|
|
145
|
+
]
|
|
160
146
|
]
|
|
161
147
|
}
|
|
162
|
-
}
|
|
148
|
+
}
|
|
Binary file
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{{#each images}}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
<div class="kitchen-card__slide-wrapper swiper-slide">
|
|
3
|
+
<a href="{{../pdpUrl}}">
|
|
4
|
+
{{#with ../sticker}}
|
|
5
|
+
<img class="kitchen-card__sticker" src="{{optimizeImageUrl url}}" alt="{{altText}}">
|
|
6
|
+
{{/with}}
|
|
7
|
+
<img class="swiper-slide-main kitchen-card__slide" src="{{optimizeImageUrl url 700}}" alt="{{altText}}">
|
|
8
|
+
</a>
|
|
9
|
+
</div>
|
|
8
10
|
{{/each}}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -21,9 +21,10 @@ $(document).ready(function () {
|
|
|
21
21
|
const swiper = new Swiper(sliderElement, {
|
|
22
22
|
speed: 400,
|
|
23
23
|
navigation: {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
nextEl: nextButtonElement,
|
|
25
|
+
prevEl: prevButtonElement,
|
|
26
26
|
},
|
|
27
|
+
simulateTouch: false,
|
|
27
28
|
});
|
|
28
29
|
|
|
29
30
|
Wick.PLPCardSwiper[id] = swiper;
|
|
@@ -82,9 +82,9 @@ import infoIcon from '../../../components/info-icon.hbs';
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
function updateSwiperView($cardSwiper, images, sticker) {
|
|
85
|
+
function updateSwiperView($cardSwiper, images, sticker, pdpUrl) {
|
|
86
86
|
$cardSwiper.removeAllSlides();
|
|
87
|
-
const newSlidesHtml = slide({ images, sticker });
|
|
87
|
+
const newSlidesHtml = slide({ images, sticker, pdpUrl });
|
|
88
88
|
$cardSwiper.appendSlide(newSlidesHtml);
|
|
89
89
|
$cardSwiper.slideTo(0, 0);
|
|
90
90
|
}
|
|
@@ -139,7 +139,12 @@ import infoIcon from '../../../components/info-icon.hbs';
|
|
|
139
139
|
updatePriceView($cardContainer, colourData.priceData);
|
|
140
140
|
updateStickersView($cardContainer, colourData.stickers);
|
|
141
141
|
updateSwatchesTextView($cardContainer, colourData.colourSwatch.colourName);
|
|
142
|
-
updateSwiperView(
|
|
142
|
+
updateSwiperView(
|
|
143
|
+
$cardSwiper,
|
|
144
|
+
colourData.images,
|
|
145
|
+
currentKitchenData.rangeStickers[0],
|
|
146
|
+
colourData.pdpUrl
|
|
147
|
+
);
|
|
143
148
|
updateParametersView($cardContainer, colourData.design, colourData.finishes);
|
|
144
149
|
updateCTALink($cardContainer, colourData.pdpUrl);
|
|
145
150
|
|
|
Binary file
|
|
Binary file
|