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:
2026-01-08 16:24:19 +03:00
parent e64f846b0d
commit 7a4bbeac25
570 changed files with 3281 additions and 3030 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2026 @pezkuwi/app-ranked authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { PalletRankedCollectiveMemberRecord } from '@pezkuwi/types/lookup';
import type { PezpalletRankedCollectiveMemberRecord } from '@pezkuwi/types/lookup';
export type PalletColl = 'rankedCollective' | 'fellowshipCollective' | 'ambassadorCollective';
@@ -9,5 +9,5 @@ export type PalletPoll = 'rankedPolls' | 'fellowshipReferenda' | 'ambassadorRefe
export interface Member {
accountId: string;
info: PalletRankedCollectiveMemberRecord;
info: PezpalletRankedCollectiveMemberRecord;
}
+3 -3
View File
@@ -3,7 +3,7 @@
import type { Option } from '@pezkuwi/types';
import type { AccountId32 } from '@pezkuwi/types/interfaces';
import type { PalletRankedCollectiveMemberRecord } from '@pezkuwi/types/lookup';
import type { PezpalletRankedCollectiveMemberRecord } from '@pezkuwi/types/lookup';
import type { BN } from '@pezkuwi/util';
import type { Member, PalletColl } from './types.js';
@@ -20,10 +20,10 @@ interface Result {
}
const OPT_MEM = {
transform: ([[ids], infos]: [[AccountId32[]], Option<PalletRankedCollectiveMemberRecord>[]]): Result => {
transform: ([[ids], infos]: [[AccountId32[]], Option<PezpalletRankedCollectiveMemberRecord>[]]): Result => {
const members = infos
.map((info, i) => [info.unwrapOr(null), ids[i]])
.filter((r): r is [PalletRankedCollectiveMemberRecord, AccountId32] => !!r[0])
.filter((r): r is [PezpalletRankedCollectiveMemberRecord, AccountId32] => !!r[0])
.sort(([a], [b]) => b.rank.cmp(a.rank))
.map(([info, accountId]): Member => ({
accountId: accountId.toString(),