@webstudio-is/image 0.198.0 → 0.199.0
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/lib/index.js
CHANGED
|
@@ -209,12 +209,9 @@ var wsImageLoader = (props) => {
|
|
|
209
209
|
}
|
|
210
210
|
return resultUrl.href;
|
|
211
211
|
};
|
|
212
|
-
var createImageLoader = (_loaderOptions) => wsImageLoader;
|
|
213
212
|
export {
|
|
214
213
|
Image,
|
|
215
|
-
UrlCanParse,
|
|
216
214
|
allSizes,
|
|
217
|
-
createImageLoader,
|
|
218
215
|
getImageAttributes,
|
|
219
216
|
imagePlaceholderDataUrl,
|
|
220
217
|
wsImageLoader
|
|
@@ -4,8 +4,3 @@ import { type ImageLoader } from "./image-optimize";
|
|
|
4
4
|
* https://developers.cloudflare.com/images/image-resizing/url-format/
|
|
5
5
|
**/
|
|
6
6
|
export declare const wsImageLoader: ImageLoader;
|
|
7
|
-
type ImageLoaderOptions = {
|
|
8
|
-
imageBaseUrl?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const createImageLoader: (_loaderOptions: ImageLoaderOptions) => ImageLoader;
|
|
11
|
-
export {};
|
|
@@ -96,10 +96,6 @@ export type ImageLoader = (props: {
|
|
|
96
96
|
format: "raw";
|
|
97
97
|
}) => string;
|
|
98
98
|
export declare const allSizes: number[];
|
|
99
|
-
/**
|
|
100
|
-
* URL.canParse(props.src)
|
|
101
|
-
*/
|
|
102
|
-
export declare const UrlCanParse: (url: string) => boolean;
|
|
103
99
|
export declare const getImageAttributes: (props: {
|
|
104
100
|
src: string | undefined;
|
|
105
101
|
srcSet: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/image",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.199.0",
|
|
4
4
|
"description": "Image optimization",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@types/react-dom": "^18.2.25",
|
|
15
15
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
16
16
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
17
|
-
"vitest": "^
|
|
17
|
+
"vitest": "^3.0.2",
|
|
18
18
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|