react-frame-component 5.2.7 → 5.3.0

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
@@ -64,6 +64,13 @@ The `mountTarget` props is a css selector (#target/.target) that specifies where
64
64
  </Frame>
65
65
  ```
66
66
 
67
+ ###### dangerouslyUseDocWrite
68
+ `dangerouslyUseDocWrite: PropTypes.bool`
69
+
70
+ Defaults to `false`
71
+
72
+ The frame's initial content, as defined by the `initialContent` prop, is populated via the frame's `srcdoc` attribute by default. However, this can cause issues with some libraries such as Recaptcha and Google Maps that depend on the frame's location/origin. In these cases, setting this flag will cause `Frame` to use `document.write()` to populate the initial content. This is **unperformant and unrecommended**, but allows these libraries to be used inside a `Frame` instance.
73
+
67
74
  ###### contentDidMount and contentDidUpdate
68
75
  `contentDidMount: PropTypes.func`
69
76
  `contentDidUpdate: PropTypes.func`