@xyo-network/react-schema 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
@@ -14,32 +14,31 @@
14
14
  "@xylabs/react-link": "^2.17.3",
15
15
  "@xylabs/react-select": "^2.17.3",
16
16
  "@xylabs/react-shared": "^2.17.3",
17
- "@xyo-network/account-model": "^2.62.1",
18
- "@xyo-network/diviner-schema-list-model": "^2.62.1",
19
- "@xyo-network/diviner-schema-stats-model": "^2.62.1",
20
- "@xyo-network/module": "^2.62.1",
21
- "@xyo-network/node-core-types": "^2.62.1",
22
- "@xyo-network/payload-builder": "^2.62.1",
23
- "@xyo-network/react-diviner": "^2.54.0",
24
- "@xyo-network/react-event": "^2.54.0",
25
- "@xyo-network/react-property": "^2.54.0",
26
- "@xyo-network/react-shared": "^2.54.0",
27
- "@xyo-network/schema-cache": "^2.62.1",
28
- "@xyo-network/schema-payload-plugin": "^2.62.1",
17
+ "@xyo-network/account-model": "^2.63.1",
18
+ "@xyo-network/diviner-schema-list-model": "^2.63.1",
19
+ "@xyo-network/diviner-schema-stats-model": "^2.63.1",
20
+ "@xyo-network/module": "^2.63.1",
21
+ "@xyo-network/node-core-types": "^2.63.1",
22
+ "@xyo-network/payload-builder": "^2.63.1",
23
+ "@xyo-network/react-diviner": "^2.55.0",
24
+ "@xyo-network/react-event": "^2.55.0",
25
+ "@xyo-network/react-property": "^2.55.0",
26
+ "@xyo-network/react-shared": "^2.55.0",
27
+ "@xyo-network/schema-cache": "^2.63.1",
28
+ "@xyo-network/schema-payload-plugin": "^2.63.1",
29
29
  "lodash": "^4.17.21"
30
30
  },
31
31
  "devDependencies": {
32
- "@storybook/react": "^7.0.21",
32
+ "@storybook/react": "^7.0.23",
33
33
  "@types/lodash": "^4.14.195",
34
34
  "@xylabs/react-flexbox": "^2.17.3",
35
- "@xylabs/ts-scripts-yarn3": "^2.17.13",
36
- "@xylabs/tsconfig-react": "^2.17.13",
37
- "@xyo-network/account": "^2.62.1",
38
- "@xyo-network/bridge": "^2.62.1",
39
- "@xyo-network/node": "^2.62.1",
40
- "@xyo-network/react-node": "^2.54.0",
41
- "@xyo-network/react-storybook": "^2.54.0",
42
- "@xyo-network/react-wallet": "^2.54.0",
35
+ "@xylabs/ts-scripts-yarn3": "^2.17.17",
36
+ "@xylabs/tsconfig-react": "^2.17.17",
37
+ "@xyo-network/bridge": "^2.63.1",
38
+ "@xyo-network/node": "^2.63.1",
39
+ "@xyo-network/react-node": "^2.55.0",
40
+ "@xyo-network/react-storybook": "^2.55.0",
41
+ "@xyo-network/react-wallet": "^2.55.0",
43
42
  "react-json-view": "^1.21.3",
44
43
  "typescript": "^5.1.3"
45
44
  },
@@ -95,5 +94,5 @@
95
94
  },
96
95
  "sideEffects": false,
97
96
  "types": "dist/types/index.d.ts",
98
- "version": "2.54.0"
97
+ "version": "2.55.0"
99
98
  }
@@ -2,12 +2,11 @@ import { Alert, Button, TextField, Typography } from '@mui/material'
2
2
  import { Decorator, Meta, StoryFn } from '@storybook/react'
3
3
  import { useAsyncEffect } from '@xylabs/react-async-effect'
4
4
  import { FlexGrowRow } from '@xylabs/react-flexbox'
5
- import { HDWallet } from '@xyo-network/account'
6
5
  import { HttpBridge, HttpBridgeConfigSchema } from '@xyo-network/bridge'
7
6
  import { MemoryNode, NodeConfigSchema } from '@xyo-network/node'
8
7
  import { NodeProvider } from '@xyo-network/react-node'
9
8
  import { DefaultSeedPhrase } from '@xyo-network/react-storybook'
10
- import { WalletProvider } from '@xyo-network/react-wallet'
9
+ import { useAccount, WalletProvider } from '@xyo-network/react-wallet'
11
10
  import { SchemaCache } from '@xyo-network/schema-cache'
12
11
  import { useState } from 'react'
13
12
 
@@ -17,7 +16,6 @@ import { useSchemaStats } from '../useSchemaStats'
17
16
 
18
17
  const apiConfig = { apiDomain: 'https://api.archivist.xyo.network' }
19
18
  const nodeUrl = 'http://localhost:8080/node'
20
- const randomWallet = HDWallet.fromMnemonic(DefaultSeedPhrase)
21
19
 
22
20
  const MemoryNodeDecorator: Decorator = (Story, args) => {
23
21
  const [node, setNode] = useState<MemoryNode>()
@@ -34,8 +32,10 @@ const MemoryNodeDecorator: Decorator = (Story, args) => {
34
32
  [],
35
33
  )
36
34
 
35
+ const [account] = useAccount({ mnemonic: DefaultSeedPhrase })
36
+
37
37
  return (
38
- <WalletProvider defaultWallet={randomWallet}>
38
+ <WalletProvider defaultWallet={account}>
39
39
  <NodeProvider node={node}>
40
40
  <Story {...args} />
41
41
  </NodeProvider>