@depay/widgets 5.0.4 → 6.0.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.
- package/README.md +6 -6
- package/dist/{es → esm}/index.bundle.js +17 -42
- package/dist/{es → esm}/index.js +6 -29
- package/dist/umd/index.bundle.js +17 -42
- package/dist/umd/index.js +6 -29
- package/package.json +11 -10
- package/dist/cjs/index.bundle.js +0 -74205
- package/dist/cjs/index.js +0 -4496
package/dist/umd/index.js
CHANGED
|
@@ -1114,8 +1114,10 @@
|
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
1116
|
var walletCards = availableWallets.map(function (wallet, index) {
|
|
1117
|
-
return /*#__PURE__*/React__default$1["default"].createElement("
|
|
1117
|
+
return /*#__PURE__*/React__default$1["default"].createElement("div", {
|
|
1118
1118
|
key: index,
|
|
1119
|
+
className: "PaddingBottomXS"
|
|
1120
|
+
}, /*#__PURE__*/React__default$1["default"].createElement("button", {
|
|
1119
1121
|
className: "Card small",
|
|
1120
1122
|
title: "Connect ".concat(wallet.name),
|
|
1121
1123
|
onClick: function onClick() {
|
|
@@ -1131,7 +1133,7 @@
|
|
|
1131
1133
|
className: "CardBodyWrapper PaddingLeftXS"
|
|
1132
1134
|
}, /*#__PURE__*/React__default$1["default"].createElement("h2", {
|
|
1133
1135
|
className: "CardText FontWeightBold"
|
|
1134
|
-
}, wallet.name))));
|
|
1136
|
+
}, wallet.name)))));
|
|
1135
1137
|
});
|
|
1136
1138
|
return /*#__PURE__*/React__default$1["default"].createElement(Dialog$1, {
|
|
1137
1139
|
header: /*#__PURE__*/React__default$1["default"].createElement("div", {
|
|
@@ -1816,36 +1818,11 @@
|
|
|
1816
1818
|
|
|
1817
1819
|
return new Promise( /*#__PURE__*/function () {
|
|
1818
1820
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(resolve, reject) {
|
|
1819
|
-
var wallet, accounts;
|
|
1820
1821
|
return regenerator.wrap(function _callee$(_context) {
|
|
1821
1822
|
while (1) {
|
|
1822
1823
|
switch (_context.prev = _context.next) {
|
|
1823
1824
|
case 0:
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
if (!wallet) {
|
|
1827
|
-
_context.next = 7;
|
|
1828
|
-
break;
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
_context.next = 4;
|
|
1832
|
-
return wallet.accounts();
|
|
1833
|
-
|
|
1834
|
-
case 4:
|
|
1835
|
-
accounts = _context.sent;
|
|
1836
|
-
|
|
1837
|
-
if (!(accounts instanceof Array && accounts.length > 0)) {
|
|
1838
|
-
_context.next = 7;
|
|
1839
|
-
break;
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
return _context.abrupt("return", resolve({
|
|
1843
|
-
wallet: wallet,
|
|
1844
|
-
accounts: accounts,
|
|
1845
|
-
account: accounts[0]
|
|
1846
|
-
}));
|
|
1847
|
-
|
|
1848
|
-
case 7:
|
|
1825
|
+
web3Wallets.getWallet();
|
|
1849
1826
|
mount({
|
|
1850
1827
|
style: style,
|
|
1851
1828
|
document: ensureDocument(document)
|
|
@@ -1872,7 +1849,7 @@
|
|
|
1872
1849
|
};
|
|
1873
1850
|
});
|
|
1874
1851
|
|
|
1875
|
-
case
|
|
1852
|
+
case 2:
|
|
1876
1853
|
case "end":
|
|
1877
1854
|
return _context.stop();
|
|
1878
1855
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/widgets",
|
|
3
3
|
"moduleName": "DePayWidgets",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.1",
|
|
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
|
-
"main": "./dist/
|
|
6
|
+
"main": "./dist/umd/index.js",
|
|
7
|
+
"module": "./dist/esm/index.js",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist"
|
|
9
10
|
],
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
"author": "DePay",
|
|
21
22
|
"license": "MIT",
|
|
22
23
|
"scripts": {
|
|
23
|
-
"build": "npx rollup --config rollup.module.config.js && npx rollup --config rollup.bundle.config.js",
|
|
24
|
+
"build": "rm -rf dist && npx rollup --config rollup.module.config.js && npx rollup --config rollup.bundle.config.js",
|
|
24
25
|
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
|
|
25
26
|
"lint:fix": "eslint \"src/**/*.{js,ts,tsx}\" --fix",
|
|
26
27
|
"format": "prettier src --write",
|
|
@@ -32,19 +33,19 @@
|
|
|
32
33
|
"test": "yarn test:jest && yarn test:cypress"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@depay/local-currency": "
|
|
36
|
+
"@depay/local-currency": "^2.1.0",
|
|
36
37
|
"@depay/react-dialog-stack": "^3.0.1",
|
|
37
38
|
"@depay/react-shadow-dom": "^3.0.0",
|
|
38
|
-
"@depay/react-token-image": "^2.
|
|
39
|
-
"@depay/walletconnect": "^1.0.
|
|
40
|
-
"@depay/web3-assets": "^
|
|
39
|
+
"@depay/react-token-image": "^2.1.0",
|
|
40
|
+
"@depay/walletconnect-v1": "^1.0.18",
|
|
41
|
+
"@depay/web3-assets": "^5.0.0",
|
|
41
42
|
"@depay/web3-blockchains": "^3.0.0",
|
|
42
43
|
"@depay/web3-client": "^7.2.0",
|
|
43
44
|
"@depay/web3-constants": "^4.0.1",
|
|
44
|
-
"@depay/web3-exchanges": "^
|
|
45
|
-
"@depay/web3-payments": "^
|
|
45
|
+
"@depay/web3-exchanges": "^8.0.0",
|
|
46
|
+
"@depay/web3-payments": "^9.0.2",
|
|
46
47
|
"@depay/web3-tokens": "^7.2.0",
|
|
47
|
-
"@depay/web3-wallets": "^
|
|
48
|
+
"@depay/web3-wallets": "^7.0.0",
|
|
48
49
|
"decimal.js": "^10.3.1",
|
|
49
50
|
"react-rangeslider": "^2.2.0"
|
|
50
51
|
},
|