mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-22 03:17:58 +00:00
Rebrand: polkadot → pezkuwi
- Updated all package references - Fixed react-identicon and related packages - Version 3.16.8
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
# @polkadot/react-identicon
|
||||
# @pezkuwi/react-identicon
|
||||
|
||||
A generic identity icon that can render icons based on the theme, be it Substrate or Polkadot
|
||||
|
||||
## Usage Examples
|
||||
|
||||
To install the component, do `yarn add @polkadot/react-identicon`
|
||||
To install the component, do `yarn add @pezkuwi/react-identicon`
|
||||
|
||||
Inside a React component, you can now render any account with the associated icon -
|
||||
|
||||
```javascript
|
||||
import Identicon from '@polkadot/react-identicon';
|
||||
import Identicon from '@pezkuwi/react-identicon';
|
||||
|
||||
...
|
||||
render () {
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
{
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"bugs": "https://github.com/polkadot-js/ui/issues",
|
||||
"bugs": "https://github.com/pezkuwichain/ui/issues",
|
||||
"description": "Renders an SVG picture representing an address",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/react-identicon#readme",
|
||||
"homepage": "https://github.com/pezkuwichain/ui/tree/master/packages/react-identicon#readme",
|
||||
"license": "Apache-2.0",
|
||||
"name": "@polkadot/react-identicon",
|
||||
"name": "@pezkuwi/react-identicon",
|
||||
"repository": {
|
||||
"directory": "packages/react-identicon",
|
||||
"type": "git",
|
||||
"url": "https://github.com/polkadot-js/ui.git"
|
||||
"url": "https://github.com/pezkuwichain/ui.git"
|
||||
},
|
||||
"sideEffects": [
|
||||
"./packageDetect.js",
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "3.16.6",
|
||||
"version": "3.16.8",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^14.0.1",
|
||||
"@polkadot/ui-settings": "3.16.6",
|
||||
"@polkadot/ui-shared": "3.16.6",
|
||||
"@polkadot/util": "^14.0.1",
|
||||
"@polkadot/util-crypto": "^14.0.1",
|
||||
"@pezkuwi/keyring": "^14.0.5",
|
||||
"@pezkuwi/ui-settings": "3.16.6",
|
||||
"@pezkuwi/ui-shared": "3.16.6",
|
||||
"@pezkuwi/util": "^14.0.5",
|
||||
"@pezkuwi/util-crypto": "^14.0.5",
|
||||
"ethereum-blockies-base64": "^1.0.2",
|
||||
"jdenticon": "3.2.0",
|
||||
"react-copy-to-clipboard": "^5.1.0",
|
||||
@@ -38,9 +38,9 @@
|
||||
"xmlserializer": "^0.6.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/keyring": "*",
|
||||
"@polkadot/util": "*",
|
||||
"@polkadot/util-crypto": "*",
|
||||
"@pezkuwi/keyring": "*",
|
||||
"@pezkuwi/util": "*",
|
||||
"@pezkuwi/util-crypto": "*",
|
||||
"react": "*",
|
||||
"react-dom": "*",
|
||||
"react-is": "*"
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||
import type { Prefix } from '@pezkuwi/util-crypto/address/types';
|
||||
import type { IdentityProps as Props, Props as ComponentProps } from './types.js';
|
||||
|
||||
import React from 'react';
|
||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||
|
||||
import { ICON_DEFAULT_HOST, settings } from '@polkadot/ui-settings';
|
||||
import { isHex, isU8a, u8aToHex } from '@polkadot/util';
|
||||
import { decodeAddress, encodeAddress, ethereumEncode } from '@polkadot/util-crypto';
|
||||
import { ICON_DEFAULT_HOST, settings } from '@pezkuwi/ui-settings';
|
||||
import { isHex, isU8a, u8aToHex } from '@pezkuwi/util';
|
||||
import { decodeAddress, encodeAddress, ethereumEncode } from '@pezkuwi/util-crypto';
|
||||
|
||||
import { Beachball, Empty, Ethereum, Jdenticon, Polkadot } from './icons/index.js';
|
||||
import { styled } from './styled.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './icons/index.js';
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Props } from '../types.js';
|
||||
|
||||
import React, { useCallback } from 'react';
|
||||
|
||||
import { beachballIcon } from '@polkadot/ui-shared';
|
||||
import { beachballIcon } from '@pezkuwi/ui-shared';
|
||||
|
||||
function Identicon ({ address, className = '', size, style = {} }: Props): React.ReactElement<Props> {
|
||||
const updateElem = useCallback(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Props } from '../types.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Props } from '../types.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Props } from '../types.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2018-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2018-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Copyright 2018 Paritytech via paritytech/oo7/polkadot-identicon
|
||||
@@ -16,12 +16,12 @@
|
||||
// - Move constants to file-level
|
||||
// - Overall it is now just a static component, expecting an address as an input value
|
||||
|
||||
import type { Circle } from '@polkadot/ui-shared/icons/types';
|
||||
import type { Circle } from '@pezkuwi/ui-shared/icons/types';
|
||||
import type { Props } from '../types.js';
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
|
||||
import { polkadotIcon } from '@polkadot/ui-shared';
|
||||
import { polkadotIcon } from '@pezkuwi/ui-shared';
|
||||
|
||||
function renderCircle ({ cx, cy, fill, r }: Circle, key: number): React.ReactNode {
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { Beachball } from './Beachball.js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import './packageDetect.js';
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
// (packageInfo imports will be kept as-is, user-editable)
|
||||
|
||||
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
|
||||
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
import { packageInfo as settingsInfo } from '@pezkuwi/ui-settings/packageInfo';
|
||||
import { packageInfo as sharedInfo } from '@pezkuwi/ui-shared/packageInfo';
|
||||
import { detectPackage } from '@pezkuwi/util';
|
||||
|
||||
import { packageInfo } from './packageInfo.js';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2026 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/react-identicon', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
export const packageInfo = { name: '@pezkuwi/react-identicon', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2017-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { styled } from 'styled-components';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2018-2025 @polkadot/react-identicon authors & contributors
|
||||
// Copyright 2018-2025 @pezkuwi/react-identicon authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type React from 'react';
|
||||
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
||||
import type { Prefix } from '@pezkuwi/util-crypto/address/types';
|
||||
|
||||
export interface BaseProps {
|
||||
className?: string;
|
||||
|
||||
Reference in New Issue
Block a user