Skip to content

Commit

Permalink
package upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Sep 13, 2024
1 parent d76d6cf commit e951e6a
Show file tree
Hide file tree
Showing 10 changed files with 1,376 additions and 2,337 deletions.
2 changes: 1 addition & 1 deletion apps/material-react-table-docs/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
32 changes: 16 additions & 16 deletions apps/material-react-table-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,45 +16,45 @@
"@docsearch/js": "3.6.1",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@faker-js/faker": "^8.4.1",
"@faker-js/faker": "^9.0.0",
"@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": "^6.0.1",
"@mui/material": "^6.0.1",
"@mui/x-charts": "^7.15.0",
"@mui/x-date-pickers": "^7.15.0",
"@next/mdx": "^14.2.7",
"@tanstack/react-query": "^5.53.3",
"@mui/icons-material": "^6.1.0",
"@mui/material": "^6.1.0",
"@mui/x-charts": "^7.16.0",
"@mui/x-date-pickers": "^7.16.0",
"@next/mdx": "^14.2.11",
"@tanstack/react-query": "^5.56.2",
"@tanstack/react-table-devtools": "^8.20.5",
"@types/mdx": "^2.0.13",
"dayjs": "^1.11.13",
"export-to-csv": "^1.4.0",
"highlight-words": "1.2.2",
"highlight-words": "2.0.0",
"jspdf": "^2.5.1",
"jspdf-autotable": "^3.8.3",
"match-sorter": "^6.3.4",
"material-react-table": "workspace:*",
"next": "14.2.7",
"next": "14.2.11",
"next-sitemap": "^4.2.3",
"prism-react-renderer": "^2.4.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@tanstack/eslint-plugin-query": "^5.53.0",
"@types/node": "^22.5.2",
"@tanstack/eslint-plugin-query": "^5.56.1",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"eslint": "9.9.1",
"eslint-config-next": "14.2.7",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"eslint": "9.10.0",
"eslint-config-next": "14.2.11",
"next-plausible": "^3.12.2",
"raw-loader": "^4.0.2",
"typescript": "5.5.4"
"typescript": "5.6.2"
}
}
6 changes: 3 additions & 3 deletions apps/test-cra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^6.0.1",
"@mui/material": "^6.0.1",
"@mui/x-date-pickers": "^7.15.0",
"@mui/icons-material": "^6.1.0",
"@mui/material": "^6.1.0",
"@mui/x-date-pickers": "^7.16.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
Expand Down
22 changes: 11 additions & 11 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.13.3",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^6.0.1",
"@mui/material": "^6.0.1",
"@mui/x-date-pickers": "^7.15.0",
"@remix-run/css-bundle": "^2.11.2",
"@remix-run/node": "^2.11.2",
"@remix-run/react": "^2.11.2",
"@remix-run/serve": "^2.11.2",
"@mui/icons-material": "^6.1.0",
"@mui/material": "^6.1.0",
"@mui/x-date-pickers": "^7.16.0",
"@remix-run/css-bundle": "^2.12.0",
"@remix-run/node": "^2.12.0",
"@remix-run/react": "^2.12.0",
"@remix-run/serve": "^2.12.0",
"isbot": "^5.1.17",
"material-react-table": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@remix-run/dev": "^2.11.2",
"@remix-run/eslint-config": "^2.11.2",
"@remix-run/dev": "^2.12.0",
"@remix-run/eslint-config": "^2.12.0",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"eslint": "^9.9.1",
"typescript": "^5.5.4"
"eslint": "^9.10.0",
"typescript": "^5.6.2"
},
"engines": {
"node": ">=18.0.0"
Expand Down
16 changes: 8 additions & 8 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.13.3",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^6.0.1",
"@mui/material": "^6.0.1",
"@mui/x-date-pickers": "^7.15.0",
"@mui/icons-material": "^6.1.0",
"@mui/material": "^6.1.0",
"@mui/x-date-pickers": "^7.16.0",
"material-react-table": "workspace:*",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.9.1",
"eslint": "^9.10.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.11",
"typescript": "^5.5.4",
"vite": "^5.4.2"
"typescript": "^5.6.2",
"vite": "^5.4.4"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"devDependencies": {
"prettier": "^3.3.3",
"turbo": "^2.1.1"
"turbo": "^2.1.2"
},
"engines": {
"node": ">=16.0.0"
Expand Down
50 changes: 25 additions & 25 deletions packages/material-react-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,45 +64,45 @@
"devDependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@faker-js/faker": "^8.4.1",
"@mui/icons-material": "^6.0.1",
"@mui/material": "^6.0.1",
"@mui/x-date-pickers": "^7.15.0",
"@faker-js/faker": "^9.0.0",
"@mui/icons-material": "^6.1.0",
"@mui/material": "^6.1.0",
"@mui/x-date-pickers": "^7.16.0",
"@rollup/plugin-typescript": "^11.1.6",
"@size-limit/preset-small-lib": "^11.1.4",
"@storybook/addon-a11y": "^8.2.9",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-links": "^8.2.9",
"@storybook/addon-storysource": "^8.2.9",
"@storybook/blocks": "^8.2.9",
"@storybook/preview-api": "^8.2.9",
"@storybook/react": "^8.2.9",
"@storybook/react-vite": "^8.2.9",
"@types/node": "^22.5.2",
"@size-limit/preset-small-lib": "^11.1.5",
"@storybook/addon-a11y": "^8.3.0",
"@storybook/addon-essentials": "^8.3.0",
"@storybook/addon-links": "^8.3.0",
"@storybook/addon-storysource": "^8.3.0",
"@storybook/blocks": "^8.3.0",
"@storybook/preview-api": "^8.3.0",
"@storybook/react": "^8.3.0",
"@storybook/react-vite": "^8.3.0",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.9.1",
"eslint": "^9.10.0",
"eslint-plugin-mui-path-imports": "^0.0.15",
"eslint-plugin-perfectionist": "^3.3.0",
"eslint-plugin-perfectionist": "^3.5.0",
"eslint-plugin-storybook": "^0.8.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-is": "^18.3.1",
"rollup": "^2.79.1",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-delete": "^2.1.0",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"size-limit": "^11.1.4",
"storybook": "^8.2.9",
"size-limit": "^11.1.5",
"storybook": "^8.3.0",
"storybook-dark-mode": "^4.0.2",
"tslib": "^2.7.0",
"typescript": "^5.5.4",
"vite": "^5.4.2"
"typescript": "^5.6.2",
"vite": "^5.4.4"
},
"peerDependencies": {
"@emotion/react": ">=11.13",
Expand All @@ -116,7 +116,7 @@
"dependencies": {
"@tanstack/match-sorter-utils": "8.19.4",
"@tanstack/react-table": "8.20.5",
"@tanstack/react-virtual": "3.10.6",
"highlight-words": "1.2.2"
"@tanstack/react-virtual": "3.10.7",
"highlight-words": "2.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const MRT_FilterTextField = <TData extends MRT_RowData>({
textFieldProps?.onChange?.(event);
};

const handleAutocompleteChange = (newValue: DropdownOption) => {
const handleAutocompleteChange = (newValue: DropdownOption | null) => {
setAutocompleteValue(newValue);
handleChange(getValueAndLabel(newValue).value);
};
Expand Down Expand Up @@ -422,7 +422,8 @@ export const MRT_FilterTextField = <TData extends MRT_RowData>({
getOptionLabel={(option: DropdownOption) =>
getValueAndLabel(option).label
}
onChange={(_e, newValue: DropdownOption) =>
// @ts-ignore
onChange={(_e, newValue: DropdownOption | null) =>
handleAutocompleteChange(newValue)
}
options={
Expand Down
2 changes: 1 addition & 1 deletion packages/material-react-table/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const parseFromValuesOrFunc = <T, U>(
): T | undefined => (fn instanceof Function ? fn(arg) : fn);

export const getValueAndLabel = (
option?: DropdownOption,
option?: DropdownOption | null,
): { label: string; value: string } => {
let label: string = '';
let value: string = '';
Expand Down
Loading

0 comments on commit e951e6a

Please sign in to comment.