@window-splitter/vue 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.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +17 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +827 -810
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/PanelGroup.vue +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@window-splitter/vue",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"homepage": "https://react-window-splitter-six.vercel.app",
|
|
7
7
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"description": "A WAI-ARIA compliant window splitter for Vue.",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@internal/eslint-config": "1.
|
|
41
|
+
"@internal/eslint-config": "1.2.0",
|
|
42
42
|
"@storybook/vue3": "^8.6.12",
|
|
43
43
|
"@storybook/vue3-vite": "^8.6.12",
|
|
44
44
|
"@testing-library/dom": "^10.4.0",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"vue": "^3.5.13"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@window-splitter/interface": "1.
|
|
64
|
-
"@window-splitter/state": "1.
|
|
63
|
+
"@window-splitter/interface": "1.2.0",
|
|
64
|
+
"@window-splitter/state": "1.2.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"vue": ">=3.x"
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
},
|
|
81
81
|
"types": "./dist/index.d.ts",
|
|
82
82
|
"module": "./dist/index.mjs",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "0349b0b301c05e2a1a9b281abe7b93cccc9d9b9b"
|
|
84
84
|
}
|
package/src/PanelGroup.vue
CHANGED
|
@@ -56,6 +56,7 @@ const isPrerender = ref(true);
|
|
|
56
56
|
provide("isPrerender", isPrerender);
|
|
57
57
|
|
|
58
58
|
const groupId = autosaveId || id || useId();
|
|
59
|
+
const elementRef = ref<HTMLDivElement | null>(null);
|
|
59
60
|
const [initialState, send, machineState] = groupMachine(
|
|
60
61
|
{
|
|
61
62
|
orientation: orientation,
|
|
@@ -67,6 +68,7 @@ const [initialState, send, machineState] = groupMachine(
|
|
|
67
68
|
(s) => {
|
|
68
69
|
context.value = { ...s };
|
|
69
70
|
},
|
|
71
|
+
() => elementRef.value,
|
|
70
72
|
);
|
|
71
73
|
|
|
72
74
|
onMounted(() => {
|
|
@@ -88,8 +90,6 @@ provide("send", send);
|
|
|
88
90
|
provide("state", context);
|
|
89
91
|
provide("id", machineState);
|
|
90
92
|
|
|
91
|
-
const elementRef = ref<HTMLDivElement | null>(null);
|
|
92
|
-
|
|
93
93
|
onMounted(() => {
|
|
94
94
|
const observer = new ResizeObserver(([entry]) => {
|
|
95
95
|
if (!entry) return;
|