@iframe-resizer/react 5.4.5-beta.4 → 5.4.5-beta.5

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.4 2025-04-10 - 11:13:06.588Z_
25
+ _iframe-resizer version 5.4.5-beta.5 2025-04-10 - 13:03:40.935Z_
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 (cjs) - 2025-04-10
4
+ * @module iframe-resizer/react 5.4.5-beta.5 (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
@@ -74,12 +74,16 @@ function IframeResizer(props) {
74
74
  ...rest,
75
75
  onClose
76
76
  };
77
- const resizer = connectResizer(resizerOptions)(iframe);
78
- consoleGroup.expand(resizerOptions.logExpand);
77
+ consoleGroup.touch();
79
78
  consoleGroup.label(`react(${iframe.id})`);
80
79
  consoleGroup.event('setup');
80
+ const resizer = connectResizer(resizerOptions)(iframe);
81
+ consoleGroup.expand(resizerOptions.logExpand);
81
82
  if (rest.log) consoleGroup.log('Created React competent');
82
- return () => resizer?.disconnect();
83
+ return () => {
84
+ consoleGroup.endAutoGroup();
85
+ resizer?.disconnect();
86
+ };
83
87
  }, []); // eslint-disable-line react-hooks/exhaustive-deps
84
88
 
85
89
  React.useImperativeHandle(forwardRef, () => ({
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 (esm) - 2025-04-10
4
+ * @module iframe-resizer/react 5.4.5-beta.5 (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
@@ -72,12 +72,16 @@ function IframeResizer(props) {
72
72
  ...rest,
73
73
  onClose
74
74
  };
75
- const resizer = connectResizer(resizerOptions)(iframe);
76
- consoleGroup.expand(resizerOptions.logExpand);
75
+ consoleGroup.touch();
77
76
  consoleGroup.label(`react(${iframe.id})`);
78
77
  consoleGroup.event('setup');
78
+ const resizer = connectResizer(resizerOptions)(iframe);
79
+ consoleGroup.expand(resizerOptions.logExpand);
79
80
  if (rest.log) consoleGroup.log('Created React competent');
80
- return () => resizer?.disconnect();
81
+ return () => {
82
+ consoleGroup.endAutoGroup();
83
+ resizer?.disconnect();
84
+ };
81
85
  }, []); // eslint-disable-line react-hooks/exhaustive-deps
82
86
 
83
87
  useImperativeHandle(forwardRef, () => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iframe-resizer/react",
3
- "version": "5.4.5-beta.4",
3
+ "version": "5.4.5-beta.5",
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.4",
48
- "auto-console-group": "1.2.5"
47
+ "@iframe-resizer/core": "5.4.5-beta.5",
48
+ "auto-console-group": "1.2.6"
49
49
  }
50
50
  }