@window-splitter/state 0.5.7 → 0.6.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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@window-splitter/state",
4
4
  "sideEffects": false,
5
- "version": "0.5.7",
5
+ "version": "0.6.0",
6
6
  "description": "A state machine for a WAI-ARIA compliant window splitter",
7
7
  "homepage": "https://react-window-splitter-six.vercel.app",
8
8
  "repository": {
@@ -28,25 +28,24 @@
28
28
  },
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
- "@internal/eslint-config": "0.5.7",
31
+ "@internal/eslint-config": "0.6.0",
32
32
  "@testing-library/react": "^16.0.0",
33
33
  "@types/big.js": "^6.2.2",
34
- "@vitest/browser": "^2.0.5",
35
- "@vitest/coverage-istanbul": "^2.0.5",
34
+ "@vitest/browser": "^3.1.2",
35
+ "@vitest/coverage-istanbul": "^3.1.2",
36
36
  "eslint": "^9.9.0",
37
37
  "framer-motion": "^11.3.28",
38
38
  "jsdom": "^24.1.1",
39
39
  "playwright": "^1.46.0",
40
40
  "tshy": "^3.0.2",
41
41
  "typescript": "^5.5.4",
42
- "vitest": "^2.0.5"
42
+ "vitest": "^3.1.2"
43
43
  },
44
44
  "dependencies": {
45
45
  "@react-spring/rafz": "^9.7.4",
46
46
  "big.js": "^6.2.1",
47
47
  "tiny-cookie": "^2.5.1",
48
- "tiny-invariant": "^1.3.3",
49
- "xstate": "^5.17.4"
48
+ "tiny-invariant": "^1.3.3"
50
49
  },
51
50
  "tshy": {
52
51
  "exclude": [
@@ -79,5 +78,5 @@
79
78
  "window"
80
79
  ],
81
80
  "types": "./dist/commonjs/index.d.ts",
82
- "gitHead": "9035648b7ae8ffe3bb6d372bf274c6975f3f521d"
81
+ "gitHead": "ebd20a0c93b75eeb8a219da6f74b89cf3b6aa70c"
83
82
  }
@@ -2,152 +2,138 @@
2
2
 
3
3
  exports[`utils > prepareSnapshot 1`] = `
4
4
  {
5
- "children": {},
6
- "context": {
7
- "dragOvershoot": "0",
8
- "groupId": "group",
9
- "items": [
10
- {
11
- "collapseIsControlled": false,
12
- "collapsedSize": {
13
- "type": "pixel",
14
- "value": "0",
15
- },
16
- "currentValue": {
17
- "type": "pixel",
18
- "value": "-1",
19
- },
20
- "id": "panel-1",
21
- "lastKnownSize": {
22
- "height": 200,
23
- "width": 190,
24
- },
25
- "max": "1fr",
26
- "min": {
27
- "type": "pixel",
28
- "value": "100",
29
- },
30
- "onResize": {},
31
- "type": "panel",
32
- },
33
- {
34
- "id": "resizer-1",
35
- "size": {
36
- "type": "pixel",
37
- "value": "10",
38
- },
39
- "type": "handle",
40
- },
41
- {
42
- "collapseIsControlled": false,
43
- "collapsed": false,
44
- "collapsedSize": {
45
- "type": "pixel",
46
- "value": "50",
47
- },
48
- "collapsible": true,
49
- "currentValue": {
50
- "type": "pixel",
51
- "value": "-1",
52
- },
53
- "id": "panel-2",
54
- "lastKnownSize": {
55
- "height": 200,
56
- "width": 300,
57
- },
58
- "max": {
59
- "type": "pixel",
60
- "value": "300",
61
- },
62
- "min": {
63
- "type": "pixel",
64
- "value": "0",
65
- },
66
- "onResize": {},
67
- "type": "panel",
68
- },
69
- ],
70
- "orientation": "horizontal",
71
- "size": {
72
- "height": 200,
73
- "width": 500,
5
+ "dragOvershoot": "0",
6
+ "groupId": "group",
7
+ "items": [
8
+ {
9
+ "collapseIsControlled": false,
10
+ "collapsedSize": {
11
+ "type": "pixel",
12
+ "value": "0",
13
+ },
14
+ "currentValue": {
15
+ "type": "pixel",
16
+ "value": "-1",
17
+ },
18
+ "id": "panel-1",
19
+ "lastKnownSize": {
20
+ "height": 200,
21
+ "width": 190,
22
+ },
23
+ "max": "1fr",
24
+ "min": {
25
+ "type": "pixel",
26
+ "value": "100",
27
+ },
28
+ "onResize": {},
29
+ "type": "panel",
30
+ },
31
+ {
32
+ "id": "resizer-1",
33
+ "size": {
34
+ "type": "pixel",
35
+ "value": "10",
36
+ },
37
+ "type": "handle",
38
+ },
39
+ {
40
+ "collapseIsControlled": false,
41
+ "collapsed": false,
42
+ "collapsedSize": {
43
+ "type": "pixel",
44
+ "value": "50",
45
+ },
46
+ "collapsible": true,
47
+ "currentValue": {
48
+ "type": "pixel",
49
+ "value": "-1",
50
+ },
51
+ "id": "panel-2",
52
+ "lastKnownSize": {
53
+ "height": 200,
54
+ "width": 300,
55
+ },
56
+ "max": {
57
+ "type": "pixel",
58
+ "value": "300",
59
+ },
60
+ "min": {
61
+ "type": "pixel",
62
+ "value": "0",
63
+ },
64
+ "onResize": {},
65
+ "type": "panel",
74
66
  },
67
+ ],
68
+ "orientation": "horizontal",
69
+ "size": {
70
+ "height": 200,
71
+ "width": 500,
75
72
  },
76
- "historyValue": {},
77
- "status": "active",
78
- "tags": [],
79
- "value": "idle",
80
73
  }
81
74
  `;
