@iframe-resizer/react 5.4.5-beta.9 → 5.4.6-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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  Iframe Resizer Version 5
2
2
 
3
- This JavaScript library is Copyright © 2013-2024 David J. Bradshaw and is distributed under the GPL V3 for non-commercial use. A commercial license is available upon request.
3
+ This JavaScript library is Copyright © 2013-2025 David J. Bradshaw and is distributed under the GPL V3 for non-commercial use. A commercial license is available upon request.
4
4
 
5
5
  For more information on commercial licensing see https://iframe-resizer.com/pricing/
6
6
 
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.9 2025-04-14 - 14:37:03.861Z_
25
+ _iframe-resizer version 5.4.6-beta.1 2025-04-23 - 10:48:04.032Z_
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.9 (cjs) - 2025-04-14
4
+ * @module iframe-resizer/react 5.4.6-beta.1 (cjs) - 2025-04-23
5
5
  *
6
6
  * @license GPL-3.0 for non-commercial use only.
7
7
  * For commercial use, you must purchase a license from
@@ -21,7 +21,7 @@
21
21
 
22
22
  const _extends = require('@babel/runtime/helpers/extends');
23
23
  const connectResizer = require('@iframe-resizer/core');
24
- const createAutoConsoleGroup = require('auto-console-group');
24
+ const acg = require('auto-console-group');
25
25
  const React = require('react');
26
26
 
27
27
  const filterIframeAttribs = props => {
@@ -50,6 +50,13 @@ const filterIframeAttribs = props => {
50
50
  return iframeProps;
51
51
  };
52
52
 
53
+ const esModuleInterop = mod =>
54
+ // eslint-disable-next-line no-underscore-dangle
55
+ mod?.__esModule ? mod.default : mod;
56
+
57
+ // Deal with UMD not converting default exports to named exports
58
+ const createAutoConsoleGroup = esModuleInterop(acg);
59
+
53
60
  // TODO: Add support for React.forwardRef() in next major version (Breaking change)
54
61
  function IframeResizer(props) {
55
62
  // eslint-disable-next-line react/prop-types
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.9 (esm) - 2025-04-14
4
+ * @module iframe-resizer/react 5.4.6-beta.1 (esm) - 2025-04-23
5
5
  *
6
6
  * @license GPL-3.0 for non-commercial use only.
7
7
  * For commercial use, you must purchase a license from
@@ -19,7 +19,7 @@
19
19
 
20
20
  import _extends from '@babel/runtime/helpers/extends';
21
21
  import connectResizer from '@iframe-resizer/core';
22
- import createAutoConsoleGroup from 'auto-console-group';
22
+ import acg from 'auto-console-group';
23
23
  import React, { useRef, useEffect, useImperativeHandle } from 'react';
24
24
 
25
25
  const filterIframeAttribs = props => {
@@ -48,6 +48,13 @@ const filterIframeAttribs = props => {
48
48
  return iframeProps;
49
49
  };
50
50
 
51
+ const esModuleInterop = mod =>
52
+ // eslint-disable-next-line no-underscore-dangle
53
+ mod?.__esModule ? mod.default : mod;
54
+
55
+ // Deal with UMD not converting default exports to named exports
56
+ const createAutoConsoleGroup = esModuleInterop(acg);
57
+
51
58
  // TODO: Add support for React.forwardRef() in next major version (Breaking change)
52
59
  function IframeResizer(props) {
53
60
  // eslint-disable-next-line react/prop-types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iframe-resizer/react",
3
- "version": "5.4.5-beta.9",
3
+ "version": "5.4.6-beta.1",
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.9",
48
- "auto-console-group": "1.2.8"
47
+ "@iframe-resizer/core": "5.4.6-beta.1",
48
+ "auto-console-group": "1.2.9"
49
49
  }
50
50
  }