Compare commits

...
20 Commits
Author SHA1 Message Date
github-actions[bot] 81b8116742 [CI Skip] release/stable 0.88.1
skip-checks: true
2022-01-02 07:36:11 +00:00
Jaco cbbe125da9 0.88.1 (#582)
* 0.88.1

* Apply bundle where missing
2022-01-02 09:33:26 +02:00
github-actions[bot] ea29793d8d [CI Skip] release/beta 0.87.8-8
skip-checks: true
2022-01-01 16:31:23 +00:00
Jaco 6f423bb250 2022 (#581) 2022-01-01 18:28:21 +02:00
github-actions[bot] c814d719a1 [CI Skip] release/beta 0.87.8-7
skip-checks: true
2022-01-01 08:48:01 +00:00
Jaco a5e321f78f Bump dev (#580) 2022-01-01 10:45:20 +02:00
github-actions[bot] 4c3b99c9c6 [CI Skip] release/beta 0.87.8-6
skip-checks: true
2022-01-01 07:29:56 +00:00
Jaco b06e35bd03 2022 (#579) 2022-01-01 09:26:28 +02:00
github-actions[bot] bbc5916770 [CI Skip] release/beta 0.87.8-5
skip-checks: true
2021-12-31 15:27:24 +00:00
Jaco 2275440f87 Introduce detectOther (#578) 2021-12-31 17:24:48 +02:00
github-actions[bot] f48ba44a88 [CI Skip] release/beta 0.87.8-4
skip-checks: true
2021-12-31 13:10:19 +00:00
Jaco 0467c16bee Mock __dirname via cjs import (#577)
* Mock __dirname via cjs import

* CHANGELOG
2021-12-31 15:07:43 +02:00
github-actions[bot] 757b138977 [CI Skip] release/beta 0.87.8-3
skip-checks: true
2021-12-31 07:58:58 +00:00
Jaco cfc85f7aa4 Bump babel (#576) 2021-12-31 09:56:15 +02:00
github-actions[bot] 8d18f1d131 [CI Skip] release/beta 0.87.8-2
skip-checks: true
2021-12-30 10:17:10 +00:00
Jaco 0570a776b9 Adjust keyring load with additional hashes (#574) 2021-12-30 12:14:18 +02:00
github-actions[bot] 597b9ae61f [CI Skip] release/beta 0.87.8-1
skip-checks: true
2021-12-29 05:29:12 +00:00
Jaco aff8ae42ad Bump deps (#573) 2021-12-29 07:26:05 +02:00
github-actions[bot] 0729402ef6 [CI Skip] release/beta 0.87.8-0
skip-checks: true
2021-12-28 07:32:19 +00:00
Jaco 2904beb171 Support for multi genesisHash in keyring accounts (#481)
* Support for multi genesisHash in keyring accounts

* genesis

* Only single in keyring
2021-12-28 09:29:03 +02:00
189 changed files with 1328 additions and 961 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui authors & contributors
// Copyright 2017-2022 @polkadot/ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
const base = require('@polkadot/dev/config/eslint.cjs');
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui authors & contributors
// Copyright 2017-2022 @polkadot/ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
module.exports = require('@polkadot/dev/config/prettier.cjs');
+6
View File
@@ -1,5 +1,11 @@
# CHANGELOG
## 0.88.1 Jan 2, 2022
- Allow for loading of accounts on additional genesisHashes
- Ensure package path is availble under ESM & CJS
## 0.87.7 Dec 27, 2021
Changes:
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui authors & contributors
// Copyright 2017-2022 @polkadot/ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
const base = require('@polkadot/dev/config/babel-config-cjs.cjs');
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui authors & contributors
// Copyright 2017-2022 @polkadot/ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
const config = require('@polkadot/dev/config/jest.cjs');
+5 -5
View File
@@ -10,7 +10,7 @@
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"version": "0.87.7",
"version": "0.88.1",
"workspaces": [
"packages/*"
],
@@ -32,11 +32,11 @@
"test:one": "polkadot-dev-run-test"
},
"devDependencies": {
"@babel/core": "^7.16.5",
"@babel/runtime": "^7.16.5",
"@polkadot/dev": "^0.64.22",
"@babel/core": "^7.16.7",
"@babel/runtime": "^7.16.7",
"@polkadot/dev": "^0.65.4",
"@polkadot/x-bundle": "^8.2.2",
"@types/jest": "^27.0.3",
"@types/jest": "^27.4.0",
"babel-loader": "^8.2.3",
"babel-plugin-transform-vue-template": "^0.4.2",
"empty": "^0.10.1",
+2 -2
View File
@@ -14,9 +14,9 @@
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"version": "0.87.7",
"version": "0.88.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5"
"@babel/runtime": "^7.16.7"
}
}
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/example-react authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
declare const __dirname: string | undefined;
export default __dirname;
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/example-react authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
module.exports = typeof __dirname === 'string'
? __dirname.replace('/cjs', '')
: undefined;
@@ -0,0 +1,3 @@
{
"type":"commonjs"
}
@@ -0,0 +1,6 @@
// Copyright 2017-2022 @polkadot/example-react authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Empty template, auto-generated by @polkadot/dev
export default [];
@@ -0,0 +1,12 @@
// Copyright 2017-2022 @polkadot/example-react authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
import { detectPackage } from '@polkadot/util';
import dirname from './cjs/dirname';
import others from './detectOther';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, dirname, others);
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/example-react authors & contributors
// Copyright 2017-2022 @polkadot/example-react authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React, { useCallback, useEffect, useState } from 'react';
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2021 @polkadot/example-react authors & contributors
// Copyright 2017-2022 @polkadot/example-react authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/example-react', version: '0.87.7' };
export const packageInfo = { name: '@polkadot/example-react', version: '0.88.1' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/example-react authors & contributors
// Copyright 2017-2022 @polkadot/example-react authors & contributors
// SPDX-License-Identifier: Apache-2.0
const path = require('path');
+2 -2
View File
@@ -14,9 +14,9 @@
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"version": "0.87.7",
"version": "0.88.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5"
"@babel/runtime": "^7.16.7"
}
}
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
declare const __dirname: string | undefined;
export default __dirname;
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
module.exports = typeof __dirname === 'string'
? __dirname.replace('/cjs', '')
: undefined;
@@ -0,0 +1,3 @@
{
"type":"commonjs"
}
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Empty template, auto-generated by @polkadot/dev
export default [];
+12
View File
@@ -0,0 +1,12 @@
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
import { detectPackage } from '@polkadot/util';
import dirname from './cjs/dirname';
import others from './detectOther';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, dirname, others);
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/example-vue authors & contributors
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Prefix } from '@polkadot/util-crypto/address/types';
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2021 @polkadot/example-vue authors & contributors
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/example-vue', version: '0.87.7' };
export const packageInfo = { name: '@polkadot/example-vue', version: '0.88.1' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/example-vue authors & contributors
// Copyright 2017-2022 @polkadot/example-vue authors & contributors
// SPDX-License-Identifier: Apache-2.0
const path = require('path');
+4 -4
View File
@@ -17,13 +17,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "0.87.7",
"version": "0.88.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5",
"@babel/runtime": "^7.16.7",
"@polkadot/keyring": "^8.2.2",
"@polkadot/ui-settings": "0.87.7",
"@polkadot/ui-shared": "0.87.7",
"@polkadot/ui-settings": "0.88.1",
"@polkadot/ui-shared": "0.88.1",
"@polkadot/util": "^8.2.2",
"@polkadot/util-crypto": "^8.2.2",
"color": "^3.2.1",
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Prefix } from '@polkadot/util-crypto/address/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './icons';
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
declare const __dirname: string | undefined;
export default __dirname;
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
module.exports = typeof __dirname === 'string'
? __dirname.replace('/cjs', '')
: undefined;
@@ -0,0 +1,3 @@
{
"type":"commonjs"
}
@@ -0,0 +1,7 @@
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
export default [settingsInfo, sharedInfo];
@@ -1,10 +1,12 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
// Do not edit, auto-generated by @polkadot/dev
import { detectPackage } from '@polkadot/util';
import dirname from './cjs/dirname';
import others from './detectOther';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo, sharedInfo]);
detectPackage(packageInfo, dirname, others);
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Props } from '../types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Props } from '../types';
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Props } from '../types';
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Props } from '../types';
@@ -1,4 +1,4 @@
// Copyright 2018-2021 @polkadot/react-identicon authors & contributors
// Copyright 2018-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Copyright 2018 Paritytech via paritytech/oo7/polkadot-identicon
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { Beachball } from './Beachball';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.87.7' };
export const packageInfo = { name: '@polkadot/react-identicon', version: '0.88.1' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2018-2021 @polkadot/react-identicon authors & contributors
// Copyright 2018-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Prefix } from '@polkadot/util-crypto/address/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-identicon authors & contributors
// Copyright 2017-2022 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
const path = require('path');
+7 -4
View File
@@ -12,13 +12,16 @@
"type": "git",
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
],
"type": "module",
"version": "0.87.7",
"version": "0.88.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5",
"@polkadot/ui-settings": "0.87.7",
"@babel/runtime": "^7.16.7",
"@polkadot/ui-settings": "0.88.1",
"@polkadot/util": "^8.2.2",
"@polkadot/util-crypto": "^8.2.2",
"qrcode-generator": "^1.4.4",
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React, { useEffect, useMemo, useRef, useState } from 'react';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React, { useMemo } from 'react';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React, { useMemo } from 'react';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { NetworkSpecsStruct } from '@polkadot/ui-settings/types';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React, { useCallback, useMemo } from 'react';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React, { useCallback } from 'react';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { HexString } from '@polkadot/util/types';
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { QrDisplayAddress } from './DisplayAddress';
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
declare const __dirname: string | undefined;
export default __dirname;
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
module.exports = typeof __dirname === 'string'
? __dirname.replace('/cjs', '')
: undefined;
+3
View File
@@ -0,0 +1,3 @@
{
"type":"commonjs"
}
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
const ADDRESS_PREFIX = 'substrate';
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Empty template, auto-generated by @polkadot/dev
export default [];
+12
View File
@@ -0,0 +1,12 @@
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
import { detectPackage } from '@polkadot/util';
import dirname from './cjs/dirname';
import others from './detectOther';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, dirname, others);
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
export * from './bundle';
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/react-qr', version: '0.87.7' };
export const packageInfo = { name: '@polkadot/react-qr', version: '0.88.1' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import _qrcode from 'qrcode-generator';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { u8aConcat, u8aToHex, u8aToString } from '@polkadot/util';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/react-qr authors & contributors
// Copyright 2017-2022 @polkadot/react-qr authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { isString, u8aConcat, u8aToU8a } from '@polkadot/util';
+4 -4
View File
@@ -17,17 +17,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "0.87.7",
"version": "0.88.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5",
"@polkadot/ui-shared": "0.87.7",
"@babel/runtime": "^7.16.7",
"@polkadot/ui-shared": "0.88.1",
"@polkadot/util": "^8.2.2",
"@polkadot/util-crypto": "^8.2.2",
"react-native-svg": "^12.2.0"
},
"devDependencies": {
"@types/react-native": "^0.66.10"
"@types/react-native": "^0.66.11"
},
"peerDependencies": {
"@polkadot/util": "*",
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Prefix } from '@polkadot/util-crypto/address/types';
@@ -0,0 +1,5 @@
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './icons';
export { packageInfo } from './packageInfo';
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
declare const __dirname: string | undefined;
export default __dirname;
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
module.exports = typeof __dirname === 'string'
? __dirname.replace('/cjs', '')
: undefined;
@@ -0,0 +1,3 @@
{
"type":"commonjs"
}
@@ -0,0 +1,6 @@
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
export default [sharedInfo];
@@ -1,9 +1,12 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
// Do not edit, auto-generated by @polkadot/dev
import { detectPackage } from '@polkadot/util';
import dirname from './cjs/dirname';
import others from './detectOther';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [sharedInfo]);
detectPackage(packageInfo, dirname, others);
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Props } from '../types';
@@ -1,4 +1,4 @@
// Copyright 2018-2021 @polkadot/reactnative-identicon authors & contributors
// Copyright 2018-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Circle as CircleType } from '@polkadot/ui-shared/icons/types';
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
export { default as Empty } from './Empty';
+2 -3
View File
@@ -1,11 +1,10 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
import Identicon from './Identicon';
export * from './icons';
export { packageInfo } from './packageInfo';
export * from './bundle';
export default Identicon;
@@ -1,6 +1,6 @@
// Copyright 2017-2021 @polkadot/reactnative-identicon authors & contributors
// Copyright 2017-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.87.7' };
export const packageInfo = { name: '@polkadot/reactnative-identicon', version: '0.88.1' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2018-2021 @polkadot/reactnative-identicon authors & contributors
// Copyright 2018-2022 @polkadot/reactnative-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0
export interface Props {
+3 -2
View File
@@ -13,9 +13,10 @@
"url": "https://github.com/polkadot-js/ui.git"
},
"sideEffects": false,
"version": "0.87.7",
"version": "0.88.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5"
"@babel/runtime": "^7.16.7",
"@polkadot/util": "^8.2.2"
}
}
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
declare const __dirname: string | undefined;
export default __dirname;
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
module.exports = typeof __dirname === 'string'
? __dirname.replace('/cjs', '')
: undefined;
+3
View File
@@ -0,0 +1,3 @@
{
"type":"commonjs"
}
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Empty template, auto-generated by @polkadot/dev
export default [];
+12
View File
@@ -0,0 +1,12 @@
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
import { detectPackage } from '@polkadot/util';
import dirname from './cjs/dirname';
import others from './detectOther';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, dirname, others);
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui-assets authors & contributors
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
// SPDX-License-Identifier: Apache-2.0
// empty
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2021 @polkadot/ui-assets authors & contributors
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.87.7' };
export const packageInfo = { name: '@polkadot/ui-assets', version: '0.88.1' };
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui-assets authors & contributors
// Copyright 2017-2022 @polkadot/ui-assets authors & contributors
// SPDX-License-Identifier: Apache-2.0
declare module '*.svg' {
+4 -4
View File
@@ -16,17 +16,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "0.87.7",
"version": "0.88.1",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.16.5",
"@babel/runtime": "^7.16.7",
"@polkadot/hw-ledger": "^8.2.2",
"@polkadot/keyring": "^8.2.2",
"@polkadot/ui-settings": "0.87.7",
"@polkadot/ui-settings": "0.88.1",
"@polkadot/util": "^8.2.2",
"@polkadot/util-crypto": "^8.2.2",
"mkdirp": "^1.0.4",
"rxjs": "^7.4.0",
"rxjs": "^7.5.1",
"store": "^2.0.12"
},
"devDependencies": {
+10 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KeyringInstance, KeyringPair } from '@polkadot/keyring/types';
@@ -28,6 +28,8 @@ export class Base {
protected _genesisHash?: string;
protected _genesisHashAdd: string[] = [];
constructor () {
this.#accounts = accounts;
this.#addresses = addresses;
@@ -59,6 +61,12 @@ export class Base {
return this._genesisHash;
}
public get genesisHashes (): string[] {
return this._genesisHash
? [this._genesisHash, ...this._genesisHashAdd]
: [...this._genesisHashAdd];
}
public decodeAddress = (key: string | Uint8Array, ignoreChecksum?: boolean, ss58Format?: Prefix): Uint8Array => {
return this.keyring.decodeAddress(key, ignoreChecksum, ss58Format);
};
@@ -115,6 +123,7 @@ export class Base {
? options.genesisHash.toString()
: options.genesisHash.toHex()
);
this._genesisHashAdd = options.genesisHashAdd || [];
this._store = options.store || this._store;
this.addAccountPairs();
+7 -8
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@polkadot/keyring/types';
@@ -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, objectSpread, stringToU8a, u8aSorted, u8aToString } from '@polkadot/util';
import { bnToBn, hexToU8a, isFunction, isHex, isString, objectSpread, stringify, stringToU8a, u8aSorted, u8aToString } from '@polkadot/util';
import { base64Decode, createKeyMulti, jsonDecrypt, jsonEncrypt } from '@polkadot/util-crypto';
import { env } from './observable/env';
@@ -185,7 +185,7 @@ export class Keyring extends Base implements KeyringStruct {
.filter(([, { json: { meta: { contract } } }]): boolean =>
!!contract && contract.genesisHash === this.genesisHash
)
.map(([address]): KeyringAddress => this.getContract(address) as KeyringAddress);
.map(([address]) => this.getContract(address) as KeyringAddress);
}
private rewriteKey (json: KeyringJson, key: string, hexAddr: string, creator: (addr: string) => string): void {
@@ -199,7 +199,6 @@ export class Keyring extends Base implements KeyringStruct {
private loadAccount (json: KeyringJson, key: string): void {
if (!json.meta.isTesting && (json as KeyringPair$Json).encoded) {
// FIXME Just for the transition period (ignoreChecksum)
const pair = this.keyring.addFromJson(json as KeyringPair$Json, true);
this.accounts.add(this._store, pair.address, json, pair.type);
@@ -266,7 +265,7 @@ export class Keyring extends Base implements KeyringStruct {
) || [this.genesisHash];
if (json.meta.genesisHash) {
return hashes.includes(json.meta.genesisHash);
return hashes.includes(json.meta.genesisHash) || this.genesisHashes.includes(json.meta.genesisHash);
} else if (json.meta.contract) {
return hashes.includes(json.meta.contract.genesisHash);
}
@@ -279,7 +278,7 @@ export class Keyring extends Base implements KeyringStruct {
super.initKeyring(options);
this._store.all((key: string, json: KeyringJson): void => {
if (options.filter ? options.filter(json) : true) {
if (!isFunction(options.filter) || options.filter(json)) {
try {
if (this.allowGenesis(json)) {
if (accountRegex.test(key)) {
@@ -291,7 +290,7 @@ export class Keyring extends Base implements KeyringStruct {
}
}
} catch (error) {
// ignore
console.warn(`Keyring: Unable to load ${key}:${stringify(json)}`);
}
}
});
@@ -301,7 +300,7 @@ export class Keyring extends Base implements KeyringStruct {
try {
this.loadInjected(account.address, account.meta, account.type);
} catch (error) {
// ignore
console.warn(`Keyring: Unable to inject ${stringify(account)}`);
}
}
});
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { Keyring } from './Keyring';
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
declare const __dirname: string | undefined;
export default __dirname;
+8
View File
@@ -0,0 +1,8 @@
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
module.exports = typeof __dirname === 'string'
? __dirname.replace('/cjs', '')
: undefined;
+3
View File
@@ -0,0 +1,3 @@
{
"type":"commonjs"
}
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { decodeAddress } from '@polkadot/keyring';
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
export default [settingsInfo];
+6 -3
View File
@@ -1,9 +1,12 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
// Do not edit, auto-generated by @polkadot/dev
import { detectPackage } from '@polkadot/util';
import dirname from './cjs/dirname';
import others from './detectOther';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [settingsInfo]);
detectPackage(packageInfo, dirname, others);
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/util authors & contributors
// Copyright 2017-2022 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Be able to import json in TS
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { accountKey } from '../defaults';
@@ -1,4 +1,4 @@
// Copyright 2017-2021 @polkadot/ui-keyring authors & contributors
// Copyright 2017-2022 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { addressKey } from '../defaults';

Some files were not shown because too many files have changed in this diff Show More