@lonik/oh-image 2.5.0 → 2.7.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/README.md +1 -1
- package/dist/README.md +1 -1
- package/dist/cloudflare.d.ts +5 -4
- package/dist/cloudflare.js +1 -1
- package/dist/cloudinary.d.ts +36 -106
- package/dist/cloudinary.js +878 -71
- package/dist/contentful.d.ts +5 -4
- package/dist/contentful.js +1 -1
- package/dist/imgproxy.d.ts +3 -2
- package/dist/imgproxy.js +1 -1
- package/dist/index-C-1t5-gk.d.ts +52 -0
- package/dist/kontent.d.ts +3 -2
- package/dist/kontent.js +1 -1
- package/dist/netlify.d.ts +26 -0
- package/dist/netlify.js +20 -0
- package/dist/react.d.ts +2 -1
- package/dist/types-BEgZ3W30.d.ts +31 -0
- package/dist/wordpress.d.ts +5 -4
- package/dist/wordpress.js +1 -1
- package/package.json +6 -1
- package/dist/index-DObZcazO.d.ts +0 -80
- /package/dist/{base-loader-options-CVQjMJcC.d.ts → base-loader-options-DCLkYppY.d.ts} +0 -0
- /package/dist/{loader-factory-C6GaON4i.js → loader-factory-6EOKnqj1.js} +0 -0
package/README.md
CHANGED
package/dist/README.md
CHANGED
package/dist/cloudflare.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { n as ImageLoaderOptions } from "./types-BEgZ3W30.js";
|
|
2
|
+
import "./index-C-1t5-gk.js";
|
|
3
|
+
import { n as BaseLoaderOptions, t as BaseGlobalLoaderOptions } from "./base-loader-options-DCLkYppY.js";
|
|
4
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
4
5
|
|
|
5
6
|
//#region src/loaders/cloudflare/cloudflare-options.d.ts
|
|
6
7
|
type CloudflareTransforms = Partial<{
|
|
@@ -39,6 +40,6 @@ declare const useCloudflareContext: () => CloudflareGlobalOptions, CloudflareLoa
|
|
|
39
40
|
...props
|
|
40
41
|
}: {
|
|
41
42
|
children: React.ReactNode;
|
|
42
|
-
} & Partial<CloudflareGlobalOptions>) =>
|
|
43
|
+
} & Partial<CloudflareGlobalOptions>) => react_jsx_runtime3.JSX.Element, useCloudflareLoader: (options?: CloudflareGlobalOptions | undefined) => (() => undefined) | ((imageOptions: ImageLoaderOptions) => string);
|
|
43
44
|
//#endregion
|
|
44
45
|
export { CloudflareGlobalOptions, CloudflareLoaderProvider, CloudflareOptions, CloudflareTransforms, useCloudflareContext, useCloudflareLoader };
|
package/dist/cloudflare.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as loaderFactory } from "./loader-factory-
|
|
1
|
+
import { t as loaderFactory } from "./loader-factory-6EOKnqj1.js";
|
|
2
2
|
|
|
3
3
|
//#region src/loaders/cloudflare/cloudflare-loader.tsx
|
|
4
4
|
const { useLoaderContext: useCloudflareContext, LoaderProvider: CloudflareLoaderProvider, useLoader: useCloudflareLoader } = loaderFactory({
|
package/dist/cloudinary.d.ts
CHANGED
|
@@ -1,111 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { n as ImageLoaderOptions } from "./types-BEgZ3W30.js";
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
|
+
import { Cloudinary, CloudinaryImage } from "@cloudinary/url-gen";
|
|
4
4
|
|
|
5
5
|
//#region src/loaders/cloudinary/cloudinary-options.d.ts
|
|
6
|
-
type
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
direction: string;
|
|
21
|
-
color: string;
|
|
22
|
-
};
|
|
23
|
-
b_gen_fill?: {
|
|
24
|
-
prompt: string;
|
|
25
|
-
seed: number;
|
|
26
|
-
};
|
|
27
|
-
bl?: string;
|
|
28
|
-
bo?: string;
|
|
29
|
-
c?: CROP_MODE;
|
|
30
|
-
co?: string;
|
|
31
|
-
cs?: COLOR_SPACE;
|
|
32
|
-
d?: string;
|
|
33
|
-
dl?: number | string;
|
|
34
|
-
dn?: number;
|
|
35
|
-
dpr?: number | "auto";
|
|
36
|
-
du?: number | string;
|
|
37
|
-
e?: string;
|
|
38
|
-
e_accelerate?: number | boolean;
|
|
39
|
-
e_adv_redeye?: boolean;
|
|
40
|
-
anti_removal?: number | boolean;
|
|
41
|
-
art?: ART_FILTER;
|
|
42
|
-
e_art?: ART_FILTER;
|
|
43
|
-
e_auto_brightness?: boolean | number;
|
|
44
|
-
e_auto_color?: boolean | number;
|
|
45
|
-
e_auto_contrast?: boolean | number;
|
|
46
|
-
e_auto_enhance?: boolean | number;
|
|
47
|
-
e_background_removal?: boolean | string;
|
|
48
|
-
e_blur?: number | boolean;
|
|
49
|
-
e_blur_faces?: number | boolean;
|
|
50
|
-
e_blur_region?: number | boolean;
|
|
51
|
-
e_brightness?: number | boolean;
|
|
52
|
-
e_cartoonify?: number | string;
|
|
53
|
-
e_colorize?: number | boolean;
|
|
54
|
-
e_contrast?: number | boolean;
|
|
55
|
-
e_distort?: string;
|
|
56
|
-
e_drop_shadow?: number | string;
|
|
57
|
-
e_gamma?: number | boolean;
|
|
58
|
-
e_gradient_fade?: number | boolean;
|
|
59
|
-
e_grayscale?: boolean;
|
|
60
|
-
e_hue?: number | boolean;
|
|
61
|
-
e_improve?: boolean | string;
|
|
62
|
-
e_make_transparent?: number | string;
|
|
63
|
-
e_negate?: boolean;
|
|
64
|
-
e_oil_paint?: number | boolean;
|
|
65
|
-
e_pixelate?: number | boolean;
|
|
66
|
-
e_pixelate_faces?: number | boolean;
|
|
67
|
-
e_pixelate_region?: number | boolean;
|
|
68
|
-
e_redeye?: boolean;
|
|
69
|
-
e_saturation?: number | boolean;
|
|
70
|
-
e_screen?: boolean;
|
|
71
|
-
e_sepia?: number | boolean;
|
|
72
|
-
e_shadow?: number | string;
|
|
73
|
-
e_sharpen?: number | boolean;
|
|
74
|
-
e_shear?: string;
|
|
75
|
-
e_simulate_colorblind?: string;
|
|
76
|
-
e_tint?: string;
|
|
77
|
-
e_trim?: number | string;
|
|
78
|
-
e_unsharp_mask?: number | string;
|
|
79
|
-
e_vectorize?: number | string;
|
|
80
|
-
e_vignette?: number | boolean;
|
|
81
|
-
e_volume_mute?: boolean;
|
|
82
|
-
eo?: number | string;
|
|
83
|
-
f?: FORMAT_TYPE;
|
|
84
|
-
fl?: string | string[];
|
|
85
|
-
g?: string;
|
|
86
|
-
h?: number;
|
|
87
|
-
l?: string;
|
|
88
|
-
o?: number | string;
|
|
89
|
-
p?: string;
|
|
90
|
-
pg?: number | string;
|
|
91
|
-
q?: number | "auto" | string;
|
|
92
|
-
r?: number | "max" | string;
|
|
93
|
-
so?: number | string;
|
|
94
|
-
u?: string;
|
|
95
|
-
w?: number;
|
|
96
|
-
x?: number | string;
|
|
97
|
-
y?: number | string;
|
|
98
|
-
z?: number;
|
|
99
|
-
}>;
|
|
100
|
-
type CloudinaryOptions = BaseLoaderOptions<CloudinaryTransforms>;
|
|
101
|
-
type CloudinaryGlobalOptions = BaseGlobalLoaderOptions<CloudinaryTransforms>;
|
|
6
|
+
type CloudinaryTransforms = (img: CloudinaryImage) => CloudinaryImage;
|
|
7
|
+
type CloudinaryGlobalOptions = {
|
|
8
|
+
cld: Cloudinary;
|
|
9
|
+
};
|
|
10
|
+
interface CloudinaryLoaderHookOptions {
|
|
11
|
+
transforms?: CloudinaryTransforms;
|
|
12
|
+
placeholder?: CloudinaryTransforms;
|
|
13
|
+
}
|
|
14
|
+
interface CloudinaryLoaderProviderProps {
|
|
15
|
+
client: Cloudinary;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
transforms?: CloudinaryTransforms;
|
|
18
|
+
placeholder?: CloudinaryTransforms;
|
|
19
|
+
}
|
|
102
20
|
//#endregion
|
|
103
21
|
//#region src/loaders/cloudinary/cloudinary-loader.d.ts
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
22
|
+
interface CloudinaryLoaderContext {
|
|
23
|
+
cld?: Cloudinary;
|
|
24
|
+
transforms?: CloudinaryTransforms | undefined;
|
|
25
|
+
placeholder?: CloudinaryTransforms | undefined;
|
|
26
|
+
}
|
|
27
|
+
declare function CloudinaryLoaderProvider({
|
|
28
|
+
client,
|
|
29
|
+
children,
|
|
30
|
+
transforms,
|
|
31
|
+
placeholder
|
|
32
|
+
}: {
|
|
33
|
+
client: Cloudinary;
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
transforms?: CloudinaryTransforms;
|
|
36
|
+
placeholder?: CloudinaryTransforms;
|
|
37
|
+
}): react_jsx_runtime2.JSX.Element;
|
|
38
|
+
declare function useCloudinaryLoader(options?: CloudinaryLoaderHookOptions | CloudinaryTransforms): (imageOptions: ImageLoaderOptions) => string;
|
|
39
|
+
declare const useCloudinaryContext: () => CloudinaryLoaderContext;
|
|
110
40
|
//#endregion
|
|
111
|
-
export { CloudinaryGlobalOptions, CloudinaryLoaderProvider,
|
|
41
|
+
export { CloudinaryGlobalOptions, CloudinaryLoaderHookOptions, CloudinaryLoaderProvider, CloudinaryLoaderProviderProps, CloudinaryTransforms, useCloudinaryContext, useCloudinaryLoader };
|