From c9949780bbc8920640cef9238d38e4a4dd13dfbe Mon Sep 17 00:00:00 2001 From: vasco Date: Fri, 18 Oct 2024 11:32:48 +0100 Subject: [PATCH] Bump deps and update types --- package.json | 16 ++++++++-------- src/forcegraph-proptypes.js | 4 ++-- src/packages/react-force-graph-2d/index.d.ts | 4 ++-- src/packages/react-force-graph-2d/package.json | 2 +- src/packages/react-force-graph-3d/package.json | 2 +- src/packages/react-force-graph-ar/package.json | 2 +- src/packages/react-force-graph-vr/package.json | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index a22e6a07..d0788d72 100644 --- a/package.json +++ b/package.json @@ -58,20 +58,20 @@ "react": "*" }, "devDependencies": { - "@babel/core": "^7.25.2", - "@babel/preset-env": "^7.25.4", - "@babel/preset-react": "^7.24.7", + "@babel/core": "^7.25.8", + "@babel/preset-env": "^7.25.8", + "@babel/preset-react": "^7.25.7", "@rollup/plugin-babel": "^6.0.4", - "@rollup/plugin-commonjs": "^28.0.0", + "@rollup/plugin-commonjs": "^28.0.1", "@rollup/plugin-node-resolve": "^15.3.0", "@rollup/plugin-replace": "^6.0.1", "@rollup/plugin-terser": "^0.4.4", - "@types/react": "^18.3.9", - "@types/three": "^0.168.0", + "@types/react": "^18.3.11", + "@types/three": "^0.169.0", "rimraf": "^6.0.1", - "rollup": "^4.22.4", + "rollup": "^4.24.0", "rollup-plugin-dts": "^6.1.1", - "typescript": "^5.6.2" + "typescript": "^5.6.3" }, "engines": { "node": ">=12" diff --git a/src/forcegraph-proptypes.js b/src/forcegraph-proptypes.js index 77503c67..85d5f346 100644 --- a/src/forcegraph-proptypes.js +++ b/src/forcegraph-proptypes.js @@ -96,8 +96,8 @@ export const ForceGraph2DPropTypes = Object.assign({}, autoPauseRedraw: PropTypes.bool, minZoom: PropTypes.number, maxZoom: PropTypes.number, - enableZoomInteraction: PropTypes.bool, - enablePanInteraction: PropTypes.bool, + enableZoomInteraction: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]), + enablePanInteraction: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]), onZoom: PropTypes.func, onZoomEnd: PropTypes.func, onRenderFramePre: PropTypes.func, diff --git a/src/packages/react-force-graph-2d/index.d.ts b/src/packages/react-force-graph-2d/index.d.ts index 794148db..8d6ae5b7 100644 --- a/src/packages/react-force-graph-2d/index.d.ts +++ b/src/packages/react-force-graph-2d/index.d.ts @@ -121,8 +121,8 @@ export interface ForceGraphProps< onZoom?: (transform: {k: number, x: number, y: number}) => void; onZoomEnd?: (transform: {k: number, x: number, y: number}) => void; enableNodeDrag?: boolean; - enableZoomInteraction?: boolean; - enablePanInteraction?: boolean; + enableZoomInteraction?: boolean | ((event: MouseEvent) => boolean); + enablePanInteraction?: boolean | ((event: MouseEvent) => boolean); enablePointerInteraction?: boolean; } diff --git a/src/packages/react-force-graph-2d/package.json b/src/packages/react-force-graph-2d/package.json index 8b918267..52ee5d6b 100644 --- a/src/packages/react-force-graph-2d/package.json +++ b/src/packages/react-force-graph-2d/package.json @@ -51,7 +51,7 @@ }, "devDependencies": { "rimraf": "^6.0.1", - "rollup": "^4.22.4" + "rollup": "^4.24.0" }, "engines": { "node": ">=12" diff --git a/src/packages/react-force-graph-3d/package.json b/src/packages/react-force-graph-3d/package.json index d6e90c55..9bf3a9fe 100644 --- a/src/packages/react-force-graph-3d/package.json +++ b/src/packages/react-force-graph-3d/package.json @@ -52,7 +52,7 @@ }, "devDependencies": { "rimraf": "^6.0.1", - "rollup": "^4.22.4" + "rollup": "^4.24.0" }, "engines": { "node": ">=12" diff --git a/src/packages/react-force-graph-ar/package.json b/src/packages/react-force-graph-ar/package.json index d21f935d..28a15760 100644 --- a/src/packages/react-force-graph-ar/package.json +++ b/src/packages/react-force-graph-ar/package.json @@ -53,7 +53,7 @@ }, "devDependencies": { "rimraf": "^6.0.1", - "rollup": "^4.22.4" + "rollup": "^4.24.0" }, "engines": { "node": ">=12" diff --git a/src/packages/react-force-graph-vr/package.json b/src/packages/react-force-graph-vr/package.json index dd379131..bcba1764 100644 --- a/src/packages/react-force-graph-vr/package.json +++ b/src/packages/react-force-graph-vr/package.json @@ -52,7 +52,7 @@ }, "devDependencies": { "rimraf": "^6.0.1", - "rollup": "^4.22.4" + "rollup": "^4.24.0" }, "engines": { "node": ">=12"