@wandelbots/wandelbots-js-react-components 3.0.0 → 3.1.0-pr.feat-more-robots-v2.410.697afdb

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 (109) hide show
  1. package/README.md +1 -1
  2. package/dist/auth0-spa-js.production.esm-1QXzndwB.js +950 -0
  3. package/dist/auth0-spa-js.production.esm-1QXzndwB.js.map +1 -0
  4. package/dist/auth0-spa-js.production.esm-BLRAk7Yh.cjs +5 -0
  5. package/dist/auth0-spa-js.production.esm-BLRAk7Yh.cjs.map +1 -0
  6. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +1 -1
  7. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts.map +1 -1
  8. package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -1
  9. package/dist/components/3d-viewport/collider/ColliderCollection.d.ts +1 -1
  10. package/dist/components/3d-viewport/collider/ColliderCollection.d.ts.map +1 -1
  11. package/dist/components/3d-viewport/collider/ColliderElement.d.ts +1 -1
  12. package/dist/components/3d-viewport/collider/ColliderElement.d.ts.map +1 -1
  13. package/dist/components/3d-viewport/collider/CollisionSceneRenderer.d.ts +1 -1
  14. package/dist/components/3d-viewport/collider/CollisionSceneRenderer.d.ts.map +1 -1
  15. package/dist/components/3d-viewport/collider/colliderShapeToBufferGeometry.d.ts +1 -1
  16. package/dist/components/3d-viewport/collider/colliderShapeToBufferGeometry.d.ts.map +1 -1
  17. package/dist/components/ProgramStateIndicator.d.ts +3 -3
  18. package/dist/components/ProgramStateIndicator.d.ts.map +1 -1
  19. package/dist/components/RobotCard.d.ts +3 -4
  20. package/dist/components/RobotCard.d.ts.map +1 -1
  21. package/dist/components/jogging/JoggingCartesianTab.d.ts.map +1 -1
  22. package/dist/components/jogging/JoggingJointTab.d.ts.map +1 -1
  23. package/dist/components/jogging/JoggingPanel.d.ts +1 -1
  24. package/dist/components/jogging/JoggingPanel.d.ts.map +1 -1
  25. package/dist/components/jogging/JoggingStore.d.ts +5 -10
  26. package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
  27. package/dist/components/jogging/PoseCartesianValues.d.ts +2 -2
  28. package/dist/components/jogging/PoseCartesianValues.d.ts.map +1 -1
  29. package/dist/components/jogging/PoseJointValues.d.ts +2 -1
  30. package/dist/components/jogging/PoseJointValues.d.ts.map +1 -1
  31. package/dist/components/robots/DHRobot.d.ts.map +1 -1
  32. package/dist/components/robots/Robot.d.ts +1 -1
  33. package/dist/components/robots/Robot.d.ts.map +1 -1
  34. package/dist/components/robots/RobotAnimator.d.ts +2 -2
  35. package/dist/components/robots/RobotAnimator.d.ts.map +1 -1
  36. package/dist/components/robots/SupportedRobot.d.ts +3 -3
  37. package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
  38. package/dist/components/robots/manufacturerHomePositions.d.ts +1 -1
  39. package/dist/components/robots/manufacturerHomePositions.d.ts.map +1 -1
  40. package/dist/components/safetyBar/OperationModeIndicator.d.ts +2 -2
  41. package/dist/components/safetyBar/OperationModeIndicator.d.ts.map +1 -1
  42. package/dist/components/safetyBar/SafetyBar.d.ts +3 -3
  43. package/dist/components/safetyBar/SafetyBar.d.ts.map +1 -1
  44. package/dist/components/safetyBar/SafetyStateIndicator.d.ts +2 -2
  45. package/dist/components/safetyBar/SafetyStateIndicator.d.ts.map +1 -1
  46. package/dist/components/utils/errorHandling.d.ts.map +1 -1
  47. package/dist/index.cjs +50 -48
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.js +20431 -15783
  50. package/dist/index.js.map +1 -1
  51. package/package.json +2 -2
  52. package/src/components/3d-viewport/CoordinateSystemTransform.tsx +1 -1
  53. package/src/components/3d-viewport/SafetyZonesRenderer.tsx +2 -1
  54. package/src/components/3d-viewport/collider/ColliderCollection.tsx +1 -1
  55. package/src/components/3d-viewport/collider/ColliderElement.tsx +1 -1
  56. package/src/components/3d-viewport/collider/CollisionSceneRenderer.tsx +1 -1
  57. package/src/components/3d-viewport/collider/colliderShapeToBufferGeometry.ts +1 -1
  58. package/src/components/ProgramStateIndicator.tsx +6 -3
  59. package/src/components/RobotCard.tsx +7 -4
  60. package/src/components/jogging/JoggingCartesianTab.tsx +11 -13
  61. package/src/components/jogging/JoggingJointLimitDetector.tsx +2 -2
  62. package/src/components/jogging/JoggingJointTab.tsx +3 -4
  63. package/src/components/jogging/JoggingPanel.tsx +3 -6
  64. package/src/components/jogging/JoggingStore.ts +39 -66
  65. package/src/components/jogging/PoseCartesianValues.tsx +4 -3
  66. package/src/components/jogging/PoseJointValues.tsx +4 -3
  67. package/src/components/robots/DHRobot.tsx +3 -2
  68. package/src/components/robots/Robot.tsx +1 -1
  69. package/src/components/robots/RobotAnimator.test.tsx +22 -7
  70. package/src/components/robots/RobotAnimator.tsx +13 -8
  71. package/src/components/robots/SupportedRobot.tsx +6 -3
  72. package/src/components/robots/manufacturerHomePositions.ts +1 -1
  73. package/src/components/safetyBar/OperationModeIndicator.tsx +2 -2
  74. package/src/components/safetyBar/SafetyBar.tsx +6 -3
  75. package/src/components/safetyBar/SafetyStateIndicator.tsx +2 -2
  76. package/src/components/utils/errorHandling.ts +0 -4
  77. package/src/i18n/locales/de/translations.json +0 -3
  78. package/src/i18n/locales/en/translations.json +0 -3
  79. package/dist/auth0-spa-js.production.esm-Bb4L9JDU.js +0 -1423
  80. package/dist/auth0-spa-js.production.esm-Bb4L9JDU.js.map +0 -1
  81. package/dist/auth0-spa-js.production.esm-CEI5Uihg.cjs +0 -5
  82. package/dist/auth0-spa-js.production.esm-CEI5Uihg.cjs.map +0 -1
  83. package/dist/components/jogging/JoggingBlocked.d.ts +0 -7
  84. package/dist/components/jogging/JoggingBlocked.d.ts.map +0 -1
  85. package/dist/components/utils/errorHandling.test.d.ts +0 -2
  86. package/dist/components/utils/errorHandling.test.d.ts.map +0 -1
  87. package/dist/lib/ConnectedMotionGroup.d.ts +0 -90
  88. package/dist/lib/ConnectedMotionGroup.d.ts.map +0 -1
  89. package/dist/lib/JoggerConnection.d.ts +0 -113
  90. package/dist/lib/JoggerConnection.d.ts.map +0 -1
  91. package/dist/lib/JoggerConnection.test.d.ts +0 -2
  92. package/dist/lib/JoggerConnection.test.d.ts.map +0 -1
  93. package/dist/lib/MotionStreamConnection.d.ts +0 -24
  94. package/dist/lib/MotionStreamConnection.d.ts.map +0 -1
  95. package/dist/lib/MotionStreamConnection.test.d.ts +0 -2
  96. package/dist/lib/MotionStreamConnection.test.d.ts.map +0 -1
  97. package/dist/lib/motionStateUpdate.d.ts +0 -7
  98. package/dist/lib/motionStateUpdate.d.ts.map +0 -1
  99. package/dist/lib/motionStateUpdate.test.d.ts +0 -2
  100. package/dist/lib/motionStateUpdate.test.d.ts.map +0 -1
  101. package/src/components/jogging/JoggingBlocked.tsx +0 -37
  102. package/src/components/utils/errorHandling.test.ts +0 -41
  103. package/src/lib/ConnectedMotionGroup.ts +0 -444
  104. package/src/lib/JoggerConnection.test.ts +0 -120
  105. package/src/lib/JoggerConnection.ts +0 -674
  106. package/src/lib/MotionStreamConnection.test.ts +0 -23
  107. package/src/lib/MotionStreamConnection.ts +0 -186
  108. package/src/lib/motionStateUpdate.test.ts +0 -28
  109. package/src/lib/motionStateUpdate.ts +0 -117
