@lonik/oh-image 2.2.0 → 2.2.1
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/client.d.ts
CHANGED
package/dist/cloudflare.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as ImageLoaderOptions } from "./index-
|
|
1
|
+
import { s as ImageLoaderOptions } from "./index-Dk2EZWhe.js";
|
|
2
2
|
import { n as BaseLoaderOptions, r as BaseLoaderTransforms, t as BaseGlobalLoaderOptions } from "./base-loader-options-C1EZVxmE.js";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
package/dist/cloudinary.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as ImageLoaderOptions } from "./index-
|
|
1
|
+
import { s as ImageLoaderOptions } from "./index-Dk2EZWhe.js";
|
|
2
2
|
import { n as BaseLoaderOptions, r as BaseLoaderTransforms, t as BaseGlobalLoaderOptions } from "./base-loader-options-C1EZVxmE.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/loaders/cloudinary/cloudinary-options.d.ts
|
|
6
6
|
type BACKGROUND_MODE = "border" | "predominant" | "border_contrast" | "predominant_contrast" | "predominant_gradient" | "predominant_gradient_contrast" | "border_gradient" | "border_gradient_contrast";
|
|
@@ -106,6 +106,6 @@ declare const useCloudinaryContext: () => CloudinaryGlobalOptions, CloudinaryLoa
|
|
|
106
106
|
...props
|
|
107
107
|
}: {
|
|
108
108
|
children: React.ReactNode;
|
|
109
|
-
} & Partial<CloudinaryGlobalOptions>) =>
|
|
109
|
+
} & Partial<CloudinaryGlobalOptions>) => react_jsx_runtime3.JSX.Element, useCloudinaryLoader: (options?: CloudinaryGlobalOptions | undefined) => (() => undefined) | ((imageOptions: ImageLoaderOptions) => string);
|
|
110
110
|
//#endregion
|
|
111
111
|
export { CloudinaryGlobalOptions, CloudinaryLoaderProvider, CloudinaryOptions, CloudinaryTransforms, useCloudinaryContext, useCloudinaryLoader };
|
package/dist/imgproxy.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as ImageLoaderOptions } from "./index-
|
|
1
|
+
import { s as ImageLoaderOptions } from "./index-Dk2EZWhe.js";
|
|
2
2
|
import { n as BaseLoaderOptions, r as BaseLoaderTransforms, t as BaseGlobalLoaderOptions } from "./base-loader-options-C1EZVxmE.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/loaders/imgproxy/imgproxy-options.d.ts
|
|
6
6
|
type ResizeType = "fit" | "fill" | "fill-down" | "force" | "auto";
|
|
@@ -371,6 +371,6 @@ declare const useImgproxyContext: () => ImgproxyGlobalOptions, ImgproxyLoaderPro
|
|
|
371
371
|
...props
|
|
372
372
|
}: {
|
|
373
373
|
children: React.ReactNode;
|
|
374
|
-
} & Partial<ImgproxyGlobalOptions>) =>
|
|
374
|
+
} & Partial<ImgproxyGlobalOptions>) => react_jsx_runtime4.JSX.Element, useImgproxyLoader: (options?: ImgproxyGlobalOptions | undefined) => (() => undefined) | ((imageOptions: ImageLoaderOptions) => string);
|
|
375
375
|
//#endregion
|
|
376
376
|
export { ImgproxyGlobalOptions, ImgproxyLoaderProvider, ImgproxyOptions, ImgproxyTransforms, useImgproxyContext, useImgproxyLoader };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImgHTMLAttributes } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/react/types.d.ts
|
|
5
5
|
interface ImageLoaderOptions {
|
|
@@ -30,10 +30,10 @@ interface ImageProps extends Partial<Pick<ImgHTMLAttributes<HTMLImageElement>, "
|
|
|
30
30
|
}
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/react/image.d.ts
|
|
33
|
-
declare function Image(props: ImageProps):
|
|
33
|
+
declare function Image(props: ImageProps): react_jsx_runtime1.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/react/image-factory.d.ts
|
|
36
|
-
declare function __imageFactory(defaultProps: any): (props: any) =>
|
|
36
|
+
declare function __imageFactory(defaultProps: any): (props: any) => react_jsx_runtime1.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/react/use-img-loaded.d.ts
|
|
39
39
|
/**
|
|
@@ -75,6 +75,6 @@ declare function ImageProvider({
|
|
|
75
75
|
...props
|
|
76
76
|
}: {
|
|
77
77
|
children: React.ReactNode;
|
|
78
|
-
} & Partial<ImageContextValue>):
|
|
78
|
+
} & Partial<ImageContextValue>): react_jsx_runtime1.JSX.Element;
|
|
79
79
|
//#endregion
|
|
80
80
|
export { Image as a, ImageProps as c, __imageFactory as i, useImageContext as n, ImageLoader as o, useImgLoaded as r, ImageLoaderOptions as s, ImageProvider as t };
|
package/dist/react.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Image, c as ImageProps, i as __imageFactory, n as useImageContext, o as ImageLoader, r as useImgLoaded, s as ImageLoaderOptions, t as ImageProvider } from "./index-
|
|
1
|
+
import { a as Image, c as ImageProps, i as __imageFactory, n as useImageContext, o as ImageLoader, r as useImgLoaded, s as ImageLoaderOptions, t as ImageProvider } from "./index-Dk2EZWhe.js";
|
|
2
2
|
export { Image, ImageLoader, ImageLoaderOptions, ImageProps, ImageProvider, __imageFactory, useImageContext, useImgLoaded };
|
package/package.json
CHANGED