Rebrand: polkadot → pezkuwi build fixes

- Fixed TypeScript type assertion issues
- Updated imports from api-augment/substrate to api-augment/bizinikiwi
- Fixed imgConvert.mjs header and imports
- Added @ts-expect-error for runtime-converted types
- Fixed all @polkadot copyright headers to @pezkuwi
This commit is contained in:
2026-01-07 02:32:54 +03:00
parent fe2cd390f6
commit 1295c36241
4678 changed files with 26389 additions and 63316 deletions
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @polkadot/react-components authors & contributors
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionCallNamed } from '@polkadot/types/types';
import type { DefinitionCallNamed } from '@pezkuwi/types/types';
import type { DropdownOption } from '../util/types.js';
import React, { useCallback } from 'react';
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @polkadot/react-components authors & contributors
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionCallNamed } from '@polkadot/types/types';
import type { DefinitionCallNamed } from '@pezkuwi/types/types';
import type { DropdownOptions } from '../util/types.js';
import React from 'react';
@@ -1,9 +1,9 @@
// Copyright 2017-2025 @polkadot/react-components authors & contributors
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
// TODO: We have a lot shared between this and InputExtrinsic & InputStorage
import type { DefinitionCallNamed } from '@polkadot/types/types';
import type { DefinitionCallNamed } from '@pezkuwi/types/types';
import type { DropdownOptions } from '../util/types.js';
import React, { useCallback, useEffect, useState } from 'react';
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @polkadot/react-components authors & contributors
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionCallNamed } from '@polkadot/types/types';
import type { DefinitionCallNamed } from '@pezkuwi/types/types';
import type { DropdownOption, DropdownOptions } from '../../util/types.js';
import React from 'react';
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @polkadot/react-components authors & contributors
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DefinitionCallNamed } from '@polkadot/types/types';
import type { DefinitionCallNamed } from '@pezkuwi/types/types';
import type { DropdownOptions } from '../../util/types.js';
export default function createOptions (runtime: Record<string, Record<string, DefinitionCallNamed>>): DropdownOptions {
@@ -1,12 +1,12 @@
// Copyright 2017-2025 @polkadot/react-components authors & contributors
// Copyright 2017-2025 @pezkuwi/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ApiPromise } from '@polkadot/api';
import type { DefinitionCallNamed } from '@polkadot/types/types';
import type { ApiPromise } from '@pezkuwi/api';
import type { DefinitionCallNamed } from '@pezkuwi/types/types';
import { useMemo } from 'react';
import { createNamedHook, useApi } from '@polkadot/react-hooks';
import { createNamedHook, useApi } from '@pezkuwi/react-hooks';
function getEntries <T> (obj: Record<string, T>): [string, T][] {
return Object