@depay/widgets 5.0.1 → 5.0.3
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/cjs/index.bundle.js +24 -22
- package/dist/cjs/index.js +20 -20
- package/dist/es/index.bundle.js +24 -22
- package/dist/es/index.js +20 -20
- package/dist/umd/index.bundle.js +24 -22
- package/dist/umd/index.js +20 -20
- package/package.json +3 -3
package/dist/cjs/index.bundle.js
CHANGED
|
@@ -39,17 +39,11 @@ function _asyncToGenerator(fn) {
|
|
|
39
39
|
function _typeof(obj) {
|
|
40
40
|
"@babel/helpers - typeof";
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
_typeof = function _typeof(obj) {
|
|
48
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return _typeof(obj);
|
|
42
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
43
|
+
return typeof obj;
|
|
44
|
+
} : function (obj) {
|
|
45
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
46
|
+
}, _typeof(obj);
|
|
53
47
|
}
|
|
54
48
|
|
|
55
49
|
var commonjsGlobal$4 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -52362,6 +52356,9 @@ function _defineProperties(target, props) {
|
|
|
52362
52356
|
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
52363
52357
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
52364
52358
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
52359
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
52360
|
+
writable: false
|
|
52361
|
+
});
|
|
52365
52362
|
return Constructor;
|
|
52366
52363
|
}
|
|
52367
52364
|
|
|
@@ -52379,12 +52376,15 @@ function _inherits$1(subClass, superClass) {
|
|
|
52379
52376
|
throw new TypeError("Super expression must either be null or a function");
|
|
52380
52377
|
}
|
|
52381
52378
|
|
|
52382
|
-
|
|
52383
|
-
|
|
52384
|
-
|
|
52385
|
-
|
|
52386
|
-
|
|
52387
|
-
|
|
52379
|
+
Object.defineProperty(subClass, "prototype", {
|
|
52380
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
52381
|
+
constructor: {
|
|
52382
|
+
value: subClass,
|
|
52383
|
+
writable: true,
|
|
52384
|
+
configurable: true
|
|
52385
|
+
}
|
|
52386
|
+
}),
|
|
52387
|
+
writable: false
|
|
52388
52388
|
});
|
|
52389
52389
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
52390
52390
|
}
|
|
@@ -52583,7 +52583,7 @@ var PaddingStyle = (function () {
|
|
|
52583
52583
|
});
|
|
52584
52584
|
|
|
52585
52585
|
var PoweredByStyle = (function (style) {
|
|
52586
|
-
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
52586
|
+
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
52587
52587
|
});
|
|
52588
52588
|
|
|
52589
52589
|
var RangeSliderStyle = (function (style) {
|
|
@@ -63997,7 +63997,8 @@ let getAmountsOut$1 = ({ path, amountIn, tokenIn, tokenOut }) => {
|
|
|
63997
63997
|
})
|
|
63998
63998
|
.then((amountsOut)=>{
|
|
63999
63999
|
resolve(amountsOut[amountsOut.length - 1]);
|
|
64000
|
-
})
|
|
64000
|
+
})
|
|
64001
|
+
.catch(()=>resolve());
|
|
64001
64002
|
})
|
|
64002
64003
|
};
|
|
64003
64004
|
|
|
@@ -64342,7 +64343,8 @@ let getAmountsOut = ({ path, amountIn, tokenIn, tokenOut }) => {
|
|
|
64342
64343
|
})
|
|
64343
64344
|
.then((amountsOut)=>{
|
|
64344
64345
|
resolve(amountsOut[amountsOut.length - 1]);
|
|
64345
|
-
})
|
|
64346
|
+
})
|
|
64347
|
+
.catch(()=>resolve());
|
|
64346
64348
|
})
|
|
64347
64349
|
};
|
|
64348
64350
|
|
|
@@ -70407,9 +70409,9 @@ let addTransactions = ({ routes, event }) => {
|
|
|
70407
70409
|
})
|
|
70408
70410
|
};
|
|
70409
70411
|
|
|
70410
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
70412
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
70411
70413
|
|
|
70412
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
70414
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
70413
70415
|
var PaymentRoutingProvider = (function (props) {
|
|
70414
70416
|
var _useState = react.useState(),
|
|
70415
70417
|
_useState2 = _slicedToArray(_useState, 2),
|
package/dist/cjs/index.js
CHANGED
|
@@ -62,17 +62,11 @@ function _asyncToGenerator(fn) {
|
|
|
62
62
|
function _typeof(obj) {
|
|
63
63
|
"@babel/helpers - typeof";
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
_typeof = function _typeof(obj) {
|
|
71
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return _typeof(obj);
|
|
65
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
66
|
+
return typeof obj;
|
|
67
|
+
} : function (obj) {
|
|
68
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
69
|
+
}, _typeof(obj);
|
|
76
70
|
}
|
|
77
71
|
|
|
78
72
|
function createCommonjsModule(fn) {
|
|
@@ -1323,6 +1317,9 @@ function _defineProperties(target, props) {
|
|
|
1323
1317
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
1324
1318
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
1325
1319
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
1320
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
1321
|
+
writable: false
|
|
1322
|
+
});
|
|
1326
1323
|
return Constructor;
|
|
1327
1324
|
}
|
|
1328
1325
|
|
|
@@ -1340,12 +1337,15 @@ function _inherits(subClass, superClass) {
|
|
|
1340
1337
|
throw new TypeError("Super expression must either be null or a function");
|
|
1341
1338
|
}
|
|
1342
1339
|
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1340
|
+
Object.defineProperty(subClass, "prototype", {
|
|
1341
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
1342
|
+
constructor: {
|
|
1343
|
+
value: subClass,
|
|
1344
|
+
writable: true,
|
|
1345
|
+
configurable: true
|
|
1346
|
+
}
|
|
1347
|
+
}),
|
|
1348
|
+
writable: false
|
|
1349
1349
|
});
|
|
1350
1350
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
1351
1351
|
}
|
|
@@ -1720,7 +1720,7 @@ var PaddingStyle = (function () {
|
|
|
1720
1720
|
});
|
|
1721
1721
|
|
|
1722
1722
|
var PoweredByStyle = (function (style) {
|
|
1723
|
-
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
1723
|
+
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
1724
1724
|
});
|
|
1725
1725
|
|
|
1726
1726
|
var RangeSliderStyle = (function (style) {
|
|
@@ -2430,9 +2430,9 @@ function _defineProperty(obj, key, value) {
|
|
|
2430
2430
|
return obj;
|
|
2431
2431
|
}
|
|
2432
2432
|
|
|
2433
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
2433
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2434
2434
|
|
|
2435
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
2435
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2436
2436
|
var PaymentRoutingProvider = (function (props) {
|
|
2437
2437
|
var _useState = React.useState(),
|
|
2438
2438
|
_useState2 = _slicedToArray(_useState, 2),
|
package/dist/es/index.bundle.js
CHANGED
|
@@ -37,17 +37,11 @@ function _asyncToGenerator(fn) {
|
|
|
37
37
|
function _typeof(obj) {
|
|
38
38
|
"@babel/helpers - typeof";
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
_typeof = function _typeof(obj) {
|
|
46
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return _typeof(obj);
|
|
40
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
41
|
+
return typeof obj;
|
|
42
|
+
} : function (obj) {
|
|
43
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
44
|
+
}, _typeof(obj);
|
|
51
45
|
}
|
|
52
46
|
|
|
53
47
|
var commonjsGlobal$4 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -52360,6 +52354,9 @@ function _defineProperties(target, props) {
|
|
|
52360
52354
|
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
52361
52355
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
52362
52356
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
52357
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
52358
|
+
writable: false
|
|
52359
|
+
});
|
|
52363
52360
|
return Constructor;
|
|
52364
52361
|
}
|
|
52365
52362
|
|
|
@@ -52377,12 +52374,15 @@ function _inherits$1(subClass, superClass) {
|
|
|
52377
52374
|
throw new TypeError("Super expression must either be null or a function");
|
|
52378
52375
|
}
|
|
52379
52376
|
|
|
52380
|
-
|
|
52381
|
-
|
|
52382
|
-
|
|
52383
|
-
|
|
52384
|
-
|
|
52385
|
-
|
|
52377
|
+
Object.defineProperty(subClass, "prototype", {
|
|
52378
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
52379
|
+
constructor: {
|
|
52380
|
+
value: subClass,
|
|
52381
|
+
writable: true,
|
|
52382
|
+
configurable: true
|
|
52383
|
+
}
|
|
52384
|
+
}),
|
|
52385
|
+
writable: false
|
|
52386
52386
|
});
|
|
52387
52387
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
52388
52388
|
}
|
|
@@ -52581,7 +52581,7 @@ var PaddingStyle = (function () {
|
|
|
52581
52581
|
});
|
|
52582
52582
|
|
|
52583
52583
|
var PoweredByStyle = (function (style) {
|
|
52584
|
-
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
52584
|
+
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
52585
52585
|
});
|
|
52586
52586
|
|
|
52587
52587
|
var RangeSliderStyle = (function (style) {
|
|
@@ -63995,7 +63995,8 @@ let getAmountsOut$1 = ({ path, amountIn, tokenIn, tokenOut }) => {
|
|
|
63995
63995
|
})
|
|
63996
63996
|
.then((amountsOut)=>{
|
|
63997
63997
|
resolve(amountsOut[amountsOut.length - 1]);
|
|
63998
|
-
})
|
|
63998
|
+
})
|
|
63999
|
+
.catch(()=>resolve());
|
|
63999
64000
|
})
|
|
64000
64001
|
};
|
|
64001
64002
|
|
|
@@ -64340,7 +64341,8 @@ let getAmountsOut = ({ path, amountIn, tokenIn, tokenOut }) => {
|
|
|
64340
64341
|
})
|
|
64341
64342
|
.then((amountsOut)=>{
|
|
64342
64343
|
resolve(amountsOut[amountsOut.length - 1]);
|
|
64343
|
-
})
|
|
64344
|
+
})
|
|
64345
|
+
.catch(()=>resolve());
|
|
64344
64346
|
})
|
|
64345
64347
|
};
|
|
64346
64348
|
|
|
@@ -70405,9 +70407,9 @@ let addTransactions = ({ routes, event }) => {
|
|
|
70405
70407
|
})
|
|
70406
70408
|
};
|
|
70407
70409
|
|
|
70408
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
70410
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
70409
70411
|
|
|
70410
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
70412
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
70411
70413
|
var PaymentRoutingProvider = (function (props) {
|
|
70412
70414
|
var _useState = react.useState(),
|
|
70413
70415
|
_useState2 = _slicedToArray(_useState, 2),
|
package/dist/es/index.js
CHANGED
|
@@ -54,17 +54,11 @@ function _asyncToGenerator(fn) {
|
|
|
54
54
|
function _typeof(obj) {
|
|
55
55
|
"@babel/helpers - typeof";
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
_typeof = function _typeof(obj) {
|
|
63
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return _typeof(obj);
|
|
57
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
58
|
+
return typeof obj;
|
|
59
|
+
} : function (obj) {
|
|
60
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
61
|
+
}, _typeof(obj);
|
|
68
62
|
}
|
|
69
63
|
|
|
70
64
|
function createCommonjsModule(fn) {
|
|
@@ -1315,6 +1309,9 @@ function _defineProperties(target, props) {
|
|
|
1315
1309
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
1316
1310
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
1317
1311
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
1312
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
1313
|
+
writable: false
|
|
1314
|
+
});
|
|
1318
1315
|
return Constructor;
|
|
1319
1316
|
}
|
|
1320
1317
|
|
|
@@ -1332,12 +1329,15 @@ function _inherits(subClass, superClass) {
|
|
|
1332
1329
|
throw new TypeError("Super expression must either be null or a function");
|
|
1333
1330
|
}
|
|
1334
1331
|
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1332
|
+
Object.defineProperty(subClass, "prototype", {
|
|
1333
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
1334
|
+
constructor: {
|
|
1335
|
+
value: subClass,
|
|
1336
|
+
writable: true,
|
|
1337
|
+
configurable: true
|
|
1338
|
+
}
|
|
1339
|
+
}),
|
|
1340
|
+
writable: false
|
|
1341
1341
|
});
|
|
1342
1342
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
1343
1343
|
}
|
|
@@ -1712,7 +1712,7 @@ var PaddingStyle = (function () {
|
|
|
1712
1712
|
});
|
|
1713
1713
|
|
|
1714
1714
|
var PoweredByStyle = (function (style) {
|
|
1715
|
-
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
1715
|
+
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
1716
1716
|
});
|
|
1717
1717
|
|
|
1718
1718
|
var RangeSliderStyle = (function (style) {
|
|
@@ -2422,9 +2422,9 @@ function _defineProperty(obj, key, value) {
|
|
|
2422
2422
|
return obj;
|
|
2423
2423
|
}
|
|
2424
2424
|
|
|
2425
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
2425
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2426
2426
|
|
|
2427
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
2427
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2428
2428
|
var PaymentRoutingProvider = (function (props) {
|
|
2429
2429
|
var _useState = useState(),
|
|
2430
2430
|
_useState2 = _slicedToArray(_useState, 2),
|
package/dist/umd/index.bundle.js
CHANGED
|
@@ -43,17 +43,11 @@
|
|
|
43
43
|
function _typeof(obj) {
|
|
44
44
|
"@babel/helpers - typeof";
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
_typeof = function _typeof(obj) {
|
|
52
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return _typeof(obj);
|
|
46
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
47
|
+
return typeof obj;
|
|
48
|
+
} : function (obj) {
|
|
49
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
50
|
+
}, _typeof(obj);
|
|
57
51
|
}
|
|
58
52
|
|
|
59
53
|
var commonjsGlobal$4 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -52366,6 +52360,9 @@
|
|
|
52366
52360
|
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
52367
52361
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
52368
52362
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
52363
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
52364
|
+
writable: false
|
|
52365
|
+
});
|
|
52369
52366
|
return Constructor;
|
|
52370
52367
|
}
|
|
52371
52368
|
|
|
@@ -52383,12 +52380,15 @@
|
|
|
52383
52380
|
throw new TypeError("Super expression must either be null or a function");
|
|
52384
52381
|
}
|
|
52385
52382
|
|
|
52386
|
-
|
|
52387
|
-
|
|
52388
|
-
|
|
52389
|
-
|
|
52390
|
-
|
|
52391
|
-
|
|
52383
|
+
Object.defineProperty(subClass, "prototype", {
|
|
52384
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
52385
|
+
constructor: {
|
|
52386
|
+
value: subClass,
|
|
52387
|
+
writable: true,
|
|
52388
|
+
configurable: true
|
|
52389
|
+
}
|
|
52390
|
+
}),
|
|
52391
|
+
writable: false
|
|
52392
52392
|
});
|
|
52393
52393
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
52394
52394
|
}
|
|
@@ -52587,7 +52587,7 @@
|
|
|
52587
52587
|
});
|
|
52588
52588
|
|
|
52589
52589
|
var PoweredByStyle = (function (style) {
|
|
52590
|
-
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
52590
|
+
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
52591
52591
|
});
|
|
52592
52592
|
|
|
52593
52593
|
var RangeSliderStyle = (function (style) {
|
|
@@ -64001,7 +64001,8 @@
|
|
|
64001
64001
|
})
|
|
64002
64002
|
.then((amountsOut)=>{
|
|
64003
64003
|
resolve(amountsOut[amountsOut.length - 1]);
|
|
64004
|
-
})
|
|
64004
|
+
})
|
|
64005
|
+
.catch(()=>resolve());
|
|
64005
64006
|
})
|
|
64006
64007
|
};
|
|
64007
64008
|
|
|
@@ -64346,7 +64347,8 @@
|
|
|
64346
64347
|
})
|
|
64347
64348
|
.then((amountsOut)=>{
|
|
64348
64349
|
resolve(amountsOut[amountsOut.length - 1]);
|
|
64349
|
-
})
|
|
64350
|
+
})
|
|
64351
|
+
.catch(()=>resolve());
|
|
64350
64352
|
})
|
|
64351
64353
|
};
|
|
64352
64354
|
|
|
@@ -70411,9 +70413,9 @@
|
|
|
70411
70413
|
})
|
|
70412
70414
|
};
|
|
70413
70415
|
|
|
70414
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
70416
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
70415
70417
|
|
|
70416
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
70418
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
70417
70419
|
var PaymentRoutingProvider = (function (props) {
|
|
70418
70420
|
var _useState = react.useState(),
|
|
70419
70421
|
_useState2 = _slicedToArray(_useState, 2),
|
package/dist/umd/index.js
CHANGED
|
@@ -49,17 +49,11 @@
|
|
|
49
49
|
function _typeof(obj) {
|
|
50
50
|
"@babel/helpers - typeof";
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
_typeof = function _typeof(obj) {
|
|
58
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return _typeof(obj);
|
|
52
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
53
|
+
return typeof obj;
|
|
54
|
+
} : function (obj) {
|
|
55
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
56
|
+
}, _typeof(obj);
|
|
63
57
|
}
|
|
64
58
|
|
|
65
59
|
function createCommonjsModule(fn) {
|
|
@@ -1310,6 +1304,9 @@
|
|
|
1310
1304
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
1311
1305
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
1312
1306
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
1307
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
1308
|
+
writable: false
|
|
1309
|
+
});
|
|
1313
1310
|
return Constructor;
|
|
1314
1311
|
}
|
|
1315
1312
|
|
|
@@ -1327,12 +1324,15 @@
|
|
|
1327
1324
|
throw new TypeError("Super expression must either be null or a function");
|
|
1328
1325
|
}
|
|
1329
1326
|
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1327
|
+
Object.defineProperty(subClass, "prototype", {
|
|
1328
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
1329
|
+
constructor: {
|
|
1330
|
+
value: subClass,
|
|
1331
|
+
writable: true,
|
|
1332
|
+
configurable: true
|
|
1333
|
+
}
|
|
1334
|
+
}),
|
|
1335
|
+
writable: false
|
|
1336
1336
|
});
|
|
1337
1337
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
1338
1338
|
}
|
|
@@ -1707,7 +1707,7 @@
|
|
|
1707
1707
|
});
|
|
1708
1708
|
|
|
1709
1709
|
var PoweredByStyle = (function (style) {
|
|
1710
|
-
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
1710
|
+
return "\n\n .PoweredByWrapper {\n display: block;\n left: 0;\n padding-top: 0.2rem;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n }\n\n .PoweredByLink {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\" !important;\n color: white;\n opacity: 0.4;\n display: inline-block;\n font-size: 0.78rem;\n font-style: italic;\n font-weight: bold;\n letter-spacing: -0.2px;\n margin-left: 0.5rem;\n text-decoration: none;\n }\n\n .PoweredByLink:hover, .PoweredByLink:active {\n opacity: 1.0;\n color: ".concat(style.colors.primary, ";\n }\n ");
|
|
1711
1711
|
});
|
|
1712
1712
|
|
|
1713
1713
|
var RangeSliderStyle = (function (style) {
|
|
@@ -2417,9 +2417,9 @@
|
|
|
2417
2417
|
return obj;
|
|
2418
2418
|
}
|
|
2419
2419
|
|
|
2420
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
2420
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2421
2421
|
|
|
2422
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
2422
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2423
2423
|
var PaymentRoutingProvider = (function (props) {
|
|
2424
2424
|
var _useState = React.useState(),
|
|
2425
2425
|
_useState2 = _slicedToArray(_useState, 2),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/widgets",
|
|
3
3
|
"moduleName": "DePayWidgets",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.3",
|
|
5
5
|
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
7
7
|
"files": [
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@depay/web3-blockchains": "^3.0.0",
|
|
42
42
|
"@depay/web3-client": "^7.2.0",
|
|
43
43
|
"@depay/web3-constants": "^4.0.1",
|
|
44
|
-
"@depay/web3-exchanges": "^7.1.
|
|
45
|
-
"@depay/web3-payments": "^7.0.
|
|
44
|
+
"@depay/web3-exchanges": "^7.1.2",
|
|
45
|
+
"@depay/web3-payments": "^7.0.2",
|
|
46
46
|
"@depay/web3-tokens": "^7.2.0",
|
|
47
47
|
"@depay/web3-wallets": "^6.1.0",
|
|
48
48
|
"decimal.js": "^10.3.1",
|