@stacksjs/types 0.75.55 → 0.75.56
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 +25 -0
- package/package.json +4 -4
package/dist/mobile.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare interface MobileCapabilities {
|
|
|
17
17
|
orientationLock?: boolean
|
|
18
18
|
deepLinks?: boolean
|
|
19
19
|
qrScanner?: boolean
|
|
20
|
+
localNetwork?: boolean
|
|
20
21
|
filePicker?: boolean
|
|
21
22
|
fileDownload?: boolean
|
|
22
23
|
socialAuth?: boolean
|
|
@@ -98,9 +99,33 @@ export declare interface AndroidMobileConfig {
|
|
|
98
99
|
googleServicesFile?: string
|
|
99
100
|
capabilities?: MobileCapabilities
|
|
100
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* One kind of application content a device may index for search.
|
|
104
|
+
*
|
|
105
|
+
* iOS indexes what an app donates as an `NSUserActivity`, and hands a tapped
|
|
106
|
+
* activity back only for an activity type the build declares in `Info.plist` —
|
|
107
|
+
* a list fixed at build time. A type per record id would be unbounded, so each
|
|
108
|
+
* kind gets a fixed number of slots and each slot holds whichever record is
|
|
109
|
+
* currently in it; the oldest donation makes room for the next.
|
|
110
|
+
*
|
|
111
|
+
* That is why `slots` is a budget rather than "index everything": every slot is
|
|
112
|
+
* one line in the generated `Info.plist` and one possible donation at launch.
|
|
113
|
+
*/
|
|
114
|
+
export declare interface SpotlightKindConfig {
|
|
115
|
+
slots: number
|
|
116
|
+
route: string
|
|
117
|
+
noun?: string
|
|
118
|
+
}
|
|
119
|
+
/** What the app lets a device index, and under what identifiers. */
|
|
120
|
+
export declare interface SpotlightConfig {
|
|
121
|
+
enabled?: boolean
|
|
122
|
+
kinds: Record<string, SpotlightKindConfig>
|
|
123
|
+
activityTypes?: string[]
|
|
124
|
+
}
|
|
101
125
|
export declare interface MobileConfig {
|
|
102
126
|
ios: IosMobileConfig
|
|
103
127
|
android?: AndroidMobileConfig
|
|
128
|
+
spotlight?: SpotlightConfig
|
|
104
129
|
}
|
|
105
130
|
export type MobileOrientation = 'portrait' | 'landscape-left' | 'landscape-right' | 'portrait-upside-down';
|
|
106
131
|
export type IosDeviceFamily = 'iphone' | 'ipad';
|
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.56",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@stacksjs/bunpress": "^0.2.8",
|
|
60
60
|
"@stacksjs/clapp": "^0.2.12",
|
|
61
|
-
"@stacksjs/events": "0.75.
|
|
62
|
-
"@stacksjs/strings": "0.75.
|
|
61
|
+
"@stacksjs/events": "0.75.56",
|
|
62
|
+
"@stacksjs/strings": "0.75.56",
|
|
63
63
|
"@stacksjs/stx": "^0.2.359",
|
|
64
64
|
"@stacksjs/ts-validation": "^0.5.6",
|
|
65
65
|
"bun-query-builder": "^0.3.5"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@stacksjs/validation": "0.75.
|
|
76
|
+
"@stacksjs/validation": "0.75.56",
|
|
77
77
|
"better-dx": "^0.2.24",
|
|
78
78
|
"meilisearch": "^0.62.0"
|
|
79
79
|
},
|