@iframe-resizer/react 5.4.7 → 5.5.0-beta.2
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 +1 -1
- package/iframe-resizer.react.d.ts +2 -1
- package/index.cjs.js +5 -5
- package/index.esm.js +5 -5
- package/package.json +5 -10
package/README.md
CHANGED
|
@@ -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
|
+
* @module iframe-resizer/react 5.5.0-beta.2 (cjs) - 2025-07-22
|
|
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
|
-
|
|
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
|
|
71
|
-
consoleGroup.event('
|
|
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
|
-
|
|
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
|
+
* @module iframe-resizer/react 5.5.0-beta.2 (esm) - 2025-07-22
|
|
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
|
-
|
|
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
|
|
69
|
-
consoleGroup.event('
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "5.5.0-beta.2",
|
|
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
|
-
"
|
|
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.
|
|
48
|
-
"auto-console-group": "1.2.
|
|
42
|
+
"@iframe-resizer/core": "5.5.0-beta.2",
|
|
43
|
+
"auto-console-group": "1.2.10"
|
|
49
44
|
}
|
|
50
45
|
}
|