@xyo-network/react-schema-plugin 2.81.10 → 2.83.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/dist/browser/index.d.ts +5 -3
  2. package/dist/{node/index.js → browser/index.mjs} +9 -6
  3. package/dist/browser/index.mjs.map +1 -0
  4. package/package.json +13 -29
  5. package/src/Details.tsx +1 -0
  6. package/src/Plugin.ts +1 -1
  7. package/src/index.ts +2 -4
  8. package/xy.config.ts +12 -0
  9. package/dist/browser/Details.d.cts +0 -4
  10. package/dist/browser/Details.d.cts.map +0 -1
  11. package/dist/browser/Details.d.mts +0 -4
  12. package/dist/browser/Details.d.mts.map +0 -1
  13. package/dist/browser/Details.d.ts +0 -4
  14. package/dist/browser/Details.d.ts.map +0 -1
  15. package/dist/browser/Plugin.d.cts +0 -3
  16. package/dist/browser/Plugin.d.cts.map +0 -1
  17. package/dist/browser/Plugin.d.mts +0 -3
  18. package/dist/browser/Plugin.d.mts.map +0 -1
  19. package/dist/browser/Plugin.d.ts +0 -3
  20. package/dist/browser/Plugin.d.ts.map +0 -1
  21. package/dist/browser/index.cjs +0 -49
  22. package/dist/browser/index.cjs.map +0 -1
  23. package/dist/browser/index.d.cts +0 -3
  24. package/dist/browser/index.d.cts.map +0 -1
  25. package/dist/browser/index.d.mts +0 -3
  26. package/dist/browser/index.d.mts.map +0 -1
  27. package/dist/browser/index.d.ts.map +0 -1
  28. package/dist/browser/index.js +0 -26
  29. package/dist/browser/index.js.map +0 -1
  30. package/dist/neutral/Details.d.cts +0 -4
  31. package/dist/neutral/Details.d.cts.map +0 -1
  32. package/dist/neutral/Details.d.mts +0 -4
  33. package/dist/neutral/Details.d.mts.map +0 -1
  34. package/dist/neutral/Details.d.ts +0 -4
  35. package/dist/neutral/Details.d.ts.map +0 -1
  36. package/dist/neutral/Plugin.d.cts +0 -3
  37. package/dist/neutral/Plugin.d.cts.map +0 -1
  38. package/dist/neutral/Plugin.d.mts +0 -3
  39. package/dist/neutral/Plugin.d.mts.map +0 -1
  40. package/dist/neutral/Plugin.d.ts +0 -3
  41. package/dist/neutral/Plugin.d.ts.map +0 -1
  42. package/dist/neutral/index.cjs +0 -49
  43. package/dist/neutral/index.cjs.map +0 -1
  44. package/dist/neutral/index.d.cts +0 -3
  45. package/dist/neutral/index.d.cts.map +0 -1
  46. package/dist/neutral/index.d.mts +0 -3
  47. package/dist/neutral/index.d.mts.map +0 -1
  48. package/dist/neutral/index.d.ts +0 -3
  49. package/dist/neutral/index.d.ts.map +0 -1
  50. package/dist/neutral/index.js +0 -26
  51. package/dist/neutral/index.js.map +0 -1
  52. package/dist/node/Details.d.cts +0 -4
  53. package/dist/node/Details.d.cts.map +0 -1
  54. package/dist/node/Details.d.mts +0 -4
  55. package/dist/node/Details.d.mts.map +0 -1
  56. package/dist/node/Details.d.ts +0 -4
  57. package/dist/node/Details.d.ts.map +0 -1
  58. package/dist/node/Plugin.d.cts +0 -3
  59. package/dist/node/Plugin.d.cts.map +0 -1
  60. package/dist/node/Plugin.d.mts +0 -3
  61. package/dist/node/Plugin.d.mts.map +0 -1
  62. package/dist/node/Plugin.d.ts +0 -3
  63. package/dist/node/Plugin.d.ts.map +0 -1
  64. package/dist/node/index.cjs +0 -53
  65. package/dist/node/index.cjs.map +0 -1
  66. package/dist/node/index.d.cts +0 -3
  67. package/dist/node/index.d.cts.map +0 -1
  68. package/dist/node/index.d.mts +0 -3
  69. package/dist/node/index.d.mts.map +0 -1
  70. package/dist/node/index.d.ts +0 -3
  71. package/dist/node/index.d.ts.map +0 -1
  72. package/dist/node/index.js.map +0 -1
