@patternfly/documentation-framework 5.3.27 → 6.0.0-alpha.10

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,31 +3,29 @@
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.3.27 (2024-02-01)
7
-
8
- **Note:** Version bump only for package @patternfly/documentation-framework
9
-
6
+ # 6.0.0-alpha.10 (2024-02-01)
10
7
 
11
8
 
9
+ ### Bug Fixes
12
10
 
11
+ * bump docs framework version ([815e094](https://github.com/patternfly/patternfly-org/commit/815e09456987062a9b5d8a17c960698fd0c1c81c))
13
12
 
14
- ## 5.3.26 (2024-02-01)
15
13
 
16
- **Note:** Version bump only for package @patternfly/documentation-framework
17
14
 
18
15
 
19
16
 
17
+ # 6.0.0-alpha.9 (2024-01-23)
20
18
 
21
19
 
22
- ## 5.3.25 (2024-01-30)
20
+ ### Bug Fixes
23
21
 
24
- **Note:** Version bump only for package @patternfly/documentation-framework
22
+ * Update versions.json to include drag drop alpha ([9d924b7](https://github.com/patternfly/patternfly-org/commit/9d924b747cc3e431dffe438ed41940fbd610aa91))
25
23
 
26
24
 
27
25
 
28
26
 
29
27
 
30
- ## 5.3.24 (2024-01-30)
28
+ # 6.0.0-alpha.8 (2024-01-15)
31
29
 
32
30
  **Note:** Version bump only for package @patternfly/documentation-framework
33
31
 
@@ -35,82 +33,78 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
35
33
 
36
34
 
37
35
 
38
- ## 5.3.23 (2024-01-19)
36
+ # 6.0.0-alpha.7 (2024-01-12)
39
37
 
40
38
 
41
39
  ### Bug Fixes
42
40
 
43
- * avoid applying beta tags to nav items for next components ([#3868](https://github.com/patternfly/patternfly-org/issues/3868)) ([169c96f](https://github.com/patternfly/patternfly-org/commit/169c96f55b1bfdcb9859dbab27b88f5a180f48ba))
44
-
45
-
41
+ * Update brand svg id to avoid duplicate ids ([55d351b](https://github.com/patternfly/patternfly-org/commit/55d351be1b8d4d4f0b6d5f5090cbedc6629c6d94))
46
42
 
47
43
 
48
44
 
49
- ## 5.3.22 (2024-01-16)
50
45
 
51
- **Note:** Version bump only for package @patternfly/documentation-framework
52
46
 
47
+ # 6.0.0-alpha.6 (2024-01-12)
53
48
 
54
49
 
50
+ ### Bug Fixes
55
51
 
52
+ * bump puppeteer ([#3858](https://github.com/patternfly/patternfly-org/issues/3858)) ([2182a0f](https://github.com/patternfly/patternfly-org/commit/2182a0fe4d4d50c866703efe316deafffc44e5a2))
56
53
 
57
- ## 5.3.21 (2024-01-16)
58
54
 
59
55
 
60
- ### Bug Fixes
61
56
 
62
- * bump to latest release candidates ahead of 5.2 release ([#3862](https://github.com/patternfly/patternfly-org/issues/3862)) ([12eeb78](https://github.com/patternfly/patternfly-org/commit/12eeb782d32c4fa65f6aef64292f1e0d92f0d183))
63
57
 
58
+ # 6.0.0-alpha.5 (2023-12-20)
64
59
 
65
60
 
61
+ ### Bug Fixes
66
62
 
63
+ * PF brand logo in masthead to inline svg ([cafef36](https://github.com/patternfly/patternfly-org/commit/cafef363ea6b0912af9c5a1d5a0e10c353b60fd0))
67
64
 
68
- ## 5.3.20 (2024-01-15)
69
65
 
70
- **Note:** Version bump only for package @patternfly/documentation-framework
71
66
 
72
67
 
73
68
 
69
+ # 6.0.0-alpha.4 (2023-12-20)
74
70
 
75
71
 
76
- ## 5.3.19 (2024-01-15)
72
+ ### Bug Fixes
77
73
 
78
- **Note:** Version bump only for package @patternfly/documentation-framework
74
+ * update white space to test publishing to aws ([4432fbe](https://github.com/patternfly/patternfly-org/commit/4432fbea86ab6f420cef816475718a62c673a870))
79
75
 
80
76
 
81
77
 
82
78
 
83
79
 
84
- ## 5.3.18 (2024-01-12)
80
+ # 6.0.0-alpha.3 (2023-12-18)
85
81
 
86
82
 
87
83
  ### Bug Fixes
88
84
 
89
- * bump puppeteer to fix core ([#3860](https://github.com/patternfly/patternfly-org/issues/3860)) ([1695209](https://github.com/patternfly/patternfly-org/commit/169520944b7c3dccf69709e6e2075b9153fce059))
90
-
85
+ * try publish v6 to aws ([#3845](https://github.com/patternfly/patternfly-org/issues/3845)) ([9cc0909](https://github.com/patternfly/patternfly-org/commit/9cc09090ee035ac7087aacd9067b52a146bf3229))
91
86
 
92
87
 
93
88
 
94
89
 
95
- ## 5.3.17 (2024-01-05)
96
-
97
- **Note:** Version bump only for package @patternfly/documentation-framework
98
90
 
91
+ # 6.0.0-alpha.2 (2023-12-15)
99
92
 
100
93
 
94
+ ### Bug Fixes
101
95
 
96
+ * bump docs-framework version in docs-site ([93d9115](https://github.com/patternfly/patternfly-org/commit/93d91150da89bbabcd6d8e9b0ef9fcadad7272c1))
102
97
 
103
- ## 5.3.16 (2024-01-03)
104
98
 
105
- **Note:** Version bump only for package @patternfly/documentation-framework
106
99
 
107
100
 
108
101
 
102
+ # 6.0.0-alpha.1 (2023-12-14)
109
103
 
110
104
 
111
- ## 5.3.15 (2023-12-14)
105
+ ### Bug Fixes
112
106
 
113
- **Note:** Version bump only for package @patternfly/documentation-framework
107
+ * try a v6 release ([7d3150c](https://github.com/patternfly/patternfly-org/commit/7d3150c1195b013001720d1e5161cbb724a0d73b))
114
108
 
115
109
 
116
110
 
@@ -96,7 +96,7 @@ const ExpandableNav = ({groupedRoutes, location, section, subsection = null}) =>
96
96
  source.source === "react-deprecated" || source.source === "html-deprecated")
97
97
  && !navObj.sources.some(source => source.source === "react" || source.source === "html")
98
98
  ),
99
- isBeta: navObj.sources.some(source => source.beta && source.source !== 'react-next'),
99
+ isBeta: navObj.sources.some(source => source.beta),
100
100
  isDemo: navObj.sources.some(source => (
101
101
  source.source === "react-demos" || source.source === "html-demos")
102
102
  && !navObj.sources.some(source => source.source === "react" || source.source === "html")
@@ -260,7 +260,34 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
260
260
  <MastheadMain>
261
261
  <MastheadBrand href={prurl || '/'}>
262
262
  {prnum ? `PR #${prnum}` : (
263
- <Brand src={v5Logo} alt="PatternFly" heights={{ default: '36px' }} />
263
+ <svg height="40px" viewBox="0 0 679 158">
264
+ <title>PF-HorizontalLogo-Color</title>
265
+ <defs>
266
+ <linearGradient x1="68%" y1="2.25860997e-13%" x2="32%" y2="100%" id="linearGradient-website-masthead">
267
+ <stop stopColor="#2B9AF3" offset="0%"></stop>
268
+ <stop stopColor="#73BCF7" stopOpacity="0.502212631" offset="100%"></stop>
269
+ </linearGradient>
270
+ </defs>
271
+ <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
272
+ <g transform="translate(206.000000, 45.750000)" fill="var(--pf-t--global--text--color--regular)" fillRule="nonzero">
273
+ <path d="M0,65.25 L0,2.25 L33.21,2.25 C37.35,2.25 41.025,3.135 44.235,4.905 C47.445,6.675 49.98,9.09 51.84,12.15 C53.7,15.21 54.63,18.72 54.63,22.68 C54.63,26.46 53.7,29.865 51.84,32.895 C49.98,35.925 47.43,38.31 44.19,40.05 C40.95,41.79 37.29,42.66 33.21,42.66 L15.48,42.66 L15.48,65.25 L0,65.25 Z M15.48,29.88 L31.41,29.88 C33.69,29.88 35.52,29.22 36.9,27.9 C38.28,26.58 38.97,24.87 38.97,22.77 C38.97,20.61 38.28,18.855 36.9,17.505 C35.52,16.155 33.69,15.48 31.41,15.48 L15.48,15.48 L15.48,29.88 Z"></path>
274
+ <path d="M77.04,66.06 C73.68,66.06 70.695,65.43 68.085,64.17 C65.475,62.91 63.435,61.17 61.965,58.95 C60.495,56.73 59.76,54.18 59.76,51.3 C59.76,46.74 61.485,43.215 64.935,40.725 C68.385,38.235 73.2,36.99 79.38,36.99 C83.1,36.99 86.7,37.44 90.18,38.34 L90.18,36 C90.18,31.26 87.15,28.89 81.09,28.89 C77.49,28.89 72.69,30.15 66.69,32.67 L61.47,21.96 C69.15,18.48 76.56,16.74 83.7,16.74 C90.3,16.74 95.43,18.315 99.09,21.465 C102.75,24.615 104.58,29.04 104.58,34.74 L104.58,65.25 L90.18,65.25 L90.18,62.37 C88.26,63.69 86.235,64.635 84.105,65.205 C81.975,65.775 79.62,66.06 77.04,66.06 Z M73.62,51.03 C73.62,52.53 74.28,53.7 75.6,54.54 C76.92,55.38 78.75,55.8 81.09,55.8 C84.69,55.8 87.72,55.05 90.18,53.55 L90.18,47.43 C87.42,46.71 84.54,46.35 81.54,46.35 C79.02,46.35 77.07,46.755 75.69,47.565 C74.31,48.375 73.62,49.53 73.62,51.03 Z"></path>
275
+ <path d="M137.25,65.88 C125.73,65.88 119.97,60.84 119.97,50.76 L119.97,29.79 L110.34,29.79 L110.34,17.64 L119.97,17.64 L119.97,5.4 L134.55,2.25 L134.55,17.64 L147.87,17.64 L147.87,29.79 L134.55,29.79 L134.55,47.88 C134.55,49.98 135.015,51.465 135.945,52.335 C136.875,53.205 138.51,53.64 140.85,53.64 C143.01,53.64 145.2,53.31 147.42,52.65 L147.42,64.44 C146.1,64.86 144.42,65.205 142.38,65.475 C140.34,65.745 138.63,65.88 137.25,65.88 Z"></path>
276
+ <path d="M177.57,65.88 C166.05,65.88 160.29,60.84 160.29,50.76 L160.29,29.79 L150.66,29.79 L150.66,17.64 L160.29,17.64 L160.29,5.4 L174.87,2.25 L174.87,17.64 L188.19,17.64 L188.19,29.79 L174.87,29.79 L174.87,47.88 C174.87,49.98 175.335,51.465 176.265,52.335 C177.195,53.205 178.83,53.64 181.17,53.64 C183.33,53.64 185.52,53.31 187.74,52.65 L187.74,64.44 C186.42,64.86 184.74,65.205 182.7,65.475 C180.66,65.745 178.95,65.88 177.57,65.88 Z"></path>
277
+ <path d="M217.62,66.15 C212.76,66.15 208.365,65.055 204.435,62.865 C200.505,60.675 197.4,57.72 195.12,54 C192.84,50.28 191.7,46.11 191.7,41.49 C191.7,36.87 192.795,32.7 194.985,28.98 C197.175,25.26 200.16,22.305 203.94,20.115 C207.72,17.925 211.92,16.83 216.54,16.83 C221.22,16.83 225.36,17.955 228.96,20.205 C232.56,22.455 235.395,25.53 237.465,29.43 C239.535,33.33 240.57,37.8 240.57,42.84 L240.57,46.44 L206.64,46.44 C207.6,48.66 209.1,50.475 211.14,51.885 C213.18,53.295 215.58,54 218.34,54 C222.42,54 225.6,52.8 227.88,50.4 L237.51,58.95 C234.51,61.47 231.435,63.3 228.285,64.44 C225.135,65.58 221.58,66.15 217.62,66.15 Z M206.37,36.27 L226.26,36.27 C225.48,33.99 224.205,32.16 222.435,30.78 C220.665,29.4 218.61,28.71 216.27,28.71 C213.87,28.71 211.8,29.37 210.06,30.69 C208.32,32.01 207.09,33.87 206.37,36.27 Z"></path>
278
+ <path d="M247.41,65.25 L247.41,17.64 L261.99,17.64 L261.99,22.41 C265.23,18.51 269.4,16.56 274.5,16.56 C277.08,16.62 278.91,17.01 279.99,17.73 L279.99,30.42 C277.95,29.46 275.64,28.98 273.06,28.98 C270.78,28.98 268.665,29.505 266.715,30.555 C264.765,31.605 263.19,33.09 261.99,35.01 L261.99,65.25 L247.41,65.25 Z"></path>
279
+ <path d="M286.29,65.25 L286.29,17.64 L300.87,17.64 L300.87,20.88 C304.47,18.12 308.73,16.74 313.65,16.74 C317.37,16.74 320.655,17.55 323.505,19.17 C326.355,20.79 328.59,23.04 330.21,25.92 C331.83,28.8 332.64,32.13 332.64,35.91 L332.64,65.25 L318.06,65.25 L318.06,37.89 C318.06,35.25 317.28,33.15 315.72,31.59 C314.16,30.03 312.06,29.25 309.42,29.25 C305.76,29.25 302.91,30.51 300.87,33.03 L300.87,65.25 L286.29,65.25 Z"></path>
280
+ <polygon points="342 65.25 342 2.25 392.04 2.25 392.04 15.66 357.48 15.66 357.48 27.45 380.52 27.45 380.52 40.41 357.48 40.41 357.48 65.25"></polygon>
281
+ <polygon points="399.96 65.25 399.96 2.25 414.54 0 414.54 65.25"></polygon>
282
+ <path d="M429.21,84.69 C428.07,84.69 426.96,84.645 425.88,84.555 C424.8,84.465 423.9,84.33 423.18,84.15 L423.18,71.73 C424.38,71.97 425.88,72.09 427.68,72.09 C432.36,72.09 435.51,70.05 437.13,65.97 L437.13,65.88 L418.86,17.64 L434.97,17.64 L445.5,47.61 L457.74,17.64 L473.49,17.64 L452.16,67.68 C450.42,71.82 448.5,75.135 446.4,77.625 C444.3,80.115 441.87,81.915 439.11,83.025 C436.35,84.135 433.05,84.69 429.21,84.69 Z"></path>
283
+ </g>
284
+ <g transform="translate(0.000000, 0.000000)">
285
+ <path d="M61.826087,0 L158,0 L158,96.173913 L147.695652,96.173913 C100.271201,96.173913 61.826087,57.7287992 61.826087,10.3043478 L61.826087,0 L61.826087,0 Z" fill='var(--pf-t--color--blue--50)'></path>
286
+ <path d="M158,3.43478261 L65.2608696,158 L138,158 C149.045695,158 158,149.045695 158,138 L158,3.43478261 L158,3.43478261 Z" fill="url(#linearGradient-website-masthead)"></path>
287
+ <path d="M123.652174,-30.9130435 L30.9130435,123.652174 L103.652174,123.652174 C114.697869,123.652174 123.652174,114.697869 123.652174,103.652174 L123.652174,-30.9130435 L123.652174,-30.9130435 Z" fill="url(#linearGradient-website-masthead)" transform="translate(77.282609, 46.369565) scale(1, -1) rotate(90.000000) translate(-77.282609, -46.369565) "></path>
288
+ </g>
289
+ </g>
290
+ </svg>
264
291
  )}
265
292
  </MastheadBrand>
266
293
  </MastheadMain>
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.3.27",
4
+ "version": "6.0.0-alpha.10",
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.3.27",
20
+ "@patternfly/ast-helpers": "^1.3.15-alpha.9",
21
21
  "@reach/router": "npm:@gatsbyjs/reach-router@1.3.9",
22
22
  "autoprefixer": "9.8.6",
23
23
  "babel-loader": "9.1.2",
@@ -43,6 +43,8 @@
43
43
  "mdast-util-to-hast": "9.1.1",
44
44
  "mdurl": "1.0.1",
45
45
  "mini-css-extract-plugin": "2.7.5",
46
+ "monaco-editor": "0.34.1",
47
+ "monaco-editor-webpack-plugin": "7.0.1",
46
48
  "null-loader": "4.0.1",
47
49
  "parse-entities": "2.0.0",
48
50
  "path-browserify": "1.0.1",
@@ -52,6 +54,7 @@
52
54
  "puppeteer": "19.11.1",
53
55
  "puppeteer-cluster": "0.23.0",
54
56
  "react-docgen": "5.3.1",
57
+ "react-monaco-editor": "^0.51.0",
55
58
  "react-ssr-prepass": "1.5.0",
56
59
  "remark-footnotes": "1.0.0",
57
60
  "remark-frontmatter": "2.0.0",
@@ -77,12 +80,12 @@
77
80
  "webpack-merge": "5.8.0"
78
81
  },
79
82
  "peerDependencies": {
80
- "@patternfly/patternfly": "5.2.0-prerelease.7",
81
- "@patternfly/react-code-editor": "5.2.0-prerelease.50",
82
- "@patternfly/react-core": "5.2.0-prerelease.49",
83
- "@patternfly/react-table": "5.2.0-prerelease.49",
83
+ "@patternfly/patternfly": "6.0.0-alpha.38",
84
+ "@patternfly/react-code-editor": "6.0.0-alpha.5",
85
+ "@patternfly/react-core": "6.0.0-alpha.5",
86
+ "@patternfly/react-table": "6.0.0-alpha.5",
84
87
  "react": "^17.0.0 || ^18.0.0",
85
88
  "react-dom": "^17.0.0 || ^18.0.0"
86
89
  },
87
- "gitHead": "c2be3e28644502e9f08b40aaa391b5d018185aeb"
90
+ "gitHead": "db99b48deadb8e9dae5550cc9c8c462feb4b0830"
88
91
  }
@@ -2,6 +2,7 @@ const path = require('path');
2
2
  const webpack = require('webpack');
3
3
  const { CleanWebpackPlugin } = require('clean-webpack-plugin');
4
4
  const CopyWebpackPlugin = require('copy-webpack-plugin');
5
+ const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
5
6
 
6
7
  module.exports = (_env, argv) => {
7
8
  const {
@@ -154,6 +155,9 @@ module.exports = (_env, argv) => {
154
155
  patterns: [
155
156
  { from: path.join(__dirname, '../../assets'), to: 'assets' }
156
157
  ]
158
+ }),
159
+ new MonacoWebpackPlugin({
160
+ globalAPI: true,
157
161
  })
158
162
  ],
159
163
  stats: 'minimal'
package/templates/mdx.css CHANGED
@@ -68,12 +68,6 @@
68
68
  table-layout: fixed;
69
69
  width: 100%;
70
70
  }
71
-
72
- .ws-image {
73
- text-align: center;
74
- width: "600px";
75
- }
76
-
77
71
  .ws-table td > code,
78
72
  .ws-table th > code,
79
73
  .ws-table tr > code {
package/templates/mdx.js CHANGED
@@ -152,7 +152,7 @@ export const MDXTemplate = ({
152
152
  componentsData
153
153
  }) => {
154
154
  const isDeprecated = sources.some(source => source.source === "react-deprecated" || source.source === "html-deprecated") && !sources.some(source => source.source === "react" || source.source === "html");
155
- const isBeta = sources.some(source => source.beta && source.source !== 'react-next')
155
+ const isBeta = sources.some(source => source.beta)
156
156
  const isDemo = sources.some(source => source.source === "react-demos" || source.source === "html-demos") && !sources.some(source => source.source === "react" || source.source === "html");
157
157
  // Build obj mapping source names to text displayed on tabs
158
158
  const tabNames = sources.reduce((acc, curSrc) => {
package/versions.json CHANGED
@@ -1,32 +1,29 @@
1
1
  {
2
2
  "Releases": [
3
3
  {
4
- "name": "5.2.0",
5
- "date": "2024-01-17",
4
+ "name": "alphas",
5
+ "date": "2023-12-03",
6
6
  "latest": true,
7
7
  "versions": {
8
- "@patternfly/patternfly": "5.1.0",
9
- "@patternfly/react-charts": "7.1.1",
10
- "@patternfly/react-code-editor": "5.1.1",
11
- "@patternfly/react-core": "5.1.1",
12
- "@patternfly/react-icons": "5.1.1",
13
- "@patternfly/react-styles": "5.1.1",
14
- "@patternfly/react-table": "5.1.1",
15
- "@patternfly/react-drag-drop": "5.0.0-alpha.0",
16
- "@patternfly/react-tokens": "5.1.1",
8
+ "@patternfly/patternfly": "6.0.0-alpha.38",
17
9
  "@patternfly/react-catalog-view-extension": "5.0.0",
18
- "@patternfly/react-component-groups": "5.0.0",
19
- "@patternfly/react-console": "5.0.0",
10
+ "@patternfly/react-charts": "8.0.0-alpha.4",
11
+ "@patternfly/react-code-editor": "6.0.0-alpha.5",
12
+ "@patternfly/react-core": "6.0.0-alpha.5",
13
+ "@patternfly/react-drag-drop": "6.0.0-alpha.0",
14
+ "@patternfly/react-icons": "6.0.0-alpha.4",
20
15
  "@patternfly/react-log-viewer": "5.0.0",
16
+ "@patternfly/react-styles": "6.0.0-alpha.4",
17
+ "@patternfly/react-table": "6.0.0-alpha.5",
18
+ "@patternfly/react-tokens": "5.1.0",
21
19
  "@patternfly/react-topology": "5.1.0",
22
- "@patternfly/react-user-feedback": "5.0.0",
23
- "@patternfly/react-virtualized-extension": "5.0.0",
24
- "@patternfly/quickstarts": "5.0.0"
20
+ "@patternfly/quickstarts": "5.1.0",
21
+ "@patternfly/react-virtualized-extension": "5.1.0"
25
22
  }
26
- },{
23
+ },
24
+ {
27
25
  "name": "5.1.0",
28
26
  "date": "2023-10-06",
29
- "hidden": true,
30
27
  "versions": {
31
28
  "@patternfly/patternfly": "5.1.0",
32
29
  "@patternfly/react-charts": "7.1.1",