@xyo-network/react-chain-boundwitness 1.20.4 → 1.20.5
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/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-boundwitness",
|
|
4
|
-
"version": "1.20.
|
|
4
|
+
"version": "1.20.5",
|
|
5
5
|
"description": "XYO Layer One React SDK BoundWitness",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -48,20 +48,20 @@
|
|
|
48
48
|
"@xylabs/react-flexbox": "~7.1.17",
|
|
49
49
|
"@xylabs/react-promise": "~7.1.17",
|
|
50
50
|
"@xylabs/react-quick-tip-button": "~7.1.17",
|
|
51
|
-
"@xylabs/sdk-js": "~5.0.
|
|
51
|
+
"@xylabs/sdk-js": "~5.0.83",
|
|
52
52
|
"@xyo-network/boundwitness-model": "~5.3.15",
|
|
53
|
-
"@xyo-network/chain-utils": "~1.20.
|
|
54
|
-
"@xyo-network/chain-validation": "~1.20.
|
|
55
|
-
"@xyo-network/chain-wrappers": "~1.20.
|
|
53
|
+
"@xyo-network/chain-utils": "~1.20.5",
|
|
54
|
+
"@xyo-network/chain-validation": "~1.20.5",
|
|
55
|
+
"@xyo-network/chain-wrappers": "~1.20.5",
|
|
56
56
|
"@xyo-network/react-boundwitness-plugin": "~7.5.5",
|
|
57
|
-
"@xyo-network/react-chain-blockchain": "~1.20.
|
|
58
|
-
"@xyo-network/react-chain-blockies": "~1.20.
|
|
59
|
-
"@xyo-network/react-chain-shared": "~1.20.
|
|
57
|
+
"@xyo-network/react-chain-blockchain": "~1.20.5",
|
|
58
|
+
"@xyo-network/react-chain-blockies": "~1.20.5",
|
|
59
|
+
"@xyo-network/react-chain-shared": "~1.20.5",
|
|
60
60
|
"@xyo-network/react-event": "~7.5.5",
|
|
61
61
|
"@xyo-network/react-shared": "~7.5.5",
|
|
62
62
|
"@xyo-network/react-table": "~7.5.5",
|
|
63
63
|
"@xyo-network/sdk-js": "~5.3.15",
|
|
64
|
-
"@xyo-network/xl1-sdk": "~1.25.
|
|
64
|
+
"@xyo-network/xl1-sdk": "~1.25.22",
|
|
65
65
|
"react-icons": "~5.6.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
@@ -74,12 +74,12 @@
|
|
|
74
74
|
"@opentelemetry/api": "^1.9.0",
|
|
75
75
|
"@storybook/react-vite": "^10.2.17",
|
|
76
76
|
"@types/react": "^19.2.14",
|
|
77
|
-
"@xylabs/ts-scripts-yarn3": "~7.4.
|
|
78
|
-
"@xylabs/tsconfig": "~7.4.
|
|
79
|
-
"@xylabs/tsconfig-dom": "~7.4.
|
|
80
|
-
"@xylabs/tsconfig-react": "~7.4.
|
|
81
|
-
"@xyo-network/react-chain-network": "~1.20.
|
|
82
|
-
"@xyo-network/react-chain-provider": "~1.20.
|
|
77
|
+
"@xylabs/ts-scripts-yarn3": "~7.4.13",
|
|
78
|
+
"@xylabs/tsconfig": "~7.4.13",
|
|
79
|
+
"@xylabs/tsconfig-dom": "~7.4.13",
|
|
80
|
+
"@xylabs/tsconfig-react": "~7.4.13",
|
|
81
|
+
"@xyo-network/react-chain-network": "~1.20.5",
|
|
82
|
+
"@xyo-network/react-chain-provider": "~1.20.5",
|
|
83
83
|
"@xyo-network/sdk-js": "~5.3.15",
|
|
84
84
|
"axios": "^1.13.6",
|
|
85
85
|
"eslint": "^9.39.4",
|
|
@@ -2,30 +2,21 @@ import {
|
|
|
2
2
|
Alert, AlertTitle,
|
|
3
3
|
Snackbar,
|
|
4
4
|
} from '@mui/material'
|
|
5
|
-
import type {
|
|
6
|
-
Decorator, Meta, StoryFn,
|
|
7
|
-
} from '@storybook/react-vite'
|
|
5
|
+
import type { Meta, StoryFn } from '@storybook/react-vite'
|
|
8
6
|
import { type BlockHeaderEventNouns, useBlockHeadingEvents } from '@xyo-network/react-chain-blockchain'
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { SequenceNetworkGatewayDecorator } from '@xyo-network/react-chain-network'
|
|
8
|
+
import { useViewerFromGateway } from '@xyo-network/react-chain-provider'
|
|
11
9
|
import { buildRandomBlockChain } from '@xyo-network/react-chain-shared'
|
|
12
10
|
import type { Event } from '@xyo-network/react-event'
|
|
13
11
|
import type { XyoViewer } from '@xyo-network/xl1-sdk'
|
|
14
|
-
import {
|
|
15
|
-
import React, { useState } from 'react'
|
|
12
|
+
import { useState } from 'react'
|
|
16
13
|
|
|
17
14
|
import { BlockBoundWitnessDetails } from './BlockBoundWitnessDetails.tsx'
|
|
18
15
|
|
|
19
|
-
const NetworkDecorator: Decorator = Story => (
|
|
20
|
-
<ChainNetworkProvider networks={[SequenceNetwork]}>
|
|
21
|
-
<Story />
|
|
22
|
-
</ChainNetworkProvider>
|
|
23
|
-
)
|
|
24
|
-
|
|
25
16
|
export default {
|
|
26
17
|
title: 'BoundWitness/Block/Details/Flexbox',
|
|
27
18
|
component: BlockBoundWitnessDetails,
|
|
28
|
-
decorators: [
|
|
19
|
+
decorators: [SequenceNetworkGatewayDecorator],
|
|
29
20
|
} as Meta
|
|
30
21
|
|
|
31
22
|
const blocks = await buildRandomBlockChain(300)
|
|
@@ -49,7 +40,7 @@ const TemplateWithEvents: StoryFn<typeof BlockBoundWitnessDetails> = (args) => {
|
|
|
49
40
|
const [ref] = useBlockHeadingEvents((noun, verb, data) => setEvent({
|
|
50
41
|
noun, verb, data,
|
|
51
42
|
}))
|
|
52
|
-
const viewer =
|
|
43
|
+
const viewer = useViewerFromGateway()
|
|
53
44
|
|
|
54
45
|
return (
|
|
55
46
|
<>
|