@xyo-network/react-schema-plugin 3.0.1 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ import type { FlexBoxProps } from '@xylabs/react-flexbox';
2
+ import type { PayloadRenderProps } from '@xyo-network/react-payload-plugin';
3
+ import React from 'react';
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,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,YAAY,CAElE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
+ export declare const SchemaRenderPlugin: PayloadRenderPlugin;
3
+ //# sourceMappingURL=Plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAM5E,eAAO,MAAM,kBAAkB,EAAE,mBAI/B,CAAA"}
@@ -1,5 +1,3 @@
1
- import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
2
-
3
- declare const SchemaRenderPlugin: PayloadRenderPlugin;
4
-
5
- export { SchemaRenderPlugin, SchemaRenderPlugin as default };
1
+ export * from './Plugin.ts';
2
+ export { SchemaRenderPlugin as default } from './Plugin.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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 +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
+ {"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"]}
package/package.json CHANGED
@@ -1,23 +1,63 @@
1
1
  {
2
2
  "name": "@xyo-network/react-schema-plugin",
3
+ "version": "3.0.3",
4
+ "description": "Common React library for all XYO projects that use React",
5
+ "keywords": [
6
+ "xyo",
7
+ "utility",
8
+ "typescript",
9
+ "react"
10
+ ],
11
+ "homepage": "https://xyo.network",
12
+ "bugs": {
13
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues",
14
+ "email": "support@xyo.network"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
19
+ },
20
+ "license": "LGPL-3.0-only",
3
21
  "author": {
4
- "email": "support@xyo.network",
5
22
  "name": "XYO Development Team",
23
+ "email": "support@xyo.network",
6
24
  "url": "https://xyo.network"
7
25
  },
8
- "bugs": {
9
- "email": "support@xyo.network",
10
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
26
+ "sideEffects": false,
27
+ "type": "module",
28
+ "exports": {
29
+ ".": {
30
+ "import": {
31
+ "types": "./dist/browser/index.d.ts",
32
+ "default": "./dist/browser/index.mjs"
33
+ },
34
+ "types": "./dist/browser/index.d.ts",
35
+ "default": "./dist/browser/index.mjs"
36
+ },
37
+ "./package.json": "./package.json"
38
+ },
39
+ "module": "dist/browser/index.mjs",
40
+ "types": "dist/browser/index.d.ts",
41
+ "scripts": {
42
+ "license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\"",
43
+ "lint-pkg": "npmPkgJsonLint ."
11
44
  },
12
45
  "dependencies": {
13
- "@xylabs/react-flexbox": "^4.0.1",
14
- "@xyo-network/payload-model": "^3.0.2",
15
- "@xyo-network/react-payload-details": "^3.0.1",
16
- "@xyo-network/react-payload-plugin": "^3.0.1",
17
- "@xyo-network/schema-payload-plugin": "^3.0.2"
46
+ "@xylabs/react-flexbox": "^4.0.3",
47
+ "@xyo-network/payload-model": "^3.0.15",
48
+ "@xyo-network/react-payload-details": "^3.0.3",
49
+ "@xyo-network/react-payload-plugin": "^3.0.3",
50
+ "@xyo-network/schema-payload-plugin": "^3.0.15"
18
51
  },
19
52
  "devDependencies": {
20
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
53
+ "@emotion/react": "^11.13.3",
54
+ "@emotion/styled": "^11.13.0",
55
+ "@mui/icons-material": "^5.16.7",
56
+ "@mui/material": "^5.16.7",
57
+ "@mui/styles": "^5.16.7",
58
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
59
+ "react": "^18.3.1",
60
+ "react-dom": "^18.3.1",
21
61
  "typescript": "^5.5.4"
22
62
  },
23
63
  "peerDependencies": {
@@ -29,41 +69,8 @@
29
69
  "react": "^18",
30
70
  "react-dom": "^18"
31
71
  },
32
- "description": "Common React library for all XYO projects that use React",
33
- "docs": "dist/docs.json",
34
- "exports": {
35
- ".": {
36
- "import": {
37
- "types": "./dist/browser/index.d.ts",
38
- "default": "./dist/browser/index.mjs"
39
- },
40
- "types": "./dist/browser/index.d.ts",
41
- "default": "./dist/browser/index.mjs"
42
- },
43
- "./package.json": "./package.json"
44
- },
45
- "module": "dist/browser/index.mjs",
46
- "homepage": "https://xyo.network",
47
- "keywords": [
48
- "xyo",
49
- "utility",
50
- "typescript",
51
- "react"
52
- ],
53
- "license": "LGPL-3.0-only",
54
72
  "publishConfig": {
55
73
  "access": "public"
56
74
  },
57
- "repository": {
58
- "type": "git",
59
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
60
- },
61
- "scripts": {
62
- "lint-pkg": "npmPkgJsonLint .",
63
- "license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\""
64
- },
65
- "sideEffects": false,
66
- "types": "dist/browser/index.d.ts",
67
- "version": "3.0.1",
68
- "type": "module"
75
+ "docs": "dist/docs.json"
69
76
  }
package/src/Details.tsx CHANGED
@@ -1,6 +1,6 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox'
1
+ import type { FlexBoxProps } from '@xylabs/react-flexbox'
2
2
  import { PayloadDetails } from '@xyo-network/react-payload-details'
3
- import { PayloadRenderProps } from '@xyo-network/react-payload-plugin'
3
+ import type { PayloadRenderProps } from '@xyo-network/react-payload-plugin'
4
4
  import React from 'react'
5
5
 
6
6
  export const DetailsBox: React.FC<PayloadRenderProps & FlexBoxProps> = (props) => {
package/src/Plugin.ts CHANGED
@@ -1,15 +1,12 @@
1
- import { Payload } from '@xyo-network/payload-model'
2
- import { createPayloadRenderPlugin, PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
1
+ import type { Payload } from '@xyo-network/payload-model'
2
+ import type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
3
+ import { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
3
4
  import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
4
5
 
5
6
  import { DetailsBox } from './Details.tsx'
6
7
 
7
8
  export const SchemaRenderPlugin: PayloadRenderPlugin = createPayloadRenderPlugin({
8
9
  canRender: (payload?: Payload) => payload?.schema === SchemaSchema,
9
- components: {
10
- box: {
11
- details: DetailsBox,
12
- },
13
- },
10
+ components: { box: { details: DetailsBox } },
14
11
  name: 'Schema',
15
12
  })
package/xy.config.ts CHANGED
@@ -1,9 +1,7 @@
1
- import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
1
+ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
- browser: {
5
- src: true,
6
- },
4
+ browser: { src: true },
7
5
  node: {},
8
6
  neutral: {},
9
7
  },