@stacksjs/desktop 0.2.120 → 0.2.121
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 +1 -0
- package/dist/browser.d.ts +73 -0
- package/dist/browser.js +4044 -0
- package/dist/browser.js.map +65 -0
- package/dist/focus.d.ts +37 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +102 -1
- package/dist/index.js.map +6 -4
- package/dist/screen-sharing.d.ts +37 -0
- package/package.json +5 -1
package/dist/_bridge.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare interface CraftEventMap {
|
|
|
33
33
|
'craft:powerWake': void
|
|
34
34
|
'craft:networkChange': { type: import('./network').ConnectionType, online: boolean }
|
|
35
35
|
'craft:screen:change': void
|
|
36
|
+
'craft:screenSharing:change': import('./screen-sharing').ScreenSharingState
|
|
36
37
|
'craft:theme': import('./theme').ThemeInfo
|
|
37
38
|
'craft:bluetooth:deviceFound': import('./bluetooth').BluetoothDevice
|
|
38
39
|
'craft:bluetooth:deviceConnected': import('./bluetooth').BluetoothDevice
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @stacksjs/desktop/browser — the half of this package that runs *inside* a
|
|
3
|
+
* Craft window.
|
|
4
|
+
*
|
|
5
|
+
* The default entry point is a single bundle that also carries the host-side
|
|
6
|
+
* pieces: `window.ts` spawns the Craft process, `packaging.ts` assembles
|
|
7
|
+
* installers, `preferences.ts` and `autolaunch.ts` write files with `node:fs`.
|
|
8
|
+
* Those belong to the build/launch side of an app and pull in `node:child_process`
|
|
9
|
+
* and friends, so bundling the barrel for a webview fails outright:
|
|
10
|
+
*
|
|
11
|
+
* Browser build cannot import Node.js builtin: "child_process"
|
|
12
|
+
*
|
|
13
|
+
* That left no way to use the bridge wrappers from the UI they were written
|
|
14
|
+
* for. This entry exports only the modules that talk to `window.craft`, so a
|
|
15
|
+
* Craft app can bundle it with `target: 'browser'`.
|
|
16
|
+
*
|
|
17
|
+
* Host-side code keeps importing `@stacksjs/desktop` and is unaffected.
|
|
18
|
+
*/
|
|
19
|
+
export * from './alerts';
|
|
20
|
+
export * from './app-info';
|
|
21
|
+
export * from './apple-script';
|
|
22
|
+
export * from './audio';
|
|
23
|
+
export * from './battery';
|
|
24
|
+
export * from './biometric';
|
|
25
|
+
export * from './bluetooth';
|
|
26
|
+
export * from './bonjour';
|
|
27
|
+
export * from './capabilities';
|
|
28
|
+
export * from './clipboard';
|
|
29
|
+
export * from './continuity-camera';
|
|
30
|
+
export * from './coreml';
|
|
31
|
+
export * from './crash-reporter';
|
|
32
|
+
export * from './deep-link';
|
|
33
|
+
export * from './dialogs';
|
|
34
|
+
export * from './drag-out';
|
|
35
|
+
export * from './file-associations';
|
|
36
|
+
export * from './focus';
|
|
37
|
+
export * from './fs';
|
|
38
|
+
export * from './global-shortcuts';
|
|
39
|
+
export * from './handoff';
|
|
40
|
+
export * from './hotkeys';
|
|
41
|
+
export * from './iap';
|
|
42
|
+
export * from './keychain';
|
|
43
|
+
export * from './live-activities';
|
|
44
|
+
export * from './local-server';
|
|
45
|
+
export * from './location';
|
|
46
|
+
export * from './log';
|
|
47
|
+
export * from './menu';
|
|
48
|
+
export * from './midi';
|
|
49
|
+
export * from './modals';
|
|
50
|
+
export * from './native-autolaunch';
|
|
51
|
+
export * from './network';
|
|
52
|
+
export * from './notifications';
|
|
53
|
+
export * from './pdf';
|
|
54
|
+
export * from './permissions';
|
|
55
|
+
export * from './power';
|
|
56
|
+
export * from './printing';
|
|
57
|
+
export * from './screen';
|
|
58
|
+
export * from './screen-capture';
|
|
59
|
+
export * from './screen-sharing';
|
|
60
|
+
export * from './self-update';
|
|
61
|
+
export * from './serial';
|
|
62
|
+
export * from './service-menu';
|
|
63
|
+
export * from './shell';
|
|
64
|
+
export * from './speech';
|
|
65
|
+
export * from './speech-recognition';
|
|
66
|
+
export * from './spotlight';
|
|
67
|
+
export * from './tags';
|
|
68
|
+
export * from './theme';
|
|
69
|
+
export * from './timer';
|
|
70
|
+
export * from './touchbar';
|
|
71
|
+
export * from './updater';
|
|
72
|
+
export * from './vision';
|
|
73
|
+
export * from './window-events';
|