82
75
 
83
76
  exports[`utils > prepareSnapshot 2`] = `
84
77
  {
85
- "children": {},
86
- "context": {
87
- "dragOvershoot": "0",
88
- "groupId": "group",
89
- "items": [
90
- {
91
- "collapseIsControlled": false,
92
- "collapsedSize": {
93
- "type": "pixel",
94
- "value": "0",
95
- },
96
- "currentValue": {
97
- "type": "percent",
98
- "value": "0.59183673469387755102",
99
- },
100
- "id": "panel-1",
101
- "max": "1fr",
102
- "min": {
103
- "type": "pixel",
104
- "value": "100",
105
- },
106
- "onResize": {},
107
- "type": "panel",
108
- },
109
- {
110
- "id": "resizer-1",
111
- "size": {
112
- "type": "pixel",
113
- "value": "10",
114
- },
115
- "type": "handle",
116
- },
117
- {
118
- "collapseIsControlled": false,
119
- "collapsed": false,
120
- "collapsedSize": {
121
- "type": "pixel",
122
- "value": "50",
123
- },
124
- "collapsible": true,
125
- "currentValue": {
126
- "type": "percent",
127
- "value": "0.40816326530612244898",
128
- },
129
- "id": "panel-2",
130
- "max": {
131
- "type": "pixel",
132
- "value": "300",
133
- },
134
- "min": {
135
- "type": "pixel",
136
- "value": "0",
137
- },
138
- "onResize": {},
139
- "type": "panel",
140
- },
141
- ],
142
- "orientation": "horizontal",
143
- "size": {
144
- "height": 200,
145
- "width": 500,
78
+ "dragOvershoot": "0",
79
+ "groupId": "group",
80
+ "items": [
81
+ {
82
+ "collapseIsControlled": false,
83
+ "collapsedSize": {
84
+ "type": "pixel",
85
+ "value": "0",
86
+ },
87
+ "currentValue": {
88
+ "type": "percent",
89
+ "value": "0.59183673469387755102",
90
+ },
91
+ "id": "panel-1",
92
+ "max": "1fr",
93
+ "min": {
94
+ "type": "pixel",
95
+ "value": "100",
96
+ },
97
+ "onResize": {},
98
+ "type": "panel",
99
+ },
100
+ {
101
+ "id": "resizer-1",
102
+ "size": {
103
+ "type": "pixel",
104
+ "value": "10",
105
+ },
106
+ "type": "handle",
107
+ },
108
+ {
109
+ "collapseIsControlled": false,
110
+ "collapsed": false,
111
+ "collapsedSize": {
112
+ "type": "pixel",
113
+ "value": "50",
114
+ },
115
+ "collapsible": true,
116
+ "currentValue": {
117
+ "type": "percent",
118
+ "value": "0.40816326530612244898",
119
+ },
120
+ "id": "panel-2",
121
+ "max": {
122
+ "type": "pixel",
123
+ "value": "300",
124
+ },
125
+ "min": {
126
+ "type": "pixel",
127
+ "value": "0",
128
+ },
129
+ "onResize": {},
130
+ "type": "panel",
146
131
  },
132
+ ],
133
+ "orientation": "horizontal",
134
+ "size": {
135
+ "height": 200,
136
+ "width": 500,
147
137
  },
148
- "historyValue": {},
149
- "status": "active",
150
- "tags": [],
151
- "value": "idle",
152
138
  }
153
139
  `;