@xyo-network/react-schema-plugin 2.81.9 → 2.82.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/dist/browser/Details.d.cts +1 -0
  2. package/dist/browser/Details.d.cts.map +1 -1
  3. package/dist/browser/Details.d.mts +1 -0
  4. package/dist/browser/Details.d.mts.map +1 -1
  5. package/dist/browser/Details.d.ts +1 -0
  6. package/dist/browser/Details.d.ts.map +1 -1
  7. package/dist/browser/index.cjs +16 -5
  8. package/dist/browser/index.cjs.map +1 -1
  9. package/dist/browser/index.d.cts +2 -2
  10. package/dist/browser/index.d.cts.map +1 -1
  11. package/dist/browser/index.d.mts +2 -2
  12. package/dist/browser/index.d.mts.map +1 -1
  13. package/dist/browser/index.d.ts +2 -2
  14. package/dist/browser/index.d.ts.map +1 -1
  15. package/dist/browser/{index.js → index.mjs} +9 -6
  16. package/dist/browser/index.mjs.map +1 -0
  17. package/dist/neutral/Details.d.cts +1 -0
  18. package/dist/neutral/Details.d.cts.map +1 -1
  19. package/dist/neutral/Details.d.mts +1 -0
  20. package/dist/neutral/Details.d.mts.map +1 -1
  21. package/dist/neutral/Details.d.ts +1 -0
  22. package/dist/neutral/Details.d.ts.map +1 -1
  23. package/dist/neutral/index.cjs +16 -5
  24. package/dist/neutral/index.cjs.map +1 -1
  25. package/dist/neutral/index.d.cts +2 -2
  26. package/dist/neutral/index.d.cts.map +1 -1
  27. package/dist/neutral/index.d.mts +2 -2
  28. package/dist/neutral/index.d.mts.map +1 -1
  29. package/dist/neutral/index.d.ts +2 -2
  30. package/dist/neutral/index.d.ts.map +1 -1
  31. package/dist/{node/index.js → neutral/index.mjs} +9 -6
  32. package/dist/neutral/index.mjs.map +1 -0
  33. package/dist/node/Details.d.cts +1 -0
  34. package/dist/node/Details.d.cts.map +1 -1
  35. package/dist/node/Details.d.mts +1 -0
  36. package/dist/node/Details.d.mts.map +1 -1
  37. package/dist/node/Details.d.ts +1 -0
  38. package/dist/node/Details.d.ts.map +1 -1
  39. package/dist/node/index.cjs +16 -5
  40. package/dist/node/index.cjs.map +1 -1
  41. package/dist/node/index.d.cts +2 -2
  42. package/dist/node/index.d.cts.map +1 -1
  43. package/dist/node/index.d.mts +2 -2
  44. package/dist/node/index.d.mts.map +1 -1
  45. package/dist/node/index.d.ts +2 -2
  46. package/dist/node/index.d.ts.map +1 -1
  47. package/dist/{neutral/index.js → node/index.mjs} +9 -6
  48. package/dist/node/index.mjs.map +1 -0
  49. package/package.json +11 -11
  50. package/src/Details.tsx +1 -0
  51. package/src/Plugin.ts +1 -1
  52. package/src/index.ts +2 -4
  53. package/dist/browser/index.js.map +0 -1
  54. package/dist/neutral/index.js.map +0 -1
  55. package/dist/node/index.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { FlexBoxProps } from '@xylabs/react-flexbox';
2
2
  import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
+ import React from 'react';
3
4
  export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
5
  //# sourceMappingURL=Details.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../src/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
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;AACtE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { FlexBoxProps } from '@xylabs/react-flexbox';
2
2
  import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
+ import React from 'react';
3
4
  export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
5
  //# sourceMappingURL=Details.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../src/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
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;AACtE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { FlexBoxProps } from '@xylabs/react-flexbox';
2
2
  import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
+ import React from 'react';
3
4
  export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
5
  //# sourceMappingURL=Details.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../src/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
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;AACtE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
9
  var __export = (target, all) => {
7
10
  for (var name in all)
8
11
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -15,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
15
18
  }
16
19
  return to;
17
20
  };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
18
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
30
 
20
31
  // src/index.ts
@@ -31,14 +42,14 @@ var import_schema_payload_plugin = require("@xyo-network/schema-payload-plugin")
31
42
 
32
43
  // src/Details.tsx
33
44
  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
- };
45
+ var import_react = __toESM(require("react"), 1);
46
+ var DetailsBox = /* @__PURE__ */ __name((props) => {
47
+ return /* @__PURE__ */ import_react.default.createElement(import_react_payload_details.PayloadDetails, props);
48
+ }, "DetailsBox");
38
49
 
39
50
  // src/Plugin.ts
40
51
  var SchemaRenderPlugin = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
