@xyo-network/react-schema 2.70.5 → 2.70.7
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
|
@@ -10,40 +10,42 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/hex": "^3.0.
|
|
14
|
-
"@xylabs/lodash": "^3.0.
|
|
15
|
-
"@xylabs/react-async-effect": "^3.1.
|
|
16
|
-
"@xylabs/react-link": "^3.1.
|
|
17
|
-
"@xylabs/react-select": "^3.1.
|
|
18
|
-
"@xylabs/react-shared": "^3.1.
|
|
19
|
-
"@xyo-network/diviner-schema-list-model": "^2.92.
|
|
20
|
-
"@xyo-network/diviner-schema-stats-model": "^2.92.
|
|
13
|
+
"@xylabs/hex": "^3.0.12",
|
|
14
|
+
"@xylabs/lodash": "^3.0.12",
|
|
15
|
+
"@xylabs/react-async-effect": "^3.1.5",
|
|
16
|
+
"@xylabs/react-link": "^3.1.5",
|
|
17
|
+
"@xylabs/react-select": "^3.1.5",
|
|
18
|
+
"@xylabs/react-shared": "^3.1.5",
|
|
19
|
+
"@xyo-network/diviner-schema-list-model": "^2.92.3",
|
|
20
|
+
"@xyo-network/diviner-schema-stats-model": "^2.92.3",
|
|
21
21
|
"@xyo-network/node-core-types": "^2.86.0",
|
|
22
|
-
"@xyo-network/payload-builder": "^2.92.
|
|
23
|
-
"@xyo-network/payload-model": "^2.92.
|
|
24
|
-
"@xyo-network/react-diviner": "~2.70.
|
|
25
|
-
"@xyo-network/react-event": "~2.70.
|
|
26
|
-
"@xyo-network/react-property": "~2.70.
|
|
27
|
-
"@xyo-network/react-shared": "~2.70.
|
|
28
|
-
"@xyo-network/schema-cache": "^2.92.
|
|
29
|
-
"@xyo-network/schema-payload-plugin": "^2.92.
|
|
30
|
-
"react-router-dom": "^6.22.
|
|
22
|
+
"@xyo-network/payload-builder": "^2.92.3",
|
|
23
|
+
"@xyo-network/payload-model": "^2.92.3",
|
|
24
|
+
"@xyo-network/react-diviner": "~2.70.7",
|
|
25
|
+
"@xyo-network/react-event": "~2.70.7",
|
|
26
|
+
"@xyo-network/react-property": "~2.70.7",
|
|
27
|
+
"@xyo-network/react-shared": "~2.70.7",
|
|
28
|
+
"@xyo-network/schema-cache": "^2.92.3",
|
|
29
|
+
"@xyo-network/schema-payload-plugin": "^2.92.3",
|
|
30
|
+
"react-router-dom": "^6.22.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@storybook/react": "^7.6.17",
|
|
34
|
-
"@xylabs/react-flexbox": "^3.1.
|
|
35
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
36
|
-
"@xylabs/tsconfig-react": "^3.
|
|
37
|
-
"@xyo-network/http-bridge": "^2.92.
|
|
38
|
-
"@xyo-network/node-memory": "^2.92.
|
|
39
|
-
"@xyo-network/node-model": "^2.92.
|
|
40
|
-
"@xyo-network/react-node": "~2.70.
|
|
41
|
-
"@xyo-network/react-
|
|
42
|
-
"@xyo-network/react-
|
|
43
|
-
"react-
|
|
34
|
+
"@xylabs/react-flexbox": "^3.1.5",
|
|
35
|
+
"@xylabs/ts-scripts-yarn3": "^3.5.2",
|
|
36
|
+
"@xylabs/tsconfig-react": "^3.5.2",
|
|
37
|
+
"@xyo-network/http-bridge": "^2.92.3",
|
|
38
|
+
"@xyo-network/node-memory": "^2.92.3",
|
|
39
|
+
"@xyo-network/node-model": "^2.92.3",
|
|
40
|
+
"@xyo-network/react-node": "~2.70.7",
|
|
41
|
+
"@xyo-network/react-payload-raw-info": "~2.70.6",
|
|
42
|
+
"@xyo-network/react-storybook": "~2.70.7",
|
|
43
|
+
"@xyo-network/react-wallet": "~2.70.7",
|
|
44
44
|
"typescript": "^5.4.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
+
"@emotion/react": "^11",
|
|
48
|
+
"@emotion/styled": "^11",
|
|
47
49
|
"@mui/icons-material": "^5",
|
|
48
50
|
"@mui/material": "^5",
|
|
49
51
|
"@mui/styles": "^5",
|
|
@@ -101,6 +103,6 @@
|
|
|
101
103
|
},
|
|
102
104
|
"sideEffects": false,
|
|
103
105
|
"types": "dist/browser/index.d.ts",
|
|
104
|
-
"version": "2.70.
|
|
106
|
+
"version": "2.70.7",
|
|
105
107
|
"type": "module"
|
|
106
108
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { FormControl, TextField, Typography } from '@mui/material'
|
|
2
2
|
import { Meta, StoryFn } from '@storybook/react'
|
|
3
|
-
import {
|
|
3
|
+
import { FlexRow } from '@xylabs/react-flexbox'
|
|
4
4
|
import { SchemaCache } from '@xyo-network/schema-cache'
|
|
5
|
-
import {
|
|
5
|
+
import { useEffect, useState } from 'react'
|
|
6
|
+
import { JsonViewerEx } from '@xyo-network/react-payload-raw-info'
|
|
6
7
|
|
|
7
8
|
import { useGetSchemaPayload } from './useGetSchema'
|
|
8
9
|
|
|
9
|
-
const JsonView = lazy(() => import(/* webpackChunkName: "jsonView" */ 'react-json-view'))
|
|
10
|
-
|
|
11
10
|
SchemaCache.instance.proxy = 'https://beta.api.archivist.xyo.network/domain'
|
|
12
11
|
|
|
13
12
|
const UseGetSchemaComponent: React.FC<{ schema: string }> = ({ schema }) => {
|
|
@@ -41,9 +40,7 @@ const UseGetSchemaComponent: React.FC<{ schema: string }> = ({ schema }) => {
|
|
|
41
40
|
<TextField value={schemaFieldValue} label="Schema Name" onChange={(e) => setSchemaFieldValue(e.target.value)} />
|
|
42
41
|
</FormControl>
|
|
43
42
|
<FlexRow my={3} justifyContent="start">
|
|
44
|
-
|
|
45
|
-
<JsonView src={schemaPayload || {}} />
|
|
46
|
-
</Suspense>
|
|
43
|
+
<JsonViewerEx value={schemaPayload || {}} />
|
|
47
44
|
</FlexRow>
|
|
48
45
|
</>
|
|
49
46
|
)
|