@iframe-resizer/react 5.3.0-beta.1 → 5.3.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.
package/README.md CHANGED
@@ -22,4 +22,4 @@ yarn add @iframe-resizer/react
22
22
 
23
23
  ---
24
24
 
25
- _iframe-resizer version 5.3.0-beta.1 2024-09-01 - 14:00:49.991Z_
25
+ _iframe-resizer version 5.3.0 2024-09-04 - 09:17:20.011Z_
package/index.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @preserve
3
3
  *
4
- * @module iframe-resizer/react 5.3.0-beta.1 (cjs) - 2024-09-01
4
+ * @module iframe-resizer/react 5.3.0 (cjs) - 2024-09-04
5
5
  *
6
6
  * @license GPL-3.0 for non-commercial use only.
7
7
  * For commercial use, you must purchase a license from
@@ -59,10 +59,9 @@ function IframeResizer(props) {
59
59
  const filteredProps = filterIframeAttribs(rest);
60
60
  const iframeRef = React.useRef(null);
61
61
  const onClose = () => {
62
- if (!iframeRef.current)
63
- // eslint-disable-next-line no-console
64
- console.warn(`[iframe-resizer/react][${iframeRef?.current?.id}] Close event ignored, to remove the iframe update your React component.`);
65
- return !iframeRef.current; // Allow React to close this
62
+ // eslint-disable-next-line no-console
63
+ console.warn(`[iframe-resizer/react][${iframeRef?.current?.id}] Close event ignored, to remove the iframe update your React component.`);
64
+ return false;
66
65
  };
67
66
 
68
67
  // This hook is only run once, as once iframe-resizer is bound, it will
package/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @preserve
3
3
  *
4
- * @module iframe-resizer/react 5.3.0-beta.1 (esm) - 2024-09-01
4
+ * @module iframe-resizer/react 5.3.0 (esm) - 2024-09-04
5
5
  *
6
6
  * @license GPL-3.0 for non-commercial use only.
7
7
  * For commercial use, you must purchase a license from
@@ -57,10 +57,9 @@ function IframeResizer(props) {
57
57
  const filteredProps = filterIframeAttribs(rest);
58
58
  const iframeRef = useRef(null);
59
59
  const onClose = () => {
60
- if (!iframeRef.current)
61
- // eslint-disable-next-line no-console
62
- console.warn(`[iframe-resizer/react][${iframeRef?.current?.id}] Close event ignored, to remove the iframe update your React component.`);
63
- return !iframeRef.current; // Allow React to close this
60
+ // eslint-disable-next-line no-console
61
+ console.warn(`[iframe-resizer/react][${iframeRef?.current?.id}] Close event ignored, to remove the iframe update your React component.`);
62
+ return false;
64
63
  };
65
64
 
66
65
  // This hook is only run once, as once iframe-resizer is bound, it will
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iframe-resizer/react",
3
- "version": "5.3.0-beta.1",
3
+ "version": "5.3.0",
4
4
  "license": "GPL-3.0",
5
5
  "homepage": "https://iframe-resizer.com",
6
6
  "author": {
@@ -44,6 +44,6 @@
44
44
  ],
45
45
  "dependencies": {
46
46
  "@babel/runtime": "^7.25.6",
47
- "@iframe-resizer/core": "5.3.0-beta.1"
47
+ "@iframe-resizer/core": "5.3.0"
48
48
  }
49
49
  }