@pezkuwi/ui-shared 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/cjs/icons/index.d.ts +1 -1
- package/build/cjs/icons/index.js +3 -3
- package/{build-tsc/icons/polkadot.d.ts → build/cjs/icons/pezkuwi.d.ts} +1 -1
- package/build/cjs/icons/{polkadot.js → pezkuwi.js} +2 -2
- package/build/cjs/packageInfo.js +1 -1
- package/build/icons/index.d.ts +1 -1
- package/build/icons/index.js +1 -1
- package/build/{cjs/icons/polkadot.d.ts → icons/pezkuwi.d.ts} +1 -1
- package/build/icons/{polkadot.js → pezkuwi.js} +1 -1
- package/build/package.json +8 -8
- package/build/packageInfo.js +1 -1
- package/build-tsc/icons/index.d.ts +1 -1
- package/{build/icons/polkadot.d.ts → build-tsc/icons/pezkuwi.d.ts} +1 -1
- package/build-tsc-cjs/icons/index.js +3 -3
- package/build-tsc-cjs/icons/{polkadot.js → pezkuwi.js} +2 -2
- package/build-tsc-cjs/packageInfo.js +1 -1
- package/build-tsc-esm/icons/index.js +1 -1
- package/build-tsc-esm/icons/{polkadot.js → pezkuwi.js} +1 -1
- package/build-tsc-esm/packageInfo.js +1 -1
- package/package.json +1 -1
- package/src/icons/index.ts +1 -1
- package/src/icons/{polkadot.spec.ts → pezkuwi.spec.ts} +3 -3
- package/src/icons/{polkadot.ts → pezkuwi.ts} +3 -6
- package/src/packageInfo.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.spec.tsbuildinfo +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { beachballIcon } from './beachball/index.js';
|
|
2
|
-
export {
|
|
2
|
+
export { pezkuwiIcon } from './pezkuwi.js';
|
package/build/cjs/icons/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.pezkuwiIcon = exports.beachballIcon = void 0;
|
|
4
4
|
var index_js_1 = require("./beachball/index.js");
|
|
5
5
|
Object.defineProperty(exports, "beachballIcon", { enumerable: true, get: function () { return index_js_1.beachballIcon; } });
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "
|
|
6
|
+
var pezkuwi_js_1 = require("./pezkuwi.js");
|
|
7
|
+
Object.defineProperty(exports, "pezkuwiIcon", { enumerable: true, get: function () { return pezkuwi_js_1.pezkuwiIcon; } });
|
|
@@ -2,4 +2,4 @@ import type { Circle, Options } from './types.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* @description Generates an array of the circles that make up an identicon
|
|
4
4
|
*/
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function pezkuwiIcon(address: string, { isAlternative }: Options): Circle[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.pezkuwiIcon = pezkuwiIcon;
|
|
4
4
|
const util_crypto_1 = require("@pezkuwi/util-crypto");
|
|
5
5
|
const S = 64;
|
|
6
6
|
const C = S / 2;
|
|
@@ -99,7 +99,7 @@ function getColors(address) {
|
|
|
99
99
|
/**
|
|
100
100
|
* @description Generates an array of the circles that make up an identicon
|
|
101
101
|
*/
|
|
102
|
-
function
|
|
102
|
+
function pezkuwiIcon(address, { isAlternative }) {
|
|
103
103
|
const xy = getCircleXY(isAlternative);
|
|
104
104
|
let colors;
|
|
105
105
|
try {
|
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/ui-shared', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.
|
|
4
|
+
exports.packageInfo = { name: '@pezkuwi/ui-shared', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.17.0' };
|
package/build/icons/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { beachballIcon } from './beachball/index.js';
|
|
2
|
-
export {
|
|
2
|
+
export { pezkuwiIcon } from './pezkuwi.js';
|
package/build/icons/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { beachballIcon } from './beachball/index.js';
|
|
2
|
-
export {
|
|
2
|
+
export { pezkuwiIcon } from './pezkuwi.js';
|
|
@@ -2,4 +2,4 @@ import type { Circle, Options } from './types.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* @description Generates an array of the circles that make up an identicon
|
|
4
4
|
*/
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function pezkuwiIcon(address: string, { isAlternative }: Options): Circle[];
|
|
@@ -96,7 +96,7 @@ function getColors(address) {
|
|
|
96
96
|
/**
|
|
97
97
|
* @description Generates an array of the circles that make up an identicon
|
|
98
98
|
*/
|
|
99
|
-
export function
|
|
99
|
+
export function pezkuwiIcon(address, { isAlternative }) {
|
|
100
100
|
const xy = getCircleXY(isAlternative);
|
|
101
101
|
let colors;
|
|
102
102
|
try {
|
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",
|
|
@@ -250,18 +250,18 @@
|
|
|
250
250
|
"default": "./icons/beachball/types.js"
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
|
-
"./icons/
|
|
253
|
+
"./icons/pezkuwi": {
|
|
254
254
|
"module": {
|
|
255
|
-
"types": "./icons/
|
|
256
|
-
"default": "./icons/
|
|
255
|
+
"types": "./icons/pezkuwi.d.ts",
|
|
256
|
+
"default": "./icons/pezkuwi.js"
|
|
257
257
|
},
|
|
258
258
|
"require": {
|
|
259
|
-
"types": "./cjs/icons/
|
|
260
|
-
"default": "./cjs/icons/
|
|
259
|
+
"types": "./cjs/icons/pezkuwi.d.ts",
|
|
260
|
+
"default": "./cjs/icons/pezkuwi.js"
|
|
261
261
|
},
|
|
262
262
|
"default": {
|
|
263
|
-
"types": "./icons/
|
|
264
|
-
"default": "./icons/
|
|
263
|
+
"types": "./icons/pezkuwi.d.ts",
|
|
264
|
+
"default": "./icons/pezkuwi.js"
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
267
|
"./icons/types": {
|
package/build/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@pezkuwi/ui-shared', 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/ui-shared', 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' };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { beachballIcon } from './beachball/index.js';
|
|
2
|
-
export {
|
|
2
|
+
export { pezkuwiIcon } from './pezkuwi.js';
|
|
@@ -2,4 +2,4 @@ import type { Circle, Options } from './types.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* @description Generates an array of the circles that make up an identicon
|
|
4
4
|
*/
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function pezkuwiIcon(address: string, { isAlternative }: Options): Circle[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.pezkuwiIcon = exports.beachballIcon = void 0;
|
|
4
4
|
var index_js_1 = require("./beachball/index.js");
|
|
5
5
|
Object.defineProperty(exports, "beachballIcon", { enumerable: true, get: function () { return index_js_1.beachballIcon; } });
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "
|
|
6
|
+
var pezkuwi_js_1 = require("./pezkuwi.js");
|
|
7
|
+
Object.defineProperty(exports, "pezkuwiIcon", { enumerable: true, get: function () { return pezkuwi_js_1.pezkuwiIcon; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.pezkuwiIcon = pezkuwiIcon;
|
|
4
4
|
const util_crypto_1 = require("@pezkuwi/util-crypto");
|
|
5
5
|
const S = 64;
|
|
6
6
|
const C = S / 2;
|
|
@@ -99,7 +99,7 @@ function getColors(address) {
|
|
|
99
99
|
/**
|
|
100
100
|
* @description Generates an array of the circles that make up an identicon
|
|
101
101
|
*/
|
|
102
|
-
function
|
|
102
|
+
function pezkuwiIcon(address, { isAlternative }) {
|
|
103
103
|
const xy = getCircleXY(isAlternative);
|
|
104
104
|
let colors;
|
|
105
105
|
try {
|
|
@@ -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/ui-shared', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.
|
|
4
|
+
exports.packageInfo = { name: '@pezkuwi/ui-shared', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '3.17.0' };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { beachballIcon } from './beachball/index.js';
|
|
2
|
-
export {
|
|
2
|
+
export { pezkuwiIcon } from './pezkuwi.js';
|
|
@@ -96,7 +96,7 @@ function getColors(address) {
|
|
|
96
96
|
/**
|
|
97
97
|
* @description Generates an array of the circles that make up an identicon
|
|
98
98
|
*/
|
|
99
|
-
export function
|
|
99
|
+
export function pezkuwiIcon(address, { isAlternative }) {
|
|
100
100
|
const xy = getCircleXY(isAlternative);
|
|
101
101
|
let colors;
|
|
102
102
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@pezkuwi/ui-shared', 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/ui-shared', 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/icons/index.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { pezkuwiIcon } from './pezkuwi.js';
|
|
7
7
|
|
|
8
|
-
describe('
|
|
8
|
+
describe('pezkuwiIcon', (): void => {
|
|
9
9
|
it('generates the correct points from known', (): void => {
|
|
10
10
|
expect(
|
|
11
|
-
|
|
11
|
+
pezkuwiIcon('5Dqvi1p4C7EhPPFKCixpF3QiaJEaDwWrR9gfWR5eUsfC39TX', { isAlternative: false })
|
|
12
12
|
).toEqual([
|
|
13
13
|
{ cx: 32, cy: 32, fill: '#eee', r: 32 },
|
|
14
14
|
{ cx: 32, cy: 8, fill: 'hsl(196, 65%, 53%)', r: 5 },
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
// Copyright 2018-2025 @pezkuwi/ui-shared authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// This has been converted from the original version that can be found at
|
|
7
|
-
//
|
|
8
|
-
// https://github.com/paritytech/oo7/blob/251ba2b7c45503b68eab4320c270b5afa9bccb60/packages/polkadot-identicon/src/index.jsx
|
|
4
|
+
// Originally from: https://github.com/paritytech/oo7/tree/master/packages/polkadot-identicon
|
|
5
|
+
// Copyright 2018 Paritytech - Adapted for PezkuwiChain ecosystem
|
|
9
6
|
|
|
10
7
|
import type { Circle, Options } from './types.js';
|
|
11
8
|
|
|
@@ -134,7 +131,7 @@ function getColors (address: string): string[] {
|
|
|
134
131
|
/**
|
|
135
132
|
* @description Generates an array of the circles that make up an identicon
|
|
136
133
|
*/
|
|
137
|
-
export function
|
|
134
|
+
export function pezkuwiIcon (address: string, { isAlternative }: Options): Circle[] {
|
|
138
135
|
const xy = getCircleXY(isAlternative);
|
|
139
136
|
let colors: string[];
|
|
140
137
|
|
package/src/packageInfo.ts
CHANGED