@window-splitter/svelte 1.1.4 → 1.2.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,6 +1,6 @@
1
1
 
2
2
  
3
- > @window-splitter/svelte@1.1.3 build /Users/andrew/Documents/window-splitter/packages/svelte
3
+ > @window-splitter/svelte@1.1.4 build /Users/andrew/Documents/window-splitter/packages/svelte
4
4
  > svelte-package
5
5
 
6
6
  src/lib -> dist
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ # v1.2.0 (Wed Jul 08 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - apply animations directly to dom [#85](https://github.com/hipstersmoothie/window-splitter/pull/85) ([@hipstersmoothie](https://github.com/hipstersmoothie) [@vikr01](https://github.com/vikr01))
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - apply animations directly to dom ([@hipstersmoothie](https://github.com/hipstersmoothie))
10
+
11
+ #### Authors: 2
12
+
13
+ - Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
14
+ - Vik R ([@vikr01](https://github.com/vikr01))
15
+
16
+ ---
17
+
1
18
  # v1.1.1 (Mon Jul 14 2025)
2
19
 
3
20
  #### 🐛 Bug Fix
@@ -48,6 +48,8 @@
48
48
  const defaultId = $props.id();
49
49
  const id = autosaveId || defaultId;
50
50
 
51
+ let elementRef = $state<HTMLDivElement>();
52
+
51
53
  const [initialState, send, machineState] = groupMachine(
52
54
  {
53
55
  orientation,
@@ -56,7 +58,8 @@
56
58
  shiftAmount,
57
59
  ...(snapshot ? prepareSnapshot(snapshot) : undefined),
58
60
  },
59
- (s) => updateContext(s)
61
+ (s) => updateContext(s),
62
+ () => elementRef ?? null
60
63
  );
61
64
 
62
65
  const context = $state<GroupMachineContextValue>(initialState);
@@ -77,8 +80,6 @@
77
80
  isPrerender.current = false;
78
81
  });
79
82
 
80
- let elementRef = $state<HTMLDivElement>();
81
-
82
83
  $effect(() => {
83
84
  const observer = new ResizeObserver(([entry]) => {
84
85
  if (!entry) return;
@@ -1 +1 @@
1
- {"version":3,"file":"PanelGroup.svelte.d.ts","sourceRoot":"","sources":["../src/lib/PanelGroup.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAWxE,OAAO,KAAK,EAA4B,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGpD,MAAM,WAAW,eACf,SAAQ,qBAAqB,EAC3B,cAAc,CAAC,cAAc,CAAC;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ;AA0IH,QAAA,MAAM,UAAU;sBAD0P,OAAO,gBAAgB;;;;;;wBA3BnQ,KAAK,CAAC,IAAI,CAAC;MA4Be,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"PanelGroup.svelte.d.ts","sourceRoot":"","sources":["../src/lib/PanelGroup.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAWxE,OAAO,KAAK,EAA4B,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGpD,MAAM,WAAW,eACf,SAAQ,qBAAqB,EAC3B,cAAc,CAAC,cAAc,CAAC;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ;AA2IH,QAAA,MAAM,UAAU;sBAD0P,OAAO,gBAAgB;;;;;;wBA3BnQ,KAAK,CAAC,IAAI,CAAC;MA4Be,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@window-splitter/svelte",
4
4
  "sideEffects": false,
5
- "version": "1.1.4",
5
+ "version": "1.2.0",
6
6
  "description": "A WAI-ARIA compliant window splitter for Svelte.",
7
7
  "repository": {
8
8
  "url": "https://github.com/hipstersmoothie/window-splitter",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "license": "MIT",
32
32
  "devDependencies": {
33
- "@internal/eslint-config": "1.1.4",
33
+ "@internal/eslint-config": "1.2.0",
34
34
  "@rsbuild/core": "^1.3.12",
35
35
  "@rsdoctor/rspack-plugin": "^1.0.2",
36
36
  "@storybook/addon-svelte-csf": "^5.0.0-next.0",
@@ -60,8 +60,8 @@
60
60
  "svelte": ">=5.x"
61
61
  },
62
62
  "dependencies": {
63
- "@window-splitter/interface": "1.1.4",
64
- "@window-splitter/state": "1.1.4"
63
+ "@window-splitter/interface": "1.2.0",
64
+ "@window-splitter/state": "1.2.0"
65
65
  },
66
66
  "type": "module",
67
67
  "exports": {
@@ -78,5 +78,5 @@
78
78
  "resizable",
79
79
  "window"
80
80
  ],
81
- "gitHead": "df18ce3b7488d52f8d91ae7000f5dcaec65f6bdd"
81
+ "gitHead": "0349b0b301c05e2a1a9b281abe7b93cccc9d9b9b"
82
82
  }
@@ -48,6 +48,8 @@
48
48
  const defaultId = $props.id();
49
49
  const id = autosaveId || defaultId;
50
50
 
51
+ let elementRef = $state<HTMLDivElement>();
52
+
51
53
  const [initialState, send, machineState] = groupMachine(
52
54
  {
53
55
  orientation,
@@ -56,7 +58,8 @@
56
58
  shiftAmount,
57
59
  ...(snapshot ? prepareSnapshot(snapshot) : undefined),
58
60
  },
59
- (s) => updateContext(s)
61
+ (s) => updateContext(s),
62
+ () => elementRef ?? null
60
63
  );
61
64
 
62
65
  const context = $state<GroupMachineContextValue>(initialState);
@@ -77,8 +80,6 @@
77
80
  isPrerender.current = false;
78
81
  });
79
82
 
80
- let elementRef = $state<HTMLDivElement>();
81
-
82
83
  $effect(() => {
83
84
  const observer = new ResizeObserver(([entry]) => {
84
85
  if (!entry) return;