@xyo-network/react-schema-plugin 2.77.0 → 2.77.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/index.cjs +1 -48
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +1 -25
- package/dist/browser/index.js.map +1 -1
- package/dist/neutral/index.cjs +1 -48
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +1 -25
- package/dist/neutral/index.js.map +1 -1
- package/dist/node/index.cjs +1 -52
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -25
- package/dist/node/index.js.map +1 -1
- package/package.json +4 -4
package/dist/browser/index.cjs
CHANGED
@@ -1,49 +1,2 @@
|
|
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: () => SchemaRenderPlugin
|
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
|
-
});
|
1
|
+
"use strict";var m=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var x=(o,e)=>{for(var a in e)m(o,a,{get:e[a],enumerable:!0})},R=(o,e,a,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!f.call(o,r)&&r!==a&&m(o,r,{get:()=>e[r],enumerable:!(l=s(e,r))||l.enumerable});return o};var y=o=>R(m({},"__esModule",{value:!0}),o);var h={};x(h,{SchemaRenderPlugin:()=>i,default:()=>i});module.exports=y(h);var P=require("@xyo-network/react-payload-plugin"),p=require("@xyo-network/schema-payload-plugin");var t=require("@xyo-network/react-payload-details"),d=require("react/jsx-runtime"),n=o=>(0,d.jsx)(t.PayloadDetails,{...o});var i=(0,P.createPayloadRenderPlugin)({canRender:o=>o?.schema===p.SchemaSchema,components:{box:{details:n}},name:"Schema"});
|
49
2
|
//# sourceMappingURL=index.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\n\nexport { SchemaRenderPlugin as default } from './Plugin'\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":"
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\n\nexport { SchemaRenderPlugin as default } from './Plugin'\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":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,YAAAA,IAAA,eAAAC,EAAAH,GCCA,IAAAI,EAA+D,6CAC/DC,EAA6B,8CCD7B,IAAAC,EAA+B,8CAItBC,EAAA,6BADIC,EAA2DC,MAC/D,OAAC,kBAAgB,GAAGA,EAAO,EDC7B,IAAMC,KAA0C,6BAA0B,CAC/E,UAAYC,GAAsBA,GAAS,SAAW,eACtD,WAAY,CACV,IAAK,CACH,QAASC,CACX,CACF,EACA,KAAM,QACR,CAAC","names":["src_exports","__export","SchemaRenderPlugin","__toCommonJS","import_react_payload_plugin","import_schema_payload_plugin","import_react_payload_details","import_jsx_runtime","DetailsBox","props","SchemaRenderPlugin","payload","DetailsBox"]}
|
package/dist/browser/index.js
CHANGED
@@ -1,26 +1,2 @@
|
|
1
|
-
|
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
|
-
SchemaRenderPlugin as default
|
25
|
-
};
|
1
|
+
import{createPayloadRenderPlugin as m}from"@xyo-network/react-payload-plugin";import{SchemaSchema as l}from"@xyo-network/schema-payload-plugin";import{PayloadDetails as r}from"@xyo-network/react-payload-details";import{jsx as a}from"react/jsx-runtime";var e=o=>a(r,{...o});var t=m({canRender:o=>o?.schema===l,components:{box:{details:e}},name:"Schema"});export{t as SchemaRenderPlugin,t as default};
|
26
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +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":"
|
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,OAAS,6BAAAA,MAAsD,oCAC/D,OAAS,gBAAAC,MAAoB,qCCD7B,OAAS,kBAAAC,MAAsB,qCAItB,cAAAC,MAAA,oBADF,IAAMC,EAA2DC,GAC/DF,EAACD,EAAA,CAAgB,GAAGG,EAAO,EDC7B,IAAMC,EAA0CC,EAA0B,CAC/E,UAAYC,GAAsBA,GAAS,SAAWC,EACtD,WAAY,CACV,IAAK,CACH,QAASC,CACX,CACF,EACA,KAAM,QACR,CAAC","names":["createPayloadRenderPlugin","SchemaSchema","PayloadDetails","jsx","DetailsBox","props","SchemaRenderPlugin","createPayloadRenderPlugin","payload","SchemaSchema","DetailsBox"]}
|
package/dist/neutral/index.cjs
CHANGED
@@ -1,49 +1,2 @@
|
|
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: () => SchemaRenderPlugin
|
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
|
-
});
|
1
|
+
"use strict";var m=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var x=(o,e)=>{for(var a in e)m(o,a,{get:e[a],enumerable:!0})},R=(o,e,a,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!f.call(o,r)&&r!==a&&m(o,r,{get:()=>e[r],enumerable:!(l=s(e,r))||l.enumerable});return o};var y=o=>R(m({},"__esModule",{value:!0}),o);var h={};x(h,{SchemaRenderPlugin:()=>i,default:()=>i});module.exports=y(h);var P=require("@xyo-network/react-payload-plugin"),p=require("@xyo-network/schema-payload-plugin");var t=require("@xyo-network/react-payload-details"),d=require("react/jsx-runtime"),n=o=>(0,d.jsx)(t.PayloadDetails,{...o});var i=(0,P.createPayloadRenderPlugin)({canRender:o=>o?.schema===p.SchemaSchema,components:{box:{details:n}},name:"Schema"});
|
49
2
|
//# sourceMappingURL=index.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\n\nexport { SchemaRenderPlugin as default } from './Plugin'\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":"
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\n\nexport { SchemaRenderPlugin as default } from './Plugin'\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":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,YAAAA,IAAA,eAAAC,EAAAH,GCCA,IAAAI,EAA+D,6CAC/DC,EAA6B,8CCD7B,IAAAC,EAA+B,8CAItBC,EAAA,6BADIC,EAA2DC,MAC/D,OAAC,kBAAgB,GAAGA,EAAO,EDC7B,IAAMC,KAA0C,6BAA0B,CAC/E,UAAYC,GAAsBA,GAAS,SAAW,eACtD,WAAY,CACV,IAAK,CACH,QAASC,CACX,CACF,EACA,KAAM,QACR,CAAC","names":["src_exports","__export","SchemaRenderPlugin","__toCommonJS","import_react_payload_plugin","import_schema_payload_plugin","import_react_payload_details","import_jsx_runtime","DetailsBox","props","SchemaRenderPlugin","payload","DetailsBox"]}
|
package/dist/neutral/index.js
CHANGED
@@ -1,26 +1,2 @@
|
|
1
|
-
|
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
|
-
SchemaRenderPlugin as default
|
25
|
-
};
|
1
|
+
import{createPayloadRenderPlugin as m}from"@xyo-network/react-payload-plugin";import{SchemaSchema as l}from"@xyo-network/schema-payload-plugin";import{PayloadDetails as r}from"@xyo-network/react-payload-details";import{jsx as a}from"react/jsx-runtime";var e=o=>a(r,{...o});var t=m({canRender:o=>o?.schema===l,components:{box:{details:e}},name:"Schema"});export{t as SchemaRenderPlugin,t as default};
|
26
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +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":"
|
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,OAAS,6BAAAA,MAAsD,oCAC/D,OAAS,gBAAAC,MAAoB,qCCD7B,OAAS,kBAAAC,MAAsB,qCAItB,cAAAC,MAAA,oBADF,IAAMC,EAA2DC,GAC/DF,EAACD,EAAA,CAAgB,GAAGG,EAAO,EDC7B,IAAMC,EAA0CC,EAA0B,CAC/E,UAAYC,GAAsBA,GAAS,SAAWC,EACtD,WAAY,CACV,IAAK,CACH,QAASC,CACX,CACF,EACA,KAAM,QACR,CAAC","names":["createPayloadRenderPlugin","SchemaSchema","PayloadDetails","jsx","DetailsBox","props","SchemaRenderPlugin","createPayloadRenderPlugin","payload","SchemaSchema","DetailsBox"]}
|
package/dist/node/index.cjs
CHANGED
@@ -1,53 +1,2 @@
|
|
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: () => SchemaRenderPlugin
|
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
|
-
// Annotate the CommonJS export names for ESM import in node:
|
50
|
-
0 && (module.exports = {
|
51
|
-
SchemaRenderPlugin
|
52
|
-
});
|
1
|
+
"use strict";var m=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var x=(e,o)=>{for(var a in o)m(e,a,{get:o[a],enumerable:!0})},R=(e,o,a,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of c(o))!f.call(e,r)&&r!==a&&m(e,r,{get:()=>o[r],enumerable:!(t=s(o,r))||t.enumerable});return e};var h=e=>R(m({},"__esModule",{value:!0}),e);var u={};x(u,{SchemaRenderPlugin:()=>p,default:()=>p});module.exports=h(u);var i=require("@xyo-network/react-payload-plugin"),d=require("@xyo-network/schema-payload-plugin");var n=require("@xyo-network/react-payload-details"),l=require("react/jsx-runtime"),P=e=>(0,l.jsx)(n.PayloadDetails,{...e});var p=(0,i.createPayloadRenderPlugin)({canRender:e=>(e==null?void 0:e.schema)===d.SchemaSchema,components:{box:{details:P}},name:"Schema"});0&&(module.exports={SchemaRenderPlugin});
|
53
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/node/index.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\n\nexport { SchemaRenderPlugin as default } from './Plugin'\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":"
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin'\n\n// eslint-disable-next-line import/no-default-export\n\nexport { SchemaRenderPlugin as default } from './Plugin'\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":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,YAAAA,IAAA,eAAAC,EAAAH,GCCA,IAAAI,EAA+D,6CAC/DC,EAA6B,8CCD7B,IAAAC,EAA+B,8CAItBC,EAAA,6BADIC,EAA2DC,MAC/D,OAAC,kBAAgB,GAAGA,EAAO,EDC7B,IAAMC,KAA0C,6BAA0B,CAC/E,UAAYC,IAAsBA,GAAA,YAAAA,EAAS,UAAW,eACtD,WAAY,CACV,IAAK,CACH,QAASC,CACX,CACF,EACA,KAAM,QACR,CAAC","names":["src_exports","__export","SchemaRenderPlugin","__toCommonJS","import_react_payload_plugin","import_schema_payload_plugin","import_react_payload_details","import_jsx_runtime","DetailsBox","props","SchemaRenderPlugin","payload","DetailsBox"]}
|
package/dist/node/index.js
CHANGED
@@ -1,26 +1,2 @@
|
|
1
|
-
|
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
|
-
SchemaRenderPlugin as default
|
25
|
-
};
|
1
|
+
import{createPayloadRenderPlugin as m}from"@xyo-network/react-payload-plugin";import{SchemaSchema as t}from"@xyo-network/schema-payload-plugin";import{PayloadDetails as r}from"@xyo-network/react-payload-details";import{jsx as a}from"react/jsx-runtime";var o=e=>a(r,{...e});var n=m({canRender:e=>(e==null?void 0:e.schema)===t,components:{box:{details:o}},name:"Schema"});export{n as SchemaRenderPlugin,n as default};
|
26
2
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
@@ -1 +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":"
|
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,OAAS,6BAAAA,MAAsD,oCAC/D,OAAS,gBAAAC,MAAoB,qCCD7B,OAAS,kBAAAC,MAAsB,qCAItB,cAAAC,MAAA,oBADF,IAAMC,EAA2DC,GAC/DF,EAACD,EAAA,CAAgB,GAAGG,EAAO,EDC7B,IAAMC,EAA0CC,EAA0B,CAC/E,UAAYC,IAAsBA,GAAA,YAAAA,EAAS,UAAWC,EACtD,WAAY,CACV,IAAK,CACH,QAASC,CACX,CACF,EACA,KAAM,QACR,CAAC","names":["createPayloadRenderPlugin","SchemaSchema","PayloadDetails","jsx","DetailsBox","props","SchemaRenderPlugin","createPayloadRenderPlugin","payload","SchemaSchema","DetailsBox"]}
|
package/package.json
CHANGED
@@ -12,12 +12,12 @@
|
|
12
12
|
"dependencies": {
|
13
13
|
"@xylabs/react-flexbox": "^3.1.7",
|
14
14
|
"@xyo-network/payload-model": "^2.106.0",
|
15
|
-
"@xyo-network/react-payload-details": "~2.77.
|
16
|
-
"@xyo-network/react-payload-plugin": "~2.77.
|
15
|
+
"@xyo-network/react-payload-details": "~2.77.2",
|
16
|
+
"@xyo-network/react-payload-plugin": "~2.77.2",
|
17
17
|
"@xyo-network/schema-payload-plugin": "^2.106.0"
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^3.11.
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^3.11.7",
|
21
21
|
"typescript": "^5.4.5"
|
22
22
|
},
|
23
23
|
"peerDependencies": {
|
@@ -80,6 +80,6 @@
|
|
80
80
|
},
|
81
81
|
"sideEffects": false,
|
82
82
|
"types": "dist/browser/index.d.ts",
|
83
|
-
"version": "2.77.
|
83
|
+
"version": "2.77.2",
|
84
84
|
"type": "module"
|
85
85
|
}
|