@patternfly/documentation-framework 6.0.0-alpha.95 → 6.0.0-alpha.96
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 +11 -0
- package/components/sideNav/sideNav.js +5 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +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.0.0-alpha.96 (2024-09-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **sideNav:** Temporarily harcode breakpoint tokem token value ([#4262](https://github.com/patternfly/patternfly-org/issues/4262)) ([e91a93c](https://github.com/patternfly/patternfly-org/commit/e91a93c6bff7f99efd10d6f9577b21f82c20e749))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 6.0.0-alpha.95 (2024-09-17)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -4,7 +4,8 @@ import { Label, Nav, NavList, NavExpandable, PageContextConsumer, capitalize, Fl
|
|
|
4
4
|
import { css } from '@patternfly/react-styles';
|
|
5
5
|
import { Location } from '@reach/router';
|
|
6
6
|
import { makeSlug } from '../../helpers';
|
|
7
|
-
|
|
7
|
+
// temp fix for tokens changes. uncomment next line once rect-core PR #11002 goes in and org bumps the versions
|
|
8
|
+
//import globalBreakpointXl from "@patternfly/react-tokens/dist/esm/global_breakpoint_xl";
|
|
8
9
|
import { trackEvent } from '../../helpers';
|
|
9
10
|
|
|
10
11
|
const getIsActive = (location, section, subsection = null) => {
|
|
@@ -15,7 +16,9 @@ const getIsActive = (location, section, subsection = null) => {
|
|
|
15
16
|
const defaultValue = 50;
|
|
16
17
|
|
|
17
18
|
const NavItem = ({ text, href, isDeprecated, isBeta, isDemo }) => {
|
|
18
|
-
|
|
19
|
+
// temp fix for tokens changes. uncomment next line and delete line 21 once rect-core PR #11002 goes in and org bumps the versions
|
|
20
|
+
// const isMobileView = window.innerWidth < Number.parseInt(globalBreakpointXl.value, 10);
|
|
21
|
+
const isMobileView = window.innerWidth < Number.parseInt("75rem", 10);
|
|
19
22
|
return (
|
|
20
23
|
<PageContextConsumer key={href + text}>
|
|
21
24
|
{({onSidebarToggle, isSidebarOpen }) => (
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/documentation-framework",
|
|
3
3
|
"description": "A framework to build documentation for PatternFly.",
|
|
4
|
-
"version": "6.0.0-alpha.
|
|
4
|
+
"version": "6.0.0-alpha.96",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@babel/preset-env": "^7.24.3",
|
|
14
14
|
"@babel/preset-react": "^7.24.1",
|
|
15
15
|
"@mdx-js/util": "1.6.16",
|
|
16
|
-
"@patternfly/ast-helpers": "^1.4.0-alpha.
|
|
16
|
+
"@patternfly/ast-helpers": "^1.4.0-alpha.85",
|
|
17
17
|
"@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
|
|
18
18
|
"autoprefixer": "9.8.6",
|
|
19
19
|
"babel-loader": "^9.1.3",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"react": "^17.0.0 || ^18.0.0",
|
|
81
81
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "7846f8fd3acbd52e2672d50e8cb8962c6761ac6b"
|
|
84
84
|
}
|