@wandelbots/wandelbots-js-react-components 2.59.0 → 2.59.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "2.59.0",
3
+ "version": "2.59.1",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,13 +1,10 @@
1
1
  import type { Object3D } from "three"
2
2
  import type { GLTF } from "three-stdlib"
3
- import { version } from "../../../package.json"
4
3
 
5
4
  export function defaultGetModel(modelFromController: string): string {
6
- let useVersion = version
7
- if (version.startsWith("0.")) {
8
- useVersion = ""
9
- }
10
- return `https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${useVersion ? `@${useVersion}` : ""}/public/models/${modelFromController}.glb`
5
+ // we are using v2 because its bundles the robot models for the latest v2
6
+ // its encouraged to use v4 which switches to robotDataProvider for fetching the 3d-robot-models
7
+ return `https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components@v2/public/models/${modelFromController}.glb`
11
8
  }
12
9
 
13
10
  /**