@surdeddd/wmkit 0.7.1 → 0.7.2

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/index.cjs CHANGED
@@ -1,76 +1,76 @@
1
1
  'use strict';
2
2
 
3
- var chunk2VRCYMKH_cjs = require('./chunk-2VRCYMKH.cjs');
3
+ var chunkNJAI5R4J_cjs = require('./chunk-NJAI5R4J.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "applyAspect", {
8
8
  enumerable: true,
9
- get: function () { return chunk2VRCYMKH_cjs.applyAspect; }
9
+ get: function () { return chunkNJAI5R4J_cjs.applyAspect; }
10
10
  });
11
11
  Object.defineProperty(exports, "attachDesktop", {
12
12
  enumerable: true,
13
- get: function () { return chunk2VRCYMKH_cjs.attachDesktop; }
13
+ get: function () { return chunkNJAI5R4J_cjs.attachDesktop; }
14
14
  });
15
15
  Object.defineProperty(exports, "boundsEqual", {
16
16
  enumerable: true,
17
- get: function () { return chunk2VRCYMKH_cjs.boundsEqual; }
17
+ get: function () { return chunkNJAI5R4J_cjs.boundsEqual; }
18
18
  });
19
19
  Object.defineProperty(exports, "clamp", {
20
20
  enumerable: true,
21
- get: function () { return chunk2VRCYMKH_cjs.clamp; }
21
+ get: function () { return chunkNJAI5R4J_cjs.clamp; }
22
22
  });
23
23
  Object.defineProperty(exports, "clampSize", {
24
24
  enumerable: true,
25
- get: function () { return chunk2VRCYMKH_cjs.clampSize; }
25
+ get: function () { return chunkNJAI5R4J_cjs.clampSize; }
26
26
  });
27
27
  Object.defineProperty(exports, "clampToViewport", {
28
28
  enumerable: true,
29
- get: function () { return chunk2VRCYMKH_cjs.clampToViewport; }
29
+ get: function () { return chunkNJAI5R4J_cjs.clampToViewport; }
30
30
  });
31
31
  Object.defineProperty(exports, "createAnnouncer", {
32
32
  enumerable: true,
33
- get: function () { return chunk2VRCYMKH_cjs.createAnnouncer; }
33
+ get: function () { return chunkNJAI5R4J_cjs.createAnnouncer; }
34
34
  });
35
35
  Object.defineProperty(exports, "createDesktopBinder", {
36
36
  enumerable: true,
37
- get: function () { return chunk2VRCYMKH_cjs.createDesktopBinder; }
37
+ get: function () { return chunkNJAI5R4J_cjs.createDesktopBinder; }
38
38
  });
39
39
  Object.defineProperty(exports, "createEmitter", {
40
40
  enumerable: true,
41
- get: function () { return chunk2VRCYMKH_cjs.createEmitter; }
41
+ get: function () { return chunkNJAI5R4J_cjs.createEmitter; }
42
42
  });
43
43
  Object.defineProperty(exports, "createWindowManager", {
44
44
  enumerable: true,
45
- get: function () { return chunk2VRCYMKH_cjs.createWindowManager; }
45
+ get: function () { return chunkNJAI5R4J_cjs.createWindowManager; }
46
46
  });
47
47
  Object.defineProperty(exports, "defaultMessages", {
48
48
  enumerable: true,
49
- get: function () { return chunk2VRCYMKH_cjs.defaultMessages; }
49
+ get: function () { return chunkNJAI5R4J_cjs.defaultMessages; }
50
50
  });
51
51
  Object.defineProperty(exports, "detectSnapZone", {
52
52
  enumerable: true,
53
- get: function () { return chunk2VRCYMKH_cjs.detectSnapZone; }
53
+ get: function () { return chunkNJAI5R4J_cjs.detectSnapZone; }
54
54
  });
