@stacksjs/desktop 0.2.657 → 0.2.662
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/browser.d.ts +1 -0
- package/dist/browser.js +15 -15
- package/dist/index.d.ts +1 -0
- package/dist/index.js +48 -48
- package/dist/native-tray.d.ts +23 -0
- package/dist/native-window.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare function call(action: (tray: CraftTrayNamespace) => Promise<unknown>): Promise<void>;
|
|
2
|
+
/**
|
|
3
|
+
* @defaultValue
|
|
4
|
+
* ```ts
|
|
5
|
+
* {
|
|
6
|
+
* setIcon: (icon: string) => Promise<void>,
|
|
7
|
+
* setTitle: (title: string) => Promise<void>,
|
|
8
|
+
* setTooltip: (tooltip: string) => Promise<void>
|
|
9
|
+
* }
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare const nativeTray: {
|
|
13
|
+
/** An SF Symbol name, file URL, or PNG data URL. Craft draws it as a template. */
|
|
14
|
+
setIcon: (icon: string) => Promise<void>;
|
|
15
|
+
setTitle: (title: string) => Promise<void>;
|
|
16
|
+
setTooltip: (tooltip: string) => Promise<void>
|
|
17
|
+
};
|
|
18
|
+
/** Update the existing Craft status item from its page, without host imports. */
|
|
19
|
+
declare interface CraftTrayNamespace {
|
|
20
|
+
setIcon: (options: { icon: string }) => Promise<unknown>
|
|
21
|
+
setTitle: (options: { title: string }) => Promise<unknown>
|
|
22
|
+
setTooltip: (options: { tooltip: string }) => Promise<unknown>
|
|
23
|
+
}
|
package/dist/native-window.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export declare interface NativeWindowOptions {
|
|
|
43
43
|
declare interface CraftWindowNamespace {
|
|
44
44
|
open?: (options: NativeWindowOptions) => Promise<{ name?: string }>
|
|
45
45
|
close?: () => Promise<void>
|
|
46
|
+
show?: () => Promise<void>
|
|
47
|
+
hide?: () => Promise<void>
|
|
46
48
|
focus?: () => Promise<void>
|
|
47
49
|
minimize?: () => Promise<void>
|
|
48
50
|
maximize?: () => Promise<void>
|
|
@@ -56,6 +58,8 @@ export declare interface NativeWindow {
|
|
|
56
58
|
readonly available: boolean
|
|
57
59
|
open: (options: NativeWindowOptions) => Promise<{ name: string }>
|
|
58
60
|
close: () => Promise<void>
|
|
61
|
+
show: () => Promise<void>
|
|
62
|
+
hide: () => Promise<void>
|
|
59
63
|
focus: () => Promise<void>
|
|
60
64
|
minimize: () => Promise<void>
|
|
61
65
|
maximize: () => Promise<void>
|
package/package.json
CHANGED