From 7c85d4d69686f24be8514283b7b31d4e96174ecf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:13:08 +0000 Subject: [PATCH 1/2] chore(deps): Bump @xyflow/react from 12.12.1 to 13.0.2 Bumps [@xyflow/react](https://github.com/xyflow/xyflow/tree/HEAD/packages/react) from 12.12.1 to 13.0.2. - [Release notes](https://github.com/xyflow/xyflow/releases) - [Changelog](https://github.com/xyflow/xyflow/blob/main/packages/react/CHANGELOG.md) - [Commits](https://github.com/xyflow/xyflow/commits/@xyflow/react@13.0.2/packages/react) --- updated-dependencies: - dependency-name: "@xyflow/react" dependency-version: 13.0.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- apps/web/package.json | 2 +- package-lock.json | 139 ++++++++++++++++++------------------------ 2 files changed, 59 insertions(+), 82 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index cf4ff9da..8cd275c6 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -32,7 +32,7 @@ "@foxschema/ui-shared": "*", "@foxschema/workflow-engine": "*", "@monaco-editor/react": "4.7.0", - "@xyflow/react": "12.12.1", + "@xyflow/react": "13.0.2", "ajv": "8.20.0", "better-sqlite3": "13.0.3", "cron-parser": "5.10.4", diff --git a/package-lock.json b/package-lock.json index 3bb4d263..7593b87d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -109,7 +109,7 @@ "@foxschema/ui-shared": "*", "@foxschema/workflow-engine": "*", "@monaco-editor/react": "4.7.0", - "@xyflow/react": "12.12.1", + "@xyflow/react": "13.0.2", "ajv": "8.20.0", "better-sqlite3": "13.0.3", "cron-parser": "5.10.4", @@ -424,6 +424,7 @@ "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "undici-types": "~8.9.0" } @@ -588,6 +589,7 @@ "integrity": "sha512-UI7dK29NnS54Fk+mmo7o+jI6U8Fp7hDl+X5Q1k45WH+d4dSlbLVUETGQ+hfkNgvLQGyoElPj837nZyv4MBc0VA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "lightningcss": "^1.33.0", "picomatch": "^4.0.7", @@ -1276,6 +1278,7 @@ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", @@ -1524,6 +1527,7 @@ "resolved": "https://registry.npmjs.org/@clickhouse/client/-/client-1.25.0.tgz", "integrity": "sha512-sxoCDlA8iOEGpGrJzl9SeNvG7II6e5kSeo0JI4Mru2QhwhjydWuDEE55ryZg3vIJ0CSJ1bhn9+Xtnuvf1BZT/w==", "license": "Apache-2.0", + "peer": true, "engines": { "node": ">=20" } @@ -1533,6 +1537,7 @@ "resolved": "https://registry.npmjs.org/@duckdb/node-api/-/node-api-1.5.4-r.1.tgz", "integrity": "sha512-3PYk/4//svuYmb9RYVM71cCoNa6ngoYWwrMhJaqbm010txzIMWbJCbxrFeqDl+krdIug+Hc/MNCeS0gHsTXSIw==", "license": "MIT", + "peer": true, "dependencies": { "@duckdb/node-bindings": "1.5.4-r.1" } @@ -3455,7 +3460,6 @@ "integrity": "sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==", "dev": true, "license": "MIT", - "peer": true, "funding": { "url": "https://github.com/sponsors/oxc-project" } @@ -3545,7 +3549,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3563,7 +3566,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3581,7 +3583,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3599,7 +3600,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3617,7 +3617,6 @@ "os": [ "freebsd" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3635,7 +3634,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3653,7 +3651,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3671,7 +3668,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3689,7 +3685,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3707,7 +3702,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3725,7 +3719,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3743,7 +3736,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3761,7 +3753,6 @@ "os": [ "openharmony" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3779,7 +3770,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -3797,7 +3787,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -4359,8 +4348,7 @@ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@types/chai": { "version": "5.2.3", @@ -4472,6 +4460,7 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.4.tgz", "integrity": "sha512-ldVPDCzj7fsaGZrLB0NuHuTvJcsNasysBAqMolr/cgxrLd1xbqxIr3XJiPnHHJUCxj5sNF1vnRj9aWnrVh5Jcg==", "license": "MIT", + "peer": true, "dependencies": { "undici-types": "~8.9.0" } @@ -4494,6 +4483,7 @@ "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==", "devOptional": true, "license": "MIT", + "peer": true, "dependencies": { "csstype": "^3.2.2" } @@ -4559,6 +4549,7 @@ "integrity": "sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.72.1", "@typescript-eslint/types": "8.72.1", @@ -4810,73 +4801,52 @@ } }, "node_modules/@xyflow/react": { - "version": "12.12.1", - "resolved": "https://registry.npmjs.org/@xyflow/react/-/react-12.12.1.tgz", - "integrity": "sha512-g41OHmP+GL5wDBQKpgYt8AF6RlB4CrABtiStXhCMqdItK6gPdSpsuDk8V0YtdyvIvMPTjDJvkuLkz0JbSYu5Cw==", - "license": "MIT", - "dependencies": { - "@xyflow/system": "0.0.84", - "classcat": "^5.0.3", - "zustand": "^4.4.0" - }, - "peerDependencies": { - "@types/react": ">=17", - "@types/react-dom": ">=17", - "react": ">=17", - "react-dom": ">=17" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "@types/react-dom": { - "optional": true - } - } - }, - "node_modules/@xyflow/react/node_modules/zustand": { - "version": "4.5.7", - "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz", - "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==", + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/@xyflow/react/-/react-13.0.2.tgz", + "integrity": "sha512-dURQCKhz4TEYc43pp9yY4LeEvC7rmHLPeit396VKA9wSNjda245nA4JTZV3ieekB2dx7kwGjvXQELmsZ0FpVAA==", "license": "MIT", "dependencies": { - "use-sync-external-store": "^1.2.2" + "@xyflow/system": "1.0.0", + "classcat": "^5.0.5", + "react-compiler-runtime": "^1.0.0", + "zustand": "^5.0.15" }, "engines": { - "node": ">=12.7.0" + "node": ">=20" }, "peerDependencies": { - "@types/react": ">=16.8", - "immer": ">=9.0.6", - "react": ">=16.8" + "@types/react": ">=18", + "@types/react-dom": ">=18", + "react": ">=18", + "react-dom": ">=18" }, "peerDependenciesMeta": { "@types/react": { "optional": true }, - "immer": { - "optional": true - }, - "react": { + "@types/react-dom": { "optional": true } } }, "node_modules/@xyflow/system": { - "version": "0.0.84", - "resolved": "https://registry.npmjs.org/@xyflow/system/-/system-0.0.84.tgz", - "integrity": "sha512-96zfGFjH3oZ3T0MRdH4gJ0SlXuCIxbBuHVevZ4xry5UTxqjzjt010+LRdholgepq7jhrcaz1JNtzrETscwnkEA==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@xyflow/system/-/system-1.0.0.tgz", + "integrity": "sha512-mOeG0ZIkEUY5V5XQS+LE3QKlJqL7gu5ukqxAniuDDpfxtkA4uagOmBiWKh3w59wZ5nBC7ojBcNrBukM3hUJBKg==", "license": "MIT", "dependencies": { "@types/d3-drag": "^3.0.7", "@types/d3-interpolate": "^3.0.4", - "@types/d3-selection": "^3.0.10", - "@types/d3-transition": "^3.0.8", + "@types/d3-selection": "^3.0.11", + "@types/d3-transition": "^3.0.9", "@types/d3-zoom": "^3.0.8", "d3-drag": "^3.0.0", "d3-interpolate": "^3.0.1", "d3-selection": "^3.0.0", "d3-zoom": "^3.0.0" + }, + "engines": { + "node": ">=20" } }, "node_modules/abort-controller": { @@ -4903,6 +4873,7 @@ "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -5060,7 +5031,6 @@ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", "dev": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "dequal": "^2.0.3" } @@ -5267,6 +5237,7 @@ "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-13.0.3.tgz", "integrity": "sha512-RbOBxmLBG8uvFUc15X9+9SFemKcQ0WBuISBVkpuiaUB2qblC8UWlHEjdWVoZ8AdhSwmoEgsiXKfopX0CQxaACQ==", "license": "MIT", + "peer": true, "dependencies": { "node-addon-api": "^8.0.0" }, @@ -5394,6 +5365,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "baseline-browser-mapping": "^2.11.23", "caniuse-lite": "^1.0.30001810", @@ -5994,6 +5966,7 @@ "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.1.tgz", "integrity": "sha512-ODSf35vqCrlCfp7hrm0eZjvOosSXSYLjqvIlhMBV9q9VOx7EBJG6pc+uXBswEZNJgCGJ+qnKYcWutbZDIxe/Xg==", "license": "ISC", + "peer": true, "engines": { "node": ">=12" } @@ -6243,8 +6216,7 @@ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/dompurify": { "version": "3.4.17", @@ -6510,6 +6482,7 @@ "integrity": "sha512-T0pNsxkb9IKmtQjhpK3d7nWOpFv+YHuMbTJnSVMoQblF0onvXfErrtp4V1jHtsQPan7dKaGVD0q1WCXnzMF31A==", "dev": true, "license": "MIT", + "peer": true, "workspaces": [ "packages/*" ], @@ -7680,6 +7653,7 @@ "resolved": "https://registry.npmjs.org/ink/-/ink-8.0.0.tgz", "integrity": "sha512-M2aFwZOqmkFxCwedy6xrP4E+DGoK57iahAFnfTqNyOyJ54O7DZzu027z/NI8EGy44Sw9O9BcbTF4QEUS2GHAtg==", "license": "MIT", + "peer": true, "dependencies": { "@alcalzone/ansi-tokenize": "^0.3.1", "ansi-escapes": "^7.3.0", @@ -8319,6 +8293,7 @@ "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@keyv/serialize": "^1.1.1" } @@ -8774,7 +8749,6 @@ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", "dev": true, "license": "MIT", - "peer": true, "bin": { "lz-string": "bin/bin.js" } @@ -8927,6 +8901,7 @@ "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.57.0.tgz", "integrity": "sha512-5BkI9KGoqrNvBGUe15/QlZq3OooZ8WLg1AxTpaqHRCP3HNpzPPZKE2EDz8M7c+VRmCeUw1Brp4cx/PWm3kI/5A==", "license": "MIT", + "peer": true, "dependencies": { "dompurify": "3.4.15", "marked": "14.0.0" @@ -8949,6 +8924,7 @@ "resolved": "https://registry.npmjs.org/mssql/-/mssql-12.7.14.tgz", "integrity": "sha512-X7Pxsf85LyJm+OWH3TdGAJuq5T9mkXsRdVOkxg5jgC4zKGLUCCwrnimPI7Xg0F84gJv1un2xvnsqYzQ63SlbWA==", "license": "MIT", + "peer": true, "dependencies": { "@tediousjs/connection-string": "^1.0.0", "commander": "^11.0.0", @@ -8977,6 +8953,7 @@ "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.24.6.tgz", "integrity": "sha512-enu73KhbAua2L3dIxjc6qg6ZJ7H3pt1BImZASWNWY5xSsmJ1ZuUPULTDGXgmJbI61vb+nJAG19IZclIq19UidQ==", "license": "MIT", + "peer": true, "dependencies": { "aws-ssl-profiles": "^1.1.2", "generate-function": "^2.3.1", @@ -9017,7 +8994,6 @@ } ], "license": "MIT", - "peer": true, "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -9226,6 +9202,7 @@ "integrity": "sha512-ywUqFidj/mPjRjfpOQdzcXT98lhiJzavPCbyPF9JYivcgrpHx7ENj4ZGQDclrpGXeozUBLc5BNXV7yj5qTMxDw==", "hasInstallScript": true, "license": "(Apache-2.0 OR UPL-1.0)", + "peer": true, "engines": { "node": ">=14.17" } @@ -9353,6 +9330,7 @@ "resolved": "https://registry.npmjs.org/pg/-/pg-8.23.1.tgz", "integrity": "sha512-aL96AHANtWjPLDOLqnhx+ngp9+UK7ETEU8VJrDCGvsSSi/mGLcWYsS6Herg7lmaBJe4uwrfqsa7gTEFaSizDoQ==", "license": "MIT", + "peer": true, "dependencies": { "pg-connection-string": "^2.14.1", "pg-pool": "^3.14.0", @@ -9596,7 +9574,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "nanoid": "^3.3.17", "picocolors": "^1.1.1", @@ -9714,7 +9691,6 @@ "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", @@ -9730,7 +9706,6 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=10" }, @@ -9909,15 +9884,26 @@ "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } }, + "node_modules/react-compiler-runtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/react-compiler-runtime/-/react-compiler-runtime-1.0.0.tgz", + "integrity": "sha512-rRfjYv66HlG8896yPUDONgKzG5BxZD1nV9U6rkm+7VCuvQc903C4MjcoZR4zPw53IKSOX9wMQVpA1IAbRtzQ7w==", + "license": "MIT", + "peerDependencies": { + "react": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^0.0.0-experimental" + } + }, "node_modules/react-dom": { "version": "19.3.1", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz", "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==", "license": "MIT", + "peer": true, "dependencies": { "scheduler": "^0.28.0" }, @@ -9930,8 +9916,7 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/react-reconciler": { "version": "0.34.0", @@ -10058,7 +10043,6 @@ "integrity": "sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@oxc-project/types": "=0.155.0", "@rolldown/pluginutils": "^1.0.0" @@ -11010,6 +10994,7 @@ "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -11109,15 +11094,6 @@ "punycode": "^2.1.0" } }, - "node_modules/use-sync-external-store": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.7.0.tgz", - "integrity": "sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A==", - "license": "MIT", - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - } - }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -11578,6 +11554,7 @@ "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", "license": "MIT", + "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } From 6e5d93a61c3317b66a0579cc68ec6fe37b0c6c3d Mon Sep 17 00:00:00 2001 From: huyplb Date: Mon, 23 Nov 2026 17:16:32 -0600 Subject: [PATCH 2/2] fix(web): adapt the React Flow canvases to @xyflow/react 13 - `colorMode` is gone; `forceColorMode` takes the app's resolved theme, so the designer canvas still follows Fox's light/dark/system setting rather than the OS colour scheme. - A bare `fitView` padding number now means pixels; the designer's 0.8 and 0.15 ratios become 22% and 6.5%, the same framing as before. - `elevateEdgesOnSelect` now defaults to true; set it back to false so selected edges stay under the pipes as they did. - The Lokee canvas had no colour mode (v12 drew it light); pin it light. Checked A/B against main (v12) in both themes with the OS scheme set the other way: computed styles, selection, drag, focus and auto-layout are the same. Co-Authored-By: Claude Opus 5.5 --- .../lokee-weave/components/LokeeWeavePage.tsx | 5 +++++ .../workflow/components/WorkflowDesigner.tsx | 14 ++++++++++---- .../src/frontend/features/workflow/workflow.css | 4 ++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/apps/web/src/frontend/features/lokee-weave/components/LokeeWeavePage.tsx b/apps/web/src/frontend/features/lokee-weave/components/LokeeWeavePage.tsx index 635f6c20..2e1cfa6e 100644 --- a/apps/web/src/frontend/features/lokee-weave/components/LokeeWeavePage.tsx +++ b/apps/web/src/frontend/features/lokee-weave/components/LokeeWeavePage.tsx @@ -854,6 +854,11 @@ export const LokeeWeavePage: React.FC = ({ minZoom={0.35} maxZoom={1.75} defaultViewport={{ x: 24, y: 24, zoom: 1 }} + // React Flow 12 drew this canvas light unless told otherwise and + // left selected edges under the nodes; 13 changed both defaults. + // Keep it as it was. + forceColorMode="light" + elevateEdgesOnSelect={false} style={{ width: '100%', height: '100%' }} /** * React Flow is plain MIT (see node_modules/@xyflow/react/LICENSE). diff --git a/apps/web/src/frontend/features/workflow/components/WorkflowDesigner.tsx b/apps/web/src/frontend/features/workflow/components/WorkflowDesigner.tsx index df7fde10..444dc0f9 100644 --- a/apps/web/src/frontend/features/workflow/components/WorkflowDesigner.tsx +++ b/apps/web/src/frontend/features/workflow/components/WorkflowDesigner.tsx @@ -752,12 +752,16 @@ function Designer() { [], ); - /** Pan and zoom to one pipe, once its stage is on the canvas and measured. */ + /** + * Pan and zoom to one pipe, once its stage is on the canvas and measured. + * React Flow 13 reads a bare padding number as pixels, so the paddings here + * are percentages (22% and 6.5% are the old 0.8 and 0.15 ratios). + */ const focusNode = useCallback( (id: string) => { requestAnimationFrame(() => requestAnimationFrame(() => { - void fitView({ nodes: [{ id }], duration: 300, maxZoom: 1.25, padding: 0.8 }); + void fitView({ nodes: [{ id }], duration: 300, maxZoom: 1.25, padding: '22%' }); }), ); }, @@ -818,7 +822,7 @@ function Designer() { }); }); if (options.fit) { - requestAnimationFrame(() => void fitView({ duration: 250, padding: 0.15 })); + requestAnimationFrame(() => void fitView({ duration: 250, padding: '6.5%' })); } }, [edges, fitView, setNodes], @@ -1671,7 +1675,9 @@ function Designer() { onSelectionChange={onSelectionChange} nodeTypes={nodeTypes} edgeTypes={edgeTypes} - colorMode={colorMode} + forceColorMode={colorMode} + // React Flow 13 raises selected edges above the pipes by default. + elevateEdgesOnSelect={false} fitView connectionLineType={ConnectionLineType.SmoothStep} defaultEdgeOptions={DEFAULT_EDGE_OPTIONS} diff --git a/apps/web/src/frontend/features/workflow/workflow.css b/apps/web/src/frontend/features/workflow/workflow.css index 2acbd45a..076b0326 100644 --- a/apps/web/src/frontend/features/workflow/workflow.css +++ b/apps/web/src/frontend/features/workflow/workflow.css @@ -2181,8 +2181,8 @@ button.run-status { } /* - * React Flow sets its theme variables in unlayered CSS (.react-flow.dark), which - * would beat anything in the layer above, so these overrides sit outside it. + * React Flow sets its theme variables in its own layer (@layer xyflow), declared + * after the one above and so beating it; these overrides sit outside both. */ .fox-workflow .react-flow, .fox-workflow .react-flow.dark {