Compare commits

...
32 Commits
Author SHA1 Message Date
github-actions[bot] 266307fbc2 [CI Skip] release/stable 0.87.2
skip-checks: true
2021-11-30 06:27:26 +00:00
Jaco 3f131a58c8 0.87.2 (#549) 2021-11-30 08:25:15 +02:00
github-actions[bot] 7d195211c1 [CI Skip] release/beta 0.87.2-0
skip-checks: true
2021-11-29 13:59:41 +00:00
Andrei Eres 5d402a56da Fix raising error if process has not defined yet (#548) 2021-11-29 15:57:18 +02:00
github-actions[bot] f6a46f2d33 [CI Skip] release/stable 0.87.1
skip-checks: true
2021-11-28 05:23:43 +00:00
Jaco 2b71f0164c Bump common (#547)
* Bump common

* 0.87.1
2021-11-28 07:21:18 +02:00
Github Actions 6381e571cf [CI Skip] release/beta 0.86.8-0
skip-checks: true
2021-11-24 14:59:58 +00:00
Jaco d5bbee2bad Adjust stale schedule (#546) 2021-11-24 16:57:26 +02:00
Github Actions e8df066f50 [CI Skip] release/stable 0.86.7
skip-checks: true
2021-11-22 05:27:30 +00:00
Jaco b3bef159dd 0.86.7 (#545) 2021-11-22 07:25:20 +02:00
Github Actions 2f28f04b22 [CI Skip] release/stable 0.86.6
skip-checks: true
2021-11-21 06:43:01 +00:00
Jaco 0a96372186 0.86.6 (#544) 2021-11-21 08:40:38 +02:00
Github Actions 41edf711ec [CI Skip] release/beta 0.86.6-0
skip-checks: true
2021-11-18 12:46:10 +00:00
Jaco d38a8dfd96 Bump deps (#543) 2021-11-18 14:43:31 +02:00
Github Actions 465152698d [CI Skip] release/stable 0.86.5
skip-checks: true
2021-11-07 07:42:47 +00:00
Jaco 84a18f3c0b 0.86.5 (#540) 2021-11-07 09:40:23 +02:00
Github Actions f222cbb6c0 [CI Skip] release/stable 0.86.4
skip-checks: true
2021-11-06 12:00:07 +00:00
Jaco 6ceb397c87 0.86.4 (#539) 2021-11-06 13:57:13 +02:00
Github Actions bd7fa3db34 [CI Skip] release/beta 0.86.4-1
skip-checks: true
2021-11-05 04:29:57 +00:00
Jaco f6e6c83950 Use objectSpread as applicable (#538)
* Use objectSpread as applicable

* Updates

* Add objectSpread import
2021-11-05 06:27:07 +02:00
Github Actions 2910128399 [CI Skip] release/beta 0.86.4-0
skip-checks: true
2021-11-03 16:16:42 +00:00
Jaco 58ad6efadb Correct Qr signature type (#537) 2021-11-03 18:13:33 +02:00
Github Actions 5c0f70a4a2 [CI Skip] release/stable 0.86.3
skip-checks: true
2021-11-01 11:39:31 +00:00
Jaco 921bb0a4a0 0.86.3 (#536) 2021-11-01 13:37:11 +02:00
Github Actions 10450a350b [CI Skip] release/beta 0.86.3-3
skip-checks: true
2021-10-26 11:29:54 +00:00
Jaco 60bce7c0fa Add .skip-npm for examples 2021-10-26 14:26:51 +03:00
Github Actions aa36e56ff6 [CI Skip] release/beta 0.86.3-2
skip-checks: true
2021-10-26 11:16:09 +00:00
Jaco 653a4a8f39 Bump dev (#535) 2021-10-26 14:13:40 +03:00
Github Actions 9b9fa77bc8 [CI Skip] release/beta 0.86.3-1
skip-checks: true
2021-10-25 11:31:41 +00:00
Jaco 0427f8e2af Bump dev (#534) 2021-10-25 14:28:54 +03:00
Github Actions 7b45a86daa [CI Skip] release/beta 0.86.3-0
skip-checks: true
2021-10-25 09:34:02 +00:00
Jaco c94427d150 Reorder package.json fields (#533) 2021-10-25 12:31:38 +03:00
36 changed files with 1397 additions and 1286 deletions
+7 -1
View File
@@ -11,4 +11,10 @@
0.85.3
0.85.4
0.85.5
0.86.2
0.86.2
0.86.3
0.86.4
0.86.5
0.86.6
0.86.7
0.87.2
+1 -1
View File
@@ -2,7 +2,7 @@ name: 'Lock Threads'
on:
schedule:
- cron: '30 1/2 * * *'
- cron: '25 2 * * *'
jobs:
lock:
+1 -1
View File
@@ -1,7 +1,7 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 2/2 * * *'
- cron: '2 40 * * *'
jobs:
stale:
+54
View File
@@ -1,5 +1,59 @@
# CHANGELOG
## 0.87.2 Nov 30, 2021
Contributed:
- Correct check for `process` variable (Thanks to https://github.com/AndreiEres)
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 8.0.4
## 0.87.1 Nov 28, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 8.0.2
## 0.86.7 Nov 22, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 7.9.2
## 0.86.6 Nov 21, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 7.9.1
## 0.86.5 Nov 6, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 7.8.2
## 0.86.4 Nov 6, 2021
Changes:
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 7.8.1
## 0.86.3 Nov 1, 2021
Changes:
- Add publish skip to all examples
- Updated to `@polkadot/{hw-ledger, keyring, util, util-crypto}` 7.7.1
## 0.86.2 Oct 24, 2021
Changes:
+23 -18
View File
@@ -1,50 +1,55 @@
{
"repository": "https://github.com/polkadot-js/ui",
"author": "Jaco Greeff <jacogr@gmail.com>",
"bugs": "https://github.com/polkadot-js/ui/issues",
"homepage": "https://github.com/polkadot-js/ui#readme",
"license": "Apache-2",
"packageManager": "yarn@3.0.1",
"private": true,
"homepage": ".",
"repository": {
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"version": "0.87.2",
"workspaces": [
"packages/*"
],
"resolutions": {
"typescript": "^4.4.4"
},
"scripts": {
"build": "polkadot-dev-build-ts",
"build:release": "polkadot-ci-ghact-build",
"build:rollup": "polkadot-exec-rollup --config",
"lint": "polkadot-dev-run-lint",
"clean": "polkadot-dev-clean-build",
"demo:identicon:react": "yarn build && webpack-serve --config packages/react-identicon/webpack.config.js --content packages/react-identicon --port 8080",
"demo:identicon:vue": "yarn build && webpack-serve --config packages/vue-identicon/webpack.config.js --content packages/vue-identicon --port 8080",
"example:rn:packager": "yarn build && cd packages/exampleReactNative && yarn copy-workspace-packages && yarn start",
"example:rn:ios": "cd packages/exampleReactNative && cd ios && pod install && cd .. && yarn ios",
"example:rn:android": "cd packages/exampleReactNative && yarn android",
"example:react": "yarn build && cd packages/example-react && webpack --config webpack.config.js",
"example:rn:android": "cd packages/exampleReactNative && yarn android",
"example:rn:ios": "cd packages/exampleReactNative && cd ios && pod install && cd .. && yarn ios",
"example:rn:packager": "yarn build && cd packages/exampleReactNative && yarn copy-workspace-packages && yarn start",
"example:vue": "yarn build && cd packages/example-vue && webpack --config webpack.config.js",
"lint": "polkadot-dev-run-lint",
"postinstall": "polkadot-dev-yarn-only",
"test": "polkadot-dev-run-test --coverage --runInBand",
"test:one": "polkadot-dev-run-test"
},
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/runtime": "^7.15.4",
"@polkadot/dev": "^0.63.6",
"@polkadot/ts": "^0.4.10",
"@polkadot/x-bundle": "^7.6.1",
"@types/jest": "^27.0.2",
"@babel/core": "^7.16.0",
"@babel/runtime": "^7.16.3",
"@polkadot/dev": "^0.63.33",
"@polkadot/ts": "^0.4.15",
"@polkadot/x-bundle": "^8.0.4",
"@types/jest": "^27.0.3",
"babel-plugin-transform-vue-template": "^0.4.2",
"empty": "^0.10.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-is": "^17.0.2",
"react-native": "^0.66.1",
"react-native": "^0.66.3",
"vue-template-compiler": "^2.6.14",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-serve": "^3.2.0"
},
"version": "0.86.2",
"packageManager": "yarn@3.0.1"
"resolutions": {
"typescript": "^4.5.2"
}
}
View File
+16 -6
View File
@@ -1,12 +1,22 @@
{
"name": "@polkadot/example-react",
"version": "0.86.2",
"description": "A very basic example with ui-* & react-* packages",
"main": "index.js",
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"bugs": "https://github.com/polkadot-js/ui/issues",
"contributors": [],
"description": "A very basic example with ui-* & react-* packages",
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/example-react#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/example-react",
"private": true,
"repository": {
"directory": "packages/example-react",
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"version": "0.87.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.15.4"
"@babel/runtime": "^7.16.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/example-react', version: '0.86.2' };
export const packageInfo = { name: '@polkadot/example-react', version: '0.87.2' };
View File
+16 -6
View File
@@ -1,12 +1,22 @@
{
"name": "@polkadot/example-vue",
"version": "0.86.2",
"description": "A very basic example with ui-* & vue-* packages",
"main": "index.js",
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"bugs": "https://github.com/polkadot-js/ui/issues",
"contributors": [],
"description": "A very basic example with ui-* & vue-* packages",
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/example-vue#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/example-vue",
"private": true,
"repository": {
"directory": "packages/example-vue",
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"version": "0.87.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.15.4"
"@babel/runtime": "^7.16.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/example-vue', version: '0.86.2' };
export const packageInfo = { name: '@polkadot/example-vue', version: '0.87.2' };
+20 -11
View File
@@ -1,6 +1,7 @@
{
"name": "exampleReactNative",
"version": "0.86.2",
"version": "0.87.2",
"license": "Apache-2.0",
"private": true,
"scripts": {
"copy-workspace-packages": "yarn copy-identicon && yarn copy-ui-shared",
@@ -11,28 +12,36 @@
"start": "NODE_OPTIONS=--max_old_space_size=8192 react-native start",
"test": "jest"
},
"bugs": "https://github.com/polkadot-js/ui/issues",
"homepage": "https://github.com/polkadot-js/ui#readme",
"repository": {
"type": "git",
"url": "https://github.com/polkadot-js/ui.git",
"directory": "packages/exampleReactNative"
},
"sideEffects": false,
"dependencies": {
"@polkadot/keyring": "^7.6.1",
"@polkadot/reactnative-identicon": "0.86.2",
"@polkadot/ui-keyring": "0.86.2",
"@polkadot/ui-settings": "0.86.2",
"@polkadot/util": "^7.6.1",
"@polkadot/util-crypto": "^7.6.1",
"@polkadot/keyring": "^8.0.4",
"@polkadot/reactnative-identicon": "0.87.2",
"@polkadot/ui-keyring": "0.87.2",
"@polkadot/ui-settings": "0.87.2",
"@polkadot/util": "^8.0.4",
"@polkadot/util-crypto": "^8.0.4",
"@react-native-community/async-storage": "^1.12.1",
"fast-text-encoding": "^1.0.3",
"get-yarn-workspaces": "^1.0.2",
"os-browserify": "^0.3.0",
"process": "^0.11.10",
"react": "^17.0.2",
"react-native": "^0.66.1",
"react-native": "^0.66.3",
"react-native-crypto": "^2.2.0",
"react-native-randombytes": "^3.6.1",
"stream-http": "^3.2.0"
},
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/runtime": "^7.15.4",
"@react-native-community/cli-platform-ios": "^5.0.2",
"@babel/core": "^7.16.0",
"@babel/runtime": "^7.16.3",
"@react-native-community/cli-platform-ios": "^6.2.0",
"@types/react-test-renderer": "17.0.1",
"babel-jest": "^27.3.1",
"metro-react-native-babel-preset": "^0.66.2",
+28 -20
View File
@@ -1,29 +1,44 @@
{
"name": "@polkadot/react-identicon",
"version": "0.86.2",
"type": "module",
"author": "Jaco Greeff <jacogr@gmail.com>",
"bugs": "https://github.com/polkadot-js/ui/issues",
"contributors": [],
"description": "Renders an SVG picture representing an address",
"main": "index.js",
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/react-identicon#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/react-identicon",
"repository": {
"directory": "packages/react-identicon",
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
],
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"license": "Apache-2.0",
"type": "module",
"version": "0.87.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/keyring": "^7.6.1",
"@polkadot/ui-settings": "0.86.2",
"@polkadot/ui-shared": "0.86.2",
"@polkadot/util": "^7.6.1",
"@polkadot/util-crypto": "^7.6.1",
"@babel/runtime": "^7.16.3",
"@polkadot/keyring": "^8.0.4",
"@polkadot/ui-settings": "0.87.2",
"@polkadot/ui-shared": "0.87.2",
"@polkadot/util": "^8.0.4",
"@polkadot/util-crypto": "^8.0.4",
"color": "^3.2.1",
"ethereum-blockies-base64": "^1.0.2",
"jdenticon": "3.1.1",
"react-copy-to-clipboard": "^5.0.4",
"styled-components": "^5.3.3"
},
"devDependencies": {
"@types/react-copy-to-clipboard": "^5.0.2",
"@types/react-dom": "^17.0.11",
"@types/styled-components": "^5.1.15",
"styled-components": "^5.3.3",
"xmlserializer": "^0.6.1"
},
"peerDependencies": {
"@polkadot/keyring": "*",
"@polkadot/util": "*",
@@ -32,12 +47,5 @@
"react-dom": "*",
"react-is": "*",
"styled-components": "*"
},
"devDependencies": {
"@types/react-copy-to-clipboard": "^5.0.2",
"@types/react-dom": "^17.0.10",
"@types/styled-components": "^5.1.15",
"styled-components": "^5.3.3",
"xmlserializer": "^0.6.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.86.2' };
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.87.2' };
+18 -10
View File
@@ -1,17 +1,25 @@
{
"name": "@polkadot/react-qr",
"version": "0.86.2",
"type": "module",
"description": "Generates and reads QR codes",
"main": "index.js",
"sideEffects": false,
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"bugs": "https://github.com/polkadot-js/ui/issues",
"contributors": [],
"description": "Generates and reads QR codes",
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/react-qr#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/react-qr",
"repository": {
"directory": "packages/react-qr",
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"type": "module",
"version": "0.87.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/util": "^7.6.1",
"@polkadot/util-crypto": "^7.6.1",
"@babel/runtime": "^7.16.3",
"@polkadot/util": "^8.0.4",
"@polkadot/util-crypto": "^8.0.4",
"qrcode-generator": "^1.4.4",
"react-qr-reader": "^2.2.1",
"styled-components": "^5.3.3"
+3 -3
View File
@@ -4,6 +4,7 @@
import React, { useEffect, useMemo, useRef, useState } from 'react';
import styled from 'styled-components';
import { objectSpread } from '@polkadot/util';
import { xxhashAsHex } from '@polkadot/util-crypto';
import { qrcode } from './qrcode';
@@ -73,11 +74,10 @@ function Display ({ className, size, skipEncoding, style, value }: Props): React
// only encode the frames on demand, not above as part of the
// state derivation - in the case of large payloads, this should
// be slightly more responsive on initial load
return {
...state,
return objectSpread({}, state, {
frameIdx,
image: getDataUrl(state.frames[frameIdx])
};
});
});
timerRef.current.timerId = window.setTimeout(nextFrame, FRAME_DELAY);
+3 -1
View File
@@ -1,12 +1,14 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { HexString } from '@polkadot/util/types';
import React, { useCallback } from 'react';
import { QrScan } from './Scan';
interface ScanType {
signature: string;
signature: HexString;
}
interface Props {
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/react-qr', version: '0.86.2' };
export const packageInfo = { name: '@polkadot/react-qr', version: '0.87.2' };
+23 -15
View File
@@ -1,30 +1,38 @@
{
"name": "@polkadot/reactnative-identicon",
"version": "0.86.2",
"type": "module",
"author": "Jaco Greeff <jacogr@gmail.com>",
"bugs": "https://github.com/polkadot-js/ui/issues",
"contributors": [],
"description": "Renders an SVG picture representing an address",
"main": "index.js",
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/reactnative-identicon#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/reactnative-identicon",
"repository": {
"directory": "packages/reactnative-identicon",
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
],
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"license": "Apache-2.0",
"type": "module",
"version": "0.87.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/ui-shared": "0.86.2",
"@polkadot/util": "^7.6.1",
"@polkadot/util-crypto": "^7.6.1",
"react-native-svg": "^12.1.1"
"@babel/runtime": "^7.16.3",
"@polkadot/ui-shared": "0.87.2",
"@polkadot/util": "^8.0.4",
"@polkadot/util-crypto": "^8.0.4",
"react-native-svg": "^12.2.0"
},
"devDependencies": {
"@types/react-native": "^0.66.6"
},
"peerDependencies": {
"@polkadot/util": "*",
"@polkadot/util-crypto": "*",
"react": "*",
"react-native": "*"
},
"devDependencies": {
"@types/react-native": "^0.66.0"
}
}
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.86.2' };
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.87.2' };
+15 -6
View File
@@ -1,12 +1,21 @@
{
"name": "@polkadot/ui-assets",
"version": "0.86.2",
"description": "Static assets shared accross projects",
"main": "index.js",
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"bugs": "https://github.com/polkadot-js/ui/issues",
"contributors": [],
"description": "Static assets shared accross projects",
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-assets#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/ui-assets",
"repository": {
"directory": "packages/ui-assets",
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"version": "0.87.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.15.4"
"@babel/runtime": "^7.16.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.86.2' };
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.87.2' };
+19 -13
View File
@@ -1,23 +1,29 @@
{
"author": "Jaco Greeff <jacogr@gmail.com>",
"bugs": "https://github.com/polkadot-js/ui/issues",
"contributors": [],
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-keyring#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/ui-keyring",
"version": "0.86.2",
"type": "module",
"main": "index.js",
"repository": {
"directory": "packages/ui-keyring",
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
],
"repository": "github:polkadot-js/apps",
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"contributors": [],
"license": "Apache-2.0",
"type": "module",
"version": "0.87.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/hw-ledger": "^7.6.1",
"@polkadot/keyring": "^7.6.1",
"@polkadot/ui-settings": "0.86.2",
"@polkadot/util": "^7.6.1",
"@babel/runtime": "^7.16.3",
"@polkadot/hw-ledger": "^8.0.4",
"@polkadot/keyring": "^8.0.4",
"@polkadot/ui-settings": "0.87.2",
"@polkadot/util": "^8.0.4",
"mkdirp": "^1.0.4",
"rxjs": "^7.4.0",
"store": "^2.0.12"
+12 -12
View File
@@ -10,7 +10,7 @@ import type { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType,
import { createPair } from '@polkadot/keyring';
import { chains } from '@polkadot/ui-settings';
import { bnToBn, hexToU8a, isHex, isString, stringToU8a, u8aSorted, u8aToString } from '@polkadot/util';
import { bnToBn, hexToU8a, isHex, isString, objectSpread, stringToU8a, u8aSorted, u8aToString } from '@polkadot/util';
import { base64Decode, createKeyMulti, jsonDecrypt, jsonEncrypt } from '@polkadot/util-crypto';
import { env } from './observable/env';
@@ -33,7 +33,7 @@ export class Keyring extends Base implements KeyringStruct {
};
public addExternal (address: string | Uint8Array, meta: KeyringPair$Meta = {}): CreateResult {
const pair = this.keyring.addFromAddress(address, { ...meta, isExternal: true }, null);
const pair = this.keyring.addFromAddress(address, objectSpread<KeyringJson$Meta>({}, meta, { isExternal: true }), null);
return {
json: this.saveAccount(pair),
@@ -42,7 +42,7 @@ export class Keyring extends Base implements KeyringStruct {
}
public addHardware (address: string | Uint8Array, hardwareType: string, meta: KeyringPair$Meta = {}): CreateResult {
return this.addExternal(address, { ...meta, hardwareType, isHardware: true });
return this.addExternal(address, objectSpread<KeyringPair$Meta>({}, meta, { hardwareType, isHardware: true }));
}
public addMultisig (addresses: (string | Uint8Array)[], threshold: bigint | BN | number, meta: KeyringPair$Meta = {}): CreateResult {
@@ -51,7 +51,7 @@ export class Keyring extends Base implements KeyringStruct {
// we could use `sortAddresses`, but rather use internal encode/decode so we are 100%
const who = u8aSorted(addresses.map((who) => this.decodeAddress(who))).map((who) => this.encodeAddress(who));
return this.addExternal(address, { ...meta, isMultisig: true, threshold: bnToBn(threshold).toNumber(), who });
return this.addExternal(address, objectSpread<KeyringPair$Meta>({}, meta, { isMultisig: true, threshold: bnToBn(threshold).toNumber(), who }));
}
public addPair (pair: KeyringPair, password: string): CreateResult {
@@ -91,17 +91,20 @@ export class Keyring extends Base implements KeyringStruct {
const accounts = await Promise.all(accountPromises);
return {
...jsonEncrypt(stringToU8a(JSON.stringify(accounts)), ['batch-pkcs8'], password),
return objectSpread({}, jsonEncrypt(stringToU8a(JSON.stringify(accounts)), ['batch-pkcs8'], password), {
accounts: accounts.map((account) => ({
address: account.address,
meta: account.meta
}))
};
});
}
public createFromJson (json: KeyringPair$Json, meta: KeyringPair$Meta = {}): KeyringPair {
return this.keyring.createFromJson({ ...json, meta: { ...(json.meta || {}), meta } });
return this.keyring.createFromJson(
objectSpread({}, json, {
meta: objectSpread({}, json.meta, meta)
})
);
}
public createFromUri (suri: string, meta: KeyringPair$Meta = {}, type?: KeypairType): KeyringPair {
@@ -249,10 +252,7 @@ export class Keyring extends Base implements KeyringStruct {
private loadInjected (address: string, meta: KeyringJson$Meta, type?: KeypairType): void {
const json = {
address,
meta: {
...meta,
isInjected: true
}
meta: objectSpread<KeyringJson$Meta>({}, meta, { isInjected: true })
};
const pair = this.keyring.addFromAddress(address, json.meta, null, type);
@@ -7,6 +7,8 @@ import type { AddressSubject, SingleAddress, SubjectInfo } from './types';
import { BehaviorSubject } from 'rxjs';
import { objectCopy, objectSpread } from '@polkadot/util';
import { createOptionItem } from '../options/item';
import { env } from './env';
@@ -34,10 +36,10 @@ export function genericSubject (keyCreator: (address: string) => string, withTes
return {
add: (store: KeyringStore, address: string, json: KeyringJson, type?: KeypairType): SingleAddress => {
current = { ...current };
current = objectCopy(current);
current[address] = {
json: { ...json, address },
json: objectSpread({}, json, { address }),
option: createOptionItem(address, json.meta.name),
type
};
@@ -52,7 +54,7 @@ export function genericSubject (keyCreator: (address: string) => string, withTes
return current[address];
},
remove: (store: KeyringStore, address: string): void => {
current = { ...current };
current = objectCopy(current);
delete current[address];
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-keyring', version: '0.86.2' };
export const packageInfo = { name: '@polkadot/ui-keyring', version: '0.87.2' };
+18 -10
View File
@@ -1,17 +1,25 @@
{
"name": "@polkadot/ui-settings",
"version": "0.86.2",
"type": "module",
"description": "Manages app settings",
"main": "index.js",
"sideEffects": false,
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"bugs": "https://github.com/polkadot-js/ui/issues",
"contributors": [],
"description": "Manages app settings",
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-settings#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/ui-settings",
"repository": {
"directory": "packages/ui-settings",
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"type": "module",
"version": "0.87.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/networks": "^7.6.1",
"@polkadot/util": "^7.6.1",
"@babel/runtime": "^7.16.3",
"@polkadot/networks": "^8.0.4",
"@polkadot/util": "^8.0.4",
"eventemitter3": "^4.0.7",
"store": "^2.0.12"
},
+1 -1
View File
@@ -53,7 +53,7 @@ export class Settings implements SettingsStruct {
this.#emitter = new EventEmitter();
// will become deprecated for supporting substrate connect light clients. apiType structure should be used instead
this.#apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || (process && process.env && process.env.WS_URL) || (ENDPOINT_DEFAULT.value as string);
this.#apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || (typeof process === 'object' && process.env && process.env.WS_URL) || (ENDPOINT_DEFAULT.value as string);
this.#apiType = { param: this.#apiUrl, type: 'json-rpc' as EndpointType };
this.#camera = withDefault(CAMERA, settings.camera, CAMERA_DEFAULT);
this.#ledgerConn = withDefault(LEDGER_CONN, settings.ledgerConn, LEDGER_CONN_DEFAULT);
+2 -1
View File
@@ -2,11 +2,12 @@
// SPDX-License-Identifier: Apache-2.0
import { selectableNetworks } from '@polkadot/networks';
import { objectSpread } from '@polkadot/util';
type ChainDef = string[];
const chains: Record <string, ChainDef> = selectableNetworks
.filter((n) => n.genesisHash.length)
.reduce((chains, { genesisHash, network }) => ({ ...chains, [network]: genesisHash }), {});
.reduce((chains, { genesisHash, network }) => objectSpread(chains, { [network]: genesisHash }), {});
export { chains };
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-settings', version: '0.86.2' };
export const packageInfo = { name: '@polkadot/ui-settings', version: '0.87.2' };
+22 -14
View File
@@ -1,25 +1,33 @@
{
"name": "@polkadot/ui-shared",
"version": "0.86.2",
"type": "module",
"description": "Shared logic that is usable accross all frameworks-specific areas",
"main": "index.js",
"sideEffects": false,
"author": "Jaco Greeff <jacogr@gmail.com>",
"maintainers": [],
"bugs": "https://github.com/polkadot-js/ui/issues",
"contributors": [],
"description": "Shared logic that is usable accross all frameworks-specific areas",
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-shared#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@polkadot/ui-shared",
"repository": {
"directory": "packages/ui-shared",
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"type": "module",
"version": "0.87.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"color": "^3.2.1"
},
"devDependencies": {
"@polkadot/util": "^8.0.4",
"@polkadot/util-crypto": "^8.0.4",
"@types/color": "^3.0.2",
"@types/xmlserializer": "^0.6.2"
},
"peerDependencies": {
"@polkadot/util": "*",
"@polkadot/util-crypto": "*"
},
"devDependencies": {
"@polkadot/util": "^7.6.1",
"@polkadot/util-crypto": "^7.6.1",
"@types/color": "^3.0.2",
"@types/xmlserializer": "^0.6.2"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/ui-shared', version: '0.86.2' };
export const packageInfo = { name: '@polkadot/ui-shared', version: '0.87.2' };
+21 -13
View File
@@ -1,29 +1,37 @@
{
"name": "@polkadot/vue-identicon",
"version": "0.86.2",
"type": "module",
"description": "Renders an SVG picture representing an address",
"author": "Jaco Greeff <jacogr@gmail.com>",
"bugs": "https://github.com/polkadot-js/ui/issues",
"contributors": [],
"description": "Renders an SVG picture representing an address",
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/vue-identicon#readme",
"license": "Apache-2.0",
"maintainers": [],
"main": "index.js",
"name": "@polkadot/vue-identicon",
"repository": {
"directory": "packages/vue-identicon",
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
],
"license": "Apache-2.0",
"type": "module",
"version": "0.87.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.15.4",
"@polkadot/ui-shared": "0.86.2",
"@polkadot/util": "^7.6.1",
"@polkadot/util-crypto": "^7.6.1",
"@babel/runtime": "^7.16.3",
"@polkadot/ui-shared": "0.87.2",
"@polkadot/util": "^8.0.4",
"@polkadot/util-crypto": "^8.0.4",
"jdenticon": "3.1.1"
},
"devDependencies": {
"vue": "^2.6.14"
},
"peerDependencies": {
"@polkadot/util": "*",
"@polkadot/util-crypto": "*",
"vue": "*"
},
"devDependencies": {
"vue": "^2.6.14"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/vue-identicon', version: '0.86.2' };
export const packageInfo = { name: '@polkadot/vue-identicon', version: '0.87.2' };
+1059 -1110
View File
File diff suppressed because it is too large Load Diff