Bump dependencies (#4017)

This commit is contained in:
Alexander Zinchuk 2023-12-12 12:34:42 +01:00
parent 098beaa8ef
commit 0f5bdc05be
13 changed files with 5327 additions and 5507 deletions

View File

@ -9,6 +9,7 @@
"no-null",
"simple-import-sort",
"react-hooks-static-deps",
"jsx-expressions",
"eslint-multitab-tt"
],
"rules": {
@ -114,7 +115,14 @@
"ignoreDOMComponents": true
}
],
"jsx-expressions/strict-logical-expressions": [
"error",
{
"allowString": true
}
],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/anchor-is-valid": "off",

File diff suppressed because it is too large Load Diff

View File

@ -22,9 +22,9 @@
},
"devDependencies": {
"chalk": "^5.3.0",
"eslint": "^8.49.0",
"eslint-doc-generator": "^1.4.3",
"eslint-plugin-eslint-plugin": "^5.1.1",
"eslint": "^8.55.0",
"eslint-doc-generator": "^1.6.1",
"eslint-plugin-eslint-plugin": "^5.2.1",
"eslint-plugin-node": "^11.1.0",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5"

9751
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -53,53 +53,54 @@
"author": "Alexander Zinchuk (alexander@zinchuk.com)",
"license": "GPL-3.0-or-later",
"devDependencies": {
"@babel/core": "^7.22.20",
"@babel/core": "^7.23.6",
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
"@babel/plugin-transform-class-properties": "^7.22.5",
"@babel/plugin-transform-logical-assignment-operators": "^7.22.11",
"@babel/preset-env": "^7.22.20",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.22.15",
"@babel/plugin-transform-class-properties": "^7.23.3",
"@babel/plugin-transform-logical-assignment-operators": "^7.23.4",
"@babel/preset-env": "^7.23.6",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@babel/register": "^7.22.15",
"@electron/rebuild": "^3.3.0",
"@electron/rebuild": "^3.4.1",
"@glen/jest-raw-loader": "^2.0.0",
"@playwright/test": "^1.38.1",
"@statoscope/cli": "5.28.0",
"@statoscope/webpack-plugin": "5.28.0",
"@testing-library/jest-dom": "^6.1.3",
"@playwright/test": "^1.40.1",
"@statoscope/cli": "5.28.2",
"@statoscope/webpack-plugin": "5.28.2",
"@testing-library/jest-dom": "^6.1.5",
"@twbs/fantasticon": "^2.7.1",
"@types/croppie": "^2.6.2",
"@types/hast": "^3.0.1",
"@types/jest": "^29.5.5",
"@types/react": "^18.2.23",
"@types/react-dom": "^18.2.8",
"@types/webpack": "^5.28.3",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@types/croppie": "^2.6.4",
"@types/hast": "^3.0.3",
"@types/jest": "^29.5.11",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@types/webpack": "^5.28.5",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"@webpack-cli/serve": "^2.0.5",
"autoprefixer": "^10.4.16",
"babel-loader": "^9.1.3",
"babel-plugin-transform-import-meta": "^2.2.1",
"browserlist": "^1.0.1",
"buffer": "^6.0.3",
"concurrently": "^8.2.1",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"css-loader": "^6.8.1",
"dotenv": "^16.3.1",
"electron": "^22.3.25",
"electron-builder": "^24.6.4",
"electron": "^22.3.27",
"electron-builder": "^24.9.1",
"electron-context-menu": "^3.6.1",
"electron-store": "^8.1.0",
"electron-updater": "^6.1.4",
"electron-updater": "^6.1.7",
"electronmon": "^2.0.2",
"eslint": "^8.50.0",
"eslint": "^8.55.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-teact-app": "git+https://github.com/zubiden/eslint-config-teact-app#213da32ab42cd46663395cccfd1a33f0c8b09732",
"eslint-import-resolver-webpack": "^0.13.7",
"eslint-config-teact-app": "git+https://github.com/zubiden/eslint-config-teact-app#5968833968eb48fb799bab941af7f9c3ebb1a005",
"eslint-import-resolver-webpack": "^0.13.8",
"eslint-plugin-eslint-multitab-tt": "file:dev/eslint-multitab",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-jsx-expressions": "^1.3.2",
"eslint-plugin-no-async-without-await": "^1.2.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-react": "^7.33.2",
@ -109,29 +110,29 @@
"eslint-plugin-teactn": "git+https://github.com/korenskoy/eslint-plugin-teactn#c2c39dd005d58c07c24c4361de804dce1c6261b5",
"git-revision-webpack-plugin": "^5.0.0",
"gitlog": "^4.0.8",
"html-webpack-plugin": "^5.5.3",
"html-webpack-plugin": "^5.5.4",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^14.0.1",
"lint-staged": "^15.2.0",
"mini-css-extract-plugin": "^2.7.6",
"postcss-loader": "^7.3.3",
"postcss-modules": "^6.0.0",
"react": "^18.2.0",
"sass": "^1.68.0",
"sass": "^1.69.5",
"sass-loader": "^13.3.2",
"script-loader": "^0.7.2",
"serve": "^14.2.1",
"style-loader": "^3.3.3",
"stylelint": "^15.10.3",
"stylelint-config-recommended-scss": "^13.0.0",
"stylelint": "^15.11.0",
"stylelint-config-recommended-scss": "^13.1.0",
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
"stylelint-group-selectors": "^1.0.10",
"stylelint-high-performance-animation": "^1.9.0",
"stylelint-selector-tag-no-without-class": "^2.0.6",
"telegraph-node": "^1.0.4",
"typescript": "^5.2.2",
"webpack": "^5.88.2",
"typescript": "^5.3.3",
"webpack": "^5.89.0",
"webpack-dev-server": "^4.15.1"
},
"dependencies": {

View File

@ -105,6 +105,7 @@ const AuthCode: FC<StateProps> = ({
role="button"
tabIndex={0}
title={lang('WrongNumber')}
aria-label={lang('WrongNumber')}
>
<i className="icon icon-edit" />
</div>

View File

@ -147,6 +147,7 @@ const PasswordForm: FC<OwnProps> = ({
role="button"
tabIndex={0}
title="Toggle password visibility"
aria-label="Toggle password visibility"
>
<i className={buildClassName('icon', isPasswordVisible ? 'icon-eye' : 'icon-eye-closed')} />
</div>

View File

@ -130,6 +130,7 @@ const MessageSelectToolbar: FC<OwnProps & StateProps> = ({
)}
onClick={onClick}
title={label}
aria-label={label}
>
<i className={buildClassName('icon', `icon-${icon}`)} />
</div>

View File

@ -208,7 +208,7 @@ const Giveaway = ({
/>
))}
</div>
{countries?.length && (
{Boolean(countries?.length) && (
<span>{renderText(lang('Chat.Giveaway.Message.CountriesFrom', countryList))}</span>
)}
</div>

View File

@ -288,7 +288,7 @@ const BoostModal = ({
</div>
</Modal>
)}
{boost?.cooldownUntil && (
{Boolean(boost?.cooldownUntil) && (
<ConfirmDialog
isOpen={isWaitDialogOpen}
isOnlyConfirm
@ -300,7 +300,7 @@ const BoostModal = ({
{renderText(
lang(
'ChannelBoost.Error.BoostTooOftenText',
formatDateInFuture(lang, getServerTime(), boost.cooldownUntil),
formatDateInFuture(lang, getServerTime(), boost!.cooldownUntil),
),
['simple_markdown', 'emoji'],
)}

View File

@ -121,7 +121,6 @@ const PaymentInfo: FC<OwnProps> = ({
{ needCountry && (
<Select
label={lang('PaymentShippingCountry')}
placeholder={lang('PaymentShippingCountry')}
onChange={handleCountryChange}
value={state.billingCountry}
hasArrow={Boolean(true)}

View File

@ -139,7 +139,6 @@ const ShippingInfo: FC<OwnProps> = ({
/>
<Select
label={lang('PaymentShippingCountry')}
placeholder={lang('PaymentShippingCountry')}
onChange={handleCountryChange}
value={state.countryIso2}
hasArrow={Boolean(true)}

View File

@ -11,7 +11,6 @@ type OwnProps = {
error?: string;
ref?: RefObject<HTMLSelectElement>;
hasArrow?: boolean;
placeholder?: string;
tabIndex?: number;
onChange?: (e: ChangeEvent<HTMLSelectElement>) => void;
children: React.ReactNode;
@ -25,7 +24,6 @@ const Select: FC<OwnProps> = (props) => {
hasArrow,
error,
ref,
placeholder,
tabIndex,
onChange,
children,
@ -47,7 +45,6 @@ const Select: FC<OwnProps> = (props) => {
id={id}
value={value || ''}
onChange={onChange}
placeholder={placeholder || label}
tabIndex={tabIndex}
ref={ref}
>