mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-22 05:37:58 +00:00
2.10.1 (#703)
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 2.10.1 Jan 15, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Add setting to allow/disallow in-browser account storage
|
||||
- Bump to `@polkadot/util` 10.2.3
|
||||
|
||||
|
||||
## 2.9.15 Jan 8, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
+4
-4
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"versions": {
|
||||
"git": "2.9.15",
|
||||
"npm": "2.9.15"
|
||||
@@ -34,8 +34,8 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.20.12",
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@polkadot/dev": "^0.67.177",
|
||||
"@polkadot/x-bundle": "^10.2.3",
|
||||
"@polkadot/dev": "^0.67.181",
|
||||
"@polkadot/x-bundle": "^10.2.6",
|
||||
"@types/jest": "^29.2.5",
|
||||
"babel-loader": "^8.3.0",
|
||||
"babel-plugin-transform-vue-template": "^0.4.2",
|
||||
@@ -44,7 +44,7 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-is": "^18.2.0",
|
||||
"react-native": "^0.70.6",
|
||||
"react-native": "^0.71.0",
|
||||
"stream-browserify": "^3.0.0",
|
||||
"vue-template-compiler": "^2.7.14"
|
||||
},
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"url": "https://github.com/polkadot-js/ui.git"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"url": "https://github.com/polkadot-js/ui.git"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7"
|
||||
|
||||
@@ -17,18 +17,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@polkadot/keyring": "^10.2.3",
|
||||
"@polkadot/ui-settings": "2.9.15",
|
||||
"@polkadot/ui-shared": "2.9.15",
|
||||
"@polkadot/util": "^10.2.3",
|
||||
"@polkadot/util-crypto": "^10.2.3",
|
||||
"@polkadot/keyring": "^10.2.6",
|
||||
"@polkadot/ui-settings": "2.10.0",
|
||||
"@polkadot/ui-shared": "2.10.0",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"@polkadot/util-crypto": "^10.2.6",
|
||||
"color": "^3.2.1",
|
||||
"ethereum-blockies-base64": "^1.0.2",
|
||||
"jdenticon": "3.1.1",
|
||||
"jdenticon": "3.2.0",
|
||||
"react-copy-to-clipboard": "^5.1.0",
|
||||
"styled-components": "^5.3.6"
|
||||
},
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@polkadot/ui-settings": "2.9.15",
|
||||
"@polkadot/util": "^10.2.3",
|
||||
"@polkadot/util-crypto": "^10.2.3",
|
||||
"@polkadot/ui-settings": "2.10.0",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"@polkadot/util-crypto": "^10.2.6",
|
||||
"qrcode-generator": "^1.4.4",
|
||||
"react-qr-reader": "^2.2.1",
|
||||
"styled-components": "^5.3.6"
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@polkadot/ui-shared": "2.9.15",
|
||||
"@polkadot/util": "^10.2.3",
|
||||
"@polkadot/util-crypto": "^10.2.3",
|
||||
"react-native-svg": "^12.4.4"
|
||||
"@polkadot/ui-shared": "2.10.0",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"@polkadot/util-crypto": "^10.2.6",
|
||||
"react-native-svg": "^12.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react-native": "^0.70.8"
|
||||
"@types/react-native": "^0.71.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/util": "*",
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
"url": "https://github.com/polkadot-js/ui.git"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@polkadot/util": "^10.2.3"
|
||||
"@polkadot/util": "^10.2.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,14 +16,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@polkadot/keyring": "^10.2.3",
|
||||
"@polkadot/ui-settings": "2.9.15",
|
||||
"@polkadot/util": "^10.2.3",
|
||||
"@polkadot/util-crypto": "^10.2.3",
|
||||
"@polkadot/keyring": "^10.2.6",
|
||||
"@polkadot/ui-settings": "2.10.0",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"@polkadot/util-crypto": "^10.2.6",
|
||||
"mkdirp": "^1.0.4",
|
||||
"rxjs": "^7.8.0",
|
||||
"store": "^2.0.12"
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@polkadot/networks": "^10.2.3",
|
||||
"@polkadot/util": "^10.2.3",
|
||||
"@polkadot/networks": "^10.2.6",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"store": "^2.0.12"
|
||||
},
|
||||
|
||||
@@ -8,7 +8,7 @@ import store from 'store';
|
||||
|
||||
import { hasProcess, isUndefined } from '@polkadot/util';
|
||||
|
||||
import { CAMERA, CAMERA_DEFAULT, CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICONS, LANGUAGE_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT, LOCKING, LOCKING_DEFAULT, NOTIFICATION_DEFAULT, PREFIX_DEFAULT, PREFIXES, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './defaults';
|
||||
import { CAMERA, CAMERA_DEFAULT, CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICONS, LANGUAGE_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT, LOCKING, LOCKING_DEFAULT, NOTIFICATION_DEFAULT, PREFIX_DEFAULT, PREFIXES, STORAGE, STORAGE_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './defaults';
|
||||
|
||||
type ChangeCallback = (settings: SettingsStruct) => void;
|
||||
type OnTypes = 'change';
|
||||
@@ -41,6 +41,8 @@ export class Settings implements SettingsStruct {
|
||||
|
||||
#prefix: number;
|
||||
|
||||
#storage: string;
|
||||
|
||||
#uiMode: string;
|
||||
|
||||
#uiTheme: string;
|
||||
@@ -60,10 +62,11 @@ export class Settings implements SettingsStruct {
|
||||
this.#i18nLang = settings.i18nLang || LANGUAGE_DEFAULT;
|
||||
this.#icon = settings.icon || ICON_DEFAULT;
|
||||
this.#locking = settings.locking || LOCKING_DEFAULT;
|
||||
this.#notification = settings.notification || NOTIFICATION_DEFAULT;
|
||||
this.#prefix = isUndefined(settings.prefix) ? PREFIX_DEFAULT : settings.prefix;
|
||||
this.#storage = withDefault(STORAGE, settings.storage, STORAGE_DEFAULT);
|
||||
this.#uiMode = settings.uiMode || UIMODE_DEFAULT;
|
||||
this.#uiTheme = settings.uiTheme || UITHEME_DEFAULT;
|
||||
this.#notification = settings.notification || NOTIFICATION_DEFAULT;
|
||||
}
|
||||
|
||||
public get camera (): string {
|
||||
@@ -102,6 +105,10 @@ export class Settings implements SettingsStruct {
|
||||
return this.#prefix;
|
||||
}
|
||||
|
||||
public get storage (): string {
|
||||
return this.#storage;
|
||||
}
|
||||
|
||||
public get uiMode (): string {
|
||||
return this.#uiMode;
|
||||
}
|
||||
@@ -146,6 +153,10 @@ export class Settings implements SettingsStruct {
|
||||
return PREFIXES;
|
||||
}
|
||||
|
||||
public get availableStorage (): Option[] {
|
||||
return STORAGE;
|
||||
}
|
||||
|
||||
public get availableUIModes (): Option[] {
|
||||
return UIMODES;
|
||||
}
|
||||
@@ -165,6 +176,7 @@ export class Settings implements SettingsStruct {
|
||||
locking: this.#locking,
|
||||
notification: this.#notification,
|
||||
prefix: this.#prefix,
|
||||
storage: this.#storage,
|
||||
uiMode: this.#uiMode,
|
||||
uiTheme: this.#uiTheme
|
||||
};
|
||||
@@ -180,6 +192,7 @@ export class Settings implements SettingsStruct {
|
||||
this.#locking = settings.locking || this.#locking;
|
||||
this.#notification = settings.notification || this.#notification;
|
||||
this.#prefix = isUndefined(settings.prefix) ? this.#prefix : settings.prefix;
|
||||
this.#storage = settings.storage || this.#storage;
|
||||
this.#uiMode = settings.uiMode || this.#uiMode;
|
||||
this.#uiTheme = settings.uiTheme || this.#uiTheme;
|
||||
|
||||
|
||||
@@ -41,6 +41,21 @@ const LOCKING: Option[] = [
|
||||
}
|
||||
];
|
||||
|
||||
const STORAGE_DEFAULT = 'off';
|
||||
|
||||
const STORAGE: Option[] = [
|
||||
{
|
||||
info: 'on',
|
||||
text: 'Allow local in-browser account storage',
|
||||
value: 'on'
|
||||
},
|
||||
{
|
||||
info: 'off',
|
||||
text: 'Do not allow local in-browser account storage',
|
||||
value: 'off'
|
||||
}
|
||||
];
|
||||
|
||||
export {
|
||||
CAMERA_DEFAULT,
|
||||
CAMERA,
|
||||
@@ -60,6 +75,8 @@ export {
|
||||
NOTIFICATION_DEFAULT,
|
||||
PREFIX_DEFAULT,
|
||||
PREFIXES,
|
||||
STORAGE,
|
||||
STORAGE_DEFAULT,
|
||||
UIMODE_DEFAULT,
|
||||
UIMODES,
|
||||
UITHEME_DEFAULT,
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface SettingsStruct {
|
||||
locking: string;
|
||||
notification: string;
|
||||
prefix: number;
|
||||
storage: string;
|
||||
uiMode: string;
|
||||
uiTheme: string;
|
||||
}
|
||||
|
||||
@@ -17,15 +17,15 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"color": "^3.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util": "^10.2.3",
|
||||
"@polkadot/util-crypto": "^10.2.3",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"@polkadot/util-crypto": "^10.2.6",
|
||||
"@types/color": "^3.0.3",
|
||||
"@types/xmlserializer": "^0.6.3",
|
||||
"xmlserializer": "^0.6.1"
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "2.9.15",
|
||||
"version": "2.10.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.7",
|
||||
"@polkadot/ui-shared": "2.9.15",
|
||||
"@polkadot/util": "^10.2.3",
|
||||
"@polkadot/util-crypto": "^10.2.3",
|
||||
"jdenticon": "3.1.1"
|
||||
"@polkadot/ui-shared": "2.10.0",
|
||||
"@polkadot/util": "^10.2.6",
|
||||
"@polkadot/util-crypto": "^10.2.6",
|
||||
"jdenticon": "3.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vue": "^2.7.14"
|
||||
|
||||
Reference in New Issue
Block a user