@xyo-network/react-chain 1.1.0 → 1.1.2

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.
Files changed (2) hide show
  1. package/package.json +10 -26
  2. 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.1.0",
4
+ "version": "1.1.2",
5
5
  "description": "XYO Layer One React SDK",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -33,47 +33,31 @@
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.1.0",
42
- "@xyo-network/react-chain-blockies": "^1.1.0",
43
- "@xyo-network/react-chain-network": "^1.1.0",
44
- "@xyo-network/react-chain-shared": "^1.1.0",
45
- "@xyo-network/react-chain-stake": "^1.1.0"
37
+ "@xyo-network/react-chain-blockchain": "^1.1.2",
38
+ "@xyo-network/react-chain-blockies": "^1.1.2",
39
+ "@xyo-network/react-chain-network": "^1.1.2",
40
+ "@xyo-network/react-chain-shared": "^1.1.2",
41
+ "@xyo-network/react-chain-stake": "^1.1.2"
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
46
  "@mui/material": "^7.0.1",
52
- "@storybook/addon-essentials": "^8.6.11",
53
- "@storybook/addon-interactions": "^8.6.11",
54
- "@storybook/react": "^8.6.11",
55
- "@storybook/react-vite": "^8.6.11",
56
- "@storybook/test": "^8.6.11",
57
47
  "@types/react": "^19.1.0",
58
- "@xylabs/react-invertible-theme": "^6.1.2",
59
- "@xylabs/react-theme": "^6.1.2",
60
48
  "@xylabs/ts-scripts-yarn3": "^6.2.1",
61
49
  "@xylabs/tsconfig-react": "^6.2.1",
62
- "dotenv": "^16.4.7",
63
50
  "ethers": "6.13.6",
64
51
  "react": "^19.1.0",
65
52
  "react-dom": "^19.1.0",
66
- "react-router-dom": "^7.4.1",
67
- "storybook": "^8.6.11",
68
- "typescript": "^5.8.2",
69
- "vite": "^6.2.4",
70
- "vite-plugin-top-level-await": "^1.5.0"
53
+ "react-router-dom": "^7.5.0",
54
+ "typescript": "^5.8.3"
71
55
  },
72
56
  "peerDependencies": {
73
57
  "@emotion/react": "^11",
74
58
  "@emotion/styled": "^11",
75
- "@mui/icons-material": "^7",
76
- "@mui/material": "^7",
59
+ "@mui/icons-material": ">=6 <=7",
60
+ "@mui/material": ">=6 <=7",
77
61
  "ethers": "^6",
78
62
  "react": "^19",
79
63
  "react-dom": "^19"
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
- })