@absolutejs/absolute 0.19.0-beta.180 → 0.19.0-beta.182
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client-safe image utilities — no node:fs, no Sharp, no Bun APIs.
|
|
3
|
+
* These can be imported in both server and client (browser) contexts.
|
|
4
|
+
*/
|
|
5
|
+
export declare const DEFAULT_DEVICE_SIZES: number[];
|
|
6
|
+
export declare const DEFAULT_IMAGE_SIZES: number[];
|
|
7
|
+
export declare const DEFAULT_QUALITY = 75;
|
|
8
|
+
export declare const OPTIMIZATION_ENDPOINT = "/_absolute/image";
|
|
9
|
+
export declare const buildOptimizedUrl: (src: string, width: number, quality: number, basePath?: string) => string;
|
|
10
|
+
export declare const getAllSizes: (deviceSizes?: number[], imageSizes?: number[]) => number[];
|
|
11
|
+
export declare const generateSrcSet: (src: string, width: number | undefined, sizes: string | undefined, deviceSizes?: number[], imageSizes?: number[]) => string;
|
|
12
|
+
export declare const generateBlurSvg: (base64Thumbnail: string) => string;
|
package/package.json
CHANGED