next-cloudinary 6.0.0-beta.1 → 6.0.0-beta.3
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.mts +241 -24
- package/dist/index.d.ts +241 -24
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _cloudinary_url_gen_config_interfaces_Config_ICloudinaryConfigurations from '@cloudinary/url-gen/config/interfaces/Config/ICloudinaryConfigurations';
|
|
1
2
|
import React, { MutableRefObject } from 'react';
|
|
2
3
|
import { ImageProps } from 'next/image';
|
|
3
4
|
import { ImageOptions, ConfigOptions, AnalyticsOptions, VideoOptions } from '@cloudinary-util/url-loader';
|
|
@@ -8,8 +9,238 @@ type CldImageProps = Omit<ImageProps, 'src'> & ImageOptions & {
|
|
|
8
9
|
src: string;
|
|
9
10
|
unoptimized?: boolean;
|
|
10
11
|
};
|
|
11
|
-
declare const CldImage: React.ForwardRefExoticComponent<Omit<ImageProps, "src"> &
|
|
12
|
-
|
|
12
|
+
declare const CldImage: React.ForwardRefExoticComponent<Omit<ImageProps, "src"> & {
|
|
13
|
+
src: string;
|
|
14
|
+
crop?: "fill" | "lfill" | "fill_pad" | "crop" | "thumb" | "scale" | "fit" | "limit" | "mfit" | "pad" | "lpad" | "mpad" | "imagga_scale" | "imagga_crop" | undefined;
|
|
15
|
+
sanitize?: boolean | undefined;
|
|
16
|
+
assetType?: string | undefined;
|
|
17
|
+
deliveryType?: string | undefined;
|
|
18
|
+
dpr?: string | number | undefined;
|
|
19
|
+
format?: string | undefined;
|
|
20
|
+
height?: string | number | undefined;
|
|
21
|
+
quality?: string | number | undefined;
|
|
22
|
+
strictTransformations?: boolean | undefined;
|
|
23
|
+
width?: string | number | undefined;
|
|
24
|
+
art?: any;
|
|
25
|
+
autoBrightness?: any;
|
|
26
|
+
autoColor?: any;
|
|
27
|
+
autoContrast?: any;
|
|
28
|
+
assistColorblind?: any;
|
|
29
|
+
background?: any;
|
|
30
|
+
blackwhite?: any;
|
|
31
|
+
blur?: any;
|
|
32
|
+
blurFaces?: any;
|
|
33
|
+
blurRegion?: any;
|
|
34
|
+
border?: any;
|
|
35
|
+
brightness?: any;
|
|
36
|
+
brightnessHSB?: any;
|
|
37
|
+
cartoonify?: any;
|
|
38
|
+
color?: any;
|
|
39
|
+
colorize?: any;
|
|
40
|
+
contrast?: any;
|
|
41
|
+
distort?: any;
|
|
42
|
+
fillLight?: any;
|
|
43
|
+
gamma?: any;
|
|
44
|
+
gradientFade?: any;
|
|
45
|
+
grayscale?: any;
|
|
46
|
+
improve?: any;
|
|
47
|
+
multiply?: any;
|
|
48
|
+
negate?: any;
|
|
49
|
+
oilPaint?: any;
|
|
50
|
+
opacity?: any;
|
|
51
|
+
outline?: any;
|
|
52
|
+
pixelate?: any;
|
|
53
|
+
pixelateFaces?: any;
|
|
54
|
+
pixelateRegion?: any;
|
|
55
|
+
radius?: any;
|
|
56
|
+
redeye?: any;
|
|
57
|
+
replaceColor?: any;
|
|
58
|
+
saturation?: any;
|
|
59
|
+
screen?: any;
|
|
60
|
+
sepia?: any;
|
|
61
|
+
shadow?: any;
|
|
62
|
+
sharpen?: any;
|
|
63
|
+
shear?: any;
|
|
64
|
+
simulateColorblind?: any;
|
|
65
|
+
tint?: any;
|
|
66
|
+
trim?: any;
|
|
67
|
+
unsharpMask?: any;
|
|
68
|
+
vectorize?: any;
|
|
69
|
+
vibrance?: any;
|
|
70
|
+
vignette?: any;
|
|
71
|
+
effects?: {
|
|
72
|
+
art?: any;
|
|
73
|
+
autoBrightness?: any;
|
|
74
|
+
autoColor?: any;
|
|
75
|
+
autoContrast?: any;
|
|
76
|
+
assistColorblind?: any;
|
|
77
|
+
background?: any;
|
|
78
|
+
blackwhite?: any;
|
|
79
|
+
blur?: any;
|
|
80
|
+
blurFaces?: any;
|
|
81
|
+
blurRegion?: any;
|
|
82
|
+
border?: any;
|
|
83
|
+
brightness?: any;
|
|
84
|
+
brightnessHSB?: any;
|
|
85
|
+
cartoonify?: any;
|
|
86
|
+
color?: any;
|
|
87
|
+
colorize?: any;
|
|
88
|
+
contrast?: any;
|
|
89
|
+
distort?: any;
|
|
90
|
+
fillLight?: any;
|
|
91
|
+
gamma?: any;
|
|
92
|
+
gradientFade?: any;
|
|
93
|
+
grayscale?: any;
|
|
94
|
+
improve?: any;
|
|
95
|
+
multiply?: any;
|
|
96
|
+
negate?: any;
|
|
97
|
+
oilPaint?: any;
|
|
98
|
+
opacity?: any;
|
|
99
|
+
outline?: any;
|
|
100
|
+
pixelate?: any;
|
|
101
|
+
pixelateFaces?: any;
|
|
102
|
+
pixelateRegion?: any;
|
|
103
|
+
radius?: any;
|
|
104
|
+
redeye?: any;
|
|
105
|
+
replaceColor?: any;
|
|
106
|
+
saturation?: any;
|
|
107
|
+
screen?: any;
|
|
108
|
+
sepia?: any;
|
|
109
|
+
shadow?: any;
|
|
110
|
+
sharpen?: any;
|
|
111
|
+
shear?: any;
|
|
112
|
+
simulateColorblind?: any;
|
|
113
|
+
tint?: any;
|
|
114
|
+
trim?: any;
|
|
115
|
+
unsharpMask?: any;
|
|
116
|
+
vectorize?: any;
|
|
117
|
+
vibrance?: any;
|
|
118
|
+
vignette?: any;
|
|
119
|
+
}[] | undefined;
|
|
120
|
+
flags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
121
|
+
gravity?: string | undefined;
|
|
122
|
+
text?: string | undefined;
|
|
123
|
+
version?: string | number | undefined;
|
|
124
|
+
underlay?: string | undefined;
|
|
125
|
+
underlays?: {
|
|
126
|
+
appliedEffects?: {}[] | undefined;
|
|
127
|
+
appliedFlags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
128
|
+
effects?: {}[] | undefined;
|
|
129
|
+
crop?: "fill" | "lfill" | "fill_pad" | "crop" | "thumb" | "scale" | "fit" | "limit" | "mfit" | "pad" | "lpad" | "mpad" | "imagga_scale" | "imagga_crop" | undefined;
|
|
130
|
+
flags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
131
|
+
height?: string | number | undefined;
|
|
132
|
+
position?: {
|
|
133
|
+
angle?: string | number | undefined;
|
|
134
|
+
gravity?: string | undefined;
|
|
135
|
+
x?: string | number | undefined;
|
|
136
|
+
y?: string | number | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
publicId?: string | undefined;
|
|
139
|
+
type?: string | undefined;
|
|
140
|
+
url?: string | undefined;
|
|
141
|
+
width?: string | number | undefined;
|
|
142
|
+
}[] | undefined;
|
|
143
|
+
seoSuffix?: string | undefined;
|
|
144
|
+
removeBackground?: boolean | undefined;
|
|
145
|
+
rawTransformations?: string | string[] | undefined;
|
|
146
|
+
overlay?: {
|
|
147
|
+
appliedEffects?: {}[] | undefined;
|
|
148
|
+
appliedFlags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
149
|
+
effects?: {}[] | undefined;
|
|
150
|
+
crop?: "fill" | "lfill" | "fill_pad" | "crop" | "thumb" | "scale" | "fit" | "limit" | "mfit" | "pad" | "lpad" | "mpad" | "imagga_scale" | "imagga_crop" | undefined;
|
|
151
|
+
flags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
152
|
+
height?: string | number | undefined;
|
|
153
|
+
position?: {
|
|
154
|
+
angle?: string | number | undefined;
|
|
155
|
+
gravity?: string | undefined;
|
|
156
|
+
x?: string | number | undefined;
|
|
157
|
+
y?: string | number | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
publicId?: string | undefined;
|
|
160
|
+
text?: string | {
|
|
161
|
+
text: string;
|
|
162
|
+
alignment?: string | undefined;
|
|
163
|
+
antialias?: string | undefined;
|
|
164
|
+
border?: string | undefined;
|
|
165
|
+
color?: string | undefined;
|
|
166
|
+
fontFamily?: string | undefined;
|
|
167
|
+
fontSize?: number | undefined;
|
|
168
|
+
fontStyle?: string | number | undefined;
|
|
169
|
+
fontWeight?: string | undefined;
|
|
170
|
+
hinting?: string | number | undefined;
|
|
171
|
+
letterSpacing?: string | number | undefined;
|
|
172
|
+
lineSpacing?: string | number | undefined;
|
|
173
|
+
stroke?: string | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
url?: string | undefined;
|
|
176
|
+
width?: string | number | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
overlays?: {
|
|
179
|
+
appliedEffects?: {}[] | undefined;
|
|
180
|
+
appliedFlags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
181
|
+
effects?: {}[] | undefined;
|
|
182
|
+
crop?: "fill" | "lfill" | "fill_pad" | "crop" | "thumb" | "scale" | "fit" | "limit" | "mfit" | "pad" | "lpad" | "mpad" | "imagga_scale" | "imagga_crop" | undefined;
|
|
183
|
+
flags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
184
|
+
height?: string | number | undefined;
|
|
185
|
+
position?: {
|
|
186
|
+
angle?: string | number | undefined;
|
|
187
|
+
gravity?: string | undefined;
|
|
188
|
+
x?: string | number | undefined;
|
|
189
|
+
y?: string | number | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
publicId?: string | undefined;
|
|
192
|
+
text?: string | {
|
|
193
|
+
text: string;
|
|
194
|
+
alignment?: string | undefined;
|
|
195
|
+
antialias?: string | undefined;
|
|
196
|
+
border?: string | undefined;
|
|
197
|
+
color?: string | undefined;
|
|
198
|
+
fontFamily?: string | undefined;
|
|
199
|
+
fontSize?: number | undefined;
|
|
200
|
+
fontStyle?: string | number | undefined;
|
|
201
|
+
fontWeight?: string | undefined;
|
|
202
|
+
hinting?: string | number | undefined;
|
|
203
|
+
letterSpacing?: string | number | undefined;
|
|
204
|
+
lineSpacing?: string | number | undefined;
|
|
205
|
+
stroke?: string | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
url?: string | undefined;
|
|
208
|
+
width?: string | number | undefined;
|
|
209
|
+
}[] | undefined;
|
|
210
|
+
namedTransformations?: string | string[] | undefined;
|
|
211
|
+
transformations?: string | string[] | undefined;
|
|
212
|
+
aspectRatio?: string | number | undefined;
|
|
213
|
+
widthResize?: string | number | undefined;
|
|
214
|
+
zoom?: string | undefined;
|
|
215
|
+
zoompan?: string | boolean | {
|
|
216
|
+
options: string;
|
|
217
|
+
loop: string | boolean;
|
|
218
|
+
} | undefined;
|
|
219
|
+
restore?: boolean | undefined;
|
|
220
|
+
replace?: string[] | boolean[] | {
|
|
221
|
+
to: string;
|
|
222
|
+
from: string;
|
|
223
|
+
preserveGeometry?: boolean | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
remove?: string | string[] | {
|
|
226
|
+
prompt?: string | string[] | undefined;
|
|
227
|
+
region?: number[] | number[][] | undefined;
|
|
228
|
+
multiple?: boolean | undefined;
|
|
229
|
+
removeShadow?: boolean | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
recolor?: string | string[] | {
|
|
232
|
+
prompt?: string | string[] | undefined;
|
|
233
|
+
to?: string | undefined;
|
|
234
|
+
multiple?: boolean | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
fillBackground?: boolean | {
|
|
237
|
+
crop?: "fill" | "lfill" | "fill_pad" | "crop" | "thumb" | "scale" | "fit" | "limit" | "mfit" | "pad" | "lpad" | "mpad" | "imagga_scale" | "imagga_crop" | undefined;
|
|
238
|
+
gravity?: string | undefined;
|
|
239
|
+
prompt?: string | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
defaultImage?: string | undefined;
|
|
242
|
+
} & {
|
|
243
|
+
config?: _cloudinary_url_gen_config_interfaces_Config_ICloudinaryConfigurations.default | undefined;
|
|
13
244
|
preserveTransformations?: boolean | undefined;
|
|
14
245
|
src: string;
|
|
15
246
|
unoptimized?: boolean | undefined;
|
|
@@ -285,28 +516,17 @@ interface CloudinaryVideoPlayerOptionPosterOptions {
|
|
|
285
516
|
/**
|
|
286
517
|
* getCldImageUrl
|
|
287
518
|
*/
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
interface GetCldImageUrlAnalytics extends AnalyticsOptions {
|
|
293
|
-
}
|
|
294
|
-
interface GetCldImageUrl {
|
|
295
|
-
options: GetCldImageUrlOptions;
|
|
296
|
-
config?: GetCldImageUrlConfig;
|
|
297
|
-
analytics?: GetCldImageUrlAnalytics;
|
|
298
|
-
}
|
|
519
|
+
type GetCldImageUrlOptions = ImageOptions;
|
|
520
|
+
type GetCldImageUrlConfig = ConfigOptions;
|
|
521
|
+
type GetCldImageUrlAnalytics = AnalyticsOptions;
|
|
299
522
|
declare function getCldImageUrl(options: GetCldImageUrlOptions, config?: GetCldImageUrlConfig, analytics?: GetCldImageUrlAnalytics): string;
|
|
300
523
|
|
|
301
524
|
/**
|
|
302
525
|
* getCldVideoUrl
|
|
303
526
|
*/
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
interface GetCldVideoUrlAnalytics extends AnalyticsOptions {
|
|
309
|
-
}
|
|
527
|
+
type GetCldVideoUrlOptions = VideoOptions;
|
|
528
|
+
type GetCldVideoUrlConfig = ConfigOptions;
|
|
529
|
+
type GetCldVideoUrlAnalytics = AnalyticsOptions;
|
|
310
530
|
declare function getCldVideoUrl(options: GetCldVideoUrlOptions, config?: GetCldVideoUrlConfig, analytics?: GetCldVideoUrlAnalytics): string;
|
|
311
531
|
|
|
312
532
|
type CldVideoPlayerProps = Omit<CloudinaryVideoPlayerOptions, "cloud_name" | "autoplayMode" | "publicId" | "secure" | "showLogo" | "logoImageUrl" | "logoOnclickUrl"> & {
|
|
@@ -355,10 +575,7 @@ declare function cloudinaryLoader({ loaderOptions, imageProps, cldOptions, cldCo
|
|
|
355
575
|
/**
|
|
356
576
|
* getCldImageUrl
|
|
357
577
|
*/
|
|
358
|
-
|
|
359
|
-
}
|
|
360
|
-
interface GetCldOgImageUrlOptions extends GetCldImageUrlOptions {
|
|
361
|
-
}
|
|
578
|
+
type GetCldOgImageUrlOptions = GetCldImageUrlOptions;
|
|
362
579
|
declare function getCldOgImageUrl(options: GetCldOgImageUrlOptions): string;
|
|
363
580
|
|
|
364
|
-
export { CldImage, CldImageProps, CldOgImage, CldOgImageProps, CldUploadButton, CldUploadButtonProps, CldUploadWidget, CldUploadWidgetProps, CldUploadWidgetPropsChildren, CldUploadWidgetPropsOptions, CldUploadWidgetResults, CldVideoPlayer, CldVideoPlayerProps, CldVideoPlayerPropsColors, CldVideoPlayerPropsLogo, CloudinaryLoader, CloudinaryLoaderCldOptions, CloudinaryLoaderLoaderOptions, CloudinaryVideoPlayer, CloudinaryVideoPlayerOptions, CloudinaryVideoPlayerOptionsColors, CloudinaryVideoPlayerOptionsLogo,
|
|
581
|
+
export { CldImage, CldImageProps, CldOgImage, CldOgImageProps, CldUploadButton, CldUploadButtonProps, CldUploadWidget, CldUploadWidgetInfo, CldUploadWidgetProps, CldUploadWidgetPropsChildren, CldUploadWidgetPropsOptions, CldUploadWidgetResults, CldVideoPlayer, CldVideoPlayerProps, CldVideoPlayerPropsColors, CldVideoPlayerPropsLogo, CloudinaryLoader, CloudinaryLoaderCldOptions, CloudinaryLoaderLoaderOptions, CloudinaryVideoPlayer, CloudinaryVideoPlayerOptions, CloudinaryVideoPlayerOptionsColors, CloudinaryVideoPlayerOptionsLogo, GetCldImageUrlAnalytics, GetCldImageUrlConfig, GetCldImageUrlOptions, GetCldOgImageUrlOptions, GetCldVideoUrlAnalytics, GetCldVideoUrlConfig, GetCldVideoUrlOptions, cloudinaryLoader, getCldImageUrl, getCldOgImageUrl, getCldVideoUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _cloudinary_url_gen_config_interfaces_Config_ICloudinaryConfigurations from '@cloudinary/url-gen/config/interfaces/Config/ICloudinaryConfigurations';
|
|
1
2
|
import React, { MutableRefObject } from 'react';
|
|
2
3
|
import { ImageProps } from 'next/image';
|
|
3
4
|
import { ImageOptions, ConfigOptions, AnalyticsOptions, VideoOptions } from '@cloudinary-util/url-loader';
|
|
@@ -8,8 +9,238 @@ type CldImageProps = Omit<ImageProps, 'src'> & ImageOptions & {
|
|
|
8
9
|
src: string;
|
|
9
10
|
unoptimized?: boolean;
|
|
10
11
|
};
|
|
11
|
-
declare const CldImage: React.ForwardRefExoticComponent<Omit<ImageProps, "src"> &
|
|
12
|
-
|
|
12
|
+
declare const CldImage: React.ForwardRefExoticComponent<Omit<ImageProps, "src"> & {
|
|
13
|
+
src: string;
|
|
14
|
+
crop?: "fill" | "lfill" | "fill_pad" | "crop" | "thumb" | "scale" | "fit" | "limit" | "mfit" | "pad" | "lpad" | "mpad" | "imagga_scale" | "imagga_crop" | undefined;
|
|
15
|
+
sanitize?: boolean | undefined;
|
|
16
|
+
assetType?: string | undefined;
|
|
17
|
+
deliveryType?: string | undefined;
|
|
18
|
+
dpr?: string | number | undefined;
|
|
19
|
+
format?: string | undefined;
|
|
20
|
+
height?: string | number | undefined;
|
|
21
|
+
quality?: string | number | undefined;
|
|
22
|
+
strictTransformations?: boolean | undefined;
|
|
23
|
+
width?: string | number | undefined;
|
|
24
|
+
art?: any;
|
|
25
|
+
autoBrightness?: any;
|
|
26
|
+
autoColor?: any;
|
|
27
|
+
autoContrast?: any;
|
|
28
|
+
assistColorblind?: any;
|
|
29
|
+
background?: any;
|
|
30
|
+
blackwhite?: any;
|
|
31
|
+
blur?: any;
|
|
32
|
+
blurFaces?: any;
|
|
33
|
+
blurRegion?: any;
|
|
34
|
+
border?: any;
|
|
35
|
+
brightness?: any;
|
|
36
|
+
brightnessHSB?: any;
|
|
37
|
+
cartoonify?: any;
|
|
38
|
+
color?: any;
|
|
39
|
+
colorize?: any;
|
|
40
|
+
contrast?: any;
|
|
41
|
+
distort?: any;
|
|
42
|
+
fillLight?: any;
|
|
43
|
+
gamma?: any;
|
|
44
|
+
gradientFade?: any;
|
|
45
|
+
grayscale?: any;
|
|
46
|
+
improve?: any;
|
|
47
|
+
multiply?: any;
|
|
48
|
+
negate?: any;
|
|
49
|
+
oilPaint?: any;
|
|
50
|
+
opacity?: any;
|
|
51
|
+
outline?: any;
|
|
52
|
+
pixelate?: any;
|
|
53
|
+
pixelateFaces?: any;
|
|
54
|
+
pixelateRegion?: any;
|
|
55
|
+
radius?: any;
|
|
56
|
+
redeye?: any;
|
|
57
|
+
replaceColor?: any;
|
|
58
|
+
saturation?: any;
|
|
59
|
+
screen?: any;
|
|
60
|
+
sepia?: any;
|
|
61
|
+
shadow?: any;
|
|
62
|
+
sharpen?: any;
|
|
63
|
+
shear?: any;
|
|
64
|
+
simulateColorblind?: any;
|
|
65
|
+
tint?: any;
|
|
66
|
+
trim?: any;
|
|
67
|
+
unsharpMask?: any;
|
|
68
|
+
vectorize?: any;
|
|
69
|
+
vibrance?: any;
|
|
70
|
+
vignette?: any;
|
|
71
|
+
effects?: {
|
|
72
|
+
art?: any;
|
|
73
|
+
autoBrightness?: any;
|
|
74
|
+
autoColor?: any;
|
|
75
|
+
autoContrast?: any;
|
|
76
|
+
assistColorblind?: any;
|
|
77
|
+
background?: any;
|
|
78
|
+
blackwhite?: any;
|
|
79
|
+
blur?: any;
|
|
80
|
+
blurFaces?: any;
|
|
81
|
+
blurRegion?: any;
|
|
82
|
+
border?: any;
|
|
83
|
+
brightness?: any;
|
|
84
|
+
brightnessHSB?: any;
|
|
85
|
+
cartoonify?: any;
|
|
86
|
+
color?: any;
|
|
87
|
+
colorize?: any;
|
|
88
|
+
contrast?: any;
|
|
89
|
+
distort?: any;
|
|
90
|
+
fillLight?: any;
|
|
91
|
+
gamma?: any;
|
|
92
|
+
gradientFade?: any;
|
|
93
|
+
grayscale?: any;
|
|
94
|
+
improve?: any;
|
|
95
|
+
multiply?: any;
|
|
96
|
+
negate?: any;
|
|
97
|
+
oilPaint?: any;
|
|
98
|
+
opacity?: any;
|
|
99
|
+
outline?: any;
|
|
100
|
+
pixelate?: any;
|
|
101
|
+
pixelateFaces?: any;
|
|
102
|
+
pixelateRegion?: any;
|
|
103
|
+
radius?: any;
|
|
104
|
+
redeye?: any;
|
|
105
|
+
replaceColor?: any;
|
|
106
|
+
saturation?: any;
|
|
107
|
+
screen?: any;
|
|
108
|
+
sepia?: any;
|
|
109
|
+
shadow?: any;
|
|
110
|
+
sharpen?: any;
|
|
111
|
+
shear?: any;
|
|
112
|
+
simulateColorblind?: any;
|
|
113
|
+
tint?: any;
|
|
114
|
+
trim?: any;
|
|
115
|
+
unsharpMask?: any;
|
|
116
|
+
vectorize?: any;
|
|
117
|
+
vibrance?: any;
|
|
118
|
+
vignette?: any;
|
|
119
|
+
}[] | undefined;
|
|
120
|
+
flags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
121
|
+
gravity?: string | undefined;
|
|
122
|
+
text?: string | undefined;
|
|
123
|
+
version?: string | number | undefined;
|
|
124
|
+
underlay?: string | undefined;
|
|
125
|
+
underlays?: {
|
|
126
|
+
appliedEffects?: {}[] | undefined;
|
|
127
|
+
appliedFlags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
128
|
+
effects?: {}[] | undefined;
|
|
129
|
+
crop?: "fill" | "lfill" | "fill_pad" | "crop" | "thumb" | "scale" | "fit" | "limit" | "mfit" | "pad" | "lpad" | "mpad" | "imagga_scale" | "imagga_crop" | undefined;
|
|
130
|
+
flags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
131
|
+
height?: string | number | undefined;
|
|
132
|
+
position?: {
|
|
133
|
+
angle?: string | number | undefined;
|
|
134
|
+
gravity?: string | undefined;
|
|
135
|
+
x?: string | number | undefined;
|
|
136
|
+
y?: string | number | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
publicId?: string | undefined;
|
|
139
|
+
type?: string | undefined;
|
|
140
|
+
url?: string | undefined;
|
|
141
|
+
width?: string | number | undefined;
|
|
142
|
+
}[] | undefined;
|
|
143
|
+
seoSuffix?: string | undefined;
|
|
144
|
+
removeBackground?: boolean | undefined;
|
|
145
|
+
rawTransformations?: string | string[] | undefined;
|
|
146
|
+
overlay?: {
|
|
147
|
+
appliedEffects?: {}[] | undefined;
|
|
148
|
+
appliedFlags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
149
|
+
effects?: {}[] | undefined;
|
|
150
|
+
crop?: "fill" | "lfill" | "fill_pad" | "crop" | "thumb" | "scale" | "fit" | "limit" | "mfit" | "pad" | "lpad" | "mpad" | "imagga_scale" | "imagga_crop" | undefined;
|
|
151
|
+
flags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
152
|
+
height?: string | number | undefined;
|
|
153
|
+
position?: {
|
|
154
|
+
angle?: string | number | undefined;
|
|
155
|
+
gravity?: string | undefined;
|
|
156
|
+
x?: string | number | undefined;
|
|
157
|
+
y?: string | number | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
publicId?: string | undefined;
|
|
160
|
+
text?: string | {
|
|
161
|
+
text: string;
|
|
162
|
+
alignment?: string | undefined;
|
|
163
|
+
antialias?: string | undefined;
|
|
164
|
+
border?: string | undefined;
|
|
165
|
+
color?: string | undefined;
|
|
166
|
+
fontFamily?: string | undefined;
|
|
167
|
+
fontSize?: number | undefined;
|
|
168
|
+
fontStyle?: string | number | undefined;
|
|
169
|
+
fontWeight?: string | undefined;
|
|
170
|
+
hinting?: string | number | undefined;
|
|
171
|
+
letterSpacing?: string | number | undefined;
|
|
172
|
+
lineSpacing?: string | number | undefined;
|
|
173
|
+
stroke?: string | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
url?: string | undefined;
|
|
176
|
+
width?: string | number | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
overlays?: {
|
|
179
|
+
appliedEffects?: {}[] | undefined;
|
|
180
|
+
appliedFlags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
181
|
+
effects?: {}[] | undefined;
|
|
182
|
+
crop?: "fill" | "lfill" | "fill_pad" | "crop" | "thumb" | "scale" | "fit" | "limit" | "mfit" | "pad" | "lpad" | "mpad" | "imagga_scale" | "imagga_crop" | undefined;
|
|
183
|
+
flags?: "splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform" | ("splice" | "animated" | "any_format" | "apng" | "attachment" | "awebp" | "clip" | "clip_evenodd" | "cutter" | "force_icc" | "force_strip" | "getinfo" | "group4" | "hlsv3" | "ignore_aspect_ratio" | "ignore_mask_channels" | "immutable_cache" | "keep_attribution" | "keep_dar" | "keep_iptc" | "layer_apply" | "lossy" | "mono" | "no_overflow" | "no_stream" | "png8_fl_png24_fl_png32" | "preserve_transparency" | "progressive" | "rasterize" | "region_relative" | "relative" | "replace_image" | "sanitize" | "streaming_attachment" | "strip_profile" | "text_disallow_overflow" | "text_no_trim" | "tiff8_lzw" | "tiled" | "truncate_ts" | "waveform")[] | undefined;
|
|
184
|
+
height?: string | number | undefined;
|
|
185
|
+
position?: {
|
|
186
|
+
angle?: string | number | undefined;
|
|
187
|
+
gravity?: string | undefined;
|
|
188
|
+
x?: string | number | undefined;
|
|
189
|
+
y?: string | number | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
publicId?: string | undefined;
|
|
192
|
+
text?: string | {
|
|
193
|
+
text: string;
|
|
194
|
+
alignment?: string | undefined;
|
|
195
|
+
antialias?: string | undefined;
|
|
196
|
+
border?: string | undefined;
|
|
197
|
+
color?: string | undefined;
|
|
198
|
+
fontFamily?: string | undefined;
|
|
199
|
+
fontSize?: number | undefined;
|
|
200
|
+
fontStyle?: string | number | undefined;
|
|
201
|
+
fontWeight?: string | undefined;
|
|
202
|
+
hinting?: string | number | undefined;
|
|
203
|
+
letterSpacing?: string | number | undefined;
|
|
204
|
+
lineSpacing?: string | number | undefined;
|
|
205
|
+
stroke?: string | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
url?: string | undefined;
|
|
208
|
+
width?: string | number | undefined;
|
|
209
|
+
}[] | undefined;
|
|
210
|
+
namedTransformations?: string | string[] | undefined;
|
|
211
|
+
transformations?: string | string[] | undefined;
|
|
212
|
+
aspectRatio?: string | number | undefined;
|
|
213
|
+
widthResize?: string | number | undefined;
|
|
214
|
+
zoom?: string | undefined;
|
|
215
|
+
zoompan?: string | boolean | {
|
|
216
|
+
options: string;
|
|
217
|
+
loop: string | boolean;
|
|
218
|
+
} | undefined;
|
|
219
|
+
restore?: boolean | undefined;
|
|
220
|
+
replace?: string[] | boolean[] | {
|
|
221
|
+
to: string;
|
|
222
|
+
from: string;
|
|
223
|
+
preserveGeometry?: boolean | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
remove?: string | string[] | {
|
|
226
|
+
prompt?: string | string[] | undefined;
|
|
227
|
+
region?: number[] | number[][] | undefined;
|
|
228
|
+
multiple?: boolean | undefined;
|
|
229
|
+
removeShadow?: boolean | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
recolor?: string | string[] | {
|
|
232
|
+
prompt?: string | string[] | undefined;
|
|
233
|
+
to?: string | undefined;
|
|
234
|
+
multiple?: boolean | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
fillBackground?: boolean | {
|
|
237
|
+
crop?: "fill" | "lfill" | "fill_pad" | "crop" | "thumb" | "scale" | "fit" | "limit" | "mfit" | "pad" | "lpad" | "mpad" | "imagga_scale" | "imagga_crop" | undefined;
|
|
238
|
+
gravity?: string | undefined;
|
|
239
|
+
prompt?: string | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
defaultImage?: string | undefined;
|
|
242
|
+
} & {
|
|
243
|
+
config?: _cloudinary_url_gen_config_interfaces_Config_ICloudinaryConfigurations.default | undefined;
|
|
13
244
|
preserveTransformations?: boolean | undefined;
|
|
14
245
|
src: string;
|
|
15
246
|
unoptimized?: boolean | undefined;
|
|
@@ -285,28 +516,17 @@ interface CloudinaryVideoPlayerOptionPosterOptions {
|
|
|
285
516
|
/**
|
|
286
517
|
* getCldImageUrl
|
|
287
518
|
*/
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
interface GetCldImageUrlAnalytics extends AnalyticsOptions {
|
|
293
|
-
}
|
|
294
|
-
interface GetCldImageUrl {
|
|
295
|
-
options: GetCldImageUrlOptions;
|
|
296
|
-
config?: GetCldImageUrlConfig;
|
|
297
|
-
analytics?: GetCldImageUrlAnalytics;
|
|
298
|
-
}
|
|
519
|
+
type GetCldImageUrlOptions = ImageOptions;
|
|
520
|
+
type GetCldImageUrlConfig = ConfigOptions;
|
|
521
|
+
type GetCldImageUrlAnalytics = AnalyticsOptions;
|
|
299
522
|
declare function getCldImageUrl(options: GetCldImageUrlOptions, config?: GetCldImageUrlConfig, analytics?: GetCldImageUrlAnalytics): string;
|
|
300
523
|
|
|
301
524
|
/**
|
|
302
525
|
* getCldVideoUrl
|
|
303
526
|
*/
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
interface GetCldVideoUrlAnalytics extends AnalyticsOptions {
|
|
309
|
-
}
|
|
527
|
+
type GetCldVideoUrlOptions = VideoOptions;
|
|
528
|
+
type GetCldVideoUrlConfig = ConfigOptions;
|
|
529
|
+
type GetCldVideoUrlAnalytics = AnalyticsOptions;
|
|
310
530
|
declare function getCldVideoUrl(options: GetCldVideoUrlOptions, config?: GetCldVideoUrlConfig, analytics?: GetCldVideoUrlAnalytics): string;
|
|
311
531
|
|
|
312
532
|
type CldVideoPlayerProps = Omit<CloudinaryVideoPlayerOptions, "cloud_name" | "autoplayMode" | "publicId" | "secure" | "showLogo" | "logoImageUrl" | "logoOnclickUrl"> & {
|
|
@@ -355,10 +575,7 @@ declare function cloudinaryLoader({ loaderOptions, imageProps, cldOptions, cldCo
|
|
|
355
575
|
/**
|
|
356
576
|
* getCldImageUrl
|
|
357
577
|
*/
|
|
358
|
-
|
|
359
|
-
}
|
|
360
|
-
interface GetCldOgImageUrlOptions extends GetCldImageUrlOptions {
|
|
361
|
-
}
|
|
578
|
+
type GetCldOgImageUrlOptions = GetCldImageUrlOptions;
|
|
362
579
|
declare function getCldOgImageUrl(options: GetCldOgImageUrlOptions): string;
|
|
363
580
|
|
|
364
|
-
export { CldImage, CldImageProps, CldOgImage, CldOgImageProps, CldUploadButton, CldUploadButtonProps, CldUploadWidget, CldUploadWidgetProps, CldUploadWidgetPropsChildren, CldUploadWidgetPropsOptions, CldUploadWidgetResults, CldVideoPlayer, CldVideoPlayerProps, CldVideoPlayerPropsColors, CldVideoPlayerPropsLogo, CloudinaryLoader, CloudinaryLoaderCldOptions, CloudinaryLoaderLoaderOptions, CloudinaryVideoPlayer, CloudinaryVideoPlayerOptions, CloudinaryVideoPlayerOptionsColors, CloudinaryVideoPlayerOptionsLogo,
|
|
581
|
+
export { CldImage, CldImageProps, CldOgImage, CldOgImageProps, CldUploadButton, CldUploadButtonProps, CldUploadWidget, CldUploadWidgetInfo, CldUploadWidgetProps, CldUploadWidgetPropsChildren, CldUploadWidgetPropsOptions, CldUploadWidgetResults, CldVideoPlayer, CldVideoPlayerProps, CldVideoPlayerPropsColors, CldVideoPlayerPropsLogo, CloudinaryLoader, CloudinaryLoaderCldOptions, CloudinaryLoaderLoaderOptions, CloudinaryVideoPlayer, CloudinaryVideoPlayerOptions, CloudinaryVideoPlayerOptionsColors, CloudinaryVideoPlayerOptionsLogo, GetCldImageUrlAnalytics, GetCldImageUrlConfig, GetCldImageUrlOptions, GetCldOgImageUrlOptions, GetCldVideoUrlAnalytics, GetCldVideoUrlConfig, GetCldVideoUrlOptions, cloudinaryLoader, getCldImageUrl, getCldOgImageUrl, getCldVideoUrl };
|