@xyo-network/react-schema-plugin 2.78.0 → 2.78.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/index.cjs +48 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +25 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/neutral/index.cjs +48 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +25 -1
- package/dist/neutral/index.js.map +1 -1
- package/dist/node/index.cjs +52 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +25 -1
- package/dist/node/index.js.map +1 -1
- package/package.json +6 -6
package/dist/browser/index.cjs
CHANGED
@@ -1,2 +1,49 @@
|
|
1
|
-
"use strict";
|
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
|
+
});
|
2
49
|
//# 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":";;;;;;;;;;;;;;;;;;;;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;","names":[]}
|
package/dist/browser/index.js
CHANGED
@@ -1,2 +1,26 @@
|
|
1
|
-
|
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
|
+
SchemaRenderPlugin as default
|
25
|
+
};
|
2
26
|
//# 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":"AACA,
|
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/neutral/index.cjs
CHANGED
@@ -1,2 +1,49 @@
|
|
1
|
-
"use strict";
|
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
|
+
});
|
2
49
|
//# 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":";;;;;;;;;;;;;;;;;;;;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;","names":[]}
|
package/dist/neutral/index.js
CHANGED
@@ -1,2 +1,26 @@
|
|
1
|
-
|
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
|
+
SchemaRenderPlugin as default
|
25
|
+
};
|
2
26
|
//# 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":"AACA,
|
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/node/index.cjs
CHANGED
@@ -1,2 +1,53 @@
|
|
1
|
-
"use strict";
|
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
|
+
});
|
2
53
|
//# 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":";;;;;;;;;;;;;;;;;;;;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;","names":[]}
|
package/dist/node/index.js
CHANGED
@@ -1,2 +1,26 @@
|
|
1
|
-
|
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
|
+
SchemaRenderPlugin as default
|
25
|
+
};
|
2
26
|
//# 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":"AACA,
|
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":[]}
|
package/package.json
CHANGED
@@ -11,13 +11,13 @@
|
|
11
11
|
},
|
12
12
|
"dependencies": {
|
13
13
|
"@xylabs/react-flexbox": "^3.1.7",
|
14
|
-
"@xyo-network/payload-model": "^2.107.
|
15
|
-
"@xyo-network/react-payload-details": "
|
16
|
-
"@xyo-network/react-payload-plugin": "
|
17
|
-
"@xyo-network/schema-payload-plugin": "^2.107.
|
14
|
+
"@xyo-network/payload-model": "^2.107.6",
|
15
|
+
"@xyo-network/react-payload-details": "^2.78.2",
|
16
|
+
"@xyo-network/react-payload-plugin": "^2.78.2",
|
17
|
+
"@xyo-network/schema-payload-plugin": "^2.107.6"
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^3.11.
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^3.11.12",
|
21
21
|
"typescript": "^5.5.2"
|
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.78.
|
83
|
+
"version": "2.78.2",
|
84
84
|
"type": "module"
|
85
85
|
}
|