diff --git a/packages/demo-app-ts/package.json b/packages/demo-app-ts/package.json index 622d1c16..e83dc299 100644 --- a/packages/demo-app-ts/package.json +++ b/packages/demo-app-ts/package.json @@ -9,9 +9,9 @@ "serve:demo-app": "node scripts/serve" }, "dependencies": { - "@patternfly/react-core": "^5.0.0", - "@patternfly/react-icons": "^5.0.0", - "@patternfly/react-styles": "^5.0.0", + "@patternfly/react-core": "^5.1.1", + "@patternfly/react-icons": "^5.1.1", + "@patternfly/react-styles": "^5.1.1", "react": "^18", "react-dom": "^18", "react-router": "^5.3.3", diff --git a/packages/demo-app-ts/src/utils/useTopologyOptions.tsx b/packages/demo-app-ts/src/utils/useTopologyOptions.tsx index 851761e9..d9cb27a7 100644 --- a/packages/demo-app-ts/src/utils/useTopologyOptions.tsx +++ b/packages/demo-app-ts/src/utils/useTopologyOptions.tsx @@ -362,7 +362,7 @@ export const useTopologyOptions = ( const saveModel = () => { setSavedModel(controller.toModel()); setModelSaved(true); - window.setTimeout(() => { + setTimeout(() => { setModelSaved(false); }, 2000); }; diff --git a/packages/module/package.json b/packages/module/package.json index d15cc702..c669849b 100644 --- a/packages/module/package.json +++ b/packages/module/package.json @@ -33,9 +33,9 @@ "tag": "prerelease" }, "dependencies": { - "@patternfly/react-core": "^5.0.0", - "@patternfly/react-icons": "^5.0.0", - "@patternfly/react-styles": "^5.0.0", + "@patternfly/react-core": "^5.1.1", + "@patternfly/react-icons": "^5.1.1", + "@patternfly/react-styles": "^5.1.1", "@types/d3": "^7.4.0", "@types/d3-force": "^1.2.1", "@types/dagre": "0.7.42", @@ -56,11 +56,11 @@ "react-dom": "^17 || ^18" }, "devDependencies": { - "@patternfly/documentation-framework": "^5.0.15", - "@patternfly/patternfly": "^5.0.0", + "@patternfly/documentation-framework": "^5.2.15", + "@patternfly/patternfly": "^5.1.0", "@patternfly/patternfly-a11y": "^4.3.1", - "@patternfly/react-code-editor": "^5.0.0", - "@patternfly/react-table": "^5.0.0", + "@patternfly/react-code-editor": "^5.1.1", + "@patternfly/react-table": "^5.1.1", "@types/lodash": "^4.14.191", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", diff --git a/packages/module/src/behavior/useDndDrag.tsx b/packages/module/src/behavior/useDndDrag.tsx index 8f70d696..7ae6331c 100644 --- a/packages/module/src/behavior/useDndDrag.tsx +++ b/packages/module/src/behavior/useDndDrag.tsx @@ -118,7 +118,7 @@ export const useDndDrag = < React.useEffect( () => () => { if (canUseDOM) { - d3.select(window.document).on(createKeyHandlerId(), null); + d3.select(document).on(createKeyHandlerId(), null); } if (dndManager.isDragging() && dndManager.getSourceId() === monitor.getHandlerId()) { dndManager.endDrag(); diff --git a/packages/module/src/components/SVGArrowMarker.tsx b/packages/module/src/components/SVGArrowMarker.tsx index dbd82d94..59519ded 100644 --- a/packages/module/src/components/SVGArrowMarker.tsx +++ b/packages/module/src/components/SVGArrowMarker.tsx @@ -1,13 +1,6 @@ import * as React from 'react'; import SVGDefs from './defs/SVGDefs'; -declare const global: any; - -// workaround to pass docs building -if (!global.SVGElement) { - global.SVGElement = global.Element; -} - interface SVGArrowMarkerProps { id: string; nodeSize: number; diff --git a/packages/module/src/components/TopologyControlBar/__tests__/__snapshots__/TopologyControlBar.test.tsx.snap b/packages/module/src/components/TopologyControlBar/__tests__/__snapshots__/TopologyControlBar.test.tsx.snap index 6c2444f9..7b1f8c43 100644 --- a/packages/module/src/components/TopologyControlBar/__tests__/__snapshots__/TopologyControlBar.test.tsx.snap +++ b/packages/module/src/components/TopologyControlBar/__tests__/__snapshots__/TopologyControlBar.test.tsx.snap @@ -26,6 +26,7 @@ exports[`TopologyControlBar should accept button options correctly 1`] = ` style="display: contents;" >