@patternfly/documentation-framework 6.28.7 → 6.28.9

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
+ ## 6.28.9 (2025-10-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **docs-framework:** update webpack to handle all images the same way ([#4843](https://github.com/patternfly/patternfly-org/issues/4843)) ([26cbb75](https://github.com/patternfly/patternfly-org/commit/26cbb7559e71bfaff0cf01c9afc378f48624abf9))
12
+
13
+
14
+
15
+
16
+
17
+ ## 6.28.8 (2025-10-22)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * re-enable theme switcher hc beta label ([#4836](https://github.com/patternfly/patternfly-org/issues/4836)) ([4e85fce](https://github.com/patternfly/patternfly-org/commit/4e85fce75834e4cde4adb2f6bc62408472426b0a))
23
+
24
+
25
+
26
+
27
+
6
28
  ## 6.28.7 (2025-10-21)
7
29
 
8
30
 
@@ -108,6 +108,8 @@ export const Example = ({
108
108
  // absolute url to hosted file
109
109
  sourceLink = ''
110
110
  }) => {
111
+
112
+
111
113
  if (isFullscreenPreview) {
112
114
  isFullscreen = false;
113
115
  }
@@ -264,6 +266,11 @@ export const Example = ({
264
266
  );
265
267
  const metaText = hasMetaText && tooltips;
266
268
 
269
+ const thumbnailDimensions = {
270
+ width: "800",
271
+ height: "450"
272
+ }
273
+
267
274
  return (
268
275
  <Stack hasGutter>
269
276
  <StackItem>
@@ -281,7 +288,7 @@ export const Example = ({
281
288
  target="_blank"
282
289
  aria-label={`Open fullscreen ${title} example`}
283
290
  >
284
- <img src={thumbnail.src} width={thumbnail.width} height={thumbnail.height} alt={`${title} screenshot`} />
291
+ <img src={thumbnail} width={thumbnailDimensions.width} height={thumbnailDimensions.height} alt={`${title} screenshot`} />
285
292
  </a>
286
293
  </div>
287
294
  ) : (
@@ -66,29 +66,34 @@ const HighContrastGroupLabel = () => {
66
66
  High contrast{' '}
67
67
  <Popover
68
68
  onClick={(e) => e.stopPropagation()}
69
- headerContent={"Under development"}
69
+ headerContent={'Under development'}
70
70
  headerComponent="h1"
71
71
  bodyContent={
72
- "We are still working to add high contrast support across all PatternFly components and extensions. This beta allows you to preview our progress."
72
+ 'We are still working to add high contrast support across all PatternFly components and extensions. This beta allows you to preview our progress.'
73
73
  }
74
74
  footerContent={
75
- <Button icon={<ExternalLinkAltIcon />} component="a" isInline variant="link" href="/design-foundations/theming" target="_blank">
75
+ <Button
76
+ icon={<ExternalLinkAltIcon />}
77
+ component="a"
78
+ isInline
79
+ variant="link"
80
+ href="/design-foundations/theming"
81
+ target="_blank"
82
+ >
76
83
  Learn more
77
84
  </Button>
78
85
  }
79
86
  aria-label="More info about high contrast"
80
87
  appendTo={() => document.body}
81
88
  >
82
- <Button
83
- variant="plain"
84
- hasNoPadding
85
- icon={<HelpIcon />}
86
- aria-label="High contrast help"
87
- />
88
- </Popover>{' '}&nbsp;
89
- <Label color="blue" isCompact>Beta</Label>
89
+ <Button variant="plain" hasNoPadding icon={<HelpIcon />} aria-label="High contrast help" />
90
+ </Popover>{' '}
91
+ &nbsp;
92
+ <Label color="blue" isCompact>
93
+ Beta
94
+ </Label>
90
95
  </div>
91
- )
96
+ );
92
97
  };
93
98
 
94
99
  export const ThemeSelector = ({ id }) => {
@@ -173,7 +178,7 @@ export const ThemeSelector = ({ id }) => {
173
178
  {process.env.hasHighContrastSwitcher && (
174
179
  <>
175
180
  <Divider />
176
- <SelectGroup label="High Contrast">
181
+ <SelectGroup label={HighContrastGroupLabel}>
177
182
  <MenuSearch>
178
183
  <MenuSearchInput>
179
184
  <ToggleGroup aria-label="High contrast theme switcher">
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.28.7",
4
+ "version": "6.28.9",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -12,7 +12,7 @@
12
12
  "@babel/preset-env": "7.27.1",
13
13
  "@babel/preset-react": "^7.24.1",
14
14
  "@mdx-js/util": "1.6.16",
15
- "@patternfly/ast-helpers": "^1.4.0-alpha.301",
15
+ "@patternfly/ast-helpers": "^1.4.0-alpha.303",
16
16
  "@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
17
17
  "autoprefixer": "10.4.19",
18
18
  "babel-loader": "^9.1.3",
@@ -54,7 +54,6 @@
54
54
  "remark-mdxjs": "2.0.0-next.8",
55
55
  "remark-parse": "8.0.3",
56
56
  "remark-squeeze-paragraphs": "4.0.0",
57
- "responsive-loader": "3.1.2",
58
57
  "sharp": "0.33.0",
59
58
  "style-to-object": "0.3.0",
60
59
  "to-vfile": "6.1.0",
@@ -95,5 +94,5 @@
95
94
  "http-cache-semantics": ">=4.1.1",
96
95
  "nanoid": "3.3.8"
97
96
  },
98
- "gitHead": "e354730261ba7529220b69c5d6bf5f28fa309174"
97
+ "gitHead": "00ca44249a59ed015d34acf068fc6f00f0db06bb"
99
98
  }
@@ -72,18 +72,7 @@ module.exports = (_env, argv) => {
72
72
  }
73
73
  },
74
74
  {
75
- test: /\.(png|jpe?g|webp)$/,
76
- use: {
77
- loader: 'responsive-loader',
78
- options: {
79
- adapter: require('responsive-loader/sharp'),
80
- name: '[name].[contenthash].[ext]',
81
- outputPath: 'images/'
82
- }
83
- }
84
- },
85
- {
86
- test: /\.(gif|svg)$/,
75
+ test: /\.(gif|svg|png|jpe?g|webp)$/,
87
76
  type: 'asset/resource',
88
77
  dependency: { not: ['url'] },
89
78
  generator: {