Skip to content

Commit

Permalink
Update with codemods and fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jessiehuff committed May 23, 2024
1 parent eb37c5c commit e132e90
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 42 deletions.
4 changes: 2 additions & 2 deletions packages/dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"@patternfly/patternfly": "^5.0.0",
"@patternfly/quickstarts": "^5.0.0-prerelease.2",
"@patternfly/transform-adoc": "*",
"@patternfly/react-core": "^5.0.0",
"asciidoctor": "^2.2.1",
"@patternfly/react-core": "6.0.0-alpha.50",
"asciidoctor": "^2.2.6",
"i18next": "^19.8.3",
"i18next-browser-languagedetector": "^6.0.1",
"i18next-parser": "^3.3.0",
Expand Down
22 changes: 9 additions & 13 deletions packages/dev/src/MockConsole.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,21 @@ const FormGroupWithHelpTopicPopover: React.FC<FormGroupWithHelpTopicPopoverProps

return (
<FormGroup
label={topic.title}
isRequired
fieldId={topic.name}
key={topic.name}
labelIcon={
label={
<>
{topic.title}{' '}
<Popover
bodyContent={(hide) => (
<div>
{topic.title} is quite amaizing{' '}
{topic.title} is quite amazing{' '}
<Button
variant="link"
onClick={() => {
setActiveHelpTopicByName(topic.name);
hide();
}}
>
Learn more!
{`Learn more about ${topic.title}`}
</Button>
</div>
)}
Expand All @@ -63,13 +60,12 @@ const FormGroupWithHelpTopicPopover: React.FC<FormGroupWithHelpTopicPopoverProps
<HelpIcon />
</Button>
</Popover>
<Button
variant="link"
onClick={() => setActiveHelpTopicByName(topic.name)}
>{`Learn more about ${topic.title}`}</Button>
</>
}
>
isRequired
fieldId={topic.name}
key={topic.name}
>
<TextInput isRequired type="text" id={topic.name} />
</FormGroup>
);
Expand Down Expand Up @@ -140,7 +136,7 @@ export const MockConsole: React.FC = () => {
return (
<>
<PageSection>
<Banner variant="blue">
<Banner>
<Title headingLevel="h1">Console Page {consolePageState}</Title>
</Banner>
</PageSection>
Expand Down
4 changes: 2 additions & 2 deletions packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
"docs:copy": "mkdir -p dist/patternfly-docs && cp -R patternfly-docs/content/extensions/quick-starts dist/patternfly-docs"
},
"peerDependencies": {
"@patternfly/react-core": ">=5.0.0",
"@patternfly/react-core": "6.0.0-alpha.50",
"react": ">=18.0.0",
"react-dom": ">=18.0.0",
"showdown": ">=2.1.0"
},
"dependencies": {
"@patternfly/react-catalog-view-extension": "file:.yalc/@patternfly/react-catalog-view-extension",
"@patternfly/react-catalog-view-extension": "^5.0.0",
"dompurify": "^2.2.6",
"history": "^5.0.0",
"showdown": "1.8.6"
Expand Down
40 changes: 15 additions & 25 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1612,11 +1612,13 @@
history "^5.0.0"
showdown "1.8.6"

"@patternfly/react-catalog-view-extension@file:packages/module/.yalc/@patternfly/react-catalog-view-extension":
version "0.0.0"
"@patternfly/react-catalog-view-extension@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@patternfly/react-catalog-view-extension/-/react-catalog-view-extension-5.0.0.tgz#a3892debd5987e15e9d7cabf9ed4ed3b25f48b0f"
integrity sha512-Sg0iLAVhE7wAwBJERNdYp6peMO4THG7ez3xvMXEWh2biXghIv9XVj5BEy0TssihMxZa/pRMdROzcv3QZ9m24Yg==
dependencies:
"@patternfly/react-core" "6.0.0-alpha.47"
"@patternfly/react-styles" "6.0.0-alpha.17"
"@patternfly/react-core" "^5.0.0"
"@patternfly/react-styles" "^5.0.0"

"@patternfly/[email protected]":
version "6.0.0-alpha.50"
Expand All @@ -1630,18 +1632,6 @@
react-dropzone "14.2.3"
tslib "^2.5.0"

"@patternfly/[email protected]":
version "6.0.0-alpha.47"
resolved "https://registry.yarnpkg.com/@patternfly/react-core/-/react-core-6.0.0-alpha.47.tgz#e738e808e1a11880a157fa00253909b8a29dd160"
integrity sha512-ra2v9I+UaLww+PYH+/38K5vAXItdt0tZ7UUS+rHJL2tDg31hHBlySlMkLd9cdA4DfzyX93VRpTpPS8vHiV/JnQ==
dependencies:
"@patternfly/react-icons" "^6.0.0-alpha.17"
"@patternfly/react-styles" "^6.0.0-alpha.17"
"@patternfly/react-tokens" "^6.0.0-alpha.17"
focus-trap "7.5.2"
react-dropzone "^14.2.3"
tslib "^2.5.0"

"@patternfly/[email protected]":
version "6.0.0-alpha.50"
resolved "https://registry.yarnpkg.com/@patternfly/react-core/-/react-core-6.0.0-alpha.50.tgz#982d773240e7adf969c9d53f0bf49c3ed25c550f"
Expand All @@ -1654,7 +1644,7 @@
react-dropzone "^14.2.3"
tslib "^2.5.0"

"@patternfly/react-core@^5.0.0", "@patternfly/react-core@^5.2.1":
"@patternfly/react-core@^5.0.0":
version "5.2.1"
resolved "https://registry.yarnpkg.com/@patternfly/react-core/-/react-core-5.2.1.tgz#e2fb0a4ce3418674378f80d0c2416e94cf20fd86"
integrity sha512-SWQHALhcjxjmwcIJ6V3tG6V7a2M0WkkUbc6F8mSPk6l9q6j3f+WvZ9HqgzVA+h+Q12UbtIrlQvgUx7pAxZekkg==
Expand Down Expand Up @@ -1700,27 +1690,27 @@
resolved "https://registry.yarnpkg.com/@patternfly/react-icons/-/react-icons-5.2.1.tgz#c29e9fbecd13c33e772abe6089e31bb86b1ab2a8"
integrity sha512-aeJ0X+U2NDe8UmI5eQiT0iuR/wmUq97UkDtx3HoZcpRb9T6eUBfysllxjRqHS8rOOspdU8OWq+CUhQ/E2ZDibg==

"@patternfly/react-icons@^6.0.0-alpha.17", "@patternfly/react-icons@^6.0.0-alpha.19", "@patternfly/react-icons@^6.0.0-alpha.20":
"@patternfly/react-icons@^6.0.0-alpha.19", "@patternfly/react-icons@^6.0.0-alpha.20":
version "6.0.0-alpha.20"
resolved "https://registry.yarnpkg.com/@patternfly/react-icons/-/react-icons-6.0.0-alpha.20.tgz#9ec22da437d3a2f79d6773b4a21fe37610a15149"
integrity sha512-RSDMWhjfxACJrElKhEVVkxmnSVwicSWwDSsDkJawCnwYVcVq/+fm72/anpzYrHaMWqyvhBdy2rva/RnEJZ2qxg==

"@patternfly/[email protected]":
version "6.0.0-alpha.17"
resolved "https://registry.yarnpkg.com/@patternfly/react-styles/-/react-styles-6.0.0-alpha.17.tgz#61977015f1af27b876c898ab1b361ec244cf5f96"
integrity sha512-DrYjqCxbatmvjCC4dutH6kOBsB5ymT8aFuXrJN0bzScyA5l+GN6WejKq0m0/DOGme62G1Dz/4v1etl+qWOgXkA==

"@patternfly/[email protected]":
version "6.0.0-alpha.19"
resolved "https://registry.yarnpkg.com/@patternfly/react-styles/-/react-styles-6.0.0-alpha.19.tgz#4708b71889c25c7a87ba20878a601c8ab4c2426e"
integrity sha512-Qpa1nbPPvB0HoFWEfWMnG41lWmI0tV0c48QSpF01jDwUU6idqMlRjnW1O9E69CKP6C+8MQj2RxFSu8QOMhAi0A==

"@patternfly/react-styles@^5.0.0":
version "5.3.1"
resolved "https://registry.yarnpkg.com/@patternfly/react-styles/-/react-styles-5.3.1.tgz#4bc42f98c48e117df5d956ee3f551d0f57ef1b35"
integrity sha512-H6uBoFH3bJjD6PP75qZ4k+2TtF59vxf9sIVerPpwrGJcRgBZbvbMZCniSC3+S2LQ8DgXLnDvieq78jJzHz0hiA==

"@patternfly/react-styles@^5.2.1":
version "5.2.1"
resolved "https://registry.yarnpkg.com/@patternfly/react-styles/-/react-styles-5.2.1.tgz#a6f8c750bd65572702ea94c0a6b58f6c0d4361fb"
integrity sha512-GT96hzI1QenBhq6Pfc51kxnj9aVLjL1zSLukKZXcYVe0HPOy0BFm90bT1Fo4e/z7V9cDYw4SqSX1XLc3O4jsTw==

"@patternfly/react-styles@^6.0.0-alpha.17", "@patternfly/react-styles@^6.0.0-alpha.19", "@patternfly/react-styles@^6.0.0-alpha.20":
"@patternfly/react-styles@^6.0.0-alpha.19", "@patternfly/react-styles@^6.0.0-alpha.20":
version "6.0.0-alpha.20"
resolved "https://registry.yarnpkg.com/@patternfly/react-styles/-/react-styles-6.0.0-alpha.20.tgz#4ed222f166c57c1ee4c3e502a4101b90ff8b6470"
integrity sha512-84RUCjPgoYMuENm/pP4QME3tuukoLPCbWOffW9L+oaF/LvbVyx6GXN1PdFx6lx0RGBvwudxqSLA75bq9dktFrA==
Expand All @@ -1747,7 +1737,7 @@
resolved "https://registry.yarnpkg.com/@patternfly/react-tokens/-/react-tokens-5.2.1.tgz#fca7decaa7039dcd93fd215f3f533eff9d070b22"
integrity sha512-8GYz/jnJTGAWUJt5eRAW5dtyiHPKETeFJBPGHaUQnvi/t1ZAkoy8i4Kd/RlHsDC7ktiu813SKCmlzwBwldAHKg==

"@patternfly/react-tokens@^6.0.0-alpha.17", "@patternfly/react-tokens@^6.0.0-alpha.19", "@patternfly/react-tokens@^6.0.0-alpha.20":
"@patternfly/react-tokens@^6.0.0-alpha.19", "@patternfly/react-tokens@^6.0.0-alpha.20":
version "6.0.0-alpha.20"
resolved "https://registry.yarnpkg.com/@patternfly/react-tokens/-/react-tokens-6.0.0-alpha.20.tgz#f28035172ec71eaefbdd7262ddd12e7a8c2b0b9a"
integrity sha512-8oMWm2dPC3T77s5rxTP/7LjV8jIkCFQL1kOjsF/LEJ1loWP5rk2131qFKj2c3A3lH3t803xTV9kei/Oh/JUv9w==
Expand Down

0 comments on commit e132e90

Please sign in to comment.