@xyo-network/react-schema-plugin 2.75.7 → 2.76.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/neutral/Details.d.cts +5 -0
- package/dist/neutral/Details.d.cts.map +1 -0
- package/dist/neutral/Details.d.mts +5 -0
- package/dist/neutral/Details.d.mts.map +1 -0
- package/dist/neutral/Details.d.ts +5 -0
- package/dist/neutral/Details.d.ts.map +1 -0
- package/dist/neutral/Plugin.d.cts +3 -0
- package/dist/neutral/Plugin.d.cts.map +1 -0
- package/dist/neutral/Plugin.d.mts +3 -0
- package/dist/neutral/Plugin.d.mts.map +1 -0
- package/dist/neutral/Plugin.d.ts +3 -0
- package/dist/neutral/Plugin.d.ts.map +1 -0
- package/dist/neutral/index.cjs +49 -0
- package/dist/neutral/index.cjs.map +1 -0
- package/dist/neutral/index.d.cts +3 -0
- package/dist/neutral/index.d.cts.map +1 -0
- package/dist/neutral/index.d.mts +3 -0
- package/dist/neutral/index.d.mts.map +1 -0
- package/dist/neutral/index.d.ts +3 -0
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/index.js +26 -0
- package/dist/neutral/index.js.map +1 -0
- package/package.json +6 -6
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
+
import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
|
4
|
+
export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
|
5
|
+
//# sourceMappingURL=Details.d.ts.map
|
@@ -0,0 +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"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
+
import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
|
4
|
+
export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
|
5
|
+
//# sourceMappingURL=Details.d.ts.map
|
@@ -0,0 +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"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
+
import { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
|
4
|
+
export declare const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps>;
|
5
|
+
//# sourceMappingURL=Details.d.ts.map
|
@@ -0,0 +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"}
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1,49 @@
|
|
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
|
@@ -0,0 +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":";;;;;;;;;;;;;;;;;;;;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":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AAIxB,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AAIxB,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AAIxB,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA"}
|
@@ -0,0 +1,26 @@
|
|
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
|
@@ -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'\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/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.99.
|
15
|
-
"@xyo-network/react-payload-details": "~2.
|
16
|
-
"@xyo-network/react-payload-plugin": "~2.
|
17
|
-
"@xyo-network/schema-payload-plugin": "^2.99.
|
14
|
+
"@xyo-network/payload-model": "^2.99.3",
|
15
|
+
"@xyo-network/react-payload-details": "~2.76.1",
|
16
|
+
"@xyo-network/react-payload-plugin": "~2.76.1",
|
17
|
+
"@xyo-network/schema-payload-plugin": "^2.99.3"
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^3.10.0",
|
21
21
|
"typescript": "^5.4.5"
|
22
22
|
},
|
23
23
|
"peerDependencies": {
|
@@ -80,6 +80,6 @@
|
|
80
80
|
},
|
81
81
|
"sideEffects": false,
|
82
82
|
"types": "dist/browser/index.d.ts",
|
83
|
-
"version": "2.
|
83
|
+
"version": "2.76.1",
|
84
84
|
"type": "module"
|
85
85
|
}
|