From 6ecad831940cadf00d6df114e372dd06d2933519 Mon Sep 17 00:00:00 2001 From: Benoit Simard Date: Thu, 25 Jul 2024 13:17:58 +0200 Subject: [PATCH] [core, storybook] update version of sigma & grapho --- package-lock.json | 78 ++++++++++---------- packages/core/package.json | 4 +- packages/core/src/hooks/useRegisterEvents.ts | 4 + packages/storybook/stories/package.json | 2 +- 4 files changed, 47 insertions(+), 41 deletions(-) diff --git a/package-lock.json b/package-lock.json index da4da055..42e10dad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@react-sigma/root", - "version": "4.0.2", + "version": "4.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@react-sigma/root", - "version": "4.0.2", + "version": "4.0.3", "license": "MIT", "workspaces": [ "packages/*" @@ -30277,8 +30277,9 @@ } }, "node_modules/sigma": { - "version": "3.0.0-beta.16", - "license": "MIT", + "version": "3.0.0-beta.25", + "resolved": "https://registry.npmjs.org/sigma/-/sigma-3.0.0-beta.25.tgz", + "integrity": "sha512-EK+MUoOW2WTD4RaLV9bdgBFvhIFuOoB2jt29COxOuhqQH63QcPYCZx+If8PDV4oOqa1wdvctfbzx8pOayUsEcg==", "dependencies": { "events": "^3.3.0", "graphology-utils": "^2.5.2" @@ -33890,20 +33891,20 @@ }, "packages/core": { "name": "@react-sigma/core", - "version": "4.0.2", + "version": "4.0.3", "license": "MIT", "peerDependencies": { - "graphology": "^0.25.1", + "graphology": "^0.25.4", "react": "^18.0.0", - "sigma": "^3.0.0-beta.16" + "sigma": "^3.0.0-beta.24" } }, "packages/layout-circlepack": { "name": "@react-sigma/layout-circlepack", - "version": "4.0.2", + "version": "4.0.3", "license": "MIT", "dependencies": { - "@react-sigma/layout-core": "^4.0.2" + "@react-sigma/layout-core": "^4.0.3" }, "peerDependencies": { "graphology-layout": "^0.6.1" @@ -33911,10 +33912,10 @@ }, "packages/layout-circular": { "name": "@react-sigma/layout-circular", - "version": "4.0.2", + "version": "4.0.3", "license": "MIT", "dependencies": { - "@react-sigma/layout-core": "^4.0.2" + "@react-sigma/layout-core": "^4.0.3" }, "peerDependencies": { "graphology-layout": "0.6.1" @@ -33922,10 +33923,10 @@ }, "packages/layout-core": { "name": "@react-sigma/layout-core", - "version": "4.0.2", + "version": "4.0.3", "license": "MIT", "dependencies": { - "@react-sigma/core": "^4.0.2" + "@react-sigma/core": "^4.0.3" }, "devDependencies": { "copyfiles": "^2.4.1" @@ -33933,10 +33934,10 @@ }, "packages/layout-force": { "name": "@react-sigma/layout-force", - "version": "4.0.2", + "version": "4.0.3", "license": "MIT", "dependencies": { - "@react-sigma/layout-core": "^4.0.2" + "@react-sigma/layout-core": "^4.0.3" }, "peerDependencies": { "graphology-layout-force": "^0.2.4" @@ -33944,10 +33945,10 @@ }, "packages/layout-forceatlas2": { "name": "@react-sigma/layout-forceatlas2", - "version": "4.0.2", + "version": "4.0.3", "license": "MIT", "dependencies": { - "@react-sigma/layout-core": "^4.0.2" + "@react-sigma/layout-core": "^4.0.3" }, "peerDependencies": { "graphology-layout-forceatlas2": "^0.10.1" @@ -33955,10 +33956,10 @@ }, "packages/layout-noverlap": { "name": "@react-sigma/layout-noverlap", - "version": "4.0.2", + "version": "4.0.3", "license": "MIT", "dependencies": { - "@react-sigma/layout-core": "^4.0.2" + "@react-sigma/layout-core": "^4.0.3" }, "peerDependencies": { "graphology-layout-noverlap": "^0.4.2" @@ -33966,10 +33967,10 @@ }, "packages/layout-random": { "name": "@react-sigma/layout-random", - "version": "4.0.2", + "version": "4.0.3", "license": "MIT", "dependencies": { - "@react-sigma/layout-core": "^4.0.2" + "@react-sigma/layout-core": "^4.0.3" }, "peerDependencies": { "graphology-layout": "^0.6.1" @@ -33977,33 +33978,34 @@ }, "packages/storybook": { "name": "@react-sigma/storybook", + "version": "4.0.3", "dependencies": { - "@react-sigma/core": "^4.0.2", - "@react-sigma/layout-circlepack": "^4.0.2", - "@react-sigma/layout-circular": "^4.0.2", - "@react-sigma/layout-core": "^4.0.2", - "@react-sigma/layout-force": "^4.0.2", - "@react-sigma/layout-forceatlas2": "^4.0.2", - "@react-sigma/layout-noverlap": "^4.0.2", - "@react-sigma/layout-random": "^4.0.2" + "@react-sigma/core": "^4.0.3", + "@react-sigma/layout-circlepack": "^4.0.3", + "@react-sigma/layout-circular": "^4.0.3", + "@react-sigma/layout-core": "^4.0.3", + "@react-sigma/layout-force": "^4.0.3", + "@react-sigma/layout-forceatlas2": "^4.0.3", + "@react-sigma/layout-noverlap": "^4.0.3", + "@react-sigma/layout-random": "^4.0.3" } }, "packages/website": { "name": "@react-sigma/website", - "version": "4.0.2", + "version": "4.0.3", "dependencies": { "@docusaurus/core": "^3.2.0", "@docusaurus/module-type-aliases": "^3.2.0", "@docusaurus/preset-classic": "^3.2.0", "@docusaurus/tsconfig": "3.0.0", - "@react-sigma/core": "^4.0.2", - "@react-sigma/layout-circlepack": "^4.0.2", - "@react-sigma/layout-circular": "^4.0.2", - "@react-sigma/layout-core": "^4.0.2", - "@react-sigma/layout-force": "^4.0.2", - "@react-sigma/layout-forceatlas2": "^4.0.2", - "@react-sigma/layout-noverlap": "^4.0.2", - "@react-sigma/layout-random": "^4.0.2", + "@react-sigma/core": "^4.0.3", + "@react-sigma/layout-circlepack": "^4.0.3", + "@react-sigma/layout-circular": "^4.0.3", + "@react-sigma/layout-core": "^4.0.3", + "@react-sigma/layout-force": "^4.0.3", + "@react-sigma/layout-forceatlas2": "^4.0.3", + "@react-sigma/layout-noverlap": "^4.0.3", + "@react-sigma/layout-random": "^4.0.3", "clsx": "^2.1.0", "docusaurus-plugin-matomo": "^0.0.8", "docusaurus-plugin-sass": "^0.2.2", diff --git a/packages/core/package.json b/packages/core/package.json index c0329b0f..7562a5ed 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -37,8 +37,8 @@ "start": "nodemon --watch src -e ts,tsx,css --exec npm run build" }, "peerDependencies": { - "graphology": "^0.25.1", + "graphology": "^0.25.4", "react": "^18.0.0", - "sigma": "^3.0.0-beta.16" + "sigma": "^3.0.0-beta.24" } } diff --git a/packages/core/src/hooks/useRegisterEvents.ts b/packages/core/src/hooks/useRegisterEvents.ts index 81aa3ff1..313ca123 100644 --- a/packages/core/src/hooks/useRegisterEvents.ts +++ b/packages/core/src/hooks/useRegisterEvents.ts @@ -41,6 +41,10 @@ const sigmaEvents = keySet({ enterStage: true, leaveStage: true, resize: true, + afterClear: true, + afterProcess: true, + beforeClear: true, + beforeProcess: true, }); const mouseEvents = keySet({ diff --git a/packages/storybook/stories/package.json b/packages/storybook/stories/package.json index 5371ccb5..5a574bd5 100644 --- a/packages/storybook/stories/package.json +++ b/packages/storybook/stories/package.json @@ -35,7 +35,7 @@ "dependencies": { "graphology": "^0.25.4", "graphology-types": "^0.24.7", - "sigma": "^3.0.0-beta.16" + "sigma": "^3.0.0-beta.24" }, "devDependencies": { "@faker-js/faker": "^8.4.1",