@stacksjs/desktop 0.2.20 → 0.2.24
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
package/dist/index.d.ts
CHANGED
|
@@ -95,6 +95,140 @@ export type {
|
|
|
95
95
|
Timer,
|
|
96
96
|
TimerOptions,
|
|
97
97
|
} from './timer';
|
|
98
|
+
export type { Clipboard } from './clipboard';
|
|
99
|
+
export type {
|
|
100
|
+
NotificationAction,
|
|
101
|
+
NotificationActionEvent,
|
|
102
|
+
NotificationAttachment,
|
|
103
|
+
NotificationCategory,
|
|
104
|
+
NotificationOptions,
|
|
105
|
+
NotificationReplyEvent,
|
|
106
|
+
SystemNotifications,
|
|
107
|
+
} from './notifications';
|
|
108
|
+
export type {
|
|
109
|
+
DirEntry,
|
|
110
|
+
FileStat,
|
|
111
|
+
FS,
|
|
112
|
+
FSChangeEvent,
|
|
113
|
+
MkdirOptions,
|
|
114
|
+
RmdirOptions,
|
|
115
|
+
WatchHandle,
|
|
116
|
+
WatchOptions,
|
|
117
|
+
} from './fs';
|
|
118
|
+
export type { Shell, SpawnOptions } from './shell';
|
|
119
|
+
export type {
|
|
120
|
+
GlobalShortcutOptions,
|
|
121
|
+
GlobalShortcuts,
|
|
122
|
+
ShortcutFireEvent,
|
|
123
|
+
} from './global-shortcuts';
|
|
124
|
+
export type { Appearance, SystemTheme, ThemeInfo } from './theme';
|
|
125
|
+
export type { DragOutOptions } from './drag-out';
|
|
126
|
+
export type { DeepLinkEvent, DeepLinks } from './deep-link';
|
|
127
|
+
export type { BatteryAPI, ThermalState } from './battery';
|
|
128
|
+
export type {
|
|
129
|
+
ConnectionType,
|
|
130
|
+
NetworkAPI,
|
|
131
|
+
NetworkInterface,
|
|
132
|
+
ProxySettings,
|
|
133
|
+
} from './network';
|
|
134
|
+
export type {
|
|
135
|
+
UpdateInfo,
|
|
136
|
+
Updater,
|
|
137
|
+
VerifyDownloadOptions,
|
|
138
|
+
VerifyDownloadResult,
|
|
139
|
+
VerifyOptions,
|
|
140
|
+
} from './updater';
|
|
141
|
+
export type { WindowEvents, WindowPosition, WindowSize } from './window-events';
|
|
142
|
+
export type { AppAPI, AppInfo, AppNotifyOptions } from './app-info';
|
|
143
|
+
export type { MenuActionEvent, MenuAPI, MenuItem } from './menu';
|
|
144
|
+
export type { SystemInfo } from './system';
|
|
145
|
+
export type { Display, ScreenAPI } from './screen';
|
|
146
|
+
export type { KeychainAPI } from './keychain';
|
|
147
|
+
export type { PermissionName, PermissionsAPI, PermissionStatus } from './permissions';
|
|
148
|
+
export type { PrintingAPI, PrintToPDFResult } from './printing';
|
|
149
|
+
export type { NativeAutoLaunchAPI } from './native-autolaunch';
|
|
150
|
+
export type { TouchBarActionEvent, TouchBarAPI, TouchBarItem, TouchBarItemType } from './touchbar';
|
|
151
|
+
export type {
|
|
152
|
+
BluetoothAPI,
|
|
153
|
+
BluetoothCharacteristic,
|
|
154
|
+
BluetoothCharacteristicValueEvent,
|
|
155
|
+
BluetoothDevice,
|
|
156
|
+
BluetoothPowerState,
|
|
157
|
+
BluetoothService,
|
|
158
|
+
BluetoothWriteMode,
|
|
159
|
+
} from './bluetooth';
|
|
160
|
+
export type { SpeakOptions, SpeechAPI, SpeechVoice } from './speech';
|
|
161
|
+
export type {
|
|
162
|
+
CrashForwarderHandle,
|
|
163
|
+
CrashForwarderOptions,
|
|
164
|
+
CrashReport,
|
|
165
|
+
CrashReporterAPI,
|
|
166
|
+
CrashSeverity,
|
|
167
|
+
StoredCrashEntry,
|
|
168
|
+
} from './crash-reporter';
|
|
169
|
+
export type {
|
|
170
|
+
IAPAPI,
|
|
171
|
+
IAPFailureEvent,
|
|
172
|
+
IAPIntroductoryOffer,
|
|
173
|
+
IAPProduct,
|
|
174
|
+
IAPProductType,
|
|
175
|
+
IAPPurchaseResult,
|
|
176
|
+
IAPRefundEvent,
|
|
177
|
+
IAPSubscriptionInfo,
|
|
178
|
+
IAPSubscriptionPeriod,
|
|
179
|
+
IAPSubscriptionStatusEvent,
|
|
180
|
+
IAPTransactionEvent,
|
|
181
|
+
} from './iap';
|
|
182
|
+
export type {
|
|
183
|
+
HandoffActivityOptions,
|
|
184
|
+
HandoffAPI,
|
|
185
|
+
HandoffIncomingEvent,
|
|
186
|
+
HandoffSnapshot,
|
|
187
|
+
} from './handoff';
|
|
188
|
+
export type { LiveActivitiesAPI, LiveActivityState } from './live-activities';
|
|
189
|
+
export type {
|
|
190
|
+
LocationAPI,
|
|
191
|
+
LocationAuthStatus,
|
|
192
|
+
LocationCoordinate,
|
|
193
|
+
LocationWatchOptions,
|
|
194
|
+
} from './location';
|
|
195
|
+
export type { CapturableWindow, ScreenCaptureAPI } from './screen-capture';
|
|
196
|
+
export type {
|
|
197
|
+
LocalServerAPI,
|
|
198
|
+
LocalServerRequestEvent,
|
|
199
|
+
LocalServerRespondOptions,
|
|
200
|
+
LocalServerStartResult,
|
|
201
|
+
} from './local-server';
|
|
202
|
+
export type {
|
|
203
|
+
BiometricAPI,
|
|
204
|
+
BiometricEvaluateOptions,
|
|
205
|
+
BiometricEvaluateResult,
|
|
206
|
+
BiometryType,
|
|
207
|
+
} from './biometric';
|
|
208
|
+
export type { AudioAPI, AudioPlayOptions, AudioRecordOptions } from './audio';
|
|
209
|
+
export type { AppleScriptAPI, AppleScriptResult } from './apple-script';
|
|
210
|
+
export type { FileAssociationsAPI } from './file-associations';
|
|
211
|
+
export type { TagsAPI } from './tags';
|
|
212
|
+
export type { PDFAPI } from './pdf';
|
|
213
|
+
export type { LogAPI } from './log';
|
|
214
|
+
export type { BonjourAPI, BonjourService } from './bonjour';
|
|
215
|
+
export type { SpotlightAPI, SpotlightItem } from './spotlight';
|
|
216
|
+
export type { SpeechRecognitionAPI, SpeechRecognitionStartOptions } from './speech-recognition';
|
|
217
|
+
export type { VisionAPI, VisionBarcodeResult, VisionFaceResult, VisionTextResult } from './vision';
|
|
218
|
+
export type { MIDIAPI, MIDIEndpoint, MIDIMessageEvent } from './midi';
|
|
219
|
+
export type { CoreMLAPI } from './coreml';
|
|
220
|
+
export type { ContinuityCameraAPI, ContinuityCameraDevice } from './continuity-camera';
|
|
221
|
+
export type { ServiceMenuAPI, ServiceMenuInvokedEvent } from './service-menu';
|
|
222
|
+
export type { SerialAPI, SerialDataEvent, SerialPort } from './serial';
|
|
223
|
+
// =============================================================================
|
|
224
|
+
// Event surface
|
|
225
|
+
// =============================================================================
|
|
226
|
+
// The `CraftEventMap` lists every `craft:*` window event the SDK ships
|
|
227
|
+
// today, mapped to its payload type. App code typically doesn't subscribe
|
|
228
|
+
// directly — modules expose `onXxx(cb)` wrappers — but the type is here
|
|
229
|
+
// for advanced use, e.g. forwarding all events to telemetry.
|
|
230
|
+
export type { CraftEventMap } from './_bridge';
|
|
231
|
+
export type { BridgeCapability, BridgePlatformSupport } from './capabilities';
|
|
98
232
|
/**
|
|
99
233
|
* @stacksjs/desktop
|
|
100
234
|
*
|
|
@@ -284,3 +418,191 @@ export {
|
|
|
284
418
|
formatCompact,
|
|
285
419
|
formatTime,
|
|
286
420
|
} from './timer';
|
|
421
|
+
// =============================================================================
|
|
422
|
+
// Clipboard
|
|
423
|
+
// =============================================================================
|
|
424
|
+
export { clipboard } from './clipboard';
|
|
425
|
+
// =============================================================================
|
|
426
|
+
// System Notifications (banner + badge — distinct from in-app toasts in alerts.ts)
|
|
427
|
+
// =============================================================================
|
|
428
|
+
export { notifications } from './notifications';
|
|
429
|
+
// =============================================================================
|
|
430
|
+
// Filesystem
|
|
431
|
+
// =============================================================================
|
|
432
|
+
export { fs } from './fs';
|
|
433
|
+
// =============================================================================
|
|
434
|
+
// Shell — open URLs/paths, spawn subprocesses
|
|
435
|
+
// =============================================================================
|
|
436
|
+
export { shell } from './shell';
|
|
437
|
+
// =============================================================================
|
|
438
|
+
// Global Shortcuts (system-wide hotkeys — distinct from in-window hotkeys.ts)
|
|
439
|
+
// =============================================================================
|
|
440
|
+
export { globalShortcuts } from './global-shortcuts';
|
|
441
|
+
// =============================================================================
|
|
442
|
+
// System Theme (light/dark)
|
|
443
|
+
// =============================================================================
|
|
444
|
+
export { theme } from './theme';
|
|
445
|
+
// =============================================================================
|
|
446
|
+
// Native Drag-Out
|
|
447
|
+
// =============================================================================
|
|
448
|
+
export { dragOut, isDragOutAvailable } from './drag-out';
|
|
449
|
+
// =============================================================================
|
|
450
|
+
// Deep Links (custom URL schemes)
|
|
451
|
+
// =============================================================================
|
|
452
|
+
export { deepLinks } from './deep-link';
|
|
453
|
+
// =============================================================================
|
|
454
|
+
// Battery / Power State (system-level metrics — distinct from caffeinate in power.ts)
|
|
455
|
+
// =============================================================================
|
|
456
|
+
export { battery } from './battery';
|
|
457
|
+
// =============================================================================
|
|
458
|
+
// Network / Reachability
|
|
459
|
+
// =============================================================================
|
|
460
|
+
export { network } from './network';
|
|
461
|
+
// =============================================================================
|
|
462
|
+
// Auto-Updater
|
|
463
|
+
// =============================================================================
|
|
464
|
+
export { updater } from './updater';
|
|
465
|
+
// =============================================================================
|
|
466
|
+
// Window Lifecycle Events
|
|
467
|
+
// =============================================================================
|
|
468
|
+
export { windowEvents } from './window-events';
|
|
469
|
+
// =============================================================================
|
|
470
|
+
// App Metadata + Process Controls
|
|
471
|
+
// =============================================================================
|
|
472
|
+
export { app as appInfo } from './app-info';
|
|
473
|
+
// =============================================================================
|
|
474
|
+
// Native Application Menu (macOS menubar + dock menu)
|
|
475
|
+
// =============================================================================
|
|
476
|
+
export { menu } from './menu';
|
|
477
|
+
// =============================================================================
|
|
478
|
+
// System / Host Info
|
|
479
|
+
// =============================================================================
|
|
480
|
+
export { system } from './system';
|
|
481
|
+
// =============================================================================
|
|
482
|
+
// Display / Multi-Monitor
|
|
483
|
+
// =============================================================================
|
|
484
|
+
export { screen } from './screen';
|
|
485
|
+
// =============================================================================
|
|
486
|
+
// Keychain — Secure Secret Storage
|
|
487
|
+
// =============================================================================
|
|
488
|
+
export { keychain } from './keychain';
|
|
489
|
+
// =============================================================================
|
|
490
|
+
// Privacy Permissions (camera/mic/screen-recording/etc)
|
|
491
|
+
// =============================================================================
|
|
492
|
+
export { permissions } from './permissions';
|
|
493
|
+
// =============================================================================
|
|
494
|
+
// Printing / Save-as-PDF
|
|
495
|
+
// =============================================================================
|
|
496
|
+
export { printing } from './printing';
|
|
497
|
+
// =============================================================================
|
|
498
|
+
// Native Auto-Launch (SMAppService — distinct from autolaunch.ts)
|
|
499
|
+
// =============================================================================
|
|
500
|
+
export { nativeAutoLaunch } from './native-autolaunch';
|
|
501
|
+
// =============================================================================
|
|
502
|
+
// Touch Bar (legacy macOS hardware)
|
|
503
|
+
// =============================================================================
|
|
504
|
+
export { touchbar } from './touchbar';
|
|
505
|
+
// =============================================================================
|
|
506
|
+
// Bluetooth
|
|
507
|
+
// =============================================================================
|
|
508
|
+
export { bluetooth } from './bluetooth';
|
|
509
|
+
// =============================================================================
|
|
510
|
+
// Text-to-Speech
|
|
511
|
+
// =============================================================================
|
|
512
|
+
export { speech } from './speech';
|
|
513
|
+
// =============================================================================
|
|
514
|
+
// Crash Reporter
|
|
515
|
+
// =============================================================================
|
|
516
|
+
export { crashReporter, redactPII, signPayload } from './crash-reporter';
|
|
517
|
+
// =============================================================================
|
|
518
|
+
// In-App Purchases
|
|
519
|
+
// =============================================================================
|
|
520
|
+
export { iap } from './iap';
|
|
521
|
+
// =============================================================================
|
|
522
|
+
// Handoff (Apple Continuity / NSUserActivity)
|
|
523
|
+
// =============================================================================
|
|
524
|
+
export { handoff } from './handoff';
|
|
525
|
+
// =============================================================================
|
|
526
|
+
// Live Activities (macOS Handoff-backed approximation of iOS ActivityKit)
|
|
527
|
+
// =============================================================================
|
|
528
|
+
export { liveActivities } from './live-activities';
|
|
529
|
+
// =============================================================================
|
|
530
|
+
// Geolocation (CoreLocation)
|
|
531
|
+
// =============================================================================
|
|
532
|
+
export { location } from './location';
|
|
533
|
+
// =============================================================================
|
|
534
|
+
// Screen Capture (programmatic screenshots)
|
|
535
|
+
// =============================================================================
|
|
536
|
+
export { screenCapture } from './screen-capture';
|
|
537
|
+
// =============================================================================
|
|
538
|
+
// Local HTTP Server (OAuth callbacks)
|
|
539
|
+
// =============================================================================
|
|
540
|
+
export { localServer } from './local-server';
|
|
541
|
+
// =============================================================================
|
|
542
|
+
// Biometric Authentication (TouchID / FaceID)
|
|
543
|
+
// =============================================================================
|
|
544
|
+
export { biometric } from './biometric';
|
|
545
|
+
// =============================================================================
|
|
546
|
+
// Audio Playback + Recording
|
|
547
|
+
// =============================================================================
|
|
548
|
+
export { audio } from './audio';
|
|
549
|
+
// =============================================================================
|
|
550
|
+
// AppleScript Executor
|
|
551
|
+
// =============================================================================
|
|
552
|
+
export { appleScript } from './apple-script';
|
|
553
|
+
// =============================================================================
|
|
554
|
+
// File Associations (LaunchServices)
|
|
555
|
+
// =============================================================================
|
|
556
|
+
export { fileAssociations } from './file-associations';
|
|
557
|
+
// =============================================================================
|
|
558
|
+
// Finder Tags
|
|
559
|
+
// =============================================================================
|
|
560
|
+
export { tags } from './tags';
|
|
561
|
+
// =============================================================================
|
|
562
|
+
// PDF Reader (PDFKit)
|
|
563
|
+
// =============================================================================
|
|
564
|
+
export { pdf } from './pdf';
|
|
565
|
+
// =============================================================================
|
|
566
|
+
// Unified System Log
|
|
567
|
+
// =============================================================================
|
|
568
|
+
export { log } from './log';
|
|
569
|
+
// =============================================================================
|
|
570
|
+
// mDNS / Bonjour
|
|
571
|
+
// =============================================================================
|
|
572
|
+
export { bonjour } from './bonjour';
|
|
573
|
+
// =============================================================================
|
|
574
|
+
// Spotlight Indexing
|
|
575
|
+
// =============================================================================
|
|
576
|
+
export { spotlight } from './spotlight';
|
|
577
|
+
// =============================================================================
|
|
578
|
+
// Speech Recognition (SFSpeechRecognizer)
|
|
579
|
+
// =============================================================================
|
|
580
|
+
export { speechRecognition } from './speech-recognition';
|
|
581
|
+
// =============================================================================
|
|
582
|
+
// Vision Framework (OCR / Faces / Barcodes)
|
|
583
|
+
// =============================================================================
|
|
584
|
+
export { vision } from './vision';
|
|
585
|
+
// =============================================================================
|
|
586
|
+
// CoreMIDI
|
|
587
|
+
// =============================================================================
|
|
588
|
+
export { midi } from './midi';
|
|
589
|
+
// =============================================================================
|
|
590
|
+
// CoreML — on-device inference
|
|
591
|
+
// =============================================================================
|
|
592
|
+
export { coreml } from './coreml';
|
|
593
|
+
// =============================================================================
|
|
594
|
+
// Continuity Camera
|
|
595
|
+
// =============================================================================
|
|
596
|
+
export { continuityCamera } from './continuity-camera';
|
|
597
|
+
// =============================================================================
|
|
598
|
+
// macOS Services Menu
|
|
599
|
+
// =============================================================================
|
|
600
|
+
export { serviceMenu } from './service-menu';
|
|
601
|
+
// =============================================================================
|
|
602
|
+
// Serial Ports
|
|
603
|
+
// =============================================================================
|
|
604
|
+
export { serial } from './serial';
|
|
605
|
+
// =============================================================================
|
|
606
|
+
// Capabilities (bridge availability)
|
|
607
|
+
// =============================================================================
|
|
608
|
+
export { getCapabilities, getCapability, isAvailable } from './capabilities';
|