@xyo-network/react-schema 2.76.3 → 2.76.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
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"@xylabs/react-link": "^3.1.7",
|
|
17
17
|
"@xylabs/react-select": "^3.1.7",
|
|
18
18
|
"@xylabs/react-shared": "^3.1.7",
|
|
19
|
-
"@xyo-network/diviner-schema-list-model": "^2.
|
|
20
|
-
"@xyo-network/diviner-schema-stats-model": "^2.
|
|
21
|
-
"@xyo-network/node-core-types": "^2.88.
|
|
22
|
-
"@xyo-network/payload-builder": "^2.
|
|
23
|
-
"@xyo-network/payload-model": "^2.
|
|
24
|
-
"@xyo-network/react-diviner": "~2.76.
|
|
25
|
-
"@xyo-network/react-event": "~2.76.
|
|
26
|
-
"@xyo-network/react-property": "~2.76.
|
|
27
|
-
"@xyo-network/react-shared": "~2.76.
|
|
28
|
-
"@xyo-network/schema-cache": "^2.
|
|
29
|
-
"@xyo-network/schema-payload-plugin": "^2.
|
|
19
|
+
"@xyo-network/diviner-schema-list-model": "^2.103.0",
|
|
20
|
+
"@xyo-network/diviner-schema-stats-model": "^2.103.0",
|
|
21
|
+
"@xyo-network/node-core-types": "^2.88.2",
|
|
22
|
+
"@xyo-network/payload-builder": "^2.103.0",
|
|
23
|
+
"@xyo-network/payload-model": "^2.103.0",
|
|
24
|
+
"@xyo-network/react-diviner": "~2.76.5",
|
|
25
|
+
"@xyo-network/react-event": "~2.76.5",
|
|
26
|
+
"@xyo-network/react-property": "~2.76.5",
|
|
27
|
+
"@xyo-network/react-shared": "~2.76.5",
|
|
28
|
+
"@xyo-network/schema-cache": "^2.103.0",
|
|
29
|
+
"@xyo-network/schema-payload-plugin": "^2.103.0",
|
|
30
30
|
"react-router-dom": "^6.23.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"@xylabs/react-flexbox": "^3.1.7",
|
|
35
35
|
"@xylabs/ts-scripts-yarn3": "^3.10.4",
|
|
36
36
|
"@xylabs/tsconfig-react": "^3.10.4",
|
|
37
|
-
"@xyo-network/http
|
|
38
|
-
"@xyo-network/node-memory": "^2.
|
|
39
|
-
"@xyo-network/node-model": "^2.
|
|
40
|
-
"@xyo-network/react-node": "~2.76.
|
|
41
|
-
"@xyo-network/react-payload-raw-info": "~2.76.
|
|
42
|
-
"@xyo-network/react-storybook": "~2.76.
|
|
43
|
-
"@xyo-network/react-wallet": "~2.76.
|
|
37
|
+
"@xyo-network/bridge-http": "^2.103.0",
|
|
38
|
+
"@xyo-network/node-memory": "^2.103.0",
|
|
39
|
+
"@xyo-network/node-model": "^2.103.0",
|
|
40
|
+
"@xyo-network/react-node": "~2.76.5",
|
|
41
|
+
"@xyo-network/react-payload-raw-info": "~2.76.5",
|
|
42
|
+
"@xyo-network/react-storybook": "~2.76.5",
|
|
43
|
+
"@xyo-network/react-wallet": "~2.76.5",
|
|
44
44
|
"typescript": "^5.4.5"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -103,6 +103,6 @@
|
|
|
103
103
|
},
|
|
104
104
|
"sideEffects": false,
|
|
105
105
|
"types": "dist/browser/index.d.ts",
|
|
106
|
-
"version": "2.76.
|
|
106
|
+
"version": "2.76.5",
|
|
107
107
|
"type": "module"
|
|
108
108
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Alert, Button, TextField, Typography } from '@mui/material'
|
|
2
2
|
import { Decorator, Meta, StoryFn } from '@storybook/react'
|
|
3
|
+
import { Address } from '@xylabs/hex'
|
|
3
4
|
import { useAsyncEffect } from '@xylabs/react-async-effect'
|
|
4
5
|
import { FlexGrowRow } from '@xylabs/react-flexbox'
|
|
5
|
-
import { HttpBridge, HttpBridgeConfigSchema } from '@xyo-network/http
|
|
6
|
+
import { HttpBridge, HttpBridgeConfigSchema } from '@xyo-network/bridge-http'
|
|
6
7
|
import { MemoryNode } from '@xyo-network/node-memory'
|
|
7
8
|
import { NodeConfigSchema } from '@xyo-network/node-model'
|
|
8
9
|
import { NodeProvider } from '@xyo-network/react-node'
|
|
@@ -10,7 +11,6 @@ import { DefaultSeedPhrase } from '@xyo-network/react-storybook'
|
|
|
10
11
|
import { useWallet, WalletProvider } from '@xyo-network/react-wallet'
|
|
11
12
|
import { SchemaCache } from '@xyo-network/schema-cache'
|
|
12
13
|
import { useState } from 'react'
|
|
13
|
-
import {Address} from '@xylabs/hex'
|
|
14
14
|
|
|
15
15
|
import { useSchemaDefinitions } from '../useSchemaDefinitions'
|
|
16
16
|
import { useSchemaList } from '../useSchemaList'
|
|
@@ -62,7 +62,9 @@ const Template: StoryFn<React.FC> = () => {
|
|
|
62
62
|
|
|
63
63
|
return (
|
|
64
64
|
<div style={{ display: 'flex', flexDirection: 'column', rowGap: '16px' }}>
|
|
65
|
-
{schemaStatsError ?
|
|
65
|
+
{schemaStatsError ?
|
|
66
|
+
<Alert severity={'error'}>{schemaStatsError.message ?? schemaListError?.message}</Alert>
|
|
67
|
+
: null}
|
|
66
68
|
<FlexGrowRow columnGap={4}>
|
|
67
69
|
<TextField fullWidth size="small" value={address} label="Address" onChange={(event) => setAddressText(event.target.value as Address)} />
|
|
68
70
|
<Button variant="contained" onClick={() => setAddress(addressText)} sx={{ whiteSpace: 'nowrap' }}>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FormControl, TextField, Typography } from '@mui/material'
|
|
2
2
|
import { Meta, StoryFn } from '@storybook/react'
|
|
3
3
|
import { FlexRow } from '@xylabs/react-flexbox'
|
|
4
|
+
import { JsonViewerEx } from '@xyo-network/react-payload-raw-info'
|
|
4
5
|
import { SchemaCache } from '@xyo-network/schema-cache'
|
|
5
6
|
import { useEffect, useState } from 'react'
|
|
6
|
-
import { JsonViewerEx } from '@xyo-network/react-payload-raw-info'
|
|
7
7
|
|
|
8
8
|
import { useGetSchemaPayload } from './useGetSchema'
|
|
9
9
|
|
|
@@ -40,7 +40,7 @@ const UseGetSchemaComponent: React.FC<{ schema: string }> = ({ schema }) => {
|
|
|
40
40
|
<TextField value={schemaFieldValue} label="Schema Name" onChange={(e) => setSchemaFieldValue(e.target.value)} />
|
|
41
41
|
</FormControl>
|
|
42
42
|
<FlexRow my={3} justifyContent="start">
|
|
43
|
-
|
|
43
|
+
<JsonViewerEx value={schemaPayload || {}} />
|
|
44
44
|
</FlexRow>
|
|
45
45
|
</>
|
|
46
46
|
)
|