@iframe-resizer/react 5.4.5-beta.2 → 5.4.5-beta.4
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/index.cjs.js +7 -3
- package/index.esm.js +7 -3
- package/package.json +2 -2
package/README.md
CHANGED
package/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @preserve
|
|
3
3
|
*
|
|
4
|
-
* @module iframe-resizer/react 5.4.5-beta.
|
|
4
|
+
* @module iframe-resizer/react 5.4.5-beta.4 (cjs) - 2025-04-10
|
|
5
5
|
*
|
|
6
6
|
* @license GPL-3.0 for non-commercial use only.
|
|
7
7
|
* For commercial use, you must purchase a license from
|
|
@@ -70,11 +70,15 @@ function IframeResizer(props) {
|
|
|
70
70
|
// deal with changes to the element and does not need recalling
|
|
71
71
|
React.useEffect(() => {
|
|
72
72
|
const iframe = iframeRef.current;
|
|
73
|
-
const
|
|
73
|
+
const resizerOptions = {
|
|
74
74
|
...rest,
|
|
75
75
|
onClose
|
|
76
|
-
}
|
|
76
|
+
};
|
|
77
|
+
const resizer = connectResizer(resizerOptions)(iframe);
|
|
78
|
+
consoleGroup.expand(resizerOptions.logExpand);
|
|
77
79
|
consoleGroup.label(`react(${iframe.id})`);
|
|
80
|
+
consoleGroup.event('setup');
|
|
81
|
+
if (rest.log) consoleGroup.log('Created React competent');
|
|
78
82
|
return () => resizer?.disconnect();
|
|
79
83
|
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
80
84
|
|
package/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @preserve
|
|
3
3
|
*
|
|
4
|
-
* @module iframe-resizer/react 5.4.5-beta.
|
|
4
|
+
* @module iframe-resizer/react 5.4.5-beta.4 (esm) - 2025-04-10
|
|
5
5
|
*
|
|
6
6
|
* @license GPL-3.0 for non-commercial use only.
|
|
7
7
|
* For commercial use, you must purchase a license from
|
|
@@ -68,11 +68,15 @@ function IframeResizer(props) {
|
|
|
68
68
|
// deal with changes to the element and does not need recalling
|
|
69
69
|
useEffect(() => {
|
|
70
70
|
const iframe = iframeRef.current;
|
|
71
|
-
const
|
|
71
|
+
const resizerOptions = {
|
|
72
72
|
...rest,
|
|
73
73
|
onClose
|
|
74
|
-
}
|
|
74
|
+
};
|
|
75
|
+
const resizer = connectResizer(resizerOptions)(iframe);
|
|
76
|
+
consoleGroup.expand(resizerOptions.logExpand);
|
|
75
77
|
consoleGroup.label(`react(${iframe.id})`);
|
|
78
|
+
consoleGroup.event('setup');
|
|
79
|
+
if (rest.log) consoleGroup.log('Created React competent');
|
|
76
80
|
return () => resizer?.disconnect();
|
|
77
81
|
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
|
78
82
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iframe-resizer/react",
|
|
3
|
-
"version": "5.4.5-beta.
|
|
3
|
+
"version": "5.4.5-beta.4",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"homepage": "https://iframe-resizer.com",
|
|
6
6
|
"author": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@babel/runtime": "^7.27.0",
|
|
47
|
-
"@iframe-resizer/core": "5.4.5-beta.
|
|
47
|
+
"@iframe-resizer/core": "5.4.5-beta.4",
|
|
48
48
|
"auto-console-group": "1.2.5"
|
|
49
49
|
}
|
|
50
50
|
}
|