Skip to content

Commit 4001bce

Browse files
chore(docs): bumped framework and added switchers (#299)
chore(docs): bumped framework and added switchers Bumped to 6.4 release Updated node version in workflows Updated yarn version
1 parent ce5542d commit 4001bce

File tree

10 files changed

+23076
-15793
lines changed

10 files changed

+23076
-15793
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
git fetch origin pull/$GH_PR_NUM/head:tmp
1515
git checkout tmp
1616
fi
17-
- uses: actions/setup-node@v1
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version: '20'
2020
- run: corepack enable
@@ -36,7 +36,7 @@ jobs:
3636
git fetch origin pull/$GH_PR_NUM/head:tmp
3737
git checkout tmp
3838
fi
39-
- uses: actions/setup-node@v1
39+
- uses: actions/setup-node@v4
4040
with:
4141
node-version: '20'
4242
- run: corepack enable
@@ -59,7 +59,7 @@ jobs:
5959
git fetch origin pull/$GH_PR_NUM/head:tmp
6060
git checkout tmp
6161
fi
62-
- uses: actions/setup-node@v1
62+
- uses: actions/setup-node@v4
6363
with:
6464
node-version: '20'
6565
- run: corepack enable
@@ -84,7 +84,7 @@ jobs:
8484
git fetch origin pull/$GH_PR_NUM/head:tmp
8585
git checkout tmp
8686
fi
87-
- uses: actions/setup-node@v1
87+
- uses: actions/setup-node@v4
8888
with:
8989
node-version: '20'
9090
- run: corepack enable

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Run build script
1818
run: ./devSetup.sh
1919
shell: bash
20-
- uses: actions/setup-node@v1
20+
- uses: actions/setup-node@v4
2121
with:
2222
node-version: '20'
2323
- run: corepack enable

.github/workflows/pr-preview.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
88
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
99
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}
10-
GH_PR_NUM: ${{ github.event.number }}
10+
GH_PR_NUM: ${{ github.event.number }}
1111
steps:
1212
- uses: actions/checkout@v2
1313
# Yes, we really want to checkout the PR
@@ -21,7 +21,7 @@ jobs:
2121
git log origin/main..HEAD --format="%b"
2222
# Yes, we really want to checkout the PR
2323
# Injected by generate-workflows.js
24-
- uses: actions/setup-node@v1
24+
- uses: actions/setup-node@v4
2525
with:
2626
node-version: '20'
2727
- run: corepack enable
@@ -38,4 +38,4 @@ jobs:
3838
name: Build docs
3939
- run: node .github/upload-preview.js packages/module/public
4040
name: Upload docs
41-
if: always()
41+
if: always()

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1515
steps:
1616
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v1
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version: '20'
2020
- run: corepack enable

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,33 @@
2626
},
2727
"devDependencies": {
2828
"@babel/core": "^7.19.6",
29+
"@babel/plugin-proposal-class-properties": "^7.18.6",
30+
"@babel/plugin-proposal-decorators": "^7.21.0",
2931
"@babel/preset-env": "^7.19.4",
30-
"@babel/preset-react": "^7.18.6",
3132
"@babel/preset-flow": "^7.18.6",
33+
"@babel/preset-react": "^7.18.6",
3234
"@babel/preset-typescript": "^7.18.6",
33-
"@babel/plugin-proposal-decorators": "^7.21.0",
34-
"@babel/plugin-proposal-class-properties": "^7.18.6",
35+
"@octokit/rest": "^18.0.0",
36+
"@testing-library/dom": "9.0.0",
37+
"@testing-library/jest-dom": "5.16.5",
3538
"@testing-library/react": "^13.4.0",
3639
"@testing-library/user-event": "14.4.3",
37-
"@testing-library/jest-dom": "5.16.5",
38-
"@testing-library/dom": "9.0.0",
40+
"@types/react": "^18",
3941
"@typescript-eslint/eslint-plugin": "^5.42.0",
4042
"@typescript-eslint/parser": "^5.42.0",
41-
"@octokit/rest": "^18.0.0",
4243
"babel-jest": "^29.2.2",
4344
"concurrently": "^5.3.0",
4445
"eslint": "8.22.0",
46+
"eslint-config-prettier": "8.5.0",
47+
"eslint-config-standard-with-typescript": "^23.0.0",
4548
"eslint-plugin-import": "^2.25.2",
4649
"eslint-plugin-markdown": "^1.0.2",
47-
"eslint-plugin-prettier": "^3.1.4",
48-
"eslint-plugin-react": "^7.21.4",
49-
"eslint-config-standard-with-typescript": "^23.0.0",
5050
"eslint-plugin-n": "^15.0.0",
51+
"eslint-plugin-patternfly-react": "^4.80.4",
52+
"eslint-plugin-prettier": "^3.1.4",
5153
"eslint-plugin-promise": "^6.0.0",
54+
"eslint-plugin-react": "^7.21.4",
5255
"eslint-plugin-react-hooks": "^4.6.0",
53-
"eslint-config-prettier": "8.5.0",
54-
"eslint-plugin-patternfly-react": "^4.80.4",
5556
"jest": "^29.2.2",
5657
"jest-environment-jsdom": "^29.2.2",
5758
"jest-transform-stub": "^2.0.0",
@@ -60,8 +61,7 @@
6061
"react-dom": "^18",
6162
"serve": "^14.1.2",
6263
"surge": "^0.23.1",
63-
"typedoc": "0.23",
64-
"@types/react": "^18"
64+
"typedoc": "0.23"
6565
},
6666
"packageManager": "[email protected]"
6767
}

