Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

Feat: clickable urls in json view (#487)

Marc Klingen65d290642609
diff --git a/package-lock.json b/package-lock.json
index b018f31cc5..dc765c7f78 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -71,7 +71,7 @@
"react-hook-form": "^7.47.0",
"react-icons": "^4.11.0",
"react-responsive": "^9.0.2",
- "react18-json-view": "^0.2.6",
+ "react18-json-view": "^0.2.7-canary.1",
"superagent": "^8.1.2",
"superjson": "2.0.0",
"tailwind-merge": "^1.14.0",
@@ -11192,9 +11192,9 @@
}
},
"node_modules/react18-json-view": {
- "version": "0.2.6",
- "resolved": "https://registry.npmjs.org/react18-json-view/-/react18-json-view-0.2.6.tgz",
- "integrity": "sha512-RHAY880UwC7SClyQBoij50q2InpSrj5zmP2DCL73vEaaVTyj/QbMPBk4FRKMQ7LF8FSxhh+VI6mK3AhlBaCBxw==",
+ "version": "0.2.7-canary.1",
+ "resolved": "https://registry.npmjs.org/react18-json-view/-/react18-json-view-0.2.7-canary.1.tgz",
+ "integrity": "sha512-f9XJZLrq7mmhU3G7TrK8DN25PmE+dGK5dh9E4WrNgXPEC8u9QCnp3okxt+m6Yf8qFBPnpV0Rsg4ScgQuPWcALw==",
"peerDependencies": {
"react": ">=16.8.0"
}
diff --git a/package.json b/package.json
index 362affea21..d9d008e0ed 100644
--- a/package.json
+++ b/package.json
@@ -84,7 +84,7 @@
"react-hook-form": "^7.47.0",
"react-icons": "^4.11.0",
"react-responsive": "^9.0.2",
- "react18-json-view": "^0.2.6",
+ "react18-json-view": "^0.2.7-canary.1",
"superagent": "^8.1.2",
"superjson": "2.0.0",
"tailwind-merge": "^1.14.0",
diff --git a/src/components/ui/code.tsx b/src/components/ui/code.tsx
index 6e62c6531a..a40b4c84ed 100644
--- a/src/components/ui/code.tsx
+++ b/src/components/ui/code.tsx
@@ -42,6 +42,7 @@ export function JSONView(props: {
collapseObjectsAfterLength={20}
collapseStringsAfterLength={500}
displaySize={"collapsed"}
+ matchesURL={true}
/>
)}
</div>