Ui 2 js build fixes (#6176)
* Update API reference * Deprecation warning * Add missing parity-reactive-ui * Add dapps to packages/dapps * Add parity.js dependency
This commit is contained in:
parent
e70d5c52e4
commit
4000ec681f
93
js/package-lock.json
generated
93
js/package-lock.json
generated
@ -5,39 +5,64 @@
|
|||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@parity/abi": {
|
"@parity/abi": {
|
||||||
"version": "github:paritytech/js-abi#a1021ca5b7550e1e24e4767a22ef3f0d95ead19a",
|
"version": "github:paritytech/js-abi#414765a476d88b6fb9f3398c99a946021957d07a",
|
||||||
"requires": {
|
"requires": {
|
||||||
"bignumber.js": "3.0.1",
|
"bignumber.js": "3.0.1",
|
||||||
"js-sha3": "0.5.5"
|
"js-sha3": "0.5.5",
|
||||||
|
"utf8": "2.1.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@parity/api": {
|
"@parity/api": {
|
||||||
"version": "github:paritytech/js-api#418ee49849a5361ad3c416b224fd9bb6dbabc1d1",
|
"version": "github:paritytech/js-api#1c7cc5561c4e8db0d0b58f22d8bc8baa243909a5",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@parity/abi": "github:paritytech/js-abi#a1021ca5b7550e1e24e4767a22ef3f0d95ead19a",
|
"@parity/abi": "github:paritytech/js-abi#414765a476d88b6fb9f3398c99a946021957d07a",
|
||||||
"@parity/jsonrpc": "github:paritytech/js-jsonrpc#ac545573880212a27cf4cc6bb32a37fdab6dc26d",
|
"@parity/jsonrpc": "github:paritytech/js-jsonrpc#89a6e441370f55d8fe995e27007f60da29b6672b",
|
||||||
|
"@parity/wordlist": "1.1.0",
|
||||||
"bignumber.js": "3.0.1",
|
"bignumber.js": "3.0.1",
|
||||||
"blockies": "0.0.2",
|
"blockies": "0.0.2",
|
||||||
"es6-error": "4.0.0",
|
"es6-error": "4.0.0",
|
||||||
"ethereumjs-tx": "1.2.5",
|
"ethereumjs-tx": "1.3.3",
|
||||||
"eventemitter3": "2.0.2",
|
"eventemitter3": "2.0.3",
|
||||||
|
"isomorphic-fetch": "2.2.1",
|
||||||
"js-sha3": "0.5.5",
|
"js-sha3": "0.5.5",
|
||||||
"keythereum": "0.4.6",
|
"keythereum": "0.4.6",
|
||||||
|
"lodash": "4.17.4",
|
||||||
"node-fetch": "1.6.3",
|
"node-fetch": "1.6.3",
|
||||||
"secp256k1": "3.2.5"
|
"secp256k1": "3.2.5",
|
||||||
|
"store": "2.0.12"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@parity/wordlist": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@parity/wordlist/-/wordlist-1.1.0.tgz",
|
||||||
|
"integrity": "sha1-np7Tq3g39WM7WETmCjVenmPkJ64="
|
||||||
|
},
|
||||||
|
"lodash": {
|
||||||
|
"version": "4.17.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz",
|
||||||
|
"integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4="
|
||||||
|
},
|
||||||
|
"store": {
|
||||||
|
"version": "2.0.12",
|
||||||
|
"resolved": "https://registry.npmjs.org/store/-/store-2.0.12.tgz",
|
||||||
|
"integrity": "sha1-jFNOKguDH3K3X8XxEZhXxE711ZM="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@parity/dapp-account": {
|
"@parity/dapp-account": {
|
||||||
"version": "file:packages/dapp-account",
|
"version": "file:packages/dapp-account",
|
||||||
"requires": {
|
"requires": {
|
||||||
|
"@parity/parity.js": "1.8.7",
|
||||||
"oo7": "0.5.3",
|
"oo7": "0.5.3",
|
||||||
"oo7-parity": "0.6.8",
|
"oo7-parity": "0.6.8",
|
||||||
"oo7-react": "0.4.5"
|
"oo7-react": "0.4.5",
|
||||||
|
"parity-reactive-ui": "0.4.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@parity/dapp-develop": {
|
"@parity/dapp-develop": {
|
||||||
"version": "file:packages/dapp-develop",
|
"version": "file:packages/dapp-develop",
|
||||||
"requires": {
|
"requires": {
|
||||||
|
"@parity/parity.js": "1.8.7",
|
||||||
"oo7": "0.5.3",
|
"oo7": "0.5.3",
|
||||||
"oo7-parity": "0.6.8",
|
"oo7-parity": "0.6.8",
|
||||||
"oo7-react": "0.4.5",
|
"oo7-react": "0.4.5",
|
||||||
@ -47,6 +72,8 @@
|
|||||||
"@parity/dapps": {
|
"@parity/dapps": {
|
||||||
"version": "file:packages/dapps",
|
"version": "file:packages/dapps",
|
||||||
"requires": {
|
"requires": {
|
||||||
|
"@parity/dapp-account": "file:packages/dapp-account",
|
||||||
|
"@parity/dapp-develop": "file:packages/dapp-develop",
|
||||||
"base32.js": "0.1.0",
|
"base32.js": "0.1.0",
|
||||||
"bytes": "2.4.0",
|
"bytes": "2.4.0",
|
||||||
"format-number": "2.0.1",
|
"format-number": "2.0.1",
|
||||||
@ -73,7 +100,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@parity/jsonrpc": {
|
"@parity/jsonrpc": {
|
||||||
"version": "github:paritytech/js-jsonrpc#ac545573880212a27cf4cc6bb32a37fdab6dc26d"
|
"version": "github:paritytech/js-jsonrpc#89a6e441370f55d8fe995e27007f60da29b6672b"
|
||||||
},
|
},
|
||||||
"@parity/ledger": {
|
"@parity/ledger": {
|
||||||
"version": "file:packages/ledger"
|
"version": "file:packages/ledger"
|
||||||
@ -117,7 +144,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@parity/ui": {
|
"@parity/ui": {
|
||||||
"version": "github:paritytech/js-ui#164c08e1aec4a009dcd559764a746b1cc06c4b22",
|
"version": "github:paritytech/js-ui#315bec33a621184db1bd235f115f8f24e8c63192",
|
||||||
"requires": {
|
"requires": {
|
||||||
"bignumber.js": "3.0.1",
|
"bignumber.js": "3.0.1",
|
||||||
"brace": "0.9.0",
|
"brace": "0.9.0",
|
||||||
@ -137,14 +164,15 @@
|
|||||||
"react-portal": "3.0.0",
|
"react-portal": "3.0.0",
|
||||||
"react-qr-reader": "1.1.3",
|
"react-qr-reader": "1.1.3",
|
||||||
"recharts": "0.15.2",
|
"recharts": "0.15.2",
|
||||||
"semantic-ui-css": "2.2.10",
|
"semantic-ui-css": "2.2.11",
|
||||||
"semantic-ui-react": "0.68.2",
|
"semantic-ui-react": "0.71.2",
|
||||||
"zxcvbn": "4.4.1"
|
"zxcvbn": "4.4.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"babel-runtime": {
|
"babel-runtime": {
|
||||||
"version": "6.25.0",
|
"version": "6.25.0",
|
||||||
"bundled": true,
|
"resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.25.0.tgz",
|
||||||
|
"integrity": "sha1-M7mOql1IK7AajRqmtDetKwGuxBw=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"core-js": "2.4.1",
|
"core-js": "2.4.1",
|
||||||
"regenerator-runtime": "0.10.5"
|
"regenerator-runtime": "0.10.5"
|
||||||
@ -152,21 +180,16 @@
|
|||||||
},
|
},
|
||||||
"prop-types": {
|
"prop-types": {
|
||||||
"version": "15.5.8",
|
"version": "15.5.8",
|
||||||
"bundled": true,
|
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.5.8.tgz",
|
||||||
|
"integrity": "sha1-a3suFBCDvjjIWVqlH8VXdccZk5Q=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"fbjs": "0.8.14"
|
"fbjs": "0.8.14"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"semantic-ui-css": {
|
|
||||||
"version": "2.2.10",
|
|
||||||
"bundled": true,
|
|
||||||
"requires": {
|
|
||||||
"jquery": "3.2.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"semantic-ui-react": {
|
"semantic-ui-react": {
|
||||||
"version": "0.68.2",
|
"version": "0.71.2",
|
||||||
"bundled": true,
|
"resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-0.71.2.tgz",
|
||||||
|
"integrity": "sha512-aWkmGnhhdPGwRbtWVuhQV3QQvaoO8ZOrc5g0deW9Q/6J90Le1V5MC1LZTnwrrtUfV7rnEozwaunjZGftYsmG+w==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"babel-runtime": "6.25.0",
|
"babel-runtime": "6.25.0",
|
||||||
"classnames": "2.2.5",
|
"classnames": "2.2.5",
|
||||||
@ -4431,9 +4454,9 @@
|
|||||||
"integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
|
"integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
|
||||||
},
|
},
|
||||||
"depd": {
|
"depd": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz",
|
||||||
"integrity": "sha1-4b2Cxqq2ztlluXuIsX7T5SjKGMM=",
|
"integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"des.js": {
|
"des.js": {
|
||||||
@ -5284,9 +5307,9 @@
|
|||||||
"integrity": "sha1-L9w1dvIykDNYl26znaeDIT/5Uj8="
|
"integrity": "sha1-L9w1dvIykDNYl26znaeDIT/5Uj8="
|
||||||
},
|
},
|
||||||
"ethereumjs-tx": {
|
"ethereumjs-tx": {
|
||||||
"version": "1.2.5",
|
"version": "1.3.3",
|
||||||
"resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-1.2.5.tgz",
|
"resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-1.3.3.tgz",
|
||||||
"integrity": "sha1-7TbX/+uXvIicYe7xq3b0emE9goY=",
|
"integrity": "sha1-7OBR0+/b53GtKlGNYWMsoqt17Ls=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"ethereum-common": "0.0.18",
|
"ethereum-common": "0.0.18",
|
||||||
"ethereumjs-util": "5.1.2"
|
"ethereumjs-util": "5.1.2"
|
||||||
@ -5360,9 +5383,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eventemitter3": {
|
"eventemitter3": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-2.0.3.tgz",
|
||||||
"integrity": "sha1-IM5IkZCc6fNbCIyU+rQOLJb0c6w="
|
"integrity": "sha1-teEHm1n7XhuidxwKmTvgYKWMmbo="
|
||||||
},
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
@ -5484,7 +5507,7 @@
|
|||||||
"cookie": "0.3.1",
|
"cookie": "0.3.1",
|
||||||
"cookie-signature": "1.0.6",
|
"cookie-signature": "1.0.6",
|
||||||
"debug": "2.2.0",
|
"debug": "2.2.0",
|
||||||
"depd": "1.1.0",
|
"depd": "1.1.1",
|
||||||
"encodeurl": "1.0.1",
|
"encodeurl": "1.0.1",
|
||||||
"escape-html": "1.0.3",
|
"escape-html": "1.0.3",
|
||||||
"etag": "1.7.0",
|
"etag": "1.7.0",
|
||||||
@ -13403,7 +13426,7 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"debug": "2.2.0",
|
"debug": "2.2.0",
|
||||||
"depd": "1.1.0",
|
"depd": "1.1.1",
|
||||||
"destroy": "1.0.4",
|
"destroy": "1.0.4",
|
||||||
"encodeurl": "1.0.1",
|
"encodeurl": "1.0.1",
|
||||||
"escape-html": "1.0.3",
|
"escape-html": "1.0.3",
|
||||||
|
@ -160,7 +160,7 @@
|
|||||||
"yargs": "6.6.0"
|
"yargs": "6.6.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@parity/api": "paritytech/js-api#418ee49849a5361ad3c416b224fd9bb6dbabc1d1",
|
"@parity/api": "paritytech/js-api#1c7cc5561c4e8db0d0b58f22d8bc8baa243909a5",
|
||||||
"@parity/dapps": "file:packages/dapps",
|
"@parity/dapps": "file:packages/dapps",
|
||||||
"@parity/etherscan": "file:packages/etherscan",
|
"@parity/etherscan": "file:packages/etherscan",
|
||||||
"@parity/ledger": "file:packages/ledger",
|
"@parity/ledger": "file:packages/ledger",
|
||||||
|
@ -15,9 +15,11 @@
|
|||||||
"scripts": {},
|
"scripts": {},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@parity/parity.js": "1.8.7",
|
||||||
"oo7": "0.5.3",
|
"oo7": "0.5.3",
|
||||||
"oo7-parity": "0.6.8",
|
"oo7-parity": "0.6.8",
|
||||||
"oo7-react": "0.4.5"
|
"oo7-react": "0.4.5",
|
||||||
|
"parity-reactive-ui": "0.4.5"
|
||||||
},
|
},
|
||||||
"peerDependencies": {}
|
"peerDependencies": {}
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
"scripts": {},
|
"scripts": {},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@parity/parity.js": "1.8.7",
|
||||||
"oo7": "0.5.3",
|
"oo7": "0.5.3",
|
||||||
"oo7-parity": "0.6.8",
|
"oo7-parity": "0.6.8",
|
||||||
"oo7-react": "0.4.5",
|
"oo7-react": "0.4.5",
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
"scripts": {},
|
"scripts": {},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@parity/dapp-account": "file:../dapp-account",
|
||||||
|
"@parity/dapp-develop": "file:../dapp-develop",
|
||||||
"base32.js": "0.1.0",
|
"base32.js": "0.1.0",
|
||||||
"bytes": "2.4.0",
|
"bytes": "2.4.0",
|
||||||
"format-number": "2.0.1",
|
"format-number": "2.0.1",
|
||||||
|
@ -37,12 +37,12 @@ function initProvider () {
|
|||||||
|
|
||||||
const ethereum = new Api.Provider.PostMessage(appId);
|
const ethereum = new Api.Provider.PostMessage(appId);
|
||||||
|
|
||||||
console.log(`Requesting communications token for ${appId}`);
|
console.log(`Requesting API communications token for ${appId}`);
|
||||||
|
|
||||||
ethereum
|
ethereum
|
||||||
.requestNewToken()
|
.requestNewToken()
|
||||||
.then((tokenId) => {
|
.then((tokenId) => {
|
||||||
console.log(`Received new communications token ${tokenId}`);
|
console.log(`Received API communications token ${tokenId}`);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Unable to retrieve communications token', error);
|
console.error('Unable to retrieve communications token', error);
|
||||||
@ -85,3 +85,5 @@ const ethereum = initProvider();
|
|||||||
|
|
||||||
initWeb3(ethereum);
|
initWeb3(ethereum);
|
||||||
initParity(ethereum);
|
initParity(ethereum);
|
||||||
|
|
||||||
|
console.warn('Deprecation: Dapps should only used the exposed EthereumProvider on `window.ethereum`, the use of `window.parity` and `window.web3` will be removed in future versions of this injector');
|
||||||
|
@ -153,11 +153,11 @@ module.exports = {
|
|||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'~/packages/api/local': path.resolve(__dirname, '../node_modules/@parity/api/local/localAccountsMiddleware.js'),
|
|
||||||
'~': path.resolve(__dirname, '..'),
|
'~': path.resolve(__dirname, '..'),
|
||||||
'@parity/abi': path.resolve(__dirname, '../node_modules/@parity/abi'),
|
'@parity/abi': path.resolve(__dirname, '../node_modules/@parity/abi'),
|
||||||
'@parity/api': path.resolve(__dirname, '../node_modules/@parity/api'),
|
'@parity/api': path.resolve(__dirname, '../node_modules/@parity/api'),
|
||||||
'@parity/jsonrpc': path.resolve(__dirname, '../node_modules/@parity/jsonrpc'),
|
'@parity/jsonrpc': path.resolve(__dirname, '../node_modules/@parity/jsonrpc'),
|
||||||
|
'@parity/parity.js': path.resolve(__dirname, '../node_modules/@parity/parity.js'),
|
||||||
'@parity/shared': path.resolve(__dirname, '../node_modules/@parity/shared'),
|
'@parity/shared': path.resolve(__dirname, '../node_modules/@parity/shared'),
|
||||||
'@parity/ui': path.resolve(__dirname, '../node_modules/@parity/ui'),
|
'@parity/ui': path.resolve(__dirname, '../node_modules/@parity/ui'),
|
||||||
'@parity/wordlist': path.resolve(__dirname, '../node_modules/@parity/wordlist'),
|
'@parity/wordlist': path.resolve(__dirname, '../node_modules/@parity/wordlist'),
|
||||||
|
@ -42,7 +42,6 @@ module.exports = {
|
|||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'~/packages/api/local': path.resolve(__dirname, '../node_modules/@parity/api/local/index.js'),
|
|
||||||
'~': path.resolve(__dirname, '..'),
|
'~': path.resolve(__dirname, '..'),
|
||||||
'@parity/abi': path.resolve(__dirname, '../node_modules/@parity/abi'),
|
'@parity/abi': path.resolve(__dirname, '../node_modules/@parity/abi'),
|
||||||
'@parity/api': path.resolve(__dirname, '../node_modules/@parity/api'),
|
'@parity/api': path.resolve(__dirname, '../node_modules/@parity/api'),
|
||||||
|
Loading…
Reference in New Issue
Block a user