@iframe-resizer/child 5.0.2 → 5.1.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
@@ -22,4 +22,4 @@ yarn add @iframe-resizer/child
22
22
 
23
23
  ---
24
24
 
25
- _iframe-resizer version 5.0.2 2024-05-30 - 17:45:53.360Z_
25
+ _iframe-resizer version 5.1.0 2024-06-18 - 08:28:20.374Z_
@@ -53,7 +53,12 @@ declare module '@iframe-resizer/child' {
53
53
  *
54
54
  * Pass false to disable the callback.
55
55
  */
56
- getParentProperties(callback: (data: ParentProperties) => void): void
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 ParentProperties {
92
+ interface ParentProps {
88
93
  /**
89
94
  * The values returned by iframe.getBoundingClientRect()
90
95
  */