@stacksjs/types 0.75.452 → 0.75.458
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/mobile.d.ts +30 -4
- package/package.json +4 -4
package/dist/mobile.d.ts
CHANGED
|
@@ -24,11 +24,17 @@ export declare interface MobileCapabilities {
|
|
|
24
24
|
audioRecording?: boolean
|
|
25
25
|
videoRecording?: boolean
|
|
26
26
|
motionSensors?: boolean
|
|
27
|
+
barometer?: boolean
|
|
28
|
+
pedometer?: boolean
|
|
29
|
+
healthKitBackground?: boolean
|
|
30
|
+
shakeGesture?: boolean
|
|
27
31
|
localDatabase?: boolean
|
|
28
32
|
bluetooth?: boolean
|
|
29
33
|
nfc?: boolean
|
|
30
34
|
healthKit?: boolean
|
|
31
35
|
healthConnect?: boolean
|
|
36
|
+
healthServices?: boolean
|
|
37
|
+
wallet?: boolean
|
|
32
38
|
appleMusic?: boolean
|
|
33
39
|
heartRate?: boolean
|
|
34
40
|
backgroundAudio?: boolean
|
|
@@ -76,6 +82,26 @@ export declare interface IosBackgroundRefreshConfig {
|
|
|
76
82
|
identifier?: string
|
|
77
83
|
minimumIntervalMinutes?: number
|
|
78
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* A native app's launch screen. Every Stacks mobile app gets one by default:
|
|
87
|
+
* `buddy build:ios` / `build:android` render the app icon (or `logo`) with
|
|
88
|
+
* ts-images' splash preset at every scale the platform needs (iOS @1x/@2x/@3x,
|
|
89
|
+
* Android 12's splash icon and the legacy window logo per density), light and
|
|
90
|
+
* dark, on the app's own background colours, so nothing is cropped or blurred
|
|
91
|
+
* and nothing flashes between the launch screen and the first frame.
|
|
92
|
+
*/
|
|
93
|
+
export declare interface MobileSplashConfig {
|
|
94
|
+
image?: string
|
|
95
|
+
imageDark?: string
|
|
96
|
+
logo?: string
|
|
97
|
+
logoDark?: string
|
|
98
|
+
text?: string
|
|
99
|
+
font?: string
|
|
100
|
+
uppercase?: boolean
|
|
101
|
+
accent?: string | false
|
|
102
|
+
size?: number
|
|
103
|
+
shape?: 'none' | 'rounded' | 'circle'
|
|
104
|
+
}
|
|
79
105
|
export declare interface IosMobileConfig {
|
|
80
106
|
appShortcuts?: Array<{ id: string, title: string, subtitle?: string, symbol: string, url: string, phrases: string[] }>
|
|
81
107
|
nativeFonts?: NativeFontsConfig
|
|
@@ -130,14 +156,13 @@ export declare interface IosMobileConfig {
|
|
|
130
156
|
shareStorage?: Record<string, string>
|
|
131
157
|
appGroups?: string[]
|
|
132
158
|
appIcon?: string
|
|
133
|
-
splash?:
|
|
134
|
-
image?: string
|
|
135
|
-
imageDark?: string
|
|
136
|
-
}
|
|
159
|
+
splash?: MobileSplashConfig | false
|
|
137
160
|
privacy?: MobilePrivacyManifest
|
|
138
161
|
usageDescriptions?: Record<string, string>
|
|
139
162
|
orientations?: MobileOrientation[]
|
|
140
163
|
deviceFamilies?: IosDeviceFamily[]
|
|
164
|
+
healthKitBackgroundTypes?: Array<'steps' | 'heartRate' | 'restingHeartRate' | 'heartRateVariability' | 'activeEnergy' | 'distance' | 'bodyMass' | 'sleep' | 'workouts'>
|
|
165
|
+
healthKitBackgroundFrequency?: 'immediate' | 'hourly' | 'daily' | 'weekly'
|
|
141
166
|
capabilities?: MobileCapabilities
|
|
142
167
|
crashReporting?: MobileCrashReportingConfig
|
|
143
168
|
}
|
|
@@ -160,6 +185,7 @@ export declare interface AndroidMobileConfig {
|
|
|
160
185
|
appLinks?: Array<{ host: string, paths?: Array<{ pattern: string, exclude?: boolean }> }>
|
|
161
186
|
urlSchemes?: string[]
|
|
162
187
|
appIcon?: string
|
|
188
|
+
splash?: MobileSplashConfig | false
|
|
163
189
|
notificationIcon?: string
|
|
164
190
|
notificationColor?: string
|
|
165
191
|
googleServicesFile?: string
|
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.458",
|
|
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.458",
|
|
68
|
+
"@stacksjs/strings": "0.75.458",
|
|
69
69
|
"@stacksjs/stx": "0.2.794",
|
|
70
70
|
"@stacksjs/ts-validation": "^0.5.7",
|
|
71
71
|
"bun-query-builder": "^0.3.38"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@stacksjs/validation": "0.75.
|
|
86
|
+
"@stacksjs/validation": "0.75.458",
|
|
87
87
|
"better-dx": "^0.2.24",
|
|
88
88
|
"meilisearch": "^0.62.0",
|
|
89
89
|
"stripe": "23.0.0"
|