@xyo-network/react-chain-blockchain 1.20.5 → 1.20.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/react-chain-blockchain",
4
- "version": "1.20.5",
4
+ "version": "1.20.9",
5
5
  "description": "XYO Layer One React SDK Blockchain",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -47,7 +47,6 @@
47
47
  "package-cycle": "echo Nothing to do"
48
48
  },
49
49
  "dependencies": {
50
- "@storybook/react-vite": "^10.2.17",
51
50
  "@xylabs/react-animation": "~7.1.17",
52
51
  "@xylabs/react-error": "~7.1.17",
53
52
  "@xylabs/react-flexbox": "~7.1.17",
@@ -55,51 +54,51 @@
55
54
  "@xylabs/react-quick-tip-button": "~7.1.17",
56
55
  "@xylabs/react-shared": "~7.1.17",
57
56
  "@xylabs/react-theme": "~7.1.17",
58
- "@xylabs/sdk-js": "~5.0.83",
59
- "@xyo-network/boundwitness-model": "~5.3.15",
60
- "@xyo-network/chain-analyze": "~1.20.5",
61
- "@xyo-network/chain-protocol": "~1.20.5",
62
- "@xyo-network/chain-wrappers": "~1.20.5",
57
+ "@xylabs/sdk-js": "~5.0.87",
58
+ "@xyo-network/boundwitness-model": "~5.3.16",
59
+ "@xyo-network/chain-analyze": "~1.20.9",
60
+ "@xyo-network/chain-protocol": "~1.20.9",
61
+ "@xyo-network/chain-wrappers": "~1.20.9",
63
62
  "@xyo-network/react-boundwitness-plugin": "~7.5.5",
64
- "@xyo-network/react-chain-blockies": "~1.20.5",
65
- "@xyo-network/react-chain-provider": "~1.20.5",
66
- "@xyo-network/react-chain-shared": "~1.20.5",
63
+ "@xyo-network/react-chain-blockies": "~1.20.9",
64
+ "@xyo-network/react-chain-provider": "~1.20.9",
65
+ "@xyo-network/react-chain-shared": "~1.20.9",
67
66
  "@xyo-network/react-error": "~7.5.5",
68
67
  "@xyo-network/react-event": "~7.5.5",
69
68
  "@xyo-network/react-payload-raw-info": "~7.5.5",
70
69
  "@xyo-network/react-payload-table": "~7.5.5",
71
70
  "@xyo-network/react-shared": "~7.5.5",
72
71
  "@xyo-network/react-table": "~7.5.5",
73
- "@xyo-network/sdk-js": "~5.3.15",
74
- "@xyo-network/xl1-sdk": "~1.25.22"
72
+ "@xyo-network/sdk-js": "~5.3.16",
73
+ "@xyo-network/xl1-sdk": "~1.26.4"
75
74
  },
76
75
  "devDependencies": {
77
76
  "@emotion/react": "~11.14.0",
78
77
  "@emotion/styled": "~11.14.1",
79
78
  "@mui/icons-material": "~7.3.9",
80
79
  "@mui/material": "~7.3.9",
80
+ "@storybook/react-vite": "^10.3.3",
81
81
  "@textea/json-viewer": "~4.0.1",
82
82
  "@types/react": "~19.2.14",
83
83
  "@xylabs/react-button": "~7.1.17",
84
- "@xylabs/sdk-js": "~5.0.83",
85
- "@xylabs/ts-scripts-yarn3": "~7.4.13",
86
- "@xylabs/tsconfig": "~7.4.13",
87
- "@xylabs/tsconfig-dom": "~7.4.13",
88
- "@xylabs/tsconfig-react": "~7.4.13",
89
- "@xyo-network/bridge-http": "~5.3.15",
90
- "@xyo-network/react-chain-network": "~1.20.5",
91
- "@xyo-network/sdk-js": "~5.3.15",
92
- "@xyo-network/xl1-sdk": "~1.25.22",
84
+ "@xylabs/sdk-js": "~5.0.87",
85
+ "@xylabs/ts-scripts-yarn3": "~7.4.28",
86
+ "@xylabs/tsconfig": "~7.4.28",
87
+ "@xylabs/tsconfig-dom": "~7.4.28",
88
+ "@xylabs/tsconfig-react": "~7.4.28",
89
+ "@xyo-network/bridge-http": "~5.3.16",
90
+ "@xyo-network/react-chain-network": "~1.20.9",
91
+ "@xyo-network/sdk-js": "~5.3.16",
92
+ "@xyo-network/xl1-sdk": "~1.26.4",
93
93
  "axios": "^1.13.6",
94
- "eslint": "^9.39.4",
95
94
  "ethers": "^6.16.0",
96
95
  "react": "~19.2.4",
97
96
  "react-dom": "~19.2.4",
98
- "react-router-dom": "^7.13.1",
99
- "rollbar": "^3.0.0",
100
- "storybook": "^10.2.17",
97
+ "react-router-dom": "^7.13.2",
98
+ "rollbar": "^3.1.0",
99
+ "storybook": "^10.3.3",
101
100
  "typescript": "~5.9.3",
102
- "vite": "^7.3.1",
101
+ "vite": "^8.0.2",
103
102
  "zod": "^4.3.6"
104
103
  },
105
104
  "peerDependencies": {
@@ -29,14 +29,22 @@ export const XyoAddressTextField: React.FC<XyoAddressTextFieldProps> = ({
29
29
 
30
30
  const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
31
31
  const { value } = event.target
32
+ // allow the parent component to also respond to the change if they need to
32
33
  onChange?.(event)
33
34
 
35
+ // validate the address and call onAddressChanged if it's valid
34
36
  const xyoAddress = asAddress(value)
35
37
  if (isAddress(xyoAddress)) {
36
38
  onAddressChanged?.(xyoAddress)
39
+ setAddressError(undefined)
40
+ } else if (value === '') {
41
+ // if the input is empty, we clear the error but don't call onAddressChanged because there's no address
42
+ setAddressError(undefined)
43
+ } else {
44
+ // if the address is invalid, we set an error and call onAddressChanged with undefined to clear any previously set address
45
+ setAddressError(new Error('Invalid address'))
37
46
  }
38
47
 
39
- setAddressError(undefined)
40
48
  setAddress(value)
41
49
  }
42
50