@iframe-resizer/child 5.0.2 → 5.1.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/README.md +1 -1
- package/iframe-resizer.child.d.ts +7 -2
- package/index.cjs.js +2 -1288
- package/index.esm.js +2 -1286
- package/index.umd.js +2 -1293
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,7 +53,12 @@ declare module '@iframe-resizer/child' {
|
|
|
53
53
|
*
|
|
54
54
|
* Pass false to disable the callback.
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
getParentProps(callback: (data: ParentProps) => void): void
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Scroll the parent page by x and y
|
|
60
|
+
*/
|
|
61
|
+
scrollBy(x: number, y: number): void
|
|
57
62
|
|
|
58
63
|
/**
|
|
59
64
|
* Scroll the parent page to the coordinates x and y
|
|
@@ -84,7 +89,7 @@ declare module '@iframe-resizer/child' {
|
|
|
84
89
|
size(customHeight?: string, customWidth?: string): void
|
|
85
90
|
}
|
|
86
91
|
|
|
87
|
-
interface
|
|
92
|
+
interface ParentProps {
|
|
88
93
|
/**
|
|
89
94
|
* The values returned by iframe.getBoundingClientRect()
|
|
90
95
|
*/
|