React Frame Component Versions Save

Render your React app to an iFrame

v5.2.6

1 year ago
  • Fix handleLoad call from setInterval (#236) 606edcf

https://github.com/ryanseddon/react-frame-component/compare/v5.2.5...v5.2.6

v5.2.5

1 year ago

Note: Please use 5.2.4, this version has a bug and will be superseded when a fix is rolled out. See #234

This release uses DOMContentLoaded as a better strategy over onload when more complex intitialContent payloads are provided. This also accounts for timing issues and uses setInterval to account for cold cache timing issues on resource intensive frames.

  • Rely on DOMContentLoaded instead of onload (#207) 334d0ef
  • Fallback to setInterval if DOMContentLoaded fails 28584e87951e3ce400dfb87964bd9ab7a13051d7

https://github.com/ryanseddon/react-frame-component/compare/v5.2.4...v5.2.5

v5.2.4

1 year ago
  • fix: change default export away from React.Component (#227) e4cd1ca
  • Bump shell-quote from 1.6.1 to 1.7.4 (#233) d5c25a3
  • Bump decode-uri-component from 0.2.0 to 0.2.2 (#232) bb2c04e
  • Bump engine.io from 6.2.0 to 6.2.1 (#231) d5235ba
  • Bump socket.io-parser from 4.0.4 to 4.0.5 (#230) 73f0fb5
  • Bump minimatch and wallaby-webpack (#229) b841e81
  • Bump css-what from 2.1.0 to 2.1.3 (#228) e725602

https://github.com/ryanseddon/react-frame-component/compare/v5.2.3...v5.2.4

v5.2.3-alpha.0

1 year ago

Building on v5.2.2-alpha.1 if DOMContentLoaded never fires we fallback with a setInterval

  • Fallback to setInterval if DOMContentLoaded fails 28584e8

https://github.com/ryanseddon/react-frame-component/compare/v5.2.2-alpha.1...v5.2.3-alpha.0

v5.2.3

1 year ago
  • fix: use correct value type for ref prop (#215) eafe14a

https://github.com/ryanseddon/react-frame-component/compare/v5.2.2...v5.2.3

v5.2.2

1 year ago

This adds types directly to the package. You'll no longer need to rely on @types/react-frame-component

  • Update types (#213) 24f9dc5

https://github.com/ryanseddon/react-frame-component/compare/v5.2.1...v5.2.2

v5.2.2-alpha.1

2 years ago

Building on v5.2.2-alpha.0 to try removing forceUpdate, guarding against a double state update and re-introducing the onLoad attribute.

  • Seems to still have issues on chrome for some apps trying something else ae128fd

https://github.com/ryanseddon/react-frame-component/compare/v5.2.2-alpha.0...v5.2.2-alpha.1

v5.2.2-alpha.0

2 years ago

This is a pre-release testing whether using DOMContentLoaded is a better strategy over onload when more complex intitialContent payloads are provided.

  • Rely on DOMContentLoaded instead of onload 39262db

https://github.com/ryanseddon/react-frame-component/compare/v5.2.1...v5.2.2-alpha.0

v5.2.1

2 years ago
  • fix: rename index.ts to index.d.ts (#203) 0158d7a

https://github.com/ryanseddon/react-frame-component/compare/v5.2.0...v5.2.1

v5.2.0

2 years ago

Forwarding iframe ref

Allow to pass ref prop to Frame component which will allow to reach the inner iframe HTMLIFrameElement. The ref forwarding is done by React.forwardRef helper which wraps the original Frame class component instance.

  • Forward iframe ref and use React.createRef (#189) b68a2f2

Example usage:

function Foo() {
  const iframeRef = React.useRef()

  React.useEffect(() => {
    iframeRef.style.setProperty('background-color', 'pink');
  }, [])

  <Frame ref={iframeRef} />
}

Other changes

  • Bump path-parse from 1.0.5 to 1.0.7 (#196) 950cff6
  • Bump tar from 2.2.1 to 2.2.2 (#195) 095e538
  • Include index.ts in npm tar ball (#191) 9250906

https://github.com/ryanseddon/react-frame-component/compare/v5.1.0...v5.2.0