@iframe-resizer/react
Advanced tools
+1
-1
| /*! | ||
| * @preserve | ||
| * | ||
| * @module iframe-resizer/react 6.0.0-beta.9 (esm) - 2026-04-13 | ||
| * @module iframe-resizer/react 6.0.0-beta.10 (esm) - 2026-04-16 | ||
| * | ||
@@ -6,0 +6,0 @@ * @license GPL-3.0 For use with GPL compliant sites (fully published front & backend source code) |
+1
-1
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.cjs.js","sources":["../../packages/react/index.tsx","../../packages/react/filter-iframe-attribs.ts"],"sourcesContent":["// eslint-disable-next-line eslint-comments/disable-enable-pair\n/* eslint-disable react/require-default-props */\nimport { esModuleInterop } from '@iframe-resizer/common'\nimport type {\n IframeComponent,\n IframeObject,\n IframeOptions,\n} from '@iframe-resizer/core'\nimport connectResizer from '@iframe-resizer/core'\nimport acg from 'auto-console-group'\nimport React, {\n forwardRef,\n type ReactElement,\n type RefObject,\n useEffect,\n useImperativeHandle,\n useRef,\n} from 'react'\n\nimport filterIframeAttribs from './filter-iframe-attribs'\n\nexport type IframeForwardRef = Omit<IframeObject, 'close' | 'disconnect'> & {\n getElement: () => IframeComponent\n getRef: () => RefObject<HTMLIFrameElement | null>\n}\n\ntype IframeProps = React.DetailedHTMLProps<\n React.IframeHTMLAttributes<HTMLIFrameElement>,\n HTMLIFrameElement\n>\n\nexport type IframeResizerProps = Omit<IframeProps, 'scrolling'> &\n Omit<IframeOptions, 'id' | 'onBeforeClose'>\n\n// Deal with UMD not converting default exports to named exports\nconst createAutoConsoleGroup = esModuleInterop(acg)\n\nfunction IframeResizer(\n props: IframeResizerProps,\n ref: React.ForwardedRef<IframeForwardRef>,\n): ReactElement {\n const { log, logExpand } = props\n const filteredProps = filterIframeAttribs(props)\n const iframeRef = useRef<IframeComponent>(null)\n const consoleGroup = createAutoConsoleGroup()\n\n const onBeforeClose = (): boolean => {\n consoleGroup.event('close')\n consoleGroup.warn(\n `Close event ignored, to remove the iframe update your React component.`,\n )\n\n return false\n }\n\n // This hook is only run once, as once iframe-resizer is bound, it will\n // deal with changes to the element and does not need recalling\n useEffect(() => {\n const iframe = iframeRef.current\n const resizerOptions = { ...props, onBeforeClose }\n\n consoleGroup.label(`react(${iframe.id})`)\n consoleGroup.event('setup')\n\n const resizer = connectResizer(resizerOptions)(iframe)\n\n consoleGroup.expand(logExpand)\n if (log) consoleGroup.log('Created React component')\n\n return () => {\n consoleGroup.endAutoGroup()\n resizer?.disconnect()\n }\n }, []) // eslint-disable-line react-hooks/exhaustive-deps\n\n useImperativeHandle(ref, () => ({\n getRef: () => iframeRef,\n getElement: () => iframeRef.current,\n moveToAnchor: (anchor: string) =>\n iframeRef.current.iframeResizer.moveToAnchor(anchor),\n sendMessage: (message: any, targetOrigin?: string) => {\n iframeRef.current.iframeResizer.sendMessage(message, targetOrigin)\n },\n }))\n\n // eslint-disable-next-line jsx-a11y/iframe-has-title\n return <iframe {...filteredProps} ref={iframeRef} />\n}\n\nexport default forwardRef<IframeForwardRef, IframeResizerProps>(IframeResizer)\n\nexport {\n type IframeComponent,\n type IframeMessageData,\n type IframeMouseData,\n type IframeObject,\n type IframeOptions,\n type IframeResizedData,\n type IframeScrollData,\n} from '@iframe-resizer/core'\n","export default ({\n license,\n bodyBackground,\n bodyMargin,\n bodyPadding,\n checkOrigin,\n direction,\n inPageLinks,\n log,\n logExpand,\n offsetSize,\n scrolling,\n tolerance,\n waitForLoad,\n warningTimeout,\n onAfterClose,\n onMessage,\n onMouseEnter,\n onMouseLeave,\n onReady,\n onResized,\n onScroll,\n ...iframeProps\n}: Record<string, unknown>): Record<string, unknown> => iframeProps\n"],"names":["createAutoConsoleGroup","esModuleInterop","acg","index","forwardRef","props","ref","log","logExpand","filteredProps","license","bodyBackground","bodyMargin","bodyPadding","checkOrigin","direction","inPageLinks","offsetSize","scrolling","tolerance","waitForLoad","warningTimeout","onAfterClose","onMessage","onMouseEnter","onMouseLeave","onReady","onResized","onScroll","iframeProps","filterIframeAttribs","iframeRef","useRef","consoleGroup","onBeforeClose","event","warn","useEffect","iframe","current","resizerOptions","label","id","resizer","connectResizer","expand","endAutoGroup","disconnect","useImperativeHandle","getRef","getElement","moveToAnchor","anchor","iframeResizer","sendMessage","message","targetOrigin","React","createElement"],"mappings":";;;;;;;;;;;;;;;;;;;4IAmCMA,EAAyBC,EAAAA,gBAAgBC,GAsD/C,MAAAC,EAAeC,EAAAA,WApDf,SACEC,EACAC,GAEA,MAAMC,IAAEA,EAAAC,UAAKA,GAAcH,EACrBI,EC1CO,GACbC,UACAC,iBACAC,aACAC,cACAC,cACAC,YACAC,cACAT,MACAC,YACAS,aACAC,YACAC,YACAC,cACAC,iBACAC,eACAC,YACAC,eACAC,eACAC,UACAC,YACAC,cACGC,KACmDA,EDmBhCC,CAAoBzB,GACpC0B,EAAYC,EAAAA,OAAwB,MACpCC,EAAejC,IAEfkC,EAAgB,KACpBD,EAAaE,MAAM,SACnBF,EAAaG,KACX,2EAGK,GAkCT,OA7BAC,EAAAA,UAAU,KACR,MAAMC,EAASP,EAAUQ,QACnBC,EAAiB,IAAKnC,EAAO6B,iBAEnCD,EAAaQ,MAAM,SAASH,EAAOI,OACnCT,EAAaE,MAAM,SAEnB,MAAMQ,EAAUC,EAAeJ,EAAfI,CAA+BN,GAK/C,OAHAL,EAAaY,OAAOrC,GAChBD,GAAK0B,EAAa1B,IAAI,2BAEnB,KACL0B,EAAaa,eACbH,GAASI,eAEV,IAEHC,EAAAA,oBAAoB1C,EAAK,KAAA,CACvB2C,OAAQ,IAAMlB,EACdmB,WAAY,IAAMnB,EAAUQ,QAC5BY,aAAeC,GACbrB,EAAUQ,QAAQc,cAAcF,aAAaC,GAC/CE,YAAa,CAACC,EAAcC,KAC1BzB,EAAUQ,QAAQc,cAAcC,YAAYC,EAASC,OAKlDC,EAAAC,cAAC,SAAA,IAAWjD,EAAeH,IAAKyB,GACzC"} | ||
| {"version":3,"file":"index.cjs.js","sources":["../../packages/react/index.tsx","../../packages/react/filter-iframe-attribs.ts"],"sourcesContent":["// eslint-disable-next-line eslint-comments/disable-enable-pair\n/* eslint-disable react/require-default-props */\nimport { esModuleInterop } from '@iframe-resizer/common'\nimport type {\n IframeComponent,\n IframeObject,\n IframeOptions,\n} from '@iframe-resizer/core'\nimport connectResizer from '@iframe-resizer/core'\nimport acg from 'auto-console-group'\nimport React, {\n forwardRef,\n type ReactElement,\n type RefObject,\n useEffect,\n useImperativeHandle,\n useRef,\n} from 'react'\n\nimport filterIframeAttribs from './filter-iframe-attribs'\n\nexport type IframeForwardRef = Omit<IframeObject, 'close' | 'disconnect'> & {\n getElement: () => IframeComponent\n getRef: () => RefObject<HTMLIFrameElement | null>\n}\n\ntype IframeProps = React.DetailedHTMLProps<\n React.IframeHTMLAttributes<HTMLIFrameElement>,\n HTMLIFrameElement\n>\n\nexport type IframeResizerProps = Omit<IframeProps, 'scrolling'> &\n Omit<IframeOptions, 'id' | 'onBeforeClose'>\n\n// Deal with UMD not converting default exports to named exports\nconst createAutoConsoleGroup = esModuleInterop(acg)\n\nfunction IframeResizer(\n props: IframeResizerProps,\n ref: React.ForwardedRef<IframeForwardRef>,\n): ReactElement {\n const { log, logExpand } = props\n const filteredProps = filterIframeAttribs(props)\n const iframeRef = useRef<IframeComponent>(null)\n const consoleGroup = createAutoConsoleGroup()\n\n const onBeforeClose = (): boolean => {\n consoleGroup.event('close')\n consoleGroup.warn(\n `Close event ignored, to remove the iframe update your React component.`,\n )\n\n return false\n }\n\n // This hook is only run once, as once iframe-resizer is bound, it will\n // deal with changes to the element and does not need recalling\n useEffect(() => {\n const iframe = iframeRef.current\n const resizerOptions = { ...props, onBeforeClose }\n\n consoleGroup.label(`react(${iframe.id})`)\n consoleGroup.event('setup')\n\n const resizer = connectResizer(resizerOptions)(iframe)\n\n consoleGroup.expand(logExpand)\n if (log) consoleGroup.log('Created React component')\n\n return () => {\n consoleGroup.endAutoGroup()\n resizer?.disconnect()\n }\n }, []) // eslint-disable-line react-hooks/exhaustive-deps\n\n useImperativeHandle(ref, () => ({\n getRef: () => iframeRef,\n getElement: () => iframeRef.current,\n moveToAnchor: (anchor: string) =>\n iframeRef.current.iframeResizer.moveToAnchor(anchor),\n sendMessage: (message: any, targetOrigin?: string) => {\n iframeRef.current.iframeResizer.sendMessage(message, targetOrigin)\n },\n }))\n\n // eslint-disable-next-line jsx-a11y/iframe-has-title\n return <iframe {...filteredProps} ref={iframeRef} />\n}\n\nexport default forwardRef<IframeForwardRef, IframeResizerProps>(IframeResizer)\n\nexport {\n type IframeComponent,\n type IframeDirection,\n type IframeLogOption,\n type IframeMessageData,\n type IframeMouseData,\n type IframeObject,\n type IframeOptions,\n type IframeResizedData,\n type IframeScrollData,\n type IframeScrollOption,\n} from '@iframe-resizer/core'\n","export default ({\n license,\n bodyBackground,\n bodyMargin,\n bodyPadding,\n checkOrigin,\n direction,\n inPageLinks,\n log,\n logExpand,\n offsetSize,\n scrolling,\n tolerance,\n waitForLoad,\n warningTimeout,\n onAfterClose,\n onMessage,\n onMouseEnter,\n onMouseLeave,\n onReady,\n onResized,\n onScroll,\n ...iframeProps\n}: Record<string, unknown>): Record<string, unknown> => iframeProps\n"],"names":["createAutoConsoleGroup","esModuleInterop","acg","index","forwardRef","props","ref","log","logExpand","filteredProps","license","bodyBackground","bodyMargin","bodyPadding","checkOrigin","direction","inPageLinks","offsetSize","scrolling","tolerance","waitForLoad","warningTimeout","onAfterClose","onMessage","onMouseEnter","onMouseLeave","onReady","onResized","onScroll","iframeProps","filterIframeAttribs","iframeRef","useRef","consoleGroup","onBeforeClose","event","warn","useEffect","iframe","current","resizerOptions","label","id","resizer","connectResizer","expand","endAutoGroup","disconnect","useImperativeHandle","getRef","getElement","moveToAnchor","anchor","iframeResizer","sendMessage","message","targetOrigin","React","createElement"],"mappings":";;;;;;;;;;;;;;;;;;;4IAmCMA,EAAyBC,EAAAA,gBAAgBC,GAsD/C,MAAAC,EAAeC,EAAAA,WApDf,SACEC,EACAC,GAEA,MAAMC,IAAEA,EAAAC,UAAKA,GAAcH,EACrBI,EC1CO,GACbC,UACAC,iBACAC,aACAC,cACAC,cACAC,YACAC,cACAT,MACAC,YACAS,aACAC,YACAC,YACAC,cACAC,iBACAC,eACAC,YACAC,eACAC,eACAC,UACAC,YACAC,cACGC,KACmDA,EDmBhCC,CAAoBzB,GACpC0B,EAAYC,EAAAA,OAAwB,MACpCC,EAAejC,IAEfkC,EAAgB,KACpBD,EAAaE,MAAM,SACnBF,EAAaG,KACX,2EAGK,GAkCT,OA7BAC,EAAAA,UAAU,KACR,MAAMC,EAASP,EAAUQ,QACnBC,EAAiB,IAAKnC,EAAO6B,iBAEnCD,EAAaQ,MAAM,SAASH,EAAOI,OACnCT,EAAaE,MAAM,SAEnB,MAAMQ,EAAUC,EAAeJ,EAAfI,CAA+BN,GAK/C,OAHAL,EAAaY,OAAOrC,GAChBD,GAAK0B,EAAa1B,IAAI,2BAEnB,KACL0B,EAAaa,eACbH,GAASI,eAEV,IAEHC,EAAAA,oBAAoB1C,EAAK,KAAA,CACvB2C,OAAQ,IAAMlB,EACdmB,WAAY,IAAMnB,EAAUQ,QAC5BY,aAAeC,GACbrB,EAAUQ,QAAQc,cAAcF,aAAaC,GAC/CE,YAAa,CAACC,EAAcC,KAC1BzB,EAAUQ,QAAQc,cAAcC,YAAYC,EAASC,OAKlDC,EAAAC,cAAC,SAAA,IAAWjD,EAAeH,IAAKyB,GACzC"} |
+1
-1
@@ -11,2 +11,2 @@ import { IframeComponent, IframeObject, IframeOptions } from '@iframe-resizer/core'; | ||
| export default _default; | ||
| export { type IframeComponent, type IframeMessageData, type IframeMouseData, type IframeObject, type IframeOptions, type IframeResizedData, type IframeScrollData, } from '@iframe-resizer/core'; | ||
| export { type IframeComponent, type IframeDirection, type IframeLogOption, type IframeMessageData, type IframeMouseData, type IframeObject, type IframeOptions, type IframeResizedData, type IframeScrollData, type IframeScrollOption, } from '@iframe-resizer/core'; |
+1
-1
| /*! | ||
| * @preserve | ||
| * | ||
| * @module iframe-resizer/react 6.0.0-beta.9 (esm) - 2026-04-13 | ||
| * @module iframe-resizer/react 6.0.0-beta.10 (esm) - 2026-04-16 | ||
| * | ||
@@ -6,0 +6,0 @@ * @license GPL-3.0 For use with GPL compliant sites (fully published front & backend source code) |
+1
-1
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.esm.js","sources":["../../packages/react/filter-iframe-attribs.ts","../../packages/react/index.tsx"],"sourcesContent":["export default ({\n license,\n bodyBackground,\n bodyMargin,\n bodyPadding,\n checkOrigin,\n direction,\n inPageLinks,\n log,\n logExpand,\n offsetSize,\n scrolling,\n tolerance,\n waitForLoad,\n warningTimeout,\n onAfterClose,\n onMessage,\n onMouseEnter,\n onMouseLeave,\n onReady,\n onResized,\n onScroll,\n ...iframeProps\n}: Record<string, unknown>): Record<string, unknown> => iframeProps\n","// eslint-disable-next-line eslint-comments/disable-enable-pair\n/* eslint-disable react/require-default-props */\nimport { esModuleInterop } from '@iframe-resizer/common'\nimport type {\n IframeComponent,\n IframeObject,\n IframeOptions,\n} from '@iframe-resizer/core'\nimport connectResizer from '@iframe-resizer/core'\nimport acg from 'auto-console-group'\nimport React, {\n forwardRef,\n type ReactElement,\n type RefObject,\n useEffect,\n useImperativeHandle,\n useRef,\n} from 'react'\n\nimport filterIframeAttribs from './filter-iframe-attribs'\n\nexport type IframeForwardRef = Omit<IframeObject, 'close' | 'disconnect'> & {\n getElement: () => IframeComponent\n getRef: () => RefObject<HTMLIFrameElement | null>\n}\n\ntype IframeProps = React.DetailedHTMLProps<\n React.IframeHTMLAttributes<HTMLIFrameElement>,\n HTMLIFrameElement\n>\n\nexport type IframeResizerProps = Omit<IframeProps, 'scrolling'> &\n Omit<IframeOptions, 'id' | 'onBeforeClose'>\n\n// Deal with UMD not converting default exports to named exports\nconst createAutoConsoleGroup = esModuleInterop(acg)\n\nfunction IframeResizer(\n props: IframeResizerProps,\n ref: React.ForwardedRef<IframeForwardRef>,\n): ReactElement {\n const { log, logExpand } = props\n const filteredProps = filterIframeAttribs(props)\n const iframeRef = useRef<IframeComponent>(null)\n const consoleGroup = createAutoConsoleGroup()\n\n const onBeforeClose = (): boolean => {\n consoleGroup.event('close')\n consoleGroup.warn(\n `Close event ignored, to remove the iframe update your React component.`,\n )\n\n return false\n }\n\n // This hook is only run once, as once iframe-resizer is bound, it will\n // deal with changes to the element and does not need recalling\n useEffect(() => {\n const iframe = iframeRef.current\n const resizerOptions = { ...props, onBeforeClose }\n\n consoleGroup.label(`react(${iframe.id})`)\n consoleGroup.event('setup')\n\n const resizer = connectResizer(resizerOptions)(iframe)\n\n consoleGroup.expand(logExpand)\n if (log) consoleGroup.log('Created React component')\n\n return () => {\n consoleGroup.endAutoGroup()\n resizer?.disconnect()\n }\n }, []) // eslint-disable-line react-hooks/exhaustive-deps\n\n useImperativeHandle(ref, () => ({\n getRef: () => iframeRef,\n getElement: () => iframeRef.current,\n moveToAnchor: (anchor: string) =>\n iframeRef.current.iframeResizer.moveToAnchor(anchor),\n sendMessage: (message: any, targetOrigin?: string) => {\n iframeRef.current.iframeResizer.sendMessage(message, targetOrigin)\n },\n }))\n\n // eslint-disable-next-line jsx-a11y/iframe-has-title\n return <iframe {...filteredProps} ref={iframeRef} />\n}\n\nexport default forwardRef<IframeForwardRef, IframeResizerProps>(IframeResizer)\n\nexport {\n type IframeComponent,\n type IframeMessageData,\n type IframeMouseData,\n type IframeObject,\n type IframeOptions,\n type IframeResizedData,\n type IframeScrollData,\n} from '@iframe-resizer/core'\n"],"names":["createAutoConsoleGroup","esModuleInterop","acg","index","forwardRef","props","ref","log","logExpand","filteredProps","license","bodyBackground","bodyMargin","bodyPadding","checkOrigin","direction","inPageLinks","offsetSize","scrolling","tolerance","waitForLoad","warningTimeout","onAfterClose","onMessage","onMouseEnter","onMouseLeave","onReady","onResized","onScroll","iframeProps","filterIframeAttribs","iframeRef","useRef","consoleGroup","onBeforeClose","event","warn","useEffect","iframe","current","resizerOptions","label","id","resizer","connectResizer","expand","endAutoGroup","disconnect","useImperativeHandle","getRef","getElement","moveToAnchor","anchor","iframeResizer","sendMessage","message","targetOrigin","React","createElement"],"mappings":";;;;;;;;;;;;;;;;;;;yNAAA,MCmCMA,EAAyBC,EAAgBC,GAsD/C,MAAAC,EAAeC,EApDf,SACEC,EACAC,GAEA,MAAMC,IAAEA,EAAAC,UAAKA,GAAcH,EACrBI,ED1CO,GACbC,UACAC,iBACAC,aACAC,cACAC,cACAC,YACAC,cACAT,MACAC,YACAS,aACAC,YACAC,YACAC,cACAC,iBACAC,eACAC,YACAC,eACAC,eACAC,UACAC,YACAC,cACGC,KACmDA,ECmBhCC,CAAoBzB,GACpC0B,EAAYC,EAAwB,MACpCC,EAAejC,IAEfkC,EAAgB,KACpBD,EAAaE,MAAM,SACnBF,EAAaG,KACX,2EAGK,GAkCT,OA7BAC,EAAU,KACR,MAAMC,EAASP,EAAUQ,QACnBC,EAAiB,IAAKnC,EAAO6B,iBAEnCD,EAAaQ,MAAM,SAASH,EAAOI,OACnCT,EAAaE,MAAM,SAEnB,MAAMQ,EAAUC,EAAeJ,EAAfI,CAA+BN,GAK/C,OAHAL,EAAaY,OAAOrC,GAChBD,GAAK0B,EAAa1B,IAAI,2BAEnB,KACL0B,EAAaa,eACbH,GAASI,eAEV,IAEHC,EAAoB1C,EAAK,KAAA,CACvB2C,OAAQ,IAAMlB,EACdmB,WAAY,IAAMnB,EAAUQ,QAC5BY,aAAeC,GACbrB,EAAUQ,QAAQc,cAAcF,aAAaC,GAC/CE,YAAa,CAACC,EAAcC,KAC1BzB,EAAUQ,QAAQc,cAAcC,YAAYC,EAASC,sBAKlDC,EAAAC,cAAC,SAAA,IAAWjD,EAAeH,IAAKyB,GACzC"} | ||
| {"version":3,"file":"index.esm.js","sources":["../../packages/react/filter-iframe-attribs.ts","../../packages/react/index.tsx"],"sourcesContent":["export default ({\n license,\n bodyBackground,\n bodyMargin,\n bodyPadding,\n checkOrigin,\n direction,\n inPageLinks,\n log,\n logExpand,\n offsetSize,\n scrolling,\n tolerance,\n waitForLoad,\n warningTimeout,\n onAfterClose,\n onMessage,\n onMouseEnter,\n onMouseLeave,\n onReady,\n onResized,\n onScroll,\n ...iframeProps\n}: Record<string, unknown>): Record<string, unknown> => iframeProps\n","// eslint-disable-next-line eslint-comments/disable-enable-pair\n/* eslint-disable react/require-default-props */\nimport { esModuleInterop } from '@iframe-resizer/common'\nimport type {\n IframeComponent,\n IframeObject,\n IframeOptions,\n} from '@iframe-resizer/core'\nimport connectResizer from '@iframe-resizer/core'\nimport acg from 'auto-console-group'\nimport React, {\n forwardRef,\n type ReactElement,\n type RefObject,\n useEffect,\n useImperativeHandle,\n useRef,\n} from 'react'\n\nimport filterIframeAttribs from './filter-iframe-attribs'\n\nexport type IframeForwardRef = Omit<IframeObject, 'close' | 'disconnect'> & {\n getElement: () => IframeComponent\n getRef: () => RefObject<HTMLIFrameElement | null>\n}\n\ntype IframeProps = React.DetailedHTMLProps<\n React.IframeHTMLAttributes<HTMLIFrameElement>,\n HTMLIFrameElement\n>\n\nexport type IframeResizerProps = Omit<IframeProps, 'scrolling'> &\n Omit<IframeOptions, 'id' | 'onBeforeClose'>\n\n// Deal with UMD not converting default exports to named exports\nconst createAutoConsoleGroup = esModuleInterop(acg)\n\nfunction IframeResizer(\n props: IframeResizerProps,\n ref: React.ForwardedRef<IframeForwardRef>,\n): ReactElement {\n const { log, logExpand } = props\n const filteredProps = filterIframeAttribs(props)\n const iframeRef = useRef<IframeComponent>(null)\n const consoleGroup = createAutoConsoleGroup()\n\n const onBeforeClose = (): boolean => {\n consoleGroup.event('close')\n consoleGroup.warn(\n `Close event ignored, to remove the iframe update your React component.`,\n )\n\n return false\n }\n\n // This hook is only run once, as once iframe-resizer is bound, it will\n // deal with changes to the element and does not need recalling\n useEffect(() => {\n const iframe = iframeRef.current\n const resizerOptions = { ...props, onBeforeClose }\n\n consoleGroup.label(`react(${iframe.id})`)\n consoleGroup.event('setup')\n\n const resizer = connectResizer(resizerOptions)(iframe)\n\n consoleGroup.expand(logExpand)\n if (log) consoleGroup.log('Created React component')\n\n return () => {\n consoleGroup.endAutoGroup()\n resizer?.disconnect()\n }\n }, []) // eslint-disable-line react-hooks/exhaustive-deps\n\n useImperativeHandle(ref, () => ({\n getRef: () => iframeRef,\n getElement: () => iframeRef.current,\n moveToAnchor: (anchor: string) =>\n iframeRef.current.iframeResizer.moveToAnchor(anchor),\n sendMessage: (message: any, targetOrigin?: string) => {\n iframeRef.current.iframeResizer.sendMessage(message, targetOrigin)\n },\n }))\n\n // eslint-disable-next-line jsx-a11y/iframe-has-title\n return <iframe {...filteredProps} ref={iframeRef} />\n}\n\nexport default forwardRef<IframeForwardRef, IframeResizerProps>(IframeResizer)\n\nexport {\n type IframeComponent,\n type IframeDirection,\n type IframeLogOption,\n type IframeMessageData,\n type IframeMouseData,\n type IframeObject,\n type IframeOptions,\n type IframeResizedData,\n type IframeScrollData,\n type IframeScrollOption,\n} from '@iframe-resizer/core'\n"],"names":["createAutoConsoleGroup","esModuleInterop","acg","index","forwardRef","props","ref","log","logExpand","filteredProps","license","bodyBackground","bodyMargin","bodyPadding","checkOrigin","direction","inPageLinks","offsetSize","scrolling","tolerance","waitForLoad","warningTimeout","onAfterClose","onMessage","onMouseEnter","onMouseLeave","onReady","onResized","onScroll","iframeProps","filterIframeAttribs","iframeRef","useRef","consoleGroup","onBeforeClose","event","warn","useEffect","iframe","current","resizerOptions","label","id","resizer","connectResizer","expand","endAutoGroup","disconnect","useImperativeHandle","getRef","getElement","moveToAnchor","anchor","iframeResizer","sendMessage","message","targetOrigin","React","createElement"],"mappings":";;;;;;;;;;;;;;;;;;;yNAAA,MCmCMA,EAAyBC,EAAgBC,GAsD/C,MAAAC,EAAeC,EApDf,SACEC,EACAC,GAEA,MAAMC,IAAEA,EAAAC,UAAKA,GAAcH,EACrBI,ED1CO,GACbC,UACAC,iBACAC,aACAC,cACAC,cACAC,YACAC,cACAT,MACAC,YACAS,aACAC,YACAC,YACAC,cACAC,iBACAC,eACAC,YACAC,eACAC,eACAC,UACAC,YACAC,cACGC,KACmDA,ECmBhCC,CAAoBzB,GACpC0B,EAAYC,EAAwB,MACpCC,EAAejC,IAEfkC,EAAgB,KACpBD,EAAaE,MAAM,SACnBF,EAAaG,KACX,2EAGK,GAkCT,OA7BAC,EAAU,KACR,MAAMC,EAASP,EAAUQ,QACnBC,EAAiB,IAAKnC,EAAO6B,iBAEnCD,EAAaQ,MAAM,SAASH,EAAOI,OACnCT,EAAaE,MAAM,SAEnB,MAAMQ,EAAUC,EAAeJ,EAAfI,CAA+BN,GAK/C,OAHAL,EAAaY,OAAOrC,GAChBD,GAAK0B,EAAa1B,IAAI,2BAEnB,KACL0B,EAAaa,eACbH,GAASI,eAEV,IAEHC,EAAoB1C,EAAK,KAAA,CACvB2C,OAAQ,IAAMlB,EACdmB,WAAY,IAAMnB,EAAUQ,QAC5BY,aAAeC,GACbrB,EAAUQ,QAAQc,cAAcF,aAAaC,GAC/CE,YAAa,CAACC,EAAcC,KAC1BzB,EAAUQ,QAAQc,cAAcC,YAAYC,EAASC,sBAKlDC,EAAAC,cAAC,SAAA,IAAWjD,EAAeH,IAAKyB,GACzC"} |
+3
-3
| { | ||
| "name": "@iframe-resizer/react", | ||
| "version": "6.0.0-beta.9", | ||
| "version": "6.0.0-beta.10", | ||
| "license": "GPL-3.0", | ||
@@ -41,4 +41,4 @@ "homepage": "https://iframe-resizer.com", | ||
| "dependencies": { | ||
| "@iframe-resizer/common": "6.0.0-beta.9", | ||
| "@iframe-resizer/core": "6.0.0-beta.9", | ||
| "@iframe-resizer/common": "6.0.0-beta.10", | ||
| "@iframe-resizer/core": "6.0.0-beta.10", | ||
| "auto-console-group": "1.3.0", | ||
@@ -45,0 +45,0 @@ "react": "^19.2.4" |
+1
-1
@@ -28,2 +28,2 @@ <p align="center"><br> | ||
| _iframe-resizer version 6.0.0-beta.9 2026-04-13 - 13:44:23.850Z_ | ||
| _iframe-resizer version 6.0.0-beta.10 2026-04-16 - 16:31:17.632Z_ |
49714
0.47%+ Added
+ Added
- Removed
- Removed