@ikas/storefront 4.15.26 → 4.15.27

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,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};
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:"live",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.26",
3
+ "version": "4.15.27",
4
4
  "description": "Storefront functionality for ikas storefront themes.",
5
5
  "author": "ikas",
6
6
  "license": "ISC",
@@ -22,11 +22,11 @@
22
22
  "swiper": "11.0.6"
23
23
  },
24
24
  "devDependencies": {
25
- "@ikas/storefront-api": "^4.15.26",
26
- "@ikas/storefront-config": "^4.15.26",
27
- "@ikas/storefront-model-functions": "^4.15.26",
28
- "@ikas/storefront-models": "^4.15.26",
29
- "@ikas/storefront-providers": "^4.15.26",
25
+ "@ikas/storefront-api": "^4.15.27",
26
+ "@ikas/storefront-config": "^4.15.27",
27
+ "@ikas/storefront-model-functions": "^4.15.27",
28
+ "@ikas/storefront-models": "^4.15.27",
29
+ "@ikas/storefront-providers": "^4.15.27",
30
30
  "@ikas/localized-address": "1.0.0-beta.4",
31
31
  "@adyen/adyen-web": "^5.57.0",
32
32
  "@rollup/plugin-commonjs": "^22.0.0",
@@ -61,11 +61,11 @@
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@ikas/localized-address": "1.0.0-beta.4",
64
- "@ikas/storefront-api": "^4.15.26",
65
- "@ikas/storefront-config": "^4.15.26",
66
- "@ikas/storefront-model-functions": "^4.15.26",
67
- "@ikas/storefront-models": "^4.15.26",
68
- "@ikas/storefront-providers": "^4.15.26",
64
+ "@ikas/storefront-api": "^4.15.27",
65
+ "@ikas/storefront-config": "^4.15.27",
66
+ "@ikas/storefront-model-functions": "^4.15.27",
67
+ "@ikas/storefront-models": "^4.15.27",
68
+ "@ikas/storefront-providers": "^4.15.27",
69
69
  "mobx": "^6.1.3",
70
70
  "mobx-react-lite": "^3.1.5",
71
71
  "next": "12.2.0",