@wandelbots/wandelbots-js-react-components 1.19.0 → 1.19.2

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.19.0",
3
+ "version": "1.19.2",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -16,6 +16,7 @@ export const JoggingActivationRequired = observer(
16
16
  <TransparentOverlay
17
17
  sx={{
18
18
  borderRadius: "6px",
19
+ backgroundColor: "rgba(38, 47, 66, 0.7)",
19
20
  }}
20
21
  >
21
22
  <Button
@@ -30,7 +31,11 @@ export const JoggingActivationRequired = observer(
30
31
  )
31
32
  } else if (store.activationState === "loading" || store.activationError) {
32
33
  return (
33
- <TransparentOverlay>
34
+ <TransparentOverlay
35
+ sx={{
36
+ backgroundColor: "rgba(38, 47, 66, 0.7)",
37
+ }}
38
+ >
34
39
  <LoadingCover
35
40
  message={t("Jogging.Activating.lb")}
36
41
  error={store.activationError}
@@ -1,3 +1,10 @@
1
+ import type {
2
+ CoordinateSystem,
3
+ JoggerConnection,
4
+ MotionGroupSpecification,
5
+ RobotTcp,
6
+ } from "@wandelbots/wandelbots-js"
7
+ import { tryParseJson } from "@wandelbots/wandelbots-js"
1
8
  import keyBy from "lodash-es/keyBy"
2
9
  import uniqueId from "lodash-es/uniqueId"
3
10
  import {
@@ -6,13 +13,6 @@ import {
6
13
  runInAction,
7
14
  type IReactionDisposer,
8
15
  } from "mobx"
9
- import type {
10
- CoordinateSystem,
11
- JoggerConnection,
12
- MotionGroupSpecification,
13
- RobotTcp,
14
- } from "@wandelbots/wandelbots-js"
15
- import { tryParseJson } from "@wandelbots/wandelbots-js"
16
16
 
17
17
  const discreteIncrementOptions = [
18
18
  { id: "0.1", mm: 0.1, degrees: 0.05 },
@@ -177,6 +177,15 @@ export class JoggingStore {
177
177
  await websocket.closed()
178
178
  }
179
179
 
180
+ // Closing websocket sometimes isn't enough to stop interference
181
+ try {
182
+ await this.jogger.nova.api.motionGroupJogging.stopJogging(
183
+ this.jogger.motionGroupId,
184
+ )
185
+ } catch (err) {
186
+ console.error(err)
187
+ }
188
+
180
189
  if (opts.requireManualReactivation) {
181
190
  runInAction(() => {
182
191
  this.manualActivationRequired = true