Skip to content

Commit 4dc5ca3

Browse files
committed
OCPNETUI-140: dependency cleanup
1. inline functionality provided by unmaintained package react-linkify 2. replace copy-webpack-plugin with webpack 5's built-in output.copy 3. remove version overrides except needed for resolving shared modules 4. use self-reference syntax for version overrides that are linked to direct dependencies Assisted-by: Cursor:claude-opus-4.6 Signed-off-by: Radoslaw Szwajkowski <rszwajko@redhat.com>
1 parent 3a5c4af commit 4dc5ca3

6 files changed

Lines changed: 89 additions & 161 deletions

File tree

‎package-lock.json‎

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

‎package.json‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,16 @@
4646
"@patternfly/react-tokens": "6.6.1",
4747
"classnames": "^2.5.1",
4848
"js-yaml": "^4.3.2",
49+
"linkify-it": "6.1.0",
4950
"lodash": "^4.18.1",
5051
"react": "18.3.1",
5152
"react-copy-to-clipboard": "^5.1.1",
5253
"react-dom": "18.3.1",
5354
"react-hook-form": "^7.89.0",
5455
"react-i18next": "16.5.8",
55-
"react-linkify": "^1.0.0-alpha",
5656
"react-router": "7.18.1",
5757
"react-tagsinput": "^3.20.3",
58+
"tlds": "1.261.0",
5859
"unique-names-generator": "^4.7.1",
5960
"victory-area": "^37.3.3",
6061
"victory-axis": "^37.3.2",
@@ -82,7 +83,6 @@
8283
"@types/uuid": "^9.0.8",
8384
"@typescript-eslint/eslint-plugin": "^5.62.0",
8485
"@typescript-eslint/parser": "^5.62.0",
85-
"copy-webpack-plugin": "^12.0.2",
8686
"css-loader": "^6.7.1",
8787
"cypress": "^15.21.1",
8888
"cypress-multi-reporters": "^2.0.0",
@@ -115,10 +115,5 @@
115115
"webpack": "^5.111.1",
116116
"webpack-cli": "5.1.4",
117117
"webpack-dev-server": "^5.2.3"
118-
},
119-
"overrides": {
120-
"serialize-javascript": "7.0.5",
121-
"diff": "9.0.0",
122-
"linkify-it": "^5.0.1"
123118
}
124119
}

‎src/utils/components/DetailsItem/DetailsItem.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ export const DetailsItem: FC<DetailsItemProps> = ({
9898
headerContent={<div>{label}</div>}
9999
{...(popoverContent && {
100100
bodyContent: (
101-
<LinkifyExternal>
102-
<div className="co-pre-line">{popoverContent}</div>
103-
</LinkifyExternal>
101+
<div className="co-pre-line">
102+
<LinkifyExternal text={popoverContent ?? ''} />
103+
</div>
104104
),
105105
})}
106106
{...(path && {

‎src/views/routes/details/components/tabs/detailsTab/components/RouteIngressStatusSection/ConditionRow.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const ConditionRow: FC<ConditionRowProps> = ({ condition, index, type }) => {
4949
data-test={`condition[${index}].message`}
5050
visibility={['hidden', 'visibleOnSm']}
5151
>
52-
<LinkifyExternal>{condition.message?.trim() || '-'}</LinkifyExternal>
52+
<LinkifyExternal text={condition.message?.trim() || '-'} />
5353
</Td>
5454
</Tr>
5555
);

0 commit comments

Comments
 (0)