mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-09 20:11:04 +00:00
@@ -1,5 +1,12 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 0.69.1 Feb 7, 2021
|
||||
|
||||
Changes:
|
||||
|
||||
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 5.6.1
|
||||
|
||||
|
||||
## 0.68.1 Feb 1, 2021
|
||||
|
||||
Changes:
|
||||
|
||||
+4
-4
@@ -29,9 +29,9 @@
|
||||
"test:one": "polkadot-dev-run-test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/dev": "^0.61.24",
|
||||
"@babel/core": "^7.12.13",
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/dev": "^0.61.25",
|
||||
"@polkadot/ts": "^0.3.59",
|
||||
"@types/jest": "^26.0.20",
|
||||
"babel-plugin-transform-vue-template": "^0.4.2",
|
||||
@@ -45,5 +45,5 @@
|
||||
"webpack-cli": "^3.3.12",
|
||||
"webpack-serve": "^3.2.0"
|
||||
},
|
||||
"version": "0.68.1"
|
||||
"version": "0.69.0"
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@polkadot/example-react",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"description": "A very basic example with ui-* & react-* packages",
|
||||
"main": "index.js",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5"
|
||||
"@babel/runtime": "^7.12.13"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@polkadot/example-vue",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"description": "A very basic example with ui-* & vue-* packages",
|
||||
"main": "index.js",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5"
|
||||
"@babel/runtime": "^7.12.13"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "exampleReactNative",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"copy-workspace-packages": "yarn copy-identicon && yarn copy-ui-shared",
|
||||
@@ -12,12 +12,12 @@
|
||||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^5.5.1",
|
||||
"@polkadot/reactnative-identicon": "0.68.1",
|
||||
"@polkadot/ui-keyring": "0.68.1",
|
||||
"@polkadot/ui-settings": "0.68.1",
|
||||
"@polkadot/util": "^5.5.1",
|
||||
"@polkadot/util-crypto": "^5.5.1",
|
||||
"@polkadot/keyring": "^5.6.1",
|
||||
"@polkadot/reactnative-identicon": "0.69.0",
|
||||
"@polkadot/ui-keyring": "0.69.0",
|
||||
"@polkadot/ui-settings": "0.69.0",
|
||||
"@polkadot/util": "^5.6.1",
|
||||
"@polkadot/util-crypto": "^5.6.1",
|
||||
"@react-native-community/async-storage": "^1.12.1",
|
||||
"fast-text-encoding": "^1.0.3",
|
||||
"get-yarn-workspaces": "^1.0.2",
|
||||
@@ -30,8 +30,8 @@
|
||||
"stream-http": "^3.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@babel/core": "^7.12.13",
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@react-native-community/cli-platform-ios": "^4.13.0",
|
||||
"@types/react-test-renderer": "17.0.0",
|
||||
"babel-jest": "^26.6.3",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/react-identicon",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"description": "Renders an SVG picture representing an address",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
@@ -8,12 +8,12 @@
|
||||
"maintainers": [],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/keyring": "^5.5.1",
|
||||
"@polkadot/ui-settings": "0.68.1",
|
||||
"@polkadot/ui-shared": "0.68.1",
|
||||
"@polkadot/util": "^5.5.1",
|
||||
"@polkadot/util-crypto": "^5.5.1",
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/keyring": "^5.6.1",
|
||||
"@polkadot/ui-settings": "0.69.0",
|
||||
"@polkadot/ui-shared": "0.69.0",
|
||||
"@polkadot/util": "^5.6.1",
|
||||
"@polkadot/util-crypto": "^5.6.1",
|
||||
"color": "^3.1.3",
|
||||
"ethereum-blockies-base64": "^1.0.2",
|
||||
"jdenticon": "3.1.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/react-qr",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"description": "Generates and reads QR codes",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
@@ -8,9 +8,9 @@
|
||||
"maintainers": [],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/util": "^5.5.1",
|
||||
"@polkadot/util-crypto": "^5.5.1",
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/util": "^5.6.1",
|
||||
"@polkadot/util-crypto": "^5.6.1",
|
||||
"qrcode-generator": "^1.4.4",
|
||||
"react-qr-reader": "^2.2.1",
|
||||
"styled-components": "^5.2.1"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/reactnative-identicon",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"description": "Renders an SVG picture representing an address",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
@@ -8,10 +8,10 @@
|
||||
"maintainers": [],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/ui-shared": "0.68.1",
|
||||
"@polkadot/util": "^5.5.1",
|
||||
"@polkadot/util-crypto": "^5.5.1",
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/ui-shared": "0.69.0",
|
||||
"@polkadot/util": "^5.6.1",
|
||||
"@polkadot/util-crypto": "^5.6.1",
|
||||
"react-native-svg": "^12.1.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@@ -21,6 +21,6 @@
|
||||
"react-native": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react-native": "^0.63.46"
|
||||
"@types/react-native": "^0.63.48"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@polkadot/ui-assets",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"description": "Static assets shared accross projects",
|
||||
"main": "index.js",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5"
|
||||
"@babel/runtime": "^7.12.13"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/ui-keyring",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"main": "index.js",
|
||||
"sideEffects": [
|
||||
"./detectPackage.js",
|
||||
@@ -12,12 +12,12 @@
|
||||
"contributors": [],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/hw-ledger": "^5.5.1",
|
||||
"@polkadot/keyring": "^5.5.1",
|
||||
"@polkadot/ui-settings": "0.68.1",
|
||||
"@polkadot/util": "^5.5.1",
|
||||
"@polkadot/x-rxjs": "^5.5.1",
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/hw-ledger": "^5.6.1",
|
||||
"@polkadot/keyring": "^5.6.1",
|
||||
"@polkadot/ui-settings": "0.69.0",
|
||||
"@polkadot/util": "^5.6.1",
|
||||
"@polkadot/x-rxjs": "^5.6.1",
|
||||
"mkdirp": "^1.0.4",
|
||||
"store": "^2.0.12"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/ui-settings",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"description": "Manages app settings",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
@@ -8,9 +8,9 @@
|
||||
"maintainers": [],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/networks": "^5.5.1",
|
||||
"@polkadot/util": "^5.5.1",
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/networks": "^5.6.1",
|
||||
"@polkadot/util": "^5.6.1",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"store": "^2.0.12"
|
||||
},
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
// Copyright 2017-2021 @polkadot/ui-settings authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Network } from '@polkadot/networks/types';
|
||||
|
||||
import known from '@polkadot/networks';
|
||||
|
||||
type ChainDef = string[];
|
||||
|
||||
// NOTE This should be fixed by networks 5.7 (also in ss58)
|
||||
interface NetworkNamed extends Network {
|
||||
network: string;
|
||||
}
|
||||
|
||||
const chains: Record <string, ChainDef> = known
|
||||
.filter(({ genesisHash }) => genesisHash.length > 1)
|
||||
.filter((n): n is NetworkNamed => n.genesisHash.length > 0 && !!n.network)
|
||||
.reduce((chains, { genesisHash, network }) => ({ ...chains, [network]: genesisHash }), {});
|
||||
|
||||
export { chains };
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
// Copyright 2017-2021 @polkadot/ui-settings authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Network } from '@polkadot/networks/types';
|
||||
import type { Option } from '../types';
|
||||
|
||||
import { available } from '@polkadot/networks';
|
||||
|
||||
// NOTE This should be fixed by networks 5.7 (also in chains)
|
||||
interface NetworkNamed extends Network {
|
||||
network: string;
|
||||
}
|
||||
|
||||
export const PREFIX_DEFAULT = -1;
|
||||
|
||||
const defaultNetwork: Option = {
|
||||
@@ -13,10 +19,8 @@ const defaultNetwork: Option = {
|
||||
value: -1
|
||||
};
|
||||
|
||||
const networks = available.map(({ displayName, network, prefix }) => ({
|
||||
info: network,
|
||||
text: displayName,
|
||||
value: prefix
|
||||
}));
|
||||
const networks = available
|
||||
.filter((n): n is NetworkNamed => !!n.network)
|
||||
.map(({ displayName, network, prefix }) => ({ info: network, text: displayName, value: prefix }));
|
||||
|
||||
export const PREFIXES: Option[] = [defaultNetwork, ...networks];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/ui-shared",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"description": "Shared logic that is usable accross all frameworks-specific areas",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
@@ -8,7 +8,7 @@
|
||||
"maintainers": [],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"color": "^3.1.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@@ -16,8 +16,8 @@
|
||||
"@polkadot/util-crypto": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util": "^5.5.1",
|
||||
"@polkadot/util-crypto": "^5.5.1",
|
||||
"@polkadot/util": "^5.6.1",
|
||||
"@polkadot/util-crypto": "^5.6.1",
|
||||
"@types/color": "^3.0.1",
|
||||
"@types/xmlserializer": "^0.6.2"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/vue-identicon",
|
||||
"version": "0.68.1",
|
||||
"version": "0.69.0",
|
||||
"description": "Renders an SVG picture representing an address",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
@@ -8,10 +8,10 @@
|
||||
"sideEffects": false,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/ui-shared": "0.68.1",
|
||||
"@polkadot/util": "^5.5.1",
|
||||
"@polkadot/util-crypto": "^5.5.1",
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/ui-shared": "0.69.0",
|
||||
"@polkadot/util": "^5.6.1",
|
||||
"@polkadot/util-crypto": "^5.6.1",
|
||||
"jdenticon": "3.1.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user