feat: add JsonTreeViewer component and refactor AgentRunLogDetailDialog to use it for JSON display

This commit is contained in:
mlogclub
2026-04-15 16:48:15 +08:00
parent 3749c533fb
commit 3742140ecc
4 changed files with 119 additions and 18 deletions
+16
View File
@@ -47,6 +47,9 @@ importers:
'@tiptap/starter-kit':
specifier: ^3.20.2
version: 3.20.2
'@uiw/react-json-view':
specifier: 2.0.0-alpha.41
version: 2.0.0-alpha.41(@babel/runtime@7.28.6)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -1564,6 +1567,13 @@ packages:
resolution: {integrity: sha512-zm6xx8UT/Xy2oSr2ZXD0pZo7Jx2XsCoID2IUh9YSTFRu7z+WdwYTRk6LhUftm1crwqbuoF6I8zAFeCMw0YjwDg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@uiw/react-json-view@2.0.0-alpha.41':
resolution: {integrity: sha512-botRpQ5AgymYEsqXSdT2/1LefAJEYfMntvdnx1SqhTQCTW9HygeFZXx9inkYqUmiQZ3+0QlZnodjBvwnUfZhVA==}
peerDependencies:
'@babel/runtime': '>=7.10.0'
react: '>=18.0.0'
react-dom: '>=18.0.0'
'@unrs/resolver-binding-android-arm-eabi@1.11.1':
resolution: {integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==}
cpu: [arm]
@@ -5726,6 +5736,12 @@ snapshots:
'@typescript-eslint/types': 8.57.0
eslint-visitor-keys: 5.0.1
'@uiw/react-json-view@2.0.0-alpha.41(@babel/runtime@7.28.6)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
dependencies:
'@babel/runtime': 7.28.6
react: 19.2.3
react-dom: 19.2.3(react@19.2.3)
'@unrs/resolver-binding-android-arm-eabi@1.11.1':
optional: true