@surdeddd/wmkit 0.9.2 → 0.11.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/dist/react.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkZWUVWRUS_cjs = require('./chunk-ZWUVWRUS.cjs');
3
+ var chunkVHS2YX3A_cjs = require('./chunk-VHS2YX3A.cjs');
4
4
  require('./chunk-BDHFXEJN.cjs');
5
5
  var react = require('react');
6
6
 
7
7
  function useWindowManager(options) {
8
- const [wm] = react.useState(() => chunkZWUVWRUS_cjs.createWindowManager(options));
8
+ const [wm] = react.useState(() => chunkVHS2YX3A_cjs.createWindowManager(options));
9
9
  react.useEffect(() => () => wm.destroy(), [wm]);
10
10
  return wm;
11
11
  }
@@ -18,7 +18,7 @@ function useWmWindow(wm, id) {
18
18
  }
19
19
  function useDesktop(wm, options) {
20
20
  const optionsRef = react.useRef(options);
21
- const binder = react.useMemo(() => chunkZWUVWRUS_cjs.createDesktopBinder(wm, optionsRef.current), [wm]);
21
+ const binder = react.useMemo(() => chunkVHS2YX3A_cjs.createDesktopBinder(wm, optionsRef.current), [wm]);
22
22
  react.useEffect(() => () => binder.destroy(), [binder]);
23
23
  const cleanupRef = react.useRef(null);
24
24
  const ref = react.useCallback(
package/dist/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-TUGQX3CX.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-V7OTLDVK.js';
2
2
  import './chunk-5XVIC5LH.js';
3
3
  import { useState, useEffect, useSyncExternalStore, useCallback, useRef, useMemo } from 'react';
4
4
 
package/dist/solid.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkZWUVWRUS_cjs = require('./chunk-ZWUVWRUS.cjs');
3
+ var chunkVHS2YX3A_cjs = require('./chunk-VHS2YX3A.cjs');
4
4
  require('./chunk-BDHFXEJN.cjs');
5
5
  var solidJs = require('solid-js');
6
6
 
@@ -8,7 +8,7 @@ function disposeWithOwner(dispose) {
8
8
  if (solidJs.getOwner()) solidJs.onCleanup(dispose);
9
9
  }
10
10
  function useWindowManager(options) {
11
- const wm = chunkZWUVWRUS_cjs.createWindowManager(options);
11
+ const wm = chunkVHS2YX3A_cjs.createWindowManager(options);
12
12
  disposeWithOwner(() => wm.destroy());
13
13
  return wm;
14
14
  }
@@ -22,7 +22,7 @@ function useWmWindow(wm, id) {
22
22
  return () => state().windows[typeof id === "function" ? id() : id];
23
23
  }
24
24
  function createDesktop(wm, options) {
25
- const binder = chunkZWUVWRUS_cjs.createDesktopBinder(wm, options);
25
+ const binder = chunkVHS2YX3A_cjs.createDesktopBinder(wm, options);
26
26
  disposeWithOwner(() => binder.destroy());
27
27
  return {
28
28
  binder,
package/dist/solid.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-TUGQX3CX.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-V7OTLDVK.js';
2
2
  import './chunk-5XVIC5LH.js';
3
3
  import { createSignal, getOwner, onCleanup } from 'solid-js';
4
4
 
package/dist/svelte.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkZWUVWRUS_cjs = require('./chunk-ZWUVWRUS.cjs');
3
+ var chunkVHS2YX3A_cjs = require('./chunk-VHS2YX3A.cjs');
4
4
  require('./chunk-BDHFXEJN.cjs');
5
5
 
6
6
  // src/adapters/svelte.ts
7
7
  function createManager(options) {
8
- return chunkZWUVWRUS_cjs.createWindowManager(options);
8
+ return chunkVHS2YX3A_cjs.createWindowManager(options);
9
9
  }
10
10
  function wmStore(wm) {
11
11
  return {
@@ -31,7 +31,7 @@ function wmWindowStore(wm, id) {
31
31
  };
32
32
  }
33
33
  function createDesktop(wm, options) {
34
- const binder = chunkZWUVWRUS_cjs.createDesktopBinder(wm, options);
34
+ const binder = chunkVHS2YX3A_cjs.createDesktopBinder(wm, options);
35
35
  return {
36
36
  binder,
37
37
  desktop(node) {
package/dist/svelte.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-TUGQX3CX.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-V7OTLDVK.js';
2
2
  import './chunk-5XVIC5LH.js';
3
3
 
4
4
  // src/adapters/svelte.ts
package/dist/vue.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkZWUVWRUS_cjs = require('./chunk-ZWUVWRUS.cjs');
3
+ var chunkVHS2YX3A_cjs = require('./chunk-VHS2YX3A.cjs');
4
4
  require('./chunk-BDHFXEJN.cjs');
5
5
  var vue = require('vue');
6
6
 
@@ -8,7 +8,7 @@ function disposeWithScope(dispose) {
8
8
  if (vue.getCurrentScope()) vue.onScopeDispose(dispose);
9
9
  }
10
10
  function useWindowManager(options) {
11
- const wm = chunkZWUVWRUS_cjs.createWindowManager(options);
11
+ const wm = chunkVHS2YX3A_cjs.createWindowManager(options);
12
12
  disposeWithScope(() => wm.destroy());
13
13
  return wm;
14
14
  }
@@ -26,7 +26,7 @@ function useWmWindow(wm, id) {
26
26
  return vue.computed(() => state.value.windows[vue.toValue(id)]);
27
27
  }
28
28
  function useDesktop(wm, target, options) {
29
- const binder = chunkZWUVWRUS_cjs.createDesktopBinder(wm, options);
29
+ const binder = chunkVHS2YX3A_cjs.createDesktopBinder(wm, options);
30
30
  disposeWithScope(() => binder.destroy());
31
31
  vue.watch(
32
32
  target,
package/dist/vue.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-TUGQX3CX.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-V7OTLDVK.js';
2
2
  import './chunk-5XVIC5LH.js';
3
3
  import { shallowRef, computed, toValue, watch, getCurrentScope, onScopeDispose } from 'vue';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surdeddd/wmkit",
3
- "version": "0.9.2",
3
+ "version": "0.11.0",
4
4
  "description": "Headless, framework-agnostic window manager for the web — draggable, resizable, snappable windows with first-class accessibility and 60fps performance",
5
5
  "keywords": [
6
6
  "window-manager",