@monei-js/components 1.5.2 → 1.6.0
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/bizum/types.d.ts +1 -0
- package/dist/components.cjs.development.js +27 -4
- 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 +27 -4
- package/dist/components.esm.js.map +1 -1
- package/dist/paymentModal/types.d.ts +2 -0
- package/dist/types.d.ts +2 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/components.esm.js
CHANGED
|
@@ -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,15 @@ 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
|
+
"default": config.secureDomain,
|
|
14333
|
+
required: false
|
|
14334
|
+
},
|
|
14322
14335
|
billingDetails: {
|
|
14323
14336
|
type: zoid.PROP_TYPE.OBJECT,
|
|
14324
14337
|
required: false
|
|
@@ -14441,7 +14454,7 @@ var onLoadPaypal = /*#__PURE__*/function () {
|
|
|
14441
14454
|
switch (_context2.prev = _context2.next) {
|
|
14442
14455
|
case 0:
|
|
14443
14456
|
_context2.next = 2;
|
|
14444
|
-
return loadScript(src, {
|
|
14457
|
+
return loadScript(src, props.cspNonce, {
|
|
14445
14458
|
namespace: namespace,
|
|
14446
14459
|
cspNonce: props.cspNonce
|
|
14447
14460
|
});
|
|
@@ -14728,6 +14741,10 @@ var options$3 = {
|
|
|
14728
14741
|
type: zoid.PROP_TYPE.STRING,
|
|
14729
14742
|
required: false
|
|
14730
14743
|
},
|
|
14744
|
+
phoneNumber: {
|
|
14745
|
+
type: zoid.PROP_TYPE.STRING,
|
|
14746
|
+
required: false
|
|
14747
|
+
},
|
|
14731
14748
|
onError: {
|
|
14732
14749
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
14733
14750
|
required: false
|
|
@@ -14799,6 +14816,10 @@ var options$4 = {
|
|
|
14799
14816
|
type: zoid.PROP_TYPE.STRING,
|
|
14800
14817
|
required: false
|
|
14801
14818
|
},
|
|
14819
|
+
phoneNumber: {
|
|
14820
|
+
type: zoid.PROP_TYPE.STRING,
|
|
14821
|
+
required: false
|
|
14822
|
+
},
|
|
14802
14823
|
onError: {
|
|
14803
14824
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
14804
14825
|
required: false
|
|
@@ -14838,9 +14859,10 @@ var options$4 = {
|
|
|
14838
14859
|
return function (_ref3) {
|
|
14839
14860
|
var amount = _ref3.amount,
|
|
14840
14861
|
currency = _ref3.currency;
|
|
14841
|
-
var bizumModal = new BizumModal(_extends({
|
|
14862
|
+
var bizumModal = new BizumModal(_extends({
|
|
14842
14863
|
amount: amount,
|
|
14843
|
-
currency: currency
|
|
14864
|
+
currency: currency
|
|
14865
|
+
}, props, {
|
|
14844
14866
|
onClose: function onClose() {
|
|
14845
14867
|
window.onpopstate = null;
|
|
14846
14868
|
document.body.style.overflow = '';
|
|
@@ -15764,6 +15786,7 @@ var NextActionType;
|
|
|
15764
15786
|
(function (NextActionType) {
|
|
15765
15787
|
NextActionType["CONFIRM"] = "CONFIRM";
|
|
15766
15788
|
NextActionType["FRICTIONLESS_CHALLENGE"] = "FRICTIONLESS_CHALLENGE";
|
|
15789
|
+
NextActionType["BIZUM_CHALLENGE"] = "BIZUM_CHALLENGE";
|
|
15767
15790
|
NextActionType["CHALLENGE"] = "CHALLENGE";
|
|
15768
15791
|
NextActionType["COMPLETE"] = "COMPLETE";
|
|
15769
15792
|
})(NextActionType || (NextActionType = {}));
|