@tanstack/react-table
Advanced tools
Comparing version 8.0.0-alpha.7 to 8.0.0-alpha.8
@@ -30,3 +30,3 @@ /** | ||
var features = [Visibility, Ordering, Pinning, Headers, Filters, Sorting, Grouping, Expanding, ColumnSizing, Pagination, RowSelection]; | ||
function createTableInstance(options, rerender) { | ||
function createTableInstance(options) { | ||
var _options$initialState; | ||
@@ -39,2 +39,3 @@ | ||
var instance = {}; | ||
var listeners = []; | ||
var defaultOptions = features.reduce(function (obj, feature) { | ||
@@ -57,6 +58,19 @@ return Object.assign(obj, feature.getDefaultOptions == null ? void 0 : feature.getDefaultOptions(instance)); | ||
var finalInstance = _rollupPluginBabelHelpers["extends"]({}, instance, features.reduce(function (obj, feature) { | ||
var finalInstance = _rollupPluginBabelHelpers["extends"]({}, instance, { | ||
subscribe: function subscribe(cb) { | ||
listeners.push(cb); | ||
return function () { | ||
listeners = listeners.filter(function (l) { | ||
return l !== cb; | ||
}); | ||
}; | ||
}, | ||
notify: function notify() { | ||
listeners.forEach(function (l) { | ||
return l(); | ||
}); | ||
} | ||
}, features.reduce(function (obj, feature) { | ||
return Object.assign(obj, feature.getInstance == null ? void 0 : feature.getInstance(instance)); | ||
}, {}), { | ||
rerender: rerender, | ||
initialState: initialState, | ||
@@ -78,7 +92,3 @@ internalState: initialState, | ||
}, | ||
setState: function setState(updater, shouldRerender) { | ||
if (shouldRerender === void 0) { | ||
shouldRerender = true; | ||
} | ||
setState: function setState(updater) { | ||
var onStateChange = instance.options.onStateChange; | ||
@@ -94,5 +104,3 @@ var internalState = instance.internalState; | ||
if (shouldRerender) { | ||
instance.rerender(); | ||
} | ||
instance.notify(); | ||
}, | ||
@@ -99,0 +107,0 @@ getDefaultColumn: utils.memo(function () { |
@@ -17,2 +17,3 @@ /** | ||
var React = require('react'); | ||
var shim = require('use-sync-external-store/shim'); | ||
var core = require('./core.js'); | ||
@@ -92,27 +93,12 @@ | ||
useTable: function useTable(options) { | ||
var instanceRef = React__namespace.useRef(undefined); | ||
var unsafeRerender = React__namespace.useReducer(function () { | ||
return {}; | ||
}, {})[1]; | ||
var isMountedRef = React__namespace.useRef(false); | ||
var rerender = React__namespace.useCallback(function () { | ||
if (!isMountedRef.current) { | ||
return; | ||
} | ||
var _React$useState = React__namespace.useState(function () { | ||
return core.createTableInstance(options); | ||
}), | ||
instance = _React$useState[0]; | ||
unsafeRerender(); | ||
}, []); | ||
React__namespace.useLayoutEffect(function () { | ||
isMountedRef.current = true; | ||
return function () { | ||
isMountedRef.current = false; | ||
}; | ||
shim.useSyncExternalStore(instance.subscribe, function () { | ||
return instance.internalState; | ||
}); | ||
if (!instanceRef.current) { | ||
instanceRef.current = core.createTableInstance(options, rerender); | ||
} | ||
instanceRef.current.updateOptions(options); | ||
return instanceRef.current; | ||
instance.updateOptions(options); | ||
return instance; | ||
}, | ||
@@ -119,0 +105,0 @@ types: undefined |
@@ -16,23 +16,23 @@ { | ||
{ | ||
"uid": "34ba-53", | ||
"uid": "6094-54", | ||
"name": "columnFilterRowsFn.ts" | ||
}, | ||
{ | ||
"uid": "34ba-55", | ||
"uid": "6094-56", | ||
"name": "globalFilterRowsFn.ts" | ||
}, | ||
{ | ||
"uid": "34ba-57", | ||
"uid": "6094-58", | ||
"name": "sortRowsFn.ts" | ||
}, | ||
{ | ||
"uid": "34ba-63", | ||
"uid": "6094-64", | ||
"name": "groupRowsFn.ts" | ||
}, | ||
{ | ||
"uid": "34ba-65", | ||
"uid": "6094-66", | ||
"name": "expandRowsFn.ts" | ||
}, | ||
{ | ||
"uid": "34ba-67", | ||
"uid": "6094-68", | ||
"name": "paginateRowsFn.ts" | ||
@@ -43,3 +43,3 @@ } | ||
{ | ||
"uid": "34ba-61", | ||
"uid": "6094-62", | ||
"name": "utils.tsx" | ||
@@ -51,43 +51,43 @@ }, | ||
{ | ||
"uid": "34ba-69", | ||
"uid": "6094-70", | ||
"name": "Visibility.ts" | ||
}, | ||
{ | ||
"uid": "34ba-73", | ||
"uid": "6094-74", | ||
"name": "Grouping.ts" | ||
}, | ||
{ | ||
"uid": "34ba-75", | ||
"uid": "6094-76", | ||
"name": "Ordering.ts" | ||
}, | ||
{ | ||
"uid": "34ba-77", | ||
"uid": "6094-78", | ||
"name": "Pinning.ts" | ||
}, | ||
{ | ||
"uid": "34ba-79", | ||
"uid": "6094-80", | ||
"name": "Headers.ts" | ||
}, | ||
{ | ||
"uid": "34ba-83", | ||
"uid": "6094-84", | ||
"name": "Filters.ts" | ||
}, | ||
{ | ||
"uid": "34ba-87", | ||
"uid": "6094-88", | ||
"name": "Sorting.ts" | ||
}, | ||
{ | ||
"uid": "34ba-89", | ||
"uid": "6094-90", | ||
"name": "Expanding.ts" | ||
}, | ||
{ | ||
"uid": "34ba-91", | ||
"uid": "6094-92", | ||
"name": "ColumnSizing.ts" | ||
}, | ||
{ | ||
"uid": "34ba-93", | ||
"uid": "6094-94", | ||
"name": "Pagination.ts" | ||
}, | ||
{ | ||
"uid": "34ba-95", | ||
"uid": "6094-96", | ||
"name": "RowSelection.ts" | ||
@@ -98,23 +98,23 @@ } | ||
{ | ||
"uid": "34ba-71", | ||
"uid": "6094-72", | ||
"name": "aggregationTypes.ts" | ||
}, | ||
{ | ||
"uid": "34ba-81", | ||
"uid": "6094-82", | ||
"name": "filterTypes.ts" | ||
}, | ||
{ | ||
"uid": "34ba-85", | ||
"uid": "6094-86", | ||
"name": "sortTypes.ts" | ||
}, | ||
{ | ||
"uid": "34ba-97", | ||
"uid": "6094-98", | ||
"name": "core.tsx" | ||
}, | ||
{ | ||
"uid": "34ba-99", | ||
"uid": "6094-100", | ||
"name": "createTable.tsx" | ||
}, | ||
{ | ||
"uid": "34ba-101", | ||
"uid": "6094-102", | ||
"name": "index.tsx" | ||
@@ -125,3 +125,3 @@ } | ||
{ | ||
"uid": "34ba-59", | ||
"uid": "6094-60", | ||
"name": "\u0000rollupPluginBabelHelpers.js" | ||
@@ -135,158 +135,158 @@ } | ||
"nodeParts": { | ||
"34ba-53": { | ||
"6094-54": { | ||
"renderedLength": 3174, | ||
"gzipLength": 863, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-52" | ||
"mainUid": "6094-53" | ||
}, | ||
"34ba-55": { | ||
"6094-56": { | ||
"renderedLength": 2540, | ||
"gzipLength": 721, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-54" | ||
"mainUid": "6094-55" | ||
}, | ||
"34ba-57": { | ||
"6094-58": { | ||
"renderedLength": 2436, | ||
"gzipLength": 818, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-56" | ||
"mainUid": "6094-57" | ||
}, | ||
"34ba-59": { | ||
"6094-60": { | ||
"renderedLength": 2695, | ||
"gzipLength": 1065, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-58" | ||
"mainUid": "6094-59" | ||
}, | ||
"34ba-61": { | ||
"6094-62": { | ||
"renderedLength": 3651, | ||
"gzipLength": 1305, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-60" | ||
"mainUid": "6094-61" | ||
}, | ||
"34ba-63": { | ||
"6094-64": { | ||
"renderedLength": 4814, | ||
"gzipLength": 1358, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-62" | ||
"mainUid": "6094-63" | ||
}, | ||
"34ba-65": { | ||
"6094-66": { | ||
"renderedLength": 595, | ||
"gzipLength": 266, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-64" | ||
"mainUid": "6094-65" | ||
}, | ||
"34ba-67": { | ||
"6094-68": { | ||
"renderedLength": 720, | ||
"gzipLength": 281, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-66" | ||
"mainUid": "6094-67" | ||
}, | ||
"34ba-69": { | ||
"6094-70": { | ||
"renderedLength": 5635, | ||
"gzipLength": 1151, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-68" | ||
"mainUid": "6094-69" | ||
}, | ||
"34ba-71": { | ||
"6094-72": { | ||
"renderedLength": 2520, | ||
"gzipLength": 755, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-70" | ||
"mainUid": "6094-71" | ||
}, | ||
"34ba-73": { | ||
"6094-74": { | ||
"renderedLength": 7904, | ||
"gzipLength": 1724, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-72" | ||
"mainUid": "6094-73" | ||
}, | ||
"34ba-75": { | ||
"6094-76": { | ||
"renderedLength": 2419, | ||
"gzipLength": 757, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-74" | ||
"mainUid": "6094-75" | ||
}, | ||
"34ba-77": { | ||
"6094-78": { | ||
"renderedLength": 5170, | ||
"gzipLength": 1012, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-76" | ||
"mainUid": "6094-77" | ||
}, | ||
"34ba-79": { | ||
"6094-80": { | ||
"renderedLength": 18878, | ||
"gzipLength": 2991, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-78" | ||
"mainUid": "6094-79" | ||
}, | ||
"34ba-81": { | ||
"6094-82": { | ||
"renderedLength": 4437, | ||
"gzipLength": 786, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-80" | ||
"mainUid": "6094-81" | ||
}, | ||
"34ba-83": { | ||
"6094-84": { | ||
"renderedLength": 17085, | ||
"gzipLength": 2990, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-82" | ||
"mainUid": "6094-83" | ||
}, | ||
"34ba-85": { | ||
"6094-86": { | ||
"renderedLength": 2752, | ||
"gzipLength": 846, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-84" | ||
"mainUid": "6094-85" | ||
}, | ||
"34ba-87": { | ||
"6094-88": { | ||
"renderedLength": 11546, | ||
"gzipLength": 2564, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-86" | ||
"mainUid": "6094-87" | ||
}, | ||
"34ba-89": { | ||
"6094-90": { | ||
"renderedLength": 7870, | ||
"gzipLength": 1718, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-88" | ||
"mainUid": "6094-89" | ||
}, | ||
"34ba-91": { | ||
"6094-92": { | ||
"renderedLength": 9842, | ||
"gzipLength": 2050, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-90" | ||
"mainUid": "6094-91" | ||
}, | ||
"34ba-93": { | ||
"6094-94": { | ||
"renderedLength": 6294, | ||
"gzipLength": 1314, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-92" | ||
"mainUid": "6094-93" | ||
}, | ||
"34ba-95": { | ||
"6094-96": { | ||
"renderedLength": 17855, | ||
"gzipLength": 3118, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-94" | ||
"mainUid": "6094-95" | ||
}, | ||
"34ba-97": { | ||
"renderedLength": 17035, | ||
"gzipLength": 3474, | ||
"6094-98": { | ||
"renderedLength": 17220, | ||
"gzipLength": 3526, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-96" | ||
"mainUid": "6094-97" | ||
}, | ||
"34ba-99": { | ||
"renderedLength": 2294, | ||
"gzipLength": 595, | ||
"6094-100": { | ||
"renderedLength": 1840, | ||
"gzipLength": 509, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-98" | ||
"mainUid": "6094-99" | ||
}, | ||
"34ba-101": { | ||
"6094-102": { | ||
"renderedLength": 0, | ||
"gzipLength": 0, | ||
"brotliLength": 0, | ||
"mainUid": "34ba-100" | ||
"mainUid": "6094-101" | ||
} | ||
}, | ||
"nodeMetas": { | ||
"34ba-52": { | ||
"6094-53": { | ||
"id": "/packages/react-table/src/utils/columnFilterRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-53" | ||
"index.production.js": "6094-54" | ||
}, | ||
@@ -296,10 +296,10 @@ "imported": [], | ||
{ | ||
"uid": "34ba-100" | ||
"uid": "6094-101" | ||
} | ||
] | ||
}, | ||
"34ba-54": { | ||
"6094-55": { | ||
"id": "/packages/react-table/src/utils/globalFilterRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-55" | ||
"index.production.js": "6094-56" | ||
}, | ||
@@ -309,10 +309,10 @@ "imported": [], | ||
{ | ||
"uid": "34ba-100" | ||
"uid": "6094-101" | ||
} | ||
] | ||
}, | ||
"34ba-56": { | ||
"6094-57": { | ||
"id": "/packages/react-table/src/utils/sortRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-57" | ||
"index.production.js": "6094-58" | ||
}, | ||
@@ -322,10 +322,10 @@ "imported": [], | ||
{ | ||
"uid": "34ba-100" | ||
"uid": "6094-101" | ||
} | ||
] | ||
}, | ||
"34ba-58": { | ||
"6094-59": { | ||
"id": "\u0000rollupPluginBabelHelpers.js", | ||
"moduleParts": { | ||
"index.production.js": "34ba-59" | ||
"index.production.js": "6094-60" | ||
}, | ||
@@ -335,44 +335,44 @@ "imported": [], | ||
{ | ||
"uid": "34ba-98" | ||
"uid": "6094-99" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
}, | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
}, | ||
{ | ||
"uid": "34ba-68" | ||
"uid": "6094-69" | ||
}, | ||
{ | ||
"uid": "34ba-86" | ||
"uid": "6094-87" | ||
}, | ||
{ | ||
"uid": "34ba-88" | ||
"uid": "6094-89" | ||
}, | ||
{ | ||
"uid": "34ba-90" | ||
"uid": "6094-91" | ||
}, | ||
{ | ||
"uid": "34ba-92" | ||
"uid": "6094-93" | ||
}, | ||
{ | ||
"uid": "34ba-94" | ||
"uid": "6094-95" | ||
}, | ||
{ | ||
"uid": "34ba-70" | ||
"uid": "6094-71" | ||
} | ||
] | ||
}, | ||
"34ba-60": { | ||
"6094-61": { | ||
"id": "/packages/react-table/src/utils.tsx", | ||
"moduleParts": { | ||
"index.production.js": "34ba-61" | ||
"index.production.js": "6094-62" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-58" | ||
"uid": "6094-59" | ||
}, | ||
{ | ||
"uid": "34ba-103" | ||
"uid": "6094-104" | ||
} | ||
@@ -382,50 +382,50 @@ ], | ||
{ | ||
"uid": "34ba-62" | ||
"uid": "6094-63" | ||
}, | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
}, | ||
{ | ||
"uid": "34ba-68" | ||
"uid": "6094-69" | ||
}, | ||
{ | ||
"uid": "34ba-74" | ||
"uid": "6094-75" | ||
}, | ||
{ | ||
"uid": "34ba-76" | ||
"uid": "6094-77" | ||
}, | ||
{ | ||
"uid": "34ba-78" | ||
"uid": "6094-79" | ||
}, | ||
{ | ||
"uid": "34ba-82" | ||
"uid": "6094-83" | ||
}, | ||
{ | ||
"uid": "34ba-86" | ||
"uid": "6094-87" | ||
}, | ||
{ | ||
"uid": "34ba-72" | ||
"uid": "6094-73" | ||
}, | ||
{ | ||
"uid": "34ba-88" | ||
"uid": "6094-89" | ||
}, | ||
{ | ||
"uid": "34ba-90" | ||
"uid": "6094-91" | ||
}, | ||
{ | ||
"uid": "34ba-92" | ||
"uid": "6094-93" | ||
}, | ||
{ | ||
"uid": "34ba-94" | ||
"uid": "6094-95" | ||
} | ||
] | ||
}, | ||
"34ba-62": { | ||
"6094-63": { | ||
"id": "/packages/react-table/src/utils/groupRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-63" | ||
"index.production.js": "6094-64" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -435,10 +435,10 @@ ], | ||
{ | ||
"uid": "34ba-100" | ||
"uid": "6094-101" | ||
} | ||
] | ||
}, | ||
"34ba-64": { | ||
"6094-65": { | ||
"id": "/packages/react-table/src/utils/expandRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-65" | ||
"index.production.js": "6094-66" | ||
}, | ||
@@ -448,17 +448,17 @@ "imported": [], | ||
{ | ||
"uid": "34ba-100" | ||
"uid": "6094-101" | ||
}, | ||
{ | ||
"uid": "34ba-66" | ||
"uid": "6094-67" | ||
} | ||
] | ||
}, | ||
"34ba-66": { | ||
"6094-67": { | ||
"id": "/packages/react-table/src/utils/paginateRowsFn.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-67" | ||
"index.production.js": "6094-68" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-64" | ||
"uid": "6094-65" | ||
} | ||
@@ -468,17 +468,17 @@ ], | ||
{ | ||
"uid": "34ba-100" | ||
"uid": "6094-101" | ||
} | ||
] | ||
}, | ||
"34ba-68": { | ||
"6094-69": { | ||
"id": "/packages/react-table/src/features/Visibility.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-69" | ||
"index.production.js": "6094-70" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-58" | ||
"uid": "6094-59" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -488,14 +488,14 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
} | ||
] | ||
}, | ||
"34ba-70": { | ||
"6094-71": { | ||
"id": "/packages/react-table/src/aggregationTypes.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-71" | ||
"index.production.js": "6094-72" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-58" | ||
"uid": "6094-59" | ||
} | ||
@@ -505,17 +505,17 @@ ], | ||
{ | ||
"uid": "34ba-72" | ||
"uid": "6094-73" | ||
} | ||
] | ||
}, | ||
"34ba-72": { | ||
"6094-73": { | ||
"id": "/packages/react-table/src/features/Grouping.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-73" | ||
"index.production.js": "6094-74" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-70" | ||
"uid": "6094-71" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -525,20 +525,20 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
}, | ||
{ | ||
"uid": "34ba-74" | ||
"uid": "6094-75" | ||
} | ||
] | ||
}, | ||
"34ba-74": { | ||
"6094-75": { | ||
"id": "/packages/react-table/src/features/Ordering.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-75" | ||
"index.production.js": "6094-76" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
}, | ||
{ | ||
"uid": "34ba-72" | ||
"uid": "6094-73" | ||
} | ||
@@ -548,14 +548,14 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
} | ||
] | ||
}, | ||
"34ba-76": { | ||
"6094-77": { | ||
"id": "/packages/react-table/src/features/Pinning.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-77" | ||
"index.production.js": "6094-78" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -565,14 +565,14 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
} | ||
] | ||
}, | ||
"34ba-78": { | ||
"6094-79": { | ||
"id": "/packages/react-table/src/features/Headers.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-79" | ||
"index.production.js": "6094-80" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -582,10 +582,10 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
} | ||
] | ||
}, | ||
"34ba-80": { | ||
"6094-81": { | ||
"id": "/packages/react-table/src/filterTypes.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-81" | ||
"index.production.js": "6094-82" | ||
}, | ||
@@ -595,17 +595,17 @@ "imported": [], | ||
{ | ||
"uid": "34ba-82" | ||
"uid": "6094-83" | ||
} | ||
] | ||
}, | ||
"34ba-82": { | ||
"6094-83": { | ||
"id": "/packages/react-table/src/features/Filters.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-83" | ||
"index.production.js": "6094-84" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-80" | ||
"uid": "6094-81" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -615,10 +615,10 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
} | ||
] | ||
}, | ||
"34ba-84": { | ||
"6094-85": { | ||
"id": "/packages/react-table/src/sortTypes.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-85" | ||
"index.production.js": "6094-86" | ||
}, | ||
@@ -628,20 +628,20 @@ "imported": [], | ||
{ | ||
"uid": "34ba-86" | ||
"uid": "6094-87" | ||
} | ||
] | ||
}, | ||
"34ba-86": { | ||
"6094-87": { | ||
"id": "/packages/react-table/src/features/Sorting.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-87" | ||
"index.production.js": "6094-88" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-58" | ||
"uid": "6094-59" | ||
}, | ||
{ | ||
"uid": "34ba-84" | ||
"uid": "6094-85" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -651,17 +651,17 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
} | ||
] | ||
}, | ||
"34ba-88": { | ||
"6094-89": { | ||
"id": "/packages/react-table/src/features/Expanding.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-89" | ||
"index.production.js": "6094-90" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-58" | ||
"uid": "6094-59" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -671,17 +671,17 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
} | ||
] | ||
}, | ||
"34ba-90": { | ||
"6094-91": { | ||
"id": "/packages/react-table/src/features/ColumnSizing.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-91" | ||
"index.production.js": "6094-92" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-58" | ||
"uid": "6094-59" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -691,17 +691,17 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
} | ||
] | ||
}, | ||
"34ba-92": { | ||
"6094-93": { | ||
"id": "/packages/react-table/src/features/Pagination.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-93" | ||
"index.production.js": "6094-94" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-58" | ||
"uid": "6094-59" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -711,17 +711,17 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
} | ||
] | ||
}, | ||
"34ba-94": { | ||
"6094-95": { | ||
"id": "/packages/react-table/src/features/RowSelection.ts", | ||
"moduleParts": { | ||
"index.production.js": "34ba-95" | ||
"index.production.js": "6094-96" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-58" | ||
"uid": "6094-59" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
@@ -731,50 +731,50 @@ ], | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-97" | ||
} | ||
] | ||
}, | ||
"34ba-96": { | ||
"6094-97": { | ||
"id": "/packages/react-table/src/core.tsx", | ||
"moduleParts": { | ||
"index.production.js": "34ba-97" | ||
"index.production.js": "6094-98" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-58" | ||
"uid": "6094-59" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
}, | ||
{ | ||
"uid": "34ba-68" | ||
"uid": "6094-69" | ||
}, | ||
{ | ||
"uid": "34ba-74" | ||
"uid": "6094-75" | ||
}, | ||
{ | ||
"uid": "34ba-76" | ||
"uid": "6094-77" | ||
}, | ||
{ | ||
"uid": "34ba-78" | ||
"uid": "6094-79" | ||
}, | ||
{ | ||
"uid": "34ba-82" | ||
"uid": "6094-83" | ||
}, | ||
{ | ||
"uid": "34ba-86" | ||
"uid": "6094-87" | ||
}, | ||
{ | ||
"uid": "34ba-72" | ||
"uid": "6094-73" | ||
}, | ||
{ | ||
"uid": "34ba-88" | ||
"uid": "6094-89" | ||
}, | ||
{ | ||
"uid": "34ba-90" | ||
"uid": "6094-91" | ||
}, | ||
{ | ||
"uid": "34ba-92" | ||
"uid": "6094-93" | ||
}, | ||
{ | ||
"uid": "34ba-94" | ||
"uid": "6094-95" | ||
} | ||
@@ -784,20 +784,23 @@ ], | ||
{ | ||
"uid": "34ba-98" | ||
"uid": "6094-99" | ||
} | ||
] | ||
}, | ||
"34ba-98": { | ||
"6094-99": { | ||
"id": "/packages/react-table/src/createTable.tsx", | ||
"moduleParts": { | ||
"index.production.js": "34ba-99" | ||
"index.production.js": "6094-100" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-58" | ||
"uid": "6094-59" | ||
}, | ||
{ | ||
"uid": "34ba-103" | ||
"uid": "6094-104" | ||
}, | ||
{ | ||
"uid": "34ba-96" | ||
"uid": "6094-105" | ||
}, | ||
{ | ||
"uid": "6094-97" | ||
} | ||
@@ -807,35 +810,35 @@ ], | ||
{ | ||
"uid": "34ba-100" | ||
"uid": "6094-101" | ||
} | ||
] | ||
}, | ||
"34ba-100": { | ||
"6094-101": { | ||
"id": "/packages/react-table/src/index.tsx", | ||
"moduleParts": { | ||
"index.production.js": "34ba-101" | ||
"index.production.js": "6094-102" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "34ba-102" | ||
"uid": "6094-103" | ||
}, | ||
{ | ||
"uid": "34ba-52" | ||
"uid": "6094-53" | ||
}, | ||
{ | ||
"uid": "34ba-54" | ||
"uid": "6094-55" | ||
}, | ||
{ | ||
"uid": "34ba-56" | ||
"uid": "6094-57" | ||
}, | ||
{ | ||
"uid": "34ba-62" | ||
"uid": "6094-63" | ||
}, | ||
{ | ||
"uid": "34ba-64" | ||
"uid": "6094-65" | ||
}, | ||
{ | ||
"uid": "34ba-66" | ||
"uid": "6094-67" | ||
}, | ||
{ | ||
"uid": "34ba-98" | ||
"uid": "6094-99" | ||
} | ||
@@ -846,3 +849,3 @@ ], | ||
}, | ||
"34ba-102": { | ||
"6094-103": { | ||
"id": "/packages/react-table/src/types.ts", | ||
@@ -853,7 +856,7 @@ "moduleParts": {}, | ||
{ | ||
"uid": "34ba-100" | ||
"uid": "6094-101" | ||
} | ||
] | ||
}, | ||
"34ba-103": { | ||
"6094-104": { | ||
"id": "react", | ||
@@ -864,9 +867,20 @@ "moduleParts": {}, | ||
{ | ||
"uid": "34ba-98" | ||
"uid": "6094-99" | ||
}, | ||
{ | ||
"uid": "34ba-60" | ||
"uid": "6094-61" | ||
} | ||
], | ||
"isExternal": true | ||
}, | ||
"6094-105": { | ||
"id": "use-sync-external-store/shim", | ||
"moduleParts": {}, | ||
"imported": [], | ||
"importedBy": [ | ||
{ | ||
"uid": "6094-99" | ||
} | ||
], | ||
"isExternal": true | ||
} | ||
@@ -873,0 +887,0 @@ }, |
@@ -17,3 +17,4 @@ import { RequiredKeys } from './utils'; | ||
export declare type TableCore<TData, TValue, TFilterFns, TSortingFns, TAggregationFns> = { | ||
rerender: () => void; | ||
subscribe: (cb: () => void) => () => void; | ||
notify: () => void; | ||
initialState: TableState; | ||
@@ -110,2 +111,2 @@ internalState: TableState; | ||
}; | ||
export declare function createTableInstance<TData, TValue, TFilterFns, TSortingFns, TAggregationFns>(options: Options<TData, TValue, TFilterFns, TSortingFns, TAggregationFns>, rerender: () => void): ReactTable<TData, TValue, TFilterFns, TSortingFns, TAggregationFns>; | ||
export declare function createTableInstance<TData, TValue, TFilterFns, TSortingFns, TAggregationFns>(options: Options<TData, TValue, TFilterFns, TSortingFns, TAggregationFns>): ReactTable<TData, TValue, TFilterFns, TSortingFns, TAggregationFns>; |
{ | ||
"name": "@tanstack/react-table", | ||
"author": "Tanner Linsley", | ||
"version": "8.0.0-alpha.7", | ||
"version": "8.0.0-alpha.8", | ||
"description": "Hooks for building lightweight, fast and extendable datagrids for React", | ||
@@ -39,3 +39,9 @@ "license": "MIT", | ||
"react-dom": ">=16" | ||
}, | ||
"dependencies": { | ||
"use-sync-external-store": "^1.0.0-rc.0" | ||
}, | ||
"devDependencies": { | ||
"@types/use-sync-external-store": "^0.0.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2364379
3
1
22495
+ Addeduse-sync-external-store@1.2.2(transitive)