@stacksjs/types 0.75.543 → 0.75.548
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/desktop.d.ts +66 -4
- package/package.json +4 -4
package/dist/desktop.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { MobilePrivacyManifest } from './mobile';
|
|
2
2
|
/**
|
|
3
3
|
* `config/desktop.ts`: the desktop apps a Stacks project builds, the way
|
|
4
|
-
* `config/mobile.ts` declares its phone apps.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `buddy desktop:apple:package
|
|
4
|
+
* `config/mobile.ts` declares its phone apps. Two kinds: `macos`, a native
|
|
5
|
+
* macOS app whose stx screens are drawn by Craft's AppKit host (no web view),
|
|
6
|
+
* signed and packaged by `buddy build:desktop` and
|
|
7
|
+
* `buddy desktop:apple:package`; and `webview`, a web view window on a local
|
|
8
|
+
* agent that runs on macOS, Windows and Linux.
|
|
8
9
|
*
|
|
9
10
|
* ```ts
|
|
10
11
|
* export default {
|
|
@@ -26,6 +27,65 @@ import type { MobilePrivacyManifest } from './mobile';
|
|
|
26
27
|
*/
|
|
27
28
|
export declare interface DesktopConfig {
|
|
28
29
|
macos?: MacosDesktopConfig
|
|
30
|
+
webview?: WebviewDesktopConfig
|
|
31
|
+
}
|
|
32
|
+
export declare interface WebviewWindowConfig {
|
|
33
|
+
title?: string
|
|
34
|
+
width?: number
|
|
35
|
+
height?: number
|
|
36
|
+
darkMode?: boolean
|
|
37
|
+
devtools?: boolean
|
|
38
|
+
titlebarHidden?: boolean
|
|
39
|
+
arguments?: string[]
|
|
40
|
+
}
|
|
41
|
+
export declare interface WebviewAgentConfig {
|
|
42
|
+
entry?: string
|
|
43
|
+
port?: number
|
|
44
|
+
views?: string
|
|
45
|
+
components?: string[]
|
|
46
|
+
startPath?: string
|
|
47
|
+
publicPaths?: string[]
|
|
48
|
+
}
|
|
49
|
+
export declare interface WebviewUpdatesConfig {
|
|
50
|
+
feedUrl: string
|
|
51
|
+
publicKeys: Record<string, string>
|
|
52
|
+
channel?: string
|
|
53
|
+
disk?: string
|
|
54
|
+
prefix?: string
|
|
55
|
+
artifactBaseUrl?: string
|
|
56
|
+
checkEveryHours?: number
|
|
57
|
+
}
|
|
58
|
+
export declare interface WebviewDesktopConfig {
|
|
59
|
+
appName: string
|
|
60
|
+
appId: string
|
|
61
|
+
version?: string
|
|
62
|
+
description?: string
|
|
63
|
+
publisher?: string
|
|
64
|
+
homepage?: string
|
|
65
|
+
icon?: string
|
|
66
|
+
window?: WebviewWindowConfig
|
|
67
|
+
agent?: WebviewAgentConfig
|
|
68
|
+
urlSchemes?: string[]
|
|
69
|
+
updates?: WebviewUpdatesConfig
|
|
70
|
+
runtime?: Partial<Record<DesktopTargetName, string>>
|
|
71
|
+
macos?: {
|
|
72
|
+
bundleId?: string
|
|
73
|
+
minimumSystemVersion?: string
|
|
74
|
+
category?: string
|
|
75
|
+
entitlements?: Record<string, boolean | string | string[]>
|
|
76
|
+
usageDescriptions?: Record<string, string>
|
|
77
|
+
infoPlist?: Record<string, unknown>
|
|
78
|
+
}
|
|
79
|
+
windows?: {
|
|
80
|
+
additionalFiles?: string[]
|
|
81
|
+
certificatePath?: string
|
|
82
|
+
}
|
|
83
|
+
linux?: {
|
|
84
|
+
categories?: string[]
|
|
85
|
+
debDependencies?: string[]
|
|
86
|
+
rpmDependencies?: string[]
|
|
87
|
+
}
|
|
88
|
+
output?: string
|
|
29
89
|
}
|
|
30
90
|
export declare interface MacosWindowConfig {
|
|
31
91
|
width?: number
|
|
@@ -83,3 +143,5 @@ export declare interface MacosDockMenuItem {
|
|
|
83
143
|
title: string
|
|
84
144
|
action: string
|
|
85
145
|
}
|
|
146
|
+
/** A build target: a Node platform id and architecture, as `process.platform`-`process.arch`. */
|
|
147
|
+
export type DesktopTargetName = 'darwin-arm64' | 'darwin-x64' | 'linux-x64' | 'linux-arm64' | 'win32-x64' | 'win32-arm64';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.75.
|
|
4
|
+
"version": "0.75.548",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@stacksjs/bunpress": "^0.2.15",
|
|
66
66
|
"@stacksjs/clapp": "^0.2.12",
|
|
67
|
-
"@stacksjs/events": "0.75.
|
|
68
|
-
"@stacksjs/strings": "0.75.
|
|
67
|
+
"@stacksjs/events": "0.75.548",
|
|
68
|
+
"@stacksjs/strings": "0.75.548",
|
|
69
69
|
"@stacksjs/stx": "^0.2.842",
|
|
70
70
|
"@stacksjs/ts-validation": "^0.5.7",
|
|
71
71
|
"bun-query-builder": "^0.3.44"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@stacksjs/validation": "0.75.
|
|
86
|
+
"@stacksjs/validation": "0.75.548",
|
|
87
87
|
"better-dx": "^0.2.24",
|
|
88
88
|
"meilisearch": "^0.62.0",
|
|
89
89
|
"stripe": "23.0.0"
|