@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/umd/index.js
CHANGED
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
var regeneratorRuntime = createCommonjsModule(function (module) {
|
|
80
|
+
var regeneratorRuntime$1 = createCommonjsModule(function (module) {
|
|
81
81
|
var _typeof = _typeof_1["default"];
|
|
82
82
|
|
|
83
83
|
function _regeneratorRuntime() {
|
|
@@ -433,7 +433,21 @@
|
|
|
433
433
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
434
434
|
});
|
|
435
435
|
|
|
436
|
-
|
|
436
|
+
// TODO(Babel 8): Remove this file.
|
|
437
|
+
|
|
438
|
+
var runtime = regeneratorRuntime$1();
|
|
439
|
+
var regenerator = runtime;
|
|
440
|
+
|
|
441
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
442
|
+
try {
|
|
443
|
+
regeneratorRuntime = runtime;
|
|
444
|
+
} catch (accidentalStrictMode) {
|
|
445
|
+
if (typeof globalThis === "object") {
|
|
446
|
+
globalThis.regeneratorRuntime = runtime;
|
|
447
|
+
} else {
|
|
448
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
437
451
|
|
|
438
452
|
function _arrayWithHoles(arr) {
|
|
439
453
|
if (Array.isArray(arr)) return arr;
|
|
@@ -957,11 +971,10 @@
|
|
|
957
971
|
}
|
|
958
972
|
|
|
959
973
|
function _setPrototypeOf(o, p) {
|
|
960
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
974
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
961
975
|
o.__proto__ = p;
|
|
962
976
|
return o;
|
|
963
977
|
};
|
|
964
|
-
|
|
965
978
|
return _setPrototypeOf(o, p);
|
|
966
979
|
}
|
|
967
980
|
|
|
@@ -1002,7 +1015,7 @@
|
|
|
1002
1015
|
}
|
|
1003
1016
|
|
|
1004
1017
|
function _getPrototypeOf(o) {
|
|
1005
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
1018
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
1006
1019
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
1007
1020
|
};
|
|
1008
1021
|
return _getPrototypeOf(o);
|
|
@@ -1400,7 +1413,7 @@
|
|
|
1400
1413
|
},
|
|
1401
1414
|
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
1402
1415
|
}, style);
|
|
1403
|
-
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('');
|
|
1416
|
+
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('');
|
|
1404
1417
|
});
|
|
1405
1418
|
|
|
1406
1419
|
var mount = (function (_ref, content) {
|
|
@@ -3220,6 +3233,7 @@
|
|
|
3220
3233
|
return /*#__PURE__*/React__default["default"].createElement(DonationOverviewSkeleton, null);
|
|
3221
3234
|
}
|
|
3222
3235
|
|
|
3236
|
+
var blockchain = web3Blockchains.Blockchain.findByName(payment.blockchain);
|
|
3223
3237
|
return /*#__PURE__*/React__default["default"].createElement(Dialog$1, {
|
|
3224
3238
|
header: /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3225
3239
|
className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
|
|
@@ -3269,6 +3283,11 @@
|
|
|
3269
3283
|
}, /*#__PURE__*/React__default["default"].createElement(reactTokenImage.TokenImage, {
|
|
3270
3284
|
blockchain: payment.route.blockchain,
|
|
3271
3285
|
address: payment.token
|
|
3286
|
+
}), /*#__PURE__*/React__default["default"].createElement("img", {
|
|
3287
|
+
className: "BlockchainLogo small",
|
|
3288
|
+
src: blockchain.logo,
|
|
3289
|
+
alt: blockchain.label,
|
|
3290
|
+
title: blockchain.label
|
|
3272
3291
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3273
3292
|
className: "CardBody"
|
|
3274
3293
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3926,7 +3945,7 @@
|
|
|
3926
3945
|
throw 'You need to set the blockchain you want to receive the donation on!';
|
|
3927
3946
|
}
|
|
3928
3947
|
|
|
3929
|
-
if (!['ethereum', 'bsc'].includes(configuration.blockchain)) {
|
|
3948
|
+
if (!['ethereum', 'bsc', 'polygon'].includes(configuration.blockchain)) {
|
|
3930
3949
|
throw 'You need to set a supported blockchain!';
|
|
3931
3950
|
}
|
|
3932
3951
|
|
|
@@ -4311,6 +4330,7 @@
|
|
|
4311
4330
|
return /*#__PURE__*/React__default["default"].createElement(PaymentOverviewSkeleton, null);
|
|
4312
4331
|
}
|
|
4313
4332
|
|
|
4333
|
+
var blockchain = web3Blockchains.Blockchain.findByName(payment.blockchain);
|
|
4314
4334
|
return /*#__PURE__*/React__default["default"].createElement(Dialog$1, {
|
|
4315
4335
|
header: /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4316
4336
|
className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
|
|
@@ -4360,6 +4380,11 @@
|
|
|
4360
4380
|
}, /*#__PURE__*/React__default["default"].createElement(reactTokenImage.TokenImage, {
|
|
4361
4381
|
blockchain: payment.blockchain,
|
|
4362
4382
|
address: payment.token
|
|
4383
|
+
}), /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4384
|
+
className: "BlockchainLogo small",
|
|
4385
|
+
src: blockchain.logo,
|
|
4386
|
+
alt: blockchain.label,
|
|
4387
|
+
title: blockchain.label
|
|
4363
4388
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4364
4389
|
className: "CardBody"
|
|
4365
4390
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4430,7 +4455,7 @@
|
|
|
4430
4455
|
throw 'You need to set the blockchain your want to receive the payment on!';
|
|
4431
4456
|
}
|
|
4432
4457
|
|
|
4433
|
-
if (!['ethereum', 'bsc'].includes(configuration.blockchain)) {
|
|
4458
|
+
if (!['ethereum', 'bsc', 'polygon'].includes(configuration.blockchain)) {
|
|
4434
4459
|
throw 'You need to set a supported blockchain!';
|
|
4435
4460
|
}
|
|
4436
4461
|
|
|
@@ -4749,6 +4774,7 @@
|
|
|
4749
4774
|
});
|
|
4750
4775
|
}
|
|
4751
4776
|
|
|
4777
|
+
var blockchain = web3Blockchains.Blockchain.findByName(payment.blockchain);
|
|
4752
4778
|
return /*#__PURE__*/React__default["default"].createElement(Dialog$1, {
|
|
4753
4779
|
header: /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4754
4780
|
className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
|
|
@@ -4770,7 +4796,12 @@
|
|
|
4770
4796
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4771
4797
|
className: "CardImage",
|
|
4772
4798
|
title: payment.name
|
|
4773
|
-
}, tokenImageElement
|
|
4799
|
+
}, tokenImageElement, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4800
|
+
className: "BlockchainLogo small",
|
|
4801
|
+
src: blockchain.logo,
|
|
4802
|
+
alt: blockchain.label,
|
|
4803
|
+
title: blockchain.label
|
|
4804
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4774
4805
|
className: "CardBody"
|
|
4775
4806
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4776
4807
|
className: "CardBodyWrapper"
|
|
@@ -5140,7 +5171,7 @@
|
|
|
5140
5171
|
navigate = _useContext2.navigate;
|
|
5141
5172
|
|
|
5142
5173
|
var stacked = Object.keys(props.selection).length > 1;
|
|
5143
|
-
var blockchains = [web3Blockchains.Blockchain.findByName('ethereum'), web3Blockchains.Blockchain.findByName('bsc')];
|
|
5174
|
+
var blockchains = [web3Blockchains.Blockchain.findByName('ethereum'), web3Blockchains.Blockchain.findByName('bsc'), web3Blockchains.Blockchain.findByName('polygon')];
|
|
5144
5175
|
|
|
5145
5176
|
var selectBlockchain = function selectBlockchain(blockchain) {
|
|
5146
5177
|
setSelection(Object.assign(props.selection, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/widgets",
|
|
3
3
|
"moduleName": "DePayWidgets",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.31.0",
|
|
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/umd/index.js",
|
|
7
7
|
"module": "./dist/esm/index.js",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@depay/local-currency": "^3.2.2",
|
|
38
38
|
"@depay/react-dialog-stack": "^5.0.1",
|
|
39
39
|
"@depay/react-shadow-dom": "^4.2.0",
|
|
40
|
-
"@depay/react-token-image": "^
|
|
40
|
+
"@depay/react-token-image": "^4.0.0",
|
|
41
41
|
"@depay/walletconnect-v1": "^1.1.0",
|
|
42
|
-
"@depay/web3-assets": "^6.
|
|
43
|
-
"@depay/web3-blockchains": "^4.5.
|
|
42
|
+
"@depay/web3-assets": "^6.3.0",
|
|
43
|
+
"@depay/web3-blockchains": "^4.5.1",
|
|
44
44
|
"@depay/web3-client": "^8.2.1",
|
|
45
45
|
"@depay/web3-constants": "^5.2.1",
|
|
46
|
-
"@depay/web3-exchanges": "^
|
|
47
|
-
"@depay/web3-payments": "^10.
|
|
46
|
+
"@depay/web3-exchanges": "^9.0.0",
|
|
47
|
+
"@depay/web3-payments": "^10.3.1",
|
|
48
48
|
"@depay/web3-tokens": "^8.1.0",
|
|
49
49
|
"@depay/web3-wallets": "^11.0.1",
|
|
50
50
|
"decimal.js": "^10.3.1",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@babel/preset-env": "^7.12.7",
|
|
62
62
|
"@babel/preset-react": "^7.12.7",
|
|
63
63
|
"@cypress/react": "^5.9.1",
|
|
64
|
-
"@depay/web3-mock": "^11.8.
|
|
64
|
+
"@depay/web3-mock": "^11.8.1",
|
|
65
65
|
"@peculiar/webcrypto": "^1.3.3",
|
|
66
66
|
"@rollup/plugin-babel": "^5.3.0",
|
|
67
67
|
"@rollup/plugin-commonjs": "^17.1.0",
|