From 04b6179e35a265a7a7f412aee8a1e89b9c1417e7 Mon Sep 17 00:00:00 2001 From: ShaMan123 Date: Fri, 24 Jul 2026 11:58:06 +0300 Subject: [PATCH] fix(): dep mismatch --- packages/core/package.json | 4 ++-- .../FastModelPicker/src/fast-model-picker.ts | 4 +--- packages/front/package.json | 6 +++--- yarn.lock | 20 +++++++++---------- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index f1ace35cd..dee02e21c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -37,7 +37,7 @@ "access": "public" }, "devDependencies": { - "@thatopen/fragments": "~3.4.3", + "@thatopen/fragments": "~3.4.7", "@thatopen/ui": "~3.4.0", "@types/convert-units": "2.3.11", "@types/three": "0.184.0", @@ -52,7 +52,7 @@ "three-mesh-bvh": "0.9.9" }, "peerDependencies": { - "@thatopen/fragments": "~3.4.0", + "@thatopen/fragments": "~3.4.7", "camera-controls": ">=3.1.2", "three": ">=0.182.0", "web-ifc": ">=0.0.77" diff --git a/packages/core/src/core/FastModelPicker/src/fast-model-picker.ts b/packages/core/src/core/FastModelPicker/src/fast-model-picker.ts index cab7e9b40..0c9e7743d 100644 --- a/packages/core/src/core/FastModelPicker/src/fast-model-picker.ts +++ b/packages/core/src/core/FastModelPicker/src/fast-model-picker.ts @@ -186,9 +186,7 @@ export class FastModelPicker implements Disposable { const fragments = this.components.get(FragmentsManager); const model = fragments.list.get(result.modelId); if (!model) return null; - const localIds = await (model as any).getLocalIdsFromItemIds([ - result.itemId, - ]); + const localIds = await model.getLocalIdsFromItemIds([result.itemId]); const localId = localIds?.[0]; if (localId === undefined || localId === null) return null; return { modelId: result.modelId, localId, itemId: result.itemId }; diff --git a/packages/front/package.json b/packages/front/package.json index 9f94a1d78..6d61034f9 100644 --- a/packages/front/package.json +++ b/packages/front/package.json @@ -33,12 +33,12 @@ "publish-repo": "npm publish" }, "peerDependencies": { - "@thatopen/fragments": "~3.4.0", + "@thatopen/fragments": "~3.4.7", "three": ">=0.182.0", "web-ifc": ">=0.0.77" }, "devDependencies": { - "@thatopen/fragments": "~3.4.3", + "@thatopen/fragments": "~3.4.7", "@thatopen/ui": "~3.4.0", "@thatopen/ui-obc": "~3.4.0", "@types/convert-units": "2.3.11", @@ -48,7 +48,7 @@ "web-ifc": "0.0.77" }, "dependencies": { - "@thatopen/components": "~3.4.0", + "@thatopen/components": "~3.4.7", "earcut": "^3.0.1" } } diff --git a/yarn.lock b/yarn.lock index 17eb7de63..256ee389b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -737,8 +737,8 @@ __metadata: version: 0.0.0-use.local resolution: "@thatopen/components-front@workspace:packages/front" dependencies: - "@thatopen/components": ~3.4.0 - "@thatopen/fragments": ~3.4.3 + "@thatopen/components": ~3.4.7 + "@thatopen/fragments": ~3.4.7 "@thatopen/ui": ~3.4.0 "@thatopen/ui-obc": ~3.4.0 "@types/convert-units": 2.3.11 @@ -748,17 +748,17 @@ __metadata: three: 0.184.0 web-ifc: 0.0.77 peerDependencies: - "@thatopen/fragments": ~3.4.0 + "@thatopen/fragments": ~3.4.7 three: ">=0.182.0" web-ifc: ">=0.0.77" languageName: unknown linkType: soft -"@thatopen/components@workspace:packages/core, @thatopen/components@~3.4.0": +"@thatopen/components@workspace:packages/core, @thatopen/components@~3.4.7": version: 0.0.0-use.local resolution: "@thatopen/components@workspace:packages/core" dependencies: - "@thatopen/fragments": ~3.4.3 + "@thatopen/fragments": ~3.4.7 "@thatopen/ui": ~3.4.0 "@types/convert-units": 2.3.11 "@types/three": 0.184.0 @@ -770,16 +770,16 @@ __metadata: three-mesh-bvh: 0.9.9 web-ifc: 0.0.77 peerDependencies: - "@thatopen/fragments": ~3.4.0 + "@thatopen/fragments": ~3.4.7 camera-controls: ">=3.1.2" three: ">=0.182.0" web-ifc: ">=0.0.77" languageName: unknown linkType: soft -"@thatopen/fragments@npm:~3.4.3": - version: 3.4.3 - resolution: "@thatopen/fragments@npm:3.4.3" +"@thatopen/fragments@npm:~3.4.7": + version: 3.4.7 + resolution: "@thatopen/fragments@npm:3.4.7" dependencies: earcut: ^3.0.1 flatbuffers: 25.2.10 @@ -788,7 +788,7 @@ __metadata: peerDependencies: three: ">=0.182.0" web-ifc: ">=0.0.77" - checksum: 2e899c2986f6720dacafd41a2a708bd69d720de0e200cdbebddb4ed142ef69c7d77dbb7af37b71d7b1b4b627a56f696174984de0b3d1548d538993ed38066f28 + checksum: 66ef8422afcee492d083c5aa4f0003b2847f853f84cea367f3851720202c974dcacf81f26b803f89399f9e1797c73421a2183e7dd18e7858bff458144df60e20 languageName: node linkType: hard