@pezkuwi/reactnative-identicon 3.16.7 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Identicon.d.ts +1 -1
- package/build/Identicon.js +4 -4
- package/build/cjs/Identicon.d.ts +1 -1
- package/build/cjs/Identicon.js +3 -3
- package/build/cjs/icons/{Polkadot.js → Pezkuwi.js} +1 -1
- package/build/cjs/icons/index.d.ts +1 -1
- package/build/cjs/icons/index.js +3 -3
- package/build/cjs/packageInfo.js +1 -1
- package/build/icons/{Polkadot.js → Pezkuwi.js} +2 -2
- package/build/icons/index.d.ts +1 -1
- package/build/icons/index.js +1 -1
- package/build/package.json +8 -8
- package/build/packageInfo.js +1 -1
- package/build-tsc/Identicon.d.ts +1 -1
- package/build-tsc/icons/index.d.ts +1 -1
- package/build-tsc-cjs/Identicon.js +3 -3
- package/build-tsc-cjs/icons/{Polkadot.js → Pezkuwi.js} +1 -1
- package/build-tsc-cjs/icons/index.js +3 -3
- package/build-tsc-cjs/packageInfo.js +1 -1
- package/build-tsc-esm/Identicon.js +4 -4
- package/build-tsc-esm/icons/{Polkadot.js → Pezkuwi.js} +2 -2
- package/build-tsc-esm/icons/index.js +1 -1
- package/build-tsc-esm/packageInfo.js +1 -1
- package/package.json +1 -1
- package/src/Identicon.tsx +5 -5
- package/src/icons/{Polkadot.tsx → Pezkuwi.tsx} +2 -2
- package/src/icons/index.ts +1 -1
- package/src/packageInfo.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- /package/build/cjs/icons/{Polkadot.d.ts → Pezkuwi.d.ts} +0 -0
- /package/build/icons/{Polkadot.d.ts → Pezkuwi.d.ts} +0 -0
- /package/build-tsc/icons/{Polkadot.d.ts → Pezkuwi.d.ts} +0 -0
package/build/Identicon.d.ts
CHANGED
package/build/Identicon.js
CHANGED
|
@@ -2,12 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { isHex, isU8a, u8aToHex } from '@pezkuwi/util';
|
|
4
4
|
import { decodeAddress, encodeAddress } from '@pezkuwi/util-crypto';
|
|
5
|
-
import { Empty,
|
|
6
|
-
const Fallback =
|
|
5
|
+
import { Empty, Pezkuwi } from './icons/index.js';
|
|
6
|
+
const Fallback = Pezkuwi;
|
|
7
7
|
const DEFAULT_SIZE = 64;
|
|
8
|
-
const DEFAULT_THEME = '
|
|
8
|
+
const DEFAULT_THEME = 'pezkuwi';
|
|
9
9
|
const Components = {
|
|
10
|
-
|
|
10
|
+
pezkuwi: Pezkuwi
|
|
11
11
|
};
|
|
12
12
|
export default class IdentityIcon extends React.PureComponent {
|
|
13
13
|
state = {
|
package/build/cjs/Identicon.d.ts
CHANGED
package/build/cjs/Identicon.js
CHANGED
|
@@ -6,11 +6,11 @@ const react_1 = tslib_1.__importDefault(require("react"));
|
|
|
6
6
|
const util_1 = require("@pezkuwi/util");
|
|
7
7
|
const util_crypto_1 = require("@pezkuwi/util-crypto");
|
|
8
8
|
const index_js_1 = require("./icons/index.js");
|
|
9
|
-
const Fallback = index_js_1.
|
|
9
|
+
const Fallback = index_js_1.Pezkuwi;
|
|
10
10
|
const DEFAULT_SIZE = 64;
|
|
11
|
-
const DEFAULT_THEME = '
|
|
11
|
+
const DEFAULT_THEME = 'pezkuwi';
|
|
12
12
|
const Components = {
|
|
13
|
-
|
|
13
|
+
pezkuwi: index_js_1.Pezkuwi
|
|
14
14
|
};
|
|
15
15
|
class IdentityIcon extends react_1.default.PureComponent {
|
|
16
16
|
state = {
|
|
@@ -11,6 +11,6 @@ function renderCircle({ cx, cy, fill, r }, key) {
|
|
|
11
11
|
return ((0, jsx_runtime_1.jsx)(react_native_svg_1.Circle, { cx: cx, cy: cy, fill: fill, r: r }, key));
|
|
12
12
|
}
|
|
13
13
|
function Identicon({ address, isAlternative = false, size }) {
|
|
14
|
-
const circles = (0, react_1.useMemo)(() => (0, ui_shared_1.
|
|
14
|
+
const circles = (0, react_1.useMemo)(() => (0, ui_shared_1.pezkuwiIcon)(address, { isAlternative }), [address, isAlternative]);
|
|
15
15
|
return ((0, jsx_runtime_1.jsx)(react_native_1.View, { children: (0, jsx_runtime_1.jsx)(react_native_svg_1.Svg, { height: size, id: address, viewBox: '0 0 64 64', width: size, children: circles.map(renderCircle) }) }));
|
|
16
16
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Empty } from './Empty.js';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as Pezkuwi } from './Pezkuwi.js';
|
package/build/cjs/icons/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Pezkuwi = exports.Empty = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var Empty_js_1 = require("./Empty.js");
|
|
6
6
|
Object.defineProperty(exports, "Empty", { enumerable: true, get: function () { return tslib_1.__importDefault(Empty_js_1).default; } });
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(exports, "
|
|
7
|
+
var Pezkuwi_js_1 = require("./Pezkuwi.js");
|
|
8
|
+
Object.defineProperty(exports, "Pezkuwi", { enumerable: true, get: function () { return tslib_1.__importDefault(Pezkuwi_js_1).default; } });
|
package/build/cjs/packageInfo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@pezkuwi/reactnative-identicon', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.
|
|
4
|
+
exports.packageInfo = { name: '@pezkuwi/reactnative-identicon', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.17.0' };
|
|
@@ -2,11 +2,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { Circle as SvgCircle, Svg } from 'react-native-svg';
|
|
5
|
-
import {
|
|
5
|
+
import { pezkuwiIcon } from '@pezkuwi/ui-shared';
|
|
6
6
|
function renderCircle({ cx, cy, fill, r }, key) {
|
|
7
7
|
return (_jsx(SvgCircle, { cx: cx, cy: cy, fill: fill, r: r }, key));
|
|
8
8
|
}
|
|
9
9
|
export default function Identicon({ address, isAlternative = false, size }) {
|
|
10
|
-
const circles = useMemo(() =>
|
|
10
|
+
const circles = useMemo(() => pezkuwiIcon(address, { isAlternative }), [address, isAlternative]);
|
|
11
11
|
return (_jsx(View, { children: _jsx(Svg, { height: size, id: address, viewBox: '0 0 64 64', width: size, children: circles.map(renderCircle) }) }));
|
|
12
12
|
}
|
package/build/icons/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Empty } from './Empty.js';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as Pezkuwi } from './Pezkuwi.js';
|
package/build/icons/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Empty } from './Empty.js';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as Pezkuwi } from './Pezkuwi.js';
|
package/build/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "3.
|
|
21
|
+
"version": "3.17.0",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -81,18 +81,18 @@
|
|
|
81
81
|
"default": "./icons/Empty.js"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
-
"./icons/
|
|
84
|
+
"./icons/Pezkuwi": {
|
|
85
85
|
"module": {
|
|
86
|
-
"types": "./icons/
|
|
87
|
-
"default": "./icons/
|
|
86
|
+
"types": "./icons/Pezkuwi.d.ts",
|
|
87
|
+
"default": "./icons/Pezkuwi.js"
|
|
88
88
|
},
|
|
89
89
|
"require": {
|
|
90
|
-
"types": "./cjs/icons/
|
|
91
|
-
"default": "./cjs/icons/
|
|
90
|
+
"types": "./cjs/icons/Pezkuwi.d.ts",
|
|
91
|
+
"default": "./cjs/icons/Pezkuwi.js"
|
|
92
92
|
},
|
|
93
93
|
"default": {
|
|
94
|
-
"types": "./icons/
|
|
95
|
-
"default": "./icons/
|
|
94
|
+
"types": "./icons/Pezkuwi.d.ts",
|
|
95
|
+
"default": "./icons/Pezkuwi.js"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"./Identicon": {
|
package/build/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.
|
|
1
|
+
export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.17.0' };
|
package/build-tsc/Identicon.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Empty } from './Empty.js';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as Pezkuwi } from './Pezkuwi.js';
|
|
@@ -6,11 +6,11 @@ const react_1 = tslib_1.__importDefault(require("react"));
|
|
|
6
6
|
const util_1 = require("@pezkuwi/util");
|
|
7
7
|
const util_crypto_1 = require("@pezkuwi/util-crypto");
|
|
8
8
|
const index_js_1 = require("./icons/index.js");
|
|
9
|
-
const Fallback = index_js_1.
|
|
9
|
+
const Fallback = index_js_1.Pezkuwi;
|
|
10
10
|
const DEFAULT_SIZE = 64;
|
|
11
|
-
const DEFAULT_THEME = '
|
|
11
|
+
const DEFAULT_THEME = 'pezkuwi';
|
|
12
12
|
const Components = {
|
|
13
|
-
|
|
13
|
+
pezkuwi: index_js_1.Pezkuwi
|
|
14
14
|
};
|
|
15
15
|
class IdentityIcon extends react_1.default.PureComponent {
|
|
16
16
|
state = {
|
|
@@ -11,6 +11,6 @@ function renderCircle({ cx, cy, fill, r }, key) {
|
|
|
11
11
|
return ((0, jsx_runtime_1.jsx)(react_native_svg_1.Circle, { cx: cx, cy: cy, fill: fill, r: r }, key));
|
|
12
12
|
}
|
|
13
13
|
function Identicon({ address, isAlternative = false, size }) {
|
|
14
|
-
const circles = (0, react_1.useMemo)(() => (0, ui_shared_1.
|
|
14
|
+
const circles = (0, react_1.useMemo)(() => (0, ui_shared_1.pezkuwiIcon)(address, { isAlternative }), [address, isAlternative]);
|
|
15
15
|
return ((0, jsx_runtime_1.jsx)(react_native_1.View, { children: (0, jsx_runtime_1.jsx)(react_native_svg_1.Svg, { height: size, id: address, viewBox: '0 0 64 64', width: size, children: circles.map(renderCircle) }) }));
|
|
16
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Pezkuwi = exports.Empty = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var Empty_js_1 = require("./Empty.js");
|
|
6
6
|
Object.defineProperty(exports, "Empty", { enumerable: true, get: function () { return tslib_1.__importDefault(Empty_js_1).default; } });
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(exports, "
|
|
7
|
+
var Pezkuwi_js_1 = require("./Pezkuwi.js");
|
|
8
|
+
Object.defineProperty(exports, "Pezkuwi", { enumerable: true, get: function () { return tslib_1.__importDefault(Pezkuwi_js_1).default; } });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@pezkuwi/reactnative-identicon', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.
|
|
4
|
+
exports.packageInfo = { name: '@pezkuwi/reactnative-identicon', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.17.0' };
|
|
@@ -2,12 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { isHex, isU8a, u8aToHex } from '@pezkuwi/util';
|
|
4
4
|
import { decodeAddress, encodeAddress } from '@pezkuwi/util-crypto';
|
|
5
|
-
import { Empty,
|
|
6
|
-
const Fallback =
|
|
5
|
+
import { Empty, Pezkuwi } from './icons/index.js';
|
|
6
|
+
const Fallback = Pezkuwi;
|
|
7
7
|
const DEFAULT_SIZE = 64;
|
|
8
|
-
const DEFAULT_THEME = '
|
|
8
|
+
const DEFAULT_THEME = 'pezkuwi';
|
|
9
9
|
const Components = {
|
|
10
|
-
|
|
10
|
+
pezkuwi: Pezkuwi
|
|
11
11
|
};
|
|
12
12
|
export default class IdentityIcon extends React.PureComponent {
|
|
13
13
|
state = {
|
|
@@ -2,11 +2,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { Circle as SvgCircle, Svg } from 'react-native-svg';
|
|
5
|
-
import {
|
|
5
|
+
import { pezkuwiIcon } from '@pezkuwi/ui-shared';
|
|
6
6
|
function renderCircle({ cx, cy, fill, r }, key) {
|
|
7
7
|
return (_jsx(SvgCircle, { cx: cx, cy: cy, fill: fill, r: r }, key));
|
|
8
8
|
}
|
|
9
9
|
export default function Identicon({ address, isAlternative = false, size }) {
|
|
10
|
-
const circles = useMemo(() =>
|
|
10
|
+
const circles = useMemo(() => pezkuwiIcon(address, { isAlternative }), [address, isAlternative]);
|
|
11
11
|
return (_jsx(View, { children: _jsx(Svg, { height: size, id: address, viewBox: '0 0 64 64', width: size, children: circles.map(renderCircle) }) }));
|
|
12
12
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Empty } from './Empty.js';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as Pezkuwi } from './Pezkuwi.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.
|
|
1
|
+
export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.17.0' };
|
package/package.json
CHANGED
package/src/Identicon.tsx
CHANGED
|
@@ -9,14 +9,14 @@ import React from 'react';
|
|
|
9
9
|
import { isHex, isU8a, u8aToHex } from '@pezkuwi/util';
|
|
10
10
|
import { decodeAddress, encodeAddress } from '@pezkuwi/util-crypto';
|
|
11
11
|
|
|
12
|
-
import { Empty,
|
|
12
|
+
import { Empty, Pezkuwi } from './icons/index.js';
|
|
13
13
|
|
|
14
|
-
const Fallback =
|
|
14
|
+
const Fallback = Pezkuwi;
|
|
15
15
|
|
|
16
16
|
interface Props {
|
|
17
17
|
prefix?: Prefix;
|
|
18
18
|
size?: number;
|
|
19
|
-
theme?: '
|
|
19
|
+
theme?: 'pezkuwi';
|
|
20
20
|
value?: string | Uint8Array | null;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -26,10 +26,10 @@ interface State {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
const DEFAULT_SIZE = 64;
|
|
29
|
-
const DEFAULT_THEME = '
|
|
29
|
+
const DEFAULT_THEME = 'pezkuwi';
|
|
30
30
|
|
|
31
31
|
const Components: Record<string, React.ComponentType<ComponentProps>> = {
|
|
32
|
-
|
|
32
|
+
pezkuwi: Pezkuwi
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export default class IdentityIcon extends React.PureComponent<Props, State> {
|
|
@@ -8,7 +8,7 @@ import React, { useMemo } from 'react';
|
|
|
8
8
|
import { View } from 'react-native';
|
|
9
9
|
import { Circle as SvgCircle, Svg } from 'react-native-svg';
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { pezkuwiIcon } from '@pezkuwi/ui-shared';
|
|
12
12
|
|
|
13
13
|
function renderCircle ({ cx, cy, fill, r }: CircleType, key: number): React.ReactNode {
|
|
14
14
|
return (
|
|
@@ -24,7 +24,7 @@ function renderCircle ({ cx, cy, fill, r }: CircleType, key: number): React.Reac
|
|
|
24
24
|
|
|
25
25
|
export default function Identicon ({ address, isAlternative = false, size }: Props): React.ReactElement<Props> {
|
|
26
26
|
const circles = useMemo(
|
|
27
|
-
() =>
|
|
27
|
+
() => pezkuwiIcon(address, { isAlternative }),
|
|
28
28
|
[address, isAlternative]
|
|
29
29
|
);
|
|
30
30
|
|
package/src/icons/index.ts
CHANGED
package/src/packageInfo.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
|
|
4
4
|
// Do not edit, auto-generated by @pezkuwi/dev
|
|
5
5
|
|
|
6
|
-
export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: 'auto', type: 'auto', version: '3.
|
|
6
|
+
export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: 'auto', type: 'auto', version: '3.17.0' };
|