@patternfly/react-docs 6.1.0 → 6.1.1-prerelease.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -2
- package/package.json +11 -12
- package/patternfly-a11y.config.js +16 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## 6.1.1-prerelease.2 (2023-08-31)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @patternfly/react-docs
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## 6.1.1-prerelease.1 (2023-08-29)
|
|
11
|
+
|
|
12
|
+
# 5.0.0 (2023-07-27)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @patternfly/react-docs
|
|
15
|
+
|
|
16
|
+
# [6.1.0-prerelease.0](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-docs@6.0.0...@patternfly/react-docs@6.1.0-prerelease.0) (2023-07-27)
|
|
11
17
|
|
|
12
18
|
**Note:** Version bump only for package @patternfly/react-docs
|
|
13
19
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-docs",
|
|
3
3
|
"description": "PatternFly React Docs",
|
|
4
|
-
"version": "6.1.
|
|
4
|
+
"version": "6.1.1-prerelease.2",
|
|
5
5
|
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
7
|
-
"tag": "prerelease-v4"
|
|
6
|
+
"access": "public"
|
|
8
7
|
},
|
|
9
8
|
"repository": {
|
|
10
9
|
"type": "git",
|
|
@@ -23,14 +22,14 @@
|
|
|
23
22
|
"test:a11y": "patternfly-a11y --config patternfly-a11y.config"
|
|
24
23
|
},
|
|
25
24
|
"dependencies": {
|
|
26
|
-
"@patternfly/patternfly": "5.0.
|
|
27
|
-
"@patternfly/react-charts": "^7.1.
|
|
28
|
-
"@patternfly/react-code-editor": "^5.1.
|
|
29
|
-
"@patternfly/react-core": "^5.1.
|
|
30
|
-
"@patternfly/react-icons": "^5.1.
|
|
31
|
-
"@patternfly/react-styles": "^5.1.
|
|
32
|
-
"@patternfly/react-table": "^5.1.
|
|
33
|
-
"@patternfly/react-tokens": "^5.1.
|
|
25
|
+
"@patternfly/patternfly": "5.1.0-prerelease.13",
|
|
26
|
+
"@patternfly/react-charts": "^7.1.1-prerelease.2",
|
|
27
|
+
"@patternfly/react-code-editor": "^5.1.1-prerelease.2",
|
|
28
|
+
"@patternfly/react-core": "^5.1.1-prerelease.2",
|
|
29
|
+
"@patternfly/react-icons": "^5.1.1-prerelease.2",
|
|
30
|
+
"@patternfly/react-styles": "^5.1.1-prerelease.2",
|
|
31
|
+
"@patternfly/react-table": "^5.1.1-prerelease.2",
|
|
32
|
+
"@patternfly/react-tokens": "^5.1.1-prerelease.2"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
35
|
"@patternfly/documentation-framework": "^5.0.13",
|
|
@@ -45,5 +44,5 @@
|
|
|
45
44
|
"last 2 versions",
|
|
46
45
|
"not ie <= 11"
|
|
47
46
|
],
|
|
48
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "52cbf11e7e407d70d674a160da7f432d197c5f57"
|
|
49
48
|
}
|
|
@@ -14,10 +14,25 @@ const urls = Object.keys(fullscreenRoutes)
|
|
|
14
14
|
if (fullscreenRoutes[key].isFullscreenOnly) {
|
|
15
15
|
return key;
|
|
16
16
|
} else {
|
|
17
|
+
// the default tab for each component/pattern does not have a trailing 'react-demo' or 'react' string in the url
|
|
18
|
+
// so we strip the trailing string from those paths.
|
|
17
19
|
const path = fullscreenRoutes[key].path;
|
|
18
|
-
if (path.match(/\/
|
|
20
|
+
if (path.match(/\/patterns\/.*\/react-demos$/g)) {
|
|
19
21
|
return path.replace(/\/react-demos$/, '');
|
|
20
22
|
} else {
|
|
23
|
+
// some demos have been moved to the component section, so their default tab has a trailing 'react-demos'
|
|
24
|
+
if (path.match(/\/components\/.*\/react-demos$/g)){
|
|
25
|
+
if (path.includes('/application-launcher/') ||
|
|
26
|
+
path.includes('/context-selector/') ||
|
|
27
|
+
path.includes('/date-and-time-picker/') ||
|
|
28
|
+
path.includes('/password-generator/') ||
|
|
29
|
+
path.includes('/password-strength/') ||
|
|
30
|
+
path.includes('/custom-menus/') ||
|
|
31
|
+
path.includes('/options-menu/')) {
|
|
32
|
+
return path.replace(/\/react-demos$/, '');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
// all other pages in the components section have a trailing 'react' string in their default tab
|
|
21
36
|
return path.replace(/\/react$/, '');
|
|
22
37
|
}
|
|
23
38
|
}
|