@wandelbots/wandelbots-js-react-components 1.44.3 → 1.44.4

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/dist/index.js CHANGED
@@ -9364,14 +9364,20 @@ class Wi {
9364
9364
  setSelectedCartesianMotionType(t) {
9365
9365
  this.selectedCartesianMotionType = t;
9366
9366
  }
9367
+ lock(t) {
9368
+ this.locks.add(t);
9369
+ }
9370
+ unlock(t) {
9371
+ this.locks.delete(t);
9372
+ }
9367
9373
  /** Lock the UI until the given async callback resolves */
9368
9374
  async withMotionLock(t) {
9369
9375
  const r = $1();
9370
- this.locks.add(r);
9376
+ this.lock(r);
9371
9377
  try {
9372
9378
  return await t();
9373
9379
  } finally {
9374
- this.locks.delete(r);
9380
+ this.unlock(r);
9375
9381
  }
9376
9382
  }
9377
9383
  }
@@ -11279,8 +11285,8 @@ const xc = et(
11279
11285
  (o = r.joggingStore) == null || o.dispose();
11280
11286
  }), [e.store, e.nova, e.motionGroupId]), St(() => {
11281
11287
  const o = r.joggingStore;
11282
- o && (e.locked ? o.locks.add("external") : o.locks.delete("external"));
11283
- }, [e.locked]), /* @__PURE__ */ b.jsx(
11288
+ o && (e.locked ? o.lock("external") : o.unlock("external"));
11289
+ }, [r.joggingStore, e.locked]), /* @__PURE__ */ b.jsx(
11284
11290
  ge,
11285
11291
  {
11286
11292
  sx: {