@@ -1,3 +1,5 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
3
- //# sourceMappingURL=index.d.ts.map
1
+ import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
+
3
+ declare const SchemaRenderPlugin: PayloadRenderPlugin;
4
+
5
+ export { SchemaRenderPlugin, SchemaRenderPlugin as default };
@@ -1,17 +1,20 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
1
4
  // src/Plugin.ts
2
5
  import { createPayloadRenderPlugin } from "@xyo-network/react-payload-plugin";
3
6
  import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
4
7
 
5
8
  // src/Details.tsx
6
9
  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
- };
10
+ import React from "react";
11
+ var DetailsBox = /* @__PURE__ */ __name((props) => {
12
+ return /* @__PURE__ */ React.createElement(PayloadDetails, props);
13
+ }, "DetailsBox");
11
14
 
12
15
  // src/Plugin.ts
13
16
  var SchemaRenderPlugin = createPayloadRenderPlugin({
14
- canRender: (payload) => (payload == null ? void 0 : payload.schema) === SchemaSchema,
17
+ canRender: /* @__PURE__ */ __name((payload) => payload?.schema === SchemaSchema, "canRender"),
15
18
  components: {
16
19
  box: {
17
20
  details: DetailsBox
@@ -23,4 +26,4 @@ export {
23
26
  SchemaRenderPlugin,
24
27
  SchemaRenderPlugin as default
25
28
  };
26
- //# sourceMappingURL=index.js.map
29
+ //# sourceMappingURL=index.mjs.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.tsx'\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'\nimport React from 'react'\n\nexport const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {\n return <PayloadDetails {...props} />\n}\n"],"mappings":";;;;AACA,SAASA,iCAAsD;AAC/D,SAASC,oBAAoB;;;ACD7B,SAASC,sBAAsB;AAE/B,OAAOC,WAAW;AAEX,IAAMC,aAA0D,wBAACC,UAAAA;AACtE,SAAO,sBAAA,cAACC,gBAAmBD,KAAAA;AAC7B,GAFuE;;;ADChE,IAAME,qBAA0CC,0BAA0B;EAC/EC,WAAW,wBAACC,YAAsBA,SAASC,WAAWC,cAA3C;EACXC,YAAY;IACVC,KAAK;MACHC,SAASC;IACX;EACF;EACAC,MAAM;AACR,CAAA;","names":["createPayloadRenderPlugin","SchemaSchema","PayloadDetails","React","DetailsBox","props","PayloadDetails","SchemaRenderPlugin","createPayloadRenderPlugin","canRender","payload","schema","SchemaSchema","components","box","details","DetailsBox","name"]}
package/package.json CHANGED
@@ -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.4.1",
14
- "@xyo-network/payload-model": "^2.110.9",
15
- "@xyo-network/react-payload-details": "^2.81.10",
16
- "@xyo-network/react-payload-plugin": "^2.81.10",
17
- "@xyo-network/schema-payload-plugin": "^2.110.9"
13
+ "@xylabs/react-flexbox": "^3.4.2",
14
+ "@xyo-network/payload-model": "^2.111.3",
15
+ "@xyo-network/react-payload-details": "^2.83.0",
16
+ "@xyo-network/react-payload-plugin": "^2.83.0",
17
+ "@xyo-network/schema-payload-plugin": "^2.111.3"
18
18
  },
19
19
  "devDependencies": {
20
- "@xylabs/ts-scripts-yarn3": "^3.12.4",
20
+ "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.7",
21
21
  "typescript": "^5.5.4"
22
22
  },
23
23
  "peerDependencies": {
@@ -33,32 +33,16 @@
33
33
  "docs": "dist/docs.json",
34
34
  "exports": {
35
35
  ".": {
36
- "node": {
37
- "import": {
38
- "types": "./dist/node/index.d.mts",
39
- "default": "./dist/node/index.js"
40
- },
41
- "require": {
42
- "types": "./dist/node/index.d.cts",
43
- "default": "./dist/node/index.cjs"
44
- }
36
+ "import": {
37
+ "types": "./dist/browser/index.d.ts",
38
+ "default": "./dist/browser/index.mjs"
45
39
  },
46
- "browser": {
47
- "import": {
48
- "types": "./dist/browser/index.d.mts",
49
- "default": "./dist/browser/index.js"
50
- },
51
- "require": {
52
- "types": "./dist/browser/index.d.cts",
53
- "default": "./dist/browser/index.cjs"
54
- }
55
- },
56
- "default": "./dist/browser/index.js"
40
+ "types": "./dist/browser/index.d.ts",
41
+ "default": "./dist/browser/index.mjs"
57
42
  },
58
43
  "./package.json": "./package.json"
59
44
  },
60
- "main": "dist/browser/index.cjs",
61
- "module": "dist/browser/index.js",
45
+ "module": "dist/browser/index.mjs",
62
46
  "homepage": "https://xyo.network",
63
47
  "keywords": [
64
48
  "xyo",
@@ -80,6 +64,6 @@
80
64
  },
81
65
  "sideEffects": false,
82
66
  "types": "dist/browser/index.d.ts",
83
- "version": "2.81.10",
67
+ "version": "2.83.0",
84
68
  "type": "module"
85
69
  }
package/src/Details.tsx CHANGED
@@ -1,6 +1,7 @@
1
1
  import { FlexBoxProps } from '@xylabs/react-flexbox'
2
2
  import { PayloadDetails } from '@xyo-network/react-payload-details'
3
3
  import { PayloadRenderProps } from '@xyo-network/react-payload-plugin'
4
+ import React from 'react'
4
5
 
5
6
  export const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {
6
7
  return <PayloadDetails {...props} />
package/src/Plugin.ts CHANGED
@@ -2,7 +2,7 @@ import { Payload } from '@xyo-network/payload-model'
2
2
  import { createPayloadRenderPlugin, PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
3
3
  import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
4
4
 
5
- import { DetailsBox } from './Details.js'
5
+ import { DetailsBox } from './Details.tsx'
6
6
 
7
7
  export const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({
8
8
  canRender: (payload?: Payload) => payload?.schema === SchemaSchema,
package/src/index.ts CHANGED
@@ -1,4 +1,2 @@
1
- export * from './Plugin.js'
2
-
3
- // eslint-disable-next-line import/no-default-export
4
- export { SchemaRenderPlugin as default } from './Plugin.js'
1
+ export * from './Plugin.ts'
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts'
package/xy.config.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
+ const config: XyTsupConfig = {
3
+ compile: {
4
+ browser: {
5
+ src: true,
6
+ },
7
+ node: {},
8
+ neutral: {},
9
+ },
10
+ }
11
+
12
+ export default config
@@ -1,4 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
- export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
- //# sourceMappingURL=Details.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
- export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
- //# sourceMappingURL=Details.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
- export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
- //# sourceMappingURL=Details.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
- export declare const SchemaRenderPlugin: PayloadRenderPlugin;
3
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
- export declare const SchemaRenderPlugin: PayloadRenderPlugin;
3
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
- export declare const SchemaRenderPlugin: PayloadRenderPlugin;
3
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,49 +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/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
- });
49
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin.js'\n\n// eslint-disable-next-line import/no-default-export\nexport { SchemaRenderPlugin as default } from './Plugin.js'\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.js'\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":[]}
@@ -1,3 +0,0 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,26 +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
- SchemaRenderPlugin as default
25
- };
26
- //# sourceMappingURL=index.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.js'\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":[]}
@@ -1,4 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
- export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
- //# sourceMappingURL=Details.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
- export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
- //# sourceMappingURL=Details.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
- export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
- //# sourceMappingURL=Details.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
- export declare const SchemaRenderPlugin: PayloadRenderPlugin;
3
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
- export declare const SchemaRenderPlugin: PayloadRenderPlugin;
3
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
- export declare const SchemaRenderPlugin: PayloadRenderPlugin;
3
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,49 +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/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
- });
49
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin.js'\n\n// eslint-disable-next-line import/no-default-export\nexport { SchemaRenderPlugin as default } from './Plugin.js'\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.js'\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":[]}
@@ -1,3 +0,0 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,26 +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
- SchemaRenderPlugin as default
25
- };
26
- //# sourceMappingURL=index.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.js'\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":[]}
@@ -1,4 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
- export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
- //# sourceMappingURL=Details.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
- export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
- //# sourceMappingURL=Details.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
- export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
- //# sourceMappingURL=Details.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
- export declare const SchemaRenderPlugin: PayloadRenderPlugin;
3
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
- export declare const SchemaRenderPlugin: PayloadRenderPlugin;
3
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
- export declare const SchemaRenderPlugin: PayloadRenderPlugin;
3
- //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,53 +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/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
- });
53
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin.js'\n\n// eslint-disable-next-line import/no-default-export\nexport { SchemaRenderPlugin as default } from './Plugin.js'\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.js'\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":[]}
@@ -1,3 +0,0 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -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.js'\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":[]}