@tanstack/table-core 8.0.0-alpha.54 → 8.0.0-alpha.55

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/table-core",
3
3
  "author": "Tanner Linsley",
4
- "version": "8.0.0-alpha.54",
4
+ "version": "8.0.0-alpha.55",
5
5
  "description": "Hooks for building lightweight, fast and extendable datagrids for React",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/tanstack/react-table#readme",
@@ -12,6 +12,11 @@ import { makeStateUpdater, propGetter } from '../utils'
12
12
 
13
13
  //
14
14
 
15
+ export type ColumnSizingTableState = {
16
+ columnSizing: ColumnSizing
17
+ columnSizingInfo: ColumnSizingInfoState
18
+ }
19
+
15
20
  export type ColumnSizing = Record<string, number>
16
21
 
17
22
  export type ColumnSizingInfoState = {
@@ -23,11 +28,6 @@ export type ColumnSizingInfoState = {
23
28
  columnSizingStart: [string, number][]
24
29
  }
25
30
 
26
- export type ColumnSizingTableState = {
27
- columnSizing: ColumnSizing
28
- columnSizingInfo: ColumnSizingInfoState
29
- }
30
-
31
31
  export type ColumnResizeMode = 'onChange' | 'onEnd'
32
32
 
33
33
  export type ColumnSizingOptions = {
@@ -119,7 +119,7 @@ export const Headers = {
119
119
  instance.getState().columnPinning.right,
120
120
  ],
121
121
  (allCells, left, right) => {
122
- const leftAndRight = [...(left ?? []), ...(right ?? [])]
122
+ const leftAndRight: string[] = [...(left ?? []), ...(right ?? [])]
123
123
 
124
124
  return allCells.filter(d => !leftAndRight.includes(d.columnId))
125
125
  },