react-frame-component 5.2.3 → 5.2.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.
Files changed (2) hide show
  1. package/index.d.ts +4 -5
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -2,19 +2,18 @@ declare module 'react-frame-component' {
2
2
  import * as React from 'react';
3
3
 
4
4
  export interface FrameComponentProps
5
- extends React.IframeHTMLAttributes<HTMLIFrameElement> {
5
+ extends React.IframeHTMLAttributes<HTMLIFrameElement>,
6
+ React.RefAttributes<HTMLIFrameElement> {
6
7
  head?: React.ReactNode | undefined;
7
8
  mountTarget?: string | undefined;
8
9
  initialContent?: string | undefined;
9
10
  contentDidMount?: (() => void) | undefined;
10
11
  contentDidUpdate?: (() => void) | undefined;
11
12
  children: React.ReactNode;
12
- ref?: React.Ref<HTMLIFrameElement>;
13
13
  }
14
14
 
15
- export default class FrameComponent extends React.Component<
16
- FrameComponentProps
17
- > {}
15
+ const FrameComponent: React.ForwardRefExoticComponent<FrameComponentProps>;
16
+ export default FrameComponent;
18
17
 
19
18
  export interface FrameContextProps {
20
19
  document?: HTMLDocument;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-frame-component",
3
- "version": "5.2.3",
3
+ "version": "5.2.4",
4
4
  "description": "React component to wrap your application or component in an iFrame for encapsulation purposes",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -80,7 +80,7 @@
80
80
  "react-dom": "^17.0.1",
81
81
  "rimraf": "^2.5.4",
82
82
  "sinon": "2.0.0-pre",
83
- "wallaby-webpack": "^0.0.30",
83
+ "wallaby-webpack": "^3.9.16",
84
84
  "webpack": "1.x",
85
85
  "webpack-dev-server": "^1.16.3"
86
86
  },