@xyo-network/react-chain-blockies 1.7.7 → 1.7.8
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/README.md +331 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,13 +8,341 @@
|
|
|
8
8
|
[![npm-license-badge][]](LICENSE)
|
|
9
9
|
[![socket-badge][]][socket-link]
|
|
10
10
|
|
|
11
|
-
Version: 1.7.3
|
|
12
|
-
|
|
13
11
|
XYO Layer One React SDK Blockies
|
|
14
12
|
|
|
15
13
|
## Documentation
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
## Reference
|
|
16
|
+
|
|
17
|
+
**@xyo-network/react-chain-blockies**
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
## Interfaces
|
|
22
|
+
|
|
23
|
+
- [BlockiesAccountProps](#interfaces/BlockiesAccountProps)
|
|
24
|
+
- [BlockiesAvatarProps](#interfaces/BlockiesAvatarProps)
|
|
25
|
+
- [BlockiesAvatarAddressProps](#interfaces/BlockiesAvatarAddressProps)
|
|
26
|
+
- [BlockiesOptions](#interfaces/BlockiesOptions)
|
|
27
|
+
|
|
28
|
+
## Variables
|
|
29
|
+
|
|
30
|
+
- [BlockiesAccount](#variables/BlockiesAccount)
|
|
31
|
+
- [BlockiesAvatar](#variables/BlockiesAvatar)
|
|
32
|
+
- [BlockiesAvatarAddress](#variables/BlockiesAvatarAddress)
|
|
33
|
+
|
|
34
|
+
## Functions
|
|
35
|
+
|
|
36
|
+
- [buildOpts](#functions/buildOpts)
|
|
37
|
+
- [renderIcon](#functions/renderIcon)
|
|
38
|
+
- [createIcon](#functions/createIcon)
|
|
39
|
+
|
|
40
|
+
### functions
|
|
41
|
+
|
|
42
|
+
### <a id="buildOpts"></a>buildOpts
|
|
43
|
+
|
|
44
|
+
[**@xyo-network/react-chain-blockies**](#../README)
|
|
45
|
+
|
|
46
|
+
***
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
function buildOpts(opts): BlockiesOptions;
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Parameters
|
|
53
|
+
|
|
54
|
+
### opts
|
|
55
|
+
|
|
56
|
+
`Partial`\<[`BlockiesOptions`](#../interfaces/BlockiesOptions)\>
|
|
57
|
+
|
|
58
|
+
## Returns
|
|
59
|
+
|
|
60
|
+
[`BlockiesOptions`](#../interfaces/BlockiesOptions)
|
|
61
|
+
|
|
62
|
+
### <a id="createIcon"></a>createIcon
|
|
63
|
+
|
|
64
|
+
[**@xyo-network/react-chain-blockies**](#../README)
|
|
65
|
+
|
|
66
|
+
***
|
|
67
|
+
|
|
68
|
+
```ts
|
|
69
|
+
function createIcon(opts): HTMLCanvasElement;
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Parameters
|
|
73
|
+
|
|
74
|
+
### opts
|
|
75
|
+
|
|
76
|
+
`Partial`\<[`BlockiesOptions`](#../interfaces/BlockiesOptions)\>
|
|
77
|
+
|
|
78
|
+
## Returns
|
|
79
|
+
|
|
80
|
+
`HTMLCanvasElement`
|
|
81
|
+
|
|
82
|
+
### <a id="renderIcon"></a>renderIcon
|
|
83
|
+
|
|
84
|
+
[**@xyo-network/react-chain-blockies**](#../README)
|
|
85
|
+
|
|
86
|
+
***
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
function renderIcon(opts, canvas): HTMLCanvasElement;
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Parameters
|
|
93
|
+
|
|
94
|
+
### opts
|
|
95
|
+
|
|
96
|
+
`Partial`\<[`BlockiesOptions`](#../interfaces/BlockiesOptions)\>
|
|
97
|
+
|
|
98
|
+
### canvas
|
|
99
|
+
|
|
100
|
+
`HTMLCanvasElement`
|
|
101
|
+
|
|
102
|
+
## Returns
|
|
103
|
+
|
|
104
|
+
`HTMLCanvasElement`
|
|
105
|
+
|
|
106
|
+
### interfaces
|
|
107
|
+
|
|
108
|
+
### <a id="BlockiesAccountProps"></a>BlockiesAccountProps
|
|
109
|
+
|
|
110
|
+
[**@xyo-network/react-chain-blockies**](#../README)
|
|
111
|
+
|
|
112
|
+
***
|
|
113
|
+
|
|
114
|
+
## Extends
|
|
115
|
+
|
|
116
|
+
- `Partial`\<[`BlockiesOptions`](#BlockiesOptions)\>
|
|
117
|
+
|
|
118
|
+
## Properties
|
|
119
|
+
|
|
120
|
+
### bgcolor?
|
|
121
|
+
|
|
122
|
+
```ts
|
|
123
|
+
optional bgcolor: string;
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Inherited from
|
|
127
|
+
|
|
128
|
+
```ts
|
|
129
|
+
Partial.bgcolor
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
***
|
|
133
|
+
|
|
134
|
+
### color?
|
|
135
|
+
|
|
136
|
+
```ts
|
|
137
|
+
optional color: string;
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Inherited from
|
|
141
|
+
|
|
142
|
+
```ts
|
|
143
|
+
Partial.color
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
***
|
|
147
|
+
|
|
148
|
+
### scale?
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
optional scale: number;
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Inherited from
|
|
155
|
+
|
|
156
|
+
```ts
|
|
157
|
+
Partial.scale
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
***
|
|
161
|
+
|
|
162
|
+
### seed?
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
optional seed: string;
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Inherited from
|
|
169
|
+
|
|
170
|
+
```ts
|
|
171
|
+
Partial.seed
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
***
|
|
175
|
+
|
|
176
|
+
### size?
|
|
177
|
+
|
|
178
|
+
```ts
|
|
179
|
+
optional size: number;
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Inherited from
|
|
183
|
+
|
|
184
|
+
```ts
|
|
185
|
+
Partial.size
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
***
|
|
189
|
+
|
|
190
|
+
### spotcolor?
|
|
191
|
+
|
|
192
|
+
```ts
|
|
193
|
+
optional spotcolor: string;
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Inherited from
|
|
197
|
+
|
|
198
|
+
```ts
|
|
199
|
+
Partial.spotcolor
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### <a id="BlockiesAvatarAddressProps"></a>BlockiesAvatarAddressProps
|
|
203
|
+
|
|
204
|
+
[**@xyo-network/react-chain-blockies**](#../README)
|
|
205
|
+
|
|
206
|
+
***
|
|
207
|
+
|
|
208
|
+
## Extends
|
|
209
|
+
|
|
210
|
+
- `AvatarProps`
|
|
211
|
+
|
|
212
|
+
## Properties
|
|
213
|
+
|
|
214
|
+
### address?
|
|
215
|
+
|
|
216
|
+
```ts
|
|
217
|
+
optional address: string;
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
The Address to display
|
|
221
|
+
|
|
222
|
+
***
|
|
223
|
+
|
|
224
|
+
### borderSizeFactor?
|
|
225
|
+
|
|
226
|
+
```ts
|
|
227
|
+
optional borderSizeFactor: number;
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
Size of the border is the size prop * borderSizeFactor and rounded up
|
|
231
|
+
|
|
232
|
+
***
|
|
233
|
+
|
|
234
|
+
### size?
|
|
235
|
+
|
|
236
|
+
```ts
|
|
237
|
+
optional size: number;
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
The size of the avatar in pixels, defaults to 24
|
|
241
|
+
|
|
242
|
+
### <a id="BlockiesAvatarProps"></a>BlockiesAvatarProps
|
|
243
|
+
|
|
244
|
+
[**@xyo-network/react-chain-blockies**](#../README)
|
|
245
|
+
|
|
246
|
+
***
|
|
247
|
+
|
|
248
|
+
## Extends
|
|
249
|
+
|
|
250
|
+
- `AvatarProps`
|
|
251
|
+
|
|
252
|
+
## Properties
|
|
253
|
+
|
|
254
|
+
### blockiesOptions?
|
|
255
|
+
|
|
256
|
+
```ts
|
|
257
|
+
optional blockiesOptions: Partial<BlockiesOptions>;
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### <a id="BlockiesOptions"></a>BlockiesOptions
|
|
261
|
+
|
|
262
|
+
[**@xyo-network/react-chain-blockies**](#../README)
|
|
263
|
+
|
|
264
|
+
***
|
|
265
|
+
|
|
266
|
+
## Properties
|
|
267
|
+
|
|
268
|
+
### bgcolor
|
|
269
|
+
|
|
270
|
+
```ts
|
|
271
|
+
bgcolor: string;
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
***
|
|
275
|
+
|
|
276
|
+
### color
|
|
277
|
+
|
|
278
|
+
```ts
|
|
279
|
+
color: string;
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
***
|
|
283
|
+
|
|
284
|
+
### scale
|
|
285
|
+
|
|
286
|
+
```ts
|
|
287
|
+
scale: number;
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
***
|
|
291
|
+
|
|
292
|
+
### seed
|
|
293
|
+
|
|
294
|
+
```ts
|
|
295
|
+
seed: string;
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
***
|
|
299
|
+
|
|
300
|
+
### size
|
|
301
|
+
|
|
302
|
+
```ts
|
|
303
|
+
size: number;
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
***
|
|
307
|
+
|
|
308
|
+
### spotcolor
|
|
309
|
+
|
|
310
|
+
```ts
|
|
311
|
+
spotcolor: string;
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
### variables
|
|
315
|
+
|
|
316
|
+
### <a id="BlockiesAccount"></a>BlockiesAccount
|
|
317
|
+
|
|
318
|
+
[**@xyo-network/react-chain-blockies**](#../README)
|
|
319
|
+
|
|
320
|
+
***
|
|
321
|
+
|
|
322
|
+
```ts
|
|
323
|
+
const BlockiesAccount: React.FC<BlockiesAccountProps>;
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### <a id="BlockiesAvatar"></a>BlockiesAvatar
|
|
327
|
+
|
|
328
|
+
[**@xyo-network/react-chain-blockies**](#../README)
|
|
329
|
+
|
|
330
|
+
***
|
|
331
|
+
|
|
332
|
+
```ts
|
|
333
|
+
const BlockiesAvatar: React.FC<BlockiesAvatarProps>;
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
### <a id="BlockiesAvatarAddress"></a>BlockiesAvatarAddress
|
|
337
|
+
|
|
338
|
+
[**@xyo-network/react-chain-blockies**](#../README)
|
|
339
|
+
|
|
340
|
+
***
|
|
341
|
+
|
|
342
|
+
```ts
|
|
343
|
+
const BlockiesAvatarAddress: React.FC<BlockiesAvatarAddressProps>;
|
|
344
|
+
```
|
|
345
|
+
|
|
18
346
|
|
|
19
347
|
## Maintainers
|
|
20
348
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/react-chain-blockies",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.8",
|
|
5
5
|
"description": "XYO Layer One React SDK Blockies",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@types/react": "^19.1.8",
|
|
45
45
|
"@xylabs/ts-scripts-yarn3": "^7.0.0",
|
|
46
46
|
"@xylabs/tsconfig-react": "^7.0.0",
|
|
47
|
-
"knip": "^5.
|
|
47
|
+
"knip": "^5.62.0",
|
|
48
48
|
"react": "^19.1.0",
|
|
49
49
|
"react-dom": "^19.1.0",
|
|
50
50
|
"typescript": "^5.8.3"
|