@ikas/storefront 4.15.0-beta.38 → 4.15.0-beta.39
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 e,__generator as n}from'./../../../../ext/tslib/tslib.es6.js';import*as t from"react";import{observer as o}from"mobx-react-lite";import s from"@adyen/adyen-web";import"@adyen/adyen-web/dist/adyen.css";import i from"./adyen.module.scss.js";var r;!function(e){e.Authorised="Authorised",e.Cancelled="Cancelled"}(r||(r={}));var a=o((function(o){var a=o.vm,d=o.isSelected,
|
|
1
|
+
import{__awaiter as e,__generator as n}from'./../../../../ext/tslib/tslib.es6.js';import*as t from"react";import{observer as o}from"mobx-react-lite";import s from"@adyen/adyen-web";import"@adyen/adyen-web/dist/adyen.css";import i from"./adyen.module.scss.js";var r;!function(e){e.Authorised="Authorised",e.Cancelled="Cancelled"}(r||(r={}));var a=o((function(o){var a=o.vm,d=o.isSelected,u=t.useRef(null);return t.useEffect((function(){e(void 0,void 0,void 0,(function(){var t,o,i;return n(this,(function(d){switch(d.label){case 0:return a.adyenResponse&&u.current?(t={environment:"test",clientKey:a.adyenResponse.clientKey,analytics:{enabled:!0},session:{id:a.adyenResponse.sessionId,sessionData:a.adyenResponse.sessionData},beforeSubmit:function(t,o,s){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return s.resolve(t),[2]}))}))},onPaymentCompleted:function(e,n){e.resultCode===r.Authorised&&a.adyenResponse?window.location.href="".concat(a.adyenResponse.returnUrl,"&redirectResult=").concat(e.sessionResult):(a.isStepLoading=!1,setTimeout((function(){i.setStatus("ready")}),3e3))},onError:function(e,n){a.isStepLoading=!1,setTimeout((function(){i.setStatus("ready")}),3e3)},paymentMethodsConfiguration:{card:{showPayButton:!1}}},[4,s(t)]):[3,2];case 1:o=d.sent(),i=o.create("dropin").mount(u.current),a.setAdyenDropinElement(i),d.label=2;case 2:return[2]}}))}))}),[a.adyenResponse]),a.adyenResponse?t.createElement("div",{className:[i.AdyenContainer,d?"":i.NotSelectedAdyenContainer].join(" ")},t.createElement("div",{ref:u})):null}));export{a as Adyen};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "4.15.0-beta.
|
|
3
|
+
"version": "4.15.0-beta.39",
|
|
4
4
|
"description": "Storefront functionality for ikas storefront themes.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"build": "rm -rf build && rollup -c"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@ikas/storefront-api": "^4.15.0-beta.
|
|
21
|
-
"@ikas/storefront-config": "^4.15.0-beta.
|
|
22
|
-
"@ikas/storefront-model-functions": "^4.15.0-beta.
|
|
23
|
-
"@ikas/storefront-models": "^4.15.0-beta.
|
|
24
|
-
"@ikas/storefront-providers": "^4.15.0-beta.
|
|
20
|
+
"@ikas/storefront-api": "^4.15.0-beta.39",
|
|
21
|
+
"@ikas/storefront-config": "^4.15.0-beta.39",
|
|
22
|
+
"@ikas/storefront-model-functions": "^4.15.0-beta.39",
|
|
23
|
+
"@ikas/storefront-models": "^4.15.0-beta.39",
|
|
24
|
+
"@ikas/storefront-providers": "^4.15.0-beta.39",
|
|
25
25
|
"@ikas/localized-address": "1.0.0-beta.3",
|
|
26
|
-
"@adyen/adyen-web": "^5.
|
|
26
|
+
"@adyen/adyen-web": "^5.57.0",
|
|
27
27
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
28
28
|
"@rollup/plugin-json": "^4.1.0",
|
|
29
29
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@ikas/localized-address": "1.0.0-beta.3",
|
|
58
|
-
"@ikas/storefront-api": "^4.15.0-beta.
|
|
59
|
-
"@ikas/storefront-config": "^4.15.0-beta.
|
|
60
|
-
"@ikas/storefront-model-functions": "^4.15.0-beta.
|
|
61
|
-
"@ikas/storefront-models": "^4.15.0-beta.
|
|
62
|
-
"@ikas/storefront-providers": "^4.15.0-beta.
|
|
58
|
+
"@ikas/storefront-api": "^4.15.0-beta.39",
|
|
59
|
+
"@ikas/storefront-config": "^4.15.0-beta.39",
|
|
60
|
+
"@ikas/storefront-model-functions": "^4.15.0-beta.39",
|
|
61
|
+
"@ikas/storefront-models": "^4.15.0-beta.39",
|
|
62
|
+
"@ikas/storefront-providers": "^4.15.0-beta.39",
|
|
63
63
|
"mobx": "^6.1.3",
|
|
64
64
|
"mobx-react-lite": "^3.1.5",
|
|
65
65
|
"next": "12.2.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@stripe/stripe-js": "^1.29.0",
|
|
73
73
|
"react-tooltip": "^4.2.21",
|
|
74
74
|
"libphonenumber-js": "^1.10.6",
|
|
75
|
-
"@adyen/adyen-web": "^5.
|
|
75
|
+
"@adyen/adyen-web": "^5.57.0",
|
|
76
76
|
"@paypal/react-paypal-js": "^7.8.2"
|
|
77
77
|
}
|
|
78
78
|
}
|