@xyo-network/react-schema-plugin 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/Details.d.ts +5 -0
- package/dist/browser/Details.d.ts.map +1 -0
- package/dist/browser/Plugin.d.ts +3 -0
- package/dist/browser/Plugin.d.ts.map +1 -0
- package/dist/browser/index.d.ts +3 -5
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +50 -43
- package/src/Plugin.ts +1 -5
- package/xy.config.ts +1 -3
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
2
|
+
import type { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
|
3
|
+
import React from 'react';
|
4
|
+
export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
|
5
|
+
//# sourceMappingURL=Details.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../src/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAM5E,eAAO,MAAM,kBAAkB,EAAE,mBAI/B,CAAA"}
|
package/dist/browser/index.d.ts
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
export { SchemaRenderPlugin, SchemaRenderPlugin as default };
|
1
|
+
export * from './Plugin.ts';
|
2
|
+
export { SchemaRenderPlugin as default } from './Plugin.ts';
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
|
@@ -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: {
|
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,SAASA,iCAAiC;AAC1C,SAASC,oBAAoB;;;ACF7B,SAASC,sBAAsB;AAE/B,OAAOC,WAAW;AAEX,IAAMC,aAA0D,wBAACC,UAAAA;AACtE,SAAO,sBAAA,cAACC,gBAAmBD,KAAAA;AAC7B,GAFuE;;;ADEhE,IAAME,qBAA0CC,0BAA0B;EAC/EC,WAAW,wBAACC,YAAsBA,SAASC,WAAWC,cAA3C;EACXC,YAAY;IAAEC,KAAK;MAAEC,SAASC;IAAW;EAAE;EAC3CC,MAAM;AACR,CAAA;","names":["createPayloadRenderPlugin","SchemaSchema","PayloadDetails","React","DetailsBox","props","PayloadDetails","SchemaRenderPlugin","createPayloadRenderPlugin","canRender","payload","schema","SchemaSchema","components","box","details","DetailsBox","name"]}
|
package/package.json
CHANGED
@@ -1,23 +1,63 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xyo-network/react-schema-plugin",
|
3
|
+
"version": "3.0.3",
|
4
|
+
"description": "Common React library for all XYO projects that use React",
|
5
|
+
"keywords": [
|
6
|
+
"xyo",
|
7
|
+
"utility",
|
8
|
+
"typescript",
|
9
|
+
"react"
|
10
|
+
],
|
11
|
+
"homepage": "https://xyo.network",
|
12
|
+
"bugs": {
|
13
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues",
|
14
|
+
"email": "support@xyo.network"
|
15
|
+
},
|
16
|
+
"repository": {
|
17
|
+
"type": "git",
|
18
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
|
19
|
+
},
|
20
|
+
"license": "LGPL-3.0-only",
|
3
21
|
"author": {
|
4
|
-
"email": "support@xyo.network",
|
5
22
|
"name": "XYO Development Team",
|
23
|
+
"email": "support@xyo.network",
|
6
24
|
"url": "https://xyo.network"
|
7
25
|
},
|
8
|
-
"
|
9
|
-
|
10
|
-
|
26
|
+
"sideEffects": false,
|
27
|
+
"type": "module",
|
28
|
+
"exports": {
|
29
|
+
".": {
|
30
|
+
"import": {
|
31
|
+
"types": "./dist/browser/index.d.ts",
|
32
|
+
"default": "./dist/browser/index.mjs"
|
33
|
+
},
|
34
|
+
"types": "./dist/browser/index.d.ts",
|
35
|
+
"default": "./dist/browser/index.mjs"
|
36
|
+
},
|
37
|
+
"./package.json": "./package.json"
|
38
|
+
},
|
39
|
+
"module": "dist/browser/index.mjs",
|
40
|
+
"types": "dist/browser/index.d.ts",
|
41
|
+
"scripts": {
|
42
|
+
"license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\"",
|
43
|
+
"lint-pkg": "npmPkgJsonLint ."
|
11
44
|
},
|
12
45
|
"dependencies": {
|
13
46
|
"@xylabs/react-flexbox": "^4.0.3",
|
14
|
-
"@xyo-network/payload-model": "^3.0.
|
15
|
-
"@xyo-network/react-payload-details": "^3.0.
|
16
|
-
"@xyo-network/react-payload-plugin": "^3.0.
|
17
|
-
"@xyo-network/schema-payload-plugin": "^3.0.
|
47
|
+
"@xyo-network/payload-model": "^3.0.15",
|
48
|
+
"@xyo-network/react-payload-details": "^3.0.3",
|
49
|
+
"@xyo-network/react-payload-plugin": "^3.0.3",
|
50
|
+
"@xyo-network/schema-payload-plugin": "^3.0.15"
|
18
51
|
},
|
19
52
|
"devDependencies": {
|
20
|
-
"@
|
53
|
+
"@emotion/react": "^11.13.3",
|
54
|
+
"@emotion/styled": "^11.13.0",
|
55
|
+
"@mui/icons-material": "^5.16.7",
|
56
|
+
"@mui/material": "^5.16.7",
|
57
|
+
"@mui/styles": "^5.16.7",
|
58
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
59
|
+
"react": "^18.3.1",
|
60
|
+
"react-dom": "^18.3.1",
|
21
61
|
"typescript": "^5.5.4"
|
22
62
|
},
|
23
63
|
"peerDependencies": {
|
@@ -29,41 +69,8 @@
|
|
29
69
|
"react": "^18",
|
30
70
|
"react-dom": "^18"
|
31
71
|
},
|
32
|
-
"description": "Common React library for all XYO projects that use React",
|
33
|
-
"docs": "dist/docs.json",
|
34
|
-
"exports": {
|
35
|
-
".": {
|
36
|
-
"import": {
|
37
|
-
"types": "./dist/browser/index.d.ts",
|
38
|
-
"default": "./dist/browser/index.mjs"
|
39
|
-
},
|
40
|
-
"types": "./dist/browser/index.d.ts",
|
41
|
-
"default": "./dist/browser/index.mjs"
|
42
|
-
},
|
43
|
-
"./package.json": "./package.json"
|
44
|
-
},
|
45
|
-
"module": "dist/browser/index.mjs",
|
46
|
-
"homepage": "https://xyo.network",
|
47
|
-
"keywords": [
|
48
|
-
"xyo",
|
49
|
-
"utility",
|
50
|
-
"typescript",
|
51
|
-
"react"
|
52
|
-
],
|
53
|
-
"license": "LGPL-3.0-only",
|
54
72
|
"publishConfig": {
|
55
73
|
"access": "public"
|
56
74
|
},
|
57
|
-
"
|
58
|
-
"type": "git",
|
59
|
-
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
|
60
|
-
},
|
61
|
-
"scripts": {
|
62
|
-
"lint-pkg": "npmPkgJsonLint .",
|
63
|
-
"license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\""
|
64
|
-
},
|
65
|
-
"sideEffects": false,
|
66
|
-
"types": "dist/browser/index.d.ts",
|
67
|
-
"version": "3.0.2",
|
68
|
-
"type": "module"
|
75
|
+
"docs": "dist/docs.json"
|
69
76
|
}
|
package/src/Plugin.ts
CHANGED
@@ -7,10 +7,6 @@ import { DetailsBox } from './Details.tsx'
|
|
7
7
|
|
8
8
|
export const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({
|
9
9
|
canRender: (payload?: Payload) => payload?.schema === SchemaSchema,
|
10
|
-
components: {
|
11
|
-
box: {
|
12
|
-
details: DetailsBox,
|
13
|
-
},
|
14
|
-
},
|
10
|
+
components: { box: { details: DetailsBox } },
|
15
11
|
name: 'Schema',
|
16
12
|
})
|