@patternfly/documentation-framework 5.6.0 → 5.8.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 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
+ # 5.8.0 (2024-03-20)
7
+
8
+
9
+ ### Features
10
+
11
+ * **templates:** add templates package to versions.json ([#3902](https://github.com/patternfly/patternfly-org/issues/3902)) ([c7c727c](https://github.com/patternfly/patternfly-org/commit/c7c727c717d5cc3c031f4f3c52070ffc6164e5d6))
12
+
13
+
14
+
15
+
16
+
17
+ # 5.7.0 (2024-03-19)
18
+
19
+
20
+ ### Features
21
+
22
+ * add pf 6 alpha banner to home page and version switcher ([#3896](https://github.com/patternfly/patternfly-org/issues/3896)) ([f7aaa22](https://github.com/patternfly/patternfly-org/commit/f7aaa22d12310aa62533de4169e1fa70a49a20d9))
23
+
24
+
25
+
26
+
27
+
6
28
  # 5.6.0 (2024-03-13)
7
29
 
8
30
 
@@ -163,12 +163,26 @@ const HeaderTools = ({
163
163
  </DropdownList>
164
164
  </DropdownGroup>
165
165
  )}
166
- <Divider key="divider" className="ws-switcher-divider"/>
166
+ <Divider key="divider1" className="ws-switcher-divider"/>
167
+ <DropdownGroup key="Alpha preview version" label="Alpha preview version">
168
+ <DropdownList>
169
+ <DropdownItem
170
+ key="PatternFly 6"
171
+ className="ws-patternfly-versions"
172
+ isExternalLink
173
+ to="https://staging-v6.patternfly.org/"
174
+ itemId="patternfly-6"
175
+ >
176
+ PatternFly 6
177
+ </DropdownItem>
178
+ </DropdownList>
179
+ </DropdownGroup>
180
+ <Divider key="divider2" className="ws-switcher-divider"/>
167
181
  <DropdownGroup key="Previous versions" label="Previous versions">
168
182
  <DropdownList>
169
183
  <DropdownItem
170
184
  key="PatternFly 4"
171
- className="ws-patternfly-3"
185
+ className="ws-patternfly-versions"
172
186
  isExternalLink
173
187
  to="http://v4-archive.patternfly.org/v4/"
174
188
  itemId="patternfly-4"
@@ -177,7 +191,7 @@ const HeaderTools = ({
177
191
  </DropdownItem>
178
192
  <DropdownItem
179
193
  key="PatternFly 3"
180
- className="ws-patternfly-3"
194
+ className="ws-patternfly-versions"
181
195
  isExternalLink
182
196
  to="https://pf3.patternfly.org/"
183
197
  itemId="patternfly-3"
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": "5.6.0",
4
+ "version": "5.8.0",
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.6.0",
20
+ "@patternfly/ast-helpers": "^1.8.0",
21
21
  "@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
22
22
  "autoprefixer": "9.8.6",
23
23
  "babel-loader": "9.1.2",
@@ -84,5 +84,5 @@
84
84
  "react": "^17.0.0 || ^18.0.0",
85
85
  "react-dom": "^17.0.0 || ^18.0.0"
86
86
  },
87
- "gitHead": "26de940cd895bddf7986df1771900d63b5d1c196"
87
+ "gitHead": "861632d3959c8dc2809dd6b76b4e3c69718f7a8b"
88
88
  }
@@ -105,6 +105,7 @@ function toReactComponent(mdFilePath, source, buildMode) {
105
105
  section: frontmatter.section || '',
106
106
  subsection: frontmatter.subsection || '',
107
107
  deprecated: frontmatter.deprecated || false,
108
+ template: frontmatter.template || false,
108
109
  beta: frontmatter.beta || false,
109
110
  demo: frontmatter.demo || false,
110
111
  newImplementationLink: frontmatter.newImplementationLink || false,
@@ -295,6 +296,7 @@ function sourceMDFile(file, source, buildMode) {
295
296
  ...(pageData.hideNavItem && { hideNavItem: pageData.hideNavItem }),
296
297
  ...(pageData.beta && { beta: pageData.beta }),
297
298
  ...(pageData.deprecated && { deprecated: pageData.deprecated }),
299
+ ...(pageData.template && { template: pageData.template }),
298
300
  ...(pageData.demo && { demo: pageData.demo }),
299
301
  ...(pageData.sortValue && { sortValue: pageData.sortValue }),
300
302
  ...(pageData.subsectionSortValue && { subsectionSortValue: pageData.subsectionSortValue })
package/templates/mdx.css CHANGED
@@ -1,7 +1,7 @@
1
1
  #ws-page-content-router {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- height: 100%;
4
+ flex-shrink: 0;
5
5
  }
6
6
 
7
7
  .ws-release-notes-toc {
package/templates/mdx.js CHANGED
@@ -23,6 +23,7 @@ const MDXChildTemplate = ({
23
23
  optIn,
24
24
  beta,
25
25
  deprecated,
26
+ template,
26
27
  newImplementationLink,
27
28
  functionDocumentation = []
28
29
  } = Component.getPageData();
@@ -84,6 +85,11 @@ const MDXChildTemplate = ({
84
85
  {' '}To learn more about the process, visit our <Link to="/get-started/about#major-release-cadence">about page</Link>.
85
86
  </InlineAlert>
86
87
  )}
88
+ {(template || source === 'react-template') && (
89
+ <InlineAlert title="Templates" variant="info">
90
+ {`This page showcases templates for the ${id.toLowerCase()} component. A template combines a component with logic that supports a specific use case, with a streamlined API that offers additional, limited customization.`}
91
+ </InlineAlert>
92
+ )}
87
93
  </React.Fragment>
88
94
  );
89
95
  // Create dynamic component for @reach/router
package/versions.json CHANGED
@@ -21,7 +21,8 @@
21
21
  "@patternfly/react-topology": "5.2.1",
22
22
  "@patternfly/react-user-feedback": "5.0.0",
23
23
  "@patternfly/react-virtualized-extension": "5.0.0",
24
- "@patternfly/quickstarts": "5.0.0"
24
+ "@patternfly/quickstarts": "5.0.0",
25
+ "@patternfly/react-templates": "^1.0.0-alpha.0"
25
26
  }
26
27
  },
27
28
  {
@@ -45,7 +46,8 @@
45
46
  "@patternfly/react-topology": "5.2.1",
46
47
  "@patternfly/react-user-feedback": "5.0.0",
47
48
  "@patternfly/react-virtualized-extension": "5.0.0",
48
- "@patternfly/quickstarts": "5.0.0"
49
+ "@patternfly/quickstarts": "5.0.0",
50
+ "@patternfly/react-templates": "^1.0.0-alpha.0"
49
51
  }
50
52
  },
51
53
  {
@@ -69,7 +71,8 @@
69
71
  "@patternfly/react-topology": "5.2.1",
70
72
  "@patternfly/react-user-feedback": "5.0.0",
71
73
  "@patternfly/react-virtualized-extension": "5.0.0",
72
- "@patternfly/quickstarts": "5.0.0"
74
+ "@patternfly/quickstarts": "5.0.0",
75
+ "@patternfly/react-templates": "^1.0.0-alpha.0"
73
76
  }
74
77
  },{
75
78
  "name": "5.1.0",