Skip to content

Commit

Permalink
Bump babel to ^7.22.5 (#37422)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ZeeshanTamboli <[email protected]>
  • Loading branch information
renovate[bot] and ZeeshanTamboli committed Jun 21, 2023
1 parent a089112 commit cc045c6
Show file tree
Hide file tree
Showing 49 changed files with 856 additions and 782 deletions.
1 change: 0 additions & 1 deletion docs/data/base/components/menu/MenuSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { ListActionTypes } from '@mui/base/useList';

export default function UnstyledMenuSimple() {
const [buttonElement, setButtonElement] = React.useState(null);

const [isOpen, setOpen] = React.useState(false);
const menuActions = React.useRef(null);
const preventReopen = React.useRef(false);
Expand Down
1 change: 0 additions & 1 deletion docs/data/base/components/menu/UnstyledMenuIntroduction.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { ListActionTypes } from '@mui/base/useList';

export default function UnstyledMenuIntroduction() {
const [buttonElement, setButtonElement] = React.useState(null);

const [isOpen, setOpen] = React.useState(false);
const menuActions = React.useRef(null);
const preventReopen = React.useRef(false);
Expand Down
1 change: 0 additions & 1 deletion docs/data/base/components/menu/UseMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ MenuItem.propTypes = {

export default function UseMenu() {
const [buttonElement, setButtonElement] = React.useState(null);

const [isOpen, setOpen] = React.useState(false);
const preventReopen = React.useRef(false);

Expand Down
1 change: 0 additions & 1 deletion docs/data/base/components/menu/WrappedMenuItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ MenuSection.propTypes = {

export default function WrappedMenuItems() {
const [buttonElement, setButtonElement] = React.useState(null);

const [isOpen, setOpen] = React.useState(false);
const menuActions = React.useRef(null);
const preventReopen = React.useRef(false);
Expand Down
1 change: 0 additions & 1 deletion docs/data/base/components/popper/PlacementPopper.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ PlacementForm.propTypes = {
export default function PlacementPopper() {
const [anchorEl, setAnchorEl] = React.useState(null);
const [placement, setPlacement] = React.useState(undefined);

return (
<div style={{ width: '100%' }}>
<PlacementForm setPlacement={setPlacement} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export default function UnstyledTable() {
</td>
</tr>
))}

{emptyRows > 0 && (
<tr style={{ height: 41 * emptyRows }}>
<td colSpan={3} />
Expand Down
2 changes: 0 additions & 2 deletions docs/data/joy/components/autocomplete/AutocompleteHint.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default function AutocompleteHint() {
const matchingOption = top100Films.find((option) =>
option.label.startsWith(value),
);

if (value && matchingOption) {
hint.current = matchingOption.label;
} else {
Expand Down Expand Up @@ -69,7 +68,6 @@ export default function AutocompleteHint() {
const matchingOption = options.find((option) =>
option.label.startsWith(state.inputValue),
);

if (displayOptions.length > 0 && state.inputValue && matchingOption) {
hint.current = matchingOption.label;
} else {
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/avatar/MaxAndTotalAvatars.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export default function GroupedAvatars() {
{avatars.map((avatar) => (
<Avatar key={avatar.alt} {...avatar} />
))}

{!!surplus && <Avatar>+{surplus}</Avatar>}
</AvatarGroup>
);
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/badge/BadgeAlignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function BadgeAlignment() {
vertical: 'top',
horizontal: 'right',
});

const jsx = `
<Badge
anchorOrigin={{
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/breadcrumbs/BasicBreadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default function BasicBreadcrumbs() {
{item}
</Link>
))}

<Typography fontSize="inherit">Dr. Zoidberg</Typography>
</Breadcrumbs>
);
Expand Down
3 changes: 0 additions & 3 deletions docs/data/joy/components/breadcrumbs/BreadcrumbsSizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default function BreadcrumbsSizes() {
{item}
</Link>
))}

<Typography fontSize="inherit">Dr. Zoidberg</Typography>
</Breadcrumbs>
<Breadcrumbs separator="—" aria-label="breadcrumbs" size="md">
Expand All @@ -40,7 +39,6 @@ export default function BreadcrumbsSizes() {
{item}
</Link>
))}

<Typography fontSize="inherit">Dr. Zoidberg</Typography>
</Breadcrumbs>
<Breadcrumbs separator="—" aria-label="breadcrumbs" size="lg">
Expand All @@ -58,7 +56,6 @@ export default function BreadcrumbsSizes() {
{item}
</Link>
))}

<Typography fontSize="inherit">Dr. Zoidberg</Typography>
</Breadcrumbs>
</Stack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default function BreadcrumbsVariables() {
{item}
</Link>
))}

<Typography fontSize="inherit">Menu 3</Typography>
</Breadcrumbs>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default function BreadcrumbsWithIcon() {
{item}
</Link>
))}

<Typography fontSize="inherit">Homer</Typography>
</Breadcrumbs>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default function CondensedBreadcrumbs() {
{item}
</Link>
))}

<Typography fontSize="inherit" sx={{ display: 'flex', alignItems: 'center' }}>
<FolderIcon sx={{ mr: 0.5 }} fontSize="inherit" />
bablo.txt
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/list/ExampleNavigationMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const useRovingIndex = (options) => {
},
} = options || {};
const [activeIndex, setActiveIndex] = React.useState(initialActiveIndex);

const targetRefs = React.useRef([]);
const targets = targetRefs.current;
const focusNext = () => {
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/modal/DialogVerticalScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import Stack from '@mui/joy/Stack';

export default function DialogVerticalScroll() {
const [layout, setLayout] = React.useState(undefined);

const [scroll, setScroll] = React.useState(true);
return (
<React.Fragment>
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/modal/LayoutModalDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Typography from '@mui/joy/Typography';

export default function LayoutModalDialog() {
const [layout, setLayout] = React.useState(undefined);

return (
<React.Fragment>
<Stack direction="row" spacing={1}>
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/modal/ModalDialogOverflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import Typography from '@mui/joy/Typography';

export default function ModalDialogOverflow() {
const [layout, setLayout] = React.useState(undefined);

const [scroll, setScroll] = React.useState(true);
return (
<React.Fragment>
Expand Down
1 change: 0 additions & 1 deletion docs/data/joy/components/modal/SizeModalDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Typography from '@mui/joy/Typography';

export default function SizeModalDialog() {
const [size, setSize] = React.useState(undefined);

return (
<React.Fragment>
<Stack direction="row" alignItems="center" spacing={1}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export default function ShadowThemeViewer() {
[],
),
);

return (
<Box sx={{ width: '100%', overflow: 'hidden', position: 'relative' }}>
<Sheet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ export default function CustomizedHook() {
{value.map((option, index) => (
<StyledTag label={option.title} {...getTagProps({ index })} />
))}

<input {...getInputProps()} />
</InputWrapper>
</div>
Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/autocomplete/GoogleMaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ export default function GoogleMaps() {
{part.text}
</Box>
))}

<Typography variant="body2" color="text.secondary">
{option.structured_formatting.secondary_text}
</Typography>
Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/dialogs/SimpleDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function SimpleDialog(props) {
</ListItemButton>
</ListItem>
))}

<ListItem disableGutters>
<ListItemButton
autoFocus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ export default function CustomPaginationActionsTable() {
</TableCell>
</TableRow>
))}

{emptyRows > 0 && (
<TableRow style={{ height: 53 * emptyRows }}>
<TableCell colSpan={6} />
Expand Down
1 change: 0 additions & 1 deletion docs/data/material/components/table/SpanningTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export default function SpanningTable() {
<TableCell align="right">{ccyFormat(row.price)}</TableCell>
</TableRow>
))}

<TableRow>
<TableCell rowSpan={3} />
<TableCell colSpan={2}>Subtotal</TableCell>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ function Sidebar(props) {
{archive.title}
</Link>
))}

<Typography variant="h6" gutterBottom sx={{ mt: 3 }}>
Social
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export default function Review() {
<Typography variant="body2">{product.price}</Typography>
</ListItem>
))}

<ListItem sx={{ py: 1, px: 0 }}>
<ListItemText primary="Total" />
<Typography variant="subtitle1" sx={{ fontWeight: 700 }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ function extendTheme({ cssVarPrefix = 'system-demo' } = {}) {
prefix: cssVarPrefix,
},
);

const theme = {
colorSchemes: {
light: lightColorScheme,
Expand Down
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"link-check": "node ./scripts/reportBrokenLinks.js"
},
"dependencies": {
"@babel/core": "^7.21.4",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/runtime-corejs2": "^7.21.0",
"@babel/core": "^7.22.5",
"@babel/plugin-transform-object-assign": "^7.22.5",
"@babel/runtime-corejs2": "^7.22.5",
"@docsearch/react": "^3.5.1",
"@emotion/cache": "^11.11.0",
"@emotion/react": "^11.11.1",
Expand Down Expand Up @@ -120,8 +120,8 @@
"webpack-bundle-analyzer": "^4.9.0"
},
"devDependencies": {
"@babel/plugin-transform-react-constant-elements": "^7.21.3",
"@babel/preset-typescript": "^7.21.4",
"@babel/plugin-transform-react-constant-elements": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@types/marked": "^4.3.1",
"@types/recharts": "^2.0.0",
"cross-fetch": "^3.1.6",
Expand Down
1 change: 0 additions & 1 deletion docs/src/pages/premium-themes/paperbase/Navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export default function Navigator(props) {
</ListItemButton>
</ListItem>
))}

<Divider sx={{ mt: 2 }} />
</Box>
))}
Expand Down
34 changes: 18 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,19 @@
},
"devDependencies": {
"@argos-ci/core": "^0.8.0",
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.4",
"@babel/node": "^7.20.7",
"@babel/cli": "^7.22.5",
"@babel/core": "^7.22.5",
"@babel/node": "^7.22.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/plugin-transform-react-constant-elements": "^7.21.3",
"@babel/plugin-transform-runtime": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"@babel/register": "^7.21.0",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-transform-object-assign": "^7.22.5",
"@babel/plugin-transform-react-constant-elements": "^7.22.5",
"@babel/plugin-transform-runtime": "^7.22.5",
"@babel/preset-env": "^7.22.5",
"@babel/preset-react": "^7.22.5",
"@babel/register": "^7.22.5",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@googleapis/sheets": "^4.0.2",
Expand Down Expand Up @@ -207,19 +209,19 @@
"yarn-deduplicate": "^3.1.0"
},
"resolutions": {
"**/@babel/core": "^7.21.4",
"**/@babel/code-frame": "^7.21.4",
"**/@babel/core": "^7.22.5",
"**/@babel/code-frame": "^7.22.5",
"**/@babel/plugin-proposal-class-properties": "^7.18.6",
"**/@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"**/@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"**/@babel/plugin-proposal-numeric-separator": "^7.18.6",
"**/@babel/plugin-proposal-optional-chaining": "^7.21.0",
"**/@babel/plugin-transform-destructuring": "npm:@minh.nguyen/plugin-transform-destructuring@^7.5.2",
"**/@babel/plugin-transform-runtime": "^7.21.4",
"**/@babel/preset-env": "^7.21.4",
"**/@babel/preset-react": "^7.18.6",
"**/@babel/preset-typescript": "^7.21.4",
"**/@babel/runtime": "^7.21.0",
"**/@babel/plugin-transform-runtime": "^7.22.5",
"**/@babel/preset-env": "^7.22.5",
"**/@babel/preset-react": "^7.22.5",
"**/@babel/preset-typescript": "^7.22.5",
"**/@babel/runtime": "^7.22.5",
"**/@definitelytyped/header-parser": "^0.0.163",
"**/@definitelytyped/typescript-versions": "^0.0.163",
"**/@definitelytyped/utils": "^0.0.163",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-docs-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"typescript": "tsc -p tsconfig.json"
},
"dependencies": {
"@babel/core": "^7.21.4",
"@babel/core": "^7.22.5",
"@mui-internal/docs-utilities": "^1.0.0",
"@mui/markdown": "^5.0.0",
"ast-types": "^0.14.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@babel/runtime": "^7.22.5",
"@emotion/is-prop-valid": "^1.2.1",
"@mui/types": "^7.2.4",
"@mui/utils": "^5.13.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/mui-codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"url": "https://opencollective.com/mui"
},
"dependencies": {
"@babel/core": "^7.21.4",
"@babel/runtime": "^7.21.0",
"@babel/traverse": "^7.21.4",
"@babel/core": "^7.22.5",
"@babel/runtime": "^7.22.5",
"@babel/traverse": "^7.22.5",
"jscodeshift": "^0.13.1",
"jscodeshift-add-imports": "^1.0.10",
"yargs": "^17.7.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@babel/runtime": "^7.22.5",
"@mui/utils": "^5.13.1",
"nprogress": "^0.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-icons-material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
},
"dependencies": {
"@babel/runtime": "^7.21.0"
"@babel/runtime": "^7.22.5"
},
"devDependencies": {
"fs-extra": "^10.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-joy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@babel/runtime": "^7.22.5",
"@mui/base": "5.0.0-beta.4",
"@mui/core-downloads-tracker": "^5.13.4",
"@mui/system": "^5.13.5",
Expand Down
Loading

0 comments on commit cc045c6

Please sign in to comment.