55
55
  Object.defineProperty(exports, "flipFromTarget", {
56
56
  enumerable: true,
57
- get: function () { return chunk2VRCYMKH_cjs.flipFromTarget; }
57
+ get: function () { return chunkNJAI5R4J_cjs.flipFromTarget; }
58
58
  });
59
59
  Object.defineProperty(exports, "flipToTarget", {
60
60
  enumerable: true,
61
- get: function () { return chunk2VRCYMKH_cjs.flipToTarget; }
61
+ get: function () { return chunkNJAI5R4J_cjs.flipToTarget; }
62
62
  });
63
63
  Object.defineProperty(exports, "magnetize", {
64
64
  enumerable: true,
65
- get: function () { return chunk2VRCYMKH_cjs.magnetize; }
65
+ get: function () { return chunkNJAI5R4J_cjs.magnetize; }
66
66
  });
67
67
  Object.defineProperty(exports, "prefersReducedMotion", {
68
68
  enumerable: true,
69
- get: function () { return chunk2VRCYMKH_cjs.prefersReducedMotion; }
69
+ get: function () { return chunkNJAI5R4J_cjs.prefersReducedMotion; }
70
70
  });
71
71
  Object.defineProperty(exports, "zoneBounds", {
72
72
  enumerable: true,
73
- get: function () { return chunk2VRCYMKH_cjs.zoneBounds; }
73
+ get: function () { return chunkNJAI5R4J_cjs.zoneBounds; }
74
74
  });
75
75
  //# sourceMappingURL=index.cjs.map
76
76
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { applyAspect, attachDesktop, boundsEqual, clamp, clampSize, clampToViewport, createAnnouncer, createDesktopBinder, createEmitter, createWindowManager, defaultMessages, detectSnapZone, flipFromTarget, flipToTarget, magnetize, prefersReducedMotion, zoneBounds } from './chunk-WOCAQEM6.js';
1
+ export { applyAspect, attachDesktop, boundsEqual, clamp, clampSize, clampToViewport, createAnnouncer, createDesktopBinder, createEmitter, createWindowManager, defaultMessages, detectSnapZone, flipFromTarget, flipToTarget, magnetize, prefersReducedMotion, zoneBounds } from './chunk-FOWW4LXS.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/dist/react.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk2VRCYMKH_cjs = require('./chunk-2VRCYMKH.cjs');
3
+ var chunkNJAI5R4J_cjs = require('./chunk-NJAI5R4J.cjs');
4
4
  var react = require('react');
5
5
 
6
6
  function useWindowManager(options) {
7
- const [wm] = react.useState(() => chunk2VRCYMKH_cjs.createWindowManager(options));
7
+ const [wm] = react.useState(() => chunkNJAI5R4J_cjs.createWindowManager(options));
8
8
  react.useEffect(() => () => wm.destroy(), [wm]);
9
9
  return wm;
10
10
  }
@@ -17,7 +17,7 @@ function useWmWindow(wm, id) {
17
17
  }
