@ikas/storefront 6.1.0-beta.228 → 6.1.0-beta.229
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as
|
|
1
|
+
import{__awaiter as r,__generator as e}from'./../../ext/tslib/tslib.es6.js';import*as t from"react";import{IkasStorefrontConfig as n}from"@ikas/storefront-config";import{IkasBaseStore as i}from"../../store/base.js";var o=!1,s=function(s){var a=s.product,c=s.quantity,u=void 0===c?1:c,f=n.getPayWithIkasUrl(),l=t.useRef(null);return t.useEffect((function(){if(a){var t=function(t){return r(void 0,void 0,void 0,(function(){var r,n;return e(this,(function(e){switch(e.label){case 0:if("ikas-buy-click"!==t.data.type)return[2];if((null===(n=l.current)||void 0===n?void 0:n.contentWindow)!==t.source)return[2];if(o)return[2];o=!0,e.label=1;case 1:return e.trys.push([1,,3,4]),[4,i.getInstance().cartStore.createPayWithIkasSession(a,u)];case 2:return(r=e.sent()).success&&r.payUrl?(s=r.payUrl,window.location.href=s,[3,4]):(console.error("Pay with ikas error:",r.error),[2]);case 3:return o=!1,[7];case 4:return[2]}var s}))}))};return window.addEventListener("message",t),function(){window.removeEventListener("message",t)}}}),[a,u]),f?t.createElement("iframe",{ref:l,src:f,width:"100%",height:"100%"}):null};export{s as PayWithIkas};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "6.1.0-beta.
|
|
3
|
+
"version": "6.1.0-beta.229",
|
|
4
4
|
"description": "Storefront functionality for ikas storefront themes.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"swiper": "11.0.6"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@ikas/storefront-api": "^6.1.0-beta.
|
|
27
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
28
|
-
"@ikas/storefront-model-functions": "^6.1.0-beta.
|
|
29
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
30
|
-
"@ikas/storefront-providers": "^6.1.0-beta.
|
|
26
|
+
"@ikas/storefront-api": "^6.1.0-beta.229",
|
|
27
|
+
"@ikas/storefront-config": "^6.1.0-beta.229",
|
|
28
|
+
"@ikas/storefront-model-functions": "^6.1.0-beta.229",
|
|
29
|
+
"@ikas/storefront-models": "^6.1.0-beta.229",
|
|
30
|
+
"@ikas/storefront-providers": "^6.1.0-beta.229",
|
|
31
31
|
"@ikas/localized-address": "1.0.0-beta.6",
|
|
32
32
|
"@adyen/adyen-web": "^5.57.0",
|
|
33
33
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@ikas/localized-address": "1.0.0-beta.6",
|
|
65
|
-
"@ikas/storefront-api": "^6.1.0-beta.
|
|
66
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
67
|
-
"@ikas/storefront-model-functions": "^6.1.0-beta.
|
|
68
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
69
|
-
"@ikas/storefront-providers": "^6.1.0-beta.
|
|
65
|
+
"@ikas/storefront-api": "^6.1.0-beta.229",
|
|
66
|
+
"@ikas/storefront-config": "^6.1.0-beta.229",
|
|
67
|
+
"@ikas/storefront-model-functions": "^6.1.0-beta.229",
|
|
68
|
+
"@ikas/storefront-models": "^6.1.0-beta.229",
|
|
69
|
+
"@ikas/storefront-providers": "^6.1.0-beta.229",
|
|
70
70
|
"mobx": "^6.1.3",
|
|
71
71
|
"mobx-react-lite": "^3.1.5",
|
|
72
72
|
"next": "12.2.0",
|