Bump deps & adjust CHANGELOG (#756)

This commit is contained in:
Jaco authored and GitHub committed 2023-05-05 09:29:17 +03:00
1 parent dae851297b
commit 60cc5fbd4b
12 files changed
+213 -217

No files matched your search

+2 -2
View File
@@ -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"
},
+3 -1
View File
@@ -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({
+11 -8
View File
@@ -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 };
}