@xyo-network/react-schema-plugin 2.64.0-rc.7 → 2.64.0
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/Details.cjs +31 -0
- package/dist/{node/Details.mjs.map → browser/Details.cjs.map} +1 -1
- package/dist/browser/Details.d.cts +5 -0
- package/dist/browser/Details.d.cts.map +1 -0
- package/dist/browser/Plugin.cjs +46 -0
- package/dist/browser/Plugin.cjs.map +1 -0
- package/dist/browser/Plugin.d.cts +3 -0
- package/dist/browser/Plugin.d.cts.map +1 -0
- package/dist/browser/index.cjs +52 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts +4 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/docs.json +87 -0
- package/dist/node/Details.cjs +35 -0
- package/dist/node/Details.cjs.map +1 -0
- package/dist/node/Details.d.cts +5 -0
- package/dist/node/Details.d.cts.map +1 -0
- package/dist/node/Details.js +7 -30
- package/dist/node/Details.js.map +1 -1
- package/dist/node/Plugin.cjs +50 -0
- package/dist/node/Plugin.cjs.map +1 -0
- package/dist/node/Plugin.d.cts +3 -0
- package/dist/node/Plugin.d.cts.map +1 -0
- package/dist/node/Plugin.js +16 -31
- package/dist/node/Plugin.js.map +1 -1
- package/dist/node/index.cjs +56 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.d.cts +4 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +26 -29
- package/dist/node/index.js.map +1 -1
- package/package.json +16 -16
- package/dist/node/Details.mjs +0 -9
- package/dist/node/Plugin.mjs +0 -16
- package/dist/node/Plugin.mjs.map +0 -1
- package/dist/node/index.mjs +0 -7
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Details.tsx
|
|
21
|
+
var Details_exports = {};
|
|
22
|
+
__export(Details_exports, {
|
|
23
|
+
DetailsBox: () => DetailsBox
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(Details_exports);
|
|
26
|
+
var import_react_payload_details = require("@xyo-network/react-payload-details");
|
|
27
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
|
+
var DetailsBox = (props) => {
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_payload_details.PayloadDetails, { ...props });
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=Details.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Details.tsx"],"sourcesContent":["import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Details.tsx"],"sourcesContent":["import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mCAA+B;AAItB;AADF,IAAM,aAA0D,CAAC,UAAU;AAChF,SAAO,4CAAC,+CAAgB,GAAG,OAAO;AACpC;","names":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
|
|
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,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Plugin.ts
|
|
21
|
+
var Plugin_exports = {};
|
|
22
|
+
__export(Plugin_exports, {
|
|
23
|
+
SchemaRenderPlugin: () => SchemaRenderPlugin
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(Plugin_exports);
|
|
26
|
+
var import_react_payload_plugin = require("@xyo-network/react-payload-plugin");
|
|
27
|
+
var import_schema_payload_plugin = require("@xyo-network/schema-payload-plugin");
|
|
28
|
+
|
|
29
|
+
// src/Details.tsx
|
|
30
|
+
var import_react_payload_details = require("@xyo-network/react-payload-details");
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
var DetailsBox = (props) => {
|
|
33
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_payload_details.PayloadDetails, { ...props });
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// src/Plugin.ts
|
|
37
|
+
var SchemaRenderPlugin = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
|
|
38
|
+
canRender: (payload) => payload?.schema === import_schema_payload_plugin.SchemaSchema,
|
|
39
|
+
components: {
|
|
40
|
+
box: {
|
|
41
|
+
details: DetailsBox
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
name: "Schema"
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=Plugin.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\nimport { createPayloadRenderPlugin, PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { DetailsBox } from './Details'\n\nexport const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === SchemaSchema,\n components: {\n box: {\n details: DetailsBox,\n },\n },\n name: 'Schema',\n})\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kCAA+D;AAC/D,mCAA6B;;;ACD7B,mCAA+B;AAItB;AADF,IAAM,aAA0D,CAAC,UAAU;AAChF,SAAO,4CAAC,+CAAgB,GAAG,OAAO;AACpC;;;ADAO,IAAM,yBAA0C,uDAA0B;AAAA,EAC/E,WAAW,CAAC,YAAsB,SAAS,WAAW;AAAA,EACtD,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAKlG,eAAO,MAAM,kBAAkB,EAAE,mBAQ/B,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
SchemaRenderPlugin: () => SchemaRenderPlugin,
|
|
24
|
+
default: () => src_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(src_exports);
|
|
27
|
+
|
|
28
|
+
// src/Plugin.ts
|
|
29
|
+
var import_react_payload_plugin = require("@xyo-network/react-payload-plugin");
|
|
30
|
+
var import_schema_payload_plugin = require("@xyo-network/schema-payload-plugin");
|
|
31
|
+
|
|
32
|
+
// src/Details.tsx
|
|
33
|
+
var import_react_payload_details = require("@xyo-network/react-payload-details");
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var DetailsBox = (props) => {
|
|
36
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_payload_details.PayloadDetails, { ...props });
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// src/Plugin.ts
|
|
40
|
+
var SchemaRenderPlugin = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
|
|
41
|
+
canRender: (payload) => payload?.schema === import_schema_payload_plugin.SchemaSchema,
|
|
42
|
+
components: {
|
|
43
|
+
box: {
|
|
44
|
+
details: DetailsBox
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
name: "Schema"
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// src/index.ts
|
|
51
|
+
var src_default = SchemaRenderPlugin;
|
|
52
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["import { SchemaRenderPlugin } from './Plugin'\n\nexport * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\nexport default SchemaRenderPlugin\n","import { Payload } from '@xyo-network/payload-model'\nimport { createPayloadRenderPlugin, PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { DetailsBox } from './Details'\n\nexport const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === SchemaSchema,\n components: {\n box: {\n details: DetailsBox,\n },\n },\n name: 'Schema',\n})\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,kCAA+D;AAC/D,mCAA6B;;;ACD7B,mCAA+B;AAItB;AADF,IAAM,aAA0D,CAAC,UAAU;AAChF,SAAO,4CAAC,+CAAgB,GAAG,OAAO;AACpC;;;ADAO,IAAM,yBAA0C,uDAA0B;AAAA,EAC/E,WAAW,CAAC,YAAsB,SAAS,WAAW;AAAA,EACtD,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;;;ADTD,IAAO,cAAQ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAE7C,cAAc,UAAU,CAAA;AAGxB,eAAe,kBAAkB,CAAA"}
|
package/dist/docs.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"name": "@xyo-network/react-schema-plugin",
|
|
4
|
+
"variant": "project",
|
|
5
|
+
"kind": 1,
|
|
6
|
+
"flags": {},
|
|
7
|
+
"children": [
|
|
8
|
+
{
|
|
9
|
+
"id": 2,
|
|
10
|
+
"name": "default",
|
|
11
|
+
"variant": "reference",
|
|
12
|
+
"kind": 8388608,
|
|
13
|
+
"flags": {},
|
|
14
|
+
"sources": [
|
|
15
|
+
{
|
|
16
|
+
"fileName": "index.ts",
|
|
17
|
+
"line": 6,
|
|
18
|
+
"character": 0,
|
|
19
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/d3056af66/packages/plugins/packages/schema/src/index.ts#L6"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"target": 1
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": 1,
|
|
26
|
+
"name": "SchemaRenderPlugin",
|
|
27
|
+
"variant": "declaration",
|
|
28
|
+
"kind": 32,
|
|
29
|
+
"flags": {
|
|
30
|
+
"isConst": true
|
|
31
|
+
},
|
|
32
|
+
"sources": [
|
|
33
|
+
{
|
|
34
|
+
"fileName": "Plugin.ts",
|
|
35
|
+
"line": 7,
|
|
36
|
+
"character": 13,
|
|
37
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/d3056af66/packages/plugins/packages/schema/src/Plugin.ts#L7"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"type": {
|
|
41
|
+
"type": "reference",
|
|
42
|
+
"target": {
|
|
43
|
+
"sourceFileName": "../../../sdk/packages/payload/packages/plugin/src/PayloadRenderPlugin.ts",
|
|
44
|
+
"qualifiedName": "PayloadRenderPlugin"
|
|
45
|
+
},
|
|
46
|
+
"name": "PayloadRenderPlugin",
|
|
47
|
+
"package": "@xyo-network/react-payload-plugin"
|
|
48
|
+
},
|
|
49
|
+
"defaultValue": "..."
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"groups": [
|
|
53
|
+
{
|
|
54
|
+
"title": "References",
|
|
55
|
+
"children": [
|
|
56
|
+
2
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"title": "Variables",
|
|
61
|
+
"children": [
|
|
62
|
+
1
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"packageName": "@xyo-network/react-schema-plugin",
|
|
67
|
+
"readme": [
|
|
68
|
+
{
|
|
69
|
+
"kind": "text",
|
|
70
|
+
"text": "[![logo][]](https://xyo.network)\n\nPart of [@xyo-network/sdk-xyo-react](https://www.npmjs.com/package/@xyo-network/sdk-xyo-react)\n\n## License\n\n> See the [LICENSE](LICENSE) file for license details\n\n## Credits\n\n[Made with 🔥 and ❄️ by XYO](https://xyo.network)\n\n[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"symbolIdMap": {
|
|
74
|
+
"0": {
|
|
75
|
+
"sourceFileName": "src/index.ts",
|
|
76
|
+
"qualifiedName": ""
|
|
77
|
+
},
|
|
78
|
+
"1": {
|
|
79
|
+
"sourceFileName": "src/Plugin.ts",
|
|
80
|
+
"qualifiedName": "SchemaRenderPlugin"
|
|
81
|
+
},
|
|
82
|
+
"2": {
|
|
83
|
+
"sourceFileName": "src/index.ts",
|
|
84
|
+
"qualifiedName": "default"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Details.tsx
|
|
21
|
+
var Details_exports = {};
|
|
22
|
+
__export(Details_exports, {
|
|
23
|
+
DetailsBox: () => DetailsBox
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(Details_exports);
|
|
26
|
+
var import_react_payload_details = require("@xyo-network/react-payload-details");
|
|
27
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
|
+
var DetailsBox = (props) => {
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_payload_details.PayloadDetails, { ...props });
|
|
30
|
+
};
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
DetailsBox
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=Details.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Details.tsx"],"sourcesContent":["import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mCAA+B;AAItB;AADF,IAAM,aAA0D,CAAC,UAAU;AAChF,SAAO,4CAAC,+CAAgB,GAAG,OAAO;AACpC;","names":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
|
|
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,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
|
package/dist/node/Details.js
CHANGED
|
@@ -1,33 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1
|
+
// src/Details.tsx
|
|
2
|
+
import { PayloadDetails } from "@xyo-network/react-payload-details";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var DetailsBox = (props) => {
|
|
5
|
+
return /* @__PURE__ */ jsx(PayloadDetails, { ...props });
|
|
9
6
|
};
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var Details_exports = {};
|
|
20
|
-
__export(Details_exports, {
|
|
21
|
-
DetailsBox: () => DetailsBox
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(Details_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_react_payload_details = require("@xyo-network/react-payload-details");
|
|
26
|
-
const DetailsBox = (props) => {
|
|
27
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_payload_details.PayloadDetails, { ...props });
|
|
28
|
-
};
|
|
29
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
-
0 && (module.exports = {
|
|
7
|
+
export {
|
|
31
8
|
DetailsBox
|
|
32
|
-
}
|
|
9
|
+
};
|
|
33
10
|
//# sourceMappingURL=Details.js.map
|
package/dist/node/Details.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Details.tsx"],"sourcesContent":["import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Details.tsx"],"sourcesContent":["import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":";AACA,SAAS,sBAAsB;AAItB;AADF,IAAM,aAA0D,CAAC,UAAU;AAChF,SAAO,oBAAC,kBAAgB,GAAG,OAAO;AACpC;","names":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Plugin.ts
|
|
21
|
+
var Plugin_exports = {};
|
|
22
|
+
__export(Plugin_exports, {
|
|
23
|
+
SchemaRenderPlugin: () => SchemaRenderPlugin
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(Plugin_exports);
|
|
26
|
+
var import_react_payload_plugin = require("@xyo-network/react-payload-plugin");
|
|
27
|
+
var import_schema_payload_plugin = require("@xyo-network/schema-payload-plugin");
|
|
28
|
+
|
|
29
|
+
// src/Details.tsx
|
|
30
|
+
var import_react_payload_details = require("@xyo-network/react-payload-details");
|
|
31
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
32
|
+
var DetailsBox = (props) => {
|
|
33
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_payload_details.PayloadDetails, { ...props });
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// src/Plugin.ts
|
|
37
|
+
var SchemaRenderPlugin = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
|
|
38
|
+
canRender: (payload) => (payload == null ? void 0 : payload.schema) === import_schema_payload_plugin.SchemaSchema,
|
|
39
|
+
components: {
|
|
40
|
+
box: {
|
|
41
|
+
details: DetailsBox
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
name: "Schema"
|
|
45
|
+
});
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
SchemaRenderPlugin
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=Plugin.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\nimport { createPayloadRenderPlugin, PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { DetailsBox } from './Details'\n\nexport const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === SchemaSchema,\n components: {\n box: {\n details: DetailsBox,\n },\n },\n name: 'Schema',\n})\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kCAA+D;AAC/D,mCAA6B;;;ACD7B,mCAA+B;AAItB;AADF,IAAM,aAA0D,CAAC,UAAU;AAChF,SAAO,4CAAC,+CAAgB,GAAG,OAAO;AACpC;;;ADAO,IAAM,yBAA0C,uDAA0B;AAAA,EAC/E,WAAW,CAAC,aAAsB,mCAAS,YAAW;AAAA,EACtD,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAKlG,eAAO,MAAM,kBAAkB,EAAE,mBAQ/B,CAAA"}
|
package/dist/node/Plugin.js
CHANGED
|
@@ -1,40 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
// src/Plugin.ts
|
|
2
|
+
import { createPayloadRenderPlugin } from "@xyo-network/react-payload-plugin";
|
|
3
|
+
import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
|
|
4
|
+
|
|
5
|
+
// src/Details.tsx
|
|
6
|
+
import { PayloadDetails } from "@xyo-network/react-payload-details";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var DetailsBox = (props) => {
|
|
9
|
+
return /* @__PURE__ */ jsx(PayloadDetails, { ...props });
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var Plugin_exports = {};
|
|
20
|
-
__export(Plugin_exports, {
|
|
21
|
-
SchemaRenderPlugin: () => SchemaRenderPlugin
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(Plugin_exports);
|
|
24
|
-
var import_react_payload_plugin = require("@xyo-network/react-payload-plugin");
|
|
25
|
-
var import_schema_payload_plugin = require("@xyo-network/schema-payload-plugin");
|
|
26
|
-
var import_Details = require("./Details");
|
|
27
|
-
const SchemaRenderPlugin = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
|
|
28
|
-
canRender: (payload) => payload?.schema === import_schema_payload_plugin.SchemaSchema,
|
|
11
|
+
|
|
12
|
+
// src/Plugin.ts
|
|
13
|
+
var SchemaRenderPlugin = createPayloadRenderPlugin({
|
|
14
|
+
canRender: (payload) => (payload == null ? void 0 : payload.schema) === SchemaSchema,
|
|
29
15
|
components: {
|
|
30
16
|
box: {
|
|
31
|
-
details:
|
|
17
|
+
details: DetailsBox
|
|
32
18
|
}
|
|
33
19
|
},
|
|
34
20
|
name: "Schema"
|
|
35
21
|
});
|
|
36
|
-
|
|
37
|
-
0 && (module.exports = {
|
|
22
|
+
export {
|
|
38
23
|
SchemaRenderPlugin
|
|
39
|
-
}
|
|
24
|
+
};
|
|
40
25
|
//# sourceMappingURL=Plugin.js.map
|
package/dist/node/Plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\nimport { createPayloadRenderPlugin, PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { DetailsBox } from './Details'\n\nexport const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === SchemaSchema,\n components: {\n box: {\n details: DetailsBox,\n },\n },\n name: 'Schema',\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\nimport { createPayloadRenderPlugin, PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { DetailsBox } from './Details'\n\nexport const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === SchemaSchema,\n components: {\n box: {\n details: DetailsBox,\n },\n },\n name: 'Schema',\n})\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":";AACA,SAAS,iCAAsD;AAC/D,SAAS,oBAAoB;;;ACD7B,SAAS,sBAAsB;AAItB;AADF,IAAM,aAA0D,CAAC,UAAU;AAChF,SAAO,oBAAC,kBAAgB,GAAG,OAAO;AACpC;;;ADAO,IAAM,qBAA0C,0BAA0B;AAAA,EAC/E,WAAW,CAAC,aAAsB,mCAAS,YAAW;AAAA,EACtD,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;","names":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
SchemaRenderPlugin: () => SchemaRenderPlugin,
|
|
24
|
+
default: () => src_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(src_exports);
|
|
27
|
+
|
|
28
|
+
// src/Plugin.ts
|
|
29
|
+
var import_react_payload_plugin = require("@xyo-network/react-payload-plugin");
|
|
30
|
+
var import_schema_payload_plugin = require("@xyo-network/schema-payload-plugin");
|
|
31
|
+
|
|
32
|
+
// src/Details.tsx
|
|
33
|
+
var import_react_payload_details = require("@xyo-network/react-payload-details");
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var DetailsBox = (props) => {
|
|
36
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_payload_details.PayloadDetails, { ...props });
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// src/Plugin.ts
|
|
40
|
+
var SchemaRenderPlugin = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
|
|
41
|
+
canRender: (payload) => (payload == null ? void 0 : payload.schema) === import_schema_payload_plugin.SchemaSchema,
|
|
42
|
+
components: {
|
|
43
|
+
box: {
|
|
44
|
+
details: DetailsBox
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
name: "Schema"
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// src/index.ts
|
|
51
|
+
var src_default = SchemaRenderPlugin;
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
SchemaRenderPlugin
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["import { SchemaRenderPlugin } from './Plugin'\n\nexport * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\nexport default SchemaRenderPlugin\n","import { Payload } from '@xyo-network/payload-model'\nimport { createPayloadRenderPlugin, PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { DetailsBox } from './Details'\n\nexport const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === SchemaSchema,\n components: {\n box: {\n details: DetailsBox,\n },\n },\n name: 'Schema',\n})\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,kCAA+D;AAC/D,mCAA6B;;;ACD7B,mCAA+B;AAItB;AADF,IAAM,aAA0D,CAAC,UAAU;AAChF,SAAO,4CAAC,+CAAgB,GAAG,OAAO;AACpC;;;ADAO,IAAM,yBAA0C,uDAA0B;AAAA,EAC/E,WAAW,CAAC,aAAsB,mCAAS,YAAW;AAAA,EACtD,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;;;ADTD,IAAO,cAAQ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAE7C,cAAc,UAAU,CAAA;AAGxB,eAAe,kBAAkB,CAAA"}
|
package/dist/node/index.js
CHANGED
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
// src/Plugin.ts
|
|
2
|
+
import { createPayloadRenderPlugin } from "@xyo-network/react-payload-plugin";
|
|
3
|
+
import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
|
|
4
|
+
|
|
5
|
+
// src/Details.tsx
|
|
6
|
+
import { PayloadDetails } from "@xyo-network/react-payload-details";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var DetailsBox = (props) => {
|
|
9
|
+
return /* @__PURE__ */ jsx(PayloadDetails, { ...props });
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var src_exports = {};
|
|
21
|
-
__export(src_exports, {
|
|
22
|
-
default: () => src_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(src_exports);
|
|
25
|
-
var import_Plugin = require("./Plugin");
|
|
26
|
-
__reExport(src_exports, require("./Plugin"), module.exports);
|
|
27
|
-
var src_default = import_Plugin.SchemaRenderPlugin;
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
...require("./Plugin")
|
|
11
|
+
|
|
12
|
+
// src/Plugin.ts
|
|
13
|
+
var SchemaRenderPlugin = createPayloadRenderPlugin({
|
|
14
|
+
canRender: (payload) => (payload == null ? void 0 : payload.schema) === SchemaSchema,
|
|
15
|
+
components: {
|
|
16
|
+
box: {
|
|
17
|
+
details: DetailsBox
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
name: "Schema"
|
|
31
21
|
});
|
|
22
|
+
|
|
23
|
+
// src/index.ts
|
|
24
|
+
var src_default = SchemaRenderPlugin;
|
|
25
|
+
export {
|
|
26
|
+
SchemaRenderPlugin,
|
|
27
|
+
src_default as default
|
|
28
|
+
};
|
|
32
29
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { SchemaRenderPlugin } from './Plugin'\n\nexport * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\nexport default SchemaRenderPlugin\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Details.tsx","../../src/index.ts"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\nimport { createPayloadRenderPlugin, PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { DetailsBox } from './Details'\n\nexport const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === SchemaSchema,\n components: {\n box: {\n details: DetailsBox,\n },\n },\n name: 'Schema',\n})\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport { PayloadRenderProps } from '@xyo-network/react-payload-plugin'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n","import { SchemaRenderPlugin } from './Plugin'\n\nexport * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\nexport default SchemaRenderPlugin\n"],"mappings":";AACA,SAAS,iCAAsD;AAC/D,SAAS,oBAAoB;;;ACD7B,SAAS,sBAAsB;AAItB;AADF,IAAM,aAA0D,CAAC,UAAU;AAChF,SAAO,oBAAC,kBAAgB,GAAG,OAAO;AACpC;;;ADAO,IAAM,qBAA0C,0BAA0B;AAAA,EAC/E,WAAW,CAAC,aAAsB,mCAAS,YAAW;AAAA,EACtD,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;;;AETD,IAAO,cAAQ;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/react-flexbox": "^3.
|
|
14
|
-
"@xyo-network/payload-model": "^2.
|
|
15
|
-
"@xyo-network/react-payload-details": "~2.64.0
|
|
16
|
-
"@xyo-network/react-payload-plugin": "~2.64.0
|
|
17
|
-
"@xyo-network/schema-payload-plugin": "^2.
|
|
13
|
+
"@xylabs/react-flexbox": "^3.0.5",
|
|
14
|
+
"@xyo-network/payload-model": "^2.75.3",
|
|
15
|
+
"@xyo-network/react-payload-details": "~2.64.0",
|
|
16
|
+
"@xyo-network/react-payload-plugin": "~2.64.0",
|
|
17
|
+
"@xyo-network/schema-payload-plugin": "^2.75.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.
|
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.78",
|
|
21
21
|
"typescript": "^5.2.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
@@ -36,28 +36,28 @@
|
|
|
36
36
|
"node": {
|
|
37
37
|
"import": {
|
|
38
38
|
"types": "./dist/node/index.d.mts",
|
|
39
|
-
"default": "./dist/node/index.
|
|
39
|
+
"default": "./dist/node/index.js"
|
|
40
40
|
},
|
|
41
41
|
"require": {
|
|
42
|
-
"types": "./dist/node/index.d.
|
|
43
|
-
"default": "./dist/node/index.
|
|
42
|
+
"types": "./dist/node/index.d.cts",
|
|
43
|
+
"default": "./dist/node/index.cjs"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"browser": {
|
|
47
47
|
"import": {
|
|
48
|
-
"types": "./dist/browser/index.d.
|
|
48
|
+
"types": "./dist/browser/index.d.mts",
|
|
49
49
|
"default": "./dist/browser/index.js"
|
|
50
50
|
},
|
|
51
51
|
"require": {
|
|
52
|
-
"types": "./dist/browser/index.d.
|
|
53
|
-
"default": "./dist/browser/index.
|
|
52
|
+
"types": "./dist/browser/index.d.cts",
|
|
53
|
+
"default": "./dist/browser/index.cjs"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
"default": "./dist/browser/index.
|
|
56
|
+
"default": "./dist/browser/index.js"
|
|
57
57
|
},
|
|
58
58
|
"./package.json": "./package.json"
|
|
59
59
|
},
|
|
60
|
-
"main": "dist/browser/index.
|
|
60
|
+
"main": "dist/browser/index.cjs",
|
|
61
61
|
"module": "dist/browser/index.js",
|
|
62
62
|
"homepage": "https://xyo.network",
|
|
63
63
|
"keywords": [
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
},
|
|
81
81
|
"sideEffects": false,
|
|
82
82
|
"types": "dist/browser/index.d.ts",
|
|
83
|
-
"version": "2.64.0
|
|
84
|
-
"
|
|
83
|
+
"version": "2.64.0",
|
|
84
|
+
"type": "module"
|
|
85
85
|
}
|
package/dist/node/Details.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PayloadDetails } from "@xyo-network/react-payload-details";
|
|
3
|
-
const DetailsBox = (props) => {
|
|
4
|
-
return /* @__PURE__ */ jsx(PayloadDetails, { ...props });
|
|
5
|
-
};
|
|
6
|
-
export {
|
|
7
|
-
DetailsBox
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=Details.mjs.map
|
package/dist/node/Plugin.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createPayloadRenderPlugin } from "@xyo-network/react-payload-plugin";
|
|
2
|
-
import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
|
|
3
|
-
import { DetailsBox } from "./Details";
|
|
4
|
-
const SchemaRenderPlugin = createPayloadRenderPlugin({
|
|
5
|
-
canRender: (payload) => payload?.schema === SchemaSchema,
|
|
6
|
-
components: {
|
|
7
|
-
box: {
|
|
8
|
-
details: DetailsBox
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
name: "Schema"
|
|
12
|
-
});
|
|
13
|
-
export {
|
|
14
|
-
SchemaRenderPlugin
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=Plugin.mjs.map
|
package/dist/node/Plugin.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\nimport { createPayloadRenderPlugin, PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\n\nimport { DetailsBox } from './Details'\n\nexport const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({\n canRender: (payload?: Payload) => payload?.schema === SchemaSchema,\n components: {\n box: {\n details: DetailsBox,\n },\n },\n name: 'Schema',\n})\n"],"mappings":"AACA,SAAS,iCAAsD;AAC/D,SAAS,oBAAoB;AAE7B,SAAS,kBAAkB;AAEpB,MAAM,qBAA0C,0BAA0B;AAAA,EAC/E,WAAW,CAAC,YAAsB,SAAS,WAAW;AAAA,EACtD,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;","names":[]}
|
package/dist/node/index.mjs
DELETED
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import { SchemaRenderPlugin } from './Plugin'\n\nexport * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\nexport default SchemaRenderPlugin\n"],"mappings":"AAAA,SAAS,0BAA0B;AAEnC,cAAc;AAGd,IAAO,cAAQ;","names":[]}
|