18
18
  function useDesktop(wm, options) {
19
19
  const optionsRef = react.useRef(options);
20
- const binder = react.useMemo(() => chunk2VRCYMKH_cjs.createDesktopBinder(wm, optionsRef.current), [wm]);
20
+ const binder = react.useMemo(() => chunkNJAI5R4J_cjs.createDesktopBinder(wm, optionsRef.current), [wm]);
21
21
  react.useEffect(() => () => binder.destroy(), [binder]);
22
22
  const cleanupRef = react.useRef(null);
23
23
  const ref = react.useCallback(
package/dist/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-WOCAQEM6.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-FOWW4LXS.js';
2
2
  import { useState, useEffect, useSyncExternalStore, useCallback, useRef, useMemo } from 'react';
3
3
 
4
4
  function useWindowManager(options) {
package/dist/solid.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunk2VRCYMKH_cjs = require('./chunk-2VRCYMKH.cjs');
3
+ var chunkNJAI5R4J_cjs = require('./chunk-NJAI5R4J.cjs');
4
4
  var solidJs = require('solid-js');
5
5
 
6
6
  function disposeWithOwner(dispose) {
7
7
  if (solidJs.getOwner()) solidJs.onCleanup(dispose);
8
8
  }
9
9
  function useWindowManager(options) {
10
- const wm = chunk2VRCYMKH_cjs.createWindowManager(options);
10
+ const wm = chunkNJAI5R4J_cjs.createWindowManager(options);
11
11
  disposeWithOwner(() => wm.destroy());
12
12
  return wm;
13
13
  }
@@ -21,7 +21,7 @@ function useWmWindow(wm, id) {
21
21
  return () => state().windows[typeof id === "function" ? id() : id];
22
22
  }
23
23
  function createDesktop(wm, options) {
24
- const binder = chunk2VRCYMKH_cjs.createDesktopBinder(wm, options);
24
+ const binder = chunkNJAI5R4J_cjs.createDesktopBinder(wm, options);
25
25
  disposeWithOwner(() => binder.destroy());
26
26
  return {
27
27
  binder,
package/dist/solid.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-WOCAQEM6.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-FOWW4LXS.js';
2
2
  import { createSignal, getOwner, onCleanup } from 'solid-js';
3
3
 
4
4
  function disposeWithOwner(dispose) {
package/dist/svelte.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk2VRCYMKH_cjs = require('./chunk-2VRCYMKH.cjs');
3
+ var chunkNJAI5R4J_cjs = require('./chunk-NJAI5R4J.cjs');
4
4
 
5
5
  // src/adapters/svelte.ts
6
6
  function createManager(options) {
7
- return chunk2VRCYMKH_cjs.createWindowManager(options);
7
+ return chunkNJAI5R4J_cjs.createWindowManager(options);
8
8
  }
9
9
  function wmStore(wm) {
10
10
  return {
@@ -30,7 +30,7 @@ function wmWindowStore(wm, id) {
30
30
  };
31
31
  }
32
32
  function createDesktop(wm, options) {
33
- const binder = chunk2VRCYMKH_cjs.createDesktopBinder(wm, options);
33
+ const binder = chunkNJAI5R4J_cjs.createDesktopBinder(wm, options);
34
34
  return {
35
35
  binder,
36
36
  desktop(node) {
package/dist/svelte.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-WOCAQEM6.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-FOWW4LXS.js';
2
2
 
3
3
  // src/adapters/svelte.ts
4
4
  function createManager(options) {
package/dist/vue.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunk2VRCYMKH_cjs = require('./chunk-2VRCYMKH.cjs');
3
+ var chunkNJAI5R4J_cjs = require('./chunk-NJAI5R4J.cjs');
4
4
  var vue = require('vue');
5
5
 
6
6
  function disposeWithScope(dispose) {
7
7
  if (vue.getCurrentScope()) vue.onScopeDispose(dispose);
8
8
  }
9
9
  function useWindowManager(options) {
10
- const wm = chunk2VRCYMKH_cjs.createWindowManager(options);
10
+ const wm = chunkNJAI5R4J_cjs.createWindowManager(options);
11
11
  disposeWithScope(() => wm.destroy());
12
12
  return wm;
13
13
  }
@@ -25,7 +25,7 @@ function useWmWindow(wm, id) {
25
25
  return vue.computed(() => state.value.windows[vue.toValue(id)]);
26
26
  }
27
27
  function useDesktop(wm, target, options) {
28
- const binder = chunk2VRCYMKH_cjs.createDesktopBinder(wm, options);
28
+ const binder = chunkNJAI5R4J_cjs.createDesktopBinder(wm, options);
29
29
  disposeWithScope(() => binder.destroy());
30
30
  vue.watch(
31
31
  target,
package/dist/vue.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-WOCAQEM6.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-FOWW4LXS.js';
2
2
  import { shallowRef, computed, toValue, watch, getCurrentScope, onScopeDispose } from 'vue';
3
3
 
4
4
  function disposeWithScope(dispose) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surdeddd/wmkit",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
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",