@xyo-network/react-schema-plugin 6.2.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.mjs +6 -13
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +21 -17
- package/typedoc.json +0 -5
- package/xy.config.ts +0 -10
package/dist/browser/index.mjs
CHANGED
@@ -1,25 +1,18 @@
|
|
1
|
-
var __defProp = Object.defineProperty;
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
3
|
-
|
4
1
|
// src/Plugin.ts
|
5
2
|
import { createPayloadRenderPlugin } from "@xyo-network/react-payload-plugin";
|
6
3
|
import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
|
7
4
|
|
8
5
|
// src/Details.tsx
|
9
6
|
import { PayloadDetails } from "@xyo-network/react-payload-details";
|
10
|
-
import
|
11
|
-
var DetailsBox =
|
12
|
-
return /* @__PURE__ */
|
13
|
-
}
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
8
|
+
var DetailsBox = (props) => {
|
9
|
+
return /* @__PURE__ */ jsx(PayloadDetails, { ...props });
|
10
|
+
};
|
14
11
|
|
15
12
|
// src/Plugin.ts
|
16
13
|
var SchemaRenderPlugin = createPayloadRenderPlugin({
|
17
|
-
canRender:
|
18
|
-
components: {
|
19
|
-
box: {
|
20
|
-
details: DetailsBox
|
21
|
-
}
|
22
|
-
},
|
14
|
+
canRender: (payload) => payload?.schema === SchemaSchema,
|
15
|
+
components: { box: { details: DetailsBox } },
|
23
16
|
name: "Schema"
|
24
17
|
});
|
25
18
|
export {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { createPayloadRenderPlugin } 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: { box: { details: DetailsBox } },\n name: 'Schema',\n})\n","import type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport type { 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":"
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Details.tsx"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { createPayloadRenderPlugin } 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: { box: { details: DetailsBox } },\n name: 'Schema',\n})\n","import type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { PayloadDetails } from '@xyo-network/react-payload-details'\nimport type { 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":";AAEA,SAAS,iCAAiC;AAC1C,SAAS,oBAAoB;;;ACF7B,SAAS,sBAAsB;AAKtB;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,EAAE,KAAK,EAAE,SAAS,WAAW,EAAE;AAAA,EAC3C,MAAM;AACR,CAAC;","names":[]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xyo-network/react-schema-plugin",
|
3
|
-
"version": "
|
3
|
+
"version": "7.0.1",
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
5
5
|
"keywords": [
|
6
6
|
"xyo",
|
@@ -38,29 +38,33 @@
|
|
38
38
|
},
|
39
39
|
"module": "dist/browser/index.mjs",
|
40
40
|
"types": "dist/browser/index.d.ts",
|
41
|
+
"files": [
|
42
|
+
"dist",
|
43
|
+
"src"
|
44
|
+
],
|
41
45
|
"dependencies": {
|
42
|
-
"@xylabs/react-flexbox": "
|
43
|
-
"@xyo-network/react-payload-details": "^
|
44
|
-
"@xyo-network/react-payload-plugin": "^
|
45
|
-
"@xyo-network/schema-payload-plugin": "
|
46
|
+
"@xylabs/react-flexbox": "~7.0.1",
|
47
|
+
"@xyo-network/react-payload-details": "^7.0.1",
|
48
|
+
"@xyo-network/react-payload-plugin": "^7.0.1",
|
49
|
+
"@xyo-network/schema-payload-plugin": "~5.0.5"
|
46
50
|
},
|
47
51
|
"devDependencies": {
|
48
|
-
"@emotion/react": "
|
49
|
-
"@emotion/styled": "
|
50
|
-
"@mui/icons-material": "
|
51
|
-
"@mui/material": "
|
52
|
-
"@types/react": "
|
53
|
-
"@xylabs/ts-scripts-yarn3": "
|
54
|
-
"@xyo-network/payload-model": "
|
55
|
-
"react": "
|
56
|
-
"react-dom": "
|
57
|
-
"typescript": "
|
52
|
+
"@emotion/react": "~11.14.0",
|
53
|
+
"@emotion/styled": "~11.14.1",
|
54
|
+
"@mui/icons-material": "~7.3.1",
|
55
|
+
"@mui/material": "~7.3.1",
|
56
|
+
"@types/react": "~19.1.10",
|
57
|
+
"@xylabs/ts-scripts-yarn3": "~7.1.1",
|
58
|
+
"@xyo-network/payload-model": "~5.0.5",
|
59
|
+
"react": "~19.1.1",
|
60
|
+
"react-dom": "~19.1.1",
|
61
|
+
"typescript": "~5.9.2"
|
58
62
|
},
|
59
63
|
"peerDependencies": {
|
60
64
|
"@mui/icons-material": ">=6 <8",
|
61
65
|
"@mui/material": ">=6 <8",
|
62
|
-
"react": "
|
63
|
-
"react-dom": "
|
66
|
+
"react": "~19",
|
67
|
+
"react-dom": "~19"
|
64
68
|
},
|
65
69
|
"publishConfig": {
|
66
70
|
"access": "public"
|
package/typedoc.json
DELETED