Skip to content

Commit bcaf140

Browse files
committed
chore(deps): upgrade React, MUI, TS, Webpack
1 parent c9c31bf commit bcaf140

File tree

103 files changed

+2436
-1862
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+2436
-1862
lines changed

.prettierrc.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// Prettier config options: https://prettier.io/docs/en/options.html
22
// Shared front-end config: https://git.pega.io/projects/FE/repos/configs/browse/packages/prettier-config/index.json
33

4-
const pegaPrettierConfig = require('@pega/prettier-config');
5-
6-
module.exports = {
7-
...pegaPrettierConfig,
4+
module.exports = import('@pega/prettier-config').then(pegaPrettierConfig => ({
5+
...pegaPrettierConfig.default,
86
printWidth: 150
9-
};
7+
}));

package-lock.json

Lines changed: 2209 additions & 1639 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -50,78 +50,78 @@
5050
"author": "Pegasystems",
5151
"license": "SEE LICENSE IN LICENSE",
5252
"dependencies": {
53-
"@emotion/react": "^11.13.3",
54-
"@emotion/styled": "^11.13.0",
55-
"@mui/icons-material": "^5.16.7",
56-
"@mui/lab": "^5.0.0-alpha.173",
57-
"@mui/material": "^5.16.7",
58-
"@mui/styles": "^5.16.7",
59-
"@mui/x-date-pickers": "^7.20.0",
60-
"@pega/auth": "~0.2.15",
53+
"@emotion/react": "^11.14.0",
54+
"@emotion/styled": "^11.14.0",
55+
"@mui/icons-material": "^6.4.11",
56+
"@mui/lab": "^6.0.1-beta.34",
57+
"@mui/material": "^6.4.11",
58+
"@mui/styles": "^6.4.8",
59+
"@mui/x-date-pickers": "^7.29.3",
60+
"@pega/auth": "~0.2.24",
6161
"@tinymce/tinymce-react": "^5.1.1",
62-
"clsx": "^2.1.0",
62+
"clsx": "^2.1.1",
6363
"dayjs": "^1.11.13",
6464
"downloadjs": "^1.4.7",
6565
"fast-deep-equal": "^3.1.3",
6666
"lodash.difference": "^4.5.0",
6767
"mui-tel-input": "^6.0.1",
68-
"react": "^17.0.2",
68+
"react": "^18.3.1",
6969
"react-datepicker": "^4.25.0",
70-
"react-dom": "^17.0.2",
71-
"react-number-format": "^5.4.2",
72-
"react-redux": "^8.1.3",
73-
"react-router-dom": "^6.22.3",
70+
"react-dom": "^18.3.1",
71+
"react-number-format": "^5.4.4",
72+
"react-redux": "^9.2.0",
73+
"react-router-dom": "^7.6.0",
7474
"throttle-debounce": "^5.0.2"
7575
},
7676
"devDependencies": {
77-
"@pega/configs": "^0.7.1",
77+
"@pega/configs": "^0.16.3",
7878
"@pega/constellationjs": "~0.242.5",
79-
"@pega/eslint-config": "^0.7.2",
80-
"@pega/pcore-pconnect-typedefs": "~3.0.0",
81-
"@pega/tsconfig": "^0.6.0",
82-
"@playwright/test": "^1.40.1",
79+
"@pega/eslint-config": "^0.16.3",
80+
"@pega/pcore-pconnect-typedefs": "~3.2.1",
81+
"@pega/tsconfig": "^0.16.3",
82+
"@playwright/test": "^1.52.0",
8383
"@testing-library/jest-dom": "^5.17.0",
8484
"@testing-library/react": "^14.1.2",
85-
"@types/jest": "^29.5.11",
86-
"@types/react": "^17.0.83",
85+
"@types/jest": "^29.5.14",
86+
"@types/react": "^18.3.21",
8787
"@typescript-eslint/eslint-plugin": "^5.62.0",
88-
"babel-loader": "^9.1.3",
88+
"babel-loader": "^10.0.0",
8989
"commitlint": "^18.4.4",
90-
"compression-webpack-plugin": "^10.0.0",
91-
"copy-webpack-plugin": "^11.0.0",
90+
"compression-webpack-plugin": "^11.1.0",
91+
"copy-webpack-plugin": "^13.0.0",
9292
"cspell": "^8.3.2",
93-
"css-loader": "^6.9.0",
93+
"css-loader": "^7.1.2",
9494
"eslint": "^8.56.0",
95-
"eslint-plugin-import": "^2.29.1",
95+
"eslint-plugin-import": "^2.31.0",
9696
"eslint-plugin-jest": "^27.6.2",
97-
"eslint-plugin-jsx-a11y": "^6.8.0",
98-
"eslint-plugin-prettier": "^5.1.3",
99-
"eslint-plugin-react": "^7.33.2",
97+
"eslint-plugin-jsx-a11y": "^6.10.2",
98+
"eslint-plugin-prettier": "^5.4.0",
99+
"eslint-plugin-react": "^7.37.5",
100100
"eslint-plugin-react-hooks": "^4.6.0",
101101
"eslint-plugin-sonarjs": "^0.23.0",
102-
"html-webpack-plugin": "^5.6.0",
102+
"html-webpack-plugin": "^5.6.3",
103103
"http-server": "^14.1.1",
104104
"istanbul": "^0.4.5",
105105
"istanbul-instrumenter-loader": "^3.0.1",
106106
"jest": "^29.7.0",
107107
"jest-environment-jsdom": "^29.7.0",
108108
"json5": ">=2.2.3",
109-
"monocart-reporter": "^2.2.1",
109+
"monocart-reporter": "^2.9.18",
110110
"npm-run-all": "^4.1.5",
111111
"null-loader": "^4.0.1",
112-
"prettier": "^3.1.1",
112+
"prettier": "^3.5.3",
113113
"prop-types": "^15.8.1",
114-
"replace-in-file": "^7.1.0",
115-
"sass-loader": "^13.3.3",
116-
"shx": "^0.3.4",
117-
"style-loader": "^3.3.4",
118-
"stylelint": "^16.1.0",
119-
"tinymce": "^7.3.0",
120-
"ts-jest": "^29.1.1",
121-
"ts-loader": "^9.5.1",
122-
"typescript": "^4.9.5",
123-
"webpack": "^5.95.0",
124-
"webpack-cli": "^5.1.4",
125-
"webpack-dev-server": "^5.1.0"
114+
"replace-in-file": "^7.2.0",
115+
"sass-loader": "^14.2.1",
116+
"shx": "^0.4.0",
117+
"style-loader": "^4.0.0",
118+
"stylelint": "^16.19.1",
119+
"tinymce": "^7.8.0",
120+
"ts-jest": "^29.3.2",
121+
"ts-loader": "^9.5.2",
122+
"typescript": "^5.8.3",
123+
"webpack": "^5.99.8",
124+
"webpack-cli": "^6.0.1",
125+
"webpack-dev-server": "^5.2.1"
126126
}
127127
}

