@window-splitter/state 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > @window-splitter/state@1.1.2 build /Users/alisowski/Documents/react-window-splitter/packages/state
3
+ > @window-splitter/state@1.1.3 build /Users/andrew/Documents/window-splitter/packages/state
4
4
  > tshy
5
5
 
@@ -1,52 +1,24 @@
1
-
2
- 
3
- > @window-splitter/state@1.1.0 test /Users/alisowski/Documents/react-window-splitter/packages/state
4
- > vitest
5
-
6
- [?25l Vitest  No browser "instances" were defined. Running tests in "chromium" browser. The "browser.name" field is deprecated since Vitest 3. Read more: https://vitest.dev/guide/browser/config#browser-instances
7
-  Vitest  "providerOptions" is ignored because it's overridden by the configs. To hide this warning, remove the "providerOptions" property from the browser configuration.
8
-
9
-  DEV  v3.1.2 /Users/alisowski/Documents/react-window-splitter/packages/state
10
-
11
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
12
- 
13
- Vitest caught 1 unhandled error during the test run.
14
- This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
15
-
16
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
17
- Error: browserType.launch: Executable doesn't exist at /Users/alisowski/Library/Caches/ms-playwright/chromium-1129/chrome-mac/Chromium.app/Contents/MacOS/Chromium
18
- ╔═════════════════════════════════════════════════════════════════════════╗
19
- ║ Looks like Playwright Test or Playwright was just installed or updated. ║
20
- Please run the following command to download new browsers: ║
21
- ║ ║
22
- ║ pnpm exec playwright install ║
23
- ║ ║
24
- ║ <3 Playwright Team ║
25
- ╚═════════════════════════════════════════════════════════════════════════╝
26
-  ❯ ../../node_modules/.pnpm/@vitest+browser@3.1.2_msw@2.7.5_@types+node@22.2.0_typescript@5.8.3__playwright@1.46.0_vite@6_6lgmypomaxigetn6t5bxx22m2q/node_modules/@vitest/browser/dist/webdriver-BzjiKqT8.js:58:55
27
-  ❯ PlaywrightBrowserProvider.createContext ../../node_modules/.pnpm/@vitest+browser@3.1.2_msw@2.7.5_@types+node@22.2.0_typescript@5.8.3__playwright@1.46.0_vite@6_6lgmypomaxigetn6t5bxx22m2q/node_modules/@vitest/browser/dist/webdriver-BzjiKqT8.js:172:19
28
-  ❯ PlaywrightBrowserProvider.openBrowserPage ../../node_modules/.pnpm/@vitest+browser@3.1.2_msw@2.7.5_@types+node@22.2.0_typescript@5.8.3__playwright@1.46.0_vite@6_6lgmypomaxigetn6t5bxx22m2q/node_modules/@vitest/browser/dist/webdriver-BzjiKqT8.js:227:19
29
-  ❯ PlaywrightBrowserProvider.openPage ../../node_modules/.pnpm/@vitest+browser@3.1.2_msw@2.7.5_@types+node@22.2.0_typescript@5.8.3__playwright@1.46.0_vite@6_6lgmypomaxigetn6t5bxx22m2q/node_modules/@vitest/browser/dist/webdriver-BzjiKqT8.js:238:23
30
-  ❯ BrowserPool.openPage ../../node_modules/.pnpm/@vitest+browser@3.1.2_msw@2.7.5_@types+node@22.2.0_typescript@5.8.3__playwright@1.46.0_vite@6_6lgmypomaxigetn6t5bxx22m2q/node_modules/@vitest/browser/dist/index.js:3343:3
31
-  ❯ BrowserPool.runTests ../../node_modules/.pnpm/@vitest+browser@3.1.2_msw@2.7.5_@types+node@22.2.0_typescript@5.8.3__playwright@1.46.0_vite@6_6lgmypomaxigetn6t5bxx22m2q/node_modules/@vitest/browser/dist/index.js:3335:3
32
-  ❯ async file:/Users/alisowski/Documents/react-window-splitter/node_modules/.pnpm/@vitest+browser@3.1.2_msw@2.7.5_@types+node@22.2.0_typescript@5.8.3__playwright@1.46.0_vite@6_6lgmypomaxigetn6t5bxx22m2q/node_modules/@vitest/browser/dist/index.js:3258:4
33
-  ❯ runWorkspaceTests ../../node_modules/.pnpm/@vitest+browser@3.1.2_msw@2.7.5_@types+node@22.2.0_typescript@5.8.3__playwright@1.46.0_vite@6_6lgmypomaxigetn6t5bxx22m2q/node_modules/@vitest/browser/dist/index.js:3247:3
34
-  ❯ executeTests ../../node_modules/.pnpm/vitest@3.1.2_@types+debug@4.1.12_@types+node@22.2.0_@vitest+browser@3.1.2_jiti@2.4.2_jsdom@24_g57eq4otlg34wmkqobl7udxrka/node_modules/vitest/dist/chunks/coverage.BUdIvXbr.js:7710:3
35
-  ❯ async file:/Users/alisowski/Documents/react-window-splitter/node_modules/.pnpm/vitest@3.1.2_@types+debug@4.1.12_@types+node@22.2.0_@vitest+browser@3.1.2_jiti@2.4.2_jsdom@24_g57eq4otlg34wmkqobl7udxrka/node_modules/vitest/dist/chunks/cli-api.z029PxYZ.js:9240:6
36
-  ❯ Vitest.runFiles ../../node_modules/.pnpm/vitest@3.1.2_@types+debug@4.1.12_@types+node@22.2.0_@vitest+browser@3.1.2_jiti@2.4.2_jsdom@24_g57eq4otlg34wmkqobl7udxrka/node_modules/vitest/dist/chunks/cli-api.z029PxYZ.js:9267:10
37
-  ❯ Vitest.start ../../node_modules/.pnpm/vitest@3.1.2_@types+debug@4.1.12_@types+node@22.2.0_@vitest+browser@3.1.2_jiti@2.4.2_jsdom@24_g57eq4otlg34wmkqobl7udxrka/node_modules/vitest/dist/chunks/cli-api.z029PxYZ.js:9151:18
38
-  ❯ startVitest ../../node_modules/.pnpm/vitest@3.1.2_@types+debug@4.1.12_@types+node@22.2.0_@vitest+browser@3.1.2_jiti@2.4.2_jsdom@24_g57eq4otlg34wmkqobl7udxrka/node_modules/vitest/dist/chunks/cli-api.z029PxYZ.js:10211:4
39
-  ❯ start ../../node_modules/.pnpm/vitest@3.1.2_@types+debug@4.1.12_@types+node@22.2.0_@vitest+browser@3.1.2_jiti@2.4.2_jsdom@24_g57eq4otlg34wmkqobl7udxrka/node_modules/vitest/dist/chunks/cac.C5_4mAsf.js:1468:15
40
-
41
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
42
-
43
-
44
-  Test Files   (2)
45
-  Tests  no tests
46
-  Errors  1 error
47
-  Start at  15:01:22
48
-  Duration  251ms (transform 0ms, setup 0ms, collect 0ms, tests 0ms, environment 0ms, prepare 0ms)
49
-
50
-  FAIL  Tests failed. Watching for file changes...
51
- press h to show help, press q to quit
52
- [?25h[?25h
1
+
2
+ > @window-splitter/state@1.1.3 test /Users/andrew/Documents/window-splitter/packages/state
3
+ > vitest
4
+
5
+ Vitest No browser "instances" were defined. Running tests in "chromium" browser. The "browser.name" field is deprecated since Vitest 3. Read more: https://vitest.dev/guide/browser/config#browser-instances
6
+ Vitest "providerOptions" is ignored because it's overridden by the configs. To hide this warning, remove the "providerOptions" property from the browser configuration.
7
+
8
+ RUN v3.1.2 /Users/andrew/Documents/window-splitter/packages/state
9
+
10
+ ✓ |chromium| src/machine.test.ts (58 tests) 9479ms
11
+ constraints > applyDelta should handle percentage format items during animation 5057ms
12
+ ✓ constraints > overflow measurements should not collapse panels during animation 558ms
13
+ constraints > controlled collapse events 425ms
14
+ collapsible panel > panel can be collapsible: ease-in-out 307ms
15
+ ✓ collapsible panel > panel can be collapsible: { duration: 500, easing: 'linear' } 510ms
16
+ collapsible panel > panel can be collapsible: { duration: 1000, easing: [Function springEasing] } 609ms
17
+ collapsible panel > panel collapse can be controlled - event 423ms
18
+ ✓ |chromium| src/utils.test.ts (16 tests) 2ms
19
+
20
+ Test Files 2 passed (2)
21
+ Tests 74 passed (74)
22
+ Start at 12:24:35
23
+ Duration 11.31s (transform 0ms, setup 0ms, collect 92ms, tests 9.48s, environment 0ms, prepare 34ms)
24
+
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ # v1.1.4 (Mon Jun 29 2026)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix(state): avoid overflow collapse during animation [#83](https://github.com/hipstersmoothie/window-splitter/pull/83) (andrey_okonetchnikov@crgl-thirdparty.com [@okonet](https://github.com/okonet))
6
+ - fix: tolerate sub-pixel overflow [#84](https://github.com/hipstersmoothie/window-splitter/pull/84) ([@PawelMalakVolue](https://github.com/PawelMalakVolue))
7
+ - fix: tolerate sub-pixel overflow ([@PawelMalakVolue](https://github.com/PawelMalakVolue))
8
+ - fix(state): avoid overflow collapse during animation (andrey_okonetchnikov@crgl-thirdparty.com)
9
+
10
+ #### Authors: 3
11
+
12
+ - [@PawelMalakVolue](https://github.com/PawelMalakVolue)
13
+ - Andrey Okonetchnikov ([@okonet](https://github.com/okonet))
14
+ - ANDREY OKONETCHNIKOV (CRGL-THIRDPARTY.COM) (andrey_okonetchnikov@crgl-thirdparty.com)
15
+
16
+ ---
17
+
1
18
  # v1.1.3 (Fri Jan 30 2026)
2
19
 
3
20
  #### 🐛 Bug Fix
@@ -902,7 +902,7 @@ function handleOverflow(context) {
902
902
  });
903
903
  const totalSize = pixelItems.reduce((acc, i) => acc.add(i), new big_js_1.default(0));
904
904
  const overflow = totalSize.abs().sub(groupSize);
905
- if (overflow.eq(0) || groupSize.eq(0)) {
905
+ if (overflow.abs().lt(1) || groupSize.eq(0)) {
906
906
  return context;
907
907
  }
908
908
  let newContext = { ...context, items: prepareItems(context) };
@@ -1329,7 +1329,7 @@ function groupMachine(input, onUpdate) {
1329
1329
  context.items = withLastKnownSize;
1330
1330
  }
1331
1331
  else if (totalSize > getGroupSize(context) &&
1332
- state.current !== "dragging") {
1332
+ state.current === "idle") {
1333
1333
  context.items = handleOverflow({
1334
1334
  ...context,
1335
1335
  items: prepareItems({ ...context, items: withLastKnownSize }),