@xyo-network/react-schema-plugin 2.64.9 → 2.65.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/package.json +7 -7
- package/dist/browser/Details.cjs +0 -31
- package/dist/browser/Details.cjs.map +0 -1
- package/dist/browser/Details.js +0 -10
- package/dist/browser/Details.js.map +0 -1
- package/dist/browser/Plugin.cjs +0 -46
- package/dist/browser/Plugin.cjs.map +0 -1
- package/dist/browser/Plugin.js +0 -25
- package/dist/browser/Plugin.js.map +0 -1
- package/dist/docs.json +0 -87
- package/dist/node/Details.cjs +0 -35
- package/dist/node/Details.cjs.map +0 -1
- package/dist/node/Details.js +0 -10
- package/dist/node/Details.js.map +0 -1
- package/dist/node/Plugin.cjs +0 -50
- package/dist/node/Plugin.cjs.map +0 -1
- package/dist/node/Plugin.js +0 -25
- package/dist/node/Plugin.js.map +0 -1
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.0.
|
|
14
|
-
"@xyo-network/payload-model": "^2.
|
|
15
|
-
"@xyo-network/react-payload-details": "~2.
|
|
16
|
-
"@xyo-network/react-payload-plugin": "~2.
|
|
17
|
-
"@xyo-network/schema-payload-plugin": "^2.
|
|
13
|
+
"@xylabs/react-flexbox": "^3.0.18",
|
|
14
|
+
"@xyo-network/payload-model": "^2.76.0",
|
|
15
|
+
"@xyo-network/react-payload-details": "~2.65.0",
|
|
16
|
+
"@xyo-network/react-payload-plugin": "~2.65.0",
|
|
17
|
+
"@xyo-network/schema-payload-plugin": "^2.76.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^3.1.9",
|
|
21
21
|
"typescript": "^5.2.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
},
|
|
80
80
|
"sideEffects": false,
|
|
81
81
|
"types": "dist/browser/index.d.ts",
|
|
82
|
-
"version": "2.
|
|
82
|
+
"version": "2.65.0",
|
|
83
83
|
"type": "module"
|
|
84
84
|
}
|
package/dist/browser/Details.cjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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":[]}
|
package/dist/browser/Details.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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 });
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
DetailsBox
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=Details.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/browser/Plugin.cjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/browser/Plugin.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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 });
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
// src/Plugin.ts
|
|
13
|
-
var SchemaRenderPlugin = createPayloadRenderPlugin({
|
|
14
|
-
canRender: (payload) => payload?.schema === SchemaSchema,
|
|
15
|
-
components: {
|
|
16
|
-
box: {
|
|
17
|
-
details: DetailsBox
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
name: "Schema"
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
SchemaRenderPlugin
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=Plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,YAAsB,SAAS,WAAW;AAAA,EACtD,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;","names":[]}
|
package/dist/docs.json
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
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": 4194304,
|
|
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/798614ebd/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/798614ebd/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
|
-
}
|
package/dist/node/Details.cjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/node/Details.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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 });
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
DetailsBox
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=Details.js.map
|
package/dist/node/Details.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/node/Plugin.cjs
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
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
|
package/dist/node/Plugin.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/node/Plugin.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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 });
|
|
10
|
-
};
|
|
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"
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
SchemaRenderPlugin
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=Plugin.js.map
|
package/dist/node/Plugin.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|