packages/demo-app-ts/package.json

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
2-
"name": "demo-app-ts",
3-
"private": true,
4-
"version": "4.210.7",
5-
"scripts": {
6-
"build:demo-app": "webpack --mode production",
7-
"start:demo-app": "webpack-dev-server",
8-
"start:demo-app:hot": "webpack-dev-server --hot=true",
9-
"serve:demo-app": "node scripts/serve"
10-
},
11-
"dependencies": {
12-
"@patternfly/react-core": "^6.0.0",
13-
"@patternfly/react-icons": "^6.0.0",
14-
"@patternfly/react-styles": "^6.0.0",
15-
"react": "^18",
16-
"react-dom": "^18",
17-
"react-router": "^5.3.3",
18-
"react-router-dom": "^5.3.3"
19-
},
20-
"devDependencies": {
21-
"@pmmmwh/react-refresh-webpack-plugin": "0.5.7",
22-
"@types/react": "^18",
23-
"@types/react-dom": "^18",
24-
"@types/react-router": "^5.1.18",
25-
"@types/react-router-dom": "^5.3.3",
26-
"classnames": "^2.2.6",
27-
"clean-webpack-plugin": "^3.0.0",
28-
"copy-webpack-plugin": "^6.1.0",
29-
"css-loader": "^4.3.0",
30-
"file-loader": "^6.1.0",
31-
"fork-ts-checker-webpack-plugin": "6.5.2",
32-
"html-webpack-plugin": "^5.5.0",
33-
"local-web-server": "^2.6.1",
34-
"mini-css-extract-plugin": "^0.11.1",
35-
"react-hot-loader": "4.13.0",
36-
"react-refresh": "0.14.0",
37-
"react-refresh-typescript": "2.0.7",
38-
"style-loader": "3.3.1",
39-
"ts-loader": "^8.3.0",
40-
"typescript": "^4.7.4",
41-
"url-loader": "^4.1.0",
42-
"webpack": "5.73.0",
43-
"webpack-cli": "4.10.0",
44-
"webpack-dev-server": "4.9.3"
45-
}
46-
}
2+
"name": "demo-app-ts",
3+
"private": true,
4+
"version": "4.210.7",
5+
"scripts": {
6+
"build:demo-app": "webpack --mode production",
7+
"start:demo-app": "webpack-dev-server",
8+
"start:demo-app:hot": "webpack-dev-server --hot=true",
9+
"serve:demo-app": "node scripts/serve"
10+
},
11+
"dependencies": {
12+
"@patternfly/react-core": "^6.4.0",
13+
"@patternfly/react-icons": "^6.4.0",
14+
"@patternfly/react-styles": "^6.4.0",
15+
"react": "^18",
16+
"react-dom": "^18",
17+
"react-router": "^5.3.3",
18+
"react-router-dom": "^5.3.3"
19+
},
20+
"devDependencies": {
21+
"@pmmmwh/react-refresh-webpack-plugin": "0.5.7",
22+
"@types/react": "^18",
23+
"@types/react-dom": "^18",
24+
"@types/react-router": "^5.1.18",
25+
"@types/react-router-dom": "^5.3.3",
26+
"classnames": "^2.2.6",
27+
"clean-webpack-plugin": "^3.0.0",
28+
"copy-webpack-plugin": "^6.1.0",
29+
"css-loader": "^4.3.0",
30+
"file-loader": "^6.1.0",
31+
"fork-ts-checker-webpack-plugin": "6.5.2",
32+
"html-webpack-plugin": "^5.5.0",
33+
"local-web-server": "^2.6.1",
34+
"mini-css-extract-plugin": "^0.11.1",
35+
"react-hot-loader": "4.13.0",
36+
"react-refresh": "0.14.0",
37+
"react-refresh-typescript": "2.0.7",
38+
"style-loader": "3.3.1",
39+
"ts-loader": "^8.3.0",
40+
"typescript": "^4.7.4",
41+
"url-loader": "^4.1.0",
42+
"webpack": "5.73.0",
43+
"webpack-cli": "4.10.0",
44+
"webpack-dev-server": "4.9.3"
45+
}
46+
}

