next-cloudinary 7.0.0-beta.9 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +18 -6
  3. package/dist/{CldImage-4380ef10.esm.js → CldImage-07dde903.esm.js} +2 -2
  4. package/dist/{CldImage-a0fb6e20.cjs.js → CldImage-31b93c94.cjs.js} +6 -6
  5. package/dist/{CldUploadButton-db9b095b.cjs.js → CldUploadButton-7867eb66.cjs.js} +1 -3
  6. package/dist/{CldUploadButton-196b419b.esm.js → CldUploadButton-8cb106b1.esm.js} +1 -3
  7. package/dist/{CldUploadWidget-c286718a.esm.js → CldUploadWidget-088119fa.esm.js} +22 -21
  8. package/dist/{CldUploadWidget-57c2d2bb.cjs.js → CldUploadWidget-a1e60409.cjs.js} +27 -25
  9. package/dist/{CldVideoPlayer-a2394e0d.cjs.js → CldVideoPlayer-42f73054.cjs.js} +75 -28
  10. package/dist/{CldVideoPlayer-af287c4c.esm.js → CldVideoPlayer-7e753e1c.esm.js} +73 -26
  11. package/dist/cld-video-player.css +5 -2
  12. package/dist/{cloudinary-b9e364fd.cjs.js → cloudinary-ed5f879f.cjs.js} +34 -20
  13. package/dist/{cloudinary-893210c5.esm.js → cloudinary-ef6def0a.esm.js} +34 -20
  14. package/dist/{cloudinary-loader-2aacbd3a.esm.js → cloudinary-loader-3f16f899.esm.js} +1 -3
  15. package/dist/{cloudinary-loader-729e4725.cjs.js → cloudinary-loader-837b1bbc.cjs.js} +1 -3
  16. package/dist/declarations/src/components/CldOgImage/CldOgImage.d.ts +1 -1
  17. package/dist/declarations/src/components/CldOgImage/CldOgImage.d.ts.map +1 -1
  18. package/dist/declarations/src/components/CldUploadButton/CldUploadButton.d.ts +3 -2
  19. package/dist/declarations/src/components/CldUploadButton/CldUploadButton.d.ts.map +1 -1
  20. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.d.ts +2 -1
  21. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.d.ts.map +1 -1
  22. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.types.d.ts +2 -6
  23. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.types.d.ts.map +1 -1
  24. package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.d.ts +1 -1
  25. package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.d.ts.map +1 -1
  26. package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.types.d.ts +1 -0
  27. package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.types.d.ts.map +1 -1
  28. package/dist/declarations/src/loaders/cloudinary-loader.d.ts +1 -0
  29. package/dist/declarations/src/loaders/cloudinary-loader.d.ts.map +1 -1
  30. package/dist/next-cloudinary.cjs.js +6 -6
  31. package/dist/next-cloudinary.esm.js +7 -7
  32. package/package.json +29 -26
  33. package/dist/fonts/cloudinary_icon_for_black_bg.svg +0 -1
  34. package/dist/fonts/cloudinary_icon_for_white_bg.svg +0 -1
@@ -8,8 +8,12 @@ var nextPkg__default = /*#__PURE__*/_interopDefault(nextPkg);
8
8
 
