@xyo-network/react-schema-plugin 3.0.0 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: {\n box: {\n details: DetailsBox,\n },\n },\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;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
@@ -7,17 +7,17 @@
7
7
  },
8
8
  "bugs": {
9
9
  "email": "support@xyo.network",
10
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
10
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/react-flexbox": "^4.0.0",
14
- "@xyo-network/payload-model": "^3.0.1",
15
- "@xyo-network/react-payload-details": "^3.0.0",
16
- "@xyo-network/react-payload-plugin": "^3.0.0",
17
- "@xyo-network/schema-payload-plugin": "^3.0.1"
13
+ "@xylabs/react-flexbox": "^4.0.3",
14
+ "@xyo-network/payload-model": "^3.0.3",
15
+ "@xyo-network/react-payload-details": "^3.0.2",
16
+ "@xyo-network/react-payload-plugin": "^3.0.2",
17
+ "@xyo-network/schema-payload-plugin": "^3.0.3"
18
18
  },
19
19
  "devDependencies": {
20
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
20
+ "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
21
21
  "typescript": "^5.5.4"
22
22
  },
23
23
  "peerDependencies": {
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "repository": {
58
58
  "type": "git",
59
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
59
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
60
60
  },
61
61
  "scripts": {
62
62
  "lint-pkg": "npmPkgJsonLint .",
@@ -64,6 +64,6 @@
64
64
  },
65
65
  "sideEffects": false,
66
66
  "types": "dist/browser/index.d.ts",
67
- "version": "3.0.0",
67
+ "version": "3.0.2",
68
68
  "type": "module"
69
69
  }
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,5 +1,6 @@
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'
package/xy.config.ts CHANGED
@@ -1,4 +1,4 @@
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
4
  browser: {