mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-21 23:47: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:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-shared authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
module.exports = require('@polkadot/dev/config/prettier.cjs');
|
module.exports = require('@pezkuwi/dev/config/prettier.cjs');
|
||||||
|
|||||||
+934
File diff suppressed because one or more lines are too long
+1
-1
@@ -12,4 +12,4 @@ logFilters:
|
|||||||
|
|
||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-4.5.1.cjs
|
yarnPath: .yarn/releases/yarn-4.6.0.cjs
|
||||||
|
|||||||
+177
-177
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
# @polkadot/ui
|
# @pezkuwi/ui
|
||||||
|
|
||||||
Basic browser and framework agnostic UI components for creating apps using the polkadot{.js} libraries
|
Basic browser and framework agnostic UI components for creating apps using the polkadot{.js} libraries
|
||||||
|
|
||||||
@@ -13,6 +13,6 @@ The following UI components are currently available -
|
|||||||
|
|
||||||
Additionally some shared libraries, that are not dependent on any framework -
|
Additionally some shared libraries, that are not dependent on any framework -
|
||||||
|
|
||||||
- [ui-keyring](packages/ui-keyring/) A browser-specific wrapper around the base [@polkadot/keyring](https://github.com/polkadot-js/common/) library
|
- [ui-keyring](packages/ui-keyring/) A browser-specific wrapper around the base [@pezkuwi/keyring](https://github.com/pezkuwichain/common/) library
|
||||||
- [ui-settings](packages/ui-settings/) A browser local storage wrapper for app settings & configuration
|
- [ui-settings](packages/ui-settings/) A browser local storage wrapper for app settings & configuration
|
||||||
- [ui-shared](packages/ui-shared) Shared logic that is used across UI components, e.g. for icon generation
|
- [ui-shared](packages/ui-shared) Shared logic that is used across UI components, e.g. for icon generation
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-shared authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import baseConfig from '@polkadot/dev/config/eslint';
|
import baseConfig from '@pezkuwi/dev/config/eslint';
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
...baseConfig
|
...baseConfig
|
||||||
|
|||||||
+15
-15
@@ -1,20 +1,20 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/ui/issues",
|
"bugs": "https://github.com/pezkuwichain/ui/issues",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.14"
|
"node": ">=18.14"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/ui#readme",
|
"homepage": "https://github.com/pezkuwichain/ui#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"packageManager": "yarn@4.5.1",
|
"packageManager": "yarn@4.6.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/pezkuwichain/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "3.16.6",
|
"version": "3.16.8",
|
||||||
"versions": {
|
"versions": {
|
||||||
"git": "3.16.6",
|
"git": "3.16.6",
|
||||||
"npm": "3.16.6"
|
"npm": "3.16.6"
|
||||||
@@ -23,18 +23,18 @@
|
|||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "polkadot-dev-build-ts",
|
"build": "pezkuwi-dev-build-ts",
|
||||||
"build:release": "polkadot-ci-ghact-build",
|
"build:release": "pezkuwi-ci-ghact-build",
|
||||||
"build:rollup": "polkadot-exec-rollup --config",
|
"build:rollup": "pezkuwi-exec-rollup --config",
|
||||||
"clean": "polkadot-dev-clean-build",
|
"clean": "pezkuwi-dev-clean-build",
|
||||||
"lint": "polkadot-dev-run-lint",
|
"lint": "pezkuwi-dev-run-lint",
|
||||||
"postinstall": "polkadot-dev-yarn-only",
|
"postinstall": "pezkuwi-dev-yarn-only",
|
||||||
"test": "polkadot-dev-run-test --env browser",
|
"test": "pezkuwi-dev-run-test --env browser",
|
||||||
"test:one": "polkadot-dev-run-test --env browser"
|
"test:one": "pezkuwi-dev-run-test --env browser"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/dev": "^0.83.3",
|
"@pezkuwi/dev": "^0.85.2",
|
||||||
"@polkadot/x-bundle": "^14.0.1",
|
"@pezkuwi/x-bundle": "^14.0.5",
|
||||||
"@types/node": "^22.10.5",
|
"@types/node": "^22.10.5",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
|
|||||||
@@ -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
|
A generic identity icon that can render icons based on the theme, be it Substrate or Polkadot
|
||||||
|
|
||||||
## Usage Examples
|
## 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 -
|
Inside a React component, you can now render any account with the associated icon -
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import Identicon from '@polkadot/react-identicon';
|
import Identicon from '@pezkuwi/react-identicon';
|
||||||
|
|
||||||
...
|
...
|
||||||
render () {
|
render () {
|
||||||
|
|||||||
@@ -1,31 +1,31 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"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",
|
"description": "Renders an SVG picture representing an address",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"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",
|
"license": "Apache-2.0",
|
||||||
"name": "@polkadot/react-identicon",
|
"name": "@pezkuwi/react-identicon",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/react-identicon",
|
"directory": "packages/react-identicon",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/pezkuwichain/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"./packageDetect.js",
|
"./packageDetect.js",
|
||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "3.16.6",
|
"version": "3.16.8",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/keyring": "^14.0.1",
|
"@pezkuwi/keyring": "^14.0.5",
|
||||||
"@polkadot/ui-settings": "3.16.6",
|
"@pezkuwi/ui-settings": "3.16.6",
|
||||||
"@polkadot/ui-shared": "3.16.6",
|
"@pezkuwi/ui-shared": "3.16.6",
|
||||||
"@polkadot/util": "^14.0.1",
|
"@pezkuwi/util": "^14.0.5",
|
||||||
"@polkadot/util-crypto": "^14.0.1",
|
"@pezkuwi/util-crypto": "^14.0.5",
|
||||||
"ethereum-blockies-base64": "^1.0.2",
|
"ethereum-blockies-base64": "^1.0.2",
|
||||||
"jdenticon": "3.2.0",
|
"jdenticon": "3.2.0",
|
||||||
"react-copy-to-clipboard": "^5.1.0",
|
"react-copy-to-clipboard": "^5.1.0",
|
||||||
@@ -38,9 +38,9 @@
|
|||||||
"xmlserializer": "^0.6.1"
|
"xmlserializer": "^0.6.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/keyring": "*",
|
"@pezkuwi/keyring": "*",
|
||||||
"@polkadot/util": "*",
|
"@pezkuwi/util": "*",
|
||||||
"@polkadot/util-crypto": "*",
|
"@pezkuwi/util-crypto": "*",
|
||||||
"react": "*",
|
"react": "*",
|
||||||
"react-dom": "*",
|
"react-dom": "*",
|
||||||
"react-is": "*"
|
"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
|
// 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 type { IdentityProps as Props, Props as ComponentProps } from './types.js';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||||
|
|
||||||
import { ICON_DEFAULT_HOST, settings } from '@polkadot/ui-settings';
|
import { ICON_DEFAULT_HOST, settings } from '@pezkuwi/ui-settings';
|
||||||
import { isHex, isU8a, u8aToHex } from '@polkadot/util';
|
import { isHex, isU8a, u8aToHex } from '@pezkuwi/util';
|
||||||
import { decodeAddress, encodeAddress, ethereumEncode } from '@polkadot/util-crypto';
|
import { decodeAddress, encodeAddress, ethereumEncode } from '@pezkuwi/util-crypto';
|
||||||
|
|
||||||
import { Beachball, Empty, Ethereum, Jdenticon, Polkadot } from './icons/index.js';
|
import { Beachball, Empty, Ethereum, Jdenticon, Polkadot } from './icons/index.js';
|
||||||
import { styled } from './styled.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
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './icons/index.js';
|
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
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Props } from '../types.js';
|
import type { Props } from '../types.js';
|
||||||
|
|
||||||
import React, { useCallback } from 'react';
|
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> {
|
function Identicon ({ address, className = '', size, style = {} }: Props): React.ReactElement<Props> {
|
||||||
const updateElem = useCallback(
|
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
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Props } from '../types.js';
|
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
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Props } from '../types.js';
|
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
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Props } from '../types.js';
|
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
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Copyright 2018 Paritytech via paritytech/oo7/polkadot-identicon
|
// Copyright 2018 Paritytech via paritytech/oo7/polkadot-identicon
|
||||||
@@ -16,12 +16,12 @@
|
|||||||
// - Move constants to file-level
|
// - Move constants to file-level
|
||||||
// - Overall it is now just a static component, expecting an address as an input value
|
// - 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 type { Props } from '../types.js';
|
||||||
|
|
||||||
import React, { useMemo } from 'react';
|
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 {
|
function renderCircle ({ cx, cy, fill, r }: Circle, key: number): React.ReactNode {
|
||||||
return (
|
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
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { Beachball } from './Beachball.js';
|
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
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './packageDetect.js';
|
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
|
// 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)
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
|
import { packageInfo as settingsInfo } from '@pezkuwi/ui-settings/packageInfo';
|
||||||
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
import { packageInfo as sharedInfo } from '@pezkuwi/ui-shared/packageInfo';
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@pezkuwi/util';
|
||||||
|
|
||||||
import { packageInfo } from './packageInfo.js';
|
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
|
// 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
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { styled } from 'styled-components';
|
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
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type React from 'react';
|
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 {
|
export interface BaseProps {
|
||||||
className?: string;
|
className?: string;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# @polkadot/react-qr
|
# @pezkuwi/react-qr
|
||||||
|
|
||||||
A Qr-code component that allows for the transfer of addresses and transaction payloads to and from external readers. It implements the [Universal Offline Signatures](https://github.com/maciejhirsz/uos) specification to read and generated QR codes.
|
A Qr-code component that allows for the transfer of addresses and transaction payloads to and from external readers. It implements the [Universal Offline Signatures](https://github.com/maciejhirsz/uos) specification to read and generated QR codes.
|
||||||
|
|||||||
@@ -1,29 +1,29 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/ui/issues",
|
"bugs": "https://github.com/pezkuwichain/ui/issues",
|
||||||
"description": "Generates and reads QR codes",
|
"description": "Generates and reads QR codes",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/react-qr#readme",
|
"homepage": "https://github.com/pezkuwichain/ui/tree/master/packages/react-qr#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"name": "@polkadot/react-qr",
|
"name": "@pezkuwi/react-qr",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/react-qr",
|
"directory": "packages/react-qr",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/pezkuwichain/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"./packageDetect.js",
|
"./packageDetect.js",
|
||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "3.16.6",
|
"version": "3.16.8",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/ui-settings": "3.16.6",
|
"@pezkuwi/ui-settings": "3.16.6",
|
||||||
"@polkadot/util": "^14.0.1",
|
"@pezkuwi/util": "^14.0.5",
|
||||||
"@polkadot/util-crypto": "^14.0.1",
|
"@pezkuwi/util-crypto": "^14.0.5",
|
||||||
"@zxing/browser": "^0.1.5",
|
"@zxing/browser": "^0.1.5",
|
||||||
"@zxing/library": "^0.21.2",
|
"@zxing/library": "^0.21.2",
|
||||||
"qrcode-generator": "^1.4.4",
|
"qrcode-generator": "^1.4.4",
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/util": "*",
|
"@pezkuwi/util": "*",
|
||||||
"@polkadot/util-crypto": "*",
|
"@pezkuwi/util-crypto": "*",
|
||||||
"react": "*",
|
"react": "*",
|
||||||
"react-dom": "*",
|
"react-dom": "*",
|
||||||
"react-is": "*"
|
"react-is": "*"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||||
|
|
||||||
import { objectSpread } from '@polkadot/util';
|
import { objectSpread } from '@pezkuwi/util';
|
||||||
import { xxhashAsHex } from '@polkadot/util-crypto';
|
import { xxhashAsHex } from '@pezkuwi/util-crypto';
|
||||||
|
|
||||||
import { qrcode } from './qrcode.js';
|
import { qrcode } from './qrcode.js';
|
||||||
import { styled } from './styled.js';
|
import { styled } from './styled.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React, { useMemo } from 'react';
|
import React, { useMemo } from 'react';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import React, { useMemo } from 'react';
|
import React, { useMemo } from 'react';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { NetworkSpecsStruct } from '@polkadot/ui-settings/types';
|
import type { NetworkSpecsStruct } from '@pezkuwi/ui-settings/types';
|
||||||
|
|
||||||
import React, { useMemo } from 'react';
|
import React, { useMemo } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { BrowserQRCodeReader, type IScannerControls } from '@zxing/browser';
|
import { BrowserQRCodeReader, type IScannerControls } from '@zxing/browser';
|
||||||
@@ -19,7 +19,7 @@ interface Props {
|
|||||||
const DEFAULT_DELAY = 150;
|
const DEFAULT_DELAY = 150;
|
||||||
|
|
||||||
const DEFAULT_ERROR = (error: Error): void => {
|
const DEFAULT_ERROR = (error: Error): void => {
|
||||||
console.error('@polkadot/react-qr:Scan', error.message);
|
console.error('@pezkuwi/react-qr:Scan', error.message);
|
||||||
};
|
};
|
||||||
|
|
||||||
function Scan ({ className = '', delay = DEFAULT_DELAY, onError = DEFAULT_ERROR, onScan, size, style = {} }: Props): React.ReactElement<Props> {
|
function Scan ({ className = '', delay = DEFAULT_DELAY, onError = DEFAULT_ERROR, onScan, size, style = {} }: Props): React.ReactElement<Props> {
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@pezkuwi/util/types';
|
||||||
|
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
|
|
||||||
import { decodeAddress } from '@polkadot/util-crypto';
|
import { decodeAddress } from '@pezkuwi/util-crypto';
|
||||||
|
|
||||||
import { ADDRESS_PREFIX, SEED_PREFIX } from './constants.js';
|
import { ADDRESS_PREFIX, SEED_PREFIX } from './constants.js';
|
||||||
import { QrScan } from './Scan.js';
|
import { QrScan } from './Scan.js';
|
||||||
@@ -61,7 +61,7 @@ function ScanAddress ({ className, isEthereum, onError, onScan, size, style }: P
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
onError && onError(error as Error);
|
onError && onError(error as Error);
|
||||||
|
|
||||||
console.error('@polkadot/react-qr:QrScanAddress', (error as Error).message, data);
|
console.error('@pezkuwi/react-qr:QrScanAddress', (error as Error).message, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@pezkuwi/util/types';
|
||||||
|
|
||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { QrDisplayAddress } from './DisplayAddress.js';
|
export { QrDisplayAddress } from './DisplayAddress.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export const ADDRESS_PREFIX = 'substrate';
|
export const ADDRESS_PREFIX = 'substrate';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './packageDetect.js';
|
import './packageDetect.js';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2026 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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)
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@pezkuwi/util';
|
||||||
|
|
||||||
import { packageInfo } from './packageInfo.js';
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2026 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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-qr', path: 'auto', type: 'auto', version: '3.16.6' };
|
export const packageInfo = { name: '@pezkuwi/react-qr', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import _qrcode from 'qrcode-generator';
|
import _qrcode from 'qrcode-generator';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { styled } from 'styled-components';
|
export { styled } from 'styled-components';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { u8aConcat, u8aToHex, u8aToString } from '@polkadot/util';
|
import { u8aConcat, u8aToHex, u8aToString } from '@pezkuwi/util';
|
||||||
import { randomAsU8a } from '@polkadot/util-crypto';
|
import { randomAsU8a } from '@pezkuwi/util-crypto';
|
||||||
|
|
||||||
import { createAddressPayload, createFrames, createSignPayload, decodeString, encodeNumber, encodeString } from './util.js';
|
import { createAddressPayload, createFrames, createSignPayload, decodeString, encodeNumber, encodeString } from './util.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2025 @polkadot/react-qr authors & contributors
|
// Copyright 2017-2025 @pezkuwi/react-qr authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { isString, u8aConcat, u8aToU8a } from '@polkadot/util';
|
import { isString, u8aConcat, u8aToU8a } from '@pezkuwi/util';
|
||||||
import { decodeAddress } from '@polkadot/util-crypto';
|
import { decodeAddress } from '@pezkuwi/util-crypto';
|
||||||
|
|
||||||
import { ADDRESS_PREFIX, CRYPTO_SR25519, FRAME_SIZE, SUBSTRATE_ID } from './constants.js';
|
import { ADDRESS_PREFIX, CRYPTO_SR25519, FRAME_SIZE, SUBSTRATE_ID } from './constants.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
# @polkadot/reactnative-identicon
|
# @pezkuwi/reactnative-identicon
|
||||||
|
|
||||||
A generic identity icon that can render icons based on an address.
|
A generic identity icon that can render icons based on an address.
|
||||||
|
|
||||||
## Usage Examples
|
## Usage Examples
|
||||||
|
|
||||||
To install the component, do `yarn add @polkadot/reactnative-identicon`
|
To install the component, do `yarn add @pezkuwi/reactnative-identicon`
|
||||||
|
|
||||||
Inside a React component, you can now render any account with the associated icon -
|
Inside a React component, you can now render any account with the associated icon -
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import Identicon from '@polkadot/reactnative-identicon';
|
import Identicon from '@pezkuwi/reactnative-identicon';
|
||||||
|
|
||||||
...
|
...
|
||||||
render () {
|
render () {
|
||||||
|
|||||||
@@ -1,29 +1,29 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"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",
|
"description": "Renders an SVG picture representing an address",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/reactnative-identicon#readme",
|
"homepage": "https://github.com/pezkuwichain/ui/tree/master/packages/reactnative-identicon#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"name": "@polkadot/reactnative-identicon",
|
"name": "@pezkuwi/reactnative-identicon",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/reactnative-identicon",
|
"directory": "packages/reactnative-identicon",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/pezkuwichain/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"./packageDetect.js",
|
"./packageDetect.js",
|
||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "3.16.6",
|
"version": "3.16.8",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/ui-shared": "3.16.6",
|
"@pezkuwi/ui-shared": "3.16.6",
|
||||||
"@polkadot/util": "^14.0.1",
|
"@pezkuwi/util": "^14.0.5",
|
||||||
"@polkadot/util-crypto": "^14.0.1",
|
"@pezkuwi/util-crypto": "^14.0.5",
|
||||||
"react-native-svg": "^14.1.0",
|
"react-native-svg": "^14.1.0",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
"@types/react-native": "^0.72.8"
|
"@types/react-native": "^0.72.8"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/util": "*",
|
"@pezkuwi/util": "*",
|
||||||
"@polkadot/util-crypto": "*",
|
"@pezkuwi/util-crypto": "*",
|
||||||
"react": "*",
|
"react": "*",
|
||||||
"react-native": "*"
|
"react-native": "*"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
// Copyright 2017-2025 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2025 @pezkuwi/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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 { Props as ComponentProps } from './types.js';
|
import type { Props as ComponentProps } from './types.js';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { isHex, isU8a, u8aToHex } from '@polkadot/util';
|
import { isHex, isU8a, u8aToHex } from '@pezkuwi/util';
|
||||||
import { decodeAddress, encodeAddress } from '@polkadot/util-crypto';
|
import { decodeAddress, encodeAddress } from '@pezkuwi/util-crypto';
|
||||||
|
|
||||||
import { Empty, Polkadot } from './icons/index.js';
|
import { Empty, Polkadot } from './icons/index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2025 @pezkuwi/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './icons/index.js';
|
export * from './icons/index.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2025 @pezkuwi/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Props } from '../types.js';
|
import type { Props } from '../types.js';
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
// Copyright 2018-2025 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2018-2025 @pezkuwi/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Circle as CircleType } from '@polkadot/ui-shared/icons/types';
|
import type { Circle as CircleType } from '@pezkuwi/ui-shared/icons/types';
|
||||||
import type { Props } from '../types.js';
|
import type { Props } from '../types.js';
|
||||||
|
|
||||||
import React, { useMemo } from 'react';
|
import React, { useMemo } from 'react';
|
||||||
import { View } from 'react-native';
|
import { View } from 'react-native';
|
||||||
import { Circle as SvgCircle, Svg } from 'react-native-svg';
|
import { Circle as SvgCircle, Svg } from 'react-native-svg';
|
||||||
|
|
||||||
import { polkadotIcon } from '@polkadot/ui-shared';
|
import { polkadotIcon } from '@pezkuwi/ui-shared';
|
||||||
|
|
||||||
function renderCircle ({ cx, cy, fill, r }: CircleType, key: number): React.ReactNode {
|
function renderCircle ({ cx, cy, fill, r }: CircleType, key: number): React.ReactNode {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2025 @pezkuwi/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { default as Empty } from './Empty.js';
|
export { default as Empty } from './Empty.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2025 @pezkuwi/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './packageDetect.js';
|
import './packageDetect.js';
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2025 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2026 @pezkuwi/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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)
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
import { packageInfo as sharedInfo } from '@polkadot/ui-shared/packageInfo';
|
import { packageInfo as sharedInfo } from '@pezkuwi/ui-shared/packageInfo';
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@pezkuwi/util';
|
||||||
|
|
||||||
import { packageInfo } from './packageInfo.js';
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2025 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2017-2026 @pezkuwi/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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/reactnative-identicon', path: 'auto', type: 'auto', version: '3.16.6' };
|
export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2018-2025 @polkadot/reactnative-identicon authors & contributors
|
// Copyright 2018-2025 @pezkuwi/reactnative-identicon authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# @polkadot/ui-keyring
|
# @pezkuwi/ui-keyring
|
||||||
|
|
||||||
A wrapper extending the base @polkadot/keyring interface for usage in the browser:
|
A wrapper extending the base @pezkuwi/keyring interface for usage in the browser:
|
||||||
Key management of user accounts including generation and retrieval of keyring pairs from a variety of input combinations.
|
Key management of user accounts including generation and retrieval of keyring pairs from a variety of input combinations.
|
||||||
|
|
||||||
## Usage Examples
|
## Usage Examples
|
||||||
@@ -10,7 +10,7 @@ All module methods are exposed through a single default export.
|
|||||||
### Regular
|
### Regular
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import keyring from @polkadot/ui-keyring
|
import keyring from @pezkuwi/ui-keyring
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
// encode publicKey to ss58 address
|
// encode publicKey to ss58 address
|
||||||
@@ -36,8 +36,8 @@ render () {
|
|||||||
Option 1: Declarative subscribe/unsubscribe w/ react-with-observable (recommended 'React' way)
|
Option 1: Declarative subscribe/unsubscribe w/ react-with-observable (recommended 'React' way)
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import accountObservable from '@polkadot/ui-keyring/observable/accounts';
|
import accountObservable from '@pezkuwi/ui-keyring/observable/accounts';
|
||||||
import { SingleAddress, SubjectInfo } from '@polkadot/ui-keyring/observable/types';
|
import { SingleAddress, SubjectInfo } from '@pezkuwi/ui-keyring/observable/types';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Subscribe } from 'react-with-observable';
|
import { Subscribe } from 'react-with-observable';
|
||||||
import { map } from 'rxjs';
|
import { map } from 'rxjs';
|
||||||
@@ -69,8 +69,8 @@ class MyReactComponent extends React.PureComponent {
|
|||||||
Option 2: Imperative subscribe/unsubscribe
|
Option 2: Imperative subscribe/unsubscribe
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import accountObservable from '@polkadot/ui-keyring/observable/accounts';
|
import accountObservable from '@pezkuwi/ui-keyring/observable/accounts';
|
||||||
import { SingleAddress, SubjectInfo } from '@polkadot/ui-keyring/observable/types';
|
import { SingleAddress, SubjectInfo } from '@pezkuwi/ui-keyring/observable/types';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
|
|
||||||
@@ -125,12 +125,12 @@ class MyReactComponent extends React.PureComponent<State> {
|
|||||||
- SS58 Encode / Decode?
|
- SS58 Encode / Decode?
|
||||||
- SS58 is a simple address format designed for Substrate based chains. You can read about its specification in more detail in the [Substrate Documentation](https://docs.substrate.io/reference/address-formats/).
|
- SS58 is a simple address format designed for Substrate based chains. You can read about its specification in more detail in the [Substrate Documentation](https://docs.substrate.io/reference/address-formats/).
|
||||||
|
|
||||||
**If you have any unanswered/undocumented questions, please raise an issue [here](https://github.com/polkadot-js/ui/issues).**
|
**If you have any unanswered/undocumented questions, please raise an issue [here](https://github.com/pezkuwichain/ui/issues).**
|
||||||
|
|
||||||
|
|
||||||
## Users
|
## Users
|
||||||
|
|
||||||
Keyring is core to many polkadot/substrate apps.
|
Keyring is core to many polkadot/substrate apps.
|
||||||
|
|
||||||
* [polkadot-js/apps](https://github.com/polkadot-js/apps)
|
* [pezkuwichain/apps](https://github.com/pezkuwichain/apps)
|
||||||
* [paritytech/substrate-light-ui](https://github.com/paritytech/substrate-light-ui)
|
* [paritytech/substrate-light-ui](https://github.com/paritytech/substrate-light-ui)
|
||||||
|
|||||||
@@ -1,29 +1,29 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/ui/issues",
|
"bugs": "https://github.com/pezkuwichain/ui/issues",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-keyring#readme",
|
"homepage": "https://github.com/pezkuwichain/ui/tree/master/packages/ui-keyring#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"name": "@polkadot/ui-keyring",
|
"name": "@pezkuwi/ui-keyring",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/ui-keyring",
|
"directory": "packages/ui-keyring",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/pezkuwichain/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"./packageDetect.js",
|
"./packageDetect.js",
|
||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "3.16.6",
|
"version": "3.16.8",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/keyring": "^14.0.1",
|
"@pezkuwi/keyring": "^14.0.5",
|
||||||
"@polkadot/ui-settings": "3.16.6",
|
"@pezkuwi/ui-settings": "3.16.6",
|
||||||
"@polkadot/util": "^14.0.1",
|
"@pezkuwi/util": "^14.0.5",
|
||||||
"@polkadot/util-crypto": "^14.0.1",
|
"@pezkuwi/util-crypto": "^14.0.5",
|
||||||
"mkdirp": "^3.0.1",
|
"mkdirp": "^3.0.1",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"store": "^2.0.12",
|
"store": "^2.0.12",
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
"@types/store": "^2.0.5"
|
"@types/store": "^2.0.5"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/keyring": "*",
|
"@pezkuwi/keyring": "*",
|
||||||
"@polkadot/ui-settings": "*",
|
"@pezkuwi/ui-settings": "*",
|
||||||
"@polkadot/util": "*"
|
"@pezkuwi/util": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringInstance, KeyringPair } from '@polkadot/keyring/types';
|
import type { KeyringInstance, KeyringPair } from '@pezkuwi/keyring/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@pezkuwi/util/types';
|
||||||
import type { Prefix } from '@polkadot/util-crypto/address/types';
|
import type { Prefix } from '@pezkuwi/util-crypto/address/types';
|
||||||
import type { AddressSubject } from './observable/types.js';
|
import type { AddressSubject } from './observable/types.js';
|
||||||
import type { KeyringOptions, KeyringStore } from './types.js';
|
import type { KeyringOptions, KeyringStore } from './types.js';
|
||||||
|
|
||||||
import { createTestKeyring } from '@polkadot/keyring';
|
import { createTestKeyring } from '@pezkuwi/keyring';
|
||||||
import { isBoolean, isNumber, isString } from '@polkadot/util';
|
import { isBoolean, isNumber, isString } from '@pezkuwi/util';
|
||||||
|
|
||||||
import { accounts } from './observable/accounts.js';
|
import { accounts } from './observable/accounts.js';
|
||||||
import { addresses } from './observable/addresses.js';
|
import { addresses } from './observable/addresses.js';
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@polkadot/keyring/types';
|
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@pezkuwi/keyring/types';
|
||||||
import type { BN } from '@polkadot/util';
|
import type { BN } from '@pezkuwi/util';
|
||||||
import type { EncryptedJson } from '@polkadot/util-crypto/json/types';
|
import type { EncryptedJson } from '@pezkuwi/util-crypto/json/types';
|
||||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||||
import type { AddressSubject, SingleAddress } from './observable/types.js';
|
import type { AddressSubject, SingleAddress } from './observable/types.js';
|
||||||
import type { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType, KeyringJson, KeyringJson$Meta, KeyringOptions, KeyringPairs$Json, KeyringStruct } from './types.js';
|
import type { CreateResult, KeyringAddress, KeyringAddressType, KeyringItemType, KeyringJson, KeyringJson$Meta, KeyringOptions, KeyringPairs$Json, KeyringStruct } from './types.js';
|
||||||
|
|
||||||
import { createPair } from '@polkadot/keyring';
|
import { createPair } from '@pezkuwi/keyring';
|
||||||
import { chains } from '@polkadot/ui-settings';
|
import { chains } from '@pezkuwi/ui-settings';
|
||||||
import { bnToBn, hexToU8a, isFunction, isHex, isString, objectSpread, stringify, stringToU8a, u8aSorted, u8aToString } from '@polkadot/util';
|
import { bnToBn, hexToU8a, isFunction, isHex, isString, objectSpread, stringify, stringToU8a, u8aSorted, u8aToString } from '@pezkuwi/util';
|
||||||
import { base64Decode, createKeyMulti, jsonDecrypt, jsonEncrypt } from '@polkadot/util-crypto';
|
import { base64Decode, createKeyMulti, jsonDecrypt, jsonEncrypt } from '@pezkuwi/util-crypto';
|
||||||
|
|
||||||
import { env } from './observable/env.js';
|
import { env } from './observable/env.js';
|
||||||
import { KeyringOption } from './options/index.js';
|
import { KeyringOption } from './options/index.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Keyring } from './Keyring.js';
|
import { Keyring } from './Keyring.js';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { decodeAddress } from '@polkadot/keyring';
|
import { decodeAddress } from '@pezkuwi/keyring';
|
||||||
import { u8aToHex } from '@polkadot/util';
|
import { u8aToHex } from '@pezkuwi/util';
|
||||||
|
|
||||||
const ACCOUNT_PREFIX = 'account:';
|
const ACCOUNT_PREFIX = 'account:';
|
||||||
const ADDRESS_PREFIX = 'address:';
|
const ADDRESS_PREFIX = 'address:';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import './packageDetect.js';
|
import './packageDetect.js';
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Be able to import json in TS
|
// Be able to import json in TS
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { accountKey } from '../defaults.js';
|
import { accountKey } from '../defaults.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { addressKey } from '../defaults.js';
|
import { addressKey } from '../defaults.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { contractKey } from '../defaults.js';
|
import { contractKey } from '../defaults.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||||
import type { KeyringJson, KeyringStore } from '../types.js';
|
import type { KeyringJson, KeyringStore } from '../types.js';
|
||||||
import type { AddressSubject, SingleAddress, SubjectInfo } from './types.js';
|
import type { AddressSubject, SingleAddress, SubjectInfo } from './types.js';
|
||||||
|
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
|
|
||||||
import { objectCopy, objectSpread } from '@polkadot/util';
|
import { objectCopy, objectSpread } from '@pezkuwi/util';
|
||||||
|
|
||||||
import { createOptionItem } from '../options/item.js';
|
import { createOptionItem } from '../options/item.js';
|
||||||
import { env } from './env.js';
|
import { env } from './env.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { SubjectInfo } from './types.js';
|
import type { SubjectInfo } from './types.js';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { BehaviorSubject } from 'rxjs';
|
import type { BehaviorSubject } from 'rxjs';
|
||||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||||
import type { KeyringSectionOption } from '../options/types.js';
|
import type { KeyringSectionOption } from '../options/types.js';
|
||||||
import type { KeyringJson, KeyringStore } from '../types.js';
|
import type { KeyringJson, KeyringStore } from '../types.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Subscription } from 'rxjs';
|
import type { Subscription } from 'rxjs';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringSectionOption } from './types.js';
|
import type { KeyringSectionOption } from './types.js';
|
||||||
|
|
||||||
import { isUndefined } from '@polkadot/util';
|
import { isUndefined } from '@pezkuwi/util';
|
||||||
|
|
||||||
export function createOptionItem (address: string, _name?: string): KeyringSectionOption {
|
export function createOptionItem (address: string, _name?: string): KeyringSectionOption {
|
||||||
const name = isUndefined(_name)
|
const name = isUndefined(_name)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringItemType, KeyringStruct } from '../types.js';
|
import type { KeyringItemType, KeyringStruct } from '../types.js';
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2026 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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)
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
import { packageInfo as settingsInfo } from '@polkadot/ui-settings/packageInfo';
|
import { packageInfo as settingsInfo } from '@pezkuwi/ui-settings/packageInfo';
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@pezkuwi/util';
|
||||||
|
|
||||||
import { packageInfo } from './packageInfo.js';
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2026 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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/ui-keyring', path: 'auto', type: 'auto', version: '3.16.6' };
|
export const packageInfo = { name: '@pezkuwi/ui-keyring', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringJson, KeyringStore } from '../types.js';
|
import type { KeyringJson, KeyringStore } from '../types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringJson, KeyringStore } from '../types.js';
|
import type { KeyringJson, KeyringStore } from '../types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export { BrowserStore } from './Browser.js';
|
export { BrowserStore } from './Browser.js';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-keyring authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-keyring authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { KeyringInstance as BaseKeyringInstance, KeyringOptions as KeyringOptionsBase, KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@polkadot/keyring/types';
|
import type { KeyringInstance as BaseKeyringInstance, KeyringOptions as KeyringOptionsBase, KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '@pezkuwi/keyring/types';
|
||||||
import type { HexString } from '@polkadot/util/types';
|
import type { HexString } from '@pezkuwi/util/types';
|
||||||
import type { EncryptedJson } from '@polkadot/util-crypto/json/types';
|
import type { EncryptedJson } from '@pezkuwi/util-crypto/json/types';
|
||||||
import type { KeypairType } from '@polkadot/util-crypto/types';
|
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||||
import type { AddressSubject, SingleAddress } from './observable/types.js';
|
import type { AddressSubject, SingleAddress } from './observable/types.js';
|
||||||
|
|
||||||
export type ContractMeta = NonNullable<KeyringPair$Meta['contract']>;
|
export type ContractMeta = NonNullable<KeyringPair$Meta['contract']>;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# @polkadot/ui-settings
|
# @pezkuwi/ui-settings
|
||||||
|
|
||||||
Manages app settings including endpoints, themes and prefixes
|
Manages app settings including endpoints, themes and prefixes
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ Manages app settings including endpoints, themes and prefixes
|
|||||||
User preferences are set as a settings object in the browser's local storage.
|
User preferences are set as a settings object in the browser's local storage.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import settings from '@polkadot/ui-settings';
|
import settings from '@pezkuwi/ui-settings';
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
// get api endpoint for the selected chain
|
// get api endpoint for the selected chain
|
||||||
@@ -36,5 +36,5 @@ render () {
|
|||||||
|
|
||||||
Apps that currently use the settings package
|
Apps that currently use the settings package
|
||||||
|
|
||||||
* [polkadot-js/apps](https://www.github.com/polkadot-js/apps)
|
* [pezkuwichain/apps](https://www.github.com/pezkuwichain/apps)
|
||||||
* [paritytech/substrate-light-ui](https://github.com/paritytech/substrate-light-ui)
|
* [paritytech/substrate-light-ui](https://github.com/paritytech/substrate-light-ui)
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/ui/issues",
|
"bugs": "https://github.com/pezkuwichain/ui/issues",
|
||||||
"description": "Manages app settings",
|
"description": "Manages app settings",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-settings#readme",
|
"homepage": "https://github.com/pezkuwichain/ui/tree/master/packages/ui-settings#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"name": "@polkadot/ui-settings",
|
"name": "@pezkuwi/ui-settings",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/ui-settings",
|
"directory": "packages/ui-settings",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/pezkuwichain/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"./packageDetect.js",
|
"./packageDetect.js",
|
||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "3.16.6",
|
"version": "3.16.8",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@polkadot/networks": "^14.0.1",
|
"@pezkuwi/networks": "^14.0.5",
|
||||||
"@polkadot/util": "^14.0.1",
|
"@pezkuwi/util": "^14.0.5",
|
||||||
"eventemitter3": "^5.0.1",
|
"eventemitter3": "^5.0.1",
|
||||||
"store": "^2.0.12",
|
"store": "^2.0.12",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
"@types/store": "^2.0.5"
|
"@types/store": "^2.0.5"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/networks": "*",
|
"@pezkuwi/networks": "*",
|
||||||
"@polkadot/util": "*"
|
"@pezkuwi/util": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Endpoint, EndpointType, Option, SettingsStruct } from './types.js';
|
import type { Endpoint, EndpointType, Option, SettingsStruct } from './types.js';
|
||||||
@@ -6,7 +6,7 @@ import type { Endpoint, EndpointType, Option, SettingsStruct } from './types.js'
|
|||||||
import { EventEmitter } from 'eventemitter3';
|
import { EventEmitter } from 'eventemitter3';
|
||||||
import store from 'store';
|
import store from 'store';
|
||||||
|
|
||||||
import { hasProcess, isUndefined } from '@polkadot/util';
|
import { hasProcess, isUndefined } from '@pezkuwi/util';
|
||||||
|
|
||||||
import { CAMERA, CAMERA_DEFAULT, CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICONS, LANGUAGE_DEFAULT, LEDGER_APP, LEDGER_APP_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT, LOCKING, LOCKING_DEFAULT, METADATA_UP, METADATA_UP_DEFAULT, NOTIFICATION_DEFAULT, PREFIX_DEFAULT, PREFIXES, STORAGE, STORAGE_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './defaults/index.js';
|
import { CAMERA, CAMERA_DEFAULT, CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER, ENDPOINT_DEFAULT, ENDPOINTS, ICON_DEFAULT, ICONS, LANGUAGE_DEFAULT, LEDGER_APP, LEDGER_APP_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT, LOCKING, LOCKING_DEFAULT, METADATA_UP, METADATA_UP_DEFAULT, NOTIFICATION_DEFAULT, PREFIX_DEFAULT, PREFIXES, STORAGE, STORAGE_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './defaults/index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { Settings, settings } from './Settings.js';
|
import { Settings, settings } from './Settings.js';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { selectableNetworks } from '@polkadot/networks';
|
import { selectableNetworks } from '@pezkuwi/networks';
|
||||||
import { objectSpread } from '@polkadot/util';
|
import { objectSpread } from '@pezkuwi/util';
|
||||||
|
|
||||||
type ChainDef = string[];
|
type ChainDef = string[];
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Option } from '../types.js';
|
import type { Option } from '../types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Option } from '../types.js';
|
import type { Option } from '../types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Option } from '../types.js';
|
import type { Option } from '../types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Option } from '../types.js';
|
import type { Option } from '../types.js';
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Option } from '../types.js';
|
import type { Option } from '../types.js';
|
||||||
|
|
||||||
import { availableNetworks } from '@polkadot/networks';
|
import { availableNetworks } from '@pezkuwi/networks';
|
||||||
|
|
||||||
export const PREFIX_DEFAULT = -1;
|
export const PREFIX_DEFAULT = -1;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// matches https://polkadot.js.org & https://*.polkadot.io
|
// matches https://polkadot.js.org & https://*.polkadot.io
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Option } from '../types.js';
|
import type { Option } from '../types.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import { settings } from './bundle.js';
|
import { settings } from './bundle.js';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2026 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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)
|
// (packageInfo imports will be kept as-is, user-editable)
|
||||||
|
|
||||||
import { detectPackage } from '@polkadot/util';
|
import { detectPackage } from '@pezkuwi/util';
|
||||||
|
|
||||||
import { packageInfo } from './packageInfo.js';
|
import { packageInfo } from './packageInfo.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2026 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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/ui-settings', path: 'auto', type: 'auto', version: '3.16.6' };
|
export const packageInfo = { name: '@pezkuwi/ui-settings', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-settings authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export interface Option {
|
export interface Option {
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# @polkadot/ui-shared
|
# @pezkuwi/ui-shared
|
||||||
|
|
||||||
Shared logic for various logic. For identicon generation used inside the `@polkadot/{react, reactnative, vue}-identicon` icons.
|
Shared logic for various logic. For identicon generation used inside the `@pezkuwi/{react, reactnative, vue}-identicon` icons.
|
||||||
|
|||||||
@@ -1,37 +1,37 @@
|
|||||||
{
|
{
|
||||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||||
"bugs": "https://github.com/polkadot-js/ui/issues",
|
"bugs": "https://github.com/pezkuwichain/ui/issues",
|
||||||
"description": "Shared logic that is usable accross all frameworks-specific areas",
|
"description": "Shared logic that is usable accross all frameworks-specific areas",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-shared#readme",
|
"homepage": "https://github.com/pezkuwichain/ui/tree/master/packages/ui-shared#readme",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"name": "@polkadot/ui-shared",
|
"name": "@pezkuwi/ui-shared",
|
||||||
"repository": {
|
"repository": {
|
||||||
"directory": "packages/ui-shared",
|
"directory": "packages/ui-shared",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/pezkuwichain/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"./packageDetect.js",
|
"./packageDetect.js",
|
||||||
"./packageDetect.cjs"
|
"./packageDetect.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "3.16.6",
|
"version": "3.16.8",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"colord": "^2.9.3",
|
"colord": "^2.9.3",
|
||||||
"tslib": "^2.8.1"
|
"tslib": "^2.8.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/util": "^14.0.1",
|
"@pezkuwi/util": "^14.0.5",
|
||||||
"@polkadot/util-crypto": "^14.0.1",
|
"@pezkuwi/util-crypto": "^14.0.5",
|
||||||
"@types/xmlserializer": "^0.6.6",
|
"@types/xmlserializer": "^0.6.6",
|
||||||
"xmlserializer": "^0.6.1"
|
"xmlserializer": "^0.6.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/util": "*",
|
"@pezkuwi/util": "*",
|
||||||
"@polkadot/util-crypto": "*"
|
"@pezkuwi/util-crypto": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2018-2025 @polkadot/ui-shared authors & contributors
|
// Copyright 2018-2025 @pezkuwi/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
export * from './icons/index.js';
|
export * from './icons/index.js';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# @polkadot/ui-shared/beachball
|
# @pezkuwi/ui-shared/beachball
|
||||||
|
|
||||||
Adapted from [Jazzicon](https://github.com/danfinlay/jazzicon) by Dan Finlay with the following changes -
|
Adapted from [Jazzicon](https://github.com/danfinlay/jazzicon) by Dan Finlay with the following changes -
|
||||||
|
|
||||||
@@ -16,4 +16,4 @@ Adapted from [Jazzicon](https://github.com/danfinlay/jazzicon) by Dan Finlay wit
|
|||||||
|
|
||||||
Also see [src/demo.js](src/demo.js) for a randomly generated example.
|
Also see [src/demo.js](src/demo.js) for a randomly generated example.
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-shared authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import type { ColorGen } from './types.js';
|
import type { ColorGen } from './types.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-shared authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Copyright 2016 Dan Finlay
|
// Copyright 2016 Dan Finlay
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-shared authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/// <reference types="@polkadot/dev-test/globals.d.ts" />
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
||||||
|
|
||||||
import { container } from './container.js';
|
import { container } from './container.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-shared authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Copyright 2016 Dan Finlay
|
// Copyright 2016 Dan Finlay
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2025 @polkadot/ui-shared authors & contributors
|
// Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Copyright 2016 Dan Finlay
|
// Copyright 2016 Dan Finlay
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user