@iframe-resizer/react 5.4.7-beta.4 → 5.5.0-beta.1

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.4.7-beta.4 2025-06-30 - 16:51:23.328Z_
25
+ _iframe-resizer version 5.5.0-beta.1 2025-07-16 - 13:41:23.405Z_
@@ -45,7 +45,8 @@ declare module '@iframe-resizer/react' {
45
45
  }
46
46
 
47
47
  type ResizerEvents = {
48
- onCLosed?: (iframeId: string) => void
48
+ onCLosed?: (iframeId: string) => void // Remove in v6
49
+ onAfterClose?: (iframeId: string) => void
49
50
  onMessage?: (ev: { iframe: IFrameComponent; message: any }) => void
50
51
  onMouseEnter?: (ev: {
51
52
  iframe: IFrameComponent
package/index.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @preserve
3
3
  *
4
- * @module iframe-resizer/react 5.4.7-beta.4 (cjs) - 2025-06-30
4
+ * @module iframe-resizer/react 5.5.0-beta.1 (cjs) - 2025-07-16
5
5
  *
6
6
  * @license GPL-3.0 for non-commercial use only.
7
7
  * For commercial use, you must purchase a license from
@@ -41,7 +41,7 @@ const filterIframeAttribs = props => {
41
41
  tolerance,
42
42
  warningTimeout,
43
43
  waitForLoad,
44
- onClosed,
44
+ onAfterClose,
45
45
  onReady,
46
46
  onMessage,
47
47
  onResized,
@@ -67,8 +67,8 @@ function IframeResizer(props) {
67
67
  const filteredProps = filterIframeAttribs(rest);
68
68
  const iframeRef = React.useRef(null);
69
69
  const consoleGroup = createAutoConsoleGroup();
70
- const onClose = () => {
71
- consoleGroup.event('onClose');
70
+ const onBeforeClose = () => {
71
+ consoleGroup.event('Blocked Close Event');
72
72
  consoleGroup.warn(`Close event ignored, to remove the iframe update your React component.`);
73
73
  return false;
74
74
  };
@@ -79,7 +79,7 @@ function IframeResizer(props) {
79
79
  const iframe = iframeRef.current;
80
80
  const resizerOptions = {
81
81
  ...rest,
82
- onClose
82
+ onBeforeClose
83
83
  };
84
84
  consoleGroup.label(`react(${iframe.id})`);
85
85
  consoleGroup.event('setup');
package/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @preserve
3
3
  *
4
- * @module iframe-resizer/react 5.4.7-beta.4 (esm) - 2025-06-30
4
+ * @module iframe-resizer/react 5.5.0-beta.1 (esm) - 2025-07-16
5
5
  *
6
6
  * @license GPL-3.0 for non-commercial use only.
7
7
  * For commercial use, you must purchase a license from
@@ -39,7 +39,7 @@ const filterIframeAttribs = props => {
39
39
  tolerance,
40
40
  warningTimeout,
41
41
  waitForLoad,
42
- onClosed,
42
+ onAfterClose,
43
43
  onReady,
44
44
  onMessage,
45
45
  onResized,
@@ -65,8 +65,8 @@ function IframeResizer(props) {
65
65
  const filteredProps = filterIframeAttribs(rest);
66
66
  const iframeRef = useRef(null);
67
67
  const consoleGroup = createAutoConsoleGroup();
68
- const onClose = () => {
69
- consoleGroup.event('onClose');
68
+ const onBeforeClose = () => {
69
+ consoleGroup.event('Blocked Close Event');
70
70
  consoleGroup.warn(`Close event ignored, to remove the iframe update your React component.`);
71
71
  return false;
72
72
  };
@@ -77,7 +77,7 @@ function IframeResizer(props) {
77
77
  const iframe = iframeRef.current;
78
78
  const resizerOptions = {
79
79
  ...rest,
80
- onClose
80
+ onBeforeClose
81
81
  };
82
82
  consoleGroup.label(`react(${iframe.id})`);
83
83
  consoleGroup.event('setup');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iframe-resizer/react",
3
- "version": "5.4.7-beta.4",
3
+ "version": "5.5.0-beta.1",
4
4
  "license": "GPL-3.0",
5
5
  "homepage": "https://iframe-resizer.com",
6
6
  "author": {
@@ -29,22 +29,17 @@
29
29
  "Resizing",
30
30
  "Resizer",
31
31
  "resize",
32
- "cross",
33
- "same",
34
- "domain",
32
+ "cross-origin",
33
+ "cross-domain",
35
34
  "width",
36
35
  "height",
37
- "postMessage",
38
- "mutationObserver",
39
- "resizeObserver",
40
36
  "RWD",
41
- "CrossDomain",
42
37
  "responsive",
43
38
  "react"
44
39
  ],
45
40
  "dependencies": {
46
41
  "@babel/runtime": "^7.27.6",
47
- "@iframe-resizer/core": "5.4.7-beta.4",
42
+ "@iframe-resizer/core": "5.5.0-beta.1",
48
43
  "auto-console-group": "1.2.9"
49
44
  }
50
45
  }