diff --git a/README.md b/README.md index e1fb74ce..e280716d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ [![polkadotjs](https://img.shields.io/badge/polkadot-js-orange.svg?style=flat-square)](https://polkadot.js.org) ![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square) [![style](https://img.shields.io/badge/code%20style-semistandard-lightgrey.svg?style=flat-square)](https://github.com/Flet/semistandard) -[![npm](https://img.shields.io/npm/v/@polkadot/ui.svg?style=flat-square)](https://www.npmjs.com/package/@polkadot/apps) -[![travis](https://img.shields.io/travis/polkadot-js/ui.svg?style=flat-square)](https://travis-ci.org/polkadot-js/apps) +[![npm](https://img.shields.io/npm/v/@polkadot/ui.svg?style=flat-square)](https://www.npmjs.com/package/@polkadot/ui-identicon) +[![travis](https://img.shields.io/travis/polkadot-js/ui.svg?style=flat-square)](https://travis-ci.com/polkadot-js/ui) [![greenkeeper](https://img.shields.io/badge/greenkeeper-enabled-brightgreen.svg?style=flat-square)](https://greenkeeper.io/) [![dependency](https://img.shields.io/david/polkadot-js/ui.svg?style=flat-square)](https://david-dm.org/polkadot-js/ui) [![devDependency](https://img.shields.io/david/dev/polkadot-js/ui.svg?style=flat-square)](https://david-dm.org/polkadot-js/ui#info=devDependencies) @@ -10,3 +10,11 @@ # @polkadot/ui Basic browser components for creating apps using the polkadot{.js} libraries + +## overview + +The following libraries are currently available + +- [ui-identicon](packages/ui-identicon/) Identity icon generator with address as input +- [ui-keyring](packages/ui-keyring/) A browser-specific wrapper around the base [@polkadot/util-keyring](https://github.com/polkadot-js/util/) library +- [ui-settings](packages/ui-settings/) A browser local stiorage wrapper for app settings & configuration diff --git a/package.json b/package.json index e25dd4b4..aef24f9a 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,8 @@ }, "devDependencies": { "@babel/core": "^7.1.6", - "@polkadot/dev-react": "^0.22.8", - "@polkadot/ts": "^0.1.40", + "@polkadot/dev-react": "^0.22.9", + "@polkadot/ts": "^0.1.41", "empty": "^0.10.1" } } diff --git a/packages/ui-identicon/README.md b/packages/ui-identicon/README.md index 4a1cccde..6853cb7a 100644 --- a/packages/ui-identicon/README.md +++ b/packages/ui-identicon/README.md @@ -13,21 +13,21 @@ import Identicon from '@polkadot/ui-identicon'; ... render () { - // address is an ss58-encoded address or publicKey (hex string or Uint8Array) - const { address } = this.props; - // size is a number, indicating the size (in pixels, 64 as default) + // address is an ss58-encoded address or publicKey (hex string or Uint8Array) + const { address } = this.props; + // size (optional) is a number, indicating the size (in pixels, 64 as default) const size = 32; // theme (optional), depicts the type of icon, either 'polkadot' or 'substrate' (default) const theme = 'polkadot'; - return ( - - ); + /> + ); } ... ``` diff --git a/packages/ui-identicon/package.json b/packages/ui-identicon/package.json index ddc9d785..3b1fff9d 100644 --- a/packages/ui-identicon/package.json +++ b/packages/ui-identicon/package.json @@ -10,9 +10,9 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.1.5", - "@polkadot/keyring": "^0.33.7", + "@polkadot/keyring": "^0.33.8", "@polkadot/ui-settings": "^0.22.3", - "@polkadot/util-crypto": "^0.33.7", + "@polkadot/util-crypto": "^0.33.8", "@types/color": "^3.0.0", "@types/react-copy-to-clipboard": "^4.2.6", "color": "^3.0.0", diff --git a/packages/ui-keyring/package.json b/packages/ui-keyring/package.json index aa76dff7..21068444 100644 --- a/packages/ui-keyring/package.json +++ b/packages/ui-keyring/package.json @@ -11,8 +11,8 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.1.5", - "@polkadot/keyring": "^0.33.7", - "@polkadot/types": "^0.32.23", + "@polkadot/keyring": "^0.33.8", + "@polkadot/types": "^0.32.24", "store": "^2.0.12" } } diff --git a/yarn.lock b/yarn.lock index f8b99728..9063ef56 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1349,15 +1349,15 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== -"@polkadot/dev-react@^0.22.8": - version "0.22.8" - resolved "https://registry.yarnpkg.com/@polkadot/dev-react/-/dev-react-0.22.8.tgz#921e7bbec5222bb2336b2a57c08cf830c35ee853" - integrity sha512-x7eBtUbOtt/8EYnjLO6aWlViSt0lKAlTJohxWdEjom0NGd2ENzZ9Rzem87e7n0C5m9xhjDlP2SH1YVIO+rQHDA== +"@polkadot/dev-react@^0.22.9": + version "0.22.9" + resolved "https://registry.yarnpkg.com/@polkadot/dev-react/-/dev-react-0.22.9.tgz#a45b0caee0f22f3ea08d934d7e81894402b71832" + integrity sha512-nuoUdyQaLFa2b/RO5Fe43qKIN3tvnkhRl5zQH+AM6YH72oqddZgeW7pH/xjFVPcBIu1FsI8nVsmfxKsel31gRw== dependencies: "@babel/core" "^7.1.6" "@babel/plugin-syntax-dynamic-import" "^7.0.0" "@babel/preset-react" "^7.0.0" - "@polkadot/dev" "^0.22.8" + "@polkadot/dev" "^0.22.9" "@types/react" "^16.7.13" "@types/react-dom" "^16.0.11" "@types/styled-components" "^4.1.3" @@ -1388,10 +1388,10 @@ webpack-serve "^2.0.3" worker-loader "^2.0.0" -"@polkadot/dev@^0.22.8": - version "0.22.8" - resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.22.8.tgz#635f370ba7c0e0965838b3385dc9bdda5d47e143" - integrity sha512-crjvBNllleaXIqr+99ru39iJ9sw8ZmLt5xMmP61yet+A4OYwPGHS7fYjh9WmgXVZcrm0zqtzSnfguswvBd1Lzw== +"@polkadot/dev@^0.22.9": + version "0.22.9" + resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.22.9.tgz#4b0e938e0dacc2da66454d35a0dbdd8d3c151512" + integrity sha512-9G5xX5wby/v17ID/Lc1MbIuCBNepjIE/wSpxmFj7Ja1YaQIatroP6lF/oIBBKp4vpXMpYT99WtP9Afs0Zrcm/g== dependencies: "@babel/cli" "^7.1.5" "@babel/core" "^7.1.6" @@ -1430,38 +1430,38 @@ typedoc-plugin-no-inherit "^1.0.2" typescript "^3.2.1" -"@polkadot/keyring@^0.33.7": - version "0.33.7" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.33.7.tgz#800e4ceeb0ab0b2e8e911169628f473b0625605c" - integrity sha512-g4qn06nsnFpQv9w7DqfUpQLzf80wlnInAtFQ/aERCxlHmXcHRBBdil6V0GRZtvpUwHYDCQubzo1cTS8xThB2aQ== +"@polkadot/keyring@^0.33.8": + version "0.33.8" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.33.8.tgz#9891ee36235259237cdeedc21183244af16aa2dd" + integrity sha512-ZNt3mCK0CH73SqnIADH148s1AiRtin2XEqYCLODWRNmqO92a9BEtEBvLRmlkRruZf0E1SgurtaBU6jDVqy5hfw== dependencies: "@babel/runtime" "^7.1.5" - "@polkadot/util" "^0.33.7" - "@polkadot/util-crypto" "^0.33.7" + "@polkadot/util" "^0.33.8" + "@polkadot/util-crypto" "^0.33.8" "@types/bs58" "^3.0.30" bs58 "^4.0.1" -"@polkadot/ts@^0.1.40": - version "0.1.40" - resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.40.tgz#d5e8af7e37a3382165d387c2cddf5930879a4c45" - integrity sha512-OKPToc6z4NnO+i6tNh0GewhFzQZFchn87Iv1IB1AXEqhzN3kRHlYWbnJh+iQ73C0zTwrx7BxmhMyv9pnEJScHQ== +"@polkadot/ts@^0.1.41": + version "0.1.41" + resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.41.tgz#647b44b038f94a7acf76633b25cb72df897872fc" + integrity sha512-/vYpjqKU+QKHNAlFdLgFZAAr54wxQMgIuszZ5BxaayUoq7ukDlvCPhUGQ3fNoyBSEaL7uTCZ/5SVRc363IehoA== -"@polkadot/types@^0.32.23": - version "0.32.23" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.32.23.tgz#415ece266fcb16e08cc4e40df2994f05fabb8998" - integrity sha512-vFK1hmdlDoeXgjnqrzgUL7KeSerFXItvVGGsqdpuGteiYgPGteigrU/3PC4eiMO1yH/6/lhJdDNwbyAsZlphMw== +"@polkadot/types@^0.32.24": + version "0.32.24" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.32.24.tgz#26c63876a3780e733d9a76dfe249c47f23b6d377" + integrity sha512-OjA2+5Azu2ohcG2Ql/mb+EUA2SIywRKTSLVOLodkhP4Ka2Q+wayBnZ2FKiRZb3UuiqCCEOTkeoxnWvKzh6fm9w== dependencies: "@babel/runtime" "^7.1.5" - "@polkadot/keyring" "^0.33.7" - "@polkadot/util" "^0.33.7" + "@polkadot/keyring" "^0.33.8" + "@polkadot/util" "^0.33.8" -"@polkadot/util-crypto@^0.33.7": - version "0.33.7" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.33.7.tgz#420d7c919feb0dd20b353051e033646582f98667" - integrity sha512-xUWGXOZ+4GKABpUjfIk5e4fIH7Ep+XmSTkB3iXUrdMLa1L6DQ2Jk1pX+R4flbNNvowcVgrXwJVTJj6FZ2+2l7A== +"@polkadot/util-crypto@^0.33.8": + version "0.33.8" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.33.8.tgz#14001280248cc2bd6f700b211bfe4e079dc4519b" + integrity sha512-XAK37GiLYBRO7tuLLNCe0nNPPoBK9YqPx5PykQLOLiXcV1iYcgw57WJnTtyf3R34EpSYpygqvTe62+LTWP4DXg== dependencies: "@babel/runtime" "^7.1.5" - "@polkadot/util" "^0.33.7" + "@polkadot/util" "^0.33.8" "@types/bip39" "^2.4.1" bip39 "^2.5.0" blakejs "^1.1.0" @@ -1469,10 +1469,10 @@ tweetnacl "^1.0.0" xxhashjs "^0.2.2" -"@polkadot/util@^0.33.7": - version "0.33.7" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.33.7.tgz#3afd410c98c22d60c73784608037e6384a0b7986" - integrity sha512-5Y76R25Euk7z3VXjk/8xYUXw2l5VSB2WMOj+Iv8Koxi5H+iKWWdqsm8b+r0r9qeTAAvOBjAY12Jay5P8vAVY2A== +"@polkadot/util@^0.33.8": + version "0.33.8" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.33.8.tgz#16ae59e7f8ef390550b99abf167c157dd818e913" + integrity sha512-C+2L2JGmUVO2Vd0VHYFJCZnD4+N4uQ3YKn9YfutscgYuUPnGoxVp+ODsFui2Jmjq7L98AQ/KJDX0AGq0j4Jmhw== dependencies: "@babel/runtime" "^7.1.5" "@types/bn.js" "^4.11.3"