From 8b9feb539fda8e3994003d3076e9f780e56cc408 Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Fri, 13 Dec 2024 16:32:32 -0800 Subject: [PATCH] fix(vision): upgrade react-split-pane to v1.0.0 --- packages/@sanity/vision/package.json | 2 +- .../vision/src/components/VisionGui.tsx | 6 ++-- pnpm-lock.yaml | 29 +++++-------------- 3 files changed, 10 insertions(+), 27 deletions(-) diff --git a/packages/@sanity/vision/package.json b/packages/@sanity/vision/package.json index 3189db8d3cc..1477210b957 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": "^8.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.2", "@sanity/ui": "^2.10.9", 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: @@ -14187,13 +14181,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: @@ -21333,8 +21324,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 @@ -21395,10 +21384,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