@wandelbots/wandelbots-js-react-components 1.40.0 → 1.41.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/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export * from "./components/3d-viewport/SafetyZonesRenderer";
3
3
  export * from "./components/jogging/JoggingCartesianAxisControl";
4
4
  export * from "./components/jogging/JoggingJointRotationControl";
5
5
  export * from "./components/jogging/JoggingPanel";
6
- export type { JoggingStore } from "./components/jogging/JoggingStore";
6
+ export { JoggingStore } from "./components/jogging/JoggingStore";
7
7
  export * from "./components/jogging/PoseCartesianValues";
8
8
  export * from "./components/jogging/PoseJointValues";
9
9
  export * from "./components/LoadingCover";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAA;AAC1D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,kDAAkD,CAAA;AAChE,cAAc,kDAAkD,CAAA;AAChE,cAAc,mCAAmC,CAAA;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AACrE,cAAc,0CAA0C,CAAA;AACxD,cAAc,sCAAsC,CAAA;AACpD,cAAc,2BAA2B,CAAA;AACzC,cAAc,uCAAuC,CAAA;AACrD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,cAAc,oCAAoC,CAAA;AAClD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qDAAqD,CAAA;AACnE,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAA;AAC1D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,kDAAkD,CAAA;AAChE,cAAc,kDAAkD,CAAA;AAChE,cAAc,mCAAmC,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAChE,cAAc,0CAA0C,CAAA;AACxD,cAAc,sCAAsC,CAAA;AACpD,cAAc,2BAA2B,CAAA;AACzC,cAAc,uCAAuC,CAAA;AACrD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,cAAc,oCAAoC,CAAA;AAClD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qDAAqD,CAAA;AACnE,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA"}
package/dist/index.js CHANGED
@@ -11248,18 +11248,22 @@ const Tc = Qe(
11248
11248
  r.loadingError = null, r.joggingStore = null;
11249
11249
  });
11250
11250
  try {
11251
- const o = await t.connectJogger(e.motionGroupId), i = await Wi.loadFor(o);
11251
+ let o = e.store;
11252
+ if (!o) {
11253
+ const i = await t.connectJogger(e.motionGroupId);
11254
+ o = await Wi.loadFor(i);
11255
+ }
11252
11256
  gr(() => {
11253
- r.joggingStore = i;
11254
- }), e.onSetup && e.onSetup(i);
11257
+ r.joggingStore = o;
11258
+ }), e.onSetup && e.onSetup(o);
11255
11259
  } catch (o) {
11256
11260
  r.loadingError = o;
11257
11261
  }
11258
11262
  }
11259
- return St(() => (n(), () => {
11263
+ return St(() => (n(), e.store ? () => null : () => {
11260
11264
  var o;
11261
11265
  (o = r.joggingStore) == null || o.dispose();
11262
- }), [e.nova, e.motionGroupId]), St(() => {
11266
+ }), [e.store, e.nova, e.motionGroupId]), St(() => {
11263
11267
  const o = r.joggingStore;
11264
11268
  o && (e.locked ? o.locks.add("external") : o.locks.delete("external"));
11265
11269
  }, [e.locked]), /* @__PURE__ */ b.jsx(
@@ -12275,6 +12279,7 @@ export {
12275
12279
  Ns as JoggingCartesianAxisControl,
12276
12280
  jh as JoggingJointRotationControl,
12277
12281
  lx as JoggingPanel,
12282
+ Wi as JoggingStore,
12278
12283
  Bi as LoadingCover,
12279
12284
  uy as LoadingErrorMessage,
12280
12285
  fx as NoMotionGroupModal,