next-cloudinary 1.11.0 → 1.12.2
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 -0
- package/dist/next-cloudinary.js +90 -35
- package/dist/next-cloudinary.js.map +1 -1
- package/dist/next-cloudinary.modern.mjs +89 -35
- package/dist/next-cloudinary.modern.mjs.map +1 -1
- package/dist/next-cloudinary.module.js +89 -35
- package/dist/next-cloudinary.module.js.map +1 -1
- package/dist/next-cloudinary.umd.js +93 -39
- package/dist/next-cloudinary.umd.js.map +1 -1
- package/package.json +1 -2
- package/tsconfig.json +7 -3
- package/dist/components/CldImage/CldImage.d.ts +0 -3
- package/dist/components/CldOgImage/CldOgImage.d.ts +0 -7
- package/dist/components/CldUploadButton/CldUploadButton.d.ts +0 -11
- package/dist/components/CldUploadWidget/CldUploadWidget.d.ts +0 -9
- package/dist/index.d.ts +0 -7
- package/dist/lib/cloudinary.d.ts +0 -45
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const CldUploadButton: ({ children, onClick, onUpload, options, signatureEndpoint, uploadPreset, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
children: any;
|
|
5
|
-
onClick: any;
|
|
6
|
-
onUpload: any;
|
|
7
|
-
options: any;
|
|
8
|
-
signatureEndpoint: any;
|
|
9
|
-
uploadPreset: any;
|
|
10
|
-
}) => JSX.Element;
|
|
11
|
-
export default CldUploadButton;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const CldUploadWidget: ({ children, onUpload, options, signatureEndpoint, uploadPreset, }: {
|
|
3
|
-
children: any;
|
|
4
|
-
onUpload: any;
|
|
5
|
-
options: any;
|
|
6
|
-
signatureEndpoint: any;
|
|
7
|
-
uploadPreset: any;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
-
export default CldUploadWidget;
|
package/dist/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as CldImage } from './components/CldImage';
|
|
2
|
-
export { default as CldOgImage } from './components/CldOgImage';
|
|
3
|
-
export { default as CldUploadButton } from './components/CldUploadButton';
|
|
4
|
-
export { default as CldUploadWidget } from './components/CldUploadWidget';
|
|
5
|
-
export { cloudinaryLoader } from './loaders/cloudinary-loader';
|
|
6
|
-
export { primary, position, text, effects } from './constants/qualifiers';
|
|
7
|
-
export { constructCloudinaryUrl } from './lib/cloudinary';
|
package/dist/lib/cloudinary.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as effectsPlugin from '../plugins/effects';
|
|
2
|
-
import ICloudinaryConfigurations from '@cloudinary/url-gen/config/interfaces/Config/ICloudinaryConfigurations';
|
|
3
|
-
export declare const transformationPlugins: (typeof effectsPlugin)[];
|
|
4
|
-
interface ImageUrlOptions {
|
|
5
|
-
src?: string;
|
|
6
|
-
width?: number;
|
|
7
|
-
quality?: number;
|
|
8
|
-
deliveryType?: string;
|
|
9
|
-
format?: string;
|
|
10
|
-
rawTransformations?: string[];
|
|
11
|
-
resize?: {
|
|
12
|
-
crop?: string;
|
|
13
|
-
width?: number;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
interface ConstructUrlProps {
|
|
17
|
-
options?: ImageUrlOptions;
|
|
18
|
-
config?: ICloudinaryConfigurations;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* constructCloudinaryUrl
|
|
22
|
-
*/
|
|
23
|
-
export declare function constructCloudinaryUrl({ options, config }: ConstructUrlProps): string;
|
|
24
|
-
/**
|
|
25
|
-
* Retrieves the public id of a cloudiary image url. If no url is recognized it returns the parameter it self.
|
|
26
|
-
* If it's recognized that is a url and it's not possible to get the public id, it warns the user.
|
|
27
|
-
*
|
|
28
|
-
* @param {string} src The cloudiary url or public id.
|
|
29
|
-
*
|
|
30
|
-
* @return {string} The images public id
|
|
31
|
-
*/
|
|
32
|
-
export declare function getPublicId(src: any): string;
|
|
33
|
-
/**
|
|
34
|
-
* createPlaceholderUrl
|
|
35
|
-
*/
|
|
36
|
-
export declare function createPlaceholderUrl({ src, placeholder, config }: {
|
|
37
|
-
src?: any;
|
|
38
|
-
placeholder?: boolean | string;
|
|
39
|
-
config?: any;
|
|
40
|
-
}): string;
|
|
41
|
-
/**
|
|
42
|
-
* pollForProcessingImage
|
|
43
|
-
*/
|
|
44
|
-
export declare function pollForProcessingImage(options: any): Promise<boolean>;
|
|
45
|
-
export {};
|