craft-native 0.0.97 → 0.0.98
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/cli.js +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/dist/types.d.ts +12 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -310,7 +310,7 @@ function craftBinaryNotFoundMessage(triedPath) {
|
|
|
310
310
|
`);
|
|
311
311
|
}
|
|
312
312
|
// package.json
|
|
313
|
-
var version = "0.0.
|
|
313
|
+
var version = "0.0.98";
|
|
314
314
|
|
|
315
315
|
// src/sdk-version.ts
|
|
316
316
|
var SDK_VERSION = version;
|
|
@@ -11109,6 +11109,8 @@ class CraftApp {
|
|
|
11109
11109
|
args.push("--hide-dock-icon");
|
|
11110
11110
|
if (window3?.menubarOnly)
|
|
11111
11111
|
args.push("--menubar-only");
|
|
11112
|
+
if (window3?.trayPopover)
|
|
11113
|
+
args.push("--tray-popover");
|
|
11112
11114
|
if (window3?.titlebarHidden)
|
|
11113
11115
|
args.push("--titlebar-hidden");
|
|
11114
11116
|
if (window3?.headless)
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ function craftBinaryNotFoundMessage(triedPath) {
|
|
|
58
58
|
`);
|
|
59
59
|
}
|
|
60
60
|
// package.json
|
|
61
|
-
var version = "0.0.
|
|
61
|
+
var version = "0.0.98";
|
|
62
62
|
|
|
63
63
|
// src/sdk-version.ts
|
|
64
64
|
var SDK_VERSION = version;
|
|
@@ -10869,6 +10869,8 @@ class CraftApp {
|
|
|
10869
10869
|
args.push("--hide-dock-icon");
|
|
10870
10870
|
if (window3?.menubarOnly)
|
|
10871
10871
|
args.push("--menubar-only");
|
|
10872
|
+
if (window3?.trayPopover)
|
|
10873
|
+
args.push("--tray-popover");
|
|
10872
10874
|
if (window3?.titlebarHidden)
|
|
10873
10875
|
args.push("--titlebar-hidden");
|
|
10874
10876
|
if (window3?.headless)
|
package/dist/types.d.ts
CHANGED
|
@@ -176,6 +176,18 @@ export interface WindowOptions {
|
|
|
176
176
|
* @default false
|
|
177
177
|
*/
|
|
178
178
|
menubarOnly?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* The window is the tray icon's popover (macOS): clicking the icon opens it
|
|
181
|
+
* underneath, on the popover material with rounded corners, and clicking
|
|
182
|
+
* anywhere else closes it. Implies `systemTray`, `frameless`, `headless`,
|
|
183
|
+
* `resizable: false`, `webWindowMaterial` and `hideDockIcon`.
|
|
184
|
+
*
|
|
185
|
+
* The page gets no `tray.onClick` in this mode, since the click already
|
|
186
|
+
* opened or closed it; `window.show()` and `window.hide()` open and close it
|
|
187
|
+
* in place, and `window.setSize()` keeps it hung from the icon.
|
|
188
|
+
* @default false
|
|
189
|
+
*/
|
|
190
|
+
trayPopover?: boolean;
|
|
179
191
|
/**
|
|
180
192
|
* Hide the titlebar (content extends to window edge)
|
|
181
193
|
* @default false
|