next-cloudinary 6.16.0 → 7.0.0-beta.10

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.
Files changed (62) hide show
  1. package/dist/CldImage-841d87c1.cjs.js +121 -0
  2. package/dist/CldImage-c9af4fd9.esm.js +113 -0
  3. package/dist/CldUploadButton-196b419b.esm.js +101 -0
  4. package/dist/CldUploadButton-db9b095b.cjs.js +109 -0
  5. package/dist/CldUploadWidget-77f44ab3.esm.js +207 -0
  6. package/dist/CldUploadWidget-cdb65b22.cjs.js +215 -0
  7. package/dist/CldVideoPlayer-4db49132.esm.js +140 -0
  8. package/dist/CldVideoPlayer-a6525186.cjs.js +149 -0
  9. package/dist/cloudinary-1f1b51af.cjs.js +141 -0
  10. package/dist/cloudinary-cb3c790a.esm.js +134 -0
  11. package/dist/cloudinary-loader-ad7ad702.esm.js +57 -0
  12. package/dist/cloudinary-loader-c87ac9ae.cjs.js +60 -0
  13. package/dist/declarations/src/components/CldImage/CldImage.d.ts +14 -0
  14. package/dist/declarations/src/components/CldImage/CldImage.d.ts.map +1 -0
  15. package/dist/declarations/src/components/CldImage/index.d.ts +3 -0
  16. package/dist/declarations/src/components/CldImage/index.d.ts.map +1 -0
  17. package/dist/declarations/src/components/CldOgImage/CldOgImage.d.ts +9 -0
  18. package/dist/declarations/src/components/CldOgImage/CldOgImage.d.ts.map +1 -0
  19. package/dist/declarations/src/components/CldOgImage/index.d.ts +3 -0
  20. package/dist/declarations/src/components/CldOgImage/index.d.ts.map +1 -0
  21. package/dist/declarations/src/components/CldUploadButton/CldUploadButton.d.ts +9 -0
  22. package/dist/declarations/src/components/CldUploadButton/CldUploadButton.d.ts.map +1 -0
  23. package/dist/declarations/src/components/CldUploadButton/index.d.ts +3 -0
  24. package/dist/declarations/src/components/CldUploadButton/index.d.ts.map +1 -0
  25. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.d.ts +4 -0
  26. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.d.ts.map +1 -0
  27. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.types.d.ts +59 -0
  28. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.types.d.ts.map +1 -0
  29. package/dist/declarations/src/components/CldUploadWidget/index.d.ts +3 -0
  30. package/dist/declarations/src/components/CldUploadWidget/index.d.ts.map +1 -0
  31. package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.d.ts +4 -0
  32. package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.d.ts.map +1 -0
  33. package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.types.d.ts +28 -0
  34. package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.types.d.ts.map +1 -0
  35. package/dist/declarations/src/components/CldVideoPlayer/index.d.ts +3 -0
  36. package/dist/declarations/src/components/CldVideoPlayer/index.d.ts.map +1 -0
  37. package/dist/declarations/src/helpers/getCldImageUrl.d.ts +9 -0
  38. package/dist/declarations/src/helpers/getCldImageUrl.d.ts.map +1 -0
  39. package/dist/declarations/src/helpers/getCldOgImageUrl.d.ts +7 -0
  40. package/dist/declarations/src/helpers/getCldOgImageUrl.d.ts.map +1 -0
  41. package/dist/declarations/src/helpers/getCldVideoUrl.d.ts +9 -0
  42. package/dist/declarations/src/helpers/getCldVideoUrl.d.ts.map +1 -0
  43. package/dist/declarations/src/index.d.ts +21 -0
  44. package/dist/declarations/src/index.d.ts.map +1 -0
  45. package/dist/declarations/src/loaders/cloudinary-loader.d.ts +16 -0
  46. package/dist/declarations/src/loaders/cloudinary-loader.d.ts.map +1 -0
  47. package/dist/fonts/cloudinary_icon_for_white_bg.svg +1 -1
  48. package/dist/next-cloudinary.cjs.d.mts +2 -0
  49. package/dist/next-cloudinary.cjs.d.ts +2 -0
  50. package/dist/next-cloudinary.cjs.js +165 -0
  51. package/dist/next-cloudinary.cjs.mjs +11 -0
  52. package/dist/next-cloudinary.esm.js +134 -0
  53. package/package.json +51 -13
  54. package/dist/index.d.mts +0 -152
  55. package/dist/index.d.ts +0 -152
  56. package/dist/index.js +0 -4
  57. package/dist/index.js.map +0 -1
  58. package/dist/index.mjs +0 -4
  59. package/dist/index.mjs.map +0 -1
  60. package/plugins/copy-assets.ts +0 -80
  61. package/tsconfig.json +0 -23
  62. package/tsup.config.ts +0 -18
