@xyo-network/react-chain 1.0.13 → 1.1.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/package.json +19 -44
- package/eslint.config.mjs +0 -9
- package/vite.config.ts +0 -29
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/react-chain",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"description": "XYO Layer One React SDK",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -33,64 +33,39 @@
|
|
|
33
33
|
},
|
|
34
34
|
"module": "dist/browser/index.mjs",
|
|
35
35
|
"types": "dist/types/index.d.ts",
|
|
36
|
-
"scripts": {
|
|
37
|
-
"build-storybook": "storybook build",
|
|
38
|
-
"start": "storybook dev -p 6006"
|
|
39
|
-
},
|
|
40
36
|
"dependencies": {
|
|
41
|
-
"@xyo-network/react-chain-blockchain": "^1.
|
|
42
|
-
"@xyo-network/react-chain-blockies": "^1.
|
|
43
|
-
"@xyo-network/react-chain-network": "^1.
|
|
44
|
-
"@xyo-network/react-chain-shared": "^1.
|
|
45
|
-
"@xyo-network/react-chain-stake": "^1.
|
|
37
|
+
"@xyo-network/react-chain-blockchain": "^1.1.1",
|
|
38
|
+
"@xyo-network/react-chain-blockies": "^1.1.1",
|
|
39
|
+
"@xyo-network/react-chain-network": "^1.1.1",
|
|
40
|
+
"@xyo-network/react-chain-shared": "^1.1.1",
|
|
41
|
+
"@xyo-network/react-chain-stake": "^1.1.1"
|
|
46
42
|
},
|
|
47
43
|
"devDependencies": {
|
|
48
|
-
"@chromatic-com/storybook": "^3.2.6",
|
|
49
44
|
"@emotion/react": "^11.14.0",
|
|
50
45
|
"@emotion/styled": "^11.14.0",
|
|
51
|
-
"@mui/
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@storybook/addon-interactions": "^8.6.10",
|
|
56
|
-
"@storybook/addon-links": "^8.6.10",
|
|
57
|
-
"@storybook/blocks": "^8.6.10",
|
|
58
|
-
"@storybook/components": "^8.6.10",
|
|
59
|
-
"@storybook/core-events": "^8.6.10",
|
|
60
|
-
"@storybook/react": "^8.6.10",
|
|
61
|
-
"@storybook/react-vite": "^8.6.10",
|
|
62
|
-
"@storybook/test": "^8.6.10",
|
|
63
|
-
"@storybook/theming": "^8.6.10",
|
|
64
|
-
"@types/react": "^19.0.12",
|
|
65
|
-
"@xylabs/react-invertible-theme": "^6.0.9",
|
|
66
|
-
"@xylabs/react-theme": "^6.0.9",
|
|
67
|
-
"@xylabs/ts-scripts-yarn3": "^6.1.11",
|
|
68
|
-
"@xylabs/tsconfig-react": "^6.1.11",
|
|
69
|
-
"dotenv": "^16.4.7",
|
|
70
|
-
"eslint": "^9.23.0",
|
|
46
|
+
"@mui/material": "^7.0.1",
|
|
47
|
+
"@types/react": "^19.1.0",
|
|
48
|
+
"@xylabs/ts-scripts-yarn3": "^6.2.1",
|
|
49
|
+
"@xylabs/tsconfig-react": "^6.2.1",
|
|
71
50
|
"ethers": "6.13.6",
|
|
72
|
-
"react": "^19.
|
|
73
|
-
"react-dom": "^19.
|
|
74
|
-
"react-router-dom": "^7.
|
|
75
|
-
"
|
|
76
|
-
"typescript": "^5.8.2",
|
|
77
|
-
"vite": "^6.2.3",
|
|
78
|
-
"vite-plugin-top-level-await": "^1.5.0"
|
|
51
|
+
"react": "^19.1.0",
|
|
52
|
+
"react-dom": "^19.1.0",
|
|
53
|
+
"react-router-dom": "^7.5.0",
|
|
54
|
+
"typescript": "^5.8.3"
|
|
79
55
|
},
|
|
80
56
|
"peerDependencies": {
|
|
81
57
|
"@emotion/react": "^11",
|
|
82
58
|
"@emotion/styled": "^11",
|
|
83
|
-
"@mui/icons-material": "
|
|
84
|
-
"@mui/material": "
|
|
85
|
-
"@mui/styles": "^6",
|
|
59
|
+
"@mui/icons-material": ">=6 <=7",
|
|
60
|
+
"@mui/material": ">=6 <=7",
|
|
86
61
|
"ethers": "^6",
|
|
87
62
|
"react": "^19",
|
|
88
63
|
"react-dom": "^19"
|
|
89
64
|
},
|
|
90
|
-
"
|
|
91
|
-
"node": "22.3
|
|
92
|
-
"yarn": "4.6.0"
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=22.3 <23"
|
|
93
67
|
},
|
|
68
|
+
"engineStrict": true,
|
|
94
69
|
"publishConfig": {
|
|
95
70
|
"access": "restricted"
|
|
96
71
|
},
|
package/eslint.config.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import config from '../../eslint.config.mjs'
|
|
2
|
-
|
|
3
|
-
import { reactConfig } from '@xylabs/eslint-config-react-flat'
|
|
4
|
-
|
|
5
|
-
export default [
|
|
6
|
-
{ ignores: ['.yarn', '**/dist', '**/build', '**/public', '**/storybook-static', 'eslint.config.mjs', '**/.storybook', 'scripts'] },
|
|
7
|
-
...config,
|
|
8
|
-
reactConfig
|
|
9
|
-
]
|
package/vite.config.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { config } from 'dotenv'
|
|
2
|
-
import { defineConfig } from 'vite'
|
|
3
|
-
import topLevelAwait from 'vite-plugin-top-level-await'
|
|
4
|
-
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
-
const TopLevelAwaitPlugin = topLevelAwait as any
|
|
7
|
-
|
|
8
|
-
config()
|
|
9
|
-
|
|
10
|
-
const parsedPort = Number.parseInt(process.env.PORT ?? '')
|
|
11
|
-
const port = Number.isNaN(parsedPort) ? 3000 : parsedPort
|
|
12
|
-
|
|
13
|
-
// https://vitejs.dev/config/
|
|
14
|
-
export default defineConfig({
|
|
15
|
-
base: '/',
|
|
16
|
-
// @bitauth/libauth does not have top level awaits that SB does not like
|
|
17
|
-
optimizeDeps: { exclude: ['@bitauth/libauth'] },
|
|
18
|
-
plugins: [{
|
|
19
|
-
...TopLevelAwaitPlugin({
|
|
20
|
-
// The export name of top-level await promise for each chunk module
|
|
21
|
-
promiseExportName: '__tla',
|
|
22
|
-
// The function to generate import names of top-level await promise in each chunk module
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
-
promiseImportName: (i: any) => `__tla_${i}`,
|
|
25
|
-
}),
|
|
26
|
-
apply: 'serve',
|
|
27
|
-
}],
|
|
28
|
-
server: { port },
|
|
29
|
-
})
|