Skip to content

Commit

Permalink
fix(deps): upgrade react-json-inspector (#8017)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored Dec 14, 2024
1 parent 27b0e84 commit cf7afaf
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
2 changes: 1 addition & 1 deletion packages/@sanity/vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/@sanity/vision/src/components/ResultView.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -16,7 +16,7 @@ export function ResultView(props: {data: unknown; datasetName: string}): JSX.Ele
if (isRecord(data) || Array.isArray(data)) {
return (
<ResultViewWrapper>
<JSONInspector
<JsonInspector
data={data}
search={false}
isExpanded={isExpanded}
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"@juggle/resize-observer": "^3.3.1",
"@portabletext/editor": "^1.15.3",
"@portabletext/react": "^3.0.0",
"@rexxars/react-json-inspector": "^8.0.1",
"@rexxars/react-json-inspector": "^9.0.1",
"@sanity/asset-utils": "^2.0.6",
"@sanity/bifur-client": "^0.4.1",
"@sanity/block-tools": "3.67.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import JSONInspector from '@rexxars/react-json-inspector'
import {JsonInspector} from '@rexxars/react-json-inspector'
import {type SanityDocument} from '@sanity/types'
import {Card, Code, Flex, TabList, TabPanel} from '@sanity/ui'
import {useCallback} from 'react'
Expand Down Expand Up @@ -106,7 +106,7 @@ export function InspectDialog(props: InspectDialogProps) {
>
{viewMode === VIEW_MODE_PARSED && (
<JSONInspectorWrapper>
<JSONInspector
<JsonInspector
data={value}
isExpanded={isExpanded}
onClick={toggleExpanded}
Expand Down
25 changes: 8 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf7afaf

Please sign in to comment.