-
Notifications
You must be signed in to change notification settings - Fork 1
deps: update dependency react-resizable-panels to v4 #1707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/react-resizable-panels-4.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7
−7
Conversation
This file contains hidden or 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
53965f8 to
9b79648
Compare
9b79648 to
969c9aa
Compare
969c9aa to
7162398
Compare
7162398 to
eeaf640
Compare
eeaf640 to
eccaf2a
Compare
eccaf2a to
6646714
Compare
6646714 to
27e2e34
Compare
27e2e34 to
ba4bbc5
Compare
ba4bbc5 to
2050c6a
Compare
4f84e97 to
1f0b3c4
Compare
1f0b3c4 to
c174281
Compare
c174281 to
bf1a58b
Compare
bf1a58b to
eb8d587
Compare
eb8d587 to
21caa73
Compare
21caa73 to
c5e689c
Compare
c5e689c to
22a7a6a
Compare
22a7a6a to
b2663cb
Compare
b2663cb to
e1386e3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.0.6→4.4.0Release Notes
bvaughn/react-resizable-panels (react-resizable-panels)
v4.4.0Compare Source
onLayoutChangedprop toGroup.For layout changes caused by pointer events, this method is not called until the pointer has been released. This callback should be used if you're doing something like saving a layout as it is called less frequently than the previous approach.
The
useDefaultLayouthook has also been updated to use this callback (though it will continue to support the old callback as well, with a@deprecationtag).v4.3.3Compare Source
event.preventDefault()on "pointerup" unless a handle was actively draggedv4.3.2Compare Source
flex-growPanelstyle to an inline value instead of a CSS variable defined on the parentGroupto improve rendering performance. (This significantly reduces the negative impact from forced-reflow)v4.3.1Compare Source
"unset"styles with safer override values"pointerdown"and"pointerup"events; this is necessary for compatibility with certain UI libraries like Blueprint JSPanelpixel size usingoffsetWidth/offsetHeightrather thaninlineSizeto avoid an edgecase bug withResizeObserverv4.3.0Compare Source
Groupcomponent now sets defaultwidth,height, andoverflowstyles; (both can be overridden using thestyleproperty)event.preventDefaultfor the primary buttonuseGroupRefandusePanelRefto include| nullto increase compatibility with older React versionsPanelandSeparatorcomponentsv4.2.2Compare Source
useDefaultLayouthook initializesstorageparam tolocalStorageif undefined.PanelproponResizethat impacted certain TypeScript versions.v4.2.1Compare Source
displayNameproperty toGroup,Panel, andSeparatorcomponents for better debugging experience.Grouphandles newly registeredPanels+Separatorsduring mount so that user code can safely call imperative APIs earlierv4.2.0Compare Source
prevPanelSizeparam toonResizecallback to help simplify collapse/expand detection.v4.1.1Compare Source
SeparatorattributesroleandtabIndexcannot be overridden using props.v4.1.0Compare Source
useDefaultLayouthook supports saving and restoring multiple Panel layoutsuseGroupRefandusePanelRefhooksv4.0.16Compare Source
expand()API should restore pre-collapse sizedefaultViewvalue seemingly returned by some dev environmentsv4.0.15Compare Source
defaultLayoutwhen keys don't match Panel idsv4.0.14Compare Source
element.ownerDocument.defaultViewv4.0.13Compare Source
useDefaultLayout: DeprecatedgroupIdparam in favor ofidto avoid confusion; (there is no actual requirement for the Group to have a matching id)v4.0.12Compare Source
useDefaultLayoutnow debounces calls tostorage.setItemby 150msv4.0.11Compare Source
v4.0.10Compare Source
v4.0.9Compare Source
z-indexelements (e.g. modals) should not trigger separators behind themdefaultLayoutordisableCursorprops changePanelid changesv4.0.8Compare Source
defaultLayoutvaluev4.0.7Compare Source
pointer-eventstyles after "pointerup" eventv4.0.6Compare Source
v4.0.5Compare Source
v4.0.4Compare Source
Separatoron "pointerdown"v4.0.3Compare Source
defaultLayoutvalue returned fromuseDefaultLayoutv4.0.2Compare Source
GroupImperativeHandleandPanelImperativeHandletypes.v4.0.1Compare Source
useDefaultLayout: DeprecatedgroupIdparam in favor ofidto avoid confusion; (there is no actual requirement for the Group to have a matching id)v4.0.0Compare Source
Version 4 of react-resizable-panels offers more flexible size constraints– supporting units as pixels, percentages, REMs/EMs, and more. Support for server-rendering (including Server Components) has also been expanded.
Migrating from version 3 to 4
Refer to the docs for a complete list of props and API methods. Below are some examples of migrating from version 3 to 4, but first a couple of potential questions:
PanelResizeHandlecomponent was renamed toSeparatorto better align with the ARIA "separator" role and thedirectionprop was renamed toorientationto better align with the ARIAorientationattribute .onCollapseandonExpandevent handlers removed?onResizeevent handler instead:Basic usage example
Persistent layouts using localStorage
Conditional panels
Imperative APIs
Disabling custom cursors
Configuration
📅 Schedule: Branch creation - "after 9am and before 7pm every weekday" in timezone Europe/Tallinn, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.