Skip to content

Commit d10fb0a

Browse files
chore(Felt): switch dependencies to @rh-felt packages and apply Snyk updates (#12699)
* chore(Felt): switch React and docs dependencies to @rh-felt packages Replaces the temporary PatternFly dependencies held over for the docs framework with their published @rh-felt counterparts now that @rh-felt/styles is released: - Swap @patternfly/patternfly@6.7.0-prerelease.3 for @rh-felt/styles@0.0.1-prerelease.3 in the react-core, react-icons, react-styles, react-tokens, react-docs, and demo-app manifests, the style/token/class-map/icon generation scripts, the docs CSS entry, charts examples, and the demo app - Depend on @rh-felt/styles directly in react-docs and keep @patternfly/* npm aliases to the @rh-felt prereleases solely for the documentation framework, which still resolves PatternFly package names internally; the pinned versions match the workspaces so they link to the local packages - Drop the @patternfly react-charts, react-drag-drop, and react-templates dependencies that nothing resolves - Preapprove the @rh-felt/* scope from the npm minimal age gate so freshly published prereleases can be installed - Track @rh-felt/styles instead of @patternfly/patternfly in scripts/promote.sh * fix(deps): update react-router to ^7.18.4 in demo app demo-app-ts' manifest change makes Snyk re-test that project, and the pinned react-router 7.13.0 carries 11 direct Snyk advisories (1 critical, 5 high; highest fix floor 7.18.2), failing the security/snyk check. 7.18.4 clears all of them. 7.18.5 is the latest 7.x but is quarantined by the one-week npmMinimalAgeGate on felt-v1 (published Oct 27), so the range uses ^7.18.4 (published Sep 15). Mirrors the react-router bump in #12697 (FELT-190). * chore(deps): update lodash and fix demo app issues from #12697 Mirrors the FELT-190 changes from #12697 so this branch carries the same Snyk remediations: - react-charts: lodash ^4.17.23 -> ^4.18.1, dropping the last 4.17.23 resolution and clearing the high-severity lodash advisories - demo app: use the pf-v6-theme-dark class, give the theme toggle radios a shared name, rename the deprecated modal demo entry, add hasNoPadding to the clipboard copy action button, give the resizable drawer demo a fixed height, check drilldown menu heights against undefined, and remove hardcoded dark inline styles from the nav demos
1 parent 48515fc commit d10fb0a

28 files changed

Lines changed: 140 additions & 335 deletions

File tree

‎.yarnrc.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ enableScripts: false
44

55
nodeLinker: node-modules
66

7-
npmMinimalAgeGate: "1w"
7+
npmMinimalAgeGate: "1w"
8+
9+
npmPreapprovedPackages:
10+
- "@rh-felt/*"

‎packages/react-charts/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@rh-felt/react-styles": "workspace:^",
4444
"@rh-felt/react-tokens": "workspace:^",
4545
"hoist-non-react-statics": "^3.3.2",
46-
"lodash": "^4.17.23",
46+
"lodash": "^4.18.1",
4747
"tslib": "^2.8.1"
4848
},
4949
"devDependencies": {

‎packages/react-charts/src/victory/components/ChartLegend/examples/ChartLegend.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import {
4545
} from '@rh-felt/react-charts/victory';
4646
import { getResizeObserver } from '@rh-felt/react-core';
4747
import chart_color_black_500 from '@rh-felt/react-tokens/dist/esm/chart_color_black_500';
48-
import '@patternfly/patternfly/patternfly-charts.css';
48+
import '@rh-felt/styles/patternfly-charts.css';
4949

5050
## Introduction
5151
Note: PatternFly React charts live in its own package at [@rh-felt/react-charts](https://www.npmjs.com/package/@rh-felt/react-charts)!

‎packages/react-charts/src/victory/components/Patterns/examples/patterns.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import chart_color_blue_300 from '@rh-felt/react-tokens/dist/esm/chart_color_blu
4949
import chart_color_green_300 from '@rh-felt/react-tokens/dist/esm/chart_color_green_300';
5050
import chart_color_teal_300 from '@rh-felt/react-tokens/dist/esm/chart_color_teal_300';
5151
import chart_color_yellow_300 from '@rh-felt/react-tokens/dist/esm/chart_color_yellow_300';
52-
import '@patternfly/patternfly/patternfly-charts.css';
52+
import '@rh-felt/styles/patternfly-charts.css';
5353

5454
## Introduction
5555
Note: PatternFly React charts live in its own package at [@rh-felt/react-charts](https://www.npmjs.com/package/@rh-felt/react-charts)!

‎packages/react-charts/src/victory/components/ResizeObserver/examples/resizeObserver.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import {
3636
import { getResizeObserver } from '@rh-felt/react-core';
3737
import chart_color_blue_300 from '@rh-felt/react-tokens/dist/esm/chart_color_blue_300';
3838
import chart_color_orange_300 from '@rh-felt/react-tokens/dist/esm/chart_color_orange_300';
39-
import '@patternfly/patternfly/patternfly-charts.css';
39+
import '@rh-felt/styles/patternfly-charts.css';
4040

4141
## Introduction
4242
Note: PatternFly React charts live in its own package at [@rh-felt/react-charts](https://www.npmjs.com/package/@rh-felt/react-charts)!

‎packages/react-core/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"devDependencies": {
5858
"@adobe/css-tools": "^4.5.0",
59-
"@patternfly/patternfly": "6.7.0-prerelease.3",
59+
"@rh-felt/styles": "0.0.1-prerelease.3",
6060
"case-anything": "^3.1.2",
6161
"fs-extra": "^11.3.3"
6262
},

‎packages/react-core/scripts/copyStyles.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { parse as parseCSS, stringify as stringifyCSS } from '@adobe/css-tools';
66

77
const require = createRequire(import.meta.url);
88
const stylesDir = resolve(import.meta.dirname, '../dist/styles');
9-
const pfDir = dirname(require.resolve('@patternfly/patternfly/patternfly.css'));
9+
const pfDir = dirname(require.resolve('@rh-felt/styles/patternfly.css'));
1010

1111
const unusedSelectorRegEx = /(\.fas?|\.sr-only)/;
1212
const unusedKeyFramesRegEx = /fa-/;

‎packages/react-docs/package.json‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@
2323
"test:a11y": "patternfly-a11y --config patternfly-a11y.config"
2424
},
2525
"dependencies": {
26-
"@patternfly/patternfly": "6.7.0-prerelease.3",
27-
"@patternfly/react-charts": "8.7.0-prerelease.4",
28-
"@patternfly/react-code-editor": "6.7.0-prerelease.6",
29-
"@patternfly/react-core": "6.7.0-prerelease.6",
30-
"@patternfly/react-drag-drop": "6.7.0-prerelease.6",
31-
"@patternfly/react-icons": "6.7.0-prerelease.3",
32-
"@patternfly/react-styles": "6.7.0-prerelease.3",
33-
"@patternfly/react-table": "6.7.0-prerelease.7",
34-
"@patternfly/react-templates": "6.7.0-prerelease.6",
35-
"@patternfly/react-tokens": "6.7.0-prerelease.3",
26+
"@patternfly/patternfly": "npm:@rh-felt/styles@0.0.1-prerelease.3",
27+
"@patternfly/react-code-editor": "npm:@rh-felt/react-code-editor@0.0.1-prerelease.3",
28+
"@patternfly/react-core": "npm:@rh-felt/react-core@0.0.1-prerelease.3",
29+
"@patternfly/react-icons": "npm:@rh-felt/react-icons@0.0.1-prerelease.2",
30+
"@patternfly/react-styles": "npm:@rh-felt/react-styles@0.0.1-prerelease.3",
31+
"@patternfly/react-table": "npm:@rh-felt/react-table@0.0.1-prerelease.3",
32+
"@patternfly/react-tokens": "npm:@rh-felt/react-tokens@0.0.1-prerelease.2",
33+
"@rh-felt/styles": "0.0.1-prerelease.3",
3634
"echarts": "^5.6.0 || ^6.0.0",
3735
"victory": "^37.3.6"
3836
},

‎packages/react-docs/patternfly-docs/patternfly-docs.css.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import '@rh-felt/react-styles/src/css/components/Popper/Popper.css';
77
import '@patternfly/documentation-framework/global.css';
88

99
// Patternfly
10-
import '@patternfly/patternfly/patternfly.css';
10+
import '@rh-felt/styles/patternfly.css';
1111

1212
// Utilities
13-
import '@patternfly/patternfly/patternfly-addons.css';
13+
import '@rh-felt/styles/patternfly-addons.css';
1414

1515
// Charts
16-
import '@patternfly/patternfly/patternfly-charts.css';
16+
import '@rh-felt/styles/patternfly-charts.css';

‎packages/react-icons/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@fortawesome/free-brands-svg-icons": "^5.15.4",
4040
"@fortawesome/free-regular-svg-icons": "^5.15.4",
4141
"@fortawesome/free-solid-svg-icons": "^5.15.4",
42-
"@patternfly/patternfly": "6.7.0-prerelease.3",
42+
"@rh-felt/styles": "0.0.1-prerelease.3",
4343
"@rhds/icons": "^2.3.1",
4444
"fs-extra": "^11.3.3"
4545
},

0 commit comments

Comments
 (0)