@gravionlabs/helix-desktop 0.0.0-stage → 22.4.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/LICENSE.md +21 -0
- package/README.md +25 -2
- package/fesm2022/gravionlabs-helix-desktop-tauri.mjs +470 -0
- package/fesm2022/gravionlabs-helix-desktop-tauri.mjs.map +1 -0
- package/fesm2022/gravionlabs-helix-desktop.mjs +1776 -0
- package/fesm2022/gravionlabs-helix-desktop.mjs.map +1 -0
- package/package.json +61 -4
- package/styles.css +401 -0
- package/types/gravionlabs-helix-desktop-tauri.d.ts +153 -0
- package/types/gravionlabs-helix-desktop.d.ts +528 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GravionLabs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @gravionlabs/helix-desktop
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Helix desktop frame for Angular: activity bar, views, status bar and the platform switch (see
|
|
4
|
+
[ADR 0005](../../docs/adr/0005-helix-desktop-package.md)). The package is a scaffold: the components follow.
|
|
5
|
+
|
|
6
|
+
## Entry points
|
|
7
|
+
|
|
8
|
+
| Entry | Content |
|
|
9
|
+
| ---------------------------------- | --------------------------------------------------------------- |
|
|
10
|
+
| `@gravionlabs/helix-desktop` | Components, view contract, platform switch. No `@tauri-apps/*`. |
|
|
11
|
+
| `@gravionlabs/helix-desktop/tauri` | The Tauri bindings. Only this entry may import `@tauri-apps/*`. |
|
|
12
|
+
|
|
13
|
+
`pnpm lint:no-tauri` fails on an `@tauri-apps/*` import outside the `tauri` entry.
|
|
14
|
+
|
|
15
|
+
## Peer dependencies
|
|
16
|
+
|
|
17
|
+
`@angular/core`, `@angular/common`, `@angular/cdk` (`>=22`) and `@gravionlabs/helix-ui`.
|
|
18
|
+
|
|
19
|
+
## Styles
|
|
20
|
+
|
|
21
|
+
```css
|
|
22
|
+
@import "@gravionlabs/helix-ui/tokens.css";
|
|
23
|
+
@import "@gravionlabs/helix-desktop/styles.css";
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The styles read only `--h-*` tokens, so light and dark follow `HxTheme`.
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Injectable, InjectionToken, computed, inject, input, provideEnvironmentInitializer, signal } from "@angular/core";
|
|
3
|
+
import { DOCUMENT } from "@angular/common";
|
|
4
|
+
import { HxStatusItem, HxStatusPopover, HxStatusVersion, getHxPlatform, getHxPlatformKind, setHxPlatform } from "@gravionlabs/helix-desktop";
|
|
5
|
+
const noopUpdateBackend = {
|
|
6
|
+
check: () => Promise.resolve(null),
|
|
7
|
+
install: () => Promise.resolve(),
|
|
8
|
+
relaunch: () => Promise.resolve()
|
|
9
|
+
};
|
|
10
|
+
function isTauri() {
|
|
11
|
+
return typeof window !== "undefined" && "__TAURI_INTERNALS__" in window;
|
|
12
|
+
}
|
|
13
|
+
function tauriUpdateBackend() {
|
|
14
|
+
let pending = null;
|
|
15
|
+
return {
|
|
16
|
+
async check() {
|
|
17
|
+
const { check } = await import("@tauri-apps/plugin-updater");
|
|
18
|
+
const update = await check();
|
|
19
|
+
if (!update) {
|
|
20
|
+
pending = null;
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
pending = update;
|
|
24
|
+
return {
|
|
25
|
+
version: update.version,
|
|
26
|
+
notes: update.body ?? null,
|
|
27
|
+
date: update.date ?? null
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
async install() {
|
|
31
|
+
if (!pending) throw new Error("No update to install");
|
|
32
|
+
await pending.downloadAndInstall();
|
|
33
|
+
},
|
|
34
|
+
async relaunch() {
|
|
35
|
+
const { relaunch } = await import("@tauri-apps/plugin-process");
|
|
36
|
+
await relaunch();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function defaultUpdateBackend() {
|
|
41
|
+
return isTauri() ? tauriUpdateBackend() : noopUpdateBackend;
|
|
42
|
+
}
|
|
43
|
+
const HX_APP_INFO = new InjectionToken("HX_APP_INFO", { factory: () => ({
|
|
44
|
+
version: "",
|
|
45
|
+
channel: "stable"
|
|
46
|
+
}) });
|
|
47
|
+
function channelOfVersion(version) {
|
|
48
|
+
return /-rc(\.|\d|$)/i.test(version) ? "rc" : "stable";
|
|
49
|
+
}
|
|
50
|
+
function provideHxAppInfo(info) {
|
|
51
|
+
return {
|
|
52
|
+
provide: HX_APP_INFO,
|
|
53
|
+
useValue: {
|
|
54
|
+
version: info.version,
|
|
55
|
+
channel: info.channel ?? channelOfVersion(info.version)
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
async function readTauriVersion(fallback = "") {
|
|
60
|
+
if (!isTauri()) return fallback;
|
|
61
|
+
try {
|
|
62
|
+
const { getVersion } = await import("@tauri-apps/api/app");
|
|
63
|
+
return await getVersion();
|
|
64
|
+
} catch {
|
|
65
|
+
return fallback;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function detectHxOs(ua = typeof navigator === "undefined" ? "" : navigator.userAgent, tauri = isTauri()) {
|
|
69
|
+
if (!tauri) return "web";
|
|
70
|
+
if (/android/i.test(ua)) return "android";
|
|
71
|
+
if (/iphone|ipad|ipod/i.test(ua)) return "ios";
|
|
72
|
+
if (/windows/i.test(ua)) return "windows";
|
|
73
|
+
if (/mac/i.test(ua)) return "macos";
|
|
74
|
+
if (/linux|x11/i.test(ua)) return "linux";
|
|
75
|
+
return "web";
|
|
76
|
+
}
|
|
77
|
+
function providePlatform(os) {
|
|
78
|
+
return provideEnvironmentInitializer(() => {
|
|
79
|
+
setHxPlatform(os ?? detectHxOs(), inject(DOCUMENT).documentElement);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
var HxStatusAppVersion = class HxStatusAppVersion {
|
|
83
|
+
info = inject(HX_APP_INFO);
|
|
84
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
85
|
+
minVersion: "12.0.0",
|
|
86
|
+
version: "22.2.4",
|
|
87
|
+
ngImport: i0,
|
|
88
|
+
type: HxStatusAppVersion,
|
|
89
|
+
deps: [],
|
|
90
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
91
|
+
});
|
|
92
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
93
|
+
minVersion: "14.0.0",
|
|
94
|
+
version: "22.2.4",
|
|
95
|
+
type: HxStatusAppVersion,
|
|
96
|
+
isStandalone: true,
|
|
97
|
+
selector: "hx-status-app-version",
|
|
98
|
+
ngImport: i0,
|
|
99
|
+
template: `<hx-status-version [version]="info.version" [channel]="info.channel === 'rc' ? 'RC' : null" />`,
|
|
100
|
+
isInline: true,
|
|
101
|
+
dependencies: [{
|
|
102
|
+
kind: "component",
|
|
103
|
+
type: HxStatusVersion,
|
|
104
|
+
selector: "hx-status-version",
|
|
105
|
+
inputs: ["version", "channel"]
|
|
106
|
+
}],
|
|
107
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
111
|
+
minVersion: "12.0.0",
|
|
112
|
+
version: "22.2.4",
|
|
113
|
+
ngImport: i0,
|
|
114
|
+
type: HxStatusAppVersion,
|
|
115
|
+
decorators: [{
|
|
116
|
+
type: Component,
|
|
117
|
+
args: [{
|
|
118
|
+
selector: "hx-status-app-version",
|
|
119
|
+
imports: [HxStatusVersion],
|
|
120
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
121
|
+
template: `<hx-status-version [version]="info.version" [channel]="info.channel === 'rc' ? 'RC' : null" />`
|
|
122
|
+
}]
|
|
123
|
+
}]
|
|
124
|
+
});
|
|
125
|
+
const HX_UPDATE_BACKEND = new InjectionToken("HX_UPDATE_BACKEND", { factory: () => defaultUpdateBackend() });
|
|
126
|
+
var HxUpdateService = class HxUpdateService {
|
|
127
|
+
backend = inject(HX_UPDATE_BACKEND);
|
|
128
|
+
info = inject(HX_APP_INFO);
|
|
129
|
+
_state = signal({ status: "idle" }, ...ngDevMode ? [{ debugName: "_state" }] : /* istanbul ignore next */ []);
|
|
130
|
+
state = this._state.asReadonly();
|
|
131
|
+
version = this.info.version;
|
|
132
|
+
channel = this.info.channel;
|
|
133
|
+
update = computed(() => {
|
|
134
|
+
const s = this._state();
|
|
135
|
+
return s.status === "available" || s.status === "installing" ? s.update : null;
|
|
136
|
+
}, ...ngDevMode ? [{ debugName: "update" }] : /* istanbul ignore next */ []);
|
|
137
|
+
start() {
|
|
138
|
+
return this.channel === "rc" ? Promise.resolve() : this.check();
|
|
139
|
+
}
|
|
140
|
+
async check() {
|
|
141
|
+
const s = this._state().status;
|
|
142
|
+
if (s === "checking" || s === "installing") return;
|
|
143
|
+
this._state.set({ status: "checking" });
|
|
144
|
+
try {
|
|
145
|
+
const update = await this.backend.check();
|
|
146
|
+
this._state.set(update ? {
|
|
147
|
+
status: "available",
|
|
148
|
+
update
|
|
149
|
+
} : { status: "current" });
|
|
150
|
+
} catch (e) {
|
|
151
|
+
this.fail("check", e);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
async installAndRestart() {
|
|
155
|
+
const update = this.update();
|
|
156
|
+
if (this._state().status !== "available" || !update) return;
|
|
157
|
+
this._state.set({
|
|
158
|
+
status: "installing",
|
|
159
|
+
update
|
|
160
|
+
});
|
|
161
|
+
try {
|
|
162
|
+
await this.backend.install();
|
|
163
|
+
} catch (e) {
|
|
164
|
+
this.fail("install", e);
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
try {
|
|
168
|
+
await this.backend.relaunch();
|
|
169
|
+
} catch (e) {
|
|
170
|
+
this.fail("relaunch", e);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
fail(step, e) {
|
|
174
|
+
this._state.set({
|
|
175
|
+
status: "error",
|
|
176
|
+
step,
|
|
177
|
+
message: e instanceof Error ? e.message : String(e)
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
181
|
+
minVersion: "12.0.0",
|
|
182
|
+
version: "22.2.4",
|
|
183
|
+
ngImport: i0,
|
|
184
|
+
type: HxUpdateService,
|
|
185
|
+
deps: [],
|
|
186
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
187
|
+
});
|
|
188
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
189
|
+
minVersion: "12.0.0",
|
|
190
|
+
version: "22.2.4",
|
|
191
|
+
ngImport: i0,
|
|
192
|
+
type: HxUpdateService,
|
|
193
|
+
providedIn: "root"
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
197
|
+
minVersion: "12.0.0",
|
|
198
|
+
version: "22.2.4",
|
|
199
|
+
ngImport: i0,
|
|
200
|
+
type: HxUpdateService,
|
|
201
|
+
decorators: [{
|
|
202
|
+
type: Injectable,
|
|
203
|
+
args: [{ providedIn: "root" }]
|
|
204
|
+
}]
|
|
205
|
+
});
|
|
206
|
+
var HxStatusUpdate = class HxStatusUpdate {
|
|
207
|
+
service = inject(HxUpdateService);
|
|
208
|
+
root = inject(DOCUMENT).documentElement;
|
|
209
|
+
checkingLabel = input("Checking for updates", ...ngDevMode ? [{ debugName: "checkingLabel" }] : /* istanbul ignore next */ []);
|
|
210
|
+
availableLabel = input("Update", ...ngDevMode ? [{ debugName: "availableLabel" }] : /* istanbul ignore next */ []);
|
|
211
|
+
installingLabel = input("Installing update", ...ngDevMode ? [{ debugName: "installingLabel" }] : /* istanbul ignore next */ []);
|
|
212
|
+
errorLabel = input("Update failed", ...ngDevMode ? [{ debugName: "errorLabel" }] : /* istanbul ignore next */ []);
|
|
213
|
+
installLabel = input("Install and restart", ...ngDevMode ? [{ debugName: "installLabel" }] : /* istanbul ignore next */ []);
|
|
214
|
+
retryLabel = input("Try again", ...ngDevMode ? [{ debugName: "retryLabel" }] : /* istanbul ignore next */ []);
|
|
215
|
+
open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
216
|
+
state = this.service.state;
|
|
217
|
+
visible = computed(() => getHxPlatformKind(getHxPlatform(this.root)) !== "mobile" && [
|
|
218
|
+
"checking",
|
|
219
|
+
"available",
|
|
220
|
+
"installing",
|
|
221
|
+
"error"
|
|
222
|
+
].includes(this.state().status), ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
223
|
+
label = computed(() => {
|
|
224
|
+
const s = this.state();
|
|
225
|
+
switch (s.status) {
|
|
226
|
+
case "checking": return this.checkingLabel();
|
|
227
|
+
case "available": return `${this.availableLabel()} ${s.update.version}`;
|
|
228
|
+
case "installing": return this.installingLabel();
|
|
229
|
+
case "error": return this.errorLabel();
|
|
230
|
+
default: return "";
|
|
231
|
+
}
|
|
232
|
+
}, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
233
|
+
tone = computed(() => {
|
|
234
|
+
const s = this.state().status;
|
|
235
|
+
return s === "error" ? "error" : s === "available" ? "accent" : "neutral";
|
|
236
|
+
}, ...ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []);
|
|
237
|
+
errorText = computed(() => {
|
|
238
|
+
const s = this.state();
|
|
239
|
+
return s.status === "error" ? `${s.step}: ${s.message}` : "";
|
|
240
|
+
}, ...ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []);
|
|
241
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
242
|
+
minVersion: "12.0.0",
|
|
243
|
+
version: "22.2.4",
|
|
244
|
+
ngImport: i0,
|
|
245
|
+
type: HxStatusUpdate,
|
|
246
|
+
deps: [],
|
|
247
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
248
|
+
});
|
|
249
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
250
|
+
minVersion: "17.0.0",
|
|
251
|
+
version: "22.2.4",
|
|
252
|
+
type: HxStatusUpdate,
|
|
253
|
+
isStandalone: true,
|
|
254
|
+
selector: "hx-status-update",
|
|
255
|
+
inputs: {
|
|
256
|
+
checkingLabel: {
|
|
257
|
+
classPropertyName: "checkingLabel",
|
|
258
|
+
publicName: "checkingLabel",
|
|
259
|
+
isSignal: true,
|
|
260
|
+
isRequired: false,
|
|
261
|
+
transformFunction: null
|
|
262
|
+
},
|
|
263
|
+
availableLabel: {
|
|
264
|
+
classPropertyName: "availableLabel",
|
|
265
|
+
publicName: "availableLabel",
|
|
266
|
+
isSignal: true,
|
|
267
|
+
isRequired: false,
|
|
268
|
+
transformFunction: null
|
|
269
|
+
},
|
|
270
|
+
installingLabel: {
|
|
271
|
+
classPropertyName: "installingLabel",
|
|
272
|
+
publicName: "installingLabel",
|
|
273
|
+
isSignal: true,
|
|
274
|
+
isRequired: false,
|
|
275
|
+
transformFunction: null
|
|
276
|
+
},
|
|
277
|
+
errorLabel: {
|
|
278
|
+
classPropertyName: "errorLabel",
|
|
279
|
+
publicName: "errorLabel",
|
|
280
|
+
isSignal: true,
|
|
281
|
+
isRequired: false,
|
|
282
|
+
transformFunction: null
|
|
283
|
+
},
|
|
284
|
+
installLabel: {
|
|
285
|
+
classPropertyName: "installLabel",
|
|
286
|
+
publicName: "installLabel",
|
|
287
|
+
isSignal: true,
|
|
288
|
+
isRequired: false,
|
|
289
|
+
transformFunction: null
|
|
290
|
+
},
|
|
291
|
+
retryLabel: {
|
|
292
|
+
classPropertyName: "retryLabel",
|
|
293
|
+
publicName: "retryLabel",
|
|
294
|
+
isSignal: true,
|
|
295
|
+
isRequired: false,
|
|
296
|
+
transformFunction: null
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
ngImport: i0,
|
|
300
|
+
template: `
|
|
301
|
+
@if (visible()) {
|
|
302
|
+
<hx-status-item
|
|
303
|
+
kind="button"
|
|
304
|
+
[announce]="true"
|
|
305
|
+
[tone]="tone()"
|
|
306
|
+
[title]="label()"
|
|
307
|
+
[ariaLabel]="label()"
|
|
308
|
+
[(popoverOpen)]="open"
|
|
309
|
+
>
|
|
310
|
+
<span class="hx-update-label">{{ label() }}</span>
|
|
311
|
+
<div hxStatusPopover class="hx-update-details">
|
|
312
|
+
@switch (state().status) {
|
|
313
|
+
@case ('error') {
|
|
314
|
+
<p class="hx-update-message">{{ errorText() }}</p>
|
|
315
|
+
<button type="button" class="hx-update-action" (click)="service.check()">
|
|
316
|
+
{{ retryLabel() }}
|
|
317
|
+
</button>
|
|
318
|
+
}
|
|
319
|
+
@default {
|
|
320
|
+
@if (service.update(); as update) {
|
|
321
|
+
<p class="hx-update-version">{{ update.version }}</p>
|
|
322
|
+
@if (update.notes) {
|
|
323
|
+
<p class="hx-update-notes">{{ update.notes }}</p>
|
|
324
|
+
}
|
|
325
|
+
<button
|
|
326
|
+
type="button"
|
|
327
|
+
class="hx-update-action"
|
|
328
|
+
[disabled]="state().status === 'installing'"
|
|
329
|
+
(click)="service.installAndRestart()"
|
|
330
|
+
>
|
|
331
|
+
{{ installLabel() }}
|
|
332
|
+
</button>
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
</div>
|
|
337
|
+
</hx-status-item>
|
|
338
|
+
}
|
|
339
|
+
`,
|
|
340
|
+
isInline: true,
|
|
341
|
+
dependencies: [{
|
|
342
|
+
kind: "component",
|
|
343
|
+
type: HxStatusItem,
|
|
344
|
+
selector: "hx-status-item",
|
|
345
|
+
inputs: [
|
|
346
|
+
"kind",
|
|
347
|
+
"title",
|
|
348
|
+
"ariaLabel",
|
|
349
|
+
"disabled",
|
|
350
|
+
"tone",
|
|
351
|
+
"announce",
|
|
352
|
+
"popoverOpen"
|
|
353
|
+
],
|
|
354
|
+
outputs: ["popoverOpenChange"]
|
|
355
|
+
}, {
|
|
356
|
+
kind: "directive",
|
|
357
|
+
type: HxStatusPopover,
|
|
358
|
+
selector: "[hxStatusPopover]"
|
|
359
|
+
}],
|
|
360
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
361
|
+
});
|
|
362
|
+
};
|
|
363
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
364
|
+
minVersion: "12.0.0",
|
|
365
|
+
version: "22.2.4",
|
|
366
|
+
ngImport: i0,
|
|
367
|
+
type: HxStatusUpdate,
|
|
368
|
+
decorators: [{
|
|
369
|
+
type: Component,
|
|
370
|
+
args: [{
|
|
371
|
+
selector: "hx-status-update",
|
|
372
|
+
imports: [HxStatusItem, HxStatusPopover],
|
|
373
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
374
|
+
template: `
|
|
375
|
+
@if (visible()) {
|
|
376
|
+
<hx-status-item
|
|
377
|
+
kind="button"
|
|
378
|
+
[announce]="true"
|
|
379
|
+
[tone]="tone()"
|
|
380
|
+
[title]="label()"
|
|
381
|
+
[ariaLabel]="label()"
|
|
382
|
+
[(popoverOpen)]="open"
|
|
383
|
+
>
|
|
384
|
+
<span class="hx-update-label">{{ label() }}</span>
|
|
385
|
+
<div hxStatusPopover class="hx-update-details">
|
|
386
|
+
@switch (state().status) {
|
|
387
|
+
@case ('error') {
|
|
388
|
+
<p class="hx-update-message">{{ errorText() }}</p>
|
|
389
|
+
<button type="button" class="hx-update-action" (click)="service.check()">
|
|
390
|
+
{{ retryLabel() }}
|
|
391
|
+
</button>
|
|
392
|
+
}
|
|
393
|
+
@default {
|
|
394
|
+
@if (service.update(); as update) {
|
|
395
|
+
<p class="hx-update-version">{{ update.version }}</p>
|
|
396
|
+
@if (update.notes) {
|
|
397
|
+
<p class="hx-update-notes">{{ update.notes }}</p>
|
|
398
|
+
}
|
|
399
|
+
<button
|
|
400
|
+
type="button"
|
|
401
|
+
class="hx-update-action"
|
|
402
|
+
[disabled]="state().status === 'installing'"
|
|
403
|
+
(click)="service.installAndRestart()"
|
|
404
|
+
>
|
|
405
|
+
{{ installLabel() }}
|
|
406
|
+
</button>
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
</div>
|
|
411
|
+
</hx-status-item>
|
|
412
|
+
}
|
|
413
|
+
`
|
|
414
|
+
}]
|
|
415
|
+
}],
|
|
416
|
+
propDecorators: {
|
|
417
|
+
checkingLabel: [{
|
|
418
|
+
type: i0.Input,
|
|
419
|
+
args: [{
|
|
420
|
+
isSignal: true,
|
|
421
|
+
alias: "checkingLabel",
|
|
422
|
+
required: false
|
|
423
|
+
}]
|
|
424
|
+
}],
|
|
425
|
+
availableLabel: [{
|
|
426
|
+
type: i0.Input,
|
|
427
|
+
args: [{
|
|
428
|
+
isSignal: true,
|
|
429
|
+
alias: "availableLabel",
|
|
430
|
+
required: false
|
|
431
|
+
}]
|
|
432
|
+
}],
|
|
433
|
+
installingLabel: [{
|
|
434
|
+
type: i0.Input,
|
|
435
|
+
args: [{
|
|
436
|
+
isSignal: true,
|
|
437
|
+
alias: "installingLabel",
|
|
438
|
+
required: false
|
|
439
|
+
}]
|
|
440
|
+
}],
|
|
441
|
+
errorLabel: [{
|
|
442
|
+
type: i0.Input,
|
|
443
|
+
args: [{
|
|
444
|
+
isSignal: true,
|
|
445
|
+
alias: "errorLabel",
|
|
446
|
+
required: false
|
|
447
|
+
}]
|
|
448
|
+
}],
|
|
449
|
+
installLabel: [{
|
|
450
|
+
type: i0.Input,
|
|
451
|
+
args: [{
|
|
452
|
+
isSignal: true,
|
|
453
|
+
alias: "installLabel",
|
|
454
|
+
required: false
|
|
455
|
+
}]
|
|
456
|
+
}],
|
|
457
|
+
retryLabel: [{
|
|
458
|
+
type: i0.Input,
|
|
459
|
+
args: [{
|
|
460
|
+
isSignal: true,
|
|
461
|
+
alias: "retryLabel",
|
|
462
|
+
required: false
|
|
463
|
+
}]
|
|
464
|
+
}]
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
const HELIX_DESKTOP_TAURI = true;
|
|
468
|
+
export { HELIX_DESKTOP_TAURI, HX_APP_INFO, HX_UPDATE_BACKEND, HxStatusAppVersion, HxStatusUpdate, HxUpdateService, channelOfVersion, defaultUpdateBackend, detectHxOs, isTauri, noopUpdateBackend, provideHxAppInfo, providePlatform, readTauriVersion, tauriUpdateBackend };
|
|
469
|
+
|
|
470
|
+
//# sourceMappingURL=gravionlabs-helix-desktop-tauri.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gravionlabs-helix-desktop-tauri.mjs","names":[],"sources":["../../../projects/desktop/tauri/update-backend.ts","../../../projects/desktop/tauri/app-info.ts","../../../projects/desktop/tauri/platform.ts","../../../projects/desktop/tauri/status-app-version.ts","../../../projects/desktop/tauri/update.service.ts","../../../projects/desktop/tauri/status-update.ts","../../../projects/desktop/tauri/public_api.ts"],"sourcesContent":["/** What the updater found: a newer version. */\nexport interface HxUpdateInfo {\n readonly version: string;\n readonly notes: string | null;\n readonly date: string | null;\n}\n\n/**\n * The plugin calls behind an interface, so tests and web builds need no Tauri. The Tauri implementation\n * is `tauriUpdateBackend()`; outside Tauri the service uses `noopUpdateBackend`.\n */\nexport interface HxUpdateBackend {\n /** `null` when the app is current. */\n check(): Promise<HxUpdateInfo | null>;\n /** Download and install the update found by the last `check()`. */\n install(): Promise<void>;\n /** Restart into the new version. */\n relaunch(): Promise<void>;\n}\n\n/** The backend of a web build: never finds an update, never throws. */\nexport const noopUpdateBackend: HxUpdateBackend = {\n check: () => Promise.resolve(null),\n install: () => Promise.resolve(),\n relaunch: () => Promise.resolve(),\n};\n\n/** True inside a Tauri webview. */\nexport function isTauri(): boolean {\n return typeof window !== 'undefined' && '__TAURI_INTERNALS__' in window;\n}\n\n/** The backend on `@tauri-apps/plugin-updater` and `plugin-process`, loaded on first use. */\nexport function tauriUpdateBackend(): HxUpdateBackend {\n let pending: { downloadAndInstall(): Promise<void> } | null = null;\n return {\n async check() {\n const { check } = await import('@tauri-apps/plugin-updater');\n const update = await check();\n if (!update) {\n pending = null;\n return null;\n }\n pending = update;\n return { version: update.version, notes: update.body ?? null, date: update.date ?? null };\n },\n async install() {\n if (!pending) throw new Error('No update to install');\n await pending.downloadAndInstall();\n },\n async relaunch() {\n const { relaunch } = await import('@tauri-apps/plugin-process');\n await relaunch();\n },\n };\n}\n\n/** The backend for the current environment. */\nexport function defaultUpdateBackend(): HxUpdateBackend {\n return isTauri() ? tauriUpdateBackend() : noopUpdateBackend;\n}\n","import { InjectionToken, type Provider } from '@angular/core';\nimport { isTauri } from './update-backend';\n\n/** `stable`, or `rc` for a release candidate. */\nexport type HxChannel = 'stable' | 'rc';\n\nexport interface HxAppInfo {\n readonly version: string;\n readonly channel: HxChannel;\n}\n\n/** The app version and channel. Without `provideHxAppInfo()` it is an empty stable version. */\nexport const HX_APP_INFO = new InjectionToken<HxAppInfo>('HX_APP_INFO', {\n factory: () => ({ version: '', channel: 'stable' }),\n});\n\n/** `1.4.0-rc.1` is `rc`; everything else is `stable`. */\nexport function channelOfVersion(version: string): HxChannel {\n return /-rc(\\.|\\d|$)/i.test(version) ? 'rc' : 'stable';\n}\n\n/** Provide the version and, when not given, the channel derived from it. */\nexport function provideHxAppInfo(info: { version: string; channel?: HxChannel }): Provider {\n return {\n provide: HX_APP_INFO,\n useValue: { version: info.version, channel: info.channel ?? channelOfVersion(info.version) },\n };\n}\n\n/** Read the version from Tauri (`getVersion`); outside Tauri it resolves to `fallback`. */\nexport async function readTauriVersion(fallback = ''): Promise<string> {\n if (!isTauri()) return fallback;\n try {\n const { getVersion } = await import('@tauri-apps/api/app');\n return await getVersion();\n } catch {\n return fallback;\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { type EnvironmentProviders, inject, provideEnvironmentInitializer } from '@angular/core';\nimport { type HxOs, setHxPlatform } from '@gravionlabs/helix-desktop';\nimport { isTauri } from './update-backend';\n\n/** Detect the operating system from the user agent; `web` outside Tauri. */\nexport function detectHxOs(\n ua: string = typeof navigator === 'undefined' ? '' : navigator.userAgent,\n tauri: boolean = isTauri(),\n): HxOs {\n if (!tauri) return 'web';\n if (/android/i.test(ua)) return 'android';\n if (/iphone|ipad|ipod/i.test(ua)) return 'ios';\n if (/windows/i.test(ua)) return 'windows';\n if (/mac/i.test(ua)) return 'macos';\n if (/linux|x11/i.test(ua)) return 'linux';\n return 'web';\n}\n\n/** Set `data-platform` on the root element at startup: macos, windows, linux, ios, android or web. */\nexport function providePlatform(os?: HxOs): EnvironmentProviders {\n return provideEnvironmentInitializer(() => {\n setHxPlatform(os ?? detectHxOs(), inject(DOCUMENT).documentElement);\n });\n}\n","import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { HxStatusVersion } from '@gravionlabs/helix-desktop';\nimport { HX_APP_INFO } from './app-info';\n\n/** The app version with the `RC` badge on a release candidate; reads `provideHxAppInfo()`. */\n@Component({\n selector: 'hx-status-app-version',\n imports: [HxStatusVersion],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<hx-status-version [version]=\"info.version\" [channel]=\"info.channel === 'rc' ? 'RC' : null\" />`,\n})\nexport class HxStatusAppVersion {\n protected readonly info = inject(HX_APP_INFO);\n}\n","import { computed, Injectable, InjectionToken, inject, signal } from '@angular/core';\nimport { HX_APP_INFO } from './app-info';\nimport { defaultUpdateBackend, type HxUpdateBackend, type HxUpdateInfo } from './update-backend';\n\n/** The step that failed. */\nexport type HxUpdateStep = 'check' | 'install' | 'relaunch';\n\nexport type HxUpdateState =\n | { readonly status: 'idle' }\n | { readonly status: 'checking' }\n | { readonly status: 'current' }\n | { readonly status: 'available'; readonly update: HxUpdateInfo }\n | { readonly status: 'installing'; readonly update: HxUpdateInfo }\n | { readonly status: 'error'; readonly step: HxUpdateStep; readonly message: string };\n\n/** The backend of the update service; override it in tests. */\nexport const HX_UPDATE_BACKEND = new InjectionToken<HxUpdateBackend>('HX_UPDATE_BACKEND', {\n factory: () => defaultUpdateBackend(),\n});\n\n/**\n * The update state machine: idle, checking, current, available, installing, error (with the failed step).\n * An RC build never checks by itself: `start()` does nothing there, `check()` still works on request.\n */\n@Injectable({ providedIn: 'root' })\nexport class HxUpdateService {\n private readonly backend = inject(HX_UPDATE_BACKEND);\n private readonly info = inject(HX_APP_INFO);\n private readonly _state = signal<HxUpdateState>({ status: 'idle' });\n\n readonly state = this._state.asReadonly();\n readonly version = this.info.version;\n readonly channel = this.info.channel;\n /** The found update, while available or installing. */\n readonly update = computed(() => {\n const s = this._state();\n return s.status === 'available' || s.status === 'installing' ? s.update : null;\n });\n\n /** The automatic check at startup; skipped for an RC build. */\n start(): Promise<void> {\n return this.channel === 'rc' ? Promise.resolve() : this.check();\n }\n\n async check(): Promise<void> {\n const s = this._state().status;\n if (s === 'checking' || s === 'installing') return;\n this._state.set({ status: 'checking' });\n try {\n const update = await this.backend.check();\n this._state.set(update ? { status: 'available', update } : { status: 'current' });\n } catch (e) {\n this.fail('check', e);\n }\n }\n\n /** Download, install and restart. */\n async installAndRestart(): Promise<void> {\n const update = this.update();\n if (this._state().status !== 'available' || !update) return;\n this._state.set({ status: 'installing', update });\n try {\n await this.backend.install();\n } catch (e) {\n this.fail('install', e);\n return;\n }\n try {\n await this.backend.relaunch();\n } catch (e) {\n this.fail('relaunch', e);\n }\n }\n\n private fail(step: HxUpdateStep, e: unknown): void {\n this._state.set({ status: 'error', step, message: e instanceof Error ? e.message : String(e) });\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input, signal } from '@angular/core';\nimport {\n getHxPlatform,\n getHxPlatformKind,\n HxStatusItem,\n HxStatusPopover,\n type HxStatusTone,\n} from '@gravionlabs/helix-desktop';\nimport { HxUpdateService } from './update.service';\n\n/**\n * The update state as a status item; the version, the notes and \"Install and restart\" are in its popover.\n * Not rendered on mobile and while there is nothing to show (idle, current).\n */\n@Component({\n selector: 'hx-status-update',\n imports: [HxStatusItem, HxStatusPopover],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (visible()) {\n <hx-status-item\n kind=\"button\"\n [announce]=\"true\"\n [tone]=\"tone()\"\n [title]=\"label()\"\n [ariaLabel]=\"label()\"\n [(popoverOpen)]=\"open\"\n >\n <span class=\"hx-update-label\">{{ label() }}</span>\n <div hxStatusPopover class=\"hx-update-details\">\n @switch (state().status) {\n @case ('error') {\n <p class=\"hx-update-message\">{{ errorText() }}</p>\n <button type=\"button\" class=\"hx-update-action\" (click)=\"service.check()\">\n {{ retryLabel() }}\n </button>\n }\n @default {\n @if (service.update(); as update) {\n <p class=\"hx-update-version\">{{ update.version }}</p>\n @if (update.notes) {\n <p class=\"hx-update-notes\">{{ update.notes }}</p>\n }\n <button\n type=\"button\"\n class=\"hx-update-action\"\n [disabled]=\"state().status === 'installing'\"\n (click)=\"service.installAndRestart()\"\n >\n {{ installLabel() }}\n </button>\n }\n }\n }\n </div>\n </hx-status-item>\n }\n `,\n})\nexport class HxStatusUpdate {\n protected readonly service = inject(HxUpdateService);\n private readonly root = inject(DOCUMENT).documentElement;\n\n readonly checkingLabel = input('Checking for updates');\n readonly availableLabel = input('Update');\n readonly installingLabel = input('Installing update');\n readonly errorLabel = input('Update failed');\n readonly installLabel = input('Install and restart');\n readonly retryLabel = input('Try again');\n\n protected readonly open = signal(false);\n protected readonly state = this.service.state;\n\n protected readonly visible = computed(\n () =>\n getHxPlatformKind(getHxPlatform(this.root)) !== 'mobile' &&\n ['checking', 'available', 'installing', 'error'].includes(this.state().status),\n );\n\n protected readonly label = computed(() => {\n const s = this.state();\n switch (s.status) {\n case 'checking':\n return this.checkingLabel();\n case 'available':\n return `${this.availableLabel()} ${s.update.version}`;\n case 'installing':\n return this.installingLabel();\n case 'error':\n return this.errorLabel();\n default:\n return '';\n }\n });\n\n protected readonly tone = computed<HxStatusTone>(() => {\n const s = this.state().status;\n return s === 'error' ? 'error' : s === 'available' ? 'accent' : 'neutral';\n });\n\n protected readonly errorText = computed(() => {\n const s = this.state();\n return s.status === 'error' ? `${s.step}: ${s.message}` : '';\n });\n}\n","/*\n * Public API Surface of @gravionlabs/helix-desktop/tauri\n *\n * The only entry that may import `@tauri-apps/*` (`pnpm lint:no-tauri`). Those packages are optional peer\n * dependencies, so a consumer of the main entry installs none of them. Outside Tauri every service\n * resolves to a no-op.\n */\n\nexport const HELIX_DESKTOP_TAURI = true;\n\nexport * from './app-info';\nexport * from './platform';\nexport * from './status-app-version';\nexport * from './status-update';\nexport * from './update.service';\nexport * from './update-backend';\n"],"mappings":";;;;AAqBA,MAAa,oBAAqC;CAChD,aAAa,QAAQ,QAAQ,IAAI;CACjC,eAAe,QAAQ,QAAO;CAC9B,gBAAgB,QAAQ,QAAO;AAChC;AAGD,SAAgB,UAAO;CACrB,OAAO,OAAO,WAAW,eAAe,yBAAyB;AACnE;AAGA,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