@xyo-network/react-node-renderer 2.54.0 → 2.55.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/package.json
CHANGED
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"@xylabs/react-async-effect": "^2.17.3",
|
|
14
14
|
"@xylabs/react-flexbox": "^2.17.3",
|
|
15
15
|
"@xylabs/react-shared": "^2.17.3",
|
|
16
|
-
"@xyo-network/archivist-model": "^2.
|
|
17
|
-
"@xyo-network/diviner-model": "^2.
|
|
18
|
-
"@xyo-network/module": "^2.
|
|
19
|
-
"@xyo-network/node": "^2.
|
|
20
|
-
"@xyo-network/react-archivist": "^2.
|
|
21
|
-
"@xyo-network/react-module": "^2.
|
|
22
|
-
"@xyo-network/react-node": "^2.
|
|
23
|
-
"@xyo-network/react-shared": "^2.
|
|
16
|
+
"@xyo-network/archivist-model": "^2.63.1",
|
|
17
|
+
"@xyo-network/diviner-model": "^2.63.1",
|
|
18
|
+
"@xyo-network/module": "^2.63.1",
|
|
19
|
+
"@xyo-network/node": "^2.63.1",
|
|
20
|
+
"@xyo-network/react-archivist": "^2.55.0",
|
|
21
|
+
"@xyo-network/react-module": "^2.55.0",
|
|
22
|
+
"@xyo-network/react-node": "^2.55.0",
|
|
23
|
+
"@xyo-network/react-shared": "^2.55.0",
|
|
24
24
|
"cytoscape": "^3.25.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -33,21 +33,20 @@
|
|
|
33
33
|
"react-router-dom": "^6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@storybook/react": "^7.0.
|
|
37
|
-
"@types/cytoscape": "^3.19.
|
|
38
|
-
"@types/react-dom": "^18.2.
|
|
39
|
-
"@xylabs/ts-scripts-yarn3": "^2.17.
|
|
40
|
-
"@xylabs/tsconfig-react": "^2.17.
|
|
41
|
-
"@xyo-network/
|
|
42
|
-
"@xyo-network/
|
|
43
|
-
"@xyo-network/
|
|
44
|
-
"@xyo-network/
|
|
45
|
-
"@xyo-network/
|
|
46
|
-
"@xyo-network/node": "^2.
|
|
47
|
-
"@xyo-network/react-
|
|
48
|
-
"@xyo-network/react-
|
|
49
|
-
"@xyo-network/
|
|
50
|
-
"@xyo-network/sentinel": "^2.62.1",
|
|
36
|
+
"@storybook/react": "^7.0.23",
|
|
37
|
+
"@types/cytoscape": "^3.19.10",
|
|
38
|
+
"@types/react-dom": "^18.2.6",
|
|
39
|
+
"@xylabs/ts-scripts-yarn3": "^2.17.17",
|
|
40
|
+
"@xylabs/tsconfig-react": "^2.17.17",
|
|
41
|
+
"@xyo-network/archivist": "^2.63.1",
|
|
42
|
+
"@xyo-network/bridge": "^2.63.1",
|
|
43
|
+
"@xyo-network/id-plugin": "^2.63.1",
|
|
44
|
+
"@xyo-network/module": "^2.63.1",
|
|
45
|
+
"@xyo-network/node": "^2.63.1",
|
|
46
|
+
"@xyo-network/react-node": "^2.55.0",
|
|
47
|
+
"@xyo-network/react-storybook": "^2.55.0",
|
|
48
|
+
"@xyo-network/react-wallet": "^2.55.0",
|
|
49
|
+
"@xyo-network/sentinel": "^2.63.1",
|
|
51
50
|
"typescript": "^5.1.3"
|
|
52
51
|
},
|
|
53
52
|
"description": "Common React library for all XYO projects that use React",
|
|
@@ -93,5 +92,5 @@
|
|
|
93
92
|
},
|
|
94
93
|
"sideEffects": false,
|
|
95
94
|
"types": "dist/types/index.d.ts",
|
|
96
|
-
"version": "2.
|
|
95
|
+
"version": "2.55.0"
|
|
97
96
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { Button, ButtonGroup } from '@mui/material'
|
|
2
2
|
import { Decorator, Meta, StoryFn } from '@storybook/react'
|
|
3
3
|
import { useAsyncEffect } from '@xylabs/react-async-effect'
|
|
4
|
-
import { HDWallet } from '@xyo-network/account'
|
|
5
4
|
import { MemoryArchivist, MemoryArchivistConfigSchema } from '@xyo-network/archivist'
|
|
6
5
|
import { HttpBridge, HttpBridgeConfigSchema } from '@xyo-network/bridge'
|
|
7
6
|
import { IdWitness, IdWitnessConfigSchema } from '@xyo-network/id-plugin'
|
|
8
7
|
import { MemoryNode, NodeConfigSchema, NodeWrapper } from '@xyo-network/node'
|
|
9
8
|
import { NodeProvider, useModule, useProvidedWrappedNode } from '@xyo-network/react-node'
|
|
10
9
|
import { DefaultSeedPhrase } from '@xyo-network/react-storybook'
|
|
11
|
-
import { WalletProvider } from '@xyo-network/react-wallet'
|
|
10
|
+
import { useAccount, WalletProvider } from '@xyo-network/react-wallet'
|
|
12
11
|
import { MemorySentinel, SentinelConfigSchema } from '@xyo-network/sentinel'
|
|
13
12
|
import { useMemo, useState } from 'react'
|
|
14
13
|
|
|
@@ -18,7 +17,6 @@ import { NodeRelationalGraph } from './RelationalGraph'
|
|
|
18
17
|
import { options } from './story'
|
|
19
18
|
|
|
20
19
|
const nodeUrl = 'http://localhost:8080/node'
|
|
21
|
-
const randomWallet = HDWallet.fromMnemonic(DefaultSeedPhrase)
|
|
22
20
|
|
|
23
21
|
export const MemoryNodeDecorator: Decorator = (Story, args) => {
|
|
24
22
|
const [node, setNode] = useState<MemoryNode>()
|
|
@@ -58,8 +56,10 @@ export const MemoryNodeDecorator: Decorator = (Story, args) => {
|
|
|
58
56
|
[],
|
|
59
57
|
)
|
|
60
58
|
|
|
59
|
+
const [account] = useAccount({ mnemonic: DefaultSeedPhrase })
|
|
60
|
+
|
|
61
61
|
return (
|
|
62
|
-
<WalletProvider defaultWallet={
|
|
62
|
+
<WalletProvider defaultWallet={account}>
|
|
63
63
|
<NodeProvider node={node}>
|
|
64
64
|
<Story {...args} />
|
|
65
65
|
</NodeProvider>
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Decorator, Meta, StoryFn } from '@storybook/react'
|
|
2
2
|
import { useAsyncEffect } from '@xylabs/react-async-effect'
|
|
3
|
-
import { HDWallet } from '@xyo-network/account'
|
|
4
3
|
import { ArchivistConfigSchema, MemoryArchivist } from '@xyo-network/archivist'
|
|
5
4
|
import { MemoryNode, NodeConfigSchema } from '@xyo-network/node'
|
|
6
5
|
import { NodeProvider, useProvidedWrappedNode } from '@xyo-network/react-node'
|
|
7
6
|
import { DefaultSeedPhrase } from '@xyo-network/react-storybook'
|
|
8
|
-
import { WalletProvider } from '@xyo-network/react-wallet'
|
|
7
|
+
import { useAccount, WalletProvider } from '@xyo-network/react-wallet'
|
|
9
8
|
import { EventObject } from 'cytoscape'
|
|
10
9
|
import { useEffect, useState } from 'react'
|
|
11
10
|
|
|
@@ -13,8 +12,6 @@ import { CytoscapeInstanceProvider, useCytoscapeInstance } from '../contexts'
|
|
|
13
12
|
import { useCytoscapeElements, useCytoscapeOptions } from '../hooks'
|
|
14
13
|
import { NodeRelationalGraph } from './RelationalGraph'
|
|
15
14
|
|
|
16
|
-
const randomWallet = HDWallet.fromMnemonic(DefaultSeedPhrase)
|
|
17
|
-
|
|
18
15
|
const MemoryNodeDecorator: Decorator = (Story, args) => {
|
|
19
16
|
const [node, setNode] = useState<MemoryNode>()
|
|
20
17
|
|
|
@@ -32,8 +29,10 @@ const MemoryNodeDecorator: Decorator = (Story, args) => {
|
|
|
32
29
|
[],
|
|
33
30
|
)
|
|
34
31
|
|
|
32
|
+
const [account] = useAccount({ mnemonic: DefaultSeedPhrase })
|
|
33
|
+
|
|
35
34
|
return (
|
|
36
|
-
<WalletProvider defaultWallet={
|
|
35
|
+
<WalletProvider defaultWallet={account}>
|
|
37
36
|
<NodeProvider node={node}>
|
|
38
37
|
<CytoscapeInstanceProvider>
|
|
39
38
|
<Story {...args} />
|