@tanstack/react-table 8.0.12 → 8.0.13
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/stats-html.html +1 -1
- package/build/stats-react.json +15 -15
- package/build/types/index.d.ts +21 -8
- package/package.json +2 -2
package/build/stats-html.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"75ae-127"},{"name":"react-table/src/index.tsx","uid":"75ae-129"}]}]}],"isRoot":true},"nodeParts":{"75ae-127":{"renderedLength":139117,"gzipLength":23688,"brotliLength":0,"mainUid":"75ae-126"},"75ae-129":{"renderedLength":2135,"gzipLength":854,"brotliLength":0,"mainUid":"75ae-128"}},"nodeMetas":{"75ae-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"75ae-127"},"imported":[],"importedBy":[{"uid":"75ae-128"}]},"75ae-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"75ae-129"},"imported":[{"uid":"75ae-130"},{"uid":"75ae-126"}],"importedBy":[],"isEntry":true},"75ae-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"75ae-128"}],"isExternal":true}},"env":{"rollup":"2.75.7"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
package/build/stats-react.json
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "table-core/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "75ae-132"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "react-table/src/index.tsx",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "75ae-134"
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
}
|
|
@@ -25,55 +25,55 @@
|
|
|
25
25
|
"isRoot": true
|
|
26
26
|
},
|
|
27
27
|
"nodeParts": {
|
|
28
|
-
"
|
|
28
|
+
"75ae-132": {
|
|
29
29
|
"renderedLength": 139117,
|
|
30
30
|
"gzipLength": 23688,
|
|
31
31
|
"brotliLength": 0,
|
|
32
|
-
"mainUid": "
|
|
32
|
+
"mainUid": "75ae-131"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"75ae-134": {
|
|
35
35
|
"renderedLength": 2135,
|
|
36
36
|
"gzipLength": 854,
|
|
37
37
|
"brotliLength": 0,
|
|
38
|
-
"mainUid": "
|
|
38
|
+
"mainUid": "75ae-133"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"nodeMetas": {
|
|
42
|
-
"
|
|
42
|
+
"75ae-131": {
|
|
43
43
|
"id": "/packages/table-core/build/esm/index.js",
|
|
44
44
|
"moduleParts": {
|
|
45
|
-
"index.production.js": "
|
|
45
|
+
"index.production.js": "75ae-132"
|
|
46
46
|
},
|
|
47
47
|
"imported": [],
|
|
48
48
|
"importedBy": [
|
|
49
49
|
{
|
|
50
|
-
"uid": "
|
|
50
|
+
"uid": "75ae-133"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"
|
|
54
|
+
"75ae-133": {
|
|
55
55
|
"id": "/packages/react-table/src/index.tsx",
|
|
56
56
|
"moduleParts": {
|
|
57
|
-
"index.production.js": "
|
|
57
|
+
"index.production.js": "75ae-134"
|
|
58
58
|
},
|
|
59
59
|
"imported": [
|
|
60
60
|
{
|
|
61
|
-
"uid": "
|
|
61
|
+
"uid": "75ae-135"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"uid": "
|
|
64
|
+
"uid": "75ae-131"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"importedBy": [],
|
|
68
68
|
"isEntry": true
|
|
69
69
|
},
|
|
70
|
-
"
|
|
70
|
+
"75ae-135": {
|
|
71
71
|
"id": "react",
|
|
72
72
|
"moduleParts": {},
|
|
73
73
|
"imported": [],
|
|
74
74
|
"importedBy": [
|
|
75
75
|
{
|
|
76
|
-
"uid": "
|
|
76
|
+
"uid": "75ae-133"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"isExternal": true
|
package/build/types/index.d.ts
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* react-table
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) TanStack
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
1
11
|
import * as React from 'react';
|
|
12
|
+
import { Overwrite, TableGenerics, Table, TableOptions, TableInstance } from '@tanstack/table-core';
|
|
2
13
|
export * from '@tanstack/table-core';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
14
|
+
|
|
15
|
+
declare type Renderable<TProps> = React.ReactNode | React.FunctionComponent<TProps> | React.Component<TProps>;
|
|
16
|
+
declare type Render = <TProps extends {}>(Comp: Renderable<TProps>, props: TProps) => React.ReactNode | JSX.Element;
|
|
17
|
+
declare type ReactTableGenerics = Overwrite<TableGenerics, {
|
|
7
18
|
Renderer: Render;
|
|
8
19
|
Rendered: ReturnType<Render>;
|
|
9
20
|
}>;
|
|
10
|
-
|
|
11
|
-
|
|
21
|
+
declare const render: Render;
|
|
22
|
+
declare const createTable: () => Table<{
|
|
12
23
|
Renderer: Render;
|
|
13
24
|
Rendered: React.ReactNode | JSX.Element;
|
|
14
25
|
}>;
|
|
15
|
-
|
|
16
|
-
|
|
26
|
+
declare type UseTableInstanceOptions<TGenerics extends ReactTableGenerics> = TableOptions<TGenerics>;
|
|
27
|
+
declare function useTableInstance<TGenerics extends ReactTableGenerics>(table: Table<TGenerics>, options: UseTableInstanceOptions<TGenerics>): TableInstance<TGenerics>;
|
|
28
|
+
|
|
29
|
+
export { ReactTableGenerics, Render, Renderable, UseTableInstanceOptions, createTable, render, useTableInstance };
|
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.
|
|
4
|
+
"version": "8.0.13",
|
|
5
5
|
"description": "Headless UI for building powerful tables & datagrids for React.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/tanstack/table#readme",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"src"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@tanstack/table-core": "8.0.
|
|
38
|
+
"@tanstack/table-core": "8.0.13"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=16",
|