@surdeddd/wmkit 0.8.0 → 0.9.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/README.md +23 -1
- package/README.ru.md +23 -1
- package/dist/angular.cjs +3 -3
- package/dist/angular.d.cts +2 -2
- package/dist/angular.d.ts +2 -2
- package/dist/angular.js +1 -1
- package/dist/{binder-B625OrjD.d.cts → binder-DGoj0xG1.d.cts} +1 -1
- package/dist/{binder-CpGY8Wye.d.ts → binder-Lo13iTVB.d.ts} +1 -1
- package/dist/chrome.cjs +122 -0
- package/dist/chrome.cjs.map +1 -0
- package/dist/chrome.d.cts +25 -0
- package/dist/chrome.d.ts +25 -0
- package/dist/chrome.js +114 -0
- package/dist/chrome.js.map +1 -0
- package/dist/{chunk-MGWCKHTZ.js → chunk-TUGQX3CX.js} +179 -17
- package/dist/chunk-TUGQX3CX.js.map +1 -0
- package/dist/{chunk-DINVOL6Z.cjs → chunk-ZWUVWRUS.cjs} +179 -17
- package/dist/chunk-ZWUVWRUS.cjs.map +1 -0
- package/dist/gestures.d.cts +1 -1
- package/dist/gestures.d.ts +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/react.cjs +3 -3
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/{shared-BBXgEeIa.d.ts → shared-BoHXlPCu.d.ts} +34 -1
- package/dist/{shared-DU_87nY9.d.cts → shared-DdGFz3oy.d.cts} +34 -1
- package/dist/solid.cjs +3 -3
- package/dist/solid.d.cts +2 -2
- package/dist/solid.d.ts +2 -2
- package/dist/solid.js +1 -1
- package/dist/svelte.cjs +3 -3
- package/dist/svelte.d.cts +2 -2
- package/dist/svelte.d.ts +2 -2
- package/dist/svelte.js +1 -1
- package/dist/themes/retro.css +8 -0
- package/dist/themes.cjs +8747 -0
- package/dist/themes.cjs.map +1 -0
- package/dist/themes.d.cts +12 -0
- package/dist/themes.d.ts +12 -0
- package/dist/themes.js +8742 -0
- package/dist/themes.js.map +1 -0
- package/dist/vue.cjs +3 -3
- package/dist/vue.d.cts +2 -2
- package/dist/vue.d.ts +2 -2
- package/dist/vue.js +1 -1
- package/package.json +44 -7
- package/dist/chunk-DINVOL6Z.cjs.map +0 -1
- package/dist/chunk-MGWCKHTZ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as DesktopOptions, a as DesktopController } from './shared-
|
|
2
|
-
export { A as ActiveGesture, b as Announcer, c as AnnouncerMessages, d as DesktopGesture, e as DesktopKeyboardOptions, f as DesktopSnapOptions, G as GestureContext, H as HitAreaOptions, M as MagnetResult, g as MagnetismOptions, S as SnapDetectOptions, W as WindowAttachOptions,
|
|
1
|
+
import { D as DesktopOptions, a as DesktopController } from './shared-DdGFz3oy.cjs';
|
|
2
|
+
export { A as ActiveGesture, b as Announcer, c as AnnouncerMessages, d as DesktopGesture, e as DesktopKeyboardOptions, f as DesktopSnapOptions, G as GestureContext, H as HitAreaOptions, M as MagnetResult, g as MagnetismOptions, h as MountedWindow, S as SkinContext, i as SkinMount, j as SnapDetectOptions, k as WindowActions, W as WindowAttachOptions, l as WindowSkin, m as applyAspect, n as boundsEqual, o as clamp, p as clampSize, q as clampToViewport, r as createAnnouncer, s as defaultMessages, t as detectSnapZone, u as magnetize, z as zoneBounds } from './shared-DdGFz3oy.cjs';
|
|
3
3
|
import { M as ManagerOptions, W as WindowManager } from './types-jG2lHGcA.cjs';
|
|
4
4
|
export { A as ArrangeMode, B as Bounds, c as ManagerEvents, a as ManagerState, S as SerializedMaxSize, d as SerializedState, e as SerializedWindowState, f as Size, g as SnapZone, h as WindowFlags, i as WindowInit, j as WindowLayer, k as WindowStage, b as WindowState, l as WindowUpdate } from './types-jG2lHGcA.cjs';
|
|
5
|
-
export { D as DesktopBinder, c as createDesktopBinder } from './binder-
|
|
5
|
+
export { D as DesktopBinder, c as createDesktopBinder } from './binder-DGoj0xG1.cjs';
|
|
6
6
|
|
|
7
7
|
type Listener<T> = (payload: T) => void;
|
|
8
8
|
interface Emitter<Events extends Record<keyof Events, unknown>> {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as DesktopOptions, a as DesktopController } from './shared-
|
|
2
|
-
export { A as ActiveGesture, b as Announcer, c as AnnouncerMessages, d as DesktopGesture, e as DesktopKeyboardOptions, f as DesktopSnapOptions, G as GestureContext, H as HitAreaOptions, M as MagnetResult, g as MagnetismOptions, S as SnapDetectOptions, W as WindowAttachOptions,
|
|
1
|
+
import { D as DesktopOptions, a as DesktopController } from './shared-BoHXlPCu.js';
|
|
2
|
+
export { A as ActiveGesture, b as Announcer, c as AnnouncerMessages, d as DesktopGesture, e as DesktopKeyboardOptions, f as DesktopSnapOptions, G as GestureContext, H as HitAreaOptions, M as MagnetResult, g as MagnetismOptions, h as MountedWindow, S as SkinContext, i as SkinMount, j as SnapDetectOptions, k as WindowActions, W as WindowAttachOptions, l as WindowSkin, m as applyAspect, n as boundsEqual, o as clamp, p as clampSize, q as clampToViewport, r as createAnnouncer, s as defaultMessages, t as detectSnapZone, u as magnetize, z as zoneBounds } from './shared-BoHXlPCu.js';
|
|
3
3
|
import { M as ManagerOptions, W as WindowManager } from './types-jG2lHGcA.js';
|
|
4
4
|
export { A as ArrangeMode, B as Bounds, c as ManagerEvents, a as ManagerState, S as SerializedMaxSize, d as SerializedState, e as SerializedWindowState, f as Size, g as SnapZone, h as WindowFlags, i as WindowInit, j as WindowLayer, k as WindowStage, b as WindowState, l as WindowUpdate } from './types-jG2lHGcA.js';
|
|
5
|
-
export { D as DesktopBinder, c as createDesktopBinder } from './binder-
|
|
5
|
+
export { D as DesktopBinder, c as createDesktopBinder } from './binder-Lo13iTVB.js';
|
|
6
6
|
|
|
7
7
|
type Listener<T> = (payload: T) => void;
|
|
8
8
|
interface Emitter<Events extends Record<keyof Events, unknown>> {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { attachDesktop, createAnnouncer, createDesktopBinder, createEmitter, createWindowManager, defaultMessages, flipFromTarget, flipToTarget, prefersReducedMotion } from './chunk-
|
|
1
|
+
export { attachDesktop, createAnnouncer, createDesktopBinder, createEmitter, createWindowManager, defaultMessages, flipFromTarget, flipToTarget, prefersReducedMotion } from './chunk-TUGQX3CX.js';
|
|
2
2
|
export { applyAspect, boundsEqual, clamp, clampSize, clampToViewport, detectSnapZone, magnetize, zoneBounds } from './chunk-5XVIC5LH.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/react.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZWUVWRUS_cjs = require('./chunk-ZWUVWRUS.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(() =>
|
|
8
|
+
const [wm] = react.useState(() => chunkZWUVWRUS_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(() =>
|
|
21
|
+
const binder = react.useMemo(() => chunkZWUVWRUS_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.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { W as WindowManager, M as ManagerOptions, a as ManagerState, b as WindowState } from './types-jG2lHGcA.cjs';
|
|
2
|
-
import { D as DesktopBinder } from './binder-
|
|
3
|
-
import { a as DesktopController, D as DesktopOptions, W as WindowAttachOptions } from './shared-
|
|
2
|
+
import { D as DesktopBinder } from './binder-DGoj0xG1.cjs';
|
|
3
|
+
import { a as DesktopController, D as DesktopOptions, W as WindowAttachOptions } from './shared-DdGFz3oy.cjs';
|
|
4
4
|
|
|
5
5
|
type ElementRef = (node: HTMLElement | null) => void;
|
|
6
6
|
declare function useWindowManager(options?: ManagerOptions): WindowManager;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { W as WindowManager, M as ManagerOptions, a as ManagerState, b as WindowState } from './types-jG2lHGcA.js';
|
|
2
|
-
import { D as DesktopBinder } from './binder-
|
|
3
|
-
import { a as DesktopController, D as DesktopOptions, W as WindowAttachOptions } from './shared-
|
|
2
|
+
import { D as DesktopBinder } from './binder-Lo13iTVB.js';
|
|
3
|
+
import { a as DesktopController, D as DesktopOptions, W as WindowAttachOptions } from './shared-BoHXlPCu.js';
|
|
4
4
|
|
|
5
5
|
type ElementRef = (node: HTMLElement | null) => void;
|
|
6
6
|
declare function useWindowManager(options?: ManagerOptions): WindowManager;
|
package/dist/react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createWindowManager, createDesktopBinder } from './chunk-
|
|
1
|
+
import { createWindowManager, createDesktopBinder } from './chunk-TUGQX3CX.js';
|
|
2
2
|
import './chunk-5XVIC5LH.js';
|
|
3
3
|
import { useState, useEffect, useSyncExternalStore, useCallback, useRef, useMemo } from 'react';
|
|
4
4
|
|
|
@@ -19,6 +19,19 @@ interface MagnetResult {
|
|
|
19
19
|
}
|
|
20
20
|
declare function magnetize(bounds: Bounds, targets: readonly Bounds[], threshold: number): MagnetResult;
|
|
21
21
|
|
|
22
|
+
interface WindowActions {
|
|
23
|
+
focus(): boolean;
|
|
24
|
+
close(): boolean;
|
|
25
|
+
minimize(): boolean;
|
|
26
|
+
maximize(): boolean;
|
|
27
|
+
toggleMaximize(): boolean;
|
|
28
|
+
restore(): boolean;
|
|
29
|
+
center(): boolean;
|
|
30
|
+
sendToBack(): boolean;
|
|
31
|
+
snap(zone: SnapZone): boolean;
|
|
32
|
+
moveToWorkspace(workspace: number): boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
22
35
|
interface AnnouncerMessages {
|
|
23
36
|
opened(title: string): string;
|
|
24
37
|
closed(title: string): string;
|
|
@@ -77,6 +90,7 @@ interface DesktopOptions {
|
|
|
77
90
|
stacking?: StackingOptions;
|
|
78
91
|
animation?: boolean | AnimationOptions;
|
|
79
92
|
gestures?: readonly DesktopGesture[];
|
|
93
|
+
skins?: Readonly<Record<string, WindowSkin>>;
|
|
80
94
|
interactiveSelector?: string;
|
|
81
95
|
beforeClose?: (window: WindowState) => boolean | void;
|
|
82
96
|
minimizeTarget?: (window: WindowState) => Element | null;
|
|
@@ -92,10 +106,29 @@ interface WindowAttachOptions {
|
|
|
92
106
|
resizeHandles?: boolean;
|
|
93
107
|
removeOnClose?: boolean;
|
|
94
108
|
}
|
|
109
|
+
interface SkinContext {
|
|
110
|
+
doc: Document;
|
|
111
|
+
id: string;
|
|
112
|
+
window: WindowState;
|
|
113
|
+
actions: WindowActions;
|
|
114
|
+
}
|
|
115
|
+
interface SkinMount {
|
|
116
|
+
element: HTMLElement;
|
|
117
|
+
content: HTMLElement;
|
|
118
|
+
destroy?(): void;
|
|
119
|
+
}
|
|
120
|
+
type WindowSkin = (ctx: SkinContext) => SkinMount;
|
|
121
|
+
interface MountedWindow {
|
|
122
|
+
element: HTMLElement;
|
|
123
|
+
content: HTMLElement;
|
|
124
|
+
detach(): void;
|
|
125
|
+
}
|
|
95
126
|
interface DesktopController {
|
|
96
127
|
element: HTMLElement;
|
|
97
128
|
wm: WindowManager;
|
|
98
129
|
attachWindow(id: string, element: HTMLElement, options?: WindowAttachOptions): () => void;
|
|
130
|
+
mountWindow(id: string, skin: WindowSkin | string, options?: WindowAttachOptions): MountedWindow;
|
|
131
|
+
actions(id: string): WindowActions;
|
|
99
132
|
destroy(): void;
|
|
100
133
|
}
|
|
101
134
|
interface ActiveGesture {
|
|
@@ -116,4 +149,4 @@ interface GestureContext {
|
|
|
116
149
|
}
|
|
117
150
|
type DesktopGesture = (ctx: GestureContext) => () => void;
|
|
118
151
|
|
|
119
|
-
export { type ActiveGesture as A, type DesktopOptions as D, type GestureContext as G, type HitAreaOptions as H, type MagnetResult as M, type
|
|
152
|
+
export { type ActiveGesture as A, type DesktopOptions as D, type GestureContext as G, type HitAreaOptions as H, type MagnetResult as M, type SkinContext as S, type WindowAttachOptions as W, type DesktopController as a, type Announcer as b, type AnnouncerMessages as c, type DesktopGesture as d, type DesktopKeyboardOptions as e, type DesktopSnapOptions as f, type MagnetismOptions as g, type MountedWindow as h, type SkinMount as i, type SnapDetectOptions as j, type WindowActions as k, type WindowSkin as l, applyAspect as m, boundsEqual as n, clamp as o, clampSize as p, clampToViewport as q, createAnnouncer as r, defaultMessages as s, detectSnapZone as t, magnetize as u, zoneBounds as z };
|
|
@@ -19,6 +19,19 @@ interface MagnetResult {
|
|
|
19
19
|
}
|
|
20
20
|
declare function magnetize(bounds: Bounds, targets: readonly Bounds[], threshold: number): MagnetResult;
|
|
21
21
|
|
|
22
|
+
interface WindowActions {
|
|
23
|
+
focus(): boolean;
|
|
24
|
+
close(): boolean;
|
|
25
|
+
minimize(): boolean;
|
|
26
|
+
maximize(): boolean;
|
|
27
|
+
toggleMaximize(): boolean;
|
|
28
|
+
restore(): boolean;
|
|
29
|
+
center(): boolean;
|
|
30
|
+
sendToBack(): boolean;
|
|
31
|
+
snap(zone: SnapZone): boolean;
|
|
32
|
+
moveToWorkspace(workspace: number): boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
22
35
|
interface AnnouncerMessages {
|
|
23
36
|
opened(title: string): string;
|
|
24
37
|
closed(title: string): string;
|
|
@@ -77,6 +90,7 @@ interface DesktopOptions {
|
|
|
77
90
|
stacking?: StackingOptions;
|
|
78
91
|
animation?: boolean | AnimationOptions;
|
|
79
92
|
gestures?: readonly DesktopGesture[];
|
|
93
|
+
skins?: Readonly<Record<string, WindowSkin>>;
|
|
80
94
|
interactiveSelector?: string;
|
|
81
95
|
beforeClose?: (window: WindowState) => boolean | void;
|
|
82
96
|
minimizeTarget?: (window: WindowState) => Element | null;
|
|
@@ -92,10 +106,29 @@ interface WindowAttachOptions {
|
|
|
92
106
|
resizeHandles?: boolean;
|
|
93
107
|
removeOnClose?: boolean;
|
|
94
108
|
}
|
|
109
|
+
interface SkinContext {
|
|
110
|
+
doc: Document;
|
|
111
|
+
id: string;
|
|
112
|
+
window: WindowState;
|
|
113
|
+
actions: WindowActions;
|
|
114
|
+
}
|
|
115
|
+
interface SkinMount {
|
|
116
|
+
element: HTMLElement;
|
|
117
|
+
content: HTMLElement;
|
|
118
|
+
destroy?(): void;
|
|
119
|
+
}
|
|
120
|
+
type WindowSkin = (ctx: SkinContext) => SkinMount;
|
|
121
|
+
interface MountedWindow {
|
|
122
|
+
element: HTMLElement;
|
|
123
|
+
content: HTMLElement;
|
|
124
|
+
detach(): void;
|
|
125
|
+
}
|
|
95
126
|
interface DesktopController {
|
|
96
127
|
element: HTMLElement;
|
|
97
128
|
wm: WindowManager;
|
|
98
129
|
attachWindow(id: string, element: HTMLElement, options?: WindowAttachOptions): () => void;
|
|
130
|
+
mountWindow(id: string, skin: WindowSkin | string, options?: WindowAttachOptions): MountedWindow;
|
|
131
|
+
actions(id: string): WindowActions;
|
|
99
132
|
destroy(): void;
|
|
100
133
|
}
|
|
101
134
|
interface ActiveGesture {
|
|
@@ -116,4 +149,4 @@ interface GestureContext {
|
|
|
116
149
|
}
|
|
117
150
|
type DesktopGesture = (ctx: GestureContext) => () => void;
|
|
118
151
|
|
|
119
|
-
export { type ActiveGesture as A, type DesktopOptions as D, type GestureContext as G, type HitAreaOptions as H, type MagnetResult as M, type
|
|
152
|
+
export { type ActiveGesture as A, type DesktopOptions as D, type GestureContext as G, type HitAreaOptions as H, type MagnetResult as M, type SkinContext as S, type WindowAttachOptions as W, type DesktopController as a, type Announcer as b, type AnnouncerMessages as c, type DesktopGesture as d, type DesktopKeyboardOptions as e, type DesktopSnapOptions as f, type MagnetismOptions as g, type MountedWindow as h, type SkinMount as i, type SnapDetectOptions as j, type WindowActions as k, type WindowSkin as l, applyAspect as m, boundsEqual as n, clamp as o, clampSize as p, clampToViewport as q, createAnnouncer as r, defaultMessages as s, detectSnapZone as t, magnetize as u, zoneBounds as z };
|
package/dist/solid.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZWUVWRUS_cjs = require('./chunk-ZWUVWRUS.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 =
|
|
11
|
+
const wm = chunkZWUVWRUS_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 =
|
|
25
|
+
const binder = chunkZWUVWRUS_cjs.createDesktopBinder(wm, options);
|
|
26
26
|
disposeWithOwner(() => binder.destroy());
|
|
27
27
|
return {
|
|
28
28
|
binder,
|
package/dist/solid.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Accessor } from 'solid-js';
|
|
2
2
|
import { W as WindowManager, M as ManagerOptions, a as ManagerState, b as WindowState } from './types-jG2lHGcA.cjs';
|
|
3
|
-
import { D as DesktopBinder } from './binder-
|
|
4
|
-
import { W as WindowAttachOptions, D as DesktopOptions } from './shared-
|
|
3
|
+
import { D as DesktopBinder } from './binder-DGoj0xG1.cjs';
|
|
4
|
+
import { W as WindowAttachOptions, D as DesktopOptions } from './shared-DdGFz3oy.cjs';
|
|
5
5
|
|
|
6
6
|
declare function useWindowManager(options?: ManagerOptions): WindowManager;
|
|
7
7
|
declare function useWmState(wm: WindowManager): Accessor<ManagerState>;
|
package/dist/solid.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Accessor } from 'solid-js';
|
|
2
2
|
import { W as WindowManager, M as ManagerOptions, a as ManagerState, b as WindowState } from './types-jG2lHGcA.js';
|
|
3
|
-
import { D as DesktopBinder } from './binder-
|
|
4
|
-
import { W as WindowAttachOptions, D as DesktopOptions } from './shared-
|
|
3
|
+
import { D as DesktopBinder } from './binder-Lo13iTVB.js';
|
|
4
|
+
import { W as WindowAttachOptions, D as DesktopOptions } from './shared-BoHXlPCu.js';
|
|
5
5
|
|
|
6
6
|
declare function useWindowManager(options?: ManagerOptions): WindowManager;
|
|
7
7
|
declare function useWmState(wm: WindowManager): Accessor<ManagerState>;
|
package/dist/solid.js
CHANGED
package/dist/svelte.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZWUVWRUS_cjs = require('./chunk-ZWUVWRUS.cjs');
|
|
4
4
|
require('./chunk-BDHFXEJN.cjs');
|
|
5
5
|
|
|
6
6
|
// src/adapters/svelte.ts
|
|
7
7
|
function createManager(options) {
|
|
8
|
-
return
|
|
8
|
+
return chunkZWUVWRUS_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 =
|
|
34
|
+
const binder = chunkZWUVWRUS_cjs.createDesktopBinder(wm, options);
|
|
35
35
|
return {
|
|
36
36
|
binder,
|
|
37
37
|
desktop(node) {
|
package/dist/svelte.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { W as WindowManager, M as ManagerOptions, a as ManagerState, b as WindowState } from './types-jG2lHGcA.cjs';
|
|
2
|
-
import { D as DesktopBinder } from './binder-
|
|
3
|
-
import { W as WindowAttachOptions, D as DesktopOptions } from './shared-
|
|
2
|
+
import { D as DesktopBinder } from './binder-DGoj0xG1.cjs';
|
|
3
|
+
import { W as WindowAttachOptions, D as DesktopOptions } from './shared-DdGFz3oy.cjs';
|
|
4
4
|
|
|
5
5
|
interface ReadableStore<T> {
|
|
6
6
|
subscribe(run: (value: T) => void): () => void;
|
package/dist/svelte.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { W as WindowManager, M as ManagerOptions, a as ManagerState, b as WindowState } from './types-jG2lHGcA.js';
|
|
2
|
-
import { D as DesktopBinder } from './binder-
|
|
3
|
-
import { W as WindowAttachOptions, D as DesktopOptions } from './shared-
|
|
2
|
+
import { D as DesktopBinder } from './binder-Lo13iTVB.js';
|
|
3
|
+
import { W as WindowAttachOptions, D as DesktopOptions } from './shared-BoHXlPCu.js';
|
|
4
4
|
|
|
5
5
|
interface ReadableStore<T> {
|
|
6
6
|
subscribe(run: (value: T) => void): () => void;
|
package/dist/svelte.js
CHANGED
package/dist/themes/retro.css
CHANGED
|
@@ -34,6 +34,14 @@
|
|
|
34
34
|
display: none;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
[data-wm-window][data-wm-dragging],
|
|
38
|
+
[data-wm-window][data-wm-resizing],
|
|
39
|
+
[data-wm-window][data-wm-pinching] {
|
|
40
|
+
user-select: none;
|
|
41
|
+
-webkit-user-select: none;
|
|
42
|
+
box-shadow: 2px 2px 0 var(--wm-face-dark);
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
[data-wm-window][data-wm-flash] {
|
|
38
46
|
animation: wm-flash 320ms ease;
|
|
39
47
|
}
|