@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.
@@ -42,6 +42,7 @@ export declare type CardInputProps = {
42
42
  yearOutOfRange?: string;
43
43
  dateOutOfRange?: string;
44
44
  invalidExpiryDate?: string;
45
+ invalidCardType?: string;
45
46
  emptyCVC?: string;
46
47
  invalidCVC?: string;
47
48
  };
@@ -900,7 +900,11 @@ var getLanguage = function getLanguage() {
900
900
  lang = localStorage.getItem('i18nextLng');
901
901
  } catch (error) {}
902
902
 
903
- return lang || '';
903
+ if (lang) {
904
+ return lang.split('-')[0];
905
+ }
906
+
907
+ return '';
904
908
  };
905
909
 
906
910
  var getClientEnv = function getClientEnv() {
@@ -988,7 +992,7 @@ var globalConfig = {
988
992
  };
989
993
  var stageConfig = {
990
994
  local: {
991
- paymentPageUrl: "http://192.168.18.3:8080/",
995
+ paymentPageUrl: "http://localhost:8080/",
992
996
  posPaymentPageUrl: "http://192.168.18.3:8080/",
993
997
  cardInputUrl: "http://192.168.18.3:3001/" + version + "/inner-card-input/",
994
998
  paymentModalUrl: "http://192.168.18.3:3002/" + version + "/inner-payment-modal/",
@@ -996,7 +1000,7 @@ var stageConfig = {
996
1000
  bizumUrl: "http://192.168.18.3:3004/" + version + "/inner-bizum/",
997
1001
  bizumButtonUrl: "http://192.168.18.3:3005/" + version + "/inner-bizum-button/",
998
1002
  googlePayUrl: "http://192.168.18.3:3006/" + version + "/inner-google-pay/",
999
- paymentRequestUrl: "https://monei-payment-request.eu.ngrok.io/" + version + "/inner-payment-request/",
1003
+ paymentRequestUrl: "https://monei-local.ngrok.io/" + version + "/inner-payment-request/",
1000
1004
  click2PayUrl: "http://192.168.18.3:3008/inner-click2pay/",
1001
1005
  click2PayButtonUrl: "http://192.168.18.3:3009/inner-click2pay-button/",
1002
1006
  cofidisUrl: "http://192.168.18.3:3010/" + version + "/inner-cofidis/",
@@ -1005,8 +1009,8 @@ var stageConfig = {
1005
1009
  cofidisLoanUrl: "http://192.168.18.3:3013/" + version + "/inner-cofidis-loan/",
1006
1010
  cofidisLoanButtonUrl: "http://192.168.18.3:3014/" + version + "/inner-cofidis-loan-button/",
1007
1011
  cofidisLoanWidgetUrl: "http://192.168.18.3:3015/" + version + "/inner-cofidis-loan-widget/",
1008
- apiUrl: 'https://api.microapps-staging.com/v1',
1009
- secureDomain: 'https://secure.microapps-staging.com'
1012
+ apiUrl: 'https://api.monei.com/v1',
1013
+ secureDomain: 'https://secure.monei.com'
1010
1014
  },
1011
1015
  dev: {
1012
1016
  apiUrl: 'https://api.microapps-staging.com/v1',
@@ -14221,6 +14225,14 @@ var options = {
14221
14225
  type: zoid.PROP_TYPE.OBJECT,
14222
14226
  alias: 'innerStyle',
14223
14227
  required: false
14228
+ },
14229
+ __getConfig: {
14230
+ type: zoid.PROP_TYPE.FUNCTION,
14231
+ required: false,
14232
+ value: function value(_ref2) {
14233
+ var props = _ref2.props;
14234
+ return getPaymentMethods.bind(null, props);
14235
+ }
14224
14236
  }
14225
14237
  },
14226
14238
  validate: validateComponentProps,
@@ -14241,9 +14253,9 @@ var options = {
14241
14253
 
14242
14254
  return containerTemplate(params);
14243
14255
  },
14244
- prerenderTemplate: function prerenderTemplate(_ref2) {
14245
- var doc = _ref2.doc,
14246
- props = _ref2.props;
14256
+ prerenderTemplate: function prerenderTemplate(_ref3) {
14257
+ var doc = _ref3.doc,
14258
+ props = _ref3.props;
14247
14259
  var html = doc.createElement('html');
14248
14260
  var body = doc.createElement('body');
14249
14261
  body.style.margin = '0';
@@ -15758,6 +15770,19 @@ var PaymentRequest = /*#__PURE__*/zoid.create(options$c);
15758
15770
  NextActionType["COMPLETE"] = "COMPLETE";
15759
15771
  })(exports.NextActionType || (exports.NextActionType = {}));
15760
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
+ })(exports.CardBrand || (exports.CardBrand = {}));
15785
+
15761
15786
  var api = _api;
15762
15787
  var utils = _utils;
15763
15788