@wandelbots/wandelbots-js-react-components 1.2.0 → 1.3.0

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.
Files changed (2) hide show
  1. package/README.md +9 -0
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -34,6 +34,7 @@ import { WandelscriptEditor, ... } from '@wandelbots/wandelbots-js-react-compone
34
34
  <ul>
35
35
  <li><a href="#robots">Robots</a></li>
36
36
  <li><a href="#lightning">Lightning</a></li>
37
+ <li><a href="#safety">Safety Zones</a></li>
37
38
  </ul>
38
39
  </ul>
39
40
  </td>
@@ -113,6 +114,14 @@ The `PresetEnvironment` component adds a default lighting setup to the 3D viewpo
113
114
  <PresetEnvironment>
114
115
  ```
115
116
 
117
+ #### Safety
118
+
119
+ The `SafetyZonesRenderer` component visualizes the safety zones of the controller.
120
+
121
+ ```tsx
122
+ <SafetyZonesRenderer safetyZones={activeRobot.safetyZones||[]}/>
123
+ ```
124
+
116
125
 
117
126
  ## Contributing
118
127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -69,14 +69,15 @@
69
69
  "peerDependencies": {
70
70
  "@emotion/react": "^11.11.1",
71
71
  "@emotion/styled": "^11.11.0",
72
- "@mui/material": "^5.13.6",
73
- "@react-spring/three": "^9.7.3",
74
- "@react-three/drei": "^9.105.4",
75
- "@react-three/fiber": ">=8.0",
72
+ "@mui/material": ">=5",
73
+ "@react-spring/three": ">=9",
74
+ "@react-three/drei": ">=9",
75
+ "@react-three/fiber": ">=8",
76
76
  "react": "^18.2.0",
77
77
  "react-dom": "^18.2.0",
78
78
  "three": ">=0.137",
79
- "three-stdlib": "^2.30.4"
79
+ "three-stdlib": ">=2",
80
+ "@wandelbots/wandelbots-js": ">=1"
80
81
  },
81
82
  "peerDependenciesMeta": {
82
83
  "react-dom": {
@@ -86,7 +87,6 @@
86
87
  "dependencies": {
87
88
  "@monaco-editor/react": "^4.6.0",
88
89
  "@shikijs/monaco": "^1.10.1",
89
- "@wandelbots/wandelbots-js": "^1.2.2",
90
90
  "lodash-es": "^4.17.21",
91
91
  "shiki": "^1.10.1"
92
92
  }