@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.
@@ -1,2 +1,2 @@
1
1
  export { beachballIcon } from './beachball/index.js';
2
- export { polkadotIcon } from './polkadot.js';
2
+ export { pezkuwiIcon } from './pezkuwi.js';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.polkadotIcon = exports.beachballIcon = void 0;
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 polkadot_js_1 = require("./polkadot.js");
7
- Object.defineProperty(exports, "polkadotIcon", { enumerable: true, get: function () { return polkadot_js_1.polkadotIcon; } });
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 polkadotIcon(address: string, { isAlternative }: Options): Circle[];
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.polkadotIcon = polkadotIcon;
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 polkadotIcon(address, { isAlternative }) {
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.16.6' };
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 { polkadotIcon } from './polkadot.js';
2
+ export { pezkuwiIcon } from './pezkuwi.js';
@@ -1,2 +1,2 @@
1
1
  export { beachballIcon } from './beachball/index.js';
2
- export { polkadotIcon } from './polkadot.js';
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 polkadotIcon(address: string, { isAlternative }: Options): Circle[];
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 polkadotIcon(address, { isAlternative }) {
99
+ export function pezkuwiIcon(address, { isAlternative }) {
100
100
  const xy = getCircleXY(isAlternative);
101
101
  let colors;
102
102
  try {
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "3.16.6",
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/polkadot": {
253
+ "./icons/pezkuwi": {
254
254
  "module": {
255
- "types": "./icons/polkadot.d.ts",
256
- "default": "./icons/polkadot.js"
255
+ "types": "./icons/pezkuwi.d.ts",
256
+ "default": "./icons/pezkuwi.js"
257
257
  },
258
258
  "require": {
259
- "types": "./cjs/icons/polkadot.d.ts",
260
- "default": "./cjs/icons/polkadot.js"
259
+ "types": "./cjs/icons/pezkuwi.d.ts",
260
+ "default": "./cjs/icons/pezkuwi.js"
261
261
  },
262
262
  "default": {
263
- "types": "./icons/polkadot.d.ts",
264
- "default": "./icons/polkadot.js"
263
+ "types": "./icons/pezkuwi.d.ts",
264
+ "default": "./icons/pezkuwi.js"
265
265
  }
266
266
  },
267
267
  "./icons/types": {
@@ -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.16.6' };
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 { polkadotIcon } from './polkadot.js';
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 polkadotIcon(address: string, { isAlternative }: Options): Circle[];
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.polkadotIcon = exports.beachballIcon = void 0;
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 polkadot_js_1 = require("./polkadot.js");
7
- Object.defineProperty(exports, "polkadotIcon", { enumerable: true, get: function () { return polkadot_js_1.polkadotIcon; } });
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.polkadotIcon = polkadotIcon;
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 polkadotIcon(address, { isAlternative }) {
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.16.6' };
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 { polkadotIcon } from './polkadot.js';
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 polkadotIcon(address, { isAlternative }) {
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.16.6' };
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
@@ -18,7 +18,7 @@
18
18
  "./packageDetect.cjs"
19
19
  ],
20
20
  "type": "module",
21
- "version": "3.16.7",
21
+ "version": "3.17.0",
22
22
  "main": "index.js",
23
23
  "dependencies": {
24
24
  "colord": "^2.9.3",
@@ -2,4 +2,4 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  export { beachballIcon } from './beachball/index.js';
5
- export { polkadotIcon } from './polkadot.js';
5
+ export { pezkuwiIcon } from './pezkuwi.js';
@@ -3,12 +3,12 @@
3
3
 
4
4
  /// <reference types="@pezkuwi/dev-test/globals.d.ts" />
5
5
 
6
- import { polkadotIcon } from './polkadot.js';
6
+ import { pezkuwiIcon } from './pezkuwi.js';
7
7
 
8
- describe('polkadotIcon', (): void => {
8
+ describe('pezkuwiIcon', (): void => {
9
9
  it('generates the correct points from known', (): void => {
10
10
  expect(
11
- polkadotIcon('5Dqvi1p4C7EhPPFKCixpF3QiaJEaDwWrR9gfWR5eUsfC39TX', { isAlternative: false })
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
- // Copyright 2018 Paritytech via paritytech/oo7/polkadot-identicon
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 polkadotIcon (address: string, { isAlternative }: Options): Circle[] {
134
+ export function pezkuwiIcon (address: string, { isAlternative }: Options): Circle[] {
138
135
  const xy = getCircleXY(isAlternative);
139
136
  let colors: string[];
140
137
 
@@ -3,4 +3,4 @@
3
3
 
4
4
  // Do not edit, auto-generated by @pezkuwi/dev
5
5
 
6
- export const packageInfo = { name: '@pezkuwi/ui-shared', path: 'auto', type: 'auto', version: '3.16.6' };
6
+ export const packageInfo = { name: '@pezkuwi/ui-shared', path: 'auto', type: 'auto', version: '3.17.0' };