@tanstack/react-table 8.0.0-alpha.82 → 8.0.0-alpha.85
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/build/cjs/react-table/src/index.js +2 -1
- package/build/cjs/react-table/src/index.js.map +1 -1
- package/build/cjs/table-core/build/esm/index.js +765 -865
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +764 -865
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +17 -17
- package/build/types/index.d.ts +2 -2
- package/build/umd/index.development.js +767 -863
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/index.tsx +3 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-table",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.85",
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"src"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@tanstack/table-core": "8.0.0-alpha.
|
|
38
|
+
"@tanstack/table-core": "8.0.0-alpha.85"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=16",
|
package/src/index.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
createTableFactory,
|
|
11
11
|
Overwrite,
|
|
12
12
|
PartialKeys,
|
|
13
|
+
TableOptionsResolved,
|
|
13
14
|
} from '@tanstack/table-core'
|
|
14
15
|
|
|
15
16
|
export type Renderable<TProps> =
|
|
@@ -64,17 +65,14 @@ export const createTable = createTableFactory({ render })
|
|
|
64
65
|
// typeof document !== 'undefined' ? React.useLayoutEffect : React.useEffect
|
|
65
66
|
|
|
66
67
|
export type UseTableInstanceOptions<TGenerics extends ReactTableGenerics> =
|
|
67
|
-
|
|
68
|
-
Omit<TableOptions<TGenerics>, 'render'>,
|
|
69
|
-
'state' | 'onStateChange'
|
|
70
|
-
>
|
|
68
|
+
TableOptions<TGenerics>
|
|
71
69
|
|
|
72
70
|
export function useTableInstance<TGenerics extends ReactTableGenerics>(
|
|
73
71
|
table: Table<TGenerics>,
|
|
74
72
|
options: UseTableInstanceOptions<TGenerics>
|
|
75
73
|
): TableInstance<TGenerics> {
|
|
76
74
|
// Compose in the generic options to the user options
|
|
77
|
-
const resolvedOptions:
|
|
75
|
+
const resolvedOptions: TableOptionsResolved<TGenerics> = {
|
|
78
76
|
...table.options,
|
|
79
77
|
state: {}, // Dummy state
|
|
80
78
|
onStateChange: () => {}, // noop
|