@xyo-network/react-schema 2.70.6 → 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
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"@xyo-network/node-core-types": "^2.86.0",
|
|
22
22
|
"@xyo-network/payload-builder": "^2.92.3",
|
|
23
23
|
"@xyo-network/payload-model": "^2.92.3",
|
|
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.
|
|
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
28
|
"@xyo-network/schema-cache": "^2.92.3",
|
|
29
29
|
"@xyo-network/schema-payload-plugin": "^2.92.3",
|
|
30
30
|
"react-router-dom": "^6.22.3"
|
|
@@ -37,13 +37,15 @@
|
|
|
37
37
|
"@xyo-network/http-bridge": "^2.92.3",
|
|
38
38
|
"@xyo-network/node-memory": "^2.92.3",
|
|
39
39
|
"@xyo-network/node-model": "^2.92.3",
|
|
40
|
-
"@xyo-network/react-node": "~2.70.
|
|
41
|
-
"@xyo-network/react-
|
|
42
|
-
"@xyo-network/react-
|
|
43
|
-
"react-
|
|
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
|
)
|