@stacksjs/desktop 0.2.69 → 0.2.71
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/iap.d.ts +3 -3
- package/dist/index.js +33 -30
- package/dist/index.js.map +58 -58
- package/dist/location.d.ts +5 -5
- package/dist/log.d.ts +2 -2
- package/dist/network.d.ts +6 -6
- package/dist/permissions.d.ts +12 -12
- package/dist/types.d.ts +20 -19
- package/package.json +1 -1
package/dist/location.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export declare interface LocationAPI {
|
|
|
22
22
|
onAuthChanged: (cb: (info: { status: LocationAuthStatus }) => void) => () => void
|
|
23
23
|
}
|
|
24
24
|
export type LocationAuthStatus = | 'undetermined'
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
| 'restricted-or-denied'
|
|
26
|
+
| 'authorizedAlways'
|
|
27
|
+
| 'authorizedWhenInUse'
|
|
28
|
+
| 'not-supported'
|
|
29
|
+
| 'unknown';
|
package/dist/log.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const log: LogAPI;
|
|
2
2
|
export declare interface LogAPI {
|
|
3
3
|
debug: (message: string) => Promise<void>
|
|
4
|
-
info:
|
|
5
|
-
warn:
|
|
4
|
+
info: (message: string) => Promise<void>
|
|
5
|
+
warn: (message: string) => Promise<void>
|
|
6
6
|
error: (message: string) => Promise<void>
|
|
7
7
|
}
|
package/dist/network.d.ts
CHANGED
|
@@ -25,9 +25,9 @@ export declare interface NetworkAPI {
|
|
|
25
25
|
onChange: (cb: (info: { type: ConnectionType, online: boolean }) => void) => () => void
|
|
26
26
|
}
|
|
27
27
|
export type ConnectionType = | 'wifi'
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
| 'ethernet'
|
|
29
|
+
| 'cellular'
|
|
30
|
+
| 'bluetooth'
|
|
31
|
+
| 'vpn'
|
|
32
|
+
| 'none'
|
|
33
|
+
| 'unknown';
|
package/dist/permissions.d.ts
CHANGED
|
@@ -7,15 +7,15 @@ export declare interface PermissionsAPI {
|
|
|
7
7
|
/** Status values match the macOS TCC convention. */
|
|
8
8
|
export type PermissionStatus = 'granted' | 'denied' | 'restricted' | 'undetermined' | 'not-supported';
|
|
9
9
|
export type PermissionName = | 'camera'
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
| 'microphone'
|
|
11
|
+
| 'screen_recording'
|
|
12
|
+
| 'accessibility'
|
|
13
|
+
| 'full_disk_access'
|
|
14
|
+
| 'input_monitoring'
|
|
15
|
+
| 'location'
|
|
16
|
+
| 'notifications'
|
|
17
|
+
| 'contacts'
|
|
18
|
+
| 'calendar'
|
|
19
|
+
| 'reminders'
|
|
20
|
+
| 'photos'
|
|
21
|
+
| 'bluetooth';
|
package/dist/types.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare interface WindowOptions {
|
|
|
56
56
|
closable?: boolean
|
|
57
57
|
alwaysOnTop?: boolean
|
|
58
58
|
frameless?: boolean
|
|
59
|
+
titlebarHidden?: boolean
|
|
59
60
|
backgroundColor?: string
|
|
60
61
|
nativeSidebar?: boolean
|
|
61
62
|
sidebarWidth?: number
|
|
@@ -153,25 +154,25 @@ export type SidebarBackgroundEffect = 'none' | 'vibrancy' | 'shimmer';
|
|
|
153
154
|
* System tray menu item
|
|
154
155
|
*/
|
|
155
156
|
export type SystemTrayMenuItem = | {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
157
|
+
/** Menu item label */
|
|
158
|
+
label: string
|
|
159
|
+
/** Click handler */
|
|
160
|
+
onClick?: () => void
|
|
161
|
+
/** Keyboard shortcut */
|
|
162
|
+
accelerator?: string
|
|
163
|
+
/** Menu item type */
|
|
164
|
+
type?: 'normal' | 'checkbox' | 'submenu'
|
|
165
|
+
/** Submenu items (if type is 'submenu') */
|
|
166
|
+
submenu?: SystemTrayMenuItem[]
|
|
167
|
+
/** Is checkbox checked (if type is 'checkbox') */
|
|
168
|
+
checked?: boolean
|
|
169
|
+
/** Is menu item enabled */
|
|
170
|
+
enabled?: boolean
|
|
171
|
+
}
|
|
172
|
+
| {
|
|
173
|
+
/** Menu item type */
|
|
174
|
+
type: 'separator'
|
|
175
|
+
}
|
|
175
176
|
/**
|
|
176
177
|
* Toast notification options (alias for AlertOptions)
|
|
177
178
|
*/
|
package/package.json
CHANGED