9
9
  var pkg = {
10
10
  name: "next-cloudinary",
11
- version: "7.0.0-beta.9",
11
+ version: "7.0.0",
12
12
  license: "MIT",
13
+ repository: {
14
+ type: "git",
15
+ url: "git+https://github.com/cloudinary-community/next-cloudinary.git"
16
+ },
13
17
  main: "dist/next-cloudinary.cjs.js",
14
18
  module: "dist/next-cloudinary.esm.js",
15
19
  exports: {
@@ -24,11 +28,7 @@ var pkg = {
24
28
  },
25
29
  "./package.json": "./package.json",
26
30
  "./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"
31
+ "./dist/cld-video-player.css": "./dist/cld-video-player.css"
32
32
  },
33
33
  types: "./dist/next-cloudinary.cjs.d.ts",
34
34
  files: [
@@ -44,9 +44,9 @@ var pkg = {
44
44
  "test:watch": "vitest"
45
45
  },
46
46
  dependencies: {
47
- "@cloudinary-util/types": "1.6.0",
48
- "@cloudinary-util/url-loader": "6.0.0",
49
- "@cloudinary-util/util": "4.1.0"
47
+ "@cloudinary-util/types": "1.7.0",
48
+ "@cloudinary-util/url-loader": "6.3.2",
49
+ "@cloudinary-util/util": "4.3.0"
50
50
  },
51
51
  devDependencies: {
52
52
  "@babel/core": "^7.25.2",
@@ -55,28 +55,29 @@ var pkg = {
55
55
  "@babel/preset-typescript": "^7.24.7",
56
56
  "@tsconfig/recommended": "^1.0.7",
57
57
  "@types/node": "^22.0.2",
58
- "@types/react": "^18.3.3",
59
- "@types/react-dom": "^18.3.0",
58
+ "@types/react": "^19.2.18",
59
+ "@types/react-dom": "^19.2.5",
60
60
  dotenv: "^16.4.5",
61
61
  mkdirp: "^3.0.1",
62
+ next: "^16.0.0",
63
+ react: "^19.2.0",
62
64
  tsx: "^4.19.1",
63
65
  typescript: "^5.5.4",
64
66
  vitest: "^2.0.5"
65
67
  },
66
68
  peerDependencies: {
67
- next: "^12 || ^13 || ^14 || >=15.0.0-rc || ^15",
68
- react: "^17 || ^18 || >=19.0.0-beta || ^19"
69
+ next: "^16",
70
+ react: "^18.2.0 || ^19"
71
+ },
72
+ engines: {
73
+ node: ">=22"
69
74
  },
70
75
  preconstruct: {
71
76
  exports: {
72
77
  importConditionDefaultExport: "default",
73
78
  extra: {
74
79
  "./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
+ "./dist/cld-video-player.css": "./dist/cld-video-player.css"
80
81
  }
81
82
  },
82
83
  ___experimentalFlags_WILL_CHANGE_IN_PATCH: {
@@ -85,8 +86,21 @@ var pkg = {
85
86
  }
86
87
  };
87
88
 
88
- const NEXT_CLOUDINARY_ANALYTICS_PRODUCT_ID = 'A';
89
- const NEXT_CLOUDINARY_ANALYTICS_ID = 'V';
89
+ // Detect if this project was created via create-cloudinary-react CLI (Integrations)
90
+ // copied from https://github.com/cloudinary/frontend-frameworks/commit/00a8eb2b133c772fb6f54d840eba0012286b70b2#diff-9bc0325d4ce5c8af9b3be68a361f186552b51da8274a7a2f214f7deaa9b245af
91
+ function isCLI() {
92
+ if (typeof process !== 'undefined' && process.env) {
93
+ return process.env.CLOUDINARY_SOURCE === 'cli';
94
+ }
95
+ return false;
96
+ }
97
+ const isCLIDetected = isCLI();
98
+
99
+ // If the project was spun up using `npx create-cloudinary-next`
100
+ // use the Integrations mode of the analytics string (product = 'B' instead of 'A')
101
+ // and use sdk code 'I' ('Next CLI' integration) instead of 'V' (Next.js sdk)
102
+ const NEXT_CLOUDINARY_ANALYTICS_PRODUCT_ID = isCLIDetected ? 'B' : 'A';
103
+ const NEXT_CLOUDINARY_ANALYTICS_ID = isCLIDetected ? 'I' : 'V';
90
104
  const NEXT_VERSION = normalizeVersion(nextPkg__default["default"].version);
91
105
  const NEXT_CLOUDINARY_VERSION = normalizeVersion(pkg.version);
92
106
  function normalizeVersion(version) {
@@ -2,8 +2,12 @@ import nextPkg from 'next/package.json';
2
2
 
3
3
  var pkg = {
4
4
  name: "next-cloudinary",
5
- version: "7.0.0-beta.9",
5
+ version: "7.0.0",
6
6
  license: "MIT",
7
+ repository: {
8
+ type: "git",
9
+ url: "git+https://github.com/cloudinary-community/next-cloudinary.git"
10
+ },
7
11
  main: "dist/next-cloudinary.cjs.js",
8
12
  module: "dist/next-cloudinary.esm.js",
9
13
  exports: {
@@ -18,11 +22,7 @@ var pkg = {
18
22
  },
19
23
  "./package.json": "./package.json",
20
24
  "./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"
25
+ "./dist/cld-video-player.css": "./dist/cld-video-player.css"
26
26
  },
27
27
  types: "./dist/next-cloudinary.cjs.d.ts",
28
28
  files: [
@@ -38,9 +38,9 @@ var pkg = {
38
38
  "test:watch": "vitest"
39
39
  },
40
40
  dependencies: {
41
- "@cloudinary-util/types": "1.6.0",
42
- "@cloudinary-util/url-loader": "6.0.0",
43
- "@cloudinary-util/util": "4.1.0"
41
+ "@cloudinary-util/types": "1.7.0",
42
+ "@cloudinary-util/url-loader": "6.3.2",
43
+ "@cloudinary-util/util": "4.3.0"
44
44
  },
45
45
  devDependencies: {
46
46
  "@babel/core": "^7.25.2",
@@ -49,28 +49,29 @@ var pkg = {
49
49
  "@babel/preset-typescript": "^7.24.7",
50
50
  "@tsconfig/recommended": "^1.0.7",
51
51
  "@types/node": "^22.0.2",
52
- "@types/react": "^18.3.3",
53
- "@types/react-dom": "^18.3.0",
52
+ "@types/react": "^19.2.18",
53
+ "@types/react-dom": "^19.2.5",
54
54
  dotenv: "^16.4.5",
55
55
  mkdirp: "^3.0.1",
56
+ next: "^16.0.0",
57
+ react: "^19.2.0",
56
58
  tsx: "^4.19.1",
57
59
  typescript: "^5.5.4",
58
60
  vitest: "^2.0.5"
59
61
  },
60
62
  peerDependencies: {
61
- next: "^12 || ^13 || ^14 || >=15.0.0-rc || ^15",
62
- react: "^17 || ^18 || >=19.0.0-beta || ^19"
63
+ next: "^16",
64
+ react: "^18.2.0 || ^19"
65
+ },
66
+ engines: {
67
+ node: ">=22"
63
68
  },
64
69
  preconstruct: {
65
70
  exports: {
66
71
  importConditionDefaultExport: "default",
67
72
  extra: {
68
73
  "./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
+ "./dist/cld-video-player.css": "./dist/cld-video-player.css"
74
75
  }
75
76
  },
76
77
  ___experimentalFlags_WILL_CHANGE_IN_PATCH: {
@@ -79,8 +80,21 @@ var pkg = {
79
80
  }
80
81
  };
81
82
 
82
- const NEXT_CLOUDINARY_ANALYTICS_PRODUCT_ID = 'A';
83
- const NEXT_CLOUDINARY_ANALYTICS_ID = 'V';
83
+ // Detect if this project was created via create-cloudinary-react CLI (Integrations)
84
+ // copied from https://github.com/cloudinary/frontend-frameworks/commit/00a8eb2b133c772fb6f54d840eba0012286b70b2#diff-9bc0325d4ce5c8af9b3be68a361f186552b51da8274a7a2f214f7deaa9b245af
85
+ function isCLI() {
86
+ if (typeof process !== 'undefined' && process.env) {
87
+ return process.env.CLOUDINARY_SOURCE === 'cli';
88
+ }
89
+ return false;
90
+ }
91
+ const isCLIDetected = isCLI();
92
+
93
+ // If the project was spun up using `npx create-cloudinary-next`
94
+ // use the Integrations mode of the analytics string (product = 'B' instead of 'A')
95
+ // and use sdk code 'I' ('Next CLI' integration) instead of 'V' (Next.js sdk)
96
+ const NEXT_CLOUDINARY_ANALYTICS_PRODUCT_ID = isCLIDetected ? 'B' : 'A';
97
+ const NEXT_CLOUDINARY_ANALYTICS_ID = isCLIDetected ? 'I' : 'V';
84
98
  const NEXT_VERSION = normalizeVersion(nextPkg.version);
85
99
  const NEXT_CLOUDINARY_VERSION = normalizeVersion(pkg.version);
86
100
  function normalizeVersion(version) {
@@ -1,5 +1,5 @@
1
1
  import { constructCloudinaryUrl } from '@cloudinary-util/url-loader';
2
- import { g as getCloudinaryConfig, a as getCloudinaryAnalytics } from './cloudinary-893210c5.esm.js';
2
+ import { g as getCloudinaryConfig, a as getCloudinaryAnalytics } from './cloudinary-ef6def0a.esm.js';
3
3
 
4
4
  /**
5
5
  * getCldImageUrl
@@ -51,8 +51,6 @@ function cloudinaryLoader({
51
51
  // for responsive sizing to take effect, so we can utilize the loader width for the base width
52
52
  options.width = loaderOptions?.width;
53
53
  }
54
-
55
- // @ts-ignore
56
54
  return getCldImageUrl(options, cldConfig);
57
55
  }
58
56
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var urlLoader = require('@cloudinary-util/url-loader');
4
- var cloudinary = require('./cloudinary-b9e364fd.cjs.js');
4
+ var cloudinary = require('./cloudinary-ed5f879f.cjs.js');
5
5
 
6
6
  /**
7
7
  * getCldImageUrl
@@ -53,8 +53,6 @@ function cloudinaryLoader({
53
53
  // for responsive sizing to take effect, so we can utilize the loader width for the base width
54
54
  options.width = loaderOptions?.width;
55
55
  }
56
-
57
- // @ts-ignore
58
56
  return getCldImageUrl(options, cldConfig);
59
57
  }
60
58
 
@@ -4,6 +4,6 @@ export type CldOgImageProps = CldImageProps & {
4
4
  keys?: object;
5
5
  twitterTitle?: string;
6
6
  };
7
- declare const CldOgImage: ({ excludeTags, twitterTitle, keys, ...props }: CldOgImageProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const CldOgImage: ({ excludeTags, twitterTitle, keys, ...props }: CldOgImageProps) => import("react").JSX.Element;
8
8
  export default CldOgImage;
9
9
  //# sourceMappingURL=CldOgImage.d.ts.map
@@ -1 +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"}
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,gCAuE3F,CAAA;AAED,eAAe,UAAU,CAAC"}
@@ -1,9 +1,10 @@
1
+ import React from 'react';
1
2
  import { CldUploadWidgetProps } from "../CldUploadWidget/index.js";
2
3
  export interface CldUploadButtonProps extends Omit<CldUploadWidgetProps, 'children'> {
3
4
  className?: string;
4
- children?: JSX.Element | string | Array<JSX.Element | string>;
5
+ children?: React.JSX.Element | string | Array<React.JSX.Element | string>;
5
6
  onClick?: Function;
6
7
  }
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
+ declare const CldUploadButton: ({ className, children, onClick, onError, onOpen, 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) => React.JSX.Element;
8
9
  export default CldUploadButton;
9
10
  //# sourceMappingURL=CldUploadButton.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"CldUploadButton.d.ts","sourceRoot":"../../../../../src/components/CldUploadButton","sources":["CldUploadButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,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,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,GAAC,MAAM,CAAC,CAAC;IACxE,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,QAAA,MAAM,eAAe,8gBAoClB,oBAAoB,sBAwDtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  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
+ declare const CldUploadWidget: ({ children, config, onError, onOpen, options, signatureEndpoint, uploadPreset, ...props }: CldUploadWidgetProps) => React.JSX.Element;
3
4
  export default CldUploadWidget;
4
5
  //# sourceMappingURL=CldUploadWidget.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"CldUploadWidget.d.ts","sourceRoot":"../../../../../src/components/CldUploadWidget","sources":["CldUploadWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAe3D,OAAO,EAIL,oBAAoB,EAErB,mCAAgC;AAiBjC,QAAA,MAAM,eAAe,8FASlB,oBAAoB,sBA2MtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,16 +1,13 @@
1
+ import type React from 'react';
1
2
  import { CloudinaryUploadWidgetOptions, CloudinaryUploadWidgetResults, CloudinaryUploadWidgetInstanceMethods, CloudinaryUploadWidgetError } from '@cloudinary-util/types';
2
3
  import { ConfigOptions } from "@cloudinary-util/url-loader";
3
4
  export type CldUploadWidgetCloudinaryInstance = any;
4
5
  export type CldUploadWidgetWidgetInstance = any;
5
6
  export interface CldUploadWidgetProps {
6
- children?: ({ cloudinary, widget, open, results, error }: CldUploadWidgetPropsChildren) => JSX.Element;
7
+ children?: ({ cloudinary, widget, open, results, error }: CldUploadWidgetPropsChildren) => React.JSX.Element;
7
8
  config?: ConfigOptions;
8
9
  onError?: CldUploadEventCallbackError;
9
10
  onOpen?: CldUploadEventCallbackWidgetOnly;
10
- /**
11
- * @deprecated use onSuccess instead
12
- */
13
- onUpload?: CldUploadEventCallbackNoOptions;
14
11
  onAbort?: CldUploadEventCallback;
15
12
  onBatchCancelled?: CldUploadEventCallback;
16
13
  onClose?: CldUploadEventCallback;
@@ -50,7 +47,6 @@ export type CldUploadWidgetPropsChildren = {
50
47
  } & CloudinaryUploadWidgetInstanceMethods;
51
48
  export type CldUploadEventCallback = (results: CloudinaryUploadWidgetResults, widget: CldUploadEventCallbackWidget) => void;
52
49
  export type CldUploadEventAction = (results: CloudinaryUploadWidgetResults) => void;
53
- export type CldUploadEventCallbackNoOptions = (results: CloudinaryUploadWidgetResults, widget: CldUploadWidgetWidgetInstance) => void;
54
50
  export type CldUploadEventCallbackWidgetOnly = (widget: CldUploadWidgetWidgetInstance) => void;
55
51
  export type CldUploadEventCallbackError = (error: CloudinaryUploadWidgetError, widget: CldUploadEventCallbackWidget) => void;
56
52
  export type CldUploadEventCallbackWidget = {
@@ -1 +1 @@
1
- {"version":3,"file":"CldUploadWidget.types.d.ts","sourceRoot":"../../../../../src/components/CldUplo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BAA4B,KAAK,IAAI,CAAC;AAE7H,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,6BAA6B,CAAC;CACvC,GAAG,qCAAqC,CAAC"}
1
+ {"version":3,"file":"CldUploadWidget.types.d.ts","sourceRoot":"../../../../../src/components/CldUploadWidget","sources":["CldUploadWidget.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,qCAAqC,EACrC,2BAA2B,EAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,MAAM,iCAAiC,GAAG,GAAG,CAAC;AACpD,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAC;AAEhD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,4BAA4B,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAC7G,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,2BAA2B,CAAC;IACtC,MAAM,CAAC,EAAE,gCAAgC,CAAC;IAC1C,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,eAAe,CAAC,EAAE,sBAAsB,CAAC;IACzC,eAAe,CAAC,EAAE,sBAAsB,CAAC;IACzC,SAAS,CAAC,EAAE,sBAAsB,CAA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C;AAC/F,MAAM,MAAM,2BAA2B,GAAG,CAAC,KAAK,EAAE,2BAA2B,EAAE,MAAM,EAAE,4BAA4B,KAAK,IAAI,CAAC;AAE7H,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,6BAA6B,CAAC;CACvC,GAAG,qCAAqC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { CldVideoPlayerProps } from "./CldVideoPlayer.types.js";
2
- declare const CldVideoPlayer: (props: CldVideoPlayerProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const CldVideoPlayer: (props: CldVideoPlayerProps) => import("react").JSX.Element;
3
3
  export default CldVideoPlayer;
4
4
  //# sourceMappingURL=CldVideoPlayer.d.ts.map
@@ -1 +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"}
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,gCAoLjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -6,6 +6,7 @@ import { GetCldVideoUrlOptions } from "../../helpers/getCldVideoUrl.js";
6
6
  export type CldVideoPlayerProps = Omit<GetVideoPlayerOptions, "cloud_name" | "autoplayMode" | "publicId" | "secure" | "showLogo" | "logoImageUrl" | "logoOnclickUrl"> & {
7
7
  className?: string;
8
8
  config?: ConfigOptions;
9
+ disableRemotePlayback?: boolean;
9
10
  id?: string;
10
11
  logo?: boolean | CldVideoPlayerPropsLogo;
11
12
  onDataLoad?: Function;
@@ -1 +1 @@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,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"}
@@ -1,5 +1,6 @@
1
1
  import { ImageProps } from 'next/image';
2
2
  export interface CloudinaryLoaderCldOptions {
3
+ src: string;
3
4
  }
4
5
  export interface CloudinaryLoaderLoaderOptions {
5
6
  height?: string | number;
@@ -1 +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"}
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"}
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var CldImage = require('./CldImage-a0fb6e20.cjs.js');
5
+ var CldImage = require('./CldImage-31b93c94.cjs.js');
6
6
  var Head = require('next/head');
7
- var cloudinaryLoader = require('./cloudinary-loader-729e4725.cjs.js');
7
+ var cloudinaryLoader = require('./cloudinary-loader-837b1bbc.cjs.js');
8
8
  var jsxRuntime = require('react/jsx-runtime');
9
- var CldUploadButton = require('./CldUploadButton-db9b095b.cjs.js');
10
- var CldUploadWidget = require('./CldUploadWidget-57c2d2bb.cjs.js');
11
- var CldVideoPlayer = require('./CldVideoPlayer-a2394e0d.cjs.js');
9
+ var CldUploadButton = require('./CldUploadButton-7867eb66.cjs.js');
10
+ var CldUploadWidget = require('./CldUploadWidget-a1e60409.cjs.js');
11
+ var CldVideoPlayer = require('./CldVideoPlayer-42f73054.cjs.js');
12
12
  var urlLoader = require('@cloudinary-util/url-loader');
13
- var cloudinary = require('./cloudinary-b9e364fd.cjs.js');
13
+ var cloudinary = require('./cloudinary-ed5f879f.cjs.js');
14
14
  require('next/package.json');
15
15
 
16
16
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -1,13 +1,13 @@
1
- export { default as CldImage } from './CldImage-4380ef10.esm.js';
1
+ export { default as CldImage } from './CldImage-07dde903.esm.js';
2
2
  import Head from 'next/head';
3
- import { g as getCldImageUrl } from './cloudinary-loader-2aacbd3a.esm.js';
4
- export { c as cloudinaryLoader, g as getCldImageUrl } from './cloudinary-loader-2aacbd3a.esm.js';
3
+ import { g as getCldImageUrl } from './cloudinary-loader-3f16f899.esm.js';
4
+ export { c as cloudinaryLoader, g as getCldImageUrl } from './cloudinary-loader-3f16f899.esm.js';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
- export { default as CldUploadButton } from './CldUploadButton-196b419b.esm.js';
7
- export { default as CldUploadWidget } from './CldUploadWidget-c286718a.esm.js';
8
- export { default as CldVideoPlayer } from './CldVideoPlayer-af287c4c.esm.js';
6
+ export { default as CldUploadButton } from './CldUploadButton-8cb106b1.esm.js';
7
+ export { default as CldUploadWidget } from './CldUploadWidget-088119fa.esm.js';
8
+ export { default as CldVideoPlayer } from './CldVideoPlayer-7e753e1c.esm.js';
9
9
  import { constructCloudinaryUrl } from '@cloudinary-util/url-loader';
10
- import { g as getCloudinaryConfig, a as getCloudinaryAnalytics } from './cloudinary-893210c5.esm.js';
10
+ import { g as getCloudinaryConfig, a as getCloudinaryAnalytics } from './cloudinary-ef6def0a.esm.js';
11
11
  import 'next/package.json';
12
12
 
13
13
  const OG_IMAGE_WIDTH = 1200;
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "next-cloudinary",
3
- "version": "7.0.0-beta.9",
3
+ "version": "7.0.0",
4
4
  "license": "MIT",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/cloudinary-community/next-cloudinary.git"
8
+ },
5
9
  "main": "dist/next-cloudinary.cjs.js",
6
10
  "module": "dist/next-cloudinary.esm.js",
7
11
  "exports": {
@@ -16,20 +20,25 @@
16
20
  },
17
21
  "./package.json": "./package.json",
18
22
  "./cld-video-player.css": "./dist/cld-video-player.css",
19
- "./dist/cld-video-player.css": "./dist/cld-video-player.css",
20
- "./cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
21
- "./dist/cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
22
- "./cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg",
23
- "./dist/cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg"
23
+ "./dist/cld-video-player.css": "./dist/cld-video-player.css"
24
24
  },
25
25
  "types": "./dist/next-cloudinary.cjs.d.ts",
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
+ "scripts": {
30
+ "build": "preconstruct build && tsx scripts/copy-assets.ts",
31
+ "dev": "preconstruct watch",
32
+ "prepublishOnly": "cp ../README.md . && cp ../LICENSE . && pnpm build",
33
+ "postpublish": "rm ./README.md && rm ./LICENSE",
34
+ "test": "vitest run",
35
+ "test:app": "NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=\"test\" pnpm build && cd tests/nextjs-app && pnpm build",
36
+ "test:watch": "vitest"
37
+ },
29
38
  "dependencies": {
30
- "@cloudinary-util/types": "1.6.0",
31
- "@cloudinary-util/url-loader": "6.0.0",
32
- "@cloudinary-util/util": "4.1.0"
39
+ "@cloudinary-util/types": "1.7.0",
40
+ "@cloudinary-util/url-loader": "6.3.2",
41
+ "@cloudinary-util/util": "4.3.0"
33
42
  },
34
43
  "devDependencies": {
35
44
  "@babel/core": "^7.25.2",
@@ -38,39 +47,33 @@
38
47
  "@babel/preset-typescript": "^7.24.7",
39
48
  "@tsconfig/recommended": "^1.0.7",
40
49
  "@types/node": "^22.0.2",
41
- "@types/react": "^18.3.3",
42
- "@types/react-dom": "^18.3.0",
50
+ "@types/react": "^19.2.18",
51
+ "@types/react-dom": "^19.2.5",
43
52
  "dotenv": "^16.4.5",
44
53
  "mkdirp": "^3.0.1",
54
+ "next": "^16.0.0",
55
+ "react": "^19.2.0",
45
56
  "tsx": "^4.19.1",
46
57
  "typescript": "^5.5.4",
47
58
  "vitest": "^2.0.5"
48
59
  },
49
60
  "peerDependencies": {
50
- "next": "^12 || ^13 || ^14 || >=15.0.0-rc || ^15",
51
- "react": "^17 || ^18 || >=19.0.0-beta || ^19"
61
+ "next": "^16",
62
+ "react": "^18.2.0 || ^19"
63
+ },
64
+ "engines": {
65
+ "node": ">=22"
52
66
  },
53
67
  "preconstruct": {
54
68
  "exports": {
55
69
  "importConditionDefaultExport": "default",
56
70
  "extra": {
57
71
  "./cld-video-player.css": "./dist/cld-video-player.css",
58
- "./dist/cld-video-player.css": "./dist/cld-video-player.css",
59
- "./cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
60
- "./dist/cloudinary_icon_for_black_bg.svg": "./dist/cloudinary_icon_for_black_bg.svg",
61
- "./cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg",
62
- "./dist/cloudinary_icon_for_white_bg.svg": "./dist/cloudinary_icon_for_white_bg.svg"
72
+ "./dist/cld-video-player.css": "./dist/cld-video-player.css"
63
73
  }
64
74
  },
65
75
  "___experimentalFlags_WILL_CHANGE_IN_PATCH": {
66
76
  "importsConditions": true
67
77
  }
68
- },
69
- "scripts": {
70
- "build": "preconstruct build && tsx scripts/copy-assets.ts",
71
- "dev": "preconstruct watch",
72
- "test": "vitest run",
73
- "test:app": "NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=\"test\" pnpm build && cd tests/nextjs-app && pnpm build",
74
- "test:watch": "vitest"
75
78
  }
76
- }
79
+ }
@@ -1 +0,0 @@
1
- Cannot find "/dist/fonts/cloudinary_icon_for_black_bg.svg" in cloudinary-video-player@1.11.1
@@ -1 +0,0 @@
1
- Cannot find "/dist/fonts/cloudinary_icon_for_white_bg.svg" in cloudinary-video-player@1.11.1