Skip to content

Commit

Permalink
chore: package and type upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Jul 17, 2024
1 parent 8a02c5a commit 0610c0a
Show file tree
Hide file tree
Showing 15 changed files with 1,903 additions and 2,868 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const localeStringOptions = {
currency: 'USD',
minimumFractionDigits: 0,
maximumFractionDigits: 0,
};
} as const;

const Example = () => {
const columns = useMemo<MRT_ColumnDef<Person>[]>(
Expand Down
36 changes: 18 additions & 18 deletions apps/material-react-table-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,46 @@
"sitemap": "pnpm docs:sitemap"
},
"dependencies": {
"@docsearch/js": "3.6.0",
"@docsearch/js": "3.6.1",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@faker-js/faker": "^8.4.1",
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@mui/icons-material": "^5.15.19",
"@mui/material": "^5.15.19",
"@mui/x-charts": "^7.6.1",
"@mui/x-date-pickers": "^7.6.1",
"@next/mdx": "^14.2.3",
"@tanstack/react-query": "^5.40.0",
"@tanstack/react-table-devtools": "^8.17.3",
"@mui/icons-material": "^5.16.4",
"@mui/material": "^5.16.4",
"@mui/x-charts": "^7.10.0",
"@mui/x-date-pickers": "^7.10.0",
"@next/mdx": "^14.2.5",
"@tanstack/react-query": "^5.51.5",
"@tanstack/react-table-devtools": "^8.19.3",
"@types/mdx": "^2.0.13",
"dayjs": "^1.11.11",
"export-to-csv": "^1.3.0",
"jspdf": "^2.5.1",
"jspdf-autotable": "^3.8.2",
"material-react-table": "workspace:*",
"next": "14.2.3",
"next": "14.2.5",
"next-sitemap": "^4.2.3",
"prism-react-renderer": "^2.3.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.35.6",
"@types/node": "^20.14.0",
"@tanstack/eslint-plugin-query": "^5.51.1",
"@types/node": "^20.14.11",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"eslint": "9.4.0",
"eslint-config-next": "14.2.3",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"eslint": "9.7.0",
"eslint-config-next": "14.2.5",
"next-plausible": "^3.12.0",
"raw-loader": "^4.0.2",
"typescript": "5.4.5"
"typescript": "5.5.3"
}
}
8 changes: 4 additions & 4 deletions apps/test-cra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.15.19",
"@mui/material": "^5.15.19",
"@mui/x-date-pickers": "^7.6.1",
"@testing-library/jest-dom": "^6.4.5",
"@mui/icons-material": "^5.16.4",
"@mui/material": "^5.16.4",
"@mui/x-date-pickers": "^7.10.0",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"material-react-table": "workspace:*",
Expand Down
24 changes: 12 additions & 12 deletions apps/test-remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.15.19",
"@mui/material": "^5.15.19",
"@mui/x-date-pickers": "^7.6.1",
"@remix-run/css-bundle": "^2.9.2",
"@remix-run/node": "^2.9.2",
"@remix-run/react": "^2.9.2",
"@remix-run/serve": "^2.9.2",
"isbot": "^5.1.8",
"@mui/icons-material": "^5.16.4",
"@mui/material": "^5.16.4",
"@mui/x-date-pickers": "^7.10.0",
"@remix-run/css-bundle": "^2.10.3",
"@remix-run/node": "^2.10.3",
"@remix-run/react": "^2.10.3",
"@remix-run/serve": "^2.10.3",
"isbot": "^5.1.13",
"material-react-table": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@remix-run/dev": "^2.9.2",
"@remix-run/eslint-config": "^2.9.2",
"@remix-run/dev": "^2.10.3",
"@remix-run/eslint-config": "^2.10.3",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint": "^9.4.0",
"typescript": "^5.4.5"
"eslint": "^9.7.0",
"typescript": "^5.5.3"
},
"engines": {
"node": ">=18.0.0"
Expand Down
20 changes: 10 additions & 10 deletions apps/test-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.15.19",
"@mui/material": "^5.15.19",
"@mui/x-date-pickers": "^7.6.1",
"@mui/icons-material": "^5.16.4",
"@mui/material": "^5.16.4",
"@mui/x-date-pickers": "^7.10.0",
"material-react-table": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"@vitejs/plugin-react": "^4.3.0",
"eslint": "^9.4.0",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.7.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"typescript": "^5.4.5",
"vite": "^5.2.12"
"eslint-plugin-react-refresh": "^0.4.8",
"typescript": "^5.5.3",
"vite": "^5.3.4"
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
"storybook:dev": "turbo run storybook"
},
"devDependencies": {
"prettier": "^3.3.0",
"turbo": "^1.13.3"
"prettier": "^3.3.3",
"turbo": "^2.0.7"
},
"engines": {
"node": ">=16.0.0"
}
},
"packageManager": "[email protected]"
}
48 changes: 24 additions & 24 deletions packages/material-react-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,28 +65,28 @@
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@faker-js/faker": "^8.4.1",
"@mui/icons-material": "^5.15.19",
"@mui/material": "^5.15.19",
"@mui/x-date-pickers": "^7.6.1",
"@mui/icons-material": "^5.16.4",
"@mui/material": "^5.16.4",
"@mui/x-date-pickers": "^7.10.0",
"@rollup/plugin-typescript": "^11.1.6",
"@size-limit/preset-small-lib": "^11.1.4",
"@storybook/addon-a11y": "^8.1.5",
"@storybook/addon-essentials": "^8.1.5",
"@storybook/addon-links": "^8.1.5",
"@storybook/addon-storysource": "^8.1.5",
"@storybook/blocks": "^8.1.5",
"@storybook/preview-api": "^8.1.5",
"@storybook/react": "^8.1.5",
"@storybook/react-vite": "^8.1.5",
"@types/node": "^20.14.0",
"@storybook/addon-a11y": "^8.2.4",
"@storybook/addon-essentials": "^8.2.4",
"@storybook/addon-links": "^8.2.4",
"@storybook/addon-storysource": "^8.2.4",
"@storybook/blocks": "^8.2.4",
"@storybook/preview-api": "^8.2.4",
"@storybook/react": "^8.2.4",
"@storybook/react-vite": "^8.2.4",
"@types/node": "^20.14.11",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"@vitejs/plugin-react": "^4.3.0",
"eslint": "^9.4.0",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.7.0",
"eslint-plugin-mui-path-imports": "^0.0.15",
"eslint-plugin-perfectionist": "^2.10.0",
"eslint-plugin-perfectionist": "^2.11.0",
"eslint-plugin-storybook": "^0.8.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
Expand All @@ -98,11 +98,11 @@
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"size-limit": "^11.1.4",
"storybook": "^8.1.5",
"storybook-dark-mode": "^4.0.1",
"tslib": "^2.6.2",
"typescript": "^5.4.5",
"vite": "^5.2.12"
"storybook": "^8.2.4",
"storybook-dark-mode": "^4.0.2",
"tslib": "^2.6.3",
"typescript": "^5.5.3",
"vite": "^5.3.4"
},
"peerDependencies": {
"@emotion/react": ">=11.11",
Expand All @@ -115,8 +115,8 @@
},
"dependencies": {
"@tanstack/match-sorter-utils": "8.15.1",
"@tanstack/react-table": "8.17.3",
"@tanstack/react-virtual": "3.5.0",
"@tanstack/react-table": "8.19.3",
"@tanstack/react-virtual": "3.8.3",
"highlight-words": "1.2.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const MRT_TableBody = <TData extends MRT_RowData>({
rowVirtualizer,
staticRowIndex,
virtualRow: rowVirtualizer
? (rowOrVirtualRow as VirtualItem)
? (rowOrVirtualRow as VirtualItem<HTMLTableRowElement>)
: undefined,
};
const key = `${row.id}-${row.index}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface MRT_TableBodyRowProps<TData extends MRT_RowData>
rowVirtualizer?: MRT_RowVirtualizer;
staticRowIndex: number;
table: MRT_TableInstance<TData>;
virtualRow?: VirtualItem;
virtualRow?: VirtualItem<HTMLTableRowElement>;
}

export const MRT_TableBodyRow = <TData extends MRT_RowData>({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface MRT_TableDetailPanelProps<TData extends MRT_RowData>
rowVirtualizer?: MRT_RowVirtualizer;
staticRowIndex: number;
table: MRT_TableInstance<TData>;
virtualRow?: MRT_VirtualItem;
virtualRow?: MRT_VirtualItem<HTMLTableRowElement>;
}

export const MRT_TableDetailPanel = <TData extends MRT_RowData>({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const useMRT_ColumnVirtualizer = <
}) as unknown as MRT_ColumnVirtualizer<TScrollElement, TItemElement>;

const virtualColumns = columnVirtualizer.getVirtualItems();
columnVirtualizer.virtualColumns = virtualColumns;
columnVirtualizer.virtualColumns = virtualColumns as any;
const numColumns = virtualColumns.length;

if (numColumns) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const useMRT_RowVirtualizer = <
...rowVirtualizerProps,
}) as unknown as MRT_RowVirtualizer<TScrollElement, TItemElement>;

rowVirtualizer.virtualRows = rowVirtualizer.getVirtualItems();
rowVirtualizer.virtualRows = rowVirtualizer.getVirtualItems() as any;

if (rowVirtualizerInstanceRef) {
//@ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion packages/material-react-table/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export type MRT_PaginationState = PaginationState;
export type MRT_RowSelectionState = RowSelectionState;
export type MRT_SortingState = SortingState;
export type MRT_Updater<T> = Updater<T>;
export type MRT_VirtualItem = VirtualItem;
export type MRT_VirtualItem<T extends Element = Element> = VirtualItem<T>;
export type MRT_VisibilityState = VisibilityState;

export type MRT_VirtualizerOptions<
Expand Down
Loading

0 comments on commit 0610c0a

Please sign in to comment.