mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-19 00:41:06 +00:00
Bump deps & adjust CHANGELOG (#756)
This commit is contained in:
@@ -21,11 +21,11 @@
|
||||
"version": "3.2.3-0-x",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.1.1",
|
||||
"@polkadot/keyring": "^12.1.2",
|
||||
"@polkadot/ui-settings": "3.2.3-0-x",
|
||||
"@polkadot/ui-shared": "3.2.3-0-x",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"ethereum-blockies-base64": "^1.0.2",
|
||||
"jdenticon": "3.2.0",
|
||||
"react-copy-to-clipboard": "^5.1.0",
|
||||
@@ -34,7 +34,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react-copy-to-clipboard": "^5.0.4",
|
||||
"@types/react-dom": "^18.2.1",
|
||||
"@types/react-dom": "^18.2.3",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
"xmlserializer": "^0.6.1"
|
||||
},
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/ui-settings": "3.2.3-0-x",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"qrcode-generator": "^1.4.4",
|
||||
"react-qr-reader": "^2.2.1",
|
||||
"styled-components": "^5.3.10",
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/ui-shared": "3.2.3-0-x",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"react-native-svg": "^12.5.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
"version": "3.2.3-0-x",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.1.1",
|
||||
"@polkadot/keyring": "^12.1.2",
|
||||
"@polkadot/ui-settings": "3.2.3-0-x",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"mkdirp": "^2.1.6",
|
||||
"rxjs": "^7.8.1",
|
||||
"store": "^2.0.12",
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
"version": "3.2.3-0-x",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/networks": "^12.1.1",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"eventemitter3": "^5.0.0",
|
||||
"@polkadot/networks": "^12.1.2",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"store": "^2.0.12",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"@types/xmlserializer": "^0.6.3",
|
||||
"xmlserializer": "^0.6.1"
|
||||
},
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/ui-shared": "3.2.3-0-x",
|
||||
"@polkadot/util": "^12.1.1",
|
||||
"@polkadot/util-crypto": "^12.1.1",
|
||||
"@polkadot/util": "^12.1.2",
|
||||
"@polkadot/util-crypto": "^12.1.2",
|
||||
"jdenticon": "3.2.0",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
|
||||
@@ -109,7 +109,9 @@ export const Identicon = defineComponent({
|
||||
const cmp = type.charAt(0).toUpperCase() + type.slice(1);
|
||||
|
||||
if (['Beachball', 'Polkadot'].includes(cmp)) {
|
||||
const component = cmp === 'Beachball' ? Beachball : Polkadot;
|
||||
const component = cmp === 'Beachball'
|
||||
? Beachball
|
||||
: Polkadot;
|
||||
|
||||
return h(component, {
|
||||
...adaptVNodeAttrs({
|
||||
|
||||
@@ -3,12 +3,15 @@
|
||||
|
||||
import { version } from 'vue';
|
||||
|
||||
export function adaptVNodeAttrs (data: Record<string, any>) {
|
||||
if (version.startsWith('3.')) {
|
||||
return data;
|
||||
} else {
|
||||
return {
|
||||
attrs: data
|
||||
};
|
||||
}
|
||||
const isV3 = version.startsWith('3.');
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* Adjust attributes to be usable in both Vue 2 and Vue 3 components.
|
||||
*/
|
||||
export function adaptVNodeAttrs (data: Record<string, unknown>): Record<string, unknown> {
|
||||
return isV3
|
||||
? data
|
||||
: { attrs: data };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user