packages/module/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
"tag": "prerelease"
3434
},
3535
"dependencies": {
36-
"@patternfly/react-core": "^6.0.0",
37-
"@patternfly/react-icons": "^6.0.0",
38-
"@patternfly/react-styles": "^6.0.0",
36+
"@dagrejs/dagre": "1.1.2",
37+
"@patternfly/react-core": "^6.4.0",
38+
"@patternfly/react-icons": "^6.4.0",
39+
"@patternfly/react-styles": "^6.4.0",
3940
"@types/d3": "^7.4.0",
4041
"@types/d3-force": "^1.2.1",
4142
"d3": "^7.8.0",
42-
"@dagrejs/dagre": "1.1.2",
4343
"mobx": "^6.9.0",
4444
"mobx-react": "^7.6.0",
4545
"point-in-svg-path": "^1.0.1",
@@ -52,23 +52,23 @@
5252
"react-dom": "^17 || ^18 || ^19"
5353
},
5454
"devDependencies": {
55-
"@patternfly/documentation-framework": "6.0.0-alpha.120",
56-
"@patternfly/patternfly": "^6.0.0",
55+
"@patternfly/documentation-framework": "^6.24.2",
56+
"@patternfly/patternfly": "^6.4.0",
5757
"@patternfly/patternfly-a11y": "^4.3.1",
58-
"@patternfly/react-code-editor": "^6.0.0",
59-
"@patternfly/react-table": "^6.0.0",
58+
"@patternfly/react-code-editor": "^6.4.0",
59+
"@patternfly/react-table": "^6.4.0",
6060
"@types/react": "^18.0.0",
6161
"@types/react-dom": "^18.0.0",
6262
"camel-case": "^3.0.0",
6363
"css": "^2.2.3",
6464
"fs-extra": "^6.0.1",
6565
"glob": "^7.1.2",
6666
"jsdom": "^15.1.0",
67+
"monaco-editor": "^0.34.1",
6768
"react": "^18.0.0",
6869
"react-dom": "^18.0.0",
69-
"rimraf": "^2.6.2",
70-
"typescript": "^4.7.4",
7170
"react-monaco-editor": "^0.51.0",
72-
"monaco-editor": "^0.34.1"
71+
"rimraf": "^2.6.2",
72+
"typescript": "^4.7.4"
7373
}
7474
}

packages/module/patternfly-docs/patternfly-docs.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
module.exports = {
33
sideNavItems: [{ section: 'topology' }],
44
topNavItems: [],
5-
port: 8008
5+
port: 8008,
6+
hasThemeSwitcher: true,
7+
hasHighContrastSwitcher: true
68
};

packages/module/src/components/TopologyControlBar/__tests__/__snapshots__/TopologyControlBar.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ exports[`TopologyControlBar should accept button options correctly 1`] = `
9797
style="display: contents;"
9898
>
9999
<button
100-
aria-disabled="false"
100+
aria-disabled="true"
101101
class="pf-v6-c-button pf-m-tertiary pf-topology-control-bar__button pf-m-disabled"
102102
data-ouia-component-id="OUIA-Generated-Button-tertiary-8"
103103
data-ouia-component-type="PF6/Button"

0 commit comments

Comments
 (0)