@domicile-desktop/manganese 0.0.0-alpha-e2bac2dfb862 → 0.0.0-alpha-bfbc2e9a3043
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/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@cprussin/option-result": "^2.0.1",
|
|
4
|
-
"@domicile-desktop/component-library": "0.0.0-alpha-
|
|
5
|
-
"@domicile-desktop/sdk": "0.0.0-alpha-
|
|
6
|
-
"@domicile-desktop/system-apps": "0.0.0-alpha-
|
|
7
|
-
"@domicile-desktop/system-audio": "0.0.0-alpha-
|
|
8
|
-
"@domicile-desktop/system-backlight": "0.0.0-alpha-
|
|
9
|
-
"@domicile-desktop/system-battery": "0.0.0-alpha-
|
|
10
|
-
"@domicile-desktop/system-bluetooth": "0.0.0-alpha-
|
|
11
|
-
"@domicile-desktop/system-network": "0.0.0-alpha-
|
|
4
|
+
"@domicile-desktop/component-library": "0.0.0-alpha-bfbc2e9a3043",
|
|
5
|
+
"@domicile-desktop/sdk": "0.0.0-alpha-bfbc2e9a3043",
|
|
6
|
+
"@domicile-desktop/system-apps": "0.0.0-alpha-bfbc2e9a3043",
|
|
7
|
+
"@domicile-desktop/system-audio": "0.0.0-alpha-bfbc2e9a3043",
|
|
8
|
+
"@domicile-desktop/system-backlight": "0.0.0-alpha-bfbc2e9a3043",
|
|
9
|
+
"@domicile-desktop/system-battery": "0.0.0-alpha-bfbc2e9a3043",
|
|
10
|
+
"@domicile-desktop/system-bluetooth": "0.0.0-alpha-bfbc2e9a3043",
|
|
11
|
+
"@domicile-desktop/system-network": "0.0.0-alpha-bfbc2e9a3043",
|
|
12
12
|
"@phosphor-icons/react": "^2.1.10",
|
|
13
13
|
"lowlight": "^3.3.0",
|
|
14
14
|
"react": "^19.2.8",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"test:unit": "bun test"
|
|
78
78
|
},
|
|
79
79
|
"type": "module",
|
|
80
|
-
"version": "0.0.0-alpha-
|
|
80
|
+
"version": "0.0.0-alpha-bfbc2e9a3043"
|
|
81
81
|
}
|
|
@@ -56,7 +56,12 @@ export const departed = (
|
|
|
56
56
|
return windows.some((open) => open.id === window.id) ||
|
|
57
57
|
placement === undefined
|
|
58
58
|
? []
|
|
59
|
-
: [
|
|
59
|
+
: [
|
|
60
|
+
{
|
|
61
|
+
...leavingFrom(before, window, placement, movesAsTab(placement)),
|
|
62
|
+
at,
|
|
63
|
+
},
|
|
64
|
+
];
|
|
60
65
|
});
|
|
61
66
|
|
|
62
67
|
/**
|
|
@@ -76,7 +81,15 @@ export const sentAway = (
|
|
|
76
81
|
const window = now.windows.find(({ id }) => id === placement.id);
|
|
77
82
|
return window === undefined || placedOn(desk, placement.id)
|
|
78
83
|
? []
|
|
79
|
-
: [
|
|
84
|
+
: [
|
|
85
|
+
leavingFrom(
|
|
86
|
+
before,
|
|
87
|
+
window,
|
|
88
|
+
placement,
|
|
89
|
+
// One sent to the scratchpad slides off whole.
|
|
90
|
+
movesAsTab(placement) && !now.scratchpad.includes(window.id),
|
|
91
|
+
),
|
|
92
|
+
];
|
|
80
93
|
})
|
|
81
94
|
: [];
|
|
82
95
|
|
|
@@ -111,11 +124,15 @@ export const withClosing = (
|
|
|
111
124
|
windows,
|
|
112
125
|
);
|
|
113
126
|
|
|
114
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* The snapshot of `window`, last drawn at `placement`, as it leaves. A tab that
|
|
129
|
+
* `collapses` along its strip turns about the tab, not the window.
|
|
130
|
+
*/
|
|
115
131
|
const leavingFrom = (
|
|
116
132
|
before: Shown,
|
|
117
133
|
window: ShellWindow,
|
|
118
134
|
placement: Placement,
|
|
135
|
+
collapses: boolean,
|
|
119
136
|
): Leaving => ({
|
|
120
137
|
focused: before.activeId === window.id,
|
|
121
138
|
placement: {
|
|
@@ -124,8 +141,7 @@ const leavingFrom = (
|
|
|
124
141
|
// window.
|
|
125
142
|
behind: undefined,
|
|
126
143
|
depth: LEAVING,
|
|
127
|
-
|
|
128
|
-
frame: movesAsTab(placement) ? placement.bar : placement.frame,
|
|
144
|
+
frame: collapses ? placement.bar : placement.frame,
|
|
129
145
|
},
|
|
130
146
|
window,
|
|
131
147
|
});
|
|
@@ -173,10 +173,11 @@ export const movingStyles = cva({
|
|
|
173
173
|
concealing: {
|
|
174
174
|
animation: "windowConcealing {durations.fast} {easings.in-out}",
|
|
175
175
|
},
|
|
176
|
-
//
|
|
177
|
-
// height
|
|
176
|
+
// The scratchpad's slides take `slowest` and avoid front-loaded curves,
|
|
177
|
+
// so a slide of up to a screen's height is seen: `out` settles the
|
|
178
|
+
// window into place, and `in` starts its exit where it can be seen.
|
|
178
179
|
dropping: {
|
|
179
|
-
animation: "windowDropping {durations.
|
|
180
|
+
animation: "windowDropping {durations.slowest} {easings.out}",
|
|
180
181
|
},
|
|
181
182
|
"leaving-to-end": {
|
|
182
183
|
animation:
|
|
@@ -207,18 +208,19 @@ export const movingStyles = cva({
|
|
|
207
208
|
revealing: {
|
|
208
209
|
animation: "windowRevealing {durations.fast} {easings.in-out}",
|
|
209
210
|
},
|
|
210
|
-
// `
|
|
211
|
-
// windows moving into
|
|
211
|
+
// Slower than `closing` and on an even curve, so the window is seen
|
|
212
|
+
// leaving rather than vanishing. It draws over the windows moving into
|
|
213
|
+
// its space, so it need not keep pace with them.
|
|
212
214
|
sending: {
|
|
213
|
-
animation:
|
|
215
|
+
animation:
|
|
216
|
+
"windowSending {durations.slowest} {easings.in-out} forwards",
|
|
214
217
|
},
|
|
215
218
|
// A tab leaves its strip as it does when closed.
|
|
216
219
|
"sending-tab": {
|
|
217
220
|
animation: "windowClosingTab {durations.fast} {easings.out} forwards",
|
|
218
221
|
},
|
|
219
222
|
stowing: {
|
|
220
|
-
animation:
|
|
221
|
-
"windowStowing {durations.slow} {easings.emphasized} forwards",
|
|
223
|
+
animation: "windowStowing {durations.slowest} {easings.in} forwards",
|
|
222
224
|
},
|
|
223
225
|
// Lasts as long as `closing-tab`, which it is drawn under.
|
|
224
226
|
uncovering: {
|
package/styled-system/styles.css
CHANGED
|
@@ -9393,8 +9393,8 @@
|
|
|
9393
9393
|
animation: windowConcealing var(--mUhz) var(--gSAVQW);
|
|
9394
9394
|
}
|
|
9395
9395
|
|
|
9396
|
-
.
|
|
9397
|
-
animation: windowDropping var(--
|
|
9396
|
+
.fPMXYU {
|
|
9397
|
+
animation: windowDropping var(--bPXfWW) var(--byCBno);
|
|
9398
9398
|
}
|
|
9399
9399
|
|
|
9400
9400
|
.iUXzHL {
|
|
@@ -9425,12 +9425,12 @@
|
|
|
9425
9425
|
animation: windowRevealing var(--mUhz) var(--gSAVQW);
|
|
9426
9426
|
}
|
|
9427
9427
|
|
|
9428
|
-
.
|
|
9429
|
-
animation: windowSending var(--
|
|
9428
|
+
.eCabhc {
|
|
9429
|
+
animation: windowSending var(--bPXfWW) var(--gSAVQW) forwards;
|
|
9430
9430
|
}
|
|
9431
9431
|
|
|
9432
|
-
.
|
|
9433
|
-
animation: windowStowing var(--
|
|
9432
|
+
.gXXVmE {
|
|
9433
|
+
animation: windowStowing var(--bPXfWW) var(--hCLxzh) forwards;
|
|
9434
9434
|
}
|
|
9435
9435
|
|
|
9436
9436
|
.eDwEtq {
|