Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Changelog

## 4.5.8

- [651](https://github.com/bvaughn/react-resizable-panels/pull/651): Disabled the change to collapsible panel behavior that was originally made in [635](https://github.com/bvaughn/react-resizable-panels/pull/635) due to another reported regression

## 4.5.7

- [646](https://github.com/bvaughn/react-resizable-panels/pull/646): Re-enable the collapsible `Panel` from 4.5.3 that was disabled in 4.5.6
- [648](https://github.com/bvaughn/react-resizable-panels/pull/648): **Bugfix**: Reset `Separator` hover-state on `Document` "pointerout"

## 4.5.6

- [644](https://github.com/bvaughn/react-resizable-panels/pull/644): Disabled the change to collapsible panel behavior that was originally made in [635](https://github.com/bvaughn/react-resizable-panels/pull/635).
- [644](https://github.com/bvaughn/react-resizable-panels/pull/644): Disabled the change to collapsible panel behavior that was originally made in [635](https://github.com/bvaughn/react-resizable-panels/pull/635)

## 4.5.5

Expand Down
15 changes: 10 additions & 5 deletions lib/global/utils/adjustLayoutByDelta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,8 @@ describe("adjustLayoutByDelta", () => {
).toEqual(closed);
});

test("open if delta is greater than minimum threshold", () => {
// TODO Re-enable this once issues/650 is resolved
test.skip("open if delta is greater than minimum threshold", () => {
expect(
adjustLayoutByDelta({
delta: panelId === "left" ? 6 : -6,
Expand All @@ -2025,7 +2026,8 @@ describe("adjustLayoutByDelta", () => {
).toEqual(open);
});

test("close if delta is less than minimum threshold", () => {
// TODO Re-enable this once issues/650 is resolved
test.skip("close if delta is less than minimum threshold", () => {
expect(
adjustLayoutByDelta({
delta: panelId === "left" ? 4 : -4,
Expand Down Expand Up @@ -2124,7 +2126,8 @@ describe("adjustLayoutByDelta", () => {
).toEqual(closed);
});

test("open if delta is greater than minimum threshold", () => {
// TODO Re-enable this once issues/650 is resolved
test.skip("open if delta is greater than minimum threshold", () => {
expect(
adjustLayoutByDelta({
delta: panelId === "left" ? 6 : -6,
Expand All @@ -2136,7 +2139,8 @@ describe("adjustLayoutByDelta", () => {
).toEqual(open);
});

test("close if delta is less than minimum threshold", () => {
// TODO Re-enable this once issues/650 is resolved
test.skip("close if delta is less than minimum threshold", () => {
expect(
adjustLayoutByDelta({
delta: panelId === "left" ? 4 : -4,
Expand Down Expand Up @@ -2235,7 +2239,8 @@ describe("adjustLayoutByDelta", () => {
});
});

test("edge case discussions/643", () => {
// TODO Re-enable this once issues/650 is resolved
test.skip("edge case discussions/643", () => {
(
[
[4, l([10, 90])],
Expand Down
3 changes: 3 additions & 0 deletions lib/global/utils/adjustLayoutByDelta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ export function adjustLayoutByDelta({
}
break;
}
// TODO Re-enable this once issues/650 is resolved
/*
default: {
// If we're starting from a collapsed state, dragging past the halfway point should cause the panel to expand
// This can happen for positive or negative drags, and panels on either side of the separator can be collapsible
Expand Down Expand Up @@ -182,6 +184,7 @@ export function adjustLayoutByDelta({
}
break;
}
*/
}
// DEBUG.push("");
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-resizable-panels",
"version": "4.5.7",
"version": "4.5.8",
"type": "module",
"author": "Brian Vaughn <brian.david.vaughn@gmail.com> (https://github.com/bvaughn/)",
"contributors": [
Expand Down
Loading