next-cloudinary 6.13.0 → 7.0.0-beta.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/dist/CldImage-37af4d37.esm.js +138 -0
- package/dist/CldImage-6cc29250.cjs.js +146 -0
- package/dist/CldUploadButton-196b419b.esm.js +101 -0
- package/dist/CldUploadButton-db9b095b.cjs.js +109 -0
- package/dist/CldUploadWidget-496b6240.cjs.js +215 -0
- package/dist/CldUploadWidget-d1442bef.esm.js +207 -0
- package/dist/CldVideoPlayer-25af8fc2.cjs.js +149 -0
- package/dist/CldVideoPlayer-d3572d86.esm.js +140 -0
- package/dist/cloudinary-50fd58f7.esm.js +134 -0
- package/dist/cloudinary-c07e74d7.cjs.js +141 -0
- package/dist/cloudinary-loader-b7898036.cjs.js +62 -0
- package/dist/cloudinary-loader-d86c263a.esm.js +59 -0
- package/dist/declarations/src/components/CldImage/CldImage.d.ts +14 -0
- package/dist/declarations/src/components/CldImage/CldImage.d.ts.map +1 -0
- package/dist/declarations/src/components/CldImage/index.d.ts +3 -0
- package/dist/declarations/src/components/CldImage/index.d.ts.map +1 -0
- package/dist/declarations/src/components/CldOgImage/CldOgImage.d.ts +9 -0
- package/dist/declarations/src/components/CldOgImage/CldOgImage.d.ts.map +1 -0
- package/dist/declarations/src/components/CldOgImage/index.d.ts +3 -0
- package/dist/declarations/src/components/CldOgImage/index.d.ts.map +1 -0
- package/dist/declarations/src/components/CldUploadButton/CldUploadButton.d.ts +9 -0
- package/dist/declarations/src/components/CldUploadButton/CldUploadButton.d.ts.map +1 -0
- package/dist/declarations/src/components/CldUploadButton/index.d.ts +3 -0
- package/dist/declarations/src/components/CldUploadButton/index.d.ts.map +1 -0
- package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.d.ts +4 -0
- package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.d.ts.map +1 -0
- package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.types.d.ts +59 -0
- package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.types.d.ts.map +1 -0
- package/dist/declarations/src/components/CldUploadWidget/index.d.ts +3 -0
- package/dist/declarations/src/components/CldUploadWidget/index.d.ts.map +1 -0
- package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.d.ts +4 -0
- package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.d.ts.map +1 -0
- package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.types.d.ts +28 -0
- package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.types.d.ts.map +1 -0
- package/dist/declarations/src/components/CldVideoPlayer/index.d.ts +3 -0
- package/dist/declarations/src/components/CldVideoPlayer/index.d.ts.map +1 -0
- package/dist/declarations/src/helpers/getCldImageUrl.d.ts +9 -0
- package/dist/declarations/src/helpers/getCldImageUrl.d.ts.map +1 -0
- package/dist/declarations/src/helpers/getCldOgImageUrl.d.ts +7 -0
- package/dist/declarations/src/helpers/getCldOgImageUrl.d.ts.map +1 -0
- package/dist/declarations/src/helpers/getCldVideoUrl.d.ts +9 -0
- package/dist/declarations/src/helpers/getCldVideoUrl.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +21 -0
- package/dist/declarations/src/index.d.ts.map +1 -0
- package/dist/declarations/src/loaders/cloudinary-loader.d.ts +15 -0
- package/dist/declarations/src/loaders/cloudinary-loader.d.ts.map +1 -0
- package/dist/next-cloudinary.cjs.d.mts +2 -0
- package/dist/next-cloudinary.cjs.d.ts +2 -0
- package/dist/next-cloudinary.cjs.js +165 -0
- package/dist/next-cloudinary.cjs.mjs +11 -0
- package/dist/next-cloudinary.esm.js +134 -0
- package/package.json +50 -12
- package/dist/index.d.mts +0 -152
- package/dist/index.d.ts +0 -152
- package/dist/index.js +0 -4
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -4
- package/dist/index.mjs.map +0 -1
- package/plugins/copy-assets.ts +0 -80
- package/tsconfig.json +0 -23
- package/tsup.config.ts +0 -18
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var nextPkg = require('next/package.json');
|
|
4
|
+
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
6
|
+
|
|
7
|
+
var nextPkg__default = /*#__PURE__*/_interopDefault(nextPkg);
|
|
8
|
+
|
|
9
|
+
var pkg = {
|
|
10
|
+
name: "next-cloudinary",
|
|
11
|
+
version: "7.0.0-beta.2",
|
|
12
|
+
license: "MIT",
|
|
13
|
+
main: "dist/next-cloudinary.cjs.js",
|
|
14
|
+
module: "dist/next-cloudinary.esm.js",
|
|
15
|
+
exports: {
|
|
16
|
+
".": {
|
|
17
|
+
types: {
|
|
18
|
+
"import": "./dist/next-cloudinary.cjs.mjs",
|
|
19
|
+
"default": "./dist/next-cloudinary.cjs.js"
|
|
20
|
+
},
|
|
21
|
+
module: "./dist/next-cloudinary.esm.js",
|
|
22
|
+
"import": "./dist/next-cloudinary.cjs.mjs",
|
|
23
|
+
"default": "./dist/next-cloudinary.cjs.js"
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json",
|
|
26
|
+
"./cld-video-player.css": "./dist/cld-video-player.css",
|
|
27
|
+
"./dist/cld-video-player.css": "./dist/cld-video-player.css",
|
|
28
|
+
"./cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
|
|
29
|
+
"./dist/cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
|
|
30
|
+
"./cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg",
|
|
31
|
+
"./dist/cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg"
|
|
32
|
+
},
|
|
33
|
+
types: "./dist/next-cloudinary.cjs.d.ts",
|
|
34
|
+
files: [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
scripts: {
|
|
38
|
+
build: "preconstruct build && tsx scripts/copy-assets.ts",
|
|
39
|
+
dev: "preconstruct watch",
|
|
40
|
+
prepublishOnly: "cp ../README.md . && cp ../LICENSE . && pnpm build",
|
|
41
|
+
postpublish: "rm ./README.md && rm ./LICENSE",
|
|
42
|
+
test: "vitest run",
|
|
43
|
+
"test:app": "NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=\"test\" pnpm build && cd tests/nextjs-app && pnpm build",
|
|
44
|
+
"test:watch": "vitest"
|
|
45
|
+
},
|
|
46
|
+
dependencies: {
|
|
47
|
+
"@cloudinary-util/types": "1.5.8",
|
|
48
|
+
"@cloudinary-util/url-loader": "5.10.3",
|
|
49
|
+
"@cloudinary-util/util": "^3.3.2"
|
|
50
|
+
},
|
|
51
|
+
devDependencies: {
|
|
52
|
+
"@babel/core": "^7.25.2",
|
|
53
|
+
"@babel/preset-env": "^7.25.4",
|
|
54
|
+
"@babel/preset-react": "^7.24.7",
|
|
55
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
56
|
+
"@tsconfig/recommended": "^1.0.7",
|
|
57
|
+
"@types/node": "^22.0.2",
|
|
58
|
+
"@types/react": "^18.3.3",
|
|
59
|
+
"@types/react-dom": "^18.3.0",
|
|
60
|
+
dotenv: "^16.4.5",
|
|
61
|
+
mkdirp: "^3.0.1",
|
|
62
|
+
tsx: "^4.19.1",
|
|
63
|
+
typescript: "^5.5.4",
|
|
64
|
+
vitest: "^2.0.5"
|
|
65
|
+
},
|
|
66
|
+
peerDependencies: {
|
|
67
|
+
next: "^12 || ^13 || ^14 || >=15.0.0-rc",
|
|
68
|
+
react: "^17 || ^18 || >=19.0.0-beta"
|
|
69
|
+
},
|
|
70
|
+
preconstruct: {
|
|
71
|
+
exports: {
|
|
72
|
+
importConditionDefaultExport: "default",
|
|
73
|
+
extra: {
|
|
74
|
+
"./cld-video-player.css": "./dist/cld-video-player.css",
|
|
75
|
+
"./dist/cld-video-player.css": "./dist/cld-video-player.css",
|
|
76
|
+
"./cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
|
|
77
|
+
"./dist/cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
|
|
78
|
+
"./cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg",
|
|
79
|
+
"./dist/cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
___experimentalFlags_WILL_CHANGE_IN_PATCH: {
|
|
83
|
+
importsConditions: true
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const NEXT_CLOUDINARY_ANALYTICS_PRODUCT_ID = 'A';
|
|
89
|
+
const NEXT_CLOUDINARY_ANALYTICS_ID = 'V';
|
|
90
|
+
const NEXT_VERSION = normalizeVersion(nextPkg__default["default"].version);
|
|
91
|
+
const NEXT_CLOUDINARY_VERSION = normalizeVersion(pkg.version);
|
|
92
|
+
function normalizeVersion(version) {
|
|
93
|
+
let normalized = version;
|
|
94
|
+
if (normalized.includes('-')) {
|
|
95
|
+
normalized = normalized.split('-')[0];
|
|
96
|
+
}
|
|
97
|
+
return normalized;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* getCloudinaryConfig
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
function getCloudinaryConfig(config) {
|
|
105
|
+
const cloudName = config?.cloud?.cloudName ?? process.env.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME;
|
|
106
|
+
if (!cloudName) {
|
|
107
|
+
throw new Error('A Cloudinary Cloud name is required, please make sure NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME is set and configured in your environment.');
|
|
108
|
+
}
|
|
109
|
+
const apiKey = config?.cloud?.apiKey ?? process.env.NEXT_PUBLIC_CLOUDINARY_API_KEY;
|
|
110
|
+
const secureDistribution = config?.url?.secureDistribution ?? process.env.NEXT_PUBLIC_CLOUDINARY_SECURE_DISTRIBUTION;
|
|
111
|
+
const privateCdn = config?.url?.privateCdn ?? process.env.NEXT_PUBLIC_CLOUDINARY_PRIVATE_CDN;
|
|
112
|
+
return Object.assign({
|
|
113
|
+
cloud: {
|
|
114
|
+
...config?.cloud,
|
|
115
|
+
apiKey,
|
|
116
|
+
cloudName
|
|
117
|
+
},
|
|
118
|
+
url: {
|
|
119
|
+
...config?.url,
|
|
120
|
+
secureDistribution,
|
|
121
|
+
privateCdn
|
|
122
|
+
}
|
|
123
|
+
}, config);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* getCloudinaryAnalytics
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
function getCloudinaryAnalytics(analytics) {
|
|
131
|
+
return Object.assign({
|
|
132
|
+
product: NEXT_CLOUDINARY_ANALYTICS_PRODUCT_ID,
|
|
133
|
+
sdkCode: NEXT_CLOUDINARY_ANALYTICS_ID,
|
|
134
|
+
sdkSemver: NEXT_CLOUDINARY_VERSION,
|
|
135
|
+
techVersion: NEXT_VERSION,
|
|
136
|
+
feature: ''
|
|
137
|
+
}, analytics);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
exports.getCloudinaryAnalytics = getCloudinaryAnalytics;
|
|
141
|
+
exports.getCloudinaryConfig = getCloudinaryConfig;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var urlLoader = require('@cloudinary-util/url-loader');
|
|
4
|
+
var cloudinary = require('./cloudinary-c07e74d7.cjs.js');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* getCldImageUrl
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
function getCldImageUrl(options, config, analytics) {
|
|
11
|
+
return urlLoader.constructCloudinaryUrl({
|
|
12
|
+
options,
|
|
13
|
+
config: cloudinary.getCloudinaryConfig(config),
|
|
14
|
+
analytics: cloudinary.getCloudinaryAnalytics(analytics)
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function cloudinaryLoader({
|
|
19
|
+
loaderOptions,
|
|
20
|
+
imageProps,
|
|
21
|
+
cldOptions,
|
|
22
|
+
cldConfig = {}
|
|
23
|
+
}) {
|
|
24
|
+
const options = {
|
|
25
|
+
...imageProps,
|
|
26
|
+
...cldOptions
|
|
27
|
+
};
|
|
28
|
+
options.width = typeof options.width === 'string' ? parseInt(options.width) : options.width;
|
|
29
|
+
options.height = typeof options.height === 'string' ? parseInt(options.height) : options.height;
|
|
30
|
+
|
|
31
|
+
// // The loader options are used to create dynamic sizing when working with responsive images
|
|
32
|
+
// // so these should override the default options collected from the props alone if
|
|
33
|
+
// // the results are different. While we don't always use the height in the loader logic,
|
|
34
|
+
// // we always pass it here, as the usage is determined later based on cropping.js
|
|
35
|
+
|
|
36
|
+
if (typeof loaderOptions?.width === 'number' && typeof options.width === 'number' && loaderOptions.width !== options.width) {
|
|
37
|
+
const multiplier = loaderOptions.width / options.width;
|
|
38
|
+
options.width = loaderOptions.width;
|
|
39
|
+
|
|
40
|
+
// The height may change based off of the value passed through via the loader options
|
|
41
|
+
// In an example where the user sizes is 800x600, but the loader is passing in 400
|
|
42
|
+
// due to responsive sizing, we want to ensure we're using a height that will
|
|
43
|
+
// resolve to the same aspect ratio
|
|
44
|
+
|
|
45
|
+
if (typeof options.height === 'number') {
|
|
46
|
+
options.height = Math.floor(options.height * multiplier);
|
|
47
|
+
}
|
|
48
|
+
} else if (typeof loaderOptions?.width === 'number' && typeof options?.width !== 'number') {
|
|
49
|
+
// If we don't have a width on the options object, this may mean that the component is using
|
|
50
|
+
// the fill option: https://nextjs.org/docs/pages/api-reference/components/image#fill
|
|
51
|
+
// The Fill option does not allow someone to pass in a width or a height
|
|
52
|
+
// If this is the case, we still need to define a width for sizing optimization but also
|
|
53
|
+
// for responsive sizing to take effect, so we can utilize the loader width for the base width
|
|
54
|
+
options.width = loaderOptions?.width;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
return getCldImageUrl(options, cldConfig);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
exports.cloudinaryLoader = cloudinaryLoader;
|
|
62
|
+
exports.getCldImageUrl = getCldImageUrl;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { constructCloudinaryUrl } from '@cloudinary-util/url-loader';
|
|
2
|
+
import { g as getCloudinaryConfig, a as getCloudinaryAnalytics } from './cloudinary-50fd58f7.esm.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* getCldImageUrl
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
function getCldImageUrl(options, config, analytics) {
|
|
9
|
+
return constructCloudinaryUrl({
|
|
10
|
+
options,
|
|
11
|
+
config: getCloudinaryConfig(config),
|
|
12
|
+
analytics: getCloudinaryAnalytics(analytics)
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function cloudinaryLoader({
|
|
17
|
+
loaderOptions,
|
|
18
|
+
imageProps,
|
|
19
|
+
cldOptions,
|
|
20
|
+
cldConfig = {}
|
|
21
|
+
}) {
|
|
22
|
+
const options = {
|
|
23
|
+
...imageProps,
|
|
24
|
+
...cldOptions
|
|
25
|
+
};
|
|
26
|
+
options.width = typeof options.width === 'string' ? parseInt(options.width) : options.width;
|
|
27
|
+
options.height = typeof options.height === 'string' ? parseInt(options.height) : options.height;
|
|
28
|
+
|
|
29
|
+
// // The loader options are used to create dynamic sizing when working with responsive images
|
|
30
|
+
// // so these should override the default options collected from the props alone if
|
|
31
|
+
// // the results are different. While we don't always use the height in the loader logic,
|
|
32
|
+
// // we always pass it here, as the usage is determined later based on cropping.js
|
|
33
|
+
|
|
34
|
+
if (typeof loaderOptions?.width === 'number' && typeof options.width === 'number' && loaderOptions.width !== options.width) {
|
|
35
|
+
const multiplier = loaderOptions.width / options.width;
|
|
36
|
+
options.width = loaderOptions.width;
|
|
37
|
+
|
|
38
|
+
// The height may change based off of the value passed through via the loader options
|
|
39
|
+
// In an example where the user sizes is 800x600, but the loader is passing in 400
|
|
40
|
+
// due to responsive sizing, we want to ensure we're using a height that will
|
|
41
|
+
// resolve to the same aspect ratio
|
|
42
|
+
|
|
43
|
+
if (typeof options.height === 'number') {
|
|
44
|
+
options.height = Math.floor(options.height * multiplier);
|
|
45
|
+
}
|
|
46
|
+
} else if (typeof loaderOptions?.width === 'number' && typeof options?.width !== 'number') {
|
|
47
|
+
// If we don't have a width on the options object, this may mean that the component is using
|
|
48
|
+
// the fill option: https://nextjs.org/docs/pages/api-reference/components/image#fill
|
|
49
|
+
// The Fill option does not allow someone to pass in a width or a height
|
|
50
|
+
// If this is the case, we still need to define a width for sizing optimization but also
|
|
51
|
+
// for responsive sizing to take effect, so we can utilize the loader width for the base width
|
|
52
|
+
options.width = loaderOptions?.width;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
return getCldImageUrl(options, cldConfig);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { cloudinaryLoader as c, getCldImageUrl as g };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ImageProps } from 'next/image';
|
|
2
|
+
import type { ImageOptions, ConfigOptions } from '@cloudinary-util/url-loader';
|
|
3
|
+
export type CldImageProps = Omit<ImageProps, 'src' | 'quality'> & ImageOptions & {
|
|
4
|
+
config?: ConfigOptions;
|
|
5
|
+
src: string;
|
|
6
|
+
unoptimized?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const CldImage: import("react").ForwardRefExoticComponent<Omit<ImageProps, "src" | "quality"> & ImageOptions & {
|
|
9
|
+
config?: ConfigOptions;
|
|
10
|
+
src: string;
|
|
11
|
+
unoptimized?: boolean;
|
|
12
|
+
} & import("react").RefAttributes<HTMLImageElement>>;
|
|
13
|
+
export default CldImage;
|
|
14
|
+
//# sourceMappingURL=CldImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CldImage.d.ts","sourceRoot":"../../../../../src/components/CldImage","sources":["CldImage.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAM/E,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,SAAS,CAAC,GAAG,YAAY,GAAG;IAC/E,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,QAAQ;aALH,aAAa;SACjB,MAAM;kBACG,OAAO;oDA+IrB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/components/CldImage","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,sBAAmB;AACrC,YAAY,EAAE,aAAa,EAAE,sBAAmB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CldImageProps } from "../CldImage/CldImage.js";
|
|
2
|
+
export type CldOgImageProps = CldImageProps & {
|
|
3
|
+
excludeTags?: Array<string>;
|
|
4
|
+
keys?: object;
|
|
5
|
+
twitterTitle?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const CldOgImage: ({ excludeTags, twitterTitle, keys, ...props }: CldOgImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CldOgImage;
|
|
9
|
+
//# sourceMappingURL=CldOgImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CldOgImage.d.ts","sourceRoot":"../../../../../src/components/CldOgImage","sources":["CldOgImage.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,gCAA6B;AAMrD,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAC5C,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,QAAA,MAAM,UAAU,kDAA6D,eAAe,4CAuE3F,CAAA;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/components/CldOgImage","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,wBAAqB;AACvC,YAAY,EAAE,eAAe,EAAE,wBAAqB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CldUploadWidgetProps } from "../CldUploadWidget/index.js";
|
|
2
|
+
export interface CldUploadButtonProps extends Omit<CldUploadWidgetProps, 'children'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: JSX.Element | string | Array<JSX.Element | string>;
|
|
5
|
+
onClick?: Function;
|
|
6
|
+
}
|
|
7
|
+
declare const CldUploadButton: ({ className, children, onClick, onError, onOpen, onUpload, onAbort, onBatchCancelled, onClose, onDisplayChanged, onPublicId, onQueuesEnd, onQueuesStart, onRetry, onShowCompleted, onSourceChanged, onSuccess, onTags, onUploadAdded, options, signatureEndpoint, uploadPreset, onAbortAction, onBatchCancelledAction, onCloseAction, onDisplayChangedAction, onPublicIdAction, onQueuesEndAction, onQueuesStartAction, onRetryAction, onShowCompletedAction, onSourceChangedAction, onSuccessAction, onTagsAction, onUploadAddedAction, ...props }: CldUploadButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CldUploadButton;
|
|
9
|
+
//# sourceMappingURL=CldUploadButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CldUploadButton.d.ts","sourceRoot":"../../../../../src/components/CldUploadButton","sources":["CldUploadButton.tsx"],"names":[],"mappings":"AAEA,OAAwB,EAAE,oBAAoB,EAAE,oCAA2B;AAE3E,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAC,MAAM,CAAC,CAAC;IAC5D,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,QAAA,MAAM,eAAe,whBAqClB,oBAAoB,4CAyDtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/components/CldUploadButton","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,YAAY,EAAE,oBAAoB,EAAE,6BAA0B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CldUploadWidgetProps } from "./CldUploadWidget.types.js";
|
|
2
|
+
declare const CldUploadWidget: ({ children, config, onError, onOpen, onUpload, options, signatureEndpoint, uploadPreset, ...props }: CldUploadWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default CldUploadWidget;
|
|
4
|
+
//# sourceMappingURL=CldUploadWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CldUploadWidget.d.ts","sourceRoot":"../../../../../src/components/CldUploadWidget","sources":["CldUploadWidget.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAIL,oBAAoB,EAErB,mCAAgC;AAIjC,QAAA,MAAM,eAAe,wGAUlB,oBAAoB,4CAqNtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { CloudinaryUploadWidgetOptions, CloudinaryUploadWidgetResults, CloudinaryUploadWidgetInstanceMethods, CloudinaryUploadWidgetError } from '@cloudinary-util/types';
|
|
2
|
+
import { ConfigOptions } from "@cloudinary-util/url-loader";
|
|
3
|
+
export type CldUploadWidgetCloudinaryInstance = any;
|
|
4
|
+
export type CldUploadWidgetWidgetInstance = any;
|
|
5
|
+
export interface CldUploadWidgetProps {
|
|
6
|
+
children?: ({ cloudinary, widget, open, results, error }: CldUploadWidgetPropsChildren) => JSX.Element;
|
|
7
|
+
config?: ConfigOptions;
|
|
8
|
+
onError?: CldUploadEventCallbackError;
|
|
9
|
+
onOpen?: CldUploadEventCallbackWidgetOnly;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated use onSuccess instead
|
|
12
|
+
*/
|
|
13
|
+
onUpload?: CldUploadEventCallbackNoOptions;
|
|
14
|
+
onAbort?: CldUploadEventCallback;
|
|
15
|
+
onBatchCancelled?: CldUploadEventCallback;
|
|
16
|
+
onClose?: CldUploadEventCallback;
|
|
17
|
+
onDisplayChanged?: CldUploadEventCallback;
|
|
18
|
+
onPublicId?: CldUploadEventCallback;
|
|
19
|
+
onQueuesEnd?: CldUploadEventCallback;
|
|
20
|
+
onQueuesStart?: CldUploadEventCallback;
|
|
21
|
+
onRetry?: CldUploadEventCallback;
|
|
22
|
+
onShowCompleted?: CldUploadEventCallback;
|
|
23
|
+
onSourceChanged?: CldUploadEventCallback;
|
|
24
|
+
onSuccess?: CldUploadEventCallback;
|
|
25
|
+
onTags?: CldUploadEventCallback;
|
|
26
|
+
onUploadAdded?: CldUploadEventCallback;
|
|
27
|
+
options?: CloudinaryUploadWidgetOptions;
|
|
28
|
+
signatureEndpoint?: URL | RequestInfo;
|
|
29
|
+
uploadPreset?: string;
|
|
30
|
+
onAbortAction?: CldUploadEventAction;
|
|
31
|
+
onBatchCancelledAction?: CldUploadEventAction;
|
|
32
|
+
onCloseAction?: CldUploadEventAction;
|
|
33
|
+
onDisplayChangedAction?: CldUploadEventAction;
|
|
34
|
+
onPublicIdAction?: CldUploadEventAction;
|
|
35
|
+
onQueuesEndAction?: CldUploadEventAction;
|
|
36
|
+
onQueuesStartAction?: CldUploadEventAction;
|
|
37
|
+
onRetryAction?: CldUploadEventAction;
|
|
38
|
+
onShowCompletedAction?: CldUploadEventAction;
|
|
39
|
+
onSourceChangedAction?: CldUploadEventAction;
|
|
40
|
+
onSuccessAction?: CldUploadEventAction;
|
|
41
|
+
onTagsAction?: CldUploadEventAction;
|
|
42
|
+
onUploadAddedAction?: CldUploadEventAction;
|
|
43
|
+
}
|
|
44
|
+
export type CldUploadWidgetPropsChildren = {
|
|
45
|
+
cloudinary: CldUploadWidgetCloudinaryInstance;
|
|
46
|
+
widget: CldUploadWidgetWidgetInstance;
|
|
47
|
+
error?: CloudinaryUploadWidgetError;
|
|
48
|
+
isLoading?: boolean;
|
|
49
|
+
results?: CloudinaryUploadWidgetResults;
|
|
50
|
+
} & CloudinaryUploadWidgetInstanceMethods;
|
|
51
|
+
export type CldUploadEventCallback = (results: CloudinaryUploadWidgetResults, widget: CldUploadEventCallbackWidget) => void;
|
|
52
|
+
export type CldUploadEventAction = (results: CloudinaryUploadWidgetResults) => void;
|
|
53
|
+
export type CldUploadEventCallbackNoOptions = (results: CloudinaryUploadWidgetResults, widget: CldUploadWidgetWidgetInstance) => void;
|
|
54
|
+
export type CldUploadEventCallbackWidgetOnly = (widget: CldUploadWidgetWidgetInstance) => void;
|
|
55
|
+
export type CldUploadEventCallbackError = (error: CloudinaryUploadWidgetError, widget: CldUploadEventCallbackWidget) => void;
|
|
56
|
+
export type CldUploadEventCallbackWidget = {
|
|
57
|
+
widget: CldUploadWidgetWidgetInstance;
|
|
58
|
+
} & CloudinaryUploadWidgetInstanceMethods;
|
|
59
|
+
//# sourceMappingURL=CldUploadWidget.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CldUploadWidget.types.d.ts","sourceRoot":"../../../../../src/components/CldUploadWidget","sources":["CldUploadWidget.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/components/CldUploadWidget","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,YAAY,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,mCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CldVideoPlayer.d.ts","sourceRoot":"../../../../../src/components/CldVideoPlayer","sources":["CldVideoPlayer.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,mBAAmB,EAAE,kCAA+B;AAQ7D,QAAA,MAAM,cAAc,UAAW,mBAAmB,4CAqIjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { CloudinaryVideoPlayer, CloudinaryVideoPlayerOptionsLogo, CloudinaryVideoPlayerOptions } from '@cloudinary-util/types';
|
|
3
|
+
import { ConfigOptions } from "@cloudinary-util/url-loader";
|
|
4
|
+
import { GetCldImageUrlOptions } from "../../helpers/getCldImageUrl.js";
|
|
5
|
+
import { GetCldVideoUrlOptions } from "../../helpers/getCldVideoUrl.js";
|
|
6
|
+
export type CldVideoPlayerProps = Omit<CloudinaryVideoPlayerOptions, "cloud_name" | "autoplayMode" | "publicId" | "secure" | "showLogo" | "logoImageUrl" | "logoOnclickUrl"> & {
|
|
7
|
+
className?: string;
|
|
8
|
+
config?: ConfigOptions;
|
|
9
|
+
id?: string;
|
|
10
|
+
logo?: boolean | CldVideoPlayerPropsLogo;
|
|
11
|
+
onDataLoad?: Function;
|
|
12
|
+
onError?: Function;
|
|
13
|
+
onMetadataLoad?: Function;
|
|
14
|
+
onPause?: Function;
|
|
15
|
+
onPlay?: Function;
|
|
16
|
+
onEnded?: Function;
|
|
17
|
+
playerRef?: MutableRefObject<CloudinaryVideoPlayer | null>;
|
|
18
|
+
poster?: string | GetCldImageUrlOptions | GetCldVideoUrlOptions;
|
|
19
|
+
src: string;
|
|
20
|
+
videoRef?: MutableRefObject<HTMLVideoElement | null>;
|
|
21
|
+
quality?: string | number;
|
|
22
|
+
};
|
|
23
|
+
export interface CldVideoPlayerPropsLogo {
|
|
24
|
+
imageUrl?: CloudinaryVideoPlayerOptionsLogo['logoImageUrl'];
|
|
25
|
+
logo?: boolean;
|
|
26
|
+
onClickUrl?: CloudinaryVideoPlayerOptionsLogo['logoOnclickUrl'];
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=CldVideoPlayer.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CldVideoPlayer.types.d.ts","sourceRoot":"../../../../../src/components/CldVideoPlayer","sources":["CldVideoPlayer.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EACL,qBAAqB,EACrB,gCAAgC,EAChC,4BAA4B,EAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,wCAAqC;AACrE,OAAO,EAAE,qBAAqB,EAAE,wCAAqC;AAErE,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,4BAA4B,EAAE,YAAY,GAAG,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,cAAc,GAAG,gBAAgB,CAAC,GAAG;IAC7K,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,GAAG,uBAAuB,CAAC;IACzC,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,SAAS,CAAC,EAAE,gBAAgB,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IAC3D,MAAM,CAAC,EAAE,MAAM,GAAG,qBAAqB,GAAG,qBAAqB,CAAC;IAChE,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACrD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAA;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,gCAAgC,CAAC,cAAc,CAAC,CAAC;IAC5D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,gCAAgC,CAAC,gBAAgB,CAAC,CAAC;CACjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/components/CldVideoPlayer","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,4BAAyB;AAC3C,YAAY,EAAG,mBAAmB,EAAE,uBAAuB,EAAE,kCAA+B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ImageOptions, ConfigOptions, AnalyticsOptions } from '@cloudinary-util/url-loader';
|
|
2
|
+
/**
|
|
3
|
+
* getCldImageUrl
|
|
4
|
+
*/
|
|
5
|
+
export type GetCldImageUrlOptions = ImageOptions;
|
|
6
|
+
export type GetCldImageUrlConfig = ConfigOptions;
|
|
7
|
+
export type GetCldImageUrlAnalytics = AnalyticsOptions;
|
|
8
|
+
export declare function getCldImageUrl(options: GetCldImageUrlOptions, config?: GetCldImageUrlConfig, analytics?: GetCldImageUrlAnalytics): string;
|
|
9
|
+
//# sourceMappingURL=getCldImageUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCldImageUrl.d.ts","sourceRoot":"../../../../src/helpers","sources":["getCldImageUrl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAIjG;;GAEG;AAEH,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC;AACjD,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC;AACjD,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,CAAC;AAEvD,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,MAAM,CAAC,EAAE,oBAAoB,EAAE,SAAS,CAAC,EAAE,uBAAuB,UAMhI"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GetCldImageUrlOptions } from "./getCldImageUrl.js";
|
|
2
|
+
/**
|
|
3
|
+
* getCldImageUrl
|
|
4
|
+
*/
|
|
5
|
+
export type GetCldOgImageUrlOptions = GetCldImageUrlOptions;
|
|
6
|
+
export declare function getCldOgImageUrl(options: GetCldOgImageUrlOptions): string;
|
|
7
|
+
//# sourceMappingURL=getCldOgImageUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCldOgImageUrl.d.ts","sourceRoot":"../../../../src/helpers","sources":["getCldOgImageUrl.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,4BAAyB;AAE9D;;GAEG;AAEH,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAE5D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,UAYhE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { VideoOptions, ConfigOptions, AnalyticsOptions } from '@cloudinary-util/url-loader';
|
|
2
|
+
/**
|
|
3
|
+
* getCldVideoUrl
|
|
4
|
+
*/
|
|
5
|
+
export type GetCldVideoUrlOptions = VideoOptions;
|
|
6
|
+
export type GetCldVideoUrlConfig = ConfigOptions;
|
|
7
|
+
export type GetCldVideoUrlAnalytics = AnalyticsOptions;
|
|
8
|
+
export declare function getCldVideoUrl(options: GetCldVideoUrlOptions, config?: GetCldVideoUrlConfig, analytics?: GetCldVideoUrlAnalytics): string;
|
|
9
|
+
//# sourceMappingURL=getCldVideoUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCldVideoUrl.d.ts","sourceRoot":"../../../../src/helpers","sources":["getCldVideoUrl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAIjG;;GAEG;AAEH,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC;AACjD,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC;AACjD,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,CAAC;AAEvD,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,MAAM,CAAC,EAAE,oBAAoB,EAAE,SAAS,CAAC,EAAE,uBAAuB,UAUhI"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { default as CldImage } from "./components/CldImage/index.js";
|
|
2
|
+
export type { CldImageProps } from "./components/CldImage/index.js";
|
|
3
|
+
export { default as CldOgImage } from "./components/CldOgImage/index.js";
|
|
4
|
+
export type { CldOgImageProps } from "./components/CldOgImage/index.js";
|
|
5
|
+
export { default as CldUploadButton } from "./components/CldUploadButton/index.js";
|
|
6
|
+
export type { CldUploadButtonProps } from "./components/CldUploadButton/index.js";
|
|
7
|
+
export { default as CldUploadWidget } from "./components/CldUploadWidget/index.js";
|
|
8
|
+
export type { CldUploadWidgetProps, CldUploadWidgetPropsChildren } from "./components/CldUploadWidget/index.js";
|
|
9
|
+
export type { CloudinaryUploadWidgetOptions, CloudinaryUploadWidgetResults, CloudinaryUploadWidgetInfo, CloudinaryUploadWidgetInstanceMethods, CloudinaryUploadWidgetInstanceMethodCloseOptions, CloudinaryUploadWidgetInstanceMethodDestroyOptions, CloudinaryUploadWidgetInstanceMethodOpenOptions, CloudinaryUploadWidgetInstanceMethodUpdateOptions, CloudinaryUploadWidgetSources, CloudinaryUploadWidgetError } from '@cloudinary-util/types';
|
|
10
|
+
export { default as CldVideoPlayer } from "./components/CldVideoPlayer/index.js";
|
|
11
|
+
export type { CldVideoPlayerProps, CldVideoPlayerPropsLogo } from "./components/CldVideoPlayer/index.js";
|
|
12
|
+
export type { CloudinaryVideoPlayer, CloudinaryVideoPlayerOptions, CloudinaryVideoPlayerOptionsColors, CloudinaryVideoPlayerOptionsLogo } from '@cloudinary-util/types';
|
|
13
|
+
export { cloudinaryLoader } from "./loaders/cloudinary-loader.js";
|
|
14
|
+
export type { CloudinaryLoader, CloudinaryLoaderLoaderOptions, CloudinaryLoaderCldOptions } from "./loaders/cloudinary-loader.js";
|
|
15
|
+
export { getCldImageUrl } from "./helpers/getCldImageUrl.js";
|
|
16
|
+
export type { GetCldImageUrlOptions, GetCldImageUrlConfig, GetCldImageUrlAnalytics } from "./helpers/getCldImageUrl.js";
|
|
17
|
+
export { getCldOgImageUrl } from "./helpers/getCldOgImageUrl.js";
|
|
18
|
+
export type { GetCldOgImageUrlOptions } from "./helpers/getCldOgImageUrl.js";
|
|
19
|
+
export { getCldVideoUrl } from "./helpers/getCldVideoUrl.js";
|
|
20
|
+
export type { GetCldVideoUrlOptions, GetCldVideoUrlConfig, GetCldVideoUrlAnalytics } from "./helpers/getCldVideoUrl.js";
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,uCAA8B;AAC5D,YAAY,EAAE,aAAa,EAAE,uCAA8B;AAE3D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,yCAAgC;AAChE,YAAY,EAAE,eAAe,EAAE,yCAAgC;AAE/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,8CAAqC;AAC1E,YAAY,EAAE,oBAAoB,EAAE,8CAAqC;AAEzE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,8CAAqC;AAC1E,YAAY,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,8CAAqC;AACvG,YAAY,EACV,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,qCAAqC,EACrC,gDAAgD,EAChD,kDAAkD,EAClD,+CAA+C,EAC/C,iDAAiD,EACjD,6BAA6B,EAC7B,2BAA2B,EAC5B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,6CAAoC;AACxE,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,6CAAoC;AAChG,YAAY,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,kCAAkC,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAExK,OAAO,EAAE,gBAAgB,EAAE,uCAAoC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,uCAAoC;AAE/H,OAAO,EAAE,cAAc,EAAE,oCAAiC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,oCAAiC;AAErH,OAAO,EAAE,gBAAgB,EAAE,sCAAmC;AAC9D,YAAY,EAAE,uBAAuB,EAAE,sCAAmC;AAE1E,OAAO,EAAE,cAAc,EAAE,oCAAiC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,oCAAiC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ImageProps } from 'next/image';
|
|
2
|
+
export interface CloudinaryLoaderCldOptions {
|
|
3
|
+
}
|
|
4
|
+
export interface CloudinaryLoaderLoaderOptions {
|
|
5
|
+
height?: string | number;
|
|
6
|
+
width?: string | number;
|
|
7
|
+
}
|
|
8
|
+
export interface CloudinaryLoader {
|
|
9
|
+
loaderOptions: CloudinaryLoaderLoaderOptions;
|
|
10
|
+
imageProps: ImageProps;
|
|
11
|
+
cldOptions: CloudinaryLoaderCldOptions;
|
|
12
|
+
cldConfig?: object;
|
|
13
|
+
}
|
|
14
|
+
export declare function cloudinaryLoader({ loaderOptions, imageProps, cldOptions, cldConfig }: CloudinaryLoader): string;
|
|
15
|
+
//# sourceMappingURL=cloudinary-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudinary-loader.d.ts","sourceRoot":"../../../../src/loaders","sources":["cloudinary-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIxC,MAAM,WAAW,0BAA0B;CAC1C;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,6BAA6B,CAAC;IAC7C,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,0BAA0B,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,SAAc,EAAE,EAAE,gBAAgB,UAsC3G"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from "./declarations/src/index.js";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV4dC1jbG91ZGluYXJ5LmNqcy5kLm10cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from "./declarations/src/index";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV4dC1jbG91ZGluYXJ5LmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
|