@wandelbots/wandelbots-js-react-components 6.3.0 → 6.4.0-pr.chore-public-names.673.cb7ee37

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 (196) hide show
  1. package/README.md +255 -122
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.d.ts +7 -3
  4. package/dist/3d.js +20 -20
  5. package/dist/CurrentPoseBar/index.cjs +1 -0
  6. package/dist/CurrentPoseBar/index.d.ts +2 -0
  7. package/dist/CurrentPoseBar/index.js +5 -0
  8. package/dist/JoggingButtons/index.cjs +1 -0
  9. package/dist/JoggingButtons/index.d.ts +3 -0
  10. package/dist/JoggingButtons/index.js +5 -0
  11. package/dist/JoggingGizmo/index.cjs +1 -0
  12. package/dist/JoggingGizmo/index.d.ts +5 -0
  13. package/dist/JoggingGizmo/index.js +6 -0
  14. package/dist/JoggingJointSlider/index.cjs +1 -0
  15. package/dist/JoggingJointSlider/index.d.ts +2 -0
  16. package/dist/JoggingJointSlider/index.js +5 -0
  17. package/dist/SafetyBar/index.cjs +1 -1
  18. package/dist/SafetyBar/index.js +1 -1
  19. package/dist/chunks/ConnectedMotionGroup-D9JJSyXB.js +1822 -0
  20. package/dist/chunks/ConnectedMotionGroup-ir7Vf690.cjs +3 -0
  21. package/dist/chunks/CurrentPoseBar-Cbz4AO36.cjs +1 -0
  22. package/dist/chunks/CurrentPoseBar-CpwvWpEY.js +619 -0
  23. package/dist/chunks/JoggingButtons-i8FdMpCx.js +108 -0
  24. package/dist/chunks/JoggingButtons-paQCBXf4.cjs +1 -0
  25. package/dist/chunks/JoggingGizmoOrientation-CKZeLcMp.js +893 -0
  26. package/dist/chunks/JoggingGizmoOrientation-EPtBeAun.cjs +1 -0
  27. package/dist/chunks/JoggingJointSlider-DQhJOmcc.js +378 -0
  28. package/dist/chunks/JoggingJointSlider-YcEBMgF1.cjs +1 -0
  29. package/dist/chunks/Pose3-Ci1bxEvz.js +1373 -0
  30. package/dist/chunks/Pose3-DwMOSTKO.cjs +1 -0
  31. package/dist/chunks/SafetyBar-Be1c6Vz9.cjs +1 -0
  32. package/dist/chunks/{SafetyBar-Cy9DiXp9.js → SafetyBar-WXLP3Yi0.js} +34 -32
  33. package/dist/chunks/{externalizeComponent-EDymnaGR.js → externalizeComponent-7OVHUIUh.js} +84 -134
  34. package/dist/chunks/externalizeComponent-B0n_tR3v.cjs +2 -0
  35. package/dist/chunks/holdSafety-Cbej6-Kc.js +62 -0
  36. package/dist/chunks/holdSafety-TeMXlYQe.cjs +1 -0
  37. package/dist/chunks/joggingColors-BKRoSGQu.js +132 -0
  38. package/dist/chunks/joggingColors-BkPm75Hr.cjs +1 -0
  39. package/dist/chunks/json-3cqBD7UQ.js +18 -0
  40. package/dist/chunks/json-Bd6uGfgP.cjs +1 -0
  41. package/dist/chunks/loadRobotSession-Bt1-Brjp.js +3761 -0
  42. package/dist/chunks/loadRobotSession-DHVuK_pj.cjs +1 -0
  43. package/dist/chunks/novaConnection-BTSIgWd1.cjs +1 -0
  44. package/dist/chunks/novaConnection-J6_ohIQ0.js +14 -0
  45. package/dist/chunks/poseText-BXUaQWnK.cjs +1 -0
  46. package/dist/chunks/poseText-CtdXIeT_.js +41 -0
  47. package/dist/chunks/useSmoothedMotionState-C_Vo0py0.js +202 -0
  48. package/dist/chunks/useSmoothedMotionState-Ce9NjwBu.cjs +1 -0
  49. package/dist/components/AppHeader.d.ts +1 -1
  50. package/dist/components/VelocitySlider.d.ts +6 -1
  51. package/dist/components/currentPoseBar/CurrentPoseBar.d.ts +48 -0
  52. package/dist/components/currentPoseBar/OrientationFormatPopover.d.ts +19 -0
  53. package/dist/components/currentPoseBar/StreamStatus.d.ts +10 -0
  54. package/dist/components/currentPoseBar/orientation.d.ts +34 -0
  55. package/dist/components/currentPoseBar/poseValues.d.ts +15 -0
  56. package/dist/components/jogging/JoggingButtons.d.ts +18 -0
  57. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +8 -2
  58. package/dist/components/jogging/JoggingCartesianTab.d.ts +3 -0
  59. package/dist/components/jogging/JoggingJointTab.d.ts +4 -1
  60. package/dist/components/jogging/JoggingJointValueControl.d.ts +7 -1
  61. package/dist/components/jogging/JoggingPanel.d.ts +6 -3
  62. package/dist/components/jogging/JoggingRefusedError.d.ts +24 -0
  63. package/dist/components/jogging/JoggingStore.d.ts +382 -40
  64. package/dist/components/jogging/gizmo/JoggingGizmo.d.ts +53 -0
  65. package/dist/components/jogging/gizmo/JoggingGizmoOrientation.d.ts +26 -0
  66. package/dist/components/jogging/gizmo/RotationHandles.d.ts +7 -0
  67. package/dist/components/jogging/gizmo/RotationScene.d.ts +6 -0
  68. package/dist/components/jogging/gizmo/TranslationHandles.d.ts +6 -0
  69. package/dist/components/jogging/gizmo/TranslationScene.d.ts +6 -0
  70. package/dist/components/jogging/gizmo/arcGrabAreas.d.ts +58 -0
  71. package/dist/components/jogging/gizmo/arcs.d.ts +54 -0
  72. package/dist/components/jogging/gizmo/arrows.d.ts +63 -0
  73. package/dist/components/jogging/gizmo/gizmoShared.d.ts +135 -0
  74. package/dist/components/jogging/gizmo/gizmoView.d.ts +42 -0
  75. package/dist/components/jogging/gizmo/useGizmoTurn.d.ts +11 -0
  76. package/dist/components/jogging/holdSafety.d.ts +82 -0
  77. package/dist/components/jogging/jogError.d.ts +9 -0
  78. package/dist/components/jogging/jogHandle.d.ts +23 -0
  79. package/dist/components/jogging/joggingColors.d.ts +30 -0
  80. package/dist/components/jogging/joggingVelocity.d.ts +21 -0
  81. package/dist/components/jogging/joint/JoggingJointSlider.d.ts +56 -0
  82. package/dist/components/jogging/joint/JointSliderTrack.d.ts +27 -0
  83. package/dist/components/jogging/joint/jointJog.d.ts +55 -0
  84. package/dist/components/jogging/joint/useJointJogHold.d.ts +43 -0
  85. package/dist/components/jogging/useHold.d.ts +42 -0
  86. package/dist/components/jogging/useJogControls.d.ts +44 -0
  87. package/dist/components/robotControl/PanelSelect.d.ts +13 -0
  88. package/dist/components/robotControl/SmallSelect.d.ts +15 -0
  89. package/dist/components/robotControl/poseText.d.ts +43 -0
  90. package/dist/components/robotControl/robotControlTypes.d.ts +36 -0
  91. package/dist/components/robotControl/useCopyText.d.ts +12 -0
  92. package/dist/components/robotControl/useEveryFrame.d.ts +6 -0
  93. package/dist/components/robots/GenericRobot.d.ts +2 -1
  94. package/dist/components/robots/LinearAxis.d.ts +1 -1
  95. package/dist/components/robots/LinearAxisAnimator.d.ts +11 -2
  96. package/dist/components/robots/Robot.d.ts +1 -1
  97. package/dist/components/robots/robotModelLogic.d.ts +11 -9
  98. package/dist/components/utils/converters.d.ts +0 -2
  99. package/dist/components/utils/hooks.d.ts +1 -6
  100. package/dist/components/utils/json.d.ts +4 -0
  101. package/dist/components/utils/useSmoothedMotionState.d.ts +11 -2
  102. package/dist/components/utils/useWebGLRenderer.d.ts +32 -0
  103. package/dist/components/utils/webglSupport.d.ts +11 -0
  104. package/dist/core.cjs +1 -1
  105. package/dist/core.d.ts +28 -20
  106. package/dist/core.js +57 -54
  107. package/dist/index.cjs +1 -1
  108. package/dist/index.js +73 -70
  109. package/dist/lib/ConnectedMotionGroup.d.ts +9 -8
  110. package/dist/lib/ControllerStateStream.d.ts +125 -0
  111. package/dist/lib/JoggerConnection.d.ts +172 -27
  112. package/dist/lib/MotionStreamConnection.d.ts +16 -6
  113. package/dist/lib/Pose3.d.ts +22 -0
  114. package/dist/lib/PoseTransformer.d.ts +44 -0
  115. package/dist/lib/TrajectoryExecutionStore.d.ts +260 -0
  116. package/dist/lib/connectionLogger.d.ts +9 -0
  117. package/dist/lib/controllerStateSource.d.ts +38 -0
  118. package/dist/lib/incrementalCartesianMotion.d.ts +40 -0
  119. package/dist/lib/motionGroupModelResources.d.ts +1 -0
  120. package/dist/lib/motionStateUpdate.d.ts +44 -0
  121. package/dist/lib/nats/natsControllerStateSource.d.ts +27 -0
  122. package/dist/lib/novaConnection.d.ts +23 -0
  123. package/dist/lib/planErrorTranslation.d.ts +8 -0
  124. package/dist/lib/poseMath.d.ts +51 -0
  125. package/dist/lib/robotSession/RobotActivation.d.ts +90 -0
  126. package/dist/lib/robotSession/RobotDescription.d.ts +84 -0
  127. package/dist/lib/robotSession/RobotLiveState.d.ts +65 -0
  128. package/dist/lib/robotSession/RobotLoadProgress.d.ts +72 -0
  129. package/dist/lib/robotSession/RobotSafety.d.ts +59 -0
  130. package/dist/lib/robotSession/RobotSession.d.ts +117 -0
  131. package/dist/lib/robotSession/RobotTargetPose.d.ts +116 -0
  132. package/dist/lib/robotSession/loadRobotResources.d.ts +46 -0
  133. package/dist/lib/robotSession/loadRobotSession.d.ts +81 -0
  134. package/dist/lib/robotSession/robotPose.d.ts +27 -0
  135. package/dist/lib/rotation.d.ts +12 -0
  136. package/dist/nats.cjs +1 -0
  137. package/dist/nats.d.ts +4 -0
  138. package/dist/nats.js +131 -0
  139. package/dist/session.cjs +1 -0
  140. package/dist/session.d.ts +22 -0
  141. package/dist/session.js +33 -0
  142. package/package.json +68 -66
  143. package/dist/Setup.d.ts +0 -11
  144. package/dist/chunks/MotionGroupVisualizer-DshWR1wY.js +0 -1653
  145. package/dist/chunks/MotionGroupVisualizer-eD7yFEcF.cjs +0 -1
  146. package/dist/chunks/SafetyBar-DPrv_OQA.cjs +0 -1
  147. package/dist/chunks/externalizeComponent-OO4jcrz5.cjs +0 -2
  148. package/dist/chunks/theming-DfSy4-Ic.cjs +0 -4
  149. package/dist/chunks/theming-mF9Rt8SS.js +0 -5542
  150. package/dist/chunks/useSmoothedMotionState-DyDgSVYX.js +0 -478
  151. package/dist/chunks/useSmoothedMotionState-VYxEIyfr.cjs +0 -1
  152. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +0 -11
  153. package/dist/components/AdornedTextField.d.ts +0 -7
  154. package/dist/components/CopyableText.d.ts +0 -6
  155. package/dist/components/CycleTimer/CycleTimer.d.ts +0 -3
  156. package/dist/components/CycleTimer/DefaultVariant.d.ts +0 -9
  157. package/dist/components/CycleTimer/SmallVariant.d.ts +0 -10
  158. package/dist/components/CycleTimer/index.d.ts +0 -27
  159. package/dist/components/CycleTimer/types.d.ts +0 -49
  160. package/dist/components/CycleTimer/useAnimations.d.ts +0 -14
  161. package/dist/components/CycleTimer/useTimerLogic.d.ts +0 -24
  162. package/dist/components/CycleTimer/utils.d.ts +0 -21
  163. package/dist/components/CycleTimer.d.ts +0 -3
  164. package/dist/components/DataGrid.d.ts +0 -66
  165. package/dist/components/LogPanel.d.ts +0 -38
  166. package/dist/components/LogStore.d.ts +0 -12
  167. package/dist/components/LogViewer.d.ts +0 -46
  168. package/dist/components/ProgramControl.d.ts +0 -55
  169. package/dist/components/ProgramStateIndicator.d.ts +0 -26
  170. package/dist/components/RobotCard.d.ts +0 -98
  171. package/dist/components/RobotListItem.d.ts +0 -34
  172. package/dist/components/RobotSetupReadinessIndicator.d.ts +0 -37
  173. package/dist/components/SelectableFab.d.ts +0 -7
  174. package/dist/components/TabBar.d.ts +0 -45
  175. package/dist/components/ThemeSelect.d.ts +0 -6
  176. package/dist/components/Timer/Timer.d.ts +0 -3
  177. package/dist/components/Timer/TimerDefaultVariant.d.ts +0 -9
  178. package/dist/components/Timer/TimerSmallVariant.d.ts +0 -10
  179. package/dist/components/Timer/index.d.ts +0 -19
  180. package/dist/components/Timer/types.d.ts +0 -35
  181. package/dist/components/Timer/useTimerAnimations.d.ts +0 -10
  182. package/dist/components/Timer/useTimerLogic.d.ts +0 -19
  183. package/dist/components/Timer/utils.d.ts +0 -17
  184. package/dist/components/Timer.d.ts +0 -3
  185. package/dist/components/TransparentOverlay.d.ts +0 -4
  186. package/dist/components/jogging/JoggingFreedriveTab.d.ts +0 -1
  187. package/dist/components/jogging/PoseCartesianValues.d.ts +0 -9
  188. package/dist/components/jogging/PoseJointValues.d.ts +0 -8
  189. package/dist/components/robots/AxisConfig.d.ts +0 -2
  190. package/dist/components/robots/manufacturerHomePositions.d.ts +0 -20
  191. package/dist/icons/DropdownArrowIcon.d.ts +0 -2
  192. package/dist/icons/index.d.ts +0 -12
  193. package/dist/lib/novaCompat.d.ts +0 -16
  194. package/dist/themes/createDarkTheme.d.ts +0 -7
  195. package/dist/themes/themeTypes.d.ts +0 -40
  196. package/dist/themes/theming.d.ts +0 -24
