From 6bf35f8f73578e2b8004677693fe8a4ff1f0abf7 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 1 Mar 2023 12:59:12 +0800 Subject: [PATCH] ui: add patch for react-split-pane --- .../react-split-pane-npm-0.1.92-93dbf51dff.patch | 12 ++++++++++++ package.json | 3 ++- packages/ui-default/typed.d.ts | 8 ++++---- 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 .yarn/patches/react-split-pane-npm-0.1.92-93dbf51dff.patch diff --git a/.yarn/patches/react-split-pane-npm-0.1.92-93dbf51dff.patch b/.yarn/patches/react-split-pane-npm-0.1.92-93dbf51dff.patch new file mode 100644 index 00000000..7b537aea --- /dev/null +++ b/.yarn/patches/react-split-pane-npm-0.1.92-93dbf51dff.patch @@ -0,0 +1,12 @@ +diff --git a/index.d.ts b/index.d.ts +index d116f54d6da12d24b48e24ff3636c9066059aa58..9d62eac28d5480aa6c2e796d603757d5999ea0af 100644 +--- a/index.d.ts ++++ b/index.d.ts +@@ -25,6 +25,7 @@ export type SplitPaneProps = { + pane2Style?: React.CSSProperties; + resizerClassName?: string; + step?: number; ++ children: React.ReactNode; + }; + + export type SplitPaneState = { diff --git a/package.json b/package.json index f5b9ca20..f1dc5910 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "resolutions": { "@types/node": "18.11.18", "@types/react": "18.0.27", - "cosmokit": "1.4.0" + "cosmokit": "1.4.0", + "react-split-pane@^0.1.92": "patch:react-split-pane@npm%3A0.1.92#./.yarn/patches/react-split-pane-npm-0.1.92-93dbf51dff.patch" } } diff --git a/packages/ui-default/typed.d.ts b/packages/ui-default/typed.d.ts index f47674d7..1f72b0a9 100644 --- a/packages/ui-default/typed.d.ts +++ b/packages/ui-default/typed.d.ts @@ -1,5 +1,5 @@ declare module '*.svg?react' { - import { ComponentType } from 'react' - const content: ComponentType - export default content - } \ No newline at end of file + import { ComponentType } from 'react'; + const content: ComponentType; + export default content; +}