@window-splitter/state 0.8.2 → 0.8.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.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/CHANGELOG.md +55 -26
- package/README.md +1 -1
- package/dist/commonjs/index.d.ts +2 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +18 -4
- package/dist/commonjs/index.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +18 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +32 -5
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-lint.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
# v0.8.4 (Sat May 03 2025)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Svelte Adapter [#55](https://github.com/hipstersmoothie/window-splitter/pull/55) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
6
|
+
- builds ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
7
|
+
- clean up type errors ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
8
|
+
- conditional ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
9
|
+
- fix uncontrolled collapse callback not being called ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
10
|
+
- working ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
11
|
+
|
|
12
|
+
#### Authors: 1
|
|
13
|
+
|
|
14
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# v0.8.3 (Tue Apr 29 2025)
|
|
19
|
+
|
|
20
|
+
#### ⚠️ Pushed to `main`
|
|
21
|
+
|
|
22
|
+
- fix repo links ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
23
|
+
|
|
24
|
+
#### Authors: 1
|
|
25
|
+
|
|
26
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
1
30
|
# v0.7.0 (Mon Apr 28 2025)
|
|
2
31
|
|
|
3
32
|
### Release Notes
|
|
@@ -12,7 +41,7 @@ Things of note:
|
|
|
12
41
|
- `@window-splitter/solid` is feature complete and passes the test full test suite
|
|
13
42
|
- `@window-splitter/interface` was created to house the shared component types and some help functions
|
|
14
43
|
|
|
15
|
-
In creating the solid adapter we had to make vanilla JS versions of some functions we previously got from a dependency. This resulted in a 7.4% bundle size reduction for the react package 🎉
|
|
44
|
+
In creating the solid adapter we had to make vanilla JS versions of some functions we previously got from a dependency. This resulted in a 7.4% bundle size reduction for the react package 🎉
|
|
16
45
|
|
|
17
46
|
### Breaking Change
|
|
18
47
|
|
|
@@ -59,7 +88,7 @@ The API for registering panel handles changed a little bit. If you're using the
|
|
|
59
88
|
|
|
60
89
|
#### 🐛 Bug Fix
|
|
61
90
|
|
|
62
|
-
- bake in invariant [#50](https://github.com/hipstersmoothie/
|
|
91
|
+
- bake in invariant [#50](https://github.com/hipstersmoothie/window-splitter/pull/50) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
63
92
|
- bake in invariant ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
64
93
|
|
|
65
94
|
#### Authors: 1
|
|
@@ -72,7 +101,7 @@ The API for registering panel handles changed a little bit. If you're using the
|
|
|
72
101
|
|
|
73
102
|
#### 🐛 Bug Fix
|
|
74
103
|
|
|
75
|
-
- remove tiny-cookie as runtime dep [#49](https://github.com/hipstersmoothie/
|
|
104
|
+
- remove tiny-cookie as runtime dep [#49](https://github.com/hipstersmoothie/window-splitter/pull/49) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
76
105
|
- remove tiny-cookie as runtime dep ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
77
106
|
|
|
78
107
|
#### ⚠️ Pushed to `main`
|
|
@@ -89,7 +118,7 @@ The API for registering panel handles changed a little bit. If you're using the
|
|
|
89
118
|
|
|
90
119
|
### Release Notes
|
|
91
120
|
|
|
92
|
-
#### No xstate ([#47](https://github.com/hipstersmoothie/
|
|
121
|
+
#### No xstate ([#47](https://github.com/hipstersmoothie/window-splitter/pull/47))
|
|
93
122
|
|
|
94
123
|
This release is a dramatic reduction to the bundle size. This was done by pruning some unnecessary deps and some that were to large to justify in the headless component.
|
|
95
124
|
|
|
@@ -101,7 +130,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
101
130
|
|
|
102
131
|
#### 🚀 Enhancement
|
|
103
132
|
|
|
104
|
-
- No xstate [#47](https://github.com/hipstersmoothie/
|
|
133
|
+
- No xstate [#47](https://github.com/hipstersmoothie/window-splitter/pull/47) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
105
134
|
|
|
106
135
|
#### 🐛 Bug Fix
|
|
107
136
|
|
|
@@ -159,7 +188,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
159
188
|
|
|
160
189
|
#### 🚀 Enhancement
|
|
161
190
|
|
|
162
|
-
- Add `data-state=inactive` for drag handles that aren't the active one [#46](https://github.com/hipstersmoothie/
|
|
191
|
+
- Add `data-state=inactive` for drag handles that aren't the active one [#46](https://github.com/hipstersmoothie/window-splitter/pull/46) ([@sfc-gh-alisowski](https://github.com/sfc-gh-alisowski))
|
|
163
192
|
|
|
164
193
|
#### 🐛 Bug Fix
|
|
165
194
|
|
|
@@ -176,7 +205,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
176
205
|
|
|
177
206
|
#### 🐛 Bug Fix
|
|
178
207
|
|
|
179
|
-
- update panel settings when props update [#45](https://github.com/hipstersmoothie/
|
|
208
|
+
- update panel settings when props update [#45](https://github.com/hipstersmoothie/window-splitter/pull/45) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
180
209
|
- update panel settings when props update ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
181
210
|
|
|
182
211
|
#### Authors: 1
|
|
@@ -189,7 +218,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
189
218
|
|
|
190
219
|
#### 🐛 Bug Fix
|
|
191
220
|
|
|
192
|
-
- rebind onResize and onCollapseChange to fix restoring from snapshot [#44](https://github.com/hipstersmoothie/
|
|
221
|
+
- rebind onResize and onCollapseChange to fix restoring from snapshot [#44](https://github.com/hipstersmoothie/window-splitter/pull/44) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
193
222
|
- rebind onResize and onCollapseChange to fix restoring from snapshot (closes #41) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
194
223
|
|
|
195
224
|
#### Authors: 1
|
|
@@ -202,7 +231,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
202
231
|
|
|
203
232
|
#### 🐛 Bug Fix
|
|
204
233
|
|
|
205
|
-
- Responsive Bugs [#38](https://github.com/hipstersmoothie/
|
|
234
|
+
- Responsive Bugs [#38](https://github.com/hipstersmoothie/window-splitter/pull/38) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
206
235
|
- fix tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
207
236
|
- move handle overflow logic to recordActualItemSize ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
208
237
|
- more ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
@@ -210,7 +239,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
210
239
|
- updating tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
211
240
|
- measure more ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
212
241
|
- add fill panel. improves resizing a lot ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
213
|
-
- move autosave to state package [#36](https://github.com/hipstersmoothie/
|
|
242
|
+
- move autosave to state package [#36](https://github.com/hipstersmoothie/window-splitter/pull/36) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
214
243
|
- improve lint ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
215
244
|
- move autosave to state ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
216
245
|
|
|
@@ -224,8 +253,8 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
224
253
|
|
|
225
254
|
#### 🚀 Enhancement
|
|
226
255
|
|
|
227
|
-
- Add "isStaticAtRest" prop [#34](https://github.com/hipstersmoothie/
|
|
228
|
-
- Collapse Validation [#33](https://github.com/hipstersmoothie/
|
|
256
|
+
- Add "isStaticAtRest" prop [#34](https://github.com/hipstersmoothie/window-splitter/pull/34) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
257
|
+
- Collapse Validation [#33](https://github.com/hipstersmoothie/window-splitter/pull/33) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
229
258
|
|
|
230
259
|
#### 🐛 Bug Fix
|
|
231
260
|
|
|
@@ -251,9 +280,9 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
251
280
|
|
|
252
281
|
#### 🐛 Bug Fix
|
|
253
282
|
|
|
254
|
-
- Fix panel not expanding to take up width with a default collapsed panel [#29](https://github.com/hipstersmoothie/
|
|
283
|
+
- Fix panel not expanding to take up width with a default collapsed panel [#29](https://github.com/hipstersmoothie/window-splitter/pull/29) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
255
284
|
- Fix panel not expanding to take up width with a default collapsed panel ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
256
|
-
- Fix bug in onResize callbacks [#30](https://github.com/hipstersmoothie/
|
|
285
|
+
- Fix bug in onResize callbacks [#30](https://github.com/hipstersmoothie/window-splitter/pull/30) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
257
286
|
- call onResize once the item sizes are known too ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
258
287
|
- fix pixel calculation on onResize ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
259
288
|
- Fix inconsistent percent value structure ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
@@ -280,17 +309,17 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
280
309
|
|
|
281
310
|
#### 🚀 Enhancement
|
|
282
311
|
|
|
283
|
-
- Add `onResize` prop to Panel [#28](https://github.com/hipstersmoothie/
|
|
312
|
+
- Add `onResize` prop to Panel [#28](https://github.com/hipstersmoothie/window-splitter/pull/28) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
284
313
|
|
|
285
314
|
#### 🐛 Bug Fix
|
|
286
315
|
|
|
287
316
|
- Add `onResize` prop to `Panel` ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
288
|
-
- 100 [#26](https://github.com/hipstersmoothie/
|
|
317
|
+
- 100 [#26](https://github.com/hipstersmoothie/window-splitter/pull/26) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
289
318
|
- 100 ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
290
|
-
- add coverage for PRs [#25](https://github.com/hipstersmoothie/
|
|
319
|
+
- add coverage for PRs [#25](https://github.com/hipstersmoothie/window-splitter/pull/25) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
291
320
|
- testing ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
292
321
|
- add coverage for PRs ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
293
|
-
- Add react tests [#24](https://github.com/hipstersmoothie/
|
|
322
|
+
- Add react tests [#24](https://github.com/hipstersmoothie/window-splitter/pull/24) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
294
323
|
- add docs for state machine usage ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
295
324
|
|
|
296
325
|
#### ⚠️ Pushed to `main`
|
|
@@ -321,9 +350,9 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
321
350
|
|
|
322
351
|
#### 🐛 Bug Fix
|
|
323
352
|
|
|
324
|
-
- Fix conditional panel rendering [#22](https://github.com/hipstersmoothie/
|
|
353
|
+
- Fix conditional panel rendering [#22](https://github.com/hipstersmoothie/window-splitter/pull/22) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
325
354
|
- Fix conditional panel rendering ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
326
|
-
- Fix default size throwing of responsive sizing [#21](https://github.com/hipstersmoothie/
|
|
355
|
+
- Fix default size throwing of responsive sizing [#21](https://github.com/hipstersmoothie/window-splitter/pull/21) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
327
356
|
- Fix default size throwing of responsive sizing ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
328
357
|
|
|
329
358
|
#### Authors: 1
|
|
@@ -336,7 +365,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
336
365
|
|
|
337
366
|
#### 🐛 Bug Fix
|
|
338
367
|
|
|
339
|
-
- More Tests and Bug Fixes [#18](https://github.com/hipstersmoothie/
|
|
368
|
+
- More Tests and Bug Fixes [#18](https://github.com/hipstersmoothie/window-splitter/pull/18) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
340
369
|
- fix overshoot math for non-collapsible panels ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
341
370
|
- remove unused deps ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
342
371
|
- move prepareSnapshot ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
@@ -357,7 +386,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
357
386
|
|
|
358
387
|
#### 🐛 Bug Fix
|
|
359
388
|
|
|
360
|
-
- Split out @window-splitter/state [#16](https://github.com/hipstersmoothie/
|
|
389
|
+
- Split out @window-splitter/state [#16](https://github.com/hipstersmoothie/window-splitter/pull/16) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
361
390
|
- make state public ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
362
391
|
- split into packages ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
363
392
|
|
|
@@ -371,7 +400,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
371
400
|
|
|
372
401
|
#### 🐛 Bug Fix
|
|
373
402
|
|
|
374
|
-
- Add tests, fix a bunch of bugs [#12](https://github.com/hipstersmoothie/
|
|
403
|
+
- Add tests, fix a bunch of bugs [#12](https://github.com/hipstersmoothie/window-splitter/pull/12) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
375
404
|
- fix lint ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
376
405
|
- more tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
377
406
|
- fix imperative api bugs ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
@@ -385,7 +414,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
385
414
|
- fix conditional panel rendering ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
386
415
|
- fix commited layout ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
387
416
|
- Merge remote-tracking branch 'origin/main' into tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
388
|
-
- fix react preset in config-eslint package [#11](https://github.com/hipstersmoothie/
|
|
417
|
+
- fix react preset in config-eslint package [#11](https://github.com/hipstersmoothie/window-splitter/pull/11) ([@Rel1cx](https://github.com/Rel1cx))
|
|
389
418
|
- switch to 1fr and fix measurement in tests (closes #3) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
390
419
|
- set initial children sizes ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
391
420
|
- fix react preset in config-eslint package ([@Rel1cx](https://github.com/Rel1cx))
|
|
@@ -412,7 +441,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
412
441
|
|
|
413
442
|
#### 🚀 Enhancement
|
|
414
443
|
|
|
415
|
-
- Collapse Animation [#10](https://github.com/hipstersmoothie/
|
|
444
|
+
- Collapse Animation [#10](https://github.com/hipstersmoothie/window-splitter/pull/10) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
416
445
|
|
|
417
446
|
#### 🐛 Bug Fix
|
|
418
447
|
|
|
@@ -522,7 +551,7 @@ That change is breaking. The version has only received a minor bump because we a
|
|
|
522
551
|
|
|
523
552
|
#### 🐛 Bug Fix
|
|
524
553
|
|
|
525
|
-
- pr workflow [#1](https://github.com/hipstersmoothie/
|
|
554
|
+
- pr workflow [#1](https://github.com/hipstersmoothie/window-splitter/pull/1) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
526
555
|
- pr workflow ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
527
556
|
|
|
528
557
|
#### ⚠️ Pushed to `main`
|
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@ The context of the state machine is an object with the following shape:
|
|
|
95
95
|
|
|
96
96
|
#### Events
|
|
97
97
|
|
|
98
|
-
For a full list of events and their payloads see the [source code](https://github.com/hipstersmoothie/
|
|
98
|
+
For a full list of events and their payloads see the [source code](https://github.com/hipstersmoothie/window-splitter/blob/main/packages/state/src/index.ts).
|
|
99
99
|
|
|
100
100
|
- `registerPanel`: Register a new panel with the state machine
|
|
101
101
|
- `registerDynamicPanel`: Register a new panel after the initial render
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -259,8 +259,8 @@ type InitializePanelOptionsWithId = InitializePanelOptions & {
|
|
|
259
259
|
};
|
|
260
260
|
export declare function initializePanel(item: InitializePanelOptionsWithId): PanelData;
|
|
261
261
|
export declare function initializePanel(item: InitializePanelOptions): Omit<PanelData, "id">;
|
|
262
|
-
export declare function haveConstraintsChangedForPanel(a: Omit<PanelData, "id" | "currentValue">, b
|
|
263
|
-
export declare function haveConstraintsChangedForPanelHandle(a: Omit<PanelHandleData, "id">, b
|
|
262
|
+
export declare function haveConstraintsChangedForPanel(a: Omit<PanelData, "id" | "currentValue">, b?: Omit<PanelData, "id" | "currentValue">): boolean;
|
|
263
|
+
export declare function haveConstraintsChangedForPanelHandle(a: Omit<PanelHandleData, "id">, b?: Omit<PanelHandleData, "id">): boolean;
|
|
264
264
|
export declare function initializePanelHandleData(item: InitializePanelHandleData): {
|
|
265
265
|
size: ParsedPixelUnit;
|
|
266
266
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,QAAQ,CAAC;AAYzB,MAAM,MAAM,SAAS,GAAG,GAAG,MAAM,IAAI,CAAC;AACtC,MAAM,MAAM,WAAW,GAAG,GAAG,MAAM,GAAG,CAAC;AACvC,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,WAAW,CAAC;AAC3C,KAAK,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;AAE7C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC;CAChB;AAED,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAE7D,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,CAEhE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAE5D;AAED,UAAU,aAAa;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,UAAU,GAAG,IAAI,GAAG,UAAU;IACnE,oCAAoC;IACpC,GAAG,CAAC,EAAE,CAAC,CAAC;IACR,oCAAoC;IACpC,GAAG,CAAC,EAAE,CAAC,CAAC;IACR,oCAAoC;IACpC,OAAO,CAAC,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,wBAAwB,GAAG,IAAI,EAAE,CAoCtE;AAkTD,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,WAA0B,EAC1B,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;;;;;;;;EAWA;AA4QD,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,gBAAgB,CAAC,EAAE,cAAc,GAAG,QAAQ,CAAC;CAC9C;AAED,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,kBAAkB,CAAC;AAI7D,wBAAgB,YAAY,CAC1B,KAAK,EAAE,OAAO,CAAC,wBAAwB,CAAC,EACxC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,IAAI,+CA6MjC,iBAAiB;aAzMjB,KAAK;GA4f3B;AAED,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -183,6 +183,9 @@ function eq(a, b) {
|
|
|
183
183
|
return a.type === b.type && a.value.eq(b.value);
|
|
184
184
|
}
|
|
185
185
|
function haveConstraintsChangedForPanel(a, b) {
|
|
186
|
+
if (!b) {
|
|
187
|
+
return true;
|
|
188
|
+
}
|
|
186
189
|
if (!eq(a.min, b.min)) {
|
|
187
190
|
return true;
|
|
188
191
|
}
|
|
@@ -219,6 +222,9 @@ function haveConstraintsChangedForPanel(a, b) {
|
|
|
219
222
|
return false;
|
|
220
223
|
}
|
|
221
224
|
function haveConstraintsChangedForPanelHandle(a, b) {
|
|
225
|
+
if (!b) {
|
|
226
|
+
return true;
|
|
227
|
+
}
|
|
222
228
|
if (!eq(a.size, b.size)) {
|
|
223
229
|
return true;
|
|
224
230
|
}
|
|
@@ -699,7 +705,8 @@ function updateLayout(context, dragEvent) {
|
|
|
699
705
|
panelAfter.collapsed = false;
|
|
700
706
|
if (panelAfter.onCollapseChange?.current &&
|
|
701
707
|
!panelAfter.collapseIsControlled &&
|
|
702
|
-
!dragEvent.controlled
|
|
708
|
+
!dragEvent.controlled &&
|
|
709
|
+
!dragEvent.isVirtual) {
|
|
703
710
|
panelAfter.onCollapseChange.current(false);
|
|
704
711
|
}
|
|
705
712
|
}
|
|
@@ -721,7 +728,8 @@ function updateLayout(context, dragEvent) {
|
|
|
721
728
|
panelAfterNewValue = panelAfterNewValue.add(panelBeforePreviousValue.minus(panelBeforeNewValue));
|
|
722
729
|
if (panelBefore.onCollapseChange?.current &&
|
|
723
730
|
!panelBefore.collapseIsControlled &&
|
|
724
|
-
!dragEvent.controlled
|
|
731
|
+
!dragEvent.controlled &&
|
|
732
|
+
!dragEvent.isVirtual) {
|
|
725
733
|
panelBefore.onCollapseChange.current(true);
|
|
726
734
|
}
|
|
727
735
|
}
|
|
@@ -776,7 +784,7 @@ function dragHandlePayload({ delta, orientation = "horizontal", shiftKey = false
|
|
|
776
784
|
};
|
|
777
785
|
}
|
|
778
786
|
/** Iteratively applies a large delta value simulating a user's drag */
|
|
779
|
-
function iterativelyUpdateLayout({ context, handleId, delta, direction, controlled, disregardCollapseBuffer, }) {
|
|
787
|
+
function iterativelyUpdateLayout({ context, handleId, delta, direction, controlled, disregardCollapseBuffer, isVirtual, }) {
|
|
780
788
|
let newContext = context;
|
|
781
789
|
for (let i = 0; i < delta.abs().toNumber(); i++) {
|
|
782
790
|
newContext = updateLayout({
|
|
@@ -787,6 +795,7 @@ function iterativelyUpdateLayout({ context, handleId, delta, direction, controll
|
|
|
787
795
|
type: "collapsePanel",
|
|
788
796
|
controlled,
|
|
789
797
|
disregardCollapseBuffer,
|
|
798
|
+
isVirtual,
|
|
790
799
|
value: dragHandlePayload({
|
|
791
800
|
delta: direction,
|
|
792
801
|
orientation: context.orientation,
|
|
@@ -1035,6 +1044,9 @@ function groupMachine(input, onUpdate) {
|
|
|
1035
1044
|
if (panel.collapsed) {
|
|
1036
1045
|
panel.currentValue = panel.collapsedSize;
|
|
1037
1046
|
}
|
|
1047
|
+
if (!panel.collapseIsControlled) {
|
|
1048
|
+
panel.onCollapseChange?.current?.(panel.collapsed);
|
|
1049
|
+
}
|
|
1038
1050
|
actions.commit();
|
|
1039
1051
|
},
|
|
1040
1052
|
};
|
|
@@ -1064,6 +1076,7 @@ function groupMachine(input, onUpdate) {
|
|
|
1064
1076
|
controlled: event.controlled,
|
|
1065
1077
|
delta: delta,
|
|
1066
1078
|
direction: handle.direction,
|
|
1079
|
+
isVirtual: true,
|
|
1067
1080
|
}),
|
|
1068
1081
|
};
|
|
1069
1082
|
const updatedPanel = interimContext.items.find((i) => i.id === event.panelId);
|
|
@@ -1232,7 +1245,8 @@ function groupMachine(input, onUpdate) {
|
|
|
1232
1245
|
if (useLastKnownSize) {
|
|
1233
1246
|
context.items = withLastKnownSize;
|
|
1234
1247
|
}
|
|
1235
|
-
else if (totalSize > getGroupSize(context)
|
|
1248
|
+
else if (totalSize > getGroupSize(context) &&
|
|
1249
|
+
state.current !== "dragging") {
|
|
1236
1250
|
context.items = handleOverflow({
|
|
1237
1251
|
...context,
|
|
1238
1252
|
items: prepareItems({ ...context, items: withLastKnownSize }),
|