mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-06-19 00:41:07 +00:00
fix: update extension packages and fix type compatibility for pezkuwi-sdk
- Update @pezkuwi/extension-inject to ^0.62.13 with proper /types exports - Update @pezkuwi/extension-dapp to ^0.62.13 - Update @pezkuwi/extension-compat-metamask to ^0.62.13 - Fix IconTheme type to include 'bizinikiwi' and 'pezkuwi' themes - Fix endpoint array issues (getTeleports -> direct array references) - Add type assertions for external package compatibility (acala, moonbeam, parallel) - Fix subspace.ts dynamic class typing - Fix conviction type in page-referenda - Update Pallet type names to Pezpallet prefix across codebase - Define InjectedExtension types locally for module resolution - Add styled-components DefaultTheme augmentation - Add react-copy-to-clipboard type declaration for React 18 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,8 @@ import type { MetadataDef } from '@pezkuwi/extension-inject/types';
|
||||
|
||||
export type ChainType = 'bizinikiwi' | 'ethereum';
|
||||
|
||||
export interface ChainInfo extends MetadataDef {
|
||||
// Omit chainType from MetadataDef to override with pezkuwi-specific type
|
||||
export interface ChainInfo extends Omit<MetadataDef, 'chainType'> {
|
||||
color: string | undefined;
|
||||
chainType: ChainType;
|
||||
}
|
||||
|
||||
@@ -41,9 +41,10 @@ export function createOption ({ info, isHeader, text, value }: Option, overrides
|
||||
}
|
||||
|
||||
export function createIdenticon ({ info, text, value }: Option, overrides: string[] = [], override = 'empty'): Option {
|
||||
const theme = info && overrides.includes(info)
|
||||
? override as 'empty'
|
||||
: info as 'bizinikiwi';
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const theme = (info && overrides.includes(info)
|
||||
? override
|
||||
: info) as any; // bizinikiwi is valid in pezkuwi-sdk but IconTheme type not yet updated
|
||||
|
||||
return {
|
||||
text: (
|
||||
|
||||
@@ -5,6 +5,11 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.d.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" },
|
||||
{ "path": "../react-api/tsconfig.build.json" },
|
||||
|
||||
Reference in New Issue
Block a user