@patternfly/documentation-framework 2.0.0-alpha.66 → 2.0.0-alpha.68

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,22 @@
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.68 (2023-06-21)
7
+
8
+ **Note:** Version bump only for package @patternfly/documentation-framework
9
+
10
+
11
+
12
+
13
+
14
+ # 2.0.0-alpha.67 (2023-06-21)
15
+
16
+ **Note:** Version bump only for package @patternfly/documentation-framework
17
+
18
+
19
+
20
+
21
+
6
22
  # 2.0.0-alpha.66 (2023-06-16)
7
23
 
8
24
  **Note:** Version bump only for package @patternfly/documentation-framework
@@ -147,11 +147,11 @@ export const Footer = () => (
147
147
  <li className="ws-org-pfsite-footer-menu-list-item">
148
148
  <Link
149
149
  className="ws-org-pfsite-footer-menu-link"
150
- to="//forum.patternfly.org"
150
+ to="//github.com/orgs/patternfly/discussions"
151
151
  target="top"
152
- aria-label="Visit the PatternFly 4 forum"
152
+ aria-label="Visit the PatternFly discussion forum"
153
153
  >
154
- Forum
154
+ Discussions
155
155
  </Link>
156
156
  </li>
157
157
  <li className="ws-org-pfsite-footer-menu-list-item">
@@ -10,7 +10,7 @@ export const SectionDataListLayout = ({ galleryItems, layoutView, hasListText, h
10
10
 
11
11
  return (
12
12
  <DataList onSelectDataListItem={() => {}}>
13
- {galleryItems.map(({ idx, slug, illustration, itemName, title, isBeta, id, galleryItemsData }) => (
13
+ {galleryItems.map(({ idx, slug, illustration, itemName, title, isBeta, isDeprecated, isDemo, id, galleryItemsData }) => (
14
14
  <Link to={slug} key={idx} className="ws-section-gallery-item">
15
15
  <DataListItem>
16
16
  <DataListItemRow>
@@ -34,7 +34,9 @@ export const SectionDataListLayout = ({ galleryItems, layoutView, hasListText, h
34
34
  </TextContent>
35
35
  </SplitItem>
36
36
  <SplitItem>
37
- {isBeta && <Label color="gold">Beta feature</Label>}
37
+ {isBeta && (<Label color="blue" isCompact>Beta</Label>)}
38
+ {!isBeta && isDeprecated && (<Label color="grey" isCompact>Deprecated</Label>)}
39
+ {!isBeta && !isDeprecated && isDemo && (<Label color="purple" isCompact>Demo</Label>)}
38
40
  </SplitItem>
39
41
  </Split>
40
42
  { hasListText && <TextSummary id={id} itemsData={galleryItemsData} /> }
@@ -10,7 +10,7 @@ export const SectionGalleryLayout = ({ galleryItems, layoutView, hasGridText, ha
10
10
 
11
11
  return (
12
12
  <Gallery hasGutter>
13
- {galleryItems.map(({idx, slug, id, itemName, illustration, isBeta, title, galleryItemsData}) => (
13
+ {galleryItems.map(({idx, slug, id, itemName, illustration, isBeta, isDeprecated, isDemo, title, galleryItemsData}) => (
14
14
  <GalleryItem span={4} key={idx}>
15
15
  <Link to={slug} className="ws-section-gallery-item">
16
16
  <Card
@@ -25,9 +25,11 @@ export const SectionGalleryLayout = ({ galleryItems, layoutView, hasGridText, ha
25
25
  { hasGridText && <TextSummary id={id} itemsData={galleryItemsData} /> }
26
26
  </CardBody>
27
27
  )}
28
- {isBeta && (
28
+ {(isBeta || isDeprecated || isDemo) && (
29
29
  <CardFooter>
30
- <Label color="blue">Beta feature</Label>
30
+ {isBeta && (<Label color="blue" isCompact>Beta</Label>)}
31
+ {!isBeta && isDeprecated && (<Label color="grey" isCompact>Deprecated</Label>)}
32
+ {!isBeta && !isDeprecated && isDemo && (<Label color="purple" isCompact>Demo</Label>)}
31
33
  </CardFooter>
32
34
  )}
33
35
  </Card>
@@ -67,7 +67,10 @@ export const SectionGalleryWrapper = ({
67
67
  const title = itemData.title || itemName;
68
68
  const id = itemData.id || title;
69
69
  // Display beta label if tab other than a '-next' tab is marked Beta
70
+ const isDeprecated = !isSubsection && sources && sources.some(source => source.source === "react-deprecated" || source.source === "html-deprecated") && !sources.some(source => source.source === "react" || source.source === "html");
70
71
  const isBeta = !isSubsection && sources && sources.some(src => src.beta && !src.source.includes('-next'));
72
+ const isDemo = !isSubsection && sources && sources.some(source => source.source === "react-demos" || source.source === "html-demos") && !sources.some(source => source.source === "react" || source.source === "html");
73
+
71
74
  let slug = itemData.slug;
72
75
  if (!slug && isSubsection) {
73
76
  // Update slug to link to first page in subsection
@@ -91,6 +94,8 @@ export const SectionGalleryWrapper = ({
91
94
  itemName,
92
95
  illustration,
93
96
  isBeta,
97
+ isDeprecated,
98
+ isDemo,
94
99
  title,
95
100
  id,
96
101
  galleryItemsData
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.66",
4
+ "version": "2.0.0-alpha.68",
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": "46f5febbfd241d9cbaf3e9dee3805efdecf05caa"
94
+ "gitHead": "bfe7b9acb81a9327d0525206d877e41579f35b7c"
95
95
  }