Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kie-tools-issues#2641: Upgrade Patternfly to v5 #2853

Open
wants to merge 104 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
347112a
Made changes through codemod
kumaradityaraj Oct 7, 2024
cc17553
Upgrading version
kumaradityaraj Oct 8, 2024
eaeb408
Fix fonts resources for double PF versions
fantonangeli Oct 9, 2024
9d1e523
new pf5 package for runtime tools components
kumaradityaraj Oct 15, 2024
e864011
runtime-tools-components-pf5 fixes
fantonangeli Oct 15, 2024
c0f76e4
Last commit before making a new branch from this - All package from …
kumaradityaraj Oct 17, 2024
ae1d043
pf has been updated in all packages
kumaradityaraj Oct 17, 2024
c1f0c3d
Codemod changes executed
kumaradityaraj Oct 17, 2024
20b62ad
Codemod executed in runtime-tools-components
kumaradityaraj Oct 17, 2024
248240e
updated uniform patternfly
kumaradityaraj Oct 21, 2024
8ce2189
Testing - sonataflowwebapp and sonataflowmanagement console first ite…
kumaradityaraj Oct 22, 2024
abb042e
Components refining runtimet tool components
kumaradityaraj Oct 28, 2024
abd11f9
Errors resolved in various components
kumaradityaraj Nov 11, 2024
013678c
Executed codemod again to check erors
kumaradityaraj Nov 11, 2024
2e79015
Reverted some changes to packages/uniforms-patternfly/package.json to
fantonangeli Nov 13, 2024
c87ccf2
Resolved errors shown in building packages
kumaradityaraj Nov 14, 2024
cf9b5a9
Updated classes of all styles.css
kumaradityaraj Nov 14, 2024
37ae2dd
changed bg color of nav menu
kumaradityaraj Nov 19, 2024
c48d6ff
made changes for building the packages
kumaradityaraj Nov 20, 2024
6e079ab
removed text from nav bar
kumaradityaraj Nov 20, 2024
b02a563
Fix dep mismatch
fantonangeli Nov 20, 2024
2529ddd
Update @patternfly/react-charts to fix issue https://github.com/patte…
fantonangeli Nov 20, 2024
75e2e36
Merge branch 'allpackagesp4top5' of https://github.com/kumaradityaraj…
fantonangeli Nov 20, 2024
31321d8
pmml-editor pf5 upgrades
fantonangeli Nov 20, 2024
072270a
resolved toogle button of dark mode
kumaradityaraj Nov 20, 2024
474e6ae
notification issue resolved
kumaradityaraj Nov 20, 2024
afbcad4
notification
kumaradityaraj Nov 20, 2024
bc10343
resolved errors in boxed-expression
kumaradityaraj Nov 21, 2024
55b8649
fixed the alignment of text in sonataflow-deployment-webapp
kumaradityaraj Nov 21, 2024
35497fd
reverting back uniform patternfly
kumaradityaraj Nov 25, 2024
7ebf680
improving tests
kumaradityaraj Nov 25, 2024
eefe104
Pass TextField tests
fantonangeli Nov 25, 2024
5e529c1
Fixed dep mismatch
fantonangeli Nov 26, 2024
7aec755
Resolved errors for table UI
kumaradityaraj Nov 27, 2024
e8df3fa
Fixing UI in online editor
kumaradityaraj Nov 27, 2024
b43c3c2
FileSwitcher ui fix
fantonangeli Nov 27, 2024
40973da
dummy push
kumaradityaraj Nov 28, 2024
f65de37
COmmiting after resolving conflicts
kumaradityaraj Nov 28, 2024
4ec4627
updating pmpl
kumaradityaraj Nov 28, 2024
a251f2a
updating versions
kumaradityaraj Nov 28, 2024
a386825
Fixed Icons imports
fantonangeli Nov 28, 2024
922e43b
Updating editor snapshots
kumaradityaraj Nov 28, 2024
f120f62
Updating snapshots
kumaradityaraj Nov 28, 2024
f6d1613
Updating snapshots import-java-classes-component
kumaradityaraj Nov 28, 2024
c7ec7a0
resolving import error in runtime-tools-component
kumaradityaraj Nov 28, 2024
3a2d771
Corrected import of helper text
kumaradityaraj Nov 28, 2024
7ba16e1
Corrected import of helper text
kumaradityaraj Nov 29, 2024
4742d60
updating snapshot pmml-editor
kumaradityaraj Nov 29, 2024
cf794cb
updating imports
kumaradityaraj Nov 29, 2024
100e99b
Fixed wrong type
fantonangeli Nov 29, 2024
5ebb9ef
Updated snapshots
fantonangeli Nov 29, 2024
0af48c6
Resolving errors in serverless-logic-webtools
kumaradityaraj Dec 2, 2024
3ef88ce
Resolving errors in serverless-logic-webtools
kumaradityaraj Dec 2, 2024
b6d76df
Resolving errors in serverless-logic-webtools
kumaradityaraj Dec 2, 2024
c0d8fc3
Resolving errors in serverless-logic-webtools
kumaradityaraj Dec 2, 2024
d45a4fa
Resolving errors in serverless-logic-webtools
kumaradityaraj Dec 2, 2024
1d35ecd
Fixed import in serverless-logic-web-tools
kumaradityaraj Dec 3, 2024
c9e09d5
Aliging all @patternfly/react-* versions
fantonangeli Dec 3, 2024
1aea17e
Reverted changes to syncpackrc
fantonangeli Dec 3, 2024
4215d67
updated snapshots
kumaradityaraj Dec 4, 2024
4f34bdb
updated snapshots
kumaradityaraj Dec 4, 2024
447a570
changing version of react-table
kumaradityaraj Dec 4, 2024
e06ea9a
reverting version of react-table
kumaradityaraj Dec 4, 2024
b19f758
Fixed react-table imports
fantonangeli Dec 4, 2024
1c52005
removed outdated package
kumaradityaraj Dec 4, 2024
4a38441
resolving errors in scesim-editor by copy pasting from original repo
kumaradityaraj Dec 5, 2024
90bc458
resolving importing errors
kumaradityaraj Dec 5, 2024
060a3ef
resolving importing errors
kumaradityaraj Dec 5, 2024
171a8cc
resolved import errors in online-editor
kumaradityaraj Dec 5, 2024
785fde6
Resolved test cases in serverless logic web tools
kumaradityaraj Dec 6, 2024
b84d1bb
Removing pnpm test-e2e from boxed-expression-component
kumaradityaraj Dec 9, 2024
f034ff2
updating many dependencied version by pnpm install
kumaradityaraj Dec 9, 2024
8b09d15
Resolving callback function in boxed-expression
kumaradityaraj Dec 9, 2024
14b5ff6
adding e2e parameter in boxed-expression
kumaradityaraj Dec 10, 2024
26863bc
Fix add svg locator
fantonangeli Dec 11, 2024
a2dee95
Fix pmml-document-select
fantonangeli Dec 11, 2024
7bdf712
Fix test selector
fantonangeli Dec 11, 2024
fedd896
Changing width size for e2e tests in resizing
kumaradityaraj Dec 12, 2024
59e62bd
e2e fixes
fantonangeli Dec 12, 2024
a32af3f
Revert "Changing width size for e2e tests in resizing"
fantonangeli Dec 12, 2024
966e46c
Resolving UI of popover
kumaradityaraj Dec 13, 2024
78658bd
Styles fixes
fantonangeli Dec 13, 2024
b3f6fff
Resolved test case
kumaradityaraj Dec 16, 2024
9ec291c
Fix dmn-editor e2e-tests
fantonangeli Dec 19, 2024
61d8e0a
e2e fixes
fantonangeli Dec 23, 2024
c704b70
Graphical fixes
fantonangeli Dec 24, 2024
db6be86
Updated snapshots of TestScenarioEditor
kumaradityaraj Jan 7, 2025
515790a
Drawer panel tests fixes and snapshot update
fantonangeli Jan 7, 2025
f032ec4
Fixed snapshots of backgroundTable
kumaradityaraj Jan 8, 2025
ad647bf
Resolved import errors in online-editor
kumaradityaraj Jan 8, 2025
3a0284f
Merge remote-tracking branch 'upstream/main' into allpackagesp4top5
kumaradityaraj Jan 8, 2025
4ca0c93
updating pmpl
kumaradityaraj Jan 8, 2025
4ebfb14
Executing codemod commands
kumaradityaraj Jan 8, 2025
ffd207b
Resolving version conflict, liscense issue, pmpl lock file
kumaradityaraj Jan 8, 2025
e4baa6b
Resolved card component
kumaradityaraj Jan 9, 2025
57fb073
Updated scesim-snapshots using CI generated
fantonangeli Jan 9, 2025
a29def8
removed empty imports and pulled snapshot from main
kumaradityaraj Jan 10, 2025
ad3c1b7
removed empty imports and pulled snapshot from main
kumaradityaraj Jan 10, 2025
64cf57b
testScenarioEditor update
kumaradityaraj Jan 10, 2025
e47a05d
Removed pmpl-bak file and updated snapshot from CI in scesim-editor
kumaradityaraj Jan 10, 2025
ab4d1b2
Fix drag&drop e2e test error with test: Model Decision Service › Model
fantonangeli Jan 10, 2025
9513708
Removed webapp from examples
kumaradityaraj Jan 15, 2025
931789d
Resolving conflicts
kumaradityaraj Jan 15, 2025
273bc65
Resolving test failure in stunner-editor
kumaradityaraj Jan 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions examples/bpmn-editor-classic-on-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@kie-tools/root-env": "workspace:*",
"@kie-tools/stunner-editors": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-core": "^5.4.1",
"@patternfly/react-icons": "^5.4.1",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"copy-webpack-plugin": "^11.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import { useMemo, useState } from "react";
import { EmbeddedEditor, useEditorRef } from "@kie-tools-core/editor/dist/embedded";
import { EmbeddedEditorFile } from "@kie-tools-core/editor/dist/channel";
import { Brand } from "@patternfly/react-core/dist/js/components/Brand";
import { Page, PageSection, PageHeader } from "@patternfly/react-core/dist/js/components/Page";
import { Page, PageSection } from "@patternfly/react-core/dist/js/components/Page";
import { PageHeader } from "@patternfly/react-core/deprecated";
import { Sidebar } from "./Sidebar";