package/README.md CHANGED
@@ -1,36 +1,57 @@
1
1
  # @wandelbots/wandelbots-js-react-components
2
2
 
3
- [![NPM version](https://img.shields.io/npm/v/@wandelbots/wandelbots-js-react-components.svg)](https://npmjs.org/package/@wandelbots/wandelbots-js-react-components) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@wandelbots/wandelbots-js-react-components)](https://bundlephobia.com/package/@wandelbots/wandelbots-js-react-components) [![Release](https://github.com/wandelbotsgmbh/wandelbots-js-react-components/actions/workflows/release.yml/badge.svg)](https://github.com/wandelbotsgmbh/wandelbots-js-react-components/actions/workflows/release.yml) [![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://wandelbotsgmbh.github.io/wandelbots-js-react-components)
3
+ [![NPM version](https://img.shields.io/npm/v/@wandelbots/wandelbots-js-react-components.svg)](https://npmjs.org/package/@wandelbots/wandelbots-js-react-components) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@wandelbots/wandelbots-js-react-components)](https://bundlephobia.com/package/@wandelbots/wandelbots-js-react-components) [![Release](https://github.com/wandelbotsgmbh/wandelbots-js-react-components/actions/workflows/release.yml/badge.svg)](https://github.com/wandelbotsgmbh/wandelbots-js-react-components/actions/workflows/release.yml)
4
4
 
5
- React UI components for building robotics applications on the [Wandelbots Nova platform](https://www.wandelbots.com/).
5
+ React UI components for robotics applications on the [Wandelbots NOVA platform](https://www.wandelbots.com/).
6
6
 
7
- Built with TypeScript, Material-UI, and React Three Fiber. Provides robot control interfaces, 3D visualizations, and automation components that integrate with the Nova ecosystem.
7
+ The library contains robotics parts (jogging, a 3D view of the robot, the safety state) and the logic that connects them to a NOVA instance. All styles come from the Nova Design System ([`@wandelbots/mui`](https://www.npmjs.com/package/@wandelbots/mui)): the parts use the MUI theme of the app. Built with TypeScript, MUI, React Three Fiber and MobX.
8
8
 
9
- ## Interactive Documentation
10
-
11
- See the [Storybook](https://wandelbotsgmbh.github.io/wandelbots-js-react-components) for interactive examples and API documentation.
9
+ To see the parts on a NOVA instance, start the [playground](#playground).
12
10
 
13
11
  ## Install
14
12
 
15
13
  ```bash
16
- pnpm add @wandelbots/wandelbots-js-react-components react react-dom @mui/material @emotion/react @emotion/styled
14
+ pnpm add @wandelbots/wandelbots-js-react-components \
15
+ react react-dom \
16
+ @mui/material @mui/icons-material @emotion/react @emotion/styled \
17
+ @wandelbots/mui mobx mobx-react-lite
17
18
  ```
18
19
 
19
- Some modules require extra dependencies, like three.js. If you don't need 3D rendering in your application, always import from `/core`.
20
+ The 3D parts need three.js and React Three Fiber in addition. If you don't need 3D rendering in your application, always import from `/core`.
20
21
 
21
22
  ```typescript
22
23
  import {
23
- SafetyBar,
24
24
  JoggingPanel,
25
- DataGrid,
26
- Timer,
25
+ SafetyBar,
27
26
  } from "@wandelbots/wandelbots-js-react-components/core"
28
27
  ```
29
28
 
30
- For 3D-enabled components, use `/3d`:
29
+ For 3D-enabled components, use `/3d`, and add the 3D packages:
31
30
 
32
31
  ```typescript
33
- import { Robot, RobotCard } from "@wandelbots/wandelbots-js-react-components/3d"
32
+ import {
33
+ MotionGroupVisualizer,
34
+ Robot,
35
+ } from "@wandelbots/wandelbots-js-react-components/3d"
36
+ ```
37
+
38
+ ```bash
39
+ pnpm add three three-stdlib @react-three/fiber @react-three/drei
40
+ ```
41
+
42
+ You can also import from the top-level package, but then you'll need to provide all optional dependencies.
43
+
44
+ The parts use the theme of your app. Without the Nova theme they still work, in the default colours of MUI. For the Nova look, create the theme with `createNovaMuiTheme` of `@wandelbots/mui`:
45
+
46
+ ```tsx
47
+ import { ThemeProvider } from "@mui/material/styles"
48
+ import { createNovaMuiTheme } from "@wandelbots/mui"
49
+
50
+ const theme = createNovaMuiTheme()
51
+
52
+ export function App() {
53
+ return <ThemeProvider theme={theme}>{/* your app */}</ThemeProvider>
54
+ }
34
55
  ```
35
56
 
36
57
  For icons, use the dedicated [`@wandelbots/icons`](https://www.npmjs.com/package/@wandelbots/icons) package (the `/wb-icons` entry point has been removed). Each icon is imported from its own subpath — there is no bulk export:
@@ -42,34 +63,137 @@ import { Robot } from "@wandelbots/icons/Robot"
42
63
 
43
64
  Browse the full icon set at https://wandelbotsgmbh.github.io/nova-design-system/#icons
44
65
 
45
- You can also import from the top-level package, but then you'll need to provide all optional dependencies:
66
+ **Available Entry Points:**
46
67
 
47
- ```bash
48
- pnpm add @wandelbots/wandelbots-js-react-components \
49
- react react-dom \
50
- @mui/material @mui/icons-material @emotion/react @emotion/styled \
51
- three @react-three/fiber @react-three/drei three-stdlib
68
+ - **`.`** (Main) — All components. Requires the peer dependencies of `/core` and `/3d`.
69
+ - **`/core`** — The parts without 3D (jogging, `SafetyBar`, `AppHeader`, `LoadingCover`, `NoMotionGroupModal`), the NOVA connections and `JoggingStore`, the motion state helpers and `i18n`. It also exports everything of `/session`.
70
+ - **`/3d`** — The 3D parts (`Robot`, `MotionGroupVisualizer`, `SafetyZonesRenderer`, …). Requires in addition three, three-stdlib, @react-three/fiber and @react-three/drei.
71
+ - **`/session`** (beta) — The library without React: a robot of a NOVA cell, loaded and connected (`loadRobotSession`, `RobotSession` with its description, live state, safety, activation, jogging and Move to), `JoggingStore`, the NOVA connections and the pose math on plain numbers. It loads no React, no MUI and no three.js, and needs only `mobx`.
72
+ - **`/nats`** — A robot's live controller state over NOVA's NATS server (`natsControllerStateSource`, `natsUrlOf`): the `stateSource` of `loadRobotSession` instead of NOVA's websocket. Requires in addition nats.ws; no other entry point loads it.
73
+ - **`/SafetyBar`** — Only `SafetyBar` (also as the default export).
74
+ - **`/JoggingGizmo`** — Only `JoggingGizmo` (also as the default export) and `JoggingGizmoOrientation`. Requires in addition three and @react-three/fiber.
75
+ - **`/JoggingButtons`** — Only `JoggingButtons` (also as the default export). No 3D packages needed.
76
+ - **`/JoggingJointSlider`** — Only `JoggingJointSlider` (also as the default export). No 3D packages needed.
77
+ - **`/CurrentPoseBar`** — Only `CurrentPoseBar` (also as the default export). No 3D packages needed.
78
+
79
+ A component's own entry point brings only what that component needs, e.g. `/JoggingButtons` no three.js and no NOVA client, unlike `/core`. The entry points share their common code, so an app that imports a component from both `/core` and its own entry point gets one copy of it:
80
+
81
+ ```tsx
82
+ import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/JoggingJointSlider"
52
83
  ```
53
84
 
54
- **Available Entry Points:**
85
+ ### The simple parts on their own
86
+
87
+ `JoggingGizmo`, `JoggingButtons`, `JoggingJointSlider`, `CurrentPoseBar` and `SafetyBar` take plain props and report through callbacks: no store, no provider and no i18n setup of the app. The app keeps its own connection to the robot and moves it in `onJogStart` and `onJogStop`. While a control is held the robot moves; it stops when the control is let go, when the pointer leaves it, when the window loses focus or the tab is hidden, on any key, and when the part becomes disabled or unmounts. The keyboard starts no motion.
88
+
89
+ What each one loads, besides `react` and `@mui/material` (checked by `src/test/bare.test.tsx`):
90
+
91
+ | Entry point | Also needs |
92
+ | --- | --- |
93
+ | `/JoggingGizmo` | `three`, `@react-three/fiber`, `@wandelbots/design-tokens` |
94
+ | `/JoggingButtons` | `@wandelbots/mui`, `@wandelbots/icons`, `@wandelbots/design-tokens` |
95
+ | `/JoggingJointSlider` | nothing else |
96
+ | `/CurrentPoseBar` | `@wandelbots/mui`, `@wandelbots/icons` |
97
+ | `/SafetyBar` | `mobx-react-lite`, `axios` |
55
98
 
56
- - **`.`** (Main) — All components. Requires: React 18+, MUI v6/v7, @emotion/react, @emotion/styled, @mui/icons-material + all below.
57
- - **`/core`** — Base components (AppHeader, ProgramControl, SafetyBar, VelocitySlider, JoggingPanel, DataGrid, Timer, themes, i18n, etc.). Requires: React 18+, MUI v6/v7, @emotion/react, @emotion/styled, @mui/icons-material.
58
- - **`/3d`** — 3D visualization (Robot, RobotCard, CollisionSceneRenderer, SafetyZonesRenderer, TrajectoryRenderer). Requires: all from `/core` + three, @react-three/fiber, @react-three/drei, three-stdlib.
99
+ All of them load i18next and react-i18next, which come with the library.
100
+
101
+ ### The robot session (beta)
102
+
103
+ `loadRobotSession` loads one robot of a cell and keeps it connected: its description, its live state, its safety, its activation, jogging and Move to, as MobX stores. It is **beta** in 7.x: the props and callbacks of the parts are the stable promise, while the classes of `/session` may still change in a minor version. An app that builds on them pins the minor version. An app that owns its robot connection does not need a session: the simple parts take plain props.
104
+
105
+ ### Without three.js or without React
106
+
107
+ - **An app without a 3D view** needs no three.js. It takes the robot from `/session` and its parts from the component entry points that draw nothing in 3D: `/CurrentPoseBar`, `/SafetyBar`, `/JoggingButtons` and `/JoggingJointSlider`.
108
+ - **`/core` needs three.js installed**, although it draws nothing in 3D: `ConnectedMotionGroup`, which it exports, gives a three.js quaternion (`mountingQuaternion`).
109
+ - **An app without React**, or with a UI of its own, uses `/session` alone (and `/nats`). Of the peer dependencies it needs only `mobx` (see [Peer dependencies](#peer-dependencies)). The parts of a session are MobX stores: such an app follows them with `autorun` or `reaction` of MobX. What it calls returns a promise that rejects when it fails (a jog that may not start rejects with a `JoggingRefusedError`), and what fails in the background goes to `onError`.
110
+
111
+ ```typescript
112
+ import { autorun } from "mobx"
113
+ import { loadRobotSession } from "@wandelbots/wandelbots-js-react-components/session"
114
+
115
+ const load = loadRobotSession("https://my-instance.wandelbots.io", "0@ur5e", {
116
+ onError: (error) => console.warn(error.kind, error.message),
117
+ })
118
+ // Rejects when the load fails; load.retry() loads again
119
+ const session = await load.ready
120
+
121
+ const stopFollowing = autorun(() => {
122
+ console.log(session.safety.canBeMoved, session.state.displayedTcpPose)
123
+ })
124
+
125
+ // Jog along X while a key of the app's own UI is held
126
+ await session.activation.activate()
127
+ await session.jogging.startCartesianJogging("translate", "x", "+")
128
+ // … and when it is let go
129
+ await session.jogging.stopJogging()
130
+
131
+ stopFollowing()
132
+ load.dispose()
133
+ ```
134
+
135
+ ### Peer dependencies
136
+
137
+ | Package | Version | Needed by |
138
+ | --- | --- | --- |
139
+ | `mobx` | ^6.13.6 | Every entry point |
140
+ | `react`, `react-dom` | ^19 | Every entry point with UI: all but `/session` and `/nats` |
141
+ | `@mui/material`, `@mui/icons-material` | ^7 | Every entry point with UI |
142
+ | `@emotion/react`, `@emotion/styled` | ^11 | Every entry point with UI |
143
+ | `@wandelbots/mui` | ^2 | Every entry point with UI (each simple part's needs are in [The simple parts on their own](#the-simple-parts-on-their-own)) |
144
+ | `mobx-react-lite` | ^4.1.0 | Every entry point with UI |
145
+ | `three` | >=0.182 | `.`, `/3d`, `/JoggingGizmo`, and `/core` (`ConnectedMotionGroup`) |
146
+ | `@react-three/fiber` | ^9 | `.`, `/3d`, `/JoggingGizmo` |
147
+ | `three-stdlib` | >=2 | `.`, `/3d` |
148
+ | `@react-three/drei` | ^10 | `.`, `/3d` |
149
+ | `nats.ws` | ^1.30.3 | `/nats` |
150
+
151
+ Only `mobx` is a required peer. The others are optional in `package.json`, so an app installs those of the entry points it imports: an app that takes only `/session` (and `/nats`) installs `mobx` (and `nats.ws`), and no React, MUI or three.js.
152
+
153
+ These packages are peer dependencies because the app and the library must use the same copy: React, the MUI theme of the app, the MobX stores that the app reads with its own `observer`, and the `<Canvas>` of React Three Fiber.
154
+
155
+ `@wandelbots/nova-js` is a normal dependency with an exact version: the library has its own copy, see [Connecting to NOVA](#connecting-to-nova).
59
156
 
60
157
  ## Migration & Breaking Changes
61
158
 
62
- Breaking changes for each major version are documented in the [GitHub Releases](https://github.com/wandelbotsgmbh/wandelbots-js-react-components/releases).
159
+ ### From 6.x to 7.0.0
63
160
 
64
- ## 4.x Core Changes
161
+ 7.0.0 keeps only the robotics parts and the logic that connects them to NOVA. All styles come from the Nova Design System.
162
+
163
+ **Removed exports.** A removed component also takes its `…Props` type with it.
164
+
165
+ | Removed in 7.0.0 | Use instead |
166
+ | --- | --- |
167
+ | `createNovaTheme`, `createNovaMuiTheme` | `createNovaMuiTheme` of `@wandelbots/mui` (same name). The parts use the theme of the app. |
168
+ | The `componentsExt` extension of the MUI types `Theme` and `ThemeOptions` | No replacement. The jogging parts have their colors built in. `JoggingCartesianAxisControl` keeps its `colors` prop. |
169
+ | `AdornedTextField` | `AdornedTextField` of `@wandelbots/mui` |
170
+ | `SelectableFab` | No replacement |
171
+ | `useAnimationFrame`, `useAutorun`, `useMounted`, `useReaction` | No replacement |
172
+ | `PoseCartesianValues`, `PoseJointValues` | No replacement in 7.0.0. Copy them from 6.3.0 until a 7.x version has a replacement. |
173
+ | `MANUFACTURER_HOME_CONFIGS`, `getDefaultHomeConfig`, `extractManufacturer` | `nova.api.motionGroupModels.getMotionGroupHomejoints(model)` of `@wandelbots/nova-js`: the home joints of a motion group model, from the NOVA instance |
174
+ | `AxisConfig`, `defaultAxisConfig` | No replacement |
175
+ | `ProgramControl`, `ProgramState`, `ProgramStateIndicator`, `Timer`, `TimerControls`, `CycleTimer`, `CycleTimerControls`, `CycleTimerState`, `RobotCard`, `RobotListItem`, `RobotSetupReadinessIndicator`, `RobotSetupReadinessState`, `TabBar`, `TabItem`, `WandelbotsDataGrid`, `LogPanel`, `LogViewer`, `LogStore`, `LogLevel`, `LogMessage`, `createLogMessage`, `createInfoMessage`, `createWarningMessage`, `createErrorMessage`, `createDebugMessage` | No replacement. Copy them from 6.3.0 if your app needs them. |
176
+
177
+ **Other changes:**
178
+
179
+ - **Peer dependencies** (see [Peer dependencies](#peer-dependencies)): React 19, MUI 7, `@react-three/fiber` 9 and `@react-three/drei` 10. New peers: `@wandelbots/mui` ^2 (an app with `@wandelbots/mui` 1.x must update it), `mobx` ^6.13.6 and `mobx-react-lite` ^4.1.0.
180
+ - **nova-js:** `@wandelbots/nova-js` 4.13.0 is a normal dependency with an exact version. The library creates its own NOVA client: from the client of the app (it reads only the URL and the access token), or from a URL string. The type of this parameter is `NovaConnection`. The calls of your app stay the same, also with another nova-js version in the app. `ConnectedMotionGroup`, `MotionStreamConnection` and `JoggerConnection` have no public `nova` field any more: use the client of your app.
181
+ - **`defaultGetModel(model, connection?)`:** the second parameter is a `NovaConnection`. A URL string works as before; a NOVA client also gives the access token. `Robot` and `LinearAxis` without `getModel` download the model with the connection of their `ConnectedMotionGroup`.
182
+ - **Model download without the token:** in an app that its NOVA instance does not serve (for example in local development with an access token), `MotionGroupVisualizer`, `SupportedRobot` and `SupportedLinearAxis` download the model without the token. Give them a `getModel` that uses the client of your app, `(model) => defaultGetModel(model, nova)` (as the playground does), or put the token into `localStorage["wbjs.access_token"]`.
183
+ - **Jogging:** a press of a jog button that ends before NOVA confirms the jogging connection (about 0.1 to 0.5 s) moves nothing. Before, such a press could move the robot briefly.
184
+ - **Websockets:** `JoggerConnection.dispose()` also closes the motion stream that `JoggerConnection.open()` opened (a motion stream that you give to the constructor stays open). `ConnectedMotionGroup.dispose()` also closes the websocket of the controller state.
185
+ - **Look:** `AppHeader` and `LoadingCover` use the styles of the design system, so they look a little different.
186
+ - **Release asset:** `no-draco-models.zip` is gone. The models come from the NOVA API (since 4.0.0).
187
+
188
+ ### 4.x Core Changes
65
189
 
66
190
  Robot data is now fetched from a running nova instance. This eliminates the need of shipping every react application with the robot data attached.
67
191
 
68
- It is still possible to fetch robot data from local files. (See https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/3d-view-robot-robot--docs)
192
+ It is still possible to load robot models from other files: give `Robot`, `SupportedRobot`, `MotionGroupVisualizer` or `LinearAxis` a `getModel` function that returns a promise of the URL of the model file.
69
193
 
70
- The `wandelbots-js-react-components` library can be used both with and without a Nova connection. For details on connecting to a Nova instance, see the [Robot Model Testing](#robot-model-testing) section below.
194
+ The `wandelbots-js-react-components` library can be used both with and without a Nova connection. For details on connecting to a Nova instance, see [Connecting to NOVA](#connecting-to-nova).
71
195
 
72
- The list of available robots will now be automatically updated along with the nova version. There is no more need to update nova apps whenether there is a new supported robot the app wants to feature.
196
+ The list of available robots will now be automatically updated along with the nova version. There is no more need to update nova apps whenever there is a new supported robot the app wants to feature.
73
197
 
74
198
  Robot dh-parameters are now using a new format.
75
199
 
@@ -83,112 +207,95 @@ interface DHParameter {
83
207
  }
84
208
  ```
85
209
 
210
+ ### Other versions
211
+
212
+ Breaking changes for each major version are documented in the [GitHub Releases](https://github.com/wandelbotsgmbh/wandelbots-js-react-components/releases).
213
+
86
214
  ## Components
87
215
 
88
216
  ### Robot Control & Jogging
89
217
 
90
218
  Manual robot control interfaces.
91
219
 
92
- **[JoggingPanel](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-joggingpanel--docs)** - Complete jogging interface with cartesian and joint controls
220
+ **JoggingPanel** - Complete jogging interface with cartesian and joint controls
93
221
 
94
222
  - Dual-mode operation (Cartesian & Joint space)
95
223
  - Real-time velocity control
96
224
  - Multiple coordinate systems support (Robot base or Tool)
97
225
 
98
- **Individual Jogging Controls**
99
-
100
- - **[JoggingCartesianAxisControl](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-joggingcartesianaxiscontrol--docs)** - Single-axis cartesian movement
101
- - **[JoggingJointValueControl](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-JoggingJointValueControl--docs)** - Individual joint controls
102
- - **[VelocitySlider](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-velocityslider--docs)** - Speed adjustment interface
103
-
104
- ### Program Execution
226
+ **Simple jogging parts** (plain props and callbacks, see [The simple parts on their own](#the-simple-parts-on-their-own))
105
227
 
106
- Program control and monitoring components.
228
+ - **JoggingGizmo** - Handles in 3D to move the TCP along or turn it about the X, Y and Z axes
229
+ - **JoggingButtons** - A minus and a plus button per axis
230
+ - **JoggingJointSlider** - A joint on its range between its limits: hold a point to move the joint toward it
231
+ - **CurrentPoseBar** - The current pose of the TCP, its TCP and coordinate system, and the orientation format
107
232
 
108
- **[ProgramControl](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/components-programcontrol--docs)** - Program lifecycle management
233
+ **Individual Jogging Controls**
109
234
 
110
- - Play, pause, stop functionality
111
- - State machine integration
112
- - Manual reset capabilities
235
+ - **JoggingCartesianAxisControl** - Single-axis cartesian movement
236
+ - **JoggingJointValueControl** - Individual joint controls
237
+ - **VelocitySlider** (and **VelocitySliderLabel**) - Speed adjustment interface
238
+ - **JoggingStore** - The state of the jogging (velocity, coordinate system, the jogging connection). `JoggingPanel` gives it to `onSetup`, and `JoggingStore.loadFor` creates one for your own controls.
113
239
 
114
- **[ProgramStateIndicator](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/components-programstateindicator--docs)** - Visual program status
240
+ ### 3D Visualization & Robotics
115
241
 
116
- - Live execution state monitoring
117
- - Error state visualization
242
+ 3D components for robot visualization. They render inside the `<Canvas>` of React Three Fiber.
118
243
 
119
- ### 3D Visualization & Robotics
244
+ **Robot** - Real-time 3D robot rendering
120
245
 
121
- 3D components for robot visualization.
246
+ - Live pose updates from a `ConnectedMotionGroup`
247
+ - The model of the motion group from the NOVA instance (`defaultGetModel`)
122
248
 
123
- **[Robot](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/3d-view-robot--docs)** - Real-time 3D robot rendering
249
+ **LinearAxis** - The same for a linear axis
124
250
 
125
- - Live pose updates from motion groups
126
- - Extensive robot model support from major manufacturers
127
- - [Supported Models](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/story/3d-view-robot-supported-models--abb-1010-037-15) - ABB, FANUC, KUKA, Universal Robots, Yaskawa (100+ models)
128
- - Automatic model loading from CDN
251
+ **SupportedRobot**, **SupportedLinearAxis** and **MotionGroupVisualizer** - The same without a `ConnectedMotionGroup`: they take a motion state, the model name and the DH parameters. `MotionGroupVisualizer` picks the robot or the linear axis. The `…Exact` variants show the pose without smoothing.
129
252
 
130
- **[SafetyZonesRenderer](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/3d-view-safetyzonesrenderer--docs)** - 3D safety visualization
253
+ **SafetyZonesRenderer** - 3D safety visualization
131
254
 
132
255
  - Real-time safety zone rendering
133
256
  - Visual collision boundaries
134
257
 
135
- **[TrajectoryRenderer](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/3d-view-trajectoryrenderer--docs)** - Motion path visualization
258
+ **CollisionSceneRenderer** - The colliders of a collision setup
259
+
260
+ **TrajectoryRenderer** - Motion path visualization
136
261
 
137
262
  - Real-time trajectory display
138
263
  - Path planning visualization
139
264
 
265
+ **JointLimitGizmo** - The joint axes of a robot and their position ranges (the joint limits)
266
+
267
+ **PresetEnvironment** - Lights and an environment for the 3D scene
268
+
140
269
  ### Safety & Monitoring
141
270
 
142
271
  Safety components for production environments.
143
272
 
144
- **[SafetyBar](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/safety-safetybar--docs)** - Centralized safety status
273
+ **SafetyBar** - Centralized safety status
145
274
 
146
275
  - Real-time safety monitoring
147
276
  - Emergency stop integration
148
277
 
149
- ### Data & Interface Components
150
-
151
- UI components for data display and user interaction.
152
-
153
- **Data Components**
154
-
155
- - **[DataGrid](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/components-datagrid--docs)** - Data tables with robotics data formatting
156
- - **[LogPanel](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/components-logpanel--docs)** - Real-time log display and filtering
157
- - **[CycleTimer](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/components-cycletimer--docs)** - Production cycle timing and metrics
158
-
159
- **Robot Management**
160
-
161
- - **[RobotCard](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/components-robotcard--docs)** - Robot overview cards with status
162
- - **[RobotListItem](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/components-robotlistitem--docs)** - List view for multiple robots
163
- - **[RobotSetupReadinessIndicator](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/components-robotsetupreadinessindicator--docs)** - Setup validation status
164
-
165
- **Navigation**
166
-
167
- - **[AppHeader](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/navigation-appheader--docs)** - Application header with branding
168
- - **[TabBar](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/navigation-tabbar--docs)** - Multi-section navigation
169
-
170
- ### Theming & Styling
278
+ ### App Frame
171
279
 
172
- Styling system for consistent robotics applications.
280
+ - **AppHeader** - Application header with an app menu
281
+ - **LoadingCover** (and **LoadingErrorMessage**) - A loading screen, with the error when the loading fails
282
+ - **NoMotionGroupModal** - A modal for a cell without a motion group
173
283
 
174
- **[Theming components](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/theming-theming-components--docs)** - Interactive theming examples
284
+ ### Logic
175
285
 
176
- - Component theming demonstrations
177
- - Customization patterns
178
-
179
- **[Wandelbots MUI Theme](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/theming-wandelbots-mui-theme--docs)** - Material-UI theme
180
-
181
- - Dark/light mode support
182
- - Robotics-specific color schemes
183
- - Material Design integration
286
+ - **ConnectedMotionGroup** - A motion group with its live motion state, safety state and operation mode
287
+ - **MotionStreamConnection** and **JoggerConnection** - The motion state stream and the jogging connection of a motion group
288
+ - **jointValuesEqual**, **poseEqual**, **tcpMotionEqual**, **unwrapRotationVector** - Helpers for the motion state
289
+ - **ValueInterpolator**, **useInterpolation**, **useSmoothedMotionState** - Smooth joint values for the 3D view
290
+ - **i18n** - The translations of the library
184
291
 
185
292
  ## Architecture & Integration
186
293
 
187
- ### Nova Platform Integration
294
+ ### Connecting to NOVA
188
295
 
189
296
  Components integrate with the Wandelbots Nova ecosystem:
190
297
 
191
- - **NovaClient Integration** - Components accept either `Nova` instances or URL strings
298
+ - **NovaConnection** - Where the library connects to NOVA (`nova` of `JoggingPanel`, `ConnectedMotionGroup.connect`, `MotionStreamConnection.open`, `JoggerConnection.open`, `defaultGetModel`), it takes a `NovaConnection`: the URL of the instance, or the NOVA client of the app (`Nova` of `@wandelbots/nova-js`, of any version). The library reads only the URL and the access token of the client, and connects with its own client (nova-js 4.13.0). So the app configures the connection in one place.
192
299
  - **Real-time Updates** - WebSocket connections for live robot state updates
193
300
  - **Motion Group Management** - Direct integration with `ConnectedMotionGroup` objects
194
301
  - **State Synchronization** - Automatic state management with MobX reactivity
@@ -196,30 +303,11 @@ Components integrate with the Wandelbots Nova ecosystem:
196
303
  ### Technical Foundation
197
304
 
198
305
  - **TypeScript** - Full type safety and enhanced developer experience
199
- - **Material-UI v6/v7** - Professional design system and theming
306
+ - **MUI 7 and the Nova Design System** - The theme of the app, from `@wandelbots/mui`
200
307
  - **React Three Fiber** - High-performance 3D rendering for robotics visualization
201
308
  - **MobX** - Reactive state management for real-time updates
202
309
  - **i18next** - Internationalization support for global deployment
203
310
 
204
- ## Installation & Setup
205
-
206
- ### Prerequisites
207
-
208
- **Required for all entry points:**
209
-
210
- - React 18+ or 19+
211
- - Material-UI v6 or v7
212
- - @emotion/react and @emotion/styled
213
-
214
- ### Additional Peer Dependencies
215
-
216
- **For `/3d` (3D visualization components):**
217
-
218
- - three
219
- - @react-three/fiber
220
- - @react-three/drei
221
- - three-stdlib
222
-
223
311
  ## Development
224
312
 
225
313
  To set up the project for development:
@@ -228,22 +316,16 @@ To set up the project for development:
228
316
  git clone https://github.com/wandelbotsgmbh/wandelbots-js-react-components.git
229
317
  cd wandelbots-js-react-components
230
318
  pnpm install
231
- pnpm dev # Start Storybook development server
232
319
  ```
233
320
 
234
- ## Robot Model Testing
321
+ ### A NOVA instance
235
322
 
236
- View Robot Models in web view:
323
+ The playground and the e2e tests need a real NOVA instance. They read it from:
237
324
 
238
- ```bash
239
- git clone https://github.com/wandelbotsgmbh/wandelbots-js-react-components.git
240
- cd wandelbots-js-react-components
241
- pnpm install
242
- pnpm td <instanceProviderURL> # instanceProviderURL can be provided via an instanceProviderConfig.json file. The entire command can be substituted by writing a nova instance ip into a file named .env.local
243
- pnpm dev # Start Storybook development server
244
- ```
325
+ - `NOVA_INSTANCE_URL`, and `NOVA_ACCESS_TOKEN` for a cloud instance, or
326
+ - `WANDELAPI_BASE_URL` in `.env.local`.
245
327
 
246
- instanceProviderConfig.json file:
328
+ `pnpm td <instanceProviderURL>` reserves a test instance for 12 hours and writes it into `.env.local`. Its cell `cell` gets a virtual UR5e. The instance provider URL can also come from an `instanceProviderConfig.json` file:
247
329
 
248
330
  ```
249
331
  {
@@ -255,9 +337,60 @@ instanceProviderConfig.json file:
255
337
 
256
338
  ```
257
339
  WANDELAPI_BASE_URL=http://<instance-ip>
258
- CELL_ID=cell
259
340
  ```
260
341
 
342
+ ### Playground
343
+
344
+ The playground (`playground/`) is a small Vite app that shows the parts of the library on a NOVA instance. It has no mock data. It imports the library from `src/`, so a change shows at once. It is not part of the npm package.
345
+
346
+ ```bash
347
+ pnpm playground # dev server on http://localhost:5180
348
+ pnpm playground:build # builds playground/dist
349
+ pnpm playground:preview # serves playground/dist on http://localhost:4180
350
+ ```
351
+
352
+ Vite reads these values when it starts (see [A NOVA instance](#a-nova-instance)). `CELL_ID` in the environment selects the cell (default `cell`). The cell needs a robot: without a motion group, the playground shows `NoMotionGroupModal`.
353
+
354
+ The pages are Jogging, Joint limits, Safety and collisions, Robot models and Building blocks. Each page combines parts that work together. The app menu of the `AppHeader` switches the pages, and the URL selects the page and the motion group, for example `?page=jogging&motionGroup=0@ur5e`. The dev server uses React StrictMode, so a part that leaves a connection open shows up.
355
+
356
+ The built playground contains the URL and the access token of the instance: never publish or upload `playground/dist`.
357
+
358
+ ### Tests
359
+
360
+ ```bash
361
+ pnpm test:unit # unit tests in src/ (vitest, jsdom), in watch mode
362
+ pnpm test:unit:run # the same, one run (the check "test" of each pull request)
363
+ pnpm test:consumer # builds the package and imports it as an app does
364
+ pnpm test:e2e # against a NOVA instance, see "e2e Tests"
365
+ pnpm test:playground # against a NOVA instance, see "e2e Tests"
366
+ ```
367
+
368
+ `pnpm api:check` compares the public API with the reports in `etc/api-extractor/`. After an intended change of the public API, `pnpm api:update` writes the reports again; commit them with the change. [etc/public-names.md](etc/public-names.md) lists every public name and why it is public (`pnpm api:names` writes it).
369
+
370
+ ### e2e Tests
371
+
372
+ The e2e tests run against a real NOVA instance. There are two kinds:
373
+
374
+ - The vitest tests in `e2e/` test the NOVA connections of the library (motion state, jogging), without a browser.
375
+ - The Playwright tests in `e2e/playground/` test the playground app in Chromium. First they add a virtual robot with 2 safety zones and a stored collision setup to the cell. Then they open each page of the playground, jog the robot, check the values, the 3D view and the safety bar, and take screenshots. At the end, they remove the robot and the collision setup again.
376
+
377
+ Both kinds use the same instance values:
378
+
379
+ - `NOVA_INSTANCE_URL`, and `NOVA_ACCESS_TOKEN` for a cloud instance, or
380
+ - `WANDELAPI_BASE_URL` in `.env.local`, which `pnpm td` writes for a test instance (see above).
381
+
382
+ Without an instance, the tests fail. To run them on your computer:
383
+
384
+ ```bash
385
+ pnpm exec playwright install chromium # once, for the Playwright tests
386
+ pnpm run test:e2e # vitest
387
+ pnpm run test:playground # builds the playground, then runs Playwright
388
+ ```
389
+
390
+ The built playground (`playground/dist`) contains the URL and the access token of the instance, so `test:playground` builds it again each time. Never publish or upload it. The browser calls the instance through the server of the playground, which forwards `/api` to the instance, so a cloud instance works too (it does not allow requests from another origin). The results and the screenshots of the Playwright tests are in `e2e-results/`.
391
+
392
+ For each pull request, the workflow `e2e` creates a NOVA cloud instance with the newest released NOVA version, runs both kinds of tests, and deletes the instance again. The results are in the artifact `e2e-results` of the run: the output and the reports of the tests, the screenshots of the playground (`screenshots/`), and the state of the instance after the tests. The summary of the job lists the tests and the screenshots.
393
+
261
394
  ### Local Testing
262
395
 
263
396
  Build and test the package locally:
@@ -272,7 +405,7 @@ pnpm add /path/to/wandelbots-wandelbots-js-react-components-x.x.x.tgz
272
405
 
273
406
  ## Contributing
274
407
 
275
- We welcome contributions! Please see our contributing guidelines and feel free to submit issues and pull requests.
408
+ We welcome contributions! Please see our contributing guidelines and feel free to submit issues and pull requests. The checks before a pull request and the rules for commit messages are in [AGENTS.md](AGENTS.md).
276
409
 
277
410
  ## License
278
411
 
@@ -280,4 +413,4 @@ This project is licensed under the terms specified in the LICENSE file.
280
413
 
281
414
  ---
282
415
 
283
- [Explore the Storybook](https://wandelbotsgmbh.github.io/wandelbots-js-react-components) • [Visit Wandelbots.com](https://www.wandelbots.com/)
416
+ [Visit Wandelbots.com](https://www.wandelbots.com/)
package/dist/3d.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/MotionGroupVisualizer-eD7yFEcF.cjs"),o=require("./chunks/useSmoothedMotionState-VYxEIyfr.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.JointLimitGizmo=e.JointLimitGizmo;exports.LinearAxis=e.LinearAxis;exports.MANUFACTURER_HOME_CONFIGS=e.MANUFACTURER_HOME_CONFIGS;exports.MotionGroupVisualizer=e.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=e.MotionGroupVisualizerExact;exports.PresetEnvironment=e.PresetEnvironment;exports.Robot=e.Robot;exports.RobotCard=e.RobotCard;exports.SafetyZonesRenderer=e.SafetyZonesRenderer;exports.SupportedLinearAxis=e.SupportedLinearAxis;exports.SupportedLinearAxisExact=e.SupportedLinearAxisExact;exports.SupportedRobot=e.SupportedRobot;exports.SupportedRobotExact=e.SupportedRobotExact;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.defaultAxisConfig=e.defaultAxisConfig;exports.defaultGetModel=e.defaultGetModel;exports.extractManufacturer=e.extractManufacturer;exports.getDefaultHomeConfig=e.getDefaultHomeConfig;exports.ValueInterpolator=o.ValueInterpolator;exports.useSmoothedMotionState=o.useSmoothedMotionState;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./chunks/Pose3-DwMOSTKO.cjs"),e=require("./chunks/JoggingGizmoOrientation-EPtBeAun.cjs"),t=require("./chunks/useSmoothedMotionState-Ce9NjwBu.cjs");exports.CollisionSceneRenderer=o.CollisionSceneRenderer;exports.JointLimitGizmo=o.JointLimitGizmo;exports.LinearAxis=o.LinearAxis;exports.MotionGroupVisualizer=o.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=o.MotionGroupVisualizerExact;exports.Pose3=o.Pose3;exports.PresetEnvironment=o.PresetEnvironment;exports.Robot=o.Robot;exports.SafetyZonesRenderer=o.SafetyZonesRenderer;exports.SupportedLinearAxis=o.SupportedLinearAxis;exports.SupportedLinearAxisExact=o.SupportedLinearAxisExact;exports.SupportedRobot=o.SupportedRobot;exports.SupportedRobotExact=o.SupportedRobotExact;exports.TrajectoryRenderer=o.TrajectoryRenderer;exports.defaultGetModel=o.defaultGetModel;exports.parseRotationToQuaternion=o.parseRotationToQuaternion;exports.JoggingGizmo=e.JoggingGizmo;exports.JoggingGizmoOrientation=e.JoggingGizmoOrientation;exports.ValueInterpolator=t.ValueInterpolator;exports.useSmoothedMotionState=t.useSmoothedMotionState;
package/dist/3d.d.ts CHANGED
@@ -3,10 +3,12 @@ export { JointLimitGizmo, type GizmoChainOffset, type GizmoDhParameter, type Giz
3
3
  export * from "./components/3d-viewport/PresetEnvironment";
4
4
  export * from "./components/3d-viewport/SafetyZonesRenderer";
5
5
  export * from "./components/3d-viewport/TrajectoryRenderer";
6
- export * from "./components/RobotCard";
7
- export * from "./components/robots/AxisConfig";
6
+ export { JoggingGizmo, type JoggingGizmoProps, } from "./components/jogging/gizmo/JoggingGizmo";
7
+ export { JoggingGizmoOrientation, type JoggingGizmoOrientationProps, } from "./components/jogging/gizmo/JoggingGizmoOrientation";
8
+ export type { JogAxis, JogDirection, JogHandle, } from "./components/jogging/jogHandle";
9
+ export type { JogControlsProps } from "./components/jogging/useJogControls";
10
+ export type { WebGLUnavailableContext } from "./components/utils/useWebGLRenderer";
8
11
  export * from "./components/robots/LinearAxis";
9
- export { extractManufacturer, getDefaultHomeConfig, MANUFACTURER_HOME_CONFIGS, } from "./components/robots/manufacturerHomePositions";
10
12
  export * from "./components/robots/MotionGroupVisualizer";
11
13
  export * from "./components/robots/Robot";
12
14
  export { defaultGetModel } from "./components/robots/robotModelLogic";
@@ -14,3 +16,5 @@ export * from "./components/robots/SupportedLinearAxis";
14
16
  export * from "./components/robots/SupportedRobot";
15
17
  export { ValueInterpolator, type InterpolationOptions, } from "./components/utils/interpolation";
16
18
  export * from "./components/utils/useSmoothedMotionState";
19
+ export { Pose3 } from "./lib/Pose3";
20
+ export { parseRotationToQuaternion } from "./lib/rotation";
package/dist/3d.js CHANGED
@@ -1,25 +1,25 @@
1
- import { C as o, J as t, L as r, M as s, a as i, b as n, P as u, R as d, c as p, S as f, d as l, e as x, f as R, g as S, T as c, h as M, i as m, j as C, k as A } from "./chunks/MotionGroupVisualizer-DshWR1wY.js";
2
- import { V as b, g } from "./chunks/useSmoothedMotionState-DyDgSVYX.js";
1
+ import { C as a, J as t, L as r, M as s, a as i, P as n, b as p, R as u, S as d, c as m, d as x, e as S, f as l, T as R, g, p as c } from "./chunks/Pose3-Ci1bxEvz.js";
2
+ import { J as G, a as z } from "./chunks/JoggingGizmoOrientation-CKZeLcMp.js";
3
+ import { V as L, a as M } from "./chunks/useSmoothedMotionState-C_Vo0py0.js";
3
4
  export {
4
- o as CollisionSceneRenderer,
5
+ a as CollisionSceneRenderer,
6
+ G as JoggingGizmo,
7
+ z as JoggingGizmoOrientation,
5
8
  t as JointLimitGizmo,
6
9
  r as LinearAxis,
7
- s as MANUFACTURER_HOME_CONFIGS,
8
- i as MotionGroupVisualizer,
9
- n as MotionGroupVisualizerExact,
10
- u as PresetEnvironment,
11
- d as Robot,
12
- p as RobotCard,
13
- f as SafetyZonesRenderer,
14
- l as SupportedLinearAxis,
10
+ s as MotionGroupVisualizer,
11
+ i as MotionGroupVisualizerExact,
12
+ n as Pose3,
13
+ p as PresetEnvironment,
14
+ u as Robot,
15
+ d as SafetyZonesRenderer,
16
+ m as SupportedLinearAxis,
15
17
  x as SupportedLinearAxisExact,
16
- R as SupportedRobot,
17
- S as SupportedRobotExact,
18
- c as TrajectoryRenderer,
19
- b as ValueInterpolator,
20
- M as defaultAxisConfig,
21
- m as defaultGetModel,
22
- C as extractManufacturer,
23
- A as getDefaultHomeConfig,
24
- g as useSmoothedMotionState
18
+ S as SupportedRobot,
19
+ l as SupportedRobotExact,
20
+ R as TrajectoryRenderer,
21
+ L as ValueInterpolator,
22
+ g as defaultGetModel,
23
+ c as parseRotationToQuaternion,
24
+ M as useSmoothedMotionState
25
25
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPoseBar-Cbz4AO36.cjs");exports.CurrentPoseBar=e.CurrentPoseBar;exports.default=e.CurrentPoseBar;
@@ -0,0 +1,2 @@
1
+ export { CurrentPoseBar, CurrentPoseBar as default, type CurrentPoseBarProps, type CurrentPoseBarState, type EulerConvention, type OrientationFormat, } from "../components/currentPoseBar/CurrentPoseBar";
2
+ export type { RobotControlOption, RobotControlPose, RobotControlSelect, } from "../components/robotControl/robotControlTypes";
@@ -0,0 +1,5 @@
1
+ import { C as e, C as o } from "../chunks/CurrentPoseBar-CpwvWpEY.js";
2
+ export {
3
+ e as CurrentPoseBar,
4
+ o as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../chunks/JoggingButtons-paQCBXf4.cjs");exports.JoggingButtons=t.JoggingButtons;exports.default=t.JoggingButtons;
@@ -0,0 +1,3 @@
1
+ export { JoggingButtons, JoggingButtons as default, type JoggingButtonsProps, } from "../components/jogging/JoggingButtons";
2
+ export type { JogAxis, JogDirection, JogHandle, } from "../components/jogging/jogHandle";
3
+ export type { JogControlsProps } from "../components/jogging/useJogControls";
@@ -0,0 +1,5 @@
1
+ import { J as a, J as g } from "../chunks/JoggingButtons-i8FdMpCx.js";
2
+ export {
3
+ a as JoggingButtons,
4
+ g as default
5
+ };