packages/react-sdk-components/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
}
9292
},
9393
{
94-
"files": "*.@(jsx|tsx|mdx)",
94+
"files": "*.@(jsx|ts|tsx|mdx)",
9595
"rules": {
9696
"react/react-in-jsx-scope": "off",
9797
// Set up configuration for future sweep

packages/react-sdk-components/src/components/designSystemExtension/FieldGroup/FieldGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PropsWithChildren, useState } from 'react';
1+
import { type PropsWithChildren, useState } from 'react';
22
import Grid from '@mui/material/Grid';
33
import makeStyles from '@mui/styles/makeStyles';
44
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';

packages/react-sdk-components/src/components/designSystemExtension/Operator/Operator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Typography from '@mui/material/Typography';
66
import makeStyles from '@mui/styles/makeStyles';
77

88
import Utils from '../../helpers/utils';
9-
import { PConnProps } from '../../../types/PConnProps';
9+
import type { PConnProps } from '../../../types/PConnProps';
1010

1111
// Operator is one of the few components that does NOT have getPConnect.
1212
// So, no need to extend PConnProps

packages/react-sdk-components/src/components/designSystemExtension/Pulse/Pulse.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PropsWithChildren } from 'react';
1+
import type { PropsWithChildren } from 'react';
22
import { Card, CardContent, CardHeader, Typography } from '@mui/material';
33
import makeStyles from '@mui/styles/makeStyles';
44

packages/react-sdk-components/src/components/field/AutoComplete/AutoComplete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Utils from '../../helpers/utils';
77
import { getDataPage } from '../../helpers/data_page';
88
import handleEvent from '../../helpers/event-utils';
99
import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
10-
import { PConnFieldProps } from '../../../types/PConnProps';
10+
import type { PConnFieldProps } from '../../../types/PConnProps';
1111

1212
interface IOption {
1313
key: string;

packages/react-sdk-components/src/components/field/CancelAlert/CancelAlert.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
22
import { Button, Grid, IconButton, Snackbar } from '@mui/material';
33
import CloseIcon from '@mui/icons-material/Close';
44

5-
import { PConnFieldProps } from '../../../types/PConnProps';
5+
import type { PConnFieldProps } from '../../../types/PConnProps';
66
import './CancelAlert.css';
77

88
interface CancelAlertProps extends PConnFieldProps {
@@ -78,7 +78,7 @@ export default function CancelAlert(props: CancelAlertProps) {
7878
});
7979
} else if (isLocalAction) {
8080
dismiss(true);
81-
actionsAPI.cancelAssignment(containerItemID);
81+
actionsAPI.cancelAssignment(containerItemID, false);
8282
} else if (isBulkAction) {
8383
dismiss(true);
8484
actionsAPI.cancelBulkAction(containerItemID);

packages/react-sdk-components/src/components/field/Checkbox/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import makeStyles from '@mui/styles/makeStyles';
66
import handleEvent from '../../helpers/event-utils';
77
import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
88
import { insertInstruction, deleteInstruction, updateNewInstuctions } from '../../helpers/instructions-utils';
9-
import { PConnFieldProps } from '../../../types/PConnProps';
9+
import type { PConnFieldProps } from '../../../types/PConnProps';
1010

1111
interface CheckboxProps extends Omit<PConnFieldProps, 'value'> {
1212
// If any, enter additional props that only exist on Checkbox here

0 commit comments

Comments
 (0)