@monei-js/components 1.5.2 → 1.6.1

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.
@@ -816,7 +816,7 @@ var transformStyle = function transformStyle(style) {
816
816
  return result;
817
817
  }, {});
818
818
  };
819
- var loadScript = function loadScript(src, dataset) {
819
+ var loadScript = function loadScript(src, nonce, dataset) {
820
820
  return new Promise(function (resolve, reject) {
821
821
  if (Array.from(document.scripts).findIndex(function (s) {
822
822
  return s.src === src;
@@ -835,6 +835,10 @@ var loadScript = function loadScript(src, dataset) {
835
835
  return reject(error);
836
836
  };
837
837
 
838
+ if (nonce) {
839
+ script.setAttribute('nonce', nonce);
840
+ }
841
+
838
842
  if (dataset) {
839
843
  Object.keys(dataset).forEach(function (key) {
840
844
  if (dataset[key]) {
@@ -14319,6 +14323,14 @@ var options$1 = {
14319
14323
  type: zoid.PROP_TYPE.OBJECT,
14320
14324
  required: false
14321
14325
  },
14326
+ allowedPaymentMethods: {
14327
+ type: zoid.PROP_TYPE.ARRAY,
14328
+ required: false
14329
+ },
14330
+ customDomain: {
14331
+ type: zoid.PROP_TYPE.STRING,
14332
+ required: false
14333
+ },
14322
14334
  billingDetails: {
14323
14335
  type: zoid.PROP_TYPE.OBJECT,
14324
14336
  required: false
@@ -14441,7 +14453,7 @@ var onLoadPaypal = /*#__PURE__*/function () {
14441
14453
  switch (_context2.prev = _context2.next) {
14442
14454
  case 0:
14443
14455
  _context2.next = 2;
14444
- return loadScript(src, {
14456
+ return loadScript(src, props.cspNonce, {
14445
14457
  namespace: namespace,
14446
14458
  cspNonce: props.cspNonce
14447
14459
  });
@@ -14728,6 +14740,10 @@ var options$3 = {
14728
14740
  type: zoid.PROP_TYPE.STRING,
14729
14741
  required: false
14730
14742
  },
14743
+ phoneNumber: {
14744
+ type: zoid.PROP_TYPE.STRING,
14745
+ required: false
14746
+ },
14731
14747
  onError: {
14732
14748
  type: zoid.PROP_TYPE.FUNCTION,
14733
14749
  required: false
@@ -14799,6 +14815,10 @@ var options$4 = {
14799
14815
  type: zoid.PROP_TYPE.STRING,
14800
14816
  required: false
14801
14817
  },
14818
+ phoneNumber: {
14819
+ type: zoid.PROP_TYPE.STRING,
14820
+ required: false
14821
+ },
14802
14822
  onError: {
14803
14823
  type: zoid.PROP_TYPE.FUNCTION,
14804
14824
  required: false
@@ -14838,9 +14858,10 @@ var options$4 = {
14838
14858
  return function (_ref3) {
14839
14859
  var amount = _ref3.amount,
14840
14860
  currency = _ref3.currency;
14841
- var bizumModal = new BizumModal(_extends({}, props, {
14861
+ var bizumModal = new BizumModal(_extends({
14842
14862
  amount: amount,
14843
- currency: currency,
14863
+ currency: currency
14864
+ }, props, {
14844
14865
  onClose: function onClose() {
14845
14866
  window.onpopstate = null;
14846
14867
  document.body.style.overflow = '';
@@ -15764,6 +15785,7 @@ var NextActionType;
15764
15785
  (function (NextActionType) {
15765
15786
  NextActionType["CONFIRM"] = "CONFIRM";
15766
15787
  NextActionType["FRICTIONLESS_CHALLENGE"] = "FRICTIONLESS_CHALLENGE";
15788
+ NextActionType["BIZUM_CHALLENGE"] = "BIZUM_CHALLENGE";
15767
15789
  NextActionType["CHALLENGE"] = "CHALLENGE";
15768
15790
  NextActionType["COMPLETE"] = "COMPLETE";
15769
15791
  })(NextActionType || (NextActionType = {}));