@wandelbots/wandelbots-js-react-components 1.17.9 → 1.18.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "1.17.9",
3
+ "version": "1.18.0",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -104,7 +104,7 @@
104
104
  "@mui/icons-material": "^5.16.7",
105
105
  "@mui/lab": "^5.0.0-alpha.173",
106
106
  "@shikijs/monaco": "^1.16.1",
107
- "@wandelbots/wandelbots-js": "^1.10.0",
107
+ "@wandelbots/wandelbots-js": "^1.11.0",
108
108
  "i18next-browser-languagedetector": "^8.0.0",
109
109
  "lodash-es": "^4.17.21",
110
110
  "mobx": "^6.13.1",
@@ -32,6 +32,7 @@ export const VelocitySlider = observer((props: VelocitySliderProps) => {
32
32
  textAlign: "center",
33
33
  fontSize: "14px",
34
34
  opacity: 0.8,
35
+ lineHeight: 1,
35
36
  color: theme.palette.text.primary,
36
37
  }}
37
38
  >
@@ -29,8 +29,6 @@ export const JoggingJointTab = observer(
29
29
  return (
30
30
  <Stack flexGrow={1} justifyContent="space-between">
31
31
  <JoggingJointValues store={store} />
32
-
33
- <Stack marginTop="0.8rem" />
34
32
  <JoggingActivationRequired store={store}>
35
33
  <Stack gap="0.8rem">
36
34
  {store.jogger.motionStream.joints.map((joint) => {
@@ -92,6 +90,8 @@ export const JoggingJointTab = observer(
92
90
  </JoggingActivationRequired>
93
91
  <JoggingJointLimitDetector store={store} />
94
92
  <JoggingVelocitySlider store={store} />
93
+ {/* Custom content */}
94
+ {children}
95
95
  </Stack>
96
96
  )
97
97
  },
@@ -1,15 +1,13 @@
1
+ import { Stack } from "@mui/material"
1
2
  import { observer } from "mobx-react-lite"
2
- import { Stack, Typography } from "@mui/material"
3
3
  import { useRef } from "react"
4
- import { useTranslation } from "react-i18next"
5
- import type { JoggingStore } from "./JoggingStore"
6
- import { useAnimationFrame } from "../utils/hooks"
7
4
  import { CopyableText } from "../CopyableText"
5
+ import { useAnimationFrame } from "../utils/hooks"
6
+ import type { JoggingStore } from "./JoggingStore"
8
7
 
9
8
  export const JoggingJointValues = observer(
10
9
  ({ store }: { store: JoggingStore }) => {
11
10
  const poseHolderRef = useRef<HTMLDivElement>(null)
12
- const { t } = useTranslation()
13
11
 
14
12
  function getCurrentPoseString() {
15
13
  const { joints } =
@@ -37,7 +35,7 @@ export const JoggingJointValues = observer(
37
35
  }}
38
36
  >
39
37
  <CopyableText
40
- label={"Pose"}
38
+ // label={"Pose"}
41
39
  value={getCurrentPoseString()}
42
40
  ref={poseHolderRef}
43
41
  />
@@ -24,7 +24,7 @@ export const JoggingVelocitySlider = observer(
24
24
  <Stack
25
25
  sx={{
26
26
  margin: "0px 20px",
27
- marginBottom: "12px",
27
+ marginBottom: "6px",
28
28
  }}
29
29
  >
30
30
  <Stack sx={{ width: "380px", maxWidth: "90%", margin: "auto" }}>