@patternfly/documentation-framework 6.2.0 → 6.4.0
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 +22 -0
- package/layouts/sideNavLayout/sideNavLayout.js +10 -10
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.4.0 (2024-12-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **ver:** fix release dropdown ([#4421](https://github.com/patternfly/patternfly-org/issues/4421)) ([efd6d87](https://github.com/patternfly/patternfly-org/commit/efd6d87d98fbf9b1f7036e9980da93ac256f7aed))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 6.3.0 (2024-12-17)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **ver:** fix dropdown ver ([#4418](https://github.com/patternfly/patternfly-org/issues/4418)) ([e2d297c](https://github.com/patternfly/patternfly-org/commit/e2d297cae19372728760f8cc025ff9ac38f06375))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# 6.2.0 (2024-12-17)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -159,7 +159,7 @@ const HeaderTools = ({
|
|
|
159
159
|
onClick={() => setDropdownOpen(!isDropdownOpen)}
|
|
160
160
|
isExpanded={isDropdownOpen}
|
|
161
161
|
>
|
|
162
|
-
Release
|
|
162
|
+
{`Release ${latestVersion.name}`}
|
|
163
163
|
</MenuToggle>
|
|
164
164
|
)}
|
|
165
165
|
popperProps={{ position: 'right' }}
|
|
@@ -232,8 +232,8 @@ export function attachDocSearch(algolia, inputSelector, timeout) {
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
const DARK_MODE_CLASS =
|
|
236
|
-
const DARK_MODE_STORAGE_KEY =
|
|
235
|
+
const DARK_MODE_CLASS = 'pf-v6-theme-dark';
|
|
236
|
+
const DARK_MODE_STORAGE_KEY = 'dark-mode';
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* Determines if dark mode is enabled based on the stored value or the system preference.
|
|
@@ -245,9 +245,9 @@ function isDarkModeEnabled() {
|
|
|
245
245
|
return false;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
const mediaQuery = window.matchMedia(
|
|
248
|
+
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
|
249
249
|
const storedValue = localStorage.getItem(DARK_MODE_STORAGE_KEY);
|
|
250
|
-
const isEnabled = storedValue === null ? mediaQuery.matches : storedValue ===
|
|
250
|
+
const isEnabled = storedValue === null ? mediaQuery.matches : storedValue === 'true';
|
|
251
251
|
|
|
252
252
|
return isEnabled;
|
|
253
253
|
}
|
|
@@ -312,14 +312,14 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
|
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
|
|
315
|
-
const mediaQuery = window.matchMedia(
|
|
315
|
+
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
|
316
316
|
|
|
317
|
-
mediaQuery.addEventListener(
|
|
318
|
-
window.addEventListener(
|
|
317
|
+
mediaQuery.addEventListener('change', onQueryChange);
|
|
318
|
+
window.addEventListener('storage', onStorageChange);
|
|
319
319
|
|
|
320
320
|
return () => {
|
|
321
|
-
mediaQuery.removeEventListener(
|
|
322
|
-
window.removeEventListener(
|
|
321
|
+
mediaQuery.removeEventListener('change', onQueryChange);
|
|
322
|
+
window.removeEventListener('storage', onStorageChange);
|
|
323
323
|
};
|
|
324
324
|
}, []);
|
|
325
325
|
|
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.
|
|
4
|
+
"version": "6.4.0",
|
|
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.140",
|
|
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": "01b545912f80ac1dc95586cb237ebb1397f5d509"
|
|
84
84
|
}
|