@wandelbots/wandelbots-js-react-components 2.54.5-pr.feat-jogging-blocked.406.76c87b3 → 2.54.5-pr.feat-upgrade-jogging-to-v2.404.562e886

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.54.5-pr.feat-jogging-blocked.406.76c87b3",
3
+ "version": "2.54.5-pr.feat-upgrade-jogging-to-v2.404.562e886",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,8 +1,5 @@
1
1
  import { Chip, Typography, useTheme } from "@mui/material"
2
- import type {
3
- RobotControllerStateOperationModeEnum,
4
- RobotControllerStateSafetyStateEnum,
5
- } from "@wandelbots/nova-js/v1"
2
+ import type { OperationMode, SafetyStateType } from "@wandelbots/nova-js/v2"
6
3
  import { observer } from "mobx-react-lite"
7
4
  import { useTranslation } from "react-i18next"
8
5
  import { externalizeComponent } from "../externalizeComponent"
@@ -12,9 +9,9 @@ export interface ProgramStateIndicatorProps {
12
9
  /** The current state of the program */
13
10
  programState: ProgramState
14
11
  /** The current safety state of the robot controller */
15
- safetyState: RobotControllerStateSafetyStateEnum
12
+ safetyState: SafetyStateType
16
13
  /** The current operation mode of the robot controller */
17
- operationMode: RobotControllerStateOperationModeEnum
14
+ operationMode: OperationMode
18
15
  /** Additional CSS class name */
19
16
  className?: string
20
17
  }
@@ -1,11 +1,8 @@
1
1
  import { Box, Button, Card, Divider, Typography, useTheme } from "@mui/material"
2
2
  import { Bounds } from "@react-three/drei"
3
3
  import { Canvas } from "@react-three/fiber"
4
- import type {
5
- ConnectedMotionGroup,
6
- RobotControllerStateOperationModeEnum,
7
- RobotControllerStateSafetyStateEnum,
8
- } from "@wandelbots/nova-js/v1"
4
+ import type { ConnectedMotionGroup } from "@wandelbots/nova-js/v1"
5
+ import type { OperationMode, SafetyStateType } from "@wandelbots/nova-js/v2"
9
6
  import { observer } from "mobx-react-lite"
10
7
  import { useCallback, useEffect, useRef, useState } from "react"
11
8
  import { useTranslation } from "react-i18next"
@@ -22,9 +19,9 @@ export interface RobotCardProps {
22
19
  /** Current program state */
23
20
  programState: ProgramState
24
21
  /** Current safety state of the robot controller */
25
- safetyState: RobotControllerStateSafetyStateEnum
22
+ safetyState: SafetyStateType
26
23
  /** Current operation mode of the robot controller */
27
- operationMode: RobotControllerStateOperationModeEnum
24
+ operationMode: OperationMode
28
25
  /** Whether the "Drive to Home" button should be enabled */
29
26
  driveToHomeEnabled?: boolean
30
27
  /** Callback fired when "Drive to Home" button is pressed */
@@ -1,5 +1,5 @@
1
1
  import { useTheme, type PopoverOrigin } from "@mui/material"
2
- import type { RobotControllerStateOperationModeEnum } from "@wandelbots/nova-js/v1"
2
+ import type { OperationMode } from "@wandelbots/nova-js/v2"
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: RobotControllerStateOperationModeEnum
11
+ operationMode: OperationMode
12
12
  anchorOrigin?: PopoverOrigin
13
13
  transformOrigin?: PopoverOrigin
14
14
  compact: boolean
@@ -1,8 +1,5 @@
1
1
  import { Divider, Stack, type PopoverOrigin } from "@mui/material"
2
- import type {
3
- RobotControllerStateOperationModeEnum,
4
- RobotControllerStateSafetyStateEnum,
5
- } from "@wandelbots/nova-js/v1"
2
+ import type { OperationMode, SafetyStateType } from "@wandelbots/nova-js/v2"
6
3
  import { observer } from "mobx-react-lite"
7
4
  import { externalizeComponent } from "../../externalizeComponent"
8
5
  import { ControllerTypeIndicator } from "./ControllerTypeIndicator"
@@ -12,8 +9,8 @@ import { SafetyStateIndicator } from "./SafetyStateIndicator"
12
9
  export interface SafetyBarProps {
13
10
  isVirtual: boolean
14
11
  motionGroupId: string
15
- operationMode: RobotControllerStateOperationModeEnum
16
- safetyState: RobotControllerStateSafetyStateEnum
12
+ operationMode: OperationMode
13
+ safetyState: SafetyStateType
17
14
  anchorOrigin?: PopoverOrigin
18
15
  transformOrigin?: PopoverOrigin
19
16
  compact?: boolean
@@ -1,5 +1,5 @@
1
1
  import { useTheme, type PopoverOrigin } from "@mui/material"
2
- import type { RobotControllerStateSafetyStateEnum } from "@wandelbots/nova-js/v1"
2
+ import type { SafetyStateType } from "@wandelbots/nova-js/v2"
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: RobotControllerStateSafetyStateEnum
14
+ safetyState: SafetyStateType
15
15
  anchorOrigin?: PopoverOrigin
16
16
  transformOrigin?: PopoverOrigin
17
17
  compact: boolean