@xyo-network/react-storybook 6.0.0 → 6.1.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/dist/browser/index.d.ts +300 -0
- package/package.json +10 -9
- package/dist/types/index.d.ts +0 -11
- /package/dist/{types → browser}/DeprecateStory.d.ts +0 -0
- /package/dist/{types → browser}/DeprecateStory.d.ts.map +0 -0
- /package/dist/{types → browser}/WithRefDecorator.d.ts +0 -0
- /package/dist/{types → browser}/WithRefDecorator.d.ts.map +0 -0
- /package/dist/{types → browser}/defaultSeedPhrase.d.ts +0 -0
- /package/dist/{types → browser}/defaultSeedPhrase.d.ts.map +0 -0
- /package/dist/{types → browser}/index.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleAddressHistory.d.ts +0 -0
- /package/dist/{types → browser}/sampleAddressHistory.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleBlock.d.ts +0 -0
- /package/dist/{types → browser}/sampleBlock.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleCoinGeckoPayload.d.ts +0 -0
- /package/dist/{types → browser}/sampleCoinGeckoPayload.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleEthereumGasDivinerPayload.d.ts +0 -0
- /package/dist/{types → browser}/sampleEthereumGasDivinerPayload.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/blocknative.d.ts +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/blocknative.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/ethGasStation.d.ts +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/ethGasStation.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/etherchainV1.d.ts +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/etherchainV1.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/etherchainV2.d.ts +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/etherchainV2.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/ethers.d.ts +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/ethers.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/etherscan.d.ts +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/etherscan.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/index.d.ts +0 -0
- /package/dist/{types → browser}/sampleGasPricePayloads/index.d.ts.map +0 -0
- /package/dist/{types → browser}/samplePayload.d.ts +0 -0
- /package/dist/{types → browser}/samplePayload.d.ts.map +0 -0
- /package/dist/{types → browser}/sampleUniswapPayload.d.ts +0 -0
- /package/dist/{types → browser}/sampleUniswapPayload.d.ts.map +0 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
+
import { Decorator } from '@storybook/react-vite';
|
|
4
|
+
|
|
5
|
+
declare const DefaultSeedPhrase = "later puppy sound rebuild rebuild noise ozone amazing hope broccoli crystal grief";
|
|
6
|
+
|
|
7
|
+
declare const DeprecateStory: React.FC<{
|
|
8
|
+
message?: string;
|
|
9
|
+
}>;
|
|
10
|
+
|
|
11
|
+
declare const sampleAddressHistory: BoundWitness[];
|
|
12
|
+
declare const randomizedSampleAddressHistory: BoundWitness[];
|
|
13
|
+
|
|
14
|
+
declare const sampleBlock: BoundWitness;
|
|
15
|
+
declare const sampleBlockWithBoundWitnessPayload: BoundWitness;
|
|
16
|
+
|
|
17
|
+
declare const sampleCoinGeckoPayload: {
|
|
18
|
+
assets: {
|
|
19
|
+
ada: {
|
|
20
|
+
btc: number;
|
|
21
|
+
eth: number;
|
|
22
|
+
eur: number;
|
|
23
|
+
usd: number;
|
|
24
|
+
};
|
|
25
|
+
btc: {
|
|
26
|
+
btc: number;
|
|
27
|
+
eth: number;
|
|
28
|
+
eur: number;
|
|
29
|
+
usd: number;
|
|
30
|
+
};
|
|
31
|
+
busd: {
|
|
32
|
+
btc: number;
|
|
33
|
+
eth: number;
|
|
34
|
+
eur: number;
|
|
35
|
+
usd: number;
|
|
36
|
+
};
|
|
37
|
+
doge: {
|
|
38
|
+
btc: number;
|
|
39
|
+
eth: number;
|
|
40
|
+
eur: number;
|
|
41
|
+
usd: number;
|
|
42
|
+
};
|
|
43
|
+
dot: {
|
|
44
|
+
btc: number;
|
|
45
|
+
eth: number;
|
|
46
|
+
eur: number;
|
|
47
|
+
usd: number;
|
|
48
|
+
};
|
|
49
|
+
eth: {
|
|
50
|
+
btc: number;
|
|
51
|
+
eth: number;
|
|
52
|
+
eur: number;
|
|
53
|
+
usd: number;
|
|
54
|
+
};
|
|
55
|
+
sol: {
|
|
56
|
+
btc: number;
|
|
57
|
+
eth: number;
|
|
58
|
+
eur: number;
|
|
59
|
+
usd: number;
|
|
60
|
+
};
|
|
61
|
+
usdc: {
|
|
62
|
+
btc: number;
|
|
63
|
+
eth: number;
|
|
64
|
+
eur: number;
|
|
65
|
+
usd: number;
|
|
66
|
+
};
|
|
67
|
+
usdt: {
|
|
68
|
+
btc: number;
|
|
69
|
+
eth: number;
|
|
70
|
+
eur: number;
|
|
71
|
+
usd: number;
|
|
72
|
+
};
|
|
73
|
+
wbtc: {
|
|
74
|
+
btc: number;
|
|
75
|
+
eth: number;
|
|
76
|
+
eur: number;
|
|
77
|
+
usd: number;
|
|
78
|
+
};
|
|
79
|
+
xyo: {
|
|
80
|
+
btc: number;
|
|
81
|
+
eth: number;
|
|
82
|
+
eur: number;
|
|
83
|
+
usd: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
schema: string;
|
|
87
|
+
timestamp: number;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
declare const sampleEthereumGasDivinerPayload: {
|
|
91
|
+
baseFee: number;
|
|
92
|
+
feePerGas: {
|
|
93
|
+
high: number;
|
|
94
|
+
low: number;
|
|
95
|
+
medium: number;
|
|
96
|
+
veryHigh: number;
|
|
97
|
+
};
|
|
98
|
+
priorityFeePerGas: {
|
|
99
|
+
high: number;
|
|
100
|
+
low: number;
|
|
101
|
+
medium: number;
|
|
102
|
+
veryHigh: number;
|
|
103
|
+
};
|
|
104
|
+
schema: string;
|
|
105
|
+
timestamp: number;
|
|
106
|
+
};
|
|
107
|
+
declare const sampleEthereumGasDivinerPayloadMissingFees: {
|
|
108
|
+
feePerGas: {};
|
|
109
|
+
priorityFeePerGas: {};
|
|
110
|
+
schema: string;
|
|
111
|
+
timestamp: number;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
declare const sampleBlocknativeGasPricePayload: {
|
|
115
|
+
blockPrices: {
|
|
116
|
+
baseFeePerGas: number;
|
|
117
|
+
blockNumber: number;
|
|
118
|
+
estimatedPrices: {
|
|
119
|
+
confidence: number;
|
|
120
|
+
maxFeePerGas: number;
|
|
121
|
+
maxPriorityFeePerGas: number;
|
|
122
|
+
price: number;
|
|
123
|
+
}[];
|
|
124
|
+
estimatedTransactionCount: number;
|
|
125
|
+
}[];
|
|
126
|
+
currentBlockNumber: number;
|
|
127
|
+
estimatedBaseFees: ({
|
|
128
|
+
'pending+1': {
|
|
129
|
+
baseFee: number;
|
|
130
|
+
confidence: number;
|
|
131
|
+
}[];
|
|
132
|
+
'pending+2'?: undefined;
|
|
133
|
+
'pending+3'?: undefined;
|
|
134
|
+
'pending+4'?: undefined;
|
|
135
|
+
'pending+5'?: undefined;
|
|
136
|
+
} | {
|
|
137
|
+
'pending+2': {
|
|
138
|
+
baseFee: number;
|
|
139
|
+
confidence: number;
|
|
140
|
+
}[];
|
|
141
|
+
'pending+1'?: undefined;
|
|
142
|
+
'pending+3'?: undefined;
|
|
143
|
+
'pending+4'?: undefined;
|
|
144
|
+
'pending+5'?: undefined;
|
|
145
|
+
} | {
|
|
146
|
+
'pending+3': {
|
|
147
|
+
baseFee: number;
|
|
148
|
+
confidence: number;
|
|
149
|
+
}[];
|
|
150
|
+
'pending+1'?: undefined;
|
|
151
|
+
'pending+2'?: undefined;
|
|
152
|
+
'pending+4'?: undefined;
|
|
153
|
+
'pending+5'?: undefined;
|
|
154
|
+
} | {
|
|
155
|
+
'pending+4': {
|
|
156
|
+
baseFee: number;
|
|
157
|
+
confidence: number;
|
|
158
|
+
}[];
|
|
159
|
+
'pending+1'?: undefined;
|
|
160
|
+
'pending+2'?: undefined;
|
|
161
|
+
'pending+3'?: undefined;
|
|
162
|
+
'pending+5'?: undefined;
|
|
163
|
+
} | {
|
|
164
|
+
'pending+5': {
|
|
165
|
+
baseFee: number;
|
|
166
|
+
confidence: number;
|
|
167
|
+
}[];
|
|
168
|
+
'pending+1'?: undefined;
|
|
169
|
+
'pending+2'?: undefined;
|
|
170
|
+
'pending+3'?: undefined;
|
|
171
|
+
'pending+4'?: undefined;
|
|
172
|
+
})[];
|
|
173
|
+
maxPrice: number;
|
|
174
|
+
msSinceLastBlock: number;
|
|
175
|
+
network: string;
|
|
176
|
+
schema: string;
|
|
177
|
+
system: string;
|
|
178
|
+
timestamp: number;
|
|
179
|
+
unit: string;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
declare const sampleEtherchainV1GasPricePayload: {
|
|
183
|
+
currentBaseFee: number;
|
|
184
|
+
fast: number;
|
|
185
|
+
fastest: number;
|
|
186
|
+
recommendedBaseFee: number;
|
|
187
|
+
safeLow: number;
|
|
188
|
+
schema: string;
|
|
189
|
+
standard: number;
|
|
190
|
+
timestamp: number;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
declare const sampleEtherchainV2GasPricePayload: {
|
|
194
|
+
code: number;
|
|
195
|
+
data: {
|
|
196
|
+
fast: number;
|
|
197
|
+
priceUSD: number;
|
|
198
|
+
rapid: number;
|
|
199
|
+
slow: number;
|
|
200
|
+
standard: number;
|
|
201
|
+
timestamp: number;
|
|
202
|
+
};
|
|
203
|
+
schema: string;
|
|
204
|
+
timestamp: number;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
declare const sampleEthersGasPricePayload: {
|
|
208
|
+
gasPrice: number;
|
|
209
|
+
lastBaseFeePerGas: number;
|
|
210
|
+
maxFeePerGas: number;
|
|
211
|
+
maxPriorityFeePerGas: number;
|
|
212
|
+
schema: string;
|
|
213
|
+
timestamp: number;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
declare const sampleEtherscanGasPricePayload: {
|
|
217
|
+
message: string;
|
|
218
|
+
result: {
|
|
219
|
+
FastGasPrice: string;
|
|
220
|
+
LastBlock: string;
|
|
221
|
+
ProposeGasPrice: string;
|
|
222
|
+
SafeGasPrice: string;
|
|
223
|
+
gasUsedRatio: string;
|
|
224
|
+
suggestBaseFee: string;
|
|
225
|
+
};
|
|
226
|
+
schema: string;
|
|
227
|
+
status: string;
|
|
228
|
+
timestamp: number;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
declare const sampleEthGasStationGasPricePayload: {
|
|
232
|
+
baseFee: number;
|
|
233
|
+
blockNumber: number;
|
|
234
|
+
blockTime: number;
|
|
235
|
+
gasPrice: {
|
|
236
|
+
fast: number;
|
|
237
|
+
instant: number;
|
|
238
|
+
standard: number;
|
|
239
|
+
};
|
|
240
|
+
nextBaseFee: number;
|
|
241
|
+
priorityFee: {
|
|
242
|
+
fast: number;
|
|
243
|
+
instant: number;
|
|
244
|
+
standard: number;
|
|
245
|
+
};
|
|
246
|
+
schema: string;
|
|
247
|
+
timestamp: number;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
declare const samplePayloadFromBuilder: {
|
|
251
|
+
_archive: string;
|
|
252
|
+
schema: "network.xyo.temp";
|
|
253
|
+
test: string;
|
|
254
|
+
$sources?: Lowercase<string>[] | undefined;
|
|
255
|
+
};
|
|
256
|
+
declare const sampleIdPayload: {
|
|
257
|
+
salt: string;
|
|
258
|
+
schema: string;
|
|
259
|
+
};
|
|
260
|
+
declare const sampleSystemInfoBrowserPayload: {
|
|
261
|
+
bowser: {
|
|
262
|
+
browser: {
|
|
263
|
+
name: string;
|
|
264
|
+
version: string;
|
|
265
|
+
};
|
|
266
|
+
engine: {
|
|
267
|
+
name: string;
|
|
268
|
+
};
|
|
269
|
+
os: {
|
|
270
|
+
name: string;
|
|
271
|
+
version: string;
|
|
272
|
+
versionName: string;
|
|
273
|
+
};
|
|
274
|
+
platform: {
|
|
275
|
+
type: string;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
schema: string;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
declare const sampleUniswapPayload: {
|
|
282
|
+
pairs: {
|
|
283
|
+
tokens: {
|
|
284
|
+
address: string;
|
|
285
|
+
symbol: string;
|
|
286
|
+
value: number;
|
|
287
|
+
}[];
|
|
288
|
+
}[];
|
|
289
|
+
schema: string;
|
|
290
|
+
timestamp: number;
|
|
291
|
+
};
|
|
292
|
+
declare const payloadDataMissingPairs: {
|
|
293
|
+
pairs: never[];
|
|
294
|
+
schema: string;
|
|
295
|
+
timestamp: number;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
declare const WithRefDecorator: Decorator;
|
|
299
|
+
|
|
300
|
+
export { DefaultSeedPhrase, DeprecateStory, WithRefDecorator, payloadDataMissingPairs, randomizedSampleAddressHistory, sampleAddressHistory, sampleBlock, sampleBlockWithBoundWitnessPayload, sampleBlocknativeGasPricePayload, sampleCoinGeckoPayload, sampleEthGasStationGasPricePayload, sampleEtherchainV1GasPricePayload, sampleEtherchainV2GasPricePayload, sampleEthereumGasDivinerPayload, sampleEthereumGasDivinerPayloadMissingFees, sampleEthersGasPricePayload, sampleEtherscanGasPricePayload, sampleIdPayload, samplePayloadFromBuilder, sampleSystemInfoBrowserPayload, sampleUniswapPayload };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-storybook",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -28,29 +28,30 @@
|
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
30
|
"browser": {
|
|
31
|
-
"types": "./dist/
|
|
31
|
+
"types": "./dist/browser/index.d.ts",
|
|
32
32
|
"default": "./dist/browser/index.mjs"
|
|
33
33
|
},
|
|
34
|
-
"types": "./dist/
|
|
34
|
+
"types": "./dist/browser/index.d.ts",
|
|
35
35
|
"default": "./dist/browser/index.mjs"
|
|
36
36
|
},
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"module": "dist/browser/index.mjs",
|
|
40
|
-
"types": "dist/
|
|
40
|
+
"types": "dist/browser/index.d.ts",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@
|
|
42
|
+
"@storybook/react-vite": "^9.0.16",
|
|
43
|
+
"@xyo-network/boundwitness-model": "^4.1.1"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@mui/icons-material": "^7.2.0",
|
|
46
47
|
"@mui/material": "^7.2.0",
|
|
47
48
|
"@types/react": "^19.1.8",
|
|
48
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
49
|
-
"@xylabs/tsconfig-react": "
|
|
50
|
-
"@xyo-network/payload-model": "^4.
|
|
49
|
+
"@xylabs/ts-scripts-yarn3": "next",
|
|
50
|
+
"@xylabs/tsconfig-react": "next",
|
|
51
|
+
"@xyo-network/payload-model": "^4.1.1",
|
|
51
52
|
"react": "^19.1.0",
|
|
52
53
|
"react-dom": "^19.1.0",
|
|
53
|
-
"storybook": "^9.0.
|
|
54
|
+
"storybook": "^9.0.16",
|
|
54
55
|
"typescript": "^5.8.3"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './defaultSeedPhrase.ts';
|
|
2
|
-
export * from './DeprecateStory.tsx';
|
|
3
|
-
export * from './sampleAddressHistory.ts';
|
|
4
|
-
export * from './sampleBlock.ts';
|
|
5
|
-
export * from './sampleCoinGeckoPayload.ts';
|
|
6
|
-
export * from './sampleEthereumGasDivinerPayload.ts';
|
|
7
|
-
export * from './sampleGasPricePayloads/index.ts';
|
|
8
|
-
export * from './samplePayload.ts';
|
|
9
|
-
export * from './sampleUniswapPayload.ts';
|
|
10
|
-
export * from './WithRefDecorator.tsx';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|