@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.
@@ -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
- | 'restricted-or-denied'
26
- | 'authorizedAlways'
27
- | 'authorizedWhenInUse'
28
- | 'not-supported'
29
- | 'unknown';
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: (message: string) => Promise<void>
5
- warn: (message: string) => Promise<void>
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
- | 'ethernet'
29
- | 'cellular'
30
- | 'bluetooth'
31
- | 'vpn'
32
- | 'none'
33
- | 'unknown';
28
+ | 'ethernet'
29
+ | 'cellular'
30
+ | 'bluetooth'
31
+ | 'vpn'
32
+ | 'none'
33
+ | 'unknown';
@@ -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
- | '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';
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
- /** Menu item label */
157
- label: string
158
- /** Click handler */
159
- onClick?: () => void
160
- /** Keyboard shortcut */
161
- accelerator?: string
162
- /** Menu item type */
163
- type?: 'normal' | 'checkbox' | 'submenu'
164
- /** Submenu items (if type is 'submenu') */
165
- submenu?: SystemTrayMenuItem[]
166
- /** Is checkbox checked (if type is 'checkbox') */
167
- checked?: boolean
168
- /** Is menu item enabled */
169
- enabled?: boolean
170
- }
171
- | {
172
- /** Menu item type */
173
- type: 'separator'
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/desktop",
3
3
  "type": "module",
4
- "version": "0.2.69",
4
+ "version": "0.2.71",
5
5
  "description": "Native desktop application framework for stx (powered by Craft)",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",