@patternfly/documentation-framework 6.0.0-alpha.13 → 6.0.0-alpha.14
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 -0
- package/layouts/sideNavLayout/sideNavLayout.js +18 -18
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.14 (2024-03-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# 6.0.0-alpha.13 (2024-03-21)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
ToolbarItem,
|
|
25
25
|
SkipToContent,
|
|
26
26
|
Switch,
|
|
27
|
-
SearchInput,
|
|
27
|
+
// SearchInput,
|
|
28
28
|
ToggleGroup,
|
|
29
29
|
ToggleGroupItem
|
|
30
30
|
} from '@patternfly/react-core';
|
|
@@ -51,10 +51,10 @@ const HeaderTools = ({
|
|
|
51
51
|
const initialVersion = staticVersions.Releases.find(release => release.latest);
|
|
52
52
|
const latestVersion = versions.Releases.find(version => version.latest);
|
|
53
53
|
const previousReleases = Object.values(versions.Releases).filter(version => !version.hidden && !version.latest);
|
|
54
|
-
const hasSearch = algolia;
|
|
54
|
+
// const hasSearch = algolia;
|
|
55
55
|
const [isDropdownOpen, setDropdownOpen] = useState(false);
|
|
56
|
-
const [searchValue, setSearchValue] = React.useState('');
|
|
57
|
-
const [isSearchExpanded, setIsSearchExpanded] = React.useState(false);
|
|
56
|
+
// const [searchValue, setSearchValue] = React.useState('');
|
|
57
|
+
// const [isSearchExpanded, setIsSearchExpanded] = React.useState(false);
|
|
58
58
|
const [isDarkTheme, setIsDarkTheme] = React.useState(false);
|
|
59
59
|
|
|
60
60
|
const getDropdownItem = (version, isLatest = false) => (
|
|
@@ -63,13 +63,13 @@ const HeaderTools = ({
|
|
|
63
63
|
</DropdownItem>
|
|
64
64
|
);
|
|
65
65
|
|
|
66
|
-
const onChange = (_evt, value) => {
|
|
67
|
-
|
|
68
|
-
};
|
|
66
|
+
// const onChange = (_evt, value) => {
|
|
67
|
+
// setSearchValue(value);
|
|
68
|
+
// };
|
|
69
69
|
|
|
70
|
-
const onToggleExpand = (_evt, isSearchExpanded) => {
|
|
71
|
-
|
|
72
|
-
};
|
|
70
|
+
// const onToggleExpand = (_evt, isSearchExpanded) => {
|
|
71
|
+
// setIsSearchExpanded(!isSearchExpanded);
|
|
72
|
+
// };
|
|
73
73
|
|
|
74
74
|
const toggleDarkTheme = (_evt, selected) => {
|
|
75
75
|
const darkThemeToggleClicked = !selected === isDarkTheme
|
|
@@ -77,12 +77,12 @@ const HeaderTools = ({
|
|
|
77
77
|
setIsDarkTheme(darkThemeToggleClicked);
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
useEffect(() => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}, [isSearchExpanded])
|
|
80
|
+
// useEffect(() => {
|
|
81
|
+
// // reattach algolia to input each time search is expanded
|
|
82
|
+
// if (hasSearch && isSearchExpanded) {
|
|
83
|
+
// attachDocSearch(algolia, '.ws-global-search .pf-v5-c-text-input-group__text-input', 1000);
|
|
84
|
+
// }
|
|
85
|
+
// }, [isSearchExpanded])
|
|
86
86
|
|
|
87
87
|
return (
|
|
88
88
|
<Toolbar isFullHeight>
|
|
@@ -109,7 +109,7 @@ const HeaderTools = ({
|
|
|
109
109
|
<Switch id="ws-rtl-switch" label={'RTL'} defaultChecked={isRTL} onChange={() => setIsRTL(isRTL => !isRTL)} />
|
|
110
110
|
</ToolbarItem>
|
|
111
111
|
)}
|
|
112
|
-
{hasSearch && (
|
|
112
|
+
{/* {hasSearch && (
|
|
113
113
|
<ToolbarItem>
|
|
114
114
|
<SearchInput
|
|
115
115
|
className="ws-global-search"
|
|
@@ -120,7 +120,7 @@ const HeaderTools = ({
|
|
|
120
120
|
expandableInput={{ isExpanded: isSearchExpanded, onToggleExpand, toggleAriaLabel: 'Expandable search input toggle' }}
|
|
121
121
|
/>
|
|
122
122
|
</ToolbarItem>
|
|
123
|
-
)}
|
|
123
|
+
)} */}
|
|
124
124
|
<ToolbarItem>
|
|
125
125
|
<Button
|
|
126
126
|
component="a"
|
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.14",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@babel/plugin-transform-react-jsx": "7.17.12",
|
|
18
18
|
"@babel/preset-env": "7.18.2",
|
|
19
19
|
"@mdx-js/util": "1.6.16",
|
|
20
|
-
"@patternfly/ast-helpers": "^1.4.0-alpha.
|
|
20
|
+
"@patternfly/ast-helpers": "^1.4.0-alpha.3",
|
|
21
21
|
"@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
|
|
22
22
|
"autoprefixer": "9.8.6",
|
|
23
23
|
"babel-loader": "9.1.2",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"react": "^17.0.0 || ^18.0.0",
|
|
88
88
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "87424635c8ba6f0ef74e498cb1b5bdbbfdbe3f91"
|
|
91
91
|
}
|