patch: bump react, react-dom + related @types to 17.0.2 and rendition to 35.1.0

This commit is contained in:
Edwin Joassart 2023-12-08 15:59:39 +01:00
parent 8ca46d5254
commit 8714208762
5 changed files with 2906 additions and 422 deletions

View File

@ -76,26 +76,26 @@ function isDrivelistDrive(drive: Drive): drive is DrivelistDrive {
const DrivesTable = styled((props: GenericTableProps<Drive>) => ( const DrivesTable = styled((props: GenericTableProps<Drive>) => (
<Table<Drive> {...props} /> <Table<Drive> {...props} />
))` ))`
[data-display='table-head'], // [data-display="table-head"],
[data-display='table-body'] { // [data-display="table-body"] {
> [data-display='table-row'] > [data-display='table-cell'] { // > [data-display="table-row"] > [data-display="table-cell"] {
&:nth-child(2) { // &:nth-child(2) {
width: 32%; // width: 32%;
} // }
&:nth-child(3) { // &:nth-child(3) {
width: 15%; // width: 15%;
} // }
&:nth-child(4) { // &:nth-child(4) {
width: 15%; // width: 15%;
} // }
&:nth-child(5) { // &:nth-child(5) {
width: 32%; // width: 32%;
} // }
} // }
} // }
`; `;
function badgeShadeFromStatus(status: string) { function badgeShadeFromStatus(status: string) {
@ -428,11 +428,13 @@ export class DriveSelector extends React.Component<
) : ( ) : (
<> <>
<DrivesTable <DrivesTable
refFn={(t) => { // refFn={(t) => {
if (t !== null) { // if (t !== null) {
t.setRowSelection(selectedList);
} // // t.setRowSelection(selectedList);
}} // }
// }}
checkedItems={selectedList}
checkedRowsNumber={selectedList.length} checkedRowsNumber={selectedList.length}
multipleSelection={this.props.multipleSelection} multipleSelection={this.props.multipleSelection}
columns={this.tableColumns} columns={this.tableColumns}

View File

@ -17,7 +17,7 @@
import GithubSvg from '@fortawesome/fontawesome-free/svgs/brands/github.svg'; import GithubSvg from '@fortawesome/fontawesome-free/svgs/brands/github.svg';
import * as _ from 'lodash'; import * as _ from 'lodash';
import * as React from 'react'; import * as React from 'react';
import { Box, Checkbox, Flex, TextWithCopy, Txt } from 'rendition'; import { Box, Checkbox, Flex, Txt } from 'rendition';
import { version, packageType } from '../../../../../package.json'; import { version, packageType } from '../../../../../package.json';
import * as settings from '../../models/settings'; import * as settings from '../../models/settings';
@ -61,7 +61,9 @@ const EPInfo = etcherProInfo();
const InfoBox = (props: any) => ( const InfoBox = (props: any) => (
<Box fontSize={14}> <Box fontSize={14}>
<Txt>{props.label}</Txt> <Txt>{props.label}</Txt>
<TextWithCopy code text={props.value} copy={props.value} /> <Txt code copy={props.value}>
{props.value}{' '}
</Txt>
</Box> </Box>
); );

View File

@ -284,7 +284,6 @@ function StyledTable<T>() {
[data-display='table-body'] > [data-display='table-row'] { [data-display='table-body'] > [data-display='table-row'] {
> [data-display='table-cell']:first-child { > [data-display='table-cell']:first-child {
padding-left: 15px; padding-left: 15px;
width: 6%;
} }
> [data-display='table-cell']:last-child { > [data-display='table-cell']:last-child {

3265
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -48,6 +48,8 @@
"@electron/remote": "^2.1.0", "@electron/remote": "^2.1.0",
"@fortawesome/fontawesome-free": "6.5.1", "@fortawesome/fontawesome-free": "6.5.1",
"@sentry/electron": "^4.15.1", "@sentry/electron": "^4.15.1",
"@types/react": "17.0.2",
"@types/react-dom": "17.0.2",
"analytics-client": "^2.0.1", "analytics-client": "^2.0.1",
"axios": "^1.6.0", "axios": "^1.6.0",
"d3": "4.13.0", "d3": "4.13.0",
@ -62,11 +64,11 @@
"outdent": "0.8.0", "outdent": "0.8.0",
"path-is-inside": "1.0.2", "path-is-inside": "1.0.2",
"pretty-bytes": "6.1.1", "pretty-bytes": "6.1.1",
"react": "16.8.5", "react": "17.0.2",
"react-dom": "16.8.5", "react-dom": "17.0.2",
"react-i18next": "18.2.0", "react-i18next": "13.5.0",
"redux": "4.2.1", "redux": "4.2.1",
"rendition": "19.3.2", "rendition": "35.1.0",
"semver": "7.5.4", "semver": "7.5.4",
"styled-components": "5.3.6", "styled-components": "5.3.6",
"sys-class-rgb-led": "3.0.1", "sys-class-rgb-led": "3.0.1",