@tanstack/react-table 0.0.1-alpha.0 → 0.0.1-alpha.12
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/_virtual/_rollupPluginBabelHelpers.js +112 -0
- package/build/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/build/cjs/aggregationTypes.js +130 -0
- package/build/cjs/aggregationTypes.js.map +1 -0
- package/build/cjs/core.js +493 -0
- package/build/cjs/core.js.map +1 -0
- package/build/cjs/createTable.js +103 -0
- package/build/cjs/createTable.js.map +1 -0
- package/build/cjs/features/Expanding.js +234 -0
- package/build/cjs/features/Expanding.js.map +1 -0
- package/build/cjs/features/Filters.js +396 -0
- package/build/cjs/features/Filters.js.map +1 -0
- package/build/cjs/features/Grouping.js +228 -0
- package/build/cjs/features/Grouping.js.map +1 -0
- package/build/cjs/features/Headers.js +483 -0
- package/build/cjs/features/Headers.js.map +1 -0
- package/build/cjs/features/Ordering.js +83 -0
- package/build/cjs/features/Ordering.js.map +1 -0
- package/build/cjs/features/Pinning.js +163 -0
- package/build/cjs/features/Pinning.js.map +1 -0
- package/build/cjs/features/Sorting.js +269 -0
- package/build/cjs/features/Sorting.js.map +1 -0
- package/build/cjs/features/Visibility.js +160 -0
- package/build/cjs/features/Visibility.js.map +1 -0
- package/build/cjs/filterTypes.js +172 -0
- package/build/cjs/filterTypes.js.map +1 -0
- package/build/cjs/index.js +30 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/sortTypes.js +121 -0
- package/build/cjs/sortTypes.js.map +1 -0
- package/build/cjs/utils/columnFilterRowsFn.js +130 -0
- package/build/cjs/utils/columnFilterRowsFn.js.map +1 -0
- package/build/cjs/utils/expandRowsFn.js +38 -0
- package/build/cjs/utils/expandRowsFn.js.map +1 -0
- package/build/cjs/utils/globalFilterRowsFn.js +100 -0
- package/build/cjs/utils/globalFilterRowsFn.js.map +1 -0
- package/build/cjs/utils/groupRowsFn.js +154 -0
- package/build/cjs/utils/groupRowsFn.js.map +1 -0
- package/build/cjs/utils/sortRowsFn.js +93 -0
- package/build/cjs/utils/sortRowsFn.js.map +1 -0
- package/build/cjs/utils.js +143 -0
- package/build/cjs/utils.js.map +1 -0
- package/build/esm/index.js +3389 -0
- package/build/esm/index.js.map +1 -0
- package/build/stats-html.html +2689 -0
- package/build/stats-react.json +703 -0
- package/build/types/aggregationTypes.d.ts +22 -0
- package/build/types/core.d.ts +122 -0
- package/build/types/createTable.d.ts +35 -0
- package/build/types/features/Expanding.d.ts +52 -0
- package/build/types/features/Filters.d.ts +93 -0
- package/build/types/features/Grouping.d.ts +82 -0
- package/build/types/features/Headers.d.ts +41 -0
- package/build/types/features/Ordering.d.ts +19 -0
- package/build/types/features/Pinning.d.ts +39 -0
- package/build/types/features/Sorting.d.ts +75 -0
- package/build/types/features/Visibility.d.ts +47 -0
- package/build/types/filterTypes.d.ts +50 -0
- package/build/types/index.d.ts +7 -0
- package/build/types/sortTypes.d.ts +17 -0
- package/build/types/types.d.ts +122 -0
- package/build/types/utils/columnFilterRowsFn.d.ts +2 -0
- package/build/types/utils/expandRowsFn.d.ts +2 -0
- package/build/types/utils/globalFilterRowsFn.d.ts +2 -0
- package/build/types/utils/groupRowsFn.d.ts +2 -0
- package/build/types/utils/sortRowsFn.d.ts +2 -0
- package/build/types/utils.d.ts +24 -0
- package/{dist/react-table.development.js → build/umd/index.development.js} +11 -1
- package/build/umd/index.development.js.map +1 -0
- package/{dist/react-table.production.min.js → build/umd/index.production.js} +11 -1
- package/build/umd/index.production.js.map +1 -0
- package/package.json +10 -92
- package/src/features/{withColumnResizing.ts → withColumnResizing.oldts} +0 -0
- package/src/features/{withPagination.ts → withPagination.oldts} +0 -0
- package/src/features/{withRowSelection.ts → withRowSelection.oldts} +0 -0
- package/dist/react-table.development.js.map +0 -1
- package/dist/react-table.production.min.js.map +0 -1
- package/lib/index.js +0 -65
- package/src/.DS_Store +0 -0
- package/src/features/notest/useAbsoluteLayout.test.js +0 -152
- package/src/features/notest/useBlockLayout.test.js +0 -158
- package/src/features/notest/useColumnOrder.test.js +0 -186
- package/src/features/notest/useExpanded.test.js +0 -125
- package/src/features/notest/useFilters.test.js +0 -393
- package/src/features/notest/useFiltersAndRowSelect.test.js +0 -256
- package/src/features/notest/useFlexLayout.test.js +0 -152
- package/src/features/notest/useGroupBy.test.js +0 -259
- package/src/features/notest/usePagination.test.js +0 -231
- package/src/features/notest/useResizeColumns.test.js +0 -229
- package/src/features/notest/useRowSelect.test.js +0 -250
- package/src/features/notest/useRowState.test.js +0 -178
- package/src/features/tests/Visibility.test.tsx +0 -225
- package/src/features/tests/__snapshots__/Visibility.test.tsx.snap +0 -390
- package/src/features/tests/withSorting.notest.tsx +0 -341
- package/src/test-utils/makeTestData.ts +0 -41
- package/src/tests/__snapshots__/core.test.tsx.snap +0 -148
- package/src/tests/core.test.tsx +0 -241
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-table",
|
|
3
|
-
"
|
|
3
|
+
"author": "Tanner Linsley",
|
|
4
|
+
"version": "0.0.1-alpha.12",
|
|
4
5
|
"description": "Hooks for building lightweight, fast and extendable datagrids for React",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"homepage": "https://github.com/tannerlinsley/react-table#readme",
|
|
@@ -8,6 +9,9 @@
|
|
|
8
9
|
"type": "git",
|
|
9
10
|
"url": "git+https://github.com/tannerlinsley/react-table.git"
|
|
10
11
|
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
11
15
|
"keywords": [
|
|
12
16
|
"react",
|
|
13
17
|
"table",
|
|
@@ -18,105 +22,19 @@
|
|
|
18
22
|
"type": "github",
|
|
19
23
|
"url": "https://github.com/sponsors/tannerlinsley"
|
|
20
24
|
},
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"test": "(is-ci && yarn test:ci) || yarn test:dev",
|
|
26
|
-
"test:dev": "jest --watch",
|
|
27
|
-
"test:ci": "jest",
|
|
28
|
-
"test:coverage": "yarn test:ci; open coverage/lcov-report/index.html",
|
|
29
|
-
"build": "yarn format && yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types",
|
|
30
|
-
"build:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
|
|
31
|
-
"build:es": "rimraf ./es && babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es",
|
|
32
|
-
"build:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -c && rollup-plugin-visualizer stats-react.json",
|
|
33
|
-
"build:types": "rimraf ./types && tsc --project ./tsconfig.types.json && replace 'import type' 'import' ./types -r --silent && replace 'export type' 'export' ./types -r --silent",
|
|
34
|
-
"watch": "yarn watch:commonjs & yarn watch:es & yarn watch:umd & yarn watch:types",
|
|
35
|
-
"watch:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
|
|
36
|
-
"watch:es": "rimraf ./es && babel --watch --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es",
|
|
37
|
-
"watch:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -w -c && rollup-plugin-visualizer stats-react.json",
|
|
38
|
-
"watch:types": "rimraf ./types && tsc --watch --project ./tsconfig.types.json && replace 'import type' 'import' ./types -r --silent && replace 'export type' 'export' ./types -r --silent",
|
|
39
|
-
"now-build": "yarn && cd www && yarn && yarn build",
|
|
40
|
-
"prettier": "prettier \"{.,src,src/**,example/src,example/src/**}/*.{md,js,jsx,ts,tsx,json}\"",
|
|
41
|
-
"start": "yarn watch",
|
|
42
|
-
"format": "yarn prettier --write",
|
|
43
|
-
"stats": "open ./stats.html",
|
|
44
|
-
"doctoc": "doctoc README.md"
|
|
45
|
-
},
|
|
25
|
+
"module": "build/esm/index.js",
|
|
26
|
+
"main": "build/cjs/index.js",
|
|
27
|
+
"browser": "build/umd/index.production.min.js",
|
|
28
|
+
"types": "build/types/index.d.ts",
|
|
46
29
|
"engines": {
|
|
47
30
|
"node": ">=12"
|
|
48
31
|
},
|
|
49
|
-
"release": {
|
|
50
|
-
"branches": [
|
|
51
|
-
"master",
|
|
52
|
-
{
|
|
53
|
-
"name": "beta",
|
|
54
|
-
"prerelease": true
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
32
|
"files": [
|
|
59
|
-
"
|
|
33
|
+
"build",
|
|
60
34
|
"src"
|
|
61
35
|
],
|
|
62
|
-
"browserslist": [
|
|
63
|
-
"last 2 versions",
|
|
64
|
-
"> 0.2%"
|
|
65
|
-
],
|
|
66
36
|
"peerDependencies": {
|
|
67
37
|
"react": ">=16",
|
|
68
38
|
"react-dom": ">=16"
|
|
69
|
-
},
|
|
70
|
-
"dependencies": {
|
|
71
|
-
"ts-toolbelt": "^9.6.0"
|
|
72
|
-
},
|
|
73
|
-
"devDependencies": {
|
|
74
|
-
"@babel/cli": "^7.15.7",
|
|
75
|
-
"@babel/core": "^7.15.8",
|
|
76
|
-
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
77
|
-
"@babel/preset-env": "^7.15.8",
|
|
78
|
-
"@babel/preset-react": "^7.14.5",
|
|
79
|
-
"@babel/preset-typescript": "^7.15.0",
|
|
80
|
-
"@rollup/plugin-replace": "^3.0.0",
|
|
81
|
-
"@testing-library/jest-dom": "^5.14.1",
|
|
82
|
-
"@testing-library/react": "^12.1.2",
|
|
83
|
-
"@testing-library/react-hooks": "^7.0.2",
|
|
84
|
-
"@types/react": "^17.0.27",
|
|
85
|
-
"@types/react-dom": "^17.0.9",
|
|
86
|
-
"@types/semver": "^7.3.9",
|
|
87
|
-
"babel-plugin-const-enum": "^1.1.0",
|
|
88
|
-
"babel-plugin-dev-expression": "^0.2.2",
|
|
89
|
-
"babel-plugin-transform-async-to-promises": "^0.8.15",
|
|
90
|
-
"conventional-changelog-angular": "^5.0.13",
|
|
91
|
-
"cross-env": "^7.0.3",
|
|
92
|
-
"current-git-branch": "^1.1.0",
|
|
93
|
-
"doctoc": "^2.1.0",
|
|
94
|
-
"fast-async": "^6.3.8",
|
|
95
|
-
"git-log-parser": "^1.2.0",
|
|
96
|
-
"is-ci": "^3.0.0",
|
|
97
|
-
"jest": "^27.4.5",
|
|
98
|
-
"jsonfile": "^6.1.0",
|
|
99
|
-
"lerna": "^4.0.0",
|
|
100
|
-
"prettier": "^2.4.1",
|
|
101
|
-
"prompt-confirm": "^2.0.4",
|
|
102
|
-
"react": "^17.0.2",
|
|
103
|
-
"react-dom": "^17.0.2",
|
|
104
|
-
"react-test-renderer": "^17.0.2",
|
|
105
|
-
"replace": "^1.2.1",
|
|
106
|
-
"rimraf": "^3.0.2",
|
|
107
|
-
"rollup": "^2.16.1",
|
|
108
|
-
"rollup-plugin-babel": "^4.4.0",
|
|
109
|
-
"rollup-plugin-commonjs": "^10.1.0",
|
|
110
|
-
"rollup-plugin-jscc": "^1.0.0",
|
|
111
|
-
"rollup-plugin-node-resolve": "^5.2.0",
|
|
112
|
-
"rollup-plugin-peer-deps-external": "^2.2.2",
|
|
113
|
-
"rollup-plugin-prettier": "^2.1.0",
|
|
114
|
-
"rollup-plugin-size": "^0.2.2",
|
|
115
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
116
|
-
"rollup-plugin-visualizer": "^5.5.2",
|
|
117
|
-
"stream-to-array": "^2.3.0",
|
|
118
|
-
"ts-node": "^10.3.0",
|
|
119
|
-
"tslib": "^2.3.1",
|
|
120
|
-
"typescript": "^4.4.3"
|
|
121
39
|
}
|
|
122
40
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|