diff --git a/packages/@sanity/vision/package.json b/packages/@sanity/vision/package.json index ec3d7241815..0514e29ae79 100644 --- a/packages/@sanity/vision/package.json +++ b/packages/@sanity/vision/package.json @@ -59,7 +59,7 @@ "@codemirror/view": "^6.1.1", "@juggle/resize-observer": "^3.3.1", "@lezer/highlight": "^1.0.0", - "@rexxars/react-json-inspector": "^8.0.1", + "@rexxars/react-json-inspector": "^9.0.1", "@rexxars/react-split-pane": "^0.1.93", "@sanity/color": "^3.0.0", "@sanity/icons": "^3.5.2", diff --git a/packages/@sanity/vision/src/components/ResultView.tsx b/packages/@sanity/vision/src/components/ResultView.tsx index b6a1e4913ed..48d76d9ac71 100644 --- a/packages/@sanity/vision/src/components/ResultView.tsx +++ b/packages/@sanity/vision/src/components/ResultView.tsx @@ -1,4 +1,4 @@ -import JSONInspector from '@rexxars/react-json-inspector' +import {JsonInspector} from '@rexxars/react-json-inspector' import {LinkIcon} from '@sanity/icons' import {Code} from '@sanity/ui' import LRU from 'quick-lru' @@ -16,7 +16,7 @@ export function ResultView(props: {data: unknown; datasetName: string}): JSX.Ele if (isRecord(data) || Array.isArray(data)) { return ( - {viewMode === VIEW_MODE_PARSED && ( - =12.0.0'} - '@rexxars/react-json-inspector@8.0.1': - resolution: {integrity: sha512-XAsgQwqG8fbDGpWnsvOesRMgPfvwuU7Cx3/cUf/fNIRmGP8lj2YYIf5La/4ayvZLWlSw4tTb4BPCKdmK9D8RuQ==} + '@rexxars/react-json-inspector@9.0.1': + resolution: {integrity: sha512-4uZ4RnrVoOGOShIKKcPoF+qhwDCZJsPPqyoEoW/8HRdzNknN9Q2yhlbEgTX1lMZunF1fv7iHzAs+n1vgIgfg/g==} peerDependencies: - react: ^15 || ^16 || ^17 || ^18 + react: ^18 || ^19 '@rexxars/react-split-pane@0.1.93': resolution: {integrity: sha512-Pok8zATwd5ZpWnccJeSA/JM2MPmi3D04duYtrbMNRgzeAU2ANtq3r4w7ldbjpGyfJqggqn0wDNjRqaevXqSxQg==} @@ -6219,9 +6219,6 @@ packages: resolution: {integrity: sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==} engines: {node: '>= 14'} - create-react-class@15.7.0: - resolution: {integrity: sha512-QZv4sFWG9S5RUvkTYWbflxeZX+JG7Cz0Tn33rQBJ+WFQTqTfUTjMjiv9tnfXazjsO5r0KhPs+AqCjyrQX6h2ng==} - create-require@1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} @@ -14070,9 +14067,8 @@ snapshots: dependencies: ini: 1.3.8 - '@rexxars/react-json-inspector@8.0.1(react@18.3.1)': + '@rexxars/react-json-inspector@9.0.1(react@18.3.1)': dependencies: - create-react-class: 15.7.0 debounce: 1.0.0 md5-o-matic: 0.1.1 react: 18.3.1 @@ -16932,11 +16928,6 @@ snapshots: crc-32: 1.2.2 readable-stream: 4.5.2 - create-react-class@15.7.0: - dependencies: - loose-envify: 1.4.0 - object-assign: 4.1.1 - create-require@1.1.1: {} crelt@1.0.6: {}