@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.
@@ -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 React from "react";
11
- var DetailsBox = /* @__PURE__ */ __name((props) => {
12
- return /* @__PURE__ */ React.createElement(PayloadDetails, props);
13
- }, "DetailsBox");
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: /* @__PURE__ */ __name((payload) => payload?.schema === SchemaSchema, "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":";;;;AAEA,SAASA,iCAAiC;AAC1C,SAASC,oBAAoB;;;ACF7B,SAASC,sBAAsB;AAE/B,OAAOC,WAAW;AAEX,IAAMC,aAA0D,wBAACC,UAAAA;AACtE,SAAO,sBAAA,cAACC,gBAAmBD,KAAAA;AAC7B,GAFuE;;;ADEhE,IAAME,qBAA0CC,0BAA0B;EAC/EC,WAAW,wBAACC,YAAsBA,SAASC,WAAWC,cAA3C;EACXC,YAAY;IAAEC,KAAK;MAAEC,SAASC;IAAW;EAAE;EAC3CC,MAAM;AACR,CAAA;","names":["createPayloadRenderPlugin","SchemaSchema","PayloadDetails","React","DetailsBox","props","PayloadDetails","SchemaRenderPlugin","createPayloadRenderPlugin","canRender","payload","schema","SchemaSchema","components","box","details","DetailsBox","name"]}
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": "6.2.0",
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": "^6.4.0",
43
- "@xyo-network/react-payload-details": "^6.2.0",
44
- "@xyo-network/react-payload-plugin": "^6.2.0",
45
- "@xyo-network/schema-payload-plugin": "^4.3.0"
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": "^11.14.0",
49
- "@emotion/styled": "^11.14.1",
50
- "@mui/icons-material": "^7.2.0",
51
- "@mui/material": "^7.2.0",
52
- "@types/react": "^19.1.8",
53
- "@xylabs/ts-scripts-yarn3": "^7.0.1",
54
- "@xyo-network/payload-model": "^4.3.0",
55
- "react": "^19.1.1",
56
- "react-dom": "^19.1.1",
57
- "typescript": "^5.8.3"
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": "^19",
63
- "react-dom": "^19"
66
+ "react": "~19",
67
+ "react-dom": "~19"
64
68
  },
65
69
  "publishConfig": {
66
70
  "access": "public"
package/typedoc.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "$schema": "https://typedoc.org/schema.json",
3
- "entryPoints": ["src/index.ts"],
4
- "tsconfig": "./tsconfig.typedoc.json"
5
- }
package/xy.config.ts DELETED
@@ -1,10 +0,0 @@
1
- import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
- const config: XyTsupConfig = {
3
- compile: {
4
- browser: { src: true },
5
- node: {},
6
- neutral: {},
7
- },
8
- }
9
-
10
- export default config