@stacksjs/types 0.70.231 → 0.70.234
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.d.ts +2 -1
- package/dist/images.d.ts +121 -0
- package/dist/index.d.ts +1 -0
- package/dist/stacks.d.ts +2 -1
- package/package.json +2 -4
package/dist/cli.d.ts
CHANGED
package/dist/images.d.ts
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export declare interface ImageGradientStop {
|
|
2
|
+
offset: number
|
|
3
|
+
color: ImageColor
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* A branded backdrop.
|
|
7
|
+
*
|
|
8
|
+
* Positions are fractions of the canvas rather than pixels, so one definition
|
|
9
|
+
* renders correctly at 1200x630, 1290x2796 and 2880x1800 — which is what lets
|
|
10
|
+
* a site's cards and an App Store listing share a single palette.
|
|
11
|
+
*/
|
|
12
|
+
export declare interface ImageBackgroundConfig {
|
|
13
|
+
color?: ImageColor
|
|
14
|
+
gradient?: { angle?: number, stops: ImageGradientStop[] }
|
|
15
|
+
glows?: Array<{ x: number, y: number, radius: number, color: ImageColor }>
|
|
16
|
+
image?: string
|
|
17
|
+
}
|
|
18
|
+
/** How a screenshot or product shot is drawn into a composition. */
|
|
19
|
+
export declare interface ImageDeviceConfig {
|
|
20
|
+
radius?: number
|
|
21
|
+
borderColor?: ImageColor
|
|
22
|
+
shadow?: false | { blur?: number, offsetX?: number, offsetY?: number, spread?: number, color?: ImageColor }
|
|
23
|
+
scale?: number
|
|
24
|
+
}
|
|
25
|
+
/** Faces used for generated imagery. TrueType (`glyf`) outlines only. */
|
|
26
|
+
export declare interface ImageFontConfig {
|
|
27
|
+
title: string
|
|
28
|
+
body?: string
|
|
29
|
+
}
|
|
30
|
+
export declare interface SocialCardPageConfig {
|
|
31
|
+
path: string
|
|
32
|
+
title: string
|
|
33
|
+
eyebrow?: string
|
|
34
|
+
subtitle?: string
|
|
35
|
+
foreground?: string
|
|
36
|
+
}
|
|
37
|
+
export declare interface SocialCardsConfig {
|
|
38
|
+
enabled?: boolean
|
|
39
|
+
outputDir?: string
|
|
40
|
+
publicPath?: string
|
|
41
|
+
presets?: Array<'og' | 'twitter' | 'square' | 'portrait'>
|
|
42
|
+
format?: 'jpeg' | 'png' | 'webp' | 'avif'
|
|
43
|
+
quality?: number
|
|
44
|
+
brand?: string
|
|
45
|
+
mark?: string
|
|
46
|
+
markPlate?: false | ImageColor
|
|
47
|
+
foreground?: string
|
|
48
|
+
device?: ImageDeviceConfig
|
|
49
|
+
background?: ImageBackgroundConfig
|
|
50
|
+
color?: ImageColor
|
|
51
|
+
mutedColor?: ImageColor
|
|
52
|
+
accent?: ImageColor
|
|
53
|
+
pages?: SocialCardPageConfig[]
|
|
54
|
+
}
|
|
55
|
+
export declare interface AppStoreSlideConfig {
|
|
56
|
+
capture: string
|
|
57
|
+
headline: string
|
|
58
|
+
subheadline?: string
|
|
59
|
+
displays?: AppStoreDisplay[]
|
|
60
|
+
background?: ImageBackgroundConfig
|
|
61
|
+
}
|
|
62
|
+
export declare interface AppStoreScreenshotsConfig {
|
|
63
|
+
enabled?: boolean
|
|
64
|
+
outputDir?: string
|
|
65
|
+
displays?: AppStoreDisplay[]
|
|
66
|
+
slides?: AppStoreSlideConfig[]
|
|
67
|
+
brand?: string
|
|
68
|
+
mark?: string
|
|
69
|
+
markPlate?: false | ImageColor
|
|
70
|
+
background?: ImageBackgroundConfig
|
|
71
|
+
device?: ImageDeviceConfig
|
|
72
|
+
color?: ImageColor
|
|
73
|
+
mutedColor?: ImageColor
|
|
74
|
+
format?: 'png' | 'jpeg'
|
|
75
|
+
quality?: number
|
|
76
|
+
layout?: 'auto' | 'stacked' | 'beside'
|
|
77
|
+
}
|
|
78
|
+
export declare interface AppIconsConfig {
|
|
79
|
+
enabled?: boolean
|
|
80
|
+
source?: string
|
|
81
|
+
outputDir?: string
|
|
82
|
+
platforms?: Array<'ios' | 'macos'>
|
|
83
|
+
favicon?: boolean
|
|
84
|
+
faviconDir?: string
|
|
85
|
+
}
|
|
86
|
+
export declare interface ImagesConfig {
|
|
87
|
+
fonts?: ImageFontConfig
|
|
88
|
+
background?: ImageBackgroundConfig
|
|
89
|
+
color?: ImageColor
|
|
90
|
+
mutedColor?: ImageColor
|
|
91
|
+
accent?: ImageColor
|
|
92
|
+
device?: ImageDeviceConfig
|
|
93
|
+
brand?: string
|
|
94
|
+
mark?: string
|
|
95
|
+
social?: SocialCardsConfig
|
|
96
|
+
appStore?: AppStoreScreenshotsConfig
|
|
97
|
+
appIcons?: AppIconsConfig
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* **Images Configuration**
|
|
101
|
+
*
|
|
102
|
+
* Generated imagery — social cards, App Store screenshots, app icons — is
|
|
103
|
+
* declared here and produced by `buddy generate:images`. The point of putting
|
|
104
|
+
* it in configuration rather than a script is that these assets go stale
|
|
105
|
+
* silently: a headline changes on the site and the card that quotes it does
|
|
106
|
+
* not, a release adds a feature and the store listing still shows the old one.
|
|
107
|
+
* Declared, they regenerate with the build.
|
|
108
|
+
*/
|
|
109
|
+
/** A colour, in any form `parseColor` reads: `#rgb`, `#rrggbbaa`, `rgb()`. */
|
|
110
|
+
export type ImageColor = string;
|
|
111
|
+
export type AppStoreDisplay = | 'APP_IPHONE_67'
|
|
112
|
+
| 'APP_IPHONE_65'
|
|
113
|
+
| 'APP_IPHONE_61'
|
|
114
|
+
| 'APP_IPHONE_58'
|
|
115
|
+
| 'APP_IPHONE_55'
|
|
116
|
+
| 'APP_IPAD_PRO_3GEN_129'
|
|
117
|
+
| 'APP_IPAD_PRO_3GEN_11'
|
|
118
|
+
| 'APP_IPAD_PRO_129'
|
|
119
|
+
| 'APP_IPAD_105'
|
|
120
|
+
| 'APP_IPAD_97'
|
|
121
|
+
| 'APP_DESKTOP';
|
package/dist/index.d.ts
CHANGED
package/dist/stacks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AiConfig, AnalyticsConfig, AppConfig, AuthConfig, BinaryConfig, CacheConfig, CloudConfig, CmsConfig, CommerceConfig, CorsConfig, DashboardConfig, DatabaseConfig, DnsConfig, DocsConfig, EmailConfig, ErrorConfig, FeatureFlagsConfig, FilesystemsConfig, GitConfig, HashingConfig, LibraryConfig, LoggingConfig, MarketingConfig, MonitoringConfig, NotificationConfig, PaymentConfig, Ports, QueueConfig, RealtimeConfig, SaasConfig, SearchEngineConfig, SecurityConfig, ServicesConfig, Team, UiConfig } from '.';
|
|
1
|
+
import type { AiConfig, AnalyticsConfig, AppConfig, AuthConfig, BinaryConfig, CacheConfig, CloudConfig, CmsConfig, CommerceConfig, CorsConfig, DashboardConfig, DatabaseConfig, DnsConfig, DocsConfig, EmailConfig, ErrorConfig, FeatureFlagsConfig, FilesystemsConfig, GitConfig, HashingConfig, ImagesConfig, LibraryConfig, LoggingConfig, MarketingConfig, MonitoringConfig, NotificationConfig, PaymentConfig, Ports, QueueConfig, RealtimeConfig, SaasConfig, SearchEngineConfig, SecurityConfig, ServicesConfig, Team, UiConfig } from '.';
|
|
2
2
|
/**
|
|
3
3
|
* **Stacks Options**
|
|
4
4
|
*
|
|
@@ -27,6 +27,7 @@ export declare interface StacksOptions {
|
|
|
27
27
|
errors: ErrorConfig
|
|
28
28
|
git: GitConfig
|
|
29
29
|
hashing: HashingConfig
|
|
30
|
+
images: ImagesConfig
|
|
30
31
|
library: LibraryConfig
|
|
31
32
|
logging: LoggingConfig
|
|
32
33
|
marketing: MarketingConfig
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.234",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -27,13 +27,11 @@
|
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
|
-
"development": "./src/index.ts",
|
|
31
30
|
"bun": "./dist/index.js",
|
|
32
31
|
"import": "./dist/index.js",
|
|
33
32
|
"default": "./dist/index.js"
|
|
34
33
|
},
|
|
35
34
|
"./*": {
|
|
36
|
-
"development": "./src/*",
|
|
37
35
|
"bun": "./dist/*",
|
|
38
36
|
"import": "./dist/*",
|
|
39
37
|
"default": "./dist/*"
|
|
@@ -66,7 +64,7 @@
|
|
|
66
64
|
}
|
|
67
65
|
},
|
|
68
66
|
"devDependencies": {
|
|
69
|
-
"@stacksjs/validation": "0.70.
|
|
67
|
+
"@stacksjs/validation": "0.70.234",
|
|
70
68
|
"better-dx": "^0.2.17",
|
|
71
69
|
"meilisearch": "^0.59.0"
|
|
72
70
|
},
|