@ikas/storefront 4.5.0-beta.34 → 4.5.0-beta.35
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 t}from'./../../../../ext/tslib/tslib.es6.js';import*as n from"react";import{observer as r}from"mobx-react-lite";import{PayPalScriptProvider as a,usePayPalScriptReducer as o,PayPalButtons as
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../../../ext/tslib/tslib.es6.js';import*as n from"react";import{observer as r}from"mobx-react-lite";import{PayPalScriptProvider as a,usePayPalScriptReducer as o,PayPalButtons as l}from"@paypal/react-paypal-js";import i from"../../../../store/checkout/index.js";import c from"./style.module.scss.js";var s=r((function(r){var s=r.vm;if(!s.payPalClientIdResponse)return null;var d=n.useState(!1),u=d[0],m=d[1],p={"client-id":s.payPalClientIdResponse.clientId,currency:s.checkout.currencyCode,"merchant-id":s.payPalClientIdResponse.merchantId};return n.createElement(n.Fragment,null,n.createElement("div",null,u?n.createElement("div",{className:c.PaypalButton},n.createElement("div",{className:c.loader})):n.createElement(a,{options:p},n.createElement((function(){return o()[0].isPending?n.createElement("div",{className:c.Main},n.createElement("div",{className:c.loader})):n.createElement(l,{style:{layout:"horizontal"},onClick:function(e,t){return s.checkPaypalButtonAvailable()?t.resolve():t.reject()},onCancel:function(e,t){s.isStepLoading=!1},createOrder:function(n,r){return e(void 0,void 0,void 0,(function(){var e,n,r;return t(this,(function(t){switch(t.label){case 0:return[4,s.onCompletePaymentClick()];case 1:return t.sent(),[4,i.createPayPalOrder({input:{cartId:s.checkout.id,paymentGatewayId:(null===(n=s.checkout.selectedPaymentGateway)||void 0===n?void 0:n.id)||""}})];case 2:return(e=t.sent()).data&&(s.paypalOrderResponse=e.data),[2,e&&(null===(r=e.data)||void 0===r?void 0:r.sessionToken)||""]}}))}))},onApprove:function(n,r){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return s.paypalOrderResponse&&(m(!0),window.location.href="".concat(s.paypalOrderResponse.returnUrl)),[2]}))}))}})}),null))))}));export{s as PayPal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var n={Main:"style-module_Main__JYDR4",loader:"style-module_loader__3htHh",load8:"style-module_load8__IQ0Uf",Form:"style-module_Form__YOZep",Disabled:"style-module_Disabled__V35UW"};e(".style-module_Main__JYDR4 {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.style-module_loader__3htHh,\n.style-module_loader__3htHh:after {\n border-radius: 50%;\n width: 5em;\n height: 5em;\n}\n\n.style-module_loader__3htHh {\n font-size: 6px;\n position: relative;\n text-indent: -9999em;\n border-top: 0.5em solid rgba(163, 163, 163, 0.4);\n border-right: 0.5em solid rgba(163, 163, 163, 0.4);\n border-bottom: 0.5em solid rgba(163, 163, 163, 0.4);\n border-left: 0.5em solid rgba(51, 51, 51, 0.8392156863);\n -webkit-transform: translateZ(0);\n -ms-transform: translateZ(0);\n transform: translateZ(0);\n -webkit-animation: style-module_load8__IQ0Uf 1.1s infinite linear;\n animation: style-module_load8__IQ0Uf 1.1s infinite linear;\n}\n\n@-webkit-keyframes style-module_load8__IQ0Uf {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes style-module_load8__IQ0Uf {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.style-module_Form__YOZep {\n position: relative;\n min-height: 200px;\n}\n\n.style-module_Disabled__V35UW {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 9;\n cursor: not-allowed;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 200px;\n}");export{n as default};
|
|
1
|
+
import e from'./../../../../ext/style-inject/dist/style-inject.es.js';var n={Main:"style-module_Main__JYDR4",loader:"style-module_loader__3htHh",load8:"style-module_load8__IQ0Uf",Form:"style-module_Form__YOZep",Disabled:"style-module_Disabled__V35UW",PaypalButton:"style-module_PaypalButton__Tmyof"};e(".style-module_Main__JYDR4 {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.style-module_loader__3htHh,\n.style-module_loader__3htHh:after {\n border-radius: 50%;\n width: 5em;\n height: 5em;\n}\n\n.style-module_loader__3htHh {\n font-size: 6px;\n position: relative;\n text-indent: -9999em;\n border-top: 0.5em solid rgba(163, 163, 163, 0.4);\n border-right: 0.5em solid rgba(163, 163, 163, 0.4);\n border-bottom: 0.5em solid rgba(163, 163, 163, 0.4);\n border-left: 0.5em solid rgba(51, 51, 51, 0.8392156863);\n -webkit-transform: translateZ(0);\n -ms-transform: translateZ(0);\n transform: translateZ(0);\n -webkit-animation: style-module_load8__IQ0Uf 1.1s infinite linear;\n animation: style-module_load8__IQ0Uf 1.1s infinite linear;\n}\n\n@-webkit-keyframes style-module_load8__IQ0Uf {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes style-module_load8__IQ0Uf {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.style-module_Form__YOZep {\n position: relative;\n min-height: 200px;\n}\n\n.style-module_Disabled__V35UW {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 9;\n cursor: not-allowed;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 200px;\n}\n\n.style-module_PaypalButton__Tmyof {\n background-color: #ffc439;\n color: #2C2E2F;\n border-radius: 4px;\n height: 55px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: not-allowed;\n}");export{n as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "4.5.0-beta.
|
|
3
|
+
"version": "4.5.0-beta.35",
|
|
4
4
|
"description": "Storefront functionality for ikas storefront themes.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"build": "rm -rf build && rollup -c"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@ikas/storefront-api": "^4.5.0-beta.
|
|
21
|
-
"@ikas/storefront-config": "^4.5.0-beta.
|
|
22
|
-
"@ikas/storefront-model-functions": "^4.5.0-beta.
|
|
23
|
-
"@ikas/storefront-models": "^4.5.0-beta.
|
|
24
|
-
"@ikas/storefront-providers": "^4.5.0-beta.
|
|
20
|
+
"@ikas/storefront-api": "^4.5.0-beta.35",
|
|
21
|
+
"@ikas/storefront-config": "^4.5.0-beta.35",
|
|
22
|
+
"@ikas/storefront-model-functions": "^4.5.0-beta.35",
|
|
23
|
+
"@ikas/storefront-models": "^4.5.0-beta.35",
|
|
24
|
+
"@ikas/storefront-providers": "^4.5.0-beta.35",
|
|
25
25
|
"@ikas/localized-address": "^1.0.0-beta.2",
|
|
26
26
|
"@adyen/adyen-web": "^5.28.2",
|
|
27
27
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@ikas/localized-address": "^1.0.0-beta.2",
|
|
58
|
-
"@ikas/storefront-api": "^4.5.0-beta.
|
|
59
|
-
"@ikas/storefront-config": "^4.5.0-beta.
|
|
60
|
-
"@ikas/storefront-model-functions": "^4.5.0-beta.
|
|
61
|
-
"@ikas/storefront-models": "^4.5.0-beta.
|
|
62
|
-
"@ikas/storefront-providers": "^4.5.0-beta.
|
|
58
|
+
"@ikas/storefront-api": "^4.5.0-beta.35",
|
|
59
|
+
"@ikas/storefront-config": "^4.5.0-beta.35",
|
|
60
|
+
"@ikas/storefront-model-functions": "^4.5.0-beta.35",
|
|
61
|
+
"@ikas/storefront-models": "^4.5.0-beta.35",
|
|
62
|
+
"@ikas/storefront-providers": "^4.5.0-beta.35",
|
|
63
63
|
"mobx": "^6.1.3",
|
|
64
64
|
"mobx-react-lite": "^3.1.5",
|
|
65
65
|
"next": "12.2.0",
|