next-cloudinary 7.0.0-beta.14 → 7.0.0-beta.16

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 (22) hide show
  1. package/dist/{CldImage-5ad429b8.esm.js → CldImage-b3585cd6.esm.js} +2 -2
  2. package/dist/{CldImage-87fc8c2b.cjs.js → CldImage-e914c0b9.cjs.js} +2 -2
  3. package/dist/{CldUploadButton-db9b095b.cjs.js → CldUploadButton-7867eb66.cjs.js} +1 -3
  4. package/dist/{CldUploadButton-196b419b.esm.js → CldUploadButton-8cb106b1.esm.js} +1 -3
  5. package/dist/{CldUploadWidget-70023ac5.cjs.js → CldUploadWidget-720d0016.cjs.js} +1 -15
  6. package/dist/{CldUploadWidget-f3facc95.esm.js → CldUploadWidget-b4cb1b8a.esm.js} +1 -15
  7. package/dist/{CldVideoPlayer-4aeffc1d.esm.js → CldVideoPlayer-457d5422.esm.js} +19 -10
  8. package/dist/{CldVideoPlayer-49777e76.cjs.js → CldVideoPlayer-d596af93.cjs.js} +19 -10
  9. package/dist/{cloudinary-776f3cff.esm.js → cloudinary-c386d13c.esm.js} +1 -1
  10. package/dist/{cloudinary-a728fd61.cjs.js → cloudinary-d005ce18.cjs.js} +1 -1
  11. package/dist/{cloudinary-loader-0c7e0649.esm.js → cloudinary-loader-e85ee874.esm.js} +1 -1
  12. package/dist/{cloudinary-loader-36e9f19c.cjs.js → cloudinary-loader-f30046dc.cjs.js} +1 -1
  13. package/dist/declarations/src/components/CldUploadButton/CldUploadButton.d.ts +1 -1
  14. package/dist/declarations/src/components/CldUploadButton/CldUploadButton.d.ts.map +1 -1
  15. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.d.ts +1 -1
  16. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.d.ts.map +1 -1
  17. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.types.d.ts +0 -5
  18. package/dist/declarations/src/components/CldUploadWidget/CldUploadWidget.types.d.ts.map +1 -1
  19. package/dist/declarations/src/components/CldVideoPlayer/CldVideoPlayer.d.ts.map +1 -1
  20. package/dist/next-cloudinary.cjs.js +6 -6
  21. package/dist/next-cloudinary.esm.js +7 -7
  22. package/package.json +1 -1
@@ -3,9 +3,9 @@ import { forwardRef, useState, useCallback } from 'react';
3
3
  import Image from 'next/image';
4
4
  import { pollForProcessingImage } from '@cloudinary-util/util';
5
5
  import { cloudinaryPluginKeys } from '@cloudinary-util/url-loader';
6
- import { g as getCldImageUrl, c as cloudinaryLoader } from './cloudinary-loader-0c7e0649.esm.js';
6
+ import { g as getCldImageUrl, c as cloudinaryLoader } from './cloudinary-loader-e85ee874.esm.js';
7
7
  import { jsx } from 'react/jsx-runtime';
8
- import './cloudinary-776f3cff.esm.js';
8
+ import './cloudinary-c386d13c.esm.js';
9
9
  import 'next/package.json';
10
10
 
