@depay/widgets 6.30.2 → 6.31.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/README.md +15 -6
- package/dist/esm/index.bundle.js +19 -28
- package/dist/esm/index.js +41 -10
- package/dist/umd/index.bundle.js +19 -28
- package/dist/umd/index.js +41 -10
- package/package.json +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -82,7 +82,7 @@ function _typeof(obj) {
|
|
|
82
82
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
var regeneratorRuntime = createCommonjsModule(function (module) {
|
|
85
|
+
var regeneratorRuntime$1 = createCommonjsModule(function (module) {
|
|
86
86
|
var _typeof = _typeof_1["default"];
|
|
87
87
|
|
|
88
88
|
function _regeneratorRuntime() {
|
|
@@ -438,7 +438,21 @@ function _regeneratorRuntime() {
|
|
|
438
438
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
439
439
|
});
|
|
440
440
|
|
|
441
|
-
|
|
441
|
+
// TODO(Babel 8): Remove this file.
|
|
442
|
+
|
|
443
|
+
var runtime = regeneratorRuntime$1();
|
|
444
|
+
var regenerator = runtime;
|
|
445
|
+
|
|
446
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
447
|
+
try {
|
|
448
|
+
regeneratorRuntime = runtime;
|
|
449
|
+
} catch (accidentalStrictMode) {
|
|
450
|
+
if (typeof globalThis === "object") {
|
|
451
|
+
globalThis.regeneratorRuntime = runtime;
|
|
452
|
+
} else {
|
|
453
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
442
456
|
|
|
443
457
|
function _arrayWithHoles(arr) {
|
|
444
458
|
if (Array.isArray(arr)) return arr;
|
|
@@ -962,11 +976,10 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
962
976
|
}
|
|
963
977
|
|
|
964
978
|
function _setPrototypeOf(o, p) {
|
|
965
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
979
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
966
980
|
o.__proto__ = p;
|
|
967
981
|
return o;
|
|
968
982
|
};
|
|
969
|
-
|
|
970
983
|
return _setPrototypeOf(o, p);
|
|
971
984
|
}
|
|
972
985
|
|
|
@@ -1007,7 +1020,7 @@ function _possibleConstructorReturn(self, call) {
|
|
|
1007
1020
|
}
|
|
1008
1021
|
|
|
1009
1022
|
function _getPrototypeOf(o) {
|
|
1010
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
1023
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
1011
1024
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
1012
1025
|
};
|
|
1013
1026
|
return _getPrototypeOf(o);
|
|
@@ -1405,7 +1418,7 @@ var styleRenderer = (function (style) {
|
|
|
1405
1418
|
},
|
|
1406
1419
|
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
1407
1420
|
}, style);
|
|
1408
|
-
return [ResetStyle(), DialogStyle(), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(style), GraphicStyle(), SkeletonStyle(), TokenAmountStyle(), TextStyle(style), FontStyle(style), IconStyle(style), OpacityStyle(), PaddingStyle(), HeightStyle(), LoadingTextStyle(style), RangeSliderStyle(style), InputStyle(), TextButtonStyle(style), ImageStyle(), BlockchainLogoStyle(), SearchStyle(style), TokenImageStyle(), AlertStyle(), TableStyle(), LinkStyle(style), TooltipStyle(style)].join('');
|
|
1421
|
+
return [ResetStyle(), DialogStyle(style), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(style), GraphicStyle(), SkeletonStyle(), TokenAmountStyle(), TextStyle(style), FontStyle(style), IconStyle(style), OpacityStyle(style), PaddingStyle(), HeightStyle(), LoadingTextStyle(style), RangeSliderStyle(style), InputStyle(style), TextButtonStyle(style), ImageStyle(style), BlockchainLogoStyle(style), SearchStyle(style), TokenImageStyle(style), AlertStyle(style), TableStyle(style), LinkStyle(style), TooltipStyle(style)].join('');
|
|
1409
1422
|
});
|
|
1410
1423
|
|
|
1411
1424
|
var mount = (function (_ref, content) {
|
|
@@ -3225,6 +3238,7 @@ var DonationOverviewDialog = (function (props) {
|
|
|
3225
3238
|
return /*#__PURE__*/React.createElement(DonationOverviewSkeleton, null);
|
|
3226
3239
|
}
|
|
3227
3240
|
|
|
3241
|
+
var blockchain = Blockchain.findByName(payment.blockchain);
|
|
3228
3242
|
return /*#__PURE__*/React.createElement(Dialog$1, {
|
|
3229
3243
|
header: /*#__PURE__*/React.createElement("div", {
|
|
3230
3244
|
className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
|
|
@@ -3274,6 +3288,11 @@ var DonationOverviewDialog = (function (props) {
|
|
|
3274
3288
|
}, /*#__PURE__*/React.createElement(TokenImage, {
|
|
3275
3289
|
blockchain: payment.route.blockchain,
|
|
3276
3290
|
address: payment.token
|
|
3291
|
+
}), /*#__PURE__*/React.createElement("img", {
|
|
3292
|
+
className: "BlockchainLogo small",
|
|
3293
|
+
src: blockchain.logo,
|
|
3294
|
+
alt: blockchain.label,
|
|
3295
|
+
title: blockchain.label
|
|
3277
3296
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3278
3297
|
className: "CardBody"
|
|
3279
3298
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -3931,7 +3950,7 @@ var preflight$2 = /*#__PURE__*/function () {
|
|
|
3931
3950
|
throw 'You need to set the blockchain you want to receive the donation on!';
|
|
3932
3951
|
}
|
|
3933
3952
|
|
|
3934
|
-
if (!['ethereum', 'bsc'].includes(configuration.blockchain)) {
|
|
3953
|
+
if (!['ethereum', 'bsc', 'polygon'].includes(configuration.blockchain)) {
|
|
3935
3954
|
throw 'You need to set a supported blockchain!';
|
|
3936
3955
|
}
|
|
3937
3956
|
|
|
@@ -4316,6 +4335,7 @@ var PaymentOverviewDialog = (function (props) {
|
|
|
4316
4335
|
return /*#__PURE__*/React.createElement(PaymentOverviewSkeleton, null);
|
|
4317
4336
|
}
|
|
4318
4337
|
|
|
4338
|
+
var blockchain = Blockchain.findByName(payment.blockchain);
|
|
4319
4339
|
return /*#__PURE__*/React.createElement(Dialog$1, {
|
|
4320
4340
|
header: /*#__PURE__*/React.createElement("div", {
|
|
4321
4341
|
className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
|
|
@@ -4365,6 +4385,11 @@ var PaymentOverviewDialog = (function (props) {
|
|
|
4365
4385
|
}, /*#__PURE__*/React.createElement(TokenImage, {
|
|
4366
4386
|
blockchain: payment.blockchain,
|
|
4367
4387
|
address: payment.token
|
|
4388
|
+
}), /*#__PURE__*/React.createElement("img", {
|
|
4389
|
+
className: "BlockchainLogo small",
|
|
4390
|
+
src: blockchain.logo,
|
|
4391
|
+
alt: blockchain.label,
|
|
4392
|
+
title: blockchain.label
|
|
4368
4393
|
})), /*#__PURE__*/React.createElement("div", {
|
|
4369
4394
|
className: "CardBody"
|
|
4370
4395
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -4435,7 +4460,7 @@ var preflight$1 = /*#__PURE__*/function () {
|
|
|
4435
4460
|
throw 'You need to set the blockchain your want to receive the payment on!';
|
|
4436
4461
|
}
|
|
4437
4462
|
|
|
4438
|
-
if (!['ethereum', 'bsc'].includes(configuration.blockchain)) {
|
|
4463
|
+
if (!['ethereum', 'bsc', 'polygon'].includes(configuration.blockchain)) {
|
|
4439
4464
|
throw 'You need to set a supported blockchain!';
|
|
4440
4465
|
}
|
|
4441
4466
|
|
|
@@ -4754,6 +4779,7 @@ var SaleOverviewDialog = (function (props) {
|
|
|
4754
4779
|
});
|
|
4755
4780
|
}
|
|
4756
4781
|
|
|
4782
|
+
var blockchain = Blockchain.findByName(payment.blockchain);
|
|
4757
4783
|
return /*#__PURE__*/React.createElement(Dialog$1, {
|
|
4758
4784
|
header: /*#__PURE__*/React.createElement("div", {
|
|
4759
4785
|
className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
|
|
@@ -4775,7 +4801,12 @@ var SaleOverviewDialog = (function (props) {
|
|
|
4775
4801
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4776
4802
|
className: "CardImage",
|
|
4777
4803
|
title: payment.name
|
|
4778
|
-
}, tokenImageElement
|
|
4804
|
+
}, tokenImageElement, /*#__PURE__*/React.createElement("img", {
|
|
4805
|
+
className: "BlockchainLogo small",
|
|
4806
|
+
src: blockchain.logo,
|
|
4807
|
+
alt: blockchain.label,
|
|
4808
|
+
title: blockchain.label
|
|
4809
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
4779
4810
|
className: "CardBody"
|
|
4780
4811
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4781
4812
|
className: "CardBodyWrapper"
|
|
@@ -5145,7 +5176,7 @@ var SelectBlockchainDialog = (function (props) {
|
|
|
5145
5176
|
navigate = _useContext2.navigate;
|
|
5146
5177
|
|
|
5147
5178
|
var stacked = Object.keys(props.selection).length > 1;
|
|
5148
|
-
var blockchains = [Blockchain.findByName('ethereum'), Blockchain.findByName('bsc')];
|
|
5179
|
+
var blockchains = [Blockchain.findByName('ethereum'), Blockchain.findByName('bsc'), Blockchain.findByName('polygon')];
|
|
5149
5180
|
|
|
5150
5181
|
var selectBlockchain = function selectBlockchain(blockchain) {
|
|
5151
5182
|
setSelection(Object.assign(props.selection, {
|