@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 CHANGED
@@ -22,4 +22,4 @@ yarn add @iframe-resizer/react
22
22
 
23
23
  ---
24
24
 
25
- _iframe-resizer version 5.4.5-beta.2 2025-04-08 - 12:05:42.359Z_
25
+ _iframe-resizer version 5.4.5-beta.4 2025-04-10 - 11:13:06.588Z_
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.2 (cjs) - 2025-04-08
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 resizer = connectResizer({
73
+ const resizerOptions = {
74
74
  ...rest,
75
75
  onClose
76
- })(iframe);
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.2 (esm) - 2025-04-08
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 resizer = connectResizer({
71
+ const resizerOptions = {
72
72
  ...rest,
73
73
  onClose
74
- })(iframe);
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.2",
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.2",
47
+ "@iframe-resizer/core": "5.4.5-beta.4",
48
48
  "auto-console-group": "1.2.5"
49
49
  }
50
50
  }