@stacksjs/desktop 0.2.21 → 0.2.25
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/_bridge.d.ts +105 -0
- package/dist/app-info.d.ts +22 -0
- package/dist/apple-script.d.ts +8 -0
- package/dist/audio.d.ts +17 -0
- package/dist/battery.d.ts +15 -0
- package/dist/biometric.d.ts +14 -0
- package/dist/bluetooth.d.ts +52 -0
- package/dist/bonjour.d.ts +13 -0
- package/dist/capabilities.d.ts +31 -0
- package/dist/clipboard.d.ts +11 -0
- package/dist/continuity-camera.d.ts +10 -0
- package/dist/coreml.d.ts +6 -0
- package/dist/crash-reporter.d.ts +46 -0
- package/dist/deep-link.d.ts +10 -0
- package/dist/drag-out.d.ts +18 -0
- package/dist/file-associations.d.ts +5 -0
- package/dist/fs.d.ts +62 -0
- package/dist/global-shortcuts.d.ts +19 -0
- package/dist/handoff.d.ts +24 -0
- package/dist/hotkeys.d.ts +10 -8
- package/dist/iap.d.ts +79 -0
- package/dist/index.d.ts +322 -0
- package/dist/index.js +2505 -20
- package/dist/index.js.map +55 -7
- package/dist/keychain.d.ts +7 -0
- package/dist/live-activities.d.ts +11 -0
- package/dist/local-server.d.ts +23 -0
- package/dist/location.d.ts +29 -0
- package/dist/log.d.ts +7 -0
- package/dist/menu.d.ts +29 -0
- package/dist/midi.d.ts +17 -0
- package/dist/native-autolaunch.d.ts +6 -0
- package/dist/network.d.ts +33 -0
- package/dist/notifications.d.ts +56 -0
- package/dist/pdf.d.ts +5 -0
- package/dist/permissions.d.ts +21 -0
- package/dist/printing.d.ts +9 -0
- package/dist/screen-capture.d.ts +11 -0
- package/dist/screen.d.ts +18 -0
- package/dist/serial.d.ts +15 -0
- package/dist/service-menu.d.ts +10 -0
- package/dist/shell.d.ts +28 -0
- package/dist/speech-recognition.d.ts +12 -0
- package/dist/speech.d.ts +21 -0
- package/dist/spotlight.d.ts +12 -0
- package/dist/system.d.ts +16 -0
- package/dist/tags.d.ts +6 -0
- package/dist/test-utils.d.ts +17 -0
- package/dist/test-utils.js +108 -0
- package/dist/test-utils.js.map +10 -0
- package/dist/theme.d.ts +10 -0
- package/dist/touchbar.d.ts +29 -0
- package/dist/updater.d.ts +37 -0
- package/dist/vision.d.ts +17 -0
- package/dist/window-events.d.ts +20 -0
- package/package.json +5 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const updater: Updater;
|
|
2
|
+
export declare interface UpdateInfo {
|
|
3
|
+
version: string
|
|
4
|
+
releaseDate?: string
|
|
5
|
+
releaseNotes?: string
|
|
6
|
+
downloadUrl?: string
|
|
7
|
+
}
|
|
8
|
+
export declare interface VerifyOptions {
|
|
9
|
+
payload: Uint8Array | ArrayBuffer
|
|
10
|
+
signatureB64: string
|
|
11
|
+
publicKeyB64: string
|
|
12
|
+
}
|
|
13
|
+
export declare interface VerifyDownloadOptions {
|
|
14
|
+
url: string
|
|
15
|
+
signatureB64: string
|
|
16
|
+
publicKeyB64: string
|
|
17
|
+
fetchInit?: RequestInit
|
|
18
|
+
}
|
|
19
|
+
export declare interface VerifyDownloadResult {
|
|
20
|
+
ok: boolean
|
|
21
|
+
payload?: Uint8Array
|
|
22
|
+
reason?: 'fetch-failed' | 'http-error' | 'bad-signature' | 'bad-key'
|
|
23
|
+
status?: number
|
|
24
|
+
}
|
|
25
|
+
export declare interface Updater {
|
|
26
|
+
checkForUpdates: () => Promise<void>
|
|
27
|
+
checkInBackground: () => Promise<void>
|
|
28
|
+
setAutomaticChecks: (on: boolean) => Promise<void>
|
|
29
|
+
setCheckInterval: (seconds: number) => Promise<void>
|
|
30
|
+
setFeedURL: (url: string) => Promise<void>
|
|
31
|
+
getLastUpdateCheckDate: () => Promise<string | null>
|
|
32
|
+
getUpdateInfo: () => Promise<UpdateInfo | null>
|
|
33
|
+
onAvailable: (cb: (info: UpdateInfo) => void) => () => void
|
|
34
|
+
onDownloaded: (cb: (info: UpdateInfo) => void) => () => void
|
|
35
|
+
verifySignature: (options: VerifyOptions) => Promise<boolean>
|
|
36
|
+
verifyDownload: (options: VerifyDownloadOptions) => Promise<VerifyDownloadResult>
|
|
37
|
+
}
|
package/dist/vision.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const vision: VisionAPI;
|
|
2
|
+
export declare interface VisionTextResult {
|
|
3
|
+
text: string
|
|
4
|
+
confidence?: number
|
|
5
|
+
}
|
|
6
|
+
export declare interface VisionFaceResult {
|
|
7
|
+
bounds: { x: number, y: number, width: number, height: number }
|
|
8
|
+
}
|
|
9
|
+
export declare interface VisionBarcodeResult {
|
|
10
|
+
payload: string
|
|
11
|
+
type?: string
|
|
12
|
+
}
|
|
13
|
+
export declare interface VisionAPI {
|
|
14
|
+
recognizeText: (path: string) => Promise<VisionTextResult[]>
|
|
15
|
+
detectFaces: (path: string) => Promise<VisionFaceResult[]>
|
|
16
|
+
detectBarcodes: (path: string) => Promise<VisionBarcodeResult[]>
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const windowEvents: WindowEvents;
|
|
2
|
+
export declare interface WindowSize {
|
|
3
|
+
id?: string
|
|
4
|
+
width: number
|
|
5
|
+
height: number
|
|
6
|
+
}
|
|
7
|
+
export declare interface WindowPosition {
|
|
8
|
+
id?: string
|
|
9
|
+
x: number
|
|
10
|
+
y: number
|
|
11
|
+
}
|
|
12
|
+
export declare interface WindowEvents {
|
|
13
|
+
onFocus: (cb: () => void) => () => void
|
|
14
|
+
onBlur: (cb: () => void) => () => void
|
|
15
|
+
onResize: (cb: (size: WindowSize) => void) => () => void
|
|
16
|
+
onMove: (cb: (pos: WindowPosition) => void) => () => void
|
|
17
|
+
onClose: (cb: () => void) => () => void
|
|
18
|
+
onMinimize: (cb: () => void) => () => void
|
|
19
|
+
onRestore: (cb: () => void) => () => void
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/desktop",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.25",
|
|
5
5
|
"description": "Native desktop application framework for stx (powered by Craft)",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
"types": "./dist/index.d.ts",
|
|
29
29
|
"import": "./dist/index.js"
|
|
30
30
|
},
|
|
31
|
+
"./test-utils": {
|
|
32
|
+
"types": "./dist/test-utils.d.ts",
|
|
33
|
+
"import": "./dist/test-utils.js"
|
|
34
|
+
},
|
|
31
35
|
"./*": {
|
|
32
36
|
"import": "./dist/*"
|
|
33
37
|
}
|