Commit 35acd9d
authored
chore: replace react-json-view with @microlink/react-json-view (solana-foundation#939)
## Description
- Replace unmaintained `react-json-view` (1.21.3) with the actively
maintained `@microlink/react-json-view` (1.31.15) fork
- Remove custom type declaration file (`app/types/react-json-view.d.ts`)
since the fork ships its own types
- Update imports in `JsonViewer.tsx` and `IdlRenderer.tsx`
## Type of change
<!-- Check the appropriate options that apply to this PR -->
- [x] Other (please describe): chore
## Screenshots
No changes expected, an
[example](http://localhost:3000/address/AXcxp15oz1L4YYtqZo6Qt6EkUj1jtLR6wXYqaJvn4oye/idl?cluster=devnet)
<img width="1198" height="830"
alt="localhost_3000_address_AXcxp15oz1L4YYtqZo6Qt6EkUj1jtLR6wXYqaJvn4oye_idl_cluster=devnet"
src="https://github.com/user-attachments/assets/4c17556d-34c7-44bc-abb3-c797a0c55c8d"
/>
## Testing
Verify json views:
-
https://explorer-git-fork-hoodieshq-chore-repl-bb17ef-solana-foundation.vercel.app/address/AXcxp15oz1L4YYtqZo6Qt6EkUj1jtLR6wXYqaJvn4oye/idl?cluster=devnet
## Related Issues
Closes
[HOO-414](https://linear.app/solana-fndn/issue/HOO-414/use-json-viewer-library-compatible-with-react19)
## Checklist
<!-- Verify that you have completed the following before requesting
review -->
- [x] My code follows the project's style guidelines
- [x] I have added tests that prove my fix/feature works
- [x] All tests pass locally and in CI
- [x] I have updated documentation as needed
- [x] I have run `build:info` script to update build information
- [x] CI/CD checks pass
- [x] I have included screenshots for protocol screens (if applicable)1 parent 63dd492 commit 35acd9d
6 files changed
Lines changed: 119 additions & 157 deletions
File tree
- app
- components/common
- features/idl/ui
- types
- bench
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments