material-react-table 1.14.0 → 1.15.0

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.
@@ -253,7 +253,7 @@ export const MRT_TableBodyCell = ({
253
253
  <>
254
254
  {cell.getIsPlaceholder() ? (
255
255
  columnDef.PlaceholderCell?.({ cell, column, row, table }) ?? null
256
- ) : isLoading || showSkeletons ? (
256
+ ) : (isLoading || showSkeletons) && cell.getValue() === null ? (
257
257
  <Skeleton
258
258
  animation="wave"
259
259
  height={20}
package/src/sortingFns.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { compareItems, type RankingInfo } from '@tanstack/match-sorter-utils';
2
2
  import { type Row, sortingFns } from '@tanstack/react-table';
3
- import { type MRT_Row } from './types';
4
3
 
5
4
  const fuzzy = <TData extends Record<string, any> = {}>(
6
5
  rowA: Row<TData>,
@@ -25,9 +24,6 @@ export const MRT_SortingFns = {
25
24
  fuzzy,
26
25
  };
27
26
 
28
- export const rankGlobalFuzzy = <TData extends Record<string, any> = {}>(
29
- rowA: MRT_Row<TData>,
30
- rowB: MRT_Row<TData>,
31
- ) =>
27
+ export const rankGlobalFuzzy: any = (rowA: any, rowB: any) =>
32
28
  Math.max(...Object.values(rowB.columnFiltersMeta).map((v: any) => v.rank)) -
33
29
  Math.max(...Object.values(rowA.columnFiltersMeta).map((v: any) => v.rank));