diff --git a/packages/@sanity/vision/package.json b/packages/@sanity/vision/package.json index 065567a9f36..10ba212011f 100644 --- a/packages/@sanity/vision/package.json +++ b/packages/@sanity/vision/package.json @@ -60,7 +60,7 @@ "@juggle/resize-observer": "^3.3.1", "@lezer/highlight": "^1.0.0", "@rexxars/react-json-inspector": "^9.0.1", - "@rexxars/react-split-pane": "^0.1.93", + "@rexxars/react-split-pane": "^1.0.0", "@sanity/color": "^3.0.0", "@sanity/icons": "^3.5.3", "@sanity/ui": "^2.10.10", diff --git a/packages/@sanity/vision/src/components/VisionGui.tsx b/packages/@sanity/vision/src/components/VisionGui.tsx index 985baa4437d..c26e5c885b3 100644 --- a/packages/@sanity/vision/src/components/VisionGui.tsx +++ b/packages/@sanity/vision/src/components/VisionGui.tsx @@ -1,5 +1,5 @@ /* eslint-disable complexity */ -import SplitPane from '@rexxars/react-split-pane' +import {SplitPane} from '@rexxars/react-split-pane' import {type ListenEvent, type MutationEvent, type SanityClient} from '@sanity/client' import {CopyIcon, ErrorOutlineIcon, PlayIcon, StopIcon} from '@sanity/icons' import { @@ -809,7 +809,6 @@ export class VisionGui extends PureComponent { - {/* @ts-expect-error: https://github.com/tomkp/react-split-pane/pull/819 */} { - Disables resize if the container height is less then 500px This should ensure that we mostly avoid a pane to take up all the room, and for the controls to not be eaten up by the pane */} - {/* @ts-expect-error: https://github.com/tomkp/react-split-pane/pull/819 */} =16.8.2' react-dom: '>=16.8.2' - react-style-proptype@3.2.2: - resolution: {integrity: sha512-ywYLSjNkxKHiZOqNlso9PZByNEY+FTyh3C+7uuziK0xFXu9xzdyfHwg4S9iyiRRoPCR4k2LqaBBsWVmSBwCWYQ==} - react-transition-group@4.4.5: resolution: {integrity: sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==} peerDependencies: @@ -14990,13 +14984,10 @@ snapshots: md5-o-matic: 0.1.1 react: 18.3.1 - '@rexxars/react-split-pane@0.1.93(react-dom@19.0.0-rc-f994737d14-20240522(react@18.3.1))(react@18.3.1)': + '@rexxars/react-split-pane@1.0.0(react-dom@19.0.0-rc-f994737d14-20240522(react@18.3.1))(react@18.3.1)': dependencies: - prop-types: 15.8.1 react: 18.3.1 react-dom: 19.0.0-rc-f994737d14-20240522(react@18.3.1) - react-lifecycles-compat: 3.0.4 - react-style-proptype: 3.2.2 '@rollup/plugin-alias@5.1.1(rollup@4.28.1)': optionalDependencies: @@ -22380,8 +22371,6 @@ snapshots: react-is@19.0.0-rc.1: {} - react-lifecycles-compat@3.0.4: {} - react-redux@7.2.9(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.26.0 @@ -22450,10 +22439,6 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - react-style-proptype@3.2.2: - dependencies: - prop-types: 15.8.1 - react-transition-group@4.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.26.0