@stacksjs/image 0.75.520 → 0.75.522
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/index.d.ts +12 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,17 @@ export declare interface ImageOptions { root?: string, outputDir?: string, publi
|
|
|
13
13
|
export type ImageFormat = 'avif' | 'webp' | 'jpeg' | 'png';
|
|
14
14
|
export type ImagePreset = 'avatar' | 'content' | 'hero' | 'thumbnail';
|
|
15
15
|
export declare class ImageBuilder {
|
|
16
|
+
private targetWidths;
|
|
17
|
+
private targetFormats;
|
|
18
|
+
private targetFit;
|
|
19
|
+
private targetHeight;
|
|
20
|
+
private targetAspectRatio;
|
|
21
|
+
private targetPosition;
|
|
22
|
+
private includeOriginal;
|
|
23
|
+
private targetStorage;
|
|
24
|
+
private targetQuality;
|
|
25
|
+
private options;
|
|
26
|
+
private source;
|
|
16
27
|
constructor(source: string, options?: ImageOptions);
|
|
17
28
|
widths(widths: number[]): this;
|
|
18
29
|
formats(formats: ImageFormat[]): this;
|
|
@@ -26,6 +37,7 @@ export declare class ImageBuilder {
|
|
|
26
37
|
output(dir: string, publicPath?: string): this;
|
|
27
38
|
storage(adapter: ImageStorageAdapter, prefix?: string): this;
|
|
28
39
|
generate(): Promise<ImageManifest>;
|
|
40
|
+
private variant;
|
|
29
41
|
}
|
|
30
42
|
// Generated imagery: social cards, App Store screenshots, app icons. Declared
|
|
31
43
|
// in `config/images.ts` and produced by `buddy generate:images`. Kept in this
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/image",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.522",
|
|
6
6
|
"description": "Native responsive image delivery for Stacks.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@stacksjs/ts-svg": "^0.1.5",
|
|
35
|
-
"@stacksjs/types": "0.75.
|
|
35
|
+
"@stacksjs/types": "0.75.522",
|
|
36
36
|
"ts-images": "^0.2.33"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|