@@ -1,5 +1,8 @@
1
1
  import type { ThreeElements } from "@react-three/fiber"
2
- import type { DHParameter, MotionGroupState } from "@wandelbots/nova-js/v2"
2
+ import type {
3
+ DHParameter,
4
+ MotionGroupStateResponse,
5
+ } from "@wandelbots/nova-api/v1"
3
6
  import { Suspense, useCallback, useEffect, useState } from "react"
4
7
  import { DHRobot } from "./DHRobot"
5
8
 
@@ -13,12 +16,12 @@ import { applyGhostStyle, removeGhostStyle } from "./ghostStyle"
13
16
  import { defaultGetModel } from "./robotModelLogic"
14
17
 
15
18
  export type DHRobotProps = {
16
- rapidlyChangingMotionState: MotionGroupState
19
+ rapidlyChangingMotionState: MotionGroupStateResponse
17
20
  dhParameters: Array<DHParameter>
18
21
  } & ThreeElements["group"]
19
22
 
20
23
  export type SupportedRobotProps = {
21
- rapidlyChangingMotionState: MotionGroupState
24
+ rapidlyChangingMotionState: MotionGroupStateResponse
22
25
  modelFromController: string
23
26
  dhParameters: DHParameter[]
24
27
  flangeRef?: React.Ref<THREE.Group>
@@ -1,4 +1,4 @@
1
- import { Manufacturer } from "@wandelbots/nova-js/v2"
1
+ import { Manufacturer } from "@wandelbots/nova-api/v1"
2
2
 
3
3
  /**
4
4
  * Default home configs for different robot manufacturers.
@@ -1,5 +1,5 @@
1
1
  import { useTheme, type PopoverOrigin } from "@mui/material"
2
- import type { OperationMode } from "@wandelbots/nova-js/v2"
2
+ import type { RobotControllerStateOperationModeEnum } from "@wandelbots/nova-js/v1"
3
3
  import { observer } from "mobx-react-lite"
4
4
  import { Trans, useTranslation } from "react-i18next"
5
5
  import OperationModeAutomaticIcon from "./icons/operation-mode-automatic.svg"
@@ -8,7 +8,7 @@ import OperationModeManualIcon from "./icons/operation-mode-manual.svg"
8
8
  import { IndicatorWithExplanation } from "./IndicatorWithExplanation"
9
9
 
10
10
  interface OperationModeIndicatorProps {
11
- operationMode: OperationMode
11
+ operationMode: RobotControllerStateOperationModeEnum
12
12
  anchorOrigin?: PopoverOrigin
13
13
  transformOrigin?: PopoverOrigin
14
14
  compact: boolean
@@ -1,5 +1,8 @@
1
1
  import { Divider, Stack, type PopoverOrigin } from "@mui/material"
2
- import type { OperationMode, SafetyStateType } from "@wandelbots/nova-js/v2"
2
+ import type {
3
+ RobotControllerStateOperationModeEnum,
4
+ RobotControllerStateSafetyStateEnum,
5
+ } from "@wandelbots/nova-js/v1"
3
6
  import { observer } from "mobx-react-lite"
4
7
  import { externalizeComponent } from "../../externalizeComponent"
5
8
  import { ControllerTypeIndicator } from "./ControllerTypeIndicator"
@@ -9,8 +12,8 @@ import { SafetyStateIndicator } from "./SafetyStateIndicator"
9
12
  export interface SafetyBarProps {
10
13
  isVirtual: boolean
11
14
  motionGroupId: string
12
- operationMode: OperationMode
13
- safetyState: SafetyStateType
15
+ operationMode: RobotControllerStateOperationModeEnum
16
+ safetyState: RobotControllerStateSafetyStateEnum
14
17
  anchorOrigin?: PopoverOrigin
15
18
  transformOrigin?: PopoverOrigin
16
19
  compact?: boolean
@@ -1,5 +1,5 @@
1
1
  import { useTheme, type PopoverOrigin } from "@mui/material"
2
- import type { SafetyStateType } from "@wandelbots/nova-js/v2"
2
+ import type { RobotControllerStateSafetyStateEnum } from "@wandelbots/nova-js/v1"
3
3
  import { observer } from "mobx-react-lite"
4
4
  import { Trans, useTranslation } from "react-i18next"
5
5
  import { assertUnreachable } from "../utils/errorHandling"
@@ -11,7 +11,7 @@ import SafetyStateStopIcon from "./icons/safety-state-stop.svg"
11
11
  import { IndicatorWithExplanation } from "./IndicatorWithExplanation"
12
12
 
13
13
  interface SafetyStateIndicatorProps {
14
- safetyState: SafetyStateType
14
+ safetyState: RobotControllerStateSafetyStateEnum
15
15
  anchorOrigin?: PopoverOrigin
16
16
  transformOrigin?: PopoverOrigin
17
17
  compact: boolean
@@ -1,10 +1,6 @@
1
1
  import { AxiosError } from "axios"
2
2
  import { tryStringifyJson } from "./converters"
3
3
 
4
- // Please note: These helper functions also exist in nova.js
5
- // (with slightly different formatting), and will be unified
6
- // at some point in the future.
7
-
8
4
  export function delay(ms: number) {
9
5
  return new Promise((resolve) => setTimeout(resolve, ms))
10
6
  }
@@ -4,9 +4,6 @@
4
4
  "Jogging.Velocity.lb": "Geschwindigkeit",
5
5
  "General.degree.variable": "{{amount}}°",
6
6
  "General.mm.variable": "{{amount}} mm",
7
- "Jogging.Blocked.ti": "Verbindung blockiert",
8
- "Jogging.Blocked.lb": "Ein anderer Client kontrolliert das Jogging.",
9
- "Jogging.Blocked.Reenable.bt": "Neu verbinden",
10
7
  "Jogging.Cartesian.MotionType.lb": "Bewegungstyp",
11
8
  "Jogging.Cartesian.Translation.bt": "Translation",
12
9
  "Jogging.Cartesian.Rotation.bt": "Rotation",
@@ -4,9 +4,6 @@
4
4
  "Jogging.Velocity.lb": "Velocity",
5
5
  "General.degree.variable": "{{amount}}°",
6
6
  "General.mm.variable": "{{amount}} mm",
7
- "Jogging.Blocked.ti": "Connection blocked",
8
- "Jogging.Blocked.lb": "Another client is currently controlling the jogging.",
9
- "Jogging.Blocked.Reenable.bt": "Reconnect",
10
7
  "Jogging.Cartesian.MotionType.lb": "Motion type",
11
8
  "Jogging.Cartesian.Translation.bt": "Translation",
12
9
  "Jogging.Cartesian.Rotation.bt": "Rotation",