11
11
  const CldImage = /*#__PURE__*/forwardRef(function CldImage(props, ref) {
@@ -7,9 +7,9 @@ var React = require('react');
7
7
  var Image = require('next/image');
8
8
  var util = require('@cloudinary-util/util');
9
9
  var urlLoader = require('@cloudinary-util/url-loader');
10
- var cloudinaryLoader = require('./cloudinary-loader-36e9f19c.cjs.js');
10
+ var cloudinaryLoader = require('./cloudinary-loader-f30046dc.cjs.js');
11
11
  var jsxRuntime = require('react/jsx-runtime');
12
- require('./cloudinary-a728fd61.cjs.js');
12
+ require('./cloudinary-d005ce18.cjs.js');
13
13
  require('next/package.json');
14
14
 
15
15
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -4,7 +4,7 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  require('react');
7
- var CldUploadWidget = require('./CldUploadWidget-70023ac5.cjs.js');
7
+ var CldUploadWidget = require('./CldUploadWidget-720d0016.cjs.js');
8
8
  var jsxRuntime = require('react/jsx-runtime');
9
9
 
10
10
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -17,7 +17,6 @@ const CldUploadButton = ({
17
17
  onClick,
18
18
  onError,
19
19
  onOpen,
20
- onUpload,
21
20
  onAbort,
22
21
  onBatchCancelled,
23
22
  onClose,
@@ -53,7 +52,6 @@ const CldUploadButton = ({
53
52
  children: /*#__PURE__*/jsxRuntime.jsx(CldUploadWidget__default["default"], {
54
53
  onError: onError,
55
54
  onOpen: onOpen,
56
- onUpload: onUpload,
57
55
  onAbort: onAbort,
58
56
  onBatchCancelled: onBatchCancelled,
59
57
  onClose: onClose,
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import 'react';
3
- import CldUploadWidget from './CldUploadWidget-f3facc95.esm.js';
3
+ import CldUploadWidget from './CldUploadWidget-b4cb1b8a.esm.js';
4
4
  import { jsx, Fragment } from 'react/jsx-runtime';
5
5
 
6
6
  const CldUploadButton = ({
@@ -9,7 +9,6 @@ const CldUploadButton = ({
9
9
  onClick,
10
10
  onError,
11
11
  onOpen,
12
- onUpload,
13
12
  onAbort,
14
13
  onBatchCancelled,
15
14
  onClose,
@@ -45,7 +44,6 @@ const CldUploadButton = ({
45
44
  children: /*#__PURE__*/jsx(CldUploadWidget, {
46
45
  onError: onError,
47
46
  onOpen: onOpen,
48
- onUpload: onUpload,
49
47
  onAbort: onAbort,
50
48
  onBatchCancelled: onBatchCancelled,
51
49
  onClose: onClose,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var React = require('react');
7
7
  var Script = require('next/script');
8
8
  var urlLoader = require('@cloudinary-util/url-loader');
9
- var cloudinary = require('./cloudinary-a728fd61.cjs.js');
9
+ var cloudinary = require('./cloudinary-d005ce18.cjs.js');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
  require('next/package.json');
12
12
 
@@ -42,7 +42,6 @@ const CldUploadWidget = ({
42
42
  config,
43
43
  onError,
44
44
  onOpen,
45
- onUpload,
46
45
  options,
47
46
  signatureEndpoint,
48
47
  uploadPreset,
@@ -100,19 +99,6 @@ const CldUploadWidget = ({
100
99
  }
101
100
  });
102
101
 
103
- // Handle result states and callbacks
104
-
105
- React.useEffect(() => {
106
- if (typeof results === 'undefined') return;
107
- const isSuccess = results.event === 'success';
108
- if (isSuccess && typeof onUpload === 'function') {
109
- if (process.env.NODE_ENV === 'development') {
110
- console.warn('The onUpload callback is deprecated. Please use onSuccess instead.');
111
- }
112
- onUpload(results, widget.current);
113
- }
114
- }, [results]);
115
-
116
102
  /**
117
103
  * handleOnLoad
118
104
  * @description Stores the Cloudinary window instance to a ref when the widget script loads
@@ -2,7 +2,7 @@
2
2
  import React, { useRef, useState, useEffect } from 'react';
3
3
  import Script from 'next/script';
4
4
  import { generateSignatureCallback, getUploadWidgetOptions, generateUploadWidgetResultCallback, UPLOAD_WIDGET_EVENTS } from '@cloudinary-util/url-loader';
5
- import { g as getCloudinaryConfig } from './cloudinary-776f3cff.esm.js';
5
+ import { g as getCloudinaryConfig } from './cloudinary-c386d13c.esm.js';
6
6
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
7
7
  import 'next/package.json';
8
8
 
@@ -33,7 +33,6 @@ const CldUploadWidget = ({
33
33
  config,
34
34
  onError,
35
35
  onOpen,
36
- onUpload,
37
36
  options,
38
37
  signatureEndpoint,
39
38
  uploadPreset,
@@ -91,19 +90,6 @@ const CldUploadWidget = ({
91
90
  }
92
91
  });
93
92
 
94
- // Handle result states and callbacks
95
-
96
- useEffect(() => {
97
- if (typeof results === 'undefined') return;
98
- const isSuccess = results.event === 'success';
99
- if (isSuccess && typeof onUpload === 'function') {
100
- if (process.env.NODE_ENV === 'development') {
101
- console.warn('The onUpload callback is deprecated. Please use onSuccess instead.');
102
- }
103
- onUpload(results, widget.current);
104
- }
105
- }, [results]);
106
-
107
93
  /**
108
94
  * handleOnLoad
109
95
  * @description Stores the Cloudinary window instance to a ref when the widget script loads
@@ -3,7 +3,7 @@ import { useId, useState, useRef, useEffect } from 'react';
3
3
  import Script from 'next/script';
4
4
  import Head from 'next/head';
5
5
  import { getVideoPlayerOptions } from '@cloudinary-util/url-loader';
6
- import { g as getCloudinaryConfig } from './cloudinary-776f3cff.esm.js';
6
+ import { g as getCloudinaryConfig } from './cloudinary-c386d13c.esm.js';
7
7
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
8
8
  import 'next/package.json';
9
9
 
@@ -44,6 +44,8 @@ const CldVideoPlayer = props => {
44
44
  const videoRef = props.videoRef || defaultVideoRef;
45
45
  const defaultPlayerRef = useRef(null);
46
46
  const playerRef = props.playerRef || defaultPlayerRef;
47
+ // The <video> element the player was created on (video.js keeps using it inside the player)
48
+ const playerVideoElementRef = useRef(null);
47
49
  const playerId = id || `player-${uniqueId.replace(/:/g, '')}`;
48
50
  let playerClassName = 'cld-video-player cld-fluid';
49
51
  if (className) {
@@ -76,8 +78,14 @@ const CldVideoPlayer = props => {
76
78
  */
77
79
 
78
80
  const disposePlayer = () => {
79
- if (playerRef.current?.videojs?.cloudinary) {
80
- playerRef.current.videojs.cloudinary.dispose();
81
+ // React Strict Mode runs effect cleanups without removing the DOM, then reuses the same
82
+ // <video> element. Keep the player in that case; dispose() would remove the element.
83
+ if (playerVideoElementRef.current?.isConnected) return;
84
+
85
+ // dispose() on the player instance also removes it from the video.js registry,
86
+ // so a remount with the same id creates a new player instead of reusing a stale one
87
+ if (typeof playerRef.current?.dispose === 'function') {
88
+ playerRef.current.dispose();
81
89
  }
82
90
  // remove from global instances array
83
91
  playerInstances = playerInstances.filter(instanceId => instanceId !== playerId);
@@ -91,13 +99,11 @@ const CldVideoPlayer = props => {
91
99
  */
92
100
 
93
101
  const initializePlayer = () => {
94
- if (typeof window !== 'undefined' && 'cloudinary' in window && videoRef.current && !playerInitialized) {
102
+ // Check the ref, not the playerInitialized state: onLoad and onReady can both call this
103
+ // during the same render, and the state value seen there may be stale
104
+ if (typeof window !== 'undefined' && 'cloudinary' in window && videoRef.current && !playerRef.current) {
95
105
  cloudinaryRef.current = window.cloudinary;
96
-
97
- // dispose any existing player instance first to prevent conflicts
98
- if (playerRef.current) {
99
- disposePlayer();
100
- }
106
+ playerVideoElementRef.current = videoRef.current;
101
107
  playerRef.current = cloudinaryRef.current.videoPlayer(videoRef.current, playerOptions);
102
108
  setPlayerInitialized(true);
103
109
  Object.keys(events).forEach(key => {
@@ -168,7 +174,10 @@ const CldVideoPlayer = props => {
168
174
  }), /*#__PURE__*/jsx(Script, {
169
175
  id: `cloudinary-videoplayer-${playerId}`,
170
176
  src: `https://unpkg.com/cloudinary-video-player@${PLAYER_VERSION}/dist/cld-video-player.min.js`,
171
- onLoad: handleOnLoad,
177
+ onLoad: handleOnLoad
178
+ // onReady also runs on later mounts with the same script id, where onLoad doesn't fire again
179
+ ,
180
+ onReady: handleOnLoad,
172
181
  onError: e => console.error(`Failed to load Cloudinary Video Player: ${e.message}`)
173
182
  })]
174
183
  })]
@@ -7,7 +7,7 @@ var React = require('react');
7
7
  var Script = require('next/script');
8
8
  var Head = require('next/head');
9
9
  var urlLoader = require('@cloudinary-util/url-loader');
10
- var cloudinary = require('./cloudinary-a728fd61.cjs.js');
10
+ var cloudinary = require('./cloudinary-d005ce18.cjs.js');
11
11
  var jsxRuntime = require('react/jsx-runtime');
12
12
  require('next/package.json');
13
13
 
@@ -53,6 +53,8 @@ const CldVideoPlayer = props => {
53
53
  const videoRef = props.videoRef || defaultVideoRef;
54
54
  const defaultPlayerRef = React.useRef(null);
55
55
  const playerRef = props.playerRef || defaultPlayerRef;
56
+ // The <video> element the player was created on (video.js keeps using it inside the player)
57
+ const playerVideoElementRef = React.useRef(null);
56
58
  const playerId = id || `player-${uniqueId.replace(/:/g, '')}`;
57
59
  let playerClassName = 'cld-video-player cld-fluid';
58
60
  if (className) {
@@ -85,8 +87,14 @@ const CldVideoPlayer = props => {
85
87
  */
86
88
 
87
89
  const disposePlayer = () => {
88
- if (playerRef.current?.videojs?.cloudinary) {
89
- playerRef.current.videojs.cloudinary.dispose();
90
+ // React Strict Mode runs effect cleanups without removing the DOM, then reuses the same
91
+ // <video> element. Keep the player in that case; dispose() would remove the element.
92
+ if (playerVideoElementRef.current?.isConnected) return;
93
+
94
+ // dispose() on the player instance also removes it from the video.js registry,
95
+ // so a remount with the same id creates a new player instead of reusing a stale one
96
+ if (typeof playerRef.current?.dispose === 'function') {
97
+ playerRef.current.dispose();
90
98
  }
91
99
  // remove from global instances array
92
100
  playerInstances = playerInstances.filter(instanceId => instanceId !== playerId);
@@ -100,13 +108,11 @@ const CldVideoPlayer = props => {
100
108
  */
101
109
 
102
110
  const initializePlayer = () => {
103
- if (typeof window !== 'undefined' && 'cloudinary' in window && videoRef.current && !playerInitialized) {
111
+ // Check the ref, not the playerInitialized state: onLoad and onReady can both call this
112
+ // during the same render, and the state value seen there may be stale
113
+ if (typeof window !== 'undefined' && 'cloudinary' in window && videoRef.current && !playerRef.current) {
104
114
  cloudinaryRef.current = window.cloudinary;
105
-
106
- // dispose any existing player instance first to prevent conflicts
107
- if (playerRef.current) {
108
- disposePlayer();
109
- }
115
+ playerVideoElementRef.current = videoRef.current;
110
116
  playerRef.current = cloudinaryRef.current.videoPlayer(videoRef.current, playerOptions);
111
117
  setPlayerInitialized(true);
112
118
  Object.keys(events).forEach(key => {
@@ -177,7 +183,10 @@ const CldVideoPlayer = props => {
177
183
  }), /*#__PURE__*/jsxRuntime.jsx(Script__default["default"], {
178
184
  id: `cloudinary-videoplayer-${playerId}`,
179
185
  src: `https://unpkg.com/cloudinary-video-player@${PLAYER_VERSION}/dist/cld-video-player.min.js`,
180
- onLoad: handleOnLoad,
186
+ onLoad: handleOnLoad
187
+ // onReady also runs on later mounts with the same script id, where onLoad doesn't fire again
188
+ ,
189
+ onReady: handleOnLoad,
181
190
  onError: e => console.error(`Failed to load Cloudinary Video Player: ${e.message}`)
182
191
  })]
183
192
  })]
@@ -2,7 +2,7 @@ import nextPkg from 'next/package.json';
2
2
 
3
3
  var pkg = {
4
4
  name: "next-cloudinary",
5
- version: "7.0.0-beta.14",
5
+ version: "7.0.0-beta.16",
6
6
  license: "MIT",
7
7
  repository: {
8
8
  type: "git",
@@ -8,7 +8,7 @@ var nextPkg__default = /*#__PURE__*/_interopDefault(nextPkg);
8
8
 
9
9
  var pkg = {
10
10
  name: "next-cloudinary",
11
- version: "7.0.0-beta.14",
11
+ version: "7.0.0-beta.16",
12
12
  license: "MIT",
13
13
  repository: {
14
14
  type: "git",
@@ -1,5 +1,5 @@
1
1
  import { constructCloudinaryUrl } from '@cloudinary-util/url-loader';
2
- import { g as getCloudinaryConfig, a as getCloudinaryAnalytics } from './cloudinary-776f3cff.esm.js';
2
+ import { g as getCloudinaryConfig, a as getCloudinaryAnalytics } from './cloudinary-c386d13c.esm.js';
3
3
 
4
4
  /**
5
5
  * getCldImageUrl
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var urlLoader = require('@cloudinary-util/url-loader');
4
- var cloudinary = require('./cloudinary-a728fd61.cjs.js');
4
+ var cloudinary = require('./cloudinary-d005ce18.cjs.js');
5
5
 
6
6
  /**
7
7
  * getCldImageUrl
@@ -5,6 +5,6 @@ export interface CldUploadButtonProps extends Omit<CldUploadWidgetProps, 'childr
5
5
  children?: React.JSX.Element | string | Array<React.JSX.Element | string>;
6
6
  onClick?: Function;
7
7
  }
8
- 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) => React.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;
9
9
  export default CldUploadButton;
10
10
  //# sourceMappingURL=CldUploadButton.d.ts.map
@@ -1 +1 @@
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,whBAqClB,oBAAoB,sBAyDtB,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,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { CldUploadWidgetProps } from "./CldUploadWidget.types.js";
3
- declare const CldUploadWidget: ({ children, config, onError, onOpen, onUpload, options, signatureEndpoint, uploadPreset, ...props }: CldUploadWidgetProps) => React.JSX.Element;
3
+ declare const CldUploadWidget: ({ children, config, onError, onOpen, options, signatureEndpoint, uploadPreset, ...props }: CldUploadWidgetProps) => React.JSX.Element;
4
4
  export default CldUploadWidget;
5
5
  //# sourceMappingURL=CldUploadWidget.d.ts.map
@@ -1 +1 @@
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,wGAUlB,oBAAoB,sBA2NtB,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"}
@@ -8,10 +8,6 @@ export interface CldUploadWidgetProps {
8
8
  config?: ConfigOptions;
9
9
  onError?: CldUploadEventCallbackError;
10
10
  onOpen?: CldUploadEventCallbackWidgetOnly;
11
- /**
12
- * @deprecated use onSuccess instead
13
- */
14
- onUpload?: CldUploadEventCallbackNoOptions;
15
11
  onAbort?: CldUploadEventCallback;
16
12
  onBatchCancelled?: CldUploadEventCallback;
17
13
  onClose?: CldUploadEventCallback;
@@ -51,7 +47,6 @@ export type CldUploadWidgetPropsChildren = {
51
47
  } & CloudinaryUploadWidgetInstanceMethods;
52
48
  export type CldUploadEventCallback = (results: CloudinaryUploadWidgetResults, widget: CldUploadEventCallbackWidget) => void;
53
49
  export type CldUploadEventAction = (results: CloudinaryUploadWidgetResults) => void;
54
- export type CldUploadEventCallbackNoOptions = (results: CloudinaryUploadWidgetResults, widget: CldUploadWidgetWidgetInstance) => void;
55
50
  export type CldUploadEventCallbackWidgetOnly = (widget: CldUploadWidgetWidgetInstance) => void;
56
51
  export type CldUploadEventCallbackError = (error: CloudinaryUploadWidgetError, widget: CldUploadEventCallbackWidget) => void;
57
52
  export type CldUploadEventCallbackWidget = {
@@ -1 +1 @@
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;;OAEG;IACH,QAAQ,CAAC,EAAE,+BAA+B,CAAC;IAC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Ae,CAAC,EAAE,oBAAoB,CAAC;IACvC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,mBAAmB,CAAC,EAAE,oBAAoB,CAAC;CAC5C;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,iCAAiC,CAAC;IAC9C,MAAM,EAAE,6BAA6B,CAAC;IACtC,KAAK,CAAC,EAAE,2BAA2B,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,6BAA6B,CAAC;CACzC,GAAG,qCAAqC,CAAC;AAE1C,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,6BAA6B,EAAE,MAAM,EAAE,4BAA4B,KAAK,IAAI,CAAC;AAC5H,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,6BAA6B,KAAK,IAAI,CAAC;AACpF,MAAM,MAAM,gCAAgC,GAAG,CAAC,MAAM,EAAE,6BAA6B,KAAK,IAAI,CAAC;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 +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,gCA4KjD,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"}
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var CldImage = require('./CldImage-87fc8c2b.cjs.js');
5
+ var CldImage = require('./CldImage-e914c0b9.cjs.js');
6
6
  var Head = require('next/head');
7
- var cloudinaryLoader = require('./cloudinary-loader-36e9f19c.cjs.js');
7
+ var cloudinaryLoader = require('./cloudinary-loader-f30046dc.cjs.js');
8
8
  var jsxRuntime = require('react/jsx-runtime');
9
- var CldUploadButton = require('./CldUploadButton-db9b095b.cjs.js');
10
- var CldUploadWidget = require('./CldUploadWidget-70023ac5.cjs.js');
11
- var CldVideoPlayer = require('./CldVideoPlayer-49777e76.cjs.js');
9
+ var CldUploadButton = require('./CldUploadButton-7867eb66.cjs.js');
10
+ var CldUploadWidget = require('./CldUploadWidget-720d0016.cjs.js');
11
+ var CldVideoPlayer = require('./CldVideoPlayer-d596af93.cjs.js');
12
12
  var urlLoader = require('@cloudinary-util/url-loader');
13
- var cloudinary = require('./cloudinary-a728fd61.cjs.js');
13
+ var cloudinary = require('./cloudinary-d005ce18.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-5ad429b8.esm.js';
1
+ export { default as CldImage } from './CldImage-b3585cd6.esm.js';
2
2
  import Head from 'next/head';
3
- import { g as getCldImageUrl } from './cloudinary-loader-0c7e0649.esm.js';
4
- export { c as cloudinaryLoader, g as getCldImageUrl } from './cloudinary-loader-0c7e0649.esm.js';
3
+ import { g as getCldImageUrl } from './cloudinary-loader-e85ee874.esm.js';
4
+ export { c as cloudinaryLoader, g as getCldImageUrl } from './cloudinary-loader-e85ee874.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-f3facc95.esm.js';
8
- export { default as CldVideoPlayer } from './CldVideoPlayer-4aeffc1d.esm.js';
6
+ export { default as CldUploadButton } from './CldUploadButton-8cb106b1.esm.js';
7
+ export { default as CldUploadWidget } from './CldUploadWidget-b4cb1b8a.esm.js';
8
+ export { default as CldVideoPlayer } from './CldVideoPlayer-457d5422.esm.js';
9
9
  import { constructCloudinaryUrl } from '@cloudinary-util/url-loader';
10
- import { g as getCloudinaryConfig, a as getCloudinaryAnalytics } from './cloudinary-776f3cff.esm.js';
10
+ import { g as getCloudinaryConfig, a as getCloudinaryAnalytics } from './cloudinary-c386d13c.esm.js';
11
11
  import 'next/package.json';
12
12
 
13
13
  const OG_IMAGE_WIDTH = 1200;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-cloudinary",
3
- "version": "7.0.0-beta.14",
3
+ "version": "7.0.0-beta.16",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",