@patternfly/documentation-framework 2.0.0-alpha.49 → 2.0.0-alpha.50
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 +10 -4
- package/package.json +2 -2
- package/templates/mdx.js +2 -2
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
|
+
# 2.0.0-alpha.50 (2023-06-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **labels:** Update label logic to include html components ([#3567](https://github.com/patternfly/patternfly-org/issues/3567)) ([32bdc0f](https://github.com/patternfly/patternfly-org/commit/32bdc0fe2120e2c86f39c1e5da94e3f2d11d9705))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 2.0.0-alpha.49 (2023-06-01)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
@@ -38,8 +38,8 @@ const NavItem = ({ text, href, isDeprecated, isBeta, isDemo }) => {
|
|
|
38
38
|
{(isBeta || isDemo || isDeprecated) && (
|
|
39
39
|
<FlexItem>
|
|
40
40
|
{isBeta && (<Label color="blue" isCompact>Beta</Label>)}
|
|
41
|
-
{!isBeta &&
|
|
42
|
-
{!isBeta && !
|
|
41
|
+
{!isBeta && isDeprecated && (<Label color="grey" isCompact>Deprecated</Label>)}
|
|
42
|
+
{!isBeta && !isDeprecated && isDemo && (<Label color="purple" isCompact>Demo</Label>)}
|
|
43
43
|
</FlexItem>
|
|
44
44
|
)}
|
|
45
45
|
</Flex>
|
|
@@ -92,9 +92,15 @@ const ExpandableNav = ({groupedRoutes, location, section, subsection = null}) =>
|
|
|
92
92
|
? ExpandableNav({groupedRoutes, location, section, subsection: navObj.text})
|
|
93
93
|
: NavItem({
|
|
94
94
|
...navObj,
|
|
95
|
-
isDeprecated: navObj.href?.includes('components') && navObj.sources.some(source =>
|
|
95
|
+
isDeprecated: navObj.href?.includes('components') && navObj.sources.some(source => (
|
|
96
|
+
source.source === "react-deprecated" || source.source === "html-deprecated")
|
|
97
|
+
&& !navObj.sources.some(source => source.source === "react" || source.source === "html")
|
|
98
|
+
),
|
|
96
99
|
isBeta: navObj.sources.some(source => source.beta),
|
|
97
|
-
isDemo: navObj.sources.some(source =>
|
|
100
|
+
isDemo: navObj.sources.some(source => (
|
|
101
|
+
source.source === "react-demos" || source.source === "html-demos")
|
|
102
|
+
&& !navObj.sources.some(source => source.source === "react" || source.source === "html")
|
|
103
|
+
)
|
|
98
104
|
})
|
|
99
105
|
)}
|
|
100
106
|
</NavExpandable>
|
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": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.50",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"react": "^17.0.0 || ^18.0.0",
|
|
92
92
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "9565016ecdd8b19b9b8547dc5664d18b9cb4bdab"
|
|
95
95
|
}
|
package/templates/mdx.js
CHANGED
|
@@ -63,7 +63,7 @@ const MDXChildTemplate = ({
|
|
|
63
63
|
This beta component is currently under review and is still open for further evolution. It is available for use in product. Beta components are considered for promotion on a quarterly basis. Please join in and give us your feedback or submit any questions on the <a href="https://forum.patternfly.org/">PatternFly forum</a> or via <a href="//slack.patternfly.org/" target="_blank" rel="noopener noreferrer">Slack</a>. To learn more about the process, visit our <Link to="/get-started/about#beta-components">about page</Link> or our <a href="https://github.com/patternfly/patternfly-org/tree/main/beta-component-promotion">Beta components</a> page on GitHub.
|
|
64
64
|
</InlineAlert>
|
|
65
65
|
)}
|
|
66
|
-
{(deprecated || source === 'react-deprecated') && (
|
|
66
|
+
{(deprecated || source === 'react-deprecated' || source === 'html-deprecated') && (
|
|
67
67
|
<InlineAlert title="Deprecated feature" variant="warning">
|
|
68
68
|
This implementation has been deprecated in favor of a newer implementation, and is no longer getting maintained or enhanced.
|
|
69
69
|
{newImplementationLink && (
|
|
@@ -141,7 +141,7 @@ export const MDXTemplate = ({
|
|
|
141
141
|
id,
|
|
142
142
|
componentsData
|
|
143
143
|
}) => {
|
|
144
|
-
const isDeprecated = sources.some(source => source.source === "react-deprecated") && !sources.some(source => source.source === "react");
|
|
144
|
+
const isDeprecated = sources.some(source => source.source === "react-deprecated" || source.source === "html-deprecated") && !sources.some(source => source.source === "react" || source.source === "html");
|
|
145
145
|
const isBeta = sources.some(source => source.beta)
|
|
146
146
|
const isDemo = sources.some(source => source.source === "react-demos" || source.source === "html-demos") && !sources.some(source => source.source === "react" || source.source === "html");
|
|
147
147
|
// Build obj mapping source names to text displayed on tabs
|