@@ -0,0 +1,134 @@
1
+ import nextPkg from 'next/package.json';
2
+
3
+ var pkg = {
4
+ name: "next-cloudinary",
5
+ version: "7.0.0-beta.10",
6
+ license: "MIT",
7
+ main: "dist/next-cloudinary.cjs.js",
8
+ module: "dist/next-cloudinary.esm.js",
9
+ exports: {
10
+ ".": {
11
+ types: {
12
+ "import": "./dist/next-cloudinary.cjs.mjs",
13
+ "default": "./dist/next-cloudinary.cjs.js"
14
+ },
15
+ module: "./dist/next-cloudinary.esm.js",
16
+ "import": "./dist/next-cloudinary.cjs.mjs",
17
+ "default": "./dist/next-cloudinary.cjs.js"
18
+ },
19
+ "./package.json": "./package.json",
20
+ "./cld-video-player.css": "./dist/cld-video-player.css",
21
+ "./dist/cld-video-player.css": "./dist/cld-video-player.css",
22
+ "./cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
23
+ "./dist/cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
24
+ "./cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg",
25
+ "./dist/cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg"
26
+ },
27
+ types: "./dist/next-cloudinary.cjs.d.ts",
28
+ files: [
29
+ "dist"
30
+ ],
31
+ scripts: {
32
+ build: "preconstruct build && tsx scripts/copy-assets.ts",
33
+ dev: "preconstruct watch",
34
+ prepublishOnly: "cp ../README.md . && cp ../LICENSE . && pnpm build",
35
+ postpublish: "rm ./README.md && rm ./LICENSE",
36
+ test: "vitest run",
37
+ "test:app": "NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=\"test\" pnpm build && cd tests/nextjs-app && pnpm build",
38
+ "test:watch": "vitest"
39
+ },
40
+ dependencies: {
41
+ "@cloudinary-util/types": "1.6.0",
42
+ "@cloudinary-util/url-loader": "6.0.0",
43
+ "@cloudinary-util/util": "4.1.0"
44
+ },
45
+ devDependencies: {
46
+ "@babel/core": "^7.25.2",
47
+ "@babel/preset-env": "^7.25.4",
48
+ "@babel/preset-react": "^7.24.7",
49
+ "@babel/preset-typescript": "^7.24.7",
50
+ "@tsconfig/recommended": "^1.0.7",
51
+ "@types/node": "^22.0.2",
52
+ "@types/react": "^18.3.3",
53
+ "@types/react-dom": "^18.3.0",
54
+ dotenv: "^16.4.5",
55
+ mkdirp: "^3.0.1",
56
+ tsx: "^4.19.1",
57
+ typescript: "^5.5.4",
58
+ vitest: "^2.0.5"
59
+ },
60
+ peerDependencies: {
61
+ next: "^12 || ^13 || ^14 || >=15.0.0-rc || ^15",
62
+ react: "^17 || ^18 || >=19.0.0-beta || ^19"
63
+ },
64
+ preconstruct: {
65
+ exports: {
66
+ importConditionDefaultExport: "default",
67
+ extra: {
68
+ "./cld-video-player.css": "./dist/cld-video-player.css",
69
+ "./dist/cld-video-player.css": "./dist/cld-video-player.css",
70
+ "./cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
71
+ "./dist/cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
72
+ "./cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg",
73
+ "./dist/cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg"
74
+ }
75
+ },
76
+ ___experimentalFlags_WILL_CHANGE_IN_PATCH: {
77
+ importsConditions: true
78
+ }
79
+ }
80
+ };
81
+
82
+ const NEXT_CLOUDINARY_ANALYTICS_PRODUCT_ID = 'A';
83
+ const NEXT_CLOUDINARY_ANALYTICS_ID = 'V';
84
+ const NEXT_VERSION = normalizeVersion(nextPkg.version);
85
+ const NEXT_CLOUDINARY_VERSION = normalizeVersion(pkg.version);
86
+ function normalizeVersion(version) {
87
+ let normalized = version;
88
+ if (normalized.includes('-')) {
89
+ normalized = normalized.split('-')[0];
90
+ }
91
+ return normalized;
92
+ }
93
+
94
+ /**
95
+ * getCloudinaryConfig
96
+ */
97
+
98
+ function getCloudinaryConfig(config) {
99
+ const cloudName = config?.cloud?.cloudName ?? process.env.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME;
100
+ if (!cloudName) {
101
+ throw new Error('A Cloudinary Cloud name is required, please make sure NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME is set and configured in your environment.');
102
+ }
103
+ const apiKey = config?.cloud?.apiKey ?? process.env.NEXT_PUBLIC_CLOUDINARY_API_KEY;
104
+ const secureDistribution = config?.url?.secureDistribution ?? process.env.NEXT_PUBLIC_CLOUDINARY_SECURE_DISTRIBUTION;
105
+ const privateCdn = config?.url?.privateCdn ?? process.env.NEXT_PUBLIC_CLOUDINARY_PRIVATE_CDN;
106
+ return Object.assign({
107
+ cloud: {
108
+ ...config?.cloud,
109
+ apiKey,
110
+ cloudName
111
+ },
112
+ url: {
113
+ ...config?.url,
114
+ secureDistribution,
115
+ privateCdn
116
+ }
117
+ }, config);
118
+ }
119
+
120
+ /**
121
+ * getCloudinaryAnalytics
122
+ */
123
+
124
+ function getCloudinaryAnalytics(analytics) {
125
+ return Object.assign({
126
+ product: NEXT_CLOUDINARY_ANALYTICS_PRODUCT_ID,
127
+ sdkCode: NEXT_CLOUDINARY_ANALYTICS_ID,
128
+ sdkSemver: NEXT_CLOUDINARY_VERSION,
129
+ techVersion: NEXT_VERSION,
130
+ feature: ''
131
+ }, analytics);
132
+ }
133
+
134
+ export { getCloudinaryAnalytics as a, getCloudinaryConfig as g };
@@ -0,0 +1,57 @@
1
+ import { constructCloudinaryUrl } from '@cloudinary-util/url-loader';
2
+ import { g as getCloudinaryConfig, a as getCloudinaryAnalytics } from './cloudinary-cb3c790a.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
+ return getCldImageUrl(options, cldConfig);
55
+ }
56
+
57
+ export { cloudinaryLoader as c, getCldImageUrl as g };
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ var urlLoader = require('@cloudinary-util/url-loader');
4
+ var cloudinary = require('./cloudinary-1f1b51af.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
+ return getCldImageUrl(options, cldConfig);
57
+ }
58
+
59
+ exports.cloudinaryLoader = cloudinaryLoader;
60
+ exports.getCldImageUrl = getCldImageUrl;
@@ -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;oDAuHrB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from "./CldImage.js";
2
+ export type { CldImageProps } from "./CldImage.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export { default } from "./CldOgImage.js";
2
+ export type { CldOgImageProps } from "./CldOgImage.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export { default } from "./CldUploadButton.js";
2
+ export type { CldUploadButtonProps } from "./CldUploadButton.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export { default } from "./CldUploadWidget.js";
2
+ export type { CldUploadWidgetProps, CldUploadWidgetPropsChildren } from "./CldUploadWidget.types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ import { CldVideoPlayerProps } from "./CldVideoPlayer.types.js";
2
+ declare const CldVideoPlayer: (props: CldVideoPlayerProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default CldVideoPlayer;
4
+ //# sourceMappingURL=CldVideoPlayer.d.ts.map
@@ -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,4CAoIjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { MutableRefObject } from 'react';
2
+ import { CloudinaryVideoPlayer, CloudinaryVideoPlayerOptionsLogo } from '@cloudinary-util/types';
3
+ import { ConfigOptions, GetVideoPlayerOptions } from "@cloudinary-util/url-loader";
4
+ import { GetCldImageUrlOptions } from "../../helpers/getCldImageUrl.js";
5
+ import { GetCldVideoUrlOptions } from "../../helpers/getCldVideoUrl.js";
6
+ export type CldVideoPlayerProps = Omit<GetVideoPlayerOptions, "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,EACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEnF,OAAO,EAAE,qBAAqB,EAAE,wCAAqC;AACrE,OAAO,EAAE,qBAAqB,EAAE,wCAAqC;AAErE,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,qBAAqB,EAAE,YAAY,GAAG,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,cAAc,GAAG,gBAAgB,CAAC,GAAG;IACtK,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,3 @@
1
+ export { default } from "./CldVideoPlayer.js";
2
+ export type { CldVideoPlayerProps, CldVideoPlayerPropsLogo } from "./CldVideoPlayer.types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,16 @@
1
+ import { ImageProps } from 'next/image';
2
+ export interface CloudinaryLoaderCldOptions {
3
+ src: string;
4
+ }
5
+ export interface CloudinaryLoaderLoaderOptions {
6
+ height?: string | number;
7
+ width?: string | number;
8
+ }
9
+ export interface CloudinaryLoader {
10
+ loaderOptions: CloudinaryLoaderLoaderOptions;
11
+ imageProps: ImageProps;
12
+ cldOptions: CloudinaryLoaderCldOptions;
13
+ cldConfig?: object;
14
+ }
15
+ export declare function cloudinaryLoader({ loaderOptions, imageProps, cldOptions, cldConfig }: CloudinaryLoader): string;
16
+ //# 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;IACzC,GAAG,EAAE,MAAM,CAAA;CACZ;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,UAqC3G"}
@@ -1 +1 @@
1
- Cannot find "/dist/fonts/cloudinary_icon_for_white_bg.svg" in cloudinary-video-player@1.11.1
1
+ error code: 502
@@ -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==