41
- canRender: (payload) => payload?.schema === import_schema_payload_plugin.SchemaSchema,
52
+ canRender: /* @__PURE__ */ __name((payload) => payload?.schema === import_schema_payload_plugin.SchemaSchema, "canRender"),
42
53
  components: {
43
54
  box: {
44
55
  details: DetailsBox
@@ -1 +1 @@
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
+ {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin.ts'\nexport { SchemaRenderPlugin as default } from './Plugin.ts'\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.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;ACCA,kCAA+D;AAC/D,mCAA6B;;;ACD7B,mCAA+B;AAE/B,mBAAkB;AAEX,IAAMA,aAA0D,wBAACC,UAAAA;AACtE,SAAO,6BAAAC,QAAA,cAACC,6CAAmBF,KAAAA;AAC7B,GAFuE;;;ADChE,IAAMG,yBAA0CC,uDAA0B;EAC/EC,WAAW,wBAACC,YAAsBA,SAASC,WAAWC,2CAA3C;EACXC,YAAY;IACVC,KAAK;MACHC,SAASC;IACX;EACF;EACAC,MAAM;AACR,CAAA;","names":["DetailsBox","props","React","PayloadDetails","SchemaRenderPlugin","createPayloadRenderPlugin","canRender","payload","schema","SchemaSchema","components","box","details","DetailsBox","name"]}
@@ -1,3 +1,3 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
1
+ export * from './Plugin.ts';
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +1,3 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
1
+ export * from './Plugin.ts';
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +1,3 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
1
+ export * from './Plugin.ts';
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -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?.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"]}
@@ -1,4 +1,5 @@
1
1
  import { FlexBoxProps } from '@xylabs/react-flexbox';
2
2
  import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
+ import React from 'react';
3
4
  export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
5
  //# sourceMappingURL=Details.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../src/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
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;AACtE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { FlexBoxProps } from '@xylabs/react-flexbox';
2
2
  import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
+ import React from 'react';
3
4
  export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
5
  //# sourceMappingURL=Details.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../src/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
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;AACtE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { FlexBoxProps } from '@xylabs/react-flexbox';
2
2
  import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
+ import React from 'react';
3
4
  export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
5
  //# sourceMappingURL=Details.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../src/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
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;AACtE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
9
  var __export = (target, all) => {
7
10
  for (var name in all)
8
11
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -15,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
15
18
  }
16
19
  return to;
17
20
  };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
18
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
30
 
20
31
  // src/index.ts
@@ -31,14 +42,14 @@ var import_schema_payload_plugin = require("@xyo-network/schema-payload-plugin")
31
42
 
32
43
  // src/Details.tsx
33
44
  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
- };
45
+ var import_react = __toESM(require("react"), 1);
46
+ var DetailsBox = /* @__PURE__ */ __name((props) => {
47
+ return /* @__PURE__ */ import_react.default.createElement(import_react_payload_details.PayloadDetails, props);
48
+ }, "DetailsBox");
38
49
 
39
50
  // src/Plugin.ts
40
51
  var SchemaRenderPlugin = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
41
- canRender: (payload) => payload?.schema === import_schema_payload_plugin.SchemaSchema,
52
+ canRender: /* @__PURE__ */ __name((payload) => payload?.schema === import_schema_payload_plugin.SchemaSchema, "canRender"),
42
53
  components: {
43
54
  box: {
44
55
  details: DetailsBox
@@ -1 +1 @@
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
+ {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin.ts'\nexport { SchemaRenderPlugin as default } from './Plugin.ts'\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.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;ACCA,kCAA+D;AAC/D,mCAA6B;;;ACD7B,mCAA+B;AAE/B,mBAAkB;AAEX,IAAMA,aAA0D,wBAACC,UAAAA;AACtE,SAAO,6BAAAC,QAAA,cAACC,6CAAmBF,KAAAA;AAC7B,GAFuE;;;ADChE,IAAMG,yBAA0CC,uDAA0B;EAC/EC,WAAW,wBAACC,YAAsBA,SAASC,WAAWC,2CAA3C;EACXC,YAAY;IACVC,KAAK;MACHC,SAASC;IACX;EACF;EACAC,MAAM;AACR,CAAA;","names":["DetailsBox","props","React","PayloadDetails","SchemaRenderPlugin","createPayloadRenderPlugin","canRender","payload","schema","SchemaSchema","components","box","details","DetailsBox","name"]}
@@ -1,3 +1,3 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
1
+ export * from './Plugin.ts';
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +1,3 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
1
+ export * from './Plugin.ts';
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +1,3 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
1
+ export * from './Plugin.ts';
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -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"]}
@@ -1,4 +1,5 @@
1
1
  import { FlexBoxProps } from '@xylabs/react-flexbox';
2
2
  import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
+ import React from 'react';
3
4
  export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
5
  //# sourceMappingURL=Details.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../src/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
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;AACtE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { FlexBoxProps } from '@xylabs/react-flexbox';
2
2
  import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
+ import React from 'react';
3
4
  export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
5
  //# sourceMappingURL=Details.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../src/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
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;AACtE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { FlexBoxProps } from '@xylabs/react-flexbox';
2
2
  import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
+ import React from 'react';
3
4
  export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
4
5
  //# sourceMappingURL=Details.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../src/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAEtE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
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;AACtE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
9
  var __export = (target, all) => {
7
10
  for (var name in all)
8
11
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -15,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
15
18
  }
16
19
  return to;
17
20
  };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
18
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
30
 
20
31
  // src/index.ts
@@ -31,14 +42,14 @@ var import_schema_payload_plugin = require("@xyo-network/schema-payload-plugin")
31
42
 
32
43
  // src/Details.tsx
33
44
  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
- };
45
+ var import_react = __toESM(require("react"), 1);
46
+ var DetailsBox = /* @__PURE__ */ __name((props) => {
47
+ return /* @__PURE__ */ import_react.default.createElement(import_react_payload_details.PayloadDetails, props);
48
+ }, "DetailsBox");
38
49
 
39
50
  // src/Plugin.ts
40
51
  var SchemaRenderPlugin = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
41
- canRender: (payload) => (payload == null ? void 0 : payload.schema) === import_schema_payload_plugin.SchemaSchema,
52
+ canRender: /* @__PURE__ */ __name((payload) => (payload == null ? void 0 : payload.schema) === import_schema_payload_plugin.SchemaSchema, "canRender"),
42
53
  components: {
43
54
  box: {
44
55
  details: DetailsBox
@@ -1 +1 @@
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
+ {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["export * from './Plugin.ts'\nexport { SchemaRenderPlugin as default } from './Plugin.ts'\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.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;ACCA,kCAA+D;AAC/D,mCAA6B;;;ACD7B,mCAA+B;AAE/B,mBAAkB;AAEX,IAAMA,aAA0D,wBAACC,UAAAA;AACtE,SAAO,6BAAAC,QAAA,cAACC,6CAAmBF,KAAAA;AAC7B,GAFuE;;;ADChE,IAAMG,yBAA0CC,uDAA0B;EAC/EC,WAAW,wBAACC,aAAsBA,mCAASC,YAAWC,2CAA3C;EACXC,YAAY;IACVC,KAAK;MACHC,SAASC;IACX;EACF;EACAC,MAAM;AACR,CAAA;","names":["DetailsBox","props","React","PayloadDetails","SchemaRenderPlugin","createPayloadRenderPlugin","canRender","payload","schema","SchemaSchema","components","box","details","DetailsBox","name"]}
@@ -1,3 +1,3 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
1
+ export * from './Plugin.ts';
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +1,3 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
1
+ export * from './Plugin.ts';
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -1,3 +1,3 @@
1
- export * from './Plugin.js';
2
- export { SchemaRenderPlugin as default } from './Plugin.js';
1
+ export * from './Plugin.ts';
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,aAAa,CAAA"}
@@ -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?.schema === SchemaSchema,
17
+ canRender: /* @__PURE__ */ __name((payload) => (payload == null ? void 0 : 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,aAAsBA,mCAASC,YAAWC,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.9",
16
- "@xyo-network/react-payload-plugin": "^2.81.9",
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.82.0",
16
+ "@xyo-network/react-payload-plugin": "^2.82.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": "^3.15.16",
21
21
  "typescript": "^5.5.4"
22
22
  },
23
23
  "peerDependencies": {
@@ -36,7 +36,7 @@
36
36
  "node": {
37
37
  "import": {
38
38
  "types": "./dist/node/index.d.mts",
39
- "default": "./dist/node/index.js"
39
+ "default": "./dist/node/index.mjs"
40
40
  },
41
41
  "require": {
42
42
  "types": "./dist/node/index.d.cts",
@@ -46,19 +46,19 @@
46
46
  "browser": {
47
47
  "import": {
48
48
  "types": "./dist/browser/index.d.mts",
49
- "default": "./dist/browser/index.js"
49
+ "default": "./dist/browser/index.mjs"
50
50
  },
51
51
  "require": {
52
52
  "types": "./dist/browser/index.d.cts",
53
53
  "default": "./dist/browser/index.cjs"
54
54
  }
55
55
  },
56
- "default": "./dist/browser/index.js"
56
+ "default": "./dist/browser/index.mjs"
57
57
  },
58
58
  "./package.json": "./package.json"
59
59
  },
60
60
  "main": "dist/browser/index.cjs",
61
- "module": "dist/browser/index.js",
61
+ "module": "dist/browser/index.mjs",
62
62
  "homepage": "https://xyo.network",
63
63
  "keywords": [
64
64
  "xyo",
@@ -80,6 +80,6 @@
80
80
  },
81
81
  "sideEffects": false,
82
82
  "types": "dist/browser/index.d.ts",
83
- "version": "2.81.9",
83
+ "version": "2.82.0",
84
84
  "type": "module"
85
85
  }
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'
@@ -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 +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 +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":[]}