Skip to content

Commit 2e44556

Browse files
chore(deps): update deps (#12697)
Updated deps in react-charts and react-integration demo app. Noticed some issues in demo app while I was in there (dark theme switcher broken, etc.), so I fixed those as well. Assisted-by: Claude
1 parent eb3b207 commit 2e44556

10 files changed

Lines changed: 27 additions & 38 deletions

File tree

‎packages/react-charts/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@patternfly/react-styles": "workspace:^",
4343
"@patternfly/react-tokens": "workspace:^",
4444
"hoist-non-react-statics": "^3.3.2",
45-
"lodash": "^4.17.23",
45+
"lodash": "^4.18.1",
4646
"tslib": "^2.8.1"
4747
},
4848
"devDependencies": {

‎packages/react-integration/demo-app-ts/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"@patternfly/react-core": "workspace:^",
1212
"react": "^18.3.1",
1313
"react-dom": "^18.3.1",
14-
"react-router": "^7.12.0",
15-
"react-router-dom": "^7.12.0"
14+
"react-router": "^7.14.1",
15+
"react-router-dom": "^7.14.1"
1616
},
1717
"devDependencies": {
1818
"@vitejs/plugin-react-swc": "^3.11.0",

‎packages/react-integration/demo-app-ts/src/App.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ class App extends Component<{}, AppState> {
5252
const htmlElement = document.getElementsByTagName('html')[0];
5353
if (htmlElement) {
5454
if (isDarkTheme) {
55-
htmlElement.classList.add('pf-theme-dark');
55+
htmlElement.classList.add('pf-v6-theme-dark');
5656
} else {
57-
htmlElement.classList.remove('pf-theme-dark');
57+
htmlElement.classList.remove('pf-v6-theme-dark');
5858
}
5959
}
6060
};
@@ -99,7 +99,7 @@ class App extends Component<{}, AppState> {
9999
id="light-theme"
100100
aria-label="Light theme"
101101
label={`Light theme`}
102-
name="light-theme"
102+
name="theme"
103103
isChecked={!isDarkTheme}
104104
onChange={(_event: React.FormEvent<HTMLInputElement>, checked: boolean) =>
105105
checked && this.onThemeSelect(false)
@@ -111,7 +111,7 @@ class App extends Component<{}, AppState> {
111111
id="dark-theme"
112112
label="Dark theme"
113113
aria-label="Dark theme"
114-
name="dark-theme"
114+
name="theme"
115115
isChecked={isDarkTheme}
116116
onChange={(_event: React.FormEvent<HTMLInputElement>, checked: boolean) =>
117117
checked && this.onThemeSelect(true)

‎packages/react-integration/demo-app-ts/src/Demos.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export const Demos: DemoInterface[] = [
249249
},
250250
{
251251
id: 'modal-deprecated-demo',
252-
name: 'Modal Demo',
252+
name: 'Modal Deprecated Demo',
253253
componentType: Examples.ModalDeprecatedDemo
254254
},
255255
{

‎packages/react-integration/demo-app-ts/src/components/demos/ChipDemo/ChipDemo.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export const ChipDemo: React.FunctionComponent = () => (
55
<Chip tooltipPosition="bottom" id="longName-chip">
66
Chip with a really, really, REALLY long text
77
</Chip>
8-
;
98
</>
109
);
1110
ChipDemo.displayName = 'ChipDemo';

‎packages/react-integration/demo-app-ts/src/components/demos/ClipboardCopyDemo/ClipboardCopyDemo.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class ClipboardCopyDemo extends Component {
2121
isBlock
2222
additionalActions={
2323
<ClipboardCopyAction>
24-
<Button variant="plain" aria-label="Run in web terminal" icon={<RhUiPlayFillIcon />} />
24+
<Button variant="plain" hasNoPadding aria-label="Run in web terminal" icon={<RhUiPlayFillIcon />} />
2525
</ClipboardCopyAction>
2626
}
2727
>

‎packages/react-integration/demo-app-ts/src/components/demos/DrawerDemo/DrawerResizeDemo.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class DrawerResizeDemo extends Component<DrawerProps, DrawerResizeDemoSta
7878
<Button id="toggleButton" onClick={this.onClick}>
7979
Toggle Drawer
8080
</Button>
81-
<Drawer isExpanded={isExpanded} onExpand={this.onExpand} position="bottom">
81+
<Drawer isExpanded={isExpanded} onExpand={this.onExpand} position="bottom" style={{ height: '300px' }}>
8282
<DrawerSection>drawer-section</DrawerSection>
8383
<DrawerContent panelContent={panelContent}>
8484
<DrawerContentBody>{drawerContent}</DrawerContentBody>

‎packages/react-integration/demo-app-ts/src/components/demos/MenuDemo/MenuDrilldownDemo.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class MenuDrilldownDemo extends Component {
4848
};
4949
setHeight = (menuId: string, height: number) => {
5050
if (
51-
!this.state.menuHeights[menuId] ||
51+
this.state.menuHeights[menuId] === undefined ||
5252
(menuId !== 'drilldown-rootMenu' && this.state.menuHeights[menuId] !== height)
5353
) {
5454
this.setState({

‎packages/react-integration/demo-app-ts/src/components/demos/NavDemo/NavDemo.tsx‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class NavDemo extends Component {
6565
<Title headingLevel="h2" size="2xl">
6666
Default Nav
6767
</Title>
68-
<div className="example" style={{ backgroundColor: '#212427', border: '1px solid rgb(114, 118, 123)' }}>
68+
<div className="example">
6969
<Nav onSelect={this.onDefaultSelect} id="nav-primary-default">
7070
<NavList>
7171
<NavItem id="default-link1" to="#default-link1" itemId={0} isActive={defaultActiveItem === 0}>
@@ -130,7 +130,7 @@ export class NavDemo extends Component {
130130
<Title headingLevel="h2" size="2xl">
131131
Expandable Nav
132132
</Title>
133-
<div className="example" style={{ backgroundColor: '#212427', border: '1px solid rgb(114, 118, 123)' }}>
133+
<div className="example">
134134
<Nav onSelect={this.onExpandableSelect} id="nav-primary-expandable">
135135
<NavList>
136136
<NavExpandable
@@ -253,7 +253,7 @@ export class NavDemo extends Component {
253253
<Title headingLevel="h2" size="2xl">
254254
Horizontal Nav
255255
</Title>
256-
<div style={{ backgroundColor: '#292e34', padding: '1rem' }}>
256+
<div>
257257
<Nav onSelect={this.onHorizontalSelect} id="nav-primary-horizontal" variant="horizontal">
258258
<NavList>
259259
<NavItem id="horizontal-link1" preventDefault itemId={0} isActive={horizontalActiveItem === 0}>
@@ -279,7 +279,7 @@ export class NavDemo extends Component {
279279
<Title headingLevel="h2" size="2xl">
280280
Horizontal Nav
281281
</Title>
282-
<div style={{ backgroundColor: '#292e34', padding: '1rem' }}>
282+
<div>
283283
<Nav onSelect={this.onHorizontalSelect} id="subnav-horizontal" variant="horizontal-subnav">
284284
<NavList>
285285
<NavItem id="horizontal-link1" preventDefault itemId={0} isActive={horizontalActiveItem === 0}>
@@ -329,9 +329,6 @@ export class NavDemo extends Component {
329329
<div
330330
id="flyout-nav"
331331
style={{
332-
backgroundColor: '#212427',
333-
border: '1px solid rgb(114, 118, 123)',
334-
padding: '1rem',
335332
width: '300px'
336333
}}
337334
>

‎yarn.lock‎

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5087,7 +5087,7 @@ __metadata:
50875087
fs-extra: "npm:^11.3.3"
50885088
hoist-non-react-statics: "npm:^3.3.2"
50895089
jest-canvas-mock: "npm:^2.5.2"
5090-
lodash: "npm:^4.17.23"
5090+
lodash: "npm:^4.18.1"
50915091
tslib: "npm:^2.8.1"
50925092
peerDependencies:
50935093
echarts: ^5.6.0 || ^6.0.0
@@ -10811,8 +10811,8 @@ __metadata:
1081110811
"@vitejs/plugin-react-swc": "npm:^3.11.0"
1081210812
react: "npm:^18.3.1"
1081310813
react-dom: "npm:^18.3.1"
10814-
react-router: "npm:^7.12.0"
10815-
react-router-dom: "npm:^7.12.0"
10814+
react-router: "npm:^7.14.1"
10815+
react-router-dom: "npm:^7.14.1"
1081610816
vite: "npm:^6.2.2"
1081710817
languageName: unknown
1081810818
linkType: soft
@@ -16702,13 +16702,6 @@ __metadata:
1670216702
languageName: node
1670316703
linkType: hard
1670416704

16705-
"lodash@npm:^4.17.23":
16706-
version: 4.17.23
16707-
resolution: "lodash@npm:4.17.23"
16708-
checksum: 10c0/1264a90469f5bb95d4739c43eb6277d15b6d9e186df4ac68c3620443160fc669e2f14c11e7d8b2ccf078b81d06147c01a8ccced9aab9f9f63d50dcf8cace6bf6
16709-
languageName: node
16710-
linkType: hard
16711-
1671216705
"lodash@npm:^4.18.1":
1671316706
version: 4.18.1
1671416707
resolution: "lodash@npm:4.18.1"
@@ -19941,21 +19934,21 @@ __metadata:
1994119934
languageName: node
1994219935
linkType: hard
1994319936

19944-
"react-router-dom@npm:^7.12.0":
19945-
version: 7.13.0
19946-
resolution: "react-router-dom@npm:7.13.0"
19937+
"react-router-dom@npm:^7.14.1":
19938+
version: 7.18.5
19939+
resolution: "react-router-dom@npm:7.18.5"
1994719940
dependencies:
19948-
react-router: "npm:7.13.0"
19941+
react-router: "npm:7.18.5"
1994919942
peerDependencies:
1995019943
react: ">=18"
1995119944
react-dom: ">=18"
19952-
checksum: 10c0/759bd5e7fe7b5baba50a0264724188707682d217cad8eac702a55e0b1abebf295be014dd3bfaff8e3c2def9dfaa23e6ded3f908feab84df766e9b82cc3774e98
19945+
checksum: 10c0/9e19ccb3fa061d86ad90eb906657cab6b2e4313b4eb02882f7515493c3d61c978a383ee0954854f2a9238ac013bdd03c526a5de14819c8ecaae62b5280774030
1995319946
languageName: node
1995419947
linkType: hard
1995519948

19956-
"react-router@npm:7.13.0, react-router@npm:^7.12.0":
19957-
version: 7.13.0
19958-
resolution: "react-router@npm:7.13.0"
19949+
"react-router@npm:7.18.5, react-router@npm:^7.14.1":
19950+
version: 7.18.5
19951+
resolution: "react-router@npm:7.18.5"
1995919952
dependencies:
1996019953
cookie: "npm:^1.0.1"
1996119954
set-cookie-parser: "npm:^2.6.0"
@@ -19965,7 +19958,7 @@ __metadata:
1996519958
peerDependenciesMeta:
1996619959
react-dom:
1996719960
optional: true
19968-
checksum: 10c0/397cb009bc83d071269c8f9323bbfe1f856721fde75e39b29fe0ddfe7564ebdc3b8bbb85768321cae92ec28b406e8fac7eab7e232d0738b3b1c092e2764e4307
19961+
checksum: 10c0/dbed9b4d0019873615028e2fe7bf7782ab4f41d9f287595b9a82f4a6d619dc5d3b88449fb3e717282f9f558312f29f88325372a7bb67355472703291607f9280
1996919962
languageName: node
1997019963
linkType: hard
1997119964

0 commit comments

Comments
 (0)