@monei-js/components 1.5.1 → 1.5.2
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/dist/cardInput/types.d.ts +1 -0
- package/dist/components.cjs.development.js +33 -8
- package/dist/components.cjs.development.js.map +1 -1
- package/dist/components.cjs.production.min.js +1 -1
- package/dist/components.cjs.production.min.js.map +1 -1
- package/dist/components.esm.js +36 -9
- package/dist/components.esm.js.map +1 -1
- package/dist/types.d.ts +27 -3
- package/package.json +3 -1
package/dist/components.esm.js
CHANGED
|
@@ -896,7 +896,11 @@ var getLanguage = function getLanguage() {
|
|
|
896
896
|
lang = localStorage.getItem('i18nextLng');
|
|
897
897
|
} catch (error) {}
|
|
898
898
|
|
|
899
|
-
|
|
899
|
+
if (lang) {
|
|
900
|
+
return lang.split('-')[0];
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
return '';
|
|
900
904
|
};
|
|
901
905
|
|
|
902
906
|
var getClientEnv = function getClientEnv() {
|
|
@@ -984,7 +988,7 @@ var globalConfig = {
|
|
|
984
988
|
};
|
|
985
989
|
var stageConfig = {
|
|
986
990
|
local: {
|
|
987
|
-
paymentPageUrl: "http://
|
|
991
|
+
paymentPageUrl: "http://localhost:8080/",
|
|
988
992
|
posPaymentPageUrl: "http://192.168.18.3:8080/",
|
|
989
993
|
cardInputUrl: "http://192.168.18.3:3001/" + version + "/inner-card-input/",
|
|
990
994
|
paymentModalUrl: "http://192.168.18.3:3002/" + version + "/inner-payment-modal/",
|
|
@@ -992,7 +996,7 @@ var stageConfig = {
|
|
|
992
996
|
bizumUrl: "http://192.168.18.3:3004/" + version + "/inner-bizum/",
|
|
993
997
|
bizumButtonUrl: "http://192.168.18.3:3005/" + version + "/inner-bizum-button/",
|
|
994
998
|
googlePayUrl: "http://192.168.18.3:3006/" + version + "/inner-google-pay/",
|
|
995
|
-
paymentRequestUrl: "https://monei-
|
|
999
|
+
paymentRequestUrl: "https://monei-local.ngrok.io/" + version + "/inner-payment-request/",
|
|
996
1000
|
click2PayUrl: "http://192.168.18.3:3008/inner-click2pay/",
|
|
997
1001
|
click2PayButtonUrl: "http://192.168.18.3:3009/inner-click2pay-button/",
|
|
998
1002
|
cofidisUrl: "http://192.168.18.3:3010/" + version + "/inner-cofidis/",
|
|
@@ -1001,8 +1005,8 @@ var stageConfig = {
|
|
|
1001
1005
|
cofidisLoanUrl: "http://192.168.18.3:3013/" + version + "/inner-cofidis-loan/",
|
|
1002
1006
|
cofidisLoanButtonUrl: "http://192.168.18.3:3014/" + version + "/inner-cofidis-loan-button/",
|
|
1003
1007
|
cofidisLoanWidgetUrl: "http://192.168.18.3:3015/" + version + "/inner-cofidis-loan-widget/",
|
|
1004
|
-
apiUrl: 'https://api.
|
|
1005
|
-
secureDomain: 'https://secure.
|
|
1008
|
+
apiUrl: 'https://api.monei.com/v1',
|
|
1009
|
+
secureDomain: 'https://secure.monei.com'
|
|
1006
1010
|
},
|
|
1007
1011
|
dev: {
|
|
1008
1012
|
apiUrl: 'https://api.microapps-staging.com/v1',
|
|
@@ -14217,6 +14221,14 @@ var options = {
|
|
|
14217
14221
|
type: zoid.PROP_TYPE.OBJECT,
|
|
14218
14222
|
alias: 'innerStyle',
|
|
14219
14223
|
required: false
|
|
14224
|
+
},
|
|
14225
|
+
__getConfig: {
|
|
14226
|
+
type: zoid.PROP_TYPE.FUNCTION,
|
|
14227
|
+
required: false,
|
|
14228
|
+
value: function value(_ref2) {
|
|
14229
|
+
var props = _ref2.props;
|
|
14230
|
+
return getPaymentMethods.bind(null, props);
|
|
14231
|
+
}
|
|
14220
14232
|
}
|
|
14221
14233
|
},
|
|
14222
14234
|
validate: validateComponentProps,
|
|
@@ -14237,9 +14249,9 @@ var options = {
|
|
|
14237
14249
|
|
|
14238
14250
|
return containerTemplate(params);
|
|
14239
14251
|
},
|
|
14240
|
-
prerenderTemplate: function prerenderTemplate(
|
|
14241
|
-
var doc =
|
|
14242
|
-
props =
|
|
14252
|
+
prerenderTemplate: function prerenderTemplate(_ref3) {
|
|
14253
|
+
var doc = _ref3.doc,
|
|
14254
|
+
props = _ref3.props;
|
|
14243
14255
|
var html = doc.createElement('html');
|
|
14244
14256
|
var body = doc.createElement('body');
|
|
14245
14257
|
body.style.margin = '0';
|
|
@@ -15756,8 +15768,23 @@ var NextActionType;
|
|
|
15756
15768
|
NextActionType["COMPLETE"] = "COMPLETE";
|
|
15757
15769
|
})(NextActionType || (NextActionType = {}));
|
|
15758
15770
|
|
|
15771
|
+
var CardBrand;
|
|
15772
|
+
|
|
15773
|
+
(function (CardBrand) {
|
|
15774
|
+
CardBrand["Visa"] = "visa";
|
|
15775
|
+
CardBrand["Mastercard"] = "mastercard";
|
|
15776
|
+
CardBrand["Amex"] = "amex";
|
|
15777
|
+
CardBrand["Discover"] = "discover";
|
|
15778
|
+
CardBrand["Diners"] = "diners";
|
|
15779
|
+
CardBrand["JCB"] = "jcb";
|
|
15780
|
+
CardBrand["Maestro"] = "maestro";
|
|
15781
|
+
CardBrand["UnionPay"] = "unionpay";
|
|
15782
|
+
CardBrand["Elo"] = "elo";
|
|
15783
|
+
CardBrand["Hipercard"] = "hipercard";
|
|
15784
|
+
})(CardBrand || (CardBrand = {}));
|
|
15785
|
+
|
|
15759
15786
|
var api = _api;
|
|
15760
15787
|
var utils = _utils;
|
|
15761
15788
|
|
|
15762
|
-
export { Bizum, BizumModal, CardInput, Cofidis, CofidisLoan, CofidisLoanModal, CofidisLoanWidget, CofidisModal, CofidisPay, CofidisPayModal, CofidisPayWidget, CofidisWidget, GooglePay, NextActionType, PayPal, PaymentModal, PaymentRequest, api, config, confirmPayment$1 as confirmPayment, createToken$1 as createToken, utils };
|
|
15789
|
+
export { Bizum, BizumModal, CardBrand, CardInput, Cofidis, CofidisLoan, CofidisLoanModal, CofidisLoanWidget, CofidisModal, CofidisPay, CofidisPayModal, CofidisPayWidget, CofidisWidget, GooglePay, NextActionType, PayPal, PaymentModal, PaymentRequest, api, config, confirmPayment$1 as confirmPayment, createToken$1 as createToken, utils };
|
|
15763
15790
|
//# sourceMappingURL=components.esm.js.map
|