export function BpmnEditorClassicPage() {
Expand Down
2 changes: 1 addition & 1 deletion examples/bpmn-editor-classic-on-webapp/src/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function Sidebar({ editorEnvelopeLocator, editor, setFile, file, fileExte
value={fileName}
type={"text"}
aria-label={"Edit file name"}
onChange={setFileName}
onChange={(_event, val) => setFileName(val)}
onBlur={onChangeName}
/>
<br />
Expand Down
4 changes: 2 additions & 2 deletions examples/dmn-editor-classic-on-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@kie-tools/root-env": "workspace:*",
"@kie-tools/stunner-editors": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-core": "^5.4.1",
"@patternfly/react-icons": "^5.4.1",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"copy-webpack-plugin": "^11.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import { useMemo, useState } from "react";
import { EmbeddedEditor, useEditorRef } from "@kie-tools-core/editor/dist/embedded";
import { EmbeddedEditorFile } from "@kie-tools-core/editor/dist/channel";
import { Brand } from "@patternfly/react-core/dist/js/components/Brand";
import { Page, PageSection, PageHeader } from "@patternfly/react-core/dist/js/components/Page";
import { Page, PageSection } from "@patternfly/react-core/dist/js/components/Page";
import { PageHeader } from "@patternfly/react-core/deprecated";
import { Sidebar } from "./Sidebar";

export function DmnEditorClassicPage() {
Expand Down
2 changes: 1 addition & 1 deletion examples/dmn-editor-classic-on-webapp/src/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function Sidebar({ editorEnvelopeLocator, editor, setFile, file, fileExte
value={fileName}
type={"text"}
aria-label={"Edit file name"}
onChange={setFileName}
onChange={(_event, val) => setFileName(val)}
onBlur={onChangeName}
/>
<br />
Expand Down
4 changes: 2 additions & 2 deletions examples/dmn-editor-on-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@kie-tools/dmn-editor-envelope": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-core": "^5.4.1",
"@patternfly/react-icons": "^5.4.1",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"copy-webpack-plugin": "^11.0.0",
Expand Down
3 changes: 2 additions & 1 deletion examples/dmn-editor-on-webapp/src/DmnEditorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import { useMemo, useState } from "react";
import { EmbeddedEditor, useEditorRef } from "@kie-tools-core/editor/dist/embedded";
import { EmbeddedEditorFile } from "@kie-tools-core/editor/dist/channel";
import { Brand } from "@patternfly/react-core/dist/js/components/Brand";
import { Page, PageSection, PageHeader } from "@patternfly/react-core/dist/js/components/Page";
import { Page, PageSection } from "@patternfly/react-core/dist/js/components/Page";
import { PageHeader } from "@patternfly/react-core/deprecated";
import { Sidebar } from "./Sidebar";

export function DmnEditorPage() {
Expand Down
2 changes: 1 addition & 1 deletion examples/dmn-editor-on-webapp/src/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function Sidebar({ editorEnvelopeLocator, editor, setFile, file, fileExte
value={fileName}
type={"text"}
aria-label={"Edit file name"}
onChange={setFileName}
onChange={(_event, val) => setFileName(val)}
onBlur={onChangeName}
/>
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@kie-tools-examples/micro-frontends-multiplying-architecture-base64png-editor": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-core": "^5.4.1",
"@patternfly/react-icons": "^5.4.1",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"copy-webpack-plugin": "^11.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import { ChannelType, EnvelopeContentType } from "@kie-tools-core/editor/dist/ap
import { Brand } from "@patternfly/react-core/dist/js/components/Brand";
import { EditorEnvelopeLocator, EnvelopeMapping } from "@kie-tools-core/editor/dist/api";
import { useMemo, useState } from "react";
import { Page, PageHeader, PageSection } from "@patternfly/react-core/dist/js/components/Page";
import { Page, PageSection } from "@patternfly/react-core/dist/js/components/Page";
import { PageHeader } from "@patternfly/react-core/deprecated";
import { EmbeddedEditor } from "@kie-tools-core/editor/dist/embedded";
import { EmbeddedEditorFile } from "@kie-tools-core/editor/dist/channel";
import { Base64PngGallery } from "./Base64PngGallery";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@kie-tools-core/notifications": "workspace:*",
"@kie-tools-core/patternfly-base": "workspace:*",
"@kie-tools-core/workspace": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6"
"@patternfly/react-core": "^5.4.1",
"@patternfly/react-icons": "^5.4.1"
},
"devDependencies": {
"@kie-tools/root-env": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
import * as React from "react";
import { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
import { EditorApi, KogitoEditorEnvelopeContextType } from "@kie-tools-core/editor/dist/api";
import { EmptyState, EmptyStateIcon } from "@patternfly/react-core/dist/js/components/EmptyState";
import { EmptyState, EmptyStateIcon, EmptyStateHeader } from "@patternfly/react-core/dist/js/components/EmptyState";
import { Nav, NavItem, NavList } from "@patternfly/react-core/dist/js/components/Nav";
import { Page } from "@patternfly/react-core/dist/js/components/Page";
import { Switch } from "@patternfly/react-core/dist/js/components/Switch";
import { Title } from "@patternfly/react-core/dist/js/components/Title";
import { CubesIcon } from "@patternfly/react-icons/dist/js/icons/cubes-icon";
import { Base64PngEdit, Base64PngEditorStateControl } from "./Base64PngEditorStateControl";
import { KogitoEditorChannelApi } from "@kie-tools-core/editor/dist/api";
Expand Down Expand Up @@ -452,10 +451,7 @@ export const Base64PngEditor = React.forwardRef<EditorApi, Props>((props, forwar
/>
{disabled && (
<EmptyState>
<EmptyStateIcon icon={CubesIcon} />
<Title headingLevel="h5" size="4xl">
Empty image
</Title>
<EmptyStateHeader titleText="Empty image" icon={<EmptyStateIcon icon={CubesIcon} />} headingLevel="h5" />
</EmptyState>
)}
<canvas ref={canvasRef} className={"base64png-editor--canvas"} />
Expand Down Expand Up @@ -545,7 +541,7 @@ export const Base64PngEditor = React.forwardRef<EditorApi, Props>((props, forwar
id="invert-switch"
isDisabled={disabled}
isChecked={invert === "100"}
onChange={(value) => tweakInvert(value ? "100" : "0")}
onChange={(_event, value) => tweakInvert(value ? "100" : "0")}
/>
</div>
</NavItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"@kie-tools-examples/micro-frontends-multiplying-architecture-ping-pong-view-in-react": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-core": "^5.4.1",
"@patternfly/react-icons": "^5.4.1",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@types/react-router": "^5.1.20",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import * as React from "react";
import { useEffect, useState } from "react";
import { Brand } from "@patternfly/react-core/dist/js/components/Brand";
import { Nav, NavItem, NavList } from "@patternfly/react-core/dist/js/components/Nav";
import { Page, PageHeader } from "@patternfly/react-core/dist/js/components/Page";
import { Page } from "@patternfly/react-core/dist/js/components/Page";
import { PageHeader } from "@patternfly/react-core/deprecated";
import { HashRouter as Router, Link, Route, Switch } from "react-router-dom";
import { PingPongReactIFrameViewsPage } from "./React/PingPongReactIFrameViewsPage";
import { PingPongReactDivViewsPage } from "./React/PingPongReactDivViewsPage";
Expand Down Expand Up @@ -58,7 +59,7 @@ export function App() {
<PageHeader
logo={<Brand src={"logo.png"} alt="Logo" />}
topNav={
<Nav onSelect={(e) => setLocation(e.itemId as Location)} aria-label="Nav" variant="horizontal">
<Nav onSelect={(_event, e) => setLocation(e.itemId as Location)} aria-label="Nav" variant="horizontal">
<NavList>
<NavItem itemId={Location.HOME} isActive={location === Location.HOME}>
<Link to={Location.HOME}>Home</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import * as React from "react";
import { useState, useEffect } from "react";
import { Label } from "@patternfly/react-core/dist/js/components/Label";
import { Stack, StackItem } from "@patternfly/react-core/dist/js/layouts/Stack";
import { Title } from "@patternfly/react-core/dist/js/components/Title";

interface Props {
lastPing: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@kie-tools-examples/micro-frontends-multiplying-architecture-todo-list-view": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-core": "^5.4.1",
"@patternfly/react-icons": "^5.4.1",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"copy-webpack-plugin": "^11.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ import {
} from "@kie-tools-examples/micro-frontends-multiplying-architecture-todo-list-view/dist/embedded";
import { Brand } from "@patternfly/react-core/dist/js/components/Brand";
import { Stack, StackItem } from "@patternfly/react-core/dist/js/layouts/Stack";
import { Page, PageHeader, PageSection } from "@patternfly/react-core/dist/js/components/Page";
import { Page, PageSection } from "@patternfly/react-core/dist/js/components/Page";
import { PageHeader } from "@patternfly/react-core/deprecated";
import { Button, ButtonVariant } from "@patternfly/react-core/dist/js/components/Button/Button";

import { useStateAsSharedValue } from "@kie-tools-core/envelope-bus/dist/hooks";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@kie-tools/root-env": "workspace:*",
"@kie-tools/serverless-workflow-standalone-editor": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-core": "^5.4.1",
"@patternfly/react-icons": "^5.4.1",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@types/react-router": "^5.1.20",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import * as React from "react";
import { useEffect, useState } from "react";
import { Brand } from "@patternfly/react-core/dist/js/components/Brand";
import { Nav, NavItem, NavList } from "@patternfly/react-core/dist/js/components/Nav";
import { Page, PageHeader } from "@patternfly/react-core/dist/js/components/Page";
import { Page } from "@patternfly/react-core/dist/js/components/Page";
import { PageHeader } from "@patternfly/react-core/deprecated";
import { HashRouter as Router, Link, Route, Switch } from "react-router-dom";
import { SwfStandaloneEditorPage } from "./Pages/SwfStandaloneEditorPage";
import { SwfStandaloneDiagramOnlyEditorPage } from "./Pages/SwfStandaloneDiagramOnlyEditorPage";
Expand Down Expand Up @@ -54,7 +55,7 @@ export function App() {
<PageHeader
logo={<Brand src={"logo.png"} alt="Logo" />}
topNav={
<Nav onSelect={(e) => setLocation(e.itemId as Location)} aria-label="Nav" variant="horizontal">
<Nav onSelect={(_event, e) => setLocation(e.itemId as Location)} aria-label="Nav" variant="horizontal">
<NavList>
<NavItem itemId={Location.HOME} isActive={location === Location.HOME}>
<Link to={Location.HOME}>Home</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ import {
EmptyState,
EmptyStateBody,
EmptyStateIcon,
EmptyStateSecondaryActions,
EmptyStateVariant,
EmptyStateActions,
EmptyStateHeader,
EmptyStateFooter,
} from "@patternfly/react-core/dist/js/components/EmptyState";
import { Title } from "@patternfly/react-core/dist/js/components/Title";
import { CubesIcon } from "@patternfly/react-icons/dist/js/icons/cubes-icon";
import { ChangeEvent } from "react";

Expand All @@ -44,25 +45,28 @@ interface UploadProps {
interface AllProps extends NewProps, UploadProps {}

export const ServerlessWorkflowEmptyState = (props: AllProps) => (
<EmptyState variant={EmptyStateVariant.small}>
<EmptyStateIcon icon={CubesIcon} />
<Title headingLevel="h4" size="lg">
No serverless workflow document
</Title>
<EmptyState variant={EmptyStateVariant.sm}>
<EmptyStateHeader
titleText="No serverless workflow document"
icon={<EmptyStateIcon icon={CubesIcon} />}
headingLevel="h4"
/>
<EmptyStateBody>
No serverless workflow document has been selected. Please either upload an existing document or create a new one.
</EmptyStateBody>
<FileChooser setContent={props.setContent} />
{!props.isDiagramOnly && !props.isTextOnly && (
<EmptyStateSecondaryActions>
<Button variant="link" onClick={(e) => props.newContent("json")} ouiaId="new-button">
New JSON
</Button>
<Button variant="link" onClick={(e) => props.newContent("yaml")} ouiaId="new-button">
New YAML
</Button>
</EmptyStateSecondaryActions>
)}
<EmptyStateFooter>
<FileChooser setContent={props.setContent} />
{!props.isDiagramOnly && !props.isTextOnly && (
<EmptyStateActions>
<Button variant="link" onClick={(e) => props.newContent("json")} ouiaId="new-button">
New JSON
</Button>
<Button variant="link" onClick={(e) => props.newContent("yaml")} ouiaId="new-button">
New YAML
</Button>
</EmptyStateActions>
)}
</EmptyStateFooter>
</EmptyState>
);

Expand All @@ -86,8 +90,8 @@ const FileChooser = (props: UploadProps) => {
};

return (
<div style={{ marginTop: "var(--pf-c-empty-state__primary--MarginTop)" }}>
<label htmlFor="file-upload" className="pf-c-button pf-m-primary" data-ouia-component-id="upload-button">
<div style={{ marginTop: "var(--pf-v5-c-empty-state__primary--MarginTop)" }}>
<label htmlFor="file-upload" className="pf-v5-c-button pf-m-primary" data-ouia-component-id="upload-button">
<i className="fa fa-cloud-upload" />
Upload
</label>
Expand Down
4 changes: 2 additions & 2 deletions examples/uniforms-patternfly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"dependencies": {
"@kie-tools-core/patternfly-base": "workspace:*",
"@kie-tools/uniforms-patternfly": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-core": "^5.4.1",
"@patternfly/react-icons": "^5.4.1",
"ajv": "^8.17.1",
"ajv-draft-04": "^1.0.0",
"ajv-formats": "^3.0.1",
Expand Down
5 changes: 3 additions & 2 deletions examples/uniforms-patternfly/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import * as React from "react";
import { useState } from "react";
import { Brand } from "@patternfly/react-core/dist/js/components/Brand";
import { Nav, NavItem, NavList } from "@patternfly/react-core/dist/js/components/Nav";
import { Page, PageHeader } from "@patternfly/react-core/dist/js/components/Page";
import { Page } from "@patternfly/react-core/dist/js/components/Page";
import { PageHeader } from "@patternfly/react-core/deprecated";
import { Form } from "./Form";

export enum SchemaType {
Expand All @@ -38,7 +39,7 @@ export function App() {
<PageHeader
logo={<Brand src={"logo.png"} alt="Logo" />}
topNav={
<Nav onSelect={(e) => setSchemaType(e.itemId as SchemaType)} aria-label="Nav" variant="horizontal">
<Nav onSelect={(_event, e) => setSchemaType(e.itemId as SchemaType)} aria-label="Nav" variant="horizontal">
<NavList>
<NavItem itemId={SchemaType.JsonSchema} isActive={schemaType === SchemaType.JsonSchema}>
JSON Schema
Expand Down
10 changes: 5 additions & 5 deletions packages/boxed-expression-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": [],
"scripts": {
"build:dev": "rimraf dist && pnpm copy:css && tsc -p tsconfig.json",
"build:prod": "rimraf dist && pnpm copy:css && pnpm lint && tsc -p tsconfig.json && pnpm test && pnpm test-e2e",
"build:prod": "rimraf dist && pnpm copy:css && pnpm lint && tsc -p tsconfig.json && pnpm test && pnpm test-e2e",
"build:storybook": "rimraf dist-storybook && NODE_ENV=development storybook build -o dist-storybook",
"copy:css": "copyfiles -u 1 \"src/**/*.{sass,scss,css}\" dist/",
"deploy": "gh-pages -d dist-dev",
Expand All @@ -31,10 +31,10 @@
"@kie-tools/i18n-common-dictionary": "workspace:*",
"@kie-tools/jest-base": "workspace:*",
"@kie-tools/xml-parser-ts": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-styles": "^4.92.6",
"@patternfly/react-table": "^4.112.39",
"@patternfly/react-core": "^5.4.1",
"@patternfly/react-icons": "^5.4.1",
"@patternfly/react-styles": "^5.4.0",
"@patternfly/react-table": "^5.4.1",
"lodash": "^4.17.21",
"react-resizable": "^1.11.0",
"react-table": "^7.6.2",
Expand Down
Loading
Loading