Skip to content

Commit

Permalink
feat(core): add optional disabled state to components with ui
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Oct 28, 2024
1 parent 0a56f67 commit c0f5916
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/components",
"description": "Collection of core functionalities to author BIM apps.",
"version": "2.4.0-alpha.14",
"version": "2.4.0-alpha.15",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down Expand Up @@ -37,7 +37,7 @@
"access": "public"
},
"devDependencies": {
"@thatopen/fragments": ">=2.4.0-alpha.8",
"@thatopen/fragments": ">=2.4.0-alpha.9",
"@thatopen/ui": "~2.3.0",
"@types/three": "0.160.0",
"stats.js": "^0.17.0",
Expand All @@ -51,7 +51,7 @@
"three-mesh-bvh": "0.7.0"
},
"peerDependencies": {
"@thatopen/fragments": ">=2.4.0-alpha.8",
"@thatopen/fragments": ">=2.4.0-alpha.9",
"three": "^0.160.1",
"web-ifc": "0.0.61"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/Types/src/component-with-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Component } from "./component";

export type ComponentUIElement = {
name: string;
enabled: boolean;
componentID: string;
attributes: { [name: string]: string };
get: () => HTMLElement;
disabled?: boolean;
};

export abstract class ComponentWithUI extends Component {
Expand Down
6 changes: 3 additions & 3 deletions packages/front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
"publish-alpha": "npm publish --tag alpha"
},
"peerDependencies": {
"@thatopen/fragments": ">=2.4.0-alpha.8",
"@thatopen/fragments": ">=2.4.0-alpha.9",
"three": "^0.160.1",
"web-ifc": "0.0.61"
},
"devDependencies": {
"@thatopen/fragments": ">=2.4.0-alpha.8",
"@thatopen/fragments": ">=2.4.0-alpha.9",
"@thatopen/ui": "~2.3.0",
"@thatopen/ui-obc": "~2.3.0",
"@types/earcut": "^2.1.4",
Expand All @@ -47,7 +47,7 @@
"web-ifc": "0.0.61"
},
"dependencies": {
"@thatopen/components": ">=2.4.0-alpha.13",
"@thatopen/components": ">=2.4.0-alpha.15",
"camera-controls": "2.7.3",
"dexie": "^4.0.4",
"earcut": "^2.2.4",
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "@thatopen/components-front@workspace:packages/front"
dependencies:
"@thatopen/components": ">=2.4.0-alpha.13"
"@thatopen/fragments": ">=2.4.0-alpha.8"
"@thatopen/components": ">=2.4.0-alpha.14"
"@thatopen/fragments": ">=2.4.0-alpha.9"
"@thatopen/ui": ~2.3.0
"@thatopen/ui-obc": ~2.3.0
"@types/earcut": ^2.1.4
Expand All @@ -703,17 +703,17 @@ __metadata:
three: ^0.160.1
web-ifc: 0.0.61
peerDependencies:
"@thatopen/fragments": ">=2.4.0-alpha.8"
"@thatopen/fragments": ">=2.4.0-alpha.9"
three: ^0.160.1
web-ifc: 0.0.61
languageName: unknown
linkType: soft

"@thatopen/components@>=2.4.0-alpha.13, @thatopen/components@workspace:packages/core":
"@thatopen/components@>=2.4.0-alpha.14, @thatopen/components@workspace:packages/core":
version: 0.0.0-use.local
resolution: "@thatopen/components@workspace:packages/core"
dependencies:
"@thatopen/fragments": ">=2.4.0-alpha.8"
"@thatopen/fragments": ">=2.4.0-alpha.9"
"@thatopen/ui": ~2.3.0
"@types/three": 0.160.0
camera-controls: 2.7.3
Expand All @@ -724,21 +724,21 @@ __metadata:
three-mesh-bvh: 0.7.0
web-ifc: 0.0.61
peerDependencies:
"@thatopen/fragments": ">=2.4.0-alpha.8"
"@thatopen/fragments": ">=2.4.0-alpha.9"
three: ^0.160.1
web-ifc: 0.0.61
languageName: unknown
linkType: soft

"@thatopen/fragments@npm:>=2.4.0-alpha.8":
version: 2.4.0-alpha.8
resolution: "@thatopen/fragments@npm:2.4.0-alpha.8"
"@thatopen/fragments@npm:>=2.4.0-alpha.9":
version: 2.4.0-alpha.9
resolution: "@thatopen/fragments@npm:2.4.0-alpha.9"
dependencies:
flatbuffers: 23.3.3
three-mesh-bvh: 0.7.0
peerDependencies:
three: ^0.160.1
checksum: d4be85ef5f96d892be594675192ba037550135f8ba1243a2875dd5c8b9eb72059b7e110a2f8bbbdc6f8d1c696a986c688c7fd70bf410ffadea1dd7b09fc8cb35
checksum: 260ee1be9268412b9b810fac5300c0cd600797c885c51c6812eaef2ad2a234b3e34f874348e02dc88c505872cbdabfb47f2be2593cfb138e55d1b70861a7e6c9
languageName: node
linkType: hard

Expand Down

0 comments on commit c0f5916

Please sign in to comment.