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
+3 -3
View File
@@ -1,11 +1,11 @@
// Copyright 2017-2026 @pezkuwi/app-alliance authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { PalletAllianceCid, PalletAllianceMemberRole } from '@pezkuwi/types/lookup';
import type { PezpalletAllianceCid, PezpalletAllianceMemberRole } from '@pezkuwi/types/lookup';
import type { BN } from '@pezkuwi/util';
export interface Cid {
cid: PalletAllianceCid;
cid: PezpalletAllianceCid;
ipfs: string | null;
key: string;
}
@@ -13,7 +13,7 @@ export interface Cid {
export interface Member {
accountId: string;
// Founder here is deprecated
role: PalletAllianceMemberRole['type'] | 'Founder';
role: PezpalletAllianceMemberRole['type'] | 'Founder';
}
export interface MemberInfo {
@@ -1,7 +1,7 @@
// Copyright 2017-2026 @pezkuwi/app-alliance authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { PalletAllianceCid } from '@pezkuwi/types/lookup';
import type { PezpalletAllianceCid } from '@pezkuwi/types/lookup';
import type { Cid } from './types.js';
import { createNamedHook, useApi, useCall } from '@pezkuwi/react-hooks';
@@ -9,7 +9,7 @@ import { createNamedHook, useApi, useCall } from '@pezkuwi/react-hooks';
import { createCid } from './util.js';
const OPT_ANN = {
transform: (cids: PalletAllianceCid[]): Cid[] =>
transform: (cids: PezpalletAllianceCid[]): Cid[] =>
cids.map(createCid)
};
+2 -2
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { Option } from '@pezkuwi/types';
import type { PalletAllianceCid } from '@pezkuwi/types/lookup';
import type { PezpalletAllianceCid } from '@pezkuwi/types/lookup';
import type { Rule } from './types.js';
import { createNamedHook, useApi, useCall } from '@pezkuwi/react-hooks';
@@ -10,7 +10,7 @@ import { createNamedHook, useApi, useCall } from '@pezkuwi/react-hooks';
import { createCid } from './util.js';
const OPT_RULE = {
transform: (opt: Option<PalletAllianceCid>): Rule =>
transform: (opt: Option<PezpalletAllianceCid>): Rule =>
opt.isSome
? { cid: createCid(opt.unwrap()), hasRule: true }
: { cid: null, hasRule: false }
+1 -1
View File
@@ -31,7 +31,7 @@ describe('util', (): void => {
describe('createIpfsHash', (): void => {
it('encodes a pallet CID into an ipfs hash', (): void => {
const cid = registry.createType('PalletAllianceCid', {
const cid = registry.createType('PezpalletAllianceCid', {
codec: 0x70,
hash_: {
code: 0x12,
+4 -4
View File
@@ -1,19 +1,19 @@
// Copyright 2017-2026 @pezkuwi/app-alliance authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { PalletAllianceCid } from '@pezkuwi/types/lookup';
import type { PezpalletAllianceCid } from '@pezkuwi/types/lookup';
import type { Registry } from '@pezkuwi/types/types';
import type { Cid } from './types.js';
import { fromIpfsCid, toIpfsCid } from '@pezkuwi/react-params/util';
export function createPalletCid (registry: Registry, cid: string): PalletAllianceCid | null {
export function createPalletCid (registry: Registry, cid: string): PezpalletAllianceCid | null {
const expanded = fromIpfsCid(cid);
return expanded && registry.createType('PalletAllianceCid', expanded);
return expanded && registry.createType('PezpalletAllianceCid', expanded);
}
export function createCid (cid: PalletAllianceCid): Cid {
export function createCid (cid: PezpalletAllianceCid): Cid {
return {
cid,
ipfs: toIpfsCid(cid),