@tanstack/react-table 8.5.1 → 8.5.2

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.
@@ -4014,7 +4014,7 @@ var drawChart = (function (exports) {
4014
4014
  </script>
4015
4015
  <script>
4016
4016
  /*<!--*/
4017
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"fb70-127"},{"name":"react-table/src/index.tsx","uid":"fb70-129"}]}]}],"isRoot":true},"nodeParts":{"fb70-127":{"renderedLength":137857,"gzipLength":23944,"brotliLength":0,"mainUid":"fb70-126"},"fb70-129":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"fb70-128"}},"nodeMetas":{"fb70-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"fb70-127"},"imported":[],"importedBy":[{"uid":"fb70-128"}]},"fb70-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"fb70-129"},"imported":[{"uid":"fb70-130"},{"uid":"fb70-126"}],"importedBy":[],"isEntry":true},"fb70-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb70-128"}],"isExternal":true}},"env":{"rollup":"2.77.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4017
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"6455-127"},{"name":"react-table/src/index.tsx","uid":"6455-129"}]}]}],"isRoot":true},"nodeParts":{"6455-127":{"renderedLength":138168,"gzipLength":23982,"brotliLength":0,"mainUid":"6455-126"},"6455-129":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"6455-128"}},"nodeMetas":{"6455-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"6455-127"},"imported":[],"importedBy":[{"uid":"6455-128"}]},"6455-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"6455-129"},"imported":[{"uid":"6455-130"},{"uid":"6455-126"}],"importedBy":[],"isEntry":true},"6455-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"6455-128"}],"isExternal":true}},"env":{"rollup":"2.77.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4018
4018
 
4019
4019
  const run = () => {
4020
4020
  const width = window.innerWidth;
@@ -11,11 +11,11 @@
11
11
  "children": [
12
12
  {
13
13
  "name": "table-core/build/esm/index.js",
14
- "uid": "fb70-132"
14
+ "uid": "6455-132"
15
15
  },
16
16
  {
17
17
  "name": "react-table/src/index.tsx",
18
- "uid": "fb70-134"
18
+ "uid": "6455-134"
19
19
  }
20
20
  ]
21
21
  }
@@ -25,55 +25,55 @@
25
25
  "isRoot": true
26
26
  },
27
27
  "nodeParts": {
28
- "fb70-132": {
29
- "renderedLength": 137857,
30
- "gzipLength": 23944,
28
+ "6455-132": {
29
+ "renderedLength": 138168,
30
+ "gzipLength": 23982,
31
31
  "brotliLength": 0,
32
- "mainUid": "fb70-131"
32
+ "mainUid": "6455-131"
33
33
  },
34
- "fb70-134": {
34
+ "6455-134": {
35
35
  "renderedLength": 1900,
36
36
  "gzipLength": 752,
37
37
  "brotliLength": 0,
38
- "mainUid": "fb70-133"
38
+ "mainUid": "6455-133"
39
39
  }
40
40
  },
41
41
  "nodeMetas": {
42
- "fb70-131": {
42
+ "6455-131": {
43
43
  "id": "/packages/table-core/build/esm/index.js",
44
44
  "moduleParts": {
45
- "index.production.js": "fb70-132"
45
+ "index.production.js": "6455-132"
46
46
  },
47
47
  "imported": [],
48
48
  "importedBy": [
49
49
  {
50
- "uid": "fb70-133"
50
+ "uid": "6455-133"
51
51
  }
52
52
  ]
53
53
  },
54
- "fb70-133": {
54
+ "6455-133": {
55
55
  "id": "/packages/react-table/src/index.tsx",
56
56
  "moduleParts": {
57
- "index.production.js": "fb70-134"
57
+ "index.production.js": "6455-134"
58
58
  },
59
59
  "imported": [
60
60
  {
61
- "uid": "fb70-135"
61
+ "uid": "6455-135"
62
62
  },
63
63
  {
64
- "uid": "fb70-131"
64
+ "uid": "6455-131"
65
65
  }
66
66
  ],
67
67
  "importedBy": [],
68
68
  "isEntry": true
69
69
  },
70
- "fb70-135": {
70
+ "6455-135": {
71
71
  "id": "react",
72
72
  "moduleParts": {},
73
73
  "imported": [],
74
74
  "importedBy": [
75
75
  {
76
- "uid": "fb70-133"
76
+ "uid": "6455-133"
77
77
  }
78
78
  ],
79
79
  "isExternal": true
@@ -2955,8 +2955,20 @@
2955
2955
 
2956
2956
  defaultColumn = (_defaultColumn = defaultColumn) != null ? _defaultColumn : {};
2957
2957
  return {
2958
- header: props => props.header.column.id,
2959
- footer: props => props.header.column.id,
2958
+ header: props => {
2959
+ const resolvedColumnDef = props.header.column.columnDef;
2960
+
2961
+ if (resolvedColumnDef.accessorKey) {
2962
+ return resolvedColumnDef.accessorKey;
2963
+ }
2964
+
2965
+ if (resolvedColumnDef.accessorFn) {
2966
+ return resolvedColumnDef.id;
2967
+ }
2968
+
2969
+ return null;
2970
+ },
2971
+ // footer: props => props.header.column.id,
2960
2972
  cell: props => {
2961
2973
  var _props$renderValue$to, _props$renderValue;
2962
2974