react-virtuoso 4.18.0 → 4.18.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +17 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,22 @@
1
1
  import { default as default_2 } from 'react';
2
2
 
3
- /* Excluded from this release type: BaseTableVirtuosoHandle */
3
+ declare interface BaseTableVirtuosoHandle {
4
+ /**
5
+ * Obtains the internal size state of the component, so that it can be restored later. This does not include the data items.
6
+ * @param stateCb - Callback that receives the state snapshot
7
+ */
8
+ getState(stateCb: StateCallback): void;
9
+ /**
10
+ * Scrolls the component by the specified amount.
11
+ * @param location - The scroll offset options
12
+ */
13
+ scrollBy(location: ScrollToOptions): void;
14
+ /**
15
+ * Scrolls the component to the specified position.
16
+ * @param location - The scroll position options
17
+ */
18
+ scrollTo(location: ScrollToOptions): void;
19
+ }
4
20
 
5
21
  /**
6
22
  * @group Common
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A virtual scroll React component for efficiently rendering large scrollable lists, grids, tables, and feeds",
4
4
  "author": "Petyo Ivanov",
5
5
  "sideEffects": false,
6
- "version": "4.18.0",
6
+ "version": "4.18.1",
7
7
  "homepage": "https://virtuoso.dev/",
8
8
  "license": "MIT",
9
9
  "source": "src/index.tsx",