-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade react and patch golden-layout * migrate dialog workaround to react 18 * migrate blueprint toaster to react 18 * upgrade react type definition; remove react-color type def; patch react-split-pane type def * fix type * upgrade react-konva; fix types * fix key related warnings * remove unused property * remove overrides * Revert "migrate blueprint toaster to react 18" This reverts commit 49f5c43. * migrate blueprint toaster to react 18 * upgrade konva * upgrade react testing library * fix auto scroll not being triggered
- Loading branch information
1 parent
7e10466
commit a720692
Showing
13 changed files
with
189 additions
and
135 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/node_modules/golden-layout/dist/goldenlayout.js b/node_modules/golden-layout/dist/goldenlayout.js | ||
index 736f9ec..9c59284 100644 | ||
--- a/node_modules/golden-layout/dist/goldenlayout.js | ||
+++ b/node_modules/golden-layout/dist/goldenlayout.js | ||
@@ -5265,7 +5265,9 @@ lm.utils.copy( lm.utils.ReactComponentHandler.prototype, { | ||
* @returns {void} | ||
*/ | ||
_render: function() { | ||
- this._reactComponent = ReactDOM.render( this._getReactComponent(), this._container.getElement()[ 0 ] ); | ||
+ this._reactRoot = createRoot( this._container.getElement()[ 0 ] ); | ||
+ this._reactRoot.render( this._getReactComponent() ); | ||
+ this._reactComponent = this._getReactComponent(); | ||
this._originalComponentWillUpdate = this._reactComponent.componentWillUpdate || function() { | ||
}; | ||
this._reactComponent.componentWillUpdate = this._onUpdate.bind( this ); | ||
@@ -5281,7 +5283,7 @@ lm.utils.copy( lm.utils.ReactComponentHandler.prototype, { | ||
* @returns {void} | ||
*/ | ||
_destroy: function() { | ||
- ReactDOM.unmountComponentAtNode( this._container.getElement()[ 0 ] ); | ||
+ this._reactRoot.unmount(); | ||
this._container.off( 'open', this._render, this ); | ||
this._container.off( 'destroy', this._destroy, this ); | ||
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/node_modules/react-split-pane/index.d.ts b/node_modules/react-split-pane/index.d.ts | ||
index d116f54..54452b7 100644 | ||
--- a/node_modules/react-split-pane/index.d.ts | ||
+++ b/node_modules/react-split-pane/index.d.ts | ||
@@ -5,6 +5,7 @@ export type Size = string | number; | ||
export type Split = 'vertical' | 'horizontal'; | ||
|
||
export type SplitPaneProps = { | ||
+ children: React.ReactNode[]; | ||
allowResize?: boolean; | ||
className?: string; | ||
primary?: 'first' | 'second'; | ||
@@ -59,6 +60,7 @@ declare class SplitPane extends React.Component< | ||
export default SplitPane; | ||
|
||
export type PaneProps = { | ||
+ children: React.ReactNode; | ||
className?: string; | ||
size?: Size; | ||
split?: Split; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters