@xyo-network/react-schema-plugin 7.5.7 → 7.5.11
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/dist/browser/index.mjs +6 -13
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +149 -23
- package/src/Details.tsx +0 -8
- package/src/Plugin.ts +0 -12
- package/src/index.ts +0 -2
package/dist/browser/index.mjs
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
1
|
// src/Plugin.ts
|
|
5
2
|
import { createPayloadRenderPlugin } from "@xyo-network/react-payload-plugin";
|
|
6
3
|
import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
|
|
7
4
|
|
|
8
5
|
// src/Details.tsx
|
|
9
6
|
import { PayloadDetails } from "@xyo-network/react-payload-details";
|
|
10
|
-
import
|
|
11
|
-
var DetailsBox =
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
}
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var DetailsBox = (props) => {
|
|
9
|
+
return /* @__PURE__ */ jsx(PayloadDetails, { ...props });
|
|
10
|
+
};
|
|
14
11
|
|
|
15
12
|
// src/Plugin.ts
|
|
16
13
|
var SchemaRenderPlugin = createPayloadRenderPlugin({
|
|
17
|
-
canRender:
|
|
18
|
-
components: {
|
|
19
|
-
box: {
|
|
20
|
-
details: DetailsBox
|
|
21
|
-
}
|
|
22
|
-
},
|
|
14
|
+
canRender: (payload) => payload?.schema === SchemaSchema,
|
|
15
|
+
components: { box: { details: DetailsBox } },
|
|
23
16
|
name: "Schema"
|
|
24
17
|
});
|
|
25
18
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { DetailsBox } from './Details.tsx'\n\nexport const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === SchemaSchema,\n components: { box: { details: DetailsBox } },\n name: 'Schema',\n})\n","import type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport type { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\nimport React from 'react'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { DetailsBox } from './Details.tsx'\n\nexport const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === SchemaSchema,\n components: { box: { details: DetailsBox } },\n name: 'Schema',\n})\n","import type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport type { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\nimport React from 'react'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":";AAEA,SAAS,iCAAiC;AAC1C,SAAS,oBAAoB;;;ACF7B,SAAS,sBAAsB;AAKtB;AADF,IAAM,aAA0D,CAAC,UAAU;AAChF,SAAO,oBAAC,kBAAgB,GAAG,OAAO;AACpC;;;ADAO,IAAM,qBAA0C,0BAA0B;AAAA,EAC/E,WAAW,CAAC,YAAsB,SAAS,WAAW;AAAA,EACtD,YAAY,EAAE,KAAK,EAAE,SAAS,WAAW,EAAE;AAAA,EAC3C,MAAM;AACR,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-schema-plugin",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.11",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -36,41 +36,167 @@
|
|
|
36
36
|
},
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
|
-
"module": "dist/browser/index.mjs",
|
|
40
|
-
"types": "dist/browser/index.d.ts",
|
|
41
39
|
"files": [
|
|
42
40
|
"dist",
|
|
43
|
-
"
|
|
41
|
+
"README.md"
|
|
44
42
|
],
|
|
45
43
|
"dependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"@xyo-network/react-payload-details": "7.5.
|
|
48
|
-
"@xyo-network/react-payload-plugin": "7.5.7",
|
|
49
|
-
"@xyo-network/schema-payload-plugin": "~5.3.17"
|
|
44
|
+
"@xyo-network/react-payload-plugin": "~7.5.11",
|
|
45
|
+
"@xyo-network/react-payload-details": "~7.5.11"
|
|
50
46
|
},
|
|
51
47
|
"devDependencies": {
|
|
52
|
-
"@
|
|
53
|
-
"@emotion/
|
|
54
|
-
"@
|
|
55
|
-
"@mui/material": "
|
|
48
|
+
"@bitauth/libauth": "~3.0.0",
|
|
49
|
+
"@emotion/react": "^11.14.0",
|
|
50
|
+
"@emotion/styled": "^11.14.1",
|
|
51
|
+
"@mui/icons-material": "^7.3.10",
|
|
52
|
+
"@mui/material": "^7.3.10",
|
|
53
|
+
"@mui/system": "^7.3.10",
|
|
54
|
+
"@mui/x-tree-view": "~8.27.2",
|
|
55
|
+
"@opentelemetry/api": "^1.9.1",
|
|
56
|
+
"@opentelemetry/sdk-trace-base": "^2.7.0",
|
|
57
|
+
"@scure/base": "~2.2.0",
|
|
58
|
+
"@textea/json-viewer": "~4.0.1",
|
|
59
|
+
"@types/node": "~25.6.0",
|
|
56
60
|
"@types/react": "^19.2.14",
|
|
57
|
-
"@xylabs/
|
|
58
|
-
"@xylabs/
|
|
59
|
-
"@
|
|
60
|
-
"react": "
|
|
61
|
-
"react-
|
|
61
|
+
"@xylabs/react-async-effect": "~7.1.20",
|
|
62
|
+
"@xylabs/react-button": "~7.1.20",
|
|
63
|
+
"@xylabs/react-dialogs": "~7.1.20",
|
|
64
|
+
"@xylabs/react-flexbox": "~7.1.20",
|
|
65
|
+
"@xylabs/react-hooks": "~7.1.20",
|
|
66
|
+
"@xylabs/react-identicon": "~7.1.20",
|
|
67
|
+
"@xylabs/react-link": "~7.1.20",
|
|
68
|
+
"@xylabs/react-promise": "~7.1.20",
|
|
69
|
+
"@xylabs/react-quick-tip-button": "~7.1.20",
|
|
70
|
+
"@xylabs/react-select": "~7.1.20",
|
|
71
|
+
"@xylabs/react-shared": "~7.1.20",
|
|
72
|
+
"@xylabs/react-theme": "~7.1.20",
|
|
73
|
+
"@xylabs/sdk-js": "^5.0.100",
|
|
74
|
+
"@xylabs/threads": "~5.0.100",
|
|
75
|
+
"@xylabs/toolchain": "~7.11.9",
|
|
76
|
+
"@xylabs/tsconfig": "^7.11.9",
|
|
77
|
+
"@xylabs/tsconfig-dom": "^7.11.9",
|
|
78
|
+
"@xylabs/tsconfig-react": "~7.11.9",
|
|
79
|
+
"@xylabs/zod": "~5.0.100",
|
|
80
|
+
"@xyo-network/account": "~5.5.1",
|
|
81
|
+
"@xyo-network/account-model": "^5.5.1",
|
|
82
|
+
"@xyo-network/boundwitness-builder": "^5.5.1",
|
|
83
|
+
"@xyo-network/boundwitness-model": "^5.5.1",
|
|
84
|
+
"@xyo-network/boundwitness-validator": "^5.5.1",
|
|
85
|
+
"@xyo-network/boundwitness-wrapper": "~5.5.1",
|
|
86
|
+
"@xyo-network/config-payload-plugin": "~5.5.1",
|
|
87
|
+
"@xyo-network/diviner-model": "^5.5.5",
|
|
88
|
+
"@xyo-network/diviner-schema-list-model": "~5.5.2",
|
|
89
|
+
"@xyo-network/diviner-schema-stats-model": "~5.5.2",
|
|
90
|
+
"@xyo-network/manifest-model": "~5.5.1",
|
|
91
|
+
"@xyo-network/module-abstract": "^5.5.5",
|
|
92
|
+
"@xyo-network/module-model": "^5.5.5",
|
|
93
|
+
"@xyo-network/node-core-types": "~4.1.10",
|
|
94
|
+
"@xyo-network/node-memory": "~5.5.5",
|
|
95
|
+
"@xyo-network/node-model": "^5.5.5",
|
|
96
|
+
"@xyo-network/payload-builder": "^5.5.1",
|
|
97
|
+
"@xyo-network/payload-model": "^5.5.1",
|
|
98
|
+
"@xyo-network/payload-validator": "^5.5.1",
|
|
99
|
+
"@xyo-network/query-payload-plugin": "~5.5.1",
|
|
100
|
+
"@xyo-network/schema-cache": "~5.5.1",
|
|
101
|
+
"@xyo-network/schema-payload-plugin": "~5.5.1",
|
|
102
|
+
"@xyo-network/typeof": "~5.3.30",
|
|
103
|
+
"@xyo-network/wallet-model": "^5.5.1",
|
|
104
|
+
"ajv": "^8.18.0",
|
|
105
|
+
"async-mutex": "^0.5.0",
|
|
106
|
+
"axios": "^1.15.2",
|
|
107
|
+
"bn.js": "^5.2.3",
|
|
108
|
+
"bowser": "^2.14.1",
|
|
109
|
+
"buffer": "^6.0.3",
|
|
110
|
+
"chalk": "^5.6.2",
|
|
111
|
+
"debug": "~4.4.3",
|
|
112
|
+
"esbuild": "~0.28.0",
|
|
113
|
+
"eslint": "^10.2.1",
|
|
114
|
+
"ethers": "^6.16.0",
|
|
115
|
+
"fast-deep-equal": "~3.1.3",
|
|
116
|
+
"hash-wasm": "~4.12.0",
|
|
117
|
+
"js-cookie": "~3.0.5",
|
|
118
|
+
"lru-cache": "^11.3.5",
|
|
119
|
+
"observable-fns": "~0.6.1",
|
|
120
|
+
"pako": "^2.1.0",
|
|
121
|
+
"react": "^19.2.5",
|
|
122
|
+
"react-dom": "^19.2.5",
|
|
123
|
+
"react-router-dom": "^7.14.2",
|
|
124
|
+
"spark-md5": "~3.0.2",
|
|
62
125
|
"typescript": "^5.9.3",
|
|
126
|
+
"wasm-feature-detect": "~1.8.0",
|
|
63
127
|
"zod": "^4.3.6"
|
|
64
128
|
},
|
|
65
129
|
"peerDependencies": {
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
130
|
+
"@emotion/react": "^11.14.0",
|
|
131
|
+
"@emotion/styled": "^11.14.1",
|
|
132
|
+
"@mui/icons-material": "^7.3.10",
|
|
133
|
+
"@mui/material": "^7.3.10",
|
|
134
|
+
"@mui/system": "^7.3.10",
|
|
135
|
+
"@mui/x-tree-view": "~8.27.2",
|
|
136
|
+
"@opentelemetry/api": "^1.9.1",
|
|
137
|
+
"@opentelemetry/sdk-trace-base": "^2.7.0",
|
|
138
|
+
"@scure/base": "~2.2.0",
|
|
139
|
+
"@textea/json-viewer": "~4.0.1",
|
|
140
|
+
"@xylabs/react-async-effect": "~7.1.20",
|
|
141
|
+
"@xylabs/react-button": "~7.1.20",
|
|
142
|
+
"@xylabs/react-dialogs": "~7.1.20",
|
|
143
|
+
"@xylabs/react-flexbox": "~7.1.20",
|
|
144
|
+
"@xylabs/react-hooks": "~7.1.20",
|
|
145
|
+
"@xylabs/react-identicon": "~7.1.20",
|
|
146
|
+
"@xylabs/react-link": "~7.1.20",
|
|
147
|
+
"@xylabs/react-promise": "~7.1.20",
|
|
148
|
+
"@xylabs/react-quick-tip-button": "~7.1.20",
|
|
149
|
+
"@xylabs/react-select": "~7.1.20",
|
|
150
|
+
"@xylabs/react-shared": "~7.1.20",
|
|
151
|
+
"@xylabs/react-theme": "~7.1.20",
|
|
152
|
+
"@xylabs/sdk-js": "^5.0.100",
|
|
153
|
+
"@xylabs/tsconfig": "^7.11.9",
|
|
154
|
+
"@xylabs/tsconfig-dom": "^7.11.9",
|
|
155
|
+
"@xylabs/zod": "~5.0.100",
|
|
156
|
+
"@xyo-network/account": "~5.5.1",
|
|
157
|
+
"@xyo-network/account-model": "^5.5.1",
|
|
158
|
+
"@xyo-network/boundwitness-builder": "^5.5.1",
|
|
159
|
+
"@xyo-network/boundwitness-model": "^5.5.1",
|
|
160
|
+
"@xyo-network/boundwitness-validator": "^5.5.1",
|
|
161
|
+
"@xyo-network/boundwitness-wrapper": "~5.5.1",
|
|
162
|
+
"@xyo-network/config-payload-plugin": "~5.5.1",
|
|
163
|
+
"@xyo-network/diviner-model": "^5.5.5",
|
|
164
|
+
"@xyo-network/diviner-schema-list-model": "~5.5.2",
|
|
165
|
+
"@xyo-network/diviner-schema-stats-model": "~5.5.2",
|
|
166
|
+
"@xyo-network/manifest-model": "~5.5.1",
|
|
167
|
+
"@xyo-network/module-abstract": "^5.5.5",
|
|
168
|
+
"@xyo-network/module-model": "^5.5.5",
|
|
169
|
+
"@xyo-network/node-core-types": "~4.1.10",
|
|
170
|
+
"@xyo-network/node-memory": "~5.5.5",
|
|
171
|
+
"@xyo-network/node-model": "^5.5.5",
|
|
172
|
+
"@xyo-network/payload-builder": "^5.5.1",
|
|
173
|
+
"@xyo-network/payload-model": "^5.5.1",
|
|
174
|
+
"@xyo-network/payload-validator": "^5.5.1",
|
|
175
|
+
"@xyo-network/query-payload-plugin": "~5.5.1",
|
|
176
|
+
"@xyo-network/schema-cache": "~5.5.1",
|
|
177
|
+
"@xyo-network/schema-payload-plugin": "~5.5.1",
|
|
178
|
+
"@xyo-network/typeof": "~5.3.30",
|
|
179
|
+
"@xyo-network/wallet-model": "^5.5.1",
|
|
180
|
+
"ajv": "^8.18.0",
|
|
181
|
+
"async-mutex": "^0.5.0",
|
|
182
|
+
"axios": "^1.15.2",
|
|
183
|
+
"bn.js": "^5.2.3",
|
|
184
|
+
"bowser": "^2.14.1",
|
|
185
|
+
"buffer": "^6.0.3",
|
|
186
|
+
"chalk": "^5.6.2",
|
|
187
|
+
"ethers": "^6.16.0",
|
|
188
|
+
"fast-deep-equal": "~3.1.3",
|
|
189
|
+
"js-cookie": "~3.0.5",
|
|
190
|
+
"lru-cache": "^11.3.5",
|
|
191
|
+
"pako": "^2.1.0",
|
|
192
|
+
"react": "^19.2.5",
|
|
193
|
+
"react-dom": "^19.2.5",
|
|
194
|
+
"react-router-dom": "^7.14.2",
|
|
195
|
+
"spark-md5": "~3.0.2",
|
|
196
|
+
"zod": "^4.3.6"
|
|
71
197
|
},
|
|
72
198
|
"publishConfig": {
|
|
73
199
|
"access": "public"
|
|
74
200
|
},
|
|
75
201
|
"docs": "dist/docs.json"
|
|
76
|
-
}
|
|
202
|
+
}
|
package/src/Details.tsx
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { FlexBoxProps } from '@xylabs/react-flexbox'
|
|
2
|
-
import { PayloadDetails } from '@xyo-network/react-payload-details'
|
|
3
|
-
import type { PayloadRenderProps } from '@xyo-network/react-payload-plugin'
|
|
4
|
-
import React from 'react'
|
|
5
|
-
|
|
6
|
-
export const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {
|
|
7
|
-
return <PayloadDetails {...props} />
|
|
8
|
-
}
|
package/src/Plugin.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
-
import type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
|
|
3
|
-
import { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
|
|
4
|
-
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
5
|
-
|
|
6
|
-
import { DetailsBox } from './Details.tsx'
|
|
7
|
-
|
|
8
|
-
export const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({
|
|
9
|
-
canRender: (payload?: Payload) => payload?.schema === SchemaSchema,
|
|
10
|
-
components: { box: { details: DetailsBox } },
|
|
11
|
-
name: 'Schema',
|
|
12
|
-
})
|
package/src/index.ts
DELETED