@pernod-ricard-global-cms/jsutils 3.2.2 → 4.0.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/jsutils.mjs +0 -14
- package/package.json +2 -3
package/jsutils.mjs
CHANGED
|
@@ -242,19 +242,6 @@ export function footerIntersection(entries, element) {
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
/**
|
|
246
|
-
* Dynamically retrieves the swiper css and js and returns a resolved promise when they have both been successfully fetched.
|
|
247
|
-
* @returns {promise}
|
|
248
|
-
*/
|
|
249
|
-
export function getSwiperAssetsV2(options = { css: "bundle" }) {
|
|
250
|
-
const getSwiperJs = () => import(/* webpackChunkName: 'swiper' */ "swiper");
|
|
251
|
-
|
|
252
|
-
const promisedJs = Promise.all([getSwiperJs()]).then((values) => {
|
|
253
|
-
return values;
|
|
254
|
-
});
|
|
255
|
-
return promisedJs;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
245
|
/**
|
|
259
246
|
* Dynamically retrieves the jQuery and returns a resolved promise when it has been successfully fetched.
|
|
260
247
|
* @returns {promise}
|
|
@@ -681,7 +668,6 @@ const api = {
|
|
|
681
668
|
getPosition,
|
|
682
669
|
getGsap,
|
|
683
670
|
getJquery,
|
|
684
|
-
getSwiperAssetsV2,
|
|
685
671
|
inCriticalCssConfig,
|
|
686
672
|
injectYouTubeIframeScript,
|
|
687
673
|
isEmailValid,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pernod-ricard-global-cms/jsutils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Handy collection of Javascript utility functions",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "jsutils.mjs",
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"gsap": "^3.10.4",
|
|
22
22
|
"jquery": "^3.6.0",
|
|
23
|
-
"prettier": "^2.5.1"
|
|
24
|
-
"swiper": "^8.1.4"
|
|
23
|
+
"prettier": "^2.5.1"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
27
26
|
"cypress": "^10.5.0",
|