@window-splitter/state 0.6.4 → 0.7.0

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@0.6.3 build /Users/andrew/Documents/react-window-splitter/packages/state
3
+ > @window-splitter/state@0.6.5 build /Users/andrew/Documents/react-window-splitter/packages/state
4
4
  > tshy
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
2
  
3
- > @window-splitter/state@0.6.3 lint /Users/andrew/Documents/react-window-splitter/packages/state
3
+ > @window-splitter/state@0.6.5 lint /Users/andrew/Documents/react-window-splitter/packages/state
4
4
  > eslint .
5
5
 
package/CHANGELOG.md CHANGED
@@ -1,3 +1,48 @@
1
+ # v0.7.0 (Mon Apr 28 2025)
2
+
3
+ ### Release Notes
4
+
5
+ #### `@window-splitter/solid` ([#54](https://github.com/hipstersmoothie/window-splitter/pull/54))
6
+
7
+ The second framework adapter for `window-splitter` is live!
8
+
9
+ Things of note:
10
+
11
+ - `react-window-splitter` is deprecated in favor of `@window-splitter/react`
12
+ - `@window-splitter/solid` is feature complete and passes the test full test suite
13
+ - `@window-splitter/interface` was created to house the shared component types and some help functions
14
+
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 🎉
16
+
17
+ ### Breaking Change
18
+
19
+ The API for registering panel handles changed a little bit. If you're using the `@window-splitter/state` package directly you will have to update your code (if you exist send me a message!)
20
+
21
+ ---
22
+
23
+ #### 🚀 Enhancement
24
+
25
+ - `@window-splitter/solid` [#54](https://github.com/hipstersmoothie/window-splitter/pull/54) ([@hipstersmoothie](https://github.com/hipstersmoothie))
26
+
27
+ #### 🐛 Bug Fix
28
+
29
+ - fix ci tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
30
+ - dynamic constraints ([@hipstersmoothie](https://github.com/hipstersmoothie))
31
+ - ugh ([@hipstersmoothie](https://github.com/hipstersmoothie))
32
+ - update names ([@hipstersmoothie](https://github.com/hipstersmoothie))
33
+ - use shared move ([@hipstersmoothie](https://github.com/hipstersmoothie))
34
+ - fix double conditional render layout ([@hipstersmoothie](https://github.com/hipstersmoothie))
35
+ - fix build ([@hipstersmoothie](https://github.com/hipstersmoothie))
36
+ - move shared stuff ([@hipstersmoothie](https://github.com/hipstersmoothie))
37
+ - controlled collapse ([@hipstersmoothie](https://github.com/hipstersmoothie))
38
+ - starting to wrk ([@hipstersmoothie](https://github.com/hipstersmoothie))
39
+
40
+ #### Authors: 1
41
+
42
+ - Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
43
+
44
+ ---
45
+
1
46
  # v0.6.4 (Sat Apr 26 2025)
2
47
 
3
48
  #### ⚠️ Pushed to `main`
@@ -14,7 +59,7 @@
14
59
 
15
60
  #### 🐛 Bug Fix
16
61
 
17
- - bake in invariant [#50](https://github.com/hipstersmoothie/react-window-splitter/pull/50) ([@hipstersmoothie](https://github.com/hipstersmoothie))
62
+ - bake in invariant [#50](https://github.com/hipstersmoothie/react-splitter/pull/50) ([@hipstersmoothie](https://github.com/hipstersmoothie))
18
63
  - bake in invariant ([@hipstersmoothie](https://github.com/hipstersmoothie))
19
64
 
20
65
  #### Authors: 1
@@ -27,7 +72,7 @@
27
72
 
28
73
  #### 🐛 Bug Fix
29
74
 
30
- - remove tiny-cookie as runtime dep [#49](https://github.com/hipstersmoothie/react-window-splitter/pull/49) ([@hipstersmoothie](https://github.com/hipstersmoothie))
75
+ - remove tiny-cookie as runtime dep [#49](https://github.com/hipstersmoothie/react-splitter/pull/49) ([@hipstersmoothie](https://github.com/hipstersmoothie))
31
76
  - remove tiny-cookie as runtime dep ([@hipstersmoothie](https://github.com/hipstersmoothie))
32
77
 
33
78
  #### ⚠️ Pushed to `main`
@@ -44,11 +89,11 @@
44
89
 
45
90
  ### Release Notes
46
91
 
47
- #### No xstate ([#47](https://github.com/hipstersmoothie/react-window-splitter/pull/47))
92
+ #### No xstate ([#47](https://github.com/hipstersmoothie/react-splitter/pull/47))
48
93
 
49
94
  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.
50
95
 
51
- The biggest change is to `@window-splitter/state` where we refactored the state machine into a function that followed the logic of the state machine, taking careful aim to not give up any of the guarantees we had there. As a result the apis for `snapshot` changed since those were exposing `xstate`'s snapshots. The format is now just the context value, which is also a smaller amount of text than we were storing for snapshots.
96
+ The biggest change is to `@window-splitter/state` where we refactored the state machine into a function that followed the logic of the state machine, taking careful aim to not give up any of the guarantees we had there. As a result the apis for `snapshot` changed since those were exposing `xstate`'s snapshots. The format is now just the context value, which is also a smaller amount of text than we were storing for snapshots.
52
97
 
53
98
  That change is breaking. The version has only received a minor bump because we are still <0, where bumping the minor can include breaking changes.
54
99
 
@@ -56,7 +101,7 @@ That change is breaking. The version has only received a minor bump because we a
56
101
 
57
102
  #### 🚀 Enhancement
58
103
 
59
- - No xstate [#47](https://github.com/hipstersmoothie/react-window-splitter/pull/47) ([@hipstersmoothie](https://github.com/hipstersmoothie))
104
+ - No xstate [#47](https://github.com/hipstersmoothie/react-splitter/pull/47) ([@hipstersmoothie](https://github.com/hipstersmoothie))
60
105
 
61
106
  #### 🐛 Bug Fix
62
107
 
@@ -114,7 +159,7 @@ That change is breaking. The version has only received a minor bump because we a
114
159
 
115
160
  #### 🚀 Enhancement
116
161
 
117
- - Add `data-state=inactive` for drag handles that aren't the active one [#46](https://github.com/hipstersmoothie/react-window-splitter/pull/46) ([@sfc-gh-alisowski](https://github.com/sfc-gh-alisowski))
162
+ - Add `data-state=inactive` for drag handles that aren't the active one [#46](https://github.com/hipstersmoothie/react-splitter/pull/46) ([@sfc-gh-alisowski](https://github.com/sfc-gh-alisowski))
118
163
 
119
164
  #### 🐛 Bug Fix
120
165
 
@@ -131,7 +176,7 @@ That change is breaking. The version has only received a minor bump because we a
131
176
 
132
177
  #### 🐛 Bug Fix
133
178
 
134
- - update panel settings when props update [#45](https://github.com/hipstersmoothie/react-window-splitter/pull/45) ([@hipstersmoothie](https://github.com/hipstersmoothie))
179
+ - update panel settings when props update [#45](https://github.com/hipstersmoothie/react-splitter/pull/45) ([@hipstersmoothie](https://github.com/hipstersmoothie))
135
180
  - update panel settings when props update ([@hipstersmoothie](https://github.com/hipstersmoothie))
136
181
 
137
182
  #### Authors: 1
@@ -144,7 +189,7 @@ That change is breaking. The version has only received a minor bump because we a
144
189
 
145
190
  #### 🐛 Bug Fix
146
191
 
147
- - rebind onResize and onCollapseChange to fix restoring from snapshot [#44](https://github.com/hipstersmoothie/react-window-splitter/pull/44) ([@hipstersmoothie](https://github.com/hipstersmoothie))
192
+ - rebind onResize and onCollapseChange to fix restoring from snapshot [#44](https://github.com/hipstersmoothie/react-splitter/pull/44) ([@hipstersmoothie](https://github.com/hipstersmoothie))
148
193
  - rebind onResize and onCollapseChange to fix restoring from snapshot (closes #41) ([@hipstersmoothie](https://github.com/hipstersmoothie))
149
194
 
150
195
  #### Authors: 1
@@ -157,7 +202,7 @@ That change is breaking. The version has only received a minor bump because we a
157
202
 
158
203
  #### 🐛 Bug Fix
159
204
 
160
- - Responsive Bugs [#38](https://github.com/hipstersmoothie/react-window-splitter/pull/38) ([@hipstersmoothie](https://github.com/hipstersmoothie))
205
+ - Responsive Bugs [#38](https://github.com/hipstersmoothie/react-splitter/pull/38) ([@hipstersmoothie](https://github.com/hipstersmoothie))
161
206
  - fix tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
162
207
  - move handle overflow logic to recordActualItemSize ([@hipstersmoothie](https://github.com/hipstersmoothie))
163
208
  - more ([@hipstersmoothie](https://github.com/hipstersmoothie))
@@ -165,7 +210,7 @@ That change is breaking. The version has only received a minor bump because we a
165
210
  - updating tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
166
211
  - measure more ([@hipstersmoothie](https://github.com/hipstersmoothie))
167
212
  - add fill panel. improves resizing a lot ([@hipstersmoothie](https://github.com/hipstersmoothie))
168
- - move autosave to state package [#36](https://github.com/hipstersmoothie/react-window-splitter/pull/36) ([@hipstersmoothie](https://github.com/hipstersmoothie))
213
+ - move autosave to state package [#36](https://github.com/hipstersmoothie/react-splitter/pull/36) ([@hipstersmoothie](https://github.com/hipstersmoothie))
169
214
  - improve lint ([@hipstersmoothie](https://github.com/hipstersmoothie))
170
215
  - move autosave to state ([@hipstersmoothie](https://github.com/hipstersmoothie))
171
216
 
@@ -179,8 +224,8 @@ That change is breaking. The version has only received a minor bump because we a
179
224
 
180
225
  #### 🚀 Enhancement
181
226
 
182
- - Add "isStaticAtRest" prop [#34](https://github.com/hipstersmoothie/react-window-splitter/pull/34) ([@hipstersmoothie](https://github.com/hipstersmoothie))
183
- - Collapse Validation [#33](https://github.com/hipstersmoothie/react-window-splitter/pull/33) ([@hipstersmoothie](https://github.com/hipstersmoothie))
227
+ - Add "isStaticAtRest" prop [#34](https://github.com/hipstersmoothie/react-splitter/pull/34) ([@hipstersmoothie](https://github.com/hipstersmoothie))
228
+ - Collapse Validation [#33](https://github.com/hipstersmoothie/react-splitter/pull/33) ([@hipstersmoothie](https://github.com/hipstersmoothie))
184
229
 
185
230
  #### 🐛 Bug Fix
186
231
 
@@ -206,9 +251,9 @@ That change is breaking. The version has only received a minor bump because we a
206
251
 
207
252
  #### 🐛 Bug Fix
208
253
 
209
- - Fix panel not expanding to take up width with a default collapsed panel [#29](https://github.com/hipstersmoothie/react-window-splitter/pull/29) ([@hipstersmoothie](https://github.com/hipstersmoothie))
254
+ - Fix panel not expanding to take up width with a default collapsed panel [#29](https://github.com/hipstersmoothie/react-splitter/pull/29) ([@hipstersmoothie](https://github.com/hipstersmoothie))
210
255
  - Fix panel not expanding to take up width with a default collapsed panel ([@hipstersmoothie](https://github.com/hipstersmoothie))
211
- - Fix bug in onResize callbacks [#30](https://github.com/hipstersmoothie/react-window-splitter/pull/30) ([@hipstersmoothie](https://github.com/hipstersmoothie))
256
+ - Fix bug in onResize callbacks [#30](https://github.com/hipstersmoothie/react-splitter/pull/30) ([@hipstersmoothie](https://github.com/hipstersmoothie))
212
257
  - call onResize once the item sizes are known too ([@hipstersmoothie](https://github.com/hipstersmoothie))
213
258
  - fix pixel calculation on onResize ([@hipstersmoothie](https://github.com/hipstersmoothie))
214
259
  - Fix inconsistent percent value structure ([@hipstersmoothie](https://github.com/hipstersmoothie))
@@ -235,17 +280,17 @@ That change is breaking. The version has only received a minor bump because we a
235
280
 
236
281
  #### 🚀 Enhancement
237
282
 
238
- - Add `onResize` prop to Panel [#28](https://github.com/hipstersmoothie/react-window-splitter/pull/28) ([@hipstersmoothie](https://github.com/hipstersmoothie))
283
+ - Add `onResize` prop to Panel [#28](https://github.com/hipstersmoothie/react-splitter/pull/28) ([@hipstersmoothie](https://github.com/hipstersmoothie))
239
284
 
240
285
  #### 🐛 Bug Fix
241
286
 
242
287
  - Add `onResize` prop to `Panel` ([@hipstersmoothie](https://github.com/hipstersmoothie))
243
- - 100 [#26](https://github.com/hipstersmoothie/react-window-splitter/pull/26) ([@hipstersmoothie](https://github.com/hipstersmoothie))
288
+ - 100 [#26](https://github.com/hipstersmoothie/react-splitter/pull/26) ([@hipstersmoothie](https://github.com/hipstersmoothie))
244
289
  - 100 ([@hipstersmoothie](https://github.com/hipstersmoothie))
245
- - add coverage for PRs [#25](https://github.com/hipstersmoothie/react-window-splitter/pull/25) ([@hipstersmoothie](https://github.com/hipstersmoothie))
290
+ - add coverage for PRs [#25](https://github.com/hipstersmoothie/react-splitter/pull/25) ([@hipstersmoothie](https://github.com/hipstersmoothie))
246
291
  - testing ([@hipstersmoothie](https://github.com/hipstersmoothie))
247
292
  - add coverage for PRs ([@hipstersmoothie](https://github.com/hipstersmoothie))
248
- - Add react tests [#24](https://github.com/hipstersmoothie/react-window-splitter/pull/24) ([@hipstersmoothie](https://github.com/hipstersmoothie))
293
+ - Add react tests [#24](https://github.com/hipstersmoothie/react-splitter/pull/24) ([@hipstersmoothie](https://github.com/hipstersmoothie))
249
294
  - add docs for state machine usage ([@hipstersmoothie](https://github.com/hipstersmoothie))
250
295
 
251
296
  #### ⚠️ Pushed to `main`
@@ -276,9 +321,9 @@ That change is breaking. The version has only received a minor bump because we a
276
321
 
277
322
  #### 🐛 Bug Fix
278
323
 
279
- - Fix conditional panel rendering [#22](https://github.com/hipstersmoothie/react-window-splitter/pull/22) ([@hipstersmoothie](https://github.com/hipstersmoothie))
324
+ - Fix conditional panel rendering [#22](https://github.com/hipstersmoothie/react-splitter/pull/22) ([@hipstersmoothie](https://github.com/hipstersmoothie))
280
325
  - Fix conditional panel rendering ([@hipstersmoothie](https://github.com/hipstersmoothie))
281
- - Fix default size throwing of responsive sizing [#21](https://github.com/hipstersmoothie/react-window-splitter/pull/21) ([@hipstersmoothie](https://github.com/hipstersmoothie))
326
+ - Fix default size throwing of responsive sizing [#21](https://github.com/hipstersmoothie/react-splitter/pull/21) ([@hipstersmoothie](https://github.com/hipstersmoothie))
282
327
  - Fix default size throwing of responsive sizing ([@hipstersmoothie](https://github.com/hipstersmoothie))
283
328
 
284
329
  #### Authors: 1
@@ -291,7 +336,7 @@ That change is breaking. The version has only received a minor bump because we a
291
336
 
292
337
  #### 🐛 Bug Fix
293
338
 
294
- - More Tests and Bug Fixes [#18](https://github.com/hipstersmoothie/react-window-splitter/pull/18) ([@hipstersmoothie](https://github.com/hipstersmoothie))
339
+ - More Tests and Bug Fixes [#18](https://github.com/hipstersmoothie/react-splitter/pull/18) ([@hipstersmoothie](https://github.com/hipstersmoothie))
295
340
  - fix overshoot math for non-collapsible panels ([@hipstersmoothie](https://github.com/hipstersmoothie))
296
341
  - remove unused deps ([@hipstersmoothie](https://github.com/hipstersmoothie))
297
342
  - move prepareSnapshot ([@hipstersmoothie](https://github.com/hipstersmoothie))
@@ -312,7 +357,7 @@ That change is breaking. The version has only received a minor bump because we a
312
357
 
313
358
  #### 🐛 Bug Fix
314
359
 
315
- - Split out @window-splitter/state [#16](https://github.com/hipstersmoothie/react-window-splitter/pull/16) ([@hipstersmoothie](https://github.com/hipstersmoothie))
360
+ - Split out @window-splitter/state [#16](https://github.com/hipstersmoothie/react-splitter/pull/16) ([@hipstersmoothie](https://github.com/hipstersmoothie))
316
361
  - make state public ([@hipstersmoothie](https://github.com/hipstersmoothie))
317
362
  - split into packages ([@hipstersmoothie](https://github.com/hipstersmoothie))
318
363
 
@@ -326,7 +371,7 @@ That change is breaking. The version has only received a minor bump because we a
326
371
 
327
372
  #### 🐛 Bug Fix
328
373
 
329
- - Add tests, fix a bunch of bugs [#12](https://github.com/hipstersmoothie/react-window-splitter/pull/12) ([@hipstersmoothie](https://github.com/hipstersmoothie))
374
+ - Add tests, fix a bunch of bugs [#12](https://github.com/hipstersmoothie/react-splitter/pull/12) ([@hipstersmoothie](https://github.com/hipstersmoothie))
330
375
  - fix lint ([@hipstersmoothie](https://github.com/hipstersmoothie))
331
376
  - more tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
332
377
  - fix imperative api bugs ([@hipstersmoothie](https://github.com/hipstersmoothie))
@@ -340,7 +385,7 @@ That change is breaking. The version has only received a minor bump because we a
340
385
  - fix conditional panel rendering ([@hipstersmoothie](https://github.com/hipstersmoothie))
341
386
  - fix commited layout ([@hipstersmoothie](https://github.com/hipstersmoothie))
342
387
  - Merge remote-tracking branch 'origin/main' into tests ([@hipstersmoothie](https://github.com/hipstersmoothie))
343
- - fix react preset in config-eslint package [#11](https://github.com/hipstersmoothie/react-window-splitter/pull/11) ([@Rel1cx](https://github.com/Rel1cx))
388
+ - fix react preset in config-eslint package [#11](https://github.com/hipstersmoothie/react-splitter/pull/11) ([@Rel1cx](https://github.com/Rel1cx))
344
389
  - switch to 1fr and fix measurement in tests (closes #3) ([@hipstersmoothie](https://github.com/hipstersmoothie))
345
390
  - set initial children sizes ([@hipstersmoothie](https://github.com/hipstersmoothie))
346
391
  - fix react preset in config-eslint package ([@Rel1cx](https://github.com/Rel1cx))
@@ -367,7 +412,7 @@ That change is breaking. The version has only received a minor bump because we a
367
412
 
368
413
  #### 🚀 Enhancement
369
414
 
370
- - Collapse Animation [#10](https://github.com/hipstersmoothie/react-window-splitter/pull/10) ([@hipstersmoothie](https://github.com/hipstersmoothie))
415
+ - Collapse Animation [#10](https://github.com/hipstersmoothie/react-splitter/pull/10) ([@hipstersmoothie](https://github.com/hipstersmoothie))
371
416
 
372
417
  #### 🐛 Bug Fix
373
418
 
@@ -477,7 +522,7 @@ That change is breaking. The version has only received a minor bump because we a
477
522
 
478
523
  #### 🐛 Bug Fix
479
524
 
480
- - pr workflow [#1](https://github.com/hipstersmoothie/react-window-splitter/pull/1) ([@hipstersmoothie](https://github.com/hipstersmoothie))
525
+ - pr workflow [#1](https://github.com/hipstersmoothie/react-splitter/pull/1) ([@hipstersmoothie](https://github.com/hipstersmoothie))
481
526
  - pr workflow ([@hipstersmoothie](https://github.com/hipstersmoothie))
482
527
 
483
528
  #### ⚠️ Pushed to `main`
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  A state machine for a WAI-ARIA compliant window splitter.
4
4
  This package can be used to build your own window splitter for a framework or even vanilla html/js.
5
5
 
6
- If you're using a framework like React, you can use the `react-window-splitter` package instead.
6
+ If you're using a framework like React, you should use the framework package instead.
7
7
 
8
8
  [Read the full docs](https://react-window-splitter-six.vercel.app)
9
9
 
@@ -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/react-window-splitter/blob/main/packages/state/src/index.ts).
98
+ For a full list of events and their payloads see the [source code](https://github.com/hipstersmoothie/react-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
@@ -11,7 +11,7 @@ export interface ParsedPixelUnit {
11
11
  type: "pixel";
12
12
  value: Big.Big;
13
13
  }
14
- type ParsedUnit = ParsedPercentUnit | ParsedPixelUnit;
14
+ export type ParsedUnit = ParsedPercentUnit | ParsedPixelUnit;
15
15
  export declare function makePercentUnit(value: number): ParsedPercentUnit;
16
16
  export declare function makePixelUnit(value: number): ParsedPixelUnit;
17
17
  interface MoveMoveEvent {
@@ -130,7 +130,7 @@ export type InitializePanelHandleData = Omit<PanelHandleData, "type" | "size"> &
130
130
  interface RegisterPanelHandleEvent {
131
131
  /** Register a new panel handle with the state machine */
132
132
  type: "registerPanelHandle";
133
- data: InitializePanelHandleData;
133
+ data: PanelHandleData;
134
134
  }
135
135
  interface UnregisterPanelHandleEvent {
136
136
  /** Remove a panel handle from the state machine */
@@ -279,6 +279,7 @@ export declare function getPanelWithId(context: GroupMachineContextValue, panelI
279
279
  * Will first check the left panel then the right.
280
280
  */
281
281
  export declare function getCollapsiblePanelForHandleId(context: GroupMachineContextValue, handleId: string): PanelData;
282
+ export declare function formatUnit(unit: ParsedUnit): Unit;
282
283
  export declare function getPanelGroupPixelSizes(context: GroupMachineContextValue): number[];
283
284
  export declare function getPanelPixelSize(context: GroupMachineContextValue, panelId: string): number;
284
285
  export declare function getPanelGroupPercentageSizes(context: GroupMachineContextValue): number[];
@@ -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,KAAK,UAAU,GAAG,iBAAiB,GAAG,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,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;AAqQD,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,+CAwMjC,iBAAiB;aApMjB,KAAK;GAof3B;AAED,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -18,6 +18,7 @@ exports.getUnitPercentageValue = getUnitPercentageValue;
18
18
  exports.getGroupSize = getGroupSize;
19
19
  exports.getPanelWithId = getPanelWithId;
20
20
  exports.getCollapsiblePanelForHandleId = getCollapsiblePanelForHandleId;
21
+ exports.formatUnit = formatUnit;
21
22
  exports.getPanelGroupPixelSizes = getPanelGroupPixelSizes;
22
23
  exports.getPanelPixelSize = getPanelPixelSize;
23
24
  exports.getPanelGroupPercentageSizes = getPanelGroupPercentageSizes;
@@ -941,7 +942,7 @@ function groupMachine(input, onUpdate) {
941
942
  };
942
943
  let locked = false;
943
944
  const context = {
944
- size: { width: 0, height: 0 },
945
+ size: input.size || { width: 0, height: 0 },
945
946
  items: input.items || [],
946
947
  orientation: input.orientation || "horizontal",
947
948
  dragOvershoot: new big_js_1.default(0),
@@ -1020,7 +1021,10 @@ function groupMachine(input, onUpdate) {
1020
1021
  handleId: handle.item.id,
1021
1022
  type: "dragHandle",
1022
1023
  controlled: event.controlled,
1023
- value: dragHandlePayload({ delta, orientation: context.orientation }),
1024
+ value: dragHandlePayload({
1025
+ delta: delta,
1026
+ orientation: context.orientation,
1027
+ }),
1024
1028
  });
1025
1029
  assign(context, newContext);
1026
1030
  },
@@ -1122,17 +1126,7 @@ function groupMachine(input, onUpdate) {
1122
1126
  actions.onAutosave();
1123
1127
  break;
1124
1128
  case "registerPanelHandle": {
1125
- const unit = typeof event.data.size === "string"
1126
- ? parseUnit(event.data.size)
1127
- : event.data.size;
1128
- context.items = addDeDuplicatedItems(context.items, {
1129
- type: "handle",
1130
- ...event.data,
1131
- size: {
1132
- type: "pixel",
1133
- value: new big_js_1.default(unit.value),
1134
- },
1135
- });
1129
+ context.items = addDeDuplicatedItems(context.items, event.data);
1136
1130
  break;
1137
1131
  }
1138
1132
  case "unregisterPanelHandle":
@@ -1296,23 +1290,27 @@ function groupMachine(input, onUpdate) {
1296
1290
  actions.notifyCollapseToggle(event);
1297
1291
  }
1298
1292
  else {
1299
- transition("togglingCollapse");
1300
- abortController.abort();
1301
- animationActor(context, event, send, abortController).then((output) => {
1302
- actions.onAnimationEnd(output);
1303
- transition("idle");
1304
- });
1293
+ const panel = getPanelWithId(context, event.panelId);
1294
+ if (!panel.collapsed) {
1295
+ transition("togglingCollapse");
1296
+ abortController.abort();
1297
+ animationActor(context, event, send, abortController).then((output) => {
1298
+ actions.onAnimationEnd(output);
1299
+ transition("idle");
1300
+ });
1301
+ }
1305
1302
  }
1306
1303
  break;
1307
1304
  case "expandPanel":
1308
1305
  if (guards.cannotExpandPanel(event)) {
1309
1306
  break;
1310
1307
  }
1308
+ else if (guards.shouldNotifyCollapseToggle(event)) {
1309
+ actions.notifyCollapseToggle(event);
1310
+ }
1311
1311
  else {
1312
- if (guards.shouldNotifyCollapseToggle(event)) {
1313
- actions.notifyCollapseToggle(event);
1314
- }
1315
- else {
1312
+ const panel = getPanelWithId(context, event.panelId);
1313
+ if (panel.collapsed) {
1316
1314
  transition("togglingCollapse");
1317
1315
  abortController.abort();
1318
1316
  animationActor(context, event, send, abortController).then((output) => {